@univer-cli/content-execution 1.1.0 → 1.3.0
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/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4bdfb3=_0x2092;(function(_0x116303,_0x14db56){const _0x13594c=_0x2092,_0xdf2b36=_0x116303();while(!![]){try{const _0xbef119=parseInt(_0x13594c(0x13e))/0x1*(parseInt(_0x13594c(0x136))/0x2)+parseInt(_0x13594c(0x156))/0x3+-parseInt(_0x13594c(0x152))/0x4*(-parseInt(_0x13594c(0x168))/0x5)+-parseInt(_0x13594c(0x137))/0x6*(-parseInt(_0x13594c(0x13a))/0x7)+parseInt(_0x13594c(0x139))/0x8+parseInt(_0x13594c(0x135))/0x9*(parseInt(_0x13594c(0x138))/0xa)+-parseInt(_0x13594c(0x14d))/0xb*(parseInt(_0x13594c(0x169))/0xc);if(_0xbef119===_0x14db56)break;else _0xdf2b36['push'](_0xdf2b36['shift']());}catch(_0x2664c4){_0xdf2b36['push'](_0xdf2b36['shift']());}}}(_0x5c6c,0x909f0));var e=class extends Error{[_0x4bdfb3(0x151)];[_0x4bdfb3(0x160)];constructor(_0x22bfa6,_0x559a11,_0x4299fb){const _0xaae011=_0x4bdfb3;super(_0x559a11),this[_0xaae011(0x151)]=_0x22bfa6,this[_0xaae011(0x160)]=_0x4299fb,this[_0xaae011(0x141)]=_0xaae011(0x13b);}},t=['sheet',_0x4bdfb3(0x15e),'slide',_0x4bdfb3(0x167),_0x4bdfb3(0x153)];function n(_0x485494){const _0x30fc14=_0x4bdfb3;if(typeof _0x485494['code']!=_0x30fc14(0x14a))throw new e(_0x30fc14(0x142),_0x30fc14(0x16a));if(typeof _0x485494[_0x30fc14(0x158)]!=_0x30fc14(0x14a)||_0x485494['unitId'][_0x30fc14(0x163)]()['length']===0x0)throw new e('CONTENT_EXECUTION_INVALID_INPUT',_0x30fc14(0x15c),{'unitId':_0x485494['unitId']});if(!c(_0x485494[_0x30fc14(0x146)]))throw new e(_0x30fc14(0x159),_0x30fc14(0x150)+String(_0x485494[_0x30fc14(0x146)]),{'supportedUnitTypes':t,'unitType':_0x485494[_0x30fc14(0x146)]});let _0x3a623e=i(_0x485494[_0x30fc14(0x146)]);return o(_0x485494[_0x30fc14(0x151)],_0x485494[_0x30fc14(0x146)],_0x3a623e),r(_0x485494['unitType'],_0x485494[_0x30fc14(0x158)])+'\x0a'+_0x485494['code'];}function _0x5c6c(){const _0x3dcd64=['board','const\x20','CONTENT_EXECUTION_RESERVED_BINDING','1516257XUzZhh','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','unitId','CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','\x20content\x20execution\x20prelude','workbook','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','stringify','doc','if\x20(!base)\x20throw\x20new\x20Error(','details','\x20=\x20undefined;\x0a','api','trim','Cannot\x20find\x20base\x20','Cannot\x20find\x20workbook\x20','slide','base','102535ECuPPz','48eWadSp','Content\x20execution\x20code\x20must\x20be\x20a\x20string','if\x20(!presentation)\x20throw\x20new\x20Error(','const\x20board\x20=\x20api.getBoard(','join','9bsbPYc','1402MIAVau','203454LJiAbg','9713130VZvZTW','2310176xSEdhZ','49WOwHaV','ContentExecutionError','if\x20(!workbook)\x20throw\x20new\x20Error(','const\x20workbook\x20=\x20api.getWorkbook(','1487zRzInb','Cannot\x20find\x20board\x20','Cannot\x20find\x20doc\x20','name','CONTENT_EXECUTION_INVALID_INPUT','const\x20presentation\x20=\x20api.getPresentation(','sheet','const\x20base\x20=\x20api.getBase(','unitType','if\x20(!board)\x20throw\x20new\x20Error(','Cannot\x20find\x20presentation\x20','const\x20api\x20=\x20univerAPI;','string','univerAPI','`\x20is\x20reserved\x20by\x20the\x20','9339572mitbGt','const\x20doc\x20=\x20api.getDocument(','return\x20(async\x20()\x20=>\x20{\x20','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20','code','184uxHpWb'];_0x5c6c=function(){return _0x3dcd64;};return _0x5c6c();}function r(_0x16d4fd,_0x2c44a7){const _0x401f31=_0x4bdfb3;let _0x760909=JSON[_0x401f31(0x15d)](_0x2c44a7);return _0x16d4fd==='sheet'?[_0x401f31(0x149),_0x401f31(0x13d)+_0x760909+');',_0x401f31(0x13c)+JSON[_0x401f31(0x15d)](_0x401f31(0x165)+_0x2c44a7)+');'][_0x401f31(0x134)]('\x0a'):_0x16d4fd===_0x401f31(0x15e)?[_0x401f31(0x149),_0x401f31(0x14e)+_0x760909+');','if\x20(!doc)\x20throw\x20new\x20Error('+JSON[_0x401f31(0x15d)](_0x401f31(0x140)+_0x2c44a7)+');'][_0x401f31(0x134)]('\x0a'):_0x16d4fd===_0x401f31(0x166)?[_0x401f31(0x149),_0x401f31(0x143)+_0x760909+');',_0x401f31(0x16b)+JSON[_0x401f31(0x15d)](_0x401f31(0x148)+_0x2c44a7)+');'][_0x401f31(0x134)]('\x0a'):_0x16d4fd===_0x401f31(0x167)?['const\x20api\x20=\x20univerAPI;',_0x401f31(0x145)+_0x760909+');',_0x401f31(0x15f)+JSON[_0x401f31(0x15d)](_0x401f31(0x164)+_0x2c44a7)+');']['join']('\x0a'):_0x16d4fd==='board'?[_0x401f31(0x149),_0x401f31(0x16c)+_0x760909+');',_0x401f31(0x147)+JSON[_0x401f31(0x15d)](_0x401f31(0x13f)+_0x2c44a7)+');'][_0x401f31(0x134)]('\x0a'):a(_0x16d4fd);}function i(_0x30661b){const _0x3b74ec=_0x4bdfb3;return _0x30661b===_0x3b74ec(0x144)?[_0x3b74ec(0x14b),_0x3b74ec(0x162),_0x3b74ec(0x15b)]:_0x30661b===_0x3b74ec(0x15e)?['univerAPI',_0x3b74ec(0x162),_0x3b74ec(0x15e)]:_0x30661b==='slide'?[_0x3b74ec(0x14b),'api','presentation']:_0x30661b==='base'?[_0x3b74ec(0x14b),_0x3b74ec(0x162),_0x3b74ec(0x167)]:_0x30661b===_0x3b74ec(0x153)?[_0x3b74ec(0x14b),_0x3b74ec(0x162),'board']:a(_0x30661b);}function _0x2092(_0x40c9f6,_0x57156d){_0x40c9f6=_0x40c9f6-0x134;const _0x5c6c4e=_0x5c6c();let _0x209238=_0x5c6c4e[_0x40c9f6];return _0x209238;}function a(_0x37aff4){const _0x454825=_0x4bdfb3;throw Error(_0x454825(0x157)+String(_0x37aff4));}function o(_0x565f52,_0x309496,_0x508f67){const _0xfabdf0=_0x4bdfb3;if(s(_0x565f52)){for(let _0x23bcf5 of _0x508f67)if(!s(_0xfabdf0(0x154)+_0x23bcf5+_0xfabdf0(0x161)+_0x565f52))throw new e(_0xfabdf0(0x155),'`'+_0x23bcf5+_0xfabdf0(0x14c)+_0x309496+_0xfabdf0(0x15a),{'binding':_0x23bcf5,'reservedBindings':_0x508f67,'unitType':_0x309496});}}function s(_0x72c047){const _0x4c83e4=_0x4bdfb3;try{return Function('univerAPI',_0x4c83e4(0x14f)+_0x72c047+'\x0a})();'),!0x0;}catch{return!0x1;}}function c(_0x1a5e1c){return t['some'](_0x31a107=>_0x31a107===_0x1a5e1c);}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
|