@comate/zulu 0.0.12 → 0.0.13

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.
@@ -33,7 +33,7 @@ const id=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.
33
33
  */
34
34
  const gd=a,vd=rd,xd=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),bd=e=>"number"==typeof e||"string"==typeof e&&""!==e,yd=e=>Number.isInteger(+e),_d=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},wd=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},Ed=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},Sd=(e,t,n,i)=>{if(n)return vd(e,t,{wrap:!1,...i});let r=String.fromCharCode(e);return e===t?r:`[${r}-${String.fromCharCode(t)}]`},kd=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,i=n.capture?"":"?:";return t?`(${i}${e.join("|")})`:e.join("|")}return vd(e,t,n)},Rd=(...e)=>new RangeError("Invalid range arguments: "+gd.inspect(...e)),Td=(e,t,n)=>{if(!0===n.strictRanges)throw Rd([e,t]);return[]},Od=(e,t,n=1,i={})=>{let r=Number(e),o=Number(t);if(!Number.isInteger(r)||!Number.isInteger(o)){if(!0===i.strictRanges)throw Rd([e,t]);return[]}0===r&&(r=0),0===o&&(o=0);let s=r>o,a=String(e),c=String(t),l=String(n);n=Math.max(Math.abs(n),1);let u=_d(a)||_d(c)||_d(l),p=u?Math.max(a.length,c.length,l.length):0,d=!1===u&&!1===((e,t,n)=>"string"==typeof e||"string"==typeof t||!0===n.stringify)(e,t,i),f=i.transform||(e=>t=>!0===e?Number(t):String(t))(d);if(i.toRegex&&1===n)return Sd(Ed(e,p),Ed(t,p),!0,i);let m={negatives:[],positives:[]},h=[],g=0;for(;s?r>=o:r<=o;)!0===i.toRegex&&n>1?m[(v=r)<0?"negatives":"positives"].push(Math.abs(v)):h.push(wd(f(r,g),p,d)),r=s?r-n:r+n,g++;var v;return!0===i.toRegex?n>1?((e,t,n)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let i,r=t.capture?"":"?:",o="",s="";return e.positives.length&&(o=e.positives.map((e=>Ed(String(e),n))).join("|")),e.negatives.length&&(s=`-(${r}${e.negatives.map((e=>Ed(String(e),n))).join("|")})`),i=o&&s?`${o}|${s}`:o||s,t.wrap?`(${r}${i})`:i})(m,i,p):kd(h,null,{wrap:!1,...i}):h},Cd=(e,t,n,i={})=>{if(null==t&&bd(e))return[e];if(!bd(e)||!bd(t))return Td(e,t,i);if("function"==typeof n)return Cd(e,t,1,{transform:n});if(xd(n))return Cd(e,t,0,n);let r={...i};return!0===r.capture&&(r.wrap=!0),n=n||r.step||1,yd(n)?yd(e)&&yd(t)?Od(e,t,n,r):((e,t,n=1,i={})=>{if(!yd(e)&&e.length>1||!yd(t)&&t.length>1)return Td(e,t,i);let r=i.transform||(e=>String.fromCharCode(e)),o=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=o>s,c=Math.min(o,s),l=Math.max(o,s);if(i.toRegex&&1===n)return Sd(c,l,!1,i);let u=[],p=0;for(;a?o>=s:o<=s;)u.push(r(o,p)),o=a?o-n:o+n,p++;return!0===i.toRegex?kd(u,null,{wrap:!1,options:i}):u})(e,t,Math.max(Math.abs(n),1),r):null==n||xd(n)?Cd(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,r)};const Ad=Cd,Pd=ed;var jd=(e,t={})=>{const n=(e,i={})=>{const r=Pd.isInvalidBrace(i),o=!0===e.invalid&&!0===t.escapeInvalid,s=!0===r||!0===o,a=!0===t.escapeInvalid?"\\":"";let c="";if(!0===e.isOpen)return a+e.value;if(!0===e.isClose)return console.log("node.isClose",a,e.value),a+e.value;if("open"===e.type)return s?a+e.value:"(";if("close"===e.type)return s?a+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":s?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){const n=Pd.reduce(e.nodes),i=Ad(...n,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==i.length)return n.length>1&&i.length>1?`(${i})`:i}if(e.nodes)for(const t of e.nodes)c+=n(t,e);return c};return n(e)};const Ld=Cd,Nd=nd,Id=ed,$d=(e="",t="",n=!1)=>{const i=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?Id.flatten(t).map((e=>`{${e}}`)):t;for(const r of e)if(Array.isArray(r))for(const e of r)i.push($d(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),i.push(Array.isArray(e)?$d(r,e,n):r+e);return Id.flatten(i)};var Md=(e,t={})=>{const n=void 0===t.rangeLimit?1e3:t.rangeLimit,i=(e,r={})=>{e.queue=[];let o=r,s=r.queue;for(;"brace"!==o.type&&"root"!==o.type&&o.parent;)o=o.parent,s=o.queue;if(e.invalid||e.dollar)return void s.push($d(s.pop(),Nd(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void s.push($d(s.pop(),["{}"]));if(e.nodes&&e.ranges>0){const i=Id.reduce(e.nodes);if(Id.exceedsLimit(...i,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let r=Ld(...i,t);return 0===r.length&&(r=Nd(e,t)),s.push($d(s.pop(),r)),void(e.nodes=[])}const a=Id.encloseBrace(e);let c=e.queue,l=e;for(;"brace"!==l.type&&"root"!==l.type&&l.parent;)l=l.parent,c=l.queue;for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];"comma"!==n.type||"brace"!==e.type?"close"!==n.type?n.value&&"open"!==n.type?c.push($d(c.pop(),n.value)):n.nodes&&i(n,e):s.push($d(s.pop(),c,a)):(1===t&&c.push(""),c.push(""))}return c};return Id.flatten(i(e))};const Dd=nd,{MAX_LENGTH:Fd,CHAR_BACKSLASH:zd,CHAR_BACKTICK:Bd,CHAR_COMMA:Ud,CHAR_DOT:qd,CHAR_LEFT_PARENTHESES:Hd,CHAR_RIGHT_PARENTHESES:Wd,CHAR_LEFT_CURLY_BRACE:Gd,CHAR_RIGHT_CURLY_BRACE:Vd,CHAR_LEFT_SQUARE_BRACKET:Kd,CHAR_RIGHT_SQUARE_BRACKET:Jd,CHAR_DOUBLE_QUOTE:Zd,CHAR_SINGLE_QUOTE:Yd,CHAR_NO_BREAK_SPACE:Qd,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Xd}={MAX_LENGTH:1e4,CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_COMMA:",",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_NO_BREAK_SPACE:" ",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SINGLE_QUOTE:"'",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"};var ef=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const n=t||{},i="number"==typeof n.maxLength?Math.min(Fd,n.maxLength):Fd;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);const r={type:"root",input:e,nodes:[]},o=[r];let s=r,a=r,c=0;const l=e.length;let u,p=0,d=0;const f=()=>e[p++],m=e=>{if("text"===e.type&&"dot"===a.type&&(a.type="text"),!a||"text"!==a.type||"text"!==e.type)return s.nodes.push(e),e.parent=s,e.prev=a,a=e,e;a.value+=e.value};for(m({type:"bos"});p<l;)if(s=o[o.length-1],u=f(),u!==Xd&&u!==Qd)if(u!==zd)if(u!==Jd)if(u!==Kd)if(u!==Hd)if(u!==Wd)if(u!==Zd&&u!==Yd&&u!==Bd)if(u!==Gd)if(u!==Vd)if(u===Ud&&d>0){if(s.ranges>0){s.ranges=0;const e=s.nodes.shift();s.nodes=[e,{type:"text",value:Dd(s)}]}m({type:"comma",value:u}),s.commas++}else if(u===qd&&d>0&&0===s.commas){const e=s.nodes;if(0===d||0===e.length){m({type:"text",value:u});continue}if("dot"===a.type){if(s.range=[],a.value+=u,a.type="range",3!==s.nodes.length&&5!==s.nodes.length){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if("range"===a.type){e.pop();const t=e[e.length-1];t.value+=a.value+u,a=t,s.ranges--;continue}m({type:"dot",value:u})}else m({type:"text",value:u});else{if("brace"!==s.type){m({type:"text",value:u});continue}const e="close";s=o.pop(),s.close=!0,m({type:e,value:u}),d--,s=o[o.length-1]}else{d++;const e=a.value&&"$"===a.value.slice(-1)||!0===s.dollar;s=m({type:"brace",open:!0,close:!1,dollar:e,depth:d,commas:0,ranges:0,nodes:[]}),o.push(s),m({type:"open",value:u})}else{const e=u;let n;for(!0!==t.keepQuotes&&(u="");p<l&&(n=f());)if(n!==zd){if(n===e){!0===t.keepQuotes&&(u+=n);break}u+=n}else u+=n+f();m({type:"text",value:u})}else{if("paren"!==s.type){m({type:"text",value:u});continue}s=o.pop(),m({type:"text",value:u}),s=o[o.length-1]}else s=m({type:"paren",nodes:[]}),o.push(s),m({type:"text",value:u});else{let e;for(c++;p<l&&(e=f());)if(u+=e,e!==Kd)if(e!==zd){if(e===Jd&&(c--,0===c))break}else u+=f();else c++;m({type:"text",value:u})}else m({type:"text",value:"\\"+u});else m({type:"text",value:(t.keepEscaping?u:"")+f()});do{if(s=o.pop(),"root"!==s.type){s.nodes.forEach((e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));const e=o[o.length-1],t=e.nodes.indexOf(s);e.nodes.splice(t,1,...s.nodes)}}while(o.length>0);return m({type:"eos"}),r};const tf=nd,nf=jd,rf=Md,of=ef,sf=(e,t={})=>{let n=[];if(Array.isArray(e))for(const i of e){const e=sf.create(i,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(sf.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};sf.parse=(e,t={})=>of(e,t),sf.stringify=(e,t={})=>tf("string"==typeof e?sf.parse(e,t):e,t),sf.compile=(e,t={})=>("string"==typeof e&&(e=sf.parse(e,t)),nf(e,t)),sf.expand=(e,t={})=>{"string"==typeof e&&(e=sf.parse(e,t));let n=rf(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},sf.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?sf.compile(e,t):sf.expand(e,t);const af=a,cf=sf,lf=dp,uf=xu,pf=e=>""===e||"./"===e,df=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let i=new Set,r=new Set,o=new Set,s=0,a=e=>{o.add(e.output),n&&n.onResult&&n.onResult(e)};for(let o=0;o<t.length;o++){let c=lf(String(t[o]),{...n,onResult:a},!0),l=c.state.negated||c.state.negatedExtglob;l&&s++;for(let t of e){let e=c(t,!0);(l?!e.isMatch:e.isMatch)&&(l?i.add(e.output):(i.delete(e.output),r.add(e.output)))}}let c=(s===t.length?[...o]:[...r]).filter((e=>!i.has(e)));if(n&&0===c.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}return c};df.match=df,df.matcher=(e,t)=>lf(e,t),df.any=df.isMatch=(e,t,n)=>lf(t,n)(e),df.not=(e,t,n={})=>{t=[].concat(t).map(String);let i=new Set,r=[],o=new Set(df(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),r.push(e.output)}}));for(let e of r)o.has(e)||i.add(e);return[...i]},df.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${af.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>df.contains(e,t,n)));if("string"==typeof t){if(pf(e)||pf(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return df.isMatch(e,t,{...n,contains:!0})},df.matchKeys=(e,t,n)=>{if(!uf.isObject(e))throw new TypeError("Expected the first argument to be an object");let i=df(Object.keys(e),t,n),r={};for(let t of i)r[t]=e[t];return r},df.some=(e,t,n)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=lf(String(e),n);if(i.some((e=>t(e))))return!0}return!1},df.every=(e,t,n)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=lf(String(e),n);if(!i.every((e=>t(e))))return!1}return!0},df.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${af.inspect(e)}"`);return[].concat(t).every((t=>lf(t,n)(e)))},df.capture=(e,t,n)=>{let i=uf.isWindows(n),r=lf.makeRe(String(e),{...n,capture:!0}).exec(i?uf.toPosixSlashes(t):t);if(r)return r.slice(1).map((e=>void 0===e?"":e))},df.makeRe=(...e)=>lf.makeRe(...e),df.scan=(...e)=>lf.scan(...e),df.parse=(e,t)=>{let n=[];for(let i of[].concat(e||[]))for(let e of cf(String(i),t))n.push(lf.parse(e,t));return n},df.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:cf(e,t)},df.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return df.braces(e,{...t,expand:!0})};var ff=df;Object.defineProperty(Up,"__esModule",{value:!0}),Up.removeDuplicateSlashes=Up.matchAny=Up.convertPatternsToRe=Up.makeRe=Up.getPatternParts=Up.expandBraceExpansion=Up.expandPatternsWithBraceExpansion=Up.isAffectDepthOfReadingPattern=Up.endsWithSlashGlobStar=Up.hasGlobStar=Up.getBaseDirectory=Up.isPatternRelatedToParentDirectory=Up.getPatternsOutsideCurrentDirectory=Up.getPatternsInsideCurrentDirectory=Up.getPositivePatterns=Up.getNegativePatterns=Up.isPositivePattern=Up.isNegativePattern=Up.convertToNegativePattern=Up.convertToPositivePattern=Up.isDynamicPattern=Up.isStaticPattern=void 0;const mf=c,hf=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&Jp&&e.indexOf("/")<0&&(e=e.replace(Zp,"/")),Yp.test(e)&&(e+="/"),e+="a";do{e=Kp(e)}while(Vp(e)||Qp.test(e));return e.replace(Xp,"$1")},gf=ff,vf="**",xf="\\",bf=/[*?]|^!/,yf=/\[[^[]*]/,_f=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,wf=/[!*+?@]\([^(]*\)/,Ef=/,|\.\./,Sf=/(?!^)\/{2,}/g;function kf(e,t={}){return!Rf(e,t)}function Rf(e,t={}){return""!==e&&(!(!1!==t.caseSensitiveMatch&&!e.includes(xf))||(!!(bf.test(e)||yf.test(e)||_f.test(e))||(!(!1===t.extglob||!wf.test(e))||!(!1===t.braceExpansion||!function(e){const t=e.indexOf("{");if(-1===t)return!1;const n=e.indexOf("}",t+1);if(-1===n)return!1;const i=e.slice(t,n);return Ef.test(i)}(e)))))}function Tf(e){return e.startsWith("!")&&"("!==e[1]}function Of(e){return!Tf(e)}function Cf(e){return e.startsWith("..")||e.startsWith("./..")}function Af(e){return e.endsWith("/"+vf)}function Pf(e){const t=gf.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort(((e,t)=>e.length-t.length)),t.filter((e=>""!==e))}function jf(e,t){return gf.makeRe(e,t)}Up.isStaticPattern=kf,Up.isDynamicPattern=Rf,Up.convertToPositivePattern=function(e){return Tf(e)?e.slice(1):e},Up.convertToNegativePattern=function(e){return"!"+e},Up.isNegativePattern=Tf,Up.isPositivePattern=Of,Up.getNegativePatterns=function(e){return e.filter(Tf)},Up.getPositivePatterns=function(e){return e.filter(Of)},Up.getPatternsInsideCurrentDirectory=function(e){return e.filter((e=>!Cf(e)))},Up.getPatternsOutsideCurrentDirectory=function(e){return e.filter(Cf)},Up.isPatternRelatedToParentDirectory=Cf,Up.getBaseDirectory=function(e){return hf(e,{flipBackslashes:!1})},Up.hasGlobStar=function(e){return e.includes(vf)},Up.endsWithSlashGlobStar=Af,Up.isAffectDepthOfReadingPattern=function(e){const t=mf.basename(e);return Af(e)||kf(t)},Up.expandPatternsWithBraceExpansion=function(e){return e.reduce(((e,t)=>e.concat(Pf(t))),[])},Up.expandBraceExpansion=Pf,Up.getPatternParts=function(e,t){let{parts:n}=gf.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return 0===n.length&&(n=[e]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n},Up.makeRe=jf,Up.convertPatternsToRe=function(e,t){return e.map((e=>jf(e,t)))},Up.matchAny=function(e,t){return t.some((t=>t.test(e)))},Up.removeDuplicateSlashes=function(e){return e.replace(Sf,"/")};var Lf={};Object.defineProperty(Lf,"__esModule",{value:!0}),Lf.merge=void 0;const Nf=wp;function If(e){e.forEach((e=>e.emit("close")))}Lf.merge=function(e){const t=Nf(e);return e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))})),t.once("close",(()=>If(e))),t.once("end",(()=>If(e))),t};var $f={};Object.defineProperty($f,"__esModule",{value:!0}),$f.isEmpty=$f.isString=void 0,$f.isString=function(e){return"string"==typeof e},$f.isEmpty=function(e){return""===e},Object.defineProperty(kp,"__esModule",{value:!0}),kp.string=kp.stream=kp.pattern=kp.path=kp.fs=kp.errno=kp.array=void 0;const Mf=Rp;kp.array=Mf;const Df=Tp;kp.errno=Df;const Ff=Op;kp.fs=Ff;const zf=Ap;kp.path=zf;const Bf=Up;kp.pattern=Bf;const Uf=Lf;kp.stream=Uf;const qf=$f;kp.string=qf,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.convertPatternGroupToTask=Sp.convertPatternGroupsToTasks=Sp.groupPatternsByBaseDirectory=Sp.getNegativePatternsAsPositive=Sp.getPositivePatterns=Sp.convertPatternsToTasks=Sp.generate=void 0;const Hf=kp;function Wf(e,t){let n=e;return t.braceExpansion&&(n=Hf.pattern.expandPatternsWithBraceExpansion(n)),t.baseNameMatch&&(n=n.map((e=>e.includes("/")?e:`**/${e}`))),n.map((e=>Hf.pattern.removeDuplicateSlashes(e)))}function Gf(e,t,n){const i=[],r=Hf.pattern.getPatternsOutsideCurrentDirectory(e),o=Hf.pattern.getPatternsInsideCurrentDirectory(e),s=Jf(r),a=Jf(o);return i.push(...Zf(s,t,n)),"."in a?i.push(Yf(".",o,t,n)):i.push(...Zf(a,t,n)),i}function Vf(e){return Hf.pattern.getPositivePatterns(e)}function Kf(e,t){return Hf.pattern.getNegativePatterns(e).concat(t).map(Hf.pattern.convertToPositivePattern)}function Jf(e){return e.reduce(((e,t)=>{const n=Hf.pattern.getBaseDirectory(t);return n in e?e[n].push(t):e[n]=[t],e}),{})}function Zf(e,t,n){return Object.keys(e).map((i=>Yf(i,e[i],t,n)))}function Yf(e,t,n,i){return{dynamic:i,positive:t,negative:n,base:e,patterns:[].concat(t,n.map(Hf.pattern.convertToNegativePattern))}}Sp.generate=function(e,t){const n=Wf(e,t),i=Wf(t.ignore,t),r=Vf(n),o=Kf(n,i),s=r.filter((e=>Hf.pattern.isStaticPattern(e,t))),a=r.filter((e=>Hf.pattern.isDynamicPattern(e,t))),c=Gf(s,o,!1),l=Gf(a,o,!0);return c.concat(l)},Sp.convertPatternsToTasks=Gf,Sp.getPositivePatterns=Vf,Sp.getNegativePatternsAsPositive=Kf,Sp.groupPatternsByBaseDirectory=Jf,Sp.convertPatternGroupsToTasks=Zf,Sp.convertPatternGroupToTask=Yf;var Qf={},Xf={},em={},tm={},nm={},im={},rm={},om={},sm={};function am(e,t){e(t)}function cm(e,t){e(null,t)}Object.defineProperty(sm,"__esModule",{value:!0}),sm.read=void 0,sm.read=function(e,t,n){t.fs.lstat(e,((i,r)=>{null===i?r.isSymbolicLink()&&t.followSymbolicLink?t.fs.stat(e,((e,i)=>{if(null!==e)return t.throwErrorOnBrokenSymbolicLink?void am(n,e):void cm(n,r);t.markSymbolicLink&&(i.isSymbolicLink=()=>!0),cm(n,i)})):cm(n,r):am(n,i)}))};var lm={};Object.defineProperty(lm,"__esModule",{value:!0}),lm.read=void 0,lm.read=function(e,t){const n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{const n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(e){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw e}};var um={},pm={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const t=b;e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync},e.createFileSystemAdapter=function(t){return void 0===t?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}}(pm),Object.defineProperty(um,"__esModule",{value:!0});const dm=pm;um.default=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=dm.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return null!=e?e:t}},Object.defineProperty(om,"__esModule",{value:!0}),om.statSync=om.stat=om.Settings=void 0;const fm=sm,mm=lm,hm=um;function gm(e={}){return e instanceof hm.default?e:new hm.default(e)}
35
35
  /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */let vm;om.Settings=hm.default,om.stat=function(e,t,n){"function"!=typeof t?fm.read(e,gm(t),n):fm.read(e,gm(),t)},om.statSync=function(e,t){const n=gm(t);return mm.read(e,n)};var xm=function(e,t){let n,i,r,o=!0;Array.isArray(e)?(n=[],i=e.length):(r=Object.keys(e),n={},i=r.length);function s(e){function i(){t&&t(e,n),t=null}o?bm(i):i()}function a(e,t,r){n[e]=r,(0==--i||t)&&s(t)}i?r?r.forEach((function(t){e[t]((function(e,n){a(t,e,n)}))})):e.forEach((function(e,t){e((function(e,n){a(t,e,n)}))})):s(null);o=!1};
36
- /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */const bm="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:ze):e=>(vm||(vm=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)));var ym={};Object.defineProperty(ym,"__esModule",{value:!0}),ym.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const _m=process.versions.node.split(".");if(void 0===_m[0]||void 0===_m[1])throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const wm=Number.parseInt(_m[0],10),Em=Number.parseInt(_m[1],10),Sm=wm>10,km=10===wm&&Em>=10;ym.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Sm||km;var Rm={},Tm={};Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.createDirentFromStats=void 0;class Om{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}Tm.createDirentFromStats=function(e,t){return new Om(e,t)},Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.fs=void 0;const Cm=Tm;Rm.fs=Cm;var Am={};Object.defineProperty(Am,"__esModule",{value:!0}),Am.joinPathSegments=void 0,Am.joinPathSegments=function(e,t,n){return e.endsWith(n)?e+t:e+n+t},Object.defineProperty(rm,"__esModule",{value:!0}),rm.readdir=rm.readdirWithFileTypes=rm.read=void 0;const Pm=om,jm=xm,Lm=ym,Nm=Rm,Im=Am;function $m(e,t,n){t.fs.readdir(e,{withFileTypes:!0},((i,r)=>{if(null!==i)return void Dm(n,i);const o=r.map((n=>({dirent:n,name:n.name,path:Im.joinPathSegments(e,n.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks)return void Fm(n,o);const s=o.map((e=>function(e,t){return n=>{e.dirent.isSymbolicLink()?t.fs.stat(e.path,((i,r)=>{if(null!==i)return t.throwErrorOnBrokenSymbolicLink?void n(i):void n(null,e);e.dirent=Nm.fs.createDirentFromStats(e.name,r),n(null,e)})):n(null,e)}}(e,t)));jm(s,((e,t)=>{null===e?Fm(n,t):Dm(n,e)}))}))}function Mm(e,t,n){t.fs.readdir(e,((i,r)=>{if(null!==i)return void Dm(n,i);const o=r.map((n=>{const i=Im.joinPathSegments(e,n,t.pathSegmentSeparator);return e=>{Pm.stat(i,t.fsStatSettings,((r,o)=>{if(null!==r)return void e(r);const s={name:n,path:i,dirent:Nm.fs.createDirentFromStats(n,o)};t.stats&&(s.stats=o),e(null,s)}))}}));jm(o,((e,t)=>{null===e?Fm(n,t):Dm(n,e)}))}))}function Dm(e,t){e(t)}function Fm(e,t){e(null,t)}rm.read=function(e,t,n){t.stats||!Lm.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Mm(e,t,n):$m(e,t,n)},rm.readdirWithFileTypes=$m,rm.readdir=Mm;var zm={};Object.defineProperty(zm,"__esModule",{value:!0}),zm.readdir=zm.readdirWithFileTypes=zm.read=void 0;const Bm=om,Um=ym,qm=Rm,Hm=Am;function Wm(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map((n=>{const i={dirent:n,name:n.name,path:Hm.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{const e=t.fs.statSync(i.path);i.dirent=qm.fs.createDirentFromStats(i.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return i}))}function Gm(e,t){return t.fs.readdirSync(e).map((n=>{const i=Hm.joinPathSegments(e,n,t.pathSegmentSeparator),r=Bm.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:qm.fs.createDirentFromStats(n,r)};return t.stats&&(o.stats=r),o}))}zm.read=function(e,t){return!t.stats&&Um.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Wm(e,t):Gm(e,t)},zm.readdirWithFileTypes=Wm,zm.readdir=Gm;var Vm={},Km={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const t=b;e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync},e.createFileSystemAdapter=function(t){return void 0===t?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}}(Km),Object.defineProperty(Vm,"__esModule",{value:!0});const Jm=c,Zm=om,Ym=Km;Vm.default=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Ym.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Jm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Zm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Object.defineProperty(im,"__esModule",{value:!0}),im.Settings=im.scandirSync=im.scandir=void 0;const Qm=rm,Xm=zm,eh=Vm;function th(e={}){return e instanceof eh.default?e:new eh.default(e)}im.Settings=eh.default,im.scandir=function(e,t,n){"function"!=typeof t?Qm.read(e,th(t),n):Qm.read(e,th(),t)},im.scandirSync=function(e,t){const n=th(t);return Xm.read(e,n)};var nh={exports:{}};var ih=function(e){var t=new e,n=t;return{get:function(){var i=t;return i.next?t=i.next:(t=new e,n=t),i.next=null,i},release:function(e){n.next=e,n=e}}};function rh(e,t,n){if("function"==typeof e&&(n=t,t=e,e=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var i=ih(sh),r=null,o=null,s=0,a=null,c={push:function(u,p){var d=i.get();d.context=e,d.release=l,d.value=u,d.callback=p||oh,d.errorHandler=a,s>=n||c.paused?o?(o.next=d,o=d):(r=d,o=d,c.saturated()):(s++,t.call(e,d.value,d.worked))},drain:oh,saturated:oh,pause:function(){c.paused=!0},paused:!1,get concurrency(){return n},set concurrency(e){if(!(e>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=e,!c.paused)for(;r&&s<n;)s++,l()},running:function(){return s},resume:function(){if(!c.paused)return;if(c.paused=!1,null===r)return s++,void l();for(;r&&s<n;)s++,l()},idle:function(){return 0===s&&0===c.length()},length:function(){var e=r,t=0;for(;e;)e=e.next,t++;return t},getQueue:function(){var e=r,t=[];for(;e;)t.push(e.value),e=e.next;return t},unshift:function(u,p){var d=i.get();d.context=e,d.release=l,d.value=u,d.callback=p||oh,d.errorHandler=a,s>=n||c.paused?r?(d.next=r,r=d):(r=d,o=d,c.saturated()):(s++,t.call(e,d.value,d.worked))},empty:oh,kill:function(){r=null,o=null,c.drain=oh},killAndDrain:function(){r=null,o=null,c.drain(),c.drain=oh},error:function(e){a=e}};return c;function l(a){a&&i.release(a);var l=r;l&&s<=n?c.paused?s--:(o===r&&(o=null),r=l.next,l.next=null,t.call(e,l.value,l.worked),null===o&&c.empty()):0==--s&&c.drain()}}function oh(){}function sh(){this.value=null,this.callback=oh,this.next=null,this.release=oh,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var i=e.callback,r=e.errorHandler,o=e.value;e.value=null,e.callback=oh,e.errorHandler&&r(t,o),i.call(e.context,t,n),e.release(e)}}nh.exports=rh,nh.exports.promise=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=null);var i=rh(e,(function(e,n){t.call(this,e).then((function(e){n(null,e)}),n)}),n),r=i.push,o=i.unshift;return i.push=function(e){var t=new Promise((function(t,n){r(e,(function(e,i){e?n(e):t(i)}))}));return t.catch(oh),t},i.unshift=function(e){var t=new Promise((function(t,n){o(e,(function(e,i){e?n(e):t(i)}))}));return t.catch(oh),t},i.drained=function(){if(i.idle())return new Promise((function(e){e()}));var e=i.drain;return new Promise((function(t){i.drain=function(){e(),t()}}))},i};var ah=nh.exports,ch={};Object.defineProperty(ch,"__esModule",{value:!0}),ch.joinPathSegments=ch.replacePathSegmentSeparator=ch.isAppliedFilter=ch.isFatalError=void 0,ch.isFatalError=function(e,t){return null===e.errorFilter||!e.errorFilter(t)},ch.isAppliedFilter=function(e,t){return null===e||e(t)},ch.replacePathSegmentSeparator=function(e,t){return e.split(/[/\\]/).join(t)},ch.joinPathSegments=function(e,t,n){return""===e?t:e.endsWith(n)?e+t:e+n+t};var lh={};Object.defineProperty(lh,"__esModule",{value:!0});const uh=ch;lh.default=class{constructor(e,t){this._root=e,this._settings=t,this._root=uh.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}},Object.defineProperty(nm,"__esModule",{value:!0});const ph=A,dh=im,fh=ah,mh=ch,hh=lh;class gh extends hh.default{constructor(e,t){super(e,t),this._settings=t,this._scandir=dh.scandir,this._emitter=new ph.EventEmitter,this._queue=fh(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)})),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const n={directory:e,base:t};this._queue.push(n,(e=>{null!==e&&this._handleError(e)}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((n,i)=>{if(null===n){for(const t of i)this._handleEntry(t,e.base);t(null,void 0)}else t(n,void 0)}))}_handleError(e){!this._isDestroyed&&mh.isFatalError(this._settings,e)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;const n=e.path;void 0!==t&&(e.path=mh.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),mh.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&mh.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,void 0===t?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}nm.default=gh,Object.defineProperty(tm,"__esModule",{value:!0});const vh=nm;tm.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new vh.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError((t=>{!function(e,t){e(t)}(e,t)})),this._reader.onEntry((e=>{this._storage.push(e)})),this._reader.onEnd((()=>{!function(e,t){e(null,t)}(e,this._storage)})),this._reader.read()}};var xh={};Object.defineProperty(xh,"__esModule",{value:!0});const bh=_,yh=nm;xh.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new yh.default(this._root,this._settings),this._stream=new bh.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError((e=>{this._stream.emit("error",e)})),this._reader.onEntry((e=>{this._stream.push(e)})),this._reader.onEnd((()=>{this._stream.push(null)})),this._reader.read(),this._stream}};var _h={},wh={};Object.defineProperty(wh,"__esModule",{value:!0});const Eh=im,Sh=ch,kh=lh;class Rh extends kh.default{constructor(){super(...arguments),this._scandir=Eh.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{const n=this._scandir(e,this._settings.fsScandirSettings);for(const e of n)this._handleEntry(e,t)}catch(e){this._handleError(e)}}_handleError(e){if(Sh.isFatalError(this._settings,e))throw e}_handleEntry(e,t){const n=e.path;void 0!==t&&(e.path=Sh.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),Sh.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Sh.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,void 0===t?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}wh.default=Rh,Object.defineProperty(_h,"__esModule",{value:!0});const Th=wh;_h.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new Th.default(this._root,this._settings)}read(){return this._reader.read()}};var Oh={};Object.defineProperty(Oh,"__esModule",{value:!0});const Ch=c,Ah=im;Oh.default=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ch.sep),this.fsScandirSettings=new Ah.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Object.defineProperty(em,"__esModule",{value:!0}),em.Settings=em.walkStream=em.walkSync=em.walk=void 0;const Ph=tm,jh=xh,Lh=_h,Nh=Oh;function Ih(e={}){return e instanceof Nh.default?e:new Nh.default(e)}em.Settings=Nh.default,em.walk=function(e,t,n){"function"!=typeof t?new Ph.default(e,Ih(t)).read(n):new Ph.default(e,Ih()).read(t)},em.walkSync=function(e,t){const n=Ih(t);return new Lh.default(e,n).read()},em.walkStream=function(e,t){const n=Ih(t);return new jh.default(e,n).read()};var $h={};Object.defineProperty($h,"__esModule",{value:!0});const Mh=c,Dh=om,Fh=kp;$h.default=class{constructor(e){this._settings=e,this._fsStatSettings=new Dh.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Mh.resolve(this._settings.cwd,e)}_makeEntry(e,t){const n={name:t,path:t,dirent:Fh.fs.createDirentFromStats(t,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Fh.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};var zh={};Object.defineProperty(zh,"__esModule",{value:!0});const Bh=_,Uh=om,qh=em,Hh=$h;class Wh extends Hh.default{constructor(){super(...arguments),this._walkStream=qh.walkStream,this._stat=Uh.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const n=e.map(this._getFullEntryPath,this),i=new Bh.PassThrough({objectMode:!0});i._write=(r,o,s)=>this._getEntry(n[r],e[r],t).then((e=>{null!==e&&t.entryFilter(e)&&i.push(e),r===n.length-1&&i.end(),s()})).catch(s);for(let e=0;e<n.length;e++)i.write(e);return i}_getEntry(e,t,n){return this._getStat(e).then((e=>this._makeEntry(e,t))).catch((e=>{if(n.errorFilter(e))return null;throw e}))}_getStat(e){return new Promise(((t,n)=>{this._stat(e,this._fsStatSettings,((e,i)=>null===e?t(i):n(e)))}))}}zh.default=Wh,Object.defineProperty(Xf,"__esModule",{value:!0});const Gh=em,Vh=$h,Kh=zh;class Jh extends Vh.default{constructor(){super(...arguments),this._walkAsync=Gh.walk,this._readerStream=new Kh.default(this._settings)}dynamic(e,t){return new Promise(((n,i)=>{this._walkAsync(e,t,((e,t)=>{null===e?n(t):i(e)}))}))}async static(e,t){const n=[],i=this._readerStream.static(e,t);return new Promise(((e,t)=>{i.once("error",t),i.on("data",(e=>n.push(e))),i.once("end",(()=>e(n)))}))}}Xf.default=Jh;var Zh={},Yh={},Qh={},Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});const eg=kp;Xh.default=class{constructor(e,t,n){this._patterns=e,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(const e of this._patterns){const t=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(e){return eg.pattern.getPatternParts(e,this._micromatchOptions).map((e=>eg.pattern.isDynamicPattern(e,this._settings)?{dynamic:!0,pattern:e,patternRe:eg.pattern.makeRe(e,this._micromatchOptions)}:{dynamic:!1,pattern:e}))}_splitSegmentsIntoSections(e){return eg.array.splitWhen(e,(e=>e.dynamic&&eg.pattern.hasGlobStar(e.pattern)))}},Object.defineProperty(Qh,"__esModule",{value:!0});const tg=Xh;class ng extends tg.default{match(e){const t=e.split("/"),n=t.length,i=this._storage.filter((e=>!e.complete||e.segments.length>n));for(const e of i){const i=e.sections[0];if(!e.complete&&n>i.length)return!0;const r=t.every(((t,n)=>{const i=e.segments[n];return!(!i.dynamic||!i.patternRe.test(t))||!i.dynamic&&i.pattern===t}));if(r)return!0}return!1}}Qh.default=ng,Object.defineProperty(Yh,"__esModule",{value:!0});const ig=kp,rg=Qh;Yh.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,n){const i=this._getMatcher(t),r=this._getNegativePatternsRe(n);return t=>this._filter(e,t,i,r)}_getMatcher(e){return new rg.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(ig.pattern.isAffectDepthOfReadingPattern);return ig.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,n,i){if(this._isSkippedByDeep(e,t.path))return!1;if(this._isSkippedSymbolicLink(t))return!1;const r=ig.path.removeLeadingDotSegment(t.path);return!this._isSkippedByPositivePatterns(r,n)&&this._isSkippedByNegativePatterns(r,i)}_isSkippedByDeep(e,t){return this._settings.deep!==1/0&&this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const n=t.split("/").length;if(""===e)return n;return n-e.split("/").length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!ig.pattern.matchAny(e,t)}};var og={};Object.defineProperty(og,"__esModule",{value:!0});const sg=kp;og.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,t){const n=sg.pattern.convertPatternsToRe(e,this._micromatchOptions),i=sg.pattern.convertPatternsToRe(t,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return e=>this._filter(e,n,i)}_filter(e,t,n){const i=sg.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(i))return!1;if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;if(this._isSkippedByAbsoluteNegativePatterns(i,n))return!1;const r=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,t,r)&&!this._isMatchToPatterns(i,n,r);return this._settings.unique&&o&&this._createIndexRecord(i),o}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute)return!1;const n=sg.path.makeAbsolute(this._settings.cwd,e);return sg.pattern.matchAny(n,t)}_isMatchToPatterns(e,t,n){const i=sg.pattern.matchAny(e,t);return!i&&n?sg.pattern.matchAny(e+"/",t):i}};var ag={};Object.defineProperty(ag,"__esModule",{value:!0});const cg=kp;ag.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return cg.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};var lg={};Object.defineProperty(lg,"__esModule",{value:!0});const ug=kp;lg.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;return this._settings.absolute&&(t=ug.path.makeAbsolute(this._settings.cwd,t),t=ug.path.unixify(t)),this._settings.markDirectories&&e.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:t}):t}},Object.defineProperty(Zh,"__esModule",{value:!0});const pg=c,dg=Yh,fg=og,mg=ag,hg=lg;Zh.default=class{constructor(e){this._settings=e,this.errorFilter=new mg.default(this._settings),this.entryFilter=new fg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new dg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new hg.default(this._settings)}_getRootDirectory(e){return pg.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t="."===e.base?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}},Object.defineProperty(Qf,"__esModule",{value:!0});const gg=Xf,vg=Zh;class xg extends vg.default{constructor(){super(...arguments),this._reader=new gg.default(this._settings)}async read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(t,e,n)).map((e=>n.transform(e)))}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}Qf.default=xg;var bg={};Object.defineProperty(bg,"__esModule",{value:!0});const yg=_,_g=zh,wg=Zh;class Eg extends wg.default{constructor(){super(...arguments),this._reader=new _g.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(t,e,n),r=new yg.Readable({objectMode:!0,read:()=>{}});return i.once("error",(e=>r.emit("error",e))).on("data",(e=>r.emit("data",n.transform(e)))).once("end",(()=>r.emit("end"))),r.once("close",(()=>i.destroy())),r}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}bg.default=Eg;var Sg={},kg={};Object.defineProperty(kg,"__esModule",{value:!0});const Rg=om,Tg=em,Og=$h;class Cg extends Og.default{constructor(){super(...arguments),this._walkSync=Tg.walkSync,this._statSync=Rg.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const n=[];for(const i of e){const e=this._getFullEntryPath(i),r=this._getEntry(e,i,t);null!==r&&t.entryFilter(r)&&n.push(r)}return n}_getEntry(e,t,n){try{const n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}kg.default=Cg,Object.defineProperty(Sg,"__esModule",{value:!0});const Ag=kg,Pg=Zh;class jg extends Pg.default{constructor(){super(...arguments),this._reader=new Ag.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(t,e,n).map(n.transform)}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}Sg.default=jg;var Lg={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const t=b,n=l,i=Math.max(n.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};e.default=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,t){return void 0===e?t:e}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}}(Lg);const Ng=Sp,Ig=Qf,$g=bg,Mg=Sg,Dg=Lg,Fg=kp;async function zg(e,t){Ug(e);const n=Bg(e,Ig.default,t),i=await Promise.all(n);return Fg.array.flatten(i)}function Bg(e,t,n){const i=[].concat(e),r=new Dg.default(n),o=Ng.generate(i,r),s=new t(r);return o.map(s.read,s)}function Ug(e){if(![].concat(e).every((e=>Fg.string.isString(e)&&!Fg.string.isEmpty(e))))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}!function(e){function t(e,t){Ug(e);const n=Bg(e,Mg.default,t);return Fg.array.flatten(n)}function n(e,t){Ug(e);const n=Bg(e,$g.default,t);return Fg.stream.merge(n)}var i,r;e.glob=e,e.globSync=t,e.globStream=n,e.async=e,e.sync=t,e.stream=n,e.generateTasks=function(e,t){Ug(e);const n=[].concat(e),i=new Dg.default(t);return Ng.generate(n,i)},e.isDynamicPattern=function(e,t){Ug(e);const n=new Dg.default(t);return Fg.pattern.isDynamicPattern(e,n)},e.escapePath=function(e){return Ug(e),Fg.path.escape(e)},e.convertPathToPattern=function(e){return Ug(e),Fg.path.convertPathToPattern(e)},(i=e.posix||(e.posix={})).escapePath=function(e){return Ug(e),Fg.path.escapePosixPath(e)},i.convertPathToPattern=function(e){return Ug(e),Fg.path.convertPosixPathToPattern(e)},(r=e.win32||(e.win32={})).escapePath=function(e){return Ug(e),Fg.path.escapeWindowsPath(e)},r.convertPathToPattern=function(e){return Ug(e),Fg.path.convertWindowsPathToPattern(e)}}(zg||(zg={}));var qg={exports:{}},Hg={};const{promisify:Wg}=a,Gg=b;async function Vg(e,t,n){if("string"!=typeof n)throw new TypeError("Expected a string, got "+typeof n);try{return(await Wg(Gg[e])(n))[t]()}catch(e){if("ENOENT"===e.code)return!1;throw e}}function Kg(e,t,n){if("string"!=typeof n)throw new TypeError("Expected a string, got "+typeof n);try{return Gg[e](n)[t]()}catch(e){if("ENOENT"===e.code)return!1;throw e}}Hg.isFile=Vg.bind(null,"stat","isFile"),Hg.isDirectory=Vg.bind(null,"stat","isDirectory"),Hg.isSymlink=Vg.bind(null,"lstat","isSymbolicLink"),Hg.isFileSync=Kg.bind(null,"statSync","isFile"),Hg.isDirectorySync=Kg.bind(null,"statSync","isDirectory"),Hg.isSymlinkSync=Kg.bind(null,"lstatSync","isSymbolicLink");const Jg=c,Zg=Hg,Yg=e=>e.length>1?`{${e.join(",")}}`:e[0],Qg=(e,t)=>{const n="!"===e[0]?e.slice(1):e;return Jg.isAbsolute(n)?n:Jg.join(t,n)},Xg=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map((n=>Jg.posix.join(e,((e,t)=>Jg.extname(e)?`**/${e}`:`**/${e}.${Yg(t)}`)(n,t.extensions)))):t.files?t.files.map((t=>Jg.posix.join(e,`**/${t}`))):t.extensions?[Jg.posix.join(e,`**/*.${Yg(t.extensions)}`)]:[Jg.posix.join(e,"**")]};function ev(e){return Array.isArray(e)?e:[e]}qg.exports=async(e,t)=>{if("string"!=typeof(t={cwd:process.cwd(),...t}).cwd)throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);const n=await Promise.all([].concat(e).map((async e=>await Zg.isDirectory(Qg(e,t.cwd))?Xg(e,t):e)));return[].concat.apply([],n)},qg.exports.sync=(e,t)=>{if("string"!=typeof(t={cwd:process.cwd(),...t}).cwd)throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);const n=[].concat(e).map((e=>Zg.isDirectorySync(Qg(e,t.cwd))?Xg(e,t):e));return[].concat.apply([],n)};const tv=/^\s+$/,nv=/(?:[^\\]|^)\\$/,iv=/^\\!/,rv=/^\\#/,ov=/\r?\n/g,sv=/^\.*\/|^\.+$/;let av="node-ignore";"undefined"!=typeof Symbol&&(av=Symbol.for("node-ignore"));const cv=av,lv=/([0-z])-([0-z])/g,uv=()=>!1,pv=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,i,r)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(i)}${r}`:"]"===r&&i.length%2==0?`[${(e=>e.replace(lv,((e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:"")))(n)}${i}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],dv=Object.create(null),fv=e=>"string"==typeof e;class mv{constructor(e,t,n,i){this.origin=e,this.pattern=t,this.negative=n,this.regex=i}}const hv=(e,t)=>{const n=e;let i=!1;0===e.indexOf("!")&&(i=!0,e=e.substr(1));const r=((e,t)=>{let n=dv[e];return n||(n=pv.reduce(((t,[n,i])=>t.replace(n,i.bind(e))),e),dv[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(iv,"!").replace(rv,"#"),t);return new mv(n,e,i,r)},gv=(e,t)=>{throw new t(e)},vv=(e,t,n)=>{if(!fv(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(vv.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},xv=e=>sv.test(e);vv.isNotRelative=xv,vv.convert=e=>e;class bv{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var i,r,o;i=this,r=cv,o=!0,Object.defineProperty(i,r,{value:o}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[cv])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&fv(e)&&!tv.test(e)&&!nv.test(e)&&0!==e.indexOf("#"))(e)){const t=hv(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,ev(fv(e)?(e=>e.split(ov))(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,i=!1;return this._rules.forEach((r=>{const{negative:o}=r;if(i===o&&n!==i||o&&!n&&!i&&!t)return;r.regex.test(e)&&(n=!o,i=o)})),{ignored:n,unignored:i}}_test(e,t,n,i){const r=e&&vv.convert(e);return vv(r,e,this._allowRelativePaths?uv:gv),this._t(r,t,n,i)}_t(e,t,n,i){if(e in t)return t[e];if(i||(i=e.split("/")),i.pop(),!i.length)return t[e]=this._testOne(e,n);const r=this._t(i.join("/")+"/",t,n,i);return t[e]=r.ignored?r:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return ev(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const yv=e=>new bv(e);if(yv.isPathValid=e=>vv(e&&vv.convert(e),e,uv),yv.default=yv,"undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");vv.convert=e;const t=/^[a-z]:\//i;vv.isNotRelative=e=>t.test(e)||xv(e)}const _v=[{id:"bat",extensions:[".bat",".cmd"]},{id:"clojure",extensions:[".clj",".cljs",".cljc",".cljx",".clojure",".edn"]},{id:"coffeescript",extensions:[".coffee",".cson",".iced"]},{id:"jsonc",extensions:[".code-workspace","language-configuration.json","icon-theme.json","color-theme.json"],names:["settings.json","launch.json","tasks.json","keybindings.json","extensions.json","argv.json","profiles.json","devcontainer.json",".devcontainer.json"]},{id:"json",extensions:[".code-profile"]},{id:"c",extensions:[".c",".i"]},{id:"cpp",extensions:[".cpp",".cc",".cxx",".c++",".hpp",".hh",".hxx",".h++",".h",".ii",".ino",".inl",".ipp",".ixx",".tpp",".txx",".hpp.in",".h.in"]},{id:"cuda-cpp",extensions:[".cu",".cuh"]},{id:"csharp",extensions:[".cs",".csx",".cake"]},{id:"css",extensions:[".css"],mimeTypes:["text/css"]},{id:"dart",extensions:[".dart"]},{id:"diff",extensions:[".diff",".patch",".rej"]},{id:"dockerfile",extensions:[".dockerfile",".containerfile"],patterns:["Dockerfile.*","Containerfile.*"],names:["Dockerfile","Containerfile"]},{id:"ignore",names:[".vscodeignore"]},{id:"fsharp",extensions:[".fs",".fsi",".fsx",".fsscript"]},{id:"git-commit",names:["COMMIT_EDITMSG","MERGE_MSG"]},{id:"git-rebase",patterns:["**/rebase-merge/done"],names:["git-rebase-todo"]},{id:"ignore",extensions:[".gitignore_global",".gitignore",".git-blame-ignore-revs"]},{id:"go",extensions:[".go"]},{id:"groovy",extensions:[".groovy",".gvy",".gradle",".jenkinsfile",".nf"],firstLine:"^#!.*\\bgroovy\\b",patterns:["Jenkinsfile*"],names:["Jenkinsfile"]},{id:"handlebars",extensions:[".handlebars",".hbs",".hjs"],mimeTypes:["text/x-handlebars-template"]},{id:"hlsl",extensions:[".hlsl",".hlsli",".fx",".fxh",".vsh",".psh",".cginc",".compute"]},{id:"html",extensions:[".html",".htm",".shtml",".xhtml",".xht",".mdoc",".jsp",".asp",".aspx",".jshtm",".volt",".ejs",".rhtml"],mimeTypes:["text/html","text/x-jshtm","text/template","text/ng-template","application/xhtml+xml"]},{id:"ini",extensions:[".ini"]},{id:"properties",extensions:[".conf",".properties",".cfg",".directory",".gitattributes",".gitconfig",".gitmodules",".editorconfig",".repo"],patterns:["**/.config/git/config","**/.git/config"],names:["gitconfig",".env"]},{id:"java",extensions:[".java",".jav"]},{id:"javascriptreact",extensions:[".jsx"]},{id:"javascript",extensions:[".js",".es6",".mjs",".cjs",".pac"],firstLine:"^#!.*\\bnode",names:["jakefile"],mimeTypes:["text/javascript"]},{id:"jsx-tags"},{id:"json",extensions:[".json",".bowerrc",".jscsrc",".webmanifest",".js.map",".css.map",".ts.map",".har",".jslintrc",".jsonld",".geojson",".ipynb",".vuerc"],names:["composer.lock",".watchmanconfig"],mimeTypes:["application/json","application/manifest+json"]},{id:"jsonc",extensions:[".jsonc",".eslintrc",".eslintrc.json",".jsfmtrc",".jshintrc",".swcrc",".hintrc",".babelrc"],names:["babel.config.json",".babelrc.json",".ember-cli","typedoc.json"]},{id:"jsonl",extensions:[".jsonl"],names:[]},{id:"snippets",extensions:[".code-snippets"],patterns:["**/User/snippets/*.json","**/User/profiles/*/snippets/*.json"]},{id:"julia",extensions:[".jl"],firstLine:"^#!\\s*/.*\\bjulia[0-9.-]*\\b"},{id:"juliamarkdown",extensions:[".jmd"]},{id:"tex",extensions:[".sty",".cls",".bbx",".cbx"]},{id:"latex",extensions:[".tex",".ltx",".ctx"]},{id:"bibtex",extensions:[".bib"]},{id:"cpp_embedded_latex"},{id:"markdown_latex_combined"},{id:"less",extensions:[".less"],mimeTypes:["text/x-less","text/less"]},{id:"log",extensions:[".log","*.log.?"]},{id:"lua",extensions:[".lua"]},{id:"makefile",extensions:[".mak",".mk"],firstLine:"^#!\\s*/usr/bin/make",names:["Makefile","makefile","GNUmakefile","OCamlMakefile"]},{id:"markdown",extensions:[".md",".mkd",".mdwn",".mdown",".markdown",".markdn",".mdtxt",".mdtext",".workbook"]},{id:"markdown-math"},{id:"ignore",extensions:[".npmignore"]},{id:"properties",extensions:[".npmrc"]},{id:"objective-c",extensions:[".m"]},{id:"objective-cpp",extensions:[".mm"]},{id:"perl",extensions:[".pl",".pm",".pod",".t",".PL",".psgi"],firstLine:"^#!.*\\bperl\\b"},{id:"raku",extensions:[".raku",".rakumod",".rakutest",".rakudoc",".nqp",".p6",".pl6",".pm6"],firstLine:"(^#!.*\\bperl6\\b)|use\\s+v6|raku|=begin\\spod|my\\sclass"},{id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],firstLine:"^#!\\s*/.*\\bphp\\b",mimeTypes:["application/x-php"]},{id:"powershell",extensions:[".ps1",".psm1",".psd1",".pssc",".psrc"],firstLine:"^#!\\s*/.*\\bpwsh\\b"},{id:"jade",extensions:[".pug",".jade"]},{id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi",".pyi",".ipy",".pyt"],firstLine:"^#!\\s*/?.*\\bpython[0-9.-]*\\b",names:["SConstruct","SConscript"]},{id:"r",extensions:[".r",".rhistory",".rprofile",".rt"]},{id:"razor",extensions:[".cshtml",".razor"],mimeTypes:["text/x-cshtml"]},{id:"restructuredtext",extensions:[".rst"]},{id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".rake",".ru",".erb",".podspec",".rbi"],firstLine:"^#!\\s*/.*\\bruby\\b",names:["rakefile","gemfile","guardfile","podfile","capfile","cheffile","hobofile","vagrantfile","appraisals","rantfile","berksfile","berksfile.lock","thorfile","puppetfile","dangerfile","brewfile","fastfile","appfile","deliverfile","matchfile","scanfile","snapfile","gymfile"]},{id:"rust",extensions:[".rs"]},{id:"scss",extensions:[".scss"],mimeTypes:["text/x-scss","text/scss"]},{id:"search-result",extensions:[".code-search"]},{id:"shaderlab",extensions:[".shader"]},{id:"shellscript",extensions:[".sh",".bash",".bashrc",".bash_aliases",".bash_profile",".bash_login",".ebuild",".profile",".bash_logout",".xprofile",".xsession",".xsessionrc",".Xsession",".zsh",".zshrc",".zprofile",".zlogin",".zlogout",".zshenv",".zsh-theme",".fish",".ksh",".csh",".cshrc",".tcshrc",".yashrc",".yash_profile"],firstLine:"^#!.*\\b(bash|fish|zsh|sh|ksh|dtksh|pdksh|mksh|ash|dash|yash|sh|csh|jcsh|tcsh|itcsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",patterns:[".env.*"],names:["APKBUILD","PKGBUILD",".envrc",".hushlogin","zshrc","zshenv","zlogin","zprofile","zlogout","bashrc_Apple_Terminal","zshrc_Apple_Terminal"],mimeTypes:["text/x-shellscript"]},{id:"sql",extensions:[".sql",".dsql"]},{id:"swift",extensions:[".swift"]},{id:"typescript",extensions:[".ts",".cts",".mts"]},{id:"typescriptreact",extensions:[".tsx"]},{id:"jsonc",patterns:["tsconfig.*.json","jsconfig.*.json","tsconfig-*.json","jsconfig-*.json"],names:["tsconfig.json","jsconfig.json"]},{id:"json",extensions:[".tsbuildinfo"]},{id:"vb",extensions:[".vb",".brs",".vbs",".bas",".vba"]},{id:"xml",extensions:[".xml",".xsd",".ascx",".atom",".axml",".axaml",".bpmn",".cpt",".csl",".csproj",".csproj.user",".dita",".ditamap",".dtd",".ent",".mod",".dtml",".fsproj",".fxml",".iml",".isml",".jmx",".launch",".menu",".mxml",".nuspec",".opml",".owl",".proj",".props",".pt",".publishsettings",".pubxml",".pubxml.user",".rbxlx",".rbxmx",".rdf",".rng",".rss",".shproj",".storyboard",".svg",".targets",".tld",".tmx",".vbproj",".vbproj.user",".vcxproj",".vcxproj.filters",".wsdl",".wxi",".wxl",".wxs",".xaml",".xbl",".xib",".xlf",".xliff",".xpdl",".xul",".xoml"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)"},{id:"xsl",extensions:[".xsl",".xslt"]},{id:"dockercompose",patterns:["compose.yml","compose.yaml","compose.*.yml","compose.*.yaml","*docker*compose*.yml","*docker*compose*.yaml"]},{id:"yaml",extensions:[".yml",".eyaml",".eyml",".yaml",".cff",".yaml-tmlanguage",".yaml-tmpreferences",".yaml-tmtheme"],firstLine:"^#cloud-config"}];class wv{static default=new wv;entries=[];static{for(const e of _v)wv.default.registerLanguage(e.id,e)}registerLanguage(e,t){const n=(e=>{const{extensions:t,names:n,patterns:i,firstLine:o}=e,s=o?new RegExp(o):null,a=i?bp(i.map((e=>e.includes("/")?`**/${e}`:e))):null;return(e,i)=>!!(t&&t.includes(r.extname(e))||n&&n.includes(e)||a&&a(e)||s&&s.test(i))})(t);this.entries.push({id:e,detect:n})}detect(e,t){const n=t.indexOf("\n"),i=-1===n?t:t.slice(0,n),r=this.entries.find((t=>t.detect(e,i.trim())));return r?.id??null}}function Ev(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Sv={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function kv(e){Sv=e}const Rv=/[&<>"']/,Tv=new RegExp(Rv.source,"g"),Ov=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Cv=new RegExp(Ov.source,"g"),Av={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Pv=e=>Av[e];function jv(e,t){if(t){if(Rv.test(e))return e.replace(Tv,Pv)}else if(Ov.test(e))return e.replace(Cv,Pv);return e}const Lv=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Nv(e){return e.replace(Lv,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Iv=/(^|[^\[])\^/g;function $v(e,t){let n="string"==typeof e?e:e.source;t=t||"";const i={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(Iv,"$1"),n=n.replace(e,r),i},getRegex:()=>new RegExp(n,t)};return i}function Mv(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}const Dv={exec:()=>null};function Fv(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})),i=n.split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function zv(e,t,n){const i=e.length;if(0===i)return"";let r=0;for(;r<i;){if(e.charAt(i-r-1)!==t)break;r++}return e.slice(0,i-r)}function Bv(e,t,n,i){const r=t.href,o=t.title?jv(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){i.state.inLink=!0;const e={type:"link",raw:n,href:r,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:o,text:jv(s)}}class Uv{options;rules;lexer;constructor(e){this.options=e||Sv}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:zv(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const i=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=i.length?e.slice(i.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=zv(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=zv(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),n=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:i,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const i=n.length>1,r={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");const o=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let s="",a="",c=!1;for(;e;){let n=!1;if(!(t=o.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let i=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),l=e.split("\n",1)[0],u=0;this.options.pedantic?(u=2,a=i.trimStart()):(u=t[2].search(/[^ ]/),u=u>4?1:u,a=i.slice(u),u+=t[1].length);let p=!1;if(!i&&/^ *$/.test(l)&&(s+=l+"\n",e=e.substring(l.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),o=new RegExp(`^ {0,${Math.min(3,u-1)}}#`);for(;e;){const c=e.split("\n",1)[0];if(l=c,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),r.test(l))break;if(o.test(l))break;if(t.test(l))break;if(n.test(e))break;if(l.search(/[^ ]/)>=u||!l.trim())a+="\n"+l.slice(u);else{if(p)break;if(i.search(/[^ ]/)>=4)break;if(r.test(i))break;if(o.test(i))break;if(n.test(i))break;a+="\n"+l}p||l.trim()||(p=!0),s+=c+"\n",e=e.substring(c.length+1),i=l.slice(u)}}r.loose||(c?r.loose=!0:/\n *\n *$/.test(s)&&(c=!0));let d,f=null;this.options.gfm&&(f=/^\[[ xX]\] /.exec(a),f&&(d="[ ] "!==f[0],a=a.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:s,task:!!f,checked:d,loose:!1,text:a,tokens:[]}),r.raw+=s}r.items[r.items.length-1].raw=s.trimEnd(),r.items[r.items.length-1].text=a.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){const t=r.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));r.loose=n}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t){return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const n=Fv(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(const e of i)/^ *-+: *$/.test(e)?o.align.push("right"):/^ *:-+: *$/.test(e)?o.align.push("center"):/^ *:-+ *$/.test(e)?o.align.push("left"):o.align.push(null);for(const e of n)o.header.push({text:e,tokens:this.lexer.inline(e)});for(const e of r)o.rows.push(Fv(e,o.header.length).map((e=>({text:e,tokens:this.lexer.inline(e)}))));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:jv(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=zv(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],i=e[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Bv(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Bv(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i)return;if(i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...i[0]].length-1;let r,o,s=n,a=0;const c="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(i=c.exec(t));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(o=[...r].length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+a);const t=[...i[0]][0].length,c=e.slice(0,n+i.index+t+o);if(Math.min(n,o)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),i=/^ /.test(e)&&/ $/.test(e);return n&&i&&(e=e.substring(1,e.length-1)),e=jv(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=jv(t[1]),n="mailto:"+e):(e=jv(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=jv(t[0]),n="mailto:"+e;else{let i;do{i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(i!==t[0]);e=jv(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:jv(t[0]),{type:"text",raw:t[0],text:e}}}}const qv=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Hv=/(?:[*+-]|\d{1,9}[.)])/,Wv=$v(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Hv).getRegex(),Gv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Vv=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Kv=$v(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Vv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Jv=$v(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Hv).getRegex(),Zv="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yv=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Qv=$v("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Yv).replace("tag",Zv).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xv=$v(Gv).replace("hr",qv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zv).getRegex(),ex={blockquote:$v(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xv).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:Kv,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:qv,html:Qv,lheading:Wv,list:Jv,newline:/^(?: *(?:\n|$))+/,paragraph:Xv,table:Dv,text:/^[^\n]+/},tx=$v("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",qv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zv).getRegex(),nx={...ex,table:tx,paragraph:$v(Gv).replace("hr",qv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tx).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zv).getRegex()},ix={...ex,html:$v("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Yv).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$v(Gv).replace("hr",qv).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Wv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},rx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ox=/^( {2,}|\\)\n(?!\s*$)/,sx="\\p{P}$+<=>`^|~",ax=$v(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,sx).getRegex(),cx=$v(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,sx).getRegex(),lx=$v("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,sx).getRegex(),ux=$v("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,sx).getRegex(),px=$v(/\\([punct])/,"gu").replace(/punct/g,sx).getRegex(),dx=$v(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fx=$v(Yv).replace("(?:--\x3e|$)","--\x3e").getRegex(),mx=$v("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",fx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hx=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,gx=$v(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",hx).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vx=$v(/^!?\[(label)\]\[(ref)\]/).replace("label",hx).replace("ref",Vv).getRegex(),xx=$v(/^!?\[(ref)\](?:\[\])?/).replace("ref",Vv).getRegex(),bx={_backpedal:Dv,anyPunctuation:px,autolink:dx,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:ox,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Dv,emStrongLDelim:cx,emStrongRDelimAst:lx,emStrongRDelimUnd:ux,escape:rx,link:gx,nolink:xx,punctuation:ax,reflink:vx,reflinkSearch:$v("reflink|nolink(?!\\()","g").replace("reflink",vx).replace("nolink",xx).getRegex(),tag:mx,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Dv},yx={...bx,link:$v(/^!?\[(label)\]\((.*?)\)/).replace("label",hx).getRegex(),reflink:$v(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hx).getRegex()},_x={...bx,escape:$v(rx).replace("])","~|])").getRegex(),url:$v(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},wx={..._x,br:$v(ox).replace("{2,}","*").getRegex(),text:$v(_x.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ex={normal:ex,gfm:nx,pedantic:ix},Sx={normal:bx,gfm:_x,breaks:wx,pedantic:yx};class kx{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Sv,this.options.tokenizer=this.options.tokenizer||new Uv,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Ex.normal,inline:Sx.normal};this.options.pedantic?(t.block=Ex.pedantic,t.inline=Sx.pedantic):this.options.gfm&&(t.block=Ex.gfm,this.options.breaks?t.inline=Sx.breaks:t.inline=Sx.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ex,inline:Sx}}static lex(e,t){return new kx(t).lex(e)}static lexInline(e,t){return new kx(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){let n,i,r,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startBlock.forEach((e=>{i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))i=t[t.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),o=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,r,o,s,a,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,o.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((i=>!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,a))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startInline.forEach((e=>{i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Rx{options;constructor(e){this.options=e||Sv}code(e,t,n){const i=(t||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="language-'+jv(i)+'">'+(n?e:jv(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:jv(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>\n`}hr(){return"<hr>\n"}list(e,t,n){const i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"}listitem(e,t,n){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){const i=Mv(e);if(null===i)return n;let r='<a href="'+(e=i)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){const i=Mv(e);if(null===i)return n;let r=`<img src="${e=i}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=">",r}text(e){return e}}class Tx{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Ox{options;renderer;textRenderer;constructor(e){this.options=e||Sv,this.options.renderer=this.options.renderer||new Rx,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Tx}static parse(e,t){return new Ox(t).parse(e)}static parseInline(e,t){return new Ox(t).parseInline(e)}parse(e,t=!0){let n="";for(let i=0;i<e.length;i++){const r=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const e=r,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}switch(r.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":{const e=r;n+=this.renderer.heading(this.parseInline(e.tokens),e.depth,Nv(this.parseInline(e.tokens,this.textRenderer)));continue}case"code":{const e=r;n+=this.renderer.code(e.text,e.lang,!!e.escaped);continue}case"table":{const e=r;let t="",i="";for(let t=0;t<e.header.length;t++)i+=this.renderer.tablecell(this.parseInline(e.header[t].tokens),{header:!0,align:e.align[t]});t+=this.renderer.tablerow(i);let o="";for(let t=0;t<e.rows.length;t++){const n=e.rows[t];i="";for(let t=0;t<n.length;t++)i+=this.renderer.tablecell(this.parseInline(n[t].tokens),{header:!1,align:e.align[t]});o+=this.renderer.tablerow(i)}n+=this.renderer.table(t,o);continue}case"blockquote":{const e=r,t=this.parse(e.tokens);n+=this.renderer.blockquote(t);continue}case"list":{const e=r,t=e.ordered,i=e.start,o=e.loose;let s="";for(let t=0;t<e.items.length;t++){const n=e.items[t],i=n.checked,r=n.task;let a="";if(n.task){const e=this.renderer.checkbox(!!i);o?n.tokens.length>0&&"paragraph"===n.tokens[0].type?(n.tokens[0].text=e+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&"text"===n.tokens[0].tokens[0].type&&(n.tokens[0].tokens[0].text=e+" "+n.tokens[0].tokens[0].text)):n.tokens.unshift({type:"text",text:e+" "}):a+=e+" "}a+=this.parse(n.tokens,o),s+=this.renderer.listitem(a,r,!!i)}n+=this.renderer.list(s,t,i);continue}case"html":{const e=r;n+=this.renderer.html(e.text,e.block);continue}case"paragraph":{const e=r;n+=this.renderer.paragraph(this.parseInline(e.tokens));continue}case"text":{let o=r,s=o.tokens?this.parseInline(o.tokens):o.text;for(;i+1<e.length&&"text"===e[i+1].type;)o=e[++i],s+="\n"+(o.tokens?this.parseInline(o.tokens):o.text);n+=t?this.renderer.paragraph(s):s;continue}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let i=0;i<e.length;i++){const r=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}switch(r.type){case"escape":{const e=r;n+=t.text(e.text);break}case"html":{const e=r;n+=t.html(e.text);break}case"link":{const e=r;n+=t.link(e.href,e.title,this.parseInline(e.tokens,t));break}case"image":{const e=r;n+=t.image(e.href,e.title,e.text);break}case"strong":{const e=r;n+=t.strong(this.parseInline(e.tokens,t));break}case"em":{const e=r;n+=t.em(this.parseInline(e.tokens,t));break}case"codespan":{const e=r;n+=t.codespan(e.text);break}case"br":n+=t.br();break;case"del":{const e=r;n+=t.del(this.parseInline(e.tokens,t));break}case"text":{const e=r;n+=t.text(e.text);break}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class Cx{options;constructor(e){this.options=e||Sv}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}const Ax=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.#e(kx.lex,Ox.parse);parseInline=this.#e(kx.lexInline,Ox.parseInline);Parser=Ox;Renderer=Rx;TextRenderer=Tx;Lexer=kx;Tokenizer=Uv;Hooks=Cx;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{const e=i;for(const i of e.header)n=n.concat(this.walkTokens(i.tokens,t));for(const i of e.rows)for(const e of i)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=i;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=i;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((i=>{const r=e[i].flat(1/0);n=n.concat(this.walkTokens(r,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let i=e.renderer.apply(this,t);return!1===i&&(i=n.apply(this,t)),i}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new Rx(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if("options"===n)continue;const i=n,r=e.renderer[i],o=t[i];t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new Uv(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const i=n,r=e.tokenizer[i],o=t[i];t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new Cx;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if("options"===n)continue;const i=n,r=e.hooks[i],o=t[i];Cx.passThroughHooks.has(n)?t[i]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then((e=>o.call(t,e)));const n=r.call(t,e);return o.call(t,n)}:t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,i=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(i.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return kx.lex(e,t??this.defaults)}parser(e,t){return Ox.parse(e,t??this.defaults)}#e(e,t){return(n,i)=>{const r={...i},o={...this.defaults,...r};!0===this.defaults.async&&!1===r.async&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const s=this.#t(!!o.silent,!!o.async);if(null==n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then((t=>e(t,o))).then((e=>o.hooks?o.hooks.processAllTokens(e):e)).then((e=>o.walkTokens?Promise.all(this.walkTokens(e,o.walkTokens)).then((()=>e)):e)).then((e=>t(e,o))).then((e=>o.hooks?o.hooks.postprocess(e):e)).catch(s);try{o.hooks&&(n=o.hooks.preprocess(n));let i=e(n,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let r=t(i,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return s(e)}}}#t(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+jv(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Px(e,t){return Ax.parse(e,t)}Px.options=Px.setOptions=function(e){return Ax.setOptions(e),Px.defaults=Ax.defaults,kv(Px.defaults),Px},Px.getDefaults=Ev,Px.defaults=Sv,Px.use=function(...e){return Ax.use(...e),Px.defaults=Ax.defaults,kv(Px.defaults),Px},Px.walkTokens=function(e,t){return Ax.walkTokens(e,t)},Px.parseInline=Ax.parseInline,Px.Parser=Ox,Px.parser=Ox.parse,Px.Renderer=Rx,Px.TextRenderer=Tx,Px.Lexer=kx,Px.lexer=kx.lex,Px.Tokenizer=Uv,Px.Hooks=Cx,Px.parse=Px,Px.options,Px.setOptions,Px.use,Px.walkTokens,Px.parseInline,Ox.parse,kx.lex;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringSimilarity=void 0;e.stringSimilarity=function(e,t,n,i){if(void 0===n&&(n=2),void 0===i&&(i=!1),i||(e=e.toLowerCase(),t=t.toLowerCase()),e.length<n||t.length<n)return 0;for(var r=new Map,o=0;o<e.length-(n-1);o++){var s=e.substr(o,n);r.set(s,r.has(s)?r.get(s)+1:1)}for(var a=0,c=0;c<t.length-(n-1);c++){var l=t.substr(c,n),u=r.has(l)?r.get(l):0;u>0&&(r.set(l,u-1),a++)}return 2*a/(e.length+t.length-2*(n-1))},e.default=e.stringSimilarity}({});var jx=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Lx=jx,Nx=Object.create,Ix=function(){function e(){}return function(t){if(!Lx(t))return{};if(Nx)return Nx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var $x=function(){},Mx=Ix,Dx=$x;function Fx(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Fx.prototype=Mx(Dx.prototype),Fx.prototype.constructor=Fx;var zx=Fx;var Bx=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},Ux="object"==typeof ze&&ze&&ze.Object===Object&&ze,qx="object"==typeof self&&self&&self.Object===Object&&self,Hx=Ux||qx||Function("return this")(),Wx=Hx.Symbol,Gx=Wx,Vx=Object.prototype,Kx=Vx.hasOwnProperty,Jx=Vx.toString,Zx=Gx?Gx.toStringTag:void 0;var Yx=function(e){var t=Kx.call(e,Zx),n=e[Zx];try{e[Zx]=void 0;var i=!0}catch(e){}var r=Jx.call(e);return i&&(t?e[Zx]=n:delete e[Zx]),r},Qx=Object.prototype.toString;var Xx=Yx,eb=function(e){return Qx.call(e)},tb=Wx?Wx.toStringTag:void 0;var nb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tb&&tb in Object(e)?Xx(e):eb(e)};var ib=function(e){return null!=e&&"object"==typeof e},rb=nb,ob=ib;var sb=function(e){return ob(e)&&"[object Arguments]"==rb(e)},ab=ib,cb=Object.prototype,lb=cb.hasOwnProperty,ub=cb.propertyIsEnumerable,pb=sb(function(){return arguments}())?sb:function(e){return ab(e)&&lb.call(e,"callee")&&!ub.call(e,"callee")},db=Array.isArray,fb=pb,mb=db,hb=Wx?Wx.isConcatSpreadable:void 0;var gb=Bx,vb=function(e){return mb(e)||fb(e)||!!(hb&&e&&e[hb])};var xb=function e(t,n,i,r,o){var s=-1,a=t.length;for(i||(i=vb),o||(o=[]);++s<a;){var c=t[s];n>0&&i(c)?n>1?e(c,n-1,i,r,o):gb(o,c):r||(o[o.length]=c)}return o},bb=xb;var yb=function(e){return(null==e?0:e.length)?bb(e,1):[]};var _b=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},wb=Math.max;var Eb=function(e,t,n){return t=wb(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=wb(i.length-t,0),s=Array(o);++r<o;)s[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(s),_b(e,this,a)}};var Sb=function(e){return function(){return e}},kb=nb,Rb=jx;var Tb,Ob=function(e){if(!Rb(e))return!1;var t=kb(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Cb=Hx["__core-js_shared__"],Ab=(Tb=/[^.]+$/.exec(Cb&&Cb.keys&&Cb.keys.IE_PROTO||""))?"Symbol(src)_1."+Tb:"";var Pb=function(e){return!!Ab&&Ab in e},jb=Function.prototype.toString;var Lb=Ob,Nb=Pb,Ib=jx,$b=function(e){if(null!=e){try{return jb.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Mb=/^\[object .+?Constructor\]$/,Db=Function.prototype,Fb=Object.prototype,zb=Db.toString,Bb=Fb.hasOwnProperty,Ub=RegExp("^"+zb.call(Bb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var qb=function(e){return!(!Ib(e)||Nb(e))&&(Lb(e)?Ub:Mb).test($b(e))},Hb=function(e,t){return null==e?void 0:e[t]};var Wb=function(e,t){var n=Hb(e,t);return qb(n)?n:void 0},Gb=Wb,Vb=function(){try{var e=Gb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Kb=Sb,Jb=Vb,Zb=Jb?function(e,t){return Jb(e,"toString",{configurable:!0,enumerable:!1,value:Kb(t),writable:!0})}:function(e){return e},Yb=Zb,Qb=Date.now;var Xb=function(e){var t=0,n=0;return function(){var i=Qb(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Yb),ey=yb,ty=Eb,ny=Xb;var iy=function(e){return ny(ty(e,void 0,ey),e+"")},ry=Wb(Hx,"WeakMap");var oy=ry&&new ry,sy=oy?function(e){return oy.get(e)}:function(){},ay={},cy=Object.prototype.hasOwnProperty;var ly=function(e){for(var t=e.name+"",n=ay[t],i=cy.call(ay,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t},uy=Ix,py=$x;function dy(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}dy.prototype=uy(py.prototype),dy.prototype.constructor=dy;var fy=dy;var my=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},hy=fy,gy=zx,vy=my;var xy=fy,by=zx,yy=$x,_y=db,wy=ib,Ey=function(e){if(e instanceof hy)return e.clone();var t=new gy(e.__wrapped__,e.__chain__);return t.__actions__=vy(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},Sy=Object.prototype.hasOwnProperty;function ky(e){if(wy(e)&&!_y(e)&&!(e instanceof xy)){if(e instanceof by)return e;if(Sy.call(e,"__wrapped__"))return Ey(e)}return new by(e)}ky.prototype=yy.prototype,ky.prototype.constructor=ky;var Ry=fy,Ty=sy,Oy=ly,Cy=ky;var Ay=zx,Py=iy,jy=sy,Ly=ly,Ny=db,Iy=function(e){var t=Oy(e),n=Cy[t];if("function"!=typeof n||!(t in Ry.prototype))return!1;if(e===n)return!0;var i=Ty(n);return!!i&&e===i[0]};var $y,My=function(e){return Py((function(t){var n=t.length,i=n,r=Ay.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==Ly(o))var s=new Ay([],!0)}for(i=s?i:n;++i<n;){o=t[i];var a=Ly(o),c="wrapper"==a?jy(o):void 0;s=c&&Iy(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Ly(c[0])].apply(s,c[3]):1==o.length&&Iy(o)?s[a]():s.thru(o)}return function(){var e=arguments,i=e[0];if(s&&1==e.length&&Ny(i))return s.plant(i).value();for(var r=0,o=n?t[r].apply(this,e):i;++r<n;)o=t[r].call(this,o);return o}}))};My(),function(e){e.EDIT="edit",e.PREVIEW="preview"}($y||($y={}));for(var Dy,Fy,zy,By,Uy,qy,Hy,Wy,Gy,Vy,Ky,Jy,Zy,Yy,Qy,Xy,e_,t_,n_,i_,r_,o_,s_,a_,c_,l_,u_,p_,d_,f_=0;f_<4;f_++)(4294967296*Math.random()).toString(16);!function(e){e.VERSION_UPDATE_TITLE="version.update.title",e.VERSION_UPDATE_INSTALL="version.update.install",e.VERSION_UPDATE_IGNORE="version.update.ignore",e.COMMON_GENERATE_ERROR="common.generate.error",e.COMMON_UNKNOWN_ERROR="common.unknown.error",e.COMMON_REQUEST_ERROR="common.request.error",e.COMMON_CODE="common.code",e.COMMON_FUNCTION="common.function",e.COMMON_USING="common.using",e.COMMON_WITHOUT="common.without",e.COMMON_COMMA="common.comma",e.COMMON_FRAMEWORK="common.framework",e.COMMON_RELATED="common.related",e.COMMON_PROMPT="common.prompt",e.COMMON_THINKING="common.thinking",e.COMMON_SEARCH_RESULT="common.searchResult",e.COMMON_AUTHORIZE="common.authorize",e.COMMON_DENY="common.deny",e.COMMON_NAVIGATE_TO_SETTING="common.navigateToSetting",e.COMMON_CUSTOMIZE_ERROR="common.customize.error",e.COMMON_PRIVATE_ERROR="common.private.error",e.LOG_LEVEL_PLACEHOLDER="log.level.placeholder",e.DO_NOT_SHOW_AGAIN="do.not.show.again"}(Dy||(Dy={})),function(e){e.NOT_SUPPORT="statusBar.not.support.text",e.ENABLE="statusBar.enable.text",e.NO_SUGGESTIONS="statusBar.nosuggestions",e.TITLE="statusBar.title"}(Fy||(Fy={})),function(e){e.PANEL_ACCEPT="completion.panel.accept.text",e.PANEL_ACCEPT_TOOLTIP="completion.panel.accept.tooltip",e.PANEL_CODELENS_DISABLED="completion.panel.codelens.disabled.text",e.PANEL_TITLE="completion.panel.title",e.PANEL_EMPTY="completion.panel.empty.text",e.PANEL_HIDDEN="completion.panel.hidden.text",e.PANEL_SYNTHESIZING="completion.panel.synthesizing.text",e.DECORATION_BASIC="completion.decoration.basic",e.DECORATION_WITH_WIDGET="completion.decoration.widget.text",e.DECORATION_ACCEPT_LINE="completion.decoration.acceptLine.text"}(zy||(zy={})),function(e){e.EMPTY_TEXT="nl2code.empty.text",e.NO_SELECTION="nl2code.no.selection.text"}(By||(By={})),function(e){e.CODELENS_TITLE="optimize.codelens.title",e.CODELENS_TOOLTIP="optimize.codelens.tooltip",e.OPTIMIZE_ERROR="optimize.error",e.OPTIMIZE_CODE_PROMPT="optimize.code.prompt",e.NO_SELECTION="optimize.no.selection.text",e.OPTIMIZE_FUNCTION_PROMPT="optimize.function.prompt"}(Uy||(Uy={})),function(e){e.EXPLAIN_SELECTED_CODE="explain.codeActions.title",e.OPTIMIZE_SELECTED_CODE="optimize.codeActions.title",e.INLINECHAT_SELECTED_CODE="inlinechat.codeActions.title"}(qy||(qy={})),function(e){e.CODELENS_TITLE="chatTrial.codelens.title"}(Hy||(Hy={})),function(e){e.CODELENS_TITLE="inlinechat.codelens.title"}(Wy||(Wy={})),function(e){e.CHAT_TIPS_TITLE="chatTips.selectedCode.title",e.CHAT_TIPS_CODE_BLANK_ROW_TITLE="chatTips.blankRow.title"}(Gy||(Gy={})),function(e){e.GENERATING_TITLE="decorations.generating.title",e.LINE_COMMENT_CODE_TRIGGER_TITLE="decorations.lineComent.trigger.title"}(Vy||(Vy={})),function(e){e.PROMPT="comment.prompt",e.CODELENS_TITLE="comment.codelens.title",e.CODELENS_TOOLTIP="comment.codelens.tooltip",e.INLINECHAT_TITLE="comment.inlinechat.title",e.GENERATE_ERROR="comment.generate.error"}(Ky||(Ky={})),function(e){e.PROMPT="docstring.prompt",e.CODELENS_TITLE="docstring.codelens.title",e.CODELENS_TOOLTIP="docstring.codelens.tooltip",e.INLINECHAT_TITLE="docstring.inlinechat.title",e.GENERATE_ERROR="docstring.generate.error"}(Jy||(Jy={})),function(e){e.PROMPT="split.prompt",e.CODELENS_TITLE="split.codelens.title",e.CODELENS_TOOLTIP="split.codelens.tooltip",e.GENERATE_ERROR="split.generate.error"}(Zy||(Zy={})),function(e){e.CODELENS_TITLE="explain.codelens.title",e.CODELENS_TOOLTIP="explain.codelens.tooltip",e.GENERATE_ERROR="explain.generate.error",e.NO_SELECTION="explain.no.selection.text",e.PROMPT="explain.prompt"}(Yy||(Yy={})),function(e){e.CODELENS_TITLE="unitTest.codelens.title",e.CODELENS_TOOLTIP="unitTest.codelens.tooltip",e.GENERATE_ERROR="unitTest.generate.error",e.ACCEPT_ERROR="unitTest.accept.error",e.PROMPT="unitTest.prompt"}(Qy||(Qy={})),function(e){e.PROMPT="inlineLog.prompt",e.CODELENS_TITLE="inlineLog.codelens.title",e.CODELENS_TOOLTIP="inlineLog.codelens.tooltip",e.GENERATE_ERROR="inlineLog.generate.error"}(Xy||(Xy={})),function(e){e.TITLE="diff.title",e.ACCEPT="diff.accept",e.REJECT="diff.reject",e.OPEN_DUAL_SCREEN_DIFF="diff.dualScreenDiff.open"}(e_||(e_={})),function(e){e.WEBVIEW_TITLE="chat.webview.title",e.NO_INSERT_POSITION="chat.no.insertPosition.text"}(t_||(t_={})),function(e){e.PATH_ERROR="accept.path.error"}(n_||(n_={})),function(e){e.ACTION="quickFix.action.text",e.PROMPT="quickFix.prompt",e.PROMPT_SUFFIX="quickFix.prompt.suffix",e.GENERATE_ERROR="quickFix.generate.error",e.FIX_MAX_LEN="quickFix.fix.maxLen.text"}(i_||(i_={})),function(e){e.LOGIN_MESSAGE="login.message",e.LOGIN_ACTION_TEXT="login.action.text",e.LOGIN_ACTION_WITH_LICENSE="login.action.withLicense.text",e.LOGIN_DEVICE_ERROR="login.device.error",e.LOGIN_LOGGING_IN="login.loggingIn.text",e.LOGIN_SUCCESS="login.success",e.LOGIN_IDE_SUCCESS="login.ide.success",e.LOGIN_FAILED="login.failed",e.LOGIN_TOKEN_ERROR="login.token.error",e.LOGIN_KEY_ERROR="login.key.error",e.LOGIN_INTERNAL_USER="login.internalUser.message",e.LOGIN_INSTALL_INTERNAL="login.install.internal",e.LOGIN_AGREEMENT="login.agreement.message",e.RENEW_ACTION="renew.action.text",e.QUICK_PICK_PLACEHOLDER="command.quick.pick.placeholder"}(r_||(r_={})),function(e){e.TOOLTIP="regexHover.tooltip",e.PROMPT="regexHover.prompt"}(o_||(o_={})),function(e){e.MAXIMUM_FILES="embeddings.maximum.files.message",e.PROGRESS="embeddings.progress.message",e.PROGRESS_TOOLTIP="embeddings.progress.tooltip.message"}(s_||(s_={})),function(e){e.TITLE="openPlatform.title.text",e.WEBVIEW_TITLE="openPlatform.webview.title"}(a_||(a_={})),function(e){e.MODAL_AUTH_TITLE="autoWork.auth.modal.title",e.INDEXING_MESSAGE="autoWork.indexing.message",e.CONNECTION_INTERRUPT="autoWork.connection.interrupt.message",e.INDEXING_REMINDER="autoWork.indexing.reminder.text",e.ERROR="autoWork.error",e.TASK_THOUGHT="autoWork.task.thought",e.TASK_ANSWER="autoWork.task.answer",e.AUTO_DEBUG="autoWork.autoDebug",e.AUTO_DEBUG_PROMPT="autoWork.autoDebug.prompt",e.AUTO_DEBUG_STAGE_THOUGHT="autoWork.autoDebug.thought",e.AUTO_DEBUG_STAGE_SEARCH="autoWork.autoDebug.search",e.AUTO_DEBUG_STAGE_ANSWER="autoWork.autoDebug.answer"}(c_||(c_={})),function(e){e.PERMISSION_WORKSPACE="comatePlus.permission.workspace.text",e.PERMISSION_DISK="comatePlus.permission.disk.text",e.PERMISSION_USER="comatePlus.permission.user.text",e.AUTH_MESSAGE="comatePlus.auth.message",e.USER_INFO_ERROR="comatePlus.userInfo.error",e.CLEAR_PERMISSION="comatePlus.clear.permission",e.SPLIT_ERROR="comatePlus.split.error",e.NO_SELECTION="comatePlus.noSelection",e.NOT_A_FUNCTION="comatePlus.not.function.text"}(l_||(l_={})),function(e){e.INLINECHAT_GENERATE="inlinechat.placeholder.generate",e.INLINECHAT_SELECTED="inlinechat.placeholder.selected",e.INLINECHAT_UNSELECTED="inlinechat.placeholder.unselected",e.INLINECHAT_TITLE="inlinechat.title",e.INLINCHAT_ERROR="inlinechat.placeholder.error"}(u_||(u_={})),function(e){e.GENERATE_ERROR="messageGenerate.generate.error",e.NO_DIFF_ERROR="messageGenerate.noDiff.error",e.GET_DIFF_ERROR="messageGenerate.getDiff.error",e.EMPTY_CONTENT_ERROR="messageGenerate.emptyContent.error"}(p_||(p_={})),function(e){e.GENERATE_ERROR="kernel.zulu.error"}(d_||(d_={}));const m_=[],h_={enableInlineSuggestion:void 0,superCompletion:!0,completionMode:{autoCompletion:!0,manualCompletion:!0},disabledLanguage:[],completionSpeedAndAccuracy:"extremeAccurate",codelensDisplayMode:"expand",enableDocstringOutputInEditor:{functionDocstringOutputInEditor:!0,inlineCommentOutputInEditor:!0},enableStreamingSession:void 0,enableCodelens:{enableInlineUnitTest:!0,enableInlineExplain:!0,enableInlineDocstring:!0,enableInlineSplit:!0,enableInlineComment:!0,enableInlineOptimize:!0,enableInlineLog:!0},username:"",license:"",enableSecurityScanBox:void 0,displayLanguage:"zh-cn",enableSecurityEnhancement:!1,enableSecurityIntelligence:void 0,enableDebugIntelligence:void 0,enableCodebaseEnhancedContext:void 0,completionLength:"auto",enableCommentEnhancement:void 0,privateService:"",smartPaste:!0,beta:void 0,terminalAutoExecution:"turbo",terminalAutoExecutionDenyList:m_,terminalAutoExecutionAllowList:[],zuluConfig:{terminalAutoExecution:"turbo",terminalAutoExecutionDenyList:m_,terminalAutoExecutionAllowList:[]}};function g_(...e){(process.env.ENVIRONMENT||process.env.DEBUG)&&console.log(...e)}const v_=o(i(import.meta.url));class x_{cwd;shell="bin/bash";license;username;ideSeries;ideVersion;ideName;platform;deviceId;pluginVersion;httpProxy;ripgrepPath;extensionConfig=h_;client;isReady=!1;_readyResolver;isSerivceReady=!1;_readyServiceResolver;constructor(e){this.cwd=e.cwd,this.shell=e.shell,this.license=e.license,this.username=e.username,this.ideSeries=e.ideSeries,this.ideVersion=e.ideVersion,this.ideName=e.ideName,this.platform=e.platform,this.deviceId=e.deviceId,this.pluginVersion=e.pluginVersion,this.httpProxy=e.httpProxy,this.extensionConfig.username=e.username,this.extensionConfig.license=e.license,this.ripgrepPath=e.ripgrepPath}async start(){const e=await this.engineExec(),t=new Mt.StreamMessageReader(e.stdout),n=new Mt.StreamMessageWriter(e.stdin);this.client=Mt.createMessageConnection(t,n),this.client.onRequest("USER_DETAIL",(async()=>({status:"success",payload:{name:this.username,license:this.license,ideVersion:this.ideVersion,platform:this.platform,version:this.pluginVersion,language:"zh",customizeService:void 0,device:this.deviceId}}))),this.client.onRequest("kernel/kernelConfig/fetch",(async()=>({code:0,message:"success",data:{appRoot:this.cwd,appHost:"desktop",deviceId:this.deviceId,ideName:this.ideName,ideSeries:this.ideSeries,ideVersion:this.ideVersion,environment:Nt.PRODUCTION,extensionVersion:this.pluginVersion,platform:this.platform,themeColor:"dark",ideTerminalInfo:{defaultShell:this.shell}}}))),this.client.onRequest(Dt,(async()=>(g_("KERNEL CLIENT REC <--------",Dt),{code:0,message:"success",data:h_}))),this.client.onNotification("kernel/system/initialized",(()=>{this.isReady=!0,this._readyResolver?.()})),this.client.onNotification("ENGINE_SERVICE_INITIALIZED",(()=>{this.isSerivceReady=!0,this._readyServiceResolver?.()})),this.client.listen(),this.setupLogHandlers(),await this.initializeLSP(),g_("LSP Client started")}async sendRequest(e,t){if(g_("COMATE PLUSE CLIENT send --------\x3e",e,JSON.stringify(t)),!this.client)throw new Error("Client not initialized");return this.client.sendRequest(e,t)}onRequest(e,t){if(!this.client)throw new Error("Client not initialized:"+e);return this.client.onRequest(e,t)}onNotification(e,t){if(!this.client)throw new Error("Client not initialized:"+e);this.client.onNotification(e,t)}async handleConfigChange(){this.client?this.client.sendRequest("ide/extensionConfig/didChange",h_):console.warn("Client not initialized")}async initializeLSP(){if(!this.client)throw new Error("Client not initialized");const e={processId:process.pid,clientInfo:{name:"vscode-comate-client",version:"1.0.0"},rootPath:this.cwd,rootUri:De.file(this.cwd).toString(),capabilities:{workspace:{workspaceFolders:!0,configuration:!0},textDocument:{synchronization:{dynamicRegistration:!1,willSave:!1,willSaveWaitUntil:!1,didSave:!1}}},initializationOptions:{},workspaceFolders:[{uri:De.file(this.cwd).toString(),name:"workspace"}]};try{g_("Sending initialize request...");g_("Initialize response:",await this.client.sendRequest("initialize",e)),g_("Sending initialized notification..."),this.client.sendNotification("initialized",{}),g_("LSP initialization completed")}catch(e){throw console.error("LSP initialization failed:",e),e}}setupLogHandlers(){this.client&&(this.client.onNotification("window/logMessage",(e=>{g_(e)})),this.client.onNotification("window/showMessage",(e=>{g_(e)})),this.client.onRequest("window/showMessageRequest",(e=>(g_(e),e.actions?.[0]||null))),this.client.onNotification("comate/log",(e=>{g_(e)})),this.client.onNotification("$/progress",(e=>{g_(e)})))}handleVirtualEditor(){this.client?.onRequest("VIRTUAL_EDITOR_EVENT",(async()=>{}))}async engineExec(){const e={cwd:this.cwd,env:{...process.env,IDE:this.ideName,COMATE_VERSION:this.pluginVersion,COMATE_ENGINE_APP_NAME:"VS Code",COMATE_ENGINE_PLATFORM:"baidu-saas",COMATE_ENGINE_DEBUG:"true",PLATFORM:this.platform,HTTP_PROXY_URL:this.httpProxy,HTTP_HOST:process.env.HTTP_HOST||"",RIPGREP_BIN_PATH:this.ripgrepPath,DISPLAY_LANGUAGE:"zh"}},t=s(v_,"../../comate-engine/bin/comate.js");return d(t,[],{stdio:"pipe",execArgv:[],...e})}async dispose(){if(this.client)try{await this.client.sendRequest("shutdown",null),this.client.sendNotification("exit")}catch(e){console.error("Error during LSP shutdown:",e)}finally{this.client.dispose()}}}function b_(e,t){try{b.accessSync(e),((e,t)=>{try{b.writeFileSync(e,t||"","utf8")}catch(e){throw new Error(`Failed to overwrite document: ${e}`)}})(e,t)}catch(n){const i=c.dirname(e);b.mkdirSync(i,{recursive:!0}),b.writeFileSync(e,t||"","utf8")}}var y_={exports:{}};
36
+ /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */const bm="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:ze):e=>(vm||(vm=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)));var ym={};Object.defineProperty(ym,"__esModule",{value:!0}),ym.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const _m=process.versions.node.split(".");if(void 0===_m[0]||void 0===_m[1])throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);const wm=Number.parseInt(_m[0],10),Em=Number.parseInt(_m[1],10),Sm=wm>10,km=10===wm&&Em>=10;ym.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Sm||km;var Rm={},Tm={};Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.createDirentFromStats=void 0;class Om{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}Tm.createDirentFromStats=function(e,t){return new Om(e,t)},Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.fs=void 0;const Cm=Tm;Rm.fs=Cm;var Am={};Object.defineProperty(Am,"__esModule",{value:!0}),Am.joinPathSegments=void 0,Am.joinPathSegments=function(e,t,n){return e.endsWith(n)?e+t:e+n+t},Object.defineProperty(rm,"__esModule",{value:!0}),rm.readdir=rm.readdirWithFileTypes=rm.read=void 0;const Pm=om,jm=xm,Lm=ym,Nm=Rm,Im=Am;function $m(e,t,n){t.fs.readdir(e,{withFileTypes:!0},((i,r)=>{if(null!==i)return void Dm(n,i);const o=r.map((n=>({dirent:n,name:n.name,path:Im.joinPathSegments(e,n.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks)return void Fm(n,o);const s=o.map((e=>function(e,t){return n=>{e.dirent.isSymbolicLink()?t.fs.stat(e.path,((i,r)=>{if(null!==i)return t.throwErrorOnBrokenSymbolicLink?void n(i):void n(null,e);e.dirent=Nm.fs.createDirentFromStats(e.name,r),n(null,e)})):n(null,e)}}(e,t)));jm(s,((e,t)=>{null===e?Fm(n,t):Dm(n,e)}))}))}function Mm(e,t,n){t.fs.readdir(e,((i,r)=>{if(null!==i)return void Dm(n,i);const o=r.map((n=>{const i=Im.joinPathSegments(e,n,t.pathSegmentSeparator);return e=>{Pm.stat(i,t.fsStatSettings,((r,o)=>{if(null!==r)return void e(r);const s={name:n,path:i,dirent:Nm.fs.createDirentFromStats(n,o)};t.stats&&(s.stats=o),e(null,s)}))}}));jm(o,((e,t)=>{null===e?Fm(n,t):Dm(n,e)}))}))}function Dm(e,t){e(t)}function Fm(e,t){e(null,t)}rm.read=function(e,t,n){t.stats||!Lm.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Mm(e,t,n):$m(e,t,n)},rm.readdirWithFileTypes=$m,rm.readdir=Mm;var zm={};Object.defineProperty(zm,"__esModule",{value:!0}),zm.readdir=zm.readdirWithFileTypes=zm.read=void 0;const Bm=om,Um=ym,qm=Rm,Hm=Am;function Wm(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map((n=>{const i={dirent:n,name:n.name,path:Hm.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{const e=t.fs.statSync(i.path);i.dirent=qm.fs.createDirentFromStats(i.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return i}))}function Gm(e,t){return t.fs.readdirSync(e).map((n=>{const i=Hm.joinPathSegments(e,n,t.pathSegmentSeparator),r=Bm.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:qm.fs.createDirentFromStats(n,r)};return t.stats&&(o.stats=r),o}))}zm.read=function(e,t){return!t.stats&&Um.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Wm(e,t):Gm(e,t)},zm.readdirWithFileTypes=Wm,zm.readdir=Gm;var Vm={},Km={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const t=b;e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync},e.createFileSystemAdapter=function(t){return void 0===t?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}}(Km),Object.defineProperty(Vm,"__esModule",{value:!0});const Jm=c,Zm=om,Ym=Km;Vm.default=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Ym.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Jm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Zm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Object.defineProperty(im,"__esModule",{value:!0}),im.Settings=im.scandirSync=im.scandir=void 0;const Qm=rm,Xm=zm,eh=Vm;function th(e={}){return e instanceof eh.default?e:new eh.default(e)}im.Settings=eh.default,im.scandir=function(e,t,n){"function"!=typeof t?Qm.read(e,th(t),n):Qm.read(e,th(),t)},im.scandirSync=function(e,t){const n=th(t);return Xm.read(e,n)};var nh={exports:{}};var ih=function(e){var t=new e,n=t;return{get:function(){var i=t;return i.next?t=i.next:(t=new e,n=t),i.next=null,i},release:function(e){n.next=e,n=e}}};function rh(e,t,n){if("function"==typeof e&&(n=t,t=e,e=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var i=ih(sh),r=null,o=null,s=0,a=null,c={push:function(u,p){var d=i.get();d.context=e,d.release=l,d.value=u,d.callback=p||oh,d.errorHandler=a,s>=n||c.paused?o?(o.next=d,o=d):(r=d,o=d,c.saturated()):(s++,t.call(e,d.value,d.worked))},drain:oh,saturated:oh,pause:function(){c.paused=!0},paused:!1,get concurrency(){return n},set concurrency(e){if(!(e>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=e,!c.paused)for(;r&&s<n;)s++,l()},running:function(){return s},resume:function(){if(!c.paused)return;if(c.paused=!1,null===r)return s++,void l();for(;r&&s<n;)s++,l()},idle:function(){return 0===s&&0===c.length()},length:function(){var e=r,t=0;for(;e;)e=e.next,t++;return t},getQueue:function(){var e=r,t=[];for(;e;)t.push(e.value),e=e.next;return t},unshift:function(u,p){var d=i.get();d.context=e,d.release=l,d.value=u,d.callback=p||oh,d.errorHandler=a,s>=n||c.paused?r?(d.next=r,r=d):(r=d,o=d,c.saturated()):(s++,t.call(e,d.value,d.worked))},empty:oh,kill:function(){r=null,o=null,c.drain=oh},killAndDrain:function(){r=null,o=null,c.drain(),c.drain=oh},error:function(e){a=e}};return c;function l(a){a&&i.release(a);var l=r;l&&s<=n?c.paused?s--:(o===r&&(o=null),r=l.next,l.next=null,t.call(e,l.value,l.worked),null===o&&c.empty()):0==--s&&c.drain()}}function oh(){}function sh(){this.value=null,this.callback=oh,this.next=null,this.release=oh,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var i=e.callback,r=e.errorHandler,o=e.value;e.value=null,e.callback=oh,e.errorHandler&&r(t,o),i.call(e.context,t,n),e.release(e)}}nh.exports=rh,nh.exports.promise=function(e,t,n){"function"==typeof e&&(n=t,t=e,e=null);var i=rh(e,(function(e,n){t.call(this,e).then((function(e){n(null,e)}),n)}),n),r=i.push,o=i.unshift;return i.push=function(e){var t=new Promise((function(t,n){r(e,(function(e,i){e?n(e):t(i)}))}));return t.catch(oh),t},i.unshift=function(e){var t=new Promise((function(t,n){o(e,(function(e,i){e?n(e):t(i)}))}));return t.catch(oh),t},i.drained=function(){if(i.idle())return new Promise((function(e){e()}));var e=i.drain;return new Promise((function(t){i.drain=function(){e(),t()}}))},i};var ah=nh.exports,ch={};Object.defineProperty(ch,"__esModule",{value:!0}),ch.joinPathSegments=ch.replacePathSegmentSeparator=ch.isAppliedFilter=ch.isFatalError=void 0,ch.isFatalError=function(e,t){return null===e.errorFilter||!e.errorFilter(t)},ch.isAppliedFilter=function(e,t){return null===e||e(t)},ch.replacePathSegmentSeparator=function(e,t){return e.split(/[/\\]/).join(t)},ch.joinPathSegments=function(e,t,n){return""===e?t:e.endsWith(n)?e+t:e+n+t};var lh={};Object.defineProperty(lh,"__esModule",{value:!0});const uh=ch;lh.default=class{constructor(e,t){this._root=e,this._settings=t,this._root=uh.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}},Object.defineProperty(nm,"__esModule",{value:!0});const ph=A,dh=im,fh=ah,mh=ch,hh=lh;class gh extends hh.default{constructor(e,t){super(e,t),this._settings=t,this._scandir=dh.scandir,this._emitter=new ph.EventEmitter,this._queue=fh(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)})),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const n={directory:e,base:t};this._queue.push(n,(e=>{null!==e&&this._handleError(e)}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((n,i)=>{if(null===n){for(const t of i)this._handleEntry(t,e.base);t(null,void 0)}else t(n,void 0)}))}_handleError(e){!this._isDestroyed&&mh.isFatalError(this._settings,e)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;const n=e.path;void 0!==t&&(e.path=mh.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),mh.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&mh.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,void 0===t?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}nm.default=gh,Object.defineProperty(tm,"__esModule",{value:!0});const vh=nm;tm.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new vh.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError((t=>{!function(e,t){e(t)}(e,t)})),this._reader.onEntry((e=>{this._storage.push(e)})),this._reader.onEnd((()=>{!function(e,t){e(null,t)}(e,this._storage)})),this._reader.read()}};var xh={};Object.defineProperty(xh,"__esModule",{value:!0});const bh=_,yh=nm;xh.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new yh.default(this._root,this._settings),this._stream=new bh.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError((e=>{this._stream.emit("error",e)})),this._reader.onEntry((e=>{this._stream.push(e)})),this._reader.onEnd((()=>{this._stream.push(null)})),this._reader.read(),this._stream}};var _h={},wh={};Object.defineProperty(wh,"__esModule",{value:!0});const Eh=im,Sh=ch,kh=lh;class Rh extends kh.default{constructor(){super(...arguments),this._scandir=Eh.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{const n=this._scandir(e,this._settings.fsScandirSettings);for(const e of n)this._handleEntry(e,t)}catch(e){this._handleError(e)}}_handleError(e){if(Sh.isFatalError(this._settings,e))throw e}_handleEntry(e,t){const n=e.path;void 0!==t&&(e.path=Sh.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),Sh.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Sh.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,void 0===t?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}wh.default=Rh,Object.defineProperty(_h,"__esModule",{value:!0});const Th=wh;_h.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new Th.default(this._root,this._settings)}read(){return this._reader.read()}};var Oh={};Object.defineProperty(Oh,"__esModule",{value:!0});const Ch=c,Ah=im;Oh.default=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ch.sep),this.fsScandirSettings=new Ah.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}},Object.defineProperty(em,"__esModule",{value:!0}),em.Settings=em.walkStream=em.walkSync=em.walk=void 0;const Ph=tm,jh=xh,Lh=_h,Nh=Oh;function Ih(e={}){return e instanceof Nh.default?e:new Nh.default(e)}em.Settings=Nh.default,em.walk=function(e,t,n){"function"!=typeof t?new Ph.default(e,Ih(t)).read(n):new Ph.default(e,Ih()).read(t)},em.walkSync=function(e,t){const n=Ih(t);return new Lh.default(e,n).read()},em.walkStream=function(e,t){const n=Ih(t);return new jh.default(e,n).read()};var $h={};Object.defineProperty($h,"__esModule",{value:!0});const Mh=c,Dh=om,Fh=kp;$h.default=class{constructor(e){this._settings=e,this._fsStatSettings=new Dh.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Mh.resolve(this._settings.cwd,e)}_makeEntry(e,t){const n={name:t,path:t,dirent:Fh.fs.createDirentFromStats(t,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Fh.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};var zh={};Object.defineProperty(zh,"__esModule",{value:!0});const Bh=_,Uh=om,qh=em,Hh=$h;class Wh extends Hh.default{constructor(){super(...arguments),this._walkStream=qh.walkStream,this._stat=Uh.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const n=e.map(this._getFullEntryPath,this),i=new Bh.PassThrough({objectMode:!0});i._write=(r,o,s)=>this._getEntry(n[r],e[r],t).then((e=>{null!==e&&t.entryFilter(e)&&i.push(e),r===n.length-1&&i.end(),s()})).catch(s);for(let e=0;e<n.length;e++)i.write(e);return i}_getEntry(e,t,n){return this._getStat(e).then((e=>this._makeEntry(e,t))).catch((e=>{if(n.errorFilter(e))return null;throw e}))}_getStat(e){return new Promise(((t,n)=>{this._stat(e,this._fsStatSettings,((e,i)=>null===e?t(i):n(e)))}))}}zh.default=Wh,Object.defineProperty(Xf,"__esModule",{value:!0});const Gh=em,Vh=$h,Kh=zh;class Jh extends Vh.default{constructor(){super(...arguments),this._walkAsync=Gh.walk,this._readerStream=new Kh.default(this._settings)}dynamic(e,t){return new Promise(((n,i)=>{this._walkAsync(e,t,((e,t)=>{null===e?n(t):i(e)}))}))}async static(e,t){const n=[],i=this._readerStream.static(e,t);return new Promise(((e,t)=>{i.once("error",t),i.on("data",(e=>n.push(e))),i.once("end",(()=>e(n)))}))}}Xf.default=Jh;var Zh={},Yh={},Qh={},Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});const eg=kp;Xh.default=class{constructor(e,t,n){this._patterns=e,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(const e of this._patterns){const t=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(e){return eg.pattern.getPatternParts(e,this._micromatchOptions).map((e=>eg.pattern.isDynamicPattern(e,this._settings)?{dynamic:!0,pattern:e,patternRe:eg.pattern.makeRe(e,this._micromatchOptions)}:{dynamic:!1,pattern:e}))}_splitSegmentsIntoSections(e){return eg.array.splitWhen(e,(e=>e.dynamic&&eg.pattern.hasGlobStar(e.pattern)))}},Object.defineProperty(Qh,"__esModule",{value:!0});const tg=Xh;class ng extends tg.default{match(e){const t=e.split("/"),n=t.length,i=this._storage.filter((e=>!e.complete||e.segments.length>n));for(const e of i){const i=e.sections[0];if(!e.complete&&n>i.length)return!0;const r=t.every(((t,n)=>{const i=e.segments[n];return!(!i.dynamic||!i.patternRe.test(t))||!i.dynamic&&i.pattern===t}));if(r)return!0}return!1}}Qh.default=ng,Object.defineProperty(Yh,"__esModule",{value:!0});const ig=kp,rg=Qh;Yh.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,n){const i=this._getMatcher(t),r=this._getNegativePatternsRe(n);return t=>this._filter(e,t,i,r)}_getMatcher(e){return new rg.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(ig.pattern.isAffectDepthOfReadingPattern);return ig.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,n,i){if(this._isSkippedByDeep(e,t.path))return!1;if(this._isSkippedSymbolicLink(t))return!1;const r=ig.path.removeLeadingDotSegment(t.path);return!this._isSkippedByPositivePatterns(r,n)&&this._isSkippedByNegativePatterns(r,i)}_isSkippedByDeep(e,t){return this._settings.deep!==1/0&&this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const n=t.split("/").length;if(""===e)return n;return n-e.split("/").length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!ig.pattern.matchAny(e,t)}};var og={};Object.defineProperty(og,"__esModule",{value:!0});const sg=kp;og.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,t){const n=sg.pattern.convertPatternsToRe(e,this._micromatchOptions),i=sg.pattern.convertPatternsToRe(t,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return e=>this._filter(e,n,i)}_filter(e,t,n){const i=sg.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(i))return!1;if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;if(this._isSkippedByAbsoluteNegativePatterns(i,n))return!1;const r=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,t,r)&&!this._isMatchToPatterns(i,n,r);return this._settings.unique&&o&&this._createIndexRecord(i),o}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute)return!1;const n=sg.path.makeAbsolute(this._settings.cwd,e);return sg.pattern.matchAny(n,t)}_isMatchToPatterns(e,t,n){const i=sg.pattern.matchAny(e,t);return!i&&n?sg.pattern.matchAny(e+"/",t):i}};var ag={};Object.defineProperty(ag,"__esModule",{value:!0});const cg=kp;ag.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return cg.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};var lg={};Object.defineProperty(lg,"__esModule",{value:!0});const ug=kp;lg.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;return this._settings.absolute&&(t=ug.path.makeAbsolute(this._settings.cwd,t),t=ug.path.unixify(t)),this._settings.markDirectories&&e.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:t}):t}},Object.defineProperty(Zh,"__esModule",{value:!0});const pg=c,dg=Yh,fg=og,mg=ag,hg=lg;Zh.default=class{constructor(e){this._settings=e,this.errorFilter=new mg.default(this._settings),this.entryFilter=new fg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new dg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new hg.default(this._settings)}_getRootDirectory(e){return pg.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t="."===e.base?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}},Object.defineProperty(Qf,"__esModule",{value:!0});const gg=Xf,vg=Zh;class xg extends vg.default{constructor(){super(...arguments),this._reader=new gg.default(this._settings)}async read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(t,e,n)).map((e=>n.transform(e)))}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}Qf.default=xg;var bg={};Object.defineProperty(bg,"__esModule",{value:!0});const yg=_,_g=zh,wg=Zh;class Eg extends wg.default{constructor(){super(...arguments),this._reader=new _g.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(t,e,n),r=new yg.Readable({objectMode:!0,read:()=>{}});return i.once("error",(e=>r.emit("error",e))).on("data",(e=>r.emit("data",n.transform(e)))).once("end",(()=>r.emit("end"))),r.once("close",(()=>i.destroy())),r}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}bg.default=Eg;var Sg={},kg={};Object.defineProperty(kg,"__esModule",{value:!0});const Rg=om,Tg=em,Og=$h;class Cg extends Og.default{constructor(){super(...arguments),this._walkSync=Tg.walkSync,this._statSync=Rg.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const n=[];for(const i of e){const e=this._getFullEntryPath(i),r=this._getEntry(e,i,t);null!==r&&t.entryFilter(r)&&n.push(r)}return n}_getEntry(e,t,n){try{const n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}kg.default=Cg,Object.defineProperty(Sg,"__esModule",{value:!0});const Ag=kg,Pg=Zh;class jg extends Pg.default{constructor(){super(...arguments),this._reader=new Ag.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(t,e,n).map(n.transform)}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}Sg.default=jg;var Lg={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const t=b,n=l,i=Math.max(n.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};e.default=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,i),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,t){return void 0===e?t:e}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}}(Lg);const Ng=Sp,Ig=Qf,$g=bg,Mg=Sg,Dg=Lg,Fg=kp;async function zg(e,t){Ug(e);const n=Bg(e,Ig.default,t),i=await Promise.all(n);return Fg.array.flatten(i)}function Bg(e,t,n){const i=[].concat(e),r=new Dg.default(n),o=Ng.generate(i,r),s=new t(r);return o.map(s.read,s)}function Ug(e){if(![].concat(e).every((e=>Fg.string.isString(e)&&!Fg.string.isEmpty(e))))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}!function(e){function t(e,t){Ug(e);const n=Bg(e,Mg.default,t);return Fg.array.flatten(n)}function n(e,t){Ug(e);const n=Bg(e,$g.default,t);return Fg.stream.merge(n)}var i,r;e.glob=e,e.globSync=t,e.globStream=n,e.async=e,e.sync=t,e.stream=n,e.generateTasks=function(e,t){Ug(e);const n=[].concat(e),i=new Dg.default(t);return Ng.generate(n,i)},e.isDynamicPattern=function(e,t){Ug(e);const n=new Dg.default(t);return Fg.pattern.isDynamicPattern(e,n)},e.escapePath=function(e){return Ug(e),Fg.path.escape(e)},e.convertPathToPattern=function(e){return Ug(e),Fg.path.convertPathToPattern(e)},(i=e.posix||(e.posix={})).escapePath=function(e){return Ug(e),Fg.path.escapePosixPath(e)},i.convertPathToPattern=function(e){return Ug(e),Fg.path.convertPosixPathToPattern(e)},(r=e.win32||(e.win32={})).escapePath=function(e){return Ug(e),Fg.path.escapeWindowsPath(e)},r.convertPathToPattern=function(e){return Ug(e),Fg.path.convertWindowsPathToPattern(e)}}(zg||(zg={}));var qg={exports:{}},Hg={};const{promisify:Wg}=a,Gg=b;async function Vg(e,t,n){if("string"!=typeof n)throw new TypeError("Expected a string, got "+typeof n);try{return(await Wg(Gg[e])(n))[t]()}catch(e){if("ENOENT"===e.code)return!1;throw e}}function Kg(e,t,n){if("string"!=typeof n)throw new TypeError("Expected a string, got "+typeof n);try{return Gg[e](n)[t]()}catch(e){if("ENOENT"===e.code)return!1;throw e}}Hg.isFile=Vg.bind(null,"stat","isFile"),Hg.isDirectory=Vg.bind(null,"stat","isDirectory"),Hg.isSymlink=Vg.bind(null,"lstat","isSymbolicLink"),Hg.isFileSync=Kg.bind(null,"statSync","isFile"),Hg.isDirectorySync=Kg.bind(null,"statSync","isDirectory"),Hg.isSymlinkSync=Kg.bind(null,"lstatSync","isSymbolicLink");const Jg=c,Zg=Hg,Yg=e=>e.length>1?`{${e.join(",")}}`:e[0],Qg=(e,t)=>{const n="!"===e[0]?e.slice(1):e;return Jg.isAbsolute(n)?n:Jg.join(t,n)},Xg=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map((n=>Jg.posix.join(e,((e,t)=>Jg.extname(e)?`**/${e}`:`**/${e}.${Yg(t)}`)(n,t.extensions)))):t.files?t.files.map((t=>Jg.posix.join(e,`**/${t}`))):t.extensions?[Jg.posix.join(e,`**/*.${Yg(t.extensions)}`)]:[Jg.posix.join(e,"**")]};function ev(e){return Array.isArray(e)?e:[e]}qg.exports=async(e,t)=>{if("string"!=typeof(t={cwd:process.cwd(),...t}).cwd)throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);const n=await Promise.all([].concat(e).map((async e=>await Zg.isDirectory(Qg(e,t.cwd))?Xg(e,t):e)));return[].concat.apply([],n)},qg.exports.sync=(e,t)=>{if("string"!=typeof(t={cwd:process.cwd(),...t}).cwd)throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);const n=[].concat(e).map((e=>Zg.isDirectorySync(Qg(e,t.cwd))?Xg(e,t):e));return[].concat.apply([],n)};const tv=/^\s+$/,nv=/(?:[^\\]|^)\\$/,iv=/^\\!/,rv=/^\\#/,ov=/\r?\n/g,sv=/^\.*\/|^\.+$/;let av="node-ignore";"undefined"!=typeof Symbol&&(av=Symbol.for("node-ignore"));const cv=av,lv=/([0-z])-([0-z])/g,uv=()=>!1,pv=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(0===n.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,i,r)=>"\\"===t?`\\[${n}${(e=>{const{length:t}=e;return e.slice(0,t-t%2)})(i)}${r}`:"]"===r&&i.length%2==0?`[${(e=>e.replace(lv,((e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:"")))(n)}${i}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],dv=Object.create(null),fv=e=>"string"==typeof e;class mv{constructor(e,t,n,i){this.origin=e,this.pattern=t,this.negative=n,this.regex=i}}const hv=(e,t)=>{const n=e;let i=!1;0===e.indexOf("!")&&(i=!0,e=e.substr(1));const r=((e,t)=>{let n=dv[e];return n||(n=pv.reduce(((t,[n,i])=>t.replace(n,i.bind(e))),e),dv[e]=n),t?new RegExp(n,"i"):new RegExp(n)})(e=e.replace(iv,"!").replace(rv,"#"),t);return new mv(n,e,i,r)},gv=(e,t)=>{throw new t(e)},vv=(e,t,n)=>{if(!fv(e))return n(`path must be a string, but got \`${t}\``,TypeError);if(!e)return n("path must not be empty",TypeError);if(vv.isNotRelative(e)){return n(`path should be a ${"`path.relative()`d"} string, but got "${t}"`,RangeError)}return!0},xv=e=>sv.test(e);vv.isNotRelative=xv,vv.convert=e=>e;class bv{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){var i,r,o;i=this,r=cv,o=!0,Object.defineProperty(i,r,{value:o}),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[cv])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&fv(e)&&!tv.test(e)&&!nv.test(e)&&0!==e.indexOf("#"))(e)){const t=hv(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,ev(fv(e)?(e=>e.split(ov))(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,i=!1;return this._rules.forEach((r=>{const{negative:o}=r;if(i===o&&n!==i||o&&!n&&!i&&!t)return;r.regex.test(e)&&(n=!o,i=o)})),{ignored:n,unignored:i}}_test(e,t,n,i){const r=e&&vv.convert(e);return vv(r,e,this._allowRelativePaths?uv:gv),this._t(r,t,n,i)}_t(e,t,n,i){if(e in t)return t[e];if(i||(i=e.split("/")),i.pop(),!i.length)return t[e]=this._testOne(e,n);const r=this._t(i.join("/")+"/",t,n,i);return t[e]=r.ignored?r:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return ev(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}const yv=e=>new bv(e);if(yv.isPathValid=e=>vv(e&&vv.convert(e),e,uv),yv.default=yv,"undefined"!=typeof process&&(process.env&&process.env.IGNORE_TEST_WIN32||"win32"===process.platform)){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");vv.convert=e;const t=/^[a-z]:\//i;vv.isNotRelative=e=>t.test(e)||xv(e)}const _v=[{id:"bat",extensions:[".bat",".cmd"]},{id:"clojure",extensions:[".clj",".cljs",".cljc",".cljx",".clojure",".edn"]},{id:"coffeescript",extensions:[".coffee",".cson",".iced"]},{id:"jsonc",extensions:[".code-workspace","language-configuration.json","icon-theme.json","color-theme.json"],names:["settings.json","launch.json","tasks.json","keybindings.json","extensions.json","argv.json","profiles.json","devcontainer.json",".devcontainer.json"]},{id:"json",extensions:[".code-profile"]},{id:"c",extensions:[".c",".i"]},{id:"cpp",extensions:[".cpp",".cc",".cxx",".c++",".hpp",".hh",".hxx",".h++",".h",".ii",".ino",".inl",".ipp",".ixx",".tpp",".txx",".hpp.in",".h.in"]},{id:"cuda-cpp",extensions:[".cu",".cuh"]},{id:"csharp",extensions:[".cs",".csx",".cake"]},{id:"css",extensions:[".css"],mimeTypes:["text/css"]},{id:"dart",extensions:[".dart"]},{id:"diff",extensions:[".diff",".patch",".rej"]},{id:"dockerfile",extensions:[".dockerfile",".containerfile"],patterns:["Dockerfile.*","Containerfile.*"],names:["Dockerfile","Containerfile"]},{id:"ignore",names:[".vscodeignore"]},{id:"fsharp",extensions:[".fs",".fsi",".fsx",".fsscript"]},{id:"git-commit",names:["COMMIT_EDITMSG","MERGE_MSG"]},{id:"git-rebase",patterns:["**/rebase-merge/done"],names:["git-rebase-todo"]},{id:"ignore",extensions:[".gitignore_global",".gitignore",".git-blame-ignore-revs"]},{id:"go",extensions:[".go"]},{id:"groovy",extensions:[".groovy",".gvy",".gradle",".jenkinsfile",".nf"],firstLine:"^#!.*\\bgroovy\\b",patterns:["Jenkinsfile*"],names:["Jenkinsfile"]},{id:"handlebars",extensions:[".handlebars",".hbs",".hjs"],mimeTypes:["text/x-handlebars-template"]},{id:"hlsl",extensions:[".hlsl",".hlsli",".fx",".fxh",".vsh",".psh",".cginc",".compute"]},{id:"html",extensions:[".html",".htm",".shtml",".xhtml",".xht",".mdoc",".jsp",".asp",".aspx",".jshtm",".volt",".ejs",".rhtml"],mimeTypes:["text/html","text/x-jshtm","text/template","text/ng-template","application/xhtml+xml"]},{id:"ini",extensions:[".ini"]},{id:"properties",extensions:[".conf",".properties",".cfg",".directory",".gitattributes",".gitconfig",".gitmodules",".editorconfig",".repo"],patterns:["**/.config/git/config","**/.git/config"],names:["gitconfig",".env"]},{id:"java",extensions:[".java",".jav"]},{id:"javascriptreact",extensions:[".jsx"]},{id:"javascript",extensions:[".js",".es6",".mjs",".cjs",".pac"],firstLine:"^#!.*\\bnode",names:["jakefile"],mimeTypes:["text/javascript"]},{id:"jsx-tags"},{id:"json",extensions:[".json",".bowerrc",".jscsrc",".webmanifest",".js.map",".css.map",".ts.map",".har",".jslintrc",".jsonld",".geojson",".ipynb",".vuerc"],names:["composer.lock",".watchmanconfig"],mimeTypes:["application/json","application/manifest+json"]},{id:"jsonc",extensions:[".jsonc",".eslintrc",".eslintrc.json",".jsfmtrc",".jshintrc",".swcrc",".hintrc",".babelrc"],names:["babel.config.json",".babelrc.json",".ember-cli","typedoc.json"]},{id:"jsonl",extensions:[".jsonl"],names:[]},{id:"snippets",extensions:[".code-snippets"],patterns:["**/User/snippets/*.json","**/User/profiles/*/snippets/*.json"]},{id:"julia",extensions:[".jl"],firstLine:"^#!\\s*/.*\\bjulia[0-9.-]*\\b"},{id:"juliamarkdown",extensions:[".jmd"]},{id:"tex",extensions:[".sty",".cls",".bbx",".cbx"]},{id:"latex",extensions:[".tex",".ltx",".ctx"]},{id:"bibtex",extensions:[".bib"]},{id:"cpp_embedded_latex"},{id:"markdown_latex_combined"},{id:"less",extensions:[".less"],mimeTypes:["text/x-less","text/less"]},{id:"log",extensions:[".log","*.log.?"]},{id:"lua",extensions:[".lua"]},{id:"makefile",extensions:[".mak",".mk"],firstLine:"^#!\\s*/usr/bin/make",names:["Makefile","makefile","GNUmakefile","OCamlMakefile"]},{id:"markdown",extensions:[".md",".mkd",".mdwn",".mdown",".markdown",".markdn",".mdtxt",".mdtext",".workbook"]},{id:"markdown-math"},{id:"ignore",extensions:[".npmignore"]},{id:"properties",extensions:[".npmrc"]},{id:"objective-c",extensions:[".m"]},{id:"objective-cpp",extensions:[".mm"]},{id:"perl",extensions:[".pl",".pm",".pod",".t",".PL",".psgi"],firstLine:"^#!.*\\bperl\\b"},{id:"raku",extensions:[".raku",".rakumod",".rakutest",".rakudoc",".nqp",".p6",".pl6",".pm6"],firstLine:"(^#!.*\\bperl6\\b)|use\\s+v6|raku|=begin\\spod|my\\sclass"},{id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],firstLine:"^#!\\s*/.*\\bphp\\b",mimeTypes:["application/x-php"]},{id:"powershell",extensions:[".ps1",".psm1",".psd1",".pssc",".psrc"],firstLine:"^#!\\s*/.*\\bpwsh\\b"},{id:"jade",extensions:[".pug",".jade"]},{id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi",".pyi",".ipy",".pyt"],firstLine:"^#!\\s*/?.*\\bpython[0-9.-]*\\b",names:["SConstruct","SConscript"]},{id:"r",extensions:[".r",".rhistory",".rprofile",".rt"]},{id:"razor",extensions:[".cshtml",".razor"],mimeTypes:["text/x-cshtml"]},{id:"restructuredtext",extensions:[".rst"]},{id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".rake",".ru",".erb",".podspec",".rbi"],firstLine:"^#!\\s*/.*\\bruby\\b",names:["rakefile","gemfile","guardfile","podfile","capfile","cheffile","hobofile","vagrantfile","appraisals","rantfile","berksfile","berksfile.lock","thorfile","puppetfile","dangerfile","brewfile","fastfile","appfile","deliverfile","matchfile","scanfile","snapfile","gymfile"]},{id:"rust",extensions:[".rs"]},{id:"scss",extensions:[".scss"],mimeTypes:["text/x-scss","text/scss"]},{id:"search-result",extensions:[".code-search"]},{id:"shaderlab",extensions:[".shader"]},{id:"shellscript",extensions:[".sh",".bash",".bashrc",".bash_aliases",".bash_profile",".bash_login",".ebuild",".profile",".bash_logout",".xprofile",".xsession",".xsessionrc",".Xsession",".zsh",".zshrc",".zprofile",".zlogin",".zlogout",".zshenv",".zsh-theme",".fish",".ksh",".csh",".cshrc",".tcshrc",".yashrc",".yash_profile"],firstLine:"^#!.*\\b(bash|fish|zsh|sh|ksh|dtksh|pdksh|mksh|ash|dash|yash|sh|csh|jcsh|tcsh|itcsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",patterns:[".env.*"],names:["APKBUILD","PKGBUILD",".envrc",".hushlogin","zshrc","zshenv","zlogin","zprofile","zlogout","bashrc_Apple_Terminal","zshrc_Apple_Terminal"],mimeTypes:["text/x-shellscript"]},{id:"sql",extensions:[".sql",".dsql"]},{id:"swift",extensions:[".swift"]},{id:"typescript",extensions:[".ts",".cts",".mts"]},{id:"typescriptreact",extensions:[".tsx"]},{id:"jsonc",patterns:["tsconfig.*.json","jsconfig.*.json","tsconfig-*.json","jsconfig-*.json"],names:["tsconfig.json","jsconfig.json"]},{id:"json",extensions:[".tsbuildinfo"]},{id:"vb",extensions:[".vb",".brs",".vbs",".bas",".vba"]},{id:"xml",extensions:[".xml",".xsd",".ascx",".atom",".axml",".axaml",".bpmn",".cpt",".csl",".csproj",".csproj.user",".dita",".ditamap",".dtd",".ent",".mod",".dtml",".fsproj",".fxml",".iml",".isml",".jmx",".launch",".menu",".mxml",".nuspec",".opml",".owl",".proj",".props",".pt",".publishsettings",".pubxml",".pubxml.user",".rbxlx",".rbxmx",".rdf",".rng",".rss",".shproj",".storyboard",".svg",".targets",".tld",".tmx",".vbproj",".vbproj.user",".vcxproj",".vcxproj.filters",".wsdl",".wxi",".wxl",".wxs",".xaml",".xbl",".xib",".xlf",".xliff",".xpdl",".xul",".xoml"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)"},{id:"xsl",extensions:[".xsl",".xslt"]},{id:"dockercompose",patterns:["compose.yml","compose.yaml","compose.*.yml","compose.*.yaml","*docker*compose*.yml","*docker*compose*.yaml"]},{id:"yaml",extensions:[".yml",".eyaml",".eyml",".yaml",".cff",".yaml-tmlanguage",".yaml-tmpreferences",".yaml-tmtheme"],firstLine:"^#cloud-config"}];class wv{static default=new wv;entries=[];static{for(const e of _v)wv.default.registerLanguage(e.id,e)}registerLanguage(e,t){const n=(e=>{const{extensions:t,names:n,patterns:i,firstLine:o}=e,s=o?new RegExp(o):null,a=i?bp(i.map((e=>e.includes("/")?`**/${e}`:e))):null;return(e,i)=>!!(t&&t.includes(r.extname(e))||n&&n.includes(e)||a&&a(e)||s&&s.test(i))})(t);this.entries.push({id:e,detect:n})}detect(e,t){const n=t.indexOf("\n"),i=-1===n?t:t.slice(0,n),r=this.entries.find((t=>t.detect(e,i.trim())));return r?.id??null}}function Ev(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Sv={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function kv(e){Sv=e}const Rv=/[&<>"']/,Tv=new RegExp(Rv.source,"g"),Ov=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Cv=new RegExp(Ov.source,"g"),Av={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Pv=e=>Av[e];function jv(e,t){if(t){if(Rv.test(e))return e.replace(Tv,Pv)}else if(Ov.test(e))return e.replace(Cv,Pv);return e}const Lv=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Nv(e){return e.replace(Lv,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Iv=/(^|[^\[])\^/g;function $v(e,t){let n="string"==typeof e?e:e.source;t=t||"";const i={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(Iv,"$1"),n=n.replace(e,r),i},getRegex:()=>new RegExp(n,t)};return i}function Mv(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}const Dv={exec:()=>null};function Fv(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})),i=n.split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function zv(e,t,n){const i=e.length;if(0===i)return"";let r=0;for(;r<i;){if(e.charAt(i-r-1)!==t)break;r++}return e.slice(0,i-r)}function Bv(e,t,n,i){const r=t.href,o=t.title?jv(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){i.state.inLink=!0;const e={type:"link",raw:n,href:r,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:o,text:jv(s)}}class Uv{options;rules;lexer;constructor(e){this.options=e||Sv}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:zv(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const i=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=i.length?e.slice(i.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=zv(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=zv(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),n=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:i,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const i=n.length>1,r={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");const o=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let s="",a="",c=!1;for(;e;){let n=!1;if(!(t=o.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let i=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),l=e.split("\n",1)[0],u=0;this.options.pedantic?(u=2,a=i.trimStart()):(u=t[2].search(/[^ ]/),u=u>4?1:u,a=i.slice(u),u+=t[1].length);let p=!1;if(!i&&/^ *$/.test(l)&&(s+=l+"\n",e=e.substring(l.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),o=new RegExp(`^ {0,${Math.min(3,u-1)}}#`);for(;e;){const c=e.split("\n",1)[0];if(l=c,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),r.test(l))break;if(o.test(l))break;if(t.test(l))break;if(n.test(e))break;if(l.search(/[^ ]/)>=u||!l.trim())a+="\n"+l.slice(u);else{if(p)break;if(i.search(/[^ ]/)>=4)break;if(r.test(i))break;if(o.test(i))break;if(n.test(i))break;a+="\n"+l}p||l.trim()||(p=!0),s+=c+"\n",e=e.substring(c.length+1),i=l.slice(u)}}r.loose||(c?r.loose=!0:/\n *\n *$/.test(s)&&(c=!0));let d,f=null;this.options.gfm&&(f=/^\[[ xX]\] /.exec(a),f&&(d="[ ] "!==f[0],a=a.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:s,task:!!f,checked:d,loose:!1,text:a,tokens:[]}),r.raw+=s}r.items[r.items.length-1].raw=s.trimEnd(),r.items[r.items.length-1].text=a.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){const t=r.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));r.loose=n}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t){return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const n=Fv(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(const e of i)/^ *-+: *$/.test(e)?o.align.push("right"):/^ *:-+: *$/.test(e)?o.align.push("center"):/^ *:-+ *$/.test(e)?o.align.push("left"):o.align.push(null);for(const e of n)o.header.push({text:e,tokens:this.lexer.inline(e)});for(const e of r)o.rows.push(Fv(e,o.header.length).map((e=>({text:e,tokens:this.lexer.inline(e)}))));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:jv(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=zv(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],i=e[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Bv(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Bv(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i)return;if(i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...i[0]].length-1;let r,o,s=n,a=0;const c="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(i=c.exec(t));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(o=[...r].length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+a);const t=[...i[0]][0].length,c=e.slice(0,n+i.index+t+o);if(Math.min(n,o)%2){const e=c.slice(1,-1);return{type:"em",raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}const l=c.slice(2,-2);return{type:"strong",raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),i=/^ /.test(e)&&/ $/.test(e);return n&&i&&(e=e.substring(1,e.length-1)),e=jv(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=jv(t[1]),n="mailto:"+e):(e=jv(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=jv(t[0]),n="mailto:"+e;else{let i;do{i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(i!==t[0]);e=jv(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:jv(t[0]),{type:"text",raw:t[0],text:e}}}}const qv=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Hv=/(?:[*+-]|\d{1,9}[.)])/,Wv=$v(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Hv).getRegex(),Gv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Vv=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Kv=$v(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Vv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Jv=$v(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Hv).getRegex(),Zv="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Yv=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Qv=$v("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Yv).replace("tag",Zv).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xv=$v(Gv).replace("hr",qv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zv).getRegex(),ex={blockquote:$v(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xv).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:Kv,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:qv,html:Qv,lheading:Wv,list:Jv,newline:/^(?: *(?:\n|$))+/,paragraph:Xv,table:Dv,text:/^[^\n]+/},tx=$v("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",qv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zv).getRegex(),nx={...ex,table:tx,paragraph:$v(Gv).replace("hr",qv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tx).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zv).getRegex()},ix={...ex,html:$v("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Yv).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$v(Gv).replace("hr",qv).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Wv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},rx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ox=/^( {2,}|\\)\n(?!\s*$)/,sx="\\p{P}$+<=>`^|~",ax=$v(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,sx).getRegex(),cx=$v(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,sx).getRegex(),lx=$v("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,sx).getRegex(),ux=$v("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,sx).getRegex(),px=$v(/\\([punct])/,"gu").replace(/punct/g,sx).getRegex(),dx=$v(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),fx=$v(Yv).replace("(?:--\x3e|$)","--\x3e").getRegex(),mx=$v("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",fx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hx=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,gx=$v(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",hx).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vx=$v(/^!?\[(label)\]\[(ref)\]/).replace("label",hx).replace("ref",Vv).getRegex(),xx=$v(/^!?\[(ref)\](?:\[\])?/).replace("ref",Vv).getRegex(),bx={_backpedal:Dv,anyPunctuation:px,autolink:dx,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:ox,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Dv,emStrongLDelim:cx,emStrongRDelimAst:lx,emStrongRDelimUnd:ux,escape:rx,link:gx,nolink:xx,punctuation:ax,reflink:vx,reflinkSearch:$v("reflink|nolink(?!\\()","g").replace("reflink",vx).replace("nolink",xx).getRegex(),tag:mx,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Dv},yx={...bx,link:$v(/^!?\[(label)\]\((.*?)\)/).replace("label",hx).getRegex(),reflink:$v(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hx).getRegex()},_x={...bx,escape:$v(rx).replace("])","~|])").getRegex(),url:$v(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},wx={..._x,br:$v(ox).replace("{2,}","*").getRegex(),text:$v(_x.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ex={normal:ex,gfm:nx,pedantic:ix},Sx={normal:bx,gfm:_x,breaks:wx,pedantic:yx};class kx{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Sv,this.options.tokenizer=this.options.tokenizer||new Uv,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Ex.normal,inline:Sx.normal};this.options.pedantic?(t.block=Ex.pedantic,t.inline=Sx.pedantic):this.options.gfm&&(t.block=Ex.gfm,this.options.breaks?t.inline=Sx.breaks:t.inline=Sx.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ex,inline:Sx}}static lex(e,t){return new kx(t).lex(e)}static lexInline(e,t){return new kx(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){let n,i,r,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startBlock.forEach((e=>{i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))i=t[t.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),o=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,r,o,s,a,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,o.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((i=>!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),i=t[t.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,a))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let i;this.options.extensions.startInline.forEach((e=>{i=e.call({lexer:this},n),"number"==typeof i&&i>=0&&(t=Math.min(t,i))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Rx{options;constructor(e){this.options=e||Sv}code(e,t,n){const i=(t||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="language-'+jv(i)+'">'+(n?e:jv(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:jv(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>\n`}hr(){return"<hr>\n"}list(e,t,n){const i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"}listitem(e,t,n){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){const i=Mv(e);if(null===i)return n;let r='<a href="'+(e=i)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){const i=Mv(e);if(null===i)return n;let r=`<img src="${e=i}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=">",r}text(e){return e}}class Tx{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Ox{options;renderer;textRenderer;constructor(e){this.options=e||Sv,this.options.renderer=this.options.renderer||new Rx,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Tx}static parse(e,t){return new Ox(t).parse(e)}static parseInline(e,t){return new Ox(t).parseInline(e)}parse(e,t=!0){let n="";for(let i=0;i<e.length;i++){const r=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const e=r,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}switch(r.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":{const e=r;n+=this.renderer.heading(this.parseInline(e.tokens),e.depth,Nv(this.parseInline(e.tokens,this.textRenderer)));continue}case"code":{const e=r;n+=this.renderer.code(e.text,e.lang,!!e.escaped);continue}case"table":{const e=r;let t="",i="";for(let t=0;t<e.header.length;t++)i+=this.renderer.tablecell(this.parseInline(e.header[t].tokens),{header:!0,align:e.align[t]});t+=this.renderer.tablerow(i);let o="";for(let t=0;t<e.rows.length;t++){const n=e.rows[t];i="";for(let t=0;t<n.length;t++)i+=this.renderer.tablecell(this.parseInline(n[t].tokens),{header:!1,align:e.align[t]});o+=this.renderer.tablerow(i)}n+=this.renderer.table(t,o);continue}case"blockquote":{const e=r,t=this.parse(e.tokens);n+=this.renderer.blockquote(t);continue}case"list":{const e=r,t=e.ordered,i=e.start,o=e.loose;let s="";for(let t=0;t<e.items.length;t++){const n=e.items[t],i=n.checked,r=n.task;let a="";if(n.task){const e=this.renderer.checkbox(!!i);o?n.tokens.length>0&&"paragraph"===n.tokens[0].type?(n.tokens[0].text=e+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&"text"===n.tokens[0].tokens[0].type&&(n.tokens[0].tokens[0].text=e+" "+n.tokens[0].tokens[0].text)):n.tokens.unshift({type:"text",text:e+" "}):a+=e+" "}a+=this.parse(n.tokens,o),s+=this.renderer.listitem(a,r,!!i)}n+=this.renderer.list(s,t,i);continue}case"html":{const e=r;n+=this.renderer.html(e.text,e.block);continue}case"paragraph":{const e=r;n+=this.renderer.paragraph(this.parseInline(e.tokens));continue}case"text":{let o=r,s=o.tokens?this.parseInline(o.tokens):o.text;for(;i+1<e.length&&"text"===e[i+1].type;)o=e[++i],s+="\n"+(o.tokens?this.parseInline(o.tokens):o.text);n+=t?this.renderer.paragraph(s):s;continue}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let i=0;i<e.length;i++){const r=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}switch(r.type){case"escape":{const e=r;n+=t.text(e.text);break}case"html":{const e=r;n+=t.html(e.text);break}case"link":{const e=r;n+=t.link(e.href,e.title,this.parseInline(e.tokens,t));break}case"image":{const e=r;n+=t.image(e.href,e.title,e.text);break}case"strong":{const e=r;n+=t.strong(this.parseInline(e.tokens,t));break}case"em":{const e=r;n+=t.em(this.parseInline(e.tokens,t));break}case"codespan":{const e=r;n+=t.codespan(e.text);break}case"br":n+=t.br();break;case"del":{const e=r;n+=t.del(this.parseInline(e.tokens,t));break}case"text":{const e=r;n+=t.text(e.text);break}default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class Cx{options;constructor(e){this.options=e||Sv}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}const Ax=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.#e(kx.lex,Ox.parse);parseInline=this.#e(kx.lexInline,Ox.parseInline);Parser=Ox;Renderer=Rx;TextRenderer=Tx;Lexer=kx;Tokenizer=Uv;Hooks=Cx;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{const e=i;for(const i of e.header)n=n.concat(this.walkTokens(i.tokens,t));for(const i of e.rows)for(const e of i)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=i;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=i;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((i=>{const r=e[i].flat(1/0);n=n.concat(this.walkTokens(r,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let i=e.renderer.apply(this,t);return!1===i&&(i=n.apply(this,t)),i}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new Rx(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if("options"===n)continue;const i=n,r=e.renderer[i],o=t[i];t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new Uv(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const i=n,r=e.tokenizer[i],o=t[i];t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new Cx;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if("options"===n)continue;const i=n,r=e.hooks[i],o=t[i];Cx.passThroughHooks.has(n)?t[i]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then((e=>o.call(t,e)));const n=r.call(t,e);return o.call(t,n)}:t[i]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,i=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(i.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return kx.lex(e,t??this.defaults)}parser(e,t){return Ox.parse(e,t??this.defaults)}#e(e,t){return(n,i)=>{const r={...i},o={...this.defaults,...r};!0===this.defaults.async&&!1===r.async&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const s=this.#t(!!o.silent,!!o.async);if(null==n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then((t=>e(t,o))).then((e=>o.hooks?o.hooks.processAllTokens(e):e)).then((e=>o.walkTokens?Promise.all(this.walkTokens(e,o.walkTokens)).then((()=>e)):e)).then((e=>t(e,o))).then((e=>o.hooks?o.hooks.postprocess(e):e)).catch(s);try{o.hooks&&(n=o.hooks.preprocess(n));let i=e(n,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let r=t(i,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return s(e)}}}#t(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+jv(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Px(e,t){return Ax.parse(e,t)}Px.options=Px.setOptions=function(e){return Ax.setOptions(e),Px.defaults=Ax.defaults,kv(Px.defaults),Px},Px.getDefaults=Ev,Px.defaults=Sv,Px.use=function(...e){return Ax.use(...e),Px.defaults=Ax.defaults,kv(Px.defaults),Px},Px.walkTokens=function(e,t){return Ax.walkTokens(e,t)},Px.parseInline=Ax.parseInline,Px.Parser=Ox,Px.parser=Ox.parse,Px.Renderer=Rx,Px.TextRenderer=Tx,Px.Lexer=kx,Px.lexer=kx.lex,Px.Tokenizer=Uv,Px.Hooks=Cx,Px.parse=Px,Px.options,Px.setOptions,Px.use,Px.walkTokens,Px.parseInline,Ox.parse,kx.lex;var jx={exports:{}};
37
37
  /**
38
38
  * @license
39
39
  * Lodash <https://lodash.com/>
@@ -41,4 +41,4 @@ const gd=a,vd=rd,xd=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),bd=e=>"nu
41
41
  * Released under MIT license <https://lodash.com/license>
42
42
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
43
43
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
44
- */!function(e,t){(function(){var n,i="Expected a function",r="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,a=128,c=256,l=1/0,u=9007199254740991,p=NaN,d=4294967295,f=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",c]],m="[object Arguments]",h="[object Array]",g="[object Boolean]",v="[object Date]",x="[object Error]",b="[object Function]",y="[object GeneratorFunction]",_="[object Map]",w="[object Number]",E="[object Object]",S="[object Promise]",k="[object RegExp]",R="[object Set]",T="[object String]",O="[object Symbol]",C="[object WeakMap]",A="[object ArrayBuffer]",P="[object DataView]",j="[object Float32Array]",L="[object Float64Array]",N="[object Int8Array]",I="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",F="[object Uint16Array]",z="[object Uint32Array]",B=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,G=RegExp(H.source),V=RegExp(W.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,ie=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,be=/['\n\r\u2028\u2029\\]/g,ye="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Oe="["+ye+"]",Ce="["+Re+"]",Ae="["+_e+"]",Pe="\\d+",je="["+we+"]",Le="["+Ee+"]",Ne="[^"+ye+Re+Pe+we+Ee+Se+"]",Ie="\\ud83c[\\udffb-\\udfff]",$e="[^"+ye+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Se+"]",Be="\\u200d",Ue="(?:"+Le+"|"+Ne+")",qe="(?:"+Fe+"|"+Ne+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ae+"|"+Ie+")"+"?",Ve="["+ke+"]?",Ke=Ve+Ge+("(?:"+Be+"(?:"+[$e,Me,De].join("|")+")"+Ve+Ge+")*"),Je="(?:"+[je,Me,De].join("|")+")"+Ke,Ze="(?:"+[$e+Ae+"?",Ae,Me,De,Oe].join("|")+")",Ye=RegExp(Te,"g"),Qe=RegExp(Ae,"g"),Xe=RegExp(Ie+"(?="+Ie+")|"+Ze+Ke,"g"),et=RegExp([Fe+"?"+Le+"+"+He+"(?="+[Ce,Fe,"$"].join("|")+")",qe+"+"+We+"(?="+[Ce,Fe+Ue,"$"].join("|")+")",Fe+"?"+Ue+"+"+He,Fe+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Je].join("|"),"g"),tt=RegExp("["+Be+ye+_e+ke+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[j]=ot[L]=ot[N]=ot[I]=ot[$]=ot[M]=ot[D]=ot[F]=ot[z]=!0,ot[m]=ot[h]=ot[A]=ot[g]=ot[P]=ot[v]=ot[x]=ot[b]=ot[_]=ot[w]=ot[E]=ot[k]=ot[R]=ot[T]=ot[C]=!1;var st={};st[m]=st[h]=st[A]=st[P]=st[g]=st[v]=st[j]=st[L]=st[N]=st[I]=st[$]=st[_]=st[w]=st[E]=st[k]=st[R]=st[T]=st[O]=st[M]=st[D]=st[F]=st[z]=!0,st[x]=st[b]=st[C]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,lt=parseInt,ut="object"==typeof ze&&ze&&ze.Object===Object&&ze,pt="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||pt||Function("return this")(),ft=t&&!t.nodeType&&t,mt=ft&&e&&!e.nodeType&&e,ht=mt&&mt.exports===ft,gt=ht&&ut.process,vt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),xt=vt&&vt.isArrayBuffer,bt=vt&&vt.isDate,yt=vt&&vt.isMap,_t=vt&&vt.isRegExp,wt=vt&&vt.isSet,Et=vt&&vt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];t(i,s,n(s),e)}return i}function Rt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function At(e,t){return!!(null==e?0:e.length)&&zt(e,t,0)>-1}function Pt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function jt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Lt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Nt(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function It(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function $t(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Mt=Ht("length");function Dt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Ft(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function zt(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):Ft(e,Ut,n)}function Bt(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function Ut(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Vt(e,t)/n:p}function Ht(e){return function(t){return null==t?n:t[e]}}function Wt(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function Vt(e,t){for(var i,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==n&&(i=i===n?s:i+s)}return i}function Kt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Jt(e){return e?e.slice(0,fn(e)+1).replace(ne,""):e}function Zt(e){return function(t){return e(t)}}function Yt(e,t){return jt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function Xt(e,t){for(var n=-1,i=e.length;++n<i&&zt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var tn=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+at[e]}function on(e){return tt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function an(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,i=e.length,r=0,s=[];++n<i;){var a=e[n];a!==t&&a!==o||(e[n]=o,s[r++]=n)}return s}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return on(e)?function(e){var t=Xe.lastIndex=0;for(;Xe.test(e);)++t;return t}(e):Mt(e)}function dn(e){return on(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var mn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var hn=function e(t){var ie=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,it))).Array,ye=t.Date,_e=t.Error,we=t.Function,Ee=t.Math,Se=t.Object,ke=t.RegExp,Re=t.String,Te=t.TypeError,Oe=ie.prototype,Ce=we.prototype,Ae=Se.prototype,Pe=t["__core-js_shared__"],je=Ce.toString,Le=Ae.hasOwnProperty,Ne=0,Ie=function(){var e=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$e=Ae.toString,Me=je.call(Se),De=dt._,Fe=ke("^"+je.call(Le).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ht?t.Buffer:n,Be=t.Symbol,Ue=t.Uint8Array,qe=ze?ze.allocUnsafe:n,He=an(Se.getPrototypeOf,Se),We=Se.create,Ge=Ae.propertyIsEnumerable,Ve=Oe.splice,Ke=Be?Be.isConcatSpreadable:n,Je=Be?Be.iterator:n,Ze=Be?Be.toStringTag:n,Xe=function(){try{var e=lo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),tt=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,at=ye&&ye.now!==dt.Date.now&&ye.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,pt=Ee.ceil,ft=Ee.floor,mt=Se.getOwnPropertySymbols,gt=ze?ze.isBuffer:n,vt=t.isFinite,Mt=Oe.join,Wt=an(Se.keys,Se),gn=Ee.max,vn=Ee.min,xn=ye.now,bn=t.parseInt,yn=Ee.random,_n=Oe.reverse,wn=lo(t,"DataView"),En=lo(t,"Map"),Sn=lo(t,"Promise"),kn=lo(t,"Set"),Rn=lo(t,"WeakMap"),Tn=lo(Se,"create"),On=Rn&&new Rn,Cn={},An=$o(wn),Pn=$o(En),jn=$o(Sn),Ln=$o(kn),Nn=$o(Rn),In=Be?Be.prototype:n,$n=In?In.valueOf:n,Mn=In?In.toString:n;function Dn(e){if(Xs(e)&&!Us(e)&&!(e instanceof Un)){if(e instanceof Bn)return e;if(Le.call(e,"__wrapped__"))return Mo(e)}return new Bn(e)}var Fn=function(){function e(){}return function(t){if(!Qs(t))return{};if(We)return We(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function zn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function Vn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Kn(e,t){var n=Us(e),i=!n&&Bs(e),r=!n&&!i&&Gs(e),o=!n&&!i&&!r&&aa(e),s=n||i||r||o,a=s?Kt(e.length,Re):[],c=a.length;for(var l in e)!t&&!Le.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||vo(l,c))||a.push(l);return a}function Jn(e){var t=e.length;return t?e[Gi(0,t-1)]:n}function Zn(e,t){return Lo(Tr(e),oi(t,0,e.length))}function Yn(e){return Lo(Tr(e))}function Qn(e,t,i){(i!==n&&!Ds(e[t],i)||i===n&&!(t in e))&&ii(e,t,i)}function Xn(e,t,i){var r=e[t];Le.call(e,t)&&Ds(r,i)&&(i!==n||t in e)||ii(e,t,i)}function ei(e,t){for(var n=e.length;n--;)if(Ds(e[n][0],t))return n;return-1}function ti(e,t,n,i){return ui(e,(function(e,r,o){t(i,e,n(e),o)})),i}function ni(e,t){return e&&Or(t,Ca(t),e)}function ii(e,t,n){"__proto__"==t&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var i=-1,r=t.length,o=ie(r),s=null==e;++i<r;)o[i]=s?n:Sa(e,t[i]);return o}function oi(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function si(e,t,i,r,o,s){var a,c=1&t,l=2&t,u=4&t;if(i&&(a=o?i(e,r,o,s):i(e)),a!==n)return a;if(!Qs(e))return e;var p=Us(e);if(p){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Tr(e,a)}else{var d=fo(e),f=d==b||d==y;if(Gs(e))return _r(e,c);if(d==E||d==m||f&&!o){if(a=l||f?{}:ho(e),!c)return l?function(e,t){return Or(e,po(e),t)}(e,function(e,t){return e&&Or(t,Aa(t),e)}(a,e)):function(e,t){return Or(e,uo(e),t)}(e,ni(a,e))}else{if(!st[d])return o?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case A:return wr(e);case g:case v:return new i(+e);case P:return function(e,t){var n=t?wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case L:case N:case I:case $:case M:case D:case F:case z:return Er(e,n);case _:return new i;case w:case T:return new i(e);case k:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new i;case O:return r=e,$n?Se($n.call(r)):{}}var r}(e,d,c)}}s||(s=new Vn);var h=s.get(e);if(h)return h;s.set(e,a),ra(e)?e.forEach((function(n){a.add(si(n,t,i,n,e,s))})):ea(e)&&e.forEach((function(n,r){a.set(r,si(n,t,i,r,e,s))}));var x=p?n:(u?l?no:to:l?Aa:Ca)(e);return Rt(x||e,(function(n,r){x&&(n=e[r=n]),Xn(a,r,si(n,t,i,r,e,s))})),a}function ai(e,t,i){var r=i.length;if(null==e)return!r;for(e=Se(e);r--;){var o=i[r],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function ci(e,t,r){if("function"!=typeof e)throw new Te(i);return Co((function(){e.apply(n,r)}),t)}function li(e,t,n,i){var r=-1,o=At,s=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=jt(t,Zt(n))),i?(o=Pt,s=!1):t.length>=200&&(o=Qt,s=!1,t=new Gn(t));e:for(;++r<a;){var u=e[r],p=null==n?u:n(u);if(u=i||0!==u?u:0,s&&p==p){for(var d=l;d--;)if(t[d]===p)continue e;c.push(u)}else o(t,p,i)||c.push(u)}return c}Dn.templateSettings={escape:K,evaluate:J,interpolate:Z,variable:"",imports:{_:Dn}},Dn.prototype=zn.prototype,Dn.prototype.constructor=Dn,Bn.prototype=Fn(zn.prototype),Bn.prototype.constructor=Bn,Un.prototype=Fn(zn.prototype),Un.prototype.constructor=Un,qn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Tn){var i=t[e];return i===r?n:i}return Le.call(t,e)?t[e]:n},qn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==n:Le.call(t,e)},qn.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Tn&&t===n?r:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=ei(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ve.call(t,n,1),--this.size,!0)},Hn.prototype.get=function(e){var t=this.__data__,i=ei(t,e);return i<0?n:t[i][1]},Hn.prototype.has=function(e){return ei(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,i=ei(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(En||Hn),string:new qn}},Wn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ao(this,e).get(e)},Wn.prototype.has=function(e){return ao(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ao(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,r),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Vn.prototype.get=function(e){return this.__data__.get(e)},Vn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var i=n.__data__;if(!En||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(i)}return n.set(e,t),this.size=n.size,this};var ui=Pr(xi),pi=Pr(bi,!0);function di(e,t){var n=!0;return ui(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function fi(e,t,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(c===n?a==a&&!sa(a):i(a,c)))var c=a,l=s}return l}function mi(e,t){var n=[];return ui(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function hi(e,t,n,i,r){var o=-1,s=e.length;for(n||(n=go),r||(r=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?hi(a,t-1,n,i,r):Lt(r,a):i||(r[r.length]=a)}return r}var gi=jr(),vi=jr(!0);function xi(e,t){return e&&gi(e,t,Ca)}function bi(e,t){return e&&vi(e,t,Ca)}function yi(e,t){return Ct(t,(function(t){return Js(e[t])}))}function _i(e,t){for(var i=0,r=(t=vr(t,e)).length;null!=e&&i<r;)e=e[Io(t[i++])];return i&&i==r?e:n}function wi(e,t,n){var i=t(e);return Us(e)?i:Lt(i,n(e))}function Ei(e){return null==e?e===n?"[object Undefined]":"[object Null]":Ze&&Ze in Se(e)?function(e){var t=Le.call(e,Ze),i=e[Ze];try{e[Ze]=n;var r=!0}catch(e){}var o=$e.call(e);r&&(t?e[Ze]=i:delete e[Ze]);return o}(e):function(e){return $e.call(e)}(e)}function Si(e,t){return e>t}function ki(e,t){return null!=e&&Le.call(e,t)}function Ri(e,t){return null!=e&&t in Se(e)}function Ti(e,t,i){for(var r=i?Pt:At,o=e[0].length,s=e.length,a=s,c=ie(s),l=1/0,u=[];a--;){var p=e[a];a&&t&&(p=jt(p,Zt(t))),l=vn(p.length,l),c[a]=!i&&(t||o>=120&&p.length>=120)?new Gn(a&&p):n}p=e[0];var d=-1,f=c[0];e:for(;++d<o&&u.length<l;){var m=p[d],h=t?t(m):m;if(m=i||0!==m?m:0,!(f?Qt(f,h):r(u,h,i))){for(a=s;--a;){var g=c[a];if(!(g?Qt(g,h):r(e[a],h,i)))continue e}f&&f.push(h),u.push(m)}}return u}function Oi(e,t,i){var r=null==(e=Ro(e,t=vr(t,e)))?e:e[Io(Ko(t))];return null==r?n:St(r,e,i)}function Ci(e){return Xs(e)&&Ei(e)==m}function Ai(e,t,i,r,o){return e===t||(null==e||null==t||!Xs(e)&&!Xs(t)?e!=e&&t!=t:function(e,t,i,r,o,s){var a=Us(e),c=Us(t),l=a?h:fo(e),u=c?h:fo(t),p=(l=l==m?E:l)==E,d=(u=u==m?E:u)==E,f=l==u;if(f&&Gs(e)){if(!Gs(t))return!1;a=!0,p=!1}if(f&&!p)return s||(s=new Vn),a||aa(e)?Xr(e,t,i,r,o,s):function(e,t,n,i,r,o,s){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case g:case v:case w:return Ds(+e,+t);case x:return e.name==t.name&&e.message==t.message;case k:case T:return e==t+"";case _:var a=sn;case R:var c=1&i;if(a||(a=ln),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;i|=2,s.set(e,t);var u=Xr(a(e),a(t),i,r,o,s);return s.delete(e),u;case O:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,l,i,r,o,s);if(!(1&i)){var b=p&&Le.call(e,"__wrapped__"),y=d&&Le.call(t,"__wrapped__");if(b||y){var S=b?e.value():e,C=y?t.value():t;return s||(s=new Vn),o(S,C,i,r,s)}}if(!f)return!1;return s||(s=new Vn),function(e,t,i,r,o,s){var a=1&i,c=to(e),l=c.length,u=to(t),p=u.length;if(l!=p&&!a)return!1;var d=l;for(;d--;){var f=c[d];if(!(a?f in t:Le.call(t,f)))return!1}var m=s.get(e),h=s.get(t);if(m&&h)return m==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);var v=a;for(;++d<l;){var x=e[f=c[d]],b=t[f];if(r)var y=a?r(b,x,f,t,e,s):r(x,b,f,e,t,s);if(!(y===n?x===b||o(x,b,i,r,s):y)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,i,r,o,s)}(e,t,i,r,Ai,o))}function Pi(e,t,i,r){var o=i.length,s=o,a=!r;if(null==e)return!s;for(e=Se(e);o--;){var c=i[o];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var l=(c=i[o])[0],u=e[l],p=c[1];if(a&&c[2]){if(u===n&&!(l in e))return!1}else{var d=new Vn;if(r)var f=r(u,p,l,e,t,d);if(!(f===n?Ai(p,u,3,r,d):f))return!1}}return!0}function ji(e){return!(!Qs(e)||(t=e,Ie&&Ie in t))&&(Js(e)?Fe:me).test($o(e));var t}function Li(e){return"function"==typeof e?e:null==e?tc:"object"==typeof e?Us(e)?Fi(e[0],e[1]):Di(e):uc(e)}function Ni(e){if(!wo(e))return Wt(e);var t=[];for(var n in Se(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ii(e){if(!Qs(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var i in e)("constructor"!=i||!t&&Le.call(e,i))&&n.push(i);return n}function $i(e,t){return e<t}function Mi(e,t){var n=-1,i=Hs(e)?ie(e.length):[];return ui(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Di(e){var t=co(e);return 1==t.length&&t[0][2]?So(t[0][0],t[0][1]):function(n){return n===e||Pi(n,e,t)}}function Fi(e,t){return bo(e)&&Eo(t)?So(Io(e),t):function(i){var r=Sa(i,e);return r===n&&r===t?ka(i,e):Ai(t,r,3)}}function zi(e,t,i,r,o){e!==t&&gi(t,(function(s,a){if(o||(o=new Vn),Qs(s))!function(e,t,i,r,o,s,a){var c=To(e,i),l=To(t,i),u=a.get(l);if(u)return void Qn(e,i,u);var p=s?s(c,l,i+"",e,t,a):n,d=p===n;if(d){var f=Us(l),m=!f&&Gs(l),h=!f&&!m&&aa(l);p=l,f||m||h?Us(c)?p=c:Ws(c)?p=Tr(c):m?(d=!1,p=_r(l,!0)):h?(d=!1,p=Er(l,!0)):p=[]:na(l)||Bs(l)?(p=c,Bs(c)?p=ha(c):Qs(c)&&!Js(c)||(p=ho(l))):d=!1}d&&(a.set(l,p),o(p,l,r,s,a),a.delete(l));Qn(e,i,p)}(e,t,a,i,zi,r,o);else{var c=r?r(To(e,a),s,a+"",e,t,o):n;c===n&&(c=s),Qn(e,a,c)}}),Aa)}function Bi(e,t){var i=e.length;if(i)return vo(t+=t<0?i:0,i)?e[t]:n}function Ui(e,t,n){t=t.length?jt(t,(function(e){return Us(e)?function(t){return _i(t,1===e.length?e[0]:e)}:e})):[tc];var i=-1;t=jt(t,Zt(so()));var r=Mi(e,(function(e,n,r){var o=jt(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;for(;++i<s;){var c=Sr(r[i],o[i]);if(c)return i>=a?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function qi(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var s=t[i],a=_i(e,s);n(a,s)&&Yi(o,vr(s,e),a)}return o}function Hi(e,t,n,i){var r=i?Bt:zt,o=-1,s=t.length,a=e;for(e===t&&(t=Tr(t)),n&&(a=jt(e,Zt(n)));++o<s;)for(var c=0,l=t[o],u=n?n(l):l;(c=r(a,u,c,i))>-1;)a!==e&&Ve.call(a,c,1),Ve.call(e,c,1);return e}function Wi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;vo(r)?Ve.call(e,r,1):lr(e,r)}}return e}function Gi(e,t){return e+ft(yn()*(t-e+1))}function Vi(e,t){var n="";if(!e||t<1||t>u)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Ki(e,t){return Ao(ko(e,t,tc),e+"")}function Ji(e){return Jn(Da(e))}function Zi(e,t){var n=Da(e);return Lo(n,oi(t,0,n.length))}function Yi(e,t,i,r){if(!Qs(e))return e;for(var o=-1,s=(t=vr(t,e)).length,a=s-1,c=e;null!=c&&++o<s;){var l=Io(t[o]),u=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var p=c[l];(u=r?r(p,l,c):n)===n&&(u=Qs(p)?p:vo(t[o+1])?[]:{})}Xn(c,l,u),c=c[l]}return e}var Qi=On?function(e,t){return On.set(e,t),e}:tc,Xi=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:Qa(t),writable:!0})}:tc;function er(e){return Lo(Da(e))}function tr(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=ie(r);++i<r;)o[i]=e[i+t];return o}function nr(e,t){var n;return ui(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function ir(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!sa(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return rr(e,t,tc,n)}function rr(e,t,i,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=i(t))!=t,c=null===t,l=sa(t),u=t===n;o<s;){var p=ft((o+s)/2),d=i(e[p]),f=d!==n,m=null===d,h=d==d,g=sa(d);if(a)var v=r||h;else v=u?h&&(r||f):c?h&&f&&(r||!m):l?h&&f&&!m&&(r||!g):!m&&!g&&(r?d<=t:d<t);v?o=p+1:s=p}return vn(s,4294967294)}function or(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!Ds(a,c)){var c=a;o[r++]=0===s?0:s}}return o}function sr(e){return"number"==typeof e?e:sa(e)?p:+e}function ar(e){if("string"==typeof e)return e;if(Us(e))return jt(e,ar)+"";if(sa(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function cr(e,t,n){var i=-1,r=At,o=e.length,s=!0,a=[],c=a;if(n)s=!1,r=Pt;else if(o>=200){var l=t?null:Vr(e);if(l)return ln(l);s=!1,r=Qt,c=new Gn}else c=t?[]:a;e:for(;++i<o;){var u=e[i],p=t?t(u):u;if(u=n||0!==u?u:0,s&&p==p){for(var d=c.length;d--;)if(c[d]===p)continue e;t&&c.push(p),a.push(u)}else r(c,p,n)||(c!==a&&c.push(p),a.push(u))}return a}function lr(e,t){return null==(e=Ro(e,t=vr(t,e)))||delete e[Io(Ko(t))]}function ur(e,t,n,i){return Yi(e,t,n(_i(e,t)),i)}function pr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?tr(e,i?0:o,i?o+1:r):tr(e,i?o+1:0,i?r:o)}function dr(e,t){var n=e;return n instanceof Un&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function fr(e,t,n){var i=e.length;if(i<2)return i?cr(e[0]):[];for(var r=-1,o=ie(i);++r<i;)for(var s=e[r],a=-1;++a<i;)a!=r&&(o[r]=li(o[r]||s,e[a],t,n));return cr(hi(o,1),t,n)}function mr(e,t,i){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var c=r<s?t[r]:n;i(a,e[r],c)}return a}function hr(e){return Ws(e)?e:[]}function gr(e){return"function"==typeof e?e:tc}function vr(e,t){return Us(e)?e:bo(e,t)?[e]:No(ga(e))}var xr=Ki;function br(e,t,i){var r=e.length;return i=i===n?r:i,!t&&i>=r?e:tr(e,t,i)}var yr=tt||function(e){return dt.clearTimeout(e)};function _r(e,t){if(t)return e.slice();var n=e.length,i=qe?qe(n):new e.constructor(n);return e.copy(i),i}function wr(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Er(e,t){var n=t?wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Sr(e,t){if(e!==t){var i=e!==n,r=null===e,o=e==e,s=sa(e),a=t!==n,c=null===t,l=t==t,u=sa(t);if(!c&&!u&&!s&&e>t||s&&a&&l&&!c&&!u||r&&a&&l||!i&&l||!o)return 1;if(!r&&!s&&!u&&e<t||u&&i&&o&&!r&&!s||c&&i&&o||!a&&o||!l)return-1}return 0}function kr(e,t,n,i){for(var r=-1,o=e.length,s=n.length,a=-1,c=t.length,l=gn(o-s,0),u=ie(c+l),p=!i;++a<c;)u[a]=t[a];for(;++r<s;)(p||r<o)&&(u[n[r]]=e[r]);for(;l--;)u[a++]=e[r++];return u}function Rr(e,t,n,i){for(var r=-1,o=e.length,s=-1,a=n.length,c=-1,l=t.length,u=gn(o-a,0),p=ie(u+l),d=!i;++r<u;)p[r]=e[r];for(var f=r;++c<l;)p[f+c]=t[c];for(;++s<a;)(d||r<o)&&(p[f+n[s]]=e[r++]);return p}function Tr(e,t){var n=-1,i=e.length;for(t||(t=ie(i));++n<i;)t[n]=e[n];return t}function Or(e,t,i,r){var o=!i;i||(i={});for(var s=-1,a=t.length;++s<a;){var c=t[s],l=r?r(i[c],e[c],c,i,e):n;l===n&&(l=e[c]),o?ii(i,c,l):Xn(i,c,l)}return i}function Cr(e,t){return function(n,i){var r=Us(n)?kt:ti,o=t?t():{};return r(n,e,so(i,2),o)}}function Ar(e){return Ki((function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:n,a=o>2?i[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&xo(i[0],i[1],a)&&(s=o<3?n:s,o=1),t=Se(t);++r<o;){var c=i[r];c&&e(t,c,r,s)}return t}))}function Pr(e,t){return function(n,i){if(null==n)return n;if(!Hs(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=Se(n);(t?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function jr(e){return function(t,n,i){for(var r=-1,o=Se(t),s=i(t),a=s.length;a--;){var c=s[e?a:++r];if(!1===n(o[c],c,o))break}return t}}function Lr(e){return function(t){var i=on(t=ga(t))?dn(t):n,r=i?i[0]:t.charAt(0),o=i?br(i,1).join(""):t.slice(1);return r[e]()+o}}function Nr(e){return function(t){return Nt(Ja(Ba(t).replace(Ye,"")),e,"")}}function Ir(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),i=e.apply(n,t);return Qs(i)?i:n}}function $r(e){return function(t,i,r){var o=Se(t);if(!Hs(t)){var s=so(i,3);t=Ca(t),i=function(e){return s(o[e],e,o)}}var a=e(t,i,r);return a>-1?o[s?t[a]:a]:n}}function Mr(e){return eo((function(t){var r=t.length,o=r,s=Bn.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Te(i);if(s&&!c&&"wrapper"==ro(a))var c=new Bn([],!0)}for(o=c?o:r;++o<r;){var l=ro(a=t[o]),u="wrapper"==l?io(a):n;c=u&&yo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[ro(u[0])].apply(c,u[3]):1==a.length&&yo(a)?c[l]():c.thru(a)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&Us(n))return c.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function Dr(e,t,i,r,o,s,c,l,u,p){var d=t&a,f=1&t,m=2&t,h=24&t,g=512&t,v=m?n:Ir(e);return function a(){for(var x=arguments.length,b=ie(x),y=x;y--;)b[y]=arguments[y];if(h)var _=oo(a),w=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,_);if(r&&(b=kr(b,r,o,h)),s&&(b=Rr(b,s,c,h)),x-=w,h&&x<p){var E=cn(b,_);return Wr(e,t,Dr,a.placeholder,i,b,E,l,u,p-x)}var S=f?i:this,k=m?S[e]:e;return x=b.length,l?b=function(e,t){var i=e.length,r=vn(t.length,i),o=Tr(e);for(;r--;){var s=t[r];e[r]=vo(s,i)?o[s]:n}return e}(b,l):g&&x>1&&b.reverse(),d&&u<x&&(b.length=u),this&&this!==dt&&this instanceof a&&(k=v||Ir(k)),k.apply(S,b)}}function Fr(e,t){return function(n,i){return function(e,t,n,i){return xi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function zr(e,t){return function(i,r){var o;if(i===n&&r===n)return t;if(i!==n&&(o=i),r!==n){if(o===n)return r;"string"==typeof i||"string"==typeof r?(i=ar(i),r=ar(r)):(i=sr(i),r=sr(r)),o=e(i,r)}return o}}function Br(e){return eo((function(t){return t=jt(t,Zt(so())),Ki((function(n){var i=this;return e(t,(function(e){return St(e,i,n)}))}))}))}function Ur(e,t){var i=(t=t===n?" ":ar(t)).length;if(i<2)return i?Vi(t,e):t;var r=Vi(t,pt(e/pn(t)));return on(t)?br(dn(r),0,e).join(""):r.slice(0,e)}function qr(e){return function(t,i,r){return r&&"number"!=typeof r&&xo(t,i,r)&&(i=r=n),t=pa(t),i===n?(i=t,t=0):i=pa(i),function(e,t,n,i){for(var r=-1,o=gn(pt((t-e)/(n||1)),0),s=ie(o);o--;)s[i?o:++r]=e,e+=n;return s}(t,i,r=r===n?t<i?1:-1:pa(r),e)}}function Hr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Wr(e,t,i,r,o,a,c,l,u,p){var d=8&t;t|=d?s:64,4&(t&=~(d?64:s))||(t&=-4);var f=[e,t,o,d?a:n,d?c:n,d?n:a,d?n:c,l,u,p],m=i.apply(n,f);return yo(e)&&Oo(m,f),m.placeholder=r,Po(m,e,t)}function Gr(e){var t=Ee[e];return function(e,n){if(e=ma(e),(n=null==n?0:vn(da(n),292))&&vt(e)){var i=(ga(e)+"e").split("e");return+((i=(ga(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Vr=kn&&1/ln(new kn([,-0]))[1]==l?function(e){return new kn(e)}:sc;function Kr(e){return function(t){var n=fo(t);return n==_?sn(t):n==R?un(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jr(e,t,r,l,u,p,d,f){var m=2&t;if(!m&&"function"!=typeof e)throw new Te(i);var h=l?l.length:0;if(h||(t&=-97,l=u=n),d=d===n?d:gn(da(d),0),f=f===n?f:da(f),h-=u?u.length:0,64&t){var g=l,v=u;l=u=n}var x=m?n:io(e),b=[e,t,r,l,u,g,v,p,d,f];if(x&&function(e,t){var n=e[1],i=t[1],r=n|i,s=r<131,l=i==a&&8==n||i==a&&n==c&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!s&&!l)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var u=t[3];if(u){var p=e[3];e[3]=p?kr(p,u,t[4]):u,e[4]=p?cn(e[3],o):t[4]}(u=t[5])&&(p=e[5],e[5]=p?Rr(p,u,t[6]):u,e[6]=p?cn(e[5],o):t[6]);(u=t[7])&&(e[7]=u);i&a&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(b,x),e=b[0],t=b[1],r=b[2],l=b[3],u=b[4],!(f=b[9]=b[9]===n?m?0:e.length:gn(b[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?function(e,t,i){var r=Ir(e);return function o(){for(var s=arguments.length,a=ie(s),c=s,l=oo(o);c--;)a[c]=arguments[c];var u=s<3&&a[0]!==l&&a[s-1]!==l?[]:cn(a,l);return(s-=u.length)<i?Wr(e,t,Dr,o.placeholder,n,a,u,n,n,i-s):St(this&&this!==dt&&this instanceof o?r:e,this,a)}}(e,t,f):t!=s&&33!=t||u.length?Dr.apply(n,b):function(e,t,n,i){var r=1&t,o=Ir(e);return function t(){for(var s=-1,a=arguments.length,c=-1,l=i.length,u=ie(l+a),p=this&&this!==dt&&this instanceof t?o:e;++c<l;)u[c]=i[c];for(;a--;)u[c++]=arguments[++s];return St(p,r?n:this,u)}}(e,t,r,l);else var y=function(e,t,n){var i=1&t,r=Ir(e);return function t(){return(this&&this!==dt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,r);return Po((x?Qi:Oo)(y,b),e,t)}function Zr(e,t,i,r){return e===n||Ds(e,Ae[i])&&!Le.call(r,i)?t:e}function Yr(e,t,i,r,o,s){return Qs(e)&&Qs(t)&&(s.set(t,e),zi(e,t,n,Yr,s),s.delete(t)),e}function Qr(e){return na(e)?n:e}function Xr(e,t,i,r,o,s){var a=1&i,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,f=!0,m=2&i?new Gn:n;for(s.set(e,t),s.set(t,e);++d<c;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,s):r(h,g,d,e,t,s);if(v!==n){if(v)continue;f=!1;break}if(m){if(!$t(t,(function(e,t){if(!Qt(m,t)&&(h===e||o(h,e,i,r,s)))return m.push(t)}))){f=!1;break}}else if(h!==g&&!o(h,g,i,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function eo(e){return Ao(ko(e,n,qo),e+"")}function to(e){return wi(e,Ca,uo)}function no(e){return wi(e,Aa,po)}var io=On?function(e){return On.get(e)}:sc;function ro(e){for(var t=e.name+"",n=Cn[t],i=Le.call(Cn,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function oo(e){return(Le.call(Dn,"placeholder")?Dn:e).placeholder}function so(){var e=Dn.iteratee||nc;return e=e===nc?Li:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function co(e){for(var t=Ca(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Eo(r)]}return t}function lo(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return ji(i)?i:n}var uo=mt?function(e){return null==e?[]:(e=Se(e),Ct(mt(e),(function(t){return Ge.call(e,t)})))}:fc,po=mt?function(e){for(var t=[];e;)Lt(t,uo(e)),e=He(e);return t}:fc,fo=Ei;function mo(e,t,n){for(var i=-1,r=(t=vr(t,e)).length,o=!1;++i<r;){var s=Io(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&Ys(r)&&vo(s,r)&&(Us(e)||Bs(e))}function ho(e){return"function"!=typeof e.constructor||wo(e)?{}:Fn(He(e))}function go(e){return Us(e)||Bs(e)||!!(Ke&&e&&e[Ke])}function vo(e,t){var n=typeof e;return!!(t=null==t?u:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function xo(e,t,n){if(!Qs(n))return!1;var i=typeof t;return!!("number"==i?Hs(n)&&vo(t,n.length):"string"==i&&t in n)&&Ds(n[t],e)}function bo(e,t){if(Us(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sa(e))||(Q.test(e)||!Y.test(e)||null!=t&&e in Se(t))}function yo(e){var t=ro(e),n=Dn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var i=io(n);return!!i&&e===i[0]}(wn&&fo(new wn(new ArrayBuffer(1)))!=P||En&&fo(new En)!=_||Sn&&fo(Sn.resolve())!=S||kn&&fo(new kn)!=R||Rn&&fo(new Rn)!=C)&&(fo=function(e){var t=Ei(e),i=t==E?e.constructor:n,r=i?$o(i):"";if(r)switch(r){case An:return P;case Pn:return _;case jn:return S;case Ln:return R;case Nn:return C}return t});var _o=Pe?Js:mc;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Eo(e){return e==e&&!Qs(e)}function So(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in Se(i)))}}function ko(e,t,i){return t=gn(t===n?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=gn(n.length-t,0),s=ie(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=ie(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),St(e,this,a)}}function Ro(e,t){return t.length<2?e:_i(e,tr(t,0,-1))}function To(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oo=jo(Qi),Co=ut||function(e,t){return dt.setTimeout(e,t)},Ao=jo(Xi);function Po(e,t,n){var i=t+"";return Ao(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Rt(f,(function(n){var i="_."+n[0];t&n[1]&&!At(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(i),n)))}function jo(e){var t=0,i=0;return function(){var r=xn(),o=16-(r-i);if(i=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Lo(e,t){var i=-1,r=e.length,o=r-1;for(t=t===n?r:t;++i<t;){var s=Gi(i,o),a=e[s];e[s]=e[i],e[i]=a}return e.length=t,e}var No=function(e){var t=js(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(X,(function(e,n,i,r){t.push(i?r.replace(le,"$1"):n||e)})),t}));function Io(e){if("string"==typeof e||sa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $o(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Mo(e){if(e instanceof Un)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=Tr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Do=Ki((function(e,t){return Ws(e)?li(e,hi(t,1,Ws,!0)):[]})),Fo=Ki((function(e,t){var i=Ko(t);return Ws(i)&&(i=n),Ws(e)?li(e,hi(t,1,Ws,!0),so(i,2)):[]})),zo=Ki((function(e,t){var i=Ko(t);return Ws(i)&&(i=n),Ws(e)?li(e,hi(t,1,Ws,!0),n,i):[]}));function Bo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:da(n);return r<0&&(r=gn(i+r,0)),Ft(e,so(t,3),r)}function Uo(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==n&&(o=da(i),o=i<0?gn(r+o,0):vn(o,r-1)),Ft(e,so(t,3),o,!0)}function qo(e){return(null==e?0:e.length)?hi(e,1):[]}function Ho(e){return e&&e.length?e[0]:n}var Wo=Ki((function(e){var t=jt(e,hr);return t.length&&t[0]===e[0]?Ti(t):[]})),Go=Ki((function(e){var t=Ko(e),i=jt(e,hr);return t===Ko(i)?t=n:i.pop(),i.length&&i[0]===e[0]?Ti(i,so(t,2)):[]})),Vo=Ki((function(e){var t=Ko(e),i=jt(e,hr);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?Ti(i,n,t):[]}));function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Jo=Ki(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Hi(e,t):e}var Yo=eo((function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Wi(e,jt(t,(function(e){return vo(e,n)?+e:e})).sort(Sr)),i}));function Qo(e){return null==e?e:_n.call(e)}var Xo=Ki((function(e){return cr(hi(e,1,Ws,!0))})),es=Ki((function(e){var t=Ko(e);return Ws(t)&&(t=n),cr(hi(e,1,Ws,!0),so(t,2))})),ts=Ki((function(e){var t=Ko(e);return t="function"==typeof t?t:n,cr(hi(e,1,Ws,!0),n,t)}));function ns(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Ws(e))return t=gn(e.length,t),!0})),Kt(t,(function(t){return jt(e,Ht(t))}))}function is(e,t){if(!e||!e.length)return[];var i=ns(e);return null==t?i:jt(i,(function(e){return St(t,n,e)}))}var rs=Ki((function(e,t){return Ws(e)?li(e,t):[]})),os=Ki((function(e){return fr(Ct(e,Ws))})),ss=Ki((function(e){var t=Ko(e);return Ws(t)&&(t=n),fr(Ct(e,Ws),so(t,2))})),as=Ki((function(e){var t=Ko(e);return t="function"==typeof t?t:n,fr(Ct(e,Ws),n,t)})),cs=Ki(ns);var ls=Ki((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,is(e,i)}));function us(e){var t=Dn(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var ds=eo((function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,o=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&vo(i)?((r=r.slice(i,+i+(t?1:0))).__actions__.push({func:ps,args:[o],thisArg:n}),new Bn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var fs=Cr((function(e,t,n){Le.call(e,n)?++e[n]:ii(e,n,1)}));var ms=$r(Bo),hs=$r(Uo);function gs(e,t){return(Us(e)?Rt:ui)(e,so(t,3))}function vs(e,t){return(Us(e)?Tt:pi)(e,so(t,3))}var xs=Cr((function(e,t,n){Le.call(e,n)?e[n].push(t):ii(e,n,[t])}));var bs=Ki((function(e,t,n){var i=-1,r="function"==typeof t,o=Hs(e)?ie(e.length):[];return ui(e,(function(e){o[++i]=r?St(t,e,n):Oi(e,t,n)})),o})),ys=Cr((function(e,t,n){ii(e,n,t)}));function _s(e,t){return(Us(e)?jt:Mi)(e,so(t,3))}var ws=Cr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Es=Ki((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xo(e,t[0],t[1])?t=[]:n>2&&xo(t[0],t[1],t[2])&&(t=[t[0]]),Ui(e,hi(t,1),[])})),Ss=at||function(){return dt.Date.now()};function ks(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,Jr(e,a,n,n,n,n,t)}function Rs(e,t){var r;if("function"!=typeof t)throw new Te(i);return e=da(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ts=Ki((function(e,t,n){var i=1;if(n.length){var r=cn(n,oo(Ts));i|=s}return Jr(e,i,t,n,r)})),Os=Ki((function(e,t,n){var i=3;if(n.length){var r=cn(n,oo(Os));i|=s}return Jr(t,i,e,n,r)}));function Cs(e,t,r){var o,s,a,c,l,u,p=0,d=!1,f=!1,m=!0;if("function"!=typeof e)throw new Te(i);function h(t){var i=o,r=s;return o=s=n,p=t,c=e.apply(r,i)}function g(e){var i=e-u;return u===n||i>=t||i<0||f&&e-p>=a}function v(){var e=Ss();if(g(e))return x(e);l=Co(v,function(e){var n=t-(e-u);return f?vn(n,a-(e-p)):n}(e))}function x(e){return l=n,m&&o?h(e):(o=s=n,c)}function b(){var e=Ss(),i=g(e);if(o=arguments,s=this,u=e,i){if(l===n)return function(e){return p=e,l=Co(v,t),d?h(e):c}(u);if(f)return yr(l),l=Co(v,t),h(u)}return l===n&&(l=Co(v,t)),c}return t=ma(t)||0,Qs(r)&&(d=!!r.leading,a=(f="maxWait"in r)?gn(ma(r.maxWait)||0,t):a,m="trailing"in r?!!r.trailing:m),b.cancel=function(){l!==n&&yr(l),p=0,o=u=s=l=n},b.flush=function(){return l===n?c:x(Ss())},b}var As=Ki((function(e,t){return ci(e,1,t)})),Ps=Ki((function(e,t,n){return ci(e,ma(t)||0,n)}));function js(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(js.Cache||Wn),n}function Ls(e){if("function"!=typeof e)throw new Te(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}js.Cache=Wn;var Ns=xr((function(e,t){var n=(t=1==t.length&&Us(t[0])?jt(t[0],Zt(so())):jt(hi(t,1),Zt(so()))).length;return Ki((function(i){for(var r=-1,o=vn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return St(e,this,i)}))})),Is=Ki((function(e,t){var i=cn(t,oo(Is));return Jr(e,s,n,t,i)})),$s=Ki((function(e,t){var i=cn(t,oo($s));return Jr(e,64,n,t,i)})),Ms=eo((function(e,t){return Jr(e,c,n,n,n,t)}));function Ds(e,t){return e===t||e!=e&&t!=t}var Fs=Hr(Si),zs=Hr((function(e,t){return e>=t})),Bs=Ci(function(){return arguments}())?Ci:function(e){return Xs(e)&&Le.call(e,"callee")&&!Ge.call(e,"callee")},Us=ie.isArray,qs=xt?Zt(xt):function(e){return Xs(e)&&Ei(e)==A};function Hs(e){return null!=e&&Ys(e.length)&&!Js(e)}function Ws(e){return Xs(e)&&Hs(e)}var Gs=gt||mc,Vs=bt?Zt(bt):function(e){return Xs(e)&&Ei(e)==v};function Ks(e){if(!Xs(e))return!1;var t=Ei(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!na(e)}function Js(e){if(!Qs(e))return!1;var t=Ei(e);return t==b||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==da(e)}function Ys(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xs(e){return null!=e&&"object"==typeof e}var ea=yt?Zt(yt):function(e){return Xs(e)&&fo(e)==_};function ta(e){return"number"==typeof e||Xs(e)&&Ei(e)==w}function na(e){if(!Xs(e)||Ei(e)!=E)return!1;var t=He(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Me}var ia=_t?Zt(_t):function(e){return Xs(e)&&Ei(e)==k};var ra=wt?Zt(wt):function(e){return Xs(e)&&fo(e)==R};function oa(e){return"string"==typeof e||!Us(e)&&Xs(e)&&Ei(e)==T}function sa(e){return"symbol"==typeof e||Xs(e)&&Ei(e)==O}var aa=Et?Zt(Et):function(e){return Xs(e)&&Ys(e.length)&&!!ot[Ei(e)]};var ca=Hr($i),la=Hr((function(e,t){return e<=t}));function ua(e){if(!e)return[];if(Hs(e))return oa(e)?dn(e):Tr(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=fo(e);return(t==_?sn:t==R?ln:Da)(e)}function pa(e){return e?(e=ma(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function da(e){var t=pa(e),n=t%1;return t==t?n?t-n:t:0}function fa(e){return e?oi(da(e),0,d):0}function ma(e){if("number"==typeof e)return e;if(sa(e))return p;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=fe.test(e);return n||he.test(e)?lt(e.slice(2),n?2:8):de.test(e)?p:+e}function ha(e){return Or(e,Aa(e))}function ga(e){return null==e?"":ar(e)}var va=Ar((function(e,t){if(wo(t)||Hs(t))Or(t,Ca(t),e);else for(var n in t)Le.call(t,n)&&Xn(e,n,t[n])})),xa=Ar((function(e,t){Or(t,Aa(t),e)})),ba=Ar((function(e,t,n,i){Or(t,Aa(t),e,i)})),ya=Ar((function(e,t,n,i){Or(t,Ca(t),e,i)})),_a=eo(ri);var wa=Ki((function(e,t){e=Se(e);var i=-1,r=t.length,o=r>2?t[2]:n;for(o&&xo(t[0],t[1],o)&&(r=1);++i<r;)for(var s=t[i],a=Aa(s),c=-1,l=a.length;++c<l;){var u=a[c],p=e[u];(p===n||Ds(p,Ae[u])&&!Le.call(e,u))&&(e[u]=s[u])}return e})),Ea=Ki((function(e){return e.push(n,Yr),St(ja,n,e)}));function Sa(e,t,i){var r=null==e?n:_i(e,t);return r===n?i:r}function ka(e,t){return null!=e&&mo(e,t,Ri)}var Ra=Fr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=n}),Qa(tc)),Ta=Fr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),so),Oa=Ki(Oi);function Ca(e){return Hs(e)?Kn(e):Ni(e)}function Aa(e){return Hs(e)?Kn(e,!0):Ii(e)}var Pa=Ar((function(e,t,n){zi(e,t,n)})),ja=Ar((function(e,t,n,i){zi(e,t,n,i)})),La=eo((function(e,t){var n={};if(null==e)return n;var i=!1;t=jt(t,(function(t){return t=vr(t,e),i||(i=t.length>1),t})),Or(e,no(e),n),i&&(n=si(n,7,Qr));for(var r=t.length;r--;)lr(n,t[r]);return n}));var Na=eo((function(e,t){return null==e?{}:function(e,t){return qi(e,t,(function(t,n){return ka(e,n)}))}(e,t)}));function Ia(e,t){if(null==e)return{};var n=jt(no(e),(function(e){return[e]}));return t=so(t),qi(e,n,(function(e,n){return t(e,n[0])}))}var $a=Kr(Ca),Ma=Kr(Aa);function Da(e){return null==e?[]:Yt(e,Ca(e))}var Fa=Nr((function(e,t,n){return t=t.toLowerCase(),e+(n?za(t):t)}));function za(e){return Ka(ga(e).toLowerCase())}function Ba(e){return(e=ga(e))&&e.replace(ve,tn).replace(Qe,"")}var Ua=Nr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qa=Nr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ha=Lr("toLowerCase");var Wa=Nr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ga=Nr((function(e,t,n){return e+(n?" ":"")+Ka(t)}));var Va=Nr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ka=Lr("toUpperCase");function Ja(e,t,i){return e=ga(e),(t=i?n:t)===n?function(e){return nt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(ae)||[]}(e):e.match(t)||[]}var Za=Ki((function(e,t){try{return St(e,n,t)}catch(e){return Ks(e)?e:new _e(e)}})),Ya=eo((function(e,t){return Rt(t,(function(t){t=Io(t),ii(e,t,Ts(e[t],e))})),e}));function Qa(e){return function(){return e}}var Xa=Mr(),ec=Mr(!0);function tc(e){return e}function nc(e){return Li("function"==typeof e?e:si(e,1))}var ic=Ki((function(e,t){return function(n){return Oi(n,e,t)}})),rc=Ki((function(e,t){return function(n){return Oi(e,n,t)}}));function oc(e,t,n){var i=Ca(t),r=yi(t,i);null!=n||Qs(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=yi(t,Ca(t)));var o=!(Qs(n)&&"chain"in n&&!n.chain),s=Js(e);return Rt(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Tr(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Lt([this.value()],arguments))})})),e}function sc(){}var ac=Br(jt),cc=Br(Ot),lc=Br($t);function uc(e){return bo(e)?Ht(Io(e)):function(e){return function(t){return _i(t,e)}}(e)}var pc=qr(),dc=qr(!0);function fc(){return[]}function mc(){return!1}var hc=zr((function(e,t){return e+t}),0),gc=Gr("ceil"),vc=zr((function(e,t){return e/t}),1),xc=Gr("floor");var bc,yc=zr((function(e,t){return e*t}),1),_c=Gr("round"),wc=zr((function(e,t){return e-t}),0);return Dn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=da(e),function(){if(--e<1)return t.apply(this,arguments)}},Dn.ary=ks,Dn.assign=va,Dn.assignIn=xa,Dn.assignInWith=ba,Dn.assignWith=ya,Dn.at=_a,Dn.before=Rs,Dn.bind=Ts,Dn.bindAll=Ya,Dn.bindKey=Os,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Us(e)?e:[e]},Dn.chain=us,Dn.chunk=function(e,t,i){t=(i?xo(e,t,i):t===n)?1:gn(da(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,a=ie(pt(r/t));o<r;)a[s++]=tr(e,o,o+=t);return a},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Lt(Us(n)?Tr(n):[n],hi(t,1))},Dn.cond=function(e){var t=null==e?0:e.length,n=so();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Te(i);return[n(e[0]),e[1]]})):[],Ki((function(n){for(var i=-1;++i<t;){var r=e[i];if(St(r[0],this,n))return St(r[1],this,n)}}))},Dn.conforms=function(e){return function(e){var t=Ca(e);return function(n){return ai(n,e,t)}}(si(e,1))},Dn.constant=Qa,Dn.countBy=fs,Dn.create=function(e,t){var n=Fn(e);return null==t?n:ni(n,t)},Dn.curry=function e(t,i,r){var o=Jr(t,8,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},Dn.curryRight=function e(t,i,r){var o=Jr(t,16,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},Dn.debounce=Cs,Dn.defaults=wa,Dn.defaultsDeep=Ea,Dn.defer=As,Dn.delay=Ps,Dn.difference=Do,Dn.differenceBy=Fo,Dn.differenceWith=zo,Dn.drop=function(e,t,i){var r=null==e?0:e.length;return r?tr(e,(t=i||t===n?1:da(t))<0?0:t,r):[]},Dn.dropRight=function(e,t,i){var r=null==e?0:e.length;return r?tr(e,0,(t=r-(t=i||t===n?1:da(t)))<0?0:t):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?pr(e,so(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?pr(e,so(t,3),!0):[]},Dn.fill=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&xo(e,t,i)&&(i=0,r=o),function(e,t,i,r){var o=e.length;for((i=da(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:da(r))<0&&(r+=o),r=i>r?0:fa(r);i<r;)e[i++]=t;return e}(e,t,i,r)):[]},Dn.filter=function(e,t){return(Us(e)?Ct:mi)(e,so(t,3))},Dn.flatMap=function(e,t){return hi(_s(e,t),1)},Dn.flatMapDeep=function(e,t){return hi(_s(e,t),l)},Dn.flatMapDepth=function(e,t,i){return i=i===n?1:da(i),hi(_s(e,t),i)},Dn.flatten=qo,Dn.flattenDeep=function(e){return(null==e?0:e.length)?hi(e,l):[]},Dn.flattenDepth=function(e,t){return(null==e?0:e.length)?hi(e,t=t===n?1:da(t)):[]},Dn.flip=function(e){return Jr(e,512)},Dn.flow=Xa,Dn.flowRight=ec,Dn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},Dn.functions=function(e){return null==e?[]:yi(e,Ca(e))},Dn.functionsIn=function(e){return null==e?[]:yi(e,Aa(e))},Dn.groupBy=xs,Dn.initial=function(e){return(null==e?0:e.length)?tr(e,0,-1):[]},Dn.intersection=Wo,Dn.intersectionBy=Go,Dn.intersectionWith=Vo,Dn.invert=Ra,Dn.invertBy=Ta,Dn.invokeMap=bs,Dn.iteratee=nc,Dn.keyBy=ys,Dn.keys=Ca,Dn.keysIn=Aa,Dn.map=_s,Dn.mapKeys=function(e,t){var n={};return t=so(t,3),xi(e,(function(e,i,r){ii(n,t(e,i,r),e)})),n},Dn.mapValues=function(e,t){var n={};return t=so(t,3),xi(e,(function(e,i,r){ii(n,i,t(e,i,r))})),n},Dn.matches=function(e){return Di(si(e,1))},Dn.matchesProperty=function(e,t){return Fi(e,si(t,1))},Dn.memoize=js,Dn.merge=Pa,Dn.mergeWith=ja,Dn.method=ic,Dn.methodOf=rc,Dn.mixin=oc,Dn.negate=Ls,Dn.nthArg=function(e){return e=da(e),Ki((function(t){return Bi(t,e)}))},Dn.omit=La,Dn.omitBy=function(e,t){return Ia(e,Ls(so(t)))},Dn.once=function(e){return Rs(2,e)},Dn.orderBy=function(e,t,i,r){return null==e?[]:(Us(t)||(t=null==t?[]:[t]),Us(i=r?n:i)||(i=null==i?[]:[i]),Ui(e,t,i))},Dn.over=ac,Dn.overArgs=Ns,Dn.overEvery=cc,Dn.overSome=lc,Dn.partial=Is,Dn.partialRight=$s,Dn.partition=ws,Dn.pick=Na,Dn.pickBy=Ia,Dn.property=uc,Dn.propertyOf=function(e){return function(t){return null==e?n:_i(e,t)}},Dn.pull=Jo,Dn.pullAll=Zo,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,so(n,2)):e},Dn.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Hi(e,t,n,i):e},Dn.pullAt=Yo,Dn.range=pc,Dn.rangeRight=dc,Dn.rearg=Ms,Dn.reject=function(e,t){return(Us(e)?Ct:mi)(e,Ls(so(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=so(t,3);++i<o;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Wi(e,r),n},Dn.rest=function(e,t){if("function"!=typeof e)throw new Te(i);return Ki(e,t=t===n?t:da(t))},Dn.reverse=Qo,Dn.sampleSize=function(e,t,i){return t=(i?xo(e,t,i):t===n)?1:da(t),(Us(e)?Zn:Zi)(e,t)},Dn.set=function(e,t,n){return null==e?e:Yi(e,t,n)},Dn.setWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Yi(e,t,i,r)},Dn.shuffle=function(e){return(Us(e)?Yn:er)(e)},Dn.slice=function(e,t,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&xo(e,t,i)?(t=0,i=r):(t=null==t?0:da(t),i=i===n?r:da(i)),tr(e,t,i)):[]},Dn.sortBy=Es,Dn.sortedUniq=function(e){return e&&e.length?or(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?or(e,so(t,2)):[]},Dn.split=function(e,t,i){return i&&"number"!=typeof i&&xo(e,t,i)&&(t=i=n),(i=i===n?d:i>>>0)?(e=ga(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=ar(t))&&on(e)?br(dn(e),0,i):e.split(t,i):[]},Dn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:gn(da(t),0),Ki((function(n){var i=n[t],r=br(n,0,t);return i&&Lt(r,i),St(e,this,r)}))},Dn.tail=function(e){var t=null==e?0:e.length;return t?tr(e,1,t):[]},Dn.take=function(e,t,i){return e&&e.length?tr(e,0,(t=i||t===n?1:da(t))<0?0:t):[]},Dn.takeRight=function(e,t,i){var r=null==e?0:e.length;return r?tr(e,(t=r-(t=i||t===n?1:da(t)))<0?0:t,r):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?pr(e,so(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?pr(e,so(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return Qs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Cs(e,t,{leading:r,maxWait:t,trailing:o})},Dn.thru=ps,Dn.toArray=ua,Dn.toPairs=$a,Dn.toPairsIn=Ma,Dn.toPath=function(e){return Us(e)?jt(e,Io):sa(e)?[e]:Tr(No(ga(e)))},Dn.toPlainObject=ha,Dn.transform=function(e,t,n){var i=Us(e),r=i||Gs(e)||aa(e);if(t=so(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:Qs(e)&&Js(o)?Fn(He(e)):{}}return(r?Rt:xi)(e,(function(e,i,r){return t(n,e,i,r)})),n},Dn.unary=function(e){return ks(e,1)},Dn.union=Xo,Dn.unionBy=es,Dn.unionWith=ts,Dn.uniq=function(e){return e&&e.length?cr(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?cr(e,so(t,2)):[]},Dn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?cr(e,n,t):[]},Dn.unset=function(e,t){return null==e||lr(e,t)},Dn.unzip=ns,Dn.unzipWith=is,Dn.update=function(e,t,n){return null==e?e:ur(e,t,gr(n))},Dn.updateWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:ur(e,t,gr(i),r)},Dn.values=Da,Dn.valuesIn=function(e){return null==e?[]:Yt(e,Aa(e))},Dn.without=rs,Dn.words=Ja,Dn.wrap=function(e,t){return Is(gr(t),e)},Dn.xor=os,Dn.xorBy=ss,Dn.xorWith=as,Dn.zip=cs,Dn.zipObject=function(e,t){return mr(e||[],t||[],Xn)},Dn.zipObjectDeep=function(e,t){return mr(e||[],t||[],Yi)},Dn.zipWith=ls,Dn.entries=$a,Dn.entriesIn=Ma,Dn.extend=xa,Dn.extendWith=ba,oc(Dn,Dn),Dn.add=hc,Dn.attempt=Za,Dn.camelCase=Fa,Dn.capitalize=za,Dn.ceil=gc,Dn.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=ma(i))==i?i:0),t!==n&&(t=(t=ma(t))==t?t:0),oi(ma(e),t,i)},Dn.clone=function(e){return si(e,4)},Dn.cloneDeep=function(e){return si(e,5)},Dn.cloneDeepWith=function(e,t){return si(e,5,t="function"==typeof t?t:n)},Dn.cloneWith=function(e,t){return si(e,4,t="function"==typeof t?t:n)},Dn.conformsTo=function(e,t){return null==t||ai(e,t,Ca(t))},Dn.deburr=Ba,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=vc,Dn.endsWith=function(e,t,i){e=ga(e),t=ar(t);var r=e.length,o=i=i===n?r:oi(da(i),0,r);return(i-=t.length)>=0&&e.slice(i,o)==t},Dn.eq=Ds,Dn.escape=function(e){return(e=ga(e))&&V.test(e)?e.replace(W,nn):e},Dn.escapeRegExp=function(e){return(e=ga(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Dn.every=function(e,t,i){var r=Us(e)?Ot:di;return i&&xo(e,t,i)&&(t=n),r(e,so(t,3))},Dn.find=ms,Dn.findIndex=Bo,Dn.findKey=function(e,t){return Dt(e,so(t,3),xi)},Dn.findLast=hs,Dn.findLastIndex=Uo,Dn.findLastKey=function(e,t){return Dt(e,so(t,3),bi)},Dn.floor=xc,Dn.forEach=gs,Dn.forEachRight=vs,Dn.forIn=function(e,t){return null==e?e:gi(e,so(t,3),Aa)},Dn.forInRight=function(e,t){return null==e?e:vi(e,so(t,3),Aa)},Dn.forOwn=function(e,t){return e&&xi(e,so(t,3))},Dn.forOwnRight=function(e,t){return e&&bi(e,so(t,3))},Dn.get=Sa,Dn.gt=Fs,Dn.gte=zs,Dn.has=function(e,t){return null!=e&&mo(e,t,ki)},Dn.hasIn=ka,Dn.head=Ho,Dn.identity=tc,Dn.includes=function(e,t,n,i){e=Hs(e)?e:Da(e),n=n&&!i?da(n):0;var r=e.length;return n<0&&(n=gn(r+n,0)),oa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&zt(e,t,n)>-1},Dn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:da(n);return r<0&&(r=gn(i+r,0)),zt(e,t,r)},Dn.inRange=function(e,t,i){return t=pa(t),i===n?(i=t,t=0):i=pa(i),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ma(e),t,i)},Dn.invoke=Oa,Dn.isArguments=Bs,Dn.isArray=Us,Dn.isArrayBuffer=qs,Dn.isArrayLike=Hs,Dn.isArrayLikeObject=Ws,Dn.isBoolean=function(e){return!0===e||!1===e||Xs(e)&&Ei(e)==g},Dn.isBuffer=Gs,Dn.isDate=Vs,Dn.isElement=function(e){return Xs(e)&&1===e.nodeType&&!na(e)},Dn.isEmpty=function(e){if(null==e)return!0;if(Hs(e)&&(Us(e)||"string"==typeof e||"function"==typeof e.splice||Gs(e)||aa(e)||Bs(e)))return!e.length;var t=fo(e);if(t==_||t==R)return!e.size;if(wo(e))return!Ni(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return Ai(e,t)},Dn.isEqualWith=function(e,t,i){var r=(i="function"==typeof i?i:n)?i(e,t):n;return r===n?Ai(e,t,n,i):!!r},Dn.isError=Ks,Dn.isFinite=function(e){return"number"==typeof e&&vt(e)},Dn.isFunction=Js,Dn.isInteger=Zs,Dn.isLength=Ys,Dn.isMap=ea,Dn.isMatch=function(e,t){return e===t||Pi(e,t,co(t))},Dn.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,Pi(e,t,co(t),i)},Dn.isNaN=function(e){return ta(e)&&e!=+e},Dn.isNative=function(e){if(_o(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ji(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=ta,Dn.isObject=Qs,Dn.isObjectLike=Xs,Dn.isPlainObject=na,Dn.isRegExp=ia,Dn.isSafeInteger=function(e){return Zs(e)&&e>=-9007199254740991&&e<=u},Dn.isSet=ra,Dn.isString=oa,Dn.isSymbol=sa,Dn.isTypedArray=aa,Dn.isUndefined=function(e){return e===n},Dn.isWeakMap=function(e){return Xs(e)&&fo(e)==C},Dn.isWeakSet=function(e){return Xs(e)&&"[object WeakSet]"==Ei(e)},Dn.join=function(e,t){return null==e?"":Mt.call(e,t)},Dn.kebabCase=Ua,Dn.last=Ko,Dn.lastIndexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==n&&(o=(o=da(i))<0?gn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):Ft(e,Ut,o,!0)},Dn.lowerCase=qa,Dn.lowerFirst=Ha,Dn.lt=ca,Dn.lte=la,Dn.max=function(e){return e&&e.length?fi(e,tc,Si):n},Dn.maxBy=function(e,t){return e&&e.length?fi(e,so(t,2),Si):n},Dn.mean=function(e){return qt(e,tc)},Dn.meanBy=function(e,t){return qt(e,so(t,2))},Dn.min=function(e){return e&&e.length?fi(e,tc,$i):n},Dn.minBy=function(e,t){return e&&e.length?fi(e,so(t,2),$i):n},Dn.stubArray=fc,Dn.stubFalse=mc,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=yc,Dn.nth=function(e,t){return e&&e.length?Bi(e,da(t)):n},Dn.noConflict=function(){return dt._===this&&(dt._=De),this},Dn.noop=sc,Dn.now=Ss,Dn.pad=function(e,t,n){e=ga(e);var i=(t=da(t))?pn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Ur(ft(r),n)+e+Ur(pt(r),n)},Dn.padEnd=function(e,t,n){e=ga(e);var i=(t=da(t))?pn(e):0;return t&&i<t?e+Ur(t-i,n):e},Dn.padStart=function(e,t,n){e=ga(e);var i=(t=da(t))?pn(e):0;return t&&i<t?Ur(t-i,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ga(e).replace(ne,""),t||0)},Dn.random=function(e,t,i){if(i&&"boolean"!=typeof i&&xo(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=pa(e),t===n?(t=e,e=0):t=pa(t)),e>t){var r=e;e=t,t=r}if(i||e%1||t%1){var o=yn();return vn(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Gi(e,t)},Dn.reduce=function(e,t,n){var i=Us(e)?Nt:Gt,r=arguments.length<3;return i(e,so(t,4),n,r,ui)},Dn.reduceRight=function(e,t,n){var i=Us(e)?It:Gt,r=arguments.length<3;return i(e,so(t,4),n,r,pi)},Dn.repeat=function(e,t,i){return t=(i?xo(e,t,i):t===n)?1:da(t),Vi(ga(e),t)},Dn.replace=function(){var e=arguments,t=ga(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(e,t,i){var r=-1,o=(t=vr(t,e)).length;for(o||(o=1,e=n);++r<o;){var s=null==e?n:e[Io(t[r])];s===n&&(r=o,s=i),e=Js(s)?s.call(e):s}return e},Dn.round=_c,Dn.runInContext=e,Dn.sample=function(e){return(Us(e)?Jn:Ji)(e)},Dn.size=function(e){if(null==e)return 0;if(Hs(e))return oa(e)?pn(e):e.length;var t=fo(e);return t==_||t==R?e.size:Ni(e).length},Dn.snakeCase=Wa,Dn.some=function(e,t,i){var r=Us(e)?$t:nr;return i&&xo(e,t,i)&&(t=n),r(e,so(t,3))},Dn.sortedIndex=function(e,t){return ir(e,t)},Dn.sortedIndexBy=function(e,t,n){return rr(e,t,so(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=ir(e,t);if(i<n&&Ds(e[i],t))return i}return-1},Dn.sortedLastIndex=function(e,t){return ir(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return rr(e,t,so(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ir(e,t,!0)-1;if(Ds(e[n],t))return n}return-1},Dn.startCase=Ga,Dn.startsWith=function(e,t,n){return e=ga(e),n=null==n?0:oi(da(n),0,e.length),t=ar(t),e.slice(n,n+t.length)==t},Dn.subtract=wc,Dn.sum=function(e){return e&&e.length?Vt(e,tc):0},Dn.sumBy=function(e,t){return e&&e.length?Vt(e,so(t,2)):0},Dn.template=function(e,t,i){var r=Dn.templateSettings;i&&xo(e,t,i)&&(t=n),e=ga(e),t=ba({},t,r,Zr);var o,s,a=ba({},t.imports,r.imports,Zr),c=Ca(a),l=Yt(a,c),u=0,p=t.interpolate||xe,d="__p += '",f=ke((t.escape||xe).source+"|"+p.source+"|"+(p===Z?ue:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),m="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,(function(t,n,i,r,a,c){return i||(i=r),d+=e.slice(u,c).replace(be,rn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var h=Le.call(t,"variable")&&t.variable;if(h){if(ce.test(h))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(B,""):d).replace(U,"$1").replace(q,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Za((function(){return we(c,m+"return "+d).apply(n,l)}));if(g.source=d,Ks(g))throw g;return g},Dn.times=function(e,t){if((e=da(e))<1||e>u)return[];var n=d,i=vn(e,d);t=so(t),e-=d;for(var r=Kt(i,t);++n<e;)t(n);return r},Dn.toFinite=pa,Dn.toInteger=da,Dn.toLength=fa,Dn.toLower=function(e){return ga(e).toLowerCase()},Dn.toNumber=ma,Dn.toSafeInteger=function(e){return e?oi(da(e),-9007199254740991,u):0===e?e:0},Dn.toString=ga,Dn.toUpper=function(e){return ga(e).toUpperCase()},Dn.trim=function(e,t,i){if((e=ga(e))&&(i||t===n))return Jt(e);if(!e||!(t=ar(t)))return e;var r=dn(e),o=dn(t);return br(r,Xt(r,o),en(r,o)+1).join("")},Dn.trimEnd=function(e,t,i){if((e=ga(e))&&(i||t===n))return e.slice(0,fn(e)+1);if(!e||!(t=ar(t)))return e;var r=dn(e);return br(r,0,en(r,dn(t))+1).join("")},Dn.trimStart=function(e,t,i){if((e=ga(e))&&(i||t===n))return e.replace(ne,"");if(!e||!(t=ar(t)))return e;var r=dn(e);return br(r,Xt(r,dn(t))).join("")},Dn.truncate=function(e,t){var i=30,r="...";if(Qs(t)){var o="separator"in t?t.separator:o;i="length"in t?da(t.length):i,r="omission"in t?ar(t.omission):r}var s=(e=ga(e)).length;if(on(e)){var a=dn(e);s=a.length}if(i>=s)return e;var c=i-pn(r);if(c<1)return r;var l=a?br(a,0,c).join(""):e.slice(0,c);if(o===n)return l+r;if(a&&(c+=l.length-c),ia(o)){if(e.slice(c).search(o)){var u,p=l;for(o.global||(o=ke(o.source,ga(pe.exec(o))+"g")),o.lastIndex=0;u=o.exec(p);)var d=u.index;l=l.slice(0,d===n?c:d)}}else if(e.indexOf(ar(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r},Dn.unescape=function(e){return(e=ga(e))&&G.test(e)?e.replace(H,mn):e},Dn.uniqueId=function(e){var t=++Ne;return ga(e)+t},Dn.upperCase=Va,Dn.upperFirst=Ka,Dn.each=gs,Dn.eachRight=vs,Dn.first=Ho,oc(Dn,(bc={},xi(Dn,(function(e,t){Le.call(Dn.prototype,t)||(bc[t]=e)})),bc),{chain:!1}),Dn.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dn[e].placeholder=Dn})),Rt(["drop","take"],(function(e,t){Un.prototype[e]=function(i){i=i===n?1:gn(da(i),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=vn(i,r.__takeCount__):r.__views__.push({size:vn(i,d),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:so(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Rt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(tc)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Ki((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Oi(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Ls(so(e)))},Un.prototype.slice=function(e,t){e=da(e);var i=this;return i.__filtered__&&(e>0||t<0)?new Un(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=da(t))<0?i.dropRight(-t):i.take(t-e)),i)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(d)},xi(Un.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Dn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Dn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Un,l=a[0],u=c||Us(t),p=function(e){var t=o.apply(Dn,Lt([e],a));return r&&d?t[0]:t};u&&i&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,m=s&&!d,h=c&&!f;if(!s&&u){t=h?t:new Un(this);var g=e.apply(t,a);return g.__actions__.push({func:ps,args:[p],thisArg:n}),new Bn(g,d)}return m&&h?e.apply(this,a):(g=this.thru(p),m?r?g.value()[0]:g.value():g)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Us(r)?r:[],e)}return this[n]((function(n){return t.apply(Us(n)?n:[],e)}))}})),xi(Un.prototype,(function(e,t){var n=Dn[t];if(n){var i=n.name+"";Le.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[Dr(n,2).name]=[{name:"wrapper",func:n}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Tr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Tr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Tr(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Us(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=vn(t,e+s);break;case"takeRight":e=gn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=o.start,a=o.end,c=a-s,l=i?a:s-1,u=this.__iteratees__,p=u.length,d=0,f=vn(c,this.__takeCount__);if(!n||!i&&r==c&&f==c)return dr(e,this.__actions__);var m=[];e:for(;c--&&d<f;){for(var h=-1,g=e[l+=t];++h<p;){var v=u[h],x=v.iteratee,b=v.type,y=x(g);if(2==b)g=y;else if(!y){if(1==b)continue e;break e}}m[d++]=g}return m},Dn.prototype.at=ds,Dn.prototype.chain=function(){return us(this)},Dn.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Dn.prototype.next=function(){this.__values__===n&&(this.__values__=ua(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Dn.prototype.plant=function(e){for(var t,i=this;i instanceof zn;){var r=Mo(i);r.__index__=0,r.__values__=n,t?o.__wrapped__=r:t=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,t},Dn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ps,args:[Qo],thisArg:n}),new Bn(t,this.__chain__)}return this.thru(Qo)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return dr(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Je&&(Dn.prototype[Je]=function(){return this}),Dn}();mt?((mt.exports=hn)._=hn,ft._=hn):dt._=hn}).call(ze)}(y_,y_.exports);var __=y_.exports;const w_=function({onlyFirst:e=!1}={}){const t=["[\\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=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();class E_ extends N{isListening=!0;buffer="";fullOutput="";lastRetrievedIndex=0;isHot=!1;hotTimer=null;childProcess;constructor(){super(),this.isListening=!0,this.buffer="",this.fullOutput="",this.lastRetrievedIndex=0,this.isHot=!1,this.hotTimer=null,this.childProcess=null}async run(e,t={}){const{cwd:n=process.cwd(),shell:i=!0,env:r=process.env}=t;g_(`Running command: ${e}`),g_(`Working directory: ${n}`);try{const t="win32"===process.platform,i=t?"cmd":"bash",o=t?["/c",e]:["-c",e];this.childProcess=f(i,o,{cwd:n,env:r,shell:!1,stdio:["pipe","pipe","pipe"]});let s=!1;this.childProcess.stdout.on("data",(e=>{this.handleOutput(e.toString(),s),s||(s=!0)})),this.childProcess.stderr.on("data",(e=>{this.handleOutput(e.toString(),s),s||(s=!0)})),this.childProcess.on("close",(e=>{this.emitRemainingBufferIfListening(),this.hotTimer&&clearTimeout(this.hotTimer),this.isHot=!1,this.emit("completed",e),this.emit("continue")})),this.childProcess.on("error",(e=>{console.error("Process error:",e),this.emit("error",e)}))}catch(e){console.error("Failed to run command:",e),this.emit("error",e)}}handleOutput(e,t){e=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(w_,"")}(e),this.isHot=!0,this.hotTimer&&clearTimeout(this.hotTimer);const n=["compiling","building","bundling","transpiling","generating","starting"].some((t=>e.toLowerCase().includes(t.toLowerCase())))&&!["compiled","success","finish","complete","succeed","done","end","stop","exit","terminate","error","fail"].some((t=>e.toLowerCase().includes(t.toLowerCase())));this.hotTimer=setTimeout((()=>{this.isHot=!1}),n?15e3:2e3),t||this.fullOutput||!e||this.emit("line",""),this.fullOutput+=e,this.isListening&&(this.emitIfEol(e),this.lastRetrievedIndex=this.fullOutput.length-this.buffer.length)}emitIfEol(e){let t;for(this.buffer+=e;-1!==(t=this.buffer.indexOf("\n"));){const e=this.buffer.slice(0,t).trimEnd();this.emit("line",e),this.buffer=this.buffer.slice(t+1)}}emitRemainingBufferIfListening(){if(this.buffer&&this.isListening){const e=this.removeLastLineArtifacts(this.buffer);e&&this.emit("line",e),this.buffer="",this.lastRetrievedIndex=this.fullOutput.length}}continue(){this.emitRemainingBufferIfListening(),this.isListening=!1,this.removeAllListeners("line"),this.emit("continue")}getUnretrievedOutput(){const e=this.fullOutput.slice(this.lastRetrievedIndex);return this.lastRetrievedIndex=this.fullOutput.length,this.removeLastLineArtifacts(e)}removeLastLineArtifacts(e){const t=e.trimEnd().split("\n");if(t.length>0){const e=t[t.length-1];t[t.length-1]=e.replace(/[%$#>]\s*$/,"")}return t.join("\n").trimEnd()}kill(e="SIGTERM"){this.childProcess&&!this.childProcess.killed&&this.childProcess.kill(e)}}class S_{id;busy;cwd;lastCommand;constructor(e,t){this.id=e,this.cwd=t,this.busy=!1,this.lastCommand=""}}class k_{static terminals=new Map;static nextId=1;static createTerminal(e){const t=this.nextId++,n=new S_(t,e);return this.terminals.set(t,n),g_(`Created terminal ${t} with cwd: ${e}`),n}static getTerminal(e){return this.terminals.get(e)}static getAllTerminals(){return Array.from(this.terminals.values())}static removeTerminal(e){const t=this.terminals.delete(e);return t&&g_(`Removed terminal ${e}`),t}}class R_{terminalIds=new Set;processes=new Map;constructor(){this.terminalIds=new Set,this.processes=new Map}runCommand(e,t){e.busy=!0,e.lastCommand=t;const n=function(e,t){const n=new E_,i=new Promise(((e,t)=>{n.once("continue",(()=>e())),n.once("error",t)})),r=Promise.prototype,o=["then","catch","finally"].map((e=>[e,Object.getOwnPropertyDescriptor(r,e)]));for(const[e,t]of o)if(t){const r=t.value.bind(i);Object.defineProperty(n,e,{...t,value:r})}return n.run(e,t),n}(t,{cwd:e.cwd});return this.processes.set(e.id,n),n.once("completed",(()=>{e.busy=!1})),n.once("error",(t=>{console.error(`Error in terminal ${e.id}:`,t),e.busy=!1})),n}async getOrCreateTerminal(e){const t=k_.getAllTerminals().filter((e=>!e.busy)).find((t=>this.arePathsEqual(e,t.cwd)));if(g_(`cwd=${e}, availableTerminal=${t?t.id:"none"}`),t)return this.terminalIds.add(t.id),t;const n=k_.createTerminal(e);return this.terminalIds.add(n.id),n}arePathsEqual(e,t){return c.resolve(e)===c.resolve(t)}getTerminals(e){return Array.from(this.terminalIds).map((e=>k_.getTerminal(e))).filter((t=>void 0!==t&&t.busy===e)).map((e=>({id:e.id,lastCommand:e.lastCommand})))}getUnretrievedOutput(e){if(!this.terminalIds.has(e))return"";const t=this.processes.get(e);return t?t.getUnretrievedOutput():""}isProcessHot(e){const t=this.processes.get(e);return!!t&&t.isHot}dispose(){for(const[e,t]of this.processes)t&&t.kill&&t.kill();this.terminalIds.clear(),this.processes.clear()}}var T_;!function(e){e.EDIT="edit",e.PREVIEW="preview"}(T_||(T_={}));const O_=e=>new Promise((t=>setTimeout(t,e)));class C_{kernelProvider;constructor(e){this.kernelProvider=e}start(){const e=e=>this.kernelProvider.sendRequest("VIRTUAL_EDITOR_EVENT",e);this.kernelProvider.onRequest("VIRTUAL_EDITOR_EVENT",(async t=>{const i=t.action,{uuid:o}=t.payload;switch(i){case"getActiveDocument":return e({uuid:o,existed:!1,absolutePath:"",content:""});case"openDocument":return e({uuid:o});case"getDocument":try{if(n(t.payload.absolutePath)){const n=await g(t.payload.absolutePath,"utf-8");return e({existed:!0,uuid:o,content:n,isDirty:!1})}return e({existed:!1,uuid:o,content:""})}catch{return e({existed:!1,uuid:o,content:""})}case"closeDocument":return e({uuid:o});case"saveDocumentWithReplaceContent":{const{absolutePath:n,content:i,source:r=""}=t.payload;return await b_(n,i),e({uuid:o})}case"closeVirtualDiffDocument":return e({uuid:o});case"openVirtualDiffDocument":{const{content:i,modified:s,absolutePath:a,elementId:c,conversationId:l,acceptable:u,stream:p,action:d}=t.payload;if(d===T_.EDIT){if(n(a))await v(a,s,"utf8");else{const e=r.dirname(a);await x(e,{recursive:!0}),await v(a,s,"utf8")}return g_(`File updated: ${a}`),e({uuid:o})}if(!i){const e=`${a}.modified.tmp`;return await v(e,s,"utf8"),void g_(`Modified content saved to: ${e}`)}if("string"==typeof i){const e=`${a}.original.tmp`;await v(e,i,"utf8")}if("string"==typeof s){const e=`${a}.modified.tmp`;await v(e,s,"utf8")}return g_(`Diff prepared for: ${r.basename(a)}`),g_(`Original content length: ${i?.length||0}`),g_(`Modified content length: ${s?.length||0}`),e({uuid:o})}case"getVirtualDiffDocument":{const{absolutePath:n}=t.payload;try{const t=await g(n);return e({uuid:o,existed:!0,content:t})}catch(t){return e({uuid:o,existed:!1,content:""})}}case"replaceVirtualDiffModifiedDocument":{const{stream:n,absolutePath:i,conversationId:r,content:s,elementId:a,scrollToLine:c}=t.payload,l=new URLSearchParams;return a&&l.set("elementId",a||""),r&&l.set("conversationId",r||""),l.toString(),e({uuid:o})}case"endConversationEditSession":{const{conversationId:n}=t.payload;return e({uuid:o})}case"startConversationEditSession":{const{conversationId:n}=t.payload;return e({uuid:o})}case"executeTerminalShell":{const n=process.cwd(),{cmd:i,duration:r=1e3,cwd:o=n,run:s=!0,enableStreamOutput:a=!1,uuid:c=Math.random().toString(36).substr(2,9)}=t.payload||t;if(!s)return g_(`Command to copy: ${i}`),void g_(`Working directory: ${o}`);try{const t=new R_,n=await t.getOrCreateTerminal(o);g_(`Using terminal ${n.id}`);const s=t.runCommand(n,i),{onUpdate:l,clear:u}=function(e,t){let n=null;const i=__.throttle(e,t);return{onUpdate:e=>{n&&(clearTimeout(n),n=null),i(e),n=setTimeout((()=>i(e)),t)},clear:()=>{n&&(clearTimeout(n),n=null)}}}(e,1e3);let p="";s.on("line",(e=>{p+=e+"\n",g_("Output:",e),a&&l({uuid:c,completed:!1,output:p.trim(),isEnd:!1})}));let d=!1;return s.once("completed",(e=>{d=!0,g_(`Command completed with exit code: ${e}`)})),await Promise.race([s,O_(r-1e3)]),u(),await O_(50),e({uuid:c,completed:d,output:p.trim()})}catch(t){const n=t instanceof Error?t.message:`${t}`;return console.error("executeTerminalShell failed, reason:",n),e({uuid:c,failed:!0,completed:!1,output:n})}}case"executeDebugCommand":return e({status:"error",uuid:o});case"getLatestOutputFromActiveTerminal":return e({output:"",uuid:o});case"openUrlInEditorWebview":return e({uuid:o});case"saveDocumentWithReplaceContentAndOpen":{const{absolutePath:n,content:i,source:r}=t.payload;return await b_(n,i),e({uuid:o})}case"deleteDocument":{const{absolutePath:n}=t.payload;return await h(n),e({uuid:o})}case"refreshProjectTree":case"getDocumentDiagnostics":return e({uuid:o});default:throw new Error(i)}}))}}class A_{url="https://comate.baidu.com/api/ok";async ping(e={}){const{timeout:t=5e3,retries:n=3,retryDelay:i=1e3,proxy:r}=e;for(let e=1;e<=n;e++){const o=await this.singlePing(t,e,r);if(o.success||e===n)return o;e<n&&await this.delay(i)}throw new Error("All ping attempts failed")}getProxyConfig(e){const t=e||process.env.http_proxy||process.env.HTTP_PROXY||process.env.https_proxy||process.env.HTTPS_PROXY;if(!t)return{proxy:null};try{new T(t);return{proxy:t,agent:new S.Agent({keepAlive:!0,maxSockets:10})}}catch(e){return console.warn(`Invalid proxy URL: ${t}`),{proxy:null}}}async singlePing(e,t,n){const i=Date.now(),{proxy:r,agent:o}=this.getProxyConfig(n);return new Promise((n=>{let s;if(r){const o=new T(r),a=new T(this.url),c={hostname:o.hostname,port:o.port||("https:"===o.protocol?443:80),path:this.url,method:"GET",timeout:e,headers:{Host:a.hostname,"User-Agent":"Comate-Ping/1.0"}};if(o.username&&o.password){const e=Buffer.from(`${o.username}:${o.password}`).toString("base64");c.headers["Proxy-Authorization"]=`Basic ${e}`}s=S.request(c,(e=>{const o=Date.now()-i;n({success:200===e.statusCode,statusCode:e.statusCode,responseTime:o,attempt:t,timestamp:(new Date).toISOString(),proxy:r})}))}else s=k.request(this.url,{method:"GET",timeout:e,agent:o},(e=>{const r=Date.now()-i;n({success:200===e.statusCode,statusCode:e.statusCode,responseTime:r,attempt:t,timestamp:(new Date).toISOString()})}));s.on("error",(e=>{const o=Date.now()-i;n({success:!1,responseTime:o,error:e.message,attempt:t,timestamp:(new Date).toISOString(),proxy:r||void 0})})),s.on("timeout",(()=>{s.destroy();const e=Date.now()-i;n({success:!1,responseTime:e,error:"Request timeout",attempt:t,timestamp:(new Date).toISOString(),proxy:r||void 0})})),s.end()}))}delay(e){return new Promise((t=>setTimeout(t,e)))}async continuousPing(e,t=1e3,n={}){const i=[];console.log(`🌐 Proxy: ${this.getProxyConfig(n.proxy).proxy||"Direct connection"}\n`);for(let r=0;r<e;r++){const o=await this.ping(n);i.push(o);const s=o.proxy?` (via ${o.proxy})`:"";console.log(`Ping ${r+1}/${e}: ${o.success?"✅":"❌"} ${o.responseTime}ms${s}`),r<e-1&&await this.delay(t)}return i}static getStats(e){const t=e.filter((e=>e.success)),n=e.map((e=>e.responseTime));return{total:e.length,successful:t.length,failed:e.length-t.length,successRate:t.length/e.length*100,avgResponseTime:n.reduce(((e,t)=>e+t),0)/n.length,minResponseTime:Math.min(...n),maxResponseTime:Math.max(...n)}}static async testProxy(e){try{const t=new T(e);return new Promise((e=>{const n=S.request({hostname:t.hostname,port:t.port||80,method:"CONNECT",path:"www.baidu.com:80",timeout:5e3});n.on("connect",(()=>{e(!0)})),n.on("error",(()=>{e(!1)})),n.on("timeout",(()=>{n.destroy(),e(!1)})),n.end()}))}catch{return!1}}}var P_="0.0.11";class j_ extends se{static paths=[se.Default];ping=Ie("--ping",!1,{description:"测试网络连通性"});help=Ie("--help",!1,{description:"帮助信息"});version=Ie("--version",!1,{description:"版本信息"});async execute(){if(!(this.help||this.version||this.ping)){const e=new Le;return e.context=this.context,e.cli=this.cli,await e.execute()}return this.help?(this.context.stdout.write(this.cli.usage(this)),0):this.ping?(await async function(){const e=new A_;console.log("🏓 Starting Comate API ping test with proxy support...\n");const t=process.env.http_proxy||process.env.HTTP_PROXY||process.env.https_proxy||process.env.HTTPS_PROXY;if(t){console.log(`🌐 Detected proxy from environment: ${t}`);const e=await A_.testProxy(t);console.log(`🔍 Proxy test: ${e?"✅ Working":"❌ Failed"}\n`)}else console.log("🌐 No proxy detected, using direct connection\n");console.log("Single ping:");const n=await e.ping({timeout:5e3,retries:3,retryDelay:1e3});console.log(n),console.log("\n"+"=".repeat(50)+"\n"),console.log("Continuous ping (5 times):");const i=await e.continuousPing(5,1e3,{timeout:5e3,retries:2}),r=A_.getStats(i);console.log("\n📊 Statistics:"),console.log(`Total: ${r.total}`),console.log(`Successful: ${r.successful}`),console.log(`Failed: ${r.failed}`),console.log(`Success Rate: ${r.successRate.toFixed(2)}%`),console.log(`Avg Response Time: ${r.avgResponseTime.toFixed(2)}ms`),console.log(`Min Response Time: ${r.minResponseTime}ms`),console.log(`Max Response Time: ${r.maxResponseTime}ms`)}(),0):(this.context.stdout.write(this.cli.usage(this)),0)}}const L_=new Pe({binaryName:"zulu",binaryLabel:"AI Coding Agent Zulu",binaryVersion:P_});function N_(){L_.runExit(process.argv.slice(2))}L_.register(Le),L_.register(Ne),L_.register(j_),L_.register(class extends se{static paths=[["run"]];static usage={description:"与 Zulu 一起工作,对完整代码库进行全面修改"};license=$e("--license",{description:"License"});query=$e("--query",{description:"问题描述"});cwd=$e("--cwd",{description:"工作路径,默认执行时所在地址"});ripgrep=$e("--ripgrep",{description:"ripgrep 的绝对路径"});async execute(){if(!(this.license||this.query||this.cwd||this.help||this.ripgrep)){const e=new Le;return e.context=this.context,e.cli=this.cli,await e.execute()}if(this.help)return this.context.stdout.write(this.cli.usage(this)),0;if(!this.license)return this.context.stderr.write("Error: --license is required\n"),1;if(this.cwd&&!n(this.cwd))return this.context.stderr.write(`Error: Directory '${this.cwd}' does not exist\n`),1;let t=this.ripgrep;return t&&!n(t)?(this.context.stderr.write(`Error: ripgrep path '${t}' does not exist\n`),1):(t||(t=function(){try{const e="win32"===process.platform,t=m(e?"where rg":"which rg",{encoding:"utf8",stdio:"pipe"}).trim(),i=e?t.split("\n")[0]:t;if(i&&n(i))return i}catch(e){g_("Failed to find ripgrep path:",e)}return""}()),g_("License:",this.license),g_("Query:",this.query),g_("CWD:",this.cwd),function(t,n,i,r){const o="zulu-cli",s=process.env.HTTP_PROXY||process.env.HTTPS_PROXY||process.env.http_proxy||process.env.https_proxy||"",a=process.env.SHELL?process.env.SHELL:process.env.COMSPEC?process.env.COMSPEC:"win32"===j.platform()?"cmd.exe":"/bin/sh",c="vscode",l="1.100.1",u=$t.VSCode,p=It.SAAS,d=e(),f=r;!async function(e){e.cwd||(e.cwd=process.cwd());const t=new x_(e);await t.start(),new C_(t).start();let n={};t.onRequest("COMATE_AGENT_UPDATE_MESSAGE",(async e=>{if(g_("============"),g_(JSON.stringify(e,null,2)),"conversation-status"===e.data.type){const t=e.data.conversationInfo.status;t===Jt.Failed||t===Jt.Cancelled?(console.error(JSON.stringify(e,null,2)),process.exit(1)):t===Jt.Completed&&(console.log(JSON.stringify(n,null,2)),process.exit(0))}else"partial-message-data"===e.data.type&&(n=e.data)})),t.onNotification("ENGINE_SERVICE_INITIALIZED",(async()=>{const n=await t.sendRequest("COMATE_AGENT_START_NEW_CHAT",{agentPayload:{conversationId:"",messageType:"add-message",conversationType:"E2EBotConversation",payload:{query:e.query,knowledgeList:[]}}});t.sendRequest("COMATE_AGENT_NEW_MESSAGE",{agentPayload:{messageType:"add-message",conversationId:n.id,payload:{query:e.query,knowledgeList:[]}}}),t.sendRequest("COMATE_AGENT_SET_FOREGROUND_CONVERSATION",{agentPayload:{conversationId:n.id}})}))}({license:t,username:o,query:n,cwd:i,httpProxy:s,shell:a,ideSeries:c,ideVersion:l,ideName:u,platform:p,deviceId:d,pluginVersion:"3.10.0",ripgrepPath:f})}(this.license,this.query,this.cwd,t),0)}});const I_=/^[a-zA-Z_][a-zA-Z0-9_]*$/;function $_(e){return null===e?"null":void 0===e?"undefined":""===e?"an empty string":"symbol"==typeof e?`<${e.toString()}>`:Array.isArray(e)?"an array":JSON.stringify(e)}function M_(e,t){var n,i,r;return"number"==typeof t?`${null!==(n=null==e?void 0:e.p)&&void 0!==n?n:"."}[${t}]`:I_.test(t)?`${null!==(i=null==e?void 0:e.p)&&void 0!==i?i:""}.${t}`:`${null!==(r=null==e?void 0:e.p)&&void 0!==r?r:"."}[${JSON.stringify(t)}]`}function D_({errors:e,p:t}={},n){return null==e||e.push(`${null!=t?t:"."}: ${n}`),!1}function F_(e,t){return n=>{const i=e[t];return e[t]=n,F_(e,t).bind(null,i)}}function z_(){return W_({test:(e,t)=>"string"==typeof e||D_(t,`Expected a string (got ${$_(e)})`)})}function B_(e,{delimiter:t}={}){return W_({test:(n,i)=>{var r;const o=n;if("string"==typeof n&&void 0!==t&&void 0!==(null==i?void 0:i.coercions)){if(void 0===(null==i?void 0:i.coercion))return D_(i,"Unbound coercion result");n=n.split(t)}if(!Array.isArray(n))return D_(i,`Expected an array (got ${$_(n)})`);let s=!0;for(let t=0,r=n.length;t<r&&(s=e(n[t],Object.assign(Object.assign({},i),{p:M_(i,t),coercion:F_(n,t)}))&&s,s||null!=(null==i?void 0:i.errors));++t);return n!==o&&i.coercions.push([null!==(r=i.p)&&void 0!==r?r:".",i.coercion.bind(null,n)]),s}})}function U_(e,{delimiter:t}={}){const n=G_(e.length);return W_({test:(i,r)=>{var o;if("string"==typeof i&&void 0!==t&&void 0!==(null==r?void 0:r.coercions)){if(void 0===(null==r?void 0:r.coercion))return D_(r,"Unbound coercion result");i=i.split(t),r.coercions.push([null!==(o=r.p)&&void 0!==o?o:".",r.coercion.bind(null,i)])}if(!Array.isArray(i))return D_(r,`Expected a tuple (got ${$_(i)})`);let s=n(i,Object.assign({},r));for(let t=0,n=i.length;t<n&&t<e.length&&(s=e[t](i[t],Object.assign(Object.assign({},r),{p:M_(r,t),coercion:F_(i,t)}))&&s,s||null!=(null==r?void 0:r.errors));++t);return s}})}function q_(e,{keys:t=null}={}){const n=B_(U_([null!=t?t:z_(),e]));return W_({test:(i,r)=>{var o;if(Array.isArray(i)&&void 0!==(null==r?void 0:r.coercions))return void 0===(null==r?void 0:r.coercion)?D_(r,"Unbound coercion result"):!!n(i,Object.assign(Object.assign({},r),{coercion:void 0}))&&(i=Object.fromEntries(i),r.coercions.push([null!==(o=r.p)&&void 0!==o?o:".",r.coercion.bind(null,i)]),!0);if("object"!=typeof i||null===i)return D_(r,`Expected an object (got ${$_(i)})`);const s=Object.keys(i);let a=!0;for(let n=0,o=s.length;n<o&&(a||null!=(null==r?void 0:r.errors));++n){const o=s[n],c=i[o];"__proto__"!==o&&"constructor"!==o?(null===t||t(o,r))&&e(c,Object.assign(Object.assign({},r),{p:M_(r,o),coercion:F_(i,o)}))||(a=!1):a=D_(Object.assign(Object.assign({},r),{p:M_(r,o)}),"Unsafe property name")}return a}})}function H_(e){return()=>e}function W_({test:e}){return H_(e)()}function G_(e){return W_({test:(t,n)=>t.length===e||D_(n,`Expected to have a length of exactly ${e} elements (got ${t.length})`)})}function V_(e,...t){const n=Array.isArray(t[0])?t[0]:t;return W_({test:(t,i)=>{var r,o;const s={value:t},a=void 0!==(null==i?void 0:i.coercions)?F_(s,"value"):void 0,c=void 0!==(null==i?void 0:i.coercions)?[]:void 0;if(!e(t,Object.assign(Object.assign({},i),{coercion:a,coercions:c})))return!1;const l=[];if(void 0!==c)for(const[,e]of c)l.push(e());try{if(void 0!==(null==i?void 0:i.coercions)){if(s.value!==t){if(void 0===(null==i?void 0:i.coercion))return D_(i,"Unbound coercion result");i.coercions.push([null!==(r=i.p)&&void 0!==r?r:".",i.coercion.bind(null,s.value)])}null===(o=null==i?void 0:i.coercions)||void 0===o||o.push(...c)}return n.every((e=>e(s.value,i)))}finally{for(const e of l)e()}}})}var K_;!function(e){e.Forbids="Forbids",e.Requires="Requires"}(K_||(K_={})),K_.Forbids,K_.Requires;var J_=Object.freeze({__proto__:null,get KeyRelationship(){return K_},applyCascade:function(e,...t){return V_(e,Array.isArray(t[0])?t[0]:t)},cascade:V_,hasExactLength:G_,isArray:B_,isDict:function(e,t={}){return q_(e,t)},isRecord:q_,isString:z_,isTuple:U_,isUnknown:function(){return W_({test:(e,t)=>!0})},makeTrait:H_,makeValidator:W_});export{N_ as run};
44
+ */!function(e,t){(function(){var n,i="Expected a function",r="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,a=128,c=256,l=1/0,u=9007199254740991,p=NaN,d=4294967295,f=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",c]],m="[object Arguments]",h="[object Array]",g="[object Boolean]",v="[object Date]",x="[object Error]",b="[object Function]",y="[object GeneratorFunction]",_="[object Map]",w="[object Number]",E="[object Object]",S="[object Promise]",k="[object RegExp]",R="[object Set]",T="[object String]",O="[object Symbol]",C="[object WeakMap]",A="[object ArrayBuffer]",P="[object DataView]",j="[object Float32Array]",L="[object Float64Array]",N="[object Int8Array]",I="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",F="[object Uint16Array]",z="[object Uint32Array]",B=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,G=RegExp(H.source),V=RegExp(W.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,ie=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,be=/['\n\r\u2028\u2029\\]/g,ye="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Oe="["+ye+"]",Ce="["+Re+"]",Ae="["+_e+"]",Pe="\\d+",je="["+we+"]",Le="["+Ee+"]",Ne="[^"+ye+Re+Pe+we+Ee+Se+"]",Ie="\\ud83c[\\udffb-\\udfff]",$e="[^"+ye+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Se+"]",Be="\\u200d",Ue="(?:"+Le+"|"+Ne+")",qe="(?:"+Fe+"|"+Ne+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ae+"|"+Ie+")"+"?",Ve="["+ke+"]?",Ke=Ve+Ge+("(?:"+Be+"(?:"+[$e,Me,De].join("|")+")"+Ve+Ge+")*"),Je="(?:"+[je,Me,De].join("|")+")"+Ke,Ze="(?:"+[$e+Ae+"?",Ae,Me,De,Oe].join("|")+")",Ye=RegExp(Te,"g"),Qe=RegExp(Ae,"g"),Xe=RegExp(Ie+"(?="+Ie+")|"+Ze+Ke,"g"),et=RegExp([Fe+"?"+Le+"+"+He+"(?="+[Ce,Fe,"$"].join("|")+")",qe+"+"+We+"(?="+[Ce,Fe+Ue,"$"].join("|")+")",Fe+"?"+Ue+"+"+He,Fe+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Je].join("|"),"g"),tt=RegExp("["+Be+ye+_e+ke+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[j]=ot[L]=ot[N]=ot[I]=ot[$]=ot[M]=ot[D]=ot[F]=ot[z]=!0,ot[m]=ot[h]=ot[A]=ot[g]=ot[P]=ot[v]=ot[x]=ot[b]=ot[_]=ot[w]=ot[E]=ot[k]=ot[R]=ot[T]=ot[C]=!1;var st={};st[m]=st[h]=st[A]=st[P]=st[g]=st[v]=st[j]=st[L]=st[N]=st[I]=st[$]=st[_]=st[w]=st[E]=st[k]=st[R]=st[T]=st[O]=st[M]=st[D]=st[F]=st[z]=!0,st[x]=st[b]=st[C]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,lt=parseInt,ut="object"==typeof ze&&ze&&ze.Object===Object&&ze,pt="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||pt||Function("return this")(),ft=t&&!t.nodeType&&t,mt=ft&&e&&!e.nodeType&&e,ht=mt&&mt.exports===ft,gt=ht&&ut.process,vt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),xt=vt&&vt.isArrayBuffer,bt=vt&&vt.isDate,yt=vt&&vt.isMap,_t=vt&&vt.isRegExp,wt=vt&&vt.isSet,Et=vt&&vt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];t(i,s,n(s),e)}return i}function Rt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}function At(e,t){return!!(null==e?0:e.length)&&zt(e,t,0)>-1}function Pt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function jt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Lt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Nt(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function It(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function $t(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Mt=Ht("length");function Dt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Ft(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function zt(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):Ft(e,Ut,n)}function Bt(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function Ut(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Vt(e,t)/n:p}function Ht(e){return function(t){return null==t?n:t[e]}}function Wt(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function Vt(e,t){for(var i,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==n&&(i=i===n?s:i+s)}return i}function Kt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Jt(e){return e?e.slice(0,fn(e)+1).replace(ne,""):e}function Zt(e){return function(t){return e(t)}}function Yt(e,t){return jt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function Xt(e,t){for(var n=-1,i=e.length;++n<i&&zt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var tn=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+at[e]}function on(e){return tt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function an(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,i=e.length,r=0,s=[];++n<i;){var a=e[n];a!==t&&a!==o||(e[n]=o,s[r++]=n)}return s}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return on(e)?function(e){var t=Xe.lastIndex=0;for(;Xe.test(e);)++t;return t}(e):Mt(e)}function dn(e){return on(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var mn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var hn=function e(t){var ie,ye=(t=null==t?dt:hn.defaults(dt.Object(),t,hn.pick(dt,it))).Array,_e=t.Date,we=t.Error,Ee=t.Function,Se=t.Math,ke=t.Object,Re=t.RegExp,Te=t.String,Oe=t.TypeError,Ce=ye.prototype,Ae=Ee.prototype,Pe=ke.prototype,je=t["__core-js_shared__"],Le=Ae.toString,Ne=Pe.hasOwnProperty,Ie=0,$e=(ie=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",Me=Pe.toString,De=Le.call(ke),Fe=dt._,ze=Re("^"+Le.call(Ne).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ht?t.Buffer:n,Ue=t.Symbol,qe=t.Uint8Array,He=Be?Be.allocUnsafe:n,We=an(ke.getPrototypeOf,ke),Ge=ke.create,Ve=Pe.propertyIsEnumerable,Ke=Ce.splice,Je=Ue?Ue.isConcatSpreadable:n,Ze=Ue?Ue.iterator:n,Xe=Ue?Ue.toStringTag:n,tt=function(){try{var e=uo(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=_e&&_e.now!==dt.Date.now&&_e.now,pt=t.setTimeout!==dt.setTimeout&&t.setTimeout,ft=Se.ceil,mt=Se.floor,gt=ke.getOwnPropertySymbols,vt=Be?Be.isBuffer:n,Mt=t.isFinite,Wt=Ce.join,gn=an(ke.keys,ke),vn=Se.max,xn=Se.min,bn=_e.now,yn=t.parseInt,_n=Se.random,wn=Ce.reverse,En=uo(t,"DataView"),Sn=uo(t,"Map"),kn=uo(t,"Promise"),Rn=uo(t,"Set"),Tn=uo(t,"WeakMap"),On=uo(ke,"create"),Cn=Tn&&new Tn,An={},Pn=Mo(En),jn=Mo(Sn),Ln=Mo(kn),Nn=Mo(Rn),In=Mo(Tn),$n=Ue?Ue.prototype:n,Mn=$n?$n.valueOf:n,Dn=$n?$n.toString:n;function Fn(e){if(ea(e)&&!qs(e)&&!(e instanceof qn)){if(e instanceof Un)return e;if(Ne.call(e,"__wrapped__"))return Do(e)}return new Un(e)}var zn=function(){function e(){}return function(t){if(!Xs(t))return{};if(Ge)return Ge(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function Bn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Jn(e,t){var n=qs(e),i=!n&&Us(e),r=!n&&!i&&Vs(e),o=!n&&!i&&!r&&ca(e),s=n||i||r||o,a=s?Kt(e.length,Te):[],c=a.length;for(var l in e)!t&&!Ne.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xo(l,c))||a.push(l);return a}function Zn(e){var t=e.length;return t?e[Vi(0,t-1)]:n}function Yn(e,t){return No(Or(e),si(t,0,e.length))}function Qn(e){return No(Or(e))}function Xn(e,t,i){(i!==n&&!Fs(e[t],i)||i===n&&!(t in e))&&ri(e,t,i)}function ei(e,t,i){var r=e[t];Ne.call(e,t)&&Fs(r,i)&&(i!==n||t in e)||ri(e,t,i)}function ti(e,t){for(var n=e.length;n--;)if(Fs(e[n][0],t))return n;return-1}function ni(e,t,n,i){return pi(e,(function(e,r,o){t(i,e,n(e),o)})),i}function ii(e,t){return e&&Cr(t,Aa(t),e)}function ri(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oi(e,t){for(var i=-1,r=t.length,o=ye(r),s=null==e;++i<r;)o[i]=s?n:ka(e,t[i]);return o}function si(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function ai(e,t,i,r,o,s){var a,c=1&t,l=2&t,u=4&t;if(i&&(a=o?i(e,r,o,s):i(e)),a!==n)return a;if(!Xs(e))return e;var p=qs(e);if(p){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Or(e,a)}else{var d=mo(e),f=d==b||d==y;if(Vs(e))return wr(e,c);if(d==E||d==m||f&&!o){if(a=l||f?{}:go(e),!c)return l?function(e,t){return Cr(e,fo(e),t)}(e,function(e,t){return e&&Cr(t,Pa(t),e)}(a,e)):function(e,t){return Cr(e,po(e),t)}(e,ii(a,e))}else{if(!st[d])return o?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case A:return Er(e);case g:case v:return new i(+e);case P:return function(e,t){var n=t?Er(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case L:case N:case I:case $:case M:case D:case F:case z:return Sr(e,n);case _:return new i;case w:case T:return new i(e);case k:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new i;case O:return r=e,Mn?ke(Mn.call(r)):{}}var r}(e,d,c)}}s||(s=new Kn);var h=s.get(e);if(h)return h;s.set(e,a),oa(e)?e.forEach((function(n){a.add(ai(n,t,i,n,e,s))})):ta(e)&&e.forEach((function(n,r){a.set(r,ai(n,t,i,r,e,s))}));var x=p?n:(u?l?io:no:l?Pa:Aa)(e);return Rt(x||e,(function(n,r){x&&(n=e[r=n]),ei(a,r,ai(n,t,i,r,e,s))})),a}function ci(e,t,i){var r=i.length;if(null==e)return!r;for(e=ke(e);r--;){var o=i[r],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function li(e,t,r){if("function"!=typeof e)throw new Oe(i);return Ao((function(){e.apply(n,r)}),t)}function ui(e,t,n,i){var r=-1,o=At,s=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=jt(t,Zt(n))),i?(o=Pt,s=!1):t.length>=200&&(o=Qt,s=!1,t=new Vn(t));e:for(;++r<a;){var u=e[r],p=null==n?u:n(u);if(u=i||0!==u?u:0,s&&p==p){for(var d=l;d--;)if(t[d]===p)continue e;c.push(u)}else o(t,p,i)||c.push(u)}return c}Fn.templateSettings={escape:K,evaluate:J,interpolate:Z,variable:"",imports:{_:Fn}},Fn.prototype=Bn.prototype,Fn.prototype.constructor=Fn,Un.prototype=zn(Bn.prototype),Un.prototype.constructor=Un,qn.prototype=zn(Bn.prototype),qn.prototype.constructor=qn,Hn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(On){var i=t[e];return i===r?n:i}return Ne.call(t,e)?t[e]:n},Hn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==n:Ne.call(t,e)},Hn.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=On&&t===n?r:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=ti(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Wn.prototype.get=function(e){var t=this.__data__,i=ti(t,e);return i<0?n:t[i][1]},Wn.prototype.has=function(e){return ti(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,i=ti(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Sn||Wn),string:new Hn}},Gn.prototype.delete=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return co(this,e).get(e)},Gn.prototype.has=function(e){return co(this,e).has(e)},Gn.prototype.set=function(e,t){var n=co(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,r),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var i=n.__data__;if(!Sn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(i)}return n.set(e,t),this.size=n.size,this};var pi=jr(bi),di=jr(yi,!0);function fi(e,t){var n=!0;return pi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function mi(e,t,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(c===n?a==a&&!aa(a):i(a,c)))var c=a,l=s}return l}function hi(e,t){var n=[];return pi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function gi(e,t,n,i,r){var o=-1,s=e.length;for(n||(n=vo),r||(r=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?gi(a,t-1,n,i,r):Lt(r,a):i||(r[r.length]=a)}return r}var vi=Lr(),xi=Lr(!0);function bi(e,t){return e&&vi(e,t,Aa)}function yi(e,t){return e&&xi(e,t,Aa)}function _i(e,t){return Ct(t,(function(t){return Zs(e[t])}))}function wi(e,t){for(var i=0,r=(t=xr(t,e)).length;null!=e&&i<r;)e=e[$o(t[i++])];return i&&i==r?e:n}function Ei(e,t,n){var i=t(e);return qs(e)?i:Lt(i,n(e))}function Si(e){return null==e?e===n?"[object Undefined]":"[object Null]":Xe&&Xe in ke(e)?function(e){var t=Ne.call(e,Xe),i=e[Xe];try{e[Xe]=n;var r=!0}catch(e){}var o=Me.call(e);r&&(t?e[Xe]=i:delete e[Xe]);return o}(e):function(e){return Me.call(e)}(e)}function ki(e,t){return e>t}function Ri(e,t){return null!=e&&Ne.call(e,t)}function Ti(e,t){return null!=e&&t in ke(e)}function Oi(e,t,i){for(var r=i?Pt:At,o=e[0].length,s=e.length,a=s,c=ye(s),l=1/0,u=[];a--;){var p=e[a];a&&t&&(p=jt(p,Zt(t))),l=xn(p.length,l),c[a]=!i&&(t||o>=120&&p.length>=120)?new Vn(a&&p):n}p=e[0];var d=-1,f=c[0];e:for(;++d<o&&u.length<l;){var m=p[d],h=t?t(m):m;if(m=i||0!==m?m:0,!(f?Qt(f,h):r(u,h,i))){for(a=s;--a;){var g=c[a];if(!(g?Qt(g,h):r(e[a],h,i)))continue e}f&&f.push(h),u.push(m)}}return u}function Ci(e,t,i){var r=null==(e=To(e,t=xr(t,e)))?e:e[$o(Jo(t))];return null==r?n:St(r,e,i)}function Ai(e){return ea(e)&&Si(e)==m}function Pi(e,t,i,r,o){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,i,r,o,s){var a=qs(e),c=qs(t),l=a?h:mo(e),u=c?h:mo(t),p=(l=l==m?E:l)==E,d=(u=u==m?E:u)==E,f=l==u;if(f&&Vs(e)){if(!Vs(t))return!1;a=!0,p=!1}if(f&&!p)return s||(s=new Kn),a||ca(e)?eo(e,t,i,r,o,s):function(e,t,n,i,r,o,s){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!o(new qe(e),new qe(t)));case g:case v:case w:return Fs(+e,+t);case x:return e.name==t.name&&e.message==t.message;case k:case T:return e==t+"";case _:var a=sn;case R:var c=1&i;if(a||(a=ln),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;i|=2,s.set(e,t);var u=eo(a(e),a(t),i,r,o,s);return s.delete(e),u;case O:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,l,i,r,o,s);if(!(1&i)){var b=p&&Ne.call(e,"__wrapped__"),y=d&&Ne.call(t,"__wrapped__");if(b||y){var S=b?e.value():e,C=y?t.value():t;return s||(s=new Kn),o(S,C,i,r,s)}}if(!f)return!1;return s||(s=new Kn),function(e,t,i,r,o,s){var a=1&i,c=no(e),l=c.length,u=no(t),p=u.length;if(l!=p&&!a)return!1;var d=l;for(;d--;){var f=c[d];if(!(a?f in t:Ne.call(t,f)))return!1}var m=s.get(e),h=s.get(t);if(m&&h)return m==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);var v=a;for(;++d<l;){var x=e[f=c[d]],b=t[f];if(r)var y=a?r(b,x,f,t,e,s):r(x,b,f,e,t,s);if(!(y===n?x===b||o(x,b,i,r,s):y)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,i,r,o,s)}(e,t,i,r,Pi,o))}function ji(e,t,i,r){var o=i.length,s=o,a=!r;if(null==e)return!s;for(e=ke(e);o--;){var c=i[o];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var l=(c=i[o])[0],u=e[l],p=c[1];if(a&&c[2]){if(u===n&&!(l in e))return!1}else{var d=new Kn;if(r)var f=r(u,p,l,e,t,d);if(!(f===n?Pi(p,u,3,r,d):f))return!1}}return!0}function Li(e){return!(!Xs(e)||(t=e,$e&&$e in t))&&(Zs(e)?ze:me).test(Mo(e));var t}function Ni(e){return"function"==typeof e?e:null==e?nc:"object"==typeof e?qs(e)?zi(e[0],e[1]):Fi(e):pc(e)}function Ii(e){if(!Eo(e))return gn(e);var t=[];for(var n in ke(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function $i(e){if(!Xs(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Eo(e),n=[];for(var i in e)("constructor"!=i||!t&&Ne.call(e,i))&&n.push(i);return n}function Mi(e,t){return e<t}function Di(e,t){var n=-1,i=Ws(e)?ye(e.length):[];return pi(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Fi(e){var t=lo(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(n){return n===e||ji(n,e,t)}}function zi(e,t){return yo(e)&&So(t)?ko($o(e),t):function(i){var r=ka(i,e);return r===n&&r===t?Ra(i,e):Pi(t,r,3)}}function Bi(e,t,i,r,o){e!==t&&vi(t,(function(s,a){if(o||(o=new Kn),Xs(s))!function(e,t,i,r,o,s,a){var c=Oo(e,i),l=Oo(t,i),u=a.get(l);if(u)return void Xn(e,i,u);var p=s?s(c,l,i+"",e,t,a):n,d=p===n;if(d){var f=qs(l),m=!f&&Vs(l),h=!f&&!m&&ca(l);p=l,f||m||h?qs(c)?p=c:Gs(c)?p=Or(c):m?(d=!1,p=wr(l,!0)):h?(d=!1,p=Sr(l,!0)):p=[]:ia(l)||Us(l)?(p=c,Us(c)?p=ga(c):Xs(c)&&!Zs(c)||(p=go(l))):d=!1}d&&(a.set(l,p),o(p,l,r,s,a),a.delete(l));Xn(e,i,p)}(e,t,a,i,Bi,r,o);else{var c=r?r(Oo(e,a),s,a+"",e,t,o):n;c===n&&(c=s),Xn(e,a,c)}}),Pa)}function Ui(e,t){var i=e.length;if(i)return xo(t+=t<0?i:0,i)?e[t]:n}function qi(e,t,n){t=t.length?jt(t,(function(e){return qs(e)?function(t){return wi(t,1===e.length?e[0]:e)}:e})):[nc];var i=-1;t=jt(t,Zt(ao()));var r=Di(e,(function(e,n,r){var o=jt(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,s=r.length,a=n.length;for(;++i<s;){var c=kr(r[i],o[i]);if(c)return i>=a?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hi(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var s=t[i],a=wi(e,s);n(a,s)&&Qi(o,xr(s,e),a)}return o}function Wi(e,t,n,i){var r=i?Bt:zt,o=-1,s=t.length,a=e;for(e===t&&(t=Or(t)),n&&(a=jt(e,Zt(n)));++o<s;)for(var c=0,l=t[o],u=n?n(l):l;(c=r(a,u,c,i))>-1;)a!==e&&Ke.call(a,c,1),Ke.call(e,c,1);return e}function Gi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;xo(r)?Ke.call(e,r,1):ur(e,r)}}return e}function Vi(e,t){return e+mt(_n()*(t-e+1))}function Ki(e,t){var n="";if(!e||t<1||t>u)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Ji(e,t){return Po(Ro(e,t,nc),e+"")}function Zi(e){return Zn(Fa(e))}function Yi(e,t){var n=Fa(e);return No(n,si(t,0,n.length))}function Qi(e,t,i,r){if(!Xs(e))return e;for(var o=-1,s=(t=xr(t,e)).length,a=s-1,c=e;null!=c&&++o<s;){var l=$o(t[o]),u=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var p=c[l];(u=r?r(p,l,c):n)===n&&(u=Xs(p)?p:xo(t[o+1])?[]:{})}ei(c,l,u),c=c[l]}return e}var Xi=Cn?function(e,t){return Cn.set(e,t),e}:nc,er=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:Xa(t),writable:!0})}:nc;function tr(e){return No(Fa(e))}function nr(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=ye(r);++i<r;)o[i]=e[i+t];return o}function ir(e,t){var n;return pi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function rr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!aa(s)&&(n?s<=t:s<t)?i=o+1:r=o}return r}return or(e,t,nc,n)}function or(e,t,i,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=i(t))!=t,c=null===t,l=aa(t),u=t===n;o<s;){var p=mt((o+s)/2),d=i(e[p]),f=d!==n,m=null===d,h=d==d,g=aa(d);if(a)var v=r||h;else v=u?h&&(r||f):c?h&&f&&(r||!m):l?h&&f&&!m&&(r||!g):!m&&!g&&(r?d<=t:d<t);v?o=p+1:s=p}return xn(s,4294967294)}function sr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!Fs(a,c)){var c=a;o[r++]=0===s?0:s}}return o}function ar(e){return"number"==typeof e?e:aa(e)?p:+e}function cr(e){if("string"==typeof e)return e;if(qs(e))return jt(e,cr)+"";if(aa(e))return Dn?Dn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lr(e,t,n){var i=-1,r=At,o=e.length,s=!0,a=[],c=a;if(n)s=!1,r=Pt;else if(o>=200){var l=t?null:Kr(e);if(l)return ln(l);s=!1,r=Qt,c=new Vn}else c=t?[]:a;e:for(;++i<o;){var u=e[i],p=t?t(u):u;if(u=n||0!==u?u:0,s&&p==p){for(var d=c.length;d--;)if(c[d]===p)continue e;t&&c.push(p),a.push(u)}else r(c,p,n)||(c!==a&&c.push(p),a.push(u))}return a}function ur(e,t){return null==(e=To(e,t=xr(t,e)))||delete e[$o(Jo(t))]}function pr(e,t,n,i){return Qi(e,t,n(wi(e,t)),i)}function dr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?nr(e,i?0:o,i?o+1:r):nr(e,i?o+1:0,i?r:o)}function fr(e,t){var n=e;return n instanceof qn&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function mr(e,t,n){var i=e.length;if(i<2)return i?lr(e[0]):[];for(var r=-1,o=ye(i);++r<i;)for(var s=e[r],a=-1;++a<i;)a!=r&&(o[r]=ui(o[r]||s,e[a],t,n));return lr(gi(o,1),t,n)}function hr(e,t,i){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var c=r<s?t[r]:n;i(a,e[r],c)}return a}function gr(e){return Gs(e)?e:[]}function vr(e){return"function"==typeof e?e:nc}function xr(e,t){return qs(e)?e:yo(e,t)?[e]:Io(va(e))}var br=Ji;function yr(e,t,i){var r=e.length;return i=i===n?r:i,!t&&i>=r?e:nr(e,t,i)}var _r=at||function(e){return dt.clearTimeout(e)};function wr(e,t){if(t)return e.slice();var n=e.length,i=He?He(n):new e.constructor(n);return e.copy(i),i}function Er(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Sr(e,t){var n=t?Er(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function kr(e,t){if(e!==t){var i=e!==n,r=null===e,o=e==e,s=aa(e),a=t!==n,c=null===t,l=t==t,u=aa(t);if(!c&&!u&&!s&&e>t||s&&a&&l&&!c&&!u||r&&a&&l||!i&&l||!o)return 1;if(!r&&!s&&!u&&e<t||u&&i&&o&&!r&&!s||c&&i&&o||!a&&o||!l)return-1}return 0}function Rr(e,t,n,i){for(var r=-1,o=e.length,s=n.length,a=-1,c=t.length,l=vn(o-s,0),u=ye(c+l),p=!i;++a<c;)u[a]=t[a];for(;++r<s;)(p||r<o)&&(u[n[r]]=e[r]);for(;l--;)u[a++]=e[r++];return u}function Tr(e,t,n,i){for(var r=-1,o=e.length,s=-1,a=n.length,c=-1,l=t.length,u=vn(o-a,0),p=ye(u+l),d=!i;++r<u;)p[r]=e[r];for(var f=r;++c<l;)p[f+c]=t[c];for(;++s<a;)(d||r<o)&&(p[f+n[s]]=e[r++]);return p}function Or(e,t){var n=-1,i=e.length;for(t||(t=ye(i));++n<i;)t[n]=e[n];return t}function Cr(e,t,i,r){var o=!i;i||(i={});for(var s=-1,a=t.length;++s<a;){var c=t[s],l=r?r(i[c],e[c],c,i,e):n;l===n&&(l=e[c]),o?ri(i,c,l):ei(i,c,l)}return i}function Ar(e,t){return function(n,i){var r=qs(n)?kt:ni,o=t?t():{};return r(n,e,ao(i,2),o)}}function Pr(e){return Ji((function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:n,a=o>2?i[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&bo(i[0],i[1],a)&&(s=o<3?n:s,o=1),t=ke(t);++r<o;){var c=i[r];c&&e(t,c,r,s)}return t}))}function jr(e,t){return function(n,i){if(null==n)return n;if(!Ws(n))return e(n,i);for(var r=n.length,o=t?r:-1,s=ke(n);(t?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function Lr(e){return function(t,n,i){for(var r=-1,o=ke(t),s=i(t),a=s.length;a--;){var c=s[e?a:++r];if(!1===n(o[c],c,o))break}return t}}function Nr(e){return function(t){var i=on(t=va(t))?dn(t):n,r=i?i[0]:t.charAt(0),o=i?yr(i,1).join(""):t.slice(1);return r[e]()+o}}function Ir(e){return function(t){return Nt(Za(Ua(t).replace(Ye,"")),e,"")}}function $r(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),i=e.apply(n,t);return Xs(i)?i:n}}function Mr(e){return function(t,i,r){var o=ke(t);if(!Ws(t)){var s=ao(i,3);t=Aa(t),i=function(e){return s(o[e],e,o)}}var a=e(t,i,r);return a>-1?o[s?t[a]:a]:n}}function Dr(e){return to((function(t){var r=t.length,o=r,s=Un.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Oe(i);if(s&&!c&&"wrapper"==oo(a))var c=new Un([],!0)}for(o=c?o:r;++o<r;){var l=oo(a=t[o]),u="wrapper"==l?ro(a):n;c=u&&_o(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[oo(u[0])].apply(c,u[3]):1==a.length&&_o(a)?c[l]():c.thru(a)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&qs(n))return c.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function Fr(e,t,i,r,o,s,c,l,u,p){var d=t&a,f=1&t,m=2&t,h=24&t,g=512&t,v=m?n:$r(e);return function a(){for(var x=arguments.length,b=ye(x),y=x;y--;)b[y]=arguments[y];if(h)var _=so(a),w=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,_);if(r&&(b=Rr(b,r,o,h)),s&&(b=Tr(b,s,c,h)),x-=w,h&&x<p){var E=cn(b,_);return Gr(e,t,Fr,a.placeholder,i,b,E,l,u,p-x)}var S=f?i:this,k=m?S[e]:e;return x=b.length,l?b=function(e,t){var i=e.length,r=xn(t.length,i),o=Or(e);for(;r--;){var s=t[r];e[r]=xo(s,i)?o[s]:n}return e}(b,l):g&&x>1&&b.reverse(),d&&u<x&&(b.length=u),this&&this!==dt&&this instanceof a&&(k=v||$r(k)),k.apply(S,b)}}function zr(e,t){return function(n,i){return function(e,t,n,i){return bi(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function Br(e,t){return function(i,r){var o;if(i===n&&r===n)return t;if(i!==n&&(o=i),r!==n){if(o===n)return r;"string"==typeof i||"string"==typeof r?(i=cr(i),r=cr(r)):(i=ar(i),r=ar(r)),o=e(i,r)}return o}}function Ur(e){return to((function(t){return t=jt(t,Zt(ao())),Ji((function(n){var i=this;return e(t,(function(e){return St(e,i,n)}))}))}))}function qr(e,t){var i=(t=t===n?" ":cr(t)).length;if(i<2)return i?Ki(t,e):t;var r=Ki(t,ft(e/pn(t)));return on(t)?yr(dn(r),0,e).join(""):r.slice(0,e)}function Hr(e){return function(t,i,r){return r&&"number"!=typeof r&&bo(t,i,r)&&(i=r=n),t=da(t),i===n?(i=t,t=0):i=da(i),function(e,t,n,i){for(var r=-1,o=vn(ft((t-e)/(n||1)),0),s=ye(o);o--;)s[i?o:++r]=e,e+=n;return s}(t,i,r=r===n?t<i?1:-1:da(r),e)}}function Wr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ha(t),n=ha(n)),e(t,n)}}function Gr(e,t,i,r,o,a,c,l,u,p){var d=8&t;t|=d?s:64,4&(t&=~(d?64:s))||(t&=-4);var f=[e,t,o,d?a:n,d?c:n,d?n:a,d?n:c,l,u,p],m=i.apply(n,f);return _o(e)&&Co(m,f),m.placeholder=r,jo(m,e,t)}function Vr(e){var t=Se[e];return function(e,n){if(e=ha(e),(n=null==n?0:xn(fa(n),292))&&Mt(e)){var i=(va(e)+"e").split("e");return+((i=(va(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Kr=Rn&&1/ln(new Rn([,-0]))[1]==l?function(e){return new Rn(e)}:ac;function Jr(e){return function(t){var n=mo(t);return n==_?sn(t):n==R?un(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zr(e,t,r,l,u,p,d,f){var m=2&t;if(!m&&"function"!=typeof e)throw new Oe(i);var h=l?l.length:0;if(h||(t&=-97,l=u=n),d=d===n?d:vn(fa(d),0),f=f===n?f:fa(f),h-=u?u.length:0,64&t){var g=l,v=u;l=u=n}var x=m?n:ro(e),b=[e,t,r,l,u,g,v,p,d,f];if(x&&function(e,t){var n=e[1],i=t[1],r=n|i,s=r<131,l=i==a&&8==n||i==a&&n==c&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!s&&!l)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var u=t[3];if(u){var p=e[3];e[3]=p?Rr(p,u,t[4]):u,e[4]=p?cn(e[3],o):t[4]}(u=t[5])&&(p=e[5],e[5]=p?Tr(p,u,t[6]):u,e[6]=p?cn(e[5],o):t[6]);(u=t[7])&&(e[7]=u);i&a&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(b,x),e=b[0],t=b[1],r=b[2],l=b[3],u=b[4],!(f=b[9]=b[9]===n?m?0:e.length:vn(b[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?function(e,t,i){var r=$r(e);return function o(){for(var s=arguments.length,a=ye(s),c=s,l=so(o);c--;)a[c]=arguments[c];var u=s<3&&a[0]!==l&&a[s-1]!==l?[]:cn(a,l);return(s-=u.length)<i?Gr(e,t,Fr,o.placeholder,n,a,u,n,n,i-s):St(this&&this!==dt&&this instanceof o?r:e,this,a)}}(e,t,f):t!=s&&33!=t||u.length?Fr.apply(n,b):function(e,t,n,i){var r=1&t,o=$r(e);return function t(){for(var s=-1,a=arguments.length,c=-1,l=i.length,u=ye(l+a),p=this&&this!==dt&&this instanceof t?o:e;++c<l;)u[c]=i[c];for(;a--;)u[c++]=arguments[++s];return St(p,r?n:this,u)}}(e,t,r,l);else var y=function(e,t,n){var i=1&t,r=$r(e);return function t(){return(this&&this!==dt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,r);return jo((x?Xi:Co)(y,b),e,t)}function Yr(e,t,i,r){return e===n||Fs(e,Pe[i])&&!Ne.call(r,i)?t:e}function Qr(e,t,i,r,o,s){return Xs(e)&&Xs(t)&&(s.set(t,e),Bi(e,t,n,Qr,s),s.delete(t)),e}function Xr(e){return ia(e)?n:e}function eo(e,t,i,r,o,s){var a=1&i,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var u=s.get(e),p=s.get(t);if(u&&p)return u==t&&p==e;var d=-1,f=!0,m=2&i?new Vn:n;for(s.set(e,t),s.set(t,e);++d<c;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,s):r(h,g,d,e,t,s);if(v!==n){if(v)continue;f=!1;break}if(m){if(!$t(t,(function(e,t){if(!Qt(m,t)&&(h===e||o(h,e,i,r,s)))return m.push(t)}))){f=!1;break}}else if(h!==g&&!o(h,g,i,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function to(e){return Po(Ro(e,n,Ho),e+"")}function no(e){return Ei(e,Aa,po)}function io(e){return Ei(e,Pa,fo)}var ro=Cn?function(e){return Cn.get(e)}:ac;function oo(e){for(var t=e.name+"",n=An[t],i=Ne.call(An,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function so(e){return(Ne.call(Fn,"placeholder")?Fn:e).placeholder}function ao(){var e=Fn.iteratee||ic;return e=e===ic?Ni:e,arguments.length?e(arguments[0],arguments[1]):e}function co(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function lo(e){for(var t=Aa(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,So(r)]}return t}function uo(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return Li(i)?i:n}var po=gt?function(e){return null==e?[]:(e=ke(e),Ct(gt(e),(function(t){return Ve.call(e,t)})))}:mc,fo=gt?function(e){for(var t=[];e;)Lt(t,po(e)),e=We(e);return t}:mc,mo=Si;function ho(e,t,n){for(var i=-1,r=(t=xr(t,e)).length,o=!1;++i<r;){var s=$o(t[i]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&Qs(r)&&xo(s,r)&&(qs(e)||Us(e))}function go(e){return"function"!=typeof e.constructor||Eo(e)?{}:zn(We(e))}function vo(e){return qs(e)||Us(e)||!!(Je&&e&&e[Je])}function xo(e,t){var n=typeof e;return!!(t=null==t?u:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function bo(e,t,n){if(!Xs(n))return!1;var i=typeof t;return!!("number"==i?Ws(n)&&xo(t,n.length):"string"==i&&t in n)&&Fs(n[t],e)}function yo(e,t){if(qs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||(Q.test(e)||!Y.test(e)||null!=t&&e in ke(t))}function _o(e){var t=oo(e),n=Fn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var i=ro(n);return!!i&&e===i[0]}(En&&mo(new En(new ArrayBuffer(1)))!=P||Sn&&mo(new Sn)!=_||kn&&mo(kn.resolve())!=S||Rn&&mo(new Rn)!=R||Tn&&mo(new Tn)!=C)&&(mo=function(e){var t=Si(e),i=t==E?e.constructor:n,r=i?Mo(i):"";if(r)switch(r){case Pn:return P;case jn:return _;case Ln:return S;case Nn:return R;case In:return C}return t});var wo=je?Zs:hc;function Eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function So(e){return e==e&&!Xs(e)}function ko(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in ke(i)))}}function Ro(e,t,i){return t=vn(t===n?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=vn(n.length-t,0),s=ye(o);++r<o;)s[r]=n[t+r];r=-1;for(var a=ye(t+1);++r<t;)a[r]=n[r];return a[t]=i(s),St(e,this,a)}}function To(e,t){return t.length<2?e:wi(e,nr(t,0,-1))}function Oo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Co=Lo(Xi),Ao=pt||function(e,t){return dt.setTimeout(e,t)},Po=Lo(er);function jo(e,t,n){var i=t+"";return Po(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Rt(f,(function(n){var i="_."+n[0];t&n[1]&&!At(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(i),n)))}function Lo(e){var t=0,i=0;return function(){var r=bn(),o=16-(r-i);if(i=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function No(e,t){var i=-1,r=e.length,o=r-1;for(t=t===n?r:t;++i<t;){var s=Vi(i,o),a=e[s];e[s]=e[i],e[i]=a}return e.length=t,e}var Io=function(e){var t=Ls(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(X,(function(e,n,i,r){t.push(i?r.replace(le,"$1"):n||e)})),t}));function $o(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Do(e){if(e instanceof qn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Or(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fo=Ji((function(e,t){return Gs(e)?ui(e,gi(t,1,Gs,!0)):[]})),zo=Ji((function(e,t){var i=Jo(t);return Gs(i)&&(i=n),Gs(e)?ui(e,gi(t,1,Gs,!0),ao(i,2)):[]})),Bo=Ji((function(e,t){var i=Jo(t);return Gs(i)&&(i=n),Gs(e)?ui(e,gi(t,1,Gs,!0),n,i):[]}));function Uo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:fa(n);return r<0&&(r=vn(i+r,0)),Ft(e,ao(t,3),r)}function qo(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==n&&(o=fa(i),o=i<0?vn(r+o,0):xn(o,r-1)),Ft(e,ao(t,3),o,!0)}function Ho(e){return(null==e?0:e.length)?gi(e,1):[]}function Wo(e){return e&&e.length?e[0]:n}var Go=Ji((function(e){var t=jt(e,gr);return t.length&&t[0]===e[0]?Oi(t):[]})),Vo=Ji((function(e){var t=Jo(e),i=jt(e,gr);return t===Jo(i)?t=n:i.pop(),i.length&&i[0]===e[0]?Oi(i,ao(t,2)):[]})),Ko=Ji((function(e){var t=Jo(e),i=jt(e,gr);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?Oi(i,n,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Zo=Ji(Yo);function Yo(e,t){return e&&e.length&&t&&t.length?Wi(e,t):e}var Qo=to((function(e,t){var n=null==e?0:e.length,i=oi(e,t);return Gi(e,jt(t,(function(e){return xo(e,n)?+e:e})).sort(kr)),i}));function Xo(e){return null==e?e:wn.call(e)}var es=Ji((function(e){return lr(gi(e,1,Gs,!0))})),ts=Ji((function(e){var t=Jo(e);return Gs(t)&&(t=n),lr(gi(e,1,Gs,!0),ao(t,2))})),ns=Ji((function(e){var t=Jo(e);return t="function"==typeof t?t:n,lr(gi(e,1,Gs,!0),n,t)}));function is(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Gs(e))return t=vn(e.length,t),!0})),Kt(t,(function(t){return jt(e,Ht(t))}))}function rs(e,t){if(!e||!e.length)return[];var i=is(e);return null==t?i:jt(i,(function(e){return St(t,n,e)}))}var os=Ji((function(e,t){return Gs(e)?ui(e,t):[]})),ss=Ji((function(e){return mr(Ct(e,Gs))})),as=Ji((function(e){var t=Jo(e);return Gs(t)&&(t=n),mr(Ct(e,Gs),ao(t,2))})),cs=Ji((function(e){var t=Jo(e);return t="function"==typeof t?t:n,mr(Ct(e,Gs),n,t)})),ls=Ji(is);var us=Ji((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,rs(e,i)}));function ps(e){var t=Fn(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var fs=to((function(e){var t=e.length,i=t?e[0]:0,r=this.__wrapped__,o=function(t){return oi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof qn&&xo(i)?((r=r.slice(i,+i+(t?1:0))).__actions__.push({func:ds,args:[o],thisArg:n}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ms=Ar((function(e,t,n){Ne.call(e,n)?++e[n]:ri(e,n,1)}));var hs=Mr(Uo),gs=Mr(qo);function vs(e,t){return(qs(e)?Rt:pi)(e,ao(t,3))}function xs(e,t){return(qs(e)?Tt:di)(e,ao(t,3))}var bs=Ar((function(e,t,n){Ne.call(e,n)?e[n].push(t):ri(e,n,[t])}));var ys=Ji((function(e,t,n){var i=-1,r="function"==typeof t,o=Ws(e)?ye(e.length):[];return pi(e,(function(e){o[++i]=r?St(t,e,n):Ci(e,t,n)})),o})),_s=Ar((function(e,t,n){ri(e,n,t)}));function ws(e,t){return(qs(e)?jt:Di)(e,ao(t,3))}var Es=Ar((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ss=Ji((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bo(e,t[0],t[1])?t=[]:n>2&&bo(t[0],t[1],t[2])&&(t=[t[0]]),qi(e,gi(t,1),[])})),ks=ut||function(){return dt.Date.now()};function Rs(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,Zr(e,a,n,n,n,n,t)}function Ts(e,t){var r;if("function"!=typeof t)throw new Oe(i);return e=fa(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Os=Ji((function(e,t,n){var i=1;if(n.length){var r=cn(n,so(Os));i|=s}return Zr(e,i,t,n,r)})),Cs=Ji((function(e,t,n){var i=3;if(n.length){var r=cn(n,so(Cs));i|=s}return Zr(t,i,e,n,r)}));function As(e,t,r){var o,s,a,c,l,u,p=0,d=!1,f=!1,m=!0;if("function"!=typeof e)throw new Oe(i);function h(t){var i=o,r=s;return o=s=n,p=t,c=e.apply(r,i)}function g(e){var i=e-u;return u===n||i>=t||i<0||f&&e-p>=a}function v(){var e=ks();if(g(e))return x(e);l=Ao(v,function(e){var n=t-(e-u);return f?xn(n,a-(e-p)):n}(e))}function x(e){return l=n,m&&o?h(e):(o=s=n,c)}function b(){var e=ks(),i=g(e);if(o=arguments,s=this,u=e,i){if(l===n)return function(e){return p=e,l=Ao(v,t),d?h(e):c}(u);if(f)return _r(l),l=Ao(v,t),h(u)}return l===n&&(l=Ao(v,t)),c}return t=ha(t)||0,Xs(r)&&(d=!!r.leading,a=(f="maxWait"in r)?vn(ha(r.maxWait)||0,t):a,m="trailing"in r?!!r.trailing:m),b.cancel=function(){l!==n&&_r(l),p=0,o=u=s=l=n},b.flush=function(){return l===n?c:x(ks())},b}var Ps=Ji((function(e,t){return li(e,1,t)})),js=Ji((function(e,t,n){return li(e,ha(t)||0,n)}));function Ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(i);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Ls.Cache||Gn),n}function Ns(e){if("function"!=typeof e)throw new Oe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ls.Cache=Gn;var Is=br((function(e,t){var n=(t=1==t.length&&qs(t[0])?jt(t[0],Zt(ao())):jt(gi(t,1),Zt(ao()))).length;return Ji((function(i){for(var r=-1,o=xn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return St(e,this,i)}))})),$s=Ji((function(e,t){var i=cn(t,so($s));return Zr(e,s,n,t,i)})),Ms=Ji((function(e,t){var i=cn(t,so(Ms));return Zr(e,64,n,t,i)})),Ds=to((function(e,t){return Zr(e,c,n,n,n,t)}));function Fs(e,t){return e===t||e!=e&&t!=t}var zs=Wr(ki),Bs=Wr((function(e,t){return e>=t})),Us=Ai(function(){return arguments}())?Ai:function(e){return ea(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")},qs=ye.isArray,Hs=xt?Zt(xt):function(e){return ea(e)&&Si(e)==A};function Ws(e){return null!=e&&Qs(e.length)&&!Zs(e)}function Gs(e){return ea(e)&&Ws(e)}var Vs=vt||hc,Ks=bt?Zt(bt):function(e){return ea(e)&&Si(e)==v};function Js(e){if(!ea(e))return!1;var t=Si(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Zs(e){if(!Xs(e))return!1;var t=Si(e);return t==b||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ys(e){return"number"==typeof e&&e==fa(e)}function Qs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function Xs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=yt?Zt(yt):function(e){return ea(e)&&mo(e)==_};function na(e){return"number"==typeof e||ea(e)&&Si(e)==w}function ia(e){if(!ea(e)||Si(e)!=E)return!1;var t=We(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==De}var ra=_t?Zt(_t):function(e){return ea(e)&&Si(e)==k};var oa=wt?Zt(wt):function(e){return ea(e)&&mo(e)==R};function sa(e){return"string"==typeof e||!qs(e)&&ea(e)&&Si(e)==T}function aa(e){return"symbol"==typeof e||ea(e)&&Si(e)==O}var ca=Et?Zt(Et):function(e){return ea(e)&&Qs(e.length)&&!!ot[Si(e)]};var la=Wr(Mi),ua=Wr((function(e,t){return e<=t}));function pa(e){if(!e)return[];if(Ws(e))return sa(e)?dn(e):Or(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=mo(e);return(t==_?sn:t==R?ln:Fa)(e)}function da(e){return e?(e=ha(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fa(e){var t=da(e),n=t%1;return t==t?n?t-n:t:0}function ma(e){return e?si(fa(e),0,d):0}function ha(e){if("number"==typeof e)return e;if(aa(e))return p;if(Xs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=fe.test(e);return n||he.test(e)?lt(e.slice(2),n?2:8):de.test(e)?p:+e}function ga(e){return Cr(e,Pa(e))}function va(e){return null==e?"":cr(e)}var xa=Pr((function(e,t){if(Eo(t)||Ws(t))Cr(t,Aa(t),e);else for(var n in t)Ne.call(t,n)&&ei(e,n,t[n])})),ba=Pr((function(e,t){Cr(t,Pa(t),e)})),ya=Pr((function(e,t,n,i){Cr(t,Pa(t),e,i)})),_a=Pr((function(e,t,n,i){Cr(t,Aa(t),e,i)})),wa=to(oi);var Ea=Ji((function(e,t){e=ke(e);var i=-1,r=t.length,o=r>2?t[2]:n;for(o&&bo(t[0],t[1],o)&&(r=1);++i<r;)for(var s=t[i],a=Pa(s),c=-1,l=a.length;++c<l;){var u=a[c],p=e[u];(p===n||Fs(p,Pe[u])&&!Ne.call(e,u))&&(e[u]=s[u])}return e})),Sa=Ji((function(e){return e.push(n,Qr),St(La,n,e)}));function ka(e,t,i){var r=null==e?n:wi(e,t);return r===n?i:r}function Ra(e,t){return null!=e&&ho(e,t,Ti)}var Ta=zr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),Xa(nc)),Oa=zr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),ao),Ca=Ji(Ci);function Aa(e){return Ws(e)?Jn(e):Ii(e)}function Pa(e){return Ws(e)?Jn(e,!0):$i(e)}var ja=Pr((function(e,t,n){Bi(e,t,n)})),La=Pr((function(e,t,n,i){Bi(e,t,n,i)})),Na=to((function(e,t){var n={};if(null==e)return n;var i=!1;t=jt(t,(function(t){return t=xr(t,e),i||(i=t.length>1),t})),Cr(e,io(e),n),i&&(n=ai(n,7,Xr));for(var r=t.length;r--;)ur(n,t[r]);return n}));var Ia=to((function(e,t){return null==e?{}:function(e,t){return Hi(e,t,(function(t,n){return Ra(e,n)}))}(e,t)}));function $a(e,t){if(null==e)return{};var n=jt(io(e),(function(e){return[e]}));return t=ao(t),Hi(e,n,(function(e,n){return t(e,n[0])}))}var Ma=Jr(Aa),Da=Jr(Pa);function Fa(e){return null==e?[]:Yt(e,Aa(e))}var za=Ir((function(e,t,n){return t=t.toLowerCase(),e+(n?Ba(t):t)}));function Ba(e){return Ja(va(e).toLowerCase())}function Ua(e){return(e=va(e))&&e.replace(ve,tn).replace(Qe,"")}var qa=Ir((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ha=Ir((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Wa=Nr("toLowerCase");var Ga=Ir((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Va=Ir((function(e,t,n){return e+(n?" ":"")+Ja(t)}));var Ka=Ir((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ja=Nr("toUpperCase");function Za(e,t,i){return e=va(e),(t=i?n:t)===n?function(e){return nt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(ae)||[]}(e):e.match(t)||[]}var Ya=Ji((function(e,t){try{return St(e,n,t)}catch(e){return Js(e)?e:new we(e)}})),Qa=to((function(e,t){return Rt(t,(function(t){t=$o(t),ri(e,t,Os(e[t],e))})),e}));function Xa(e){return function(){return e}}var ec=Dr(),tc=Dr(!0);function nc(e){return e}function ic(e){return Ni("function"==typeof e?e:ai(e,1))}var rc=Ji((function(e,t){return function(n){return Ci(n,e,t)}})),oc=Ji((function(e,t){return function(n){return Ci(e,n,t)}}));function sc(e,t,n){var i=Aa(t),r=_i(t,i);null!=n||Xs(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=_i(t,Aa(t)));var o=!(Xs(n)&&"chain"in n&&!n.chain),s=Zs(e);return Rt(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Or(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Lt([this.value()],arguments))})})),e}function ac(){}var cc=Ur(jt),lc=Ur(Ot),uc=Ur($t);function pc(e){return yo(e)?Ht($o(e)):function(e){return function(t){return wi(t,e)}}(e)}var dc=Hr(),fc=Hr(!0);function mc(){return[]}function hc(){return!1}var gc=Br((function(e,t){return e+t}),0),vc=Vr("ceil"),xc=Br((function(e,t){return e/t}),1),bc=Vr("floor");var yc,_c=Br((function(e,t){return e*t}),1),wc=Vr("round"),Ec=Br((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Oe(i);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Rs,Fn.assign=xa,Fn.assignIn=ba,Fn.assignInWith=ya,Fn.assignWith=_a,Fn.at=wa,Fn.before=Ts,Fn.bind=Os,Fn.bindAll=Qa,Fn.bindKey=Cs,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qs(e)?e:[e]},Fn.chain=ps,Fn.chunk=function(e,t,i){t=(i?bo(e,t,i):t===n)?1:vn(fa(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,s=0,a=ye(ft(r/t));o<r;)a[s++]=nr(e,o,o+=t);return a},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ye(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Lt(qs(n)?Or(n):[n],gi(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Oe(i);return[n(e[0]),e[1]]})):[],Ji((function(n){for(var i=-1;++i<t;){var r=e[i];if(St(r[0],this,n))return St(r[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Aa(e);return function(n){return ci(n,e,t)}}(ai(e,1))},Fn.constant=Xa,Fn.countBy=ms,Fn.create=function(e,t){var n=zn(e);return null==t?n:ii(n,t)},Fn.curry=function e(t,i,r){var o=Zr(t,8,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,i,r){var o=Zr(t,16,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},Fn.debounce=As,Fn.defaults=Ea,Fn.defaultsDeep=Sa,Fn.defer=Ps,Fn.delay=js,Fn.difference=Fo,Fn.differenceBy=zo,Fn.differenceWith=Bo,Fn.drop=function(e,t,i){var r=null==e?0:e.length;return r?nr(e,(t=i||t===n?1:fa(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,i){var r=null==e?0:e.length;return r?nr(e,0,(t=r-(t=i||t===n?1:fa(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?dr(e,ao(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?dr(e,ao(t,3),!0):[]},Fn.fill=function(e,t,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&bo(e,t,i)&&(i=0,r=o),function(e,t,i,r){var o=e.length;for((i=fa(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:fa(r))<0&&(r+=o),r=i>r?0:ma(r);i<r;)e[i++]=t;return e}(e,t,i,r)):[]},Fn.filter=function(e,t){return(qs(e)?Ct:hi)(e,ao(t,3))},Fn.flatMap=function(e,t){return gi(ws(e,t),1)},Fn.flatMapDeep=function(e,t){return gi(ws(e,t),l)},Fn.flatMapDepth=function(e,t,i){return i=i===n?1:fa(i),gi(ws(e,t),i)},Fn.flatten=Ho,Fn.flattenDeep=function(e){return(null==e?0:e.length)?gi(e,l):[]},Fn.flattenDepth=function(e,t){return(null==e?0:e.length)?gi(e,t=t===n?1:fa(t)):[]},Fn.flip=function(e){return Zr(e,512)},Fn.flow=ec,Fn.flowRight=tc,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},Fn.functions=function(e){return null==e?[]:_i(e,Aa(e))},Fn.functionsIn=function(e){return null==e?[]:_i(e,Pa(e))},Fn.groupBy=bs,Fn.initial=function(e){return(null==e?0:e.length)?nr(e,0,-1):[]},Fn.intersection=Go,Fn.intersectionBy=Vo,Fn.intersectionWith=Ko,Fn.invert=Ta,Fn.invertBy=Oa,Fn.invokeMap=ys,Fn.iteratee=ic,Fn.keyBy=_s,Fn.keys=Aa,Fn.keysIn=Pa,Fn.map=ws,Fn.mapKeys=function(e,t){var n={};return t=ao(t,3),bi(e,(function(e,i,r){ri(n,t(e,i,r),e)})),n},Fn.mapValues=function(e,t){var n={};return t=ao(t,3),bi(e,(function(e,i,r){ri(n,i,t(e,i,r))})),n},Fn.matches=function(e){return Fi(ai(e,1))},Fn.matchesProperty=function(e,t){return zi(e,ai(t,1))},Fn.memoize=Ls,Fn.merge=ja,Fn.mergeWith=La,Fn.method=rc,Fn.methodOf=oc,Fn.mixin=sc,Fn.negate=Ns,Fn.nthArg=function(e){return e=fa(e),Ji((function(t){return Ui(t,e)}))},Fn.omit=Na,Fn.omitBy=function(e,t){return $a(e,Ns(ao(t)))},Fn.once=function(e){return Ts(2,e)},Fn.orderBy=function(e,t,i,r){return null==e?[]:(qs(t)||(t=null==t?[]:[t]),qs(i=r?n:i)||(i=null==i?[]:[i]),qi(e,t,i))},Fn.over=cc,Fn.overArgs=Is,Fn.overEvery=lc,Fn.overSome=uc,Fn.partial=$s,Fn.partialRight=Ms,Fn.partition=Es,Fn.pick=Ia,Fn.pickBy=$a,Fn.property=pc,Fn.propertyOf=function(e){return function(t){return null==e?n:wi(e,t)}},Fn.pull=Zo,Fn.pullAll=Yo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wi(e,t,ao(n,2)):e},Fn.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Wi(e,t,n,i):e},Fn.pullAt=Qo,Fn.range=dc,Fn.rangeRight=fc,Fn.rearg=Ds,Fn.reject=function(e,t){return(qs(e)?Ct:hi)(e,Ns(ao(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=ao(t,3);++i<o;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Gi(e,r),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Oe(i);return Ji(e,t=t===n?t:fa(t))},Fn.reverse=Xo,Fn.sampleSize=function(e,t,i){return t=(i?bo(e,t,i):t===n)?1:fa(t),(qs(e)?Yn:Yi)(e,t)},Fn.set=function(e,t,n){return null==e?e:Qi(e,t,n)},Fn.setWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Qi(e,t,i,r)},Fn.shuffle=function(e){return(qs(e)?Qn:tr)(e)},Fn.slice=function(e,t,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&bo(e,t,i)?(t=0,i=r):(t=null==t?0:fa(t),i=i===n?r:fa(i)),nr(e,t,i)):[]},Fn.sortBy=Ss,Fn.sortedUniq=function(e){return e&&e.length?sr(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?sr(e,ao(t,2)):[]},Fn.split=function(e,t,i){return i&&"number"!=typeof i&&bo(e,t,i)&&(t=i=n),(i=i===n?d:i>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!ra(t))&&!(t=cr(t))&&on(e)?yr(dn(e),0,i):e.split(t,i):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Oe(i);return t=null==t?0:vn(fa(t),0),Ji((function(n){var i=n[t],r=yr(n,0,t);return i&&Lt(r,i),St(e,this,r)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?nr(e,1,t):[]},Fn.take=function(e,t,i){return e&&e.length?nr(e,0,(t=i||t===n?1:fa(t))<0?0:t):[]},Fn.takeRight=function(e,t,i){var r=null==e?0:e.length;return r?nr(e,(t=r-(t=i||t===n?1:fa(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?dr(e,ao(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?dr(e,ao(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Oe(i);return Xs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),As(e,t,{leading:r,maxWait:t,trailing:o})},Fn.thru=ds,Fn.toArray=pa,Fn.toPairs=Ma,Fn.toPairsIn=Da,Fn.toPath=function(e){return qs(e)?jt(e,$o):aa(e)?[e]:Or(Io(va(e)))},Fn.toPlainObject=ga,Fn.transform=function(e,t,n){var i=qs(e),r=i||Vs(e)||ca(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:Xs(e)&&Zs(o)?zn(We(e)):{}}return(r?Rt:bi)(e,(function(e,i,r){return t(n,e,i,r)})),n},Fn.unary=function(e){return Rs(e,1)},Fn.union=es,Fn.unionBy=ts,Fn.unionWith=ns,Fn.uniq=function(e){return e&&e.length?lr(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?lr(e,ao(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?lr(e,n,t):[]},Fn.unset=function(e,t){return null==e||ur(e,t)},Fn.unzip=is,Fn.unzipWith=rs,Fn.update=function(e,t,n){return null==e?e:pr(e,t,vr(n))},Fn.updateWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:pr(e,t,vr(i),r)},Fn.values=Fa,Fn.valuesIn=function(e){return null==e?[]:Yt(e,Pa(e))},Fn.without=os,Fn.words=Za,Fn.wrap=function(e,t){return $s(vr(t),e)},Fn.xor=ss,Fn.xorBy=as,Fn.xorWith=cs,Fn.zip=ls,Fn.zipObject=function(e,t){return hr(e||[],t||[],ei)},Fn.zipObjectDeep=function(e,t){return hr(e||[],t||[],Qi)},Fn.zipWith=us,Fn.entries=Ma,Fn.entriesIn=Da,Fn.extend=ba,Fn.extendWith=ya,sc(Fn,Fn),Fn.add=gc,Fn.attempt=Ya,Fn.camelCase=za,Fn.capitalize=Ba,Fn.ceil=vc,Fn.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=ha(i))==i?i:0),t!==n&&(t=(t=ha(t))==t?t:0),si(ha(e),t,i)},Fn.clone=function(e){return ai(e,4)},Fn.cloneDeep=function(e){return ai(e,5)},Fn.cloneDeepWith=function(e,t){return ai(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return ai(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||ci(e,t,Aa(t))},Fn.deburr=Ua,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=xc,Fn.endsWith=function(e,t,i){e=va(e),t=cr(t);var r=e.length,o=i=i===n?r:si(fa(i),0,r);return(i-=t.length)>=0&&e.slice(i,o)==t},Fn.eq=Fs,Fn.escape=function(e){return(e=va(e))&&V.test(e)?e.replace(W,nn):e},Fn.escapeRegExp=function(e){return(e=va(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Fn.every=function(e,t,i){var r=qs(e)?Ot:fi;return i&&bo(e,t,i)&&(t=n),r(e,ao(t,3))},Fn.find=hs,Fn.findIndex=Uo,Fn.findKey=function(e,t){return Dt(e,ao(t,3),bi)},Fn.findLast=gs,Fn.findLastIndex=qo,Fn.findLastKey=function(e,t){return Dt(e,ao(t,3),yi)},Fn.floor=bc,Fn.forEach=vs,Fn.forEachRight=xs,Fn.forIn=function(e,t){return null==e?e:vi(e,ao(t,3),Pa)},Fn.forInRight=function(e,t){return null==e?e:xi(e,ao(t,3),Pa)},Fn.forOwn=function(e,t){return e&&bi(e,ao(t,3))},Fn.forOwnRight=function(e,t){return e&&yi(e,ao(t,3))},Fn.get=ka,Fn.gt=zs,Fn.gte=Bs,Fn.has=function(e,t){return null!=e&&ho(e,t,Ri)},Fn.hasIn=Ra,Fn.head=Wo,Fn.identity=nc,Fn.includes=function(e,t,n,i){e=Ws(e)?e:Fa(e),n=n&&!i?fa(n):0;var r=e.length;return n<0&&(n=vn(r+n,0)),sa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&zt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:fa(n);return r<0&&(r=vn(i+r,0)),zt(e,t,r)},Fn.inRange=function(e,t,i){return t=da(t),i===n?(i=t,t=0):i=da(i),function(e,t,n){return e>=xn(t,n)&&e<vn(t,n)}(e=ha(e),t,i)},Fn.invoke=Ca,Fn.isArguments=Us,Fn.isArray=qs,Fn.isArrayBuffer=Hs,Fn.isArrayLike=Ws,Fn.isArrayLikeObject=Gs,Fn.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Si(e)==g},Fn.isBuffer=Vs,Fn.isDate=Ks,Fn.isElement=function(e){return ea(e)&&1===e.nodeType&&!ia(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ws(e)&&(qs(e)||"string"==typeof e||"function"==typeof e.splice||Vs(e)||ca(e)||Us(e)))return!e.length;var t=mo(e);if(t==_||t==R)return!e.size;if(Eo(e))return!Ii(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Pi(e,t)},Fn.isEqualWith=function(e,t,i){var r=(i="function"==typeof i?i:n)?i(e,t):n;return r===n?Pi(e,t,n,i):!!r},Fn.isError=Js,Fn.isFinite=function(e){return"number"==typeof e&&Mt(e)},Fn.isFunction=Zs,Fn.isInteger=Ys,Fn.isLength=Qs,Fn.isMap=ta,Fn.isMatch=function(e,t){return e===t||ji(e,t,lo(t))},Fn.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,ji(e,t,lo(t),i)},Fn.isNaN=function(e){return na(e)&&e!=+e},Fn.isNative=function(e){if(wo(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Li(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=na,Fn.isObject=Xs,Fn.isObjectLike=ea,Fn.isPlainObject=ia,Fn.isRegExp=ra,Fn.isSafeInteger=function(e){return Ys(e)&&e>=-9007199254740991&&e<=u},Fn.isSet=oa,Fn.isString=sa,Fn.isSymbol=aa,Fn.isTypedArray=ca,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return ea(e)&&mo(e)==C},Fn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Si(e)},Fn.join=function(e,t){return null==e?"":Wt.call(e,t)},Fn.kebabCase=qa,Fn.last=Jo,Fn.lastIndexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==n&&(o=(o=fa(i))<0?vn(r+o,0):xn(o,r-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):Ft(e,Ut,o,!0)},Fn.lowerCase=Ha,Fn.lowerFirst=Wa,Fn.lt=la,Fn.lte=ua,Fn.max=function(e){return e&&e.length?mi(e,nc,ki):n},Fn.maxBy=function(e,t){return e&&e.length?mi(e,ao(t,2),ki):n},Fn.mean=function(e){return qt(e,nc)},Fn.meanBy=function(e,t){return qt(e,ao(t,2))},Fn.min=function(e){return e&&e.length?mi(e,nc,Mi):n},Fn.minBy=function(e,t){return e&&e.length?mi(e,ao(t,2),Mi):n},Fn.stubArray=mc,Fn.stubFalse=hc,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=_c,Fn.nth=function(e,t){return e&&e.length?Ui(e,fa(t)):n},Fn.noConflict=function(){return dt._===this&&(dt._=Fe),this},Fn.noop=ac,Fn.now=ks,Fn.pad=function(e,t,n){e=va(e);var i=(t=fa(t))?pn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return qr(mt(r),n)+e+qr(ft(r),n)},Fn.padEnd=function(e,t,n){e=va(e);var i=(t=fa(t))?pn(e):0;return t&&i<t?e+qr(t-i,n):e},Fn.padStart=function(e,t,n){e=va(e);var i=(t=fa(t))?pn(e):0;return t&&i<t?qr(t-i,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(va(e).replace(ne,""),t||0)},Fn.random=function(e,t,i){if(i&&"boolean"!=typeof i&&bo(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=da(e),t===n?(t=e,e=0):t=da(t)),e>t){var r=e;e=t,t=r}if(i||e%1||t%1){var o=_n();return xn(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Vi(e,t)},Fn.reduce=function(e,t,n){var i=qs(e)?Nt:Gt,r=arguments.length<3;return i(e,ao(t,4),n,r,pi)},Fn.reduceRight=function(e,t,n){var i=qs(e)?It:Gt,r=arguments.length<3;return i(e,ao(t,4),n,r,di)},Fn.repeat=function(e,t,i){return t=(i?bo(e,t,i):t===n)?1:fa(t),Ki(va(e),t)},Fn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,i){var r=-1,o=(t=xr(t,e)).length;for(o||(o=1,e=n);++r<o;){var s=null==e?n:e[$o(t[r])];s===n&&(r=o,s=i),e=Zs(s)?s.call(e):s}return e},Fn.round=wc,Fn.runInContext=e,Fn.sample=function(e){return(qs(e)?Zn:Zi)(e)},Fn.size=function(e){if(null==e)return 0;if(Ws(e))return sa(e)?pn(e):e.length;var t=mo(e);return t==_||t==R?e.size:Ii(e).length},Fn.snakeCase=Ga,Fn.some=function(e,t,i){var r=qs(e)?$t:ir;return i&&bo(e,t,i)&&(t=n),r(e,ao(t,3))},Fn.sortedIndex=function(e,t){return rr(e,t)},Fn.sortedIndexBy=function(e,t,n){return or(e,t,ao(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=rr(e,t);if(i<n&&Fs(e[i],t))return i}return-1},Fn.sortedLastIndex=function(e,t){return rr(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return or(e,t,ao(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=rr(e,t,!0)-1;if(Fs(e[n],t))return n}return-1},Fn.startCase=Va,Fn.startsWith=function(e,t,n){return e=va(e),n=null==n?0:si(fa(n),0,e.length),t=cr(t),e.slice(n,n+t.length)==t},Fn.subtract=Ec,Fn.sum=function(e){return e&&e.length?Vt(e,nc):0},Fn.sumBy=function(e,t){return e&&e.length?Vt(e,ao(t,2)):0},Fn.template=function(e,t,i){var r=Fn.templateSettings;i&&bo(e,t,i)&&(t=n),e=va(e),t=ya({},t,r,Yr);var o,s,a=ya({},t.imports,r.imports,Yr),c=Aa(a),l=Yt(a,c),u=0,p=t.interpolate||xe,d="__p += '",f=Re((t.escape||xe).source+"|"+p.source+"|"+(p===Z?ue:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),m="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,(function(t,n,i,r,a,c){return i||(i=r),d+=e.slice(u,c).replace(be,rn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var h=Ne.call(t,"variable")&&t.variable;if(h){if(ce.test(h))throw new we("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(B,""):d).replace(U,"$1").replace(q,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Ya((function(){return Ee(c,m+"return "+d).apply(n,l)}));if(g.source=d,Js(g))throw g;return g},Fn.times=function(e,t){if((e=fa(e))<1||e>u)return[];var n=d,i=xn(e,d);t=ao(t),e-=d;for(var r=Kt(i,t);++n<e;)t(n);return r},Fn.toFinite=da,Fn.toInteger=fa,Fn.toLength=ma,Fn.toLower=function(e){return va(e).toLowerCase()},Fn.toNumber=ha,Fn.toSafeInteger=function(e){return e?si(fa(e),-9007199254740991,u):0===e?e:0},Fn.toString=va,Fn.toUpper=function(e){return va(e).toUpperCase()},Fn.trim=function(e,t,i){if((e=va(e))&&(i||t===n))return Jt(e);if(!e||!(t=cr(t)))return e;var r=dn(e),o=dn(t);return yr(r,Xt(r,o),en(r,o)+1).join("")},Fn.trimEnd=function(e,t,i){if((e=va(e))&&(i||t===n))return e.slice(0,fn(e)+1);if(!e||!(t=cr(t)))return e;var r=dn(e);return yr(r,0,en(r,dn(t))+1).join("")},Fn.trimStart=function(e,t,i){if((e=va(e))&&(i||t===n))return e.replace(ne,"");if(!e||!(t=cr(t)))return e;var r=dn(e);return yr(r,Xt(r,dn(t))).join("")},Fn.truncate=function(e,t){var i=30,r="...";if(Xs(t)){var o="separator"in t?t.separator:o;i="length"in t?fa(t.length):i,r="omission"in t?cr(t.omission):r}var s=(e=va(e)).length;if(on(e)){var a=dn(e);s=a.length}if(i>=s)return e;var c=i-pn(r);if(c<1)return r;var l=a?yr(a,0,c).join(""):e.slice(0,c);if(o===n)return l+r;if(a&&(c+=l.length-c),ra(o)){if(e.slice(c).search(o)){var u,p=l;for(o.global||(o=Re(o.source,va(pe.exec(o))+"g")),o.lastIndex=0;u=o.exec(p);)var d=u.index;l=l.slice(0,d===n?c:d)}}else if(e.indexOf(cr(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r},Fn.unescape=function(e){return(e=va(e))&&G.test(e)?e.replace(H,mn):e},Fn.uniqueId=function(e){var t=++Ie;return va(e)+t},Fn.upperCase=Ka,Fn.upperFirst=Ja,Fn.each=vs,Fn.eachRight=xs,Fn.first=Wo,sc(Fn,(yc={},bi(Fn,(function(e,t){Ne.call(Fn.prototype,t)||(yc[t]=e)})),yc),{chain:!1}),Fn.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),Rt(["drop","take"],(function(e,t){qn.prototype[e]=function(i){i=i===n?1:vn(fa(i),0);var r=this.__filtered__&&!t?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(i,r.__takeCount__):r.__views__.push({size:xn(i,d),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Rt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(nc)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Ji((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Ci(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Ns(ao(e)))},qn.prototype.slice=function(e,t){e=fa(e);var i=this;return i.__filtered__&&(e>0||t<0)?new qn(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=fa(t))<0?i.dropRight(-t):i.take(t-e)),i)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(d)},bi(qn.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Fn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof qn,l=a[0],u=c||qs(t),p=function(e){var t=o.apply(Fn,Lt([e],a));return r&&d?t[0]:t};u&&i&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,m=s&&!d,h=c&&!f;if(!s&&u){t=h?t:new qn(this);var g=e.apply(t,a);return g.__actions__.push({func:ds,args:[p],thisArg:n}),new Un(g,d)}return m&&h?e.apply(this,a):(g=this.thru(p),m?r?g.value()[0]:g.value():g)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(qs(r)?r:[],e)}return this[n]((function(n){return t.apply(qs(n)?n:[],e)}))}})),bi(qn.prototype,(function(e,t){var n=Fn[t];if(n){var i=n.name+"";Ne.call(An,i)||(An[i]=[]),An[i].push({name:t,func:n})}})),An[Fr(n,2).name]=[{name:"wrapper",func:n}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Or(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Or(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Or(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qs(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=xn(t,e+s);break;case"takeRight":e=vn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=o.start,a=o.end,c=a-s,l=i?a:s-1,u=this.__iteratees__,p=u.length,d=0,f=xn(c,this.__takeCount__);if(!n||!i&&r==c&&f==c)return fr(e,this.__actions__);var m=[];e:for(;c--&&d<f;){for(var h=-1,g=e[l+=t];++h<p;){var v=u[h],x=v.iteratee,b=v.type,y=x(g);if(2==b)g=y;else if(!y){if(1==b)continue e;break e}}m[d++]=g}return m},Fn.prototype.at=fs,Fn.prototype.chain=function(){return ps(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,i=this;i instanceof Bn;){var r=Do(i);r.__index__=0,r.__values__=n,t?o.__wrapped__=r:t=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:ds,args:[Xo],thisArg:n}),new Un(t,this.__chain__)}return this.thru(Xo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return fr(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Ze&&(Fn.prototype[Ze]=function(){return this}),Fn}();mt?((mt.exports=hn)._=hn,ft._=hn):dt._=hn}).call(ze)}(jx,jx.exports);var Lx=jx.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringSimilarity=void 0;e.stringSimilarity=function(e,t,n,i){if(void 0===n&&(n=2),void 0===i&&(i=!1),i||(e=e.toLowerCase(),t=t.toLowerCase()),e.length<n||t.length<n)return 0;for(var r=new Map,o=0;o<e.length-(n-1);o++){var s=e.substr(o,n);r.set(s,r.has(s)?r.get(s)+1:1)}for(var a=0,c=0;c<t.length-(n-1);c++){var l=t.substr(c,n),u=r.has(l)?r.get(l):0;u>0&&(r.set(l,u-1),a++)}return 2*a/(e.length+t.length-2*(n-1))},e.default=e.stringSimilarity}({});var Nx=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ix=Nx,$x=Object.create,Mx=function(){function e(){}return function(t){if(!Ix(t))return{};if($x)return $x(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Dx=function(){},Fx=Mx,zx=Dx;function Bx(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Bx.prototype=Fx(zx.prototype),Bx.prototype.constructor=Bx;var Ux=Bx;var qx=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},Hx="object"==typeof ze&&ze&&ze.Object===Object&&ze,Wx="object"==typeof self&&self&&self.Object===Object&&self,Gx=Hx||Wx||Function("return this")(),Vx=Gx.Symbol,Kx=Vx,Jx=Object.prototype,Zx=Jx.hasOwnProperty,Yx=Jx.toString,Qx=Kx?Kx.toStringTag:void 0;var Xx=function(e){var t=Zx.call(e,Qx),n=e[Qx];try{e[Qx]=void 0;var i=!0}catch(e){}var r=Yx.call(e);return i&&(t?e[Qx]=n:delete e[Qx]),r},eb=Object.prototype.toString;var tb=Xx,nb=function(e){return eb.call(e)},ib=Vx?Vx.toStringTag:void 0;var rb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ib&&ib in Object(e)?tb(e):nb(e)};var ob=function(e){return null!=e&&"object"==typeof e},sb=rb,ab=ob;var cb=function(e){return ab(e)&&"[object Arguments]"==sb(e)},lb=ob,ub=Object.prototype,pb=ub.hasOwnProperty,db=ub.propertyIsEnumerable,fb=cb(function(){return arguments}())?cb:function(e){return lb(e)&&pb.call(e,"callee")&&!db.call(e,"callee")},mb=Array.isArray,hb=fb,gb=mb,vb=Vx?Vx.isConcatSpreadable:void 0;var xb=qx,bb=function(e){return gb(e)||hb(e)||!!(vb&&e&&e[vb])};var yb=function e(t,n,i,r,o){var s=-1,a=t.length;for(i||(i=bb),o||(o=[]);++s<a;){var c=t[s];n>0&&i(c)?n>1?e(c,n-1,i,r,o):xb(o,c):r||(o[o.length]=c)}return o},_b=yb;var wb=function(e){return(null==e?0:e.length)?_b(e,1):[]};var Eb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Sb=Math.max;var kb=function(e,t,n){return t=Sb(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=Sb(i.length-t,0),s=Array(o);++r<o;)s[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(s),Eb(e,this,a)}};var Rb=function(e){return function(){return e}},Tb=rb,Ob=Nx;var Cb,Ab=function(e){if(!Ob(e))return!1;var t=Tb(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Pb=Gx["__core-js_shared__"],jb=(Cb=/[^.]+$/.exec(Pb&&Pb.keys&&Pb.keys.IE_PROTO||""))?"Symbol(src)_1."+Cb:"";var Lb=function(e){return!!jb&&jb in e},Nb=Function.prototype.toString;var Ib=Ab,$b=Lb,Mb=Nx,Db=function(e){if(null!=e){try{return Nb.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Fb=/^\[object .+?Constructor\]$/,zb=Function.prototype,Bb=Object.prototype,Ub=zb.toString,qb=Bb.hasOwnProperty,Hb=RegExp("^"+Ub.call(qb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Wb=function(e){return!(!Mb(e)||$b(e))&&(Ib(e)?Hb:Fb).test(Db(e))},Gb=function(e,t){return null==e?void 0:e[t]};var Vb=function(e,t){var n=Gb(e,t);return Wb(n)?n:void 0},Kb=Vb,Jb=function(){try{var e=Kb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Zb=Rb,Yb=Jb,Qb=Yb?function(e,t){return Yb(e,"toString",{configurable:!0,enumerable:!1,value:Zb(t),writable:!0})}:function(e){return e},Xb=Qb,ey=Date.now;var ty=function(e){var t=0,n=0;return function(){var i=ey(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Xb),ny=wb,iy=kb,ry=ty;var oy=function(e){return ry(iy(e,void 0,ny),e+"")},sy=Vb(Gx,"WeakMap");var ay=sy&&new sy,cy=ay?function(e){return ay.get(e)}:function(){},ly={},uy=Object.prototype.hasOwnProperty;var py=function(e){for(var t=e.name+"",n=ly[t],i=uy.call(ly,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t},dy=Mx,fy=Dx;function my(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}my.prototype=dy(fy.prototype),my.prototype.constructor=my;var hy=my;var gy=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},vy=hy,xy=Ux,by=gy;var yy=hy,_y=Ux,wy=Dx,Ey=mb,Sy=ob,ky=function(e){if(e instanceof vy)return e.clone();var t=new xy(e.__wrapped__,e.__chain__);return t.__actions__=by(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},Ry=Object.prototype.hasOwnProperty;function Ty(e){if(Sy(e)&&!Ey(e)&&!(e instanceof yy)){if(e instanceof _y)return e;if(Ry.call(e,"__wrapped__"))return ky(e)}return new _y(e)}Ty.prototype=wy.prototype,Ty.prototype.constructor=Ty;var Oy=hy,Cy=cy,Ay=py,Py=Ty;var jy=Ux,Ly=oy,Ny=cy,Iy=py,$y=mb,My=function(e){var t=Ay(e),n=Py[t];if("function"!=typeof n||!(t in Oy.prototype))return!1;if(e===n)return!0;var i=Cy(n);return!!i&&e===i[0]};var Dy,Fy=function(e){return Ly((function(t){var n=t.length,i=n,r=jy.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new TypeError("Expected a function");if(r&&!s&&"wrapper"==Iy(o))var s=new jy([],!0)}for(i=s?i:n;++i<n;){o=t[i];var a=Iy(o),c="wrapper"==a?Ny(o):void 0;s=c&&My(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Iy(c[0])].apply(s,c[3]):1==o.length&&My(o)?s[a]():s.thru(o)}return function(){var e=arguments,i=e[0];if(s&&1==e.length&&$y(i))return s.plant(i).value();for(var r=0,o=n?t[r].apply(this,e):i;++r<n;)o=t[r].call(this,o);return o}}))};Fy(),function(e){e.EDIT="edit",e.PREVIEW="preview"}(Dy||(Dy={}));for(var zy,By,Uy,qy,Hy,Wy,Gy,Vy,Ky,Jy,Zy,Yy,Qy,Xy,e_,t_,n_,i_,r_,o_,s_,a_,c_,l_,u_,p_,d_,f_,m_,h_=0;h_<4;h_++)(4294967296*Math.random()).toString(16);!function(e){e.VERSION_UPDATE_TITLE="version.update.title",e.VERSION_UPDATE_INSTALL="version.update.install",e.VERSION_UPDATE_IGNORE="version.update.ignore",e.COMMON_GENERATE_ERROR="common.generate.error",e.COMMON_UNKNOWN_ERROR="common.unknown.error",e.COMMON_REQUEST_ERROR="common.request.error",e.COMMON_CODE="common.code",e.COMMON_FUNCTION="common.function",e.COMMON_USING="common.using",e.COMMON_WITHOUT="common.without",e.COMMON_COMMA="common.comma",e.COMMON_FRAMEWORK="common.framework",e.COMMON_RELATED="common.related",e.COMMON_PROMPT="common.prompt",e.COMMON_THINKING="common.thinking",e.COMMON_SEARCH_RESULT="common.searchResult",e.COMMON_AUTHORIZE="common.authorize",e.COMMON_DENY="common.deny",e.COMMON_NAVIGATE_TO_SETTING="common.navigateToSetting",e.COMMON_CUSTOMIZE_ERROR="common.customize.error",e.COMMON_PRIVATE_ERROR="common.private.error",e.LOG_LEVEL_PLACEHOLDER="log.level.placeholder",e.DO_NOT_SHOW_AGAIN="do.not.show.again"}(zy||(zy={})),function(e){e.NOT_SUPPORT="statusBar.not.support.text",e.ENABLE="statusBar.enable.text",e.NO_SUGGESTIONS="statusBar.nosuggestions",e.TITLE="statusBar.title"}(By||(By={})),function(e){e.PANEL_ACCEPT="completion.panel.accept.text",e.PANEL_ACCEPT_TOOLTIP="completion.panel.accept.tooltip",e.PANEL_CODELENS_DISABLED="completion.panel.codelens.disabled.text",e.PANEL_TITLE="completion.panel.title",e.PANEL_EMPTY="completion.panel.empty.text",e.PANEL_HIDDEN="completion.panel.hidden.text",e.PANEL_SYNTHESIZING="completion.panel.synthesizing.text",e.DECORATION_BASIC="completion.decoration.basic",e.DECORATION_WITH_WIDGET="completion.decoration.widget.text",e.DECORATION_ACCEPT_LINE="completion.decoration.acceptLine.text"}(Uy||(Uy={})),function(e){e.EMPTY_TEXT="nl2code.empty.text",e.NO_SELECTION="nl2code.no.selection.text"}(qy||(qy={})),function(e){e.CODELENS_TITLE="optimize.codelens.title",e.CODELENS_TOOLTIP="optimize.codelens.tooltip",e.OPTIMIZE_ERROR="optimize.error",e.OPTIMIZE_CODE_PROMPT="optimize.code.prompt",e.NO_SELECTION="optimize.no.selection.text",e.OPTIMIZE_FUNCTION_PROMPT="optimize.function.prompt"}(Hy||(Hy={})),function(e){e.EXPLAIN_SELECTED_CODE="explain.codeActions.title",e.OPTIMIZE_SELECTED_CODE="optimize.codeActions.title",e.INLINECHAT_SELECTED_CODE="inlinechat.codeActions.title"}(Wy||(Wy={})),function(e){e.CODELENS_TITLE="chatTrial.codelens.title"}(Gy||(Gy={})),function(e){e.CODELENS_TITLE="inlinechat.codelens.title"}(Vy||(Vy={})),function(e){e.CHAT_TIPS_TITLE="chatTips.selectedCode.title",e.CHAT_TIPS_CODE_BLANK_ROW_TITLE="chatTips.blankRow.title"}(Ky||(Ky={})),function(e){e.GENERATING_TITLE="decorations.generating.title",e.LINE_COMMENT_CODE_TRIGGER_TITLE="decorations.lineComent.trigger.title"}(Jy||(Jy={})),function(e){e.PROMPT="comment.prompt",e.CODELENS_TITLE="comment.codelens.title",e.CODELENS_TOOLTIP="comment.codelens.tooltip",e.INLINECHAT_TITLE="comment.inlinechat.title",e.GENERATE_ERROR="comment.generate.error"}(Zy||(Zy={})),function(e){e.PROMPT="docstring.prompt",e.CODELENS_TITLE="docstring.codelens.title",e.CODELENS_TOOLTIP="docstring.codelens.tooltip",e.INLINECHAT_TITLE="docstring.inlinechat.title",e.GENERATE_ERROR="docstring.generate.error"}(Yy||(Yy={})),function(e){e.PROMPT="split.prompt",e.CODELENS_TITLE="split.codelens.title",e.CODELENS_TOOLTIP="split.codelens.tooltip",e.GENERATE_ERROR="split.generate.error"}(Qy||(Qy={})),function(e){e.CODELENS_TITLE="explain.codelens.title",e.CODELENS_TOOLTIP="explain.codelens.tooltip",e.GENERATE_ERROR="explain.generate.error",e.NO_SELECTION="explain.no.selection.text",e.PROMPT="explain.prompt"}(Xy||(Xy={})),function(e){e.CODELENS_TITLE="unitTest.codelens.title",e.CODELENS_TOOLTIP="unitTest.codelens.tooltip",e.GENERATE_ERROR="unitTest.generate.error",e.ACCEPT_ERROR="unitTest.accept.error",e.PROMPT="unitTest.prompt"}(e_||(e_={})),function(e){e.PROMPT="inlineLog.prompt",e.CODELENS_TITLE="inlineLog.codelens.title",e.CODELENS_TOOLTIP="inlineLog.codelens.tooltip",e.GENERATE_ERROR="inlineLog.generate.error"}(t_||(t_={})),function(e){e.TITLE="diff.title",e.ACCEPT="diff.accept",e.REJECT="diff.reject",e.OPEN_DUAL_SCREEN_DIFF="diff.dualScreenDiff.open"}(n_||(n_={})),function(e){e.WEBVIEW_TITLE="chat.webview.title",e.NO_INSERT_POSITION="chat.no.insertPosition.text"}(i_||(i_={})),function(e){e.PATH_ERROR="accept.path.error"}(r_||(r_={})),function(e){e.ACTION="quickFix.action.text",e.PROMPT="quickFix.prompt",e.PROMPT_SUFFIX="quickFix.prompt.suffix",e.GENERATE_ERROR="quickFix.generate.error",e.FIX_MAX_LEN="quickFix.fix.maxLen.text"}(o_||(o_={})),function(e){e.LOGIN_MESSAGE="login.message",e.LOGIN_ACTION_TEXT="login.action.text",e.LOGIN_ACTION_WITH_LICENSE="login.action.withLicense.text",e.LOGIN_DEVICE_ERROR="login.device.error",e.LOGIN_LOGGING_IN="login.loggingIn.text",e.LOGIN_SUCCESS="login.success",e.LOGIN_IDE_SUCCESS="login.ide.success",e.LOGIN_FAILED="login.failed",e.LOGIN_TOKEN_ERROR="login.token.error",e.LOGIN_KEY_ERROR="login.key.error",e.LOGIN_INTERNAL_USER="login.internalUser.message",e.LOGIN_INSTALL_INTERNAL="login.install.internal",e.LOGIN_AGREEMENT="login.agreement.message",e.RENEW_ACTION="renew.action.text",e.QUICK_PICK_PLACEHOLDER="command.quick.pick.placeholder"}(s_||(s_={})),function(e){e.TOOLTIP="regexHover.tooltip",e.PROMPT="regexHover.prompt"}(a_||(a_={})),function(e){e.MAXIMUM_FILES="embeddings.maximum.files.message",e.PROGRESS="embeddings.progress.message",e.PROGRESS_TOOLTIP="embeddings.progress.tooltip.message"}(c_||(c_={})),function(e){e.TITLE="openPlatform.title.text",e.WEBVIEW_TITLE="openPlatform.webview.title"}(l_||(l_={})),function(e){e.MODAL_AUTH_TITLE="autoWork.auth.modal.title",e.INDEXING_MESSAGE="autoWork.indexing.message",e.CONNECTION_INTERRUPT="autoWork.connection.interrupt.message",e.INDEXING_REMINDER="autoWork.indexing.reminder.text",e.ERROR="autoWork.error",e.TASK_THOUGHT="autoWork.task.thought",e.TASK_ANSWER="autoWork.task.answer",e.AUTO_DEBUG="autoWork.autoDebug",e.AUTO_DEBUG_PROMPT="autoWork.autoDebug.prompt",e.AUTO_DEBUG_STAGE_THOUGHT="autoWork.autoDebug.thought",e.AUTO_DEBUG_STAGE_SEARCH="autoWork.autoDebug.search",e.AUTO_DEBUG_STAGE_ANSWER="autoWork.autoDebug.answer"}(u_||(u_={})),function(e){e.PERMISSION_WORKSPACE="comatePlus.permission.workspace.text",e.PERMISSION_DISK="comatePlus.permission.disk.text",e.PERMISSION_USER="comatePlus.permission.user.text",e.AUTH_MESSAGE="comatePlus.auth.message",e.USER_INFO_ERROR="comatePlus.userInfo.error",e.CLEAR_PERMISSION="comatePlus.clear.permission",e.SPLIT_ERROR="comatePlus.split.error",e.NO_SELECTION="comatePlus.noSelection",e.NOT_A_FUNCTION="comatePlus.not.function.text"}(p_||(p_={})),function(e){e.INLINECHAT_GENERATE="inlinechat.placeholder.generate",e.INLINECHAT_SELECTED="inlinechat.placeholder.selected",e.INLINECHAT_UNSELECTED="inlinechat.placeholder.unselected",e.INLINECHAT_TITLE="inlinechat.title",e.INLINCHAT_ERROR="inlinechat.placeholder.error"}(d_||(d_={})),function(e){e.GENERATE_ERROR="messageGenerate.generate.error",e.NO_DIFF_ERROR="messageGenerate.noDiff.error",e.GET_DIFF_ERROR="messageGenerate.getDiff.error",e.EMPTY_CONTENT_ERROR="messageGenerate.emptyContent.error"}(f_||(f_={})),function(e){e.GENERATE_ERROR="kernel.zulu.error"}(m_||(m_={}));const g_=[],v_={enableInlineSuggestion:void 0,superCompletion:!0,completionMode:{autoCompletion:!0,manualCompletion:!0},disabledLanguage:[],completionSpeedAndAccuracy:"extremeAccurate",codelensDisplayMode:"expand",enableDocstringOutputInEditor:{functionDocstringOutputInEditor:!0,inlineCommentOutputInEditor:!0},enableStreamingSession:void 0,enableCodelens:{enableInlineUnitTest:!0,enableInlineExplain:!0,enableInlineDocstring:!0,enableInlineSplit:!0,enableInlineComment:!0,enableInlineOptimize:!0,enableInlineLog:!0},username:"",license:"",enableSecurityScanBox:void 0,displayLanguage:"zh-cn",enableSecurityEnhancement:!1,enableSecurityIntelligence:void 0,enableDebugIntelligence:void 0,enableCodebaseEnhancedContext:void 0,completionLength:"auto",enableCommentEnhancement:void 0,privateService:"",smartPaste:!0,beta:void 0,terminalAutoExecution:"turbo",terminalAutoExecutionDenyList:g_,terminalAutoExecutionAllowList:[],zuluConfig:{terminalAutoExecution:"turbo",terminalAutoExecutionDenyList:g_,terminalAutoExecutionAllowList:[]}};function x_(...e){(process.env.ENVIRONMENT||process.env.DEBUG)&&console.log(...e)}const b_=o(i(import.meta.url));class y_{cwd;shell="bin/bash";license;username;ideSeries;ideVersion;ideName;platform;deviceId;pluginVersion;httpProxy;ripgrepPath;extensionConfig=v_;client;isReady=!1;_readyResolver;isSerivceReady=!1;_readyServiceResolver;constructor(e){this.cwd=e.cwd,this.shell=e.shell,this.license=e.license,this.username=e.username,this.ideSeries=e.ideSeries,this.ideVersion=e.ideVersion,this.ideName=e.ideName,this.platform=e.platform,this.deviceId=e.deviceId,this.pluginVersion=e.pluginVersion,this.httpProxy=e.httpProxy,this.extensionConfig.username=e.username,this.extensionConfig.license=e.license,this.ripgrepPath=e.ripgrepPath}async start(){const e=await this.engineExec(),t=new Mt.StreamMessageReader(e.stdout),n=new Mt.StreamMessageWriter(e.stdin);this.client=Mt.createMessageConnection(t,n),this.client.onRequest("USER_DETAIL",(async()=>({status:"success",payload:{name:this.username,license:this.license,ideVersion:this.ideVersion,platform:this.platform,version:this.pluginVersion,language:"zh",customizeService:void 0,device:this.deviceId}}))),this.client.onRequest("kernel/kernelConfig/fetch",(async()=>({code:0,message:"success",data:{appRoot:this.cwd,appHost:"desktop",deviceId:this.deviceId,ideName:this.ideName,ideSeries:this.ideSeries,ideVersion:this.ideVersion,environment:Nt.PRODUCTION,extensionVersion:this.pluginVersion,platform:this.platform,themeColor:"dark",ideTerminalInfo:{defaultShell:this.shell}}}))),this.client.onRequest(Dt,(async()=>(x_("KERNEL CLIENT REC <--------",Dt),{code:0,message:"success",data:v_}))),this.client.onNotification("kernel/system/initialized",(()=>{this.isReady=!0,this._readyResolver?.()})),this.client.onNotification("ENGINE_SERVICE_INITIALIZED",(()=>{this.isSerivceReady=!0,this._readyServiceResolver?.()})),this.client.listen(),this.setupLogHandlers(),await this.initializeLSP(),x_("LSP Client started")}async sendRequest(e,t){if(x_("COMATE PLUSE CLIENT send --------\x3e",e,JSON.stringify(t)),!this.client)throw new Error("Client not initialized");return this.client.sendRequest(e,t)}onRequest(e,t){if(!this.client)throw new Error("Client not initialized:"+e);return this.client.onRequest(e,t)}onNotification(e,t){if(!this.client)throw new Error("Client not initialized:"+e);this.client.onNotification(e,t)}async handleConfigChange(){this.client?this.client.sendRequest("ide/extensionConfig/didChange",v_):console.warn("Client not initialized")}async initializeLSP(){if(!this.client)throw new Error("Client not initialized");const e={processId:process.pid,clientInfo:{name:"vscode-comate-client",version:"1.0.0"},rootPath:this.cwd,rootUri:De.file(this.cwd).toString(),capabilities:{workspace:{workspaceFolders:!0,configuration:!0},textDocument:{synchronization:{dynamicRegistration:!1,willSave:!1,willSaveWaitUntil:!1,didSave:!1}}},initializationOptions:{},workspaceFolders:[{uri:De.file(this.cwd).toString(),name:"workspace"}]};try{x_("Sending initialize request...");x_("Initialize response:",await this.client.sendRequest("initialize",e)),x_("Sending initialized notification..."),this.client.sendNotification("initialized",{}),x_("LSP initialization completed")}catch(e){throw console.error("LSP initialization failed:",e),e}}setupLogHandlers(){this.client&&(this.client.onNotification("window/logMessage",(e=>{x_(e)})),this.client.onNotification("window/showMessage",(e=>{x_(e)})),this.client.onRequest("window/showMessageRequest",(e=>(x_(e),e.actions?.[0]||null))),this.client.onNotification("comate/log",(e=>{x_(e)})),this.client.onNotification("$/progress",(e=>{x_(e)})))}handleVirtualEditor(){this.client?.onRequest("VIRTUAL_EDITOR_EVENT",(async()=>{}))}async engineExec(){const e={cwd:this.cwd,env:{...process.env,IDE:this.ideName,COMATE_VERSION:this.pluginVersion,COMATE_ENGINE_APP_NAME:"VS Code",COMATE_ENGINE_PLATFORM:"baidu-saas",COMATE_ENGINE_DEBUG:"true",PLATFORM:this.platform,HTTP_PROXY_URL:this.httpProxy,HTTP_HOST:process.env.HTTP_HOST||"",RIPGREP_BIN_PATH:this.ripgrepPath,DISPLAY_LANGUAGE:"zh",KEEP_ALIVE:"true"}},t=s(b_,"../../comate-engine/bin/comate.js");return d(t,[],{stdio:"pipe",execArgv:[],...e})}async dispose(){if(this.client)try{await this.client.sendRequest("shutdown",null),this.client.sendNotification("exit")}catch(e){console.error("Error during LSP shutdown:",e)}finally{this.client.dispose()}}}function __(e,t){try{b.accessSync(e),((e,t)=>{try{b.writeFileSync(e,t||"","utf8")}catch(e){throw new Error(`Failed to overwrite document: ${e}`)}})(e,t)}catch(n){const i=c.dirname(e);b.mkdirSync(i,{recursive:!0}),b.writeFileSync(e,t||"","utf8")}}const w_=function({onlyFirst:e=!1}={}){const t=["[\\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=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();class E_ extends N{isListening=!0;buffer="";fullOutput="";lastRetrievedIndex=0;isHot=!1;hotTimer=null;childProcess;constructor(){super(),this.isListening=!0,this.buffer="",this.fullOutput="",this.lastRetrievedIndex=0,this.isHot=!1,this.hotTimer=null,this.childProcess=null}async run(e,t={}){const{cwd:n=process.cwd(),shell:i=!0,env:r=process.env}=t;x_(`Running command: ${e}`),x_(`Working directory: ${n}`);try{const t="win32"===process.platform,i=t?"cmd":"bash",o=t?["/c",e]:["-c",e];this.childProcess=f(i,o,{cwd:n,env:r,shell:!1,stdio:["pipe","pipe","pipe"]});let s=!1;this.childProcess.stdout.on("data",(e=>{this.handleOutput(e.toString(),s),s||(s=!0)})),this.childProcess.stderr.on("data",(e=>{this.handleOutput(e.toString(),s),s||(s=!0)})),this.childProcess.on("close",(e=>{this.emitRemainingBufferIfListening(),this.hotTimer&&clearTimeout(this.hotTimer),this.isHot=!1,this.emit("completed",e),this.emit("continue")})),this.childProcess.on("error",(e=>{console.error("Process error:",e),this.emit("error",e)}))}catch(e){console.error("Failed to run command:",e),this.emit("error",e)}}handleOutput(e,t){e=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(w_,"")}(e),this.isHot=!0,this.hotTimer&&clearTimeout(this.hotTimer);const n=["compiling","building","bundling","transpiling","generating","starting"].some((t=>e.toLowerCase().includes(t.toLowerCase())))&&!["compiled","success","finish","complete","succeed","done","end","stop","exit","terminate","error","fail"].some((t=>e.toLowerCase().includes(t.toLowerCase())));this.hotTimer=setTimeout((()=>{this.isHot=!1}),n?15e3:2e3),t||this.fullOutput||!e||this.emit("line",""),this.fullOutput+=e,this.isListening&&(this.emitIfEol(e),this.lastRetrievedIndex=this.fullOutput.length-this.buffer.length)}emitIfEol(e){let t;for(this.buffer+=e;-1!==(t=this.buffer.indexOf("\n"));){const e=this.buffer.slice(0,t).trimEnd();this.emit("line",e),this.buffer=this.buffer.slice(t+1)}}emitRemainingBufferIfListening(){if(this.buffer&&this.isListening){const e=this.removeLastLineArtifacts(this.buffer);e&&this.emit("line",e),this.buffer="",this.lastRetrievedIndex=this.fullOutput.length}}continue(){this.emitRemainingBufferIfListening(),this.isListening=!1,this.removeAllListeners("line"),this.emit("continue")}getUnretrievedOutput(){const e=this.fullOutput.slice(this.lastRetrievedIndex);return this.lastRetrievedIndex=this.fullOutput.length,this.removeLastLineArtifacts(e)}removeLastLineArtifacts(e){const t=e.trimEnd().split("\n");if(t.length>0){const e=t[t.length-1];t[t.length-1]=e.replace(/[%$#>]\s*$/,"")}return t.join("\n").trimEnd()}kill(e="SIGTERM"){this.childProcess&&!this.childProcess.killed&&this.childProcess.kill(e)}}class S_{id;busy;cwd;lastCommand;constructor(e,t){this.id=e,this.cwd=t,this.busy=!1,this.lastCommand=""}}class k_{static terminals=new Map;static nextId=1;static createTerminal(e){const t=this.nextId++,n=new S_(t,e);return this.terminals.set(t,n),x_(`Created terminal ${t} with cwd: ${e}`),n}static getTerminal(e){return this.terminals.get(e)}static getAllTerminals(){return Array.from(this.terminals.values())}static removeTerminal(e){const t=this.terminals.delete(e);return t&&x_(`Removed terminal ${e}`),t}}class R_{terminalIds=new Set;processes=new Map;constructor(){this.terminalIds=new Set,this.processes=new Map}runCommand(e,t){e.busy=!0,e.lastCommand=t;const n=function(e,t){const n=new E_,i=new Promise(((e,t)=>{n.once("continue",(()=>e())),n.once("error",t)})),r=Promise.prototype,o=["then","catch","finally"].map((e=>[e,Object.getOwnPropertyDescriptor(r,e)]));for(const[e,t]of o)if(t){const r=t.value.bind(i);Object.defineProperty(n,e,{...t,value:r})}return n.run(e,t),n}(t,{cwd:e.cwd});return this.processes.set(e.id,n),n.once("completed",(()=>{e.busy=!1})),n.once("error",(t=>{console.error(`Error in terminal ${e.id}:`,t),e.busy=!1})),n}async getOrCreateTerminal(e){const t=k_.getAllTerminals().filter((e=>!e.busy)).find((t=>this.arePathsEqual(e,t.cwd)));if(x_(`cwd=${e}, availableTerminal=${t?t.id:"none"}`),t)return this.terminalIds.add(t.id),t;const n=k_.createTerminal(e);return this.terminalIds.add(n.id),n}arePathsEqual(e,t){return c.resolve(e)===c.resolve(t)}getTerminals(e){return Array.from(this.terminalIds).map((e=>k_.getTerminal(e))).filter((t=>void 0!==t&&t.busy===e)).map((e=>({id:e.id,lastCommand:e.lastCommand})))}getUnretrievedOutput(e){if(!this.terminalIds.has(e))return"";const t=this.processes.get(e);return t?t.getUnretrievedOutput():""}isProcessHot(e){const t=this.processes.get(e);return!!t&&t.isHot}dispose(){for(const[e,t]of this.processes)t&&t.kill&&t.kill();this.terminalIds.clear(),this.processes.clear()}}var T_;!function(e){e.EDIT="edit",e.PREVIEW="preview"}(T_||(T_={}));const O_=e=>new Promise((t=>setTimeout(t,e)));class C_{kernelProvider;constructor(e){this.kernelProvider=e}start(){const e=e=>this.kernelProvider.sendRequest("VIRTUAL_EDITOR_EVENT",e);this.kernelProvider.onRequest("VIRTUAL_EDITOR_EVENT",(async t=>{const i=t.action,{uuid:o}=t.payload;switch(i){case"getActiveDocument":return e({uuid:o,existed:!1,absolutePath:"",content:""});case"openDocument":return e({uuid:o});case"getDocument":try{if(n(t.payload.absolutePath)){const n=await g(t.payload.absolutePath,"utf-8");return e({existed:!0,uuid:o,content:n,isDirty:!1})}return e({existed:!1,uuid:o,content:""})}catch{return e({existed:!1,uuid:o,content:""})}case"closeDocument":return e({uuid:o});case"saveDocumentWithReplaceContent":{const{absolutePath:n,content:i,source:r=""}=t.payload;return await __(n,i),e({uuid:o})}case"closeVirtualDiffDocument":return e({uuid:o});case"openVirtualDiffDocument":{const{content:i,modified:s,absolutePath:a,elementId:c,conversationId:l,acceptable:u,stream:p,action:d}=t.payload;if(d===T_.EDIT){if(n(a))await v(a,s,"utf8");else{const e=r.dirname(a);await x(e,{recursive:!0}),await v(a,s,"utf8")}return x_(`File updated: ${a}`),e({uuid:o})}if(!i){const e=`${a}.modified.tmp`;return await v(e,s,"utf8"),void x_(`Modified content saved to: ${e}`)}if("string"==typeof i){const e=`${a}.original.tmp`;await v(e,i,"utf8")}if("string"==typeof s){const e=`${a}.modified.tmp`;await v(e,s,"utf8")}return x_(`Diff prepared for: ${r.basename(a)}`),x_(`Original content length: ${i?.length||0}`),x_(`Modified content length: ${s?.length||0}`),e({uuid:o})}case"getVirtualDiffDocument":{const{absolutePath:n}=t.payload;try{const t=await g(n);return e({uuid:o,existed:!0,content:t})}catch(t){return e({uuid:o,existed:!1,content:""})}}case"replaceVirtualDiffModifiedDocument":{const{stream:n,absolutePath:i,conversationId:r,content:s,elementId:a,scrollToLine:c}=t.payload,l=new URLSearchParams;return a&&l.set("elementId",a||""),r&&l.set("conversationId",r||""),l.toString(),e({uuid:o})}case"endConversationEditSession":{const{conversationId:n}=t.payload;return e({uuid:o})}case"startConversationEditSession":{const{conversationId:n}=t.payload;return e({uuid:o})}case"executeTerminalShell":{const n=process.cwd(),{cmd:i,duration:r=1e3,cwd:o=n,run:s=!0,enableStreamOutput:a=!1,uuid:c=Math.random().toString(36).substr(2,9)}=t.payload||t;if(!s)return x_(`Command to copy: ${i}`),void x_(`Working directory: ${o}`);try{const t=new R_,n=await t.getOrCreateTerminal(o);x_(`Using terminal ${n.id}`);const s=t.runCommand(n,i),{onUpdate:l,clear:u}=function(e,t){let n=null;const i=Lx.throttle(e,t);return{onUpdate:e=>{n&&(clearTimeout(n),n=null),i(e),n=setTimeout((()=>i(e)),t)},clear:()=>{n&&(clearTimeout(n),n=null)}}}(e,1e3);let p="";s.on("line",(e=>{p+=e+"\n",x_("Output:",e),a&&l({uuid:c,completed:!1,output:p.trim(),isEnd:!1})}));let d=!1;return s.once("completed",(e=>{d=!0,x_(`Command completed with exit code: ${e}`)})),await Promise.race([s,O_(r-1e3)]),u(),await O_(50),e({uuid:c,completed:d,output:p.trim()})}catch(t){const n=t instanceof Error?t.message:`${t}`;return console.error("executeTerminalShell failed, reason:",n),e({uuid:c,failed:!0,completed:!1,output:n})}}case"executeDebugCommand":return e({status:"error",uuid:o});case"getLatestOutputFromActiveTerminal":return e({output:"",uuid:o});case"openUrlInEditorWebview":return e({uuid:o});case"saveDocumentWithReplaceContentAndOpen":{const{absolutePath:n,content:i,source:r}=t.payload;return await __(n,i),e({uuid:o})}case"deleteDocument":{const{absolutePath:n}=t.payload;return await h(n),e({uuid:o})}case"refreshProjectTree":case"getDocumentDiagnostics":return e({uuid:o});default:throw new Error(i)}}))}}class A_{url="https://comate.baidu.com/api/ok";async ping(e={}){const{timeout:t=5e3,retries:n=3,retryDelay:i=1e3,proxy:r}=e;for(let e=1;e<=n;e++){const o=await this.singlePing(t,e,r);if(o.success||e===n)return o;e<n&&await this.delay(i)}throw new Error("All ping attempts failed")}getProxyConfig(e){const t=e||process.env.http_proxy||process.env.HTTP_PROXY||process.env.https_proxy||process.env.HTTPS_PROXY;if(!t)return{proxy:null};try{new T(t);return{proxy:t,agent:new S.Agent({keepAlive:!0,maxSockets:10})}}catch(e){return console.warn(`Invalid proxy URL: ${t}`),{proxy:null}}}async singlePing(e,t,n){const i=Date.now(),{proxy:r,agent:o}=this.getProxyConfig(n);return new Promise((n=>{let s;if(r){const o=new T(r),a=new T(this.url),c={hostname:o.hostname,port:o.port||("https:"===o.protocol?443:80),path:this.url,method:"GET",timeout:e,headers:{Host:a.hostname,"User-Agent":"Comate-Ping/1.0"}};if(o.username&&o.password){const e=Buffer.from(`${o.username}:${o.password}`).toString("base64");c.headers["Proxy-Authorization"]=`Basic ${e}`}s=S.request(c,(e=>{const o=Date.now()-i;n({success:200===e.statusCode,statusCode:e.statusCode,responseTime:o,attempt:t,timestamp:(new Date).toISOString(),proxy:r})}))}else s=k.request(this.url,{method:"GET",timeout:e,agent:o},(e=>{const r=Date.now()-i;n({success:200===e.statusCode,statusCode:e.statusCode,responseTime:r,attempt:t,timestamp:(new Date).toISOString()})}));s.on("error",(e=>{const o=Date.now()-i;n({success:!1,responseTime:o,error:e.message,attempt:t,timestamp:(new Date).toISOString(),proxy:r||void 0})})),s.on("timeout",(()=>{s.destroy();const e=Date.now()-i;n({success:!1,responseTime:e,error:"Request timeout",attempt:t,timestamp:(new Date).toISOString(),proxy:r||void 0})})),s.end()}))}delay(e){return new Promise((t=>setTimeout(t,e)))}async continuousPing(e,t=1e3,n={}){const i=[];console.log(`🌐 Proxy: ${this.getProxyConfig(n.proxy).proxy||"Direct connection"}\n`);for(let r=0;r<e;r++){const o=await this.ping(n);i.push(o);const s=o.proxy?` (via ${o.proxy})`:"";console.log(`Ping ${r+1}/${e}: ${o.success?"✅":"❌"} ${o.responseTime}ms${s}`),r<e-1&&await this.delay(t)}return i}static getStats(e){const t=e.filter((e=>e.success)),n=e.map((e=>e.responseTime));return{total:e.length,successful:t.length,failed:e.length-t.length,successRate:t.length/e.length*100,avgResponseTime:n.reduce(((e,t)=>e+t),0)/n.length,minResponseTime:Math.min(...n),maxResponseTime:Math.max(...n)}}static async testProxy(e){try{const t=new T(e);return new Promise((e=>{const n=S.request({hostname:t.hostname,port:t.port||80,method:"CONNECT",path:"www.baidu.com:80",timeout:5e3});n.on("connect",(()=>{e(!0)})),n.on("error",(()=>{e(!1)})),n.on("timeout",(()=>{n.destroy(),e(!1)})),n.end()}))}catch{return!1}}}var P_="0.0.13";class j_ extends se{static paths=[se.Default];ping=Ie("--ping",!1,{description:"测试网络连通性"});help=Ie("--help",!1,{description:"帮助信息"});version=Ie("--version",!1,{description:"版本信息"});async execute(){if(!(this.help||this.version||this.ping)){const e=new Le;return e.context=this.context,e.cli=this.cli,await e.execute()}return this.help?(this.context.stdout.write(this.cli.usage(this)),0):this.ping?(await async function(){const e=new A_;console.log("🏓 Starting Comate API ping test with proxy support...\n");const t=process.env.http_proxy||process.env.HTTP_PROXY||process.env.https_proxy||process.env.HTTPS_PROXY;if(t){console.log(`🌐 Detected proxy from environment: ${t}`);const e=await A_.testProxy(t);console.log(`🔍 Proxy test: ${e?"✅ Working":"❌ Failed"}\n`)}else console.log("🌐 No proxy detected, using direct connection\n");console.log("Single ping:");const n=await e.ping({timeout:5e3,retries:3,retryDelay:1e3});console.log(n),console.log("\n"+"=".repeat(50)+"\n"),console.log("Continuous ping (5 times):");const i=await e.continuousPing(5,1e3,{timeout:5e3,retries:2}),r=A_.getStats(i);console.log("\n📊 Statistics:"),console.log(`Total: ${r.total}`),console.log(`Successful: ${r.successful}`),console.log(`Failed: ${r.failed}`),console.log(`Success Rate: ${r.successRate.toFixed(2)}%`),console.log(`Avg Response Time: ${r.avgResponseTime.toFixed(2)}ms`),console.log(`Min Response Time: ${r.minResponseTime}ms`),console.log(`Max Response Time: ${r.maxResponseTime}ms`)}(),0):(this.context.stdout.write(this.cli.usage(this)),0)}}const L_=new Pe({binaryName:"zulu",binaryLabel:"AI Coding Agent Zulu",binaryVersion:P_});function N_(){L_.runExit(process.argv.slice(2))}L_.register(Le),L_.register(Ne),L_.register(j_),L_.register(class extends se{static paths=[["run"]];static usage={description:"与 Zulu 一起工作,对完整代码库进行全面修改"};license=$e("--license",{description:"License"});query=$e("--query",{description:"问题描述"});cwd=$e("--cwd",{description:"工作路径,默认执行时所在地址"});ripgrep=$e("--ripgrep",{description:"ripgrep 的绝对路径"});async execute(){if(!(this.license||this.query||this.cwd||this.help||this.ripgrep)){const e=new Le;return e.context=this.context,e.cli=this.cli,await e.execute()}if(this.help)return this.context.stdout.write(this.cli.usage(this)),0;if(!this.license)return this.context.stderr.write("Error: --license is required\n"),1;if(this.cwd&&!n(this.cwd))return this.context.stderr.write(`Error: Directory '${this.cwd}' does not exist\n`),1;let t=this.ripgrep;return t&&!n(t)?(this.context.stderr.write(`Error: ripgrep path '${t}' does not exist\n`),1):(t||(t=function(){try{const e="win32"===process.platform,t=m(e?"where rg":"which rg",{encoding:"utf8",stdio:"pipe"}).trim(),i=e?t.split("\n")[0]:t;if(i&&n(i))return i}catch(e){x_("Failed to find ripgrep path:",e)}return""}()),x_("License:",this.license),x_("Query:",this.query),x_("CWD:",this.cwd),function(t,n,i,r){const o="zulu-cli",s=process.env.HTTP_PROXY||process.env.HTTPS_PROXY||process.env.http_proxy||process.env.https_proxy||"",a=process.env.SHELL?process.env.SHELL:process.env.COMSPEC?process.env.COMSPEC:"win32"===j.platform()?"cmd.exe":"/bin/sh",c="vscode",l="1.100.1",u=$t.VSCode,p=It.SAAS,d=e(),f=r;!async function(e){e.cwd||(e.cwd=process.cwd());const t=new y_(e);await t.start(),new C_(t).start();let n={};t.onRequest("COMATE_AGENT_UPDATE_MESSAGE",(async e=>{if(x_("============"),x_(JSON.stringify(e,null,2)),"conversation-status"===e.data.type){const t=e.data.conversationInfo.status;t===Jt.Failed||t===Jt.Cancelled?(console.error(JSON.stringify(e,null,2)),process.exit(1)):t===Jt.Completed&&(console.log(JSON.stringify(n,null,2)),process.exit(0))}else"partial-message-data"===e.data.type&&(n=e.data)})),t.onNotification("ENGINE_SERVICE_INITIALIZED",(async()=>{const n=await t.sendRequest("COMATE_AGENT_START_NEW_CHAT",{agentPayload:{conversationId:"",messageType:"add-message",conversationType:"E2EBotConversation",payload:{query:e.query,knowledgeList:[]}}});t.sendRequest("COMATE_AGENT_NEW_MESSAGE",{agentPayload:{messageType:"add-message",conversationId:n.id,payload:{query:e.query,knowledgeList:[]}}}),t.sendRequest("COMATE_AGENT_SET_FOREGROUND_CONVERSATION",{agentPayload:{conversationId:n.id}})}))}({license:t,username:o,query:n,cwd:i,httpProxy:s,shell:a,ideSeries:c,ideVersion:l,ideName:u,platform:p,deviceId:d,pluginVersion:"3.10.0",ripgrepPath:f})}(this.license,this.query,this.cwd,t),0)}});const I_=/^[a-zA-Z_][a-zA-Z0-9_]*$/;function $_(e){return null===e?"null":void 0===e?"undefined":""===e?"an empty string":"symbol"==typeof e?`<${e.toString()}>`:Array.isArray(e)?"an array":JSON.stringify(e)}function M_(e,t){var n,i,r;return"number"==typeof t?`${null!==(n=null==e?void 0:e.p)&&void 0!==n?n:"."}[${t}]`:I_.test(t)?`${null!==(i=null==e?void 0:e.p)&&void 0!==i?i:""}.${t}`:`${null!==(r=null==e?void 0:e.p)&&void 0!==r?r:"."}[${JSON.stringify(t)}]`}function D_({errors:e,p:t}={},n){return null==e||e.push(`${null!=t?t:"."}: ${n}`),!1}function F_(e,t){return n=>{const i=e[t];return e[t]=n,F_(e,t).bind(null,i)}}function z_(){return W_({test:(e,t)=>"string"==typeof e||D_(t,`Expected a string (got ${$_(e)})`)})}function B_(e,{delimiter:t}={}){return W_({test:(n,i)=>{var r;const o=n;if("string"==typeof n&&void 0!==t&&void 0!==(null==i?void 0:i.coercions)){if(void 0===(null==i?void 0:i.coercion))return D_(i,"Unbound coercion result");n=n.split(t)}if(!Array.isArray(n))return D_(i,`Expected an array (got ${$_(n)})`);let s=!0;for(let t=0,r=n.length;t<r&&(s=e(n[t],Object.assign(Object.assign({},i),{p:M_(i,t),coercion:F_(n,t)}))&&s,s||null!=(null==i?void 0:i.errors));++t);return n!==o&&i.coercions.push([null!==(r=i.p)&&void 0!==r?r:".",i.coercion.bind(null,n)]),s}})}function U_(e,{delimiter:t}={}){const n=G_(e.length);return W_({test:(i,r)=>{var o;if("string"==typeof i&&void 0!==t&&void 0!==(null==r?void 0:r.coercions)){if(void 0===(null==r?void 0:r.coercion))return D_(r,"Unbound coercion result");i=i.split(t),r.coercions.push([null!==(o=r.p)&&void 0!==o?o:".",r.coercion.bind(null,i)])}if(!Array.isArray(i))return D_(r,`Expected a tuple (got ${$_(i)})`);let s=n(i,Object.assign({},r));for(let t=0,n=i.length;t<n&&t<e.length&&(s=e[t](i[t],Object.assign(Object.assign({},r),{p:M_(r,t),coercion:F_(i,t)}))&&s,s||null!=(null==r?void 0:r.errors));++t);return s}})}function q_(e,{keys:t=null}={}){const n=B_(U_([null!=t?t:z_(),e]));return W_({test:(i,r)=>{var o;if(Array.isArray(i)&&void 0!==(null==r?void 0:r.coercions))return void 0===(null==r?void 0:r.coercion)?D_(r,"Unbound coercion result"):!!n(i,Object.assign(Object.assign({},r),{coercion:void 0}))&&(i=Object.fromEntries(i),r.coercions.push([null!==(o=r.p)&&void 0!==o?o:".",r.coercion.bind(null,i)]),!0);if("object"!=typeof i||null===i)return D_(r,`Expected an object (got ${$_(i)})`);const s=Object.keys(i);let a=!0;for(let n=0,o=s.length;n<o&&(a||null!=(null==r?void 0:r.errors));++n){const o=s[n],c=i[o];"__proto__"!==o&&"constructor"!==o?(null===t||t(o,r))&&e(c,Object.assign(Object.assign({},r),{p:M_(r,o),coercion:F_(i,o)}))||(a=!1):a=D_(Object.assign(Object.assign({},r),{p:M_(r,o)}),"Unsafe property name")}return a}})}function H_(e){return()=>e}function W_({test:e}){return H_(e)()}function G_(e){return W_({test:(t,n)=>t.length===e||D_(n,`Expected to have a length of exactly ${e} elements (got ${t.length})`)})}function V_(e,...t){const n=Array.isArray(t[0])?t[0]:t;return W_({test:(t,i)=>{var r,o;const s={value:t},a=void 0!==(null==i?void 0:i.coercions)?F_(s,"value"):void 0,c=void 0!==(null==i?void 0:i.coercions)?[]:void 0;if(!e(t,Object.assign(Object.assign({},i),{coercion:a,coercions:c})))return!1;const l=[];if(void 0!==c)for(const[,e]of c)l.push(e());try{if(void 0!==(null==i?void 0:i.coercions)){if(s.value!==t){if(void 0===(null==i?void 0:i.coercion))return D_(i,"Unbound coercion result");i.coercions.push([null!==(r=i.p)&&void 0!==r?r:".",i.coercion.bind(null,s.value)])}null===(o=null==i?void 0:i.coercions)||void 0===o||o.push(...c)}return n.every((e=>e(s.value,i)))}finally{for(const e of l)e()}}})}var K_;!function(e){e.Forbids="Forbids",e.Requires="Requires"}(K_||(K_={})),K_.Forbids,K_.Requires;var J_=Object.freeze({__proto__:null,get KeyRelationship(){return K_},applyCascade:function(e,...t){return V_(e,Array.isArray(t[0])?t[0]:t)},cascade:V_,hasExactLength:G_,isArray:B_,isDict:function(e,t={}){return q_(e,t)},isRecord:q_,isString:z_,isTuple:U_,isUnknown:function(){return W_({test:(e,t)=>!0})},makeTrait:H_,makeValidator:W_});export{N_ as run};