`),s}),le=()=>{const s=["apcu","bcmath","calendar","ctype","curl","dba","dom","exif","filter","fileinfo","gd","iconv","intl","mbstring","mbregex","mysqli","mysqlnd","openssl","opcache","pcntl","pdo","pdo_mysql","pdo_sqlite","pdo_pgsql","pgsql","phar","posix","readline","redis","session","simplexml","sockets","sodium","sqlite3","tokenizer","xml","xmlreader","xmlwriter","xsl","zip","zlib"],l=new Set(G.value);m.value=s.filter(n=>l.has(n))},ne=()=>{m.value=[...G.value]},O=(s,l)=>{if(!w.value||!s.includes(w.value))return l===0?s:"";const n=s.indexOf(w.value);switch(l){case 0:return s.substring(0,n);case 1:return w.value;case 2:return s.substring(n+w.value.length);default:return""}},T=async(s,l)=>{try{await navigator.clipboard.writeText(s),v.value[l]=!0,setTimeout(()=>{v.value[l]=!1},2e3)}catch{const n=document.createElement("textarea");n.value=s,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}};re(u,()=>{u.value==="windows"&&(I.value="x86_64",x.value=!1),m.value=[]});const a={zh:{selectExt:"选择扩展",buildTarget:"选择编译目标",buildOptions:"编译选项",buildEnvironment:"编译环境",buildEnvNative:"本地构建(Git 源码)",buildEnvSpc:"本地构建(独立 spc 二进制)",useVerbose:"是否输出详细日志",verboseNone:"不输出(默认)",yes:"是",no:"否",resultShow:"结果展示",selectCommon:"选择常用扩展",selectAll:"选择全部",selectNone:"全部取消选择",useZTS:"是否编译线程安全版",hardcodedINI:"硬编码 INI 选项",hardcodedINIPlaceholder:"如需要硬编码 ini,每行写一个,例如:memory_limit=2G",compileCommand:"编译命令",downloadPhpVersion:"下载 PHP 版本",downloadSPCBinaryCommand:"下载 spc 二进制命令",selectedSystem:"选择操作系统",windowsSAPIUnavailable:"Windows 目前不支持 fpm、embed、frankenphp 构建!",useUPX:"是否开启 UPX 压缩(减小二进制体积)",windowsDownSPCWarning:"Windows 下请手动下载 spc.exe 二进制文件!",usePreBuilt:"如果可能,使用预编译的依赖库(减少编译时间)",searchPlaceholder:"搜索扩展...",copy:"复制",copied:"已复制",doctorCommand:"自动检查和准备构建环境命令",dlParallel:"并行下载数(1-50)",dlRetry:"失败重试次数",noStrip:"保留调试符号(--no-strip)"},en:{selectExt:"Select Extensions",buildTarget:"Build Target",buildOptions:"Build Options",buildEnvironment:"Build Environment",buildEnvNative:"Native build (Git source code)",buildEnvSpc:"Native build (standalone spc binary)",useVerbose:"Verbose log output",verboseNone:"None (default)",yes:"Yes",no:"No",resultShow:"Result",selectCommon:"Select common extensions",selectAll:"Select all",selectNone:"Unselect all",useZTS:"Enable ZTS (thread-safe)",hardcodedINI:"Hardcoded INI options",hardcodedINIPlaceholder:"If you need to hardcode ini, write one per line, for example: memory_limit=2G",compileCommand:"Build command",downloadPhpVersion:"PHP version",downloadSPCBinaryCommand:"Download spc binary",selectedSystem:"Select OS",windowsSAPIUnavailable:"Windows does not support fpm, embed and frankenphp build!",useUPX:"Enable UPX compression (reduce binary size)",windowsDownSPCWarning:"Please download the spc.exe binary manually on Windows!",usePreBuilt:"Use pre-built dependencies where available (reduce compile time)",searchPlaceholder:"Search extensions...",copy:"Copy",copied:"Copied",doctorCommand:"Auto-check and prepare build environment",dlParallel:"Parallel downloads (1-50)",dlRetry:"Retry count on failure",noStrip:"Keep debug symbols (--no-strip)"}};return(s,l)=>(c(),r("div",null,[ce(J)?(c(),r("div",pe,[...l[24]||(l[24]=[e("p",{class:"custom-block-title"},"WARNING",-1),e("p",null,[H("Extension list is not generated yet. Run "),e("code",null,"bin/spc dev:gen-ext-docs"),H(" to generate it.")],-1)])])):P("",!0),e("h2",null,t(a[o.lang].selectedSystem),1),e("div",me,[(c(),r(z,null,B(_,(n,p)=>e("span",{key:p,style:{"margin-right":"8px"}},[i(e("input",{type:"radio",id:"os-"+n.os,value:n.os,"onUpdate:modelValue":l[0]||(l[0]=y=>u.value=y)},null,