@univerjs-pro/sheets-mcp 0.15.2 → 0.15.3-insiders.20260131-cbd5fac
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 +12 -12
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1f4866=_0x29fe;(function(_0x37b5f7,_0x4303a2){const _0x5b161b=_0x29fe,_0x556a20=_0x37b5f7();while(!![]){try{const _0x1efd93=-parseInt(_0x5b161b(0xa1))/0x1*(-parseInt(_0x5b161b(0x7d))/0x2)+-parseInt(_0x5b161b(0x97))/0x3+-parseInt(_0x5b161b(0x96))/0x4+parseInt(_0x5b161b(0x86))/0x5+parseInt(_0x5b161b(0x9a))/0x6+parseInt(_0x5b161b(0x8f))/0x7+-parseInt(_0x5b161b(0x8e))/0x8;if(_0x1efd93===_0x4303a2)break;else _0x556a20['push'](_0x556a20['shift']());}catch(_0x3acb5a){_0x556a20['push'](_0x556a20['shift']());}}}(_0x15f3,0xb292a));function _0x15f3(){const _0x12bf57=['toA1','map','3623808yOYaXe','918190BieEyh','length','getAllFormulaUsages','getAllSizeUsages','endRow','filledRanges','startColumn','5349584ACffTG','1197954AmQGIg','getSizeUsagesAsA1','getCellDataGrid','2501544vJyvQI','get','getStyleUsages','getLintErrors','getStyleUsagesAsA1','firstOccurrence','getCellRaw','4aZbVKU','_workbook','getFormulaUsages','formula','push','667582vfYKIU','updateConfig','extend','getMaxColumns','getMaxRows','getActiveWorkbook','endColumn','getAllStyleUsages','getSizeUsages','5189330TJLrzm','_injector','getRange','startRow','getFormulaUsagesAsA1','_worksheet'];_0x15f3=function(){return _0x12bf57;};return _0x15f3();}import{FUniver as _0x1221ae}from'@univerjs/core/facade';function _0x29fe(_0xeb5786,_0xd1d355){_0xeb5786=_0xeb5786-0x7a;const _0x15f334=_0x15f3();let _0x29feb3=_0x15f334[_0xeb5786];return _0x29feb3;}import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x3e1cc5,FWorksheet as _0xd5b963,FRange as _0xa5ed6a}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x4c2988,formulaToA1 as _0x233807,IStyleUsageAnalyzer as _0x56a9ca,styleToA1 as _0x1861ad,ISizeUsageAnalyzer as _0x532976}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x27ec1f}from'@univerjs/core';class z extends _0x1221ae{async[_0x1f4866(0x9d)](){const _0x2592c9=_0x1f4866;return this[_0x2592c9(0x82)]()[_0x2592c9(0x9d)]();}}_0x1221ae[_0x1f4866(0x7f)](z);class _ extends _0x3e1cc5{async[_0x1f4866(0x9d)](){const _0x11a330=this['getAllFormulaError'](),_0x122855=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x11a330,'dataValidationErrors':_0x122855};}}_0x3e1cc5['extend'](_);class x extends _0xd5b963{async[_0x1f4866(0x7a)](){const _0x40a9b8=_0x1f4866,_0x197b31=this[_0x40a9b8(0x87)][_0x40a9b8(0x9b)](_0x4c2988),_0x4e1f76=this[_0x40a9b8(0x88)](0x0,0x0,this['getMaxRows'](),this['getMaxColumns']())[_0x40a9b8(0x99)]();return await _0x197b31[_0x40a9b8(0x91)](_0x4e1f76);}async[_0x1f4866(0x8a)](){const _0x247884=_0x1f4866;return(await this[_0x247884(0x7a)]())[_0x247884(0x8d)](_0x233807);}[_0x1f4866(0x9c)](_0x49c1f1){const _0x13d1d7=_0x1f4866,_0x56663b=this[_0x13d1d7(0x87)][_0x13d1d7(0x9b)](_0x56a9ca),_0x44c7ce=this['getRange'](0x0,0x0,this['getMaxRows'](),this[_0x13d1d7(0x80)]())[_0x13d1d7(0x99)]();return _0x56663b[_0x13d1d7(0x7e)](_0x49c1f1),_0x56663b[_0x13d1d7(0x84)](_0x44c7ce,this[_0x13d1d7(0xa2)],this[_0x13d1d7(0x8b)]);}['getStyleUsagesAsA1'](_0x3cb91a){const _0x5617eb=_0x1f4866;return this[_0x5617eb(0x9c)](_0x3cb91a)[_0x5617eb(0x8d)](_0x1861ad);}[_0x1f4866(0x85)](_0xd7e13b){const _0x1b9903=_0x1f4866,_0x3c08e4=this[_0x1b9903(0x87)][_0x1b9903(0x9b)](_0x532976);return _0x3c08e4['updateConfig'](_0xd7e13b),_0x3c08e4['getAllSizeUsages'](this[_0x1b9903(0x8b)]);}[_0x1f4866(0x98)](_0x5f59d8){const _0x106543=_0x1f4866,_0x546917=this['_injector']['get'](_0x532976);_0x546917['updateConfig'](_0x5f59d8);const _0x19c83a=_0x546917[_0x106543(0x92)](this[_0x106543(0x8b)]);return _0x546917[_0x106543(0x8c)](_0x19c83a);}}_0xd5b963[_0x1f4866(0x7f)](x);class M extends _0xa5ed6a{async['getFormulaUsages'](){const _0x47ee6a=_0x1f4866,_0x44704c=this['_injector']['get'](_0x4c2988),_0x330096=(({startRow:_0x3309ef,endRow:_0x326483,startColumn:_0x2f8104,endColumn:_0x42c7db})=>{const _0x1e3dc8=_0x29fe,_0x4390c9=[];for(let _0x572d8e=_0x3309ef;_0x572d8e<=_0x326483;_0x572d8e++){const _0x222f43=[];for(let _0x3269a6=_0x2f8104;_0x3269a6<=_0x42c7db;_0x3269a6++)_0x222f43['push'](this[_0x1e3dc8(0x8b)][_0x1e3dc8(0xa0)](_0x572d8e,_0x3269a6));_0x4390c9['push'](_0x222f43);}return _0x4390c9;})({'startRow':0x0,'endRow':this[_0x47ee6a(0x8b)]['getMaxRows'](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x47ee6a(0x80)]()}),_0x3d50de=await _0x44704c[_0x47ee6a(0x91)](_0x330096),_0x549430=this[_0x47ee6a(0x88)](),_0x1379d3=[];for(let _0x5106f6=0x0;_0x5106f6<_0x3d50de['length'];_0x5106f6++){const _0x47c892=_0x3d50de[_0x5106f6],_0x239029=_0x47c892[_0x47ee6a(0x94)],_0x44d27a=[];for(let _0x5a410d=0x0;_0x5a410d<_0x239029[_0x47ee6a(0x90)];_0x5a410d++){const _0x1079d8=_0x239029[_0x5a410d],_0x444ca0=_0x27ec1f(_0x1079d8,_0x549430);_0x444ca0&&_0x44d27a['push'](_0x444ca0);}if(_0x44d27a[_0x47ee6a(0x90)]>0x0){if(_0x47c892[_0x47ee6a(0x94)]=_0x44d27a,!(_0x47c892['firstOccurrence'][_0x47ee6a(0x89)]>=_0x549430['startRow']&&_0x47c892[_0x47ee6a(0x9f)][_0x47ee6a(0x89)]<=_0x549430['endRow']&&_0x47c892[_0x47ee6a(0x9f)][_0x47ee6a(0x95)]>=_0x549430[_0x47ee6a(0x95)]&&_0x47c892[_0x47ee6a(0x9f)][_0x47ee6a(0x95)]<=_0x549430['endColumn'])){const _0x2e58c2=_0x44d27a[0x0],_0x1c2948=_0x2e58c2[_0x47ee6a(0x89)]-_0x47c892[_0x47ee6a(0x9f)]['startRow'],_0x46da98=_0x2e58c2[_0x47ee6a(0x95)]-_0x47c892[_0x47ee6a(0x9f)][_0x47ee6a(0x95)];_0x47c892[_0x47ee6a(0x7b)]=await _0x44704c['moveFormulaRefOffset'](_0x47c892[_0x47ee6a(0x7b)],_0x46da98,_0x1c2948),_0x47c892[_0x47ee6a(0x9f)]={'startRow':_0x2e58c2['startRow'],'endRow':_0x2e58c2[_0x47ee6a(0x89)],'startColumn':_0x2e58c2[_0x47ee6a(0x95)],'endColumn':_0x2e58c2[_0x47ee6a(0x95)]};}_0x1379d3[_0x47ee6a(0x7c)](_0x47c892);}}return _0x1379d3;}async[_0x1f4866(0x8a)](){const _0x4b33ae=_0x1f4866;return(await this[_0x4b33ae(0x7a)]())[_0x4b33ae(0x8d)](_0x233807);}[_0x1f4866(0x9c)](_0x54f714){const _0x24acbe=_0x1f4866,_0x15bf09=this[_0x24acbe(0x87)][_0x24acbe(0x9b)](_0x56a9ca),_0x57db38=(({startRow:_0x5e5086,endRow:_0x31ed36,startColumn:_0xec3d82,endColumn:_0x27f079})=>{const _0x2ee8a8=_0x24acbe,_0x1a4d52=[];for(let _0x219f03=_0x5e5086;_0x219f03<=_0x31ed36;_0x219f03++){const _0x5e3070=[];for(let _0x3927fc=_0xec3d82;_0x3927fc<=_0x27f079;_0x3927fc++)_0x5e3070[_0x2ee8a8(0x7c)](this[_0x2ee8a8(0x8b)][_0x2ee8a8(0xa0)](_0x219f03,_0x3927fc));_0x1a4d52[_0x2ee8a8(0x7c)](_0x5e3070);}return _0x1a4d52;})({'startRow':0x0,'endRow':this['_worksheet'][_0x24acbe(0x81)](),'startColumn':0x0,'endColumn':this[_0x24acbe(0x8b)][_0x24acbe(0x80)]()});_0x15bf09[_0x24acbe(0x7e)](_0x54f714);const _0x4652be=_0x15bf09[_0x24acbe(0x84)](_0x57db38,this[_0x24acbe(0xa2)],this[_0x24acbe(0x8b)]),_0x3df1be=this[_0x24acbe(0x88)](),_0xc39377=[];for(let _0x562f77=0x0;_0x562f77<_0x4652be['length'];_0x562f77++){const _0x1a522c=_0x4652be[_0x562f77],_0x543a7e=_0x1a522c['filledRanges'],_0x739de0=[];for(let _0x5d7dee=0x0;_0x5d7dee<_0x543a7e[_0x24acbe(0x90)];_0x5d7dee++){const _0x340fd2=_0x543a7e[_0x5d7dee],_0x39b3b4=_0x27ec1f(_0x340fd2,_0x3df1be);_0x39b3b4&&_0x739de0[_0x24acbe(0x7c)](_0x39b3b4);}_0x739de0[_0x24acbe(0x90)]>0x0&&(_0x1a522c['filledRanges']=_0x739de0,_0xc39377[_0x24acbe(0x7c)](_0x1a522c));}return _0xc39377;}[_0x1f4866(0x9e)](_0xf7ba59){const _0x8ba98e=_0x1f4866;return this[_0x8ba98e(0x9c)](_0xf7ba59)[_0x8ba98e(0x8d)](_0x1861ad);}[_0x1f4866(0x85)](_0x2f10d5){const _0x291961=_0x1f4866,_0x1f50c3=this[_0x291961(0x87)]['get'](_0x532976),_0x1d7f96=this[_0x291961(0x88)]();return _0x1f50c3[_0x291961(0x7e)](_0x2f10d5),_0x1f50c3[_0x291961(0x92)](this[_0x291961(0x8b)],_0x1d7f96['startRow'],_0x1d7f96[_0x291961(0x93)],_0x1d7f96['startColumn'],_0x1d7f96[_0x291961(0x83)]);}['getSizeUsagesAsA1'](_0x110f43){const _0x5d2cfd=_0x1f4866,_0xdfe408=this[_0x5d2cfd(0x85)](_0x110f43);return this[_0x5d2cfd(0x87)][_0x5d2cfd(0x9b)](_0x532976)[_0x5d2cfd(0x8c)](_0xdfe408);}}_0xa5ed6a[_0x1f4866(0x7f)](M);
|