@cxl/build 1.0.0-beta.6 → 1.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3doc.js +387 -97
- package/README.md +2 -2
- package/chunk-5TBO732O.js +1 -0
- package/chunk-5WF7RQTO.js +1 -0
- package/chunk-7JHEVJJ4.js +3 -0
- package/chunk-BXTUUEIX.js +2 -0
- package/chunk-CYNDEFT4.js +44 -0
- package/chunk-D4L7ASFT.js +1 -0
- package/chunk-SAGAXEIB.js +0 -0
- package/docs.d.ts +3 -0
- package/eslint-config.d.ts +1 -1
- package/eslint-config.js +35 -2
- package/file.d.ts +3 -2
- package/index.d.ts +7 -3
- package/index.js +2 -0
- package/library-W36W2ORC.js +1 -0
- package/lint.d.ts +3 -1
- package/npm.d.ts +6 -6
- package/package.json +10 -7
- package/render-Y5UDPANY.js +1 -0
- package/{render-html-3KIHSJJY-VNYRPRM7.js → render-html-FK2ODCB6-2Q3SFNUN.js} +17 -19
- package/render-md-VRS3K2RJ-LAY5HVJV.js +18 -0
- package/render-summary-HB4SHFD2.js +1 -0
- package/root-JFVRTVUW.js +9 -0
- package/spec-browser.js +102 -130
- package/tsc.d.ts +8 -0
- package/chunk-FSRPMVAS.js +0 -1
- package/chunk-KPQXDQIW.js +0 -44
- package/chunk-SWJCWBGM.js +0 -1
- package/chunk-TMHR6BIT.js +0 -4
- package/index.bundle.js +0 -2
- package/library-PNA444FE.js +0 -1
- package/png-BPHNXF4V.js +0 -1
- package/render-WEE5MH6Y.js +0 -1
- package/render-summary-LMSHEX67-C5I3XNGJ.js +0 -1
- package/root-G5JDVI4D.js +0 -9
package/png-BPHNXF4V.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as w,b as m}from"./chunk-FSRPMVAS.js";var x=m(($t,$)=>{"use strict";var Ve=w("util"),Q=w("stream"),I=$.exports=function(){Q.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};Ve.inherits(I,Q);I.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t}),process.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))};I.prototype.write=function(e,t){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let i;return Buffer.isBuffer(e)?i=e:i=Buffer.from(e,t||this._encoding),this._buffers.push(i),this._buffered+=i.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused};I.prototype.end=function(e,t){e&&this.write(e,t),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};I.prototype.destroySoon=I.prototype.end;I.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};I.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};I.prototype._processReadAllowingLess=function(e){this._reads.shift();let t=this._buffers[0];t.length>e.length?(this._buffered-=e.length,this._buffers[0]=t.slice(e.length),e.func.call(this,t.slice(0,e.length))):(this._buffered-=t.length,this._buffers.shift(),e.func.call(this,t))};I.prototype._processRead=function(e){this._reads.shift();let t=0,i=0,r=Buffer.alloc(e.length);for(;t<e.length;){let l=this._buffers[i++],n=Math.min(l.length,e.length-t);l.copy(r,t,0,n),t+=n,n!==l.length&&(this._buffers[--i]=l.slice(n))}i>0&&this._buffers.splice(0,i),this._buffered-=e.length,e.func.call(this,r)};I.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let e=this._reads[0];if(e.allowLess)this._processReadAllowingLess(e);else if(this._buffered>=e.length)this._processRead(e);else break}this._buffers&&!this.writable&&this._end()}catch(e){this.emit("error",e)}}});var N=m(q=>{"use strict";var A=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];q.getImagePasses=function(e,t){let i=[],r=e%8,l=t%8,n=(e-r)/8,s=(t-l)/8;for(let h=0;h<A.length;h++){let f=A[h],o=n*f.x.length,a=s*f.y.length;for(let u=0;u<f.x.length&&f.x[u]<r;u++)o++;for(let u=0;u<f.y.length&&f.y[u]<l;u++)a++;o>0&&a>0&&i.push({width:o,height:a,index:h})}return i};q.getInterlaceIterator=function(e){return function(t,i,r){let l=t%A[r].x.length,n=(t-l)/A[r].x.length*8+A[r].x[l],s=i%A[r].y.length,h=(i-s)/A[r].y.length*8+A[r].y[s];return n*4+h*e*4}}});var U=m((ei,X)=>{"use strict";X.exports=function(t,i,r){let l=t+i-r,n=Math.abs(l-t),s=Math.abs(l-i),h=Math.abs(l-r);return n<=s&&n<=h?t:s<=h?i:r}});var H=m((ti,te)=>{"use strict";var We=N(),Ke=U();function ee(e,t,i){let r=e*t;return i!==8&&(r=Math.ceil(r/(8/i))),r}var P=te.exports=function(e,t){let i=e.width,r=e.height,l=e.interlace,n=e.bpp,s=e.depth;if(this.read=t.read,this.write=t.write,this.complete=t.complete,this._imageIndex=0,this._images=[],l){let h=We.getImagePasses(i,r);for(let f=0;f<h.length;f++)this._images.push({byteWidth:ee(h[f].width,n,s),height:h[f].height,lineIndex:0})}else this._images.push({byteWidth:ee(i,n,s),height:r,lineIndex:0});s===8?this._xComparison=n:s===16?this._xComparison=n*2:this._xComparison=1};P.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};P.prototype._unFilterType1=function(e,t,i){let r=this._xComparison,l=r-1;for(let n=0;n<i;n++){let s=e[1+n],h=n>l?t[n-r]:0;t[n]=s+h}};P.prototype._unFilterType2=function(e,t,i){let r=this._lastLine;for(let l=0;l<i;l++){let n=e[1+l],s=r?r[l]:0;t[l]=n+s}};P.prototype._unFilterType3=function(e,t,i){let r=this._xComparison,l=r-1,n=this._lastLine;for(let s=0;s<i;s++){let h=e[1+s],f=n?n[s]:0,o=s>l?t[s-r]:0,a=Math.floor((o+f)/2);t[s]=h+a}};P.prototype._unFilterType4=function(e,t,i){let r=this._xComparison,l=r-1,n=this._lastLine;for(let s=0;s<i;s++){let h=e[1+s],f=n?n[s]:0,o=s>l?t[s-r]:0,a=s>l&&n?n[s-r]:0,u=Ke(o,f,a);t[s]=h+u}};P.prototype._reverseFilterLine=function(e){let t=e[0],i,r=this._images[this._imageIndex],l=r.byteWidth;if(t===0)i=e.slice(1,l+1);else switch(i=Buffer.alloc(l),t){case 1:this._unFilterType1(e,i,l);break;case 2:this._unFilterType2(e,i,l);break;case 3:this._unFilterType3(e,i,l);break;case 4:this._unFilterType4(e,i,l);break;default:throw new Error("Unrecognised filter type - "+t)}this.write(i),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=i,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var ne=m((ii,re)=>{"use strict";var Je=w("util"),ie=x(),Qe=H(),$e=re.exports=function(e){ie.call(this);let t=[],i=this;this._filter=new Qe(e,{read:this.read.bind(this),write:function(r){t.push(r)},complete:function(){i.emit("complete",Buffer.concat(t))}}),this._filter.start()};Je.inherits($e,ie)});var S=m((ri,le)=>{"use strict";le.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var G=m((ni,se)=>{"use strict";var D=[];(function(){for(let e=0;e<256;e++){let t=e;for(let i=0;i<8;i++)t&1?t=3988292384^t>>>1:t=t>>>1;D[e]=t}})();var v=se.exports=function(){this._crc=-1};v.prototype.write=function(e){for(let t=0;t<e.length;t++)this._crc=D[(this._crc^e[t])&255]^this._crc>>>8;return!0};v.prototype.crc32=function(){return this._crc^-1};v.crc32=function(e){let t=-1;for(let i=0;i<e.length;i++)t=D[(t^e[i])&255]^t>>>8;return t^-1}});var F=m((li,he)=>{"use strict";var b=S(),Xe=G(),E=he.exports=function(e,t){this._options=e,e.checkCRC=e.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[b.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[b.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[b.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[b.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[b.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[b.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=t.read,this.error=t.error,this.metadata=t.metadata,this.gamma=t.gamma,this.transColor=t.transColor,this.palette=t.palette,this.parsed=t.parsed,this.inflateData=t.inflateData,this.finished=t.finished,this.simpleTransparency=t.simpleTransparency,this.headersFinished=t.headersFinished||function(){}};E.prototype.start=function(){this.read(b.PNG_SIGNATURE.length,this._parseSignature.bind(this))};E.prototype._parseSignature=function(e){let t=b.PNG_SIGNATURE;for(let i=0;i<t.length;i++)if(e[i]!==t[i]){this.error(new Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};E.prototype._parseChunkBegin=function(e){let t=e.readUInt32BE(0),i=e.readUInt32BE(4),r="";for(let n=4;n<8;n++)r+=String.fromCharCode(e[n]);let l=!!(e[4]&32);if(!this._hasIHDR&&i!==b.TYPE_IHDR){this.error(new Error("Expected IHDR on beggining"));return}if(this._crc=new Xe,this._crc.write(Buffer.from(r)),this._chunks[i])return this._chunks[i](t);if(!l){this.error(new Error("Unsupported critical chunk type "+r));return}this.read(t+4,this._skipChunk.bind(this))};E.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};E.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};E.prototype._parseChunkEnd=function(e){let t=e.readInt32BE(0),i=this._crc.crc32();if(this._options.checkCRC&&i!==t){this.error(new Error("Crc error - "+t+" - "+i));return}this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))};E.prototype._handleIHDR=function(e){this.read(e,this._parseIHDR.bind(this))};E.prototype._parseIHDR=function(e){this._crc.write(e);let t=e.readUInt32BE(0),i=e.readUInt32BE(4),r=e[8],l=e[9],n=e[10],s=e[11],h=e[12];if(r!==8&&r!==4&&r!==2&&r!==1&&r!==16){this.error(new Error("Unsupported bit depth "+r));return}if(!(l in b.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(n!==0){this.error(new Error("Unsupported compression method"));return}if(s!==0){this.error(new Error("Unsupported filter method"));return}if(h!==0&&h!==1){this.error(new Error("Unsupported interlace method"));return}this._colorType=l;let f=b.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:t,height:i,depth:r,interlace:!!h,palette:!!(l&b.COLORTYPE_PALETTE),color:!!(l&b.COLORTYPE_COLOR),alpha:!!(l&b.COLORTYPE_ALPHA),bpp:f,colorType:l}),this._handleChunkEnd()};E.prototype._handlePLTE=function(e){this.read(e,this._parsePLTE.bind(this))};E.prototype._parsePLTE=function(e){this._crc.write(e);let t=Math.floor(e.length/3);for(let i=0;i<t;i++)this._palette.push([e[i*3],e[i*3+1],e[i*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};E.prototype._handleTRNS=function(e){this.simpleTransparency(),this.read(e,this._parseTRNS.bind(this))};E.prototype._parseTRNS=function(e){if(this._crc.write(e),this._colorType===b.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(new Error("Transparency chunk must be after palette"));return}if(e.length>this._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let t=0;t<e.length;t++)this._palette[t][3]=e[t];this.palette(this._palette)}this._colorType===b.COLORTYPE_GRAYSCALE&&this.transColor([e.readUInt16BE(0)]),this._colorType===b.COLORTYPE_COLOR&&this.transColor([e.readUInt16BE(0),e.readUInt16BE(2),e.readUInt16BE(4)]),this._handleChunkEnd()};E.prototype._handleGAMA=function(e){this.read(e,this._parseGAMA.bind(this))};E.prototype._parseGAMA=function(e){this._crc.write(e),this.gamma(e.readUInt32BE(0)/b.GAMMA_DIVISION),this._handleChunkEnd()};E.prototype._handleIDAT=function(e){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-e,this._parseIDAT.bind(this,e))};E.prototype._parseIDAT=function(e,t){if(this._crc.write(t),this._colorType===b.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw new Error("Expected palette not found");this.inflateData(t);let i=e-t.length;i>0?this._handleIDAT(i):this._handleChunkEnd()};E.prototype._handleIEND=function(e){this.read(e,this._parseIEND.bind(this))};E.prototype._parseIEND=function(e){this._crc.write(e),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var z=m(oe=>{"use strict";var fe=N(),et=[function(){},function(e,t,i,r){if(r===t.length)throw new Error("Ran out of data");let l=t[r];e[i]=l,e[i+1]=l,e[i+2]=l,e[i+3]=255},function(e,t,i,r){if(r+1>=t.length)throw new Error("Ran out of data");let l=t[r];e[i]=l,e[i+1]=l,e[i+2]=l,e[i+3]=t[r+1]},function(e,t,i,r){if(r+2>=t.length)throw new Error("Ran out of data");e[i]=t[r],e[i+1]=t[r+1],e[i+2]=t[r+2],e[i+3]=255},function(e,t,i,r){if(r+3>=t.length)throw new Error("Ran out of data");e[i]=t[r],e[i+1]=t[r+1],e[i+2]=t[r+2],e[i+3]=t[r+3]}],tt=[function(){},function(e,t,i,r){let l=t[0];e[i]=l,e[i+1]=l,e[i+2]=l,e[i+3]=r},function(e,t,i){let r=t[0];e[i]=r,e[i+1]=r,e[i+2]=r,e[i+3]=t[1]},function(e,t,i,r){e[i]=t[0],e[i+1]=t[1],e[i+2]=t[2],e[i+3]=r},function(e,t,i){e[i]=t[0],e[i+1]=t[1],e[i+2]=t[2],e[i+3]=t[3]}];function it(e,t){let i=[],r=0;function l(){if(r===e.length)throw new Error("Ran out of data");let n=e[r];r++;let s,h,f,o,a,u,c,p;switch(t){default:throw new Error("unrecognised depth");case 16:c=e[r],r++,i.push((n<<8)+c);break;case 4:c=n&15,p=n>>4,i.push(p,c);break;case 2:a=n&3,u=n>>2&3,c=n>>4&3,p=n>>6&3,i.push(p,c,u,a);break;case 1:s=n&1,h=n>>1&1,f=n>>2&1,o=n>>3&1,a=n>>4&1,u=n>>5&1,c=n>>6&1,p=n>>7&1,i.push(p,c,u,a,o,f,h,s);break}}return{get:function(n){for(;i.length<n;)l();let s=i.slice(0,n);return i=i.slice(n),s},resetAfterLine:function(){i.length=0},end:function(){if(r!==e.length)throw new Error("extra data found")}}}function rt(e,t,i,r,l,n){let s=e.width,h=e.height,f=e.index;for(let o=0;o<h;o++)for(let a=0;a<s;a++){let u=i(a,o,f);et[r](t,l,u,n),n+=r}return n}function nt(e,t,i,r,l,n){let s=e.width,h=e.height,f=e.index;for(let o=0;o<h;o++){for(let a=0;a<s;a++){let u=l.get(r),c=i(a,o,f);tt[r](t,u,c,n)}l.resetAfterLine()}}oe.dataToBitMap=function(e,t){let i=t.width,r=t.height,l=t.depth,n=t.bpp,s=t.interlace,h;l!==8&&(h=it(e,l));let f;l<=8?f=Buffer.alloc(i*r*4):f=new Uint16Array(i*r*4);let o=Math.pow(2,l)-1,a=0,u,c;if(s)u=fe.getImagePasses(i,r),c=fe.getInterlaceIterator(i,r);else{let p=0;c=function(){let d=p;return p+=4,d},u=[{width:i,height:r}]}for(let p=0;p<u.length;p++)l===8?a=rt(u[p],f,c,n,e,a):nt(u[p],f,c,n,h,o);if(l===8){if(a!==e.length)throw new Error("extra data found")}else h.end();return f}});var j=m((hi,ae)=>{"use strict";function lt(e,t,i,r,l){let n=0;for(let s=0;s<r;s++)for(let h=0;h<i;h++){let f=l[e[n]];if(!f)throw new Error("index "+e[n]+" not in palette");for(let o=0;o<4;o++)t[n+o]=f[o];n+=4}}function st(e,t,i,r,l){let n=0;for(let s=0;s<r;s++)for(let h=0;h<i;h++){let f=!1;if(l.length===1?l[0]===e[n]&&(f=!0):l[0]===e[n]&&l[1]===e[n+1]&&l[2]===e[n+2]&&(f=!0),f)for(let o=0;o<4;o++)t[n+o]=0;n+=4}}function ht(e,t,i,r,l){let n=255,s=Math.pow(2,l)-1,h=0;for(let f=0;f<r;f++)for(let o=0;o<i;o++){for(let a=0;a<4;a++)t[h+a]=Math.floor(e[h+a]*n/s+.5);h+=4}}ae.exports=function(e,t,i=!1){let r=t.depth,l=t.width,n=t.height,s=t.colorType,h=t.transColor,f=t.palette,o=e;return s===3?lt(e,o,l,n,f):(h&&st(e,o,l,n,h),r!==8&&!i&&(r===16&&(o=Buffer.alloc(l*n*4)),ht(e,o,l,n,r))),o}});var _e=m((fi,ce)=>{"use strict";var ft=w("util"),Z=w("zlib"),ue=x(),ot=ne(),at=F(),ut=z(),ct=j(),k=ce.exports=function(e){ue.call(this),this._parser=new at(e,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=e,this.writable=!0,this._parser.start()};ft.inherits(k,ue);k.prototype._handleError=function(e){this.emit("error",e),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0};k.prototype._inflateData=function(e){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=Z.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let i=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,r=Math.max(i,Z.Z_MIN_CHUNK);this._inflate=Z.createInflate({chunkSize:r});let l=i,n=this.emit.bind(this,"error");this._inflate.on("error",function(h){l&&n(h)}),this._filter.on("complete",this._complete.bind(this));let s=this._filter.write.bind(this._filter);this._inflate.on("data",function(h){l&&(h.length>l&&(h=h.slice(0,l)),l-=h.length,s(h))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(e)};k.prototype._handleMetaData=function(e){this._metaData=e,this._bitmapInfo=Object.create(e),this._filter=new ot(this._bitmapInfo)};k.prototype._handleTransColor=function(e){this._bitmapInfo.transColor=e};k.prototype._handlePalette=function(e){this._bitmapInfo.palette=e};k.prototype._simpleTransparency=function(){this._metaData.alpha=!0};k.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};k.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};k.prototype._complete=function(e){if(this.errord)return;let t;try{let i=ut.dataToBitMap(e,this._bitmapInfo);t=ct(i,this._bitmapInfo,this._options.skipRescale),i=null}catch(i){this._handleError(i);return}this.emit("parsed",t)}});var de=m((oi,pe)=>{"use strict";var L=S();pe.exports=function(e,t,i,r){let l=[L.COLORTYPE_COLOR_ALPHA,L.COLORTYPE_ALPHA].indexOf(r.colorType)!==-1;if(r.colorType===r.inputColorType){let d=(function(){let y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]!==256})();if(r.bitDepth===8||r.bitDepth===16&&d)return e}let n=r.bitDepth!==16?e:new Uint16Array(e.buffer),s=255,h=L.COLORTYPE_TO_BPP_MAP[r.inputColorType];h===4&&!r.inputHasAlpha&&(h=3);let f=L.COLORTYPE_TO_BPP_MAP[r.colorType];r.bitDepth===16&&(s=65535,f*=2);let o=Buffer.alloc(t*i*f),a=0,u=0,c=r.bgColor||{};c.red===void 0&&(c.red=s),c.green===void 0&&(c.green=s),c.blue===void 0&&(c.blue=s);function p(){let d,y,_,g=s;switch(r.inputColorType){case L.COLORTYPE_COLOR_ALPHA:g=n[a+3],d=n[a],y=n[a+1],_=n[a+2];break;case L.COLORTYPE_COLOR:d=n[a],y=n[a+1],_=n[a+2];break;case L.COLORTYPE_ALPHA:g=n[a+1],d=n[a],y=d,_=d;break;case L.COLORTYPE_GRAYSCALE:d=n[a],y=d,_=d;break;default:throw new Error("input color type:"+r.inputColorType+" is not supported at present")}return r.inputHasAlpha&&(l||(g/=s,d=Math.min(Math.max(Math.round((1-g)*c.red+g*d),0),s),y=Math.min(Math.max(Math.round((1-g)*c.green+g*y),0),s),_=Math.min(Math.max(Math.round((1-g)*c.blue+g*_),0),s))),{red:d,green:y,blue:_,alpha:g}}for(let d=0;d<i;d++)for(let y=0;y<t;y++){let _=p(n,a);switch(r.colorType){case L.COLORTYPE_COLOR_ALPHA:case L.COLORTYPE_COLOR:r.bitDepth===8?(o[u]=_.red,o[u+1]=_.green,o[u+2]=_.blue,l&&(o[u+3]=_.alpha)):(o.writeUInt16BE(_.red,u),o.writeUInt16BE(_.green,u+2),o.writeUInt16BE(_.blue,u+4),l&&o.writeUInt16BE(_.alpha,u+6));break;case L.COLORTYPE_ALPHA:case L.COLORTYPE_GRAYSCALE:{let g=(_.red+_.green+_.blue)/3;r.bitDepth===8?(o[u]=g,l&&(o[u+1]=_.alpha)):(o.writeUInt16BE(g,u),l&&o.writeUInt16BE(_.alpha,u+2));break}default:throw new Error("unrecognised color Type "+r.colorType)}a+=h,u+=f}return o}});var me=m((ai,ye)=>{"use strict";var ge=U();function _t(e,t,i,r,l){for(let n=0;n<i;n++)r[l+n]=e[t+n]}function pt(e,t,i){let r=0,l=t+i;for(let n=t;n<l;n++)r+=Math.abs(e[n]);return r}function dt(e,t,i,r,l,n){for(let s=0;s<i;s++){let h=s>=n?e[t+s-n]:0,f=e[t+s]-h;r[l+s]=f}}function gt(e,t,i,r){let l=0;for(let n=0;n<i;n++){let s=n>=r?e[t+n-r]:0,h=e[t+n]-s;l+=Math.abs(h)}return l}function yt(e,t,i,r,l){for(let n=0;n<i;n++){let s=t>0?e[t+n-i]:0,h=e[t+n]-s;r[l+n]=h}}function mt(e,t,i){let r=0,l=t+i;for(let n=t;n<l;n++){let s=t>0?e[n-i]:0,h=e[n]-s;r+=Math.abs(h)}return r}function bt(e,t,i,r,l,n){for(let s=0;s<i;s++){let h=s>=n?e[t+s-n]:0,f=t>0?e[t+s-i]:0,o=e[t+s]-(h+f>>1);r[l+s]=o}}function Et(e,t,i,r){let l=0;for(let n=0;n<i;n++){let s=n>=r?e[t+n-r]:0,h=t>0?e[t+n-i]:0,f=e[t+n]-(s+h>>1);l+=Math.abs(f)}return l}function wt(e,t,i,r,l,n){for(let s=0;s<i;s++){let h=s>=n?e[t+s-n]:0,f=t>0?e[t+s-i]:0,o=t>0&&s>=n?e[t+s-(i+n)]:0,a=e[t+s]-ge(h,f,o);r[l+s]=a}}function Tt(e,t,i,r){let l=0;for(let n=0;n<i;n++){let s=n>=r?e[t+n-r]:0,h=t>0?e[t+n-i]:0,f=t>0&&n>=r?e[t+n-(i+r)]:0,o=e[t+n]-ge(s,h,f);l+=Math.abs(o)}return l}var Ct={0:_t,1:dt,2:yt,3:bt,4:wt},Ot={0:pt,1:gt,2:mt,3:Et,4:Tt};ye.exports=function(e,t,i,r,l){let n;if(!("filterType"in r)||r.filterType===-1)n=[0,1,2,3,4];else if(typeof r.filterType=="number")n=[r.filterType];else throw new Error("unrecognised filter types");r.bitDepth===16&&(l*=2);let s=t*l,h=0,f=0,o=Buffer.alloc((s+1)*i),a=n[0];for(let u=0;u<i;u++){if(n.length>1){let c=1/0;for(let p=0;p<n.length;p++){let d=Ot[n[p]](e,f,s,l);d<c&&(a=n[p],c=d)}}o[h]=a,h++,Ct[a](e,f,s,o,h,l),h+=s,f+=s}return o}});var V=m((ui,be)=>{"use strict";var T=S(),Lt=G(),It=de(),kt=me(),At=w("zlib"),R=be.exports=function(e){if(this._options=e,e.deflateChunkSize=e.deflateChunkSize||32*1024,e.deflateLevel=e.deflateLevel!=null?e.deflateLevel:9,e.deflateStrategy=e.deflateStrategy!=null?e.deflateStrategy:3,e.inputHasAlpha=e.inputHasAlpha!=null?e.inputHasAlpha:!0,e.deflateFactory=e.deflateFactory||At.createDeflate,e.bitDepth=e.bitDepth||8,e.colorType=typeof e.colorType=="number"?e.colorType:T.COLORTYPE_COLOR_ALPHA,e.inputColorType=typeof e.inputColorType=="number"?e.inputColorType:T.COLORTYPE_COLOR_ALPHA,[T.COLORTYPE_GRAYSCALE,T.COLORTYPE_COLOR,T.COLORTYPE_COLOR_ALPHA,T.COLORTYPE_ALPHA].indexOf(e.colorType)===-1)throw new Error("option color type:"+e.colorType+" is not supported at present");if([T.COLORTYPE_GRAYSCALE,T.COLORTYPE_COLOR,T.COLORTYPE_COLOR_ALPHA,T.COLORTYPE_ALPHA].indexOf(e.inputColorType)===-1)throw new Error("option input color type:"+e.inputColorType+" is not supported at present");if(e.bitDepth!==8&&e.bitDepth!==16)throw new Error("option bit depth:"+e.bitDepth+" is not supported at present")};R.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};R.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};R.prototype.filterData=function(e,t,i){let r=It(e,t,i,this._options),l=T.COLORTYPE_TO_BPP_MAP[this._options.colorType];return kt(r,t,i,this._options,l)};R.prototype._packChunk=function(e,t){let i=t?t.length:0,r=Buffer.alloc(i+12);return r.writeUInt32BE(i,0),r.writeUInt32BE(e,4),t&&t.copy(r,8),r.writeInt32BE(Lt.crc32(r.slice(4,r.length-4)),r.length-4),r};R.prototype.packGAMA=function(e){let t=Buffer.alloc(4);return t.writeUInt32BE(Math.floor(e*T.GAMMA_DIVISION),0),this._packChunk(T.TYPE_gAMA,t)};R.prototype.packIHDR=function(e,t){let i=Buffer.alloc(13);return i.writeUInt32BE(e,0),i.writeUInt32BE(t,4),i[8]=this._options.bitDepth,i[9]=this._options.colorType,i[10]=0,i[11]=0,i[12]=0,this._packChunk(T.TYPE_IHDR,i)};R.prototype.packIDAT=function(e){return this._packChunk(T.TYPE_IDAT,e)};R.prototype.packIEND=function(){return this._packChunk(T.TYPE_IEND,null)}});var Ce=m((ci,Te)=>{"use strict";var Rt=w("util"),Ee=w("stream"),Bt=S(),Pt=V(),we=Te.exports=function(e){Ee.call(this);let t=e||{};this._packer=new Pt(t),this._deflate=this._packer.createDeflate(),this.readable=!0};Rt.inherits(we,Ee);we.prototype.pack=function(e,t,i,r){this.emit("data",Buffer.from(Bt.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(t,i)),r&&this.emit("data",this._packer.packGAMA(r));let l=this._packer.filterData(e,t,i);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(n){this.emit("data",this._packer.packIDAT(n))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(l)}});var Re=m((Y,Ae)=>{"use strict";var Oe=w("assert").ok,M=w("zlib"),St=w("util"),Le=w("buffer").kMaxLength;function B(e){if(!(this instanceof B))return new B(e);e&&e.chunkSize<M.Z_MIN_CHUNK&&(e.chunkSize=M.Z_MIN_CHUNK),M.Inflate.call(this,e),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,e&&e.maxLength!=null&&(this._maxLength=e.maxLength)}function Mt(e){return new B(e)}function Ie(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}B.prototype._processChunk=function(e,t,i){if(typeof i=="function")return M.Inflate._processChunk.call(this,e,t,i);let r=this,l=e&&e.length,n=this._chunkSize-this._offset,s=this._maxLength,h=0,f=[],o=0,a;this.on("error",function(d){a=d});function u(d,y){if(r._hadError)return;let _=n-y;if(Oe(_>=0,"have should not go down"),_>0){let g=r._buffer.slice(r._offset,r._offset+_);if(r._offset+=_,g.length>s&&(g=g.slice(0,s)),f.push(g),o+=g.length,s-=g.length,s===0)return!1}return(y===0||r._offset>=r._chunkSize)&&(n=r._chunkSize,r._offset=0,r._buffer=Buffer.allocUnsafe(r._chunkSize)),y===0?(h+=l-d,l=d,!0):!1}Oe(this._handle,"zlib binding closed");let c;do c=this._handle.writeSync(t,e,h,l,this._buffer,this._offset,n),c=c||this._writeState;while(!this._hadError&&u(c[0],c[1]));if(this._hadError)throw a;if(o>=Le)throw Ie(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+Le.toString(16)+" bytes");let p=Buffer.concat(f,o);return Ie(this),p};St.inherits(B,M.Inflate);function Yt(e,t){if(typeof t=="string"&&(t=Buffer.from(t)),!(t instanceof Buffer))throw new TypeError("Not a string or buffer");let i=e._finishFlushFlag;return i==null&&(i=M.Z_FINISH),e._processChunk(t,i)}function ke(e,t){return Yt(new B(t),e)}Ae.exports=Y=ke;Y.Inflate=B;Y.createInflate=Mt;Y.inflateSync=ke});var W=m((_i,Pe)=>{"use strict";var Be=Pe.exports=function(e){this._buffer=e,this._reads=[]};Be.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t})};Be.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let e=this._reads[0];if(this._buffer.length&&(this._buffer.length>=e.length||e.allowLess)){this._reads.shift();let t=this._buffer;this._buffer=t.slice(e.length),e.func.call(this,t.slice(0,e.length))}else break}if(this._reads.length>0)throw new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)throw new Error("unrecognised content at end of stream")}});var Me=m(Se=>{"use strict";var xt=W(),qt=H();Se.process=function(e,t){let i=[],r=new xt(e);return new qt(t,{read:r.read.bind(r),write:function(n){i.push(n)},complete:function(){}}).start(),r.process(),Buffer.concat(i)}});var Ne=m((di,qe)=>{"use strict";var Ye=!0,xe=w("zlib"),Nt=Re();xe.deflateSync||(Ye=!1);var Ut=W(),Ht=Me(),Dt=F(),vt=z(),Gt=j();qe.exports=function(e,t){if(!Ye)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let i;function r(O){i=O}let l;function n(O){l=O}function s(O){l.transColor=O}function h(O){l.palette=O}function f(){l.alpha=!0}let o;function a(O){o=O}let u=[];function c(O){u.push(O)}let p=new Ut(e);if(new Dt(t,{read:p.read.bind(p),error:r,metadata:n,gamma:a,palette:h,transColor:s,inflateData:c,simpleTransparency:f}).start(),p.process(),i)throw i;let y=Buffer.concat(u);u.length=0;let _;if(l.interlace)_=xe.inflateSync(y);else{let J=((l.width*l.bpp*l.depth+7>>3)+1)*l.height;_=Nt(y,{chunkSize:J,maxLength:J})}if(y=null,!_||!_.length)throw new Error("bad png - invalid inflate data response");let g=Ht.process(_,l);y=null;let je=vt.dataToBitMap(g,l);g=null;let Ze=Gt(je,l,t.skipRescale);return l.data=Ze,l.gamma=o||0,l}});var ve=m((gi,De)=>{"use strict";var Ue=!0,He=w("zlib");He.deflateSync||(Ue=!1);var Ft=S(),zt=V();De.exports=function(e,t){if(!Ue)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let i=t||{},r=new zt(i),l=[];l.push(Buffer.from(Ft.PNG_SIGNATURE)),l.push(r.packIHDR(e.width,e.height)),e.gamma&&l.push(r.packGAMA(e.gamma));let n=r.filterData(e.data,e.width,e.height),s=He.deflateSync(n,r.getDeflateOptions());if(n=null,!s||!s.length)throw new Error("bad png - invalid compressed data response");return l.push(r.packIDAT(s)),l.push(r.packIEND()),Buffer.concat(l)}});var Ge=m(K=>{"use strict";var jt=Ne(),Zt=ve();K.read=function(e,t){return jt(e,t||{})};K.write=function(e,t){return Zt(e,t)}});var Qt=m(ze=>{var Vt=w("util"),Fe=w("stream"),Wt=_e(),Kt=Ce(),Jt=Ge(),C=ze.PNG=function(e){Fe.call(this),e=e||{},this.width=e.width|0,this.height=e.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new Wt(e),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new Kt(e),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};Vt.inherits(C,Fe);C.sync=Jt;C.prototype.pack=function(){return!this.data||!this.data.length?(this.emit("error","No data provided"),this):(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this)};C.prototype.parse=function(e,t){if(t){let i,r;i=function(l){this.removeListener("error",r),this.data=l,t(null,this)}.bind(this),r=function(l){this.removeListener("parsed",i),t(l,null)}.bind(this),this.once("parsed",i),this.once("error",r)}return this.end(e),this};C.prototype.write=function(e){return this._parser.write(e),!0};C.prototype.end=function(e){this._parser.end(e)};C.prototype._metadata=function(e){this.width=e.width,this.height=e.height,this.emit("metadata",e)};C.prototype._gamma=function(e){this.gamma=e};C.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};C.bitblt=function(e,t,i,r,l,n,s,h){if(i|=0,r|=0,l|=0,n|=0,s|=0,h|=0,i>e.width||r>e.height||i+l>e.width||r+n>e.height)throw new Error("bitblt reading outside image");if(s>t.width||h>t.height||s+l>t.width||h+n>t.height)throw new Error("bitblt writing outside image");for(let f=0;f<n;f++)e.data.copy(t.data,(h+f)*t.width+s<<2,(r+f)*e.width+i<<2,(r+f)*e.width+i+l<<2)};C.prototype.bitblt=function(e,t,i,r,l,n,s){return C.bitblt(this,e,t,i,r,l,n,s),this};C.adjustGamma=function(e){if(e.gamma){for(let t=0;t<e.height;t++)for(let i=0;i<e.width;i++){let r=e.width*t+i<<2;for(let l=0;l<3;l++){let n=e.data[r+l]/255;n=Math.pow(n,1/2.2/e.gamma),e.data[r+l]=Math.round(n*255)}}e.gamma=0}};C.prototype.adjustGamma=function(){C.adjustGamma(this)}});export default Qt();
|
package/render-WEE5MH6Y.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a,d as s,e,f as r}from"./chunk-TMHR6BIT.js";import"./chunk-FSRPMVAS.js";export{a as Parameters,r as buildDocs,s as escape,e as parseExample};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,b as o,d as u}from"./chunk-TMHR6BIT.js";import"./chunk-FSRPMVAS.js";import{basename as h}from"path";import{existsSync as C}from"fs";var R=/<\/?[^>]+>/g;function E(n){return n.replace(R,"").replace(/>/g,">").replace(/</g,"<")}function T(n,r){return(n.name??"")<(r.name??"")?-1:1}function v(n){return n.kind===e.Class||n.kind===e.Interface||n.kind===e.Module||n.kind===e.Enum||n.kind===e.Component||n.kind===e.Namespace||n.kind===e.Function&&n.flags===o.Ambient&&n.children?.length}function w(n){let r=[],t=[];return n.children?.forEach(i=>{let d=a(i),s=i.type;return n.type?.kind===e.Interface||s&&(s.kind===e.Interface||s.kind===e.Class||s.kind===e.Component)?r.push(d):t.push(d)}),`<cxl-t h6 inline>${(r.length?`extends ${r.join(", ")}`:"")+(t.length?` implements ${t.join(", ")}`:"")}</cxl-t>`}function b(n){if(!n.children)return"";let[r,t,i,d]=n.children;return`${a(r)} extends ${a(t)} ? ${a(i)} : ${a(d)}`}function A(n){return n.kind===e.Reference||n.kind===e.ImportType}function f(n,r){return n.type&&(n.kind===e.Reference||n.kind===e.Export||n.kind===e.ImportType)?f(n.type):v(n)?M(n):(n.parent&&(!r||n.parent.name!==r.name)?f(n.parent):"")+(n.id?"#s"+n.id.toString():"")}function l(n,r=".html"){return n.replace(/\.([tj]sx?|md)$/,r).replace(/[/"]/g,"--")}function M(n){if(n.kind===e.Module){let t=l(n.name);return t==="index.html"&&C("README.md")?"index-api.html":t}if(n.kind===e.Namespace)return`ns--${l(n.name)}.html`;let r=Array.isArray(n.source)?n.source[0]:n.source;if(!r)throw new Error(`Source not found for page node "${n.name}"`);return`${l(r.name,"--")}${n.name}.html`}function g(n,r,t){let i=r||(n.name?u(n.name):n.flags&o.Default?"<i>default</i>":"(Unknown)");return n.type&&A(n)&&(n=n.type),n.id?`<a href="${f(n,t)}">${i}</a>`:i}function m(n){return n?"<"+n.map(r=>a(r)+(r.kind!==e.Reference&&r.type?` extends ${a(r.type)}`:"")).join(", ")+">":""}function _(n){switch(n.kind){case e.ClassType:return w(n);case e.Infer:return`infer ${a(n.type)}`;case e.Parenthesized:return`(${a(n.type)})`;case e.ConditionalType:return b(n);case e.IndexedType:if(!n.children)throw new Error("Invalid node");return`${a(n.children[0])}[${a(n.children[1])}]`;case e.TypeUnion:return n.children?.map(a).join(" | ")||"";case e.TypeIntersection:return n.children?.map(a).join(" & ")||"";case e.Tuple:return`[${n.children?.map(a).join(", ")||""}]`;case e.Array:return`${a(n.type)}[]`;case e.Reference:return`${g(n)}${m(n.typeParameters)}`;case e.FunctionType:case e.Function:case e.Method:return k(n);case e.MappedType:return O(n);case e.ObjectType:return H(n);case e.Literal:return n.name;case e.TypeAlias:case e.BaseType:return n.name;case e.TypeParameter:return F(n);case e.ConstructorType:return`new ${k(n)}`;case e.Keyof:return n.resolvedType?`<doc-more><x slot="off"> keyof ${a(n.type)}</x> ${a(n.resolvedType)}</doc-more>`:`keyof ${a(n.type)}`;case e.Typeof:return`typeof ${n.name}`;case e.ThisType:return"this";case e.Class:case e.Interface:return g(n);case e.ReadonlyKeyword:return`readonly ${a(n.type)}`;case e.Symbol:return"Symbol";case e.UnknownType:return"unknown"}return I(n)}function k(n){let{parameters:r,typeParameters:t,type:i}=n;return`${x(n)}${m(t)}${S(r)} => ${a(i)}`}function x({flags:n,kind:r,name:t}){return!t&&r===e.ConstructSignature?"new":(t?u(t):"")+(n&o.Optional?"?":"")}function S(n){return n?`(${n.map(N).join(", ")})`:""}function N(n){return`${`${n.flags&o.Public?"public ":n.flags&o.Private?"private":n.flags&o.Protected?"protected ":""}${n.flags&o.Rest?"...":""}${n.name}${n.flags&o.Optional?"?":""}`}: ${a(n.type)}${n.value?` = ${n.value}`:""}`}function O(n){if(!n.children?.length||!n.type)return"?";let[r,t]=n.children;return`{ [${c(r)} in ${c(t)}]: ${c(n.type)} }`}function F(n){let r=n.children?.[0];return r?`${n.name} extends ${a(r)}`:n.name}function j(n){return`[${n.parameters?.map(I).join("")||""}]: ${n.type?c(n.type):"?"}`}function U({type:n,kind:r,name:t}){return n?r===e.Class||r===e.Interface||r===e.Component?` ${a(n)}`:`${D(r,t)}${a(n)}`:""}function D(n,r){return n===e.TypeAlias?" = ":r||n===e.Constructor?": ":n===e.CallSignature?" => ":n===e.ReadonlyKeyword?"readonly ":" => "}function K(n){return n&&n.length>50?"":n?` = ${u(n)}`:""}function y(n){if(n.kind===e.Module)return u(n.name);if(n.kind===e.IndexSignature)return j(n);let{value:r,parameters:t,typeParameters:i}=n;return`${x(n)}${m(i)}${S(t)}${U(n)}${K(r)}`}function B(n){return n.kind===e.IndexSignature?j(n):n.kind===e.Spread&&n.children?.[0]?`...${a(n.children[0])}`:y(n)}function H(n){return`{ ${`${n.children?.map(B).join("; ")||""}`} }`}function L(n){return n.__3docHtmlType??=_(n)}function a(n){return n?`${n.flags&o.Rest?"...":""}${L(n)}`:""}function I(n){return n.kind===e.Module||n.kind===e.IndexSignature?y(n):`${y(n)}`}function c(n){if(n.kind===e.Reference&&n.type&&(n=n.type),n.kind===e.ClassType){let i=[];return n.children?.forEach(d=>{d.kind===e.Reference&&i.push({kind:e.Reference,type:d.type?.id})}),{kind:n.kind,children:i,type:n.type?.id}}if(n.kind===e.BaseType)return n.name;if(n.flags&o.External||n.flags&o.DefaultLibrary||n.kind!==e.ObjectType&&n.kind!==e.FunctionType&&n.kind!==e.Function&&n.kind!==e.Method&&n.kind!==e.TypeUnion&&n.kind!==e.Interface)return E(a(n));let r=n.typeParameters?.length?n.typeParameters.map(P):void 0,t=n.parameters?.length?n.parameters.map(p):void 0;return{id:n.id,name:n.name||void 0,parameters:t,kind:n.kind,flags:n.flags||void 0,docs:n.docs,type:n.type?.id,typeP:r,tsconfig:n.flags&o.Export&&n.source?.tsconfig?h(n.source?.tsconfig):void 0}}function P(n){let r=n?n.kind===e.Reference&&n.type?.id!==void 0&&n.type.flags&o.Export?n.type.id:c(n):void 0;return{id:n.id,name:n.name,kind:n.kind,flags:n.flags||void 0,docs:n.docs,type:r}}function p(n){if(n.__3docSummaryNode)return n.__3docSummaryNode;let r=n.children?.length?n.children.map(p).sort(T):void 0,t=n.parameters?.length?n.parameters.map(p):void 0,i=n.typeParameters?.length?n.typeParameters.map(P):void 0,d=n.type,s;d&&(d.kind===e.Reference&&d.type?.id!==void 0&&d.type.flags&&d.type.flags&o.Export?s=d.type.id:s=c(d));let $=n.resolvedType?n.resolvedType?.type?.type===n?n.resolvedType.name:c(n.resolvedType):void 0;return n.__3docSummaryNode={id:n.id,name:n.name||void 0,parameters:t,kind:n.kind,flags:n.flags||void 0,docs:n.docs,type:s,typeP:i,resolvedType:$===s?void 0:$,children:r,tsconfig:n.flags&o.Export&&n.source?.tsconfig?h(n.source?.tsconfig):void 0}}function z(n){return v(n)||n.kind===e.TypeAlias}function q(n,r){let t=Object.values(r.index).filter(z).map(p).sort(T),i=n.modulePackage?.version;return[{name:i?`${i}/summary.json`:"summary.json",content:JSON.stringify({index:t})}]}export{I as Signature,y as SignatureText,a as Type,f as getHref,q as render};
|
package/root-G5JDVI4D.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{e as i,f as a,g as s}from"./chunk-SWJCWBGM.js";import"./chunk-FSRPMVAS.js";import p from"fs/promises";import c from"path";async function h(){let e=await p.readdir("."),n=[];for(let r of e)n.push(await u(r));let t=`${(await a("./package.json")).description}
|
|
2
|
-
|
|
3
|
-
## Packages
|
|
4
|
-
|
|
5
|
-
| Name | Version | License | Description | Links |
|
|
6
|
-
| -------------- | ------- | ------- | ------------------------------------ | ---------------------------------------------- |
|
|
7
|
-
${n.join("")}
|
|
8
|
-
`;await d("README.md",t)}async function g(e){let n=c.join(".",e),o=c.resolve(n,"./package.json"),t;try{t=await a(o)}catch{return}if(t.private)return;if(!(t.description&&t.license&&t.homepage))throw new Error(`Invalid package: ${t.name}`);return t}function d(e,n){if(console.log(`Writing ${e}`),!n)throw new Error("No content");return p.writeFile(e,n)}function m(e,n){return`https://npmjs.com/package/${e}/v/${n}`}async function u(e){let n=await g(e);if(!n)return"";console.log(`Package: ${e}`),await i(`npm run build audit test package docs --prefix ${e}`);let o=await s(n.name).catch(()=>""),t=o?`[${o}](${m(n.name,o)})`:`${n.version}`;return`| ${n.name.padEnd(20)} | ${t} | ${n.license.padEnd(10)} | ${n.description} | ${n.homepage?`[Docs](${n.homepage}/${n.version}/)`:""} |
|
|
9
|
-
`}export{h as buildRoot};
|