Lines 191-237javascript
191`)}function VF(Z){if(!Z)return"Object";if(typeof Z==="string")return Z;if(Z.$ref){let Q=Z.$ref.match(/([A-Za-z0-9_]+)\.class\.json/);return Q?Q[1]:"Object"}return"Object"}function fJ(Z){return Z.map((Q)=>{if(Q.$ref)return Q.$ref.split("/").pop();let W=Q.identifier??Q.name;return typeof W==="string"?W:"arg"}).join(", ")}function HF(Z){if(!Z)return[""];return Array.isArray(Z)?Z:[Z]}function BF(Z){return(Array.isArray(Z.body)?Z.body.join(`
192`):Z.body??"").includes("await ")}import{readFileSync as FF}from"node:fs";async function B7(Z,Q={}){let{title:W="Jx App",reactivitySrc:X=V1,litHtmlSrc:J=H1,projectStyle:G=null}=Q,Y;if(typeof Z==="string"){let z=FF(Z,"utf8");if(Z.endsWith(".json"))Y=w6(z,Z);else{let{extname:q}=await import("node:path"),K=q(Z).toLowerCase(),V=Q.formats?.byExtension?.(K,"parse");if(!V){let{unknownFormatError:H}=await Promise.resolve().then(() => (E6(),z7));throw H(Z,K)}Y=await V.call("parse",z)}}else Y=Z;if(CW(Y)){let{compileClassJson:z}=await Promise.resolve().then(() => hJ),q=z(Y,Q),K=typeof Z==="string"?Z.repl ...
195 <meta charset="utf-8">
196 <meta name="viewport" content="width=device-width, initial-scale=1">
197 <title>${q0(W)}</title>
198 <script type="importmap">
201 "@vue/reactivity": "${X}",
210 <script type="module" src="./${z}.js"></script>
212</html>`;return{files:[V],html:B}}return U7(Y,{litHtmlSrc:J,projectStyle:G,reactivitySrc:X,title:W})}async function Ax(Z,Q){let[W,X]=await
213`,patched:!0}}function lJ(Z,Q){for(let[W,X]of Object.entries(Q)){let J=Z[W];if(Array.isArray(X)){Z[W]=LF(Array.isArray(J)?J:[],X);continue}if(b8(X)){if(b8(J))lJ(J,X);else if(J===void 0)Z[W]=structuredClone(X);continue}if(J===void 0)Z[W]=X}}function LF(Z,Q){let W=[...Z];for(let X of Q){if(!b8(X)||typeof X.binding!=="string"){if(!W.some((Y)=>JSON.stringify(Y)===JSON.stringify(X)))W.push(structuredClone(X));continue}let J=W.findIndex((G)=>b8(G)&&G.binding===X.binding);if(J===-1)W.push(structuredClone(X));else W[J]={...W[J],...X}}return W}function b8(Z){return Z!==null&&typeof Z==="object"&&!Array ...
214`)){let J=X.trim();if(J===""||J.startsWith("#"))continue;let G=J.indexOf("=");if(
215 `)}function vF(Z){if(typeof Z==="string")return Z;if(!Z||typeof Z!=="object")return"";let Q
216 Copyright 2013 Lovell Fuller and others.
217 SPDX-License-Identifier: Apache-2.0
218*/$={defined:UG,object:iF,plainObject:nF,fn:rF,bool:aF,buffer:sF,typedArray:oF,arrayBuffer:tF,string:eF,number:ZL,integer:QL,inRange:WL,inArray:XL,invalidParameterError:JL,nativeError:GL}});var BG=j((Zv,HG)=>{var VG=
219 Copyright 2013 Lovell Fuller and others.
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/cli.jsView on unpkg · L211 HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/cli.jsView on unpkg · L212 220 SPDX-License-Identifier: Apache-2.0
221*/RI=process.env.npm_package_config_libvips||Y6.config.libvips,Cz=I9.default.coerce(RI).version,PI=["darwin-arm64","darwin-x64","freebsd-arm64","freebsd-x64","linux-arm","linux-arm64","linux-ppc64","linux-riscv64","linux-s390x"
222 Copyright 2013 Lovell Fuller and others.
223 SPDX-License-Identifier: Apache-2.0
224*/_0=mI(import.meta.url),{version:vz}=Y6,{runtimePlatformArch:lI,isUnsupportedNodeRuntime:xz,prebuiltPlatforms:dI,minimumLibvipsVersion:cI}=Z5,z6=lI(),C6=[];try{V0=_0(`../src/build/Release/sharp-${z6}-${vz}.node`
225`))}K0=V0});import pI from"node:util";import m7 from"node:stream";function rI(){let Z=this.constructor.call(),{debuglog:Q,queueListener:W,...X}=this.options;if(Z.options=structuredClone(X),Z.options.debuglog=Q,Z.options.queueListener=W,this._isStreamInput())this.on("finish",()=>{this._flattenBufferIn(),Z.options.input.buffer=this.options.input.buffer,Z.emit("finish")});return Z}var iI,nI=(Z)=>{r6.queue.emit("change",Z)},r6=function(Z,Q){if(arguments.length===1&&!$.defined(Z))throw Error("Invalid input");if(!(this instanceof r6))return new r6(Z,Q);return m7.Duplex.call(this),this.options={topOf ...
226 Copyright 2013 Lovell Fuller and others.
227 SPDX-License-Identifier: Apache-2.0
228*/iI=pI.debuglog("sharp");Object.setPrototypeOf(r6.prototype,m7.Duplex.prototype);Object.setPrototypeOf(r6,m7.Duplex);Object.assign(r6.prototype,{clone:rI});p4=r6});function gz(Z){let Q=sI.filter((W)=>$.defined(Z[W])).map((W)=>[W,Z[W]]);return Q.length?Object.fromEntries(Q):void 0}function oI(Z,Q,W){let X={autoOrient:!1,failOn:"warning",limitInputPixels:268402689,limitInputChannels:5,ignoreIcc:!1,unlimited:!1,sequentialRead:!0};if($.string(Z))X.file=Z;else if($.buffer(Z)){if(Z.length===0)throw Error("Input Buffer is empty");X.buffer=Z}else if($.arrayBuffer(Z)){if(Z.byteLength===0)throw Error(" ...
229 Copyright 2013 Lovell Fuller and others.
230 SPDX-License-Identifier: Apache-2.0
231*/aI={left:"low",top:"low",low:"low",center:"centre",centre:"centre",right:"high",bottom:"high",high:"high"},sI=["failOn","limitInputPixels","limitInputChannels","unlimited","animated","autoOrient","density","ignoreIcc","page","pages","sequentialRead","jp2","openSlide","pdf","raw","svg","tiff","openSlideLevel","pdfBackground","tiffSubifd"]});function d7(Z){return Z.angle%360!==0||Z.rotationAngle!==0}function W5(Z){return Z.width!==-1||Z.height!==-1}function G2(Z,Q,W){if(W5(this.options))this.options.debuglog("ignoring previous resize options");if(this.options.widthPost!==-1)this.options.debugl ...
232 Copyright 2013 Lovell Fuller and others.
233 SPDX-License-Identifier: Apache-2.0
234*/mz={center:0,centre:0,north:1,east:2,south:3,west:4,northeast:5,southeast:6,southwest:7,northwest:8},lz={top:1,right:2,bottom:3,left:4,"right top"
235 Copyright 2013 Lovell Fuller and others.
236 SPDX-License-Identifier: Apache-2.0
237*/c7={clear:"clear",source:"source",over:"over",in:"in",out:"out",atop:"atop",dest:"dest","dest-over":"dest-over","dest-in":"dest-in","dest-out":"dest-out","dest-atop":"dest-atop",xor:"xor"
Long lines were clipped for display.