Skip to content

Commit

Permalink
adding missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Echsecutor committed Nov 25, 2024
1 parent 316c04b commit e42d6b4
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
3 changes: 3 additions & 0 deletions editor/base64-js.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* esm.sh - esbuild bundle([email protected]) es2022 production */
var B=Object.create;var l=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var H=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),U=(r,e)=>{for(var t in e)l(r,t,{get:e[t],enumerable:!0})},A=(r,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of k(e))!j.call(r,o)&&o!==t&&l(r,o,{get:()=>e[o],enumerable:!(a=_(e,o))||a.enumerable});return r},u=(r,e,t)=>(A(r,e,"default"),t&&A(t,e,"default")),C=(r,e,t)=>(t=r!=null?B(w(r)):{},A(e||!r||!r.__esModule?l(t,"default",{value:r,enumerable:!0}):t,r));var p=H(y=>{"use strict";y.byteLength=I;y.toByteArray=T;y.fromByteArray=D;var h=[],d=[],E=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(F=0,L=s.length;F<L;++F)h[F]=s[F],d[s.charCodeAt(F)]=F;var F,L;d[45]=62;d[95]=63;function g(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var a=t===e?0:4-t%4;return[t,a]}function I(r){var e=g(r),t=e[0],a=e[1];return(t+a)*3/4-a}function O(r,e,t){return(e+t)*3/4-t}function T(r){var e,t=g(r),a=t[0],o=t[1],n=new E(O(r,a,o)),v=0,x=o>0?a-4:a,f;for(f=0;f<x;f+=4)e=d[r.charCodeAt(f)]<<18|d[r.charCodeAt(f+1)]<<12|d[r.charCodeAt(f+2)]<<6|d[r.charCodeAt(f+3)],n[v++]=e>>16&255,n[v++]=e>>8&255,n[v++]=e&255;return o===2&&(e=d[r.charCodeAt(f)]<<2|d[r.charCodeAt(f+1)]>>4,n[v++]=e&255),o===1&&(e=d[r.charCodeAt(f)]<<10|d[r.charCodeAt(f+1)]<<4|d[r.charCodeAt(f+2)]>>2,n[v++]=e>>8&255,n[v++]=e&255),n}function q(r){return h[r>>18&63]+h[r>>12&63]+h[r>>6&63]+h[r&63]}function z(r,e,t){for(var a,o=[],n=e;n<t;n+=3)a=(r[n]<<16&16711680)+(r[n+1]<<8&65280)+(r[n+2]&255),o.push(q(a));return o.join("")}function D(r){for(var e,t=r.length,a=t%3,o=[],n=16383,v=0,x=t-a;v<x;v+=n)o.push(z(r,v,v+n>x?x:v+n));return a===1?(e=r[t-1],o.push(h[e>>2]+h[e<<4&63]+"==")):a===2&&(e=(r[t-2]<<8)+r[t-1],o.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"=")),o.join("")}});var c={};U(c,{byteLength:()=>G,default:()=>N,fromByteArray:()=>K,toByteArray:()=>J});var i=C(p());u(c,C(p()));var{byteLength:G,toByteArray:J,fromByteArray:K}=i,{default:m,...M}=i,N=m!==void 0?m:M;export{G as byteLength,N as default,K as fromByteArray,J as toByteArray};
//# sourceMappingURL=base64-js.mjs.map
16 changes: 16 additions & 0 deletions editor/buffer.mjs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions editor/ieee754.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* esm.sh - esbuild bundle([email protected]) es2022 production */
var y=Object.create;var v=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty;var F=(a,r)=>()=>(r||a((r={exports:{}}).exports,r),r.exports),G=(a,r)=>{for(var i in r)v(a,i,{get:r[i],enumerable:!0})},e=(a,r,i,f)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of A(r))!D.call(a,o)&&o!==i&&v(a,o,{get:()=>r[o],enumerable:!(f=z(r,o))||f.enumerable});return a},_=(a,r,i)=>(e(a,r,"default"),i&&e(i,r,"default")),B=(a,r,i)=>(i=a!=null?y(C(a)):{},e(r||!a||!a.__esModule?v(i,"default",{value:a,enumerable:!0}):i,a));var g=F(I=>{I.read=function(a,r,i,f,o){var h,t,w=o*8-f-1,s=(1<<w)-1,N=s>>1,M=-7,p=i?o-1:0,c=i?-1:1,d=a[r+p];for(p+=c,h=d&(1<<-M)-1,d>>=-M,M+=w;M>0;h=h*256+a[r+p],p+=c,M-=8);for(t=h&(1<<-M)-1,h>>=-M,M+=f;M>0;t=t*256+a[r+p],p+=c,M-=8);if(h===0)h=1-N;else{if(h===s)return t?NaN:(d?-1:1)*(1/0);t=t+Math.pow(2,f),h=h-N}return(d?-1:1)*t*Math.pow(2,h-f)};I.write=function(a,r,i,f,o,h){var t,w,s,N=h*8-o-1,M=(1<<N)-1,p=M>>1,c=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=f?0:h-1,n=f?1:-1,q=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(w=isNaN(r)?1:0,t=M):(t=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-t))<1&&(t--,s*=2),t+p>=1?r+=c/s:r+=c*Math.pow(2,1-p),r*s>=2&&(t++,s/=2),t+p>=M?(w=0,t=M):t+p>=1?(w=(r*s-1)*Math.pow(2,o),t=t+p):(w=r*Math.pow(2,p-1)*Math.pow(2,o),t=0));o>=8;a[i+d]=w&255,d+=n,w/=256,o-=8);for(t=t<<o|w,N+=o;N>0;a[i+d]=t&255,d+=n,t/=256,N-=8);a[i+d-n]|=q*128}});var x={};G(x,{default:()=>O,read:()=>H,write:()=>J});var k=B(g());_(x,B(g()));var{read:H,write:J}=k,{default:j,...K}=k,O=j!==void 0?j:K;export{O as default,H as read,J as write};
/*! Bundled license information:
ieee754/index.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
*/
//# sourceMappingURL=ieee754.mjs.map
4 changes: 2 additions & 2 deletions editor/jszip.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* esm.sh - esbuild bundle([email protected]) es2022 production */
import __Process$ from "/v135/node_process.js";
import { Buffer as __Buffer$ } from "/v135/[email protected]/es2022/buffer.mjs";
import __Process$ from "./node_process.js";
import { Buffer as __Buffer$ } from "./buffer.mjs";
var __global$ = globalThis || (typeof window !== "undefined" ? window : self);
var __setImmediate$ = (cb, ...args) => setTimeout(cb, 0, ...args);
var Ft=Object.create;var xt=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,Lt=Object.prototype.hasOwnProperty;var bt=(p=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(p,{get:(O,v)=>(typeof require<"u"?require:O)[v]}):p)(function(p){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+p+'" is not supported')});var jt=(p,O)=>()=>(O||p((O={exports:{}}).exports,O),O.exports),Zt=(p,O)=>{for(var v in O)xt(p,v,{get:O[v],enumerable:!0})},kt=(p,O,v,l)=>{if(O&&typeof O=="object"||typeof O=="function")for(let o of Ut(O))!Lt.call(p,o)&&o!==v&&xt(p,o,{get:()=>O[o],enumerable:!(l=Nt(O,o))||l.enumerable});return p},pt=(p,O,v)=>(kt(p,O,"default"),v&&kt(v,O,"default")),At=(p,O,v)=>(v=p!=null?Ft(Pt(p)):{},kt(O||!p||!p.__esModule?xt(v,"default",{value:p,enumerable:!0}):v,p));var zt=jt((It,St)=>{(function(p){typeof It=="object"&&typeof St<"u"?St.exports=p():typeof define=="function"&&define.amd?define([],p):(typeof window<"u"?window:typeof __global$<"u"?__global$:typeof self<"u"?self:this).JSZip=p()})(function(){return function p(O,v,l){function o(g,w){if(!v[g]){if(!O[g]){var m=typeof bt=="function"&&bt;if(!w&&m)return m(g,!0);if(n)return n(g,!0);var b=new Error("Cannot find module '"+g+"'");throw b.code="MODULE_NOT_FOUND",b}var i=v[g]={exports:{}};O[g][0].call(i.exports,function(c){var e=O[g][1][c];return o(e||c)},i,i.exports,p,O,v,l)}return v[g].exports}for(var n=typeof bt=="function"&&bt,h=0;h<l.length;h++)o(l[h]);return o}({1:[function(p,O,v){"use strict";var l=p("./utils"),o=p("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";v.encode=function(h){for(var g,w,m,b,i,c,e,u=[],s=0,d=h.length,y=d,S=l.getTypeOf(h)!=="string";s<h.length;)y=d-s,m=S?(g=h[s++],w=s<d?h[s++]:0,s<d?h[s++]:0):(g=h.charCodeAt(s++),w=s<d?h.charCodeAt(s++):0,s<d?h.charCodeAt(s++):0),b=g>>2,i=(3&g)<<4|w>>4,c=1<y?(15&w)<<2|m>>6:64,e=2<y?63&m:64,u.push(n.charAt(b)+n.charAt(i)+n.charAt(c)+n.charAt(e));return u.join("")},v.decode=function(h){var g,w,m,b,i,c,e=0,u=0,s="data:";if(h.substr(0,s.length)===s)throw new Error("Invalid base64 input, it looks like a data url.");var d,y=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===n.charAt(64)&&y--,h.charAt(h.length-2)===n.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=o.uint8array?new Uint8Array(0|y):new Array(0|y);e<h.length;)g=n.indexOf(h.charAt(e++))<<2|(b=n.indexOf(h.charAt(e++)))>>4,w=(15&b)<<4|(i=n.indexOf(h.charAt(e++)))>>2,m=(3&i)<<6|(c=n.indexOf(h.charAt(e++))),d[u++]=g,i!==64&&(d[u++]=w),c!==64&&(d[u++]=m);return d}},{"./support":30,"./utils":32}],2:[function(p,O,v){"use strict";var l=p("./external"),o=p("./stream/DataWorker"),n=p("./stream/Crc32Probe"),h=p("./stream/DataLengthProbe");function g(w,m,b,i,c){this.compressedSize=w,this.uncompressedSize=m,this.crc32=b,this.compression=i,this.compressedContent=c}g.prototype={getContentWorker:function(){var w=new o(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),m=this;return w.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),w},getCompressedWorker:function(){return new o(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(w,m,b){return w.pipe(new n).pipe(new h("uncompressedSize")).pipe(m.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression",m)},O.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,O,v){"use strict";var l=p("./stream/GenericWorker");v.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},v.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,O,v){"use strict";var l=p("./utils"),o=function(){for(var n,h=[],g=0;g<256;g++){n=g;for(var w=0;w<8;w++)n=1&n?3988292384^n>>>1:n>>>1;h[g]=n}return h}();O.exports=function(n,h){return n!==void 0&&n.length?l.getTypeOf(n)!=="string"?function(g,w,m,b){var i=o,c=b+m;g^=-1;for(var e=b;e<c;e++)g=g>>>8^i[255&(g^w[e])];return-1^g}(0|h,n,n.length,0):function(g,w,m,b){var i=o,c=b+m;g^=-1;for(var e=b;e<c;e++)g=g>>>8^i[255&(g^w.charCodeAt(e))];return-1^g}(0|h,n,n.length,0):0}},{"./utils":32}],5:[function(p,O,v){"use strict";v.base64=!1,v.binary=!1,v.dir=!1,v.createFolders=!0,v.date=null,v.compression=null,v.compressionOptions=null,v.comment=null,v.unixPermissions=null,v.dosPermissions=null},{}],6:[function(p,O,v){"use strict";var l=null;l=typeof Promise<"u"?Promise:p("lie"),O.exports={Promise:l}},{lie:37}],7:[function(p,O,v){"use strict";var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=p("pako"),n=p("./utils"),h=p("./stream/GenericWorker"),g=l?"uint8array":"array";function w(m,b){h.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=b,this.meta={}}v.magic="\b\0",n.inherits(w,h),w.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,m.data),!1)},w.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},w.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},w.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(b){m.push({data:b,meta:m.meta})}},v.compressWorker=function(m){return new w("Deflate",m)},v.uncompressWorker=function(){return new w("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,O,v){"use strict";function l(i,c){var e,u="";for(e=0;e<c;e++)u+=String.fromCharCode(255&i),i>>>=8;return u}function o(i,c,e,u,s,d){var y,S,x=i.file,F=i.compression,B=d!==g.utf8encode,L=n.transformTo("string",d(x.name)),I=n.transformTo("string",g.utf8encode(x.name)),M=x.comment,V=n.transformTo("string",d(M)),_=n.transformTo("string",g.utf8encode(M)),R=I.length!==x.name.length,r=_.length!==M.length,D="",J="",P="",$=x.dir,j=x.date,q={crc32:0,compressedSize:0,uncompressedSize:0};c&&!e||(q.crc32=i.crc32,q.compressedSize=i.compressedSize,q.uncompressedSize=i.uncompressedSize);var E=0;c&&(E|=8),B||!R&&!r||(E|=2048);var C=0,X=0;$&&(C|=16),s==="UNIX"?(X=798,C|=function(H,nt){var ot=H;return H||(ot=nt?16893:33204),(65535&ot)<<16}(x.unixPermissions,$)):(X=20,C|=function(H){return 63&(H||0)}(x.dosPermissions)),y=j.getUTCHours(),y<<=6,y|=j.getUTCMinutes(),y<<=5,y|=j.getUTCSeconds()/2,S=j.getUTCFullYear()-1980,S<<=4,S|=j.getUTCMonth()+1,S<<=5,S|=j.getUTCDate(),R&&(J=l(1,1)+l(w(L),4)+I,D+="up"+l(J.length,2)+J),r&&(P=l(1,1)+l(w(V),4)+_,D+="uc"+l(P.length,2)+P);var G="";return G+=`
Expand Down
1 change: 1 addition & 0 deletions editor/node_events.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions editor/node_process.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e42d6b4

Please sign in to comment.