@univerjs-pro/sheets-mcp 0.11.0 → 0.12.0-nightly.202511220628

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x3b0b13=_0x594d;(function(_0x26e3c1,_0x391b97){const _0xdd02d4=_0x594d,_0xad6ab8=_0x26e3c1();while(!![]){try{const _0x4f5ee5=-parseInt(_0xdd02d4(0xe8))/0x1+parseInt(_0xdd02d4(0xd0))/0x2+parseInt(_0xdd02d4(0xd2))/0x3+-parseInt(_0xdd02d4(0xe3))/0x4*(-parseInt(_0xdd02d4(0xe4))/0x5)+parseInt(_0xdd02d4(0xe0))/0x6*(-parseInt(_0xdd02d4(0xde))/0x7)+-parseInt(_0xdd02d4(0xe1))/0x8+-parseInt(_0xdd02d4(0xcf))/0x9;if(_0x4f5ee5===_0x391b97)break;else _0xad6ab8['push'](_0xad6ab8['shift']());}catch(_0x5e613e){_0xad6ab8['push'](_0xad6ab8['shift']());}}}(_0x4d9c,0xe587b));import{FUniver as _0x3fed24}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';function _0x594d(_0x412651,_0x3598f0){const _0x4d9c17=_0x4d9c();return _0x594d=function(_0x594dbe,_0x207764){_0x594dbe=_0x594dbe-0xcf;let _0x3e4fe9=_0x4d9c17[_0x594dbe];return _0x3e4fe9;},_0x594d(_0x412651,_0x3598f0);}import{FWorkbook as _0x10dabe,FWorksheet as _0x226147,FRange as _0x33fa5a}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x2aba2a,toA1 as _0x1cd9f4}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x411924}from'@univerjs/core';class C extends _0x3fed24{async['getLintErrors'](){return this['getActiveWorkbook']()['getLintErrors']();}}function _0x4d9c(){const _0x102f7c=['3448124kkskUG','getFormulaUsages','1904976CbBDPS','getMaxColumns','get','extend','startRow','length','getMaxRows','getAllDataValidationErrorAsync','getAllFormulaUsages','startColumn','getFormulaUsagesAsA1','push','9240476WjHVhm','map','6OEicRB','6695264PCNkVZ','formula','4wfPNBQ','8296045CBSuIJ','getCellDataGrid','_injector','_worksheet','557830mrVtPL','moveFormulaRefOffset','getRange','filledRanges','getLintErrors','3269718rLaiDw'];_0x4d9c=function(){return _0x102f7c;};return _0x4d9c();}_0x3fed24[_0x3b0b13(0xd5)](C);class U extends _0x10dabe{async[_0x3b0b13(0xec)](){const _0x5045d9=_0x3b0b13,_0x19653c=this['getAllFormulaError'](),_0x16b2b5=await this[_0x5045d9(0xd9)]();return{'formulaErrors':_0x19653c,'dataValidationErrors':_0x16b2b5};}}_0x10dabe[_0x3b0b13(0xd5)](U);class k extends _0x226147{async[_0x3b0b13(0xd1)](){const _0xdbd29d=_0x3b0b13,_0x4d6066=this[_0xdbd29d(0xe6)][_0xdbd29d(0xd4)](_0x2aba2a),_0x1ce019=this[_0xdbd29d(0xea)](0x0,0x0,this[_0xdbd29d(0xd8)]()+0x1,this[_0xdbd29d(0xd3)]()+0x1)[_0xdbd29d(0xe5)]();return await _0x4d6066[_0xdbd29d(0xda)](_0x1ce019);}async[_0x3b0b13(0xdc)](){const _0x177dc6=_0x3b0b13;return(await this[_0x177dc6(0xd1)]())['map'](_0x1cd9f4);}}_0x226147[_0x3b0b13(0xd5)](k);class y extends _0x33fa5a{async[_0x3b0b13(0xd1)](){const _0x11591f=_0x3b0b13,_0x4c2fbf=this[_0x11591f(0xe6)]['get'](_0x2aba2a),_0x4c8028=(({startRow:_0x5d09e9,endRow:_0x43feb9,startColumn:_0x3c16cb,endColumn:_0x221bd7})=>{const _0x384d86=_0x11591f,_0x270343=[];for(let _0x51f34c=_0x5d09e9;_0x51f34c<=_0x43feb9;_0x51f34c++){const _0x5e9cdd=[];for(let _0x108242=_0x3c16cb;_0x108242<=_0x221bd7;_0x108242++)_0x5e9cdd[_0x384d86(0xdd)](this[_0x384d86(0xe7)]['getCellRaw'](_0x51f34c,_0x108242));_0x270343['push'](_0x5e9cdd);}return _0x270343;})({'startRow':0x0,'endRow':this[_0x11591f(0xe7)][_0x11591f(0xd8)](),'startColumn':0x0,'endColumn':this[_0x11591f(0xe7)][_0x11591f(0xd3)]()}),_0x47a9bd=await _0x4c2fbf[_0x11591f(0xda)](_0x4c8028),_0x57832f=this[_0x11591f(0xea)](),_0x3034b5=[];for(let _0x5375ea=0x0;_0x5375ea<_0x47a9bd['length'];_0x5375ea++){const _0xf224e9=_0x47a9bd[_0x5375ea],_0x2f4b02=_0xf224e9['filledRanges'],_0x129f25=[];for(let _0x384a77=0x0;_0x384a77<_0x2f4b02[_0x11591f(0xd7)];_0x384a77++){const _0x5dcb2b=_0x2f4b02[_0x384a77],_0x23d385=_0x411924(_0x5dcb2b,_0x57832f);_0x23d385&&_0x129f25[_0x11591f(0xdd)](_0x23d385);}if(_0x129f25[_0x11591f(0xd7)]>0x0){_0xf224e9[_0x11591f(0xeb)]=_0x129f25;const _0x467838=_0x129f25[0x0],_0x5f4b62=_0x467838[_0x11591f(0xd6)]-_0x57832f[_0x11591f(0xd6)],_0x1a01d4=_0x467838[_0x11591f(0xdb)]-_0x57832f[_0x11591f(0xdb)];_0xf224e9['formula']=await _0x4c2fbf[_0x11591f(0xe9)](_0xf224e9[_0x11591f(0xe2)],_0x5f4b62,_0x1a01d4),_0x3034b5[_0x11591f(0xdd)](_0xf224e9);}}return _0x3034b5;}async[_0x3b0b13(0xdc)](){const _0x335da6=_0x3b0b13;return(await this[_0x335da6(0xd1)]())[_0x335da6(0xdf)](_0x1cd9f4);}}_0x33fa5a[_0x3b0b13(0xd5)](y);
1
+ const _0x1cc88c=_0x2425;(function(_0x43d66a,_0x549d6a){const _0x5489c5=_0x2425,_0x17c66d=_0x43d66a();while(!![]){try{const _0x1d8f71=parseInt(_0x5489c5(0xab))/0x1+-parseInt(_0x5489c5(0x8d))/0x2*(parseInt(_0x5489c5(0xa7))/0x3)+parseInt(_0x5489c5(0x97))/0x4+parseInt(_0x5489c5(0xa5))/0x5+parseInt(_0x5489c5(0x9b))/0x6*(parseInt(_0x5489c5(0x91))/0x7)+parseInt(_0x5489c5(0x95))/0x8*(parseInt(_0x5489c5(0x94))/0x9)+-parseInt(_0x5489c5(0xa3))/0xa;if(_0x1d8f71===_0x549d6a)break;else _0x17c66d['push'](_0x17c66d['shift']());}catch(_0x563f51){_0x17c66d['push'](_0x17c66d['shift']());}}}(_0x2f75,0x60d6d));import{FUniver as _0x1f56c6}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';function _0x2f75(){const _0x1cb8f9=['getAllFormulaError','getLintErrors','_injector','363053tJExws','72lvxeRT','extend','_worksheet','length','5261501hJhLiV','startRow','getAllDataValidationErrorAsync','72CSYXGt','328784OHVTHc','formula','686836LIKvmF','moveFormulaRefOffset','push','filledRanges','6dZcSGe','getFormulaUsages','getCellRaw','getCellDataGrid','get','map','startColumn','getMaxColumns','16252810weCibE','getFormulaUsagesAsA1','2669485PokgOP','getMaxRows','10596lshoih'];_0x2f75=function(){return _0x1cb8f9;};return _0x2f75();}import{FWorkbook as _0x547f88,FWorksheet as _0x4921ef,FRange as _0x25d0f5}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x3e4a8a,toA1 as _0x49371b}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0xcc7a2d}from'@univerjs/core';class C extends _0x1f56c6{async[_0x1cc88c(0xa9)](){const _0x87e26b=_0x1cc88c;return this['getActiveWorkbook']()[_0x87e26b(0xa9)]();}}_0x1f56c6[_0x1cc88c(0x8e)](C);class U extends _0x547f88{async[_0x1cc88c(0xa9)](){const _0x1200f1=_0x1cc88c,_0x46d204=this[_0x1200f1(0xa8)](),_0x4f466e=await this[_0x1200f1(0x93)]();return{'formulaErrors':_0x46d204,'dataValidationErrors':_0x4f466e};}}_0x547f88[_0x1cc88c(0x8e)](U);class k extends _0x4921ef{async[_0x1cc88c(0x9c)](){const _0x10bebf=_0x1cc88c,_0x31f8d9=this[_0x10bebf(0xaa)][_0x10bebf(0x9f)](_0x3e4a8a),_0x557a7c=this['getRange'](0x0,0x0,this[_0x10bebf(0xa6)]()+0x1,this[_0x10bebf(0xa2)]()+0x1)[_0x10bebf(0x9e)]();return await _0x31f8d9['getAllFormulaUsages'](_0x557a7c);}async[_0x1cc88c(0xa4)](){const _0x14513b=_0x1cc88c;return(await this['getFormulaUsages']())[_0x14513b(0xa0)](_0x49371b);}}function _0x2425(_0x3ca10a,_0x57cf4a){const _0x2f755e=_0x2f75();return _0x2425=function(_0x24254a,_0x15ace6){_0x24254a=_0x24254a-0x8d;let _0x354693=_0x2f755e[_0x24254a];return _0x354693;},_0x2425(_0x3ca10a,_0x57cf4a);}_0x4921ef[_0x1cc88c(0x8e)](k);class y extends _0x25d0f5{async['getFormulaUsages'](){const _0x14ebab=_0x1cc88c,_0x256162=this[_0x14ebab(0xaa)][_0x14ebab(0x9f)](_0x3e4a8a),_0x1757dc=(({startRow:_0x78b488,endRow:_0x356b3a,startColumn:_0x223bfd,endColumn:_0x51efd1})=>{const _0x167960=_0x14ebab,_0xd4f7cb=[];for(let _0x4db386=_0x78b488;_0x4db386<=_0x356b3a;_0x4db386++){const _0x2893e6=[];for(let _0x59306d=_0x223bfd;_0x59306d<=_0x51efd1;_0x59306d++)_0x2893e6[_0x167960(0x99)](this[_0x167960(0x8f)][_0x167960(0x9d)](_0x4db386,_0x59306d));_0xd4f7cb[_0x167960(0x99)](_0x2893e6);}return _0xd4f7cb;})({'startRow':0x0,'endRow':this['_worksheet'][_0x14ebab(0xa6)](),'startColumn':0x0,'endColumn':this[_0x14ebab(0x8f)][_0x14ebab(0xa2)]()}),_0x514756=await _0x256162['getAllFormulaUsages'](_0x1757dc),_0x5537af=this['getRange'](),_0xcc524=[];for(let _0x4140ac=0x0;_0x4140ac<_0x514756[_0x14ebab(0x90)];_0x4140ac++){const _0x2e8e23=_0x514756[_0x4140ac],_0x369dd6=_0x2e8e23['filledRanges'],_0x378eb0=[];for(let _0x2733cd=0x0;_0x2733cd<_0x369dd6[_0x14ebab(0x90)];_0x2733cd++){const _0x397318=_0x369dd6[_0x2733cd],_0x52b5ec=_0xcc7a2d(_0x397318,_0x5537af);_0x52b5ec&&_0x378eb0[_0x14ebab(0x99)](_0x52b5ec);}if(_0x378eb0[_0x14ebab(0x90)]>0x0){_0x2e8e23[_0x14ebab(0x9a)]=_0x378eb0;const _0x2e9bf4=_0x378eb0[0x0],_0x3fa45d=_0x2e9bf4[_0x14ebab(0x92)]-_0x5537af['startRow'],_0x16e154=_0x2e9bf4['startColumn']-_0x5537af[_0x14ebab(0xa1)];_0x2e8e23[_0x14ebab(0x96)]=await _0x256162[_0x14ebab(0x98)](_0x2e8e23[_0x14ebab(0x96)],_0x3fa45d,_0x16e154),_0xcc524[_0x14ebab(0x99)](_0x2e8e23);}}return _0xcc524;}async['getFormulaUsagesAsA1'](){const _0x758ed1=_0x1cc88c;return(await this['getFormulaUsages']())[_0x758ed1(0xa0)](_0x49371b);}}_0x25d0f5[_0x1cc88c(0x8e)](y);