@univerjs-pro/sheets-mcp 0.12.1 → 0.12.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 _0x5ef22f=_0x3dc8;function _0xd942(){const _0x14b606=['getRange','length','formula','getCellDataGrid','getFormulaUsages','201636JrYlGv','getLintErrors','_injector','8nYurkx','FUniver','_worksheet','FWorkbook','2675232Mreruz','getMaxColumns','filledRanges','getIntersectRange','getAllFormulaUsages','getMaxRows','364260EaLVXe','357301lCaAev','3358296edmfsr','86007swkszS','1525956aCrHsQ','toA1','get','FRange','moveFormulaRefOffset','map','FWorksheet','getAllDataValidationErrorAsync','push','getFormulaUsagesAsA1','16xEOjiY','startRow','extend'];_0xd942=function(){return _0x14b606;};return _0xd942();}(function(_0x267ab1,_0x744ba4){const _0x551a7e=_0x3dc8,_0x21bc11=_0x267ab1();while(!![]){try{const _0x442c19=parseInt(_0x551a7e(0x131))/0x1+parseInt(_0x551a7e(0x124))/0x2*(parseInt(_0x551a7e(0x121))/0x3)+-parseInt(_0x551a7e(0x132))/0x4+parseInt(_0x551a7e(0x12e))/0x5+parseInt(_0x551a7e(0x130))/0x6+-parseInt(_0x551a7e(0x12f))/0x7*(-parseInt(_0x551a7e(0x13c))/0x8)+-parseInt(_0x551a7e(0x128))/0x9;if(_0x442c19===_0x744ba4)break;else _0x21bc11['push'](_0x21bc11['shift']());}catch(_0x582d77){_0x21bc11['push'](_0x21bc11['shift']());}}}(_0xd942,0x64494));function _0x3dc8(_0x4a9382,_0x19a9fa){const _0xd942e9=_0xd942();return _0x3dc8=function(_0x3dc837,_0x2f49a8){_0x3dc837=_0x3dc837-0x121;let _0x1085d5=_0xd942e9[_0x3dc837];return _0x1085d5;},_0x3dc8(_0x4a9382,_0x19a9fa);}const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),c=require('@univerjs-pro/sheets-mcp'),w=require('@univerjs/core');class A extends d[_0x5ef22f(0x125)]{async[_0x5ef22f(0x122)](){const _0x5e9757=_0x5ef22f;return this['getActiveWorkbook']()[_0x5e9757(0x122)]();}}d[_0x5ef22f(0x125)][_0x5ef22f(0x13e)](A);class x extends o['FWorkbook']{async[_0x5ef22f(0x122)](){const _0x4d349b=_0x5ef22f,_0x5c6234=this['getAllFormulaError'](),_0x10acb4=await this[_0x4d349b(0x139)]();return{'formulaErrors':_0x5c6234,'dataValidationErrors':_0x10acb4};}}o[_0x5ef22f(0x127)][_0x5ef22f(0x13e)](x);class k extends o['FWorksheet']{async['getFormulaUsages'](){const _0x83ee45=_0x5ef22f,_0x424d35=this[_0x83ee45(0x123)][_0x83ee45(0x134)](c['IFormulaUsageAnalyzer']),_0x2f2404=this['getRange'](0x0,0x0,this['getMaxRows']()+0x1,this[_0x83ee45(0x129)]()+0x1)[_0x83ee45(0x142)]();return await _0x424d35['getAllFormulaUsages'](_0x2f2404);}async[_0x5ef22f(0x13b)](){const _0x709a07=_0x5ef22f;return(await this[_0x709a07(0x143)]())['map'](c[_0x709a07(0x133)]);}}o[_0x5ef22f(0x138)][_0x5ef22f(0x13e)](k);class U extends o[_0x5ef22f(0x135)]{async[_0x5ef22f(0x143)](){const _0x436408=_0x5ef22f,_0x2676d9=this[_0x436408(0x123)]['get'](c['IFormulaUsageAnalyzer']),_0x213184=(({startRow:_0x7294ec,endRow:_0x438b85,startColumn:_0x12708c,endColumn:_0x56bef5})=>{const _0x14a7a0=_0x436408,_0x440258=[];for(let _0x20d96e=_0x7294ec;_0x20d96e<=_0x438b85;_0x20d96e++){const _0xda53a=[];for(let _0x596c98=_0x12708c;_0x596c98<=_0x56bef5;_0x596c98++)_0xda53a[_0x14a7a0(0x13a)](this[_0x14a7a0(0x126)]['getCellRaw'](_0x20d96e,_0x596c98));_0x440258[_0x14a7a0(0x13a)](_0xda53a);}return _0x440258;})({'startRow':0x0,'endRow':this['_worksheet'][_0x436408(0x12d)](),'startColumn':0x0,'endColumn':this[_0x436408(0x126)][_0x436408(0x129)]()}),_0x41114e=await _0x2676d9[_0x436408(0x12c)](_0x213184),_0x379bb0=this[_0x436408(0x13f)](),_0xa11b22=[];for(let _0x530408=0x0;_0x530408<_0x41114e[_0x436408(0x140)];_0x530408++){const _0x13d46c=_0x41114e[_0x530408],_0x508f91=_0x13d46c[_0x436408(0x12a)],_0x2075c3=[];for(let _0x3401ac=0x0;_0x3401ac<_0x508f91['length'];_0x3401ac++){const _0x5c793d=_0x508f91[_0x3401ac],_0x52ec9b=w[_0x436408(0x12b)](_0x5c793d,_0x379bb0);_0x52ec9b&&_0x2075c3[_0x436408(0x13a)](_0x52ec9b);}if(_0x2075c3[_0x436408(0x140)]>0x0){_0x13d46c[_0x436408(0x12a)]=_0x2075c3;const _0xfdf9d8=_0x2075c3[0x0],_0x5b1dde=_0xfdf9d8[_0x436408(0x13d)]-_0x379bb0[_0x436408(0x13d)],_0x3f128a=_0xfdf9d8['startColumn']-_0x379bb0['startColumn'];_0x13d46c[_0x436408(0x141)]=await _0x2676d9[_0x436408(0x136)](_0x13d46c['formula'],_0x5b1dde,_0x3f128a),_0xa11b22['push'](_0x13d46c);}}return _0xa11b22;}async[_0x5ef22f(0x13b)](){const _0x4eb90b=_0x5ef22f;return(await this[_0x4eb90b(0x143)]())[_0x4eb90b(0x137)](c[_0x4eb90b(0x133)]);}}o[_0x5ef22f(0x135)][_0x5ef22f(0x13e)](U);
|