@sheetxl/sdk 0.2.6 → 0.3.1
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/LICENSE.md +11 -11
- package/README.md +28 -28
- package/browser/cjs/{CGZGNjsBxID1puTh.cjs → 15AOcGpF9P2PgE8n.cjs} +1 -1
- package/browser/cjs/{C-hZNDAwWuxBFIL6.cjs → 57X1Mb81YIQgsw4g.cjs} +1 -1
- package/browser/cjs/{DmZ4H5WXrLU8_ULc.cjs → B0Mgg7I6p1ceY3rN.cjs} +1 -1
- package/browser/cjs/{DREJZJuBE505tfIa.cjs → BBOV5cemxNXMsT5e.cjs} +1 -1
- package/browser/cjs/{B2O3RNuGifH03sly.cjs → BqwLZnCcokB0gJUg.cjs} +1 -1
- package/browser/cjs/{D9VWafL4GO91s-ss.cjs → BvI7tcol77xoHIM4.cjs} +1 -1
- package/browser/cjs/{Ib1rBKg28o0eoK5d.cjs → Bxag54-yDHHST3Wd.cjs} +1 -1
- package/browser/cjs/{B-H7eMELHIPn-bzr.cjs → CeFdVjSCXrLYCXCU.cjs} +2 -2
- package/browser/cjs/{CorV6bYZuJtzRl_o.cjs → CeipDJjIRwQ790Ca.cjs} +1 -1
- package/browser/cjs/{BMR7gbu-c18QBWPt.cjs → CfouDIlYV1rbE7L-.cjs} +1 -1
- package/browser/cjs/{CbkB0mQ12rY_vVQA.cjs → Ch4ZGmjKP0WTpVhB.cjs} +1 -1
- package/browser/cjs/{Bu47JGsCj17hmXc_.cjs → CtaQiu1oagSXCXXK.cjs} +14 -34
- package/browser/cjs/{BCpPSYDEqyb04P1R.cjs → CxaFOlRqTSy7Jlc9.cjs} +1 -1
- package/browser/cjs/D2mGoMelJkvbn0dS.cjs +6 -0
- package/browser/cjs/{BsTj3RQ6ZEGPgKcQ.cjs → D4DJUbHguXQO7MqG.cjs} +4 -14
- package/browser/cjs/{CkNaOiSUo75nvWtM.cjs → D7IBYt0m3kE9Dgab.cjs} +3 -3
- package/browser/cjs/{BqNVHurf7quGcU6z.cjs → D7n5QHfgHMN7Ubsh.cjs} +1 -1
- package/browser/cjs/{Dvs5Vm4RFD3Taixm.cjs → D_AVSJSxbexl5_Qc.cjs} +1 -1
- package/browser/cjs/{CTwmDtiXYiM_eVmk.cjs → DdmOYUEsRqX0HKiE.cjs} +9 -19
- package/browser/cjs/{qAMXqcWKLU1dQ_3h.cjs → DdvRZSHU07d0SJND.cjs} +1 -1
- package/browser/cjs/{BLG6_L_HCAO81YQL.cjs → DhAXete205u1BUF9.cjs} +1 -1
- package/browser/cjs/{BuGJzOcaTQHrFpAi.cjs → Dp_0GxjE3JGmxJ__.cjs} +2 -7
- package/browser/cjs/{DNwyFP0z1WUsz7Mv.cjs → DqgIZPp7jtFutMPR.cjs} +1 -1
- package/browser/cjs/{mv0n6HW37Bg9vbEq.cjs → ImOEyTGPkbtm6yWG.cjs} +1 -1
- package/browser/cjs/{CzyTW1VE-AUeXvey.cjs → JWZZpQcTBYdqmuUW.cjs} +3 -13
- package/browser/cjs/{r9g18mieulrXQm1L.cjs → KQNpeB5hbqIYjp_r.cjs} +1 -1
- package/browser/cjs/{CCT2GkFj7ICxXUES.cjs → LRzcJjMh_2Sg2Iyq.cjs} +1 -1
- package/browser/cjs/NQji61IYyDBithp9.cjs +6 -0
- package/browser/cjs/{lXdOsnm-jZHQBBBW.cjs → W7UjTQi6GYOYRGPH.cjs} +1 -1
- package/browser/cjs/{BjgRUxx-XDOpnPL-.cjs → WVaevsWmtJcDkHzf.cjs} +1 -1
- package/browser/cjs/{CFzPZOhjGf04KRj4.cjs → Xss-dNJjqGh-xGja.cjs} +2 -2
- package/browser/cjs/{DilLEdPuHqLbh5sf.cjs → ZvgpcQAvYAnvCwhP.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Dl_4SDyZOgkXMEJC.cjs → rx448m2c_2rk-ZL2.cjs} +1 -1
- package/browser/esm/{B4BJ7t94Wpnv9a7S.mjs → A2KtAgZ1ZZzlKqrW.mjs} +1 -1
- package/{node/esm/ItKMvN0XCstp_nYY.mjs → browser/esm/BMvMKpCuQ7OMhb6D.mjs} +1 -1
- package/{node/esm/THIuEtMdfBrL-HBu.mjs → browser/esm/BYP_vBrtrJmMosg3.mjs} +1 -1
- package/browser/esm/BfA0oeliVjmuULjo.mjs +24 -0
- package/browser/esm/{D9hXALGej55nUIBr.mjs → BfqVWbuZPVip1p2y.mjs} +1 -1
- package/browser/esm/{DGdd1TuOoJRgFv5y.mjs → BldbegDy2Im9Vwy_.mjs} +1 -1
- package/browser/esm/{CmzSf5DNJLoOtMk-.mjs → BxKrVCe67zQZXaFe.mjs} +1 -1
- package/browser/esm/{CxsDCCCIZ3izAWpc.mjs → CFIAFeV-kbKIMGaW.mjs} +1 -1
- package/browser/esm/{BOb7v1vx9lJiStYh.mjs → CP02kAnVHwlz71EV.mjs} +1 -1
- package/browser/esm/{U-qXg8d0XjmxJPf5.mjs → CR8ryNaQrZTwbWLQ.mjs} +1 -1
- package/browser/esm/{ulV_OiYC8RR24mou.mjs → CRX2fvd3JBNH1inQ.mjs} +8 -19
- package/browser/esm/{BQSylQaIn2seUkRP.mjs → CeTz_0h7mzzs7S6d.mjs} +12 -4
- package/browser/esm/{DAF3pLo9IAXpgj0b.mjs → CkA378qg7LQEqeV4.mjs} +3 -15
- package/browser/esm/CpERAbkVKi6v2R5z.mjs +21 -0
- package/browser/esm/{Buj1qRrPX5ma7rP2.mjs → Cuc9gxubXUidHefW.mjs} +2 -8
- package/browser/esm/{DgVxyg7Pr4Gn7KI7.mjs → D3qT4ckeVdUIf8KG.mjs} +1 -1
- package/browser/esm/{AGVzrwoDbttD6w4x.mjs → D57eR1LljugozA9Z.mjs} +1 -1
- package/{node/esm/B7pyjq8tI7V7pcwy.mjs → browser/esm/D7W3PNn-2IoFru0l.mjs} +1 -1
- package/browser/esm/{D2bYWgsB0IswGpK7.mjs → DRd9s4gIGWuK5-R-.mjs} +3 -10
- package/browser/esm/{C7BBC6ZgCeDtER3f.mjs → DZcFAGNYJO5qYnjh.mjs} +1 -1
- package/browser/esm/{EW--St9c361BTpnI.mjs → DfKwAoUuV9f4j0gn.mjs} +1 -1
- package/browser/esm/{C_xLg294X_US_kYm.mjs → Dm-yHuQ_8smSK8zh.mjs} +1 -1
- package/browser/esm/{Bqmgcdzk45VxX6Iz.mjs → DowOxK5s6W8Hs5qU.mjs} +4 -16
- package/browser/esm/{BhfmggeeGS_CFF11.mjs → DwXGwKlOzkVh3sXn.mjs} +2060 -2073
- package/browser/esm/{B5coyTQHreqWfXTL.mjs → EWLavRuO7BMH3CES.mjs} +2 -2
- package/{node/esm/MTsxZkvH_SRJmSFp.mjs → browser/esm/Ep2xp_qq1WnkwQ-4.mjs} +1 -1
- package/{node/esm/528R85wwImPG1QAx.mjs → browser/esm/MsUATmonUEbmdGEg.mjs} +1 -1
- package/{node/esm/BwUpLF3TBx5yV5Lj.mjs → browser/esm/Of5ubKFb9FmEEPGu.mjs} +1 -1
- package/browser/esm/{D9-gfxTwv_8KGH0J.mjs → XXbCXuFAJplwT_i6.mjs} +1 -1
- package/browser/esm/{_6Pn6ZxxA5IHC32O.mjs → YuK71EKhaf-WleSP.mjs} +1 -1
- package/browser/esm/{BONMqgKB8XepwVUP.mjs → _eNY2dP2qQ62235I.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/{node/esm/B93nGRWqezVAe82d.mjs → browser/esm/m_0OUN7zT7-GCOZI.mjs} +1 -1
- package/browser/esm/{BU8yIdTQ6we6k-KG.mjs → qxyhqVpudmxAVheL.mjs} +1 -1
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{B-S0zOSFMqvUzORJ.mjs → 4p4QkPdpTSnxhcYT.mjs} +1 -1
- package/node/esm/{DWYkJQ-eVYboYKz5.mjs → A-93HEOUDI4JpIFE.mjs} +11 -3
- package/node/esm/{B4BJ7t94Wpnv9a7S.mjs → A2KtAgZ1ZZzlKqrW.mjs} +1 -1
- package/node/esm/{TjmQUpBzdM6KL24x.mjs → B849dDAbNzcAWdIf.mjs} +1 -1
- package/node/esm/BH4FTFTTaalZge5L.mjs +14 -0
- package/{browser/esm/ItKMvN0XCstp_nYY.mjs → node/esm/BMvMKpCuQ7OMhb6D.mjs} +1 -1
- package/node/esm/{DVvO7Cmr6-3USkj5.mjs → BQC0F5ietGENZKyH.mjs} +1 -1
- package/node/esm/{krHJwUyEoybVhk5D.mjs → BVURFQqE_KXN-Uqn.mjs} +2 -8
- package/{browser/esm/THIuEtMdfBrL-HBu.mjs → node/esm/BYP_vBrtrJmMosg3.mjs} +1 -1
- package/node/esm/{Dp9yDBXx_7cwTY-p.mjs → B_8H9Q2rpNm2_tP3.mjs} +1 -7
- package/node/esm/{DGdd1TuOoJRgFv5y.mjs → BldbegDy2Im9Vwy_.mjs} +1 -1
- package/node/esm/{CxsDCCCIZ3izAWpc.mjs → CFIAFeV-kbKIMGaW.mjs} +1 -1
- package/node/esm/{BOb7v1vx9lJiStYh.mjs → CP02kAnVHwlz71EV.mjs} +1 -1
- package/node/esm/{U-qXg8d0XjmxJPf5.mjs → CR8ryNaQrZTwbWLQ.mjs} +1 -1
- package/node/esm/{CITMKf4A3oqmkDlo.mjs → CjDTYU6purjPsTGz.mjs} +1 -1
- package/node/esm/{BaX81ieKgh6x9n3-.mjs → CjedKP1Ap009z7yH.mjs} +4 -16
- package/node/esm/{DgVxyg7Pr4Gn7KI7.mjs → D3qT4ckeVdUIf8KG.mjs} +1 -1
- package/node/esm/{BfRPN7DBXGwgEl0p.mjs → D4ZDjjk2WHyCqHIe.mjs} +1 -1
- package/node/esm/{DosKYfaNY0o9gZ-R.mjs → D767fK1WoXC3YeeO.mjs} +1 -1
- package/{browser/esm/B7pyjq8tI7V7pcwy.mjs → node/esm/D7W3PNn-2IoFru0l.mjs} +1 -1
- package/node/esm/{D3qKeWp3MQKMP2h_.mjs → DDAppiOAzrEy_PcS.mjs} +1 -1
- package/node/esm/{BKKWEXTAHQcnW_xk.mjs → DdQ4X9e7ES69T_kv.mjs} +3 -15
- package/node/esm/{EW--St9c361BTpnI.mjs → DfKwAoUuV9f4j0gn.mjs} +1 -1
- package/node/esm/DvW1-4E92rqMluYF.mjs +80 -0
- package/{browser/esm/MTsxZkvH_SRJmSFp.mjs → node/esm/Ep2xp_qq1WnkwQ-4.mjs} +1 -1
- package/node/esm/{BmfPbR-U7zbLWgfh.mjs → LRiYR8hkfLZA1lud.mjs} +1 -1
- package/{browser/esm/528R85wwImPG1QAx.mjs → node/esm/MsUATmonUEbmdGEg.mjs} +1 -1
- package/{browser/esm/BwUpLF3TBx5yV5Lj.mjs → node/esm/Of5ubKFb9FmEEPGu.mjs} +1 -1
- package/node/esm/{D9-gfxTwv_8KGH0J.mjs → XXbCXuFAJplwT_i6.mjs} +1 -1
- package/node/esm/{BONMqgKB8XepwVUP.mjs → _eNY2dP2qQ62235I.mjs} +1 -1
- package/node/esm/index.mjs +2869 -2858
- package/{browser/esm/B93nGRWqezVAe82d.mjs → node/esm/m_0OUN7zT7-GCOZI.mjs} +1 -1
- package/package.json +4 -7
- package/types/index.d.ts +3 -1
- package/types/scripting.d.ts +34176 -0
- package/browser/cjs/Ci-LITf7FutalLC4.cjs +0 -11
- package/browser/cjs/dJ-MSsMtF8KRc16n.cjs +0 -11
- package/browser/esm/-P8qNXxTWhuiSr9M.mjs +0 -28
- package/browser/esm/ucCvrtg0NIVDPCMF.mjs +0 -30
- package/node/esm/BQotQDQoybuUcFTS.mjs +0 -86
- package/node/esm/BvhUvPTEIyACj5zc.mjs +0 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.1
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.1
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=null;exports.initialize=async function(){return e||(e=new Promise(async(s,r)=>{try{const i="0.20.2",a=`https://esm.sh/esbuild-wasm@${i}`,l=`https://esm.sh/esbuild-wasm@${i}/esbuild.wasm`,t=(await import(a)).default;await t.initialize({wasmURL:l,worker:!1}),s(t)}catch(i){console.error("Error initializing esbuild:",i),r(i)}}),e)};
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.1
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./
|
|
7
|
-
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.6
|
|
8
|
-
*
|
|
9
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
|
-
*//**
|
|
12
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.2.6
|
|
13
|
-
*
|
|
14
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
16
|
-
*/var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,i,S,q){super(S,q),this._label=i,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class k extends a{constructor(n,i){super(e.Code.Parse,e.Label.Parse,n,i)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=k;class x extends a{constructor(n,i){super(e.Code.Null,e.Label.Null,n,i)}static{this.code=e.Code.Null}}e.Null=x;class j extends a{constructor(n,i){super(e.Code.Div0,e.Label.Div0,n,i)}static{this.code=e.Code.Div0}}e.Div0=j;class X extends a{constructor(n,i){super(e.Code.Value,e.Label.Value,n,i)}static{this.code=e.Code.Value}}e.Value=X;class s extends a{constructor(n,i){super(e.Code.Ref,e.Label.Ref,n,i)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,i){super(e.Code.Name,e.Label.Name,n,i)}static{this.code=e.Code.Name}}e.Name=K;class M extends a{constructor(n,i){super(e.Code.Num,e.Label.Num,n,i)}static{this.code=e.Code.Num}}e.Num=M;class U extends a{constructor(n,i){super(e.Code.NA,e.Label.NA,n,i)}static{this.code=e.Code.NA}}e.NA=U;class Y extends a{constructor(n,i){super(e.Code.GettingData,e.Label.GettingData,n,i)}static{this.code=e.Code.GettingData}}e.GettingData=Y;class z extends a{constructor(n,i){super(e.Code.Spill,e.Label.Spill,n,i)}static{this.code=e.Code.Spill}}e.Spill=z;class O extends a{constructor(n,i){super(e.Code.Connect,e.Label.Connect,n,i)}static{this.code=e.Code.Connect}}e.Connect=O;class G extends a{constructor(n,i){super(e.Code.Blocked,e.Label.Blocked,n,i)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,i){super(e.Code.Unknown,e.Label.Unknown,n,i)}static{this.code=e.Code.Unknown}}e.Unknown=_;class F extends a{constructor(n,i){super(e.Code.Field,e.Label.Field,n,i)}static{this.code=e.Code.Field}}e.Field=F;class Q extends a{constructor(n,i){super(e.Code.Calc,e.Label.Calc,n,i)}static{this.code=e.Code.Calc}}e.Calc=Q;class I extends a{constructor(n,i){super(e.Code.Busy,e.Label.Busy,n,i)}static{this.code=e.Code.Busy}}e.Busy=I;class P extends a{constructor(n,i){super(e.Code.Python,e.Label.Python,n,i)}static{this.code=e.Code.Python}}e.Python=P;class Z extends a{constructor(n,i){super(e.Code.Timeout,e.Label.Timeout,n,i)}static{this.code=e.Code.Timeout}}e.Timeout=Z})(r||(r={}));const f={};f[r.Code.Parse]=r.Parse,f[r.Code.Null]=r.Null,f[r.Code.Div0]=r.Div0,f[r.Code.Value]=r.Value,f[r.Code.Ref]=r.Ref,f[r.Code.Name]=r.Name,f[r.Code.Num]=r.Num,f[r.Code.NA]=r.NA,f[r.Code.GettingData]=r.GettingData,f[r.Code.Spill]=r.Spill,f[r.Code.Connect]=r.Connect,f[r.Code.Blocked]=r.Blocked,f[r.Code.Unknown]=r.Unknown,f[r.Code.Field]=r.Field,f[r.Code.Calc]=r.Calc,f[r.Code.Busy]=r.Busy,f[r.Code.Python]=r.Python,f[r.Code.Timeout]=r.Timeout;const ce=new Map,ie=new Map,de=new Map,ue=new Map,le=Object.keys(f);for(let e=0;e<le.length;e++){const a=le[e],k=f[a];de.set(r.Label[a],k),ue.set(r.Code[a],k);const x=new k;ce.set(x.getLabel(),x),ie.set(x.getCode(),x)}const ge=ie.get(r.Code.Unknown);var p;(p=r||(r={})).BuiltIn={Parse:new p.Parse,Null:new p.Null,Div0:new p.Div0,Value:new p.Value,Ref:new p.Ref,Name:new p.Name,Num:new p.Num,NA:new p.NA,GettingData:new p.GettingData,Spill:new p.Spill,Connect:new p.Connect,Blocked:new p.Blocked,Unknown:new p.Unknown,Field:new p.Field,Calc:new p.Calc,Busy:new p.Busy,Python:new p.Python,Timeout:new p.Timeout},p.getBuiltInByLabel=e=>ce.get(e),p.newTypedError=(e,a,k)=>{let x;return x=typeof e=="string"?de.get(e):ue.get(e),x||(x=p.Unknown),new x(a,k)},p.getBuiltInById=e=>ie.get(e)||ge;let A=null,H=null;const we={compilerOptions:{target:"esnext"}},Ce=async()=>`
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./JWZZpQcTBYdqmuUW.cjs");var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,i,S,q){super(S,q),this._label=i,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class k extends a{constructor(n,i){super(e.Code.Parse,e.Label.Parse,n,i)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=k;class x extends a{constructor(n,i){super(e.Code.Null,e.Label.Null,n,i)}static{this.code=e.Code.Null}}e.Null=x;class j extends a{constructor(n,i){super(e.Code.Div0,e.Label.Div0,n,i)}static{this.code=e.Code.Div0}}e.Div0=j;class X extends a{constructor(n,i){super(e.Code.Value,e.Label.Value,n,i)}static{this.code=e.Code.Value}}e.Value=X;class s extends a{constructor(n,i){super(e.Code.Ref,e.Label.Ref,n,i)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,i){super(e.Code.Name,e.Label.Name,n,i)}static{this.code=e.Code.Name}}e.Name=K;class M extends a{constructor(n,i){super(e.Code.Num,e.Label.Num,n,i)}static{this.code=e.Code.Num}}e.Num=M;class U extends a{constructor(n,i){super(e.Code.NA,e.Label.NA,n,i)}static{this.code=e.Code.NA}}e.NA=U;class Y extends a{constructor(n,i){super(e.Code.GettingData,e.Label.GettingData,n,i)}static{this.code=e.Code.GettingData}}e.GettingData=Y;class z extends a{constructor(n,i){super(e.Code.Spill,e.Label.Spill,n,i)}static{this.code=e.Code.Spill}}e.Spill=z;class O extends a{constructor(n,i){super(e.Code.Connect,e.Label.Connect,n,i)}static{this.code=e.Code.Connect}}e.Connect=O;class G extends a{constructor(n,i){super(e.Code.Blocked,e.Label.Blocked,n,i)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,i){super(e.Code.Unknown,e.Label.Unknown,n,i)}static{this.code=e.Code.Unknown}}e.Unknown=_;class F extends a{constructor(n,i){super(e.Code.Field,e.Label.Field,n,i)}static{this.code=e.Code.Field}}e.Field=F;class Q extends a{constructor(n,i){super(e.Code.Calc,e.Label.Calc,n,i)}static{this.code=e.Code.Calc}}e.Calc=Q;class I extends a{constructor(n,i){super(e.Code.Busy,e.Label.Busy,n,i)}static{this.code=e.Code.Busy}}e.Busy=I;class P extends a{constructor(n,i){super(e.Code.Python,e.Label.Python,n,i)}static{this.code=e.Code.Python}}e.Python=P;class Z extends a{constructor(n,i){super(e.Code.Timeout,e.Label.Timeout,n,i)}static{this.code=e.Code.Timeout}}e.Timeout=Z})(r||(r={}));const f={};f[r.Code.Parse]=r.Parse,f[r.Code.Null]=r.Null,f[r.Code.Div0]=r.Div0,f[r.Code.Value]=r.Value,f[r.Code.Ref]=r.Ref,f[r.Code.Name]=r.Name,f[r.Code.Num]=r.Num,f[r.Code.NA]=r.NA,f[r.Code.GettingData]=r.GettingData,f[r.Code.Spill]=r.Spill,f[r.Code.Connect]=r.Connect,f[r.Code.Blocked]=r.Blocked,f[r.Code.Unknown]=r.Unknown,f[r.Code.Field]=r.Field,f[r.Code.Calc]=r.Calc,f[r.Code.Busy]=r.Busy,f[r.Code.Python]=r.Python,f[r.Code.Timeout]=r.Timeout;const ce=new Map,ie=new Map,de=new Map,ue=new Map,le=Object.keys(f);for(let e=0;e<le.length;e++){const a=le[e],k=f[a];de.set(r.Label[a],k),ue.set(r.Code[a],k);const x=new k;ce.set(x.getLabel(),x),ie.set(x.getCode(),x)}const ge=ie.get(r.Code.Unknown);var p;(p=r||(r={})).BuiltIn={Parse:new p.Parse,Null:new p.Null,Div0:new p.Div0,Value:new p.Value,Ref:new p.Ref,Name:new p.Name,Num:new p.Num,NA:new p.NA,GettingData:new p.GettingData,Spill:new p.Spill,Connect:new p.Connect,Blocked:new p.Blocked,Unknown:new p.Unknown,Field:new p.Field,Calc:new p.Calc,Busy:new p.Busy,Python:new p.Python,Timeout:new p.Timeout},p.getBuiltInByLabel=e=>ce.get(e),p.newTypedError=(e,a,k)=>{let x;return x=typeof e=="string"?de.get(e):ue.get(e),x||(x=p.Unknown),new x(a,k)},p.getBuiltInById=e=>ie.get(e)||ge;let A=null,H=null;const we={compilerOptions:{target:"esnext"}},Ce=async()=>`
|
|
17
7
|
interface FirstTest {
|
|
18
8
|
isTrue?: boolean;
|
|
19
9
|
}
|
|
20
|
-
`,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./
|
|
10
|
+
`,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./NQji61IYyDBithp9.cjs"))).initialize()}catch(e){throw W=null,e}finally{W=null}}exports.compileModule=async function(e){const a=e?.source??null;if(!a)return null;const k=(e.disableBundle||e.declarationsOnly)??!1,x=[Ce(),ke()],j=await Promise.all(x),X=j[0],s=j[1];let K="",M=null;const U=[],Y={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},z="script",O=`${z}.ts`,G="lib.d.ts",_="global.d.ts",F={[O]:a,[G]:`
|
|
21
11
|
/**
|
|
22
12
|
* Represents the completion of an asynchronous operation
|
|
23
13
|
*/
|
|
@@ -31,7 +21,7 @@ interface Promise<T> {
|
|
|
31
21
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
32
22
|
}
|
|
33
23
|
`,[_]:X},Q={getSourceFile:(t,d,E,l)=>s.createSourceFile(t,F[t],s.ScriptTarget.Latest,!0),fileExists:t=>F[t]!==void 0,readFile:t=>F[t],writeFile:(t,d)=>{F[t]=d},getCurrentDirectory:()=>"./",getCanonicalFileName:t=>t,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:t=>G,getNewLine:()=>`
|
|
34
|
-
`},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$t.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./
|
|
24
|
+
`},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$t.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./D2mGoMelJkvbn0dS.cjs"));return A=await o(),g(),A}catch(o){throw console.error("Failed to import or initialize esbuild:",o),H=null,m(o),o}}(),N="@sheetxl/primitives",T=`
|
|
35
25
|
export const FormulaContext = globalThis.${l}?.FormulaContext;
|
|
36
26
|
export const ScalarType = globalThis.${l}?.ScalarType;
|
|
37
27
|
export const Observable = globalThis.${l}?.Observable;
|