From 8362d7a311c7369b597dc2afc09ee326f3cd6442 Mon Sep 17 00:00:00 2001 From: Luiz Bills Date: Sat, 20 Jul 2024 22:28:49 -0300 Subject: [PATCH] remove console.log call --- public/app.js | 116 +++++++++++++++++++++++++------------------------- public/sw.js | 2 +- src/index.js | 1 - 3 files changed, 59 insertions(+), 60 deletions(-) diff --git a/public/app.js b/public/app.js index 4431483..985f11e 100644 --- a/public/app.js +++ b/public/app.js @@ -1,15 +1,15 @@ -(()=>{var TN=(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 Bi(r){let e=r.length;for(;--e>=0;)r[e]=0}var DN=0,I1=1,_N=2,IN=3,RN=258,nf=29,Qa=256,Fa=Qa+1+nf,Ii=30,sf=19,R1=2*Fa+1,Ws=15,Fc=16,FN=7,af=256,F1=16,B1=17,N1=18,Gc=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]),il=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]),BN=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),L1=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),NN=512,ts=new Array((Fa+2)*2);Bi(ts);var _a=new Array(Ii*2);Bi(_a);var Ba=new Array(NN);Bi(Ba);var Na=new Array(RN-IN+1);Bi(Na);var of=new Array(nf);Bi(of);var al=new Array(Ii);Bi(al);function Bc(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 $1,M1,j1;function Nc(r,e){this.dyn_tree=r,this.max_code=0,this.stat_desc=e}var q1=r=>r<256?Ba[r]:Ba[256+(r>>>7)],La=(r,e)=>{r.pending_buf[r.pending++]=e&255,r.pending_buf[r.pending++]=e>>>8&255},Lr=(r,e,t)=>{r.bi_valid>Fc-t?(r.bi_buf|=e<>Fc-r.bi_valid,r.bi_valid+=t-Fc):(r.bi_buf|=e<{Lr(r,t[e*2],t[e*2+1])},Q1=(r,e)=>{let t=0;do t|=r&1,r>>>=1,t<<=1;while(--e>0);return t>>>1},LN=r=>{r.bi_valid===16?(La(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)},$N=(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<=Ws;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--)}},U1=(r,e,t)=>{let s=new Array(Ws+1),n=0,i,a;for(i=1;i<=Ws;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]=Q1(s[l]++,l))}},MN=()=>{let r,e,t,s,n,i=new Array(Ws+1);for(t=0,s=0;s>=7;s{let e;for(e=0;e{r.bi_valid>8?La(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},GO=(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?Dn(r,n,e):(a=Na[n],Dn(r,a+Qa+1,e),l=Gc[a],l!==0&&(n-=of[a],Lr(r,n,l)),s--,a=q1(s),Dn(r,a,t),l=il[a],l!==0&&(s-=al[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=R1,a=0;a>1;a>=1;a--)Lc(r,t,a);u=i;do a=r.heap[1],r.heap[1]=r.heap[r.heap_len--],Lc(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++,Lc(r,t,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],$N(r,e),U1(t,o,r.bl_count)},YO=(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(YO(r,r.dyn_ltree,r.l_desc.max_code),YO(r,r.dyn_dtree,r.d_desc.max_code),Xc(r,r.bl_desc),e=sf-1;e>=3&&r.bl_tree[L1[e]*2+1]===0;e--);return r.opt_len+=3*(e+1)+5+5+4,e},qN=(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{KO||(MN(),KO=!0),r.l_desc=new Nc(r.dyn_ltree,$1),r.d_desc=new Nc(r.dyn_dtree,M1),r.bl_desc=new Nc(r.bl_tree,j1),r.bi_buf=0,r.bi_valid=0,V1(r)},Z1=(r,e,t,s)=>{Lr(r,(DN<<1)+(s?1:0),3),W1(r),La(r,t),La(r,~t),t&&r.pending_buf.set(r.window.subarray(e,e+t),r.pending),r.pending+=t},VN=r=>{Lr(r,I1<<1,3),Dn(r,af,ts),LN(r)},WN=(r,e,t,s)=>{let n,i,a=0;r.level>0?(r.strm.data_type===2&&(r.strm.data_type=QN(r)),Xc(r,r.l_desc),Xc(r,r.d_desc),a=jN(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?Z1(r,e,t,s):r.strategy===4||i===n?(Lr(r,(I1<<1)+(s?1:0),3),XO(r,ts,_a)):(Lr(r,(_N<<1)+(s?1:0),3),qN(r,r.l_desc.max_code+1,r.d_desc.max_code+1,a+1),XO(r,r.dyn_ltree,r.dyn_dtree)),V1(r),s&&W1(r)},ZN=(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[(Na[t]+Qa+1)*2]++,r.dyn_dtree[q1(e)*2]++),r.sym_next===r.sym_end),zN=UN,GN=Z1,XN=WN,YN=ZN,HN=VN,KN={_tr_init:zN,_tr_stored_block:GN,_tr_flush_block:XN,_tr_tally:YN,_tr_align:HN},JN=(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},$a=JN,eL=()=>{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},tL=new Uint32Array(eL()),rL=(r,e,t,s)=>{let n=tL,i=s+t;r^=-1;for(let a=s;a>>8^n[(r^e[a])&255];return r^-1},mr=rL,Gs={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"},Hs={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:nL,_tr_stored_block:Yc,_tr_flush_block:sL,_tr_tally:Os,_tr_align:iL}=KN,{Z_NO_FLUSH:Ss,Z_PARTIAL_FLUSH:aL,Z_FULL_FLUSH:oL,Z_FINISH:en,Z_BLOCK:JO,Z_OK:vr,Z_STREAM_END:e1,Z_STREAM_ERROR:_n,Z_DATA_ERROR:lL,Z_BUF_ERROR:$c,Z_DEFAULT_COMPRESSION:uL,Z_FILTERED:cL,Z_HUFFMAN_ONLY:el,Z_RLE:fL,Z_FIXED:pL,Z_DEFAULT_STRATEGY:hL,Z_UNKNOWN:dL,Z_DEFLATED:ul}=Hs,mL=9,gL=15,yL=8,bL=29,xL=256,Hc=xL+1+bL,vL=30,OL=19,SL=2*Hc+1,EL=15,Rt=3,vs=258,In=vs+Rt+1,wL=32,Ri=42,lf=57,Kc=69,Jc=73,ef=91,tf=103,Zs=113,Ta=666,Tr=1,Ni=2,Xs=3,Li=4,CL=3,zs=(r,e)=>(r.msg=Gs[e],e),t1=r=>r*2-(r>4?9:0),xs=r=>{let e=r.length;for(;--e>=0;)r[e]=0},kL=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)},AL=(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))},Zr=(r,e)=>{sL(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,e),r.block_start=r.strstart,Wr(r.strm)},$t=(r,e)=>{r.pending_buf[r.pending++]=e},Pa=(r,e)=>{r.pending_buf[r.pending++]=e>>>8&255,r.pending_buf[r.pending++]=e&255},rf=(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=$a(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)},z1=(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-In?r.strstart-(r.w_size-In):0,u=r.window,c=r.w_mask,p=r.prev,h=r.strstart+vs,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},Fi=r=>{let e=r.w_size,t,s,n;do{if(s=r.window_size-r.lookahead-r.strstart,r.strstart>=e+(e-In)&&(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),kL(r),s+=e),r.strm.avail_in===0)break;if(t=rf(r.strm,r.window,r.strstart+r.lookahead,s),r.lookahead+=t,r.lookahead+r.insert>=Rt)for(n=r.strstart-r.insert,r.ins_h=r.window[n],r.ins_h=Es(r,r.ins_h,r.window[n+1]);r.insert&&(r.ins_h=Es(r,r.ins_h,r.window[n+Rt-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,Wr(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&&(rf(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&&(rf(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!==Ss&&r.strm.avail_in===0&&n<=i)&&(s=n>i?i:n,a=e===en&&r.strm.avail_in===0&&s===n?1:0,Yc(r,r.block_start,s,a),r.block_start+=s,Wr(r.strm)),a?Xs:Tr)},Mc=(r,e)=>{let t,s;for(;;){if(r.lookahead=Rt&&(r.ins_h=Es(r,r.ins_h,r.window[r.strstart+Rt-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-In&&(r.match_length=z1(r,t)),r.match_length>=Rt)if(s=Os(r,r.strstart-r.match_start,r.match_length-Rt),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=Rt){r.match_length--;do r.strstart++,r.ins_h=Es(r,r.ins_h,r.window[r.strstart+Rt-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=Es(r,r.ins_h,r.window[r.strstart+1]);else s=Os(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(s&&(Zr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=r.strstart{let t,s,n;for(;;){if(r.lookahead=Rt&&(r.ins_h=Es(r,r.ins_h,r.window[r.strstart+Rt-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=Rt-1,t!==0&&r.prev_length4096)&&(r.match_length=Rt-1)),r.prev_length>=Rt&&r.match_length<=r.prev_length){n=r.strstart+r.lookahead-Rt,s=Os(r,r.strstart-1-r.prev_match,r.prev_length-Rt),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=n&&(r.ins_h=Es(r,r.ins_h,r.window[r.strstart+Rt-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=Rt-1,r.strstart++,s&&(Zr(r,!1),r.strm.avail_out===0))return Tr}else if(r.match_available){if(s=Os(r,0,r.window[r.strstart-1]),s&&Zr(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=Os(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<=vs){if(Fi(r),r.lookahead<=vs&&e===Ss)return Tr;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=Rt&&r.strstart>0&&(n=r.strstart-1,s=a[n],s===a[++n]&&s===a[++n]&&s===a[++n])){i=r.strstart+vs;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>=Rt?(t=Os(r,1,r.match_length-Rt),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(t=Os(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),t&&(Zr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Zr(r,!0),r.strm.avail_out===0?Xs:Li):r.sym_next&&(Zr(r,!1),r.strm.avail_out===0)?Tr:Ni},TL=(r,e)=>{let t;for(;;){if(r.lookahead===0&&(Fi(r),r.lookahead===0)){if(e===Ss)return Tr;break}if(r.match_length=0,t=Os(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,t&&(Zr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Zr(r,!0),r.strm.avail_out===0?Xs:Li):r.sym_next&&(Zr(r,!1),r.strm.avail_out===0)?Tr:Ni};function Tn(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 Da=[new Tn(0,0,0,0,G1),new Tn(4,4,8,4,Mc),new Tn(4,5,16,8,Mc),new Tn(4,6,32,32,Mc),new Tn(4,4,16,16,Di),new Tn(8,16,32,32,Di),new Tn(8,16,128,128,Di),new Tn(8,32,128,256,Di),new Tn(32,128,258,1024,Di),new Tn(32,258,258,4096,Di)],DL=r=>{r.window_size=2*r.w_size,xs(r.head),r.max_lazy_match=Da[r.level].max_lazy,r.good_match=Da[r.level].good_length,r.nice_match=Da[r.level].nice_length,r.max_chain_length=Da[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=Rt-1,r.match_available=0,r.ins_h=0};function _L(){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=ul,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(SL*2),this.dyn_dtree=new Uint16Array((2*vL+1)*2),this.bl_tree=new Uint16Array((2*OL+1)*2),xs(this.dyn_ltree),xs(this.dyn_dtree),xs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(EL+1),this.heap=new Uint16Array(2*Hc+1),xs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Hc+1),xs(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 Ua=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.status!==Ri&&e.status!==lf&&e.status!==Kc&&e.status!==Jc&&e.status!==ef&&e.status!==tf&&e.status!==Zs&&e.status!==Ta?1:0},X1=r=>{if(Ua(r))return zs(r,_n);r.total_in=r.total_out=0,r.data_type=dL;let e=r.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?lf:e.wrap?Ri:Zs,r.adler=e.wrap===2?0:1,e.last_flush=-2,nL(e),vr},Y1=r=>{let e=X1(r);return e===vr&&DL(r.state),e},IL=(r,e)=>Ua(r)||r.state.wrap!==2?_n:(r.state.gzhead=e,vr),H1=(r,e,t,s,n,i)=>{if(!r)return _n;let a=1;if(e===uL&&(e=6),s<0?(a=0,s=-s):s>15&&(a=2,s-=16),n<1||n>mL||t!==ul||s<8||s>15||e<0||e>9||i<0||i>pL||s===8&&a!==1)return zs(r,_n);s===8&&(s=9);let l=new _L;return r.state=l,l.strm=r,l.status=Ri,l.wrap=a,l.gzhead=null,l.w_bits=s,l.w_size=1<H1(r,e,ul,gL,yL,hL),FL=(r,e)=>{if(Ua(r)||e>JO||e<0)return r?zs(r,_n):_n;let t=r.state;if(!r.output||r.avail_in!==0&&!r.input||t.status===Ta&&e!==en)return zs(r,r.avail_out===0?$c:_n);let s=t.last_flush;if(t.last_flush=e,t.pending!==0){if(Wr(r),r.avail_out===0)return t.last_flush=-1,vr}else if(r.avail_in===0&&t1(e)<=t1(s)&&e!==en)return zs(r,$c);if(t.status===Ta&&r.avail_in!==0)return zs(r,$c);if(t.status===Ri&&t.wrap===0&&(t.status=Zs),t.status===Ri){let n=ul+(t.w_bits-8<<4)<<8,i=-1;if(t.strategy>=el||t.level<2?i=0:t.level<6?i=1:t.level===6?i=2:i=3,n|=i<<6,t.strstart!==0&&(n|=wL),n+=31-n%31,Pa(t,n),t.strstart!==0&&(Pa(t,r.adler>>>16),Pa(t,r.adler&65535)),r.adler=1,t.status=Zs,Wr(r),t.pending!==0)return t.last_flush=-1,vr}if(t.status===lf){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>=el||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=Kc;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>=el||t.level<2?4:0),$t(t,CL),t.status=Zs,Wr(r),t.pending!==0)return t.last_flush=-1,vr}if(t.status===Kc){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,Wr(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=Jc}if(t.status===Jc){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)),Wr(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=ef}if(t.status===ef){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)),Wr(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=tf}if(t.status===tf){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Wr(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=Zs,Wr(r),t.pending!==0)return t.last_flush=-1,vr}if(r.avail_in!==0||t.lookahead!==0||e!==Ss&&t.status!==Ta){let n=t.level===0?G1(t,e):t.strategy===el?TL(t,e):t.strategy===fL?PL(t,e):Da[t.level].func(t,e);if((n===Xs||n===Li)&&(t.status=Ta),n===Tr||n===Xs)return r.avail_out===0&&(t.last_flush=-1),vr;if(n===Ni&&(e===aL?iL(t):e!==JO&&(Yc(t,0,0,!1),e===oL&&(xs(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Wr(r),r.avail_out===0))return t.last_flush=-1,vr}return e!==en?vr:t.wrap<=0?e1:(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)):(Pa(t,r.adler>>>16),Pa(t,r.adler&65535)),Wr(r),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?vr:e1)},BL=r=>{if(Ua(r))return _n;let e=r.state.status;return r.state=null,e===Zs?zs(r,lL):vr},NL=(r,e)=>{let t=e.length;if(Ua(r))return _n;let s=r.state,n=s.wrap;if(n===2||n===1&&s.status!==Ri||s.lookahead)return _n;if(n===1&&(r.adler=$a(r.adler,e,t,0)),s.wrap=0,t>=s.w_size){n===0&&(xs(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,Fi(s);s.lookahead>=Rt;){let o=s.strstart,u=s.lookahead-(Rt-1);do s.ins_h=Es(s,s.ins_h,s.window[o+Rt-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=Rt-1,Fi(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=Rt-1,s.match_available=0,r.next_in=a,r.input=l,r.avail_in=i,s.wrap=n,vr},LL=RL,$L=H1,ML=Y1,jL=X1,qL=IL,QL=FL,UL=BL,VL=NL,WL="pako deflate (from Nodeca project)",Ia={deflateInit:LL,deflateInit2:$L,deflateReset:ML,deflateResetKeep:jL,deflateSetHeader:qL,deflate:QL,deflateEnd:UL,deflateSetDictionary:VL,deflateInfo:WL},ZL=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),zL=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)ZL(t,s)&&(r[s]=t[s])}}return r},GL=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;Ma[254]=Ma[254]=1;var XL=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},YL=(r,e)=>{if(e<65534&&r.subarray&&K1)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 YL(i,n)},KL=(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+Ma[r[t]]>e?t:e},ja={string2buf:XL,buf2string:HL,utf8border:KL};function JL(){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 J1=JL,eS=Object.prototype.toString,{Z_NO_FLUSH:e$,Z_SYNC_FLUSH:t$,Z_FULL_FLUSH:r$,Z_FINISH:n$,Z_OK:ol,Z_STREAM_END:s$,Z_DEFAULT_COMPRESSION:i$,Z_DEFAULT_STRATEGY:a$,Z_DEFLATED:o$}=Hs;function Va(r){this.options=cl.assign({level:i$,method:o$,chunkSize:16384,windowBits:15,memLevel:8,strategy:a$},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 J1,this.strm.avail_out=0;let t=Ia.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==ol)throw new Error(Gs[t]);if(e.header&&Ia.deflateSetHeader(this.strm,e.header),e.dictionary){let s;if(typeof e.dictionary=="string"?s=ja.string2buf(e.dictionary):eS.call(e.dictionary)==="[object ArrayBuffer]"?s=new Uint8Array(e.dictionary):s=e.dictionary,t=Ia.deflateSetDictionary(this.strm,s),t!==ol)throw new Error(Gs[t]);this._dict_set=!0}}Va.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?n$:e$,typeof r=="string"?t.input=ja.string2buf(r):eS.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===t$||i===r$)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(n=Ia.deflate(t,i),n===s$)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),n=Ia.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===ol;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};Va.prototype.onData=function(r){this.chunks.push(r)};Va.prototype.onEnd=function(r){r===ol&&(this.result=cl.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function uf(r,e){let t=new Va(e);if(t.push(r,!0),t.err)throw t.msg||Gs[t.err];return t.result}function l$(r,e){return e=e||{},e.raw=!0,uf(r,e)}function u$(r,e){return e=e||{},e.gzip=!0,uf(r,e)}var c$=Va,f$=uf,p$=l$,h$=u$,d$=Hs,m$={Deflate:c$,deflate:f$,deflateRaw:p$,gzip:h$,constants:d$},tl=16209,g$=16191,y$=function(e,t){let s,n,i,a,l,o,u,c,p,h,f,d,m,g,y,x,v,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=v>>>16&255,S===0)A[i++]=v&65535;else if(S&16){w=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=tl;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=tl;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=tl;break e}else{v=g[(v&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,x=0,v,S,w,O,C,E=null,k,A=new Uint16Array(_i+1),D=new Uint16Array(_i+1),_=null,B,T,R;for(u=0;u<=_i;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===s1||h!==1))return-1;for(D[1]=0,u=1;u<_i;u++)D[u+1]=D[u]+A[u];for(c=0;cr1||r===i1&&y>n1)return 1;for(;;){B=u-m,a[c]+1=k?(T=_[a[c]-k],R=E[a[c]-k]):(T=96,R=0),v=1<>m)+S]=B<<24|T<<16|R|0;while(S!==0);for(v=1<>=1;if(v!==0?(x&=v-1,x+=v):x=0,c++,--A[u]===0){if(u===h)break;u=e[t+a[c]]}if(u>f&&(x&O)!==w){for(m===0&&(m=f),C+=p,d=u-m,g=1<r1||r===i1&&y>n1)return 1;w=x&O,n[w]=f<<24|d<<16|C-i|0}}return x!==0&&(n[C+x]=u-m<<24|64<<16|0),l.bits=f,0},Ra=S$,E$=0,tS=1,rS=2,{Z_FINISH:a1,Z_BLOCK:w$,Z_TREES:rl,Z_OK:Ys,Z_STREAM_END:C$,Z_NEED_DICT:k$,Z_STREAM_ERROR:tn,Z_DATA_ERROR:nS,Z_MEM_ERROR:sS,Z_BUF_ERROR:A$,Z_DEFLATED:o1}=Hs,fl=16180,l1=16181,u1=16182,c1=16183,f1=16184,p1=16185,h1=16186,d1=16187,m1=16188,g1=16189,ll=16190,es=16191,qc=16192,y1=16193,Qc=16194,b1=16195,x1=16196,v1=16197,O1=16198,nl=16199,sl=16200,S1=16201,E1=16202,w1=16203,C1=16204,k1=16205,Uc=16206,A1=16207,P1=16208,tr=16209,iS=16210,aS=16211,P$=852,T$=592,D$=15,_$=D$,T1=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function I$(){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 Ks=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.modeaS?1:0},oS=r=>{if(Ks(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=fl,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(P$),e.distcode=e.distdyn=new Int32Array(T$),e.sane=1,e.back=-1,Ys},lS=r=>{if(Ks(r))return tn;let e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,oS(r)},uS=(r,e)=>{let t;if(Ks(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,lS(r))},cS=(r,e)=>{if(!r)return tn;let t=new I$;r.state=t,t.strm=r,t.window=null,t.mode=fl;let s=uS(r,e);return s!==Ys&&(r.state=null),s},R$=r=>cS(r,_$),D1=!0,Vc,Wc,F$=r=>{if(D1){Vc=new Int32Array(512),Wc=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(Ra(tS,r.lens,0,288,Vc,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;Ra(rS,r.lens,0,32,Wc,0,r.work,{bits:5}),D1=!1}r.lencode=Vc,r.lenbits=9,r.distcode=Wc,r.distbits=5},fS=(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,x,v,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(Ks(r)||!r.output||!r.input&&r.avail_in!==0)return tn;t=r.state,t.mode===es&&(t.mode=qc),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=Ys;e:for(;;)switch(t.mode){case fl:if(t.wrap===0){t.mode=qc;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=l1;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)!==o1){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=u1;case u1: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=c1;case c1: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=f1;case f1: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=p1;case p1: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=h1;case h1: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 g1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>=c&7,c-=c&7,t.mode=Uc;break}for(;c<3;){if(l===0)break e;l--,u+=s[i++]<>>=1,c-=1,u&3){case 0:t.mode=y1;break;case 1:if(F$(t),t.mode=nl,e===rl){u>>>=2,c-=2;break e}break;case 2:t.mode=x1;break;case 3:r.msg="invalid block type",t.mode=tr}u>>>=2,c-=2;break;case y1: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=Qc,e===rl)break e;case Qc:t.mode=b1;case b1: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 x1: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=v1;case v1: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=Ra(E$,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=O1;case O1:for(;t.have>>24,x=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}C=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,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=Ra(tS,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=Ra(rS,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=nl,e===rl)break e;case nl:t.mode=sl;case sl: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,y$(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,x=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,x=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,x===0){t.mode=k1;break}if(x&32){t.back=-1,t.mode=es;break}if(x&64){r.msg="invalid literal/length code",t.mode=tr;break}t.extra=x&15,t.mode=S1;case S1:if(t.extra){for(D=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=E1;case E1:for(;g=t.distcode[u&(1<>>24,x=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,x=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,x&64){r.msg="invalid distance code",t.mode=tr;break}t.offset=v,t.extra=x&15,t.mode=w1;case w1: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=C1;case C1: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=sl);break;case k1:if(o===0)break e;n[a++]=t.length,o--,t.mode=sl;break;case Uc:if(t.wrap){for(;c<32;){if(l===0)break e;l--,u|=s[i++]<{if(Ks(r))return tn;let e=r.state;return e.window&&(e.window=null),r.state=null,Ys},L$=(r,e)=>{if(Ks(r))return tn;let t=r.state;return t.wrap&2?(t.head=e,e.done=!1,Ys):tn},$$=(r,e)=>{let t=e.length,s,n,i;return Ks(r)||(s=r.state,s.wrap!==0&&s.mode!==ll)?tn:s.mode===ll&&(n=1,n=$a(n,e,t,0),n!==s.check)?nS:(i=fS(r,e,t,t),i?(s.mode=iS,sS):(s.havedict=1,Ys))},M$=lS,j$=uS,q$=oS,Q$=R$,U$=cS,V$=B$,W$=N$,Z$=L$,z$=$$,G$="pako inflate (from Nodeca project)",rs={inflateReset:M$,inflateReset2:j$,inflateResetKeep:q$,inflateInit:Q$,inflateInit2:U$,inflate:V$,inflateEnd:W$,inflateGetHeader:Z$,inflateSetDictionary:z$,inflateInfo:G$};function X$(){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 Y$=X$,pS=Object.prototype.toString,{Z_NO_FLUSH:H$,Z_FINISH:K$,Z_OK:qa,Z_STREAM_END:Zc,Z_NEED_DICT:zc,Z_STREAM_ERROR:J$,Z_DATA_ERROR:_1,Z_MEM_ERROR:eM}=Hs;function Wa(r){this.options=cl.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 J1,this.strm.avail_out=0;let t=rs.inflateInit2(this.strm,e.windowBits);if(t!==qa)throw new Error(Gs[t]);if(this.header=new Y$,rs.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=ja.string2buf(e.dictionary):pS.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=rs.inflateSetDictionary(this.strm,e.dictionary),t!==qa)))throw new Error(Gs[t])}Wa.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?K$:H$,pS.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===zc&&n&&(i=rs.inflateSetDictionary(t,n),i===qa?i=rs.inflate(t,a):i===_1&&(i=zc));t.avail_in>0&&i===Zc&&t.state.wrap>0&&r[t.next_in]!==0;)rs.inflateReset(t),i=rs.inflate(t,a);switch(i){case J$:case _1:case zc:case eM:return this.onEnd(i),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||i===Zc))if(this.options.to==="string"){let o=ja.utf8border(t.output,t.next_out),u=t.next_out-o,c=ja.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===qa&&l===0)){if(i===Zc)return i=rs.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Wa.prototype.onData=function(r){this.chunks.push(r)};Wa.prototype.onEnd=function(r){r===qa&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=cl.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function cf(r,e){let t=new Wa(e);if(t.push(r),t.err)throw t.msg||Gs[t.err];return t.result}function tM(r,e){return e=e||{},e.raw=!0,cf(r,e)}var rM=Wa,nM=cf,sM=tM,iM=cf,aM=Hs,oM={Inflate:rM,inflate:nM,inflateRaw:sM,ungzip:iM,constants:aM},{Deflate:lM,deflate:uM,deflateRaw:cM,gzip:fM}=m$,{Inflate:pM,inflate:hM,inflateRaw:dM,ungzip:mM}=oM,gM=lM,yM=uM,bM=cM,xM=fM,vM=pM,OM=hM,SM=dM,EM=mM,wM=Hs,ff={Deflate:gM,deflate:yM,deflateRaw:bM,gzip:xM,Inflate:vM,inflate:OM,inflateRaw:SM,ungzip:EM,constants:wM};var It=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]=Ui(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),Mi.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]=Ui(this,e,t);let s=[];return this.decompose(e,t,s,0),Mi.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 ti(this),i=new ti(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 ti(this,e)}iterRange(e,t=this.length){return new ml(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 gl(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):Mi.from(zr.split(e,[]))}},zr=class r extends It{constructor(e,t=CM(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 hf(n,l,s,a);n=l+1,s++}}decompose(e,t,s,n){let i=e<=0&&t>=this.length?this:new r(hS(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let a=s.pop(),l=dl(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]=Ui(this,e,t);let n=dl(this.text,dl(s.text,hS(this.text,0,e)),t),i=this.length+s.length-(t-e);return n.length<=32?new r(n,i):Mi.from(r.split(n,[]),i)}sliceString(e,t=this.length,s=` +(()=>{var PN=(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 Bi(r){let e=r.length;for(;--e>=0;)r[e]=0}var TN=0,I1=1,DN=2,_N=3,IN=258,nf=29,Qa=256,Fa=Qa+1+nf,Ii=30,sf=19,R1=2*Fa+1,Ws=15,Fc=16,RN=7,af=256,F1=16,B1=17,N1=18,Gc=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]),il=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]),FN=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),L1=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),BN=512,ts=new Array((Fa+2)*2);Bi(ts);var _a=new Array(Ii*2);Bi(_a);var Ba=new Array(BN);Bi(Ba);var Na=new Array(IN-_N+1);Bi(Na);var of=new Array(nf);Bi(of);var al=new Array(Ii);Bi(al);function Bc(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 $1,M1,j1;function Nc(r,e){this.dyn_tree=r,this.max_code=0,this.stat_desc=e}var q1=r=>r<256?Ba[r]:Ba[256+(r>>>7)],La=(r,e)=>{r.pending_buf[r.pending++]=e&255,r.pending_buf[r.pending++]=e>>>8&255},Lr=(r,e,t)=>{r.bi_valid>Fc-t?(r.bi_buf|=e<>Fc-r.bi_valid,r.bi_valid+=t-Fc):(r.bi_buf|=e<{Lr(r,t[e*2],t[e*2+1])},Q1=(r,e)=>{let t=0;do t|=r&1,r>>>=1,t<<=1;while(--e>0);return t>>>1},NN=r=>{r.bi_valid===16?(La(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)},LN=(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<=Ws;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--)}},U1=(r,e,t)=>{let s=new Array(Ws+1),n=0,i,a;for(i=1;i<=Ws;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]=Q1(s[l]++,l))}},$N=()=>{let r,e,t,s,n,i=new Array(Ws+1);for(t=0,s=0;s>=7;s{let e;for(e=0;e{r.bi_valid>8?La(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},GO=(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?Dn(r,n,e):(a=Na[n],Dn(r,a+Qa+1,e),l=Gc[a],l!==0&&(n-=of[a],Lr(r,n,l)),s--,a=q1(s),Dn(r,a,t),l=il[a],l!==0&&(s-=al[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=R1,a=0;a>1;a>=1;a--)Lc(r,t,a);u=i;do a=r.heap[1],r.heap[1]=r.heap[r.heap_len--],Lc(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++,Lc(r,t,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],LN(r,e),U1(t,o,r.bl_count)},YO=(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(YO(r,r.dyn_ltree,r.l_desc.max_code),YO(r,r.dyn_dtree,r.d_desc.max_code),Xc(r,r.bl_desc),e=sf-1;e>=3&&r.bl_tree[L1[e]*2+1]===0;e--);return r.opt_len+=3*(e+1)+5+5+4,e},jN=(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{KO||($N(),KO=!0),r.l_desc=new Nc(r.dyn_ltree,$1),r.d_desc=new Nc(r.dyn_dtree,M1),r.bl_desc=new Nc(r.bl_tree,j1),r.bi_buf=0,r.bi_valid=0,V1(r)},Z1=(r,e,t,s)=>{Lr(r,(TN<<1)+(s?1:0),3),W1(r),La(r,t),La(r,~t),t&&r.pending_buf.set(r.window.subarray(e,e+t),r.pending),r.pending+=t},UN=r=>{Lr(r,I1<<1,3),Dn(r,af,ts),NN(r)},VN=(r,e,t,s)=>{let n,i,a=0;r.level>0?(r.strm.data_type===2&&(r.strm.data_type=qN(r)),Xc(r,r.l_desc),Xc(r,r.d_desc),a=MN(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?Z1(r,e,t,s):r.strategy===4||i===n?(Lr(r,(I1<<1)+(s?1:0),3),XO(r,ts,_a)):(Lr(r,(DN<<1)+(s?1:0),3),jN(r,r.l_desc.max_code+1,r.d_desc.max_code+1,a+1),XO(r,r.dyn_ltree,r.dyn_dtree)),V1(r),s&&W1(r)},WN=(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[(Na[t]+Qa+1)*2]++,r.dyn_dtree[q1(e)*2]++),r.sym_next===r.sym_end),ZN=QN,zN=Z1,GN=VN,XN=WN,YN=UN,HN={_tr_init:ZN,_tr_stored_block:zN,_tr_flush_block:GN,_tr_tally:XN,_tr_align:YN},KN=(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},$a=KN,JN=()=>{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},eL=new Uint32Array(JN()),tL=(r,e,t,s)=>{let n=eL,i=s+t;r^=-1;for(let a=s;a>>8^n[(r^e[a])&255];return r^-1},mr=tL,Gs={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"},Hs={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:rL,_tr_stored_block:Yc,_tr_flush_block:nL,_tr_tally:Os,_tr_align:sL}=HN,{Z_NO_FLUSH:Ss,Z_PARTIAL_FLUSH:iL,Z_FULL_FLUSH:aL,Z_FINISH:en,Z_BLOCK:JO,Z_OK:vr,Z_STREAM_END:e1,Z_STREAM_ERROR:_n,Z_DATA_ERROR:oL,Z_BUF_ERROR:$c,Z_DEFAULT_COMPRESSION:lL,Z_FILTERED:uL,Z_HUFFMAN_ONLY:el,Z_RLE:cL,Z_FIXED:fL,Z_DEFAULT_STRATEGY:pL,Z_UNKNOWN:hL,Z_DEFLATED:ul}=Hs,dL=9,mL=15,gL=8,yL=29,bL=256,Hc=bL+1+yL,xL=30,vL=19,OL=2*Hc+1,SL=15,Rt=3,vs=258,In=vs+Rt+1,EL=32,Ri=42,lf=57,Kc=69,Jc=73,ef=91,tf=103,Zs=113,Ta=666,Tr=1,Ni=2,Xs=3,Li=4,wL=3,zs=(r,e)=>(r.msg=Gs[e],e),t1=r=>r*2-(r>4?9:0),xs=r=>{let e=r.length;for(;--e>=0;)r[e]=0},CL=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)},kL=(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))},Zr=(r,e)=>{nL(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,e),r.block_start=r.strstart,Wr(r.strm)},$t=(r,e)=>{r.pending_buf[r.pending++]=e},Pa=(r,e)=>{r.pending_buf[r.pending++]=e>>>8&255,r.pending_buf[r.pending++]=e&255},rf=(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=$a(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)},z1=(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-In?r.strstart-(r.w_size-In):0,u=r.window,c=r.w_mask,p=r.prev,h=r.strstart+vs,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},Fi=r=>{let e=r.w_size,t,s,n;do{if(s=r.window_size-r.lookahead-r.strstart,r.strstart>=e+(e-In)&&(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),CL(r),s+=e),r.strm.avail_in===0)break;if(t=rf(r.strm,r.window,r.strstart+r.lookahead,s),r.lookahead+=t,r.lookahead+r.insert>=Rt)for(n=r.strstart-r.insert,r.ins_h=r.window[n],r.ins_h=Es(r,r.ins_h,r.window[n+1]);r.insert&&(r.ins_h=Es(r,r.ins_h,r.window[n+Rt-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,Wr(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&&(rf(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&&(rf(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!==Ss&&r.strm.avail_in===0&&n<=i)&&(s=n>i?i:n,a=e===en&&r.strm.avail_in===0&&s===n?1:0,Yc(r,r.block_start,s,a),r.block_start+=s,Wr(r.strm)),a?Xs:Tr)},Mc=(r,e)=>{let t,s;for(;;){if(r.lookahead=Rt&&(r.ins_h=Es(r,r.ins_h,r.window[r.strstart+Rt-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-In&&(r.match_length=z1(r,t)),r.match_length>=Rt)if(s=Os(r,r.strstart-r.match_start,r.match_length-Rt),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=Rt){r.match_length--;do r.strstart++,r.ins_h=Es(r,r.ins_h,r.window[r.strstart+Rt-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=Es(r,r.ins_h,r.window[r.strstart+1]);else s=Os(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(s&&(Zr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=r.strstart{let t,s,n;for(;;){if(r.lookahead=Rt&&(r.ins_h=Es(r,r.ins_h,r.window[r.strstart+Rt-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=Rt-1,t!==0&&r.prev_length4096)&&(r.match_length=Rt-1)),r.prev_length>=Rt&&r.match_length<=r.prev_length){n=r.strstart+r.lookahead-Rt,s=Os(r,r.strstart-1-r.prev_match,r.prev_length-Rt),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=n&&(r.ins_h=Es(r,r.ins_h,r.window[r.strstart+Rt-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=Rt-1,r.strstart++,s&&(Zr(r,!1),r.strm.avail_out===0))return Tr}else if(r.match_available){if(s=Os(r,0,r.window[r.strstart-1]),s&&Zr(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=Os(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<=vs){if(Fi(r),r.lookahead<=vs&&e===Ss)return Tr;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=Rt&&r.strstart>0&&(n=r.strstart-1,s=a[n],s===a[++n]&&s===a[++n]&&s===a[++n])){i=r.strstart+vs;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>=Rt?(t=Os(r,1,r.match_length-Rt),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(t=Os(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),t&&(Zr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Zr(r,!0),r.strm.avail_out===0?Xs:Li):r.sym_next&&(Zr(r,!1),r.strm.avail_out===0)?Tr:Ni},PL=(r,e)=>{let t;for(;;){if(r.lookahead===0&&(Fi(r),r.lookahead===0)){if(e===Ss)return Tr;break}if(r.match_length=0,t=Os(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,t&&(Zr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Zr(r,!0),r.strm.avail_out===0?Xs:Li):r.sym_next&&(Zr(r,!1),r.strm.avail_out===0)?Tr:Ni};function Tn(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 Da=[new Tn(0,0,0,0,G1),new Tn(4,4,8,4,Mc),new Tn(4,5,16,8,Mc),new Tn(4,6,32,32,Mc),new Tn(4,4,16,16,Di),new Tn(8,16,32,32,Di),new Tn(8,16,128,128,Di),new Tn(8,32,128,256,Di),new Tn(32,128,258,1024,Di),new Tn(32,258,258,4096,Di)],TL=r=>{r.window_size=2*r.w_size,xs(r.head),r.max_lazy_match=Da[r.level].max_lazy,r.good_match=Da[r.level].good_length,r.nice_match=Da[r.level].nice_length,r.max_chain_length=Da[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=Rt-1,r.match_available=0,r.ins_h=0};function DL(){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=ul,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(OL*2),this.dyn_dtree=new Uint16Array((2*xL+1)*2),this.bl_tree=new Uint16Array((2*vL+1)*2),xs(this.dyn_ltree),xs(this.dyn_dtree),xs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(SL+1),this.heap=new Uint16Array(2*Hc+1),xs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Hc+1),xs(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 Ua=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.status!==Ri&&e.status!==lf&&e.status!==Kc&&e.status!==Jc&&e.status!==ef&&e.status!==tf&&e.status!==Zs&&e.status!==Ta?1:0},X1=r=>{if(Ua(r))return zs(r,_n);r.total_in=r.total_out=0,r.data_type=hL;let e=r.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?lf:e.wrap?Ri:Zs,r.adler=e.wrap===2?0:1,e.last_flush=-2,rL(e),vr},Y1=r=>{let e=X1(r);return e===vr&&TL(r.state),e},_L=(r,e)=>Ua(r)||r.state.wrap!==2?_n:(r.state.gzhead=e,vr),H1=(r,e,t,s,n,i)=>{if(!r)return _n;let a=1;if(e===lL&&(e=6),s<0?(a=0,s=-s):s>15&&(a=2,s-=16),n<1||n>dL||t!==ul||s<8||s>15||e<0||e>9||i<0||i>fL||s===8&&a!==1)return zs(r,_n);s===8&&(s=9);let l=new DL;return r.state=l,l.strm=r,l.status=Ri,l.wrap=a,l.gzhead=null,l.w_bits=s,l.w_size=1<H1(r,e,ul,mL,gL,pL),RL=(r,e)=>{if(Ua(r)||e>JO||e<0)return r?zs(r,_n):_n;let t=r.state;if(!r.output||r.avail_in!==0&&!r.input||t.status===Ta&&e!==en)return zs(r,r.avail_out===0?$c:_n);let s=t.last_flush;if(t.last_flush=e,t.pending!==0){if(Wr(r),r.avail_out===0)return t.last_flush=-1,vr}else if(r.avail_in===0&&t1(e)<=t1(s)&&e!==en)return zs(r,$c);if(t.status===Ta&&r.avail_in!==0)return zs(r,$c);if(t.status===Ri&&t.wrap===0&&(t.status=Zs),t.status===Ri){let n=ul+(t.w_bits-8<<4)<<8,i=-1;if(t.strategy>=el||t.level<2?i=0:t.level<6?i=1:t.level===6?i=2:i=3,n|=i<<6,t.strstart!==0&&(n|=EL),n+=31-n%31,Pa(t,n),t.strstart!==0&&(Pa(t,r.adler>>>16),Pa(t,r.adler&65535)),r.adler=1,t.status=Zs,Wr(r),t.pending!==0)return t.last_flush=-1,vr}if(t.status===lf){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>=el||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=Kc;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>=el||t.level<2?4:0),$t(t,wL),t.status=Zs,Wr(r),t.pending!==0)return t.last_flush=-1,vr}if(t.status===Kc){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,Wr(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=Jc}if(t.status===Jc){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)),Wr(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=ef}if(t.status===ef){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)),Wr(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=tf}if(t.status===tf){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Wr(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=Zs,Wr(r),t.pending!==0)return t.last_flush=-1,vr}if(r.avail_in!==0||t.lookahead!==0||e!==Ss&&t.status!==Ta){let n=t.level===0?G1(t,e):t.strategy===el?PL(t,e):t.strategy===cL?AL(t,e):Da[t.level].func(t,e);if((n===Xs||n===Li)&&(t.status=Ta),n===Tr||n===Xs)return r.avail_out===0&&(t.last_flush=-1),vr;if(n===Ni&&(e===iL?sL(t):e!==JO&&(Yc(t,0,0,!1),e===aL&&(xs(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Wr(r),r.avail_out===0))return t.last_flush=-1,vr}return e!==en?vr:t.wrap<=0?e1:(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)):(Pa(t,r.adler>>>16),Pa(t,r.adler&65535)),Wr(r),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?vr:e1)},FL=r=>{if(Ua(r))return _n;let e=r.state.status;return r.state=null,e===Zs?zs(r,oL):vr},BL=(r,e)=>{let t=e.length;if(Ua(r))return _n;let s=r.state,n=s.wrap;if(n===2||n===1&&s.status!==Ri||s.lookahead)return _n;if(n===1&&(r.adler=$a(r.adler,e,t,0)),s.wrap=0,t>=s.w_size){n===0&&(xs(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,Fi(s);s.lookahead>=Rt;){let o=s.strstart,u=s.lookahead-(Rt-1);do s.ins_h=Es(s,s.ins_h,s.window[o+Rt-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=Rt-1,Fi(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=Rt-1,s.match_available=0,r.next_in=a,r.input=l,r.avail_in=i,s.wrap=n,vr},NL=IL,LL=H1,$L=Y1,ML=X1,jL=_L,qL=RL,QL=FL,UL=BL,VL="pako deflate (from Nodeca project)",Ia={deflateInit:NL,deflateInit2:LL,deflateReset:$L,deflateResetKeep:ML,deflateSetHeader:jL,deflate:qL,deflateEnd:QL,deflateSetDictionary:UL,deflateInfo:VL},WL=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),ZL=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)WL(t,s)&&(r[s]=t[s])}}return r},zL=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;Ma[254]=Ma[254]=1;var GL=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},XL=(r,e)=>{if(e<65534&&r.subarray&&K1)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 XL(i,n)},HL=(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+Ma[r[t]]>e?t:e},ja={string2buf:GL,buf2string:YL,utf8border:HL};function KL(){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 J1=KL,eS=Object.prototype.toString,{Z_NO_FLUSH:JL,Z_SYNC_FLUSH:e$,Z_FULL_FLUSH:t$,Z_FINISH:r$,Z_OK:ol,Z_STREAM_END:n$,Z_DEFAULT_COMPRESSION:s$,Z_DEFAULT_STRATEGY:i$,Z_DEFLATED:a$}=Hs;function Va(r){this.options=cl.assign({level:s$,method:a$,chunkSize:16384,windowBits:15,memLevel:8,strategy:i$},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 J1,this.strm.avail_out=0;let t=Ia.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==ol)throw new Error(Gs[t]);if(e.header&&Ia.deflateSetHeader(this.strm,e.header),e.dictionary){let s;if(typeof e.dictionary=="string"?s=ja.string2buf(e.dictionary):eS.call(e.dictionary)==="[object ArrayBuffer]"?s=new Uint8Array(e.dictionary):s=e.dictionary,t=Ia.deflateSetDictionary(this.strm,s),t!==ol)throw new Error(Gs[t]);this._dict_set=!0}}Va.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?r$:JL,typeof r=="string"?t.input=ja.string2buf(r):eS.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===e$||i===t$)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(n=Ia.deflate(t,i),n===n$)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),n=Ia.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===ol;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};Va.prototype.onData=function(r){this.chunks.push(r)};Va.prototype.onEnd=function(r){r===ol&&(this.result=cl.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function uf(r,e){let t=new Va(e);if(t.push(r,!0),t.err)throw t.msg||Gs[t.err];return t.result}function o$(r,e){return e=e||{},e.raw=!0,uf(r,e)}function l$(r,e){return e=e||{},e.gzip=!0,uf(r,e)}var u$=Va,c$=uf,f$=o$,p$=l$,h$=Hs,d$={Deflate:u$,deflate:c$,deflateRaw:f$,gzip:p$,constants:h$},tl=16209,m$=16191,g$=function(e,t){let s,n,i,a,l,o,u,c,p,h,f,d,m,g,y,x,v,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=v>>>16&255,S===0)A[i++]=v&65535;else if(S&16){w=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=tl;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=tl;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=tl;break e}else{v=g[(v&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,x=0,v,S,w,O,C,E=null,k,A=new Uint16Array(_i+1),D=new Uint16Array(_i+1),_=null,B,T,R;for(u=0;u<=_i;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===s1||h!==1))return-1;for(D[1]=0,u=1;u<_i;u++)D[u+1]=D[u]+A[u];for(c=0;cr1||r===i1&&y>n1)return 1;for(;;){B=u-m,a[c]+1=k?(T=_[a[c]-k],R=E[a[c]-k]):(T=96,R=0),v=1<>m)+S]=B<<24|T<<16|R|0;while(S!==0);for(v=1<>=1;if(v!==0?(x&=v-1,x+=v):x=0,c++,--A[u]===0){if(u===h)break;u=e[t+a[c]]}if(u>f&&(x&O)!==w){for(m===0&&(m=f),C+=p,d=u-m,g=1<r1||r===i1&&y>n1)return 1;w=x&O,n[w]=f<<24|d<<16|C-i|0}}return x!==0&&(n[C+x]=u-m<<24|64<<16|0),l.bits=f,0},Ra=O$,S$=0,tS=1,rS=2,{Z_FINISH:a1,Z_BLOCK:E$,Z_TREES:rl,Z_OK:Ys,Z_STREAM_END:w$,Z_NEED_DICT:C$,Z_STREAM_ERROR:tn,Z_DATA_ERROR:nS,Z_MEM_ERROR:sS,Z_BUF_ERROR:k$,Z_DEFLATED:o1}=Hs,fl=16180,l1=16181,u1=16182,c1=16183,f1=16184,p1=16185,h1=16186,d1=16187,m1=16188,g1=16189,ll=16190,es=16191,qc=16192,y1=16193,Qc=16194,b1=16195,x1=16196,v1=16197,O1=16198,nl=16199,sl=16200,S1=16201,E1=16202,w1=16203,C1=16204,k1=16205,Uc=16206,A1=16207,P1=16208,tr=16209,iS=16210,aS=16211,A$=852,P$=592,T$=15,D$=T$,T1=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function _$(){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 Ks=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.modeaS?1:0},oS=r=>{if(Ks(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=fl,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(A$),e.distcode=e.distdyn=new Int32Array(P$),e.sane=1,e.back=-1,Ys},lS=r=>{if(Ks(r))return tn;let e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,oS(r)},uS=(r,e)=>{let t;if(Ks(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,lS(r))},cS=(r,e)=>{if(!r)return tn;let t=new _$;r.state=t,t.strm=r,t.window=null,t.mode=fl;let s=uS(r,e);return s!==Ys&&(r.state=null),s},I$=r=>cS(r,D$),D1=!0,Vc,Wc,R$=r=>{if(D1){Vc=new Int32Array(512),Wc=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(Ra(tS,r.lens,0,288,Vc,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;Ra(rS,r.lens,0,32,Wc,0,r.work,{bits:5}),D1=!1}r.lencode=Vc,r.lenbits=9,r.distcode=Wc,r.distbits=5},fS=(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,x,v,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(Ks(r)||!r.output||!r.input&&r.avail_in!==0)return tn;t=r.state,t.mode===es&&(t.mode=qc),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=Ys;e:for(;;)switch(t.mode){case fl:if(t.wrap===0){t.mode=qc;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=l1;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)!==o1){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=u1;case u1: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=c1;case c1: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=f1;case f1: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=p1;case p1: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=h1;case h1: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 g1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>=c&7,c-=c&7,t.mode=Uc;break}for(;c<3;){if(l===0)break e;l--,u+=s[i++]<>>=1,c-=1,u&3){case 0:t.mode=y1;break;case 1:if(R$(t),t.mode=nl,e===rl){u>>>=2,c-=2;break e}break;case 2:t.mode=x1;break;case 3:r.msg="invalid block type",t.mode=tr}u>>>=2,c-=2;break;case y1: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=Qc,e===rl)break e;case Qc:t.mode=b1;case b1: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 x1: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=v1;case v1: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=Ra(S$,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=O1;case O1:for(;t.have>>24,x=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}C=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,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=Ra(tS,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=Ra(rS,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=nl,e===rl)break e;case nl:t.mode=sl;case sl: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,g$(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,x=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,x=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,x===0){t.mode=k1;break}if(x&32){t.back=-1,t.mode=es;break}if(x&64){r.msg="invalid literal/length code",t.mode=tr;break}t.extra=x&15,t.mode=S1;case S1:if(t.extra){for(D=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=E1;case E1:for(;g=t.distcode[u&(1<>>24,x=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,x=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,x&64){r.msg="invalid distance code",t.mode=tr;break}t.offset=v,t.extra=x&15,t.mode=w1;case w1: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=C1;case C1: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=sl);break;case k1:if(o===0)break e;n[a++]=t.length,o--,t.mode=sl;break;case Uc:if(t.wrap){for(;c<32;){if(l===0)break e;l--,u|=s[i++]<{if(Ks(r))return tn;let e=r.state;return e.window&&(e.window=null),r.state=null,Ys},N$=(r,e)=>{if(Ks(r))return tn;let t=r.state;return t.wrap&2?(t.head=e,e.done=!1,Ys):tn},L$=(r,e)=>{let t=e.length,s,n,i;return Ks(r)||(s=r.state,s.wrap!==0&&s.mode!==ll)?tn:s.mode===ll&&(n=1,n=$a(n,e,t,0),n!==s.check)?nS:(i=fS(r,e,t,t),i?(s.mode=iS,sS):(s.havedict=1,Ys))},$$=lS,M$=uS,j$=oS,q$=I$,Q$=cS,U$=F$,V$=B$,W$=N$,Z$=L$,z$="pako inflate (from Nodeca project)",rs={inflateReset:$$,inflateReset2:M$,inflateResetKeep:j$,inflateInit:q$,inflateInit2:Q$,inflate:U$,inflateEnd:V$,inflateGetHeader:W$,inflateSetDictionary:Z$,inflateInfo:z$};function G$(){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 X$=G$,pS=Object.prototype.toString,{Z_NO_FLUSH:Y$,Z_FINISH:H$,Z_OK:qa,Z_STREAM_END:Zc,Z_NEED_DICT:zc,Z_STREAM_ERROR:K$,Z_DATA_ERROR:_1,Z_MEM_ERROR:J$}=Hs;function Wa(r){this.options=cl.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 J1,this.strm.avail_out=0;let t=rs.inflateInit2(this.strm,e.windowBits);if(t!==qa)throw new Error(Gs[t]);if(this.header=new X$,rs.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=ja.string2buf(e.dictionary):pS.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=rs.inflateSetDictionary(this.strm,e.dictionary),t!==qa)))throw new Error(Gs[t])}Wa.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?H$:Y$,pS.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===zc&&n&&(i=rs.inflateSetDictionary(t,n),i===qa?i=rs.inflate(t,a):i===_1&&(i=zc));t.avail_in>0&&i===Zc&&t.state.wrap>0&&r[t.next_in]!==0;)rs.inflateReset(t),i=rs.inflate(t,a);switch(i){case K$:case _1:case zc:case J$:return this.onEnd(i),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||i===Zc))if(this.options.to==="string"){let o=ja.utf8border(t.output,t.next_out),u=t.next_out-o,c=ja.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===qa&&l===0)){if(i===Zc)return i=rs.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Wa.prototype.onData=function(r){this.chunks.push(r)};Wa.prototype.onEnd=function(r){r===qa&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=cl.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function cf(r,e){let t=new Wa(e);if(t.push(r),t.err)throw t.msg||Gs[t.err];return t.result}function eM(r,e){return e=e||{},e.raw=!0,cf(r,e)}var tM=Wa,rM=cf,nM=eM,sM=cf,iM=Hs,aM={Inflate:tM,inflate:rM,inflateRaw:nM,ungzip:sM,constants:iM},{Deflate:oM,deflate:lM,deflateRaw:uM,gzip:cM}=d$,{Inflate:fM,inflate:pM,inflateRaw:hM,ungzip:dM}=aM,mM=oM,gM=lM,yM=uM,bM=cM,xM=fM,vM=pM,OM=hM,SM=dM,EM=Hs,ff={Deflate:mM,deflate:gM,deflateRaw:yM,gzip:bM,Inflate:xM,inflate:vM,inflateRaw:OM,ungzip:SM,constants:EM};var It=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]=Ui(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),Mi.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]=Ui(this,e,t);let s=[];return this.decompose(e,t,s,0),Mi.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 ti(this),i=new ti(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 ti(this,e)}iterRange(e,t=this.length){return new ml(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 gl(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):Mi.from(zr.split(e,[]))}},zr=class r extends It{constructor(e,t=wM(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 hf(n,l,s,a);n=l+1,s++}}decompose(e,t,s,n){let i=e<=0&&t>=this.length?this:new r(hS(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let a=s.pop(),l=dl(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]=Ui(this,e,t);let n=dl(this.text,dl(s.text,hS(this.text,0,e)),t),i=this.length+s.length-(t-e);return n.length<=32?new r(n,i):Mi.from(r.split(n,[]),i)}sliceString(e,t=this.length,s=` `){[e,t]=Ui(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}},Mi=class r extends It{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]=Ui(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]=Ui(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)}};It.empty=new zr([""],0);function CM(r){let e=-1;for(let t of r)e+=t.length+1;return e}function dl(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)}},ml=class{constructor(e,t,s){this.value="",this.done=!1,this.cursor=new ti(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!=""}},gl=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"&&(It.prototype[Symbol.iterator]=function(){return this.iter()},ti.prototype[Symbol.iterator]=ml.prototype[Symbol.iterator]=gl.prototype[Symbol.iterator]=function(){return this});var hf=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 Ui(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}var ji="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 ji[e-1]<=r;return!1}function dS(r){return r>=127462&&r<=127487}var mS=8205;function ur(r,e,t=!0,s=!0){return(t?OS:AM)(r,e,s)}function OS(r,e,t){if(e==r.length)return e;e&&SS(r.charCodeAt(e))&&ES(r.charCodeAt(e-1))&&e--;let s=gr(r,e);for(e+=$r(s);e=0&&dS(gr(r,a));)i++,a-=2;if(i%2==0)break;e+=2}else break}return e}function AM(r,e,t){for(;e>0;){let s=OS(r,e-2,t);if(s=56320&&r<57344}function ES(r){return r>=55296&&r<56320}function gr(r,e){let t=r.charCodeAt(e);if(!ES(t)||e+1==r.length)return t;let s=r.charCodeAt(e+1);return SS(s)?(t-55296<<10)+(s-56320)+65536:t}function Ha(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 df=/\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 mf(this,(t,s,n,i,a)=>e=e.replace(n,n+(s-t),a),!1),e}mapDesc(e,t=!1){return gf(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&&ws(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"?It.of(f.split(s||df)):f:It.empty,m=d.length;if(p==h&&m==0)return;pa&&Cr(n,p-a,-1),Cr(n,h-p,m),ws(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 ws(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 gf(r,e,t,s=!1){let n=[],i=s?[]:null,a=new ri(r),l=new ri(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 ri=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?It.empty:e[t]}textBit(e){let{inserted:t}=this.set,s=this.i-2>>1;return s>=t.length&&!e?It.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)}},$i=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=>$i.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 CS(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}var kf=0,ct=class r{constructor(e,t,s,n,i){this.combine=e,this.compareInput=t,this.compare=s,this.isStatic=n,this.id=kf++,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:Af),!!e.static,e.enables)}of(e){return new qi([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qi(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qi(e,this,2,t)}from(e,t){return t||(t=s=>s),this.compute([e],s=>t(s.field(e)))}};function Af(r,e){return r==e||r.length==e.length&&r.every((t,s)=>t===e[s])}var qi=class{constructor(e,t,s,n){this.dependencies=e,this.facet=t,this.type=s,this.value=n,this.id=kf++}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)||yf(p,c)){let f=s(p);if(l?!gS(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=vl(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?gS(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 gS(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(yS).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,yS.of({field:this,create:e})]}get extension(){return this}},Js={lowest:4,low:3,default:2,high:1,highest:0};function Za(r){return e=>new yl(e,r)}var rn={highest:Za(Js.highest),high:Za(Js.high),default:Za(Js.default),low:Za(Js.low),lowest:Za(Js.lowest)},yl=class{constructor(e,t){this.inner=e,this.prec=t}},bl=class r{of(e){return new Ga(this,e)}reconfigure(e){return r.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Ga=class{constructor(e,t){this.compartment=e,this.inner=t}},xl=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 TM(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,Af(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=>PM(g,d,f))}}let p=u.map(h=>h(l));return new r(e,a,p,l,o,i)}};function TM(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 Ga&&t.delete(a.compartment)}if(n.set(a,l),Array.isArray(a))for(let u of a)i(u,l);else if(a instanceof Ga){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 yl)i(a.inner,a.prec);else if(a instanceof Yt)s[l].push(a),a.provides&&i(a.provides,l);else if(a instanceof qi)s[l].push(a),a.facet.extensions&&i(a.facet.extensions,Js.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,Js.default),s.reduce((a,l)=>a.concat(l))}function za(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 vl(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}var kS=ct.define(),bf=ct.define({combine:r=>r.some(e=>e),static:!0}),AS=ct.define({combine:r=>r.length?r[0]:void 0,static:!0}),PS=ct.define(),TS=ct.define(),DS=ct.define(),_S=ct.define({combine:r=>r.length?r[0]:!1}),Mr=class{constructor(e,t){this.type=e,this.value=t}static define(){return new xf}},xf=class{of(e){return new Mr(this,e)}},vf=class{constructor(e){this.map=e}of(e){return new Et(this,e)}},Et=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 vf(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}};Et.reconfigure=Et.define();Et.appendConfig=Et.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&&CS(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 DM(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=RS(e,Qi(i),!1)}return r}function IM(r){let e=r.startState,t=e.facet(DS),s=r;for(let n=t.length-1;n>=0;n--){let i=t[n](r);i&&Object.keys(i).length&&(s=IS(s,Of(e,i,r.changes.newLength),!0))}return s==r?r:lr.create(e,r.changes,r.selection,s.effects,s.annotations,s.scrollIntoView)}var RM=[];function Qi(r){return r==null?RM: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={})),FM=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Sf;try{Sf=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function BM(r){if(Sf)return Sf.test(r);for(let e=0;e"\x80"&&(t.toUpperCase()!=t.toLowerCase()||FM.test(t)))return!0}return!1}function NM(r){return e=>{if(!/\S/.test(e))return Wt.Space;if(BM(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(Et.reconfigure)?(t=null,s=l.value):l.is(Et.appendConfig)&&(t=null,s=Qi(s).concat(l.value));let i;t?i=e.startState.values.slice():(t=xl.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(bf)?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=Qi(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=xl.resolve(e.extensions||[],new Map),s=e.doc instanceof It?e.doc:It.of((e.doc||"").split(t.staticFacet(r.lineSeparator)||df)),n=e.selection?e.selection instanceof Ze?e.selection:Ze.single(e.selection.anchor,e.selection.head):Ze.single(0);return CS(n,s.length),t.staticFacet(bf)||(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(_S)}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(kS))for(let a of i(this,t,s))Object.prototype.hasOwnProperty.call(a,e)&&n.push(a[e]);return n}charCategorizer(e){return NM(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=AS;Ut.readOnly=_S;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=kS;Ut.changeFilter=PS;Ut.transactionFilter=TS;Ut.transactionExtender=DS;bl.reconfigure=Et.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 Xa.create(e,t,this)}};yn.prototype.startSide=yn.prototype.endSide=0;yn.prototype.point=!1;yn.prototype.mapMode=fr.TrackDel;var Xa=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 Ef(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}var wf=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(Ef)),this.isEmpty)return t.length?r.of(t):this;let l=new Ol(this,null,-1).goto(0),o=0,u=[],c=new Rn;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 Ya.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ya.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=bS(a,l,s),u=new ei(a,o,i),c=new ei(l,o,i);s.iterGaps((p,h,f)=>xS(u,p,c,h,f,n)),s.empty&&s.length==0&&xS(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=bS(i,a),o=new ei(i,l,0).goto(s),u=new ei(a,l,0).goto(s);for(;;){if(o.to!=u.to||!Cf(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 ei(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 Rn;for(let n of e instanceof Xa?[e]:t?LM(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 LM(r){if(r.length>1)for(let e=r[0],t=1;t0)return r.slice().sort(Ef);e=s}return r}Mt.empty.nextLayer=Mt.empty;var Rn=class r{finishChunk(e){this.chunks.push(new wf(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 bS(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 Ol(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--)pf(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--)pf(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(),pf(this.heap,0)}}};function pf(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 ei=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=Ya.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){pl(this.active,e),pl(this.activeTo,e),pl(this.activeRank,e),this.minActive=vS(this.active,this.activeTo)}addActive(e){let t=0,{value:s,to:n,rank:i}=this.cursor;for(;t0;)t++;hl(this.active,t,s),hl(this.activeTo,t,n),hl(this.activeRank,t,i),e&&hl(e,t,this.cursor.from),this.minActive=vS(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&&pl(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 xS(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))&&Cf(r.activeForPoint(r.to),t.activeForPoint(t.to))||i.comparePoint(l,p,r.point,t.point):p>l&&!Cf(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 Cf(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 vS(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 Pf="\u037C",FS=typeof Symbol>"u"?"__"+Pf:Symbol.for(Pf),Tf=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),BS=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(` +`){[e,t]=Ui(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)}};It.empty=new zr([""],0);function wM(r){let e=-1;for(let t of r)e+=t.length+1;return e}function dl(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)}},ml=class{constructor(e,t,s){this.value="",this.done=!1,this.cursor=new ti(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!=""}},gl=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"&&(It.prototype[Symbol.iterator]=function(){return this.iter()},ti.prototype[Symbol.iterator]=ml.prototype[Symbol.iterator]=gl.prototype[Symbol.iterator]=function(){return this});var hf=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 Ui(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}var ji="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 ji[e-1]<=r;return!1}function dS(r){return r>=127462&&r<=127487}var mS=8205;function ur(r,e,t=!0,s=!0){return(t?OS:kM)(r,e,s)}function OS(r,e,t){if(e==r.length)return e;e&&SS(r.charCodeAt(e))&&ES(r.charCodeAt(e-1))&&e--;let s=gr(r,e);for(e+=$r(s);e=0&&dS(gr(r,a));)i++,a-=2;if(i%2==0)break;e+=2}else break}return e}function kM(r,e,t){for(;e>0;){let s=OS(r,e-2,t);if(s=56320&&r<57344}function ES(r){return r>=55296&&r<56320}function gr(r,e){let t=r.charCodeAt(e);if(!ES(t)||e+1==r.length)return t;let s=r.charCodeAt(e+1);return SS(s)?(t-55296<<10)+(s-56320)+65536:t}function Ha(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 df=/\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 mf(this,(t,s,n,i,a)=>e=e.replace(n,n+(s-t),a),!1),e}mapDesc(e,t=!1){return gf(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&&ws(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"?It.of(f.split(s||df)):f:It.empty,m=d.length;if(p==h&&m==0)return;pa&&Cr(n,p-a,-1),Cr(n,h-p,m),ws(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 ws(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 gf(r,e,t,s=!1){let n=[],i=s?[]:null,a=new ri(r),l=new ri(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 ri=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?It.empty:e[t]}textBit(e){let{inserted:t}=this.set,s=this.i-2>>1;return s>=t.length&&!e?It.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)}},$i=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=>$i.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 CS(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}var kf=0,ct=class r{constructor(e,t,s,n,i){this.combine=e,this.compareInput=t,this.compare=s,this.isStatic=n,this.id=kf++,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:Af),!!e.static,e.enables)}of(e){return new qi([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qi(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qi(e,this,2,t)}from(e,t){return t||(t=s=>s),this.compute([e],s=>t(s.field(e)))}};function Af(r,e){return r==e||r.length==e.length&&r.every((t,s)=>t===e[s])}var qi=class{constructor(e,t,s,n){this.dependencies=e,this.facet=t,this.type=s,this.value=n,this.id=kf++}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)||yf(p,c)){let f=s(p);if(l?!gS(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=vl(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?gS(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 gS(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(yS).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,yS.of({field:this,create:e})]}get extension(){return this}},Js={lowest:4,low:3,default:2,high:1,highest:0};function Za(r){return e=>new yl(e,r)}var rn={highest:Za(Js.highest),high:Za(Js.high),default:Za(Js.default),low:Za(Js.low),lowest:Za(Js.lowest)},yl=class{constructor(e,t){this.inner=e,this.prec=t}},bl=class r{of(e){return new Ga(this,e)}reconfigure(e){return r.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Ga=class{constructor(e,t){this.compartment=e,this.inner=t}},xl=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 PM(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,Af(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=>AM(g,d,f))}}let p=u.map(h=>h(l));return new r(e,a,p,l,o,i)}};function PM(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 Ga&&t.delete(a.compartment)}if(n.set(a,l),Array.isArray(a))for(let u of a)i(u,l);else if(a instanceof Ga){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 yl)i(a.inner,a.prec);else if(a instanceof Yt)s[l].push(a),a.provides&&i(a.provides,l);else if(a instanceof qi)s[l].push(a),a.facet.extensions&&i(a.facet.extensions,Js.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,Js.default),s.reduce((a,l)=>a.concat(l))}function za(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 vl(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}var kS=ct.define(),bf=ct.define({combine:r=>r.some(e=>e),static:!0}),AS=ct.define({combine:r=>r.length?r[0]:void 0,static:!0}),PS=ct.define(),TS=ct.define(),DS=ct.define(),_S=ct.define({combine:r=>r.length?r[0]:!1}),Mr=class{constructor(e,t){this.type=e,this.value=t}static define(){return new xf}},xf=class{of(e){return new Mr(this,e)}},vf=class{constructor(e){this.map=e}of(e){return new Et(this,e)}},Et=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 vf(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}};Et.reconfigure=Et.define();Et.appendConfig=Et.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&&CS(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 TM(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=RS(e,Qi(i),!1)}return r}function _M(r){let e=r.startState,t=e.facet(DS),s=r;for(let n=t.length-1;n>=0;n--){let i=t[n](r);i&&Object.keys(i).length&&(s=IS(s,Of(e,i,r.changes.newLength),!0))}return s==r?r:lr.create(e,r.changes,r.selection,s.effects,s.annotations,s.scrollIntoView)}var IM=[];function Qi(r){return r==null?IM: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={})),RM=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Sf;try{Sf=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function FM(r){if(Sf)return Sf.test(r);for(let e=0;e"\x80"&&(t.toUpperCase()!=t.toLowerCase()||RM.test(t)))return!0}return!1}function BM(r){return e=>{if(!/\S/.test(e))return Wt.Space;if(FM(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(Et.reconfigure)?(t=null,s=l.value):l.is(Et.appendConfig)&&(t=null,s=Qi(s).concat(l.value));let i;t?i=e.startState.values.slice():(t=xl.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(bf)?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=Qi(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=xl.resolve(e.extensions||[],new Map),s=e.doc instanceof It?e.doc:It.of((e.doc||"").split(t.staticFacet(r.lineSeparator)||df)),n=e.selection?e.selection instanceof Ze?e.selection:Ze.single(e.selection.anchor,e.selection.head):Ze.single(0);return CS(n,s.length),t.staticFacet(bf)||(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(_S)}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(kS))for(let a of i(this,t,s))Object.prototype.hasOwnProperty.call(a,e)&&n.push(a[e]);return n}charCategorizer(e){return BM(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=AS;Ut.readOnly=_S;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=kS;Ut.changeFilter=PS;Ut.transactionFilter=TS;Ut.transactionExtender=DS;bl.reconfigure=Et.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 Xa.create(e,t,this)}};yn.prototype.startSide=yn.prototype.endSide=0;yn.prototype.point=!1;yn.prototype.mapMode=fr.TrackDel;var Xa=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 Ef(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}var wf=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(Ef)),this.isEmpty)return t.length?r.of(t):this;let l=new Ol(this,null,-1).goto(0),o=0,u=[],c=new Rn;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 Ya.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ya.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=bS(a,l,s),u=new ei(a,o,i),c=new ei(l,o,i);s.iterGaps((p,h,f)=>xS(u,p,c,h,f,n)),s.empty&&s.length==0&&xS(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=bS(i,a),o=new ei(i,l,0).goto(s),u=new ei(a,l,0).goto(s);for(;;){if(o.to!=u.to||!Cf(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 ei(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 Rn;for(let n of e instanceof Xa?[e]:t?NM(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 NM(r){if(r.length>1)for(let e=r[0],t=1;t0)return r.slice().sort(Ef);e=s}return r}Mt.empty.nextLayer=Mt.empty;var Rn=class r{finishChunk(e){this.chunks.push(new wf(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 bS(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 Ol(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--)pf(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--)pf(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(),pf(this.heap,0)}}};function pf(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 ei=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=Ya.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){pl(this.active,e),pl(this.activeTo,e),pl(this.activeRank,e),this.minActive=vS(this.active,this.activeTo)}addActive(e){let t=0,{value:s,to:n,rank:i}=this.cursor;for(;t0;)t++;hl(this.active,t,s),hl(this.activeTo,t,n),hl(this.activeRank,t,i),e&&hl(e,t,this.cursor.from),this.minActive=vS(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&&pl(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 xS(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))&&Cf(r.activeForPoint(r.to),t.activeForPoint(t.to))||i.comparePoint(l,p,r.point,t.point):p>l&&!Cf(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 Cf(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 vS(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 Pf="\u037C",FS=typeof Symbol>"u"?"__"+Pf:Symbol.for(Pf),Tf=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),BS=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=BS[FS]||1;return BS[FS]=e+1,Pf+e.toString(36)}static mount(e,t,s){let n=e[Tf],i=s&&s.nonce;n?i&&n.setNonce(i):n=new Df(e,i),n.mount(Array.isArray(t)?t:[t],e)}},NS=new Map,Df=class{constructor(e,t){let s=e.ownerDocument||e,n=s.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let i=NS.get(s);if(i)return e[Tf]=i;this.sheet=new n.CSSStyleSheet,NS.set(s,this)}else this.styleTag=s.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Tf]=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:'"'},$M=typeof navigator<"u"&&/Mac/.test(navigator.platform),MM=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),Vi[cr]=String.fromCharCode(cr);var cr;for(El in is)Vi.hasOwnProperty(El)||(Vi[El]=is[El]);var El;function LS(r){var e=$M&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||MM&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Vi: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 fo(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function $f(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function jM(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Rl(r,e){if(!e.anchorNode)return!1;try{return $f(r,e.anchorNode)}catch{return!1}}function po(r){return r.nodeType==3?ii(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function so(r,e,t,s){return t?$S(r,e,t,s,-1)||$S(r,e,t,s,1):!1}function si(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Ml(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function $S(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=si(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 Ap(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function qM(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 CE(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 QM(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=qM(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 x=c.getBoundingClientRect();({scaleX:d,scaleY:m}=CE(c,x)),h={left:x.left,right:x.left+c.clientWidth*d,top:x.top,bottom:x.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.leftn.clientHeight&&(s=n),!t&&n.scrollWidth>n.clientWidth&&(t=n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;return{x:t,y:s}}var Mf=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}},Wi=null;function kE(r){if(r.setActive)return r.setActive();if(Wi)return r.focus(Wi);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(Wi==null?{get preventScroll(){return Wi={preventScroll:!0},!0}}:void 0),!Wi){Wi=!1;for(let t=0;tMath.max(1,r.scrollHeight-r.clientHeight-4)}function TE(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&&!Ml(t))s=si(t),t=t.parentNode;else return null}}function DE(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=Pp){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 _E(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:US||/Mac/.test(jr.platform),windows:/Win/.test(jr.platform),linux:/Linux|X11/.test(jr.platform),ie:eu,ie_version:RE?jf.documentMode||6:Qf?+Qf[1]:qf?+qf[1]:0,gecko:qS,gecko_version:qS?+(/Firefox\/(\d+)/.exec(jr.userAgent)||[0,0])[1]:0,chrome:!!_f,chrome_version:_f?+_f[1]:0,ios:US,android:/Android\b/.test(jr.userAgent),webkit:QS,safari:FE,webkit_version:QS?+(/\bAppleWebKit\/(\d+)/.exec(jr.userAgent)||[0,0])[1]:0,tabSize:jf.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},ZM=256,$n=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>ZM||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 zM(this.dom,e,t)}},Ps=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(AE(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 BE(this,e)}coordsAt(e,t){return LE(this,e,t)}};function zM(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?Ap(o,a<0):o||null}var ho=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 It.empty}get isHidden(){return!0}};$n.prototype.children=ho.prototype.children=mo.prototype.children=Pp;function BE(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 Ps&&n.length&&(s=n[n.length-1])instanceof Ps&&s.mark.eq(e.mark)?NE(s,e.children[0],t-1):(n.push(e),e.setParent(r)),r.length+=e.length}function LE(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 Vf(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 XM(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){ql(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){NE(this,e,t)}addLineDeco(e){let t=e.spec.attributes,s=e.spec.class;t&&(this.attrs=Uf(t,this.attrs||{})),s&&(this.attrs=Uf({class:s},this.attrs||{}))}domAtPos(e){return BE(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var s;this.dom?this.flags&4&&(AE(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&&(Vf(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 Ps;)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 $n))){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 $n)||/[^ -~]/.test(s.text))return null;let n=po(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=LE(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}},ni=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 go(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 Ts(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}=$E(e,t);s=(i?t?-3e8:-1:5e8)-1,n=(a?t?2e8:1:-6e8)+1}return new Ts(e,s,n,t,e.widget||null,!0)}static line(e){return new yo(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 go=class r extends yt{constructor(e){let{start:t,end:s}=$E(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))&&ql(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)}};go.prototype.point=!1;var yo=class r extends yt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof r&&this.spec.class==e.spec.class&&ql(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)}};yo.prototype.mapMode=fr.TrackBefore;yo.prototype.point=!0;var Ts=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&&YM(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)}};Ts.prototype.point=!0;function $E(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 YM(r,e){return r==e||!!(r&&e&&r.compare(e))}function Wf(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 io=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 ni&&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(wl(new mo(-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 ni)&&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(wl(new $n(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 Ts){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 Ts)if(s.block)s.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ni(s.widget||Ds.block,l,s));else{let o=ho.create(s.widget||Ds.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(wl(new mo(1),n),i),i=n.length+Math.max(0,i-n.length)),p.append(wl(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 wl(r,e){for(let t of e)r=new Ps(t,[r],r.length);return r}var Ds=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}};Ds.inline=new Ds("span");Ds.block=new Ds("div");var Zt=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(Zt||(Zt={})),ai=Zt.LTR,Tp=Zt.RTL;function ME(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 qE(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&&(Gt[p]=Gt[Fn[m]]=y),l=m;break}}else{if(Fn.length==189)break;Fn[l++]=p,Fn[l++]=h,Fn[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=Fn[g+2];if(y&2)break;if(m)Fn[g+2]|=2;else{if(y&4)break;Fn[g+2]|=4}}}}}function r3(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 zf(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 Nn(o,m.from,f));let g=m.direction==ai!=!(f%2);Gf(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?zf(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==ai?0:1;return Gf(r,n,n,t,0,r.length,s),s}function QE(r){return[new Nn(0,r,0)]}var UE="";function s3(r,e,t,s,n){var i;let a=s.head-r.from,l=Nn.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),UE=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)}),HE=ct.define({combine:r=>r.some(e=>e)}),KE=ct.define(),ao=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)}},Cl=Et.define({map:(r,e)=>r.map(e)}),JE=Et.define();function yr(r,e,t){let s=r.facet(zE);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 Cs=ct.define({combine:r=>r.length?r[0]:!0}),a3=0,Ja=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(a3++,e,s,n,l=>{let o=[Ja.of(l)];return a&&o.push(bo.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)}},oo=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}},ew=ct.define(),tu=ct.define(),bo=ct.define(),tw=ct.define(),Dp=ct.define(),rw=ct.define();function WS(r,e){let t=r.state.facet(rw);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=i3(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 nw=ct.define();function sw(r){let e=0,t=0,s=0,n=0;for(let i of r.state.facet(nw)){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 eo=ct.define(),Ln=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}}},Ql=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 Ln(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}},Ul=class extends Xt{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=yt.none,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 Ln(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),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!h3(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let i=n>-1?l3(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;s=new Ln(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=f3(a,l,e.changes);return s=Ln.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=io.build(this.view.state.doc,c,s.range.fromB,this.decorations,this.dynamicDecorationMap),w=io.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}=io.build(this.view.state.doc,c,p,this.decorations,this.dynamicDecorationMap));let{i:g,off:y}=i.findPos(u,1),{i:x,off:v}=i.findPos(o,-1);_E(this,x,v,g,y,h,f,d,m)}s&&this.fixCompositionDOM(s)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let s of t.effects)s.is(JE)&&(this.editContextFormatting=s.value)}compositionView(e){let t=new $n(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new Ps(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&&Rl(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&&o3(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||(!so(o.node,o.offset,c.anchorNode,c.anchorOffset)||!so(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)&&p3(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=fo(this.view.root);if(p)if(l.empty){if(ft.gecko){let h=u3(o.node,o.offset);if(h&&h!=3){let f=(h==1?TE:DE)(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&&so(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=fo(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;else if(s&&u==e&&o==e&&l instanceof ni&&Math.abs(t)<2){if(l.deco.startSide<0)break;a&&(s=null)}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 $n))return null;let i=ur(n.text,s);if(i==s)return null;let a=ii(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?po(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=po(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 jl(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 Vl(l),block:!0,inclusive:!0,isBlockGap:!0}).range(s,a))}if(!i)break;s=i.to+1}return yt.set(e)}updateDeco(){let e=1,t=this.view.state.facet(bo).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),s=!1,n=this.view.state.facet(tw).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=[this.editContextFormatting,...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=sw(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;QM(this.view.scrollDOM,a,t.head{se.from&&(t=!0)}),t}function d3(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 g3(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function If(r,e){return r.tope.top+1}function ZS(r,e){return er.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Yf(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=po(d);for(let g=0;gv||a==v&&i>x){s=d,n=y,i=x,a=v;let S=v?t0?g0)}x==0?t>y.bottom&&(!c||c.bottomy.top)&&(u=d,p=y):c&&If(c,y)?c=zS(c,y.bottom):p&&If(p,y)&&(p=ZS(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 GS(s,h,t);if(l&&s.contentEditable!="false")return Yf(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 GS(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)&&ii(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 aw(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:XS(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,x=-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:x}=S)}else if(d.caretRangeFromPoint){let S=d.caretRangeFromPoint(c,p);S&&({startContainer:y,startOffset:x}=S,(!r.contentDOM.contains(y)||ft.safari&&y3(y,x,c)||ft.chrome&&b3(y,x,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:x}=Yf(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+Sl(a,i,r.state.tabSize)}function y3(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 ii(r,s-1,s).getBoundingClientRect().left>t}function b3(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():ii(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-s.left>5}function Hf(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 x3(r,e,t,s){let n=Hf(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 YS(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=s3(n,i,a,l,t),c=UE;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 v3(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 O3(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=aw(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&&N3(e.contentDOM.ownerDocument)}handleEvent(e){!P3(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=S3(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&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&lw.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),ft.android&&ft.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return ft.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=ow.find(s=>s.keyCode==e.keyCode))&&!e.ctrlKey||E3.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.view.observer.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 HS(r,e){return(t,s)=>{try{return e.call(r,s,t)}catch(n){yr(t.state,n)}}}function S3(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(HS(s.value,a))}if(n&&n.domEventObservers)for(let i in n.domEventObservers){let a=n.domEventObservers[i];a&&t(i).observers.push(HS(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 ow=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],E3="dthko",lw=[16,17,18,20,91,92,224,225],kl=6;function Al(r){return Math.max(0,r)*.7+8}function w3(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}var Jf=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.scrollParents=UM(e.contentDOM),this.atoms=e.state.facet(Dp).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)&&C3(e,t),this.dragging=A3(e,t)&&pw(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&w3(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,s=0,n=0,i=0,a=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:l}=this.scrollParents.y.getBoundingClientRect());let o=sw(this.view);e.clientX-o.left<=n+kl?t=-Al(n-e.clientX):e.clientX+o.right>=a-kl&&(t=Al(e.clientX-a)),e.clientY-o.top<=i+kl?s=-Al(i-e.clientY):e.clientY+o.bottom>=l-kl&&(s=Al(e.clientY-l)),this.setScrollSpeed(t,s)}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(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let s=0;st.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function C3(r,e){let t=r.state.facet(VE);return t.length?t[0](e):ft.mac?e.metaKey:e.ctrlKey}function k3(r,e){let t=r.state.facet(WE);return t.length?t[0](e):ft.mac?!e.altKey:!e.ctrlKey}function A3(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let s=fo(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 P3(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),uw=ft.ie&&ft.ie_version<15||ft.ios&&ft.webkit_version<604;function T3(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(),cw(r,t.value)},50)}function cw(r,e){let{state:t}=r,s,n=1,i=t.toText(e),a=i.lines==t.selection.ranges.length;if(ep!=null&&t.selection.ranges.every(o=>o.empty)&&ep==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.tabFocusMode!=0&&(r.inputState.tabFocusMode=Date.now()+2e3),!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(ZE))if(t=s(r,e),t)break;if(!t&&e.button==0&&(t=I3(r,e)),t){let s=!r.hasFocus;r.inputState.startMouseSelection(new Jf(r,e,t,s)),s&&r.observer.ignore(()=>{kE(r.contentDOM);let i=r.root.activeElement;i&&!i.contains(r.contentDOM)&&i.blur()});let n=r.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};function KS(r,e,t,s){if(s==1)return Ze.cursor(e,t);if(s==2)return d3(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,JS=(r,e,t)=>fw(e,t)&&r>=t.left&&r<=t.right;function D3(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&&JS(t,s,a))return-1;let l=n.coordsAt(i,1);return l&&JS(t,s,l)?1:a&&fw(s,a)?-1:1}function eE(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:D3(r,t,e.clientX,e.clientY)}}var _3=ft.ie&&ft.ie_version<=11,tE=null,rE=0,nE=0;function pw(r){if(!_3)return r.detail;let e=tE,t=nE;return tE=r,nE=Date.now(),rE=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(rE+1)%3:1}function I3(r,e){let t=eE(r,e),s=pw(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=eE(r,i),u,c=KS(r,o.pos,o.bias,s);if(t.pos!=o.pos&&!a){let p=KS(r,t.pos,t.bias,s),h=Math.min(p.from,c.from),f=Math.max(p.to,c.to);c=h1&&(u=R3(n,o.pos))?u:l?n.addRange(c):Ze.create([c])}}}function R3(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 sE(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&&k3(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&&sE(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 sE(r,e,s,!0),!0}return!1};bn.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=uw?null:e.clipboardData;return t?(cw(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(T3(r),!1)};function F3(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 B3(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 ep=null;bn.copy=bn.cut=(r,e)=>{let{text:t,ranges:s,linewise:n}=B3(r.state);if(!t&&!n)return!1;ep=n?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let i=uw?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",t),!0):(F3(r,t),!1)};var hw=Mr.define();function dw(r,e){let t=[];for(let s of r.facet(XE)){let n=s(r,e);n&&t.push(n)}return t?r.update({effects:t,annotations:hw.of(!0)}):null}function mw(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=dw(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),mw(r)};on.blur=r=>{r.observer.clearSelectionRange(),mw(r)};on.compositionstart=on.compositionupdate=r=>{r.observer.editContext||(r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0))};on.compositionend=r=>{r.observer.editContext||(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=ow.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 iE=new Set;function N3(r){iE.has(r)||(iE.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}var aE=["pre-wrap","normal","pre-line","break-spaces"],tp=class{constructor(e){this.lineWrapping=e,this.doc=It.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 aE.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)>Bl&&(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 Wl{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,s,n){return new Bn(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 As&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof As?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:""})`}},As=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)>=Bl&&(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)>=Bl||Math.abs(o-this.heightMetrics(e,t).perLine)>=Bl)&&(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})`}},np=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&&oE(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 oE(r,e){let t,s;r[e]==null&&(t=r[e-1])instanceof As&&(s=r[e+1])instanceof As&&r.splice(e-1,3,new As(t.length+1+s.length))}var L3=5,sp=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=L3)&&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 As(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 j3(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}var lo=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 tp(t),this.stateDeco=e.facet(bo).filter(s=>typeof s!="function"),this.heightMap=Gr.empty().applyChanges(this.stateDeco,It.empty,this.heightOracle.setDoc(e.doc),[new Ln(0,0,0,e.doc.length)]);for(let s=0;s<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());s++);this.updateViewportLines(),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 Zi(i,a))}}return this.viewports=e.sort((s,n)=>s.from-n.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?lE:new op(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(to(e,this.scaler))})}update(e,t=null){this.state=e.state;let s=this.stateDeco;this.stateDeco=this.state.facet(bo).filter(c=>typeof c!="function");let n=e.changedRanges,i=Ln.extendWithRanges(n,$3(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=o.from!=this.viewport.from||o.to!=this.viewport.to;this.viewport=o,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&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(HE)&&(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}=CE(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=PE(e.scrollDOM);let d=(this.printing?j3:M3)(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 x=l.width;if((this.contentDOMWidth!=x||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(x-this.contentDOMWidth)>n.charWidth){let{lineHeight:w,charWidth:O,textHeight:C}=e.docView.measureTextSize();a=w>0&&n.refresh(i,w,O,C,x/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,It.empty,this.heightOracle,[new Ln(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,a,new rp(w.from,O))}n.heightChanged&&(u|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=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 Zi(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=(c,p,h,f)=>{if(p-cc&&yy.from>=h.from&&y.to<=h.to&&Math.abs(y.from-c)y.fromx));if(!g){if(py.from<=p&&y.to>=p)){let y=t.moveToLineBoundary(Ze.cursor(p),!1,!0).head;y>c&&(p=y)}g=new lo(c,p,this.gapSize(h,c,p,f))}l.push(g)},u=c=>{if(c.lengthc.from&&o(c.from,f,c,p),dt.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)||to(this.heightMap.lineAt(e,Ht.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||to(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 to(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}},Zi=class{constructor(e,t){this.from=e,this.to=t}};function q3(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 Tl(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 Q3(r,e){for(let t of r)if(e(t))return t}var lE={toDOM(r){return r},fromDOM(r){return r},scale:1,eq(r){return r==this}},op=class r{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=tt.from==e.viewports[s].from&&t.to==e.viewports[s].to):!1}};function to(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),s=e.toDOM(r.bottom);return new Bn(r.from,r.length,t,s-t,Array.isArray(r._content)?r._content.map(n=>to(n,e)):r._content)}var Dl=ct.define({combine:r=>r.join(" ")}),lp=ct.define({combine:r=>r.indexOf(!0)>-1}),up=nn.newName(),gw=nn.newName(),yw=nn.newName(),bw={"&light":"."+gw,"&dark":"."+yw};function cp(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 U3=cp("."+up,{"&":{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"}},bw),ro="\uFFFF",fp=class{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Ut.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=ro}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:Ml(n))||Ml(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+(V3(e,s.node,s.offset)?t:0))}};function V3(r,e,t){for(;;){if(!e||t-1;let{impreciseHead:i,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,s,0))){let l=i||a?[]:z3(e),o=new fp(l,e.state);o.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=o.text,this.newSel=G3(l,this.bounds.from)}else{let l=e.observer.selectionRange,o=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!$f(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||!$f(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:It.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:It.of([" "])}),t)return vw(r,t,s,i);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 vw(r,e,t,s=-1){if(ft.ios&&r.inputState.flushIOSKey(e))return!0;let n=r.state.selection.main;if(ft.android&&(e.to==n.to&&(e.from==n.from||e.from==n.from-1&&r.state.sliceDoc(e.from,n.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Xi(r.contentDOM,"Enter",13)||(e.from==n.from-1&&e.to==n.to&&e.insert.length==0||s==8&&e.insert.lengthn.head)&&Xi(r.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&e.insert.length==0&&Xi(r.contentDOM,"Delete",46)))return!0;let i=e.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let a,l=()=>a||(a=W3(r,e,t));return r.state.facet(GE).some(o=>o(r,e.from,e.to,i,l))||r.dispatch(l()),!0}function W3(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&&iw(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}),x=d.to-i.to;return{changes:y,range:o?Ze.range(Math.max(0,o.anchor+x),Math.max(0,o.head+x)):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 Z3(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 z3(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 zl(t,s)),(n!=t||i!=s)&&e.push(new zl(n,i))),e}function G3(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 X3={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ff=ft.ie&&ft.ie_version<=11,hp=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Mf,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()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(ft.chrome&&ft.chrome_version<126)&&(this.editContext=new dp(e),e.state.facet(Cs)&&(e.contentDOM.editContext=this.editContext.editContext)),Ff&&(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.editContext&&this.view.requestMeasure(this.editContext.measureReq),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(Cs)?s.root.activeElement!=this.dom:!Rl(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&&so(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=fo(e.root);if(!t)return!1;let s=ft.safari&&e.root.nodeType==11&&jM(this.dom.ownerDocument)==this.dom&&Y3(this.view,t)||t;if(!s||this.selectionRange.eq(s))return!1;let n=Rl(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&&Xi(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&&Rl(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 pp(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=xw(this.view,t);return this.view.state==s&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&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=uE(t,e.previousSibling||e.target.previousSibling,-1),n=uE(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)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Cs)!=e.state.facet(Cs)&&(e.view.contentDOM.editContext=e.state.facet(Cs)?this.editContext.editContext:null))}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),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function uE(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 cE(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 so(a.node,a.offset,n,i)&&([t,s,n,i]=[n,i,t,s]),{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}}function Y3(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return cE(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?cE(r,t):null}var dp=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=s=>{let{anchor:n}=e.state.selection.main,i={from:this.toEditorPos(s.updateRangeStart),to:this.toEditorPos(s.updateRangeEnd),insert:It.of(s.text.split(` -`))};i.from==this.from&&nthis.to&&(i.to=n),!(i.from==i.to&&!i.insert.length)&&(this.pendingContextChange=i,vw(e,i,Ze.single(this.toEditorPos(s.selectionStart),this.toEditorPos(s.selectionEnd))),this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)))},this.handlers.characterboundsupdate=s=>{let n=[],i=null;for(let a=this.toEditorPos(s.rangeStart),l=this.toEditorPos(s.rangeEnd);a{let n=[];for(let i of s.getTextFormats()){let a=i.underlineStyle,l=i.underlineThickness;if(a!="None"&&l!="None"){let o=`text-decoration: underline ${a=="Dashed"?"dashed ":a=="Squiggle"?"wavy ":""}${l=="Thin"?1:2}px`;n.push(yt.mark({attributes:{style:o}}).range(this.toEditorPos(i.rangeStart),this.toEditorPos(i.rangeEnd)))}}e.dispatch({effects:JE.of(yt.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null};for(let s in this.handlers)t.addEventListener(s,this.handlers[s]);this.measureReq={read:s=>{this.editContext.updateControlBounds(s.contentDOM.getBoundingClientRect());let n=fo(s.root);n&&n.rangeCount&&this.editContext.updateSelectionBounds(n.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,s=!1,n=this.pendingContextChange;return e.changes.iterChanges((i,a,l,o,u)=>{if(s)return;let c=u.length-(a-i);if(n&&a>=n.to)if(n.from==i&&n.to==a&&n.insert.eq(u)){n=this.pendingContextChange=null,t+=c,this.to+=c;return}else n=null,this.revertPending(e.state);if(i+=t,a+=t,a<=this.from)this.from+=c,this.to+=c;else if(ithis.to||this.to-this.from+u.length>3e4){s=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(a),u.toString()),this.to+=c}t+=c}),n&&!s&&this.revertPending(e.state),!s}update(e){let t=this.pendingContextChange;!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,s=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);(this.editContext.selectionStart!=s||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(s,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},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||VM(e.parent)||document,this.viewState=new Zl(e.state||Ut.create(e)),e.scrollTo&&e.scrollTo.is(Cl)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ja).map(s=>new oo(s));for(let s of this.plugins)s.update(this);this.observer=new hp(this),this.inputState=new Kf(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ul(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(hw))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,o=dw(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=Ql.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 ao(f.empty?f:Ze.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of h.effects)f.is(Cl)&&(p=f.value.clip(this.state))}this.viewState.update(n,p),this.bidiCache=Gl.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(eo)!=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(Dl)!=n.state.facet(Dl)&&(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(Xf))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&&!xw(this,c)&&u.force&&Xi(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 Zl(e),this.plugins=e.facet(Ja).map(s=>new oo(s)),this.pluginMap.clear();for(let s of this.plugins)s.update(this);this.docView.destroy(),this.docView=new Ul(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(Ja),s=e.state.facet(Ja);if(t!=s){let n=[];for(let i of s){let a=t.indexOf(i);if(a<0)n.push(new oo(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(PE(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),fE}}),p=Ql.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(Xf))l(t)}get themeClasses(){return up+" "+(this.state.facet(lp)?yw:gw)+" "+this.state.facet(Dl)}updateAttrs(){let e=pE(this,ew,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Cs)?"true":"false",class:"cm-content",style:`${ft.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),pE(this,tu,t);let s=this.observer.ignore(()=>{let n=Vf(this.contentDOM,this.contentAttrs,t),i=Vf(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(eo);let e=this.state.facet(r.cspNonce);nn.mount(this.root,this.styleModules.concat(U3).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 Rf(this,e,YS(this,e,t,s))}moveByGroup(e,t){return Rf(this,e,YS(this,e,t,s=>v3(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 x3(this,e,t,s)}moveVertically(e,t,s){return Rf(this,e,O3(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(),aw(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[Nn.find(i,e-n.from,-1,t)];return Ap(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(YE)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>H3)return QE(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||qE(i.isolates,s=WS(this,e))))return i.order;s||(s=WS(this,e));let n=n3(e.text,t,s);return this.bidiCache.push(new Gl(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(()=>{kE(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(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();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 Cl.of(new ao(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 Cl.of(new ao(Ze.cursor(s.from),"start","start",s.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}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=[Dl.of(s),eo.of(cp(`.${s}`,e))];return t&&t.dark&&n.push(lp.of(!0)),n}static baseTheme(e){return rn.lowest(eo.of(cp("."+up,e,bw)))}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=eo;at.inputHandler=GE;at.scrollHandler=KE;at.focusChangeEffect=XE;at.perLineTextDirection=YE;at.exceptionSink=zE;at.updateListener=Xf;at.editable=Cs;at.mouseSelectionStyle=ZE;at.dragMovesSelection=WE;at.clickAddsSelectionRange=VE;at.decorations=bo;at.outerDecorations=tw;at.atomicRanges=Dp;at.bidiIsolatedRanges=rw;at.scrollMargins=nw;at.darkTheme=lp;at.cspNonce=ct.define({combine:r=>r.length?r[0]:""});at.contentAttributes=tu;at.editorAttributes=ew;at.lineWrapping=at.contentAttributes.of({class:"cm-lineWrapping"});at.announce=Et.define();var H3=4096,fE={},Gl=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&&Uf(a,t)}return t}var K3=ft.mac?"mac":ft.windows?"win":ft.linux?"linux":"key";function J3(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 Sw(r,e,t){return Ew(Ow(r.state),e,r,t)}var ks=null,tj=4e3;function rj(r,e=K3){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=>J3(y,e));for(let y=1;y{let S=ks={view:v,prefix:x,scope:a};return setTimeout(()=>{ks==S&&(ks=null)},tj),!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:[]});let{any:p}=a;for(let h in c)c[h].run.push(f=>p(f,mp))}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}var mp=null;function Ew(r,e,t,s){mp=e;let n=LS(e),i=gr(n,0),a=$r(i)==n.length&&n!=" ",l="",o=!1,u=!1,c=!1;ks&&ks.view==t&&ks.scope==s&&(l=ks.prefix+" ",lw.indexOf(e.keyCode)<0&&(u=!0,ks=null));let p=new Set,h=g=>{if(g){for(let y of g.run)if(!p.has(y)&&(p.add(y),y(t)))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+_l(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+_l(d,e,!0)])||e.shiftKey&&(m=Vi[e.keyCode])!=n&&m!=d&&h(f[l+_l(m,e,!1)]))&&(o=!0):a&&e.shiftKey&&h(f[l+_l(n,e,!0)])&&(o=!0),!o&&h(f._any)&&(o=!0)),u&&(o=!0),o&&c&&e.stopPropagation(),mp=null,o}var xo=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=ww(e);return[new r(t,n.left-i.left,n.top-i.top,null,n.bottom-n.top)]}else return nj(e,t,s)}};function ww(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 dE(r,e,t,s){let n=r.coordsAtPos(e,t*2);if(!n)return s;let i=r.dom.getBoundingClientRect(),a=(n.top+n.bottom)/2,l=r.posAtCoords({x:i.left+1,y:a}),o=r.posAtCoords({x:i.right-1,y:a});return l==null||o==null?s:{from:Math.max(s.from,Math.min(l,o)),to:Math.min(s.to,Math.max(l,o))}}function nj(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=ww(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=Hf(r,s),d=Hf(r,n),m=f.type==Ir.Text?f:null,g=d.type==Ir.Text?d:null;if(m&&(r.lineWrapping||f.widgetLineBreaks)&&(m=dE(r,s,1,m)),g&&(r.lineWrapping||d.widgetLineBreaks)&&(g=dE(r,n,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return x(v(t.from,t.to,m));{let w=m?v(t.from,null,m):S(f,!1),O=g?v(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 sj(r,e){return r.constructor==e.constructor&&r.eq(e)}var gp=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(Nl)!=e.state.facet(Nl)&&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(Nl);for(;t!sj(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()}},Nl=ct.define();function Cw(r){return[rr.define(e=>new gp(e,r)),Nl.of(r)]}var kw=!ft.ios,vo=ct.define({combine(r){return kr(r,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Aw(r={}){return[vo.of(r),ij,aj,oj,HE.of(!0)]}function Pw(r){return r.startState.facet(vo)!=r.state.facet(vo)}var ij=Cw({above:!0,markers(r){let{state:e}=r,t=e.facet(vo),s=[];for(let n of e.selection.ranges){let i=n==e.selection.main;if(n.empty?!i||kw: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 xo.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=Pw(r);return t&&mE(r.state,e),r.docChanged||r.selectionSet||t},mount(r,e){mE(e.state,r)},class:"cm-cursorLayer"});function mE(r,e){e.style.animationDuration=r.facet(vo).cursorBlinkRate+"ms"}var aj=Cw({above:!1,markers(r){return r.state.selection.ranges.map(e=>e.empty?[]:xo.forRange(r,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(r,e){return r.docChanged||r.selectionSet||r.viewportChanged||Pw(r)},class:"cm-selectionLayer"}),yp={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};kw&&(yp[".cm-line"].caretColor=yp[".cm-content"].caretColor="transparent !important");var oj=rn.highest(at.theme(yp)),Tw=Et.define({map(r,e){return r==null?null:e.mapPos(r)}}),no=Yt.define({create(){return null},update(r,e){return r!=null&&(r=e.changes.mapPos(r)),e.effects.reduce((t,s)=>s.is(Tw)?s.value:t,r)}}),lj=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(no);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(no)!=t||r.docChanged||r.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:r}=this,e=r.state.field(no),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(no)!=r&&this.view.dispatch({effects:Tw.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 Dw(){return[no,lj]}function gE(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 uj(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 bp=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 Rn,s=t.add.bind(t);for(let{from:n,to:i}of uj(e,this.maxLength))gE(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}},xp=/x/.unicode!=null?"gu":"g",cj=new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,xp),fj={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"},Bf=null;function pj(){var r;if(Bf==null&&typeof document<"u"&&document.body){let e=document.body.style;Bf=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return Bf||!1}var Ll=ct.define({combine(r){let e=kr(r,{render:null,specialChars:cj,addSpecialChars:null});return(e.replaceTabs=!pj())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,xp)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,xp)),e}});function _w(r={}){return[Ll.of(r),hj()]}var yE=null;function hj(){return yE||(yE=rr.fromClass(class{constructor(r){this.view=r,this.decorations=yt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Ll)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new bp({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 Op((l-o%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=yt.replace({widget:new vp(r,i)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Ll);r.startState.facet(Ll)!=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 dj="\u2022";function mj(r){return r>=32?dj:r==10?"\u2424":String.fromCharCode(9216+r)}var vp=class extends an{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=mj(this.code),s=e.state.phrase("Control character")+" "+(fj[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}},Op=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}},bE=rr.fromClass(class{constructor(){this.height=1e3,this.attrs={style:"padding-bottom: 1000px"}}update(r){let{view:e}=r,t=e.viewState.editorHeight-e.defaultLineHeight-e.documentPadding.top-.5;t>=0&&t!=this.height&&(this.height=t,this.attrs={style:`padding-bottom: ${t}px`})}});function Iw(){return[bE,tu.of(r=>{var e;return((e=r.plugin(bE))===null||e===void 0?void 0:e.attrs)||null})]}function Rw(){return yj}var gj=yt.line({class:"cm-activeLine"}),yj=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(gj.range(n.from)),e=n.from)}return yt.set(t)}},{decorations:r=>r.decorations});var Sp=2e3;function bj(r,e,t){let s=Math.min(e.line,t.line),n=Math.max(e.line,t.line),i=[];if(e.off>Sp||t.off>Sp||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=Sl(u.text,a,r.tabSize,!0);if(c<0)i.push(Ze.cursor(u.to));else{let p=Sl(u.text,l,r.tabSize);i.push(Ze.range(u.from+c,u.from+p))}}}return i}function xj(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function xE(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>Sp?-1:n==s.length?xj(r,e.clientX):ss(s.text,r.state.tabSize,t-s.from);return{line:s.number,col:i,off:n}}function vj(r,e){let t=xE(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=xE(r,n);if(!l)return s;let o=bj(r.state,t,l);return o.length?a?Ze.create(o.concat(s.ranges)):Ze.create(o):s}}:null}function Fw(r){let e=r?.eventFilter||(t=>t.altKey&&t.button==0);return at.mouseSelectionStyle.of((t,s)=>e(s)?vj(t,s):null)}var Oj={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},Sj={style:"cursor: crosshair"};function Bw(r={}){let[e,t]=Oj[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?Sj:null})]}var Ka="-10000px",Xl=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 Ej(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}var Nf=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)||Ej}}}),vE=new WeakMap,_p=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(Nf);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 Xl(r,Yi,(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(Nf);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=Ka,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==Ka&&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(Nf).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=Ka;continue}let f=o.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,d=f?7:0,m=h.right-h.left,g=(e=vE.get(u))!==null&&e!==void 0?e:h.bottom-h.top,y=u.offset||Cj,x=this.view.textDirection==Zt.LTR,v=h.width>s.right-s.left?x?s.left:s.right-h.width:x?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(wv&&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+(x?y.x:-y.x)-(v+14-7);f.style.left=E/n+"px"}u.overlap!==!0&&a.push({left:v,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=Ka}},{eventObservers:{scroll(){this.maybeMeasure()}}}),wj=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"}}}),Cj={x:0,y:0},Yi=ct.define({enables:[_p,wj]}),Yl=ct.define({combine:r=>r.reduce((e,t)=>e.concat(t),[])}),Hl=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 Xl(e,Yl,(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")}},kj=Yi.compute([Yl],r=>{let e=r.facet(Yl);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:Hl.create,above:e[0].above,arrow:e.some(t=>t.arrow)}}),Ep=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(_p),t=e?e.manager.tooltips.findIndex(s=>s.create==Hl.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&&!Aj(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:!Pj(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)}},Il=4;function Aj(r,e){let t=r.getBoundingClientRect();return e.clientX>=t.left-Il&&e.clientX<=t.right+Il&&e.clientY>=t.top-Il&&e.clientY<=t.bottom+Il}function Pj(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 Nw(r,e={}){let t=Et.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(Tj)&&(n=[]);return n},provide:n=>Yl.from(n)});return[s,rr.define(n=>new Ep(n,r,s,t,e.hoverTime||300)),kj]}function Ip(r,e){let t=r.plugin(_p);if(!t)return null;let s=t.manager.tooltips.indexOf(e);return s<0?null:t.manager.tooltipViews[s]}var Tj=Et.define();var OE=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 Hi(r,e){let t=r.plugin(Lw),s=t?t.specs.indexOf(e):-1;return s>-1?t.panels[s]:null}var Lw=rr.fromClass(class{constructor(r){this.input=r.state.facet(oi),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(OE);this.top=new zi(r,!0,e.topContainer),this.bottom=new zi(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(OE);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new zi(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new zi(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(oi);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()}})}),zi=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=SE(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=SE(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 SE(r){let e=r.nextSibling;return r.remove(),e}var oi=ct.define({enables:Lw}),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 $l=ct.define(),Dj={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Mt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},uo=ct.define();function Rp(r){return[$w(),uo.of(Object.assign(Object.assign({},Dj),r))]}var wp=ct.define({combine:r=>r.some(e=>e)});function $w(r){let e=[_j];return r&&r.fixed===!1&&e.push(wp.of(!0)),e}var _j=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(uo).map(e=>new Kl(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(wp),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(wp)!=!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($l),this.view.viewport.from),s=[],n=this.gutters.map(i=>new kp(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){Cp(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){Cp(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(uo),t=r.state.facet(uo),s=r.docChanged||r.heightChanged||r.viewportChanged||!Mt.eq(r.startState.facet($l),r.state.facet($l),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 Kl(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 EE(r){return Array.isArray(r)?r:[r]}function Cp(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}var kp=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 Jl(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=[];Cp(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()}}},Kl=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=EE(t.markers(e)),t.initialSpacer&&(this.spacer=new Jl(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=EE(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()}},Jl=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":""),Ij(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}})}}),co=class extends Xr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function Lf(r,e){return r.state.facet(Gi).formatNumber(e,r.state)}var Fj=uo.compute([Gi],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Rj)},lineMarker(e,t,s){return s.some(n=>n.toDOM)?null:new co(Lf(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Gi)!=e.state.facet(Gi),initialSpacer(e){return new co(Lf(e,wE(e.state.doc.lines)))},updateSpacer(e,t){let s=Lf(t.view,wE(t.view.state.doc.lines));return s==e.number?e:new co(s)},domEventHandlers:r.facet(Gi).domEventHandlers}));function Mw(r={}){return[Gi.of(r),$w(),Fj]}function wE(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(Bj.range(n)))}return Mt.of(e)});function jw(){return Nj}var Lj=0,Oo=class{constructor(e,t){this.from=e,this.to=t}},kt=class{constructor(e={}){this.id=Lj++,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 Ki=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]}},$j=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):$j,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 So=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:jp(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 jj(e)}};or.empty=new or(Ar.none,[],[],0);var Fp=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)}},Is=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 Eo(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(Vw(n,s,p,p+c.length)){if(c instanceof Is){if(i&nr.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,t,s-p,n);if(h>-1)return new li(new Np(a,c,e,p),null,h)}else if(i&nr.IncludeAnonymous||!c.type.isAnonymous||Mp(c)){let h;if(!(i&nr.IgnoreMounts)&&(h=Ki.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=Ki.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 Qw(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 Bp(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 Np=class{constructor(e,t,s,n){this.parent=e,this.buffer=t,this.index=s,this.start=n}},li=class r extends su{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 Ww(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(Eo(l,e,t,!1))}}return n?Ww(n):s}var wo=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 Is||!l.type.isAnonymous||Mp(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 Bp(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 Mp(r){return r.children.some(e=>e instanceof Is||!e.type.isAnonymous||Mp(e))}function jj(r){var e;let{buffer:t,nodeSet:s,maxBufferLength:n=1024,reused:i=[],minRepeatType:a=s.types.length}=r,l=Array.isArray(t)?new Fp(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 Is(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,ve=B;for(;l.pos>F;)ae>=0&&l.id==ae&&l.size>=0?(l.end<=ve-n&&(d(U,V,_,se,l.end,ve,ae,R),se=U.length,ve=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=jp(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 Is(_,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 x=[],v=[];for(;l.pos>0;)p(r.start||0,r.bufferStart||0,x,v,-1,0);let S=(e=r.length)!==null&&e!==void 0?e:x.length?v[0]+x[0].length:0;return new or(o[r.topID],x.reverse(),v.reverse(),S)}var Uw=new WeakMap;function nu(r,e){if(!r.isAnonymous||e instanceof Is||e.type!=r)return 1;let t=Uw.get(e);if(t==null){t=1;for(let s of e.children){if(s.type!=r||!(s instanceof or)){t=1;break}t+=nu(r,s)}Uw.set(e,t)}return t}function jp(r,e,t,s,n,i,a,l,o){let u=0;for(let d=s;d=c)break;O+=C}if(v==S+1){if(O>c){let C=d[S];f(C.children,C.positions,0,C.children.length,m[S]+x);continue}p.push(d[S])}else{let C=m[v-1]+d[v-1].length-w;p.push(jp(r,d,m,S,v,w,C,null,o))}h.push(w+x-i)}}return f(e,t,s,n,0),(l||o)(p,h,a)}var iu=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 li?this.setBuffer(e.context.buffer,e.index,t):e instanceof ln&&this.map.set(e.tree,t)}get(e){return e instanceof li?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)}},ui=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 Oo(n.from,n.to)):[new Oo(0,0)]:[new Oo(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}}},$p=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 QX=new kt({perNode:!0});var qj=0,Qn=class r{constructor(e,t,s){this.set=e,this.base=t,this.modified=s,this.id=qj++}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 uu;return t=>t.modified.indexOf(e)>-1?t:uu.get(t.base||t,t.modified.concat(e).sort((s,n)=>s.id-n.id))}},Qj=0,uu=class r{constructor(){this.instances=[],this.id=Qj++}static get(e,t){if(!t.length)return e;let s=t[0].instances.find(l=>l.base==e&&Uj(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=Vj(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 Uj(r,e){return r.length==e.length&&r.every((t,s)=>t==e[s])}function Vj(r){let e=[[]];for(let t=0;ts.length-t.length)}function cu(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 ea(s,a,o>0?i.slice(0,o):null);e[u]=c.sort(e[u])}}return Gw.add(e)}var Gw=new kt,ea=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 Wj(r,e){let t=null;for(let s of r){let n=s.style(e);n&&(t=t?t+" "+n:n)}return t}function Xw(r,e,t,s=0,n=r.length){let i=new Qp(s,Array.isArray(e)?e:[e],t);i.highlightRange(r.cursor(),s,n,"",i.highlighters),i.flush(n)}var Qp=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=Zj(e)||ea.empty,p=Wj(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 x=g=v||!e.nextSibling())););if(!x||v>s)break;y=x.to+l,y>t&&(this.highlightRange(f.cursor(),Math.max(t,x.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 Zj(r){let e=r.type.prop(Gw);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}var lt=Qn.define,au=lt(),Rs=lt(),Zw=lt(Rs),zw=lt(Rs),Fs=lt(),ou=lt(Fs),qp=lt(Fs),qn=lt(),ci=lt(qn),Mn=lt(),jn=lt(),Up=lt(),Co=lt(Up),lu=lt(),ke={comment:au,lineComment:lt(au),blockComment:lt(au),docComment:lt(au),name:Rs,variableName:lt(Rs),typeName:Zw,tagName:lt(Zw),propertyName:zw,attributeName:lt(zw),className:lt(Rs),labelName:lt(Rs),namespace:lt(Rs),macroName:lt(Rs),literal:Fs,string:ou,docString:lt(ou),character:lt(ou),attributeValue:lt(ou),number:qp,integer:lt(qp),float:lt(qp),bool:lt(Fs),regexp:lt(Fs),escape:lt(Fs),color:lt(Fs),url:lt(Fs),keyword:Mn,self:lt(Mn),null:lt(Mn),atom:lt(Mn),unit:lt(Mn),modifier:lt(Mn),operatorKeyword:lt(Mn),controlKeyword:lt(Mn),definitionKeyword:lt(Mn),moduleKeyword:lt(Mn),operator:jn,derefOperator:lt(jn),arithmeticOperator:lt(jn),logicOperator:lt(jn),bitwiseOperator:lt(jn),compareOperator:lt(jn),updateOperator:lt(jn),definitionOperator:lt(jn),typeOperator:lt(jn),controlOperator:lt(jn),punctuation:Up,separator:lt(Up),bracket:Co,angleBracket:lt(Co),squareBracket:lt(Co),paren:lt(Co),brace:lt(Co),content:qn,heading:ci,heading1:lt(ci),heading2:lt(ci),heading3:lt(ci),heading4:lt(ci),heading5:lt(ci),heading6:lt(ci),contentSeparator:lt(qn),list:lt(qn),quote:lt(qn),emphasis:lt(qn),strong:lt(qn),link:lt(qn),monospace:lt(qn),strikethrough:lt(qn),inserted:lt(),deleted:lt(),changed:lt(),invalid:lt(),meta:lu,documentMeta:lt(lu),annotation:lt(lu),processingInstruction:lt(lu),definition:Qn.defineModifier(),constant:Qn.defineModifier(),function:Qn.defineModifier(),standard:Qn.defineModifier(),local:Qn.defineModifier(),special:Qn.defineModifier()},WX=Vp([{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 Wp,ta=new kt;function rh(r){return ct.define({combine:r?e=>e.concat(r):void 0})}var hu=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=[ra.of(this),Ut.languageData.of((i,a,l)=>{let o=Yw(i,a,l),u=o.type.prop(ta);if(!u)return[];let c=i.facet(u),p=o.type.prop(hu);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 Yw(e,t,s).type.prop(ta)==this.data}findRegions(e){let t=e.facet(ra);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(ta)==this.data){s.push({from:a,to:a+i.length});return}let l=i.prop(kt.mounted);if(l){if(l.tree.prop(ta)==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 Xp=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)}},ko=null,Yp=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 Xp(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(ui.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ko;ko=this;try{return e()}finally{ko=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Hw(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=ui.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=Hw(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 Ji{createParse(t,s,n){let i=n[0].from,a=n[n.length-1].to;return{parsedPos:i,advance(){let o=ko;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 ko}};function Hw(r,e,t){return ui.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}var Ao=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=Yp.create(e.facet(ra).parser,e,{from:0,to:t});return s.work(20,t)||s.takeTree(),new r(s)}};Yr.state=Yt.define({create:Ao.init,update(r,e){for(let t of e.effects)if(t.is(Yr.setState))return t.value;return e.startState.facet(ra)!=e.state.facet(ra)?Ao.init(e.state):r.apply(e)}});var tC=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(tC=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});var Zp=typeof navigator<"u"&&(!((Wp=navigator.scheduling)===null||Wp===void 0)&&Wp.isInputPending)?()=>navigator.scheduling.isInputPending():null,zj=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=tC(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,o=i.context.work(()=>Zp&&Zp()||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 Ao(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()}}}),ra=ct.define({combine(r){return r.length?r[0]:null},enables:r=>[Yr.state,zj,at.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]}),pu=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};var Gj=ct.define(),sa=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 Po(r){let e=r.facet(sa);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ia(r,e){let t="",s=r.tabSize,n=r.facet(sa)[0];if(n==" "){for(;e>=s;)t+=" ",e-=s;n=" "}for(let i=0;i=e?Xj(r,t,e):null}var fi=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=Po(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}},nh=new kt;function Xj(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 rC(s,r,t)}function rC(r,e,t){for(let s=r;s;s=s.next){let n=Hj(s.node);if(n)return n(Hp.create(e,t,s))}return 0}function Yj(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Hj(r){let e=r.type.prop(nh);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=>sC(a,!0,1,void 0,i&&!Yj(a)?n.from:void 0)}return r.parent==null?Kj:null}function Kj(){return 0}var Hp=class r extends fi{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(Jj(s,e))break;t=this.state.doc.lineAt(s.from)}return this.lineIndent(t.from)}continue(){return rC(this.context.next,this.base,this.pos)}};function Jj(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function eq(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.fromsC(s,e,t,r)}function sC(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?eq(r):null;return o?l?r.column(o.from):r.column(o.to):r.baseIndent+(l?0:r.unit*t)}var iC=r=>r.baseIndent;function mu({except:r,units:e=1}={}){return t=>{let s=r&&r.test(t.textAfter);return t.baseIndent+(s?0:e*t.unit)}}var tq=200;function aC(){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+tq)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=du(a,c.from);if(p==null)continue;let h=/^\s*/.exec(c.text)[0],f=ia(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 oC=new kt;function lC(r){let e=r.firstChild,t=r.lastChild;return e&&e.tol.prop(ta)==a.data:a?l=>l==a:void 0,this.style=Vp(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||{})}},Kp=ct.define(),uC=ct.define({combine(r){return r.length?[r[0]]:null}});function zp(r){let e=r.facet(Kp);return e.length?e:r.facet(uC)}function gu(r,e){let t=[rq],s;return r instanceof na&&(r.module&&t.push(at.styleModule.of(r.module)),s=r.themeType),e?.fallback?t.push(uC.of(r)):s?t.push(Kp.computeN([at.darkTheme],n=>n.facet(at.darkTheme)==(s=="dark")?[r]:[])):t.push(Kp.of(r)),t}var Jp=class{constructor(e){this.markCache=Object.create(null),this.tree=pr(e.state),this.decorations=this.buildDeco(e,zp(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=pr(e.state),s=zp(e.state),n=s!=zp(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 Rn;for(let{from:n,to:i}of e.visibleRanges)Xw(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()}},rq=rn.high(rr.fromClass(Jp,{decorations:r=>r.decorations})),cC=na.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"}]),nq=at.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),fC=1e4,pC="()[]{}",hC=ct.define({combine(r){return kr(r,{afterCursor:!0,brackets:pC,maxScanDistance:fC,renderMatch:aq})}}),sq=yt.mark({class:"cm-matchingBracket"}),iq=yt.mark({class:"cm-nonmatchingBracket"});function aq(r){let e=[],t=r.matched?sq:iq;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 oq=Yt.define({create(){return yt.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],s=e.state.facet(hC);for(let n of e.state.selection.ranges){if(!n.empty)continue;let i=xn(e.state,n.head,-1,s)||n.head>0&&xn(e.state,n.head-1,1,s)||s.afterCursor&&(xn(e.state,n.head,1,s)||n.headat.decorations.from(r)}),lq=[oq,nq];function dC(r={}){return[hC.of(r),lq]}var uq=new kt;function eh(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 th(r){let e=r.type.prop(uq);return e?e(r.node):r}function xn(r,e,t,s={}){let n=s.maxScanDistance||fC,i=s.brackets||pC,a=pr(r),l=a.resolveInner(e,t);for(let o=l;o;o=o.parent){let u=eh(o.type,t,i);if(u&&o.from0?e>=c.from&&ec.from&&e<=c.to))return cq(r,e,t,o,c,u,i)}}return fq(r,e,t,a,l.type,n,i)}function cq(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 pq=Object.create(null),Kw=[Ar.none];var Jw=[],eC=Object.create(null),hq=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"]])hq[r]=dq(pq,e);function Gp(r,e){Jw.indexOf(r)>-1||(Jw.push(r),console.warn(e))}function dq(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):Gp(u,`Modifier ${u} used at start of tag`):o.length?Gp(u,`Tag ${u} used as modifier`):o=Array.isArray(c)?c:[c]:Gp(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=eC[n];if(i)return i.id;let a=eC[n]=Ar.define({id:Kw.length,name:s,props:[cu({[s]:t})]});return Kw.push(a),a.id}var JX={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 lh=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),s=ch(r.state,t.from);return s.line?mq(r):s.block?yq(r):!1};function uh(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 mq=uh(vq,0);var gq=uh(SC,0);var yq=uh((r,e)=>SC(r,e,xq(e)),0);function ch(r,e){let t=r.languageDataAt("commentTokens",e);return t.length?t[0]:{}}var To=50;function bq(r,{open:e,close:t},s,n){let i=r.sliceDoc(s-To,s),a=r.sliceDoc(n,n+To),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*To?c=p=r.sliceDoc(s,n):(c=r.sliceDoc(s,s+To),p=r.sliceDoc(n-To,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 xq(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 SC(r,e,t=e.selection.ranges){let s=t.map(i=>ch(e,i.from).block);if(!s.every(i=>i))return null;let n=t.map((i,a)=>bq(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 ih=Mr.define(),Oq=Mr.define(),Sq=ct.define(),EC=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)})}}),wC=Yt.define({create(){return pi.empty},update(r,e){let t=e.state.facet(EC),s=e.annotation(ih);if(s){let o=vn.fromTransaction(e,s.selection),u=s.side,c=u==0?r.undone:r.done;return o?c=bu(c,c.length,t.minDepth,o):c=AC(c,e.startState.selection),new pi(u==0?s.rest:c,u==0?c:s.rest)}let n=e.annotation(Oq);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 pi(r.done.map(vn.fromJSON),r.undone.map(vn.fromJSON))}});function CC(r={}){return[wC,EC.of(r),at.domEventHandlers({beforeinput(e,t){let s=e.inputType=="historyUndo"?vu:e.inputType=="historyRedo"?Do:null;return s?(e.preventDefault(),s(t)):!1}})]}function xu(r,e){return function({state:t,dispatch:s}){if(!e&&t.readOnly)return!1;let n=t.field(wC,!1);if(!n)return!1;let i=n.pop(r,t,e);return i?(s(i),!0):!1}}var vu=xu(0,!1),Do=xu(1,!1),Eq=xu(0,!0),wq=xu(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(Sq)){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 bu(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 Cq(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 kq(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,s)=>t.empty!=e.ranges[s].empty).length===0}function kC(r,e){return r.length?e.length?r.concat(e):r:e}var un=[],Aq=200;function AC(r,e){if(r.length){let t=r[r.length-1],s=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Aq));return s.length&&s[s.length-1].eq(e)?r:(s.push(e),bu(r,r.length-1,1e9,t.setSelAfter(s)))}else return[vn.selection([e])]}function Pq(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 sh(r,e){if(!r.length)return r;let t=r.length,s=un;for(;t;){let n=Tq(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 Tq(r,e,t){let s=kC(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,Et.mapEffects(r.effects,e),a,r.startSelection.map(i),s)}var Dq=/^(input\.type|delete)($|\.)/,pi=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||Dq.test(s))&&(!l.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?r.moveByChar(t,e):Ou(t,e))}function Pr(r){return r.textDirectionAt(r.state.selection.main.head)==Zt.LTR}var DC=r=>TC(r,!Pr(r)),_C=r=>TC(r,Pr(r));function IC(r,e){return On(r,t=>t.empty?r.moveByGroup(t,e):Ou(t,e))}var _q=r=>IC(r,!Pr(r)),Iq=r=>IC(r,Pr(r));var aY=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Rq(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 Su(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;Rq(r,u,n)?s=u:o=t?u.to:u.from}let i=s.type.prop(n),a,l;return i&&(a=t?xn(r,s.from,1):xn(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 Fq=r=>On(r,e=>Su(r.state,e,!Pr(r))),Bq=r=>On(r,e=>Su(r.state,e,Pr(r)));function RC(r,e){return On(r,t=>{if(!t.empty)return Ou(t,e);let s=r.moveVertically(t,e);return s.head!=t.head?s:r.moveToLineBoundary(t,e)})}var FC=r=>RC(r,!1),BC=r=>RC(r,!0);function NC(r){let e=r.scrollDOM.clientHeighta.empty?r.moveVertically(a,e,t.height):Ou(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.bottomLC(r,!1),ah=r=>LC(r,!0);function Bs(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 Nq=r=>On(r,e=>Bs(r,e,!0)),Lq=r=>On(r,e=>Bs(r,e,!1)),$q=r=>On(r,e=>Bs(r,e,!Pr(r))),Mq=r=>On(r,e=>Bs(r,e,Pr(r))),jq=r=>On(r,e=>Ze.cursor(r.lineBlockAt(e.head).from,1)),qq=r=>On(r,e=>Ze.cursor(r.lineBlockAt(e.head).to,-1));function Qq(r,e,t){let s=!1,n=aa(r.selection,i=>{let a=xn(r,i.head,-1)||xn(r,i.head,1)||i.head>0&&xn(r,i.head-1,1)||i.headQq(r,e,!1);function cn(r,e){let t=aa(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(Un(r.state,t)),!0)}function $C(r,e){return cn(r,t=>r.moveByChar(t,e))}var MC=r=>$C(r,!Pr(r)),jC=r=>$C(r,Pr(r));function qC(r,e){return cn(r,t=>r.moveByGroup(t,e))}var Vq=r=>qC(r,!Pr(r)),Wq=r=>qC(r,Pr(r));var Zq=r=>cn(r,e=>Su(r.state,e,!Pr(r))),zq=r=>cn(r,e=>Su(r.state,e,Pr(r)));function QC(r,e){return cn(r,t=>r.moveVertically(t,e))}var UC=r=>QC(r,!1),VC=r=>QC(r,!0);function WC(r,e){return cn(r,t=>r.moveVertically(t,e,NC(r).height))}var gC=r=>WC(r,!1),yC=r=>WC(r,!0),Gq=r=>cn(r,e=>Bs(r,e,!0)),Xq=r=>cn(r,e=>Bs(r,e,!1)),Yq=r=>cn(r,e=>Bs(r,e,!Pr(r))),Hq=r=>cn(r,e=>Bs(r,e,Pr(r))),Kq=r=>cn(r,e=>Ze.cursor(r.lineBlockAt(e.head).from)),Jq=r=>cn(r,e=>Ze.cursor(r.lineBlockAt(e.head).to)),bC=({state:r,dispatch:e})=>(e(Un(r,{anchor:0})),!0),xC=({state:r,dispatch:e})=>(e(Un(r,{anchor:r.doc.length})),!0),vC=({state:r,dispatch:e})=>(e(Un(r,{anchor:r.selection.main.anchor,head:0})),!0),OC=({state:r,dispatch:e})=>(e(Un(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),e5=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),t5=({state:r,dispatch:e})=>{let t=Eu(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},r5=({state:r,dispatch:e})=>{let t=aa(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(Un(r,t)),!0},n5=({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(Un(r,s)),!0):!1};function _o(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=yu(r,o,!0)),a=Math.min(a,o),l=Math.max(l,o)}else a=yu(r,a,!1),l=yu(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 ZC=(r,e,t)=>_o(r,s=>{let n=s.from,{state:i}=r,a=i.doc.lineAt(n),l,o;if(t&&!e&&n>a.from&&nZC(r,!1,!0);var zC=r=>ZC(r,!0,!1),GC=(r,e)=>_o(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}),XC=r=>GC(r,!1),s5=r=>GC(r,!0),i5=r=>_o(r,e=>{let t=r.lineBlockAt(e.head).to;return e.head_o(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),o5=r=>_o(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:It.of(["",""])},range:Ze.cursor(s.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},u5=({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 Eu(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 YC(r,e,t){if(r.readOnly)return!1;let s=[],n=[];for(let i of Eu(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 c5=({state:r,dispatch:e})=>YC(r,e,!1),f5=({state:r,dispatch:e})=>YC(r,e,!0);function HC(r,e,t){if(r.readOnly)return!1;let s=[];for(let n of Eu(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 p5=({state:r,dispatch:e})=>HC(r,e,!1),h5=({state:r,dispatch:e})=>HC(r,e,!0),d5=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(Eu(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 m5(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 g5=KC(!1),y5=KC(!0);function KC(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&&m5(e,i);r&&(i=a=(a<=l.to?l:e.doc.lineAt(a)).to);let u=new fi(e,{simulateBreak:i,simulateDoubleBreak:!!o}),c=du(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 b5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),s=new fi(r,{overrideIndentation:i=>{let a=t[i];return a??-1}}),n=fh(r,(i,a,l)=>{let o=du(s,i.from);if(o==null)return;/\S/.test(i.text)||(o=0);let u=/^\s*/.exec(i.text)[0],c=ia(r,o);(u!=c||l.fromr.readOnly?!1:(e(r.update(fh(r,(t,s)=>{s.push({from:t.from,insert:r.facet(sa)})}),{userEvent:"input.indent"})),!0),JC=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(fh(r,(t,s)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let i=ss(n,r.tabSize),a=0,l=ia(r,Math.max(0,i-Po(r)));for(;a(r.setTabFocusMode(),!0);var v5=[{key:"Ctrl-b",run:DC,shift:MC,preventDefault:!0},{key:"Ctrl-f",run:_C,shift:jC},{key:"Ctrl-p",run:FC,shift:UC},{key:"Ctrl-n",run:BC,shift:VC},{key:"Ctrl-a",run:jq,shift:Kq},{key:"Ctrl-e",run:qq,shift:Jq},{key:"Ctrl-d",run:zC},{key:"Ctrl-h",run:oh},{key:"Ctrl-k",run:i5},{key:"Ctrl-Alt-h",run:XC},{key:"Ctrl-o",run:l5},{key:"Ctrl-t",run:u5},{key:"Ctrl-v",run:ah}],O5=[{key:"ArrowLeft",run:DC,shift:MC,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:_q,shift:Vq,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:$q,shift:Yq,preventDefault:!0},{key:"ArrowRight",run:_C,shift:jC,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Iq,shift:Wq,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Mq,shift:Hq,preventDefault:!0},{key:"ArrowUp",run:FC,shift:UC,preventDefault:!0},{mac:"Cmd-ArrowUp",run:bC,shift:vC},{mac:"Ctrl-ArrowUp",run:mC,shift:gC},{key:"ArrowDown",run:BC,shift:VC,preventDefault:!0},{mac:"Cmd-ArrowDown",run:xC,shift:OC},{mac:"Ctrl-ArrowDown",run:ah,shift:yC},{key:"PageUp",run:mC,shift:gC},{key:"PageDown",run:ah,shift:yC},{key:"Home",run:Lq,shift:Xq,preventDefault:!0},{key:"Mod-Home",run:bC,shift:vC},{key:"End",run:Nq,shift:Gq,preventDefault:!0},{key:"Mod-End",run:xC,shift:OC},{key:"Enter",run:g5},{key:"Mod-a",run:e5},{key:"Backspace",run:oh,shift:oh},{key:"Delete",run:zC},{key:"Mod-Backspace",mac:"Alt-Backspace",run:XC},{key:"Mod-Delete",mac:"Alt-Delete",run:s5},{mac:"Mod-Backspace",run:a5},{mac:"Mod-Delete",run:o5}].concat(v5.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),ek=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Fq,shift:Zq},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Bq,shift:zq},{key:"Alt-ArrowUp",run:c5},{key:"Shift-Alt-ArrowUp",run:p5},{key:"Alt-ArrowDown",run:f5},{key:"Shift-Alt-ArrowDown",run:h5},{key:"Escape",run:n5},{key:"Mod-Enter",run:y5},{key:"Alt-l",mac:"Ctrl-l",run:t5},{key:"Mod-i",run:r5,preventDefault:!0},{key:"Mod-[",run:JC},{key:"Mod-]",run:wu},{key:"Mod-Alt-\\",run:b5},{key:"Shift-Mod-k",run:d5},{key:"Shift-Mod-\\",run:Uq},{key:"Mod-/",run:lh},{key:"Alt-A",run:gq},{key:"Ctrl-m",mac:"Shift-Alt-m",run:x5}].concat(O5),tk={key:"Tab",run:wu,shift:JC};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,Ls=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(nk(l)):nk,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=Ha(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=Du(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 ph.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=Du(this.text,n+(s==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Pu.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Au.prototype[Symbol.iterator]=Tu.prototype[Symbol.iterator]=function(){return this});function S5(r){try{return new RegExp(r,bh),!0}catch{return!1}}function Du(r,e){if(e>=r.length)return e;let t=r.lineAt(e),s;for(;e=56320&&s<57344;)e++;return e}function hh(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:_u.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:[_u.of(!1),at.scrollIntoView(m.from,{y:"center"})],selection:m}),r.focus()}return{dom:s}}var _u=Et.define(),sk=Yt.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(_u)&&(r=t.value);return r},provide:r=>oi.from(r,e=>e?hh:null)}),E5=r=>{let e=Hi(r,hh);if(!e){let t=[_u.of(!0)];r.state.field(sk,!1)==null&&t.push(Et.appendConfig.of([sk,w5])),r.dispatch({effects:t}),e=Hi(r,hh)}return e&&e.dom.querySelector("input").select(),!0},w5=at.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),C5={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},lk=ct.define({combine(r){return kr(r,C5,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function uk(r){let e=[D5,T5];return r&&e.push(lk.of(r)),e}var k5=yt.mark({class:"cm-selectionMatch"}),A5=yt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function ik(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 P5(r,e,t,s){return r(e.sliceDoc(t,t+1))==Wt.Word&&r(e.sliceDoc(s-1,s))==Wt.Word}var T5=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(lk),{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),!(ik(a,t,n.from,n.to)&&P5(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 Ls(t.doc,i,o.from,o.to);for(;!u.next().done;){let{from:c,to:p}=u.value;if((!a||ik(a,t,c,p))&&(n.empty&&c<=n.from&&p>=n.to?l.push(A5.range(c,p)):(c>=n.to||p<=n.from)&&l.push(k5.range(c,p)),l.length>e.maxMatches))return yt.none}}return yt.set(l)}},{decorations:r=>r.decorations}),D5=at.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),_5=({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 I5(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 Ls(r.doc,e,s[s.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new Ls(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 R5=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(i=>i.from===i.to))return _5({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=I5(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},ua=ct.define({combine(r){return kr(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new yh(e),scrollToMatch:e=>at.scrollIntoView(e)})}});var Iu=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||S5(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 mh(this):new dh(this)}getCursor(e,t=0,s){let n=e.doc?e:Ut.create({doc:e});return s==null&&(s=n.doc.length),this.regexp?la(this,n,t,s):oa(this,n,t,s)}},Ru=class{constructor(e){this.spec=e}};function oa(r,e,t,s){return new Ls(e.doc,r.unquoted,t,s,r.caseSensitive?void 0:n=>n.toLowerCase(),r.wholeWord?F5(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function F5(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=oa(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 la(r,e,t,s){return new Au(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:r.wholeWord?B5(e.charCategorizer(e.selection.main.head)):void 0},t,s)}function Fu(r,e){return r.slice(ur(r,e,!1),e)}function Bu(r,e){return r.slice(e,ur(r,e))}function B5(r){return(e,t,s)=>!s[0].length||(r(Fu(s.input,s.index))!=Wt.Word||r(Bu(s.input,s.index))!=Wt.Word)&&(r(Bu(s.input,s.index+s[0].length))!=Wt.Word||r(Fu(s.input,s.index+s[0].length))!=Wt.Word)}var mh=class extends Ru{nextMatch(e,t,s){let n=la(this.spec,e,s,e.doc.length).next();return n.done&&(n=la(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=la(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=la(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)}},Ro=Et.define(),xh=Et.define(),Ns=Yt.define({create(r){return new Io(gh(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Ro)?r=new Io(t.value.create(),r.panel):t.is(xh)&&(r=new Io(r.query,t.value?vh:null));return r},provide:r=>oi.from(r,e=>e.panel)});var Io=class{constructor(e,t){this.query=e,this.panel=t}},N5=yt.mark({class:"cm-searchMatch"}),L5=yt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),$5=rr.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Ns))}update(r){let e=r.state.field(Ns);(e!=r.startState.field(Ns)||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 Rn;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?L5:N5)})}return s.finish()}},{decorations:r=>r.decorations});function Fo(r){return e=>{let t=e.state.field(Ns,!1);return t&&t.query.spec.valid?r(e,t):pk(e)}}var Nu=Fo((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(ua);return r.dispatch({selection:n,effects:[Oh(r,s),i.scrollToMatch(n.main,r)],userEvent:"select.search"}),fk(r),!0}),Lu=Fo((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(ua);return r.dispatch({selection:i,effects:[Oh(r,n),a.scrollToMatch(i.main,r)],userEvent:"select.search"}),fk(r),!0}),M5=Fo((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)}),j5=({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 Ls(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},ak=Fo((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(Oh(r,i)),u.push(t.facet(ua).scrollToMatch(l.main,r))}return r.dispatch({changes:a,selection:l,effects:u,userEvent:"input.replace"}),!0}),q5=Fo((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 vh(r){return r.state.facet(ua).createPanel(r)}function gh(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(ua);return new Iu({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 ck(r){let e=Hi(r,vh);return e&&e.dom.querySelector("[main-field]")}function fk(r){let e=ck(r);e&&e==r.root.activeElement&&e.select()}var pk=r=>{let e=r.state.field(Ns,!1);if(e&&e.panel){let t=ck(r);if(t&&t!=r.root.activeElement){let s=gh(r.state,e.query.spec);s.valid&&r.dispatch({effects:Ro.of(s)}),t.focus(),t.select()}}else r.dispatch({effects:[xh.of(!0),e?Ro.of(gh(r.state,e.query.spec)):Et.appendConfig.of(U5)]});return!0},hk=r=>{let e=r.state.field(Ns,!1);if(!e||!e.panel)return!1;let t=Hi(r,vh);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:xh.of(!1)}),!0},dk=[{key:"Mod-f",run:pk,scope:"editor search-panel"},{key:"F3",run:Nu,shift:Lu,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Nu,shift:Lu,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:hk,scope:"editor search-panel"},{key:"Mod-Shift-l",run:j5},{key:"Mod-Alt-g",run:E5},{key:"Mod-d",run:R5,preventDefault:!0}],yh=class{constructor(e){this.view=e;let t=this.query=e.state.field(Ns).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",()=>Nu(e),[Hr(e,"next")]),s("prev",()=>Lu(e),[Hr(e,"previous")]),s("select",()=>M5(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",()=>ak(e),[Hr(e,"replace")]),s("replaceAll",()=>q5(e),[Hr(e,"replace all")])],Vt("button",{name:"close",onclick:()=>hk(e),"aria-label":Hr(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new Iu({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:Ro.of(e)}))}keydown(e){Sw(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Lu:Nu)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),ak(this.view))}update(e){for(let t of e.transactions)for(let s of t.effects)s.is(Ro)&&!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(ua).top}};function Hr(r,e){return r.state.phrase(e)}var Cu=30,ku=/[\s\.,:;?!]/;function Oh(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-Cu),a=Math.min(n,t+Cu),l=r.state.sliceDoc(i,a);if(i!=s.from){for(let o=0;ol.length-Cu;o--)if(!ku.test(l[o-1])&&ku.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 Q5=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"}}),U5=[Ns,rn.low($5),Q5];var Mu=class{constructor(e,t,s,n){this.state=e,this.pos=t,this.explicit=s,this.view=n,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(wk(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 mk(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 V5(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+$/]:V5(e);return n=>{let i=n.matchBefore(s);return i||n.explicit?{from:i?i.from:n.pos,options:e,validFor:t}:null}}function Ek(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 ju=class{constructor(e,t,s,n){this.completion=e,this.source=t,this.match=s,this.score=n}};function $s(r){return r.selection.main.from}function wk(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 Fh=Mr.define();function W5(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 gk=new WeakMap;function Z5(r){if(!Array.isArray(r))return r;let e=gk.get(r);return e||gk.set(r,e=Rh(r)),e}var qu=Et.define(),Bo=Et.define(),wh=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=Ha(w))!=O.toLowerCase()?1:O!=O.toUpperCase()?2:0;(!x||C==1&&g||S==0&&C!=0)&&(t[p]==w||s[p]==w&&(h=!0)?a[p++]=x:a.length&&(y=!1)),S=C,x+=$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)}},Ch=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:z5,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=>yk(e(s),t(s)),optionClass:(e,t)=>s=>yk(e(s),t(s)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function yk(r,e){return r?e?r+" "+e:r:e}function z5(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||x>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 G5(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 Sh(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 kh=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=G5(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Sh(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:Bo.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=Sh(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=Sh(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&&Y5(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 kh(t,r,e)}function Y5(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 bk(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function H5(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 ju(p,u.source,c?c(p):[],1e9-t.length));else{let p=e.sliceDoc(u.from,u.to),h,f=i.filterStrict?new Ch(p):new wh(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 ju(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):bk(u.completion)>bk(l)&&(a[a.length-1]=u),l=u.completion}return a}var Ah=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,xk(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,s,n,i){let a=H5(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:nQ,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)}},Ph=class r{constructor(e,t,s){this.active=e,this.id=t,this.open=s}static start(){return new r(tQ,"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",$s(t)).map(Z5)).map(l=>(this.active.find(u=>u.source==l)||new os(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))||!K5(i,this.active)?a=Ah.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 os(l.source,0):l));for(let l of e.effects)l.is(Ak)&&(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:this.active.length?J5:eQ}};function K5(r,e){if(r==e)return!0;for(let t=0,s=0;;){for(;t-1&&(t["aria-activedescendant"]=r+"-"+e),t}var tQ=[];function Ck(r,e){if(r.isUserEvent("input.complete")){let s=r.annotation(Fh);if(s&&e.activateOnCompletion(s))return 12}let t=r.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:r.isUserEvent("delete.backward")?2:r.selection?8:r.docChanged?16:0}var os=class r{constructor(e,t,s=-1){this.source=e,this.state=t,this.explicitPos=s}hasResult(){return!1}update(e,t){let s=Ck(e,t),n=this;(s&8||s&16&&this.touches(e))&&(n=new r(n.source,0)),s&4&&n.state==0&&(n=new r(this.source,1)),n=n.updateFor(e,s);for(let i of e.effects)if(i.is(qu))n=new r(n.source,1,i.value?$s(e.state):-1);else if(i.is(Bo))n=new r(n.source,0);else if(i.is(kk))for(let a of i.value)a.source==n.source&&(n=a);return n}updateFor(e,t){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new r(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange($s(e.state))}},Qu=class r extends os{constructor(e,t,s,n,i){super(e,2,t),this.result=s,this.from=n,this.to=i}hasResult(){return!0}updateFor(e,t){var s;if(!(t&3))return this.map(e.changes);let n=this.result;n.map&&!e.changes.empty&&(n=n.map(n,e.changes));let i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),l=$s(e.state);if((this.explicitPos<0?l<=i:la||!n||t&2&&$s(e.startState)==this.from)return new os(this.source,t&4?1:0);let o=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return rQ(n.validFor,e.state,i,a)?new r(this.source,o,n,i,a):n.update&&(n=n.update(n,i,a,new Mu(e.state,l,o>=0)))?new r(this.source,o,n,n.from,(s=n.to)!==null&&s!==void 0?s:$s(e.state)):new os(this.source,1,o)}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 os(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function rQ(r,e,t,s){if(!r)return!1;let n=e.sliceDoc(t,s);return typeof r=="function"?r(n,t,s,e):wk(r,!0).test(n)}var kk=Et.define({map(r,e){return r.map(t=>t.map(e))}}),Ak=Et.define(),qr=Yt.define({create(){return Ph.start()},update(r,e){return r.update(e)},provide:r=>[Yi.from(r,e=>e.tooltip),at.contentAttributes.from(r,e=>e.attrs)]});function Bh(r,e){let t=e.completion.apply||e.completion.label,s=r.state.field(qr).active.find(n=>n.source==e.source);return s instanceof Qu?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},W5(r.state,t,s.from,s.to)),{annotations:Fh.of(e.completion)})):t(r,e.completion,s.from,s.to),!0):!1}var nQ=X5(qr,Bh);function $u(r,e="option"){return t=>{let s=t.state.field(qr,!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:Ak.of(l)}),!0}}var sQ=r=>{let e=r.state.field(qr,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampr.state.field(qr,!1)?(r.dispatch({effects:qu.of(!0)}),!0):!1,aQ=r=>{let e=r.state.field(qr,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:Bo.of(null)}),!0)},Th=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},oQ=50,lQ=1e3,uQ=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(qr).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(qr),t=r.state.facet(Sr);if(!r.selectionSet&&!r.docChanged&&r.startState.field(qr)==e)return;let s=r.transactions.some(i=>{let a=Ck(i,t);return a&8||(i.selection||i.docChanged)&&!(a&3)});for(let i=0;ioQ&&Date.now()-a.time>lQ){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(qu)))&&(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)i.isUserEvent("input.type")?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(qr);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=$s(e),s=new Mu(e,t,r.explicitPos==t,this.view),n=new Th(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:Bo.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 os(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:kk.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(qr,!1);if(e&&e.tooltip&&this.view.state.facet(Sr).closeOnBlur){let t=e.open&&Ip(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Bo.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:qu.of(!1)}),20),this.composing=0}}}),cQ=typeof navigator=="object"&&/Win/.test(navigator.platform),fQ=rn.highest(at.domEventHandlers({keydown(r,e){let t=e.state.field(qr,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||r.key.length>1||r.ctrlKey&&!(cQ&&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&&Bh(e,s),!1}})),Pk=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"}}}),Dh=class{constructor(e,t,s,n){this.field=e,this.line=t,this.from=s,this.to=n}},_h=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)}},Ih=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 _h(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,c=o.replace(/\\[{}]/g,p=>p[1]);for(let p=0;p=u&&h.field++}n.push(new Dh(u,s.length,i.index,i.index+c.length)),a=a.slice(0,i.index)+o+a.slice(i.index+i[0].length)}a=a.replace(/\\([{}])/g,(l,o,u)=>{for(let c of n)c.line==s.length&&c.from>u&&(c.from--,c.to--);return o}),s.push(a)}return new r(s,n)}},pQ=yt.widget({widget:new class extends an{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),hQ=yt.mark({class:"cm-snippetField"}),ca=class r{constructor(e,t){this.ranges=e,this.active=t,this.deco=yt.set(e.map(s=>(s.from==s.to?pQ:hQ).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))}},Lo=Et.define({map(r,e){return r&&r.map(e)}}),dQ=Et.define(),No=Yt.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(Lo))return t.value;if(t.is(dQ)&&r)return new ca(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 Nh(r,e){return Ze.create(r.filter(t=>t.field==e).map(t=>Ze.range(t.from,t.to)))}function mQ(r){let e=Ih.parse(r);return(t,s,n,i)=>{let{text:a,ranges:l}=e.instantiate(t.state,n),o={changes:{from:n,to:i,insert:It.of(a)},scrollIntoView:!0,annotations:s?[Fh.of(s),lr.userEvent.of("input.complete")]:void 0};if(l.length&&(o.selection=Nh(l,0)),l.some(u=>u.field>0)){let u=new ca(l,0),c=o.effects=[Lo.of(u)];t.state.field(No,!1)===void 0&&c.push(Et.appendConfig.of([No,vQ,OQ,Pk]))}t.dispatch(t.state.update(o))}}function Tk(r){return({state:e,dispatch:t})=>{let s=e.field(No,!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:Nh(s.ranges,n),effects:Lo.of(i?null:new ca(s.ranges,n)),scrollIntoView:!0})),!0}}var gQ=({state:r,dispatch:e})=>r.field(No,!1)?(e(r.update({effects:Lo.of(null)})),!0):!1,yQ=Tk(1),bQ=Tk(-1);var xQ=[{key:"Tab",run:yQ,shift:bQ},{key:"Escape",run:gQ}],vk=ct.define({combine(r){return r.length?r[0]:xQ}}),vQ=rn.highest(_s.compute([vk],r=>r.facet(vk)));function Rr(r,e){return Object.assign(Object.assign({},e),{apply:mQ(r)})}var OQ=at.domEventHandlers({mousedown(r,e){let t=e.state.field(No,!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:Nh(t.ranges,n.field),effects:Lo.of(t.ranges.some(i=>i.field>n.field)?new ca(t.ranges,n.field):null),scrollIntoView:!0}),!0)}});var Uu={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},hi=Et.define({map(r,e){let t=e.mapPos(r,-1,fr.TrackAfter);return t??void 0}}),Lh=new class extends yn{};Lh.startSide=1;Lh.endSide=-1;var Dk=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(hi)&&(r=r.update({add:[Lh.range(t.value,t.value+1)]}));return r}});function _k(){return[CQ,Dk]}var Eh="()[]{}<>";function SQ(r){for(let e=0;e{if((wQ?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=kQ(r.state,s);return i?(r.dispatch(i),!0):!1});function kQ(r,e){let t=EQ(r,r.selection.main.head),s=t.brackets||Uu.brackets;for(let n of s){let i=SQ(gr(n,0));if(e==n)return i==n?TQ(r,n,s.indexOf(n+n+n)>-1,t):AQ(r,n,i,t.before||Uu.before);if(e==i&&Ik(r,r.selection.main.from))return PQ(r,n,i)}return null}function Ik(r,e){let t=!1;return r.field(Dk).between(0,r.doc.length,s=>{s==e&&(t=!0)}),t}function $h(r,e){let t=r.sliceString(e,e+2);return t.slice(0,$r(gr(t,0)))}function AQ(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:hi.of(a.to+e.length),range:Ze.range(a.anchor+e.length,a.head+e.length)};let l=$h(r.doc,a.head);return!l||/\s/.test(l)||s.indexOf(l)>-1?{changes:{insert:e+t,from:a.head},effects:hi.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 PQ(r,e,t){let s=null,n=r.changeByRange(i=>i.empty&&$h(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 TQ(r,e,t,s){let n=s.stringPrefixes||Uu.stringPrefixes,i=null,a=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:hi.of(l.to+e.length),range:Ze.range(l.anchor+e.length,l.head+e.length)};let o=l.head,u=$h(r.doc,o),c;if(u==e){if(Ok(r,o))return{changes:{insert:e+e,from:o},effects:hi.of(o+e.length),range:Ze.cursor(o+e.length)};if(Ik(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=Sk(r,o-2*e.length,n))>-1&&Ok(r,c))return{changes:{insert:e+e+e+e,from:o},effects:hi.of(o+e.length),range:Ze.cursor(o+e.length)};if(r.charCategorizer(o)(u)!=Wt.Word&&Sk(r,o,n)>-1&&!DQ(r,o,e,n))return{changes:{insert:e+e,from:o},effects:hi.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 Ok(r,e){let t=pr(r).resolveInner(e+1);return t.parent&&t.from==e}function DQ(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 Sk(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 Rk(r={}){return[fQ,qr,Sr.of(r),uQ,IQ,Pk]}var _Q=[{key:"Ctrl-Space",run:iQ},{key:"Escape",run:aQ},{key:"ArrowDown",run:$u(!0)},{key:"ArrowUp",run:$u(!1)},{key:"PageDown",run:$u(!0,"page")},{key:"PageUp",run:$u(!1,"page")},{key:"Enter",run:sQ}],IQ=rn.highest(_s.computeN([Sr],r=>r.facet(Sr).defaultKeymap?[_Q]:[]));var Mh=class{constructor(e,t,s){this.from=e,this.to=t,this.diagnostic=s}},di=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(Vn).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 jh(l),diagnostic:l}).range(l.from):yt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+l.severity+(l.markClass?" "+l.markClass:"")},diagnostic:l}).range(l.from,l.to)),!0);return new r(a,t,fa(a))}};function fa(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 Mh(n,i,a.diagnostic),!1}),s}function Nk(r,e){let t=e.pos,s=e.end||t,n=r.state.facet(Vn).hideOn(r,t,s);if(n!=null)return n;let i=r.startState.doc.lineAt(e.pos);return!!(r.effects.some(a=>a.is(Gu))||r.changes.touchesRange(i.from,Math.max(i.to,s)))}function RQ(r,e){return r.field(Sn,!1)?e:e.concat(Et.appendConfig.of(Wk))}function FQ(r,e){return{effects:RQ(r,[Gu.of(e)])}}var Gu=Et.define(),Lk=Et.define(),$k=Et.define(),Sn=Yt.define({create(){return new di(yt.none,null,null)},update(r,e){if(e.docChanged&&r.diagnostics.size){let t=r.diagnostics.map(e.changes),s=null,n=r.panel;if(r.selected){let i=e.changes.mapPos(r.selected.from,1);s=fa(t,r.selected.diagnostic,i)||fa(t,null,i)}!t.size&&n&&e.state.facet(Vn).autoPanel&&(n=null),r=new di(t,n,s)}for(let t of e.effects)if(t.is(Gu)){let s=e.state.facet(Vn).autoPanel?t.value.length?zu.open:null:r.panel;r=di.init(t.value,s,e.state)}else t.is(Lk)?r=new di(r.diagnostics,t.value?zu.open:null,r.selected):t.is($k)&&(r=new di(r.diagnostics,r.panel,t.value));return r},provide:r=>[oi.from(r,e=>e.panel),at.decorations.from(r,e=>e.diagnostics)]});var BQ=yt.mark({class:"cm-lintRange cm-lintRange-active"});function NQ(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)&&(eQk(r,t,!1)))}var Fk=r=>{let e=r.state.field(Sn,!1);return!e||!e.panel?!1:(r.dispatch({effects:Lk.of(!1)}),!0)};var LQ=rr.fromClass(class{constructor(r){this.view=r,this.timeout=-1,this.set=!0;let{delay:e}=r.state.facet(Vn);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);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(FQ(this.view.state,n))},s=>{yr(this.view.state,s)})}}update(r){let e=r.state.facet(Vn);(r.docChanged||e!=r.startState.facet(Vn)||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)}}),Vn=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 jk(r,e={}){return[Vn.of({source:r,config:e}),LQ,Wk]}function qk(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 Qk(r,e,t){var s;let n=t?qk(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=fa(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 jh=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})}},Zu=class{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Qk(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},zu=class r{constructor(e){this.view=e,this.items=[];let t=n=>{if(n.keyCode==27)Fk(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=qk(i.actions);for(let l=0;l{for(let i=0;iFk(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=fa(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 Wu(r,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(r)}')`}function Vu(r){return Wu(``,'width="6" height="3"')}var $Q=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:Vu("#d11")},".cm-lintRange-warning":{backgroundImage:Vu("orange")},".cm-lintRange-info":{backgroundImage:Vu("#999")},".cm-lintRange-hint":{backgroundImage:Vu("#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 Bk(r){return r=="error"?4:r=="warning"?3:r=="info"?2:1}var qh=class extends Xr{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((t,s)=>Bk(t)jQ(e,t,s)),t}};function MQ(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,MQ(r,e)}let{hoverTime:n}=r.state.facet(Xu),i=setTimeout(s,n);e.onmouseout=()=>{clearTimeout(i),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(i),i=setTimeout(s,n)}}function qQ(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 qh(t[n]).range(+n));return Mt.of(s,!0)}var QQ=Rp({class:"cm-gutter-lint",markers:r=>r.state.field(Uk)}),Uk=Yt.define({create(){return Mt.empty},update(r,e){r=r.map(e.changes);let t=e.state.facet(Xu).markerFilter;for(let s of e.effects)if(s.is(Gu)){let n=s.value;t&&(n=t(n||[],e.state)),r=qQ(e.state.doc,n.slice(0))}return r}}),Qh=Et.define(),Vk=Yt.define({create(){return null},update(r,e){return r&&e.docChanged&&(r=Nk(e,r)?null:Object.assign(Object.assign({},r),{pos:e.changes.mapPos(r.pos)})),e.effects.reduce((t,s)=>s.is(Qh)?s.value:t,r)},provide:r=>Yi.from(r)}),UQ=at.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Wu('')},".cm-lint-marker-warning":{content:Wu('')},".cm-lint-marker-error":{content:Wu('')}}),Wk=[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([BQ.range(e.from,e.to)])}),Nw(NQ,{hideOn:Nk}),$Q],Xu=ct.define({combine(r){return kr(r,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Zk(r={}){return[Xu.of(r),Uk,QQ,UQ,Vk]}var Wh=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 Yu(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;this.reducePos=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 Zh(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()}},Yu=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},Zh=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}},zh=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 $o(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 pa=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},zk=new pa,Gh=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=zk,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=zk,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}},Ms=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:s}=t.p;Kk(this.data,e,t,this.id,s.data,s.tokenPrecTable)}};Ms.prototype.contextual=Ms.prototype.fallback=Ms.prototype.extend=!1;var ha=class{constructor(e,t,s){this.precTable=t,this.elseToken=s,this.data=typeof e=="string"?$o(e):e}token(e,t){let s=e.pos,n=0;for(;;){let i=e.next<0,a=e.resolveOffset(1,1);if(Kk(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))}};ha.prototype.contextual=Ms.prototype.fallback=Ms.prototype.extend=!1;var mi=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function Kk(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||WQ(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 Gk(r,e,t){for(let s=e,n;(n=r[s])!=65535;s++)if(n==t)return s-e;return-1}function WQ(r,e,t,s){let n=Gk(t,s,e);return n<0||Gk(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 Xh=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?Xk(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Xk(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}}},Yh=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(s=>new pa)}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 pa,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 pa,{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 Xh(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&&ZQ(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 Yk(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)})`),Yk(l,s)):(!n||n.scorer,Hu=class{constructor(e){this.start=e.start,this.shift=e.shift||Vh,this.reduce=e.reduce||Vh,this.reuse=e.reuse||Vh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},Ku=class r extends Ji{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 So(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=$o(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 Ms(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 Hh(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=ls(this.data,i+2);else break;n=t(ls(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=ls(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]=Hk(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 zQ=312,Jk=1,GQ=2,XQ=3,YQ=4,HQ=313,KQ=315,JQ=316,eU=5,tU=6,rU=0,ed=[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],eA=125,nU=59,td=47,sU=42,iU=43,aU=45,oU=60,lU=44,uU=63,cU=46,fU=new Hu({start:!1,shift(r,e){return e==eU||e==tU||e==KQ?r:e==JQ},strict:!1}),pU=new mi((r,e)=>{let{next:t}=r;(t==eA||t==-1||e.context)&&r.acceptToken(HQ)},{contextual:!0,fallback:!0}),hU=new mi((r,e)=>{let{next:t}=r,s;ed.indexOf(t)>-1||t==td&&((s=r.peek(1))==td||s==sU)||t!=eA&&t!=nU&&t!=-1&&!e.context&&r.acceptToken(zQ)},{contextual:!0}),dU=new mi((r,e)=>{let{next:t}=r;if(t==iU||t==aU){if(r.advance(),t==r.next){r.advance();let s=!e.context&&e.canShift(Jk);r.acceptToken(s?Jk:GQ)}}else t==uU&&r.peek(1)==cU&&(r.advance(),r.advance(),(r.next<48||r.next>57)&&r.acceptToken(XQ))},{contextual:!0});function Jh(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}var mU=new mi((r,e)=>{if(r.next!=oU||!e.dialectEnabled(rU)||(r.advance(),r.next==td))return;let t=0;for(;ed.indexOf(r.next)>-1;)r.advance(),t++;if(Jh(r.next,!0)){for(r.advance(),t++;Jh(r.next,!1);)r.advance(),t++;for(;ed.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==lU)return;for(let s=0;;s++){if(s==7){if(!Jh(r.next,!0))return;break}if(r.next!="extends".charCodeAt(s))break;r.advance(),t++}}r.acceptToken(YQ,-t)}),gU=cu({"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)}),yU={__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},bU={__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},xU={__proto__:null,"<":187},tA=Ku.deserialize({version:14,states:"$@QO%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-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/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%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!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%VO#]+zO~Oh%VOk+}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%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'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})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < 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:fU,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:[gU],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-yU[r]||-1},{term:338,get:r=>bU[r]||-1},{term:92,get:r=>xU[r]||-1}],tokenPrec:14749});var aA=[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 { +`;this.styleTag.textContent=a;let l=t.head||t;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var is={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Vi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},LM=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),Vi[cr]=String.fromCharCode(cr);var cr;for(El in is)Vi.hasOwnProperty(El)||(Vi[El]=is[El]);var El;function LS(r){var e=LM&&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?Vi: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 fo(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function $f(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function MM(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Rl(r,e){if(!e.anchorNode)return!1;try{return $f(r,e.anchorNode)}catch{return!1}}function po(r){return r.nodeType==3?ii(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function so(r,e,t,s){return t?$S(r,e,t,s,-1)||$S(r,e,t,s,1):!1}function si(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Ml(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function $S(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=si(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 Ap(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function jM(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 CE(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 qM(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=jM(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 x=c.getBoundingClientRect();({scaleX:d,scaleY:m}=CE(c,x)),h={left:x.left,right:x.left+c.clientWidth*d,top:x.top,bottom:x.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.leftn.clientHeight&&(s=n),!t&&n.scrollWidth>n.clientWidth&&(t=n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;return{x:t,y:s}}var Mf=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}},Wi=null;function kE(r){if(r.setActive)return r.setActive();if(Wi)return r.focus(Wi);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(Wi==null?{get preventScroll(){return Wi={preventScroll:!0},!0}}:void 0),!Wi){Wi=!1;for(let t=0;tMath.max(1,r.scrollHeight-r.clientHeight-4)}function TE(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&&!Ml(t))s=si(t),t=t.parentNode;else return null}}function DE(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=Pp){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 _E(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:US||/Mac/.test(jr.platform),windows:/Win/.test(jr.platform),linux:/Linux|X11/.test(jr.platform),ie:eu,ie_version:RE?jf.documentMode||6:Qf?+Qf[1]:qf?+qf[1]:0,gecko:qS,gecko_version:qS?+(/Firefox\/(\d+)/.exec(jr.userAgent)||[0,0])[1]:0,chrome:!!_f,chrome_version:_f?+_f[1]:0,ios:US,android:/Android\b/.test(jr.userAgent),webkit:QS,safari:FE,webkit_version:QS?+(/\bAppleWebKit\/(\d+)/.exec(jr.userAgent)||[0,0])[1]:0,tabSize:jf.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},WM=256,$n=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>WM||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 ZM(this.dom,e,t)}},Ps=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(AE(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 BE(this,e)}coordsAt(e,t){return LE(this,e,t)}};function ZM(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?Ap(o,a<0):o||null}var ho=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 It.empty}get isHidden(){return!0}};$n.prototype.children=ho.prototype.children=mo.prototype.children=Pp;function BE(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 Ps&&n.length&&(s=n[n.length-1])instanceof Ps&&s.mark.eq(e.mark)?NE(s,e.children[0],t-1):(n.push(e),e.setParent(r)),r.length+=e.length}function LE(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 Vf(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 GM(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){ql(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){NE(this,e,t)}addLineDeco(e){let t=e.spec.attributes,s=e.spec.class;t&&(this.attrs=Uf(t,this.attrs||{})),s&&(this.attrs=Uf({class:s},this.attrs||{}))}domAtPos(e){return BE(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var s;this.dom?this.flags&4&&(AE(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&&(Vf(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 Ps;)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 $n))){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 $n)||/[^ -~]/.test(s.text))return null;let n=po(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=LE(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}},ni=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 go(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 Ts(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}=$E(e,t);s=(i?t?-3e8:-1:5e8)-1,n=(a?t?2e8:1:-6e8)+1}return new Ts(e,s,n,t,e.widget||null,!0)}static line(e){return new yo(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 go=class r extends yt{constructor(e){let{start:t,end:s}=$E(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))&&ql(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)}};go.prototype.point=!1;var yo=class r extends yt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof r&&this.spec.class==e.spec.class&&ql(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)}};yo.prototype.mapMode=fr.TrackBefore;yo.prototype.point=!0;var Ts=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&&XM(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)}};Ts.prototype.point=!0;function $E(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 XM(r,e){return r==e||!!(r&&e&&r.compare(e))}function Wf(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 io=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 ni&&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(wl(new mo(-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 ni)&&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(wl(new $n(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 Ts){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 Ts)if(s.block)s.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ni(s.widget||Ds.block,l,s));else{let o=ho.create(s.widget||Ds.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(wl(new mo(1),n),i),i=n.length+Math.max(0,i-n.length)),p.append(wl(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 wl(r,e){for(let t of e)r=new Ps(t,[r],r.length);return r}var Ds=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}};Ds.inline=new Ds("span");Ds.block=new Ds("div");var Zt=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(Zt||(Zt={})),ai=Zt.LTR,Tp=Zt.RTL;function ME(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 qE(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&&(Gt[p]=Gt[Fn[m]]=y),l=m;break}}else{if(Fn.length==189)break;Fn[l++]=p,Fn[l++]=h,Fn[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=Fn[g+2];if(y&2)break;if(m)Fn[g+2]|=2;else{if(y&4)break;Fn[g+2]|=4}}}}}function t3(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 zf(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 Nn(o,m.from,f));let g=m.direction==ai!=!(f%2);Gf(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?zf(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==ai?0:1;return Gf(r,n,n,t,0,r.length,s),s}function QE(r){return[new Nn(0,r,0)]}var UE="";function n3(r,e,t,s,n){var i;let a=s.head-r.from,l=Nn.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),UE=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)}),HE=ct.define({combine:r=>r.some(e=>e)}),KE=ct.define(),ao=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)}},Cl=Et.define({map:(r,e)=>r.map(e)}),JE=Et.define();function yr(r,e,t){let s=r.facet(zE);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 Cs=ct.define({combine:r=>r.length?r[0]:!0}),i3=0,Ja=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(i3++,e,s,n,l=>{let o=[Ja.of(l)];return a&&o.push(bo.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)}},oo=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}},ew=ct.define(),tu=ct.define(),bo=ct.define(),tw=ct.define(),Dp=ct.define(),rw=ct.define();function WS(r,e){let t=r.state.facet(rw);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=s3(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 nw=ct.define();function sw(r){let e=0,t=0,s=0,n=0;for(let i of r.state.facet(nw)){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 eo=ct.define(),Ln=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}}},Ql=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 Ln(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}},Ul=class extends Xt{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=yt.none,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 Ln(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),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!p3(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let i=n>-1?o3(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;s=new Ln(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=c3(a,l,e.changes);return s=Ln.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=io.build(this.view.state.doc,c,s.range.fromB,this.decorations,this.dynamicDecorationMap),w=io.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}=io.build(this.view.state.doc,c,p,this.decorations,this.dynamicDecorationMap));let{i:g,off:y}=i.findPos(u,1),{i:x,off:v}=i.findPos(o,-1);_E(this,x,v,g,y,h,f,d,m)}s&&this.fixCompositionDOM(s)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let s of t.effects)s.is(JE)&&(this.editContextFormatting=s.value)}compositionView(e){let t=new $n(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new Ps(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&&Rl(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&&a3(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||(!so(o.node,o.offset,c.anchorNode,c.anchorOffset)||!so(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)&&f3(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=fo(this.view.root);if(p)if(l.empty){if(ft.gecko){let h=l3(o.node,o.offset);if(h&&h!=3){let f=(h==1?TE:DE)(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&&so(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=fo(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;else if(s&&u==e&&o==e&&l instanceof ni&&Math.abs(t)<2){if(l.deco.startSide<0)break;a&&(s=null)}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 $n))return null;let i=ur(n.text,s);if(i==s)return null;let a=ii(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?po(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=po(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 jl(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 Vl(l),block:!0,inclusive:!0,isBlockGap:!0}).range(s,a))}if(!i)break;s=i.to+1}return yt.set(e)}updateDeco(){let e=1,t=this.view.state.facet(bo).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),s=!1,n=this.view.state.facet(tw).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=[this.editContextFormatting,...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=sw(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;qM(this.view.scrollDOM,a,t.head{se.from&&(t=!0)}),t}function h3(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 m3(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function If(r,e){return r.tope.top+1}function ZS(r,e){return er.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Yf(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=po(d);for(let g=0;gv||a==v&&i>x){s=d,n=y,i=x,a=v;let S=v?t0?g0)}x==0?t>y.bottom&&(!c||c.bottomy.top)&&(u=d,p=y):c&&If(c,y)?c=zS(c,y.bottom):p&&If(p,y)&&(p=ZS(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 GS(s,h,t);if(l&&s.contentEditable!="false")return Yf(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 GS(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)&&ii(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 aw(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:XS(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,x=-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:x}=S)}else if(d.caretRangeFromPoint){let S=d.caretRangeFromPoint(c,p);S&&({startContainer:y,startOffset:x}=S,(!r.contentDOM.contains(y)||ft.safari&&g3(y,x,c)||ft.chrome&&y3(y,x,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:x}=Yf(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+Sl(a,i,r.state.tabSize)}function g3(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 ii(r,s-1,s).getBoundingClientRect().left>t}function y3(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():ii(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-s.left>5}function Hf(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 b3(r,e,t,s){let n=Hf(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 YS(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=n3(n,i,a,l,t),c=UE;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 x3(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 v3(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=aw(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&&B3(e.contentDOM.ownerDocument)}handleEvent(e){!A3(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=O3(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&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&lw.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),ft.android&&ft.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return ft.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=ow.find(s=>s.keyCode==e.keyCode))&&!e.ctrlKey||S3.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.view.observer.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 HS(r,e){return(t,s)=>{try{return e.call(r,s,t)}catch(n){yr(t.state,n)}}}function O3(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(HS(s.value,a))}if(n&&n.domEventObservers)for(let i in n.domEventObservers){let a=n.domEventObservers[i];a&&t(i).observers.push(HS(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 ow=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],S3="dthko",lw=[16,17,18,20,91,92,224,225],kl=6;function Al(r){return Math.max(0,r)*.7+8}function E3(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}var Jf=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.scrollParents=QM(e.contentDOM),this.atoms=e.state.facet(Dp).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)&&w3(e,t),this.dragging=k3(e,t)&&pw(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&E3(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,s=0,n=0,i=0,a=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:l}=this.scrollParents.y.getBoundingClientRect());let o=sw(this.view);e.clientX-o.left<=n+kl?t=-Al(n-e.clientX):e.clientX+o.right>=a-kl&&(t=Al(e.clientX-a)),e.clientY-o.top<=i+kl?s=-Al(i-e.clientY):e.clientY+o.bottom>=l-kl&&(s=Al(e.clientY-l)),this.setScrollSpeed(t,s)}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(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let s=0;st.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function w3(r,e){let t=r.state.facet(VE);return t.length?t[0](e):ft.mac?e.metaKey:e.ctrlKey}function C3(r,e){let t=r.state.facet(WE);return t.length?t[0](e):ft.mac?!e.altKey:!e.ctrlKey}function k3(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let s=fo(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 A3(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),uw=ft.ie&&ft.ie_version<15||ft.ios&&ft.webkit_version<604;function P3(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(),cw(r,t.value)},50)}function cw(r,e){let{state:t}=r,s,n=1,i=t.toText(e),a=i.lines==t.selection.ranges.length;if(ep!=null&&t.selection.ranges.every(o=>o.empty)&&ep==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.tabFocusMode!=0&&(r.inputState.tabFocusMode=Date.now()+2e3),!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(ZE))if(t=s(r,e),t)break;if(!t&&e.button==0&&(t=_3(r,e)),t){let s=!r.hasFocus;r.inputState.startMouseSelection(new Jf(r,e,t,s)),s&&r.observer.ignore(()=>{kE(r.contentDOM);let i=r.root.activeElement;i&&!i.contains(r.contentDOM)&&i.blur()});let n=r.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};function KS(r,e,t,s){if(s==1)return Ze.cursor(e,t);if(s==2)return h3(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,JS=(r,e,t)=>fw(e,t)&&r>=t.left&&r<=t.right;function T3(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&&JS(t,s,a))return-1;let l=n.coordsAt(i,1);return l&&JS(t,s,l)?1:a&&fw(s,a)?-1:1}function eE(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:T3(r,t,e.clientX,e.clientY)}}var D3=ft.ie&&ft.ie_version<=11,tE=null,rE=0,nE=0;function pw(r){if(!D3)return r.detail;let e=tE,t=nE;return tE=r,nE=Date.now(),rE=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(rE+1)%3:1}function _3(r,e){let t=eE(r,e),s=pw(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=eE(r,i),u,c=KS(r,o.pos,o.bias,s);if(t.pos!=o.pos&&!a){let p=KS(r,t.pos,t.bias,s),h=Math.min(p.from,c.from),f=Math.max(p.to,c.to);c=h1&&(u=I3(n,o.pos))?u:l?n.addRange(c):Ze.create([c])}}}function I3(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 sE(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&&C3(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&&sE(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 sE(r,e,s,!0),!0}return!1};bn.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=uw?null:e.clipboardData;return t?(cw(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(P3(r),!1)};function R3(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 F3(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 ep=null;bn.copy=bn.cut=(r,e)=>{let{text:t,ranges:s,linewise:n}=F3(r.state);if(!t&&!n)return!1;ep=n?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let i=uw?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",t),!0):(R3(r,t),!1)};var hw=Mr.define();function dw(r,e){let t=[];for(let s of r.facet(XE)){let n=s(r,e);n&&t.push(n)}return t?r.update({effects:t,annotations:hw.of(!0)}):null}function mw(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=dw(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),mw(r)};on.blur=r=>{r.observer.clearSelectionRange(),mw(r)};on.compositionstart=on.compositionupdate=r=>{r.observer.editContext||(r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0))};on.compositionend=r=>{r.observer.editContext||(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=ow.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 iE=new Set;function B3(r){iE.has(r)||(iE.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}var aE=["pre-wrap","normal","pre-line","break-spaces"],tp=class{constructor(e){this.lineWrapping=e,this.doc=It.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 aE.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)>Bl&&(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 Wl{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,s,n){return new Bn(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 As&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof As?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:""})`}},As=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)>=Bl&&(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)>=Bl||Math.abs(o-this.heightMetrics(e,t).perLine)>=Bl)&&(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})`}},np=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&&oE(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 oE(r,e){let t,s;r[e]==null&&(t=r[e-1])instanceof As&&(s=r[e+1])instanceof As&&r.splice(e-1,3,new As(t.length+1+s.length))}var N3=5,sp=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=N3)&&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 As(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 M3(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}var lo=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 tp(t),this.stateDeco=e.facet(bo).filter(s=>typeof s!="function"),this.heightMap=Gr.empty().applyChanges(this.stateDeco,It.empty,this.heightOracle.setDoc(e.doc),[new Ln(0,0,0,e.doc.length)]);for(let s=0;s<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());s++);this.updateViewportLines(),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 Zi(i,a))}}return this.viewports=e.sort((s,n)=>s.from-n.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?lE:new op(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(to(e,this.scaler))})}update(e,t=null){this.state=e.state;let s=this.stateDeco;this.stateDeco=this.state.facet(bo).filter(c=>typeof c!="function");let n=e.changedRanges,i=Ln.extendWithRanges(n,L3(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=o.from!=this.viewport.from||o.to!=this.viewport.to;this.viewport=o,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&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(HE)&&(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}=CE(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=PE(e.scrollDOM);let d=(this.printing?M3:$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 x=l.width;if((this.contentDOMWidth!=x||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(x-this.contentDOMWidth)>n.charWidth){let{lineHeight:w,charWidth:O,textHeight:C}=e.docView.measureTextSize();a=w>0&&n.refresh(i,w,O,C,x/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,It.empty,this.heightOracle,[new Ln(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,a,new rp(w.from,O))}n.heightChanged&&(u|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=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 Zi(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=(c,p,h,f)=>{if(p-cc&&yy.from>=h.from&&y.to<=h.to&&Math.abs(y.from-c)y.fromx));if(!g){if(py.from<=p&&y.to>=p)){let y=t.moveToLineBoundary(Ze.cursor(p),!1,!0).head;y>c&&(p=y)}g=new lo(c,p,this.gapSize(h,c,p,f))}l.push(g)},u=c=>{if(c.lengthc.from&&o(c.from,f,c,p),dt.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)||to(this.heightMap.lineAt(e,Ht.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||to(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 to(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}},Zi=class{constructor(e,t){this.from=e,this.to=t}};function j3(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 Tl(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 q3(r,e){for(let t of r)if(e(t))return t}var lE={toDOM(r){return r},fromDOM(r){return r},scale:1,eq(r){return r==this}},op=class r{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=tt.from==e.viewports[s].from&&t.to==e.viewports[s].to):!1}};function to(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),s=e.toDOM(r.bottom);return new Bn(r.from,r.length,t,s-t,Array.isArray(r._content)?r._content.map(n=>to(n,e)):r._content)}var Dl=ct.define({combine:r=>r.join(" ")}),lp=ct.define({combine:r=>r.indexOf(!0)>-1}),up=nn.newName(),gw=nn.newName(),yw=nn.newName(),bw={"&light":"."+gw,"&dark":"."+yw};function cp(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 Q3=cp("."+up,{"&":{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"}},bw),ro="\uFFFF",fp=class{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Ut.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=ro}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:Ml(n))||Ml(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+(U3(e,s.node,s.offset)?t:0))}};function U3(r,e,t){for(;;){if(!e||t-1;let{impreciseHead:i,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,s,0))){let l=i||a?[]:Z3(e),o=new fp(l,e.state);o.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=o.text,this.newSel=z3(l,this.bounds.from)}else{let l=e.observer.selectionRange,o=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!$f(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||!$f(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:It.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:It.of([" "])}),t)return vw(r,t,s,i);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 vw(r,e,t,s=-1){if(ft.ios&&r.inputState.flushIOSKey(e))return!0;let n=r.state.selection.main;if(ft.android&&(e.to==n.to&&(e.from==n.from||e.from==n.from-1&&r.state.sliceDoc(e.from,n.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Xi(r.contentDOM,"Enter",13)||(e.from==n.from-1&&e.to==n.to&&e.insert.length==0||s==8&&e.insert.lengthn.head)&&Xi(r.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&e.insert.length==0&&Xi(r.contentDOM,"Delete",46)))return!0;let i=e.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let a,l=()=>a||(a=V3(r,e,t));return r.state.facet(GE).some(o=>o(r,e.from,e.to,i,l))||r.dispatch(l()),!0}function V3(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&&iw(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}),x=d.to-i.to;return{changes:y,range:o?Ze.range(Math.max(0,o.anchor+x),Math.max(0,o.head+x)):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 W3(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 Z3(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 zl(t,s)),(n!=t||i!=s)&&e.push(new zl(n,i))),e}function z3(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 G3={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ff=ft.ie&&ft.ie_version<=11,hp=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Mf,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()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(ft.chrome&&ft.chrome_version<126)&&(this.editContext=new dp(e),e.state.facet(Cs)&&(e.contentDOM.editContext=this.editContext.editContext)),Ff&&(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.editContext&&this.view.requestMeasure(this.editContext.measureReq),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(Cs)?s.root.activeElement!=this.dom:!Rl(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&&so(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=fo(e.root);if(!t)return!1;let s=ft.safari&&e.root.nodeType==11&&MM(this.dom.ownerDocument)==this.dom&&X3(this.view,t)||t;if(!s||this.selectionRange.eq(s))return!1;let n=Rl(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&&Xi(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&&Rl(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 pp(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=xw(this.view,t);return this.view.state==s&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&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=uE(t,e.previousSibling||e.target.previousSibling,-1),n=uE(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)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Cs)!=e.state.facet(Cs)&&(e.view.contentDOM.editContext=e.state.facet(Cs)?this.editContext.editContext:null))}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),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function uE(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 cE(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 so(a.node,a.offset,n,i)&&([t,s,n,i]=[n,i,t,s]),{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}}function X3(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return cE(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?cE(r,t):null}var dp=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=s=>{let{anchor:n}=e.state.selection.main,i={from:this.toEditorPos(s.updateRangeStart),to:this.toEditorPos(s.updateRangeEnd),insert:It.of(s.text.split(` +`))};i.from==this.from&&nthis.to&&(i.to=n),!(i.from==i.to&&!i.insert.length)&&(this.pendingContextChange=i,vw(e,i,Ze.single(this.toEditorPos(s.selectionStart),this.toEditorPos(s.selectionEnd))),this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)))},this.handlers.characterboundsupdate=s=>{let n=[],i=null;for(let a=this.toEditorPos(s.rangeStart),l=this.toEditorPos(s.rangeEnd);a{let n=[];for(let i of s.getTextFormats()){let a=i.underlineStyle,l=i.underlineThickness;if(a!="None"&&l!="None"){let o=`text-decoration: underline ${a=="Dashed"?"dashed ":a=="Squiggle"?"wavy ":""}${l=="Thin"?1:2}px`;n.push(yt.mark({attributes:{style:o}}).range(this.toEditorPos(i.rangeStart),this.toEditorPos(i.rangeEnd)))}}e.dispatch({effects:JE.of(yt.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null};for(let s in this.handlers)t.addEventListener(s,this.handlers[s]);this.measureReq={read:s=>{this.editContext.updateControlBounds(s.contentDOM.getBoundingClientRect());let n=fo(s.root);n&&n.rangeCount&&this.editContext.updateSelectionBounds(n.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,s=!1,n=this.pendingContextChange;return e.changes.iterChanges((i,a,l,o,u)=>{if(s)return;let c=u.length-(a-i);if(n&&a>=n.to)if(n.from==i&&n.to==a&&n.insert.eq(u)){n=this.pendingContextChange=null,t+=c,this.to+=c;return}else n=null,this.revertPending(e.state);if(i+=t,a+=t,a<=this.from)this.from+=c,this.to+=c;else if(ithis.to||this.to-this.from+u.length>3e4){s=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(a),u.toString()),this.to+=c}t+=c}),n&&!s&&this.revertPending(e.state),!s}update(e){let t=this.pendingContextChange;!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,s=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);(this.editContext.selectionStart!=s||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(s,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},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||UM(e.parent)||document,this.viewState=new Zl(e.state||Ut.create(e)),e.scrollTo&&e.scrollTo.is(Cl)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ja).map(s=>new oo(s));for(let s of this.plugins)s.update(this);this.observer=new hp(this),this.inputState=new Kf(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ul(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(hw))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,o=dw(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=Ql.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 ao(f.empty?f:Ze.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of h.effects)f.is(Cl)&&(p=f.value.clip(this.state))}this.viewState.update(n,p),this.bidiCache=Gl.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(eo)!=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(Dl)!=n.state.facet(Dl)&&(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(Xf))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&&!xw(this,c)&&u.force&&Xi(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 Zl(e),this.plugins=e.facet(Ja).map(s=>new oo(s)),this.pluginMap.clear();for(let s of this.plugins)s.update(this);this.docView.destroy(),this.docView=new Ul(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(Ja),s=e.state.facet(Ja);if(t!=s){let n=[];for(let i of s){let a=t.indexOf(i);if(a<0)n.push(new oo(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(PE(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),fE}}),p=Ql.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(Xf))l(t)}get themeClasses(){return up+" "+(this.state.facet(lp)?yw:gw)+" "+this.state.facet(Dl)}updateAttrs(){let e=pE(this,ew,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Cs)?"true":"false",class:"cm-content",style:`${ft.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),pE(this,tu,t);let s=this.observer.ignore(()=>{let n=Vf(this.contentDOM,this.contentAttrs,t),i=Vf(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(eo);let e=this.state.facet(r.cspNonce);nn.mount(this.root,this.styleModules.concat(Q3).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 Rf(this,e,YS(this,e,t,s))}moveByGroup(e,t){return Rf(this,e,YS(this,e,t,s=>x3(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 b3(this,e,t,s)}moveVertically(e,t,s){return Rf(this,e,v3(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(),aw(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[Nn.find(i,e-n.from,-1,t)];return Ap(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(YE)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Y3)return QE(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||qE(i.isolates,s=WS(this,e))))return i.order;s||(s=WS(this,e));let n=r3(e.text,t,s);return this.bidiCache.push(new Gl(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(()=>{kE(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(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();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 Cl.of(new ao(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 Cl.of(new ao(Ze.cursor(s.from),"start","start",s.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}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=[Dl.of(s),eo.of(cp(`.${s}`,e))];return t&&t.dark&&n.push(lp.of(!0)),n}static baseTheme(e){return rn.lowest(eo.of(cp("."+up,e,bw)))}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=eo;at.inputHandler=GE;at.scrollHandler=KE;at.focusChangeEffect=XE;at.perLineTextDirection=YE;at.exceptionSink=zE;at.updateListener=Xf;at.editable=Cs;at.mouseSelectionStyle=ZE;at.dragMovesSelection=WE;at.clickAddsSelectionRange=VE;at.decorations=bo;at.outerDecorations=tw;at.atomicRanges=Dp;at.bidiIsolatedRanges=rw;at.scrollMargins=nw;at.darkTheme=lp;at.cspNonce=ct.define({combine:r=>r.length?r[0]:""});at.contentAttributes=tu;at.editorAttributes=ew;at.lineWrapping=at.contentAttributes.of({class:"cm-lineWrapping"});at.announce=Et.define();var Y3=4096,fE={},Gl=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&&Uf(a,t)}return t}var H3=ft.mac?"mac":ft.windows?"win":ft.linux?"linux":"key";function K3(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 Sw(r,e,t){return Ew(Ow(r.state),e,r,t)}var ks=null,ej=4e3;function tj(r,e=H3){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=>K3(y,e));for(let y=1;y{let S=ks={view:v,prefix:x,scope:a};return setTimeout(()=>{ks==S&&(ks=null)},ej),!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:[]});let{any:p}=a;for(let h in c)c[h].run.push(f=>p(f,mp))}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}var mp=null;function Ew(r,e,t,s){mp=e;let n=LS(e),i=gr(n,0),a=$r(i)==n.length&&n!=" ",l="",o=!1,u=!1,c=!1;ks&&ks.view==t&&ks.scope==s&&(l=ks.prefix+" ",lw.indexOf(e.keyCode)<0&&(u=!0,ks=null));let p=new Set,h=g=>{if(g){for(let y of g.run)if(!p.has(y)&&(p.add(y),y(t)))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+_l(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+_l(d,e,!0)])||e.shiftKey&&(m=Vi[e.keyCode])!=n&&m!=d&&h(f[l+_l(m,e,!1)]))&&(o=!0):a&&e.shiftKey&&h(f[l+_l(n,e,!0)])&&(o=!0),!o&&h(f._any)&&(o=!0)),u&&(o=!0),o&&c&&e.stopPropagation(),mp=null,o}var xo=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=ww(e);return[new r(t,n.left-i.left,n.top-i.top,null,n.bottom-n.top)]}else return rj(e,t,s)}};function ww(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 dE(r,e,t,s){let n=r.coordsAtPos(e,t*2);if(!n)return s;let i=r.dom.getBoundingClientRect(),a=(n.top+n.bottom)/2,l=r.posAtCoords({x:i.left+1,y:a}),o=r.posAtCoords({x:i.right-1,y:a});return l==null||o==null?s:{from:Math.max(s.from,Math.min(l,o)),to:Math.min(s.to,Math.max(l,o))}}function rj(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=ww(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=Hf(r,s),d=Hf(r,n),m=f.type==Ir.Text?f:null,g=d.type==Ir.Text?d:null;if(m&&(r.lineWrapping||f.widgetLineBreaks)&&(m=dE(r,s,1,m)),g&&(r.lineWrapping||d.widgetLineBreaks)&&(g=dE(r,n,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return x(v(t.from,t.to,m));{let w=m?v(t.from,null,m):S(f,!1),O=g?v(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 nj(r,e){return r.constructor==e.constructor&&r.eq(e)}var gp=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(Nl)!=e.state.facet(Nl)&&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(Nl);for(;t!nj(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()}},Nl=ct.define();function Cw(r){return[rr.define(e=>new gp(e,r)),Nl.of(r)]}var kw=!ft.ios,vo=ct.define({combine(r){return kr(r,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Aw(r={}){return[vo.of(r),sj,ij,aj,HE.of(!0)]}function Pw(r){return r.startState.facet(vo)!=r.state.facet(vo)}var sj=Cw({above:!0,markers(r){let{state:e}=r,t=e.facet(vo),s=[];for(let n of e.selection.ranges){let i=n==e.selection.main;if(n.empty?!i||kw: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 xo.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=Pw(r);return t&&mE(r.state,e),r.docChanged||r.selectionSet||t},mount(r,e){mE(e.state,r)},class:"cm-cursorLayer"});function mE(r,e){e.style.animationDuration=r.facet(vo).cursorBlinkRate+"ms"}var ij=Cw({above:!1,markers(r){return r.state.selection.ranges.map(e=>e.empty?[]:xo.forRange(r,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(r,e){return r.docChanged||r.selectionSet||r.viewportChanged||Pw(r)},class:"cm-selectionLayer"}),yp={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};kw&&(yp[".cm-line"].caretColor=yp[".cm-content"].caretColor="transparent !important");var aj=rn.highest(at.theme(yp)),Tw=Et.define({map(r,e){return r==null?null:e.mapPos(r)}}),no=Yt.define({create(){return null},update(r,e){return r!=null&&(r=e.changes.mapPos(r)),e.effects.reduce((t,s)=>s.is(Tw)?s.value:t,r)}}),oj=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(no);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(no)!=t||r.docChanged||r.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:r}=this,e=r.state.field(no),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(no)!=r&&this.view.dispatch({effects:Tw.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 Dw(){return[no,oj]}function gE(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 lj(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 bp=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 Rn,s=t.add.bind(t);for(let{from:n,to:i}of lj(e,this.maxLength))gE(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}},xp=/x/.unicode!=null?"gu":"g",uj=new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,xp),cj={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"},Bf=null;function fj(){var r;if(Bf==null&&typeof document<"u"&&document.body){let e=document.body.style;Bf=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return Bf||!1}var Ll=ct.define({combine(r){let e=kr(r,{render:null,specialChars:uj,addSpecialChars:null});return(e.replaceTabs=!fj())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,xp)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,xp)),e}});function _w(r={}){return[Ll.of(r),pj()]}var yE=null;function pj(){return yE||(yE=rr.fromClass(class{constructor(r){this.view=r,this.decorations=yt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Ll)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new bp({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 Op((l-o%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=yt.replace({widget:new vp(r,i)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Ll);r.startState.facet(Ll)!=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 hj="\u2022";function dj(r){return r>=32?hj:r==10?"\u2424":String.fromCharCode(9216+r)}var vp=class extends an{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=dj(this.code),s=e.state.phrase("Control character")+" "+(cj[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}},Op=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}},bE=rr.fromClass(class{constructor(){this.height=1e3,this.attrs={style:"padding-bottom: 1000px"}}update(r){let{view:e}=r,t=e.viewState.editorHeight-e.defaultLineHeight-e.documentPadding.top-.5;t>=0&&t!=this.height&&(this.height=t,this.attrs={style:`padding-bottom: ${t}px`})}});function Iw(){return[bE,tu.of(r=>{var e;return((e=r.plugin(bE))===null||e===void 0?void 0:e.attrs)||null})]}function Rw(){return gj}var mj=yt.line({class:"cm-activeLine"}),gj=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(mj.range(n.from)),e=n.from)}return yt.set(t)}},{decorations:r=>r.decorations});var Sp=2e3;function yj(r,e,t){let s=Math.min(e.line,t.line),n=Math.max(e.line,t.line),i=[];if(e.off>Sp||t.off>Sp||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=Sl(u.text,a,r.tabSize,!0);if(c<0)i.push(Ze.cursor(u.to));else{let p=Sl(u.text,l,r.tabSize);i.push(Ze.range(u.from+c,u.from+p))}}}return i}function bj(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function xE(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>Sp?-1:n==s.length?bj(r,e.clientX):ss(s.text,r.state.tabSize,t-s.from);return{line:s.number,col:i,off:n}}function xj(r,e){let t=xE(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=xE(r,n);if(!l)return s;let o=yj(r.state,t,l);return o.length?a?Ze.create(o.concat(s.ranges)):Ze.create(o):s}}:null}function Fw(r){let e=r?.eventFilter||(t=>t.altKey&&t.button==0);return at.mouseSelectionStyle.of((t,s)=>e(s)?xj(t,s):null)}var vj={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},Oj={style:"cursor: crosshair"};function Bw(r={}){let[e,t]=vj[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?Oj:null})]}var Ka="-10000px",Xl=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 Sj(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}var Nf=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)||Sj}}}),vE=new WeakMap,_p=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(Nf);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 Xl(r,Yi,(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(Nf);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=Ka,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==Ka&&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(Nf).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=Ka;continue}let f=o.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,d=f?7:0,m=h.right-h.left,g=(e=vE.get(u))!==null&&e!==void 0?e:h.bottom-h.top,y=u.offset||wj,x=this.view.textDirection==Zt.LTR,v=h.width>s.right-s.left?x?s.left:s.right-h.width:x?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(wv&&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+(x?y.x:-y.x)-(v+14-7);f.style.left=E/n+"px"}u.overlap!==!0&&a.push({left:v,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=Ka}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Ej=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"}}}),wj={x:0,y:0},Yi=ct.define({enables:[_p,Ej]}),Yl=ct.define({combine:r=>r.reduce((e,t)=>e.concat(t),[])}),Hl=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 Xl(e,Yl,(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")}},Cj=Yi.compute([Yl],r=>{let e=r.facet(Yl);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:Hl.create,above:e[0].above,arrow:e.some(t=>t.arrow)}}),Ep=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(_p),t=e?e.manager.tooltips.findIndex(s=>s.create==Hl.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&&!kj(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:!Aj(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)}},Il=4;function kj(r,e){let t=r.getBoundingClientRect();return e.clientX>=t.left-Il&&e.clientX<=t.right+Il&&e.clientY>=t.top-Il&&e.clientY<=t.bottom+Il}function Aj(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 Nw(r,e={}){let t=Et.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(Pj)&&(n=[]);return n},provide:n=>Yl.from(n)});return[s,rr.define(n=>new Ep(n,r,s,t,e.hoverTime||300)),Cj]}function Ip(r,e){let t=r.plugin(_p);if(!t)return null;let s=t.manager.tooltips.indexOf(e);return s<0?null:t.manager.tooltipViews[s]}var Pj=Et.define();var OE=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 Hi(r,e){let t=r.plugin(Lw),s=t?t.specs.indexOf(e):-1;return s>-1?t.panels[s]:null}var Lw=rr.fromClass(class{constructor(r){this.input=r.state.facet(oi),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(OE);this.top=new zi(r,!0,e.topContainer),this.bottom=new zi(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(OE);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new zi(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new zi(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(oi);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()}})}),zi=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=SE(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=SE(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 SE(r){let e=r.nextSibling;return r.remove(),e}var oi=ct.define({enables:Lw}),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 $l=ct.define(),Tj={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Mt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},uo=ct.define();function Rp(r){return[$w(),uo.of(Object.assign(Object.assign({},Tj),r))]}var wp=ct.define({combine:r=>r.some(e=>e)});function $w(r){let e=[Dj];return r&&r.fixed===!1&&e.push(wp.of(!0)),e}var Dj=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(uo).map(e=>new Kl(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(wp),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(wp)!=!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($l),this.view.viewport.from),s=[],n=this.gutters.map(i=>new kp(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){Cp(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){Cp(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(uo),t=r.state.facet(uo),s=r.docChanged||r.heightChanged||r.viewportChanged||!Mt.eq(r.startState.facet($l),r.state.facet($l),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 Kl(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 EE(r){return Array.isArray(r)?r:[r]}function Cp(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}var kp=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 Jl(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=[];Cp(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()}}},Kl=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=EE(t.markers(e)),t.initialSpacer&&(this.spacer=new Jl(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=EE(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()}},Jl=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":""),_j(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}})}}),co=class extends Xr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function Lf(r,e){return r.state.facet(Gi).formatNumber(e,r.state)}var Rj=uo.compute([Gi],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Ij)},lineMarker(e,t,s){return s.some(n=>n.toDOM)?null:new co(Lf(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Gi)!=e.state.facet(Gi),initialSpacer(e){return new co(Lf(e,wE(e.state.doc.lines)))},updateSpacer(e,t){let s=Lf(t.view,wE(t.view.state.doc.lines));return s==e.number?e:new co(s)},domEventHandlers:r.facet(Gi).domEventHandlers}));function Mw(r={}){return[Gi.of(r),$w(),Rj]}function wE(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(Fj.range(n)))}return Mt.of(e)});function jw(){return Bj}var Nj=0,Oo=class{constructor(e,t){this.from=e,this.to=t}},kt=class{constructor(e={}){this.id=Nj++,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 Ki=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]}},Lj=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):Lj,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 So=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:jp(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 Mj(e)}};or.empty=new or(Ar.none,[],[],0);var Fp=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)}},Is=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 Eo(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(Vw(n,s,p,p+c.length)){if(c instanceof Is){if(i&nr.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,t,s-p,n);if(h>-1)return new li(new Np(a,c,e,p),null,h)}else if(i&nr.IncludeAnonymous||!c.type.isAnonymous||Mp(c)){let h;if(!(i&nr.IgnoreMounts)&&(h=Ki.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=Ki.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 Qw(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 Bp(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 Np=class{constructor(e,t,s,n){this.parent=e,this.buffer=t,this.index=s,this.start=n}},li=class r extends su{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 Ww(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(Eo(l,e,t,!1))}}return n?Ww(n):s}var wo=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 Is||!l.type.isAnonymous||Mp(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 Bp(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 Mp(r){return r.children.some(e=>e instanceof Is||!e.type.isAnonymous||Mp(e))}function Mj(r){var e;let{buffer:t,nodeSet:s,maxBufferLength:n=1024,reused:i=[],minRepeatType:a=s.types.length}=r,l=Array.isArray(t)?new Fp(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 Is(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,ve=B;for(;l.pos>F;)ae>=0&&l.id==ae&&l.size>=0?(l.end<=ve-n&&(d(U,V,_,se,l.end,ve,ae,R),se=U.length,ve=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=jp(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 Is(_,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 x=[],v=[];for(;l.pos>0;)p(r.start||0,r.bufferStart||0,x,v,-1,0);let S=(e=r.length)!==null&&e!==void 0?e:x.length?v[0]+x[0].length:0;return new or(o[r.topID],x.reverse(),v.reverse(),S)}var Uw=new WeakMap;function nu(r,e){if(!r.isAnonymous||e instanceof Is||e.type!=r)return 1;let t=Uw.get(e);if(t==null){t=1;for(let s of e.children){if(s.type!=r||!(s instanceof or)){t=1;break}t+=nu(r,s)}Uw.set(e,t)}return t}function jp(r,e,t,s,n,i,a,l,o){let u=0;for(let d=s;d=c)break;O+=C}if(v==S+1){if(O>c){let C=d[S];f(C.children,C.positions,0,C.children.length,m[S]+x);continue}p.push(d[S])}else{let C=m[v-1]+d[v-1].length-w;p.push(jp(r,d,m,S,v,w,C,null,o))}h.push(w+x-i)}}return f(e,t,s,n,0),(l||o)(p,h,a)}var iu=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 li?this.setBuffer(e.context.buffer,e.index,t):e instanceof ln&&this.map.set(e.tree,t)}get(e){return e instanceof li?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)}},ui=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 Oo(n.from,n.to)):[new Oo(0,0)]:[new Oo(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}}},$p=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 QX=new kt({perNode:!0});var jj=0,Qn=class r{constructor(e,t,s){this.set=e,this.base=t,this.modified=s,this.id=jj++}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 uu;return t=>t.modified.indexOf(e)>-1?t:uu.get(t.base||t,t.modified.concat(e).sort((s,n)=>s.id-n.id))}},qj=0,uu=class r{constructor(){this.instances=[],this.id=qj++}static get(e,t){if(!t.length)return e;let s=t[0].instances.find(l=>l.base==e&&Qj(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=Uj(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 Qj(r,e){return r.length==e.length&&r.every((t,s)=>t==e[s])}function Uj(r){let e=[[]];for(let t=0;ts.length-t.length)}function cu(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 ea(s,a,o>0?i.slice(0,o):null);e[u]=c.sort(e[u])}}return Gw.add(e)}var Gw=new kt,ea=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 Vj(r,e){let t=null;for(let s of r){let n=s.style(e);n&&(t=t?t+" "+n:n)}return t}function Xw(r,e,t,s=0,n=r.length){let i=new Qp(s,Array.isArray(e)?e:[e],t);i.highlightRange(r.cursor(),s,n,"",i.highlighters),i.flush(n)}var Qp=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=Wj(e)||ea.empty,p=Vj(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 x=g=v||!e.nextSibling())););if(!x||v>s)break;y=x.to+l,y>t&&(this.highlightRange(f.cursor(),Math.max(t,x.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 Wj(r){let e=r.type.prop(Gw);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}var lt=Qn.define,au=lt(),Rs=lt(),Zw=lt(Rs),zw=lt(Rs),Fs=lt(),ou=lt(Fs),qp=lt(Fs),qn=lt(),ci=lt(qn),Mn=lt(),jn=lt(),Up=lt(),Co=lt(Up),lu=lt(),ke={comment:au,lineComment:lt(au),blockComment:lt(au),docComment:lt(au),name:Rs,variableName:lt(Rs),typeName:Zw,tagName:lt(Zw),propertyName:zw,attributeName:lt(zw),className:lt(Rs),labelName:lt(Rs),namespace:lt(Rs),macroName:lt(Rs),literal:Fs,string:ou,docString:lt(ou),character:lt(ou),attributeValue:lt(ou),number:qp,integer:lt(qp),float:lt(qp),bool:lt(Fs),regexp:lt(Fs),escape:lt(Fs),color:lt(Fs),url:lt(Fs),keyword:Mn,self:lt(Mn),null:lt(Mn),atom:lt(Mn),unit:lt(Mn),modifier:lt(Mn),operatorKeyword:lt(Mn),controlKeyword:lt(Mn),definitionKeyword:lt(Mn),moduleKeyword:lt(Mn),operator:jn,derefOperator:lt(jn),arithmeticOperator:lt(jn),logicOperator:lt(jn),bitwiseOperator:lt(jn),compareOperator:lt(jn),updateOperator:lt(jn),definitionOperator:lt(jn),typeOperator:lt(jn),controlOperator:lt(jn),punctuation:Up,separator:lt(Up),bracket:Co,angleBracket:lt(Co),squareBracket:lt(Co),paren:lt(Co),brace:lt(Co),content:qn,heading:ci,heading1:lt(ci),heading2:lt(ci),heading3:lt(ci),heading4:lt(ci),heading5:lt(ci),heading6:lt(ci),contentSeparator:lt(qn),list:lt(qn),quote:lt(qn),emphasis:lt(qn),strong:lt(qn),link:lt(qn),monospace:lt(qn),strikethrough:lt(qn),inserted:lt(),deleted:lt(),changed:lt(),invalid:lt(),meta:lu,documentMeta:lt(lu),annotation:lt(lu),processingInstruction:lt(lu),definition:Qn.defineModifier(),constant:Qn.defineModifier(),function:Qn.defineModifier(),standard:Qn.defineModifier(),local:Qn.defineModifier(),special:Qn.defineModifier()},WX=Vp([{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 Wp,ta=new kt;function rh(r){return ct.define({combine:r?e=>e.concat(r):void 0})}var hu=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=[ra.of(this),Ut.languageData.of((i,a,l)=>{let o=Yw(i,a,l),u=o.type.prop(ta);if(!u)return[];let c=i.facet(u),p=o.type.prop(hu);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 Yw(e,t,s).type.prop(ta)==this.data}findRegions(e){let t=e.facet(ra);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(ta)==this.data){s.push({from:a,to:a+i.length});return}let l=i.prop(kt.mounted);if(l){if(l.tree.prop(ta)==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 Xp=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)}},ko=null,Yp=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 Xp(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(ui.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ko;ko=this;try{return e()}finally{ko=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Hw(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=ui.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=Hw(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 Ji{createParse(t,s,n){let i=n[0].from,a=n[n.length-1].to;return{parsedPos:i,advance(){let o=ko;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 ko}};function Hw(r,e,t){return ui.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}var Ao=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=Yp.create(e.facet(ra).parser,e,{from:0,to:t});return s.work(20,t)||s.takeTree(),new r(s)}};Yr.state=Yt.define({create:Ao.init,update(r,e){for(let t of e.effects)if(t.is(Yr.setState))return t.value;return e.startState.facet(ra)!=e.state.facet(ra)?Ao.init(e.state):r.apply(e)}});var tC=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(tC=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});var Zp=typeof navigator<"u"&&(!((Wp=navigator.scheduling)===null||Wp===void 0)&&Wp.isInputPending)?()=>navigator.scheduling.isInputPending():null,Zj=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=tC(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,o=i.context.work(()=>Zp&&Zp()||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 Ao(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()}}}),ra=ct.define({combine(r){return r.length?r[0]:null},enables:r=>[Yr.state,Zj,at.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]}),pu=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};var zj=ct.define(),sa=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 Po(r){let e=r.facet(sa);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ia(r,e){let t="",s=r.tabSize,n=r.facet(sa)[0];if(n==" "){for(;e>=s;)t+=" ",e-=s;n=" "}for(let i=0;i=e?Gj(r,t,e):null}var fi=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=Po(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}},nh=new kt;function Gj(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 rC(s,r,t)}function rC(r,e,t){for(let s=r;s;s=s.next){let n=Yj(s.node);if(n)return n(Hp.create(e,t,s))}return 0}function Xj(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Yj(r){let e=r.type.prop(nh);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=>sC(a,!0,1,void 0,i&&!Xj(a)?n.from:void 0)}return r.parent==null?Hj:null}function Hj(){return 0}var Hp=class r extends fi{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(Kj(s,e))break;t=this.state.doc.lineAt(s.from)}return this.lineIndent(t.from)}continue(){return rC(this.context.next,this.base,this.pos)}};function Kj(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function Jj(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.fromsC(s,e,t,r)}function sC(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?Jj(r):null;return o?l?r.column(o.from):r.column(o.to):r.baseIndent+(l?0:r.unit*t)}var iC=r=>r.baseIndent;function mu({except:r,units:e=1}={}){return t=>{let s=r&&r.test(t.textAfter);return t.baseIndent+(s?0:e*t.unit)}}var eq=200;function aC(){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+eq)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=du(a,c.from);if(p==null)continue;let h=/^\s*/.exec(c.text)[0],f=ia(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 oC=new kt;function lC(r){let e=r.firstChild,t=r.lastChild;return e&&e.tol.prop(ta)==a.data:a?l=>l==a:void 0,this.style=Vp(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||{})}},Kp=ct.define(),uC=ct.define({combine(r){return r.length?[r[0]]:null}});function zp(r){let e=r.facet(Kp);return e.length?e:r.facet(uC)}function gu(r,e){let t=[tq],s;return r instanceof na&&(r.module&&t.push(at.styleModule.of(r.module)),s=r.themeType),e?.fallback?t.push(uC.of(r)):s?t.push(Kp.computeN([at.darkTheme],n=>n.facet(at.darkTheme)==(s=="dark")?[r]:[])):t.push(Kp.of(r)),t}var Jp=class{constructor(e){this.markCache=Object.create(null),this.tree=pr(e.state),this.decorations=this.buildDeco(e,zp(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=pr(e.state),s=zp(e.state),n=s!=zp(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 Rn;for(let{from:n,to:i}of e.visibleRanges)Xw(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()}},tq=rn.high(rr.fromClass(Jp,{decorations:r=>r.decorations})),cC=na.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"}]),rq=at.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),fC=1e4,pC="()[]{}",hC=ct.define({combine(r){return kr(r,{afterCursor:!0,brackets:pC,maxScanDistance:fC,renderMatch:iq})}}),nq=yt.mark({class:"cm-matchingBracket"}),sq=yt.mark({class:"cm-nonmatchingBracket"});function iq(r){let e=[],t=r.matched?nq:sq;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 aq=Yt.define({create(){return yt.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],s=e.state.facet(hC);for(let n of e.state.selection.ranges){if(!n.empty)continue;let i=xn(e.state,n.head,-1,s)||n.head>0&&xn(e.state,n.head-1,1,s)||s.afterCursor&&(xn(e.state,n.head,1,s)||n.headat.decorations.from(r)}),oq=[aq,rq];function dC(r={}){return[hC.of(r),oq]}var lq=new kt;function eh(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 th(r){let e=r.type.prop(lq);return e?e(r.node):r}function xn(r,e,t,s={}){let n=s.maxScanDistance||fC,i=s.brackets||pC,a=pr(r),l=a.resolveInner(e,t);for(let o=l;o;o=o.parent){let u=eh(o.type,t,i);if(u&&o.from0?e>=c.from&&ec.from&&e<=c.to))return uq(r,e,t,o,c,u,i)}}return cq(r,e,t,a,l.type,n,i)}function uq(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 fq=Object.create(null),Kw=[Ar.none];var Jw=[],eC=Object.create(null),pq=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"]])pq[r]=hq(fq,e);function Gp(r,e){Jw.indexOf(r)>-1||(Jw.push(r),console.warn(e))}function hq(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):Gp(u,`Modifier ${u} used at start of tag`):o.length?Gp(u,`Tag ${u} used as modifier`):o=Array.isArray(c)?c:[c]:Gp(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=eC[n];if(i)return i.id;let a=eC[n]=Ar.define({id:Kw.length,name:s,props:[cu({[s]:t})]});return Kw.push(a),a.id}var JX={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 lh=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),s=ch(r.state,t.from);return s.line?dq(r):s.block?gq(r):!1};function uh(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 dq=uh(xq,0);var mq=uh(SC,0);var gq=uh((r,e)=>SC(r,e,bq(e)),0);function ch(r,e){let t=r.languageDataAt("commentTokens",e);return t.length?t[0]:{}}var To=50;function yq(r,{open:e,close:t},s,n){let i=r.sliceDoc(s-To,s),a=r.sliceDoc(n,n+To),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*To?c=p=r.sliceDoc(s,n):(c=r.sliceDoc(s,s+To),p=r.sliceDoc(n-To,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 bq(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 SC(r,e,t=e.selection.ranges){let s=t.map(i=>ch(e,i.from).block);if(!s.every(i=>i))return null;let n=t.map((i,a)=>yq(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 ih=Mr.define(),vq=Mr.define(),Oq=ct.define(),EC=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)})}}),wC=Yt.define({create(){return pi.empty},update(r,e){let t=e.state.facet(EC),s=e.annotation(ih);if(s){let o=vn.fromTransaction(e,s.selection),u=s.side,c=u==0?r.undone:r.done;return o?c=bu(c,c.length,t.minDepth,o):c=AC(c,e.startState.selection),new pi(u==0?s.rest:c,u==0?c:s.rest)}let n=e.annotation(vq);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 pi(r.done.map(vn.fromJSON),r.undone.map(vn.fromJSON))}});function CC(r={}){return[wC,EC.of(r),at.domEventHandlers({beforeinput(e,t){let s=e.inputType=="historyUndo"?vu:e.inputType=="historyRedo"?Do:null;return s?(e.preventDefault(),s(t)):!1}})]}function xu(r,e){return function({state:t,dispatch:s}){if(!e&&t.readOnly)return!1;let n=t.field(wC,!1);if(!n)return!1;let i=n.pop(r,t,e);return i?(s(i),!0):!1}}var vu=xu(0,!1),Do=xu(1,!1),Sq=xu(0,!0),Eq=xu(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(Oq)){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 bu(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 wq(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 Cq(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,s)=>t.empty!=e.ranges[s].empty).length===0}function kC(r,e){return r.length?e.length?r.concat(e):r:e}var un=[],kq=200;function AC(r,e){if(r.length){let t=r[r.length-1],s=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-kq));return s.length&&s[s.length-1].eq(e)?r:(s.push(e),bu(r,r.length-1,1e9,t.setSelAfter(s)))}else return[vn.selection([e])]}function Aq(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 sh(r,e){if(!r.length)return r;let t=r.length,s=un;for(;t;){let n=Pq(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 Pq(r,e,t){let s=kC(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,Et.mapEffects(r.effects,e),a,r.startSelection.map(i),s)}var Tq=/^(input\.type|delete)($|\.)/,pi=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||Tq.test(s))&&(!l.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?r.moveByChar(t,e):Ou(t,e))}function Pr(r){return r.textDirectionAt(r.state.selection.main.head)==Zt.LTR}var DC=r=>TC(r,!Pr(r)),_C=r=>TC(r,Pr(r));function IC(r,e){return On(r,t=>t.empty?r.moveByGroup(t,e):Ou(t,e))}var Dq=r=>IC(r,!Pr(r)),_q=r=>IC(r,Pr(r));var aY=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Iq(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 Su(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;Iq(r,u,n)?s=u:o=t?u.to:u.from}let i=s.type.prop(n),a,l;return i&&(a=t?xn(r,s.from,1):xn(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 Rq=r=>On(r,e=>Su(r.state,e,!Pr(r))),Fq=r=>On(r,e=>Su(r.state,e,Pr(r)));function RC(r,e){return On(r,t=>{if(!t.empty)return Ou(t,e);let s=r.moveVertically(t,e);return s.head!=t.head?s:r.moveToLineBoundary(t,e)})}var FC=r=>RC(r,!1),BC=r=>RC(r,!0);function NC(r){let e=r.scrollDOM.clientHeighta.empty?r.moveVertically(a,e,t.height):Ou(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.bottomLC(r,!1),ah=r=>LC(r,!0);function Bs(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 Bq=r=>On(r,e=>Bs(r,e,!0)),Nq=r=>On(r,e=>Bs(r,e,!1)),Lq=r=>On(r,e=>Bs(r,e,!Pr(r))),$q=r=>On(r,e=>Bs(r,e,Pr(r))),Mq=r=>On(r,e=>Ze.cursor(r.lineBlockAt(e.head).from,1)),jq=r=>On(r,e=>Ze.cursor(r.lineBlockAt(e.head).to,-1));function qq(r,e,t){let s=!1,n=aa(r.selection,i=>{let a=xn(r,i.head,-1)||xn(r,i.head,1)||i.head>0&&xn(r,i.head-1,1)||i.headqq(r,e,!1);function cn(r,e){let t=aa(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(Un(r.state,t)),!0)}function $C(r,e){return cn(r,t=>r.moveByChar(t,e))}var MC=r=>$C(r,!Pr(r)),jC=r=>$C(r,Pr(r));function qC(r,e){return cn(r,t=>r.moveByGroup(t,e))}var Uq=r=>qC(r,!Pr(r)),Vq=r=>qC(r,Pr(r));var Wq=r=>cn(r,e=>Su(r.state,e,!Pr(r))),Zq=r=>cn(r,e=>Su(r.state,e,Pr(r)));function QC(r,e){return cn(r,t=>r.moveVertically(t,e))}var UC=r=>QC(r,!1),VC=r=>QC(r,!0);function WC(r,e){return cn(r,t=>r.moveVertically(t,e,NC(r).height))}var gC=r=>WC(r,!1),yC=r=>WC(r,!0),zq=r=>cn(r,e=>Bs(r,e,!0)),Gq=r=>cn(r,e=>Bs(r,e,!1)),Xq=r=>cn(r,e=>Bs(r,e,!Pr(r))),Yq=r=>cn(r,e=>Bs(r,e,Pr(r))),Hq=r=>cn(r,e=>Ze.cursor(r.lineBlockAt(e.head).from)),Kq=r=>cn(r,e=>Ze.cursor(r.lineBlockAt(e.head).to)),bC=({state:r,dispatch:e})=>(e(Un(r,{anchor:0})),!0),xC=({state:r,dispatch:e})=>(e(Un(r,{anchor:r.doc.length})),!0),vC=({state:r,dispatch:e})=>(e(Un(r,{anchor:r.selection.main.anchor,head:0})),!0),OC=({state:r,dispatch:e})=>(e(Un(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),Jq=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),e5=({state:r,dispatch:e})=>{let t=Eu(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},t5=({state:r,dispatch:e})=>{let t=aa(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(Un(r,t)),!0},r5=({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(Un(r,s)),!0):!1};function _o(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=yu(r,o,!0)),a=Math.min(a,o),l=Math.max(l,o)}else a=yu(r,a,!1),l=yu(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 ZC=(r,e,t)=>_o(r,s=>{let n=s.from,{state:i}=r,a=i.doc.lineAt(n),l,o;if(t&&!e&&n>a.from&&nZC(r,!1,!0);var zC=r=>ZC(r,!0,!1),GC=(r,e)=>_o(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}),XC=r=>GC(r,!1),n5=r=>GC(r,!0),s5=r=>_o(r,e=>{let t=r.lineBlockAt(e.head).to;return e.head_o(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),a5=r=>_o(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:It.of(["",""])},range:Ze.cursor(s.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},l5=({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 Eu(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 YC(r,e,t){if(r.readOnly)return!1;let s=[],n=[];for(let i of Eu(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 u5=({state:r,dispatch:e})=>YC(r,e,!1),c5=({state:r,dispatch:e})=>YC(r,e,!0);function HC(r,e,t){if(r.readOnly)return!1;let s=[];for(let n of Eu(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 f5=({state:r,dispatch:e})=>HC(r,e,!1),p5=({state:r,dispatch:e})=>HC(r,e,!0),h5=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(Eu(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 d5(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 m5=KC(!1),g5=KC(!0);function KC(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&&d5(e,i);r&&(i=a=(a<=l.to?l:e.doc.lineAt(a)).to);let u=new fi(e,{simulateBreak:i,simulateDoubleBreak:!!o}),c=du(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 y5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),s=new fi(r,{overrideIndentation:i=>{let a=t[i];return a??-1}}),n=fh(r,(i,a,l)=>{let o=du(s,i.from);if(o==null)return;/\S/.test(i.text)||(o=0);let u=/^\s*/.exec(i.text)[0],c=ia(r,o);(u!=c||l.fromr.readOnly?!1:(e(r.update(fh(r,(t,s)=>{s.push({from:t.from,insert:r.facet(sa)})}),{userEvent:"input.indent"})),!0),JC=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(fh(r,(t,s)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let i=ss(n,r.tabSize),a=0,l=ia(r,Math.max(0,i-Po(r)));for(;a(r.setTabFocusMode(),!0);var x5=[{key:"Ctrl-b",run:DC,shift:MC,preventDefault:!0},{key:"Ctrl-f",run:_C,shift:jC},{key:"Ctrl-p",run:FC,shift:UC},{key:"Ctrl-n",run:BC,shift:VC},{key:"Ctrl-a",run:Mq,shift:Hq},{key:"Ctrl-e",run:jq,shift:Kq},{key:"Ctrl-d",run:zC},{key:"Ctrl-h",run:oh},{key:"Ctrl-k",run:s5},{key:"Ctrl-Alt-h",run:XC},{key:"Ctrl-o",run:o5},{key:"Ctrl-t",run:l5},{key:"Ctrl-v",run:ah}],v5=[{key:"ArrowLeft",run:DC,shift:MC,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Dq,shift:Uq,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Lq,shift:Xq,preventDefault:!0},{key:"ArrowRight",run:_C,shift:jC,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:_q,shift:Vq,preventDefault:!0},{mac:"Cmd-ArrowRight",run:$q,shift:Yq,preventDefault:!0},{key:"ArrowUp",run:FC,shift:UC,preventDefault:!0},{mac:"Cmd-ArrowUp",run:bC,shift:vC},{mac:"Ctrl-ArrowUp",run:mC,shift:gC},{key:"ArrowDown",run:BC,shift:VC,preventDefault:!0},{mac:"Cmd-ArrowDown",run:xC,shift:OC},{mac:"Ctrl-ArrowDown",run:ah,shift:yC},{key:"PageUp",run:mC,shift:gC},{key:"PageDown",run:ah,shift:yC},{key:"Home",run:Nq,shift:Gq,preventDefault:!0},{key:"Mod-Home",run:bC,shift:vC},{key:"End",run:Bq,shift:zq,preventDefault:!0},{key:"Mod-End",run:xC,shift:OC},{key:"Enter",run:m5},{key:"Mod-a",run:Jq},{key:"Backspace",run:oh,shift:oh},{key:"Delete",run:zC},{key:"Mod-Backspace",mac:"Alt-Backspace",run:XC},{key:"Mod-Delete",mac:"Alt-Delete",run:n5},{mac:"Mod-Backspace",run:i5},{mac:"Mod-Delete",run:a5}].concat(x5.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),ek=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Rq,shift:Wq},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Fq,shift:Zq},{key:"Alt-ArrowUp",run:u5},{key:"Shift-Alt-ArrowUp",run:f5},{key:"Alt-ArrowDown",run:c5},{key:"Shift-Alt-ArrowDown",run:p5},{key:"Escape",run:r5},{key:"Mod-Enter",run:g5},{key:"Alt-l",mac:"Ctrl-l",run:e5},{key:"Mod-i",run:t5,preventDefault:!0},{key:"Mod-[",run:JC},{key:"Mod-]",run:wu},{key:"Mod-Alt-\\",run:y5},{key:"Shift-Mod-k",run:h5},{key:"Shift-Mod-\\",run:Qq},{key:"Mod-/",run:lh},{key:"Alt-A",run:mq},{key:"Ctrl-m",mac:"Shift-Alt-m",run:b5}].concat(v5),tk={key:"Tab",run:wu,shift:JC};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,Ls=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(nk(l)):nk,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=Ha(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=Du(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 ph.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=Du(this.text,n+(s==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Pu.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Au.prototype[Symbol.iterator]=Tu.prototype[Symbol.iterator]=function(){return this});function O5(r){try{return new RegExp(r,bh),!0}catch{return!1}}function Du(r,e){if(e>=r.length)return e;let t=r.lineAt(e),s;for(;e=56320&&s<57344;)e++;return e}function hh(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:_u.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:[_u.of(!1),at.scrollIntoView(m.from,{y:"center"})],selection:m}),r.focus()}return{dom:s}}var _u=Et.define(),sk=Yt.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(_u)&&(r=t.value);return r},provide:r=>oi.from(r,e=>e?hh:null)}),S5=r=>{let e=Hi(r,hh);if(!e){let t=[_u.of(!0)];r.state.field(sk,!1)==null&&t.push(Et.appendConfig.of([sk,E5])),r.dispatch({effects:t}),e=Hi(r,hh)}return e&&e.dom.querySelector("input").select(),!0},E5=at.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),w5={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},lk=ct.define({combine(r){return kr(r,w5,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function uk(r){let e=[T5,P5];return r&&e.push(lk.of(r)),e}var C5=yt.mark({class:"cm-selectionMatch"}),k5=yt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function ik(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 A5(r,e,t,s){return r(e.sliceDoc(t,t+1))==Wt.Word&&r(e.sliceDoc(s-1,s))==Wt.Word}var P5=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(lk),{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),!(ik(a,t,n.from,n.to)&&A5(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 Ls(t.doc,i,o.from,o.to);for(;!u.next().done;){let{from:c,to:p}=u.value;if((!a||ik(a,t,c,p))&&(n.empty&&c<=n.from&&p>=n.to?l.push(k5.range(c,p)):(c>=n.to||p<=n.from)&&l.push(C5.range(c,p)),l.length>e.maxMatches))return yt.none}}return yt.set(l)}},{decorations:r=>r.decorations}),T5=at.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),D5=({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 _5(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 Ls(r.doc,e,s[s.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new Ls(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 I5=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(i=>i.from===i.to))return D5({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=_5(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},ua=ct.define({combine(r){return kr(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new yh(e),scrollToMatch:e=>at.scrollIntoView(e)})}});var Iu=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||O5(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 mh(this):new dh(this)}getCursor(e,t=0,s){let n=e.doc?e:Ut.create({doc:e});return s==null&&(s=n.doc.length),this.regexp?la(this,n,t,s):oa(this,n,t,s)}},Ru=class{constructor(e){this.spec=e}};function oa(r,e,t,s){return new Ls(e.doc,r.unquoted,t,s,r.caseSensitive?void 0:n=>n.toLowerCase(),r.wholeWord?R5(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function R5(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=oa(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 la(r,e,t,s){return new Au(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:r.wholeWord?F5(e.charCategorizer(e.selection.main.head)):void 0},t,s)}function Fu(r,e){return r.slice(ur(r,e,!1),e)}function Bu(r,e){return r.slice(e,ur(r,e))}function F5(r){return(e,t,s)=>!s[0].length||(r(Fu(s.input,s.index))!=Wt.Word||r(Bu(s.input,s.index))!=Wt.Word)&&(r(Bu(s.input,s.index+s[0].length))!=Wt.Word||r(Fu(s.input,s.index+s[0].length))!=Wt.Word)}var mh=class extends Ru{nextMatch(e,t,s){let n=la(this.spec,e,s,e.doc.length).next();return n.done&&(n=la(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=la(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=la(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)}},Ro=Et.define(),xh=Et.define(),Ns=Yt.define({create(r){return new Io(gh(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Ro)?r=new Io(t.value.create(),r.panel):t.is(xh)&&(r=new Io(r.query,t.value?vh:null));return r},provide:r=>oi.from(r,e=>e.panel)});var Io=class{constructor(e,t){this.query=e,this.panel=t}},B5=yt.mark({class:"cm-searchMatch"}),N5=yt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),L5=rr.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Ns))}update(r){let e=r.state.field(Ns);(e!=r.startState.field(Ns)||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 Rn;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?N5:B5)})}return s.finish()}},{decorations:r=>r.decorations});function Fo(r){return e=>{let t=e.state.field(Ns,!1);return t&&t.query.spec.valid?r(e,t):pk(e)}}var Nu=Fo((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(ua);return r.dispatch({selection:n,effects:[Oh(r,s),i.scrollToMatch(n.main,r)],userEvent:"select.search"}),fk(r),!0}),Lu=Fo((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(ua);return r.dispatch({selection:i,effects:[Oh(r,n),a.scrollToMatch(i.main,r)],userEvent:"select.search"}),fk(r),!0}),$5=Fo((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)}),M5=({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 Ls(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},ak=Fo((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(Oh(r,i)),u.push(t.facet(ua).scrollToMatch(l.main,r))}return r.dispatch({changes:a,selection:l,effects:u,userEvent:"input.replace"}),!0}),j5=Fo((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 vh(r){return r.state.facet(ua).createPanel(r)}function gh(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(ua);return new Iu({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 ck(r){let e=Hi(r,vh);return e&&e.dom.querySelector("[main-field]")}function fk(r){let e=ck(r);e&&e==r.root.activeElement&&e.select()}var pk=r=>{let e=r.state.field(Ns,!1);if(e&&e.panel){let t=ck(r);if(t&&t!=r.root.activeElement){let s=gh(r.state,e.query.spec);s.valid&&r.dispatch({effects:Ro.of(s)}),t.focus(),t.select()}}else r.dispatch({effects:[xh.of(!0),e?Ro.of(gh(r.state,e.query.spec)):Et.appendConfig.of(Q5)]});return!0},hk=r=>{let e=r.state.field(Ns,!1);if(!e||!e.panel)return!1;let t=Hi(r,vh);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:xh.of(!1)}),!0},dk=[{key:"Mod-f",run:pk,scope:"editor search-panel"},{key:"F3",run:Nu,shift:Lu,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Nu,shift:Lu,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:hk,scope:"editor search-panel"},{key:"Mod-Shift-l",run:M5},{key:"Mod-Alt-g",run:S5},{key:"Mod-d",run:I5,preventDefault:!0}],yh=class{constructor(e){this.view=e;let t=this.query=e.state.field(Ns).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",()=>Nu(e),[Hr(e,"next")]),s("prev",()=>Lu(e),[Hr(e,"previous")]),s("select",()=>$5(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",()=>ak(e),[Hr(e,"replace")]),s("replaceAll",()=>j5(e),[Hr(e,"replace all")])],Vt("button",{name:"close",onclick:()=>hk(e),"aria-label":Hr(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new Iu({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:Ro.of(e)}))}keydown(e){Sw(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Lu:Nu)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),ak(this.view))}update(e){for(let t of e.transactions)for(let s of t.effects)s.is(Ro)&&!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(ua).top}};function Hr(r,e){return r.state.phrase(e)}var Cu=30,ku=/[\s\.,:;?!]/;function Oh(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-Cu),a=Math.min(n,t+Cu),l=r.state.sliceDoc(i,a);if(i!=s.from){for(let o=0;ol.length-Cu;o--)if(!ku.test(l[o-1])&&ku.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 q5=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"}}),Q5=[Ns,rn.low(L5),q5];var Mu=class{constructor(e,t,s,n){this.state=e,this.pos=t,this.explicit=s,this.view=n,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(wk(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 mk(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 U5(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+$/]:U5(e);return n=>{let i=n.matchBefore(s);return i||n.explicit?{from:i?i.from:n.pos,options:e,validFor:t}:null}}function Ek(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 ju=class{constructor(e,t,s,n){this.completion=e,this.source=t,this.match=s,this.score=n}};function $s(r){return r.selection.main.from}function wk(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 Fh=Mr.define();function V5(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 gk=new WeakMap;function W5(r){if(!Array.isArray(r))return r;let e=gk.get(r);return e||gk.set(r,e=Rh(r)),e}var qu=Et.define(),Bo=Et.define(),wh=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=Ha(w))!=O.toLowerCase()?1:O!=O.toUpperCase()?2:0;(!x||C==1&&g||S==0&&C!=0)&&(t[p]==w||s[p]==w&&(h=!0)?a[p++]=x:a.length&&(y=!1)),S=C,x+=$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)}},Ch=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:Z5,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=>yk(e(s),t(s)),optionClass:(e,t)=>s=>yk(e(s),t(s)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function yk(r,e){return r?e?r+" "+e:r:e}function Z5(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||x>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 z5(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 Sh(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 kh=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=z5(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Sh(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:Bo.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=Sh(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=Sh(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&&X5(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 kh(t,r,e)}function X5(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 bk(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function Y5(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 ju(p,u.source,c?c(p):[],1e9-t.length));else{let p=e.sliceDoc(u.from,u.to),h,f=i.filterStrict?new Ch(p):new wh(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 ju(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):bk(u.completion)>bk(l)&&(a[a.length-1]=u),l=u.completion}return a}var Ah=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,xk(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,s,n,i){let a=Y5(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:rQ,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)}},Ph=class r{constructor(e,t,s){this.active=e,this.id=t,this.open=s}static start(){return new r(eQ,"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",$s(t)).map(W5)).map(l=>(this.active.find(u=>u.source==l)||new os(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))||!H5(i,this.active)?a=Ah.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 os(l.source,0):l));for(let l of e.effects)l.is(Ak)&&(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:this.active.length?K5:J5}};function H5(r,e){if(r==e)return!0;for(let t=0,s=0;;){for(;t-1&&(t["aria-activedescendant"]=r+"-"+e),t}var eQ=[];function Ck(r,e){if(r.isUserEvent("input.complete")){let s=r.annotation(Fh);if(s&&e.activateOnCompletion(s))return 12}let t=r.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:r.isUserEvent("delete.backward")?2:r.selection?8:r.docChanged?16:0}var os=class r{constructor(e,t,s=-1){this.source=e,this.state=t,this.explicitPos=s}hasResult(){return!1}update(e,t){let s=Ck(e,t),n=this;(s&8||s&16&&this.touches(e))&&(n=new r(n.source,0)),s&4&&n.state==0&&(n=new r(this.source,1)),n=n.updateFor(e,s);for(let i of e.effects)if(i.is(qu))n=new r(n.source,1,i.value?$s(e.state):-1);else if(i.is(Bo))n=new r(n.source,0);else if(i.is(kk))for(let a of i.value)a.source==n.source&&(n=a);return n}updateFor(e,t){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new r(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange($s(e.state))}},Qu=class r extends os{constructor(e,t,s,n,i){super(e,2,t),this.result=s,this.from=n,this.to=i}hasResult(){return!0}updateFor(e,t){var s;if(!(t&3))return this.map(e.changes);let n=this.result;n.map&&!e.changes.empty&&(n=n.map(n,e.changes));let i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),l=$s(e.state);if((this.explicitPos<0?l<=i:la||!n||t&2&&$s(e.startState)==this.from)return new os(this.source,t&4?1:0);let o=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return tQ(n.validFor,e.state,i,a)?new r(this.source,o,n,i,a):n.update&&(n=n.update(n,i,a,new Mu(e.state,l,o>=0)))?new r(this.source,o,n,n.from,(s=n.to)!==null&&s!==void 0?s:$s(e.state)):new os(this.source,1,o)}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 os(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function tQ(r,e,t,s){if(!r)return!1;let n=e.sliceDoc(t,s);return typeof r=="function"?r(n,t,s,e):wk(r,!0).test(n)}var kk=Et.define({map(r,e){return r.map(t=>t.map(e))}}),Ak=Et.define(),qr=Yt.define({create(){return Ph.start()},update(r,e){return r.update(e)},provide:r=>[Yi.from(r,e=>e.tooltip),at.contentAttributes.from(r,e=>e.attrs)]});function Bh(r,e){let t=e.completion.apply||e.completion.label,s=r.state.field(qr).active.find(n=>n.source==e.source);return s instanceof Qu?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},V5(r.state,t,s.from,s.to)),{annotations:Fh.of(e.completion)})):t(r,e.completion,s.from,s.to),!0):!1}var rQ=G5(qr,Bh);function $u(r,e="option"){return t=>{let s=t.state.field(qr,!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:Ak.of(l)}),!0}}var nQ=r=>{let e=r.state.field(qr,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampr.state.field(qr,!1)?(r.dispatch({effects:qu.of(!0)}),!0):!1,iQ=r=>{let e=r.state.field(qr,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:Bo.of(null)}),!0)},Th=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},aQ=50,oQ=1e3,lQ=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(qr).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(qr),t=r.state.facet(Sr);if(!r.selectionSet&&!r.docChanged&&r.startState.field(qr)==e)return;let s=r.transactions.some(i=>{let a=Ck(i,t);return a&8||(i.selection||i.docChanged)&&!(a&3)});for(let i=0;iaQ&&Date.now()-a.time>oQ){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(qu)))&&(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)i.isUserEvent("input.type")?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(qr);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=$s(e),s=new Mu(e,t,r.explicitPos==t,this.view),n=new Th(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:Bo.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 os(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:kk.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(qr,!1);if(e&&e.tooltip&&this.view.state.facet(Sr).closeOnBlur){let t=e.open&&Ip(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Bo.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:qu.of(!1)}),20),this.composing=0}}}),uQ=typeof navigator=="object"&&/Win/.test(navigator.platform),cQ=rn.highest(at.domEventHandlers({keydown(r,e){let t=e.state.field(qr,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||r.key.length>1||r.ctrlKey&&!(uQ&&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&&Bh(e,s),!1}})),Pk=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"}}}),Dh=class{constructor(e,t,s,n){this.field=e,this.line=t,this.from=s,this.to=n}},_h=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)}},Ih=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 _h(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,c=o.replace(/\\[{}]/g,p=>p[1]);for(let p=0;p=u&&h.field++}n.push(new Dh(u,s.length,i.index,i.index+c.length)),a=a.slice(0,i.index)+o+a.slice(i.index+i[0].length)}a=a.replace(/\\([{}])/g,(l,o,u)=>{for(let c of n)c.line==s.length&&c.from>u&&(c.from--,c.to--);return o}),s.push(a)}return new r(s,n)}},fQ=yt.widget({widget:new class extends an{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),pQ=yt.mark({class:"cm-snippetField"}),ca=class r{constructor(e,t){this.ranges=e,this.active=t,this.deco=yt.set(e.map(s=>(s.from==s.to?fQ:pQ).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))}},Lo=Et.define({map(r,e){return r&&r.map(e)}}),hQ=Et.define(),No=Yt.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(Lo))return t.value;if(t.is(hQ)&&r)return new ca(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 Nh(r,e){return Ze.create(r.filter(t=>t.field==e).map(t=>Ze.range(t.from,t.to)))}function dQ(r){let e=Ih.parse(r);return(t,s,n,i)=>{let{text:a,ranges:l}=e.instantiate(t.state,n),o={changes:{from:n,to:i,insert:It.of(a)},scrollIntoView:!0,annotations:s?[Fh.of(s),lr.userEvent.of("input.complete")]:void 0};if(l.length&&(o.selection=Nh(l,0)),l.some(u=>u.field>0)){let u=new ca(l,0),c=o.effects=[Lo.of(u)];t.state.field(No,!1)===void 0&&c.push(Et.appendConfig.of([No,xQ,vQ,Pk]))}t.dispatch(t.state.update(o))}}function Tk(r){return({state:e,dispatch:t})=>{let s=e.field(No,!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:Nh(s.ranges,n),effects:Lo.of(i?null:new ca(s.ranges,n)),scrollIntoView:!0})),!0}}var mQ=({state:r,dispatch:e})=>r.field(No,!1)?(e(r.update({effects:Lo.of(null)})),!0):!1,gQ=Tk(1),yQ=Tk(-1);var bQ=[{key:"Tab",run:gQ,shift:yQ},{key:"Escape",run:mQ}],vk=ct.define({combine(r){return r.length?r[0]:bQ}}),xQ=rn.highest(_s.compute([vk],r=>r.facet(vk)));function Rr(r,e){return Object.assign(Object.assign({},e),{apply:dQ(r)})}var vQ=at.domEventHandlers({mousedown(r,e){let t=e.state.field(No,!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:Nh(t.ranges,n.field),effects:Lo.of(t.ranges.some(i=>i.field>n.field)?new ca(t.ranges,n.field):null),scrollIntoView:!0}),!0)}});var Uu={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},hi=Et.define({map(r,e){let t=e.mapPos(r,-1,fr.TrackAfter);return t??void 0}}),Lh=new class extends yn{};Lh.startSide=1;Lh.endSide=-1;var Dk=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(hi)&&(r=r.update({add:[Lh.range(t.value,t.value+1)]}));return r}});function _k(){return[wQ,Dk]}var Eh="()[]{}<>";function OQ(r){for(let e=0;e{if((EQ?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=CQ(r.state,s);return i?(r.dispatch(i),!0):!1});function CQ(r,e){let t=SQ(r,r.selection.main.head),s=t.brackets||Uu.brackets;for(let n of s){let i=OQ(gr(n,0));if(e==n)return i==n?PQ(r,n,s.indexOf(n+n+n)>-1,t):kQ(r,n,i,t.before||Uu.before);if(e==i&&Ik(r,r.selection.main.from))return AQ(r,n,i)}return null}function Ik(r,e){let t=!1;return r.field(Dk).between(0,r.doc.length,s=>{s==e&&(t=!0)}),t}function $h(r,e){let t=r.sliceString(e,e+2);return t.slice(0,$r(gr(t,0)))}function kQ(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:hi.of(a.to+e.length),range:Ze.range(a.anchor+e.length,a.head+e.length)};let l=$h(r.doc,a.head);return!l||/\s/.test(l)||s.indexOf(l)>-1?{changes:{insert:e+t,from:a.head},effects:hi.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 AQ(r,e,t){let s=null,n=r.changeByRange(i=>i.empty&&$h(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 PQ(r,e,t,s){let n=s.stringPrefixes||Uu.stringPrefixes,i=null,a=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:hi.of(l.to+e.length),range:Ze.range(l.anchor+e.length,l.head+e.length)};let o=l.head,u=$h(r.doc,o),c;if(u==e){if(Ok(r,o))return{changes:{insert:e+e,from:o},effects:hi.of(o+e.length),range:Ze.cursor(o+e.length)};if(Ik(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=Sk(r,o-2*e.length,n))>-1&&Ok(r,c))return{changes:{insert:e+e+e+e,from:o},effects:hi.of(o+e.length),range:Ze.cursor(o+e.length)};if(r.charCategorizer(o)(u)!=Wt.Word&&Sk(r,o,n)>-1&&!TQ(r,o,e,n))return{changes:{insert:e+e,from:o},effects:hi.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 Ok(r,e){let t=pr(r).resolveInner(e+1);return t.parent&&t.from==e}function TQ(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 Sk(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 Rk(r={}){return[cQ,qr,Sr.of(r),lQ,_Q,Pk]}var DQ=[{key:"Ctrl-Space",run:sQ},{key:"Escape",run:iQ},{key:"ArrowDown",run:$u(!0)},{key:"ArrowUp",run:$u(!1)},{key:"PageDown",run:$u(!0,"page")},{key:"PageUp",run:$u(!1,"page")},{key:"Enter",run:nQ}],_Q=rn.highest(_s.computeN([Sr],r=>r.facet(Sr).defaultKeymap?[DQ]:[]));var Mh=class{constructor(e,t,s){this.from=e,this.to=t,this.diagnostic=s}},di=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(Vn).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 jh(l),diagnostic:l}).range(l.from):yt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+l.severity+(l.markClass?" "+l.markClass:"")},diagnostic:l}).range(l.from,l.to)),!0);return new r(a,t,fa(a))}};function fa(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 Mh(n,i,a.diagnostic),!1}),s}function Nk(r,e){let t=e.pos,s=e.end||t,n=r.state.facet(Vn).hideOn(r,t,s);if(n!=null)return n;let i=r.startState.doc.lineAt(e.pos);return!!(r.effects.some(a=>a.is(Gu))||r.changes.touchesRange(i.from,Math.max(i.to,s)))}function IQ(r,e){return r.field(Sn,!1)?e:e.concat(Et.appendConfig.of(Wk))}function RQ(r,e){return{effects:IQ(r,[Gu.of(e)])}}var Gu=Et.define(),Lk=Et.define(),$k=Et.define(),Sn=Yt.define({create(){return new di(yt.none,null,null)},update(r,e){if(e.docChanged&&r.diagnostics.size){let t=r.diagnostics.map(e.changes),s=null,n=r.panel;if(r.selected){let i=e.changes.mapPos(r.selected.from,1);s=fa(t,r.selected.diagnostic,i)||fa(t,null,i)}!t.size&&n&&e.state.facet(Vn).autoPanel&&(n=null),r=new di(t,n,s)}for(let t of e.effects)if(t.is(Gu)){let s=e.state.facet(Vn).autoPanel?t.value.length?zu.open:null:r.panel;r=di.init(t.value,s,e.state)}else t.is(Lk)?r=new di(r.diagnostics,t.value?zu.open:null,r.selected):t.is($k)&&(r=new di(r.diagnostics,r.panel,t.value));return r},provide:r=>[oi.from(r,e=>e.panel),at.decorations.from(r,e=>e.diagnostics)]});var FQ=yt.mark({class:"cm-lintRange cm-lintRange-active"});function BQ(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)&&(eQk(r,t,!1)))}var Fk=r=>{let e=r.state.field(Sn,!1);return!e||!e.panel?!1:(r.dispatch({effects:Lk.of(!1)}),!0)};var NQ=rr.fromClass(class{constructor(r){this.view=r,this.timeout=-1,this.set=!0;let{delay:e}=r.state.facet(Vn);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);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(RQ(this.view.state,n))},s=>{yr(this.view.state,s)})}}update(r){let e=r.state.facet(Vn);(r.docChanged||e!=r.startState.facet(Vn)||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)}}),Vn=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 jk(r,e={}){return[Vn.of({source:r,config:e}),NQ,Wk]}function qk(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 Qk(r,e,t){var s;let n=t?qk(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=fa(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 jh=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})}},Zu=class{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Qk(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},zu=class r{constructor(e){this.view=e,this.items=[];let t=n=>{if(n.keyCode==27)Fk(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=qk(i.actions);for(let l=0;l{for(let i=0;iFk(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=fa(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 Wu(r,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(r)}')`}function Vu(r){return Wu(``,'width="6" height="3"')}var LQ=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:Vu("#d11")},".cm-lintRange-warning":{backgroundImage:Vu("orange")},".cm-lintRange-info":{backgroundImage:Vu("#999")},".cm-lintRange-hint":{backgroundImage:Vu("#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 Bk(r){return r=="error"?4:r=="warning"?3:r=="info"?2:1}var qh=class extends Xr{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((t,s)=>Bk(t)MQ(e,t,s)),t}};function $Q(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,$Q(r,e)}let{hoverTime:n}=r.state.facet(Xu),i=setTimeout(s,n);e.onmouseout=()=>{clearTimeout(i),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(i),i=setTimeout(s,n)}}function jQ(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 qh(t[n]).range(+n));return Mt.of(s,!0)}var qQ=Rp({class:"cm-gutter-lint",markers:r=>r.state.field(Uk)}),Uk=Yt.define({create(){return Mt.empty},update(r,e){r=r.map(e.changes);let t=e.state.facet(Xu).markerFilter;for(let s of e.effects)if(s.is(Gu)){let n=s.value;t&&(n=t(n||[],e.state)),r=jQ(e.state.doc,n.slice(0))}return r}}),Qh=Et.define(),Vk=Yt.define({create(){return null},update(r,e){return r&&e.docChanged&&(r=Nk(e,r)?null:Object.assign(Object.assign({},r),{pos:e.changes.mapPos(r.pos)})),e.effects.reduce((t,s)=>s.is(Qh)?s.value:t,r)},provide:r=>Yi.from(r)}),QQ=at.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Wu('')},".cm-lint-marker-warning":{content:Wu('')},".cm-lint-marker-error":{content:Wu('')}}),Wk=[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([FQ.range(e.from,e.to)])}),Nw(BQ,{hideOn:Nk}),LQ],Xu=ct.define({combine(r){return kr(r,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Zk(r={}){return[Xu.of(r),Uk,qQ,QQ,Vk]}var Wh=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 Yu(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;this.reducePos=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 Zh(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()}},Yu=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},Zh=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}},zh=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 $o(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 pa=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},zk=new pa,Gh=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=zk,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=zk,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}},Ms=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:s}=t.p;Kk(this.data,e,t,this.id,s.data,s.tokenPrecTable)}};Ms.prototype.contextual=Ms.prototype.fallback=Ms.prototype.extend=!1;var ha=class{constructor(e,t,s){this.precTable=t,this.elseToken=s,this.data=typeof e=="string"?$o(e):e}token(e,t){let s=e.pos,n=0;for(;;){let i=e.next<0,a=e.resolveOffset(1,1);if(Kk(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))}};ha.prototype.contextual=Ms.prototype.fallback=Ms.prototype.extend=!1;var mi=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function Kk(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||VQ(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 Gk(r,e,t){for(let s=e,n;(n=r[s])!=65535;s++)if(n==t)return s-e;return-1}function VQ(r,e,t,s){let n=Gk(t,s,e);return n<0||Gk(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 Xh=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?Xk(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Xk(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}}},Yh=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(s=>new pa)}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 pa,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 pa,{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 Xh(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&&WQ(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 Yk(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)})`),Yk(l,s)):(!n||n.scorer,Hu=class{constructor(e){this.start=e.start,this.shift=e.shift||Vh,this.reduce=e.reduce||Vh,this.reuse=e.reuse||Vh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},Ku=class r extends Ji{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 So(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=$o(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 Ms(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 Hh(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=ls(this.data,i+2);else break;n=t(ls(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=ls(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]=Hk(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 ZQ=312,Jk=1,zQ=2,GQ=3,XQ=4,YQ=313,HQ=315,KQ=316,JQ=5,eU=6,tU=0,ed=[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],eA=125,rU=59,td=47,nU=42,sU=43,iU=45,aU=60,oU=44,lU=63,uU=46,cU=new Hu({start:!1,shift(r,e){return e==JQ||e==eU||e==HQ?r:e==KQ},strict:!1}),fU=new mi((r,e)=>{let{next:t}=r;(t==eA||t==-1||e.context)&&r.acceptToken(YQ)},{contextual:!0,fallback:!0}),pU=new mi((r,e)=>{let{next:t}=r,s;ed.indexOf(t)>-1||t==td&&((s=r.peek(1))==td||s==nU)||t!=eA&&t!=rU&&t!=-1&&!e.context&&r.acceptToken(ZQ)},{contextual:!0}),hU=new mi((r,e)=>{let{next:t}=r;if(t==sU||t==iU){if(r.advance(),t==r.next){r.advance();let s=!e.context&&e.canShift(Jk);r.acceptToken(s?Jk:zQ)}}else t==lU&&r.peek(1)==uU&&(r.advance(),r.advance(),(r.next<48||r.next>57)&&r.acceptToken(GQ))},{contextual:!0});function Jh(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}var dU=new mi((r,e)=>{if(r.next!=aU||!e.dialectEnabled(tU)||(r.advance(),r.next==td))return;let t=0;for(;ed.indexOf(r.next)>-1;)r.advance(),t++;if(Jh(r.next,!0)){for(r.advance(),t++;Jh(r.next,!1);)r.advance(),t++;for(;ed.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==oU)return;for(let s=0;;s++){if(s==7){if(!Jh(r.next,!0))return;break}if(r.next!="extends".charCodeAt(s))break;r.advance(),t++}}r.acceptToken(XQ,-t)}),mU=cu({"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)}),gU={__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},yU={__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},bU={__proto__:null,"<":187},tA=Ku.deserialize({version:14,states:"$@QO%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-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/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%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!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%VO#]+zO~Oh%VOk+}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%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'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})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < 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:cU,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:[mU],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-gU[r]||-1},{term:338,get:r=>yU[r]||-1},{term:92,get:r=>bU[r]||-1}],tokenPrec:14749});var aA=[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}) { \${} @@ -21,26 +21,26 @@ constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Rr('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Rr('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],vU=aA.concat([Rr("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Rr("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Rr("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),rA=new iu,oA=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Mo(r){return(e,t)=>{let s=e.node.getChild("VariableDefinition");return s&&t(s,r),!0}}var OU=["FunctionDeclaration"],SU={FunctionDeclaration:Mo("function"),ClassDeclaration:Mo("class"),ClassExpression:()=>!0,EnumDeclaration:Mo("constant"),TypeAliasDeclaration:Mo("type"),NamespaceDeclaration:Mo("namespace"),VariableDefinition(r,e){r.matchContext(OU)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function lA(r,e){let t=rA.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=SU[a.name];if(l&&l(a,i)||oA.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of lA(r,a.node))s.push(l);return!1}}),rA.set(e,s),s}var nA=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,uA=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function EU(r){let e=pr(r.state).resolveInner(r.pos,-1);if(uA.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&nA.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let s=[];for(let n=e;n;n=n.parent)oA.has(n.name)&&(s=s.concat(lA(r.state.doc,n)));return{options:s,from:t?e.from:r.pos,validFor:nA}}var Wn=fu.define({name:"javascript",parser:tA.configure({props:[nh.add({IfStatement:mu({except:/^\s*({|else\b)/}),TryStatement:mu({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:iC,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:nC({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":mu({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}}),oC.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":lC,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),cA={test:r=>/^JSX/.test(r.name),facet:rh({commentTokens:{block:{open:"{/*",close:"*/}"}}})},wU=Wn.configure({dialect:"ts"},"typescript"),CU=Wn.configure({dialect:"jsx",props:[hu.add(r=>r.isTop?[cA]:void 0)]}),kU=Wn.configure({dialect:"jsx ts",props:[hu.add(r=>r.isTop?[cA]:void 0)]},"typescript"),fA=r=>({label:r,type:"keyword"}),pA="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(fA),AU=pA.concat(["declare","implements","private","protected","public"].map(fA));function hA(r={}){let e=r.jsx?r.typescript?kU:CU:r.typescript?wU:Wn,t=r.typescript?vU.concat(AU):aA.concat(pA);return new pu(e,[Wn.data.of({autocomplete:Ek(uA,Rh(t))}),Wn.data.of({autocomplete:EU}),r.jsx?DU:[]])}function PU(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 sA(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 TU=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),DU=at.inputHandler.of((r,e,t,s,n)=>{if((TU?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||s!=">"&&s!="/"||!Wn.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=sA(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=PU(p);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(h=sA(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 dA(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 Wn.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(_U(u,s.doc,o))}return n}}function iA(r,e,t,s){return t.line(r+s.line).from+e+(r==1?s.col-1:-1)}function _U(r,e,t){let s=iA(r.line,r.column,e,t),n={from:s,to:r.endLine!=null&&r.endColumn!=1?iA(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 IU="#e5c07b",mA="#e06c75",RU="#56b6c2",FU="#ffffff",Ju="#abb2bf",nd="#7d8799",BU="#61afef",NU="#98c379",gA="#d19a66",LU="#c678dd",$U="#21252b",yA="#2c313a",bA="#282c34",rd="#353a42",MU="#3E4451",xA="#528bff";var jU=at.theme({"&":{color:Ju,backgroundColor:bA},".cm-content":{caretColor:xA},".cm-cursor, .cm-dropCursor":{borderLeftColor:xA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:MU},".cm-panels":{backgroundColor:$U,color:Ju},".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:bA,color:nd,border:"none"},".cm-activeLineGutter":{backgroundColor:yA},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:rd},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:rd,borderBottomColor:rd},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:yA,color:Ju}}},{dark:!0}),qU=na.define([{tag:ke.keyword,color:LU},{tag:[ke.name,ke.deleted,ke.character,ke.propertyName,ke.macroName],color:mA},{tag:[ke.function(ke.variableName),ke.labelName],color:BU},{tag:[ke.color,ke.constant(ke.name),ke.standard(ke.name)],color:gA},{tag:[ke.definition(ke.name),ke.separator],color:Ju},{tag:[ke.typeName,ke.className,ke.number,ke.changed,ke.annotation,ke.modifier,ke.self,ke.namespace],color:IU},{tag:[ke.operator,ke.operatorKeyword,ke.url,ke.escape,ke.regexp,ke.link,ke.special(ke.string)],color:RU},{tag:[ke.meta,ke.comment],color:nd},{tag:ke.strong,fontWeight:"bold"},{tag:ke.emphasis,fontStyle:"italic"},{tag:ke.strikethrough,textDecoration:"line-through"},{tag:ke.link,color:nd,textDecoration:"underline"},{tag:ke.heading,fontWeight:"bold",color:mA},{tag:[ke.atom,ke.bool,ke.special(ke.variableName)],color:gA},{tag:[ke.processingInstruction,ke.string,ke.inserted],color:NU},{tag:ke.invalid,color:FU}]),vA=[jU,gu(qU)];uc||(uc=globalThis||window);var uc;function gc(r){return r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var QU={},Jr=typeof uc<"u"?uc:typeof self<"u"?self:typeof window<"u"?window:{};function YF(){throw new Error("setTimeout has not been defined")}function HF(){throw new Error("clearTimeout has not been defined")}var js=YF,qs=HF;typeof Jr.setTimeout=="function"&&(js=setTimeout);typeof Jr.clearTimeout=="function"&&(qs=clearTimeout);function KF(r){if(js===setTimeout)return setTimeout(r,0);if((js===YF||!js)&&setTimeout)return js=setTimeout,setTimeout(r,0);try{return js(r,0)}catch{try{return js.call(null,r,0)}catch{return js.call(this,r,0)}}}function UU(r){if(qs===clearTimeout)return clearTimeout(r);if((qs===HF||!qs)&&clearTimeout)return qs=clearTimeout,clearTimeout(r);try{return qs(r)}catch{try{return qs.call(null,r)}catch{return qs.call(this,r)}}}var cs=[],xa=!1,bi,lc=-1;function VU(){!xa||!bi||(xa=!1,bi.length?cs=bi.concat(cs):lc=-1,cs.length&&JF())}function JF(){if(!xa){var r=KF(VU);xa=!0;for(var e=cs.length;e;){for(bi=cs,cs=[];++lc1)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 g8=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,aO=function(r){return g8.exec(r).slice(1)};function cc(){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=tB(uO(r.split("/"),function(n){return!!n}),!e).join("/"),(e?"/":"")+r||"."}function oO(r){var e=lO(r),t=b8(r,-1)==="/";return r=tB(uO(r.split("/"),function(s){return!!s}),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r}function lO(r){return r.charAt(0)==="/"}function rB(){var r=Array.prototype.slice.call(arguments,0);return oO(uO(r,function(e,t){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function nB(r,e){r=cc(r).substr(1),e=cc(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 v8(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 S8(r){return Zn[r>>18&63]+Zn[r>>12&63]+Zn[r>>6&63]+Zn[r&63]}function E8(r,e,t){for(var s,n=[],i=e;io?o:l+a));return s===1?(e=r[t-1],n+=Zn[e>>2],n+=Zn[e<<4&63],n+="=="):s===2&&(e=(r[t-2]<<8)+r[t-1],n+=Zn[e>>10],n+=Zn[e>>4&63],n+=Zn[e<<2&63],n+="="),i.push(n),i.join("")}function bc(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 cB(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 w8={}.toString,fB=Array.isArray||function(r){return w8.call(r)=="[object Array]"};var C8=50;Ge.TYPED_ARRAY_SUPPORT=Jr.TYPED_ARRAY_SUPPORT!==void 0?Jr.TYPED_ARRAY_SUPPORT:!0;fc();function fc(){return Ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fs(r,e){if(fc()=fc())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fc().toString(16)+" bytes");return r|0}Ge.isBuffer=ba;function Gn(r){return!!(r!=null&&r._isBuffer)}Ge.compare=function(e,t){if(!Gn(e)||!Gn(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 OB(r).length;default:if(s)return pc(r).length;e=(""+e).toLowerCase(),s=!0}}Ge.byteLength=dB;function D8(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 j8(this,e,t);case"utf8":case"utf-8":return yB(this,e,t);case"ascii":return $8(this,e,t);case"latin1":case"binary":return M8(this,e,t);case"base64":return N8(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q8(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}Ge.prototype._isBuffer=!0;function xi(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(!Gn(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)),Gn(e))return e.length===0?-1:SA(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):SA(r,[e],t,s,n);throw new TypeError("val must be string, number or Buffer")}function SA(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 _8(this,e,t,s);case"utf8":case"utf-8":return I8(this,e,t,s);case"ascii":return gB(this,e,t,s);case"latin1":case"binary":return R8(this,e,t,s);case"base64":return F8(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B8(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 N8(r,e,t){return e===0&&t===r.length?OA(r):OA(r.slice(e,t))}function yB(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 L8(s)}var EA=4096;function L8(r){var e=r.length;if(e<=EA)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),bc(this,e,!0,23,4)};Ge.prototype.readFloatBE=function(e,t){return t||br(e,4,this.length),bc(this,e,!1,23,4)};Ge.prototype.readDoubleLE=function(e,t){return t||br(e,8,this.length),bc(this,e,!0,52,8)};Ge.prototype.readDoubleBE=function(e,t){return t||br(e,8,this.length),bc(this,e,!1,52,8)};function Qr(r,e,t,s,n,i){if(!Gn(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 xc(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):xc(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):xc(this,e,t,!1),t+2};function vc(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):vc(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):vc(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):xc(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):xc(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):vc(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):vc(this,e,t,!1),t+4};function bB(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 xB(r,e,t,s,n){return n||bB(r,e,t,4),cB(r,e,t,s,23,4),t+4}Ge.prototype.writeFloatLE=function(e,t,s){return xB(this,e,t,!0,s)};Ge.prototype.writeFloatBE=function(e,t,s){return xB(this,e,t,!1,s)};function vB(r,e,t,s,n){return n||bB(r,e,t,8),cB(r,e,t,s,52,8),t+8}Ge.prototype.writeDoubleLE=function(e,t,s){return vB(this,e,t,!0,s)};Ge.prototype.writeDoubleBE=function(e,t,s){return vB(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 Z8(r){for(var e=[],t=0;t>8,n=t%256,i.push(n),i.push(s);return i}function OB(r){return O8(U8(r))}function Oc(r,e,t,s){for(var n=0;n=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function G8(r){return r!==r}function ba(r){return r!=null&&(!!r._isBuffer||SB(r)||X8(r))}function SB(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function X8(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&SB(r.slice(0,0))}var tO;typeof Object.create=="function"?tO=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:tO=function(e,t){e.super_=t;var s=function(){};s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e};var hO=tO,EB=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]),Ec(e)?t.showHidden=e:e&&bO(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=H8),hc(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 H8(r,e){var t=Cn.styles[e];return t?"\x1B["+Cn.colors[t][0]+"m"+r+"\x1B["+Cn.colors[t][1]+"m":r}function K8(r,e){return r}function J8(r){var e={};return r.forEach(function(t,s){e[t]=!0}),e}function hc(r,e,t){if(r.customInspect&&e&&Oi(e.inspect)&&e.inspect!==Cn&&!(e.constructor&&e.constructor.prototype===e)){var s=e.inspect(t,r);return Go(s)||(s=hc(r,s,t)),s}var n=e6(r,e);if(n)return n;var i=Object.keys(e),a=J8(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),va(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return id(e);if(i.length===0){if(Oi(e)){var l=e.name?": "+e.name:"";return r.stylize("[Function"+l+"]","special")}if(vi(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(Oa(e))return r.stylize(Date.prototype.toString.call(e),"date");if(va(e))return id(e)}var o="",u=!1,c=["{","}"];if(mO(e)&&(u=!0,c=["[","]"]),Oi(e)){var p=e.name?": "+e.name:"";o=" [Function"+p+"]"}if(vi(e)&&(o=" "+RegExp.prototype.toString.call(e)),Oa(e)&&(o=" "+Date.prototype.toUTCString.call(e)),va(e)&&(o=" "+id(e)),i.length===0&&(!u||e.length==0))return c[0]+o+c[1];if(t<0)return vi(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var h;return u?h=t6(r,e,t,a,i):h=i.map(function(f){return rO(r,e,t,a,f,u)}),r.seen.pop(),r6(h,o,c)}function e6(r,e){if(zn(e))return r.stylize("undefined","undefined");if(Go(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(gO(e))return r.stylize(""+e,"number");if(Ec(e))return r.stylize(""+e,"boolean");if(zo(e))return r.stylize("null","null")}function id(r){return"["+Error.prototype.toString.call(r)+"]"}function t6(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 vU=["FunctionDeclaration"],OU={FunctionDeclaration:Mo("function"),ClassDeclaration:Mo("class"),ClassExpression:()=>!0,EnumDeclaration:Mo("constant"),TypeAliasDeclaration:Mo("type"),NamespaceDeclaration:Mo("namespace"),VariableDefinition(r,e){r.matchContext(vU)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function lA(r,e){let t=rA.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=OU[a.name];if(l&&l(a,i)||oA.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of lA(r,a.node))s.push(l);return!1}}),rA.set(e,s),s}var nA=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,uA=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function SU(r){let e=pr(r.state).resolveInner(r.pos,-1);if(uA.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&nA.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let s=[];for(let n=e;n;n=n.parent)oA.has(n.name)&&(s=s.concat(lA(r.state.doc,n)));return{options:s,from:t?e.from:r.pos,validFor:nA}}var Wn=fu.define({name:"javascript",parser:tA.configure({props:[nh.add({IfStatement:mu({except:/^\s*({|else\b)/}),TryStatement:mu({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:iC,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:nC({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":mu({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}}),oC.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":lC,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),cA={test:r=>/^JSX/.test(r.name),facet:rh({commentTokens:{block:{open:"{/*",close:"*/}"}}})},EU=Wn.configure({dialect:"ts"},"typescript"),wU=Wn.configure({dialect:"jsx",props:[hu.add(r=>r.isTop?[cA]:void 0)]}),CU=Wn.configure({dialect:"jsx ts",props:[hu.add(r=>r.isTop?[cA]:void 0)]},"typescript"),fA=r=>({label:r,type:"keyword"}),pA="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(fA),kU=pA.concat(["declare","implements","private","protected","public"].map(fA));function hA(r={}){let e=r.jsx?r.typescript?CU:wU:r.typescript?EU:Wn,t=r.typescript?xU.concat(kU):aA.concat(pA);return new pu(e,[Wn.data.of({autocomplete:Ek(uA,Rh(t))}),Wn.data.of({autocomplete:SU}),r.jsx?TU:[]])}function AU(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 sA(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 PU=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),TU=at.inputHandler.of((r,e,t,s,n)=>{if((PU?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||s!=">"&&s!="/"||!Wn.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=sA(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=AU(p);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(h=sA(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 dA(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 Wn.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(DU(u,s.doc,o))}return n}}function iA(r,e,t,s){return t.line(r+s.line).from+e+(r==1?s.col-1:-1)}function DU(r,e,t){let s=iA(r.line,r.column,e,t),n={from:s,to:r.endLine!=null&&r.endColumn!=1?iA(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 _U="#e5c07b",mA="#e06c75",IU="#56b6c2",RU="#ffffff",Ju="#abb2bf",nd="#7d8799",FU="#61afef",BU="#98c379",gA="#d19a66",NU="#c678dd",LU="#21252b",yA="#2c313a",bA="#282c34",rd="#353a42",$U="#3E4451",xA="#528bff";var MU=at.theme({"&":{color:Ju,backgroundColor:bA},".cm-content":{caretColor:xA},".cm-cursor, .cm-dropCursor":{borderLeftColor:xA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:$U},".cm-panels":{backgroundColor:LU,color:Ju},".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:bA,color:nd,border:"none"},".cm-activeLineGutter":{backgroundColor:yA},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:rd},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:rd,borderBottomColor:rd},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:yA,color:Ju}}},{dark:!0}),jU=na.define([{tag:ke.keyword,color:NU},{tag:[ke.name,ke.deleted,ke.character,ke.propertyName,ke.macroName],color:mA},{tag:[ke.function(ke.variableName),ke.labelName],color:FU},{tag:[ke.color,ke.constant(ke.name),ke.standard(ke.name)],color:gA},{tag:[ke.definition(ke.name),ke.separator],color:Ju},{tag:[ke.typeName,ke.className,ke.number,ke.changed,ke.annotation,ke.modifier,ke.self,ke.namespace],color:_U},{tag:[ke.operator,ke.operatorKeyword,ke.url,ke.escape,ke.regexp,ke.link,ke.special(ke.string)],color:IU},{tag:[ke.meta,ke.comment],color:nd},{tag:ke.strong,fontWeight:"bold"},{tag:ke.emphasis,fontStyle:"italic"},{tag:ke.strikethrough,textDecoration:"line-through"},{tag:ke.link,color:nd,textDecoration:"underline"},{tag:ke.heading,fontWeight:"bold",color:mA},{tag:[ke.atom,ke.bool,ke.special(ke.variableName)],color:gA},{tag:[ke.processingInstruction,ke.string,ke.inserted],color:BU},{tag:ke.invalid,color:RU}]),vA=[MU,gu(jU)];uc||(uc=globalThis||window);var uc;function gc(r){return r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var qU={},Jr=typeof uc<"u"?uc:typeof self<"u"?self:typeof window<"u"?window:{};function YF(){throw new Error("setTimeout has not been defined")}function HF(){throw new Error("clearTimeout has not been defined")}var js=YF,qs=HF;typeof Jr.setTimeout=="function"&&(js=setTimeout);typeof Jr.clearTimeout=="function"&&(qs=clearTimeout);function KF(r){if(js===setTimeout)return setTimeout(r,0);if((js===YF||!js)&&setTimeout)return js=setTimeout,setTimeout(r,0);try{return js(r,0)}catch{try{return js.call(null,r,0)}catch{return js.call(this,r,0)}}}function QU(r){if(qs===clearTimeout)return clearTimeout(r);if((qs===HF||!qs)&&clearTimeout)return qs=clearTimeout,clearTimeout(r);try{return qs(r)}catch{try{return qs.call(null,r)}catch{return qs.call(this,r)}}}var cs=[],xa=!1,bi,lc=-1;function UU(){!xa||!bi||(xa=!1,bi.length?cs=bi.concat(cs):lc=-1,cs.length&&JF())}function JF(){if(!xa){var r=KF(UU);xa=!0;for(var e=cs.length;e;){for(bi=cs,cs=[];++lc1)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 m8=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,aO=function(r){return m8.exec(r).slice(1)};function cc(){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=tB(uO(r.split("/"),function(n){return!!n}),!e).join("/"),(e?"/":"")+r||"."}function oO(r){var e=lO(r),t=y8(r,-1)==="/";return r=tB(uO(r.split("/"),function(s){return!!s}),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r}function lO(r){return r.charAt(0)==="/"}function rB(){var r=Array.prototype.slice.call(arguments,0);return oO(uO(r,function(e,t){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function nB(r,e){r=cc(r).substr(1),e=cc(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 x8(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 O8(r){return Zn[r>>18&63]+Zn[r>>12&63]+Zn[r>>6&63]+Zn[r&63]}function S8(r,e,t){for(var s,n=[],i=e;io?o:l+a));return s===1?(e=r[t-1],n+=Zn[e>>2],n+=Zn[e<<4&63],n+="=="):s===2&&(e=(r[t-2]<<8)+r[t-1],n+=Zn[e>>10],n+=Zn[e>>4&63],n+=Zn[e<<2&63],n+="="),i.push(n),i.join("")}function bc(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 cB(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 E8={}.toString,fB=Array.isArray||function(r){return E8.call(r)=="[object Array]"};var w8=50;Ge.TYPED_ARRAY_SUPPORT=Jr.TYPED_ARRAY_SUPPORT!==void 0?Jr.TYPED_ARRAY_SUPPORT:!0;fc();function fc(){return Ge.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fs(r,e){if(fc()=fc())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fc().toString(16)+" bytes");return r|0}Ge.isBuffer=ba;function Gn(r){return!!(r!=null&&r._isBuffer)}Ge.compare=function(e,t){if(!Gn(e)||!Gn(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 OB(r).length;default:if(s)return pc(r).length;e=(""+e).toLowerCase(),s=!0}}Ge.byteLength=dB;function T8(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 M8(this,e,t);case"utf8":case"utf-8":return yB(this,e,t);case"ascii":return L8(this,e,t);case"latin1":case"binary":return $8(this,e,t);case"base64":return B8(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j8(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}Ge.prototype._isBuffer=!0;function xi(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(!Gn(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)),Gn(e))return e.length===0?-1:SA(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):SA(r,[e],t,s,n);throw new TypeError("val must be string, number or Buffer")}function SA(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 D8(this,e,t,s);case"utf8":case"utf-8":return _8(this,e,t,s);case"ascii":return gB(this,e,t,s);case"latin1":case"binary":return I8(this,e,t,s);case"base64":return R8(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F8(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 B8(r,e,t){return e===0&&t===r.length?OA(r):OA(r.slice(e,t))}function yB(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 N8(s)}var EA=4096;function N8(r){var e=r.length;if(e<=EA)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),bc(this,e,!0,23,4)};Ge.prototype.readFloatBE=function(e,t){return t||br(e,4,this.length),bc(this,e,!1,23,4)};Ge.prototype.readDoubleLE=function(e,t){return t||br(e,8,this.length),bc(this,e,!0,52,8)};Ge.prototype.readDoubleBE=function(e,t){return t||br(e,8,this.length),bc(this,e,!1,52,8)};function Qr(r,e,t,s,n,i){if(!Gn(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 xc(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):xc(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):xc(this,e,t,!1),t+2};function vc(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):vc(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):vc(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):xc(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):xc(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):vc(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):vc(this,e,t,!1),t+4};function bB(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 xB(r,e,t,s,n){return n||bB(r,e,t,4),cB(r,e,t,s,23,4),t+4}Ge.prototype.writeFloatLE=function(e,t,s){return xB(this,e,t,!0,s)};Ge.prototype.writeFloatBE=function(e,t,s){return xB(this,e,t,!1,s)};function vB(r,e,t,s,n){return n||bB(r,e,t,8),cB(r,e,t,s,52,8),t+8}Ge.prototype.writeDoubleLE=function(e,t,s){return vB(this,e,t,!0,s)};Ge.prototype.writeDoubleBE=function(e,t,s){return vB(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 W8(r){for(var e=[],t=0;t>8,n=t%256,i.push(n),i.push(s);return i}function OB(r){return v8(Q8(r))}function Oc(r,e,t,s){for(var n=0;n=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function z8(r){return r!==r}function ba(r){return r!=null&&(!!r._isBuffer||SB(r)||G8(r))}function SB(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function G8(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&SB(r.slice(0,0))}var tO;typeof Object.create=="function"?tO=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:tO=function(e,t){e.super_=t;var s=function(){};s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e};var hO=tO,EB=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]),Ec(e)?t.showHidden=e:e&&bO(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=Y8),hc(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 Y8(r,e){var t=Cn.styles[e];return t?"\x1B["+Cn.colors[t][0]+"m"+r+"\x1B["+Cn.colors[t][1]+"m":r}function H8(r,e){return r}function K8(r){var e={};return r.forEach(function(t,s){e[t]=!0}),e}function hc(r,e,t){if(r.customInspect&&e&&Oi(e.inspect)&&e.inspect!==Cn&&!(e.constructor&&e.constructor.prototype===e)){var s=e.inspect(t,r);return Go(s)||(s=hc(r,s,t)),s}var n=J8(r,e);if(n)return n;var i=Object.keys(e),a=K8(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),va(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return id(e);if(i.length===0){if(Oi(e)){var l=e.name?": "+e.name:"";return r.stylize("[Function"+l+"]","special")}if(vi(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(Oa(e))return r.stylize(Date.prototype.toString.call(e),"date");if(va(e))return id(e)}var o="",u=!1,c=["{","}"];if(mO(e)&&(u=!0,c=["[","]"]),Oi(e)){var p=e.name?": "+e.name:"";o=" [Function"+p+"]"}if(vi(e)&&(o=" "+RegExp.prototype.toString.call(e)),Oa(e)&&(o=" "+Date.prototype.toUTCString.call(e)),va(e)&&(o=" "+id(e)),i.length===0&&(!u||e.length==0))return c[0]+o+c[1];if(t<0)return vi(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var h;return u?h=e6(r,e,t,a,i):h=i.map(function(f){return rO(r,e,t,a,f,u)}),r.seen.pop(),t6(h,o,c)}function J8(r,e){if(zn(e))return r.stylize("undefined","undefined");if(Go(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(gO(e))return r.stylize(""+e,"number");if(Ec(e))return r.stylize(""+e,"boolean");if(zo(e))return r.stylize("null","null")}function id(r){return"["+Error.prototype.toString.call(r)+"]"}function e6(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 r6(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 t6(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 mO(r){return Array.isArray(r)}function Ec(r){return typeof r=="boolean"}function zo(r){return r===null}function CB(r){return r==null}function gO(r){return typeof r=="number"}function Go(r){return typeof r=="string"}function kB(r){return typeof r=="symbol"}function zn(r){return r===void 0}function vi(r){return Ei(r)&&yO(r)==="[object RegExp]"}function Ei(r){return typeof r=="object"&&r!==null}function Oa(r){return Ei(r)&&yO(r)==="[object Date]"}function va(r){return Ei(r)&&(yO(r)==="[object Error]"||r instanceof Error)}function Oi(r){return typeof r=="function"}function dc(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}function AB(r){return Ge.isBuffer(r)}function yO(r){return Object.prototype.toString.call(r)}function ad(r){return r<10?"0"+r.toString(10):r.toString(10)}var n6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function s6(){var r=new Date,e=[ad(r.getHours()),ad(r.getMinutes()),ad(r.getSeconds())].join(":");return[r.getDate(),n6[r.getMonth()],e].join(" ")}function PB(){console.log("%s - %s",s6(),Sc.apply(null,arguments))}function bO(r,e){if(!e||!Ei(e))return r;for(var t=Object.keys(e),s=t.length;s--;)r[t[s]]=e[t[s]];return r}function TB(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var gi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function xO(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(gi&&r[gi]){var e=r[gi];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,gi,{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 AB(r){return Ge.isBuffer(r)}function yO(r){return Object.prototype.toString.call(r)}function ad(r){return r<10?"0"+r.toString(10):r.toString(10)}var r6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function n6(){var r=new Date,e=[ad(r.getHours()),ad(r.getMinutes()),ad(r.getSeconds())].join(":");return[r.getDate(),r6[r.getMonth()],e].join(" ")}function PB(){console.log("%s - %s",n6(),Sc.apply(null,arguments))}function bO(r,e){if(!e||!Ei(e))return r;for(var t=Object.keys(e),s=t.length;s--;)r[t[s]]=e[t[s]];return r}function TB(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var gi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function xO(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(gi&&r[gi]){var e=r[gi];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,gi,{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}}}hO(wc,Error);function TA(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],!Sa(r[o],e[o],t,s))return!1;return!0}Br.notDeepEqual=wO;function wO(r,e,t){Sa(r,e,!1)&&Fr(r,e,t,"notDeepEqual",wO)}Br.notDeepStrictEqual=CO;function CO(r,e,t){Sa(r,e,!0)&&Fr(r,e,t,"notDeepStrictEqual",CO)}Br.strictEqual=kO;function kO(r,e,t){r!==e&&Fr(r,e,t,"===",kO)}Br.notStrictEqual=AO;function AO(r,e,t){r===e&&Fr(r,e,t,"!==",AO)}function IA(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 p6(r){var e;try{r()}catch(t){e=t}return e}function RB(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=p6(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&&va(n),l=!r&&n&&!t;if((a&&i&&IA(n,t)||l)&&Fr(n,t,"Got unwanted exception"+s),r&&n&&t&&!IA(n,t)||!r&&n)throw n}Br.throws=FB;function FB(r,e,t){RB(!0,r,e,t)}Br.doesNotThrow=BB;function BB(r,e,t){RB(!1,r,e,t)}Br.ifError=NB;function NB(r){if(r)throw r}var h6=Object.freeze({__proto__:null,AssertionError:wc,assert:Wo,deepEqual:SO,deepStrictEqual:EO,default:Br,doesNotThrow:BB,equal:vO,fail:Fr,ifError:NB,notDeepEqual:wO,notDeepStrictEqual:CO,notEqual:OO,notStrictEqual:AO,ok:Wo,strictEqual:kO,throws:FB}),Xo=gc(h6),ld={},RA;function LB(){return RA||(RA=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,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(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 x(w,O){var C=new f;return C.replace(w,O)}function v(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=x,t.attachComments=S,t.VisitorKeys=i,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(r)}(ld)),ld}var jo={},d6="esrecurse",m6="ECMAScript AST recursive visitor",g6="https://github.com/estools/esrecurse",y6="esrecurse.js",b6="4.3.0",x6={node:">=4.0"},v6=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],O6={type:"git",url:"https://github.com/estools/esrecurse.git"},S6={estraverse:"^5.2.0"},E6={"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"},w6="BSD-2-Clause",C6={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"},k6={presets:["es2015"]},A6={name:d6,description:m6,homepage:g6,main:y6,version:b6,engines:x6,maintainers:v6,repository:O6,dependencies:S6,devDependencies:E6,license:w6,scripts:C6,babel:k6},FA;function P6(){return FA||(FA=1,function(){var r=LB();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 x{constructor($,pe,K){super($,"for",pe,K,!1)}}class _ extends x{constructor($,pe,K){super($,"class",pe,K,!1)}}class B extends x{constructor($,pe,K){super($,"class-field-initializer",pe,K,!0)}}class T extends x{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 x={beforeExpr:!0},v={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",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(",",x),semi:new g(";",x),colon:new g(":",x),dot:new g("."),question:new g("?",x),questionDot:new g("?."),arrow:new g("=>",x),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",x),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:w("break"),_case:w("case",x),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",x),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",x),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",v),_if:w("if"),_return:w("return",x),_switch:w("switch"),_throw:w("throw",x),_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",v),_super:w("super",v),_class:w("class",v),_extends:w("extends",x),_export:w("export"),_import:w("import",v),_null:w("null",v),_true:w("true",v),_false:w("false",v),_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 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(b){var P={};for(var q in ve)P[q]=b&&j(b,q)?b[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. +`,i+1);s=s.substring(a+1)}this.stack=s}}}hO(wc,Error);function TA(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],!Sa(r[o],e[o],t,s))return!1;return!0}Br.notDeepEqual=wO;function wO(r,e,t){Sa(r,e,!1)&&Fr(r,e,t,"notDeepEqual",wO)}Br.notDeepStrictEqual=CO;function CO(r,e,t){Sa(r,e,!0)&&Fr(r,e,t,"notDeepStrictEqual",CO)}Br.strictEqual=kO;function kO(r,e,t){r!==e&&Fr(r,e,t,"===",kO)}Br.notStrictEqual=AO;function AO(r,e,t){r===e&&Fr(r,e,t,"!==",AO)}function IA(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 f6(r){var e;try{r()}catch(t){e=t}return e}function RB(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=f6(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&&va(n),l=!r&&n&&!t;if((a&&i&&IA(n,t)||l)&&Fr(n,t,"Got unwanted exception"+s),r&&n&&t&&!IA(n,t)||!r&&n)throw n}Br.throws=FB;function FB(r,e,t){RB(!0,r,e,t)}Br.doesNotThrow=BB;function BB(r,e,t){RB(!1,r,e,t)}Br.ifError=NB;function NB(r){if(r)throw r}var p6=Object.freeze({__proto__:null,AssertionError:wc,assert:Wo,deepEqual:SO,deepStrictEqual:EO,default:Br,doesNotThrow:BB,equal:vO,fail:Fr,ifError:NB,notDeepEqual:wO,notDeepStrictEqual:CO,notEqual:OO,notStrictEqual:AO,ok:Wo,strictEqual:kO,throws:FB}),Xo=gc(p6),ld={},RA;function LB(){return RA||(RA=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,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(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 x(w,O){var C=new f;return C.replace(w,O)}function v(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=x,t.attachComments=S,t.VisitorKeys=i,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(r)}(ld)),ld}var jo={},h6="esrecurse",d6="ECMAScript AST recursive visitor",m6="https://github.com/estools/esrecurse",g6="esrecurse.js",y6="4.3.0",b6={node:">=4.0"},x6=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],v6={type:"git",url:"https://github.com/estools/esrecurse.git"},O6={estraverse:"^5.2.0"},S6={"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"},E6="BSD-2-Clause",w6={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"},C6={presets:["es2015"]},k6={name:h6,description:d6,homepage:m6,main:g6,version:y6,engines:b6,maintainers:x6,repository:v6,dependencies:O6,devDependencies:S6,license:E6,scripts:w6,babel:C6},FA;function A6(){return FA||(FA=1,function(){var r=LB();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 x{constructor($,pe,K){super($,"for",pe,K,!1)}}class _ extends x{constructor($,pe,K){super($,"class",pe,K,!1)}}class B extends x{constructor($,pe,K){super($,"class-field-initializer",pe,K,!0)}}class T extends x{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 x={beforeExpr:!0},v={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",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(",",x),semi:new g(";",x),colon:new g(":",x),dot:new g("."),question:new g("?",x),questionDot:new g("?."),arrow:new g("=>",x),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",x),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:w("break"),_case:w("case",x),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",x),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",x),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",v),_if:w("if"),_return:w("return",x),_switch:w("switch"),_throw:w("throw",x),_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",v),_super:w("super",v),_class:w("class",v),_extends:w("extends",x),_export:w("export"),_import:w("import",v),_null:w("null",v),_true:w("true",v),_false:w("false",v),_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 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(b){var P={};for(var q in ve)P[q]=b&&j(b,q)?b[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),(!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,wt=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,Ct=5,xt=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}};xt.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},xt.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 vt=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 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):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=xt.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 vt,Pn=this.yieldPos,Vs=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 Ti=this.lastTokEnd,bs=this.lastTokEndLoc;if(this.expect(O.parenR),b&&this.shouldParseArrow(Je)&&this.eat(O.arrow))return this.checkPatternErrors(ar,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Pn,this.awaitPos=Vs,this.parseParenArrowList(q,z,Je,P);(!Je.length||At)&&this.unexpected(this.lastTokStart),Kn&&this.unexpected(Kn),this.checkExpressionErrors(ar,!0),this.yieldPos=Pn||this.yieldPos,this.awaitPos=Vs||this.awaitPos,Je.length>1?(ge=this.startNodeAt(Ne,He),ge.expressions=Je,this.finishNodeAt(ge,"SequenceExpression",Ti,bs)):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,Ct),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&wt)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&wt)return P}},$e.currentThisScope=function(){for(var b=this.scopeStack.length-1;;b--){var P=this.scopeStack[b];if(P.flags&wt&&!(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=xt.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 xe="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=xe+" Extended_Pictographic",Y=re,fe=Y+" EBase EComp EMod EPres ExtPict",Se=fe,Ee=Se,ze={9:xe,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 xr(P)?(b.lastIntValue=P,b.advance(),!0):!1};function xr(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&&!xr(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 Ur(P)?(b.lastIntValue=P%32,b.advance(),!0):!1};function Ur(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)&&ds(b.lastIntValue))return!0;z&&b.raise("Invalid unicode escape"),b.pos=q}return!1};function ds(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 Ur(b)||b===95}ot.regexp_eatUnicodePropertyValue=function(b){var P=0;for(b.lastStringValue="";An(P=b.current());)b.lastStringValue+=F(P),b.advance();return b.lastStringValue!==""};function An(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||Ai(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)||ms(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 ms(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 Us(P)?(b.lastIntValue=P,b.advance(),!0):!1};function Us(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;ki(q=b.current());)b.lastIntValue=16*b.lastIntValue+gs(q),b.advance();return b.pos!==P};function ki(b){return b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102}function gs(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 Ai(P)?(b.lastIntValue=P-48,b.advance(),!0):(b.lastIntValue=0,!1)};function Ai(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 Pi(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=Pi(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"}),cd}var MA;function D6(){return MA||(MA=1,function(r){let e=T6(),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(x){let v=this.context.pop();v===f&&x===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(nO()).tokTypes},configurable:!0,enumerable:!0});function l(o,u){let c=u.acorn||nO(),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,x=c.isNewLine,v=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:x(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?` +`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return F(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),b){var q=this.pos-1;this.invalidStringToken(q,"Invalid escape sequence in template string")}default:if(P>=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"}),cd}var MA;function T6(){return MA||(MA=1,function(r){let e=P6(),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(x){let v=this.context.pop();v===f&&x===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(nO()).tokTypes},configurable:!0,enumerable:!0});function l(o,u){let c=u.acorn||nO(),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,x=c.isNewLine,v=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:x(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 -`):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):x(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(v(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)}}}}(ud)),ud.exports}var ma={},jA;function _6(){if(jA)return ma;jA=1,Object.defineProperty(ma,"__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 ma.KEYS=r,ma.getKeys=n,ma.unionWith=i,ma}var qA;function Cc(){if(qA)return En;qA=1,Object.defineProperty(En,"__esModule",{value:!0});var r=nO(),e=D6(),t=_6();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"),x=Symbol("espree's esprimaFinishNode");function v(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(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[x](N)}finishNodeAt(...I){let N=super.finishNodeAt(...I);return this[x](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}[x](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 Vo={exports:{}};Vo.exports;var QA;function I6(){return QA||(QA=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]",x="[object Object]",v="[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[x]=ae[S]=ae[w]=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{}}(),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=xe,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&&Ai(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||PN;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)!=x)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)==xt}var Pn=be?rt(be):Nt;function Vs(ye){return Hn(ye,Kn(ye))}function Kn(ye){return ge(ye)?Xe(ye):xr(ye)}var Ti=An(function(ye,Ae,Me){Nr(ye,Ae,Me)});function bs(ye){return function(){return ye}}function Jn(ye){return ye}function PN(){return!1}r.exports=Ti}(Vo,Vo.exports)),Vo.exports}var R6="eslint",F6="9.2.0",B6="Nicholas C. Zakas ",N6="An AST-based pattern checker for JavaScript.",L6={eslint:"./bin/eslint.js"},$6="./lib/api.js",M6={"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},j6={"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"},q6={"pre-commit":"lint-staged"},Q6=["LICENSE","README.md","bin","conf","lib","messages"],U6="eslint/eslint",V6="https://opencollective.com/eslint",W6="https://eslint.org",Z6="https://github.com/eslint/eslint/issues/",z6={"@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"},G6={"@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"},X6=["ast","lint","javascript","ecmascript","espree"],Y6="MIT",H6={node:"^18.18.0 || ^20.9.0 || >=21.1.0"},K6={name:R6,version:F6,author:B6,description:N6,bin:L6,main:$6,exports:M6,scripts:j6,gitHooks:q6,"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:Q6,repository:U6,funding:V6,homepage:W6,bugs:Z6,dependencies:z6,devDependencies:G6,keywords:X6,license:Y6,engines:H6},fd,UA;function kc(){if(UA)return fd;UA=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 fd={breakableTypePattern:r,lineBreakPattern:e,createGlobalLinebreakMatcher:s,shebangPattern:t},fd}var pd,VA;function Ac(){return VA||(VA=1,pd={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),pd}var rc={},MB=gc(o6),nc={exports:{}};var WA;function J6(){return WA||(WA=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+x))},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 xr=!0,Nr=!1,wr=void 0;try{for(var Ur=Y[Symbol.iterator](),ds;!(xr=(ds=Ur.next()).done);xr=!0){var Yn=ds.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 wt=/^\.\.?\//,G=/^\/\.(\/|$)/,Ce=/^\/\.\.(\/|$)/,Ve=/^\/?(?:.|\n)*?(?=\/|$)/;function et(re){for(var Y=[];re.length;)if(re.match(wt))re=re.replace(wt,"");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 Ct(re,Y,fe){var Se=o({scheme:"null"},fe);return it(st(ht(re,Se),ht(Y,Se),Se,!0),Se)}function xt(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}},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:x,baseId:v},{index:S,compiling:!1})}function c(y,x,v){var S=p.call(this,y,x,v);S>=0&&this._compilations.splice(S,1)}function p(y,x,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)*)*)$/;wd=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":x,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 x(C){var E=C.split(y);return E.length==2&&m(E[0])&&g(E[1],!0)}var v=/\/|:/;function S(C){return v.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 wd}var Cd,sP;function i9(){return sP||(sP=1,Cd=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 x=e.util.copy(e);x.level++;var v="valid"+x.level;x.schema=d.schema,x.schemaPath="",x.errSchemaPath=l;var S=e.validate(x).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 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}),Cd}var kd,iP;function a9(){return iP||(iP=1,kd=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}),kd}var Ad,aP;function o9(){return aP||(aP=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="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 x=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 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[x]=y;var E=e.validate(d);d.baseId=S,e.util.varOccurences(E,v)<2?n+=" "+e.util.varReplace(E,v,C)+" ":n+=" var "+v+" = "+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}),Dd}var _d,cP;function f9(){return cP||(cP=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="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g={},y={},x=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 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 ",x&&(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||v===!1:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+m+" = true; if ( "+p+e.util.getProperty(O)+" !== undefined ",x&&(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=F,n+=" } ",c&&(n+=" if ("+m+") { ",d+="}"))}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),_d}var Id,fP;function p9(){return fP||(fP=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,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}),Id}var Rd,pP;function h9(){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,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,x="formatType"+i;n+=" var "+g+" = formats["+f+"]; var "+y+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+x+" = "+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+" && "+x+" == '"+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,x=y&&g.type||"string";if(y){var v=g.async===!0;g=g.validate}if(x!=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 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}),Rd}var Fd,hP;function d9(){return hP||(hP=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,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,x=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(x||v){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,x?(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+"; ",x&&v?(w="ifClause"+i,n+=" var "+w+" = 'then'; "):w="'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+"; ",x&&v?(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}),Fd}var Bd,dP;function m9(){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,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,x=d.dataLevel=e.dataLevel+1,v="data"+x,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[x]=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 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[x]=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[x]=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}),Bd}var Nd,mP;function gP(){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,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,x=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 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+" "+x+"= "+f+") ? "+p+" "+v+"= "+w+" : "+p+" "+v+" "+f+" ) : ( ("+O+" = "+w+" === true) ? "+p+" "+v+"= "+f+" : "+p+" "+v+" "+f+" ) || "+p+" !== "+p+") { var op"+i+" = "+O+" ? '"+x+"' : '"+x+"='; ",l===void 0&&(S=m,u=e.errSchemaPath+"/"+m,f=w,h=y)}else{var E=typeof g=="number",A=x;if(E&&h){var k="'"+A+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" ( "+f+" === undefined || "+g+" "+x+"= "+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}),Nd}var Ld,yP;function bP(){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,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}),Ld}var $d,xP;function vP(){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,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}),$d}var Md,OP;function SP(){return OP||(OP=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,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}),Md}var jd,EP;function g9(){return EP||(EP=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=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}),jd}var qd,wP;function y9(){return wP||(wP=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);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 x=n;n=y.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+=" } 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}),qd}var Qd,CP;function b9(){return CP||(CP=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="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y=d.baseId,x="prevValid"+i,v="passingSchemas"+i;n+="var "+f+" = errors , "+x+" = false , "+h+" = false , "+v+" = 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+" && "+x+") { "+h+" = false; "+v+" = ["+v+", "+C+"]; } else { ",m+="}"),n+=" if ("+g+") { "+h+" = "+x+" = true; "+v+" = "+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: "+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}),Qd}var Ud,kP;function x9(){return kP||(kP=1,Ud=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}),Ud}var Vd,AP;function v9(){return AP||(AP=1,Vd=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,x=f.dataLevel=e.dataLevel+1,v="data"+x,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[x]=e.util.toQuotedString(F);var qe=e.validate(f);if(f.baseId=R,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[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,Ct=-1,xt=st.length-1;Ct0||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[x]=g;var qe=e.validate(f);f.baseId=R,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}),Vd}var Wd,PP;function O9(){return PP||(PP=1,Wd=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,x="i"+i,v="' + "+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 "+x+"=startErrs"+i+"; "+x+"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 x=x||[];x.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=x.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}),zd}var Gd,_P;function w9(){return _P||(_P=1,Gd={$ref:i9(),allOf:a9(),anyOf:o9(),$comment:l9(),const:u9(),contains:c9(),dependencies:f9(),enum:p9(),format:h9(),if:d9(),items:m9(),maximum:gP(),minimum:gP(),maxItems:bP(),minItems:bP(),maxLength:vP(),minLength:vP(),maxProperties:SP(),minProperties:SP(),multipleOf:g9(),not:y9(),oneOf:b9(),pattern:x9(),properties:v9(),propertyNames:O9(),required:S9(),uniqueItems:E9(),validate:QB()}),Gd}var Xd,IP;function C9(){if(IP)return Xd;IP=1;var r=w9(),e=Ea().toHash;return Xd=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},Xd}var Yd,RP;function k9(){if(RP)return Yd;RP=1;var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Yd=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 x={__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 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=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 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,"")}'). +`):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):x(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(v(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)}}}}(ud)),ud.exports}var ma={},jA;function D6(){if(jA)return ma;jA=1,Object.defineProperty(ma,"__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 ma.KEYS=r,ma.getKeys=n,ma.unionWith=i,ma}var qA;function Cc(){if(qA)return En;qA=1,Object.defineProperty(En,"__esModule",{value:!0});var r=nO(),e=T6(),t=D6();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"),x=Symbol("espree's esprimaFinishNode");function v(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(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[x](N)}finishNodeAt(...I){let N=super.finishNodeAt(...I);return this[x](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}[x](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 Vo={exports:{}};Vo.exports;var QA;function _6(){return QA||(QA=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]",x="[object Object]",v="[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[x]=ae[S]=ae[w]=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{}}(),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=xe,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&&Ai(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||AN;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)!=x)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)==xt}var Pn=be?rt(be):Nt;function Vs(ye){return Hn(ye,Kn(ye))}function Kn(ye){return ge(ye)?Xe(ye):xr(ye)}var Ti=An(function(ye,Ae,Me){Nr(ye,Ae,Me)});function bs(ye){return function(){return ye}}function Jn(ye){return ye}function AN(){return!1}r.exports=Ti}(Vo,Vo.exports)),Vo.exports}var I6="eslint",R6="9.2.0",F6="Nicholas C. Zakas ",B6="An AST-based pattern checker for JavaScript.",N6={eslint:"./bin/eslint.js"},L6="./lib/api.js",$6={"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},M6={"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"},j6={"pre-commit":"lint-staged"},q6=["LICENSE","README.md","bin","conf","lib","messages"],Q6="eslint/eslint",U6="https://opencollective.com/eslint",V6="https://eslint.org",W6="https://github.com/eslint/eslint/issues/",Z6={"@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"},z6={"@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"},G6=["ast","lint","javascript","ecmascript","espree"],X6="MIT",Y6={node:"^18.18.0 || ^20.9.0 || >=21.1.0"},H6={name:I6,version:R6,author:F6,description:B6,bin:N6,main:L6,exports:$6,scripts:M6,gitHooks:j6,"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:q6,repository:Q6,funding:U6,homepage:V6,bugs:W6,dependencies:Z6,devDependencies:z6,keywords:G6,license:X6,engines:Y6},fd,UA;function kc(){if(UA)return fd;UA=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 fd={breakableTypePattern:r,lineBreakPattern:e,createGlobalLinebreakMatcher:s,shebangPattern:t},fd}var pd,VA;function Ac(){return VA||(VA=1,pd={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),pd}var rc={},MB=gc(a6),nc={exports:{}};var WA;function K6(){return WA||(WA=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+x))},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 xr=!0,Nr=!1,wr=void 0;try{for(var Ur=Y[Symbol.iterator](),ds;!(xr=(ds=Ur.next()).done);xr=!0){var Yn=ds.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 wt=/^\.\.?\//,G=/^\/\.(\/|$)/,Ce=/^\/\.\.(\/|$)/,Ve=/^\/?(?:.|\n)*?(?=\/|$)/;function et(re){for(var Y=[];re.length;)if(re.match(wt))re=re.replace(wt,"");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 Ct(re,Y,fe){var Se=o({scheme:"null"},fe);return it(st(ht(re,Se),ht(Y,Se),Se,!0),Se)}function xt(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}},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:x,baseId:v},{index:S,compiling:!1})}function c(y,x,v){var S=p.call(this,y,x,v);S>=0&&this._compilations.splice(S,1)}function p(y,x,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)*)*)$/;wd=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":x,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 x(C){var E=C.split(y);return E.length==2&&m(E[0])&&g(E[1],!0)}var v=/\/|:/;function S(C){return v.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 wd}var Cd,sP;function s9(){return sP||(sP=1,Cd=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 x=e.util.copy(e);x.level++;var v="valid"+x.level;x.schema=d.schema,x.schemaPath="",x.errSchemaPath=l;var S=e.validate(x).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 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}),Cd}var kd,iP;function i9(){return iP||(iP=1,kd=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}),kd}var Ad,aP;function a9(){return aP||(aP=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="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 x=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 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[x]=y;var E=e.validate(d);d.baseId=S,e.util.varOccurences(E,v)<2?n+=" "+e.util.varReplace(E,v,C)+" ":n+=" var "+v+" = "+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}),Dd}var _d,cP;function c9(){return cP||(cP=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="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g={},y={},x=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 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 ",x&&(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||v===!1:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+m+" = true; if ( "+p+e.util.getProperty(O)+" !== undefined ",x&&(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=F,n+=" } ",c&&(n+=" if ("+m+") { ",d+="}"))}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),_d}var Id,fP;function f9(){return fP||(fP=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,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}),Id}var Rd,pP;function p9(){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,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,x="formatType"+i;n+=" var "+g+" = formats["+f+"]; var "+y+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+x+" = "+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+" && "+x+" == '"+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,x=y&&g.type||"string";if(y){var v=g.async===!0;g=g.validate}if(x!=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 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}),Rd}var Fd,hP;function h9(){return hP||(hP=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,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,x=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(x||v){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,x?(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+"; ",x&&v?(w="ifClause"+i,n+=" var "+w+" = 'then'; "):w="'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+"; ",x&&v?(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}),Fd}var Bd,dP;function d9(){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,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,x=d.dataLevel=e.dataLevel+1,v="data"+x,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[x]=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 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[x]=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[x]=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}),Bd}var Nd,mP;function gP(){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,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,x=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 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+" "+x+"= "+f+") ? "+p+" "+v+"= "+w+" : "+p+" "+v+" "+f+" ) : ( ("+O+" = "+w+" === true) ? "+p+" "+v+"= "+f+" : "+p+" "+v+" "+f+" ) || "+p+" !== "+p+") { var op"+i+" = "+O+" ? '"+x+"' : '"+x+"='; ",l===void 0&&(S=m,u=e.errSchemaPath+"/"+m,f=w,h=y)}else{var E=typeof g=="number",A=x;if(E&&h){var k="'"+A+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" ( "+f+" === undefined || "+g+" "+x+"= "+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}),Nd}var Ld,yP;function bP(){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,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}),Ld}var $d,xP;function vP(){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,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}),$d}var Md,OP;function SP(){return OP||(OP=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,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}),Md}var jd,EP;function m9(){return EP||(EP=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=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}),jd}var qd,wP;function g9(){return wP||(wP=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);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 x=n;n=y.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+=" } 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}),qd}var Qd,CP;function y9(){return CP||(CP=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="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y=d.baseId,x="prevValid"+i,v="passingSchemas"+i;n+="var "+f+" = errors , "+x+" = false , "+h+" = false , "+v+" = 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+" && "+x+") { "+h+" = false; "+v+" = ["+v+", "+C+"]; } else { ",m+="}"),n+=" if ("+g+") { "+h+" = "+x+" = true; "+v+" = "+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: "+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}),Qd}var Ud,kP;function b9(){return kP||(kP=1,Ud=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}),Ud}var Vd,AP;function x9(){return AP||(AP=1,Vd=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,x=f.dataLevel=e.dataLevel+1,v="data"+x,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[x]=e.util.toQuotedString(F);var qe=e.validate(f);if(f.baseId=R,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[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,Ct=-1,xt=st.length-1;Ct0||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[x]=g;var qe=e.validate(f);f.baseId=R,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}),Vd}var Wd,PP;function v9(){return PP||(PP=1,Wd=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,x="i"+i,v="' + "+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 "+x+"=startErrs"+i+"; "+x+"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 x=x||[];x.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=x.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}),zd}var Gd,_P;function E9(){return _P||(_P=1,Gd={$ref:s9(),allOf:i9(),anyOf:a9(),$comment:o9(),const:l9(),contains:u9(),dependencies:c9(),enum:f9(),format:p9(),if:h9(),items:d9(),maximum:gP(),minimum:gP(),maxItems:bP(),minItems:bP(),maxLength:vP(),minLength:vP(),maxProperties:SP(),minProperties:SP(),multipleOf:m9(),not:g9(),oneOf:y9(),pattern:b9(),properties:x9(),propertyNames:v9(),required:O9(),uniqueItems:S9(),validate:QB()}),Gd}var Xd,IP;function w9(){if(IP)return Xd;IP=1;var r=E9(),e=Ea().toHash;return Xd=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},Xd}var Yd,RP;function C9(){if(RP)return Yd;RP=1;var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Yd=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 x={__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 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=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 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}: @@ -49,12 +49,12 @@ ${rt.message}`;typeof qe=="string"&&(ht=`${qe}: `;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 ve(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:ve,getShorthandName:H,getNamespaceFromTerm:he};let pe={environments:R,ConfigOps:x,ConfigValidator:ae,naming:$};return rc.Legacy=pe,rc}var sc={exports:{}},ic={exports:{}},nm,qP;function P4(){if(qP)return nm;qP=1;var r=1e3,e=r*60,t=e*60,s=t*24,n=s*7,i=s*365.25;nm=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 nm}var sm,QP;function WB(){if(QP)return sm;QP=1;function r(e){s.debug=s,s.default=s,s.coerce=u,s.disable=a,s.enable=i,s.enabled=l,s.humanize=P4(),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(x,A),y.splice(w,1),w--}return C}),s.formatArgs.call(x,y),(x.log||s.log).apply(x,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=WB()(e);let{formatters:l}=r.exports;l.j=function(o){try{return JSON.stringify(o)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}(ic,ic.exports)),ic.exports}var ac={exports:{}};function ZB(){return!1}function zB(){throw new Error("tty.ReadStream is not implemented")}function GB(){throw new Error("tty.ReadStream is not implemented")}var D4={isatty:ZB,ReadStream:zB,WriteStream:GB},_4=Object.freeze({__proto__:null,ReadStream:zB,WriteStream:GB,default:D4,isatty:ZB}),I4=gc(_4),VP;function R4(){return VP||(VP=1,function(r,e){let t=I4,s=MB;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=TN("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(` +${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 ve(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:ve,getShorthandName:H,getNamespaceFromTerm:he};let pe={environments:R,ConfigOps:x,ConfigValidator:ae,naming:$};return rc.Legacy=pe,rc}var sc={exports:{}},ic={exports:{}},nm,qP;function A4(){if(qP)return nm;qP=1;var r=1e3,e=r*60,t=e*60,s=t*24,n=s*7,i=s*365.25;nm=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 nm}var sm,QP;function WB(){if(QP)return sm;QP=1;function r(e){s.debug=s,s.default=s,s.coerce=u,s.disable=a,s.enable=i,s.enabled=l,s.humanize=A4(),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(x,A),y.splice(w,1),w--}return C}),s.formatArgs.call(x,y),(x.log||s.log).apply(x,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=WB()(e);let{formatters:l}=r.exports;l.j=function(o){try{return JSON.stringify(o)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}(ic,ic.exports)),ic.exports}var ac={exports:{}};function ZB(){return!1}function zB(){throw new Error("tty.ReadStream is not implemented")}function GB(){throw new Error("tty.ReadStream is not implemented")}var T4={isatty:ZB,ReadStream:zB,WriteStream:GB},D4=Object.freeze({__proto__:null,ReadStream:zB,WriteStream:GB,default:T4,isatty:ZB}),_4=gc(D4),VP;function I4(){return VP||(VP=1,function(r,e){let t=_4,s=MB;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=PN("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)}}(ac,ac.exports)),ac.exports}var WP;function wi(){return WP||(WP=1,typeof Bt>"u"||Bt.type==="renderer"||Bt.browser===!0||Bt.__nwjs?sc.exports=T4():sc.exports=R4()),sc.exports}var im,ZP;function RO(){if(ZP)return im;ZP=1;let r=PO(),e=wi()("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 x=i(l),v=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 wt(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||!wt(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"),Ct=Symbol("call"),xt=Symbol("construct"),Dt=Symbol("esm"),_t={require:{[Ct]:!0}};function W(X){return X==null||X.defs.length!==0||X.references.some(ne=>ne.isWrite())}function vt(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(;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[xt]&&(yield{node:Z,path:ee,type:xt,info:oe[xt]});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=xt,Ye.ESM=Dt;function Kt(X,ne){return!(ne===1&&X==="default")}var De={CALL:Ct,CONSTRUCT:xt,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:x,isNotClosingBraceToken:D,isNotClosingBracketToken:k,isNotClosingParenToken:C,isNotColonToken:w,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=xt,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=x,r.isNotClosingBraceToken=D,r.isNotClosingBracketToken=k,r.isNotClosingParenToken=C,r.isNotColonToken=w,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}(am)),am}var om,XP;function Yo(){return XP||(XP=1,om=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.")}}),om}var qo={},YP;function Ho(){return YP||(YP=1,qo.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},qo.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},qo.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}),qo}var lm,HP;function B4(){if(HP)return lm;HP=1;let r=Yo(),e=Ho();return lm=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)}},lm}var um,KP;function N4(){if(KP)return um;KP=1;let r=Yo(),{getLastIndex:e,getFirstIndex:t}=Ho();return um=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}},um}var cm,JP;function FO(){if(JP)return cm;JP=1;let r=Yo();return cm=class extends r{constructor(t){super(),this.cursor=t}moveNext(){let t=this.cursor.moveNext();return this.current=this.cursor.current,t}},cm}var fm,eT;function L4(){if(eT)return fm;eT=1;let r=FO();return fm=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}},fm}var pm,tT;function $4(){if(tT)return pm;tT=1;let r=Yo(),{getFirstIndex:e,search:t}=Ho();return pm=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}},dm}var mm,sT;function j4(){if(sT)return mm;sT=1;let r=FO();return mm=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()}},mm}var gm,iT;function q4(){if(iT)return gm;iT=1;let r=B4(),e=N4(),t=L4(),s=$4(),n=BO(),i=M4(),a=j4();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 x=this.createBaseCursor(u,c,p,h,f,d);return m&&(x=new t(x,m)),g>=1&&(x=new a(x,g)),y>=0&&(x=new i(x,y)),x}}return gm={forward:new l(n,s),backward:new l(e,r)},gm}var ym,aT;function Q4(){if(aT)return ym;aT=1;let r=BO();return ym=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)}},ym}var bm,oT;function U4(){if(oT)return bm;oT=1;let r=Xo,{isCommentToken:e}=hr(),t=q4(),s=BO(),n=Q4(),i=Ho(),a=Symbol("tokens"),l=Symbol("comments"),o=Symbol("indexMap");function u(d,m){let g=Object.create(null),y=0,x=0,v,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,x,v,w,C,O,-1)}function p(d,m,g,y,x,v,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,x,v,w,E,0,C?O:-1)}function h(d,m,g,y,x,v,S){return typeof v>"u"&&typeof S>"u"?new s(d,m,g,y,x):typeof v=="number"||typeof v>"u"?new n(d,m,g,y,x,v|0,S|0):p(t.forward,d,m,g,y,x,v)}function f(d){let m=[],g=d.getOneToken();for(;g&&e(g);)m.push(g),g=d.getOneToken();return m}return bm=class{constructor(m,g){this[a]=m,this[l]=g,this[o]=u(m,g)}getTokenByRangeStart(m,g){let y=g&&g.includeComments,x=t.forward.createBaseCursor(this[a],this[l],this[o],m,-1,y).getOneToken();return x&&x.range[0]===m?x: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=` +`).map(f=>f.trim()).join(" ")},p.O=function(h){return this.inspectOpts.colors=this.useColors,s.inspect(h,this.inspectOpts)}}(ac,ac.exports)),ac.exports}var WP;function wi(){return WP||(WP=1,typeof Bt>"u"||Bt.type==="renderer"||Bt.browser===!0||Bt.__nwjs?sc.exports=P4():sc.exports=I4()),sc.exports}var im,ZP;function RO(){if(ZP)return im;ZP=1;let r=PO(),e=wi()("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 x=i(l),v=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 wt(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||!wt(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"),Ct=Symbol("call"),xt=Symbol("construct"),Dt=Symbol("esm"),_t={require:{[Ct]:!0}};function W(X){return X==null||X.defs.length!==0||X.references.some(ne=>ne.isWrite())}function vt(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(;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[xt]&&(yield{node:Z,path:ee,type:xt,info:oe[xt]});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=xt,Ye.ESM=Dt;function Kt(X,ne){return!(ne===1&&X==="default")}var De={CALL:Ct,CONSTRUCT:xt,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:x,isNotClosingBraceToken:D,isNotClosingBracketToken:k,isNotClosingParenToken:C,isNotColonToken:w,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=xt,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=x,r.isNotClosingBraceToken=D,r.isNotClosingBracketToken=k,r.isNotClosingParenToken=C,r.isNotColonToken=w,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}(am)),am}var om,XP;function Yo(){return XP||(XP=1,om=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.")}}),om}var qo={},YP;function Ho(){return YP||(YP=1,qo.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},qo.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},qo.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}),qo}var lm,HP;function F4(){if(HP)return lm;HP=1;let r=Yo(),e=Ho();return lm=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)}},lm}var um,KP;function B4(){if(KP)return um;KP=1;let r=Yo(),{getLastIndex:e,getFirstIndex:t}=Ho();return um=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}},um}var cm,JP;function FO(){if(JP)return cm;JP=1;let r=Yo();return cm=class extends r{constructor(t){super(),this.cursor=t}moveNext(){let t=this.cursor.moveNext();return this.current=this.cursor.current,t}},cm}var fm,eT;function N4(){if(eT)return fm;eT=1;let r=FO();return fm=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}},fm}var pm,tT;function L4(){if(tT)return pm;tT=1;let r=Yo(),{getFirstIndex:e,search:t}=Ho();return pm=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}},dm}var mm,sT;function M4(){if(sT)return mm;sT=1;let r=FO();return mm=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()}},mm}var gm,iT;function j4(){if(iT)return gm;iT=1;let r=F4(),e=B4(),t=N4(),s=L4(),n=BO(),i=$4(),a=M4();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 x=this.createBaseCursor(u,c,p,h,f,d);return m&&(x=new t(x,m)),g>=1&&(x=new a(x,g)),y>=0&&(x=new i(x,y)),x}}return gm={forward:new l(n,s),backward:new l(e,r)},gm}var ym,aT;function q4(){if(aT)return ym;aT=1;let r=BO();return ym=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)}},ym}var bm,oT;function Q4(){if(oT)return bm;oT=1;let r=Xo,{isCommentToken:e}=hr(),t=j4(),s=BO(),n=q4(),i=Ho(),a=Symbol("tokens"),l=Symbol("comments"),o=Symbol("indexMap");function u(d,m){let g=Object.create(null),y=0,x=0,v,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,x,v,w,C,O,-1)}function p(d,m,g,y,x,v,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,x,v,w,E,0,C?O:-1)}function h(d,m,g,y,x,v,S){return typeof v>"u"&&typeof S>"u"?new s(d,m,g,y,x):typeof v=="number"||typeof v>"u"?new n(d,m,g,y,x,v|0,S|0):p(t.forward,d,m,g,y,x,v)}function f(d){let m=[],g=d.getOneToken();for(;g&&e(g);)m.push(g),g=d.getOneToken();return m}return bm=class{constructor(m,g){this[a]=m,this[l]=g,this[o]=u(m,g)}getTokenByRangeStart(m,g){let y=g&&g.includeComments,x=t.forward.createBaseCursor(this[a],this[l],this[o],m,-1,y).getOneToken();return x&&x.range[0]===m?x: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]; @@ -65,83 +65,83 @@ 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};`}},vm}var Om,cT;function NO(){if(cT)return Om;cT=1;let r=YB();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 Sm=i,Sm}var Em,pT;function W4(){if(pT)return Em;pT=1;let r=NO(),e=V4();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?(v(E.defaultSegments,E.defaultBodySegments),S(this,_,E.defaultBodySegments)):A.add(_));for(let B=0;B0&&E[0].reachable&&this.returnedForkContext.add(E)}}return Em=O,Em}var wm,hT;function HB(){if(hT)return wm;hT=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 wm=r,wm}var Cm,dT;function Z4(){if(dT)return Cm;dT=1;let r=W4(),e=HB();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,x={skip(){g.add(f)},break(){y=!0}};function v(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(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,x),f===u&&x.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 x(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 v(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,x(this,O),this.original.leaveNode(O),v(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 km=S,km}var Am,gT;function KB(){return gT||(gT=1,Am=()=>{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)}})}),Am}var Pm={exports:{}},Tm={exports:{}},Dm,yT;function G4(){if(yT)return Dm;yT=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=v?v.concat():[];return y=this,S.push.apply(S,arguments)thrown`,l=null}),`${o};`}},vm}var Om,cT;function NO(){if(cT)return Om;cT=1;let r=YB();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 Sm=i,Sm}var Em,pT;function V4(){if(pT)return Em;pT=1;let r=NO(),e=U4();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?(v(E.defaultSegments,E.defaultBodySegments),S(this,_,E.defaultBodySegments)):A.add(_));for(let B=0;B0&&E[0].reachable&&this.returnedForkContext.add(E)}}return Em=O,Em}var wm,hT;function HB(){if(hT)return wm;hT=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 wm=r,wm}var Cm,dT;function W4(){if(dT)return Cm;dT=1;let r=V4(),e=HB();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,x={skip(){g.add(f)},break(){y=!0}};function v(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(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,x),f===u&&x.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 x(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 v(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,x(this,O),this.original.leaveNode(O),v(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 km=S,km}var Am,gT;function KB(){return gT||(gT=1,Am=()=>{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)}})}),Am}var Pm={exports:{}},Tm={exports:{}},Dm,yT;function z4(){if(yT)return Dm;yT=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=v?v.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()})},Rm={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(x){return d.length>1?function(){var v=x?x.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,x=Math.cos,v=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))}),Fm={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:x,acos:S,asin:v,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"),$m.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}}},jm}var qm,DT;function sV(){if(DT)return qm;DT=1;let{isCommentToken:r}=hr(),e=U4(),t=kc(),s=RO(),n=XB(),{directivesPattern:i}=Ac(),a=z4(),l=KB(),o=tN(),u=$B(),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 x(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 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,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");v(_,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 qm=k,qm}var Qm,_T;function iV(){return _T||(_T=1,Qm={SourceCode:sV()}),Qm}var Um,IT;function Pc(){return IT||(IT=1,Um=r=>{if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Um}var Vm,RT;function aV(){if(RT)return Vm;RT=1;let r=Pc(),{Legacy:{ConfigOps:e}}=IO();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),x=y[0],v=h+y.index,S=v+x.length,w=x.indexOf(","),O=x.lastIndexOf(","),C,E;return w!==O?(C=v+w,E=v+O):(C=v,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=[],x=0;for(;x0){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:x})=>{let{parentDirective:v,type:S,line:w,column:O}=x,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"?v.node.loc.start.line:w,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 Vm=({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 x=o({problems:p,directives:m,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y}),v=o({problems:x.problems,directives:g,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y});return d!=="off"?v.problems.concat(x.unusedDirectives).concat(v.unusedDirectives).sort(t):v.problems},Vm}function Zo(r){return(Zo=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 LO(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)||rN(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 oV(r){return function(e){if(Array.isArray(e))return sO(e)}(r)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(r)||rN(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 rN(r,e){if(r){if(typeof r=="string")return sO(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)?sO(r,e):void 0}}function sO(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,s=new Array(e);t=0;--w)if(v[w].node===S)return!0;return!1}function y(v,S){return new f().traverse(v,S)}function x(v,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]>v.range[0]}),v.extendedRange=[v.range[0],v.range[1]],w!==S.length&&(v.extendedRange[1]=S[w].range[0]),(w-=1)>=0&&(v.extendedRange[0]=S[w].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,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(v,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(v,S){return new f().replace(v,S)},s.attachComments=function(v,S,w){var O,C,E,k,A=[];if(!v.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(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)}),lV=nN(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),x=X("!",!1),v=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,xe){switch(xe){case"b":return"\b";case"f":return"\f";case"n":return` -`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return xe}}))};var Ie},V=X("'",!1),ae=/^[^\\']/,se=ne(["\\","'"],!0,!1),ve=/^[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),wt=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),Ct=X("expression",!0),xt=X("declaration",!0),Dt=X("function",!0),_t=X("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 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=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,xe,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=(xe=We).length===1?xe[0]:{type:"matches",selectors:xe}:(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,xe=De[We];if(xe)return W=xe.nextPos,xe.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,xe=30*W+2,re=De[xe];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[xe]={nextPos:W,result:Oe},Oe}function de(){var Oe,Ie,We,xe=30*W+3,re=De[xe];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[xe]={nextPos:W,result:Oe},Oe)}function we(){var Oe,Ie,We,xe,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=[],xe=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?xe=re=[re,Y,fe,Se]:(W=xe,xe=o)):(W=xe,xe=o);xe!==o;)We.push(xe),xe=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?xe=re=[re,Y,fe,Se]:(W=xe,xe=o)):(W=xe,xe=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,xe,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=[],xe=W,(re=de())!==o&&(Y=ue())!==o?xe=re=[re,Y]:(W=xe,xe=o);xe!==o;)We.push(xe),xe=W,(re=de())!==o&&(Y=ue())!==o?xe=re=[re,Y]:(W=xe,xe=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,xe,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(x)),Ie===o&&(Ie=null),Ie!==o){if(We=[],(xe=Te())!==o)for(;xe!==o;)We.push(xe),xe=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 xe,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}),xe=re,De[Y]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe=30*W+9,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(xe=W,t.charCodeAt(W)===35?(re="#",W++):(re=o,ce(S)),re===o&&(re=null),re!==o&&(Y=ie())!==o?xe=re={type:"identifier",value:Y}:(W=xe,xe=o),De[fe]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se=30*W+10,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(xe=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(x)),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=[],ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));Qe!==o;)Xe.push(Qe),ve.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=[],ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H)),Qe!==o)for(;Qe!==o;)Xe.push(Qe),ve.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?xe=re=Y:(W=xe,xe=o)):(W=xe,xe=o),De[Se]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se,Ee,ze,Ke,mt=30*W+21,Ot=De[mt];if(Ot)return W=Ot.nextPos,Ot.result;if(xe=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)},xe=re):(W=xe,xe=o)}else W=xe,xe=o;else W=xe,xe=o;return De[mt]={nextPos:W,result:xe},xe}())===o&&(Oe=function(){var xe,re,Y,fe,Se=30*W+22,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(xe=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?xe=re={type:"not",selectors:Y}:(W=xe,xe=o)):(W=xe,xe=o),De[Se]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se=30*W+23,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(xe=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?xe=re={type:"matches",selectors:Y}:(W=xe,xe=o)):(W=xe,xe=o),De[Se]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se=30*W+24,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(xe=W,t.substr(W,5)===":has("?(re=":has(",W+=5):(re=o,ce(wt)),re!==o&&J()!==o&&(Y=we())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?xe=re={type:"has",selectors:Y}:(W=xe,xe=o)):(W=xe,xe=o),De[Se]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,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)),xe=re,De[Y]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,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)),xe=re,De[Y]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se,Ee=30*W+27,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(xe=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)),xe=re):(W=xe,xe=o)):(W=xe,xe=o)}else W=xe,xe=o;else W=xe,xe=o;return De[Ee]={nextPos:W,result:xe},xe}())===o&&(Oe=function(){var xe,re,Y,fe,Se,Ee=30*W+28,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(xe=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=Fe(parseInt(Y.join(""),10)),xe=re):(W=xe,xe=o)):(W=xe,xe=o)}else W=xe,xe=o;else W=xe,xe=o;return De[Ee]={nextPos:W,result:xe},xe}())===o&&(Oe=function(){var xe,re,Y,fe=30*W+29,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(xe=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(xt)),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?xe=re={type:"class",name:Y}:(W=xe,xe=o)):(W=xe,xe=o),De[fe]={nextPos:W,result:xe},xe)}()),De[Ie]={nextPos:W,result:Oe},Oe)}function Be(){var Oe,Ie,We,xe,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=[],xe=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?xe=re=[re,Y]:(W=xe,xe=o);xe!==o;)We.push(xe),xe=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?xe=re=[re,Y]:(W=xe,xe=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)&&BT(C,d,E,"LEFT_SIDE",k)||r.left.subject&&d(C,E,k)&&BT(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)&&NT(C,g,E,"LEFT_SIDE",k)||r.right.subject&&g(C,E,k)&&NT(C,y,E,"RIGHT_SIDE",k)};case"nth-child":var x=r.index.value,v=Er(r.right);return function(C,E,k){return v(C,E,k)&<(C,E,x,k)};case"nth-last-child":var S=-r.index.value,w=Er(r.right);return function(C,E,k){return w(C,E,k)&<(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 $O(r,e){var t=r.type;return e&&e.visitorKeys&&e.visitorKeys[t]?e.visitorKeys[t]:mc.VisitorKeys[t]?mc.VisitorKeys[t]:e&&typeof e.fallback=="function"?e.fallback(r):Object.keys(r).filter(function(s){return s!=="type"})}function iO(r){return r!==null&&Zo(r)==="object"&&typeof r.type=="string"}function BT(r,e,t,s,n){var i=LO(t,1)[0];if(!i)return!1;for(var a=$O(i,n),l=0;l0&&iO(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(x=>{y.has(x)||y.set(x,[]),y.get(x).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 Gm={getPlaceholderMatcher:r,interpolate:e},Gm}var Xm,qT;function pV(){if(qT)return Xm;qT=1;let r=Xo,e=cV(),{interpolate:t}=fV();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],x=d.at(-1).range[1],v="",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&&(v+=g.slice(Math.max(0,y,S),w.range[0])),v+=w.text,S=w.range[1];return v+=g.slice(Math.max(0,y,S),x),{range:[y,x],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 x=y.desc||g[y.messageId];return{...y,desc:t(x,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 Xm=function(m){return(...g)=>{let y=s(...g),x=m.messageIds;n(y);let v;if(y.messageId){if(!x)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(!x||!Object.hasOwn(x,S))throw new TypeError(`context.report() called with a messageId of '${S}' which is not present in the 'messages' config: ${JSON.stringify(x,null,2)}`);v=x[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,x),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,x)})}},Xm}function hV(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 Ym,QT;function dV(){if(QT)return Ym;QT=1;let r=wi()("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}}),Ym={LazyLoadingRuleMap:e},Ym}var Hm={exports:{}},Qo={},Km={exports:{}},UT;function mV(){return UT||(UT=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}Km.exports={isExpression:r,isStatement:t,isIterationStatement:e,isSourceElement:s,isProblematicIfStatement:i,trailingStatement:n}}()),Km.exports}var Jm={exports:{}},VT;function oN(){return VT||(VT=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),x=String.fromCharCode((g-65536)%1024+56320);return y+x}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))}Jm.exports={isDecimalDigit:a,isHexDigit:l,isOctalDigit:o,isWhiteSpace:u,isLineTerminator:c,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:d,isIdentifierPartES6:m}}()),Jm.exports}var eg={exports:{}},WT;function gV(){return WT||(WT=1,function(){var r=oN();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)}eg.exports={isKeywordES5:t,isKeywordES6:s,isReservedWordES5:n,isReservedWordES6:i,isRestrictedWord:a,isIdentifierNameES5:l,isIdentifierNameES6:u,isIdentifierES5:c,isIdentifierES6:p}}()),eg.exports}var ZT;function lN(){return ZT||(ZT=1,function(){Qo.ast=mV(),Qo.code=oN(),Qo.keyword=gV()}()),Qo}var tg,zT;function uN(){return zT||(zT=1,tg={LATEST_ECMA_VERSION:2024}),tg}var GT;function Pe(){return GT||(GT=1,function(r){let{KEYS:e}=PO(),t=lN(),s=Cc(),n=Pc(),{breakableTypePattern:i,createGlobalLinebreakMatcher:a,lineBreakPattern:l,shebangPattern:o}=kc(),u=XB(),{LATEST_ECMA_VERSION:c}=uN(),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,x=/^(?: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()})},Rm={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(x){return d.length>1?function(){var v=x?x.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,x=Math.cos,v=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))}),Fm={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:x,acos:S,asin:v,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"),$m.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}}},jm}var qm,DT;function nV(){if(DT)return qm;DT=1;let{isCommentToken:r}=hr(),e=Q4(),t=kc(),s=RO(),n=XB(),{directivesPattern:i}=Ac(),a=Z4(),l=KB(),o=tN(),u=$B(),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 x(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 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,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");v(_,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 qm=k,qm}var Qm,_T;function sV(){return _T||(_T=1,Qm={SourceCode:nV()}),Qm}var Um,IT;function Pc(){return IT||(IT=1,Um=r=>{if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Um}var Vm,RT;function iV(){if(RT)return Vm;RT=1;let r=Pc(),{Legacy:{ConfigOps:e}}=IO();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),x=y[0],v=h+y.index,S=v+x.length,w=x.indexOf(","),O=x.lastIndexOf(","),C,E;return w!==O?(C=v+w,E=v+O):(C=v,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=[],x=0;for(;x0){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:x})=>{let{parentDirective:v,type:S,line:w,column:O}=x,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"?v.node.loc.start.line:w,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 Vm=({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 x=o({problems:p,directives:m,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y}),v=o({problems:x.problems,directives:g,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y});return d!=="off"?v.problems.concat(x.unusedDirectives).concat(v.unusedDirectives).sort(t):v.problems},Vm}function Zo(r){return(Zo=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 LO(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)||rN(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 aV(r){return function(e){if(Array.isArray(e))return sO(e)}(r)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(r)||rN(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 rN(r,e){if(r){if(typeof r=="string")return sO(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)?sO(r,e):void 0}}function sO(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,s=new Array(e);t=0;--w)if(v[w].node===S)return!0;return!1}function y(v,S){return new f().traverse(v,S)}function x(v,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]>v.range[0]}),v.extendedRange=[v.range[0],v.range[1]],w!==S.length&&(v.extendedRange[1]=S[w].range[0]),(w-=1)>=0&&(v.extendedRange[0]=S[w].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,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(v,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(v,S){return new f().replace(v,S)},s.attachComments=function(v,S,w){var O,C,E,k,A=[];if(!v.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(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)}),oV=nN(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),x=X("!",!1),v=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,xe){switch(xe){case"b":return"\b";case"f":return"\f";case"n":return` +`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return xe}}))};var Ie},V=X("'",!1),ae=/^[^\\']/,se=ne(["\\","'"],!0,!1),ve=/^[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),wt=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),Ct=X("expression",!0),xt=X("declaration",!0),Dt=X("function",!0),_t=X("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 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=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,xe,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=(xe=We).length===1?xe[0]:{type:"matches",selectors:xe}:(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,xe=De[We];if(xe)return W=xe.nextPos,xe.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,xe=30*W+2,re=De[xe];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[xe]={nextPos:W,result:Oe},Oe}function de(){var Oe,Ie,We,xe=30*W+3,re=De[xe];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[xe]={nextPos:W,result:Oe},Oe)}function we(){var Oe,Ie,We,xe,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=[],xe=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?xe=re=[re,Y,fe,Se]:(W=xe,xe=o)):(W=xe,xe=o);xe!==o;)We.push(xe),xe=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?xe=re=[re,Y,fe,Se]:(W=xe,xe=o)):(W=xe,xe=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,xe,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=[],xe=W,(re=de())!==o&&(Y=ue())!==o?xe=re=[re,Y]:(W=xe,xe=o);xe!==o;)We.push(xe),xe=W,(re=de())!==o&&(Y=ue())!==o?xe=re=[re,Y]:(W=xe,xe=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,xe,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(x)),Ie===o&&(Ie=null),Ie!==o){if(We=[],(xe=Te())!==o)for(;xe!==o;)We.push(xe),xe=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 xe,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}),xe=re,De[Y]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe=30*W+9,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(xe=W,t.charCodeAt(W)===35?(re="#",W++):(re=o,ce(S)),re===o&&(re=null),re!==o&&(Y=ie())!==o?xe=re={type:"identifier",value:Y}:(W=xe,xe=o),De[fe]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se=30*W+10,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(xe=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(x)),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=[],ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));Qe!==o;)Xe.push(Qe),ve.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=[],ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H)),Qe!==o)for(;Qe!==o;)Xe.push(Qe),ve.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?xe=re=Y:(W=xe,xe=o)):(W=xe,xe=o),De[Se]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se,Ee,ze,Ke,mt=30*W+21,Ot=De[mt];if(Ot)return W=Ot.nextPos,Ot.result;if(xe=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)},xe=re):(W=xe,xe=o)}else W=xe,xe=o;else W=xe,xe=o;return De[mt]={nextPos:W,result:xe},xe}())===o&&(Oe=function(){var xe,re,Y,fe,Se=30*W+22,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(xe=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?xe=re={type:"not",selectors:Y}:(W=xe,xe=o)):(W=xe,xe=o),De[Se]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se=30*W+23,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(xe=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?xe=re={type:"matches",selectors:Y}:(W=xe,xe=o)):(W=xe,xe=o),De[Se]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se=30*W+24,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(xe=W,t.substr(W,5)===":has("?(re=":has(",W+=5):(re=o,ce(wt)),re!==o&&J()!==o&&(Y=we())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?xe=re={type:"has",selectors:Y}:(W=xe,xe=o)):(W=xe,xe=o),De[Se]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,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)),xe=re,De[Y]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,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)),xe=re,De[Y]={nextPos:W,result:xe},xe)}())===o&&(Oe=function(){var xe,re,Y,fe,Se,Ee=30*W+27,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(xe=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)),xe=re):(W=xe,xe=o)):(W=xe,xe=o)}else W=xe,xe=o;else W=xe,xe=o;return De[Ee]={nextPos:W,result:xe},xe}())===o&&(Oe=function(){var xe,re,Y,fe,Se,Ee=30*W+28,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(xe=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=Fe(parseInt(Y.join(""),10)),xe=re):(W=xe,xe=o)):(W=xe,xe=o)}else W=xe,xe=o;else W=xe,xe=o;return De[Ee]={nextPos:W,result:xe},xe}())===o&&(Oe=function(){var xe,re,Y,fe=30*W+29,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(xe=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(xt)),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?xe=re={type:"class",name:Y}:(W=xe,xe=o)):(W=xe,xe=o),De[fe]={nextPos:W,result:xe},xe)}()),De[Ie]={nextPos:W,result:Oe},Oe)}function Be(){var Oe,Ie,We,xe,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=[],xe=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?xe=re=[re,Y]:(W=xe,xe=o);xe!==o;)We.push(xe),xe=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?xe=re=[re,Y]:(W=xe,xe=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)&&BT(C,d,E,"LEFT_SIDE",k)||r.left.subject&&d(C,E,k)&&BT(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)&&NT(C,g,E,"LEFT_SIDE",k)||r.right.subject&&g(C,E,k)&&NT(C,y,E,"RIGHT_SIDE",k)};case"nth-child":var x=r.index.value,v=Er(r.right);return function(C,E,k){return v(C,E,k)&<(C,E,x,k)};case"nth-last-child":var S=-r.index.value,w=Er(r.right);return function(C,E,k){return w(C,E,k)&<(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 $O(r,e){var t=r.type;return e&&e.visitorKeys&&e.visitorKeys[t]?e.visitorKeys[t]:mc.VisitorKeys[t]?mc.VisitorKeys[t]:e&&typeof e.fallback=="function"?e.fallback(r):Object.keys(r).filter(function(s){return s!=="type"})}function iO(r){return r!==null&&Zo(r)==="object"&&typeof r.type=="string"}function BT(r,e,t,s,n){var i=LO(t,1)[0];if(!i)return!1;for(var a=$O(i,n),l=0;l0&&iO(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(x=>{y.has(x)||y.set(x,[]),y.get(x).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 Gm={getPlaceholderMatcher:r,interpolate:e},Gm}var Xm,qT;function fV(){if(qT)return Xm;qT=1;let r=Xo,e=uV(),{interpolate:t}=cV();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],x=d.at(-1).range[1],v="",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&&(v+=g.slice(Math.max(0,y,S),w.range[0])),v+=w.text,S=w.range[1];return v+=g.slice(Math.max(0,y,S),x),{range:[y,x],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 x=y.desc||g[y.messageId];return{...y,desc:t(x,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 Xm=function(m){return(...g)=>{let y=s(...g),x=m.messageIds;n(y);let v;if(y.messageId){if(!x)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(!x||!Object.hasOwn(x,S))throw new TypeError(`context.report() called with a messageId of '${S}' which is not present in the 'messages' config: ${JSON.stringify(x,null,2)}`);v=x[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,x),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,x)})}},Xm}function pV(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 Ym,QT;function hV(){if(QT)return Ym;QT=1;let r=wi()("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}}),Ym={LazyLoadingRuleMap:e},Ym}var Hm={exports:{}},Qo={},Km={exports:{}},UT;function dV(){return UT||(UT=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}Km.exports={isExpression:r,isStatement:t,isIterationStatement:e,isSourceElement:s,isProblematicIfStatement:i,trailingStatement:n}}()),Km.exports}var Jm={exports:{}},VT;function oN(){return VT||(VT=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),x=String.fromCharCode((g-65536)%1024+56320);return y+x}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))}Jm.exports={isDecimalDigit:a,isHexDigit:l,isOctalDigit:o,isWhiteSpace:u,isLineTerminator:c,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:d,isIdentifierPartES6:m}}()),Jm.exports}var eg={exports:{}},WT;function mV(){return WT||(WT=1,function(){var r=oN();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)}eg.exports={isKeywordES5:t,isKeywordES6:s,isReservedWordES5:n,isReservedWordES6:i,isRestrictedWord:a,isIdentifierNameES5:l,isIdentifierNameES6:u,isIdentifierES5:c,isIdentifierES6:p}}()),eg.exports}var ZT;function lN(){return ZT||(ZT=1,function(){Qo.ast=dV(),Qo.code=oN(),Qo.keyword=mV()}()),Qo}var tg,zT;function uN(){return zT||(zT=1,tg={LATEST_ECMA_VERSION:2024}),tg}var GT;function Pe(){return GT||(GT=1,function(r){let{KEYS:e}=PO(),t=lN(),s=Cc(),n=Pc(),{breakableTypePattern:i,createGlobalLinebreakMatcher:a,lineBreakPattern:l,shebangPattern:o}=kc(),u=XB(),{LATEST_ECMA_VERSION:c}=uN(),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,x=/^(?:eslint[- ]|(?:globals?|exported) )/u,v=new Set([`\r `,"\r",` -`,"\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 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=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 wt(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 Ct(L){return L.value==="}"&&L.type==="Punctuator"}function xt(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 xe=Oe.getNodeByRangeIndex(We.range[0]);if(Ve(We))return!Fe.has(xe.type);if(Ct(We))return xe.type==="BlockStatement"&&xe.parent.type==="FunctionExpression"||xe.type==="ClassBody"&&xe.parent.type==="ClassExpression"||xe.type==="ObjectExpression";if(Te.has(We.type)){if(L.has(xe.parent.type))return!1;let re=We.value,Y=Be[re];return xe.type!==Y}return We.type==="String"?!ue.has(xe.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:R,isArrayFromMethod:$,isParenthesised:be,createGlobalLinebreakMatcher:a,equalTokens:W,isArrowToken:qe,isClosingBraceToken:Ct,isClosingBracketToken:it,isClosingParenToken:Ve,isColonToken:G,isCommaToken:rt,isCommentToken:xt,isDotToken:ht,isQuestionDotToken:pt,isKeywordToken:Dt,isNotClosingBraceToken:K(Ct),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(wt),isOpeningBraceToken:st,isOpeningBracketToken:et,isOpeningParenToken:Ce,isSemicolonToken:wt,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"&&x.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:vt,isCoalesceExpression:Ye,isMixedLogicalAndCoalesceExpressions:Kt,isNullLiteral:j,getStaticStringValue:N,getStaticPropertyName:F,skipChainExpression:U,isSpecificId:ae,isSpecificMemberAccess:se,equalLiteralValue:ve,isSameReference:H,isLogicalAssignmentOperator:De,getSwitchCaseColonToken:X,getModuleExportName:ne,isConstant:Z,isTopLevelExpressionStatement:J,isDirective:ie,isStartOfExpressionStatement:de,needsPrecedingSemicolon:we}}(Hm)),Hm.exports}var rg,XT;function yV(){if(XT)return rg;XT=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 x(S){let w=S.body.filter(O=>O.type==="MethodDefinition");d(w.filter(O=>O.static)),d(w.filter(O=>!O.static))}let v={};return(u||o)&&(v.ObjectExpression=y,c&&(v.ClassBody=x)),v}},rg}var ng,YT;function bV(){if(YT)return ng;YT=1;let r=Pe();return ng={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 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=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 wt(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 Ct(L){return L.value==="}"&&L.type==="Punctuator"}function xt(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 xe=Oe.getNodeByRangeIndex(We.range[0]);if(Ve(We))return!Fe.has(xe.type);if(Ct(We))return xe.type==="BlockStatement"&&xe.parent.type==="FunctionExpression"||xe.type==="ClassBody"&&xe.parent.type==="ClassExpression"||xe.type==="ObjectExpression";if(Te.has(We.type)){if(L.has(xe.parent.type))return!1;let re=We.value,Y=Be[re];return xe.type!==Y}return We.type==="String"?!ue.has(xe.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:R,isArrayFromMethod:$,isParenthesised:be,createGlobalLinebreakMatcher:a,equalTokens:W,isArrowToken:qe,isClosingBraceToken:Ct,isClosingBracketToken:it,isClosingParenToken:Ve,isColonToken:G,isCommaToken:rt,isCommentToken:xt,isDotToken:ht,isQuestionDotToken:pt,isKeywordToken:Dt,isNotClosingBraceToken:K(Ct),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(wt),isOpeningBraceToken:st,isOpeningBracketToken:et,isOpeningParenToken:Ce,isSemicolonToken:wt,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"&&x.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:vt,isCoalesceExpression:Ye,isMixedLogicalAndCoalesceExpressions:Kt,isNullLiteral:j,getStaticStringValue:N,getStaticPropertyName:F,skipChainExpression:U,isSpecificId:ae,isSpecificMemberAccess:se,equalLiteralValue:ve,isSameReference:H,isLogicalAssignmentOperator:De,getSwitchCaseColonToken:X,getModuleExportName:ne,isConstant:Z,isTopLevelExpressionStatement:J,isDirective:ie,isStartOfExpressionStatement:de,needsPrecedingSemicolon:we}}(Hm)),Hm.exports}var rg,XT;function gV(){if(XT)return rg;XT=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 x(S){let w=S.body.filter(O=>O.type==="MethodDefinition");d(w.filter(O=>O.static)),d(w.filter(O=>!O.static))}let v={};return(u||o)&&(v.ObjectExpression=y,c&&(v.ClassBody=x)),v}},rg}var ng,YT;function yV(){if(YT)return ng;YT=1;let r=Pe();return ng={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}),x=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!==x.loc.start.line?(r.isTokenOnSameLine(d,x)&&l(c,d),r.isTokenOnSameLine(v,m)&&o(c,m)):(r.isTokenOnSameLine(d,x)||i(c,d),r.isTokenOnSameLine(v,m)||a(c,m))}return{ArrayPattern:u,ArrayExpression:u}}},ng}var sg,HT;function xV(){if(HT)return sg;HT=1;let r=Pe();return sg={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),x=f.elements[0],v=f.elements.at(-1),S=i.objectsInArraysException&&c(x)||i.arraysInArraysException&&p(x)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced,w=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)&&(w&&!s.isSpaceBetweenTokens(y,g)&&u(f,g),!w&&s.isSpaceBetweenTokens(y,g)&&l(f,g))}return{ArrayPattern:h,ArrayExpression:h}}},sg}var ig,KT;function vV(){if(KT)return ig;KT=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 ig={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}}},ig}var ag,JT;function OV(){if(JT)return ag;JT=1;let r=Pe();return ag={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 x=t.getFirstTokenBetween(y,m,r.isCommaToken),v=t.getTokenBefore(x),S=t.getTokenAfter(x);d?r.isTokenOnSameLine(v,S)&&a(S):r.isTokenOnSameLine(v,S)||i(S)})}return{ArrayPattern:l,ArrayExpression:l}}},ag}var og,eD;function SV(){if(eD)return og;eD=1;let r=Pe();return og={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 x=[];if(m.length!==1||m[0].type!=="ReturnStatement"||!m[0].argument||u(l.getTokenAfter(d)))return x;let v=l.getFirstToken(d),S=l.getLastToken(d),w=l.getFirstToken(m[0],1),O=l.getLastToken(m[0]);return l.commentsExistBetween(v,w)||l.commentsExistBetween(O,S)?x.push(y.remove(v),y.remove(S),y.remove(l.getTokenAfter(v))):x.push(y.removeRange([v.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)||x.push(y.insertTextBefore(w,"("),y.insertTextAfter(O,")"))),r.isSemicolonToken(O)&&x.push(y.remove(O)),x}})}}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),[x,v]=l.getTokensAfter(y,{count:2}),S=l.getLastToken(f),w=null;if(r.isOpeningParenToken(x)&&r.isOpeningBraceToken(v)){let O=l.getNodeByRangeIndex(v.range[0]);O.type==="ObjectExpression"&&(w=O)}if(w){let O=x,C=v;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(x,"{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}}}},og}var lg,tD;function EV(){if(tD)return lg;tD=1;let r=Pe();function e(t){return t.body.type==="BlockStatement"}return lg={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]])}})}}}},lg}var ug,rD;function wV(){if(rD)return ug;rD=1;let r=Pe();return ug={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}}},ug}var cg,nD;function CV(){return nD||(nD=1,cg={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}}}),cg}var fg,sD;function kV(){if(sD)return fg;sD=1;let r=Pe();return fg={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}}},fg}var pg,iD;function AV(){if(iD)return pg;iD=1;let r=Pe();return pg={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}),x=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!==x.loc.start.line?(r.isTokenOnSameLine(d,x)&&l(c,d),r.isTokenOnSameLine(v,m)&&o(c,m)):(r.isTokenOnSameLine(d,x)||i(c,d),r.isTokenOnSameLine(v,m)||a(c,m))}return{ArrayPattern:u,ArrayExpression:u}}},ng}var sg,HT;function bV(){if(HT)return sg;HT=1;let r=Pe();return sg={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),x=f.elements[0],v=f.elements.at(-1),S=i.objectsInArraysException&&c(x)||i.arraysInArraysException&&p(x)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced,w=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)&&(w&&!s.isSpaceBetweenTokens(y,g)&&u(f,g),!w&&s.isSpaceBetweenTokens(y,g)&&l(f,g))}return{ArrayPattern:h,ArrayExpression:h}}},sg}var ig,KT;function xV(){if(KT)return ig;KT=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 ig={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}}},ig}var ag,JT;function vV(){if(JT)return ag;JT=1;let r=Pe();return ag={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 x=t.getFirstTokenBetween(y,m,r.isCommaToken),v=t.getTokenBefore(x),S=t.getTokenAfter(x);d?r.isTokenOnSameLine(v,S)&&a(S):r.isTokenOnSameLine(v,S)||i(S)})}return{ArrayPattern:l,ArrayExpression:l}}},ag}var og,eD;function OV(){if(eD)return og;eD=1;let r=Pe();return og={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 x=[];if(m.length!==1||m[0].type!=="ReturnStatement"||!m[0].argument||u(l.getTokenAfter(d)))return x;let v=l.getFirstToken(d),S=l.getLastToken(d),w=l.getFirstToken(m[0],1),O=l.getLastToken(m[0]);return l.commentsExistBetween(v,w)||l.commentsExistBetween(O,S)?x.push(y.remove(v),y.remove(S),y.remove(l.getTokenAfter(v))):x.push(y.removeRange([v.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)||x.push(y.insertTextBefore(w,"("),y.insertTextAfter(O,")"))),r.isSemicolonToken(O)&&x.push(y.remove(O)),x}})}}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),[x,v]=l.getTokensAfter(y,{count:2}),S=l.getLastToken(f),w=null;if(r.isOpeningParenToken(x)&&r.isOpeningBraceToken(v)){let O=l.getNodeByRangeIndex(v.range[0]);O.type==="ObjectExpression"&&(w=O)}if(w){let O=x,C=v;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(x,"{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}}}},og}var lg,tD;function SV(){if(tD)return lg;tD=1;let r=Pe();function e(t){return t.body.type==="BlockStatement"}return lg={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]])}})}}}},lg}var ug,rD;function EV(){if(rD)return ug;rD=1;let r=Pe();return ug={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}}},ug}var cg,nD;function wV(){return nD||(nD=1,cg={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}}}),cg}var fg,sD;function CV(){if(sD)return fg;sD=1;let r=Pe();return fg={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}}},fg}var pg,iD;function kV(){if(iD)return pg;iD=1;let r=Pe();return pg={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))}}}},pg}var hg,aD;function PV(){return aD||(aD=1,hg={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"})}}}}}),hg}var dg,oD;function TV(){if(oD)return dg;oD=1;let r=Pe();return dg={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 x=y.replace(/^_+|_+$/gu,"");return x.includes("_")&&x!==x.toUpperCase()}function p(y){return l.some(x=>y===x||y.match(new RegExp(x,"u")))}function h(y){return!c(y)||p(y)}function f(y){let x=y.parent;switch(x.type){case"AssignmentExpression":case"AssignmentPattern":return x.left===y;case"Property":return x.parent.type==="ObjectPattern"&&x.value===y;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function d(y){let x=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===x;case"ImportSpecifier":return S.local===y&&r.getModuleExportName(S.imported)===x;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 x=o.getScope(y);if(!a){for(let v of x.variables)if(!(v.identifiers.length>0||h(v.name)))for(let S of v.references)g(S.identifier)}for(let v of x.through){let S=v.identifier;h(S.name)||g(S)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](y){for(let x of o.getDeclaredVariables(y)){if(h(x.name))continue;let v=x.identifiers[0];n&&d(v)||m(v);for(let S of x.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 x of o.getDeclaredVariables(y)){if(h(x.name))continue;let v=x.identifiers[0];i&&d(v)||m(v);for(let S of x.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)}}}},dg}var mg,lD;function DV(){if(lD)return mg;lD=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 mg={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(x){let v=f.getTokenBefore(x,{includeComments:!0}),S=f.getTokenAfter(x,{includeComments:!0});return!!(v&&S&&x.loc.start.line===v.loc.end.line&&x.loc.end.line===S.loc.start.line)}function m(x){let v=f.getTokenBefore(x,{includeComments:!0});return!!(v&&["Block","Line"].includes(v.type))}function g(x,v){if(e.test(x.value))return!0;let S=x.value.replace(/\*/gu,"");if(v.ignorePatternRegExp&&v.ignorePatternRegExp.test(S)||v.ignoreInlineComments&&d(x)||v.ignoreConsecutiveComments&&m(x)||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(x){let v=h[x.type];if(!g(x,v)){let w=p==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";c.report({node:null,loc:x.loc,messageId:w,fix(O){let C=x.value.match(n),E=C[0],k=x.range[0]+C.index+2;return O.replaceTextRange([k,k+E.length],p==="always"?E.toLocaleUpperCase():E.toLocaleLowerCase())}})}}return{Program(){f.getAllComments().filter(v=>v.type!=="Shebang").forEach(y)}}}},mg}var gg,uD;function _V(){if(uD)return gg;uD=1;let r=Pe();return gg={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}}}},gg}var yg,cD;function IV(){if(cD)return yg;cD=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 yg={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(x){yield x.remove(y),yield x.insertTextBefore(a.getTokenBefore(y),""),yield x.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(x){yield x.insertTextAfter(y,","),yield x.insertTextBefore(y,""),yield x.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]}}},yg}var bg,fD;function RV(){if(fD)return bg;fD=1;let r=Pe();return bg={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}}},bg}var xg,pD;function FV(){if(pD)return xg;pD=1;let r=Pe();return xg={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),x=m||y;if(r.isCommaToken(g)&&l(d,g,y,x),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}},xg}var vg,hD;function Ci(){if(hD)return vg;hD=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 vg={upperCaseFirst:t,getGraphemeCount:s},vg}var Og,dD;function BV(){if(dD)return Og;dD=1;let r=Pe(),{upperCaseFirst:e}=Ci();return Og={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}})}}}}},Og}var Sg,mD;function NV(){if(mD)return Sg;mD=1;let r=Pe();return Sg={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}},Sg}var Eg,gD;function LV(){if(gD)return Eg;gD=1;let r=Pe(),{upperCaseFirst:e}=Ci();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 Eg={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}}},Eg}var wg,yD;function $V(){return yD||(yD=1,wg={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)}}}}),wg}var Cg,bD;function MV(){if(bD)return Cg;bD=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 Cg={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 x=0;x0}else O=!o(x);else O=!0;return{actual:w,expected:O,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:y,loc:x.loc,messageId:S&&S.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:v},fix:C=>C.replaceText(x,`{${a.getText(x)}}`)}):e.report({node:y,loc:x.loc,messageId:S&&S.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:v},fix(C){let E=y.type==="DoWhileStatement"&&a.getTokenBefore(x).range[1]===x.range[0]&&!r.canTokensBeAdjacent("do",a.getFirstToken(x,{skip:1})),k=a.getFirstToken(x),A=a.getLastToken(x),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(x,(E?" ":"")+_)}}))}}}function g(y){let x=[];for(let v=y;v;v=v.alternate)if(x.push(m(v,v.consequent,"if",{condition:!0})),v.alternate&&v.alternate.type!=="IfStatement"){x.push(m(v,v.alternate,"else"));break}if(i){let v=x.some(S=>S.expected!==null?S.expected:S.actual);x.forEach(S=>{S.expected=v})}return x}return{IfStatement(y){let x=y.parent;x.type==="IfStatement"&&x.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()}}}},kg}var Ag,vD;function qV(){if(vD)return Ag;vD=1;let r=/^no default$/iu;return Ag={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"})}}}}},Ag}var Pg,OD;function QV(){return OD||(OD=1,Pg={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"})}}}}}),Pg}var Tg,SD;function UV(){return SD||(SD=1,Tg={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}}}),Tg}var Dg,ED;function VV(){if(ED)return Dg;ED=1;let r=Pe();return Dg={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}}},Dg}var _g,wD;function MO(){return wD||(wD=1,_g=["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"]),_g}var Ig,CD;function WV(){if(CD)return Ig;CD=1;let r=Pe(),e=MO(),t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,s=new Set(["string","boolean"]);return Ig={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}"]`))}})}}}},Ig}var Rg,kD;function ZV(){return kD||(kD=1,Rg={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],"")}})}}}}}),Rg}var Fg,AD;function zV(){if(AD)return Fg;AD=1;let r=Pe();return Fg={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}=`)}}}},Fg}var Bg,PD;function GV(){if(PD)return Bg;PD=1;let{getStaticValue:r}=hr();return Bg={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)}}}}},Bg}var Ng,TD;function XV(){if(TD)return Ng;TD=1;let r=Pe();return Ng={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 Lg={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,x){return x?x.type==="CallExpression"&&r.isSpecificMemberAccess(x.callee,g,y):!1}function f(g,y){return o==="always"&&g!==y||o==="never"&&g===y}function d(g,y,x,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:x}})}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",x=y?r.getStaticPropertyName(g.left):g.left.name;g.right.id&&x&&s(x)&&f(x,g.right.id.name)&&d(g,x,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,x=g.key.name;if(u&&x==="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)?(x=g.parent.parent.key.name,!g.parent.parent.computed&&f(x,y)&&d(g,x,y,!0)):f(x,y)&&d(g,x,y,!0);else f(x,y)&&d(g,x,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)}}}}},Lg}var $g,_D;function HV(){if(_D)return $g;_D=1;let r=Pe();function e(t){return t&&t.defs[0].type==="FunctionName"}return $g={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}}},$g}var Mg,ID;function KV(){return ID||(ID=1,Mg={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}}),Mg}var jg,RD;function JV(){return RD||(RD=1,jg={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),x=!r.isTokenOnSameLine(d,g),v=!r.isTokenOnSameLine(y,m),S=o(f,x);x&&!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]])}}):!x&&S&&e.report({node:d,messageId:"expectedAfter",fix:w=>w.insertTextAfter(d,` +`)})}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))}}}},pg}var hg,aD;function AV(){return aD||(aD=1,hg={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"})}}}}}),hg}var dg,oD;function PV(){if(oD)return dg;oD=1;let r=Pe();return dg={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 x=y.replace(/^_+|_+$/gu,"");return x.includes("_")&&x!==x.toUpperCase()}function p(y){return l.some(x=>y===x||y.match(new RegExp(x,"u")))}function h(y){return!c(y)||p(y)}function f(y){let x=y.parent;switch(x.type){case"AssignmentExpression":case"AssignmentPattern":return x.left===y;case"Property":return x.parent.type==="ObjectPattern"&&x.value===y;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function d(y){let x=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===x;case"ImportSpecifier":return S.local===y&&r.getModuleExportName(S.imported)===x;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 x=o.getScope(y);if(!a){for(let v of x.variables)if(!(v.identifiers.length>0||h(v.name)))for(let S of v.references)g(S.identifier)}for(let v of x.through){let S=v.identifier;h(S.name)||g(S)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](y){for(let x of o.getDeclaredVariables(y)){if(h(x.name))continue;let v=x.identifiers[0];n&&d(v)||m(v);for(let S of x.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 x of o.getDeclaredVariables(y)){if(h(x.name))continue;let v=x.identifiers[0];i&&d(v)||m(v);for(let S of x.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)}}}},dg}var mg,lD;function TV(){if(lD)return mg;lD=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 mg={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(x){let v=f.getTokenBefore(x,{includeComments:!0}),S=f.getTokenAfter(x,{includeComments:!0});return!!(v&&S&&x.loc.start.line===v.loc.end.line&&x.loc.end.line===S.loc.start.line)}function m(x){let v=f.getTokenBefore(x,{includeComments:!0});return!!(v&&["Block","Line"].includes(v.type))}function g(x,v){if(e.test(x.value))return!0;let S=x.value.replace(/\*/gu,"");if(v.ignorePatternRegExp&&v.ignorePatternRegExp.test(S)||v.ignoreInlineComments&&d(x)||v.ignoreConsecutiveComments&&m(x)||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(x){let v=h[x.type];if(!g(x,v)){let w=p==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";c.report({node:null,loc:x.loc,messageId:w,fix(O){let C=x.value.match(n),E=C[0],k=x.range[0]+C.index+2;return O.replaceTextRange([k,k+E.length],p==="always"?E.toLocaleUpperCase():E.toLocaleLowerCase())}})}}return{Program(){f.getAllComments().filter(v=>v.type!=="Shebang").forEach(y)}}}},mg}var gg,uD;function DV(){if(uD)return gg;uD=1;let r=Pe();return gg={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}}}},gg}var yg,cD;function _V(){if(cD)return yg;cD=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 yg={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(x){yield x.remove(y),yield x.insertTextBefore(a.getTokenBefore(y),""),yield x.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(x){yield x.insertTextAfter(y,","),yield x.insertTextBefore(y,""),yield x.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]}}},yg}var bg,fD;function IV(){if(fD)return bg;fD=1;let r=Pe();return bg={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}}},bg}var xg,pD;function RV(){if(pD)return xg;pD=1;let r=Pe();return xg={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),x=m||y;if(r.isCommaToken(g)&&l(d,g,y,x),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}},xg}var vg,hD;function Ci(){if(hD)return vg;hD=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 vg={upperCaseFirst:t,getGraphemeCount:s},vg}var Og,dD;function FV(){if(dD)return Og;dD=1;let r=Pe(),{upperCaseFirst:e}=Ci();return Og={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}})}}}}},Og}var Sg,mD;function BV(){if(mD)return Sg;mD=1;let r=Pe();return Sg={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}},Sg}var Eg,gD;function NV(){if(gD)return Eg;gD=1;let r=Pe(),{upperCaseFirst:e}=Ci();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 Eg={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}}},Eg}var wg,yD;function LV(){return yD||(yD=1,wg={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)}}}}),wg}var Cg,bD;function $V(){if(bD)return Cg;bD=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 Cg={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 x=0;x0}else O=!o(x);else O=!0;return{actual:w,expected:O,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:y,loc:x.loc,messageId:S&&S.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:v},fix:C=>C.replaceText(x,`{${a.getText(x)}}`)}):e.report({node:y,loc:x.loc,messageId:S&&S.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:v},fix(C){let E=y.type==="DoWhileStatement"&&a.getTokenBefore(x).range[1]===x.range[0]&&!r.canTokensBeAdjacent("do",a.getFirstToken(x,{skip:1})),k=a.getFirstToken(x),A=a.getLastToken(x),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(x,(E?" ":"")+_)}}))}}}function g(y){let x=[];for(let v=y;v;v=v.alternate)if(x.push(m(v,v.consequent,"if",{condition:!0})),v.alternate&&v.alternate.type!=="IfStatement"){x.push(m(v,v.alternate,"else"));break}if(i){let v=x.some(S=>S.expected!==null?S.expected:S.actual);x.forEach(S=>{S.expected=v})}return x}return{IfStatement(y){let x=y.parent;x.type==="IfStatement"&&x.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()}}}},kg}var Ag,vD;function jV(){if(vD)return Ag;vD=1;let r=/^no default$/iu;return Ag={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"})}}}}},Ag}var Pg,OD;function qV(){return OD||(OD=1,Pg={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"})}}}}}),Pg}var Tg,SD;function QV(){return SD||(SD=1,Tg={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}}}),Tg}var Dg,ED;function UV(){if(ED)return Dg;ED=1;let r=Pe();return Dg={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}}},Dg}var _g,wD;function MO(){return wD||(wD=1,_g=["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"]),_g}var Ig,CD;function VV(){if(CD)return Ig;CD=1;let r=Pe(),e=MO(),t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,s=new Set(["string","boolean"]);return Ig={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}"]`))}})}}}},Ig}var Rg,kD;function WV(){return kD||(kD=1,Rg={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],"")}})}}}}}),Rg}var Fg,AD;function ZV(){if(AD)return Fg;AD=1;let r=Pe();return Fg={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}=`)}}}},Fg}var Bg,PD;function zV(){if(PD)return Bg;PD=1;let{getStaticValue:r}=hr();return Bg={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)}}}}},Bg}var Ng,TD;function GV(){if(TD)return Ng;TD=1;let r=Pe();return Ng={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 Lg={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,x){return x?x.type==="CallExpression"&&r.isSpecificMemberAccess(x.callee,g,y):!1}function f(g,y){return o==="always"&&g!==y||o==="never"&&g===y}function d(g,y,x,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:x}})}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",x=y?r.getStaticPropertyName(g.left):g.left.name;g.right.id&&x&&s(x)&&f(x,g.right.id.name)&&d(g,x,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,x=g.key.name;if(u&&x==="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)?(x=g.parent.parent.key.name,!g.parent.parent.computed&&f(x,y)&&d(g,x,y,!0)):f(x,y)&&d(g,x,y,!0);else f(x,y)&&d(g,x,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)}}}}},Lg}var $g,_D;function YV(){if(_D)return $g;_D=1;let r=Pe();function e(t){return t&&t.defs[0].type==="FunctionName"}return $g={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}}},$g}var Mg,ID;function HV(){return ID||(ID=1,Mg={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}}),Mg}var jg,RD;function KV(){return RD||(RD=1,jg={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),x=!r.isTokenOnSameLine(d,g),v=!r.isTokenOnSameLine(y,m),S=o(f,x);x&&!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]])}}):!x&&S&&e.report({node:d,messageId:"expectedAfter",fix:w=>w.insertTextAfter(d,` `)}),v&&!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]])}}):!v&&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 x=0;x<=f.length-2;x++){let v=f[x],S=f[x+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 Vg={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"}))}}}},Vg}var Wg,$D;function s7(){if($D)return Wg;$D=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>x||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)}}}},Wg}var Zg,MD;function i7(){return MD||(MD=1,Zg={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"})}}}}}),Zg}var zg,jD;function a7(){return jD||(jD=1,zg={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}}}),zg}var Gg,qD;function o7(){if(qD)return Gg;qD=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 Gg={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)}}}},Gg}var Xg,QD;function l7(){if(QD)return Xg;QD=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 Xg={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)}}}},Xg}var Yg,UD;function u7(){if(UD)return Yg;UD=1;let{getGraphemeCount:r}=Ci();return Yg={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 x=m?"tooShort":"tooLong";p.type==="PrivateIdentifier"&&(x+="Private"),e.report({node:p,messageId:x,data:{name:h,min:s,max:n}})}}}}},Yg}var Hg,VD;function c7(){return VD||(VD=1,Hg={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(w=>w.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 x(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,w=v.parent,O=w.type==="MemberExpression"?w.parent:w;if(!d(v))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===v.name?m(S)&&x(v):O.type==="AssignmentExpression"&&O.right.type!=="MemberExpression"&&m(S)&&x(v)}else if(w.type==="Property"&&w.parent.type==="ObjectExpression"&&w.key===v&&!w.computed)n&&m(S)&&x(v);else if(w.type==="Property"||w.type==="AssignmentPattern"){if(w.parent&&w.parent.type==="ObjectPattern"){!l&&w.shorthand&&w.value.left&&m(S)&&x(v);let C=w.key.name===w.value.name;if(!C&&w.key===v)return;w.value.name&&m(S)&&!(C&&l)&&x(v)}if(!n&&!w.computed||l&&g(v))return;w.right!==v&&y(O,S)&&x(v)}else f.has(w.type)?w.local&&w.local.name===v.name&&m(S)&&x(v):w.type==="PropertyDefinition"?i&&m(S)&&x(v):y(O,S)&&x(v)},PrivateIdentifier(v){v.parent.type==="PropertyDefinition"&&!i||m(v.name)&&x(v)}}}}),Hg}var Kg,WD;function f7(){if(WD)return Kg;WD=1;let{isCommentToken:r,isNotOpeningParenToken:e}=Pe();return Kg={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)}}},Kg}var Jg,ZD;function p7(){if(ZD)return Jg;ZD=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 Jg={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"}`,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 x(F,U){let V=Array.from(d.getTokenIndent(F)),ae=V.filter(ve=>ve===" ").length,se=V.filter(ve=>ve===" ").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(ve){let H=[F.range[0]-F.loc.start.column,F.range[0]],he=U;return ve.replaceTextRange(H,he)}})}function v(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(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"&&F.length&&!F[0])&&F.forEach((ve,H)=>{if(ve&&(ae==="off"&&m.ignoreToken(se(ve)),H!==0))if(ae==="first"&&d.isFirstTokenOfLine(se(ve)))m.matchOffsetOf(se(F[0]),se(ve));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],ve.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 ve=f.getTokenAfter(F.callee,r.isQuestionDotToken),H=f.getTokensBetween(F.callee,ve,{filter:r.isClosingParenToken}).length,he=H?f.getTokenBefore(F.callee,{skip:H-1}):f.getFirstToken(F.callee),$=f.getTokenBefore(ve),pe=$.loc.end.line===U.loc.start.line?$:he;m.setDesiredOffset(ve,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,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(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),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":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),ve=f.getTokenAfter(ae);!r.isTokenOnSameLine(se,ae)&&ve&&r.isTokenOnSameLine(ae,ve)&&m.setDesiredOffset(ae,f.getFirstToken(F),0)}}},ImportDeclaration(F){if(F.specifiers.some(se=>se.type==="ImportSpecifier")){let se=f.getFirstToken(F,r.isOpeningBraceToken),ve=f.getLastToken(F,r.isClosingBraceToken);O(F.specifiers.filter(H=>H.type==="ImportSpecifier"),se,ve,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,ve=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:ve;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),ve=ae=f.getTokenAfter(F.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(F.key);se!==U&&m.setDesiredOffset(se,U,1)}if(F.value){let se=f.getTokenBefore(F.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(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],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(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),ve=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(ve,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(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 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 x(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 v(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 v(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);x(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)||v(I,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||v(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))}}}},e0}var t0,GD;function d7(){if(GD)return t0;GD=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 t0={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),ve=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,ve)}:K=function(be){return be.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),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||v(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)}}}},n0}var s0,HD;function y7(){if(HD)return s0;HD=1;let r=Pe(),e=MO(),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 x(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:x},$=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");C(ve)}}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 ve=f.getTokenBefore(se.right,r.isNotOpeningParenToken);d.add(ve)}}}},s0}var i0,KD;function b7(){if(KD)return i0;KD=1;let r=Pe();return i0={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"})})}}}},i0}var a0,JD;function x7(){if(JD)return a0;JD=1;let r=Pe();return a0={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?` +`)})}}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 Vg={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"}))}}}},Vg}var Wg,$D;function n7(){if($D)return Wg;$D=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>x||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)}}}},Wg}var Zg,MD;function s7(){return MD||(MD=1,Zg={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"})}}}}}),Zg}var zg,jD;function i7(){return jD||(jD=1,zg={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}}}),zg}var Gg,qD;function a7(){if(qD)return Gg;qD=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 Gg={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)}}}},Gg}var Xg,QD;function o7(){if(QD)return Xg;QD=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 Xg={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)}}}},Xg}var Yg,UD;function l7(){if(UD)return Yg;UD=1;let{getGraphemeCount:r}=Ci();return Yg={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 x=m?"tooShort":"tooLong";p.type==="PrivateIdentifier"&&(x+="Private"),e.report({node:p,messageId:x,data:{name:h,min:s,max:n}})}}}}},Yg}var Hg,VD;function u7(){return VD||(VD=1,Hg={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(w=>w.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 x(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,w=v.parent,O=w.type==="MemberExpression"?w.parent:w;if(!d(v))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===v.name?m(S)&&x(v):O.type==="AssignmentExpression"&&O.right.type!=="MemberExpression"&&m(S)&&x(v)}else if(w.type==="Property"&&w.parent.type==="ObjectExpression"&&w.key===v&&!w.computed)n&&m(S)&&x(v);else if(w.type==="Property"||w.type==="AssignmentPattern"){if(w.parent&&w.parent.type==="ObjectPattern"){!l&&w.shorthand&&w.value.left&&m(S)&&x(v);let C=w.key.name===w.value.name;if(!C&&w.key===v)return;w.value.name&&m(S)&&!(C&&l)&&x(v)}if(!n&&!w.computed||l&&g(v))return;w.right!==v&&y(O,S)&&x(v)}else f.has(w.type)?w.local&&w.local.name===v.name&&m(S)&&x(v):w.type==="PropertyDefinition"?i&&m(S)&&x(v):y(O,S)&&x(v)},PrivateIdentifier(v){v.parent.type==="PropertyDefinition"&&!i||m(v.name)&&x(v)}}}}),Hg}var Kg,WD;function c7(){if(WD)return Kg;WD=1;let{isCommentToken:r,isNotOpeningParenToken:e}=Pe();return Kg={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)}}},Kg}var Jg,ZD;function f7(){if(ZD)return Jg;ZD=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 Jg={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"}`,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 x(F,U){let V=Array.from(d.getTokenIndent(F)),ae=V.filter(ve=>ve===" ").length,se=V.filter(ve=>ve===" ").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(ve){let H=[F.range[0]-F.loc.start.column,F.range[0]],he=U;return ve.replaceTextRange(H,he)}})}function v(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(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"&&F.length&&!F[0])&&F.forEach((ve,H)=>{if(ve&&(ae==="off"&&m.ignoreToken(se(ve)),H!==0))if(ae==="first"&&d.isFirstTokenOfLine(se(ve)))m.matchOffsetOf(se(F[0]),se(ve));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],ve.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 ve=f.getTokenAfter(F.callee,r.isQuestionDotToken),H=f.getTokensBetween(F.callee,ve,{filter:r.isClosingParenToken}).length,he=H?f.getTokenBefore(F.callee,{skip:H-1}):f.getFirstToken(F.callee),$=f.getTokenBefore(ve),pe=$.loc.end.line===U.loc.start.line?$:he;m.setDesiredOffset(ve,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,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(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),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":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),ve=f.getTokenAfter(ae);!r.isTokenOnSameLine(se,ae)&&ve&&r.isTokenOnSameLine(ae,ve)&&m.setDesiredOffset(ae,f.getFirstToken(F),0)}}},ImportDeclaration(F){if(F.specifiers.some(se=>se.type==="ImportSpecifier")){let se=f.getFirstToken(F,r.isOpeningBraceToken),ve=f.getLastToken(F,r.isClosingBraceToken);O(F.specifiers.filter(H=>H.type==="ImportSpecifier"),se,ve,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,ve=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:ve;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),ve=ae=f.getTokenAfter(F.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(F.key);se!==U&&m.setDesiredOffset(se,U,1)}if(F.value){let se=f.getTokenBefore(F.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(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],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(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),ve=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(ve,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(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 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 x(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 v(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 v(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);x(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)||v(I,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||v(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))}}}},e0}var t0,GD;function h7(){if(GD)return t0;GD=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 t0={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),ve=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,ve)}:K=function(be){return be.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),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||v(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)}}}},n0}var s0,HD;function g7(){if(HD)return s0;HD=1;let r=Pe(),e=MO(),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 x(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:x},$=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");C(ve)}}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 ve=f.getTokenBefore(se.right,r.isNotOpeningParenToken);d.add(ve)}}}},s0}var i0,KD;function y7(){if(KD)return i0;KD=1;let r=Pe();return i0={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"})})}}}},i0}var a0,JD;function b7(){if(JD)return a0;JD=1;let r=Pe();return a0={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)})}}}}},a0}var o0,e_;function v7(){if(e_)return o0;e_=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 o0={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 x(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 v(T,R){let j=x(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=x(T);return!!j&&y(j,R)&&j.loc.end.line-T.loc.end.line===1}function w(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 C(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,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),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),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,` +`,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)})}}}}},a0}var o0,e_;function x7(){if(e_)return o0;e_=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 o0={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 x(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 v(T,R){let j=x(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=x(T);return!!j&&y(j,R)&&j.loc.end.line-T.loc.end.line===1}function w(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 C(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,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),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),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})})}}}},o0}var l0,t_;function O7(){if(t_)return l0;t_=1;let r=Pe();return l0={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,` +`)}})}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})})}}}},o0}var l0,t_;function v7(){if(t_)return l0;t_=1;let r=Pe();return l0={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}}},l0}var u0,r_;function S7(){if(r_)return u0;r_=1;let r=Pe(),e={"*":{test:()=>!0},field:{test:t=>t.type==="PropertyDefinition"},method:{test:t=>t.type==="MethodDefinition"}};return u0={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]],` +`):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}}},l0}var u0,r_;function O7(){if(r_)return u0;r_=1;let r=Pe(),e={"*":{test:()=>!0},field:{test:t=>t.type==="PropertyDefinition"},method:{test:t=>t.type==="MethodDefinition"}};return u0={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"&&!v&&!O&&t.report({node:f[d+1],messageId:"always",fix(A){return C?null:A.insertTextAfter(E,` -`)}})}}}}},u0}var c0,n_;function E7(){if(n_)return c0;n_=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 c0={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 x(S,w,O){return O?{...S,fix:w.fix}:{...S,suggest:[w]}}function v(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=v(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(x(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=v(S);yield E.insertTextBefore(k,S.right.operator);let A=v(w.parent),D=d.getTokenAfter(A);yield E.removeRange([w.parent.range[0],D.range[0]])}};p.report(x(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=v(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(x(k,A,D))}}}}},c0}var f0,s_;function w7(){return s_||(s_=1,f0={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++}}}}),f0}var p0,i_;function C7(){return i_||(i_=1,p0={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}}}),p0}var h0,a_;function k7(){if(a_)return h0;a_=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 h0={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 x(_,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 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 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]);v(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,ve=!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}}},h0}var d0,o_;function A7(){if(o_)return d0;o_=1;let r=Pe();function e(t,s){return[...Array(s-t).keys()].map(n=>n+t)}return d0={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}})}}}}},d0}var m0,l_;function P7(){if(l_)return m0;l_=1;let r=Pe(),{upperCaseFirst:e}=Ci(),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 m0={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(x,v,S){let w=S.loc.start,O=S.loc.end,C=w.line===v&&!x.slice(0,w.column).trim(),E=O.line===v&&!x.slice(O.column).trim();return S&&(w.linev||E)}function m(x){return(x.type==="FunctionExpression"||x.type==="ArrowFunctionExpression")&&x.parent&&x.parent.type==="CallExpression"&&x.parent.callee===x}function g(x){return!x.parent||x!==x.parent.value?!1:x.parent.type==="MethodDefinition"?!0:x.parent.type==="Property"?x.parent.method===!0||x.parent.kind==="get"||x.parent.kind==="set":!1}function y(x){let v=g(x)?x.parent:x;if(!h&&m(v))return;let S=0;for(let w=v.loc.start.line-1;wu){let w=e(r.getFunctionNameWithKind(x));i.report({node:v,messageId:"exceed",data:{name:w,lineCount:S,maxLines:u}})}}return{FunctionDeclaration:y,FunctionExpression:y,ArrowFunctionExpression:y}}},m0}var g0,u_;function T7(){return u_||(u_=1,g0={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}}}),g0}var y0,c_;function D7(){if(c_)return y0;c_=1;let r=Pe(),{upperCaseFirst:e}=Ci();return y0={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}}},y0}var b0,f_;function _7(){if(f_)return b0;f_=1;let r=Pe(),{upperCaseFirst:e}=Ci();return b0={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)})}}}},b0}var x0,p_;function I7(){if(p_)return x0;p_=1;let r=Pe();return x0={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}}},x0}var v0,h_;function R7(){if(h_)return v0;h_=1;let r=Pe();return v0={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(x){return/^\s*\*/u.test(x)}function l([x]){if(x.type!=="Block")return!1;let v=x.value.split(r.LINEBREAK_MATCHER);return v.length>0&&v.every((S,w)=>(w===0||w===v.length-1?/^\s*$/u:/^\s*\*/u).test(S))}function o([x]){if(x.type!=="Block")return!1;let v=x.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(x){let v=x.map(({value:S})=>S).filter(S=>S.trim().length).every(S=>S.startsWith(" "));return x.map(({value:S})=>v?S.replace(/^ /u,""):S)}function c(x){let v=x.value.split(r.LINEBREAK_MATCHER).filter((w,O,C)=>!(O===0||O===C.length-1)).map(w=>w.replace(/^\s*$/u,"")),S=v.map(w=>w.replace(/\s*\*/u,"")).filter(w=>w.trim().length).every(w=>w.startsWith(" "));return v.map(w=>w.replace(S?/\s*\* ?/u:/\s*\*/u,""))}function p(x){let v=x.value.split(r.LINEBREAK_MATCHER).map(O=>O.replace(/^\s*$/u,"")),S=`${t.text.slice(x.range[0]-x.loc.start.column,x.range[0])} `,w="";for(let[O,C]of v.entries()){if(!C.trim().length||O===0)continue;let[,E]=C.match(/^(\s*\*?\s*)/u);if(E.lengthw.length&&(w=k)}}return v.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.length1&&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 x(S,w,O){return O?{...S,fix:w.fix}:{...S,suggest:[w]}}function v(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=v(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(x(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=v(S);yield E.insertTextBefore(k,S.right.operator);let A=v(w.parent),D=d.getTokenAfter(A);yield E.removeRange([w.parent.range[0],D.range[0]])}};p.report(x(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=v(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(x(k,A,D))}}}}},c0}var f0,s_;function E7(){return s_||(s_=1,f0={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++}}}}),f0}var p0,i_;function w7(){return i_||(i_=1,p0={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}}}),p0}var h0,a_;function C7(){if(a_)return h0;a_=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 h0={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 x(_,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 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 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]);v(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,ve=!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}}},h0}var d0,o_;function k7(){if(o_)return d0;o_=1;let r=Pe();function e(t,s){return[...Array(s-t).keys()].map(n=>n+t)}return d0={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}})}}}}},d0}var m0,l_;function A7(){if(l_)return m0;l_=1;let r=Pe(),{upperCaseFirst:e}=Ci(),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 m0={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(x,v,S){let w=S.loc.start,O=S.loc.end,C=w.line===v&&!x.slice(0,w.column).trim(),E=O.line===v&&!x.slice(O.column).trim();return S&&(w.linev||E)}function m(x){return(x.type==="FunctionExpression"||x.type==="ArrowFunctionExpression")&&x.parent&&x.parent.type==="CallExpression"&&x.parent.callee===x}function g(x){return!x.parent||x!==x.parent.value?!1:x.parent.type==="MethodDefinition"?!0:x.parent.type==="Property"?x.parent.method===!0||x.parent.kind==="get"||x.parent.kind==="set":!1}function y(x){let v=g(x)?x.parent:x;if(!h&&m(v))return;let S=0;for(let w=v.loc.start.line-1;wu){let w=e(r.getFunctionNameWithKind(x));i.report({node:v,messageId:"exceed",data:{name:w,lineCount:S,maxLines:u}})}}return{FunctionDeclaration:y,FunctionExpression:y,ArrowFunctionExpression:y}}},m0}var g0,u_;function P7(){return u_||(u_=1,g0={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}}}),g0}var y0,c_;function T7(){if(c_)return y0;c_=1;let r=Pe(),{upperCaseFirst:e}=Ci();return y0={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}}},y0}var b0,f_;function D7(){if(f_)return b0;f_=1;let r=Pe(),{upperCaseFirst:e}=Ci();return b0={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)})}}}},b0}var x0,p_;function _7(){if(p_)return x0;p_=1;let r=Pe();return x0={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}}},x0}var v0,h_;function I7(){if(h_)return v0;h_=1;let r=Pe();return v0={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(x){return/^\s*\*/u.test(x)}function l([x]){if(x.type!=="Block")return!1;let v=x.value.split(r.LINEBREAK_MATCHER);return v.length>0&&v.every((S,w)=>(w===0||w===v.length-1?/^\s*$/u:/^\s*\*/u).test(S))}function o([x]){if(x.type!=="Block")return!1;let v=x.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(x){let v=x.map(({value:S})=>S).filter(S=>S.trim().length).every(S=>S.startsWith(" "));return x.map(({value:S})=>v?S.replace(/^ /u,""):S)}function c(x){let v=x.value.split(r.LINEBREAK_MATCHER).filter((w,O,C)=>!(O===0||O===C.length-1)).map(w=>w.replace(/^\s*$/u,"")),S=v.map(w=>w.replace(/\s*\*/u,"")).filter(w=>w.trim().length).every(w=>w.startsWith(" "));return v.map(w=>w.replace(S?/\s*\* ?/u:/\s*\*/u,""))}function p(x){let v=x.value.split(r.LINEBREAK_MATCHER).map(O=>O.replace(/^\s*$/u,"")),S=`${t.text.slice(x.range[0]-x.loc.start.column,x.range[0])} `,w="";for(let[O,C]of v.entries()){if(!C.trim().length||O===0)continue;let[,E]=C.match(/^(\s*\*?\s*)/u);if(E.lengthw.length&&(w=k)}}return v.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(x,v){return v.map(S=>`// ${S}`).join(` ${f(x)}`)}function g(x,v){return`/* ${v.join(` ${f(x)} `)} */`}let y={"starred-block"(x){let[v]=x,S=h(x);if(!S.some(w=>w.includes("*/")))if(x.length>1)e.report({loc:{start:v.loc.start,end:x.at(-1).loc.end},messageId:"expectedBlock",fix(w){let O=[v.range[0],x.at(-1).range[1]];return S.some(C=>C.startsWith("/"))?null:w.replaceTextRange(O,d(v,S))}});else{let w=v.value.split(r.LINEBREAK_MATCHER),C=`${f(v)} *`;if(!/^\*?\s*$/u.test(w[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],` ${C}`)})}/^\s*$/u.test(w.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]],` -${C}/`)});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(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[v.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"(x){let[v]=x,S=o(x);if(v.type!=="Block"||!i&&S)return;let w=h(x);S&&(w=w.slice(1,w.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(C){return C.replaceText(v,m(v,w))}})},"bare-block"(x){if(o(x))return;let[v]=x,S=h(x);v.type==="Line"&&S.length>1&&!S.some(w=>w.includes("*/"))&&e.report({loc:{start:v.loc.start,end:x.at(-1).loc.end},messageId:"expectedBlock",fix(w){return w.replaceTextRange([v.range[0],x.at(-1).range[1]],g(v,S))}}),l(x)&&e.report({loc:{start:v.loc.start,end:{line:v.loc.start.line,column:v.loc.start.column+2}},messageId:"expectedBareBlock",fix(w){return w.replaceText(v,g(v,S))}})}};return{Program(){return t.getAllComments().filter(x=>x.type!=="Shebang").filter(x=>!r.COMMENTS_IGNORE_PATTERN.test(x.value)).filter(x=>{let v=t.getTokenBefore(x,{includeComments:!0});return!v||v.loc.end.line{let O=t.getTokenBefore(v,{includeComments:!0});return v.type==="Line"&&S&&w[S-1].type==="Line"&&O&&O.loc.end.line===v.loc.start.line-1&&O===w[S-1]?x.at(-1).push(v):x.push([v]),x},[]).filter(x=>!(x.length===1&&x[0].loc.start.line===x[0].loc.end.line)).forEach(y[s])}}}},v0}var O0,d_;function F7(){if(d_)return O0;d_=1;let r=Pe();return O0={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 x=[],v=r.isTokenOnSameLine(c,l),S=r.isTokenOnSameLine(l,p);return v||x.push(y.removeRange([c.range[1],l.range[0]])),S||x.push(y.removeRange([l.range[1],p.range[0]])),x}}),m||e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"unexpectedConsAlt",fix(y){if(g)return null;let x=[],v=r.isTokenOnSameLine(h,o),S=r.isTokenOnSameLine(o,f);return v||x.push(y.removeRange([h.range[1],o.range[0]])),S||x.push(y.removeRange([o.range[1],f.range[0]])),x}});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]],` +${C}/`)});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(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[v.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"(x){let[v]=x,S=o(x);if(v.type!=="Block"||!i&&S)return;let w=h(x);S&&(w=w.slice(1,w.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(C){return C.replaceText(v,m(v,w))}})},"bare-block"(x){if(o(x))return;let[v]=x,S=h(x);v.type==="Line"&&S.length>1&&!S.some(w=>w.includes("*/"))&&e.report({loc:{start:v.loc.start,end:x.at(-1).loc.end},messageId:"expectedBlock",fix(w){return w.replaceTextRange([v.range[0],x.at(-1).range[1]],g(v,S))}}),l(x)&&e.report({loc:{start:v.loc.start,end:{line:v.loc.start.line,column:v.loc.start.column+2}},messageId:"expectedBareBlock",fix(w){return w.replaceText(v,g(v,S))}})}};return{Program(){return t.getAllComments().filter(x=>x.type!=="Shebang").filter(x=>!r.COMMENTS_IGNORE_PATTERN.test(x.value)).filter(x=>{let v=t.getTokenBefore(x,{includeComments:!0});return!v||v.loc.end.line{let O=t.getTokenBefore(v,{includeComments:!0});return v.type==="Line"&&S&&w[S-1].type==="Line"&&O&&O.loc.end.line===v.loc.start.line-1&&O===w[S-1]?x.at(-1).push(v):x.push([v]),x},[]).filter(x=>!(x.length===1&&x[0].loc.start.line===x[0].loc.end.line)).forEach(y[s])}}}},v0}var O0,d_;function R7(){if(d_)return O0;d_=1;let r=Pe();return O0={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 x=[],v=r.isTokenOnSameLine(c,l),S=r.isTokenOnSameLine(l,p);return v||x.push(y.removeRange([c.range[1],l.range[0]])),S||x.push(y.removeRange([l.range[1],p.range[0]])),x}}),m||e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"unexpectedConsAlt",fix(y){if(g)return null;let x=[],v=r.isTokenOnSameLine(h,o),S=r.isTokenOnSameLine(o,f);return v||x.push(y.removeRange([h.range[1],o.range[0]])),S||x.push(y.removeRange([o.range[1],f.range[0]])),x}});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]],` -`)})}}}}},O0}var S0,m_;function B7(){if(m_)return S0;m_=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 S0={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(x){return x.callee.type==="Identifier"?x.callee.name:r.getStaticPropertyName(x.callee)||""}function m(x){let v=x.charAt(0),S=v.toLowerCase(),w=v.toUpperCase();return S===w?"non-alpha":v===S?"lower":"upper"}function g(x,v,S,w){let O=f.getText(v.callee);if(x[S]||x[O]||w&&w.test(O))return!0;let C=r.skipChainExpression(v.callee);return S==="UTC"&&C.type==="MemberExpression"?C.object.type==="Identifier"&&C.object.name==="Date":l&&C.type==="MemberExpression"}function y(x,v){let S=r.skipChainExpression(x.callee);S.type==="MemberExpression"&&(S=S.property),i.report({node:x,loc:S.loc,messageId:v})}return a.newIsCap&&(h.NewExpression=function(x){let v=d(x);v&&(m(v)!=="lower"||g(o,x,v,u)||y(x,"lower"))}),a.capIsNew&&(h.CallExpression=function(x){let v=d(x);v&&(m(v)!=="upper"||g(c,x,v,p)||y(x,"upper"))}),h}},S0}var E0,g_;function N7(){if(g_)return E0;g_=1;let r=Pe();return E0={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,")")]})}}}},E0}var w0,y_;function L7(){if(y_)return w0;y_=1;let r=Pe();return w0={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,x=typeof n[g]<"u";s==="never"&&y&&!x&&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("")} +`)})}}}}},O0}var S0,m_;function F7(){if(m_)return S0;m_=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 S0={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(x){return x.callee.type==="Identifier"?x.callee.name:r.getStaticPropertyName(x.callee)||""}function m(x){let v=x.charAt(0),S=v.toLowerCase(),w=v.toUpperCase();return S===w?"non-alpha":v===S?"lower":"upper"}function g(x,v,S,w){let O=f.getText(v.callee);if(x[S]||x[O]||w&&w.test(O))return!0;let C=r.skipChainExpression(v.callee);return S==="UTC"&&C.type==="MemberExpression"?C.object.type==="Identifier"&&C.object.name==="Date":l&&C.type==="MemberExpression"}function y(x,v){let S=r.skipChainExpression(x.callee);S.type==="MemberExpression"&&(S=S.property),i.report({node:x,loc:S.loc,messageId:v})}return a.newIsCap&&(h.NewExpression=function(x){let v=d(x);v&&(m(v)!=="lower"||g(o,x,v,u)||y(x,"lower"))}),a.capIsNew&&(h.CallExpression=function(x){let v=d(x);v&&(m(v)!=="upper"||g(c,x,v,p)||y(x,"upper"))}),h}},S0}var E0,g_;function B7(){if(g_)return E0;g_=1;let r=Pe();return E0={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,")")]})}}}},E0}var w0,y_;function N7(){if(y_)return w0;y_=1;let r=Pe();return w0={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,x=typeof n[g]<"u";s==="never"&&y&&!x&&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||x&&!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,` `):v.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],` -`)}})}return{VariableDeclaration:h}}},w0}var C0,b_;function $7(){return b_||(b_=1,C0={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{VariableDeclaration:h}}},w0}var C0,b_;function L7(){return b_||(b_=1,C0={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}})}}}}),C0}var k0,x_;function M7(){if(x_)return k0;x_=1;let r=Pe();return k0={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,` -`)}})}}}}},k0}var A0,v_;function j7(){if(v_)return A0;v_=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 A0={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}})}}}}},A0}var P0,O_;function q7(){if(O_)return P0;O_=1;let{getVariableByName:r,isClosingParenToken:e,isOpeningParenToken:t,isStartOfExpressionStatement:s,needsPrecedingSemicolon:n}=Pe();return P0={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}}},P0}var T0,S_;function Q7(){return S_||(S_=1,T0={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"})}}}}),T0}var D0,E_;function U7(){if(E_)return D0;E_=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 D0={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}}},D0}var _0,w_;function V7(){if(w_)return _0;w_=1;let r=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return _0={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}}},_0}var I0,C_;function W7(){return C_||(C_=1,I0={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()"}})}}}}),I0}var R0,k_;function Z7(){return k_||(k_=1,R0={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}})}}}}),R0}var F0,A_;function z7(){return A_||(A_=1,F0={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)," }")]}]})}}}}}),F0}var B0,P_;function G7(){if(P_)return B0;P_=1;let r=Pe();return B0={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}})}}}},B0}var N0,T_;function X7(){if(T_)return N0;T_=1;let r=Pe();return N0={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}}},N0}var L0,D_;function Y7(){return D_||(D_=1,L0={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}})}}}}),L0}var $0,__;function H7(){if(__)return $0;__=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 $0={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}}},$0}var M0,I_;function K7(){if(I_)return M0;I_=1;let r=Pe();function e(t){return t&&t.type==="ConditionalExpression"}return M0={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}}},M0}var j0,R_;function J7(){if(R_)return j0;R_=1;let r=Pe();return j0={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)}}}},j0}var q0,F_;function eW(){if(F_)return q0;F_=1;let r=Pe();return q0={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)}}}},q0}var Q0,B_;function tW(){if(B_)return Q0;B_=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 Q0={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,x=d.getScope(m);(g==="&&"||g==="||")&&e(x,y,!0)?f.report({node:y,messageId:"constantShortCircuit",data:{property:"truthiness",operator:g}}):g==="??"&&l(x,y,!1)&&f.report({node:y,messageId:"constantShortCircuit",data:{property:"nullishness",operator:g}})},BinaryExpression(m){let g=d.getScope(m),{right:y,left:x,operator:v}=m,S=h(g,x,y,v),w=h(g,y,x,v);S?f.report({node:S,messageId:"constantBinaryOperand",data:{operator:v,otherSide:"left"}}):w?f.report({node:w,messageId:"constantBinaryOperand",data:{operator:v,otherSide:"right"}}):v==="==="||v==="!=="?p(g,x)?f.report({node:x,messageId:"alwaysNew"}):p(g,y)&&f.report({node:y,messageId:"alwaysNew"}):(v==="=="||v==="!=")&&p(g,x)&&p(g,y)&&f.report({node:x,messageId:"bothAlwaysNew"})}}}},Q0}var U0,N_;function rW(){if(N_)return U0;N_=1;let{isConstant:r}=Pe();return U0={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()}}},U0}var V0,L_;function nW(){return L_||(L_=1,V0={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"})}}}}),V0}var W0,$_;function sW(){return $_||($_=1,W0={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"})}}}}),W0}var us={},M_;function Xn(){if(M_)return us;M_=1,Object.defineProperty(us,"__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 x(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,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,ve=55,H=57,he=58,$=59,pe=60,K=61,le=62,be=63,Le=64,qe=65,rt=66,ht=68,pt=70,wt=80,G=83,Ce=87,Ve=90,et=95,it=97,st=98,Ct=99,xt=100,Dt=102,_t=103,W=105,vt=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,xe=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<=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 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]),xr=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 Ur(je){return Nt.has(je)}function ds(je){return xr.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===xe||je===re}function hn(je){return ze(je)||je===et}function Hn(je){return hn(je)||Ke(je)}class An{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===xt&&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===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&&!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(xt))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(wt)))){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(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(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===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(F))return this._lastIntValue=F,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&&Ur(_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||!Ur(te))&&te!==-1&&!ds(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(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=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===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(x(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(x(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;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:Us};_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 gs{constructor(M){this._state=new ki(M),this._validator=new An(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 Ai{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 ys(je,M){return new gs(M).parseLiteral(String(je))}function Tt(je,M){new An(M).validateLiteral(je)}function Pi(je,M){new Ai(M).visit(je)}return us.AST=r,us.RegExpParser=gs,us.RegExpValidator=An,us.parseRegExpLiteral=ys,us.validateRegExpLiteral=Tt,us.visitRegExpAST=Pi,us}var Z0,j_;function iW(){if(j_)return Z0;j_=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 Z0={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(", ")}})}}}}},Z0}var z0,q_;function aW(){return q_||(q_=1,z0={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"})}}}}),z0}var G0,Q_;function oW(){return Q_||(Q_=1,G0={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"})}}}}),G0}var X0,U_;function lW(){return U_||(U_=1,X0={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],"[=]")}})}}}}),X0}var Y0,V_;function uW(){return V_||(V_=1,Y0={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}}}),Y0}var H0,W_;function cW(){if(W_)return H0;W_=1;let r=Pe();return H0={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}})}}}},H0}var K0,Z_;function fW(){if(Z_)return K0;Z_=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 K0={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}}}}}},K0}var J0,z_;function pW(){if(z_)return J0;z_=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 J0={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))}}}},J0}var ey,G_;function hW(){if(G_)return ey;G_=1;let r=Pe();return ey={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)}}}}},ey}var ty,X_;function dW(){if(X_)return ty;X_=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=[],x=a(g,"import"),v;d&&(v=a(g,"export")),f==="import"?(i(p,x)&&y.push("import"),d&&i(p,v)&&y.push("importAs")):f==="export"&&(i(p,v)&&y.push("export"),i(p,x)&&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 ty={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}},ty}var ry,Y_;function Ko(){if(Y_)return ry;Y_=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 ry=e,ry}var ny,H_;function mW(){if(H_)return ny;H_=1;let r=Pe(),e=Ko();return ny={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 x=y.variableScope;if(y.variables.filter(({defs:w})=>w.length>0).some(({name:w})=>g.includes(w))||y!==x&&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!==x){let w=y.block.range;if(x.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 x=y.childScopes.find(({block:S})=>S===g);if(!x)return!0;let v=x.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(x){if(!i(g,y))return null;let v=s.getFirstToken(g),S=s.getTokenBefore(v),w=s.getText(g),O=s.getTokenBefore(S),C,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),R=B&&B.loc.start.line===_.loc.start.line;if(T||R&&B.value!=="}")return null}return v.type==="Punctuator"&&v.value==="{"?C=w.slice(1,-1):C=w,new e(x,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,x=y.at(-1);return x&&l(x)}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 x=[],v;for(let S=g;S.type==="IfStatement";S=S.alternate){if(!S.alternate)return;x.push(S.consequent),v=S.alternate}x.every(h)&&a(v)}function d(g){let y=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(y.type))return;let x=g.alternate;x&&h(g.consequent)&&a(x)}return{"IfStatement:exit":!(t.options[0]&&t.options[0].allowElseIf===!1)?f:d}}},ny}var sy,K_;function gW(){if(K_)return sy;K_=1;let r=Pe();return sy={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"}})}}}},sy}var iy,J_;function yW(){if(J_)return iy;J_=1;let{RegExpParser:r,visitRegExpAST:e}=Xn(),t=new r,s=/\[\]/u;return iy={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"})}})}}}},iy}var ay,eI;function bW(){if(eI)return ay;eI=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 ay={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}}},ay}var oy,tI;function xW(){if(tI)return oy;tI=1;let r=Pe();return oy={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"}})}}}},oy}var ly,rI;function vW(){return rI||(rI=1,ly={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"})}}}}}),ly}var uy,nI;function OW(){return nI||(nI=1,uy={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"})}}}}),uy}var cy,sI;function SW(){if(sI)return cy;sI=1;let r=Pe(),e=Object.freeze(["global","window","globalThis"]);function t(s,n){return r.isSpecificMemberAccess(s,null,n)}return cy={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))}}}},cy}var fy,iI;function EW(){if(iI)return fy;iI=1;let r=Pe();return fy={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)}}}},fy}var py,aI;function wW(){if(aI)return py;aI=1;let r=Pe();return py={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)})}}}},py}var hy,oI;function CW(){if(oI)return hy;oI=1;let r=Pe(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return hy={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],x=g[1][1];return s.commentsExistBetween(y,x)?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}}},hy}var dy,lI;function kW(){if(lI)return dy;lI=1;let r=Pe(),e=hr(),t=r.getPrecedence;return dy={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&&Ct.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(v){v.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 ve(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"),Ct=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),!Ct&&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)>x?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(){v={upper:v,inExpressionNodes:[],reports:[]}}function qe(){let{upper:G,inExpressionNodes:Ce,reports:Ve}=v;G?(G.inExpressionNodes.push(...Ce),G.reports.push(...Ve)):Ve.forEach(({finishReport:et})=>et()),v=G}function rt(G){return v.reports.some(Ce=>Ce.node===G)}function ht(G){v.reports=v.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 wt({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)&&(!wt(G)||C(G.left))&&V(G.left),!R(G)&&A(G.right,i(G))&&V(G.right)},BinaryExpression(G){v&&G.operator==="in"&&v.inExpressionNodes.push(G),H(G)},CallExpression:ve,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){v.reports.length&&v.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:ve,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)}}}},gy}var yy,fI;function TW(){if(fI)return yy;fI=1;let r=Ko(),e=Pe();return yy={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))}}}},yy}var by,pI;function DW(){if(pI)return by;pI=1;let{directivesPattern:r}=Ac(),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 by={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),x=y&&(m.consequent.length>0||!p&&i(m,g))&&m.parent.cases.at(-1)!==m;f={node:m,isSwitchExitReachable:y,isFallthrough:x}}}}},by}var xy,hI;function _W(){if(hI)return xy;hI=1;let r=Pe();return xy={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")}))}}}},xy}var vy,dI;function IW(){if(dI)return vy;dI=1;let r=Pe();return vy={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}}},vy}var Oy,mI;function RW(){return mI||(mI=1,Oy={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)}}}}),Oy}var Sy,gI;function FW(){if(gI)return Sy;gI=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 Sy={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 x(v,S,w,O){function C(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?C(E):null},suggest:[{messageId:"useRecommendation",data:{recommendation:S},fix(E){return O||!w?null:C(E)}}]})}return{UnaryExpression(v){let S;if(S=g.allow.includes("!!"),!S&&g.boolean&&n(v)){let w=`Boolean(${y.getText(v.argument.argument)})`,C=r.getVariableByName(y.getScope(v),"Boolean")?.identifiers.length===0;x(v,w,!0,C)}if(S=g.allow.includes("~"),!S&&g.boolean&&i(v)){let w=v.argument.type==="ChainExpression"?">= 0":"!== -1",O=`${y.getText(v.argument)} ${w}`;x(v,O,!1,!1)}if(S=g.allow.includes("+"),!S&&g.number&&v.operator==="+"&&!o(v.argument)){let w=`Number(${y.getText(v.argument)})`;x(v,w,!0,!1)}if(S=g.allow.includes("- -"),!S&&g.number&&v.operator==="-"&&v.argument.type==="UnaryExpression"&&v.argument.operator==="-"&&!o(v.argument.argument)){let w=`Number(${y.getText(v.argument.argument)})`;x(v,w,!0,!1)}},"BinaryExpression:exit"(v){let S;S=g.allow.includes("*");let w=!S&&g.number&&a(v)&&!l(v,y)&&u(v);if(w){let O=`Number(${y.getText(w)})`;x(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)})`;x(v,O,!0,!1)}if(S=g.allow.includes("+"),!S&&g.string&&h(v)){let O=`String(${y.getText(d(v))})`;x(v,O,!0,!1)}},AssignmentExpression(v){if(!g.allow.includes("+")&&g.string&&f(v)){let w=y.getText(d(v)),O=`${w} = String(${w})`;x(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 w=`String(${y.getText(v.expressions[0])})`;x(v,w,!0,!1)}}}},Sy}var Ey,yI;function BW(){return yI||(yI=1,Ey={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)})})}}}}),Ey}var wy,bI;function NW(){if(bI)return wy;bI=1;let r=Pe(),{getStaticValue:e}=hr();return wy={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)}}}},wy}var Cy,xI;function LW(){if(xI)return Cy;xI=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 Cy={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}}))}}}}}},Cy}var ky,vI;function $W(){if(vI)return ky;vI=1;let r=Pe();return ky={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)}}}},ky}var Ay,OI;function MW(){if(OI)return Ay;OI=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 Ay={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)}}}},Ay}var Py,SI;function jW(){if(SI)return Py;SI=1;let r=Xn().RegExpValidator,e=new r,t=/[dgimsuvy]/gu,s=void 0;return Py={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)}}}},Py}var Ty,EI;function qW(){if(EI)return Ty;EI=1;let r=Pe();function e(t,s){return t.origin==="function"&&s.type==="ArrowFunctionExpression"}return Ty={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"})}}}},Ty}var Dy,wI;function QW(){if(wI)return Dy;wI=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 Dy={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 x(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 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?v:O,C["Program:exit"]=function(){o&&d.forEach(x),a.forEach(E=>i.report(E))}):C.Program=O,C}},Dy}var _y,CI;function UW(){if(CI)return _y;CI=1;let{getStaticPropertyName:r}=Pe();return _y={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"})}}}},_y}var Iy,kI;function VW(){if(kI)return Iy;kI=1;let r=Pe();return Iy={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"})}}}},Iy}var Ry,AI;function WW(){if(AI)return Ry;AI=1;let r=Pe();return Ry={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"})}}}},Ry}var Fy,PI;function ZW(){return PI||(PI=1,Fy={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}}),Fy}var By,TI;function zW(){return TI||(TI=1,By={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))}})}}}}),By}var Ny,DI;function GW(){if(DI)return Ny;DI=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}}},Ny}var Ly,_I;function XW(){return _I||(_I=1,Ly={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,x=d.length>1?parseInt(d[1],10)+g.magnitude:g.magnitude;return`${y}e${x}`}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})}}}}),Ly}var $y,II;function YW(){if(II)return $y;II=1;let r=Pe(),e=2**32-1;function t(s){return typeof s=="string"?BigInt(s.slice(0,-1)):s}return $y={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(x){return l.has(x)}function f(x){let v=x.parent;return v.type==="AssignmentPattern"&&v.right===x}function d(x){let v=x.parent;return v.type==="PropertyDefinition"&&v.value===x}function m(x){let v=x.parent;return v.type==="CallExpression"&&x===v.arguments[1]&&(r.isSpecificId(v.callee,"parseInt")||r.isSpecificMemberAccess(v.callee,"Number","parseInt"))}function g(x){return x.parent.type.indexOf("JSX")===0}function y(x,v){let S=x.parent;return S.type==="MemberExpression"&&S.property===x&&(Number.isInteger(v)||typeof v=="bigint")&&v>=0&&v=127995&&e<=127999}),jy}var qy,BI;function JW(){return BI||(BI=1,qy=function(e){return e>=127462&&e<=127487}),qy}var Qy,NI;function eZ(){return NI||(NI=1,Qy=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}),Qy}var Uy,LI;function tZ(){if(LI)return Uy;LI=1;let r=HW(),e=KW(),t=JW(),s=eZ();return Uy={isCombiningCharacter:r,isEmojiModifier:e,isRegionalIndicatorSymbol:t,isSurrogatePair:s},Uy}var Vy,$I;function jO(){if($I)return Vy;$I=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 Vy={isValidWithUnicodeFlag:t,REGEXPP_LATEST_ECMA_VERSION:e},Vy}var Wy,MI;function rZ(){if(MI)return Wy;MI=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}})}}}}),C0}var k0,x_;function $7(){if(x_)return k0;x_=1;let r=Pe();return k0={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,` +`)}})}}}}},k0}var A0,v_;function M7(){if(v_)return A0;v_=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 A0={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}})}}}}},A0}var P0,O_;function j7(){if(O_)return P0;O_=1;let{getVariableByName:r,isClosingParenToken:e,isOpeningParenToken:t,isStartOfExpressionStatement:s,needsPrecedingSemicolon:n}=Pe();return P0={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}}},P0}var T0,S_;function q7(){return S_||(S_=1,T0={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"})}}}}),T0}var D0,E_;function Q7(){if(E_)return D0;E_=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 D0={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}}},D0}var _0,w_;function U7(){if(w_)return _0;w_=1;let r=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return _0={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}}},_0}var I0,C_;function V7(){return C_||(C_=1,I0={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()"}})}}}}),I0}var R0,k_;function W7(){return k_||(k_=1,R0={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}})}}}}),R0}var F0,A_;function Z7(){return A_||(A_=1,F0={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)," }")]}]})}}}}}),F0}var B0,P_;function z7(){if(P_)return B0;P_=1;let r=Pe();return B0={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}})}}}},B0}var N0,T_;function G7(){if(T_)return N0;T_=1;let r=Pe();return N0={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}}},N0}var L0,D_;function X7(){return D_||(D_=1,L0={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}})}}}}),L0}var $0,__;function Y7(){if(__)return $0;__=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 $0={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}}},$0}var M0,I_;function H7(){if(I_)return M0;I_=1;let r=Pe();function e(t){return t&&t.type==="ConditionalExpression"}return M0={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}}},M0}var j0,R_;function K7(){if(R_)return j0;R_=1;let r=Pe();return j0={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)}}}},j0}var q0,F_;function J7(){if(F_)return q0;F_=1;let r=Pe();return q0={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)}}}},q0}var Q0,B_;function eW(){if(B_)return Q0;B_=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 Q0={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,x=d.getScope(m);(g==="&&"||g==="||")&&e(x,y,!0)?f.report({node:y,messageId:"constantShortCircuit",data:{property:"truthiness",operator:g}}):g==="??"&&l(x,y,!1)&&f.report({node:y,messageId:"constantShortCircuit",data:{property:"nullishness",operator:g}})},BinaryExpression(m){let g=d.getScope(m),{right:y,left:x,operator:v}=m,S=h(g,x,y,v),w=h(g,y,x,v);S?f.report({node:S,messageId:"constantBinaryOperand",data:{operator:v,otherSide:"left"}}):w?f.report({node:w,messageId:"constantBinaryOperand",data:{operator:v,otherSide:"right"}}):v==="==="||v==="!=="?p(g,x)?f.report({node:x,messageId:"alwaysNew"}):p(g,y)&&f.report({node:y,messageId:"alwaysNew"}):(v==="=="||v==="!=")&&p(g,x)&&p(g,y)&&f.report({node:x,messageId:"bothAlwaysNew"})}}}},Q0}var U0,N_;function tW(){if(N_)return U0;N_=1;let{isConstant:r}=Pe();return U0={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()}}},U0}var V0,L_;function rW(){return L_||(L_=1,V0={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"})}}}}),V0}var W0,$_;function nW(){return $_||($_=1,W0={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"})}}}}),W0}var us={},M_;function Xn(){if(M_)return us;M_=1,Object.defineProperty(us,"__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 x(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,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,ve=55,H=57,he=58,$=59,pe=60,K=61,le=62,be=63,Le=64,qe=65,rt=66,ht=68,pt=70,wt=80,G=83,Ce=87,Ve=90,et=95,it=97,st=98,Ct=99,xt=100,Dt=102,_t=103,W=105,vt=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,xe=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<=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 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]),xr=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 Ur(je){return Nt.has(je)}function ds(je){return xr.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===xe||je===re}function hn(je){return ze(je)||je===et}function Hn(je){return hn(je)||Ke(je)}class An{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===xt&&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===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&&!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(xt))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(wt)))){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(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(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===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(F))return this._lastIntValue=F,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&&Ur(_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||!Ur(te))&&te!==-1&&!ds(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(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=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===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(x(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(x(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;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:Us};_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 gs{constructor(M){this._state=new ki(M),this._validator=new An(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 Ai{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 ys(je,M){return new gs(M).parseLiteral(String(je))}function Tt(je,M){new An(M).validateLiteral(je)}function Pi(je,M){new Ai(M).visit(je)}return us.AST=r,us.RegExpParser=gs,us.RegExpValidator=An,us.parseRegExpLiteral=ys,us.validateRegExpLiteral=Tt,us.visitRegExpAST=Pi,us}var Z0,j_;function sW(){if(j_)return Z0;j_=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 Z0={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(", ")}})}}}}},Z0}var z0,q_;function iW(){return q_||(q_=1,z0={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"})}}}}),z0}var G0,Q_;function aW(){return Q_||(Q_=1,G0={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"})}}}}),G0}var X0,U_;function oW(){return U_||(U_=1,X0={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],"[=]")}})}}}}),X0}var Y0,V_;function lW(){return V_||(V_=1,Y0={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}}}),Y0}var H0,W_;function uW(){if(W_)return H0;W_=1;let r=Pe();return H0={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}})}}}},H0}var K0,Z_;function cW(){if(Z_)return K0;Z_=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 K0={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}}}}}},K0}var J0,z_;function fW(){if(z_)return J0;z_=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 J0={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))}}}},J0}var ey,G_;function pW(){if(G_)return ey;G_=1;let r=Pe();return ey={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)}}}}},ey}var ty,X_;function hW(){if(X_)return ty;X_=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=[],x=a(g,"import"),v;d&&(v=a(g,"export")),f==="import"?(i(p,x)&&y.push("import"),d&&i(p,v)&&y.push("importAs")):f==="export"&&(i(p,v)&&y.push("export"),i(p,x)&&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 ty={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}},ty}var ry,Y_;function Ko(){if(Y_)return ry;Y_=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 ry=e,ry}var ny,H_;function dW(){if(H_)return ny;H_=1;let r=Pe(),e=Ko();return ny={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 x=y.variableScope;if(y.variables.filter(({defs:w})=>w.length>0).some(({name:w})=>g.includes(w))||y!==x&&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!==x){let w=y.block.range;if(x.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 x=y.childScopes.find(({block:S})=>S===g);if(!x)return!0;let v=x.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(x){if(!i(g,y))return null;let v=s.getFirstToken(g),S=s.getTokenBefore(v),w=s.getText(g),O=s.getTokenBefore(S),C,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),R=B&&B.loc.start.line===_.loc.start.line;if(T||R&&B.value!=="}")return null}return v.type==="Punctuator"&&v.value==="{"?C=w.slice(1,-1):C=w,new e(x,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,x=y.at(-1);return x&&l(x)}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 x=[],v;for(let S=g;S.type==="IfStatement";S=S.alternate){if(!S.alternate)return;x.push(S.consequent),v=S.alternate}x.every(h)&&a(v)}function d(g){let y=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(y.type))return;let x=g.alternate;x&&h(g.consequent)&&a(x)}return{"IfStatement:exit":!(t.options[0]&&t.options[0].allowElseIf===!1)?f:d}}},ny}var sy,K_;function mW(){if(K_)return sy;K_=1;let r=Pe();return sy={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"}})}}}},sy}var iy,J_;function gW(){if(J_)return iy;J_=1;let{RegExpParser:r,visitRegExpAST:e}=Xn(),t=new r,s=/\[\]/u;return iy={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"})}})}}}},iy}var ay,eI;function yW(){if(eI)return ay;eI=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 ay={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}}},ay}var oy,tI;function bW(){if(tI)return oy;tI=1;let r=Pe();return oy={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"}})}}}},oy}var ly,rI;function xW(){return rI||(rI=1,ly={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"})}}}}}),ly}var uy,nI;function vW(){return nI||(nI=1,uy={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"})}}}}),uy}var cy,sI;function OW(){if(sI)return cy;sI=1;let r=Pe(),e=Object.freeze(["global","window","globalThis"]);function t(s,n){return r.isSpecificMemberAccess(s,null,n)}return cy={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))}}}},cy}var fy,iI;function SW(){if(iI)return fy;iI=1;let r=Pe();return fy={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)}}}},fy}var py,aI;function EW(){if(aI)return py;aI=1;let r=Pe();return py={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)})}}}},py}var hy,oI;function wW(){if(oI)return hy;oI=1;let r=Pe(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return hy={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],x=g[1][1];return s.commentsExistBetween(y,x)?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}}},hy}var dy,lI;function CW(){if(lI)return dy;lI=1;let r=Pe(),e=hr(),t=r.getPrecedence;return dy={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&&Ct.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(v){v.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 ve(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"),Ct=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),!Ct&&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)>x?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(){v={upper:v,inExpressionNodes:[],reports:[]}}function qe(){let{upper:G,inExpressionNodes:Ce,reports:Ve}=v;G?(G.inExpressionNodes.push(...Ce),G.reports.push(...Ve)):Ve.forEach(({finishReport:et})=>et()),v=G}function rt(G){return v.reports.some(Ce=>Ce.node===G)}function ht(G){v.reports=v.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 wt({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)&&(!wt(G)||C(G.left))&&V(G.left),!R(G)&&A(G.right,i(G))&&V(G.right)},BinaryExpression(G){v&&G.operator==="in"&&v.inExpressionNodes.push(G),H(G)},CallExpression:ve,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){v.reports.length&&v.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:ve,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)}}}},gy}var yy,fI;function PW(){if(fI)return yy;fI=1;let r=Ko(),e=Pe();return yy={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))}}}},yy}var by,pI;function TW(){if(pI)return by;pI=1;let{directivesPattern:r}=Ac(),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 by={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),x=y&&(m.consequent.length>0||!p&&i(m,g))&&m.parent.cases.at(-1)!==m;f={node:m,isSwitchExitReachable:y,isFallthrough:x}}}}},by}var xy,hI;function DW(){if(hI)return xy;hI=1;let r=Pe();return xy={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")}))}}}},xy}var vy,dI;function _W(){if(dI)return vy;dI=1;let r=Pe();return vy={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}}},vy}var Oy,mI;function IW(){return mI||(mI=1,Oy={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)}}}}),Oy}var Sy,gI;function RW(){if(gI)return Sy;gI=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 Sy={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 x(v,S,w,O){function C(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?C(E):null},suggest:[{messageId:"useRecommendation",data:{recommendation:S},fix(E){return O||!w?null:C(E)}}]})}return{UnaryExpression(v){let S;if(S=g.allow.includes("!!"),!S&&g.boolean&&n(v)){let w=`Boolean(${y.getText(v.argument.argument)})`,C=r.getVariableByName(y.getScope(v),"Boolean")?.identifiers.length===0;x(v,w,!0,C)}if(S=g.allow.includes("~"),!S&&g.boolean&&i(v)){let w=v.argument.type==="ChainExpression"?">= 0":"!== -1",O=`${y.getText(v.argument)} ${w}`;x(v,O,!1,!1)}if(S=g.allow.includes("+"),!S&&g.number&&v.operator==="+"&&!o(v.argument)){let w=`Number(${y.getText(v.argument)})`;x(v,w,!0,!1)}if(S=g.allow.includes("- -"),!S&&g.number&&v.operator==="-"&&v.argument.type==="UnaryExpression"&&v.argument.operator==="-"&&!o(v.argument.argument)){let w=`Number(${y.getText(v.argument.argument)})`;x(v,w,!0,!1)}},"BinaryExpression:exit"(v){let S;S=g.allow.includes("*");let w=!S&&g.number&&a(v)&&!l(v,y)&&u(v);if(w){let O=`Number(${y.getText(w)})`;x(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)})`;x(v,O,!0,!1)}if(S=g.allow.includes("+"),!S&&g.string&&h(v)){let O=`String(${y.getText(d(v))})`;x(v,O,!0,!1)}},AssignmentExpression(v){if(!g.allow.includes("+")&&g.string&&f(v)){let w=y.getText(d(v)),O=`${w} = String(${w})`;x(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 w=`String(${y.getText(v.expressions[0])})`;x(v,w,!0,!1)}}}},Sy}var Ey,yI;function FW(){return yI||(yI=1,Ey={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)})})}}}}),Ey}var wy,bI;function BW(){if(bI)return wy;bI=1;let r=Pe(),{getStaticValue:e}=hr();return wy={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)}}}},wy}var Cy,xI;function NW(){if(xI)return Cy;xI=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 Cy={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}}))}}}}}},Cy}var ky,vI;function LW(){if(vI)return ky;vI=1;let r=Pe();return ky={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)}}}},ky}var Ay,OI;function $W(){if(OI)return Ay;OI=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 Ay={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)}}}},Ay}var Py,SI;function MW(){if(SI)return Py;SI=1;let r=Xn().RegExpValidator,e=new r,t=/[dgimsuvy]/gu,s=void 0;return Py={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)}}}},Py}var Ty,EI;function jW(){if(EI)return Ty;EI=1;let r=Pe();function e(t,s){return t.origin==="function"&&s.type==="ArrowFunctionExpression"}return Ty={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"})}}}},Ty}var Dy,wI;function qW(){if(wI)return Dy;wI=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 Dy={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 x(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 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?v:O,C["Program:exit"]=function(){o&&d.forEach(x),a.forEach(E=>i.report(E))}):C.Program=O,C}},Dy}var _y,CI;function QW(){if(CI)return _y;CI=1;let{getStaticPropertyName:r}=Pe();return _y={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"})}}}},_y}var Iy,kI;function UW(){if(kI)return Iy;kI=1;let r=Pe();return Iy={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"})}}}},Iy}var Ry,AI;function VW(){if(AI)return Ry;AI=1;let r=Pe();return Ry={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"})}}}},Ry}var Fy,PI;function WW(){return PI||(PI=1,Fy={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}}),Fy}var By,TI;function ZW(){return TI||(TI=1,By={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))}})}}}}),By}var Ny,DI;function zW(){if(DI)return Ny;DI=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}}},Ny}var Ly,_I;function GW(){return _I||(_I=1,Ly={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,x=d.length>1?parseInt(d[1],10)+g.magnitude:g.magnitude;return`${y}e${x}`}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})}}}}),Ly}var $y,II;function XW(){if(II)return $y;II=1;let r=Pe(),e=2**32-1;function t(s){return typeof s=="string"?BigInt(s.slice(0,-1)):s}return $y={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(x){return l.has(x)}function f(x){let v=x.parent;return v.type==="AssignmentPattern"&&v.right===x}function d(x){let v=x.parent;return v.type==="PropertyDefinition"&&v.value===x}function m(x){let v=x.parent;return v.type==="CallExpression"&&x===v.arguments[1]&&(r.isSpecificId(v.callee,"parseInt")||r.isSpecificMemberAccess(v.callee,"Number","parseInt"))}function g(x){return x.parent.type.indexOf("JSX")===0}function y(x,v){let S=x.parent;return S.type==="MemberExpression"&&S.property===x&&(Number.isInteger(v)||typeof v=="bigint")&&v>=0&&v=127995&&e<=127999}),jy}var qy,BI;function KW(){return BI||(BI=1,qy=function(e){return e>=127462&&e<=127487}),qy}var Qy,NI;function JW(){return NI||(NI=1,Qy=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}),Qy}var Uy,LI;function eZ(){if(LI)return Uy;LI=1;let r=YW(),e=HW(),t=KW(),s=JW();return Uy={isCombiningCharacter:r,isEmojiModifier:e,isRegionalIndicatorSymbol:t,isSurrogatePair:s},Uy}var Vy,$I;function jO(){if($I)return Vy;$I=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 Vy={isValidWithUnicodeFlag:t,REGEXPP_LATEST_ECMA_VERSION:e},Vy}var Wy,MI;function tZ(){if(MI)return Wy;MI=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 Wy={parseStringLiteral:o,parseTemplateToken:u},Wy}var Zy,jI;function nZ(){if(jI)return Zy;jI=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}=tZ(),p=Pe(),{isValidWithUnicodeFlag:h}=jO(),{parseStringLiteral:f,parseTemplateToken:d}=rZ();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)}},x=Object.keys(y);function v(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 Zy={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 x)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=v(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})}}}}}},Zy}var zy,qI;function sZ(){if(qI)return zy;qI=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 zy={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 x(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 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:v(E).loc,messageId:"unexpectedMixedOperator",data:A}),d.report({node:k,loc:v(k).loc,messageId:"unexpectedMixedOperator",data:A})}function w(O){c.test(O.parent.type)&&x(O)&&!y(O)&&S(O)}return{BinaryExpression:w,LogicalExpression:w}}},zy}var Gy,QI;function iZ(){return QI||(QI=1,Gy={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 x=y.arguments[0];return x.type!=="Literal"||typeof x.value!="string"?h:i.includes(x.value)?u:/^\.{0,2}\//u.test(x.value)?c:p}function m(y){let x={};return y.forEach(v=>{let S=f(v.init);x[S]=!0}),!!(x[a]&&(x[l]||x[o]))}function g(y){let x={};return y.forEach(v=>{f(v.init)===a&&(x[d(v.init)]=!0)}),Object.keys(x).length<=1}return{VariableDeclaration(y){m(y.declarations)?r.report({node:y,messageId:"noMixRequire"}):t&&!g(y.declarations)&&r.report({node:y,messageId:"noMixCoreModuleFileComputed"})}}}}),Gy}var Xy,UI;function aZ(){return UI||(UI=1,Xy={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"})}}})}}}}),Xy}var Yy,VI;function oZ(){return VI||(VI=1,Yy={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"})}}}}),Yy}var Hy,WI;function lZ(){if(WI)return Hy;WI=1;let r=Pe();return Hy={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]]," ")})})}}}},Hy}var Ky,ZI;function uZ(){if(ZI)return Ky;ZI=1;let r=Pe();return Ky={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"})}}}},Ky}var Jy,zI;function cZ(){return zI||(zI=1,Jy={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)}}}}),Jy}var eb,GI;function fZ(){return GI||(GI=1,eb={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)}}}}),eb}var tb,XI;function pZ(){return XI||(XI=1,tb={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"})}}}}),tb}var rb,YI;function hZ(){return YI||(YI=1,rb={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"})}}}}),rb}var nb,HI;function dZ(){return HI||(HI=1,nb={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"})}}}}),nb}var sb,KI;function mZ(){return KI||(KI=1,sb={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"})}}}}),sb}var ib,JI;function gZ(){if(JI)return ib;JI=1;let r=Pe(),e=new Set(["apply","bind","call"]);return ib={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"})})}}}},ib}var ab,e2;function yZ(){if(e2)return ab;e2=1;let r=["Symbol","BigInt"];return ab={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}})})}}}}},ab}var ob,t2;function bZ(){if(t2)return ob;t2=1;let r=Pe();return ob={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"})}}}},ob}var lb,r2;function xZ(){return r2||(r2=1,lb={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"})}}}}),lb}var ub,n2;function vZ(){return n2||(n2=1,ub={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"})})}}}}),ub}var cb,s2;function OZ(){if(s2)return cb;s2=1;let{getVariableByName:r}=Pe();return cb={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}})}}}}},cb}var fb,i2;function SZ(){if(i2)return fb;i2=1;let r=/\\[89]/u;function e(t){return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}return fb={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})}}}}},fb}var pb,a2;function EZ(){if(a2)return pb;a2=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 pb={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}})}}}}},pb}var hb,o2;function wZ(){if(o2)return hb;o2=1;let{getVariableByName:r,isArrowToken:e,isStartOfExpressionStatement:t,needsPrecedingSemicolon:s}=Pe();return hb={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}}},hb}var db,l2;function CZ(){return l2||(l2=1,db={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"})}}}}),db}var mb,u2;function kZ(){return u2||(u2=1,mb={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]}})}}}}),mb}var gb,c2;function AZ(){if(c2)return gb;c2=1;let r=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return gb={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}}},gb}var yb,f2;function PZ(){return f2||(f2=1,yb={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"})}}}}),yb}var bb,p2;function TZ(){if(p2)return bb;p2=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 bb={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}})}}}},bb}var xb,h2;function DZ(){return h2||(h2=1,xb={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"})}}}}),xb}var vb,d2;function _Z(){return d2||(d2=1,vb={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"})}}}}),vb}var Ob,m2;function IZ(){if(m2)return Ob;m2=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 Ob={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)}}]})}}}}},Ob}var Sb,g2;function RZ(){if(g2)return Sb;g2=1;let{getStaticPropertyName:r}=Pe();return Sb={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"})}}}},Sb}var Eb,y2;function FZ(){if(y2)return Eb;y2=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 Eb={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}}},Eb}var wb,b2;function BZ(){if(b2)return wb;b2=1;let r=Pe();return wb={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}}},wb}var Cb,x2;function NZ(){if(x2)return Cb;x2=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 Cb={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,x;for(;x=y.exec(p);){let{1:{length:v},index:S}=x;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,x;if(c.arguments.length<2)x="";else{let v=c.arguments[1];if(n(v))x=v.value;else return}l(c,m,g,y,x)}}return{Literal:o,CallExpression:u,NewExpression:u}}},Cb}var kb,v2;function LZ(){if(v2)return kb;v2=1;let r=Pe();return kb={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)}}}},kb}var Ab,O2;function $Z(){return O2||(O2=1,Ab={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)})}}}}),Ab}var Pb,S2;function cN(){if(S2)return Pb;S2=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)},x=[[/^\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}[^/]+`:"[^/]*"}(?=$|\\/$)`]],v=Object.create(null),S=(j,Q)=>{let I=v[j];return I||(I=x.reduce((N,F)=>N.replace(F[0],F[1].bind(j)),j),v[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,Pb=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 Pb}var Tb,E2;function MZ(){if(E2)return Tb;E2=1;let r=Pe(),e=cN(),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 Tb={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 x=typeof y=="string"?y:y.name;return g[x]||(g[x]=[]),typeof y=="string"?g[x].push({}):g[x].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:x,importNames:v,importNamePattern:S,allowImportNames:w,allowImportNamePattern:O})=>({matcher:e({allowRelativePaths:!0,ignorecase:!x}).add(g),customMessage:y,importNames:v,importNamePattern:S,allowImportNames:w,allowImportNamePattern:O}));if(Object.keys(o).length===0&&p.length===0)return{};function h(g,y,x){Object.hasOwn(u,g)&&u[g].forEach(v=>{let S=v.message,w=v.importNames,O=v.allowImportNames;if(!w&&!O){n.report({node:x,messageId:S?"pathWithCustomMessage":"path",data:{importSource:g,customMessage:S}});return}y.forEach((C,E)=>{if(E==="*"){let[k]=C;w?n.report({node:x,messageId:S?"everythingWithCustomMessage":"everything",loc:k.loc,data:{importSource:g,importNames:w,customMessage:S}}):O&&n.report({node:x,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:x,messageId:S?"importNameWithCustomMessage":"importName",loc:k.loc,data:{importSource:g,customMessage:S,importName:E}})}),O&&!O.includes(E)&&C.forEach(k=>{n.report({node:x,loc:k.loc,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:g,customMessage:S,importName:E,allowedImportNames:O}})})})})}function f(g,y,x){let v=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:v,customMessage:S}});return}x.forEach((k,A)=>{if(A==="*"){let[D]=k;w?n.report({node:g,messageId:S?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:D.loc,data:{importSource:v,importNames:w,customMessage:S}}):C?n.report({node:g,messageId:S?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:D.loc,data:{importSource:v,allowedImportNames:C,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}(w&&w.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}})}),C&&!C.includes(A)?k.forEach(D=>{n.report({node:g,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",loc:D.loc,data:{importSource:v,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: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(),x=new Map;if(g.type==="ExportAllDeclaration"){let v=i.getFirstToken(g,1);x.set("*",[{loc:v.loc}])}else if(g.specifiers)for(let v of g.specifiers){let S,w={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"&&(x.has(S)?x.get(S).push(w):x.set(S,[w]))}h(y,x,g),p.forEach(v=>{d(y,v)&&f(g,v,x)})}return{ImportDeclaration:m,ExportNamedDeclaration(g){g.source&&m(g)},ExportAllDeclaration:m}}},Tb}var Db,w2;function jZ(){if(w2)return Db;w2=1;let r=Pe(),e=cN(),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 Db={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 x=u[y],v=x?"customMessage":"defaultMessage";n.report({node:g,messageId:v,data:{name:y,customMessage:x}})}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}}))}}}}},Db}var _b,C2;function qZ(){if(C2)return _b;C2=1;let r=Pe();return _b={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))})}}}},_b}var Ib,k2;function QZ(){return k2||(k2=1,Ib={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}})}})},{})}}),Ib}var Rb,A2;function UZ(){if(A2)return Rb;A2=1;let r=Pe(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Rb={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"})}}}},Rb}var Fb,P2;function VZ(){if(P2)return Fb;P2=1;let r=Pe();return Fb={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)}}}},Fb}var Bb,T2;function WZ(){if(T2)return Bb;T2=1;let r=Pe();return Bb={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)}}}},Bb}var Nb,D2;function ZZ(){if(D2)return Nb;D2=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"})}}}}),Lb}var $b,I2;function GZ(){if(I2)return $b;I2=1;let r=Pe(),e={allowInParentheses:!0};return $b={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"})}}}},$b}var Mb,R2;function XZ(){if(R2)return Mb;R2=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 Mb={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)}}}},Mb}var jb,F2;function YZ(){if(F2)return jb;F2=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 jb={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 w=v;for(;w&&!S(w);)w=w.parent;return w}function c(v){let S=v.upper;return S.type==="function-expression-name"?S.upper:S}function p(v,S){let w=S.defs[0];if(!w)return!1;let{variableScope:O}=v.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(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 w=S.scope,O=S.defs[0],C=O&&O.parent&&O.parent.range,E=v.scope,k=v.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"(v){let w=l.getScope(v).childScopes.slice();for(;w.length;){let O=w.pop();w.push(...O.childScopes),x(O)}}}}},jb}var qb,B2;function HZ(){if(B2)return qb;B2=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 qb={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}})}}}},qb}var Qb,N2;function KZ(){return N2||(N2=1,Qb={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"})})}}}},Wb}var Zb,j2;function rz(){return j2||(j2=1,Zb={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"})}}}}),Zb}var zb,q2;function nz(){return q2||(q2=1,zb={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"})}}}}),zb}var Gb,Q2;function sz(){if(Q2)return Gb;Q2=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 Gb={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],x=y.invalidNodes.filter(v=>!d.has(v));for(let v of x)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)}}}},Gb}var Xb,U2;function iz(){if(U2)return Xb;U2=1;let r=Pe();return Xb={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"})}}}},Xb}var Yb,V2;function az(){if(V2)return Yb;V2=1;let r=Pe();return Yb={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(),x=c(y),v=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})})}}}},Hb}var Kb,Z2;function lz(){if(Z2)return Kb;Z2=1;let r=Pe();return Kb={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]])}})}}}},Kb}var Jb,z2;function uz(){return z2||(z2=1,Jb={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)}}}}}),Jb}var ex,G2;function cz(){return G2||(G2=1,ex={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 x(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 v(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:x,VariableDeclarator:v,MemberExpression:S,MethodDefinition:w,PropertyDefinition:O,Property:w,FunctionExpression:x,ArrowFunctionExpression:x}}}),ex}var tx,X2;function fz(){if(X2)return tx;X2=1;let r=Pe();return tx={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")}}}},tx}var rx,Y2;function pz(){if(Y2)return rx;Y2=1;let r=RO(),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(v),g=null}}}},rx}var nx,H2;function hz(){if(H2)return nx;H2=1;let r=Pe(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),t={"==":"!=","!=":"==","===":"!==","!==":"==="},s=r.getPrecedence({type:"LogicalExpression",operator:"||"});return nx={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 sx={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)}}}},sx}var ix,J2;function mz(){if(J2)return ix;J2=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 ix={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"}))}}}},ix}var ax,eR;function gz(){if(eR)return ax;eR=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 ax={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}}},ax}var ox,tR;function yz(){if(tR)return ox;tR=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 ox={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)})`)}}]})}}}},ox}var lx,rR;function bz(){if(rR)return lx;rR=1;let r=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),t=new Set(["in","instanceof"]);function s(n){return n.type==="ObjectPattern"||n.type==="ArrayPattern"}return lx={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)}}}},lx}var ux,nR;function xz(){if(nR)return ux;nR=1;let r=Pe();function e(){return!0}function t(){return!1}return ux={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}}},cx}var fx,iR;function Oz(){return iR||(iR=1,fx={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}`}})}}}}),fx}var px,aR;function Sz(){if(aR)return px;aR=1;let r=Pe();return px={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 x(D){let _=D.parent;return _.type==="ExpressionStatement"?!0:_.type==="SequenceExpression"?_.expressions.at(-1)===D?x(_):!0:!1}function v(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"&&x(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&&x(T)&&!r.isLogicalAssignmentOperator(T.operator)||T.type==="UpdateExpression"&&x(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=v(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)})}}}}}},px}var hx,oR;function Ez(){if(oR)return hx;oR=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 hx={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 w={segment:v,assignment:S};m.results.push(w),yield w}}let y=f.variable.references.filter(v=>v.isRead());if(!y.length)return;let x=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(x&&t(x,v.identifier))continue;return}if(!x){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(x=>x.type==="Variable"&&x.parent.parent.type==="ExportNamedDeclaration"||x.type==="FunctionName"&&(x.node.parent.type==="ExportNamedDeclaration"||x.node.parent.type==="ExportDefaultDeclaration")||x.type==="ClassName"&&(x.node.parent.type==="ExportNamedDeclaration"||x.node.parent.type==="ExportDefaultDeclaration"))||g.references.some(x=>x.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]})}}}}},dx}var mx,uR;function Cz(){if(uR)return mx;uR=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 mx={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 x=y.resolved,v=l(y),S=l(x),w=null;if(v.includes(x))w="nested";else{let O=v.length-1,C=S.length-1;do O--,C--;while(v[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<=x.start?w="forward":_&&x.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:x.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[x,v]=y.arguments,S=s(x,d),w=s(v,d);typeof S=="string"&&h(y,S,w||"")}}}}},mx}var gx,cR;function kz(){if(cR)return gx;cR=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 gx={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}})}}}},gx}var yx,fR;function Az(){return fR||(fR=1,yx={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"}))}}}}),yx}var bx,pR;function Pz(){if(pR)return bx;pR=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 bx={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}}},bx}var xx,hR;function Tz(){if(hR)return xx;hR=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 xx={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"})}}}}},xx}var vx,dR;function Dz(){if(dR)return vx;dR=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 Ox={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,x,v){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:x},suggest:[{messageId:r.isDirective(g.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(C){return C.removeRange(w)}},...v?[]:[{messageId:"escapeBackslash",fix(C){return C.insertTextBeforeRange(w,"\\")}}]]})}function f(g,y){let x=g.type==="TemplateElement",v=y[0][1],S=!n.has(v),w;x?(w=v==="`",v==="$"?S=y.input[y.index+2]!=="{":v==="{"&&(S=y.input[y.index-1]!=="$")):w=v===g.raw[0],S&&!w&&h(g,y.index,y[0].slice(1))}function d(g){let{pattern:y,flags:x}=g.regex,v,S=x.includes("u"),w=x.includes("v");try{v=p.parsePattern(y,0,y.length,{unicode:S,unicodeSets:w})}catch{return}let O=[];t(v,{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}}},Sx}var Ex,yR;function Rz(){if(yR)return Ex;yR=1;let r=Pe(),e=Ko();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 Ex={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 x of m){if(!x.reachable){y.has(x)||(y.add(x),p(d,x.allPrevSegments.filter(c),y));continue}l.has(x)&&d.push(...l.get(x).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 x=y.range[0],v=y.range[1];if(u.traversedTryBlockStatements.some(w=>{let O=w.range[0],C=w.range[1];return x>=O&&v<=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}}},Ex}var wx,bR;function Fz(){if(bR)return wx;bR=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],x=g.parent.type==="AssignmentPattern"?g.parent.right:null,v=x&&x.range[0],S=x&&x.range[1];return m.references.some(w=>{let O=w.identifier.range[0],C=w.identifier.range[1];return!w.init&&(O=v&&C<=S||!r.isFunction(h)&&O>=f&&C<=d)})}}function p(h){return h.name==="let"}return wx={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 x=f.getDeclaredVariables(y),v=l(y);return!(y.parent.type==="SwitchCase"||y.declarations.some(d)||x.some(e)||x.some(o)||x.some(u(v))||x.some(p)||r.isInLoop(y)&&(x.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(x){let v=f.getFirstToken(y,{filter:S=>S.value==="var"});return m(y)?x.replaceText(v,"let"):null}})}return{"VariableDeclaration:exit"(y){y.kind==="var"&&g(y)}}}},wx}var Cx,xR;function Bz(){return xR||(xR=1,Cx={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"})}}}}),Cx}var kx,vR;function Nz(){if(vR)return kx;vR=1;let r=Pc(),e=Pe(),t=40;return kx={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",x="";l==="start"?x=`^[\\s${g}]*`:/^\w/u.test(d)&&(x=y);let v=/\w$/u.test(d)?y:"",S="iu";return new RegExp(`${x}${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 x="",v=!1;for(let S of m.trim().split(/\s+/u)){let w=x?`${x} ${S}`:S;if(w.length<=t)x=w;else{v=!0;break}}s.report({node:d,messageId:"unexpectedComment",data:{matchedTerm:y,comment:`${x}${v?"...":""}`}})})}return{Program(){n.getAllComments().filter(m=>m.type!=="Shebang").forEach(f)}}}},kx}var Ax,OR;function Lz(){if(OR)return Ax;OR=1;let r=Pe();return Ax={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))}}}},Ax}var Px,SR;function $z(){return SR||(SR=1,Px={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"})}}}}),Px}var Tx,ER;function Mz(){if(ER)return Tx;ER=1;let r={enum:["beside","below","any"]};return Tx={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")}}},Tx}var Dx,wR;function jz(){if(wR)return Dx;wR=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 Dx={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),x=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 x?null:S.insertTextAfter(f,` +`:d=f,h.push(new r(p.pos,d)),p.advance(d.length)}}return h}return Wy={parseStringLiteral:o,parseTemplateToken:u},Wy}var Zy,jI;function rZ(){if(jI)return Zy;jI=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}=eZ(),p=Pe(),{isValidWithUnicodeFlag:h}=jO(),{parseStringLiteral:f,parseTemplateToken:d}=tZ();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)}},x=Object.keys(y);function v(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 Zy={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 x)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=v(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})}}}}}},Zy}var zy,qI;function nZ(){if(qI)return zy;qI=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 zy={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 x(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 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:v(E).loc,messageId:"unexpectedMixedOperator",data:A}),d.report({node:k,loc:v(k).loc,messageId:"unexpectedMixedOperator",data:A})}function w(O){c.test(O.parent.type)&&x(O)&&!y(O)&&S(O)}return{BinaryExpression:w,LogicalExpression:w}}},zy}var Gy,QI;function sZ(){return QI||(QI=1,Gy={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 x=y.arguments[0];return x.type!=="Literal"||typeof x.value!="string"?h:i.includes(x.value)?u:/^\.{0,2}\//u.test(x.value)?c:p}function m(y){let x={};return y.forEach(v=>{let S=f(v.init);x[S]=!0}),!!(x[a]&&(x[l]||x[o]))}function g(y){let x={};return y.forEach(v=>{f(v.init)===a&&(x[d(v.init)]=!0)}),Object.keys(x).length<=1}return{VariableDeclaration(y){m(y.declarations)?r.report({node:y,messageId:"noMixRequire"}):t&&!g(y.declarations)&&r.report({node:y,messageId:"noMixCoreModuleFileComputed"})}}}}),Gy}var Xy,UI;function iZ(){return UI||(UI=1,Xy={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"})}}})}}}}),Xy}var Yy,VI;function aZ(){return VI||(VI=1,Yy={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"})}}}}),Yy}var Hy,WI;function oZ(){if(WI)return Hy;WI=1;let r=Pe();return Hy={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]]," ")})})}}}},Hy}var Ky,ZI;function lZ(){if(ZI)return Ky;ZI=1;let r=Pe();return Ky={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"})}}}},Ky}var Jy,zI;function uZ(){return zI||(zI=1,Jy={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)}}}}),Jy}var eb,GI;function cZ(){return GI||(GI=1,eb={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)}}}}),eb}var tb,XI;function fZ(){return XI||(XI=1,tb={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"})}}}}),tb}var rb,YI;function pZ(){return YI||(YI=1,rb={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"})}}}}),rb}var nb,HI;function hZ(){return HI||(HI=1,nb={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"})}}}}),nb}var sb,KI;function dZ(){return KI||(KI=1,sb={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"})}}}}),sb}var ib,JI;function mZ(){if(JI)return ib;JI=1;let r=Pe(),e=new Set(["apply","bind","call"]);return ib={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"})})}}}},ib}var ab,e2;function gZ(){if(e2)return ab;e2=1;let r=["Symbol","BigInt"];return ab={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}})})}}}}},ab}var ob,t2;function yZ(){if(t2)return ob;t2=1;let r=Pe();return ob={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"})}}}},ob}var lb,r2;function bZ(){return r2||(r2=1,lb={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"})}}}}),lb}var ub,n2;function xZ(){return n2||(n2=1,ub={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"})})}}}}),ub}var cb,s2;function vZ(){if(s2)return cb;s2=1;let{getVariableByName:r}=Pe();return cb={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}})}}}}},cb}var fb,i2;function OZ(){if(i2)return fb;i2=1;let r=/\\[89]/u;function e(t){return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}return fb={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})}}}}},fb}var pb,a2;function SZ(){if(a2)return pb;a2=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 pb={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}})}}}}},pb}var hb,o2;function EZ(){if(o2)return hb;o2=1;let{getVariableByName:r,isArrowToken:e,isStartOfExpressionStatement:t,needsPrecedingSemicolon:s}=Pe();return hb={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}}},hb}var db,l2;function wZ(){return l2||(l2=1,db={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"})}}}}),db}var mb,u2;function CZ(){return u2||(u2=1,mb={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]}})}}}}),mb}var gb,c2;function kZ(){if(c2)return gb;c2=1;let r=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return gb={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}}},gb}var yb,f2;function AZ(){return f2||(f2=1,yb={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"})}}}}),yb}var bb,p2;function PZ(){if(p2)return bb;p2=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 bb={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}})}}}},bb}var xb,h2;function TZ(){return h2||(h2=1,xb={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"})}}}}),xb}var vb,d2;function DZ(){return d2||(d2=1,vb={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"})}}}}),vb}var Ob,m2;function _Z(){if(m2)return Ob;m2=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 Ob={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)}}]})}}}}},Ob}var Sb,g2;function IZ(){if(g2)return Sb;g2=1;let{getStaticPropertyName:r}=Pe();return Sb={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"})}}}},Sb}var Eb,y2;function RZ(){if(y2)return Eb;y2=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 Eb={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}}},Eb}var wb,b2;function FZ(){if(b2)return wb;b2=1;let r=Pe();return wb={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}}},wb}var Cb,x2;function BZ(){if(x2)return Cb;x2=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 Cb={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,x;for(;x=y.exec(p);){let{1:{length:v},index:S}=x;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,x;if(c.arguments.length<2)x="";else{let v=c.arguments[1];if(n(v))x=v.value;else return}l(c,m,g,y,x)}}return{Literal:o,CallExpression:u,NewExpression:u}}},Cb}var kb,v2;function NZ(){if(v2)return kb;v2=1;let r=Pe();return kb={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)}}}},kb}var Ab,O2;function LZ(){return O2||(O2=1,Ab={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)})}}}}),Ab}var Pb,S2;function cN(){if(S2)return Pb;S2=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)},x=[[/^\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}[^/]+`:"[^/]*"}(?=$|\\/$)`]],v=Object.create(null),S=(j,Q)=>{let I=v[j];return I||(I=x.reduce((N,F)=>N.replace(F[0],F[1].bind(j)),j),v[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,Pb=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 Pb}var Tb,E2;function $Z(){if(E2)return Tb;E2=1;let r=Pe(),e=cN(),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 Tb={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 x=typeof y=="string"?y:y.name;return g[x]||(g[x]=[]),typeof y=="string"?g[x].push({}):g[x].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:x,importNames:v,importNamePattern:S,allowImportNames:w,allowImportNamePattern:O})=>({matcher:e({allowRelativePaths:!0,ignorecase:!x}).add(g),customMessage:y,importNames:v,importNamePattern:S,allowImportNames:w,allowImportNamePattern:O}));if(Object.keys(o).length===0&&p.length===0)return{};function h(g,y,x){Object.hasOwn(u,g)&&u[g].forEach(v=>{let S=v.message,w=v.importNames,O=v.allowImportNames;if(!w&&!O){n.report({node:x,messageId:S?"pathWithCustomMessage":"path",data:{importSource:g,customMessage:S}});return}y.forEach((C,E)=>{if(E==="*"){let[k]=C;w?n.report({node:x,messageId:S?"everythingWithCustomMessage":"everything",loc:k.loc,data:{importSource:g,importNames:w,customMessage:S}}):O&&n.report({node:x,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:x,messageId:S?"importNameWithCustomMessage":"importName",loc:k.loc,data:{importSource:g,customMessage:S,importName:E}})}),O&&!O.includes(E)&&C.forEach(k=>{n.report({node:x,loc:k.loc,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:g,customMessage:S,importName:E,allowedImportNames:O}})})})})}function f(g,y,x){let v=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:v,customMessage:S}});return}x.forEach((k,A)=>{if(A==="*"){let[D]=k;w?n.report({node:g,messageId:S?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:D.loc,data:{importSource:v,importNames:w,customMessage:S}}):C?n.report({node:g,messageId:S?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:D.loc,data:{importSource:v,allowedImportNames:C,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}(w&&w.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}})}),C&&!C.includes(A)?k.forEach(D=>{n.report({node:g,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",loc:D.loc,data:{importSource:v,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: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(),x=new Map;if(g.type==="ExportAllDeclaration"){let v=i.getFirstToken(g,1);x.set("*",[{loc:v.loc}])}else if(g.specifiers)for(let v of g.specifiers){let S,w={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"&&(x.has(S)?x.get(S).push(w):x.set(S,[w]))}h(y,x,g),p.forEach(v=>{d(y,v)&&f(g,v,x)})}return{ImportDeclaration:m,ExportNamedDeclaration(g){g.source&&m(g)},ExportAllDeclaration:m}}},Tb}var Db,w2;function MZ(){if(w2)return Db;w2=1;let r=Pe(),e=cN(),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 Db={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 x=u[y],v=x?"customMessage":"defaultMessage";n.report({node:g,messageId:v,data:{name:y,customMessage:x}})}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}}))}}}}},Db}var _b,C2;function jZ(){if(C2)return _b;C2=1;let r=Pe();return _b={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))})}}}},_b}var Ib,k2;function qZ(){return k2||(k2=1,Ib={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}})}})},{})}}),Ib}var Rb,A2;function QZ(){if(A2)return Rb;A2=1;let r=Pe(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Rb={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"})}}}},Rb}var Fb,P2;function UZ(){if(P2)return Fb;P2=1;let r=Pe();return Fb={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)}}}},Fb}var Bb,T2;function VZ(){if(T2)return Bb;T2=1;let r=Pe();return Bb={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)}}}},Bb}var Nb,D2;function WZ(){if(D2)return Nb;D2=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"})}}}}),Lb}var $b,I2;function zZ(){if(I2)return $b;I2=1;let r=Pe(),e={allowInParentheses:!0};return $b={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"})}}}},$b}var Mb,R2;function GZ(){if(R2)return Mb;R2=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 Mb={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)}}}},Mb}var jb,F2;function XZ(){if(F2)return jb;F2=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 jb={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 w=v;for(;w&&!S(w);)w=w.parent;return w}function c(v){let S=v.upper;return S.type==="function-expression-name"?S.upper:S}function p(v,S){let w=S.defs[0];if(!w)return!1;let{variableScope:O}=v.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(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 w=S.scope,O=S.defs[0],C=O&&O.parent&&O.parent.range,E=v.scope,k=v.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"(v){let w=l.getScope(v).childScopes.slice();for(;w.length;){let O=w.pop();w.push(...O.childScopes),x(O)}}}}},jb}var qb,B2;function YZ(){if(B2)return qb;B2=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 qb={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}})}}}},qb}var Qb,N2;function HZ(){return N2||(N2=1,Qb={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"})})}}}},Wb}var Zb,j2;function tz(){return j2||(j2=1,Zb={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"})}}}}),Zb}var zb,q2;function rz(){return q2||(q2=1,zb={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"})}}}}),zb}var Gb,Q2;function nz(){if(Q2)return Gb;Q2=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 Gb={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],x=y.invalidNodes.filter(v=>!d.has(v));for(let v of x)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)}}}},Gb}var Xb,U2;function sz(){if(U2)return Xb;U2=1;let r=Pe();return Xb={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"})}}}},Xb}var Yb,V2;function iz(){if(V2)return Yb;V2=1;let r=Pe();return Yb={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(),x=c(y),v=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})})}}}},Hb}var Kb,Z2;function oz(){if(Z2)return Kb;Z2=1;let r=Pe();return Kb={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]])}})}}}},Kb}var Jb,z2;function lz(){return z2||(z2=1,Jb={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)}}}}}),Jb}var ex,G2;function uz(){return G2||(G2=1,ex={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 x(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 v(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:x,VariableDeclarator:v,MemberExpression:S,MethodDefinition:w,PropertyDefinition:O,Property:w,FunctionExpression:x,ArrowFunctionExpression:x}}}),ex}var tx,X2;function cz(){if(X2)return tx;X2=1;let r=Pe();return tx={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")}}}},tx}var rx,Y2;function fz(){if(Y2)return rx;Y2=1;let r=RO(),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(v),g=null}}}},rx}var nx,H2;function pz(){if(H2)return nx;H2=1;let r=Pe(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),t={"==":"!=","!=":"==","===":"!==","!==":"==="},s=r.getPrecedence({type:"LogicalExpression",operator:"||"});return nx={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 sx={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)}}}},sx}var ix,J2;function dz(){if(J2)return ix;J2=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 ix={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"}))}}}},ix}var ax,eR;function mz(){if(eR)return ax;eR=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 ax={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}}},ax}var ox,tR;function gz(){if(tR)return ox;tR=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 ox={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)})`)}}]})}}}},ox}var lx,rR;function yz(){if(rR)return lx;rR=1;let r=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),t=new Set(["in","instanceof"]);function s(n){return n.type==="ObjectPattern"||n.type==="ArrayPattern"}return lx={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)}}}},lx}var ux,nR;function bz(){if(nR)return ux;nR=1;let r=Pe();function e(){return!0}function t(){return!1}return ux={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}}},cx}var fx,iR;function vz(){return iR||(iR=1,fx={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}`}})}}}}),fx}var px,aR;function Oz(){if(aR)return px;aR=1;let r=Pe();return px={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 x(D){let _=D.parent;return _.type==="ExpressionStatement"?!0:_.type==="SequenceExpression"?_.expressions.at(-1)===D?x(_):!0:!1}function v(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"&&x(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&&x(T)&&!r.isLogicalAssignmentOperator(T.operator)||T.type==="UpdateExpression"&&x(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=v(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)})}}}}}},px}var hx,oR;function Sz(){if(oR)return hx;oR=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 hx={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 w={segment:v,assignment:S};m.results.push(w),yield w}}let y=f.variable.references.filter(v=>v.isRead());if(!y.length)return;let x=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(x&&t(x,v.identifier))continue;return}if(!x){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(x=>x.type==="Variable"&&x.parent.parent.type==="ExportNamedDeclaration"||x.type==="FunctionName"&&(x.node.parent.type==="ExportNamedDeclaration"||x.node.parent.type==="ExportDefaultDeclaration")||x.type==="ClassName"&&(x.node.parent.type==="ExportNamedDeclaration"||x.node.parent.type==="ExportDefaultDeclaration"))||g.references.some(x=>x.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]})}}}}},dx}var mx,uR;function wz(){if(uR)return mx;uR=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 mx={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 x=y.resolved,v=l(y),S=l(x),w=null;if(v.includes(x))w="nested";else{let O=v.length-1,C=S.length-1;do O--,C--;while(v[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<=x.start?w="forward":_&&x.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:x.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[x,v]=y.arguments,S=s(x,d),w=s(v,d);typeof S=="string"&&h(y,S,w||"")}}}}},mx}var gx,cR;function Cz(){if(cR)return gx;cR=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 gx={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}})}}}},gx}var yx,fR;function kz(){return fR||(fR=1,yx={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"}))}}}}),yx}var bx,pR;function Az(){if(pR)return bx;pR=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 bx={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}}},bx}var xx,hR;function Pz(){if(hR)return xx;hR=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 xx={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"})}}}}},xx}var vx,dR;function Tz(){if(dR)return vx;dR=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 Ox={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,x,v){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:x},suggest:[{messageId:r.isDirective(g.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(C){return C.removeRange(w)}},...v?[]:[{messageId:"escapeBackslash",fix(C){return C.insertTextBeforeRange(w,"\\")}}]]})}function f(g,y){let x=g.type==="TemplateElement",v=y[0][1],S=!n.has(v),w;x?(w=v==="`",v==="$"?S=y.input[y.index+2]!=="{":v==="{"&&(S=y.input[y.index-1]!=="$")):w=v===g.raw[0],S&&!w&&h(g,y.index,y[0].slice(1))}function d(g){let{pattern:y,flags:x}=g.regex,v,S=x.includes("u"),w=x.includes("v");try{v=p.parsePattern(y,0,y.length,{unicode:S,unicodeSets:w})}catch{return}let O=[];t(v,{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}}},Sx}var Ex,yR;function Iz(){if(yR)return Ex;yR=1;let r=Pe(),e=Ko();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 Ex={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 x of m){if(!x.reachable){y.has(x)||(y.add(x),p(d,x.allPrevSegments.filter(c),y));continue}l.has(x)&&d.push(...l.get(x).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 x=y.range[0],v=y.range[1];if(u.traversedTryBlockStatements.some(w=>{let O=w.range[0],C=w.range[1];return x>=O&&v<=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}}},Ex}var wx,bR;function Rz(){if(bR)return wx;bR=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],x=g.parent.type==="AssignmentPattern"?g.parent.right:null,v=x&&x.range[0],S=x&&x.range[1];return m.references.some(w=>{let O=w.identifier.range[0],C=w.identifier.range[1];return!w.init&&(O=v&&C<=S||!r.isFunction(h)&&O>=f&&C<=d)})}}function p(h){return h.name==="let"}return wx={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 x=f.getDeclaredVariables(y),v=l(y);return!(y.parent.type==="SwitchCase"||y.declarations.some(d)||x.some(e)||x.some(o)||x.some(u(v))||x.some(p)||r.isInLoop(y)&&(x.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(x){let v=f.getFirstToken(y,{filter:S=>S.value==="var"});return m(y)?x.replaceText(v,"let"):null}})}return{"VariableDeclaration:exit"(y){y.kind==="var"&&g(y)}}}},wx}var Cx,xR;function Fz(){return xR||(xR=1,Cx={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"})}}}}),Cx}var kx,vR;function Bz(){if(vR)return kx;vR=1;let r=Pc(),e=Pe(),t=40;return kx={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",x="";l==="start"?x=`^[\\s${g}]*`:/^\w/u.test(d)&&(x=y);let v=/\w$/u.test(d)?y:"",S="iu";return new RegExp(`${x}${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 x="",v=!1;for(let S of m.trim().split(/\s+/u)){let w=x?`${x} ${S}`:S;if(w.length<=t)x=w;else{v=!0;break}}s.report({node:d,messageId:"unexpectedComment",data:{matchedTerm:y,comment:`${x}${v?"...":""}`}})})}return{Program(){n.getAllComments().filter(m=>m.type!=="Shebang").forEach(f)}}}},kx}var Ax,OR;function Nz(){if(OR)return Ax;OR=1;let r=Pe();return Ax={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))}}}},Ax}var Px,SR;function Lz(){return SR||(SR=1,Px={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"})}}}}),Px}var Tx,ER;function $z(){if(ER)return Tx;ER=1;let r={enum:["beside","below","any"]};return Tx={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")}}},Tx}var Dx,wR;function Mz(){if(wR)return Dx;wR=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 Dx={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),x=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 x?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,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 x?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 v?null:C.removeRange([g.range[1],d.range[0]])}})}}return{ObjectExpression:c,ObjectPattern:c,ImportDeclaration:c,ExportNamedDeclaration:c}}},Dx}var _x,CR;function qz(){if(CR)return _x;CR=1;let r=Pe();return _x={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(x){return x.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(x){return x.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,x,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(x,v)){let w=(i.arraysInObjectsException&&r.isClosingBracketToken(x)||i.objectsInObjectsException&&r.isClosingBraceToken(x))&&s.getNodeByRangeIndex(x.range[0]).type,O=i.arraysInObjectsException&&w==="ArrayExpression"||i.objectsInObjectsException&&(w==="ObjectExpression"||w==="ObjectPattern")?!i.spaced:i.spaced,C=s.isSpaceBetweenTokens(x,v);O&&!C&&u(m,v),!O&&C&&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),x=s.getTokenAfter(g,{includeComments:!0}),v=s.getTokenBefore(y,{includeComments:!0});c(m,g,x,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 x=s.getTokenBefore(g),v=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(x,{includeComments:!0}),w=s.getTokenBefore(v,{includeComments:!0});c(m,x,S,w,v)}function d(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],y=m.specifiers.at(-1),x=s.getTokenBefore(g),v=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(x,{includeComments:!0}),w=s.getTokenBefore(v,{includeComments:!0});c(m,x,S,w,v)}return{ObjectPattern:h,ObjectExpression:h,ImportDeclaration:f,ExportNamedDeclaration:d}}},_x}var Ix,kR;function Qz(){return kR||(kR=1,Ix={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"}):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,ve;if(R.value.params.length===0?ve=d.getFirstToken(R.value,e.isOpeningParenToken):ve=d.getTokenBefore(R.value.params[0]),R.value.params.length===1){let K=e.isOpeningParenToken(ve),le=ve.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&&x(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&&x(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)}})}}}}}},Rx}var Fx,PR;function Vz(){if(PR)return Fx;PR=1;let r=Pe();function e(t){return r.STATEMENT_LIST_PARENTS.has(t.parent.type)}return Fx={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=x(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=x(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(!v(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}}},Fx}var Bx,TR;function Wz(){return TR||(TR=1,Bx={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}}}),Bx}var Nx,DR;function Zz(){if(DR)return Nx;DR=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 Nx={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]),x=i.getText().slice(g.range[1],u.right.range[1]);return i.commentsExistBetween(m,g)?null:d.replaceText(u,`${y}${f}${x}`)}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}}},Nx}var Lx,_R;function zz(){if(_R)return Lx;_R=1;let r=Pe();return Lx={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),x=!r.isTokenOnSameLine(c,d),v,S;if(y!==x&&p!=="none"){if(a.getTokenBefore(c,{includeComments:!0})!==f&&a.getTokenAfter(c,{includeComments:!0})!==d)return null;v=g,S=m}else{let w=r.createGlobalLinebreakMatcher();if(v=p==="before"||m.trim()?m:m.replace(w,""),S=p==="after"||g.trim()?g:g.replace(w,""),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,x=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:x}):y==="before"&&r.isTokenOnSameLine(d,f)?e.report({node:c,loc:f.loc,messageId:"operatorAtBeginning",data:{operator:h},fix:x}):y==="after"&&r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"operatorAtEnd",data:{operator:h},fix:x}):y==="none"&&e.report({node:c,loc:f.loc,messageId:"noLinebreak",data:{operator:h},fix:x}))}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,":")}}}},Lx}var $x,IR;function Gz(){if(IR)return $x;IR=1;let r=Pe();return $x={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}),x=i.getLastToken(d),v=c(x),S=i.getTokenAfter(v,{includeComments:!0}),w=o(y,g),O=o(v,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,` +`)}});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 x?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 v?null:C.removeRange([g.range[1],d.range[0]])}})}}return{ObjectExpression:c,ObjectPattern:c,ImportDeclaration:c,ExportNamedDeclaration:c}}},Dx}var _x,CR;function jz(){if(CR)return _x;CR=1;let r=Pe();return _x={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(x){return x.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(x){return x.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,x,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(x,v)){let w=(i.arraysInObjectsException&&r.isClosingBracketToken(x)||i.objectsInObjectsException&&r.isClosingBraceToken(x))&&s.getNodeByRangeIndex(x.range[0]).type,O=i.arraysInObjectsException&&w==="ArrayExpression"||i.objectsInObjectsException&&(w==="ObjectExpression"||w==="ObjectPattern")?!i.spaced:i.spaced,C=s.isSpaceBetweenTokens(x,v);O&&!C&&u(m,v),!O&&C&&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),x=s.getTokenAfter(g,{includeComments:!0}),v=s.getTokenBefore(y,{includeComments:!0});c(m,g,x,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 x=s.getTokenBefore(g),v=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(x,{includeComments:!0}),w=s.getTokenBefore(v,{includeComments:!0});c(m,x,S,w,v)}function d(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],y=m.specifiers.at(-1),x=s.getTokenBefore(g),v=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(x,{includeComments:!0}),w=s.getTokenBefore(v,{includeComments:!0});c(m,x,S,w,v)}return{ObjectPattern:h,ObjectExpression:h,ImportDeclaration:f,ExportNamedDeclaration:d}}},_x}var Ix,kR;function qz(){return kR||(kR=1,Ix={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"}):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,ve;if(R.value.params.length===0?ve=d.getFirstToken(R.value,e.isOpeningParenToken):ve=d.getTokenBefore(R.value.params[0]),R.value.params.length===1){let K=e.isOpeningParenToken(ve),le=ve.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&&x(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&&x(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)}})}}}}}},Rx}var Fx,PR;function Uz(){if(PR)return Fx;PR=1;let r=Pe();function e(t){return r.STATEMENT_LIST_PARENTS.has(t.parent.type)}return Fx={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=x(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=x(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(!v(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}}},Fx}var Bx,TR;function Vz(){return TR||(TR=1,Bx={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}}}),Bx}var Nx,DR;function Wz(){if(DR)return Nx;DR=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 Nx={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]),x=i.getText().slice(g.range[1],u.right.range[1]);return i.commentsExistBetween(m,g)?null:d.replaceText(u,`${y}${f}${x}`)}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}}},Nx}var Lx,_R;function Zz(){if(_R)return Lx;_R=1;let r=Pe();return Lx={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),x=!r.isTokenOnSameLine(c,d),v,S;if(y!==x&&p!=="none"){if(a.getTokenBefore(c,{includeComments:!0})!==f&&a.getTokenAfter(c,{includeComments:!0})!==d)return null;v=g,S=m}else{let w=r.createGlobalLinebreakMatcher();if(v=p==="before"||m.trim()?m:m.replace(w,""),S=p==="after"||g.trim()?g:g.replace(w,""),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,x=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:x}):y==="before"&&r.isTokenOnSameLine(d,f)?e.report({node:c,loc:f.loc,messageId:"operatorAtBeginning",data:{operator:h},fix:x}):y==="after"&&r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"operatorAtEnd",data:{operator:h},fix:x}):y==="none"&&e.report({node:c,loc:f.loc,messageId:"noLinebreak",data:{operator:h},fix:x}))}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,":")}}}},Lx}var $x,IR;function zz(){if(IR)return $x;IR=1;let r=Pe();return $x={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}),x=i.getLastToken(d),v=c(x),S=i.getTokenAfter(v,{includeComments:!0}),w=o(y,g),O=o(v,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:v.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:v.loc.end},messageId:"neverPadBlock",fix(C){return C.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}},$x}var Mx,RR;function Xz(){if(RR)return Mx;RR=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(x){return{test:(v,S)=>S.getFirstToken(v).value===x}}function a(x){return{test:(v,S)=>v.loc.start.line===v.loc.end.line&&S.getFirstToken(v).value===x}}function l(x){return{test:(v,S)=>v.loc.start.line!==v.loc.end.line&&S.getFirstToken(v).value===x}}function o(x){return{test:v=>v.type===x}}function u(x){if(x.type==="ExpressionStatement"){let v=r.skipChainExpression(x.expression);return v.type==="UnaryExpression"&&(v=r.skipChainExpression(v.argument)),v.type==="CallExpression"&&r.isFunction(v.callee)}return!1}function c(x,v){if(v.type==="DoWhileStatement"&&v.body.type==="BlockStatement"||u(v))return!0;let S=x.getLastToken(v,r.isNotSemicolonToken),w=S&&r.isClosingBraceToken(S)?x.getNodeByRangeIndex(S.range[0]):null;return!!w&&(w.type==="BlockStatement"||w.type==="SwitchStatement")}function p(x,v){let S=x.getLastToken(v),w=x.getTokenBefore(S),O=x.getTokenAfter(S);return!!(w&&O&&w.range[0]>=v.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(x,v,S){return v+S}function f(){}function d(x,v,S,w){w.length!==0&&x.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=x.sourceCode.text.slice(k,A).replace(t,h);return O.replaceTextRange([k,A],D)}})}function m(x,v,S,w){w.length>0||x.report({node:S,messageId:"expectedBlankLine",fix(O){let C=x.sourceCode,E=p(C,v),k=C.getFirstTokenBetween(E,S,{includeComments:!0,filter(D){return r.isTokenOnSameLine(E,D)?(E=D,!1):!0}})||S,A=r.isTokenOnSameLine(E,k)?` +`)}})))}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}},$x}var Mx,RR;function Gz(){if(RR)return Mx;RR=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(x){return{test:(v,S)=>S.getFirstToken(v).value===x}}function a(x){return{test:(v,S)=>v.loc.start.line===v.loc.end.line&&S.getFirstToken(v).value===x}}function l(x){return{test:(v,S)=>v.loc.start.line!==v.loc.end.line&&S.getFirstToken(v).value===x}}function o(x){return{test:v=>v.type===x}}function u(x){if(x.type==="ExpressionStatement"){let v=r.skipChainExpression(x.expression);return v.type==="UnaryExpression"&&(v=r.skipChainExpression(v.argument)),v.type==="CallExpression"&&r.isFunction(v.callee)}return!1}function c(x,v){if(v.type==="DoWhileStatement"&&v.body.type==="BlockStatement"||u(v))return!0;let S=x.getLastToken(v,r.isNotSemicolonToken),w=S&&r.isClosingBraceToken(S)?x.getNodeByRangeIndex(S.range[0]):null;return!!w&&(w.type==="BlockStatement"||w.type==="SwitchStatement")}function p(x,v){let S=x.getLastToken(v),w=x.getTokenBefore(S),O=x.getTokenAfter(S);return!!(w&&O&&w.range[0]>=v.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(x,v,S){return v+S}function f(){}function d(x,v,S,w){w.length!==0&&x.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=x.sourceCode.text.slice(k,A).replace(t,h);return O.replaceTextRange([k,A],D)}})}function m(x,v,S,w){w.length>0||x.report({node:S,messageId:"expectedBlankLine",fix(O){let C=x.sourceCode,E=p(C,v),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:(x,v)=>c(v,x)},"cjs-export":{test:(x,v)=>x.type==="ExpressionStatement"&&x.expression.type==="AssignmentExpression"&&s.test(v.getText(x.expression.left))},"cjs-import":{test:(x,v)=>x.type==="VariableDeclaration"&&x.declarations.length>0&&!!x.declarations[0].init&&n.test(v.getText(x.declarations[0].init))},directive:{test:r.isDirective},expression:{test:x=>x.type==="ExpressionStatement"&&!r.isDirective(x)},iife:{test:u},"multiline-block-like":{test:(x,v)=>x.loc.start.line!==x.loc.end.line&&c(v,x)},"multiline-expression":{test:x=>x.loc.start.line!==x.loc.end.line&&x.type==="ExpressionStatement"&&!r.isDirective(x)},"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 Mx={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(x){let v=x.sourceCode,S=x.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,v)}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(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&&R.push([j,Q]),j=Q}while(j.range[0]l.type==="Identifier")&&a.length!==new Set(a.map(l=>l.name)).size}return jx={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 x=n(d);x.isCallback&&(!o||!m.this||x.isLexicalThis)&&!m.super&&!m.meta&&a.report({node:d,messageId:"preferArrowCallback",*fix(v){if(!x.isLexicalThis&&m.this||i(d.params))return;if(x.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),w=c.getTokenAfter(S,r.isOpeningParenToken),O=c.getTokenBefore(d.body);c.commentsExistBetween(S,w)?(yield v.remove(S),d.id&&(yield v.remove(d.id))):yield v.removeRange([S.range[0],w.range[0]]),yield v.insertTextAfter(O," =>");let C=x.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 v.insertTextBefore(C,"("),yield v.insertTextAfter(C,")"))}})}}}},jx}var qx,BR;function Hz(){if(BR)return qx;BR=1;let r=Ko(),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(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,v=0),B.id.type==="ObjectPattern"&&B.init.name!==w&&(w=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===C.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,R=>R.value===k.kind);return new r(B,m).retainRange(k.range).replaceTextRange(T.range,"const")}:null})})}}return{"Program:exit"(){p(x,y).forEach(O)},VariableDeclaration(C){C.kind==="let"&&!i(C)&&x.push(...m.getDeclaredVariables(C))}}}},qx}var Qx,NR;function Kz(){if(NR)return Qx;NR=1;let r=Pe(),e=r.getPrecedence({type:"AssignmentExpression"});return Qx={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 x=y.getText(g.object);return r.getPrecedence(g.object)c(x,g):null;if(a(g.type,"object")&&n){o(g,"object",y);return}if(a(g.type,"object")){let x=m.property;(x.type==="Literal"&&d.name===x.value||x.type==="Identifier"&&d.name===x.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}}},Qx}var Ux,LR;function Jz(){if(LR)return Ux;LR=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 Ux={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),x=i(d),v=a(p,u),S="",w="";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(!x){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,x),E=l(`${O}**${C}`,v);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)}}}},Ux}var Vx,$R;function eG(){if($R)return Vx;$R=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 Vx={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)}}}}},Vx}var Wx,MR;function tG(){if(MR)return Wx;MR=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 Wx={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}`)}})}}}}},Wx}var Zx,jR;function rG(){if(jR)return Zx;jR=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 Zx={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")}})}}}},Zx}var zx,qR;function nG(){if(qR)return zx;qR=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(x=>x.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(x=>x.type==="ObjectExpression").some(u)}function p(y,x){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(x,y);default:return!i(x,y)}}function h(y,x){switch(y.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!i(x,y);default:return!1}}function f(y,x,v){let S=[v.getFirstToken(y),v.getLastToken(y)],w=v.getTokenBefore(y),O=v.getTokenAfter(y);for(;w&&O&&w.range[0]>x.range[0]&&s(w)&&n(O);)S.push(w,O),w=v.getTokenBefore(w),O=v.getTokenAfter(O);return S.sort((C,E)=>C.range[0]-E.range[0])}function d(y,x){let v=x.text,S=y.range[0];{let w=x.getTokenBefore(y,{includeComments:!0});if(w&&w.type==="Line")return S}for(;a.test(v[S-1]||"");)S-=1;return S}function m(y,x){let v=x.text,S=y.range[1];for(;a.test(v[S]||"");)S+=1;return S}function g(y,x){return function*(v){let S=x.getTokenAfter(y.callee,s),w=x.getLastToken(y);yield v.removeRange([y.range[0],S.range[0]]),p(y,x)?(yield v.replaceText(S,"({"),yield v.replaceText(w,"})")):(yield v.replaceText(S,"{"),yield v.replaceText(w,"}"));for(let O of y.arguments){let C=f(O,S,x),E=C.shift(),k=C.pop();if(O.type==="ObjectExpression"){let A=x.getLastToken(O,1),D=x.getTokenAfter(k);for(let T of C)yield v.remove(T);let _=[E.range[0],m(E,x)],B=[Math.max(d(k,x),_[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,x)?(yield v.insertTextBefore(E,"...("),yield v.insertTextAfter(k,")")):yield v.insertTextBefore(E,"...")}}}return zx={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 x=y.sourceCode;return{Program(v){let S=x.getScope(v),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,x);y.report({node:C,messageId:E,fix:k})}}}}},zx}var Gx,QR;function sG(){if(QR)return Gx;QR=1;let r=Pe();return Gx={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))}}}},Gx}var Xx,UR;function iG(){return UR||(UR=1,Xx={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")}}}}),Xx}var Yx,VR;function aG(){if(VR)return Yx;VR=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}=jO();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 Yx={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 x(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 R=T.arguments;return!!((R.length===1||R.length===2)&&R.every(v))}function w(T){let R=T.arguments;return!!(R.length===1&&p(R[0])||R.length===2&&p(R[0])&&v(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` +`;return O.insertTextAfter(E,A)}})}let g={any:{verify:f},never:{verify:d},always:{verify:m}},y={"*":{test:()=>!0},"block-like":{test:(x,v)=>c(v,x)},"cjs-export":{test:(x,v)=>x.type==="ExpressionStatement"&&x.expression.type==="AssignmentExpression"&&s.test(v.getText(x.expression.left))},"cjs-import":{test:(x,v)=>x.type==="VariableDeclaration"&&x.declarations.length>0&&!!x.declarations[0].init&&n.test(v.getText(x.declarations[0].init))},directive:{test:r.isDirective},expression:{test:x=>x.type==="ExpressionStatement"&&!r.isDirective(x)},iife:{test:u},"multiline-block-like":{test:(x,v)=>x.loc.start.line!==x.loc.end.line&&c(v,x)},"multiline-expression":{test:x=>x.loc.start.line!==x.loc.end.line&&x.type==="ExpressionStatement"&&!r.isDirective(x)},"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 Mx={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(x){let v=x.sourceCode,S=x.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,v)}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(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&&R.push([j,Q]),j=Q}while(j.range[0]l.type==="Identifier")&&a.length!==new Set(a.map(l=>l.name)).size}return jx={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 x=n(d);x.isCallback&&(!o||!m.this||x.isLexicalThis)&&!m.super&&!m.meta&&a.report({node:d,messageId:"preferArrowCallback",*fix(v){if(!x.isLexicalThis&&m.this||i(d.params))return;if(x.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),w=c.getTokenAfter(S,r.isOpeningParenToken),O=c.getTokenBefore(d.body);c.commentsExistBetween(S,w)?(yield v.remove(S),d.id&&(yield v.remove(d.id))):yield v.removeRange([S.range[0],w.range[0]]),yield v.insertTextAfter(O," =>");let C=x.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 v.insertTextBefore(C,"("),yield v.insertTextAfter(C,")"))}})}}}},jx}var qx,BR;function Yz(){if(BR)return qx;BR=1;let r=Ko(),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(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,v=0),B.id.type==="ObjectPattern"&&B.init.name!==w&&(w=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===C.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,R=>R.value===k.kind);return new r(B,m).retainRange(k.range).replaceTextRange(T.range,"const")}:null})})}}return{"Program:exit"(){p(x,y).forEach(O)},VariableDeclaration(C){C.kind==="let"&&!i(C)&&x.push(...m.getDeclaredVariables(C))}}}},qx}var Qx,NR;function Hz(){if(NR)return Qx;NR=1;let r=Pe(),e=r.getPrecedence({type:"AssignmentExpression"});return Qx={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 x=y.getText(g.object);return r.getPrecedence(g.object)c(x,g):null;if(a(g.type,"object")&&n){o(g,"object",y);return}if(a(g.type,"object")){let x=m.property;(x.type==="Literal"&&d.name===x.value||x.type==="Identifier"&&d.name===x.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}}},Qx}var Ux,LR;function Kz(){if(LR)return Ux;LR=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 Ux={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),x=i(d),v=a(p,u),S="",w="";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(!x){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,x),E=l(`${O}**${C}`,v);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)}}}},Ux}var Vx,$R;function Jz(){if($R)return Vx;$R=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 Vx={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)}}}}},Vx}var Wx,MR;function eG(){if(MR)return Wx;MR=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 Wx={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}`)}})}}}}},Wx}var Zx,jR;function tG(){if(jR)return Zx;jR=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 Zx={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")}})}}}},Zx}var zx,qR;function rG(){if(qR)return zx;qR=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(x=>x.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(x=>x.type==="ObjectExpression").some(u)}function p(y,x){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(x,y);default:return!i(x,y)}}function h(y,x){switch(y.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!i(x,y);default:return!1}}function f(y,x,v){let S=[v.getFirstToken(y),v.getLastToken(y)],w=v.getTokenBefore(y),O=v.getTokenAfter(y);for(;w&&O&&w.range[0]>x.range[0]&&s(w)&&n(O);)S.push(w,O),w=v.getTokenBefore(w),O=v.getTokenAfter(O);return S.sort((C,E)=>C.range[0]-E.range[0])}function d(y,x){let v=x.text,S=y.range[0];{let w=x.getTokenBefore(y,{includeComments:!0});if(w&&w.type==="Line")return S}for(;a.test(v[S-1]||"");)S-=1;return S}function m(y,x){let v=x.text,S=y.range[1];for(;a.test(v[S]||"");)S+=1;return S}function g(y,x){return function*(v){let S=x.getTokenAfter(y.callee,s),w=x.getLastToken(y);yield v.removeRange([y.range[0],S.range[0]]),p(y,x)?(yield v.replaceText(S,"({"),yield v.replaceText(w,"})")):(yield v.replaceText(S,"{"),yield v.replaceText(w,"}"));for(let O of y.arguments){let C=f(O,S,x),E=C.shift(),k=C.pop();if(O.type==="ObjectExpression"){let A=x.getLastToken(O,1),D=x.getTokenAfter(k);for(let T of C)yield v.remove(T);let _=[E.range[0],m(E,x)],B=[Math.max(d(k,x),_[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,x)?(yield v.insertTextBefore(E,"...("),yield v.insertTextAfter(k,")")):yield v.insertTextBefore(E,"...")}}}return zx={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 x=y.sourceCode;return{Program(v){let S=x.getScope(v),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,x);y.report({node:C,messageId:E,fix:k})}}}}},zx}var Gx,QR;function nG(){if(QR)return Gx;QR=1;let r=Pe();return Gx={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))}}}},Gx}var Xx,UR;function sG(){return UR||(UR=1,Xx={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")}}}}),Xx}var Yx,VR;function iG(){if(VR)return Yx;VR=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}=jO();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 Yx={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 x(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 R=T.arguments;return!!((R.length===1||R.length===2)&&R.every(v))}function w(T){let R=T.arguments;return!!(R.length===1&&p(R[0])||R.length===2&&p(R[0])&&v(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,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=x(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:ve,messageId:H})=>({messageId:H,data:{flags:se},fix(he){return he.replaceText(I,B(I,`/${ve}/${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=x(I.arguments[0]),F=!1,U;if(I.arguments[1]&&(U=x(I.arguments[1])),_(I,N,U)||(F=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.>v+x.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,x=>x.lastIndexOf("\\")%2?`\\${x}`:x).replace(new RegExp(`\\\\${m.raw[0]}`,"gu"),m.raw[0])}\``;if(m.type==="TemplateLiteral")return u.getText(m);if(e(m)&&n(m)){let x=u.getFirstTokenBetween(m.left,m.right,C=>C.value==="+"),v=p(m.left,x),S=p(x,m.right),w=l(m.left),O=a(m.right);return w?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}}},Jx}var ev,GR;function cG(){if(GR)return ev;GR=1;let r=Cc(),e=Pe(),t=MO();return ev={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,x){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"&&!x&&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 x;try{x=r.tokenize(y.value)}catch{return}if(x.length!==1||u(x[0].value)&&i)return;a&&c(y.value,x,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:x=>x.replaceText(y,h(y))}):l&&y.type==="Literal"&&e.isNumericLiteral(y)&&s.report({node:g,messageId:"unquotedNumericProperty",data:{property:y.value},fix:x=>x.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:x=>x.replaceText(y,h(y))})}function m(g,y){let x=[],v=[],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(x.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)?(v.push(O),w=!0,S=C.name):v.push(O)}),y&&x.length&&!w?x.forEach(O=>{s.report({node:O,messageId:"redundantQuoting",fix:C=>C.replaceText(O.key,p(O.key))})}):v.length&&S?v.forEach(O=>{s.report({node:O,messageId:"requireQuotesDueToReservedWord",data:{property:S},fix:C=>C.replaceText(O.key,h(O.key))})}):x.length&&v.length&&v.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)}}}},ev}var tv,XR;function fG(){if(XR)return tv;XR=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 tv={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 x=0;x0||g.quasis.length>=1&&t.test(g.quasis[0].value.raw))}return{Literal(g){let y=g.value,x=g.raw;if(a&&typeof y=="string"){let v=i==="backtick"&&d(g)||p(g)||r.isSurroundedBy(x,a.quote);!v&&c&&(v=r.isSurroundedBy(x,a.alternateQuote)&&x.includes(a.quote)),v||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(S){return i==="backtick"&&r.hasOctalOrNonOctalDecimalEscapeSequence(x)?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)))}})}}}},tv}var rv,YR;function pG(){if(YR)return rv;YR=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 rv={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),x=y.type==="Punctuator"&&y.value===",";return d.insertTextBefore(g,x?" 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)})}}}},rv}var nv,HR;function hG(){if(HR)return nv;HR=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 nv={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}}))}}}}}},nv}var sv,KR;function dG(){if(KR)return sv;KR=1;let r=Pe();function e(t){return t[0].toUpperCase()+t.slice(1)}return sv={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)}}}},sv}var iv,JR;function mG(){if(JR)return iv;JR=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),n=Pe(),{isValidWithUnicodeFlag:i}=jO();return iv={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 x=l.getLastToken(h,{skip:1});return y.insertTextAfter(x,n.isCommaToken(x)?' "u",':', "u"')},messageId:"addUFlag"}]:null})}}}}},iv}var av,eF;function gG(){return eF||(eF=1,av={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)}}}}),av}var ov,tF;function yG(){return tF||(tF=1,ov={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}}}),ov}var lv,rF;function bG(){if(rF)return lv;rF=1;let r=Ko(),e=Pe();return lv={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 x(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)||!x(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&&v(E)?h(E,!0):!k&&c==="always"&&E.type!=="PropertyDefinition"&&x(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}}},lv}var uv,nF;function xG(){if(nF)return uv;nF=1;let r=Pe();return uv={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}}},uv}var cv,sF;function vG(){if(sF)return cv;sF=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 cv={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=x(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:ve,messageId:H})=>({messageId:H,data:{flags:se},fix(he){return he.replaceText(I,B(I,`/${ve}/${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=x(I.arguments[0]),F=!1,U;if(I.arguments[1]&&(U=x(I.arguments[1])),_(I,N,U)||(F=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.>v+x.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,x=>x.lastIndexOf("\\")%2?`\\${x}`:x).replace(new RegExp(`\\\\${m.raw[0]}`,"gu"),m.raw[0])}\``;if(m.type==="TemplateLiteral")return u.getText(m);if(e(m)&&n(m)){let x=u.getFirstTokenBetween(m.left,m.right,C=>C.value==="+"),v=p(m.left,x),S=p(x,m.right),w=l(m.left),O=a(m.right);return w?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}}},Jx}var ev,GR;function uG(){if(GR)return ev;GR=1;let r=Cc(),e=Pe(),t=MO();return ev={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,x){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"&&!x&&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 x;try{x=r.tokenize(y.value)}catch{return}if(x.length!==1||u(x[0].value)&&i)return;a&&c(y.value,x,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:x=>x.replaceText(y,h(y))}):l&&y.type==="Literal"&&e.isNumericLiteral(y)&&s.report({node:g,messageId:"unquotedNumericProperty",data:{property:y.value},fix:x=>x.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:x=>x.replaceText(y,h(y))})}function m(g,y){let x=[],v=[],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(x.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)?(v.push(O),w=!0,S=C.name):v.push(O)}),y&&x.length&&!w?x.forEach(O=>{s.report({node:O,messageId:"redundantQuoting",fix:C=>C.replaceText(O.key,p(O.key))})}):v.length&&S?v.forEach(O=>{s.report({node:O,messageId:"requireQuotesDueToReservedWord",data:{property:S},fix:C=>C.replaceText(O.key,h(O.key))})}):x.length&&v.length&&v.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)}}}},ev}var tv,XR;function cG(){if(XR)return tv;XR=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 tv={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 x=0;x0||g.quasis.length>=1&&t.test(g.quasis[0].value.raw))}return{Literal(g){let y=g.value,x=g.raw;if(a&&typeof y=="string"){let v=i==="backtick"&&d(g)||p(g)||r.isSurroundedBy(x,a.quote);!v&&c&&(v=r.isSurroundedBy(x,a.alternateQuote)&&x.includes(a.quote)),v||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(S){return i==="backtick"&&r.hasOctalOrNonOctalDecimalEscapeSequence(x)?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)))}})}}}},tv}var rv,YR;function fG(){if(YR)return rv;YR=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 rv={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),x=y.type==="Punctuator"&&y.value===",";return d.insertTextBefore(g,x?" 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)})}}}},rv}var nv,HR;function pG(){if(HR)return nv;HR=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 nv={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}}))}}}}}},nv}var sv,KR;function hG(){if(KR)return sv;KR=1;let r=Pe();function e(t){return t[0].toUpperCase()+t.slice(1)}return sv={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)}}}},sv}var iv,JR;function dG(){if(JR)return iv;JR=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),n=Pe(),{isValidWithUnicodeFlag:i}=jO();return iv={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 x=l.getLastToken(h,{skip:1});return y.insertTextAfter(x,n.isCommaToken(x)?' "u",':', "u"')},messageId:"addUFlag"}]:null})}}}}},iv}var av,eF;function mG(){return eF||(eF=1,av={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)}}}}),av}var ov,tF;function gG(){return tF||(tF=1,ov={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}}}),ov}var lv,rF;function yG(){if(rF)return lv;rF=1;let r=Ko(),e=Pe();return lv={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 x(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)||!x(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&&v(E)?h(E,!0):!k&&c==="always"&&E.type!=="PropertyDefinition"&&x(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}}},lv}var uv,nF;function bG(){if(nF)return uv;nF=1;let r=Pe();return uv={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}}},uv}var cv,sF;function xG(){if(sF)return cv;sF=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 cv={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")}}}},cv}var fv,iF;function OG(){return iF||(iF=1,fv={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,x,v)=>v[x-1]>y);g!==-1&&r.report({node:d[g],messageId:"sortMembersAlphabetically",data:{memberName:d[g].local.name},fix(y){return d.some(x=>l.getCommentsBefore(x).length||l.getCommentsAfter(x).length)?null:y.replaceTextRange([d[0].range[0],d.at(-1).range[1]],d.slice().sort((x,v)=>{let S=m(x),w=m(v);return S>w?1:-1}).reduce((x,v,S)=>{let w=S===d.length-1?"":l.getText().slice(d[S].range[1],d[S+1].range[0]);return x+l.getText(v)+w},""))}})}}}}}),fv}var pv={exports:{}},aF;function SG(){if(aF)return pv.exports;aF=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=x[w-1];O&&S.loc.start.line-O.loc.end.line>1&&(v=!0)}),!v&&d.loc.start.line-x.at(-1).loc.end.line>1&&(v=!0),!v&&x[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])}}}}),dv}var mv,uF;function CG(){if(uF)return mv;uF=1;let r=Pe();function e(t){let s=t.parent;return t.type==="BlockStatement"&&r.isFunction(s)&&s.body===t}return mv={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,x;e(d)?(y=i,x=o):d.type==="ClassBody"?(y=l,x=c):(y=a,x=u),y&&!g?t.report({node:d,messageId:"missingSpace",fix(v){return v.insertTextBefore(d," ")}}):x&&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}}},mv}var gv,cF;function kG(){if(cF)return gv;cF=1;let r=Pe();return gv={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}}},gv}var yv,fF;function AG(){if(fF)return yv;fF=1;let r=Pe();return yv={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,x)=>{let v=g[x-1],S=g[x+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(v,y)&&e.report({node:m,loc:y.loc,messageId:"missingClosingSpace",fix(w){return w.insertTextBefore(y," ")}}),y.value===")"&&f(v,y)&&e.report({node:m,loc:{start:v.loc.end,end:y.loc.start},messageId:"rejectedClosingSpace",fix(w){return w.removeRange([v.range[1],y.range[0]])}}))})}}}},yv}var bv,pF;function PG(){if(pF)return bv;pF=1;let{isEqToken:r}=Pe();return bv={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)}}}},bv}var xv,hF;function TG(){if(hF)return xv;hF=1;let r=Pe();return xv={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,x){y.range[0]===g.range[1]&&e.report({node:m,messageId:"wordOperator",data:{word:x},fix(v){return v.insertTextAfter(g," ")}})}function o(m,g,y,x){r.canTokensBeAdjacent(g,y)&&y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfterWord",data:{word:x},fix(v){return v.removeRange([g.range[1],y.range[0]])}})}function u(m,g,y,x){i(x)?a(x)?l(m,g,y,x):o(m,g,y,x):t.words?l(m,g,y,x):o(m,g,y,x)}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(x){return x.insertTextAfter(g," ")}})}else g.range[1]===y.range[0]&&e.report({node:m,messageId:"beforeUnaryExpressions",data:{token:y.value},fix(x){return x.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(x){return r.canTokensBeAdjacent(g,y)?x.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(x){return x.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],x=g[1];if((m.type==="NewExpression"||m.prefix)&&y.type==="Keyword"){u(m,y,x,y.value);return}let v=m.prefix?g[0].value:g[1].value;i(v)?a(v)?h(m,y,x):f(m,y,x):t.nonwords?h(m,y,x):f(m,y,x)}return{UnaryExpression:d,UpdateExpression:d,NewExpression:d,YieldExpression:c,AwaitExpression:p}}},xv}var vv,dF;function DG(){if(dF)return vv;dF=1;let r=Pc(),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 vv={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,x)=>{let v=n(p[x]&&p[x].markers||p.markers||[]),S=p[x]&&p[x].exceptions||p.exceptions||[],w="[ ]+$";return y[x]={beginRegex:c?a(v,S):l(v),endRegex:h&&c?new RegExp(`${i(S)}$`,"u"):new RegExp(w,"u"),hasExceptions:S.length>0,captureMarker:new RegExp(`^(${v.map(t).join("|")})`,"u"),markers:new Set(v)},y},{});function d(y,x,v,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?(v&&(k+=v[0].length),C.insertTextAfterRange([E,k]," ")):(k+=v[0].length,C.replaceTextRange([E,k],O+(v[1]?v[1]:"")))},messageId:x,data:{refChar:S}})}function m(y,x,v){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-v[0].length;return S.replaceTextRange([O,w],"")},messageId:x})}function g(y){let x=y.type.toLowerCase(),v=f[x],S=x==="block"?"/*":"//";if(y.value.length===0||v.markers.has(y.value))return;let w=v.beginRegex.exec(y.value),O=v.endRegex.exec(y.value);if(c){if(!w){let C=v.captureMarker.exec(y.value),E=C?S+C[0]:S;v.hasExceptions?d(y,"expectedExceptionAfter",C,E):d(y,"expectedSpaceAfter",C,E)}h&&x==="block"&&!O&&m(y,"expectedSpaceBefore")}else w&&(w[1]?d(y,"unexpectedSpaceAfterMarker",w,w[1]):d(y,"unexpectedSpaceAfter",w,S)),h&&x==="block"&&O&&m(y,"unexpectedSpaceBefore",O)}return{Program(){u.getAllComments().filter(x=>x.type!=="Shebang").forEach(g)}}}},vv}var Ov,mF;function _G(){if(mF)return Ov;mF=1;let r=Pe();function e(n){let i=[];for(let a=0;av.remove(x)}function p(x,v,S,w,O){x.slice(v,S).forEach(C=>{n.report({node:C,messageId:w,fix:O?c(C):null})})}function h(x,v,S){p(x,0,x.length,v,S)}function f(x,v,S){p(x,1,x.length,v,S)}function d(x,v){let S=l.length>0,w=a.length===0&&l.length===0,O=a.length>0&&a.at(-1),C=v.length>0;C?(s(x.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)):w&&(s(x.params)?n.report({node:x,messageId:"function"}):n.report({node:x,messageId:"wrap",data:{name:r.getFunctionNameWithKind(x)}})),a.push(O||C)}function m(){a.pop()}function g(x){let v=x.body.type==="BlockStatement",S=v?e(x.body.body):[];o==="function"?d(x,S):S.length>0&&(s(x.params)?h(S,o,u(o)):(n.report({node:S[0],messageId:"nonSimpleParameterList"}),f(S,"multiple",!0)))}let y={Program(x){let v=e(x.body);x.sourceType==="module"&&(o="module"),o==="global"?(x.body.length>0&&v.length===0&&n.report({node:x,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}},Ov}var Sv,gF;function IG(){if(gF)return Sv;gF=1;let r=Pe();return Sv={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)})}}}},Sv}var Ev,yF;function RG(){if(yF)return Ev;yF=1;let r=Pe();return Ev={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)})}}}},Ev}var wv,bF;function FG(){if(bF)return wv;bF=1;let r=Pe();return wv={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)}}}},wv}var Cv,xF;function BG(){return xF||(xF=1,Cv={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}}}),Cv}var kv,vF;function NG(){return vF||(vF=1,kv={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])}})}}}}),kv}var Av,OF;function LG(){if(OF)return Av;OF=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 Av={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 w=d(S);return m.replaceText(f,`${v}${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,x=l.has(f.operator);y&&(d.push({messageId:"replaceWithIsNaN",fix:o(f,v=>`Number.isNaN(${v})`)}),x&&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 x=d.computed,v=m==="indexOf"?"findIndex":"findLastIndex",S=x?`"${v}"`:v;y.push({messageId:"replaceWithFindIndex",data:{methodName:v},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}},Av}var Pv,SF;function $G(){if(SF)return Pv;SF=1;let r=Pe();return Pv={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"})}}}}}},Pv}var Tv,EF;function MG(){return EF||(EF=1,Tv={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)})`)})}}}}}),_v}var Iv,kF;function QG(){return kF||(kF=1,Iv={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}}}),Iv}var Rv,AF;function UG(){if(AF)return Rv;AF=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 Rv={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 x(){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 v(){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)&&(x()||v())&&S()}let f={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function d(m){let g=p.getFirstTokenBetween(m.left,m.right,_=>_.value===m.operator),y=p.getTokenBefore(g),x=p.getTokenAfter(g),v=p.getText(),S=v.slice(m.range[0],y.range[1]),w=v.slice(y.range[1],g.range[0]),O=v.slice(g.range[1],x.range[0]),C=v.slice(x.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,x)&&(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:x=>x.replaceText(m,d(m))})}}}},Rv}var Fv,PF;function fN(){if(PF)return Fv;PF=1;let{LazyLoadingRuleMap:r}=dV();return Fv=new r(Object.entries({"accessor-pairs":()=>yV(),"array-bracket-newline":()=>bV(),"array-bracket-spacing":()=>xV(),"array-callback-return":()=>vV(),"array-element-newline":()=>OV(),"arrow-body-style":()=>SV(),"arrow-parens":()=>EV(),"arrow-spacing":()=>wV(),"block-scoped-var":()=>CV(),"block-spacing":()=>kV(),"brace-style":()=>AV(),"callback-return":()=>PV(),camelcase:()=>TV(),"capitalized-comments":()=>DV(),"class-methods-use-this":()=>_V(),"comma-dangle":()=>IV(),"comma-spacing":()=>RV(),"comma-style":()=>FV(),complexity:()=>BV(),"computed-property-spacing":()=>NV(),"consistent-return":()=>LV(),"consistent-this":()=>$V(),"constructor-super":()=>MV(),curly:()=>jV(),"default-case":()=>qV(),"default-case-last":()=>QV(),"default-param-last":()=>UV(),"dot-location":()=>VV(),"dot-notation":()=>WV(),"eol-last":()=>ZV(),eqeqeq:()=>zV(),"for-direction":()=>GV(),"func-call-spacing":()=>XV(),"func-name-matching":()=>YV(),"func-names":()=>HV(),"func-style":()=>KV(),"function-call-argument-newline":()=>JV(),"function-paren-newline":()=>e7(),"generator-star-spacing":()=>t7(),"getter-return":()=>r7(),"global-require":()=>n7(),"grouped-accessor-pairs":()=>s7(),"guard-for-in":()=>i7(),"handle-callback-err":()=>a7(),"id-blacklist":()=>o7(),"id-denylist":()=>l7(),"id-length":()=>u7(),"id-match":()=>c7(),"implicit-arrow-linebreak":()=>f7(),indent:()=>p7(),"indent-legacy":()=>h7(),"init-declarations":()=>d7(),"jsx-quotes":()=>m7(),"key-spacing":()=>g7(),"keyword-spacing":()=>y7(),"line-comment-position":()=>b7(),"linebreak-style":()=>x7(),"lines-around-comment":()=>v7(),"lines-around-directive":()=>O7(),"lines-between-class-members":()=>S7(),"logical-assignment-operators":()=>E7(),"max-classes-per-file":()=>w7(),"max-depth":()=>C7(),"max-len":()=>k7(),"max-lines":()=>A7(),"max-lines-per-function":()=>P7(),"max-nested-callbacks":()=>T7(),"max-params":()=>D7(),"max-statements":()=>_7(),"max-statements-per-line":()=>I7(),"multiline-comment-style":()=>R7(),"multiline-ternary":()=>F7(),"new-cap":()=>B7(),"new-parens":()=>N7(),"newline-after-var":()=>L7(),"newline-before-return":()=>$7(),"newline-per-chained-call":()=>M7(),"no-alert":()=>j7(),"no-array-constructor":()=>q7(),"no-async-promise-executor":()=>Q7(),"no-await-in-loop":()=>U7(),"no-bitwise":()=>V7(),"no-buffer-constructor":()=>W7(),"no-caller":()=>Z7(),"no-case-declarations":()=>z7(),"no-catch-shadow":()=>G7(),"no-class-assign":()=>X7(),"no-compare-neg-zero":()=>Y7(),"no-cond-assign":()=>H7(),"no-confusing-arrow":()=>K7(),"no-console":()=>J7(),"no-const-assign":()=>eW(),"no-constant-binary-expression":()=>tW(),"no-constant-condition":()=>rW(),"no-constructor-return":()=>nW(),"no-continue":()=>sW(),"no-control-regex":()=>iW(),"no-debugger":()=>aW(),"no-delete-var":()=>oW(),"no-div-regex":()=>lW(),"no-dupe-args":()=>uW(),"no-dupe-class-members":()=>cW(),"no-dupe-else-if":()=>fW(),"no-dupe-keys":()=>pW(),"no-duplicate-case":()=>hW(),"no-duplicate-imports":()=>dW(),"no-else-return":()=>mW(),"no-empty":()=>gW(),"no-empty-character-class":()=>yW(),"no-empty-function":()=>bW(),"no-empty-pattern":()=>xW(),"no-empty-static-block":()=>vW(),"no-eq-null":()=>OW(),"no-eval":()=>SW(),"no-ex-assign":()=>EW(),"no-extend-native":()=>wW(),"no-extra-bind":()=>CW(),"no-extra-boolean-cast":()=>kW(),"no-extra-label":()=>AW(),"no-extra-parens":()=>PW(),"no-extra-semi":()=>TW(),"no-fallthrough":()=>DW(),"no-floating-decimal":()=>_W(),"no-func-assign":()=>IW(),"no-global-assign":()=>RW(),"no-implicit-coercion":()=>FW(),"no-implicit-globals":()=>BW(),"no-implied-eval":()=>NW(),"no-import-assign":()=>LW(),"no-inline-comments":()=>$W(),"no-inner-declarations":()=>MW(),"no-invalid-regexp":()=>jW(),"no-invalid-this":()=>qW(),"no-irregular-whitespace":()=>QW(),"no-iterator":()=>UW(),"no-label-var":()=>VW(),"no-labels":()=>WW(),"no-lone-blocks":()=>ZW(),"no-lonely-if":()=>zW(),"no-loop-func":()=>GW(),"no-loss-of-precision":()=>XW(),"no-magic-numbers":()=>YW(),"no-misleading-character-class":()=>nZ(),"no-mixed-operators":()=>sZ(),"no-mixed-requires":()=>iZ(),"no-mixed-spaces-and-tabs":()=>aZ(),"no-multi-assign":()=>oZ(),"no-multi-spaces":()=>lZ(),"no-multi-str":()=>uZ(),"no-multiple-empty-lines":()=>cZ(),"no-native-reassign":()=>fZ(),"no-negated-condition":()=>pZ(),"no-negated-in-lhs":()=>hZ(),"no-nested-ternary":()=>dZ(),"no-new":()=>mZ(),"no-new-func":()=>gZ(),"no-new-native-nonconstructor":()=>yZ(),"no-new-object":()=>bZ(),"no-new-require":()=>xZ(),"no-new-symbol":()=>vZ(),"no-new-wrappers":()=>OZ(),"no-nonoctal-decimal-escape":()=>SZ(),"no-obj-calls":()=>EZ(),"no-object-constructor":()=>wZ(),"no-octal":()=>CZ(),"no-octal-escape":()=>kZ(),"no-param-reassign":()=>AZ(),"no-path-concat":()=>PZ(),"no-plusplus":()=>TZ(),"no-process-env":()=>DZ(),"no-process-exit":()=>_Z(),"no-promise-executor-return":()=>IZ(),"no-proto":()=>RZ(),"no-prototype-builtins":()=>FZ(),"no-redeclare":()=>BZ(),"no-regex-spaces":()=>NZ(),"no-restricted-exports":()=>LZ(),"no-restricted-globals":()=>$Z(),"no-restricted-imports":()=>MZ(),"no-restricted-modules":()=>jZ(),"no-restricted-properties":()=>qZ(),"no-restricted-syntax":()=>QZ(),"no-return-assign":()=>UZ(),"no-return-await":()=>VZ(),"no-script-url":()=>WZ(),"no-self-assign":()=>ZZ(),"no-self-compare":()=>zZ(),"no-sequences":()=>GZ(),"no-setter-return":()=>XZ(),"no-shadow":()=>YZ(),"no-shadow-restricted-names":()=>HZ(),"no-spaced-func":()=>KZ(),"no-sparse-arrays":()=>JZ(),"no-sync":()=>ez(),"no-tabs":()=>tz(),"no-template-curly-in-string":()=>rz(),"no-ternary":()=>nz(),"no-this-before-super":()=>sz(),"no-throw-literal":()=>iz(),"no-trailing-spaces":()=>az(),"no-undef":()=>oz(),"no-undef-init":()=>lz(),"no-undefined":()=>uz(),"no-underscore-dangle":()=>cz(),"no-unexpected-multiline":()=>fz(),"no-unmodified-loop-condition":()=>pz(),"no-unneeded-ternary":()=>hz(),"no-unreachable":()=>dz(),"no-unreachable-loop":()=>mz(),"no-unsafe-finally":()=>gz(),"no-unsafe-negation":()=>yz(),"no-unsafe-optional-chaining":()=>bz(),"no-unused-expressions":()=>xz(),"no-unused-labels":()=>vz(),"no-unused-private-class-members":()=>Oz(),"no-unused-vars":()=>Sz(),"no-use-before-define":()=>Ez(),"no-useless-assignment":()=>wz(),"no-useless-backreference":()=>Cz(),"no-useless-call":()=>kz(),"no-useless-catch":()=>Az(),"no-useless-computed-key":()=>Pz(),"no-useless-concat":()=>Tz(),"no-useless-constructor":()=>Dz(),"no-useless-escape":()=>_z(),"no-useless-rename":()=>Iz(),"no-useless-return":()=>Rz(),"no-var":()=>Fz(),"no-void":()=>Bz(),"no-warning-comments":()=>Nz(),"no-whitespace-before-property":()=>Lz(),"no-with":()=>$z(),"nonblock-statement-body-position":()=>Mz(),"object-curly-newline":()=>jz(),"object-curly-spacing":()=>qz(),"object-property-newline":()=>Qz(),"object-shorthand":()=>Uz(),"one-var":()=>Vz(),"one-var-declaration-per-line":()=>Wz(),"operator-assignment":()=>Zz(),"operator-linebreak":()=>zz(),"padded-blocks":()=>Gz(),"padding-line-between-statements":()=>Xz(),"prefer-arrow-callback":()=>Yz(),"prefer-const":()=>Hz(),"prefer-destructuring":()=>Kz(),"prefer-exponentiation-operator":()=>Jz(),"prefer-named-capture-group":()=>eG(),"prefer-numeric-literals":()=>tG(),"prefer-object-has-own":()=>rG(),"prefer-object-spread":()=>nG(),"prefer-promise-reject-errors":()=>sG(),"prefer-reflect":()=>iG(),"prefer-regex-literals":()=>aG(),"prefer-rest-params":()=>oG(),"prefer-spread":()=>lG(),"prefer-template":()=>uG(),"quote-props":()=>cG(),quotes:()=>fG(),radix:()=>pG(),"require-atomic-updates":()=>hG(),"require-await":()=>dG(),"require-unicode-regexp":()=>mG(),"require-yield":()=>gG(),"rest-spread-spacing":()=>yG(),semi:()=>bG(),"semi-spacing":()=>xG(),"semi-style":()=>vG(),"sort-imports":()=>OG(),"sort-keys":()=>EG(),"sort-vars":()=>wG(),"space-before-blocks":()=>CG(),"space-before-function-paren":()=>kG(),"space-in-parens":()=>AG(),"space-infix-ops":()=>PG(),"space-unary-ops":()=>TG(),"spaced-comment":()=>DG(),strict:()=>_G(),"switch-colon-spacing":()=>IG(),"symbol-description":()=>RG(),"template-curly-spacing":()=>FG(),"template-tag-spacing":()=>BG(),"unicode-bom":()=>NG(),"use-isnan":()=>LG(),"valid-typeof":()=>$G(),"vars-on-top":()=>MG(),"wrap-iife":()=>jG(),"wrap-regex":()=>qG(),"yield-star-spacing":()=>QG(),yoda:()=>UG()})),Fv}var Bv,TF;function VG(){if(TF)return Bv;TF=1;let r=fN();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,hV(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 Bv=e,Bv}var Nv,DF;function WG(){if(DF)return Nv;DF=1;let r=wi()("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],x=g.range[1];return h>=y||y>x?(o.push(m),!1):((y<0&&x>=0||y===0&&g.text.startsWith(e))&&(f=""),f+=p.slice(Math.max(0,h),Math.max(0,y)),f+=g.text,h=x,!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}},Nv=n,Nv}var Lv,_F;function pN(){if(_F)return Lv;_F=1;function r(){return Bt.hrtime()}function e(t){let s=Bt.hrtime(t);return s[0]*1e3+s[1]/1e6}return Lv={startTime:r,endTime:e},Lv}var $v,IF;function ZG(){if(IF)return $v;IF=1;let{startTime:r,endTime:e}=pN();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 $v=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}}(),$v}var zG={"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"]},hN={rules:zG},Mv,RF;function dN(){if(RF)return Mv;RF=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 Mv={parseRuleId:e,getRuleFromConfig:t,getRuleOptionsSchema:s},Mv}var jv={},oc={},qv,FF;function GG(){if(FF)return qv;FF=1,qv=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 Qv}var Uv,NF;function YG(){if(NF)return Uv;NF=1;var r=GG(),e=XG();Uv=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 x=[],v=e("{","}",y);if(!v)return y.split(",");var S=v.pre,w=v.body,O=v.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)),x.push.apply(x,C),x}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,x){return y<=x}function m(y,x){return y>=x}function g(y,x){var v=[],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 ve=0;ve"u"?this.pattern:k,v(k),A.nobrace||!/\{(?:(?!\{).)*\}/.test(k)?[k]:t(k)}var x=1024*64,v=function(k){if(typeof k!="string")throw new TypeError("invalid pattern");if(k.length>x)throw new TypeError("pattern is too long")};d.prototype.parse=w;var S={};function w(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,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,ve=k.length,H;se0&&(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,x,v)=>v[x-1]>y);g!==-1&&r.report({node:d[g],messageId:"sortMembersAlphabetically",data:{memberName:d[g].local.name},fix(y){return d.some(x=>l.getCommentsBefore(x).length||l.getCommentsAfter(x).length)?null:y.replaceTextRange([d[0].range[0],d.at(-1).range[1]],d.slice().sort((x,v)=>{let S=m(x),w=m(v);return S>w?1:-1}).reduce((x,v,S)=>{let w=S===d.length-1?"":l.getText().slice(d[S].range[1],d[S+1].range[0]);return x+l.getText(v)+w},""))}})}}}}}),fv}var pv={exports:{}},aF;function OG(){if(aF)return pv.exports;aF=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=x[w-1];O&&S.loc.start.line-O.loc.end.line>1&&(v=!0)}),!v&&d.loc.start.line-x.at(-1).loc.end.line>1&&(v=!0),!v&&x[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])}}}}),dv}var mv,uF;function wG(){if(uF)return mv;uF=1;let r=Pe();function e(t){let s=t.parent;return t.type==="BlockStatement"&&r.isFunction(s)&&s.body===t}return mv={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,x;e(d)?(y=i,x=o):d.type==="ClassBody"?(y=l,x=c):(y=a,x=u),y&&!g?t.report({node:d,messageId:"missingSpace",fix(v){return v.insertTextBefore(d," ")}}):x&&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}}},mv}var gv,cF;function CG(){if(cF)return gv;cF=1;let r=Pe();return gv={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}}},gv}var yv,fF;function kG(){if(fF)return yv;fF=1;let r=Pe();return yv={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,x)=>{let v=g[x-1],S=g[x+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(v,y)&&e.report({node:m,loc:y.loc,messageId:"missingClosingSpace",fix(w){return w.insertTextBefore(y," ")}}),y.value===")"&&f(v,y)&&e.report({node:m,loc:{start:v.loc.end,end:y.loc.start},messageId:"rejectedClosingSpace",fix(w){return w.removeRange([v.range[1],y.range[0]])}}))})}}}},yv}var bv,pF;function AG(){if(pF)return bv;pF=1;let{isEqToken:r}=Pe();return bv={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)}}}},bv}var xv,hF;function PG(){if(hF)return xv;hF=1;let r=Pe();return xv={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,x){y.range[0]===g.range[1]&&e.report({node:m,messageId:"wordOperator",data:{word:x},fix(v){return v.insertTextAfter(g," ")}})}function o(m,g,y,x){r.canTokensBeAdjacent(g,y)&&y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfterWord",data:{word:x},fix(v){return v.removeRange([g.range[1],y.range[0]])}})}function u(m,g,y,x){i(x)?a(x)?l(m,g,y,x):o(m,g,y,x):t.words?l(m,g,y,x):o(m,g,y,x)}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(x){return x.insertTextAfter(g," ")}})}else g.range[1]===y.range[0]&&e.report({node:m,messageId:"beforeUnaryExpressions",data:{token:y.value},fix(x){return x.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(x){return r.canTokensBeAdjacent(g,y)?x.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(x){return x.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],x=g[1];if((m.type==="NewExpression"||m.prefix)&&y.type==="Keyword"){u(m,y,x,y.value);return}let v=m.prefix?g[0].value:g[1].value;i(v)?a(v)?h(m,y,x):f(m,y,x):t.nonwords?h(m,y,x):f(m,y,x)}return{UnaryExpression:d,UpdateExpression:d,NewExpression:d,YieldExpression:c,AwaitExpression:p}}},xv}var vv,dF;function TG(){if(dF)return vv;dF=1;let r=Pc(),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 vv={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,x)=>{let v=n(p[x]&&p[x].markers||p.markers||[]),S=p[x]&&p[x].exceptions||p.exceptions||[],w="[ ]+$";return y[x]={beginRegex:c?a(v,S):l(v),endRegex:h&&c?new RegExp(`${i(S)}$`,"u"):new RegExp(w,"u"),hasExceptions:S.length>0,captureMarker:new RegExp(`^(${v.map(t).join("|")})`,"u"),markers:new Set(v)},y},{});function d(y,x,v,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?(v&&(k+=v[0].length),C.insertTextAfterRange([E,k]," ")):(k+=v[0].length,C.replaceTextRange([E,k],O+(v[1]?v[1]:"")))},messageId:x,data:{refChar:S}})}function m(y,x,v){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-v[0].length;return S.replaceTextRange([O,w],"")},messageId:x})}function g(y){let x=y.type.toLowerCase(),v=f[x],S=x==="block"?"/*":"//";if(y.value.length===0||v.markers.has(y.value))return;let w=v.beginRegex.exec(y.value),O=v.endRegex.exec(y.value);if(c){if(!w){let C=v.captureMarker.exec(y.value),E=C?S+C[0]:S;v.hasExceptions?d(y,"expectedExceptionAfter",C,E):d(y,"expectedSpaceAfter",C,E)}h&&x==="block"&&!O&&m(y,"expectedSpaceBefore")}else w&&(w[1]?d(y,"unexpectedSpaceAfterMarker",w,w[1]):d(y,"unexpectedSpaceAfter",w,S)),h&&x==="block"&&O&&m(y,"unexpectedSpaceBefore",O)}return{Program(){u.getAllComments().filter(x=>x.type!=="Shebang").forEach(g)}}}},vv}var Ov,mF;function DG(){if(mF)return Ov;mF=1;let r=Pe();function e(n){let i=[];for(let a=0;av.remove(x)}function p(x,v,S,w,O){x.slice(v,S).forEach(C=>{n.report({node:C,messageId:w,fix:O?c(C):null})})}function h(x,v,S){p(x,0,x.length,v,S)}function f(x,v,S){p(x,1,x.length,v,S)}function d(x,v){let S=l.length>0,w=a.length===0&&l.length===0,O=a.length>0&&a.at(-1),C=v.length>0;C?(s(x.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)):w&&(s(x.params)?n.report({node:x,messageId:"function"}):n.report({node:x,messageId:"wrap",data:{name:r.getFunctionNameWithKind(x)}})),a.push(O||C)}function m(){a.pop()}function g(x){let v=x.body.type==="BlockStatement",S=v?e(x.body.body):[];o==="function"?d(x,S):S.length>0&&(s(x.params)?h(S,o,u(o)):(n.report({node:S[0],messageId:"nonSimpleParameterList"}),f(S,"multiple",!0)))}let y={Program(x){let v=e(x.body);x.sourceType==="module"&&(o="module"),o==="global"?(x.body.length>0&&v.length===0&&n.report({node:x,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}},Ov}var Sv,gF;function _G(){if(gF)return Sv;gF=1;let r=Pe();return Sv={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)})}}}},Sv}var Ev,yF;function IG(){if(yF)return Ev;yF=1;let r=Pe();return Ev={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)})}}}},Ev}var wv,bF;function RG(){if(bF)return wv;bF=1;let r=Pe();return wv={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)}}}},wv}var Cv,xF;function FG(){return xF||(xF=1,Cv={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}}}),Cv}var kv,vF;function BG(){return vF||(vF=1,kv={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])}})}}}}),kv}var Av,OF;function NG(){if(OF)return Av;OF=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 Av={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 w=d(S);return m.replaceText(f,`${v}${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,x=l.has(f.operator);y&&(d.push({messageId:"replaceWithIsNaN",fix:o(f,v=>`Number.isNaN(${v})`)}),x&&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 x=d.computed,v=m==="indexOf"?"findIndex":"findLastIndex",S=x?`"${v}"`:v;y.push({messageId:"replaceWithFindIndex",data:{methodName:v},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}},Av}var Pv,SF;function LG(){if(SF)return Pv;SF=1;let r=Pe();return Pv={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"})}}}}}},Pv}var Tv,EF;function $G(){return EF||(EF=1,Tv={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)})`)})}}}}}),_v}var Iv,kF;function qG(){return kF||(kF=1,Iv={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}}}),Iv}var Rv,AF;function QG(){if(AF)return Rv;AF=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 Rv={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 x(){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 v(){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)&&(x()||v())&&S()}let f={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function d(m){let g=p.getFirstTokenBetween(m.left,m.right,_=>_.value===m.operator),y=p.getTokenBefore(g),x=p.getTokenAfter(g),v=p.getText(),S=v.slice(m.range[0],y.range[1]),w=v.slice(y.range[1],g.range[0]),O=v.slice(g.range[1],x.range[0]),C=v.slice(x.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,x)&&(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:x=>x.replaceText(m,d(m))})}}}},Rv}var Fv,PF;function fN(){if(PF)return Fv;PF=1;let{LazyLoadingRuleMap:r}=hV();return Fv=new r(Object.entries({"accessor-pairs":()=>gV(),"array-bracket-newline":()=>yV(),"array-bracket-spacing":()=>bV(),"array-callback-return":()=>xV(),"array-element-newline":()=>vV(),"arrow-body-style":()=>OV(),"arrow-parens":()=>SV(),"arrow-spacing":()=>EV(),"block-scoped-var":()=>wV(),"block-spacing":()=>CV(),"brace-style":()=>kV(),"callback-return":()=>AV(),camelcase:()=>PV(),"capitalized-comments":()=>TV(),"class-methods-use-this":()=>DV(),"comma-dangle":()=>_V(),"comma-spacing":()=>IV(),"comma-style":()=>RV(),complexity:()=>FV(),"computed-property-spacing":()=>BV(),"consistent-return":()=>NV(),"consistent-this":()=>LV(),"constructor-super":()=>$V(),curly:()=>MV(),"default-case":()=>jV(),"default-case-last":()=>qV(),"default-param-last":()=>QV(),"dot-location":()=>UV(),"dot-notation":()=>VV(),"eol-last":()=>WV(),eqeqeq:()=>ZV(),"for-direction":()=>zV(),"func-call-spacing":()=>GV(),"func-name-matching":()=>XV(),"func-names":()=>YV(),"func-style":()=>HV(),"function-call-argument-newline":()=>KV(),"function-paren-newline":()=>JV(),"generator-star-spacing":()=>e7(),"getter-return":()=>t7(),"global-require":()=>r7(),"grouped-accessor-pairs":()=>n7(),"guard-for-in":()=>s7(),"handle-callback-err":()=>i7(),"id-blacklist":()=>a7(),"id-denylist":()=>o7(),"id-length":()=>l7(),"id-match":()=>u7(),"implicit-arrow-linebreak":()=>c7(),indent:()=>f7(),"indent-legacy":()=>p7(),"init-declarations":()=>h7(),"jsx-quotes":()=>d7(),"key-spacing":()=>m7(),"keyword-spacing":()=>g7(),"line-comment-position":()=>y7(),"linebreak-style":()=>b7(),"lines-around-comment":()=>x7(),"lines-around-directive":()=>v7(),"lines-between-class-members":()=>O7(),"logical-assignment-operators":()=>S7(),"max-classes-per-file":()=>E7(),"max-depth":()=>w7(),"max-len":()=>C7(),"max-lines":()=>k7(),"max-lines-per-function":()=>A7(),"max-nested-callbacks":()=>P7(),"max-params":()=>T7(),"max-statements":()=>D7(),"max-statements-per-line":()=>_7(),"multiline-comment-style":()=>I7(),"multiline-ternary":()=>R7(),"new-cap":()=>F7(),"new-parens":()=>B7(),"newline-after-var":()=>N7(),"newline-before-return":()=>L7(),"newline-per-chained-call":()=>$7(),"no-alert":()=>M7(),"no-array-constructor":()=>j7(),"no-async-promise-executor":()=>q7(),"no-await-in-loop":()=>Q7(),"no-bitwise":()=>U7(),"no-buffer-constructor":()=>V7(),"no-caller":()=>W7(),"no-case-declarations":()=>Z7(),"no-catch-shadow":()=>z7(),"no-class-assign":()=>G7(),"no-compare-neg-zero":()=>X7(),"no-cond-assign":()=>Y7(),"no-confusing-arrow":()=>H7(),"no-console":()=>K7(),"no-const-assign":()=>J7(),"no-constant-binary-expression":()=>eW(),"no-constant-condition":()=>tW(),"no-constructor-return":()=>rW(),"no-continue":()=>nW(),"no-control-regex":()=>sW(),"no-debugger":()=>iW(),"no-delete-var":()=>aW(),"no-div-regex":()=>oW(),"no-dupe-args":()=>lW(),"no-dupe-class-members":()=>uW(),"no-dupe-else-if":()=>cW(),"no-dupe-keys":()=>fW(),"no-duplicate-case":()=>pW(),"no-duplicate-imports":()=>hW(),"no-else-return":()=>dW(),"no-empty":()=>mW(),"no-empty-character-class":()=>gW(),"no-empty-function":()=>yW(),"no-empty-pattern":()=>bW(),"no-empty-static-block":()=>xW(),"no-eq-null":()=>vW(),"no-eval":()=>OW(),"no-ex-assign":()=>SW(),"no-extend-native":()=>EW(),"no-extra-bind":()=>wW(),"no-extra-boolean-cast":()=>CW(),"no-extra-label":()=>kW(),"no-extra-parens":()=>AW(),"no-extra-semi":()=>PW(),"no-fallthrough":()=>TW(),"no-floating-decimal":()=>DW(),"no-func-assign":()=>_W(),"no-global-assign":()=>IW(),"no-implicit-coercion":()=>RW(),"no-implicit-globals":()=>FW(),"no-implied-eval":()=>BW(),"no-import-assign":()=>NW(),"no-inline-comments":()=>LW(),"no-inner-declarations":()=>$W(),"no-invalid-regexp":()=>MW(),"no-invalid-this":()=>jW(),"no-irregular-whitespace":()=>qW(),"no-iterator":()=>QW(),"no-label-var":()=>UW(),"no-labels":()=>VW(),"no-lone-blocks":()=>WW(),"no-lonely-if":()=>ZW(),"no-loop-func":()=>zW(),"no-loss-of-precision":()=>GW(),"no-magic-numbers":()=>XW(),"no-misleading-character-class":()=>rZ(),"no-mixed-operators":()=>nZ(),"no-mixed-requires":()=>sZ(),"no-mixed-spaces-and-tabs":()=>iZ(),"no-multi-assign":()=>aZ(),"no-multi-spaces":()=>oZ(),"no-multi-str":()=>lZ(),"no-multiple-empty-lines":()=>uZ(),"no-native-reassign":()=>cZ(),"no-negated-condition":()=>fZ(),"no-negated-in-lhs":()=>pZ(),"no-nested-ternary":()=>hZ(),"no-new":()=>dZ(),"no-new-func":()=>mZ(),"no-new-native-nonconstructor":()=>gZ(),"no-new-object":()=>yZ(),"no-new-require":()=>bZ(),"no-new-symbol":()=>xZ(),"no-new-wrappers":()=>vZ(),"no-nonoctal-decimal-escape":()=>OZ(),"no-obj-calls":()=>SZ(),"no-object-constructor":()=>EZ(),"no-octal":()=>wZ(),"no-octal-escape":()=>CZ(),"no-param-reassign":()=>kZ(),"no-path-concat":()=>AZ(),"no-plusplus":()=>PZ(),"no-process-env":()=>TZ(),"no-process-exit":()=>DZ(),"no-promise-executor-return":()=>_Z(),"no-proto":()=>IZ(),"no-prototype-builtins":()=>RZ(),"no-redeclare":()=>FZ(),"no-regex-spaces":()=>BZ(),"no-restricted-exports":()=>NZ(),"no-restricted-globals":()=>LZ(),"no-restricted-imports":()=>$Z(),"no-restricted-modules":()=>MZ(),"no-restricted-properties":()=>jZ(),"no-restricted-syntax":()=>qZ(),"no-return-assign":()=>QZ(),"no-return-await":()=>UZ(),"no-script-url":()=>VZ(),"no-self-assign":()=>WZ(),"no-self-compare":()=>ZZ(),"no-sequences":()=>zZ(),"no-setter-return":()=>GZ(),"no-shadow":()=>XZ(),"no-shadow-restricted-names":()=>YZ(),"no-spaced-func":()=>HZ(),"no-sparse-arrays":()=>KZ(),"no-sync":()=>JZ(),"no-tabs":()=>ez(),"no-template-curly-in-string":()=>tz(),"no-ternary":()=>rz(),"no-this-before-super":()=>nz(),"no-throw-literal":()=>sz(),"no-trailing-spaces":()=>iz(),"no-undef":()=>az(),"no-undef-init":()=>oz(),"no-undefined":()=>lz(),"no-underscore-dangle":()=>uz(),"no-unexpected-multiline":()=>cz(),"no-unmodified-loop-condition":()=>fz(),"no-unneeded-ternary":()=>pz(),"no-unreachable":()=>hz(),"no-unreachable-loop":()=>dz(),"no-unsafe-finally":()=>mz(),"no-unsafe-negation":()=>gz(),"no-unsafe-optional-chaining":()=>yz(),"no-unused-expressions":()=>bz(),"no-unused-labels":()=>xz(),"no-unused-private-class-members":()=>vz(),"no-unused-vars":()=>Oz(),"no-use-before-define":()=>Sz(),"no-useless-assignment":()=>Ez(),"no-useless-backreference":()=>wz(),"no-useless-call":()=>Cz(),"no-useless-catch":()=>kz(),"no-useless-computed-key":()=>Az(),"no-useless-concat":()=>Pz(),"no-useless-constructor":()=>Tz(),"no-useless-escape":()=>Dz(),"no-useless-rename":()=>_z(),"no-useless-return":()=>Iz(),"no-var":()=>Rz(),"no-void":()=>Fz(),"no-warning-comments":()=>Bz(),"no-whitespace-before-property":()=>Nz(),"no-with":()=>Lz(),"nonblock-statement-body-position":()=>$z(),"object-curly-newline":()=>Mz(),"object-curly-spacing":()=>jz(),"object-property-newline":()=>qz(),"object-shorthand":()=>Qz(),"one-var":()=>Uz(),"one-var-declaration-per-line":()=>Vz(),"operator-assignment":()=>Wz(),"operator-linebreak":()=>Zz(),"padded-blocks":()=>zz(),"padding-line-between-statements":()=>Gz(),"prefer-arrow-callback":()=>Xz(),"prefer-const":()=>Yz(),"prefer-destructuring":()=>Hz(),"prefer-exponentiation-operator":()=>Kz(),"prefer-named-capture-group":()=>Jz(),"prefer-numeric-literals":()=>eG(),"prefer-object-has-own":()=>tG(),"prefer-object-spread":()=>rG(),"prefer-promise-reject-errors":()=>nG(),"prefer-reflect":()=>sG(),"prefer-regex-literals":()=>iG(),"prefer-rest-params":()=>aG(),"prefer-spread":()=>oG(),"prefer-template":()=>lG(),"quote-props":()=>uG(),quotes:()=>cG(),radix:()=>fG(),"require-atomic-updates":()=>pG(),"require-await":()=>hG(),"require-unicode-regexp":()=>dG(),"require-yield":()=>mG(),"rest-spread-spacing":()=>gG(),semi:()=>yG(),"semi-spacing":()=>bG(),"semi-style":()=>xG(),"sort-imports":()=>vG(),"sort-keys":()=>SG(),"sort-vars":()=>EG(),"space-before-blocks":()=>wG(),"space-before-function-paren":()=>CG(),"space-in-parens":()=>kG(),"space-infix-ops":()=>AG(),"space-unary-ops":()=>PG(),"spaced-comment":()=>TG(),strict:()=>DG(),"switch-colon-spacing":()=>_G(),"symbol-description":()=>IG(),"template-curly-spacing":()=>RG(),"template-tag-spacing":()=>FG(),"unicode-bom":()=>BG(),"use-isnan":()=>NG(),"valid-typeof":()=>LG(),"vars-on-top":()=>$G(),"wrap-iife":()=>MG(),"wrap-regex":()=>jG(),"yield-star-spacing":()=>qG(),yoda:()=>QG()})),Fv}var Bv,TF;function UG(){if(TF)return Bv;TF=1;let r=fN();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,pV(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 Bv=e,Bv}var Nv,DF;function VG(){if(DF)return Nv;DF=1;let r=wi()("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],x=g.range[1];return h>=y||y>x?(o.push(m),!1):((y<0&&x>=0||y===0&&g.text.startsWith(e))&&(f=""),f+=p.slice(Math.max(0,h),Math.max(0,y)),f+=g.text,h=x,!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}},Nv=n,Nv}var Lv,_F;function pN(){if(_F)return Lv;_F=1;function r(){return Bt.hrtime()}function e(t){let s=Bt.hrtime(t);return s[0]*1e3+s[1]/1e6}return Lv={startTime:r,endTime:e},Lv}var $v,IF;function WG(){if(IF)return $v;IF=1;let{startTime:r,endTime:e}=pN();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 $v=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}}(),$v}var ZG={"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"]},hN={rules:ZG},Mv,RF;function dN(){if(RF)return Mv;RF=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 Mv={parseRuleId:e,getRuleFromConfig:t,getRuleOptionsSchema:s},Mv}var jv={},oc={},qv,FF;function zG(){if(FF)return qv;FF=1,qv=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 Qv}var Uv,NF;function XG(){if(NF)return Uv;NF=1;var r=zG(),e=GG();Uv=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 x=[],v=e("{","}",y);if(!v)return y.split(",");var S=v.pre,w=v.body,O=v.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)),x.push.apply(x,C),x}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,x){return y<=x}function m(y,x){return y>=x}function g(y,x){var v=[],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 ve=0;ve"u"?this.pattern:k,v(k),A.nobrace||!/\{(?:(?!\{).)*\}/.test(k)?[k]:t(k)}var x=1024*64,v=function(k){if(typeof k!="string")throw new TypeError("invalid pattern");if(k.length>x)throw new TypeError("pattern is too long")};d.prototype.parse=w;var S={};function w(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,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,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),wt=_.slice(qe.reEnd);pt+=wt;var G=rt.split("(").length-1,Ce=wt;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 Vv}var Uo={},Wv={},Zv={},$F;function mN(){if($F)return Zv;$F=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 Zv.MergeStrategy=r,Zv}var zv={},MF;function gN(){if(MF)return zv;MF=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 zv.ValidationStrategy=r,zv}var jF;function KG(){if(jF)return Wv;jF=1;let{MergeStrategy:r}=mN(),{ValidationStrategy:e}=gN(),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 Wv.ObjectSchema=u,Wv}var qF;function JG(){return qF||(qF=1,Uo.ObjectSchema=KG().ObjectSchema,Uo.MergeStrategy=mN().MergeStrategy,Uo.ValidationStrategy=gN().ValidationStrategy),Uo}var QF;function eX(){if(QF)return oc;QF=1;var r=yc,e=HG(),t=wi(),s=JG();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 x 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 v(I){return I&&typeof I.name=="string"&&I.name?`"${I.name}"`:"(unnamed)"}function S(I,N,F){let U=v(I);throw new x(U,N,F)}function w(I){return typeof I=="string"}function O(I,N){if(I===null)throw new x(v(I),N,{message:"Unexpected null config."});if(I===void 0)throw new x(v(I),N,{message:"Unexpected undefined config."});if(typeof I!="object")throw new x(v(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),ve=[];for await(let H of se)ve.push(H);return ve}function k(I,N,F){let U=F.includes("function"),V=F.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,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,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=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 oc.ConfigArray=Q,oc.ConfigArraySymbol=R,oc}var Gv,UF;function yN(){if(UF)return Gv;UF=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 Gv={normalizeSeverityToString:r,normalizeSeverityToNumber:e},Gv}var Xv,VF;function bN(){if(VF)return Xv;VF=1;let{normalizeSeverityToNumber:r}=yN(),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]),x={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.')}},v={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 Xv={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:x}},languageOptions:{schema:{ecmaVersion:k,sourceType:A,globals:S,parser:w,parserOptions:v}},processor:C,plugins:O,rules:E},assertIsRuleSeverity:p},Xv}var Yv={},tX="http://json-schema.org/draft-04/schema#",rX="http://json-schema.org/draft-04/schema#",nX="Core schema meta-schema",sX={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}},iX="object",aX={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:"#"}},oX={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},lX={id:tX,$schema:rX,description:nX,definitions:sX,type:iX,properties:aX,dependencies:oX,default:{}},Hv,WF;function uX(){if(WF)return Hv;WF=1;let r=VB(),e=lX;return Hv=(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},Hv}var ZF;function xN(){if(ZF)return Yv;ZF=1;let e=uX()(),{parseRuleId:t,getRuleFromConfig:s,getRuleOptionsSchema:n}=dN(),i=hN;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}": +>>> 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 Vv}var Uo={},Wv={},Zv={},$F;function mN(){if($F)return Zv;$F=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 Zv.MergeStrategy=r,Zv}var zv={},MF;function gN(){if(MF)return zv;MF=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 zv.ValidationStrategy=r,zv}var jF;function HG(){if(jF)return Wv;jF=1;let{MergeStrategy:r}=mN(),{ValidationStrategy:e}=gN(),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 Wv.ObjectSchema=u,Wv}var qF;function KG(){return qF||(qF=1,Uo.ObjectSchema=HG().ObjectSchema,Uo.MergeStrategy=mN().MergeStrategy,Uo.ValidationStrategy=gN().ValidationStrategy),Uo}var QF;function JG(){if(QF)return oc;QF=1;var r=yc,e=YG(),t=wi(),s=KG();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 x 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 v(I){return I&&typeof I.name=="string"&&I.name?`"${I.name}"`:"(unnamed)"}function S(I,N,F){let U=v(I);throw new x(U,N,F)}function w(I){return typeof I=="string"}function O(I,N){if(I===null)throw new x(v(I),N,{message:"Unexpected null config."});if(I===void 0)throw new x(v(I),N,{message:"Unexpected undefined config."});if(typeof I!="object")throw new x(v(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),ve=[];for await(let H of se)ve.push(H);return ve}function k(I,N,F){let U=F.includes("function"),V=F.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,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,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=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 oc.ConfigArray=Q,oc.ConfigArraySymbol=R,oc}var Gv,UF;function yN(){if(UF)return Gv;UF=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 Gv={normalizeSeverityToString:r,normalizeSeverityToNumber:e},Gv}var Xv,VF;function bN(){if(VF)return Xv;VF=1;let{normalizeSeverityToNumber:r}=yN(),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]),x={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.')}},v={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 Xv={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:x}},languageOptions:{schema:{ecmaVersion:k,sourceType:A,globals:S,parser:w,parserOptions:v}},processor:C,plugins:O,rules:E},assertIsRuleSeverity:p},Xv}var Yv={},eX="http://json-schema.org/draft-04/schema#",tX="http://json-schema.org/draft-04/schema#",rX="Core schema meta-schema",nX={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}},sX="object",iX={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:"#"}},aX={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},oX={id:eX,$schema:tX,description:rX,definitions:nX,type:sX,properties:iX,dependencies:aX,default:{}},Hv,WF;function lX(){if(WF)return Hv;WF=1;let r=VB(),e=oX;return Hv=(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},Hv}var ZF;function xN(){if(ZF)return Yv;ZF=1;let e=lX()(),{parseRuleId:t,getRuleFromConfig:s,getRuleOptionsSchema:n}=dN(),i=hN;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 Yv.RuleValidator=o,Yv}var Kv={},zF;function cX(){if(zF)return Kv;zF=1;let r=fN();return Kv.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:Cc(),parserOptions:{}},linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}],Kv}var GF;function fX(){if(GF)return jv;GF=1;let{ConfigArray:r,ConfigArraySymbol:e}=eX(),{flatConfigSchema:t}=bN(),{RuleValidator:s}=xN(),{defaultConfig:n}=cX(),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",x=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:x}=m,v,S,w=!1,O=!1;if(y&&y.parser){let{parser:C}=y;typeof C=="object"?(v=o(C),v||(w=!0)):w=!0}if(x)if(typeof x=="string"){let{pluginName:C,objectName:E}=l(x);if(S=x,!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 x=="object"?(S=o(x),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:v},processor:S}}}),m}}return jv.FlatConfigArray=f,jv}var Jv,XF;function pX(){if(XF)return Jv;XF=1;let r=yc,e=$B(),t=PO(),s=Cc(),n=I6(),i=K6,a=kc(),{directivesPattern:l}=Ac(),{Legacy:{ConfigOps:o,ConfigValidator:u,environments:c}}=IO(),p=RO(),{SourceCode:h}=iV(),f=aV(),d=tN(),m=uV(),g=pV(),y=VG(),x=KB(),v=WG(),S=ZG(),w=hN,{getRuleFromConfig:O}=dN(),{FlatConfigArray:C}=fX(),{startTime:E,endTime:k}=pN(),{RuleValidator:A}=xN(),{assertIsRuleSeverity:D}=bN(),{normalizeSeverityToString:_}=yN(),B=wi()("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}=uN(),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 ve(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=ve(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(xe){J.push(H({ruleId:null,loc:we.loc,message:xe.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),xe=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(xe)?xe:[xe];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 wt(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 +`}).join("")}`)}}}return Yv.RuleValidator=o,Yv}var Kv={},zF;function uX(){if(zF)return Kv;zF=1;let r=fN();return Kv.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:Cc(),parserOptions:{}},linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}],Kv}var GF;function cX(){if(GF)return jv;GF=1;let{ConfigArray:r,ConfigArraySymbol:e}=JG(),{flatConfigSchema:t}=bN(),{RuleValidator:s}=xN(),{defaultConfig:n}=uX(),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",x=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:x}=m,v,S,w=!1,O=!1;if(y&&y.parser){let{parser:C}=y;typeof C=="object"?(v=o(C),v||(w=!0)):w=!0}if(x)if(typeof x=="string"){let{pluginName:C,objectName:E}=l(x);if(S=x,!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 x=="object"?(S=o(x),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:v},processor:S}}}),m}}return jv.FlatConfigArray=f,jv}var Jv,XF;function fX(){if(XF)return Jv;XF=1;let r=yc,e=$B(),t=PO(),s=Cc(),n=_6(),i=H6,a=kc(),{directivesPattern:l}=Ac(),{Legacy:{ConfigOps:o,ConfigValidator:u,environments:c}}=IO(),p=RO(),{SourceCode:h}=sV(),f=iV(),d=tN(),m=lV(),g=fV(),y=UG(),x=KB(),v=VG(),S=WG(),w=hN,{getRuleFromConfig:O}=dN(),{FlatConfigArray:C}=cX(),{startTime:E,endTime:k}=pN(),{RuleValidator:A}=xN(),{assertIsRuleSeverity:D}=bN(),{normalizeSeverityToString:_}=yN(),B=wi()("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}=uN(),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 ve(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=ve(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(xe){J.push(H({ruleId:null,loc:we.loc,message:xe.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),xe=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(xe)?xe:[xe];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 wt(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 Ct(De,X,ne,ee,oe,ce,Z,J,ie,de,we,L,ue){let Te=x(),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 xe=ne(Ie);if(!xe){Fe.push(H({ruleId:Ie}));return}let re=xe.meta&&xe.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&&!(xe.meta&&xe.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(mt.suggestions&&!(xe.meta&&xe.meta.hasSuggestions===!0))throw xe.meta&&xe.meta.docs&&typeof xe.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)(xe,fe):st(xe,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 xt(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 vt=new WeakMap;function Ye(De){let{configType:X}=vt.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"}={}){vt.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=vt.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=wt(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),xe;try{xe=Ct(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:xe.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}=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 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=xt(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 @@ -150,7 +150,7 @@ Rule: "${re.ruleId}"`),re}return f({directives:Ie.disableDirectives,disableFixes `,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=Ct(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),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(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";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,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=xt(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=vt.get(this);for(let ce of X)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(X,ne){Ye(this),vt.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}=vt.get(this);return new Map(function*(){yield*ne,X&&(yield*X.pluginRules)}())}defineParser(X,ne){Ye(this),vt.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=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,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[Mw(),jw(),_w(),CC(),Aw(),Dw(),Ut.allowMultipleSelections.of(!0),aC(),gu(cC,{fallback:!0}),dC(),_k(),Rk(),Fw(),Bw(),Rw(),uk(),_s.of([...ek,...dk,...PC])];function ps(r){r.hidden=!1,r.style.display=""}function Qs(r){r.hidden=!0,r.style.display="none"}function kn(r,e=document){return e.querySelector(r)}var SN=()=>`// Welcome to litecanvas playground! +%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=vt.get(this);for(let ce of X)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(X,ne){Ye(this),vt.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}=vt.get(this);return new Map(function*(){yield*ne,X&&(yield*X.pluginRules)}())}defineParser(X,ne){Ye(this),vt.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=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,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[Mw(),jw(),_w(),CC(),Aw(),Dw(),Ut.allowMultipleSelections.of(!0),aC(),gu(cC,{fallback:!0}),dC(),_k(),Rk(),Fw(),Bw(),Rw(),uk(),_s.of([...ek,...dk,...PC])];function ps(r){r.hidden=!1,r.style.display=""}function Qs(r){r.hidden=!0,r.style.display="none"}function kn(r,e=document){return e.querySelector(r)}var SN=()=>`// Welcome to litecanvas playground! // Learn more tapping on the question mark above. // Join our discord community: // https://discord.com/invite/r2c3rGsvH3 @@ -256,7 +256,7 @@ function draw () { <\/script>