@univerjs-pro/sheets-mcp 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251212-6c41730
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/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x939a9e=_0x3a18;(function(_0x470ffa,_0xebd7cb){const _0x3c924c=_0x3a18,_0x2162b7=_0x470ffa();while(!![]){try{const _0xaddcae=parseInt(_0x3c924c(0x181))/0x1+parseInt(_0x3c924c(0x176))/0x2+parseInt(_0x3c924c(0x178))/0x3*(parseInt(_0x3c924c(0x188))/0x4)+parseInt(_0x3c924c(0x179))/0x5+parseInt(_0x3c924c(0x182))/0x6+parseInt(_0x3c924c(0x191))/0x7*(parseInt(_0x3c924c(0x18f))/0x8)+-parseInt(_0x3c924c(0x17c))/0x9*(parseInt(_0x3c924c(0x174))/0xa);if(_0xaddcae===_0xebd7cb)break;else _0x2162b7['push'](_0x2162b7['shift']());}catch(_0x5ec364){_0x2162b7['push'](_0x2162b7['shift']());}}}(_0x3d89,0xde2ac));function _0x3d89(){const _0x156c21=['startRow','252244IfblMI','endRow','getRange','getFormulaUsagesAsA1','_worksheet','getMaxColumns','get','10722296DMLFHK','map','7oMxLnt','length','getCellRaw','getFormulaUsages','firstOccurrence','getAllDataValidationErrorAsync','20krLiEp','startColumn','853636ZoeGTE','moveFormulaRefOffset','33mGWRKX','3291860FhryTQ','getMaxRows','extend','14950107bxrkrP','filledRanges','getActiveWorkbook','push','formula','635562YNKxYc','2865192pGAcoM','getLintErrors','getAllFormulaUsages','_injector','getCellDataGrid'];_0x3d89=function(){return _0x156c21;};return _0x3d89();}import{FUniver as _0x1e7266}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x3831cb,FWorksheet as _0x56934c,FRange as _0x18575f}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x51293e,toA1 as _0xdfde88}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x4b7245}from'@univerjs/core';class p extends _0x1e7266{async[_0x939a9e(0x183)](){const _0x2c1749=_0x939a9e;return this[_0x2c1749(0x17e)]()[_0x2c1749(0x183)]();}}_0x1e7266[_0x939a9e(0x17b)](p);class O extends _0x3831cb{async['getLintErrors'](){const _0x36593a=_0x939a9e,_0x436dc8=this['getAllFormulaError'](),_0x70042c=await this[_0x36593a(0x173)]();return{'formulaErrors':_0x436dc8,'dataValidationErrors':_0x70042c};}}_0x3831cb['extend'](O);class U extends _0x56934c{async[_0x939a9e(0x194)](){const _0x263d1b=_0x939a9e,_0x29a5ec=this[_0x263d1b(0x185)][_0x263d1b(0x18e)](_0x51293e),_0xb63331=this[_0x263d1b(0x18a)](0x0,0x0,this[_0x263d1b(0x17a)]()+0x1,this['getMaxColumns']()+0x1)[_0x263d1b(0x186)]();return await _0x29a5ec[_0x263d1b(0x184)](_0xb63331);}async[_0x939a9e(0x18b)](){const _0x330b9c=_0x939a9e;return(await this['getFormulaUsages']())[_0x330b9c(0x190)](_0xdfde88);}}function _0x3a18(_0x17f7ef,_0x3b707b){_0x17f7ef=_0x17f7ef-0x173;const _0x3d89e5=_0x3d89();let _0x3a1816=_0x3d89e5[_0x17f7ef];return _0x3a1816;}_0x56934c[_0x939a9e(0x17b)](U);class k extends _0x18575f{async['getFormulaUsages'](){const _0x4c5aad=_0x939a9e,_0x4b64d1=this[_0x4c5aad(0x185)][_0x4c5aad(0x18e)](_0x51293e),_0x29f9fd=(({startRow:_0x5929c7,endRow:_0x48446a,startColumn:_0x1808a4,endColumn:_0x520604})=>{const _0x5756a2=_0x4c5aad,_0x38ce9d=[];for(let _0xfb19d9=_0x5929c7;_0xfb19d9<=_0x48446a;_0xfb19d9++){const _0x1cfb48=[];for(let _0x7910fa=_0x1808a4;_0x7910fa<=_0x520604;_0x7910fa++)_0x1cfb48[_0x5756a2(0x17f)](this[_0x5756a2(0x18c)][_0x5756a2(0x193)](_0xfb19d9,_0x7910fa));_0x38ce9d[_0x5756a2(0x17f)](_0x1cfb48);}return _0x38ce9d;})({'startRow':0x0,'endRow':this[_0x4c5aad(0x18c)][_0x4c5aad(0x17a)](),'startColumn':0x0,'endColumn':this[_0x4c5aad(0x18c)][_0x4c5aad(0x18d)]()}),_0x447d0f=await _0x4b64d1[_0x4c5aad(0x184)](_0x29f9fd),_0x1a1b24=this[_0x4c5aad(0x18a)](),_0xc2f3a3=[];for(let _0x2500d6=0x0;_0x2500d6<_0x447d0f['length'];_0x2500d6++){const _0x28e876=_0x447d0f[_0x2500d6],_0x2bc335=_0x28e876[_0x4c5aad(0x17d)],_0x30d683=[];for(let _0x27e4ba=0x0;_0x27e4ba<_0x2bc335[_0x4c5aad(0x192)];_0x27e4ba++){const _0x2b86e7=_0x2bc335[_0x27e4ba],_0x33214c=_0x4b7245(_0x2b86e7,_0x1a1b24);_0x33214c&&_0x30d683[_0x4c5aad(0x17f)](_0x33214c);}if(_0x30d683[_0x4c5aad(0x192)]>0x0){if(_0x28e876[_0x4c5aad(0x17d)]=_0x30d683,!(_0x28e876[_0x4c5aad(0x195)]['startRow']>=_0x1a1b24[_0x4c5aad(0x187)]&&_0x28e876[_0x4c5aad(0x195)][_0x4c5aad(0x187)]<=_0x1a1b24[_0x4c5aad(0x189)]&&_0x28e876[_0x4c5aad(0x195)][_0x4c5aad(0x175)]>=_0x1a1b24[_0x4c5aad(0x175)]&&_0x28e876[_0x4c5aad(0x195)]['startColumn']<=_0x1a1b24['endColumn'])){const _0x392473=_0x30d683[0x0],_0x1073ab=_0x392473[_0x4c5aad(0x187)]-_0x28e876['firstOccurrence'][_0x4c5aad(0x187)],_0x77390e=_0x392473[_0x4c5aad(0x175)]-_0x28e876[_0x4c5aad(0x195)][_0x4c5aad(0x175)];_0x28e876[_0x4c5aad(0x180)]=await _0x4b64d1[_0x4c5aad(0x177)](_0x28e876['formula'],_0x77390e,_0x1073ab),_0x28e876[_0x4c5aad(0x195)]={'startRow':_0x392473[_0x4c5aad(0x187)],'endRow':_0x392473[_0x4c5aad(0x187)],'startColumn':_0x392473['startColumn'],'endColumn':_0x392473[_0x4c5aad(0x175)]};}_0xc2f3a3[_0x4c5aad(0x17f)](_0x28e876);}}return _0xc2f3a3;}async[_0x939a9e(0x18b)](){const _0xc0ac25=_0x939a9e;return(await this[_0xc0ac25(0x194)]())['map'](_0xdfde88);}}_0x18575f[_0x939a9e(0x17b)](k);
|