@univerjs-pro/sheets-mcp 0.15.1 → 0.15.2
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/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x48a295=_0x16ef;(function(_0x3b1650,_0x4001b9){const _0x244383=_0x16ef,_0x2ab493=_0x3b1650();while(!![]){try{const _0x8e5e7c=parseInt(_0x244383(0xd8))/0x1+-parseInt(_0x244383(0xe7))/0x2+-parseInt(_0x244383(0xdc))/0x3*(-parseInt(_0x244383(0x103))/0x4)+parseInt(_0x244383(0xe0))/0x5*(-parseInt(_0x244383(0xf0))/0x6)+parseInt(_0x244383(0xf5))/0x7*(parseInt(_0x244383(0xdf))/0x8)+parseInt(_0x244383(0xdd))/0x9+-parseInt(_0x244383(0xfd))/0xa;if(_0x8e5e7c===_0x4001b9)break;else _0x2ab493['push'](_0x2ab493['shift']());}catch(_0x274d14){_0x2ab493['push'](_0x2ab493['shift']());}}}(_0x3614,0x40900));function _0x16ef(_0x10d337,_0x3bce64){_0x10d337=_0x10d337-0xd0;const _0x36146b=_0x3614();let _0x16ef2f=_0x36146b[_0x10d337];return _0x16ef2f;}const U=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const f=require('@univerjs/sheets/facade'),g=require('@univerjs-pro/sheets-mcp'),m=require('@univerjs/core');class y extends U['FUniver']{async[_0x48a295(0xe5)](){const _0xfcf237=_0x48a295;return this['getActiveWorkbook']()[_0xfcf237(0xe5)]();}}U[_0x48a295(0xd9)][_0x48a295(0xf1)](y);class C extends f[_0x48a295(0xe9)]{async['getLintErrors'](){const _0x4a955e=_0x48a295,_0x3450f0=this['getAllFormulaError'](),_0x23179c=await this[_0x4a955e(0xd0)]();return{'formulaErrors':_0x3450f0,'dataValidationErrors':_0x23179c};}}f['FWorkbook'][_0x48a295(0xf1)](C);class z extends f['FWorksheet']{async[_0x48a295(0xd7)](){const _0x442756=_0x48a295,_0x18bdcb=this[_0x442756(0xec)]['get'](g['IFormulaUsageAnalyzer']),_0x10eb2b=this[_0x442756(0xe4)](0x0,0x0,this[_0x442756(0xe1)](),this['getMaxColumns']())[_0x442756(0xef)]();return await _0x18bdcb[_0x442756(0xd6)](_0x10eb2b);}async[_0x48a295(0xfc)](){return(await this['getFormulaUsages']())['map'](g['formulaToA1']);}['getStyleUsages'](_0x189333){const _0x4eeff0=_0x48a295,_0x44be68=this[_0x4eeff0(0xec)]['get'](g[_0x4eeff0(0xe8)]),_0x19ba3b=this['getRange'](0x0,0x0,this[_0x4eeff0(0xe1)](),this['getMaxColumns']())['getCellDataGrid']();return _0x44be68[_0x4eeff0(0xeb)](_0x189333),_0x44be68['getAllStyleUsages'](_0x19ba3b,this[_0x4eeff0(0xf4)],this[_0x4eeff0(0xf3)]);}[_0x48a295(0xf8)](_0x5a19f0){const _0x48b9e1=_0x48a295;return this[_0x48b9e1(0xe6)](_0x5a19f0)['map'](g[_0x48b9e1(0xfe)]);}[_0x48a295(0xd4)](_0x246c48){const _0x58af4f=_0x48a295,_0x30cf7b=this[_0x58af4f(0xec)][_0x58af4f(0xd5)](g[_0x58af4f(0xda)]);return _0x30cf7b[_0x58af4f(0xeb)](_0x246c48),_0x30cf7b['getAllSizeUsages'](this['_worksheet']);}[_0x48a295(0xde)](_0x42e45c){const _0x39797e=_0x48a295,_0xaf3ce0=this['_injector'][_0x39797e(0xd5)](g[_0x39797e(0xda)]);_0xaf3ce0[_0x39797e(0xeb)](_0x42e45c);const _0x536d8a=_0xaf3ce0[_0x39797e(0xe3)](this[_0x39797e(0xf3)]);return _0xaf3ce0[_0x39797e(0x102)](_0x536d8a);}}f[_0x48a295(0x101)][_0x48a295(0xf1)](z);class S extends f[_0x48a295(0xf6)]{async[_0x48a295(0xd7)](){const _0x2328e1=_0x48a295,_0x8fcbc8=this[_0x2328e1(0xec)][_0x2328e1(0xd5)](g[_0x2328e1(0xfb)]),_0x2b0809=(({startRow:_0x1146e5,endRow:_0x26ad1d,startColumn:_0x39895a,endColumn:_0x5d5897})=>{const _0x150d43=_0x2328e1,_0x18da49=[];for(let _0x2951c2=_0x1146e5;_0x2951c2<=_0x26ad1d;_0x2951c2++){const _0xedd054=[];for(let _0x451a3b=_0x39895a;_0x451a3b<=_0x5d5897;_0x451a3b++)_0xedd054[_0x150d43(0xd1)](this[_0x150d43(0xf3)][_0x150d43(0xe2)](_0x2951c2,_0x451a3b));_0x18da49[_0x150d43(0xd1)](_0xedd054);}return _0x18da49;})({'startRow':0x0,'endRow':this['_worksheet'][_0x2328e1(0xe1)](),'startColumn':0x0,'endColumn':this[_0x2328e1(0xf3)]['getMaxColumns']()}),_0x1a88c6=await _0x8fcbc8[_0x2328e1(0xd6)](_0x2b0809),_0x5f0d39=this[_0x2328e1(0xe4)](),_0x2cf9e9=[];for(let _0x341dee=0x0;_0x341dee<_0x1a88c6['length'];_0x341dee++){const _0x2a3d03=_0x1a88c6[_0x341dee],_0x1d77cb=_0x2a3d03['filledRanges'],_0x18ceb6=[];for(let _0x10ac59=0x0;_0x10ac59<_0x1d77cb[_0x2328e1(0xf7)];_0x10ac59++){const _0xf8abf8=_0x1d77cb[_0x10ac59],_0xff9947=m[_0x2328e1(0xfa)](_0xf8abf8,_0x5f0d39);_0xff9947&&_0x18ceb6[_0x2328e1(0xd1)](_0xff9947);}if(_0x18ceb6[_0x2328e1(0xf7)]>0x0){if(_0x2a3d03[_0x2328e1(0xee)]=_0x18ceb6,!(_0x2a3d03[_0x2328e1(0xed)]['startRow']>=_0x5f0d39[_0x2328e1(0x104)]&&_0x2a3d03[_0x2328e1(0xed)][_0x2328e1(0x104)]<=_0x5f0d39['endRow']&&_0x2a3d03['firstOccurrence']['startColumn']>=_0x5f0d39[_0x2328e1(0xd2)]&&_0x2a3d03[_0x2328e1(0xed)][_0x2328e1(0xd2)]<=_0x5f0d39[_0x2328e1(0xd3)])){const _0x164401=_0x18ceb6[0x0],_0x453105=_0x164401[_0x2328e1(0x104)]-_0x2a3d03['firstOccurrence'][_0x2328e1(0x104)],_0x8b42d7=_0x164401[_0x2328e1(0xd2)]-_0x2a3d03['firstOccurrence'][_0x2328e1(0xd2)];_0x2a3d03[_0x2328e1(0xf9)]=await _0x8fcbc8[_0x2328e1(0x100)](_0x2a3d03[_0x2328e1(0xf9)],_0x8b42d7,_0x453105),_0x2a3d03[_0x2328e1(0xed)]={'startRow':_0x164401['startRow'],'endRow':_0x164401['startRow'],'startColumn':_0x164401[_0x2328e1(0xd2)],'endColumn':_0x164401[_0x2328e1(0xd2)]};}_0x2cf9e9['push'](_0x2a3d03);}}return _0x2cf9e9;}async[_0x48a295(0xfc)](){const _0x11755e=_0x48a295;return(await this[_0x11755e(0xd7)]())['map'](g[_0x11755e(0xf2)]);}[_0x48a295(0xe6)](_0x22704f){const _0x40ba41=_0x48a295,_0x56f625=this[_0x40ba41(0xec)][_0x40ba41(0xd5)](g[_0x40ba41(0xe8)]),_0x7c3b85=(({startRow:_0x3cf391,endRow:_0x41c93f,startColumn:_0x3d97d0,endColumn:_0x14ead6})=>{const _0x3fe2a0=_0x40ba41,_0x1a88a5=[];for(let _0x37e111=_0x3cf391;_0x37e111<=_0x41c93f;_0x37e111++){const _0x3ee746=[];for(let _0xaec77c=_0x3d97d0;_0xaec77c<=_0x14ead6;_0xaec77c++)_0x3ee746[_0x3fe2a0(0xd1)](this[_0x3fe2a0(0xf3)][_0x3fe2a0(0xe2)](_0x37e111,_0xaec77c));_0x1a88a5[_0x3fe2a0(0xd1)](_0x3ee746);}return _0x1a88a5;})({'startRow':0x0,'endRow':this[_0x40ba41(0xf3)][_0x40ba41(0xe1)](),'startColumn':0x0,'endColumn':this[_0x40ba41(0xf3)]['getMaxColumns']()});_0x56f625[_0x40ba41(0xeb)](_0x22704f);const _0x42989b=_0x56f625[_0x40ba41(0xdb)](_0x7c3b85,this[_0x40ba41(0xf4)],this['_worksheet']),_0xdd3a3c=this[_0x40ba41(0xe4)](),_0x4a2688=[];for(let _0x9e8d9a=0x0;_0x9e8d9a<_0x42989b[_0x40ba41(0xf7)];_0x9e8d9a++){const _0x4b5cad=_0x42989b[_0x9e8d9a],_0xd334f9=_0x4b5cad[_0x40ba41(0xee)],_0x5016e9=[];for(let _0x586d83=0x0;_0x586d83<_0xd334f9[_0x40ba41(0xf7)];_0x586d83++){const _0x51eefd=_0xd334f9[_0x586d83],_0x3e31f4=m[_0x40ba41(0xfa)](_0x51eefd,_0xdd3a3c);_0x3e31f4&&_0x5016e9[_0x40ba41(0xd1)](_0x3e31f4);}_0x5016e9[_0x40ba41(0xf7)]>0x0&&(_0x4b5cad[_0x40ba41(0xee)]=_0x5016e9,_0x4a2688['push'](_0x4b5cad));}return _0x4a2688;}[_0x48a295(0xf8)](_0x197e1c){const _0x287e54=_0x48a295;return this['getStyleUsages'](_0x197e1c)[_0x287e54(0xea)](g[_0x287e54(0xfe)]);}['getSizeUsages'](_0x4e13de){const _0xbb330b=_0x48a295,_0x19d87c=this[_0xbb330b(0xec)][_0xbb330b(0xd5)](g[_0xbb330b(0xda)]),_0x5a05b3=this['getRange']();return _0x19d87c[_0xbb330b(0xeb)](_0x4e13de),_0x19d87c[_0xbb330b(0xe3)](this[_0xbb330b(0xf3)],_0x5a05b3[_0xbb330b(0x104)],_0x5a05b3[_0xbb330b(0xff)],_0x5a05b3['startColumn'],_0x5a05b3[_0xbb330b(0xd3)]);}[_0x48a295(0xde)](_0x300e03){const _0x568acb=_0x48a295,_0x5ad353=this[_0x568acb(0xd4)](_0x300e03);return this['_injector']['get'](g[_0x568acb(0xda)])[_0x568acb(0x102)](_0x5ad353);}}function _0x3614(){const _0x3d115a=['extend','formulaToA1','_worksheet','_workbook','178073NMGgYC','FRange','length','getStyleUsagesAsA1','formula','getIntersectRange','IFormulaUsageAnalyzer','getFormulaUsagesAsA1','6296120EAEcvL','styleToA1','endRow','moveFormulaRefOffset','FWorksheet','toA1','4RzuXjm','startRow','getAllDataValidationErrorAsync','push','startColumn','endColumn','getSizeUsages','get','getAllFormulaUsages','getFormulaUsages','398930iLlxaN','FUniver','ISizeUsageAnalyzer','getAllStyleUsages','1137309qiogvc','1639233DxNqwr','getSizeUsagesAsA1','152XgQkha','1835985VThTvZ','getMaxRows','getCellRaw','getAllSizeUsages','getRange','getLintErrors','getStyleUsages','364508oSpGMl','IStyleUsageAnalyzer','FWorkbook','map','updateConfig','_injector','firstOccurrence','filledRanges','getCellDataGrid','6URnvhO'];_0x3614=function(){return _0x3d115a;};return _0x3614();}f[_0x48a295(0xf6)][_0x48a295(0xf1)](S);
|