@mintlify/cli 4.1.71 → 4.1.72

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.
@@ -4,7 +4,7 @@ import { dirname as __mintDirname } from 'node:path';
4
4
  const require = __mintCreateRequire(import.meta.url);
5
5
  const __filename = __mintFileURLToPath(import.meta.url);
6
6
  const __dirname = __mintDirname(__filename);
7
- import{i as e,o as t,t as n}from"./rolldown-runtime-CEAe2Uac.js";import{$ as r,A as i,F as a,G as o,H as s,J as c,K as l,L as u,P as d,R as f,V as p,W as m,X as h,Y as g,Z as _,_ as v,d as y,f as b,g as x,l as S,m as C,n as w,q as T,r as E,t as D,u as O,v as k,w as A,x as ee}from"./dist-CmFSyH9b.js";import{$ as j,$n as te,An as ne,Bt as re,C as ie,Cn as ae,Dn as oe,E as se,En as ce,Fn as le,Ft as ue,In as de,It as fe,Jt as pe,Kn as me,Kt as he,Ln as ge,Lt as _e,Mn as ve,Nn as ye,Nt as be,On as xe,Pt as Se,Qt as Ce,Rn as we,Sn as Te,U as Ee,Wn as De,Wt as Oe,X as ke,Xn as Ae,Y as je,Yn as Me,Z as Ne,Zn as Pe,_t as Fe,a as Ie,at as Le,bt as Re,et as ze,ht as Be,ir as Ve,jn as He,k as Ue,m as We,mn as Ge,mt as Ke,o as qe,ot as Je,pn as Ye,qt as Xe,rt as Ze,s as Qe,tr as $e,tt as et,vn as tt,vt as nt,w as rt,wn as it,xt as at,yn as ot,yt as st}from"./dist-DGS-P0UG.js";import{g as ct,h as M,m as lt}from"./build-Nkr-5oHQ.js";import{a as ut,i as dt,n as ft}from"./multi-repo-command-BghhOvrq.js";import{c as pt,l as mt,n as ht,t as gt,u as _t}from"./agent-Da2kI1tZ.js";import{A as vt,C as yt,D as bt,E as xt,F as St,I as Ct,L as N,M as wt,N as Tt,O as Et,P as Dt,R as Ot,S as kt,T as At,_ as jt,a as Mt,b as Nt,c as Pt,d as Ft,f as It,g as Lt,h as Rt,i as zt,j as Bt,k as Vt,l as Ht,m as Ut,n as Wt,o as Gt,p as Kt,r as qt,s as Jt,t as Yt,u as Xt,v as Zt,w as Qt,x as $t,y as en,z as tn}from"./config-DpQ1d_vi.js";import{n as nn,t as rn}from"./client-DXQ6Tgw0.js";import{_ as an,a as on,b as sn,c as cn,d as ln,f as un,g as dn,h as fn,i as pn,l as mn,m as hn,n as gn,o as _n,p as vn,r as yn,s as bn,t as xn,u as Sn,v as Cn}from"./esm-BtDK7B-d.js";import{B as wn,M as Tn,P as En,Q as Dn,X as On,Z as kn,_ as An,b as jn,c as Mn,d as Nn,dt as Pn,r as Fn,s as In,st as Ln,t as Rn,tt as zn,u as Bn,w as Vn,x as Hn,y as Un}from"./utils-D-zUiakl.js";import{a as Wn,c as Gn,i as Kn,n as qn,o as Jn,r as Yn,s as Xn,t as Zn}from"./remark-utils-CLJr2toS.js";import{_ as Qn,a as $n,c as er,d as tr,f as nr,l as rr,m as ir,o as ar,p as or,s as sr,u as cr,v as lr}from"./schemas-CVKidklE.js";import{t as ur}from"./currencyMath-BHNabTeO.js";import{createRequire as dr}from"node:module";import fr,{basename as pr,dirname as mr,join as hr,normalize as gr,parse as _r,resolve as vr}from"path";import yr,{existsSync as br,readFileSync as xr,readdirSync as Sr}from"node:fs";import Cr,{existsSync as wr,promises as Tr}from"fs";import Er from"os";import Dr from"crypto";import Or from"node:process";import kr from"node:os";import{createRequire as Ar}from"module";import jr,{mkdir as Mr,mkdtemp as Nr,readFile as Pr,writeFile as Fr}from"node:fs/promises";import Ir from"node:path";import{execFile as Lr,spawn as Rr}from"node:child_process";import{fileURLToPath as zr}from"node:url";import{createHash as Br,randomUUID as Vr}from"node:crypto";import{format as Hr,stripVTControlCharacters as Ur}from"node:util";import{sep as Wr}from"path/win32";import{setTimeout as Gr}from"node:timers/promises";var P=r();const Kr=(e,t)=>{let n=t.a+e.a-t.a*e.a;if(n===0)return{r:0,g:0,b:0,a:0};let r=t.a/n,i=(e,t)=>Math.round((1-r)*e+r*t);return{r:i(e.r,t.r),g:i(e.g,t.g),b:i(e.b,t.b),a:n}},qr=e=>{let t=/^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(e)?.[1];if(!t)throw TypeError(`Expected a valid hex string, got ${e}`);let n=t.length<6?[...t].map(e=>e+e).join(``):t,r=Number.parseInt(n.slice(0,6),16);return{red:r>>16,green:r>>8&255,blue:r&255,alpha:n.length===8?Number.parseInt(n.slice(6,8),16)/255:1}},Jr=e=>{try{let t=qr(e);return`${t.red} ${t.green} ${t.blue}`}catch{return`0 0 0`}},Yr=e=>`${e.r} ${e.g} ${e.b}`,Xr=e=>`#${e.r.toString(16).padStart(2,`0`)}${e.g.toString(16).padStart(2,`0`)}${e.b.toString(16).padStart(2,`0`)}`,Zr=(e,t,n)=>{if(t)return n?t:Jr(t);let r=Qr(`#09090b`,1,e,.02);return n?Xr(r):Yr(r)},Qr=(e,t,n,r)=>{let i=qr(e),a=qr(n);return Kr({r:i.red,g:i.green,b:i.blue,a:t},{r:a.red,g:a.green,b:a.blue,a:r})},$r=`#4ADE80`,ei=(e=$r)=>({light:`#ffffff`,dark:Zr(e,void 0,!0)});function ti(e){let t=e?.colors.primary||`#16A34A`,n=e?.colors.light??$r;e?.theme===`linden`&&(e.background=Object.assign(Object.assign({},e.background),{color:{light:e.background?.color?.light||Xr(Qr(`#FFFFFF`,1,t,.03)),dark:e.background?.color?.dark||Xr(Qr(`#09090B`,1,n,.03))}}));let r=e?.background?.color?.light??`#ffffff`;return{light:Jr(r),dark:Zr(n,e?.background?.color?.dark),lightHex:r,darkHex:Zr(n,e?.background?.color?.dark,!0),background:e?.thumbnails?.background}}var F=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},ni=/([A-Z])/g,ri=e=>e.replace(ni,`-$1`).toLowerCase(),ii={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},ai=/[&><"']/g,oi=e=>String(e).replace(ai,e=>ii[e]),si=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?si(e.body[0]):e:e.type===`font`?si(e.body):e,ci=/* @__PURE__ */ new Set([`mathord`,`textord`,`atom`]),li=e=>ci.has(si(e).type),ui=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},di={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function fi(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function pi(e){return e.default===void 0?fi(Array.isArray(e.type)?e.type[0]:e.type):e.default}function mi(e,t,n,r){var i=n[t];e[t]=i===void 0?pi(r):r.processor?r.processor(i):i}var hi=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(di)){var n=di[t];n&&mi(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new F(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=ui(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},gi=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Ti[Ei[this.id]]}sub(){return Ti[Di[this.id]]}fracNum(){return Ti[Oi[this.id]]}fracDen(){return Ti[ki[this.id]]}cramp(){return Ti[Ai[this.id]]}text(){return Ti[ji[this.id]]}isTight(){return this.size>=2}},_i=0,vi=1,yi=2,bi=3,xi=4,Si=5,Ci=6,wi=7,Ti=[new gi(_i,0,!1),new gi(vi,0,!0),new gi(yi,1,!1),new gi(bi,1,!0),new gi(xi,2,!1),new gi(Si,2,!0),new gi(Ci,3,!1),new gi(wi,3,!0)],Ei=[xi,Si,xi,Si,Ci,wi,Ci,wi],Di=[Si,Si,Si,Si,wi,wi,wi,wi],Oi=[yi,bi,xi,Si,Ci,wi,Ci,wi],ki=[bi,bi,Si,Si,wi,wi,wi,wi],Ai=[vi,vi,bi,bi,Si,Si,wi,wi],ji=[_i,vi,yi,bi,yi,bi,yi,bi],Mi={DISPLAY:Ti[_i],TEXT:Ti[yi],SCRIPT:Ti[xi],SCRIPTSCRIPT:Ti[Ci]},Ni=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Pi(e){for(var t=0;t<Ni.length;t++)for(var n=Ni[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Fi=[];Ni.forEach(e=>e.blocks.forEach(e=>Fi.push(...e)));function Ii(e){for(var t=0;t<Fi.length;t+=2)if(e>=Fi[t]&&e<=Fi[t+1])return!0;return!1}var Li=e=>e+` `+e,Ri=80,zi=function(e,t){return`M95,`+(622+e+t)+`
7
+ import{i as e,o as t,t as n}from"./rolldown-runtime-CEAe2Uac.js";import{$ as r,A as i,F as a,G as o,H as s,J as c,K as l,L as u,P as d,R as f,V as p,W as m,X as h,Y as g,Z as _,_ as v,d as y,f as b,g as x,l as S,m as C,n as w,q as T,r as E,t as D,u as O,v as k,w as A,x as ee}from"./dist-BpdR9SbK.js";import{$ as j,$n as te,An as ne,Bt as re,C as ie,Cn as ae,Dn as oe,E as se,En as ce,Fn as le,Ft as ue,In as de,It as fe,Jt as pe,Kn as me,Kt as he,Ln as ge,Lt as _e,Mn as ve,Nn as ye,Nt as be,On as xe,Pt as Se,Qt as Ce,Rn as we,Sn as Te,U as Ee,Wn as De,Wt as Oe,X as ke,Xn as Ae,Y as je,Yn as Me,Z as Ne,Zn as Pe,_t as Fe,a as Ie,at as Le,bt as Re,et as ze,ht as Be,ir as Ve,jn as He,k as Ue,m as We,mn as Ge,mt as Ke,o as qe,ot as Je,pn as Ye,qt as Xe,rt as Ze,s as Qe,tr as $e,tt as et,vn as tt,vt as nt,w as rt,wn as it,xt as at,yn as ot,yt as st}from"./dist-DGS-P0UG.js";import{g as ct,h as M,m as lt}from"./build-Nkr-5oHQ.js";import{a as ut,i as dt,n as ft}from"./multi-repo-command-CfGPBp8I.js";import{c as pt,l as mt,n as ht,t as gt,u as _t}from"./agent-Da2kI1tZ.js";import{A as vt,C as yt,D as bt,E as xt,F as St,I as Ct,L as N,M as wt,N as Tt,O as Et,P as Dt,R as Ot,S as kt,T as At,_ as jt,a as Mt,b as Nt,c as Pt,d as Ft,f as It,g as Lt,h as Rt,i as zt,j as Bt,k as Vt,l as Ht,m as Ut,n as Wt,o as Gt,p as Kt,r as qt,s as Jt,t as Yt,u as Xt,v as Zt,w as Qt,x as $t,y as en,z as tn}from"./config-DzDLoppg.js";import{n as nn,t as rn}from"./client-DXQ6Tgw0.js";import{_ as an,a as on,b as sn,c as cn,d as ln,f as un,g as dn,h as fn,i as pn,l as mn,m as hn,n as gn,o as _n,p as vn,r as yn,s as bn,t as xn,u as Sn,v as Cn}from"./esm-BtDK7B-d.js";import{B as wn,M as Tn,P as En,Q as Dn,X as On,Z as kn,_ as An,b as jn,c as Mn,d as Nn,dt as Pn,r as Fn,s as In,st as Ln,t as Rn,tt as zn,u as Bn,w as Vn,x as Hn,y as Un}from"./utils-D-zUiakl.js";import{a as Wn,c as Gn,i as Kn,n as qn,o as Jn,r as Yn,s as Xn,t as Zn}from"./remark-utils-CLJr2toS.js";import{_ as Qn,a as $n,c as er,d as tr,f as nr,l as rr,m as ir,o as ar,p as or,s as sr,u as cr,v as lr}from"./schemas-CVKidklE.js";import{t as ur}from"./currencyMath-BHNabTeO.js";import{createRequire as dr}from"node:module";import fr,{basename as pr,dirname as mr,join as hr,normalize as gr,parse as _r,resolve as vr}from"path";import yr,{existsSync as br,readFileSync as xr,readdirSync as Sr}from"node:fs";import Cr,{existsSync as wr,promises as Tr}from"fs";import Er from"os";import Dr from"crypto";import Or from"node:process";import kr from"node:os";import{createRequire as Ar}from"module";import jr,{mkdir as Mr,mkdtemp as Nr,readFile as Pr,writeFile as Fr}from"node:fs/promises";import Ir from"node:path";import{execFile as Lr,spawn as Rr}from"node:child_process";import{fileURLToPath as zr}from"node:url";import{createHash as Br,randomUUID as Vr}from"node:crypto";import{format as Hr,stripVTControlCharacters as Ur}from"node:util";import{sep as Wr}from"path/win32";import{setTimeout as Gr}from"node:timers/promises";var P=r();const Kr=(e,t)=>{let n=t.a+e.a-t.a*e.a;if(n===0)return{r:0,g:0,b:0,a:0};let r=t.a/n,i=(e,t)=>Math.round((1-r)*e+r*t);return{r:i(e.r,t.r),g:i(e.g,t.g),b:i(e.b,t.b),a:n}},qr=e=>{let t=/^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(e)?.[1];if(!t)throw TypeError(`Expected a valid hex string, got ${e}`);let n=t.length<6?[...t].map(e=>e+e).join(``):t,r=Number.parseInt(n.slice(0,6),16);return{red:r>>16,green:r>>8&255,blue:r&255,alpha:n.length===8?Number.parseInt(n.slice(6,8),16)/255:1}},Jr=e=>{try{let t=qr(e);return`${t.red} ${t.green} ${t.blue}`}catch{return`0 0 0`}},Yr=e=>`${e.r} ${e.g} ${e.b}`,Xr=e=>`#${e.r.toString(16).padStart(2,`0`)}${e.g.toString(16).padStart(2,`0`)}${e.b.toString(16).padStart(2,`0`)}`,Zr=(e,t,n)=>{if(t)return n?t:Jr(t);let r=Qr(`#09090b`,1,e,.02);return n?Xr(r):Yr(r)},Qr=(e,t,n,r)=>{let i=qr(e),a=qr(n);return Kr({r:i.red,g:i.green,b:i.blue,a:t},{r:a.red,g:a.green,b:a.blue,a:r})},$r=`#4ADE80`,ei=(e=$r)=>({light:`#ffffff`,dark:Zr(e,void 0,!0)});function ti(e){let t=e?.colors.primary||`#16A34A`,n=e?.colors.light??$r;e?.theme===`linden`&&(e.background=Object.assign(Object.assign({},e.background),{color:{light:e.background?.color?.light||Xr(Qr(`#FFFFFF`,1,t,.03)),dark:e.background?.color?.dark||Xr(Qr(`#09090B`,1,n,.03))}}));let r=e?.background?.color?.light??`#ffffff`;return{light:Jr(r),dark:Zr(n,e?.background?.color?.dark),lightHex:r,darkHex:Zr(n,e?.background?.color?.dark,!0),background:e?.thumbnails?.background}}var F=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},ni=/([A-Z])/g,ri=e=>e.replace(ni,`-$1`).toLowerCase(),ii={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},ai=/[&><"']/g,oi=e=>String(e).replace(ai,e=>ii[e]),si=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?si(e.body[0]):e:e.type===`font`?si(e.body):e,ci=/* @__PURE__ */ new Set([`mathord`,`textord`,`atom`]),li=e=>ci.has(si(e).type),ui=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},di={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function fi(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function pi(e){return e.default===void 0?fi(Array.isArray(e.type)?e.type[0]:e.type):e.default}function mi(e,t,n,r){var i=n[t];e[t]=i===void 0?pi(r):r.processor?r.processor(i):i}var hi=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(di)){var n=di[t];n&&mi(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new F(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=ui(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},gi=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Ti[Ei[this.id]]}sub(){return Ti[Di[this.id]]}fracNum(){return Ti[Oi[this.id]]}fracDen(){return Ti[ki[this.id]]}cramp(){return Ti[Ai[this.id]]}text(){return Ti[ji[this.id]]}isTight(){return this.size>=2}},_i=0,vi=1,yi=2,bi=3,xi=4,Si=5,Ci=6,wi=7,Ti=[new gi(_i,0,!1),new gi(vi,0,!0),new gi(yi,1,!1),new gi(bi,1,!0),new gi(xi,2,!1),new gi(Si,2,!0),new gi(Ci,3,!1),new gi(wi,3,!0)],Ei=[xi,Si,xi,Si,Ci,wi,Ci,wi],Di=[Si,Si,Si,Si,wi,wi,wi,wi],Oi=[yi,bi,xi,Si,Ci,wi,Ci,wi],ki=[bi,bi,Si,Si,wi,wi,wi,wi],Ai=[vi,vi,bi,bi,Si,Si,wi,wi],ji=[_i,vi,yi,bi,yi,bi,yi,bi],Mi={DISPLAY:Ti[_i],TEXT:Ti[yi],SCRIPT:Ti[xi],SCRIPTSCRIPT:Ti[Ci]},Ni=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Pi(e){for(var t=0;t<Ni.length;t++)for(var n=Ni[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Fi=[];Ni.forEach(e=>e.blocks.forEach(e=>Fi.push(...e)));function Ii(e){for(var t=0;t<Fi.length;t+=2)if(e>=Fi[t]&&e<=Fi[t+1])return!0;return!1}var Li=e=>e+` `+e,Ri=80,zi=function(e,t){return`M95,`+(622+e+t)+`
8
8
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
9
9
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
10
10
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -4,4 +4,4 @@ import { dirname as __mintDirname } from 'node:path';
4
4
  const require = __mintCreateRequire(import.meta.url);
5
5
  const __filename = __mintFileURLToPath(import.meta.url);
6
6
  const __dirname = __mintDirname(__filename);
7
- export{t as clearConfigValue,n as getAgentSiteMetadata,r as getConfigValue,i as getUpdateState,a as hasShownPublishPrompt,o as isTelemetryEnabled,s as markPublishPromptShown,c as setAgentSiteMetadata,l as setConfigValue,u as setTelemetryEnabled,d as setUpdateState}from"./config-DpQ1d_vi.js";
7
+ export{t as clearConfigValue,n as getAgentSiteMetadata,r as getConfigValue,i as getUpdateState,a as hasShownPublishPrompt,o as isTelemetryEnabled,s as markPublishPromptShown,c as setAgentSiteMetadata,l as setConfigValue,u as setTelemetryEnabled,d as setUpdateState}from"./config-DzDLoppg.js";
@@ -4,7 +4,7 @@ import { dirname as __mintDirname } from 'node:path';
4
4
  const require = __mintCreateRequire(import.meta.url);
5
5
  const __filename = __mintFileURLToPath(import.meta.url);
6
6
  const __dirname = __mintDirname(__filename);
7
- import{i as e,o as t,t as n}from"./rolldown-runtime-CEAe2Uac.js";import{K as r,Wn as i,ar as a,cr as o,lr as s,or as c,qn as l,sr as u,tt as d}from"./dist-DGS-P0UG.js";import{$ as f,F as p,H as m,P as h,Q as g,V as _,W as v,_ as y,et as b,m as x,w as S}from"./dist-CmFSyH9b.js";import{a as C,c as ee,i as te,o as ne,r as re,s as ie,t as ae}from"./agent-Da2kI1tZ.js";import{dt as oe}from"./utils-D-zUiakl.js";import{r as se}from"./client-DXQ6Tgw0.js";import{f as ce,m as le}from"./schemas-CVKidklE.js";import{createRequire as ue}from"node:module";import w from"path";import{readFileSync as de}from"node:fs";import fe,*as pe from"node:readline";import{AsyncLocalStorage as me,AsyncResource as he}from"node:async_hooks";import{spawn as ge,spawnSync as _e}from"child_process";import ve,{readFileSync as ye,unlinkSync as be,writeFileSync as xe}from"fs";import Se from"os";import T from"node:process";import Ce from"node:os";import we from"node:fs/promises";import Te from"node:path";import{execFile as Ee}from"node:child_process";import{fileURLToPath as De}from"node:url";import{randomUUID as Oe}from"node:crypto";import{promisify as ke,stripVTControlCharacters as Ae}from"node:util";var je=/* @__PURE__ */ n(((t,n)=>{var r=e(`os`),i=e(`fs`),a=e(`child_process`),o=`/etc/resolv.conf`;function s(){var e=`eth`,t=r.platform();return t===`darwin`?e=`en`:t===`win32`&&(e=null),e}function c(){return r.platform()===`win32`?`ipconfig/all`:`/sbin/ifconfig`}function l(e,t){return t===`IPv4`?e===`IPv4`||e===4:t===`IPv6`?e===`IPv6`||e===6:e===t}function u(e,t){typeof e==`function`&&(t=e,e=null);var n={ip:u.ip(e),ipv6:u.ipv6(e),mac:null};u.mac(e,function(e,r){r&&(n.mac=r),t(e,n)})}u.interface=function(e,t){var n=r.networkInterfaces(),i=!t;t||=s(),e||=`IPv4`;for(var a=-1;a<8;a++){var o=n[t+(a>=0?a:``)];if(o)for(var c=0;c<o.length;c++){var u=o[c];if(l(u.family,e))return u}}if(i)for(var d in n)for(var o=n[d],a=0;a<o.length;a++){var u=o[a];if(l(u.family,e)&&!u.address.startsWith(`127.`))return u}},u.ip=function(e){var t=u.interface(`IPv4`,e);return t&&t.address},u.ipv6=function(e){var t=u.interface(`IPv6`,e);return t&&t.address};var d=/^(\w+)\:\s+flags=/,f=/^(\w+)\s{2,}link encap:\w+/i,p=u.MAC_RE=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,m=u.MAC_IP_RE=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function h(e,t,n){for(var r=e.split(`
7
+ import{i as e,o as t,t as n}from"./rolldown-runtime-CEAe2Uac.js";import{K as r,Wn as i,ar as a,cr as o,lr as s,or as c,qn as l,sr as u,tt as d}from"./dist-DGS-P0UG.js";import{$ as f,F as p,H as m,P as h,Q as g,V as _,W as v,_ as y,et as b,m as x,w as S}from"./dist-BpdR9SbK.js";import{a as C,c as ee,i as te,o as ne,r as re,s as ie,t as ae}from"./agent-Da2kI1tZ.js";import{dt as oe}from"./utils-D-zUiakl.js";import{r as se}from"./client-DXQ6Tgw0.js";import{f as ce,m as le}from"./schemas-CVKidklE.js";import{createRequire as ue}from"node:module";import w from"path";import{readFileSync as de}from"node:fs";import fe,*as pe from"node:readline";import{AsyncLocalStorage as me,AsyncResource as he}from"node:async_hooks";import{spawn as ge,spawnSync as _e}from"child_process";import ve,{readFileSync as ye,unlinkSync as be,writeFileSync as xe}from"fs";import Se from"os";import T from"node:process";import Ce from"node:os";import we from"node:fs/promises";import Te from"node:path";import{execFile as Ee}from"node:child_process";import{fileURLToPath as De}from"node:url";import{randomUUID as Oe}from"node:crypto";import{promisify as ke,stripVTControlCharacters as Ae}from"node:util";var je=/* @__PURE__ */ n(((t,n)=>{var r=e(`os`),i=e(`fs`),a=e(`child_process`),o=`/etc/resolv.conf`;function s(){var e=`eth`,t=r.platform();return t===`darwin`?e=`en`:t===`win32`&&(e=null),e}function c(){return r.platform()===`win32`?`ipconfig/all`:`/sbin/ifconfig`}function l(e,t){return t===`IPv4`?e===`IPv4`||e===4:t===`IPv6`?e===`IPv6`||e===6:e===t}function u(e,t){typeof e==`function`&&(t=e,e=null);var n={ip:u.ip(e),ipv6:u.ipv6(e),mac:null};u.mac(e,function(e,r){r&&(n.mac=r),t(e,n)})}u.interface=function(e,t){var n=r.networkInterfaces(),i=!t;t||=s(),e||=`IPv4`;for(var a=-1;a<8;a++){var o=n[t+(a>=0?a:``)];if(o)for(var c=0;c<o.length;c++){var u=o[c];if(l(u.family,e))return u}}if(i)for(var d in n)for(var o=n[d],a=0;a<o.length;a++){var u=o[a];if(l(u.family,e)&&!u.address.startsWith(`127.`))return u}},u.ip=function(e){var t=u.interface(`IPv4`,e);return t&&t.address},u.ipv6=function(e){var t=u.interface(`IPv6`,e);return t&&t.address};var d=/^(\w+)\:\s+flags=/,f=/^(\w+)\s{2,}link encap:\w+/i,p=u.MAC_RE=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,m=u.MAC_IP_RE=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function h(e,t,n){for(var r=e.split(`
8
8
  `),i=0;i<r.length;i++){var a=r[i].trimRight(),o=d.exec(a)||f.exec(a);if(o&&o[1].indexOf(t)===0){var s=null,c=null,l=p.exec(a);for(l&&(c=l[1]),i++;;){if(a=r[i],!a||d.exec(a)||f.exec(a)){i--;break}c||(l=p.exec(a),l&&(c=l[1])),s||(l=m.exec(a),l&&(s=l[1])),i++}if(s===n)return c}}}u.mac=function(e,t){typeof e==`function`&&(t=e,e=null),e||=s();var n=u.interface(`IPv4`,e);if(!n)return t();if(process.env.CI||n.mac!==`ff:00:00:00:00:00`&&n.mac!==`00:00:00:00:00:00`||(n.mac=``),n.mac)return t(null,n.mac);a.exec(c(),{timeout:5e3},function(r,i,a){if(r||!i)return t(r);var o=h(i||``,e,n.address);t(null,o)})};var g=/^nameserver\s+(\d+\.\d+\.\d+\.\d+)$/i;u.dns=function(e,t){typeof e==`function`&&(t=e,e=null),e||=o,i.readFile(e,`utf8`,function(e,n){if(e)return t(e);var r=[];n||=``;for(var i=n.split(`
9
9
  `),a=0;a<i.length;a++){var o=i[a].trim(),s=g.exec(o);s&&r.push(s[1])}t(null,r)})},n.exports=u})),Me=/* @__PURE__ */ n(((t,n)=>{let r=e(`net`),i=je(),a=b()(`detect-port`);n.exports=(e,t)=>{let n=``;typeof e==`object`&&e?(n=e.hostname,t=e.callback,e=e.port):typeof e==`function`&&(t=e,e=null),e=parseInt(e)||0;let r=e+10;return r>65535&&(r=65535),a(`detect free port between [%s, %s)`,e,r),typeof t==`function`?o(e,r,n,t):new Promise(t=>{o(e,r,n,(e,n)=>{t(n)})})};function o(e,t,n,r){function c(){e++,e>=t&&(a(`port: %s >= maxPort: %s, give up and use random port`,e,t),e=0,t=0),o(e,t,n,r)}n?s(e,n,(e,t)=>{if(e)return e.code===`EADDRNOTAVAIL`?r(/* @__PURE__ */ Error(`the ip that is not unknown on the machine`)):c();r(null,t)}):s(e,null,(t,n)=>{if(e===0)return r(t,n);if(t)return c(t);s(e,`0.0.0.0`,t=>{if(t)return c(t);s(e,`localhost`,t=>{if(t&&t.code!==`EADDRNOTAVAIL`)return c(t);s(e,i.ip(),(e,t)=>{if(e)return c(e);r(null,t)})})})})}function s(e,t,n){let i=new r.Server;i.on(`error`,r=>(a(`listen %s:%s error: %s`,t,e,r),i.close(),r.code===`ENOTFOUND`?(a(`ignore dns ENOTFOUND error, get free %s:%s`,t,e),n(null,e)):n(r))),i.listen(e,t,()=>(e=i.address().port,i.close(),a(`get free %s:%s`,t,e),n(null,e)))}})),Ne=/* @__PURE__ */ n(((e,t)=>{let n=b()(`wait-port`),r=Me(),i=e=>new Promise(t=>setTimeout(t,e));async function a(e,t={}){let{retryInterval:a=1e3,retries:o=1/0}=t,s=1;async function c(){if(n(`retries`,o,`count`,s),s>o){let e=/* @__PURE__ */ Error(`retries exceeded`);throw e.retries=o,e.count=s,e}return s++,await r(e)!==e||(await i(a),c())}return await c()}t.exports=a})),Pe=/* @__PURE__ */ n(((e,t)=>{t.exports=Me(),t.exports.waitPort=Ne()})),E=/* @__PURE__ */ n((e=>{let t=o().fromCallback,n=u(),r=(/* @__PURE__ */ `access.appendFile.chmod.chown.close.copyFile.fchmod.fchown.fdatasync.fstat.fsync.ftruncate.futimes.lchmod.lchown.link.lstat.mkdir.mkdtemp.open.opendir.readdir.readFile.readlink.realpath.rename.rm.rmdir.stat.symlink.truncate.unlink.utimes.writeFile`.split(`.`)).filter(e=>typeof n[e]==`function`);Object.assign(e,n),r.forEach(r=>{e[r]=t(n[r])}),e.exists=function(e,t){return typeof t==`function`?n.exists(e,t):new Promise(t=>n.exists(e,t))},e.read=function(e,t,r,i,a,o){return typeof o==`function`?n.read(e,t,r,i,a,o):new Promise((o,s)=>{n.read(e,t,r,i,a,(e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})})})},e.write=function(e,t,...r){return typeof r[r.length-1]==`function`?n.write(e,t,...r):new Promise((i,a)=>{n.write(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})})})},e.readv=function(e,t,...r){return typeof r[r.length-1]==`function`?n.readv(e,t,...r):new Promise((i,a)=>{n.readv(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesRead:t,buffers:n})})})},e.writev=function(e,t,...r){return typeof r[r.length-1]==`function`?n.writev(e,t,...r):new Promise((i,a)=>{n.writev(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffers:n})})})},typeof n.realpath.native==`function`?e.realpath.native=t(n.realpath.native):process.emitWarning(`fs.realpath.native is not a function. Is fs being monkey-patched?`,`Warning`,`fs-extra-WARN0003`)})),Fe=/* @__PURE__ */ n(((t,n)=>{let r=e(`path`);n.exports.checkPath=function(e){if(process.platform===`win32`&&/[<>:"|?*]/.test(e.replace(r.parse(e).root,``))){let t=/* @__PURE__ */ Error(`Path contains invalid characters: ${e}`);throw t.code=`EINVAL`,t}}})),Ie=/* @__PURE__ */ n(((e,t)=>{let n=E(),{checkPath:r}=Fe(),i=e=>typeof e==`number`?e:{mode:511,...e}.mode;t.exports.makeDir=async(e,t)=>(r(e),n.mkdir(e,{mode:i(t),recursive:!0})),t.exports.makeDirSync=(e,t)=>(r(e),n.mkdirSync(e,{mode:i(t),recursive:!0}))})),D=/* @__PURE__ */ n(((e,t)=>{let n=o().fromPromise,{makeDir:r,makeDirSync:i}=Ie(),a=n(r);t.exports={mkdirs:a,mkdirsSync:i,mkdirp:a,mkdirpSync:i,ensureDir:a,ensureDirSync:i}})),Le=/* @__PURE__ */ n(((e,t)=>{let n=o().fromPromise,r=E();function i(e){return r.access(e).then(()=>!0).catch(()=>!1)}t.exports={pathExists:n(i),pathExistsSync:r.existsSync}})),Re=/* @__PURE__ */ n(((e,t)=>{let n=E(),r=o().fromPromise;async function i(e,t,r){let i=await n.open(e,`r+`),a=null;try{await n.futimes(i,t,r)}finally{try{await n.close(i)}catch(e){a=e}}if(a)throw a}function a(e,t,r){let i=n.openSync(e,`r+`);return n.futimesSync(i,t,r),n.closeSync(i)}t.exports={utimesMillis:r(i),utimesMillisSync:a}})),ze=/* @__PURE__ */ n(((t,n)=>{let r=E(),i=e(`path`),a=o().fromPromise;function s(e,t,n){let i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function c(e,t,n){let i,a=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),o=a(e);try{i=a(t)}catch(e){if(e.code===`ENOENT`)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}async function l(e,t,n,r){let{srcStat:a,destStat:o}=await s(e,t,r);if(o){if(p(a,o)){let r=i.basename(e),s=i.basename(t);if(n===`move`&&r!==s&&r.toLowerCase()===s.toLowerCase())return{srcStat:a,destStat:o,isChangingCase:!0};throw Error(`Source and destination must not be the same.`)}if(a.isDirectory()&&!o.isDirectory())throw Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&o.isDirectory())throw Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&m(e,t))throw Error(h(e,t,n));return{srcStat:a,destStat:o}}function u(e,t,n,r){let{srcStat:a,destStat:o}=c(e,t,r);if(o){if(p(a,o)){let r=i.basename(e),s=i.basename(t);if(n===`move`&&r!==s&&r.toLowerCase()===s.toLowerCase())return{srcStat:a,destStat:o,isChangingCase:!0};throw Error(`Source and destination must not be the same.`)}if(a.isDirectory()&&!o.isDirectory())throw Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&o.isDirectory())throw Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&m(e,t))throw Error(h(e,t,n));return{srcStat:a,destStat:o}}async function d(e,t,n,a){let o=i.resolve(i.dirname(e)),s=i.resolve(i.dirname(n));if(s===o||s===i.parse(s).root)return;let c;try{c=await r.stat(s,{bigint:!0})}catch(e){if(e.code===`ENOENT`)return;throw e}if(p(t,c))throw Error(h(e,n,a));return d(e,t,s,a)}function f(e,t,n,a){let o=i.resolve(i.dirname(e)),s=i.resolve(i.dirname(n));if(s===o||s===i.parse(s).root)return;let c;try{c=r.statSync(s,{bigint:!0})}catch(e){if(e.code===`ENOENT`)return;throw e}if(p(t,c))throw Error(h(e,n,a));return f(e,t,s,a)}function p(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function m(e,t){let n=i.resolve(e).split(i.sep).filter(e=>e),r=i.resolve(t).split(i.sep).filter(e=>e);return n.every((e,t)=>r[t]===e)}function h(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}n.exports={checkPaths:a(l),checkPathsSync:u,checkParentPaths:a(d),checkParentPathsSync:f,isSrcSubdir:m,areIdentical:p}})),Be=/* @__PURE__ */ n(((t,n)=>{let r=E(),i=e(`path`),{mkdirs:a}=D(),{pathExists:o}=Le(),{utimesMillis:s}=Re(),c=ze();async function l(e,t,n={}){typeof n==`function`&&(n={filter:n}),n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
10
10