@univerjs-pro/sheets-sparkline 1.0.0-alpha.7 → 1.0.0-alpha.8

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4ab8a2=_0x24cb;(function(_0x152676,_0x2f2ff4){const _0x46ca57=_0x24cb,_0x2324f1=_0x152676();while(!![]){try{const _0x3a0ed5=-parseInt(_0x46ca57(0x9f))/0x1+parseInt(_0x46ca57(0x126))/0x2+-parseInt(_0x46ca57(0x154))/0x3+parseInt(_0x46ca57(0xd6))/0x4*(parseInt(_0x46ca57(0xb3))/0x5)+parseInt(_0x46ca57(0xba))/0x6*(parseInt(_0x46ca57(0xa8))/0x7)+-parseInt(_0x46ca57(0x111))/0x8+parseInt(_0x46ca57(0xfb))/0x9;if(_0x3a0ed5===_0x2f2ff4)break;else _0x2324f1['push'](_0x2324f1['shift']());}catch(_0x4c224c){_0x2324f1['push'](_0x2324f1['shift']());}}}(_0x3edd,0x5d08b));import{CellValueType as _0x96227d,ColorKit as _0x12dfde,CommandType as _0x288abc,DependentOn as _0x140d9e,Disposable as _0x1aa6ec,DisposableCollection as _0x59c04a,ICommandService as _0x2891f1,IConfigService as _0x3c3457,IResourceManagerService as _0x62c54a,IUndoRedoService as _0x2ca4d3,IUniverInstanceService as _0x4b08b3,Inject as _0x178f0f,Injector as _0x37b37d,ObjectMatrix as _0x268f53,Plugin as _0x266378,RANGE_TYPE as _0x2d5019,Range as _0x57b96b,Rectangle as _0x379596,Tools as _0x1f3830,UniverInstanceType as _0x518316,cellToRange as _0x3eb5df,generateRandomId as _0x5357aa,isValidRange as _0x2544ad,merge as _0x56403a,sequenceExecute as _0x34b13f,touchDependencies as _0x5ce50e}from'@univerjs/core';import{AddWorksheetMergeCommand as _0x33e599,ClearSelectionAllCommand as _0x34b201,CopySheetCommand as _0x35fcba,IExclusiveRangeService as _0x5bbdb0,InsertColMutation as _0x4f6c5d,InsertRowMutation as _0x43ee6c,MoveColsMutation as _0x334bf6,MoveRangeMutation as _0x4d303a,MoveRowsMutation as _0x47e42a,RefRangeService as _0x28308d,RemoveColCommand as _0x37c14e,RemoveColMutation as _0xaf42d4,RemoveRowCommand as _0x3420f6,RemoveRowMutation as _0x4988e7,RemoveSheetCommand as _0x3a14e5,ReorderRangeMutation as _0x26b9c6,SetColHiddenMutation as _0x32c155,SetColVisibleMutation as _0x922477,SetRangeValuesMutation as _0x135e9a,SetRowHiddenMutation as _0x1683d2,SetRowVisibleMutation as _0x12085f,SetWorksheetActivateCommand as _0x296db2,SheetInterceptorService as _0x1d7396,SheetsSelectionsService as _0x5f1b48,adjustRangeOnMutation as _0x1864b1,getSheetCommandTarget as _0x4d6c16}from'@univerjs/sheets';import{Subject as _0x16dc84}from'rxjs';import{UniverLicensePlugin as _0x2cfd74}from'@univerjs-pro/license';function P(_0x2d73a0,_0x575d7b){const _0x185a65=_0x24cb;let _0x135327=new _0x268f53(),_0x4bda9a=[],_0x41848a=_0x2d73a0[_0x185a65(0xdb)]>0x1,_0x3a160d=0x0,_0x565f54=0x0;for(let _0xbe0e2b of _0x2d73a0)_0x3a160d+=_0xbe0e2b[_0x185a65(0x13a)]-_0xbe0e2b['startRow']+0x1,_0x565f54+=_0xbe0e2b['endColumn']-_0xbe0e2b[_0x185a65(0xca)]+0x1;for(let _0x1b4941 of _0x575d7b)for(let _0x750f6a=_0x1b4941[_0x185a65(0x150)];_0x750f6a<=_0x1b4941['endRow'];_0x750f6a++)for(let _0x422ac2=_0x1b4941[_0x185a65(0xca)];_0x422ac2<=_0x1b4941[_0x185a65(0xce)];_0x422ac2++)_0x4bda9a[_0x185a65(0xed)]({'row':_0x750f6a,'column':_0x422ac2});if(_0x4bda9a[_0x185a65(0xdb)]===_0x3a160d)_0x41848a?_0x4bda9a[_0x185a65(0x119)]((_0x5e82fd,_0x195d81)=>{const _0x4122fb=_0x185a65;let _0x27e790=_0x2d73a0[_0x195d81],_0x4abc63={'startRow':_0x27e790[_0x4122fb(0x150)],'startColumn':_0x27e790[_0x4122fb(0xca)],'endRow':_0x27e790[_0x4122fb(0x150)],'endColumn':_0x27e790[_0x4122fb(0xce)]};_0x135327[_0x4122fb(0x10e)](_0x5e82fd[_0x4122fb(0xa3)],_0x5e82fd[_0x4122fb(0xaa)],_0x4abc63);}):_0x4bda9a[_0x185a65(0x119)]((_0x8dee11,_0x166e58)=>{const _0x6992a5=_0x185a65;let _0x679ae7=_0x2d73a0[0x0],_0x197cf8={'startRow':_0x679ae7[_0x6992a5(0x150)]+_0x166e58,'startColumn':_0x679ae7[_0x6992a5(0xca)],'endRow':_0x679ae7[_0x6992a5(0x150)]+_0x166e58,'endColumn':_0x679ae7[_0x6992a5(0xce)]};_0x135327['setValue'](_0x8dee11[_0x6992a5(0xa3)],_0x8dee11[_0x6992a5(0xaa)],_0x197cf8);});else{if(_0x4bda9a[_0x185a65(0xdb)]===_0x565f54)_0x41848a?_0x4bda9a['forEach']((_0x3760f2,_0x1e077a)=>{const _0x3e60a6=_0x185a65;let _0x44aa18=_0x2d73a0[_0x1e077a],_0x12ab01={'startRow':_0x44aa18['startRow'],'startColumn':_0x44aa18['startColumn'],'endRow':_0x44aa18['endRow'],'endColumn':_0x44aa18[_0x3e60a6(0xca)]};_0x135327['setValue'](_0x3760f2[_0x3e60a6(0xa3)],_0x3760f2[_0x3e60a6(0xaa)],_0x12ab01);}):_0x4bda9a[_0x185a65(0x119)]((_0x43fdd1,_0x587e90)=>{const _0x5566d4=_0x185a65;let _0x5e56f1=_0x2d73a0[0x0],_0x116a7b={'startRow':_0x5e56f1[_0x5566d4(0x150)],'startColumn':_0x5e56f1[_0x5566d4(0xca)]+_0x587e90,'endRow':_0x5e56f1[_0x5566d4(0x13a)],'endColumn':_0x5e56f1[_0x5566d4(0xca)]+_0x587e90};_0x135327[_0x5566d4(0x10e)](_0x43fdd1[_0x5566d4(0xa3)],_0x43fdd1['column'],_0x116a7b);});else{if(_0x4bda9a[_0x185a65(0xdb)]===_0x2d73a0[_0x185a65(0xdb)])_0x2d73a0[_0x185a65(0x12e)](_0xcef51e=>!(_0xcef51e[_0x185a65(0x150)]!==_0xcef51e['endRow']&&_0xcef51e[_0x185a65(0xca)]!==_0xcef51e['endColumn']))&&_0x4bda9a['forEach']((_0x2eeac6,_0x1bb2ef)=>{const _0x5bbc20=_0x185a65;let _0x3787df=_0x2d73a0[_0x1bb2ef];_0x135327['setValue'](_0x2eeac6[_0x5bbc20(0xa3)],_0x2eeac6['column'],_0x3787df);});else throw Error(_0x185a65(0x128));}}return _0x135327;}const F='SHEET_SPARKLINE_PLUGIN',I={'standard':[_0x4ab8a2(0xae),_0x4ab8a2(0xf7)],'specialty':[_0x4ab8a2(0xb0),_0x4ab8a2(0x115)],'distinctive':['rgb(124,66,147)',_0x4ab8a2(0x103)],'soft':[_0x4ab8a2(0x11c),_0x4ab8a2(0xfa)],'fresh':['rgb(46,187,122)',_0x4ab8a2(0xe3)]},be=[_0x4ab8a2(0xbe),_0x4ab8a2(0xf0),_0x4ab8a2(0x11e),_0x4ab8a2(0x14a),_0x4ab8a2(0xff),_0x4ab8a2(0x100)];function _0x3edd(){const _0x6a6e02=['_initRegisterCommand','setAlpha','getActiveSheet','values','onCommandExecuted','STANDARD','sparklines','_initMergeWithSparkline','_getRefRangeMutationsByDeleteCols','setValue','keys','defineProperty','5633128cPOSFi','_injector','hasValue','_commandService','rgb(30,177,189)','add','@univerjs-pro/sheets-sparkline','foreach','forEach','_exclusiveRangeService','result','rgb(80,102,248)','sheet.command.set-sparkline','lastPoint','_sheetSelectionService','extremumMax','call','_initHideRowColWithSparkline','constructor','sheet.mutation.add-sparkline','range','266874VCKxQh','specialty','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','BAR_CHART','SPACING','zero_value','_onRefRangeChange','params','every','realDeleteValue','SELF_EXTREMUM','getMatrix','getUnitId','registerPluginResource','groupId','_initDataChangeListener','getSizeOf','u-connect','ranges','deleteUnit','endRow','moveRows','containHiddenCells','deepClone','disposableCollection','_refRangeService','actualColumn','intersects','clone','_ensureConfigMap','fresh','exclusiveRangesChange$','asObservable','unitId','PROFIT_AND_LOSS_CHART','string','lowPoint','default','BOOLEAN','getValue','removeSparkline','SOFT','startRow','CUSTOM_EXTREMUM','_initSheetChange','getOwnPropertyDescriptor','2146899LTihII','contains','_initClearWithSparkline','min','_initDependencies','GROUP_EXTREMUM','_sheetInterceptorService','pluginName','_sparklineModel','_initExclusiveRangeChange','sheet.command.add-sparkline','config','NORMAL','delete','refRangeHandle','moveColumns','set','number','version','forValue','symbol','setSparkline','connect_with_line','get','67166IhFWKI','DISTINCTIVE','from','has','row','getCurrentUnitOfType','addSparkline','parse','getSubUnitSparkline','7uunGBn','_univerInstanceService','column','_initCorrectRangeWithSparkline','UNIVER_SHEET','object','rgb(54,78,244)','toJSON','rgb(49,106,246)','max','FORCE_STRING','3069205ZVlhDX','_ensureAnchorMatrix','ZERO_VALUE','subscribe','matrix','value','getSparklineById','1124562Byscww','LINE_CHART','getCurrentSelections','entries','highPoint','getSheetId','pushUndoRedo','MUTATION','standard','updateSparklineExtraNum','removeRows','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','u-spacing','fromJSON','emptyShowAs','registerRefRange','startColumn','_updateConfig$','map','actualRow','endColumn','seriesColor','NUMBER','getCellRaw','reBuildAnchorCache','_config','_configService','_sparklineAnchorMap','4QGisnZ','subUnitId','assign','function','packageName','length','size','_resourceManagerService','interceptCommand','COMMAND','removePartSparkline','_getRefRangeMutationsByDeleteRows','STRING','rgb(248,190,21)','sparklineAnchorMap','decorate','clearSparklineCache','registerCommand','sparklineModel','FRESH','1.0.0-alpha.7','toRgbString','remove','push','iterator','spacing','firstPoint','stringify','getSparklineCache','disposeWithMe','updateConfig$','getCell','sheet.mutation.remove-sparkline','rgb(236,100,169)','removeColumns','getSparkline','rgb(244,104,249)','8399718XwCwDu','sheets-sparkline.config','extremumMin','_sparklineDataSourceModel','negativePoint','markersPoint','PIE_CHART','type','rgb(252,117,60)','next'];_0x3edd=function(){return _0x6a6e02;};return _0x3edd();}let xe=function(_0xe65005){const _0x55c643=_0x4ab8a2;return _0xe65005[_0x55c643(0x10a)]='standard',_0xe65005['SPECIALTY']=_0x55c643(0x127),_0xe65005[_0x55c643(0xa0)]='distinctive',_0xe65005[_0x55c643(0x14f)]='soft',_0xe65005[_0x55c643(0xe9)]=_0x55c643(0x144),_0xe65005['CUSTOM']='custom',_0xe65005;}({}),Se=function(_0x32baca){const _0x246952=_0x4ab8a2;return _0x32baca[_0x32baca[_0x246952(0xbb)]=0x1]=_0x246952(0xbb),_0x32baca[_0x32baca[_0x246952(0x129)]=0x2]=_0x246952(0x129),_0x32baca[_0x32baca[_0x246952(0x148)]=0x3]=_0x246952(0x148),_0x32baca[_0x32baca[_0x246952(0x101)]=0x4]=_0x246952(0x101),_0x32baca;}({}),Ce=function(_0x56b85e){const _0x5df286=_0x4ab8a2;return _0x56b85e[_0x5df286(0x12a)]=_0x5df286(0xef),_0x56b85e[_0x5df286(0xb5)]=_0x5df286(0x12b),_0x56b85e['CONNECT_WITH_LINE']=_0x5df286(0x9d),_0x56b85e;}({}),we=function(_0x2818b9){const _0x2377f0=_0x4ab8a2;return _0x2818b9[_0x2818b9[_0x2377f0(0x130)]=0x1]=_0x2377f0(0x130),_0x2818b9[_0x2818b9[_0x2377f0(0x8c)]=0x2]=_0x2377f0(0x8c),_0x2818b9[_0x2818b9['CUSTOM_EXTREMUM']=0x3]=_0x2377f0(0x151),_0x2818b9;}({});function L(_0x3c329a){'@babel/helpers - typeof';const _0x5ec27e=_0x4ab8a2;return L=typeof Symbol==_0x5ec27e(0xd9)&&typeof Symbol[_0x5ec27e(0xee)]==_0x5ec27e(0x9b)?function(_0x5c9a0d){return typeof _0x5c9a0d;}:function(_0x315552){const _0x5e3363=_0x5ec27e;return _0x315552&&typeof Symbol==_0x5e3363(0xd9)&&_0x315552[_0x5e3363(0x123)]===Symbol&&_0x315552!==Symbol['prototype']?_0x5e3363(0x9b):typeof _0x315552;},L(_0x3c329a);}function Te(_0x4dd65b,_0x407aaa){const _0x5a3cd7=_0x4ab8a2;if(L(_0x4dd65b)!=_0x5a3cd7(0xad)||!_0x4dd65b)return _0x4dd65b;var _0x523a1f=_0x4dd65b[Symbol['toPrimitive']];if(_0x523a1f!==void 0x0){var _0x3f12ec=_0x523a1f[_0x5a3cd7(0x121)](_0x4dd65b,_0x407aaa||_0x5a3cd7(0x14b));if(L(_0x3f12ec)!='object')return _0x3f12ec;throw TypeError(_0x5a3cd7(0xc5));}return(_0x407aaa===_0x5a3cd7(0x149)?String:Number)(_0x4dd65b);}function Ee(_0x3443e9){const _0x4cca1f=_0x4ab8a2;var _0x492933=Te(_0x3443e9,_0x4cca1f(0x149));return L(_0x492933)==_0x4cca1f(0x9b)?_0x492933:_0x492933+'';}function R(_0x576c51,_0x737ba2,_0x520fd1){const _0x39f009=_0x4ab8a2;return(_0x737ba2=Ee(_0x737ba2))in _0x576c51?Object[_0x39f009(0x110)](_0x576c51,_0x737ba2,{'value':_0x520fd1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x576c51[_0x737ba2]=_0x520fd1,_0x576c51;}function z(_0x38ab23,_0x4fc670){return function(_0x21c51d,_0x1017ca){_0x4fc670(_0x21c51d,_0x1017ca,_0x38ab23);};}function B(_0x4cc869,_0x355633,_0xcf3d03,_0x5081d5){const _0x28d47c=_0x4ab8a2;var _0x49fbb0=arguments[_0x28d47c(0xdb)],_0x26dca3=_0x49fbb0<0x3?_0x355633:_0x5081d5===null?_0x5081d5=Object[_0x28d47c(0x153)](_0x355633,_0xcf3d03):_0x5081d5,_0x4d3823;if(typeof Reflect==_0x28d47c(0xad)&&typeof Reflect[_0x28d47c(0xe5)]==_0x28d47c(0xd9))_0x26dca3=Reflect[_0x28d47c(0xe5)](_0x4cc869,_0x355633,_0xcf3d03,_0x5081d5);else{for(var _0x59d8ef=_0x4cc869[_0x28d47c(0xdb)]-0x1;_0x59d8ef>=0x0;_0x59d8ef--)(_0x4d3823=_0x4cc869[_0x59d8ef])&&(_0x26dca3=(_0x49fbb0<0x3?_0x4d3823(_0x26dca3):_0x49fbb0>0x3?_0x4d3823(_0x355633,_0xcf3d03,_0x26dca3):_0x4d3823(_0x355633,_0xcf3d03))||_0x26dca3);}return _0x49fbb0>0x3&&_0x26dca3&&Object[_0x28d47c(0x110)](_0x355633,_0xcf3d03,_0x26dca3),_0x26dca3;}function _0x24cb(_0x27d51e,_0x29c146){_0x27d51e=_0x27d51e-0x8a;const _0x3eddc5=_0x3edd();let _0x24cb65=_0x3eddc5[_0x27d51e];return _0x24cb65;}let V=class extends _0x1aa6ec{constructor(_0x2226c6){const _0xc48d44=_0x4ab8a2;super(),this['_univerInstanceService']=_0x2226c6,R(this,'_sparklineModel',new Map()),R(this,_0xc48d44(0xd5),new Map()),R(this,_0xc48d44(0xcb),new _0x16dc84()),R(this,_0xc48d44(0xf4),this['_updateConfig$'][_0xc48d44(0x146)]());}[_0x4ab8a2(0x143)](_0x597b75,_0x4eb9fb){const _0x3a46dd=_0x4ab8a2;let _0x487bf4=this[_0x3a46dd(0x8f)][_0x3a46dd(0x9e)](_0x597b75);_0x487bf4||(_0x487bf4=new Map(),this[_0x3a46dd(0x8f)][_0x3a46dd(0x97)](_0x597b75,_0x487bf4));let _0x1672b3=_0x487bf4[_0x3a46dd(0x9e)](_0x4eb9fb);return _0x1672b3||(_0x1672b3=new Map(),_0x487bf4[_0x3a46dd(0x97)](_0x4eb9fb,_0x1672b3)),_0x1672b3;}['_ensureAnchorMatrix'](_0x41bdc8,_0x17521e){const _0x286cad=_0x4ab8a2;let _0x263256=this['_sparklineAnchorMap'][_0x286cad(0x9e)](_0x41bdc8);_0x263256||(_0x263256=new Map(),this[_0x286cad(0xd5)]['set'](_0x41bdc8,_0x263256));let _0x30ad6f=_0x263256['get'](_0x17521e);return _0x30ad6f||(_0x30ad6f={'matrix':new _0x268f53(),'extra':{}},_0x263256[_0x286cad(0x97)](_0x17521e,_0x30ad6f)),_0x30ad6f;}[_0x4ab8a2(0xc3)](_0x2f4dd1,_0x5ee6bf,_0x3988f6,_0x54b3bb=_0x4ab8a2(0x97)){const _0x1f5a1a=_0x4ab8a2;var _0x50f3bf,_0x381e0d,_0x589e49,_0x2c17a6,_0x4c8fec,_0x39f421,_0xfd3e08,_0x11d384;let _0xab1831=(_0x50f3bf=this[_0x1f5a1a(0x8f)]['get'](_0x2f4dd1))==null||(_0x50f3bf=_0x50f3bf[_0x1f5a1a(0x9e)](_0x5ee6bf))==null?void 0x0:_0x50f3bf[_0x1f5a1a(0x9e)](_0x3988f6);if(!_0xab1831)return;let _0x45716e=_0x4d6c16(this['_univerInstanceService'],{'unitId':_0x2f4dd1,'subUnitId':_0x5ee6bf});if(!_0x45716e)return;let {extra:_0x5b24d8,matrix:_0x58a684}=this[_0x1f5a1a(0xb4)](_0x2f4dd1,_0x5ee6bf),{worksheet:_0x71f31b}=_0x45716e,_0x5e594b=-(0x2**0x35-0x1),_0x5c2224=0x2**0x35-0x1,_0x6dc96b=(_0x381e0d=_0xab1831[_0x1f5a1a(0x92)][_0x1f5a1a(0x13c)])==null?!0x1:_0x381e0d;_0xab1831[_0x1f5a1a(0x10b)]['forValue']((_0x110dc6,_0x103e11,_0x5852c6)=>{const _0x4f41f=_0x1f5a1a;let _0x25fb6a=_0x5852c6,_0x10fc68=-(0x2**0x35-0x1),_0x41399f=0x2**0x35-0x1,_0x20905f=0x0,_0x2fc5ad=0x0,_0x3db29c=[];if(!_0x2544ad(_0x25fb6a))_0x58a684[_0x4f41f(0x10e)](_0x110dc6,_0x103e11,{'groupId':_0x3988f6,'data':[],'max':_0x10fc68,'min':_0x41399f,'highIndex':_0x20905f,'lowIndex':_0x2fc5ad,'negativeIndexes':_0x3db29c});else{let _0x1ea2b0=[];for(let _0x24ae77=_0x25fb6a[_0x4f41f(0x150)];_0x24ae77<=_0x25fb6a[_0x4f41f(0x13a)];_0x24ae77++){for(let _0x5d6147=_0x25fb6a[_0x4f41f(0xca)];_0x5d6147<=_0x25fb6a[_0x4f41f(0xce)];_0x5d6147++){var _0x8ce680;let _0x4f3ab8=_0x71f31b['getRowVisible'](_0x24ae77),_0x1fcb51=_0x71f31b['getColVisible'](_0x5d6147);if(!_0x6dc96b&&(!_0x4f3ab8||!_0x1fcb51))continue;let _0x5e0705=0x0,_0x388259=((_0x8ce680=_0x71f31b['getCellRaw'](_0x24ae77,_0x5d6147))==null?void 0x0:_0x8ce680['v'])===void 0x0?_0x71f31b[_0x4f41f(0xf5)](_0x24ae77,_0x5d6147):_0x71f31b[_0x4f41f(0xd1)](_0x24ae77,_0x5d6147);if(!_0x388259||_0x388259['v']===void 0x0||_0x388259['v']===null){var _0x1e88b0;let _0x55d581=(_0x1e88b0=_0xab1831['config'][_0x4f41f(0xc8)])==null?_0x4f41f(0xef):_0x1e88b0;_0x55d581===_0x4f41f(0x12b)?_0x5e0705=0x0:_0x55d581===_0x4f41f(0xef)?_0x5e0705=_0x4f41f(0xc6):_0x55d581===_0x4f41f(0x9d)&&(_0x5e0705=_0x4f41f(0x137));}else{if(_0x388259['t']===_0x96227d[_0x4f41f(0xe2)]||_0x388259['t']===_0x96227d[_0x4f41f(0xb2)]){var _0x2daace;let _0xeb7ab6=(_0x2daace=_0xab1831[_0x4f41f(0x92)]['nonNumShowAs'])==null?_0x4f41f(0xef):_0x2daace;_0xeb7ab6==='zero_value'?_0x5e0705=0x0:_0xeb7ab6==='spacing'?_0x5e0705='u-spacing':_0xeb7ab6===_0x4f41f(0x9d)&&(_0x5e0705=_0x4f41f(0x137));}else _0x5e0705=_0x388259['t']===_0x96227d[_0x4f41f(0x14c)]?+!!_0x388259['v']:_0x388259['t']===_0x96227d[_0x4f41f(0xd0)]?Number(_0x388259['v']):_0x388259['v'];}if(_0x1ea2b0[_0x4f41f(0xed)](_0x5e0705),typeof _0x5e0705=='number'){_0x10fc68=Math[_0x4f41f(0xb1)](_0x10fc68,_0x5e0705),_0x5e594b=Math['max'](_0x5e594b,_0x5e0705),_0x5c2224=Math[_0x4f41f(0x8a)](_0x5c2224,_0x5e0705),_0x41399f=Math[_0x4f41f(0x8a)](_0x41399f,_0x5e0705);let _0x4ccfac=typeof _0x1ea2b0[_0x20905f]=='number'?Number(_0x1ea2b0[_0x20905f]):-(0x2**0x35-0x1);_0x5e0705>_0x4ccfac&&(_0x20905f=_0x1ea2b0['length']-0x1);let _0x3af7be=typeof _0x1ea2b0[_0x2fc5ad]==_0x4f41f(0x98)?Number(_0x1ea2b0[_0x2fc5ad]):0x2**0x35-0x1;_0x5e0705<_0x3af7be&&(_0x2fc5ad=_0x1ea2b0[_0x4f41f(0xdb)]-0x1),_0x5e0705<0x0&&_0x3db29c[_0x4f41f(0xed)](_0x1ea2b0[_0x4f41f(0xdb)]-0x1);}}_0x58a684[_0x4f41f(0x10e)](_0x110dc6,_0x103e11,{'groupId':_0x3988f6,'data':_0x1ea2b0,'max':_0x10fc68,'min':_0x41399f,'highIndex':_0x20905f,'lowIndex':_0x2fc5ad,'negativeIndexes':_0x3db29c});}}});let _0x3c019d=_0x5e594b;if(((_0x589e49=_0xab1831[_0x1f5a1a(0x92)][_0x1f5a1a(0x120)])==null?void 0x0:_0x589e49[_0x1f5a1a(0x102)])===0x3){var _0x4c7185,_0xad788c;_0x3c019d=(_0x4c7185=(_0xad788c=_0xab1831[_0x1f5a1a(0x92)][_0x1f5a1a(0x120)])==null?void 0x0:_0xad788c[_0x1f5a1a(0xb8)])==null?_0x5e594b:_0x4c7185;}let _0x1f8aef=_0x5c2224;if(((_0x2c17a6=_0xab1831[_0x1f5a1a(0x92)][_0x1f5a1a(0xfd)])==null?void 0x0:_0x2c17a6[_0x1f5a1a(0x102)])===0x3){var _0x3a5924,_0x2fd64e;_0x1f8aef=(_0x3a5924=(_0x2fd64e=_0xab1831[_0x1f5a1a(0x92)]['extremumMin'])==null?void 0x0:_0x2fd64e['value'])==null?_0x5c2224:_0x3a5924;}let _0x267c2b=(_0x4c8fec=_0xab1831[_0x1f5a1a(0x92)]['themeType'])==null?'standard':_0x4c8fec,_0x3d0b6e=new _0x12dfde((_0x39f421=(_0xfd3e08=_0xab1831[_0x1f5a1a(0x92)][_0x1f5a1a(0xcf)])==null?(_0x11d384=I[_0x267c2b])==null?void 0x0:_0x11d384[0x0]:_0xfd3e08)==null?I[_0x1f5a1a(0xc2)][0x0]:_0x39f421),_0x4b6d4c=_0x3d0b6e[_0x1f5a1a(0x106)](0.2)[_0x1f5a1a(0xeb)](),_0x41948f=_0x3d0b6e[_0x1f5a1a(0x106)](0.05)['toRgbString']();_0x5b24d8[_0x3988f6]={'groupMax':_0x5e594b,'groupMin':_0x5c2224,'showMax':_0x3c019d,'showMin':_0x1f8aef,'startGradient':_0x4b6d4c,'endGradient':_0x41948f},this[_0x1f5a1a(0xcb)][_0x1f5a1a(0x104)]({'unitId':_0x2f4dd1,'subUnitId':_0x5ee6bf,'groupId':_0x3988f6,'config':_0xab1831,'type':_0x54b3bb});}[_0x4ab8a2(0xa5)](_0x561df8,_0x53330a,_0x87e859,_0x42836a){const _0x503a7d=_0x4ab8a2;this[_0x503a7d(0x143)](_0x561df8,_0x53330a)['set'](_0x87e859,_0x42836a),this[_0x503a7d(0xc3)](_0x561df8,_0x53330a,_0x87e859,_0x503a7d(0x116));}[_0x4ab8a2(0x9c)](_0x13dc42,_0xd5fce8,_0x4d7eb5,_0x20e8e9){const _0x530add=_0x4ab8a2;var _0x3f4981;let _0x34f8c4=(_0x3f4981=this['_sparklineModel'][_0x530add(0x9e)](_0x13dc42))==null?void 0x0:_0x3f4981[_0x530add(0x9e)](_0xd5fce8);_0x4d7eb5['forEach'](_0x58eaa4=>{const _0x24487e=_0x530add;_0x34f8c4!=null&&_0x34f8c4[_0x24487e(0xa2)](_0x58eaa4)&&(_0x34f8c4[_0x24487e(0x97)](_0x58eaa4,_0x20e8e9),this[_0x24487e(0xc3)](_0x13dc42,_0xd5fce8,_0x58eaa4));});}[_0x4ab8a2(0x14e)](_0xb2b595,_0x566745,_0xbf3141){const _0x3613a9=_0x4ab8a2;let _0x3704da=this[_0x3613a9(0x8f)][_0x3613a9(0x9e)](_0xb2b595);if(_0x3704da){let _0x3bb843=_0x3704da['get'](_0x566745);if(_0x3bb843){var _0x5209b3,_0x490c4d;_0x3bb843['delete'](_0xbf3141);let _0x12604d=(_0x5209b3=this[_0x3613a9(0xd5)][_0x3613a9(0x9e)](_0xb2b595))==null?void 0x0:_0x5209b3[_0x3613a9(0x9e)](_0x566745);_0x12604d==null||(_0x490c4d=_0x12604d[_0x3613a9(0xb7)])==null||_0x490c4d[_0x3613a9(0x9a)]((_0x2da07e,_0x119306,_0x1bb330)=>{const _0x7feab9=_0x3613a9;(_0x1bb330==null?void 0x0:_0x1bb330[_0x7feab9(0x134)])===_0xbf3141&&(_0x12604d==null||_0x12604d[_0x7feab9(0xb7)][_0x7feab9(0x12f)](_0x2da07e,_0x119306));}),this[_0x3613a9(0xcb)][_0x3613a9(0x104)]({'unitId':_0xb2b595,'subUnitId':_0x566745,'groupId':_0xbf3141,'type':'remove'}),_0x3bb843[_0x3613a9(0xdc)]===0x0&&_0x3704da[_0x3613a9(0x94)](_0x566745);}}}['removePartSparkline'](_0x1214f8,_0x21e156,_0x3d1b14,_0x97da67){const _0x5a8b48=_0x4ab8a2;var _0x356989;let _0x17ba0c=(_0x356989=this[_0x5a8b48(0xd5)][_0x5a8b48(0x9e)](_0x1214f8))==null?void 0x0:_0x356989[_0x5a8b48(0x9e)](_0x21e156),_0xac9b36=_0x17ba0c==null?void 0x0:_0x17ba0c[_0x5a8b48(0xb7)][_0x5a8b48(0x14d)](_0x3d1b14,_0x97da67);if(_0xac9b36){var _0x146478,_0x58928f,_0x5ded33;let {groupId:_0xddf8da}=_0xac9b36,_0x285f49=(_0x146478=this[_0x5a8b48(0x8f)][_0x5a8b48(0x9e)](_0x1214f8))==null?void 0x0:_0x146478[_0x5a8b48(0x9e)](_0x21e156);_0x285f49==null||(_0x58928f=_0x285f49[_0x5a8b48(0x9e)](_0xddf8da))==null||_0x58928f[_0x5a8b48(0x10b)][_0x5a8b48(0x12f)](_0x3d1b14,_0x97da67),!(_0x285f49==null||(_0x5ded33=_0x285f49['get'](_0xddf8da))==null)&&_0x5ded33[_0x5a8b48(0x10b)][_0x5a8b48(0x113)]()||_0x285f49==null||_0x285f49[_0x5a8b48(0x94)](_0xddf8da),_0x17ba0c==null||_0x17ba0c['matrix'][_0x5a8b48(0x12f)](_0x3d1b14,_0x97da67),this[_0x5a8b48(0xcb)][_0x5a8b48(0x104)]({'unitId':_0x1214f8,'subUnitId':_0x21e156,'groupId':_0xddf8da,'type':_0x5a8b48(0xec)});}}[_0x4ab8a2(0xe6)](_0x1debdc,_0x3e5221,_0x27bb47){const _0x4de67c=_0x4ab8a2;var _0x425617,_0x3f21ba;let _0x1b1b2b=(_0x425617=this[_0x4de67c(0x8f)][_0x4de67c(0x9e)](_0x1debdc))==null||(_0x425617=_0x425617[_0x4de67c(0x9e)](_0x3e5221))==null||(_0x425617=_0x425617['get'](_0x27bb47))==null?void 0x0:_0x425617[_0x4de67c(0x10b)],_0x3a039f=(_0x3f21ba=this['_sparklineAnchorMap']['get'](_0x1debdc))==null?void 0x0:_0x3f21ba['get'](_0x3e5221);if(_0x1b1b2b&&_0x3a039f){let {matrix:_0x27b3b7,extra:_0x2bc1a8}=_0x3a039f;_0x1b1b2b[_0x4de67c(0x9a)]((_0x1f391d,_0x2fcfe6,_0x22434e)=>{const _0x507d1b=_0x4de67c;_0x27b3b7[_0x507d1b(0x12f)](_0x1f391d,_0x2fcfe6);}),delete _0x2bc1a8[_0x27bb47];}}[_0x4ab8a2(0xa7)](_0x53db8d,_0xd8b373){const _0x56747a=_0x4ab8a2;var _0x16a719;return(_0x16a719=this[_0x56747a(0x8f)][_0x56747a(0x9e)](_0x53db8d))==null?void 0x0:_0x16a719[_0x56747a(0x9e)](_0xd8b373);}[_0x4ab8a2(0xb9)](_0x22cf22,_0x52db55,_0x1af2ce){const _0x56cd5d=_0x4ab8a2;var _0xa253ea;return(_0xa253ea=this[_0x56cd5d(0x8f)][_0x56cd5d(0x9e)](_0x22cf22))==null||(_0xa253ea=_0xa253ea[_0x56cd5d(0x9e)](_0x52db55))==null?void 0x0:_0xa253ea['get'](_0x1af2ce);}[_0x4ab8a2(0xf9)](_0x43ad1f,_0x5ce80f,_0x4bfb43,_0x4a6d76){const _0xdf7b72=_0x4ab8a2;var _0x34bd79;return(_0x34bd79=this[_0xdf7b72(0xd5)]['get'](_0x43ad1f))==null||(_0x34bd79=_0x34bd79[_0xdf7b72(0x9e)](_0x5ce80f))==null||(_0x34bd79=_0x34bd79[_0xdf7b72(0xb7)]['getValue'](_0x4bfb43,_0x4a6d76))==null?void 0x0:_0x34bd79[_0xdf7b72(0x134)];}['reBuildAnchorCache'](_0x1a24ca,_0x64ddb4){const _0x458938=_0x4ab8a2;var _0x3a5c71;let _0x392f9f=this[_0x458938(0xb4)](_0x1a24ca,_0x64ddb4);_0x392f9f[_0x458938(0xb7)]['forValue']((_0x2f6907,_0x438909)=>{const _0x2c8ebc=_0x458938;_0x392f9f[_0x2c8ebc(0xb7)][_0x2c8ebc(0x12f)](_0x2f6907,_0x438909);});let _0x14306a=(_0x3a5c71=this[_0x458938(0x8f)]['get'](_0x1a24ca))==null?void 0x0:_0x3a5c71[_0x458938(0x9e)](_0x64ddb4);if(_0x14306a){for(let [_0x42c97b]of _0x14306a)this[_0x458938(0xc3)](_0x1a24ca,_0x64ddb4,_0x42c97b);}}[_0x4ab8a2(0xf2)](){const _0x1cc262=_0x4ab8a2;return{'sparklineModel':this[_0x1cc262(0x8f)],'sparklineAnchorMap':this[_0x1cc262(0xd5)]};}[_0x4ab8a2(0xaf)](_0x541bc9){const _0x57e794=_0x4ab8a2;let _0x2bf07b={};if(this['_sparklineModel'][_0x57e794(0xa2)](_0x541bc9)){_0x2bf07b[_0x541bc9]={};let _0x4ab889=this[_0x57e794(0x8f)][_0x57e794(0x9e)](_0x541bc9);_0x4ab889!=null&&_0x4ab889['size']&&Array[_0x57e794(0xa1)](_0x4ab889[_0x57e794(0x10f)]())[_0x57e794(0x119)](_0x4c7f2f=>{const _0xa8506e=_0x57e794;_0x2bf07b[_0x541bc9][_0x4c7f2f]={};let _0x214aca=_0x4ab889[_0xa8506e(0x9e)](_0x4c7f2f);_0x214aca!=null&&_0x214aca[_0xa8506e(0xdc)]&&Array[_0xa8506e(0xa1)](_0x214aca[_0xa8506e(0x10f)]())[_0xa8506e(0x119)](_0xa4abd5=>{const _0x59fc2d=_0xa8506e;let _0x2cf950=_0x214aca[_0x59fc2d(0x9e)](_0xa4abd5);_0x2cf950&&(_0x2bf07b[_0x541bc9][_0x4c7f2f][_0xa4abd5]={'config':_0x2cf950[_0x59fc2d(0x92)],'sparklines':_0x2cf950[_0x59fc2d(0x10b)][_0x59fc2d(0x131)]()});});});}return _0x2bf07b;}[_0x4ab8a2(0xc7)](_0x5e75df){const _0x3531d4=_0x4ab8a2;_0x5e75df&&Object[_0x3531d4(0x10f)](_0x5e75df)[_0x3531d4(0x119)](_0xef9a3f=>{const _0x5ba4ec=_0x3531d4;let _0x35c575=_0x5e75df[_0xef9a3f];_0x35c575&&Object[_0x5ba4ec(0x10f)](_0x35c575)['forEach'](_0x1daae2=>{const _0x2abdbf=_0x5ba4ec;let _0x1c3466=_0x35c575[_0x1daae2];_0x1c3466&&Object[_0x2abdbf(0x10f)](_0x1c3466)[_0x2abdbf(0x119)](_0x16317d=>{const _0x2b29c3=_0x2abdbf;let _0x28c087=_0x1c3466[_0x16317d];if(_0x28c087){let _0x430f24={'config':_0x28c087[_0x2b29c3(0x92)],'sparklines':new _0x268f53(_0x28c087[_0x2b29c3(0x10b)])};this['addSparkline'](_0xef9a3f,_0x1daae2,_0x16317d,_0x430f24);}});});});}[_0x4ab8a2(0x139)](_0x38b562){const _0x45356d=_0x4ab8a2;let _0x56e4e9=this[_0x45356d(0x8f)][_0x45356d(0x9e)](_0x38b562);if(_0x56e4e9){for(let [_0x314857]of _0x56e4e9){let _0x5caeb0=_0x56e4e9[_0x45356d(0x9e)](_0x314857);if(_0x5caeb0){for(let [_0x315386]of _0x5caeb0)this[_0x45356d(0xe6)](_0x38b562,_0x314857,_0x315386);}}this[_0x45356d(0x8f)][_0x45356d(0x94)](_0x38b562);}}};V=B([z(0x0,_0x178f0f(_0x4b08b3))],V);const H={'id':_0x4ab8a2(0x124),'type':_0x288abc[_0x4ab8a2(0xc1)],'handler':(_0x24331e,_0x5040f4)=>{const _0x4280a0=_0x4ab8a2;if(!_0x5040f4)return!0x1;let {sparklineConfigMap:_0x485b58,unitId:_0x2591ae,subUnitId:_0x5373f4}=_0x5040f4,_0x13233e=_0x24331e[_0x4280a0(0x9e)](V);return Object[_0x4280a0(0xbd)](_0x485b58)[_0x4280a0(0x119)](([_0x517d7c,_0xe0e843])=>{const _0x304913=_0x4280a0;let _0x29b8f4={'config':_0xe0e843[_0x304913(0x92)],'sparklines':new _0x268f53(_0xe0e843[_0x304913(0x10b)])};_0x13233e[_0x304913(0xa5)](_0x2591ae,_0x5373f4,_0x517d7c,_0x29b8f4);}),!0x0;}},U={'id':_0x4ab8a2(0xf6),'type':_0x288abc[_0x4ab8a2(0xc1)],'handler':(_0x2ddf7e,_0x448f31)=>{const _0x405014=_0x4ab8a2;if(!_0x448f31)return!0x1;let {unitId:_0x3affe3,subUnitId:_0x4edcfc,ranges:_0x46a126,isSingle:_0x37fdc1,groupIds:_0x5195da}=_0x448f31,_0x50ec29=_0x2ddf7e[_0x405014(0x9e)](V);return _0x5195da?(_0x5195da[_0x405014(0x119)](_0x199b5b=>{const _0x4955c5=_0x405014;_0x50ec29[_0x4955c5(0x14e)](_0x3affe3,_0x4edcfc,_0x199b5b);}),!0x0):_0x46a126?(_0x46a126[_0x405014(0x119)](_0x5f3167=>{_0x57b96b['foreach'](_0x5f3167,(_0x32c71d,_0x3212d7)=>{const _0x4ccadf=_0x24cb;let _0x2610ed=_0x50ec29[_0x4ccadf(0xf9)](_0x3affe3,_0x4edcfc,_0x32c71d,_0x3212d7);_0x2610ed&&(_0x37fdc1?_0x50ec29[_0x4ccadf(0xe0)](_0x3affe3,_0x4edcfc,_0x32c71d,_0x3212d7):_0x50ec29[_0x4ccadf(0x14e)](_0x3affe3,_0x4edcfc,_0x2610ed));});}),!0x0):!0x1;}},De={'id':_0x4ab8a2(0x91),'type':_0x288abc[_0x4ab8a2(0xdf)],'handler':(_0x136c89,_0xea776b)=>{const _0x1fc207=_0x4ab8a2;if(!_0xea776b)return!0x1;let {sourceRanges:_0x2cfe11,targetRanges:_0x5e6c94,config:_0x2f1ae}=_0xea776b,_0x5cc470=_0x136c89['get'](_0x2ca4d3),_0x42f968='g_'+_0x5357aa(0x6),_0xb5f6a6=P(_0x2cfe11,_0x5e6c94),_0x1af095={'config':_0x2f1ae==null?{}:_0x2f1ae,'sparklines':_0xb5f6a6[_0x1fc207(0x131)]()},_0x3ceb33=_0x136c89[_0x1fc207(0x9e)](_0x4b08b3),_0x470d24=_0x136c89[_0x1fc207(0x9e)](V),_0x370de4=_0x4d6c16(_0x3ceb33);if(!_0x370de4)return!0x1;let {unitId:_0xee4a3a,subUnitId:_0x332157}=_0x370de4,_0x36860c=_0x136c89['get'](_0x2891f1),_0x20b364=[],_0x3c9251=[],_0x247255={},_0x5ae618={},_0x541019=new Set([_0x42f968]);_0xb5f6a6[_0x1fc207(0x9a)]((_0x454887,_0x55f822,_0x2bab23)=>{const _0x21379e=_0x1fc207;let _0x5e42bd=_0x470d24[_0x21379e(0xf9)](_0xee4a3a,_0x332157,_0x454887,_0x55f822);if(_0x5e42bd){let _0x5bc570=_0x470d24[_0x21379e(0xb9)](_0xee4a3a,_0x332157,_0x5e42bd);if(_0x5bc570){_0x541019[_0x21379e(0x116)](_0x5e42bd);let _0x4483d3=_0x247255[_0x5e42bd],_0x592d27=_0x5ae618[_0x5e42bd];_0x592d27||(_0x592d27={'config':_0x1f3830[_0x21379e(0x13d)](_0x5bc570[_0x21379e(0x92)]),'sparklines':new _0x268f53(_0x5bc570['sparklines'][_0x21379e(0x142)]())},_0x5ae618[_0x5e42bd]=_0x592d27),_0x4483d3||(_0x4483d3={'config':_0x1f3830[_0x21379e(0x13d)](_0x5bc570[_0x21379e(0x92)]),'sparklines':_0x5bc570[_0x21379e(0x10b)][_0x21379e(0x142)]()},_0x247255[_0x5e42bd]=_0x4483d3),_0x592d27[_0x21379e(0x10b)][_0x21379e(0x12f)](_0x454887,_0x55f822);}}});let _0x3c3736={};return Object[_0x1fc207(0xbd)](_0x5ae618)['forEach'](([_0x59d803,_0x51a624])=>{const _0x19779a=_0x1fc207;_0x51a624[_0x19779a(0x10b)]['getSizeOf']()&&(_0x3c3736[_0x59d803]={'config':_0x51a624[_0x19779a(0x92)],'sparklines':_0x51a624['sparklines'][_0x19779a(0x142)]()});}),_0x3c3736[_0x42f968]=_0x1af095,_0x20b364['push']({'id':U['id'],'params':{'unitId':_0xee4a3a,'subUnitId':_0x332157,'groupIds':Array[_0x1fc207(0xa1)](_0x541019),'isSingle':!0x1}}),_0x541019[_0x1fc207(0xdc)]>0x1&&(_0x3c9251[_0x1fc207(0xed)]({'id':U['id'],'params':{'unitId':_0xee4a3a,'subUnitId':_0x332157,'groupIds':Array[_0x1fc207(0xa1)](_0x541019),'isSingle':!0x1}}),_0x20b364[_0x1fc207(0xed)]({'id':H['id'],'params':{'unitId':_0xee4a3a,'subUnitId':_0x332157,'sparklineConfigMap':_0x247255}})),_0x3c9251[_0x1fc207(0xed)]({'id':H['id'],'params':{'unitId':_0xee4a3a,'subUnitId':_0x332157,'sparklineConfigMap':_0x3c3736}}),_0x34b13f(_0x3c9251,_0x36860c)[_0x1fc207(0x11b)]?(_0x5cc470[_0x1fc207(0xc0)]({'unitID':_0xee4a3a,'undoMutations':_0x20b364,'redoMutations':_0x3c9251}),!0x0):!0x1;}},Oe={'id':'sheet.command.remove-sparkline','type':_0x288abc[_0x4ab8a2(0xdf)],'handler':(_0x3a4598,_0x2553bb)=>{const _0x10d07f=_0x4ab8a2;var _0x1488b0;let {isSingle:_0x5dff13=!0x0}=_0x2553bb||{},_0x32e209=_0x3a4598[_0x10d07f(0x9e)](_0x2891f1),_0x134b94=_0x3a4598[_0x10d07f(0x9e)](_0x4b08b3),_0x2d228f=_0x3a4598['get'](V),_0x5caa6b=_0x3a4598[_0x10d07f(0x9e)](_0x2ca4d3),_0xc5ff72=_0x4d6c16(_0x134b94);if(!_0xc5ff72)return!0x1;let _0x398e05=_0x3a4598[_0x10d07f(0x9e)](_0x5f1b48),_0x2e9e42=(_0x1488b0=_0x2553bb==null?void 0x0:_0x2553bb[_0x10d07f(0x138)])==null?_0x398e05[_0x10d07f(0xbc)]()[_0x10d07f(0xcc)](_0x138232=>_0x138232[_0x10d07f(0x125)]):_0x1488b0,{unitId:_0x3d8cfd,subUnitId:_0xabbeb2}=_0xc5ff72,_0x56bb3a=[],_0x5bd824=[];_0x56bb3a[_0x10d07f(0xed)]({'id':U['id'],'params':{'unitId':_0x3d8cfd,'subUnitId':_0xabbeb2,'ranges':_0x2e9e42,'isSingle':_0x5dff13}});let _0x2f40d8=[],_0x2b63a8={};return _0x2e9e42['forEach'](_0x3bdaea=>{const _0x1e037e=_0x10d07f;_0x57b96b[_0x1e037e(0x118)](_0x3bdaea,(_0x30316a,_0x448673)=>{const _0x217169=_0x1e037e;let _0x1dd85f=_0x2d228f[_0x217169(0xf9)](_0x3d8cfd,_0xabbeb2,_0x30316a,_0x448673);if(_0x1dd85f){let _0x235c83=_0x2d228f['getSparklineById'](_0x3d8cfd,_0xabbeb2,_0x1dd85f);_0x235c83&&(_0x2f40d8['push'](_0x1dd85f),_0x2b63a8[_0x1dd85f]={'config':_0x1f3830[_0x217169(0x13d)](_0x235c83[_0x217169(0x92)]),'sparklines':_0x1f3830[_0x217169(0x13d)](_0x235c83[_0x217169(0x10b)]['clone']())});}});}),_0x5bd824[_0x10d07f(0xed)]({'id':U['id'],'params':{'unitId':_0x3d8cfd,'subUnitId':_0xabbeb2,'groupIds':_0x2f40d8,'isSingle':!0x1}}),_0x5bd824[_0x10d07f(0xed)]({'id':H['id'],'params':{'unitId':_0x3d8cfd,'subUnitId':_0xabbeb2,'sparklineConfigMap':_0x2b63a8}}),_0x34b13f(_0x56bb3a,_0x32e209)['result']?(_0x5caa6b[_0x10d07f(0xc0)]({'unitID':_0x3d8cfd,'undoMutations':_0x5bd824,'redoMutations':_0x56bb3a}),!0x0):!0x1;}},W={'id':'sheet.mutation.set-sparkline','type':_0x288abc[_0x4ab8a2(0xc1)],'handler':(_0x40dd5e,_0x58c114)=>{const _0x4b2342=_0x4ab8a2;if(!_0x58c114)return!0x1;let {unitId:_0x6b42f5,subUnitId:_0x4f80cc,groupIds:_0x5d256b,config:_0x872b46}=_0x58c114,_0x59f5a7=_0x40dd5e[_0x4b2342(0x9e)](V);return _0x5d256b[_0x4b2342(0x119)](_0x3f26ae=>{const _0x4154c1=_0x4b2342;let _0x1f62d4=_0x59f5a7[_0x4154c1(0xb9)](_0x6b42f5,_0x4f80cc,_0x3f26ae);if(_0x1f62d4){let _0x1e4bb1={'config':Object[_0x4154c1(0xd8)]({},_0x1f62d4['config'],_0x872b46['config']),'sparklines':new _0x268f53(_0x1f62d4[_0x4154c1(0x10b)]['clone']())};_0x59f5a7['setSparkline'](_0x6b42f5,_0x4f80cc,[_0x3f26ae],_0x1e4bb1);}}),!0x0;}},ke={'id':_0x4ab8a2(0x11d),'type':_0x288abc[_0x4ab8a2(0xdf)],'handler':(_0x448099,_0x52af50)=>{const _0x1827ff=_0x4ab8a2;var _0x102c51,_0x448877;if(!_0x52af50)return!0x1;let _0x507589=_0x448099['get'](_0x2891f1),_0x2703ce=_0x448099[_0x1827ff(0x9e)](_0x5f1b48),_0x42f13a=_0x448099[_0x1827ff(0x9e)](V),_0x5cb155=_0x448099[_0x1827ff(0x9e)](_0x4b08b3),_0x33bad2=_0x448099['get'](_0x2ca4d3),_0x3bac6b=_0x4d6c16(_0x5cb155);if(!_0x3bac6b)return!0x1;let {unitId:_0x16b2f3,subUnitId:_0x24fdb1}=_0x3bac6b,_0x5c89d2=(_0x102c51=_0x52af50==null?void 0x0:_0x52af50[_0x1827ff(0x138)])==null?_0x2703ce[_0x1827ff(0xbc)]()[_0x1827ff(0xcc)](_0x541c61=>_0x541c61[_0x1827ff(0x125)]):_0x102c51,_0xf7d2f9=(_0x448877=_0x42f13a['getSparklineCache']()[_0x1827ff(0xe4)]['get'](_0x16b2f3))==null?void 0x0:_0x448877[_0x1827ff(0x9e)](_0x24fdb1),{isChangeDataSource:_0x8d726d,config:_0x41cf1,combine:_0x29856b,unCombine:_0x558edd}=_0x52af50;if(_0x29856b){var _0x4ffc3c;let _0x5287dc=[],_0x3f1774=[];_0x5287dc[_0x1827ff(0xed)]({'id':U['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'ranges':_0x5c89d2,'isSingle':!0x0}});let _0x323a8b='g_'+_0x5357aa(0x6),_0x305408=new _0x268f53(),_0xf772bf=(_0x4ffc3c=_0x42f13a[_0x1827ff(0xf2)]()['sparklineModel']['get'](_0x16b2f3))==null?void 0x0:_0x4ffc3c[_0x1827ff(0x9e)](_0x24fdb1),_0x1d941b=new Set([_0x323a8b]),_0x4e5002={};return _0x5c89d2[_0x1827ff(0x119)](_0x26d46d=>{const _0x1f50c6=_0x1827ff;let {startRow:_0x2397f1,endRow:_0x3df492,startColumn:_0x4dc48d,endColumn:_0x29018f}=_0x26d46d;for(let _0x31a950=_0x2397f1;_0x31a950<=_0x3df492;_0x31a950++)for(let _0x4c7961=_0x4dc48d;_0x4c7961<=_0x29018f;_0x4c7961++){var _0x4c1259;let _0x3c49f7=_0xf7d2f9==null||(_0x4c1259=_0xf7d2f9['matrix']['getValue'](_0x31a950,_0x4c7961))==null?void 0x0:_0x4c1259[_0x1f50c6(0x134)];if(_0x3c49f7){var _0x5d68a0;_0x1d941b[_0x1f50c6(0x116)](_0x3c49f7);let _0x556de9=_0x42f13a[_0x1f50c6(0xb9)](_0x16b2f3,_0x24fdb1,_0x3c49f7);_0x556de9&&(_0x4e5002[_0x3c49f7]={'config':_0x1f3830[_0x1f50c6(0x13d)](_0x556de9[_0x1f50c6(0x92)]),'sparklines':_0x1f3830['deepClone'](_0x556de9['sparklines'][_0x1f50c6(0x142)]())});let _0x1334dd=_0xf772bf==null||(_0x5d68a0=_0xf772bf[_0x1f50c6(0x9e)](_0x3c49f7))==null?void 0x0:_0x5d68a0[_0x1f50c6(0x10b)][_0x1f50c6(0x14d)](_0x31a950,_0x4c7961);_0x1334dd&&_0x305408[_0x1f50c6(0x10e)](_0x31a950,_0x4c7961,_0x1334dd);}}}),_0x5287dc[_0x1827ff(0xed)]({'id':H['id'],'params':{'sparklineConfigMap':{[_0x323a8b]:{'config':_0x1f3830[_0x1827ff(0x13d)](_0x41cf1[_0x1827ff(0x92)]),'sparklines':_0x305408[_0x1827ff(0x131)]()}},'unitId':_0x16b2f3,'subUnitId':_0x24fdb1}}),_0x3f1774['push']({'id':U['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'isSingle':!0x1,'groupIds':Array['from'](_0x1d941b)}}),_0x3f1774[_0x1827ff(0xed)]({'id':H['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'sparklineConfigMap':_0x4e5002}}),_0x34b13f(_0x5287dc,_0x507589)[_0x1827ff(0x11b)]?(_0x33bad2['pushUndoRedo']({'unitID':_0x16b2f3,'undoMutations':_0x3f1774,'redoMutations':_0x5287dc}),!0x0):!0x1;}else{if(_0x558edd){var _0x3a1561;let _0x49a6c8=[],_0x41e1de=[];_0x49a6c8[_0x1827ff(0xed)]({'id':U['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'ranges':_0x5c89d2,'isSingle':!0x0}});let _0x4a37ea=(_0x3a1561=_0x42f13a[_0x1827ff(0xf2)]()[_0x1827ff(0xe8)]['get'](_0x16b2f3))==null?void 0x0:_0x3a1561['get'](_0x24fdb1),_0x3fa845={},_0x3ebe9d=new Set(),_0x15f22d={};return _0x5c89d2['forEach'](_0x283423=>{const _0x3e45ed=_0x1827ff;let {startRow:_0x315e3e,endRow:_0xf8d8cc,startColumn:_0x213584,endColumn:_0x153ac6}=_0x283423;for(let _0xe49461=_0x315e3e;_0xe49461<=_0xf8d8cc;_0xe49461++)for(let _0x19da5c=_0x213584;_0x19da5c<=_0x153ac6;_0x19da5c++){var _0x2aee07;let _0x1987bd=_0xf7d2f9==null||(_0x2aee07=_0xf7d2f9[_0x3e45ed(0xb7)][_0x3e45ed(0x14d)](_0xe49461,_0x19da5c))==null?void 0x0:_0x2aee07['groupId'];if(_0x1987bd){var _0x113e39;let _0x222592=new _0x268f53(),_0x403e15='g_'+_0x5357aa(0x6);_0x3ebe9d[_0x3e45ed(0x116)](_0x1987bd),_0x3ebe9d['add'](_0x403e15);let _0x186ba6=_0x42f13a[_0x3e45ed(0xb9)](_0x16b2f3,_0x24fdb1,_0x1987bd);_0x186ba6&&(_0x15f22d[_0x1987bd]={'config':_0x1f3830['deepClone'](_0x186ba6[_0x3e45ed(0x92)]),'sparklines':_0x1f3830['deepClone'](_0x186ba6[_0x3e45ed(0x10b)][_0x3e45ed(0x142)]())});let _0xac744f=_0x4a37ea==null||(_0x113e39=_0x4a37ea[_0x3e45ed(0x9e)](_0x1987bd))==null?void 0x0:_0x113e39[_0x3e45ed(0x10b)][_0x3e45ed(0x14d)](_0xe49461,_0x19da5c);_0xac744f&&_0x222592[_0x3e45ed(0x10e)](_0xe49461,_0x19da5c,_0xac744f),_0x3fa845[_0x403e15]={'sparklines':_0x222592['getMatrix'](),'config':_0x1f3830[_0x3e45ed(0x13d)](_0x41cf1['config'])};}}}),_0x49a6c8['push']({'id':H['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'sparklineConfigMap':_0x3fa845}}),_0x41e1de[_0x1827ff(0xed)]({'id':U['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'isSingle':!0x1,'groupIds':Array['from'](_0x3ebe9d)}}),_0x41e1de['push']({'id':H['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'sparklineConfigMap':_0x15f22d}}),_0x34b13f(_0x49a6c8,_0x507589)[_0x1827ff(0x11b)]?(_0x33bad2[_0x1827ff(0xc0)]({'unitID':_0x16b2f3,'undoMutations':_0x41e1de,'redoMutations':_0x49a6c8}),!0x0):!0x1;}}if(_0x8d726d){let _0x42c7ac=_0x52af50['changeDataSourceInfo'];if(!_0x42c7ac)return!0x1;let {groupId:_0x346af7,sourceRanges:_0x1b2038,targetRanges:_0x4e91a4,resetType:_0x38feef,primary:_0x24c6e3}=_0x42c7ac,_0x829d11=[],_0x5348e6=[];_0x829d11[_0x1827ff(0xed)]({'id':U['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'ranges':_0x5c89d2,'isSingle':!0x1,'groupIds':[_0x346af7]}}),_0x5348e6[_0x1827ff(0xed)]({'id':U['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'ranges':_0x5c89d2,'isSingle':!0x1,'groupIds':[_0x346af7]}});let _0x41ae9b;_0x38feef==='item'?(_0x41ae9b=new _0x268f53(_0x41cf1[_0x1827ff(0x10b)][_0x1827ff(0x142)]()),_0x41ae9b[_0x1827ff(0x12f)](_0x24c6e3[_0x1827ff(0xcd)],_0x24c6e3[_0x1827ff(0x140)]),_0x41ae9b['setValue'](_0x4e91a4[0x0][_0x1827ff(0x150)],_0x4e91a4[0x0][_0x1827ff(0xca)],_0x1b2038[0x0])):_0x41ae9b=P(_0x1b2038,_0x4e91a4);let _0x385fea={'config':_0x1f3830['deepClone'](_0x41cf1[_0x1827ff(0x92)]),'sparklines':_0x41ae9b[_0x1827ff(0x131)]()},_0x5b72c6={'config':_0x1f3830['deepClone'](_0x41cf1['config']),'sparklines':_0x1f3830[_0x1827ff(0x13d)](_0x41cf1[_0x1827ff(0x10b)][_0x1827ff(0x142)]())};return _0x829d11['push']({'id':H['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'sparklineConfigMap':{[_0x346af7]:_0x385fea}}}),_0x5348e6[_0x1827ff(0xed)]({'id':H['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'sparklineConfigMap':{[_0x346af7]:_0x5b72c6}}}),_0x34b13f(_0x829d11,_0x507589)[_0x1827ff(0x11b)]?(_0x33bad2[_0x1827ff(0xc0)]({'unitID':_0x16b2f3,'undoMutations':_0x5348e6,'redoMutations':_0x829d11}),!0x0):!0x1;}else{let _0x1e4172=[],_0x925a3a=[],_0x46e305=new Set(),_0x2370d2={};return _0x5c89d2[_0x1827ff(0x119)](_0x50c4ec=>{const _0x479ec9=_0x1827ff;let {startRow:_0x4800f2,endRow:_0x3cb9a2,startColumn:_0x550809,endColumn:_0x5513cb}=_0x50c4ec;for(let _0xb447be=_0x4800f2;_0xb447be<=_0x3cb9a2;_0xb447be++)for(let _0x276713=_0x550809;_0x276713<=_0x5513cb;_0x276713++){var _0x49cb4c;let _0x40cf10=_0xf7d2f9==null||(_0x49cb4c=_0xf7d2f9[_0x479ec9(0xb7)][_0x479ec9(0x14d)](_0xb447be,_0x276713))==null?void 0x0:_0x49cb4c[_0x479ec9(0x134)];if(_0x40cf10){_0x46e305[_0x479ec9(0x116)](_0x40cf10);let _0x5b4249=_0x42f13a['getSparklineById'](_0x16b2f3,_0x24fdb1,_0x40cf10);_0x5b4249&&(_0x2370d2[_0x40cf10]={'config':_0x1f3830[_0x479ec9(0x13d)](_0x5b4249[_0x479ec9(0x92)]),'sparklines':_0x1f3830[_0x479ec9(0x13d)](_0x5b4249[_0x479ec9(0x10b)][_0x479ec9(0x142)]())});}}}),_0x925a3a[_0x1827ff(0xed)]({'id':W['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'groupIds':Array[_0x1827ff(0xa1)](_0x46e305),'config':{'config':_0x1f3830['deepClone'](_0x41cf1['config']),'sparklines':_0x41cf1[_0x1827ff(0x10b)][_0x1827ff(0x131)]()}}}),_0x1e4172[_0x1827ff(0xed)]({'id':U['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'isSingle':!0x1,'groupIds':Array[_0x1827ff(0xa1)](_0x46e305)}}),_0x1e4172[_0x1827ff(0xed)]({'id':H['id'],'params':{'unitId':_0x16b2f3,'subUnitId':_0x24fdb1,'sparklineConfigMap':_0x2370d2}}),_0x34b13f(_0x925a3a,_0x507589)[_0x1827ff(0x11b)]?(_0x33bad2[_0x1827ff(0xc0)]({'unitID':_0x16b2f3,'undoMutations':_0x1e4172,'redoMutations':_0x925a3a}),!0x0):!0x1;}}};var Ae=_0x4ab8a2(0x117),je=_0x4ab8a2(0xea);const G={};let K=class extends _0x1aa6ec{constructor(_0x14bd3c,_0x20dea5,_0x2a043f,_0x3e2b32){const _0x22cfd7=_0x4ab8a2;super(),this[_0x22cfd7(0xfe)]=_0x14bd3c,this[_0x22cfd7(0x8d)]=_0x20dea5,this['_univerInstanceService']=_0x2a043f,this[_0x22cfd7(0x11f)]=_0x3e2b32,this[_0x22cfd7(0x156)]();}[_0x4ab8a2(0x156)](){const _0x1c032d=_0x4ab8a2;this[_0x1c032d(0xf3)](this[_0x1c032d(0x8d)]['interceptCommand']({'getMutations':_0x3678f7=>{const _0x3d522b=_0x1c032d;let _0x49360f=[],_0x367b97=[];if(_0x3678f7['id']===_0x34b201['id']){let _0x185239=_0x4d6c16(this['_univerInstanceService'],_0x3678f7['params']);if(!_0x185239)return{'redos':_0x49360f,'undos':_0x367b97};let {unitId:_0x485807,subUnitId:_0x132cb8}=_0x185239,_0x4a226b=this[_0x3d522b(0x11f)][_0x3d522b(0xbc)]()[_0x3d522b(0xcc)](_0x2d1ee7=>_0x2d1ee7['range']),_0x1ceeb0=new Set(),_0x1d44de={},_0x232363={};_0x4a226b[_0x3d522b(0x119)](_0x208ede=>{_0x57b96b['foreach'](_0x208ede,(_0x1253f2,_0x4544dc)=>{const _0x37d1c2=_0x24cb;let _0x2e00f5=this['_sparklineDataSourceModel'][_0x37d1c2(0xf9)](_0x485807,_0x132cb8,_0x1253f2,_0x4544dc);if(_0x2e00f5&&!_0x1ceeb0[_0x37d1c2(0xa2)](_0x2e00f5)){let _0x415399=this[_0x37d1c2(0xfe)][_0x37d1c2(0xb9)](_0x485807,_0x132cb8,_0x2e00f5);_0x415399&&(_0x1ceeb0[_0x37d1c2(0x116)](_0x2e00f5),_0x1d44de[_0x2e00f5]={'config':_0x1f3830[_0x37d1c2(0x13d)](_0x415399['config']),'sparklines':_0x1f3830['deepClone'](_0x415399[_0x37d1c2(0x10b)]['clone']())},_0x232363[_0x2e00f5]={'config':_0x1f3830['deepClone'](_0x415399[_0x37d1c2(0x92)]),'sparklines':_0x1f3830[_0x37d1c2(0x13d)](_0x415399['sparklines'][_0x37d1c2(0x142)]())});}});}),Object[_0x3d522b(0x108)](_0x232363)['forEach'](_0x1cf130=>{const _0x34286e=_0x3d522b;let _0x359493=_0x1cf130[_0x34286e(0x10b)];new _0x268f53(_0x359493)[_0x34286e(0x9a)]((_0x3086ec,_0x8049da,_0x4040d5)=>{const _0x155669=_0x34286e;_0x4a226b['some'](_0x1bf1d2=>_0x379596[_0x155669(0x141)](_0x1bf1d2,_0x3eb5df(_0x3086ec,_0x8049da)))&&delete _0x359493[_0x3086ec][_0x8049da];});}),_0x1ceeb0[_0x3d522b(0xdc)]>0x0&&(_0x49360f['push']({'id':U['id'],'params':{'unitId':_0x485807,'subUnitId':_0x132cb8,'groupIds':Array['from'](_0x1ceeb0),'isSingle':!0x1}}),_0x367b97['push']({'id':U['id'],'params':{'unitId':_0x485807,'subUnitId':_0x132cb8,'groupIds':Array['from'](_0x1ceeb0),'isSingle':!0x1}})),Object['keys'](_0x232363)[_0x3d522b(0xdb)]>0x0&&_0x49360f[_0x3d522b(0xed)]({'id':H['id'],'params':{'unitId':_0x485807,'subUnitId':_0x132cb8,'sparklineConfigMap':_0x232363}}),Object[_0x3d522b(0x10f)](_0x1d44de)['length']>0x0&&_0x367b97[_0x3d522b(0xed)]({'id':H['id'],'params':{'unitId':_0x485807,'subUnitId':_0x132cb8,'sparklineConfigMap':_0x1d44de}});}return{'redos':_0x49360f,'undos':_0x367b97};}}));}};K=B([z(0x0,_0x178f0f(V)),z(0x1,_0x178f0f(_0x1d7396)),z(0x2,_0x178f0f(_0x4b08b3)),z(0x3,_0x178f0f(_0x5f1b48))],K);let q=class extends _0x1aa6ec{constructor(_0x5dda76,_0x463f79,_0x308fb3){const _0x16025a=_0x4ab8a2;super(),this[_0x16025a(0x114)]=_0x5dda76,this[_0x16025a(0xfe)]=_0x463f79,this[_0x16025a(0x11a)]=_0x308fb3,this[_0x16025a(0x135)](),this[_0x16025a(0x90)]();}[_0x4ab8a2(0x135)](){const _0x4d6f70=_0x4ab8a2;this[_0x4d6f70(0xf3)](this[_0x4d6f70(0x114)][_0x4d6f70(0x109)](_0x4b4af3=>{const _0xd2e077=_0x4d6f70;if(_0x4b4af3['id']===_0x135e9a['id']){let {cellValue:_0x1d48f2,unitId:_0x11b178,subUnitId:_0x28d605}=_0x4b4af3[_0xd2e077(0x12d)],_0x56a8c3=new _0x268f53(_0x1d48f2),_0x405bba=new Set(),_0x3454c3=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x11b178,_0x28d605);if(!_0x3454c3)return;let _0x3f40f7=Array[_0xd2e077(0xa1)](_0x3454c3);_0x56a8c3[_0xd2e077(0x9a)]((_0x3edd54,_0x32a452,_0x4c9d17)=>{const _0x46850a=_0xd2e077;let _0xb8a34b=_0x3eb5df(_0x3edd54,_0x32a452);for(let _0x5e8b6b=0x0;_0x5e8b6b<_0x3f40f7[_0x46850a(0xdb)];_0x5e8b6b++){let [_0x2adb93,_0x522c6b]=_0x3f40f7[_0x5e8b6b],_0x55d8ed=_0x405bba[_0x46850a(0xa2)](_0x2adb93);_0x55d8ed||_0x522c6b['sparklines'][_0x46850a(0x9a)]((_0xa47dc0,_0x1992b5,_0x37013e)=>{const _0x5ba965=_0x46850a;let _0x1a46c1=_0x37013e;if(_0x1a46c1&&!_0x55d8ed&&_0x379596['intersects'](_0xb8a34b,_0x1a46c1))return _0x405bba[_0x5ba965(0x116)](_0x2adb93),!0x0;});}}),_0x405bba[_0xd2e077(0x119)](_0x45088e=>{const _0x561f0b=_0xd2e077;this[_0x561f0b(0xfe)][_0x561f0b(0xe6)](_0x11b178,_0x28d605,_0x45088e),this[_0x561f0b(0xfe)][_0x561f0b(0xc3)](_0x11b178,_0x28d605,_0x45088e);});}else{if(_0x4b4af3['id']===_0x26b9c6['id']){let {range:_0x176e45,unitId:_0x2a6c87,subUnitId:_0x3f9e25}=_0x4b4af3['params'],_0x5f5cc1=new Set(),_0x19d853=this[_0xd2e077(0xfe)][_0xd2e077(0xa7)](_0x2a6c87,_0x3f9e25);if(!_0x19d853)return;let _0x8685b9=Array[_0xd2e077(0xa1)](_0x19d853);for(let _0x471834=0x0;_0x471834<_0x8685b9[_0xd2e077(0xdb)];_0x471834++){let [_0xe467d7,_0x593a26]=_0x8685b9[_0x471834],_0x4b7dae=_0x5f5cc1[_0xd2e077(0xa2)](_0xe467d7);_0x4b7dae||_0x593a26['sparklines'][_0xd2e077(0x9a)]((_0x1db5e1,_0x591bbb,_0x5d974d)=>{const _0x1c85c9=_0xd2e077;let _0x39e3cb=_0x5d974d;if(_0x39e3cb&&!_0x4b7dae&&_0x379596['intersects'](_0x176e45,_0x39e3cb))return _0x5f5cc1[_0x1c85c9(0x116)](_0xe467d7),!0x0;});}_0x5f5cc1[_0xd2e077(0x119)](_0x2c1ba7=>{const _0x439c90=_0xd2e077;this['_sparklineDataSourceModel'][_0x439c90(0xe6)](_0x2a6c87,_0x3f9e25,_0x2c1ba7),this[_0x439c90(0xfe)]['updateSparklineExtraNum'](_0x2a6c87,_0x3f9e25,_0x2c1ba7);});}}}));}['_initExclusiveRangeChange'](){const _0x3715c6=_0x4ab8a2;this[_0x3715c6(0xf3)](this[_0x3715c6(0x11a)][_0x3715c6(0x145)][_0x3715c6(0xb6)](_0x390b3f=>{const _0x4d78ff=_0x3715c6;let {unitId:_0x2f0729,subUnitId:_0x47c3c9,ranges:_0x2ec1b4}=_0x390b3f,_0x20212b=this['_sparklineDataSourceModel'][_0x4d78ff(0xa7)](_0x2f0729,_0x47c3c9);if(!_0x20212b)return;let _0x24319e=Array[_0x4d78ff(0xa1)](_0x20212b),_0x31f63e=new Set();for(let _0x5ac6be=0x0;_0x5ac6be<_0x24319e['length'];_0x5ac6be++){let [_0x24549d,_0x3c20d3]=_0x24319e[_0x5ac6be],_0x4eca7=_0x31f63e[_0x4d78ff(0xa2)](_0x24549d);_0x4eca7||_0x3c20d3[_0x4d78ff(0x10b)][_0x4d78ff(0x9a)]((_0x2170df,_0x5243dd,_0x3942a3)=>{const _0xf01976=_0x4d78ff;let _0x24b1ed=_0x3942a3;if(_0x24b1ed&&!_0x4eca7){for(let _0x319351 of _0x2ec1b4)if(_0x379596[_0xf01976(0x141)](_0x319351,_0x24b1ed)){_0x31f63e[_0xf01976(0x116)](_0x24549d);break;}}});}_0x31f63e[_0x4d78ff(0x119)](_0x533676=>{const _0x433096=_0x4d78ff;this['_sparklineDataSourceModel'][_0x433096(0xe6)](_0x2f0729,_0x47c3c9,_0x533676),this[_0x433096(0xfe)][_0x433096(0xc3)](_0x2f0729,_0x47c3c9,_0x533676);});}));}};q=B([z(0x0,_0x178f0f(_0x2891f1)),z(0x1,_0x178f0f(V)),z(0x2,_0x178f0f(_0x5bbdb0))],q);let J=class extends _0x1aa6ec{constructor(_0x2f085f,_0x48600e){const _0x23d4a0=_0x4ab8a2;super(),this['_commandService']=_0x2f085f,this[_0x23d4a0(0xfe)]=_0x48600e,this['_initHideRowColWithSparkline']();}[_0x4ab8a2(0x122)](){const _0xf848a6=_0x4ab8a2;this[_0xf848a6(0x114)][_0xf848a6(0x109)](_0x421cc8=>{const _0x15e88f=_0xf848a6;if(_0x421cc8['id']===_0x1683d2['id']||_0x421cc8['id']===_0x32c155['id']||_0x421cc8['id']===_0x12085f['id']||_0x421cc8['id']===_0x922477['id']){let {ranges:_0x37619c,unitId:_0x2aa03a,subUnitId:_0x1faaf3}=_0x421cc8[_0x15e88f(0x12d)],_0x102912=new Set(),_0x237236=this[_0x15e88f(0xfe)]['getSubUnitSparkline'](_0x2aa03a,_0x1faaf3);if(!_0x237236)return;let _0x5ae1a1=Array['from'](_0x237236);_0x37619c[_0x15e88f(0x119)](_0x48238f=>{const _0x2b0a3d=_0x15e88f;_0x57b96b[_0x2b0a3d(0x118)](_0x48238f,(_0x5740e1,_0xb76a6e)=>{const _0x48abad=_0x2b0a3d;let _0x3a42d3=_0x3eb5df(_0x5740e1,_0xb76a6e);for(let _0x1cf390=0x0;_0x1cf390<_0x5ae1a1[_0x48abad(0xdb)];_0x1cf390++){let [_0x54ae54,_0x38ba24]=_0x5ae1a1[_0x1cf390],_0x1ab379=_0x102912[_0x48abad(0xa2)](_0x54ae54);_0x1ab379||_0x38ba24[_0x48abad(0x10b)][_0x48abad(0x9a)]((_0xd1116a,_0x33e11b,_0x29f717)=>{const _0x2f021e=_0x48abad;let _0x1ec768=_0x29f717;if(_0x1ec768&&!_0x1ab379&&_0x379596[_0x2f021e(0x141)](_0x3a42d3,_0x1ec768))return _0x102912[_0x2f021e(0x116)](_0x54ae54),!0x0;});}});}),_0x102912[_0x15e88f(0x119)](_0x3a7f75=>{const _0x5155ad=_0x15e88f;this[_0x5155ad(0xfe)]['clearSparklineCache'](_0x2aa03a,_0x1faaf3,_0x3a7f75),this[_0x5155ad(0xfe)]['updateSparklineExtraNum'](_0x2aa03a,_0x1faaf3,_0x3a7f75);});}});}};J=B([z(0x0,_0x178f0f(_0x2891f1)),z(0x1,_0x178f0f(V))],J);let Y=class extends _0x1aa6ec{constructor(_0x51e848,_0x459050,_0xdf2894){const _0x4ac2cb=_0x4ab8a2;super(),this['_commandService']=_0x51e848,this[_0x4ac2cb(0x8d)]=_0x459050,this[_0x4ac2cb(0xfe)]=_0xdf2894,this[_0x4ac2cb(0x10c)]();}['_initMergeWithSparkline'](){const _0x1d25c3=_0x4ab8a2;this[_0x1d25c3(0xf3)](this[_0x1d25c3(0x8d)][_0x1d25c3(0xde)]({'getMutations':_0x3f5596=>{const _0x167eaa=_0x1d25c3;let _0x3d1bc2=[],_0x6c5cba=[];if(_0x3f5596['id']===_0x33e599['id']){let _0x4acfa9=_0x3f5596[_0x167eaa(0x12d)];if(!_0x4acfa9)return{'redos':_0x3d1bc2,'undos':_0x6c5cba};let {unitId:_0x35a67c,subUnitId:_0x417895,ranges:_0xf92991}=_0x4acfa9,_0x2e40ad=this[_0x167eaa(0xfe)][_0x167eaa(0xa7)](_0x35a67c,_0x417895);if(!_0x2e40ad)return{'redos':_0x3d1bc2,'undos':_0x6c5cba};let _0x1adb51={},_0x4190ab={},_0x654c4c=new Set();_0xf92991[_0x167eaa(0x119)](_0x51e5f1=>{const _0x28a2c7=_0x167eaa;let _0x26c532=_0x51e5f1[_0x28a2c7(0x150)],_0x27630c=_0x51e5f1[_0x28a2c7(0xca)];_0x57b96b['foreach'](_0x51e5f1,(_0x233677,_0x218830)=>{const _0x399d14=_0x28a2c7;let _0x454610=this[_0x399d14(0xfe)]['getSparkline'](_0x35a67c,_0x417895,_0x233677,_0x218830);if(_0x454610&&!(_0x233677===_0x26c532&&_0x218830===_0x27630c)){let _0x16eb7c=this[_0x399d14(0xfe)][_0x399d14(0xb9)](_0x35a67c,_0x417895,_0x454610);if(_0x16eb7c){_0x654c4c[_0x399d14(0x116)](_0x454610);let _0x31ca47=_0x1adb51[_0x454610];_0x31ca47||(_0x31ca47={'config':_0x1f3830[_0x399d14(0x13d)](_0x16eb7c[_0x399d14(0x92)]),'sparklines':new _0x268f53(_0x16eb7c[_0x399d14(0x10b)]['clone']())},_0x1adb51[_0x454610]=_0x31ca47),_0x31ca47[_0x399d14(0x10b)]['realDeleteValue'](_0x233677,_0x218830),_0x4190ab[_0x454610]={'config':_0x1f3830[_0x399d14(0x13d)](_0x16eb7c[_0x399d14(0x92)]),'sparklines':_0x1f3830[_0x399d14(0x13d)](_0x16eb7c[_0x399d14(0x10b)][_0x399d14(0x142)]())};}}});});for(let [_0x314687,_0x2e155f]of _0x2e40ad){let _0x1b665b=_0x2e155f[_0x167eaa(0x10b)];_0x1b665b[_0x167eaa(0x9a)]((_0x5abc7d,_0x40d82c,_0x246fb0)=>{const _0xfa5611=_0x167eaa;for(let _0x4c1390=0x0;_0x4c1390<_0xf92991[_0xfa5611(0xdb)];_0x4c1390++){let _0x4442c8=_0xf92991[_0x4c1390];if(_0x379596[_0xfa5611(0x155)](_0x4442c8,_0x246fb0)){_0x654c4c[_0xfa5611(0x116)](_0x314687);let _0x246b07=_0x1adb51[_0x314687];_0x246b07||(_0x246b07={'config':_0x1f3830[_0xfa5611(0x13d)](_0x2e155f[_0xfa5611(0x92)]),'sparklines':new _0x268f53(_0x1b665b[_0xfa5611(0x142)]())},_0x1adb51[_0x314687]=_0x246b07),_0x246b07['sparklines'][_0xfa5611(0x12f)](_0x5abc7d,_0x40d82c),_0x4190ab[_0x314687]||(_0x4190ab[_0x314687]={'config':_0x1f3830[_0xfa5611(0x13d)](_0x2e155f['config']),'sparklines':_0x1f3830[_0xfa5611(0x13d)](_0x1b665b[_0xfa5611(0x142)]())});}}});}let _0x2ae622={};Object[_0x167eaa(0xbd)](_0x1adb51)['forEach'](([_0x38eaf7,_0x517372])=>{const _0x315371=_0x167eaa;_0x517372['sparklines'][_0x315371(0x136)]()&&(_0x2ae622[_0x38eaf7]={'config':_0x517372[_0x315371(0x92)],'sparklines':_0x517372[_0x315371(0x10b)]['clone']()});}),_0x654c4c[_0x167eaa(0xdc)]&&(_0x3d1bc2[_0x167eaa(0xed)]({'id':U['id'],'params':{'unitId':_0x35a67c,'subUnitId':_0x417895,'groupIds':Array[_0x167eaa(0xa1)](_0x654c4c),'isSingle':!0x1}}),_0x6c5cba[_0x167eaa(0xed)]({'id':U['id'],'params':{'unitId':_0x35a67c,'subUnitId':_0x417895,'groupIds':Array['from'](_0x654c4c),'isSingle':!0x1}}),_0x3d1bc2['push']({'id':H['id'],'params':{'unitId':_0x35a67c,'subUnitId':_0x417895,'sparklineConfigMap':_0x2ae622}}),_0x6c5cba['push']({'id':H['id'],'params':{'unitId':_0x35a67c,'subUnitId':_0x417895,'sparklineConfigMap':_0x4190ab}}));}return{'redos':_0x3d1bc2,'undos':_0x6c5cba};}}));}};Y=B([z(0x0,_0x178f0f(_0x2891f1)),z(0x1,_0x178f0f(_0x1d7396)),z(0x2,_0x178f0f(V))],Y);let X=class extends _0x1aa6ec{constructor(_0x2204a0,_0x247f19,_0x132d47,_0x3a422){const _0x3ccd5d=_0x4ab8a2;super(),this[_0x3ccd5d(0x114)]=_0x2204a0,this[_0x3ccd5d(0x13f)]=_0x247f19,this[_0x3ccd5d(0xa9)]=_0x132d47,this[_0x3ccd5d(0xfe)]=_0x3a422,R(this,_0x3ccd5d(0x13e),new _0x59c04a()),this[_0x3ccd5d(0x12c)](),this['_initCorrectRangeWithSparkline']();}[_0x4ab8a2(0x12c)](){const _0x239018=_0x4ab8a2;let _0x3fd23e=(_0x3dbcba,_0x5f2793)=>{const _0x25eb6d=_0x24cb;let _0x3791e2=this['_univerInstanceService']['getCurrentUnitOfType'](_0x518316[_0x25eb6d(0xac)]);if(!_0x3791e2||!(_0x3791e2!=null&&_0x3791e2['getSheetBySheetId'](_0x5f2793)))return;this[_0x25eb6d(0x13e)]['dispose']();let _0x3a6809=_0x54a85f=>this[_0x25eb6d(0x95)](_0x54a85f,_0x3dbcba,_0x5f2793),_0xa58893=[],_0x3aece3=this[_0x25eb6d(0xfe)][_0x25eb6d(0xa7)](_0x3dbcba,_0x5f2793);if(_0x3aece3){for(let [_0x59b4f2,_0x10de3f]of _0x3aece3)_0x10de3f[_0x25eb6d(0x10b)]['forValue']((_0x176311,_0x246e9a,_0x2a6498)=>{const _0x5b529a=_0x25eb6d;let _0x129183=_0x3eb5df(_0x176311,_0x246e9a);_0xa58893[_0x5b529a(0xed)](_0x129183);});_0xa58893[_0x25eb6d(0x119)](_0x131a35=>{const _0xc2a60b=_0x25eb6d;this['disposableCollection'][_0xc2a60b(0x116)](this[_0xc2a60b(0x13f)][_0xc2a60b(0xc9)](_0x131a35,_0x3a6809,_0x3dbcba,_0x5f2793));});}};this[_0x239018(0xf3)](this['_commandService'][_0x239018(0x109)](_0x2b33a5=>{const _0x120a39=_0x239018;if(_0x2b33a5['id']===_0x296db2['id']){let _0x42585b=_0x2b33a5['params'],_0x55bc4c=_0x42585b[_0x120a39(0xd7)],_0x2ef521=_0x42585b['unitId'];if(!_0x55bc4c||!_0x2ef521)return;_0x3fd23e(_0x2ef521,_0x55bc4c);}if(_0x2b33a5['id']===W['id']||_0x2b33a5['id']===H['id']){let _0x22bb65=_0x2b33a5[_0x120a39(0x12d)],_0x3ca657=_0x22bb65['subUnitId'],_0x5be67d=_0x22bb65[_0x120a39(0x147)];if(!_0x3ca657||!_0x5be67d)return;_0x3fd23e(_0x5be67d,_0x3ca657);}}));}['refRangeHandle'](_0x31d1b7,_0x177355,_0x584476){const _0x39a1af=_0x4ab8a2;switch(_0x31d1b7['id']){case _0x37c14e['id']:return this[_0x39a1af(0x10d)](_0x31d1b7['params'],_0x177355,_0x584476);case _0x3420f6['id']:return this[_0x39a1af(0xe1)](_0x31d1b7[_0x39a1af(0x12d)],_0x177355,_0x584476);default:break;}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x26d9f2,_0x942de6,_0x121374){const _0x3f4b1e=_0x4ab8a2;var _0x460527;let {range:_0x29f323}=_0x26d9f2,_0x4125ee=new Set(),_0x29177c={},_0x387c8e={},_0x5dfdd5=[],_0x3c3f83=[],_0x37fab7=[],_0x184eb4=[];if(!_0x4d6c16(this['_univerInstanceService'],{'unitId':_0x942de6,'subUnitId':_0x121374}))return{'redos':_0x3c3f83,'undos':_0x5dfdd5};let _0x1718b6=this[_0x3f4b1e(0xfe)][_0x3f4b1e(0xa7)](_0x942de6,_0x121374);if(!_0x1718b6||!(!((_0x460527=this[_0x3f4b1e(0xfe)][_0x3f4b1e(0xf2)]()[_0x3f4b1e(0xe4)]['get'](_0x942de6))==null||(_0x460527=_0x460527[_0x3f4b1e(0x9e)](_0x121374))==null)&&_0x460527[_0x3f4b1e(0xb7)]))return{'redos':_0x3c3f83,'undos':_0x5dfdd5};for(let [_0xe98927,_0x16f574]of _0x1718b6){let _0x27ab56=_0x16f574[_0x3f4b1e(0x10b)];_0x27ab56[_0x3f4b1e(0x9a)]((_0x2ee3bf,_0x46094a,_0x5d9f71)=>{const _0x288dce=_0x3f4b1e;if(_0x379596['intersects'](_0x29f323,_0x5d9f71)){_0x4125ee[_0x288dce(0x116)](_0xe98927);let _0x1d27c4=_0x387c8e[_0xe98927];_0x1d27c4||(_0x1d27c4={'config':_0x16f574[_0x288dce(0x92)],'sparklines':_0x16f574[_0x288dce(0x10b)][_0x288dce(0x142)]()},_0x387c8e[_0xe98927]=_0x1d27c4);let _0x4e72c1=_0x29177c[_0xe98927];_0x4e72c1||(_0x4e72c1={'config':_0x16f574['config'],'sparklines':new _0x268f53(_0x16f574['sparklines']['clone']())},_0x29177c[_0xe98927]=_0x4e72c1);let _0xd7a806=_0x1864b1(_0x5d9f71,{'id':_0x4988e7['id'],'params':_0x26d9f2});_0xd7a806?_0x4e72c1[_0x288dce(0x10b)][_0x288dce(0x10e)](_0x2ee3bf,_0x46094a,_0xd7a806):_0x4e72c1[_0x288dce(0x10b)][_0x288dce(0x10e)](_0x2ee3bf,_0x46094a,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x2d5019[_0x288dce(0x93)]});}}),_0x27ab56[_0x3f4b1e(0x9a)](_0x137ea6=>{const _0x867fde=_0x3f4b1e;if(_0x137ea6<=_0x29f323[_0x867fde(0x13a)]&&_0x137ea6>=_0x29f323[_0x867fde(0x150)]){_0x4125ee[_0x867fde(0x116)](_0xe98927);let _0x58b019=_0x387c8e[_0xe98927];_0x58b019||(_0x58b019={'config':_0x16f574[_0x867fde(0x92)],'sparklines':_0x16f574[_0x867fde(0x10b)]['clone']()},_0x387c8e[_0xe98927]=_0x58b019);let _0x1a65e1=_0x29177c[_0xe98927];_0x1a65e1||(_0x1a65e1={'config':_0x16f574['config'],'sparklines':new _0x268f53(_0x16f574['sparklines']['clone']())},_0x29177c[_0xe98927]=_0x1a65e1);}});}_0x4125ee[_0x3f4b1e(0xdc)]>0x0&&(_0x184eb4[_0x3f4b1e(0xed)]({'id':U['id'],'params':{'unitId':_0x942de6,'subUnitId':_0x121374,'groupIds':Array[_0x3f4b1e(0xa1)](_0x4125ee),'isSingle':!0x1}}),_0x37fab7[_0x3f4b1e(0xed)]({'id':U['id'],'params':{'unitId':_0x942de6,'subUnitId':_0x121374,'groupIds':Array[_0x3f4b1e(0xa1)](_0x4125ee),'isSingle':!0x1}}));let _0x4b8761={},_0x4bddbf=!0x1;return Object[_0x3f4b1e(0xbd)](_0x29177c)[_0x3f4b1e(0x119)](([_0x38363c,_0x623661])=>{const _0x1e1121=_0x3f4b1e;_0x623661[_0x1e1121(0x10b)][_0x1e1121(0x136)]()&&(_0x4bddbf=!0x0,_0x623661['sparklines'][_0x1e1121(0xc4)](_0x29f323['startRow'],_0x29f323[_0x1e1121(0x13a)]-_0x29f323[_0x1e1121(0x150)]+0x1),_0x4b8761[_0x38363c]={'config':_0x623661[_0x1e1121(0x92)],'sparklines':_0x623661[_0x1e1121(0x10b)][_0x1e1121(0x142)]()});}),_0x4bddbf&&_0x3c3f83[_0x3f4b1e(0xed)]({'id':H['id'],'params':{'unitId':_0x942de6,'subUnitId':_0x121374,'sparklineConfigMap':_0x4b8761}}),Object[_0x3f4b1e(0x10f)](_0x387c8e)[_0x3f4b1e(0xdb)]>0x0&&_0x5dfdd5['push']({'id':H['id'],'params':{'unitId':_0x942de6,'subUnitId':_0x121374,'sparklineConfigMap':_0x387c8e}}),{'redos':_0x3c3f83,'undos':_0x5dfdd5,'preRedos':_0x37fab7,'preUndos':_0x184eb4};}[_0x4ab8a2(0x10d)](_0x21145b,_0x2b10a0,_0x10194f){const _0x1de017=_0x4ab8a2;var _0x402974;let {range:_0x464b82}=_0x21145b,_0x525340=new Set(),_0x3410be={},_0x41fef3={},_0x4ae414=[],_0x2277a9=[],_0x435af0=[],_0x121157=[];if(!_0x4d6c16(this['_univerInstanceService'],{'unitId':_0x2b10a0,'subUnitId':_0x10194f}))return{'redos':_0x2277a9,'undos':_0x4ae414};let _0x330307=this[_0x1de017(0xfe)][_0x1de017(0xa7)](_0x2b10a0,_0x10194f);if(!_0x330307||!(!((_0x402974=this[_0x1de017(0xfe)][_0x1de017(0xf2)]()[_0x1de017(0xe4)][_0x1de017(0x9e)](_0x2b10a0))==null||(_0x402974=_0x402974[_0x1de017(0x9e)](_0x10194f))==null)&&_0x402974[_0x1de017(0xb7)]))return{'redos':_0x2277a9,'undos':_0x4ae414};for(let [_0x3d1e76,_0x190878]of _0x330307){let _0x216e35=_0x190878['sparklines'];_0x216e35['forValue']((_0x474b06,_0x1d1cb3,_0x157fcf)=>{const _0x4a73e2=_0x1de017;if(_0x379596['intersects'](_0x464b82,_0x157fcf)){_0x525340[_0x4a73e2(0x116)](_0x3d1e76);let _0x11673d=_0x41fef3[_0x3d1e76];_0x11673d||(_0x11673d={'config':_0x190878[_0x4a73e2(0x92)],'sparklines':_0x190878[_0x4a73e2(0x10b)]['clone']()},_0x41fef3[_0x3d1e76]=_0x11673d);let _0x29e3f6=_0x3410be[_0x3d1e76];_0x29e3f6||(_0x29e3f6={'config':_0x190878[_0x4a73e2(0x92)],'sparklines':new _0x268f53(_0x190878['sparklines'][_0x4a73e2(0x142)]())},_0x3410be[_0x3d1e76]=_0x29e3f6);let _0x84f4d9=_0x1864b1(_0x157fcf,{'id':_0xaf42d4['id'],'params':_0x21145b});_0x84f4d9?_0x29e3f6[_0x4a73e2(0x10b)][_0x4a73e2(0x10e)](_0x474b06,_0x1d1cb3,_0x84f4d9):_0x29e3f6[_0x4a73e2(0x10b)]['setValue'](_0x474b06,_0x1d1cb3,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x2d5019[_0x4a73e2(0x93)]});}}),_0x216e35[_0x1de017(0x9a)]((_0x50538d,_0xc98ac4,_0xe6d65b)=>{const _0x129899=_0x1de017;if(_0xc98ac4<=_0x464b82['endColumn']&&_0xc98ac4>=_0x464b82[_0x129899(0xca)]){_0x525340['add'](_0x3d1e76);let _0x2c591c=_0x41fef3[_0x3d1e76];_0x2c591c||(_0x2c591c={'config':_0x190878['config'],'sparklines':_0x190878[_0x129899(0x10b)][_0x129899(0x142)]()},_0x41fef3[_0x3d1e76]=_0x2c591c);let _0x4854df=_0x3410be[_0x3d1e76];_0x4854df||(_0x4854df={'config':_0x190878['config'],'sparklines':new _0x268f53(_0x190878[_0x129899(0x10b)][_0x129899(0x142)]())},_0x3410be[_0x3d1e76]=_0x4854df);}});}_0x525340[_0x1de017(0xdc)]>0x0&&(_0x121157[_0x1de017(0xed)]({'id':U['id'],'params':{'unitId':_0x2b10a0,'subUnitId':_0x10194f,'groupIds':Array['from'](_0x525340),'isSingle':!0x1}}),_0x435af0[_0x1de017(0xed)]({'id':U['id'],'params':{'unitId':_0x2b10a0,'subUnitId':_0x10194f,'groupIds':Array['from'](_0x525340),'isSingle':!0x1}}));let _0x151d80={},_0x8983c9=!0x1;return Object[_0x1de017(0xbd)](_0x3410be)['forEach'](([_0x359c60,_0x42c3c8])=>{const _0x2f66d4=_0x1de017;_0x42c3c8[_0x2f66d4(0x10b)][_0x2f66d4(0x136)]()&&(_0x8983c9=!0x0,_0x42c3c8['sparklines'][_0x2f66d4(0xf8)](_0x464b82[_0x2f66d4(0xca)],_0x464b82['endColumn']-_0x464b82[_0x2f66d4(0xca)]+0x1),_0x151d80[_0x359c60]={'config':_0x42c3c8[_0x2f66d4(0x92)],'sparklines':_0x42c3c8[_0x2f66d4(0x10b)]['clone']()});}),_0x8983c9&&_0x2277a9[_0x1de017(0xed)]({'id':H['id'],'params':{'unitId':_0x2b10a0,'subUnitId':_0x10194f,'sparklineConfigMap':_0x151d80}}),Object[_0x1de017(0x10f)](_0x41fef3)['length']>0x0&&_0x4ae414[_0x1de017(0xed)]({'id':H['id'],'params':{'unitId':_0x2b10a0,'subUnitId':_0x10194f,'sparklineConfigMap':_0x41fef3}}),{'redos':_0x2277a9,'undos':_0x4ae414,'preRedos':_0x435af0,'preUndos':_0x121157};}[_0x4ab8a2(0xab)](){const _0x44ffaa=_0x4ab8a2;this['disposeWithMe'](this['_commandService'][_0x44ffaa(0x109)](_0x380055=>{const _0x227ef8=_0x44ffaa;if(_0x380055['id']===_0x4f6c5d['id']){let {unitId:_0x5966b8,subUnitId:_0x2035dc,range:_0x183f3b}=_0x380055[_0x227ef8(0x12d)],_0x4f8935=_0x183f3b[_0x227ef8(0xca)],_0x39a26c=_0x183f3b[_0x227ef8(0xce)]-_0x183f3b['startColumn']+0x1,_0x5af671=this[_0x227ef8(0xfe)]['getSubUnitSparkline'](_0x5966b8,_0x2035dc);if(!_0x5af671)return;for(let [_0x3dba1f,_0x57fcf3]of _0x5af671){this[_0x227ef8(0xfe)][_0x227ef8(0xe6)](_0x5966b8,_0x2035dc,_0x3dba1f);let _0x3162c2=_0x57fcf3['sparklines'];_0x3162c2[_0x227ef8(0x9a)]((_0xa294fb,_0x13ed30,_0x11df3e)=>{const _0x288226=_0x227ef8;let _0x17a3a1={..._0x11df3e};_0x4f8935<=_0x17a3a1['startColumn']?(_0x17a3a1[_0x288226(0xca)]+=_0x39a26c,_0x17a3a1['endColumn']+=_0x39a26c):_0x4f8935>_0x17a3a1[_0x288226(0xce)]||(_0x17a3a1[_0x288226(0xce)]+=_0x39a26c),_0x3162c2['setValue'](_0xa294fb,_0x13ed30,_0x17a3a1);});let _0xa3a09b=_0x3162c2[_0x227ef8(0x131)]();for(let _0xceb89a in _0xa3a09b){let _0x1886a2=_0xa3a09b[Number(_0xceb89a)];if(!_0x1886a2)continue;let _0x4b35b6=Object[_0x227ef8(0x10f)](_0x1886a2)[_0x227ef8(0xcc)](Number),_0x33fd9d=Math[_0x227ef8(0xb1)](..._0x4b35b6);for(let _0x52cac3=_0x33fd9d;_0x52cac3>=_0x4f8935;_0x52cac3--)_0x52cac3>=_0x4f8935&&_0x1886a2[_0x52cac3]&&(_0x1886a2[_0x52cac3+_0x39a26c]=_0x1886a2[_0x52cac3],delete _0x1886a2[_0x52cac3]);}this[_0x227ef8(0xfe)][_0x227ef8(0xc3)](_0x5966b8,_0x2035dc,_0x3dba1f);}}else{if(_0x380055['id']===_0x43ee6c['id']){let {unitId:_0x4418a2,subUnitId:_0x3c95c1,range:_0x256a90}=_0x380055[_0x227ef8(0x12d)],_0x544e0e=_0x256a90[_0x227ef8(0x150)],_0x50897c=_0x256a90[_0x227ef8(0x13a)]-_0x256a90[_0x227ef8(0x150)]+0x1,_0x20d0b3=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x4418a2,_0x3c95c1);if(!_0x20d0b3)return;for(let [_0x40327f,_0x5f13c6]of _0x20d0b3){this[_0x227ef8(0xfe)][_0x227ef8(0xe6)](_0x4418a2,_0x3c95c1,_0x40327f);let _0x4fe6bc=_0x5f13c6[_0x227ef8(0x10b)];_0x4fe6bc[_0x227ef8(0x9a)]((_0xa54be0,_0x1d69da,_0x48628f)=>{const _0x1f8862=_0x227ef8;let _0x41090e={..._0x48628f};_0x544e0e<=_0x41090e[_0x1f8862(0x150)]?(_0x41090e[_0x1f8862(0x150)]+=_0x50897c,_0x41090e[_0x1f8862(0x13a)]+=_0x50897c):_0x544e0e>_0x41090e['endRow']||(_0x41090e['endRow']+=_0x50897c),_0x4fe6bc['setValue'](_0xa54be0,_0x1d69da,_0x41090e);});let _0x462dc7=_0x4fe6bc[_0x227ef8(0x131)](),_0x3b8c33=Object['keys'](_0x462dc7)[_0x227ef8(0xcc)](Number),_0x1d1c3b=Math['max'](..._0x3b8c33);for(let _0x33d009=_0x1d1c3b;_0x33d009>=_0x544e0e;_0x33d009--)_0x33d009>=_0x544e0e&&_0x462dc7[_0x33d009]&&(_0x462dc7[_0x33d009+_0x50897c]=_0x462dc7[_0x33d009],delete _0x462dc7[_0x33d009]);this[_0x227ef8(0xfe)]['updateSparklineExtraNum'](_0x4418a2,_0x3c95c1,_0x40327f);}}else{if(_0x380055['id']===_0xaf42d4['id']){let {range:_0xe6d909,unitId:_0x4f9324,subUnitId:_0x194c88}=_0x380055[_0x227ef8(0x12d)],_0xbc578f=this['_sparklineDataSourceModel'][_0x227ef8(0xa7)](_0x4f9324,_0x194c88);if(!_0xbc578f)return;for(let [_0x34f5e6,_0x1ee8a3]of _0xbc578f){let _0x3f1c19=_0x1ee8a3['sparklines'];_0x3f1c19['forValue']((_0x20b8c1,_0x276298,_0x590d25)=>{const _0x5b9d79=_0x227ef8;let _0x975bb6=_0x1864b1(_0x590d25,_0x380055);_0x975bb6?_0x3f1c19[_0x5b9d79(0x10e)](_0x20b8c1,_0x276298,_0x975bb6):_0x3f1c19['setValue'](_0x20b8c1,_0x276298,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x2d5019[_0x5b9d79(0x93)]});}),_0x3f1c19['removeColumns'](_0xe6d909[_0x227ef8(0xca)],_0xe6d909[_0x227ef8(0xce)]-_0xe6d909[_0x227ef8(0xca)]+0x1);}this[_0x227ef8(0xfe)][_0x227ef8(0xd2)](_0x4f9324,_0x194c88);}else{if(_0x380055['id']===_0x4988e7['id']){let {range:_0x3c90a5,unitId:_0x322c0b,subUnitId:_0x1113d7}=_0x380055['params'],_0x5bbe89=this[_0x227ef8(0xfe)][_0x227ef8(0xa7)](_0x322c0b,_0x1113d7);if(!_0x5bbe89)return;for(let [_0x3cbe36,_0x3ea5b6]of _0x5bbe89){let _0x1fe1fc=_0x3ea5b6[_0x227ef8(0x10b)];_0x1fe1fc[_0x227ef8(0x9a)]((_0x1a83eb,_0x25ca7c,_0x3b0dc8)=>{const _0x191d77=_0x227ef8;let _0x30f345=_0x1864b1(_0x3b0dc8,_0x380055);_0x30f345?_0x1fe1fc[_0x191d77(0x10e)](_0x1a83eb,_0x25ca7c,_0x30f345):_0x1fe1fc[_0x191d77(0x10e)](_0x1a83eb,_0x25ca7c,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x2d5019[_0x191d77(0x93)]});}),_0x1fe1fc['removeRows'](_0x3c90a5['startRow'],_0x3c90a5[_0x227ef8(0x13a)]-_0x3c90a5[_0x227ef8(0x150)]+0x1);}this[_0x227ef8(0xfe)][_0x227ef8(0xd2)](_0x322c0b,_0x1113d7);}else{if(_0x380055['id']===_0x334bf6['id']){let {unitId:_0x253d1a,subUnitId:_0x10c2b7,sourceRange:_0x3dad20,targetRange:_0x4adeca}=_0x380055[_0x227ef8(0x12d)],_0xb769e5=this['_sparklineDataSourceModel'][_0x227ef8(0xa7)](_0x253d1a,_0x10c2b7);if(!_0xb769e5)return;for(let [_0x2eaa13,_0x55834b]of _0xb769e5){let _0x4751fe=_0x55834b['sparklines'];_0x4751fe['forValue']((_0x598984,_0x32cbf8,_0x277163)=>{const _0x4f5558=_0x227ef8;let _0x48c9e1=_0x1864b1(_0x277163,_0x380055);_0x48c9e1?_0x4751fe[_0x4f5558(0x10e)](_0x598984,_0x32cbf8,_0x48c9e1):_0x4751fe[_0x4f5558(0x10e)](_0x598984,_0x32cbf8,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x2d5019[_0x4f5558(0x93)]});}),_0x4751fe[_0x227ef8(0x96)](_0x3dad20[_0x227ef8(0xca)],_0x3dad20[_0x227ef8(0xce)]-_0x3dad20[_0x227ef8(0xca)]+0x1,_0x4adeca['startColumn']);}this[_0x227ef8(0xfe)][_0x227ef8(0xd2)](_0x253d1a,_0x10c2b7);}else{if(_0x380055['id']===_0x47e42a['id']){let {unitId:_0x2f4f01,subUnitId:_0x1d7f23,sourceRange:_0x592546,targetRange:_0x53a768}=_0x380055[_0x227ef8(0x12d)],_0x4f2341=this[_0x227ef8(0xfe)][_0x227ef8(0xa7)](_0x2f4f01,_0x1d7f23);if(!_0x4f2341)return;for(let [_0x192b91,_0x199d57]of _0x4f2341){let _0x2b8bf4=_0x199d57[_0x227ef8(0x10b)];_0x2b8bf4[_0x227ef8(0x9a)]((_0x3dcd3a,_0x48d520,_0x3bd66b)=>{const _0x574cb0=_0x227ef8;let _0x43cf10=_0x1864b1(_0x3bd66b,_0x380055);_0x43cf10?_0x2b8bf4['setValue'](_0x3dcd3a,_0x48d520,_0x43cf10):_0x2b8bf4[_0x574cb0(0x10e)](_0x3dcd3a,_0x48d520,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x2d5019['NORMAL']});}),_0x2b8bf4[_0x227ef8(0x13b)](_0x592546['startRow'],_0x592546['endRow']-_0x592546['startRow']+0x1,_0x53a768['startRow']);}this[_0x227ef8(0xfe)]['reBuildAnchorCache'](_0x2f4f01,_0x1d7f23);}else{if(_0x380055['id']===_0x4d303a['id']){let {fromRange:_0x161176,toRange:_0x5edd7a,unitId:_0x376435,from:_0x48a480,to:_0x496f84}=_0x380055[_0x227ef8(0x12d)];if(_0x48a480[_0x227ef8(0xd7)]!==_0x496f84[_0x227ef8(0xd7)])return;let _0x5810d7=_0x48a480['subUnitId'],{startRow:_0x2b4125,endRow:_0x2727ab,startColumn:_0x2ad4fb,endColumn:_0x3bb08f}=_0x161176,{startRow:_0x522772,startColumn:_0x25abcf}=_0x5edd7a,_0xbf667e=_0x522772-_0x2b4125,_0x40b3f5=_0x25abcf-_0x2ad4fb,_0x53333a=this[_0x227ef8(0xfe)]['getSubUnitSparkline'](_0x376435,_0x5810d7);if(!(_0x53333a!=null&&_0x53333a[_0x227ef8(0xdc)]))return;for(let _0x539ac9=_0x2b4125;_0x539ac9<=_0x2727ab;_0x539ac9++)for(let _0x4902f1=_0x2ad4fb;_0x4902f1<=_0x3bb08f;_0x4902f1++){let _0x484087=this['_sparklineDataSourceModel'][_0x227ef8(0xf9)](_0x376435,_0x5810d7,_0x539ac9,_0x4902f1);if(_0x484087){let _0x1d1cf0=this[_0x227ef8(0xfe)]['getSparklineById'](_0x376435,_0x5810d7,_0x484087);if(_0x1d1cf0){let _0x5a2c5a=_0x1d1cf0[_0x227ef8(0x10b)][_0x227ef8(0x14d)](_0x539ac9,_0x4902f1);_0x5a2c5a&&(_0x1d1cf0[_0x227ef8(0x10b)][_0x227ef8(0x10e)](_0x539ac9+_0xbf667e,_0x4902f1+_0x40b3f5,_0x5a2c5a),_0x1d1cf0[_0x227ef8(0x10b)]['realDeleteValue'](_0x539ac9,_0x4902f1));}}}for(let [_0x1a0aa3,_0x5ee601]of _0x53333a){let _0x16cea3=_0x5ee601['sparklines'];_0x16cea3[_0x227ef8(0x9a)]((_0x42aeba,_0x3c92b9,_0x52d990)=>{const _0x2d9b21=_0x227ef8;let _0x58c684={..._0x52d990};_0x379596[_0x2d9b21(0x155)](_0x161176,_0x52d990)&&(_0x58c684['startRow']+=_0xbf667e,_0x58c684[_0x2d9b21(0x13a)]+=_0xbf667e,_0x58c684[_0x2d9b21(0xca)]+=_0x40b3f5,_0x58c684[_0x2d9b21(0xce)]+=_0x40b3f5),_0x16cea3[_0x2d9b21(0x10e)](_0x42aeba,_0x3c92b9,_0x58c684);});}this[_0x227ef8(0xfe)]['reBuildAnchorCache'](_0x376435,_0x5810d7);}}}}}}}}));}};X=B([z(0x0,_0x178f0f(_0x2891f1)),z(0x1,_0x178f0f(_0x28308d)),z(0x2,_0x4b08b3),z(0x3,_0x178f0f(V))],X);let Z=class extends _0x1aa6ec{constructor(_0x347b28,_0x2ee185,_0x2dee74){const _0x33cf79=_0x4ab8a2;super(),this['_univerInstanceService']=_0x347b28,this['_sheetInterceptorService']=_0x2ee185,this[_0x33cf79(0xfe)]=_0x2dee74,this[_0x33cf79(0x152)]();}[_0x4ab8a2(0x152)](){const _0x5604a7=_0x4ab8a2;this[_0x5604a7(0xf3)](this[_0x5604a7(0x8d)][_0x5604a7(0xde)]({'getMutations':_0x11a110=>{const _0x34e503=_0x5604a7;if(_0x11a110['id']===_0x3a14e5['id']){var _0x2f3084;let _0x1293cd=_0x11a110[_0x34e503(0x12d)],_0x465ba2=_0x1293cd[_0x34e503(0x147)]||this[_0x34e503(0xa9)][_0x34e503(0xa4)](_0x518316['UNIVER_SHEET'])[_0x34e503(0x132)](),_0x32e524=_0x1293cd[_0x34e503(0xd7)]||((_0x2f3084=this[_0x34e503(0xa9)][_0x34e503(0xa4)](_0x518316[_0x34e503(0xac)])[_0x34e503(0x107)]())==null?void 0x0:_0x2f3084[_0x34e503(0xbf)]());if(!_0x465ba2||!_0x32e524)return{'redos':[],'undos':[]};let _0x5d8792=this[_0x34e503(0xfe)][_0x34e503(0xa7)](_0x465ba2,_0x32e524);if(!_0x5d8792)return{'redos':[],'undos':[]};let _0x5d5f8d=new Set(),_0x591166={};for(let [_0x205817,_0x2e2c82]of _0x5d8792)_0x5d5f8d[_0x34e503(0x116)](_0x205817),_0x591166[_0x205817]={'config':_0x1f3830[_0x34e503(0x13d)](_0x2e2c82[_0x34e503(0x92)]),'sparklines':_0x1f3830[_0x34e503(0x13d)](_0x2e2c82[_0x34e503(0x10b)][_0x34e503(0x142)]())};if(_0x5d5f8d['size'])return{'redos':[{'id':U['id'],'params':{'unitId':_0x465ba2,'subUnitId':_0x32e524,'groupIds':Array[_0x34e503(0xa1)](_0x5d5f8d),'isSingle':!0x1}}],'undos':[{'id':H['id'],'params':{'unitId':_0x465ba2,'subUnitId':_0x32e524,'sparklineConfigMap':_0x591166}}]};}else{if(_0x11a110['id']===_0x35fcba['id']){let {unitId:_0x5e22ec,subUnitId:_0x48e502,targetSubUnitId:_0x17fb9f}=_0x11a110[_0x34e503(0x12d)];if(!_0x5e22ec||!_0x48e502||!_0x17fb9f)return{'redos':[],'undos':[]};let _0x3c55c1=this[_0x34e503(0xfe)][_0x34e503(0xa7)](_0x5e22ec,_0x48e502);if(!_0x3c55c1)return{'redos':[],'undos':[]};let _0x1f2cfa=new Set(),_0x202643={};for(let [_0x45680a,_0x31c0da]of _0x3c55c1){let _0x28e206='g_'+_0x5357aa(0x6);_0x1f2cfa[_0x34e503(0x116)](_0x45680a),_0x202643[_0x28e206]={'config':_0x1f3830[_0x34e503(0x13d)](_0x31c0da[_0x34e503(0x92)]),'sparklines':_0x1f3830[_0x34e503(0x13d)](_0x31c0da[_0x34e503(0x10b)][_0x34e503(0x142)]())};}if(_0x1f2cfa[_0x34e503(0xdc)])return{'redos':[{'id':H['id'],'params':{'unitId':_0x5e22ec,'subUnitId':_0x17fb9f,'sparklineConfigMap':_0x202643}}],'undos':[{'id':U['id'],'params':{'unitId':_0x5e22ec,'subUnitId':_0x17fb9f,'groupIds':Array[_0x34e503(0xa1)](_0x1f2cfa),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};Z=B([z(0x0,_0x178f0f(_0x4b08b3)),z(0x1,_0x178f0f(_0x1d7396)),z(0x2,_0x178f0f(V))],Z);let Q=class extends _0x1aa6ec{constructor(_0x27d1bd,_0x10936c){super(),this['_resourceManagerService']=_0x27d1bd,this['_sparklineDataSourceModel']=_0x10936c,this['_initSnapshot']();}['_initSnapshot'](){const _0x547552=_0x4ab8a2;this[_0x547552(0xf3)](this[_0x547552(0xdd)][_0x547552(0x133)]({'toJson':_0xb05e5f=>{const _0x3c9512=_0x547552;let _0x42221d=this['_sparklineDataSourceModel']['toJSON'](_0xb05e5f);return _0x42221d?JSON[_0x3c9512(0xf1)](_0x42221d):'';},'parseJson':_0x124229=>_0x124229?JSON[_0x547552(0xa6)](_0x124229):{},'pluginName':F,'businesses':[_0x518316[_0x547552(0xac)]],'onLoad':(_0x1055f1,_0x193942)=>{const _0x59ddd7=_0x547552;this['_sparklineDataSourceModel'][_0x59ddd7(0xc7)](_0x193942);},'onUnLoad':_0x32e0d6=>{const _0x3dc864=_0x547552;this[_0x3dc864(0xfe)][_0x3dc864(0x139)](_0x32e0d6);}}));}};Q=B([z(0x0,_0x178f0f(_0x62c54a)),z(0x1,_0x178f0f(V))],Q);let $=class extends _0x266378{constructor(_0x1376b9=G,_0x3b1f22,_0x5d20bf,_0x191001){const _0x1d34e9=_0x4ab8a2;super(),this[_0x1d34e9(0xd3)]=_0x1376b9,this['_injector']=_0x3b1f22,this['_configService']=_0x5d20bf,this[_0x1d34e9(0x114)]=_0x191001;let {..._0x3d9042}=_0x56403a({},G,this[_0x1d34e9(0xd3)]);this[_0x1d34e9(0xd4)]['setConfig'](_0x1d34e9(0xfc),_0x3d9042),this[_0x1d34e9(0x8b)](),this['_initRegisterCommand']();}[_0x4ab8a2(0x8b)](){const _0x2a2abb=_0x4ab8a2;[[V],[q],[Y],[K],[X],[J],[Z],[Q]][_0x2a2abb(0x119)](_0x49ce58=>{const _0x49b069=_0x2a2abb;this[_0x49b069(0x112)][_0x49b069(0x116)](_0x49ce58);}),_0x5ce50e(this[_0x2a2abb(0x112)],[[Q]]);}['onReady'](){_0x5ce50e(this['_injector'],[[q],[Y],[K],[X],[J],[Z]]);}[_0x4ab8a2(0x105)](){const _0x4634ce=_0x4ab8a2;[De,H,Oe,U,ke,W]['forEach'](_0x2fa056=>this['_commandService'][_0x4634ce(0xe7)](_0x2fa056));}};R($,_0x4ab8a2(0x8e),F),R($,_0x4ab8a2(0xda),Ae),R($,_0x4ab8a2(0x99),je),R($,_0x4ab8a2(0x102),_0x518316['UNIVER_SHEET']),$=B([_0x140d9e(_0x2cfd74),z(0x1,_0x178f0f(_0x37b37d)),z(0x2,_0x3c3457),z(0x3,_0x178f0f(_0x2891f1))],$);export{De as AddSheetSparklineCommand,H as AddSheetSparklineMutation,F as PLUGIN_NAME,Oe as RemoveSheetSparklineCommand,U as RemoveSheetSparklineMutation,ke as SetSheetSparklineCommand,W as SetSheetSparklineMutation,Ce as SpacialShowAsEnum,V as SparklineDataSourceModel,we as SparklineExtremumTypeEnum,be as SparklinePointsNames,I as SparklineThemeMapping,xe as SparklineThemeTypeEnum,Se as SparklineTypeEnum,$ as UniverSheetSparklinePlugin};
1
+ const _0x12ae13=_0xd85e;(function(_0x162328,_0x1c4be4){const _0x6accf4=_0xd85e,_0x317598=_0x162328();while(!![]){try{const _0x150c70=parseInt(_0x6accf4(0x198))/0x1+parseInt(_0x6accf4(0x1f1))/0x2+parseInt(_0x6accf4(0x24b))/0x3*(parseInt(_0x6accf4(0x23d))/0x4)+parseInt(_0x6accf4(0x211))/0x5*(parseInt(_0x6accf4(0x24a))/0x6)+-parseInt(_0x6accf4(0x1a2))/0x7*(-parseInt(_0x6accf4(0x1c3))/0x8)+-parseInt(_0x6accf4(0x20d))/0x9+-parseInt(_0x6accf4(0x24e))/0xa;if(_0x150c70===_0x1c4be4)break;else _0x317598['push'](_0x317598['shift']());}catch(_0x3ea8eb){_0x317598['push'](_0x317598['shift']());}}}(_0x3b6d,0x2f044));import{CellValueType as _0x1b9779,ColorKit as _0x961172,CommandType as _0x1425b9,DependentOn as _0x5d1c4c,Disposable as _0x4520ca,DisposableCollection as _0x161073,ICommandService as _0x281644,IConfigService as _0x5b4154,IResourceManagerService as _0x3482e9,IUndoRedoService as _0x1ce2b8,IUniverInstanceService as _0x1f105a,Inject as _0x32409c,Injector as _0x29304c,ObjectMatrix as _0x5a9674,Plugin as _0x29f5c1,RANGE_TYPE as _0x28be3c,Range as _0x161a6b,Rectangle as _0x3b8f67,Tools as _0x3ff2e1,UniverInstanceType as _0x21c0bd,cellToRange as _0xdf0dbb,generateRandomId as _0x58a840,isValidRange as _0x2b4996,merge as _0x5b79c8,sequenceExecute as _0x14e914,touchDependencies as _0x265af1}from'@univerjs/core';import{AddWorksheetMergeCommand as _0x159f84,ClearSelectionAllCommand as _0x4d2426,CopySheetCommand as _0x41d738,IExclusiveRangeService as _0x11335e,InsertColMutation as _0xfea942,InsertRowMutation as _0x5579cd,MoveColsMutation as _0x181f56,MoveRangeMutation as _0x44909e,MoveRowsMutation as _0x5a6689,RefRangeService as _0xa80cda,RemoveColCommand as _0x5269ed,RemoveColMutation as _0x8b7c11,RemoveRowCommand as _0xaa2e08,RemoveRowMutation as _0x2d3f3d,RemoveSheetCommand as _0x5291ed,ReorderRangeMutation as _0x1188c2,SetColHiddenMutation as _0x5c3d74,SetColVisibleMutation as _0x1ee2a3,SetRangeValuesMutation as _0x4898f2,SetRowHiddenMutation as _0x178290,SetRowVisibleMutation as _0x2434f1,SetWorksheetActivateCommand as _0x5b1b29,SheetInterceptorService as _0x2fd56f,SheetsSelectionsService as _0x4ad378,UniverSheetsPlugin as _0x51081f,adjustRangeOnMutation as _0x50c42e,getSheetCommandTarget as _0x5221bf}from'@univerjs/sheets';import{Subject as _0x298c62}from'rxjs';import{UniverLicensePlugin as _0xf45a4d}from'@univerjs-pro/license';function F(_0x55c5ab,_0xf7f27c){const _0x133f5d=_0xd85e;let _0x1ccc88=new _0x5a9674(),_0x467f37=[],_0x79e7ba=_0x55c5ab[_0x133f5d(0x1f0)]>0x1,_0x9e4eab=0x0,_0x4a240f=0x0;for(let _0x2f1150 of _0x55c5ab)_0x9e4eab+=_0x2f1150['endRow']-_0x2f1150['startRow']+0x1,_0x4a240f+=_0x2f1150['endColumn']-_0x2f1150[_0x133f5d(0x1ee)]+0x1;for(let _0x117d97 of _0xf7f27c)for(let _0x1088c0=_0x117d97[_0x133f5d(0x1d1)];_0x1088c0<=_0x117d97[_0x133f5d(0x238)];_0x1088c0++)for(let _0x1e37c4=_0x117d97[_0x133f5d(0x1ee)];_0x1e37c4<=_0x117d97[_0x133f5d(0x21e)];_0x1e37c4++)_0x467f37[_0x133f5d(0x1d6)]({'row':_0x1088c0,'column':_0x1e37c4});if(_0x467f37['length']===_0x9e4eab)_0x79e7ba?_0x467f37[_0x133f5d(0x19c)]((_0x32b4cb,_0x448948)=>{const _0x41c119=_0x133f5d;let _0x3c9335=_0x55c5ab[_0x448948],_0x43c44f={'startRow':_0x3c9335['startRow'],'startColumn':_0x3c9335[_0x41c119(0x1ee)],'endRow':_0x3c9335[_0x41c119(0x1d1)],'endColumn':_0x3c9335[_0x41c119(0x21e)]};_0x1ccc88['setValue'](_0x32b4cb[_0x41c119(0x24c)],_0x32b4cb[_0x41c119(0x1d8)],_0x43c44f);}):_0x467f37['forEach']((_0x2aff14,_0x2c34c5)=>{const _0x77f22b=_0x133f5d;let _0x4dc335=_0x55c5ab[0x0],_0x54d3e7={'startRow':_0x4dc335[_0x77f22b(0x1d1)]+_0x2c34c5,'startColumn':_0x4dc335[_0x77f22b(0x1ee)],'endRow':_0x4dc335[_0x77f22b(0x1d1)]+_0x2c34c5,'endColumn':_0x4dc335['endColumn']};_0x1ccc88[_0x77f22b(0x1f8)](_0x2aff14['row'],_0x2aff14[_0x77f22b(0x1d8)],_0x54d3e7);});else{if(_0x467f37[_0x133f5d(0x1f0)]===_0x4a240f)_0x79e7ba?_0x467f37['forEach']((_0x19d96f,_0x20d8e1)=>{const _0x62fd09=_0x133f5d;let _0x2c4b33=_0x55c5ab[_0x20d8e1],_0x3fef23={'startRow':_0x2c4b33[_0x62fd09(0x1d1)],'startColumn':_0x2c4b33[_0x62fd09(0x1ee)],'endRow':_0x2c4b33[_0x62fd09(0x238)],'endColumn':_0x2c4b33['startColumn']};_0x1ccc88['setValue'](_0x19d96f[_0x62fd09(0x24c)],_0x19d96f[_0x62fd09(0x1d8)],_0x3fef23);}):_0x467f37['forEach']((_0x4b89f1,_0x3f4398)=>{const _0x3871b5=_0x133f5d;let _0x1a3356=_0x55c5ab[0x0],_0x452bc9={'startRow':_0x1a3356[_0x3871b5(0x1d1)],'startColumn':_0x1a3356[_0x3871b5(0x1ee)]+_0x3f4398,'endRow':_0x1a3356[_0x3871b5(0x238)],'endColumn':_0x1a3356['startColumn']+_0x3f4398};_0x1ccc88[_0x3871b5(0x1f8)](_0x4b89f1['row'],_0x4b89f1[_0x3871b5(0x1d8)],_0x452bc9);});else{if(_0x467f37[_0x133f5d(0x1f0)]===_0x55c5ab['length'])_0x55c5ab[_0x133f5d(0x218)](_0x6ff8e0=>_0x6ff8e0['startRow']===_0x6ff8e0[_0x133f5d(0x238)]||_0x6ff8e0['startColumn']===_0x6ff8e0['endColumn'])&&_0x467f37['forEach']((_0x55c859,_0x3da296)=>{const _0x244ae4=_0x133f5d;let _0x54ab17=_0x55c5ab[_0x3da296];_0x1ccc88[_0x244ae4(0x1f8)](_0x55c859[_0x244ae4(0x24c)],_0x55c859[_0x244ae4(0x1d8)],_0x54ab17);});else throw Error('Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.');}}return _0x1ccc88;}const I='SHEET_SPARKLINE_PLUGIN',L={'standard':['rgb(54,78,244)',_0x12ae13(0x20e)],'specialty':[_0x12ae13(0x1a7),_0x12ae13(0x228)],'distinctive':[_0x12ae13(0x212),'rgb(252,117,60)'],'soft':[_0x12ae13(0x203),_0x12ae13(0x23b)],'fresh':[_0x12ae13(0x204),_0x12ae13(0x1e7)]},be=['highPoint',_0x12ae13(0x19e),_0x12ae13(0x199),'lowPoint',_0x12ae13(0x207),_0x12ae13(0x206)];let xe=function(_0x4020a6){const _0x175fcf=_0x12ae13;return _0x4020a6[_0x175fcf(0x202)]='standard',_0x4020a6[_0x175fcf(0x231)]='specialty',_0x4020a6['DISTINCTIVE']=_0x175fcf(0x1c9),_0x4020a6[_0x175fcf(0x237)]=_0x175fcf(0x1fa),_0x4020a6['FRESH']=_0x175fcf(0x1c1),_0x4020a6['CUSTOM']=_0x175fcf(0x1b9),_0x4020a6;}({}),Se=function(_0x4918c9){const _0x2d7bbe=_0x12ae13;return _0x4918c9[_0x4918c9[_0x2d7bbe(0x248)]=0x1]=_0x2d7bbe(0x248),_0x4918c9[_0x4918c9[_0x2d7bbe(0x1ef)]=0x2]=_0x2d7bbe(0x1ef),_0x4918c9[_0x4918c9['PROFIT_AND_LOSS_CHART']=0x3]=_0x2d7bbe(0x213),_0x4918c9[_0x4918c9[_0x2d7bbe(0x1b5)]=0x4]=_0x2d7bbe(0x1b5),_0x4918c9;}({}),Ce=function(_0x5c4188){const _0x486aa0=_0x12ae13;return _0x5c4188['SPACING']=_0x486aa0(0x1e3),_0x5c4188['ZERO_VALUE']=_0x486aa0(0x1f3),_0x5c4188['CONNECT_WITH_LINE']=_0x486aa0(0x20b),_0x5c4188;}({}),we=function(_0x7483ed){const _0x36d0f4=_0x12ae13;return _0x7483ed[_0x7483ed['SELF_EXTREMUM']=0x1]='SELF_EXTREMUM',_0x7483ed[_0x7483ed[_0x36d0f4(0x239)]=0x2]=_0x36d0f4(0x239),_0x7483ed[_0x7483ed['CUSTOM_EXTREMUM']=0x3]=_0x36d0f4(0x236),_0x7483ed;}({});function R(_0x31700c){'@babel/helpers - typeof';const _0x2c19c3=_0x12ae13;return R=typeof Symbol==_0x2c19c3(0x222)&&typeof Symbol['iterator']==_0x2c19c3(0x1cc)?function(_0x4e0dbb){return typeof _0x4e0dbb;}:function(_0x4083d3){const _0x531b08=_0x2c19c3;return _0x4083d3&&typeof Symbol==_0x531b08(0x222)&&_0x4083d3[_0x531b08(0x217)]===Symbol&&_0x4083d3!==Symbol['prototype']?_0x531b08(0x1cc):typeof _0x4083d3;},R(_0x31700c);}function Te(_0xea8afe,_0x5ee33d){const _0x5ee764=_0x12ae13;if(R(_0xea8afe)!=_0x5ee764(0x258)||!_0xea8afe)return _0xea8afe;var _0x51dc73=_0xea8afe[Symbol[_0x5ee764(0x1e0)]];if(_0x51dc73!==void 0x0){var _0x245f74=_0x51dc73['call'](_0xea8afe,_0x5ee33d||_0x5ee764(0x23a));if(R(_0x245f74)!=_0x5ee764(0x258))return _0x245f74;throw TypeError(_0x5ee764(0x1bf));}return(_0x5ee33d===_0x5ee764(0x1b2)?String:Number)(_0xea8afe);}function Ee(_0x3220ab){const _0x1187df=_0x12ae13;var _0x30dc1a=Te(_0x3220ab,_0x1187df(0x1b2));return R(_0x30dc1a)==_0x1187df(0x1cc)?_0x30dc1a:_0x30dc1a+'';}function z(_0x19a9a3,_0x3b43f8,_0x2aec09){return(_0x3b43f8=Ee(_0x3b43f8))in _0x19a9a3?Object['defineProperty'](_0x19a9a3,_0x3b43f8,{'value':_0x2aec09,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19a9a3[_0x3b43f8]=_0x2aec09,_0x19a9a3;}function B(_0x37bee9,_0x264e5c){return function(_0x11d2aa,_0x4e726e){_0x264e5c(_0x11d2aa,_0x4e726e,_0x37bee9);};}function V(_0x50586c,_0x142376,_0x23fbcb,_0x42f7fc){const _0x4866be=_0x12ae13;var _0x1fa846=arguments['length'],_0x5a6d9f=_0x1fa846<0x3?_0x142376:_0x42f7fc===null?_0x42f7fc=Object['getOwnPropertyDescriptor'](_0x142376,_0x23fbcb):_0x42f7fc,_0x3ffa13;if(typeof Reflect==_0x4866be(0x258)&&typeof Reflect['decorate']==_0x4866be(0x222))_0x5a6d9f=Reflect[_0x4866be(0x19b)](_0x50586c,_0x142376,_0x23fbcb,_0x42f7fc);else{for(var _0x1dadf9=_0x50586c[_0x4866be(0x1f0)]-0x1;_0x1dadf9>=0x0;_0x1dadf9--)(_0x3ffa13=_0x50586c[_0x1dadf9])&&(_0x5a6d9f=(_0x1fa846<0x3?_0x3ffa13(_0x5a6d9f):_0x1fa846>0x3?_0x3ffa13(_0x142376,_0x23fbcb,_0x5a6d9f):_0x3ffa13(_0x142376,_0x23fbcb))||_0x5a6d9f);}return _0x1fa846>0x3&&_0x5a6d9f&&Object[_0x4866be(0x220)](_0x142376,_0x23fbcb,_0x5a6d9f),_0x5a6d9f;}let H=class extends _0x4520ca{constructor(_0x55fddb){const _0x56cbe5=_0x12ae13;super(),this[_0x56cbe5(0x21b)]=_0x55fddb,z(this,'_sparklineModel',new Map()),z(this,_0x56cbe5(0x1de),new Map()),z(this,_0x56cbe5(0x1ba),new _0x298c62()),z(this,'updateConfig$',this[_0x56cbe5(0x1ba)][_0x56cbe5(0x1b3)]());}[_0x12ae13(0x1eb)](_0x1cb24e,_0x12dc53){const _0x406a3b=_0x12ae13;let _0x39b450=this['_sparklineModel'][_0x406a3b(0x1a3)](_0x1cb24e);_0x39b450||(_0x39b450=new Map(),this[_0x406a3b(0x225)][_0x406a3b(0x1e4)](_0x1cb24e,_0x39b450));let _0x3f341f=_0x39b450['get'](_0x12dc53);return _0x3f341f||(_0x3f341f=new Map(),_0x39b450[_0x406a3b(0x1e4)](_0x12dc53,_0x3f341f)),_0x3f341f;}[_0x12ae13(0x256)](_0x33942c,_0x5561bd){const _0x2eaebd=_0x12ae13;let _0x16aaf6=this[_0x2eaebd(0x1de)][_0x2eaebd(0x1a3)](_0x33942c);_0x16aaf6||(_0x16aaf6=new Map(),this['_sparklineAnchorMap'][_0x2eaebd(0x1e4)](_0x33942c,_0x16aaf6));let _0x23eb7b=_0x16aaf6[_0x2eaebd(0x1a3)](_0x5561bd);return _0x23eb7b||(_0x23eb7b={'matrix':new _0x5a9674(),'extra':{}},_0x16aaf6[_0x2eaebd(0x1e4)](_0x5561bd,_0x23eb7b)),_0x23eb7b;}[_0x12ae13(0x1e9)](_0x18b6e4,_0x2cc6a6,_0x612277,_0x175c04=_0x12ae13(0x1e4)){const _0x6f1f0e=_0x12ae13;var _0x4c2eb3,_0x45ae5f,_0x5e6da2,_0x894aed,_0x54d987,_0x1efb07,_0x138cc1,_0x303399;let _0x515fe2=(_0x4c2eb3=this[_0x6f1f0e(0x225)][_0x6f1f0e(0x1a3)](_0x18b6e4))==null||(_0x4c2eb3=_0x4c2eb3[_0x6f1f0e(0x1a3)](_0x2cc6a6))==null?void 0x0:_0x4c2eb3[_0x6f1f0e(0x1a3)](_0x612277);if(!_0x515fe2)return;let _0x4b6002=_0x5221bf(this[_0x6f1f0e(0x21b)],{'unitId':_0x18b6e4,'subUnitId':_0x2cc6a6});if(!_0x4b6002)return;let {extra:_0x1346fa,matrix:_0x3254c4}=this[_0x6f1f0e(0x256)](_0x18b6e4,_0x2cc6a6),{worksheet:_0x783dd6}=_0x4b6002,_0x1e558f=-(0x2**0x35-0x1),_0x56fe97=0x2**0x35-0x1,_0x183cfa=(_0x45ae5f=_0x515fe2[_0x6f1f0e(0x1c4)]['containHiddenCells'])!=null&&_0x45ae5f;_0x515fe2[_0x6f1f0e(0x1b7)][_0x6f1f0e(0x234)]((_0x1b96b1,_0x1a5fd6,_0x2c448b)=>{const _0x2db9d6=_0x6f1f0e;let _0x1f908a=_0x2c448b,_0x4d2fe9=-(0x2**0x35-0x1),_0x39e161=0x2**0x35-0x1,_0x1edd5b=0x0,_0x5be03a=0x0,_0x8c198b=[];if(!_0x2b4996(_0x1f908a))_0x3254c4['setValue'](_0x1b96b1,_0x1a5fd6,{'groupId':_0x612277,'data':[],'max':_0x4d2fe9,'min':_0x39e161,'highIndex':_0x1edd5b,'lowIndex':_0x5be03a,'negativeIndexes':_0x8c198b});else{let _0x4c91e4=[];for(let _0x3900b9=_0x1f908a[_0x2db9d6(0x1d1)];_0x3900b9<=_0x1f908a[_0x2db9d6(0x238)];_0x3900b9++){for(let _0x3bf843=_0x1f908a[_0x2db9d6(0x1ee)];_0x3bf843<=_0x1f908a[_0x2db9d6(0x21e)];_0x3bf843++){var _0x5c826e;let _0x54be5c=_0x783dd6[_0x2db9d6(0x1e2)](_0x3900b9),_0x555357=_0x783dd6[_0x2db9d6(0x208)](_0x3bf843);if(!_0x183cfa&&(!_0x54be5c||!_0x555357))continue;let _0x5dccbb=0x0,_0x358a8a=((_0x5c826e=_0x783dd6['getCellRaw'](_0x3900b9,_0x3bf843))==null?void 0x0:_0x5c826e['v'])===void 0x0?_0x783dd6['getCell'](_0x3900b9,_0x3bf843):_0x783dd6['getCellRaw'](_0x3900b9,_0x3bf843);if(!_0x358a8a||_0x358a8a['v']===void 0x0||_0x358a8a['v']===null){var _0x533538;let _0x26b557=(_0x533538=_0x515fe2[_0x2db9d6(0x1c4)][_0x2db9d6(0x205)])==null?_0x2db9d6(0x1e3):_0x533538;_0x26b557==='zero_value'?_0x5dccbb=0x0:_0x26b557==='spacing'?_0x5dccbb=_0x2db9d6(0x255):_0x26b557===_0x2db9d6(0x20b)&&(_0x5dccbb=_0x2db9d6(0x23c));}else{if(_0x358a8a['t']===_0x1b9779[_0x2db9d6(0x1da)]||_0x358a8a['t']===_0x1b9779[_0x2db9d6(0x21a)]){var _0x508347;let _0x42127b=(_0x508347=_0x515fe2['config'][_0x2db9d6(0x19f)])==null?_0x2db9d6(0x1e3):_0x508347;_0x42127b===_0x2db9d6(0x1f3)?_0x5dccbb=0x0:_0x42127b==='spacing'?_0x5dccbb=_0x2db9d6(0x255):_0x42127b===_0x2db9d6(0x20b)&&(_0x5dccbb='u-connect');}else _0x5dccbb=_0x358a8a['t']===_0x1b9779[_0x2db9d6(0x1d0)]?+!!_0x358a8a['v']:_0x358a8a['t']===_0x1b9779[_0x2db9d6(0x244)]?Number(_0x358a8a['v']):_0x358a8a['v'];}if(_0x4c91e4[_0x2db9d6(0x1d6)](_0x5dccbb),typeof _0x5dccbb=='number'){_0x4d2fe9=Math[_0x2db9d6(0x1a0)](_0x4d2fe9,_0x5dccbb),_0x1e558f=Math[_0x2db9d6(0x1a0)](_0x1e558f,_0x5dccbb),_0x56fe97=Math[_0x2db9d6(0x197)](_0x56fe97,_0x5dccbb),_0x39e161=Math[_0x2db9d6(0x197)](_0x39e161,_0x5dccbb);let _0x51d31a=typeof _0x4c91e4[_0x1edd5b]==_0x2db9d6(0x251)?Number(_0x4c91e4[_0x1edd5b]):-(0x2**0x35-0x1);_0x5dccbb>_0x51d31a&&(_0x1edd5b=_0x4c91e4['length']-0x1);let _0x178956=typeof _0x4c91e4[_0x5be03a]==_0x2db9d6(0x251)?Number(_0x4c91e4[_0x5be03a]):0x2**0x35-0x1;_0x5dccbb<_0x178956&&(_0x5be03a=_0x4c91e4[_0x2db9d6(0x1f0)]-0x1),_0x5dccbb<0x0&&_0x8c198b[_0x2db9d6(0x1d6)](_0x4c91e4[_0x2db9d6(0x1f0)]-0x1);}}_0x3254c4['setValue'](_0x1b96b1,_0x1a5fd6,{'groupId':_0x612277,'data':_0x4c91e4,'max':_0x4d2fe9,'min':_0x39e161,'highIndex':_0x1edd5b,'lowIndex':_0x5be03a,'negativeIndexes':_0x8c198b});}}});let _0x50c8e8=_0x1e558f;if(((_0x5e6da2=_0x515fe2[_0x6f1f0e(0x1c4)][_0x6f1f0e(0x227)])==null?void 0x0:_0x5e6da2[_0x6f1f0e(0x1f5)])===0x3){var _0x2c2c59,_0x528123;_0x50c8e8=(_0x2c2c59=(_0x528123=_0x515fe2['config'][_0x6f1f0e(0x227)])==null?void 0x0:_0x528123[_0x6f1f0e(0x224)])==null?_0x1e558f:_0x2c2c59;}let _0x498d19=_0x56fe97;if(((_0x894aed=_0x515fe2['config'][_0x6f1f0e(0x1c6)])==null?void 0x0:_0x894aed[_0x6f1f0e(0x1f5)])===0x3){var _0x54eac3,_0x5ea677;_0x498d19=(_0x54eac3=(_0x5ea677=_0x515fe2[_0x6f1f0e(0x1c4)]['extremumMin'])==null?void 0x0:_0x5ea677['value'])==null?_0x56fe97:_0x54eac3;}let _0x4d090a=(_0x54d987=_0x515fe2[_0x6f1f0e(0x1c4)][_0x6f1f0e(0x1ce)])==null?'standard':_0x54d987,_0x172456=new _0x961172((_0x1efb07=(_0x138cc1=_0x515fe2[_0x6f1f0e(0x1c4)]['seriesColor'])==null?(_0x303399=L[_0x4d090a])==null?void 0x0:_0x303399[0x0]:_0x138cc1)==null?L[_0x6f1f0e(0x1cf)][0x0]:_0x1efb07),_0xaa63ff=_0x172456[_0x6f1f0e(0x1f2)](0.2)[_0x6f1f0e(0x1db)](),_0xe67823=_0x172456['setAlpha'](0.05)['toRgbString']();_0x1346fa[_0x612277]={'groupMax':_0x1e558f,'groupMin':_0x56fe97,'showMax':_0x50c8e8,'showMin':_0x498d19,'startGradient':_0xaa63ff,'endGradient':_0xe67823},this[_0x6f1f0e(0x1ba)][_0x6f1f0e(0x1a5)]({'unitId':_0x18b6e4,'subUnitId':_0x2cc6a6,'groupId':_0x612277,'config':_0x515fe2,'type':_0x175c04});}['addSparkline'](_0x1d0183,_0x1f2ac6,_0x490cbd,_0x44aff2){const _0x7450db=_0x12ae13;this[_0x7450db(0x1eb)](_0x1d0183,_0x1f2ac6)[_0x7450db(0x1e4)](_0x490cbd,_0x44aff2),this[_0x7450db(0x1e9)](_0x1d0183,_0x1f2ac6,_0x490cbd,_0x7450db(0x215));}[_0x12ae13(0x1ad)](_0x5a0039,_0x16582a,_0x1d1888,_0x4ad042){const _0x375470=_0x12ae13;var _0x85d4a7;let _0x1344c3=(_0x85d4a7=this[_0x375470(0x225)]['get'](_0x5a0039))==null?void 0x0:_0x85d4a7['get'](_0x16582a);_0x1d1888['forEach'](_0x1dc0dc=>{const _0x1125fd=_0x375470;_0x1344c3!=null&&_0x1344c3[_0x1125fd(0x1e8)](_0x1dc0dc)&&(_0x1344c3[_0x1125fd(0x1e4)](_0x1dc0dc,_0x4ad042),this[_0x1125fd(0x1e9)](_0x5a0039,_0x16582a,_0x1dc0dc));});}[_0x12ae13(0x21c)](_0x303072,_0x4a46df,_0x2dfd1d){const _0x36a06f=_0x12ae13;let _0x2b0b8b=this['_sparklineModel']['get'](_0x303072);if(_0x2b0b8b){let _0x31a51c=_0x2b0b8b[_0x36a06f(0x1a3)](_0x4a46df);if(_0x31a51c){var _0x5edfb7,_0x441a3e;_0x31a51c[_0x36a06f(0x1b8)](_0x2dfd1d);let _0x3a7149=(_0x5edfb7=this[_0x36a06f(0x1de)]['get'](_0x303072))==null?void 0x0:_0x5edfb7[_0x36a06f(0x1a3)](_0x4a46df);_0x3a7149==null||(_0x441a3e=_0x3a7149['matrix'])==null||_0x441a3e[_0x36a06f(0x234)]((_0x365220,_0x1018f2,_0x41f67d)=>{const _0x4e3b15=_0x36a06f;(_0x41f67d==null?void 0x0:_0x41f67d[_0x4e3b15(0x1b6)])===_0x2dfd1d&&(_0x3a7149==null||_0x3a7149[_0x4e3b15(0x223)][_0x4e3b15(0x219)](_0x365220,_0x1018f2));}),this[_0x36a06f(0x1ba)][_0x36a06f(0x1a5)]({'unitId':_0x303072,'subUnitId':_0x4a46df,'groupId':_0x2dfd1d,'type':_0x36a06f(0x1d9)}),_0x31a51c['size']===0x0&&_0x2b0b8b[_0x36a06f(0x1b8)](_0x4a46df);}}}[_0x12ae13(0x22a)](_0x1ed1de,_0x1665ab,_0x296e16,_0x15d92c){const _0x2bdd13=_0x12ae13;var _0x54f316;let _0x1bae19=(_0x54f316=this[_0x2bdd13(0x1de)][_0x2bdd13(0x1a3)](_0x1ed1de))==null?void 0x0:_0x54f316[_0x2bdd13(0x1a3)](_0x1665ab),_0x39e2b0=_0x1bae19==null?void 0x0:_0x1bae19[_0x2bdd13(0x223)]['getValue'](_0x296e16,_0x15d92c);if(_0x39e2b0){var _0x358326,_0x41cf4a,_0x254138;let {groupId:_0x48b093}=_0x39e2b0,_0x27f467=(_0x358326=this[_0x2bdd13(0x225)][_0x2bdd13(0x1a3)](_0x1ed1de))==null?void 0x0:_0x358326[_0x2bdd13(0x1a3)](_0x1665ab);_0x27f467==null||(_0x41cf4a=_0x27f467[_0x2bdd13(0x1a3)](_0x48b093))==null||_0x41cf4a['sparklines'][_0x2bdd13(0x219)](_0x296e16,_0x15d92c),_0x27f467!=null&&(_0x254138=_0x27f467[_0x2bdd13(0x1a3)](_0x48b093))!=null&&_0x254138[_0x2bdd13(0x1b7)][_0x2bdd13(0x1d3)]()||_0x27f467==null||_0x27f467[_0x2bdd13(0x1b8)](_0x48b093),_0x1bae19==null||_0x1bae19[_0x2bdd13(0x223)]['realDeleteValue'](_0x296e16,_0x15d92c),this[_0x2bdd13(0x1ba)][_0x2bdd13(0x1a5)]({'unitId':_0x1ed1de,'subUnitId':_0x1665ab,'groupId':_0x48b093,'type':_0x2bdd13(0x1d9)});}}[_0x12ae13(0x19d)](_0x138363,_0x816116,_0x4b3754){const _0x2e37ba=_0x12ae13;var _0x283e7a,_0x5d2271;let _0x5e35ef=(_0x283e7a=this['_sparklineModel']['get'](_0x138363))==null||(_0x283e7a=_0x283e7a['get'](_0x816116))==null||(_0x283e7a=_0x283e7a['get'](_0x4b3754))==null?void 0x0:_0x283e7a[_0x2e37ba(0x1b7)],_0x18a41b=(_0x5d2271=this[_0x2e37ba(0x1de)]['get'](_0x138363))==null?void 0x0:_0x5d2271[_0x2e37ba(0x1a3)](_0x816116);if(_0x5e35ef&&_0x18a41b){let {matrix:_0x4d603d,extra:_0x56b1e1}=_0x18a41b;_0x5e35ef[_0x2e37ba(0x234)]((_0x66e7e4,_0x1935bc,_0x173951)=>{const _0x101792=_0x2e37ba;_0x4d603d[_0x101792(0x219)](_0x66e7e4,_0x1935bc);}),delete _0x56b1e1[_0x4b3754];}}[_0x12ae13(0x1ca)](_0x2121bd,_0x2394da){const _0x2c497b=_0x12ae13;var _0xc73ff5;return(_0xc73ff5=this[_0x2c497b(0x225)][_0x2c497b(0x1a3)](_0x2121bd))==null?void 0x0:_0xc73ff5['get'](_0x2394da);}[_0x12ae13(0x1b0)](_0x44b5b5,_0x3be988,_0x4e7765){const _0x19f409=_0x12ae13;var _0x3f4429;return(_0x3f4429=this[_0x19f409(0x225)]['get'](_0x44b5b5))==null||(_0x3f4429=_0x3f4429[_0x19f409(0x1a3)](_0x3be988))==null?void 0x0:_0x3f4429[_0x19f409(0x1a3)](_0x4e7765);}[_0x12ae13(0x1dc)](_0x183973,_0x1e8fb8,_0x572793,_0x16d9fe){const _0x3b18a6=_0x12ae13;var _0x2b3dcc;return(_0x2b3dcc=this['_sparklineAnchorMap'][_0x3b18a6(0x1a3)](_0x183973))==null||(_0x2b3dcc=_0x2b3dcc['get'](_0x1e8fb8))==null||(_0x2b3dcc=_0x2b3dcc[_0x3b18a6(0x223)]['getValue'](_0x572793,_0x16d9fe))==null?void 0x0:_0x2b3dcc[_0x3b18a6(0x1b6)];}[_0x12ae13(0x20f)](_0x22bb17,_0x18c4eb){const _0x5eee01=_0x12ae13;var _0x5d99ae;let _0x3df51f=this['_ensureAnchorMatrix'](_0x22bb17,_0x18c4eb);_0x3df51f[_0x5eee01(0x223)][_0x5eee01(0x234)]((_0x4a8da9,_0x23fcb4)=>{const _0x12775c=_0x5eee01;_0x3df51f[_0x12775c(0x223)]['realDeleteValue'](_0x4a8da9,_0x23fcb4);});let _0x21c507=(_0x5d99ae=this[_0x5eee01(0x225)]['get'](_0x22bb17))==null?void 0x0:_0x5d99ae[_0x5eee01(0x1a3)](_0x18c4eb);if(_0x21c507){for(let [_0x54f3e8]of _0x21c507)this[_0x5eee01(0x1e9)](_0x22bb17,_0x18c4eb,_0x54f3e8);}}['getSparklineCache'](){const _0x2f8bbd=_0x12ae13;return{'sparklineModel':this[_0x2f8bbd(0x225)],'sparklineAnchorMap':this[_0x2f8bbd(0x1de)]};}[_0x12ae13(0x1c8)](_0x1565f9){const _0x458637=_0x12ae13;let _0x932cb2={};if(this['_sparklineModel'][_0x458637(0x1e8)](_0x1565f9)){_0x932cb2[_0x1565f9]={};let _0x6e8a31=this[_0x458637(0x225)][_0x458637(0x1a3)](_0x1565f9);_0x6e8a31!=null&&_0x6e8a31['size']&&Array[_0x458637(0x235)](_0x6e8a31[_0x458637(0x1e5)]())[_0x458637(0x19c)](_0x268c8f=>{const _0x40ef06=_0x458637;_0x932cb2[_0x1565f9][_0x268c8f]={};let _0x3a43cc=_0x6e8a31['get'](_0x268c8f);_0x3a43cc!=null&&_0x3a43cc['size']&&Array[_0x40ef06(0x235)](_0x3a43cc['keys']())['forEach'](_0x3515dd=>{const _0x285d4a=_0x40ef06;let _0x8585ee=_0x3a43cc[_0x285d4a(0x1a3)](_0x3515dd);_0x8585ee&&(_0x932cb2[_0x1565f9][_0x268c8f][_0x3515dd]={'config':_0x8585ee[_0x285d4a(0x1c4)],'sparklines':_0x8585ee[_0x285d4a(0x1b7)][_0x285d4a(0x1e6)]()});});});}return _0x932cb2;}[_0x12ae13(0x24f)](_0x393458){const _0x331ae1=_0x12ae13;_0x393458&&Object[_0x331ae1(0x1e5)](_0x393458)[_0x331ae1(0x19c)](_0xf7d5a3=>{const _0xa4ab97=_0x331ae1;let _0x2f3950=_0x393458[_0xf7d5a3];_0x2f3950&&Object[_0xa4ab97(0x1e5)](_0x2f3950)[_0xa4ab97(0x19c)](_0x9e2b81=>{const _0x302bfa=_0xa4ab97;let _0xf2a3a7=_0x2f3950[_0x9e2b81];_0xf2a3a7&&Object[_0x302bfa(0x1e5)](_0xf2a3a7)['forEach'](_0x443036=>{const _0x74af21=_0x302bfa;let _0x1a8dc9=_0xf2a3a7[_0x443036];if(_0x1a8dc9){let _0x2539a6={'config':_0x1a8dc9['config'],'sparklines':new _0x5a9674(_0x1a8dc9[_0x74af21(0x1b7)])};this['addSparkline'](_0xf7d5a3,_0x9e2b81,_0x443036,_0x2539a6);}});});});}[_0x12ae13(0x200)](_0x1e537a){const _0x2840e7=_0x12ae13;let _0x13010d=this[_0x2840e7(0x225)][_0x2840e7(0x1a3)](_0x1e537a);if(_0x13010d){for(let [_0x38f015]of _0x13010d){let _0x3110a8=_0x13010d[_0x2840e7(0x1a3)](_0x38f015);if(_0x3110a8){for(let [_0x2a0c5c]of _0x3110a8)this[_0x2840e7(0x19d)](_0x1e537a,_0x38f015,_0x2a0c5c);}}this['_sparklineModel']['delete'](_0x1e537a);}}};H=V([B(0x0,_0x32409c(_0x1f105a))],H);const U={'id':_0x12ae13(0x214),'type':_0x1425b9[_0x12ae13(0x1ff)],'handler':(_0x4b8094,_0x5b632c)=>{const _0x3c4b81=_0x12ae13;if(!_0x5b632c)return!0x1;let {sparklineConfigMap:_0x32767f,unitId:_0x31a366,subUnitId:_0x62e61a}=_0x5b632c,_0x41557d=_0x4b8094[_0x3c4b81(0x1a3)](H);return Object[_0x3c4b81(0x1b1)](_0x32767f)['forEach'](([_0x29a3ba,_0x272816])=>{const _0x5c444e=_0x3c4b81;let _0x44cb52={'config':_0x272816[_0x5c444e(0x1c4)],'sparklines':new _0x5a9674(_0x272816[_0x5c444e(0x1b7)])};_0x41557d['addSparkline'](_0x31a366,_0x62e61a,_0x29a3ba,_0x44cb52);}),!0x0;}},W={'id':_0x12ae13(0x19a),'type':_0x1425b9[_0x12ae13(0x1ff)],'handler':(_0x4acd74,_0xa833fd)=>{const _0x590ec1=_0x12ae13;if(!_0xa833fd)return!0x1;let {unitId:_0x13690d,subUnitId:_0x147c03,ranges:_0xd7ff42,isSingle:_0x216c5b,groupIds:_0x5bd110}=_0xa833fd,_0x10a8a6=_0x4acd74[_0x590ec1(0x1a3)](H);return _0x5bd110?(_0x5bd110[_0x590ec1(0x19c)](_0x1efe96=>{_0x10a8a6['removeSparkline'](_0x13690d,_0x147c03,_0x1efe96);}),!0x0):_0xd7ff42?(_0xd7ff42[_0x590ec1(0x19c)](_0x3a1759=>{const _0x11e84d=_0x590ec1;_0x161a6b[_0x11e84d(0x1bc)](_0x3a1759,(_0x96118b,_0x2b5d08)=>{const _0x45cf06=_0x11e84d;let _0x511d14=_0x10a8a6['getSparkline'](_0x13690d,_0x147c03,_0x96118b,_0x2b5d08);_0x511d14&&(_0x216c5b?_0x10a8a6[_0x45cf06(0x22a)](_0x13690d,_0x147c03,_0x96118b,_0x2b5d08):_0x10a8a6['removeSparkline'](_0x13690d,_0x147c03,_0x511d14));});}),!0x0):!0x1;}},De={'id':_0x12ae13(0x247),'type':_0x1425b9[_0x12ae13(0x1cd)],'handler':(_0x4c8dfe,_0x25caf5)=>{const _0x3fd266=_0x12ae13;if(!_0x25caf5)return!0x1;let {sourceRanges:_0x7210da,targetRanges:_0xd3c1cc,config:_0x3c62d0}=_0x25caf5,_0x503a36=_0x4c8dfe[_0x3fd266(0x1a3)](_0x1ce2b8),_0x37c665='g_'+_0x58a840(0x6),_0x1bd8b3=F(_0x7210da,_0xd3c1cc),_0x2ca1f0={'config':_0x3c62d0==null?{}:_0x3c62d0,'sparklines':_0x1bd8b3[_0x3fd266(0x1e6)]()},_0x2f9d73=_0x4c8dfe[_0x3fd266(0x1a3)](_0x1f105a),_0xda343f=_0x4c8dfe['get'](H),_0x4c53ae=_0x5221bf(_0x2f9d73);if(!_0x4c53ae)return!0x1;let {unitId:_0x547866,subUnitId:_0xb56fbe}=_0x4c53ae,_0x21a2d3=_0x4c8dfe[_0x3fd266(0x1a3)](_0x281644),_0x3271ec=[],_0x4271d5=[],_0x40be95={},_0x5db4b3={},_0x292eb4=new Set([_0x37c665]);_0x1bd8b3[_0x3fd266(0x234)]((_0x275e6e,_0xa6f0d9,_0x5e8bd7)=>{const _0x5181ba=_0x3fd266;let _0x407240=_0xda343f[_0x5181ba(0x1dc)](_0x547866,_0xb56fbe,_0x275e6e,_0xa6f0d9);if(_0x407240){let _0x444ec9=_0xda343f[_0x5181ba(0x1b0)](_0x547866,_0xb56fbe,_0x407240);if(_0x444ec9){_0x292eb4[_0x5181ba(0x215)](_0x407240);let _0x355f90=_0x40be95[_0x407240],_0x1dfc76=_0x5db4b3[_0x407240];_0x1dfc76||(_0x1dfc76={'config':_0x3ff2e1[_0x5181ba(0x20c)](_0x444ec9['config']),'sparklines':new _0x5a9674(_0x444ec9['sparklines'][_0x5181ba(0x1f7)]())},_0x5db4b3[_0x407240]=_0x1dfc76),_0x355f90||(_0x355f90={'config':_0x3ff2e1['deepClone'](_0x444ec9[_0x5181ba(0x1c4)]),'sparklines':_0x444ec9[_0x5181ba(0x1b7)][_0x5181ba(0x1f7)]()},_0x40be95[_0x407240]=_0x355f90),_0x1dfc76[_0x5181ba(0x1b7)][_0x5181ba(0x219)](_0x275e6e,_0xa6f0d9);}}});let _0x52a240={};return Object['entries'](_0x5db4b3)[_0x3fd266(0x19c)](([_0x4209dd,_0x1d5d18])=>{const _0x117f6b=_0x3fd266;_0x1d5d18[_0x117f6b(0x1b7)][_0x117f6b(0x210)]()&&(_0x52a240[_0x4209dd]={'config':_0x1d5d18[_0x117f6b(0x1c4)],'sparklines':_0x1d5d18[_0x117f6b(0x1b7)][_0x117f6b(0x1f7)]()});}),_0x52a240[_0x37c665]=_0x2ca1f0,_0x3271ec['push']({'id':W['id'],'params':{'unitId':_0x547866,'subUnitId':_0xb56fbe,'groupIds':Array['from'](_0x292eb4),'isSingle':!0x1}}),_0x292eb4[_0x3fd266(0x1ab)]>0x1&&(_0x4271d5[_0x3fd266(0x1d6)]({'id':W['id'],'params':{'unitId':_0x547866,'subUnitId':_0xb56fbe,'groupIds':Array['from'](_0x292eb4),'isSingle':!0x1}}),_0x3271ec['push']({'id':U['id'],'params':{'unitId':_0x547866,'subUnitId':_0xb56fbe,'sparklineConfigMap':_0x40be95}})),_0x4271d5[_0x3fd266(0x1d6)]({'id':U['id'],'params':{'unitId':_0x547866,'subUnitId':_0xb56fbe,'sparklineConfigMap':_0x52a240}}),_0x14e914(_0x4271d5,_0x21a2d3)[_0x3fd266(0x1ac)]?(_0x503a36['pushUndoRedo']({'unitID':_0x547866,'undoMutations':_0x3271ec,'redoMutations':_0x4271d5}),!0x0):!0x1;}},Oe={'id':_0x12ae13(0x1ae),'type':_0x1425b9[_0x12ae13(0x1cd)],'handler':(_0x8138d3,_0x6e87f4)=>{const _0x3ceb3e=_0x12ae13;var _0x47097c;let {isSingle:_0x3abd5c=!0x0}=_0x6e87f4||{},_0x28315e=_0x8138d3['get'](_0x281644),_0x2fb47e=_0x8138d3[_0x3ceb3e(0x1a3)](_0x1f105a),_0x3ca1ce=_0x8138d3[_0x3ceb3e(0x1a3)](H),_0x89d78f=_0x8138d3[_0x3ceb3e(0x1a3)](_0x1ce2b8),_0xf2a485=_0x5221bf(_0x2fb47e);if(!_0xf2a485)return!0x1;let _0xc48bfd=_0x8138d3[_0x3ceb3e(0x1a3)](_0x4ad378),_0x483e8e=(_0x47097c=_0x6e87f4==null?void 0x0:_0x6e87f4['ranges'])==null?_0xc48bfd[_0x3ceb3e(0x226)]()[_0x3ceb3e(0x21d)](_0x4d4968=>_0x4d4968[_0x3ceb3e(0x230)]):_0x47097c,{unitId:_0x399b0f,subUnitId:_0x5305fe}=_0xf2a485,_0x11dbb4=[],_0x2b136a=[];_0x11dbb4[_0x3ceb3e(0x1d6)]({'id':W['id'],'params':{'unitId':_0x399b0f,'subUnitId':_0x5305fe,'ranges':_0x483e8e,'isSingle':_0x3abd5c}});let _0x22c1fc=[],_0x308003={};return _0x483e8e[_0x3ceb3e(0x19c)](_0x5bc14e=>{const _0x13f331=_0x3ceb3e;_0x161a6b[_0x13f331(0x1bc)](_0x5bc14e,(_0x55756d,_0x33725f)=>{const _0x48a4e5=_0x13f331;let _0xdde4d7=_0x3ca1ce['getSparkline'](_0x399b0f,_0x5305fe,_0x55756d,_0x33725f);if(_0xdde4d7){let _0x2850a2=_0x3ca1ce[_0x48a4e5(0x1b0)](_0x399b0f,_0x5305fe,_0xdde4d7);_0x2850a2&&(_0x22c1fc['push'](_0xdde4d7),_0x308003[_0xdde4d7]={'config':_0x3ff2e1[_0x48a4e5(0x20c)](_0x2850a2[_0x48a4e5(0x1c4)]),'sparklines':_0x3ff2e1[_0x48a4e5(0x20c)](_0x2850a2[_0x48a4e5(0x1b7)][_0x48a4e5(0x1f7)]())});}});}),_0x2b136a[_0x3ceb3e(0x1d6)]({'id':W['id'],'params':{'unitId':_0x399b0f,'subUnitId':_0x5305fe,'groupIds':_0x22c1fc,'isSingle':!0x1}}),_0x2b136a['push']({'id':U['id'],'params':{'unitId':_0x399b0f,'subUnitId':_0x5305fe,'sparklineConfigMap':_0x308003}}),_0x14e914(_0x11dbb4,_0x28315e)[_0x3ceb3e(0x1ac)]?(_0x89d78f[_0x3ceb3e(0x1df)]({'unitID':_0x399b0f,'undoMutations':_0x2b136a,'redoMutations':_0x11dbb4}),!0x0):!0x1;}},G={'id':'sheet.mutation.set-sparkline','type':_0x1425b9[_0x12ae13(0x1ff)],'handler':(_0x1f6e67,_0x25e9a7)=>{const _0x60cb64=_0x12ae13;if(!_0x25e9a7)return!0x1;let {unitId:_0x3c4365,subUnitId:_0xecae80,groupIds:_0x36580a,config:_0x1a0aa3}=_0x25e9a7,_0x292158=_0x1f6e67[_0x60cb64(0x1a3)](H);return _0x36580a[_0x60cb64(0x19c)](_0x1105ef=>{const _0x381220=_0x60cb64;let _0x484dc8=_0x292158[_0x381220(0x1b0)](_0x3c4365,_0xecae80,_0x1105ef);if(_0x484dc8){let _0x4fe23b={'config':Object[_0x381220(0x249)]({},_0x484dc8[_0x381220(0x1c4)],_0x1a0aa3[_0x381220(0x1c4)]),'sparklines':new _0x5a9674(_0x484dc8[_0x381220(0x1b7)]['clone']())};_0x292158[_0x381220(0x1ad)](_0x3c4365,_0xecae80,[_0x1105ef],_0x4fe23b);}}),!0x0;}},ke={'id':'sheet.command.set-sparkline','type':_0x1425b9[_0x12ae13(0x1cd)],'handler':(_0x540e48,_0x2661d2)=>{const _0x3be858=_0x12ae13;var _0x1f4e17,_0x3469d2;if(!_0x2661d2)return!0x1;let _0x4b47b7=_0x540e48['get'](_0x281644),_0x26fc9d=_0x540e48[_0x3be858(0x1a3)](_0x4ad378),_0x2fd956=_0x540e48[_0x3be858(0x1a3)](H),_0x1660c5=_0x540e48['get'](_0x1f105a),_0x106ec5=_0x540e48[_0x3be858(0x1a3)](_0x1ce2b8),_0x301755=_0x5221bf(_0x1660c5);if(!_0x301755)return!0x1;let {unitId:_0x1fe457,subUnitId:_0x3696d5}=_0x301755,_0x4c2a0c=(_0x1f4e17=_0x2661d2==null?void 0x0:_0x2661d2[_0x3be858(0x216)])==null?_0x26fc9d[_0x3be858(0x226)]()[_0x3be858(0x21d)](_0x14dc07=>_0x14dc07[_0x3be858(0x230)]):_0x1f4e17,_0x58c00e=(_0x3469d2=_0x2fd956[_0x3be858(0x1ed)]()[_0x3be858(0x1c2)]['get'](_0x1fe457))==null?void 0x0:_0x3469d2[_0x3be858(0x1a3)](_0x3696d5),{isChangeDataSource:_0x51f559,config:_0x599575,combine:_0x5c1052,unCombine:_0x473d99}=_0x2661d2;if(_0x5c1052){var _0x448e5e;let _0x1fc411=[],_0x483493=[];_0x1fc411[_0x3be858(0x1d6)]({'id':W['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'ranges':_0x4c2a0c,'isSingle':!0x0}});let _0x33b61c='g_'+_0x58a840(0x6),_0x497ed3=new _0x5a9674(),_0x470948=(_0x448e5e=_0x2fd956[_0x3be858(0x1ed)]()[_0x3be858(0x20a)][_0x3be858(0x1a3)](_0x1fe457))==null?void 0x0:_0x448e5e['get'](_0x3696d5),_0x43f2ba=new Set([_0x33b61c]),_0x39e87e={};return _0x4c2a0c['forEach'](_0xf9e509=>{const _0x41d571=_0x3be858;let {startRow:_0x2a1ae0,endRow:_0x3d31eb,startColumn:_0x251b51,endColumn:_0x138c54}=_0xf9e509;for(let _0x5277c6=_0x2a1ae0;_0x5277c6<=_0x3d31eb;_0x5277c6++)for(let _0x1bfe5d=_0x251b51;_0x1bfe5d<=_0x138c54;_0x1bfe5d++){var _0x25e72f;let _0x1e4948=_0x58c00e==null||(_0x25e72f=_0x58c00e[_0x41d571(0x223)][_0x41d571(0x259)](_0x5277c6,_0x1bfe5d))==null?void 0x0:_0x25e72f['groupId'];if(_0x1e4948){var _0x3e6aea;_0x43f2ba['add'](_0x1e4948);let _0x477ad7=_0x2fd956[_0x41d571(0x1b0)](_0x1fe457,_0x3696d5,_0x1e4948);_0x477ad7&&(_0x39e87e[_0x1e4948]={'config':_0x3ff2e1[_0x41d571(0x20c)](_0x477ad7[_0x41d571(0x1c4)]),'sparklines':_0x3ff2e1[_0x41d571(0x20c)](_0x477ad7['sparklines'][_0x41d571(0x1f7)]())});let _0xde6258=_0x470948==null||(_0x3e6aea=_0x470948[_0x41d571(0x1a3)](_0x1e4948))==null?void 0x0:_0x3e6aea[_0x41d571(0x1b7)][_0x41d571(0x259)](_0x5277c6,_0x1bfe5d);_0xde6258&&_0x497ed3[_0x41d571(0x1f8)](_0x5277c6,_0x1bfe5d,_0xde6258);}}}),_0x1fc411[_0x3be858(0x1d6)]({'id':U['id'],'params':{'sparklineConfigMap':{[_0x33b61c]:{'config':_0x3ff2e1['deepClone'](_0x599575[_0x3be858(0x1c4)]),'sparklines':_0x497ed3['getMatrix']()}},'unitId':_0x1fe457,'subUnitId':_0x3696d5}}),_0x483493['push']({'id':W['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'isSingle':!0x1,'groupIds':Array['from'](_0x43f2ba)}}),_0x483493['push']({'id':U['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'sparklineConfigMap':_0x39e87e}}),_0x14e914(_0x1fc411,_0x4b47b7)[_0x3be858(0x1ac)]?(_0x106ec5[_0x3be858(0x1df)]({'unitID':_0x1fe457,'undoMutations':_0x483493,'redoMutations':_0x1fc411}),!0x0):!0x1;}else{if(_0x473d99){var _0x34b081;let _0x111635=[],_0x26ea5b=[];_0x111635['push']({'id':W['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'ranges':_0x4c2a0c,'isSingle':!0x0}});let _0x52ab5a=(_0x34b081=_0x2fd956[_0x3be858(0x1ed)]()[_0x3be858(0x20a)][_0x3be858(0x1a3)](_0x1fe457))==null?void 0x0:_0x34b081[_0x3be858(0x1a3)](_0x3696d5),_0x2987d7={},_0x21a1fb=new Set(),_0x565e0c={};return _0x4c2a0c['forEach'](_0x4ed79d=>{const _0x261196=_0x3be858;let {startRow:_0x58b962,endRow:_0x229710,startColumn:_0x1c2e09,endColumn:_0x2549e1}=_0x4ed79d;for(let _0x5025f1=_0x58b962;_0x5025f1<=_0x229710;_0x5025f1++)for(let _0x2c0b9c=_0x1c2e09;_0x2c0b9c<=_0x2549e1;_0x2c0b9c++){var _0x5766c8;let _0xc9948=_0x58c00e==null||(_0x5766c8=_0x58c00e[_0x261196(0x223)][_0x261196(0x259)](_0x5025f1,_0x2c0b9c))==null?void 0x0:_0x5766c8[_0x261196(0x1b6)];if(_0xc9948){var _0x1422c3;let _0x403173=new _0x5a9674(),_0x3af937='g_'+_0x58a840(0x6);_0x21a1fb[_0x261196(0x215)](_0xc9948),_0x21a1fb[_0x261196(0x215)](_0x3af937);let _0x4d5465=_0x2fd956[_0x261196(0x1b0)](_0x1fe457,_0x3696d5,_0xc9948);_0x4d5465&&(_0x565e0c[_0xc9948]={'config':_0x3ff2e1[_0x261196(0x20c)](_0x4d5465['config']),'sparklines':_0x3ff2e1[_0x261196(0x20c)](_0x4d5465[_0x261196(0x1b7)]['clone']())});let _0x37a9be=_0x52ab5a==null||(_0x1422c3=_0x52ab5a['get'](_0xc9948))==null?void 0x0:_0x1422c3[_0x261196(0x1b7)][_0x261196(0x259)](_0x5025f1,_0x2c0b9c);_0x37a9be&&_0x403173[_0x261196(0x1f8)](_0x5025f1,_0x2c0b9c,_0x37a9be),_0x2987d7[_0x3af937]={'sparklines':_0x403173[_0x261196(0x1e6)](),'config':_0x3ff2e1[_0x261196(0x20c)](_0x599575[_0x261196(0x1c4)])};}}}),_0x111635[_0x3be858(0x1d6)]({'id':U['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'sparklineConfigMap':_0x2987d7}}),_0x26ea5b['push']({'id':W['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'isSingle':!0x1,'groupIds':Array[_0x3be858(0x235)](_0x21a1fb)}}),_0x26ea5b[_0x3be858(0x1d6)]({'id':U['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'sparklineConfigMap':_0x565e0c}}),_0x14e914(_0x111635,_0x4b47b7)[_0x3be858(0x1ac)]?(_0x106ec5['pushUndoRedo']({'unitID':_0x1fe457,'undoMutations':_0x26ea5b,'redoMutations':_0x111635}),!0x0):!0x1;}}if(_0x51f559){let _0x50a91b=_0x2661d2[_0x3be858(0x253)];if(!_0x50a91b)return!0x1;let {groupId:_0xb622eb,sourceRanges:_0x16b824,targetRanges:_0x4ce782,resetType:_0x166d34,primary:_0x288dd7}=_0x50a91b,_0x5cb254=[],_0x4deb0d=[];_0x5cb254['push']({'id':W['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'ranges':_0x4c2a0c,'isSingle':!0x1,'groupIds':[_0xb622eb]}}),_0x4deb0d[_0x3be858(0x1d6)]({'id':W['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'ranges':_0x4c2a0c,'isSingle':!0x1,'groupIds':[_0xb622eb]}});let _0x3156fa;_0x166d34==='item'?(_0x3156fa=new _0x5a9674(_0x599575['sparklines']['clone']()),_0x3156fa[_0x3be858(0x219)](_0x288dd7[_0x3be858(0x252)],_0x288dd7[_0x3be858(0x229)]),_0x3156fa['setValue'](_0x4ce782[0x0][_0x3be858(0x1d1)],_0x4ce782[0x0]['startColumn'],_0x16b824[0x0])):_0x3156fa=F(_0x16b824,_0x4ce782);let _0x209bc1={'config':_0x3ff2e1[_0x3be858(0x20c)](_0x599575['config']),'sparklines':_0x3156fa[_0x3be858(0x1e6)]()},_0x4d76ed={'config':_0x3ff2e1[_0x3be858(0x20c)](_0x599575['config']),'sparklines':_0x3ff2e1[_0x3be858(0x20c)](_0x599575[_0x3be858(0x1b7)][_0x3be858(0x1f7)]())};return _0x5cb254['push']({'id':U['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'sparklineConfigMap':{[_0xb622eb]:_0x209bc1}}}),_0x4deb0d[_0x3be858(0x1d6)]({'id':U['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'sparklineConfigMap':{[_0xb622eb]:_0x4d76ed}}}),_0x14e914(_0x5cb254,_0x4b47b7)[_0x3be858(0x1ac)]?(_0x106ec5[_0x3be858(0x1df)]({'unitID':_0x1fe457,'undoMutations':_0x4deb0d,'redoMutations':_0x5cb254}),!0x0):!0x1;}else{let _0x4982e1=[],_0x309675=[],_0x1413d7=new Set(),_0x29ee0c={};return _0x4c2a0c['forEach'](_0x2afe27=>{const _0x495a0b=_0x3be858;let {startRow:_0x482d01,endRow:_0x346f6b,startColumn:_0x2aa057,endColumn:_0x5b45cd}=_0x2afe27;for(let _0x45a5b5=_0x482d01;_0x45a5b5<=_0x346f6b;_0x45a5b5++)for(let _0x13beaf=_0x2aa057;_0x13beaf<=_0x5b45cd;_0x13beaf++){var _0x10ae86;let _0x42de54=_0x58c00e==null||(_0x10ae86=_0x58c00e[_0x495a0b(0x223)][_0x495a0b(0x259)](_0x45a5b5,_0x13beaf))==null?void 0x0:_0x10ae86[_0x495a0b(0x1b6)];if(_0x42de54){_0x1413d7['add'](_0x42de54);let _0x2608bd=_0x2fd956[_0x495a0b(0x1b0)](_0x1fe457,_0x3696d5,_0x42de54);_0x2608bd&&(_0x29ee0c[_0x42de54]={'config':_0x3ff2e1[_0x495a0b(0x20c)](_0x2608bd[_0x495a0b(0x1c4)]),'sparklines':_0x3ff2e1[_0x495a0b(0x20c)](_0x2608bd[_0x495a0b(0x1b7)][_0x495a0b(0x1f7)]())});}}}),_0x309675['push']({'id':G['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'groupIds':Array[_0x3be858(0x235)](_0x1413d7),'config':{'config':_0x3ff2e1[_0x3be858(0x20c)](_0x599575['config']),'sparklines':_0x599575[_0x3be858(0x1b7)][_0x3be858(0x1e6)]()}}}),_0x4982e1[_0x3be858(0x1d6)]({'id':W['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'isSingle':!0x1,'groupIds':Array['from'](_0x1413d7)}}),_0x4982e1[_0x3be858(0x1d6)]({'id':U['id'],'params':{'unitId':_0x1fe457,'subUnitId':_0x3696d5,'sparklineConfigMap':_0x29ee0c}}),_0x14e914(_0x309675,_0x4b47b7)[_0x3be858(0x1ac)]?(_0x106ec5[_0x3be858(0x1df)]({'unitID':_0x1fe457,'undoMutations':_0x4982e1,'redoMutations':_0x309675}),!0x0):!0x1;}}};var Ae='@univerjs-pro/sheets-sparkline',je=_0x12ae13(0x245);const Me={};let K=class extends _0x4520ca{constructor(_0x22affb,_0x492acb,_0x4bf3f8,_0x4db1f2){const _0x3dbd24=_0x12ae13;super(),this[_0x3dbd24(0x1c5)]=_0x22affb,this[_0x3dbd24(0x1d5)]=_0x492acb,this[_0x3dbd24(0x21b)]=_0x4bf3f8,this[_0x3dbd24(0x22e)]=_0x4db1f2,this[_0x3dbd24(0x1fb)]();}[_0x12ae13(0x1fb)](){const _0x2e745b=_0x12ae13;this[_0x2e745b(0x1b4)](this[_0x2e745b(0x1d5)]['interceptCommand']({'getMutations':_0x3a4078=>{const _0x3f4027=_0x2e745b;let _0x154729=[],_0x1bf4ec=[];if(_0x3a4078['id']===_0x4d2426['id']){let _0x4874eb=_0x5221bf(this[_0x3f4027(0x21b)],_0x3a4078['params']);if(!_0x4874eb)return{'redos':_0x154729,'undos':_0x1bf4ec};let {unitId:_0x50c4c0,subUnitId:_0x430004}=_0x4874eb,_0x252330=this[_0x3f4027(0x22e)][_0x3f4027(0x226)]()[_0x3f4027(0x21d)](_0x4a2e22=>_0x4a2e22['range']),_0x523bb1=new Set(),_0x5ee55c={},_0x1ca12c={};_0x252330[_0x3f4027(0x19c)](_0x200dcc=>{_0x161a6b['foreach'](_0x200dcc,(_0x2b43ed,_0xefc1f7)=>{const _0x12af37=_0xd85e;let _0x36ddc1=this[_0x12af37(0x1c5)][_0x12af37(0x1dc)](_0x50c4c0,_0x430004,_0x2b43ed,_0xefc1f7);if(_0x36ddc1&&!_0x523bb1['has'](_0x36ddc1)){let _0x86c13e=this['_sparklineDataSourceModel']['getSparklineById'](_0x50c4c0,_0x430004,_0x36ddc1);_0x86c13e&&(_0x523bb1['add'](_0x36ddc1),_0x5ee55c[_0x36ddc1]={'config':_0x3ff2e1[_0x12af37(0x20c)](_0x86c13e['config']),'sparklines':_0x3ff2e1[_0x12af37(0x20c)](_0x86c13e['sparklines']['clone']())},_0x1ca12c[_0x36ddc1]={'config':_0x3ff2e1['deepClone'](_0x86c13e[_0x12af37(0x1c4)]),'sparklines':_0x3ff2e1['deepClone'](_0x86c13e[_0x12af37(0x1b7)][_0x12af37(0x1f7)]())});}});}),Object[_0x3f4027(0x246)](_0x1ca12c)[_0x3f4027(0x19c)](_0x50d7f1=>{const _0xb8cd2f=_0x3f4027;let _0xb7f91b=_0x50d7f1[_0xb8cd2f(0x1b7)];new _0x5a9674(_0xb7f91b)[_0xb8cd2f(0x234)]((_0x3024be,_0x3abd84,_0x16507f)=>{const _0x171c01=_0xb8cd2f;_0x252330['some'](_0x4c0c6e=>_0x3b8f67[_0x171c01(0x1bb)](_0x4c0c6e,_0xdf0dbb(_0x3024be,_0x3abd84)))&&delete _0xb7f91b[_0x3024be][_0x3abd84];});}),_0x523bb1[_0x3f4027(0x1ab)]>0x0&&(_0x154729[_0x3f4027(0x1d6)]({'id':W['id'],'params':{'unitId':_0x50c4c0,'subUnitId':_0x430004,'groupIds':Array[_0x3f4027(0x235)](_0x523bb1),'isSingle':!0x1}}),_0x1bf4ec[_0x3f4027(0x1d6)]({'id':W['id'],'params':{'unitId':_0x50c4c0,'subUnitId':_0x430004,'groupIds':Array[_0x3f4027(0x235)](_0x523bb1),'isSingle':!0x1}})),Object[_0x3f4027(0x1e5)](_0x1ca12c)[_0x3f4027(0x1f0)]>0x0&&_0x154729[_0x3f4027(0x1d6)]({'id':U['id'],'params':{'unitId':_0x50c4c0,'subUnitId':_0x430004,'sparklineConfigMap':_0x1ca12c}}),Object['keys'](_0x5ee55c)['length']>0x0&&_0x1bf4ec[_0x3f4027(0x1d6)]({'id':U['id'],'params':{'unitId':_0x50c4c0,'subUnitId':_0x430004,'sparklineConfigMap':_0x5ee55c}});}return{'redos':_0x154729,'undos':_0x1bf4ec};}}));}};K=V([B(0x0,_0x32409c(H)),B(0x1,_0x32409c(_0x2fd56f)),B(0x2,_0x32409c(_0x1f105a)),B(0x3,_0x32409c(_0x4ad378))],K);let q=class extends _0x4520ca{constructor(_0x2bae88,_0x13d30b,_0x3301ab){const _0x402cf1=_0x12ae13;super(),this[_0x402cf1(0x24d)]=_0x2bae88,this[_0x402cf1(0x1c5)]=_0x13d30b,this['_exclusiveRangeService']=_0x3301ab,this[_0x402cf1(0x233)](),this[_0x402cf1(0x22f)]();}['_initDataChangeListener'](){const _0x2b33bb=_0x12ae13;this[_0x2b33bb(0x1b4)](this[_0x2b33bb(0x24d)][_0x2b33bb(0x21f)](_0x191873=>{const _0x3f88ea=_0x2b33bb;if(_0x191873['id']===_0x4898f2['id']){let {cellValue:_0x205163,unitId:_0x4a1df6,subUnitId:_0x2af876}=_0x191873['params'],_0x47eb59=new _0x5a9674(_0x205163),_0x45bd63=new Set(),_0x19bc25=this['_sparklineDataSourceModel'][_0x3f88ea(0x1ca)](_0x4a1df6,_0x2af876);if(!_0x19bc25)return;let _0x28fb91=Array['from'](_0x19bc25);_0x47eb59['forValue']((_0xe837f9,_0x11aaec,_0x1fb75b)=>{const _0x117ea5=_0x3f88ea;let _0x55f3c9=_0xdf0dbb(_0xe837f9,_0x11aaec);for(let _0xfc9d=0x0;_0xfc9d<_0x28fb91[_0x117ea5(0x1f0)];_0xfc9d++){let [_0x113d47,_0x11f0ec]=_0x28fb91[_0xfc9d],_0x3688a2=_0x45bd63[_0x117ea5(0x1e8)](_0x113d47);_0x3688a2||_0x11f0ec[_0x117ea5(0x1b7)][_0x117ea5(0x234)]((_0x38fcc6,_0x58b1ad,_0x1aec34)=>{const _0xfeee20=_0x117ea5;let _0x3f0dbc=_0x1aec34;if(_0x3f0dbc&&!_0x3688a2&&_0x3b8f67[_0xfeee20(0x1bb)](_0x55f3c9,_0x3f0dbc))return _0x45bd63[_0xfeee20(0x215)](_0x113d47),!0x0;});}}),_0x45bd63[_0x3f88ea(0x19c)](_0x5b803d=>{const _0x3c1af3=_0x3f88ea;this[_0x3c1af3(0x1c5)]['clearSparklineCache'](_0x4a1df6,_0x2af876,_0x5b803d),this[_0x3c1af3(0x1c5)][_0x3c1af3(0x1e9)](_0x4a1df6,_0x2af876,_0x5b803d);});}else{if(_0x191873['id']===_0x1188c2['id']){let {range:_0xbf6f,unitId:_0x31adc4,subUnitId:_0x1efbff}=_0x191873[_0x3f88ea(0x1d7)],_0x2520e2=new Set(),_0x3d22f0=this['_sparklineDataSourceModel'][_0x3f88ea(0x1ca)](_0x31adc4,_0x1efbff);if(!_0x3d22f0)return;let _0x2f7eb2=Array[_0x3f88ea(0x235)](_0x3d22f0);for(let _0x538855=0x0;_0x538855<_0x2f7eb2[_0x3f88ea(0x1f0)];_0x538855++){let [_0x445a8c,_0x1eea5b]=_0x2f7eb2[_0x538855],_0x9f670b=_0x2520e2[_0x3f88ea(0x1e8)](_0x445a8c);_0x9f670b||_0x1eea5b[_0x3f88ea(0x1b7)][_0x3f88ea(0x234)]((_0x48894f,_0x21ce1e,_0x2b37be)=>{const _0x25f15f=_0x3f88ea;let _0x485165=_0x2b37be;if(_0x485165&&!_0x9f670b&&_0x3b8f67['intersects'](_0xbf6f,_0x485165))return _0x2520e2[_0x25f15f(0x215)](_0x445a8c),!0x0;});}_0x2520e2[_0x3f88ea(0x19c)](_0x389d12=>{const _0x3508e6=_0x3f88ea;this[_0x3508e6(0x1c5)][_0x3508e6(0x19d)](_0x31adc4,_0x1efbff,_0x389d12),this[_0x3508e6(0x1c5)][_0x3508e6(0x1e9)](_0x31adc4,_0x1efbff,_0x389d12);});}}}));}[_0x12ae13(0x22f)](){const _0x4adf96=_0x12ae13;this[_0x4adf96(0x1b4)](this['_exclusiveRangeService'][_0x4adf96(0x250)][_0x4adf96(0x22d)](_0x4b667c=>{const _0x19d5c6=_0x4adf96;let {unitId:_0x2fc072,subUnitId:_0x26fcce,ranges:_0xfa3fc0}=_0x4b667c,_0x27e959=this['_sparklineDataSourceModel'][_0x19d5c6(0x1ca)](_0x2fc072,_0x26fcce);if(!_0x27e959)return;let _0x480adc=Array[_0x19d5c6(0x235)](_0x27e959),_0x892e40=new Set();for(let _0x5d2049=0x0;_0x5d2049<_0x480adc[_0x19d5c6(0x1f0)];_0x5d2049++){let [_0x599518,_0x1435da]=_0x480adc[_0x5d2049],_0xbe1b9b=_0x892e40[_0x19d5c6(0x1e8)](_0x599518);_0xbe1b9b||_0x1435da['sparklines'][_0x19d5c6(0x234)]((_0x311b39,_0x1e951f,_0x364715)=>{const _0x4353e4=_0x19d5c6;let _0x3788ca=_0x364715;if(_0x3788ca&&!_0xbe1b9b){for(let _0x4522e7 of _0xfa3fc0)if(_0x3b8f67[_0x4353e4(0x1bb)](_0x4522e7,_0x3788ca)){_0x892e40[_0x4353e4(0x215)](_0x599518);break;}}});}_0x892e40[_0x19d5c6(0x19c)](_0x29cf93=>{const _0x3f3b5b=_0x19d5c6;this[_0x3f3b5b(0x1c5)]['clearSparklineCache'](_0x2fc072,_0x26fcce,_0x29cf93),this[_0x3f3b5b(0x1c5)][_0x3f3b5b(0x1e9)](_0x2fc072,_0x26fcce,_0x29cf93);});}));}};q=V([B(0x0,_0x32409c(_0x281644)),B(0x1,_0x32409c(H)),B(0x2,_0x32409c(_0x11335e))],q);let J=class extends _0x4520ca{constructor(_0x11d751,_0x342e1b){const _0x37f90d=_0x12ae13;super(),this[_0x37f90d(0x24d)]=_0x11d751,this[_0x37f90d(0x1c5)]=_0x342e1b,this['_initHideRowColWithSparkline']();}[_0x12ae13(0x1d2)](){const _0x3fd3ec=_0x12ae13;this[_0x3fd3ec(0x24d)][_0x3fd3ec(0x21f)](_0x5963b4=>{const _0xc5527a=_0x3fd3ec;if(_0x5963b4['id']===_0x178290['id']||_0x5963b4['id']===_0x5c3d74['id']||_0x5963b4['id']===_0x2434f1['id']||_0x5963b4['id']===_0x1ee2a3['id']){let {ranges:_0x35f1b4,unitId:_0x4c70aa,subUnitId:_0x197cae}=_0x5963b4[_0xc5527a(0x1d7)],_0x557556=new Set(),_0x3c14dc=this[_0xc5527a(0x1c5)][_0xc5527a(0x1ca)](_0x4c70aa,_0x197cae);if(!_0x3c14dc)return;let _0x550cf6=Array[_0xc5527a(0x235)](_0x3c14dc);_0x35f1b4[_0xc5527a(0x19c)](_0x4781a1=>{const _0x4c8980=_0xc5527a;_0x161a6b[_0x4c8980(0x1bc)](_0x4781a1,(_0x22c071,_0x476dc8)=>{const _0x4a1097=_0x4c8980;let _0x6ef372=_0xdf0dbb(_0x22c071,_0x476dc8);for(let _0x87d795=0x0;_0x87d795<_0x550cf6[_0x4a1097(0x1f0)];_0x87d795++){let [_0xa8f4e4,_0xedcf1f]=_0x550cf6[_0x87d795],_0x4647ee=_0x557556[_0x4a1097(0x1e8)](_0xa8f4e4);_0x4647ee||_0xedcf1f[_0x4a1097(0x1b7)][_0x4a1097(0x234)]((_0x2b213c,_0x243db6,_0x13f088)=>{const _0x13ed06=_0x4a1097;let _0x246b0e=_0x13f088;if(_0x246b0e&&!_0x4647ee&&_0x3b8f67[_0x13ed06(0x1bb)](_0x6ef372,_0x246b0e))return _0x557556[_0x13ed06(0x215)](_0xa8f4e4),!0x0;});}});}),_0x557556[_0xc5527a(0x19c)](_0x21168e=>{const _0x5bfc14=_0xc5527a;this[_0x5bfc14(0x1c5)][_0x5bfc14(0x19d)](_0x4c70aa,_0x197cae,_0x21168e),this[_0x5bfc14(0x1c5)][_0x5bfc14(0x1e9)](_0x4c70aa,_0x197cae,_0x21168e);});}});}};J=V([B(0x0,_0x32409c(_0x281644)),B(0x1,_0x32409c(H))],J);function _0xd85e(_0x2e7f05,_0x1a538c){_0x2e7f05=_0x2e7f05-0x197;const _0x3b6d24=_0x3b6d();let _0xd85e57=_0x3b6d24[_0x2e7f05];return _0xd85e57;}let Y=class extends _0x4520ca{constructor(_0x104877,_0xc03142,_0x466b26){const _0x4e80fd=_0x12ae13;super(),this[_0x4e80fd(0x24d)]=_0x104877,this[_0x4e80fd(0x1d5)]=_0xc03142,this[_0x4e80fd(0x1c5)]=_0x466b26,this['_initMergeWithSparkline']();}['_initMergeWithSparkline'](){const _0x45d39f=_0x12ae13;this['disposeWithMe'](this[_0x45d39f(0x1d5)][_0x45d39f(0x1f4)]({'getMutations':_0x187743=>{const _0x298af0=_0x45d39f;let _0xb9314a=[],_0x30f2f9=[];if(_0x187743['id']===_0x159f84['id']){let _0x565f90=_0x187743[_0x298af0(0x1d7)];if(!_0x565f90)return{'redos':_0xb9314a,'undos':_0x30f2f9};let {unitId:_0x48b4d2,subUnitId:_0x4809d0,ranges:_0x21864e}=_0x565f90,_0x3d78ab=this[_0x298af0(0x1c5)][_0x298af0(0x1ca)](_0x48b4d2,_0x4809d0);if(!_0x3d78ab)return{'redos':_0xb9314a,'undos':_0x30f2f9};let _0x50ea85={},_0x5e49d8={},_0x5c2e1e=new Set();_0x21864e[_0x298af0(0x19c)](_0x3456f6=>{const _0x44b29e=_0x298af0;let _0x30b60d=_0x3456f6[_0x44b29e(0x1d1)],_0x33a4ba=_0x3456f6[_0x44b29e(0x1ee)];_0x161a6b['foreach'](_0x3456f6,(_0x3fc7f0,_0x41742f)=>{const _0x248a29=_0x44b29e;let _0x52c8fb=this[_0x248a29(0x1c5)][_0x248a29(0x1dc)](_0x48b4d2,_0x4809d0,_0x3fc7f0,_0x41742f);if(_0x52c8fb&&(_0x3fc7f0!==_0x30b60d||_0x41742f!==_0x33a4ba)){let _0x693340=this['_sparklineDataSourceModel'][_0x248a29(0x1b0)](_0x48b4d2,_0x4809d0,_0x52c8fb);if(_0x693340){_0x5c2e1e[_0x248a29(0x215)](_0x52c8fb);let _0x471bd5=_0x50ea85[_0x52c8fb];_0x471bd5||(_0x471bd5={'config':_0x3ff2e1[_0x248a29(0x20c)](_0x693340[_0x248a29(0x1c4)]),'sparklines':new _0x5a9674(_0x693340[_0x248a29(0x1b7)][_0x248a29(0x1f7)]())},_0x50ea85[_0x52c8fb]=_0x471bd5),_0x471bd5[_0x248a29(0x1b7)]['realDeleteValue'](_0x3fc7f0,_0x41742f),_0x5e49d8[_0x52c8fb]={'config':_0x3ff2e1[_0x248a29(0x20c)](_0x693340['config']),'sparklines':_0x3ff2e1[_0x248a29(0x20c)](_0x693340[_0x248a29(0x1b7)][_0x248a29(0x1f7)]())};}}});});for(let [_0x5e7f6f,_0x4f7eef]of _0x3d78ab){let _0x8372e9=_0x4f7eef['sparklines'];_0x8372e9[_0x298af0(0x234)]((_0xb9ea10,_0x364518,_0x4d149b)=>{const _0x2dd127=_0x298af0;for(let _0x769118=0x0;_0x769118<_0x21864e[_0x2dd127(0x1f0)];_0x769118++){let _0xd14a10=_0x21864e[_0x769118];if(_0x3b8f67[_0x2dd127(0x240)](_0xd14a10,_0x4d149b)){_0x5c2e1e[_0x2dd127(0x215)](_0x5e7f6f);let _0x44b711=_0x50ea85[_0x5e7f6f];_0x44b711||(_0x44b711={'config':_0x3ff2e1[_0x2dd127(0x20c)](_0x4f7eef[_0x2dd127(0x1c4)]),'sparklines':new _0x5a9674(_0x8372e9['clone']())},_0x50ea85[_0x5e7f6f]=_0x44b711),_0x44b711[_0x2dd127(0x1b7)][_0x2dd127(0x219)](_0xb9ea10,_0x364518),_0x5e49d8[_0x5e7f6f]||(_0x5e49d8[_0x5e7f6f]={'config':_0x3ff2e1[_0x2dd127(0x20c)](_0x4f7eef[_0x2dd127(0x1c4)]),'sparklines':_0x3ff2e1[_0x2dd127(0x20c)](_0x8372e9[_0x2dd127(0x1f7)]())});}}});}let _0x1a7274={};Object[_0x298af0(0x1b1)](_0x50ea85)['forEach'](([_0x4f3301,_0x42108b])=>{const _0x43bffc=_0x298af0;_0x42108b[_0x43bffc(0x1b7)][_0x43bffc(0x210)]()&&(_0x1a7274[_0x4f3301]={'config':_0x42108b[_0x43bffc(0x1c4)],'sparklines':_0x42108b[_0x43bffc(0x1b7)]['clone']()});}),_0x5c2e1e['size']&&(_0xb9314a[_0x298af0(0x1d6)]({'id':W['id'],'params':{'unitId':_0x48b4d2,'subUnitId':_0x4809d0,'groupIds':Array[_0x298af0(0x235)](_0x5c2e1e),'isSingle':!0x1}}),_0x30f2f9[_0x298af0(0x1d6)]({'id':W['id'],'params':{'unitId':_0x48b4d2,'subUnitId':_0x4809d0,'groupIds':Array['from'](_0x5c2e1e),'isSingle':!0x1}}),_0xb9314a[_0x298af0(0x1d6)]({'id':U['id'],'params':{'unitId':_0x48b4d2,'subUnitId':_0x4809d0,'sparklineConfigMap':_0x1a7274}}),_0x30f2f9[_0x298af0(0x1d6)]({'id':U['id'],'params':{'unitId':_0x48b4d2,'subUnitId':_0x4809d0,'sparklineConfigMap':_0x5e49d8}}));}return{'redos':_0xb9314a,'undos':_0x30f2f9};}}));}};function _0x3b6d(){const _0x52e052=['_initExclusiveRangeChange','range','SPECIALTY','pluginName','_initDataChangeListener','forValue','from','CUSTOM_EXTREMUM','SOFT','endRow','GROUP_EXTREMUM','default','rgb(244,104,249)','u-connect','1552dLaxkT','refRangeHandle','moveRows','contains','stringify','_resourceManagerService','_getRefRangeMutationsByDeleteRows','NUMBER','1.0.0-alpha.8','values','sheet.command.add-sparkline','LINE_CHART','assign','1748376pzgCAr','1737vmpGzX','row','_commandService','8606600GKZLPs','fromJSON','exclusiveRangesChange$','number','actualRow','changeDataSourceInfo','_config','u-spacing','_ensureAnchorMatrix','_initRegisterCommand','object','getValue','min','345377EHpghh','lastPoint','sheet.mutation.remove-sparkline','decorate','forEach','clearSparklineCache','firstPoint','nonNumShowAs','max','_getRefRangeMutationsByDeleteCols','35OgNaRn','get','onReady','next','unitId','rgb(49,106,246)','registerRefRange','UNIVER_SHEET','registerCommand','size','result','setSparkline','sheet.command.remove-sparkline','disposableCollection','getSparklineById','entries','string','asObservable','disposeWithMe','PIE_CHART','groupId','sparklines','delete','custom','_updateConfig$','intersects','foreach','_onRefRangeChange','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeRows','fresh','sparklineAnchorMap','6488HwlHrw','config','_sparklineDataSourceModel','extremumMin','removeColumns','toJSON','distinctive','getSubUnitSparkline','packageName','symbol','COMMAND','themeType','standard','BOOLEAN','startRow','_initHideRowColWithSparkline','hasValue','_initSnapshot','_sheetInterceptorService','push','params','column','remove','STRING','toRgbString','getSparkline','_initDependencies','_sparklineAnchorMap','pushUndoRedo','toPrimitive','getSheetId','getRowVisible','spacing','set','keys','getMatrix','rgb(248,190,21)','has','updateSparklineExtraNum','setConfig','_ensureConfigMap','subUnitId','getSparklineCache','startColumn','BAR_CHART','length','540594yKdUMw','setAlpha','zero_value','interceptCommand','type','_initSheetChange','clone','setValue','parse','soft','_initClearWithSparkline','_initCorrectRangeWithSparkline','getUnitId','getActiveSheet','MUTATION','deleteUnit','NORMAL','STANDARD','rgb(80,102,248)','rgb(46,187,122)','emptyShowAs','markersPoint','negativePoint','getColVisible','_injector','sparklineModel','connect_with_line','deepClone','742833jwukSI','rgb(236,100,169)','reBuildAnchorCache','getSizeOf','5MPaLld','rgb(124,66,147)','PROFIT_AND_LOSS_CHART','sheet.mutation.add-sparkline','add','ranges','constructor','every','realDeleteValue','FORCE_STRING','_univerInstanceService','removeSparkline','map','endColumn','onCommandExecuted','defineProperty','getCurrentUnitOfType','function','matrix','value','_sparklineModel','getCurrentSelections','extremumMax','rgb(30,177,189)','actualColumn','removePartSparkline','getSheetBySheetId','_refRangeService','subscribe','_sheetSelectionService'];_0x3b6d=function(){return _0x52e052;};return _0x3b6d();}Y=V([B(0x0,_0x32409c(_0x281644)),B(0x1,_0x32409c(_0x2fd56f)),B(0x2,_0x32409c(H))],Y);let X=class extends _0x4520ca{constructor(_0x337f95,_0xa65416,_0x1301f4,_0x370410){const _0x259e23=_0x12ae13;super(),this[_0x259e23(0x24d)]=_0x337f95,this['_refRangeService']=_0xa65416,this[_0x259e23(0x21b)]=_0x1301f4,this['_sparklineDataSourceModel']=_0x370410,z(this,'disposableCollection',new _0x161073()),this[_0x259e23(0x1bd)](),this[_0x259e23(0x1fc)]();}['_onRefRangeChange'](){const _0x57f3da=_0x12ae13;let _0x2e3e7c=(_0x4e78f6,_0x348235)=>{const _0x31f75=_0xd85e;let _0x3482fb=this[_0x31f75(0x21b)][_0x31f75(0x221)](_0x21c0bd[_0x31f75(0x1a9)]);if(!_0x3482fb||!(_0x3482fb!=null&&_0x3482fb[_0x31f75(0x22b)](_0x348235)))return;this[_0x31f75(0x1af)]['dispose']();let _0x1ab10c=_0x3aec3a=>this[_0x31f75(0x23e)](_0x3aec3a,_0x4e78f6,_0x348235),_0x244424=[],_0x33fd2b=this[_0x31f75(0x1c5)][_0x31f75(0x1ca)](_0x4e78f6,_0x348235);if(_0x33fd2b){for(let [_0x1cbb22,_0x1fd217]of _0x33fd2b)_0x1fd217['sparklines']['forValue']((_0xc87e7d,_0xcbb78,_0x5e1239)=>{let _0x5004ce=_0xdf0dbb(_0xc87e7d,_0xcbb78);_0x244424['push'](_0x5004ce);});_0x244424[_0x31f75(0x19c)](_0x5226da=>{const _0x42dfdb=_0x31f75;this['disposableCollection']['add'](this[_0x42dfdb(0x22c)][_0x42dfdb(0x1a8)](_0x5226da,_0x1ab10c,_0x4e78f6,_0x348235));});}};this[_0x57f3da(0x1b4)](this[_0x57f3da(0x24d)]['onCommandExecuted'](_0x58e3a4=>{const _0x3c7382=_0x57f3da;if(_0x58e3a4['id']===_0x5b1b29['id']){let _0x2284f7=_0x58e3a4[_0x3c7382(0x1d7)],_0x1f716d=_0x2284f7['subUnitId'],_0x2c3c0d=_0x2284f7[_0x3c7382(0x1a6)];if(!_0x1f716d||!_0x2c3c0d)return;_0x2e3e7c(_0x2c3c0d,_0x1f716d);}if(_0x58e3a4['id']===G['id']||_0x58e3a4['id']===U['id']){let _0x5b213e=_0x58e3a4[_0x3c7382(0x1d7)],_0x2628bf=_0x5b213e['subUnitId'],_0x433e19=_0x5b213e[_0x3c7382(0x1a6)];if(!_0x2628bf||!_0x433e19)return;_0x2e3e7c(_0x433e19,_0x2628bf);}}));}[_0x12ae13(0x23e)](_0x42e1e3,_0x424e5f,_0x43128a){const _0x1751c4=_0x12ae13;switch(_0x42e1e3['id']){case _0x5269ed['id']:return this[_0x1751c4(0x1a1)](_0x42e1e3['params'],_0x424e5f,_0x43128a);case _0xaa2e08['id']:return this['_getRefRangeMutationsByDeleteRows'](_0x42e1e3['params'],_0x424e5f,_0x43128a);default:break;}return{'redos':[],'undos':[]};}[_0x12ae13(0x243)](_0x4ee679,_0x13f961,_0x2e6dab){const _0x262882=_0x12ae13;var _0x8a8e36;let {range:_0x46f4f0}=_0x4ee679,_0x400b52=new Set(),_0x4d6f0f={},_0x2e1f70={},_0xb9ead6=[],_0x42ce22=[],_0x5f1e50=[],_0x36f16b=[];if(!_0x5221bf(this[_0x262882(0x21b)],{'unitId':_0x13f961,'subUnitId':_0x2e6dab}))return{'redos':_0x42ce22,'undos':_0xb9ead6};let _0x407dcb=this[_0x262882(0x1c5)][_0x262882(0x1ca)](_0x13f961,_0x2e6dab);if(!_0x407dcb||!((_0x8a8e36=this[_0x262882(0x1c5)]['getSparklineCache']()['sparklineAnchorMap'][_0x262882(0x1a3)](_0x13f961))!=null&&(_0x8a8e36=_0x8a8e36[_0x262882(0x1a3)](_0x2e6dab))!=null&&_0x8a8e36['matrix']))return{'redos':_0x42ce22,'undos':_0xb9ead6};for(let [_0x398221,_0x2014c0]of _0x407dcb){let _0x4b604d=_0x2014c0['sparklines'];_0x4b604d[_0x262882(0x234)]((_0x3e3798,_0x4b13a4,_0x5c6b4a)=>{const _0x2f1551=_0x262882;if(_0x3b8f67['intersects'](_0x46f4f0,_0x5c6b4a)){_0x400b52[_0x2f1551(0x215)](_0x398221);let _0x4a69bb=_0x2e1f70[_0x398221];_0x4a69bb||(_0x4a69bb={'config':_0x2014c0['config'],'sparklines':_0x2014c0['sparklines'][_0x2f1551(0x1f7)]()},_0x2e1f70[_0x398221]=_0x4a69bb);let _0x1c1474=_0x4d6f0f[_0x398221];_0x1c1474||(_0x1c1474={'config':_0x2014c0[_0x2f1551(0x1c4)],'sparklines':new _0x5a9674(_0x2014c0['sparklines'][_0x2f1551(0x1f7)]())},_0x4d6f0f[_0x398221]=_0x1c1474);let _0x6917ab=_0x50c42e(_0x5c6b4a,{'id':_0x2d3f3d['id'],'params':_0x4ee679});_0x6917ab?_0x1c1474[_0x2f1551(0x1b7)][_0x2f1551(0x1f8)](_0x3e3798,_0x4b13a4,_0x6917ab):_0x1c1474[_0x2f1551(0x1b7)][_0x2f1551(0x1f8)](_0x3e3798,_0x4b13a4,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28be3c[_0x2f1551(0x201)]});}}),_0x4b604d[_0x262882(0x234)](_0x47c737=>{const _0x337425=_0x262882;if(_0x47c737<=_0x46f4f0[_0x337425(0x238)]&&_0x47c737>=_0x46f4f0[_0x337425(0x1d1)]){_0x400b52[_0x337425(0x215)](_0x398221);let _0x46c49f=_0x2e1f70[_0x398221];_0x46c49f||(_0x46c49f={'config':_0x2014c0[_0x337425(0x1c4)],'sparklines':_0x2014c0[_0x337425(0x1b7)][_0x337425(0x1f7)]()},_0x2e1f70[_0x398221]=_0x46c49f);let _0x217ec4=_0x4d6f0f[_0x398221];_0x217ec4||(_0x217ec4={'config':_0x2014c0['config'],'sparklines':new _0x5a9674(_0x2014c0[_0x337425(0x1b7)][_0x337425(0x1f7)]())},_0x4d6f0f[_0x398221]=_0x217ec4);}});}_0x400b52['size']>0x0&&(_0x36f16b[_0x262882(0x1d6)]({'id':W['id'],'params':{'unitId':_0x13f961,'subUnitId':_0x2e6dab,'groupIds':Array[_0x262882(0x235)](_0x400b52),'isSingle':!0x1}}),_0x5f1e50[_0x262882(0x1d6)]({'id':W['id'],'params':{'unitId':_0x13f961,'subUnitId':_0x2e6dab,'groupIds':Array['from'](_0x400b52),'isSingle':!0x1}}));let _0x3b85c5={},_0x19af8e=!0x1;return Object['entries'](_0x4d6f0f)[_0x262882(0x19c)](([_0x267506,_0x36f8c3])=>{const _0x1fc7a0=_0x262882;_0x36f8c3['sparklines'][_0x1fc7a0(0x210)]()&&(_0x19af8e=!0x0,_0x36f8c3[_0x1fc7a0(0x1b7)][_0x1fc7a0(0x1c0)](_0x46f4f0[_0x1fc7a0(0x1d1)],_0x46f4f0[_0x1fc7a0(0x238)]-_0x46f4f0['startRow']+0x1),_0x3b85c5[_0x267506]={'config':_0x36f8c3[_0x1fc7a0(0x1c4)],'sparklines':_0x36f8c3['sparklines']['clone']()});}),_0x19af8e&&_0x42ce22[_0x262882(0x1d6)]({'id':U['id'],'params':{'unitId':_0x13f961,'subUnitId':_0x2e6dab,'sparklineConfigMap':_0x3b85c5}}),Object['keys'](_0x2e1f70)[_0x262882(0x1f0)]>0x0&&_0xb9ead6[_0x262882(0x1d6)]({'id':U['id'],'params':{'unitId':_0x13f961,'subUnitId':_0x2e6dab,'sparklineConfigMap':_0x2e1f70}}),{'redos':_0x42ce22,'undos':_0xb9ead6,'preRedos':_0x5f1e50,'preUndos':_0x36f16b};}['_getRefRangeMutationsByDeleteCols'](_0x303ccd,_0x276d3a,_0x598129){const _0x531e26=_0x12ae13;var _0x1e1073;let {range:_0x1eb172}=_0x303ccd,_0x175f45=new Set(),_0x515066={},_0x1f4c6e={},_0x2ef087=[],_0x153301=[],_0x44fb09=[],_0x3701f9=[];if(!_0x5221bf(this['_univerInstanceService'],{'unitId':_0x276d3a,'subUnitId':_0x598129}))return{'redos':_0x153301,'undos':_0x2ef087};let _0x58c6ea=this['_sparklineDataSourceModel'][_0x531e26(0x1ca)](_0x276d3a,_0x598129);if(!_0x58c6ea||!((_0x1e1073=this[_0x531e26(0x1c5)][_0x531e26(0x1ed)]()[_0x531e26(0x1c2)][_0x531e26(0x1a3)](_0x276d3a))!=null&&(_0x1e1073=_0x1e1073[_0x531e26(0x1a3)](_0x598129))!=null&&_0x1e1073[_0x531e26(0x223)]))return{'redos':_0x153301,'undos':_0x2ef087};for(let [_0x547542,_0x234c16]of _0x58c6ea){let _0x2805fb=_0x234c16['sparklines'];_0x2805fb['forValue']((_0x561654,_0x252a00,_0x5e8d03)=>{const _0x4e669e=_0x531e26;if(_0x3b8f67[_0x4e669e(0x1bb)](_0x1eb172,_0x5e8d03)){_0x175f45[_0x4e669e(0x215)](_0x547542);let _0xadd479=_0x1f4c6e[_0x547542];_0xadd479||(_0xadd479={'config':_0x234c16[_0x4e669e(0x1c4)],'sparklines':_0x234c16[_0x4e669e(0x1b7)]['clone']()},_0x1f4c6e[_0x547542]=_0xadd479);let _0x190aa2=_0x515066[_0x547542];_0x190aa2||(_0x190aa2={'config':_0x234c16[_0x4e669e(0x1c4)],'sparklines':new _0x5a9674(_0x234c16[_0x4e669e(0x1b7)][_0x4e669e(0x1f7)]())},_0x515066[_0x547542]=_0x190aa2);let _0x2775a1=_0x50c42e(_0x5e8d03,{'id':_0x8b7c11['id'],'params':_0x303ccd});_0x2775a1?_0x190aa2[_0x4e669e(0x1b7)][_0x4e669e(0x1f8)](_0x561654,_0x252a00,_0x2775a1):_0x190aa2['sparklines'][_0x4e669e(0x1f8)](_0x561654,_0x252a00,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28be3c[_0x4e669e(0x201)]});}}),_0x2805fb[_0x531e26(0x234)]((_0x686914,_0x412a61,_0x298d83)=>{const _0xe49e67=_0x531e26;if(_0x412a61<=_0x1eb172['endColumn']&&_0x412a61>=_0x1eb172['startColumn']){_0x175f45['add'](_0x547542);let _0x379713=_0x1f4c6e[_0x547542];_0x379713||(_0x379713={'config':_0x234c16[_0xe49e67(0x1c4)],'sparklines':_0x234c16[_0xe49e67(0x1b7)][_0xe49e67(0x1f7)]()},_0x1f4c6e[_0x547542]=_0x379713);let _0xa3be70=_0x515066[_0x547542];_0xa3be70||(_0xa3be70={'config':_0x234c16['config'],'sparklines':new _0x5a9674(_0x234c16[_0xe49e67(0x1b7)][_0xe49e67(0x1f7)]())},_0x515066[_0x547542]=_0xa3be70);}});}_0x175f45[_0x531e26(0x1ab)]>0x0&&(_0x3701f9[_0x531e26(0x1d6)]({'id':W['id'],'params':{'unitId':_0x276d3a,'subUnitId':_0x598129,'groupIds':Array['from'](_0x175f45),'isSingle':!0x1}}),_0x44fb09[_0x531e26(0x1d6)]({'id':W['id'],'params':{'unitId':_0x276d3a,'subUnitId':_0x598129,'groupIds':Array['from'](_0x175f45),'isSingle':!0x1}}));let _0x4d9a75={},_0x38ae5e=!0x1;return Object['entries'](_0x515066)[_0x531e26(0x19c)](([_0x45c918,_0x27a256])=>{const _0x65ec3d=_0x531e26;_0x27a256[_0x65ec3d(0x1b7)][_0x65ec3d(0x210)]()&&(_0x38ae5e=!0x0,_0x27a256[_0x65ec3d(0x1b7)]['removeColumns'](_0x1eb172['startColumn'],_0x1eb172[_0x65ec3d(0x21e)]-_0x1eb172[_0x65ec3d(0x1ee)]+0x1),_0x4d9a75[_0x45c918]={'config':_0x27a256['config'],'sparklines':_0x27a256[_0x65ec3d(0x1b7)][_0x65ec3d(0x1f7)]()});}),_0x38ae5e&&_0x153301[_0x531e26(0x1d6)]({'id':U['id'],'params':{'unitId':_0x276d3a,'subUnitId':_0x598129,'sparklineConfigMap':_0x4d9a75}}),Object[_0x531e26(0x1e5)](_0x1f4c6e)[_0x531e26(0x1f0)]>0x0&&_0x2ef087['push']({'id':U['id'],'params':{'unitId':_0x276d3a,'subUnitId':_0x598129,'sparklineConfigMap':_0x1f4c6e}}),{'redos':_0x153301,'undos':_0x2ef087,'preRedos':_0x44fb09,'preUndos':_0x3701f9};}['_initCorrectRangeWithSparkline'](){const _0x52ae7c=_0x12ae13;this[_0x52ae7c(0x1b4)](this['_commandService']['onCommandExecuted'](_0xcdea0e=>{const _0x106c2e=_0x52ae7c;if(_0xcdea0e['id']===_0xfea942['id']){let {unitId:_0x529e48,subUnitId:_0x1caabe,range:_0x1716a4}=_0xcdea0e['params'],_0x125a88=_0x1716a4[_0x106c2e(0x1ee)],_0x591940=_0x1716a4[_0x106c2e(0x21e)]-_0x1716a4[_0x106c2e(0x1ee)]+0x1,_0x58c629=this[_0x106c2e(0x1c5)][_0x106c2e(0x1ca)](_0x529e48,_0x1caabe);if(!_0x58c629)return;for(let [_0x4d7bbb,_0x2e393c]of _0x58c629){this[_0x106c2e(0x1c5)][_0x106c2e(0x19d)](_0x529e48,_0x1caabe,_0x4d7bbb);let _0xa13743=_0x2e393c['sparklines'];_0xa13743[_0x106c2e(0x234)]((_0x33af8b,_0x342e4b,_0x600ed2)=>{const _0x72807b=_0x106c2e;let _0x4431d6={..._0x600ed2};_0x125a88<=_0x4431d6[_0x72807b(0x1ee)]?(_0x4431d6[_0x72807b(0x1ee)]+=_0x591940,_0x4431d6[_0x72807b(0x21e)]+=_0x591940):_0x125a88>_0x4431d6['endColumn']||(_0x4431d6[_0x72807b(0x21e)]+=_0x591940),_0xa13743[_0x72807b(0x1f8)](_0x33af8b,_0x342e4b,_0x4431d6);});let _0x413416=_0xa13743[_0x106c2e(0x1e6)]();for(let _0x117558 in _0x413416){let _0x55317c=_0x413416[Number(_0x117558)];if(!_0x55317c)continue;let _0x258c37=Object[_0x106c2e(0x1e5)](_0x55317c)['map'](Number),_0x341a7a=Math[_0x106c2e(0x1a0)](..._0x258c37);for(let _0x438306=_0x341a7a;_0x438306>=_0x125a88;_0x438306--)_0x438306>=_0x125a88&&_0x55317c[_0x438306]&&(_0x55317c[_0x438306+_0x591940]=_0x55317c[_0x438306],delete _0x55317c[_0x438306]);}this[_0x106c2e(0x1c5)]['updateSparklineExtraNum'](_0x529e48,_0x1caabe,_0x4d7bbb);}}else{if(_0xcdea0e['id']===_0x5579cd['id']){let {unitId:_0x4c9b33,subUnitId:_0xbfd37e,range:_0x3a9ed0}=_0xcdea0e['params'],_0x1c87ce=_0x3a9ed0[_0x106c2e(0x1d1)],_0x55cb89=_0x3a9ed0[_0x106c2e(0x238)]-_0x3a9ed0['startRow']+0x1,_0x5645cd=this[_0x106c2e(0x1c5)][_0x106c2e(0x1ca)](_0x4c9b33,_0xbfd37e);if(!_0x5645cd)return;for(let [_0x57a635,_0x4337a6]of _0x5645cd){this[_0x106c2e(0x1c5)][_0x106c2e(0x19d)](_0x4c9b33,_0xbfd37e,_0x57a635);let _0x52b71f=_0x4337a6[_0x106c2e(0x1b7)];_0x52b71f[_0x106c2e(0x234)]((_0xf779e2,_0x52125b,_0x144b06)=>{const _0x30c778=_0x106c2e;let _0x50e279={..._0x144b06};_0x1c87ce<=_0x50e279[_0x30c778(0x1d1)]?(_0x50e279[_0x30c778(0x1d1)]+=_0x55cb89,_0x50e279[_0x30c778(0x238)]+=_0x55cb89):_0x1c87ce>_0x50e279[_0x30c778(0x238)]||(_0x50e279['endRow']+=_0x55cb89),_0x52b71f[_0x30c778(0x1f8)](_0xf779e2,_0x52125b,_0x50e279);});let _0x31ff5d=_0x52b71f[_0x106c2e(0x1e6)](),_0x2f4f04=Object[_0x106c2e(0x1e5)](_0x31ff5d)[_0x106c2e(0x21d)](Number),_0x249058=Math[_0x106c2e(0x1a0)](..._0x2f4f04);for(let _0x3c98c4=_0x249058;_0x3c98c4>=_0x1c87ce;_0x3c98c4--)_0x3c98c4>=_0x1c87ce&&_0x31ff5d[_0x3c98c4]&&(_0x31ff5d[_0x3c98c4+_0x55cb89]=_0x31ff5d[_0x3c98c4],delete _0x31ff5d[_0x3c98c4]);this[_0x106c2e(0x1c5)][_0x106c2e(0x1e9)](_0x4c9b33,_0xbfd37e,_0x57a635);}}else{if(_0xcdea0e['id']===_0x8b7c11['id']){let {range:_0x4faffc,unitId:_0x274315,subUnitId:_0x250fe7}=_0xcdea0e[_0x106c2e(0x1d7)],_0x152a62=this[_0x106c2e(0x1c5)]['getSubUnitSparkline'](_0x274315,_0x250fe7);if(!_0x152a62)return;for(let [_0x383797,_0x3c1b8b]of _0x152a62){let _0x581b44=_0x3c1b8b['sparklines'];_0x581b44['forValue']((_0x28d3c3,_0x29f8c2,_0x1f5742)=>{const _0x620e89=_0x106c2e;let _0x8b9125=_0x50c42e(_0x1f5742,_0xcdea0e);_0x8b9125?_0x581b44[_0x620e89(0x1f8)](_0x28d3c3,_0x29f8c2,_0x8b9125):_0x581b44[_0x620e89(0x1f8)](_0x28d3c3,_0x29f8c2,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28be3c['NORMAL']});}),_0x581b44[_0x106c2e(0x1c7)](_0x4faffc['startColumn'],_0x4faffc['endColumn']-_0x4faffc[_0x106c2e(0x1ee)]+0x1);}this[_0x106c2e(0x1c5)][_0x106c2e(0x20f)](_0x274315,_0x250fe7);}else{if(_0xcdea0e['id']===_0x2d3f3d['id']){let {range:_0x2c6ef2,unitId:_0x2f5f3c,subUnitId:_0x93d97}=_0xcdea0e[_0x106c2e(0x1d7)],_0x57b5c4=this['_sparklineDataSourceModel'][_0x106c2e(0x1ca)](_0x2f5f3c,_0x93d97);if(!_0x57b5c4)return;for(let [_0x4ffb1e,_0x4a1d81]of _0x57b5c4){let _0x2c38b3=_0x4a1d81[_0x106c2e(0x1b7)];_0x2c38b3['forValue']((_0x4487bb,_0x25b84c,_0x1c4349)=>{const _0x1be194=_0x106c2e;let _0x231680=_0x50c42e(_0x1c4349,_0xcdea0e);_0x231680?_0x2c38b3[_0x1be194(0x1f8)](_0x4487bb,_0x25b84c,_0x231680):_0x2c38b3[_0x1be194(0x1f8)](_0x4487bb,_0x25b84c,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28be3c[_0x1be194(0x201)]});}),_0x2c38b3[_0x106c2e(0x1c0)](_0x2c6ef2[_0x106c2e(0x1d1)],_0x2c6ef2[_0x106c2e(0x238)]-_0x2c6ef2[_0x106c2e(0x1d1)]+0x1);}this[_0x106c2e(0x1c5)][_0x106c2e(0x20f)](_0x2f5f3c,_0x93d97);}else{if(_0xcdea0e['id']===_0x181f56['id']){let {unitId:_0xce6665,subUnitId:_0x2f5334,sourceRange:_0x3251a9,targetRange:_0x2207f0}=_0xcdea0e[_0x106c2e(0x1d7)],_0x1231c9=this[_0x106c2e(0x1c5)]['getSubUnitSparkline'](_0xce6665,_0x2f5334);if(!_0x1231c9)return;for(let [_0x327212,_0x5aa78d]of _0x1231c9){let _0x14f65e=_0x5aa78d[_0x106c2e(0x1b7)];_0x14f65e['forValue']((_0x20dc7d,_0x682dc3,_0x2e2f75)=>{const _0x22b194=_0x106c2e;let _0xdb91bc=_0x50c42e(_0x2e2f75,_0xcdea0e);_0xdb91bc?_0x14f65e[_0x22b194(0x1f8)](_0x20dc7d,_0x682dc3,_0xdb91bc):_0x14f65e[_0x22b194(0x1f8)](_0x20dc7d,_0x682dc3,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28be3c[_0x22b194(0x201)]});}),_0x14f65e['moveColumns'](_0x3251a9[_0x106c2e(0x1ee)],_0x3251a9['endColumn']-_0x3251a9['startColumn']+0x1,_0x2207f0[_0x106c2e(0x1ee)]);}this[_0x106c2e(0x1c5)][_0x106c2e(0x20f)](_0xce6665,_0x2f5334);}else{if(_0xcdea0e['id']===_0x5a6689['id']){let {unitId:_0x43b7c7,subUnitId:_0x538a79,sourceRange:_0x5a5689,targetRange:_0x28207c}=_0xcdea0e['params'],_0x52d80f=this[_0x106c2e(0x1c5)][_0x106c2e(0x1ca)](_0x43b7c7,_0x538a79);if(!_0x52d80f)return;for(let [_0x2cd9b3,_0x34390a]of _0x52d80f){let _0x58b255=_0x34390a[_0x106c2e(0x1b7)];_0x58b255['forValue']((_0x32566c,_0x159801,_0xce90f4)=>{const _0x55027a=_0x106c2e;let _0x5c20d=_0x50c42e(_0xce90f4,_0xcdea0e);_0x5c20d?_0x58b255[_0x55027a(0x1f8)](_0x32566c,_0x159801,_0x5c20d):_0x58b255[_0x55027a(0x1f8)](_0x32566c,_0x159801,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28be3c[_0x55027a(0x201)]});}),_0x58b255[_0x106c2e(0x23f)](_0x5a5689[_0x106c2e(0x1d1)],_0x5a5689[_0x106c2e(0x238)]-_0x5a5689[_0x106c2e(0x1d1)]+0x1,_0x28207c[_0x106c2e(0x1d1)]);}this[_0x106c2e(0x1c5)][_0x106c2e(0x20f)](_0x43b7c7,_0x538a79);}else{if(_0xcdea0e['id']===_0x44909e['id']){let {fromRange:_0x19a71c,toRange:_0x1331b2,unitId:_0x1ba39f,from:_0x1133cf,to:_0x1bd1d0}=_0xcdea0e['params'];if(_0x1133cf[_0x106c2e(0x1ec)]!==_0x1bd1d0[_0x106c2e(0x1ec)])return;let _0x45d120=_0x1133cf[_0x106c2e(0x1ec)],{startRow:_0xae1ac5,endRow:_0x4ea47b,startColumn:_0x4ca651,endColumn:_0x9c1e0d}=_0x19a71c,{startRow:_0x5a26ff,startColumn:_0x71df99}=_0x1331b2,_0x1832be=_0x5a26ff-_0xae1ac5,_0x5839fc=_0x71df99-_0x4ca651,_0x59b380=this[_0x106c2e(0x1c5)][_0x106c2e(0x1ca)](_0x1ba39f,_0x45d120);if(!(_0x59b380!=null&&_0x59b380[_0x106c2e(0x1ab)]))return;for(let _0x182b1d=_0xae1ac5;_0x182b1d<=_0x4ea47b;_0x182b1d++)for(let _0x309640=_0x4ca651;_0x309640<=_0x9c1e0d;_0x309640++){let _0x3f6585=this[_0x106c2e(0x1c5)]['getSparkline'](_0x1ba39f,_0x45d120,_0x182b1d,_0x309640);if(_0x3f6585){let _0x4254cf=this[_0x106c2e(0x1c5)][_0x106c2e(0x1b0)](_0x1ba39f,_0x45d120,_0x3f6585);if(_0x4254cf){let _0x34fcf2=_0x4254cf[_0x106c2e(0x1b7)][_0x106c2e(0x259)](_0x182b1d,_0x309640);_0x34fcf2&&(_0x4254cf['sparklines'][_0x106c2e(0x1f8)](_0x182b1d+_0x1832be,_0x309640+_0x5839fc,_0x34fcf2),_0x4254cf[_0x106c2e(0x1b7)]['realDeleteValue'](_0x182b1d,_0x309640));}}}for(let [_0x38f3a0,_0x1e2f69]of _0x59b380){let _0x362e93=_0x1e2f69[_0x106c2e(0x1b7)];_0x362e93['forValue']((_0x299716,_0x9e521,_0x354c2d)=>{const _0x275425=_0x106c2e;let _0x50a28f={..._0x354c2d};_0x3b8f67[_0x275425(0x240)](_0x19a71c,_0x354c2d)&&(_0x50a28f[_0x275425(0x1d1)]+=_0x1832be,_0x50a28f['endRow']+=_0x1832be,_0x50a28f[_0x275425(0x1ee)]+=_0x5839fc,_0x50a28f['endColumn']+=_0x5839fc),_0x362e93['setValue'](_0x299716,_0x9e521,_0x50a28f);});}this[_0x106c2e(0x1c5)][_0x106c2e(0x20f)](_0x1ba39f,_0x45d120);}}}}}}}}));}};X=V([B(0x0,_0x32409c(_0x281644)),B(0x1,_0x32409c(_0xa80cda)),B(0x2,_0x1f105a),B(0x3,_0x32409c(H))],X);let Z=class extends _0x4520ca{constructor(_0x5698cf,_0x3ba94e,_0x568ef7){const _0x50350c=_0x12ae13;super(),this[_0x50350c(0x21b)]=_0x5698cf,this['_sheetInterceptorService']=_0x3ba94e,this[_0x50350c(0x1c5)]=_0x568ef7,this[_0x50350c(0x1f6)]();}[_0x12ae13(0x1f6)](){const _0x12c92f=_0x12ae13;this['disposeWithMe'](this[_0x12c92f(0x1d5)]['interceptCommand']({'getMutations':_0xe123c4=>{const _0x1a14a4=_0x12c92f;if(_0xe123c4['id']===_0x5291ed['id']){var _0x145406;let _0x64cf15=_0xe123c4['params'],_0x541824=_0x64cf15[_0x1a14a4(0x1a6)]||this[_0x1a14a4(0x21b)][_0x1a14a4(0x221)](_0x21c0bd[_0x1a14a4(0x1a9)])[_0x1a14a4(0x1fd)](),_0x5b274a=_0x64cf15[_0x1a14a4(0x1ec)]||((_0x145406=this[_0x1a14a4(0x21b)]['getCurrentUnitOfType'](_0x21c0bd['UNIVER_SHEET'])[_0x1a14a4(0x1fe)]())==null?void 0x0:_0x145406[_0x1a14a4(0x1e1)]());if(!_0x541824||!_0x5b274a)return{'redos':[],'undos':[]};let _0x1a27e2=this[_0x1a14a4(0x1c5)]['getSubUnitSparkline'](_0x541824,_0x5b274a);if(!_0x1a27e2)return{'redos':[],'undos':[]};let _0xabd85d=new Set(),_0x1d71ec={};for(let [_0x422f61,_0xb31f62]of _0x1a27e2)_0xabd85d['add'](_0x422f61),_0x1d71ec[_0x422f61]={'config':_0x3ff2e1[_0x1a14a4(0x20c)](_0xb31f62[_0x1a14a4(0x1c4)]),'sparklines':_0x3ff2e1[_0x1a14a4(0x20c)](_0xb31f62[_0x1a14a4(0x1b7)][_0x1a14a4(0x1f7)]())};if(_0xabd85d[_0x1a14a4(0x1ab)])return{'redos':[{'id':W['id'],'params':{'unitId':_0x541824,'subUnitId':_0x5b274a,'groupIds':Array[_0x1a14a4(0x235)](_0xabd85d),'isSingle':!0x1}}],'undos':[{'id':U['id'],'params':{'unitId':_0x541824,'subUnitId':_0x5b274a,'sparklineConfigMap':_0x1d71ec}}]};}else{if(_0xe123c4['id']===_0x41d738['id']){let {unitId:_0x452f0c,subUnitId:_0x5b0f57,targetSubUnitId:_0x100702}=_0xe123c4[_0x1a14a4(0x1d7)];if(!_0x452f0c||!_0x5b0f57||!_0x100702)return{'redos':[],'undos':[]};let _0x308d8f=this[_0x1a14a4(0x1c5)]['getSubUnitSparkline'](_0x452f0c,_0x5b0f57);if(!_0x308d8f)return{'redos':[],'undos':[]};let _0x424ca9=new Set(),_0x77462={};for(let [_0x3d7d3c,_0x5087d9]of _0x308d8f){let _0x54cbb5='g_'+_0x58a840(0x6);_0x424ca9[_0x1a14a4(0x215)](_0x3d7d3c),_0x77462[_0x54cbb5]={'config':_0x3ff2e1[_0x1a14a4(0x20c)](_0x5087d9[_0x1a14a4(0x1c4)]),'sparklines':_0x3ff2e1[_0x1a14a4(0x20c)](_0x5087d9[_0x1a14a4(0x1b7)][_0x1a14a4(0x1f7)]())};}if(_0x424ca9[_0x1a14a4(0x1ab)])return{'redos':[{'id':U['id'],'params':{'unitId':_0x452f0c,'subUnitId':_0x100702,'sparklineConfigMap':_0x77462}}],'undos':[{'id':W['id'],'params':{'unitId':_0x452f0c,'subUnitId':_0x100702,'groupIds':Array['from'](_0x424ca9),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};Z=V([B(0x0,_0x32409c(_0x1f105a)),B(0x1,_0x32409c(_0x2fd56f)),B(0x2,_0x32409c(H))],Z);let Q=class extends _0x4520ca{constructor(_0x26df94,_0x4861c9){const _0x37df4c=_0x12ae13;super(),this[_0x37df4c(0x242)]=_0x26df94,this['_sparklineDataSourceModel']=_0x4861c9,this[_0x37df4c(0x1d4)]();}[_0x12ae13(0x1d4)](){const _0x97e266=_0x12ae13;this['disposeWithMe'](this[_0x97e266(0x242)]['registerPluginResource']({'toJson':_0x3b746d=>{const _0xc57e8e=_0x97e266;let _0x2c3985=this[_0xc57e8e(0x1c5)][_0xc57e8e(0x1c8)](_0x3b746d);return _0x2c3985?JSON[_0xc57e8e(0x241)](_0x2c3985):'';},'parseJson':_0x2bfbec=>_0x2bfbec?JSON[_0x97e266(0x1f9)](_0x2bfbec):{},'pluginName':I,'businesses':[_0x21c0bd[_0x97e266(0x1a9)]],'onLoad':(_0x2fd7d8,_0x44cb51)=>{const _0x333df7=_0x97e266;this['_sparklineDataSourceModel'][_0x333df7(0x24f)](_0x44cb51);},'onUnLoad':_0x4c9223=>{const _0x5c74b4=_0x97e266;this[_0x5c74b4(0x1c5)][_0x5c74b4(0x200)](_0x4c9223);}}));}};Q=V([B(0x0,_0x32409c(_0x3482e9)),B(0x1,_0x32409c(H))],Q);let $=class extends _0x29f5c1{constructor(_0x3a3560=Me,_0x274169,_0x5b603b,_0x27be59){const _0x36c820=_0x12ae13;super(),this[_0x36c820(0x254)]=_0x3a3560,this[_0x36c820(0x209)]=_0x274169,this[_0x36c820(0x1be)]=_0x5b603b,this[_0x36c820(0x24d)]=_0x27be59;let {..._0x26370e}=_0x5b79c8({},Me,this[_0x36c820(0x254)]);this[_0x36c820(0x1be)][_0x36c820(0x1ea)]('sheets-sparkline.config',_0x26370e),this['_initDependencies'](),this[_0x36c820(0x257)]();}[_0x12ae13(0x1dd)](){const _0x569366=_0x12ae13;[[H],[q],[Y],[K],[X],[J],[Z],[Q]][_0x569366(0x19c)](_0x41c40f=>{const _0x6834f6=_0x569366;this[_0x6834f6(0x209)][_0x6834f6(0x215)](_0x41c40f);}),_0x265af1(this[_0x569366(0x209)],[[Q]]);}[_0x12ae13(0x1a4)](){_0x265af1(this['_injector'],[[q],[Y],[K],[X],[J],[Z]]);}[_0x12ae13(0x257)](){const _0x3f8fa6=_0x12ae13;[De,U,Oe,W,ke,G]['forEach'](_0x17c965=>this['_commandService'][_0x3f8fa6(0x1aa)](_0x17c965));}};z($,_0x12ae13(0x232),I),z($,_0x12ae13(0x1cb),Ae),z($,'version',je),z($,_0x12ae13(0x1f5),_0x21c0bd['UNIVER_SHEET']),$=V([_0x5d1c4c(_0xf45a4d,_0x51081f),B(0x1,_0x32409c(_0x29304c)),B(0x2,_0x5b4154),B(0x3,_0x32409c(_0x281644))],$);export{De as AddSheetSparklineCommand,U as AddSheetSparklineMutation,I as PLUGIN_NAME,Oe as RemoveSheetSparklineCommand,W as RemoveSheetSparklineMutation,ke as SetSheetSparklineCommand,G as SetSheetSparklineMutation,Ce as SpacialShowAsEnum,H as SparklineDataSourceModel,we as SparklineExtremumTypeEnum,be as SparklinePointsNames,L as SparklineThemeMapping,xe as SparklineThemeTypeEnum,Se as SparklineTypeEnum,$ as UniverSheetSparklinePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x32d83b=_0x4f5c;(function(_0xc156c8,_0x4178c5){const _0x204966=_0x4f5c,_0x255362=_0xc156c8();while(!![]){try{const _0x22d10e=parseInt(_0x204966(0x18f))/0x1+-parseInt(_0x204966(0x185))/0x2+-parseInt(_0x204966(0x194))/0x3+-parseInt(_0x204966(0x176))/0x4*(parseInt(_0x204966(0x187))/0x5)+-parseInt(_0x204966(0x171))/0x6+-parseInt(_0x204966(0x179))/0x7+-parseInt(_0x204966(0x197))/0x8*(-parseInt(_0x204966(0x17c))/0x9);if(_0x22d10e===_0x4178c5)break;else _0x255362['push'](_0x255362['shift']());}catch(_0x28c961){_0x255362['push'](_0x255362['shift']());}}}(_0x104a,0x40dfe));import{AddSheetSparklineCommand as _0x503851,RemoveSheetSparklineCommand as _0x1958a3,SetSheetSparklineCommand as _0x266092,SparklineDataSourceModel as _0x311b53,SparklineTypeEnum as _0x1dc404}from'@univerjs-pro/sheets-sparkline';import{ICommandService as _0x200b1a,Inject as _0x570f8b,Injector as _0x248b2d,Tools as _0x53f483}from'@univerjs/core';import{FWorksheet as _0x535563}from'@univerjs/sheets/facade';import{FEnum as _0xb76123,FEventName as _0x41153d,FUniver as _0x1a120a}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x46e772}from'@univerjs/sheets';function _0x4f5c(_0x161017,_0x169242){_0x161017=_0x161017-0x15d;const _0x104a1a=_0x104a();let _0x4f5c54=_0x104a1a[_0x161017];return _0x4f5c54;}function m(_0x3b5361,_0x102a9d){return function(_0x3ef394,_0xe52f33){_0x102a9d(_0x3ef394,_0xe52f33,_0x3b5361);};}function h(_0x379563,_0x3fad0f,_0x436e12,_0x4862c){const _0x711ec8=_0x4f5c;var _0x3f50e5=arguments[_0x711ec8(0x19c)],_0x29f145=_0x3f50e5<0x3?_0x3fad0f:_0x4862c===null?_0x4862c=Object['getOwnPropertyDescriptor'](_0x3fad0f,_0x436e12):_0x4862c,_0x1416dd;if(typeof Reflect==_0x711ec8(0x199)&&typeof Reflect['decorate']==_0x711ec8(0x17a))_0x29f145=Reflect['decorate'](_0x379563,_0x3fad0f,_0x436e12,_0x4862c);else{for(var _0x5d6225=_0x379563[_0x711ec8(0x19c)]-0x1;_0x5d6225>=0x0;_0x5d6225--)(_0x1416dd=_0x379563[_0x5d6225])&&(_0x29f145=(_0x3f50e5<0x3?_0x1416dd(_0x29f145):_0x3f50e5>0x3?_0x1416dd(_0x3fad0f,_0x436e12,_0x29f145):_0x1416dd(_0x3fad0f,_0x436e12))||_0x29f145);}return _0x3f50e5>0x3&&_0x29f145&&Object[_0x711ec8(0x198)](_0x3fad0f,_0x436e12,_0x29f145),_0x29f145;}let g=class{constructor(_0x3c242b,_0x24bc94,_0x1934d7,_0x4bcb93,_0x32796e,_0x125d9b){const _0x3381cc=_0x4f5c;this[_0x3381cc(0x18a)]=_0x3c242b,this[_0x3381cc(0x17b)]=_0x24bc94,this['_groupId']=_0x1934d7,this['_row']=_0x4bcb93,this[_0x3381cc(0x175)]=_0x32796e,this['_injector']=_0x125d9b;}['changeDataSource'](_0x59e259,_0x445d5c){const _0x829d60=_0x4f5c;let _0x230b23=this['_injector'][_0x829d60(0x15d)](_0x311b53),_0x5cfbfa=this[_0x829d60(0x166)][_0x829d60(0x15d)](_0x200b1a),_0x5e2ee8=_0x230b23[_0x829d60(0x163)](this[_0x829d60(0x18a)],this[_0x829d60(0x17b)],this['_groupId']);if(!_0x5e2ee8)return;let _0x20cb30={'config':_0x5e2ee8,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x829d60(0x196)],'resetType':_0x829d60(0x16b),'sourceRanges':[_0x59e259],'targetRanges':[_0x445d5c],'primary':{'startRow':this[_0x829d60(0x18b)],'startColumn':this[_0x829d60(0x175)],'endRow':this[_0x829d60(0x18b)],'endColumn':this['_col'],'actualRow':this['_row'],'actualColumn':this[_0x829d60(0x175)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x5cfbfa[_0x829d60(0x19e)](_0x266092['id'],_0x20cb30),this[_0x829d60(0x18b)]=_0x445d5c['startRow'],this[_0x829d60(0x175)]=_0x445d5c[_0x829d60(0x170)],this;}[_0x32d83b(0x19b)](){const _0x4b78e7=_0x32d83b;let _0x21c978=this['_injector'][_0x4b78e7(0x15d)](_0x200b1a),_0x552962={'isSingle':!0x0,'ranges':[{'startRow':this[_0x4b78e7(0x18b)],'startColumn':this[_0x4b78e7(0x175)],'endRow':this[_0x4b78e7(0x18b)],'endColumn':this['_col']}]};_0x21c978['syncExecuteCommand'](_0x1958a3['id'],_0x552962);}};g=h([m(0x5,_0x570f8b(_0x248b2d))],g);let _=class{constructor(_0x1b1a3b,_0x184cd1,_0xadc5ca,_0xab46fc,_0x1ef14b,_0x14287b){const _0x3b6985=_0x32d83b;this[_0x3b6985(0x18a)]=_0x1b1a3b,this[_0x3b6985(0x17b)]=_0x184cd1,this[_0x3b6985(0x196)]=_0xadc5ca,this[_0x3b6985(0x18b)]=_0xab46fc,this[_0x3b6985(0x175)]=_0x1ef14b,this['_injector']=_0x14287b;}[_0x32d83b(0x190)](_0x109dba,_0x36a182){const _0x1b29a1=_0x32d83b;let _0x1496e2=this[_0x1b29a1(0x166)][_0x1b29a1(0x15d)](_0x311b53),_0x45d894=this['_injector'][_0x1b29a1(0x15d)](_0x200b1a),_0x1d8058=_0x1496e2[_0x1b29a1(0x163)](this[_0x1b29a1(0x18a)],this[_0x1b29a1(0x17b)],this[_0x1b29a1(0x196)]);if(!_0x1d8058)return;let _0x351e94={'config':_0x1d8058,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x1b29a1(0x196)],'resetType':'group','sourceRanges':_0x109dba,'targetRanges':_0x36a182,'primary':{'startRow':this['_row'],'startColumn':this[_0x1b29a1(0x175)],'endRow':this[_0x1b29a1(0x18b)],'endColumn':this[_0x1b29a1(0x175)],'actualRow':this[_0x1b29a1(0x18b)],'actualColumn':this[_0x1b29a1(0x175)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x45d894[_0x1b29a1(0x19e)](_0x266092['id'],_0x351e94),this[_0x1b29a1(0x18b)]=_0x36a182[0x0][_0x1b29a1(0x167)],this[_0x1b29a1(0x175)]=_0x36a182[0x0][_0x1b29a1(0x170)],this;}['removeSparklineGroup'](){const _0x593fa9=_0x32d83b;let _0x4dbe09=this[_0x593fa9(0x166)]['get'](_0x200b1a),_0x5cbe1e={'isSingle':!0x1,'ranges':[{'startRow':this[_0x593fa9(0x18b)],'startColumn':this[_0x593fa9(0x175)],'endRow':this[_0x593fa9(0x18b)],'endColumn':this[_0x593fa9(0x175)]}]};_0x4dbe09[_0x593fa9(0x19e)](_0x1958a3['id'],_0x5cbe1e);}[_0x32d83b(0x174)](_0x669ac7){const _0xdf549e=_0x32d83b;let _0x29d9e8=this[_0xdf549e(0x166)][_0xdf549e(0x15d)](_0x311b53)[_0xdf549e(0x163)](this[_0xdf549e(0x18a)],this['_subUnitId'],this[_0xdf549e(0x196)]);if(_0x29d9e8){let _0x5b2c97={'config':{'config':_0x669ac7,'sparklines':_0x29d9e8[_0xdf549e(0x19d)]},'isChangeDataSource':!0x1};this[_0xdf549e(0x166)][_0xdf549e(0x15d)](_0x200b1a)['syncExecuteCommand'](_0x266092['id'],_0x5b2c97);}return this;}};_=h([m(0x5,_0x570f8b(_0x248b2d))],_);var v=class extends _0x535563{['addSparkline'](_0x35e183,_0x5ed0a8,_0x25eac6){const _0x4b9f80=_0x32d83b;if(this[_0x4b9f80(0x15e)]['syncExecuteCommand'](_0x503851['id'],{'sourceRanges':_0x35e183,'targetRanges':_0x5ed0a8,'targetInfo':{'unitId':this[_0x4b9f80(0x16e)][_0x4b9f80(0x168)](),'subUnitId':this[_0x4b9f80(0x19f)][_0x4b9f80(0x164)]()},'config':{'type':_0x25eac6}})){let {startRow:_0x24e0f6,startColumn:_0x13f9e1}=_0x5ed0a8[0x0];return this[_0x4b9f80(0x18e)](_0x24e0f6,_0x13f9e1);}}[_0x32d83b(0x189)](){const _0x659956=_0x32d83b;return this[_0x659956(0x166)]['get'](_0x311b53)['getSubUnitSparkline'](this[_0x659956(0x16e)]['getUnitId'](),this[_0x659956(0x19f)]['getSheetId']());}[_0x32d83b(0x16c)](_0x1e40fe){const _0x54b371=_0x32d83b;let _0x5898d7=this['_injector'][_0x54b371(0x15d)](_0x311b53),_0x2c09bb;for(let _0xc01fa5=0x0;_0xc01fa5<_0x1e40fe['length'];_0xc01fa5++){let {startRow:_0x29d113,endRow:_0x367d5e,startColumn:_0x7b1e05,endColumn:_0x18ad76}=_0x1e40fe[_0xc01fa5];for(let _0x8faa25=_0x29d113;_0x8faa25<=_0x367d5e;_0x8faa25++)for(let _0x1a536d=_0x7b1e05;_0x1a536d<=_0x18ad76;_0x1a536d++){let _0x4b20c1=_0x5898d7[_0x54b371(0x162)](this['_workbook']['getUnitId'](),this[_0x54b371(0x19f)][_0x54b371(0x164)](),_0x8faa25,_0x1a536d);if(_0x4b20c1){let _0x1cd4f3=_0x5898d7[_0x54b371(0x163)](this[_0x54b371(0x16e)][_0x54b371(0x168)](),this[_0x54b371(0x19f)][_0x54b371(0x164)](),_0x4b20c1);if(_0x1cd4f3){_0x2c09bb=_0x53f483[_0x54b371(0x193)](_0x1cd4f3);break;}}}}_0x2c09bb&&this[_0x54b371(0x15e)][_0x54b371(0x172)](_0x266092['id'],{'ranges':_0x1e40fe,'combine':!0x0,'config':_0x2c09bb,'isChangeDataSource':!0x1});}[_0x32d83b(0x17e)](_0x32d6a3){const _0x4f64cf=_0x32d83b;let _0x2bab5c=this[_0x4f64cf(0x166)][_0x4f64cf(0x15d)](_0x311b53),_0x259a19;for(let _0x29048f=0x0;_0x29048f<_0x32d6a3[_0x4f64cf(0x19c)];_0x29048f++){let {startRow:_0x5824be,endRow:_0x50f68c,startColumn:_0x59ac4e,endColumn:_0x48f302}=_0x32d6a3[_0x29048f];for(let _0x394bd3=_0x5824be;_0x394bd3<=_0x50f68c;_0x394bd3++)for(let _0x1d5925=_0x59ac4e;_0x1d5925<=_0x48f302;_0x1d5925++){let _0xa95143=_0x2bab5c['getSparkline'](this['_workbook']['getUnitId'](),this[_0x4f64cf(0x19f)][_0x4f64cf(0x164)](),_0x394bd3,_0x1d5925);if(_0xa95143){let _0x134a1a=_0x2bab5c[_0x4f64cf(0x163)](this[_0x4f64cf(0x16e)][_0x4f64cf(0x168)](),this[_0x4f64cf(0x19f)][_0x4f64cf(0x164)](),_0xa95143);if(_0x134a1a){_0x259a19=_0x53f483[_0x4f64cf(0x193)](_0x134a1a);break;}}}}_0x259a19||this[_0x4f64cf(0x15e)][_0x4f64cf(0x172)](_0x266092['id'],{'ranges':_0x32d6a3,'unCombine':!0x0,'config':_0x259a19,'isChangeDataSource':!0x1});}[_0x32d83b(0x18e)](_0x2ce856,_0xcdb76b){const _0x33dbd9=_0x32d83b;let _0x2da77d=this['_injector'][_0x33dbd9(0x15d)](_0x311b53),_0x3866c5=this[_0x33dbd9(0x16e)][_0x33dbd9(0x168)](),_0xbed91c=this[_0x33dbd9(0x19f)][_0x33dbd9(0x164)](),_0x386a76=_0x2da77d[_0x33dbd9(0x162)](_0x3866c5,_0xbed91c,_0x2ce856,_0xcdb76b);if(_0x386a76)return this[_0x33dbd9(0x166)][_0x33dbd9(0x173)](g,_0x3866c5,_0xbed91c,_0x386a76,_0x2ce856,_0xcdb76b);}[_0x32d83b(0x17f)](_0x247f3c,_0x42c34d){const _0x590bf4=_0x32d83b;let _0x5a1c19=this[_0x590bf4(0x166)][_0x590bf4(0x15d)](_0x311b53),_0x564282=this[_0x590bf4(0x16e)]['getUnitId'](),_0x3fe0aa=this['_worksheet'][_0x590bf4(0x164)](),_0x24f082=_0x5a1c19[_0x590bf4(0x162)](_0x564282,_0x3fe0aa,_0x247f3c,_0x42c34d);if(_0x24f082)return this[_0x590bf4(0x166)][_0x590bf4(0x173)](_,_0x564282,_0x3fe0aa,_0x24f082,_0x247f3c,_0x42c34d);}};_0x535563[_0x32d83b(0x16f)](v);var y=class extends _0xb76123{get['SparklineTypeEnum'](){return _0x1dc404;}};_0xb76123['extend'](y);var b=class extends _0x41153d{get['SheetSparklineChanged'](){const _0x2c59be=_0x32d83b;return _0x2c59be(0x165);}};function _0x104a(){const _0x17d5e0=['setConfig','_col','320764mtowuh','from','sparklineAnchorMap','1143492UyKrBR','function','_subUnitId','18QfTsFO','fireEvent','unComposeSparkline','getSparklineGroupByCell','ranges','params','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','map','forEach','754956UXQyqX','getActiveWorkbook','15sIxPJJ','getSparklineCache','getAllSubSparkline','_unitId','_row','Event','range','getSparklineByCell','167667LzjTds','changeDataSource','_initialize','getCurrentSelections','deepClone','1448631NnVglG','disposeWithMe','_groupId','7527928ApFzFW','defineProperty','object','getId','removeSparkline','length','sparklines','syncExecuteCommand','_worksheet','get','_commandService','filter','registerEventHandler','cancel','getSparkline','getSparklineById','getSheetId','SheetSparklineChanged','_injector','startRow','getUnitId','groupId','getActiveSheet','item','composeSparkline','isChangeDataSource','_workbook','extend','startColumn','3117834LdiowD','executeCommand','createInstance'];_0x104a=function(){return _0x17d5e0;};return _0x104a();}_0x41153d[_0x32d83b(0x16f)](b);var x=class extends _0x1a120a{[_0x32d83b(0x191)](_0xd32557){const _0x3391ba=_0x32d83b;let _0x177b9e=_0xd32557['get'](_0x200b1a);this[_0x3391ba(0x195)](this[_0x3391ba(0x160)](this[_0x3391ba(0x18c)][_0x3391ba(0x165)],()=>_0x177b9e['onCommandExecuted'](_0x3d0a9b=>{const _0x9ac3cb=_0x3391ba;if(_0x3d0a9b['id']===_0x266092['id']){let _0x35eeeb=_0x3d0a9b[_0x9ac3cb(0x181)];if(!_0x35eeeb[_0x9ac3cb(0x16d)]){var _0x2a1c24,_0x5db2da;let _0xd9224c=this[_0x9ac3cb(0x186)](),_0x39c800=_0xd9224c==null?void 0x0:_0xd9224c[_0x9ac3cb(0x16a)]();if(!_0xd9224c||!_0x39c800)return;let _0x561b47=_0xd9224c[_0x9ac3cb(0x19a)](),_0x474bce=_0x39c800[_0x9ac3cb(0x164)](),_0x4ce667=this[_0x9ac3cb(0x166)]['get'](_0x46e772),_0x1de754=this[_0x9ac3cb(0x166)][_0x9ac3cb(0x15d)](_0x311b53),_0xfe155a=(_0x2a1c24=_0x35eeeb==null?void 0x0:_0x35eeeb[_0x9ac3cb(0x180)])==null?_0x4ce667[_0x9ac3cb(0x192)]()[_0x9ac3cb(0x183)](_0x48aceb=>_0x48aceb[_0x9ac3cb(0x18d)]):_0x2a1c24,_0x39bd2b=(_0x5db2da=_0x1de754[_0x9ac3cb(0x188)]()[_0x9ac3cb(0x178)]['get'](_0x561b47))==null?void 0x0:_0x5db2da[_0x9ac3cb(0x15d)](_0x474bce),_0x455c9f=new Set();_0xfe155a[_0x9ac3cb(0x184)](_0x540ad0=>{const _0x34d9ae=_0x9ac3cb;let {startRow:_0x12d7b6,endRow:_0x39739b,startColumn:_0x5cf790,endColumn:_0x28d387}=_0x540ad0;for(let _0x219031=_0x12d7b6;_0x219031<=_0x39739b;_0x219031++)for(let _0x26ebdd=_0x5cf790;_0x26ebdd<=_0x28d387;_0x26ebdd++){var _0x285a8d;let _0x5510fb=_0x39bd2b==null||(_0x285a8d=_0x39bd2b['matrix']['getValue'](_0x219031,_0x26ebdd))==null?void 0x0:_0x285a8d[_0x34d9ae(0x169)];_0x5510fb&&_0x455c9f['add'](_0x5510fb);}});let _0x4b8c0d={'workbook':_0xd9224c,'worksheet':_0x39c800,'sparklines':Array[_0x9ac3cb(0x177)](_0x455c9f)['map'](_0x28d1f3=>_0x1de754[_0x9ac3cb(0x163)](_0x561b47,_0x474bce,_0x28d1f3))[_0x9ac3cb(0x15f)](_0xaee3d0=>!!_0xaee3d0)};if(this[_0x9ac3cb(0x17d)](this[_0x9ac3cb(0x18c)][_0x9ac3cb(0x165)],_0x4b8c0d),_0x4b8c0d[_0x9ac3cb(0x161)])throw Error(_0x9ac3cb(0x182));}}})));}};_0x1a120a[_0x32d83b(0x16f)](x);export{g as FSparkline,_ as FSparklineGroup};
1
+ const _0x355cec=_0x30c5;function _0x30c5(_0x41a3e4,_0x47f93c){_0x41a3e4=_0x41a3e4-0x102;const _0x47fb0a=_0x47fb();let _0x30c596=_0x47fb0a[_0x41a3e4];return _0x30c596;}(function(_0x344863,_0x2593b7){const _0xb4a993=_0x30c5,_0x21acea=_0x344863();while(!![]){try{const _0x61dce9=parseInt(_0xb4a993(0x128))/0x1*(parseInt(_0xb4a993(0x133))/0x2)+-parseInt(_0xb4a993(0x11c))/0x3+-parseInt(_0xb4a993(0x126))/0x4*(parseInt(_0xb4a993(0x10b))/0x5)+-parseInt(_0xb4a993(0x132))/0x6+-parseInt(_0xb4a993(0x10d))/0x7*(-parseInt(_0xb4a993(0x13a))/0x8)+-parseInt(_0xb4a993(0x110))/0x9*(-parseInt(_0xb4a993(0x129))/0xa)+parseInt(_0xb4a993(0x131))/0xb;if(_0x61dce9===_0x2593b7)break;else _0x21acea['push'](_0x21acea['shift']());}catch(_0x1fe3f0){_0x21acea['push'](_0x21acea['shift']());}}}(_0x47fb,0xe25f6));import{AddSheetSparklineCommand as _0xcd55cc,RemoveSheetSparklineCommand as _0x53519f,SetSheetSparklineCommand as _0x59edef,SparklineDataSourceModel as _0x12d176,SparklineTypeEnum as _0x1007c0}from'@univerjs-pro/sheets-sparkline';import{ICommandService as _0x35317b,Inject as _0x1ac0ea,Injector as _0x5649a7,Tools as _0x3a5a7d}from'@univerjs/core';function _0x47fb(){const _0x52ae29=['_unitId','_row','Event','20rORkMM','_workbook','9pFZEsG','37020VXlXpi','_commandService','ranges','getSparklineByCell','disposeWithMe','_injector','map','SheetSparklineChanged','20483716zjfkmR','10667724JHxeaf','260114dImWwg','add','item','executeCommand','_groupId','startColumn','range','938248uGKTvz','decorate','defineProperty','getOwnPropertyDescriptor','syncExecuteCommand','extend','getSubUnitSparkline','getAllSubSparkline','getSparklineCache','getValue','getId','length','matrix','getSheetId','fireEvent','sparklines','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','onCommandExecuted','getSparklineById','filter','1706375HQPVlM','startRow','7LARnEI','get','_col','3222jSUlbL','createInstance','getSparkline','removeSparkline','unComposeSparkline','getActiveSheet','getUnitId','deepClone','getSparklineGroupByCell','_worksheet','composeSparkline','_initialize','191145pPNNft','cancel','removeSparklineGroup','_subUnitId','setConfig','changeDataSource','getCurrentSelections'];_0x47fb=function(){return _0x52ae29;};return _0x47fb();}import{FWorksheet as _0x400d38}from'@univerjs/sheets/facade';import{FEnum as _0x32cd87,FEventName as _0x5ee5d2,FUniver as _0x494a32}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x1709fb}from'@univerjs/sheets';function m(_0x544615,_0x381ce6){return function(_0x5ddc74,_0x59e834){_0x381ce6(_0x5ddc74,_0x59e834,_0x544615);};}function h(_0x1ff372,_0x2ad2fe,_0x216e8e,_0x19b290){const _0x4f1885=_0x30c5;var _0x32b7b2=arguments[_0x4f1885(0x102)],_0x4b297a=_0x32b7b2<0x3?_0x2ad2fe:_0x19b290===null?_0x19b290=Object[_0x4f1885(0x13d)](_0x2ad2fe,_0x216e8e):_0x19b290,_0x64e434;if(typeof Reflect=='object'&&typeof Reflect[_0x4f1885(0x13b)]=='function')_0x4b297a=Reflect[_0x4f1885(0x13b)](_0x1ff372,_0x2ad2fe,_0x216e8e,_0x19b290);else{for(var _0x57d482=_0x1ff372[_0x4f1885(0x102)]-0x1;_0x57d482>=0x0;_0x57d482--)(_0x64e434=_0x1ff372[_0x57d482])&&(_0x4b297a=(_0x32b7b2<0x3?_0x64e434(_0x4b297a):_0x32b7b2>0x3?_0x64e434(_0x2ad2fe,_0x216e8e,_0x4b297a):_0x64e434(_0x2ad2fe,_0x216e8e))||_0x4b297a);}return _0x32b7b2>0x3&&_0x4b297a&&Object[_0x4f1885(0x13c)](_0x2ad2fe,_0x216e8e,_0x4b297a),_0x4b297a;}let g=class{constructor(_0x351454,_0x333f2f,_0x2b3748,_0x37822f,_0x3b967d,_0x3749b4){const _0x48478a=_0x30c5;this['_unitId']=_0x351454,this[_0x48478a(0x11f)]=_0x333f2f,this[_0x48478a(0x137)]=_0x2b3748,this['_row']=_0x37822f,this[_0x48478a(0x10f)]=_0x3b967d,this[_0x48478a(0x12e)]=_0x3749b4;}[_0x355cec(0x121)](_0x34b9a3,_0x3f6238){const _0x2c893b=_0x355cec;let _0x4bd342=this[_0x2c893b(0x12e)]['get'](_0x12d176),_0x3acc64=this[_0x2c893b(0x12e)][_0x2c893b(0x10e)](_0x35317b),_0x3c5e47=_0x4bd342[_0x2c893b(0x109)](this[_0x2c893b(0x123)],this[_0x2c893b(0x11f)],this[_0x2c893b(0x137)]);if(!_0x3c5e47)return;let _0x5475b5={'config':_0x3c5e47,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x2c893b(0x137)],'resetType':_0x2c893b(0x135),'sourceRanges':[_0x34b9a3],'targetRanges':[_0x3f6238],'primary':{'startRow':this[_0x2c893b(0x124)],'startColumn':this[_0x2c893b(0x10f)],'endRow':this[_0x2c893b(0x124)],'endColumn':this[_0x2c893b(0x10f)],'actualRow':this['_row'],'actualColumn':this[_0x2c893b(0x10f)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x3acc64[_0x2c893b(0x13e)](_0x59edef['id'],_0x5475b5),this[_0x2c893b(0x124)]=_0x3f6238[_0x2c893b(0x10c)],this[_0x2c893b(0x10f)]=_0x3f6238[_0x2c893b(0x138)],this;}[_0x355cec(0x113)](){const _0x5b19ad=_0x355cec;let _0x48d497=this[_0x5b19ad(0x12e)]['get'](_0x35317b),_0x1fa768={'isSingle':!0x0,'ranges':[{'startRow':this['_row'],'startColumn':this[_0x5b19ad(0x10f)],'endRow':this['_row'],'endColumn':this[_0x5b19ad(0x10f)]}]};_0x48d497[_0x5b19ad(0x13e)](_0x53519f['id'],_0x1fa768);}};g=h([m(0x5,_0x1ac0ea(_0x5649a7))],g);let _=class{constructor(_0x43640f,_0x9b4ed7,_0x312c86,_0x3cd477,_0x147262,_0x59a258){const _0x39b37f=_0x355cec;this[_0x39b37f(0x123)]=_0x43640f,this['_subUnitId']=_0x9b4ed7,this[_0x39b37f(0x137)]=_0x312c86,this['_row']=_0x3cd477,this[_0x39b37f(0x10f)]=_0x147262,this[_0x39b37f(0x12e)]=_0x59a258;}['changeDataSource'](_0x53555c,_0x5d929d){const _0x1c827c=_0x355cec;let _0xf68ebb=this[_0x1c827c(0x12e)][_0x1c827c(0x10e)](_0x12d176),_0x4abd3e=this[_0x1c827c(0x12e)]['get'](_0x35317b),_0xcf5006=_0xf68ebb['getSparklineById'](this[_0x1c827c(0x123)],this[_0x1c827c(0x11f)],this['_groupId']);if(!_0xcf5006)return;let _0x310584={'config':_0xcf5006,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this['_groupId'],'resetType':'group','sourceRanges':_0x53555c,'targetRanges':_0x5d929d,'primary':{'startRow':this[_0x1c827c(0x124)],'startColumn':this['_col'],'endRow':this[_0x1c827c(0x124)],'endColumn':this[_0x1c827c(0x10f)],'actualRow':this['_row'],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x4abd3e[_0x1c827c(0x13e)](_0x59edef['id'],_0x310584),this['_row']=_0x5d929d[0x0][_0x1c827c(0x10c)],this[_0x1c827c(0x10f)]=_0x5d929d[0x0]['startColumn'],this;}[_0x355cec(0x11e)](){const _0x1b9711=_0x355cec;let _0x519e5b=this[_0x1b9711(0x12e)][_0x1b9711(0x10e)](_0x35317b),_0x533903={'isSingle':!0x1,'ranges':[{'startRow':this[_0x1b9711(0x124)],'startColumn':this['_col'],'endRow':this[_0x1b9711(0x124)],'endColumn':this[_0x1b9711(0x10f)]}]};_0x519e5b[_0x1b9711(0x13e)](_0x53519f['id'],_0x533903);}[_0x355cec(0x120)](_0x38077e){const _0x26804f=_0x355cec;let _0x20fd6c=this['_injector'][_0x26804f(0x10e)](_0x12d176)[_0x26804f(0x109)](this[_0x26804f(0x123)],this[_0x26804f(0x11f)],this[_0x26804f(0x137)]);if(_0x20fd6c){let _0x46ebf1={'config':{'config':_0x38077e,'sparklines':_0x20fd6c[_0x26804f(0x106)]},'isChangeDataSource':!0x1};this[_0x26804f(0x12e)][_0x26804f(0x10e)](_0x35317b)[_0x26804f(0x13e)](_0x59edef['id'],_0x46ebf1);}return this;}};_=h([m(0x5,_0x1ac0ea(_0x5649a7))],_);var v=class extends _0x400d38{['addSparkline'](_0x5c3930,_0x487fee,_0x3cd659){const _0x2fc605=_0x355cec;if(this[_0x2fc605(0x12a)][_0x2fc605(0x13e)](_0xcd55cc['id'],{'sourceRanges':_0x5c3930,'targetRanges':_0x487fee,'targetInfo':{'unitId':this['_workbook'][_0x2fc605(0x116)](),'subUnitId':this[_0x2fc605(0x119)][_0x2fc605(0x104)]()},'config':{'type':_0x3cd659}})){let {startRow:_0x4bc86a,startColumn:_0xe31f95}=_0x487fee[0x0];return this[_0x2fc605(0x12c)](_0x4bc86a,_0xe31f95);}}[_0x355cec(0x141)](){const _0x2ff332=_0x355cec;return this[_0x2ff332(0x12e)][_0x2ff332(0x10e)](_0x12d176)[_0x2ff332(0x140)](this['_workbook'][_0x2ff332(0x116)](),this['_worksheet'][_0x2ff332(0x104)]());}[_0x355cec(0x11a)](_0x525497){const _0x372398=_0x355cec;let _0x5d52d7=this[_0x372398(0x12e)][_0x372398(0x10e)](_0x12d176),_0x140029;for(let _0x45252f=0x0;_0x45252f<_0x525497[_0x372398(0x102)];_0x45252f++){let {startRow:_0x3c9b1d,endRow:_0x41650c,startColumn:_0x2eea35,endColumn:_0x21393e}=_0x525497[_0x45252f];for(let _0x1894ad=_0x3c9b1d;_0x1894ad<=_0x41650c;_0x1894ad++)for(let _0x8fb656=_0x2eea35;_0x8fb656<=_0x21393e;_0x8fb656++){let _0x3aded3=_0x5d52d7[_0x372398(0x112)](this[_0x372398(0x127)][_0x372398(0x116)](),this['_worksheet'][_0x372398(0x104)](),_0x1894ad,_0x8fb656);if(_0x3aded3){let _0x4ea9a0=_0x5d52d7['getSparklineById'](this[_0x372398(0x127)][_0x372398(0x116)](),this[_0x372398(0x119)][_0x372398(0x104)](),_0x3aded3);if(_0x4ea9a0){_0x140029=_0x3a5a7d[_0x372398(0x117)](_0x4ea9a0);break;}}}}_0x140029&&this[_0x372398(0x12a)][_0x372398(0x136)](_0x59edef['id'],{'ranges':_0x525497,'combine':!0x0,'config':_0x140029,'isChangeDataSource':!0x1});}[_0x355cec(0x114)](_0x4b7143){const _0x24a72d=_0x355cec;let _0x3699bf=this[_0x24a72d(0x12e)][_0x24a72d(0x10e)](_0x12d176),_0x420d88;for(let _0x215374=0x0;_0x215374<_0x4b7143[_0x24a72d(0x102)];_0x215374++){let {startRow:_0xec912e,endRow:_0x95dd48,startColumn:_0x3914c8,endColumn:_0x43d998}=_0x4b7143[_0x215374];for(let _0x3dbdae=_0xec912e;_0x3dbdae<=_0x95dd48;_0x3dbdae++)for(let _0x139db2=_0x3914c8;_0x139db2<=_0x43d998;_0x139db2++){let _0x244b9c=_0x3699bf['getSparkline'](this[_0x24a72d(0x127)][_0x24a72d(0x116)](),this[_0x24a72d(0x119)][_0x24a72d(0x104)](),_0x3dbdae,_0x139db2);if(_0x244b9c){let _0x5cc1e8=_0x3699bf[_0x24a72d(0x109)](this['_workbook']['getUnitId'](),this[_0x24a72d(0x119)][_0x24a72d(0x104)](),_0x244b9c);if(_0x5cc1e8){_0x420d88=_0x3a5a7d[_0x24a72d(0x117)](_0x5cc1e8);break;}}}}_0x420d88||this[_0x24a72d(0x12a)][_0x24a72d(0x136)](_0x59edef['id'],{'ranges':_0x4b7143,'unCombine':!0x0,'config':_0x420d88,'isChangeDataSource':!0x1});}[_0x355cec(0x12c)](_0x51764d,_0x313e5b){const _0xf9f944=_0x355cec;let _0x5df365=this[_0xf9f944(0x12e)][_0xf9f944(0x10e)](_0x12d176),_0x3274bd=this[_0xf9f944(0x127)][_0xf9f944(0x116)](),_0x27e713=this[_0xf9f944(0x119)]['getSheetId'](),_0x4f25fa=_0x5df365[_0xf9f944(0x112)](_0x3274bd,_0x27e713,_0x51764d,_0x313e5b);if(_0x4f25fa)return this[_0xf9f944(0x12e)]['createInstance'](g,_0x3274bd,_0x27e713,_0x4f25fa,_0x51764d,_0x313e5b);}[_0x355cec(0x118)](_0x2dd20b,_0x3978b3){const _0x2ef955=_0x355cec;let _0x47946b=this[_0x2ef955(0x12e)][_0x2ef955(0x10e)](_0x12d176),_0x285d01=this[_0x2ef955(0x127)][_0x2ef955(0x116)](),_0x335209=this['_worksheet'][_0x2ef955(0x104)](),_0x14be28=_0x47946b[_0x2ef955(0x112)](_0x285d01,_0x335209,_0x2dd20b,_0x3978b3);if(_0x14be28)return this['_injector'][_0x2ef955(0x111)](_,_0x285d01,_0x335209,_0x14be28,_0x2dd20b,_0x3978b3);}};_0x400d38[_0x355cec(0x13f)](v);var y=class extends _0x32cd87{get['SparklineTypeEnum'](){return _0x1007c0;}};_0x32cd87['extend'](y);var b=class extends _0x5ee5d2{get[_0x355cec(0x130)](){const _0x50addc=_0x355cec;return _0x50addc(0x130);}};_0x5ee5d2[_0x355cec(0x13f)](b);var x=class extends _0x494a32{[_0x355cec(0x11b)](_0x59eeba){const _0x3621d0=_0x355cec;let _0x21e4fa=_0x59eeba[_0x3621d0(0x10e)](_0x35317b);this[_0x3621d0(0x12d)](this['registerEventHandler'](this[_0x3621d0(0x125)][_0x3621d0(0x130)],()=>_0x21e4fa[_0x3621d0(0x108)](_0x1da78f=>{const _0x565c48=_0x3621d0;if(_0x1da78f['id']===_0x59edef['id']){let _0x47dda5=_0x1da78f['params'];if(!_0x47dda5['isChangeDataSource']){var _0x5f5b1a,_0x58f2a2;let _0x28013d=this['getActiveWorkbook'](),_0x1c148d=_0x28013d==null?void 0x0:_0x28013d[_0x565c48(0x115)]();if(!_0x28013d||!_0x1c148d)return;let _0x2beb39=_0x28013d[_0x565c48(0x144)](),_0x17f4c6=_0x1c148d['getSheetId'](),_0x4e05f1=this[_0x565c48(0x12e)][_0x565c48(0x10e)](_0x1709fb),_0x5e40ae=this[_0x565c48(0x12e)][_0x565c48(0x10e)](_0x12d176),_0x489a03=(_0x5f5b1a=_0x47dda5==null?void 0x0:_0x47dda5[_0x565c48(0x12b)])==null?_0x4e05f1[_0x565c48(0x122)]()['map'](_0x24282d=>_0x24282d[_0x565c48(0x139)]):_0x5f5b1a,_0x3af1a6=(_0x58f2a2=_0x5e40ae[_0x565c48(0x142)]()['sparklineAnchorMap'][_0x565c48(0x10e)](_0x2beb39))==null?void 0x0:_0x58f2a2[_0x565c48(0x10e)](_0x17f4c6),_0x27e9ac=new Set();_0x489a03['forEach'](_0xa786d3=>{const _0x1cb33a=_0x565c48;let {startRow:_0x11b752,endRow:_0x3fe707,startColumn:_0x2f7904,endColumn:_0x2b2ed0}=_0xa786d3;for(let _0x13f24f=_0x11b752;_0x13f24f<=_0x3fe707;_0x13f24f++)for(let _0x3dc22b=_0x2f7904;_0x3dc22b<=_0x2b2ed0;_0x3dc22b++){var _0x9ba61c;let _0xcb6d88=_0x3af1a6==null||(_0x9ba61c=_0x3af1a6[_0x1cb33a(0x103)][_0x1cb33a(0x143)](_0x13f24f,_0x3dc22b))==null?void 0x0:_0x9ba61c['groupId'];_0xcb6d88&&_0x27e9ac[_0x1cb33a(0x134)](_0xcb6d88);}});let _0x110f07={'workbook':_0x28013d,'worksheet':_0x1c148d,'sparklines':Array['from'](_0x27e9ac)[_0x565c48(0x12f)](_0xfc6eb3=>_0x5e40ae[_0x565c48(0x109)](_0x2beb39,_0x17f4c6,_0xfc6eb3))[_0x565c48(0x10a)](_0x54f2d3=>!!_0x54f2d3)};if(this[_0x565c48(0x105)](this[_0x565c48(0x125)]['SheetSparklineChanged'],_0x110f07),_0x110f07[_0x565c48(0x11d)])throw Error(_0x565c48(0x107));}}})));}};_0x494a32['extend'](x);export{g as FSparkline,_ as FSparklineGroup};