@univerjs-pro/sheets-mcp 0.15.4 → 0.15.5
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x43fa17=_0x1829;(function(_0x3b81c3,_0x671b56){const _0x14d9aa=_0x1829,_0x4ac0e0=_0x3b81c3();while(!![]){try{const _0x7d87a7=parseInt(_0x14d9aa(0x1f4))/0x1+-parseInt(_0x14d9aa(0x1fe))/0x2+-parseInt(_0x14d9aa(0x1fb))/0x3+parseInt(_0x14d9aa(0x206))/0x4+-parseInt(_0x14d9aa(0x20f))/0x5+-parseInt(_0x14d9aa(0x1f9))/0x6*(-parseInt(_0x14d9aa(0x208))/0x7)+-parseInt(_0x14d9aa(0x1f2))/0x8*(-parseInt(_0x14d9aa(0x1fd))/0x9);if(_0x7d87a7===_0x671b56)break;else _0x4ac0e0['push'](_0x4ac0e0['shift']());}catch(_0x244f0b){_0x4ac0e0['push'](_0x4ac0e0['shift']());}}}(_0x4568,0xd1ac5));import{FUniver as _0x4c36b6}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';function _0x1829(_0x4680ea,_0x3c2391){_0x4680ea=_0x4680ea-0x1ee;const _0x4568ed=_0x4568();let _0x18291c=_0x4568ed[_0x4680ea];return _0x18291c;}import{FWorkbook as _0x156924,FWorksheet as _0x5e83d1,FRange as _0x292ad6}from'@univerjs/sheets/facade';function _0x4568(){const _0x29994c=['updateConfig','18fRcaro','filledRanges','3232767FTDzoW','getFormulaUsages','207bxRMXs','2793332wphlCg','extend','push','getRange','getCellRaw','firstOccurrence','getActiveWorkbook','getAllFormulaUsages','6852500yUBvzc','startColumn','2219560hKvHHb','map','getLintErrors','get','startRow','formula','toA1','1574395TbcAIa','endRow','getAllStyleUsages','_workbook','getCellDataGrid','getFormulaUsagesAsA1','getAllSizeUsages','endColumn','getStyleUsagesAsA1','getSizeUsages','moveFormulaRefOffset','getMaxRows','_injector','getMaxColumns','_worksheet','85912DKYsny','getSizeUsagesAsA1','736593ZOPHxq','length','getStyleUsages','getAllFormulaError'];_0x4568=function(){return _0x29994c;};return _0x4568();}import{IFormulaUsageAnalyzer as _0x287036,formulaToA1 as _0x36e429,IStyleUsageAnalyzer as _0xa6be92,styleToA1 as _0x34c389,ISizeUsageAnalyzer as _0x2f62c5}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x51c7ad}from'@univerjs/core';class z extends _0x4c36b6{async[_0x43fa17(0x20a)](){const _0x22ee52=_0x43fa17;return this[_0x22ee52(0x204)]()[_0x22ee52(0x20a)]();}}_0x4c36b6[_0x43fa17(0x1ff)](z);class _ extends _0x156924{async['getLintErrors'](){const _0x4930b2=_0x43fa17,_0xb2c602=this[_0x4930b2(0x1f7)](),_0x3cd72f=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0xb2c602,'dataValidationErrors':_0x3cd72f};}}_0x156924['extend'](_);class x extends _0x5e83d1{async[_0x43fa17(0x1fc)](){const _0x2035d5=_0x43fa17,_0x341e93=this[_0x2035d5(0x1ef)][_0x2035d5(0x20b)](_0x287036),_0x238ed3=this[_0x2035d5(0x201)](0x0,0x0,this[_0x2035d5(0x1ee)](),this['getMaxColumns']())['getCellDataGrid']();return await _0x341e93[_0x2035d5(0x205)](_0x238ed3);}async[_0x43fa17(0x214)](){const _0x1df86e=_0x43fa17;return(await this[_0x1df86e(0x1fc)]())['map'](_0x36e429);}[_0x43fa17(0x1f6)](_0x261cb4){const _0x9145b6=_0x43fa17,_0x2bdc8f=this['_injector'][_0x9145b6(0x20b)](_0xa6be92),_0x211b39=this[_0x9145b6(0x201)](0x0,0x0,this[_0x9145b6(0x1ee)](),this['getMaxColumns']())[_0x9145b6(0x213)]();return _0x2bdc8f[_0x9145b6(0x1f8)](_0x261cb4),_0x2bdc8f[_0x9145b6(0x211)](_0x211b39,this['_workbook'],this[_0x9145b6(0x1f1)]);}[_0x43fa17(0x217)](_0x2ff65e){return this['getStyleUsages'](_0x2ff65e)['map'](_0x34c389);}[_0x43fa17(0x218)](_0xce96f8){const _0x22bf02=_0x43fa17,_0x51a28c=this[_0x22bf02(0x1ef)][_0x22bf02(0x20b)](_0x2f62c5);return _0x51a28c[_0x22bf02(0x1f8)](_0xce96f8),_0x51a28c['getAllSizeUsages'](this[_0x22bf02(0x1f1)]);}[_0x43fa17(0x1f3)](_0x353eb7){const _0xed1818=_0x43fa17,_0x222b68=this[_0xed1818(0x1ef)][_0xed1818(0x20b)](_0x2f62c5);_0x222b68[_0xed1818(0x1f8)](_0x353eb7);const _0x40b6e5=_0x222b68[_0xed1818(0x215)](this[_0xed1818(0x1f1)]);return _0x222b68['toA1'](_0x40b6e5);}}_0x5e83d1[_0x43fa17(0x1ff)](x);class M extends _0x292ad6{async[_0x43fa17(0x1fc)](){const _0x221c0f=_0x43fa17,_0x636f36=this[_0x221c0f(0x1ef)][_0x221c0f(0x20b)](_0x287036),_0x5a4b57=(({startRow:_0x8de57d,endRow:_0x3b9d78,startColumn:_0x2c7bbd,endColumn:_0x2a6d24})=>{const _0x292788=_0x221c0f,_0x4e32db=[];for(let _0x3195d0=_0x8de57d;_0x3195d0<=_0x3b9d78;_0x3195d0++){const _0x5a0698=[];for(let _0xa9efa0=_0x2c7bbd;_0xa9efa0<=_0x2a6d24;_0xa9efa0++)_0x5a0698['push'](this[_0x292788(0x1f1)][_0x292788(0x202)](_0x3195d0,_0xa9efa0));_0x4e32db[_0x292788(0x200)](_0x5a0698);}return _0x4e32db;})({'startRow':0x0,'endRow':this[_0x221c0f(0x1f1)][_0x221c0f(0x1ee)](),'startColumn':0x0,'endColumn':this[_0x221c0f(0x1f1)][_0x221c0f(0x1f0)]()}),_0x556c32=await _0x636f36[_0x221c0f(0x205)](_0x5a4b57),_0x16fef2=this['getRange'](),_0xf615b6=[];for(let _0x2f388d=0x0;_0x2f388d<_0x556c32[_0x221c0f(0x1f5)];_0x2f388d++){const _0x55201c=_0x556c32[_0x2f388d],_0x34535f=_0x55201c[_0x221c0f(0x1fa)],_0x28beb0=[];for(let _0x30f9f0=0x0;_0x30f9f0<_0x34535f[_0x221c0f(0x1f5)];_0x30f9f0++){const _0x95a6e1=_0x34535f[_0x30f9f0],_0x49ba9b=_0x51c7ad(_0x95a6e1,_0x16fef2);_0x49ba9b&&_0x28beb0[_0x221c0f(0x200)](_0x49ba9b);}if(_0x28beb0[_0x221c0f(0x1f5)]>0x0){if(_0x55201c[_0x221c0f(0x1fa)]=_0x28beb0,!(_0x55201c['firstOccurrence'][_0x221c0f(0x20c)]>=_0x16fef2[_0x221c0f(0x20c)]&&_0x55201c[_0x221c0f(0x203)][_0x221c0f(0x20c)]<=_0x16fef2[_0x221c0f(0x210)]&&_0x55201c[_0x221c0f(0x203)][_0x221c0f(0x207)]>=_0x16fef2[_0x221c0f(0x207)]&&_0x55201c['firstOccurrence']['startColumn']<=_0x16fef2['endColumn'])){const _0x1e7539=_0x28beb0[0x0],_0x8c678b=_0x1e7539['startRow']-_0x55201c[_0x221c0f(0x203)][_0x221c0f(0x20c)],_0x51c6f6=_0x1e7539['startColumn']-_0x55201c['firstOccurrence'][_0x221c0f(0x207)];_0x55201c['formula']=await _0x636f36[_0x221c0f(0x219)](_0x55201c[_0x221c0f(0x20d)],_0x51c6f6,_0x8c678b),_0x55201c['firstOccurrence']={'startRow':_0x1e7539['startRow'],'endRow':_0x1e7539[_0x221c0f(0x20c)],'startColumn':_0x1e7539[_0x221c0f(0x207)],'endColumn':_0x1e7539['startColumn']};}_0xf615b6[_0x221c0f(0x200)](_0x55201c);}}return _0xf615b6;}async[_0x43fa17(0x214)](){const _0x443b22=_0x43fa17;return(await this[_0x443b22(0x1fc)]())['map'](_0x36e429);}[_0x43fa17(0x1f6)](_0x42c6fd){const _0x41ed6b=_0x43fa17,_0x594346=this[_0x41ed6b(0x1ef)][_0x41ed6b(0x20b)](_0xa6be92),_0x4da67e=(({startRow:_0xb7b7b8,endRow:_0x34e985,startColumn:_0x5b55ec,endColumn:_0x21adab})=>{const _0x3f6865=_0x41ed6b,_0x228df5=[];for(let _0x3c514c=_0xb7b7b8;_0x3c514c<=_0x34e985;_0x3c514c++){const _0xe9338a=[];for(let _0xeb86ba=_0x5b55ec;_0xeb86ba<=_0x21adab;_0xeb86ba++)_0xe9338a[_0x3f6865(0x200)](this[_0x3f6865(0x1f1)]['getCellRaw'](_0x3c514c,_0xeb86ba));_0x228df5[_0x3f6865(0x200)](_0xe9338a);}return _0x228df5;})({'startRow':0x0,'endRow':this[_0x41ed6b(0x1f1)][_0x41ed6b(0x1ee)](),'startColumn':0x0,'endColumn':this[_0x41ed6b(0x1f1)]['getMaxColumns']()});_0x594346[_0x41ed6b(0x1f8)](_0x42c6fd);const _0x2010e1=_0x594346[_0x41ed6b(0x211)](_0x4da67e,this[_0x41ed6b(0x212)],this['_worksheet']),_0x15dba9=this[_0x41ed6b(0x201)](),_0x3c60cd=[];for(let _0x2b2c1=0x0;_0x2b2c1<_0x2010e1[_0x41ed6b(0x1f5)];_0x2b2c1++){const _0x3461c4=_0x2010e1[_0x2b2c1],_0x43ac39=_0x3461c4[_0x41ed6b(0x1fa)],_0x39b645=[];for(let _0x5c29c6=0x0;_0x5c29c6<_0x43ac39[_0x41ed6b(0x1f5)];_0x5c29c6++){const _0x1b1baf=_0x43ac39[_0x5c29c6],_0x5654da=_0x51c7ad(_0x1b1baf,_0x15dba9);_0x5654da&&_0x39b645['push'](_0x5654da);}_0x39b645[_0x41ed6b(0x1f5)]>0x0&&(_0x3461c4[_0x41ed6b(0x1fa)]=_0x39b645,_0x3c60cd[_0x41ed6b(0x200)](_0x3461c4));}return _0x3c60cd;}[_0x43fa17(0x217)](_0x4abd97){const _0x3bf2ce=_0x43fa17;return this[_0x3bf2ce(0x1f6)](_0x4abd97)[_0x3bf2ce(0x209)](_0x34c389);}['getSizeUsages'](_0x54d961){const _0x2f1374=_0x43fa17,_0x49ba94=this[_0x2f1374(0x1ef)][_0x2f1374(0x20b)](_0x2f62c5),_0x5ef760=this[_0x2f1374(0x201)]();return _0x49ba94[_0x2f1374(0x1f8)](_0x54d961),_0x49ba94[_0x2f1374(0x215)](this[_0x2f1374(0x1f1)],_0x5ef760[_0x2f1374(0x20c)],_0x5ef760[_0x2f1374(0x210)],_0x5ef760[_0x2f1374(0x207)],_0x5ef760[_0x2f1374(0x216)]);}[_0x43fa17(0x1f3)](_0x4f35de){const _0x4cae83=_0x43fa17,_0x1a932a=this[_0x4cae83(0x218)](_0x4f35de);return this[_0x4cae83(0x1ef)][_0x4cae83(0x20b)](_0x2f62c5)[_0x4cae83(0x20e)](_0x1a932a);}}_0x292ad6['extend'](M);
|