@fugood/bricks-cli 2.25.0-beta.38 → 2.25.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/117.js +1 -1
- package/lib/178.js +1 -1
- package/lib/305.js +1 -0
- package/lib/511.js +1 -1
- package/lib/940.js +1 -1
- package/lib/index.js +32 -21
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{createRequire as e}from"node:module";let t=e(import.meta.url);import a from"conf";var i,n,r,o,s,p,l,d,u,c,m,f={74(e,t,a){e.exports=function(e){let t,i=(t={defaultWidth:0,output:process.stdout,tty:a(52018)},e?(Object.keys(t).forEach(function(a){e[a]||(e[a]=t[a])}),e):t);if(i.output.getWindowSize)return i.output.getWindowSize()[0]||i.defaultWidth;if(i.tty.getWindowSize)return i.tty.getWindowSize()[1]||i.defaultWidth;if(i.output.columns)return i.output.columns;if(process.env.CLI_WIDTH){let e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&0!==e)return e}return i.defaultWidth}},83329(e,t,a){let i=a(2203);e.exports=class extends i{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#a(e,...t){"function"==typeof this._dest?.[e]&&this._dest[e](...t),"function"==typeof this._src?.[e]&&this._src[e](...t)}get isTTY(){return null!==this.#e?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return 0===e.indexOf(this._prompt)&&(e=(e=e.slice(this._prompt.length)).replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&0===e.indexOf(this._prompt)&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#a("destroy",...e)}destroySoon(...e){return this.#a("destroySoon",...e)}close(...e){return this.#a("close",...e)}}},61893(e,t,a){let i=a(76505),n=a(79436),r=a(18947),o=new Set(["\x1b","\x9b"]),s=e=>`${o.values().next().value}[${e}m`,p=(e,t,a)=>{let r=[...t],s=!1,p=i(n(e[e.length-1]));for(let[t,n]of r.entries()){let l=i(n);if(p+l<=a?e[e.length-1]+=n:(e.push(n),p=0),o.has(n))s=!0;else if(s&&"m"===n){s=!1;continue}!s&&(p+=l)===a&&t<r.length-1&&(e.push(""),p=0)}!p&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},l=e=>{let t=e.split(" "),a=t.length;for(;a>0&&!(i(t[a-1])>0);)a--;return a===t.length?e:t.slice(0,a).join(" ")+t.slice(a).join("")};e.exports=(e,t,a)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map(e=>((e,t,a={})=>{let n;if(!1!==a.trim&&""===e.trim())return"";let d="",u="",c=e.split(" ").map(e=>i(e)),m=[""];for(let[n,r]of e.split(" ").entries()){!1!==a.trim&&(m[m.length-1]=m[m.length-1].trimLeft());let e=i(m[m.length-1]);if(0!==n&&(e>=t&&(!1===a.wordWrap||!1===a.trim)&&(m.push(""),e=0),(e>0||!1===a.trim)&&(m[m.length-1]+=" ",e++)),a.hard&&c[n]>t){let a=t-e,i=1+Math.floor((c[n]-a-1)/t);Math.floor((c[n]-1)/t)<i&&m.push(""),p(m,r,t);continue}if(e+c[n]>t&&e>0&&c[n]>0){if(!1===a.wordWrap&&e<t){p(m,r,t);continue}m.push("")}if(e+c[n]>t&&!1===a.wordWrap){p(m,r,t);continue}m[m.length-1]+=r}for(let[e,t]of(!1!==a.trim&&(m=m.map(l)),[...d=m.join("\n")].entries())){if(u+=t,o.has(t)){let t=parseFloat(/\d[^m]*/.exec(d.slice(e,e+4)));n=39===t?null:t}let a=r.codes.get(Number(n));n&&a&&("\n"===d[e+1]?u+=s(a):"\n"===t&&(u+=s(n)))}return u})(e,t,a)).join("\n")},18947(e,t,a){let i;e=a.nmd(e);let n=(e,t)=>(...a)=>{let i=e(...a);return`\u001B[${i+t}m`},r=(e,t)=>(...a)=>{let i=e(...a);return`\u001B[${38+t};5;${i}m`},o=(e,t)=>(...a)=>{let i=e(...a);return`\u001B[${38+t};2;${i[0]};${i[1]};${i[2]}m`},s=e=>e,p=(e,t,a)=>[e,t,a],l=(e,t,a)=>{Object.defineProperty(e,t,{get:()=>{let i=a();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},d=(e,t,n,r)=>{void 0===i&&(i=a(58712));let o=10*!!r,s={};for(let[a,r]of Object.entries(i)){let i="ansi16"===a?"ansi":a;a===t?s[i]=e(n,o):"object"==typeof r&&(s[i]=e(r[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};for(let[a,i]of(t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright,Object.entries(t))){for(let[a,n]of Object.entries(i))t[a]={open:`\u001B[${n[0]}m`,close:`\u001B[${n[1]}m`},i[a]=t[a],e.set(n[0],n[1]);Object.defineProperty(t,a,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",l(t.color,"ansi",()=>d(n,"ansi16",s,!1)),l(t.color,"ansi256",()=>d(r,"ansi256",s,!1)),l(t.color,"ansi16m",()=>d(o,"rgb",p,!1)),l(t.bgColor,"ansi",()=>d(n,"ansi16",s,!0)),l(t.bgColor,"ansi256",()=>d(r,"ansi256",s,!0)),l(t.bgColor,"ansi16m",()=>d(o,"rgb",p,!0)),t}})},40133(e,t,a){let i=a(87065),n={};for(let e of Object.keys(i))n[i[e]]=e;let r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let t of(e.exports=r,Object.keys(r))){if(!("channels"in r[t]))throw Error("missing channels property: "+t);if(!("labels"in r[t]))throw Error("missing channel labels property: "+t);if(r[t].labels.length!==r[t].channels)throw Error("channel and label counts mismatch: "+t);let{channels:e,labels:a}=r[t];delete r[t].channels,delete r[t].labels,Object.defineProperty(r[t],"channels",{value:e}),Object.defineProperty(r[t],"labels",{value:a})}r.rgb.hsl=function(e){let t,a=e[0]/255,i=e[1]/255,n=e[2]/255,r=Math.min(a,i,n),o=Math.max(a,i,n),s=o-r;o===r?t=0:a===o?t=(i-n)/s:i===o?t=2+(n-a)/s:n===o&&(t=4+(a-i)/s),(t=Math.min(60*t,360))<0&&(t+=360);let p=(r+o)/2;return[t,100*(o===r?0:p<=.5?s/(o+r):s/(2-o-r)),100*p]},r.rgb.hsv=function(e){let t,a,i,n,r,o=e[0]/255,s=e[1]/255,p=e[2]/255,l=Math.max(o,s,p),d=l-Math.min(o,s,p),u=function(e){return(l-e)/6/d+.5};return 0===d?(n=0,r=0):(r=d/l,t=u(o),a=u(s),i=u(p),o===l?n=i-a:s===l?n=1/3+t-i:p===l&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*r,100*l]},r.rgb.hwb=function(e){let t=e[0],a=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(a,i))*100,100*(i=1-1/255*Math.max(t,Math.max(a,i)))]},r.rgb.cmyk=function(e){let t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-a,1-i);return[100*((1-t-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*n]},r.rgb.keyword=function(e){let t,a=n[e];if(a)return a;let r=1/0;for(let a of Object.keys(i)){let n=i[a],o=(e[0]-n[0])**2+(e[1]-n[1])**2+(e[2]-n[2])**2;o<r&&(r=o,t=a)}return t},r.keyword.rgb=function(e){return i[e]},r.rgb.xyz=function(e){let t=e[0]/255,a=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(a=a>.04045?((a+.055)/1.055)**2.4:a/12.92)+.1805*(i=i>.04045?((i+.055)/1.055)**2.4:i/12.92)),100*(.2126*t+.7152*a+.0722*i),100*(.0193*t+.1192*a+.9505*i)]},r.rgb.lab=function(e){let t=r.rgb.xyz(e),a=t[0],i=t[1],n=t[2];return a/=95.047,i/=100,n/=108.883,[116*(i=i>.008856?i**(1/3):7.787*i+16/116)-16,500*((a=a>.008856?a**(1/3):7.787*a+16/116)-i),200*(i-(n=n>.008856?n**(1/3):7.787*n+16/116))]},r.hsl.rgb=function(e){let t,a,i,n=e[0]/360,r=e[1]/100,o=e[2]/100;if(0===r)return[i=255*o,i,i];t=o<.5?o*(1+r):o+r-o*r;let s=2*o-t,p=[0,0,0];for(let e=0;e<3;e++)(a=n+-(1/3*(e-1)))<0&&a++,a>1&&a--,i=6*a<1?s+(t-s)*6*a:2*a<1?t:3*a<2?s+(t-s)*(2/3-a)*6:s,p[e]=255*i;return p},r.hsl.hsv=function(e){let t=e[0],a=e[1]/100,i=e[2]/100,n=a,r=Math.max(i,.01);i*=2,a*=i<=1?i:2-i,n*=r<=1?r:2-r;let o=(i+a)/2;return[t,100*(0===i?2*n/(r+n):2*a/(i+a)),100*o]},r.hsv.rgb=function(e){let t=e[0]/60,a=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,r=t-Math.floor(t),o=255*i*(1-a),s=255*i*(1-a*r),p=255*i*(1-a*(1-r));switch(i*=255,n){case 0:return[i,p,o];case 1:return[s,i,o];case 2:return[o,i,p];case 3:return[o,s,i];case 4:return[p,o,i];case 5:return[i,o,s]}},r.hsv.hsl=function(e){let t,a,i=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);a=(2-n)*r;let s=(2-n)*o;return[i,100*(t=(t=n*o/(s<=1?s:2-s))||0),100*(a/=2)]},r.hwb.rgb=function(e){let t,a,i,n,r=e[0]/360,o=e[1]/100,s=e[2]/100,p=o+s;p>1&&(o/=p,s/=p);let l=Math.floor(6*r),d=1-s;t=6*r-l,(1&l)!=0&&(t=1-t);let u=o+t*(d-o);switch(l){default:case 6:case 0:a=d,i=u,n=o;break;case 1:a=u,i=d,n=o;break;case 2:a=o,i=d,n=u;break;case 3:a=o,i=u,n=d;break;case 4:a=u,i=o,n=d;break;case 5:a=d,i=o,n=u}return[255*a,255*i,255*n]},r.cmyk.rgb=function(e){let t=e[0]/100,a=e[1]/100,i=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n))]},r.xyz.rgb=function(e){let t,a,i,n=e[0]/100,r=e[1]/100,o=e[2]/100;return t=(t=3.2406*n+-1.5372*r+-.4986*o)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,a=(a=-.9689*n+1.8758*r+.0415*o)>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=(i=.0557*n+-.204*r+1.057*o)>.0031308?1.055*i**(1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(a=Math.min(Math.max(0,a),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){let t=e[0],a=e[1],i=e[2];return t/=95.047,a/=100,i/=108.883,[116*(a=a>.008856?a**(1/3):7.787*a+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-a),200*(a-(i=i>.008856?i**(1/3):7.787*i+16/116))]},r.lab.xyz=function(e){let t,a,i,n=e[0],r=e[1],o=e[2];t=r/500+(a=(n+16)/116),i=a-o/200;let s=a**3,p=t**3,l=i**3;return a=(s>.008856?s:(a-16/116)/7.787)*100,[t=(p>.008856?p:(t-16/116)/7.787)*95.047,a,i=(l>.008856?l:(i-16/116)/7.787)*108.883]},r.lab.lch=function(e){let t,a=e[0],i=e[1],n=e[2];return(t=360*Math.atan2(n,i)/2/Math.PI)<0&&(t+=360),[a,Math.sqrt(i*i+n*n),t]},r.lch.lab=function(e){let t=e[0],a=e[1],i=e[2]/360*2*Math.PI;return[t,a*Math.cos(i),a*Math.sin(i)]},r.rgb.ansi16=function(e,t=null){let[a,i,n]=e,o=null===t?r.rgb.hsv(e)[2]:t;if(0===(o=Math.round(o/50)))return 30;let s=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(a/255));return 2===o&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){let t=e[0],a=e[1],i=e[2];return t===a&&a===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let a=(~~(e>50)+1)*.5;return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},r.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let a=t[0];3===t[0].length&&(a=a.split("").map(e=>e+e).join(""));let i=parseInt(a,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){let t,a=e[0]/255,i=e[1]/255,n=e[2]/255,r=Math.max(Math.max(a,i),n),o=Math.min(Math.min(a,i),n),s=r-o;return t=s<1?o/(1-s):0,[360*((s<=0?0:r===a?(i-n)/s%6:r===i?2+(n-a)/s:4+(a-i)/s)/6%1),100*s,100*t]},r.hsl.hcg=function(e){let t=e[1]/100,a=e[2]/100,i=a<.5?2*t*a:2*t*(1-a),n=0;return i<1&&(n=(a-.5*i)/(1-i)),[e[0],100*i,100*n]},r.hsv.hcg=function(e){let t=e[1]/100,a=e[2]/100,i=t*a,n=0;return i<1&&(n=(a-i)/(1-i)),[e[0],100*i,100*n]},r.hcg.rgb=function(e){let t=e[0]/360,a=e[1]/100,i=e[2]/100;if(0===a)return[255*i,255*i,255*i];let n=[0,0,0],r=t%1*6,o=r%1,s=1-o,p=0;switch(Math.floor(r)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=s,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=s,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=s}return p=(1-a)*i,[(a*n[0]+p)*255,(a*n[1]+p)*255,(a*n[2]+p)*255]},r.hcg.hsv=function(e){let t=e[1]/100,a=t+e[2]/100*(1-t),i=0;return a>0&&(i=t/a),[e[0],100*i,100*a]},r.hcg.hsl=function(e){let t=e[1]/100,a=e[2]/100*(1-t)+.5*t,i=0;return a>0&&a<.5?i=t/(2*a):a>=.5&&a<1&&(i=t/(2*(1-a))),[e[0],100*i,100*a]},r.hcg.hwb=function(e){let t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],(a-t)*100,(1-a)*100]},r.hwb.hcg=function(e){let t=e[1]/100,a=1-e[2]/100,i=a-t,n=0;return i<1&&(n=(a-i)/(1-i)),[e[0],100*i,100*n]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=function(e){return[0,0,e[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},58712(e,t,a){let i=a(40133),n=a(97817),r={};Object.keys(i).forEach(e=>{r[e]={},Object.defineProperty(r[e],"channels",{value:i[e].channels}),Object.defineProperty(r[e],"labels",{value:i[e].labels});let t=n(e);Object.keys(t).forEach(a=>{let i,n,o=t[a];r[e][a]=(i=function(...e){let t=e[0];if(null==t)return t;t.length>1&&(e=t);let a=o(e);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a},"conversion"in o&&(i.conversion=o.conversion),i),r[e][a].raw=(n=function(...e){let t=e[0];return null==t?t:(t.length>1&&(e=t),o(e))},"conversion"in o&&(n.conversion=o.conversion),n)})}),e.exports=r},87065(e){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},97817(e,t,a){let i=a(40133);e.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(i);for(let a=t.length,i=0;i<a;i++)e[t[i]]={distance:-1,parent:null};return e}(),a=[e];for(t[e].distance=0;a.length;){let e=a.pop(),n=Object.keys(i[e]);for(let i=n.length,r=0;r<i;r++){let i=n[r],o=t[i];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,a.unshift(i))}}return t}(e),a={},n=Object.keys(t);for(let e=n.length,r=0;r<e;r++){let e=n[r];null!==t[e].parent&&(a[e]=function(e,t){let a=[t[e].parent,e],n=i[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)a.unshift(t[r].parent),n=function(e,t){return function(a){return t(e(a))}}(i[t[r].parent][r],n),r=t[r].parent;return n.conversion=a,n}(e,t))}return a}},76505(e,t,a){let i=a(79436),n=a(17024),r=a(81354),o=e=>{if("string"!=typeof e||0===e.length||0===(e=i(e)).length)return 0;e=e.replace(r()," ");let t=0;for(let a=0;a<e.length;a++){let i=e.codePointAt(a);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&a++,t+=n(i)?2:1)}return t};e.exports=o,e.exports.default=o},17024(e){let t=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)||!1);e.exports=t,e.exports.default=t},83899(e,t,a){var i=a(19845).Buffer;t._dbcs=o;for(var n=Array(256),r=0;r<256;r++)n[r]=-1;function o(e,t){if(this.encodingName=e.encodingName,!e)throw Error("DBCS codec is called without the data.");if(!e.table)throw Error("Encoding '"+this.encodingName+"' has no data.");var a=e.table();this.decodeTables=[],this.decodeTables[0]=n.slice(0),this.decodeTableSeq=[];for(var i=0;i<a.length;i++)this._addDecodeChunk(a[i]);if("function"==typeof e.gb18030){this.gb18030=e.gb18030();var r=this.decodeTables.length;this.decodeTables.push(n.slice(0));var o=this.decodeTables.length;this.decodeTables.push(n.slice(0));for(var s=this.decodeTables[0],i=129;i<=254;i++)for(var p=this.decodeTables[-1e3-s[i]],l=48;l<=57;l++){if(-1===p[l])p[l]=-1e3-r;else if(p[l]>-1e3)throw Error("gb18030 decode tables conflict at byte 2");for(var d=this.decodeTables[-1e3-p[l]],u=129;u<=254;u++){if(-1===d[u])d[u]=-1e3-o;else if(d[u]===-1e3-o)continue;else if(d[u]>-1e3)throw Error("gb18030 decode tables conflict at byte 3");for(var c=this.decodeTables[-1e3-d[u]],m=48;m<=57;m++)-1===c[m]&&(c[m]=-2)}}}this.defaultCharUnicode=t.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var f={};if(e.encodeSkipVals)for(var i=0;i<e.encodeSkipVals.length;i++){var h=e.encodeSkipVals[i];if("number"==typeof h)f[h]=!0;else for(var l=h.from;l<=h.to;l++)f[l]=!0}if(this._fillEncodeTable(0,0,f),e.encodeAdd)for(var v in e.encodeAdd)Object.prototype.hasOwnProperty.call(e.encodeAdd,v)&&this._setEncodeChar(v.charCodeAt(0),e.encodeAdd[v]);this.defCharSB=this.encodeTable[0][t.defaultCharSingleByte.charCodeAt(0)],-1===this.defCharSB&&(this.defCharSB=this.encodeTable[0]["?"]),-1===this.defCharSB&&(this.defCharSB=63)}function s(e,t){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=t.encodeTable,this.encodeTableSeq=t.encodeTableSeq,this.defaultCharSingleByte=t.defCharSB,this.gb18030=t.gb18030}function p(e,t){this.nodeIdx=0,this.prevBytes=[],this.decodeTables=t.decodeTables,this.decodeTableSeq=t.decodeTableSeq,this.defaultCharUnicode=t.defaultCharUnicode,this.gb18030=t.gb18030}function l(e,t){if(e[0]>t)return -1;for(var a=0,i=e.length;a<i-1;){var n=a+(i-a+1>>1);e[n]<=t?a=n:i=n}return a}o.prototype.encoder=s,o.prototype.decoder=p,o.prototype._getDecodeTrieNode=function(e){for(var t=[];e>0;e>>>=8)t.push(255&e);0==t.length&&t.push(0);for(var a=this.decodeTables[0],i=t.length-1;i>0;i--){var r=a[t[i]];if(-1==r)a[t[i]]=-1e3-this.decodeTables.length,this.decodeTables.push(a=n.slice(0));else if(r<=-1e3)a=this.decodeTables[-1e3-r];else throw Error("Overwrite byte in "+this.encodingName+", addr: "+e.toString(16))}return a},o.prototype._addDecodeChunk=function(e){var t=parseInt(e[0],16),a=this._getDecodeTrieNode(t);t&=255;for(var i=1;i<e.length;i++){var n=e[i];if("string"==typeof n)for(var r=0;r<n.length;){var o=n.charCodeAt(r++);if(o>=55296&&o<56320){var s=n.charCodeAt(r++);if(s>=56320&&s<57344)a[t++]=65536+(o-55296)*1024+(s-56320);else throw Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+e[0])}else if(o>4080&&o<=4095){for(var p=4095-o+2,l=[],d=0;d<p;d++)l.push(n.charCodeAt(r++));a[t++]=-10-this.decodeTableSeq.length,this.decodeTableSeq.push(l)}else a[t++]=o}else if("number"==typeof n)for(var u=a[t-1]+1,r=0;r<n;r++)a[t++]=u++;else throw Error("Incorrect type '"+typeof n+"' given in "+this.encodingName+" at chunk "+e[0])}if(t>255)throw Error("Incorrect chunk in "+this.encodingName+" at addr "+e[0]+": too long"+t)},o.prototype._getEncodeBucket=function(e){var t=e>>8;return void 0===this.encodeTable[t]&&(this.encodeTable[t]=n.slice(0)),this.encodeTable[t]},o.prototype._setEncodeChar=function(e,t){var a=this._getEncodeBucket(e),i=255&e;a[i]<=-10?this.encodeTableSeq[-10-a[i]][-1]=t:-1==a[i]&&(a[i]=t)},o.prototype._setEncodeSequence=function(e,t){var a,i=e[0],n=this._getEncodeBucket(i),r=255&i;n[r]<=-10?a=this.encodeTableSeq[-10-n[r]]:(a={},-1!==n[r]&&(a[-1]=n[r]),n[r]=-10-this.encodeTableSeq.length,this.encodeTableSeq.push(a));for(var o=1;o<e.length-1;o++){var s=a[i];"object"==typeof s?a=s:(a=a[i]={},void 0!==s&&(a[-1]=s))}a[i=e[e.length-1]]=t},o.prototype._fillEncodeTable=function(e,t,a){for(var i=this.decodeTables[e],n=!1,r={},o=0;o<256;o++){var s=i[o],p=t+o;if(!a[p])if(s>=0)this._setEncodeChar(s,p),n=!0;else if(s<=-1e3){var l=-1e3-s;if(!r[l]){var d=p<<8>>>0;this._fillEncodeTable(l,d,a)?n=!0:r[l]=!0}}else s<=-10&&(this._setEncodeSequence(this.decodeTableSeq[-10-s],p),n=!0)}return n},s.prototype.write=function(e){for(var t=i.alloc(e.length*(this.gb18030?4:3)),a=this.leadSurrogate,n=this.seqObj,r=-1,o=0,s=0;;){if(-1===r){if(o==e.length)break;var p=e.charCodeAt(o++)}else{var p=r;r=-1}if(p>=55296&&p<57344)if(p<56320)if(-1===a){a=p;continue}else a=p,p=-1;else -1!==a?(p=65536+(a-55296)*1024+(p-56320),a=-1):p=-1;else -1!==a&&(r=p,p=-1,a=-1);var d=-1;if(void 0!==n&&-1!=p){var u=n[p];if("object"==typeof u){n=u;continue}"number"==typeof u?d=u:void 0==u&&void 0!==(u=n[-1])&&(d=u,r=p),n=void 0}else if(p>=0){var c=this.encodeTable[p>>8];if(void 0!==c&&(d=c[255&p]),d<=-10){n=this.encodeTableSeq[-10-d];continue}if(-1==d&&this.gb18030){var m=l(this.gb18030.uChars,p);if(-1!=m){var d=this.gb18030.gbChars[m]+(p-this.gb18030.uChars[m]);t[s++]=129+Math.floor(d/12600),d%=12600,t[s++]=48+Math.floor(d/1260),d%=1260,t[s++]=129+Math.floor(d/10),d%=10,t[s++]=48+d;continue}}}-1===d&&(d=this.defaultCharSingleByte),d<256?t[s++]=d:(d<65536?t[s++]=d>>8:d<0x1000000?(t[s++]=d>>16,t[s++]=d>>8&255):(t[s++]=d>>>24,t[s++]=d>>>16&255,t[s++]=d>>>8&255),t[s++]=255&d)}return this.seqObj=n,this.leadSurrogate=a,t.slice(0,s)},s.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var e=i.alloc(10),t=0;if(this.seqObj){var a=this.seqObj[-1];void 0!==a&&(a<256?e[t++]=a:(e[t++]=a>>8,e[t++]=255&a)),this.seqObj=void 0}return -1!==this.leadSurrogate&&(e[t++]=this.defaultCharSingleByte,this.leadSurrogate=-1),e.slice(0,t)}},s.prototype.findIdx=l,p.prototype.write=function(e){for(var t,a=i.alloc(2*e.length),n=this.nodeIdx,r=this.prevBytes,o=this.prevBytes.length,s=-this.prevBytes.length,p=0,d=0;p<e.length;p++){var u=p>=0?e[p]:r[p+o],t=this.decodeTables[n][u];if(t>=0);else if(-1===t)t=this.defaultCharUnicode.charCodeAt(0),p=s;else if(-2===t){if(p>=3)var c=(e[p-3]-129)*12600+(e[p-2]-48)*1260+(e[p-1]-129)*10+(u-48);else var c=(r[p-3+o]-129)*12600+((p-2>=0?e[p-2]:r[p-2+o])-48)*1260+((p-1>=0?e[p-1]:r[p-1+o])-129)*10+(u-48);var m=l(this.gb18030.gbChars,c);t=this.gb18030.uChars[m]+c-this.gb18030.gbChars[m]}else if(t<=-1e3){n=-1e3-t;continue}else if(t<=-10){for(var f=this.decodeTableSeq[-10-t],h=0;h<f.length-1;h++)t=f[h],a[d++]=255&t,a[d++]=t>>8;t=f[f.length-1]}else throw Error("iconv-lite internal error: invalid decoding table value "+t+" at "+n+"/"+u);if(t>=65536){var v=55296|(t-=65536)>>10;a[d++]=255&v,a[d++]=v>>8,t=56320|1023&t}a[d++]=255&t,a[d++]=t>>8,n=0,s=p+1}return this.nodeIdx=n,this.prevBytes=s>=0?Array.prototype.slice.call(e,s):r.slice(s+o).concat(Array.prototype.slice.call(e)),a.slice(0,d).toString("ucs2")},p.prototype.end=function(){for(var e="";this.prevBytes.length>0;){e+=this.defaultCharUnicode;var t=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,t.length>0&&(e+=this.write(t))}return this.prevBytes=[],this.nodeIdx=0,e}},87221(e,t,a){e.exports={shiftjis:{type:"_dbcs",table:function(){return a(83681)},encodeAdd:{"\xa5":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return a(58484)},encodeAdd:{"\xa5":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return a(44138)}},gbk:{type:"_dbcs",table:function(){return a(44138).concat(a(23428))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return a(44138).concat(a(23428))},gb18030:function(){return a(61959)},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return a(57408)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return a(25718)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return a(25718).concat(a(50493))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},12338(e,t,a){for(var i=a(43259),n=[a(94413),a(72110),a(21728),a(3066),a(38824),a(89432),a(42032),a(83899),a(87221)],r=0;r<n.length;r++)i(t,n[r])},94413(e,t,a){var i=a(19845).Buffer;function n(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,"base64"===this.enc?this.encoder=p:"utf8"===this.enc?this.encoder=u:"cesu8"===this.enc&&(this.enc="utf8",this.encoder=l,"\uD83D\uDCA9"!==i.from("eda0bdedb2a9","hex").toString()&&(this.decoder=d,this.defaultCharUnicode=t.defaultCharUnicode))}e.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:n},n.prototype.encoder=s,n.prototype.decoder=o;var r=a(13193).StringDecoder;function o(e,t){this.decoder=new r(t.enc)}function s(e,t){this.enc=t.enc}function p(e,t){this.prevStr=""}function l(e,t){}function d(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}function u(e,t){this.highSurrogate=""}o.prototype.write=function(e){return i.isBuffer(e)||(e=i.from(e)),this.decoder.write(e)},o.prototype.end=function(){return this.decoder.end()},s.prototype.write=function(e){return i.from(e,this.enc)},s.prototype.end=function(){},p.prototype.write=function(e){var t=(e=this.prevStr+e).length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),i.from(e,"base64")},p.prototype.end=function(){return i.from(this.prevStr,"base64")},l.prototype.write=function(e){for(var t=i.alloc(3*e.length),a=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t[a++]=r:(r<2048?t[a++]=192+(r>>>6):(t[a++]=224+(r>>>12),t[a++]=128+(r>>>6&63)),t[a++]=128+(63&r))}return t.slice(0,a)},l.prototype.end=function(){},d.prototype.write=function(e){for(var t=this.acc,a=this.contBytes,i=this.accBytes,n="",r=0;r<e.length;r++){var o=e[r];(192&o)!=128?(a>0&&(n+=this.defaultCharUnicode,a=0),o<128?n+=String.fromCharCode(o):o<224?(t=31&o,a=1,i=1):o<240?(t=15&o,a=2,i=1):n+=this.defaultCharUnicode):a>0?(t=t<<6|63&o,a--,i++,0===a&&(2===i&&t<128&&t>0||3===i&&t<2048?n+=this.defaultCharUnicode:n+=String.fromCharCode(t))):n+=this.defaultCharUnicode}return this.acc=t,this.contBytes=a,this.accBytes=i,n},d.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e},u.prototype.write=function(e){if(this.highSurrogate&&(e=this.highSurrogate+e,this.highSurrogate=""),e.length>0){var t=e.charCodeAt(e.length-1);t>=55296&&t<56320&&(this.highSurrogate=e[e.length-1],e=e.slice(0,e.length-1))}return i.from(e,this.enc)},u.prototype.end=function(){if(this.highSurrogate){var e=this.highSurrogate;return this.highSurrogate="",i.from(e,this.enc)}}},38824(e,t,a){var i=a(19845).Buffer;function n(e,t){if(!e)throw Error("SBCS codec is called without the data.");if(!e.chars||128!==e.chars.length&&256!==e.chars.length)throw Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===e.chars.length){for(var a="",n=0;n<128;n++)a+=String.fromCharCode(n);e.chars=a+e.chars}this.decodeBuf=i.from(e.chars,"ucs2");for(var r=i.alloc(65536,t.defaultCharSingleByte.charCodeAt(0)),n=0;n<e.chars.length;n++)r[e.chars.charCodeAt(n)]=n;this.encodeBuf=r}function r(e,t){this.encodeBuf=t.encodeBuf}function o(e,t){this.decodeBuf=t.decodeBuf}t._sbcs=n,n.prototype.encoder=r,n.prototype.decoder=o,r.prototype.write=function(e){for(var t=i.alloc(e.length),a=0;a<e.length;a++)t[a]=this.encodeBuf[e.charCodeAt(a)];return t},r.prototype.end=function(){},o.prototype.write=function(e){for(var t=this.decodeBuf,a=i.alloc(2*e.length),n=0,r=0,o=0;o<e.length;o++)n=2*e[o],a[r=2*o]=t[n],a[r+1]=t[n+1];return a.toString("ucs2")},o.prototype.end=function(){}},42032(e){e.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—��������\xa0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź\xa0ˇ˘Ł\xa4Ą\xa6\xa7\xa8\xa9Ş\xab\xac\xad\xaeŻ\xb0\xb1˛ł\xb4\xb5\xb6\xb7\xb8ąş\xbbĽ˝ľżŔ\xc1\xc2Ă\xc4ĹĆ\xc7Č\xc9Ę\xcbĚ\xcd\xceĎĐŃŇ\xd3\xd4Ő\xd6\xd7ŘŮ\xdaŰ\xdc\xddŢ\xdfŕ\xe1\xe2ă\xe4ĺć\xe7č\xe9ę\xebě\xed\xeeďđńň\xf3\xf4ő\xf6\xf7řů\xfaű\xfc\xfdţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ\xa0ЎўЈ\xa4Ґ\xa6\xa7Ё\xa9Є\xab\xac\xad\xaeЇ\xb0\xb1Ііґ\xb5\xb6\xb7ё№є\xbbјЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›����\xa0΅Ά\xa3\xa4\xa5\xa6\xa7\xa8\xa9�\xab\xac\xad\xae―\xb0\xb1\xb2\xb3΄\xb5\xb6\xb7ΈΉΊ\xbbΌ\xbdΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfĞ\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdcİŞ\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefğ\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfcış\xff"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›����\xa0\xa1\xa2\xa3₪\xa5\xa6\xa7\xa8\xa9\xd7\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xf7\xbb\xbc\xbd\xbe\xbfְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں\xa0،\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9ھ\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9؛\xbb\xbc\xbd\xbe؟ہءآأؤإئابةتثجحخدذرزسشصض\xd7طظعغـفقك\xe0ل\xe2منهو\xe7\xe8\xe9\xea\xebىي\xee\xefًٌٍَ\xf4ُِ\xf7ّ\xf9ْ\xfb\xfcے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�\xa8ˇ\xb8�‘’“”•–—�™�›�\xaf˛�\xa0�\xa2\xa3\xa4�\xa6\xa7\xd8\xa9Ŗ\xab\xac\xad\xae\xc6\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xf8\xb9ŗ\xbb\xbc\xbd\xbe\xe6ĄĮĀĆ\xc4\xc5ĘĒČ\xc9ŹĖĢĶĪĻŠŃŅ\xd3Ō\xd5\xd6\xd7ŲŁŚŪ\xdcŻŽ\xdfąįāć\xe4\xe5ęēč\xe9źėģķīļšńņ\xf3ō\xf5\xf6\xf7ųłśū\xfcżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2Ă\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb̀\xcd\xce\xcfĐ\xd1̉\xd3\xd4Ơ\xd6\xd7\xd8\xd9\xda\xdb\xdcỮ\xdf\xe0\xe1\xe2ă\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb́\xed\xee\xefđ\xf1̣\xf3\xf4ơ\xf6\xf7\xf8\xf9\xfa\xfb\xfcư₫\xff"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0Ą˘Ł\xa4ĽŚ\xa7\xa8ŠŞŤŹ\xadŽŻ\xb0ą˛ł\xb4ľśˇ\xb8šşťź˝žżŔ\xc1\xc2Ă\xc4ĹĆ\xc7Č\xc9Ę\xcbĚ\xcd\xceĎĐŃŇ\xd3\xd4Ő\xd6\xd7ŘŮ\xdaŰ\xdc\xddŢ\xdfŕ\xe1\xe2ă\xe4ĺć\xe7č\xe9ę\xebě\xed\xeeďđńň\xf3\xf4ő\xf6\xf7řů\xfaű\xfc\xfdţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0Ħ˘\xa3\xa4�Ĥ\xa7\xa8İŞĞĴ\xad�Ż\xb0ħ\xb2\xb3\xb4\xb5ĥ\xb7\xb8ışğĵ\xbd�ż\xc0\xc1\xc2�\xc4ĊĈ\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf�\xd1\xd2\xd3\xd4Ġ\xd6\xd7Ĝ\xd9\xda\xdb\xdcŬŜ\xdf\xe0\xe1\xe2�\xe4ċĉ\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef�\xf1\xf2\xf3\xf4ġ\xf6\xf7ĝ\xf9\xfa\xfb\xfcŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ĄĸŖ\xa4ĨĻ\xa7\xa8ŠĒĢŦ\xadŽ\xaf\xb0ą˛ŗ\xb4ĩļˇ\xb8šēģŧŊžŋĀ\xc1\xc2\xc3\xc4\xc5\xc6ĮČ\xc9Ę\xcbĖ\xcd\xceĪĐŅŌĶ\xd4\xd5\xd6\xd7\xd8Ų\xda\xdb\xdcŨŪ\xdfā\xe1\xe2\xe3\xe4\xe5\xe6įč\xe9ę\xebė\xed\xeeīđņōķ\xf4\xf5\xf6\xf7\xf8ų\xfa\xfb\xfcũū˙"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ЁЂЃЄЅІЇЈЉЊЋЌ\xadЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ\xa7ўџ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0���\xa4�������،\xad�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0‘’\xa3€₯\xa6\xa7\xa8\xa9ͺ\xab\xac\xad�―\xb0\xb1\xb2\xb3΄΅Ά\xb7ΈΉΊ\xbbΌ\xbdΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0�\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xd7\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xf7\xbb\xbc\xbd\xbe��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת���"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfĞ\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdcİŞ\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefğ\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfcış\xff"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ĄĒĢĪĨĶ\xa7ĻĐŠŦŽ\xadŪŊ\xb0ąēģīĩķ\xb7ļđšŧž―ūŋĀ\xc1\xc2\xc3\xc4\xc5\xc6ĮČ\xc9Ę\xcbĖ\xcd\xce\xcf\xd0ŅŌ\xd3\xd4\xd5\xd6Ũ\xd8Ų\xda\xdb\xdc\xdd\xde\xdfā\xe1\xe2\xe3\xe4\xe5\xe6įč\xe9ę\xebė\xed\xee\xef\xf0ņō\xf3\xf4\xf5\xf6ũ\xf8ų\xfa\xfb\xfc\xfd\xfeĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0”\xa2\xa3\xa4„\xa6\xa7\xd8\xa9Ŗ\xab\xac\xad\xae\xc6\xb0\xb1\xb2\xb3“\xb5\xb6\xb7\xf8\xb9ŗ\xbb\xbc\xbd\xbe\xe6ĄĮĀĆ\xc4\xc5ĘĒČ\xc9ŹĖĢĶĪĻŠŃŅ\xd3Ō\xd5\xd6\xd7ŲŁŚŪ\xdcŻŽ\xdfąįāć\xe4\xe5ęēč\xe9źėģķīļšńņ\xf3ō\xf5\xf6\xf7ųłśū\xfcżž’"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0Ḃḃ\xa3ĊċḊ\xa7Ẁ\xa9ẂḋỲ\xad\xaeŸḞḟĠġṀṁ\xb6ṖẁṗẃṠỳẄẅṡ\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfŴ\xd1\xd2\xd3\xd4\xd5\xd6Ṫ\xd8\xd9\xda\xdb\xdc\xddŶ\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefŵ\xf1\xf2\xf3\xf4\xf5\xf6ṫ\xf8\xf9\xfa\xfb\xfc\xfdŷ\xff"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3€\xa5Š\xa7š\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3Ž\xb5\xb6\xb7ž\xb9\xba\xbbŒœŸ\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ĄąŁ€„Š\xa7š\xa9Ș\xabŹ\xadźŻ\xb0\xb1ČłŽ”\xb6\xb7žčș\xbbŒœŸż\xc0\xc1\xc2Ă\xc4Ć\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfĐŃ\xd2\xd3\xd4Ő\xd6ŚŰ\xd9\xda\xdb\xdcĘȚ\xdf\xe0\xe1\xe2ă\xe4ć\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefđń\xf2\xf3\xf4ő\xf6śű\xf9\xfa\xfb\xfcęț\xff"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5₧ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf⌐\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ\xb1≥≤ΪΫ\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"Ć\xfc\xe9ā\xe4ģ\xe5ćłēŖŗīŹ\xc4\xc5\xc9\xe6\xc6ō\xf6Ģ\xa2Śś\xd6\xdc\xf8\xa3\xd8\xd7\xa4ĀĪ\xf3Żżź”\xa6\xa9\xae\xac\xbd\xbcŁ\xab\xbb░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀\xd3\xdfŌŃ\xf5\xd5\xb5ńĶķĻļņĒŅ’\xad\xb1“\xbe\xb6\xa7\xf7„\xb0∙\xb7\xb9\xb3\xb2■\xa0"},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\xd7ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\xae\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤\xc1\xc2\xc0\xa9╣║╗╝\xa2\xa5┐└┴┬├─┼\xe3\xc3╚╔╩╦╠═╬\xa4\xf0\xd0\xca\xcb\xc8ı\xcd\xce\xcf┘┌█▄\xa6\xcc▀\xd3\xdf\xd4\xd2\xf5\xd5\xb5\xfe\xde\xda\xdb\xd9\xfd\xdd\xaf\xb4\xad\xb1‗\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2■\xa0"},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4ůć\xe7ł\xebŐő\xeeŹ\xc4Ć\xc9Ĺĺ\xf4\xf6ĽľŚś\xd6\xdcŤťŁ\xd7č\xe1\xed\xf3\xfaĄąŽžĘę\xacźČş\xab\xbb░▒▓│┤\xc1\xc2ĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬\xa4đĐĎ\xcbďŇ\xcd\xceě┘┌█▄ŢŮ▀\xd3\xdf\xd4ŃńňŠšŔ\xdaŕŰ\xfd\xddţ\xb4\xad˝˛ˇ˘\xa7\xf7\xb8\xb0\xa8˙űŘř■\xa0"},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ\xab\xbb░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬\xa4лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№\xadыЫзЗшШэЭщЩчЧ\xa7■\xa0"},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת�\xa3�\xd7����������\xae\xac\xbd\xbc�\xab\xbb░▒▓│┤���\xa9╣║╗╝\xa2\xa5┐└┴┬├─┼��╚╔╩╦╠═╬\xa4���������┘┌█▄\xa6�▀������\xb5�������\xaf\xb4\xad\xb1‗\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2■\xa0"},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xeeı\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9İ\xd6\xdc\xf8\xa3\xd8Şş\xe1\xed\xf3\xfa\xf1\xd1Ğğ\xbf\xae\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤\xc1\xc2\xc0\xa9╣║╗╝\xa2\xa5┐└┴┬├─┼\xe3\xc3╚╔╩╦╠═╬\xa4\xba\xaa\xca\xcb\xc8�\xcd\xce\xcf┘┌█▄\xa6\xcc▀\xd3\xdf\xd4\xd2\xf5\xd5\xb5�\xd7\xda\xdb\xd9\xec\xff\xaf\xb4\xad\xb1�\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2■\xa0"},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\xd7ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\xae\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤\xc1\xc2\xc0\xa9╣║╗╝\xa2\xa5┐└┴┬├─┼\xe3\xc3╚╔╩╦╠═╬\xa4\xf0\xd0\xca\xcb\xc8€\xcd\xce\xcf┘┌█▄\xa6\xcc▀\xd3\xdf\xd4\xd2\xf5\xd5\xb5\xfe\xde\xda\xdb\xd9\xfd\xdd\xaf\xb4\xad\xb1‗\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2■\xa0"},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe3\xe0\xc1\xe7\xea\xca\xe8\xcd\xd4\xec\xc3\xc2\xc9\xc0\xc8\xf4\xf5\xf2\xda\xf9\xcc\xd5\xdc\xa2\xa3\xd9₧\xd3\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\xd2\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xd0\xf0\xde\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xfe\xfb\xdd\xfd\xd6\xdc\xf8\xa3\xd8₧ƒ\xe1\xed\xf3\xfa\xc1\xcd\xd3\xda\xbf⌐\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת\xa2\xa3\xa5₧ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf⌐\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xc2\xe0\xb6\xe7\xea\xeb\xe8\xef\xee‗\xc0\xa7\xc9\xc8\xca\xf4\xcb\xcf\xfb\xf9\xa4\xd4\xdc\xa2\xa3\xd9\xdbƒ\xa6\xb4\xf3\xfa\xa8\xb8\xb3\xaf\xce⌐\xac\xbd\xbc\xbe\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b \n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xb0\xb7∙√▒─│┼┤┬├┴┐┌└┘β∞φ\xb1\xbd\xbc≈\xab\xbbﻷﻸ��ﻻﻼ�\xa0\xadﺂ\xa3\xa4ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟\xa2ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ\xa6\xac\xf7\xd7ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8₧ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf⌐\xac\xbd\xbc\xa1\xab\xa4░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў\xb0∙\xb7√№\xa4■\xa0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�\xb7\xac\xa6‘’Έ―ΉΊΪΌ��ΎΫ\xa9Ώ\xb2\xb3ά\xa3έήίϊΐόύΑΒΓΔΕΖΗ\xbdΘΙ\xab\xbb░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄\xad\xb1υφχ\xa7ψ΅\xb0\xa8ωϋΰώ■\xa0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae‾\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfŠ\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xddŽ\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefš\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfdž\xff"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ\xd7\xf7ﹱ\x88■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ\xa0\xa4ﺋﺑﺗﺛﺟﺣ،\xadﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ЁЂҐЄЅІЇЈЉЊЋЌ\xadЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ\xa7ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї\xb7√№\xa4■\xa0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7œ\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3Ÿ\xb5\xb6\xb7Œ\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2Ă\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb̀\xcd\xce\xcfĐ\xd1̉\xd3\xd4Ơ\xd6\xd7\xd8\xd9\xda\xdb\xdcỮ\xdf\xe0\xe1\xe2ă\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb́\xed\xee\xefđ\xf1̣\xf3\xf4ơ\xf6\xf7\xf8\xf9\xfa\xfb\xfcư₫\xff"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��\xa2\xac\xa6�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛\xa2\xac\xa6\xa0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€\x81\x82\x83\x84…\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90‘’“”•–—\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3€\xa5\xa6\xa7œ\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3Ÿ\xb5\xb6\xb7Œ\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2Ă\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb̀\xcd\xce\xcfĐ\xd1̉\xd3\xd4Ơ\xd6\xd7\xd8\xd9\xda\xdb\xdcỮ\xdf\xe0\xe1\xe2ă\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb́\xed\xee\xefđ\xf1̣\xf3\xf4ơ\xf6\xf7\xf8\xf9\xfa\xfb\xfcư₫\xff"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xaeŠ™\xb4\xa8≠Ž\xd8∞\xb1≤≥∆\xb5∂∑∏š∫\xaa\xbaΩž\xf8\xbf\xa1\xac√ƒ≈Ć\xabČ…\xa0\xc0\xc3\xd5ŒœĐ—“”‘’\xf7◊�\xa9⁄\xa4‹›\xc6\xbb–\xb7‚„‰\xc2ć\xc1č\xc8\xcd\xce\xcf\xcc\xd3\xd4đ\xd2\xda\xdb\xd9ıˆ˜\xafπ\xcb˚\xb8\xca\xe6ˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†\xb0\xa2\xa3\xa7•\xb6І\xae\xa9™Ђђ≠Ѓѓ∞\xb1≤≥і\xb5∂ЈЄєЇїЉљЊњјЅ\xac√ƒ≈∆\xab\xbb…\xa0ЋћЌќѕ–—“”‘’\xf7„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\xa4"},macgreek:{type:"_sbcs",chars:"\xc4\xb9\xb2\xc9\xb3\xd6\xdc΅\xe0\xe2\xe4΄\xa8\xe7\xe9\xe8\xea\xeb\xa3™\xee\xef•\xbd‰\xf4\xf6\xa6\xad\xf9\xfb\xfc†ΓΔΘΛΞΠ\xdf\xae\xa9ΣΪ\xa7≠\xb0·Α\xb1≤≥\xa5ΒΕΖΗΙΚΜΦΫΨΩάΝ\xacΟΡ≈Τ\xab\xbb…\xa0ΥΧΆΈœ–―“”‘’\xf7ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\xdd\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠\xc6\xd8∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩ\xe6\xf8\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸ⁄\xa4\xd0\xf0\xde\xfe\xfd\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9ıˆ˜\xaf˘˙˚\xb8˝˛ˇ"},macroman:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠\xc6\xd8∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩ\xe6\xf8\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸ⁄\xa4‹›fifl‡\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9ıˆ˜\xaf˘˙˚\xb8˝˛ˇ"},macromania:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠ĂŞ∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩăş\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸ⁄\xa4‹›Ţţ‡\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9ıˆ˜\xaf˘˙˚\xb8˝˛ˇ"},macthai:{type:"_sbcs",chars:"\xab\xbb…“”�•‘’�\xa0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\uFEFF–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙\xae\xa9����"},macturkish:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠\xc6\xd8∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩ\xe6\xf8\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸĞğİıŞş‡\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9�ˆ˜\xaf˘˙˚\xb8˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†\xb0Ґ\xa3\xa7•\xb6І\xae\xa9™Ђђ≠Ѓѓ∞\xb1≤≥і\xb5ґЈЄєЇїЉљЊњјЅ\xac√ƒ≈∆\xab\xbb…\xa0ЋћЌќѕ–—“”‘’\xf7„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\xa4"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xa0⌡\xb0\xb2\xb7\xf7═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬\xa9юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xa0⌡\xb0\xb2\xb7\xf7═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬\xa9юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xa0⌡\xb0\xb2\xb7\xf7═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ\xa9юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё\xa4ӣ\xa6\xa7���\xab\xac\xad\xae�\xb0\xb1\xb2Ё�Ӣ\xb6\xb7�№�\xbb���\xa9юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0�և։)(\xbb\xab—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ\xa0ҰұӘ\xa4Ө\xa6\xa7Ё\xa9Ғ\xab\xac\xad\xaeҮ\xb0\xb1Ііө\xb5\xb6\xb7ё№ғ\xbbәҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:"\0\xdaỤ\x03ỪỬỮ\x07\b \n\v\f\r\x0e\x0f\x10ỨỰỲỶỸ\xddỴ\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xc0Ả\xc3\xc1ẠẶẬ\xc8ẺẼ\xc9ẸỆ\xccỈĨ\xcdỊ\xd2Ỏ\xd5\xd3ỌỘỜỞỠỚỢ\xd9ỦŨ\xa0Ă\xc2\xca\xd4ƠƯĐă\xe2\xea\xf4ơưđẶ̀̀̉̃́\xe0ả\xe3\xe1ạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậ\xe8Ểẻẽ\xe9ẹềểễếệ\xecỉỄẾỒĩ\xedị\xf2Ổỏ\xf5\xf3ọồổỗốộờởỡớợ\xf9Ỗủũ\xfaụừửữứựỳỷỹ\xfdỵỐ"},georgianacademy:{type:"_sbcs",chars:"\x80\x81‚ƒ„…†‡ˆ‰Š‹Œ\x8d\x8e\x8f\x90‘’“”•–—˜™š›œ\x9d\x9eŸ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbfაბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶ\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},georgianps:{type:"_sbcs",chars:"\x80\x81‚ƒ„…†‡ˆ‰Š‹Œ\x8d\x8e\x8f\x90‘’“”•–—˜™š›œ\x9d\x9eŸ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbfაბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵ\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ\xa0ЎўЈӨҘҰ\xa7Ё\xa9Ә\xab\xacӯ\xaeҜ\xb0ұІіҙө\xb6\xb7ё№ә\xbbјҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:"\0\x01Ẳ\x03\x04ẴẪ\x07\b \n\v\f\r\x0e\x0f\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1a\x1b\x1c\x1dỴ\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7fẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲ\xd5ắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯ\xc0\xc1\xc2\xc3ẢĂẳẵ\xc8\xc9\xcaẺ\xcc\xcdĨỳĐứ\xd2\xd3\xd4ạỷừử\xd9\xdaỹỵ\xddỡư\xe0\xe1\xe2\xe3ảăữẫ\xe8\xe9\xeaẻ\xec\xedĩỉđự\xf2\xf3\xf4\xf5ỏọụ\xf9\xfaũủ\xfdợỮ"},iso646cn:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b \n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#\xa5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾\x7f��������������������������������������������������������������������������������������������������������������������������������"},iso646jp:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b \n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xa5]^_`abcdefghijklmnopqrstuvwxyz{|}‾\x7f��������������������������������������������������������������������������������������������������������������������������������"},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xc0\xc2\xc8\xca\xcb\xce\xcf\xb4ˋˆ\xa8˜\xd9\xdb₤\xaf\xdd\xfd\xb0\xc7\xe7\xd1\xf1\xa1\xbf\xa4\xa3\xa5\xa7ƒ\xa2\xe2\xea\xf4\xfb\xe1\xe9\xf3\xfa\xe0\xe8\xf2\xf9\xe4\xeb\xf6\xfc\xc5\xee\xd8\xc6\xe5\xed\xf8\xe6\xc4\xec\xd6\xdc\xc9\xef\xdf\xd4\xc1\xc3\xe3\xd0\xf0\xcd\xcc\xd3\xd2\xd5\xf5Šš\xdaŸ\xff\xde\xfe\xb7\xb5\xb6\xbe—\xbc\xbd\xaa\xba\xab■\xbb\xb1�"},macintosh:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠\xc6\xd8∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩ\xe6\xf8\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸ⁄\xa4‹›fifl‡\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9ıˆ˜\xaf˘˙˚\xb8˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}},89432(e){e.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xc4Āā\xc9Ą\xd6\xdc\xe1ąČ\xe4čĆć\xe9ŹźĎ\xedďĒēĖ\xf3ė\xf4\xf6\xf5\xfaĚě\xfc†\xb0Ę\xa3\xa7•\xb6\xdf\xae\xa9™ę\xa8≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ\xac√ńŇ∆\xab\xbb…\xa0ňŐ\xd5őŌ–—“”‘’\xf7◊ōŔŕŘ‹›řŖŗŠ‚„šŚś\xc1Ťť\xcdŽžŪ\xd3\xd4ūŮ\xdaůŰűŲų\xdd\xfdķŻŁżĢˇ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў\xb0∙\xb7√№€■\xa0"},mik:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№\xa7╗╝┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},cp720:{type:"_sbcs",chars:"\x80\x81\xe9\xe2\x84\xe0\x86\xe7\xea\xeb\xe8\xef\xee\x8d\x8e\x8f\x90ّْ\xf4\xa4ـ\xfb\xf9ءآأؤ\xa3إئابةتثجحخدذرزسشص\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغف\xb5قكلمنهوىي≡ًٌٍَُِ≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},21728(e,t,a){var i=a(19845).Buffer;function n(){}function r(){}function o(){this.overflowByte=-1}function s(e,t){this.iconv=t}function p(e,t){void 0===(e=e||{}).addBOM&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder("utf-16le",e)}function l(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}function d(e,t){var a=[],i=0,n=0,r=0;e:for(var o=0;o<e.length;o++)for(var s=e[o],p=0;p<s.length;p++)if(a.push(s[p]),2===a.length){if(0===i){if(255===a[0]&&254===a[1])return"utf-16le";if(254===a[0]&&255===a[1])return"utf-16be"}if(0===a[0]&&0!==a[1]&&r++,0!==a[0]&&0===a[1]&&n++,a.length=0,++i>=100)break e}return r>n?"utf-16be":r<n?"utf-16le":t||"utf-16le"}t.utf16be=n,n.prototype.encoder=r,n.prototype.decoder=o,n.prototype.bomAware=!0,r.prototype.write=function(e){for(var t=i.from(e,"ucs2"),a=0;a<t.length;a+=2){var n=t[a];t[a]=t[a+1],t[a+1]=n}return t},r.prototype.end=function(){},o.prototype.write=function(e){if(0==e.length)return"";var t=i.alloc(e.length+1),a=0,n=0;for(-1!==this.overflowByte&&(t[0]=e[0],t[1]=this.overflowByte,a=1,n=2);a<e.length-1;a+=2,n+=2)t[n]=e[a+1],t[n+1]=e[a];return this.overflowByte=a==e.length-1?e[e.length-1]:-1,t.slice(0,n).toString("ucs2")},o.prototype.end=function(){this.overflowByte=-1},t.utf16=s,s.prototype.encoder=p,s.prototype.decoder=l,p.prototype.write=function(e){return this.encoder.write(e)},p.prototype.end=function(){return this.encoder.end()},l.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<16)return"";var t=d(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var a="",i=0;i<this.initialBufs.length;i++)a+=this.decoder.write(this.initialBufs[i]);return this.initialBufs.length=this.initialBufsLen=0,a}return this.decoder.write(e)},l.prototype.end=function(){if(!this.decoder){var e=d(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",a=0;a<this.initialBufs.length;a++)t+=this.decoder.write(this.initialBufs[a]);var i=this.decoder.end();return i&&(t+=i),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()}},72110(e,t,a){var i=a(19845).Buffer;function n(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}function r(e,t){this.isLE=t.isLE,this.highSurrogate=0}function o(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}function s(e,t,a,i){if((a<0||a>1114111)&&(a=i),a>=65536){var n=55296|(a-=65536)>>10;e[t++]=255&n,e[t++]=n>>8;var a=56320|1023&a}return e[t++]=255&a,e[t++]=a>>8,t}function p(e,t){this.iconv=t}function l(e,t){void 0===(e=e||{}).addBOM&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}function d(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}function u(e,t){var a=[],i=0,n=0,r=0,o=0,s=0;e:for(var p=0;p<e.length;p++)for(var l=e[p],d=0;d<l.length;d++)if(a.push(l[d]),4===a.length){if(0===i){if(255===a[0]&&254===a[1]&&0===a[2]&&0===a[3])return"utf-32le";if(0===a[0]&&0===a[1]&&254===a[2]&&255===a[3])return"utf-32be"}if((0!==a[0]||a[1]>16)&&r++,(0!==a[3]||a[2]>16)&&n++,0===a[0]&&0===a[1]&&(0!==a[2]||0!==a[3])&&s++,(0!==a[0]||0!==a[1])&&0===a[2]&&0===a[3]&&o++,a.length=0,++i>=100)break e}return s-r>o-n?"utf-32be":s-r<o-n?"utf-32le":t||"utf-32le"}t._utf32=n,t.utf32le={type:"_utf32",isLE:!0},t.utf32be={type:"_utf32",isLE:!1},t.ucs4le="utf32le",t.ucs4be="utf32be",n.prototype.encoder=r,n.prototype.decoder=o,r.prototype.write=function(e){for(var t=i.from(e,"ucs2"),a=i.alloc(2*t.length),n=this.isLE?a.writeUInt32LE:a.writeUInt32BE,r=0,o=0;o<t.length;o+=2){var s=t.readUInt16LE(o),p=s>=55296&&s<56320,l=s>=56320&&s<57344;if(this.highSurrogate)if(p||!l)n.call(a,this.highSurrogate,r),r+=4;else{var d=(this.highSurrogate-55296<<10|s-56320)+65536;n.call(a,d,r),r+=4,this.highSurrogate=0;continue}p?this.highSurrogate=s:(n.call(a,s,r),r+=4,this.highSurrogate=0)}return r<a.length&&(a=a.slice(0,r)),a},r.prototype.end=function(){if(this.highSurrogate){var e=i.alloc(4);return this.isLE?e.writeUInt32LE(this.highSurrogate,0):e.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,e}},o.prototype.write=function(e){if(0===e.length)return"";var t=0,a=0,n=i.alloc(e.length+4),r=0,o=this.isLE,p=this.overflow,l=this.badChar;if(p.length>0){for(;t<e.length&&p.length<4;t++)p.push(e[t]);4===p.length&&(a=o?p[t]|p[t+1]<<8|p[t+2]<<16|p[t+3]<<24:p[t+3]|p[t+2]<<8|p[t+1]<<16|p[t]<<24,p.length=0,r=s(n,r,a,l))}for(;t<e.length-3;t+=4)r=s(n,r,a=o?e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24:e[t+3]|e[t+2]<<8|e[t+1]<<16|e[t]<<24,l);for(;t<e.length;t++)p.push(e[t]);return n.slice(0,r).toString("ucs2")},o.prototype.end=function(){this.overflow.length=0},t.utf32=p,t.ucs4="utf32",p.prototype.encoder=l,p.prototype.decoder=d,l.prototype.write=function(e){return this.encoder.write(e)},l.prototype.end=function(){return this.encoder.end()},d.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<32)return"";var t=u(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var a="",i=0;i<this.initialBufs.length;i++)a+=this.decoder.write(this.initialBufs[i]);return this.initialBufs.length=this.initialBufsLen=0,a}return this.decoder.write(e)},d.prototype.end=function(){if(!this.decoder){var e=u(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",a=0;a<this.initialBufs.length;a++)t+=this.decoder.write(this.initialBufs[a]);var i=this.decoder.end();return i&&(t+=i),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()}},3066(e,t,a){var i=a(19845).Buffer;function n(e,t){this.iconv=t}t.utf7=n,t.unicode11utf7="utf7",n.prototype.encoder=o,n.prototype.decoder=s,n.prototype.bomAware=!0;var r=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function o(e,t){this.iconv=t.iconv}function s(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}o.prototype.write=function(e){return i.from(e.replace(r,(function(e){return"+"+("+"===e?"":this.iconv.encode(e,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}).bind(this)))},o.prototype.end=function(){};for(var p=/[A-Za-z0-9\/+]/,l=[],d=0;d<256;d++)l[d]=p.test(String.fromCharCode(d));function u(e,t){this.iconv=t}function c(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=i.alloc(6),this.base64AccumIdx=0}function m(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}s.prototype.write=function(e){for(var t="",a=0,n=this.inBase64,r=this.base64Accum,o=0;o<e.length;o++)if(n){if(!l[e[o]]){if(o==a&&45==e[o])t+="+";else{var s=r+this.iconv.decode(e.slice(a,o),"ascii");t+=this.iconv.decode(i.from(s,"base64"),"utf16-be")}45!=e[o]&&o--,a=o+1,n=!1,r=""}}else 43==e[o]&&(t+=this.iconv.decode(e.slice(a,o),"ascii"),a=o+1,n=!0);if(n){var s=r+this.iconv.decode(e.slice(a),"ascii"),p=s.length-s.length%8;r=s.slice(p),s=s.slice(0,p),t+=this.iconv.decode(i.from(s,"base64"),"utf16-be")}else t+=this.iconv.decode(e.slice(a),"ascii");return this.inBase64=n,this.base64Accum=r,t},s.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(i.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e},t.utf7imap=u,u.prototype.encoder=c,u.prototype.decoder=m,u.prototype.bomAware=!0,c.prototype.write=function(e){for(var t=this.inBase64,a=this.base64Accum,n=this.base64AccumIdx,r=i.alloc(5*e.length+10),o=0,s=0;s<e.length;s++){var p=e.charCodeAt(s);p>=32&&p<=126?(t&&(n>0&&(o+=r.write(a.slice(0,n).toString("base64").replace(/\//g,",").replace(/=+$/,""),o),n=0),r[o++]=45,t=!1),t||(r[o++]=p,38===p&&(r[o++]=45))):(t||(r[o++]=38,t=!0),t&&(a[n++]=p>>8,a[n++]=255&p,n==a.length&&(o+=r.write(a.toString("base64").replace(/\//g,","),o),n=0)))}return this.inBase64=t,this.base64AccumIdx=n,r.slice(0,o)},c.prototype.end=function(){var e=i.alloc(10),t=0;return this.inBase64&&(this.base64AccumIdx>0&&(t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t),this.base64AccumIdx=0),e[t++]=45,this.inBase64=!1),e.slice(0,t)};var f=l.slice();f[44]=!0,m.prototype.write=function(e){for(var t="",a=0,n=this.inBase64,r=this.base64Accum,o=0;o<e.length;o++)if(n){if(!f[e[o]]){if(o==a&&45==e[o])t+="&";else{var s=r+this.iconv.decode(e.slice(a,o),"ascii").replace(/,/g,"/");t+=this.iconv.decode(i.from(s,"base64"),"utf16-be")}45!=e[o]&&o--,a=o+1,n=!1,r=""}}else 38==e[o]&&(t+=this.iconv.decode(e.slice(a,o),"ascii"),a=o+1,n=!0);if(n){var s=r+this.iconv.decode(e.slice(a),"ascii").replace(/,/g,"/"),p=s.length-s.length%8;r=s.slice(p),s=s.slice(0,p),t+=this.iconv.decode(i.from(s,"base64"),"utf16-be")}else t+=this.iconv.decode(e.slice(a),"ascii");return this.inBase64=n,this.base64Accum=r,t},m.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(i.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}},20447(e,t){function a(e,t){this.encoder=e,this.addBOM=!0}function i(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}t.PrependBOM=a,a.prototype.write=function(e){return this.addBOM&&(e="\uFEFF"+e,this.addBOM=!1),this.encoder.write(e)},a.prototype.end=function(){return this.encoder.end()},t.StripBOM=i,i.prototype.write=function(e){var t=this.decoder.write(e);return this.pass||!t||("\uFEFF"===t[0]&&(t=t.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),t},i.prototype.end=function(){return this.decoder.end()}},43259(e){var t=void 0===Object.hasOwn?Function.call.bind(Object.prototype.hasOwnProperty):Object.hasOwn;e.exports=function(e,a){for(var i in a)t(a,i)&&(e[i]=a[i])}},65679(e,t,a){var i,n=a(19845).Buffer,r=a(20447),o=a(43259),s=e.exports;s.encodings=null,s.defaultCharUnicode="�",s.defaultCharSingleByte="?",s.encode=function(e,t,a){e=""+(e||"");var i=s.getEncoder(t,a),r=i.write(e),o=i.end();return o&&o.length>0?n.concat([r,o]):r},s.decode=function(e,t,a){"string"==typeof e&&(s.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),s.skipDecodeWarning=!0),e=n.from(""+(e||""),"binary"));var i=s.getDecoder(t,a),r=i.write(e),o=i.end();return o?r+o:r},s.encodingExists=function(e){try{return s.getCodec(e),!0}catch(e){return!1}},s.toEncoding=s.encode,s.fromEncoding=s.decode,s._codecDataCache={__proto__:null},s.getCodec=function(e){if(!s.encodings){var t=a(12338);s.encodings={__proto__:null},o(s.encodings,t)}for(var i=s._canonicalizeEncoding(e),n={};;){var r=s._codecDataCache[i];if(r)return r;var p=s.encodings[i];switch(typeof p){case"string":i=p;break;case"object":for(var l in p)n[l]=p[l];n.encodingName||(n.encodingName=i),i=p.type;break;case"function":return n.encodingName||(n.encodingName=i),r=new p(n,s),s._codecDataCache[n.encodingName]=r,r;default:throw Error("Encoding not recognized: '"+e+"' (searched as: '"+i+"')")}}},s._canonicalizeEncoding=function(e){return(""+e).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},s.getEncoder=function(e,t){var a=s.getCodec(e),i=new a.encoder(t,a);return a.bomAware&&t&&t.addBOM&&(i=new r.PrependBOM(i,t)),i},s.getDecoder=function(e,t){var a=s.getCodec(e),i=new a.decoder(t,a);return a.bomAware&&!(t&&!1===t.stripBOM)&&(i=new r.StripBOM(i,t)),i},s.enableStreamingAPI=function(e){if(!s.supportsStreams){var t=a(6254)(e);s.IconvLiteEncoderStream=t.IconvLiteEncoderStream,s.IconvLiteDecoderStream=t.IconvLiteDecoderStream,s.encodeStream=function(e,t){return new s.IconvLiteEncoderStream(s.getEncoder(e,t),t)},s.decodeStream=function(e,t){return new s.IconvLiteDecoderStream(s.getDecoder(e,t),t)},s.supportsStreams=!0}};try{i=a(2203)}catch(e){}i&&i.Transform?s.enableStreamingAPI(i):s.encodeStream=s.decodeStream=function(){throw Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},6254(e,t,a){var i=a(19845).Buffer;e.exports=function(e){var t=e.Transform;function a(e,a){this.conv=e,(a=a||{}).decodeStrings=!1,t.call(this,a)}function n(e,a){this.conv=e,(a=a||{}).encoding=this.encoding="utf8",t.call(this,a)}return a.prototype=Object.create(t.prototype,{constructor:{value:a}}),a.prototype._transform=function(e,t,a){if("string"!=typeof e)return a(Error("Iconv encoding stream needs strings as its input."));try{var i=this.conv.write(e);i&&i.length&&this.push(i),a()}catch(e){a(e)}},a.prototype._flush=function(e){try{var t=this.conv.end();t&&t.length&&this.push(t),e()}catch(t){e(t)}},a.prototype.collect=function(e){var t=[];return this.on("error",e),this.on("data",function(e){t.push(e)}),this.on("end",function(){e(null,i.concat(t))}),this},n.prototype=Object.create(t.prototype,{constructor:{value:n}}),n.prototype._transform=function(e,t,a){if(!i.isBuffer(e)&&!(e instanceof Uint8Array))return a(Error("Iconv decoding stream needs buffers as its input."));try{var n=this.conv.write(e);n&&n.length&&this.push(n,this.encoding),a()}catch(e){a(e)}},n.prototype._flush=function(e){try{var t=this.conv.end();t&&t.length&&this.push(t,this.encoding),e()}catch(t){e(t)}},n.prototype.collect=function(e){var t="";return this.on("error",e),this.on("data",function(e){t+=e}),this.on("end",function(){e(null,t)}),this},{IconvLiteEncoderStream:a,IconvLiteDecoderStream:n}}},68089(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let n=a(24434),r=i(a(3680)),o=i(a(9873)),s=r.default("agent-base");function p(){let{stack:e}=Error();return"string"==typeof e&&e.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}function l(e,t){return new l.Agent(e,t)}var d=l||(l={});class u extends n.EventEmitter{constructor(e,t){super();let a=t;"function"==typeof e?this.callback=e:e&&(a=e),this.timeout=null,a&&"number"==typeof a.timeout&&(this.timeout=a.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:p()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:p()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,a){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){let a=Object.assign({},t);"boolean"!=typeof a.secureEndpoint&&(a.secureEndpoint=p()),null==a.host&&(a.host="localhost"),null==a.port&&(a.port=a.secureEndpoint?443:80),null==a.protocol&&(a.protocol=a.secureEndpoint?"https:":"http:"),a.host&&a.path&&delete a.path,delete a.agent,delete a.hostname,delete a._defaultAgent,delete a.defaultPort,delete a.createConnection,e._last=!0,e.shouldKeepAlive=!1;let i=!1,n=null,r=a.timeout||this.timeout,l=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},d=e=>{i||(null!==n&&(clearTimeout(n),n=null),l(e))},u=t=>{if(!i){if(null!=n&&(clearTimeout(n),n=null),t&&"function"==typeof t.addRequest){s("Callback returned another Agent instance %o",t.constructor.name),t.addRequest(e,a);return}if(t){t.once("free",()=>{this.freeSocket(t,a)}),e.onSocket(t);return}l(Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``))}};if("function"!=typeof this.callback)return void l(Error("`callback` is not defined"));this.promisifiedCallback||(this.callback.length>=3?(s("Converting legacy callback function to promise"),this.promisifiedCallback=o.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof r&&r>0&&(n=setTimeout(()=>{n=null,i=!0;let e=Error(`A "socket" was not created for HTTP request before ${r}ms`);e.code="ETIMEOUT",l(e)},r)),"port"in a&&"number"!=typeof a.port&&(a.port=Number(a.port));try{s("Resolving socket for %o request: %o",a.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,a)).then(u,d)}catch(e){Promise.reject(e).catch(d)}}freeSocket(e,t){s("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){s("Destroying agent %o",this.constructor.name)}}d.Agent=u,d.prototype=d.Agent.prototype,e.exports=l},9873(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,a){return new Promise((i,n)=>{e.call(this,t,a,(e,t)=>{e?n(e):i(t)})})}}},91371(e){e.exports=({onlyFirst:e=!1}={})=>RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",e?void 0:"g")},52794(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let n=i(a(62142));t.default=class{name(){return"ASCII"}match(e){let t=e.rawInput;for(let a=0;a<e.rawLen;a++){let i=t[a];if(i<32||i>126)return(0,n.default)(e,this,0)}return(0,n.default)(e,this,100)}}},98554(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ISO_2022_CN=t.ISO_2022_KR=t.ISO_2022_JP=void 0;let n=i(a(62142));class r{constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(e){let t,a,i,r,o=0,s=0,p=0,l=e.inputBytes,d=e.inputLen;t:for(t=0;t<d;t++){if(27==l[t]){a:for(i=0;i<this.escapeSequences.length;i++){let e=this.escapeSequences[i];if(!(d-t<e.length)){for(a=1;a<e.length;a++)if(e[a]!=l[t+a])continue a;o++,t+=e.length-1;continue t}}s++}(14==l[t]||15==l[t])&&p++}return 0==o?null:(r=(100*o-100*s)/(o+s),o+p<5&&(r-=(5-(o+p))*10),r<=0?null:(0,n.default)(e,this,r))}}t.ISO_2022_JP=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}},t.ISO_2022_KR=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}},t.ISO_2022_CN=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}}},73192(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.gb_18030=t.euc_kr=t.euc_jp=t.big5=t.sjis=void 0;let n=i(a(62142));class r{constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(e){return this.nextIndex>=e.rawLen?(this.done=!0,-1):255&e.rawInput[this.nextIndex++]}}class o{constructor(){this.commonChars=[]}name(){return"mbcs"}match(e){let t=0,a=0,i=0,o=0,s=0,p=new r;i:{for(p.reset();this.nextChar(p,e);){if(o++,p.error)i++;else{let e=0|p.charValue;e>255&&(t++,null!=this.commonChars&&function(e,t){let a=(e,t,i,n)=>{if(n<i)return -1;let r=Math.floor(i+n>>>1);return t>e[r]?a(e,t,r+1,n):t<e[r]?a(e,t,i,r-1):r};return a(e,t,0,e.length-1)}(this.commonChars,e)>=0&&a++)}if(i>=2&&5*i>=t)break i}if(t<=10&&0==i){s=0==t&&o<10?0:10;break i}if(t<20*i){s=0;break i}null==this.commonChars?(s=30+t-20*i)>100&&(s=100):s=Math.min(s=Math.floor(90/Math.log(t/4)*Math.log(a+1)+10),100)}return 0==s?null:(0,n.default)(e,this,s)}nextChar(e,t){return!0}}function s(e,t){e.index=e.nextIndex,e.error=!1;let a=0,i=0,n=0;n:{if((a=e.charValue=e.nextByte(t))<0){e.done=!0;break n}if(a<=141)break n;if(i=e.nextByte(t),e.charValue=e.charValue<<8|i,a>=161&&a<=254||142==a){i<161&&(e.error=!0);break n}143==a&&(n=e.nextByte(t),e.charValue=e.charValue<<8|n,n<161&&(e.error=!0))}return!1==e.done}t.sjis=class extends o{constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let a=e.charValue=e.nextByte(t);if(a<0)return!1;if(a<=127||a>160&&a<=223)return!0;let i=e.nextByte(t);return!(i<0)&&(e.charValue=a<<8|i,i>=64&&i<=127||i>=128&&i<=255||(e.error=!0),!0)}},t.big5=class extends o{constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let a=e.charValue=e.nextByte(t);if(a<0)return!1;if(a<=127||255==a)return!0;let i=e.nextByte(t);return!(i<0)&&(e.charValue=e.charValue<<8|i,(i<64||127==i||255==i)&&(e.error=!0),!0)}},t.euc_jp=class extends o{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=s}name(){return"EUC-JP"}language(){return"ja"}},t.euc_kr=class extends o{constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=s}name(){return"EUC-KR"}language(){return"ko"}},t.gb_18030=class extends o{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let a=0,i=0,n=0,r=0;n:{if((a=e.charValue=e.nextByte(t))<0){e.done=!0;break n}if(a<=128)break n;if(i=e.nextByte(t),e.charValue=e.charValue<<8|i,a>=129&&a<=254){if(i>=64&&i<=126||i>=80&&i<=254)break n;if(i>=48&&i<=57&&(n=e.nextByte(t))>=129&&n<=254&&(r=e.nextByte(t))>=48&&r<=57){e.charValue=e.charValue<<16|n<<8|r;break n}e.error=!0;break n}}return!1==e.done}}},76482(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KOI8_R=t.windows_1256=t.windows_1251=t.ISO_8859_9=t.ISO_8859_8=t.ISO_8859_7=t.ISO_8859_6=t.ISO_8859_5=t.ISO_8859_2=t.ISO_8859_1=void 0;let n=i(a(62142));class r{constructor(e,t){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=e,this.byteMap=t}search(e,t){let a=0;return(e[32]<=t&&(a+=32),e[a+16]<=t&&(a+=16),e[a+8]<=t&&(a+=8),e[a+4]<=t&&(a+=4),e[a+2]<=t&&(a+=2),e[a+1]<=t&&(a+=1),e[a]>t&&(a-=1),a<0||e[a]!=t)?-1:a}lookup(e){this.ngramCount+=1,this.search(this.ngramList,e)>=0&&(this.hitCount+=1)}addByte(e){this.ngram=(this.ngram<<8)+(255&e)&0xffffff,this.lookup(this.ngram)}nextByte(e){return this.byteIndex>=e.inputLen?-1:255&e.inputBytes[this.byteIndex++]}parse(e,t){let a,i=!1;for(this.spaceChar=t;(a=this.nextByte(e))>=0;){let e=this.byteMap[a];0!=e&&(e==this.spaceChar&&i||this.addByte(e),i=e==this.spaceChar)}this.addByte(this.spaceChar);let n=this.hitCount/this.ngramCount;return n>.33?98:Math.floor(300*n)}}class o{constructor(e,t){this.fLang=e,this.fNGrams=t}}class s{constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(e){return"sbcs"}language(){return this.nGramLang}match(e){this.nGramLang=void 0;let t=this.ngrams();if(Array.isArray(t)&&isFinite(t[0])){let a=new r(t,this.byteMap()).parse(e,this.spaceChar);return a<=0?null:(0,n.default)(e,this,a)}let a=-1;for(let i=t.length-1;i>=0;i--){let n=t[i],o=new r(n.fNGrams,this.byteMap()).parse(e,this.spaceChar);o>a&&(a=o,this.nGramLang=n.fLang)}return a<=0?null:(0,n.default)(e,this,a)}}t.ISO_8859_1=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new o("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new o("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new o("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new o("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,0xf36e20]),new o("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new o("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new o("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new o("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new o("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,0xe36f20,0xe7e36f]),new o("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,0xe47220,0xf67220])]}name(e){return e&&e.c1Bytes?"windows-1252":"ISO-8859-1"}},t.ISO_8859_2=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new o("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,0xbe6520,0xe16eed,0xe9686f,0xed2070,0xed2073,0xed6d20,0xf86564]),new o("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,0xe16e20,0xe97320]),new o("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,0xf37720]),new o("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,0xba6920,0xee6e20])]}name(e){return e&&e.c1Bytes?"windows-1250":"ISO-8859-2"}},t.ISO_8859_5=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,0xd0ddd8,0xd0e2ec,0xd3de20,0xd5dbec,0xd5ddd8,0xd5e1e2,0xd5e220,0xd820df,0xd8d520,0xd8d820,0xd8ef20,0xdbd5dd,0xdbd820,0xdbecdd,0xddd020,0xddd520,0xddd8d5,0xddd8ef,0xddde20,0xddded2,0xde20d2,0xde20df,0xde20e1,0xded220,0xded2d0,0xded3de,0xded920,0xdedbec,0xdedc20,0xdee1e2,0xdfdedb,0xdfe0d5,0xdfe0d8,0xdfe0de,0xe0d0d2,0xe0d5d4,0xe1e2d0,0xe1e2d2,0xe1e2d8,0xe1ef20,0xe2d5db,14868e3,0xe2dee0,0xe2ec20,0xe7e2de,0xebe520]}name(){return"ISO-8859-5"}language(){return"ru"}},t.ISO_8859_6=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,0xc720c7,0xc7c120,0xc7ca20,0xc7d120,0xc7e420,0xc7e4c3,0xc7e4c7,0xc7e4c8,0xc7e4ca,0xc7e4cc,0xc7e4cd,0xc7e4cf,0xc7e4d3,0xc7e4d9,0xc7e4e2,0xc7e4e5,0xc7e4e8,0xc7e4ea,0xc7e520,0xc7e620,0xc7e6ca,0xc820c7,0xc920c7,0xc920e1,0xc920e4,0xc920e5,0xc920e8,0xca20c7,0xcf20c7,0xcfc920,0xd120c7,0xd1c920,0xd320c7,0xd920c7,0xd9e4e9,0xe1ea20,0xe420c7,0xe4c920,0xe4e920,0xe4ea20,0xe520c7,0xe5c720,0xe5c920,0xe5e620,0xe620c7,0xe720c7,0xe7c720,0xe8c7e4,0xe8e620,0xe920c7,0xea20c7,0xea20e5,0xea20e8,0xeac920,0xead120,0xeae620]}name(){return"ISO-8859-6"}language(){return"ar"}},t.ISO_8859_7=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,0xdfe120,0xe120e1,0xe120f4,0xe1e920,0xe1ed20,0xe1f0fc,0xe1f220,0xe3e9e1,0xe5e920,0xe5f220,0xe720f4,0xe7ed20,0xe7f220,0xe920f4,0xe9e120,0xe9eade,0xe9f220,0xeae1e9,0xeae1f4,0xece520,0xed20e1,0xed20e5,0xed20f0,0xede120,0xeff220,0xeff520,0xf0eff5,0xf0f1ef,0xf0fc20,0xf220e1,0xf220e5,0xf220ea,0xf220f0,0xf220f4,0xf3e520,0xf3e720,0xf3f4ef,0xf4e120,0xf4e1e9,0xf4e7ed,0xf4e7f2,0xf4e9ea,16052e3,0xf4eff5,0xf4f9ed,0xf9ed20,0xfeed20]}name(e){return e&&e.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}},t.ISO_8859_8=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new o("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,0xe0fa20,0xe420e0,0xe420e1,0xe420e4,0xe420ec,0xe420ee,0xe420f9,0xe4e5e0,0xe5e020,0xe5ed20,0xe5ef20,0xe5f820,0xe5fa20,0xe920e4,0xe9e420,0xe9e5fa,0xe9e9ed,0xe9ed20,0xe9ef20,0xe9f820,0xe9fa20,0xec20e0,0xec20e4,0xece020,0xece420,0xed20e0,0xed20e1,0xed20e4,0xed20ec,0xed20ee,0xed20f9,0xeee420,0xef20e4,0xf0e420,0xf0e920,0xf0e9ed,0xf2ec20,0xf820e4,0xf8e9ed,0xf9ec20,0xfa20e0,0xfa20e1,0xfa20e4,0xfa20ec,0xfa20ee,0xfa20f9]),new o("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,0xe020e4,0xe020ec,0xe020ed,0xe020fa,0xe0e420,0xe0e5e4,0xe0ec20,0xe0ee20,0xe120e4,0xe120ed,0xe120fa,0xe420e4,0xe420e9,0xe420ec,0xe420ed,0xe420ef,0xe420f8,0xe420fa,0xe4ec20,0xe5e020,0xe5e420,0xe7e020,0xe9e020,0xe9e120,0xe9e420,0xec20e4,0xec20ed,0xec20fa,0xecf220,0xecf920,0xede9e9,0xede9f0,0xede9f8,0xee20e4,0xee20ed,0xee20fa,0xeee120,0xeee420,0xf2e420,0xf920e4,0xf920ed,0xf920fa,0xf9e420,0xfae020,0xfae420,0xfae5e9])]}name(e){return e&&e.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}},t.ISO_8859_9=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,0xfd6e20,0xfd6e64,0xfd6efd,0xfdf0fd]}name(e){return e&&e.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}},t.windows_1251=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,0xe0ede8,0xe0f2fc,0xe3ee20,0xe5ebfc,0xe5ede8,0xe5f1f2,0xe5f220,0xe820ef,0xe8e520,0xe8e820,0xe8ff20,0xebe5ed,0xebe820,0xebfced,0xede020,0xede520,0xede8e5,0xede8ff,0xedee20,0xedeee2,0xee20e2,0xee20ef,0xee20f1,0xeee220,0xeee2e0,0xeee3ee,0xeee920,0xeeebfc,0xeeec20,0xeef1f2,0xefeeeb,0xeff0e5,0xeff0e8,0xeff0ee,0xf0e0e2,0xf0e5e4,0xf1f2e0,0xf1f2e2,0xf1f2e8,0xf1ff20,0xf2e5eb,0xf2ee20,0xf2eef0,0xf2fc20,0xf7f2ee,0xfbf520]}name(){return"windows-1251"}language(){return"ru"}},t.windows_1256=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,0xc720c7,0xc7c120,0xc7ca20,0xc7d120,0xc7e120,0xc7e1c3,0xc7e1c7,0xc7e1c8,0xc7e1ca,0xc7e1cc,0xc7e1cd,0xc7e1cf,0xc7e1d3,0xc7e1da,0xc7e1de,0xc7e1e3,0xc7e1e6,0xc7e1ed,0xc7e320,0xc7e420,0xc7e4ca,0xc820c7,0xc920c7,0xc920dd,0xc920e1,0xc920e3,0xc920e6,0xca20c7,0xcf20c7,0xcfc920,0xd120c7,0xd1c920,0xd320c7,0xda20c7,0xdae1ec,0xdded20,0xe120c7,0xe1c920,0xe1ec20,0xe1ed20,0xe320c7,0xe3c720,0xe3c920,0xe3e420,0xe420c7,0xe520c7,0xe5c720,0xe6c7e1,0xe6e420,0xec20c7,0xed20c7,0xed20e3,0xed20e6,0xedc920,0xedd120,0xede420]}name(){return"windows-1256"}language(){return"ar"}},t.KOI8_R=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,0xc1cec9,0xc1d4d8,0xc5ccd8,0xc5cec9,0xc5d3d4,0xc5d420,0xc7cf20,0xc920d0,0xc9c520,0xc9c920,0xc9d120,0xccc5ce,0xccc920,0xccd8ce,0xcec120,0xcec520,0xcec9c5,0xcec9d1,0xcecf20,0xcecfd7,0xcf20d0,0xcf20d3,0xcf20d7,0xcfc7cf,0xcfca20,0xcfccd8,0xcfcd20,0xcfd3d4,0xcfd720,0xcfd7c1,0xd0cfcc,0xd0d2c5,0xd0d2c9,0xd0d2cf,0xd2c1d7,0xd2c5c4,0xd3d120,0xd3d4c1,0xd3d4c9,0xd3d4d7,0xd4c5cc,0xd4cf20,0xd4cfd2,0xd4d820,0xd9c820,0xded4cf]}name(){return"KOI8-R"}language(){return"ru"}}},13998(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UTF_32LE=t.UTF_32BE=t.UTF_16LE=t.UTF_16BE=void 0;let n=i(a(62142));t.UTF_16BE=class{name(){return"UTF-16BE"}match(e){let t=e.rawInput;return t.length>=2&&(255&t[0])==254&&(255&t[1])==255?(0,n.default)(e,this,100):null}},t.UTF_16LE=class{name(){return"UTF-16LE"}match(e){let t=e.rawInput;return t.length>=2&&(255&t[0])==255&&(255&t[1])==254?t.length>=4&&0==t[2]&&0==t[3]?null:(0,n.default)(e,this,100):null}};class r{name(){return"UTF-32"}getChar(e,t){return -1}match(e){let t=0,a=0,i=!1,r=0,o=e.rawLen/4*4,s=e.rawInput;if(0==o)return null;65279==this.getChar(s,0)&&(i=!0);for(let e=0;e<o;e+=4){let i=this.getChar(s,e);i<0||i>=1114111||i>=55296&&i<=57343?a+=1:t+=1}return i&&0==a?r=100:i&&t>10*a?r=80:t>3&&0==a?r=100:t>0&&0==a?r=80:t>10*a&&(r=25),0==r?null:(0,n.default)(e,this,r)}}t.UTF_32BE=class extends r{name(){return"UTF-32BE"}getChar(e,t){return(255&e[t+0])<<24|(255&e[t+1])<<16|(255&e[t+2])<<8|255&e[t+3]}},t.UTF_32LE=class extends r{name(){return"UTF-32LE"}getChar(e,t){return(255&e[t+3])<<24|(255&e[t+2])<<16|(255&e[t+1])<<8|255&e[t+0]}}},36126(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let n=i(a(62142));t.default=class{name(){return"UTF-8"}match(e){let t=!1,a=0,i=0,r=0,o,s=e.rawInput;e.rawLen>=3&&(255&s[0])==239&&(255&s[1])==187&&(255&s[2])==191&&(t=!0);for(let t=0;t<e.rawLen;t++){let n=s[t];if((128&n)!=0){if((224&n)==192)r=1;else if((240&n)==224)r=2;else if((248&n)==240)r=3;else{if(++i>5)break;r=0}for(;!(++t>=e.rawLen);){if((192&s[t])!=128){i++;break}if(0==--r){a++;break}}}}if(o=0,t&&0==i)o=100;else if(t&&a>10*i)o=80;else if(a>3&&0==i)o=100;else if(a>0&&0==i)o=80;else if(0==a&&0==i)o=10;else{if(!(a>10*i))return null;o=25}return(0,n.default)(e,this,o)}}},5779(e,t,a){let i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=()=>{if("object"==typeof e.exports)return i=i||a(79896);throw Error("File system is not available")}},68023(e,t,a){var i,n=this&&this.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var n=Object.getOwnPropertyDescriptor(t,a);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,n)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(i=function(e){return(i=Object.getOwnPropertyNames||function(e){var t=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[t.length]=a);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a=i(e),o=0;o<a.length;o++)"default"!==a[o]&&n(t,e,a[o]);return r(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.detectFileSync=t.detectFile=t.analyse=t.detect=void 0;let p=s(a(5779)),l=s(a(52794)),d=s(a(36126)),u=o(a(13998)),c=o(a(73192)),m=o(a(76482)),f=o(a(98554)),h=a(89346),v=[new d.default,new u.UTF_16BE,new u.UTF_16LE,new u.UTF_32BE,new u.UTF_32LE,new c.sjis,new c.big5,new c.euc_jp,new c.euc_kr,new c.gb_18030,new f.ISO_2022_JP,new f.ISO_2022_KR,new f.ISO_2022_CN,new m.ISO_8859_1,new m.ISO_8859_2,new m.ISO_8859_5,new m.ISO_8859_6,new m.ISO_8859_7,new m.ISO_8859_8,new m.ISO_8859_9,new m.windows_1251,new m.windows_1256,new m.KOI8_R,new l.default];t.detect=e=>{let a=(0,t.analyse)(e);return a.length>0?a[0].name:null},t.analyse=e=>{if(!(0,h.isByteArray)(e))throw Error("Input must be a byte array, e.g. Buffer or Uint8Array");let t=[];for(let e=0;e<256;e++)t[e]=0;for(let a=e.length-1;a>=0;a--)t[255&e[a]]++;let a=!1;for(let e=128;e<=159;e+=1)if(0!==t[e]){a=!0;break}let i={byteStats:t,c1Bytes:a,rawInput:e,rawLen:e.length,inputBytes:e,inputLen:e.length};return v.map(e=>e.match(i)).filter(e=>!!e).sort((e,t)=>t.confidence-e.confidence)},t.detectFile=(e,a={})=>new Promise((i,n)=>{let r,o=(0,p.default)(),s=(e,a)=>{r&&o.closeSync(r),e?n(e):a?i((0,t.detect)(a)):n(Error("No error and no buffer received"))},l=(null==a?void 0:a.sampleSize)||0;if(l>0){r=o.openSync(e,"r");let t=Buffer.allocUnsafe(l);o.read(r,t,0,l,a.offset,(e,a)=>{e?s(e,null):(a<l&&(t=t.subarray(0,a)),s(null,t))});return}o.readFile(e,s)}),t.detectFileSync=(e,a={})=>{let i=(0,p.default)();if(a&&a.sampleSize){let n=i.openSync(e,"r"),r=Buffer.allocUnsafe(a.sampleSize),o=i.readSync(n,r,0,a.sampleSize,a.offset);return o<a.sampleSize&&(r=r.subarray(0,o)),i.closeSync(n),(0,t.detect)(r)}return(0,t.detect)(i.readFileSync(e))},t.default={analyse:t.analyse,detect:t.detect,detectFileSync:t.detectFileSync,detectFile:t.detectFile}},62142(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,a)=>({confidence:a,name:t.name(e),lang:t.language?t.language():void 0})},89346(e,t){t.isByteArray=void 0,t.isByteArray=e=>null!=e&&"object"==typeof e&&isFinite(e.length)&&e.length>=0},47661(e,t,a){let i=Object.assign({},a(3900)),n=Object.keys(i);Object.defineProperty(i,"random",{get(){let e=Math.floor(Math.random()*n.length);return i[n[e]]}}),e.exports=i},20124(e,t,a){let i;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;t.splice(1,0,a,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(n=i))}),t.splice(n,0,a)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"u">typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),i=!1,t.destroy=()=>{i||(i=!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`."))},t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=a(27891)(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},27891(e,t,a){e.exports=function(e){function t(e){let a,n,r,o=null;function s(...e){if(!s.enabled)return;let i=Number(new Date);s.diff=i-(a||i),s.prev=a,s.curr=i,a=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let n=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(a,i)=>{if("%%"===a)return"%";n++;let r=t.formatters[i];if("function"==typeof r){let t=e[n];a=r.call(s,t),e.splice(n,1),n--}return a}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=i,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(n!==t.namespaces&&(n=t.namespaces,r=t.enabled(e)),r),set:e=>{o=e}}),"function"==typeof t.init&&t.init(s),s}function i(e,a){let i=t(this.namespace+(void 0===a?":":a)+e);return i.log=this.log,i}function n(e,t){let a=0,i=0,n=-1,r=0;for(;a<e.length;)if(i<t.length&&(t[i]===e[a]||"*"===t[i]))"*"===t[i]?(n=i,r=a):a++,i++;else{if(-1===n)return!1;i=n+1,a=++r}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let a of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===a[0]?t.skips.push(a.slice(1)):t.names.push(a)},t.enabled=function(e){for(let a of t.skips)if(n(e,a))return!1;for(let a of t.names)if(n(e,a))return!0;return!1},t.humanize=a(27250),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(a=>{t[a]=e[a]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let a=0;for(let t=0;t<e.length;t++)a=(a<<5)-a+e.charCodeAt(t)|0;return t.colors[Math.abs(a)%t.colors.length]},t.enable(t.load()),t}},3680(e,t,a){"u"<typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=a(20124):e.exports=a(85038)},85038(e,t,a){let i=a(52018),n=a(39023);t.init=function(e){e.inspectOpts={};let a=Object.keys(t.inspectOpts);for(let i=0;i<a.length;i++)e.inspectOpts[a[i]]=t.inspectOpts[a[i]]},t.log=function(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(a){let{namespace:i,useColors:n}=this;if(n){let t=this.color,n="\x1b[3"+(t<8?t:"8;5;"+t),r=` ${n};1m${i} \u001B[0m`;a[0]=r+a[0].split("\n").join("\n"+r),a.push(n+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else a[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+i+" "+a[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:i.isatty(process.stderr.fd)},t.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=a(35600);e&&(e.stderr||e).level>=2&&(t.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){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let a=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[a]=i,e},{}),e.exports=a(27891)(t);let{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}},81354(e){e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},94370(e,t,a){a.r(t),a.d(t,{default:()=>g,disableExperimentalFragmentVariables:()=>h,disableFragmentWarnings:()=>m,enableExperimentalFragmentVariables:()=>f,gql:()=>u,resetCaches:()=>c});var i,n=a(85608),r=a(20186),o=new Map,s=new Map,p=!0,l=!1;function d(e){return e.replace(/[\s,]+/g," ").trim()}function u(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,a){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[a+1]}),function(e){var t=d(e);if(!o.has(t)){var a,i,u,c,m,f=(0,r.qg)(e,{experimentalFragmentVariables:l,allowLegacyFragmentVariables:l});if(!f||"Document"!==f.kind)throw Error("Not a valid GraphQL document.");o.set(t,((c=new Set((a=new Set,i=[],f.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,n=e.name.value,r=d((t=e.loc).source.body.substring(t.start,t.end)),o=s.get(n);o&&!o.has(r)?p&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||s.set(n,o=new Set),o.add(r),a.has(r)||(a.add(r),i.push(e))}else i.push(e)}),u=(0,n.__assign)((0,n.__assign)({},f),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var a=e[t];a&&"object"==typeof a&&c.add(a)})}),(m=u.loc)&&(delete m.startToken,delete m.endToken),u))}return o.get(t)}(i)}function c(){o.clear(),s.clear()}function m(){p=!1}function f(){l=!0}function h(){l=!1}var v=u;(i=u||(u={})).gql=v,i.resetCaches=c,i.disableFragmentWarnings=m,i.enableExperimentalFragmentVariables=f,i.disableExperimentalFragmentVariables=h,u.default=u;let g=u},56071(e){e.exports=(e,t=process.argv)=>{let a=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(a+e),n=t.indexOf("--");return -1!==i&&(-1===n||i<n)}},35646(e,t,a){var i=this&&this.__awaiter||function(e,t,a,i){return new(a||(a=Promise))(function(n,r){function o(e){try{p(i.next(e))}catch(e){r(e)}}function s(e){try{p(i.throw(e))}catch(e){r(e)}}function p(e){var t;e.done?n(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(o,s)}p((i=i.apply(e,t||[])).next())})},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=n(a(69278)),o=n(a(64756)),s=n(a(87016)),p=n(a(42613)),l=n(a(3680)),d=a(68089),u=n(a(36981)),c=l.default("https-proxy-agent:agent");class m extends d.Agent{constructor(e){var t;let a;if(!(a="string"==typeof e?s.default.parse(e):e))throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");c("creating new HttpsProxyAgent instance: %o",a),super(a);let i=Object.assign({},a);this.secureProxy=a.secureProxy||"string"==typeof(t=i.protocol)&&/^https:?$/i.test(t),i.host=i.hostname||i.host,"string"==typeof i.port&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),!this.secureProxy||"ALPNProtocols"in i||(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return i(this,void 0,void 0,function*(){var a,i;let n,{proxy:s,secureProxy:l}=this;l?(c("Creating `tls.Socket`: %o",s),n=o.default.connect(s)):(c("Creating `net.Socket`: %o",s),n=r.default.connect(s));let d=Object.assign({},s.headers),m=`${t.host}:${t.port}`,h=`CONNECT ${m} HTTP/1.1\r
|
|
1
|
+
import*as e from"conf";import{createRequire as t}from"node:module";let a=t(import.meta.url);var i,n,r,o,s,p,l,d,u,c,m,f={74(e,t,a){e.exports=function(e){let t,i=(t={defaultWidth:0,output:process.stdout,tty:a(52018)},e?(Object.keys(t).forEach(function(a){e[a]||(e[a]=t[a])}),e):t);if(i.output.getWindowSize)return i.output.getWindowSize()[0]||i.defaultWidth;if(i.tty.getWindowSize)return i.tty.getWindowSize()[1]||i.defaultWidth;if(i.output.columns)return i.output.columns;if(process.env.CLI_WIDTH){let e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&0!==e)return e}return i.defaultWidth}},83329(e,t,a){let i=a(2203);e.exports=class extends i{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#a(e,...t){"function"==typeof this._dest?.[e]&&this._dest[e](...t),"function"==typeof this._src?.[e]&&this._src[e](...t)}get isTTY(){return null!==this.#e?this.#e:this.#t("isTTY",!1)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return 0===e.indexOf(this._prompt)&&(e=(e=e.slice(this._prompt.length)).replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&0===e.indexOf(this._prompt)&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#a("destroy",...e)}destroySoon(...e){return this.#a("destroySoon",...e)}close(...e){return this.#a("close",...e)}}},61893(e,t,a){let i=a(76505),n=a(79436),r=a(18947),o=new Set(["\x1b","\x9b"]),s=e=>`${o.values().next().value}[${e}m`,p=(e,t,a)=>{let r=[...t],s=!1,p=i(n(e[e.length-1]));for(let[t,n]of r.entries()){let l=i(n);if(p+l<=a?e[e.length-1]+=n:(e.push(n),p=0),o.has(n))s=!0;else if(s&&"m"===n){s=!1;continue}!s&&(p+=l)===a&&t<r.length-1&&(e.push(""),p=0)}!p&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},l=e=>{let t=e.split(" "),a=t.length;for(;a>0&&!(i(t[a-1])>0);)a--;return a===t.length?e:t.slice(0,a).join(" ")+t.slice(a).join("")};e.exports=(e,t,a)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map(e=>((e,t,a={})=>{let n;if(!1!==a.trim&&""===e.trim())return"";let d="",u="",c=e.split(" ").map(e=>i(e)),m=[""];for(let[n,r]of e.split(" ").entries()){!1!==a.trim&&(m[m.length-1]=m[m.length-1].trimLeft());let e=i(m[m.length-1]);if(0!==n&&(e>=t&&(!1===a.wordWrap||!1===a.trim)&&(m.push(""),e=0),(e>0||!1===a.trim)&&(m[m.length-1]+=" ",e++)),a.hard&&c[n]>t){let a=t-e,i=1+Math.floor((c[n]-a-1)/t);Math.floor((c[n]-1)/t)<i&&m.push(""),p(m,r,t);continue}if(e+c[n]>t&&e>0&&c[n]>0){if(!1===a.wordWrap&&e<t){p(m,r,t);continue}m.push("")}if(e+c[n]>t&&!1===a.wordWrap){p(m,r,t);continue}m[m.length-1]+=r}for(let[e,t]of(!1!==a.trim&&(m=m.map(l)),[...d=m.join("\n")].entries())){if(u+=t,o.has(t)){let t=parseFloat(/\d[^m]*/.exec(d.slice(e,e+4)));n=39===t?null:t}let a=r.codes.get(Number(n));n&&a&&("\n"===d[e+1]?u+=s(a):"\n"===t&&(u+=s(n)))}return u})(e,t,a)).join("\n")},18947(e,t,a){let i;e=a.nmd(e);let n=(e,t)=>(...a)=>{let i=e(...a);return`\u001B[${i+t}m`},r=(e,t)=>(...a)=>{let i=e(...a);return`\u001B[${38+t};5;${i}m`},o=(e,t)=>(...a)=>{let i=e(...a);return`\u001B[${38+t};2;${i[0]};${i[1]};${i[2]}m`},s=e=>e,p=(e,t,a)=>[e,t,a],l=(e,t,a)=>{Object.defineProperty(e,t,{get:()=>{let i=a();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},d=(e,t,n,r)=>{void 0===i&&(i=a(58712));let o=10*!!r,s={};for(let[a,r]of Object.entries(i)){let i="ansi16"===a?"ansi":a;a===t?s[i]=e(n,o):"object"==typeof r&&(s[i]=e(r[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};for(let[a,i]of(t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright,Object.entries(t))){for(let[a,n]of Object.entries(i))t[a]={open:`\u001B[${n[0]}m`,close:`\u001B[${n[1]}m`},i[a]=t[a],e.set(n[0],n[1]);Object.defineProperty(t,a,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",l(t.color,"ansi",()=>d(n,"ansi16",s,!1)),l(t.color,"ansi256",()=>d(r,"ansi256",s,!1)),l(t.color,"ansi16m",()=>d(o,"rgb",p,!1)),l(t.bgColor,"ansi",()=>d(n,"ansi16",s,!0)),l(t.bgColor,"ansi256",()=>d(r,"ansi256",s,!0)),l(t.bgColor,"ansi16m",()=>d(o,"rgb",p,!0)),t}})},40133(e,t,a){let i=a(87065),n={};for(let e of Object.keys(i))n[i[e]]=e;let r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let t of(e.exports=r,Object.keys(r))){if(!("channels"in r[t]))throw Error("missing channels property: "+t);if(!("labels"in r[t]))throw Error("missing channel labels property: "+t);if(r[t].labels.length!==r[t].channels)throw Error("channel and label counts mismatch: "+t);let{channels:e,labels:a}=r[t];delete r[t].channels,delete r[t].labels,Object.defineProperty(r[t],"channels",{value:e}),Object.defineProperty(r[t],"labels",{value:a})}r.rgb.hsl=function(e){let t,a=e[0]/255,i=e[1]/255,n=e[2]/255,r=Math.min(a,i,n),o=Math.max(a,i,n),s=o-r;o===r?t=0:a===o?t=(i-n)/s:i===o?t=2+(n-a)/s:n===o&&(t=4+(a-i)/s),(t=Math.min(60*t,360))<0&&(t+=360);let p=(r+o)/2;return[t,100*(o===r?0:p<=.5?s/(o+r):s/(2-o-r)),100*p]},r.rgb.hsv=function(e){let t,a,i,n,r,o=e[0]/255,s=e[1]/255,p=e[2]/255,l=Math.max(o,s,p),d=l-Math.min(o,s,p),u=function(e){return(l-e)/6/d+.5};return 0===d?(n=0,r=0):(r=d/l,t=u(o),a=u(s),i=u(p),o===l?n=i-a:s===l?n=1/3+t-i:p===l&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*r,100*l]},r.rgb.hwb=function(e){let t=e[0],a=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(a,i))*100,100*(i=1-1/255*Math.max(t,Math.max(a,i)))]},r.rgb.cmyk=function(e){let t=e[0]/255,a=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-a,1-i);return[100*((1-t-n)/(1-n)||0),100*((1-a-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*n]},r.rgb.keyword=function(e){let t,a=n[e];if(a)return a;let r=1/0;for(let a of Object.keys(i)){let n=i[a],o=(e[0]-n[0])**2+(e[1]-n[1])**2+(e[2]-n[2])**2;o<r&&(r=o,t=a)}return t},r.keyword.rgb=function(e){return i[e]},r.rgb.xyz=function(e){let t=e[0]/255,a=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(a=a>.04045?((a+.055)/1.055)**2.4:a/12.92)+.1805*(i=i>.04045?((i+.055)/1.055)**2.4:i/12.92)),100*(.2126*t+.7152*a+.0722*i),100*(.0193*t+.1192*a+.9505*i)]},r.rgb.lab=function(e){let t=r.rgb.xyz(e),a=t[0],i=t[1],n=t[2];return a/=95.047,i/=100,n/=108.883,[116*(i=i>.008856?i**(1/3):7.787*i+16/116)-16,500*((a=a>.008856?a**(1/3):7.787*a+16/116)-i),200*(i-(n=n>.008856?n**(1/3):7.787*n+16/116))]},r.hsl.rgb=function(e){let t,a,i,n=e[0]/360,r=e[1]/100,o=e[2]/100;if(0===r)return[i=255*o,i,i];t=o<.5?o*(1+r):o+r-o*r;let s=2*o-t,p=[0,0,0];for(let e=0;e<3;e++)(a=n+-(1/3*(e-1)))<0&&a++,a>1&&a--,i=6*a<1?s+(t-s)*6*a:2*a<1?t:3*a<2?s+(t-s)*(2/3-a)*6:s,p[e]=255*i;return p},r.hsl.hsv=function(e){let t=e[0],a=e[1]/100,i=e[2]/100,n=a,r=Math.max(i,.01);i*=2,a*=i<=1?i:2-i,n*=r<=1?r:2-r;let o=(i+a)/2;return[t,100*(0===i?2*n/(r+n):2*a/(i+a)),100*o]},r.hsv.rgb=function(e){let t=e[0]/60,a=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,r=t-Math.floor(t),o=255*i*(1-a),s=255*i*(1-a*r),p=255*i*(1-a*(1-r));switch(i*=255,n){case 0:return[i,p,o];case 1:return[s,i,o];case 2:return[o,i,p];case 3:return[o,s,i];case 4:return[p,o,i];case 5:return[i,o,s]}},r.hsv.hsl=function(e){let t,a,i=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);a=(2-n)*r;let s=(2-n)*o;return[i,100*(t=(t=n*o/(s<=1?s:2-s))||0),100*(a/=2)]},r.hwb.rgb=function(e){let t,a,i,n,r=e[0]/360,o=e[1]/100,s=e[2]/100,p=o+s;p>1&&(o/=p,s/=p);let l=Math.floor(6*r),d=1-s;t=6*r-l,(1&l)!=0&&(t=1-t);let u=o+t*(d-o);switch(l){default:case 6:case 0:a=d,i=u,n=o;break;case 1:a=u,i=d,n=o;break;case 2:a=o,i=d,n=u;break;case 3:a=o,i=u,n=d;break;case 4:a=u,i=o,n=d;break;case 5:a=d,i=o,n=u}return[255*a,255*i,255*n]},r.cmyk.rgb=function(e){let t=e[0]/100,a=e[1]/100,i=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n))]},r.xyz.rgb=function(e){let t,a,i,n=e[0]/100,r=e[1]/100,o=e[2]/100;return t=(t=3.2406*n+-1.5372*r+-.4986*o)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,a=(a=-.9689*n+1.8758*r+.0415*o)>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=(i=.0557*n+-.204*r+1.057*o)>.0031308?1.055*i**(1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(a=Math.min(Math.max(0,a),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){let t=e[0],a=e[1],i=e[2];return t/=95.047,a/=100,i/=108.883,[116*(a=a>.008856?a**(1/3):7.787*a+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-a),200*(a-(i=i>.008856?i**(1/3):7.787*i+16/116))]},r.lab.xyz=function(e){let t,a,i,n=e[0],r=e[1],o=e[2];t=r/500+(a=(n+16)/116),i=a-o/200;let s=a**3,p=t**3,l=i**3;return a=(s>.008856?s:(a-16/116)/7.787)*100,[t=(p>.008856?p:(t-16/116)/7.787)*95.047,a,i=(l>.008856?l:(i-16/116)/7.787)*108.883]},r.lab.lch=function(e){let t,a=e[0],i=e[1],n=e[2];return(t=360*Math.atan2(n,i)/2/Math.PI)<0&&(t+=360),[a,Math.sqrt(i*i+n*n),t]},r.lch.lab=function(e){let t=e[0],a=e[1],i=e[2]/360*2*Math.PI;return[t,a*Math.cos(i),a*Math.sin(i)]},r.rgb.ansi16=function(e,t=null){let[a,i,n]=e,o=null===t?r.rgb.hsv(e)[2]:t;if(0===(o=Math.round(o/50)))return 30;let s=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(a/255));return 2===o&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){let t=e[0],a=e[1],i=e[2];return t===a&&a===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let a=(~~(e>50)+1)*.5;return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},r.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let a=t[0];3===t[0].length&&(a=a.split("").map(e=>e+e).join(""));let i=parseInt(a,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){let t,a=e[0]/255,i=e[1]/255,n=e[2]/255,r=Math.max(Math.max(a,i),n),o=Math.min(Math.min(a,i),n),s=r-o;return t=s<1?o/(1-s):0,[360*((s<=0?0:r===a?(i-n)/s%6:r===i?2+(n-a)/s:4+(a-i)/s)/6%1),100*s,100*t]},r.hsl.hcg=function(e){let t=e[1]/100,a=e[2]/100,i=a<.5?2*t*a:2*t*(1-a),n=0;return i<1&&(n=(a-.5*i)/(1-i)),[e[0],100*i,100*n]},r.hsv.hcg=function(e){let t=e[1]/100,a=e[2]/100,i=t*a,n=0;return i<1&&(n=(a-i)/(1-i)),[e[0],100*i,100*n]},r.hcg.rgb=function(e){let t=e[0]/360,a=e[1]/100,i=e[2]/100;if(0===a)return[255*i,255*i,255*i];let n=[0,0,0],r=t%1*6,o=r%1,s=1-o,p=0;switch(Math.floor(r)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=s,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=s,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=s}return p=(1-a)*i,[(a*n[0]+p)*255,(a*n[1]+p)*255,(a*n[2]+p)*255]},r.hcg.hsv=function(e){let t=e[1]/100,a=t+e[2]/100*(1-t),i=0;return a>0&&(i=t/a),[e[0],100*i,100*a]},r.hcg.hsl=function(e){let t=e[1]/100,a=e[2]/100*(1-t)+.5*t,i=0;return a>0&&a<.5?i=t/(2*a):a>=.5&&a<1&&(i=t/(2*(1-a))),[e[0],100*i,100*a]},r.hcg.hwb=function(e){let t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],(a-t)*100,(1-a)*100]},r.hwb.hcg=function(e){let t=e[1]/100,a=1-e[2]/100,i=a-t,n=0;return i<1&&(n=(a-i)/(1-i)),[e[0],100*i,100*n]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=function(e){return[0,0,e[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},58712(e,t,a){let i=a(40133),n=a(97817),r={};Object.keys(i).forEach(e=>{r[e]={},Object.defineProperty(r[e],"channels",{value:i[e].channels}),Object.defineProperty(r[e],"labels",{value:i[e].labels});let t=n(e);Object.keys(t).forEach(a=>{let i,n,o=t[a];r[e][a]=(i=function(...e){let t=e[0];if(null==t)return t;t.length>1&&(e=t);let a=o(e);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a},"conversion"in o&&(i.conversion=o.conversion),i),r[e][a].raw=(n=function(...e){let t=e[0];return null==t?t:(t.length>1&&(e=t),o(e))},"conversion"in o&&(n.conversion=o.conversion),n)})}),e.exports=r},87065(e){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},97817(e,t,a){let i=a(40133);e.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(i);for(let a=t.length,i=0;i<a;i++)e[t[i]]={distance:-1,parent:null};return e}(),a=[e];for(t[e].distance=0;a.length;){let e=a.pop(),n=Object.keys(i[e]);for(let i=n.length,r=0;r<i;r++){let i=n[r],o=t[i];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,a.unshift(i))}}return t}(e),a={},n=Object.keys(t);for(let e=n.length,r=0;r<e;r++){let e=n[r];null!==t[e].parent&&(a[e]=function(e,t){let a=[t[e].parent,e],n=i[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)a.unshift(t[r].parent),n=function(e,t){return function(a){return t(e(a))}}(i[t[r].parent][r],n),r=t[r].parent;return n.conversion=a,n}(e,t))}return a}},76505(e,t,a){let i=a(79436),n=a(17024),r=a(81354),o=e=>{if("string"!=typeof e||0===e.length||0===(e=i(e)).length)return 0;e=e.replace(r()," ");let t=0;for(let a=0;a<e.length;a++){let i=e.codePointAt(a);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&a++,t+=n(i)?2:1)}return t};e.exports=o,e.exports.default=o},17024(e){let t=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)||!1);e.exports=t,e.exports.default=t},83899(e,t,a){var i=a(19845).Buffer;t._dbcs=o;for(var n=Array(256),r=0;r<256;r++)n[r]=-1;function o(e,t){if(this.encodingName=e.encodingName,!e)throw Error("DBCS codec is called without the data.");if(!e.table)throw Error("Encoding '"+this.encodingName+"' has no data.");var a=e.table();this.decodeTables=[],this.decodeTables[0]=n.slice(0),this.decodeTableSeq=[];for(var i=0;i<a.length;i++)this._addDecodeChunk(a[i]);if("function"==typeof e.gb18030){this.gb18030=e.gb18030();var r=this.decodeTables.length;this.decodeTables.push(n.slice(0));var o=this.decodeTables.length;this.decodeTables.push(n.slice(0));for(var s=this.decodeTables[0],i=129;i<=254;i++)for(var p=this.decodeTables[-1e3-s[i]],l=48;l<=57;l++){if(-1===p[l])p[l]=-1e3-r;else if(p[l]>-1e3)throw Error("gb18030 decode tables conflict at byte 2");for(var d=this.decodeTables[-1e3-p[l]],u=129;u<=254;u++){if(-1===d[u])d[u]=-1e3-o;else if(d[u]===-1e3-o)continue;else if(d[u]>-1e3)throw Error("gb18030 decode tables conflict at byte 3");for(var c=this.decodeTables[-1e3-d[u]],m=48;m<=57;m++)-1===c[m]&&(c[m]=-2)}}}this.defaultCharUnicode=t.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var f={};if(e.encodeSkipVals)for(var i=0;i<e.encodeSkipVals.length;i++){var h=e.encodeSkipVals[i];if("number"==typeof h)f[h]=!0;else for(var l=h.from;l<=h.to;l++)f[l]=!0}if(this._fillEncodeTable(0,0,f),e.encodeAdd)for(var v in e.encodeAdd)Object.prototype.hasOwnProperty.call(e.encodeAdd,v)&&this._setEncodeChar(v.charCodeAt(0),e.encodeAdd[v]);this.defCharSB=this.encodeTable[0][t.defaultCharSingleByte.charCodeAt(0)],-1===this.defCharSB&&(this.defCharSB=this.encodeTable[0]["?"]),-1===this.defCharSB&&(this.defCharSB=63)}function s(e,t){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=t.encodeTable,this.encodeTableSeq=t.encodeTableSeq,this.defaultCharSingleByte=t.defCharSB,this.gb18030=t.gb18030}function p(e,t){this.nodeIdx=0,this.prevBytes=[],this.decodeTables=t.decodeTables,this.decodeTableSeq=t.decodeTableSeq,this.defaultCharUnicode=t.defaultCharUnicode,this.gb18030=t.gb18030}function l(e,t){if(e[0]>t)return -1;for(var a=0,i=e.length;a<i-1;){var n=a+(i-a+1>>1);e[n]<=t?a=n:i=n}return a}o.prototype.encoder=s,o.prototype.decoder=p,o.prototype._getDecodeTrieNode=function(e){for(var t=[];e>0;e>>>=8)t.push(255&e);0==t.length&&t.push(0);for(var a=this.decodeTables[0],i=t.length-1;i>0;i--){var r=a[t[i]];if(-1==r)a[t[i]]=-1e3-this.decodeTables.length,this.decodeTables.push(a=n.slice(0));else if(r<=-1e3)a=this.decodeTables[-1e3-r];else throw Error("Overwrite byte in "+this.encodingName+", addr: "+e.toString(16))}return a},o.prototype._addDecodeChunk=function(e){var t=parseInt(e[0],16),a=this._getDecodeTrieNode(t);t&=255;for(var i=1;i<e.length;i++){var n=e[i];if("string"==typeof n)for(var r=0;r<n.length;){var o=n.charCodeAt(r++);if(o>=55296&&o<56320){var s=n.charCodeAt(r++);if(s>=56320&&s<57344)a[t++]=65536+(o-55296)*1024+(s-56320);else throw Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+e[0])}else if(o>4080&&o<=4095){for(var p=4095-o+2,l=[],d=0;d<p;d++)l.push(n.charCodeAt(r++));a[t++]=-10-this.decodeTableSeq.length,this.decodeTableSeq.push(l)}else a[t++]=o}else if("number"==typeof n)for(var u=a[t-1]+1,r=0;r<n;r++)a[t++]=u++;else throw Error("Incorrect type '"+typeof n+"' given in "+this.encodingName+" at chunk "+e[0])}if(t>255)throw Error("Incorrect chunk in "+this.encodingName+" at addr "+e[0]+": too long"+t)},o.prototype._getEncodeBucket=function(e){var t=e>>8;return void 0===this.encodeTable[t]&&(this.encodeTable[t]=n.slice(0)),this.encodeTable[t]},o.prototype._setEncodeChar=function(e,t){var a=this._getEncodeBucket(e),i=255&e;a[i]<=-10?this.encodeTableSeq[-10-a[i]][-1]=t:-1==a[i]&&(a[i]=t)},o.prototype._setEncodeSequence=function(e,t){var a,i=e[0],n=this._getEncodeBucket(i),r=255&i;n[r]<=-10?a=this.encodeTableSeq[-10-n[r]]:(a={},-1!==n[r]&&(a[-1]=n[r]),n[r]=-10-this.encodeTableSeq.length,this.encodeTableSeq.push(a));for(var o=1;o<e.length-1;o++){var s=a[i];"object"==typeof s?a=s:(a=a[i]={},void 0!==s&&(a[-1]=s))}a[i=e[e.length-1]]=t},o.prototype._fillEncodeTable=function(e,t,a){for(var i=this.decodeTables[e],n=!1,r={},o=0;o<256;o++){var s=i[o],p=t+o;if(!a[p])if(s>=0)this._setEncodeChar(s,p),n=!0;else if(s<=-1e3){var l=-1e3-s;if(!r[l]){var d=p<<8>>>0;this._fillEncodeTable(l,d,a)?n=!0:r[l]=!0}}else s<=-10&&(this._setEncodeSequence(this.decodeTableSeq[-10-s],p),n=!0)}return n},s.prototype.write=function(e){for(var t=i.alloc(e.length*(this.gb18030?4:3)),a=this.leadSurrogate,n=this.seqObj,r=-1,o=0,s=0;;){if(-1===r){if(o==e.length)break;var p=e.charCodeAt(o++)}else{var p=r;r=-1}if(p>=55296&&p<57344)if(p<56320)if(-1===a){a=p;continue}else a=p,p=-1;else -1!==a?(p=65536+(a-55296)*1024+(p-56320),a=-1):p=-1;else -1!==a&&(r=p,p=-1,a=-1);var d=-1;if(void 0!==n&&-1!=p){var u=n[p];if("object"==typeof u){n=u;continue}"number"==typeof u?d=u:void 0==u&&void 0!==(u=n[-1])&&(d=u,r=p),n=void 0}else if(p>=0){var c=this.encodeTable[p>>8];if(void 0!==c&&(d=c[255&p]),d<=-10){n=this.encodeTableSeq[-10-d];continue}if(-1==d&&this.gb18030){var m=l(this.gb18030.uChars,p);if(-1!=m){var d=this.gb18030.gbChars[m]+(p-this.gb18030.uChars[m]);t[s++]=129+Math.floor(d/12600),d%=12600,t[s++]=48+Math.floor(d/1260),d%=1260,t[s++]=129+Math.floor(d/10),d%=10,t[s++]=48+d;continue}}}-1===d&&(d=this.defaultCharSingleByte),d<256?t[s++]=d:(d<65536?t[s++]=d>>8:d<0x1000000?(t[s++]=d>>16,t[s++]=d>>8&255):(t[s++]=d>>>24,t[s++]=d>>>16&255,t[s++]=d>>>8&255),t[s++]=255&d)}return this.seqObj=n,this.leadSurrogate=a,t.slice(0,s)},s.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var e=i.alloc(10),t=0;if(this.seqObj){var a=this.seqObj[-1];void 0!==a&&(a<256?e[t++]=a:(e[t++]=a>>8,e[t++]=255&a)),this.seqObj=void 0}return -1!==this.leadSurrogate&&(e[t++]=this.defaultCharSingleByte,this.leadSurrogate=-1),e.slice(0,t)}},s.prototype.findIdx=l,p.prototype.write=function(e){for(var t,a=i.alloc(2*e.length),n=this.nodeIdx,r=this.prevBytes,o=this.prevBytes.length,s=-this.prevBytes.length,p=0,d=0;p<e.length;p++){var u=p>=0?e[p]:r[p+o],t=this.decodeTables[n][u];if(t>=0);else if(-1===t)t=this.defaultCharUnicode.charCodeAt(0),p=s;else if(-2===t){if(p>=3)var c=(e[p-3]-129)*12600+(e[p-2]-48)*1260+(e[p-1]-129)*10+(u-48);else var c=(r[p-3+o]-129)*12600+((p-2>=0?e[p-2]:r[p-2+o])-48)*1260+((p-1>=0?e[p-1]:r[p-1+o])-129)*10+(u-48);var m=l(this.gb18030.gbChars,c);t=this.gb18030.uChars[m]+c-this.gb18030.gbChars[m]}else if(t<=-1e3){n=-1e3-t;continue}else if(t<=-10){for(var f=this.decodeTableSeq[-10-t],h=0;h<f.length-1;h++)t=f[h],a[d++]=255&t,a[d++]=t>>8;t=f[f.length-1]}else throw Error("iconv-lite internal error: invalid decoding table value "+t+" at "+n+"/"+u);if(t>=65536){var v=55296|(t-=65536)>>10;a[d++]=255&v,a[d++]=v>>8,t=56320|1023&t}a[d++]=255&t,a[d++]=t>>8,n=0,s=p+1}return this.nodeIdx=n,this.prevBytes=s>=0?Array.prototype.slice.call(e,s):r.slice(s+o).concat(Array.prototype.slice.call(e)),a.slice(0,d).toString("ucs2")},p.prototype.end=function(){for(var e="";this.prevBytes.length>0;){e+=this.defaultCharUnicode;var t=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,t.length>0&&(e+=this.write(t))}return this.prevBytes=[],this.nodeIdx=0,e}},87221(e,t,a){e.exports={shiftjis:{type:"_dbcs",table:function(){return a(83681)},encodeAdd:{"\xa5":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return a(58484)},encodeAdd:{"\xa5":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return a(44138)}},gbk:{type:"_dbcs",table:function(){return a(44138).concat(a(23428))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return a(44138).concat(a(23428))},gb18030:function(){return a(61959)},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return a(57408)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return a(25718)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return a(25718).concat(a(50493))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},12338(e,t,a){for(var i=a(43259),n=[a(94413),a(72110),a(21728),a(3066),a(38824),a(89432),a(42032),a(83899),a(87221)],r=0;r<n.length;r++)i(t,n[r])},94413(e,t,a){var i=a(19845).Buffer;function n(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,"base64"===this.enc?this.encoder=p:"utf8"===this.enc?this.encoder=u:"cesu8"===this.enc&&(this.enc="utf8",this.encoder=l,"\uD83D\uDCA9"!==i.from("eda0bdedb2a9","hex").toString()&&(this.decoder=d,this.defaultCharUnicode=t.defaultCharUnicode))}e.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:n},n.prototype.encoder=s,n.prototype.decoder=o;var r=a(13193).StringDecoder;function o(e,t){this.decoder=new r(t.enc)}function s(e,t){this.enc=t.enc}function p(e,t){this.prevStr=""}function l(e,t){}function d(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}function u(e,t){this.highSurrogate=""}o.prototype.write=function(e){return i.isBuffer(e)||(e=i.from(e)),this.decoder.write(e)},o.prototype.end=function(){return this.decoder.end()},s.prototype.write=function(e){return i.from(e,this.enc)},s.prototype.end=function(){},p.prototype.write=function(e){var t=(e=this.prevStr+e).length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),i.from(e,"base64")},p.prototype.end=function(){return i.from(this.prevStr,"base64")},l.prototype.write=function(e){for(var t=i.alloc(3*e.length),a=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t[a++]=r:(r<2048?t[a++]=192+(r>>>6):(t[a++]=224+(r>>>12),t[a++]=128+(r>>>6&63)),t[a++]=128+(63&r))}return t.slice(0,a)},l.prototype.end=function(){},d.prototype.write=function(e){for(var t=this.acc,a=this.contBytes,i=this.accBytes,n="",r=0;r<e.length;r++){var o=e[r];(192&o)!=128?(a>0&&(n+=this.defaultCharUnicode,a=0),o<128?n+=String.fromCharCode(o):o<224?(t=31&o,a=1,i=1):o<240?(t=15&o,a=2,i=1):n+=this.defaultCharUnicode):a>0?(t=t<<6|63&o,a--,i++,0===a&&(2===i&&t<128&&t>0||3===i&&t<2048?n+=this.defaultCharUnicode:n+=String.fromCharCode(t))):n+=this.defaultCharUnicode}return this.acc=t,this.contBytes=a,this.accBytes=i,n},d.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e},u.prototype.write=function(e){if(this.highSurrogate&&(e=this.highSurrogate+e,this.highSurrogate=""),e.length>0){var t=e.charCodeAt(e.length-1);t>=55296&&t<56320&&(this.highSurrogate=e[e.length-1],e=e.slice(0,e.length-1))}return i.from(e,this.enc)},u.prototype.end=function(){if(this.highSurrogate){var e=this.highSurrogate;return this.highSurrogate="",i.from(e,this.enc)}}},38824(e,t,a){var i=a(19845).Buffer;function n(e,t){if(!e)throw Error("SBCS codec is called without the data.");if(!e.chars||128!==e.chars.length&&256!==e.chars.length)throw Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===e.chars.length){for(var a="",n=0;n<128;n++)a+=String.fromCharCode(n);e.chars=a+e.chars}this.decodeBuf=i.from(e.chars,"ucs2");for(var r=i.alloc(65536,t.defaultCharSingleByte.charCodeAt(0)),n=0;n<e.chars.length;n++)r[e.chars.charCodeAt(n)]=n;this.encodeBuf=r}function r(e,t){this.encodeBuf=t.encodeBuf}function o(e,t){this.decodeBuf=t.decodeBuf}t._sbcs=n,n.prototype.encoder=r,n.prototype.decoder=o,r.prototype.write=function(e){for(var t=i.alloc(e.length),a=0;a<e.length;a++)t[a]=this.encodeBuf[e.charCodeAt(a)];return t},r.prototype.end=function(){},o.prototype.write=function(e){for(var t=this.decodeBuf,a=i.alloc(2*e.length),n=0,r=0,o=0;o<e.length;o++)n=2*e[o],a[r=2*o]=t[n],a[r+1]=t[n+1];return a.toString("ucs2")},o.prototype.end=function(){}},42032(e){e.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—��������\xa0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź\xa0ˇ˘Ł\xa4Ą\xa6\xa7\xa8\xa9Ş\xab\xac\xad\xaeŻ\xb0\xb1˛ł\xb4\xb5\xb6\xb7\xb8ąş\xbbĽ˝ľżŔ\xc1\xc2Ă\xc4ĹĆ\xc7Č\xc9Ę\xcbĚ\xcd\xceĎĐŃŇ\xd3\xd4Ő\xd6\xd7ŘŮ\xdaŰ\xdc\xddŢ\xdfŕ\xe1\xe2ă\xe4ĺć\xe7č\xe9ę\xebě\xed\xeeďđńň\xf3\xf4ő\xf6\xf7řů\xfaű\xfc\xfdţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ\xa0ЎўЈ\xa4Ґ\xa6\xa7Ё\xa9Є\xab\xac\xad\xaeЇ\xb0\xb1Ііґ\xb5\xb6\xb7ё№є\xbbјЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›����\xa0΅Ά\xa3\xa4\xa5\xa6\xa7\xa8\xa9�\xab\xac\xad\xae―\xb0\xb1\xb2\xb3΄\xb5\xb6\xb7ΈΉΊ\xbbΌ\xbdΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfĞ\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdcİŞ\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefğ\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfcış\xff"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›����\xa0\xa1\xa2\xa3₪\xa5\xa6\xa7\xa8\xa9\xd7\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xf7\xbb\xbc\xbd\xbe\xbfְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں\xa0،\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9ھ\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9؛\xbb\xbc\xbd\xbe؟ہءآأؤإئابةتثجحخدذرزسشصض\xd7طظعغـفقك\xe0ل\xe2منهو\xe7\xe8\xe9\xea\xebىي\xee\xefًٌٍَ\xf4ُِ\xf7ّ\xf9ْ\xfb\xfcے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�\xa8ˇ\xb8�‘’“”•–—�™�›�\xaf˛�\xa0�\xa2\xa3\xa4�\xa6\xa7\xd8\xa9Ŗ\xab\xac\xad\xae\xc6\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xf8\xb9ŗ\xbb\xbc\xbd\xbe\xe6ĄĮĀĆ\xc4\xc5ĘĒČ\xc9ŹĖĢĶĪĻŠŃŅ\xd3Ō\xd5\xd6\xd7ŲŁŚŪ\xdcŻŽ\xdfąįāć\xe4\xe5ęēč\xe9źėģķīļšńņ\xf3ō\xf5\xf6\xf7ųłśū\xfcżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2Ă\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb̀\xcd\xce\xcfĐ\xd1̉\xd3\xd4Ơ\xd6\xd7\xd8\xd9\xda\xdb\xdcỮ\xdf\xe0\xe1\xe2ă\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb́\xed\xee\xefđ\xf1̣\xf3\xf4ơ\xf6\xf7\xf8\xf9\xfa\xfb\xfcư₫\xff"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0Ą˘Ł\xa4ĽŚ\xa7\xa8ŠŞŤŹ\xadŽŻ\xb0ą˛ł\xb4ľśˇ\xb8šşťź˝žżŔ\xc1\xc2Ă\xc4ĹĆ\xc7Č\xc9Ę\xcbĚ\xcd\xceĎĐŃŇ\xd3\xd4Ő\xd6\xd7ŘŮ\xdaŰ\xdc\xddŢ\xdfŕ\xe1\xe2ă\xe4ĺć\xe7č\xe9ę\xebě\xed\xeeďđńň\xf3\xf4ő\xf6\xf7řů\xfaű\xfc\xfdţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0Ħ˘\xa3\xa4�Ĥ\xa7\xa8İŞĞĴ\xad�Ż\xb0ħ\xb2\xb3\xb4\xb5ĥ\xb7\xb8ışğĵ\xbd�ż\xc0\xc1\xc2�\xc4ĊĈ\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf�\xd1\xd2\xd3\xd4Ġ\xd6\xd7Ĝ\xd9\xda\xdb\xdcŬŜ\xdf\xe0\xe1\xe2�\xe4ċĉ\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef�\xf1\xf2\xf3\xf4ġ\xf6\xf7ĝ\xf9\xfa\xfb\xfcŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ĄĸŖ\xa4ĨĻ\xa7\xa8ŠĒĢŦ\xadŽ\xaf\xb0ą˛ŗ\xb4ĩļˇ\xb8šēģŧŊžŋĀ\xc1\xc2\xc3\xc4\xc5\xc6ĮČ\xc9Ę\xcbĖ\xcd\xceĪĐŅŌĶ\xd4\xd5\xd6\xd7\xd8Ų\xda\xdb\xdcŨŪ\xdfā\xe1\xe2\xe3\xe4\xe5\xe6įč\xe9ę\xebė\xed\xeeīđņōķ\xf4\xf5\xf6\xf7\xf8ų\xfa\xfb\xfcũū˙"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ЁЂЃЄЅІЇЈЉЊЋЌ\xadЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ\xa7ўџ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0���\xa4�������،\xad�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0‘’\xa3€₯\xa6\xa7\xa8\xa9ͺ\xab\xac\xad�―\xb0\xb1\xb2\xb3΄΅Ά\xb7ΈΉΊ\xbbΌ\xbdΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0�\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xd7\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xf7\xbb\xbc\xbd\xbe��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת���"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfĞ\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdcİŞ\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefğ\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfcış\xff"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ĄĒĢĪĨĶ\xa7ĻĐŠŦŽ\xadŪŊ\xb0ąēģīĩķ\xb7ļđšŧž―ūŋĀ\xc1\xc2\xc3\xc4\xc5\xc6ĮČ\xc9Ę\xcbĖ\xcd\xce\xcf\xd0ŅŌ\xd3\xd4\xd5\xd6Ũ\xd8Ų\xda\xdb\xdc\xdd\xde\xdfā\xe1\xe2\xe3\xe4\xe5\xe6įč\xe9ę\xebė\xed\xee\xef\xf0ņō\xf3\xf4\xf5\xf6ũ\xf8ų\xfa\xfb\xfc\xfd\xfeĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0”\xa2\xa3\xa4„\xa6\xa7\xd8\xa9Ŗ\xab\xac\xad\xae\xc6\xb0\xb1\xb2\xb3“\xb5\xb6\xb7\xf8\xb9ŗ\xbb\xbc\xbd\xbe\xe6ĄĮĀĆ\xc4\xc5ĘĒČ\xc9ŹĖĢĶĪĻŠŃŅ\xd3Ō\xd5\xd6\xd7ŲŁŚŪ\xdcŻŽ\xdfąįāć\xe4\xe5ęēč\xe9źėģķīļšńņ\xf3ō\xf5\xf6\xf7ųłśū\xfcżž’"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0Ḃḃ\xa3ĊċḊ\xa7Ẁ\xa9ẂḋỲ\xad\xaeŸḞḟĠġṀṁ\xb6ṖẁṗẃṠỳẄẅṡ\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfŴ\xd1\xd2\xd3\xd4\xd5\xd6Ṫ\xd8\xd9\xda\xdb\xdc\xddŶ\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefŵ\xf1\xf2\xf3\xf4\xf5\xf6ṫ\xf8\xf9\xfa\xfb\xfc\xfdŷ\xff"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3€\xa5Š\xa7š\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3Ž\xb5\xb6\xb7ž\xb9\xba\xbbŒœŸ\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ĄąŁ€„Š\xa7š\xa9Ș\xabŹ\xadźŻ\xb0\xb1ČłŽ”\xb6\xb7žčș\xbbŒœŸż\xc0\xc1\xc2Ă\xc4Ć\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfĐŃ\xd2\xd3\xd4Ő\xd6ŚŰ\xd9\xda\xdb\xdcĘȚ\xdf\xe0\xe1\xe2ă\xe4ć\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefđń\xf2\xf3\xf4ő\xf6śű\xf9\xfa\xfb\xfcęț\xff"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5₧ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf⌐\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ\xb1≥≤ΪΫ\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"Ć\xfc\xe9ā\xe4ģ\xe5ćłēŖŗīŹ\xc4\xc5\xc9\xe6\xc6ō\xf6Ģ\xa2Śś\xd6\xdc\xf8\xa3\xd8\xd7\xa4ĀĪ\xf3Żżź”\xa6\xa9\xae\xac\xbd\xbcŁ\xab\xbb░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀\xd3\xdfŌŃ\xf5\xd5\xb5ńĶķĻļņĒŅ’\xad\xb1“\xbe\xb6\xa7\xf7„\xb0∙\xb7\xb9\xb3\xb2■\xa0"},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\xd7ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\xae\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤\xc1\xc2\xc0\xa9╣║╗╝\xa2\xa5┐└┴┬├─┼\xe3\xc3╚╔╩╦╠═╬\xa4\xf0\xd0\xca\xcb\xc8ı\xcd\xce\xcf┘┌█▄\xa6\xcc▀\xd3\xdf\xd4\xd2\xf5\xd5\xb5\xfe\xde\xda\xdb\xd9\xfd\xdd\xaf\xb4\xad\xb1‗\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2■\xa0"},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4ůć\xe7ł\xebŐő\xeeŹ\xc4Ć\xc9Ĺĺ\xf4\xf6ĽľŚś\xd6\xdcŤťŁ\xd7č\xe1\xed\xf3\xfaĄąŽžĘę\xacźČş\xab\xbb░▒▓│┤\xc1\xc2ĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬\xa4đĐĎ\xcbďŇ\xcd\xceě┘┌█▄ŢŮ▀\xd3\xdf\xd4ŃńňŠšŔ\xdaŕŰ\xfd\xddţ\xb4\xad˝˛ˇ˘\xa7\xf7\xb8\xb0\xa8˙űŘř■\xa0"},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ\xab\xbb░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬\xa4лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№\xadыЫзЗшШэЭщЩчЧ\xa7■\xa0"},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת�\xa3�\xd7����������\xae\xac\xbd\xbc�\xab\xbb░▒▓│┤���\xa9╣║╗╝\xa2\xa5┐└┴┬├─┼��╚╔╩╦╠═╬\xa4���������┘┌█▄\xa6�▀������\xb5�������\xaf\xb4\xad\xb1‗\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2■\xa0"},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xeeı\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9İ\xd6\xdc\xf8\xa3\xd8Şş\xe1\xed\xf3\xfa\xf1\xd1Ğğ\xbf\xae\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤\xc1\xc2\xc0\xa9╣║╗╝\xa2\xa5┐└┴┬├─┼\xe3\xc3╚╔╩╦╠═╬\xa4\xba\xaa\xca\xcb\xc8�\xcd\xce\xcf┘┌█▄\xa6\xcc▀\xd3\xdf\xd4\xd2\xf5\xd5\xb5�\xd7\xda\xdb\xd9\xec\xff\xaf\xb4\xad\xb1�\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2■\xa0"},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\xd7ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\xae\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤\xc1\xc2\xc0\xa9╣║╗╝\xa2\xa5┐└┴┬├─┼\xe3\xc3╚╔╩╦╠═╬\xa4\xf0\xd0\xca\xcb\xc8€\xcd\xce\xcf┘┌█▄\xa6\xcc▀\xd3\xdf\xd4\xd2\xf5\xd5\xb5\xfe\xde\xda\xdb\xd9\xfd\xdd\xaf\xb4\xad\xb1‗\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2■\xa0"},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe3\xe0\xc1\xe7\xea\xca\xe8\xcd\xd4\xec\xc3\xc2\xc9\xc0\xc8\xf4\xf5\xf2\xda\xf9\xcc\xd5\xdc\xa2\xa3\xd9₧\xd3\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\xd2\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xd0\xf0\xde\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xfe\xfb\xdd\xfd\xd6\xdc\xf8\xa3\xd8₧ƒ\xe1\xed\xf3\xfa\xc1\xcd\xd3\xda\xbf⌐\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת\xa2\xa3\xa5₧ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf⌐\xac\xbd\xbc\xa1\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xc2\xe0\xb6\xe7\xea\xeb\xe8\xef\xee‗\xc0\xa7\xc9\xc8\xca\xf4\xcb\xcf\xfb\xf9\xa4\xd4\xdc\xa2\xa3\xd9\xdbƒ\xa6\xb4\xf3\xfa\xa8\xb8\xb3\xaf\xce⌐\xac\xbd\xbc\xbe\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b \n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xb0\xb7∙√▒─│┼┤┬├┴┐┌└┘β∞φ\xb1\xbd\xbc≈\xab\xbbﻷﻸ��ﻻﻼ�\xa0\xadﺂ\xa3\xa4ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟\xa2ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ\xa6\xac\xf7\xd7ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8₧ƒ\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf⌐\xac\xbd\xbc\xa1\xab\xa4░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў\xb0∙\xb7√№\xa4■\xa0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�\xb7\xac\xa6‘’Έ―ΉΊΪΌ��ΎΫ\xa9Ώ\xb2\xb3ά\xa3έήίϊΐόύΑΒΓΔΕΖΗ\xbdΘΙ\xab\xbb░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄\xad\xb1υφχ\xa7ψ΅\xb0\xa8ωϋΰώ■\xa0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae‾\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcfŠ\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xddŽ\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xefš\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfdž\xff"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ\xd7\xf7ﹱ\x88■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ\xa0\xa4ﺋﺑﺗﺛﺟﺣ،\xadﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ЁЂҐЄЅІЇЈЉЊЋЌ\xadЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ\xa7ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї\xb7√№\xa4■\xa0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7œ\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3Ÿ\xb5\xb6\xb7Œ\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2Ă\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb̀\xcd\xce\xcfĐ\xd1̉\xd3\xd4Ơ\xd6\xd7\xd8\xd9\xda\xdb\xdcỮ\xdf\xe0\xe1\xe2ă\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb́\xed\xee\xefđ\xf1̣\xf3\xf4ơ\xf6\xf7\xf8\xf9\xfa\xfb\xfcư₫\xff"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��\xa2\xac\xa6�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛\xa2\xac\xa6\xa0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€\x81\x82\x83\x84…\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90‘’“”•–—\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3€\xa5\xa6\xa7œ\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3Ÿ\xb5\xb6\xb7Œ\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2Ă\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb̀\xcd\xce\xcfĐ\xd1̉\xd3\xd4Ơ\xd6\xd7\xd8\xd9\xda\xdb\xdcỮ\xdf\xe0\xe1\xe2ă\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb́\xed\xee\xefđ\xf1̣\xf3\xf4ơ\xf6\xf7\xf8\xf9\xfa\xfb\xfcư₫\xff"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xaeŠ™\xb4\xa8≠Ž\xd8∞\xb1≤≥∆\xb5∂∑∏š∫\xaa\xbaΩž\xf8\xbf\xa1\xac√ƒ≈Ć\xabČ…\xa0\xc0\xc3\xd5ŒœĐ—“”‘’\xf7◊�\xa9⁄\xa4‹›\xc6\xbb–\xb7‚„‰\xc2ć\xc1č\xc8\xcd\xce\xcf\xcc\xd3\xd4đ\xd2\xda\xdb\xd9ıˆ˜\xafπ\xcb˚\xb8\xca\xe6ˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†\xb0\xa2\xa3\xa7•\xb6І\xae\xa9™Ђђ≠Ѓѓ∞\xb1≤≥і\xb5∂ЈЄєЇїЉљЊњјЅ\xac√ƒ≈∆\xab\xbb…\xa0ЋћЌќѕ–—“”‘’\xf7„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\xa4"},macgreek:{type:"_sbcs",chars:"\xc4\xb9\xb2\xc9\xb3\xd6\xdc΅\xe0\xe2\xe4΄\xa8\xe7\xe9\xe8\xea\xeb\xa3™\xee\xef•\xbd‰\xf4\xf6\xa6\xad\xf9\xfb\xfc†ΓΔΘΛΞΠ\xdf\xae\xa9ΣΪ\xa7≠\xb0·Α\xb1≤≥\xa5ΒΕΖΗΙΚΜΦΫΨΩάΝ\xacΟΡ≈Τ\xab\xbb…\xa0ΥΧΆΈœ–―“”‘’\xf7ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\xdd\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠\xc6\xd8∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩ\xe6\xf8\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸ⁄\xa4\xd0\xf0\xde\xfe\xfd\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9ıˆ˜\xaf˘˙˚\xb8˝˛ˇ"},macroman:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠\xc6\xd8∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩ\xe6\xf8\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸ⁄\xa4‹›fifl‡\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9ıˆ˜\xaf˘˙˚\xb8˝˛ˇ"},macromania:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠ĂŞ∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩăş\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸ⁄\xa4‹›Ţţ‡\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9ıˆ˜\xaf˘˙˚\xb8˝˛ˇ"},macthai:{type:"_sbcs",chars:"\xab\xbb…“”�•‘’�\xa0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\uFEFF–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙\xae\xa9����"},macturkish:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠\xc6\xd8∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩ\xe6\xf8\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸĞğİıŞş‡\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9�ˆ˜\xaf˘˙˚\xb8˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†\xb0Ґ\xa3\xa7•\xb6І\xae\xa9™Ђђ≠Ѓѓ∞\xb1≤≥і\xb5ґЈЄєЇїЉљЊњјЅ\xac√ƒ≈∆\xab\xbb…\xa0ЋћЌќѕ–—“”‘’\xf7„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\xa4"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xa0⌡\xb0\xb2\xb7\xf7═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬\xa9юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xa0⌡\xb0\xb2\xb7\xf7═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬\xa9юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xa0⌡\xb0\xb2\xb7\xf7═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ\xa9юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё\xa4ӣ\xa6\xa7���\xab\xac\xad\xae�\xb0\xb1\xb2Ё�Ӣ\xb6\xb7�№�\xbb���\xa9юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0�և։)(\xbb\xab—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ\xa0ҰұӘ\xa4Ө\xa6\xa7Ё\xa9Ғ\xab\xac\xad\xaeҮ\xb0\xb1Ііө\xb5\xb6\xb7ё№ғ\xbbәҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:"\0\xdaỤ\x03ỪỬỮ\x07\b \n\v\f\r\x0e\x0f\x10ỨỰỲỶỸ\xddỴ\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xc0Ả\xc3\xc1ẠẶẬ\xc8ẺẼ\xc9ẸỆ\xccỈĨ\xcdỊ\xd2Ỏ\xd5\xd3ỌỘỜỞỠỚỢ\xd9ỦŨ\xa0Ă\xc2\xca\xd4ƠƯĐă\xe2\xea\xf4ơưđẶ̀̀̉̃́\xe0ả\xe3\xe1ạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậ\xe8Ểẻẽ\xe9ẹềểễếệ\xecỉỄẾỒĩ\xedị\xf2Ổỏ\xf5\xf3ọồổỗốộờởỡớợ\xf9Ỗủũ\xfaụừửữứựỳỷỹ\xfdỵỐ"},georgianacademy:{type:"_sbcs",chars:"\x80\x81‚ƒ„…†‡ˆ‰Š‹Œ\x8d\x8e\x8f\x90‘’“”•–—˜™š›œ\x9d\x9eŸ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbfაბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶ\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},georgianps:{type:"_sbcs",chars:"\x80\x81‚ƒ„…†‡ˆ‰Š‹Œ\x8d\x8e\x8f\x90‘’“”•–—˜™š›œ\x9d\x9eŸ\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbfაბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵ\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ\xa0ЎўЈӨҘҰ\xa7Ё\xa9Ә\xab\xacӯ\xaeҜ\xb0ұІіҙө\xb6\xb7ё№ә\xbbјҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:"\0\x01Ẳ\x03\x04ẴẪ\x07\b \n\v\f\r\x0e\x0f\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1a\x1b\x1c\x1dỴ\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7fẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲ\xd5ắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯ\xc0\xc1\xc2\xc3ẢĂẳẵ\xc8\xc9\xcaẺ\xcc\xcdĨỳĐứ\xd2\xd3\xd4ạỷừử\xd9\xdaỹỵ\xddỡư\xe0\xe1\xe2\xe3ảăữẫ\xe8\xe9\xeaẻ\xec\xedĩỉđự\xf2\xf3\xf4\xf5ỏọụ\xf9\xfaũủ\xfdợỮ"},iso646cn:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b \n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#\xa5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾\x7f��������������������������������������������������������������������������������������������������������������������������������"},iso646jp:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b \n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xa5]^_`abcdefghijklmnopqrstuvwxyz{|}‾\x7f��������������������������������������������������������������������������������������������������������������������������������"},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xc0\xc2\xc8\xca\xcb\xce\xcf\xb4ˋˆ\xa8˜\xd9\xdb₤\xaf\xdd\xfd\xb0\xc7\xe7\xd1\xf1\xa1\xbf\xa4\xa3\xa5\xa7ƒ\xa2\xe2\xea\xf4\xfb\xe1\xe9\xf3\xfa\xe0\xe8\xf2\xf9\xe4\xeb\xf6\xfc\xc5\xee\xd8\xc6\xe5\xed\xf8\xe6\xc4\xec\xd6\xdc\xc9\xef\xdf\xd4\xc1\xc3\xe3\xd0\xf0\xcd\xcc\xd3\xd2\xd5\xf5Šš\xdaŸ\xff\xde\xfe\xb7\xb5\xb6\xbe—\xbc\xbd\xaa\xba\xab■\xbb\xb1�"},macintosh:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc†\xb0\xa2\xa3\xa7•\xb6\xdf\xae\xa9™\xb4\xa8≠\xc6\xd8∞\xb1≤≥\xa5\xb5∂∑∏π∫\xaa\xbaΩ\xe6\xf8\xbf\xa1\xac√ƒ≈∆\xab\xbb…\xa0\xc0\xc3\xd5Œœ–—“”‘’\xf7◊\xffŸ⁄\xa4‹›fifl‡\xb7‚„‰\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4�\xd2\xda\xdb\xd9ıˆ˜\xaf˘˙˚\xb8˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}},89432(e){e.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xc4Āā\xc9Ą\xd6\xdc\xe1ąČ\xe4čĆć\xe9ŹźĎ\xedďĒēĖ\xf3ė\xf4\xf6\xf5\xfaĚě\xfc†\xb0Ę\xa3\xa7•\xb6\xdf\xae\xa9™ę\xa8≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ\xac√ńŇ∆\xab\xbb…\xa0ňŐ\xd5őŌ–—“”‘’\xf7◊ōŔŕŘ‹›řŖŗŠ‚„šŚś\xc1Ťť\xcdŽžŪ\xd3\xd4ūŮ\xdaůŰűŲų\xdd\xfdķŻŁżĢˇ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў\xb0∙\xb7√№€■\xa0"},mik:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№\xa7╗╝┘┌█▄▌▐▀α\xdfΓπΣσ\xb5τΦΘΩδ∞φε∩≡\xb1≥≤⌠⌡\xf7≈\xb0∙\xb7√ⁿ\xb2■\xa0"},cp720:{type:"_sbcs",chars:"\x80\x81\xe9\xe2\x84\xe0\x86\xe7\xea\xeb\xe8\xef\xee\x8d\x8e\x8f\x90ّْ\xf4\xa4ـ\xfb\xf9ءآأؤ\xa3إئابةتثجحخدذرزسشص\xab\xbb░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغف\xb5قكلمنهوىي≡ًٌٍَُِ≈\xb0∙\xb7√ⁿ\xb2■\xa0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},21728(e,t,a){var i=a(19845).Buffer;function n(){}function r(){}function o(){this.overflowByte=-1}function s(e,t){this.iconv=t}function p(e,t){void 0===(e=e||{}).addBOM&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder("utf-16le",e)}function l(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}function d(e,t){var a=[],i=0,n=0,r=0;e:for(var o=0;o<e.length;o++)for(var s=e[o],p=0;p<s.length;p++)if(a.push(s[p]),2===a.length){if(0===i){if(255===a[0]&&254===a[1])return"utf-16le";if(254===a[0]&&255===a[1])return"utf-16be"}if(0===a[0]&&0!==a[1]&&r++,0!==a[0]&&0===a[1]&&n++,a.length=0,++i>=100)break e}return r>n?"utf-16be":r<n?"utf-16le":t||"utf-16le"}t.utf16be=n,n.prototype.encoder=r,n.prototype.decoder=o,n.prototype.bomAware=!0,r.prototype.write=function(e){for(var t=i.from(e,"ucs2"),a=0;a<t.length;a+=2){var n=t[a];t[a]=t[a+1],t[a+1]=n}return t},r.prototype.end=function(){},o.prototype.write=function(e){if(0==e.length)return"";var t=i.alloc(e.length+1),a=0,n=0;for(-1!==this.overflowByte&&(t[0]=e[0],t[1]=this.overflowByte,a=1,n=2);a<e.length-1;a+=2,n+=2)t[n]=e[a+1],t[n+1]=e[a];return this.overflowByte=a==e.length-1?e[e.length-1]:-1,t.slice(0,n).toString("ucs2")},o.prototype.end=function(){this.overflowByte=-1},t.utf16=s,s.prototype.encoder=p,s.prototype.decoder=l,p.prototype.write=function(e){return this.encoder.write(e)},p.prototype.end=function(){return this.encoder.end()},l.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<16)return"";var t=d(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var a="",i=0;i<this.initialBufs.length;i++)a+=this.decoder.write(this.initialBufs[i]);return this.initialBufs.length=this.initialBufsLen=0,a}return this.decoder.write(e)},l.prototype.end=function(){if(!this.decoder){var e=d(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",a=0;a<this.initialBufs.length;a++)t+=this.decoder.write(this.initialBufs[a]);var i=this.decoder.end();return i&&(t+=i),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()}},72110(e,t,a){var i=a(19845).Buffer;function n(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}function r(e,t){this.isLE=t.isLE,this.highSurrogate=0}function o(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}function s(e,t,a,i){if((a<0||a>1114111)&&(a=i),a>=65536){var n=55296|(a-=65536)>>10;e[t++]=255&n,e[t++]=n>>8;var a=56320|1023&a}return e[t++]=255&a,e[t++]=a>>8,t}function p(e,t){this.iconv=t}function l(e,t){void 0===(e=e||{}).addBOM&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}function d(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}function u(e,t){var a=[],i=0,n=0,r=0,o=0,s=0;e:for(var p=0;p<e.length;p++)for(var l=e[p],d=0;d<l.length;d++)if(a.push(l[d]),4===a.length){if(0===i){if(255===a[0]&&254===a[1]&&0===a[2]&&0===a[3])return"utf-32le";if(0===a[0]&&0===a[1]&&254===a[2]&&255===a[3])return"utf-32be"}if((0!==a[0]||a[1]>16)&&r++,(0!==a[3]||a[2]>16)&&n++,0===a[0]&&0===a[1]&&(0!==a[2]||0!==a[3])&&s++,(0!==a[0]||0!==a[1])&&0===a[2]&&0===a[3]&&o++,a.length=0,++i>=100)break e}return s-r>o-n?"utf-32be":s-r<o-n?"utf-32le":t||"utf-32le"}t._utf32=n,t.utf32le={type:"_utf32",isLE:!0},t.utf32be={type:"_utf32",isLE:!1},t.ucs4le="utf32le",t.ucs4be="utf32be",n.prototype.encoder=r,n.prototype.decoder=o,r.prototype.write=function(e){for(var t=i.from(e,"ucs2"),a=i.alloc(2*t.length),n=this.isLE?a.writeUInt32LE:a.writeUInt32BE,r=0,o=0;o<t.length;o+=2){var s=t.readUInt16LE(o),p=s>=55296&&s<56320,l=s>=56320&&s<57344;if(this.highSurrogate)if(p||!l)n.call(a,this.highSurrogate,r),r+=4;else{var d=(this.highSurrogate-55296<<10|s-56320)+65536;n.call(a,d,r),r+=4,this.highSurrogate=0;continue}p?this.highSurrogate=s:(n.call(a,s,r),r+=4,this.highSurrogate=0)}return r<a.length&&(a=a.slice(0,r)),a},r.prototype.end=function(){if(this.highSurrogate){var e=i.alloc(4);return this.isLE?e.writeUInt32LE(this.highSurrogate,0):e.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,e}},o.prototype.write=function(e){if(0===e.length)return"";var t=0,a=0,n=i.alloc(e.length+4),r=0,o=this.isLE,p=this.overflow,l=this.badChar;if(p.length>0){for(;t<e.length&&p.length<4;t++)p.push(e[t]);4===p.length&&(a=o?p[t]|p[t+1]<<8|p[t+2]<<16|p[t+3]<<24:p[t+3]|p[t+2]<<8|p[t+1]<<16|p[t]<<24,p.length=0,r=s(n,r,a,l))}for(;t<e.length-3;t+=4)r=s(n,r,a=o?e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24:e[t+3]|e[t+2]<<8|e[t+1]<<16|e[t]<<24,l);for(;t<e.length;t++)p.push(e[t]);return n.slice(0,r).toString("ucs2")},o.prototype.end=function(){this.overflow.length=0},t.utf32=p,t.ucs4="utf32",p.prototype.encoder=l,p.prototype.decoder=d,l.prototype.write=function(e){return this.encoder.write(e)},l.prototype.end=function(){return this.encoder.end()},d.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<32)return"";var t=u(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var a="",i=0;i<this.initialBufs.length;i++)a+=this.decoder.write(this.initialBufs[i]);return this.initialBufs.length=this.initialBufsLen=0,a}return this.decoder.write(e)},d.prototype.end=function(){if(!this.decoder){var e=u(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",a=0;a<this.initialBufs.length;a++)t+=this.decoder.write(this.initialBufs[a]);var i=this.decoder.end();return i&&(t+=i),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()}},3066(e,t,a){var i=a(19845).Buffer;function n(e,t){this.iconv=t}t.utf7=n,t.unicode11utf7="utf7",n.prototype.encoder=o,n.prototype.decoder=s,n.prototype.bomAware=!0;var r=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function o(e,t){this.iconv=t.iconv}function s(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}o.prototype.write=function(e){return i.from(e.replace(r,(function(e){return"+"+("+"===e?"":this.iconv.encode(e,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}).bind(this)))},o.prototype.end=function(){};for(var p=/[A-Za-z0-9\/+]/,l=[],d=0;d<256;d++)l[d]=p.test(String.fromCharCode(d));function u(e,t){this.iconv=t}function c(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=i.alloc(6),this.base64AccumIdx=0}function m(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}s.prototype.write=function(e){for(var t="",a=0,n=this.inBase64,r=this.base64Accum,o=0;o<e.length;o++)if(n){if(!l[e[o]]){if(o==a&&45==e[o])t+="+";else{var s=r+this.iconv.decode(e.slice(a,o),"ascii");t+=this.iconv.decode(i.from(s,"base64"),"utf16-be")}45!=e[o]&&o--,a=o+1,n=!1,r=""}}else 43==e[o]&&(t+=this.iconv.decode(e.slice(a,o),"ascii"),a=o+1,n=!0);if(n){var s=r+this.iconv.decode(e.slice(a),"ascii"),p=s.length-s.length%8;r=s.slice(p),s=s.slice(0,p),t+=this.iconv.decode(i.from(s,"base64"),"utf16-be")}else t+=this.iconv.decode(e.slice(a),"ascii");return this.inBase64=n,this.base64Accum=r,t},s.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(i.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e},t.utf7imap=u,u.prototype.encoder=c,u.prototype.decoder=m,u.prototype.bomAware=!0,c.prototype.write=function(e){for(var t=this.inBase64,a=this.base64Accum,n=this.base64AccumIdx,r=i.alloc(5*e.length+10),o=0,s=0;s<e.length;s++){var p=e.charCodeAt(s);p>=32&&p<=126?(t&&(n>0&&(o+=r.write(a.slice(0,n).toString("base64").replace(/\//g,",").replace(/=+$/,""),o),n=0),r[o++]=45,t=!1),t||(r[o++]=p,38===p&&(r[o++]=45))):(t||(r[o++]=38,t=!0),t&&(a[n++]=p>>8,a[n++]=255&p,n==a.length&&(o+=r.write(a.toString("base64").replace(/\//g,","),o),n=0)))}return this.inBase64=t,this.base64AccumIdx=n,r.slice(0,o)},c.prototype.end=function(){var e=i.alloc(10),t=0;return this.inBase64&&(this.base64AccumIdx>0&&(t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t),this.base64AccumIdx=0),e[t++]=45,this.inBase64=!1),e.slice(0,t)};var f=l.slice();f[44]=!0,m.prototype.write=function(e){for(var t="",a=0,n=this.inBase64,r=this.base64Accum,o=0;o<e.length;o++)if(n){if(!f[e[o]]){if(o==a&&45==e[o])t+="&";else{var s=r+this.iconv.decode(e.slice(a,o),"ascii").replace(/,/g,"/");t+=this.iconv.decode(i.from(s,"base64"),"utf16-be")}45!=e[o]&&o--,a=o+1,n=!1,r=""}}else 38==e[o]&&(t+=this.iconv.decode(e.slice(a,o),"ascii"),a=o+1,n=!0);if(n){var s=r+this.iconv.decode(e.slice(a),"ascii").replace(/,/g,"/"),p=s.length-s.length%8;r=s.slice(p),s=s.slice(0,p),t+=this.iconv.decode(i.from(s,"base64"),"utf16-be")}else t+=this.iconv.decode(e.slice(a),"ascii");return this.inBase64=n,this.base64Accum=r,t},m.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(i.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}},20447(e,t){function a(e,t){this.encoder=e,this.addBOM=!0}function i(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}t.PrependBOM=a,a.prototype.write=function(e){return this.addBOM&&(e="\uFEFF"+e,this.addBOM=!1),this.encoder.write(e)},a.prototype.end=function(){return this.encoder.end()},t.StripBOM=i,i.prototype.write=function(e){var t=this.decoder.write(e);return this.pass||!t||("\uFEFF"===t[0]&&(t=t.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),t},i.prototype.end=function(){return this.decoder.end()}},43259(e){var t=void 0===Object.hasOwn?Function.call.bind(Object.prototype.hasOwnProperty):Object.hasOwn;e.exports=function(e,a){for(var i in a)t(a,i)&&(e[i]=a[i])}},65679(e,t,a){var i,n=a(19845).Buffer,r=a(20447),o=a(43259),s=e.exports;s.encodings=null,s.defaultCharUnicode="�",s.defaultCharSingleByte="?",s.encode=function(e,t,a){e=""+(e||"");var i=s.getEncoder(t,a),r=i.write(e),o=i.end();return o&&o.length>0?n.concat([r,o]):r},s.decode=function(e,t,a){"string"==typeof e&&(s.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),s.skipDecodeWarning=!0),e=n.from(""+(e||""),"binary"));var i=s.getDecoder(t,a),r=i.write(e),o=i.end();return o?r+o:r},s.encodingExists=function(e){try{return s.getCodec(e),!0}catch(e){return!1}},s.toEncoding=s.encode,s.fromEncoding=s.decode,s._codecDataCache={__proto__:null},s.getCodec=function(e){if(!s.encodings){var t=a(12338);s.encodings={__proto__:null},o(s.encodings,t)}for(var i=s._canonicalizeEncoding(e),n={};;){var r=s._codecDataCache[i];if(r)return r;var p=s.encodings[i];switch(typeof p){case"string":i=p;break;case"object":for(var l in p)n[l]=p[l];n.encodingName||(n.encodingName=i),i=p.type;break;case"function":return n.encodingName||(n.encodingName=i),r=new p(n,s),s._codecDataCache[n.encodingName]=r,r;default:throw Error("Encoding not recognized: '"+e+"' (searched as: '"+i+"')")}}},s._canonicalizeEncoding=function(e){return(""+e).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},s.getEncoder=function(e,t){var a=s.getCodec(e),i=new a.encoder(t,a);return a.bomAware&&t&&t.addBOM&&(i=new r.PrependBOM(i,t)),i},s.getDecoder=function(e,t){var a=s.getCodec(e),i=new a.decoder(t,a);return a.bomAware&&!(t&&!1===t.stripBOM)&&(i=new r.StripBOM(i,t)),i},s.enableStreamingAPI=function(e){if(!s.supportsStreams){var t=a(6254)(e);s.IconvLiteEncoderStream=t.IconvLiteEncoderStream,s.IconvLiteDecoderStream=t.IconvLiteDecoderStream,s.encodeStream=function(e,t){return new s.IconvLiteEncoderStream(s.getEncoder(e,t),t)},s.decodeStream=function(e,t){return new s.IconvLiteDecoderStream(s.getDecoder(e,t),t)},s.supportsStreams=!0}};try{i=a(2203)}catch(e){}i&&i.Transform?s.enableStreamingAPI(i):s.encodeStream=s.decodeStream=function(){throw Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},6254(e,t,a){var i=a(19845).Buffer;e.exports=function(e){var t=e.Transform;function a(e,a){this.conv=e,(a=a||{}).decodeStrings=!1,t.call(this,a)}function n(e,a){this.conv=e,(a=a||{}).encoding=this.encoding="utf8",t.call(this,a)}return a.prototype=Object.create(t.prototype,{constructor:{value:a}}),a.prototype._transform=function(e,t,a){if("string"!=typeof e)return a(Error("Iconv encoding stream needs strings as its input."));try{var i=this.conv.write(e);i&&i.length&&this.push(i),a()}catch(e){a(e)}},a.prototype._flush=function(e){try{var t=this.conv.end();t&&t.length&&this.push(t),e()}catch(t){e(t)}},a.prototype.collect=function(e){var t=[];return this.on("error",e),this.on("data",function(e){t.push(e)}),this.on("end",function(){e(null,i.concat(t))}),this},n.prototype=Object.create(t.prototype,{constructor:{value:n}}),n.prototype._transform=function(e,t,a){if(!i.isBuffer(e)&&!(e instanceof Uint8Array))return a(Error("Iconv decoding stream needs buffers as its input."));try{var n=this.conv.write(e);n&&n.length&&this.push(n,this.encoding),a()}catch(e){a(e)}},n.prototype._flush=function(e){try{var t=this.conv.end();t&&t.length&&this.push(t,this.encoding),e()}catch(t){e(t)}},n.prototype.collect=function(e){var t="";return this.on("error",e),this.on("data",function(e){t+=e}),this.on("end",function(){e(null,t)}),this},{IconvLiteEncoderStream:a,IconvLiteDecoderStream:n}}},68089(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let n=a(24434),r=i(a(3680)),o=i(a(9873)),s=r.default("agent-base");function p(){let{stack:e}=Error();return"string"==typeof e&&e.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}function l(e,t){return new l.Agent(e,t)}var d=l||(l={});class u extends n.EventEmitter{constructor(e,t){super();let a=t;"function"==typeof e?this.callback=e:e&&(a=e),this.timeout=null,a&&"number"==typeof a.timeout&&(this.timeout=a.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:p()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:p()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,a){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){let a=Object.assign({},t);"boolean"!=typeof a.secureEndpoint&&(a.secureEndpoint=p()),null==a.host&&(a.host="localhost"),null==a.port&&(a.port=a.secureEndpoint?443:80),null==a.protocol&&(a.protocol=a.secureEndpoint?"https:":"http:"),a.host&&a.path&&delete a.path,delete a.agent,delete a.hostname,delete a._defaultAgent,delete a.defaultPort,delete a.createConnection,e._last=!0,e.shouldKeepAlive=!1;let i=!1,n=null,r=a.timeout||this.timeout,l=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},d=e=>{i||(null!==n&&(clearTimeout(n),n=null),l(e))},u=t=>{if(!i){if(null!=n&&(clearTimeout(n),n=null),t&&"function"==typeof t.addRequest){s("Callback returned another Agent instance %o",t.constructor.name),t.addRequest(e,a);return}if(t){t.once("free",()=>{this.freeSocket(t,a)}),e.onSocket(t);return}l(Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``))}};if("function"!=typeof this.callback)return void l(Error("`callback` is not defined"));this.promisifiedCallback||(this.callback.length>=3?(s("Converting legacy callback function to promise"),this.promisifiedCallback=o.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof r&&r>0&&(n=setTimeout(()=>{n=null,i=!0;let e=Error(`A "socket" was not created for HTTP request before ${r}ms`);e.code="ETIMEOUT",l(e)},r)),"port"in a&&"number"!=typeof a.port&&(a.port=Number(a.port));try{s("Resolving socket for %o request: %o",a.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,a)).then(u,d)}catch(e){Promise.reject(e).catch(d)}}freeSocket(e,t){s("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){s("Destroying agent %o",this.constructor.name)}}d.Agent=u,d.prototype=d.Agent.prototype,e.exports=l},9873(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,a){return new Promise((i,n)=>{e.call(this,t,a,(e,t)=>{e?n(e):i(t)})})}}},91371(e){e.exports=({onlyFirst:e=!1}={})=>RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",e?void 0:"g")},52794(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let n=i(a(62142));t.default=class{name(){return"ASCII"}match(e){let t=e.rawInput;for(let a=0;a<e.rawLen;a++){let i=t[a];if(i<32||i>126)return(0,n.default)(e,this,0)}return(0,n.default)(e,this,100)}}},98554(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ISO_2022_CN=t.ISO_2022_KR=t.ISO_2022_JP=void 0;let n=i(a(62142));class r{constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(e){let t,a,i,r,o=0,s=0,p=0,l=e.inputBytes,d=e.inputLen;t:for(t=0;t<d;t++){if(27==l[t]){a:for(i=0;i<this.escapeSequences.length;i++){let e=this.escapeSequences[i];if(!(d-t<e.length)){for(a=1;a<e.length;a++)if(e[a]!=l[t+a])continue a;o++,t+=e.length-1;continue t}}s++}(14==l[t]||15==l[t])&&p++}return 0==o?null:(r=(100*o-100*s)/(o+s),o+p<5&&(r-=(5-(o+p))*10),r<=0?null:(0,n.default)(e,this,r))}}t.ISO_2022_JP=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}},t.ISO_2022_KR=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}},t.ISO_2022_CN=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}}},73192(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.gb_18030=t.euc_kr=t.euc_jp=t.big5=t.sjis=void 0;let n=i(a(62142));class r{constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(e){return this.nextIndex>=e.rawLen?(this.done=!0,-1):255&e.rawInput[this.nextIndex++]}}class o{constructor(){this.commonChars=[]}name(){return"mbcs"}match(e){let t=0,a=0,i=0,o=0,s=0,p=new r;i:{for(p.reset();this.nextChar(p,e);){if(o++,p.error)i++;else{let e=0|p.charValue;e>255&&(t++,null!=this.commonChars&&function(e,t){let a=(e,t,i,n)=>{if(n<i)return -1;let r=Math.floor(i+n>>>1);return t>e[r]?a(e,t,r+1,n):t<e[r]?a(e,t,i,r-1):r};return a(e,t,0,e.length-1)}(this.commonChars,e)>=0&&a++)}if(i>=2&&5*i>=t)break i}if(t<=10&&0==i){s=0==t&&o<10?0:10;break i}if(t<20*i){s=0;break i}null==this.commonChars?(s=30+t-20*i)>100&&(s=100):s=Math.min(s=Math.floor(90/Math.log(t/4)*Math.log(a+1)+10),100)}return 0==s?null:(0,n.default)(e,this,s)}nextChar(e,t){return!0}}function s(e,t){e.index=e.nextIndex,e.error=!1;let a=0,i=0,n=0;n:{if((a=e.charValue=e.nextByte(t))<0){e.done=!0;break n}if(a<=141)break n;if(i=e.nextByte(t),e.charValue=e.charValue<<8|i,a>=161&&a<=254||142==a){i<161&&(e.error=!0);break n}143==a&&(n=e.nextByte(t),e.charValue=e.charValue<<8|n,n<161&&(e.error=!0))}return!1==e.done}t.sjis=class extends o{constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let a=e.charValue=e.nextByte(t);if(a<0)return!1;if(a<=127||a>160&&a<=223)return!0;let i=e.nextByte(t);return!(i<0)&&(e.charValue=a<<8|i,i>=64&&i<=127||i>=128&&i<=255||(e.error=!0),!0)}},t.big5=class extends o{constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let a=e.charValue=e.nextByte(t);if(a<0)return!1;if(a<=127||255==a)return!0;let i=e.nextByte(t);return!(i<0)&&(e.charValue=e.charValue<<8|i,(i<64||127==i||255==i)&&(e.error=!0),!0)}},t.euc_jp=class extends o{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=s}name(){return"EUC-JP"}language(){return"ja"}},t.euc_kr=class extends o{constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=s}name(){return"EUC-KR"}language(){return"ko"}},t.gb_18030=class extends o{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let a=0,i=0,n=0,r=0;n:{if((a=e.charValue=e.nextByte(t))<0){e.done=!0;break n}if(a<=128)break n;if(i=e.nextByte(t),e.charValue=e.charValue<<8|i,a>=129&&a<=254){if(i>=64&&i<=126||i>=80&&i<=254)break n;if(i>=48&&i<=57&&(n=e.nextByte(t))>=129&&n<=254&&(r=e.nextByte(t))>=48&&r<=57){e.charValue=e.charValue<<16|n<<8|r;break n}e.error=!0;break n}}return!1==e.done}}},76482(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KOI8_R=t.windows_1256=t.windows_1251=t.ISO_8859_9=t.ISO_8859_8=t.ISO_8859_7=t.ISO_8859_6=t.ISO_8859_5=t.ISO_8859_2=t.ISO_8859_1=void 0;let n=i(a(62142));class r{constructor(e,t){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=e,this.byteMap=t}search(e,t){let a=0;return(e[32]<=t&&(a+=32),e[a+16]<=t&&(a+=16),e[a+8]<=t&&(a+=8),e[a+4]<=t&&(a+=4),e[a+2]<=t&&(a+=2),e[a+1]<=t&&(a+=1),e[a]>t&&(a-=1),a<0||e[a]!=t)?-1:a}lookup(e){this.ngramCount+=1,this.search(this.ngramList,e)>=0&&(this.hitCount+=1)}addByte(e){this.ngram=(this.ngram<<8)+(255&e)&0xffffff,this.lookup(this.ngram)}nextByte(e){return this.byteIndex>=e.inputLen?-1:255&e.inputBytes[this.byteIndex++]}parse(e,t){let a,i=!1;for(this.spaceChar=t;(a=this.nextByte(e))>=0;){let e=this.byteMap[a];0!=e&&(e==this.spaceChar&&i||this.addByte(e),i=e==this.spaceChar)}this.addByte(this.spaceChar);let n=this.hitCount/this.ngramCount;return n>.33?98:Math.floor(300*n)}}class o{constructor(e,t){this.fLang=e,this.fNGrams=t}}class s{constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(e){return"sbcs"}language(){return this.nGramLang}match(e){this.nGramLang=void 0;let t=this.ngrams();if(Array.isArray(t)&&isFinite(t[0])){let a=new r(t,this.byteMap()).parse(e,this.spaceChar);return a<=0?null:(0,n.default)(e,this,a)}let a=-1;for(let i=t.length-1;i>=0;i--){let n=t[i],o=new r(n.fNGrams,this.byteMap()).parse(e,this.spaceChar);o>a&&(a=o,this.nGramLang=n.fLang)}return a<=0?null:(0,n.default)(e,this,a)}}t.ISO_8859_1=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new o("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new o("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new o("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new o("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,0xf36e20]),new o("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new o("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new o("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new o("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new o("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,0xe36f20,0xe7e36f]),new o("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,0xe47220,0xf67220])]}name(e){return e&&e.c1Bytes?"windows-1252":"ISO-8859-1"}},t.ISO_8859_2=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new o("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,0xbe6520,0xe16eed,0xe9686f,0xed2070,0xed2073,0xed6d20,0xf86564]),new o("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,0xe16e20,0xe97320]),new o("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,0xf37720]),new o("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,0xba6920,0xee6e20])]}name(e){return e&&e.c1Bytes?"windows-1250":"ISO-8859-2"}},t.ISO_8859_5=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,0xd0ddd8,0xd0e2ec,0xd3de20,0xd5dbec,0xd5ddd8,0xd5e1e2,0xd5e220,0xd820df,0xd8d520,0xd8d820,0xd8ef20,0xdbd5dd,0xdbd820,0xdbecdd,0xddd020,0xddd520,0xddd8d5,0xddd8ef,0xddde20,0xddded2,0xde20d2,0xde20df,0xde20e1,0xded220,0xded2d0,0xded3de,0xded920,0xdedbec,0xdedc20,0xdee1e2,0xdfdedb,0xdfe0d5,0xdfe0d8,0xdfe0de,0xe0d0d2,0xe0d5d4,0xe1e2d0,0xe1e2d2,0xe1e2d8,0xe1ef20,0xe2d5db,14868e3,0xe2dee0,0xe2ec20,0xe7e2de,0xebe520]}name(){return"ISO-8859-5"}language(){return"ru"}},t.ISO_8859_6=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,0xc720c7,0xc7c120,0xc7ca20,0xc7d120,0xc7e420,0xc7e4c3,0xc7e4c7,0xc7e4c8,0xc7e4ca,0xc7e4cc,0xc7e4cd,0xc7e4cf,0xc7e4d3,0xc7e4d9,0xc7e4e2,0xc7e4e5,0xc7e4e8,0xc7e4ea,0xc7e520,0xc7e620,0xc7e6ca,0xc820c7,0xc920c7,0xc920e1,0xc920e4,0xc920e5,0xc920e8,0xca20c7,0xcf20c7,0xcfc920,0xd120c7,0xd1c920,0xd320c7,0xd920c7,0xd9e4e9,0xe1ea20,0xe420c7,0xe4c920,0xe4e920,0xe4ea20,0xe520c7,0xe5c720,0xe5c920,0xe5e620,0xe620c7,0xe720c7,0xe7c720,0xe8c7e4,0xe8e620,0xe920c7,0xea20c7,0xea20e5,0xea20e8,0xeac920,0xead120,0xeae620]}name(){return"ISO-8859-6"}language(){return"ar"}},t.ISO_8859_7=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,0xdfe120,0xe120e1,0xe120f4,0xe1e920,0xe1ed20,0xe1f0fc,0xe1f220,0xe3e9e1,0xe5e920,0xe5f220,0xe720f4,0xe7ed20,0xe7f220,0xe920f4,0xe9e120,0xe9eade,0xe9f220,0xeae1e9,0xeae1f4,0xece520,0xed20e1,0xed20e5,0xed20f0,0xede120,0xeff220,0xeff520,0xf0eff5,0xf0f1ef,0xf0fc20,0xf220e1,0xf220e5,0xf220ea,0xf220f0,0xf220f4,0xf3e520,0xf3e720,0xf3f4ef,0xf4e120,0xf4e1e9,0xf4e7ed,0xf4e7f2,0xf4e9ea,16052e3,0xf4eff5,0xf4f9ed,0xf9ed20,0xfeed20]}name(e){return e&&e.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}},t.ISO_8859_8=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new o("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,0xe0fa20,0xe420e0,0xe420e1,0xe420e4,0xe420ec,0xe420ee,0xe420f9,0xe4e5e0,0xe5e020,0xe5ed20,0xe5ef20,0xe5f820,0xe5fa20,0xe920e4,0xe9e420,0xe9e5fa,0xe9e9ed,0xe9ed20,0xe9ef20,0xe9f820,0xe9fa20,0xec20e0,0xec20e4,0xece020,0xece420,0xed20e0,0xed20e1,0xed20e4,0xed20ec,0xed20ee,0xed20f9,0xeee420,0xef20e4,0xf0e420,0xf0e920,0xf0e9ed,0xf2ec20,0xf820e4,0xf8e9ed,0xf9ec20,0xfa20e0,0xfa20e1,0xfa20e4,0xfa20ec,0xfa20ee,0xfa20f9]),new o("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,0xe020e4,0xe020ec,0xe020ed,0xe020fa,0xe0e420,0xe0e5e4,0xe0ec20,0xe0ee20,0xe120e4,0xe120ed,0xe120fa,0xe420e4,0xe420e9,0xe420ec,0xe420ed,0xe420ef,0xe420f8,0xe420fa,0xe4ec20,0xe5e020,0xe5e420,0xe7e020,0xe9e020,0xe9e120,0xe9e420,0xec20e4,0xec20ed,0xec20fa,0xecf220,0xecf920,0xede9e9,0xede9f0,0xede9f8,0xee20e4,0xee20ed,0xee20fa,0xeee120,0xeee420,0xf2e420,0xf920e4,0xf920ed,0xf920fa,0xf9e420,0xfae020,0xfae420,0xfae5e9])]}name(e){return e&&e.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}},t.ISO_8859_9=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,0xfd6e20,0xfd6e64,0xfd6efd,0xfdf0fd]}name(e){return e&&e.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}},t.windows_1251=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,0xe0ede8,0xe0f2fc,0xe3ee20,0xe5ebfc,0xe5ede8,0xe5f1f2,0xe5f220,0xe820ef,0xe8e520,0xe8e820,0xe8ff20,0xebe5ed,0xebe820,0xebfced,0xede020,0xede520,0xede8e5,0xede8ff,0xedee20,0xedeee2,0xee20e2,0xee20ef,0xee20f1,0xeee220,0xeee2e0,0xeee3ee,0xeee920,0xeeebfc,0xeeec20,0xeef1f2,0xefeeeb,0xeff0e5,0xeff0e8,0xeff0ee,0xf0e0e2,0xf0e5e4,0xf1f2e0,0xf1f2e2,0xf1f2e8,0xf1ff20,0xf2e5eb,0xf2ee20,0xf2eef0,0xf2fc20,0xf7f2ee,0xfbf520]}name(){return"windows-1251"}language(){return"ru"}},t.windows_1256=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,0xc720c7,0xc7c120,0xc7ca20,0xc7d120,0xc7e120,0xc7e1c3,0xc7e1c7,0xc7e1c8,0xc7e1ca,0xc7e1cc,0xc7e1cd,0xc7e1cf,0xc7e1d3,0xc7e1da,0xc7e1de,0xc7e1e3,0xc7e1e6,0xc7e1ed,0xc7e320,0xc7e420,0xc7e4ca,0xc820c7,0xc920c7,0xc920dd,0xc920e1,0xc920e3,0xc920e6,0xca20c7,0xcf20c7,0xcfc920,0xd120c7,0xd1c920,0xd320c7,0xda20c7,0xdae1ec,0xdded20,0xe120c7,0xe1c920,0xe1ec20,0xe1ed20,0xe320c7,0xe3c720,0xe3c920,0xe3e420,0xe420c7,0xe520c7,0xe5c720,0xe6c7e1,0xe6e420,0xec20c7,0xed20c7,0xed20e3,0xed20e6,0xedc920,0xedd120,0xede420]}name(){return"windows-1256"}language(){return"ar"}},t.KOI8_R=class extends s{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,0xc1cec9,0xc1d4d8,0xc5ccd8,0xc5cec9,0xc5d3d4,0xc5d420,0xc7cf20,0xc920d0,0xc9c520,0xc9c920,0xc9d120,0xccc5ce,0xccc920,0xccd8ce,0xcec120,0xcec520,0xcec9c5,0xcec9d1,0xcecf20,0xcecfd7,0xcf20d0,0xcf20d3,0xcf20d7,0xcfc7cf,0xcfca20,0xcfccd8,0xcfcd20,0xcfd3d4,0xcfd720,0xcfd7c1,0xd0cfcc,0xd0d2c5,0xd0d2c9,0xd0d2cf,0xd2c1d7,0xd2c5c4,0xd3d120,0xd3d4c1,0xd3d4c9,0xd3d4d7,0xd4c5cc,0xd4cf20,0xd4cfd2,0xd4d820,0xd9c820,0xded4cf]}name(){return"KOI8-R"}language(){return"ru"}}},13998(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UTF_32LE=t.UTF_32BE=t.UTF_16LE=t.UTF_16BE=void 0;let n=i(a(62142));t.UTF_16BE=class{name(){return"UTF-16BE"}match(e){let t=e.rawInput;return t.length>=2&&(255&t[0])==254&&(255&t[1])==255?(0,n.default)(e,this,100):null}},t.UTF_16LE=class{name(){return"UTF-16LE"}match(e){let t=e.rawInput;return t.length>=2&&(255&t[0])==255&&(255&t[1])==254?t.length>=4&&0==t[2]&&0==t[3]?null:(0,n.default)(e,this,100):null}};class r{name(){return"UTF-32"}getChar(e,t){return -1}match(e){let t=0,a=0,i=!1,r=0,o=e.rawLen/4*4,s=e.rawInput;if(0==o)return null;65279==this.getChar(s,0)&&(i=!0);for(let e=0;e<o;e+=4){let i=this.getChar(s,e);i<0||i>=1114111||i>=55296&&i<=57343?a+=1:t+=1}return i&&0==a?r=100:i&&t>10*a?r=80:t>3&&0==a?r=100:t>0&&0==a?r=80:t>10*a&&(r=25),0==r?null:(0,n.default)(e,this,r)}}t.UTF_32BE=class extends r{name(){return"UTF-32BE"}getChar(e,t){return(255&e[t+0])<<24|(255&e[t+1])<<16|(255&e[t+2])<<8|255&e[t+3]}},t.UTF_32LE=class extends r{name(){return"UTF-32LE"}getChar(e,t){return(255&e[t+3])<<24|(255&e[t+2])<<16|(255&e[t+1])<<8|255&e[t+0]}}},36126(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let n=i(a(62142));t.default=class{name(){return"UTF-8"}match(e){let t=!1,a=0,i=0,r=0,o,s=e.rawInput;e.rawLen>=3&&(255&s[0])==239&&(255&s[1])==187&&(255&s[2])==191&&(t=!0);for(let t=0;t<e.rawLen;t++){let n=s[t];if((128&n)!=0){if((224&n)==192)r=1;else if((240&n)==224)r=2;else if((248&n)==240)r=3;else{if(++i>5)break;r=0}for(;!(++t>=e.rawLen);){if((192&s[t])!=128){i++;break}if(0==--r){a++;break}}}}if(o=0,t&&0==i)o=100;else if(t&&a>10*i)o=80;else if(a>3&&0==i)o=100;else if(a>0&&0==i)o=80;else if(0==a&&0==i)o=10;else{if(!(a>10*i))return null;o=25}return(0,n.default)(e,this,o)}}},5779(e,t,a){let i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=()=>{if("object"==typeof e.exports)return i=i||a(79896);throw Error("File system is not available")}},68023(e,t,a){var i,n=this&&this.__createBinding||(Object.create?function(e,t,a,i){void 0===i&&(i=a);var n=Object.getOwnPropertyDescriptor(t,a);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,n)}:function(e,t,a,i){void 0===i&&(i=a),e[i]=t[a]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(i=function(e){return(i=Object.getOwnPropertyNames||function(e){var t=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[t.length]=a);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a=i(e),o=0;o<a.length;o++)"default"!==a[o]&&n(t,e,a[o]);return r(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.detectFileSync=t.detectFile=t.analyse=t.detect=void 0;let p=s(a(5779)),l=s(a(52794)),d=s(a(36126)),u=o(a(13998)),c=o(a(73192)),m=o(a(76482)),f=o(a(98554)),h=a(89346),v=[new d.default,new u.UTF_16BE,new u.UTF_16LE,new u.UTF_32BE,new u.UTF_32LE,new c.sjis,new c.big5,new c.euc_jp,new c.euc_kr,new c.gb_18030,new f.ISO_2022_JP,new f.ISO_2022_KR,new f.ISO_2022_CN,new m.ISO_8859_1,new m.ISO_8859_2,new m.ISO_8859_5,new m.ISO_8859_6,new m.ISO_8859_7,new m.ISO_8859_8,new m.ISO_8859_9,new m.windows_1251,new m.windows_1256,new m.KOI8_R,new l.default];t.detect=e=>{let a=(0,t.analyse)(e);return a.length>0?a[0].name:null},t.analyse=e=>{if(!(0,h.isByteArray)(e))throw Error("Input must be a byte array, e.g. Buffer or Uint8Array");let t=[];for(let e=0;e<256;e++)t[e]=0;for(let a=e.length-1;a>=0;a--)t[255&e[a]]++;let a=!1;for(let e=128;e<=159;e+=1)if(0!==t[e]){a=!0;break}let i={byteStats:t,c1Bytes:a,rawInput:e,rawLen:e.length,inputBytes:e,inputLen:e.length};return v.map(e=>e.match(i)).filter(e=>!!e).sort((e,t)=>t.confidence-e.confidence)},t.detectFile=(e,a={})=>new Promise((i,n)=>{let r,o=(0,p.default)(),s=(e,a)=>{r&&o.closeSync(r),e?n(e):a?i((0,t.detect)(a)):n(Error("No error and no buffer received"))},l=(null==a?void 0:a.sampleSize)||0;if(l>0){r=o.openSync(e,"r");let t=Buffer.allocUnsafe(l);o.read(r,t,0,l,a.offset,(e,a)=>{e?s(e,null):(a<l&&(t=t.subarray(0,a)),s(null,t))});return}o.readFile(e,s)}),t.detectFileSync=(e,a={})=>{let i=(0,p.default)();if(a&&a.sampleSize){let n=i.openSync(e,"r"),r=Buffer.allocUnsafe(a.sampleSize),o=i.readSync(n,r,0,a.sampleSize,a.offset);return o<a.sampleSize&&(r=r.subarray(0,o)),i.closeSync(n),(0,t.detect)(r)}return(0,t.detect)(i.readFileSync(e))},t.default={analyse:t.analyse,detect:t.detect,detectFileSync:t.detectFileSync,detectFile:t.detectFile}},62142(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,a)=>({confidence:a,name:t.name(e),lang:t.language?t.language():void 0})},89346(e,t){t.isByteArray=void 0,t.isByteArray=e=>null!=e&&"object"==typeof e&&isFinite(e.length)&&e.length>=0},47661(e,t,a){let i=Object.assign({},a(3900)),n=Object.keys(i);Object.defineProperty(i,"random",{get(){let e=Math.floor(Math.random()*n.length);return i[n[e]]}}),e.exports=i},20124(e,t,a){let i;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;t.splice(1,0,a,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(n=i))}),t.splice(n,0,a)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"u">typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),i=!1,t.destroy=()=>{i||(i=!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`."))},t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=a(27891)(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},27891(e,t,a){e.exports=function(e){function t(e){let a,n,r,o=null;function s(...e){if(!s.enabled)return;let i=Number(new Date);s.diff=i-(a||i),s.prev=a,s.curr=i,a=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let n=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(a,i)=>{if("%%"===a)return"%";n++;let r=t.formatters[i];if("function"==typeof r){let t=e[n];a=r.call(s,t),e.splice(n,1),n--}return a}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=i,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(n!==t.namespaces&&(n=t.namespaces,r=t.enabled(e)),r),set:e=>{o=e}}),"function"==typeof t.init&&t.init(s),s}function i(e,a){let i=t(this.namespace+(void 0===a?":":a)+e);return i.log=this.log,i}function n(e,t){let a=0,i=0,n=-1,r=0;for(;a<e.length;)if(i<t.length&&(t[i]===e[a]||"*"===t[i]))"*"===t[i]?(n=i,r=a):a++,i++;else{if(-1===n)return!1;i=n+1,a=++r}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let a of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===a[0]?t.skips.push(a.slice(1)):t.names.push(a)},t.enabled=function(e){for(let a of t.skips)if(n(e,a))return!1;for(let a of t.names)if(n(e,a))return!0;return!1},t.humanize=a(27250),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(a=>{t[a]=e[a]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let a=0;for(let t=0;t<e.length;t++)a=(a<<5)-a+e.charCodeAt(t)|0;return t.colors[Math.abs(a)%t.colors.length]},t.enable(t.load()),t}},3680(e,t,a){"u"<typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=a(20124):e.exports=a(85038)},85038(e,t,a){let i=a(52018),n=a(39023);t.init=function(e){e.inspectOpts={};let a=Object.keys(t.inspectOpts);for(let i=0;i<a.length;i++)e.inspectOpts[a[i]]=t.inspectOpts[a[i]]},t.log=function(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(a){let{namespace:i,useColors:n}=this;if(n){let t=this.color,n="\x1b[3"+(t<8?t:"8;5;"+t),r=` ${n};1m${i} \u001B[0m`;a[0]=r+a[0].split("\n").join("\n"+r),a.push(n+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else a[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+i+" "+a[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:i.isatty(process.stderr.fd)},t.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=a(35600);e&&(e.stderr||e).level>=2&&(t.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){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let a=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[a]=i,e},{}),e.exports=a(27891)(t);let{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}},81354(e){e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},94370(e,t,a){a.r(t),a.d(t,{default:()=>g,disableExperimentalFragmentVariables:()=>h,disableFragmentWarnings:()=>m,enableExperimentalFragmentVariables:()=>f,gql:()=>u,resetCaches:()=>c});var i,n=a(85608),r=a(20186),o=new Map,s=new Map,p=!0,l=!1;function d(e){return e.replace(/[\s,]+/g," ").trim()}function u(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,a){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[a+1]}),function(e){var t=d(e);if(!o.has(t)){var a,i,u,c,m,f=(0,r.qg)(e,{experimentalFragmentVariables:l,allowLegacyFragmentVariables:l});if(!f||"Document"!==f.kind)throw Error("Not a valid GraphQL document.");o.set(t,((c=new Set((a=new Set,i=[],f.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,n=e.name.value,r=d((t=e.loc).source.body.substring(t.start,t.end)),o=s.get(n);o&&!o.has(r)?p&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||s.set(n,o=new Set),o.add(r),a.has(r)||(a.add(r),i.push(e))}else i.push(e)}),u=(0,n.__assign)((0,n.__assign)({},f),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var a=e[t];a&&"object"==typeof a&&c.add(a)})}),(m=u.loc)&&(delete m.startToken,delete m.endToken),u))}return o.get(t)}(i)}function c(){o.clear(),s.clear()}function m(){p=!1}function f(){l=!0}function h(){l=!1}var v=u;(i=u||(u={})).gql=v,i.resetCaches=c,i.disableFragmentWarnings=m,i.enableExperimentalFragmentVariables=f,i.disableExperimentalFragmentVariables=h,u.default=u;let g=u},56071(e){e.exports=(e,t=process.argv)=>{let a=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(a+e),n=t.indexOf("--");return -1!==i&&(-1===n||i<n)}},35646(e,t,a){var i=this&&this.__awaiter||function(e,t,a,i){return new(a||(a=Promise))(function(n,r){function o(e){try{p(i.next(e))}catch(e){r(e)}}function s(e){try{p(i.throw(e))}catch(e){r(e)}}function p(e){var t;e.done?n(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(o,s)}p((i=i.apply(e,t||[])).next())})},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let r=n(a(69278)),o=n(a(64756)),s=n(a(87016)),p=n(a(42613)),l=n(a(3680)),d=a(68089),u=n(a(36981)),c=l.default("https-proxy-agent:agent");class m extends d.Agent{constructor(e){var t;let a;if(!(a="string"==typeof e?s.default.parse(e):e))throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");c("creating new HttpsProxyAgent instance: %o",a),super(a);let i=Object.assign({},a);this.secureProxy=a.secureProxy||"string"==typeof(t=i.protocol)&&/^https:?$/i.test(t),i.host=i.hostname||i.host,"string"==typeof i.port&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),!this.secureProxy||"ALPNProtocols"in i||(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return i(this,void 0,void 0,function*(){var a,i;let n,{proxy:s,secureProxy:l}=this;l?(c("Creating `tls.Socket`: %o",s),n=o.default.connect(s)):(c("Creating `net.Socket`: %o",s),n=r.default.connect(s));let d=Object.assign({},s.headers),m=`${t.host}:${t.port}`,h=`CONNECT ${m} HTTP/1.1\r
|
|
2
2
|
`;s.auth&&(d["Proxy-Authorization"]=`Basic ${Buffer.from(s.auth).toString("base64")}`);let{host:v,port:g,secureEndpoint:y}=t;for(let e of(a=g,((i=y)||80!==a)&&(!i||443!==a)&&(v+=`:${g}`),d.Host=v,d.Connection="close",Object.keys(d)))h+=`${e}: ${d[e]}\r
|
|
3
3
|
`;let D=u.default(n);n.write(`${h}\r
|
|
4
|
-
`);let{statusCode:b,buffered:x}=yield D;if(200===b){if(e.once("socket",f),t.secureEndpoint){c("Upgrading socket connection to TLS");let e=t.servername||t.host;return o.default.connect(Object.assign(Object.assign({},function(e,...t){let a,i={};for(a in e)t.includes(a)||(i[a]=e[a]);return i}(t,"host","hostname","path","port")),{socket:n,servername:e}))}return n}n.destroy();let _=new r.default.Socket({writable:!1});return _.readable=!0,e.once("socket",e=>{c("replaying proxy buffer for failed request"),p.default(e.listenerCount("data")>0),e.push(x),e.push(null)}),_})}}function f(e){e.resume()}t.default=m},64007(e,t,a){var i;let n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(a(35646));function r(e){return new n.default(e)}(i=r||(r={})).HttpsProxyAgent=n.default,i.prototype=n.default.prototype,e.exports=r},36981(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let n=i(a(3680)).default("https-proxy-agent:parse-proxy-response");t.default=function(e){return new Promise((t,a)=>{let i=0,r=[];function o(){let a=e.read();a?function(e){r.push(e),i+=e.length;let a=Buffer.concat(r,i);if(-1===a.indexOf("\r\n\r\n")){n("have not received end of HTTP headers yet..."),o();return}let s=a.toString("ascii",0,a.indexOf("\r\n")),p=+s.split(" ")[1];n("got proxy server response: %o",s),t({statusCode:p,buffered:a})}(a):e.once("readable",o)}function s(e){n("onclose had error %o",e)}function p(){n("onend")}e.on("error",function t(i){e.removeListener("end",p),e.removeListener("error",t),e.removeListener("close",s),e.removeListener("readable",o),n("onerror %o",i),a(i)}),e.on("close",s),e.on("end",p),o()})}},51555(e,t,a){e.exports=a(14878)},86090(e,t,a){var i,n,r,o=a(51555),s=a(16928).extname,p=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function d(e){if(!e||"string"!=typeof e)return!1;var t=p.exec(e),a=t&&o[t[1].toLowerCase()];return a&&a.charset?a.charset:!!(t&&l.test(t[1]))&&"UTF-8"}t.charset=d,t.charsets={lookup:d},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var a=-1===e.indexOf("/")?t.lookup(e):e;if(!a)return!1;if(-1===a.indexOf("charset")){var i=t.charset(a);i&&(a+="; charset="+i.toLowerCase())}return a},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var a=p.exec(e),i=a&&t.extensions[a[1].toLowerCase()];return!!i&&!!i.length&&i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var a=s("x."+e).toLowerCase().substr(1);return!!a&&(t.types[a]||!1)},t.types=Object.create(null),i=t.extensions,n=t.types,r=["nginx","apache",void 0,"iana"],Object.keys(o).forEach(function(e){var t=o[e],a=t.extensions;if(a&&a.length){i[e]=a;for(var s=0;s<a.length;s++){var p=a[s];if(n[p]){var l=r.indexOf(o[n[p]].source),d=r.indexOf(t.source);if("application/octet-stream"!==n[p]&&(l>d||l===d&&"application/"===n[p].substr(0,12)))continue}n[p]=e}}})},27250(e){function t(e,t,a,i){return Math.round(e/a)+" "+i+(t>=1.5*a?"s":"")}e.exports=function(e,a){a=a||{};var i,n,r,o,s=typeof e;if("string"===s&&e.length>0){var p=e;if(!((p=String(p)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(l){var d=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*d;case"weeks":case"week":case"w":return 6048e5*d;case"days":case"day":case"d":return 864e5*d;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*d;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*d;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:break}}}return}if("number"===s&&isFinite(e)){return a.long?(n=Math.abs(i=e))>=864e5?t(i,n,864e5,"day"):n>=36e5?t(i,n,36e5,"hour"):n>=6e4?t(i,n,6e4,"minute"):n>=1e3?t(i,n,1e3,"second"):i+" ms":(o=Math.abs(r=e))>=864e5?Math.round(r/864e5)+"d":o>=36e5?Math.round(r/36e5)+"h":o>=6e4?Math.round(r/6e4)+"m":o>=1e3?Math.round(r/1e3)+"s":r+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},27549(e,t,a){e.exports=function(e,t){var i=[function(e,t,a){e.exports=a(34)},function(e,t,a){var i=a(29)("wks"),n=a(33),r=a(2).Symbol,o="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=o&&r[e]||(o?r:n)("Symbol."+e))}).store=i},function(e,t){var a=e.exports="u">typeof window&&window.Math==Math?window:"u">typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t,a){var i=a(9);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,a){e.exports=!a(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,a){var i=a(12),n=a(17);e.exports=a(4)?function(e,t,a){return i.f(e,t,n(1,a))}:function(e,t,a){return e[t]=a,e}},function(e,t){var a=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=a)},function(e,t,a){var i=a(14);e.exports=function(e,t,a){if(i(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,i){return e.call(t,a,i)};case 3:return function(a,i,n){return e.call(t,a,i,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){var a={}.hasOwnProperty;e.exports=function(e,t){return a.call(e,t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){var a={}.toString;e.exports=function(e){return a.call(e).slice(8,-1)}},function(e,t,a){var i=a(3),n=a(26),r=a(32),o=Object.defineProperty;t.f=a(4)?Object.defineProperty:function(e,t,a){if(i(e),t=r(t,!0),i(a),n)try{return o(e,t,a)}catch(e){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(e[t]=a.value),e}},function(e,t,a){var i=a(42),n=a(15);e.exports=function(e){return i(n(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,a){var i=a(9),n=a(2).document,r=i(n)&&i(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,a){var i=a(12).f,n=a(8),r=a(1)("toStringTag");e.exports=function(e,t,a){e&&!n(e=a?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,a){var i=a(29)("keys"),n=a(33);e.exports=function(e){return i[e]||(i[e]=n(e))}},function(e,t){var a=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e*=1)?0:(e>0?i:a)(e)}},function(e,t,a){var i=a(11),n=a(1)("toStringTag"),r="Arguments"==i(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,a,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=o(t=Object(e),n))?a:r?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,a){var i=a(2),n=a(6),r=a(7),o=a(5),s="prototype",p=function(e,t,a){var l,d,u,c=e&p.F,m=e&p.G,f=e&p.S,h=e&p.P,v=e&p.B,g=e&p.W,y=m?n:n[t]||(n[t]={}),D=y[s],b=m?i:f?i[t]:(i[t]||{})[s];for(l in m&&(a=t),a)(d=!c&&b&&void 0!==b[l])&&l in y||(u=d?b[l]:a[l],y[l]=m&&"function"!=typeof b[l]?a[l]:v&&d?r(u,i):g&&b[l]==u?function(e){var t=function(t,a,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,a)}return new e(t,a,i)}return e.apply(this,arguments)};return t[s]=e[s],t}(u):h&&"function"==typeof u?r(Function.call,u):u,h&&((y.virtual||(y.virtual={}))[l]=u,e&p.R&&D&&!D[l]&&o(D,l,u)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,a){e.exports=a(2).document&&document.documentElement},function(e,t,a){e.exports=!a(4)&&!a(24)(function(){return 7!=Object.defineProperty(a(16)("div"),"a",{get:function(){return 7}}).a})},function(e,t,a){"use strict";var i=a(28),n=a(23),r=a(57),o=a(5),s=a(8),p=a(10),l=a(45),d=a(18),u=a(52),c=a(1)("iterator"),m=!([].keys&&"next"in[].keys()),f="keys",h="values",v=function(){return this};e.exports=function(e,t,a,g,y,D,b){l(a,t,g);var x,_,w,E=function(e){if(!m&&e in T)return T[e];switch(e){case f:case h:return function(){return new a(this,e)}}return function(){return new a(this,e)}},F=t+" Iterator",C=y==h,A=!1,T=e.prototype,S=T[c]||T["@@iterator"]||y&&T[y],O=S||E(y),N=y?C?E("entries"):O:void 0,k="Array"==t&&T.entries||S;if(k&&(w=u(k.call(new e)))!==Object.prototype&&(d(w,F,!0),i||s(w,c)||o(w,c,v)),C&&S&&S.name!==h&&(A=!0,O=function(){return S.call(this)}),(!i||b)&&(m||A||!T[c])&&o(T,c,O),p[t]=O,p[F]=v,y)if(x={values:C?O:E(h),keys:D?O:E(f),entries:N},b)for(_ in x)_ in T||r(T,_,x[_]);else n(n.P+n.F*(m||A),t,x);return x}},function(e,t){e.exports=!0},function(e,t,a){var i=a(2),n="__core-js_shared__",r=i[n]||(i[n]={});e.exports=function(e){return r[e]||(r[e]={})}},function(e,t,a){var i,n,r,o=a(7),s=a(41),p=a(25),l=a(16),d=a(2),u=d.process,c=d.setImmediate,m=d.clearImmediate,f=d.MessageChannel,h=0,v={},g="onreadystatechange",y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},D=function(e){y.call(e.data)};c&&m||(c=function(e){for(var t=[],a=1;arguments.length>a;)t.push(arguments[a++]);return v[++h]=function(){s("function"==typeof e?e:Function(e),t)},i(h),h},m=function(e){delete v[e]},"process"==a(11)(u)?i=function(e){u.nextTick(o(y,e,1))}:f?(r=(n=new f).port2,n.port1.onmessage=D,i=o(r.postMessage,r,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(i=function(e){d.postMessage(e+"","*")},d.addEventListener("message",D,!1)):i=g in l("script")?function(e){p.appendChild(l("script"))[g]=function(){p.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:c,clear:m}},function(e,t,a){var i=a(20),n=Math.min;e.exports=function(e){return e>0?n(i(e),0x1fffffffffffff):0}},function(e,t,a){var i=a(9);e.exports=function(e,t){var a,n;if(!i(e))return e;if(t&&"function"==typeof(a=e.toString)&&!i(n=a.call(e))||"function"==typeof(a=e.valueOf)&&!i(n=a.call(e))||!t&&"function"==typeof(a=e.toString)&&!i(n=a.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},function(e,t){var a=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++a+i).toString(36))}},function(e,t,a){"use strict";function i(e){return(0,p.createHash)("sha256").update(e).digest("hex")}function n(e){switch(l){case"darwin":return e.split("IOPlatformUUID")[1].split("\n")[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return e.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":case"freebsd":return e.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw Error("Unsupported platform: "+process.platform)}}Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=a(35))&&r.__esModule?r:{default:r};t.machineIdSync=function(e){var t=n((0,s.execSync)(d[l]).toString());return e?t:i(t)},t.machineId=function(e){return new o.default(function(t,a){return(0,s.exec)(d[l],{},function(r,o,s){if(r)return a(Error("Error while obtaining machine id: "+r.stack));var p=n(o.toString());return t(e?p:i(p))})})};var s=a(70),p=a(71),l=process.platform,d={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:{native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"}["win32"!==process.platform?"":"ia32"===process.arch&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(e,t,a){e.exports={default:a(36),__esModule:!0}},function(e,t,a){a(66),a(68),a(69),a(67),e.exports=a(6).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,a,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(a+": incorrect invocation!");return e}},function(e,t,a){var i=a(13),n=a(31),r=a(62);e.exports=function(e){return function(t,a,o){var s,p=i(t),l=n(p.length),d=r(o,l);if(e&&a!=a){for(;l>d;)if((s=p[d++])!=s)return!0}else for(;l>d;d++)if((e||d in p)&&p[d]===a)return e||d||0;return!e&&-1}}},function(e,t,a){var i=a(7),n=a(44),r=a(43),o=a(3),s=a(31),p=a(64),l={},d={},t=e.exports=function(e,t,a,u,c){var m,f,h,v,g=c?function(){return e}:p(e),y=i(a,u,t?2:1),D=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(r(g)){for(m=s(e.length);m>D;D++)if((v=t?y(o(f=e[D])[0],f[1]):y(e[D]))===l||v===d)return v}else for(h=g.call(e);!(f=h.next()).done;)if((v=n(h,y,f.value,t))===l||v===d)return v};t.BREAK=l,t.RETURN=d},function(e,t){e.exports=function(e,t,a){var i=void 0===a;switch(t.length){case 0:return i?e():e.call(a);case 1:return i?e(t[0]):e.call(a,t[0]);case 2:return i?e(t[0],t[1]):e.call(a,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(a,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(a,t[0],t[1],t[2],t[3])}return e.apply(a,t)}},function(e,t,a){var i=a(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,a){var i=a(10),n=a(1)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[n]===e)}},function(e,t,a){var i=a(3);e.exports=function(e,t,a,n){try{return n?t(i(a)[0],a[1]):t(a)}catch(t){var r=e.return;throw void 0!==r&&i(r.call(e)),t}}},function(e,t,a){"use strict";var i=a(49),n=a(17),r=a(18),o={};a(5)(o,a(1)("iterator"),function(){return this}),e.exports=function(e,t,a){e.prototype=i(o,{next:n(1,a)}),r(e,t+" Iterator")}},function(e,t,a){var i=a(1)("iterator"),n=!1;try{var r=[7][i]();r.return=function(){n=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!n)return!1;var a=!1;try{var r=[7],o=r[i]();o.next=function(){return{done:a=!0}},r[i]=function(){return o},e(r)}catch(e){}return a}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,a){var i=a(2),n=a(30).set,r=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,p="process"==a(11)(o);e.exports=function(){var e,t,a,l=function(){var i,n;for(p&&(i=o.domain)&&i.exit();e;){n=e.fn,e=e.next;try{n()}catch(i){throw e?a():t=void 0,i}}t=void 0,i&&i.enter()};if(p)a=function(){o.nextTick(l)};else if(r){var d=!0,u=document.createTextNode("");new r(l).observe(u,{characterData:!0}),a=function(){u.data=d=!d}}else if(s&&s.resolve){var c=s.resolve();a=function(){c.then(l)}}else a=function(){n.call(i,l)};return function(i){var n={fn:i,next:void 0};t&&(t.next=n),e||(e=n,a()),t=n}}},function(e,t,a){var i=a(3),n=a(50),r=a(22),o=a(19)("IE_PROTO"),s=function(){},p="prototype",l=function(){var e,t=a(16)("iframe"),i=r.length;for(t.style.display="none",a(25).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l[p][r[i]];return l()};e.exports=Object.create||function(e,t){var a;return null!==e?(s[p]=i(e),a=new s,s[p]=null,a[o]=e):a=l(),void 0===t?a:n(a,t)}},function(e,t,a){var i=a(12),n=a(3),r=a(54);e.exports=a(4)?Object.defineProperties:function(e,t){n(e);for(var a,o=r(t),s=o.length,p=0;s>p;)i.f(e,a=o[p++],t[a]);return e}},function(e,t,a){var i=a(55),n=a(17),r=a(13),o=a(32),s=a(8),p=a(26),l=Object.getOwnPropertyDescriptor;t.f=a(4)?l:function(e,t){if(e=r(e),t=o(t,!0),p)try{return l(e,t)}catch(e){}if(s(e,t))return n(!i.f.call(e,t),e[t])}},function(e,t,a){var i=a(8),n=a(63),r=a(19)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return i(e=n(e),r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,a){var i=a(8),n=a(13),r=a(39)(!1),o=a(19)("IE_PROTO");e.exports=function(e,t){var a,s=n(e),p=0,l=[];for(a in s)a!=o&&i(s,a)&&l.push(a);for(;t.length>p;)i(s,a=t[p++])&&(~r(l,a)||l.push(a));return l}},function(e,t,a){var i=a(53),n=a(22);e.exports=Object.keys||function(e){return i(e,n)}},function(e,t){t.f=({}).propertyIsEnumerable},function(e,t,a){var i=a(5);e.exports=function(e,t,a){for(var n in t)a&&e[n]?e[n]=t[n]:i(e,n,t[n]);return e}},function(e,t,a){e.exports=a(5)},function(e,t,a){var i=a(9),n=a(3),r=function(e,t){if(n(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=a(7)(Function.call,a(51).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,a){return r(e,a),t?e.__proto__=a:i(e,a),e}}({},!1):void 0),check:r}},function(e,t,a){"use strict";var i=a(2),n=a(6),r=a(12),o=a(4),s=a(1)("species");e.exports=function(e){var t="function"==typeof n[e]?n[e]:i[e];o&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,a){var i=a(3),n=a(14),r=a(1)("species");e.exports=function(e,t){var a,o=i(e).constructor;return void 0===o||void 0==(a=i(o)[r])?t:n(a)}},function(e,t,a){var i=a(20),n=a(15);e.exports=function(e){return function(t,a){var r,o,s=String(n(t)),p=i(a),l=s.length;return p<0||p>=l?e?"":void 0:(r=s.charCodeAt(p))<55296||r>56319||p+1===l||(o=s.charCodeAt(p+1))<56320||o>57343?e?s.charAt(p):r:e?s.slice(p,p+2):(r-55296<<10)+(o-56320)+65536}}},function(e,t,a){var i=a(20),n=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?n(e+t,0):r(e,t)}},function(e,t,a){var i=a(15);e.exports=function(e){return Object(i(e))}},function(e,t,a){var i=a(21),n=a(1)("iterator"),r=a(10);e.exports=a(6).getIteratorMethod=function(e){if(void 0!=e)return e[n]||e["@@iterator"]||r[i(e)]}},function(e,t,a){"use strict";var i=a(37),n=a(47),r=a(10),o=a(13);e.exports=a(27)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,a=this._i++;return!e||a>=e.length?(this._t=void 0,n(1)):"keys"==t?n(0,a):"values"==t?n(0,e[a]):n(0,[a,e[a]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){},function(e,t,a){"use strict";var i,n,r,o=a(28),s=a(2),p=a(7),l=a(21),d=a(23),u=a(9),c=(a(3),a(14)),m=a(38),f=a(40),h=(a(58).set,a(60)),v=a(30).set,g=a(48)(),y="Promise",D=s.TypeError,b=s.process,x=s[y],b=s.process,_="process"==l(b),w=function(){},E=!!function(){try{var e=x.resolve(1),t=(e.constructor={})[a(1)("species")]=function(e){e(w,w)};return(_||"function"==typeof PromiseRejectionEvent)&&e.then(w)instanceof t}catch(e){}}(),F=function(e,t){return e===t||e===x&&t===r},C=function(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t},A=function(e){return F(x,e)?new T(e):new n(e)},T=n=function(e){var t,a;this.promise=new e(function(e,i){if(void 0!==t||void 0!==a)throw D("Bad Promise constructor");t=e,a=i}),this.resolve=c(t),this.reject=c(a)},S=function(e){try{e()}catch(e){return{error:e}}},O=function(e,t){if(!e._n){e._n=!0;var a=e._c;g(function(){for(var i=e._v,n=1==e._s,r=0;a.length>r;)!function(t){var a,r,o=n?t.ok:t.fail,s=t.resolve,p=t.reject,l=t.domain;try{o?(n||(2==e._h&&I(e),e._h=1),!0===o?a=i:(l&&l.enter(),a=o(i),l&&l.exit()),a===t.promise?p(D("Promise-chain cycle")):(r=C(a))?r.call(a,s,p):s(a)):p(i)}catch(e){p(e)}}(a[r++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){v.call(s,function(){var t,a,i,n=e._v;if(k(e)&&(t=S(function(){_?b.emit("unhandledRejection",n,e):(a=s.onunhandledrejection)?a({promise:e,reason:n}):(i=s.console)&&i.error&&i.error("Unhandled promise rejection",n)}),e._h=_||k(e)?2:1),e._a=void 0,t)throw t.error})},k=function(e){if(1==e._h)return!1;for(var t,a=e._a||e._c,i=0;a.length>i;)if((t=a[i++]).fail||!k(t.promise))return!1;return!0},I=function(e){v.call(s,function(){var t;_?b.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},$=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},j=function(e){var t,a=this;if(!a._d){a._d=!0,a=a._w||a;try{if(a===e)throw D("Promise can't be resolved itself");(t=C(e))?g(function(){var i={_w:a,_d:!1};try{t.call(e,p(j,i,1),p($,i,1))}catch(e){$.call(i,e)}}):(a._v=e,a._s=1,O(a,!1))}catch(e){$.call({_w:a,_d:!1},e)}}};E||(x=function(e){m(this,x,y,"_h"),c(e),i.call(this);try{e(p(j,this,1),p($,this,1))}catch(e){$.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=a(56)(x.prototype,{then:function(e,t){var a=A(h(this,x));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=_?b.domain:void 0,this._c.push(a),this._a&&this._a.push(a),this._s&&O(this,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),T=function(){var e=new i;this.promise=e,this.resolve=p(j,e,1),this.reject=p($,e,1)}),d(d.G+d.W+!E*d.F,{Promise:x}),a(18)(x,y),a(59)(y),r=a(6)[y],d(d.S+!E*d.F,y,{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(o||!E),y,{resolve:function(e){if(e instanceof x&&F(e.constructor,this))return e;var t=A(this);return(0,t.resolve)(e),t.promise}}),d(d.S+!(E&&a(46)(function(e){x.all(e).catch(w)}))*d.F,y,{all:function(e){var t=this,a=A(t),i=a.resolve,n=a.reject,r=S(function(){var a=[],r=0,o=1;f(e,!1,function(e){var s=r++,p=!1;a.push(void 0),o++,t.resolve(e).then(function(e){p||(p=!0,a[s]=e,--o||i(a))},n)}),--o||i(a)});return r&&n(r.error),a.promise},race:function(e){var t=this,a=A(t),i=a.reject,n=S(function(){f(e,!1,function(e){t.resolve(e).then(a.resolve,i)})});return n&&i(n.error),a.promise}})},function(e,t,a){"use strict";var i=a(61)(!0);a(27)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,a=this._i;return a>=t.length?{value:void 0,done:!0}:(e=i(t,a),this._i+=e.length,{value:e,done:!1})})},function(e,t,a){a(65);for(var i=a(2),n=a(5),r=a(10),o=a(1)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],p=0;p<5;p++){var l=s[p],d=i[l],u=d&&d.prototype;u&&!u[o]&&n(u,o,l),r[l]=r.Array}},function(e,t){e.exports=a(35317)},function(e,t){e.exports=a(76982)}];function n(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return i[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var r={};return n.m=i,n.c=r,n.p="",n(0)}(a(35317),a(76982))},19845(e,t,a){var i,n=a(20181),r=n.Buffer,o={};for(i in n)n.hasOwnProperty(i)&&"SlowBuffer"!==i&&"Buffer"!==i&&(o[i]=n[i]);var s=o.Buffer={};for(i in r)r.hasOwnProperty(i)&&"allocUnsafe"!==i&&"allocUnsafeSlow"!==i&&(s[i]=r[i]);if(o.Buffer.prototype=r.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,a){if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return r(e,t,a)}),s.alloc||(s.alloc=function(e,t,a){if("number"!=typeof e)throw TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*0x40000000)throw RangeError('The value "'+e+'" is invalid for option "size"');var i=r(e);return t&&0!==t.length?"string"==typeof a?i.fill(t,a):i.fill(t):i.fill(0),i}),!o.kStringMaxLength)try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}!o.constants&&(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),e.exports=o},79436(e,t,a){let i=a(91371);e.exports=e=>"string"==typeof e?e.replace(i(),""):e},35600(e,t,a){let i,n=a(70857),r=a(52018),o=a(56071),{env:s}=process;function p(e,t={}){var a;return 0!==(a=function(e,{streamIsTTY:t,sniffFlags:a=!0}={}){let r=function(){if("FORCE_COLOR"in s)return"true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(Number.parseInt(s.FORCE_COLOR,10),3)}();void 0!==r&&(i=r);let p=a?i:r;if(0===p)return 0;if(a){if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2}if(e&&!t&&void 0===p)return 0;let l=p||0;if("dumb"===s.TERM)return l;if("win32"===process.platform){let e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(e=>e in s)||"codeship"===s.CI_NAME?1:l;if("TEAMCITY_VERSION"in s)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION);if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){let e=Number.parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:l}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?i=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(i=1),e.exports={supportsColor:p,stdout:p({isTTY:r.isatty(1)}),stderr:p({isTTY:r.isatty(2)})}},23246(e,t,a){var i=a(24876),n=a(91749),r={TRANSITIONAL:0,NONTRANSITIONAL:1};function o(e){return e.split("\0").map(function(e){return e.normalize("NFC")}).join("\0")}function s(e){for(var t=0,a=n.length-1;t<=a;){var i=Math.floor((t+a)/2),r=n[i];if(r[0][0]<=e&&r[0][1]>=e)return r;r[0][0]>e?a=i-1:t=i+1}return null}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function l(e){return e.replace(p,"_").length}var d=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;e.exports.toASCII=function(e,t,a,n){var p=function e(t,a,n){var p=function(e,t,a){for(var i=!1,n="",o=l(e),p=0;p<o;++p){var d=e.codePointAt(p),u=s(d);switch(u[1]){case"disallowed":i=!0,n+=String.fromCodePoint(d);break;case"ignored":break;case"mapped":n+=String.fromCodePoint.apply(String,u[2]);break;case"deviation":a===r.TRANSITIONAL?n+=String.fromCodePoint.apply(String,u[2]):n+=String.fromCodePoint(d);break;case"valid":n+=String.fromCodePoint(d);break;case"disallowed_STD3_mapped":t?(i=!0,n+=String.fromCodePoint(d)):n+=String.fromCodePoint.apply(String,u[2]);break;case"disallowed_STD3_valid":t&&(i=!0),n+=String.fromCodePoint(d)}}return{string:n,error:i}}(t,a,n);p.string=o(p.string);for(var u=p.string.split("."),c=0;c<u.length;++c)try{var m=function(t){"xn--"===t.substr(0,4)&&(t=i.toUnicode(t),r.NONTRANSITIONAL);var a=!1;(o(t)!==t||"-"===t[3]&&"-"===t[4]||"-"===t[0]||"-"===t[t.length-1]||-1!==t.indexOf(".")||0===t.search(d))&&(a=!0);for(var n=l(t),p=0;p<n;++p){var u=s(t.codePointAt(p));if(e===r.TRANSITIONAL&&"valid"!==u[1]||e===r.NONTRANSITIONAL&&"valid"!==u[1]&&"deviation"!==u[1]){a=!0;break}}return{label:t,error:a}}(u[c]);u[c]=m.label,p.error=p.error||m.error}catch(e){p.error=!0}return{string:u.join("."),error:p.error}}(e,t,a),u=p.string.split(".");if(u=u.map(function(e){try{return i.toASCII(e)}catch(t){return p.error=!0,e}}),n){var c=u.slice(0,u.length-1).join(".").length;(c.length>253||0===c.length)&&(p.error=!0);for(var m=0;m<u.length;++m)if(u.length>63||0===u.length){p.error=!0;break}}return p.error?null:u.join(".")},e.exports.PROCESSING_OPTIONS=r},98706(e,t,a){let i=a(78323);t.implementation=class{constructor(e){let t=e[0],a=e[1],n=null;if(void 0!==a&&"failure"===(n=i.basicURLParse(a)))throw TypeError("Invalid base URL");let r=i.basicURLParse(t,{baseURL:n});if("failure"===r)throw TypeError("Invalid URL");this._url=r}get href(){return i.serializeURL(this._url)}set href(e){let t=i.basicURLParse(e);if("failure"===t)throw TypeError("Invalid URL");this._url=t}get origin(){return i.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){i.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){i.cannotHaveAUsernamePasswordPort(this._url)||i.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){i.cannotHaveAUsernamePasswordPort(this._url)||i.setThePassword(this._url,e)}get host(){let e=this._url;return null===e.host?"":null===e.port?i.serializeHost(e.host):i.serializeHost(e.host)+":"+i.serializeInteger(e.port)}set host(e){this._url.cannotBeABaseURL||i.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":i.serializeHost(this._url.host)}set hostname(e){this._url.cannotBeABaseURL||i.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":i.serializeInteger(this._url.port)}set port(e){i.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:i.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")}set pathname(e){this._url.cannotBeABaseURL||(this._url.path=[],i.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query}set search(e){let t=this._url;if(""===e){t.query=null;return}let a="?"===e[0]?e.substring(1):e;t.query="",i.basicURLParse(a,{url:t,stateOverride:"query"})}get hash(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment}set hash(e){if(""===e){this._url.fragment=null;return}let t="#"===e[0]?e.substring(1):e;this._url.fragment="",i.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},76447(e,t,a){let i=a(36151),n=a(4887),r=a(98706),o=n.implSymbol;function s(t){if(!this||this[o]||!(this instanceof s))throw TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");let a=[];for(let e=0;e<arguments.length&&e<2;++e)a[e]=arguments[e];a[0]=i.USVString(a[0]),void 0!==a[1]&&(a[1]=i.USVString(a[1])),e.exports.setup(this,a)}s.prototype.toJSON=function(){if(!this||!e.exports.is(this))throw TypeError("Illegal invocation");let t=[];for(let e=0;e<arguments.length&&e<0;++e)t[e]=arguments[e];return this[o].toJSON.apply(this[o],t)},Object.defineProperty(s.prototype,"href",{get(){return this[o].href},set(e){e=i.USVString(e),this[o].href=e},enumerable:!0,configurable:!0}),s.prototype.toString=function(){if(!this||!e.exports.is(this))throw TypeError("Illegal invocation");return this.href},Object.defineProperty(s.prototype,"origin",{get(){return this[o].origin},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"protocol",{get(){return this[o].protocol},set(e){e=i.USVString(e),this[o].protocol=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"username",{get(){return this[o].username},set(e){e=i.USVString(e),this[o].username=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"password",{get(){return this[o].password},set(e){e=i.USVString(e),this[o].password=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"host",{get(){return this[o].host},set(e){e=i.USVString(e),this[o].host=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hostname",{get(){return this[o].hostname},set(e){e=i.USVString(e),this[o].hostname=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"port",{get(){return this[o].port},set(e){e=i.USVString(e),this[o].port=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"pathname",{get(){return this[o].pathname},set(e){e=i.USVString(e),this[o].pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"search",{get(){return this[o].search},set(e){e=i.USVString(e),this[o].search=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hash",{get(){return this[o].hash},set(e){e=i.USVString(e),this[o].hash=e},enumerable:!0,configurable:!0}),e.exports={is:e=>!!e&&e[o]instanceof r.implementation,create(e,t){let a=Object.create(s.prototype);return this.setup(a,e,t),a},setup(e,t,a){a||(a={}),a.wrapper=e,e[o]=new r.implementation(t,a),e[o][n.wrapperSymbol]=e},interface:s,expose:{Window:{URL:s},Worker:{URL:s}}}},44044(e,t,a){t.k=a(76447).interface,a(78323).serializeURL,a(78323).serializeURLOrigin,a(78323).basicURLParse,a(78323).setTheUsername,a(78323).setThePassword,a(78323).serializeHost,a(78323).serializeInteger,a(78323).parseURL},78323(e,t,a){let i=a(24876),n=a(23246),r={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},o=Symbol("failure");function s(e){return i.ucs2.decode(e).length}function p(e,t){let a=e[t];return isNaN(a)?void 0:String.fromCodePoint(a)}function l(e){return e>=48&&e<=57}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e){return l(e)||e>=65&&e<=70||e>=97&&e<=102}function c(e){return"."===e||"%2e"===e.toLowerCase()}function m(e){return 2===e.length&&d(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function f(e){return void 0!==r[e]}function h(e){return f(e.scheme)}function v(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t="0"+t),"%"+t}function g(e){return e<=31||e>126}let y=new Set([32,34,35,60,62,63,96,123,125]);function D(e){return g(e)||y.has(e)}let b=new Set([47,58,59,61,64,91,92,93,94,124]);function x(e){return D(e)||b.has(e)}function _(e,t){let a=String.fromCodePoint(e);if(t(e)){let e=new Buffer(a),t="";for(let a=0;a<e.length;++a)t+=v(e[a]);return t}return a}function w(e,t){if("["===e[0])return"]"!==e[e.length-1]?o:function(e){let t=[0,0,0,0,0,0,0,0],a=0,n=null,r=0;if(58===(e=i.ucs2.decode(e))[r]){if(58!==e[r+1])return o;r+=2,n=++a}for(;r<e.length;){if(8===a)return o;if(58===e[r]){if(null!==n)return o;++r,n=++a;continue}let i=0,s=0;for(;s<4&&u(e[r]);)i=16*i+parseInt(p(e,r),16),++r,++s;if(46===e[r]){if(0===s||(r-=s,a>6))return o;let i=0;for(;void 0!==e[r];){let n=null;if(i>0)if(46!==e[r]||!(i<4))return o;else++r;if(!l(e[r]))return o;for(;l(e[r]);){let t=parseInt(p(e,r));if(null===n)n=t;else{if(0===n)return o;n=10*n+t}if(n>255)return o;++r}t[a]=256*t[a]+n,(2==++i||4===i)&&++a}if(4!==i)return o;break}if(58===e[r]){if(void 0===e[++r])return o}else if(void 0!==e[r])return o;t[a]=i,++a}if(null!==n){let e=a-n;for(a=7;0!==a&&e>0;){let i=t[n+e-1];t[n+e-1]=t[a],t[a]=i,--a,--e}}else if(null===n&&8!==a)return o;return t}(e.substring(1,e.length-1));if(!t){var a=e;if(-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return o;let t="",n=i.ucs2.decode(a);for(let e=0;e<n.length;++e)t+=_(n[e],g);return t}let r=function(e){let t=new Buffer(e),a=[];for(let e=0;e<t.length;++e)37!==t[e]?a.push(t[e]):37===t[e]&&u(t[e+1])&&u(t[e+2])?(a.push(parseInt(t.slice(e+1,e+3).toString(),16)),e+=2):a.push(t[e]);return new Buffer(a).toString()}(e),s=n.toASCII(r,!1,n.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(null===s||-1!==s.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return o;let d=function(e){let t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return e;let a=[];for(let i of t){if(""===i)return e;let t=function(e){let t=10;return(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)?0:(10===t?/[^0-9]/:16===t?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?o:parseInt(e,t)}(i);if(t===o)return e;a.push(t)}for(let e=0;e<a.length-1;++e)if(a[e]>255)return o;if(a[a.length-1]>=Math.pow(256,5-a.length))return o;let i=a.pop(),n=0;for(let e of a)i+=e*Math.pow(256,3-n),++n;return i}(s);return"number"==typeof d||d===o?d:s}function E(e){if("number"==typeof e){let t="",a=e;for(let e=1;e<=4;++e)t=String(a%256)+t,4!==e&&(t="."+t),a=Math.floor(a/256);return t}return e instanceof Array?"["+function(e){let t="",a=function(e){let t=null,a=1,i=null,n=0;for(let r=0;r<e.length;++r)0!==e[r]?(n>a&&(t=i,a=n),i=null,n=0):(null===i&&(i=r),++n);return n>a&&(t=i,a=n),{idx:t,len:a}}(e).idx,i=!1;for(let n=0;n<=7;++n)if(!i||0!==e[n]){if(i&&(i=!1),a===n){t+=0===n?"::":":",i=!0;continue}t+=e[n].toString(16),7!==n&&(t+=":")}return t}(e)+"]":e}function F(e){var t;let a=e.path;0===a.length||"file"===e.scheme&&1===a.length&&(t=a[0],/^[A-Za-z]:$/.test(t))||a.pop()}function C(e){return""!==e.username||""!==e.password}function A(e,t,a,n,r){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=a||"utf-8",this.stateOverride=r,this.url=n,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};let e=this.input.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"");e!==this.input&&(this.parseError=!0),this.input=e}let s=this.input.replace(/\u0009|\u000A|\u000D/g,"");for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=r||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=i.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){let e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,t);if(a){if(a===o){this.failure=!0;break}}else break}}A.prototype["parse scheme start"]=function(e,t){if(d(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,o;this.state="no scheme",--this.pointer}return!0},A.prototype["parse scheme"]=function(e,t){if(d(e)||l(e)||43===e||45===e||46===e)this.buffer+=t.toLowerCase();else if(58===e){if(this.stateOverride&&(h(this.url)&&!f(this.buffer)||!h(this.url)&&f(this.buffer)||(C(this.url)||null!==this.url.port)&&"file"===this.buffer||"file"===this.url.scheme&&(""===this.url.host||null===this.url.host))||(this.url.scheme=this.buffer,this.buffer="",this.stateOverride))return!1;"file"===this.url.scheme?((47!==this.input[this.pointer+1]||47!==this.input[this.pointer+2])&&(this.parseError=!0),this.state="file"):h(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":h(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,o;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},A.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?o:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):("file"===this.base.scheme?this.state="file":this.state="relative",--this.pointer),!0)},A.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},A.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},A.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):h(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},A.prototype["parse relative slash"]=function(e){return h(this.url)&&(47===e||92===e)?(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"):47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer),!0},A.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},A.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},A.prototype["parse authority"]=function(e,t){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;let e=s(this.buffer);for(let t=0;t<e;++t){let e=this.buffer.codePointAt(t);if(58===e&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}let a=_(e,x);this.passwordTokenSeenFlag?this.url.password+=a:this.url.username+=a}this.buffer=""}else if(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e){if(this.atFlag&&""===this.buffer)return this.parseError=!0,o;this.pointer-=s(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},A.prototype["parse hostname"]=A.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(58!==e||this.arrFlag)if(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e){if(--this.pointer,h(this.url)&&""===this.buffer)return this.parseError=!0,o;if(this.stateOverride&&""===this.buffer&&(C(this.url)||null!==this.url.port))return this.parseError=!0,!1;let e=w(this.buffer,h(this.url));if(e===o)return o;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else 91===e?this.arrFlag=!0:93===e&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,o;let e=w(this.buffer,h(this.url));if(e===o)return o;if(this.url.host=e,this.buffer="",this.state="port","hostname"===this.stateOverride)return!1}return!0},A.prototype["parse port"]=function(e,t){if(l(e))this.buffer+=t;else{if(!(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e)&&!this.stateOverride)return this.parseError=!0,o;if(""!==this.buffer){let e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,o;this.url.port=e===r[this.url.scheme]?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};let T=new Set([47,92,63,35]);A.prototype["parse file"]=function(e){if(this.url.scheme="file",47===e||92===e)92===e&&(this.parseError=!0),this.state="file slash";else if(null!==this.base&&"file"===this.base.scheme)if(isNaN(e))this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query;else if(63===e)this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query";else if(35===e)this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else{var t;this.input.length-this.pointer-1!=0&&(t=this.input[this.pointer+1],d(e)&&(58===t||124===t))&&(!(this.input.length-this.pointer-1>=2)||T.has(this.input[this.pointer+2]))?this.parseError=!0:(this.url.host=this.base.host,this.url.path=this.base.path.slice(),F(this.url)),this.state="path",--this.pointer}else this.state="path",--this.pointer;return!0},A.prototype["parse file slash"]=function(e){if(47===e||92===e)92===e&&(this.parseError=!0),this.state="file host";else{if(null!==this.base&&"file"===this.base.scheme){var t;2===(t=this.base.path[0]).length&&d(t.codePointAt(0))&&":"===t[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host}this.state="path",--this.pointer}return!0},A.prototype["parse file host"]=function(e,t){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&m(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=w(this.buffer,h(this.url));if(e===o)return o;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},A.prototype["parse path start"]=function(e){return h(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},A.prototype["parse path"]=function(e){if(isNaN(e)||47===e||h(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){var t;if((h(this.url)&&92===e&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t)?(F(this.url),47===e||h(this.url)&&92===e||this.url.path.push("")):c(this.buffer)&&47!==e&&!(h(this.url)&&92===e)?this.url.path.push(""):c(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&m(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=_(e,D);return!0},A.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+_(e,g))),!0},A.prototype["parse query"]=function(e,t){if(isNaN(e)||!this.stateOverride&&35===e){h(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");let t=new Buffer(this.buffer);for(let e=0;e<t.length;++e)t[e]<33||t[e]>126||34===t[e]||35===t[e]||60===t[e]||62===t[e]?this.url.query+=v(t[e]):this.url.query+=String.fromCodePoint(t[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t;return!0},A.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=_(e,g))),!0},e.exports.serializeURL=function(e,t){let a=e.scheme+":";if(null!==e.host?(a+="//",(""!==e.username||""!==e.password)&&(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=E(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(let t of e.path)a+="/"+t;return null!==e.query&&(a+="?"+e.query),t||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":var a;let i;return i=(a={scheme:t.scheme,host:t.host,port:t.port}).scheme+"://"+E(a.host),null!==a.port&&(i+=":"+a.port),i;case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});let a=new A(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,t){e.username="";let a=i.ucs2.decode(t);for(let t=0;t<a.length;++t)e.username+=_(a[t],x)},e.exports.setThePassword=function(e,t){e.password="";let a=i.ucs2.decode(t);for(let t=0;t<a.length;++t)e.password+=_(a[t],x)},e.exports.serializeHost=E,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||e.cannotBeABaseURL||"file"===e.scheme},e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,a){return void 0===a&&(a={}),e.exports.basicURLParse(t,{baseURL:a.baseURL,encodingOverride:a.encodingOverride})}},4887(e){e.exports.wrapperSymbol=Symbol("wrapper"),e.exports.implSymbol=Symbol("impl")},36151(e){var t={};function a(e,t){!t.unsigned&&--e;let a=t.unsigned?0:-Math.pow(2,e),i=Math.pow(2,e)-1,n=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e),r=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,o){o||(o={});let s=+e;if(o.enforceRange){if(!Number.isFinite(s))throw TypeError("Argument is not a finite number");if((s=(s<0?-1:1)*Math.floor(Math.abs(s)))<a||s>i)throw TypeError("Argument is not in byte range");return s}if(!isNaN(s)&&o.clamp){var p;return(s=(p=s)%1==.5&&(1&p)==0?Math.floor(p):Math.round(p))<a&&(s=a),s>i&&(s=i),s}if(!Number.isFinite(s)||0===s)return 0;if(s=(s<0?-1:1)*Math.floor(Math.abs(s))%n,!t.unsigned&&s>=r)return s-n;if(t.unsigned){if(s<0)s+=n;else if(-0===s)return 0}return s}}e.exports=t,t.void=function(){},t.boolean=function(e){return!!e},t.byte=a(8,{unsigned:!1}),t.octet=a(8,{unsigned:!0}),t.short=a(16,{unsigned:!1}),t["unsigned short"]=a(16,{unsigned:!0}),t.long=a(32,{unsigned:!1}),t["unsigned long"]=a(32,{unsigned:!0}),t["long long"]=a(32,{unsigned:!1,moduloBitLength:64}),t["unsigned long long"]=a(32,{unsigned:!0,moduloBitLength:64}),t.double=function(e){let t=+e;if(!Number.isFinite(t))throw TypeError("Argument is not a finite floating-point value");return t},t["unrestricted double"]=function(e){let t=+e;if(isNaN(t))throw TypeError("Argument is NaN");return t},t.float=t.double,t["unrestricted float"]=t["unrestricted double"],t.DOMString=function(e,t){return(t||(t={}),t.treatNullAsEmptyString&&null===e)?"":String(e)},t.ByteString=function(e,t){let a,i=String(e);for(let e=0;void 0!==(a=i.codePointAt(e));++e)if(a>255)throw TypeError("Argument is not a valid bytestring");return i},t.USVString=function(e){let t=String(e),a=t.length,i=[];for(let e=0;e<a;++e){let n=t.charCodeAt(e);if(n<55296||n>57343)i.push(String.fromCodePoint(n));else if(56320<=n&&n<=57343)i.push(String.fromCodePoint(65533));else if(e===a-1)i.push(String.fromCodePoint(65533));else{let a=t.charCodeAt(e+1);if(56320<=a&&a<=57343){let t=1023&n,r=1023&a;i.push(String.fromCodePoint(65536+1024*t+r)),++e}else i.push(String.fromCodePoint(65533))}}return i.join("")},t.Date=function(e,t){if(!(e instanceof Date))throw TypeError("Argument is not a Date object");if(!isNaN(e))return e},t.RegExp=function(e,t){return e instanceof RegExp||(e=new RegExp(e)),e}},84361(e){e.exports=import("ws").then(function(e){return e})},42613(e){e.exports=t("assert")},20181(e){e.exports=t("buffer")},35317(e){e.exports=t("child_process")},76982(e){e.exports=t("crypto")},24434(e){e.exports=t("events")},79896(e){e.exports=t("fs")},58611(e){e.exports=t("http")},65692(e){e.exports=t("https")},69278(e){e.exports=t("net")},31421(e){e.exports=t("node:child_process")},77598(e){e.exports=t("node:crypto")},41314(e){e.exports=t("node:dgram")},40610(e){e.exports=t("node:dns")},78474(e){e.exports=t("node:events")},73024(e){e.exports=t("node:fs")},51455(e){e.exports=t("node:fs/promises")},37067(e){e.exports=t("node:http")},44708(e){e.exports=t("node:https")},77030(e){e.exports=t("node:net")},48161(e){e.exports=t("node:os")},76760(e){e.exports=t("node:path")},1708(e){e.exports=t("node:process")},7066(e){e.exports=t("node:tty")},57975(e){e.exports=t("node:util")},70857(e){e.exports=t("os")},16928(e){e.exports=t("path")},24876(e){e.exports=t("punycode")},2203(e){e.exports=t("stream")},13193(e){e.exports=t("string_decoder")},64756(e){e.exports=t("tls")},52018(e){e.exports=t("tty")},87016(e){e.exports=t("url")},39023(e){e.exports=t("util")},43106(e){e.exports=t("zlib")},54506(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var i,n=a(85608),r=a(70916),o=a(4232),s=a(28876),p=a(55888),l=a(5437),d=a(94037),u=a(53570),c=a(60837),m=a(44592),f=a(39283),h=a(36869),v=a(25979),g=a(19371),y=a(94370),D=p&&"object"==typeof p&&"default"in p?p.default:p;function b(e){return null!==e&&"object"==typeof e}var x=Object.prototype.hasOwnProperty,_=function(e,t,a){return this.merge(e[a],t[a])},w=function(){function e(e){void 0===e&&(e=_),this.reconciler=e,this.isObject=b,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var a=this,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return b(t)&&b(e)?(Object.keys(t).forEach(function(r){if(x.call(e,r)){var o=e[r];if(t[r]!==o){var s=a.reconciler.apply(a,n.__spreadArray([e,t,r],i,!1));s!==o&&((e=a.shallowCopyForMerge(e))[r]=s)}}else(e=a.shallowCopyForMerge(e))[r]=t[r]}),e):t},e.prototype.shallowCopyForMerge=function(e){return b(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):n.__assign({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function E(e){return!!e&&e<7}function F(e){return!!e.directives&&e.directives.some(C)}function C(e){return"nonreactive"===e.name.value}t.NetworkStatus=void 0,(i=t.NetworkStatus||(t.NetworkStatus={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error";var A=Object.assign,T=Object.hasOwnProperty,S=function(e){function a(t){var i=t.queryManager,r=t.queryInfo,o=t.options,s=this,p=a.inactiveOnCreation.getValue();(s=e.call(this,function(e){p&&(i.queries.set(s.queryId,r),p=!1);try{var t=e._subscription._observer;t&&!t.error&&(t.error=O)}catch(e){}var a=!s.observers.size;s.observers.add(e);var n=s.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(s.maskResult(n.result)),a&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s.queryInfo=r,s.queryManager=i,s.waitForOwnResult=k(o.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var d=i.defaultOptions.watchQuery,u=(void 0===d?{}:d).fetchPolicy,c=void 0===u?"cache-first":u,m=o.fetchPolicy,f=void 0===m?c:m,h=o.initialFetchPolicy,v=void 0===h?"standby"===f?c:f:h;s.options=n.__assign(n.__assign({},o),{initialFetchPolicy:v,fetchPolicy:f}),s.queryId=r.queryId||i.generateQueryId();var g=l.getOperationDefinition(s.query);return s.queryName=g&&g.name&&g.name.value,s}return n.__extends(a,e),Object.defineProperty(a.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),a.prototype.result=function(){var e=this;return new Promise(function(t,a){var i={next:function(a){t(a),e.observers.delete(i),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){n.unsubscribe()},0)},error:a},n=e.subscribe(i)})},a.prototype.resetDiff=function(){this.queryInfo.resetDiff()},a.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var a=this.getLastResult(!0),i=this.queryInfo.networkStatus||a&&a.networkStatus||t.NetworkStatus.ready,r=n.__assign(n.__assign({},a),{loading:E(i),networkStatus:i}),o=this.options.fetchPolicy,s=void 0===o?"cache-first":o;if(k(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(r.data=l.result),p.equal(r.data,{})&&(r.data=void 0),l.complete?(delete r.partial,l.complete&&r.networkStatus===t.NetworkStatus.loading&&("cache-first"===s||"cache-only"===s)&&(r.networkStatus=t.NetworkStatus.ready,r.loading=!1)):r.partial=!0,r.networkStatus===t.NetworkStatus.ready&&(r.error||r.errors)&&(r.networkStatus=t.NetworkStatus.error),!1===globalThis.__DEV__||l.complete||this.options.partialRefetch||r.loading||r.data||r.error||N(l.missing)}return e&&this.updateLastResult(r),r},a.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},a.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var a,i,r,o,s,d=this.queryManager.getDocumentInfo(this.query),u=this.queryManager.dataMasking,c=u?d.nonReactiveQuery:this.query;return(u||d.hasNonreactiveDirective?(a=this.last.result,i=this.variables,r=a.data,o=n.__rest(a,["data"]),s=e.data,!(D(o,n.__rest(e,["data"]))&&function e(t,a,i,n){if(a===i)return!0;var r=new Set;return t.selections.every(function(t){if(r.has(t)||(r.add(t),!l.shouldInclude(t,n.variables)||F(t)))return!0;if(l.isField(t)){var o=l.resultKeyNameFromField(t),s=a&&a[o],p=i&&i[o],d=t.selectionSet;if(!d)return D(s,p);var u=Array.isArray(s),c=Array.isArray(p);if(u!==c)return!1;if(u&&c){var m=s.length;if(p.length!==m)return!1;for(var f=0;f<m;++f)if(!e(d,s[f],p[f],n))return!1;return!0}return e(d,s,p,n)}var h=l.getFragmentFromSelection(t,n.fragmentMap);if(h)return!!F(h)||e(h.selectionSet,a,i,n)})}(l.getMainDefinition(c).selectionSet,r,s,{fragmentMap:l.createFragmentMap(l.getFragmentDefinitions(c)),variables:i}))):!p.equal(this.last.result,e))||t&&!p.equal(this.last.variables,t)},a.prototype.getLast=function(e,t){var a=this.last;if(a&&a[e]&&(!t||p.equal(a.variables,this.variables)))return a[e]},a.prototype.getLastResult=function(e){return this.getLast("result",e)},a.prototype.getLastError=function(e){return this.getLast("error",e)},a.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},a.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},a.prototype.refetch=function(e){var a,i={pollInterval:0};if("no-cache"===this.options.fetchPolicy?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&T.call(e,"variables")){var o=l.getQueryDefinition(this.query),s=o.variableDefinitions;s&&s.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||r.invariant.warn(21,e,(null==(a=o.name)?void 0:a.value)||o)}return e&&!p.equal(this.options.variables,e)&&(i.variables=this.options.variables=n.__assign(n.__assign({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(i,t.NetworkStatus.refetch)},a.prototype.fetchMore=function(e){var a=this,i=n.__assign(n.__assign({},e.query?e:n.__assign(n.__assign(n.__assign(n.__assign({},this.options),{query:this.options.query}),e),{variables:n.__assign(n.__assign({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):i.query;var s=this.queryInfo,p=s.networkStatus;s.networkStatus=t.NetworkStatus.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set,d=null==e?void 0:e.updateQuery,u="no-cache"!==this.options.fetchPolicy;return u||r.invariant(d,22),this.queryManager.fetchQuery(o,i,t.NetworkStatus.fetchMore).then(function(r){if(a.queryManager.removeQuery(o),s.networkStatus===t.NetworkStatus.fetchMore&&(s.networkStatus=p),u)a.queryManager.cache.batch({update:function(t){var n=e.updateQuery;n?t.updateQuery({query:a.query,variables:a.variables,returnPartialData:!0,optimistic:!1},function(e){return n(e,{fetchMoreResult:r.data,variables:i.variables})}):t.writeQuery({query:i.query,variables:i.variables,data:r.data})},onWatchUpdated:function(e){l.add(e.query)}});else{var c=a.getLast("result"),m=d(c.data,{fetchMoreResult:r.data,variables:i.variables});a.reportResult(n.__assign(n.__assign({},c),{networkStatus:p,loading:E(p),data:m}),a.variables)}return a.maskResult(r)}).finally(function(){u&&!l.has(a.query)&&a.reobserveCacheFirst()})},a.prototype.subscribeToMore=function(e){var t=this,a=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(a){var i=e.updateQuery;i&&t.updateQuery(function(e,t){return i(e,n.__assign({subscriptionData:a},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&r.invariant.error(23,t)}});return this.subscriptions.add(a),function(){t.subscriptions.delete(a)&&a.unsubscribe()}},a.prototype.setOptions=function(e){return this.reobserve(e)},a.prototype.silentSetOptions=function(e){var t=l.compact(this.options,e||{});A(this.options,t)},a.prototype.setVariables=function(e){return p.equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},t.NetworkStatus.setVariables):Promise.resolve()},a.prototype.updateQuery=function(e){var t=this.queryManager,a=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),i=a.result,n=a.complete,r=e(i,{variables:this.variables,complete:!!n,previousData:i});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},a.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},a.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},a.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var a=t.fetchPolicy,i=void 0===a?"cache-first":a,n=t.initialFetchPolicy,r=void 0===n?i:n;"standby"===i||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(i,{reason:e,options:t,observable:this,initialFetchPolicy:r}):"variables-changed"===e?t.fetchPolicy=r:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},a.prototype.fetch=function(e,t,a){var i=this.queryManager.getOrCreateQuery(this.queryId);return i.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(i,e,t,a)},a.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var a=this.pollingInfo,i=this.options.pollInterval;if(!i||!this.hasObservers()){a&&(clearTimeout(a.timeout),delete this.pollingInfo);return}if(!a||a.interval!==i){r.invariant(i,24),(a||(this.pollingInfo={})).interval=i;var n=function(){var a,i;e.pollingInfo&&(E(e.queryInfo.networkStatus)||(null==(i=(a=e.options).skipPollAttempt)?void 0:i.call(a))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},t.NetworkStatus.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},a.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var a=this.getLastError();return a&&this.last&&!p.equal(t,this.last.variables)&&(a=void 0),this.last=n.__assign({result:this.queryManager.assumeImmutableResults?e:l.cloneDeep(e),variables:t},a?{error:a}:null)},a.prototype.reobserveAsConcast=function(e,a){var i=this;this.isTornDown=!1;var r=a===t.NetworkStatus.refetch||a===t.NetworkStatus.fetchMore||a===t.NetworkStatus.poll,o=this.options.variables,s=this.options.fetchPolicy,d=l.compact(this.options,e||{}),c=r?d:A(this.options,d),m=this.transformDocument(c.query);this.lastQuery=m,!r&&(this.updatePolling(),e&&e.variables&&!p.equal(e.variables,o)&&"standby"!==c.fetchPolicy&&(c.fetchPolicy===s||"function"==typeof c.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",c),void 0===a&&(a=t.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=k(c.fetchPolicy));var f=function(){i.concast===g&&(i.waitForOwnResult=!1)},h=c.variables&&n.__assign({},c.variables),v=this.fetch(c,a,m),g=v.concast,y=v.fromLink,D={next:function(e){p.equal(i.variables,h)&&(f(),i.reportResult(e,h))},error:function(e){p.equal(i.variables,h)&&(u.isApolloError(e)||(e=new u.ApolloError({networkError:e})),f(),i.reportError(e,h))}};return r||!y&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=g,this.observer=D),g.addObserver(D),g},a.prototype.reobserve=function(e,t){return l.preventUnhandledRejection(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},a.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var a=this.last;this.resetLastResults();var i=this.subscribe.apply(this,e);return this.last=a,i},a.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},a.prototype.reportResult=function(e,t){var a=this.getLastError(),i=this.isDifferentFromLastResult(e,t);(a||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(a||i)&&l.iterateObserversSafely(this.observers,"next",this.maskResult(e))},a.prototype.reportError=function(e,a){var i=n.__assign(n.__assign({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:t.NetworkStatus.error,loading:!1});this.updateLastResult(i,a),l.iterateObserversSafely(this.observers,"error",this.last.error=e)},a.prototype.hasObservers=function(){return this.observers.size>0},a.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},a.prototype.transformDocument=function(e){return this.queryManager.transform(e)},a.prototype.maskResult=function(e){return e&&"data"in e?n.__assign(n.__assign({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},a.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},a.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},a.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},a.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!E(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},a.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,a=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,i){return(this.nextFetchPolicy=a,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,i):t}}):this.reobserve()},a.inactiveOnCreation=new c.Slot,a}(l.Observable);function O(e){!1!==globalThis.__DEV__&&r.invariant.error(25,e.message,e.stack)}function N(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&r.invariant.debug(26,e)}function k(e){return"network-only"===e||"no-cache"===e||"standby"===e}l.fixObservableSubclass(S);var I=new(l.canUseWeakMap?WeakMap:Map);function $(e,t){var a=e[t];"function"==typeof a&&(e[t]=function(){return I.set(e,(I.get(e)+1)%1e15),a.apply(this,arguments)})}var j=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var a=this.cache=e.cache;I.has(a)||(I.set(a,0),$(a,"evict"),$(a,"modify"),$(a,"reset"))}return e.prototype.init=function(e){var a=e.networkStatus||t.NetworkStatus.loading;return this.variables&&this.networkStatus!==t.NetworkStatus.loading&&!p.equal(this.variables,e.variables)&&(a=t.NetworkStatus.setVariables),p.equal(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:a}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&p.equal(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var a=this.cache.diff(e);return this.updateLastDiff(a,e),a},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,a,i=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),p.equal(i&&i.result,e&&e.result)||null==(a=this.observableQuery)||a.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var a=this.observableQuery;if(!a||"no-cache"!==a.options.fetchPolicy){var i=n.__assign(n.__assign({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&p.equal(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var a=this.lastWrite;return!(a&&a.dmCount===I.get(this.cache)&&p.equal(t,a.variables)&&p.equal(e.data,a.result.data))},e.prototype.markResult=function(e,t,a,i){var n,r=this,o=new l.DeepMerger,s=l.isNonEmptyArray(e.errors)?e.errors.slice(0):[];if(null==(n=this.observableQuery)||n.resetNotifications(),"incremental"in e&&l.isNonEmptyArray(e.incremental)){var d=l.mergeIncrementalData(this.getDiff().result,e);e.data=d}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=s,"no-cache"===a.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(a.variables)):0!==i&&(B(e,a.errorPolicy)?this.cache.performTransaction(function(n){if(r.shouldWrite(e,a.variables))n.writeQuery({query:t,data:e.data,variables:a.variables,overwrite:1===i}),r.lastWrite={result:e,variables:a.variables,dmCount:I.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete){e.data=r.lastDiff.diff.result;return}var o=r.getDiffOptions(a.variables),s=n.diff(o);!r.stopped&&p.equal(r.variables,a.variables)&&r.updateWatch(a.variables),r.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=t.NetworkStatus.ready},e.prototype.markError=function(e){var a;return this.networkStatus=t.NetworkStatus.error,this.lastWrite=void 0,null==(a=this.observableQuery)||a.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function B(e,t){void 0===t&&(t="none");var a="ignore"===t||"all"===t,i=!l.graphQLResultHasError(e);return!i&&a&&e.data&&(i=!0),i}var R=Object.prototype.hasOwnProperty,V=Object.create(null),P=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new l.AutoCleanedWeakCache(l.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new m.Trie(!1),this.noCacheWarningsByQueryId=new Set;var a=new l.DocumentTransform(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var i=e.documentTransform;this.documentTransform=i?a.concat(i).concat(a):a,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,a){e.stopQueryNoBroadcast(a)}),this.cancelPendingFetches(r.newInvariantError(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return n.__awaiter(this,arguments,void 0,function(e){var t,a,i,o,s,p,d,c=e.mutation,m=e.variables,f=e.optimisticResponse,h=e.updateQueries,v=e.refetchQueries,g=void 0===v?[]:v,y=e.awaitRefetchQueries,D=void 0!==y&&y,b=e.update,x=e.onQueryUpdated,_=e.fetchPolicy,w=void 0===_?(null==(p=this.defaultOptions.mutate)?void 0:p.fetchPolicy)||"network-only":_,E=e.errorPolicy,F=void 0===E?(null==(d=this.defaultOptions.mutate)?void 0:d.errorPolicy)||"none":E,C=e.keepRootFields,A=e.context;return n.__generator(this,function(e){switch(e.label){case 0:if(r.invariant(c,28),r.invariant("network-only"===w||"no-cache"===w,29),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),a=this.getDocumentInfo(c).hasClientExports,m=this.getVariables(c,m),!a)return[3,2];return[4,this.localState.addExportedVariables(c,m,A)];case 1:m=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:m,loading:!0,error:null}),o=f&&this.markMutationOptimistic(f,{mutationId:t,document:c,variables:m,fetchPolicy:w,errorPolicy:F,context:A,updateQueries:h,update:b,keepRootFields:C}),this.broadcastQueries(),s=this,[2,new Promise(function(e,a){return l.asyncMap(s.getObservableFromLink(c,n.__assign(n.__assign({},A),{optimisticResponse:o?f:void 0}),m,{},!1),function(e){if(l.graphQLResultHasError(e)&&"none"===F)throw new u.ApolloError({graphQLErrors:l.getGraphQLErrorsFromResult(e)});i&&(i.loading=!1,i.error=null);var a=n.__assign({},e);return"function"==typeof g&&(g=g(a)),"ignore"===F&&l.graphQLResultHasError(a)&&delete a.errors,s.markMutationResult({mutationId:t,result:a,document:c,variables:m,fetchPolicy:w,errorPolicy:F,context:A,update:b,updateQueries:h,awaitRefetchQueries:D,refetchQueries:g,removeOptimistic:o?t:void 0,onQueryUpdated:x,keepRootFields:C})}).subscribe({next:function(a){s.broadcastQueries(),"hasNext"in a&&!1!==a.hasNext||e(n.__assign(n.__assign({},a),{data:s.maskOperation({document:c,data:a.data,fetchPolicy:w,id:t})}))},error:function(e){i&&(i.loading=!1,i.error=e),o&&s.cache.removeOptimistic(t),s.broadcastQueries(),a(e instanceof u.ApolloError?e:new u.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var a=this;void 0===t&&(t=this.cache);var i=e.result,r=[],o="no-cache"===e.fetchPolicy;if(!o&&B(i,e.errorPolicy)){if(l.isExecutionPatchIncrementalResult(i)||r.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),l.isExecutionPatchIncrementalResult(i)&&l.isNonEmptyArray(i.incremental)){var s,p,d,u,c,m=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),f=void 0;m.result&&(s=m.result,p=i,u=s,c=new w,"incremental"in p&&Array.isArray(d=p.incremental)&&d.length>0&&p.incremental.forEach(function(e){for(var t=e.data,a=e.path,i=a.length-1;i>=0;--i){var n=a[i],r=isNaN(+n)?{}:[];r[n]=t,t=r}u=c.merge(u,t)}),f=u),void 0!==f&&(i.data=f,r.push({result:f,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var h=e.updateQueries;h&&this.queries.forEach(function(e,n){var o=e.observableQuery,s=o&&o.queryName;if(s&&R.call(h,s)){var p=h[s],d=a.queries.get(n),u=d.document,c=d.variables,m=t.diff({query:u,variables:c,returnPartialData:!0,optimistic:!1}),f=m.result;if(m.complete&&f){var v=p(f,{mutationResult:i,queryName:u&&l.getOperationName(u)||void 0,queryVariables:c});v&&r.push({result:v,dataId:"ROOT_QUERY",query:u,variables:c})}}})}if(r.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var v=[];if(this.refetchQueries({updateCache:function(t){o||r.forEach(function(e){return t.write(e)});var s=e.update,p=!l.isExecutionPatchResult(i)||l.isExecutionPatchIncrementalResult(i)&&!i.hasNext;if(s){if(!o){var d=t.diff({id:"ROOT_MUTATION",query:a.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});d.complete&&("incremental"in(i=n.__assign(n.__assign({},i),{data:d.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}p&&s(t,i,{context:e.context,variables:e.variables})}o||e.keepRootFields||!p||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var a=t.fieldName,i=t.DELETE;return"__typename"===a?e:i}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return v.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(v).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var a=this,i="function"==typeof e?e(t.variables,{IGNORE:V}):e;return i!==V&&(this.cache.recordOptimisticTransaction(function(e){try{a.markMutationResult(n.__assign(n.__assign({},t),{result:{data:i}}),e)}catch(e){!1!==globalThis.__DEV__&&r.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,a){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,a).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,a){e[a]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var a={hasClientExports:l.hasClientExports(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:l.hasDirectives(["nonreactive"],e),nonReactiveQuery:l.addNonReactiveToNamedFragments(e),clientQuery:this.localState.clientQuery(e),serverQuery:l.removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:l.getDefaultValues(l.getOperationDefinition(e)),asQuery:n.__assign(n.__assign({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?n.__assign(n.__assign({},e),{operation:"query"}):e})})};t.set(e,a)}return t.get(e)},e.prototype.getVariables=function(e,t){return n.__assign(n.__assign({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=n.__assign(n.__assign({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var a=new j(this),i=new S({queryManager:this,queryInfo:a,options:e});return i.lastQuery=t,S.inactiveOnCreation.getValue()||this.queries.set(i.queryId,a),a.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var a=this;void 0===t&&(t=this.generateQueryId()),r.invariant(e.query,30),r.invariant("Document"===e.query.kind,31),r.invariant(!e.returnPartialData,32),r.invariant(!e.pollInterval,33);var i=this.transform(e.query);return this.fetchQuery(t,n.__assign(n.__assign({},e),{query:i})).then(function(r){return r&&n.__assign(n.__assign({},r),{data:a.maskOperation({document:i,data:r.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return a.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(r.newInvariantError(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=t.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var a=new Map,i=new Map,o=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)i.set(e,e),o.set(e,!1);else if(l.isDocumentNode(e)){var a=l.print(t.transform(e));i.set(a,l.getOperationName(e)),o.set(a,!1)}else l.isNonNullObject(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,i){var n=t.observableQuery,r=t.document;if(n){if("all"===e)return void a.set(i,n);var s=n.queryName;if("standby"===n.options.fetchPolicy||"active"===e&&!n.hasObservers())return;("active"===e||s&&o.has(s)||r&&o.has(l.print(r)))&&(a.set(i,n),s&&o.set(s,!0),r&&o.set(l.print(r),!0))}}),s.size&&s.forEach(function(e){var i=l.makeUniqueId("legacyOneTimeQuery"),o=t.getOrCreateQuery(i).init({document:e.query,variables:e.variables}),s=new S({queryManager:t,queryInfo:o,options:n.__assign(n.__assign({},e),{fetchPolicy:"network-only"})});r.invariant(s.queryId===i),o.setObservableQuery(s),a.set(i,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){if(!e){var a=i.get(t);a?!1!==globalThis.__DEV__&&r.invariant.warn(35,a):!1!==globalThis.__DEV__&&r.invariant.warn(36)}}),a},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var a=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,n){var r=i.options.fetchPolicy;i.resetLastResults(),(e||"standby"!==r&&"cache-only"!==r)&&a.push(i.refetch()),(t.queries.get(n)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(a)},e.prototype.startGraphQLSubscription=function(e){var t=this,a=e.query,i=e.variables,n=e.fetchPolicy,r=e.errorPolicy,o=void 0===r?"none":r,s=e.context,p=void 0===s?{}:s,d=e.extensions,c=void 0===d?{}:d;a=this.transform(a),i=this.getVariables(a,i);var m=function(e){return t.getObservableFromLink(a,p,e,c).map(function(i){"no-cache"!==n&&(B(i,o)&&t.cache.write({query:a,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var r=l.graphQLResultHasError(i),s=u.graphQLResultHasProtocolErrors(i);if(r||s){var p={};if(r&&(p.graphQLErrors=i.errors),s&&(p.protocolErrors=i.extensions[u.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new u.ApolloError(p)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(a).hasClientExports){var f=this.localState.addExportedVariables(a,i,p).then(m);return new l.Observable(function(e){var t=null;return f.then(function(a){return t=a.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return m(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,a,i,r){var s,p,u=this;void 0===r&&(r=null!=(s=null==t?void 0:t.queryDeduplication)?s:this.queryDeduplication);var c=this.getDocumentInfo(e),m=c.serverQuery,f=c.clientQuery;if(m){var h=this.inFlightLinkObservables,v=this.link,g={query:m,variables:a,operationName:l.getOperationName(m)||void 0,context:this.prepareContext(n.__assign(n.__assign({},t),{forceFetch:!r})),extensions:i};if(t=g.context,r){var y=l.print(m),D=d.canonicalStringify(a),b=h.lookup(y,D);if(!(p=b.observable)){var x=new l.Concast([o.execute(v,g)]);p=b.observable=x,x.beforeNext(function e(t,a){"next"===t&&"hasNext"in a&&a.hasNext?x.beforeNext(e):h.remove(y,D)})}}else p=new l.Concast([o.execute(v,g)])}else p=new l.Concast([l.Observable.of({data:{}})]),t=this.prepareContext(t);return f&&(p=l.asyncMap(p,function(e){return u.localState.runResolvers({document:f,remoteResult:e,context:t,variables:a})})),p},e.prototype.getResultsFromLink=function(e,a,i){var n=e.lastRequestId=this.generateRequestId(),r=this.cache.transformForLink(i.query);return l.asyncMap(this.getObservableFromLink(r,i.context,i.variables),function(o){var s=l.getGraphQLErrorsFromResult(o),p=s.length>0,d=i.errorPolicy;if(n>=e.lastRequestId){if(p&&"none"===d)throw e.markError(new u.ApolloError({graphQLErrors:s}));e.markResult(o,r,i,a),e.markReady()}var c={data:o.data,loading:!1,networkStatus:t.NetworkStatus.ready};return p&&"none"===d&&(c.data=void 0),p&&"ignore"!==d&&(c.errors=s,c.networkStatus=t.NetworkStatus.error),c},function(t){var a=u.isApolloError(t)?t:new u.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(a),a})},e.prototype.fetchConcastWithInfo=function(e,a,i,n){var r,o,s=this;void 0===i&&(i=t.NetworkStatus.loading),void 0===n&&(n=a.query);var p=this.getVariables(n,a.variables),d=this.defaultOptions.watchQuery,u=a.fetchPolicy,c=void 0===u?d&&d.fetchPolicy||"cache-first":u,m=a.errorPolicy,f=void 0===m?d&&d.errorPolicy||"none":m,h=a.returnPartialData,v=a.notifyOnNetworkStatusChange,g=a.context,y=Object.assign({},a,{query:n,variables:p,fetchPolicy:c,errorPolicy:f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===g?{}:g}),D=function(t){y.variables=t;var n=s.fetchQueryByPolicy(e,y,i);return"standby"!==y.fetchPolicy&&n.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",a),n},b=function(){return s.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return r.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)r=new l.Concast(this.localState.addExportedVariables(y.query,y.variables,y.context).then(D).then(function(e){return e.sources})),o=!0;else{var x=D(y.variables);o=x.fromLink,r=new l.Concast(x.sources)}return r.promise.then(b,b),{concast:r,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,a=e.updateCache,i=e.include,n=e.optimistic,r=void 0!==n&&n,o=e.removeOptimistic,s=void 0===o?r?l.makeUniqueId("refetchQueries"):void 0:o,p=e.onQueryUpdated,d=new Map;i&&this.getObservableQueries(i).forEach(function(e,a){d.set(a,{oq:e,lastDiff:(t.queries.get(a)||e.queryInfo).getDiff()})});var u=new Map;return a&&this.cache.batch({update:a,optimistic:r&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,a){var i=e.watcher instanceof j&&e.watcher.observableQuery;if(i){if(p){d.delete(i.queryId);var n=p(i,t,a);return!0===n&&(n=i.refetch()),!1!==n&&u.set(i,n),n}null!==p&&d.set(i.queryId,{oq:i,lastDiff:a,diff:t})}}}),d.size&&d.forEach(function(e,a){var i,n=e.oq,r=e.lastDiff,o=e.diff;p&&(o||(o=t.cache.diff(n.queryInfo.getDiffOptions())),i=p(n,o,r)),p&&!0!==i||(i=n.refetch()),!1!==i&&u.set(n,i),a.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(a)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t,a,i,n=e.document,o=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,p=e.id,d=null==(t=l.getOperationDefinition(n))?void 0:t.operation,u=(null!=(a=null==d?void 0:d[0])?a:"o")+p;!this.dataMasking||"no-cache"!==s||l.isFullyUnmaskedOperation(n)||this.noCacheWarningsByQueryId.has(u)||(this.noCacheWarningsByQueryId.add(u),!1!==globalThis.__DEV__&&r.invariant.warn(37,null!=(i=l.getOperationName(n))?i:"Unnamed ".concat(null!=d?d:"operation")))}return this.dataMasking?f.maskOperation(o,n,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,a=e.fragment,i=e.fragmentName;return this.dataMasking?f.maskFragment(t,a,this.cache,i):t},e.prototype.fetchQueryByPolicy=function(e,a,i){var r=this,o=a.query,s=a.variables,d=a.fetchPolicy,u=a.refetchWritePolicy,c=a.errorPolicy,m=a.returnPartialData,f=a.context,h=a.notifyOnNetworkStatusChange,v=e.networkStatus;e.init({document:o,variables:s,networkStatus:i});var g=function(){return e.getDiff()},y=function(a,i){void 0===i&&(i=e.networkStatus||t.NetworkStatus.loading);var d=a.result;!1===globalThis.__DEV__||m||p.equal(d,{})||N(a.missing);var u=function(e){return l.Observable.of(n.__assign({data:e,loading:E(i),networkStatus:i},a.complete?null:{partial:!0}))};return d&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:d},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&i===t.NetworkStatus.refetch&&Array.isArray(a.missing)?u(void 0):u(d)},D="no-cache"===d?0:i===t.NetworkStatus.refetch&&"merge"!==u?1:2,b=function(){return r.getResultsFromLink(e,D,{query:o,variables:s,context:f,fetchPolicy:d,errorPolicy:c})},x=h&&"number"==typeof v&&v!==i&&E(i);switch(d){default:case"cache-first":var _=g();if(_.complete)return{fromLink:!1,sources:[y(_,e.markReady())]};if(m||x)return{fromLink:!0,sources:[y(_),b()]};return{fromLink:!0,sources:[b()]};case"cache-and-network":var _=g();if(_.complete||m||x)return{fromLink:!0,sources:[y(_),b()]};return{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[y(g(),e.markReady())]};case"network-only":if(x)return{fromLink:!0,sources:[y(g()),b()]};return{fromLink:!0,sources:[b()]};case"no-cache":if(x)return{fromLink:!0,sources:[y(e.getDiff()),b()]};return{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new j(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return n.__assign(n.__assign(n.__assign({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),L=function(){function e(e){var t=e.cache,a=e.client,i=e.resolvers,n=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,a&&(this.client=a),i&&this.addResolvers(i),n&&this.setFragmentMatcher(n)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=l.mergeDeep(t.resolvers,e)}):this.resolvers=l.mergeDeep(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return n.__awaiter(this,arguments,void 0,function(e){var t=e.document,a=e.remoteResult,i=e.context,r=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return n.__generator(this,function(e){return t?[2,this.resolveDocument(t,a.data,i,r,this.fragmentMatcher,s).then(function(e){return n.__assign(n.__assign({},a),{data:e.result})})]:[2,a]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return l.hasDirectives(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return l.removeClientSetsFromDocument(e)},e.prototype.prepareContext=function(e){var t=this.cache;return n.__assign(n.__assign({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return n.__awaiter(this,arguments,void 0,function(e,t,a){return void 0===t&&(t={}),void 0===a&&(a={}),n.__generator(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(a),t).then(function(e){return n.__assign(n.__assign({},t),e.exportedVariables)})]:[2,n.__assign({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return h.visit(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return h.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:l.buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return n.__awaiter(this,arguments,void 0,function(e,t,a,i,r,o){var s,p,d,u,c,m,f,h,v,g;return void 0===a&&(a={}),void 0===i&&(i={}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=!1),n.__generator(this,function(y){return s=l.getMainDefinition(e),p=l.getFragmentDefinitions(e),d=l.createFragmentMap(p),u=this.collectSelectionsToResolve(s,d),m=(c=s.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=this,h=f.cache,v=f.client,g={fragmentMap:d,context:n.__assign(n.__assign({},a),{cache:h,client:v}),variables:i,fragmentMatcher:r,defaultOperationType:m,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,a,i){return n.__awaiter(this,void 0,void 0,function(){var o,s,p,d,u,c=this;return n.__generator(this,function(m){return o=i.fragmentMap,s=i.context,p=i.variables,d=[a],u=function(e){return n.__awaiter(c,void 0,void 0,function(){var u,c;return n.__generator(this,function(n){return(t||i.selectionsToResolve.has(e))&&l.shouldInclude(e,p)?l.isField(e)?[2,this.resolveField(e,t,a,i).then(function(t){var a;void 0!==t&&d.push(((a={})[l.resultKeyNameFromField(e)]=t,a))})]:(l.isInlineFragment(e)?u=e:(u=o[e.name.value],r.invariant(u,19,e.name.value)),u&&u.typeCondition&&(c=u.typeCondition.name.value,i.fragmentMatcher(a,c,s)))?[2,this.resolveSelectionSet(u.selectionSet,t,a,i).then(function(e){d.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return l.mergeDeepArray(d)})]})})},e.prototype.resolveField=function(e,t,a,i){return n.__awaiter(this,void 0,void 0,function(){var r,o,s,p,u,c,m,f,h,v=this;return n.__generator(this,function(n){return a?(r=i.variables,p=(o=e.name.value)!==(s=l.resultKeyNameFromField(e)),c=Promise.resolve(u=a[s]||a[o]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(m=a.__typename||i.defaultOperationType,(f=this.resolvers&&this.resolvers[m])&&(h=f[p?o:s])&&(c=Promise.resolve(d.cacheSlot.withValue(this.cache,h,[a,l.argumentsObjectFromField(e,r),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,c.then(function(a){if(void 0===a&&(a=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=a)})}),!e.selectionSet||null==a)return a;var n,r,o=null!=(r=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&r;return Array.isArray(a)?v.resolveSubSelectedArray(e,t||o,a,i):e.selectionSet?v.resolveSelectionSet(e.selectionSet,t||o,a,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,a,i){var n=this;return Promise.all(a.map(function(a){return null===a?null:Array.isArray(a)?n.resolveSubSelectedArray(e,t,a,i):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,a,i):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var a=function(e){return!Array.isArray(e)},i=this.selectionsToResolveCache;return function e(n){if(!i.has(n)){var o=new Set;i.set(n,o),h.visit(n,{Directive:function(e,t,i,n,r){"client"===e.name.value&&r.forEach(function(e){a(e)&&h.isSelectionNode(e)&&o.add(e)})},FragmentSpread:function(i,n,s,p,l){var d=t[i.name.value];r.invariant(d,20,i.name.value);var u=e(d);u.size>0&&(l.forEach(function(e){a(e)&&h.isSelectionNode(e)&&o.add(e)}),o.add(i),u.forEach(function(e){o.add(e)}))}})}return i.get(n)}(e)},e}(),M=Symbol.for("apollo.cacheSize"),U=n.__assign({},r.global[M]),q={},G=!1!==globalThis.__DEV__?function(){var e,t,a,i,r;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],a=e[1];return[t,U[t]||a]})),sizes:n.__assign({print:null==(e=q.print)?void 0:e.call(q),parser:null==(t=q.parser)?void 0:t.call(q),canonicalStringify:null==(a=q.canonicalStringify)?void 0:a.call(q),links:function e(t){var a;return t?n.__spreadArray(n.__spreadArray([null==(a=null==t?void 0:t.getMemoryInternals)?void 0:a.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(z):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:(function e(t){var a,i;return t?n.__spreadArray(n.__spreadArray([(i=a=null==t?void 0:t.performWork)&&"dirtyKey"in i?a.size:void 0],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(z):[]})(this.queryManager.documentTransform).map(function(e){return{cache:e}})}},null==(r=(i=this.cache).getMemoryInternals)?void 0:r.call(i))}}:void 0;function z(e){return null!=e}var Y=!1,Q=function(){function e(e){var t,a=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw r.newInvariantError(16);var i=e.uri,p=e.credentials,l=e.headers,d=e.cache,u=e.documentTransform,c=e.ssrMode,m=void 0!==c&&c,f=e.ssrForceFetchDelay,h=void 0===f?0:f,v=e.connectToDevTools,g=e.queryDeduplication,y=void 0===g||g,D=e.defaultOptions,b=e.defaultContext,x=e.assumeImmutableResults,_=void 0===x?d.assumeImmutableResults:x,w=e.resolvers,E=e.typeDefs,F=e.fragmentMatcher,C=e.name,A=e.version,T=e.devtools,S=e.dataMasking,O=e.link;O||(O=i?new s.HttpLink({uri:i,credentials:p,headers:l}):o.ApolloLink.empty()),this.link=O,this.cache=d,this.disableNetworkFetches=m||h>0,this.queryDeduplication=y,this.defaultOptions=D||Object.create(null),this.typeDefs=E,this.devtoolsConfig=n.__assign(n.__assign({},T),{enabled:null!=(t=null==T?void 0:T.enabled)?t:v}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),h&&setTimeout(function(){return a.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version="3.13.8",this.localState=new L({cache:d,client:this,resolvers:w,fragmentMatcher:F}),this.queryManager=new P({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:b,documentTransform:u,queryDeduplication:y,ssrMode:m,dataMasking:!!S,clientAwareness:{name:C,version:A},localState:this.localState,assumeImmutableResults:_,onBroadcast:this.devtoolsConfig.enabled?function(){a.devToolsHookCb&&a.devToolsHookCb({action:{},state:{queries:a.queryManager.getQueryStore(),mutations:a.queryManager.mutationStore||{}},dataWithOptimisticResults:a.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!Y&&!1!==globalThis.__DEV__&&(Y=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,a=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&!1!==globalThis.__DEV__&&r.invariant.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=l.mergeOptions(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=n.__assign(n.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=l.mergeOptions(this.defaultOptions.query,e)),r.invariant("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=n.__assign(n.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=l.mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,a=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return n.__assign(n.__assign({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:a})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(n.__assign(n.__assign({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return o.execute(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),a=[],i=[];t.forEach(function(e,t){a.push(t),i.push(e)});var n=Promise.all(i);return n.queries=a,n.results=i,n.catch(function(e){!1!==globalThis.__DEV__&&r.invariant.debug(18,e)}),n},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();for(var J in!1!==globalThis.__DEV__&&(Q.prototype.getMemoryInternals=G),g.setVerbosity(!1!==globalThis.__DEV__?"log":"silent"),t.DocumentTransform=l.DocumentTransform,t.Observable=l.Observable,t.isReference=l.isReference,t.makeReference=l.makeReference,t.mergeOptions=l.mergeOptions,t.ApolloCache=d.ApolloCache,t.Cache=d.Cache,t.InMemoryCache=d.InMemoryCache,t.MissingFieldError=d.MissingFieldError,t.defaultDataIdFromObject=d.defaultDataIdFromObject,t.makeVar=d.makeVar,t.ApolloError=u.ApolloError,t.isApolloError=u.isApolloError,t.fromError=v.fromError,t.fromPromise=v.fromPromise,t.throwServerError=v.throwServerError,t.toPromise=v.toPromise,t.setLogVerbosity=g.setVerbosity,t.disableExperimentalFragmentVariables=y.disableExperimentalFragmentVariables,t.disableFragmentWarnings=y.disableFragmentWarnings,t.enableExperimentalFragmentVariables=y.enableExperimentalFragmentVariables,t.gql=y.gql,t.resetCaches=y.resetCaches,t.ApolloClient=Q,t.ObservableQuery=S,t.isNetworkRequestSettled=function(e){return 7===e||8===e},o)"default"===J||t.hasOwnProperty(J)||(t[J]=o[J]);for(var J in s)"default"===J||t.hasOwnProperty(J)||(t[J]=s[J])},78549(e,t,a){var i=a(85608),n=a(4232),r=a(5437);t.o=function(e){return new n.ApolloLink(function(t,a){var n=i.__rest(t,[]);return new r.Observable(function(i){var r,o=!1;return Promise.resolve(n).then(function(a){return e(a,t.getContext())}).then(t.setContext).then(function(){o||(r=a(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,r&&r.unsubscribe()}})})}},16699(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},66442(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i},e.exports.__esModule=!0,e.exports.default=e.exports},3634(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},62192(e,t,a){var i=a(16699);e.exports=function(e){var t={},a=!1;function n(t,n){return a=!0,{done:!1,value:new i(n=new Promise(function(a){a(e[t](n))}),1)}}return t["u">typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return a?(a=!1,e):n("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(a)throw a=!1,e;return n("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return a?(a=!1,e):n("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},99436(e){function t(e,t,a,i,n,r,o){try{var s=e[r](o),p=s.value}catch(e){return void a(e)}s.done?t(p):Promise.resolve(p).then(i,n)}e.exports=function(e){return function(){var a=this,i=arguments;return new Promise(function(n,r){var o=e.apply(a,i);function s(e){t(o,n,r,s,p,"next",e)}function p(e){t(o,n,r,s,p,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},32235(e,t,a){var i=a(16699);e.exports=function(e){return new i(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},5018(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},44668(e,t,a){var i=a(56347);function n(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}e.exports=function(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},96525(e){e.exports=function(e,t){var a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,n,r,o,s=[],p=!0,l=!1;try{if(r=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;p=!1}else for(;!(p=(i=r.call(a)).done)&&(s.push(i.value),s.length!==t);p=!0);}catch(e){l=!0,n=e}finally{try{if(!p&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(l)throw n}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},5523(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},68832(e,t,a){var i=a(3634),n=a(96525),r=a(78243),o=a(5523);e.exports=function(e,t){return i(e)||n(e,t)||r(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},23878(e,t,a){var i=a(14319).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},56347(e,t,a){var i=a(14319).default,n=a(23878);e.exports=function(e){var t=n(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},14319(e){function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},78243(e,t,a){var i=a(66442);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var a=({}).toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},4275(e,t,a){var i=a(16699);function n(e){var t,a;function n(t,a){try{var o=e[t](a),s=o.value,p=s instanceof i;Promise.resolve(p?s.v:s).then(function(a){if(p){var i="return"===t?"return":"next";if(!s.k||a.done)return n(i,a);a=e[i](a).value}r(o.done?"return":"normal",a)},function(e){n("throw",e)})}catch(e){r("throw",e)}}function r(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):a=null}this._invoke=function(e,i){return new Promise(function(r,o){var s={key:e,arg:i,resolve:r,reject:o,next:null};a?a=a.next=s:(t=a=s,n(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)},e.exports=function(e){return function(){return new n(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},65181(e,t,a){let{Argument:i}=a(41762),{Command:n}=a(18572),{CommanderError:r,InvalidArgumentError:o}=a(43823),{Help:s}=a(99690),{Option:p}=a(92088);t.DM=new n,t.gu=e=>new n(e),t.Ww=(e,t)=>new p(e,t),t.er=(e,t)=>new i(e,t),t.uB=n,t.c$=p,t.ef=i,t._V=s,t.b7=r,t.Di=o,t.a2=o},41762(e,t,a){let{InvalidArgumentError:i}=a(43823);t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.length>3&&"..."===this._name.slice(-3)&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=function(e){let t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}},18572(e,t,a){let i=a(78474).EventEmitter,n=a(31421),r=a(76760),o=a(73024),s=a(1708),{Argument:p,humanReadableArgName:l}=a(41762),{CommanderError:d}=a(43823),{Help:u}=a(99690),{Option:c,DualOptions:m}=a(92088),{suggestSimilar:f}=a(86054);class h extends i{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:e=>s.stdout.write(e),writeErr:e=>s.stderr.write(e),getOutHelpWidth:()=>s.stdout.isTTY?s.stdout.columns:void 0,getErrHelpWidth:()=>s.stderr.isTTY?s.stderr.columns:void 0,outputError:(e,t)=>t(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,a){let i=t,n=a;"object"==typeof i&&null!==i&&(n=i,i=null),n=n||{};let[,r,o]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(r);return(i&&(s.description(i),s._executableHandler=!0),n.isDefault&&(this._defaultCommandName=s._name),s._hidden=!!(n.noHelp||n.hidden),s._executableFile=n.executableFile||null,o&&s.arguments(o),this._registerCommand(s),s.parent=this,s.copyInheritedSettings(this),i)?this:s}createCommand(e){return new h(e)}createHelp(){return Object.assign(new u,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
|
|
4
|
+
`);let{statusCode:b,buffered:x}=yield D;if(200===b){if(e.once("socket",f),t.secureEndpoint){c("Upgrading socket connection to TLS");let e=t.servername||t.host;return o.default.connect(Object.assign(Object.assign({},function(e,...t){let a,i={};for(a in e)t.includes(a)||(i[a]=e[a]);return i}(t,"host","hostname","path","port")),{socket:n,servername:e}))}return n}n.destroy();let _=new r.default.Socket({writable:!1});return _.readable=!0,e.once("socket",e=>{c("replaying proxy buffer for failed request"),p.default(e.listenerCount("data")>0),e.push(x),e.push(null)}),_})}}function f(e){e.resume()}t.default=m},64007(e,t,a){var i;let n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(a(35646));function r(e){return new n.default(e)}(i=r||(r={})).HttpsProxyAgent=n.default,i.prototype=n.default.prototype,e.exports=r},36981(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let n=i(a(3680)).default("https-proxy-agent:parse-proxy-response");t.default=function(e){return new Promise((t,a)=>{let i=0,r=[];function o(){let a=e.read();a?function(e){r.push(e),i+=e.length;let a=Buffer.concat(r,i);if(-1===a.indexOf("\r\n\r\n")){n("have not received end of HTTP headers yet..."),o();return}let s=a.toString("ascii",0,a.indexOf("\r\n")),p=+s.split(" ")[1];n("got proxy server response: %o",s),t({statusCode:p,buffered:a})}(a):e.once("readable",o)}function s(e){n("onclose had error %o",e)}function p(){n("onend")}e.on("error",function t(i){e.removeListener("end",p),e.removeListener("error",t),e.removeListener("close",s),e.removeListener("readable",o),n("onerror %o",i),a(i)}),e.on("close",s),e.on("end",p),o()})}},51555(e,t,a){e.exports=a(14878)},86090(e,t,a){var i,n,r,o=a(51555),s=a(16928).extname,p=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function d(e){if(!e||"string"!=typeof e)return!1;var t=p.exec(e),a=t&&o[t[1].toLowerCase()];return a&&a.charset?a.charset:!!(t&&l.test(t[1]))&&"UTF-8"}t.charset=d,t.charsets={lookup:d},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var a=-1===e.indexOf("/")?t.lookup(e):e;if(!a)return!1;if(-1===a.indexOf("charset")){var i=t.charset(a);i&&(a+="; charset="+i.toLowerCase())}return a},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var a=p.exec(e),i=a&&t.extensions[a[1].toLowerCase()];return!!i&&!!i.length&&i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var a=s("x."+e).toLowerCase().substr(1);return!!a&&(t.types[a]||!1)},t.types=Object.create(null),i=t.extensions,n=t.types,r=["nginx","apache",void 0,"iana"],Object.keys(o).forEach(function(e){var t=o[e],a=t.extensions;if(a&&a.length){i[e]=a;for(var s=0;s<a.length;s++){var p=a[s];if(n[p]){var l=r.indexOf(o[n[p]].source),d=r.indexOf(t.source);if("application/octet-stream"!==n[p]&&(l>d||l===d&&"application/"===n[p].substr(0,12)))continue}n[p]=e}}})},27250(e){function t(e,t,a,i){return Math.round(e/a)+" "+i+(t>=1.5*a?"s":"")}e.exports=function(e,a){a=a||{};var i,n,r,o,s=typeof e;if("string"===s&&e.length>0){var p=e;if(!((p=String(p)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(l){var d=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*d;case"weeks":case"week":case"w":return 6048e5*d;case"days":case"day":case"d":return 864e5*d;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*d;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*d;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:break}}}return}if("number"===s&&isFinite(e)){return a.long?(n=Math.abs(i=e))>=864e5?t(i,n,864e5,"day"):n>=36e5?t(i,n,36e5,"hour"):n>=6e4?t(i,n,6e4,"minute"):n>=1e3?t(i,n,1e3,"second"):i+" ms":(o=Math.abs(r=e))>=864e5?Math.round(r/864e5)+"d":o>=36e5?Math.round(r/36e5)+"h":o>=6e4?Math.round(r/6e4)+"m":o>=1e3?Math.round(r/1e3)+"s":r+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},27549(e,t,a){e.exports=function(e,t){var i=[function(e,t,a){e.exports=a(34)},function(e,t,a){var i=a(29)("wks"),n=a(33),r=a(2).Symbol,o="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=o&&r[e]||(o?r:n)("Symbol."+e))}).store=i},function(e,t){var a=e.exports="u">typeof window&&window.Math==Math?window:"u">typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t,a){var i=a(9);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,a){e.exports=!a(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,a){var i=a(12),n=a(17);e.exports=a(4)?function(e,t,a){return i.f(e,t,n(1,a))}:function(e,t,a){return e[t]=a,e}},function(e,t){var a=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=a)},function(e,t,a){var i=a(14);e.exports=function(e,t,a){if(i(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,i){return e.call(t,a,i)};case 3:return function(a,i,n){return e.call(t,a,i,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){var a={}.hasOwnProperty;e.exports=function(e,t){return a.call(e,t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){var a={}.toString;e.exports=function(e){return a.call(e).slice(8,-1)}},function(e,t,a){var i=a(3),n=a(26),r=a(32),o=Object.defineProperty;t.f=a(4)?Object.defineProperty:function(e,t,a){if(i(e),t=r(t,!0),i(a),n)try{return o(e,t,a)}catch(e){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(e[t]=a.value),e}},function(e,t,a){var i=a(42),n=a(15);e.exports=function(e){return i(n(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,a){var i=a(9),n=a(2).document,r=i(n)&&i(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,a){var i=a(12).f,n=a(8),r=a(1)("toStringTag");e.exports=function(e,t,a){e&&!n(e=a?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,a){var i=a(29)("keys"),n=a(33);e.exports=function(e){return i[e]||(i[e]=n(e))}},function(e,t){var a=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e*=1)?0:(e>0?i:a)(e)}},function(e,t,a){var i=a(11),n=a(1)("toStringTag"),r="Arguments"==i(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,a,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=o(t=Object(e),n))?a:r?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,a){var i=a(2),n=a(6),r=a(7),o=a(5),s="prototype",p=function(e,t,a){var l,d,u,c=e&p.F,m=e&p.G,f=e&p.S,h=e&p.P,v=e&p.B,g=e&p.W,y=m?n:n[t]||(n[t]={}),D=y[s],b=m?i:f?i[t]:(i[t]||{})[s];for(l in m&&(a=t),a)(d=!c&&b&&void 0!==b[l])&&l in y||(u=d?b[l]:a[l],y[l]=m&&"function"!=typeof b[l]?a[l]:v&&d?r(u,i):g&&b[l]==u?function(e){var t=function(t,a,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,a)}return new e(t,a,i)}return e.apply(this,arguments)};return t[s]=e[s],t}(u):h&&"function"==typeof u?r(Function.call,u):u,h&&((y.virtual||(y.virtual={}))[l]=u,e&p.R&&D&&!D[l]&&o(D,l,u)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,a){e.exports=a(2).document&&document.documentElement},function(e,t,a){e.exports=!a(4)&&!a(24)(function(){return 7!=Object.defineProperty(a(16)("div"),"a",{get:function(){return 7}}).a})},function(e,t,a){"use strict";var i=a(28),n=a(23),r=a(57),o=a(5),s=a(8),p=a(10),l=a(45),d=a(18),u=a(52),c=a(1)("iterator"),m=!([].keys&&"next"in[].keys()),f="keys",h="values",v=function(){return this};e.exports=function(e,t,a,g,y,D,b){l(a,t,g);var x,_,w,E=function(e){if(!m&&e in T)return T[e];switch(e){case f:case h:return function(){return new a(this,e)}}return function(){return new a(this,e)}},F=t+" Iterator",C=y==h,A=!1,T=e.prototype,S=T[c]||T["@@iterator"]||y&&T[y],O=S||E(y),N=y?C?E("entries"):O:void 0,k="Array"==t&&T.entries||S;if(k&&(w=u(k.call(new e)))!==Object.prototype&&(d(w,F,!0),i||s(w,c)||o(w,c,v)),C&&S&&S.name!==h&&(A=!0,O=function(){return S.call(this)}),(!i||b)&&(m||A||!T[c])&&o(T,c,O),p[t]=O,p[F]=v,y)if(x={values:C?O:E(h),keys:D?O:E(f),entries:N},b)for(_ in x)_ in T||r(T,_,x[_]);else n(n.P+n.F*(m||A),t,x);return x}},function(e,t){e.exports=!0},function(e,t,a){var i=a(2),n="__core-js_shared__",r=i[n]||(i[n]={});e.exports=function(e){return r[e]||(r[e]={})}},function(e,t,a){var i,n,r,o=a(7),s=a(41),p=a(25),l=a(16),d=a(2),u=d.process,c=d.setImmediate,m=d.clearImmediate,f=d.MessageChannel,h=0,v={},g="onreadystatechange",y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},D=function(e){y.call(e.data)};c&&m||(c=function(e){for(var t=[],a=1;arguments.length>a;)t.push(arguments[a++]);return v[++h]=function(){s("function"==typeof e?e:Function(e),t)},i(h),h},m=function(e){delete v[e]},"process"==a(11)(u)?i=function(e){u.nextTick(o(y,e,1))}:f?(r=(n=new f).port2,n.port1.onmessage=D,i=o(r.postMessage,r,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(i=function(e){d.postMessage(e+"","*")},d.addEventListener("message",D,!1)):i=g in l("script")?function(e){p.appendChild(l("script"))[g]=function(){p.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:c,clear:m}},function(e,t,a){var i=a(20),n=Math.min;e.exports=function(e){return e>0?n(i(e),0x1fffffffffffff):0}},function(e,t,a){var i=a(9);e.exports=function(e,t){var a,n;if(!i(e))return e;if(t&&"function"==typeof(a=e.toString)&&!i(n=a.call(e))||"function"==typeof(a=e.valueOf)&&!i(n=a.call(e))||!t&&"function"==typeof(a=e.toString)&&!i(n=a.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},function(e,t){var a=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++a+i).toString(36))}},function(e,t,a){"use strict";function i(e){return(0,p.createHash)("sha256").update(e).digest("hex")}function n(e){switch(l){case"darwin":return e.split("IOPlatformUUID")[1].split("\n")[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return e.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":case"freebsd":return e.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw Error("Unsupported platform: "+process.platform)}}Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=a(35))&&r.__esModule?r:{default:r};t.machineIdSync=function(e){var t=n((0,s.execSync)(d[l]).toString());return e?t:i(t)},t.machineId=function(e){return new o.default(function(t,a){return(0,s.exec)(d[l],{},function(r,o,s){if(r)return a(Error("Error while obtaining machine id: "+r.stack));var p=n(o.toString());return t(e?p:i(p))})})};var s=a(70),p=a(71),l=process.platform,d={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:{native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"}["win32"!==process.platform?"":"ia32"===process.arch&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(e,t,a){e.exports={default:a(36),__esModule:!0}},function(e,t,a){a(66),a(68),a(69),a(67),e.exports=a(6).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,a,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(a+": incorrect invocation!");return e}},function(e,t,a){var i=a(13),n=a(31),r=a(62);e.exports=function(e){return function(t,a,o){var s,p=i(t),l=n(p.length),d=r(o,l);if(e&&a!=a){for(;l>d;)if((s=p[d++])!=s)return!0}else for(;l>d;d++)if((e||d in p)&&p[d]===a)return e||d||0;return!e&&-1}}},function(e,t,a){var i=a(7),n=a(44),r=a(43),o=a(3),s=a(31),p=a(64),l={},d={},t=e.exports=function(e,t,a,u,c){var m,f,h,v,g=c?function(){return e}:p(e),y=i(a,u,t?2:1),D=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(r(g)){for(m=s(e.length);m>D;D++)if((v=t?y(o(f=e[D])[0],f[1]):y(e[D]))===l||v===d)return v}else for(h=g.call(e);!(f=h.next()).done;)if((v=n(h,y,f.value,t))===l||v===d)return v};t.BREAK=l,t.RETURN=d},function(e,t){e.exports=function(e,t,a){var i=void 0===a;switch(t.length){case 0:return i?e():e.call(a);case 1:return i?e(t[0]):e.call(a,t[0]);case 2:return i?e(t[0],t[1]):e.call(a,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(a,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(a,t[0],t[1],t[2],t[3])}return e.apply(a,t)}},function(e,t,a){var i=a(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,a){var i=a(10),n=a(1)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[n]===e)}},function(e,t,a){var i=a(3);e.exports=function(e,t,a,n){try{return n?t(i(a)[0],a[1]):t(a)}catch(t){var r=e.return;throw void 0!==r&&i(r.call(e)),t}}},function(e,t,a){"use strict";var i=a(49),n=a(17),r=a(18),o={};a(5)(o,a(1)("iterator"),function(){return this}),e.exports=function(e,t,a){e.prototype=i(o,{next:n(1,a)}),r(e,t+" Iterator")}},function(e,t,a){var i=a(1)("iterator"),n=!1;try{var r=[7][i]();r.return=function(){n=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!n)return!1;var a=!1;try{var r=[7],o=r[i]();o.next=function(){return{done:a=!0}},r[i]=function(){return o},e(r)}catch(e){}return a}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,a){var i=a(2),n=a(30).set,r=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,p="process"==a(11)(o);e.exports=function(){var e,t,a,l=function(){var i,n;for(p&&(i=o.domain)&&i.exit();e;){n=e.fn,e=e.next;try{n()}catch(i){throw e?a():t=void 0,i}}t=void 0,i&&i.enter()};if(p)a=function(){o.nextTick(l)};else if(r){var d=!0,u=document.createTextNode("");new r(l).observe(u,{characterData:!0}),a=function(){u.data=d=!d}}else if(s&&s.resolve){var c=s.resolve();a=function(){c.then(l)}}else a=function(){n.call(i,l)};return function(i){var n={fn:i,next:void 0};t&&(t.next=n),e||(e=n,a()),t=n}}},function(e,t,a){var i=a(3),n=a(50),r=a(22),o=a(19)("IE_PROTO"),s=function(){},p="prototype",l=function(){var e,t=a(16)("iframe"),i=r.length;for(t.style.display="none",a(25).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l[p][r[i]];return l()};e.exports=Object.create||function(e,t){var a;return null!==e?(s[p]=i(e),a=new s,s[p]=null,a[o]=e):a=l(),void 0===t?a:n(a,t)}},function(e,t,a){var i=a(12),n=a(3),r=a(54);e.exports=a(4)?Object.defineProperties:function(e,t){n(e);for(var a,o=r(t),s=o.length,p=0;s>p;)i.f(e,a=o[p++],t[a]);return e}},function(e,t,a){var i=a(55),n=a(17),r=a(13),o=a(32),s=a(8),p=a(26),l=Object.getOwnPropertyDescriptor;t.f=a(4)?l:function(e,t){if(e=r(e),t=o(t,!0),p)try{return l(e,t)}catch(e){}if(s(e,t))return n(!i.f.call(e,t),e[t])}},function(e,t,a){var i=a(8),n=a(63),r=a(19)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return i(e=n(e),r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,a){var i=a(8),n=a(13),r=a(39)(!1),o=a(19)("IE_PROTO");e.exports=function(e,t){var a,s=n(e),p=0,l=[];for(a in s)a!=o&&i(s,a)&&l.push(a);for(;t.length>p;)i(s,a=t[p++])&&(~r(l,a)||l.push(a));return l}},function(e,t,a){var i=a(53),n=a(22);e.exports=Object.keys||function(e){return i(e,n)}},function(e,t){t.f=({}).propertyIsEnumerable},function(e,t,a){var i=a(5);e.exports=function(e,t,a){for(var n in t)a&&e[n]?e[n]=t[n]:i(e,n,t[n]);return e}},function(e,t,a){e.exports=a(5)},function(e,t,a){var i=a(9),n=a(3),r=function(e,t){if(n(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=a(7)(Function.call,a(51).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,a){return r(e,a),t?e.__proto__=a:i(e,a),e}}({},!1):void 0),check:r}},function(e,t,a){"use strict";var i=a(2),n=a(6),r=a(12),o=a(4),s=a(1)("species");e.exports=function(e){var t="function"==typeof n[e]?n[e]:i[e];o&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,a){var i=a(3),n=a(14),r=a(1)("species");e.exports=function(e,t){var a,o=i(e).constructor;return void 0===o||void 0==(a=i(o)[r])?t:n(a)}},function(e,t,a){var i=a(20),n=a(15);e.exports=function(e){return function(t,a){var r,o,s=String(n(t)),p=i(a),l=s.length;return p<0||p>=l?e?"":void 0:(r=s.charCodeAt(p))<55296||r>56319||p+1===l||(o=s.charCodeAt(p+1))<56320||o>57343?e?s.charAt(p):r:e?s.slice(p,p+2):(r-55296<<10)+(o-56320)+65536}}},function(e,t,a){var i=a(20),n=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?n(e+t,0):r(e,t)}},function(e,t,a){var i=a(15);e.exports=function(e){return Object(i(e))}},function(e,t,a){var i=a(21),n=a(1)("iterator"),r=a(10);e.exports=a(6).getIteratorMethod=function(e){if(void 0!=e)return e[n]||e["@@iterator"]||r[i(e)]}},function(e,t,a){"use strict";var i=a(37),n=a(47),r=a(10),o=a(13);e.exports=a(27)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,a=this._i++;return!e||a>=e.length?(this._t=void 0,n(1)):"keys"==t?n(0,a):"values"==t?n(0,e[a]):n(0,[a,e[a]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){},function(e,t,a){"use strict";var i,n,r,o=a(28),s=a(2),p=a(7),l=a(21),d=a(23),u=a(9),c=(a(3),a(14)),m=a(38),f=a(40),h=(a(58).set,a(60)),v=a(30).set,g=a(48)(),y="Promise",D=s.TypeError,b=s.process,x=s[y],b=s.process,_="process"==l(b),w=function(){},E=!!function(){try{var e=x.resolve(1),t=(e.constructor={})[a(1)("species")]=function(e){e(w,w)};return(_||"function"==typeof PromiseRejectionEvent)&&e.then(w)instanceof t}catch(e){}}(),F=function(e,t){return e===t||e===x&&t===r},C=function(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t},A=function(e){return F(x,e)?new T(e):new n(e)},T=n=function(e){var t,a;this.promise=new e(function(e,i){if(void 0!==t||void 0!==a)throw D("Bad Promise constructor");t=e,a=i}),this.resolve=c(t),this.reject=c(a)},S=function(e){try{e()}catch(e){return{error:e}}},O=function(e,t){if(!e._n){e._n=!0;var a=e._c;g(function(){for(var i=e._v,n=1==e._s,r=0;a.length>r;)!function(t){var a,r,o=n?t.ok:t.fail,s=t.resolve,p=t.reject,l=t.domain;try{o?(n||(2==e._h&&I(e),e._h=1),!0===o?a=i:(l&&l.enter(),a=o(i),l&&l.exit()),a===t.promise?p(D("Promise-chain cycle")):(r=C(a))?r.call(a,s,p):s(a)):p(i)}catch(e){p(e)}}(a[r++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){v.call(s,function(){var t,a,i,n=e._v;if(k(e)&&(t=S(function(){_?b.emit("unhandledRejection",n,e):(a=s.onunhandledrejection)?a({promise:e,reason:n}):(i=s.console)&&i.error&&i.error("Unhandled promise rejection",n)}),e._h=_||k(e)?2:1),e._a=void 0,t)throw t.error})},k=function(e){if(1==e._h)return!1;for(var t,a=e._a||e._c,i=0;a.length>i;)if((t=a[i++]).fail||!k(t.promise))return!1;return!0},I=function(e){v.call(s,function(){var t;_?b.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},$=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},j=function(e){var t,a=this;if(!a._d){a._d=!0,a=a._w||a;try{if(a===e)throw D("Promise can't be resolved itself");(t=C(e))?g(function(){var i={_w:a,_d:!1};try{t.call(e,p(j,i,1),p($,i,1))}catch(e){$.call(i,e)}}):(a._v=e,a._s=1,O(a,!1))}catch(e){$.call({_w:a,_d:!1},e)}}};E||(x=function(e){m(this,x,y,"_h"),c(e),i.call(this);try{e(p(j,this,1),p($,this,1))}catch(e){$.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=a(56)(x.prototype,{then:function(e,t){var a=A(h(this,x));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=_?b.domain:void 0,this._c.push(a),this._a&&this._a.push(a),this._s&&O(this,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),T=function(){var e=new i;this.promise=e,this.resolve=p(j,e,1),this.reject=p($,e,1)}),d(d.G+d.W+!E*d.F,{Promise:x}),a(18)(x,y),a(59)(y),r=a(6)[y],d(d.S+!E*d.F,y,{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(o||!E),y,{resolve:function(e){if(e instanceof x&&F(e.constructor,this))return e;var t=A(this);return(0,t.resolve)(e),t.promise}}),d(d.S+!(E&&a(46)(function(e){x.all(e).catch(w)}))*d.F,y,{all:function(e){var t=this,a=A(t),i=a.resolve,n=a.reject,r=S(function(){var a=[],r=0,o=1;f(e,!1,function(e){var s=r++,p=!1;a.push(void 0),o++,t.resolve(e).then(function(e){p||(p=!0,a[s]=e,--o||i(a))},n)}),--o||i(a)});return r&&n(r.error),a.promise},race:function(e){var t=this,a=A(t),i=a.reject,n=S(function(){f(e,!1,function(e){t.resolve(e).then(a.resolve,i)})});return n&&i(n.error),a.promise}})},function(e,t,a){"use strict";var i=a(61)(!0);a(27)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,a=this._i;return a>=t.length?{value:void 0,done:!0}:(e=i(t,a),this._i+=e.length,{value:e,done:!1})})},function(e,t,a){a(65);for(var i=a(2),n=a(5),r=a(10),o=a(1)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],p=0;p<5;p++){var l=s[p],d=i[l],u=d&&d.prototype;u&&!u[o]&&n(u,o,l),r[l]=r.Array}},function(e,t){e.exports=a(35317)},function(e,t){e.exports=a(76982)}];function n(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return i[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var r={};return n.m=i,n.c=r,n.p="",n(0)}(a(35317),a(76982))},19845(e,t,a){var i,n=a(20181),r=n.Buffer,o={};for(i in n)n.hasOwnProperty(i)&&"SlowBuffer"!==i&&"Buffer"!==i&&(o[i]=n[i]);var s=o.Buffer={};for(i in r)r.hasOwnProperty(i)&&"allocUnsafe"!==i&&"allocUnsafeSlow"!==i&&(s[i]=r[i]);if(o.Buffer.prototype=r.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,a){if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return r(e,t,a)}),s.alloc||(s.alloc=function(e,t,a){if("number"!=typeof e)throw TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*0x40000000)throw RangeError('The value "'+e+'" is invalid for option "size"');var i=r(e);return t&&0!==t.length?"string"==typeof a?i.fill(t,a):i.fill(t):i.fill(0),i}),!o.kStringMaxLength)try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}!o.constants&&(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),e.exports=o},79436(e,t,a){let i=a(91371);e.exports=e=>"string"==typeof e?e.replace(i(),""):e},35600(e,t,a){let i,n=a(70857),r=a(52018),o=a(56071),{env:s}=process;function p(e,t={}){var a;return 0!==(a=function(e,{streamIsTTY:t,sniffFlags:a=!0}={}){let r=function(){if("FORCE_COLOR"in s)return"true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(Number.parseInt(s.FORCE_COLOR,10),3)}();void 0!==r&&(i=r);let p=a?i:r;if(0===p)return 0;if(a){if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2}if(e&&!t&&void 0===p)return 0;let l=p||0;if("dumb"===s.TERM)return l;if("win32"===process.platform){let e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(e=>e in s)||"codeship"===s.CI_NAME?1:l;if("TEAMCITY_VERSION"in s)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION);if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){let e=Number.parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:l}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?i=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(i=1),e.exports={supportsColor:p,stdout:p({isTTY:r.isatty(1)}),stderr:p({isTTY:r.isatty(2)})}},23246(e,t,a){var i=a(24876),n=a(91749),r={TRANSITIONAL:0,NONTRANSITIONAL:1};function o(e){return e.split("\0").map(function(e){return e.normalize("NFC")}).join("\0")}function s(e){for(var t=0,a=n.length-1;t<=a;){var i=Math.floor((t+a)/2),r=n[i];if(r[0][0]<=e&&r[0][1]>=e)return r;r[0][0]>e?a=i-1:t=i+1}return null}var p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function l(e){return e.replace(p,"_").length}var d=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;e.exports.toASCII=function(e,t,a,n){var p=function e(t,a,n){var p=function(e,t,a){for(var i=!1,n="",o=l(e),p=0;p<o;++p){var d=e.codePointAt(p),u=s(d);switch(u[1]){case"disallowed":i=!0,n+=String.fromCodePoint(d);break;case"ignored":break;case"mapped":n+=String.fromCodePoint.apply(String,u[2]);break;case"deviation":a===r.TRANSITIONAL?n+=String.fromCodePoint.apply(String,u[2]):n+=String.fromCodePoint(d);break;case"valid":n+=String.fromCodePoint(d);break;case"disallowed_STD3_mapped":t?(i=!0,n+=String.fromCodePoint(d)):n+=String.fromCodePoint.apply(String,u[2]);break;case"disallowed_STD3_valid":t&&(i=!0),n+=String.fromCodePoint(d)}}return{string:n,error:i}}(t,a,n);p.string=o(p.string);for(var u=p.string.split("."),c=0;c<u.length;++c)try{var m=function(t){"xn--"===t.substr(0,4)&&(t=i.toUnicode(t),r.NONTRANSITIONAL);var a=!1;(o(t)!==t||"-"===t[3]&&"-"===t[4]||"-"===t[0]||"-"===t[t.length-1]||-1!==t.indexOf(".")||0===t.search(d))&&(a=!0);for(var n=l(t),p=0;p<n;++p){var u=s(t.codePointAt(p));if(e===r.TRANSITIONAL&&"valid"!==u[1]||e===r.NONTRANSITIONAL&&"valid"!==u[1]&&"deviation"!==u[1]){a=!0;break}}return{label:t,error:a}}(u[c]);u[c]=m.label,p.error=p.error||m.error}catch(e){p.error=!0}return{string:u.join("."),error:p.error}}(e,t,a),u=p.string.split(".");if(u=u.map(function(e){try{return i.toASCII(e)}catch(t){return p.error=!0,e}}),n){var c=u.slice(0,u.length-1).join(".").length;(c.length>253||0===c.length)&&(p.error=!0);for(var m=0;m<u.length;++m)if(u.length>63||0===u.length){p.error=!0;break}}return p.error?null:u.join(".")},e.exports.PROCESSING_OPTIONS=r},98706(e,t,a){let i=a(78323);t.implementation=class{constructor(e){let t=e[0],a=e[1],n=null;if(void 0!==a&&"failure"===(n=i.basicURLParse(a)))throw TypeError("Invalid base URL");let r=i.basicURLParse(t,{baseURL:n});if("failure"===r)throw TypeError("Invalid URL");this._url=r}get href(){return i.serializeURL(this._url)}set href(e){let t=i.basicURLParse(e);if("failure"===t)throw TypeError("Invalid URL");this._url=t}get origin(){return i.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){i.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){i.cannotHaveAUsernamePasswordPort(this._url)||i.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){i.cannotHaveAUsernamePasswordPort(this._url)||i.setThePassword(this._url,e)}get host(){let e=this._url;return null===e.host?"":null===e.port?i.serializeHost(e.host):i.serializeHost(e.host)+":"+i.serializeInteger(e.port)}set host(e){this._url.cannotBeABaseURL||i.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":i.serializeHost(this._url.host)}set hostname(e){this._url.cannotBeABaseURL||i.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":i.serializeInteger(this._url.port)}set port(e){i.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:i.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")}set pathname(e){this._url.cannotBeABaseURL||(this._url.path=[],i.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query}set search(e){let t=this._url;if(""===e){t.query=null;return}let a="?"===e[0]?e.substring(1):e;t.query="",i.basicURLParse(a,{url:t,stateOverride:"query"})}get hash(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment}set hash(e){if(""===e){this._url.fragment=null;return}let t="#"===e[0]?e.substring(1):e;this._url.fragment="",i.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},76447(e,t,a){let i=a(36151),n=a(4887),r=a(98706),o=n.implSymbol;function s(t){if(!this||this[o]||!(this instanceof s))throw TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");let a=[];for(let e=0;e<arguments.length&&e<2;++e)a[e]=arguments[e];a[0]=i.USVString(a[0]),void 0!==a[1]&&(a[1]=i.USVString(a[1])),e.exports.setup(this,a)}s.prototype.toJSON=function(){if(!this||!e.exports.is(this))throw TypeError("Illegal invocation");let t=[];for(let e=0;e<arguments.length&&e<0;++e)t[e]=arguments[e];return this[o].toJSON.apply(this[o],t)},Object.defineProperty(s.prototype,"href",{get(){return this[o].href},set(e){e=i.USVString(e),this[o].href=e},enumerable:!0,configurable:!0}),s.prototype.toString=function(){if(!this||!e.exports.is(this))throw TypeError("Illegal invocation");return this.href},Object.defineProperty(s.prototype,"origin",{get(){return this[o].origin},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"protocol",{get(){return this[o].protocol},set(e){e=i.USVString(e),this[o].protocol=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"username",{get(){return this[o].username},set(e){e=i.USVString(e),this[o].username=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"password",{get(){return this[o].password},set(e){e=i.USVString(e),this[o].password=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"host",{get(){return this[o].host},set(e){e=i.USVString(e),this[o].host=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hostname",{get(){return this[o].hostname},set(e){e=i.USVString(e),this[o].hostname=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"port",{get(){return this[o].port},set(e){e=i.USVString(e),this[o].port=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"pathname",{get(){return this[o].pathname},set(e){e=i.USVString(e),this[o].pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"search",{get(){return this[o].search},set(e){e=i.USVString(e),this[o].search=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hash",{get(){return this[o].hash},set(e){e=i.USVString(e),this[o].hash=e},enumerable:!0,configurable:!0}),e.exports={is:e=>!!e&&e[o]instanceof r.implementation,create(e,t){let a=Object.create(s.prototype);return this.setup(a,e,t),a},setup(e,t,a){a||(a={}),a.wrapper=e,e[o]=new r.implementation(t,a),e[o][n.wrapperSymbol]=e},interface:s,expose:{Window:{URL:s},Worker:{URL:s}}}},44044(e,t,a){t.k=a(76447).interface,a(78323).serializeURL,a(78323).serializeURLOrigin,a(78323).basicURLParse,a(78323).setTheUsername,a(78323).setThePassword,a(78323).serializeHost,a(78323).serializeInteger,a(78323).parseURL},78323(e,t,a){let i=a(24876),n=a(23246),r={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},o=Symbol("failure");function s(e){return i.ucs2.decode(e).length}function p(e,t){let a=e[t];return isNaN(a)?void 0:String.fromCodePoint(a)}function l(e){return e>=48&&e<=57}function d(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e){return l(e)||e>=65&&e<=70||e>=97&&e<=102}function c(e){return"."===e||"%2e"===e.toLowerCase()}function m(e){return 2===e.length&&d(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function f(e){return void 0!==r[e]}function h(e){return f(e.scheme)}function v(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t="0"+t),"%"+t}function g(e){return e<=31||e>126}let y=new Set([32,34,35,60,62,63,96,123,125]);function D(e){return g(e)||y.has(e)}let b=new Set([47,58,59,61,64,91,92,93,94,124]);function x(e){return D(e)||b.has(e)}function _(e,t){let a=String.fromCodePoint(e);if(t(e)){let e=new Buffer(a),t="";for(let a=0;a<e.length;++a)t+=v(e[a]);return t}return a}function w(e,t){if("["===e[0])return"]"!==e[e.length-1]?o:function(e){let t=[0,0,0,0,0,0,0,0],a=0,n=null,r=0;if(58===(e=i.ucs2.decode(e))[r]){if(58!==e[r+1])return o;r+=2,n=++a}for(;r<e.length;){if(8===a)return o;if(58===e[r]){if(null!==n)return o;++r,n=++a;continue}let i=0,s=0;for(;s<4&&u(e[r]);)i=16*i+parseInt(p(e,r),16),++r,++s;if(46===e[r]){if(0===s||(r-=s,a>6))return o;let i=0;for(;void 0!==e[r];){let n=null;if(i>0)if(46!==e[r]||!(i<4))return o;else++r;if(!l(e[r]))return o;for(;l(e[r]);){let t=parseInt(p(e,r));if(null===n)n=t;else{if(0===n)return o;n=10*n+t}if(n>255)return o;++r}t[a]=256*t[a]+n,(2==++i||4===i)&&++a}if(4!==i)return o;break}if(58===e[r]){if(void 0===e[++r])return o}else if(void 0!==e[r])return o;t[a]=i,++a}if(null!==n){let e=a-n;for(a=7;0!==a&&e>0;){let i=t[n+e-1];t[n+e-1]=t[a],t[a]=i,--a,--e}}else if(null===n&&8!==a)return o;return t}(e.substring(1,e.length-1));if(!t){var a=e;if(-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return o;let t="",n=i.ucs2.decode(a);for(let e=0;e<n.length;++e)t+=_(n[e],g);return t}let r=function(e){let t=new Buffer(e),a=[];for(let e=0;e<t.length;++e)37!==t[e]?a.push(t[e]):37===t[e]&&u(t[e+1])&&u(t[e+2])?(a.push(parseInt(t.slice(e+1,e+3).toString(),16)),e+=2):a.push(t[e]);return new Buffer(a).toString()}(e),s=n.toASCII(r,!1,n.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(null===s||-1!==s.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return o;let d=function(e){let t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return e;let a=[];for(let i of t){if(""===i)return e;let t=function(e){let t=10;return(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)?0:(10===t?/[^0-9]/:16===t?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?o:parseInt(e,t)}(i);if(t===o)return e;a.push(t)}for(let e=0;e<a.length-1;++e)if(a[e]>255)return o;if(a[a.length-1]>=Math.pow(256,5-a.length))return o;let i=a.pop(),n=0;for(let e of a)i+=e*Math.pow(256,3-n),++n;return i}(s);return"number"==typeof d||d===o?d:s}function E(e){if("number"==typeof e){let t="",a=e;for(let e=1;e<=4;++e)t=String(a%256)+t,4!==e&&(t="."+t),a=Math.floor(a/256);return t}return e instanceof Array?"["+function(e){let t="",a=function(e){let t=null,a=1,i=null,n=0;for(let r=0;r<e.length;++r)0!==e[r]?(n>a&&(t=i,a=n),i=null,n=0):(null===i&&(i=r),++n);return n>a&&(t=i,a=n),{idx:t,len:a}}(e).idx,i=!1;for(let n=0;n<=7;++n)if(!i||0!==e[n]){if(i&&(i=!1),a===n){t+=0===n?"::":":",i=!0;continue}t+=e[n].toString(16),7!==n&&(t+=":")}return t}(e)+"]":e}function F(e){var t;let a=e.path;0===a.length||"file"===e.scheme&&1===a.length&&(t=a[0],/^[A-Za-z]:$/.test(t))||a.pop()}function C(e){return""!==e.username||""!==e.password}function A(e,t,a,n,r){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=a||"utf-8",this.stateOverride=r,this.url=n,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};let e=this.input.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"");e!==this.input&&(this.parseError=!0),this.input=e}let s=this.input.replace(/\u0009|\u000A|\u000D/g,"");for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=r||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=i.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){let e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),a=this["parse "+this.state](e,t);if(a){if(a===o){this.failure=!0;break}}else break}}A.prototype["parse scheme start"]=function(e,t){if(d(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,o;this.state="no scheme",--this.pointer}return!0},A.prototype["parse scheme"]=function(e,t){if(d(e)||l(e)||43===e||45===e||46===e)this.buffer+=t.toLowerCase();else if(58===e){if(this.stateOverride&&(h(this.url)&&!f(this.buffer)||!h(this.url)&&f(this.buffer)||(C(this.url)||null!==this.url.port)&&"file"===this.buffer||"file"===this.url.scheme&&(""===this.url.host||null===this.url.host))||(this.url.scheme=this.buffer,this.buffer="",this.stateOverride))return!1;"file"===this.url.scheme?((47!==this.input[this.pointer+1]||47!==this.input[this.pointer+2])&&(this.parseError=!0),this.state="file"):h(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":h(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,o;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},A.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?o:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):("file"===this.base.scheme?this.state="file":this.state="relative",--this.pointer),!0)},A.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},A.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},A.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):h(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},A.prototype["parse relative slash"]=function(e){return h(this.url)&&(47===e||92===e)?(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"):47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer),!0},A.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},A.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},A.prototype["parse authority"]=function(e,t){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;let e=s(this.buffer);for(let t=0;t<e;++t){let e=this.buffer.codePointAt(t);if(58===e&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}let a=_(e,x);this.passwordTokenSeenFlag?this.url.password+=a:this.url.username+=a}this.buffer=""}else if(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e){if(this.atFlag&&""===this.buffer)return this.parseError=!0,o;this.pointer-=s(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},A.prototype["parse hostname"]=A.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(58!==e||this.arrFlag)if(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e){if(--this.pointer,h(this.url)&&""===this.buffer)return this.parseError=!0,o;if(this.stateOverride&&""===this.buffer&&(C(this.url)||null!==this.url.port))return this.parseError=!0,!1;let e=w(this.buffer,h(this.url));if(e===o)return o;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else 91===e?this.arrFlag=!0:93===e&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,o;let e=w(this.buffer,h(this.url));if(e===o)return o;if(this.url.host=e,this.buffer="",this.state="port","hostname"===this.stateOverride)return!1}return!0},A.prototype["parse port"]=function(e,t){if(l(e))this.buffer+=t;else{if(!(isNaN(e)||47===e||63===e||35===e||h(this.url)&&92===e)&&!this.stateOverride)return this.parseError=!0,o;if(""!==this.buffer){let e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,o;this.url.port=e===r[this.url.scheme]?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};let T=new Set([47,92,63,35]);A.prototype["parse file"]=function(e){if(this.url.scheme="file",47===e||92===e)92===e&&(this.parseError=!0),this.state="file slash";else if(null!==this.base&&"file"===this.base.scheme)if(isNaN(e))this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query;else if(63===e)this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query";else if(35===e)this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else{var t;this.input.length-this.pointer-1!=0&&(t=this.input[this.pointer+1],d(e)&&(58===t||124===t))&&(!(this.input.length-this.pointer-1>=2)||T.has(this.input[this.pointer+2]))?this.parseError=!0:(this.url.host=this.base.host,this.url.path=this.base.path.slice(),F(this.url)),this.state="path",--this.pointer}else this.state="path",--this.pointer;return!0},A.prototype["parse file slash"]=function(e){if(47===e||92===e)92===e&&(this.parseError=!0),this.state="file host";else{if(null!==this.base&&"file"===this.base.scheme){var t;2===(t=this.base.path[0]).length&&d(t.codePointAt(0))&&":"===t[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host}this.state="path",--this.pointer}return!0},A.prototype["parse file host"]=function(e,t){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&m(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=w(this.buffer,h(this.url));if(e===o)return o;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},A.prototype["parse path start"]=function(e){return h(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},A.prototype["parse path"]=function(e){if(isNaN(e)||47===e||h(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){var t;if((h(this.url)&&92===e&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t)?(F(this.url),47===e||h(this.url)&&92===e||this.url.path.push("")):c(this.buffer)&&47!==e&&!(h(this.url)&&92===e)?this.url.path.push(""):c(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&m(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=_(e,D);return!0},A.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+_(e,g))),!0},A.prototype["parse query"]=function(e,t){if(isNaN(e)||!this.stateOverride&&35===e){h(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");let t=new Buffer(this.buffer);for(let e=0;e<t.length;++e)t[e]<33||t[e]>126||34===t[e]||35===t[e]||60===t[e]||62===t[e]?this.url.query+=v(t[e]):this.url.query+=String.fromCodePoint(t[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t;return!0},A.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||u(this.input[this.pointer+1])&&u(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=_(e,g))),!0},e.exports.serializeURL=function(e,t){let a=e.scheme+":";if(null!==e.host?(a+="//",(""!==e.username||""!==e.password)&&(a+=e.username,""!==e.password&&(a+=":"+e.password),a+="@"),a+=E(e.host),null!==e.port&&(a+=":"+e.port)):null===e.host&&"file"===e.scheme&&(a+="//"),e.cannotBeABaseURL)a+=e.path[0];else for(let t of e.path)a+="/"+t;return null!==e.query&&(a+="?"+e.query),t||null===e.fragment||(a+="#"+e.fragment),a},e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":var a;let i;return i=(a={scheme:t.scheme,host:t.host,port:t.port}).scheme+"://"+E(a.host),null!==a.port&&(i+=":"+a.port),i;case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});let a=new A(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return a.failure?"failure":a.url},e.exports.setTheUsername=function(e,t){e.username="";let a=i.ucs2.decode(t);for(let t=0;t<a.length;++t)e.username+=_(a[t],x)},e.exports.setThePassword=function(e,t){e.password="";let a=i.ucs2.decode(t);for(let t=0;t<a.length;++t)e.password+=_(a[t],x)},e.exports.serializeHost=E,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||e.cannotBeABaseURL||"file"===e.scheme},e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,a){return void 0===a&&(a={}),e.exports.basicURLParse(t,{baseURL:a.baseURL,encodingOverride:a.encodingOverride})}},4887(e){e.exports.wrapperSymbol=Symbol("wrapper"),e.exports.implSymbol=Symbol("impl")},36151(e){var t={};function a(e,t){!t.unsigned&&--e;let a=t.unsigned?0:-Math.pow(2,e),i=Math.pow(2,e)-1,n=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e),r=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,o){o||(o={});let s=+e;if(o.enforceRange){if(!Number.isFinite(s))throw TypeError("Argument is not a finite number");if((s=(s<0?-1:1)*Math.floor(Math.abs(s)))<a||s>i)throw TypeError("Argument is not in byte range");return s}if(!isNaN(s)&&o.clamp){var p;return(s=(p=s)%1==.5&&(1&p)==0?Math.floor(p):Math.round(p))<a&&(s=a),s>i&&(s=i),s}if(!Number.isFinite(s)||0===s)return 0;if(s=(s<0?-1:1)*Math.floor(Math.abs(s))%n,!t.unsigned&&s>=r)return s-n;if(t.unsigned){if(s<0)s+=n;else if(-0===s)return 0}return s}}e.exports=t,t.void=function(){},t.boolean=function(e){return!!e},t.byte=a(8,{unsigned:!1}),t.octet=a(8,{unsigned:!0}),t.short=a(16,{unsigned:!1}),t["unsigned short"]=a(16,{unsigned:!0}),t.long=a(32,{unsigned:!1}),t["unsigned long"]=a(32,{unsigned:!0}),t["long long"]=a(32,{unsigned:!1,moduloBitLength:64}),t["unsigned long long"]=a(32,{unsigned:!0,moduloBitLength:64}),t.double=function(e){let t=+e;if(!Number.isFinite(t))throw TypeError("Argument is not a finite floating-point value");return t},t["unrestricted double"]=function(e){let t=+e;if(isNaN(t))throw TypeError("Argument is NaN");return t},t.float=t.double,t["unrestricted float"]=t["unrestricted double"],t.DOMString=function(e,t){return(t||(t={}),t.treatNullAsEmptyString&&null===e)?"":String(e)},t.ByteString=function(e,t){let a,i=String(e);for(let e=0;void 0!==(a=i.codePointAt(e));++e)if(a>255)throw TypeError("Argument is not a valid bytestring");return i},t.USVString=function(e){let t=String(e),a=t.length,i=[];for(let e=0;e<a;++e){let n=t.charCodeAt(e);if(n<55296||n>57343)i.push(String.fromCodePoint(n));else if(56320<=n&&n<=57343)i.push(String.fromCodePoint(65533));else if(e===a-1)i.push(String.fromCodePoint(65533));else{let a=t.charCodeAt(e+1);if(56320<=a&&a<=57343){let t=1023&n,r=1023&a;i.push(String.fromCodePoint(65536+1024*t+r)),++e}else i.push(String.fromCodePoint(65533))}}return i.join("")},t.Date=function(e,t){if(!(e instanceof Date))throw TypeError("Argument is not a Date object");if(!isNaN(e))return e},t.RegExp=function(e,t){return e instanceof RegExp||(e=new RegExp(e)),e}},84361(e){e.exports=import("ws").then(function(e){return e})},83440(t){t.exports=e},42613(e){e.exports=a("assert")},20181(e){e.exports=a("buffer")},35317(e){e.exports=a("child_process")},76982(e){e.exports=a("crypto")},24434(e){e.exports=a("events")},79896(e){e.exports=a("fs")},58611(e){e.exports=a("http")},65692(e){e.exports=a("https")},69278(e){e.exports=a("net")},31421(e){e.exports=a("node:child_process")},77598(e){e.exports=a("node:crypto")},41314(e){e.exports=a("node:dgram")},40610(e){e.exports=a("node:dns")},78474(e){e.exports=a("node:events")},73024(e){e.exports=a("node:fs")},51455(e){e.exports=a("node:fs/promises")},37067(e){e.exports=a("node:http")},44708(e){e.exports=a("node:https")},77030(e){e.exports=a("node:net")},48161(e){e.exports=a("node:os")},76760(e){e.exports=a("node:path")},1708(e){e.exports=a("node:process")},7066(e){e.exports=a("node:tty")},57975(e){e.exports=a("node:util")},70857(e){e.exports=a("os")},16928(e){e.exports=a("path")},24876(e){e.exports=a("punycode")},2203(e){e.exports=a("stream")},13193(e){e.exports=a("string_decoder")},64756(e){e.exports=a("tls")},52018(e){e.exports=a("tty")},87016(e){e.exports=a("url")},39023(e){e.exports=a("util")},43106(e){e.exports=a("zlib")},54506(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var i,n=a(85608),r=a(70916),o=a(4232),s=a(28876),p=a(55888),l=a(5437),d=a(94037),u=a(53570),c=a(60837),m=a(44592),f=a(39283),h=a(36869),v=a(25979),g=a(19371),y=a(94370),D=p&&"object"==typeof p&&"default"in p?p.default:p;function b(e){return null!==e&&"object"==typeof e}var x=Object.prototype.hasOwnProperty,_=function(e,t,a){return this.merge(e[a],t[a])},w=function(){function e(e){void 0===e&&(e=_),this.reconciler=e,this.isObject=b,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var a=this,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return b(t)&&b(e)?(Object.keys(t).forEach(function(r){if(x.call(e,r)){var o=e[r];if(t[r]!==o){var s=a.reconciler.apply(a,n.__spreadArray([e,t,r],i,!1));s!==o&&((e=a.shallowCopyForMerge(e))[r]=s)}}else(e=a.shallowCopyForMerge(e))[r]=t[r]}),e):t},e.prototype.shallowCopyForMerge=function(e){return b(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):n.__assign({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function E(e){return!!e&&e<7}function F(e){return!!e.directives&&e.directives.some(C)}function C(e){return"nonreactive"===e.name.value}t.NetworkStatus=void 0,(i=t.NetworkStatus||(t.NetworkStatus={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error";var A=Object.assign,T=Object.hasOwnProperty,S=function(e){function a(t){var i=t.queryManager,r=t.queryInfo,o=t.options,s=this,p=a.inactiveOnCreation.getValue();(s=e.call(this,function(e){p&&(i.queries.set(s.queryId,r),p=!1);try{var t=e._subscription._observer;t&&!t.error&&(t.error=O)}catch(e){}var a=!s.observers.size;s.observers.add(e);var n=s.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(s.maskResult(n.result)),a&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s.queryInfo=r,s.queryManager=i,s.waitForOwnResult=k(o.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var d=i.defaultOptions.watchQuery,u=(void 0===d?{}:d).fetchPolicy,c=void 0===u?"cache-first":u,m=o.fetchPolicy,f=void 0===m?c:m,h=o.initialFetchPolicy,v=void 0===h?"standby"===f?c:f:h;s.options=n.__assign(n.__assign({},o),{initialFetchPolicy:v,fetchPolicy:f}),s.queryId=r.queryId||i.generateQueryId();var g=l.getOperationDefinition(s.query);return s.queryName=g&&g.name&&g.name.value,s}return n.__extends(a,e),Object.defineProperty(a.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),a.prototype.result=function(){var e=this;return new Promise(function(t,a){var i={next:function(a){t(a),e.observers.delete(i),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){n.unsubscribe()},0)},error:a},n=e.subscribe(i)})},a.prototype.resetDiff=function(){this.queryInfo.resetDiff()},a.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var a=this.getLastResult(!0),i=this.queryInfo.networkStatus||a&&a.networkStatus||t.NetworkStatus.ready,r=n.__assign(n.__assign({},a),{loading:E(i),networkStatus:i}),o=this.options.fetchPolicy,s=void 0===o?"cache-first":o;if(k(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(r.data=l.result),p.equal(r.data,{})&&(r.data=void 0),l.complete?(delete r.partial,l.complete&&r.networkStatus===t.NetworkStatus.loading&&("cache-first"===s||"cache-only"===s)&&(r.networkStatus=t.NetworkStatus.ready,r.loading=!1)):r.partial=!0,r.networkStatus===t.NetworkStatus.ready&&(r.error||r.errors)&&(r.networkStatus=t.NetworkStatus.error),!1===globalThis.__DEV__||l.complete||this.options.partialRefetch||r.loading||r.data||r.error||N(l.missing)}return e&&this.updateLastResult(r),r},a.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},a.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var a,i,r,o,s,d=this.queryManager.getDocumentInfo(this.query),u=this.queryManager.dataMasking,c=u?d.nonReactiveQuery:this.query;return(u||d.hasNonreactiveDirective?(a=this.last.result,i=this.variables,r=a.data,o=n.__rest(a,["data"]),s=e.data,!(D(o,n.__rest(e,["data"]))&&function e(t,a,i,n){if(a===i)return!0;var r=new Set;return t.selections.every(function(t){if(r.has(t)||(r.add(t),!l.shouldInclude(t,n.variables)||F(t)))return!0;if(l.isField(t)){var o=l.resultKeyNameFromField(t),s=a&&a[o],p=i&&i[o],d=t.selectionSet;if(!d)return D(s,p);var u=Array.isArray(s),c=Array.isArray(p);if(u!==c)return!1;if(u&&c){var m=s.length;if(p.length!==m)return!1;for(var f=0;f<m;++f)if(!e(d,s[f],p[f],n))return!1;return!0}return e(d,s,p,n)}var h=l.getFragmentFromSelection(t,n.fragmentMap);if(h)return!!F(h)||e(h.selectionSet,a,i,n)})}(l.getMainDefinition(c).selectionSet,r,s,{fragmentMap:l.createFragmentMap(l.getFragmentDefinitions(c)),variables:i}))):!p.equal(this.last.result,e))||t&&!p.equal(this.last.variables,t)},a.prototype.getLast=function(e,t){var a=this.last;if(a&&a[e]&&(!t||p.equal(a.variables,this.variables)))return a[e]},a.prototype.getLastResult=function(e){return this.getLast("result",e)},a.prototype.getLastError=function(e){return this.getLast("error",e)},a.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},a.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},a.prototype.refetch=function(e){var a,i={pollInterval:0};if("no-cache"===this.options.fetchPolicy?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&T.call(e,"variables")){var o=l.getQueryDefinition(this.query),s=o.variableDefinitions;s&&s.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||r.invariant.warn(21,e,(null==(a=o.name)?void 0:a.value)||o)}return e&&!p.equal(this.options.variables,e)&&(i.variables=this.options.variables=n.__assign(n.__assign({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(i,t.NetworkStatus.refetch)},a.prototype.fetchMore=function(e){var a=this,i=n.__assign(n.__assign({},e.query?e:n.__assign(n.__assign(n.__assign(n.__assign({},this.options),{query:this.options.query}),e),{variables:n.__assign(n.__assign({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):i.query;var s=this.queryInfo,p=s.networkStatus;s.networkStatus=t.NetworkStatus.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set,d=null==e?void 0:e.updateQuery,u="no-cache"!==this.options.fetchPolicy;return u||r.invariant(d,22),this.queryManager.fetchQuery(o,i,t.NetworkStatus.fetchMore).then(function(r){if(a.queryManager.removeQuery(o),s.networkStatus===t.NetworkStatus.fetchMore&&(s.networkStatus=p),u)a.queryManager.cache.batch({update:function(t){var n=e.updateQuery;n?t.updateQuery({query:a.query,variables:a.variables,returnPartialData:!0,optimistic:!1},function(e){return n(e,{fetchMoreResult:r.data,variables:i.variables})}):t.writeQuery({query:i.query,variables:i.variables,data:r.data})},onWatchUpdated:function(e){l.add(e.query)}});else{var c=a.getLast("result"),m=d(c.data,{fetchMoreResult:r.data,variables:i.variables});a.reportResult(n.__assign(n.__assign({},c),{networkStatus:p,loading:E(p),data:m}),a.variables)}return a.maskResult(r)}).finally(function(){u&&!l.has(a.query)&&a.reobserveCacheFirst()})},a.prototype.subscribeToMore=function(e){var t=this,a=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(a){var i=e.updateQuery;i&&t.updateQuery(function(e,t){return i(e,n.__assign({subscriptionData:a},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&r.invariant.error(23,t)}});return this.subscriptions.add(a),function(){t.subscriptions.delete(a)&&a.unsubscribe()}},a.prototype.setOptions=function(e){return this.reobserve(e)},a.prototype.silentSetOptions=function(e){var t=l.compact(this.options,e||{});A(this.options,t)},a.prototype.setVariables=function(e){return p.equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},t.NetworkStatus.setVariables):Promise.resolve()},a.prototype.updateQuery=function(e){var t=this.queryManager,a=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),i=a.result,n=a.complete,r=e(i,{variables:this.variables,complete:!!n,previousData:i});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},a.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},a.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},a.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var a=t.fetchPolicy,i=void 0===a?"cache-first":a,n=t.initialFetchPolicy,r=void 0===n?i:n;"standby"===i||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(i,{reason:e,options:t,observable:this,initialFetchPolicy:r}):"variables-changed"===e?t.fetchPolicy=r:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},a.prototype.fetch=function(e,t,a){var i=this.queryManager.getOrCreateQuery(this.queryId);return i.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(i,e,t,a)},a.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var a=this.pollingInfo,i=this.options.pollInterval;if(!i||!this.hasObservers()){a&&(clearTimeout(a.timeout),delete this.pollingInfo);return}if(!a||a.interval!==i){r.invariant(i,24),(a||(this.pollingInfo={})).interval=i;var n=function(){var a,i;e.pollingInfo&&(E(e.queryInfo.networkStatus)||(null==(i=(a=e.options).skipPollAttempt)?void 0:i.call(a))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},t.NetworkStatus.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},a.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var a=this.getLastError();return a&&this.last&&!p.equal(t,this.last.variables)&&(a=void 0),this.last=n.__assign({result:this.queryManager.assumeImmutableResults?e:l.cloneDeep(e),variables:t},a?{error:a}:null)},a.prototype.reobserveAsConcast=function(e,a){var i=this;this.isTornDown=!1;var r=a===t.NetworkStatus.refetch||a===t.NetworkStatus.fetchMore||a===t.NetworkStatus.poll,o=this.options.variables,s=this.options.fetchPolicy,d=l.compact(this.options,e||{}),c=r?d:A(this.options,d),m=this.transformDocument(c.query);this.lastQuery=m,!r&&(this.updatePolling(),e&&e.variables&&!p.equal(e.variables,o)&&"standby"!==c.fetchPolicy&&(c.fetchPolicy===s||"function"==typeof c.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",c),void 0===a&&(a=t.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=k(c.fetchPolicy));var f=function(){i.concast===g&&(i.waitForOwnResult=!1)},h=c.variables&&n.__assign({},c.variables),v=this.fetch(c,a,m),g=v.concast,y=v.fromLink,D={next:function(e){p.equal(i.variables,h)&&(f(),i.reportResult(e,h))},error:function(e){p.equal(i.variables,h)&&(u.isApolloError(e)||(e=new u.ApolloError({networkError:e})),f(),i.reportError(e,h))}};return r||!y&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=g,this.observer=D),g.addObserver(D),g},a.prototype.reobserve=function(e,t){return l.preventUnhandledRejection(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},a.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var a=this.last;this.resetLastResults();var i=this.subscribe.apply(this,e);return this.last=a,i},a.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},a.prototype.reportResult=function(e,t){var a=this.getLastError(),i=this.isDifferentFromLastResult(e,t);(a||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(a||i)&&l.iterateObserversSafely(this.observers,"next",this.maskResult(e))},a.prototype.reportError=function(e,a){var i=n.__assign(n.__assign({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:t.NetworkStatus.error,loading:!1});this.updateLastResult(i,a),l.iterateObserversSafely(this.observers,"error",this.last.error=e)},a.prototype.hasObservers=function(){return this.observers.size>0},a.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},a.prototype.transformDocument=function(e){return this.queryManager.transform(e)},a.prototype.maskResult=function(e){return e&&"data"in e?n.__assign(n.__assign({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},a.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},a.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},a.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},a.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!E(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},a.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,a=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,i){return(this.nextFetchPolicy=a,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,i):t}}):this.reobserve()},a.inactiveOnCreation=new c.Slot,a}(l.Observable);function O(e){!1!==globalThis.__DEV__&&r.invariant.error(25,e.message,e.stack)}function N(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&r.invariant.debug(26,e)}function k(e){return"network-only"===e||"no-cache"===e||"standby"===e}l.fixObservableSubclass(S);var I=new(l.canUseWeakMap?WeakMap:Map);function $(e,t){var a=e[t];"function"==typeof a&&(e[t]=function(){return I.set(e,(I.get(e)+1)%1e15),a.apply(this,arguments)})}var j=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var a=this.cache=e.cache;I.has(a)||(I.set(a,0),$(a,"evict"),$(a,"modify"),$(a,"reset"))}return e.prototype.init=function(e){var a=e.networkStatus||t.NetworkStatus.loading;return this.variables&&this.networkStatus!==t.NetworkStatus.loading&&!p.equal(this.variables,e.variables)&&(a=t.NetworkStatus.setVariables),p.equal(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:a}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&p.equal(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var a=this.cache.diff(e);return this.updateLastDiff(a,e),a},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,a,i=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),p.equal(i&&i.result,e&&e.result)||null==(a=this.observableQuery)||a.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var a=this.observableQuery;if(!a||"no-cache"!==a.options.fetchPolicy){var i=n.__assign(n.__assign({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&p.equal(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var a=this.lastWrite;return!(a&&a.dmCount===I.get(this.cache)&&p.equal(t,a.variables)&&p.equal(e.data,a.result.data))},e.prototype.markResult=function(e,t,a,i){var n,r=this,o=new l.DeepMerger,s=l.isNonEmptyArray(e.errors)?e.errors.slice(0):[];if(null==(n=this.observableQuery)||n.resetNotifications(),"incremental"in e&&l.isNonEmptyArray(e.incremental)){var d=l.mergeIncrementalData(this.getDiff().result,e);e.data=d}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=s,"no-cache"===a.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(a.variables)):0!==i&&(B(e,a.errorPolicy)?this.cache.performTransaction(function(n){if(r.shouldWrite(e,a.variables))n.writeQuery({query:t,data:e.data,variables:a.variables,overwrite:1===i}),r.lastWrite={result:e,variables:a.variables,dmCount:I.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete){e.data=r.lastDiff.diff.result;return}var o=r.getDiffOptions(a.variables),s=n.diff(o);!r.stopped&&p.equal(r.variables,a.variables)&&r.updateWatch(a.variables),r.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=t.NetworkStatus.ready},e.prototype.markError=function(e){var a;return this.networkStatus=t.NetworkStatus.error,this.lastWrite=void 0,null==(a=this.observableQuery)||a.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function B(e,t){void 0===t&&(t="none");var a="ignore"===t||"all"===t,i=!l.graphQLResultHasError(e);return!i&&a&&e.data&&(i=!0),i}var R=Object.prototype.hasOwnProperty,V=Object.create(null),P=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new l.AutoCleanedWeakCache(l.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new m.Trie(!1),this.noCacheWarningsByQueryId=new Set;var a=new l.DocumentTransform(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var i=e.documentTransform;this.documentTransform=i?a.concat(i).concat(a):a,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,a){e.stopQueryNoBroadcast(a)}),this.cancelPendingFetches(r.newInvariantError(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return n.__awaiter(this,arguments,void 0,function(e){var t,a,i,o,s,p,d,c=e.mutation,m=e.variables,f=e.optimisticResponse,h=e.updateQueries,v=e.refetchQueries,g=void 0===v?[]:v,y=e.awaitRefetchQueries,D=void 0!==y&&y,b=e.update,x=e.onQueryUpdated,_=e.fetchPolicy,w=void 0===_?(null==(p=this.defaultOptions.mutate)?void 0:p.fetchPolicy)||"network-only":_,E=e.errorPolicy,F=void 0===E?(null==(d=this.defaultOptions.mutate)?void 0:d.errorPolicy)||"none":E,C=e.keepRootFields,A=e.context;return n.__generator(this,function(e){switch(e.label){case 0:if(r.invariant(c,28),r.invariant("network-only"===w||"no-cache"===w,29),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),a=this.getDocumentInfo(c).hasClientExports,m=this.getVariables(c,m),!a)return[3,2];return[4,this.localState.addExportedVariables(c,m,A)];case 1:m=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:m,loading:!0,error:null}),o=f&&this.markMutationOptimistic(f,{mutationId:t,document:c,variables:m,fetchPolicy:w,errorPolicy:F,context:A,updateQueries:h,update:b,keepRootFields:C}),this.broadcastQueries(),s=this,[2,new Promise(function(e,a){return l.asyncMap(s.getObservableFromLink(c,n.__assign(n.__assign({},A),{optimisticResponse:o?f:void 0}),m,{},!1),function(e){if(l.graphQLResultHasError(e)&&"none"===F)throw new u.ApolloError({graphQLErrors:l.getGraphQLErrorsFromResult(e)});i&&(i.loading=!1,i.error=null);var a=n.__assign({},e);return"function"==typeof g&&(g=g(a)),"ignore"===F&&l.graphQLResultHasError(a)&&delete a.errors,s.markMutationResult({mutationId:t,result:a,document:c,variables:m,fetchPolicy:w,errorPolicy:F,context:A,update:b,updateQueries:h,awaitRefetchQueries:D,refetchQueries:g,removeOptimistic:o?t:void 0,onQueryUpdated:x,keepRootFields:C})}).subscribe({next:function(a){s.broadcastQueries(),"hasNext"in a&&!1!==a.hasNext||e(n.__assign(n.__assign({},a),{data:s.maskOperation({document:c,data:a.data,fetchPolicy:w,id:t})}))},error:function(e){i&&(i.loading=!1,i.error=e),o&&s.cache.removeOptimistic(t),s.broadcastQueries(),a(e instanceof u.ApolloError?e:new u.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var a=this;void 0===t&&(t=this.cache);var i=e.result,r=[],o="no-cache"===e.fetchPolicy;if(!o&&B(i,e.errorPolicy)){if(l.isExecutionPatchIncrementalResult(i)||r.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),l.isExecutionPatchIncrementalResult(i)&&l.isNonEmptyArray(i.incremental)){var s,p,d,u,c,m=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),f=void 0;m.result&&(s=m.result,p=i,u=s,c=new w,"incremental"in p&&Array.isArray(d=p.incremental)&&d.length>0&&p.incremental.forEach(function(e){for(var t=e.data,a=e.path,i=a.length-1;i>=0;--i){var n=a[i],r=isNaN(+n)?{}:[];r[n]=t,t=r}u=c.merge(u,t)}),f=u),void 0!==f&&(i.data=f,r.push({result:f,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var h=e.updateQueries;h&&this.queries.forEach(function(e,n){var o=e.observableQuery,s=o&&o.queryName;if(s&&R.call(h,s)){var p=h[s],d=a.queries.get(n),u=d.document,c=d.variables,m=t.diff({query:u,variables:c,returnPartialData:!0,optimistic:!1}),f=m.result;if(m.complete&&f){var v=p(f,{mutationResult:i,queryName:u&&l.getOperationName(u)||void 0,queryVariables:c});v&&r.push({result:v,dataId:"ROOT_QUERY",query:u,variables:c})}}})}if(r.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var v=[];if(this.refetchQueries({updateCache:function(t){o||r.forEach(function(e){return t.write(e)});var s=e.update,p=!l.isExecutionPatchResult(i)||l.isExecutionPatchIncrementalResult(i)&&!i.hasNext;if(s){if(!o){var d=t.diff({id:"ROOT_MUTATION",query:a.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});d.complete&&("incremental"in(i=n.__assign(n.__assign({},i),{data:d.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}p&&s(t,i,{context:e.context,variables:e.variables})}o||e.keepRootFields||!p||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var a=t.fieldName,i=t.DELETE;return"__typename"===a?e:i}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return v.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(v).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var a=this,i="function"==typeof e?e(t.variables,{IGNORE:V}):e;return i!==V&&(this.cache.recordOptimisticTransaction(function(e){try{a.markMutationResult(n.__assign(n.__assign({},t),{result:{data:i}}),e)}catch(e){!1!==globalThis.__DEV__&&r.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,a){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,a).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,a){e[a]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var a={hasClientExports:l.hasClientExports(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:l.hasDirectives(["nonreactive"],e),nonReactiveQuery:l.addNonReactiveToNamedFragments(e),clientQuery:this.localState.clientQuery(e),serverQuery:l.removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:l.getDefaultValues(l.getOperationDefinition(e)),asQuery:n.__assign(n.__assign({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?n.__assign(n.__assign({},e),{operation:"query"}):e})})};t.set(e,a)}return t.get(e)},e.prototype.getVariables=function(e,t){return n.__assign(n.__assign({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=n.__assign(n.__assign({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var a=new j(this),i=new S({queryManager:this,queryInfo:a,options:e});return i.lastQuery=t,S.inactiveOnCreation.getValue()||this.queries.set(i.queryId,a),a.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var a=this;void 0===t&&(t=this.generateQueryId()),r.invariant(e.query,30),r.invariant("Document"===e.query.kind,31),r.invariant(!e.returnPartialData,32),r.invariant(!e.pollInterval,33);var i=this.transform(e.query);return this.fetchQuery(t,n.__assign(n.__assign({},e),{query:i})).then(function(r){return r&&n.__assign(n.__assign({},r),{data:a.maskOperation({document:i,data:r.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return a.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(r.newInvariantError(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=t.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var a=new Map,i=new Map,o=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)i.set(e,e),o.set(e,!1);else if(l.isDocumentNode(e)){var a=l.print(t.transform(e));i.set(a,l.getOperationName(e)),o.set(a,!1)}else l.isNonNullObject(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,i){var n=t.observableQuery,r=t.document;if(n){if("all"===e)return void a.set(i,n);var s=n.queryName;if("standby"===n.options.fetchPolicy||"active"===e&&!n.hasObservers())return;("active"===e||s&&o.has(s)||r&&o.has(l.print(r)))&&(a.set(i,n),s&&o.set(s,!0),r&&o.set(l.print(r),!0))}}),s.size&&s.forEach(function(e){var i=l.makeUniqueId("legacyOneTimeQuery"),o=t.getOrCreateQuery(i).init({document:e.query,variables:e.variables}),s=new S({queryManager:t,queryInfo:o,options:n.__assign(n.__assign({},e),{fetchPolicy:"network-only"})});r.invariant(s.queryId===i),o.setObservableQuery(s),a.set(i,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){if(!e){var a=i.get(t);a?!1!==globalThis.__DEV__&&r.invariant.warn(35,a):!1!==globalThis.__DEV__&&r.invariant.warn(36)}}),a},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var a=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,n){var r=i.options.fetchPolicy;i.resetLastResults(),(e||"standby"!==r&&"cache-only"!==r)&&a.push(i.refetch()),(t.queries.get(n)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(a)},e.prototype.startGraphQLSubscription=function(e){var t=this,a=e.query,i=e.variables,n=e.fetchPolicy,r=e.errorPolicy,o=void 0===r?"none":r,s=e.context,p=void 0===s?{}:s,d=e.extensions,c=void 0===d?{}:d;a=this.transform(a),i=this.getVariables(a,i);var m=function(e){return t.getObservableFromLink(a,p,e,c).map(function(i){"no-cache"!==n&&(B(i,o)&&t.cache.write({query:a,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var r=l.graphQLResultHasError(i),s=u.graphQLResultHasProtocolErrors(i);if(r||s){var p={};if(r&&(p.graphQLErrors=i.errors),s&&(p.protocolErrors=i.extensions[u.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new u.ApolloError(p)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(a).hasClientExports){var f=this.localState.addExportedVariables(a,i,p).then(m);return new l.Observable(function(e){var t=null;return f.then(function(a){return t=a.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return m(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,a,i,r){var s,p,u=this;void 0===r&&(r=null!=(s=null==t?void 0:t.queryDeduplication)?s:this.queryDeduplication);var c=this.getDocumentInfo(e),m=c.serverQuery,f=c.clientQuery;if(m){var h=this.inFlightLinkObservables,v=this.link,g={query:m,variables:a,operationName:l.getOperationName(m)||void 0,context:this.prepareContext(n.__assign(n.__assign({},t),{forceFetch:!r})),extensions:i};if(t=g.context,r){var y=l.print(m),D=d.canonicalStringify(a),b=h.lookup(y,D);if(!(p=b.observable)){var x=new l.Concast([o.execute(v,g)]);p=b.observable=x,x.beforeNext(function e(t,a){"next"===t&&"hasNext"in a&&a.hasNext?x.beforeNext(e):h.remove(y,D)})}}else p=new l.Concast([o.execute(v,g)])}else p=new l.Concast([l.Observable.of({data:{}})]),t=this.prepareContext(t);return f&&(p=l.asyncMap(p,function(e){return u.localState.runResolvers({document:f,remoteResult:e,context:t,variables:a})})),p},e.prototype.getResultsFromLink=function(e,a,i){var n=e.lastRequestId=this.generateRequestId(),r=this.cache.transformForLink(i.query);return l.asyncMap(this.getObservableFromLink(r,i.context,i.variables),function(o){var s=l.getGraphQLErrorsFromResult(o),p=s.length>0,d=i.errorPolicy;if(n>=e.lastRequestId){if(p&&"none"===d)throw e.markError(new u.ApolloError({graphQLErrors:s}));e.markResult(o,r,i,a),e.markReady()}var c={data:o.data,loading:!1,networkStatus:t.NetworkStatus.ready};return p&&"none"===d&&(c.data=void 0),p&&"ignore"!==d&&(c.errors=s,c.networkStatus=t.NetworkStatus.error),c},function(t){var a=u.isApolloError(t)?t:new u.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(a),a})},e.prototype.fetchConcastWithInfo=function(e,a,i,n){var r,o,s=this;void 0===i&&(i=t.NetworkStatus.loading),void 0===n&&(n=a.query);var p=this.getVariables(n,a.variables),d=this.defaultOptions.watchQuery,u=a.fetchPolicy,c=void 0===u?d&&d.fetchPolicy||"cache-first":u,m=a.errorPolicy,f=void 0===m?d&&d.errorPolicy||"none":m,h=a.returnPartialData,v=a.notifyOnNetworkStatusChange,g=a.context,y=Object.assign({},a,{query:n,variables:p,fetchPolicy:c,errorPolicy:f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===g?{}:g}),D=function(t){y.variables=t;var n=s.fetchQueryByPolicy(e,y,i);return"standby"!==y.fetchPolicy&&n.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",a),n},b=function(){return s.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return r.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)r=new l.Concast(this.localState.addExportedVariables(y.query,y.variables,y.context).then(D).then(function(e){return e.sources})),o=!0;else{var x=D(y.variables);o=x.fromLink,r=new l.Concast(x.sources)}return r.promise.then(b,b),{concast:r,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,a=e.updateCache,i=e.include,n=e.optimistic,r=void 0!==n&&n,o=e.removeOptimistic,s=void 0===o?r?l.makeUniqueId("refetchQueries"):void 0:o,p=e.onQueryUpdated,d=new Map;i&&this.getObservableQueries(i).forEach(function(e,a){d.set(a,{oq:e,lastDiff:(t.queries.get(a)||e.queryInfo).getDiff()})});var u=new Map;return a&&this.cache.batch({update:a,optimistic:r&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,a){var i=e.watcher instanceof j&&e.watcher.observableQuery;if(i){if(p){d.delete(i.queryId);var n=p(i,t,a);return!0===n&&(n=i.refetch()),!1!==n&&u.set(i,n),n}null!==p&&d.set(i.queryId,{oq:i,lastDiff:a,diff:t})}}}),d.size&&d.forEach(function(e,a){var i,n=e.oq,r=e.lastDiff,o=e.diff;p&&(o||(o=t.cache.diff(n.queryInfo.getDiffOptions())),i=p(n,o,r)),p&&!0!==i||(i=n.refetch()),!1!==i&&u.set(n,i),a.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(a)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t,a,i,n=e.document,o=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,p=e.id,d=null==(t=l.getOperationDefinition(n))?void 0:t.operation,u=(null!=(a=null==d?void 0:d[0])?a:"o")+p;!this.dataMasking||"no-cache"!==s||l.isFullyUnmaskedOperation(n)||this.noCacheWarningsByQueryId.has(u)||(this.noCacheWarningsByQueryId.add(u),!1!==globalThis.__DEV__&&r.invariant.warn(37,null!=(i=l.getOperationName(n))?i:"Unnamed ".concat(null!=d?d:"operation")))}return this.dataMasking?f.maskOperation(o,n,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,a=e.fragment,i=e.fragmentName;return this.dataMasking?f.maskFragment(t,a,this.cache,i):t},e.prototype.fetchQueryByPolicy=function(e,a,i){var r=this,o=a.query,s=a.variables,d=a.fetchPolicy,u=a.refetchWritePolicy,c=a.errorPolicy,m=a.returnPartialData,f=a.context,h=a.notifyOnNetworkStatusChange,v=e.networkStatus;e.init({document:o,variables:s,networkStatus:i});var g=function(){return e.getDiff()},y=function(a,i){void 0===i&&(i=e.networkStatus||t.NetworkStatus.loading);var d=a.result;!1===globalThis.__DEV__||m||p.equal(d,{})||N(a.missing);var u=function(e){return l.Observable.of(n.__assign({data:e,loading:E(i),networkStatus:i},a.complete?null:{partial:!0}))};return d&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:d},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&i===t.NetworkStatus.refetch&&Array.isArray(a.missing)?u(void 0):u(d)},D="no-cache"===d?0:i===t.NetworkStatus.refetch&&"merge"!==u?1:2,b=function(){return r.getResultsFromLink(e,D,{query:o,variables:s,context:f,fetchPolicy:d,errorPolicy:c})},x=h&&"number"==typeof v&&v!==i&&E(i);switch(d){default:case"cache-first":var _=g();if(_.complete)return{fromLink:!1,sources:[y(_,e.markReady())]};if(m||x)return{fromLink:!0,sources:[y(_),b()]};return{fromLink:!0,sources:[b()]};case"cache-and-network":var _=g();if(_.complete||m||x)return{fromLink:!0,sources:[y(_),b()]};return{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[y(g(),e.markReady())]};case"network-only":if(x)return{fromLink:!0,sources:[y(g()),b()]};return{fromLink:!0,sources:[b()]};case"no-cache":if(x)return{fromLink:!0,sources:[y(e.getDiff()),b()]};return{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new j(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return n.__assign(n.__assign(n.__assign({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),L=function(){function e(e){var t=e.cache,a=e.client,i=e.resolvers,n=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,a&&(this.client=a),i&&this.addResolvers(i),n&&this.setFragmentMatcher(n)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=l.mergeDeep(t.resolvers,e)}):this.resolvers=l.mergeDeep(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return n.__awaiter(this,arguments,void 0,function(e){var t=e.document,a=e.remoteResult,i=e.context,r=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return n.__generator(this,function(e){return t?[2,this.resolveDocument(t,a.data,i,r,this.fragmentMatcher,s).then(function(e){return n.__assign(n.__assign({},a),{data:e.result})})]:[2,a]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return l.hasDirectives(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return l.removeClientSetsFromDocument(e)},e.prototype.prepareContext=function(e){var t=this.cache;return n.__assign(n.__assign({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return n.__awaiter(this,arguments,void 0,function(e,t,a){return void 0===t&&(t={}),void 0===a&&(a={}),n.__generator(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(a),t).then(function(e){return n.__assign(n.__assign({},t),e.exportedVariables)})]:[2,n.__assign({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return h.visit(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return h.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:l.buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return n.__awaiter(this,arguments,void 0,function(e,t,a,i,r,o){var s,p,d,u,c,m,f,h,v,g;return void 0===a&&(a={}),void 0===i&&(i={}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=!1),n.__generator(this,function(y){return s=l.getMainDefinition(e),p=l.getFragmentDefinitions(e),d=l.createFragmentMap(p),u=this.collectSelectionsToResolve(s,d),m=(c=s.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=this,h=f.cache,v=f.client,g={fragmentMap:d,context:n.__assign(n.__assign({},a),{cache:h,client:v}),variables:i,fragmentMatcher:r,defaultOperationType:m,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,a,i){return n.__awaiter(this,void 0,void 0,function(){var o,s,p,d,u,c=this;return n.__generator(this,function(m){return o=i.fragmentMap,s=i.context,p=i.variables,d=[a],u=function(e){return n.__awaiter(c,void 0,void 0,function(){var u,c;return n.__generator(this,function(n){return(t||i.selectionsToResolve.has(e))&&l.shouldInclude(e,p)?l.isField(e)?[2,this.resolveField(e,t,a,i).then(function(t){var a;void 0!==t&&d.push(((a={})[l.resultKeyNameFromField(e)]=t,a))})]:(l.isInlineFragment(e)?u=e:(u=o[e.name.value],r.invariant(u,19,e.name.value)),u&&u.typeCondition&&(c=u.typeCondition.name.value,i.fragmentMatcher(a,c,s)))?[2,this.resolveSelectionSet(u.selectionSet,t,a,i).then(function(e){d.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return l.mergeDeepArray(d)})]})})},e.prototype.resolveField=function(e,t,a,i){return n.__awaiter(this,void 0,void 0,function(){var r,o,s,p,u,c,m,f,h,v=this;return n.__generator(this,function(n){return a?(r=i.variables,p=(o=e.name.value)!==(s=l.resultKeyNameFromField(e)),c=Promise.resolve(u=a[s]||a[o]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(m=a.__typename||i.defaultOperationType,(f=this.resolvers&&this.resolvers[m])&&(h=f[p?o:s])&&(c=Promise.resolve(d.cacheSlot.withValue(this.cache,h,[a,l.argumentsObjectFromField(e,r),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,c.then(function(a){if(void 0===a&&(a=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=a)})}),!e.selectionSet||null==a)return a;var n,r,o=null!=(r=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&r;return Array.isArray(a)?v.resolveSubSelectedArray(e,t||o,a,i):e.selectionSet?v.resolveSelectionSet(e.selectionSet,t||o,a,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,a,i){var n=this;return Promise.all(a.map(function(a){return null===a?null:Array.isArray(a)?n.resolveSubSelectedArray(e,t,a,i):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,a,i):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var a=function(e){return!Array.isArray(e)},i=this.selectionsToResolveCache;return function e(n){if(!i.has(n)){var o=new Set;i.set(n,o),h.visit(n,{Directive:function(e,t,i,n,r){"client"===e.name.value&&r.forEach(function(e){a(e)&&h.isSelectionNode(e)&&o.add(e)})},FragmentSpread:function(i,n,s,p,l){var d=t[i.name.value];r.invariant(d,20,i.name.value);var u=e(d);u.size>0&&(l.forEach(function(e){a(e)&&h.isSelectionNode(e)&&o.add(e)}),o.add(i),u.forEach(function(e){o.add(e)}))}})}return i.get(n)}(e)},e}(),M=Symbol.for("apollo.cacheSize"),U=n.__assign({},r.global[M]),q={},G=!1!==globalThis.__DEV__?function(){var e,t,a,i,r;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],a=e[1];return[t,U[t]||a]})),sizes:n.__assign({print:null==(e=q.print)?void 0:e.call(q),parser:null==(t=q.parser)?void 0:t.call(q),canonicalStringify:null==(a=q.canonicalStringify)?void 0:a.call(q),links:function e(t){var a;return t?n.__spreadArray(n.__spreadArray([null==(a=null==t?void 0:t.getMemoryInternals)?void 0:a.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(z):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:(function e(t){var a,i;return t?n.__spreadArray(n.__spreadArray([(i=a=null==t?void 0:t.performWork)&&"dirtyKey"in i?a.size:void 0],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(z):[]})(this.queryManager.documentTransform).map(function(e){return{cache:e}})}},null==(r=(i=this.cache).getMemoryInternals)?void 0:r.call(i))}}:void 0;function z(e){return null!=e}var Y=!1,Q=function(){function e(e){var t,a=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw r.newInvariantError(16);var i=e.uri,p=e.credentials,l=e.headers,d=e.cache,u=e.documentTransform,c=e.ssrMode,m=void 0!==c&&c,f=e.ssrForceFetchDelay,h=void 0===f?0:f,v=e.connectToDevTools,g=e.queryDeduplication,y=void 0===g||g,D=e.defaultOptions,b=e.defaultContext,x=e.assumeImmutableResults,_=void 0===x?d.assumeImmutableResults:x,w=e.resolvers,E=e.typeDefs,F=e.fragmentMatcher,C=e.name,A=e.version,T=e.devtools,S=e.dataMasking,O=e.link;O||(O=i?new s.HttpLink({uri:i,credentials:p,headers:l}):o.ApolloLink.empty()),this.link=O,this.cache=d,this.disableNetworkFetches=m||h>0,this.queryDeduplication=y,this.defaultOptions=D||Object.create(null),this.typeDefs=E,this.devtoolsConfig=n.__assign(n.__assign({},T),{enabled:null!=(t=null==T?void 0:T.enabled)?t:v}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),h&&setTimeout(function(){return a.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version="3.13.8",this.localState=new L({cache:d,client:this,resolvers:w,fragmentMatcher:F}),this.queryManager=new P({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:b,documentTransform:u,queryDeduplication:y,ssrMode:m,dataMasking:!!S,clientAwareness:{name:C,version:A},localState:this.localState,assumeImmutableResults:_,onBroadcast:this.devtoolsConfig.enabled?function(){a.devToolsHookCb&&a.devToolsHookCb({action:{},state:{queries:a.queryManager.getQueryStore(),mutations:a.queryManager.mutationStore||{}},dataWithOptimisticResults:a.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!Y&&!1!==globalThis.__DEV__&&(Y=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,a=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&!1!==globalThis.__DEV__&&r.invariant.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=l.mergeOptions(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=n.__assign(n.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=l.mergeOptions(this.defaultOptions.query,e)),r.invariant("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=n.__assign(n.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=l.mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,a=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return n.__assign(n.__assign({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:a})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(n.__assign(n.__assign({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return o.execute(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),a=[],i=[];t.forEach(function(e,t){a.push(t),i.push(e)});var n=Promise.all(i);return n.queries=a,n.results=i,n.catch(function(e){!1!==globalThis.__DEV__&&r.invariant.debug(18,e)}),n},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();for(var J in!1!==globalThis.__DEV__&&(Q.prototype.getMemoryInternals=G),g.setVerbosity(!1!==globalThis.__DEV__?"log":"silent"),t.DocumentTransform=l.DocumentTransform,t.Observable=l.Observable,t.isReference=l.isReference,t.makeReference=l.makeReference,t.mergeOptions=l.mergeOptions,t.ApolloCache=d.ApolloCache,t.Cache=d.Cache,t.InMemoryCache=d.InMemoryCache,t.MissingFieldError=d.MissingFieldError,t.defaultDataIdFromObject=d.defaultDataIdFromObject,t.makeVar=d.makeVar,t.ApolloError=u.ApolloError,t.isApolloError=u.isApolloError,t.fromError=v.fromError,t.fromPromise=v.fromPromise,t.throwServerError=v.throwServerError,t.toPromise=v.toPromise,t.setLogVerbosity=g.setVerbosity,t.disableExperimentalFragmentVariables=y.disableExperimentalFragmentVariables,t.disableFragmentWarnings=y.disableFragmentWarnings,t.enableExperimentalFragmentVariables=y.enableExperimentalFragmentVariables,t.gql=y.gql,t.resetCaches=y.resetCaches,t.ApolloClient=Q,t.ObservableQuery=S,t.isNetworkRequestSettled=function(e){return 7===e||8===e},o)"default"===J||t.hasOwnProperty(J)||(t[J]=o[J]);for(var J in s)"default"===J||t.hasOwnProperty(J)||(t[J]=s[J])},78549(e,t,a){var i=a(85608),n=a(4232),r=a(5437);t.o=function(e){return new n.ApolloLink(function(t,a){var n=i.__rest(t,[]);return new r.Observable(function(i){var r,o=!1;return Promise.resolve(n).then(function(a){return e(a,t.getContext())}).then(t.setContext).then(function(){o||(r=a(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,r&&r.unsubscribe()}})})}},16699(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},66442(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i},e.exports.__esModule=!0,e.exports.default=e.exports},3634(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},62192(e,t,a){var i=a(16699);e.exports=function(e){var t={},a=!1;function n(t,n){return a=!0,{done:!1,value:new i(n=new Promise(function(a){a(e[t](n))}),1)}}return t["u">typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return a?(a=!1,e):n("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(a)throw a=!1,e;return n("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return a?(a=!1,e):n("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},99436(e){function t(e,t,a,i,n,r,o){try{var s=e[r](o),p=s.value}catch(e){return void a(e)}s.done?t(p):Promise.resolve(p).then(i,n)}e.exports=function(e){return function(){var a=this,i=arguments;return new Promise(function(n,r){var o=e.apply(a,i);function s(e){t(o,n,r,s,p,"next",e)}function p(e){t(o,n,r,s,p,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},32235(e,t,a){var i=a(16699);e.exports=function(e){return new i(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},5018(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},44668(e,t,a){var i=a(56347);function n(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}e.exports=function(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},96525(e){e.exports=function(e,t){var a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,n,r,o,s=[],p=!0,l=!1;try{if(r=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;p=!1}else for(;!(p=(i=r.call(a)).done)&&(s.push(i.value),s.length!==t);p=!0);}catch(e){l=!0,n=e}finally{try{if(!p&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(l)throw n}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},5523(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},68832(e,t,a){var i=a(3634),n=a(96525),r=a(78243),o=a(5523);e.exports=function(e,t){return i(e)||n(e,t)||r(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},23878(e,t,a){var i=a(14319).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},56347(e,t,a){var i=a(14319).default,n=a(23878);e.exports=function(e){var t=n(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},14319(e){function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},78243(e,t,a){var i=a(66442);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var a=({}).toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},4275(e,t,a){var i=a(16699);function n(e){var t,a;function n(t,a){try{var o=e[t](a),s=o.value,p=s instanceof i;Promise.resolve(p?s.v:s).then(function(a){if(p){var i="return"===t?"return":"next";if(!s.k||a.done)return n(i,a);a=e[i](a).value}r(o.done?"return":"normal",a)},function(e){n("throw",e)})}catch(e){r("throw",e)}}function r(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):a=null}this._invoke=function(e,i){return new Promise(function(r,o){var s={key:e,arg:i,resolve:r,reject:o,next:null};a?a=a.next=s:(t=a=s,n(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)},e.exports=function(e){return function(){return new n(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},65181(e,t,a){let{Argument:i}=a(41762),{Command:n}=a(18572),{CommanderError:r,InvalidArgumentError:o}=a(43823),{Help:s}=a(99690),{Option:p}=a(92088);t.DM=new n,t.gu=e=>new n(e),t.Ww=(e,t)=>new p(e,t),t.er=(e,t)=>new i(e,t),t.uB=n,t.c$=p,t.ef=i,t._V=s,t.b7=r,t.Di=o,t.a2=o},41762(e,t,a){let{InvalidArgumentError:i}=a(43823);t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.length>3&&"..."===this._name.slice(-3)&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=function(e){let t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}},18572(e,t,a){let i=a(78474).EventEmitter,n=a(31421),r=a(76760),o=a(73024),s=a(1708),{Argument:p,humanReadableArgName:l}=a(41762),{CommanderError:d}=a(43823),{Help:u}=a(99690),{Option:c,DualOptions:m}=a(92088),{suggestSimilar:f}=a(86054);class h extends i{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:e=>s.stdout.write(e),writeErr:e=>s.stderr.write(e),getOutHelpWidth:()=>s.stdout.isTTY?s.stdout.columns:void 0,getErrHelpWidth:()=>s.stderr.isTTY?s.stderr.columns:void 0,outputError:(e,t)=>t(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,a){let i=t,n=a;"object"==typeof i&&null!==i&&(n=i,i=null),n=n||{};let[,r,o]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(r);return(i&&(s.description(i),s._executableHandler=!0),n.isDefault&&(this._defaultCommandName=s._name),s._hidden=!!(n.noHelp||n.hidden),s._executableFile=n.executableFile||null,o&&s.arguments(o),this._registerCommand(s),s.parent=this,s.copyInheritedSettings(this),i)?this:s}createCommand(e){return new h(e)}createHelp(){return Object.assign(new u,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
|
|
5
5
|
- specify the name in Command constructor or using .name()`);return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new p(e,t)}argument(e,t,a,i){let n=this.createArgument(e,t);return"function"==typeof a?n.default(i).argParser(a):n.default(a),this.addArgument(n),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic)throw Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if("boolean"==typeof e)return this._addImplicitHelpCommand=e,this;let[,a,i]=(e=e??"help [command]").match(/([^ ]+) *(.*)/),n=t??"display help for command",r=this.createCommand(a);return r.helpOption(!1),i&&r.arguments(i),n&&r.description(n),this._addImplicitHelpCommand=!0,this._helpCommand=r,this}addHelpCommand(e,t){return"object"!=typeof e?this.helpCommand(e,t):(this._addImplicitHelpCommand=!0,this._helpCommand=e),this}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){let a=["preSubcommand","preAction","postAction"];if(!a.includes(e))throw Error(`Unexpected value for event passed to hook : '${e}'.
|
|
6
6
|
Expecting one of '${a.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=e=>{if("commander.executeSubCommandAsync"!==e.code)throw e},this}_exit(e,t,a){this._exitCallback&&this._exitCallback(new d(e,t,a)),s.exit(e)}action(e){let t=t=>{let a=this.registeredArguments.length,i=t.slice(0,a);return this._storeOptionsAsProperties?i[a]=this:i[a]=this.opts(),i.push(this),e.apply(this,i)};return this._actionHandler=t,this}createOption(e,t){return new c(e,t)}_callParseArg(e,t,a,i){try{return e.parseArg(t,a)}catch(e){if("commander.invalidArgument"===e.code){let t=`${i} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){let a=e.long&&this._findOption(e.long)?e.long:e.short;throw Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${a}'
|
|
7
7
|
- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){let t=e=>[e.name()].concat(e.aliases()),a=t(e).find(e=>this._findCommand(e));if(a){let i=t(this._findCommand(a)).join("|"),n=t(e).join("|");throw Error(`cannot add command '${n}' as already have command '${i}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),a=e.attributeName();if(e.negate){let t=e.long.replace(/^--no-/,"--");this._findOption(t)||this.setOptionValueWithSource(a,void 0===e.defaultValue||e.defaultValue,"default")}else void 0!==e.defaultValue&&this.setOptionValueWithSource(a,e.defaultValue,"default");let i=(t,i,n)=>{null==t&&void 0!==e.presetArg&&(t=e.presetArg);let r=this.getOptionValue(a);null!==t&&e.parseArg?t=this._callParseArg(e,t,r,i):null!==t&&e.variadic&&(t=e._concatValue(t,r)),null==t&&(t=!e.negate&&(!!e.isBoolean()||!!e.optional||"")),this.setOptionValueWithSource(a,t,n)};return this.on("option:"+t,t=>{let a=`error: option '${e.flags}' argument '${t}' is invalid.`;i(t,a,"cli")}),e.envVar&&this.on("optionEnv:"+t,t=>{let a=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;i(t,a,"env")}),this}_optionEx(e,t,a,i,n){if("object"==typeof t&&t instanceof c)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let r=this.createOption(t,a);if(r.makeOptionMandatory(!!e.mandatory),"function"==typeof i)r.default(n).argParser(i);else if(i instanceof RegExp){let e=i;i=(t,a)=>{let i=e.exec(t);return i?i[0]:a},r.default(n).argParser(i)}else r.default(i);return this.addOption(r)}option(e,t,a,i){return this._optionEx({},e,t,a,i)}requiredOption(e,t,a,i){return this._optionEx({mandatory:!0},e,t,a,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,a){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=a,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(a=>{void 0!==a.getOptionValueSource(e)&&(t=a.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){let a;if(void 0!==e&&!Array.isArray(e))throw Error("first parameter to parse must be array or undefined");if(t=t||{},void 0===e&&void 0===t.from){s.versions?.electron&&(t.from="electron");let e=s.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(t.from="eval")}switch(void 0===e&&(e=s.argv),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],a=e.slice(2);break;case"electron":s.defaultApp?(this._scriptPath=e[1],a=e.slice(2)):a=e.slice(1);break;case"user":a=e.slice(0);break;case"eval":a=e.slice(1);break;default:throw Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",a}parse(e,t){let a=this._prepareUserArgs(e,t);return this._parseCommand([],a),this}async parseAsync(e,t){let a=this._prepareUserArgs(e,t);return await this._parseCommand([],a),this}_executeSubCommand(e,t){let a;t=t.slice();let i=!1,p=[".js",".ts",".tsx",".mjs",".cjs"];function l(e,t){let a=r.resolve(e,t);if(o.existsSync(a))return a;if(p.includes(r.extname(t)))return;let i=p.find(e=>o.existsSync(`${a}${e}`));if(i)return`${a}${i}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let u=e._executableFile||`${this._name}-${e._name}`,c=this._executableDir||"";if(this._scriptPath){let e;try{e=o.realpathSync(this._scriptPath)}catch(t){e=this._scriptPath}c=r.resolve(r.dirname(e),c)}if(c){let t=l(c,u);if(!t&&!e._executableFile&&this._scriptPath){let a=r.basename(this._scriptPath,r.extname(this._scriptPath));a!==this._name&&(t=l(c,`${a}-${e._name}`))}u=t||u}i=p.includes(r.extname(u)),"win32"!==s.platform?i?(t.unshift(u),t=v(s.execArgv).concat(t),a=n.spawn(s.argv[0],t,{stdio:"inherit"})):a=n.spawn(u,t,{stdio:"inherit"}):(t.unshift(u),t=v(s.execArgv).concat(t),a=n.spawn(s.execPath,t,{stdio:"inherit"})),a.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(e=>{s.on(e,()=>{!1===a.killed&&null===a.exitCode&&a.kill(e)})});let m=this._exitCallback;a.on("close",e=>{e=e??1,m?m(new d(e,"commander.executeSubCommandAsync","(close)")):s.exit(e)}),a.on("error",t=>{if("ENOENT"===t.code){let t=c?`searched for local subcommand relative to directory '${c}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";throw Error(`'${u}' does not exist
|
|
@@ -15,10 +15,10 @@ Expecting one of '${a.join("', '")}'`);let i=`${e}Help`;return this.on(i,e=>{let
|
|
|
15
15
|
`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}}function v(e){return e.map(e=>{let t,a;if(!e.startsWith("--inspect"))return e;let i="127.0.0.1",n="9229";return(null!==(a=e.match(/^(--inspect(-brk)?)$/))?t=a[1]:null!==(a=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(t=a[1],/^\d+$/.test(a[3])?n=a[3]:i=a[3]):null!==(a=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(t=a[1],i=a[3],n=a[4]),t&&"0"!==n)?`${t}=${i}:${parseInt(n)+1}`:e})}t.Command=h},43823(e,t){class a extends Error{constructor(e,t,a){super(a),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}}t.CommanderError=a,t.InvalidArgumentError=class extends a{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}},99690(e,t,a){let{humanReadableArgName:i}=a(41762);t.Help=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let t=e.commands.filter(e=>!e._hidden),a=e._getHelpCommand();return a&&!a._hidden&&t.push(a),this.sortSubcommands&&t.sort((e,t)=>e.name().localeCompare(t.name())),t}compareOptions(e,t){let a=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return a(e).localeCompare(a(t))}visibleOptions(e){let t=e.options.filter(e=>!e.hidden),a=e._getHelpOption();if(a&&!a.hidden){let i=a.short&&e._findOption(a.short),n=a.long&&e._findOption(a.long);i||n?a.long&&!n?t.push(e.createOption(a.long,a.description)):a.short&&!i&&t.push(e.createOption(a.short,a.description)):t.push(a)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let a=e.parent;a;a=a.parent){let e=a.options.filter(e=>!e.hidden);t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return(e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(e=>e.description))?e.registeredArguments:[]}subcommandTerm(e){let t=e.registeredArguments.map(e=>i(e)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((e,a)=>Math.max(e,t.subcommandTerm(a).length),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((e,a)=>Math.max(e,t.optionTerm(a).length),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((e,a)=>Math.max(e,t.optionTerm(a).length),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((e,a)=>Math.max(e,t.argumentTerm(a).length),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let a="";for(let t=e.parent;t;t=t.parent)a=t.name()+" "+a;return a+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];return(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(", ")}`),void 0!==e.defaultValue&&(e.required||e.optional||e.isBoolean()&&"boolean"==typeof e.defaultValue)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),void 0!==e.presetArg&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),void 0!==e.envVar&&t.push(`env: ${e.envVar}`),t.length>0)?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(", ")}`),void 0!==e.defaultValue&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let a=`(${t.join(", ")})`;return e.description?`${e.description} ${a}`:a}return e.description}formatHelp(e,t){let a=t.padWidth(e,t),i=t.helpWidth||80;function n(e,n){if(n){let r=`${e.padEnd(a+2)}${n}`;return t.wrap(r,i-2,a+2)}return e}function r(e){return e.join("\n").replace(/^/gm," ".repeat(2))}let o=[`Usage: ${t.commandUsage(e)}`,""],s=t.commandDescription(e);s.length>0&&(o=o.concat([t.wrap(s,i,0),""]));let p=t.visibleArguments(e).map(e=>n(t.argumentTerm(e),t.argumentDescription(e)));p.length>0&&(o=o.concat(["Arguments:",r(p),""]));let l=t.visibleOptions(e).map(e=>n(t.optionTerm(e),t.optionDescription(e)));if(l.length>0&&(o=o.concat(["Options:",r(l),""])),this.showGlobalOptions){let a=t.visibleGlobalOptions(e).map(e=>n(t.optionTerm(e),t.optionDescription(e)));a.length>0&&(o=o.concat(["Global Options:",r(a),""]))}let d=t.visibleCommands(e).map(e=>n(t.subcommandTerm(e),t.subcommandDescription(e)));return d.length>0&&(o=o.concat(["Commands:",r(d),""])),o.join("\n")}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,a,i=40){let n=RegExp("[\\n][ \\f\\t\\v\xa0 - \uFEFF]+");if(e.match(n))return e;let r=t-a;if(r<i)return e;let o=e.slice(0,a),s=e.slice(a).replace("\r\n","\n"),p=" ".repeat(a),l="\\s",d=RegExp(`
|
|
16
16
|
|.{1,${r-1}}([${l}]|$)|[^${l}]+?([${l}]|$)`,"g");return o+(s.match(d)||[]).map((e,t)=>"\n"===e?"":(t>0?p:"")+e.trimEnd()).join("\n")}}},92088(e,t,a){let{InvalidArgumentError:i}=a(43823);t.Option=class{constructor(e,t){let a,i,n;this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let r=((n=e.split(/[ |,]+/)).length>1&&!/^[[<]/.test(n[1])&&(a=n.shift()),i=n.shift(),!a&&/^-[^-]$/.test(i)&&(a=i,i=void 0),{shortFlag:a,longFlag:i});this.short=r.shortFlag,this.long=r.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return"string"==typeof e&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,t):e},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.name().replace(/^no-/,"").split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},t.DualOptions=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){let a=t.attributeName();if(!this.dualOptions.has(a))return!0;let i=this.negativeOptions.get(a).presetArg;return t.negate===((void 0!==i&&i)===e)}}},86054(e,t){t.suggestSimilar=function(e,t){if(!t||0===t.length)return"";t=Array.from(new Set(t));let a=e.startsWith("--");a&&(e=e.slice(2),t=t.map(e=>e.slice(2)));let i=[],n=3;return(t.forEach(t=>{if(t.length<=1)return;let a=function(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let a=[];for(let t=0;t<=e.length;t++)a[t]=[t];for(let e=0;e<=t.length;e++)a[0][e]=e;for(let i=1;i<=t.length;i++)for(let n=1;n<=e.length;n++){let r=1;r=+(e[n-1]!==t[i-1]),a[n][i]=Math.min(a[n-1][i]+1,a[n][i-1]+1,a[n-1][i-1]+r),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(a[n][i]=Math.min(a[n][i],a[n-2][i-2]+1))}return a[e.length][t.length]}(e,t),r=Math.max(e.length,t.length);(r-a)/r>.4&&(a<n?(n=a,i=[t]):a===n&&i.push(t))}),i.sort((e,t)=>e.localeCompare(t)),a&&(i=i.map(e=>`--${e}`)),i.length>1)?`
|
|
17
17
|
(Did you mean one of ${i.join(", ")}?)`:1===i.length?`
|
|
18
|
-
(Did you mean ${i[0]}?)`:""}},57504(e,t,a){let i=a(7066),n=i?.WriteStream?.prototype?.hasColors?.()??!1,r=(e,t)=>{if(!n)return e=>e;let a=`\u001B[${e}m`,i=`\u001B[${t}m`;return e=>{let n=e+"",r=n.indexOf(i);if(-1===r)return a+n+i;let o=a,s=0,p=(22===t?i:"")+a;for(;-1!==r;)o+=n.slice(s,r)+p,s=r+i.length,r=n.indexOf(i,s);return o+(n.slice(s)+i)}},o={};o.reset=r(0,0),o.bold=r(1,22),o.dim=r(2,22),o.italic=r(3,23),o.underline=r(4,24),o.overline=r(53,55),o.inverse=r(7,27),o.hidden=r(8,28),o.strikethrough=r(9,29),o.black=r(30,39),o.red=r(31,39),o.green=r(32,39),o.yellow=r(33,39),o.blue=r(34,39),o.magenta=r(35,39),o.cyan=r(36,39),o.white=r(37,39),o.gray=r(90,39),o.bgBlack=r(40,49),o.bgRed=r(41,49),o.bgGreen=r(42,49),o.bgYellow=r(43,49),o.bgBlue=r(44,49),o.bgMagenta=r(45,49),o.bgCyan=r(46,49),o.bgWhite=r(47,49),o.bgGray=r(100,49),o.redBright=r(91,39),o.greenBright=r(92,39),o.yellowBright=r(93,39),o.blueBright=r(94,39),o.magentaBright=r(95,39),o.cyanBright=r(96,39),o.whiteBright=r(97,39),o.bgRedBright=r(101,49),o.bgGreenBright=r(102,49),o.bgYellowBright=r(103,49),o.bgBlueBright=r(104,49),o.bgMagentaBright=r(105,49),o.bgCyanBright=r(106,49),o.bgWhiteBright=r(107,49),e.exports=o},42495(e,t,a){a.d(t,{k:()=>h});var i=a(85608),n=a(60837),r=a(2904),o=a(555),s=a(3777),p=a(36054),l=a(30671),d=a(54019),u=a(44114),c=a(55427),m=a(70916),f=a(62959),h=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,n.wrap)(r.ct,{max:o.v["cache.fragmentQueryDocuments"]||1e3,cache:d.l})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,a=this,i="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(a)},i),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,i.__assign)((0,i.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,a=this,n=e.fragment,r=e.fragmentName,o=e.from,d=e.optimistic,u=(0,i.__rest)(e,["fragment","fragmentName","from","optimistic"]),h=this.getFragmentDoc(n,r),v=void 0===o||"string"==typeof o?o:this.identify(o),g=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var y=r||(0,s.E4)(n).name.value;v||!1===globalThis.__DEV__||m.invariant.warn(1,y)}var D=(0,i.__assign)((0,i.__assign)({},u),{returnPartialData:!0,id:v,query:h,optimistic:void 0===d||d});return new p.c(function(o){return a.watch((0,i.__assign)((0,i.__assign)({},D),{immediate:!0,callback:function(s){var p=g?(0,f.z)(s.result,n,a,r):s.result;if(!(t&&(0,c.a)(h,{data:t.result},{data:p},e.variables))){var d={data:p,complete:!!s.complete};s.missing&&(d.missing=(0,l.IM)(s.missing.map(function(e){return e.missing}))),t=(0,i.__assign)((0,i.__assign)({},s),{result:p}),o.next(d)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,i.__assign)((0,i.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,a=e.data,n=(0,i.__rest)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:a}))},e.prototype.writeFragment=function(e){var t=e.id,a=e.data,n=e.fragment,r=e.fragmentName,o=(0,i.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,r),dataId:t,result:a}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(a){var n=a.readQuery(e),r=t(n);return null==r?n:(a.writeQuery((0,i.__assign)((0,i.__assign)({},e),{data:r})),r)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(a){var n=a.readFragment(e),r=t(n);return null==r?n:(a.writeFragment((0,i.__assign)((0,i.__assign)({},e),{data:r})),r)}})},e}();!1!==globalThis.__DEV__&&(h.prototype.getMemoryInternals=u.tQ)},84673(e,t,a){var i;a.d(t,{l:()=>i}),i||(i={})},65702(e,t,a){a.d(t,{Z:()=>n});var i=a(85608),n=function(e){function t(a,i,n,r){var o,s=e.call(this,a)||this;if(s.message=a,s.path=i,s.query=n,s.variables=r,Array.isArray(s.path)){s.missing=s.message;for(var p=s.path.length-1;p>=0;--p)(o={})[s.path[p]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,i.__extends)(t,e),t}(Error)},94037(e,t,a){a.r(t),a.d(t,{fieldNameFromStoreName:()=>l.iJ,makeVar:()=>u.UT,canonicalStringify:()=>s.M,cacheSlot:()=>u.bl,isReference:()=>o.A_,MissingFieldError:()=>r.Z,EntityStore:()=>p.D_,Cache:()=>n.l,Policies:()=>c.l,InMemoryCache:()=>d.D,ApolloCache:()=>i.k,defaultDataIdFromObject:()=>l.or,makeReference:()=>o.WU,createFragmentRegistry:()=>D}),a(70916);var i=a(42495),n=a(84673),r=a(65702),o=a(28907),s=a(44214),p=a(83906),l=a(35207),d=a(7068),u=a(777),c=a(92610),m=a(85608),f=a(90424),h=a(60837),v=a(3777),g=a(555),y=a(54019);function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(b.bind.apply(b,(0,m.__spreadArray)([void 0],e,!1)))}var b=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.registry=Object.create(null),this.resetCaches(),e.length&&this.register.apply(this,e)}return e.prototype.register=function(){for(var e=this,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var i=new Map;return t.forEach(function(e){(0,v.zK)(e).forEach(function(e){i.set(e.name.value,e)})}),i.forEach(function(t,a){t!==e.registry[a]&&(e.registry[a]=t,e.invalidate(a))}),this},e.prototype.invalidate=function(e){},e.prototype.resetCaches=function(){var t=e.prototype;this.invalidate=(this.lookup=(0,h.wrap)(t.lookup.bind(this),{makeCacheKey:function(e){return e},max:g.v["fragmentRegistry.lookup"]||1e3})).dirty,this.transform=(0,h.wrap)(t.transform.bind(this),{cache:y.l,max:g.v["fragmentRegistry.transform"]||2e3}),this.findFragmentSpreads=(0,h.wrap)(t.findFragmentSpreads.bind(this),{cache:y.l,max:g.v["fragmentRegistry.findFragmentSpreads"]||4e3})},e.prototype.lookup=function(e){return this.registry[e]||null},e.prototype.transform=function(e){var t=this,a=new Map;(0,v.zK)(e).forEach(function(e){a.set(e.name.value,e)});var i=new Set,n=function(e){a.has(e)||i.add(e)},r=function(e){return Object.keys(t.findFragmentSpreads(e)).forEach(n)};r(e);var o=[],s=Object.create(null);if(i.forEach(function(e){var i=a.get(e);if(i)r(s[e]=i);else{o.push(e);var n=t.lookup(e);n&&r(s[e]=n)}}),o.length){var p=[];o.forEach(function(e){var t=s[e];t&&p.push(t)}),p.length&&(e=(0,m.__assign)((0,m.__assign)({},e),{definitions:e.definitions.concat(p)}))}return e},e.prototype.findFragmentSpreads=function(e){var t=Object.create(null);return(0,f.YR)(e,{FragmentSpread:function(e){t[e.name.value]=e}}),t},e}()},83906(e,t,a){a.d(t,{$7:()=>F,D_:()=>D,M2:()=>x});var i,n,r=a(85608),o=a(70916),s=a(60837),p=a(55888),l=a(44592),d=a(57236),u=a(28907),c=a(30671),m=a(21777),f=a(51360),h=a(35207),v=Object.create(null),g=function(){return v},y=Object.create(null),D=function(){function e(e,t){var a=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,d.G)((0,u.A_)(e)?a.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,u.A_)(e)?a.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,u.WU)(e);if((0,u.A_)(e))return e;var i=a.policies.identify(e)[0];if(i){var n=(0,u.WU)(i);return t&&a.merge(i,e),n}}}return e.prototype.toObject=function(){return(0,r.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),h.$3.call(this.data,e)){var a=this.data[e];if(a&&h.$3.call(a,t))return a[t]}return"__typename"===t&&h.$3.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof _?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),h.$3.call(this.data,e))?this.data[e]:this instanceof _?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var a,i=this;(0,u.A_)(e)&&(e=e.__ref),(0,u.A_)(t)&&(t=t.__ref);var n="string"==typeof e?this.lookup(a=e):e,r="string"==typeof t?this.lookup(a=t):t;if(r){(0,o.invariant)("string"==typeof a,2);var s=new c.ZI(E).merge(n,r);if(this.data[a]=s,s!==n&&(delete this.refs[a],this.group.caching)){var p=Object.create(null);n||(p.__exists=1),Object.keys(r).forEach(function(e){if(!n||n[e]!==s[e]){p[e]=1;var t=(0,h.iJ)(e);t===e||i.policies.hasKeyArgs(s.__typename,t)||(p[t]=1),void 0!==s[e]||i instanceof _||delete s[e]}}),p.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[a]===s.__typename&&delete p.__typename,Object.keys(p).forEach(function(e){return i.group.dirty(a,e)})}}},e.prototype.modify=function(e,t){var a=this,i=this.lookup(e);if(i){var n=Object.create(null),s=!1,p=!0,l={DELETE:v,INVALIDATE:y,isReference:u.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,i){return a.policies.readField("string"==typeof t?{fieldName:t,from:i||(0,u.WU)(e)}:t,{store:a})}};if(Object.keys(i).forEach(function(c){var m=(0,h.iJ)(c),f=i[c];if(void 0!==f){var D="function"==typeof t?t:t[c]||t[m];if(D){var b=D===g?v:D((0,d.G)(f),(0,r.__assign)((0,r.__assign)({},l),{fieldName:m,storeFieldName:c,storage:a.getStorage(e,c)}));if(b===y)a.group.dirty(e,c);else if(b===v&&(b=void 0),b!==f&&(n[c]=b,s=!0,f=b,!1!==globalThis.__DEV__)){var x=function(e){if(void 0===a.lookup(e.__ref))return!1!==globalThis.__DEV__&&o.invariant.warn(3,e),!0};if((0,u.A_)(b))x(b);else if(Array.isArray(b))for(var _=!1,w=void 0,E=0,F=b;E<F.length;E++){var C=F[E];if((0,u.A_)(C)){if(_=!0,x(C))break}else"object"==typeof C&&C&&a.policies.identify(C)[0]&&(w=C);if(_&&void 0!==w){!1!==globalThis.__DEV__&&o.invariant.warn(4,w);break}}}}void 0!==f&&(p=!1)}}),s)return this.merge(e,n),p&&(this instanceof _?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,a){var i,n=this.lookup(e);if(n){var r=this.getFieldValue(n,"__typename"),o=t&&a?this.policies.getStoreFieldName({typename:r,fieldName:t,args:a}):t;return this.modify(e,o?((i={})[o]=g,i):g)}return!1},e.prototype.evict=function(e,t){var a=!1;return e.id&&(h.$3.call(this.data,e.id)&&(a=this.delete(e.id,e.fieldName,e.args)),this instanceof _&&this!==t&&(a=this.parent.evict(e,t)||a),(e.fieldName||a)&&this.group.dirty(e.id,e.fieldName||"__exists")),a},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),a=[];return this.getRootIdSet().forEach(function(t){h.$3.call(e.policies.rootTypenamesById,t)||a.push(t)}),a.length&&(t.__META={extraRootIds:a.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(a){e&&h.$3.call(e,a)||t.delete(a)}),e){var a=e.__META,i=(0,r.__rest)(e,["__META"]);Object.keys(i).forEach(function(e){t.merge(e,i[e])}),a&&a.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof _?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),a=this.toObject();t.forEach(function(i){h.$3.call(a,i)&&(Object.keys(e.findChildRefIds(i)).forEach(t.add,t),delete a[i])});var i=Object.keys(a);if(i.length){for(var n=this;n instanceof _;)n=n.parent;i.forEach(function(e){return n.delete(e)})}return i},e.prototype.findChildRefIds=function(e){if(!h.$3.call(this.refs,e)){var t=this.refs[e]=Object.create(null),a=this.data[e];if(!a)return t;var i=new Set([a]);i.forEach(function(e){(0,u.A_)(e)&&(t[e.__ref]=!0),(0,m.U)(e)&&Object.keys(e).forEach(function(t){var a=e[t];(0,m.U)(a)&&i.add(a)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),b=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dep)():null,this.keyMaker=new l.Trie(f.et)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var a=(0,h.iJ)(t);a!==t&&this.d(a+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function x(e,t){F(e)&&e.group.depend(t,"__exists")}n=function(e){function t(t){var a=t.policies,i=t.resultCaching,n=t.seed,r=e.call(this,a,new b(void 0===i||i))||this;return r.stump=new w(r),r.storageTrie=new l.Trie(f.et),n&&r.replace(n),r}return(0,r.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(i=D||(D={})),i.Root=n;var _=function(e){function t(t,a,i,n){var r=e.call(this,a.policies,n)||this;return r.id=t,r.parent=a,r.replay=i,r.group=n,i(r),r}return(0,r.__extends)(t,e),t.prototype.addLayer=function(e,a){return new t(e,this,a,this.group)},t.prototype.removeLayer=function(e){var t=this,a=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var i=t.data[e],n=a.lookup(e);n?i?i!==n&&Object.keys(i).forEach(function(a){(0,p.equal)(i[a],n[a])||t.group.dirty(e,a)}):(t.group.dirty(e,"__exists"),Object.keys(n).forEach(function(a){t.group.dirty(e,a)})):t.delete(e)}),a):a===this.parent?this:a.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,r.__assign)((0,r.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var a=this.parent.findChildRefIds(t);return h.$3.call(this.data,t)?(0,r.__assign)((0,r.__assign)({},a),e.prototype.findChildRefIds.call(this,t)):a},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(D),w=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new b(t.group.caching,t.group))||this}return(0,r.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(_);function E(e,t,a){var i=e[a],n=t[a];return(0,p.equal)(i,n)?i:n}function F(e){return!!(e instanceof D&&e.group.caching)}},35207(e,t,a){a.d(t,{$3:()=>u,I6:()=>h,T9:()=>function e(t,a,i){return!!(0,r.U)(a)&&((0,o.c)(a)?a.every(function(a){return e(t,a,i)}):t.selections.every(function(t){if((0,n.dt)(t)&&(0,s.MS)(t,i)){var r=(0,n.ue)(t);return u.call(a,r)&&(!t.selectionSet||e(t.selectionSet,a[r],i))}return!0}))},Ui:()=>g,Xx:()=>v,d1:()=>b,gk:()=>y,iJ:()=>D,lq:()=>_,mv:()=>x,or:()=>m});var i=a(50492),n=a(28907),r=a(21777),o=a(73767),s=a(82307),p=a(30671),l=a(2904),d=a(3777),u=Object.prototype.hasOwnProperty;function c(e){return null==e}function m(e,t){var a=e.__typename,i=e.id,n=e._id;if("string"==typeof a&&(t&&(t.keyObject=c(i)?c(n)?void 0:{_id:n}:{id:i}),c(i)&&!c(n)&&(i=n),!c(i)))return"".concat(a,":").concat("number"==typeof i||"string"==typeof i?i:JSON.stringify(i))}var f={dataIdFromObject:m,addTypename:!0,resultCaching:!0,canonizeResults:!1};function h(e){return(0,i.o)(f,e)}function v(e){var t=e.canonizeResults;return void 0===t?f.canonizeResults:t}function g(e,t){return(0,n.A_)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var y=/^[_a-z][_0-9a-z]*/i;function D(e){var t=e.match(y);return t?t[0]:e}function b(e){return(0,r.U)(e)&&!(0,n.A_)(e)&&!(0,o.c)(e)}function x(){return new p.ZI}function _(e,t){var a=(0,l.JG)((0,d.zK)(e));return{fragmentMap:a,lookupFragment:function(e){var i=a[e];return!i&&t&&(i=t.lookup(e)),i||null}}}},7068(e,t,a){a.d(t,{D:()=>U});var i=a(85608),n=a(70916),r=a(60837),o=a(55888),s=a(42495),p=a(65702),l=a(9354),d=a(53925),u=a(555),c=a(44214),m=a(38678),f=a(28907),h=a(42455),v=a(51360),g=a(50492),y=a(3777),D=a(30671),b=a(82307),x=a(2904),_=a(57236),w=a(21777),E=a(83906),F=a(35207),C=a(73767),A=a(44592),T=function(){function e(){this.known=new(v.En?WeakSet:Set),this.pool=new A.Trie(v.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,w.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,w.U)(e)){var t=(0,w.U)(e)?(0,C.c)(e)?e.slice(0):(0,i.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,w.U)(e)){var a=this.passes.get(e);if(a)return a;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var i=e.map(this.admit,this),n=this.pool.lookupArray(i);return n.array||(this.known.add(n.array=i),!1!==globalThis.__DEV__&&Object.freeze(i)),n.array;case null:case Object.prototype:if(this.known.has(e))break;var r=Object.getPrototypeOf(e),o=[r],s=this.sortedKeys(e);o.push(s.json);var p=o.length;s.sorted.forEach(function(a){o.push(t.admit(e[a]))});var n=this.pool.lookupArray(o);if(!n.object){var l=n.object=Object.create(r);this.known.add(l),s.sorted.forEach(function(e,t){l[e]=o[p+t]}),!1!==globalThis.__DEV__&&Object.freeze(l)}return n.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),a=this.pool.lookupArray(t);if(!a.keys){t.sort();var i=JSON.stringify(t);(a.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,a.keys={sorted:t,json:i})}return a.keys},e}();function S(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var O=function(){function e(e){var t=this;this.knownResults=new(v.et?WeakMap:Map),this.config=(0,g.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,F.Xx)(e)}),this.canon=e.canon||new T,this.executeSelectionSet=(0,r.wrap)(function(e){var a,n=e.context.canonizeResults,r=S(e);r[3]=!n;var o=(a=t.executeSelectionSet).peek.apply(a,r);return o?n?(0,i.__assign)((0,i.__assign)({},o),{result:t.canon.admit(o.result)}):o:((0,E.M2)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:S,makeCacheKey:function(e,t,a,i){if((0,E.$7)(a.store))return a.store.makeCacheKey(e,(0,f.A_)(t)?t.__ref:t,a.varString,i)}}),this.executeSubSelectedArray=(0,r.wrap)(function(e){return(0,E.M2)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,a=e.array,i=e.context;if((0,E.$7)(i.store))return i.store.makeCacheKey(t,a,i.varString)}})}return e.prototype.resetCanon=function(){this.canon=new T},e.prototype.diffQueryAgainstStore=function(e){var t,a=e.store,n=e.query,r=e.rootId,o=e.variables,s=e.returnPartialData,l=e.canonizeResults,d=void 0===l?this.config.canonizeResults:l,u=this.config.cache.policies;o=(0,i.__assign)((0,i.__assign)({},(0,y.wY)((0,y.AT)(n))),o);var m=(0,f.WU)(void 0===r?"ROOT_QUERY":r),h=this.executeSelectionSet({selectionSet:(0,y.Vn)(n).selectionSet,objectOrReference:m,enclosingRef:m,context:(0,i.__assign)({store:a,query:n,policies:u,variables:o,varString:(0,c.M)(o),canonizeResults:d},(0,F.lq)(n,this.config.fragments))});if(h.missing&&(t=[new p.Z(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,n,o)],!(void 0===s||s)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,a,i){if((0,E.$7)(i.store)&&this.knownResults.get(e)===a){var n=this.executeSelectionSet.peek(a,t,i,this.canon.isKnown(e));if(n&&e===n.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,a=this,i=e.selectionSet,r=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,f.A_)(r)&&!s.policies.rootTypenamesById[r.__ref]&&!s.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var p=s.variables,l=s.policies,u=s.store.getFieldValue(r,"__typename"),c=[],m=new D.ZI;function v(e,a){var i;return e.missing&&(t=m.merge(t,((i={})[a]=e.missing,i))),e.result}this.config.addTypename&&"string"==typeof u&&!l.rootIdsByTypename[u]&&c.push({__typename:u});var g=new Set(i.selections);g.forEach(function(e){var i,y;if((0,b.MS)(e,p))if((0,f.dt)(e)){var D=l.readField({fieldName:e.name.value,field:e,variables:s.variables,from:r},s),_=(0,f.ue)(e);void 0===D?d.XY.added(e)||(t=m.merge(t,((i={})[_]="Can't find field '".concat(e.name.value,"' on ").concat((0,f.A_)(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),i))):(0,C.c)(D)?D.length>0&&(D=v(a.executeSubSelectedArray({field:e,array:D,enclosingRef:o,context:s}),_)):e.selectionSet?null!=D&&(D=v(a.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:D,enclosingRef:(0,f.A_)(D)?D:o,context:s}),_)):s.canonizeResults&&(D=a.canon.pass(D)),void 0!==D&&c.push(((y={})[_]=D,y))}else{var w=(0,x.HQ)(e,s.lookupFragment);if(!w&&e.kind===h.b.FRAGMENT_SPREAD)throw(0,n.newInvariantError)(10,e.name.value);w&&l.fragmentMatches(w,u)&&w.selectionSet.selections.forEach(g.add,g)}});var y={result:(0,D.IM)(c),missing:t},w=s.canonizeResults?this.canon.admit(y):(0,_.G)(y);return w.result&&this.knownResults.set(w.result,i),w},e.prototype.execSubSelectedArrayImpl=function(e){var t,a=this,i=e.field,r=e.array,o=e.enclosingRef,s=e.context,p=new D.ZI;function l(e,a){var i;return e.missing&&(t=p.merge(t,((i={})[a]=e.missing,i))),e.result}return i.selectionSet&&(r=r.filter(s.store.canRead)),r=r.map(function(e,t){return null===e?null:(0,C.c)(e)?l(a.executeSubSelectedArray({field:i,array:e,enclosingRef:o,context:s}),t):i.selectionSet?l(a.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,enclosingRef:(0,f.A_)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,a){if(!t.selectionSet){var i=new Set([a]);i.forEach(function(a){(0,w.U)(a)&&((0,n.invariant)(!(0,f.A_)(a),11,(0,F.Ui)(e,a),t.name.value),Object.values(a).forEach(i.add,i))})}}(s.store,i,e),e)}),{result:s.canonizeResults?this.canon.admit(r):r,missing:t}},e}(),N=a(20906),k=a(92610);function I(e,t,a){var n="".concat(t).concat(a),r=e.flavors.get(n);return r||e.flavors.set(n,r=e.clientOnly===t&&e.deferred===a?e:(0,i.__assign)((0,i.__assign)({},e),{clientOnly:t,deferred:a})),r}var $=function(){function e(e,t,a){this.cache=e,this.reader=t,this.fragments=a}return e.prototype.writeToStore=function(e,t){var a=this,r=t.query,s=t.result,p=t.dataId,l=t.variables,d=t.overwrite,u=(0,y.Vu)(r),m=(0,F.mv)();l=(0,i.__assign)((0,i.__assign)({},(0,y.wY)(u)),l);var h=(0,i.__assign)((0,i.__assign)({store:e,written:Object.create(null),merge:function(e,t){return m.merge(e,t)},variables:l,varString:(0,c.M)(l)},(0,F.lq)(r,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:s||Object.create(null),dataId:p,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,f.A_)(v))throw(0,n.newInvariantError)(12,s);return h.incomingById.forEach(function(t,r){var s=t.storeObject,p=t.mergeTree,l=t.fieldNodeSet,d=(0,f.WU)(r);if(p&&p.map.size){var u=a.applyMerges(p,d,s,h);if((0,f.A_)(u))return;s=u}if(!1!==globalThis.__DEV__&&!h.overwrite){var c=Object.create(null);l.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var m=function(e){var t=p&&p.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(s).forEach(function(e){!0!==c[(0,F.iJ)(e)]||m(e)||function(e,t,a,r){var s=function(e){var t=r.getFieldValue(e,a);return"object"==typeof t&&t},p=s(e);if(p){var l=s(t);if(!(!l||(0,f.A_)(p)||(0,o.equal)(p,l)||Object.keys(p).every(function(e){return void 0!==r.getFieldValue(l,e)}))){var d=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=(0,F.iJ)(a),c="".concat(d,".").concat(u);if(!P.has(c)){P.add(c);var m=[];(0,C.c)(p)||(0,C.c)(l)||[p,l].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||m.includes(t)||m.push(t)}),!1!==globalThis.__DEV__&&n.invariant.warn(15,u,d,m.length?"either ensure all objects of type "+m.join(" and ")+" have an ID or a custom merge function, or ":"",c,(0,i.__assign)({},p),(0,i.__assign)({},l))}}}}(d,s,e,h.store)})}e.merge(r,s)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,a=e.dataId,r=e.result,o=e.selectionSet,s=e.context,p=e.mergeTree,l=this.cache.policies,u=Object.create(null),c=a&&l.rootTypenamesById[a]||(0,f.D$)(r,o,s.fragmentMap)||a&&s.store.get(a,"__typename");"string"==typeof c&&(u.__typename=c);var m=function(){var e=(0,k.m)(arguments,u,s.variables);if((0,f.A_)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var a=l.readField((0,i.__assign)((0,i.__assign)({},e),{from:t.storeObject}),s);if(void 0!==a)return a}}return l.readField(e,s)},h=new Set;this.flattenFields(o,r,s,c).forEach(function(e,a){var i,o=r[(0,f.ue)(a)];if(h.add(a),void 0!==o){var s=l.getStoreFieldName({typename:c,fieldName:a.name.value,field:a,variables:e.variables}),v=B(p,s),g=t.processFieldValue(o,a,a.selectionSet?I(e,!1,!1):e,v),y=void 0;a.selectionSet&&((0,f.A_)(g)||(0,F.d1)(g))&&(y=m("__typename",g));var D=l.getMergeFunction(c,a.name.value,y);D?v.info={field:a,typename:c,merge:D}:V(p,s),u=e.merge(u,((i={})[s]=g,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||d.XY.added(a)||l.getReadFunction(c,a.name.value)||!1===globalThis.__DEV__||n.invariant.error(13,(0,f.ue)(a),r)});try{var v=l.identify(r,{typename:c,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:u,readField:m}),g=v[0],y=v[1];a=a||g,y&&(u=s.merge(u,y))}catch(e){if(!a)throw e}if("string"==typeof a){var D=(0,f.WU)(a),b=s.written[a]||(s.written[a]=[]);if(b.indexOf(o)>=0||(b.push(o),this.reader&&this.reader.isFresh(r,D,o,s)))return D;var x=s.incomingById.get(a);return x?(x.storeObject=s.merge(x.storeObject,u),x.mergeTree=function e(t,a){if(t===a||!a||R(a))return t;if(!t||R(t))return a;var n=t.info&&a.info?(0,i.__assign)((0,i.__assign)({},t.info),a.info):t.info||a.info,r=t.map.size&&a.map.size,o={info:n,map:r?new Map:t.map.size?t.map:a.map};if(r){var s=new Set(a.map.keys());t.map.forEach(function(t,i){o.map.set(i,e(t,a.map.get(i))),s.delete(i)}),s.forEach(function(i){o.map.set(i,e(a.map.get(i),t.map.get(i)))})}return o}(x.mergeTree,p),h.forEach(function(e){return x.fieldNodeSet.add(e)})):s.incomingById.set(a,{storeObject:u,mergeTree:R(p)?void 0:p,fieldNodeSet:h}),D}return u},e.prototype.processFieldValue=function(e,t,a,i){var n=this;return t.selectionSet&&null!==e?(0,C.c)(e)?e.map(function(e,r){var o=n.processFieldValue(e,t,a,B(i,r));return V(i,r),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:a,mergeTree:i}):!1!==globalThis.__DEV__?(0,N.m)(e):e},e.prototype.flattenFields=function(e,t,a,i){void 0===i&&(i=(0,f.D$)(t,e,a.fragmentMap));var r=new Map,o=this.cache.policies,s=new A.Trie(!1);return!function e(p,l){var d=s.lookup(p,l.clientOnly,l.deferred);d.visited||(d.visited=!0,p.selections.forEach(function(s){if((0,b.MS)(s,a.variables)){var p=l.clientOnly,d=l.deferred;if(!(p&&d)&&(0,C.E)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(p=!0),"defer"===t){var i=(0,f.MB)(e,a.variables);i&&!1===i.if||(d=!0)}}),(0,f.dt)(s)){var u=r.get(s);u&&(p=p&&u.clientOnly,d=d&&u.deferred),r.set(s,I(a,p,d))}else{var c=(0,x.HQ)(s,a.lookupFragment);if(!c&&s.kind===h.b.FRAGMENT_SPREAD)throw(0,n.newInvariantError)(14,s.name.value);c&&o.fragmentMatches(c,i,t,a.variables)&&e(c.selectionSet,I(a,p,d))}}}))}(e,a),r},e.prototype.applyMerges=function(e,t,a,r,o){var s=this;if(e.map.size&&!(0,f.A_)(a)){var p,l,d=!(0,C.c)(a)&&((0,f.A_)(t)||(0,F.d1)(t))?t:void 0,u=a;d&&!o&&(o=[(0,f.A_)(d)?d.__ref:d]);var c=function(e,t){return(0,C.c)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var a=c(d,t),i=c(u,t);if(void 0!==i){o&&o.push(t);var p=s.applyMerges(e,a,i,r,o);p!==i&&(l=l||new Map).set(t,p),o&&(0,n.invariant)(o.pop()===t)}}),l&&(a=(0,C.c)(u)?u.slice(0):(0,i.__assign)({},u),l.forEach(function(e,t){a[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,a,e.info,r,o&&(p=r.store).getStorage.apply(p,o)):a},e}(),j=[];function B(e,t){var a=e.map;return a.has(t)||a.set(t,j.pop()||{map:new Map}),a.get(t)}function R(e){return!e||!(e.info||e.map.size)}function V(e,t){var a=e.map,i=a.get(t);i&&R(i)&&(j.push(i),a.delete(t))}var P=new Set,L=a(777),M=a(44114),U=function(e){function t(t){void 0===t&&(t={});var a=e.call(this)||this;return a.watches=new Set,a.addTypenameTransform=new l.c(d.XY),a.assumeImmutableResults=!0,a.makeVar=L.UT,a.txCount=0,a.config=(0,F.I6)(t),a.addTypename=!!a.config.addTypename,a.policies=new k.l({cache:a,dataIdFromObject:a.config.dataIdFromObject,possibleTypes:a.config.possibleTypes,typePolicies:a.config.typePolicies}),a.init(),a}return(0,i.__extends)(t,e),t.prototype.init=function(){var e=this.data=new E.D_.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,a=this.storeReader,i=this.config.fragments;this.storeWriter=new $(this,this.storeReader=new O({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,F.Xx)(this.config),canon:e?void 0:a&&a.canon,fragments:i}),i),this.maybeBroadcastWatch=(0,r.wrap)(function(e,a){return t.broadcastWatch(e,a)},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var a=e.optimistic?t.optimisticData:t.data;if((0,E.$7)(a)){var i=e.optimistic,n=e.id,r=e.variables;return a.makeCacheKey(e.query,e.callback,(0,c.M)({optimistic:i,id:n,variables:r}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,i.__assign)((0,i.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof p.Z)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(F.$3.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,i.__assign)((0,i.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,L.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,L.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){c.M.reset(),m.y.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,a=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),a},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,f.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&n.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(F.$3.call(e,"id"))return!1;e=(0,i.__assign)((0,i.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),c.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,L.WR)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,a=this,n=e.update,r=e.optimistic,o=void 0===r||r,s=e.removeOptimistic,p=e.onWatchUpdated,l=function(e){var i=a.data,r=a.optimisticData;++a.txCount,e&&(a.data=a.optimisticData=e);try{return t=n(a)}finally{--a.txCount,a.data=i,a.optimisticData=r}},d=new Set;return p&&!this.txCount&&this.broadcastWatches((0,i.__assign)((0,i.__assign)({},e),{onWatchUpdated:function(e){return d.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,l):!1===o?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),p&&d.size?(this.broadcastWatches((0,i.__assign)((0,i.__assign)({},e),{onWatchUpdated:function(e,t){var a=p.call(this,e,t);return!1!==a&&d.delete(e),a}})),d.size&&d.forEach(function(e){return a.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(a){return t.maybeBroadcastWatch(a,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var a=e.lastDiff,i=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,a)))&&(a&&(0,o.equal)(a.result,i.result)||e.callback(e.lastDiff=i,a))},t}(s.k);!1!==globalThis.__DEV__&&(U.prototype.getMemoryInternals=M.cM)},92610(e,t,a){a.d(t,{l:()=>F,m:()=>A});var i=a(85608),n=a(70916),r=a(28907),o=a(86563),s=a(21777),p=a(35207),l=a(73767),d=a(777),u=a(30671),c=Object.create(null);function m(e){var t=JSON.stringify(e);return c[t]||(c[t]=Object.create(null))}function f(e){var t=m(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,a){var i=function(e,t){return a.readField(t,e)},r=a.keyObject=v(e,function(e){var r=y(a.storeObject,e,i);return void 0===r&&t!==a.storeObject&&p.$3.call(t,e[0])&&(r=y(t,e,g)),(0,n.invariant)(void 0!==r,5,e.join("."),t),r});return"".concat(a.typename,":").concat(JSON.stringify(r))})}function h(e){var t=m(e);return t.keyArgsFn||(t.keyArgsFn=function(t,a){var i=a.field,n=a.variables,o=a.fieldName,s=JSON.stringify(v(e,function(e){var a=e[0],o=a.charAt(0);if("@"===o){if(i&&(0,l.E)(i.directives)){var s=a.slice(1),d=i.directives.find(function(e){return e.name.value===s}),u=d&&(0,r.MB)(d,n);return u&&y(u,e.slice(1))}return}if("$"===o){var c=a.slice(1);if(n&&p.$3.call(n,c)){var m=e.slice(0);return m[0]=c,y(n,m)}return}if(t)return y(t,e)}));return(t||"{}"!==s)&&(o+=":"+s),o})}function v(e,t){var a=new u.ZI;return(function e(t){var a=m(t);if(!a.paths){var i=a.paths=[],n=[];t.forEach(function(a,r){(0,l.c)(a)?(e(a).forEach(function(e){return i.push(n.concat(e))}),n.length=0):(n.push(a),(0,l.c)(t[r+1])||(i.push(n.slice(0)),n.length=0))})}return a.paths})(e).reduce(function(e,i){var n,r=t(i);if(void 0!==r){for(var o=i.length-1;o>=0;--o)(n={})[i[o]]=r,r=n;e=a.merge(e,r)}return e},Object.create(null))}function g(e,t){return e[t]}function y(e,t,a){return a=a||g,function e(t){return(0,s.U)(t)?(0,l.c)(t)?t.map(e):v(Object.keys(t).sort(),function(e){return y(t,e)}):t}(t.reduce(function e(t,i){return(0,l.c)(t)?t.map(function(t){return e(t,i)}):t&&a(t,i)},e))}var D=a(47150);function b(e){return void 0!==e.args?e.args:e.field?(0,r.MB)(e.field,e.variables):null}var x=function(){},_=function(e,t){return t.fieldName},w=function(e,t,a){return(0,a.mergeObjects)(e,t)},E=function(e,t){return t},F=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,i.__assign)({dataIdFromObject:p.or},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var a,n,r=this,o=t&&(t.typename||(null==(a=t.storeObject)?void 0:a.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,p=(0,i.__assign)((0,i.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=A(arguments,s);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),d=o&&this.getTypePolicy(o),u=d&&d.keyFn||this.config.dataIdFromObject;return D.yV.withValue(!0,function(){for(;u;){var t=u((0,i.__assign)((0,i.__assign)({},e),s),p);if((0,l.c)(t))u=f(t);else{n=t;break}}}),n=n?String(n):void 0,p.keyObject?[n,p.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(a){var n=e[a],r=n.queryType,o=n.mutationType,s=n.subscriptionType,l=(0,i.__rest)(n,["queryType","mutationType","subscriptionType"]);r&&t.setRootTypename("Query",a),o&&t.setRootTypename("Mutation",a),s&&t.setRootTypename("Subscription",a),p.$3.call(t.toBeAdded,a)?t.toBeAdded[a].push(l):t.toBeAdded[a]=[l]})},e.prototype.updateTypePolicy=function(e,t){var a=this,i=this.getTypePolicy(e),n=t.keyFields,r=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?w:!1===t?E:e.merge}o(i,t.merge),i.keyFn=!1===n?x:(0,l.c)(n)?f(n):"function"==typeof n?n:i.keyFn,r&&Object.keys(r).forEach(function(t){var i=a.getFieldPolicy(e,t,!0),n=r[t];if("function"==typeof n)i.read=n;else{var s=n.keyArgs,p=n.read,d=n.merge;i.keyFn=!1===s?_:(0,l.c)(s)?h(s):"function"==typeof s?s:i.keyFn,"function"==typeof p&&(i.read=p),o(i,d)}i.read&&i.merge&&(i.keyFn=i.keyFn||_)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var a="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[a];t!==i&&((0,n.invariant)(!i||i===e,6,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=a,this.rootTypenamesById[a]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(a){t.getSupertypeSet(a,!0),e[a].forEach(function(e){t.getSupertypeSet(e,!0).add(a);var i=e.match(p.gk);i&&i[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!p.$3.call(this.typePolicies,e)){var a=this.typePolicies[e]=Object.create(null);a.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(a,i){if(a.test(e)){var r=t.supertypeMap.get(i);r&&r.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),r=n.fields;Object.assign(a,(0,i.__rest)(n,["fields"])),Object.assign(a.fields,r)})}var r=this.toBeAdded[e];return r&&r.length&&r.splice(0).forEach(function(a){t.updateTypePolicy(e,a)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,a){if(e){var i=this.getTypePolicy(e).fields;return i[t]||a&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var a=this.supertypeMap.get(e);return!a&&t&&this.supertypeMap.set(e,a=new Set),a},e.prototype.fragmentMatches=function(e,t,a,i){var r=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),l=[s],d=function(e){var t=r.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},u=!!(a&&this.fuzzySubtypes.size),c=!1,m=0;m<l.length;++m){var f=l[m];if(f.has(o))return s.has(o)||(c&&!1!==globalThis.__DEV__&&n.invariant.warn(7,t,o),s.add(o)),!0;f.forEach(d),u&&m===l.length-1&&(0,p.T9)(e.selectionSet,a,i)&&(u=!1,c=!0,this.fuzzySubtypes.forEach(function(e,a){var i=t.match(e);i&&i[0]===t&&d(a)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var a=this.getFieldPolicy(e,t,!1);return!!(a&&a.keyFn)},e.prototype.getStoreFieldName=function(e){var t,a=e.typename,i=e.fieldName,n=this.getFieldPolicy(a,i,!1),o=n&&n.keyFn;if(o&&a)for(var s={typename:a,fieldName:i,field:e.field||null,variables:e.variables},d=b(e);o;){var u=o(d,s);if((0,l.c)(u))o=h(u);else{t=u||i;break}}return(void 0===t&&(t=e.field?(0,r.Ii)(e.field,e.variables):(0,r.o5)(i,b(e))),!1===t)?i:i===(0,p.iJ)(t)?t:i+":"+t},e.prototype.readField=function(e,t){var a=e.from;if(a&&(e.field||e.fieldName)){if(void 0===e.typename){var i=t.store.getFieldValue(a,"__typename");i&&(e.typename=i)}var n=this.getStoreFieldName(e),o=(0,p.iJ)(n),s=t.store.getFieldValue(a,n),l=this.getFieldPolicy(e.typename,o,!1),u=l&&l.read;if(u){var c=C(this,a,e,t,t.store.getStorage((0,r.A_)(a)?a.__ref:a,n));return d.bl.withValue(this.cache,u,[s,c])}return s}},e.prototype.getReadFunction=function(e,t){var a=this.getFieldPolicy(e,t,!1);return a&&a.read},e.prototype.getMergeFunction=function(e,t,a){var i=this.getFieldPolicy(e,t,!1),n=i&&i.merge;return!n&&a&&(n=(i=this.getTypePolicy(a))&&i.merge),n},e.prototype.runMergeFunction=function(e,t,a,i,n){var r=a.field,o=a.typename,s=a.merge;return s===w?T(i.store)(e,t):s===E?t:(i.overwrite&&(e=void 0),s(e,t,C(this,void 0,{typename:o,fieldName:r.name.value,field:r,variables:i.variables},i,n||Object.create(null))))},e}();function C(e,t,a,i,n){var o=e.getStoreFieldName(a),s=(0,p.iJ)(o),l=a.variables||i.variables,d=i.store,u=d.toReference,c=d.canRead;return{args:b(a),field:a.field||null,fieldName:s,storeFieldName:o,variables:l,isReference:r.A_,toReference:u,storage:n,cache:e.cache,canRead:c,readField:function(){return e.readField(A(arguments,t,l),i)},mergeObjects:T(i.store)}}function A(e,t,a){var r,s=e[0],l=e[1],d=e.length;return"string"==typeof s?r={fieldName:s,from:d>1?l:t}:(r=(0,i.__assign)({},s),p.$3.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&n.invariant.warn(8,(0,o.p)(Array.from(e))),void 0===r.variables&&(r.variables=a),r}function T(e){return function(t,a){if((0,l.c)(t)||(0,l.c)(a))throw(0,n.newInvariantError)(9);if((0,s.U)(t)&&(0,s.U)(a)){var o=e.getFieldValue(t,"__typename"),d=e.getFieldValue(a,"__typename");if(o&&d&&o!==d)return a;if((0,r.A_)(t)&&(0,p.d1)(a))return e.merge(t.__ref,a),t;if((0,p.d1)(t)&&(0,r.A_)(a))return e.merge(t,a.__ref),a;if((0,p.d1)(t)&&(0,p.d1)(a))return(0,i.__assign)((0,i.__assign)({},t),a)}return a}}},777(e,t,a){a.d(t,{MS:()=>p,UT:()=>l,WR:()=>s,bl:()=>n});var i=a(60837),n=new i.Slot,r=new WeakMap;function o(e){var t=r.get(e);return t||r.set(e,t={vars:new Set,dep:(0,i.dep)()}),t}function s(e){o(e).vars.forEach(function(t){return t.forgetCache(e)})}function p(e){o(e).vars.forEach(function(t){return t.attachCache(e)})}function l(e){var t=new Set,a=new Set,i=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){var t;o(e).dep.dirty(i),(t=e).broadcastWatches&&t.broadcastWatches()});var p=Array.from(a);a.clear(),p.forEach(function(t){return t(e)})}}else{var l=n.getValue();l&&(r(l),o(l).dep(i))}return e};i.onNextChange=function(e){return a.add(e),function(){a.delete(e)}};var r=i.attachCache=function(e){return t.add(e),o(e).vars.add(i),i};return i.forgetCache=function(e){return t.delete(e)},i}},55427(e,t,a){a.d(t,{a:()=>l});var i=a(85608),n=a(55888),r=a(3777),o=a(2904),s=a(82307),p=a(28907);function l(e,t,a,l){var u=t.data,c=(0,i.__rest)(t,["data"]),m=a.data,f=(0,i.__rest)(a,["data"]);return(0,n.default)(c,f)&&function e(t,a,i,r){if(a===i)return!0;var l=new Set;return t.selections.every(function(t){if(l.has(t)||(l.add(t),!(0,s.MS)(t,r.variables)||d(t)))return!0;if((0,p.dt)(t)){var u=(0,p.ue)(t),c=a&&a[u],m=i&&i[u],f=t.selectionSet;if(!f)return(0,n.default)(c,m);var h=Array.isArray(c),v=Array.isArray(m);if(h!==v)return!1;if(h&&v){var g=c.length;if(m.length!==g)return!1;for(var y=0;y<g;++y)if(!e(f,c[y],m[y],r))return!1;return!0}return e(f,c,m,r)}var D=(0,o.HQ)(t,r.fragmentMap);if(D)return!!d(D)||e(D.selectionSet,a,i,r)})}((0,r.Vn)(e).selectionSet,u,m,{fragmentMap:(0,o.JG)((0,r.zK)(e)),variables:l})}function d(e){return!!e.directives&&e.directives.some(u)}function u(e){return"nonreactive"===e.name.value}},53570(e,t,a){a.r(t),a.d(t,{ApolloError:()=>l,PROTOCOL_ERRORS_SYMBOL:()=>r,graphQLResultHasProtocolErrors:()=>o,isApolloError:()=>s});var i=a(85608);a(70916);var n=a(21777),r=Symbol();function o(e){return!!e.extensions&&Array.isArray(e.extensions[r])}function s(e){return e.hasOwnProperty("graphQLErrors")}var p=function(e){var t=(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,n.U)(e)&&e.message||"Error message not found."}).join("\n")},l=function(e){function t(a){var n=a.graphQLErrors,r=a.protocolErrors,o=a.clientErrors,s=a.networkError,l=a.errorMessage,d=a.extraInfo,u=e.call(this,l)||this;return u.name="ApolloError",u.graphQLErrors=n||[],u.protocolErrors=r||[],u.clientErrors=o||[],u.networkError=s||null,u.message=l||p(u),u.extraInfo=d,u.cause=(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([s],n||[],!0),r||[],!0),o||[],!0).find(function(e){return!!e})||null,u.__proto__=t.prototype,u}return(0,i.__extends)(t,e),t}(Error)},19074(e,t,a){a.d(t,{C:()=>u});var i=a(70916),n=a(36054),r=a(16878),o=a(38414),s=a(46192);function p(e,t){return t?t(e):n.c.of()}function l(e){return"function"==typeof e?new u(e):e}function d(e){return e.request.length<=1}var u=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return n.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,a,i){var r=l(a),o=l(i||new e(p));return Object.assign(new e(d(r)&&d(o)?function(e){return t(e)?r.request(e)||n.c.of():o.request(e)||n.c.of()}:function(e,a){return t(e)?r.request(e,a)||n.c.of():o.request(e,a)||n.c.of()}),{left:r,right:o})},e.execute=function(e,t){return e.request((0,r.k)(t.context,(0,o.A)((0,s.K)(t))))||n.c.of()},e.concat=function(t,a){var r=l(t);if(d(r))return!1!==globalThis.__DEV__&&i.invariant.warn(38,r),r;var o=l(a);return Object.assign(new e(d(o)?function(e){return r.request(e,function(e){return o.request(e)||n.c.of()})||n.c.of()}:function(e,t){return r.request(e,function(e){return o.request(e,t)||n.c.of()})||n.c.of()}),{left:r,right:o})},e.prototype.split=function(t,a,i){return this.concat(e.split(t,a,i||new e(p)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,i.newInvariantError)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},25174(e,t,a){a.d(t,{g:()=>i});var i=a(19074).C.execute},4232(e,t,a){a.r(t),a.d(t,{ApolloLink:()=>i.C,concat:()=>s,empty:()=>n,execute:()=>p.g,from:()=>r,split:()=>o}),a(70916);var i=a(19074),n=i.C.empty,r=i.C.from,o=i.C.split,s=i.C.concat,p=a(25174)},49952(e,t,a){a.d(t,{P:()=>o});var i=a(85608),n=a(19074),r=a(79760),o=function(e){function t(t){void 0===t&&(t={});var a=e.call(this,(0,r.$)(t).request)||this;return a.options=t,a}return(0,i.__extends)(t,e),t}(n.C)},67195(e,t,a){a.d(t,{S:()=>n});var i=a(70916),n=function(e){if(!e&&"u"<typeof fetch)throw(0,i.newInvariantError)(40)}},79760(e,t,a){a.d(t,{$:()=>D});var i=a(85608),n=a(70916),r=a(19074),o=a(82307),s=a(36054),p=a(63647),l=a(33068),d=a(90117),u=a(67195),c=a(74559),m=a(11151),f=a(93161),h=a(70783),v=a(53925),g=a(3777),y=(0,n.maybe)(function(){return fetch}),D=function(e){void 0===e&&(e={});var t=e.uri,a=void 0===t?"/graphql":t,D=e.fetch,b=e.print,x=void 0===b?c.i1:b,_=e.includeExtensions,w=e.preserveHeaderCase,E=e.useGETForQueries,F=e.includeUnusedVariables,C=void 0!==F&&F,A=(0,i.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,u.S)(D||y);var T={http:{includeExtensions:_,preserveHeaderCase:w},options:A.fetchOptions,credentials:A.credentials,headers:A.headers};return new r.C(function(e){var t,r,u=(0,l.z)(e,a),b=e.getContext(),_={};if(b.clientAwareness){var w=b.clientAwareness,F=w.name,A=w.version;F&&(_["apollographql-client-name"]=F),A&&(_["apollographql-client-version"]=A)}var S=(0,i.__assign)((0,i.__assign)({},_),b.headers),O={http:b.http,options:b.fetchOptions,credentials:b.credentials,headers:S};if((0,o.d8)(["client"],e.query)){var N=(0,v.er)(e.query);if(!N)return(0,f.N)(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=N}var k=(0,c.HY)(e,x,c.R4,T,O),I=k.options,$=k.body;$.variables&&!C&&($.variables=(0,h.X)($.variables,e.query)),!I.signal&&"u">typeof AbortController&&(I.signal=(r=new AbortController).signal);var j="OperationDefinition"===(t=(0,g.Vn)(e.query)).kind&&"subscription"===t.operation,B=(0,o.d8)(["defer"],e.query);if(E&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(I.method="GET"),B||j){I.headers=I.headers||{};var R="multipart/mixed;";j&&B&&!1!==globalThis.__DEV__&&n.invariant.warn(41),j?R+="boundary=graphql;subscriptionSpec=1.0,application/json":B&&(R+="deferSpec=20220824,application/json"),I.headers.accept=R}if("GET"===I.method){var V=(0,m.E)(u,$),P=V.newURI,L=V.parseError;if(L)return(0,f.N)(L);u=P}else try{I.body=(0,p.Y)($,"Payload")}catch(e){return(0,f.N)(e)}return new s.c(function(t){var a=D||(0,n.maybe)(function(){return fetch})||y,i=t.next.bind(t);return a(u,I).then(function(t){e.setContext({response:t});var a,n=null==(a=t.headers)?void 0:a.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?(0,d.tD)(t,i):(0,d.OQ)(e)(t).then(i)}).then(function(){r=void 0,t.complete()}).catch(function(e){r=void 0,(0,d.H4)(e,t)}),function(){r&&r.abort()}})})}},28876(e,t,a){a.r(t),a.d(t,{HttpLink:()=>d.P,parseAndCheckHttpResponse:()=>i.OQ,checkFetcher:()=>o.S,rewriteURIForGET:()=>u.E,serializeFetchParameter:()=>n.Y,createSignalIfSupported:()=>s,selectHttpOptionsAndBodyInternal:()=>r.HY,selectHttpOptionsAndBody:()=>r.Wz,selectURI:()=>p.z,fallbackHttpConfig:()=>r.R4,createHttpLink:()=>l.$,defaultPrinter:()=>r.i1}),a(70916);var i=a(90117),n=a(63647),r=a(74559),o=a(67195),s=function(){if("u"<typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},p=a(33068),l=a(79760),d=a(49952),u=a(11151)},90117(e,t,a){a.d(t,{H4:()=>c,OQ:()=>m,tD:()=>d});var i=a(85608),n=a(51360);function r(e){var t={next:function(){return e.read()}};return n.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var o=a(3848),s=a(53570),p=a(37396),l=Object.prototype.hasOwnProperty;function d(e,t){return(0,i.__awaiter)(this,void 0,void 0,function(){var a,o,l,d,c,m,f,h,v,g,y,D,b,x,_,w,E,F,C,A,T,S,O;return(0,i.__generator)(this,function(N){switch(N.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),o=null==(O=e.headers)?void 0:O.get("content-type"),l="boundary=",d=(null==o?void 0:o.includes(l))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c="\r\n--".concat(d),m="",f=function(e){var t,a,i,o,s,p,l=e;if(e.body&&(l=e.body),t=l,n.uJ&&t[Symbol.asyncIterator])return i=l[Symbol.asyncIterator](),(a={next:function(){return i.next()}})[Symbol.asyncIterator]=function(){return this},a;if(l.getReader)return r(l.getReader());if(l.stream)return r(l.stream().getReader());if(l.arrayBuffer)return o=l.arrayBuffer(),s=!1,p={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){o.then(function(t){e({value:t,done:!1})}).catch(t)}))}},n.uJ&&(p[Symbol.asyncIterator]=function(){return this}),p;if(l.pipe)return function(e){var t=null,a=null,i=!1,r=[],o=[];function s(e){if(!a){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}r.push(e)}}function p(e){a=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){i=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",p),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",s),e.on("error",p),e.on("end",l),e.on("finish",l),e.on("close",l);var d={next:function(){return new Promise(function(e,t){return a?t(a):r.length?e({value:r.shift(),done:!1}):i?e({value:void 0,done:!0}):void o.push([e,t])})}};return n.uJ&&(d[Symbol.asyncIterator]=function(){return this}),d}(l);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),h=!0,N.label=1;case 1:if(!h)return[3,3];return[4,f.next()];case 2:for(g=(v=N.sent()).value,y=v.done,D="string"==typeof g?g:a.decode(g),b=m.length-c.length+1,h=!y,m+=D,x=m.indexOf(c,b);x>-1;){if(_=void 0,_=(T=[m.slice(0,x),m.slice(x+c.length)])[0],m=T[1],w=_.indexOf("\r\n\r\n"),(E=function(e){var t={};return e.split("\n").forEach(function(e){var a=e.indexOf(":");if(a>-1){var i=e.slice(0,a).trim().toLowerCase(),n=e.slice(a+1).trim();t[i]=n}}),t}(_.slice(0,w))["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(F=_.slice(w)){if(Object.keys(C=u(e,F)).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if((0,p.Nw)(C)){if(A={},"payload"in C){if(1===Object.keys(C).length&&null===C.payload)return[2];A=(0,i.__assign)({},C.payload)}"errors"in C&&(A=(0,i.__assign)((0,i.__assign)({},A),{extensions:(0,i.__assign)((0,i.__assign)({},"extensions"in A?A.extensions:null),((S={})[s.PROTOCOL_ERRORS_SYMBOL]=C.errors,S))})),t(A)}else t(C);else if(1===Object.keys(C).length&&"hasNext"in C&&!C.hasNext)return[2]}x=m.indexOf(c)}return[3,1];case 3:return[2]}})})}function u(e,t){e.status>=300&&(0,o.A)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(a){throw a.name="ServerParseError",a.response=e,a.statusCode=e.status,a.bodyText=t,a}}function c(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function m(e){return function(t){return t.text().then(function(e){return u(t,e)}).then(function(a){return Array.isArray(a)||l.call(a,"data")||l.call(a,"errors")||(0,o.A)(t,a,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),a})}}},11151(e,t,a){a.d(t,{E:()=>n});var i=a(63647);function n(e,t){var a=[],n=function(e,t){a.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var r=void 0;try{r=(0,i.Y)(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",r)}if(t.extensions){var o=void 0;try{o=(0,i.Y)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var s="",p=e,l=e.indexOf("#");-1!==l&&(s=e.substr(l),p=e.substr(0,l));var d=-1===p.indexOf("?")?"?":"&";return{newURI:p+d+a.join("&")+s}}},74559(e,t,a){a.d(t,{HY:()=>p,R4:()=>r,Wz:()=>s,i1:()=>o});var i=a(85608),n=a(38678),r={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},o=function(e,t){return t(e)};function s(e,t){for(var a=[],n=2;n<arguments.length;n++)a[n-2]=arguments[n];return a.unshift(t),p.apply(void 0,(0,i.__spreadArray)([e,o],a,!1))}function p(e,t){for(var a=[],r=2;r<arguments.length;r++)a[r-2]=arguments[r];var o={},s={};a.forEach(function(e){o=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},o),e.options),{headers:(0,i.__assign)((0,i.__assign)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),s=(0,i.__assign)((0,i.__assign)({},s),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var a={};return Object.keys(Object(e)).forEach(function(t){a[t.toLowerCase()]=e[t]}),a}var i={};Object.keys(Object(e)).forEach(function(t){i[t.toLowerCase()]={originalName:t,value:e[t]}});var n={};return Object.keys(i).forEach(function(e){n[i[e].originalName]=i[e].value}),n}(o.headers,s.preserveHeaderCase));var p=e.operationName,l=e.extensions,d=e.variables,u=e.query,c={operationName:p,variables:d};return s.includeExtensions&&(c.extensions=l),s.includeQuery&&(c.query=t(u,n.y)),{options:o,body:c}}},33068(e,t,a){a.d(t,{z:()=>i});var i=function(e,t){var a=e.getContext().uri;return a||("function"==typeof t?t(e):t||"/graphql")}},63647(e,t,a){a.d(t,{Y:()=>n});var i=a(70916),n=function(e,t){var a;try{a=JSON.stringify(e)}catch(e){var n=(0,i.newInvariantError)(42,t,e.message);throw n.parseError=e,n}return a}},16878(e,t,a){a.d(t,{k:()=>n});var i=a(85608);function n(e,t){var a=(0,i.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){a="function"==typeof e?(0,i.__assign)((0,i.__assign)({},a),e(a)):(0,i.__assign)((0,i.__assign)({},a),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,i.__assign)({},a)}}),t}},70783(e,t,a){a.d(t,{X:()=>r});var i=a(85608),n=a(90424);function r(e,t){var a=(0,i.__assign)({},e),r=new Set(Object.keys(e));return(0,n.YR)(t,{Variable:function(e,t,a){a&&"VariableDefinition"!==a.kind&&r.delete(e.name.value)}}),r.forEach(function(e){delete a[e]}),a}},93161(e,t,a){a.d(t,{N:()=>n});var i=a(36054);function n(e){return new i.c(function(t){t.error(e)})}},22594(e,t,a){a.d(t,{S:()=>n});var i=a(36054);function n(e){return new i.c(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}},25979(e,t,a){a.r(t),a.d(t,{createOperation:()=>p.k,filterOperationVariables:()=>d.X,fromError:()=>i.N,fromPromise:()=>r.S,throwServerError:()=>o.A,toPromise:()=>n.h,transformOperation:()=>l.A,validateOperation:()=>s.K}),a(70916);var i=a(93161),n=a(60441),r=a(22594),o=a(3848),s=a(46192),p=a(16878),l=a(38414),d=a(70783)},3848(e,t,a){a.d(t,{A:()=>i});var i=function(e,t,a){var i=Error(a);throw i.name="ServerError",i.response=e,i.statusCode=e.status,i.result=t,i}},60441(e,t,a){a.d(t,{h:()=>n});var i=a(70916);function n(e){var t=!1;return new Promise(function(a,n){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&i.invariant.warn(45):(t=!0,a(e))},error:n})})}},38414(e,t,a){a.d(t,{A:()=>n});var i=a(3777);function n(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,i.n4)(t.query)||void 0:""),t}},46192(e,t,a){a.d(t,{K:()=>n});var i=a(70916);function n(e){for(var t=["query","operationName","variables","extensions","context"],a=0,n=Object.keys(e);a<n.length;a++){var r=n[a];if(0>t.indexOf(r))throw(0,i.newInvariantError)(46,r)}return e}},39283(e,t,a){a.r(t),a.d(t,{disableWarningsSlot:()=>i.yV,maskFragment:()=>n.z,maskOperation:()=>r.m});var i=a(47150),n=a(62959),r=a(28354)},25186(e,t,a){a.d(t,{S:()=>l});var i=a(42455),n=a(57236),r=a(28907),o=a(82307),s=a(47150),p=a(70916);function l(e,t,a){return s.yV.withValue(!0,function(){var l=function e(t,a,n,l,d){var u,c=n.knownChanged,m=function(e,t){if(t.has(e))return t.get(e);var a=Array.isArray(e)?[]:Object.create(null);return t.set(e,a),a}(t,n.mutableTargets);if(Array.isArray(t)){for(var f=0,h=Array.from(t.entries());f<h.length;f++){var v=h[f],g=v[0],y=v[1];if(null===y){m[g]=null;continue}var D=e(y,a,n,l,!1!==globalThis.__DEV__?"".concat(d||"","[").concat(g,"]"):void 0);c.has(D)&&c.add(m),m[g]=D}return c.has(m)?m:t}for(var b=0,x=a.selections;b<x.length;b++){var _=x[b],w=void 0;if(l&&c.add(m),_.kind===i.b.FIELD){var E=(0,r.ue)(_),F=_.selectionSet;if(void 0===(w=m[E]||t[E]))continue;if(F&&null!==w){var D=e(t[E],F,n,l,!1!==globalThis.__DEV__?"".concat(d||"",".").concat(E):void 0);c.has(D)&&(w=D)}!1===globalThis.__DEV__&&(m[E]=w),!1!==globalThis.__DEV__&&(!l||"__typename"===E||(null==(u=Object.getOwnPropertyDescriptor(m,E))?void 0:u.value)?(delete m[E],m[E]=w):Object.defineProperty(m,E,function(e,t,a,i,n){var r=function(){return s.yV.getValue()||(!1!==globalThis.__DEV__&&p.invariant.warn(48,i?"".concat(n," '").concat(i,"'"):"anonymous ".concat(n),"".concat(a,".").concat(e).replace(/^\./,"")),r=function(){return t}),t};return{get:function(){return r()},set:function(e){r=function(){return e}},enumerable:!0,configurable:!0}}(E,w,d||"",n.operationName,n.operationType)))}if(_.kind===i.b.INLINE_FRAGMENT&&(!_.typeCondition||n.cache.fragmentMatches(_,t.__typename))&&(w=e(t,_.selectionSet,n,l,d)),_.kind===i.b.FRAGMENT_SPREAD){var C=_.name.value,A=n.fragmentMap[C]||(n.fragmentMap[C]=n.cache.lookupFragment(C));(0,p.invariant)(A,47,C);var T=(0,o.s7)(_);"mask"!==T&&(w=e(t,A.selectionSet,n,"migrate"===T,d))}c.has(w)&&c.add(m)}return"__typename"in t&&!("__typename"in m)&&(m.__typename=t.__typename),Object.keys(m).length!==Object.keys(t).length&&c.add(m),c.has(m)?m:t}(e,t,a,!1);return Object.isFrozen(e)&&(0,n.G)(l),l})}},62959(e,t,a){a.d(t,{z:()=>d});var i=a(42455),n=a(47150),r=a(70916),o=a(55888),s=a(25186),p=a(2904),l=a(3777);function d(e,t,a,d){if(!a.fragmentMatches)return!1!==globalThis.__DEV__&&(0,n.Ki)(),e;var u=t.definitions.filter(function(e){return e.kind===i.b.FRAGMENT_DEFINITION});void 0===d&&((0,r.invariant)(1===u.length,49,u.length),d=u[0].name.value);var c=u.find(function(e){return e.name.value===d});return((0,r.invariant)(!!c,50,d),null==e||(0,o.default)(e,{}))?e:(0,s.S)(e,c.selectionSet,{operationType:"fragment",operationName:c.name.value,fragmentMap:(0,p.JG)((0,l.zK)(t)),cache:a,mutableTargets:new n.jq,knownChanged:new n.xm})}},28354(e,t,a){a.d(t,{m:()=>p});var i=a(70916),n=a(3777),r=a(2904),o=a(25186),s=a(47150);function p(e,t,a){if(!a.fragmentMatches)return!1!==globalThis.__DEV__&&(0,s.Ki)(),e;var p,l=(0,n.Vu)(t);return((0,i.invariant)(l,51),null==e)?e:(0,o.S)(e,l.selectionSet,{operationType:l.operation,operationName:null==(p=l.name)?void 0:p.value,fragmentMap:(0,r.JG)((0,n.zK)(t)),cache:a,mutableTargets:new s.jq,knownChanged:new s.xm})}},47150(e,t,a){a.d(t,{Ki:()=>d,jq:()=>o,xm:()=>s,yV:()=>p});var i=a(60837),n=a(70916),r=a(51360),o=r.et?WeakMap:Map,s=r.En?WeakSet:Set,p=new i.Slot,l=!1;function d(){l||(l=!0,!1!==globalThis.__DEV__&&n.invariant.warn(52))}},45078(e,t,a){a.d(t,{A:()=>s,V:()=>p});var i=a(54019),n=a(31088),r=new WeakSet;function o(e){!(e.size<=(e.max||-1))&&(r.has(e)||(r.add(e),setTimeout(function(){e.clean(),r.delete(e)},100)))}var s=function(e,t){var a=new i.l(e,t);return a.set=function(e,t){var a=i.l.prototype.set.call(this,e,t);return o(this),a},a},p=function(e,t){var a=new n.C(e,t);return a.set=function(e,t){var a=n.C.prototype.set.call(this,e,t);return o(this),a},a}},44114(e,t,a){a.d(t,{D_:()=>o,cM:()=>p,ep:()=>s,tQ:()=>l});var i=a(85608),n=a(555),r={};function o(e,t){r[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,a,o,s;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],a=e[1];return[t,n.v[t]||a]})),sizes:(0,i.__assign)({print:null==(e=r.print)?void 0:e.call(r),parser:null==(t=r.parser)?void 0:t.call(r),canonicalStringify:null==(a=r.canonicalStringify)?void 0:a.call(r),links:function e(t){var a;return t?(0,i.__spreadArray)((0,i.__spreadArray)([null==(a=null==t?void 0:t.getMemoryInternals)?void 0:a.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(c):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:m(this.queryManager.documentTransform)}},null==(s=(o=this.cache).getMemoryInternals)?void 0:s.call(o))}}:void 0,p=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,i.__assign)((0,i.__assign)({},d.apply(this)),{addTypenameDocumentTransform:m(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:u(this.storeReader.executeSelectionSet),executeSubSelectedArray:u(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:u(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:u(null==e?void 0:e.findFragmentSpreads),lookup:u(null==e?void 0:e.lookup),transform:u(null==e?void 0:e.transform)}})}:void 0,l=!1!==globalThis.__DEV__?d:void 0;function d(){return{cache:{fragmentQueryDocuments:u(this.getFragmentDoc)}}}function u(e){return e&&"dirtyKey"in e?e.size:void 0}function c(e){return null!=e}function m(e){return(function e(t){return t?(0,i.__spreadArray)((0,i.__spreadArray)([u(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(c):[]})(e).map(function(e){return{cache:e}})}},555(e,t,a){a.d(t,{v:()=>o});var i=a(85608),n=a(70916),r=Symbol.for("apollo.cacheSize"),o=(0,i.__assign)({},n.global[r])},73767(e,t,a){a.d(t,{E:()=>n,c:()=>i});var i=Array.isArray;function n(e){return Array.isArray(e)&&e.length>0}},51360(e,t,a){a.d(t,{En:()=>o,JR:()=>u,Sw:()=>l,et:()=>r,ol:()=>s,uJ:()=>p});var i=a(70916),n="ReactNative"==(0,i.maybe)(function(){return navigator.product}),r="function"==typeof WeakMap&&!(n&&!global.HermesInternal),o="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,p=s&&Symbol.asyncIterator,l="function"==typeof(0,i.maybe)(function(){return window.document.createElement}),d=(0,i.maybe)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,u=(l||n)&&!d},44214(e,t,a){a.d(t,{M:()=>s});var i,n=a(45078),r=a(555),o=a(44114),s=Object.assign(function(e){return JSON.stringify(e,p)},{reset:function(){i=new n.V(r.v.canonicalStringify||1e3)}});function p(e,t){if(t&&"object"==typeof t){var a=Object.getPrototypeOf(t);if(a===Object.prototype||null===a){var n=Object.keys(t);if(n.every(l))return t;var r=JSON.stringify(n),o=i.get(r);if(!o){n.sort();var s=JSON.stringify(n);o=i.get(s)||n,i.set(r,o),i.set(s,o)}var p=Object.create(a);return o.forEach(function(e){p[e]=t[e]}),p}}return t}function l(e,t,a){return 0===t||a[t-1]<=e}!1!==globalThis.__DEV__&&(0,o.D_)("canonicalStringify",function(){return i.size}),s.reset()},20906(e,t,a){a.d(t,{m:()=>n});var i=Object.prototype.toString;function n(e){return function e(t,a){switch(i.call(t)){case"[object Array]":if((a=a||new Map).has(t))return a.get(t);var n=t.slice(0);return a.set(t,n),n.forEach(function(t,i){n[i]=e(t,a)}),n;case"[object Object]":if((a=a||new Map).has(t))return a.get(t);var r=Object.create(Object.getPrototypeOf(t));return a.set(t,r),Object.keys(t).forEach(function(i){r[i]=e(t[i],a)}),r;default:return t}}(e)}},50492(e,t,a){a.d(t,{o:()=>i});function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var a=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var i=e[t];void 0!==i&&(a[t]=i)})}),a}},32710(e,t,a){a.d(t,{M:()=>o,t:()=>r});var i=a(73767),n=a(37396);function r(e){var t=o(e);return(0,i.E)(t)}function o(e){var t=(0,i.E)(e.errors)?e.errors.slice(0):[];return(0,n.ST)(e)&&(0,i.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}},37396(e,t,a){a.d(t,{EQ:()=>s,Nw:()=>l,ST:()=>o,YX:()=>p,bd:()=>d});var i=a(21777),n=a(73767),r=a(30671);function o(e){return"incremental"in e}function s(e){return"hasNext"in e&&"data"in e}function p(e){return o(e)||s(e)}function l(e){return(0,i.U)(e)&&"payload"in e}function d(e,t){var a=e,i=new r.ZI;return o(t)&&(0,n.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,n=e.path,r=n.length-1;r>=0;--r){var o=n[r],s=isNaN(+o)?{}:[];s[o]=t,t=s}a=i.merge(a,t)}),a}},21461(e,t,a){a.d(t,{v:()=>n});var i=new Map;function n(e){var t=i.get(e)||1;return i.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},57236(e,t,a){a.d(t,{G:()=>n});var i=a(21777);function n(e){var t;return!1!==globalThis.__DEV__&&(t=new Set([e])).forEach(function(e){(0,i.U)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(a){(0,i.U)(e[a])&&t.add(e[a])})}),e}},30671(e,t,a){a.d(t,{D9:()=>o,IM:()=>s,ZI:()=>l});var i=a(85608),n=a(21777),r=Object.prototype.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},a=e.length;if(a>1)for(var i=new l,n=1;n<a;++n)t=i.merge(t,e[n]);return t}var p=function(e,t,a){return this.merge(e[a],t[a])},l=function(){function e(e){void 0===e&&(e=p),this.reconciler=e,this.isObject=n.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var a=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return(0,n.U)(t)&&(0,n.U)(e)?(Object.keys(t).forEach(function(n){if(r.call(e,n)){var s=e[n];if(t[n]!==s){var p=a.reconciler.apply(a,(0,i.__spreadArray)([e,t,n],o,!1));p!==s&&((e=a.shallowCopyForMerge(e))[n]=p)}}else(e=a.shallowCopyForMerge(e))[n]=t[n]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,n.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,i.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},31507(e,t,a){a.d(t,{l:()=>r});var i=a(85608),n=a(50492);function r(e,t){return(0,n.o)(e,t,t.variables&&{variables:(0,n.o)((0,i.__assign)((0,i.__assign)({},e&&e.variables),t.variables))})}},21777(e,t,a){function i(e){return null!==e&&"object"==typeof e}function n(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}a.d(t,{Q:()=>n,U:()=>i})},86563(e,t,a){a.d(t,{p:()=>n});var i=a(21461);function n(e,t){void 0===t&&(t=0);var a=(0,i.v)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?a:t},t).split(JSON.stringify(a)).join("<undefined>")}},70916(e,t,a){a.r(t),a.d(t,{invariant:()=>l,__DEV__:()=>h,DEV:()=>h,global:()=>o,InvariantError:()=>i.InvariantError,newInvariantError:()=>d,maybe:()=>r});var i=a(19371),n=a(73972);function r(e){try{return e()}catch(e){}}let o=r(function(){return globalThis})||r(function(){return window})||r(function(){return self})||r(function(){return global})||r(function(){return r.constructor("return this")()});var s=a(86563);function p(e){return function(t){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];if("number"==typeof t){var n=t;(t=m(n))||(t=f(n,a),a=[])}e.apply(void 0,[t].concat(a))}}var l=Object.assign(function(e,t){for(var a=[],n=2;n<arguments.length;n++)a[n-2]=arguments[n];e||(0,i.invariant)(e,m(t,a)||f(t,a))},{debug:p(i.invariant.debug),log:p(i.invariant.log),warn:p(i.invariant.warn),error:p(i.invariant.error)});function d(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return new i.InvariantError(m(e,t)||f(e,t))}var u=Symbol.for("ApolloErrorMessageHandler_"+n.r);function c(e){if("string"==typeof e)return e;try{return(0,s.p)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function m(e,t){if(void 0===t&&(t=[]),e)return o[u]&&o[u](e,t.map(c))}function f(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:n.r,message:e,args:t.map(c)})))}var h=!1!==globalThis.__DEV__},9354(e,t,a){a.d(t,{c:()=>u});var i=a(44592),n=a(51360),r=a(3777),o=a(70916),s=a(54019),p=a(60837),l=a(555);function d(e){return e}var u=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=n.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(d,{cache:!1})},e.split=function(t,a,i){return void 0===i&&(i=e.identity()),Object.assign(new e(function(e){return(t(e)?a:i).transformDocument(e)},{cache:!1}),{left:a,right:i})},e.prototype.resetCache=function(){var t=this;if(this.cached){var a=new i.Trie(n.et);this.performWork=(0,p.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var i=t.getCacheKey(e);if(i)return(0,o.invariant)(Array.isArray(i),77),a.lookupArray(i)},max:l.v["documentTransform.cache"],cache:s.l})}},e.prototype.performWork=function(e){return(0,r.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var a=this;return Object.assign(new e(function(e){return t.transformDocument(a.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},82307(e,t,a){a.d(t,{I5:()=>l,MS:()=>o,d8:()=>d,f2:()=>u,hE:()=>p,s7:()=>m,sx:()=>s,tY:()=>c});var i=a(70916),n=a(90424),r=a(42455);function o(e,t){var a=e.directives;return!a||!a.length||c(a).every(function(e){var a=e.directive,n=e.ifArgument,r=!1;return"Variable"===n.value.kind?(r=t&&t[n.value.name.value],(0,i.invariant)(void 0!==r,78,a.name.value)):r=n.value.value,"skip"===a.name.value?!r:r})}function s(e){var t=[];return(0,n.YR)(e,{Directive:function(e){t.push(e.name.value)}}),t}var p=function(e,t){return d(e,t,!1)},l=function(e,t){return d(e,t,!0)};function d(e,t,a){var i=new Set(e),r=i.size;return(0,n.YR)(t,{Directive:function(e){if(i.delete(e.name.value)&&(!a||!i.size))return n.sP}}),a?!i.size:i.size<r}function u(e){return e&&d(["client","export"],e,!0)}function c(e){var t=[];return e&&e.length&&e.forEach(function(e){if("skip"===(a=e.name.value)||"include"===a){var a,n=e.arguments,r=e.name.value;(0,i.invariant)(n&&1===n.length,79,r);var o=n[0];(0,i.invariant)(o.name&&"if"===o.name.value,80,r);var s=o.value;(0,i.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,r),t.push({directive:e,ifArgument:o})}}),t}function m(e){var t,a,n=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var o=null==(a=n.arguments)?void 0:a.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&o&&(o.value.kind===r.b.VARIABLE?!1!==globalThis.__DEV__&&i.invariant.warn(82):o.value.kind!==r.b.STRING?!1!==globalThis.__DEV__&&i.invariant.warn(83):"migrate"!==o.value.value&&!1!==globalThis.__DEV__&&i.invariant.warn(84,o.value.value)),o&&"value"in o.value&&"migrate"===o.value.value)?"migrate":"unmask"}},2904(e,t,a){a.d(t,{HQ:()=>p,JG:()=>s,ct:()=>o,s6:()=>l});var i=a(85608),n=a(70916),r=a(90424);function o(e,t){var a=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,n.newInvariantError)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)}),void 0===a&&((0,n.invariant)(1===r.length,86,r.length),a=r[0].name.value),(0,i.__assign)((0,i.__assign)({},e),{definitions:(0,i.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:a}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function p(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var a=e.name.value;if("function"==typeof t)return t(a);var i=t&&t[a];return(0,n.invariant)(i,87,a),i||null;default:return null}}function l(e){var t=!0;return(0,r.YR)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return r.sP}}),t}},3777(e,t,a){a.d(t,{AT:()=>l,E4:()=>d,Vn:()=>u,Vu:()=>o,n4:()=>s,sw:()=>r,wY:()=>c,zK:()=>p});var i=a(70916),n=a(28907);function r(e){(0,i.invariant)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,i.newInvariantError)(89,e.kind);return e});return(0,i.invariant)(t.length<=1,90,t.length),e}function o(e){return r(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function p(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function l(e){var t=o(e);return(0,i.invariant)(t&&"query"===t.operation,91),t}function d(e){(0,i.invariant)("Document"===e.kind,92),(0,i.invariant)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,i.invariant)("FragmentDefinition"===t.kind,94),t}function u(e){r(e);for(var t,a=0,n=e.definitions;a<n.length;a++){var o=n[a];if("OperationDefinition"===o.kind){var s=o.operation;if("query"===s||"mutation"===s||"subscription"===s)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw(0,i.newInvariantError)(95)}function c(e){var t=Object.create(null),a=e&&e.variableDefinitions;return a&&a.length&&a.forEach(function(e){e.defaultValue&&(0,n.J)(t,e.variable.name,e.defaultValue)}),t}},38678(e,t,a){a.d(t,{y:()=>p});var i,n=a(95818),r=a(45078),o=a(555),s=a(44114),p=Object.assign(function(e){var t=i.get(e);return t||(t=(0,n.y)(e),i.set(e,t)),t},{reset:function(){i=new r.A(o.v.print||2e3)}});p.reset(),!1!==globalThis.__DEV__&&(0,s.D_)("print",function(){return i?i.size:0})},28907(e,t,a){a.d(t,{A_:()=>p,D$:()=>function e(t,a,i){for(var n,o=0,s=a.selections;o<s.length;o++){var p=s[o];if(g(p)){if("__typename"===p.name.value)return t[v(p)]}else n?n.push(p):n=[p]}if("string"==typeof t.__typename)return t.__typename;if(n)for(var l=0,d=n;l<d.length;l++){var p=d[l],u=e(t,(0,r.HQ)(p,i).selectionSet,i);if("string"==typeof u)return u}},Ii:()=>u,J:()=>d,Kc:()=>l,MB:()=>h,WU:()=>s,dt:()=>g,kd:()=>y,o5:()=>f,ue:()=>v});var i=a(70916),n=a(21777),r=a(2904),o=a(44214);function s(e){return{__ref:String(e)}}function p(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function l(e){return(0,n.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function d(e,t,a,n){if("IntValue"===a.kind||"FloatValue"===a.kind)e[t.value]=Number(a.value);else if("BooleanValue"===a.kind||"StringValue"===a.kind)e[t.value]=a.value;else if("ObjectValue"===a.kind){var r={};a.fields.map(function(e){return d(r,e.name,e.value,n)}),e[t.value]=r}else if("Variable"===a.kind){var o=(n||{})[a.name.value];e[t.value]=o}else if("ListValue"===a.kind)e[t.value]=a.values.map(function(e){var a={};return d(a,t,e,n),a[t.value]});else if("EnumValue"===a.kind)e[t.value]=a.value;else if("NullValue"===a.kind)e[t.value]=null;else throw(0,i.newInvariantError)(96,t.value,a.kind)}function u(e,t){var a=null;e.directives&&(a={},e.directives.forEach(function(e){a[e.name.value]={},e.arguments&&e.arguments.forEach(function(i){var n=i.name,r=i.value;return d(a[e.name.value],n,r,t)})}));var i=null;return e.arguments&&e.arguments.length&&(i={},e.arguments.forEach(function(e){var a=e.name,n=e.value;return d(i,a,n,t)})),f(e.name.value,i,a)}var c=["connection","include","skip","client","rest","export","nonreactive"],m=o.M,f=Object.assign(function(e,t,a){if(t&&a&&a.connection&&a.connection.key)if(!a.connection.filter||!(a.connection.filter.length>0))return a.connection.key;else{var i=a.connection.filter?a.connection.filter:[];i.sort();var n={};return i.forEach(function(e){n[e]=t[e]}),"".concat(a.connection.key,"(").concat(m(n),")")}var r=e;if(t){var o=m(t);r+="(".concat(o,")")}return a&&Object.keys(a).forEach(function(e){-1===c.indexOf(e)&&(a[e]&&Object.keys(a[e]).length?r+="@".concat(e,"(").concat(m(a[e]),")"):r+="@".concat(e))}),r},{setStringify:function(e){var t=m;return m=e,t}});function h(e,t){if(e.arguments&&e.arguments.length){var a={};return e.arguments.forEach(function(e){return d(a,e.name,e.value,t)}),a}return null}function v(e){return e.alias?e.alias.value:e.name.value}function g(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}},53925(e,t,a){a.d(t,{TC:()=>D,XY:()=>h,er:()=>x,hX:()=>g,it:()=>y,iz:()=>f,x3:()=>_,zc:()=>b});var i=a(85608),n=a(70916),r=a(42455),o=a(90424),s=a(3777),p=a(28907),l=a(2904),d=a(73767),u={kind:r.b.FIELD,name:{kind:r.b.NAME,value:"__typename"}};function c(e){return!function e(t,a){return!t||t.selectionSet.selections.every(function(t){return t.kind===r.b.FRAGMENT_SPREAD&&e(a[t.name.value],a)})}((0,s.Vu)(e)||(0,s.E4)(e),(0,l.JG)((0,s.zK)(e)))?e:null}function m(e){var t=new Map;return function(a){void 0===a&&(a=e);var i=t.get(a);return i||t.set(a,i={variables:new Set,fragmentSpreads:new Set}),i}}function f(e,t){(0,s.sw)(t);for(var a,p,l=m(""),u=m(""),f=function(e){for(var t=0,a=void 0;t<e.length&&(a=e[t]);++t)if(!(0,d.c)(a)){if(a.kind===r.b.OPERATION_DEFINITION)return l(a.name&&a.name.value);if(a.kind===r.b.FRAGMENT_DEFINITION)return u(a.name.value)}return!1!==globalThis.__DEV__&&n.invariant.error(97),null},h=0,v=t.definitions.length-1;v>=0;--v)t.definitions[v].kind===r.b.OPERATION_DEFINITION&&++h;var g=(a=new Map,p=new Map,e.forEach(function(e){e&&(e.name?a.set(e.name,e):e.test&&p.set(e.test,e))}),function(e){var t=a.get(e.name.value);return!t&&p.size&&p.forEach(function(a,i){i(e)&&(t=a)}),t}),y=function(e){return(0,d.E)(e)&&e.map(g).some(function(e){return e&&e.remove})},D=new Map,b=!1,x={enter:function(e){if(y(e.directives))return b=!0,null}},_=(0,o.YR)(t,{Field:x,InlineFragment:x,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,a,i,n){var r=f(n);r&&r.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,a,i,n){if(y(e.directives))return b=!0,null;var r=f(n);r&&r.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,a,i){D.set(JSON.stringify(i),e)},leave:function(e,t,a,i){return e===D.get(JSON.stringify(i))?e:h>0&&e.selectionSet.selections.every(function(e){return e.kind===r.b.FIELD&&"__typename"===e.name.value})?(u(e.name.value).removed=!0,b=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return b=!0,null}}});if(!b)return t;var w=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){w(u(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},E=new Set;_.definitions.forEach(function(e){e.kind===r.b.OPERATION_DEFINITION?w(l(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){E.add(e)}):e.kind!==r.b.FRAGMENT_DEFINITION||0!==h||u(e.name.value).removed||E.add(e.name.value)}),E.forEach(function(e){w(u(e)).fragmentSpreads.forEach(function(e){E.add(e)})});var F={enter:function(e){var t;if(t=e.name.value,!E.has(t)||u(t).removed)return null}};return c((0,o.YR)(_,{FragmentSpread:F,FragmentDefinition:F,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=w(l(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,i.__assign)((0,i.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var h=Object.assign(function(e){return(0,o.YR)(e,{SelectionSet:{enter:function(e,t,a){if(!a||a.kind!==r.b.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return(0,p.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,p.dt)(a)&&a.directives&&a.directives.some(function(e){return"export"===e.name.value})))return(0,i.__assign)((0,i.__assign)({},e),{selections:(0,i.__spreadArray)((0,i.__spreadArray)([],n,!0),[u],!1)})}}}})},{added:function(e){return e===u}}),v={test:function(e){var t="connection"===e.name.value;return!t||e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||!1===globalThis.__DEV__||n.invariant.warn(98),t}};function g(e){return f([v],(0,s.sw)(e))}function y(e,t){var a=function(t){return e.some(function(e){return t.value&&t.value.kind===r.b.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})};return c((0,o.YR)(t,{OperationDefinition:{enter:function(t){return(0,i.__assign)((0,i.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var i=0;if(t.arguments&&t.arguments.forEach(function(e){a(e)&&(i+=1)}),1===i)return null}}},Argument:{enter:function(e){if(a(e))return null}}}))}function D(e,t){function a(t){if(e.some(function(e){return e.name===t.name.value}))return null}return c((0,o.YR)(t,{FragmentSpread:{enter:a},FragmentDefinition:{enter:a}}))}function b(e){return"query"===(0,s.Vn)(e).operation?e:(0,o.YR)(e,{OperationDefinition:{enter:function(e){return(0,i.__assign)((0,i.__assign)({},e),{operation:"query"})}}})}function x(e){return(0,s.sw)(e),f([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function _(e){return(0,s.sw)(e),(0,o.YR)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,i.__assign)((0,i.__assign)({},e),{directives:(0,i.__spreadArray)((0,i.__spreadArray)([],e.directives||[],!0),[{kind:r.b.DIRECTIVE,name:{kind:r.b.NAME,value:"nonreactive"}}],!1)})}})}},5437(e,t,a){a.r(t),a.d(t,{DEV:()=>i.DEV,concatPagination:()=>g,getInclusionDirectives:()=>n.tY,makeReference:()=>l.WU,shouldInclude:()=>n.MS,createFragmentMap:()=>o.JG,AutoCleanedStrongCache:()=>Q.V,hasAllDirectives:()=>n.I5,AutoCleanedWeakCache:()=>Q.A,canUseWeakMap:()=>R.et,getFragmentFromSelection:()=>o.HQ,storeKeyNameFromField:()=>l.Ii,getOperationDefinition:()=>s.Vu,isArray:()=>$.c,checkDocument:()=>s.sw,getFragmentMaskMode:()=>n.s7,maybe:()=>i.maybe,valueToObjectRepresentation:()=>l.J,mergeDeepArray:()=>v.IM,getDirectiveNames:()=>n.sx,isExecutionPatchInitialResult:()=>U.EQ,graphQLResultHasError:()=>B.t,resultKeyNameFromField:()=>l.ue,hasDirectives:()=>n.d8,isPlainObject:()=>j.Q,isNonNullObject:()=>j.U,mergeOptions:()=>M.l,canUseAsyncIteratorSymbol:()=>R.uJ,isReference:()=>l.A_,DeepMerger:()=>v.ZI,maybeDeepFreeze:()=>S.G,getFragmentDefinition:()=>s.E4,getTypenameFromResult:()=>l.D$,iterateObserversSafely:()=>O.w,getOperationName:()=>s.n4,removeDirectivesFromDocument:()=>d.iz,isStatefulPromise:()=>F,isInlineFragment:()=>l.kd,canUseWeakSet:()=>R.En,mergeDeep:()=>v.D9,omitDeep:()=>G,isQueryOperation:()=>m,print:()=>p.y,createRejectedPromise:()=>E,getStoreKeyName:()=>l.o5,removeFragmentSpreadFromDocument:()=>d.TC,removeArgumentsFromDocument:()=>d.it,fixObservableSubclass:()=>I.r,createFulfilledPromise:()=>w,canUseSymbol:()=>R.ol,getFragmentQueryDocument:()=>o.ct,removeConnectionDirectiveFromDocument:()=>d.hX,stringifyForDisplay:()=>L.p,wrapPromiseWithState:()=>C,relayStylePagination:()=>D,isNonEmptyArray:()=>$.E,getFragmentDefinitions:()=>s.zK,isExecutionPatchIncrementalResult:()=>U.ST,buildQueryFromSelectionSet:()=>d.zc,preventUnhandledRejection:()=>A.X,stripTypename:()=>Y,canUseDOM:()=>R.Sw,canUseLayoutEffect:()=>R.JR,isApolloPayloadResult:()=>U.Nw,DocumentTransform:()=>r.c,addTypenameToDocument:()=>d.XY,canonicalStringify:()=>q.M,Concast:()=>k.E,Observable:()=>_.c,argumentsObjectFromField:()=>l.MB,getDefaultValues:()=>s.wY,isField:()=>l.dt,hasClientExports:()=>n.f2,offsetLimitPagination:()=>y,removeClientSetsFromDocument:()=>d.er,isDocumentNode:()=>l.Kc,compact:()=>V.o,getGraphQLErrorsFromResult:()=>B.M,addNonReactiveToNamedFragments:()=>d.x3,getQueryDefinition:()=>s.AT,isExecutionPatchResult:()=>U.YX,asyncMap:()=>N.x,isFullyUnmaskedOperation:()=>o.s6,hasAnyDirectives:()=>n.hE,getMainDefinition:()=>s.Vn,isMutationOperation:()=>c,cloneDeep:()=>T.m,isSubscriptionOperation:()=>f,cacheSizes:()=>J.v,makeUniqueId:()=>P.v,mergeIncrementalData:()=>U.bd});var i=a(70916),n=a(82307),r=a(9354),o=a(2904),s=a(3777),p=a(38678),l=a(28907),d=a(53925);function u(e,t){var a;return(null==(a=(0,s.Vu)(e))?void 0:a.operation)===t}function c(e){return u(e,"mutation")}function m(e){return u(e,"query")}function f(e){return u(e,"subscription")}var h=a(85608),v=a(30671);function g(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t){return e?(0,h.__spreadArray)((0,h.__spreadArray)([],e,!0),t,!0):t}}}function y(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,a){var i=a.args,n=e?e.slice(0):[];if(t)if(i)for(var r=i.offset,o=void 0===r?0:r,s=0;s<t.length;++s)n[o+s]=t[s];else n.push.apply(n,t);return n}}}function D(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var a=t.canRead,i=t.readField;if(!e)return e;var n=[],r="",o="";e.edges.forEach(function(e){a(i("node",e))&&(n.push(e),e.cursor&&(r=r||e.cursor||"",o=e.cursor||o))}),n.length>1&&r===o&&(r="");var s=e.pageInfo||{},p=s.startCursor,l=s.endCursor;return(0,h.__assign)((0,h.__assign)({},b(e)),{edges:n,pageInfo:(0,h.__assign)((0,h.__assign)({},e.pageInfo),{startCursor:p||r,endCursor:l||o})})},merge:function(e,t,a){var i=a.args,n=a.isReference,r=a.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var o=t.edges?t.edges.map(function(e){return n(e=(0,h.__assign)({},e))&&(e.cursor=r("cursor",e)),e}):[];if(t.pageInfo){var s=t.pageInfo,p=s.startCursor,l=s.endCursor,d=o[0],u=o[o.length-1];d&&p&&(d.cursor=p),u&&l&&(u.cursor=l);var c=d&&d.cursor;c&&!p&&(t=(0,v.D9)(t,{pageInfo:{startCursor:c}}));var m=u&&u.cursor;m&&!l&&(t=(0,v.D9)(t,{pageInfo:{endCursor:m}}))}var f=e.edges,g=[];if(i&&i.after){var y=f.findIndex(function(e){return e.cursor===i.after});y>=0&&(f=f.slice(0,y+1))}else if(i&&i.before){var y=f.findIndex(function(e){return e.cursor===i.before});g=y<0?f:f.slice(y),f=[]}else t.edges&&(f=[]);var D=(0,h.__spreadArray)((0,h.__spreadArray)((0,h.__spreadArray)([],f,!0),o,!0),g,!0),x=(0,h.__assign)((0,h.__assign)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var _=t.pageInfo,w=_.hasPreviousPage,E=_.hasNextPage,p=_.startCursor,l=_.endCursor;Object.assign(x,(0,h.__rest)(_,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),f.length||(void 0!==w&&(x.hasPreviousPage=w),void 0!==p&&(x.startCursor=p)),g.length||(void 0!==E&&(x.hasNextPage=E),void 0!==l&&(x.endCursor=l))}return(0,h.__assign)((0,h.__assign)((0,h.__assign)({},b(e)),b(t)),{edges:D,pageInfo:x})}}}var b=function(e){return(0,h.__rest)(e,x)},x=["edges","pageInfo"],_=a(36054);function w(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function E(e){var t=Promise.reject(e);return t.catch(function(){}),t.status="rejected",t.reason=e,t}function F(e){return"status"in e}function C(e){return F(e)||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}var A=a(30234),T=a(20906),S=a(57236),O=a(87613),N=a(5762),k=a(45637),I=a(35892),$=a(73767),j=a(21777),B=a(32710),R=a(51360),V=a(50492),P=a(21461),L=a(86563),M=a(31507),U=a(37396),q=a(44214);function G(e,t){return z(e,t)}function z(e,t,a){if(void 0===a&&(a=new Map),a.has(e))return a.get(e);var i=!1;if(Array.isArray(e)){var n=[];if(a.set(e,n),e.forEach(function(e,r){var o=z(e,t,a);i||(i=o!==e),n[r]=o}),i)return n}else if((0,j.Q)(e)){var r=Object.create(Object.getPrototypeOf(e));if(a.set(e,r),Object.keys(e).forEach(function(n){if(n===t){i=!0;return}var o=z(e[n],t,a);i||(i=o!==e[n]),r[n]=o}),i)return r}return e}function Y(e){return z(e,"__typename")}var Q=a(45078),J=a(555)},45637(e,t,a){a.d(t,{E:()=>p});var i=a(85608),n=a(36054),r=a(87613),o=a(35892);function s(e){return e&&"function"==typeof e.then}var p=function(e){function t(t){var a=e.call(this,function(e){return a.addObserver(e),function(){return a.removeObserver(e)}})||this;return a.observers=new Set,a.promise=new Promise(function(e,t){a.resolve=e,a.reject=t}),a.handlers={next:function(e){null!==a.sub&&(a.latest=["next",e],a.notify("next",e),(0,r.w)(a.observers,"next",e))},error:function(e){var t=a.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),a.sub=null,a.latest=["error",e],a.reject(e),a.notify("error",e),(0,r.w)(a.observers,"error",e))},complete:function(){var e=a.sub,t=a.sources;if(null!==e){var i=(void 0===t?[]:t).shift();i?s(i)?i.then(function(e){return a.sub=e.subscribe(a.handlers)},a.handlers.error):a.sub=i.subscribe(a.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),a.sub=null,a.latest&&"next"===a.latest[0]?a.resolve(a.latest[1]):a.resolve(),a.notify("complete"),(0,r.w)(a.observers,"complete"))}}},a.nextResultListeners=new Set,a.cancel=function(e){a.reject(e),a.sources=[],a.handlers.error(e)},a.promise.catch(function(e){}),"function"==typeof t&&(t=[new n.c(t)]),s(t)?t.then(function(e){return a.start(e)},a.handlers.error):a.start(t),a}return(0,i.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],a=e[t];a&&a.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var a=this.nextResultListeners;a.size&&(this.nextResultListeners=new Set,a.forEach(function(a){return a(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(a,i){t||(t=!0,e(a,i))})},t}(n.c);(0,o.r)(p)},5762(e,t,a){a.d(t,{x:()=>n});var i=a(36054);function n(e,t,a){return new i.c(function(i){var n={then:function(e){return new Promise(function(t){return t(e())})}};function r(e,t){return function(a){if(e){var r=function(){return i.closed?0:e(a)};n=n.then(r,r).then(function(e){return i.next(e)},function(e){return i.error(e)})}else i[t](a)}}var o={next:r(t,"next"),error:r(a,"error"),complete:function(){n.then(function(){return i.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}},87613(e,t,a){a.d(t,{w:()=>i});function i(e,t,a){var i=[];e.forEach(function(e){return e[t]&&i.push(e)}),i.forEach(function(e){return e[t](a)})}},35892(e,t,a){a.d(t,{r:()=>r});var i=a(36054),n=a(51360);function r(e){function t(t){Object.defineProperty(e,t,{value:i.c})}return n.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},30234(e,t,a){a.d(t,{X:()=>i});function i(e){return e.catch(function(){}),e}},73972(e,t,a){a.d(t,{r:()=>i});var i="3.13.8"},88958(e,a,i){let n;i.d(a,{kv:()=>ef,lJ:()=>eN,hF:()=>eI});let r=(e,t=[])=>"up"===e.name||t.includes("vim")&&"k"===e.name||t.includes("emacs")&&e.ctrl&&"p"===e.name,o=(e,t=[])=>"down"===e.name||t.includes("vim")&&"j"===e.name||t.includes("emacs")&&e.ctrl&&"n"===e.name,s=e=>"enter"===e.name||"return"===e.name;class p extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}}class l extends Error{name="CancelPromptError";message="Prompt was canceled"}class d extends Error{name="ExitPromptError"}class u extends Error{name="HookError"}class c extends Error{name="ValidationError"}let m=t("node:async_hooks"),f=new m.AsyncLocalStorage;function h(){let e=f.getStore();if(!e)throw new u("[Inquirer] Hook functions can only be called from within a prompt");return e}function v(e){return m.AsyncResource.bind((...t)=>{let a=h(),i=!1,n=a.handleChange;a.handleChange=()=>{i=!0};let r=e(...t);return i&&n(),a.handleChange=n,r})}function g(e){let t=h(),{index:a}=t,i=e({get:()=>t.hooks[a],set(e){t.hooks[a]=e},initialized:a in t.hooks});return t.index++,i}let y={queue(e){let t=h(),{index:a}=t;t.hooksEffect.push(()=>{t.hooksCleanup[a]?.();let i=e(h().rl);if(null!=i&&"function"!=typeof i)throw new c("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[a]=i})},run(){let e=h();v(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=h();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function D(e){return g(t=>{let a=m.AsyncResource.bind(function(e){t.get()!==e&&(t.set(e),h().handleChange())});if(t.initialized)return[t.get(),a];let i="function"==typeof e?e():e;return t.set(i),[i,a]})}function b(e,t){g(a=>{let i=a.get();(!Array.isArray(i)||t.some((e,t)=>!Object.is(e,i[t])))&&y.queue(e),a.set(t)})}var x=i(57504),_=i(1708);let w={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},E={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},F={...w,...E},C={...w,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},A=("win32"!==_.platform?"linux"===_.env.TERM:!_.env.WT_SESSION&&!_.env.TERMINUS_SUBLIME&&"{cmd::Cmder}"!==_.env.ConEmuTask&&"Terminus-Sublime"!==_.env.TERM_PROGRAM&&"vscode"!==_.env.TERM_PROGRAM&&"xterm-256color"!==_.env.TERM&&"alacritty"!==_.env.TERM&&"JetBrains-JediTerm"!==_.env.TERMINAL_EMULATOR)?C:F;Object.entries(E);let T={prefix:{idle:x.blue("?"),done:x.green(A.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>x.yellow(e))},style:{answer:x.cyan,message:x.bold,error:e=>x.red(`> ${e}`),defaultAnswer:e=>x.dim(`(${e})`),help:x.dim,highlight:x.cyan,key:e=>x.cyan(x.bold(`<${e}>`))}};function S(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function O(...e){return function e(...t){let a={};for(let i of t)for(let[t,n]of Object.entries(i)){let i=a[t];a[t]=S(i)&&S(n)?e(i,n):n}return a}(T,...e.filter(e=>null!=e))}function N({status:e="idle",theme:t}){let[a,i]=D(!1),[n,r]=D(0),{prefix:o,spinner:s}=O(t);if(b(()=>{if("loading"===e){let e,t=-1,a=setTimeout(()=>{i(!0),e=setInterval(()=>{r((t+=1)%s.frames.length)},s.interval)},300);return()=>{clearTimeout(a),clearInterval(e)}}i(!1)},[e]),a)return s.frames[n];let p="loading"===e?"idle":e;return"string"==typeof o?o:o[p]??o.idle}function k(e,t){return g(a=>{let i=a.get();if(!i||i.dependencies.length!==t.length||i.dependencies.some((e,a)=>e!==t[a])){let i=e();return a.set({value:i,dependencies:t}),i}return i.value})}function I(e){return D({current:e})[0]}function $(e){let t=I(e);t.current=e,b(e=>{let a=!1,i=v((i,n)=>{a||t.current(n,e)});return e.input.on("keypress",i),()=>{a=!0,e.input.removeListener("keypress",i)}},[])}var j=i(74),B=i(61893);function R(e,t){return e.split("\n").flatMap(e=>B(e,t,{trim:!1,hard:!0}).split("\n").map(e=>e.trimEnd())).join("\n")}function V(){return j({defaultWidth:80,output:h().rl.output})}function P({items:e,active:t,renderItem:a,pageSize:i,loop:n=!0}){let r=V(),o=t=>(t%e.length+e.length)%e.length,s=e.map((e,i)=>null==e?[]:R(a({item:e,index:i,isActive:i===t}),r).split("\n")),p=s.reduce((e,t)=>e+t.length,0),l=e=>s[e]??[],d=function({active:e,renderedItems:t,pageSize:a,loop:i}){let n=I({lastPointer:e,lastActive:void 0}),{lastPointer:r,lastActive:o}=n.current,s=Math.floor(a/2),p=t.reduce((e,t)=>e+t.length,0),l=t.slice(0,e).reduce((e,t)=>e+t.length,0),d=l;if(p>a)if(i)d=r,null!=o&&o<e&&e-o<a&&(d=Math.min(s,1===Math.abs(e-o)?Math.min(r+(t[o]?.length??0),Math.max(l,r)):r+e-o));else{let i=t.slice(e).reduce((e,t)=>e+t.length,0);d=i<a-s?a-i:Math.min(l,s)}return n.current.lastPointer=d,n.current.lastActive=e,d}({active:t,renderedItems:s,pageSize:i,loop:n}),u=l(t).slice(0,i),c=d+u.length<=i?d:i-u.length,m=Array.from({length:i});m.splice(c,u.length,...u);let f=new Set([t]),h=c+u.length,v=o(t+1);for(;h<i&&!f.has(v)&&(n&&p>i?v!==t:v>t);){let e=l(v).slice(0,i-h);m.splice(h,e.length,...e),f.add(v),h+=e.length,v=o(v+1)}for(h=c-1,v=o(t-1);h>=0&&!f.has(v)&&(n&&p>i?v!==t:v<t);){let e=l(v),t=e.slice(Math.max(0,e.length-h-1));m.splice(h-t.length+1,t.length,...t),f.add(v),h-=t.length,v=o(v-1)}return m.filter(e=>"string"==typeof e).join("\n")}let L=t("node:readline");var M=i(83329);let U=[];U.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&U.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&U.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");let q=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,G=Symbol.for("signal-exit emitter"),z=globalThis,Y=Object.defineProperty.bind(Object);class Q{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(z[G])return z[G];Y(z,G,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let a=this.listeners[e],i=a.indexOf(t);-1!==i&&(0===i&&1===a.length?a.length=0:a.splice(i,1))}emit(e,t,a){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(let n of this.listeners[e])i=!0===n(t,a)||i;return"exit"===e&&(i=this.emit("afterExit",t,a)||i),i}}class J{}class W extends J{#i="win32"===H.platform?"SIGINT":"SIGHUP";#n=new Q;#r;#o;#s;#p={};#l=!1;constructor(e){for(let t of(super(),this.#r=e,this.#p={},U))this.#p[t]=()=>{let a=this.#r.listeners(t),{count:i}=this.#n;if("object"==typeof e.__signal_exit_emitter__&&"number"==typeof e.__signal_exit_emitter__.count&&(i+=e.__signal_exit_emitter__.count),a.length===i){this.unload();let a=this.#n.emit("exit",null,t),i="SIGHUP"===t?this.#i:t;a||e.kill(e.pid,i)}};this.#s=e.reallyExit,this.#o=e.emit}onExit(e,t){if(!q(this.#r))return()=>{};!1===this.#l&&this.load();let a=t?.alwaysLast?"afterExit":"exit";return this.#n.on(a,e),()=>{this.#n.removeListener(a,e),0===this.#n.listeners.exit.length&&0===this.#n.listeners.afterExit.length&&this.unload()}}load(){if(!this.#l){for(let e of(this.#l=!0,this.#n.count+=1,U))try{let t=this.#p[e];t&&this.#r.on(e,t)}catch(e){}this.#r.emit=(e,...t)=>this.#d(e,...t),this.#r.reallyExit=e=>this.#u(e)}}unload(){this.#l&&(this.#l=!1,U.forEach(e=>{let t=this.#p[e];if(!t)throw Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)}catch(e){}}),this.#r.emit=this.#o,this.#r.reallyExit=this.#s,this.#n.count-=1)}#u(e){return q(this.#r)?(this.#r.exitCode=e||0,this.#n.emit("exit",this.#r.exitCode,null),this.#s.call(this.#r,this.#r.exitCode)):0}#d(e,...t){let a=this.#o;if(!("exit"===e&&q(this.#r)))return a.call(this.#r,e,...t);{"number"==typeof t[0]&&(this.#r.exitCode=t[0]);let i=a.call(this.#r,e,...t);return this.#n.emit("exit",this.#r.exitCode,null),i}}}let H=globalThis.process,{onExit:K,load:X,unload:Z}=(n=q(H)?new W(H):new class extends J{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>n.onExit(e,t),load:()=>n.load(),unload:()=>n.unload()});var ee=i(57975);let et=(e=1)=>e>0?`\u001B[${e}A`:"",ea=(e=1)=>e>0?`\u001B[${e}B`:"",ei=(e,t)=>"number"!=typeof t||Number.isNaN(t)?`\u001B[${e+1}G`:`\u001B[${t+1};${e+1}H`,en="\x1b[2K",er=e=>e>0?(en+et(1)).repeat(e-1)+en+"\x1b[G":"";class eo{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=""){let a=e.split("\n").pop()??"",i=(0,ee.stripVTControlCharacters)(a),n=i;this.rl.line.length>0&&(n=n.slice(0,-this.rl.line.length)),this.rl.setPrompt(n),this.cursorPos=this.rl.getCursorPos();let r=V();e=R(e,r),t=R(t,r),i.length%r==0&&(e+="\n");let o=e+(t?"\n"+t:""),s=Math.floor(i.length/r)-this.cursorPos.rows+(t?t.split("\n").length:0);s>0&&(o+=et(s)),o+=ei(this.cursorPos.cols),this.write(ea(this.extraLinesUnderPrompt)+er(this.height)+o),this.extraLinesUnderPrompt=s,this.height=o.split("\n").length}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(ei(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt("");let t=ea(this.extraLinesUnderPrompt);t+=e?er(this.height):"\n",t+="\x1b[?25h",this.write(t),this.rl.close()}}class es extends Promise{static withResolver(){let e,t;return{promise:new Promise((a,i)=>{e=a,t=i}),resolve:e,reject:t}}}function ep(e){let t=function(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(e,a)=>{let i=a.slice(1);return t=i,i},Error().stack}catch{return t}return Error.prepareStackTrace=e,t}();return(a,i={})=>{let{input:n=process.stdin,signal:r}=i,o=new Set,s=new M;s.pipe(i.output??process.stdout);let u=L.createInterface({terminal:!0,input:n,output:s}),c=new eo(u),{promise:h,resolve:v,reject:g}=es.withResolver(),D=()=>g(new l);if(r){let e=()=>g(new p({cause:r.reason}));if(r.aborted)return e(),Object.assign(h,{cancel:D});r.addEventListener("abort",e),o.add(()=>r.removeEventListener("abort",e))}o.add(K((e,t)=>{g(new d(`User force closed the prompt with ${e} ${t}`))}));let b=()=>g(new d("User force closed the prompt with SIGINT"));u.on("SIGINT",b),o.add(()=>u.removeListener("SIGINT",b));let x=()=>c.checkCursorPos();u.input.on("keypress",x),o.add(()=>u.input.removeListener("keypress",x));let _={rl:u,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}};return f.run(_,()=>{var n;let r;return n=function(e){_.handleChange=()=>{_.index=0,e()},_.handleChange()},r=m.AsyncResource.bind(()=>y.clearAll()),u.on("close",r),o.add(()=>u.removeListener("close",r)),n(()=>{try{let i=e(a,e=>{setImmediate(()=>v(e))});if(void 0===i){let e=t[1]?.getFileName();throw Error(`Prompt functions must return a string.
|
|
19
|
-
at ${e}`)}let[n,r]="string"==typeof i?[i]:i;c.render(n,r),y.run()}catch(e){g(e)}}),Object.assign(h.then(e=>(y.clearAll(),e),e=>{throw y.clearAll(),e}).finally(()=>{o.forEach(e=>e()),c.done({clearContent:!!i.clearPromptOnDone}),s.end()}).then(()=>h),{cancel:D})})}}class el{separator=x.dim(Array.from({length:15}).join(A.line));type="separator";constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&"object"==typeof e&&"type"in e&&"separator"===e.type)}}let ed={icon:{checked:x.green(A.circleFilled),unchecked:A.circle,cursor:A.pointer},style:{disabledChoice:e=>x.dim(`- ${e}`),renderSelectedChoices:e=>e.map(e=>e.short).join(", "),description:e=>x.cyan(e),keysHelpTip:e=>e.map(([e,t])=>`${x.bold(e)} ${x.dim(t)}`).join(x.dim(" • "))},helpMode:"always",keybindings:[]};function eu(e){return!el.isSeparator(e)&&!e.disabled}function ec(e){return eu(e)&&e.checked}function em(e){return eu(e)?{...e,checked:!e.checked}:e}let ef=ep((e,t)=>{let a,i,{instructions:n,pageSize:p=7,loop:l=!0,required:d,validate:u=()=>!0}=e,m={all:"a",invert:"i",...e.shortcuts},f=O(ed,e.theme),{keybindings:h}=f,[v,g]=D("idle"),y=N({status:v,theme:f}),[b,x]=D(e.choices.map(e=>{if(el.isSeparator(e))return e;if("string"==typeof e)return{value:e,name:e,short:e,checkedName:e,disabled:!1,checked:!1};let t=e.name??String(e.value),a={value:e.value,name:t,short:e.short??t,checkedName:e.checkedName??t,disabled:e.disabled??!1,checked:e.checked??!1};return e.description&&(a.description=e.description),a})),_=k(()=>{let e=b.findIndex(eu),t=b.findLastIndex(eu);if(-1===e)throw new c("[checkbox prompt] No selectable choices. All choices are disabled.");return{first:e,last:t}},[b]),[w,E]=D(_.first),[F,C]=D();$(async e=>{if(s(e)){let e=b.filter(ec),a=await u([...e]);d&&!b.some(ec)?C("At least one choice must be selected"):!0===a?(g("done"),t(e.map(e=>e.value))):C(a||"You must select a valid value")}else if(r(e,h)||o(e,h)){if(l||r(e,h)&&w!==_.first||o(e,h)&&w!==_.last){let t=r(e,h)?-1:1,a=w;do a=(a+t+b.length)%b.length;while(!eu(b[a]));E(a)}}else if("space"===e.name)C(void 0),x(b.map((e,t)=>t===w?em(e):e));else if(e.name===m.all){let e=b.some(e=>eu(e)&&!e.checked);x(b.map(function(t){return eu(t)?{...t,checked:e}:t}))}else if(e.name===m.invert)x(b.map(em));else if("1234567890".includes(e.name)){let t=Number(e.name)-1,a=-1,i=b.findIndex(e=>!el.isSeparator(e)&&++a===t),n=b[i];n&&eu(n)&&(E(i),x(b.map((e,t)=>t===i?em(e):e)))}});let A=f.style.message(e.message,v),T=P({items:b,active:w,renderItem({item:e,isActive:t}){if(el.isSeparator(e))return` ${e.separator}`;if(e.disabled){let t="string"==typeof e.disabled?e.disabled:"(disabled)";return f.style.disabledChoice(`${e.name} ${t}`)}t&&(a=e.description);let i=e.checked?f.icon.checked:f.icon.unchecked,n=e.checked?e.checkedName:e.name,r=t?f.style.highlight:e=>e,o=t?f.icon.cursor:" ";return r(`${o}${i} ${n}`)},pageSize:p,loop:l});if("done"===v){let e=b.filter(ec);return[y,A,f.style.answer(f.style.renderSelectedChoices(e,b))].filter(Boolean).join(" ")}if("never"!==f.helpMode&&!1!==n)if("string"==typeof n)i=n;else{let e=[["↑↓","navigate"],["space","select"]];m.all&&e.push([m.all,"all"]),m.invert&&e.push([m.invert,"invert"]),e.push(["⏎","submit"]),i=f.style.keysHelpTip(e)}let S=[[y,A].filter(Boolean).join(" "),T," ",a?f.style.description(a):"",F?f.style.error(F):"",i].filter(Boolean).join("\n").trimEnd();return`${S}\u001b[?25l`});var eh=i(68023),ev=i(35317),eg=i(79896),ey=i(76760),eD=i(48161),eb=i(77598),ex=i(65679);class e_ extends Error{originalError;constructor(e){super(`Failed to create temporary file. ${e.message}`),this.originalError=e}}class ew extends Error{originalError;constructor(e){super(`Failed to launch editor. ${e.message}`),this.originalError=e}}class eE extends Error{originalError;constructor(e){super(`Failed to read temporary file. ${e.message}`),this.originalError=e}}class eF extends Error{originalError;constructor(e){super(`Failed to remove temporary file. ${e.message}`),this.originalError=e}}function eC(e){return e?e.replace(/[^a-zA-Z0-9_.-]/g,"_"):""}class eA{text="";tempFile;editor;lastExitStatus=0;fileOptions={};get temp_file(){return console.log("DEPRECATED: temp_file. Use tempFile moving forward."),this.tempFile}get last_exit_status(){return console.log("DEPRECATED: last_exit_status. Use lastExitStatus moving forward."),this.lastExitStatus}constructor(e="",t){this.text=e,t&&(this.fileOptions=t),this.determineEditor(),this.createTemporaryFile()}run(){return this.launchEditor(),this.readTemporaryFile(),this.text}runAsync(e){try{this.launchEditorAsync(()=>{try{this.readTemporaryFile(),setImmediate(e,void 0,this.text)}catch(t){setImmediate(e,t,void 0)}})}catch(t){setImmediate(e,t,void 0)}}cleanup(){this.removeTemporaryFile()}determineEditor(){let e=(function(e){let t=[],a="";for(let i=0;i<e.length;i++){let n=e.charAt(i);i>0&&" "===n&&"\\"!==e[i-1]&&a.length>0?(t.push(a),a=""):a=`${a}${n}`}return a.length>0&&t.push(a),t})(process.env.VISUAL?process.env.VISUAL:process.env.EDITOR?process.env.EDITOR:process.platform.startsWith("win")?"notepad":"vim").map(e=>e.replace("\\ "," ")),t=e.shift();this.editor={args:e,bin:t}}createTemporaryFile(){try{let e=this.fileOptions.dir??eD.tmpdir(),t=(0,eb.randomUUID)(),a=eC(this.fileOptions.prefix),i=eC(this.fileOptions.postfix),n=`${a}${t}${i}`,r=ey.resolve(e,n),o=ey.resolve(e)+ey.sep;if(!r.startsWith(o))throw Error("Resolved temporary file escaped the base directory");this.tempFile=r;let s={encoding:"utf8",flag:"wx"};Object.prototype.hasOwnProperty.call(this.fileOptions,"mode")&&(s.mode=this.fileOptions.mode),(0,eg.writeFileSync)(this.tempFile,this.text,s)}catch(e){throw new e_(e)}}readTemporaryFile(){try{let e=(0,eg.readFileSync)(this.tempFile);if(0===e.length)this.text="";else{let t=(0,eh.detect)(e)??"utf8";ex.encodingExists(t)||(t="utf8"),this.text=ex.decode(e,t)}}catch(e){throw new eE(e)}}removeTemporaryFile(){try{(0,eg.unlinkSync)(this.tempFile)}catch(e){throw new eF(e)}}launchEditor(){try{let e=(0,ev.spawnSync)(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"});this.lastExitStatus=e.status??0}catch(e){throw new ew(e)}}launchEditorAsync(e){try{(0,ev.spawn)(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"}).on("exit",t=>{this.lastExitStatus=t,setImmediate(e)})}catch(e){throw new ew(e)}}}let eT={validationFailureMode:"keep"};function eS(e,t){let a=!1!==t;return/^(y|yes)/i.test(e)?a=!0:/^(n|no)/i.test(e)&&(a=!1),a}function eO(e){return e?"Yes":"No"}ep((e,t)=>{let{waitForUserInput:a=!0,file:{postfix:i=e.postfix??".txt",...n}={},validate:r=()=>!0}=e,o=O(eT,e.theme),[p,l]=D("idle"),[d="",u]=D(e.default),[c,m]=D(),f=N({status:p,theme:o});function h(a){a.pause();let s=async(i,n)=>{if(a.resume(),i)m(i.toString());else{l("loading");let a=n??"",i=await r(a);!0===i?(m(void 0),l("done"),t(a)):("clear"===o.validationFailureMode?u(e.default):u(a),m(i||"You must provide a valid value"),l("idle"))}};!function(e="",t,a){let i=new eA(e,a);i.runAsync((e,a)=>{if(e)setImmediate(t,e,void 0);else try{i.cleanup(),setImmediate(t,void 0,a)}catch(e){setImmediate(t,e,void 0)}})}(d,(e,t)=>void s(e,t),{postfix:i,...n})}b(e=>{a||h(e)},[]),$((e,t)=>{"idle"===p&&s(e)&&h(t)});let v=o.style.message(e.message,p),g="";if("loading"===p)g=o.style.help("Received");else if("idle"===p){let e=o.style.key("enter");g=o.style.help(`Press ${e} to launch your preferred editor.`)}let y="";return c&&(y=o.style.error(c)),[[f,v,g].filter(Boolean).join(" "),y]});let eN=ep((e,t)=>{let{transformer:a=eO}=e,[i,n]=D("idle"),[r,o]=D(""),p=O(e.theme),l=N({status:i,theme:p});$((p,l)=>{if("idle"===i)if(s(p)){let i=eS(r,e.default);o(a(i)),n("done"),t(i)}else if("tab"===p.name){let t=eO(!eS(r,e.default));l.clearLine(0),l.write(t),o(t)}else o(l.line)});let d=r,u="";"done"===i?d=p.style.answer(r):u=` ${p.style.defaultAnswer(!1===e.default?"y/N":"Y/n")}`;let c=p.style.message(e.message,i);return`${l} ${c}${u} ${d}`}),ek={validationFailureMode:"keep"},eI=ep((e,t)=>{let a,{prefill:i="tab"}=e,n=O(ek,e.theme),[r,o]=D("idle"),[p="",l]=D(e.default),[d,u]=D(),[c,m]=D(""),f=N({status:r,theme:n});async function h(t){let{required:a,pattern:i,patternError:n="Invalid input"}=e;return a&&!t?"You must provide a value":i&&!i.test(t)?n:"function"!=typeof e.validate||await e.validate(t)||"You must provide a valid value"}$(async(e,a)=>{if("idle"===r)if(s(e)){let e=c||p;o("loading");let i=await h(e);!0===i?(m(e),o("done"),t(e)):("clear"===n.validationFailureMode?m(""):a.write(c),u(i),o("idle"))}else"backspace"!==e.name||c?"tab"!==e.name||c?(m(a.line),u(void 0)):(l(void 0),a.clearLine(0),a.write(p),m(p)):l(void 0)}),b(e=>{"editable"===i&&p&&(e.write(p),m(p))},[]);let v=n.style.message(e.message,r),g=c;"function"==typeof e.transformer?g=e.transformer(c,{isFinal:"done"===r}):"done"===r&&(g=n.style.answer(c)),p&&"done"!==r&&!c&&(a=n.style.defaultAnswer(p));let y="";return d&&(y=n.style.error(d)),[[f,v,a,g].filter(e=>void 0!==e).join(" "),y]});function e$(e,{min:t,max:a,step:i}){return!(null==e||Number.isNaN(e))&&(e<t||e>a?`Value must be between ${t} and ${a}`:"any"===i||(1e6*e-(Number.isFinite(t)?1e6*t:0))%(1e6*i)==0||`Value must be a multiple of ${i}${Number.isFinite(t)?` starting from ${t}`:""}`)}ep((e,t)=>{let a,{validate:i=()=>!0,min:n=-1/0,max:r=1/0,step:o=1,required:p=!1}=e,l=O(e.theme),[d,u]=D("idle"),[c,m]=D(""),[f="",h]=D(!0===e$(e.default,{min:n,max:r,step:o})?e.default?.toString():void 0),[v,g]=D(),y=N({status:d,theme:l});$(async(e,a)=>{if("idle"===d)if(s(e)){let e=c||f,s=""===e?void 0:Number(e);u("loading");let l=!0;(p||null!=s)&&(l=e$(s,{min:n,max:r,step:o})),!0===l&&(l=await i(s)),!0===l?(m(String(s??"")),u("done"),t(s)):(a.write(c),g(l||"You must provide a valid numeric value"),u("idle"))}else"backspace"!==e.name||c?"tab"!==e.name||c?(m(a.line),g(void 0)):(h(void 0),a.clearLine(0),a.write(f),m(f)):h(void 0)});let b=l.style.message(e.message,d),x=c;"done"===d&&(x=l.style.answer(c)),f&&"done"!==d&&!c&&(a=l.style.defaultAnswer(f));let _="";return v&&(_=l.style.error(v)),[[y,b,a,x].filter(e=>void 0!==e).join(" "),_]});let ej={key:"h",name:"Help, list all options",value:void 0};ep((e,t)=>{let{default:a="h"}=e,i=k(()=>e.choices.map(e=>{if(el.isSeparator(e))return e;let t="name"in e?e.name:String(e.value);return{value:"value"in e?e.value:t,name:t,key:e.key.toLowerCase()}}),[e.choices]),[n,r]=D("idle"),[o,p]=D(""),[l,d]=D(e.expanded??!1),[u,c]=D(),m=O(e.theme),f=N({theme:m,status:n});$((e,n)=>{if(s(e)){let e=(o||a).toLowerCase();if("h"!==e||l){let a=i.find(t=>!el.isSeparator(t)&&t.key===e);a?(r("done"),p(e),t(a.value)):""===o?c("Please input a value"):c(`"${x.red(o)}" isn't an available option`)}else d(!0)}else p(n.line),c(void 0)});let h=m.style.message(e.message,n);if("done"===n){let e=i.find(e=>!el.isSeparator(e)&&e.key===o.toLowerCase());return`${f} ${h} ${m.style.answer(e.name)}`}let v=l?i:[...i,ej],g="",y=v.map(e=>el.isSeparator(e)?"":e.key===a?e.key.toUpperCase():e.key).join("");y=` ${m.style.defaultAnswer(y)}`,l&&(y="",g=v.map(e=>{if(el.isSeparator(e))return` ${e.separator}`;let t=` ${e.key}) ${e.name}`;return e.key===o.toLowerCase()?m.style.highlight(t):t}).join("\n"));let b="",_=i.find(e=>!el.isSeparator(e)&&e.key===o.toLowerCase());_&&(b=`${x.cyan(">>")} ${_.name}`);let w="";return u&&(w=m.style.error(u)),[`${f} ${h}${y} ${o}`,[g,b,w].filter(Boolean).join("\n")]});let eB=/\d+/;function eR(e){return null!=e&&!el.isSeparator(e)}function eV(e,t){let a,i=t.filter(eR);return!(a=i.find(t=>t.key===e))&&eB.test(e)&&(a=i[Number.parseInt(e,10)-1]),a?[a,t.indexOf(a)]:[void 0,void 0]}ep((e,t)=>{let{loop:a=!0}=e,i=k(()=>{var t;let a;return t=e.choices,a=0,t.map(e=>{if(el.isSeparator(e))return e;if(a+=1,"string"==typeof e)return{value:e,name:e,short:e,key:String(a)};let t=e.name??String(e.value);return{value:e.value,name:t,short:e.short??t,key:e.key??String(a)}})},[e.choices]),[n,p]=D("idle"),[l,d]=D(""),[u,m]=D(),f=O(e.theme),h=N({status:n,theme:f}),v=k(()=>{let e=i.findIndex(eR),t=i.findLastIndex(eR);if(-1===e)throw new c("[select prompt] No selectable choices. All choices are disabled.");return{first:e,last:t}},[i]);$((e,n)=>{if(s(e)){let[e]=eV(l,i);eR(e)?(d(e.short),p("done"),t(e.value)):""===l?m("Please input a value"):m(`"${x.red(l)}" isn't an available option`)}else if(r(e)||o(e)){n.clearLine(0);let[t,s]=eV(l,i);if(t){if(a||r(e)&&s!==v.first||o(e)&&s!==v.last){let t=r(e)?-1:1,a=s;do a=(a+t+i.length)%i.length;while(!eR(i[a]));d(i[a].key)}}else d((o(e)?i.find(eR):i.findLast(eR)).key)}else d(n.line),m(void 0)});let g=f.style.message(e.message,n);if("done"===n)return`${h} ${g} ${f.style.answer(l)}`;let y=i.map(e=>{if(el.isSeparator(e))return` ${e.separator}`;let t=` ${e.key}) ${e.name}`;return e.key===l.toLowerCase()?f.style.highlight(t):t}).join("\n"),b="";return u&&(b=f.style.error(u)),[`${h} ${g} ${l}`,[y,b].filter(Boolean).join("\n")]}),ep((e,t)=>{let a,{validate:i=()=>!0}=e,n=O(e.theme),[r,o]=D("idle"),[p,l]=D(),[d,u]=D(""),c=N({status:r,theme:n});$(async(e,a)=>{if("idle"===r)if(s(e)){o("loading");let e=await i(d);!0===e?(u(d),o("done"),t(d)):(a.write(d),l(e||"You must provide a valid value"),o("idle"))}else u(a.line),l(void 0)});let m=n.style.message(e.message,r),f="";e.mask?f=("string"==typeof e.mask?e.mask:"*").repeat(d.length):"done"!==r&&(a=`${n.style.help("[input is masked]")}\u001b[?25l`),"done"===r&&(f=n.style.answer(f));let h="";return p&&(h=n.style.error(p)),[[c,m,e.mask?f:a].join(" "),h]});let eP={icon:{cursor:A.pointer},style:{disabled:e=>x.dim(`- ${e}`),searchTerm:e=>x.cyan(e),description:e=>x.cyan(e),keysHelpTip:e=>e.map(([e,t])=>`${x.bold(e)} ${x.dim(t)}`).join(x.dim(" • "))},helpMode:"always"};function eL(e){return!el.isSeparator(e)&&!e.disabled}ep((e,t)=>{let a,i,n,{pageSize:p=7,validate:l=()=>!0}=e,d=O(eP,e.theme),[u,c]=D("loading"),[m,f]=D(""),[h,v]=D([]),[g,y]=D(),x=N({status:u,theme:d}),_=k(()=>({first:h.findIndex(eL),last:h.findLastIndex(eL)}),[h]),[w=_.first,E]=D();b(()=>{let t=new AbortController;return c("loading"),y(void 0),(async()=>{try{let a=await e.source(m||void 0,{signal:t.signal});t.signal.aborted||(E(void 0),y(void 0),v(a.map(e=>{if(el.isSeparator(e))return e;if("string"==typeof e)return{value:e,name:e,short:e,disabled:!1};let t=e.name??String(e.value),a={value:e.value,name:t,short:e.short??t,disabled:e.disabled??!1};return e.description&&(a.description=e.description),a})),c("idle"))}catch(e){!t.signal.aborted&&e instanceof Error&&y(e.message)}})(),()=>{t.abort()}},[m]);let F=h[w];$(async(e,a)=>{if(s(e))if(F){c("loading");let e=await l(F.value);c("idle"),!0===e?(c("done"),t(F.value)):F.name===m?y(e||"You must provide a valid value"):(a.write(F.name),f(F.name))}else a.write(m);else if("tab"===e.name&&F)a.clearLine(0),a.write(F.name),f(F.name);else if("loading"!==u&&(r(e)||o(e))){if(a.clearLine(0),r(e)&&w!==_.first||o(e)&&w!==_.last){let t=r(e)?-1:1,a=w;do a=(a+t+h.length)%h.length;while(!eL(h[a]));E(a)}}else f(a.line)});let C=d.style.message(e.message,u);if("never"!==d.helpMode)if(e.instructions){let{pager:t,navigation:i}=e.instructions;a=d.style.help(h.length>p?t:i)}else a=d.style.keysHelpTip([["↑↓","navigate"],["⏎","select"]]);let A=P({items:h,active:w,renderItem({item:e,isActive:t}){if(el.isSeparator(e))return` ${e.separator}`;if(e.disabled){let t="string"==typeof e.disabled?e.disabled:"(disabled)";return d.style.disabled(`${e.name} ${t}`)}let a=t?d.style.highlight:e=>e,i=t?d.icon.cursor:" ";return a(`${i} ${e.name}`)},pageSize:p,loop:!1});if(g?i=d.style.error(g):0===h.length&&""!==m&&"idle"===u&&(i=d.style.error("No results found")),"done"===u&&F)return[x,C,d.style.answer(F.short)].filter(Boolean).join(" ").trimEnd();n=d.style.searchTerm(m);let T=F?.description;return[[x,C,n].filter(Boolean).join(" ").trimEnd(),[i??A," ",T?d.style.description(T):"",a].filter(Boolean).join("\n").trimEnd()]});let eM={icon:{cursor:A.pointer},style:{disabled:e=>x.dim(`- ${e}`),description:e=>x.cyan(e),keysHelpTip:e=>e.map(([e,t])=>`${x.bold(e)} ${x.dim(t)}`).join(x.dim(" • "))},helpMode:"always",indexMode:"hidden",keybindings:[]};function eU(e){return!el.isSeparator(e)&&!e.disabled}ep((e,t)=>{let a,{loop:i=!0,pageSize:n=7}=e,p=O(eM,e.theme),{keybindings:l}=p,[d,u]=D("idle"),m=N({status:d,theme:p}),f=I(),h=!l.includes("vim"),v=k(()=>e.choices.map(e=>{if(el.isSeparator(e))return e;if("string"==typeof e)return{value:e,name:e,short:e,disabled:!1};let t=e.name??String(e.value),a={value:e.value,name:t,short:e.short??t,disabled:e.disabled??!1};return e.description&&(a.description=e.description),a}),[e.choices]),g=k(()=>{let e=v.findIndex(eU),t=v.findLastIndex(eU);if(-1===e)throw new c("[select prompt] No selectable choices. All choices are disabled.");return{first:e,last:t}},[v]),y=k(()=>"default"in e?v.findIndex(t=>eU(t)&&t.value===e.default):-1,[e.default,v]),[x,_]=D(-1===y?g.first:y),w=v[x];$((e,a)=>{if(clearTimeout(f.current),s(e))u("done"),t(w.value);else if(r(e,l)||o(e,l)){if(a.clearLine(0),i||r(e,l)&&x!==g.first||o(e,l)&&x!==g.last){let t=r(e,l)?-1:1,a=x;do a=(a+t+v.length)%v.length;while(!eU(v[a]));_(a)}}else if("1234567890".includes(e.name)&&!Number.isNaN(Number(a.line))){let e=Number(a.line)-1,t=-1,i=v.findIndex(a=>!el.isSeparator(a)&&++t===e),n=v[i];null!=n&&eU(n)&&_(i),f.current=setTimeout(()=>{a.clearLine(0)},700)}else if("backspace"===e.name)a.clearLine(0);else if(h){let e=a.line.toLowerCase(),t=v.findIndex(t=>!el.isSeparator(t)&&!!eU(t)&&t.name.toLowerCase().startsWith(e));-1!==t&&_(t),f.current=setTimeout(()=>{a.clearLine(0)},700)}}),b(()=>()=>{clearTimeout(f.current)},[]);let E=p.style.message(e.message,d);if("never"!==p.helpMode)if(e.instructions){let{pager:t,navigation:i}=e.instructions;a=p.style.help(v.length>n?t:i)}else a=p.style.keysHelpTip([["↑↓","navigate"],["⏎","select"]]);let F=0,C=P({items:v,active:x,renderItem({item:e,isActive:t,index:a}){if(el.isSeparator(e))return F++,` ${e.separator}`;let i="number"===p.indexMode?`${a+1-F}. `:"";if(e.disabled){let t="string"==typeof e.disabled?e.disabled:"(disabled)";return p.style.disabled(`${i}${e.name} ${t}`)}let n=t?p.style.highlight:e=>e,r=t?p.icon.cursor:" ";return n(`${r} ${i}${e.name}`)},pageSize:n,loop:i});if("done"===d)return[m,E,p.style.answer(w.short)].filter(Boolean).join(" ");let{description:A}=w,T=[[m,E].filter(Boolean).join(" "),C," ",A?p.style.description(A):"",a].filter(Boolean).join("\n").trimEnd();return`${T}\u001b[?25l`})},31088(e,t,a){function i(){}a.d(t,{C:()=>n});class n{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:a}=t;a&&(a.older=e),e&&(e.newer=a),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=a)}return t}set(e,t){let a=this.getNode(e);return a?a.value=t:(a={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=a),this.newest=a,this.oldest=this.oldest||a,this.map.set(e,a),a.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},54019(e,t,a){function i(){}a.d(t,{l:()=>s});let n="u">typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},r="u">typeof WeakMap?WeakMap:Map,o="u">typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:i,unregister:i}};class s{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new r,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let a=t.key;delete t.key,t.keyRef=new n(a),this.registry.register(a,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new o(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:a}=t;a&&(a.older=e),e&&(e.newer=a),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=a)}return t}set(e,t){let a=this.getNode(e);return a?a.value=t:(a={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=a),this.newest=a,this.oldest=this.oldest||a,this.scheduleFinalization(a),this.map.set(e,a),this.size++,a.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},55888(e,t,a){a.r(t),a.d(t,{default:()=>p,equal:()=>s});let{toString:i,hasOwnProperty:n}=Object.prototype,r=Function.prototype.toString,o=new Map;function s(e,t){try{return function e(t,a){if(t===a)return!0;let o=i.call(t);if(o!==i.call(a))return!1;switch(o){case"[object Array]":if(t.length!==a.length)break;case"[object Object]":{if(c(t,a))return!0;let i=l(t),r=l(a),o=i.length;if(o!==r.length)return!1;for(let e=0;e<o;++e)if(!n.call(a,i[e]))return!1;for(let n=0;n<o;++n){let r=i[n];if(!e(t[r],a[r]))return!1}return!0}case"[object Error]":return t.name===a.name&&t.message===a.message;case"[object Number]":if(t!=t)return a!=a;case"[object Boolean]":case"[object Date]":return+t==+a;case"[object RegExp]":case"[object String]":return t==`${a}`;case"[object Map]":case"[object Set]":{if(t.size!==a.size)return!1;if(c(t,a))return!0;let i=t.entries(),n="[object Map]"===o;for(;;){let t=i.next();if(t.done)break;let[r,o]=t.value;if(!a.has(r)||n&&!e(o,a.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),a=new Uint8Array(a);case"[object DataView]":{let e=t.byteLength;if(e===a.byteLength)for(;e--&&t[e]===a[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var s,p;let e,i=r.call(t);if(i!==r.call(a))return!1;return s=i,p=u,!((e=s.length-p.length)>=0)||s.indexOf(p,e)!==e}}return!1}(e,t)}finally{o.clear()}}let p=s;function l(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}let u="{ [native code] }";function c(e,t){let a=o.get(e);if(a){if(a.has(t))return!0}else o.set(e,a=new Set);return a.add(t),!1}},44592(e,t,a){a.r(t),a.d(t,{Trie:()=>s});let i=()=>Object.create(null),{forEach:n,slice:r}=Array.prototype,{hasOwnProperty:o}=Object.prototype;class s{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return n.call(e,e=>t=t.getChildTrie(e)),o.call(t,"data")?t.data:t.data=this.makeData(r.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let a=0,i=e.length;t&&a<i;++a){let i=t.mapFor(e[a],!1);t=i&&i.get(e[a])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let a=e[0],i=this.mapFor(a,!1),n=i&&i.get(a);n&&(t=n.removeArray(r.call(e,1)),n.data||n.weak||n.strong&&n.strong.size||i.delete(a))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),a=t.get(e);return a||t.set(e,a=new s(this.weakness,this.makeData)),a}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},98247(e,t,a){a.d(t,{v:()=>D});var i,n,r,o=a(99436),s=a(35679),p=a(73284),l=a(30155),d=a(23258),u=a(92642),c=a(94979),m=a(16928),f=a(79896);function h(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(h=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var a=this.s.return;return void 0===a?Promise.resolve({value:e,done:!0}):t(a.apply(this.s,arguments))},throw:function(e){var a=this.s.return;return void 0===a?Promise.reject(e):t(a.apply(this.s,arguments))}},new h(e)}var v=()=>{var e=(0,d.getCurrentProfile)(),t=(0,d.getToken)(e);return t||(console.error(p.Ay.red("Not logged in. Use `bricks auth login` first.")),process.exit(1)),(0,u.W)((0,d.getActivityLogBaseUrl)(),t)},g=e=>new Date(e).toISOString().replace("T"," ").replace(/\.\d+Z$/,"Z"),y=(e,t)=>{if(!e)return"";var a="string"==typeof e?e:JSON.stringify(e);return a.length>t?a.slice(0,t-1)+"…":a},D=new s.uB("activity-log").alias("al").description("Activity log queries (read-only)");D.command("events").description("Query activity log events (all types)").requiredOption("--start-time <datetime>","Start time (ISO 8601 or relative: 1h, 30m, 2d)").option("--end-time <datetime>","End time (default: now)").option("--device <id>","Filter by device ID").option("--type <type>","Filter by event type: general, data, local_sync").option("--event-name <name>","Filter by event name").option("--subspace <id>","Filter by subspace ID").option("--sender <id>","Filter by sender").option("--limit <n>","Max events to display",parseInt).option("-j, --json","Output as JSON array").option("--jsonl","Output as JSONL (one JSON per line)").action((i=o(function*(e){var t=v(),a=(o=(0,c.p)(e.startTime),new Date(s=e.endTime?(0,c.p)(e.endTime):new Date().toISOString())-new Date(o)>2592e6&&(console.error(p.Ay.red("Time range must be 30 days or less")),process.exit(1)),d={start_time:o,end_time:s},e.device&&(d.device_id=e.device),e.type&&(d.event_type=e.type),e.eventName&&(d.event_name=e.eventName),e.subspace&&(d.subspace_id=e.subspace),e.sender&&(d.sender=e.sender),d);if(e.jsonl){var i=0;try{var n=!1,r=!1;try{for(var o,s,d,u,m,f=function(e){var t,a,i,n=2;for("u">typeof Symbol&&(a=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(a&&null!=(t=e[a]))return t.call(e);if(i&&null!=(t=e[i]))return new h(t.call(e));a="@@asyncIterator",i="@@iterator"}throw TypeError("Object is not async iterable")}(t.events(a));n=!(m=yield f.next()).done;n=!1){var D=m.value;if(console.log(JSON.stringify(D)),i++,e.limit&&i>=e.limit)break}}catch(e){r=!0,u=e}finally{try{n&&null!=f.return&&(yield f.return())}finally{if(r)throw u}}}catch(e){console.error(p.Ay.red(`Failed to query events: ${e.message}`)),process.exit(1)}return}var b=(0,l.default)("Querying events...").start();try{var x=yield t.collectEvents(a,{limit:e.limit});if(b.stop(),e.json)return void console.log(JSON.stringify(x,null,2));if(0===x.length)return void console.log(p.Ay.yellow("No events found"));for(var _ of(console.log(p.Ay.bold(`
|
|
18
|
+
(Did you mean ${i[0]}?)`:""}},57504(e,t,a){let i=a(7066),n=i?.WriteStream?.prototype?.hasColors?.()??!1,r=(e,t)=>{if(!n)return e=>e;let a=`\u001B[${e}m`,i=`\u001B[${t}m`;return e=>{let n=e+"",r=n.indexOf(i);if(-1===r)return a+n+i;let o=a,s=0,p=(22===t?i:"")+a;for(;-1!==r;)o+=n.slice(s,r)+p,s=r+i.length,r=n.indexOf(i,s);return o+(n.slice(s)+i)}},o={};o.reset=r(0,0),o.bold=r(1,22),o.dim=r(2,22),o.italic=r(3,23),o.underline=r(4,24),o.overline=r(53,55),o.inverse=r(7,27),o.hidden=r(8,28),o.strikethrough=r(9,29),o.black=r(30,39),o.red=r(31,39),o.green=r(32,39),o.yellow=r(33,39),o.blue=r(34,39),o.magenta=r(35,39),o.cyan=r(36,39),o.white=r(37,39),o.gray=r(90,39),o.bgBlack=r(40,49),o.bgRed=r(41,49),o.bgGreen=r(42,49),o.bgYellow=r(43,49),o.bgBlue=r(44,49),o.bgMagenta=r(45,49),o.bgCyan=r(46,49),o.bgWhite=r(47,49),o.bgGray=r(100,49),o.redBright=r(91,39),o.greenBright=r(92,39),o.yellowBright=r(93,39),o.blueBright=r(94,39),o.magentaBright=r(95,39),o.cyanBright=r(96,39),o.whiteBright=r(97,39),o.bgRedBright=r(101,49),o.bgGreenBright=r(102,49),o.bgYellowBright=r(103,49),o.bgBlueBright=r(104,49),o.bgMagentaBright=r(105,49),o.bgCyanBright=r(106,49),o.bgWhiteBright=r(107,49),e.exports=o},42495(e,t,a){a.d(t,{k:()=>h});var i=a(85608),n=a(60837),r=a(2904),o=a(555),s=a(3777),p=a(36054),l=a(30671),d=a(54019),u=a(44114),c=a(55427),m=a(70916),f=a(62959),h=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,n.wrap)(r.ct,{max:o.v["cache.fragmentQueryDocuments"]||1e3,cache:d.l})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,a=this,i="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(a)},i),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,i.__assign)((0,i.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,a=this,n=e.fragment,r=e.fragmentName,o=e.from,d=e.optimistic,u=(0,i.__rest)(e,["fragment","fragmentName","from","optimistic"]),h=this.getFragmentDoc(n,r),v=void 0===o||"string"==typeof o?o:this.identify(o),g=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var y=r||(0,s.E4)(n).name.value;v||!1===globalThis.__DEV__||m.invariant.warn(1,y)}var D=(0,i.__assign)((0,i.__assign)({},u),{returnPartialData:!0,id:v,query:h,optimistic:void 0===d||d});return new p.c(function(o){return a.watch((0,i.__assign)((0,i.__assign)({},D),{immediate:!0,callback:function(s){var p=g?(0,f.z)(s.result,n,a,r):s.result;if(!(t&&(0,c.a)(h,{data:t.result},{data:p},e.variables))){var d={data:p,complete:!!s.complete};s.missing&&(d.missing=(0,l.IM)(s.missing.map(function(e){return e.missing}))),t=(0,i.__assign)((0,i.__assign)({},s),{result:p}),o.next(d)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,i.__assign)((0,i.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,a=e.data,n=(0,i.__rest)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:a}))},e.prototype.writeFragment=function(e){var t=e.id,a=e.data,n=e.fragment,r=e.fragmentName,o=(0,i.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,r),dataId:t,result:a}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(a){var n=a.readQuery(e),r=t(n);return null==r?n:(a.writeQuery((0,i.__assign)((0,i.__assign)({},e),{data:r})),r)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(a){var n=a.readFragment(e),r=t(n);return null==r?n:(a.writeFragment((0,i.__assign)((0,i.__assign)({},e),{data:r})),r)}})},e}();!1!==globalThis.__DEV__&&(h.prototype.getMemoryInternals=u.tQ)},84673(e,t,a){var i;a.d(t,{l:()=>i}),i||(i={})},65702(e,t,a){a.d(t,{Z:()=>n});var i=a(85608),n=function(e){function t(a,i,n,r){var o,s=e.call(this,a)||this;if(s.message=a,s.path=i,s.query=n,s.variables=r,Array.isArray(s.path)){s.missing=s.message;for(var p=s.path.length-1;p>=0;--p)(o={})[s.path[p]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,i.__extends)(t,e),t}(Error)},94037(e,t,a){a.r(t),a.d(t,{fieldNameFromStoreName:()=>l.iJ,makeVar:()=>u.UT,canonicalStringify:()=>s.M,cacheSlot:()=>u.bl,isReference:()=>o.A_,MissingFieldError:()=>r.Z,EntityStore:()=>p.D_,Cache:()=>n.l,Policies:()=>c.l,InMemoryCache:()=>d.D,ApolloCache:()=>i.k,defaultDataIdFromObject:()=>l.or,makeReference:()=>o.WU,createFragmentRegistry:()=>D}),a(70916);var i=a(42495),n=a(84673),r=a(65702),o=a(28907),s=a(44214),p=a(83906),l=a(35207),d=a(7068),u=a(777),c=a(92610),m=a(85608),f=a(90424),h=a(60837),v=a(3777),g=a(555),y=a(54019);function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(b.bind.apply(b,(0,m.__spreadArray)([void 0],e,!1)))}var b=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.registry=Object.create(null),this.resetCaches(),e.length&&this.register.apply(this,e)}return e.prototype.register=function(){for(var e=this,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var i=new Map;return t.forEach(function(e){(0,v.zK)(e).forEach(function(e){i.set(e.name.value,e)})}),i.forEach(function(t,a){t!==e.registry[a]&&(e.registry[a]=t,e.invalidate(a))}),this},e.prototype.invalidate=function(e){},e.prototype.resetCaches=function(){var t=e.prototype;this.invalidate=(this.lookup=(0,h.wrap)(t.lookup.bind(this),{makeCacheKey:function(e){return e},max:g.v["fragmentRegistry.lookup"]||1e3})).dirty,this.transform=(0,h.wrap)(t.transform.bind(this),{cache:y.l,max:g.v["fragmentRegistry.transform"]||2e3}),this.findFragmentSpreads=(0,h.wrap)(t.findFragmentSpreads.bind(this),{cache:y.l,max:g.v["fragmentRegistry.findFragmentSpreads"]||4e3})},e.prototype.lookup=function(e){return this.registry[e]||null},e.prototype.transform=function(e){var t=this,a=new Map;(0,v.zK)(e).forEach(function(e){a.set(e.name.value,e)});var i=new Set,n=function(e){a.has(e)||i.add(e)},r=function(e){return Object.keys(t.findFragmentSpreads(e)).forEach(n)};r(e);var o=[],s=Object.create(null);if(i.forEach(function(e){var i=a.get(e);if(i)r(s[e]=i);else{o.push(e);var n=t.lookup(e);n&&r(s[e]=n)}}),o.length){var p=[];o.forEach(function(e){var t=s[e];t&&p.push(t)}),p.length&&(e=(0,m.__assign)((0,m.__assign)({},e),{definitions:e.definitions.concat(p)}))}return e},e.prototype.findFragmentSpreads=function(e){var t=Object.create(null);return(0,f.YR)(e,{FragmentSpread:function(e){t[e.name.value]=e}}),t},e}()},83906(e,t,a){a.d(t,{$7:()=>F,D_:()=>D,M2:()=>x});var i,n,r=a(85608),o=a(70916),s=a(60837),p=a(55888),l=a(44592),d=a(57236),u=a(28907),c=a(30671),m=a(21777),f=a(51360),h=a(35207),v=Object.create(null),g=function(){return v},y=Object.create(null),D=function(){function e(e,t){var a=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,d.G)((0,u.A_)(e)?a.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,u.A_)(e)?a.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,u.WU)(e);if((0,u.A_)(e))return e;var i=a.policies.identify(e)[0];if(i){var n=(0,u.WU)(i);return t&&a.merge(i,e),n}}}return e.prototype.toObject=function(){return(0,r.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),h.$3.call(this.data,e)){var a=this.data[e];if(a&&h.$3.call(a,t))return a[t]}return"__typename"===t&&h.$3.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof _?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),h.$3.call(this.data,e))?this.data[e]:this instanceof _?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var a,i=this;(0,u.A_)(e)&&(e=e.__ref),(0,u.A_)(t)&&(t=t.__ref);var n="string"==typeof e?this.lookup(a=e):e,r="string"==typeof t?this.lookup(a=t):t;if(r){(0,o.invariant)("string"==typeof a,2);var s=new c.ZI(E).merge(n,r);if(this.data[a]=s,s!==n&&(delete this.refs[a],this.group.caching)){var p=Object.create(null);n||(p.__exists=1),Object.keys(r).forEach(function(e){if(!n||n[e]!==s[e]){p[e]=1;var t=(0,h.iJ)(e);t===e||i.policies.hasKeyArgs(s.__typename,t)||(p[t]=1),void 0!==s[e]||i instanceof _||delete s[e]}}),p.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[a]===s.__typename&&delete p.__typename,Object.keys(p).forEach(function(e){return i.group.dirty(a,e)})}}},e.prototype.modify=function(e,t){var a=this,i=this.lookup(e);if(i){var n=Object.create(null),s=!1,p=!0,l={DELETE:v,INVALIDATE:y,isReference:u.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,i){return a.policies.readField("string"==typeof t?{fieldName:t,from:i||(0,u.WU)(e)}:t,{store:a})}};if(Object.keys(i).forEach(function(c){var m=(0,h.iJ)(c),f=i[c];if(void 0!==f){var D="function"==typeof t?t:t[c]||t[m];if(D){var b=D===g?v:D((0,d.G)(f),(0,r.__assign)((0,r.__assign)({},l),{fieldName:m,storeFieldName:c,storage:a.getStorage(e,c)}));if(b===y)a.group.dirty(e,c);else if(b===v&&(b=void 0),b!==f&&(n[c]=b,s=!0,f=b,!1!==globalThis.__DEV__)){var x=function(e){if(void 0===a.lookup(e.__ref))return!1!==globalThis.__DEV__&&o.invariant.warn(3,e),!0};if((0,u.A_)(b))x(b);else if(Array.isArray(b))for(var _=!1,w=void 0,E=0,F=b;E<F.length;E++){var C=F[E];if((0,u.A_)(C)){if(_=!0,x(C))break}else"object"==typeof C&&C&&a.policies.identify(C)[0]&&(w=C);if(_&&void 0!==w){!1!==globalThis.__DEV__&&o.invariant.warn(4,w);break}}}}void 0!==f&&(p=!1)}}),s)return this.merge(e,n),p&&(this instanceof _?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,a){var i,n=this.lookup(e);if(n){var r=this.getFieldValue(n,"__typename"),o=t&&a?this.policies.getStoreFieldName({typename:r,fieldName:t,args:a}):t;return this.modify(e,o?((i={})[o]=g,i):g)}return!1},e.prototype.evict=function(e,t){var a=!1;return e.id&&(h.$3.call(this.data,e.id)&&(a=this.delete(e.id,e.fieldName,e.args)),this instanceof _&&this!==t&&(a=this.parent.evict(e,t)||a),(e.fieldName||a)&&this.group.dirty(e.id,e.fieldName||"__exists")),a},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),a=[];return this.getRootIdSet().forEach(function(t){h.$3.call(e.policies.rootTypenamesById,t)||a.push(t)}),a.length&&(t.__META={extraRootIds:a.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(a){e&&h.$3.call(e,a)||t.delete(a)}),e){var a=e.__META,i=(0,r.__rest)(e,["__META"]);Object.keys(i).forEach(function(e){t.merge(e,i[e])}),a&&a.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof _?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),a=this.toObject();t.forEach(function(i){h.$3.call(a,i)&&(Object.keys(e.findChildRefIds(i)).forEach(t.add,t),delete a[i])});var i=Object.keys(a);if(i.length){for(var n=this;n instanceof _;)n=n.parent;i.forEach(function(e){return n.delete(e)})}return i},e.prototype.findChildRefIds=function(e){if(!h.$3.call(this.refs,e)){var t=this.refs[e]=Object.create(null),a=this.data[e];if(!a)return t;var i=new Set([a]);i.forEach(function(e){(0,u.A_)(e)&&(t[e.__ref]=!0),(0,m.U)(e)&&Object.keys(e).forEach(function(t){var a=e[t];(0,m.U)(a)&&i.add(a)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),b=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dep)():null,this.keyMaker=new l.Trie(f.et)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var a=(0,h.iJ)(t);a!==t&&this.d(a+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function x(e,t){F(e)&&e.group.depend(t,"__exists")}n=function(e){function t(t){var a=t.policies,i=t.resultCaching,n=t.seed,r=e.call(this,a,new b(void 0===i||i))||this;return r.stump=new w(r),r.storageTrie=new l.Trie(f.et),n&&r.replace(n),r}return(0,r.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(i=D||(D={})),i.Root=n;var _=function(e){function t(t,a,i,n){var r=e.call(this,a.policies,n)||this;return r.id=t,r.parent=a,r.replay=i,r.group=n,i(r),r}return(0,r.__extends)(t,e),t.prototype.addLayer=function(e,a){return new t(e,this,a,this.group)},t.prototype.removeLayer=function(e){var t=this,a=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var i=t.data[e],n=a.lookup(e);n?i?i!==n&&Object.keys(i).forEach(function(a){(0,p.equal)(i[a],n[a])||t.group.dirty(e,a)}):(t.group.dirty(e,"__exists"),Object.keys(n).forEach(function(a){t.group.dirty(e,a)})):t.delete(e)}),a):a===this.parent?this:a.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,r.__assign)((0,r.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var a=this.parent.findChildRefIds(t);return h.$3.call(this.data,t)?(0,r.__assign)((0,r.__assign)({},a),e.prototype.findChildRefIds.call(this,t)):a},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(D),w=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new b(t.group.caching,t.group))||this}return(0,r.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(_);function E(e,t,a){var i=e[a],n=t[a];return(0,p.equal)(i,n)?i:n}function F(e){return!!(e instanceof D&&e.group.caching)}},35207(e,t,a){a.d(t,{$3:()=>u,I6:()=>h,T9:()=>function e(t,a,i){return!!(0,r.U)(a)&&((0,o.c)(a)?a.every(function(a){return e(t,a,i)}):t.selections.every(function(t){if((0,n.dt)(t)&&(0,s.MS)(t,i)){var r=(0,n.ue)(t);return u.call(a,r)&&(!t.selectionSet||e(t.selectionSet,a[r],i))}return!0}))},Ui:()=>g,Xx:()=>v,d1:()=>b,gk:()=>y,iJ:()=>D,lq:()=>_,mv:()=>x,or:()=>m});var i=a(50492),n=a(28907),r=a(21777),o=a(73767),s=a(82307),p=a(30671),l=a(2904),d=a(3777),u=Object.prototype.hasOwnProperty;function c(e){return null==e}function m(e,t){var a=e.__typename,i=e.id,n=e._id;if("string"==typeof a&&(t&&(t.keyObject=c(i)?c(n)?void 0:{_id:n}:{id:i}),c(i)&&!c(n)&&(i=n),!c(i)))return"".concat(a,":").concat("number"==typeof i||"string"==typeof i?i:JSON.stringify(i))}var f={dataIdFromObject:m,addTypename:!0,resultCaching:!0,canonizeResults:!1};function h(e){return(0,i.o)(f,e)}function v(e){var t=e.canonizeResults;return void 0===t?f.canonizeResults:t}function g(e,t){return(0,n.A_)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var y=/^[_a-z][_0-9a-z]*/i;function D(e){var t=e.match(y);return t?t[0]:e}function b(e){return(0,r.U)(e)&&!(0,n.A_)(e)&&!(0,o.c)(e)}function x(){return new p.ZI}function _(e,t){var a=(0,l.JG)((0,d.zK)(e));return{fragmentMap:a,lookupFragment:function(e){var i=a[e];return!i&&t&&(i=t.lookup(e)),i||null}}}},7068(e,t,a){a.d(t,{D:()=>U});var i=a(85608),n=a(70916),r=a(60837),o=a(55888),s=a(42495),p=a(65702),l=a(9354),d=a(53925),u=a(555),c=a(44214),m=a(38678),f=a(28907),h=a(42455),v=a(51360),g=a(50492),y=a(3777),D=a(30671),b=a(82307),x=a(2904),_=a(57236),w=a(21777),E=a(83906),F=a(35207),C=a(73767),A=a(44592),T=function(){function e(){this.known=new(v.En?WeakSet:Set),this.pool=new A.Trie(v.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,w.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,w.U)(e)){var t=(0,w.U)(e)?(0,C.c)(e)?e.slice(0):(0,i.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,w.U)(e)){var a=this.passes.get(e);if(a)return a;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var i=e.map(this.admit,this),n=this.pool.lookupArray(i);return n.array||(this.known.add(n.array=i),!1!==globalThis.__DEV__&&Object.freeze(i)),n.array;case null:case Object.prototype:if(this.known.has(e))break;var r=Object.getPrototypeOf(e),o=[r],s=this.sortedKeys(e);o.push(s.json);var p=o.length;s.sorted.forEach(function(a){o.push(t.admit(e[a]))});var n=this.pool.lookupArray(o);if(!n.object){var l=n.object=Object.create(r);this.known.add(l),s.sorted.forEach(function(e,t){l[e]=o[p+t]}),!1!==globalThis.__DEV__&&Object.freeze(l)}return n.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),a=this.pool.lookupArray(t);if(!a.keys){t.sort();var i=JSON.stringify(t);(a.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,a.keys={sorted:t,json:i})}return a.keys},e}();function S(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var O=function(){function e(e){var t=this;this.knownResults=new(v.et?WeakMap:Map),this.config=(0,g.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,F.Xx)(e)}),this.canon=e.canon||new T,this.executeSelectionSet=(0,r.wrap)(function(e){var a,n=e.context.canonizeResults,r=S(e);r[3]=!n;var o=(a=t.executeSelectionSet).peek.apply(a,r);return o?n?(0,i.__assign)((0,i.__assign)({},o),{result:t.canon.admit(o.result)}):o:((0,E.M2)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:S,makeCacheKey:function(e,t,a,i){if((0,E.$7)(a.store))return a.store.makeCacheKey(e,(0,f.A_)(t)?t.__ref:t,a.varString,i)}}),this.executeSubSelectedArray=(0,r.wrap)(function(e){return(0,E.M2)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,a=e.array,i=e.context;if((0,E.$7)(i.store))return i.store.makeCacheKey(t,a,i.varString)}})}return e.prototype.resetCanon=function(){this.canon=new T},e.prototype.diffQueryAgainstStore=function(e){var t,a=e.store,n=e.query,r=e.rootId,o=e.variables,s=e.returnPartialData,l=e.canonizeResults,d=void 0===l?this.config.canonizeResults:l,u=this.config.cache.policies;o=(0,i.__assign)((0,i.__assign)({},(0,y.wY)((0,y.AT)(n))),o);var m=(0,f.WU)(void 0===r?"ROOT_QUERY":r),h=this.executeSelectionSet({selectionSet:(0,y.Vn)(n).selectionSet,objectOrReference:m,enclosingRef:m,context:(0,i.__assign)({store:a,query:n,policies:u,variables:o,varString:(0,c.M)(o),canonizeResults:d},(0,F.lq)(n,this.config.fragments))});if(h.missing&&(t=[new p.Z(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,n,o)],!(void 0===s||s)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,a,i){if((0,E.$7)(i.store)&&this.knownResults.get(e)===a){var n=this.executeSelectionSet.peek(a,t,i,this.canon.isKnown(e));if(n&&e===n.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,a=this,i=e.selectionSet,r=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,f.A_)(r)&&!s.policies.rootTypenamesById[r.__ref]&&!s.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var p=s.variables,l=s.policies,u=s.store.getFieldValue(r,"__typename"),c=[],m=new D.ZI;function v(e,a){var i;return e.missing&&(t=m.merge(t,((i={})[a]=e.missing,i))),e.result}this.config.addTypename&&"string"==typeof u&&!l.rootIdsByTypename[u]&&c.push({__typename:u});var g=new Set(i.selections);g.forEach(function(e){var i,y;if((0,b.MS)(e,p))if((0,f.dt)(e)){var D=l.readField({fieldName:e.name.value,field:e,variables:s.variables,from:r},s),_=(0,f.ue)(e);void 0===D?d.XY.added(e)||(t=m.merge(t,((i={})[_]="Can't find field '".concat(e.name.value,"' on ").concat((0,f.A_)(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),i))):(0,C.c)(D)?D.length>0&&(D=v(a.executeSubSelectedArray({field:e,array:D,enclosingRef:o,context:s}),_)):e.selectionSet?null!=D&&(D=v(a.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:D,enclosingRef:(0,f.A_)(D)?D:o,context:s}),_)):s.canonizeResults&&(D=a.canon.pass(D)),void 0!==D&&c.push(((y={})[_]=D,y))}else{var w=(0,x.HQ)(e,s.lookupFragment);if(!w&&e.kind===h.b.FRAGMENT_SPREAD)throw(0,n.newInvariantError)(10,e.name.value);w&&l.fragmentMatches(w,u)&&w.selectionSet.selections.forEach(g.add,g)}});var y={result:(0,D.IM)(c),missing:t},w=s.canonizeResults?this.canon.admit(y):(0,_.G)(y);return w.result&&this.knownResults.set(w.result,i),w},e.prototype.execSubSelectedArrayImpl=function(e){var t,a=this,i=e.field,r=e.array,o=e.enclosingRef,s=e.context,p=new D.ZI;function l(e,a){var i;return e.missing&&(t=p.merge(t,((i={})[a]=e.missing,i))),e.result}return i.selectionSet&&(r=r.filter(s.store.canRead)),r=r.map(function(e,t){return null===e?null:(0,C.c)(e)?l(a.executeSubSelectedArray({field:i,array:e,enclosingRef:o,context:s}),t):i.selectionSet?l(a.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,enclosingRef:(0,f.A_)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,a){if(!t.selectionSet){var i=new Set([a]);i.forEach(function(a){(0,w.U)(a)&&((0,n.invariant)(!(0,f.A_)(a),11,(0,F.Ui)(e,a),t.name.value),Object.values(a).forEach(i.add,i))})}}(s.store,i,e),e)}),{result:s.canonizeResults?this.canon.admit(r):r,missing:t}},e}(),N=a(20906),k=a(92610);function I(e,t,a){var n="".concat(t).concat(a),r=e.flavors.get(n);return r||e.flavors.set(n,r=e.clientOnly===t&&e.deferred===a?e:(0,i.__assign)((0,i.__assign)({},e),{clientOnly:t,deferred:a})),r}var $=function(){function e(e,t,a){this.cache=e,this.reader=t,this.fragments=a}return e.prototype.writeToStore=function(e,t){var a=this,r=t.query,s=t.result,p=t.dataId,l=t.variables,d=t.overwrite,u=(0,y.Vu)(r),m=(0,F.mv)();l=(0,i.__assign)((0,i.__assign)({},(0,y.wY)(u)),l);var h=(0,i.__assign)((0,i.__assign)({store:e,written:Object.create(null),merge:function(e,t){return m.merge(e,t)},variables:l,varString:(0,c.M)(l)},(0,F.lq)(r,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:s||Object.create(null),dataId:p,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,f.A_)(v))throw(0,n.newInvariantError)(12,s);return h.incomingById.forEach(function(t,r){var s=t.storeObject,p=t.mergeTree,l=t.fieldNodeSet,d=(0,f.WU)(r);if(p&&p.map.size){var u=a.applyMerges(p,d,s,h);if((0,f.A_)(u))return;s=u}if(!1!==globalThis.__DEV__&&!h.overwrite){var c=Object.create(null);l.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var m=function(e){var t=p&&p.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(s).forEach(function(e){!0!==c[(0,F.iJ)(e)]||m(e)||function(e,t,a,r){var s=function(e){var t=r.getFieldValue(e,a);return"object"==typeof t&&t},p=s(e);if(p){var l=s(t);if(!(!l||(0,f.A_)(p)||(0,o.equal)(p,l)||Object.keys(p).every(function(e){return void 0!==r.getFieldValue(l,e)}))){var d=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=(0,F.iJ)(a),c="".concat(d,".").concat(u);if(!P.has(c)){P.add(c);var m=[];(0,C.c)(p)||(0,C.c)(l)||[p,l].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||m.includes(t)||m.push(t)}),!1!==globalThis.__DEV__&&n.invariant.warn(15,u,d,m.length?"either ensure all objects of type "+m.join(" and ")+" have an ID or a custom merge function, or ":"",c,(0,i.__assign)({},p),(0,i.__assign)({},l))}}}}(d,s,e,h.store)})}e.merge(r,s)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,a=e.dataId,r=e.result,o=e.selectionSet,s=e.context,p=e.mergeTree,l=this.cache.policies,u=Object.create(null),c=a&&l.rootTypenamesById[a]||(0,f.D$)(r,o,s.fragmentMap)||a&&s.store.get(a,"__typename");"string"==typeof c&&(u.__typename=c);var m=function(){var e=(0,k.m)(arguments,u,s.variables);if((0,f.A_)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var a=l.readField((0,i.__assign)((0,i.__assign)({},e),{from:t.storeObject}),s);if(void 0!==a)return a}}return l.readField(e,s)},h=new Set;this.flattenFields(o,r,s,c).forEach(function(e,a){var i,o=r[(0,f.ue)(a)];if(h.add(a),void 0!==o){var s=l.getStoreFieldName({typename:c,fieldName:a.name.value,field:a,variables:e.variables}),v=B(p,s),g=t.processFieldValue(o,a,a.selectionSet?I(e,!1,!1):e,v),y=void 0;a.selectionSet&&((0,f.A_)(g)||(0,F.d1)(g))&&(y=m("__typename",g));var D=l.getMergeFunction(c,a.name.value,y);D?v.info={field:a,typename:c,merge:D}:V(p,s),u=e.merge(u,((i={})[s]=g,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||d.XY.added(a)||l.getReadFunction(c,a.name.value)||!1===globalThis.__DEV__||n.invariant.error(13,(0,f.ue)(a),r)});try{var v=l.identify(r,{typename:c,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:u,readField:m}),g=v[0],y=v[1];a=a||g,y&&(u=s.merge(u,y))}catch(e){if(!a)throw e}if("string"==typeof a){var D=(0,f.WU)(a),b=s.written[a]||(s.written[a]=[]);if(b.indexOf(o)>=0||(b.push(o),this.reader&&this.reader.isFresh(r,D,o,s)))return D;var x=s.incomingById.get(a);return x?(x.storeObject=s.merge(x.storeObject,u),x.mergeTree=function e(t,a){if(t===a||!a||R(a))return t;if(!t||R(t))return a;var n=t.info&&a.info?(0,i.__assign)((0,i.__assign)({},t.info),a.info):t.info||a.info,r=t.map.size&&a.map.size,o={info:n,map:r?new Map:t.map.size?t.map:a.map};if(r){var s=new Set(a.map.keys());t.map.forEach(function(t,i){o.map.set(i,e(t,a.map.get(i))),s.delete(i)}),s.forEach(function(i){o.map.set(i,e(a.map.get(i),t.map.get(i)))})}return o}(x.mergeTree,p),h.forEach(function(e){return x.fieldNodeSet.add(e)})):s.incomingById.set(a,{storeObject:u,mergeTree:R(p)?void 0:p,fieldNodeSet:h}),D}return u},e.prototype.processFieldValue=function(e,t,a,i){var n=this;return t.selectionSet&&null!==e?(0,C.c)(e)?e.map(function(e,r){var o=n.processFieldValue(e,t,a,B(i,r));return V(i,r),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:a,mergeTree:i}):!1!==globalThis.__DEV__?(0,N.m)(e):e},e.prototype.flattenFields=function(e,t,a,i){void 0===i&&(i=(0,f.D$)(t,e,a.fragmentMap));var r=new Map,o=this.cache.policies,s=new A.Trie(!1);return!function e(p,l){var d=s.lookup(p,l.clientOnly,l.deferred);d.visited||(d.visited=!0,p.selections.forEach(function(s){if((0,b.MS)(s,a.variables)){var p=l.clientOnly,d=l.deferred;if(!(p&&d)&&(0,C.E)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(p=!0),"defer"===t){var i=(0,f.MB)(e,a.variables);i&&!1===i.if||(d=!0)}}),(0,f.dt)(s)){var u=r.get(s);u&&(p=p&&u.clientOnly,d=d&&u.deferred),r.set(s,I(a,p,d))}else{var c=(0,x.HQ)(s,a.lookupFragment);if(!c&&s.kind===h.b.FRAGMENT_SPREAD)throw(0,n.newInvariantError)(14,s.name.value);c&&o.fragmentMatches(c,i,t,a.variables)&&e(c.selectionSet,I(a,p,d))}}}))}(e,a),r},e.prototype.applyMerges=function(e,t,a,r,o){var s=this;if(e.map.size&&!(0,f.A_)(a)){var p,l,d=!(0,C.c)(a)&&((0,f.A_)(t)||(0,F.d1)(t))?t:void 0,u=a;d&&!o&&(o=[(0,f.A_)(d)?d.__ref:d]);var c=function(e,t){return(0,C.c)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var a=c(d,t),i=c(u,t);if(void 0!==i){o&&o.push(t);var p=s.applyMerges(e,a,i,r,o);p!==i&&(l=l||new Map).set(t,p),o&&(0,n.invariant)(o.pop()===t)}}),l&&(a=(0,C.c)(u)?u.slice(0):(0,i.__assign)({},u),l.forEach(function(e,t){a[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,a,e.info,r,o&&(p=r.store).getStorage.apply(p,o)):a},e}(),j=[];function B(e,t){var a=e.map;return a.has(t)||a.set(t,j.pop()||{map:new Map}),a.get(t)}function R(e){return!e||!(e.info||e.map.size)}function V(e,t){var a=e.map,i=a.get(t);i&&R(i)&&(j.push(i),a.delete(t))}var P=new Set,L=a(777),M=a(44114),U=function(e){function t(t){void 0===t&&(t={});var a=e.call(this)||this;return a.watches=new Set,a.addTypenameTransform=new l.c(d.XY),a.assumeImmutableResults=!0,a.makeVar=L.UT,a.txCount=0,a.config=(0,F.I6)(t),a.addTypename=!!a.config.addTypename,a.policies=new k.l({cache:a,dataIdFromObject:a.config.dataIdFromObject,possibleTypes:a.config.possibleTypes,typePolicies:a.config.typePolicies}),a.init(),a}return(0,i.__extends)(t,e),t.prototype.init=function(){var e=this.data=new E.D_.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,a=this.storeReader,i=this.config.fragments;this.storeWriter=new $(this,this.storeReader=new O({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,F.Xx)(this.config),canon:e?void 0:a&&a.canon,fragments:i}),i),this.maybeBroadcastWatch=(0,r.wrap)(function(e,a){return t.broadcastWatch(e,a)},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var a=e.optimistic?t.optimisticData:t.data;if((0,E.$7)(a)){var i=e.optimistic,n=e.id,r=e.variables;return a.makeCacheKey(e.query,e.callback,(0,c.M)({optimistic:i,id:n,variables:r}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,i.__assign)((0,i.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof p.Z)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(F.$3.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,i.__assign)((0,i.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,L.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,L.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){c.M.reset(),m.y.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,a=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),a},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,f.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&n.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(F.$3.call(e,"id"))return!1;e=(0,i.__assign)((0,i.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),c.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,L.WR)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,a=this,n=e.update,r=e.optimistic,o=void 0===r||r,s=e.removeOptimistic,p=e.onWatchUpdated,l=function(e){var i=a.data,r=a.optimisticData;++a.txCount,e&&(a.data=a.optimisticData=e);try{return t=n(a)}finally{--a.txCount,a.data=i,a.optimisticData=r}},d=new Set;return p&&!this.txCount&&this.broadcastWatches((0,i.__assign)((0,i.__assign)({},e),{onWatchUpdated:function(e){return d.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,l):!1===o?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),p&&d.size?(this.broadcastWatches((0,i.__assign)((0,i.__assign)({},e),{onWatchUpdated:function(e,t){var a=p.call(this,e,t);return!1!==a&&d.delete(e),a}})),d.size&&d.forEach(function(e){return a.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(a){return t.maybeBroadcastWatch(a,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var a=e.lastDiff,i=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,a)))&&(a&&(0,o.equal)(a.result,i.result)||e.callback(e.lastDiff=i,a))},t}(s.k);!1!==globalThis.__DEV__&&(U.prototype.getMemoryInternals=M.cM)},92610(e,t,a){a.d(t,{l:()=>F,m:()=>A});var i=a(85608),n=a(70916),r=a(28907),o=a(86563),s=a(21777),p=a(35207),l=a(73767),d=a(777),u=a(30671),c=Object.create(null);function m(e){var t=JSON.stringify(e);return c[t]||(c[t]=Object.create(null))}function f(e){var t=m(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,a){var i=function(e,t){return a.readField(t,e)},r=a.keyObject=v(e,function(e){var r=y(a.storeObject,e,i);return void 0===r&&t!==a.storeObject&&p.$3.call(t,e[0])&&(r=y(t,e,g)),(0,n.invariant)(void 0!==r,5,e.join("."),t),r});return"".concat(a.typename,":").concat(JSON.stringify(r))})}function h(e){var t=m(e);return t.keyArgsFn||(t.keyArgsFn=function(t,a){var i=a.field,n=a.variables,o=a.fieldName,s=JSON.stringify(v(e,function(e){var a=e[0],o=a.charAt(0);if("@"===o){if(i&&(0,l.E)(i.directives)){var s=a.slice(1),d=i.directives.find(function(e){return e.name.value===s}),u=d&&(0,r.MB)(d,n);return u&&y(u,e.slice(1))}return}if("$"===o){var c=a.slice(1);if(n&&p.$3.call(n,c)){var m=e.slice(0);return m[0]=c,y(n,m)}return}if(t)return y(t,e)}));return(t||"{}"!==s)&&(o+=":"+s),o})}function v(e,t){var a=new u.ZI;return(function e(t){var a=m(t);if(!a.paths){var i=a.paths=[],n=[];t.forEach(function(a,r){(0,l.c)(a)?(e(a).forEach(function(e){return i.push(n.concat(e))}),n.length=0):(n.push(a),(0,l.c)(t[r+1])||(i.push(n.slice(0)),n.length=0))})}return a.paths})(e).reduce(function(e,i){var n,r=t(i);if(void 0!==r){for(var o=i.length-1;o>=0;--o)(n={})[i[o]]=r,r=n;e=a.merge(e,r)}return e},Object.create(null))}function g(e,t){return e[t]}function y(e,t,a){return a=a||g,function e(t){return(0,s.U)(t)?(0,l.c)(t)?t.map(e):v(Object.keys(t).sort(),function(e){return y(t,e)}):t}(t.reduce(function e(t,i){return(0,l.c)(t)?t.map(function(t){return e(t,i)}):t&&a(t,i)},e))}var D=a(47150);function b(e){return void 0!==e.args?e.args:e.field?(0,r.MB)(e.field,e.variables):null}var x=function(){},_=function(e,t){return t.fieldName},w=function(e,t,a){return(0,a.mergeObjects)(e,t)},E=function(e,t){return t},F=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,i.__assign)({dataIdFromObject:p.or},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var a,n,r=this,o=t&&(t.typename||(null==(a=t.storeObject)?void 0:a.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,p=(0,i.__assign)((0,i.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=A(arguments,s);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),d=o&&this.getTypePolicy(o),u=d&&d.keyFn||this.config.dataIdFromObject;return D.yV.withValue(!0,function(){for(;u;){var t=u((0,i.__assign)((0,i.__assign)({},e),s),p);if((0,l.c)(t))u=f(t);else{n=t;break}}}),n=n?String(n):void 0,p.keyObject?[n,p.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(a){var n=e[a],r=n.queryType,o=n.mutationType,s=n.subscriptionType,l=(0,i.__rest)(n,["queryType","mutationType","subscriptionType"]);r&&t.setRootTypename("Query",a),o&&t.setRootTypename("Mutation",a),s&&t.setRootTypename("Subscription",a),p.$3.call(t.toBeAdded,a)?t.toBeAdded[a].push(l):t.toBeAdded[a]=[l]})},e.prototype.updateTypePolicy=function(e,t){var a=this,i=this.getTypePolicy(e),n=t.keyFields,r=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?w:!1===t?E:e.merge}o(i,t.merge),i.keyFn=!1===n?x:(0,l.c)(n)?f(n):"function"==typeof n?n:i.keyFn,r&&Object.keys(r).forEach(function(t){var i=a.getFieldPolicy(e,t,!0),n=r[t];if("function"==typeof n)i.read=n;else{var s=n.keyArgs,p=n.read,d=n.merge;i.keyFn=!1===s?_:(0,l.c)(s)?h(s):"function"==typeof s?s:i.keyFn,"function"==typeof p&&(i.read=p),o(i,d)}i.read&&i.merge&&(i.keyFn=i.keyFn||_)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var a="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[a];t!==i&&((0,n.invariant)(!i||i===e,6,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=a,this.rootTypenamesById[a]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(a){t.getSupertypeSet(a,!0),e[a].forEach(function(e){t.getSupertypeSet(e,!0).add(a);var i=e.match(p.gk);i&&i[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!p.$3.call(this.typePolicies,e)){var a=this.typePolicies[e]=Object.create(null);a.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(a,i){if(a.test(e)){var r=t.supertypeMap.get(i);r&&r.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),r=n.fields;Object.assign(a,(0,i.__rest)(n,["fields"])),Object.assign(a.fields,r)})}var r=this.toBeAdded[e];return r&&r.length&&r.splice(0).forEach(function(a){t.updateTypePolicy(e,a)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,a){if(e){var i=this.getTypePolicy(e).fields;return i[t]||a&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var a=this.supertypeMap.get(e);return!a&&t&&this.supertypeMap.set(e,a=new Set),a},e.prototype.fragmentMatches=function(e,t,a,i){var r=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),l=[s],d=function(e){var t=r.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},u=!!(a&&this.fuzzySubtypes.size),c=!1,m=0;m<l.length;++m){var f=l[m];if(f.has(o))return s.has(o)||(c&&!1!==globalThis.__DEV__&&n.invariant.warn(7,t,o),s.add(o)),!0;f.forEach(d),u&&m===l.length-1&&(0,p.T9)(e.selectionSet,a,i)&&(u=!1,c=!0,this.fuzzySubtypes.forEach(function(e,a){var i=t.match(e);i&&i[0]===t&&d(a)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var a=this.getFieldPolicy(e,t,!1);return!!(a&&a.keyFn)},e.prototype.getStoreFieldName=function(e){var t,a=e.typename,i=e.fieldName,n=this.getFieldPolicy(a,i,!1),o=n&&n.keyFn;if(o&&a)for(var s={typename:a,fieldName:i,field:e.field||null,variables:e.variables},d=b(e);o;){var u=o(d,s);if((0,l.c)(u))o=h(u);else{t=u||i;break}}return(void 0===t&&(t=e.field?(0,r.Ii)(e.field,e.variables):(0,r.o5)(i,b(e))),!1===t)?i:i===(0,p.iJ)(t)?t:i+":"+t},e.prototype.readField=function(e,t){var a=e.from;if(a&&(e.field||e.fieldName)){if(void 0===e.typename){var i=t.store.getFieldValue(a,"__typename");i&&(e.typename=i)}var n=this.getStoreFieldName(e),o=(0,p.iJ)(n),s=t.store.getFieldValue(a,n),l=this.getFieldPolicy(e.typename,o,!1),u=l&&l.read;if(u){var c=C(this,a,e,t,t.store.getStorage((0,r.A_)(a)?a.__ref:a,n));return d.bl.withValue(this.cache,u,[s,c])}return s}},e.prototype.getReadFunction=function(e,t){var a=this.getFieldPolicy(e,t,!1);return a&&a.read},e.prototype.getMergeFunction=function(e,t,a){var i=this.getFieldPolicy(e,t,!1),n=i&&i.merge;return!n&&a&&(n=(i=this.getTypePolicy(a))&&i.merge),n},e.prototype.runMergeFunction=function(e,t,a,i,n){var r=a.field,o=a.typename,s=a.merge;return s===w?T(i.store)(e,t):s===E?t:(i.overwrite&&(e=void 0),s(e,t,C(this,void 0,{typename:o,fieldName:r.name.value,field:r,variables:i.variables},i,n||Object.create(null))))},e}();function C(e,t,a,i,n){var o=e.getStoreFieldName(a),s=(0,p.iJ)(o),l=a.variables||i.variables,d=i.store,u=d.toReference,c=d.canRead;return{args:b(a),field:a.field||null,fieldName:s,storeFieldName:o,variables:l,isReference:r.A_,toReference:u,storage:n,cache:e.cache,canRead:c,readField:function(){return e.readField(A(arguments,t,l),i)},mergeObjects:T(i.store)}}function A(e,t,a){var r,s=e[0],l=e[1],d=e.length;return"string"==typeof s?r={fieldName:s,from:d>1?l:t}:(r=(0,i.__assign)({},s),p.$3.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&n.invariant.warn(8,(0,o.p)(Array.from(e))),void 0===r.variables&&(r.variables=a),r}function T(e){return function(t,a){if((0,l.c)(t)||(0,l.c)(a))throw(0,n.newInvariantError)(9);if((0,s.U)(t)&&(0,s.U)(a)){var o=e.getFieldValue(t,"__typename"),d=e.getFieldValue(a,"__typename");if(o&&d&&o!==d)return a;if((0,r.A_)(t)&&(0,p.d1)(a))return e.merge(t.__ref,a),t;if((0,p.d1)(t)&&(0,r.A_)(a))return e.merge(t,a.__ref),a;if((0,p.d1)(t)&&(0,p.d1)(a))return(0,i.__assign)((0,i.__assign)({},t),a)}return a}}},777(e,t,a){a.d(t,{MS:()=>p,UT:()=>l,WR:()=>s,bl:()=>n});var i=a(60837),n=new i.Slot,r=new WeakMap;function o(e){var t=r.get(e);return t||r.set(e,t={vars:new Set,dep:(0,i.dep)()}),t}function s(e){o(e).vars.forEach(function(t){return t.forgetCache(e)})}function p(e){o(e).vars.forEach(function(t){return t.attachCache(e)})}function l(e){var t=new Set,a=new Set,i=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){var t;o(e).dep.dirty(i),(t=e).broadcastWatches&&t.broadcastWatches()});var p=Array.from(a);a.clear(),p.forEach(function(t){return t(e)})}}else{var l=n.getValue();l&&(r(l),o(l).dep(i))}return e};i.onNextChange=function(e){return a.add(e),function(){a.delete(e)}};var r=i.attachCache=function(e){return t.add(e),o(e).vars.add(i),i};return i.forgetCache=function(e){return t.delete(e)},i}},55427(e,t,a){a.d(t,{a:()=>l});var i=a(85608),n=a(55888),r=a(3777),o=a(2904),s=a(82307),p=a(28907);function l(e,t,a,l){var u=t.data,c=(0,i.__rest)(t,["data"]),m=a.data,f=(0,i.__rest)(a,["data"]);return(0,n.default)(c,f)&&function e(t,a,i,r){if(a===i)return!0;var l=new Set;return t.selections.every(function(t){if(l.has(t)||(l.add(t),!(0,s.MS)(t,r.variables)||d(t)))return!0;if((0,p.dt)(t)){var u=(0,p.ue)(t),c=a&&a[u],m=i&&i[u],f=t.selectionSet;if(!f)return(0,n.default)(c,m);var h=Array.isArray(c),v=Array.isArray(m);if(h!==v)return!1;if(h&&v){var g=c.length;if(m.length!==g)return!1;for(var y=0;y<g;++y)if(!e(f,c[y],m[y],r))return!1;return!0}return e(f,c,m,r)}var D=(0,o.HQ)(t,r.fragmentMap);if(D)return!!d(D)||e(D.selectionSet,a,i,r)})}((0,r.Vn)(e).selectionSet,u,m,{fragmentMap:(0,o.JG)((0,r.zK)(e)),variables:l})}function d(e){return!!e.directives&&e.directives.some(u)}function u(e){return"nonreactive"===e.name.value}},53570(e,t,a){a.r(t),a.d(t,{ApolloError:()=>l,PROTOCOL_ERRORS_SYMBOL:()=>r,graphQLResultHasProtocolErrors:()=>o,isApolloError:()=>s});var i=a(85608);a(70916);var n=a(21777),r=Symbol();function o(e){return!!e.extensions&&Array.isArray(e.extensions[r])}function s(e){return e.hasOwnProperty("graphQLErrors")}var p=function(e){var t=(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,n.U)(e)&&e.message||"Error message not found."}).join("\n")},l=function(e){function t(a){var n=a.graphQLErrors,r=a.protocolErrors,o=a.clientErrors,s=a.networkError,l=a.errorMessage,d=a.extraInfo,u=e.call(this,l)||this;return u.name="ApolloError",u.graphQLErrors=n||[],u.protocolErrors=r||[],u.clientErrors=o||[],u.networkError=s||null,u.message=l||p(u),u.extraInfo=d,u.cause=(0,i.__spreadArray)((0,i.__spreadArray)((0,i.__spreadArray)([s],n||[],!0),r||[],!0),o||[],!0).find(function(e){return!!e})||null,u.__proto__=t.prototype,u}return(0,i.__extends)(t,e),t}(Error)},19074(e,t,a){a.d(t,{C:()=>u});var i=a(70916),n=a(36054),r=a(16878),o=a(38414),s=a(46192);function p(e,t){return t?t(e):n.c.of()}function l(e){return"function"==typeof e?new u(e):e}function d(e){return e.request.length<=1}var u=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return n.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,a,i){var r=l(a),o=l(i||new e(p));return Object.assign(new e(d(r)&&d(o)?function(e){return t(e)?r.request(e)||n.c.of():o.request(e)||n.c.of()}:function(e,a){return t(e)?r.request(e,a)||n.c.of():o.request(e,a)||n.c.of()}),{left:r,right:o})},e.execute=function(e,t){return e.request((0,r.k)(t.context,(0,o.A)((0,s.K)(t))))||n.c.of()},e.concat=function(t,a){var r=l(t);if(d(r))return!1!==globalThis.__DEV__&&i.invariant.warn(38,r),r;var o=l(a);return Object.assign(new e(d(o)?function(e){return r.request(e,function(e){return o.request(e)||n.c.of()})||n.c.of()}:function(e,t){return r.request(e,function(e){return o.request(e,t)||n.c.of()})||n.c.of()}),{left:r,right:o})},e.prototype.split=function(t,a,i){return this.concat(e.split(t,a,i||new e(p)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,i.newInvariantError)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},25174(e,t,a){a.d(t,{g:()=>i});var i=a(19074).C.execute},4232(e,t,a){a.r(t),a.d(t,{ApolloLink:()=>i.C,concat:()=>s,empty:()=>n,execute:()=>p.g,from:()=>r,split:()=>o}),a(70916);var i=a(19074),n=i.C.empty,r=i.C.from,o=i.C.split,s=i.C.concat,p=a(25174)},49952(e,t,a){a.d(t,{P:()=>o});var i=a(85608),n=a(19074),r=a(79760),o=function(e){function t(t){void 0===t&&(t={});var a=e.call(this,(0,r.$)(t).request)||this;return a.options=t,a}return(0,i.__extends)(t,e),t}(n.C)},67195(e,t,a){a.d(t,{S:()=>n});var i=a(70916),n=function(e){if(!e&&"u"<typeof fetch)throw(0,i.newInvariantError)(40)}},79760(e,t,a){a.d(t,{$:()=>D});var i=a(85608),n=a(70916),r=a(19074),o=a(82307),s=a(36054),p=a(63647),l=a(33068),d=a(90117),u=a(67195),c=a(74559),m=a(11151),f=a(93161),h=a(70783),v=a(53925),g=a(3777),y=(0,n.maybe)(function(){return fetch}),D=function(e){void 0===e&&(e={});var t=e.uri,a=void 0===t?"/graphql":t,D=e.fetch,b=e.print,x=void 0===b?c.i1:b,_=e.includeExtensions,w=e.preserveHeaderCase,E=e.useGETForQueries,F=e.includeUnusedVariables,C=void 0!==F&&F,A=(0,i.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,u.S)(D||y);var T={http:{includeExtensions:_,preserveHeaderCase:w},options:A.fetchOptions,credentials:A.credentials,headers:A.headers};return new r.C(function(e){var t,r,u=(0,l.z)(e,a),b=e.getContext(),_={};if(b.clientAwareness){var w=b.clientAwareness,F=w.name,A=w.version;F&&(_["apollographql-client-name"]=F),A&&(_["apollographql-client-version"]=A)}var S=(0,i.__assign)((0,i.__assign)({},_),b.headers),O={http:b.http,options:b.fetchOptions,credentials:b.credentials,headers:S};if((0,o.d8)(["client"],e.query)){var N=(0,v.er)(e.query);if(!N)return(0,f.N)(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=N}var k=(0,c.HY)(e,x,c.R4,T,O),I=k.options,$=k.body;$.variables&&!C&&($.variables=(0,h.X)($.variables,e.query)),!I.signal&&"u">typeof AbortController&&(I.signal=(r=new AbortController).signal);var j="OperationDefinition"===(t=(0,g.Vn)(e.query)).kind&&"subscription"===t.operation,B=(0,o.d8)(["defer"],e.query);if(E&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(I.method="GET"),B||j){I.headers=I.headers||{};var R="multipart/mixed;";j&&B&&!1!==globalThis.__DEV__&&n.invariant.warn(41),j?R+="boundary=graphql;subscriptionSpec=1.0,application/json":B&&(R+="deferSpec=20220824,application/json"),I.headers.accept=R}if("GET"===I.method){var V=(0,m.E)(u,$),P=V.newURI,L=V.parseError;if(L)return(0,f.N)(L);u=P}else try{I.body=(0,p.Y)($,"Payload")}catch(e){return(0,f.N)(e)}return new s.c(function(t){var a=D||(0,n.maybe)(function(){return fetch})||y,i=t.next.bind(t);return a(u,I).then(function(t){e.setContext({response:t});var a,n=null==(a=t.headers)?void 0:a.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?(0,d.tD)(t,i):(0,d.OQ)(e)(t).then(i)}).then(function(){r=void 0,t.complete()}).catch(function(e){r=void 0,(0,d.H4)(e,t)}),function(){r&&r.abort()}})})}},28876(e,t,a){a.r(t),a.d(t,{HttpLink:()=>d.P,parseAndCheckHttpResponse:()=>i.OQ,checkFetcher:()=>o.S,rewriteURIForGET:()=>u.E,serializeFetchParameter:()=>n.Y,createSignalIfSupported:()=>s,selectHttpOptionsAndBodyInternal:()=>r.HY,selectHttpOptionsAndBody:()=>r.Wz,selectURI:()=>p.z,fallbackHttpConfig:()=>r.R4,createHttpLink:()=>l.$,defaultPrinter:()=>r.i1}),a(70916);var i=a(90117),n=a(63647),r=a(74559),o=a(67195),s=function(){if("u"<typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},p=a(33068),l=a(79760),d=a(49952),u=a(11151)},90117(e,t,a){a.d(t,{H4:()=>c,OQ:()=>m,tD:()=>d});var i=a(85608),n=a(51360);function r(e){var t={next:function(){return e.read()}};return n.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var o=a(3848),s=a(53570),p=a(37396),l=Object.prototype.hasOwnProperty;function d(e,t){return(0,i.__awaiter)(this,void 0,void 0,function(){var a,o,l,d,c,m,f,h,v,g,y,D,b,x,_,w,E,F,C,A,T,S,O;return(0,i.__generator)(this,function(N){switch(N.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),o=null==(O=e.headers)?void 0:O.get("content-type"),l="boundary=",d=(null==o?void 0:o.includes(l))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c="\r\n--".concat(d),m="",f=function(e){var t,a,i,o,s,p,l=e;if(e.body&&(l=e.body),t=l,n.uJ&&t[Symbol.asyncIterator])return i=l[Symbol.asyncIterator](),(a={next:function(){return i.next()}})[Symbol.asyncIterator]=function(){return this},a;if(l.getReader)return r(l.getReader());if(l.stream)return r(l.stream().getReader());if(l.arrayBuffer)return o=l.arrayBuffer(),s=!1,p={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){o.then(function(t){e({value:t,done:!1})}).catch(t)}))}},n.uJ&&(p[Symbol.asyncIterator]=function(){return this}),p;if(l.pipe)return function(e){var t=null,a=null,i=!1,r=[],o=[];function s(e){if(!a){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}r.push(e)}}function p(e){a=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){i=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",p),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",s),e.on("error",p),e.on("end",l),e.on("finish",l),e.on("close",l);var d={next:function(){return new Promise(function(e,t){return a?t(a):r.length?e({value:r.shift(),done:!1}):i?e({value:void 0,done:!0}):void o.push([e,t])})}};return n.uJ&&(d[Symbol.asyncIterator]=function(){return this}),d}(l);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),h=!0,N.label=1;case 1:if(!h)return[3,3];return[4,f.next()];case 2:for(g=(v=N.sent()).value,y=v.done,D="string"==typeof g?g:a.decode(g),b=m.length-c.length+1,h=!y,m+=D,x=m.indexOf(c,b);x>-1;){if(_=void 0,_=(T=[m.slice(0,x),m.slice(x+c.length)])[0],m=T[1],w=_.indexOf("\r\n\r\n"),(E=function(e){var t={};return e.split("\n").forEach(function(e){var a=e.indexOf(":");if(a>-1){var i=e.slice(0,a).trim().toLowerCase(),n=e.slice(a+1).trim();t[i]=n}}),t}(_.slice(0,w))["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(F=_.slice(w)){if(Object.keys(C=u(e,F)).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if((0,p.Nw)(C)){if(A={},"payload"in C){if(1===Object.keys(C).length&&null===C.payload)return[2];A=(0,i.__assign)({},C.payload)}"errors"in C&&(A=(0,i.__assign)((0,i.__assign)({},A),{extensions:(0,i.__assign)((0,i.__assign)({},"extensions"in A?A.extensions:null),((S={})[s.PROTOCOL_ERRORS_SYMBOL]=C.errors,S))})),t(A)}else t(C);else if(1===Object.keys(C).length&&"hasNext"in C&&!C.hasNext)return[2]}x=m.indexOf(c)}return[3,1];case 3:return[2]}})})}function u(e,t){e.status>=300&&(0,o.A)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(a){throw a.name="ServerParseError",a.response=e,a.statusCode=e.status,a.bodyText=t,a}}function c(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function m(e){return function(t){return t.text().then(function(e){return u(t,e)}).then(function(a){return Array.isArray(a)||l.call(a,"data")||l.call(a,"errors")||(0,o.A)(t,a,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),a})}}},11151(e,t,a){a.d(t,{E:()=>n});var i=a(63647);function n(e,t){var a=[],n=function(e,t){a.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var r=void 0;try{r=(0,i.Y)(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",r)}if(t.extensions){var o=void 0;try{o=(0,i.Y)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var s="",p=e,l=e.indexOf("#");-1!==l&&(s=e.substr(l),p=e.substr(0,l));var d=-1===p.indexOf("?")?"?":"&";return{newURI:p+d+a.join("&")+s}}},74559(e,t,a){a.d(t,{HY:()=>p,R4:()=>r,Wz:()=>s,i1:()=>o});var i=a(85608),n=a(38678),r={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},o=function(e,t){return t(e)};function s(e,t){for(var a=[],n=2;n<arguments.length;n++)a[n-2]=arguments[n];return a.unshift(t),p.apply(void 0,(0,i.__spreadArray)([e,o],a,!1))}function p(e,t){for(var a=[],r=2;r<arguments.length;r++)a[r-2]=arguments[r];var o={},s={};a.forEach(function(e){o=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},o),e.options),{headers:(0,i.__assign)((0,i.__assign)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),s=(0,i.__assign)((0,i.__assign)({},s),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var a={};return Object.keys(Object(e)).forEach(function(t){a[t.toLowerCase()]=e[t]}),a}var i={};Object.keys(Object(e)).forEach(function(t){i[t.toLowerCase()]={originalName:t,value:e[t]}});var n={};return Object.keys(i).forEach(function(e){n[i[e].originalName]=i[e].value}),n}(o.headers,s.preserveHeaderCase));var p=e.operationName,l=e.extensions,d=e.variables,u=e.query,c={operationName:p,variables:d};return s.includeExtensions&&(c.extensions=l),s.includeQuery&&(c.query=t(u,n.y)),{options:o,body:c}}},33068(e,t,a){a.d(t,{z:()=>i});var i=function(e,t){var a=e.getContext().uri;return a||("function"==typeof t?t(e):t||"/graphql")}},63647(e,t,a){a.d(t,{Y:()=>n});var i=a(70916),n=function(e,t){var a;try{a=JSON.stringify(e)}catch(e){var n=(0,i.newInvariantError)(42,t,e.message);throw n.parseError=e,n}return a}},16878(e,t,a){a.d(t,{k:()=>n});var i=a(85608);function n(e,t){var a=(0,i.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){a="function"==typeof e?(0,i.__assign)((0,i.__assign)({},a),e(a)):(0,i.__assign)((0,i.__assign)({},a),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,i.__assign)({},a)}}),t}},70783(e,t,a){a.d(t,{X:()=>r});var i=a(85608),n=a(90424);function r(e,t){var a=(0,i.__assign)({},e),r=new Set(Object.keys(e));return(0,n.YR)(t,{Variable:function(e,t,a){a&&"VariableDefinition"!==a.kind&&r.delete(e.name.value)}}),r.forEach(function(e){delete a[e]}),a}},93161(e,t,a){a.d(t,{N:()=>n});var i=a(36054);function n(e){return new i.c(function(t){t.error(e)})}},22594(e,t,a){a.d(t,{S:()=>n});var i=a(36054);function n(e){return new i.c(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}},25979(e,t,a){a.r(t),a.d(t,{createOperation:()=>p.k,filterOperationVariables:()=>d.X,fromError:()=>i.N,fromPromise:()=>r.S,throwServerError:()=>o.A,toPromise:()=>n.h,transformOperation:()=>l.A,validateOperation:()=>s.K}),a(70916);var i=a(93161),n=a(60441),r=a(22594),o=a(3848),s=a(46192),p=a(16878),l=a(38414),d=a(70783)},3848(e,t,a){a.d(t,{A:()=>i});var i=function(e,t,a){var i=Error(a);throw i.name="ServerError",i.response=e,i.statusCode=e.status,i.result=t,i}},60441(e,t,a){a.d(t,{h:()=>n});var i=a(70916);function n(e){var t=!1;return new Promise(function(a,n){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&i.invariant.warn(45):(t=!0,a(e))},error:n})})}},38414(e,t,a){a.d(t,{A:()=>n});var i=a(3777);function n(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,i.n4)(t.query)||void 0:""),t}},46192(e,t,a){a.d(t,{K:()=>n});var i=a(70916);function n(e){for(var t=["query","operationName","variables","extensions","context"],a=0,n=Object.keys(e);a<n.length;a++){var r=n[a];if(0>t.indexOf(r))throw(0,i.newInvariantError)(46,r)}return e}},39283(e,t,a){a.r(t),a.d(t,{disableWarningsSlot:()=>i.yV,maskFragment:()=>n.z,maskOperation:()=>r.m});var i=a(47150),n=a(62959),r=a(28354)},25186(e,t,a){a.d(t,{S:()=>l});var i=a(42455),n=a(57236),r=a(28907),o=a(82307),s=a(47150),p=a(70916);function l(e,t,a){return s.yV.withValue(!0,function(){var l=function e(t,a,n,l,d){var u,c=n.knownChanged,m=function(e,t){if(t.has(e))return t.get(e);var a=Array.isArray(e)?[]:Object.create(null);return t.set(e,a),a}(t,n.mutableTargets);if(Array.isArray(t)){for(var f=0,h=Array.from(t.entries());f<h.length;f++){var v=h[f],g=v[0],y=v[1];if(null===y){m[g]=null;continue}var D=e(y,a,n,l,!1!==globalThis.__DEV__?"".concat(d||"","[").concat(g,"]"):void 0);c.has(D)&&c.add(m),m[g]=D}return c.has(m)?m:t}for(var b=0,x=a.selections;b<x.length;b++){var _=x[b],w=void 0;if(l&&c.add(m),_.kind===i.b.FIELD){var E=(0,r.ue)(_),F=_.selectionSet;if(void 0===(w=m[E]||t[E]))continue;if(F&&null!==w){var D=e(t[E],F,n,l,!1!==globalThis.__DEV__?"".concat(d||"",".").concat(E):void 0);c.has(D)&&(w=D)}!1===globalThis.__DEV__&&(m[E]=w),!1!==globalThis.__DEV__&&(!l||"__typename"===E||(null==(u=Object.getOwnPropertyDescriptor(m,E))?void 0:u.value)?(delete m[E],m[E]=w):Object.defineProperty(m,E,function(e,t,a,i,n){var r=function(){return s.yV.getValue()||(!1!==globalThis.__DEV__&&p.invariant.warn(48,i?"".concat(n," '").concat(i,"'"):"anonymous ".concat(n),"".concat(a,".").concat(e).replace(/^\./,"")),r=function(){return t}),t};return{get:function(){return r()},set:function(e){r=function(){return e}},enumerable:!0,configurable:!0}}(E,w,d||"",n.operationName,n.operationType)))}if(_.kind===i.b.INLINE_FRAGMENT&&(!_.typeCondition||n.cache.fragmentMatches(_,t.__typename))&&(w=e(t,_.selectionSet,n,l,d)),_.kind===i.b.FRAGMENT_SPREAD){var C=_.name.value,A=n.fragmentMap[C]||(n.fragmentMap[C]=n.cache.lookupFragment(C));(0,p.invariant)(A,47,C);var T=(0,o.s7)(_);"mask"!==T&&(w=e(t,A.selectionSet,n,"migrate"===T,d))}c.has(w)&&c.add(m)}return"__typename"in t&&!("__typename"in m)&&(m.__typename=t.__typename),Object.keys(m).length!==Object.keys(t).length&&c.add(m),c.has(m)?m:t}(e,t,a,!1);return Object.isFrozen(e)&&(0,n.G)(l),l})}},62959(e,t,a){a.d(t,{z:()=>d});var i=a(42455),n=a(47150),r=a(70916),o=a(55888),s=a(25186),p=a(2904),l=a(3777);function d(e,t,a,d){if(!a.fragmentMatches)return!1!==globalThis.__DEV__&&(0,n.Ki)(),e;var u=t.definitions.filter(function(e){return e.kind===i.b.FRAGMENT_DEFINITION});void 0===d&&((0,r.invariant)(1===u.length,49,u.length),d=u[0].name.value);var c=u.find(function(e){return e.name.value===d});return((0,r.invariant)(!!c,50,d),null==e||(0,o.default)(e,{}))?e:(0,s.S)(e,c.selectionSet,{operationType:"fragment",operationName:c.name.value,fragmentMap:(0,p.JG)((0,l.zK)(t)),cache:a,mutableTargets:new n.jq,knownChanged:new n.xm})}},28354(e,t,a){a.d(t,{m:()=>p});var i=a(70916),n=a(3777),r=a(2904),o=a(25186),s=a(47150);function p(e,t,a){if(!a.fragmentMatches)return!1!==globalThis.__DEV__&&(0,s.Ki)(),e;var p,l=(0,n.Vu)(t);return((0,i.invariant)(l,51),null==e)?e:(0,o.S)(e,l.selectionSet,{operationType:l.operation,operationName:null==(p=l.name)?void 0:p.value,fragmentMap:(0,r.JG)((0,n.zK)(t)),cache:a,mutableTargets:new s.jq,knownChanged:new s.xm})}},47150(e,t,a){a.d(t,{Ki:()=>d,jq:()=>o,xm:()=>s,yV:()=>p});var i=a(60837),n=a(70916),r=a(51360),o=r.et?WeakMap:Map,s=r.En?WeakSet:Set,p=new i.Slot,l=!1;function d(){l||(l=!0,!1!==globalThis.__DEV__&&n.invariant.warn(52))}},45078(e,t,a){a.d(t,{A:()=>s,V:()=>p});var i=a(54019),n=a(31088),r=new WeakSet;function o(e){!(e.size<=(e.max||-1))&&(r.has(e)||(r.add(e),setTimeout(function(){e.clean(),r.delete(e)},100)))}var s=function(e,t){var a=new i.l(e,t);return a.set=function(e,t){var a=i.l.prototype.set.call(this,e,t);return o(this),a},a},p=function(e,t){var a=new n.C(e,t);return a.set=function(e,t){var a=n.C.prototype.set.call(this,e,t);return o(this),a},a}},44114(e,t,a){a.d(t,{D_:()=>o,cM:()=>p,ep:()=>s,tQ:()=>l});var i=a(85608),n=a(555),r={};function o(e,t){r[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,a,o,s;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],a=e[1];return[t,n.v[t]||a]})),sizes:(0,i.__assign)({print:null==(e=r.print)?void 0:e.call(r),parser:null==(t=r.parser)?void 0:t.call(r),canonicalStringify:null==(a=r.canonicalStringify)?void 0:a.call(r),links:function e(t){var a;return t?(0,i.__spreadArray)((0,i.__spreadArray)([null==(a=null==t?void 0:t.getMemoryInternals)?void 0:a.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(c):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:m(this.queryManager.documentTransform)}},null==(s=(o=this.cache).getMemoryInternals)?void 0:s.call(o))}}:void 0,p=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,i.__assign)((0,i.__assign)({},d.apply(this)),{addTypenameDocumentTransform:m(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:u(this.storeReader.executeSelectionSet),executeSubSelectedArray:u(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:u(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:u(null==e?void 0:e.findFragmentSpreads),lookup:u(null==e?void 0:e.lookup),transform:u(null==e?void 0:e.transform)}})}:void 0,l=!1!==globalThis.__DEV__?d:void 0;function d(){return{cache:{fragmentQueryDocuments:u(this.getFragmentDoc)}}}function u(e){return e&&"dirtyKey"in e?e.size:void 0}function c(e){return null!=e}function m(e){return(function e(t){return t?(0,i.__spreadArray)((0,i.__spreadArray)([u(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(c):[]})(e).map(function(e){return{cache:e}})}},555(e,t,a){a.d(t,{v:()=>o});var i=a(85608),n=a(70916),r=Symbol.for("apollo.cacheSize"),o=(0,i.__assign)({},n.global[r])},73767(e,t,a){a.d(t,{E:()=>n,c:()=>i});var i=Array.isArray;function n(e){return Array.isArray(e)&&e.length>0}},51360(e,t,a){a.d(t,{En:()=>o,JR:()=>u,Sw:()=>l,et:()=>r,ol:()=>s,uJ:()=>p});var i=a(70916),n="ReactNative"==(0,i.maybe)(function(){return navigator.product}),r="function"==typeof WeakMap&&!(n&&!global.HermesInternal),o="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,p=s&&Symbol.asyncIterator,l="function"==typeof(0,i.maybe)(function(){return window.document.createElement}),d=(0,i.maybe)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,u=(l||n)&&!d},44214(e,t,a){a.d(t,{M:()=>s});var i,n=a(45078),r=a(555),o=a(44114),s=Object.assign(function(e){return JSON.stringify(e,p)},{reset:function(){i=new n.V(r.v.canonicalStringify||1e3)}});function p(e,t){if(t&&"object"==typeof t){var a=Object.getPrototypeOf(t);if(a===Object.prototype||null===a){var n=Object.keys(t);if(n.every(l))return t;var r=JSON.stringify(n),o=i.get(r);if(!o){n.sort();var s=JSON.stringify(n);o=i.get(s)||n,i.set(r,o),i.set(s,o)}var p=Object.create(a);return o.forEach(function(e){p[e]=t[e]}),p}}return t}function l(e,t,a){return 0===t||a[t-1]<=e}!1!==globalThis.__DEV__&&(0,o.D_)("canonicalStringify",function(){return i.size}),s.reset()},20906(e,t,a){a.d(t,{m:()=>n});var i=Object.prototype.toString;function n(e){return function e(t,a){switch(i.call(t)){case"[object Array]":if((a=a||new Map).has(t))return a.get(t);var n=t.slice(0);return a.set(t,n),n.forEach(function(t,i){n[i]=e(t,a)}),n;case"[object Object]":if((a=a||new Map).has(t))return a.get(t);var r=Object.create(Object.getPrototypeOf(t));return a.set(t,r),Object.keys(t).forEach(function(i){r[i]=e(t[i],a)}),r;default:return t}}(e)}},50492(e,t,a){a.d(t,{o:()=>i});function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var a=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var i=e[t];void 0!==i&&(a[t]=i)})}),a}},32710(e,t,a){a.d(t,{M:()=>o,t:()=>r});var i=a(73767),n=a(37396);function r(e){var t=o(e);return(0,i.E)(t)}function o(e){var t=(0,i.E)(e.errors)?e.errors.slice(0):[];return(0,n.ST)(e)&&(0,i.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}},37396(e,t,a){a.d(t,{EQ:()=>s,Nw:()=>l,ST:()=>o,YX:()=>p,bd:()=>d});var i=a(21777),n=a(73767),r=a(30671);function o(e){return"incremental"in e}function s(e){return"hasNext"in e&&"data"in e}function p(e){return o(e)||s(e)}function l(e){return(0,i.U)(e)&&"payload"in e}function d(e,t){var a=e,i=new r.ZI;return o(t)&&(0,n.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,n=e.path,r=n.length-1;r>=0;--r){var o=n[r],s=isNaN(+o)?{}:[];s[o]=t,t=s}a=i.merge(a,t)}),a}},21461(e,t,a){a.d(t,{v:()=>n});var i=new Map;function n(e){var t=i.get(e)||1;return i.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},57236(e,t,a){a.d(t,{G:()=>n});var i=a(21777);function n(e){var t;return!1!==globalThis.__DEV__&&(t=new Set([e])).forEach(function(e){(0,i.U)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(a){(0,i.U)(e[a])&&t.add(e[a])})}),e}},30671(e,t,a){a.d(t,{D9:()=>o,IM:()=>s,ZI:()=>l});var i=a(85608),n=a(21777),r=Object.prototype.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},a=e.length;if(a>1)for(var i=new l,n=1;n<a;++n)t=i.merge(t,e[n]);return t}var p=function(e,t,a){return this.merge(e[a],t[a])},l=function(){function e(e){void 0===e&&(e=p),this.reconciler=e,this.isObject=n.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var a=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return(0,n.U)(t)&&(0,n.U)(e)?(Object.keys(t).forEach(function(n){if(r.call(e,n)){var s=e[n];if(t[n]!==s){var p=a.reconciler.apply(a,(0,i.__spreadArray)([e,t,n],o,!1));p!==s&&((e=a.shallowCopyForMerge(e))[n]=p)}}else(e=a.shallowCopyForMerge(e))[n]=t[n]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,n.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,i.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},31507(e,t,a){a.d(t,{l:()=>r});var i=a(85608),n=a(50492);function r(e,t){return(0,n.o)(e,t,t.variables&&{variables:(0,n.o)((0,i.__assign)((0,i.__assign)({},e&&e.variables),t.variables))})}},21777(e,t,a){function i(e){return null!==e&&"object"==typeof e}function n(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}a.d(t,{Q:()=>n,U:()=>i})},86563(e,t,a){a.d(t,{p:()=>n});var i=a(21461);function n(e,t){void 0===t&&(t=0);var a=(0,i.v)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?a:t},t).split(JSON.stringify(a)).join("<undefined>")}},70916(e,t,a){a.r(t),a.d(t,{invariant:()=>l,__DEV__:()=>h,DEV:()=>h,global:()=>o,InvariantError:()=>i.InvariantError,newInvariantError:()=>d,maybe:()=>r});var i=a(19371),n=a(73972);function r(e){try{return e()}catch(e){}}let o=r(function(){return globalThis})||r(function(){return window})||r(function(){return self})||r(function(){return global})||r(function(){return r.constructor("return this")()});var s=a(86563);function p(e){return function(t){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];if("number"==typeof t){var n=t;(t=m(n))||(t=f(n,a),a=[])}e.apply(void 0,[t].concat(a))}}var l=Object.assign(function(e,t){for(var a=[],n=2;n<arguments.length;n++)a[n-2]=arguments[n];e||(0,i.invariant)(e,m(t,a)||f(t,a))},{debug:p(i.invariant.debug),log:p(i.invariant.log),warn:p(i.invariant.warn),error:p(i.invariant.error)});function d(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return new i.InvariantError(m(e,t)||f(e,t))}var u=Symbol.for("ApolloErrorMessageHandler_"+n.r);function c(e){if("string"==typeof e)return e;try{return(0,s.p)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function m(e,t){if(void 0===t&&(t=[]),e)return o[u]&&o[u](e,t.map(c))}function f(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:n.r,message:e,args:t.map(c)})))}var h=!1!==globalThis.__DEV__},9354(e,t,a){a.d(t,{c:()=>u});var i=a(44592),n=a(51360),r=a(3777),o=a(70916),s=a(54019),p=a(60837),l=a(555);function d(e){return e}var u=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=n.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(d,{cache:!1})},e.split=function(t,a,i){return void 0===i&&(i=e.identity()),Object.assign(new e(function(e){return(t(e)?a:i).transformDocument(e)},{cache:!1}),{left:a,right:i})},e.prototype.resetCache=function(){var t=this;if(this.cached){var a=new i.Trie(n.et);this.performWork=(0,p.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var i=t.getCacheKey(e);if(i)return(0,o.invariant)(Array.isArray(i),77),a.lookupArray(i)},max:l.v["documentTransform.cache"],cache:s.l})}},e.prototype.performWork=function(e){return(0,r.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var a=this;return Object.assign(new e(function(e){return t.transformDocument(a.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},82307(e,t,a){a.d(t,{I5:()=>l,MS:()=>o,d8:()=>d,f2:()=>u,hE:()=>p,s7:()=>m,sx:()=>s,tY:()=>c});var i=a(70916),n=a(90424),r=a(42455);function o(e,t){var a=e.directives;return!a||!a.length||c(a).every(function(e){var a=e.directive,n=e.ifArgument,r=!1;return"Variable"===n.value.kind?(r=t&&t[n.value.name.value],(0,i.invariant)(void 0!==r,78,a.name.value)):r=n.value.value,"skip"===a.name.value?!r:r})}function s(e){var t=[];return(0,n.YR)(e,{Directive:function(e){t.push(e.name.value)}}),t}var p=function(e,t){return d(e,t,!1)},l=function(e,t){return d(e,t,!0)};function d(e,t,a){var i=new Set(e),r=i.size;return(0,n.YR)(t,{Directive:function(e){if(i.delete(e.name.value)&&(!a||!i.size))return n.sP}}),a?!i.size:i.size<r}function u(e){return e&&d(["client","export"],e,!0)}function c(e){var t=[];return e&&e.length&&e.forEach(function(e){if("skip"===(a=e.name.value)||"include"===a){var a,n=e.arguments,r=e.name.value;(0,i.invariant)(n&&1===n.length,79,r);var o=n[0];(0,i.invariant)(o.name&&"if"===o.name.value,80,r);var s=o.value;(0,i.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,r),t.push({directive:e,ifArgument:o})}}),t}function m(e){var t,a,n=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var o=null==(a=n.arguments)?void 0:a.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&o&&(o.value.kind===r.b.VARIABLE?!1!==globalThis.__DEV__&&i.invariant.warn(82):o.value.kind!==r.b.STRING?!1!==globalThis.__DEV__&&i.invariant.warn(83):"migrate"!==o.value.value&&!1!==globalThis.__DEV__&&i.invariant.warn(84,o.value.value)),o&&"value"in o.value&&"migrate"===o.value.value)?"migrate":"unmask"}},2904(e,t,a){a.d(t,{HQ:()=>p,JG:()=>s,ct:()=>o,s6:()=>l});var i=a(85608),n=a(70916),r=a(90424);function o(e,t){var a=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,n.newInvariantError)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)}),void 0===a&&((0,n.invariant)(1===r.length,86,r.length),a=r[0].name.value),(0,i.__assign)((0,i.__assign)({},e),{definitions:(0,i.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:a}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function p(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var a=e.name.value;if("function"==typeof t)return t(a);var i=t&&t[a];return(0,n.invariant)(i,87,a),i||null;default:return null}}function l(e){var t=!0;return(0,r.YR)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return r.sP}}),t}},3777(e,t,a){a.d(t,{AT:()=>l,E4:()=>d,Vn:()=>u,Vu:()=>o,n4:()=>s,sw:()=>r,wY:()=>c,zK:()=>p});var i=a(70916),n=a(28907);function r(e){(0,i.invariant)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,i.newInvariantError)(89,e.kind);return e});return(0,i.invariant)(t.length<=1,90,t.length),e}function o(e){return r(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function p(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function l(e){var t=o(e);return(0,i.invariant)(t&&"query"===t.operation,91),t}function d(e){(0,i.invariant)("Document"===e.kind,92),(0,i.invariant)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,i.invariant)("FragmentDefinition"===t.kind,94),t}function u(e){r(e);for(var t,a=0,n=e.definitions;a<n.length;a++){var o=n[a];if("OperationDefinition"===o.kind){var s=o.operation;if("query"===s||"mutation"===s||"subscription"===s)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw(0,i.newInvariantError)(95)}function c(e){var t=Object.create(null),a=e&&e.variableDefinitions;return a&&a.length&&a.forEach(function(e){e.defaultValue&&(0,n.J)(t,e.variable.name,e.defaultValue)}),t}},38678(e,t,a){a.d(t,{y:()=>p});var i,n=a(95818),r=a(45078),o=a(555),s=a(44114),p=Object.assign(function(e){var t=i.get(e);return t||(t=(0,n.y)(e),i.set(e,t)),t},{reset:function(){i=new r.A(o.v.print||2e3)}});p.reset(),!1!==globalThis.__DEV__&&(0,s.D_)("print",function(){return i?i.size:0})},28907(e,t,a){a.d(t,{A_:()=>p,D$:()=>function e(t,a,i){for(var n,o=0,s=a.selections;o<s.length;o++){var p=s[o];if(g(p)){if("__typename"===p.name.value)return t[v(p)]}else n?n.push(p):n=[p]}if("string"==typeof t.__typename)return t.__typename;if(n)for(var l=0,d=n;l<d.length;l++){var p=d[l],u=e(t,(0,r.HQ)(p,i).selectionSet,i);if("string"==typeof u)return u}},Ii:()=>u,J:()=>d,Kc:()=>l,MB:()=>h,WU:()=>s,dt:()=>g,kd:()=>y,o5:()=>f,ue:()=>v});var i=a(70916),n=a(21777),r=a(2904),o=a(44214);function s(e){return{__ref:String(e)}}function p(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function l(e){return(0,n.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function d(e,t,a,n){if("IntValue"===a.kind||"FloatValue"===a.kind)e[t.value]=Number(a.value);else if("BooleanValue"===a.kind||"StringValue"===a.kind)e[t.value]=a.value;else if("ObjectValue"===a.kind){var r={};a.fields.map(function(e){return d(r,e.name,e.value,n)}),e[t.value]=r}else if("Variable"===a.kind){var o=(n||{})[a.name.value];e[t.value]=o}else if("ListValue"===a.kind)e[t.value]=a.values.map(function(e){var a={};return d(a,t,e,n),a[t.value]});else if("EnumValue"===a.kind)e[t.value]=a.value;else if("NullValue"===a.kind)e[t.value]=null;else throw(0,i.newInvariantError)(96,t.value,a.kind)}function u(e,t){var a=null;e.directives&&(a={},e.directives.forEach(function(e){a[e.name.value]={},e.arguments&&e.arguments.forEach(function(i){var n=i.name,r=i.value;return d(a[e.name.value],n,r,t)})}));var i=null;return e.arguments&&e.arguments.length&&(i={},e.arguments.forEach(function(e){var a=e.name,n=e.value;return d(i,a,n,t)})),f(e.name.value,i,a)}var c=["connection","include","skip","client","rest","export","nonreactive"],m=o.M,f=Object.assign(function(e,t,a){if(t&&a&&a.connection&&a.connection.key)if(!a.connection.filter||!(a.connection.filter.length>0))return a.connection.key;else{var i=a.connection.filter?a.connection.filter:[];i.sort();var n={};return i.forEach(function(e){n[e]=t[e]}),"".concat(a.connection.key,"(").concat(m(n),")")}var r=e;if(t){var o=m(t);r+="(".concat(o,")")}return a&&Object.keys(a).forEach(function(e){-1===c.indexOf(e)&&(a[e]&&Object.keys(a[e]).length?r+="@".concat(e,"(").concat(m(a[e]),")"):r+="@".concat(e))}),r},{setStringify:function(e){var t=m;return m=e,t}});function h(e,t){if(e.arguments&&e.arguments.length){var a={};return e.arguments.forEach(function(e){return d(a,e.name,e.value,t)}),a}return null}function v(e){return e.alias?e.alias.value:e.name.value}function g(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}},53925(e,t,a){a.d(t,{TC:()=>D,XY:()=>h,er:()=>x,hX:()=>g,it:()=>y,iz:()=>f,x3:()=>_,zc:()=>b});var i=a(85608),n=a(70916),r=a(42455),o=a(90424),s=a(3777),p=a(28907),l=a(2904),d=a(73767),u={kind:r.b.FIELD,name:{kind:r.b.NAME,value:"__typename"}};function c(e){return!function e(t,a){return!t||t.selectionSet.selections.every(function(t){return t.kind===r.b.FRAGMENT_SPREAD&&e(a[t.name.value],a)})}((0,s.Vu)(e)||(0,s.E4)(e),(0,l.JG)((0,s.zK)(e)))?e:null}function m(e){var t=new Map;return function(a){void 0===a&&(a=e);var i=t.get(a);return i||t.set(a,i={variables:new Set,fragmentSpreads:new Set}),i}}function f(e,t){(0,s.sw)(t);for(var a,p,l=m(""),u=m(""),f=function(e){for(var t=0,a=void 0;t<e.length&&(a=e[t]);++t)if(!(0,d.c)(a)){if(a.kind===r.b.OPERATION_DEFINITION)return l(a.name&&a.name.value);if(a.kind===r.b.FRAGMENT_DEFINITION)return u(a.name.value)}return!1!==globalThis.__DEV__&&n.invariant.error(97),null},h=0,v=t.definitions.length-1;v>=0;--v)t.definitions[v].kind===r.b.OPERATION_DEFINITION&&++h;var g=(a=new Map,p=new Map,e.forEach(function(e){e&&(e.name?a.set(e.name,e):e.test&&p.set(e.test,e))}),function(e){var t=a.get(e.name.value);return!t&&p.size&&p.forEach(function(a,i){i(e)&&(t=a)}),t}),y=function(e){return(0,d.E)(e)&&e.map(g).some(function(e){return e&&e.remove})},D=new Map,b=!1,x={enter:function(e){if(y(e.directives))return b=!0,null}},_=(0,o.YR)(t,{Field:x,InlineFragment:x,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,a,i,n){var r=f(n);r&&r.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,a,i,n){if(y(e.directives))return b=!0,null;var r=f(n);r&&r.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,a,i){D.set(JSON.stringify(i),e)},leave:function(e,t,a,i){return e===D.get(JSON.stringify(i))?e:h>0&&e.selectionSet.selections.every(function(e){return e.kind===r.b.FIELD&&"__typename"===e.name.value})?(u(e.name.value).removed=!0,b=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return b=!0,null}}});if(!b)return t;var w=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){w(u(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},E=new Set;_.definitions.forEach(function(e){e.kind===r.b.OPERATION_DEFINITION?w(l(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){E.add(e)}):e.kind!==r.b.FRAGMENT_DEFINITION||0!==h||u(e.name.value).removed||E.add(e.name.value)}),E.forEach(function(e){w(u(e)).fragmentSpreads.forEach(function(e){E.add(e)})});var F={enter:function(e){var t;if(t=e.name.value,!E.has(t)||u(t).removed)return null}};return c((0,o.YR)(_,{FragmentSpread:F,FragmentDefinition:F,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=w(l(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,i.__assign)((0,i.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var h=Object.assign(function(e){return(0,o.YR)(e,{SelectionSet:{enter:function(e,t,a){if(!a||a.kind!==r.b.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return(0,p.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,p.dt)(a)&&a.directives&&a.directives.some(function(e){return"export"===e.name.value})))return(0,i.__assign)((0,i.__assign)({},e),{selections:(0,i.__spreadArray)((0,i.__spreadArray)([],n,!0),[u],!1)})}}}})},{added:function(e){return e===u}}),v={test:function(e){var t="connection"===e.name.value;return!t||e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||!1===globalThis.__DEV__||n.invariant.warn(98),t}};function g(e){return f([v],(0,s.sw)(e))}function y(e,t){var a=function(t){return e.some(function(e){return t.value&&t.value.kind===r.b.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})};return c((0,o.YR)(t,{OperationDefinition:{enter:function(t){return(0,i.__assign)((0,i.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var i=0;if(t.arguments&&t.arguments.forEach(function(e){a(e)&&(i+=1)}),1===i)return null}}},Argument:{enter:function(e){if(a(e))return null}}}))}function D(e,t){function a(t){if(e.some(function(e){return e.name===t.name.value}))return null}return c((0,o.YR)(t,{FragmentSpread:{enter:a},FragmentDefinition:{enter:a}}))}function b(e){return"query"===(0,s.Vn)(e).operation?e:(0,o.YR)(e,{OperationDefinition:{enter:function(e){return(0,i.__assign)((0,i.__assign)({},e),{operation:"query"})}}})}function x(e){return(0,s.sw)(e),f([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function _(e){return(0,s.sw)(e),(0,o.YR)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,i.__assign)((0,i.__assign)({},e),{directives:(0,i.__spreadArray)((0,i.__spreadArray)([],e.directives||[],!0),[{kind:r.b.DIRECTIVE,name:{kind:r.b.NAME,value:"nonreactive"}}],!1)})}})}},5437(e,t,a){a.r(t),a.d(t,{DEV:()=>i.DEV,concatPagination:()=>g,getInclusionDirectives:()=>n.tY,makeReference:()=>l.WU,shouldInclude:()=>n.MS,createFragmentMap:()=>o.JG,AutoCleanedStrongCache:()=>Q.V,hasAllDirectives:()=>n.I5,AutoCleanedWeakCache:()=>Q.A,canUseWeakMap:()=>R.et,getFragmentFromSelection:()=>o.HQ,storeKeyNameFromField:()=>l.Ii,getOperationDefinition:()=>s.Vu,isArray:()=>$.c,checkDocument:()=>s.sw,getFragmentMaskMode:()=>n.s7,maybe:()=>i.maybe,valueToObjectRepresentation:()=>l.J,mergeDeepArray:()=>v.IM,getDirectiveNames:()=>n.sx,isExecutionPatchInitialResult:()=>U.EQ,graphQLResultHasError:()=>B.t,resultKeyNameFromField:()=>l.ue,hasDirectives:()=>n.d8,isPlainObject:()=>j.Q,isNonNullObject:()=>j.U,mergeOptions:()=>M.l,canUseAsyncIteratorSymbol:()=>R.uJ,isReference:()=>l.A_,DeepMerger:()=>v.ZI,maybeDeepFreeze:()=>S.G,getFragmentDefinition:()=>s.E4,getTypenameFromResult:()=>l.D$,iterateObserversSafely:()=>O.w,getOperationName:()=>s.n4,removeDirectivesFromDocument:()=>d.iz,isStatefulPromise:()=>F,isInlineFragment:()=>l.kd,canUseWeakSet:()=>R.En,mergeDeep:()=>v.D9,omitDeep:()=>G,isQueryOperation:()=>m,print:()=>p.y,createRejectedPromise:()=>E,getStoreKeyName:()=>l.o5,removeFragmentSpreadFromDocument:()=>d.TC,removeArgumentsFromDocument:()=>d.it,fixObservableSubclass:()=>I.r,createFulfilledPromise:()=>w,canUseSymbol:()=>R.ol,getFragmentQueryDocument:()=>o.ct,removeConnectionDirectiveFromDocument:()=>d.hX,stringifyForDisplay:()=>L.p,wrapPromiseWithState:()=>C,relayStylePagination:()=>D,isNonEmptyArray:()=>$.E,getFragmentDefinitions:()=>s.zK,isExecutionPatchIncrementalResult:()=>U.ST,buildQueryFromSelectionSet:()=>d.zc,preventUnhandledRejection:()=>A.X,stripTypename:()=>Y,canUseDOM:()=>R.Sw,canUseLayoutEffect:()=>R.JR,isApolloPayloadResult:()=>U.Nw,DocumentTransform:()=>r.c,addTypenameToDocument:()=>d.XY,canonicalStringify:()=>q.M,Concast:()=>k.E,Observable:()=>_.c,argumentsObjectFromField:()=>l.MB,getDefaultValues:()=>s.wY,isField:()=>l.dt,hasClientExports:()=>n.f2,offsetLimitPagination:()=>y,removeClientSetsFromDocument:()=>d.er,isDocumentNode:()=>l.Kc,compact:()=>V.o,getGraphQLErrorsFromResult:()=>B.M,addNonReactiveToNamedFragments:()=>d.x3,getQueryDefinition:()=>s.AT,isExecutionPatchResult:()=>U.YX,asyncMap:()=>N.x,isFullyUnmaskedOperation:()=>o.s6,hasAnyDirectives:()=>n.hE,getMainDefinition:()=>s.Vn,isMutationOperation:()=>c,cloneDeep:()=>T.m,isSubscriptionOperation:()=>f,cacheSizes:()=>J.v,makeUniqueId:()=>P.v,mergeIncrementalData:()=>U.bd});var i=a(70916),n=a(82307),r=a(9354),o=a(2904),s=a(3777),p=a(38678),l=a(28907),d=a(53925);function u(e,t){var a;return(null==(a=(0,s.Vu)(e))?void 0:a.operation)===t}function c(e){return u(e,"mutation")}function m(e){return u(e,"query")}function f(e){return u(e,"subscription")}var h=a(85608),v=a(30671);function g(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t){return e?(0,h.__spreadArray)((0,h.__spreadArray)([],e,!0),t,!0):t}}}function y(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,a){var i=a.args,n=e?e.slice(0):[];if(t)if(i)for(var r=i.offset,o=void 0===r?0:r,s=0;s<t.length;++s)n[o+s]=t[s];else n.push.apply(n,t);return n}}}function D(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var a=t.canRead,i=t.readField;if(!e)return e;var n=[],r="",o="";e.edges.forEach(function(e){a(i("node",e))&&(n.push(e),e.cursor&&(r=r||e.cursor||"",o=e.cursor||o))}),n.length>1&&r===o&&(r="");var s=e.pageInfo||{},p=s.startCursor,l=s.endCursor;return(0,h.__assign)((0,h.__assign)({},b(e)),{edges:n,pageInfo:(0,h.__assign)((0,h.__assign)({},e.pageInfo),{startCursor:p||r,endCursor:l||o})})},merge:function(e,t,a){var i=a.args,n=a.isReference,r=a.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var o=t.edges?t.edges.map(function(e){return n(e=(0,h.__assign)({},e))&&(e.cursor=r("cursor",e)),e}):[];if(t.pageInfo){var s=t.pageInfo,p=s.startCursor,l=s.endCursor,d=o[0],u=o[o.length-1];d&&p&&(d.cursor=p),u&&l&&(u.cursor=l);var c=d&&d.cursor;c&&!p&&(t=(0,v.D9)(t,{pageInfo:{startCursor:c}}));var m=u&&u.cursor;m&&!l&&(t=(0,v.D9)(t,{pageInfo:{endCursor:m}}))}var f=e.edges,g=[];if(i&&i.after){var y=f.findIndex(function(e){return e.cursor===i.after});y>=0&&(f=f.slice(0,y+1))}else if(i&&i.before){var y=f.findIndex(function(e){return e.cursor===i.before});g=y<0?f:f.slice(y),f=[]}else t.edges&&(f=[]);var D=(0,h.__spreadArray)((0,h.__spreadArray)((0,h.__spreadArray)([],f,!0),o,!0),g,!0),x=(0,h.__assign)((0,h.__assign)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var _=t.pageInfo,w=_.hasPreviousPage,E=_.hasNextPage,p=_.startCursor,l=_.endCursor;Object.assign(x,(0,h.__rest)(_,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),f.length||(void 0!==w&&(x.hasPreviousPage=w),void 0!==p&&(x.startCursor=p)),g.length||(void 0!==E&&(x.hasNextPage=E),void 0!==l&&(x.endCursor=l))}return(0,h.__assign)((0,h.__assign)((0,h.__assign)({},b(e)),b(t)),{edges:D,pageInfo:x})}}}var b=function(e){return(0,h.__rest)(e,x)},x=["edges","pageInfo"],_=a(36054);function w(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function E(e){var t=Promise.reject(e);return t.catch(function(){}),t.status="rejected",t.reason=e,t}function F(e){return"status"in e}function C(e){return F(e)||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}var A=a(30234),T=a(20906),S=a(57236),O=a(87613),N=a(5762),k=a(45637),I=a(35892),$=a(73767),j=a(21777),B=a(32710),R=a(51360),V=a(50492),P=a(21461),L=a(86563),M=a(31507),U=a(37396),q=a(44214);function G(e,t){return z(e,t)}function z(e,t,a){if(void 0===a&&(a=new Map),a.has(e))return a.get(e);var i=!1;if(Array.isArray(e)){var n=[];if(a.set(e,n),e.forEach(function(e,r){var o=z(e,t,a);i||(i=o!==e),n[r]=o}),i)return n}else if((0,j.Q)(e)){var r=Object.create(Object.getPrototypeOf(e));if(a.set(e,r),Object.keys(e).forEach(function(n){if(n===t){i=!0;return}var o=z(e[n],t,a);i||(i=o!==e[n]),r[n]=o}),i)return r}return e}function Y(e){return z(e,"__typename")}var Q=a(45078),J=a(555)},45637(e,t,a){a.d(t,{E:()=>p});var i=a(85608),n=a(36054),r=a(87613),o=a(35892);function s(e){return e&&"function"==typeof e.then}var p=function(e){function t(t){var a=e.call(this,function(e){return a.addObserver(e),function(){return a.removeObserver(e)}})||this;return a.observers=new Set,a.promise=new Promise(function(e,t){a.resolve=e,a.reject=t}),a.handlers={next:function(e){null!==a.sub&&(a.latest=["next",e],a.notify("next",e),(0,r.w)(a.observers,"next",e))},error:function(e){var t=a.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),a.sub=null,a.latest=["error",e],a.reject(e),a.notify("error",e),(0,r.w)(a.observers,"error",e))},complete:function(){var e=a.sub,t=a.sources;if(null!==e){var i=(void 0===t?[]:t).shift();i?s(i)?i.then(function(e){return a.sub=e.subscribe(a.handlers)},a.handlers.error):a.sub=i.subscribe(a.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),a.sub=null,a.latest&&"next"===a.latest[0]?a.resolve(a.latest[1]):a.resolve(),a.notify("complete"),(0,r.w)(a.observers,"complete"))}}},a.nextResultListeners=new Set,a.cancel=function(e){a.reject(e),a.sources=[],a.handlers.error(e)},a.promise.catch(function(e){}),"function"==typeof t&&(t=[new n.c(t)]),s(t)?t.then(function(e){return a.start(e)},a.handlers.error):a.start(t),a}return(0,i.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],a=e[t];a&&a.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var a=this.nextResultListeners;a.size&&(this.nextResultListeners=new Set,a.forEach(function(a){return a(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(a,i){t||(t=!0,e(a,i))})},t}(n.c);(0,o.r)(p)},5762(e,t,a){a.d(t,{x:()=>n});var i=a(36054);function n(e,t,a){return new i.c(function(i){var n={then:function(e){return new Promise(function(t){return t(e())})}};function r(e,t){return function(a){if(e){var r=function(){return i.closed?0:e(a)};n=n.then(r,r).then(function(e){return i.next(e)},function(e){return i.error(e)})}else i[t](a)}}var o={next:r(t,"next"),error:r(a,"error"),complete:function(){n.then(function(){return i.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}},87613(e,t,a){a.d(t,{w:()=>i});function i(e,t,a){var i=[];e.forEach(function(e){return e[t]&&i.push(e)}),i.forEach(function(e){return e[t](a)})}},35892(e,t,a){a.d(t,{r:()=>r});var i=a(36054),n=a(51360);function r(e){function t(t){Object.defineProperty(e,t,{value:i.c})}return n.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},30234(e,t,a){a.d(t,{X:()=>i});function i(e){return e.catch(function(){}),e}},73972(e,t,a){a.d(t,{r:()=>i});var i="3.13.8"},88958(e,t,i){let n;i.d(t,{kv:()=>ef,lJ:()=>eN,hF:()=>eI});let r=(e,t=[])=>"up"===e.name||t.includes("vim")&&"k"===e.name||t.includes("emacs")&&e.ctrl&&"p"===e.name,o=(e,t=[])=>"down"===e.name||t.includes("vim")&&"j"===e.name||t.includes("emacs")&&e.ctrl&&"n"===e.name,s=e=>"enter"===e.name||"return"===e.name;class p extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}}class l extends Error{name="CancelPromptError";message="Prompt was canceled"}class d extends Error{name="ExitPromptError"}class u extends Error{name="HookError"}class c extends Error{name="ValidationError"}let m=a("node:async_hooks"),f=new m.AsyncLocalStorage;function h(){let e=f.getStore();if(!e)throw new u("[Inquirer] Hook functions can only be called from within a prompt");return e}function v(e){return m.AsyncResource.bind((...t)=>{let a=h(),i=!1,n=a.handleChange;a.handleChange=()=>{i=!0};let r=e(...t);return i&&n(),a.handleChange=n,r})}function g(e){let t=h(),{index:a}=t,i=e({get:()=>t.hooks[a],set(e){t.hooks[a]=e},initialized:a in t.hooks});return t.index++,i}let y={queue(e){let t=h(),{index:a}=t;t.hooksEffect.push(()=>{t.hooksCleanup[a]?.();let i=e(h().rl);if(null!=i&&"function"!=typeof i)throw new c("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[a]=i})},run(){let e=h();v(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=h();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function D(e){return g(t=>{let a=m.AsyncResource.bind(function(e){t.get()!==e&&(t.set(e),h().handleChange())});if(t.initialized)return[t.get(),a];let i="function"==typeof e?e():e;return t.set(i),[i,a]})}function b(e,t){g(a=>{let i=a.get();(!Array.isArray(i)||t.some((e,t)=>!Object.is(e,i[t])))&&y.queue(e),a.set(t)})}var x=i(57504),_=i(1708);let w={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},E={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},F={...w,...E},C={...w,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},A=("win32"!==_.platform?"linux"===_.env.TERM:!_.env.WT_SESSION&&!_.env.TERMINUS_SUBLIME&&"{cmd::Cmder}"!==_.env.ConEmuTask&&"Terminus-Sublime"!==_.env.TERM_PROGRAM&&"vscode"!==_.env.TERM_PROGRAM&&"xterm-256color"!==_.env.TERM&&"alacritty"!==_.env.TERM&&"JetBrains-JediTerm"!==_.env.TERMINAL_EMULATOR)?C:F;Object.entries(E);let T={prefix:{idle:x.blue("?"),done:x.green(A.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map(e=>x.yellow(e))},style:{answer:x.cyan,message:x.bold,error:e=>x.red(`> ${e}`),defaultAnswer:e=>x.dim(`(${e})`),help:x.dim,highlight:x.cyan,key:e=>x.cyan(x.bold(`<${e}>`))}};function S(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function O(...e){return function e(...t){let a={};for(let i of t)for(let[t,n]of Object.entries(i)){let i=a[t];a[t]=S(i)&&S(n)?e(i,n):n}return a}(T,...e.filter(e=>null!=e))}function N({status:e="idle",theme:t}){let[a,i]=D(!1),[n,r]=D(0),{prefix:o,spinner:s}=O(t);if(b(()=>{if("loading"===e){let e,t=-1,a=setTimeout(()=>{i(!0),e=setInterval(()=>{r((t+=1)%s.frames.length)},s.interval)},300);return()=>{clearTimeout(a),clearInterval(e)}}i(!1)},[e]),a)return s.frames[n];let p="loading"===e?"idle":e;return"string"==typeof o?o:o[p]??o.idle}function k(e,t){return g(a=>{let i=a.get();if(!i||i.dependencies.length!==t.length||i.dependencies.some((e,a)=>e!==t[a])){let i=e();return a.set({value:i,dependencies:t}),i}return i.value})}function I(e){return D({current:e})[0]}function $(e){let t=I(e);t.current=e,b(e=>{let a=!1,i=v((i,n)=>{a||t.current(n,e)});return e.input.on("keypress",i),()=>{a=!0,e.input.removeListener("keypress",i)}},[])}var j=i(74),B=i(61893);function R(e,t){return e.split("\n").flatMap(e=>B(e,t,{trim:!1,hard:!0}).split("\n").map(e=>e.trimEnd())).join("\n")}function V(){return j({defaultWidth:80,output:h().rl.output})}function P({items:e,active:t,renderItem:a,pageSize:i,loop:n=!0}){let r=V(),o=t=>(t%e.length+e.length)%e.length,s=e.map((e,i)=>null==e?[]:R(a({item:e,index:i,isActive:i===t}),r).split("\n")),p=s.reduce((e,t)=>e+t.length,0),l=e=>s[e]??[],d=function({active:e,renderedItems:t,pageSize:a,loop:i}){let n=I({lastPointer:e,lastActive:void 0}),{lastPointer:r,lastActive:o}=n.current,s=Math.floor(a/2),p=t.reduce((e,t)=>e+t.length,0),l=t.slice(0,e).reduce((e,t)=>e+t.length,0),d=l;if(p>a)if(i)d=r,null!=o&&o<e&&e-o<a&&(d=Math.min(s,1===Math.abs(e-o)?Math.min(r+(t[o]?.length??0),Math.max(l,r)):r+e-o));else{let i=t.slice(e).reduce((e,t)=>e+t.length,0);d=i<a-s?a-i:Math.min(l,s)}return n.current.lastPointer=d,n.current.lastActive=e,d}({active:t,renderedItems:s,pageSize:i,loop:n}),u=l(t).slice(0,i),c=d+u.length<=i?d:i-u.length,m=Array.from({length:i});m.splice(c,u.length,...u);let f=new Set([t]),h=c+u.length,v=o(t+1);for(;h<i&&!f.has(v)&&(n&&p>i?v!==t:v>t);){let e=l(v).slice(0,i-h);m.splice(h,e.length,...e),f.add(v),h+=e.length,v=o(v+1)}for(h=c-1,v=o(t-1);h>=0&&!f.has(v)&&(n&&p>i?v!==t:v<t);){let e=l(v),t=e.slice(Math.max(0,e.length-h-1));m.splice(h-t.length+1,t.length,...t),f.add(v),h-=t.length,v=o(v-1)}return m.filter(e=>"string"==typeof e).join("\n")}let L=a("node:readline");var M=i(83329);let U=[];U.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&U.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&U.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");let q=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,G=Symbol.for("signal-exit emitter"),z=globalThis,Y=Object.defineProperty.bind(Object);class Q{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(z[G])return z[G];Y(z,G,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let a=this.listeners[e],i=a.indexOf(t);-1!==i&&(0===i&&1===a.length?a.length=0:a.splice(i,1))}emit(e,t,a){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(let n of this.listeners[e])i=!0===n(t,a)||i;return"exit"===e&&(i=this.emit("afterExit",t,a)||i),i}}class J{}class W extends J{#i="win32"===H.platform?"SIGINT":"SIGHUP";#n=new Q;#r;#o;#s;#p={};#l=!1;constructor(e){for(let t of(super(),this.#r=e,this.#p={},U))this.#p[t]=()=>{let a=this.#r.listeners(t),{count:i}=this.#n;if("object"==typeof e.__signal_exit_emitter__&&"number"==typeof e.__signal_exit_emitter__.count&&(i+=e.__signal_exit_emitter__.count),a.length===i){this.unload();let a=this.#n.emit("exit",null,t),i="SIGHUP"===t?this.#i:t;a||e.kill(e.pid,i)}};this.#s=e.reallyExit,this.#o=e.emit}onExit(e,t){if(!q(this.#r))return()=>{};!1===this.#l&&this.load();let a=t?.alwaysLast?"afterExit":"exit";return this.#n.on(a,e),()=>{this.#n.removeListener(a,e),0===this.#n.listeners.exit.length&&0===this.#n.listeners.afterExit.length&&this.unload()}}load(){if(!this.#l){for(let e of(this.#l=!0,this.#n.count+=1,U))try{let t=this.#p[e];t&&this.#r.on(e,t)}catch(e){}this.#r.emit=(e,...t)=>this.#d(e,...t),this.#r.reallyExit=e=>this.#u(e)}}unload(){this.#l&&(this.#l=!1,U.forEach(e=>{let t=this.#p[e];if(!t)throw Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)}catch(e){}}),this.#r.emit=this.#o,this.#r.reallyExit=this.#s,this.#n.count-=1)}#u(e){return q(this.#r)?(this.#r.exitCode=e||0,this.#n.emit("exit",this.#r.exitCode,null),this.#s.call(this.#r,this.#r.exitCode)):0}#d(e,...t){let a=this.#o;if(!("exit"===e&&q(this.#r)))return a.call(this.#r,e,...t);{"number"==typeof t[0]&&(this.#r.exitCode=t[0]);let i=a.call(this.#r,e,...t);return this.#n.emit("exit",this.#r.exitCode,null),i}}}let H=globalThis.process,{onExit:K,load:X,unload:Z}=(n=q(H)?new W(H):new class extends J{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>n.onExit(e,t),load:()=>n.load(),unload:()=>n.unload()});var ee=i(57975);let et=(e=1)=>e>0?`\u001B[${e}A`:"",ea=(e=1)=>e>0?`\u001B[${e}B`:"",ei=(e,t)=>"number"!=typeof t||Number.isNaN(t)?`\u001B[${e+1}G`:`\u001B[${t+1};${e+1}H`,en="\x1b[2K",er=e=>e>0?(en+et(1)).repeat(e-1)+en+"\x1b[G":"";class eo{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=""){let a=e.split("\n").pop()??"",i=(0,ee.stripVTControlCharacters)(a),n=i;this.rl.line.length>0&&(n=n.slice(0,-this.rl.line.length)),this.rl.setPrompt(n),this.cursorPos=this.rl.getCursorPos();let r=V();e=R(e,r),t=R(t,r),i.length%r==0&&(e+="\n");let o=e+(t?"\n"+t:""),s=Math.floor(i.length/r)-this.cursorPos.rows+(t?t.split("\n").length:0);s>0&&(o+=et(s)),o+=ei(this.cursorPos.cols),this.write(ea(this.extraLinesUnderPrompt)+er(this.height)+o),this.extraLinesUnderPrompt=s,this.height=o.split("\n").length}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(ei(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt("");let t=ea(this.extraLinesUnderPrompt);t+=e?er(this.height):"\n",t+="\x1b[?25h",this.write(t),this.rl.close()}}class es extends Promise{static withResolver(){let e,t;return{promise:new Promise((a,i)=>{e=a,t=i}),resolve:e,reject:t}}}function ep(e){let t=function(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(e,a)=>{let i=a.slice(1);return t=i,i},Error().stack}catch{return t}return Error.prepareStackTrace=e,t}();return(a,i={})=>{let{input:n=process.stdin,signal:r}=i,o=new Set,s=new M;s.pipe(i.output??process.stdout);let u=L.createInterface({terminal:!0,input:n,output:s}),c=new eo(u),{promise:h,resolve:v,reject:g}=es.withResolver(),D=()=>g(new l);if(r){let e=()=>g(new p({cause:r.reason}));if(r.aborted)return e(),Object.assign(h,{cancel:D});r.addEventListener("abort",e),o.add(()=>r.removeEventListener("abort",e))}o.add(K((e,t)=>{g(new d(`User force closed the prompt with ${e} ${t}`))}));let b=()=>g(new d("User force closed the prompt with SIGINT"));u.on("SIGINT",b),o.add(()=>u.removeListener("SIGINT",b));let x=()=>c.checkCursorPos();u.input.on("keypress",x),o.add(()=>u.input.removeListener("keypress",x));let _={rl:u,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}};return f.run(_,()=>{var n;let r;return n=function(e){_.handleChange=()=>{_.index=0,e()},_.handleChange()},r=m.AsyncResource.bind(()=>y.clearAll()),u.on("close",r),o.add(()=>u.removeListener("close",r)),n(()=>{try{let i=e(a,e=>{setImmediate(()=>v(e))});if(void 0===i){let e=t[1]?.getFileName();throw Error(`Prompt functions must return a string.
|
|
19
|
+
at ${e}`)}let[n,r]="string"==typeof i?[i]:i;c.render(n,r),y.run()}catch(e){g(e)}}),Object.assign(h.then(e=>(y.clearAll(),e),e=>{throw y.clearAll(),e}).finally(()=>{o.forEach(e=>e()),c.done({clearContent:!!i.clearPromptOnDone}),s.end()}).then(()=>h),{cancel:D})})}}class el{separator=x.dim(Array.from({length:15}).join(A.line));type="separator";constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&"object"==typeof e&&"type"in e&&"separator"===e.type)}}let ed={icon:{checked:x.green(A.circleFilled),unchecked:A.circle,cursor:A.pointer},style:{disabledChoice:e=>x.dim(`- ${e}`),renderSelectedChoices:e=>e.map(e=>e.short).join(", "),description:e=>x.cyan(e),keysHelpTip:e=>e.map(([e,t])=>`${x.bold(e)} ${x.dim(t)}`).join(x.dim(" • "))},helpMode:"always",keybindings:[]};function eu(e){return!el.isSeparator(e)&&!e.disabled}function ec(e){return eu(e)&&e.checked}function em(e){return eu(e)?{...e,checked:!e.checked}:e}let ef=ep((e,t)=>{let a,i,{instructions:n,pageSize:p=7,loop:l=!0,required:d,validate:u=()=>!0}=e,m={all:"a",invert:"i",...e.shortcuts},f=O(ed,e.theme),{keybindings:h}=f,[v,g]=D("idle"),y=N({status:v,theme:f}),[b,x]=D(e.choices.map(e=>{if(el.isSeparator(e))return e;if("string"==typeof e)return{value:e,name:e,short:e,checkedName:e,disabled:!1,checked:!1};let t=e.name??String(e.value),a={value:e.value,name:t,short:e.short??t,checkedName:e.checkedName??t,disabled:e.disabled??!1,checked:e.checked??!1};return e.description&&(a.description=e.description),a})),_=k(()=>{let e=b.findIndex(eu),t=b.findLastIndex(eu);if(-1===e)throw new c("[checkbox prompt] No selectable choices. All choices are disabled.");return{first:e,last:t}},[b]),[w,E]=D(_.first),[F,C]=D();$(async e=>{if(s(e)){let e=b.filter(ec),a=await u([...e]);d&&!b.some(ec)?C("At least one choice must be selected"):!0===a?(g("done"),t(e.map(e=>e.value))):C(a||"You must select a valid value")}else if(r(e,h)||o(e,h)){if(l||r(e,h)&&w!==_.first||o(e,h)&&w!==_.last){let t=r(e,h)?-1:1,a=w;do a=(a+t+b.length)%b.length;while(!eu(b[a]));E(a)}}else if("space"===e.name)C(void 0),x(b.map((e,t)=>t===w?em(e):e));else if(e.name===m.all){let e=b.some(e=>eu(e)&&!e.checked);x(b.map(function(t){return eu(t)?{...t,checked:e}:t}))}else if(e.name===m.invert)x(b.map(em));else if("1234567890".includes(e.name)){let t=Number(e.name)-1,a=-1,i=b.findIndex(e=>!el.isSeparator(e)&&++a===t),n=b[i];n&&eu(n)&&(E(i),x(b.map((e,t)=>t===i?em(e):e)))}});let A=f.style.message(e.message,v),T=P({items:b,active:w,renderItem({item:e,isActive:t}){if(el.isSeparator(e))return` ${e.separator}`;if(e.disabled){let t="string"==typeof e.disabled?e.disabled:"(disabled)";return f.style.disabledChoice(`${e.name} ${t}`)}t&&(a=e.description);let i=e.checked?f.icon.checked:f.icon.unchecked,n=e.checked?e.checkedName:e.name,r=t?f.style.highlight:e=>e,o=t?f.icon.cursor:" ";return r(`${o}${i} ${n}`)},pageSize:p,loop:l});if("done"===v){let e=b.filter(ec);return[y,A,f.style.answer(f.style.renderSelectedChoices(e,b))].filter(Boolean).join(" ")}if("never"!==f.helpMode&&!1!==n)if("string"==typeof n)i=n;else{let e=[["↑↓","navigate"],["space","select"]];m.all&&e.push([m.all,"all"]),m.invert&&e.push([m.invert,"invert"]),e.push(["⏎","submit"]),i=f.style.keysHelpTip(e)}let S=[[y,A].filter(Boolean).join(" "),T," ",a?f.style.description(a):"",F?f.style.error(F):"",i].filter(Boolean).join("\n").trimEnd();return`${S}\u001b[?25l`});var eh=i(68023),ev=i(35317),eg=i(79896),ey=i(76760),eD=i(48161),eb=i(77598),ex=i(65679);class e_ extends Error{originalError;constructor(e){super(`Failed to create temporary file. ${e.message}`),this.originalError=e}}class ew extends Error{originalError;constructor(e){super(`Failed to launch editor. ${e.message}`),this.originalError=e}}class eE extends Error{originalError;constructor(e){super(`Failed to read temporary file. ${e.message}`),this.originalError=e}}class eF extends Error{originalError;constructor(e){super(`Failed to remove temporary file. ${e.message}`),this.originalError=e}}function eC(e){return e?e.replace(/[^a-zA-Z0-9_.-]/g,"_"):""}class eA{text="";tempFile;editor;lastExitStatus=0;fileOptions={};get temp_file(){return console.log("DEPRECATED: temp_file. Use tempFile moving forward."),this.tempFile}get last_exit_status(){return console.log("DEPRECATED: last_exit_status. Use lastExitStatus moving forward."),this.lastExitStatus}constructor(e="",t){this.text=e,t&&(this.fileOptions=t),this.determineEditor(),this.createTemporaryFile()}run(){return this.launchEditor(),this.readTemporaryFile(),this.text}runAsync(e){try{this.launchEditorAsync(()=>{try{this.readTemporaryFile(),setImmediate(e,void 0,this.text)}catch(t){setImmediate(e,t,void 0)}})}catch(t){setImmediate(e,t,void 0)}}cleanup(){this.removeTemporaryFile()}determineEditor(){let e=(function(e){let t=[],a="";for(let i=0;i<e.length;i++){let n=e.charAt(i);i>0&&" "===n&&"\\"!==e[i-1]&&a.length>0?(t.push(a),a=""):a=`${a}${n}`}return a.length>0&&t.push(a),t})(process.env.VISUAL?process.env.VISUAL:process.env.EDITOR?process.env.EDITOR:process.platform.startsWith("win")?"notepad":"vim").map(e=>e.replace("\\ "," ")),t=e.shift();this.editor={args:e,bin:t}}createTemporaryFile(){try{let e=this.fileOptions.dir??eD.tmpdir(),t=(0,eb.randomUUID)(),a=eC(this.fileOptions.prefix),i=eC(this.fileOptions.postfix),n=`${a}${t}${i}`,r=ey.resolve(e,n),o=ey.resolve(e)+ey.sep;if(!r.startsWith(o))throw Error("Resolved temporary file escaped the base directory");this.tempFile=r;let s={encoding:"utf8",flag:"wx"};Object.prototype.hasOwnProperty.call(this.fileOptions,"mode")&&(s.mode=this.fileOptions.mode),(0,eg.writeFileSync)(this.tempFile,this.text,s)}catch(e){throw new e_(e)}}readTemporaryFile(){try{let e=(0,eg.readFileSync)(this.tempFile);if(0===e.length)this.text="";else{let t=(0,eh.detect)(e)??"utf8";ex.encodingExists(t)||(t="utf8"),this.text=ex.decode(e,t)}}catch(e){throw new eE(e)}}removeTemporaryFile(){try{(0,eg.unlinkSync)(this.tempFile)}catch(e){throw new eF(e)}}launchEditor(){try{let e=(0,ev.spawnSync)(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"});this.lastExitStatus=e.status??0}catch(e){throw new ew(e)}}launchEditorAsync(e){try{(0,ev.spawn)(this.editor.bin,this.editor.args.concat([this.tempFile]),{stdio:"inherit"}).on("exit",t=>{this.lastExitStatus=t,setImmediate(e)})}catch(e){throw new ew(e)}}}let eT={validationFailureMode:"keep"};function eS(e,t){let a=!1!==t;return/^(y|yes)/i.test(e)?a=!0:/^(n|no)/i.test(e)&&(a=!1),a}function eO(e){return e?"Yes":"No"}ep((e,t)=>{let{waitForUserInput:a=!0,file:{postfix:i=e.postfix??".txt",...n}={},validate:r=()=>!0}=e,o=O(eT,e.theme),[p,l]=D("idle"),[d="",u]=D(e.default),[c,m]=D(),f=N({status:p,theme:o});function h(a){a.pause();let s=async(i,n)=>{if(a.resume(),i)m(i.toString());else{l("loading");let a=n??"",i=await r(a);!0===i?(m(void 0),l("done"),t(a)):("clear"===o.validationFailureMode?u(e.default):u(a),m(i||"You must provide a valid value"),l("idle"))}};!function(e="",t,a){let i=new eA(e,a);i.runAsync((e,a)=>{if(e)setImmediate(t,e,void 0);else try{i.cleanup(),setImmediate(t,void 0,a)}catch(e){setImmediate(t,e,void 0)}})}(d,(e,t)=>void s(e,t),{postfix:i,...n})}b(e=>{a||h(e)},[]),$((e,t)=>{"idle"===p&&s(e)&&h(t)});let v=o.style.message(e.message,p),g="";if("loading"===p)g=o.style.help("Received");else if("idle"===p){let e=o.style.key("enter");g=o.style.help(`Press ${e} to launch your preferred editor.`)}let y="";return c&&(y=o.style.error(c)),[[f,v,g].filter(Boolean).join(" "),y]});let eN=ep((e,t)=>{let{transformer:a=eO}=e,[i,n]=D("idle"),[r,o]=D(""),p=O(e.theme),l=N({status:i,theme:p});$((p,l)=>{if("idle"===i)if(s(p)){let i=eS(r,e.default);o(a(i)),n("done"),t(i)}else if("tab"===p.name){let t=eO(!eS(r,e.default));l.clearLine(0),l.write(t),o(t)}else o(l.line)});let d=r,u="";"done"===i?d=p.style.answer(r):u=` ${p.style.defaultAnswer(!1===e.default?"y/N":"Y/n")}`;let c=p.style.message(e.message,i);return`${l} ${c}${u} ${d}`}),ek={validationFailureMode:"keep"},eI=ep((e,t)=>{let a,{prefill:i="tab"}=e,n=O(ek,e.theme),[r,o]=D("idle"),[p="",l]=D(e.default),[d,u]=D(),[c,m]=D(""),f=N({status:r,theme:n});async function h(t){let{required:a,pattern:i,patternError:n="Invalid input"}=e;return a&&!t?"You must provide a value":i&&!i.test(t)?n:"function"!=typeof e.validate||await e.validate(t)||"You must provide a valid value"}$(async(e,a)=>{if("idle"===r)if(s(e)){let e=c||p;o("loading");let i=await h(e);!0===i?(m(e),o("done"),t(e)):("clear"===n.validationFailureMode?m(""):a.write(c),u(i),o("idle"))}else"backspace"!==e.name||c?"tab"!==e.name||c?(m(a.line),u(void 0)):(l(void 0),a.clearLine(0),a.write(p),m(p)):l(void 0)}),b(e=>{"editable"===i&&p&&(e.write(p),m(p))},[]);let v=n.style.message(e.message,r),g=c;"function"==typeof e.transformer?g=e.transformer(c,{isFinal:"done"===r}):"done"===r&&(g=n.style.answer(c)),p&&"done"!==r&&!c&&(a=n.style.defaultAnswer(p));let y="";return d&&(y=n.style.error(d)),[[f,v,a,g].filter(e=>void 0!==e).join(" "),y]});function e$(e,{min:t,max:a,step:i}){return!(null==e||Number.isNaN(e))&&(e<t||e>a?`Value must be between ${t} and ${a}`:"any"===i||(1e6*e-(Number.isFinite(t)?1e6*t:0))%(1e6*i)==0||`Value must be a multiple of ${i}${Number.isFinite(t)?` starting from ${t}`:""}`)}ep((e,t)=>{let a,{validate:i=()=>!0,min:n=-1/0,max:r=1/0,step:o=1,required:p=!1}=e,l=O(e.theme),[d,u]=D("idle"),[c,m]=D(""),[f="",h]=D(!0===e$(e.default,{min:n,max:r,step:o})?e.default?.toString():void 0),[v,g]=D(),y=N({status:d,theme:l});$(async(e,a)=>{if("idle"===d)if(s(e)){let e=c||f,s=""===e?void 0:Number(e);u("loading");let l=!0;(p||null!=s)&&(l=e$(s,{min:n,max:r,step:o})),!0===l&&(l=await i(s)),!0===l?(m(String(s??"")),u("done"),t(s)):(a.write(c),g(l||"You must provide a valid numeric value"),u("idle"))}else"backspace"!==e.name||c?"tab"!==e.name||c?(m(a.line),g(void 0)):(h(void 0),a.clearLine(0),a.write(f),m(f)):h(void 0)});let b=l.style.message(e.message,d),x=c;"done"===d&&(x=l.style.answer(c)),f&&"done"!==d&&!c&&(a=l.style.defaultAnswer(f));let _="";return v&&(_=l.style.error(v)),[[y,b,a,x].filter(e=>void 0!==e).join(" "),_]});let ej={key:"h",name:"Help, list all options",value:void 0};ep((e,t)=>{let{default:a="h"}=e,i=k(()=>e.choices.map(e=>{if(el.isSeparator(e))return e;let t="name"in e?e.name:String(e.value);return{value:"value"in e?e.value:t,name:t,key:e.key.toLowerCase()}}),[e.choices]),[n,r]=D("idle"),[o,p]=D(""),[l,d]=D(e.expanded??!1),[u,c]=D(),m=O(e.theme),f=N({theme:m,status:n});$((e,n)=>{if(s(e)){let e=(o||a).toLowerCase();if("h"!==e||l){let a=i.find(t=>!el.isSeparator(t)&&t.key===e);a?(r("done"),p(e),t(a.value)):""===o?c("Please input a value"):c(`"${x.red(o)}" isn't an available option`)}else d(!0)}else p(n.line),c(void 0)});let h=m.style.message(e.message,n);if("done"===n){let e=i.find(e=>!el.isSeparator(e)&&e.key===o.toLowerCase());return`${f} ${h} ${m.style.answer(e.name)}`}let v=l?i:[...i,ej],g="",y=v.map(e=>el.isSeparator(e)?"":e.key===a?e.key.toUpperCase():e.key).join("");y=` ${m.style.defaultAnswer(y)}`,l&&(y="",g=v.map(e=>{if(el.isSeparator(e))return` ${e.separator}`;let t=` ${e.key}) ${e.name}`;return e.key===o.toLowerCase()?m.style.highlight(t):t}).join("\n"));let b="",_=i.find(e=>!el.isSeparator(e)&&e.key===o.toLowerCase());_&&(b=`${x.cyan(">>")} ${_.name}`);let w="";return u&&(w=m.style.error(u)),[`${f} ${h}${y} ${o}`,[g,b,w].filter(Boolean).join("\n")]});let eB=/\d+/;function eR(e){return null!=e&&!el.isSeparator(e)}function eV(e,t){let a,i=t.filter(eR);return!(a=i.find(t=>t.key===e))&&eB.test(e)&&(a=i[Number.parseInt(e,10)-1]),a?[a,t.indexOf(a)]:[void 0,void 0]}ep((e,t)=>{let{loop:a=!0}=e,i=k(()=>{var t;let a;return t=e.choices,a=0,t.map(e=>{if(el.isSeparator(e))return e;if(a+=1,"string"==typeof e)return{value:e,name:e,short:e,key:String(a)};let t=e.name??String(e.value);return{value:e.value,name:t,short:e.short??t,key:e.key??String(a)}})},[e.choices]),[n,p]=D("idle"),[l,d]=D(""),[u,m]=D(),f=O(e.theme),h=N({status:n,theme:f}),v=k(()=>{let e=i.findIndex(eR),t=i.findLastIndex(eR);if(-1===e)throw new c("[select prompt] No selectable choices. All choices are disabled.");return{first:e,last:t}},[i]);$((e,n)=>{if(s(e)){let[e]=eV(l,i);eR(e)?(d(e.short),p("done"),t(e.value)):""===l?m("Please input a value"):m(`"${x.red(l)}" isn't an available option`)}else if(r(e)||o(e)){n.clearLine(0);let[t,s]=eV(l,i);if(t){if(a||r(e)&&s!==v.first||o(e)&&s!==v.last){let t=r(e)?-1:1,a=s;do a=(a+t+i.length)%i.length;while(!eR(i[a]));d(i[a].key)}}else d((o(e)?i.find(eR):i.findLast(eR)).key)}else d(n.line),m(void 0)});let g=f.style.message(e.message,n);if("done"===n)return`${h} ${g} ${f.style.answer(l)}`;let y=i.map(e=>{if(el.isSeparator(e))return` ${e.separator}`;let t=` ${e.key}) ${e.name}`;return e.key===l.toLowerCase()?f.style.highlight(t):t}).join("\n"),b="";return u&&(b=f.style.error(u)),[`${h} ${g} ${l}`,[y,b].filter(Boolean).join("\n")]}),ep((e,t)=>{let a,{validate:i=()=>!0}=e,n=O(e.theme),[r,o]=D("idle"),[p,l]=D(),[d,u]=D(""),c=N({status:r,theme:n});$(async(e,a)=>{if("idle"===r)if(s(e)){o("loading");let e=await i(d);!0===e?(u(d),o("done"),t(d)):(a.write(d),l(e||"You must provide a valid value"),o("idle"))}else u(a.line),l(void 0)});let m=n.style.message(e.message,r),f="";e.mask?f=("string"==typeof e.mask?e.mask:"*").repeat(d.length):"done"!==r&&(a=`${n.style.help("[input is masked]")}\u001b[?25l`),"done"===r&&(f=n.style.answer(f));let h="";return p&&(h=n.style.error(p)),[[c,m,e.mask?f:a].join(" "),h]});let eP={icon:{cursor:A.pointer},style:{disabled:e=>x.dim(`- ${e}`),searchTerm:e=>x.cyan(e),description:e=>x.cyan(e),keysHelpTip:e=>e.map(([e,t])=>`${x.bold(e)} ${x.dim(t)}`).join(x.dim(" • "))},helpMode:"always"};function eL(e){return!el.isSeparator(e)&&!e.disabled}ep((e,t)=>{let a,i,n,{pageSize:p=7,validate:l=()=>!0}=e,d=O(eP,e.theme),[u,c]=D("loading"),[m,f]=D(""),[h,v]=D([]),[g,y]=D(),x=N({status:u,theme:d}),_=k(()=>({first:h.findIndex(eL),last:h.findLastIndex(eL)}),[h]),[w=_.first,E]=D();b(()=>{let t=new AbortController;return c("loading"),y(void 0),(async()=>{try{let a=await e.source(m||void 0,{signal:t.signal});t.signal.aborted||(E(void 0),y(void 0),v(a.map(e=>{if(el.isSeparator(e))return e;if("string"==typeof e)return{value:e,name:e,short:e,disabled:!1};let t=e.name??String(e.value),a={value:e.value,name:t,short:e.short??t,disabled:e.disabled??!1};return e.description&&(a.description=e.description),a})),c("idle"))}catch(e){!t.signal.aborted&&e instanceof Error&&y(e.message)}})(),()=>{t.abort()}},[m]);let F=h[w];$(async(e,a)=>{if(s(e))if(F){c("loading");let e=await l(F.value);c("idle"),!0===e?(c("done"),t(F.value)):F.name===m?y(e||"You must provide a valid value"):(a.write(F.name),f(F.name))}else a.write(m);else if("tab"===e.name&&F)a.clearLine(0),a.write(F.name),f(F.name);else if("loading"!==u&&(r(e)||o(e))){if(a.clearLine(0),r(e)&&w!==_.first||o(e)&&w!==_.last){let t=r(e)?-1:1,a=w;do a=(a+t+h.length)%h.length;while(!eL(h[a]));E(a)}}else f(a.line)});let C=d.style.message(e.message,u);if("never"!==d.helpMode)if(e.instructions){let{pager:t,navigation:i}=e.instructions;a=d.style.help(h.length>p?t:i)}else a=d.style.keysHelpTip([["↑↓","navigate"],["⏎","select"]]);let A=P({items:h,active:w,renderItem({item:e,isActive:t}){if(el.isSeparator(e))return` ${e.separator}`;if(e.disabled){let t="string"==typeof e.disabled?e.disabled:"(disabled)";return d.style.disabled(`${e.name} ${t}`)}let a=t?d.style.highlight:e=>e,i=t?d.icon.cursor:" ";return a(`${i} ${e.name}`)},pageSize:p,loop:!1});if(g?i=d.style.error(g):0===h.length&&""!==m&&"idle"===u&&(i=d.style.error("No results found")),"done"===u&&F)return[x,C,d.style.answer(F.short)].filter(Boolean).join(" ").trimEnd();n=d.style.searchTerm(m);let T=F?.description;return[[x,C,n].filter(Boolean).join(" ").trimEnd(),[i??A," ",T?d.style.description(T):"",a].filter(Boolean).join("\n").trimEnd()]});let eM={icon:{cursor:A.pointer},style:{disabled:e=>x.dim(`- ${e}`),description:e=>x.cyan(e),keysHelpTip:e=>e.map(([e,t])=>`${x.bold(e)} ${x.dim(t)}`).join(x.dim(" • "))},helpMode:"always",indexMode:"hidden",keybindings:[]};function eU(e){return!el.isSeparator(e)&&!e.disabled}ep((e,t)=>{let a,{loop:i=!0,pageSize:n=7}=e,p=O(eM,e.theme),{keybindings:l}=p,[d,u]=D("idle"),m=N({status:d,theme:p}),f=I(),h=!l.includes("vim"),v=k(()=>e.choices.map(e=>{if(el.isSeparator(e))return e;if("string"==typeof e)return{value:e,name:e,short:e,disabled:!1};let t=e.name??String(e.value),a={value:e.value,name:t,short:e.short??t,disabled:e.disabled??!1};return e.description&&(a.description=e.description),a}),[e.choices]),g=k(()=>{let e=v.findIndex(eU),t=v.findLastIndex(eU);if(-1===e)throw new c("[select prompt] No selectable choices. All choices are disabled.");return{first:e,last:t}},[v]),y=k(()=>"default"in e?v.findIndex(t=>eU(t)&&t.value===e.default):-1,[e.default,v]),[x,_]=D(-1===y?g.first:y),w=v[x];$((e,a)=>{if(clearTimeout(f.current),s(e))u("done"),t(w.value);else if(r(e,l)||o(e,l)){if(a.clearLine(0),i||r(e,l)&&x!==g.first||o(e,l)&&x!==g.last){let t=r(e,l)?-1:1,a=x;do a=(a+t+v.length)%v.length;while(!eU(v[a]));_(a)}}else if("1234567890".includes(e.name)&&!Number.isNaN(Number(a.line))){let e=Number(a.line)-1,t=-1,i=v.findIndex(a=>!el.isSeparator(a)&&++t===e),n=v[i];null!=n&&eU(n)&&_(i),f.current=setTimeout(()=>{a.clearLine(0)},700)}else if("backspace"===e.name)a.clearLine(0);else if(h){let e=a.line.toLowerCase(),t=v.findIndex(t=>!el.isSeparator(t)&&!!eU(t)&&t.name.toLowerCase().startsWith(e));-1!==t&&_(t),f.current=setTimeout(()=>{a.clearLine(0)},700)}}),b(()=>()=>{clearTimeout(f.current)},[]);let E=p.style.message(e.message,d);if("never"!==p.helpMode)if(e.instructions){let{pager:t,navigation:i}=e.instructions;a=p.style.help(v.length>n?t:i)}else a=p.style.keysHelpTip([["↑↓","navigate"],["⏎","select"]]);let F=0,C=P({items:v,active:x,renderItem({item:e,isActive:t,index:a}){if(el.isSeparator(e))return F++,` ${e.separator}`;let i="number"===p.indexMode?`${a+1-F}. `:"";if(e.disabled){let t="string"==typeof e.disabled?e.disabled:"(disabled)";return p.style.disabled(`${i}${e.name} ${t}`)}let n=t?p.style.highlight:e=>e,r=t?p.icon.cursor:" ";return n(`${r} ${i}${e.name}`)},pageSize:n,loop:i});if("done"===d)return[m,E,p.style.answer(w.short)].filter(Boolean).join(" ");let{description:A}=w,T=[[m,E].filter(Boolean).join(" "),C," ",A?p.style.description(A):"",a].filter(Boolean).join("\n").trimEnd();return`${T}\u001b[?25l`})},31088(e,t,a){function i(){}a.d(t,{C:()=>n});class n{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:a}=t;a&&(a.older=e),e&&(e.newer=a),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=a)}return t}set(e,t){let a=this.getNode(e);return a?a.value=t:(a={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=a),this.newest=a,this.oldest=this.oldest||a,this.map.set(e,a),a.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},54019(e,t,a){function i(){}a.d(t,{l:()=>s});let n="u">typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},r="u">typeof WeakMap?WeakMap:Map,o="u">typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:i,unregister:i}};class s{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new r,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let a=t.key;delete t.key,t.keyRef=new n(a),this.registry.register(a,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new o(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:a}=t;a&&(a.older=e),e&&(e.newer=a),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=a)}return t}set(e,t){let a=this.getNode(e);return a?a.value=t:(a={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=a),this.newest=a,this.oldest=this.oldest||a,this.scheduleFinalization(a),this.map.set(e,a),this.size++,a.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},55888(e,t,a){a.r(t),a.d(t,{default:()=>p,equal:()=>s});let{toString:i,hasOwnProperty:n}=Object.prototype,r=Function.prototype.toString,o=new Map;function s(e,t){try{return function e(t,a){if(t===a)return!0;let o=i.call(t);if(o!==i.call(a))return!1;switch(o){case"[object Array]":if(t.length!==a.length)break;case"[object Object]":{if(c(t,a))return!0;let i=l(t),r=l(a),o=i.length;if(o!==r.length)return!1;for(let e=0;e<o;++e)if(!n.call(a,i[e]))return!1;for(let n=0;n<o;++n){let r=i[n];if(!e(t[r],a[r]))return!1}return!0}case"[object Error]":return t.name===a.name&&t.message===a.message;case"[object Number]":if(t!=t)return a!=a;case"[object Boolean]":case"[object Date]":return+t==+a;case"[object RegExp]":case"[object String]":return t==`${a}`;case"[object Map]":case"[object Set]":{if(t.size!==a.size)return!1;if(c(t,a))return!0;let i=t.entries(),n="[object Map]"===o;for(;;){let t=i.next();if(t.done)break;let[r,o]=t.value;if(!a.has(r)||n&&!e(o,a.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),a=new Uint8Array(a);case"[object DataView]":{let e=t.byteLength;if(e===a.byteLength)for(;e--&&t[e]===a[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var s,p;let e,i=r.call(t);if(i!==r.call(a))return!1;return s=i,p=u,!((e=s.length-p.length)>=0)||s.indexOf(p,e)!==e}}return!1}(e,t)}finally{o.clear()}}let p=s;function l(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}let u="{ [native code] }";function c(e,t){let a=o.get(e);if(a){if(a.has(t))return!0}else o.set(e,a=new Set);return a.add(t),!1}},44592(e,t,a){a.r(t),a.d(t,{Trie:()=>s});let i=()=>Object.create(null),{forEach:n,slice:r}=Array.prototype,{hasOwnProperty:o}=Object.prototype;class s{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return n.call(e,e=>t=t.getChildTrie(e)),o.call(t,"data")?t.data:t.data=this.makeData(r.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let a=0,i=e.length;t&&a<i;++a){let i=t.mapFor(e[a],!1);t=i&&i.get(e[a])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let a=e[0],i=this.mapFor(a,!1),n=i&&i.get(a);n&&(t=n.removeArray(r.call(e,1)),n.data||n.weak||n.strong&&n.strong.size||i.delete(a))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),a=t.get(e);return a||t.set(e,a=new s(this.weakness,this.makeData)),a}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},98247(e,t,a){a.d(t,{v:()=>D});var i,n,r,o=a(99436),s=a(35679),p=a(73284),l=a(30155),d=a(47988),u=a(92642),c=a(94979),m=a(16928),f=a(79896);function h(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(h=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var a=this.s.return;return void 0===a?Promise.resolve({value:e,done:!0}):t(a.apply(this.s,arguments))},throw:function(e){var a=this.s.return;return void 0===a?Promise.reject(e):t(a.apply(this.s,arguments))}},new h(e)}var v=()=>{var e=(0,d.getCurrentProfile)(),t=(0,d.getToken)(e);return t||(console.error(p.Ay.red("Not logged in. Use `bricks auth login` first.")),process.exit(1)),(0,u.W)((0,d.getActivityLogBaseUrl)(),t)},g=e=>new Date(e).toISOString().replace("T"," ").replace(/\.\d+Z$/,"Z"),y=(e,t)=>{if(!e)return"";var a="string"==typeof e?e:JSON.stringify(e);return a.length>t?a.slice(0,t-1)+"…":a},D=new s.uB("activity-log").alias("al").description("Activity log queries (read-only)");D.command("events").description("Query activity log events (all types)").requiredOption("--start-time <datetime>","Start time (ISO 8601 or relative: 1h, 30m, 2d)").option("--end-time <datetime>","End time (default: now)").option("--device <id>","Filter by device ID").option("--type <type>","Filter by event type: general, data, local_sync").option("--event-name <name>","Filter by event name").option("--subspace <id>","Filter by subspace ID").option("--sender <id>","Filter by sender").option("--limit <n>","Max events to display",parseInt).option("-j, --json","Output as JSON array").option("--jsonl","Output as JSONL (one JSON per line)").action((i=o(function*(e){var t=v(),a=(o=(0,c.p)(e.startTime),new Date(s=e.endTime?(0,c.p)(e.endTime):new Date().toISOString())-new Date(o)>2592e6&&(console.error(p.Ay.red("Time range must be 30 days or less")),process.exit(1)),d={start_time:o,end_time:s},e.device&&(d.device_id=e.device),e.type&&(d.event_type=e.type),e.eventName&&(d.event_name=e.eventName),e.subspace&&(d.subspace_id=e.subspace),e.sender&&(d.sender=e.sender),d);if(e.jsonl){var i=0;try{var n=!1,r=!1;try{for(var o,s,d,u,m,f=function(e){var t,a,i,n=2;for("u">typeof Symbol&&(a=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(a&&null!=(t=e[a]))return t.call(e);if(i&&null!=(t=e[i]))return new h(t.call(e));a="@@asyncIterator",i="@@iterator"}throw TypeError("Object is not async iterable")}(t.events(a));n=!(m=yield f.next()).done;n=!1){var D=m.value;if(console.log(JSON.stringify(D)),i++,e.limit&&i>=e.limit)break}}catch(e){r=!0,u=e}finally{try{n&&null!=f.return&&(yield f.return())}finally{if(r)throw u}}}catch(e){console.error(p.Ay.red(`Failed to query events: ${e.message}`)),process.exit(1)}return}var b=(0,l.default)("Querying events...").start();try{var x=yield t.collectEvents(a,{limit:e.limit});if(b.stop(),e.json)return void console.log(JSON.stringify(x,null,2));if(0===x.length)return void console.log(p.Ay.yellow("No events found"));for(var _ of(console.log(p.Ay.bold(`
|
|
20
20
|
Activity Log Events (${x.length})`)),console.log("─".repeat(100)),console.log(p.Ay.gray(`${"Timestamp".padEnd(24)} ${"Type".padEnd(12)} ${"Device".padEnd(14)} ${"Event Name".padEnd(28)} ${"Sender".padEnd(16)} Payload`)),console.log("─".repeat(100)),x)){var w=g(_.timestamp),E=(_.event_type||"").padEnd(12),F=y(_.device_id,14).padEnd(14),C=y(_.event_name,28).padEnd(28),A=y(_.sender,16).padEnd(16),T=y(_.payload,40);console.log(`${w} ${E} ${F} ${C} ${A} ${p.Ay.gray(T)}`)}console.log("─".repeat(100))}catch(e){b.fail(`Failed to query events: ${e.message}`),process.exit(1)}}),function(e){return i.apply(this,arguments)})),D.command("screenshots").description("List screenshot timestamps for a device").requiredOption("--device <id>","Device ID (required)").requiredOption("--start-time <datetime>","Start time (ISO 8601 or relative: 1h, 30m, 2d)").option("--end-time <datetime>","End time (default: now)").option("-j, --json","Output as JSON").action((n=o(function*(e){var t=v(),a=(0,c.p)(e.startTime),i=e.endTime?(0,c.p)(e.endTime):new Date().toISOString();new Date(i)-new Date(a)>2592e6&&(console.error(p.Ay.red("Time range must be 30 days or less")),process.exit(1));var n={device_id:e.device,start_time:a,end_time:i},r=(0,l.default)("Querying screenshots...").start();try{var o=yield t.collectScreenshots(n);if(r.stop(),e.json)return void console.log(JSON.stringify(o,null,2));if(0===o.length)return void console.log(p.Ay.yellow("No screenshots found"));console.log(p.Ay.bold(`
|
|
21
|
-
Screenshots (${o.length})`)),console.log("─".repeat(40)),console.log(p.Ay.gray(`${"#".padStart(4)} Timestamp`)),console.log("─".repeat(40)),o.forEach((e,t)=>{console.log(`${String(t+1).padStart(4)} ${g(e.timestamp)}`)}),console.log("─".repeat(40))}catch(e){r.fail(`Failed to query screenshots: ${e.message}`),process.exit(1)}}),function(e){return n.apply(this,arguments)})),D.command("screenshot").description("Download a screenshot image").requiredOption("--device <id>","Device ID").requiredOption("--ts <timestamp>","Screenshot timestamp (ISO 8601 or epoch ms)").option("--space <id>","Workspace/space ID (auto-detected from profile)").option("-o, --output <path>","Output file path").option("--open","Open with OS default viewer after download").action((r=o(function*(e){var t,i,n=v(),r=e.space||(t=(0,d.getCurrentProfile)(),i=(0,d.getTokenInfo)(t),i?.workspaceId);r||(console.error(p.Ay.red("Could not determine workspace ID. Use --space <id> or log in first.")),process.exit(1));var o=/^\d+$/.test(e.ts)?e.ts:new Date(e.ts).getTime(),s=(0,l.default)("Downloading screenshot...").start();try{var u=yield n.downloadScreenshot(r,e.device,o);s.stop();var c=e.output||`screenshot-${e.device}-${o}.jpg`,h=m.resolve(c);f.writeFileSync(h,u);var g=(u.length/1024).toFixed(1);if(console.log(p.Ay.green(`✓ Screenshot saved: ${h} (${g} KB)`)),e.open){var y=(yield Promise.resolve().then(a.t.bind(a,35317,19))).exec,D="darwin"===process.platform?"open":"win32"===process.platform?"start":"xdg-open";y(`${D} "${h}"`)}}catch(e){s.fail(`Failed to download screenshot: ${e.message}`),process.exit(1)}}),function(e){return r.apply(this,arguments)}))},17422(e,t,a){a.d(t,{B:()=>k});var i,n,r,o,s,p,l,d,u,c,m,f,h,v,g,y,D=a(99436),b=a(35679),x=a(73284),_=a(30155),w=a(79896),E=a(44618),F=a(7586),C=a(56493),A=a(68168),T=a(74049),S=a(
|
|
21
|
+
Screenshots (${o.length})`)),console.log("─".repeat(40)),console.log(p.Ay.gray(`${"#".padStart(4)} Timestamp`)),console.log("─".repeat(40)),o.forEach((e,t)=>{console.log(`${String(t+1).padStart(4)} ${g(e.timestamp)}`)}),console.log("─".repeat(40))}catch(e){r.fail(`Failed to query screenshots: ${e.message}`),process.exit(1)}}),function(e){return n.apply(this,arguments)})),D.command("screenshot").description("Download a screenshot image").requiredOption("--device <id>","Device ID").requiredOption("--ts <timestamp>","Screenshot timestamp (ISO 8601 or epoch ms)").option("--space <id>","Workspace/space ID (auto-detected from profile)").option("-o, --output <path>","Output file path").option("--open","Open with OS default viewer after download").action((r=o(function*(e){var t,i,n=v(),r=e.space||(t=(0,d.getCurrentProfile)(),i=(0,d.getTokenInfo)(t),i?.workspaceId);r||(console.error(p.Ay.red("Could not determine workspace ID. Use --space <id> or log in first.")),process.exit(1));var o=/^\d+$/.test(e.ts)?e.ts:new Date(e.ts).getTime(),s=(0,l.default)("Downloading screenshot...").start();try{var u=yield n.downloadScreenshot(r,e.device,o);s.stop();var c=e.output||`screenshot-${e.device}-${o}.jpg`,h=m.resolve(c);f.writeFileSync(h,u);var g=(u.length/1024).toFixed(1);if(console.log(p.Ay.green(`✓ Screenshot saved: ${h} (${g} KB)`)),e.open){var y=(yield Promise.resolve().then(a.t.bind(a,35317,19))).exec,D="darwin"===process.platform?"open":"win32"===process.platform?"start":"xdg-open";y(`${D} "${h}"`)}}catch(e){s.fail(`Failed to download screenshot: ${e.message}`),process.exit(1)}}),function(e){return r.apply(this,arguments)}))},17422(e,t,a){a.d(t,{B:()=>k});var i,n,r,o,s,p,l,d,u,c,m,f,h,v,g,y,D=a(99436),b=a(35679),x=a(73284),_=a(30155),w=a(79896),E=a(44618),F=a(7586),C=a(56493),A=a(68168),T=a(74049),S=a(47988),O=a(98593),N=(e,t)=>({id:e?._id||t,name:e?.name||"Unnamed",currentVersion:e?.current_version||null,unreleasedChanges:!!e?.has_unreleased_changes}),k=new b.uB("app").description("Application management");k.command("new").description("Create a new application").requiredOption("-n, --name <name>","Application name").option("-d, --description <description>","Application description").option("--layout-width <width>","Layout width",parseInt).option("--layout-height <height>","Layout height",parseInt).option("--init","Initialize a BRICKS Project after creation").option("-o, --output <dir>","Output directory for --init (default: current directory)").option("-y, --yes","Skip prompts for --init").option("-j, --json","Output as JSON").action((i=D(function*(e){var t=(0,C.o)(),i=e.json?null:(0,_.default)("Creating application...").start();try{var n={name:e.name};e.description&&(n.description=e.description),e.layoutWidth&&(n.layoutWidth=e.layoutWidth),e.layoutHeight&&(n.layoutHeight=e.layoutHeight);var r=yield t.createApplication(n);if(e.json&&!e.init?console.log(JSON.stringify(r,null,2)):!e.json&&(i.succeed(`Application created: ${x.Ay.green(r.name)}`),console.log(` ID: ${x.Ay.gray(r._id)}`),r.description&&console.log(` ${x.Ay.gray(r.description)}`)),e.init){i&&i.stop();var o=(yield a.e(602).then(a.bind(a,6553))).initProject;yield o("application",r._id,{output:e.output,yes:e.yes,json:e.json})}}catch(t){e.json?console.error(JSON.stringify({error:t.message})):i.fail(`Failed to create application: ${t.message}`),process.exit(1)}}),function(e){return i.apply(this,arguments)})),k.command("share-info <applicationId>").description("Show public share info (releases available for share-new) for an application").option("-j, --json","Output as JSON").action((n=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Fetching share info...").start();try{var n=yield a.publicApplicationShareInfo({id:e});if(i&&i.stop(),!n)return void(t.json?console.log(JSON.stringify(null)):console.log(x.Ay.yellow("No share info found for this application")));if(t.json)return void console.log(JSON.stringify(n,null,2));var r=[...n.share?.selected_releases||[]].sort((e,t)=>new Date(t.date||0)-new Date(e.date||0));console.log(x.Ay.bold(`
|
|
22
22
|
Share Info: ${n.name||"Unnamed"}`)),console.log("─".repeat(60)),console.log(`App ID: ${x.Ay.gray(n._id)}`),n.description&&console.log(`Description: ${n.description}`),n.owner?.id_from_user&&console.log(`Owner: ${x.Ay.gray(n.owner.id_from_user)}`),n.share?.tags?.length&&console.log(`Tags: ${n.share.tags.join(", ")}`),n.share?.type&&console.log(`Type: ${n.share.type}`),console.log(`
|
|
23
23
|
${x.Ay.bold("Selected Releases")} (${r.length})`),0===r.length?console.log(x.Ay.gray(" None")):r.forEach(e=>{console.log(`
|
|
24
24
|
${x.Ay.cyan(e.name||"(unnamed)")} ${x.Ay.gray(e.date||"")}`),console.log(` Version ID: ${x.Ay.green(e.version)}`),console.log(` Release ID: ${x.Ay.gray(e._id)}`),e.note&&console.log(` Note: ${x.Ay.gray(e.note)}`)}),console.log("\n"+"─".repeat(60)),console.log(x.Ay.gray("Use:"),`bricks app share-new --app-id ${n._id} --version <name>`),console.log(x.Ay.gray("Or: "),"bricks app share-new --version-id <Version ID>")}catch(e){t.json?console.error(JSON.stringify({error:e.message})):i.fail(`Failed to fetch share info: ${e.message}`),process.exit(1)}}),function(e,t){return n.apply(this,arguments)})),k.command("share-new").description("Create a new application from a shared release version").option("--app-id <id>","Source shared application ID (requires --version)").option("--version <name>","Release name to use from the source app (requires --app-id)").option("--version-id <id>","Share version ID (from `app share-info`); skips lookup").option("-n, --name <name>","Application name").option("-d, --description <description>","Application description").option("-w, --workspace-id <id>","Target workspace ID (default: current profile workspace)").option("--skip-if-exists","Return existing application if one already exists with this share version").option("--init","Initialize a BRICKS Project after creation").option("-o, --output <dir>","Output directory for --init (default: current directory)").option("-y, --yes","Skip prompts for --init").option("-j, --json","Output as JSON").action((r=D(function*(e){var t=(0,C.o)(),i=e.json?null:(0,_.default)("Creating application from shared version...").start();try{if(!e.versionId&&!(e.appId&&e.version))throw Error("Provide --version-id, or both --app-id and --version. Run `bricks app share-info <appId>` to discover values.");var n=e.workspaceId||(0,S.getTokenInfo)((0,S.getCurrentProfile)())?.workspaceId;if(!n)throw Error("Workspace ID is required. Use --workspace-id or log in again.");var r=e.versionId;if(!r){i&&(i.text="Resolving share version...");var o=yield t.publicApplicationShareInfo({id:e.appId}),s=o?.share?.selected_releases||[],p=s.find(t=>t.name===e.version);if(!p){var l=s.map(e=>e.name).filter(Boolean).join(", ")||"none";throw Error(`Release "${e.version}" not found on app ${e.appId}. Available: ${l}`)}r=p.version,i&&(i.text="Creating application from shared version...")}var d={workspaceId:n,shareVersionId:r};e.name&&(d.name=e.name),e.description&&(d.description=e.description),e.skipIfExists&&(d.skipIfExists=!0);var u=yield t.createApplicationWithShareVersion(d);if(e.json&&!e.init?console.log(JSON.stringify(u,null,2)):!e.json&&(i.succeed(`Application created: ${x.Ay.green(u.name)}`),console.log(` ID: ${x.Ay.gray(u._id)}`),u.description&&console.log(` ${x.Ay.gray(u.description)}`)),e.init){i&&i.stop();var c=(yield a.e(602).then(a.bind(a,6553))).initProject;yield c("application",u._id,{output:e.output,yes:e.yes,json:e.json})}}catch(t){e.json?console.error(JSON.stringify({error:t.message})):i.fail(`Failed to create application from shared version: ${t.message}`),process.exit(1)}}),function(e){return r.apply(this,arguments)})),k.command("list").description("List all applications").option("-k, --keyword <keyword>","Filter by keyword").option("-j, --json","Output as JSON").action((o=D(function*(e){var t=(0,C.o)(),a=(0,_.default)("Fetching applications...").start();try{var i=yield t.applications({keyword:e.keyword});if(a.stop(),e.json)return void console.log(JSON.stringify(i,null,2));if(!i||0===i.length)return void console.log(x.Ay.yellow("No applications found"));console.log(x.Ay.bold("\nApplications")),console.log("─".repeat(80)),i.forEach(e=>{var t=e.has_unreleased_changes?x.Ay.yellow("●"):x.Ay.green("●"),a=e.current_version?`v${e.current_version}`:x.Ay.gray("no version");console.log(`${t} ${x.Ay.cyan(e.name)} ${x.Ay.gray(a)}`),console.log(` ID: ${x.Ay.gray(e._id)}`),e.description&&console.log(` ${x.Ay.gray(e.description)}`),console.log()})}catch(e){a.fail(`Failed to list applications: ${e.message}`),process.exit(1)}}),function(e){return o.apply(this,arguments)})),k.command("get <id>").description("Get application details").option("-c, --composed","Get composed configuration").option("-j, --json","Output as JSON").action((s=D(function*(e,t){var a=(0,C.o)(),i=(0,_.default)("Fetching application...").start();try{var n=yield a.application({id:e,composed:t.composed});if(i.stop(),n||(console.log(x.Ay.red("Application not found")),process.exit(1)),t.json)return void console.log(JSON.stringify(n,null,2));if(console.log(x.Ay.bold(`
|
|
@@ -29,15 +29,17 @@ ${x.Ay.bold("Bound Devices")} (${n.devices.length})`),n.devices.forEach(e=>{var
|
|
|
29
29
|
${x.Ay.bold("Bound Devices")}: ${x.Ay.gray("None")}`),console.log("─".repeat(60))}catch(e){i.fail(`Failed to get application: ${e.message}`),process.exit(1)}}),function(e,t){return s.apply(this,arguments)})),k.command("resolve <query>").description("Resolve an application name or ID to stable IDs").option("-l, --limit <limit>","Limit search results",e=>Number.parseInt(e,10),10).option("-j, --json","Output as JSON").action((p=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Resolving application...").start();try{var n=yield(0,A.Y)(()=>a.application({id:e})),r=n?[n]:yield a.applications({keyword:e,paginate:{limit:t.limit}}),o=(0,A.K)({resource:"application",query:e,items:r||[],fields:["_id","name"],selectedBy:n?"id":null});if(i&&i.stop(),t.json)return void(0,F.GF)(o);if(o.resolved){var s=o.resolved;console.log(x.Ay.bold("\nResolved Application")),console.log("─".repeat(60)),console.log(`Name: ${x.Ay.cyan(s.name||"Unnamed")}`),console.log(`ID: ${x.Ay.gray(s._id)}`),console.log(`Selected By: ${o.selectedBy}`),console.log("─".repeat(60));return}if(0===o.matches.length)return void console.log(x.Ay.yellow(`No applications matched "${e}"`));console.log(x.Ay.bold(`
|
|
30
30
|
Matching Applications (${o.matches.length})`)),console.log("─".repeat(80)),o.matches.forEach(e=>{console.log(`${x.Ay.cyan(e.name||"Unnamed")} ${x.Ay.gray(e._id)}`)}),console.log("─".repeat(80))}catch(t){i?i.fail(`Failed to resolve application: ${t.message}`):(0,F.OW)(t.message,{resource:"application",query:e}),process.exit(1)}}),function(e,t){return p.apply(this,arguments)})),k.command("update <id>").description("Update application name, description, and/or configuration").option("-n, --name <name>","Application name").option("-d, --description <description>","Application description").option("-c, --config <json>","Application config as JSON string").option("-f, --file <path>","Application config from file").option("--validate","Validate configuration (default: true when config is set)",!0).option("--no-validate","Skip server-side config validation").option("--last-commit-id <id>","Reject if server config.bricks_project_last_commit_id does not match this value").option("-j, --json","Output as JSON").action((l=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Updating application...").start();try{var n={id:e};t.name&&(n.name=t.name),t.description&&(n.description=t.description),t.config?n.config=t.config:t.file&&(n.config=w.readFileSync(t.file,"utf-8")),void 0!==n.config&&(n.validateConfig=!1!==t.validate),t.lastCommitId&&(n.lastCommitId=t.lastCommitId);var r=yield a.updateApplication(n);t.json?(0,O.yd)({action:"application.update",target:N(r,e),result:{lastCommitId:t.lastCommitId||null},json:!0}):(i.succeed(`Application updated: ${x.Ay.green(r.name)}`),r.has_unreleased_changes&&console.log(x.Ay.yellow("Note: Application has unreleased changes")))}catch(a){t.json?(0,F.OW)(a.message,{action:"application.update",target:{id:e}}):i.fail(`Failed to update application: ${a.message}`),process.exit(1)}}),function(e,t){return l.apply(this,arguments)})),k.command("short-edit <id>").description("Short edit application properties").requiredOption("-l, --list <json>","Short edit list as JSON array").action((d=D(function*(e,t){var a=(0,C.o)(),i=(0,_.default)("Applying short edit...").start();try{var n=JSON.parse(t.list);Array.isArray(n)||(i.fail("List must be a JSON array"),process.exit(1));var r=yield a.shortEditApplication({id:e,list:n});i.succeed(`Short edit applied to: ${x.Ay.green(r.name)}`)}catch(e){i.fail(`Failed to apply short edit: ${e.message}`),process.exit(1)}}),function(e,t){return d.apply(this,arguments)})),k.command("short-refs <id>").description("List short edit references for an application").option("-k, --keyword <keyword>","Filter by shortId or title").option("-t, --types <types>","Comma-separated shortId prefixes to include (e.g. B,C,S)").option("-j, --json","Output as JSON").action((u=D(function*(e,t){var a=(0,C.o)(),i=(0,_.default)("Fetching short edit references...").start();try{var n=yield a.application({id:e});if(i.stop(),!n?.short_edit?.enabled)return void console.log(x.Ay.yellow("Short Edit is not enabled for this application"));var r=t.types?t.types.split(",").map(e=>e.trim()).filter(Boolean):[],o=(0,E.V)(n.short_edit.ref_map,{keyword:t.keyword,types:r});if(t.json)return void console.log(JSON.stringify(o,null,2));if(0===o.length)return void console.log(x.Ay.yellow("No short edit references found"));console.log(x.Ay.bold(`
|
|
31
31
|
Short Edit References: ${n.name}`)),o.forEach(e=>{console.log(x.Ay.cyan(`
|
|
32
|
-
${e.label} (${e.prefix}_)`)),e.refs.forEach(({shortId:e,ref:t})=>{var a=t?.title?x.Ay.gray(`- ${t.title}`):"";console.log(` ${x.Ay.green(e)} ${a}`)})}),console.log()}catch(e){i.fail(`Failed to fetch short edit references: ${e.message}`),process.exit(1)}}),function(e,t){return u.apply(this,arguments)})),k.command("bind <id>").description("Bind devices to application").option("-b, --bind <devices>","Device IDs to bind (comma-separated)").option("-u, --unbind <devices>","Device IDs to unbind (comma-separated)").option("--dry-run","Validate inputs and show the binding plan without applying it").option("-j, --json","Output as JSON").action((c=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Updating device bindings...").start();try{var n=yield a.application({id:e});if(!n)throw Error("Application not found");var r=t.bind?t.bind.split(",").map(e=>e.trim()):[],o=t.unbind?t.unbind.split(",").map(e=>e.trim()):[],s={id:e};if(r.length>0&&(s.bindDevices=r),o.length>0&&(s.unbindDevices=o),t.dryRun){i&&i.stop(),(0,O.S5)({action:"application.bind",target:N(n,e),request:{bindDevices:r,unbindDevices:o},checks:[(0,O.Iy)("application exists",!0,`${n.name} (${n._id})`),(0,O.Iy)("device changes provided",r.length+o.length>0,`bind=${r.length}, unbind=${o.length}`)],json:t.json});return}yield a.bindApplication(s),t.json?(0,O.yd)({action:"application.bind",target:N(n,e),result:{bindDevices:r,unbindDevices:o},json:!0}):i.succeed("Device bindings updated")}catch(a){t.json?(0,F.OW)(a.message,{action:"application.bind",target:{id:e}}):i.fail(`Failed to update bindings: ${a.message}`),process.exit(1)}}),function(e,t){return c.apply(this,arguments)})),k.command("remove <id>").description("Remove an application").option("--dry-run","Validate the target and show the removal plan without deleting it").option("-j, --json","Output as JSON").action((m=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Removing application...").start();try{var n=yield a.application({id:e});if(!n)throw Error("Application not found");var r=N(n,e);if(t.dryRun){i&&i.stop(),(0,O.S5)({action:"application.remove",target:r,request:{id:e},checks:[(0,O.Iy)("application exists",!0,`${r.name} (${r.id})`)],json:t.json});return}var o=yield a.removeApplication({id:e});t.json?(0,O.yd)({action:"application.remove",target:r,result:{removed:!!o},json:!0}):i.succeed(`Application removed: ${x.Ay.green(r.name)}`)}catch(a){t.json?(0,F.OW)(a.message,{action:"application.remove",target:{id:e}}):i.fail(`Failed to remove application: ${a.message}`),process.exit(1)}}),function(e,t){return m.apply(this,arguments)})),k.command("trigger <id> <testId>").description("Trigger automation test on application").option("--play","Play the test",!0).option("--stop","Stop the test").option("--setup-at-launch","Setup to run at app launch").option("-g, --match-group <group>","Match group").action((f=D(function*(e,t,a){var i=(0,C.o)(),n=(0,_.default)("Triggering automation...").start();try{yield i.triggerApplicationCanvasControl({id:e,testId:t,play:!a.stop&&a.play,setupAtLaunch:a.setupAtLaunch,matchGroup:a.matchGroup}),n.succeed(`Automation triggered: ${x.Ay.green(t)}`)}catch(e){n.fail(`Failed to trigger automation: ${e.message}`),process.exit(1)}}),function(e,t,a){return f.apply(this,arguments)})),k.command("release <id>").description("Release application to BRICKS platform").requiredOption("-c, --config <path|json>","Application config file path or JSON string").option("-n, --name <name>","Update application name as part of the release").option("--version <version>","Version name").option("--changelogs <text>","Release changelogs").option("--dry-run","Validate inputs and show the release plan without publishing").option("-j, --json","Output as JSON").action((h=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Releasing application...").start();try{var n=(0,T.Ku)(t.config),r=n.config,o=n.source,s=n.sizeBytes,p=yield a.application({id:e});if(!p)throw Error("Application not found");if(p.lock?.enabled)throw Error("Application is locked");var l=t.version||t.name||p.name||"Untitled",d=(0,T.w9)(t.changelogs);if(t.dryRun){i&&i.stop(),(0,O.S5)({action:"application.release",target:N(p,e),request:{name:t.name||null,version:l,changelogs:t.changelogs||null,configSource:o,configSizeBytes:s},checks:[(0,O.Iy)("application exists",!0,`${p.name} (${p._id})`),(0,O.Iy)("application is unlocked",!p.lock?.enabled),(0,O.Iy)("release config loaded",!0,`${s} bytes`)],json:t.json});return}var u=yield a.releaseApplication({id:e,config:r,...t.name?{name:t.name}:{},releaseCurrentVersion:l,releaseCurrentVersionNote:d});t.json?(0,O.yd)({action:"application.release",target:N(u||p,e),result:{name:t.name||null,version:l,configSource:o,configSizeBytes:s},json:!0}):i.succeed(`Application released: ${x.Ay.green(u?.name||p.name)}`)}catch(a){t.json?(0,F.OW)(a.message,{action:"application.release",target:{id:e}}):i.fail(`Failed to release application: ${a.message}`),process.exit(1)}}),function(e,t){return h.apply(this,arguments)})),k.command("project-pull <id>").description("Pull application source files from BRICKS platform").option("-j, --json","Output as JSON (for programmatic use)").action((v=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Pulling application project...").start();try{var n=yield a.applicationProject({id:e,buildApplicationOnly:!0});n||(i?i.fail("Application project not found"):console.error(JSON.stringify({error:"Application project not found"})),process.exit(1)),t.json?console.log(JSON.stringify(n)):(i.succeed(`Application project fetched: ${x.Ay.green(n.files?.length||0)} files`),console.log(JSON.stringify(n,null,2)))}catch(e){t.json?console.error(JSON.stringify({error:e.message})):i.fail(`Failed to pull application project: ${e.message}`),process.exit(1)}}),function(e,t){return v.apply(this,arguments)})),k.command("check-config <path>").description("Validate application config against BRICKS schema").option("-j, --json","Output as JSON").option("--validate-automation","Also validate automation_map and test_map references (skips commented/unfinished steps)").action((g=D(function*(e,t){w.existsSync(e)||(console.error(x.Ay.red(`Config file not found: ${e}`)),process.exit(1));var i=(0,_.default)("Validating config...").start();try{var n=w.readFileSync(e,"utf-8"),r=JSON.parse(n),o=yield Promise.all([a.e(587),a.e(10),a.e(511)]).then(a.t.bind(a,38890,19)),s=o.checkConfig,p=o.checkConfigDeprecatedFeatures,l=s(r,{checkAutomation:!!t.validateAutomation}),d=p(r);if(i.stop(),t.json){console.log(JSON.stringify({...l,deprecations:d},null,2)),l.valid||process.exit(1);return}if(l.valid&&0===d.length)return void console.log(x.Ay.green("✓ Config is valid"));console.log(x.Ay.bold("\nConfig Validation Report")),console.log("─".repeat(60)),l.schema.length>0&&(console.log(x.Ay.red(`
|
|
32
|
+
${e.label} (${e.prefix}_)`)),e.refs.forEach(({shortId:e,ref:t})=>{var a=t?.title?x.Ay.gray(`- ${t.title}`):"";console.log(` ${x.Ay.green(e)} ${a}`)})}),console.log()}catch(e){i.fail(`Failed to fetch short edit references: ${e.message}`),process.exit(1)}}),function(e,t){return u.apply(this,arguments)})),k.command("bind <id>").description("Bind devices to application").option("-b, --bind <devices>","Device IDs to bind (comma-separated)").option("-u, --unbind <devices>","Device IDs to unbind (comma-separated)").option("--dry-run","Validate inputs and show the binding plan without applying it").option("-j, --json","Output as JSON").action((c=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Updating device bindings...").start();try{var n=yield a.application({id:e});if(!n)throw Error("Application not found");var r=t.bind?t.bind.split(",").map(e=>e.trim()):[],o=t.unbind?t.unbind.split(",").map(e=>e.trim()):[],s={id:e};if(r.length>0&&(s.bindDevices=r),o.length>0&&(s.unbindDevices=o),t.dryRun){i&&i.stop(),(0,O.S5)({action:"application.bind",target:N(n,e),request:{bindDevices:r,unbindDevices:o},checks:[(0,O.Iy)("application exists",!0,`${n.name} (${n._id})`),(0,O.Iy)("device changes provided",r.length+o.length>0,`bind=${r.length}, unbind=${o.length}`)],json:t.json});return}yield a.bindApplication(s),t.json?(0,O.yd)({action:"application.bind",target:N(n,e),result:{bindDevices:r,unbindDevices:o},json:!0}):i.succeed("Device bindings updated")}catch(a){t.json?(0,F.OW)(a.message,{action:"application.bind",target:{id:e}}):i.fail(`Failed to update bindings: ${a.message}`),process.exit(1)}}),function(e,t){return c.apply(this,arguments)})),k.command("remove <id>").description("Remove an application").option("--dry-run","Validate the target and show the removal plan without deleting it").option("-j, --json","Output as JSON").action((m=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Removing application...").start();try{var n=yield a.application({id:e});if(!n)throw Error("Application not found");var r=N(n,e);if(t.dryRun){i&&i.stop(),(0,O.S5)({action:"application.remove",target:r,request:{id:e},checks:[(0,O.Iy)("application exists",!0,`${r.name} (${r.id})`)],json:t.json});return}var o=yield a.removeApplication({id:e});t.json?(0,O.yd)({action:"application.remove",target:r,result:{removed:!!o},json:!0}):i.succeed(`Application removed: ${x.Ay.green(r.name)}`)}catch(a){t.json?(0,F.OW)(a.message,{action:"application.remove",target:{id:e}}):i.fail(`Failed to remove application: ${a.message}`),process.exit(1)}}),function(e,t){return m.apply(this,arguments)})),k.command("trigger <id> <testId>").description("Trigger automation test on application").option("--play","Play the test",!0).option("--stop","Stop the test").option("--setup-at-launch","Setup to run at app launch").option("-g, --match-group <group>","Match group").action((f=D(function*(e,t,a){var i=(0,C.o)(),n=(0,_.default)("Triggering automation...").start();try{yield i.triggerApplicationCanvasControl({id:e,testId:t,play:!a.stop&&a.play,setupAtLaunch:a.setupAtLaunch,matchGroup:a.matchGroup}),n.succeed(`Automation triggered: ${x.Ay.green(t)}`)}catch(e){n.fail(`Failed to trigger automation: ${e.message}`),process.exit(1)}}),function(e,t,a){return f.apply(this,arguments)})),k.command("release <id>").description("Release application to BRICKS platform").requiredOption("-c, --config <path|json>","Application config file path or JSON string").option("-n, --name <name>","Update application name as part of the release").option("--version <version>","Version name").option("--changelogs <text>","Release changelogs").option("--dry-run","Validate inputs and show the release plan without publishing").option("-j, --json","Output as JSON").action((h=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Releasing application...").start();try{var n=(0,T.Ku)(t.config),r=n.config,o=n.source,s=n.sizeBytes,p=yield a.application({id:e});if(!p)throw Error("Application not found");if(p.lock?.enabled)throw Error("Application is locked");var l=t.version||t.name||p.name||"Untitled",d=(0,T.w9)(t.changelogs);if(t.dryRun){i&&i.stop(),(0,O.S5)({action:"application.release",target:N(p,e),request:{name:t.name||null,version:l,changelogs:t.changelogs||null,configSource:o,configSizeBytes:s},checks:[(0,O.Iy)("application exists",!0,`${p.name} (${p._id})`),(0,O.Iy)("application is unlocked",!p.lock?.enabled),(0,O.Iy)("release config loaded",!0,`${s} bytes`)],json:t.json});return}var u=yield a.releaseApplication({id:e,config:r,...t.name?{name:t.name}:{},releaseCurrentVersion:l,releaseCurrentVersionNote:d});t.json?(0,O.yd)({action:"application.release",target:N(u||p,e),result:{name:t.name||null,version:l,configSource:o,configSizeBytes:s},json:!0}):i.succeed(`Application released: ${x.Ay.green(u?.name||p.name)}`)}catch(a){t.json?(0,F.OW)(a.message,{action:"application.release",target:{id:e}}):i.fail(`Failed to release application: ${a.message}`),process.exit(1)}}),function(e,t){return h.apply(this,arguments)})),k.command("project-pull <id>").description("Pull application source files from BRICKS platform").option("-j, --json","Output as JSON (for programmatic use)").action((v=D(function*(e,t){var a=(0,C.o)(),i=t.json?null:(0,_.default)("Pulling application project...").start();try{var n=yield a.applicationProject({id:e,buildApplicationOnly:!0});n||(i?i.fail("Application project not found"):console.error(JSON.stringify({error:"Application project not found"})),process.exit(1)),t.json?console.log(JSON.stringify(n)):(i.succeed(`Application project fetched: ${x.Ay.green(n.files?.length||0)} files`),console.log(JSON.stringify(n,null,2)))}catch(e){t.json?console.error(JSON.stringify({error:e.message})):i.fail(`Failed to pull application project: ${e.message}`),process.exit(1)}}),function(e,t){return v.apply(this,arguments)})),k.command("check-config <path>").description("Validate application config against BRICKS schema").option("-j, --json","Output as JSON").option("--validate-automation","Also validate automation_map and test_map references (skips commented/unfinished steps)").action((g=D(function*(e,t){w.existsSync(e)||(console.error(x.Ay.red(`Config file not found: ${e}`)),process.exit(1));var i=(0,_.default)("Validating config...").start();try{var n=w.readFileSync(e,"utf-8"),r=JSON.parse(n),o=yield Promise.all([a.e(587),a.e(10),a.e(511)]).then(a.t.bind(a,38890,19)),s=o.checkConfig,p=o.checkConfigDeprecatedFeatures,l=s(r,{checkAutomation:!!t.validateAutomation,checkCalc:!0}),d=p(r);if(i.stop(),t.json){console.log(JSON.stringify({...l,deprecations:d},null,2)),l.valid||process.exit(1);return}if(l.valid&&0===d.length)return void console.log(x.Ay.green("✓ Config is valid"));console.log(x.Ay.bold("\nConfig Validation Report")),console.log("─".repeat(60)),l.schema.length>0&&(console.log(x.Ay.red(`
|
|
33
33
|
Schema Errors (${l.schema.length})
|
|
34
34
|
`)),l.schema.forEach((e,t)=>{var a=e.instancePath||e.dataPath||"/";console.log(` ${x.Ay.red(`${t+1}.`)} ${x.Ay.bold(a)}`),console.log(` ${e.message}`),e.params?.pattern&&console.log(` ${x.Ay.gray(`pattern: ${e.params.pattern}`)}`)})),l.ref.length>0&&(console.log(x.Ay.red(`
|
|
35
35
|
Reference Errors (${l.ref.length})
|
|
36
|
-
`)),l.ref.forEach((e,t)=>{console.log(` ${x.Ay.red(`${t+1}.`)} ${x.Ay.bold(e.field)}`),console.log(` ${e.message}`)})),
|
|
36
|
+
`)),l.ref.forEach((e,t)=>{console.log(` ${x.Ay.red(`${t+1}.`)} ${x.Ay.bold(e.field)}`),console.log(` ${e.message}`)})),l.calc.length>0&&(console.log(x.Ay.red(`
|
|
37
|
+
Data Calculation Errors (${l.calc.length})
|
|
38
|
+
`)),l.calc.forEach((e,t)=>{console.log(` ${x.Ay.red(`${t+1}.`)} ${x.Ay.bold(e.field)}`),console.log(` ${e.message}`)})),d.length>0&&(console.log(x.Ay.yellow(`
|
|
37
39
|
Deprecation Warnings (${d.length})
|
|
38
|
-
`)),d.forEach((e,t)=>{console.log(` ${x.Ay.yellow(`${t+1}.`)} ${x.Ay.bold(e.id)}`),console.log(` ${e.data}`)})),console.log("\n"+"─".repeat(60));var u=l.schema.length+l.ref.length;l.valid?console.log(x.Ay.yellow(`⚠ ${d.length} warning(s)`)):console.log(x.Ay.red(`✗ ${u} error(s)`)+(d.length>0?x.Ay.yellow(`, ${d.length} warning(s)`):"")),l.valid||process.exit(1)}catch(e){i.fail(`Failed to validate config: ${e.message}`),process.exit(1)}}),function(e,t){return g.apply(this,arguments)})),k.command("ctor-init <id>").alias("project-init").description("Initialize a BRICKS Project from an application").option("-o, --output <dir>","Output directory (default: current directory)").option("--github-actions","Include GitHub Actions workflow (default: true)").option("--no-github-actions","Skip GitHub Actions workflow setup").option("--agents","Include AGENTS.md (default: true)").option("--no-agents","Skip AGENTS.md setup").option("--claude","Include CLAUDE.md (default: true)").option("--no-claude","Skip CLAUDE.md setup").option("--gemini","Include GEMINI.md (default: false)").option("--no-gemini","Skip GEMINI.md setup").option("--install","Run bun install after generation (default: true)").option("--no-install","Skip bun install after generation").option("--git","Initialize git repository (default: true)").option("--no-git","Skip git initialization").option("-y, --yes","Skip prompts and use defaults/flags").option("-j, --json","Output as JSON (for programmatic use)").action((y=D(function*(e,t){var i=(yield a.e(602).then(a.bind(a,6553))).initProject;yield i("application",e,t)}),function(e,t){return y.apply(this,arguments)}))},55614(e,a,i){i.d(a,{s:()=>b});var n,r,o,s,p,l=i(99436),d=i(35679),u=i(73284),c=i(30155);let m=t("readline");var f=i(23258),h=i(85382),v=i(7586),g=e=>!!e&&"object"==typeof e&&!Array.isArray(e),y=(e={})=>{var t=g(e)?e:{},a=t.plan,i=g(a)?a:{},n=g(t.lock)?t.lock:{},r="string"==typeof a?a:i.type;return{...t,plan:{...i,type:r||"free"},lock:{...n,features:!!n.features}}},D=(n=l(function*(){var e=(0,f.getCurrentProfile)(),t=(0,f.getCurrentProfileSource)(),a=(0,f.getTokenInfo)(e),i=(0,f.getBaseUrl)();if(!a?.token)return{ok:!1,profile:e,profileSource:t,baseUrl:i,auth:{available:!1,source:"missing",workspaceId:null,workspaceName:null,createdAt:null,tokenPreview:null},workspace:null,error:null};try{var n=(0,h.createClient)(i,a.token),r=yield n.workspace();return{ok:!0,profile:e,profileSource:t,baseUrl:i,auth:{available:!0,source:"config",workspaceId:r?._id||a.workspaceId||null,workspaceName:r?.name||a.workspaceName||null,createdAt:a.createdAt||null,tokenPreview:(0,v.$l)(a.token)},workspace:r?{_id:r._id,name:r.name,description:r.description||null}:null,error:null}}catch(n){return{ok:!1,profile:e,profileSource:t,baseUrl:i,auth:{available:!0,source:"config",workspaceId:a.workspaceId||null,workspaceName:a.workspaceName||null,createdAt:a.createdAt||null,tokenPreview:(0,v.$l)(a.token)},workspace:null,error:{message:n.message}}}}),function(){return n.apply(this,arguments)}),b=new d.uB("auth").description("Authentication and token management");b.command("login").description("Login with a one-time passcode from BRICKS Controller (recommended)").argument("[passcode]","One-time passcode from BRICKS Controller").option("-p, --profile <profile>","Profile name to save the token").option("-n, --name <name>","Profile display name").action((r=l(function*(e,t){var a,i=t.profile||(0,f.getCurrentProfile)(),n=t.name,r=e;!r&&(console.log(u.Ay.cyan("Generate a one-time passcode from BRICKS Controller:")),console.log(u.Ay.gray(" 1. Open the link below (or select your workspace first)")),console.log(` ${u.Ay.underline.blue("https://control.bricks.tools/#/?action=manage-tokens")}`),console.log(u.Ay.gray(' 2. Click "Generate OTP" to create a one-time passcode\n')),(r=yield(a=m.createInterface({input:process.stdin,output:process.stdout}),new Promise(e=>{a.question("Enter passcode: ",t=>{a.close(),e(t.trim())})})))||(console.log(u.Ay.red("Passcode is required")),process.exit(1)));var o=(0,c.default)("Validating passcode...").start();try{var s=(0,h.createPublicClient)((0,f.getBaseUrl)()),p=yield s.checkWorkspaceOTP(r);p.valid||(o.fail(`Invalid passcode: ${p.error||"Unknown error"}`),process.exit(1)),o.text=`Exchanging passcode for token (workspace: ${p.workspaceName})...`;var l=yield s.exchangeWorkspaceOTP(r);l.token||(o.fail("Failed to obtain token"),process.exit(1));var d=(0,h.createClient)((0,f.getBaseUrl)(),l.token),v=yield d.workspace();v||(o.fail("Token validation failed"),process.exit(1)),(0,f.setToken)(i,{token:l.token,name:n||v.name,workspaceId:v._id,workspaceName:v.name,workspaceBilling:y(v.billing)}),(0,f.setCurrentProfile)(i),o.succeed(`Logged in to workspace: ${u.Ay.green(v.name)} (profile: ${u.Ay.cyan(i)})`)}catch(e){o.fail(`Login failed: ${e.message}`),process.exit(1)}}),function(e,t){return r.apply(this,arguments)})),b.command("login-token").description("Login with a workspace token directly").option("-t, --token <token>","Workspace token").option("-p, --profile <profile>","Profile name to save the token").option("-n, --name <name>","Profile display name").action((o=l(function*(e){var t=e.profile||(0,f.getCurrentProfile)(),a=e.token,i=e.name;a||(console.error(u.Ay.red("Error: Token is required. Use -t or --token to provide it.")),console.log(u.Ay.gray("\nYou can get a workspace token from BRICKS Controller:")+u.Ay.underline.blue("https://control.bricks.tools/#/?action=manage-tokens")),console.log(` ${u.Ay.underline.blue("https://control.bricks.tools/#/?action=manage-tokens")}`),console.log(u.Ay.gray("Select your workspace and create a new token.\n")),console.log(u.Ay.yellow("Tip: Use `bricks auth login` for a simpler OTP-based login.")),process.exit(1));var n=(0,c.default)("Validating token...").start();try{var r=(0,h.createClient)((0,f.getBaseUrl)(),a),o=yield r.workspace();o||(n.fail("Invalid token or unable to access workspace"),process.exit(1)),(0,f.setToken)(t,{token:a,name:i||o.name,workspaceId:o._id,workspaceName:o.name,workspaceBilling:y(o.billing)}),(0,f.setCurrentProfile)(t),n.succeed(`Logged in to workspace: ${u.Ay.green(o.name)} (profile: ${u.Ay.cyan(t)})`)}catch(e){n.fail(`Login failed: ${e.message}`),process.exit(1)}}),function(e){return o.apply(this,arguments)})),b.command("logout").description("Remove saved token").option("-p, --profile <profile>","Profile to remove").option("-a, --all","Remove all profiles").action((s=l(function*(e){var t=e.profile;if(e.all){(0,f.listProfiles)().forEach(e=>(0,f.removeToken)(e.name)),console.log(u.Ay.green("All profiles removed"));return}var a=t||(0,f.getCurrentProfile)();(0,f.getTokenInfo)(a)?((0,f.removeToken)(a),console.log(u.Ay.green(`Logged out from profile: ${a}`))):console.log(u.Ay.yellow(`No token found for profile: ${a}`))}),function(e){return s.apply(this,arguments)})),b.command("status").description("Show current authentication status").option("-j, --json","Output as JSON").action((p=l(function*(e){var t=(0,f.getCurrentProfile)(),a=(0,f.getTokenInfo)(t);if(!a)return e.json?void(0,v.GF)((yield D())):(console.log(u.Ay.yellow("Not logged in")),void console.log(u.Ay.gray("Use `bricks auth login` to login")));if(e.json)return void(0,v.GF)((yield D()));var i=(0,c.default)("Checking connection...").start();try{var n=(0,h.createClient)((0,f.getBaseUrl)(),a.token),r=yield n.workspace();i.stop(),console.log(u.Ay.bold("\nAuthentication Status")),console.log("─".repeat(40)),console.log(`Profile: ${u.Ay.cyan(t)}`),console.log(`Workspace: ${u.Ay.green(r.name)}`),console.log(`Workspace ID: ${u.Ay.gray(r._id)}`);var o=(0,f.getBaseUrl)(),s=a.baseUrl;console.log(`Base URL: ${u.Ay.gray(o)}${s?"":u.Ay.gray(" (global)")}`),console.log(`Logged in: ${u.Ay.gray(a.createdAt)}`),console.log("─".repeat(40))}catch(e){i.fail(`Connection failed: ${e.message}`)}}),function(e){return p.apply(this,arguments)})),b.command("list").description("List all saved profiles").action(()=>{var e=(0,f.listProfiles)();if(0===e.length){console.log(u.Ay.yellow("No saved profiles")),console.log(u.Ay.gray("Use `bricks auth login` to login"));return}console.log(u.Ay.bold("\nSaved Profiles")),console.log("─".repeat(60)),e.forEach(e=>{var t=e.current?u.Ay.green("● "):" ",a=e.current?u.Ay.green(e.name):e.name,i=e.baseUrl?u.Ay.gray(` [${e.baseUrl}]`):"";console.log(`${t}${a.padEnd(15)} ${u.Ay.gray(e.workspaceName||"Unknown")}${i}`)}),console.log("─".repeat(60))}),b.command("use <profile>").description("Switch to a different profile").action(e=>{var t=(0,f.getTokenInfo)(e);if(!t){console.log(u.Ay.red(`Profile not found: ${e}`)),console.log(u.Ay.gray("Use `bricks auth list` to see available profiles"));return}(0,f.setCurrentProfile)(e),console.log(u.Ay.green(`Switched to profile: ${e}`)),t.workspaceName&&console.log(u.Ay.gray(`Workspace: ${t.workspaceName}`))}),b.command("set-url <url>").description("Set the base URL for the current profile").option("-g, --global","Set the global base URL instead of per-profile").action((e,t)=>{if(t.global)(0,f.setBaseUrl)(e),console.log(u.Ay.green(`Global base URL set to: ${e}`));else{var a=(0,f.getCurrentProfile)();(0,f.setBaseUrl)(e,a),console.log(u.Ay.green(`Base URL for profile ${u.Ay.cyan(a)} set to: ${e}`))}})},59845(e,t,a){a.d(t,{Q:()=>I});var i,n,r,o,s,p,l,d,u,c,m,f=a(99436),h=a(35679),v=a(73284),g=a(77598),y=a(48161),D=a(76760),b=a(51455),x=a(27549),_=a(41314),w=8089,E=(i=f(function*(e,t,a=3e3){var i;try{var n=new AbortController;i=setTimeout(()=>n.abort(),a);var r=yield fetch(`http://${e}:${t}/buttress/info`,{signal:n.signal});if(!r.ok)return null;return yield r.json()}catch{return null}finally{void 0!==i&&clearTimeout(i)}}),function(e,t){return i.apply(this,arguments)}),F=D.join(y.homedir(),".bricks-cli","buttress"),C=e=>D.join(e||F,"state.json"),A=()=>{try{return`buttress-${x.machineIdSync()}`}catch{return null}},T=(n=f(function*(e){var t=C(e);try{var a=yield b.readFile(t,"utf8");return JSON.parse(a)}catch(e){if("ENOENT"===e.code)return null;throw e}}),function(e){return n.apply(this,arguments)}),S=(r=f(function*(e,t){var a=t||F,i=C(t);yield b.mkdir(a,{recursive:!0});var n=`${i}.tmp-${process.pid}`;return yield b.writeFile(n,JSON.stringify(e,null,2),"utf8"),yield b.rename(n,i),i}),function(e,t){return r.apply(this,arguments)}),O=(o=f(function*(e){var t=C(e);try{return yield b.unlink(t),!0}catch(e){if("ENOENT"===e.code)return!1;throw e}}),function(e){return o.apply(this,arguments)}),N=(s=f(function*({timeout:e=3e3,verify:t=!0,port:a=w,onStatus:i}={}){i?.(`Scanning UDP ${a} for ${e}ms...`);var n,r=yield(({timeout:e=3e3,idleTimeout:t=0,port:a=w}={})=>new Promise((i,n)=>{var r=new Map,o=_.createSocket("udp4"),s=null,p=null,l=!1,d=()=>{if(!l){l=!0,clearTimeout(s),clearTimeout(p);try{o.close()}catch{}i([...r.values()])}};o.on("error",e=>{if(!l){l=!0,clearTimeout(s),clearTimeout(p);try{o.close()}catch{}n(e)}}),o.on("message",(e,a)=>{try{var i=JSON.parse(e.toString());if("2.0"!==i.v||"ANNOUNCE"!==i.t&&"RESPONSE"!==i.t)return;var n=i.d?.info;if(!n)return;var o={...n,address:a.address},s=o.id||`${a.address}:${o.port}`;r.has(s)||(r.set(s,o),t&&!l&&(clearTimeout(p),p=setTimeout(d,t)))}catch{}}),o.bind(()=>{o.setBroadcast(!0);var t=Buffer.from(JSON.stringify({t:"QUERY",v:"2.0",d:{id:`cli-${Math.random().toString(36).slice(2,9)}`}}));for(var i of(()=>{var e=new Set(["255.255.255.255","127.0.0.1"]);for(var t of Object.values(y.networkInterfaces()))for(var a of t)if(function(){if("IPv4"!==a.family||a.internal)return 1;var t=a.address.split(".").map(Number),i=a.netmask.split(".").map(Number),n=t.map((e,t)=>(e|255&~i[t]).toString()).join(".");e.add(n)}())continue;return[...e]})())o.send(t,0,t.length,a,i);s=setTimeout(d,e)})}))({timeout:e,port:a});return 0===r.length?[]:t?(i?.(`Verifying ${r.length} server(s)...`),yield Promise.all(r.map((n=f(function*(e){var t=yield E(e.address,e.port,2e3);return t?{...e,...t,address:e.address,verified:!0}:{...e,verified:!1}}),function(e){return n.apply(this,arguments)})))):r}),function(){return s.apply(this,arguments)}),k=(p=f(function*(){var e=yield Promise.resolve().then(a.bind(a,23258)),t=e.getToken,i=e.getBaseUrl,n=e.getCurrentProfile,r=(yield Promise.resolve().then(a.bind(a,85382))).createClient,o=t(n());return o||(console.error(v.Ay.red("Not logged in. Use `bricks auth login` first.")),process.exit(1)),r(i(),o)}),function(){return p.apply(this,arguments)}),I=new h.uB("buttress").description("Pair and inspect buttress-server bindings for the current workspace").alias("butr");I.command("bind").description("Pair a local buttress-server with the current workspace").option("-s, --server-id <id>","Buttress server id (auto-detected from machine id by default)").option("-n, --name <name>","Friendly name for this buttress server").option("--state-dir <dir>","Override the buttress state directory (defaults to ~/.bricks-cli/buttress)").option("--print","Print state.json to stdout instead of writing to disk (useful for remote setups)").action((l=f(function*(e){var t,i,n,r,o,s,p=(yield Promise.resolve().then(a.bind(a,30155))).default,l=e.serverId||A();l||(console.error(v.Ay.red("Could not detect a local server id. Pass --server-id <id> explicitly.")),process.exit(1));var d=(i=(t=g.generateKeyPairSync("ed25519")).publicKey,n=t.privateKey,r=i.export({type:"spki",format:"der"}),o=n.export({type:"pkcs8",format:"der"}),s=g.createHash("sha256").update(r).digest("hex").slice(0,16),{publicKeySpki:r.toString("base64"),privateKeyPkcs8:o.toString("base64"),kid:s}),u=yield k(),c=p(`Binding buttress server ${v.Ay.cyan(l)}...`).start();try{var m=yield u.bindButtressServer({serverId:l,name:e.name,serverPublicKey:{spkiBase64:d.publicKeySpki,kid:d.kid}});c.stop();var f={workspace:{id:m.workspaceId,name:m.workspaceName,serverId:m.serverId,issuerPublicKey:m.issuerPublicKey.pem,kid:m.issuerPublicKey.kid,boundAt:new Date().toISOString()},serverKeyPair:d};if(e.print){console.warn(v.Ay.yellow("⚠ Output contains the server announce private key. Treat as a secret.")),process.stdout.write(`${JSON.stringify(f,null,2)}
|
|
39
|
-
`);return}var h=yield S(f,e.stateDir);console.log(v.Ay.green("✓"),"Buttress server bound to workspace."),console.log(` Workspace: ${v.Ay.bold(m.workspaceName)} (${m.workspaceId})`),console.log(` Server id: ${v.Ay.cyan(m.serverId)}`),console.log(` Issuer kid: ${v.Ay.gray(m.issuerPublicKey.kid)}`),console.log(` Announce kid: ${v.Ay.gray(d.kid)}`),console.log(` State file: ${v.Ay.gray(h)}`),console.log(),console.log(v.Ay.yellow("Restart buttress-server for the binding to take effect."))}catch(e){c.fail(`Bind failed: ${e.message}`),process.exit(1)}}),function(e){return l.apply(this,arguments)})),I.command("unbind").description("Unbind a buttress server from this workspace").option("-s, --server-id <id>","Buttress server id (auto-detected by default)").option("--state-dir <dir>","Override the buttress state directory").option("--keep-local","Do not remove the local state.json file").action((d=f(function*(e){var t=e.serverId||A();t||(console.error(v.Ay.red("Could not detect a local server id. Pass --server-id explicitly.")),process.exit(1));var a=yield k();try{if((yield a.unbindButtressServer({serverId:t}))?console.log(v.Ay.green("✓"),`Unbound ${v.Ay.cyan(t)} from workspace.`):console.log(v.Ay.yellow("!"),`${v.Ay.cyan(t)} was not bound to this workspace.`),!e.keepLocal){var i=C(e.stateDir),n=yield T(e.stateDir);n?.workspace?.serverId===t&&(yield O(e.stateDir),console.log(v.Ay.gray(`Removed local state file: ${i}`)))}}catch(e){console.error(v.Ay.red(`Unbind failed: ${e.message}`)),process.exit(1)}}),function(e){return d.apply(this,arguments)})),I.command("status").description("Show local buttress binding state and the workspace-side bound list").option("--state-dir <dir>","Override the buttress state directory").option("-j, --json","Output as JSON").action((u=f(function*(e){var t=yield T(e.stateDir),a=null;try{var i=yield k();a=yield i.buttressServers()}catch(e){a={error:e.message}}e.json?console.log(JSON.stringify({local:t,remote:a},null,2)):(console.log(v.Ay.bold("\nLocal buttress state")),console.log("─".repeat(60)),t?.workspace?(console.log(` Workspace: ${v.Ay.bold(t.workspace.name)} (${t.workspace.id})`),console.log(` Server id: ${v.Ay.cyan(t.workspace.serverId)}`),console.log(` Issuer kid: ${v.Ay.gray(t.workspace.kid)}`),console.log(` Bound at: ${v.Ay.gray(t.workspace.boundAt)}`),console.log(` File: ${v.Ay.gray(C(e.stateDir))}`)):console.log(v.Ay.gray(" not bound (no state.json found)")),console.log(v.Ay.bold("\nWorkspace-side bound servers")),console.log("─".repeat(60)),Array.isArray(a)?0===a.length?console.log(v.Ay.gray(" none")):a.forEach(e=>{console.log(` ${v.Ay.cyan(e.serverId)} ${v.Ay.gray(e.name||"")} ${v.Ay.gray(e.boundAt||"")}`)}):a?.error&&console.log(v.Ay.red(` failed to fetch: ${a.error}`)))}),function(e){return u.apply(this,arguments)})),I.command("issue-token").description("Issue a long-lived workspace-scoped buttress access token (CLI/CTOR usage)").option("--ttl <seconds>","Time-to-live in seconds (default 30 days)",e=>parseInt(e,10)).option("-j, --json","Output as JSON").action((c=f(function*(e){var t=yield k();try{var a=yield t.issueButtressAccessToken({ttlSeconds:e.ttl});if(e.json)return void console.log(JSON.stringify(a,null,2));console.log(v.Ay.green("✓"),"Buttress access token issued."),console.log(` Workspace: ${a.workspaceId}`),console.log(` Expires: ${a.expiresAt}`),console.log(` jti: ${v.Ay.gray(a.jti)}`),console.log(),console.log(v.Ay.cyan(a.token))}catch(e){console.error(v.Ay.red(`Issue token failed: ${e.message}`)),process.exit(1)}}),function(e){return c.apply(this,arguments)})),I.command("scan").description("Scan LAN for buttress-servers via UDP and verify each via /buttress/info").option("-t, --timeout <ms>","Scan timeout in milliseconds","3000").option("-p, --port <port>","UDP discovery port",String(w)).option("--udp-only","Skip HTTP /buttress/info verification").option("-j, --json","Output as JSON").action((m=f(function*(e){var t=(yield Promise.resolve().then(a.bind(a,30155))).default,i=yield Promise.resolve().then(a.bind(a,
|
|
40
|
-
Found ${p.length} buttress-server(s)`)),console.log("─".repeat(70)),p)){var m=!1===c.verified?v.Ay.red("unverified"):v.Ay.green("online"),f=c.workspace?.id,h=f&&u&&f===u,g=c.authentication?.bound?v.Ay.yellow("JWT required"):v.Ay.gray("open");console.log(` ${v.Ay.bold(c.name||"Unknown")} ${v.Ay.gray(`(${c.address}:${c.port})`)} [${m}]`),c.id&&console.log(` Server id: ${v.Ay.cyan(c.id)}`),c.version&&console.log(` Version: ${v.Ay.green(c.version)}`);var y=c.authentication?.kid?v.Ay.gray(` (kid: ${c.authentication.kid})`):"";if(console.log(` Auth: ${g}${y}`),f){var D=h?v.Ay.green(`${f} ${v.Ay.bold("(current profile)")}`):v.Ay.gray(f);console.log(` Workspace: ${D}`)}if(Array.isArray(c.generators)&&c.generators.length>0)for(var b of(console.log(" Generators:"),c.generators)){var x=[];"number"==typeof b.score&&x.push(`score ${b.score.toFixed(1)}`),!0===b.hasGpu?x.push("GPU ✓"):!1===b.hasGpu&&x.push("GPU ✗"),"number"==typeof b.usableBytes&&x.push(`${(b.usableBytes/0x40000000).toFixed(1)} GB usable`);var _=x.length>0?` ${v.Ay.gray(x.join(" "))}`:"";console.log(` - ${v.Ay.cyan(b.type)}${_}`)}}console.log("─".repeat(70)),p.some(e=>e.authentication?.bound)&&(console.log(),console.log(v.Ay.gray("To connect to a bound server, run `bricks buttress issue-token` for a workspace access token.")))}),function(e){return m.apply(this,arguments)}))},71335(e,t,a){a.d(t,{oT:()=>d});var i=a(35679),n=a(73284),r=a(
|
|
40
|
+
`)),d.forEach((e,t)=>{console.log(` ${x.Ay.yellow(`${t+1}.`)} ${x.Ay.bold(e.id)}`),console.log(` ${e.data}`)})),console.log("\n"+"─".repeat(60));var u=l.schema.length+l.ref.length+l.calc.length;l.valid?console.log(x.Ay.yellow(`⚠ ${d.length} warning(s)`)):console.log(x.Ay.red(`✗ ${u} error(s)`)+(d.length>0?x.Ay.yellow(`, ${d.length} warning(s)`):"")),l.valid||process.exit(1)}catch(e){i.fail(`Failed to validate config: ${e.message}`),process.exit(1)}}),function(e,t){return g.apply(this,arguments)})),k.command("ctor-init <id>").alias("project-init").description("Initialize a BRICKS Project from an application").option("-o, --output <dir>","Output directory (default: current directory)").option("--github-actions","Include GitHub Actions workflow (default: true)").option("--no-github-actions","Skip GitHub Actions workflow setup").option("--agents","Include AGENTS.md (default: true)").option("--no-agents","Skip AGENTS.md setup").option("--claude","Include CLAUDE.md (default: true)").option("--no-claude","Skip CLAUDE.md setup").option("--gemini","Include GEMINI.md (default: false)").option("--no-gemini","Skip GEMINI.md setup").option("--install","Run bun install after generation (default: true)").option("--no-install","Skip bun install after generation").option("--git","Initialize git repository (default: true)").option("--no-git","Skip git initialization").option("-y, --yes","Skip prompts and use defaults/flags").option("-j, --json","Output as JSON (for programmatic use)").action((y=D(function*(e,t){var i=(yield a.e(602).then(a.bind(a,6553))).initProject;yield i("application",e,t)}),function(e,t){return y.apply(this,arguments)}))},55614(e,t,i){i.d(t,{s:()=>b});var n,r,o,s,p,l=i(99436),d=i(35679),u=i(73284),c=i(30155);let m=a("readline");var f=i(47988),h=i(85382),v=i(7586),g=e=>!!e&&"object"==typeof e&&!Array.isArray(e),y=(e={})=>{var t=g(e)?e:{},a=t.plan,i=g(a)?a:{},n=g(t.lock)?t.lock:{},r="string"==typeof a?a:i.type;return{...t,plan:{...i,type:r||"free"},lock:{...n,features:!!n.features}}},D=(n=l(function*(){var e=(0,f.getCurrentProfile)(),t=(0,f.getCurrentProfileSource)(),a=(0,f.getTokenInfo)(e),i=(0,f.getBaseUrl)();if(!a?.token)return{ok:!1,profile:e,profileSource:t,baseUrl:i,auth:{available:!1,source:"missing",workspaceId:null,workspaceName:null,createdAt:null,tokenPreview:null},workspace:null,error:null};try{var n=(0,h.createClient)(i,a.token),r=yield n.workspace();return{ok:!0,profile:e,profileSource:t,baseUrl:i,auth:{available:!0,source:"config",workspaceId:r?._id||a.workspaceId||null,workspaceName:r?.name||a.workspaceName||null,createdAt:a.createdAt||null,tokenPreview:(0,v.$l)(a.token)},workspace:r?{_id:r._id,name:r.name,description:r.description||null}:null,error:null}}catch(n){return{ok:!1,profile:e,profileSource:t,baseUrl:i,auth:{available:!0,source:"config",workspaceId:a.workspaceId||null,workspaceName:a.workspaceName||null,createdAt:a.createdAt||null,tokenPreview:(0,v.$l)(a.token)},workspace:null,error:{message:n.message}}}}),function(){return n.apply(this,arguments)}),b=new d.uB("auth").description("Authentication and token management");b.command("login").description("Login with a one-time passcode from BRICKS Controller (recommended)").argument("[passcode]","One-time passcode from BRICKS Controller").option("-p, --profile <profile>","Profile name to save the token").option("-n, --name <name>","Profile display name").action((r=l(function*(e,t){var a,i=t.profile||(0,f.getCurrentProfile)(),n=t.name,r=e;!r&&(console.log(u.Ay.cyan("Generate a one-time passcode from BRICKS Controller:")),console.log(u.Ay.gray(" 1. Open the link below (or select your workspace first)")),console.log(` ${u.Ay.underline.blue("https://control.bricks.tools/#/?action=manage-tokens")}`),console.log(u.Ay.gray(' 2. Click "Generate OTP" to create a one-time passcode\n')),(r=yield(a=m.createInterface({input:process.stdin,output:process.stdout}),new Promise(e=>{a.question("Enter passcode: ",t=>{a.close(),e(t.trim())})})))||(console.log(u.Ay.red("Passcode is required")),process.exit(1)));var o=(0,c.default)("Validating passcode...").start();try{var s=(0,h.createPublicClient)((0,f.getBaseUrl)()),p=yield s.checkWorkspaceOTP(r);p.valid||(o.fail(`Invalid passcode: ${p.error||"Unknown error"}`),process.exit(1)),o.text=`Exchanging passcode for token (workspace: ${p.workspaceName})...`;var l=yield s.exchangeWorkspaceOTP(r);l.token||(o.fail("Failed to obtain token"),process.exit(1));var d=(0,h.createClient)((0,f.getBaseUrl)(),l.token),v=yield d.workspace();v||(o.fail("Token validation failed"),process.exit(1)),(0,f.setToken)(i,{token:l.token,name:n||v.name,workspaceId:v._id,workspaceName:v.name,workspaceBilling:y(v.billing)}),(0,f.setCurrentProfile)(i),o.succeed(`Logged in to workspace: ${u.Ay.green(v.name)} (profile: ${u.Ay.cyan(i)})`)}catch(e){o.fail(`Login failed: ${e.message}`),process.exit(1)}}),function(e,t){return r.apply(this,arguments)})),b.command("login-token").description("Login with a workspace token directly").option("-t, --token <token>","Workspace token").option("-p, --profile <profile>","Profile name to save the token").option("-n, --name <name>","Profile display name").action((o=l(function*(e){var t=e.profile||(0,f.getCurrentProfile)(),a=e.token,i=e.name;a||(console.error(u.Ay.red("Error: Token is required. Use -t or --token to provide it.")),console.log(u.Ay.gray("\nYou can get a workspace token from BRICKS Controller:")+u.Ay.underline.blue("https://control.bricks.tools/#/?action=manage-tokens")),console.log(` ${u.Ay.underline.blue("https://control.bricks.tools/#/?action=manage-tokens")}`),console.log(u.Ay.gray("Select your workspace and create a new token.\n")),console.log(u.Ay.yellow("Tip: Use `bricks auth login` for a simpler OTP-based login.")),process.exit(1));var n=(0,c.default)("Validating token...").start();try{var r=(0,h.createClient)((0,f.getBaseUrl)(),a),o=yield r.workspace();o||(n.fail("Invalid token or unable to access workspace"),process.exit(1)),(0,f.setToken)(t,{token:a,name:i||o.name,workspaceId:o._id,workspaceName:o.name,workspaceBilling:y(o.billing)}),(0,f.setCurrentProfile)(t),n.succeed(`Logged in to workspace: ${u.Ay.green(o.name)} (profile: ${u.Ay.cyan(t)})`)}catch(e){n.fail(`Login failed: ${e.message}`),process.exit(1)}}),function(e){return o.apply(this,arguments)})),b.command("logout").description("Remove saved token").option("-p, --profile <profile>","Profile to remove").option("-a, --all","Remove all profiles").action((s=l(function*(e){var t=e.profile;if(e.all){(0,f.listProfiles)().forEach(e=>(0,f.removeToken)(e.name)),console.log(u.Ay.green("All profiles removed"));return}var a=t||(0,f.getCurrentProfile)();(0,f.getTokenInfo)(a)?((0,f.removeToken)(a),console.log(u.Ay.green(`Logged out from profile: ${a}`))):console.log(u.Ay.yellow(`No token found for profile: ${a}`))}),function(e){return s.apply(this,arguments)})),b.command("status").description("Show current authentication status").option("-j, --json","Output as JSON").action((p=l(function*(e){var t=(0,f.getCurrentProfile)(),a=(0,f.getTokenInfo)(t);if(!a)return e.json?void(0,v.GF)((yield D())):(console.log(u.Ay.yellow("Not logged in")),void console.log(u.Ay.gray("Use `bricks auth login` to login")));if(e.json)return void(0,v.GF)((yield D()));var i=(0,c.default)("Checking connection...").start();try{var n=(0,h.createClient)((0,f.getBaseUrl)(),a.token),r=yield n.workspace();i.stop(),console.log(u.Ay.bold("\nAuthentication Status")),console.log("─".repeat(40)),console.log(`Profile: ${u.Ay.cyan(t)}`),console.log(`Workspace: ${u.Ay.green(r.name)}`),console.log(`Workspace ID: ${u.Ay.gray(r._id)}`);var o=(0,f.getBaseUrl)(),s=a.baseUrl;console.log(`Base URL: ${u.Ay.gray(o)}${s?"":u.Ay.gray(" (global)")}`),console.log(`Logged in: ${u.Ay.gray(a.createdAt)}`),console.log("─".repeat(40))}catch(e){i.fail(`Connection failed: ${e.message}`)}}),function(e){return p.apply(this,arguments)})),b.command("list").description("List all saved profiles").action(()=>{var e=(0,f.listProfiles)();if(0===e.length){console.log(u.Ay.yellow("No saved profiles")),console.log(u.Ay.gray("Use `bricks auth login` to login"));return}console.log(u.Ay.bold("\nSaved Profiles")),console.log("─".repeat(60)),e.forEach(e=>{var t=e.current?u.Ay.green("● "):" ",a=e.current?u.Ay.green(e.name):e.name,i=e.baseUrl?u.Ay.gray(` [${e.baseUrl}]`):"";console.log(`${t}${a.padEnd(15)} ${u.Ay.gray(e.workspaceName||"Unknown")}${i}`)}),console.log("─".repeat(60))}),b.command("use <profile>").description("Switch to a different profile").action(e=>{var t=(0,f.getTokenInfo)(e);if(!t){console.log(u.Ay.red(`Profile not found: ${e}`)),console.log(u.Ay.gray("Use `bricks auth list` to see available profiles"));return}(0,f.setCurrentProfile)(e),console.log(u.Ay.green(`Switched to profile: ${e}`)),t.workspaceName&&console.log(u.Ay.gray(`Workspace: ${t.workspaceName}`))}),b.command("set-url <url>").description("Set the base URL for the current profile").option("-g, --global","Set the global base URL instead of per-profile").action((e,t)=>{if(t.global)(0,f.setBaseUrl)(e),console.log(u.Ay.green(`Global base URL set to: ${e}`));else{var a=(0,f.getCurrentProfile)();(0,f.setBaseUrl)(e,a),console.log(u.Ay.green(`Base URL for profile ${u.Ay.cyan(a)} set to: ${e}`))}})},59845(e,t,a){a.d(t,{Q:()=>I});var i,n,r,o,s,p,l,d,u,c,m,f=a(99436),h=a(35679),v=a(73284),g=a(77598),y=a(48161),D=a(76760),b=a(51455),x=a(27549),_=a(41314),w=8089,E=(i=f(function*(e,t,a=3e3){var i;try{var n=new AbortController;i=setTimeout(()=>n.abort(),a);var r=yield fetch(`http://${e}:${t}/buttress/info`,{signal:n.signal});if(!r.ok)return null;return yield r.json()}catch{return null}finally{void 0!==i&&clearTimeout(i)}}),function(e,t){return i.apply(this,arguments)}),F=D.join(y.homedir(),".bricks-cli","buttress"),C=e=>D.join(e||F,"state.json"),A=()=>{try{return`buttress-${x.machineIdSync()}`}catch{return null}},T=(n=f(function*(e){var t=C(e);try{var a=yield b.readFile(t,"utf8");return JSON.parse(a)}catch(e){if("ENOENT"===e.code)return null;throw e}}),function(e){return n.apply(this,arguments)}),S=(r=f(function*(e,t){var a=t||F,i=C(t);yield b.mkdir(a,{recursive:!0});var n=`${i}.tmp-${process.pid}`;return yield b.writeFile(n,JSON.stringify(e,null,2),"utf8"),yield b.rename(n,i),i}),function(e,t){return r.apply(this,arguments)}),O=(o=f(function*(e){var t=C(e);try{return yield b.unlink(t),!0}catch(e){if("ENOENT"===e.code)return!1;throw e}}),function(e){return o.apply(this,arguments)}),N=(s=f(function*({timeout:e=3e3,verify:t=!0,port:a=w,onStatus:i}={}){i?.(`Scanning UDP ${a} for ${e}ms...`);var n,r=yield(({timeout:e=3e3,idleTimeout:t=0,port:a=w}={})=>new Promise((i,n)=>{var r=new Map,o=_.createSocket("udp4"),s=null,p=null,l=!1,d=()=>{if(!l){l=!0,clearTimeout(s),clearTimeout(p);try{o.close()}catch{}i([...r.values()])}};o.on("error",e=>{if(!l){l=!0,clearTimeout(s),clearTimeout(p);try{o.close()}catch{}n(e)}}),o.on("message",(e,a)=>{try{var i=JSON.parse(e.toString());if("2.0"!==i.v||"ANNOUNCE"!==i.t&&"RESPONSE"!==i.t)return;var n=i.d?.info;if(!n)return;var o={...n,address:a.address},s=o.id||`${a.address}:${o.port}`;r.has(s)||(r.set(s,o),t&&!l&&(clearTimeout(p),p=setTimeout(d,t)))}catch{}}),o.bind(()=>{o.setBroadcast(!0);var t=Buffer.from(JSON.stringify({t:"QUERY",v:"2.0",d:{id:`cli-${Math.random().toString(36).slice(2,9)}`}}));for(var i of(()=>{var e=new Set(["255.255.255.255","127.0.0.1"]);for(var t of Object.values(y.networkInterfaces()))for(var a of t)if(function(){if("IPv4"!==a.family||a.internal)return 1;var t=a.address.split(".").map(Number),i=a.netmask.split(".").map(Number),n=t.map((e,t)=>(e|255&~i[t]).toString()).join(".");e.add(n)}())continue;return[...e]})())o.send(t,0,t.length,a,i);s=setTimeout(d,e)})}))({timeout:e,port:a});return 0===r.length?[]:t?(i?.(`Verifying ${r.length} server(s)...`),yield Promise.all(r.map((n=f(function*(e){var t=yield E(e.address,e.port,2e3);return t?{...e,...t,address:e.address,verified:!0}:{...e,verified:!1}}),function(e){return n.apply(this,arguments)})))):r}),function(){return s.apply(this,arguments)}),k=(p=f(function*(){var e=yield Promise.resolve().then(a.bind(a,47988)),t=e.getToken,i=e.getBaseUrl,n=e.getCurrentProfile,r=(yield Promise.resolve().then(a.bind(a,85382))).createClient,o=t(n());return o||(console.error(v.Ay.red("Not logged in. Use `bricks auth login` first.")),process.exit(1)),r(i(),o)}),function(){return p.apply(this,arguments)}),I=new h.uB("buttress").description("Pair and inspect buttress-server bindings for the current workspace").alias("butr");I.command("bind").description("Pair a local buttress-server with the current workspace").option("-s, --server-id <id>","Buttress server id (auto-detected from machine id by default)").option("-n, --name <name>","Friendly name for this buttress server").option("--state-dir <dir>","Override the buttress state directory (defaults to ~/.bricks-cli/buttress)").option("--print","Print state.json to stdout instead of writing to disk (useful for remote setups)").action((l=f(function*(e){var t,i,n,r,o,s,p=(yield Promise.resolve().then(a.bind(a,30155))).default,l=e.serverId||A();l||(console.error(v.Ay.red("Could not detect a local server id. Pass --server-id <id> explicitly.")),process.exit(1));var d=(i=(t=g.generateKeyPairSync("ed25519")).publicKey,n=t.privateKey,r=i.export({type:"spki",format:"der"}),o=n.export({type:"pkcs8",format:"der"}),s=g.createHash("sha256").update(r).digest("hex").slice(0,16),{publicKeySpki:r.toString("base64"),privateKeyPkcs8:o.toString("base64"),kid:s}),u=yield k(),c=p(`Binding buttress server ${v.Ay.cyan(l)}...`).start();try{var m=yield u.bindButtressServer({serverId:l,name:e.name,serverPublicKey:{spkiBase64:d.publicKeySpki,kid:d.kid}});c.stop();var f={workspace:{id:m.workspaceId,name:m.workspaceName,serverId:m.serverId,issuerPublicKey:m.issuerPublicKey.pem,kid:m.issuerPublicKey.kid,boundAt:new Date().toISOString()},serverKeyPair:d};if(e.print){console.warn(v.Ay.yellow("⚠ Output contains the server announce private key. Treat as a secret.")),process.stdout.write(`${JSON.stringify(f,null,2)}
|
|
41
|
+
`);return}var h=yield S(f,e.stateDir);console.log(v.Ay.green("✓"),"Buttress server bound to workspace."),console.log(` Workspace: ${v.Ay.bold(m.workspaceName)} (${m.workspaceId})`),console.log(` Server id: ${v.Ay.cyan(m.serverId)}`),console.log(` Issuer kid: ${v.Ay.gray(m.issuerPublicKey.kid)}`),console.log(` Announce kid: ${v.Ay.gray(d.kid)}`),console.log(` State file: ${v.Ay.gray(h)}`),console.log(),console.log(v.Ay.yellow("Restart buttress-server for the binding to take effect."))}catch(e){c.fail(`Bind failed: ${e.message}`),process.exit(1)}}),function(e){return l.apply(this,arguments)})),I.command("unbind").description("Unbind a buttress server from this workspace").option("-s, --server-id <id>","Buttress server id (auto-detected by default)").option("--state-dir <dir>","Override the buttress state directory").option("--keep-local","Do not remove the local state.json file").action((d=f(function*(e){var t=e.serverId||A();t||(console.error(v.Ay.red("Could not detect a local server id. Pass --server-id explicitly.")),process.exit(1));var a=yield k();try{if((yield a.unbindButtressServer({serverId:t}))?console.log(v.Ay.green("✓"),`Unbound ${v.Ay.cyan(t)} from workspace.`):console.log(v.Ay.yellow("!"),`${v.Ay.cyan(t)} was not bound to this workspace.`),!e.keepLocal){var i=C(e.stateDir),n=yield T(e.stateDir);n?.workspace?.serverId===t&&(yield O(e.stateDir),console.log(v.Ay.gray(`Removed local state file: ${i}`)))}}catch(e){console.error(v.Ay.red(`Unbind failed: ${e.message}`)),process.exit(1)}}),function(e){return d.apply(this,arguments)})),I.command("status").description("Show local buttress binding state and the workspace-side bound list").option("--state-dir <dir>","Override the buttress state directory").option("-j, --json","Output as JSON").action((u=f(function*(e){var t=yield T(e.stateDir),a=null;try{var i=yield k();a=yield i.buttressServers()}catch(e){a={error:e.message}}e.json?console.log(JSON.stringify({local:t,remote:a},null,2)):(console.log(v.Ay.bold("\nLocal buttress state")),console.log("─".repeat(60)),t?.workspace?(console.log(` Workspace: ${v.Ay.bold(t.workspace.name)} (${t.workspace.id})`),console.log(` Server id: ${v.Ay.cyan(t.workspace.serverId)}`),console.log(` Issuer kid: ${v.Ay.gray(t.workspace.kid)}`),console.log(` Bound at: ${v.Ay.gray(t.workspace.boundAt)}`),console.log(` File: ${v.Ay.gray(C(e.stateDir))}`)):console.log(v.Ay.gray(" not bound (no state.json found)")),console.log(v.Ay.bold("\nWorkspace-side bound servers")),console.log("─".repeat(60)),Array.isArray(a)?0===a.length?console.log(v.Ay.gray(" none")):a.forEach(e=>{console.log(` ${v.Ay.cyan(e.serverId)} ${v.Ay.gray(e.name||"")} ${v.Ay.gray(e.boundAt||"")}`)}):a?.error&&console.log(v.Ay.red(` failed to fetch: ${a.error}`)))}),function(e){return u.apply(this,arguments)})),I.command("issue-token").description("Issue a long-lived workspace-scoped buttress access token (CLI/CTOR usage)").option("--ttl <seconds>","Time-to-live in seconds (default 30 days)",e=>parseInt(e,10)).option("-j, --json","Output as JSON").action((c=f(function*(e){var t=yield k();try{var a=yield t.issueButtressAccessToken({ttlSeconds:e.ttl});if(e.json)return void console.log(JSON.stringify(a,null,2));console.log(v.Ay.green("✓"),"Buttress access token issued."),console.log(` Workspace: ${a.workspaceId}`),console.log(` Expires: ${a.expiresAt}`),console.log(` jti: ${v.Ay.gray(a.jti)}`),console.log(),console.log(v.Ay.cyan(a.token))}catch(e){console.error(v.Ay.red(`Issue token failed: ${e.message}`)),process.exit(1)}}),function(e){return c.apply(this,arguments)})),I.command("scan").description("Scan LAN for buttress-servers via UDP and verify each via /buttress/info").option("-t, --timeout <ms>","Scan timeout in milliseconds","3000").option("-p, --port <port>","UDP discovery port",String(w)).option("--udp-only","Skip HTTP /buttress/info verification").option("-j, --json","Output as JSON").action((m=f(function*(e){var t=(yield Promise.resolve().then(a.bind(a,30155))).default,i=yield Promise.resolve().then(a.bind(a,47988)),n=i.getCurrentProfile,r=i.getTokenInfo,o=parseInt(e.timeout,10),s=parseInt(e.port,10),p=[],l=t(`Scanning for buttress-servers (${o}ms)...`).start();try{p=yield N({timeout:o,port:s,verify:!e.udpOnly,onStatus:e=>{l.text=e}}),l.stop()}catch(e){l.fail(`Scan failed: ${e.message}`),process.exit(1)}var d=n(),u=r(d)?.workspaceId||null;if(e.json)return void console.log(JSON.stringify({servers:p,workspaceId:u},null,2));if(0===p.length)return void console.log(v.Ay.yellow("No buttress-servers found on the LAN."));for(var c of(console.log(v.Ay.bold(`
|
|
42
|
+
Found ${p.length} buttress-server(s)`)),console.log("─".repeat(70)),p)){var m=!1===c.verified?v.Ay.red("unverified"):v.Ay.green("online"),f=c.workspace?.id,h=f&&u&&f===u,g=c.authentication?.bound?v.Ay.yellow("JWT required"):v.Ay.gray("open");console.log(` ${v.Ay.bold(c.name||"Unknown")} ${v.Ay.gray(`(${c.address}:${c.port})`)} [${m}]`),c.id&&console.log(` Server id: ${v.Ay.cyan(c.id)}`),c.version&&console.log(` Version: ${v.Ay.green(c.version)}`);var y=c.authentication?.kid?v.Ay.gray(` (kid: ${c.authentication.kid})`):"";if(console.log(` Auth: ${g}${y}`),f){var D=h?v.Ay.green(`${f} ${v.Ay.bold("(current profile)")}`):v.Ay.gray(f);console.log(` Workspace: ${D}`)}if(Array.isArray(c.generators)&&c.generators.length>0)for(var b of(console.log(" Generators:"),c.generators)){var x=[];"number"==typeof b.score&&x.push(`score ${b.score.toFixed(1)}`),!0===b.hasGpu?x.push("GPU ✓"):!1===b.hasGpu&&x.push("GPU ✗"),"number"==typeof b.usableBytes&&x.push(`${(b.usableBytes/0x40000000).toFixed(1)} GB usable`);var _=x.length>0?` ${v.Ay.gray(x.join(" "))}`:"";console.log(` - ${v.Ay.cyan(b.type)}${_}`)}}console.log("─".repeat(70)),p.some(e=>e.authentication?.bound)&&(console.log(),console.log(v.Ay.gray("To connect to a bound server, run `bricks buttress issue-token` for a workspace access token.")))}),function(e){return m.apply(this,arguments)}))},71335(e,t,a){a.d(t,{oT:()=>d});var i=a(35679),n=a(73284),r=a(47988),o={prod:"https://display.bricks.tools",beta:"https://display-beta.bricks.tools",dev:"http://localhost:3001"},s=e=>{var t=Object.entries(o).find(([,t])=>e===t);return t?t[0]:null},p={prod:"https://activity-log.bricks.tools",beta:"https://activity-log-beta.bricks.tools",dev:"http://localhost:8088"},l=e=>{var t=Object.entries(p).find(([,t])=>e===t);return t?t[0]:null},d=new i.uB("config").description("CLI configuration management");d.command("endpoint").argument("[environment]","Environment to use (prod, beta, dev)").description("Show or set endpoint environment").option("-p, --profile","Set for current profile instead of global").action((e,t)=>{if(!e){var a=(0,r.getBaseUrl)(),i=s(a),d=(0,r.getActivityLogBaseUrl)(),u=l(d);console.log(n.Ay.bold("\nEndpoint Configuration")),console.log("─".repeat(50)),console.log(n.Ay.bold("BRICKS")),console.log(` URL: ${n.Ay.cyan(a)}`),console.log(` Environment: ${i?n.Ay.green(i):n.Ay.yellow("custom")}`),console.log(n.Ay.bold("Activity Log")),console.log(` URL: ${n.Ay.cyan(d)}`),console.log(` Environment: ${u?n.Ay.green(u):n.Ay.yellow("custom")}`),console.log("─".repeat(50)),console.log(n.Ay.gray("\nUsage: bricks config endpoint <prod|beta|dev>"));return}var c=Object.keys(o);c.includes(e)||(console.error(n.Ay.red(`Invalid environment: ${e}`)),console.log(n.Ay.gray(`Valid options: ${c.join(", ")}`)),process.exit(1));var m=o[e],f=p[e],h=t.profile?(0,r.getCurrentProfile)():null;(0,r.setBaseUrl)(m,h),(0,r.setActivityLogBaseUrl)(f,h);var v=t.profile?` (profile: ${(0,r.getCurrentProfile)()})`:"";console.log(n.Ay.green(`✓ Endpoint changed to ${e}${v}`)),console.log(n.Ay.gray(` BRICKS: ${m}`)),console.log(n.Ay.gray(` Activity Log: ${f}`)),console.log(n.Ay.yellow("\nNote: You may need to re-authenticate if your token is for a different environment.")),console.log(n.Ay.gray("Use `bricks auth status` to check your connection."))}),d.command("show").description("Show current configuration").option("-j, --json","Output as JSON").action(e=>{var t=(0,r.getBaseUrl)(),a=s(t);if(e.json)return void console.log(JSON.stringify({endpoint:t,environment:a||"custom"},null,2));console.log(n.Ay.bold("\nBRICKS CLI Configuration")),console.log("─".repeat(50)),console.log(`BRICKS: ${n.Ay.cyan(t)}`),a?console.log(`Environment: ${n.Ay.green(a)}`):console.log(`Environment: ${n.Ay.yellow("custom")}`);var i=(0,r.getActivityLogBaseUrl)(),o=l(i);console.log(`Activity Log: ${n.Ay.cyan(i)} ${o?n.Ay.green(`(${o})`):n.Ay.yellow("(custom)")}`),console.log("─".repeat(50))})},42400(e,t,a){a.a(e,async function(e,i){try{a.d(t,{D:()=>f});var n=a(35679),r=a(69278),o=a(16928),s=a(70857),p=a(84361),l=e([p]);p=(l.then?(await l)():l)[0];var d=process.env.BRICKS_PROJECT_DESKTOP_DATA_DIR||o.join(s.homedir(),".bricks-project-desktop"),u=o.join(d,"acp.sock"),c=`[acp] Cannot connect to CTOR.
|
|
41
43
|
Make sure the desktop app is running and ACP is enabled in Settings.
|
|
42
44
|
Socket: ${u}
|
|
43
45
|
`,m=e=>{var t=new r.Socket,a="",i=!1,n=[];t.on("error",t=>{var a="ENOENT"===t.code||"ECONNREFUSED"===t.code?"CTOR not reachable (is the desktop app running with ACP enabled?)":`socket error: ${t.message}`;process.stderr.write(`[acp] ${a}
|
|
@@ -59,22 +61,22 @@ ${D.Ay.bold("Environment Variables")}`),Object.entries(n.env.variables).forEach(
|
|
|
59
61
|
Matching Devices (${o.matches.length})`)),console.log("─".repeat(80)),o.matches.forEach(e=>{console.log(`${D.Ay.cyan(e.name||e.device_name||"Unnamed")} ${D.Ay.gray(e._id)}`)}),console.log("─".repeat(80))}catch(t){i?i.fail(`Failed to resolve device: ${t.message}`):(0,_.OW)(t.message,{resource:"device",query:e}),process.exit(1)}}),function(e,t){return s.apply(this,arguments)})),N.command("bind <passcode>").description("Bind a new device using passcode").option("-n, --name <name>","Device name").option("--dry-run","Validate inputs and show the device binding plan without creating a device").option("-j, --json","Output as JSON").action((p=g(function*(e,t){var a=(0,w.o)(),i=t.json?null:(0,b.default)("Checking passcode...").start();try{var n=yield a.checkBindDevicePasscode({passcode:e});n||(t.json?(0,_.OW)("Invalid passcode or expired",{action:"device.bind"}):i.fail("Invalid passcode or expired"),process.exit(1));var r={name:t.name||n.payload?.deviceName||"CLI Device",deviceName:n.payload?.deviceName||null};if(t.dryRun){i&&i.stop(),(0,F.S5)({action:"device.bind",target:r,request:{passcodePreview:(0,_.$l)(e),requestedName:t.name||null,inferredName:n.payload?.deviceName||null},checks:[(0,F.Iy)("passcode is valid",!0),(0,F.Iy)("device name resolved",!0,r.name)],json:t.json});return}i&&(i.text="Binding device...");var o=yield a.createDevice({bindPasscode:e,name:r.name,deviceName:n.payload?.deviceName});t.json?(0,F.yd)({action:"device.bind",target:T(o,o._id),result:{inferredName:n.payload?.deviceName||null},json:!0}):(i.succeed(`Device bound successfully: ${D.Ay.green(o.name)}`),console.log(D.Ay.gray(`Device ID: ${o._id}`)))}catch(e){t.json?(0,_.OW)(e.message,{action:"device.bind"}):i.fail(`Failed to bind device: ${e.message}`),process.exit(1)}}),function(e,t){return p.apply(this,arguments)})),N.command("remove <id>").description("Remove a device").option("--dry-run","Validate the target and show the removal plan without deleting it").option("-j, --json","Output as JSON").action((l=g(function*(e,t){var a=(0,w.o)(),i=t.json?null:(0,b.default)("Removing device...").start();try{var n=yield S(a,e),r=T(n,e);if(t.dryRun){i&&i.stop(),(0,F.S5)({action:"device.remove",target:r,request:{id:e},checks:[(0,F.Iy)("device exists",!0,`${r.name} (${r.id})`)],json:t.json});return}var o=yield a.removeDevice({id:e});t.json?(0,F.yd)({action:"device.remove",target:r,result:{removed:!!o},json:!0}):i.succeed(`Device removed: ${D.Ay.green(r.name)}`)}catch(a){t.json?(0,_.OW)(a.message,{action:"device.remove",target:{id:e}}):i.fail(`Failed to remove device: ${a.message}`),process.exit(1)}}),function(e,t){return l.apply(this,arguments)})),N.command("control <id> <type>").description("Control a device").option("-p, --payload <json>","Event payload as JSON").option("--dry-run","Validate inputs and show the control request without sending it").option("-j, --json","Output as JSON").action((d=g(function*(e,t,a){try{var i;a.payload&&(i=JSON.parse(a.payload)),yield O({id:e,type:t,eventPayload:i,options:a,progressMessage:`Sending ${t} to device...`,successMessage:`Control event sent: ${D.Ay.green(t)}`,failureMessage:"Failed to control device"})}catch(i){a.json?(0,_.OW)(i.message,{action:"device.control",target:{id:e},type:t}):console.error(D.Ay.red(`Failed to control device: ${i.message}`)),process.exit(1)}}),function(e,t,a){return d.apply(this,arguments)})),N.command("refresh <id>").description("Refresh device application").option("--dry-run","Validate inputs and show the refresh request without sending it").option("-j, --json","Output as JSON").action((u=g(function*(e,t){yield O({id:e,type:"refresh",options:t,progressMessage:"Refreshing device...",successMessage:"Device refreshed",failureMessage:"Failed to refresh device"})}),function(e,t){return u.apply(this,arguments)})),N.command("clear-cache <id>").description("Clear device cache").option("--dry-run","Validate inputs and show the cache-clear request without sending it").option("-j, --json","Output as JSON").action((c=g(function*(e,t){yield O({id:e,type:"clear-cache",options:t,progressMessage:"Clearing cache...",successMessage:"Cache cleared",failureMessage:"Failed to clear cache"})}),function(e,t){return c.apply(this,arguments)})),N.command("screenshot <id>").description("Take device screenshot and save to file").option("-o, --output <path>","Output file path").option("--no-take","Only fetch existing screenshot without taking a new one").action((m=g(function*(e,t){var a=(0,w.o)(),i=(0,b.default)("Fetching workspace info...").start();try{var n=yield a.workspace();n?.media_resource?.enable_media_workspace||(i.fail("Media workspace is not enabled for this workspace"),process.exit(1)),n.media_resource.system_media_box_id||(i.fail("No media box configured for this workspace"),process.exit(1)),!1!==t.take&&(i.text="Sending screenshot request to device...",yield a.controlDevice({id:e,type:"take-screenshot"}),i.text="Waiting for device to capture screenshot...",yield new Promise(e=>setTimeout(e,3e3))),i.text="Fetching screenshot...";var r=yield(0,x.he)(a,n,e,t.output);if(r.error&&(i.fail(r.error),process.exit(1)),i.succeed("Screenshot saved"),console.log(),console.log(D.Ay.bold("Screenshot saved to:")),console.log(D.Ay.cyan(r.path)),console.log(),r.file?.meta){var o=r.file.meta,s=o.originalWidth,p=o.originalHeight,l=o.originalFileSize;if(s&&p&&console.log(`${D.Ay.gray("Size:")} ${s}x${p}`),l){var d=(l/1024).toFixed(1);console.log(`${D.Ay.gray("File:")} ${d} KB`)}}r.file?.updatedAt&&console.log(`${D.Ay.gray("Updated:")} ${new Date(r.file.updatedAt).toLocaleString()}`)}catch(e){i.fail(`Failed to get screenshot: ${e.message}`),process.exit(1)}}),function(e,t){return m.apply(this,arguments)})),N.command("metrics <id>").description("Show device metrics (uptime, memory, disk)").option("--start-date <date>","Start date/time (ISO 8601 or relative e.g. 1h, 2d, default: today)").option("--end-date <date>","End date/time (ISO 8601 or relative e.g. 1h, 2d, default: now)").option("-j, --json","Output as JSON").action((f=g(function*(e,t){var a=(0,w.o)(),i=(0,b.default)("Fetching device metrics...").start();try{var n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()).toISOString(),o=t.startDate?(0,C.p)(t.startDate):r,s=t.endDate?(0,C.p)(t.endDate):n.toISOString(),p=yield a.deviceUsage({deviceId:e,startDate:o,endDate:s});if(i.stop(),!p||0===p.length)return void console.log(D.Ay.yellow("No metrics data found for this device"));if(t.json)return void console.log(JSON.stringify(p,null,2));for(var l of(console.log(D.Ay.bold(`
|
|
60
62
|
Device Metrics: ${e}`)),console.log("─".repeat(60)),console.log(D.Ay.gray(`${"Date".padEnd(12)} ${"Uptime Events".padEnd(15)} ${"Avg Memory".padEnd(12)} ${"Avg Disk".padEnd(10)}`)),console.log("─".repeat(60)),p)){var d=(l.date||"").padEnd(12),u=String(l.uptime?.length||0).padEnd(15),c="N/A";if(l.memory_usage?.length){var m=0,f=0;for(var h of l.memory_usage){var g=h.values||[],y=v(g,2),x=y[0],_=y[1];null!=x&&null!=_&&_>0&&(m+=x,f+=_)}f>0&&(c=`${(m/f*100).toFixed(1)}%`)}var E="N/A";if(l.disk_usage?.length){var F=0,A=0;for(var T of l.disk_usage){var S=T.values||[],O=v(S,2),N=O[0],k=O[1];null!=N&&null!=k&&k>0&&(F+=N,A+=k)}A>0&&(E=`${(F/A*100).toFixed(1)}%`)}console.log(`${d} ${u} ${c.padEnd(12)} ${E.padEnd(10)}`)}console.log("─".repeat(60))}catch(e){i.fail(`Failed to get device metrics: ${e.message}`),process.exit(1)}}),function(e,t){return f.apply(this,arguments)})),N.command("monitor").description("Monitor device status (polls every 60s)").option("-g, --group <id>","Monitor devices in a group").option("-i, --interval <seconds>","Polling interval in seconds","60").action((h=g(function*(e){var t,a=(0,w.o)(),i=1e3*parseInt(e.interval,10);console.log(D.Ay.bold("\nDevice Monitor")),console.log(D.Ay.gray(`Polling every ${e.interval}s. Press Ctrl+C to stop.
|
|
61
63
|
`));var n=(t=g(function*(){try{var t;if(t=e.group?yield a.devicesByGroup({id:e.group}):yield a.devices({}),process.stdout.write("\x1b[2J\x1b[0f"),console.log(D.Ay.bold("Device Monitor")+D.Ay.gray(` - ${new Date().toLocaleTimeString()}`)),console.log("─".repeat(80)),!t||0===t.length)return void console.log(D.Ay.yellow("No devices found"));t.forEach(e=>{var t=e.entry_detail?.watch_dog_timer?.last_alive_time,a=A(t),i=e.name||e.device_name||e.device_target_name,n=e.entry_detail?.application?.name||D.Ay.gray("No app");console.log(`${a} ${D.Ay.cyan(i.padEnd(25))} ${n}`)}),console.log(`
|
|
62
|
-
${D.Ay.gray("Press Ctrl+C to stop")}`)}catch(e){console.error(D.Ay.red(`Error: ${e.message}`))}}),function(){return t.apply(this,arguments)});yield n(),setInterval(n,i)}),function(e){return h.apply(this,arguments)}))},80274(e,t,a){a.d(t,{gf:()=>
|
|
63
|
-
Found ${p.length} DevTools server(s)`)),console.log("─".repeat(80));var c=function*(e){var t=!1===e.verified
|
|
64
|
-
Connect via: http://${h}/devtools-frontend/inspector.html?ws=${h}${
|
|
65
|
-
CDP commands require version >= ${
|
|
66
|
-
Use --info to see connection URLs`))}),function(e,t){return p.apply(this,arguments)})),Y(z.command("screenshot").description("Capture device screenshot").option("-o, --output <path>","Output file path")).action((l=O(function*(e){var t;yield Q(e,(t=O(function*(t){var i=yield t.send("Page.captureScreenshot",{format:"png"});i.data||(console.error(k.Ay.red("No screenshot data received")),process.exit(1));var n=yield Promise.resolve().then(a.t.bind(a,73024,19)),r=yield Promise.resolve().then(a.t.bind(a,76760,19)),o=e.output||`screenshot-${Date.now()}.png`,s=r.resolve(o);n.writeFileSync(s,Buffer.from(i.data,"base64")),console.log(k.Ay.green(`Screenshot saved to ${s}`))}),function(e){return t.apply(this,arguments)}))}),function(e){return l.apply(this,arguments)}));var K=z.command("brick").description("Brick component inspection");Y(K.command("tree").description("Print brick component tree").option("-d, --depth <depth>","Max depth (-1 for full)","3")).action((d=O(function*(e){var t;yield Q(e,(t=O(function*(t){yield t.send("DOM.enable");var a=parseInt(e.depth,10),i=(yield t.send("DOM.getDocument",{depth:a})).root;e.json?console.log(JSON.stringify(i,null,2)):console.log(H(i).join("\n"))}),function(e){return t.apply(this,arguments)}))}),function(e){return d.apply(this,arguments)})),Y(K.command("query <selector>").description("Find brick by CSS selector")).action((u=O(function*(e,t){var a;yield Q(t,(a=O(function*(a){yield a.send("DOM.enable");var i=(yield a.send("DOM.getDocument",{depth:0})).root,n=(yield a.send("DOM.querySelector",{nodeId:i.nodeId,selector:e})).nodeId;if(0===n)return void console.log(k.Ay.yellow("No element found"));var r=yield a.send("DOM.describeNode",{nodeId:n}),o=J((yield a.send("DOM.getAttributes",{nodeId:n})).attributes);if(t.json)return void console.log(JSON.stringify({nodeId:n,...r.node,attributes:o},null,2));if(console.log(k.Ay.bold(`Node ${n}: ${r.node?.nodeName||"unknown"}`)),Object.keys(o).length>0)for(var s of(console.log(k.Ay.bold("Attributes:")),Object.entries(o))){var p=S(s,2),l=p[0],d=p[1];console.log(` ${k.Ay.cyan(l)}: ${d}`)}}),function(e){return a.apply(this,arguments)}))}),function(e,t){return u.apply(this,arguments)})),Y(K.command("query-all <selector>").description("Find all bricks matching CSS selector")).action((c=O(function*(e,t){var a;yield Q(t,(a=O(function*(a){yield a.send("DOM.enable");var i=(yield a.send("DOM.getDocument",{depth:0})).root,n=(yield a.send("DOM.querySelectorAll",{nodeId:i.nodeId,selector:e})).nodeIds;if(t.json)return void console.log(JSON.stringify({nodeIds:n,count:n.length},null,2));for(var r of(console.log(k.Ay.bold(`Found ${n.length} element(s)`)),n)){var o=yield a.send("DOM.describeNode",{nodeId:r}),s=J((yield a.send("DOM.getAttributes",{nodeId:r})).attributes),p=s.id||s["short-id"]||"";console.log(` ${r}: ${o.node?.nodeName}${p?k.Ay.gray(`#${p}`):""}`)}}),function(e){return a.apply(this,arguments)}))}),function(e,t){return c.apply(this,arguments)})),Y(K.command("attributes <nodeId>").description("Get brick attributes")).action((m=O(function*(e,t){var a;yield Q(t,(a=O(function*(a){yield a.send("DOM.enable");var i=parseInt(e,10),n=J((yield a.send("DOM.getAttributes",{nodeId:i})).attributes);if(t.json)return void console.log(JSON.stringify(n,null,2));if(0===Object.keys(n).length)return void console.log(k.Ay.gray("No attributes"));for(var r of Object.entries(n)){var o=S(r,2),s=o[0],p=o[1];console.log(` ${k.Ay.cyan(s)}: ${p}`)}}),function(e){return a.apply(this,arguments)}))}),function(e,t){return m.apply(this,arguments)})),Y(K.command("box-model <nodeId>").description("Get brick dimensions and position")).action((f=O(function*(e,t){var a;yield Q(t,(a=O(function*(a){yield a.send("DOM.enable");var i=parseInt(e,10),n=(yield a.send("DOM.getBoxModel",{nodeId:i})).model;t.json?console.log(JSON.stringify(n,null,2)):(console.log(k.Ay.bold(`Box Model for node ${i}`)),console.log(` Width: ${n.width}`),console.log(` Height: ${n.height}`),n.content&&console.log(` Content: [${n.content.join(", ")}]`),n.padding&&console.log(` Padding: [${n.padding.join(", ")}]`),n.border&&console.log(` Border: [${n.border.join(", ")}]`),n.margin&&console.log(` Margin: [${n.margin.join(", ")}]`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return f.apply(this,arguments)})),Y(K.command("resolve <nodeId>").description("Resolve brick to JavaScript object with properties")).action((h=O(function*(e,t){var a;yield Q(t,(a=O(function*(a){yield a.send("DOM.enable");var i=parseInt(e,10),n=(yield a.send("DOM.resolveNode",{nodeId:i})).object;if(t.json)return void console.log(JSON.stringify(n,null,2));if(console.log(k.Ay.bold(`Resolved node ${i}`)),console.log(` Type: ${n.type}`),n.className&&console.log(` Class: ${n.className}`),n.description&&console.log(` Description: ${n.description}`),n.objectId&&console.log(` Object ID: ${k.Ay.gray(n.objectId)}`),n.preview?.properties)for(var r of(console.log(k.Ay.bold(" Properties:")),n.preview.properties))console.log(` ${k.Ay.cyan(r.name)}: ${r.value}`)}),function(e){return a.apply(this,arguments)}))}),function(e,t){return h.apply(this,arguments)})),Y(K.command("focus <nodeId>").description("Focus a brick element")).action((v=O(function*(e,t){var a;yield Q(t,(a=O(function*(t){yield t.send("DOM.enable");var a=parseInt(e,10);yield t.send("DOM.focus",{nodeId:a}),console.log(k.Ay.green(`Focused node ${a}`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return v.apply(this,arguments)}));var X=z.command("input").description("Input emulation");Y(X.command("tap <x> <y>").description("Tap/click at coordinates")).action((g=O(function*(e,t,a){var i;yield Q(a,(i=O(function*(i){var n=parseFloat(e),r=parseFloat(t),o=yield i.send("Input.dispatchMouseEvent",{type:"mousePressed",x:n,y:r,button:"left",clickCount:1});yield i.send("Input.dispatchMouseEvent",{type:"mouseReleased",x:n,y:r,button:"left",clickCount:1}),(({x:e,y:t,tapResult:a,json:i})=>{if(i)return console.log(JSON.stringify({x:e,y:t,...a||{}},null,2));console.log(k.Ay.green(`Tapped at (${e}, ${t})`));var n=W(a?.element||a?.tappedElement||a?.hitElement);if(!n)return console.log(k.Ay.yellow(" Element: none"));console.log(` Element: ${n}`);var r=a?.hitElement,o=a?.tappedElement;if(r&&o&&r.nodeId!==o.nodeId){var s=W(r);s&&console.log(` Hit: ${s}`)}a&&!1===a.dispatched&&console.log(k.Ay.yellow(" Action: no pressable handler"))})({x:n,y:r,tapResult:o,json:a.json})}),function(e){return i.apply(this,arguments)}))}),function(e,t,a){return g.apply(this,arguments)})),Y(X.command("type <text>").description("Insert text into focused element")).action((y=O(function*(e,t){var a;yield Q(t,(a=O(function*(t){yield t.send("Input.insertText",{text:e}),console.log(k.Ay.green(`Typed: ${e}`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return y.apply(this,arguments)})),Y(X.command("key <key>").description("Dispatch key event (e.g., Enter, Escape, Tab)")).action((D=O(function*(e,t){var a;yield Q(t,(a=O(function*(t){yield t.send("Input.dispatchKeyEvent",{type:"keyDown",key:e}),yield t.send("Input.dispatchKeyEvent",{type:"keyUp",key:e}),console.log(k.Ay.green(`Key: ${e}`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return D.apply(this,arguments)}));var Z=z.command("network").description("Network inspection");Y(Z.command("list").description("Capture snapshot of network activity").option("--duration <ms>","Capture duration in milliseconds","2000")).action((b=O(function*(e){var t;yield Q(e,(t=O(function*(t){var a=new Map,i=parseInt(e.duration,10);t.on("Network.requestWillBeSent",e=>{a.set(e.requestId,{method:e.request.method,url:e.request.url,requestId:e.requestId,timestamp:e.timestamp})}),t.on("Network.responseReceived",e=>{var t=a.get(e.requestId);t&&(t.status=e.response.status,t.mimeType=e.response.mimeType)}),t.on("Network.loadingFailed",e=>{var t=a.get(e.requestId);t&&(t.error=e.errorText)}),yield t.send("Network.enable"),yield new Promise(e=>setTimeout(e,i)),yield t.send("Network.disable");var n=[...a.values()];if(e.json)return void console.log(JSON.stringify(n,null,2));if(console.log(k.Ay.bold(`Network Activity (captured ${(i/1e3).toFixed(1)}s, ${n.length} requests)`)),0===n.length)return void console.log(k.Ay.gray(" No network activity captured"));for(var r of n){var o=r.error?k.Ay.red("ERR"):r.status?r.status<300?k.Ay.green(r.status):r.status<400?k.Ay.yellow(r.status):k.Ay.red(r.status):k.Ay.gray("..."),s=r.url.length>60?r.url.substring(0,57)+"...":r.url;console.log(` ${o} ${k.Ay.bold(r.method.padEnd(6))} ${s} ${k.Ay.gray(`(${r.requestId})`)}`)}}),function(e){return t.apply(this,arguments)}))}),function(e){return b.apply(this,arguments)})),Y(Z.command("get <requestId>").description("Get response body for a network request")).action((x=O(function*(e,t){var a;yield Q(t,(a=O(function*(a){yield a.send("Network.enable");var i=yield a.send("Network.getResponseBody",{requestId:e}),n=i.body,r=i.base64Encoded;t.json?console.log(JSON.stringify({body:n,base64Encoded:r},null,2)):r?console.log(k.Ay.gray(`[base64 encoded, ${n.length} chars]`)):console.log(n)}),function(e){return a.apply(this,arguments)}))}),function(e,t){return x.apply(this,arguments)}));var ee=z.command("storage").description("Storage inspection"),et=ee.command("system").description("System key-value storage");Y(et.command("persist").description("Show persistent system storage entries")).action((_=O(function*(e){var t;yield Q(e,(t=O(function*(t){yield t.send("DOMStorage.enable");var a=(yield t.send("DOMStorage.getDOMStorageItems",{storageId:{securityOrigin:"bricks://app",isLocalStorage:!0}})).entries;if(e.json)return void console.log(JSON.stringify(a,null,2));for(var i of(console.log(k.Ay.bold(`Persistent Storage (${a.length} items)`)),console.log("─".repeat(60)),a)){var n=S(i,2),r=n[0],o=n[1],s=o.length>80?o.substring(0,80)+"...":o;console.log(` ${k.Ay.cyan(r)}: ${s}`)}}),function(e){return t.apply(this,arguments)}))}),function(e){return _.apply(this,arguments)})),Y(et.command("memory").description("Show in-memory system storage entries")).action((w=O(function*(e){var t;yield Q(e,(t=O(function*(t){yield t.send("DOMStorage.enable");var a=(yield t.send("DOMStorage.getDOMStorageItems",{storageId:{securityOrigin:"bricks://app",isLocalStorage:!1}})).entries;if(e.json)return void console.log(JSON.stringify(a,null,2));for(var i of(console.log(k.Ay.bold(`Memory Storage (${a.length} items)`)),console.log("─".repeat(60)),a)){var n=S(i,2),r=n[0],o=n[1],s=o.length>80?o.substring(0,80)+"...":o;console.log(` ${k.Ay.cyan(r)}: ${s}`)}}),function(e){return t.apply(this,arguments)}))}),function(e){return w.apply(this,arguments)}));var ea=ee.command("data-bank").description("Property Bank data stores");Y(ea.command("list").description("List Property Banks")).action((E=O(function*(e){var t;yield Q(e,(t=O(function*(t){yield t.send("IndexedDB.enable");var a=(yield t.send("IndexedDB.requestDatabaseNames",{securityOrigin:"bricks://app"})).databaseNames.filter(e=>e.startsWith("DATA-"));if(e.json)return void console.log(JSON.stringify(a,null,2));for(var i of(console.log(k.Ay.bold(`Property Banks (${a.length})`)),a))console.log(` ${k.Ay.cyan(i)}`)}),function(e){return t.apply(this,arguments)}))}),function(e){return E.apply(this,arguments)})),Y(ea.command("get <name> <store>").description("Query Property Bank data").option("-l, --limit <count>","Max items to fetch","25").option("-s, --skip <count>","Items to skip","0")).action((F=O(function*(e,t,a){var i;yield Q(a,(i=O(function*(i){yield i.send("IndexedDB.enable");var n=(yield i.send("IndexedDB.requestData",{securityOrigin:"bricks://app",databaseName:e,objectStoreName:t,indexName:"",skipCount:parseInt(a.skip,10),pageSize:parseInt(a.limit,10)})).objectStoreDataEntries;if(a.json)return void console.log(JSON.stringify(n,null,2));for(var r of(console.log(k.Ay.bold(`${e} / ${t} (${n.length} entries)`)),console.log("─".repeat(60)),n)){var o=JSON.stringify(r.key?.value??r.key),s=JSON.stringify(r.value?.value??r.value),p=s.length>100?s.substring(0,100)+"...":s;console.log(` ${k.Ay.cyan(o)}: ${p}`)}}),function(e){return i.apply(this,arguments)}))}),function(e,t,a){return F.apply(this,arguments)})),Y(ee.command("generator-cache").description("Show generator cache entries")).action((C=O(function*(e){var t;yield Q(e,(t=O(function*(t){yield t.send("IndexedDB.enable");var a=(yield t.send("IndexedDB.requestData",{securityOrigin:"bricks://app",databaseName:"GENERATOR_CACHE",objectStoreName:"entries",indexName:"",skipCount:0,pageSize:100})).objectStoreDataEntries;if(e.json)return void console.log(JSON.stringify(a,null,2));for(var i of(console.log(k.Ay.bold(`Generator Cache (${a.length} entries)`)),console.log("─".repeat(60)),a)){var n=JSON.stringify(i.key?.value??i.key),r=JSON.stringify(i.value?.value??i.value),o=r.length>100?r.substring(0,100)+"...":r;console.log(` ${k.Ay.cyan(n)}: ${o}`)}}),function(e){return t.apply(this,arguments)}))}),function(e){return C.apply(this,arguments)}));var ei=z.command("runtime").description("Runtime and evaluation");Y(ei.command("eval <expression>").description("Evaluate JavaScript expression").option("--await","Await promise result")).action((A=O(function*(e,t){var a;yield Q(t,(a=O(function*(a){yield a.send("Runtime.enable");var i=yield a.send("Runtime.evaluate",{expression:e,objectGroup:"console",returnByValue:!0,awaitPromise:!!t.await,generatePreview:!0});if(t.json)return void console.log(JSON.stringify(i,null,2));i.exceptionDetails&&(console.error(k.Ay.red(`Error: ${i.exceptionDetails.text}`)),i.exceptionDetails.exception?.description&&console.error(k.Ay.red(i.exceptionDetails.exception.description)),process.exit(1));var n=i.result;"undefined"===n.type?console.log(k.Ay.gray("undefined")):void 0!==n.value?console.log("object"==typeof n.value?JSON.stringify(n.value,null,2):String(n.value)):n.description?console.log(n.description):console.log(k.Ay.gray(`[${n.type}${n.subtype?`:${n.subtype}`:""}]`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return A.apply(this,arguments)})),Y(ei.command("properties <objectId>").description("Get properties of a remote object")).action((T=O(function*(e,t){var a;yield Q(t,(a=O(function*(a){var i=(yield a.send("Runtime.getProperties",{objectId:e,ownProperties:!0})).result;if(t.json)return void console.log(JSON.stringify(i,null,2));for(var n of(console.log(k.Ay.bold(`Properties of ${e}`)),i))if(n.enumerable){var r=n.value,o=r?.description||r?.value?.toString()||k.Ay.gray(`[${r?.type}]`);console.log(` ${k.Ay.cyan(n.name)}: ${o}`)}}),function(e){return a.apply(this,arguments)}))}),function(e,t){return T.apply(this,arguments)}))},11405(e,t,a){a.d(t,{l:()=>v});var i,n,r,o=a(99436),s=a(35679),p=a(7586),l=a(85382),d=a(8479),u=a(23258),c=(i=o(function*(){try{return yield Promise.all([a.e(587),a.e(647),a.e(10),a.e(117)]).then(a.bind(a,98372)),{available:!0}}catch(e){return{available:!1,error:e.message}}}),function(){return i.apply(this,arguments)}),m=(e,t,a)=>({severity:e,code:t,message:a}),f=(n=o(function*({version:e="2.25.0-beta.38",mcpCheck:t=c}={}){var a=(0,u.getCurrentProfile)(),i=(0,u.getCurrentProfileSource)(),n=(0,u.getTokenInfo)(a),r=(0,u.getBaseUrl)(),o=(0,u.getActivityLogBaseUrl)(),s=[],f={ok:!1,timestamp:new Date().toISOString(),cli:{name:"bricks",version:e},profile:{name:a,source:i},config:{path:u.CONFIG_PATH,baseUrl:r,activityLogBaseUrl:o},auth:{available:!!n?.token,source:n?.token?"config":"missing",workspaceId:n?.workspaceId||null,workspaceName:n?.workspaceName||null,createdAt:n?.createdAt||null,tokenPreview:(0,p.$l)(n?.token)},connectivity:{workspace:{ok:!1,skipped:!n?.token,error:null}},capabilities:{zeroArgMode:(0,d.z)()?"interactive":"help",mcp:{available:!1,error:null}},issues:s};if(n?.token)try{var h=yield(0,l.createClient)(r,n.token).workspace();f.connectivity.workspace={ok:!0,skipped:!1,error:null,id:h?._id||n.workspaceId||null,name:h?.name||n.workspaceName||null},f.auth.workspaceId=h?._id||f.auth.workspaceId,f.auth.workspaceName=h?.name||f.auth.workspaceName}catch(e){f.connectivity.workspace={ok:!1,skipped:!1,error:e.message},s.push(m("error","workspace_unreachable",`Workspace query failed for ${r}: ${e.message}`))}else s.push(m("warning","auth_missing","No saved token for the current profile."));var v=yield t();return f.capabilities.mcp={available:v.available,error:v.error||null},v.available||s.push(m("warning","mcp_unavailable",`MCP stdio server is unavailable: ${v.error||"Unknown error"}`)),f.ok=0===s.length,f}),function(){return n.apply(this,arguments)}),h=(e,t,a)=>`${e.padEnd(14)} ${t}${a?` ${a}`:""}`,v=new s.uB("doctor").description("Check CLI configuration, auth state, and workspace reachability").option("-j, --json","Output as JSON").action((r=o(function*(e){try{var t=yield f();if(e.json)return void(0,p.GF)(t);console.log((e=>{var t=[];if(t.push("BRICKS CLI Doctor"),t.push("─".repeat(60)),t.push(h("CLI","OK",`bricks v${e.cli.version}`)),t.push(h("Profile","OK",`${e.profile.name} (${e.profile.source})`)),t.push(h("BRICKS API","OK",e.config.baseUrl)),t.push(h("Activity Log","OK",e.config.activityLogBaseUrl)),e.auth.available){var a=e.auth.workspaceName||e.auth.workspaceId||"Unknown workspace";t.push(h("Auth","OK",`${a} (${e.auth.source}, ${e.auth.tokenPreview})`))}else t.push(h("Auth","WARN","No saved token for the current profile"));if(e.connectivity.workspace.skipped)t.push(h("Workspace","WARN","Skipped because no token is available"));else if(e.connectivity.workspace.ok){var i=e.connectivity.workspace.name||e.connectivity.workspace.id||"Unknown workspace";t.push(h("Workspace","OK",i))}else t.push(h("Workspace","FAIL",e.connectivity.workspace.error));return e.capabilities.mcp.available?t.push(h("MCP","OK","STDIO server import is available")):t.push(h("MCP","WARN",e.capabilities.mcp.error)),t.push(h("Zero-arg mode",((e,t=!1)=>e?"OK":t?"WARN":"FAIL")("interactive"===e.capabilities.zeroArgMode,"help"===e.capabilities.zeroArgMode),"interactive"===e.capabilities.zeroArgMode?"Starts Ink interactive mode on TTY":"Shows help outside TTY contexts")),e.issues.length>0&&(t.push("─".repeat(60)),t.push("Issues"),e.issues.forEach(e=>{t.push(`- [${e.severity}] ${e.message}`)})),t.join("\n")})(t))}catch(t){e.json?(0,p.OW)(t.message):console.error(`Doctor failed: ${t.message}`),process.exit(1)}}),function(e){return r.apply(this,arguments)}))},28634(e,t,a){a.d(t,{p:()=>_});var i,n,r,o,s,p,l,d=a(68832),u=a(99436),c=a(35679),m=a(73284),f=a(30155),h=a(7586),v=a(56493),g=a(68168),y=a(98593),D=e=>{if(!e)return m.Ay.gray("○");var t=Date.now()-new Date(e).getTime();return t<=3e5?m.Ay.green("●"):60>Math.floor(t/6e4)?m.Ay.yellow("○"):m.Ay.red("○")},b=(e,t)=>({id:e?._id||t,name:e?.name||"Unnamed",deviceCount:e?.devices?.length||0}),x=["refresh","clear-cache","system-menu-open","system-menu-close","system-info-open","system-info-close","local-sync-panel-open","local-sync-panel-close","debug-panel-open","debug-panel-close","logging-on","logging-off","test-panel-open","test-panel-close"],_=new c.uB("group").description("Device Group management");_.command("list").description("List all device groups").option("-j, --json","Output as JSON").action((i=u(function*(e){var t=(0,v.o)(),a=(0,f.default)("Fetching device groups...").start();try{var i=yield t.deviceGroups({});if(a.stop(),e.json)return void console.log(JSON.stringify(i,null,2));if(!i||0===i.length)return void console.log(m.Ay.yellow("No device groups found"));console.log(m.Ay.bold("\nDevice Groups")),console.log("─".repeat(80)),i.forEach(e=>{var t=e.devices?.length||0;console.log(`● ${m.Ay.cyan(e.name)} ${m.Ay.gray(`(${t} devices)`)}`),console.log(` ID: ${m.Ay.gray(e._id)}`),e.description&&console.log(` ${m.Ay.gray(e.description)}`),console.log()})}catch(e){a.fail(`Failed to list groups: ${e.message}`),process.exit(1)}}),function(e){return i.apply(this,arguments)})),_.command("get <id>").description("Get device group details").option("-j, --json","Output as JSON").action((n=u(function*(e,t){var a=(0,v.o)(),i=(0,f.default)("Fetching device group...").start();try{var n=yield a.deviceGroup({id:e});if(i.stop(),n||(console.log(m.Ay.red("Device group not found")),process.exit(1)),t.json)return void console.log(JSON.stringify(n,null,2));console.log(m.Ay.bold(`
|
|
64
|
+
${D.Ay.gray("Press Ctrl+C to stop")}`)}catch(e){console.error(D.Ay.red(`Error: ${e.message}`))}}),function(){return t.apply(this,arguments)});yield n(),setInterval(n,i)}),function(e){return h.apply(this,arguments)}))},80274(e,t,a){a.d(t,{gf:()=>H});var i,n,r,o,s,p,l,d,u,c,m,f,h,v,g,y,D,b,x,_,w,E,F,C,A,T,S,O,N=a(68832),k=a(99436),I=a(35679),$=a(73284),j=a(51455),B=a(76760),R=a(75646),V=(i=k(function*(e,t,a=3e3){var i;try{var n=new AbortController;i=setTimeout(()=>n.abort(),a);var r=yield fetch(`http://${e}:${t}/json/list`,{signal:n.signal});if(!r.ok)return null;return yield r.json()}catch{return null}finally{void 0!==i&&clearTimeout(i)}}),function(e,t){return i.apply(this,arguments)}),P=e=>{if(!e)return null;var t=e.match(/\/ws\/(.+)$/);return t?decodeURIComponent(t[1]):null},L=(n=k(function*(e,t=1e3){for(var a=[],i=e,n=0;n<10;n++){var r=B.join(i,".bricks","devtools.json");try{var o=yield j.readFile(r,"utf8"),s=JSON.parse(o),p=yield(0,R.verifyDevToolsServer)(s.address||"localhost",s.port,t);p&&a.push({name:s.name||"BRICKS Simulator",address:s.address||"localhost",port:s.port,protocols:["cdp"],hasPasscode:!1,source:"project",projectPath:i,...p})}catch{}var l=B.dirname(i);if(l===i)break;i=l}return a}),function(e){return n.apply(this,arguments)}),M=(r=k(function*({timeout:e=3e3,verify:t=!1,udpOnly:a=!1,project:i=!0,port:n=19851,cwd:r=process.cwd(),onStatus:o}={}){var s,p=(0,R.discoverDevToolsServers)({timeout:e,idleTimeout:800}),l=a?Promise.resolve([]):(o?.("Scanning via UDP + HTTP probe..."),(0,R.httpProbeSubnet)({port:n,timeout:e})),d=i?L(r,1e3):Promise.resolve([]),u=N((yield Promise.all([p,l,d])),3),c=(e=>{var t=new Map;for(var a of e){var i=a.deviceId||`${a.address}:${a.port}`,n=t.get(i);if(!n){t.set(i,{...a,addresses:[a.address],protocols:[...a.protocols||[]]});continue}for(var r of(n.addresses.includes(a.address)||n.addresses.push(a.address),"127.0.0.1"===n.address&&"127.0.0.1"!==a.address&&(n.address=a.address),a.protocols||[]))n.protocols.includes(r)||n.protocols.push(r);for(var o of Object.entries(a)){var s=N(o,2),p=s[0],l=s[1];null!=l&&"address"!==p&&"addresses"!==p&&"protocols"!==p&&(void 0===n[p]||null===n[p])&&(n[p]=l)}}return[...t.values()]})([...u[0],...u[1],...u[2]]);if(0===c.length)return[];if(t){o?.(`Verifying ${c.length} server(s)...`);var m,f=yield Promise.all(c.map((m=k(function*(e){var t=yield(0,R.verifyDevToolsServer)(e.address,e.port);return{...e,...t||{},address:e.address,port:e.port,verified:!!t,version:t?.version||e.version}}),function(e){return m.apply(this,arguments)})));c.splice(0,c.length,...f)}return o?.("Checking chrome://inspect support..."),yield Promise.all(c.map((s=k(function*(e){var t=yield V(e.address,e.port);if(t){e.chromeInspect=!0;var a=P(t[0]?.webSocketDebuggerUrl);a&&(e.passcode=a)}}),function(e){return s.apply(this,arguments)}))),c}),function(){return r.apply(this,arguments)}),U="2.24",q="19851",G="127.0.0.1",z=e=>{if(!e)return{host:void 0,port:void 0};var t=e.match(/^\[([^\]]+)\](?::(\d+))?$/);if(t)return{host:t[1],port:t[2]};var a=e.lastIndexOf(":");if(a>0&&e.indexOf(":")===a){var i=e.slice(a+1);if(/^\d+$/.test(i))return{host:e.slice(0,a),port:i}}return{host:e,port:void 0}},Y=e=>{if(!e)return!1;for(var t=e.replace(/^v/,"").split(".").map(Number),a=U.split(".").map(Number),i=0;i<a.length&&!((t[i]||0)>a[i]);i++)if((t[i]||0)<a[i])return!1;return!0},Q=e=>e?.auth?.workspaceJwt?.enabled?"workspace-jwt":e?.auth?.passcode||e?.hasPasscode?"passcode":e?.auth?"locked":"open",J=e=>"workspace-jwt"===e?$.Ay.green(e):"passcode"===e?$.Ay.yellow(e):"locked"===e?$.Ay.red(e):$.Ay.gray(e),W=(o=k(function*({info:e,cdpOptions:t,force:i=!1}){if(t.passcode||!e?.auth?.workspaceJwt?.enabled)return null;var n=yield Promise.resolve().then(a.bind(a,47988)),r=n.getCurrentProfile,o=n.getTokenInfo,s=n.getBaseUrl,p=(yield Promise.resolve().then(a.bind(a,85382))).createClient,l=(yield a.e(305).then(a.bind(a,7944))).getOrIssueDevtoolsToken,d=r(),u=o(d);if(!u?.token||!u?.workspaceId||e.workspaceId&&String(u.workspaceId)!==String(e.workspaceId))return null;var c=p(s(),u.token);return(yield l({profile:d,client:c,workspaceId:e.workspaceId||void 0,force:i})).token}),function(e){return o.apply(this,arguments)}),H=new I.uB("devtools").description("DevTools server discovery, inspection, and CDP commands").option("-a, --address <address>",`DevTools server address, host or host:port (default: ${G})`).option("-p, --port <port>",`Server port for CDP commands (default: ${q})`).option("--passcode <passcode>","Device passcode for CDP commands"),K=e=>e.option("-a, --address <address>","DevTools server address, host or host:port").option("-p, --port <port>",`Server port (default: ${q})`).option("--passcode <passcode>","Device passcode").option("-j, --json","Output as JSON"),X=(s=k(function*(e,t){var i,n,r,o=(yield Promise.resolve().then(a.bind(a,30155))).default,s=(yield Promise.resolve().then(a.bind(a,75646))).verifyDevToolsServer,p=(yield a.e(178).then(a.bind(a,28193))).createCdpClient,l=(i=H.opts(),n=z(e.address??i.address),{...e,address:n.host??G,port:e.port??i.port??n.port??q,passcode:e.passcode??i.passcode}),d=parseInt(l.port,10),u=o("Connecting to DevTools...").start();try{var c=yield s(l.address,d);c||(u.fail(`Cannot reach DevTools server at ${l.address}:${d}`),process.exit(1)),c.version&&!Y(c.version)&&(u.fail(`CDP requires app version >= ${U} (device: ${c.version})`),process.exit(1));var m=yield W({info:c,cdpOptions:l});r=p(l.address,d,{passcode:l.passcode,accessToken:m});try{yield r.connect()}catch(e){if(r.close(),!m||!/403|Forbidden/i.test(e.message))throw e;m=yield W({info:c,cdpOptions:l,force:!0}),r=p(l.address,d,{passcode:l.passcode,accessToken:m}),yield r.connect()}u.stop(),yield t(r)}catch(e){u.isSpinning&&u.stop(),console.error($.Ay.red(e.message)),process.exit(1)}finally{r?.close()}}),function(e,t){return s.apply(this,arguments)}),Z=e=>{if(!e)return{};for(var t={},a=0;a<e.length;a+=2)t[e[a]]=e[a+1];return t},ee=e=>{if(!e)return null;var t=e.nodeName||e.localName||"unknown",a=e.id||e.shortId;a&&(t+=`#${a}`),e.title&&(t+=` "${e.title}"`);var i=[];return e.nodeId&&i.push(`node ${e.nodeId}`),e.shortId&&e.shortId!==a&&i.push(e.shortId),e.brickId&&e.brickId!==e.shortId&&i.push(e.brickId),e.templateKey&&i.push(e.templateKey),i.length>0?`${t} (${i.join(", ")})`:t},et=(e,t="",a=!0,i=!0)=>{var n=[],r=i?"":a?" ":"│ ",o=e.nodeName||"#unknown";if(9===e.nodeType)o="#document";else if(3===e.nodeType){var s=e.nodeValue||"";o=$.Ay.gray(`"${s}"`)}else if(1===e.nodeType){var p=Z(e.attributes),l=p.id||p["short-id"];l&&(o+=$.Ay.gray(`#${l}`)),p.title&&(o+=` ${$.Ay.green(`"${p.title}"`)}`),void 0!==p.w&&void 0!==p.h&&(o+=$.Ay.blue(` ${p.w}\xd7${p.h}`),void 0!==p.x&&void 0!==p.y&&(o+=$.Ay.blue(` @${p.x},${p.y}`)));var d=[];void 0!==p.hide&&d.push($.Ay.red("hidden")),void 0!==p.pressable&&d.push($.Ay.yellow("pressable")),void 0!==p.editable&&d.push($.Ay.yellow("editable")),d.length>0&&(o+=` [${d.join(", ")}]`)}n.push(`${t}${i?"":a?"└─ ":"├─ "}${o}`);var u=e.children||[];return u.forEach((e,a)=>{n.push(...et(e,t+r,a===u.length-1,!1))}),n};H.command("issue-token").description("Issue a workspace-scoped DevTools access token and save it to the CLI config (used automatically by devtools commands)").option("--ttl <seconds>","Time-to-live in seconds (default 30 days)",e=>parseInt(e,10)).option("-j, --json","Output as JSON").action((p=k(function*(e){var t=yield Promise.resolve().then(a.bind(a,47988)),i=t.getCurrentProfile,n=t.getTokenInfo,r=t.getBaseUrl,o=t.CONFIG_PATH,s=(yield Promise.resolve().then(a.bind(a,85382))).createClient,p=(yield a.e(305).then(a.bind(a,7944))).getOrIssueDevtoolsToken,l=i(),d=n(l);d?.token||(console.error($.Ay.red("Not logged in. Use `bricks auth login` first.")),process.exit(1));var u=s(r(),d.token);try{var c=yield p({profile:l,client:u,ttlSeconds:e.ttl,force:!0});if(e.json)return void console.log(JSON.stringify({profile:l,workspaceId:c.workspaceId,expiresAt:c.expiresAt,jti:c.jti},null,2));console.log($.Ay.green("✓"),"DevTools access token issued and saved."),console.log(` Profile: ${l}`),console.log(` Workspace: ${c.workspaceId}`),console.log(` Expires: ${c.expiresAt}`),console.log(` jti: ${$.Ay.gray(c.jti)}`),console.log($.Ay.gray(` Saved to ${o}`))}catch(e){console.error($.Ay.red(`Issue token failed: ${e.message}`)),process.exit(1)}}),function(e){return p.apply(this,arguments)})),H.command("scan").description("Scan LAN for DevTools servers via UDP + HTTP").option("-t, --timeout <ms>","Scan timeout in milliseconds","3000").option("-j, --json","Output as JSON").option("--verify","Verify each discovered server via HTTP").option("--udp-only","Skip HTTP subnet probe (UDP only)").option("--no-project","Exclude local BRICKS project preview servers").option("-p, --port <port>","Port for HTTP probe","19851").action((l=k(function*(e){var t=(yield Promise.resolve().then(a.bind(a,30155))).default,i=yield Promise.resolve().then(a.bind(a,47988)),n=i.getCurrentProfile,r=i.getTokenInfo,o=parseInt(e.timeout,10),s=t(`Scanning for DevTools servers (${o}ms)...`).start();try{var p=yield M({timeout:o,verify:!!e.verify,udpOnly:!!e.udpOnly,project:!!e.project,port:parseInt(e.port,10),onStatus:e=>{s.text=e}});if(0===p.length){e.json?(s.stop(),console.log(JSON.stringify([],null,2))):s.info("No DevTools servers found on the network."),process.exit(0);return}s.stop(),e.json&&(console.log(JSON.stringify(p,null,2)),process.exit(0));var l=n(),d=r(l),u=d?.workspaceId||null;console.log($.Ay.bold(`
|
|
65
|
+
Found ${p.length} DevTools server(s)`)),console.log("─".repeat(80));var c=function*(e){var t=!1===e.verified?$.Ay.red("unverified"):$.Ay.green("online"),a=Q(e),i=J(a),n=(e.protocols||[]).map(e=>$.Ay.cyan(e)).join(", "),r=e.workspaceId&&u&&e.workspaceId===u,o=e.addresses||[e.address],s=o.filter(t=>t!==e.address),p=s.length>0?`${e.address}:${e.port} +${s.length} more`:`${e.address}:${e.port}`;if(console.log(` ${$.Ay.bold(e.name||"Unknown")} ${$.Ay.gray(`(${p})`)} [${t}]`),s.length>0&&console.log(` Addresses: ${o.map(e=>$.Ay.gray(e)).join(", ")}`),e.version&&console.log(` Version: ${$.Ay.green(e.version)}`),e.chromeInspect){var l=e.passcode?$.Ay.cyan(e.passcode):$.Ay.gray("no passcode");console.log(` Chrome Inspect: ${$.Ay.green("supported")} (passcode: ${l})`)}var d=` Protocols: ${n||$.Ay.gray("none")} Auth: ${i}`;if(e.deviceId&&(d+=` Device: ${$.Ay.gray(e.deviceId)}`),console.log(d),e.workspaceId){var c=r?$.Ay.green(`${e.workspaceId} (current profile)`):$.Ay.gray(e.workspaceId);console.log(` Workspace: ${c}`)}};for(var m of p)yield*c(m);console.log("─".repeat(80));var f=p[0],h=`${f.address}:${f.port||19851}`,v=Q(f),g=f.passcode?`/ws/${encodeURIComponent(f.passcode)}`:"workspace-jwt"===v?"/ws/<workspace-token>":"/ws/<passcode>";console.log($.Ay.gray(`
|
|
66
|
+
Connect via: http://${h}/devtools-frontend/inspector.html?ws=${h}${g}`)),console.log($.Ay.gray(`Legacy: devtools://devtools/bundled/inspector.html?ws=${h}${g}`)),process.exit(0)}catch(e){s.fail(`Scan failed: ${e.message}`),process.exit(1)}}),function(e){return l.apply(this,arguments)})),H.command("open <address>").description("Show DevTools server information").option("-p, --port <port>",`Server port (default: ${q})`).option("--info","Show connection URLs").action((d=k(function*(e,t){var i=(yield Promise.resolve().then(a.bind(a,30155))).default,n=(yield Promise.resolve().then(a.bind(a,75646))).verifyDevToolsServer,r=z(e),o=r.host??G,s=parseInt(t.port??r.port??q,10),p=`${o}:${s}`,l=i(`Fetching server info from ${p}...`).start(),d=yield n(o,s);d||(l.fail(`Could not reach DevTools server at ${p}`),process.exit(1)),l.stop();var u=yield V(o,s),c=u?P(u?.[0]?.webSocketDebuggerUrl):null,m=Q(d),f=c?`/ws/${encodeURIComponent(c)}`:"workspace-jwt"===m?"/ws/<workspace-token>":"/ws/<passcode>";if(t.info){console.log($.Ay.bold("Connection URLs")),console.log("─".repeat(60)),console.log(` Web UI: ${$.Ay.cyan(`http://${p}`)}`),console.log(` CDP: ${$.Ay.cyan(`http://${p}/devtools-frontend/inspector.html?ws=${p}${f}`)}`),console.log(` CDP legacy: ${$.Ay.cyan(`devtools://devtools/bundled/inspector.html?ws=${p}${f}`)}`),console.log(` MCP: ${$.Ay.cyan(`http://${p}/mcp`)}`),console.log(` MCP SSE: ${$.Ay.cyan(`http://${p}/sse`)}`),console.log(` Info: ${$.Ay.cyan(`http://${p}/devtools/info`)}`),console.log("─".repeat(60)),console.log(),console.log($.Ay.bold("Authorization")),d.auth?.workspaceJwt?.enabled&&console.log(` Workspace JWT: ${$.Ay.green("enabled")} (kid: ${d.auth.workspaceJwt.kid})`),c&&console.log(` Passcode: ${$.Ay.cyan(c)}`),console.log(" MCP and MCP SSE require a Bearer token header:"),console.log(` ${$.Ay.gray(`Authorization: Bearer ${d.auth?.workspaceJwt?.enabled?"<workspace-token>":c||"<passcode>"}`)}`);return}if(console.log($.Ay.bold("DevTools Server")),console.log("─".repeat(60)),console.log(` Name: ${$.Ay.cyan(d.name||"Unknown")}`),console.log(` Version: ${d.version?$.Ay.green(d.version):$.Ay.gray("N/A")}`),console.log(` Device ID: ${$.Ay.gray(d.deviceId||"N/A")}`),console.log(` Workspace: ${$.Ay.gray(d.workspaceId||"N/A")}`),console.log(` Protocols: ${(d.protocols||[]).map(e=>$.Ay.cyan(e)).join(", ")||$.Ay.gray("none")}`),console.log(` Auth: ${J(m)}`),console.log(` Port: ${d.port}`),u){var h=c?$.Ay.cyan(c):$.Ay.gray("no passcode");console.log(` Inspect: ${$.Ay.green("chrome://inspect supported")} (passcode: ${h})`)}else console.log(` Inspect: ${$.Ay.gray("chrome://inspect not available")}`);console.log("─".repeat(60)),d.version&&!Y(d.version)&&console.log($.Ay.yellow(`
|
|
67
|
+
CDP commands require version >= ${U}`)),console.log($.Ay.gray(`
|
|
68
|
+
Use --info to see connection URLs`))}),function(e,t){return d.apply(this,arguments)})),K(H.command("screenshot").description("Capture device screenshot").option("-o, --output <path>","Output file path")).action((u=k(function*(e){var t;yield X(e,(t=k(function*(t){var i=yield t.send("Page.captureScreenshot",{format:"png"});i.data||(console.error($.Ay.red("No screenshot data received")),process.exit(1));var n=yield Promise.resolve().then(a.t.bind(a,73024,19)),r=yield Promise.resolve().then(a.t.bind(a,76760,19)),o=e.output||`screenshot-${Date.now()}.png`,s=r.resolve(o);n.writeFileSync(s,Buffer.from(i.data,"base64")),console.log($.Ay.green(`Screenshot saved to ${s}`))}),function(e){return t.apply(this,arguments)}))}),function(e){return u.apply(this,arguments)}));var ea=H.command("brick").description("Brick component inspection");K(ea.command("tree").description("Print brick component tree").option("-d, --depth <depth>","Max depth (-1 for full)","3")).action((c=k(function*(e){var t;yield X(e,(t=k(function*(t){yield t.send("DOM.enable");var a=parseInt(e.depth,10),i=(yield t.send("DOM.getDocument",{depth:a})).root;e.json?console.log(JSON.stringify(i,null,2)):console.log(et(i).join("\n"))}),function(e){return t.apply(this,arguments)}))}),function(e){return c.apply(this,arguments)})),K(ea.command("query <selector>").description("Find brick by CSS selector")).action((m=k(function*(e,t){var a;yield X(t,(a=k(function*(a){yield a.send("DOM.enable");var i=(yield a.send("DOM.getDocument",{depth:0})).root,n=(yield a.send("DOM.querySelector",{nodeId:i.nodeId,selector:e})).nodeId;if(0===n)return void console.log($.Ay.yellow("No element found"));var r=yield a.send("DOM.describeNode",{nodeId:n}),o=Z((yield a.send("DOM.getAttributes",{nodeId:n})).attributes);if(t.json)return void console.log(JSON.stringify({nodeId:n,...r.node,attributes:o},null,2));if(console.log($.Ay.bold(`Node ${n}: ${r.node?.nodeName||"unknown"}`)),Object.keys(o).length>0)for(var s of(console.log($.Ay.bold("Attributes:")),Object.entries(o))){var p=N(s,2),l=p[0],d=p[1];console.log(` ${$.Ay.cyan(l)}: ${d}`)}}),function(e){return a.apply(this,arguments)}))}),function(e,t){return m.apply(this,arguments)})),K(ea.command("query-all <selector>").description("Find all bricks matching CSS selector")).action((f=k(function*(e,t){var a;yield X(t,(a=k(function*(a){yield a.send("DOM.enable");var i=(yield a.send("DOM.getDocument",{depth:0})).root,n=(yield a.send("DOM.querySelectorAll",{nodeId:i.nodeId,selector:e})).nodeIds;if(t.json)return void console.log(JSON.stringify({nodeIds:n,count:n.length},null,2));for(var r of(console.log($.Ay.bold(`Found ${n.length} element(s)`)),n)){var o=yield a.send("DOM.describeNode",{nodeId:r}),s=Z((yield a.send("DOM.getAttributes",{nodeId:r})).attributes),p=s.id||s["short-id"]||"";console.log(` ${r}: ${o.node?.nodeName}${p?$.Ay.gray(`#${p}`):""}`)}}),function(e){return a.apply(this,arguments)}))}),function(e,t){return f.apply(this,arguments)})),K(ea.command("attributes <nodeId>").description("Get brick attributes")).action((h=k(function*(e,t){var a;yield X(t,(a=k(function*(a){yield a.send("DOM.enable");var i=parseInt(e,10),n=Z((yield a.send("DOM.getAttributes",{nodeId:i})).attributes);if(t.json)return void console.log(JSON.stringify(n,null,2));if(0===Object.keys(n).length)return void console.log($.Ay.gray("No attributes"));for(var r of Object.entries(n)){var o=N(r,2),s=o[0],p=o[1];console.log(` ${$.Ay.cyan(s)}: ${p}`)}}),function(e){return a.apply(this,arguments)}))}),function(e,t){return h.apply(this,arguments)})),K(ea.command("box-model <nodeId>").description("Get brick dimensions and position")).action((v=k(function*(e,t){var a;yield X(t,(a=k(function*(a){yield a.send("DOM.enable");var i=parseInt(e,10),n=(yield a.send("DOM.getBoxModel",{nodeId:i})).model;t.json?console.log(JSON.stringify(n,null,2)):(console.log($.Ay.bold(`Box Model for node ${i}`)),console.log(` Width: ${n.width}`),console.log(` Height: ${n.height}`),n.content&&console.log(` Content: [${n.content.join(", ")}]`),n.padding&&console.log(` Padding: [${n.padding.join(", ")}]`),n.border&&console.log(` Border: [${n.border.join(", ")}]`),n.margin&&console.log(` Margin: [${n.margin.join(", ")}]`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return v.apply(this,arguments)})),K(ea.command("resolve <nodeId>").description("Resolve brick to JavaScript object with properties")).action((g=k(function*(e,t){var a;yield X(t,(a=k(function*(a){yield a.send("DOM.enable");var i=parseInt(e,10),n=(yield a.send("DOM.resolveNode",{nodeId:i})).object;if(t.json)return void console.log(JSON.stringify(n,null,2));if(console.log($.Ay.bold(`Resolved node ${i}`)),console.log(` Type: ${n.type}`),n.className&&console.log(` Class: ${n.className}`),n.description&&console.log(` Description: ${n.description}`),n.objectId&&console.log(` Object ID: ${$.Ay.gray(n.objectId)}`),n.preview?.properties)for(var r of(console.log($.Ay.bold(" Properties:")),n.preview.properties))console.log(` ${$.Ay.cyan(r.name)}: ${r.value}`)}),function(e){return a.apply(this,arguments)}))}),function(e,t){return g.apply(this,arguments)})),K(ea.command("focus <nodeId>").description("Focus a brick element")).action((y=k(function*(e,t){var a;yield X(t,(a=k(function*(t){yield t.send("DOM.enable");var a=parseInt(e,10);yield t.send("DOM.focus",{nodeId:a}),console.log($.Ay.green(`Focused node ${a}`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return y.apply(this,arguments)}));var ei=H.command("input").description("Input emulation");K(ei.command("tap <x> <y>").description("Tap/click at coordinates")).action((D=k(function*(e,t,a){var i;yield X(a,(i=k(function*(i){var n=parseFloat(e),r=parseFloat(t),o=yield i.send("Input.dispatchMouseEvent",{type:"mousePressed",x:n,y:r,button:"left",clickCount:1});yield i.send("Input.dispatchMouseEvent",{type:"mouseReleased",x:n,y:r,button:"left",clickCount:1}),(({x:e,y:t,tapResult:a,json:i})=>{if(i)return console.log(JSON.stringify({x:e,y:t,...a||{}},null,2));console.log($.Ay.green(`Tapped at (${e}, ${t})`));var n=ee(a?.element||a?.tappedElement||a?.hitElement);if(!n)return console.log($.Ay.yellow(" Element: none"));console.log(` Element: ${n}`);var r=a?.hitElement,o=a?.tappedElement;if(r&&o&&r.nodeId!==o.nodeId){var s=ee(r);s&&console.log(` Hit: ${s}`)}a&&!1===a.dispatched&&console.log($.Ay.yellow(" Action: no pressable handler"))})({x:n,y:r,tapResult:o,json:a.json})}),function(e){return i.apply(this,arguments)}))}),function(e,t,a){return D.apply(this,arguments)})),K(ei.command("type <text>").description("Insert text into focused element")).action((b=k(function*(e,t){var a;yield X(t,(a=k(function*(t){yield t.send("Input.insertText",{text:e}),console.log($.Ay.green(`Typed: ${e}`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return b.apply(this,arguments)})),K(ei.command("key <key>").description("Dispatch key event (e.g., Enter, Escape, Tab)")).action((x=k(function*(e,t){var a;yield X(t,(a=k(function*(t){yield t.send("Input.dispatchKeyEvent",{type:"keyDown",key:e}),yield t.send("Input.dispatchKeyEvent",{type:"keyUp",key:e}),console.log($.Ay.green(`Key: ${e}`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return x.apply(this,arguments)}));var en=H.command("network").description("Network inspection");K(en.command("list").description("Capture snapshot of network activity").option("--duration <ms>","Capture duration in milliseconds","2000")).action((_=k(function*(e){var t;yield X(e,(t=k(function*(t){var a=new Map,i=parseInt(e.duration,10);t.on("Network.requestWillBeSent",e=>{a.set(e.requestId,{method:e.request.method,url:e.request.url,requestId:e.requestId,timestamp:e.timestamp})}),t.on("Network.responseReceived",e=>{var t=a.get(e.requestId);t&&(t.status=e.response.status,t.mimeType=e.response.mimeType)}),t.on("Network.loadingFailed",e=>{var t=a.get(e.requestId);t&&(t.error=e.errorText)}),yield t.send("Network.enable"),yield new Promise(e=>setTimeout(e,i)),yield t.send("Network.disable");var n=[...a.values()];if(e.json)return void console.log(JSON.stringify(n,null,2));if(console.log($.Ay.bold(`Network Activity (captured ${(i/1e3).toFixed(1)}s, ${n.length} requests)`)),0===n.length)return void console.log($.Ay.gray(" No network activity captured"));for(var r of n){var o=r.error?$.Ay.red("ERR"):r.status?r.status<300?$.Ay.green(r.status):r.status<400?$.Ay.yellow(r.status):$.Ay.red(r.status):$.Ay.gray("..."),s=r.url.length>60?r.url.substring(0,57)+"...":r.url;console.log(` ${o} ${$.Ay.bold(r.method.padEnd(6))} ${s} ${$.Ay.gray(`(${r.requestId})`)}`)}}),function(e){return t.apply(this,arguments)}))}),function(e){return _.apply(this,arguments)})),K(en.command("get <requestId>").description("Get response body for a network request")).action((w=k(function*(e,t){var a;yield X(t,(a=k(function*(a){yield a.send("Network.enable");var i=yield a.send("Network.getResponseBody",{requestId:e}),n=i.body,r=i.base64Encoded;t.json?console.log(JSON.stringify({body:n,base64Encoded:r},null,2)):r?console.log($.Ay.gray(`[base64 encoded, ${n.length} chars]`)):console.log(n)}),function(e){return a.apply(this,arguments)}))}),function(e,t){return w.apply(this,arguments)}));var er=H.command("storage").description("Storage inspection"),eo=er.command("system").description("System key-value storage");K(eo.command("persist").description("Show persistent system storage entries")).action((E=k(function*(e){var t;yield X(e,(t=k(function*(t){yield t.send("DOMStorage.enable");var a=(yield t.send("DOMStorage.getDOMStorageItems",{storageId:{securityOrigin:"bricks://app",isLocalStorage:!0}})).entries;if(e.json)return void console.log(JSON.stringify(a,null,2));for(var i of(console.log($.Ay.bold(`Persistent Storage (${a.length} items)`)),console.log("─".repeat(60)),a)){var n=N(i,2),r=n[0],o=n[1],s=o.length>80?o.substring(0,80)+"...":o;console.log(` ${$.Ay.cyan(r)}: ${s}`)}}),function(e){return t.apply(this,arguments)}))}),function(e){return E.apply(this,arguments)})),K(eo.command("memory").description("Show in-memory system storage entries")).action((F=k(function*(e){var t;yield X(e,(t=k(function*(t){yield t.send("DOMStorage.enable");var a=(yield t.send("DOMStorage.getDOMStorageItems",{storageId:{securityOrigin:"bricks://app",isLocalStorage:!1}})).entries;if(e.json)return void console.log(JSON.stringify(a,null,2));for(var i of(console.log($.Ay.bold(`Memory Storage (${a.length} items)`)),console.log("─".repeat(60)),a)){var n=N(i,2),r=n[0],o=n[1],s=o.length>80?o.substring(0,80)+"...":o;console.log(` ${$.Ay.cyan(r)}: ${s}`)}}),function(e){return t.apply(this,arguments)}))}),function(e){return F.apply(this,arguments)}));var es=er.command("data-bank").description("Property Bank data stores");K(es.command("list").description("List Property Banks")).action((C=k(function*(e){var t;yield X(e,(t=k(function*(t){yield t.send("IndexedDB.enable");var a=(yield t.send("IndexedDB.requestDatabaseNames",{securityOrigin:"bricks://app"})).databaseNames.filter(e=>e.startsWith("DATA-"));if(e.json)return void console.log(JSON.stringify(a,null,2));for(var i of(console.log($.Ay.bold(`Property Banks (${a.length})`)),a))console.log(` ${$.Ay.cyan(i)}`)}),function(e){return t.apply(this,arguments)}))}),function(e){return C.apply(this,arguments)})),K(es.command("get <name> <store>").description("Query Property Bank data").option("-l, --limit <count>","Max items to fetch","25").option("-s, --skip <count>","Items to skip","0")).action((A=k(function*(e,t,a){var i;yield X(a,(i=k(function*(i){yield i.send("IndexedDB.enable");var n=(yield i.send("IndexedDB.requestData",{securityOrigin:"bricks://app",databaseName:e,objectStoreName:t,indexName:"",skipCount:parseInt(a.skip,10),pageSize:parseInt(a.limit,10)})).objectStoreDataEntries;if(a.json)return void console.log(JSON.stringify(n,null,2));for(var r of(console.log($.Ay.bold(`${e} / ${t} (${n.length} entries)`)),console.log("─".repeat(60)),n)){var o=JSON.stringify(r.key?.value??r.key),s=JSON.stringify(r.value?.value??r.value),p=s.length>100?s.substring(0,100)+"...":s;console.log(` ${$.Ay.cyan(o)}: ${p}`)}}),function(e){return i.apply(this,arguments)}))}),function(e,t,a){return A.apply(this,arguments)})),K(er.command("generator-cache").description("Show generator cache entries")).action((T=k(function*(e){var t;yield X(e,(t=k(function*(t){yield t.send("IndexedDB.enable");var a=(yield t.send("IndexedDB.requestData",{securityOrigin:"bricks://app",databaseName:"GENERATOR_CACHE",objectStoreName:"entries",indexName:"",skipCount:0,pageSize:100})).objectStoreDataEntries;if(e.json)return void console.log(JSON.stringify(a,null,2));for(var i of(console.log($.Ay.bold(`Generator Cache (${a.length} entries)`)),console.log("─".repeat(60)),a)){var n=JSON.stringify(i.key?.value??i.key),r=JSON.stringify(i.value?.value??i.value),o=r.length>100?r.substring(0,100)+"...":r;console.log(` ${$.Ay.cyan(n)}: ${o}`)}}),function(e){return t.apply(this,arguments)}))}),function(e){return T.apply(this,arguments)}));var ep=H.command("runtime").description("Runtime and evaluation");K(ep.command("eval <expression>").description("Evaluate JavaScript expression").option("--await","Await promise result")).action((S=k(function*(e,t){var a;yield X(t,(a=k(function*(a){yield a.send("Runtime.enable");var i=yield a.send("Runtime.evaluate",{expression:e,objectGroup:"console",returnByValue:!0,awaitPromise:!!t.await,generatePreview:!0});if(t.json)return void console.log(JSON.stringify(i,null,2));i.exceptionDetails&&(console.error($.Ay.red(`Error: ${i.exceptionDetails.text}`)),i.exceptionDetails.exception?.description&&console.error($.Ay.red(i.exceptionDetails.exception.description)),process.exit(1));var n=i.result;"undefined"===n.type?console.log($.Ay.gray("undefined")):void 0!==n.value?console.log("object"==typeof n.value?JSON.stringify(n.value,null,2):String(n.value)):n.description?console.log(n.description):console.log($.Ay.gray(`[${n.type}${n.subtype?`:${n.subtype}`:""}]`))}),function(e){return a.apply(this,arguments)}))}),function(e,t){return S.apply(this,arguments)})),K(ep.command("properties <objectId>").description("Get properties of a remote object")).action((O=k(function*(e,t){var a;yield X(t,(a=k(function*(a){var i=(yield a.send("Runtime.getProperties",{objectId:e,ownProperties:!0})).result;if(t.json)return void console.log(JSON.stringify(i,null,2));for(var n of(console.log($.Ay.bold(`Properties of ${e}`)),i))if(n.enumerable){var r=n.value,o=r?.description||r?.value?.toString()||$.Ay.gray(`[${r?.type}]`);console.log(` ${$.Ay.cyan(n.name)}: ${o}`)}}),function(e){return a.apply(this,arguments)}))}),function(e,t){return O.apply(this,arguments)}))},11405(e,t,a){a.d(t,{l:()=>v});var i,n,r,o=a(99436),s=a(35679),p=a(7586),l=a(85382),d=a(8479),u=a(47988),c=(i=o(function*(){try{return yield Promise.all([a.e(587),a.e(647),a.e(10),a.e(117)]).then(a.bind(a,98372)),{available:!0}}catch(e){return{available:!1,error:e.message}}}),function(){return i.apply(this,arguments)}),m=(e,t,a)=>({severity:e,code:t,message:a}),f=(n=o(function*({version:e="2.25.0-beta.40",mcpCheck:t=c}={}){var a=(0,u.getCurrentProfile)(),i=(0,u.getCurrentProfileSource)(),n=(0,u.getTokenInfo)(a),r=(0,u.getBaseUrl)(),o=(0,u.getActivityLogBaseUrl)(),s=[],f={ok:!1,timestamp:new Date().toISOString(),cli:{name:"bricks",version:e},profile:{name:a,source:i},config:{path:u.CONFIG_PATH,baseUrl:r,activityLogBaseUrl:o},auth:{available:!!n?.token,source:n?.token?"config":"missing",workspaceId:n?.workspaceId||null,workspaceName:n?.workspaceName||null,createdAt:n?.createdAt||null,tokenPreview:(0,p.$l)(n?.token)},connectivity:{workspace:{ok:!1,skipped:!n?.token,error:null}},capabilities:{zeroArgMode:(0,d.z)()?"interactive":"help",mcp:{available:!1,error:null}},issues:s};if(n?.token)try{var h=yield(0,l.createClient)(r,n.token).workspace();f.connectivity.workspace={ok:!0,skipped:!1,error:null,id:h?._id||n.workspaceId||null,name:h?.name||n.workspaceName||null},f.auth.workspaceId=h?._id||f.auth.workspaceId,f.auth.workspaceName=h?.name||f.auth.workspaceName}catch(e){f.connectivity.workspace={ok:!1,skipped:!1,error:e.message},s.push(m("error","workspace_unreachable",`Workspace query failed for ${r}: ${e.message}`))}else s.push(m("warning","auth_missing","No saved token for the current profile."));var v=yield t();return f.capabilities.mcp={available:v.available,error:v.error||null},v.available||s.push(m("warning","mcp_unavailable",`MCP stdio server is unavailable: ${v.error||"Unknown error"}`)),f.ok=0===s.length,f}),function(){return n.apply(this,arguments)}),h=(e,t,a)=>`${e.padEnd(14)} ${t}${a?` ${a}`:""}`,v=new s.uB("doctor").description("Check CLI configuration, auth state, and workspace reachability").option("-j, --json","Output as JSON").action((r=o(function*(e){try{var t=yield f();if(e.json)return void(0,p.GF)(t);console.log((e=>{var t=[];if(t.push("BRICKS CLI Doctor"),t.push("─".repeat(60)),t.push(h("CLI","OK",`bricks v${e.cli.version}`)),t.push(h("Profile","OK",`${e.profile.name} (${e.profile.source})`)),t.push(h("BRICKS API","OK",e.config.baseUrl)),t.push(h("Activity Log","OK",e.config.activityLogBaseUrl)),e.auth.available){var a=e.auth.workspaceName||e.auth.workspaceId||"Unknown workspace";t.push(h("Auth","OK",`${a} (${e.auth.source}, ${e.auth.tokenPreview})`))}else t.push(h("Auth","WARN","No saved token for the current profile"));if(e.connectivity.workspace.skipped)t.push(h("Workspace","WARN","Skipped because no token is available"));else if(e.connectivity.workspace.ok){var i=e.connectivity.workspace.name||e.connectivity.workspace.id||"Unknown workspace";t.push(h("Workspace","OK",i))}else t.push(h("Workspace","FAIL",e.connectivity.workspace.error));return e.capabilities.mcp.available?t.push(h("MCP","OK","STDIO server import is available")):t.push(h("MCP","WARN",e.capabilities.mcp.error)),t.push(h("Zero-arg mode",((e,t=!1)=>e?"OK":t?"WARN":"FAIL")("interactive"===e.capabilities.zeroArgMode,"help"===e.capabilities.zeroArgMode),"interactive"===e.capabilities.zeroArgMode?"Starts Ink interactive mode on TTY":"Shows help outside TTY contexts")),e.issues.length>0&&(t.push("─".repeat(60)),t.push("Issues"),e.issues.forEach(e=>{t.push(`- [${e.severity}] ${e.message}`)})),t.join("\n")})(t))}catch(t){e.json?(0,p.OW)(t.message):console.error(`Doctor failed: ${t.message}`),process.exit(1)}}),function(e){return r.apply(this,arguments)}))},28634(e,t,a){a.d(t,{p:()=>_});var i,n,r,o,s,p,l,d=a(68832),u=a(99436),c=a(35679),m=a(73284),f=a(30155),h=a(7586),v=a(56493),g=a(68168),y=a(98593),D=e=>{if(!e)return m.Ay.gray("○");var t=Date.now()-new Date(e).getTime();return t<=3e5?m.Ay.green("●"):60>Math.floor(t/6e4)?m.Ay.yellow("○"):m.Ay.red("○")},b=(e,t)=>({id:e?._id||t,name:e?.name||"Unnamed",deviceCount:e?.devices?.length||0}),x=["refresh","clear-cache","system-menu-open","system-menu-close","system-info-open","system-info-close","local-sync-panel-open","local-sync-panel-close","debug-panel-open","debug-panel-close","logging-on","logging-off","test-panel-open","test-panel-close"],_=new c.uB("group").description("Device Group management");_.command("list").description("List all device groups").option("-j, --json","Output as JSON").action((i=u(function*(e){var t=(0,v.o)(),a=(0,f.default)("Fetching device groups...").start();try{var i=yield t.deviceGroups({});if(a.stop(),e.json)return void console.log(JSON.stringify(i,null,2));if(!i||0===i.length)return void console.log(m.Ay.yellow("No device groups found"));console.log(m.Ay.bold("\nDevice Groups")),console.log("─".repeat(80)),i.forEach(e=>{var t=e.devices?.length||0;console.log(`● ${m.Ay.cyan(e.name)} ${m.Ay.gray(`(${t} devices)`)}`),console.log(` ID: ${m.Ay.gray(e._id)}`),e.description&&console.log(` ${m.Ay.gray(e.description)}`),console.log()})}catch(e){a.fail(`Failed to list groups: ${e.message}`),process.exit(1)}}),function(e){return i.apply(this,arguments)})),_.command("get <id>").description("Get device group details").option("-j, --json","Output as JSON").action((n=u(function*(e,t){var a=(0,v.o)(),i=(0,f.default)("Fetching device group...").start();try{var n=yield a.deviceGroup({id:e});if(i.stop(),n||(console.log(m.Ay.red("Device group not found")),process.exit(1)),t.json)return void console.log(JSON.stringify(n,null,2));console.log(m.Ay.bold(`
|
|
67
69
|
Device Group: ${n.name}`)),console.log("─".repeat(60)),console.log(`ID: ${m.Ay.gray(n._id)}`),console.log(`Description: ${n.description||m.Ay.gray("N/A")}`),console.log(`Tags: ${n.tags?.join(", ")||m.Ay.gray("None")}`),console.log(`Created: ${m.Ay.gray(n.create_datetime)}`),console.log(`Modified: ${m.Ay.gray(n.last_modify_datetime)}`),n.devices?.length>0&&(console.log(`
|
|
68
70
|
${m.Ay.bold("Devices")} (${n.devices.length})`),n.devices.forEach(e=>{var t=e.device_target_name||e.device_id;console.log(` - ${t} ${m.Ay.gray(`(${e.device_id})`)}`)})),console.log("─".repeat(60))}catch(e){i.fail(`Failed to get group: ${e.message}`),process.exit(1)}}),function(e,t){return n.apply(this,arguments)})),_.command("resolve <query>").description("Resolve a device group name or ID to stable IDs").option("-l, --limit <limit>","Limit search results",e=>Number.parseInt(e,10),10).option("-j, --json","Output as JSON").action((r=u(function*(e,t){var a=(0,v.o)(),i=t.json?null:(0,f.default)("Resolving device group...").start();try{var n=yield(0,g.Y)(()=>a.deviceGroup({id:e})),r=n?[n]:yield a.deviceGroups({paginate:{limit:t.limit}}),o=n?r:(r||[]).filter(t=>t.name?.toLowerCase().includes(e.trim().toLowerCase())),s=(0,g.K)({resource:"group",query:e,items:o||[],fields:["_id","name"],selectedBy:n?"id":null});if(i&&i.stop(),t.json)return void(0,h.GF)(s);if(s.resolved){var p=s.resolved;console.log(m.Ay.bold("\nResolved Device Group")),console.log("─".repeat(60)),console.log(`Name: ${m.Ay.cyan(p.name||"Unnamed")}`),console.log(`ID: ${m.Ay.gray(p._id)}`),console.log(`Selected By: ${s.selectedBy}`),console.log("─".repeat(60));return}if(0===s.matches.length)return void console.log(m.Ay.yellow(`No device groups matched "${e}"`));console.log(m.Ay.bold(`
|
|
69
71
|
Matching Device Groups (${s.matches.length})`)),console.log("─".repeat(80)),s.matches.forEach(e=>{console.log(`${m.Ay.cyan(e.name||"Unnamed")} ${m.Ay.gray(e._id)}`)}),console.log("─".repeat(80))}catch(t){i?i.fail(`Failed to resolve device group: ${t.message}`):(0,h.OW)(t.message,{resource:"group",query:e}),process.exit(1)}}),function(e,t){return r.apply(this,arguments)})),_.command("devices <id>").description("List devices in a group with status").option("-j, --json","Output as JSON").action((o=u(function*(e,t){var a=(0,v.o)(),i=(0,f.default)("Fetching devices...").start();try{var n=yield a.devicesByGroup({id:e});if(i.stop(),t.json)return void console.log(JSON.stringify(n,null,2));if(!n||0===n.length)return void console.log(m.Ay.yellow("No devices in this group"));console.log(m.Ay.bold("\nDevices in Group")),console.log("─".repeat(80)),n.forEach(e=>{var t=e.entry_detail?.watch_dog_timer?.last_alive_time,a=D(t),i=e.name||e.device_name||e.device_target_name,n=e.entry_detail?.application?.name||m.Ay.gray("No app");console.log(`${a} ${m.Ay.cyan(i.padEnd(30))} ${n}`)}),console.log("─".repeat(80))}catch(e){i.fail(`Failed to get devices: ${e.message}`),process.exit(1)}}),function(e,t){return o.apply(this,arguments)})),_.command("dispatch <id> <action>").description("Dispatch action to all devices in group").option("--dry-run","Validate inputs and show the dispatch plan without sending it").option("-j, --json","Output as JSON").action((s=u(function*(e,t,a){var i=(0,v.o)(),n=a.json?null:(0,f.default)(`Dispatching ${t}...`).start();x.includes(t)||(a.json?(0,h.OW)(`Invalid action. Valid actions: ${x.join(", ")}`,{action:"group.dispatch",target:{id:e}}):n.fail(`Invalid action. Valid actions: ${x.join(", ")}`),process.exit(1));try{var r=yield i.deviceGroup({id:e});if(!r)throw Error("Device group not found");if(a.dryRun){n&&n.stop(),(0,y.S5)({action:"group.dispatch",target:b(r,e),request:{action:t},checks:[(0,y.Iy)("group exists",!0,`${r.name} (${r._id})`),(0,y.Iy)("action is valid",!0)],json:a.json});return}var o=yield i.dispatchDeviceGroupAction({id:e,action:t});a.json?(0,y.yd)({action:"group.dispatch",target:b(r,e),result:{action:t,success:o?.success||0,failed:o?.failed||0},json:!0}):(n.succeed(`Action dispatched: ${m.Ay.green(t)}`),o&&(console.log(`Success: ${m.Ay.green(o.success||0)}`),console.log(`Failed: ${m.Ay.red(o.failed||0)}`)))}catch(t){a.json?(0,h.OW)(t.message,{action:"group.dispatch",target:{id:e}}):n.fail(`Failed to dispatch action: ${t.message}`),process.exit(1)}}),function(e,t,a){return s.apply(this,arguments)})),_.command("refresh <id>").description("Refresh all devices in group").option("--dry-run","Validate inputs and show the refresh plan without sending it").option("-j, --json","Output as JSON").action((p=u(function*(e,t){var a=(0,v.o)(),i=t.json?null:(0,f.default)("Refreshing devices...").start();try{var n=yield a.deviceGroup({id:e});if(!n)throw Error("Device group not found");if(t.dryRun){i&&i.stop(),(0,y.S5)({action:"group.refresh",target:b(n,e),request:{action:"refresh"},checks:[(0,y.Iy)("group exists",!0,`${n.name} (${n._id})`)],json:t.json});return}var r=yield a.dispatchDeviceGroupAction({id:e,action:"refresh"});t.json?(0,y.yd)({action:"group.refresh",target:b(n,e),result:{success:r?.success||0,failed:r?.failed||0},json:!0}):(i.succeed("Devices refreshed"),r&&(console.log(`Success: ${m.Ay.green(r.success||0)}`),console.log(`Failed: ${m.Ay.red(r.failed||0)}`)))}catch(a){t.json?(0,h.OW)(a.message,{action:"group.refresh",target:{id:e}}):i.fail(`Failed to refresh: ${a.message}`),process.exit(1)}}),function(e,t){return p.apply(this,arguments)})),_.command("monitor <id>").description("Monitor devices in group (polls every 60s)").option("-i, --interval <seconds>","Polling interval in seconds","60").action((l=u(function*(e,t){var a,i=(0,v.o)(),n=1e3*parseInt(t.interval,10);console.log(m.Ay.bold("\nDevice Group Monitor")),console.log(m.Ay.gray(`Polling every ${t.interval}s. Press Ctrl+C to stop.
|
|
70
72
|
`));var r=(a=u(function*(){try{var t=yield Promise.all([i.deviceGroup({id:e}),i.devicesByGroup({id:e})]),a=d(t,2),n=a[0],r=a[1];if(process.stdout.write("\x1b[2J\x1b[0f"),console.log(m.Ay.bold(`Device Group: ${n.name}`)+m.Ay.gray(` - ${new Date().toLocaleTimeString()}`)),console.log("─".repeat(80)),!r||0===r.length)return void console.log(m.Ay.yellow("No devices in this group"));var o=0,s=0;r.forEach(e=>{var t=e.entry_detail?.watch_dog_timer?.last_alive_time,a=D(t),i=e.name||e.device_name||e.device_target_name,n=e.entry_detail?.application?.name||m.Ay.gray("No app");t&&Date.now()-new Date(t).getTime()<=3e5?o++:s++,console.log(`${a} ${m.Ay.cyan(i.padEnd(30))} ${n}`)}),console.log("─".repeat(80)),console.log(`Online: ${m.Ay.green(o)} Offline: ${m.Ay.red(s)}`),console.log(`
|
|
71
|
-
${m.Ay.gray("Press Ctrl+C to stop")}`)}catch(e){console.error(m.Ay.red(`Error: ${e.message}`))}}),function(){return a.apply(this,arguments)});yield r(),setInterval(r,n)}),function(e,t){return l.apply(this,arguments)}))},429(e,t,a){a.d(t,{K:()=>p});var i,n=a(99436),r=a(35679),o=a(73284),s=a(
|
|
73
|
+
${m.Ay.gray("Press Ctrl+C to stop")}`)}catch(e){console.error(m.Ay.red(`Error: ${e.message}`))}}),function(){return a.apply(this,arguments)});yield r(),setInterval(r,n)}),function(e,t){return l.apply(this,arguments)}))},429(e,t,a){a.d(t,{K:()=>p});var i,n=a(99436),r=a(35679),o=a(73284),s=a(47988),p=new r.uB("mcp").description("MCP server management");p.command("start").description("Start the BRICKS MCP server in STDIO mode").option("-t, --token <token>","API token (overrides saved token)").action((i=n(function*(e){var t=(0,s.getCurrentProfile)(),i=e.token||(0,s.getToken)(t);i||(console.error(o.Ay.red("Error: No API token found.")),console.error(o.Ay.gray("Please login first with: bricks auth login <passcode>")),console.error(o.Ay.gray("Or provide a token with: bricks mcp start --token <token>")),process.exit(1));try{var n=(yield Promise.all([a.e(587),a.e(647),a.e(10),a.e(117)]).then(a.bind(a,98372))).startStdioServer;yield n({token:i})}catch(e){console.error(o.Ay.red(`Failed to start MCP server: ${e.message}`)),process.exit(1)}}),function(e){return i.apply(this,arguments)}))},37818(e,t,i){i.d(t,{u:()=>F});var n,r,o,s,p,l,d,u,c=i(68832),m=i(99436);let f=a("fs/promises");var h=i(16928),v=i(35679),g=i(73284),y=i(30155),D=i(86090),b=i(56493),x=i(60450),_=(n=m(function*(e){var t=yield e.workspace();if(!(0,x.wR)(t))throw Error("Media workspace not enabled for this workspace")}),function(e){return n.apply(this,arguments)}),w=e=>{var t=e.meta||{};if(!t.originalFileUploaded)return{ready:!1,label:"Uploading"};if("Video"===e.fileType){if(!t.videoThumbOriginalFileKey)return{ready:!1,label:"Processing"};if(!t.convertedFileUploaded)return{ready:!1,label:"Transcoding"}}return{ready:!0,label:"Ready"}},E=e=>e.ready?g.Ay.green(e.label):g.Ay.yellow(e.label),F=new v.uB("media").description("Media Flow support");F.command("boxes").description("List Media Flow boxes").option("-j, --json","Output as JSON").action((r=m(function*(e){var t=(0,b.o)(),a=(0,y.default)("Fetching media boxes...").start();try{yield _(t);var i=yield t.mediaBoxes();if(a.stop(),e.json)return void console.log(JSON.stringify(i,null,2));if(!i||0===i.length)return void console.log(g.Ay.yellow("No media boxes found"));console.log(g.Ay.bold("\nMedia Boxes")),console.log("─".repeat(80)),i.forEach(e=>{console.log(`${g.Ay.cyan(e.name||"Unnamed")} ${g.Ay.gray(e.id)}`),e.description&&console.log(` ${e.description}`),e.tags?.length&&console.log(` Tags: ${e.tags.join(", ")}`),null!=e.size&&console.log(` Size: ${e.size}`),console.log()})}catch(e){a.fail(`Failed to list media boxes: ${e.message}`),process.exit(1)}}),function(e){return r.apply(this,arguments)})),F.command("box <id>").description("Get Media Flow box details").option("-j, --json","Output as JSON").action((o=m(function*(e,t){var a=(0,b.o)(),i=(0,y.default)("Fetching media box...").start();try{yield _(a);var n=yield a.mediaBox({id:e});if(i.stop(),n||(console.log(g.Ay.red("Media box not found")),process.exit(1)),t.json)return void console.log(JSON.stringify(n,null,2));console.log(g.Ay.bold(`
|
|
72
74
|
Media Box: ${n.name||"Unnamed"}`)),console.log("─".repeat(60)),console.log(`ID: ${g.Ay.gray(n.id)}`),console.log(`Description: ${n.description||g.Ay.gray("N/A")}`),console.log(`Tags: ${n.tags?.join(", ")||g.Ay.gray("None")}`),null!=n.size&&console.log(`Size: ${n.size}`),n.passcodes?.length&&(console.log(`
|
|
73
75
|
${g.Ay.bold("Passcodes")}`),n.passcodes.forEach(e=>{console.log(`- ${e.name||"Passcode"}: ${e.code}`)})),console.log("─".repeat(60))}catch(e){i.fail(`Failed to get media box: ${e.message}`),process.exit(1)}}),function(e,t){return o.apply(this,arguments)})),F.command("files <boxId>").description("List Media Flow files in a box").option("-t, --types <types>","Comma-separated file types to include").option("-u, --user-tag <tag>","Filter by user tag (repeatable)",(e,t)=>[...t,e],[]).option("-l, --limit <limit>","Limit results",e=>Number.parseInt(e,10)).option("-o, --offset <offset>","Offset results",e=>Number.parseInt(e,10)).option("-j, --json","Output as JSON").action((s=m(function*(e,t){var a=(0,b.o)(),i=(0,y.default)("Fetching media files...").start();try{yield _(a);var n=t.types?t.types.split(",").map(e=>e.trim()).filter(Boolean):void 0,r=t.userTag?.length?t.userTag:void 0,o=yield a.mediaFiles({boxId:e,includeTypes:n,userTags:r,limit:t.limit,offset:t.offset});if(i.stop(),t.json)return void console.log(JSON.stringify(o,null,2));if(!o||0===o.length)return void console.log(g.Ay.yellow("No media files found"));console.log(g.Ay.bold(`
|
|
74
76
|
Media Files (${o.length})`)),console.log("─".repeat(100)),o.forEach(e=>{var t=w(e);console.log(`${g.Ay.cyan(e.name||"Unnamed")} ${g.Ay.gray(e.id)}`),console.log(` Type: ${e.fileType} Status: ${E(t)}`),e.userTags?.length&&console.log(` Tags: ${e.userTags.join(", ")}`),e.updatedAt&&console.log(` Updated: ${new Date(e.updatedAt).toLocaleString()}`),console.log()})}catch(e){i.fail(`Failed to list media files: ${e.message}`),process.exit(1)}}),function(e,t){return s.apply(this,arguments)})),F.command("file <id>").description("Get Media Flow file details").option("-j, --json","Output as JSON").action((p=m(function*(e,t){var a=(0,b.o)(),i=(0,y.default)("Fetching media file...").start();try{yield _(a);var n=yield a.mediaFile({id:e});if(i.stop(),n||(console.log(g.Ay.red("Media file not found")),process.exit(1)),t.json)return void console.log(JSON.stringify(n,null,2));var r=w(n);console.log(g.Ay.bold(`
|
|
75
77
|
Media File: ${n.name||"Unnamed"}`)),console.log("─".repeat(60)),console.log(`ID: ${g.Ay.gray(n.id)}`),console.log(`Box ID: ${g.Ay.gray(n.boxId)}`),console.log(`Type: ${n.fileType}`),console.log(`Status: ${E(r)}`),console.log(`Description: ${n.description||g.Ay.gray("N/A")}`),console.log(`Tags: ${n.userTags?.join(", ")||g.Ay.gray("None")}`),console.log(`Created: ${g.Ay.gray(n.createdAt||"N/A")}`),console.log(`Updated: ${g.Ay.gray(n.updatedAt||"N/A")}`);var o=(0,x.Gu)(n),s=(0,x.Gu)(n,{preferThumbnail:!0});n.meta?.originalFileKey&&console.log(`Original Key: ${g.Ay.gray(n.meta.originalFileKey)}`),o&&console.log(`Original URL: ${g.Ay.gray(o)}`),s&&s!==o&&console.log(`Thumbnail URL: ${g.Ay.gray(s)}`),console.log("─".repeat(60))}catch(e){i.fail(`Failed to get media file: ${e.message}`),process.exit(1)}}),function(e,t){return p.apply(this,arguments)}));var C=e=>{var t=e.match(/^(\d+)x(\d+)(?::(\w+))?$/);if(!t)throw Error(`Invalid image version spec: "${e}". Expected format: WxH or WxH:STRATEGY`);return{width:parseInt(t[1],10),height:parseInt(t[2],10),strategy:(t[3]||"FILL").toUpperCase(),copypreview:!1}},A=(l=m(function*(e,t,a,i,n){var r=new FormData;for(var o of Object.entries(t)){var s=c(o,2),p=s[0],l=s[1];r.append(p,l)}r.append("file",new Blob([a],{type:n}),i);var d=yield fetch(e,{method:"POST",body:r});if(!d.ok&&204!==d.status){var u=yield d.text().catch(()=>"");throw Error(`S3 upload failed (${d.status}): ${u}`)}}),function(e,t,a,i,n){return l.apply(this,arguments)}),T=(d=m(function*(e,t,a){var i,n=[],r=0,o=(i=m(function*(){for(;r<e.length;){var t=r++;n[t]=yield a(e[t],t)}}),function(){return i.apply(this,arguments)}),s=Array.from({length:Math.min(t,e.length)},()=>o());return yield Promise.all(s),n}),function(e,t,a){return d.apply(this,arguments)});F.command("upload <boxId> <files...>").description("Upload file(s) to a Media Flow box").option("-d, --description <text>","File description","").option("-t, --user-tag <tag>","User tag (repeatable, max 15)",(e,t)=>[...t,e],[]).option("--image-version <spec>","Image resize spec as WxH or WxH:STRATEGY (repeatable)",(e,t)=>[...t,e],[]).option("--image-version-type <type>","Image output format: jpg or png").option("--enable-ai-analysis","Enable AI analysis on uploaded files").option("--ai-instruction <text>","Custom AI analysis instruction").option("--concurrency <n>","Max concurrent uploads",e=>parseInt(e,10),3).option("-j, --json","Output as JSON").action((u=m(function*(e,t,a){var i=(0,b.o)(),n=(0,y.default)("Preparing upload...").start();try{if(yield _(i),a.userTag.length>15)throw Error("Maximum 15 user tags allowed");var r,o,s=a.imageVersion.map(C),p=a.enableAiAnalysis||!!a.aiInstruction,l=yield Promise.all(t.map((r=m(function*(e){var t=(0,h.resolve)(e),a=yield(0,f.stat)(t).catch(()=>null);if(!a||!a.isFile())throw Error(`Not a file: ${e}`);var i=(0,h.basename)(t),n=(0,D.lookup)(i)||"application/octet-stream";return{filePath:t,fileName:i,contentType:n,size:a.size}}),function(e){return r.apply(this,arguments)})));n.stop();var d=l.length;console.log(g.Ay.bold(`
|
|
76
78
|
Uploading ${d} file${d>1?"s":""} to box ${g.Ay.gray(e)}...
|
|
77
|
-
`));var u=[];yield T(l,a.concurrency,(o=m(function*(t,n){var r=`[${n+1}/${d}] ${t.fileName}`,o=(0,y.default)(`${r} — requesting upload...`).start();try{var l,c,m=(l=t.contentType)&&"image/svg+xml"!==l?l.startsWith("image/")?"IMAGE":l.startsWith("video/")?"VIDEO":l.startsWith("audio/")?"AUDIO":"FILE":"FILE",h={imageVersions:"IMAGE"===m?s:[],imageVersionType:"IMAGE"===m?a.imageVersionType:void 0,enableAiAnalysis:p,aiCustomInstruction:a.aiInstruction||void 0},v=yield i.createMediaFileUploadRequest({name:t.fileName,description:a.description,boxId:e,fileType:m,contentType:t.contentType,userTags:a.userTag.length?a.userTag:[],meta:h});o.text=`${r} — uploading to storage...`;var D=JSON.parse(v.meta.uploadInfo),b=yield(0,f.readFile)(t.filePath);yield A(D.url,{AWSAccessKeyId:D.AWSAccessKeyId,"Content-Type":D["Content-Type"],key:D.key,Signature:D.Signature,Policy:D.Policy,acl:D.acl},b,t.fileName,t.contentType),o.succeed(`${r} ${g.Ay.green("✓")} ${g.Ay.gray(`(${m}, ${(c=t.size)<1024?`${c} B`:c<1048576?`${(c/1024).toFixed(1)} KB`:c<0x40000000?`${(c/1048576).toFixed(1)} MB`:`${(c/0x40000000).toFixed(1)} GB`})`)}`),u.push({file:t.fileName,id:v.id,status:"success",fileType:m,size:t.size})}catch(e){o.fail(`${r} — ${e.message}`),u.push({file:t.fileName,id:null,status:"failed",error:e.message})}}),function(e,t){return o.apply(this,arguments)}));var c=u.filter(e=>"success"===e.status).length,v=u.filter(e=>"failed"===e.status).length;a.json?console.log(JSON.stringify({boxId:e,results:u,summary:{total:d,success:c,failed:v}},null,2)):(console.log(),0===v?console.log(g.Ay.green(`Uploaded ${c}/${d} files`)):console.log(g.Ay.yellow(`Uploaded ${c}/${d} files (${v} failed)`))),v>0&&process.exit(1)}catch(e){n.fail(`Upload failed: ${e.message}`),process.exit(1)}}),function(e,t,a){return u.apply(this,arguments)}))},32541(e,t,a){a.d(t,{A:()=>S});var i,n,r,o,s,p,l,d,u,c,m,f,h=a(99436),v=a(35679),g=a(73284),y=a(30155),D=a(79896),b=a(
|
|
79
|
+
`));var u=[];yield T(l,a.concurrency,(o=m(function*(t,n){var r=`[${n+1}/${d}] ${t.fileName}`,o=(0,y.default)(`${r} — requesting upload...`).start();try{var l,c,m=(l=t.contentType)&&"image/svg+xml"!==l?l.startsWith("image/")?"IMAGE":l.startsWith("video/")?"VIDEO":l.startsWith("audio/")?"AUDIO":"FILE":"FILE",h={imageVersions:"IMAGE"===m?s:[],imageVersionType:"IMAGE"===m?a.imageVersionType:void 0,enableAiAnalysis:p,aiCustomInstruction:a.aiInstruction||void 0},v=yield i.createMediaFileUploadRequest({name:t.fileName,description:a.description,boxId:e,fileType:m,contentType:t.contentType,userTags:a.userTag.length?a.userTag:[],meta:h});o.text=`${r} — uploading to storage...`;var D=JSON.parse(v.meta.uploadInfo),b=yield(0,f.readFile)(t.filePath);yield A(D.url,{AWSAccessKeyId:D.AWSAccessKeyId,"Content-Type":D["Content-Type"],key:D.key,Signature:D.Signature,Policy:D.Policy,acl:D.acl},b,t.fileName,t.contentType),o.succeed(`${r} ${g.Ay.green("✓")} ${g.Ay.gray(`(${m}, ${(c=t.size)<1024?`${c} B`:c<1048576?`${(c/1024).toFixed(1)} KB`:c<0x40000000?`${(c/1048576).toFixed(1)} MB`:`${(c/0x40000000).toFixed(1)} GB`})`)}`),u.push({file:t.fileName,id:v.id,status:"success",fileType:m,size:t.size})}catch(e){o.fail(`${r} — ${e.message}`),u.push({file:t.fileName,id:null,status:"failed",error:e.message})}}),function(e,t){return o.apply(this,arguments)}));var c=u.filter(e=>"success"===e.status).length,v=u.filter(e=>"failed"===e.status).length;a.json?console.log(JSON.stringify({boxId:e,results:u,summary:{total:d,success:c,failed:v}},null,2)):(console.log(),0===v?console.log(g.Ay.green(`Uploaded ${c}/${d} files`)):console.log(g.Ay.yellow(`Uploaded ${c}/${d} files (${v} failed)`))),v>0&&process.exit(1)}catch(e){n.fail(`Upload failed: ${e.message}`),process.exit(1)}}),function(e,t,a){return u.apply(this,arguments)}))},32541(e,t,a){a.d(t,{A:()=>S});var i,n,r,o,s,p,l,d,u,c,m,f,h=a(99436),v=a(35679),g=a(73284),y=a(30155),D=a(79896),b=a(47988),x=a(85382),_=a(44618),w=a(7586),E=a(56493),F=a(68168),C=a(74049),A=a(98593),T=(e,t)=>({id:e?._id||t,name:e?.name||"Unnamed",currentVersion:e?.current_version||null,public:!!e?.is_public}),S=new v.uB("module").description("Module management");S.command("new").description("Create a new module").requiredOption("-n, --name <name>","Module name").option("-d, --description <description>","Module description").option("--layout-width <width>","Layout width",parseInt).option("--layout-height <height>","Layout height",parseInt).option("--public","Make module available to all users").option("--allow-modify","Allow users to modify imported module config").option("--init","Initialize a BRICKS Project after creation").option("-o, --output <dir>","Output directory for --init (default: current directory)").option("-y, --yes","Skip prompts for --init").option("-j, --json","Output as JSON").action((i=h(function*(e){var t=(0,E.o)(),i=e.json?null:(0,y.default)("Creating module...").start();try{var n={name:e.name};e.description&&(n.description=e.description),e.layoutWidth&&(n.layoutWidth=e.layoutWidth),e.layoutHeight&&(n.layoutHeight=e.layoutHeight),e.public&&(n.isPublic=!0),e.allowModify&&(n.isAllowModify=!0);var r=yield t.createModule(n);if(e.json&&!e.init?console.log(JSON.stringify(r,null,2)):e.json||(i.succeed(`Module created: ${g.Ay.green(r.name)}`),console.log(` ID: ${g.Ay.gray(r._id)}`),r.description&&console.log(` ${g.Ay.gray(r.description)}`),console.log(` Public: ${r.is_public?g.Ay.green("Yes"):g.Ay.gray("No")}`),console.log(` Allow Modify: ${r.is_allow_modify?g.Ay.green("Yes"):g.Ay.gray("No")}`)),e.init){i&&i.stop();var o=(yield a.e(602).then(a.bind(a,6553))).initProject;yield o("module",r._id,{output:e.output,yes:e.yes,json:e.json})}}catch(t){e.json?console.error(JSON.stringify({error:t.message})):i.fail(`Failed to create module: ${t.message}`),process.exit(1)}}),function(e){return i.apply(this,arguments)})),S.command("list").description("List all modules").option("-k, --keyword <keyword>","Filter by keyword").option("-j, --json","Output as JSON").action((n=h(function*(e){var t=(0,E.o)(),a=(0,y.default)("Fetching modules...").start();try{var i=yield t.modules({keyword:e.keyword});if(a.stop(),e.json)return void console.log(JSON.stringify(i,null,2));if(!i||0===i.length)return void console.log(g.Ay.yellow("No modules found"));console.log(g.Ay.bold("\nModules")),console.log("─".repeat(80)),i.forEach(e=>{var t=e.current_version?`v${e.current_version}`:g.Ay.gray("no version");console.log(`● ${g.Ay.cyan(e.name)} ${g.Ay.gray(t)}`),console.log(` ID: ${g.Ay.gray(e._id)}`),e.description&&console.log(` ${g.Ay.gray(e.description)}`),console.log()})}catch(e){a.fail(`Failed to list modules: ${e.message}`),process.exit(1)}}),function(e){return n.apply(this,arguments)})),S.command("list-public").description("Search public modules").requiredOption("-k, --keyword <keyword>","Search keyword (min 2 characters)").option("-j, --json","Output as JSON").action((r=h(function*(e){var t=(0,x.createClient)((0,b.getBaseUrl)()),a=(0,y.default)("Searching public modules...").start();try{var i=yield t.publicModules({keyword:e.keyword});if(a.stop(),e.json)return void console.log(JSON.stringify(i,null,2));if(!i||0===i.length)return void console.log(g.Ay.yellow("No public modules found"));console.log(g.Ay.bold("\nPublic Modules")),console.log("─".repeat(80)),i.forEach(e=>{var t=e.current_version?`v${e.current_version}`:g.Ay.gray("no version");console.log(`● ${g.Ay.cyan(e.name)} ${g.Ay.gray(t)}`),console.log(` ID: ${g.Ay.gray(e._id)}`),e.description&&console.log(` ${g.Ay.gray(e.description)}`),console.log()})}catch(e){a.fail(`Failed to search public modules: ${e.message}`),process.exit(1)}}),function(e){return r.apply(this,arguments)})),S.command("get <id>").description("Get module details").option("-j, --json","Output as JSON").action((o=h(function*(e,t){var a=(0,E.o)(),i=(0,y.default)("Fetching module...").start();try{var n=yield a.module({id:e});if(i.stop(),n||(console.log(g.Ay.red("Module not found")),process.exit(1)),t.json)return void console.log(JSON.stringify(n,null,2));if(console.log(g.Ay.bold(`
|
|
78
80
|
Module: ${n.name}`)),console.log("─".repeat(60)),console.log(`ID: ${g.Ay.gray(n._id)}`),console.log(`Description: ${n.description||g.Ay.gray("N/A")}`),console.log(`Tags: ${n.tags?.join(", ")||g.Ay.gray("None")}`),console.log(`Created: ${g.Ay.gray(n.create_datetime)}`),console.log(`Modified: ${g.Ay.gray(n.last_modify_datetime)}`),console.log(`
|
|
79
81
|
${g.Ay.bold("Version")}`),console.log(`Current: ${n.current_version?`v${n.current_version}`:g.Ay.gray("No version")}`),console.log(`Unreleased: ${n.has_unreleased_changes?g.Ay.yellow("Yes"):g.Ay.green("No")}`),console.log(`
|
|
80
82
|
${g.Ay.bold("Settings")}`),console.log(`Public: ${n.is_public?g.Ay.green("Yes"):g.Ay.gray("No")}`),console.log(`Allow Modify: ${n.is_allow_modify?g.Ay.green("Yes"):g.Ay.gray("No")}`),console.log(`Short Edit: ${n.short_edit?.enabled?g.Ay.green("Enabled"):g.Ay.gray("Disabled")}`),n.short_edit?.enabled&&n.short_edit.ref_map){var r=Object.keys(n.short_edit.ref_map).length;console.log(` References: ${r} editable properties`)}n.use_count?.total_count!=null&&(console.log(`
|
|
@@ -82,7 +84,7 @@ ${g.Ay.bold("Usage")}`),console.log(`Used In: ${n.use_count.total_count} ap
|
|
|
82
84
|
${g.Ay.bold("Exposed Properties")} (${n.expose_properties.length})`),n.expose_properties.forEach(e=>{console.log(` - ${g.Ay.cyan(e)}`)})),console.log("─".repeat(60))}catch(e){i.fail(`Failed to get module: ${e.message}`),process.exit(1)}}),function(e,t){return o.apply(this,arguments)})),S.command("resolve <query>").description("Resolve a module name or ID to stable IDs").option("-l, --limit <limit>","Limit search results",e=>Number.parseInt(e,10),10).option("-j, --json","Output as JSON").action((s=h(function*(e,t){var a=(0,E.o)(),i=t.json?null:(0,y.default)("Resolving module...").start();try{var n=yield(0,F.Y)(()=>a.module({id:e})),r=n?[n]:yield a.modules({keyword:e,paginate:{limit:t.limit}}),o=(0,F.K)({resource:"module",query:e,items:r||[],fields:["_id","name"],selectedBy:n?"id":null});if(i&&i.stop(),t.json)return void(0,w.GF)(o);if(o.resolved){var s=o.resolved;console.log(g.Ay.bold("\nResolved Module")),console.log("─".repeat(60)),console.log(`Name: ${g.Ay.cyan(s.name||"Unnamed")}`),console.log(`ID: ${g.Ay.gray(s._id)}`),console.log(`Selected By: ${o.selectedBy}`),console.log("─".repeat(60));return}if(0===o.matches.length)return void console.log(g.Ay.yellow(`No modules matched "${e}"`));console.log(g.Ay.bold(`
|
|
83
85
|
Matching Modules (${o.matches.length})`)),console.log("─".repeat(80)),o.matches.forEach(e=>{console.log(`${g.Ay.cyan(e.name||"Unnamed")} ${g.Ay.gray(e._id)}`)}),console.log("─".repeat(80))}catch(t){i?i.fail(`Failed to resolve module: ${t.message}`):(0,w.OW)(t.message,{resource:"module",query:e}),process.exit(1)}}),function(e,t){return s.apply(this,arguments)})),S.command("update <id>").description("Update module name, description, and/or configuration").option("-n, --name <name>","Module name").option("-d, --description <description>","Module description").option("-c, --config <json>","Module config as JSON string").option("-f, --file <path>","Module config from file").option("--validate","Validate configuration (default: true when config is set)",!0).option("--no-validate","Skip server-side config validation").option("--last-commit-id <id>","Reject if server config.bricks_project_last_commit_id does not match this value").option("-j, --json","Output as JSON").action((p=h(function*(e,t){var a=(0,E.o)(),i=t.json?null:(0,y.default)("Updating module...").start();try{var n={id:e};t.name&&(n.name=t.name),t.description&&(n.description=t.description),t.config?n.config=t.config:t.file&&(n.config=D.readFileSync(t.file,"utf-8")),void 0!==n.config&&(n.validateConfig=!1!==t.validate),t.lastCommitId&&(n.lastCommitId=t.lastCommitId);var r=yield a.updateModule(n);t.json?(0,A.yd)({action:"module.update",target:T(r,e),result:{lastCommitId:t.lastCommitId||null},json:!0}):(i.succeed(`Module updated: ${g.Ay.green(r.name)}`),r.has_unreleased_changes&&console.log(g.Ay.yellow("Note: Module has unreleased changes")))}catch(a){t.json?(0,w.OW)(a.message,{action:"module.update",target:{id:e}}):i.fail(`Failed to update module: ${a.message}`),process.exit(1)}}),function(e,t){return p.apply(this,arguments)})),S.command("short-edit <id>").description("Short edit module properties").requiredOption("-l, --list <json>","Short edit list as JSON array").action((l=h(function*(e,t){var a=(0,E.o)(),i=(0,y.default)("Applying short edit...").start();try{var n=JSON.parse(t.list);Array.isArray(n)||(i.fail("List must be a JSON array"),process.exit(1));var r=yield a.shortEditModule({id:e,list:n});i.succeed(`Short edit applied to: ${g.Ay.green(r.name)}`)}catch(e){i.fail(`Failed to apply short edit: ${e.message}`),process.exit(1)}}),function(e,t){return l.apply(this,arguments)})),S.command("short-refs <id>").description("List short edit references for a module").option("-k, --keyword <keyword>","Filter by shortId or title").option("-t, --types <types>","Comma-separated shortId prefixes to include (e.g. B,C,S)").option("-j, --json","Output as JSON").action((d=h(function*(e,t){var a=(0,E.o)(),i=(0,y.default)("Fetching short edit references...").start();try{var n=yield a.module({id:e});if(i.stop(),!n?.short_edit?.enabled)return void console.log(g.Ay.yellow("Short Edit is not enabled for this module"));var r=t.types?t.types.split(",").map(e=>e.trim()).filter(Boolean):[],o=(0,_.V)(n.short_edit.ref_map,{keyword:t.keyword,types:r});if(t.json)return void console.log(JSON.stringify(o,null,2));if(0===o.length)return void console.log(g.Ay.yellow("No short edit references found"));console.log(g.Ay.bold(`
|
|
84
86
|
Short Edit References: ${n.name}`)),o.forEach(e=>{console.log(g.Ay.cyan(`
|
|
85
|
-
${e.label} (${e.prefix}_)`)),e.refs.forEach(({shortId:e,ref:t})=>{var a=t?.title?g.Ay.gray(`- ${t.title}`):"";console.log(` ${g.Ay.green(e)} ${a}`)})}),console.log()}catch(e){i.fail(`Failed to fetch short edit references: ${e.message}`),process.exit(1)}}),function(e,t){return d.apply(this,arguments)})),S.command("remove <id>").description("Remove a module").option("--dry-run","Validate the target and show the removal plan without deleting it").option("-j, --json","Output as JSON").action((u=h(function*(e,t){var a=(0,E.o)(),i=t.json?null:(0,y.default)("Removing module...").start();try{var n=yield a.module({id:e});if(!n)throw Error("Module not found");var r=T(n,e);if(t.dryRun){i&&i.stop(),(0,A.S5)({action:"module.remove",target:r,request:{id:e},checks:[(0,A.Iy)("module exists",!0,`${r.name} (${r.id})`)],json:t.json});return}var o=yield a.removeModule({id:e});t.json?(0,A.yd)({action:"module.remove",target:r,result:{removed:!!o},json:!0}):i.succeed(`Module removed: ${g.Ay.green(r.name)}`)}catch(a){t.json?(0,w.OW)(a.message,{action:"module.remove",target:{id:e}}):i.fail(`Failed to remove module: ${a.message}`),process.exit(1)}}),function(e,t){return u.apply(this,arguments)})),S.command("release <id>").description("Release module to BRICKS platform").requiredOption("-c, --config <path|json>","Module config file path or JSON string").option("-n, --name <name>","Update module name as part of the release").option("--version <version>","Version name").option("--changelogs <text>","Release changelogs").option("--dry-run","Validate inputs and show the release plan without publishing").option("-j, --json","Output as JSON").action((c=h(function*(e,t){var a=(0,E.o)(),i=t.json?null:(0,y.default)("Releasing module...").start();try{var n=(0,C.Ku)(t.config),r=n.config,o=n.source,s=n.sizeBytes,p=yield a.module({id:e});if(!p)throw Error("Module not found");if(p.is_public)throw Error("Public module deployment is temporarily not recommended");var l=t.version||t.name||p.name||"Untitled",d=(0,C.w9)(t.changelogs);if(t.dryRun){i&&i.stop(),(0,A.S5)({action:"module.release",target:T(p,e),request:{name:t.name||null,version:l,changelogs:t.changelogs||null,configSource:o,configSizeBytes:s},checks:[(0,A.Iy)("module exists",!0,`${p.name} (${p._id})`),(0,A.Iy)("module is private",!p.is_public),(0,A.Iy)("release config loaded",!0,`${s} bytes`)],json:t.json});return}var u=yield a.releaseModule({id:e,config:r,...t.name?{name:t.name}:{},releaseCurrentVersion:l,releaseCurrentVersionNote:d});t.json?(0,A.yd)({action:"module.release",target:T(u||p,e),result:{name:t.name||null,version:l,configSource:o,configSizeBytes:s},json:!0}):i.succeed(`Module released: ${g.Ay.green(u?.name||p.name)}`)}catch(a){t.json?(0,w.OW)(a.message,{action:"module.release",target:{id:e}}):i.fail(`Failed to release module: ${a.message}`),process.exit(1)}}),function(e,t){return c.apply(this,arguments)})),S.command("project-pull <id>").description("Pull module source files from BRICKS platform").option("-j, --json","Output as JSON (for programmatic use)").action((m=h(function*(e,t){var a=(0,E.o)(),i=t.json?null:(0,y.default)("Pulling module project...").start();try{var n=yield a.moduleProject({id:e,buildApplicationOnly:!0});n||(i?i.fail("Module project not found"):console.error(JSON.stringify({error:"Module project not found"})),process.exit(1)),t.json?console.log(JSON.stringify(n)):(i.succeed(`Module project fetched: ${g.Ay.green(n.files?.length||0)} files`),console.log(JSON.stringify(n,null,2)))}catch(e){t.json?console.error(JSON.stringify({error:e.message})):i.fail(`Failed to pull module project: ${e.message}`),process.exit(1)}}),function(e,t){return m.apply(this,arguments)})),S.command("ctor-init <id>").alias("project-init").description("Initialize a BRICKS Project from a module").option("-o, --output <dir>","Output directory (default: current directory)").option("--github-actions","Include GitHub Actions workflow (default: true)").option("--no-github-actions","Skip GitHub Actions workflow setup").option("--agents","Include AGENTS.md (default: true)").option("--no-agents","Skip AGENTS.md setup").option("--claude","Include CLAUDE.md (default: true)").option("--no-claude","Skip CLAUDE.md setup").option("--gemini","Include GEMINI.md (default: false)").option("--no-gemini","Skip GEMINI.md setup").option("--install","Run bun install after generation (default: true)").option("--no-install","Skip bun install after generation").option("--git","Initialize git repository (default: true)").option("--no-git","Skip git initialization").option("-y, --yes","Skip prompts and use defaults/flags").option("-j, --json","Output as JSON (for programmatic use)").action((f=h(function*(e,t){var i=(yield a.e(602).then(a.bind(a,6553))).initProject;yield i("module",e,t)}),function(e,t){return f.apply(this,arguments)}))},86141(e,t,a){a.d(t,{D:()=>V});var i,n,r,o,s,p,l,d,u,c=a(99436),m=a(35679),f=a(73284),h=a(30155),v=a(88958),g=a(73024),y=a(76760),D=a(48161),b=e=>{if(!e)return e;try{return g.realpathSync(e)}catch{return e}},x=a(68832),_=a(31421),w=a(51455),E="@fugood/bricks-cli",F="win32"===process.platform,C=(e,t)=>`https://cdn.bricks.tools/bricks-cli/${e}/${t}`,A=e=>"beta"===e?"beta":"latest",T=(i=c(function*(e){var t=yield fetch(e);if(!t.ok)throw Error(`Failed to fetch ${e}: HTTP ${t.status}`);return t}),function(e){return i.apply(this,arguments)}),S=(n=c(function*(e){return(yield T(C(e,"version.json"))).json()}),function(e){return n.apply(this,arguments)}),O=(r=c(function*(e){var t=A(e),a=yield T(`https://registry.npmjs.org/-/package/${E}/dist-tags`),i=(yield a.json())[t];if(!i)throw Error(`No '${t}' dist-tag for ${E}`);return{version:i}}),function(e){return r.apply(this,arguments)}),N=(o=c(function*(e,t){return"npm"===t||"bun"===t?O(e):S(e)}),function(e,t){return o.apply(this,arguments)}),k=(e,t,a={})=>{var i=(0,_.spawnSync)(e,t,{stdio:"inherit",...a});if(i.error){if("ENOENT"===i.error.code)throw Error(`Command not found: ${e}`);throw i.error}if(0!==i.status){var n=Error(`${e} exited with code ${i.status}`);throw n.code=i.status,n}},I=(s=c(function*(e,t){var a=yield T(e),i=Buffer.from((yield a.arrayBuffer())),n=y.join(D.tmpdir(),`bricks-cli-update-${process.pid}-${t}`);return yield w.writeFile(n,i),F||(yield w.chmod(n,493)),n}),function(e,t){return s.apply(this,arguments)}),$=(p=c(function*(e,{installDir:t}={}){var a=F?"install.ps1":"install.sh",i=yield I(C(e,a),a);try{var n=F?["powershell",["-NoProfile","-ExecutionPolicy","Bypass","-File",i,..."beta"===e?["-Beta"]:[],...t?["-InstallDir",t]:[]]]:["sh",[i,..."beta"===e?["--beta"]:[],...t?[`--dir=${t}`]:[]]],r=x(n,2),o=r[0],s=r[1];k(o,s)}finally{yield w.unlink(i).catch(()=>{})}}),function(e){return p.apply(this,arguments)}),j=(l=c(function*(e,t,a={}){if("npm"===e)return void k("npm",["install","-g",`${E}@${A(t)}`]);if("bun"===e)return void k("bun",["install","-g",`${E}@${A(t)}`]);if("binary"===e)return $(t,{installDir:a.installDir});throw Error(`Unsupported update method: ${e}`)}),function(e,t){return l.apply(this,arguments)}),B=a(8479),R=(d=c(function*({message:e,defaultValue:t,autoYes:a}){if(a)return!0;(0,B.z)()||(console.error(f.Ay.red("Refusing to prompt in a non-interactive shell. Pass -y/--yes to confirm.")),process.exit(1));try{return yield(0,v.lJ)({message:e,default:t})}catch{return!1}}),function(e){return d.apply(this,arguments)}),V=new m.uB("update-cli").description("Update the BRICKS CLI to the latest version").option("-y, --yes","Skip confirmation prompts").option("--channel <channel>","Override channel (release|beta)").option("--check-update","Only check whether a newer version is available and exit").action((u=c(function*(e){var t,a="2.25.0-beta.
|
|
87
|
+
${e.label} (${e.prefix}_)`)),e.refs.forEach(({shortId:e,ref:t})=>{var a=t?.title?g.Ay.gray(`- ${t.title}`):"";console.log(` ${g.Ay.green(e)} ${a}`)})}),console.log()}catch(e){i.fail(`Failed to fetch short edit references: ${e.message}`),process.exit(1)}}),function(e,t){return d.apply(this,arguments)})),S.command("remove <id>").description("Remove a module").option("--dry-run","Validate the target and show the removal plan without deleting it").option("-j, --json","Output as JSON").action((u=h(function*(e,t){var a=(0,E.o)(),i=t.json?null:(0,y.default)("Removing module...").start();try{var n=yield a.module({id:e});if(!n)throw Error("Module not found");var r=T(n,e);if(t.dryRun){i&&i.stop(),(0,A.S5)({action:"module.remove",target:r,request:{id:e},checks:[(0,A.Iy)("module exists",!0,`${r.name} (${r.id})`)],json:t.json});return}var o=yield a.removeModule({id:e});t.json?(0,A.yd)({action:"module.remove",target:r,result:{removed:!!o},json:!0}):i.succeed(`Module removed: ${g.Ay.green(r.name)}`)}catch(a){t.json?(0,w.OW)(a.message,{action:"module.remove",target:{id:e}}):i.fail(`Failed to remove module: ${a.message}`),process.exit(1)}}),function(e,t){return u.apply(this,arguments)})),S.command("release <id>").description("Release module to BRICKS platform").requiredOption("-c, --config <path|json>","Module config file path or JSON string").option("-n, --name <name>","Update module name as part of the release").option("--version <version>","Version name").option("--changelogs <text>","Release changelogs").option("--dry-run","Validate inputs and show the release plan without publishing").option("-j, --json","Output as JSON").action((c=h(function*(e,t){var a=(0,E.o)(),i=t.json?null:(0,y.default)("Releasing module...").start();try{var n=(0,C.Ku)(t.config),r=n.config,o=n.source,s=n.sizeBytes,p=yield a.module({id:e});if(!p)throw Error("Module not found");if(p.is_public)throw Error("Public module deployment is temporarily not recommended");var l=t.version||t.name||p.name||"Untitled",d=(0,C.w9)(t.changelogs);if(t.dryRun){i&&i.stop(),(0,A.S5)({action:"module.release",target:T(p,e),request:{name:t.name||null,version:l,changelogs:t.changelogs||null,configSource:o,configSizeBytes:s},checks:[(0,A.Iy)("module exists",!0,`${p.name} (${p._id})`),(0,A.Iy)("module is private",!p.is_public),(0,A.Iy)("release config loaded",!0,`${s} bytes`)],json:t.json});return}var u=yield a.releaseModule({id:e,config:r,...t.name?{name:t.name}:{},releaseCurrentVersion:l,releaseCurrentVersionNote:d});t.json?(0,A.yd)({action:"module.release",target:T(u||p,e),result:{name:t.name||null,version:l,configSource:o,configSizeBytes:s},json:!0}):i.succeed(`Module released: ${g.Ay.green(u?.name||p.name)}`)}catch(a){t.json?(0,w.OW)(a.message,{action:"module.release",target:{id:e}}):i.fail(`Failed to release module: ${a.message}`),process.exit(1)}}),function(e,t){return c.apply(this,arguments)})),S.command("project-pull <id>").description("Pull module source files from BRICKS platform").option("-j, --json","Output as JSON (for programmatic use)").action((m=h(function*(e,t){var a=(0,E.o)(),i=t.json?null:(0,y.default)("Pulling module project...").start();try{var n=yield a.moduleProject({id:e,buildApplicationOnly:!0});n||(i?i.fail("Module project not found"):console.error(JSON.stringify({error:"Module project not found"})),process.exit(1)),t.json?console.log(JSON.stringify(n)):(i.succeed(`Module project fetched: ${g.Ay.green(n.files?.length||0)} files`),console.log(JSON.stringify(n,null,2)))}catch(e){t.json?console.error(JSON.stringify({error:e.message})):i.fail(`Failed to pull module project: ${e.message}`),process.exit(1)}}),function(e,t){return m.apply(this,arguments)})),S.command("ctor-init <id>").alias("project-init").description("Initialize a BRICKS Project from a module").option("-o, --output <dir>","Output directory (default: current directory)").option("--github-actions","Include GitHub Actions workflow (default: true)").option("--no-github-actions","Skip GitHub Actions workflow setup").option("--agents","Include AGENTS.md (default: true)").option("--no-agents","Skip AGENTS.md setup").option("--claude","Include CLAUDE.md (default: true)").option("--no-claude","Skip CLAUDE.md setup").option("--gemini","Include GEMINI.md (default: false)").option("--no-gemini","Skip GEMINI.md setup").option("--install","Run bun install after generation (default: true)").option("--no-install","Skip bun install after generation").option("--git","Initialize git repository (default: true)").option("--no-git","Skip git initialization").option("-y, --yes","Skip prompts and use defaults/flags").option("-j, --json","Output as JSON (for programmatic use)").action((f=h(function*(e,t){var i=(yield a.e(602).then(a.bind(a,6553))).initProject;yield i("module",e,t)}),function(e,t){return f.apply(this,arguments)}))},86141(e,t,a){a.d(t,{D:()=>V});var i,n,r,o,s,p,l,d,u,c=a(99436),m=a(35679),f=a(73284),h=a(30155),v=a(88958),g=a(73024),y=a(76760),D=a(48161),b=e=>{if(!e)return e;try{return g.realpathSync(e)}catch{return e}},x=a(68832),_=a(31421),w=a(51455),E="@fugood/bricks-cli",F="win32"===process.platform,C=(e,t)=>`https://cdn.bricks.tools/bricks-cli/${e}/${t}`,A=e=>"beta"===e?"beta":"latest",T=(i=c(function*(e){var t=yield fetch(e);if(!t.ok)throw Error(`Failed to fetch ${e}: HTTP ${t.status}`);return t}),function(e){return i.apply(this,arguments)}),S=(n=c(function*(e){return(yield T(C(e,"version.json"))).json()}),function(e){return n.apply(this,arguments)}),O=(r=c(function*(e){var t=A(e),a=yield T(`https://registry.npmjs.org/-/package/${E}/dist-tags`),i=(yield a.json())[t];if(!i)throw Error(`No '${t}' dist-tag for ${E}`);return{version:i}}),function(e){return r.apply(this,arguments)}),N=(o=c(function*(e,t){return"npm"===t||"bun"===t?O(e):S(e)}),function(e,t){return o.apply(this,arguments)}),k=(e,t,a={})=>{var i=(0,_.spawnSync)(e,t,{stdio:"inherit",...a});if(i.error){if("ENOENT"===i.error.code)throw Error(`Command not found: ${e}`);throw i.error}if(0!==i.status){var n=Error(`${e} exited with code ${i.status}`);throw n.code=i.status,n}},I=(s=c(function*(e,t){var a=yield T(e),i=Buffer.from((yield a.arrayBuffer())),n=y.join(D.tmpdir(),`bricks-cli-update-${process.pid}-${t}`);return yield w.writeFile(n,i),F||(yield w.chmod(n,493)),n}),function(e,t){return s.apply(this,arguments)}),$=(p=c(function*(e,{installDir:t}={}){var a=F?"install.ps1":"install.sh",i=yield I(C(e,a),a);try{var n=F?["powershell",["-NoProfile","-ExecutionPolicy","Bypass","-File",i,..."beta"===e?["-Beta"]:[],...t?["-InstallDir",t]:[]]]:["sh",[i,..."beta"===e?["--beta"]:[],...t?[`--dir=${t}`]:[]]],r=x(n,2),o=r[0],s=r[1];k(o,s)}finally{yield w.unlink(i).catch(()=>{})}}),function(e){return p.apply(this,arguments)}),j=(l=c(function*(e,t,a={}){if("npm"===e)return void k("npm",["install","-g",`${E}@${A(t)}`]);if("bun"===e)return void k("bun",["install","-g",`${E}@${A(t)}`]);if("binary"===e)return $(t,{installDir:a.installDir});throw Error(`Unsupported update method: ${e}`)}),function(e,t){return l.apply(this,arguments)}),B=a(8479),R=(d=c(function*({message:e,defaultValue:t,autoYes:a}){if(a)return!0;(0,B.z)()||(console.error(f.Ay.red("Refusing to prompt in a non-interactive shell. Pass -y/--yes to confirm.")),process.exit(1));try{return yield(0,v.lJ)({message:e,default:t})}catch{return!1}}),function(e){return d.apply(this,arguments)}),V=new m.uB("update-cli").description("Update the BRICKS CLI to the latest version").option("-y, --yes","Skip confirmation prompts").option("--channel <channel>","Override channel (release|beta)").option("--check-update","Only check whether a newer version is available and exit").action((u=c(function*(e){var t,a="2.25.0-beta.40",i=(({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:a=D.homedir(),realpath:i=b}={})=>{let n;var r=(n=e)?y.basename(n).replace(/\.exe$/i,""):"";if("bricks"===r||"bricks-beta"===r)return{method:"binary",execPath:e,installDir:y.dirname(e)};var o=i(t),s=((e,t)=>{if(!e)return null;var a=y.sep,i=`${a}node_modules${a}${t.replace(/\//g,a)}${a}`,n=e.indexOf(i);return -1===n?null:e.slice(0,n)})(o,"@fugood/bricks-cli");if(s){var p=y.sep,l=y.join(a,".bun","install","global");return s===l||s.startsWith(l+p)?{method:"bun",installRoot:s}:/[\\/](?:\.pnpm|pnpm[\\/]global)[\\/]/.test(s)?{method:"pnpm",installRoot:s}:/[\\/](?:\.yarn|yarn[\\/]global)[\\/]/.test(s)?{method:"yarn",installRoot:s}:{method:"npm",installRoot:s.endsWith(`${p}lib`)?s.slice(0,-`${p}lib`.length):s}}return{method:"unknown",execPath:e,scriptPath:o}})(),n=e.channel||(({version:e,execPath:t}={})=>{var a=t||process.execPath;return a&&/[\\/]bricks-beta(?:\.exe)?$/i.test(a)||/-(beta|alpha|rc|next)\b/i.test(e||"2.25.0-beta.40")?"beta":"release"})({version:a,execPath:i.execPath});console.log(f.Ay.bold(e.checkUpdate?"BRICKS CLI Update Check":"BRICKS CLI Update")),console.log("─".repeat(60)),console.log(`Current version : ${f.Ay.cyan(a)}`),console.log(`Channel : ${f.Ay.cyan(n)}`),console.log(`Detected method : ${f.Ay.cyan(i.method)}`),i.execPath&&"binary"===i.method&&console.log(`Binary path : ${f.Ay.gray(i.execPath)}`),i.installRoot&&console.log(`Install root : ${f.Ay.gray(i.installRoot)}`);var r="npm"===i.method||"bun"===i.method?"npm":"cdn",o=(0,h.default)(`Fetching latest version info (${r})...`).start(),s=null,p=null;try{s=(yield N(n,i.method)).version,o.succeed(`Latest ${n} (${r}): ${f.Ay.green(s)}`)}catch(e){p=e,o.warn(`Could not fetch version info: ${e.message}`)}var l=s&&s===a;if(e.checkUpdate){if(p&&process.exit(2),l)return void console.log(f.Ay.green("\nUp to date."));s&&(console.log(f.Ay.yellow(`
|
|
86
88
|
Update available: ${a} → ${s}. Run 'bricks update-cli' to install.`)),process.exit(1)),console.log(f.Ay.yellow("\nCould not determine current version.")),process.exit(2)}if(l&&(console.log(f.Ay.green("\nAlready running the latest version.")),!(yield R({message:"Reinstall anyway?",defaultValue:!1,autoYes:e.yes}))))return void console.log(f.Ay.gray("Skipped."));var d=["npm","bun","binary"].includes(i.method);d||console.log(f.Ay.yellow(`Cannot auto-detect installer (method: ${i.method}); falling back to binary install.`));var u=d?i.method:"binary";if(!(yield R({message:`Update CLI using "${u}" method?`,defaultValue:!0,autoYes:e.yes})))return void console.log(f.Ay.yellow("Cancelled."));var m=(t=c(function*(e){console.log(f.Ay.cyan(`
|
|
87
89
|
→ Running ${e} update...`));try{return yield j(e,n,i),!0}catch(t){return console.error(f.Ay.yellow(`
|
|
88
90
|
${e} update failed: ${t.message}`)),!1}}),function(e){return t.apply(this,arguments)}),v=yield m(u);!v&&"binary"!==u&&(console.log(f.Ay.cyan("\nFalling back to binary install (same method used by the desktop app).")),(yield R({message:"Try the binary installer as a fallback?",defaultValue:!0,autoYes:e.yes}))&&(v=yield m("binary"))),v||(console.error(f.Ay.red("\nUpdate failed. See messages above.")),process.exit(1)),console.log(f.Ay.green("\nUpdate complete."))}),function(e){return u.apply(this,arguments)}))},92642(e,t,a){a.d(t,{W:()=>_});var i,n,r,o=a(99436),s=a(5018),p=a(44668),l=a(4275),d=a(32235),u=a(62192),c=a(79657),m=a(64007);function f(e){var t,a,i,n=2;for("u">typeof Symbol&&(a=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(a&&null!=(t=e[a]))return t.call(e);if(i&&null!=(t=e[i]))return new h(t.call(e));a="@@asyncIterator",i="@@iterator"}throw TypeError("Object is not async iterable")}function h(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(h=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var a=this.s.return;return void 0===a?Promise.resolve({value:e,done:!0}):t(a.apply(this.s,arguments))},throw:function(e){var a=this.s.return;return void 0===a?Promise.reject(e):t(a.apply(this.s,arguments))}},new h(e)}function v(){return(v=l(function*(e){var t=e.headers.get("content-type")||"";if(t.includes("application/json")){var a=yield d(e.json());if(a.errors?.length)throw Error(a.errors.map(e=>e.message).join("\n"));var i=Object.keys(a.data||{})[0];if(i&&Array.isArray(a.data[i]))for(var n of a.data[i])yield n;return}var r=t.match(/boundary="?([^";]+)"?/),o=r?r[1]:"-",s=`--${o}`,p="",l=!1,c=new TextDecoder,m=function*(){for(var e;-1!==(e=p.indexOf(s));){var t=p.slice(0,e);(p=p.slice(e+s.length)).startsWith("\r\n")?p=p.slice(2):p.startsWith("\n")&&(p=p.slice(1));var a=t.indexOf("\r\n\r\n"),i=-1!==a?t.slice(a+4).trim():t.trim();if(i){var n=void 0;try{n=JSON.parse(i)}catch{continue}if(n.errors?.length)throw Error(n.errors.map(e=>e.message).join("\n"));if(n.data){for(var r of Object.values(n.data))if(Array.isArray(r))for(var o of r)yield o}if(Array.isArray(n.incremental)){for(var d of n.incremental)if(Array.isArray(d.items))for(var u of d.items)yield u}if(!1===n.hasNext){l=!0;return}}}};try{var h=!1,v=!1;try{for(var g,y,D=f(e.body);h=!(y=yield d(D.next())).done;h=!1){var b=y.value;if(p+=c.decode(b,{stream:!0}),yield*u(f(m()),d),l)break}}catch(e){v=!0,g=e}finally{try{h&&null!=D.return&&(yield d(D.return()))}finally{if(v)throw g}}}catch(e){if(!e.message?.includes("Premature close")||!l)throw e}if(!l&&p.trim()){var x,_=p.indexOf("\r\n\r\n"),w=-1!==_?p.slice(_+4).trim():p.trim();if(w&&!w.startsWith("--")){try{x=JSON.parse(w)}catch{}if(x){if(x.errors?.length)throw Error(x.errors.map(e=>e.message).join("\n"));if(x.data){for(var E of Object.values(x.data))if(Array.isArray(E))for(var F of E)yield F}if(Array.isArray(x.incremental)){for(var C of x.incremental)if(Array.isArray(C.items))for(var A of C.items)yield A}!1===x.hasNext&&(l=!0)}}}e.body?.destroy()})).apply(this,arguments)}var g=`
|
|
@@ -334,7 +336,7 @@ ${e} update failed: ${t.message}`)),!1}}),function(e){return t.apply(this,argume
|
|
|
334
336
|
description
|
|
335
337
|
current_version
|
|
336
338
|
}
|
|
337
|
-
`},89293(e,t,a){a.r(t),a.d(t,{bindApplication:()=>f,bindButtressServer:()=>E,controlDevice:()=>o,createApplication:()=>l,createApplicationWithShareVersion:()=>d,createDevice:()=>r,createMediaFileUploadRequest:()=>_,createModule:()=>v,dispatchDeviceGroupAction:()=>p,issueButtressAccessToken:()=>C,releaseApplication:()=>x,releaseModule:()=>w,removeApplication:()=>c,removeDevice:()=>s,removeModule:()=>y,shortEditApplication:()=>m,shortEditModule:()=>D,triggerApplicationCanvasControl:()=>h,unbindButtressServer:()=>F,updateApplication:()=>u,updateModule:()=>g,updateWorkspace:()=>b});var i=a(94370),n=a(48596),r=(0,i.default)`
|
|
339
|
+
`},89293(e,t,a){a.r(t),a.d(t,{bindApplication:()=>f,bindButtressServer:()=>E,controlDevice:()=>o,createApplication:()=>l,createApplicationWithShareVersion:()=>d,createDevice:()=>r,createMediaFileUploadRequest:()=>_,createModule:()=>v,dispatchDeviceGroupAction:()=>p,issueButtressAccessToken:()=>C,issueDevtoolsAccessToken:()=>A,releaseApplication:()=>x,releaseModule:()=>w,removeApplication:()=>c,removeDevice:()=>s,removeModule:()=>y,shortEditApplication:()=>m,shortEditModule:()=>D,triggerApplicationCanvasControl:()=>h,unbindButtressServer:()=>F,updateApplication:()=>u,updateModule:()=>g,updateWorkspace:()=>b});var i=a(94370),n=a(48596),r=(0,i.default)`
|
|
338
340
|
mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
|
|
339
341
|
createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
|
|
340
342
|
...cliDeviceArguments
|
|
@@ -654,6 +656,15 @@ ${e} update failed: ${t.message}`)),!1}}),function(e){return t.apply(this,argume
|
|
|
654
656
|
jti
|
|
655
657
|
}
|
|
656
658
|
}
|
|
659
|
+
`,A=(0,i.default)`
|
|
660
|
+
mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
|
|
661
|
+
issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
|
|
662
|
+
token
|
|
663
|
+
expiresAt
|
|
664
|
+
workspaceId
|
|
665
|
+
jti
|
|
666
|
+
}
|
|
667
|
+
}
|
|
657
668
|
`},43741(e,t,a){a.r(t),a.d(t,{application:()=>u,applicationProject:()=>E,applications:()=>c,buttressServers:()=>C,checkBindDevicePasscode:()=>g,device:()=>o,deviceGroup:()=>p,deviceGroups:()=>l,deviceUsage:()=>w,devices:()=>s,devicesByGroup:()=>d,mediaBox:()=>x,mediaBoxes:()=>b,mediaFile:()=>_,mediaFiles:()=>y,mediaWorkspace:()=>D,module:()=>f,moduleProject:()=>F,modules:()=>h,publicApplicationShareInfo:()=>m,publicModules:()=>v,workspace:()=>r});var i=a(94370),n=a(48596),r=(0,i.default)`
|
|
658
669
|
query CLI_workspace {
|
|
659
670
|
workspace {
|
|
@@ -965,8 +976,8 @@ ${e} update failed: ${t.message}`)),!1}}),function(e){return t.apply(this,argume
|
|
|
965
976
|
lastSeenAt
|
|
966
977
|
}
|
|
967
978
|
}
|
|
968
|
-
`},1878(e,t,a){a.a(e,async function(e,i){try{a.d(t,{A:()=>C,e:()=>F});var n,r=a(99436),o=a(35679),s=a(73284),p=a(
|
|
969
|
-
${s.Ay.bold("Data")}`),console.log(`Remote Update: ${m.bank?.enable_remote_update?s.Ay.green("Enabled"):s.Ay.gray("Disabled")}`),console.log(`Spacename: ${m.bank?.spacename||s.Ay.gray("N/A")}`),console.log("─".repeat(60))}catch(e){u.fail(`Failed to get workspace: ${e.message}`),process.exit(1)}}),function(t){return e.apply(this,arguments)})),o.DM.on("--help",()=>{console.log(""),console.log(s.Ay.bold("Examples:")),console.log(""),console.log(s.Ay.gray(" # Login with a one-time passcode (recommended)")),console.log(" $ bricks auth login <passcode>"),console.log(""),console.log(s.Ay.gray(" # List all devices")),console.log(" $ bricks device list"),console.log(""),console.log(s.Ay.gray(" # Monitor devices in real-time")),console.log(" $ bricks device monitor"),console.log(""),console.log(s.Ay.gray(" # Control a device")),console.log(" $ bricks device refresh <device-id>"),console.log(" $ bricks device control <device-id> clear-cache"),console.log(""),console.log(s.Ay.gray(" # Bind a new device")),console.log(' $ bricks device bind <passcode> -n "My Device"'),console.log(""),console.log(s.Ay.gray(" # List applications")),console.log(" $ bricks app list"),console.log(""),console.log(s.Ay.gray(" # Start interactive mode")),console.log(" $ bricks interactive"),console.log(""),console.log(s.Ay.gray(" # Change API endpoint")),console.log(" $ bricks config endpoint beta"),console.log(""),console.log(s.Ay.gray("Get workspace token from BRICKS Controller:")),console.log(s.Ay.cyan(" https://control.bricks.tools")),console.log(s.Ay.gray(" Go to Workspace Settings > API Token"))});var i=process.argv.slice(2);if(0===i.length){if((0,l.b)(i))try{var n=(yield Promise.all([a.e(3),a.e(940)]).then(a.bind(a,92319))).runInteractiveMode;yield n();return}catch(e){console.error(s.Ay.red(`Failed to start interactive mode: ${e.message}`)),process.exit(1)}console.error(s.Ay.gray("No command provided. Interactive mode requires a TTY, so showing help instead.\n")),o.DM.outputHelp();return}yield o.DM.parseAsync(process.argv)}),function(){return n.apply(this,arguments)});let C=F;i()}catch(e){i(e)}})},56493(e,t,a){a.d(t,{o:()=>o});var i=a(73284),n=a(
|
|
979
|
+
`},1878(e,t,a){a.a(e,async function(e,i){try{a.d(t,{A:()=>C,e:()=>F});var n,r=a(99436),o=a(35679),s=a(73284),p=a(47988),l=a(8479),d=a(55614),u=a(1983),c=a(17422),m=a(32541),f=a(28634),h=a(37818),v=a(71335),g=a(429),y=a(80274),D=a(42400),b=a(98247),x=a(11405),_=a(86141),w=a(59845),E=e([D]);D=(E.then?(await E)():E)[0];var F=(n=r(function*(){var e,t=process.argv.findIndex(e=>"--auth-profile"===e||"-ap"===e);-1!==t&&process.argv[t+1]&&((0,p.setProfileOverride)(process.argv[t+1]),process.argv.splice(t,2)),o.DM.name("bricks").description("BRICKS CLI - Command-line interface for BRICKS Workspace API").version("2.25.0-beta.40","-v, --version","output the version number").enablePositionalOptions(),o.DM.addCommand(d.s),o.DM.addCommand(u._),o.DM.addCommand(c.B),o.DM.addCommand(m.A),o.DM.addCommand(f.p),o.DM.addCommand(h.u),o.DM.addCommand(v.oT),o.DM.addCommand(g.K),o.DM.addCommand(y.gf),o.DM.addCommand(D.D),o.DM.addCommand(b.v),o.DM.addCommand(x.l),o.DM.addCommand(_.D),o.DM.addCommand(w.Q),o.DM.command("interactive").alias("i").description("Start interactive mode with Ink UI").action(r(function*(){try{var e=(yield Promise.all([a.e(3),a.e(940)]).then(a.bind(a,92319))).runInteractiveMode;yield e()}catch(e){console.error(s.Ay.red(`Failed to start interactive mode: ${e.message}`)),process.exit(1)}})),o.DM.command("workspace").alias("ws").description("Show current workspace information").option("-j, --json","Output as JSON").action((e=r(function*(e){var t=yield Promise.resolve().then(a.bind(a,47988)),i=t.getToken,n=t.getBaseUrl,r=t.getCurrentProfile,o=(yield Promise.resolve().then(a.bind(a,85382))).createClient,p=(yield Promise.resolve().then(a.bind(a,30155))).default,l=r(),d=i(l);d||(console.error(s.Ay.red("Not logged in. Use `bricks auth login` first.")),process.exit(1));var u=p("Fetching workspace info...").start();try{var c=o(n(),d),m=yield c.workspace();if(u.stop(),e.json)return void console.log(JSON.stringify(m,null,2));console.log(s.Ay.bold("\nWorkspace Information")),console.log("─".repeat(60)),console.log(`Name: ${s.Ay.green(m.name)}`),console.log(`ID: ${s.Ay.gray(m._id)}`),console.log(`Description: ${m.description||s.Ay.gray("N/A")}`),console.log(`
|
|
980
|
+
${s.Ay.bold("Data")}`),console.log(`Remote Update: ${m.bank?.enable_remote_update?s.Ay.green("Enabled"):s.Ay.gray("Disabled")}`),console.log(`Spacename: ${m.bank?.spacename||s.Ay.gray("N/A")}`),console.log("─".repeat(60))}catch(e){u.fail(`Failed to get workspace: ${e.message}`),process.exit(1)}}),function(t){return e.apply(this,arguments)})),o.DM.on("--help",()=>{console.log(""),console.log(s.Ay.bold("Examples:")),console.log(""),console.log(s.Ay.gray(" # Login with a one-time passcode (recommended)")),console.log(" $ bricks auth login <passcode>"),console.log(""),console.log(s.Ay.gray(" # List all devices")),console.log(" $ bricks device list"),console.log(""),console.log(s.Ay.gray(" # Monitor devices in real-time")),console.log(" $ bricks device monitor"),console.log(""),console.log(s.Ay.gray(" # Control a device")),console.log(" $ bricks device refresh <device-id>"),console.log(" $ bricks device control <device-id> clear-cache"),console.log(""),console.log(s.Ay.gray(" # Bind a new device")),console.log(' $ bricks device bind <passcode> -n "My Device"'),console.log(""),console.log(s.Ay.gray(" # List applications")),console.log(" $ bricks app list"),console.log(""),console.log(s.Ay.gray(" # Start interactive mode")),console.log(" $ bricks interactive"),console.log(""),console.log(s.Ay.gray(" # Change API endpoint")),console.log(" $ bricks config endpoint beta"),console.log(""),console.log(s.Ay.gray("Get workspace token from BRICKS Controller:")),console.log(s.Ay.cyan(" https://control.bricks.tools")),console.log(s.Ay.gray(" Go to Workspace Settings > API Token"))});var i=process.argv.slice(2);if(0===i.length){if((0,l.b)(i))try{var n=(yield Promise.all([a.e(3),a.e(940)]).then(a.bind(a,92319))).runInteractiveMode;yield n();return}catch(e){console.error(s.Ay.red(`Failed to start interactive mode: ${e.message}`)),process.exit(1)}console.error(s.Ay.gray("No command provided. Interactive mode requires a TTY, so showing help instead.\n")),o.DM.outputHelp();return}yield o.DM.parseAsync(process.argv)}),function(){return n.apply(this,arguments)});let C=F;i()}catch(e){i(e)}})},56493(e,t,a){a.d(t,{o:()=>o});var i=a(73284),n=a(47988),r=a(85382),o=()=>{var e=(0,n.getCurrentProfile)(),t=(0,n.getToken)(e);return t||(console.error(i.Ay.red("Not logged in. Use `bricks auth login` first.")),process.exit(1)),(0,r.createClient)((0,n.getBaseUrl)(),t)}},7586(e,t,a){a.d(t,{$l:()=>r,GF:()=>i,OW:()=>n});var i=e=>{console.log(JSON.stringify(e,null,2))},n=(e,t={})=>{console.error(JSON.stringify({ok:!1,error:{message:e,...t}},null,2))},r=(e,t=4)=>e?e.length<=2*t?"*".repeat(e.length):`${e.slice(0,t)}…${e.slice(-t)}`:null},8479(e,t,a){a.d(t,{b:()=>n,z:()=>i});var i=()=>!!(process.stdin.isTTY&&process.stdout.isTTY&&"function"==typeof process.stdin.setRawMode),n=(e=[])=>0===e.length&&i()},47988(e,t,a){a.r(t),a.d(t,{CONFIG_DIR:()=>o,CONFIG_PATH:()=>s,clearConfig:()=>E,default:()=>F,getActivityLogBaseUrl:()=>_,getBaseUrl:()=>l,getCurrentProfile:()=>y,getCurrentProfileSource:()=>D,getToken:()=>c,getTokenInfo:()=>m,getTokens:()=>u,listProfiles:()=>x,removeToken:()=>h,setActivityLogBaseUrl:()=>w,setBaseUrl:()=>d,setCurrentProfile:()=>b,setProfileOverride:()=>g,setToken:()=>f});var i=a(83440),n=a(16928),r=a(70857),o=n.join(r.homedir(),".bricks-cli"),s=n.join(o,"config.json"),p=new i.default({projectName:"bricks-cli",cwd:o,schema:{tokens:{type:"object",default:{},additionalProperties:{type:"object",properties:{token:{type:"string"},name:{type:"string"},workspaceId:{type:"string"},workspaceName:{type:"string"},workspaceBilling:{type:"object"},createdAt:{type:"string"},baseUrl:{type:"string"}}}},currentProfile:{type:"string",default:"default"},baseUrl:{type:"string",default:"https://display.bricks.tools"},activityLogBaseUrl:{type:"string",default:"https://activity-log.bricks.tools"},devtoolsTokens:{type:"object",default:{},additionalProperties:{type:"object",additionalProperties:{type:"object",properties:{token:{type:"string"},expiresAt:{type:"string"},jti:{type:"string"},workspaceId:{type:"string"}}}}}}}),l=()=>{var e=y(),t=p.get("tokens");return t[e]?.baseUrl||p.get("baseUrl")},d=(e,t)=>{if(!t)return void p.set("baseUrl",e);var a=p.get("tokens");a[t]||(a[t]={}),a[t].baseUrl=e,p.set("tokens",a)},u=()=>p.get("tokens"),c=(e="default")=>{var t=p.get("tokens");return t[e]?.token},m=(e="default")=>p.get("tokens")[e],f=(e,t)=>{var a=p.get("tokens"),i=a[e];a[e]={...i?.baseUrl?{baseUrl:i.baseUrl}:{},...i?.activityLogBaseUrl?{activityLogBaseUrl:i.activityLogBaseUrl}:{},...t,createdAt:new Date().toISOString()},p.set("tokens",a)},h=e=>{var t=p.get("tokens");delete t[e],p.set("tokens",t)},v=null,g=e=>{v=e},y=()=>v||process.env.BRICKS_PROFILE||p.get("currentProfile"),D=()=>v?"override":process.env.BRICKS_PROFILE?"env":"config",b=e=>p.set("currentProfile",e),x=()=>{var e=p.get("tokens"),t=p.get("currentProfile");return Object.keys(e).map(a=>({...e[a],name:a,current:a===t}))},_=()=>{var e=y(),t=p.get("tokens");return t[e]?.activityLogBaseUrl||p.get("activityLogBaseUrl")},w=(e,t)=>{if(!t)return void p.set("activityLogBaseUrl",e);var a=p.get("tokens");a[t]||(a[t]={}),a[t].activityLogBaseUrl=e,p.set("tokens",a)},E=()=>{p.clear()};let F=p},75646(e,t,a){a.r(t),a.d(t,{discoverDevToolsServers:()=>d,httpProbeSubnet:()=>u,verifyDevToolsServer:()=>c});var i,n,r=a(99436),o=a(41314),s=a(48161),p="bricks-devtools",l=()=>{var e=[];for(var t of Object.values(s.networkInterfaces()))for(var a of t)if(function(){if("IPv4"!==a.family||a.internal)return 1;var t=a.address.split(".").map(Number),i=a.netmask.split(".").map(Number),n=t.map((e,t)=>(e|255&~i[t]).toString()).join(".");e.push({address:a.address,broadcast:n})}())continue;return e},d=({timeout:e=3e3,idleTimeout:t=0}={})=>new Promise((a,i)=>{var n=new Map,r=o.createSocket("udp4"),s=null,d=null,u=!1,c=()=>{if(!u){u=!0,clearTimeout(s),clearTimeout(d);try{r.close()}catch{}a([...n.values()])}};r.on("error",e=>{if(!u){u=!0,clearTimeout(s),clearTimeout(d);try{r.close()}catch{}i(e)}}),r.on("message",(e,a)=>{try{var i=JSON.parse(e.toString());if(i.s!==p||"ANNOUNCE"!==i.t&&"RESPONSE"!==i.t)return;var r=i.d?.info;if(!r)return;var o=a.address,s=`${o}:${r.port}`;n.has(s)||(n.set(s,{...r,address:o}),t&&!u&&(clearTimeout(d),d=setTimeout(c,t)))}catch{}}),r.bind(()=>{r.setBroadcast(!0);var t=Buffer.from(JSON.stringify({t:"QUERY",v:"1.0",s:p,d:{id:`cli-${Math.random().toString(36).substring(2,9)}`}})),a=new Set(["255.255.255.255","127.0.0.1"]);for(var i of l())a.add(i.broadcast);for(var n of a)r.send(t,0,t.length,19900,n);s=setTimeout(c,e)})}),u=(i=r(function*({port:e=19851,connectTimeout:t=500,concurrency:a=50,timeout:i=0}={}){var n=l();if(0===n.length)return[];var o=[],s=i>0?Date.now()+i:0,p=[],d=new Set;for(var u of n){var m=u.address.split(".").slice(0,3).join(".");if(!d.has(m)){d.add(m);for(var f=1;f<255;f++)p.push(`${m}.${f}`)}}for(var h=0;h<p.length&&!(s&&Date.now()>=s);h+=a){var v=p.slice(h,h+a);yield Promise.allSettled(v.map(function(){var a=r(function*(a){var i=yield c(a,e,t);i&&o.push({...i,address:a,port:e})});return function(e){return a.apply(this,arguments)}}()))}return o}),function(){return i.apply(this,arguments)}),c=(n=r(function*(e,t,a=3e3){try{var i=new AbortController,n=setTimeout(()=>i.abort(),a),r=yield fetch(`http://${e}:${t}/devtools/info`,{signal:i.signal});if(clearTimeout(n),!r.ok)return null;return yield r.json()}catch{return null}}),function(e,t){return n.apply(this,arguments)})},74049(e,t,a){a.d(t,{Ku:()=>s,w9:()=>o});var i=a(79896),n=a(16928),r=new Set(["CTOR","CTOR Desktop"]),o=e=>{var t,a=`Release by ${(t=process.env.BRICKS_RELEASE_SIGN)&&r.has(t)?t:"BRICKS CLI"}`;return e?`${e}
|
|
970
981
|
|
|
971
982
|
${a}`:a},s=e=>{if(e.endsWith(".json")||e.includes("/")){if(!i.existsSync(e))throw Error(`Config file not found: ${e}`);var t=i.readFileSync(e,"utf-8");return{config:t,source:{type:"file",path:n.resolve(e)},sizeBytes:Buffer.byteLength(t)}}return{config:e,source:{type:"inline"},sizeBytes:Buffer.byteLength(e)}}},68168(e,t,a){a.d(t,{K:()=>o,Y:()=>s});var i,n=a(99436),r=e=>String(e||"").trim().toLowerCase(),o=({resource:e,query:t,items:a,fields:i,selectedBy:n=null})=>{var o=r(t),s=a.filter(e=>i.some(t=>r(t.split(".").reduce((e,t)=>e?.[t],e)??null)===o)),p=null,l=n;return"id"===n?p=a[0]||null:1===s.length?(p=s[0],l="exact"):1===a.length&&(p=a[0],l="single"),{resource:e,query:t,exactMatchCount:s.length,matchCount:a.length,selectedBy:l,ambiguous:a.length>1&&!p,resolved:p,matches:a}},s=(i=n(function*(e){try{return yield e()}catch(e){if(/not found/i.test(e.message))return null;throw e}}),function(e){return i.apply(this,arguments)})},60450(e,t,a){a.d(t,{Gu:()=>m,he:()=>h,wR:()=>u});var i,n,r,o=a(99436),s=a(79657),p=a(73024),l=a(76760),d=a(48161),u=e=>e?.media_resource?.enable_media_workspace===!0,c=(i=o(function*(e,t,a){var i=yield e.mediaFiles({boxId:t,userTags:[`bricks_screenshot_${a}`],limit:1});return i?.[0]||null}),function(e,t,a){return i.apply(this,arguments)}),m=(e,{preferThumbnail:t=!1}={})=>{if(!e?.meta?.storageEndpoint)return null;var a=e.meta,i=a.storageEndpoint,n=a.originalFileKey,r=(t?(e=>{var t=e?.meta;if(!t)return null;if("Video"===e.fileType&&t.videoThumbOriginalFileKey)return t.videoThumbOriginalFileKey;var a=t.imageVersions||[];if(!Array.isArray(a)||0===a.length)return null;var i=a.filter(e=>e?.strategy==="BOUNDED"&&"number"==typeof e.width).sort((e,t)=>e.width-t.width);return(i[0]||a[0])?.key||null})(e):null)||n;return r?`${i}/${r}`:null},f=(n=o(function*(e,t=null){var a=yield(0,s.Ay)(e);if(!a.ok)throw Error(`Failed to download screenshot: ${a.statusText}`);var i=yield a.buffer(),n=t||l.join(d.tmpdir(),`bricks-screenshot-${Date.now()}.png`),r=l.dirname(n);return p.existsSync(r)||p.mkdirSync(r,{recursive:!0}),p.writeFileSync(n,i),n}),function(e){return n.apply(this,arguments)}),h=(r=o(function*(e,t,a,i=null,n={}){var r=u(t)&&t.media_resource?.system_media_box_id||null;if(!r)return{error:"Media workspace not enabled for this workspace"};var o=yield c(e,r,a);if(!o)return{error:"No screenshot available for this device"};var s=m(o,n);return s?{path:yield f(s,i),file:o,url:s}:{error:"Could not build screenshot URL"}}),function(e,t,a){return r.apply(this,arguments)})},44618(e,t,a){a.d(t,{V:()=>r});var i={S:"Subspace",B:"Brick",C:"Canvas",A:"Animation",G:"Generator",D:"Data",F:"Data Calc",N:"Calc Node",T:"Test",TC:"Test Case",AT:"Automation Map"},n=e=>e?.split("_")?.[0]||"",r=(e,{keyword:t,types:a}={})=>{var r=t?.trim().toLowerCase()||"",o=a?.length>0?new Set(a.flatMap(e=>{var t=String(e).trim().toUpperCase();return t?[t]:[]})):null;return Object.entries(Object.entries(e||{}).filter(([,e])=>e&&!e.hide).filter(([e,t])=>{var a=n(e);if(o&&!o.has(a))return!1;if(!r)return!0;var i=t?.title?String(t.title).toLowerCase():"";return e.toLowerCase().includes(r)||i.includes(r)}).reduce((e,[t,a])=>{var i=n(t);return e[i]||(e[i]=[]),e[i].push({shortId:t,ref:a}),e},{})).map(([e,t])=>({prefix:e,label:i[e]||e,refs:t.sort((e,t)=>{var a=e.ref?.title||e.shortId,i=t.ref?.title||t.shortId;return String(a).localeCompare(String(i))})})).sort((e,t)=>e.label.localeCompare(t.label))}},94979(e,t,a){a.d(t,{p:()=>r});var i=/^(\d+)(s|m|h|d|w)$/,n={s:1e3,m:6e4,h:36e5,d:864e5,w:6048e5};function r(e){var t=e.match(i);if(t){var a=parseInt(t[1],10),r=n[t[2]];return new Date(Date.now()-a*r).toISOString()}var o=new Date(e);if(isNaN(o.getTime()))throw Error(`Invalid time format: "${e}". Use ISO 8601 or relative (e.g. 1h, 30m, 2d)`);return o.toISOString()}},98593(e,t,a){a.d(t,{Iy:()=>r,S5:()=>s,yd:()=>p});var i=a(73284),n=a(7586),r=(e,t,a)=>({label:e,ok:t,detail:a}),o=e=>null==e?i.Ay.gray("N/A"):"object"==typeof e?i.Ay.gray(JSON.stringify(e,null,2)):String(e),s=({action:e,target:t,request:a,checks:r=[],json:s=!1})=>{s?(0,n.GF)({ok:!0,dryRun:!0,action:e,target:t||null,request:a||null,checks:r}):(console.log(i.Ay.bold(`
|
|
972
983
|
Dry Run: ${e}`)),console.log("─".repeat(60)),t&&(console.log(i.Ay.bold("Target")),Object.entries(t).forEach(([e,t])=>{console.log(`${e}: ${o(t)}`)})),a&&(console.log(`
|