@univerjs-pro/sheets-sparkline 0.10.6-experimental.20250904-9591d16 → 0.10.6-nightly.202509060724

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 _0x72397f=_0x2522;(function(_0x50e7e9,_0x26b58b){const _0xc9b57=_0x2522,_0x4eedc2=_0x50e7e9();while(!![]){try{const _0x2b62d5=-parseInt(_0xc9b57(0x162))/0x1*(parseInt(_0xc9b57(0x12a))/0x2)+parseInt(_0xc9b57(0x14c))/0x3+parseInt(_0xc9b57(0xc3))/0x4+-parseInt(_0xc9b57(0xd7))/0x5*(-parseInt(_0xc9b57(0xce))/0x6)+parseInt(_0xc9b57(0x147))/0x7*(parseInt(_0xc9b57(0x104))/0x8)+-parseInt(_0xc9b57(0xd9))/0x9+-parseInt(_0xc9b57(0x149))/0xa*(-parseInt(_0xc9b57(0xd1))/0xb);if(_0x2b62d5===_0x26b58b)break;else _0x4eedc2['push'](_0x4eedc2['shift']());}catch(_0x127182){_0x4eedc2['push'](_0x4eedc2['shift']());}}}(_0x13f8,0x392c2));var qe=Object[_0x72397f(0xb0)],Qe=(_0x1aff39,_0x4f2d50,_0x754f6e)=>_0x4f2d50 in _0x1aff39?qe(_0x1aff39,_0x4f2d50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x754f6e}):_0x1aff39[_0x4f2d50]=_0x754f6e,se=(_0x4f81e2,_0x469f66,_0x6a19c6)=>Qe(_0x4f81e2,typeof _0x469f66!=_0x72397f(0x141)?_0x469f66+'':_0x469f66,_0x6a19c6);import{ObjectMatrix as _0x192dcd,Inject as _0x54d2a7,IUniverInstanceService as _0x224779,Disposable as _0x329963,isValidRange as _0x40acb2,CellValueType as _0x2023a4,ColorKit as _0x5aa8f2,CommandType as _0x55ea25,Range as _0x540300,IUndoRedoService as _0x4d0b6a,generateRandomId as _0x16eeff,ICommandService as _0x272bff,Tools as _0x538207,sequenceExecute as _0x414131,Rectangle as _0x5d17c9,cellToRange as _0x8811d0,DisposableCollection as _0xaf0177,RANGE_TYPE as _0x540415,UniverInstanceType as _0x594f9d,IResourceManagerService as _0x2c7267,DependentOn as _0x5432f8,Injector as _0x563a9d,Plugin as _0x33da54,touchDependencies as _0x309222}from'@univerjs/core';import{getSheetCommandTarget as _0x582456,SheetsSelectionsService as _0x2bf808,SheetInterceptorService as _0x3be193,ClearSelectionAllCommand as _0x40c800,CopySheetCommand as _0xdc7885,IExclusiveRangeService as _0x371992,SetRangeValuesMutation as _0x138dad,ReorderRangeMutation as _0x3378d1,SetRowHiddenMutation as _0x2234d4,SetColHiddenMutation as _0x481ee0,SetRowVisibleMutation as _0x7eea43,SetColVisibleMutation as _0x4a2bec,AddWorksheetMergeCommand as _0x25227c,RefRangeService as _0x475f93,SetWorksheetActivateCommand as _0x568a28,RemoveRowCommand as _0x2f68ec,RemoveColCommand as _0x89abdb,adjustRangeOnMutation as _0x517451,RemoveRowMutation as _0x11a2f4,RemoveColMutation as _0x14761e,InsertColMutation as _0x4180ff,InsertRowMutation as _0x9b28a3,MoveColsMutation as _0x3409db,MoveRowsMutation as _0x165f9b,MoveRangeMutation as _0x5c1875}from'@univerjs/sheets';import{Subject as _0x524b08}from'rxjs';import{UniverLicensePlugin as _0x3f9b9a}from'@univerjs-pro/license';function Fe(_0x1fd5f7,_0x4501d1){const _0x233ea1=_0x72397f,_0x257b76=new _0x192dcd(),_0x427b2f=[],_0xcd4c80=_0x1fd5f7[_0x233ea1(0x148)]>0x1;let _0x2a2550=0x0,_0x3e0624=0x0;for(const _0x635b6d of _0x1fd5f7)_0x2a2550+=_0x635b6d[_0x233ea1(0xdd)]-_0x635b6d[_0x233ea1(0xbf)]+0x1,_0x3e0624+=_0x635b6d['endColumn']-_0x635b6d[_0x233ea1(0x157)]+0x1;for(const _0x11a3e3 of _0x4501d1)for(let _0x1abe29=_0x11a3e3[_0x233ea1(0xbf)];_0x1abe29<=_0x11a3e3[_0x233ea1(0xdd)];_0x1abe29++)for(let _0x17f8fb=_0x11a3e3['startColumn'];_0x17f8fb<=_0x11a3e3['endColumn'];_0x17f8fb++)_0x427b2f['push']({'row':_0x1abe29,'column':_0x17f8fb});if(_0x427b2f['length']===_0x2a2550)_0xcd4c80?_0x427b2f[_0x233ea1(0x10b)]((_0x5ef69b,_0x18ed7d)=>{const _0xba2793=_0x233ea1,_0x5eae33=_0x1fd5f7[_0x18ed7d],_0x3c6118={'startRow':_0x5eae33['startRow'],'startColumn':_0x5eae33['startColumn'],'endRow':_0x5eae33[_0xba2793(0xbf)],'endColumn':_0x5eae33[_0xba2793(0xcb)]};_0x257b76[_0xba2793(0xef)](_0x5ef69b['row'],_0x5ef69b[_0xba2793(0xed)],_0x3c6118);}):_0x427b2f['forEach']((_0x526734,_0x10bd3a)=>{const _0x808733=_0x233ea1,_0x39ca12=_0x1fd5f7[0x0],_0x4eba46={'startRow':_0x39ca12[_0x808733(0xbf)]+_0x10bd3a,'startColumn':_0x39ca12['startColumn'],'endRow':_0x39ca12['startRow']+_0x10bd3a,'endColumn':_0x39ca12['endColumn']};_0x257b76[_0x808733(0xef)](_0x526734[_0x808733(0xba)],_0x526734[_0x808733(0xed)],_0x4eba46);});else{if(_0x427b2f[_0x233ea1(0x148)]===_0x3e0624)_0xcd4c80?_0x427b2f[_0x233ea1(0x10b)]((_0x51dbad,_0x259cff)=>{const _0x3b9fca=_0x233ea1,_0xea8498=_0x1fd5f7[_0x259cff],_0x4520a6={'startRow':_0xea8498[_0x3b9fca(0xbf)],'startColumn':_0xea8498[_0x3b9fca(0x157)],'endRow':_0xea8498[_0x3b9fca(0xdd)],'endColumn':_0xea8498[_0x3b9fca(0x157)]};_0x257b76[_0x3b9fca(0xef)](_0x51dbad[_0x3b9fca(0xba)],_0x51dbad[_0x3b9fca(0xed)],_0x4520a6);}):_0x427b2f[_0x233ea1(0x10b)]((_0x31e1f6,_0x24d6a6)=>{const _0x13fef1=_0x233ea1,_0x197613=_0x1fd5f7[0x0],_0x1cbc09={'startRow':_0x197613[_0x13fef1(0xbf)],'startColumn':_0x197613[_0x13fef1(0x157)]+_0x24d6a6,'endRow':_0x197613[_0x13fef1(0xdd)],'endColumn':_0x197613[_0x13fef1(0x157)]+_0x24d6a6};_0x257b76[_0x13fef1(0xef)](_0x31e1f6[_0x13fef1(0xba)],_0x31e1f6[_0x13fef1(0xed)],_0x1cbc09);});else{if(_0x427b2f['length']===_0x1fd5f7['length'])_0x1fd5f7[_0x233ea1(0x127)](_0x126ba0=>!(_0x126ba0[_0x233ea1(0xbf)]!==_0x126ba0['endRow']&&_0x126ba0[_0x233ea1(0x157)]!==_0x126ba0[_0x233ea1(0xcb)]))&&_0x427b2f[_0x233ea1(0x10b)]((_0x1c617e,_0x564a0c)=>{const _0x7380bd=_0x233ea1,_0x3b3de9=_0x1fd5f7[_0x564a0c];_0x257b76[_0x7380bd(0xef)](_0x1c617e[_0x7380bd(0xba)],_0x1c617e[_0x7380bd(0xed)],_0x3b3de9);});else throw new Error(_0x233ea1(0x11f));}}return _0x257b76;}const Ke=_0x72397f(0x15b),Le={'standard':[_0x72397f(0xe0),_0x72397f(0x133)],'specialty':['rgb(49,106,246)',_0x72397f(0x121)],'distinctive':[_0x72397f(0xc9),'rgb(252,117,60)'],'soft':[_0x72397f(0x145),_0x72397f(0xe3)],'fresh':[_0x72397f(0x10c),'rgb(248,190,21)']},on=[_0x72397f(0x123),'firstPoint',_0x72397f(0x151),_0x72397f(0xf3),'negativePoint',_0x72397f(0x163)];var Xe=(_0x6d76b6=>(_0x6d76b6[_0x72397f(0x109)]=_0x72397f(0x13f),_0x6d76b6[_0x72397f(0xeb)]=_0x72397f(0x13c),_0x6d76b6[_0x72397f(0x164)]=_0x72397f(0xbd),_0x6d76b6[_0x72397f(0xc0)]=_0x72397f(0x13d),_0x6d76b6[_0x72397f(0xfa)]='fresh',_0x6d76b6[_0x72397f(0x153)]=_0x72397f(0x111),_0x6d76b6))(Xe||{}),Dt=(_0x50b73f=>(_0x50b73f[_0x50b73f[_0x72397f(0xd6)]=0x1]=_0x72397f(0xd6),_0x50b73f[_0x50b73f[_0x72397f(0xe4)]=0x2]=_0x72397f(0xe4),_0x50b73f[_0x50b73f[_0x72397f(0x136)]=0x3]=_0x72397f(0x136),_0x50b73f[_0x50b73f[_0x72397f(0x129)]=0x4]=_0x72397f(0x129),_0x50b73f))(Dt||{}),J=(_0x2600d9=>(_0x2600d9[_0x72397f(0x156)]='spacing',_0x2600d9['ZERO_VALUE']='zero_value',_0x2600d9[_0x72397f(0x130)]=_0x72397f(0x10a),_0x2600d9))(J||{}),De=(_0x20321f=>(_0x20321f[_0x20321f['SELF_EXTREMUM']=0x1]='SELF_EXTREMUM',_0x20321f[_0x20321f[_0x72397f(0x12d)]=0x2]='GROUP_EXTREMUM',_0x20321f[_0x20321f[_0x72397f(0x106)]=0x3]=_0x72397f(0x106),_0x20321f))(De||{}),Et=Object[_0x72397f(0x11d)],Vt=(_0x454001,_0x2d43d9,_0x3c54fc,_0x4650b2)=>{const _0xbcce2=_0x72397f;for(var _0x516086=_0x4650b2>0x1?void 0x0:_0x4650b2?Et(_0x2d43d9,_0x3c54fc):_0x2d43d9,_0x5e025c=_0x454001[_0xbcce2(0x148)]-0x1,_0x303d2e;_0x5e025c>=0x0;_0x5e025c--)(_0x303d2e=_0x454001[_0x5e025c])&&(_0x516086=_0x303d2e(_0x516086)||_0x516086);return _0x516086;},yt=(_0x3191e1,_0x323b06)=>(_0x23d172,_0x3a1028)=>_0x323b06(_0x23d172,_0x3a1028,_0x3191e1);function _0x2522(_0x472ca2,_0x440f72){const _0x13f829=_0x13f8();return _0x2522=function(_0x252251,_0x32c748){_0x252251=_0x252251-0xad;let _0x12f434=_0x13f829[_0x252251];return _0x12f434;},_0x2522(_0x472ca2,_0x440f72);}let x=class extends _0x329963{constructor(_0x5ceb51){const _0x9b8ae0=_0x72397f;super(),se(this,'_sparklineModel',new Map()),se(this,_0x9b8ae0(0xfd),new Map()),se(this,'_updateConfig$',new _0x524b08()),se(this,'updateConfig$',this['_updateConfig$']['asObservable']()),this[_0x9b8ae0(0xc6)]=_0x5ceb51;}[_0x72397f(0xd2)](_0x1d0a18,_0x46212c){const _0x55decf=_0x72397f;let _0x35731f=this[_0x55decf(0x159)][_0x55decf(0xd5)](_0x1d0a18);_0x35731f||(_0x35731f=new Map(),this[_0x55decf(0x159)][_0x55decf(0x101)](_0x1d0a18,_0x35731f));let _0x2a5f59=_0x35731f[_0x55decf(0xd5)](_0x46212c);return _0x2a5f59||(_0x2a5f59=new Map(),_0x35731f['set'](_0x46212c,_0x2a5f59)),_0x2a5f59;}[_0x72397f(0xf0)](_0x311db9,_0x4c6736){const _0x15b96a=_0x72397f;let _0x578fb4=this[_0x15b96a(0xfd)][_0x15b96a(0xd5)](_0x311db9);_0x578fb4||(_0x578fb4=new Map(),this[_0x15b96a(0xfd)]['set'](_0x311db9,_0x578fb4));let _0xedbb54=_0x578fb4['get'](_0x4c6736);return _0xedbb54||(_0xedbb54={'matrix':new _0x192dcd(),'extra':{}},_0x578fb4[_0x15b96a(0x101)](_0x4c6736,_0xedbb54)),_0xedbb54;}[_0x72397f(0x11b)](_0xee0244,_0x2c3015,_0x18c5cb,_0x474eea=_0x72397f(0x101)){const _0x2586a1=_0x72397f;var _0x2cb720,_0x1ad0e8,_0x379ae8,_0x4fef5b,_0x506f56,_0x39fc42,_0x5ca023,_0x3152bd,_0x1d68f9,_0x3a27a9,_0x435adf,_0x112d54,_0x3830c1;const _0x4d212f=(_0x1ad0e8=(_0x2cb720=this[_0x2586a1(0x159)]['get'](_0xee0244))==null?void 0x0:_0x2cb720[_0x2586a1(0xd5)](_0x2c3015))==null?void 0x0:_0x1ad0e8['get'](_0x18c5cb);if(!_0x4d212f)return;const _0x33a2fd=_0x582456(this['_univerInstanceService'],{'unitId':_0xee0244,'subUnitId':_0x2c3015});if(!_0x33a2fd)return;const _0x5c90ee=this[_0x2586a1(0xf0)](_0xee0244,_0x2c3015),{extra:_0x2594de,matrix:_0x156b3b}=_0x5c90ee,{worksheet:_0x419b90}=_0x33a2fd;let _0x7f1687=Number[_0x2586a1(0x113)],_0x2e4963=Number[_0x2586a1(0xcf)];const _0x49d6f4=(_0x379ae8=_0x4d212f[_0x2586a1(0x110)][_0x2586a1(0xd3)])!=null?_0x379ae8:!0x1;_0x4d212f[_0x2586a1(0xbb)][_0x2586a1(0x138)]((_0x487bef,_0x318750,_0x398d52)=>{const _0x10e601=_0x2586a1;var _0x426d8c,_0xd78c70,_0x2e58f1;const _0x166fd7=_0x398d52;let _0x5aa9f2=Number['MIN_SAFE_INTEGER'],_0x31a37e=Number[_0x10e601(0xcf)],_0xd2f9da=0x0,_0x2776ca=0x0;const _0x5aea5e=[];if(!_0x40acb2(_0x166fd7))_0x156b3b[_0x10e601(0xef)](_0x487bef,_0x318750,{'groupId':_0x18c5cb,'data':[],'max':_0x5aa9f2,'min':_0x31a37e,'highIndex':_0xd2f9da,'lowIndex':_0x2776ca,'negativeIndexes':_0x5aea5e});else{const _0x1c98ca=[];for(let _0xe8b07c=_0x166fd7[_0x10e601(0xbf)];_0xe8b07c<=_0x166fd7['endRow'];_0xe8b07c++){for(let _0x31c3bd=_0x166fd7[_0x10e601(0x157)];_0x31c3bd<=_0x166fd7[_0x10e601(0xcb)];_0x31c3bd++){const _0xa9728d=_0x419b90['getRowVisible'](_0xe8b07c),_0x1063cf=_0x419b90['getColVisible'](_0x31c3bd);if(!_0x49d6f4&&(!_0xa9728d||!_0x1063cf))continue;let _0x3ef81d=0x0;const _0x5f97a6=((_0x426d8c=_0x419b90['getCellRaw'](_0xe8b07c,_0x31c3bd))==null?void 0x0:_0x426d8c['v'])!==void 0x0?_0x419b90[_0x10e601(0x165)](_0xe8b07c,_0x31c3bd):_0x419b90[_0x10e601(0xad)](_0xe8b07c,_0x31c3bd);if(!_0x5f97a6||_0x5f97a6['v']===void 0x0||_0x5f97a6['v']===null){const _0x405785=(_0xd78c70=_0x4d212f[_0x10e601(0x110)]['emptyShowAs'])!=null?_0xd78c70:J[_0x10e601(0x156)];_0x405785===J[_0x10e601(0x140)]?_0x3ef81d=0x0:_0x405785===J[_0x10e601(0x156)]?_0x3ef81d=_0x10e601(0xcc):_0x405785===J[_0x10e601(0x130)]&&(_0x3ef81d=_0x10e601(0x15c));}else{if(_0x5f97a6['t']===_0x2023a4[_0x10e601(0x143)]||_0x5f97a6['t']===_0x2023a4[_0x10e601(0x14f)]){const _0x36816c=(_0x2e58f1=_0x4d212f['config']['nonNumShowAs'])!=null?_0x2e58f1:J[_0x10e601(0x156)];_0x36816c===J['ZERO_VALUE']?_0x3ef81d=0x0:_0x36816c===J[_0x10e601(0x156)]?_0x3ef81d=_0x10e601(0xcc):_0x36816c===J['CONNECT_WITH_LINE']&&(_0x3ef81d='u-connect');}else _0x5f97a6['t']===_0x2023a4[_0x10e601(0x154)]?_0x3ef81d=_0x5f97a6['v']?0x1:0x0:_0x5f97a6['t']===_0x2023a4[_0x10e601(0xf6)]?_0x3ef81d=Number(_0x5f97a6['v']):_0x3ef81d=_0x5f97a6['v'];}if(_0x1c98ca[_0x10e601(0x131)](_0x3ef81d),typeof _0x3ef81d==_0x10e601(0x158)){_0x5aa9f2=Math['max'](_0x5aa9f2,_0x3ef81d),_0x7f1687=Math[_0x10e601(0x161)](_0x7f1687,_0x3ef81d),_0x2e4963=Math[_0x10e601(0x114)](_0x2e4963,_0x3ef81d),_0x31a37e=Math[_0x10e601(0x114)](_0x31a37e,_0x3ef81d);const _0x332dc5=typeof _0x1c98ca[_0xd2f9da]=='number'?Number(_0x1c98ca[_0xd2f9da]):Number[_0x10e601(0x113)];_0x3ef81d>_0x332dc5&&(_0xd2f9da=_0x1c98ca[_0x10e601(0x148)]-0x1);const _0x435224=typeof _0x1c98ca[_0x2776ca]==_0x10e601(0x158)?Number(_0x1c98ca[_0x2776ca]):Number[_0x10e601(0xcf)];_0x3ef81d<_0x435224&&(_0x2776ca=_0x1c98ca[_0x10e601(0x148)]-0x1),_0x3ef81d<0x0&&_0x5aea5e[_0x10e601(0x131)](_0x1c98ca['length']-0x1);}}_0x156b3b[_0x10e601(0xef)](_0x487bef,_0x318750,{'groupId':_0x18c5cb,'data':_0x1c98ca,'max':_0x5aa9f2,'min':_0x31a37e,'highIndex':_0xd2f9da,'lowIndex':_0x2776ca,'negativeIndexes':_0x5aea5e});}}});let _0x319e8f=_0x7f1687;((_0x4fef5b=_0x4d212f['config'][_0x2586a1(0x14a)])==null?void 0x0:_0x4fef5b[_0x2586a1(0xe8)])===De[_0x2586a1(0x106)]&&(_0x319e8f=(_0x39fc42=(_0x506f56=_0x4d212f[_0x2586a1(0x110)][_0x2586a1(0x14a)])==null?void 0x0:_0x506f56[_0x2586a1(0x10e)])!=null?_0x39fc42:_0x7f1687);let _0x661405=_0x2e4963;((_0x5ca023=_0x4d212f[_0x2586a1(0x110)][_0x2586a1(0xb1)])==null?void 0x0:_0x5ca023['type'])===De[_0x2586a1(0x106)]&&(_0x661405=(_0x1d68f9=(_0x3152bd=_0x4d212f[_0x2586a1(0x110)]['extremumMin'])==null?void 0x0:_0x3152bd[_0x2586a1(0x10e)])!=null?_0x1d68f9:_0x2e4963);const _0x335058=(_0x3a27a9=_0x4d212f['config'][_0x2586a1(0xb9)])!=null?_0x3a27a9:Xe[_0x2586a1(0x109)],_0xb4501=(_0x3830c1=(_0x112d54=_0x4d212f[_0x2586a1(0x110)]['seriesColor'])!=null?_0x112d54:(_0x435adf=Le[_0x335058])==null?void 0x0:_0x435adf[0x0])!=null?_0x3830c1:Le[_0x2586a1(0x13f)][0x0],_0x146cf7=new _0x5aa8f2(_0xb4501),_0x353243=_0x146cf7[_0x2586a1(0x13b)](0.2)[_0x2586a1(0x103)](),_0x1507d6=_0x146cf7[_0x2586a1(0x13b)](0.05)[_0x2586a1(0x103)]();_0x2594de[_0x18c5cb]={'groupMax':_0x7f1687,'groupMin':_0x2e4963,'showMax':_0x319e8f,'showMin':_0x661405,'startGradient':_0x353243,'endGradient':_0x1507d6},this[_0x2586a1(0x105)]['next']({'unitId':_0xee0244,'subUnitId':_0x2c3015,'groupId':_0x18c5cb,'config':_0x4d212f,'type':_0x474eea});}[_0x72397f(0xb7)](_0x42d932,_0xf44a72,_0x3fc167,_0x4cbb2d){const _0x1460da=_0x72397f;this[_0x1460da(0xd2)](_0x42d932,_0xf44a72)[_0x1460da(0x101)](_0x3fc167,_0x4cbb2d),this[_0x1460da(0x11b)](_0x42d932,_0xf44a72,_0x3fc167,_0x1460da(0x152));}[_0x72397f(0xb8)](_0x345916,_0xdacd3c,_0x47f0a9,_0x1c6c82){const _0x41198e=_0x72397f;var _0x2ae4b4;const _0x390d6a=(_0x2ae4b4=this['_sparklineModel'][_0x41198e(0xd5)](_0x345916))==null?void 0x0:_0x2ae4b4[_0x41198e(0xd5)](_0xdacd3c);_0x47f0a9[_0x41198e(0x10b)](_0x57b0c5=>{const _0x1a5a05=_0x41198e;_0x390d6a!=null&&_0x390d6a[_0x1a5a05(0x118)](_0x57b0c5)&&(_0x390d6a[_0x1a5a05(0x101)](_0x57b0c5,_0x1c6c82),this[_0x1a5a05(0x11b)](_0x345916,_0xdacd3c,_0x57b0c5));});}[_0x72397f(0xdf)](_0xd15050,_0x12bcd5,_0x2ad673){const _0x4791d2=_0x72397f;var _0x1f4cab,_0x177348;const _0x5d1d7f=this[_0x4791d2(0x159)]['get'](_0xd15050);if(_0x5d1d7f){const _0x47d8c3=_0x5d1d7f[_0x4791d2(0xd5)](_0x12bcd5);if(_0x47d8c3){_0x47d8c3[_0x4791d2(0x14e)](_0x2ad673);const _0x2cf0d3=(_0x1f4cab=this[_0x4791d2(0xfd)][_0x4791d2(0xd5)](_0xd15050))==null?void 0x0:_0x1f4cab[_0x4791d2(0xd5)](_0x12bcd5);(_0x177348=_0x2cf0d3==null?void 0x0:_0x2cf0d3[_0x4791d2(0x15d)])==null||_0x177348[_0x4791d2(0x138)]((_0x31303c,_0x56efd,_0x13aee2)=>{const _0xde3e86=_0x4791d2;(_0x13aee2==null?void 0x0:_0x13aee2['groupId'])===_0x2ad673&&(_0x2cf0d3==null||_0x2cf0d3['matrix'][_0xde3e86(0xdb)](_0x31303c,_0x56efd));}),this[_0x4791d2(0x105)][_0x4791d2(0x117)]({'unitId':_0xd15050,'subUnitId':_0x12bcd5,'groupId':_0x2ad673,'type':_0x4791d2(0xc2)});}}}[_0x72397f(0x135)](_0x1e283b,_0x587e87,_0x3f2165,_0x5dd181){const _0x1f6ed1=_0x72397f;var _0x850faa,_0x330f2f,_0x44437c,_0x374eb4;const _0x2536ed=(_0x850faa=this[_0x1f6ed1(0xfd)]['get'](_0x1e283b))==null?void 0x0:_0x850faa['get'](_0x587e87),_0x5929e4=_0x2536ed==null?void 0x0:_0x2536ed[_0x1f6ed1(0x15d)][_0x1f6ed1(0xf2)](_0x3f2165,_0x5dd181);if(_0x5929e4){const {groupId:_0x2856e6}=_0x5929e4,_0x3d696c=(_0x330f2f=this[_0x1f6ed1(0x159)]['get'](_0x1e283b))==null?void 0x0:_0x330f2f[_0x1f6ed1(0xd5)](_0x587e87);(_0x44437c=_0x3d696c==null?void 0x0:_0x3d696c[_0x1f6ed1(0xd5)](_0x2856e6))==null||_0x44437c[_0x1f6ed1(0xbb)]['realDeleteValue'](_0x3f2165,_0x5dd181),(_0x374eb4=_0x3d696c==null?void 0x0:_0x3d696c['get'](_0x2856e6))!=null&&_0x374eb4[_0x1f6ed1(0xbb)][_0x1f6ed1(0x15e)]()||_0x3d696c==null||_0x3d696c[_0x1f6ed1(0x14e)](_0x2856e6),_0x2536ed==null||_0x2536ed[_0x1f6ed1(0x15d)]['realDeleteValue'](_0x3f2165,_0x5dd181),this[_0x1f6ed1(0x105)]['next']({'unitId':_0x1e283b,'subUnitId':_0x587e87,'groupId':_0x2856e6,'type':'remove'});}}[_0x72397f(0xf5)](_0x1b1b64,_0xa52057,_0x27b19){const _0x39c94c=_0x72397f;var _0x3faf8b,_0x5cd36c,_0x424e94,_0xd6b282;const _0x5ce957=(_0x424e94=(_0x5cd36c=(_0x3faf8b=this[_0x39c94c(0x159)][_0x39c94c(0xd5)](_0x1b1b64))==null?void 0x0:_0x3faf8b[_0x39c94c(0xd5)](_0xa52057))==null?void 0x0:_0x5cd36c[_0x39c94c(0xd5)](_0x27b19))==null?void 0x0:_0x424e94[_0x39c94c(0xbb)],_0x14378d=(_0xd6b282=this['_sparklineAnchorMap']['get'](_0x1b1b64))==null?void 0x0:_0xd6b282[_0x39c94c(0xd5)](_0xa52057);if(_0x5ce957&&_0x14378d){const {matrix:_0x3e04e9,extra:_0x37add6}=_0x14378d;_0x5ce957[_0x39c94c(0x138)]((_0x43816f,_0x58be28,_0x2c15a2)=>{const _0x50b58e=_0x39c94c;_0x3e04e9[_0x50b58e(0xdb)](_0x43816f,_0x58be28);}),delete _0x37add6[_0x27b19];}}[_0x72397f(0xd4)](_0x57a122,_0x45076b){const _0xee0c90=_0x72397f;var _0x1def22;return(_0x1def22=this[_0xee0c90(0x159)][_0xee0c90(0xd5)](_0x57a122))==null?void 0x0:_0x1def22[_0xee0c90(0xd5)](_0x45076b);}[_0x72397f(0x137)](_0x325553,_0x28b1a2,_0x293b92){const _0x4b826e=_0x72397f;var _0x240082,_0x4b4dad;return(_0x4b4dad=(_0x240082=this['_sparklineModel']['get'](_0x325553))==null?void 0x0:_0x240082[_0x4b826e(0xd5)](_0x28b1a2))==null?void 0x0:_0x4b4dad[_0x4b826e(0xd5)](_0x293b92);}[_0x72397f(0xe5)](_0x4a76c6,_0x3c9531,_0xa20ae9,_0x493553){const _0x586ec3=_0x72397f;var _0x4194c8,_0x2683e0,_0x36ded1;return(_0x36ded1=(_0x2683e0=(_0x4194c8=this[_0x586ec3(0xfd)][_0x586ec3(0xd5)](_0x4a76c6))==null?void 0x0:_0x4194c8[_0x586ec3(0xd5)](_0x3c9531))==null?void 0x0:_0x2683e0[_0x586ec3(0x15d)][_0x586ec3(0xf2)](_0xa20ae9,_0x493553))==null?void 0x0:_0x36ded1[_0x586ec3(0xe2)];}[_0x72397f(0x15f)](_0x51f4b8,_0x130338){const _0x1ad1e9=_0x72397f;var _0x2dc849;const _0x82e14e=this[_0x1ad1e9(0xf0)](_0x51f4b8,_0x130338);_0x82e14e[_0x1ad1e9(0x15d)][_0x1ad1e9(0x138)]((_0x5ef4bc,_0x55ceb4)=>{const _0x50a4a3=_0x1ad1e9;_0x82e14e['matrix'][_0x50a4a3(0xdb)](_0x5ef4bc,_0x55ceb4);});const _0x324999=(_0x2dc849=this[_0x1ad1e9(0x159)][_0x1ad1e9(0xd5)](_0x51f4b8))==null?void 0x0:_0x2dc849[_0x1ad1e9(0xd5)](_0x130338);if(_0x324999){for(const [_0x2a138a]of _0x324999)this['updateSparklineExtraNum'](_0x51f4b8,_0x130338,_0x2a138a);}}[_0x72397f(0x115)](){const _0x1dcaef=_0x72397f;return{'sparklineModel':this[_0x1dcaef(0x159)],'sparklineAnchorMap':this[_0x1dcaef(0xfd)]};}[_0x72397f(0x125)](_0x4d358b){const _0x5efebe=_0x72397f,_0x38a59a={};if(this[_0x5efebe(0x159)][_0x5efebe(0x118)](_0x4d358b)){_0x38a59a[_0x4d358b]={};const _0x3c2753=this[_0x5efebe(0x159)][_0x5efebe(0xd5)](_0x4d358b);_0x3c2753!=null&&_0x3c2753[_0x5efebe(0x11c)]&&Array[_0x5efebe(0x12e)](_0x3c2753[_0x5efebe(0xea)]())[_0x5efebe(0x10b)](_0x1ddaf2=>{const _0x3bcf49=_0x5efebe;_0x38a59a[_0x4d358b][_0x1ddaf2]={};const _0x50e9e2=_0x3c2753['get'](_0x1ddaf2);_0x50e9e2!=null&&_0x50e9e2[_0x3bcf49(0x11c)]&&Array[_0x3bcf49(0x12e)](_0x50e9e2[_0x3bcf49(0xea)]())[_0x3bcf49(0x10b)](_0x541975=>{const _0x239df3=_0x3bcf49,_0x5507ad=_0x50e9e2[_0x239df3(0xd5)](_0x541975);_0x5507ad&&(_0x38a59a[_0x4d358b][_0x1ddaf2][_0x541975]={'config':_0x5507ad[_0x239df3(0x110)],'sparklines':_0x5507ad[_0x239df3(0xbb)][_0x239df3(0xf4)]()});});});}return _0x38a59a;}[_0x72397f(0x108)](_0x46edca){const _0x50b4ec=_0x72397f;if(!_0x46edca)return;Object['keys'](_0x46edca)[_0x50b4ec(0x10b)](_0x3d5928=>{const _0x2f60da=_0x50b4ec,_0x249f70=_0x46edca[_0x3d5928];_0x249f70&&Object[_0x2f60da(0xea)](_0x249f70)[_0x2f60da(0x10b)](_0x6dba1d=>{const _0x2835b6=_0x2f60da,_0x4b6fff=_0x249f70[_0x6dba1d];_0x4b6fff&&Object[_0x2835b6(0xea)](_0x4b6fff)[_0x2835b6(0x10b)](_0x1356dc=>{const _0x47fab7=_0x2835b6,_0x250fc6=_0x4b6fff[_0x1356dc];if(_0x250fc6){const _0x26ef00={'config':_0x250fc6[_0x47fab7(0x110)],'sparklines':new _0x192dcd(_0x250fc6[_0x47fab7(0xbb)])};this[_0x47fab7(0xb7)](_0x3d5928,_0x6dba1d,_0x1356dc,_0x26ef00);}});});});}[_0x72397f(0x11a)](_0x17371){const _0x179ffa=_0x72397f,_0x3b153d=this['_sparklineModel'][_0x179ffa(0xd5)](_0x17371);if(_0x3b153d){for(const [_0x456933]of _0x3b153d){const _0x4fdf61=_0x3b153d[_0x179ffa(0xd5)](_0x456933);if(_0x4fdf61){for(const [_0x204cf0]of _0x4fdf61)this['clearSparklineCache'](_0x17371,_0x456933,_0x204cf0);}}this[_0x179ffa(0x159)][_0x179ffa(0x14e)](_0x17371);}}};x=Vt([yt(0x0,_0x54d2a7(_0x224779))],x);const V={'id':_0x72397f(0x134),'type':_0x55ea25[_0x72397f(0xc8)],'handler':(_0x4c8ff0,_0x3c879b)=>{const _0x366855=_0x72397f;if(!_0x3c879b)return!0x1;const {sparklineConfigMap:_0x4d63ef,unitId:_0x986c8b,subUnitId:_0xc7a57a}=_0x3c879b,_0x31bc97=_0x4c8ff0['get'](x);return Object[_0x366855(0x142)](_0x4d63ef)[_0x366855(0x10b)](([_0x3577e4,_0x2d509c])=>{const _0x5d309d=_0x366855,_0x1052db={'config':_0x2d509c[_0x5d309d(0x110)],'sparklines':new _0x192dcd(_0x2d509c['sparklines'])};_0x31bc97[_0x5d309d(0xb7)](_0x986c8b,_0xc7a57a,_0x3577e4,_0x1052db);}),!0x0;}},y={'id':_0x72397f(0x160),'type':_0x55ea25['MUTATION'],'handler':(_0x995d05,_0x345413)=>{const _0x317ea7=_0x72397f;if(!_0x345413)return!0x1;const {unitId:_0x2bb43f,subUnitId:_0x1890d0,ranges:_0x1ac355,isSingle:_0x478b96,groupIds:_0x2032de}=_0x345413,_0x2433c8=_0x995d05[_0x317ea7(0xd5)](x);return _0x2032de?(_0x2032de[_0x317ea7(0x10b)](_0x222f48=>{const _0x528c1d=_0x317ea7;_0x2433c8[_0x528c1d(0xdf)](_0x2bb43f,_0x1890d0,_0x222f48);}),!0x0):_0x1ac355?(_0x1ac355[_0x317ea7(0x10b)](_0x461587=>{const _0x3b8fb=_0x317ea7;_0x540300[_0x3b8fb(0x139)](_0x461587,(_0x3cfcab,_0x184a64)=>{const _0x5572b8=_0x3b8fb,_0x30507b=_0x2433c8[_0x5572b8(0xe5)](_0x2bb43f,_0x1890d0,_0x3cfcab,_0x184a64);_0x30507b&&(_0x478b96?_0x2433c8[_0x5572b8(0x135)](_0x2bb43f,_0x1890d0,_0x3cfcab,_0x184a64):_0x2433c8[_0x5572b8(0xdf)](_0x2bb43f,_0x1890d0,_0x30507b));});}),!0x0):!0x1;}},Nt={'id':_0x72397f(0xc5),'type':_0x55ea25['COMMAND'],'handler':(_0x2b27d7,_0x577de5)=>{const _0x222f35=_0x72397f;if(!_0x577de5)return!0x1;const {sourceRanges:_0x3d1694,targetRanges:_0x51a60c,config:_0x53d28d}=_0x577de5,_0x1b9281=_0x2b27d7[_0x222f35(0xd5)](_0x4d0b6a),_0x4a42aa='g_'+_0x16eeff(0x6),_0x2bbb69=Fe(_0x3d1694,_0x51a60c),_0x30f1ec={'config':_0x53d28d!=null?_0x53d28d:{},'sparklines':_0x2bbb69['getMatrix']()},_0x29a237=_0x2b27d7['get'](_0x224779),_0x4bb72b=_0x2b27d7[_0x222f35(0xd5)](x),_0x38b9c6=_0x582456(_0x29a237);if(!_0x38b9c6)return!0x1;const {unitId:_0xc563c3,subUnitId:_0x53bb1a}=_0x38b9c6,_0x462bbe=_0x2b27d7[_0x222f35(0xd5)](_0x272bff),_0x46c50d=[],_0x305a79=[],_0x554629={},_0x24e37f={},_0x4f12f8=new Set([_0x4a42aa]);_0x2bbb69[_0x222f35(0x138)]((_0x14003b,_0x44aa65,_0x3074f7)=>{const _0xb05372=_0x222f35,_0x412986=_0x4bb72b['getSparkline'](_0xc563c3,_0x53bb1a,_0x14003b,_0x44aa65);if(_0x412986){const _0x178304=_0x4bb72b['getSparklineById'](_0xc563c3,_0x53bb1a,_0x412986);if(_0x178304){_0x4f12f8[_0xb05372(0x152)](_0x412986);let _0x2be895=_0x554629[_0x412986],_0x2aef71=_0x24e37f[_0x412986];_0x2aef71||(_0x2aef71={'config':_0x538207[_0xb05372(0xf8)](_0x178304[_0xb05372(0x110)]),'sparklines':new _0x192dcd(_0x178304[_0xb05372(0xbb)][_0xb05372(0x126)]())},_0x24e37f[_0x412986]=_0x2aef71),_0x2be895||(_0x2be895={'config':_0x538207[_0xb05372(0xf8)](_0x178304[_0xb05372(0x110)]),'sparklines':_0x178304[_0xb05372(0xbb)][_0xb05372(0x126)]()},_0x554629[_0x412986]=_0x2be895),_0x2aef71[_0xb05372(0xbb)][_0xb05372(0xdb)](_0x14003b,_0x44aa65);}}});const _0x3a7dce={};return Object[_0x222f35(0x142)](_0x24e37f)['forEach'](([_0x495b04,_0x25d603])=>{const _0x4cc569=_0x222f35;_0x25d603[_0x4cc569(0xbb)]['getSizeOf']()&&(_0x3a7dce[_0x495b04]={'config':_0x25d603[_0x4cc569(0x110)],'sparklines':_0x25d603['sparklines']['clone']()});}),_0x3a7dce[_0x4a42aa]=_0x30f1ec,_0x46c50d[_0x222f35(0x131)]({'id':y['id'],'params':{'unitId':_0xc563c3,'subUnitId':_0x53bb1a,'groupIds':Array[_0x222f35(0x12e)](_0x4f12f8),'isSingle':!0x1}}),_0x4f12f8[_0x222f35(0x11c)]>0x1&&(_0x305a79['push']({'id':y['id'],'params':{'unitId':_0xc563c3,'subUnitId':_0x53bb1a,'groupIds':Array['from'](_0x4f12f8),'isSingle':!0x1}}),_0x46c50d[_0x222f35(0x131)]({'id':V['id'],'params':{'unitId':_0xc563c3,'subUnitId':_0x53bb1a,'sparklineConfigMap':_0x554629}})),_0x305a79['push']({'id':V['id'],'params':{'unitId':_0xc563c3,'subUnitId':_0x53bb1a,'sparklineConfigMap':_0x3a7dce}}),_0x414131(_0x305a79,_0x462bbe),_0x1b9281[_0x222f35(0xec)]({'unitID':_0xc563c3,'undoMutations':_0x46c50d,'redoMutations':_0x305a79}),!0x0;}},Ot={'id':_0x72397f(0xc1),'type':_0x55ea25[_0x72397f(0xe9)],'handler':(_0x2146f4,_0x58b202)=>{const _0x5977ec=_0x72397f;var _0x108d31;const {isSingle:_0x22786d=!0x0}=_0x58b202||{},_0x16af7a=_0x2146f4[_0x5977ec(0xd5)](_0x272bff),_0x468158=_0x2146f4['get'](_0x224779),_0x26a838=_0x2146f4['get'](x),_0x3ab51a=_0x2146f4[_0x5977ec(0xd5)](_0x4d0b6a),_0x4969e1=_0x582456(_0x468158);if(!_0x4969e1)return!0x1;const _0x480dfe=_0x2146f4[_0x5977ec(0xd5)](_0x2bf808),_0x9b7b93=(_0x108d31=_0x58b202==null?void 0x0:_0x58b202[_0x5977ec(0xb4)])!=null?_0x108d31:_0x480dfe['getCurrentSelections']()[_0x5977ec(0x10d)](_0xa23c1a=>_0xa23c1a[_0x5977ec(0xc4)]),{unitId:_0x2459b6,subUnitId:_0x4a8c00}=_0x4969e1,_0x9f12a5=[],_0x4fe2d2=[];_0x9f12a5[_0x5977ec(0x131)]({'id':y['id'],'params':{'unitId':_0x2459b6,'subUnitId':_0x4a8c00,'ranges':_0x9b7b93,'isSingle':_0x22786d}});const _0x436fb4=[],_0x3f7f4d={};return _0x9b7b93[_0x5977ec(0x10b)](_0x4377e9=>{_0x540300['foreach'](_0x4377e9,(_0x49fe47,_0x310356)=>{const _0x2044ed=_0x2522,_0x5dfd62=_0x26a838[_0x2044ed(0xe5)](_0x2459b6,_0x4a8c00,_0x49fe47,_0x310356);if(_0x5dfd62){const _0x13ba14=_0x26a838['getSparklineById'](_0x2459b6,_0x4a8c00,_0x5dfd62);_0x13ba14&&(_0x436fb4[_0x2044ed(0x131)](_0x5dfd62),_0x3f7f4d[_0x5dfd62]={'config':_0x538207[_0x2044ed(0xf8)](_0x13ba14['config']),'sparklines':_0x538207['deepClone'](_0x13ba14['sparklines'][_0x2044ed(0x126)]())});}});}),_0x4fe2d2[_0x5977ec(0x131)]({'id':y['id'],'params':{'unitId':_0x2459b6,'subUnitId':_0x4a8c00,'groupIds':_0x436fb4,'isSingle':!0x1}}),_0x4fe2d2[_0x5977ec(0x131)]({'id':V['id'],'params':{'unitId':_0x2459b6,'subUnitId':_0x4a8c00,'sparklineConfigMap':_0x3f7f4d}}),_0x414131(_0x9f12a5,_0x16af7a),_0x3ab51a[_0x5977ec(0xec)]({'unitID':_0x2459b6,'undoMutations':_0x4fe2d2,'redoMutations':_0x9f12a5}),!0x0;}},Oe={'id':_0x72397f(0xfc),'type':_0x55ea25[_0x72397f(0xc8)],'handler':(_0x28700a,_0x2f6732)=>{if(!_0x2f6732)return!0x1;const {unitId:_0x46a584,subUnitId:_0x41c7f1,groupIds:_0x4e5f8c,config:_0x2241fd}=_0x2f6732,_0x4a20be=_0x28700a['get'](x);return _0x4e5f8c['forEach'](_0x522aa0=>{const _0x59f7f0=_0x2522,_0x47bcc2=_0x4a20be[_0x59f7f0(0x137)](_0x46a584,_0x41c7f1,_0x522aa0);if(_0x47bcc2){const _0x392ecf={'config':Object['assign']({},_0x47bcc2[_0x59f7f0(0x110)],_0x2241fd['config']),'sparklines':new _0x192dcd(_0x47bcc2['sparklines'][_0x59f7f0(0x126)]())};_0x4a20be[_0x59f7f0(0xb8)](_0x46a584,_0x41c7f1,[_0x522aa0],_0x392ecf);}}),!0x0;}},xt={'id':'sheet.command.set-sparkline','type':_0x55ea25[_0x72397f(0xe9)],'handler':(_0x1c8839,_0x56e900)=>{const _0x15777c=_0x72397f;var _0xe98e71,_0x42cc85,_0x3d4ed3,_0x59d9e6;if(!_0x56e900)return!0x1;const _0x821b35=_0x1c8839[_0x15777c(0xd5)](_0x272bff),_0x5c7ac4=_0x1c8839[_0x15777c(0xd5)](_0x2bf808),_0x2b5218=_0x1c8839[_0x15777c(0xd5)](x),_0xbcc5c4=_0x1c8839[_0x15777c(0xd5)](_0x224779),_0xdb999b=_0x1c8839[_0x15777c(0xd5)](_0x4d0b6a),_0xaf307d=_0x582456(_0xbcc5c4);if(!_0xaf307d)return!0x1;const {unitId:_0x2c98e8,subUnitId:_0x52e381}=_0xaf307d,_0x1b4e07=(_0xe98e71=_0x56e900==null?void 0x0:_0x56e900[_0x15777c(0xb4)])!=null?_0xe98e71:_0x5c7ac4[_0x15777c(0x132)]()['map'](_0x7edc65=>_0x7edc65['range']),_0x1de346=(_0x42cc85=_0x2b5218[_0x15777c(0x115)]()[_0x15777c(0xfb)][_0x15777c(0xd5)](_0x2c98e8))==null?void 0x0:_0x42cc85[_0x15777c(0xd5)](_0x52e381),{isChangeDataSource:_0x32862c,config:_0x49794a,combine:_0x8093a9,unCombine:_0x497c3d}=_0x56e900;if(_0x8093a9){const _0x5c7268=[],_0x480896=[];_0x5c7268[_0x15777c(0x131)]({'id':y['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'ranges':_0x1b4e07,'isSingle':!0x0}});const _0x1564c7='g_'+_0x16eeff(0x6),_0xb7af75=new _0x192dcd(),_0xcc07ef=(_0x3d4ed3=_0x2b5218['getSparklineCache']()[_0x15777c(0xf7)]['get'](_0x2c98e8))==null?void 0x0:_0x3d4ed3[_0x15777c(0xd5)](_0x52e381),_0x54b32e=new Set([_0x1564c7]),_0x359cf3={};return _0x1b4e07['forEach'](_0x439e86=>{const _0x21f220=_0x15777c;var _0x27c575,_0x57ce57;const {startRow:_0x3bc7f0,endRow:_0x259a34,startColumn:_0x3b2b73,endColumn:_0x46961c}=_0x439e86;for(let _0x3de618=_0x3bc7f0;_0x3de618<=_0x259a34;_0x3de618++)for(let _0x101054=_0x3b2b73;_0x101054<=_0x46961c;_0x101054++){const _0x2f1269=(_0x27c575=_0x1de346==null?void 0x0:_0x1de346[_0x21f220(0x15d)][_0x21f220(0xf2)](_0x3de618,_0x101054))==null?void 0x0:_0x27c575[_0x21f220(0xe2)];if(_0x2f1269){_0x54b32e[_0x21f220(0x152)](_0x2f1269);const _0x4a12b6=_0x2b5218[_0x21f220(0x137)](_0x2c98e8,_0x52e381,_0x2f1269);_0x4a12b6&&(_0x359cf3[_0x2f1269]={'config':_0x538207['deepClone'](_0x4a12b6[_0x21f220(0x110)]),'sparklines':_0x538207[_0x21f220(0xf8)](_0x4a12b6[_0x21f220(0xbb)][_0x21f220(0x126)]())});const _0x17c6a0=(_0x57ce57=_0xcc07ef==null?void 0x0:_0xcc07ef[_0x21f220(0xd5)](_0x2f1269))==null?void 0x0:_0x57ce57[_0x21f220(0xbb)][_0x21f220(0xf2)](_0x3de618,_0x101054);_0x17c6a0&&_0xb7af75['setValue'](_0x3de618,_0x101054,_0x17c6a0);}}}),_0x5c7268['push']({'id':V['id'],'params':{'sparklineConfigMap':{[_0x1564c7]:{'config':_0x538207['deepClone'](_0x49794a[_0x15777c(0x110)]),'sparklines':_0xb7af75[_0x15777c(0xf4)]()}},'unitId':_0x2c98e8,'subUnitId':_0x52e381}}),_0x480896[_0x15777c(0x131)]({'id':y['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'isSingle':!0x1,'groupIds':Array[_0x15777c(0x12e)](_0x54b32e)}}),_0x480896[_0x15777c(0x131)]({'id':V['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'sparklineConfigMap':_0x359cf3}}),_0x414131(_0x5c7268,_0x821b35),_0xdb999b[_0x15777c(0xec)]({'unitID':_0x2c98e8,'undoMutations':_0x480896,'redoMutations':_0x5c7268}),!0x0;}else{if(_0x497c3d){const _0xbafd=[],_0x229131=[];_0xbafd['push']({'id':y['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'ranges':_0x1b4e07,'isSingle':!0x0}});const _0x4e885a=(_0x59d9e6=_0x2b5218[_0x15777c(0x115)]()[_0x15777c(0xf7)][_0x15777c(0xd5)](_0x2c98e8))==null?void 0x0:_0x59d9e6[_0x15777c(0xd5)](_0x52e381),_0x178af8={},_0x54dff4=new Set(),_0x230355={};return _0x1b4e07['forEach'](_0x24852c=>{const _0xd96d72=_0x15777c;var _0x4c83a7,_0x14e5fd;const {startRow:_0x4d7750,endRow:_0x22e28a,startColumn:_0x381a00,endColumn:_0x30133a}=_0x24852c;for(let _0x41afbd=_0x4d7750;_0x41afbd<=_0x22e28a;_0x41afbd++)for(let _0x44abae=_0x381a00;_0x44abae<=_0x30133a;_0x44abae++){const _0x164666=(_0x4c83a7=_0x1de346==null?void 0x0:_0x1de346[_0xd96d72(0x15d)]['getValue'](_0x41afbd,_0x44abae))==null?void 0x0:_0x4c83a7[_0xd96d72(0xe2)];if(_0x164666){const _0x3526f6=new _0x192dcd(),_0x5b5cb7='g_'+_0x16eeff(0x6);_0x54dff4['add'](_0x164666),_0x54dff4[_0xd96d72(0x152)](_0x5b5cb7);const _0x5a735a=_0x2b5218[_0xd96d72(0x137)](_0x2c98e8,_0x52e381,_0x164666);_0x5a735a&&(_0x230355[_0x164666]={'config':_0x538207['deepClone'](_0x5a735a[_0xd96d72(0x110)]),'sparklines':_0x538207[_0xd96d72(0xf8)](_0x5a735a[_0xd96d72(0xbb)][_0xd96d72(0x126)]())});const _0x163299=(_0x14e5fd=_0x4e885a==null?void 0x0:_0x4e885a['get'](_0x164666))==null?void 0x0:_0x14e5fd['sparklines'][_0xd96d72(0xf2)](_0x41afbd,_0x44abae);_0x163299&&_0x3526f6['setValue'](_0x41afbd,_0x44abae,_0x163299),_0x178af8[_0x5b5cb7]={'sparklines':_0x3526f6[_0xd96d72(0xf4)](),'config':_0x538207[_0xd96d72(0xf8)](_0x49794a[_0xd96d72(0x110)])};}}}),_0xbafd['push']({'id':V['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'sparklineConfigMap':_0x178af8}}),_0x229131[_0x15777c(0x131)]({'id':y['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'isSingle':!0x1,'groupIds':Array[_0x15777c(0x12e)](_0x54dff4)}}),_0x229131[_0x15777c(0x131)]({'id':V['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'sparklineConfigMap':_0x230355}}),_0x414131(_0xbafd,_0x821b35),_0xdb999b[_0x15777c(0xec)]({'unitID':_0x2c98e8,'undoMutations':_0x229131,'redoMutations':_0xbafd}),!0x0;}}if(_0x32862c){const _0x3e7d96=_0x56e900['changeDataSourceInfo'];if(!_0x3e7d96)return!0x1;const {groupId:_0xfae9e3,sourceRanges:_0x4a5880,targetRanges:_0x290f2c,resetType:_0x2bddc9,primary:_0x450fae}=_0x3e7d96,_0x558ac3=[],_0x9ca22e=[];_0x558ac3[_0x15777c(0x131)]({'id':y['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'ranges':_0x1b4e07,'isSingle':!0x1,'groupIds':[_0xfae9e3]}}),_0x9ca22e[_0x15777c(0x131)]({'id':y['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'ranges':_0x1b4e07,'isSingle':!0x1,'groupIds':[_0xfae9e3]}});let _0x15788b;_0x2bddc9===_0x15777c(0xb3)?(_0x15788b=new _0x192dcd(_0x49794a[_0x15777c(0xbb)][_0x15777c(0x126)]()),_0x15788b[_0x15777c(0xdb)](_0x450fae[_0x15777c(0x150)],_0x450fae['actualColumn']),_0x15788b['setValue'](_0x290f2c[0x0][_0x15777c(0xbf)],_0x290f2c[0x0][_0x15777c(0x157)],_0x4a5880[0x0])):_0x15788b=Fe(_0x4a5880,_0x290f2c);const _0xef9249={'config':_0x538207[_0x15777c(0xf8)](_0x49794a[_0x15777c(0x110)]),'sparklines':_0x15788b['getMatrix']()},_0x57a4c2={'config':_0x538207[_0x15777c(0xf8)](_0x49794a[_0x15777c(0x110)]),'sparklines':_0x538207[_0x15777c(0xf8)](_0x49794a[_0x15777c(0xbb)][_0x15777c(0x126)]())};_0x558ac3['push']({'id':V['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'sparklineConfigMap':{[_0xfae9e3]:_0xef9249}}}),_0x9ca22e[_0x15777c(0x131)]({'id':V['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'sparklineConfigMap':{[_0xfae9e3]:_0x57a4c2}}}),_0x414131(_0x558ac3,_0x821b35),_0xdb999b[_0x15777c(0xec)]({'unitID':_0x2c98e8,'undoMutations':_0x9ca22e,'redoMutations':_0x558ac3});}else{const _0x281bcc=[],_0x6e86a4=[],_0x25dee9=new Set(),_0x474e84={};_0x1b4e07[_0x15777c(0x10b)](_0x1e7b38=>{const _0x1c8876=_0x15777c;var _0x567fe1;const {startRow:_0xbe4d24,endRow:_0x1fed87,startColumn:_0x1ee18b,endColumn:_0x3ec874}=_0x1e7b38;for(let _0x3241bc=_0xbe4d24;_0x3241bc<=_0x1fed87;_0x3241bc++)for(let _0x410195=_0x1ee18b;_0x410195<=_0x3ec874;_0x410195++){const _0x3f8fa3=(_0x567fe1=_0x1de346==null?void 0x0:_0x1de346[_0x1c8876(0x15d)]['getValue'](_0x3241bc,_0x410195))==null?void 0x0:_0x567fe1['groupId'];if(_0x3f8fa3){_0x25dee9['add'](_0x3f8fa3);const _0x581ccd=_0x2b5218['getSparklineById'](_0x2c98e8,_0x52e381,_0x3f8fa3);_0x581ccd&&(_0x474e84[_0x3f8fa3]={'config':_0x538207[_0x1c8876(0xf8)](_0x581ccd[_0x1c8876(0x110)]),'sparklines':_0x538207[_0x1c8876(0xf8)](_0x581ccd[_0x1c8876(0xbb)][_0x1c8876(0x126)]())});}}}),_0x6e86a4['push']({'id':Oe['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'groupIds':Array[_0x15777c(0x12e)](_0x25dee9),'config':{'config':_0x538207[_0x15777c(0xf8)](_0x49794a['config']),'sparklines':_0x49794a[_0x15777c(0xbb)][_0x15777c(0xf4)]()}}}),_0x281bcc['push']({'id':y['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'isSingle':!0x1,'groupIds':Array[_0x15777c(0x12e)](_0x25dee9)}}),_0x281bcc[_0x15777c(0x131)]({'id':V['id'],'params':{'unitId':_0x2c98e8,'subUnitId':_0x52e381,'sparklineConfigMap':_0x474e84}}),_0x414131(_0x6e86a4,_0x821b35),_0xdb999b[_0x15777c(0xec)]({'unitID':_0x2c98e8,'undoMutations':_0x281bcc,'redoMutations':_0x6e86a4});}return!0x0;}};var Ut=Object[_0x72397f(0x11d)],Pt=(_0x37ed15,_0x1608ba,_0x2b984c,_0x408f34)=>{const _0x2f684a=_0x72397f;for(var _0x5eb420=_0x408f34>0x1?void 0x0:_0x408f34?Ut(_0x1608ba,_0x2b984c):_0x1608ba,_0x44c59a=_0x37ed15[_0x2f684a(0x148)]-0x1,_0x1def0f;_0x44c59a>=0x0;_0x44c59a--)(_0x1def0f=_0x37ed15[_0x44c59a])&&(_0x5eb420=_0x1def0f(_0x5eb420)||_0x5eb420);return _0x5eb420;},fe=(_0x2df48c,_0x4c47fc)=>(_0x22b832,_0x13541b)=>_0x4c47fc(_0x22b832,_0x13541b,_0x2df48c);let Se=class extends _0x329963{constructor(_0x3a7de1,_0x363dc0,_0x2d1744,_0x41925c){const _0x56f7c8=_0x72397f;super(),this[_0x56f7c8(0xdc)]=_0x3a7de1,this[_0x56f7c8(0x120)]=_0x363dc0,this['_univerInstanceService']=_0x2d1744,this['_sheetSelectionService']=_0x41925c,this[_0x56f7c8(0x12c)]();}[_0x72397f(0x12c)](){const _0x1f8b6e=_0x72397f;this[_0x1f8b6e(0xb2)](this[_0x1f8b6e(0x120)][_0x1f8b6e(0x14d)]({'getMutations':_0x529d68=>{const _0x3a8eab=_0x1f8b6e,_0x1946a9=[],_0x27c09f=[];if(_0x529d68['id']===_0x40c800['id']){const _0x2b85ef=_0x582456(this['_univerInstanceService']);if(!_0x2b85ef)return{'redos':_0x1946a9,'undos':_0x27c09f};const {unitId:_0x2ad2ea,subUnitId:_0x48c574,worksheet:_0x1db504}=_0x2b85ef,_0x59518a=this[_0x3a8eab(0x146)][_0x3a8eab(0x132)]()[_0x3a8eab(0x10d)](_0x12158c=>_0x12158c[_0x3a8eab(0xc4)]),_0x298a13=new Set(),_0x4f023a={},_0x2f05fb={};_0x59518a[_0x3a8eab(0x10b)](_0x20bf6f=>{const _0x5de28c=_0x3a8eab;_0x540300[_0x5de28c(0x139)](_0x20bf6f,(_0x22a91e,_0x34f26f)=>{const _0x5f272e=_0x5de28c,_0x5b63dc=this[_0x5f272e(0xdc)][_0x5f272e(0xe5)](_0x2ad2ea,_0x48c574,_0x22a91e,_0x34f26f);if(_0x5b63dc&&!_0x298a13['has'](_0x5b63dc)){const _0x2aaf81=this[_0x5f272e(0xdc)]['getSparklineById'](_0x2ad2ea,_0x48c574,_0x5b63dc);_0x2aaf81&&(_0x298a13['add'](_0x5b63dc),_0x4f023a[_0x5b63dc]={'config':_0x538207[_0x5f272e(0xf8)](_0x2aaf81['config']),'sparklines':_0x538207[_0x5f272e(0xf8)](_0x2aaf81[_0x5f272e(0xbb)][_0x5f272e(0x126)]())},_0x2f05fb[_0x5b63dc]={'config':_0x538207[_0x5f272e(0xf8)](_0x2aaf81[_0x5f272e(0x110)]),'sparklines':_0x538207['deepClone'](_0x2aaf81[_0x5f272e(0xbb)][_0x5f272e(0x126)]())});}});}),Object[_0x3a8eab(0xb5)](_0x2f05fb)[_0x3a8eab(0x10b)](_0x458de1=>{const _0x99cd0f=_0x3a8eab,_0x4bb04e=_0x458de1[_0x99cd0f(0xbb)];new _0x192dcd(_0x4bb04e)[_0x99cd0f(0x138)]((_0x5b5a6f,_0x9f0ce,_0x1e7c00)=>{const _0x4a67f6=_0x99cd0f;_0x59518a[_0x4a67f6(0x102)](_0x48793b=>_0x5d17c9[_0x4a67f6(0xb6)](_0x48793b,_0x8811d0(_0x5b5a6f,_0x9f0ce)))&&delete _0x4bb04e[_0x5b5a6f][_0x9f0ce];});}),_0x1946a9[_0x3a8eab(0x131)]({'id':y['id'],'params':{'unitId':_0x2ad2ea,'subUnitId':_0x48c574,'groupIds':Array[_0x3a8eab(0x12e)](_0x298a13),'isSingle':!0x1}}),_0x1946a9[_0x3a8eab(0x131)]({'id':V['id'],'params':{'unitId':_0x2ad2ea,'subUnitId':_0x48c574,'sparklineConfigMap':_0x2f05fb}}),_0x27c09f[_0x3a8eab(0x131)]({'id':y['id'],'params':{'unitId':_0x2ad2ea,'subUnitId':_0x48c574,'groupIds':Array[_0x3a8eab(0x12e)](_0x298a13),'isSingle':!0x1}}),_0x27c09f['push']({'id':V['id'],'params':{'unitId':_0x2ad2ea,'subUnitId':_0x48c574,'sparklineConfigMap':_0x4f023a}});}return{'redos':_0x1946a9,'undos':_0x27c09f};}}));}};Se=Pt([fe(0x0,_0x54d2a7(x)),fe(0x1,_0x54d2a7(_0x3be193)),fe(0x2,_0x54d2a7(_0x224779)),fe(0x3,_0x54d2a7(_0x2bf808))],Se);var Tt=Object['getOwnPropertyDescriptor'],$t=(_0x397365,_0x54488f,_0x2b1983,_0x14a1ff)=>{const _0x39309b=_0x72397f;for(var _0x4cc3d8=_0x14a1ff>0x1?void 0x0:_0x14a1ff?Tt(_0x54488f,_0x2b1983):_0x54488f,_0x26796b=_0x397365[_0x39309b(0x148)]-0x1,_0x3d39d4;_0x26796b>=0x0;_0x26796b--)(_0x3d39d4=_0x397365[_0x26796b])&&(_0x4cc3d8=_0x3d39d4(_0x4cc3d8)||_0x4cc3d8);return _0x4cc3d8;},Ge=(_0x539c1f,_0x5e91dd)=>(_0x591f78,_0x5cd435)=>_0x5e91dd(_0x591f78,_0x5cd435,_0x539c1f);function _0x13f8(){const _0x2106ce=['groupId','rgb(244,104,249)','BAR_CHART','getSparkline','subUnitId','_getRefRangeMutationsByDeleteCols','type','COMMAND','keys','SPECIALTY','pushUndoRedo','column','_initRegisterCommand','setValue','_ensureAnchorMatrix','_initHideRowColWithSparkline','getValue','lowPoint','getMatrix','clearSparklineCache','NUMBER','sparklineModel','deepClone','moveRows','FRESH','sparklineAnchorMap','sheet.mutation.set-sparkline','_sparklineAnchorMap','_initSnapshot','registerPluginResource','unitId','set','some','toRgbString','3208OZHshz','_updateConfig$','CUSTOM_EXTREMUM','_initDependencies','fromJSON','STANDARD','connect_with_line','forEach','rgb(46,187,122)','map','value','disposableCollection','config','custom','getSheetBySheetId','MIN_SAFE_INTEGER','min','getSparklineCache','removeColumns','next','has','refRangeHandle','deleteUnit','updateSparklineExtraNum','size','getOwnPropertyDescriptor','removeRows','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','_sheetInterceptorService','rgb(30,177,189)','_initDataChangeListener','highPoint','_initMergeWithSparkline','toJSON','clone','every','registerRefRange','PIE_CHART','1672skkuSF','_initCorrectRangeWithSparkline','_initClearWithSparkline','GROUP_EXTREMUM','from','subscribe','CONNECT_WITH_LINE','push','getCurrentSelections','rgb(236,100,169)','sheet.mutation.add-sparkline','removePartSparkline','PROFIT_AND_LOSS_CHART','getSparklineById','forValue','foreach','NORMAL','setAlpha','specialty','soft','parse','standard','ZERO_VALUE','symbol','entries','STRING','_resourceManagerService','rgb(80,102,248)','_sheetSelectionService','1274hyGyZg','length','10hTkdMO','extremumMax','_initCopySheetWithSparkline','538404DchfQD','interceptCommand','delete','FORCE_STRING','actualRow','lastPoint','add','CUSTOM','BOOLEAN','onCommandExecuted','SPACING','startColumn','number','_sparklineModel','_config','SHEET_SPARKLINE_PLUGIN','u-connect','matrix','hasValue','reBuildAnchorCache','sheet.mutation.remove-sparkline','max','457sRpvVp','markersPoint','DISTINCTIVE','getCellRaw','getCell','_getRefRangeMutationsByDeleteRows','stringify','defineProperty','extremumMin','disposeWithMe','item','ranges','values','intersects','addSparkline','setSparkline','themeType','row','sparklines','onReady','distinctive','_commandService','startRow','SOFT','sheet.command.remove-sparkline','remove','720092wBDDPC','range','sheet.command.add-sparkline','_univerInstanceService','_onRefRangeChange','MUTATION','rgb(124,66,147)','contains','endColumn','u-spacing','pluginName','404778eYbhoN','MAX_SAFE_INTEGER','_injector','4823731PZVfXl','_ensureConfigMap','containHiddenCells','getSubUnitSparkline','get','LINE_CHART','10wQRTNW','UNIVER_SHEET','3507210zhTRLm','getSizeOf','realDeleteValue','_sparklineDataSourceModel','endRow','params','removeSparkline','rgb(54,78,244)','registerCommand'];_0x13f8=function(){return _0x2106ce;};return _0x13f8();}let ke=class extends _0x329963{constructor(_0x38a9a4,_0x2d591a){const _0x546cca=_0x72397f;super(),this['_sheetInterceptorService']=_0x38a9a4,this[_0x546cca(0xdc)]=_0x2d591a,this[_0x546cca(0x14b)]();}[_0x72397f(0x14b)](){const _0x1494d0=_0x72397f;this[_0x1494d0(0xb2)](this[_0x1494d0(0x120)][_0x1494d0(0x14d)]({'getMutations':_0xb654a1=>{const _0x576a6e=_0x1494d0,_0x291626=[],_0x99e18f=[];if(_0xb654a1['id']===_0xdc7885['id']){const _0x1e4197=_0xb654a1['params'];if(!_0x1e4197)return{'redos':_0x291626,'undos':_0x99e18f};const {unitId:_0x2c8c77,subUnitId:_0x1cc190,targetSubUnitId:_0x47c300}=_0x1e4197;if(!_0x2c8c77||!_0x1cc190||!_0x47c300)return{'redos':_0x291626,'undos':_0x99e18f};const _0x344220=new Set(),_0x2b9597={},_0xb96ffc=this[_0x576a6e(0xdc)][_0x576a6e(0xd4)](_0x2c8c77,_0x1cc190);if(!_0xb96ffc)return{'redos':_0x291626,'undos':_0x99e18f};for(const [_0x8d4282,_0x4312ac]of _0xb96ffc){const _0x220d72='g_'+_0x16eeff(0x6);_0x344220[_0x576a6e(0x152)](_0x8d4282),_0x2b9597[_0x220d72]={'config':_0x538207['deepClone'](_0x4312ac[_0x576a6e(0x110)]),'sparklines':_0x538207[_0x576a6e(0xf8)](_0x4312ac[_0x576a6e(0xbb)][_0x576a6e(0x126)]())};}_0x344220[_0x576a6e(0x11c)]&&(_0x99e18f[_0x576a6e(0x131)]({'id':y['id'],'params':{'unitId':_0x2c8c77,'subUnitId':_0x47c300,'groupIds':Array[_0x576a6e(0x12e)](_0x344220),'isSingle':!0x1}}),_0x291626[_0x576a6e(0x131)]({'id':V['id'],'params':{'unitId':_0x2c8c77,'subUnitId':_0x47c300,'sparklineConfigMap':_0x2b9597}}));}return{'redos':_0x291626,'undos':_0x99e18f};}}));}};ke=$t([Ge(0x0,_0x54d2a7(_0x3be193)),Ge(0x1,_0x54d2a7(x))],ke);var jt=Object[_0x72397f(0x11d)],Lt=(_0x2e2565,_0x28f7ca,_0x14557,_0x2ac378)=>{for(var _0x2d4a08=_0x2ac378>0x1?void 0x0:_0x2ac378?jt(_0x28f7ca,_0x14557):_0x28f7ca,_0x5ec0a5=_0x2e2565['length']-0x1,_0x147771;_0x5ec0a5>=0x0;_0x5ec0a5--)(_0x147771=_0x2e2565[_0x5ec0a5])&&(_0x2d4a08=_0x147771(_0x2d4a08)||_0x2d4a08);return _0x2d4a08;},Ie=(_0x9e1e1e,_0x21c321)=>(_0x5c11fc,_0xdeb27b)=>_0x21c321(_0x5c11fc,_0xdeb27b,_0x9e1e1e);let me=class extends _0x329963{constructor(_0x84c532,_0x1ae5ec,_0x169ce2){const _0x4bb2dc=_0x72397f;super(),this['_commandService']=_0x84c532,this['_sparklineDataSourceModel']=_0x1ae5ec,this['_exclusiveRangeService']=_0x169ce2,this[_0x4bb2dc(0x122)](),this['_initExclusiveRangeChange']();}['_initDataChangeListener'](){const _0x25e243=_0x72397f;this['disposeWithMe'](this[_0x25e243(0xbe)][_0x25e243(0x155)](_0x2f352c=>{const _0x26b840=_0x25e243;if(_0x2f352c['id']===_0x138dad['id']){const _0x3bf778=_0x2f352c[_0x26b840(0xde)],{cellValue:_0x3ed3a5,unitId:_0x12d9e3,subUnitId:_0x3edd37}=_0x3bf778,_0x422475=new _0x192dcd(_0x3ed3a5),_0x375301=new Set(),_0x4a38c2=this[_0x26b840(0xdc)][_0x26b840(0xd4)](_0x12d9e3,_0x3edd37);if(!_0x4a38c2)return;const _0x390fe5=Array[_0x26b840(0x12e)](_0x4a38c2);_0x422475[_0x26b840(0x138)]((_0x979cc0,_0x4d4913,_0x11f0c8)=>{const _0x476e36=_0x26b840,_0x4d8d14=_0x8811d0(_0x979cc0,_0x4d4913);for(let _0x21354a=0x0;_0x21354a<_0x390fe5[_0x476e36(0x148)];_0x21354a++){const [_0x53288b,_0x5eeeae]=_0x390fe5[_0x21354a],_0x57d002=_0x375301[_0x476e36(0x118)](_0x53288b);_0x57d002||_0x5eeeae[_0x476e36(0xbb)][_0x476e36(0x138)]((_0x120ab3,_0x494fd4,_0x39864b)=>{const _0x39c176=_0x476e36,_0x24fbb9=_0x39864b;if(_0x24fbb9&&!_0x57d002&&_0x5d17c9[_0x39c176(0xb6)](_0x4d8d14,_0x24fbb9))return _0x375301[_0x39c176(0x152)](_0x53288b),!0x0;});}}),_0x375301[_0x26b840(0x10b)](_0x193748=>{const _0x53e819=_0x26b840;this['_sparklineDataSourceModel'][_0x53e819(0xf5)](_0x12d9e3,_0x3edd37,_0x193748),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x12d9e3,_0x3edd37,_0x193748);});}else{if(_0x2f352c['id']===_0x3378d1['id']){const _0x20f18a=_0x2f352c[_0x26b840(0xde)],{range:_0x3b80ea,unitId:_0x4d34fb,subUnitId:_0xfb5955}=_0x20f18a,_0x4baa2e=new Set(),_0x2be20f=this[_0x26b840(0xdc)]['getSubUnitSparkline'](_0x4d34fb,_0xfb5955);if(!_0x2be20f)return;const _0x522262=Array[_0x26b840(0x12e)](_0x2be20f);for(let _0x1b5d49=0x0;_0x1b5d49<_0x522262[_0x26b840(0x148)];_0x1b5d49++){const [_0x58b188,_0x2646dc]=_0x522262[_0x1b5d49],_0x2965a5=_0x4baa2e[_0x26b840(0x118)](_0x58b188);_0x2965a5||_0x2646dc[_0x26b840(0xbb)]['forValue']((_0x15151f,_0x115466,_0x2ffb08)=>{const _0x25f7b3=_0x26b840,_0x2f43b7=_0x2ffb08;if(_0x2f43b7&&!_0x2965a5&&_0x5d17c9[_0x25f7b3(0xb6)](_0x3b80ea,_0x2f43b7))return _0x4baa2e['add'](_0x58b188),!0x0;});}_0x4baa2e[_0x26b840(0x10b)](_0x51c027=>{const _0x38e83e=_0x26b840;this[_0x38e83e(0xdc)][_0x38e83e(0xf5)](_0x4d34fb,_0xfb5955,_0x51c027),this['_sparklineDataSourceModel'][_0x38e83e(0x11b)](_0x4d34fb,_0xfb5955,_0x51c027);});}}}));}['_initExclusiveRangeChange'](){const _0x5e1898=_0x72397f;this[_0x5e1898(0xb2)](this['_exclusiveRangeService']['exclusiveRangesChange$'][_0x5e1898(0x12f)](_0x19e5ed=>{const _0x1e5def=_0x5e1898,{unitId:_0x352968,subUnitId:_0x5bd1a6,ranges:_0x44e329}=_0x19e5ed,_0x3c0254=this[_0x1e5def(0xdc)]['getSubUnitSparkline'](_0x352968,_0x5bd1a6);if(!_0x3c0254)return;const _0x31c5c4=Array['from'](_0x3c0254),_0x4538b1=new Set();for(let _0x212ce5=0x0;_0x212ce5<_0x31c5c4[_0x1e5def(0x148)];_0x212ce5++){const [_0x502fe3,_0x3ca63e]=_0x31c5c4[_0x212ce5],_0x6bd0cb=_0x4538b1[_0x1e5def(0x118)](_0x502fe3);_0x6bd0cb||_0x3ca63e[_0x1e5def(0xbb)][_0x1e5def(0x138)]((_0x5b529e,_0x3c5742,_0x5758d2)=>{const _0x129f28=_0x1e5def,_0x59bdd5=_0x5758d2;if(_0x59bdd5&&!_0x6bd0cb){for(const _0x314e95 of _0x44e329)if(_0x5d17c9[_0x129f28(0xb6)](_0x314e95,_0x59bdd5)){_0x4538b1[_0x129f28(0x152)](_0x502fe3);break;}}});}_0x4538b1['forEach'](_0x3cca32=>{const _0x5ab0a9=_0x1e5def;this[_0x5ab0a9(0xdc)][_0x5ab0a9(0xf5)](_0x352968,_0x5bd1a6,_0x3cca32),this[_0x5ab0a9(0xdc)][_0x5ab0a9(0x11b)](_0x352968,_0x5bd1a6,_0x3cca32);});}));}};me=Lt([Ie(0x0,_0x54d2a7(_0x272bff)),Ie(0x1,_0x54d2a7(x)),Ie(0x2,_0x54d2a7(_0x371992))],me);var Gt=Object[_0x72397f(0x11d)],Wt=(_0x17dc3a,_0x148d90,_0x1cf78d,_0x360f70)=>{const _0x2ccf21=_0x72397f;for(var _0x4df493=_0x360f70>0x1?void 0x0:_0x360f70?Gt(_0x148d90,_0x1cf78d):_0x148d90,_0x29d12a=_0x17dc3a[_0x2ccf21(0x148)]-0x1,_0x414a2;_0x29d12a>=0x0;_0x29d12a--)(_0x414a2=_0x17dc3a[_0x29d12a])&&(_0x4df493=_0x414a2(_0x4df493)||_0x4df493);return _0x4df493;},We=(_0x42d25f,_0x1b072c)=>(_0x1d0940,_0x4d0554)=>_0x1b072c(_0x1d0940,_0x4d0554,_0x42d25f);let Ce=class extends _0x329963{constructor(_0x41a3f1,_0x742f3c){const _0x76847f=_0x72397f;super(),this[_0x76847f(0xbe)]=_0x41a3f1,this['_sparklineDataSourceModel']=_0x742f3c,this[_0x76847f(0xf1)]();}['_initHideRowColWithSparkline'](){const _0x13ef21=_0x72397f;this[_0x13ef21(0xbe)][_0x13ef21(0x155)](_0x21d126=>{const _0x46be4f=_0x13ef21;if(_0x21d126['id']===_0x2234d4['id']||_0x21d126['id']===_0x481ee0['id']||_0x21d126['id']===_0x7eea43['id']||_0x21d126['id']===_0x4a2bec['id']){const _0x473413=_0x21d126[_0x46be4f(0xde)],{ranges:_0x28984e,unitId:_0x1efbe2,subUnitId:_0x109ae0}=_0x473413,_0x273dd2=new Set(),_0xce6611=this['_sparklineDataSourceModel'][_0x46be4f(0xd4)](_0x1efbe2,_0x109ae0);if(!_0xce6611)return;const _0x5ed3b7=Array[_0x46be4f(0x12e)](_0xce6611);_0x28984e[_0x46be4f(0x10b)](_0x4528ca=>{_0x540300['foreach'](_0x4528ca,(_0x34b09f,_0x1a69f4)=>{const _0x9bfae7=_0x2522,_0x542d1c=_0x8811d0(_0x34b09f,_0x1a69f4);for(let _0x411f89=0x0;_0x411f89<_0x5ed3b7[_0x9bfae7(0x148)];_0x411f89++){const [_0x2fb20a,_0x1f700f]=_0x5ed3b7[_0x411f89],_0x55e91a=_0x273dd2[_0x9bfae7(0x118)](_0x2fb20a);_0x55e91a||_0x1f700f[_0x9bfae7(0xbb)]['forValue']((_0x1f2f65,_0x37ef54,_0xa692d5)=>{const _0x1aa76c=_0x9bfae7,_0x21f4d2=_0xa692d5;if(_0x21f4d2&&!_0x55e91a&&_0x5d17c9['intersects'](_0x542d1c,_0x21f4d2))return _0x273dd2[_0x1aa76c(0x152)](_0x2fb20a),!0x0;});}});}),_0x273dd2[_0x46be4f(0x10b)](_0x340cab=>{const _0x28e84c=_0x46be4f;this[_0x28e84c(0xdc)][_0x28e84c(0xf5)](_0x1efbe2,_0x109ae0,_0x340cab),this[_0x28e84c(0xdc)]['updateSparklineExtraNum'](_0x1efbe2,_0x109ae0,_0x340cab);});}});}};Ce=Wt([We(0x0,_0x54d2a7(_0x272bff)),We(0x1,_0x54d2a7(x))],Ce);var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0x58ead8,_0xf55164,_0x42cb2e,_0x43fccd)=>{const _0x3b894d=_0x72397f;for(var _0x5d3f50=_0x43fccd>0x1?void 0x0:_0x43fccd?Bt(_0xf55164,_0x42cb2e):_0xf55164,_0x26b027=_0x58ead8[_0x3b894d(0x148)]-0x1,_0xab0bda;_0x26b027>=0x0;_0x26b027--)(_0xab0bda=_0x58ead8[_0x26b027])&&(_0x5d3f50=_0xab0bda(_0x5d3f50)||_0x5d3f50);return _0x5d3f50;},be=(_0x406a1e,_0x210480)=>(_0x4c42e7,_0x5a7ed4)=>_0x210480(_0x4c42e7,_0x5a7ed4,_0x406a1e);let _e=class extends _0x329963{constructor(_0x1fa801,_0x362d05,_0x4eb214){const _0x4c166c=_0x72397f;super(),this[_0x4c166c(0xbe)]=_0x1fa801,this[_0x4c166c(0x120)]=_0x362d05,this['_sparklineDataSourceModel']=_0x4eb214,this['_initMergeWithSparkline']();}[_0x72397f(0x124)](){const _0x581364=_0x72397f;this[_0x581364(0xb2)](this[_0x581364(0x120)][_0x581364(0x14d)]({'getMutations':_0x23cbf9=>{const _0x559962=_0x581364,_0x31c5d1=[],_0x37b9b2=[];if(_0x23cbf9['id']===_0x25227c['id']){const _0x3d9835=_0x23cbf9['params'];if(!_0x3d9835)return{'redos':_0x31c5d1,'undos':_0x37b9b2};const {unitId:_0x130bb0,subUnitId:_0x461c5e,ranges:_0x21f761}=_0x3d9835,_0x3cdab5=this[_0x559962(0xdc)][_0x559962(0xd4)](_0x130bb0,_0x461c5e);if(!_0x3cdab5)return{'redos':_0x31c5d1,'undos':_0x37b9b2};const _0x428719={},_0x43d328={},_0x41c639=new Set();_0x21f761[_0x559962(0x10b)](_0x2d0cb0=>{const _0x1ebf79=_0x559962,_0xf1041e=_0x2d0cb0[_0x1ebf79(0xbf)],_0x35a00f=_0x2d0cb0['startColumn'];_0x540300['foreach'](_0x2d0cb0,(_0x3d9952,_0x3ef2f6)=>{const _0x5d048d=_0x1ebf79,_0x70ee21=this[_0x5d048d(0xdc)][_0x5d048d(0xe5)](_0x130bb0,_0x461c5e,_0x3d9952,_0x3ef2f6);if(_0x70ee21&&!(_0x3d9952===_0xf1041e&&_0x3ef2f6===_0x35a00f)){const _0x4d0860=this[_0x5d048d(0xdc)][_0x5d048d(0x137)](_0x130bb0,_0x461c5e,_0x70ee21);if(_0x4d0860){_0x41c639[_0x5d048d(0x152)](_0x70ee21);let _0x1c81b6=_0x428719[_0x70ee21];_0x1c81b6||(_0x1c81b6={'config':_0x538207[_0x5d048d(0xf8)](_0x4d0860[_0x5d048d(0x110)]),'sparklines':new _0x192dcd(_0x4d0860['sparklines'][_0x5d048d(0x126)]())},_0x428719[_0x70ee21]=_0x1c81b6),_0x1c81b6[_0x5d048d(0xbb)][_0x5d048d(0xdb)](_0x3d9952,_0x3ef2f6),_0x43d328[_0x70ee21]={'config':_0x538207[_0x5d048d(0xf8)](_0x4d0860['config']),'sparklines':_0x538207[_0x5d048d(0xf8)](_0x4d0860[_0x5d048d(0xbb)]['clone']())};}}});});for(const [_0x41fb8e,_0x163407]of _0x3cdab5){const _0x51a416=_0x163407[_0x559962(0xbb)];_0x51a416[_0x559962(0x138)]((_0x350129,_0x2c9735,_0x3f7dad)=>{const _0xc62f21=_0x559962;for(let _0x29a6b9=0x0;_0x29a6b9<_0x21f761[_0xc62f21(0x148)];_0x29a6b9++){const _0x11620b=_0x21f761[_0x29a6b9];if(_0x5d17c9[_0xc62f21(0xca)](_0x11620b,_0x3f7dad)){_0x41c639[_0xc62f21(0x152)](_0x41fb8e);let _0xeb0417=_0x428719[_0x41fb8e];_0xeb0417||(_0xeb0417={'config':_0x538207[_0xc62f21(0xf8)](_0x163407[_0xc62f21(0x110)]),'sparklines':new _0x192dcd(_0x51a416[_0xc62f21(0x126)]())},_0x428719[_0x41fb8e]=_0xeb0417),_0xeb0417[_0xc62f21(0xbb)][_0xc62f21(0xdb)](_0x350129,_0x2c9735),_0x43d328[_0x41fb8e]||(_0x43d328[_0x41fb8e]={'config':_0x538207[_0xc62f21(0xf8)](_0x163407['config']),'sparklines':_0x538207['deepClone'](_0x51a416[_0xc62f21(0x126)]())});}}});}const _0x459aa5={};Object[_0x559962(0x142)](_0x428719)['forEach'](([_0x1e4869,_0x4b14e2])=>{const _0x3a5d40=_0x559962;_0x4b14e2[_0x3a5d40(0xbb)][_0x3a5d40(0xda)]()&&(_0x459aa5[_0x1e4869]={'config':_0x4b14e2[_0x3a5d40(0x110)],'sparklines':_0x4b14e2[_0x3a5d40(0xbb)]['clone']()});}),_0x41c639[_0x559962(0x11c)]&&(_0x31c5d1[_0x559962(0x131)]({'id':y['id'],'params':{'unitId':_0x130bb0,'subUnitId':_0x461c5e,'groupIds':Array[_0x559962(0x12e)](_0x41c639),'isSingle':!0x1}}),_0x37b9b2[_0x559962(0x131)]({'id':y['id'],'params':{'unitId':_0x130bb0,'subUnitId':_0x461c5e,'groupIds':Array[_0x559962(0x12e)](_0x41c639),'isSingle':!0x1}}),_0x31c5d1[_0x559962(0x131)]({'id':V['id'],'params':{'unitId':_0x130bb0,'subUnitId':_0x461c5e,'sparklineConfigMap':_0x459aa5}}),_0x37b9b2[_0x559962(0x131)]({'id':V['id'],'params':{'unitId':_0x130bb0,'subUnitId':_0x461c5e,'sparklineConfigMap':_0x43d328}}));}return{'redos':_0x31c5d1,'undos':_0x37b9b2};}}));}};_e=Ht([be(0x0,_0x54d2a7(_0x272bff)),be(0x1,_0x54d2a7(_0x3be193)),be(0x2,_0x54d2a7(x))],_e);var Ft=Object[_0x72397f(0x11d)],Kt=(_0x57cf7b,_0x5dea7e,_0x745082,_0x4f10ed)=>{const _0x49312a=_0x72397f;for(var _0x5052af=_0x4f10ed>0x1?void 0x0:_0x4f10ed?Ft(_0x5dea7e,_0x745082):_0x5dea7e,_0x56bf7b=_0x57cf7b[_0x49312a(0x148)]-0x1,_0x516396;_0x56bf7b>=0x0;_0x56bf7b--)(_0x516396=_0x57cf7b[_0x56bf7b])&&(_0x5052af=_0x516396(_0x5052af)||_0x5052af);return _0x5052af;},ge=(_0x4fac0d,_0x5ee76f)=>(_0x5e734b,_0x2aac5b)=>_0x5ee76f(_0x5e734b,_0x2aac5b,_0x4fac0d);let Me=class extends _0x329963{constructor(_0xac64bb,_0xbbaa3a,_0x21edbd,_0x1d6f67){const _0x21a175=_0x72397f;super(),se(this,_0x21a175(0x10f),new _0xaf0177()),(this[_0x21a175(0xbe)]=_0xac64bb,this['_refRangeService']=_0xbbaa3a,this[_0x21a175(0xc6)]=_0x21edbd,this[_0x21a175(0xdc)]=_0x1d6f67,this[_0x21a175(0xc7)](),this[_0x21a175(0x12b)]());}['_onRefRangeChange'](){const _0x5157e9=_0x72397f,_0x58944e=(_0x3fcda5,_0x44f4e0)=>{const _0x25d17e=_0x2522,_0x8d8c17=this[_0x25d17e(0xc6)]['getCurrentUnitForType'](_0x594f9d['UNIVER_SHEET']);if(!_0x8d8c17||!(_0x8d8c17==null?void 0x0:_0x8d8c17[_0x25d17e(0x112)](_0x44f4e0)))return;this[_0x25d17e(0x10f)]['dispose']();const _0x30d2da=_0x2d45f0=>this[_0x25d17e(0x119)](_0x2d45f0,_0x3fcda5,_0x44f4e0),_0x3c64e9=[],_0xea0aff=this['_sparklineDataSourceModel'][_0x25d17e(0xd4)](_0x3fcda5,_0x44f4e0);if(_0xea0aff){for(const [_0x57a9f4,_0x542c3a]of _0xea0aff)_0x542c3a['sparklines'][_0x25d17e(0x138)]((_0x36fa6e,_0x268c49,_0x39fd3f)=>{const _0x2167b6=_0x25d17e,_0x3a773f=_0x8811d0(_0x36fa6e,_0x268c49);_0x3c64e9[_0x2167b6(0x131)](_0x3a773f);});_0x3c64e9['forEach'](_0x2c0506=>{const _0x497d5c=_0x25d17e;this[_0x497d5c(0x10f)][_0x497d5c(0x152)](this['_refRangeService'][_0x497d5c(0x128)](_0x2c0506,_0x30d2da,_0x3fcda5,_0x44f4e0));});}};this['disposeWithMe'](this[_0x5157e9(0xbe)][_0x5157e9(0x155)](_0x479e39=>{const _0x3cc559=_0x5157e9;if(_0x479e39['id']===_0x568a28['id']){const _0x2d18ec=_0x479e39[_0x3cc559(0xde)],_0x3d2304=_0x2d18ec[_0x3cc559(0xe6)],_0x46b00b=_0x2d18ec[_0x3cc559(0x100)];if(!_0x3d2304||!_0x46b00b)return;_0x58944e(_0x46b00b,_0x3d2304);}if(_0x479e39['id']===Oe['id']||_0x479e39['id']===V['id']){const _0x7ea3eb=_0x479e39[_0x3cc559(0xde)],_0x5c7700=_0x7ea3eb[_0x3cc559(0xe6)],_0x173405=_0x7ea3eb[_0x3cc559(0x100)];if(!_0x5c7700||!_0x173405)return;_0x58944e(_0x173405,_0x5c7700);}}));}[_0x72397f(0x119)](_0x5502dd,_0x2ea00b,_0x306d0d){const _0x6de6df=_0x72397f;switch(_0x5502dd['id']){case _0x89abdb['id']:return this[_0x6de6df(0xe7)](_0x5502dd[_0x6de6df(0xde)],_0x2ea00b,_0x306d0d);case _0x2f68ec['id']:return this['_getRefRangeMutationsByDeleteRows'](_0x5502dd[_0x6de6df(0xde)],_0x2ea00b,_0x306d0d);}return{'redos':[],'undos':[]};}[_0x72397f(0xae)](_0x29f3ca,_0x3f913b,_0x40e93f){const _0x1aab1e=_0x72397f;var _0x1ea72d,_0x5d6380;const {range:_0x56519c}=_0x29f3ca,_0x581c93=new Set(),_0x3801fa={},_0x453eec={},_0x357b59=[],_0xd8f44f=[],_0x236e7c=[],_0x1e0bd7=[];if(!_0x582456(this[_0x1aab1e(0xc6)],{'unitId':_0x3f913b,'subUnitId':_0x40e93f}))return{'redos':_0xd8f44f,'undos':_0x357b59};const _0x1f6f52=this[_0x1aab1e(0xdc)][_0x1aab1e(0xd4)](_0x3f913b,_0x40e93f);if(!_0x1f6f52)return{'redos':_0xd8f44f,'undos':_0x357b59};if(!((_0x5d6380=(_0x1ea72d=this['_sparklineDataSourceModel'][_0x1aab1e(0x115)]()['sparklineAnchorMap'][_0x1aab1e(0xd5)](_0x3f913b))==null?void 0x0:_0x1ea72d['get'](_0x40e93f))==null?void 0x0:_0x5d6380[_0x1aab1e(0x15d)]))return{'redos':_0xd8f44f,'undos':_0x357b59};for(const [_0x31451d,_0x108c22]of _0x1f6f52){const _0x312255=_0x108c22[_0x1aab1e(0xbb)];_0x312255['forValue']((_0x47e949,_0x35da68,_0x1e7377)=>{const _0x32e5cb=_0x1aab1e;if(_0x5d17c9[_0x32e5cb(0xb6)](_0x56519c,_0x1e7377)){_0x581c93[_0x32e5cb(0x152)](_0x31451d);let _0x55580b=_0x453eec[_0x31451d];_0x55580b||(_0x55580b={'config':_0x108c22[_0x32e5cb(0x110)],'sparklines':_0x108c22[_0x32e5cb(0xbb)]['clone']()},_0x453eec[_0x31451d]=_0x55580b);let _0x3b9228=_0x3801fa[_0x31451d];_0x3b9228||(_0x3b9228={'config':_0x108c22[_0x32e5cb(0x110)],'sparklines':new _0x192dcd(_0x108c22[_0x32e5cb(0xbb)][_0x32e5cb(0x126)]())},_0x3801fa[_0x31451d]=_0x3b9228);const _0x3b5a50=_0x517451(_0x1e7377,{'id':_0x11a2f4['id'],'params':_0x29f3ca});_0x3b5a50?_0x3b9228[_0x32e5cb(0xbb)][_0x32e5cb(0xef)](_0x47e949,_0x35da68,_0x3b5a50):_0x3b9228[_0x32e5cb(0xbb)]['setValue'](_0x47e949,_0x35da68,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x540415[_0x32e5cb(0x13a)]});}}),_0x312255['forValue']((_0x4e4cb9,_0x9198c8,_0x235958)=>{const _0x5cff5f=_0x1aab1e;if(_0x4e4cb9<=_0x56519c[_0x5cff5f(0xdd)]&&_0x4e4cb9>=_0x56519c[_0x5cff5f(0xbf)]){_0x581c93[_0x5cff5f(0x152)](_0x31451d);let _0x41c3f5=_0x453eec[_0x31451d];_0x41c3f5||(_0x41c3f5={'config':_0x108c22['config'],'sparklines':_0x108c22[_0x5cff5f(0xbb)][_0x5cff5f(0x126)]()},_0x453eec[_0x31451d]=_0x41c3f5);let _0x4c535c=_0x3801fa[_0x31451d];_0x4c535c||(_0x4c535c={'config':_0x108c22['config'],'sparklines':new _0x192dcd(_0x108c22[_0x5cff5f(0xbb)]['clone']())},_0x3801fa[_0x31451d]=_0x4c535c);}});}_0x1e0bd7[_0x1aab1e(0x131)]({'id':y['id'],'params':{'unitId':_0x3f913b,'subUnitId':_0x40e93f,'groupIds':Array[_0x1aab1e(0x12e)](_0x581c93),'isSingle':!0x1}}),_0x236e7c[_0x1aab1e(0x131)]({'id':y['id'],'params':{'unitId':_0x3f913b,'subUnitId':_0x40e93f,'groupIds':Array[_0x1aab1e(0x12e)](_0x581c93),'isSingle':!0x1}});const _0x37c0ea={};let _0x58275b=!0x1;return Object[_0x1aab1e(0x142)](_0x3801fa)[_0x1aab1e(0x10b)](([_0x2790eb,_0x527a6e])=>{const _0x2cf67e=_0x1aab1e;_0x527a6e[_0x2cf67e(0xbb)][_0x2cf67e(0xda)]()&&(_0x58275b=!0x0,_0x527a6e[_0x2cf67e(0xbb)][_0x2cf67e(0x11e)](_0x56519c['startRow'],_0x56519c[_0x2cf67e(0xdd)]-_0x56519c[_0x2cf67e(0xbf)]+0x1),_0x37c0ea[_0x2790eb]={'config':_0x527a6e['config'],'sparklines':_0x527a6e['sparklines'][_0x2cf67e(0x126)]()});}),_0x58275b&&_0xd8f44f['push']({'id':V['id'],'params':{'unitId':_0x3f913b,'subUnitId':_0x40e93f,'sparklineConfigMap':_0x37c0ea}}),_0x357b59[_0x1aab1e(0x131)]({'id':V['id'],'params':{'unitId':_0x3f913b,'subUnitId':_0x40e93f,'sparklineConfigMap':_0x453eec}}),{'redos':_0xd8f44f,'undos':_0x357b59,'preRedos':_0x236e7c,'preUndos':_0x1e0bd7};}[_0x72397f(0xe7)](_0x1ebd29,_0x403ece,_0x123e98){const _0x371e45=_0x72397f;var _0x5db946,_0x3a6ae2;const {range:_0x26fb66}=_0x1ebd29,_0x87055e=new Set(),_0x2ff9c3={},_0x125936={},_0x27d0d4=[],_0xf7dead=[],_0x2dfc5c=[],_0x97e503=[];if(!_0x582456(this[_0x371e45(0xc6)],{'unitId':_0x403ece,'subUnitId':_0x123e98}))return{'redos':_0xf7dead,'undos':_0x27d0d4};const _0x548fc6=this[_0x371e45(0xdc)][_0x371e45(0xd4)](_0x403ece,_0x123e98);if(!_0x548fc6)return{'redos':_0xf7dead,'undos':_0x27d0d4};if(!((_0x3a6ae2=(_0x5db946=this[_0x371e45(0xdc)][_0x371e45(0x115)]()[_0x371e45(0xfb)]['get'](_0x403ece))==null?void 0x0:_0x5db946['get'](_0x123e98))==null?void 0x0:_0x3a6ae2['matrix']))return{'redos':_0xf7dead,'undos':_0x27d0d4};for(const [_0x4834eb,_0x541663]of _0x548fc6){const _0xa287a6=_0x541663[_0x371e45(0xbb)];_0xa287a6[_0x371e45(0x138)]((_0x5a3602,_0x217de0,_0x4f0b8e)=>{const _0x3e787b=_0x371e45;if(_0x5d17c9[_0x3e787b(0xb6)](_0x26fb66,_0x4f0b8e)){_0x87055e[_0x3e787b(0x152)](_0x4834eb);let _0x3aa574=_0x125936[_0x4834eb];_0x3aa574||(_0x3aa574={'config':_0x541663['config'],'sparklines':_0x541663[_0x3e787b(0xbb)][_0x3e787b(0x126)]()},_0x125936[_0x4834eb]=_0x3aa574);let _0x5352e7=_0x2ff9c3[_0x4834eb];_0x5352e7||(_0x5352e7={'config':_0x541663['config'],'sparklines':new _0x192dcd(_0x541663[_0x3e787b(0xbb)][_0x3e787b(0x126)]())},_0x2ff9c3[_0x4834eb]=_0x5352e7);const _0x57e682=_0x517451(_0x4f0b8e,{'id':_0x14761e['id'],'params':_0x1ebd29});_0x57e682?_0x5352e7[_0x3e787b(0xbb)][_0x3e787b(0xef)](_0x5a3602,_0x217de0,_0x57e682):_0x5352e7['sparklines'][_0x3e787b(0xef)](_0x5a3602,_0x217de0,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x540415[_0x3e787b(0x13a)]});}}),_0xa287a6[_0x371e45(0x138)]((_0x25e00c,_0x30521c,_0x42639a)=>{const _0x2ee06c=_0x371e45;if(_0x30521c<=_0x26fb66[_0x2ee06c(0xcb)]&&_0x30521c>=_0x26fb66[_0x2ee06c(0x157)]){_0x87055e[_0x2ee06c(0x152)](_0x4834eb);let _0x1e78a2=_0x125936[_0x4834eb];_0x1e78a2||(_0x1e78a2={'config':_0x541663[_0x2ee06c(0x110)],'sparklines':_0x541663['sparklines'][_0x2ee06c(0x126)]()},_0x125936[_0x4834eb]=_0x1e78a2);let _0x1c4afc=_0x2ff9c3[_0x4834eb];_0x1c4afc||(_0x1c4afc={'config':_0x541663[_0x2ee06c(0x110)],'sparklines':new _0x192dcd(_0x541663[_0x2ee06c(0xbb)]['clone']())},_0x2ff9c3[_0x4834eb]=_0x1c4afc);}});}_0x97e503[_0x371e45(0x131)]({'id':y['id'],'params':{'unitId':_0x403ece,'subUnitId':_0x123e98,'groupIds':Array['from'](_0x87055e),'isSingle':!0x1}}),_0x2dfc5c[_0x371e45(0x131)]({'id':y['id'],'params':{'unitId':_0x403ece,'subUnitId':_0x123e98,'groupIds':Array[_0x371e45(0x12e)](_0x87055e),'isSingle':!0x1}});const _0x54ad4f={};let _0x19da5b=!0x1;return Object[_0x371e45(0x142)](_0x2ff9c3)['forEach'](([_0x3c1ef2,_0x10783b])=>{const _0x347c09=_0x371e45;_0x10783b[_0x347c09(0xbb)]['getSizeOf']()&&(_0x19da5b=!0x0,_0x10783b[_0x347c09(0xbb)]['removeColumns'](_0x26fb66['startColumn'],_0x26fb66['endColumn']-_0x26fb66['startColumn']+0x1),_0x54ad4f[_0x3c1ef2]={'config':_0x10783b[_0x347c09(0x110)],'sparklines':_0x10783b[_0x347c09(0xbb)][_0x347c09(0x126)]()});}),_0x19da5b&&_0xf7dead['push']({'id':V['id'],'params':{'unitId':_0x403ece,'subUnitId':_0x123e98,'sparklineConfigMap':_0x54ad4f}}),_0x27d0d4[_0x371e45(0x131)]({'id':V['id'],'params':{'unitId':_0x403ece,'subUnitId':_0x123e98,'sparklineConfigMap':_0x125936}}),{'redos':_0xf7dead,'undos':_0x27d0d4,'preRedos':_0x2dfc5c,'preUndos':_0x97e503};}[_0x72397f(0x12b)](){const _0x25a83c=_0x72397f;this[_0x25a83c(0xb2)](this[_0x25a83c(0xbe)]['onCommandExecuted'](_0x5ad29e=>{const _0x4db960=_0x25a83c;if(_0x5ad29e['id']===_0x4180ff['id']){const _0x62f545=_0x5ad29e['params'],{unitId:_0x5a5f65,subUnitId:_0x3b5442,range:_0x51f4f6}=_0x62f545,_0x42f5b4=_0x51f4f6[_0x4db960(0x157)],_0x479037=_0x51f4f6[_0x4db960(0xcb)]-_0x51f4f6['startColumn']+0x1,_0x256292=this[_0x4db960(0xdc)][_0x4db960(0xd4)](_0x5a5f65,_0x3b5442);if(!_0x256292)return;for(const [_0x2e1b31,_0x17d28b]of _0x256292){this['_sparklineDataSourceModel'][_0x4db960(0xf5)](_0x5a5f65,_0x3b5442,_0x2e1b31);const _0x49a97d=_0x17d28b[_0x4db960(0xbb)];_0x49a97d[_0x4db960(0x138)]((_0x2ddeb0,_0x90e6f1,_0x268f59)=>{const _0x5e6829=_0x4db960,_0x14f44e={..._0x268f59};_0x42f5b4<=_0x14f44e[_0x5e6829(0x157)]?(_0x14f44e[_0x5e6829(0x157)]+=_0x479037,_0x14f44e[_0x5e6829(0xcb)]+=_0x479037):_0x42f5b4>_0x14f44e[_0x5e6829(0xcb)]||(_0x14f44e['endColumn']+=_0x479037),_0x49a97d[_0x5e6829(0xef)](_0x2ddeb0,_0x90e6f1,_0x14f44e);});const _0x3f4206=_0x49a97d['getMatrix']();for(const _0xa20df2 in _0x3f4206){const _0x5a577f=_0x3f4206[Number(_0xa20df2)];if(!_0x5a577f)continue;const _0x3dce78=Object[_0x4db960(0xea)](_0x5a577f)['map'](Number),_0x56e998=Math[_0x4db960(0x161)](..._0x3dce78);for(let _0x303472=_0x56e998;_0x303472>=_0x42f5b4;_0x303472--)_0x303472>=_0x42f5b4&&_0x5a577f[_0x303472]&&(_0x5a577f[_0x303472+_0x479037]=_0x5a577f[_0x303472],delete _0x5a577f[_0x303472]);}this[_0x4db960(0xdc)][_0x4db960(0x11b)](_0x5a5f65,_0x3b5442,_0x2e1b31);}}else{if(_0x5ad29e['id']===_0x9b28a3['id']){const _0x580857=_0x5ad29e[_0x4db960(0xde)],{unitId:_0xb99bb7,subUnitId:_0x1cb527,range:_0x1b6b16}=_0x580857,_0x5b9811=_0x1b6b16[_0x4db960(0xbf)],_0x104984=_0x1b6b16[_0x4db960(0xdd)]-_0x1b6b16[_0x4db960(0xbf)]+0x1,_0x2e5d40=this[_0x4db960(0xdc)][_0x4db960(0xd4)](_0xb99bb7,_0x1cb527);if(!_0x2e5d40)return;for(const [_0x1b9b52,_0x2cb19f]of _0x2e5d40){this[_0x4db960(0xdc)][_0x4db960(0xf5)](_0xb99bb7,_0x1cb527,_0x1b9b52);const _0x22517d=_0x2cb19f[_0x4db960(0xbb)];_0x22517d[_0x4db960(0x138)]((_0x49d37d,_0x1cb3f3,_0x4fc1f7)=>{const _0x1ed4ca=_0x4db960,_0x327124={..._0x4fc1f7};_0x5b9811<=_0x327124['startRow']?(_0x327124[_0x1ed4ca(0xbf)]+=_0x104984,_0x327124[_0x1ed4ca(0xdd)]+=_0x104984):_0x5b9811>_0x327124[_0x1ed4ca(0xdd)]||(_0x327124[_0x1ed4ca(0xdd)]+=_0x104984),_0x22517d[_0x1ed4ca(0xef)](_0x49d37d,_0x1cb3f3,_0x327124);});const _0xcfee3e=_0x22517d[_0x4db960(0xf4)](),_0xd6a5d2=Object[_0x4db960(0xea)](_0xcfee3e)[_0x4db960(0x10d)](Number),_0x5c83dd=Math[_0x4db960(0x161)](..._0xd6a5d2);for(let _0x3cf48e=_0x5c83dd;_0x3cf48e>=_0x5b9811;_0x3cf48e--)_0x3cf48e>=_0x5b9811&&_0xcfee3e[_0x3cf48e]&&(_0xcfee3e[_0x3cf48e+_0x104984]=_0xcfee3e[_0x3cf48e],delete _0xcfee3e[_0x3cf48e]);this['_sparklineDataSourceModel'][_0x4db960(0x11b)](_0xb99bb7,_0x1cb527,_0x1b9b52);}}else{if(_0x5ad29e['id']===_0x14761e['id']){const _0xab760f=_0x5ad29e[_0x4db960(0xde)],{range:_0x27ee47,unitId:_0x5b5495,subUnitId:_0x6568ee}=_0xab760f,_0x98648e=this[_0x4db960(0xdc)][_0x4db960(0xd4)](_0x5b5495,_0x6568ee);if(!_0x98648e)return;for(const [_0x346e4c,_0x169d0e]of _0x98648e){const _0x33aac0=_0x169d0e['sparklines'];_0x33aac0[_0x4db960(0x138)]((_0x291357,_0x4e2b12,_0x5db11d)=>{const _0x312e71=_0x4db960,_0x1b2574=_0x517451(_0x5db11d,_0x5ad29e);_0x1b2574?_0x33aac0[_0x312e71(0xef)](_0x291357,_0x4e2b12,_0x1b2574):_0x33aac0[_0x312e71(0xef)](_0x291357,_0x4e2b12,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x540415[_0x312e71(0x13a)]});}),_0x33aac0[_0x4db960(0x116)](_0x27ee47['startColumn'],_0x27ee47[_0x4db960(0xcb)]-_0x27ee47[_0x4db960(0x157)]+0x1);}this[_0x4db960(0xdc)][_0x4db960(0x15f)](_0x5b5495,_0x6568ee);}else{if(_0x5ad29e['id']===_0x11a2f4['id']){const _0x3f8ebe=_0x5ad29e[_0x4db960(0xde)],{range:_0x2c80ac,unitId:_0x517b4e,subUnitId:_0x23239f}=_0x3f8ebe,_0x1927ef=this[_0x4db960(0xdc)][_0x4db960(0xd4)](_0x517b4e,_0x23239f);if(!_0x1927ef)return;for(const [_0x20d0d9,_0x4f8158]of _0x1927ef){const _0x5dcf86=_0x4f8158['sparklines'];_0x5dcf86[_0x4db960(0x138)]((_0x38acab,_0x27fd0f,_0x3f4bea)=>{const _0x529943=_0x4db960,_0x1d2936=_0x517451(_0x3f4bea,_0x5ad29e);_0x1d2936?_0x5dcf86[_0x529943(0xef)](_0x38acab,_0x27fd0f,_0x1d2936):_0x5dcf86[_0x529943(0xef)](_0x38acab,_0x27fd0f,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x540415[_0x529943(0x13a)]});}),_0x5dcf86[_0x4db960(0x11e)](_0x2c80ac['startRow'],_0x2c80ac['endRow']-_0x2c80ac[_0x4db960(0xbf)]+0x1);}this['_sparklineDataSourceModel']['reBuildAnchorCache'](_0x517b4e,_0x23239f);}else{if(_0x5ad29e['id']===_0x3409db['id']){const _0x4d9b39=_0x5ad29e['params'],{unitId:_0x5372c1,subUnitId:_0x54385c,sourceRange:_0x4b5856,targetRange:_0xe915f6}=_0x4d9b39,_0x407444=this[_0x4db960(0xdc)]['getSubUnitSparkline'](_0x5372c1,_0x54385c);if(!_0x407444)return;for(const [_0x8ed50f,_0x5c054c]of _0x407444){const _0x519ec5=_0x5c054c[_0x4db960(0xbb)];_0x519ec5[_0x4db960(0x138)]((_0x22b011,_0xde0a0e,_0xec3f34)=>{const _0x47a2c8=_0x4db960,_0x47d6cd=_0x517451(_0xec3f34,_0x5ad29e);_0x47d6cd?_0x519ec5[_0x47a2c8(0xef)](_0x22b011,_0xde0a0e,_0x47d6cd):_0x519ec5[_0x47a2c8(0xef)](_0x22b011,_0xde0a0e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x540415[_0x47a2c8(0x13a)]});}),_0x519ec5['moveColumns'](_0x4b5856['startColumn'],_0x4b5856[_0x4db960(0xcb)]-_0x4b5856['startColumn']+0x1,_0xe915f6[_0x4db960(0x157)]);}this[_0x4db960(0xdc)][_0x4db960(0x15f)](_0x5372c1,_0x54385c);}else{if(_0x5ad29e['id']===_0x165f9b['id']){const _0x2b32fb=_0x5ad29e['params'],{unitId:_0x5267ee,subUnitId:_0xabe1d0,sourceRange:_0x1d1068,targetRange:_0x5934ec}=_0x2b32fb,_0x27eed6=this[_0x4db960(0xdc)][_0x4db960(0xd4)](_0x5267ee,_0xabe1d0);if(!_0x27eed6)return;for(const [_0xa4b109,_0x541657]of _0x27eed6){const _0x30bef2=_0x541657['sparklines'];_0x30bef2[_0x4db960(0x138)]((_0x2f8a78,_0x39f36e,_0x29d582)=>{const _0x54268d=_0x4db960,_0x13ec12=_0x517451(_0x29d582,_0x5ad29e);_0x13ec12?_0x30bef2[_0x54268d(0xef)](_0x2f8a78,_0x39f36e,_0x13ec12):_0x30bef2['setValue'](_0x2f8a78,_0x39f36e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x540415[_0x54268d(0x13a)]});}),_0x30bef2[_0x4db960(0xf9)](_0x1d1068['startRow'],_0x1d1068[_0x4db960(0xdd)]-_0x1d1068['startRow']+0x1,_0x5934ec['startRow']);}this[_0x4db960(0xdc)][_0x4db960(0x15f)](_0x5267ee,_0xabe1d0);}else{if(_0x5ad29e['id']===_0x5c1875['id']){const _0x581ca9=_0x5ad29e[_0x4db960(0xde)],{fromRange:_0x1ea053,toRange:_0x2ec066,unitId:_0x4dfb05,from:_0x30872c,to:_0x33e285}=_0x581ca9;if(_0x30872c[_0x4db960(0xe6)]!==_0x33e285[_0x4db960(0xe6)])return;const _0x334b57=_0x30872c[_0x4db960(0xe6)],{startRow:_0x15d201,endRow:_0x587b81,startColumn:_0x2e1973,endColumn:_0x11eeeb}=_0x1ea053,{startRow:_0x47796a,startColumn:_0x3fb8b6}=_0x2ec066,_0x5332d0=_0x47796a-_0x15d201,_0x17bf89=_0x3fb8b6-_0x2e1973,_0x29b9b8=this[_0x4db960(0xdc)][_0x4db960(0xd4)](_0x4dfb05,_0x334b57);if(!(_0x29b9b8!=null&&_0x29b9b8['size']))return;for(let _0x562c20=_0x15d201;_0x562c20<=_0x587b81;_0x562c20++)for(let _0x3b9003=_0x2e1973;_0x3b9003<=_0x11eeeb;_0x3b9003++){const _0x42beb8=this[_0x4db960(0xdc)][_0x4db960(0xe5)](_0x4dfb05,_0x334b57,_0x562c20,_0x3b9003);if(_0x42beb8){const _0x642138=this[_0x4db960(0xdc)][_0x4db960(0x137)](_0x4dfb05,_0x334b57,_0x42beb8);if(_0x642138){const _0x466260=_0x642138[_0x4db960(0xbb)][_0x4db960(0xf2)](_0x562c20,_0x3b9003);_0x466260&&(_0x642138[_0x4db960(0xbb)]['setValue'](_0x562c20+_0x5332d0,_0x3b9003+_0x17bf89,_0x466260),_0x642138['sparklines'][_0x4db960(0xdb)](_0x562c20,_0x3b9003));}}}for(const [_0xf07191,_0x1ea48f]of _0x29b9b8){const _0x4b3b65=_0x1ea48f['sparklines'];_0x4b3b65[_0x4db960(0x138)]((_0x35e870,_0x30a4b6,_0x1a7044)=>{const _0x22fbe3=_0x4db960,_0x5c85b8={..._0x1a7044};_0x5d17c9[_0x22fbe3(0xca)](_0x1ea053,_0x1a7044)&&(_0x5c85b8[_0x22fbe3(0xbf)]+=_0x5332d0,_0x5c85b8['endRow']+=_0x5332d0,_0x5c85b8[_0x22fbe3(0x157)]+=_0x17bf89,_0x5c85b8[_0x22fbe3(0xcb)]+=_0x17bf89),_0x4b3b65['setValue'](_0x35e870,_0x30a4b6,_0x5c85b8);});}this[_0x4db960(0xdc)][_0x4db960(0x15f)](_0x4dfb05,_0x334b57);}}}}}}}}));}};Me=Kt([ge(0x0,_0x54d2a7(_0x272bff)),ge(0x1,_0x54d2a7(_0x475f93)),ge(0x2,_0x224779),ge(0x3,_0x54d2a7(x))],Me);var Xt=Object[_0x72397f(0x11d)],zt=(_0x4f50a6,_0x44f97f,_0x2eec00,_0x479f84)=>{const _0x4d3ba2=_0x72397f;for(var _0x3010ef=_0x479f84>0x1?void 0x0:_0x479f84?Xt(_0x44f97f,_0x2eec00):_0x44f97f,_0x2f4396=_0x4f50a6[_0x4d3ba2(0x148)]-0x1,_0x4c1f63;_0x2f4396>=0x0;_0x2f4396--)(_0x4c1f63=_0x4f50a6[_0x2f4396])&&(_0x3010ef=_0x4c1f63(_0x3010ef)||_0x3010ef);return _0x3010ef;},Be=(_0x382db0,_0x5af651)=>(_0x8656c8,_0x2d6851)=>_0x5af651(_0x8656c8,_0x2d6851,_0x382db0);let Re=class extends _0x329963{constructor(_0xa1d081,_0xf3b40f){const _0xbaa3b1=_0x72397f;super(),this['_resourceManagerService']=_0xa1d081,this[_0xbaa3b1(0xdc)]=_0xf3b40f,this[_0xbaa3b1(0xfe)]();}[_0x72397f(0xfe)](){const _0x1410b7=_0x72397f,_0xb3ebbb=_0x456709=>{const _0xa2f94f=_0x2522,_0x5a311f=this['_sparklineDataSourceModel'][_0xa2f94f(0x125)](_0x456709);return _0x5a311f?JSON[_0xa2f94f(0xaf)](_0x5a311f):'';},_0x145c13=_0x1a74cb=>_0x1a74cb?JSON[_0x1410b7(0x13e)](_0x1a74cb):{};this[_0x1410b7(0xb2)](this[_0x1410b7(0x144)][_0x1410b7(0xff)]({'toJson':_0xb3ebbb,'parseJson':_0x145c13,'pluginName':Ke,'businesses':[_0x594f9d[_0x1410b7(0xd8)]],'onLoad':(_0x13402e,_0x21aa76)=>{const _0x404ef1=_0x1410b7;this['_sparklineDataSourceModel'][_0x404ef1(0x108)](_0x21aa76);},'onUnLoad':_0x2ee7d1=>{const _0x3fda46=_0x1410b7;this[_0x3fda46(0xdc)][_0x3fda46(0x11a)](_0x2ee7d1);}}));}};Re=zt([Be(0x0,_0x54d2a7(_0x2c7267)),Be(0x1,_0x54d2a7(x))],Re);var Jt=Object[_0x72397f(0xb0)],Zt=Object[_0x72397f(0x11d)],Yt=(_0x23ce31,_0x4d9cfe,_0x57077d)=>_0x4d9cfe in _0x23ce31?Jt(_0x23ce31,_0x4d9cfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57077d}):_0x23ce31[_0x4d9cfe]=_0x57077d,qt=(_0x1630bc,_0x5c9e29,_0x3ca8ab,_0x11d0e1)=>{const _0x1218cc=_0x72397f;for(var _0x3c10ef=_0x11d0e1>0x1?void 0x0:_0x11d0e1?Zt(_0x5c9e29,_0x3ca8ab):_0x5c9e29,_0x110cd3=_0x1630bc[_0x1218cc(0x148)]-0x1,_0x1238ee;_0x110cd3>=0x0;_0x110cd3--)(_0x1238ee=_0x1630bc[_0x110cd3])&&(_0x3c10ef=_0x1238ee(_0x3c10ef)||_0x3c10ef);return _0x3c10ef;},He=(_0x4bf93c,_0x51c5d6)=>(_0x4dcef7,_0x372e38)=>_0x51c5d6(_0x4dcef7,_0x372e38,_0x4bf93c),ze=(_0x160f6d,_0x4841ac,_0x5b25f3)=>Yt(_0x160f6d,typeof _0x4841ac!=_0x72397f(0x141)?_0x4841ac+'':_0x4841ac,_0x5b25f3);let ve=class extends _0x33da54{constructor(_0x4dcb56={},_0x48e4f0,_0x328fbf){const _0x3eaeef=_0x72397f;super(),this[_0x3eaeef(0x15a)]=_0x4dcb56,this[_0x3eaeef(0xd0)]=_0x48e4f0,this['_commandService']=_0x328fbf,this[_0x3eaeef(0x107)](),this[_0x3eaeef(0xee)]();}[_0x72397f(0x107)](){const _0x31c464=_0x72397f;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x31c464(0x10b)](_0x472c80=>{const _0x5032cd=_0x31c464;this[_0x5032cd(0xd0)][_0x5032cd(0x152)](_0x472c80);}),_0x309222(this[_0x31c464(0xd0)],[[Re]]);}[_0x72397f(0xbc)](){_0x309222(this['_injector'],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x72397f(0xee)](){const _0x3d2614=_0x72397f;[Nt,V,Ot,y,xt,Oe][_0x3d2614(0x10b)](_0xbd1738=>this[_0x3d2614(0xbe)][_0x3d2614(0xe1)](_0xbd1738));}};ze(ve,_0x72397f(0xcd),Ke),ze(ve,'type',_0x594f9d[_0x72397f(0xd8)]),ve=qt([_0x5432f8(_0x3f9b9a),He(0x1,_0x54d2a7(_0x563a9d)),He(0x2,_0x54d2a7(_0x272bff))],ve);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,De as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
1
+ const _0x488b34=_0x1142;(function(_0x3678cb,_0xda872b){const _0x5f3502=_0x1142,_0x2b74c1=_0x3678cb();while(!![]){try{const _0x20eacc=parseInt(_0x5f3502(0x162))/0x1*(parseInt(_0x5f3502(0x12b))/0x2)+parseInt(_0x5f3502(0x13b))/0x3+-parseInt(_0x5f3502(0xda))/0x4*(-parseInt(_0x5f3502(0x15b))/0x5)+-parseInt(_0x5f3502(0xf2))/0x6+-parseInt(_0x5f3502(0xfe))/0x7*(-parseInt(_0x5f3502(0xcb))/0x8)+parseInt(_0x5f3502(0x117))/0x9+-parseInt(_0x5f3502(0x15f))/0xa*(parseInt(_0x5f3502(0xbc))/0xb);if(_0x20eacc===_0xda872b)break;else _0x2b74c1['push'](_0x2b74c1['shift']());}catch(_0x5572ea){_0x2b74c1['push'](_0x2b74c1['shift']());}}}(_0xec55,0xd61b7));var qe=Object[_0x488b34(0x104)],Qe=(_0x429c33,_0x12adcd,_0x4bcb1f)=>_0x12adcd in _0x429c33?qe(_0x429c33,_0x12adcd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bcb1f}):_0x429c33[_0x12adcd]=_0x4bcb1f,se=(_0x1fc14e,_0x48aaf0,_0x47b580)=>Qe(_0x1fc14e,typeof _0x48aaf0!=_0x488b34(0x118)?_0x48aaf0+'':_0x48aaf0,_0x47b580);import{ObjectMatrix as _0x15e796,Inject as _0x461bd9,IUniverInstanceService as _0x52ff88,Disposable as _0x50a864,isValidRange as _0x385c6c,CellValueType as _0x15d9a9,ColorKit as _0x136bd6,CommandType as _0x2d2221,Range as _0x591a4d,IUndoRedoService as _0x51a4c4,generateRandomId as _0x334988,ICommandService as _0x30a353,Tools as _0x10e27a,sequenceExecute as _0x20f666,Rectangle as _0x39ebf7,cellToRange as _0x2c12ac,DisposableCollection as _0x7d9adb,RANGE_TYPE as _0x31b14b,UniverInstanceType as _0x190875,IResourceManagerService as _0x17b376,DependentOn as _0x2d6f3a,Injector as _0x4912cf,Plugin as _0x2ae3d2,touchDependencies as _0x563cc1}from'@univerjs/core';import{getSheetCommandTarget as _0x4f4623,SheetsSelectionsService as _0x5d71e5,SheetInterceptorService as _0x5b6037,ClearSelectionAllCommand as _0x2fbb31,CopySheetCommand as _0x93143b,IExclusiveRangeService as _0x386b3a,SetRangeValuesMutation as _0x5b76cf,ReorderRangeMutation as _0x348cbc,SetRowHiddenMutation as _0x1626a7,SetColHiddenMutation as _0x141b84,SetRowVisibleMutation as _0x13f7a4,SetColVisibleMutation as _0x44ff80,AddWorksheetMergeCommand as _0x499036,RefRangeService as _0xaeaac8,SetWorksheetActivateCommand as _0x15bb63,RemoveRowCommand as _0x53a49c,RemoveColCommand as _0x10fb89,adjustRangeOnMutation as _0x2eefd4,RemoveRowMutation as _0x13aee7,RemoveColMutation as _0x1da228,InsertColMutation as _0x2a9dad,InsertRowMutation as _0x258800,MoveColsMutation as _0x437ecb,MoveRowsMutation as _0x3d6247,MoveRangeMutation as _0x26867b}from'@univerjs/sheets';import{Subject as _0x27adb0}from'rxjs';import{UniverLicensePlugin as _0x512be7}from'@univerjs-pro/license';function Fe(_0x595490,_0x58160d){const _0x51b017=_0x488b34,_0x575353=new _0x15e796(),_0x153133=[],_0x344206=_0x595490['length']>0x1;let _0x51cfd7=0x0,_0x3f896e=0x0;for(const _0x534f28 of _0x595490)_0x51cfd7+=_0x534f28['endRow']-_0x534f28['startRow']+0x1,_0x3f896e+=_0x534f28[_0x51b017(0x135)]-_0x534f28[_0x51b017(0x10f)]+0x1;for(const _0x31afa0 of _0x58160d)for(let _0x319d33=_0x31afa0[_0x51b017(0xc6)];_0x319d33<=_0x31afa0[_0x51b017(0xfd)];_0x319d33++)for(let _0x401f29=_0x31afa0[_0x51b017(0x10f)];_0x401f29<=_0x31afa0[_0x51b017(0x135)];_0x401f29++)_0x153133[_0x51b017(0x151)]({'row':_0x319d33,'column':_0x401f29});if(_0x153133['length']===_0x51cfd7)_0x344206?_0x153133[_0x51b017(0xc1)]((_0x46cf79,_0xa0a2f4)=>{const _0x3985c8=_0x51b017,_0x1c139c=_0x595490[_0xa0a2f4],_0xdf8f11={'startRow':_0x1c139c[_0x3985c8(0xc6)],'startColumn':_0x1c139c[_0x3985c8(0x10f)],'endRow':_0x1c139c['startRow'],'endColumn':_0x1c139c[_0x3985c8(0x135)]};_0x575353[_0x3985c8(0xb0)](_0x46cf79['row'],_0x46cf79[_0x3985c8(0x121)],_0xdf8f11);}):_0x153133[_0x51b017(0xc1)]((_0x55537c,_0x9f5336)=>{const _0x669829=_0x51b017,_0x153f6e=_0x595490[0x0],_0x101f55={'startRow':_0x153f6e[_0x669829(0xc6)]+_0x9f5336,'startColumn':_0x153f6e[_0x669829(0x10f)],'endRow':_0x153f6e[_0x669829(0xc6)]+_0x9f5336,'endColumn':_0x153f6e[_0x669829(0x135)]};_0x575353[_0x669829(0xb0)](_0x55537c[_0x669829(0x160)],_0x55537c['column'],_0x101f55);});else{if(_0x153133[_0x51b017(0x134)]===_0x3f896e)_0x344206?_0x153133[_0x51b017(0xc1)]((_0x33c0c3,_0x12b30a)=>{const _0x40c4b1=_0x51b017,_0x488824=_0x595490[_0x12b30a],_0x2e6213={'startRow':_0x488824['startRow'],'startColumn':_0x488824[_0x40c4b1(0x10f)],'endRow':_0x488824[_0x40c4b1(0xfd)],'endColumn':_0x488824['startColumn']};_0x575353[_0x40c4b1(0xb0)](_0x33c0c3[_0x40c4b1(0x160)],_0x33c0c3[_0x40c4b1(0x121)],_0x2e6213);}):_0x153133[_0x51b017(0xc1)]((_0x56381e,_0x4e4336)=>{const _0x55ce69=_0x51b017,_0x1edf50=_0x595490[0x0],_0x33c926={'startRow':_0x1edf50[_0x55ce69(0xc6)],'startColumn':_0x1edf50['startColumn']+_0x4e4336,'endRow':_0x1edf50[_0x55ce69(0xfd)],'endColumn':_0x1edf50[_0x55ce69(0x10f)]+_0x4e4336};_0x575353[_0x55ce69(0xb0)](_0x56381e[_0x55ce69(0x160)],_0x56381e[_0x55ce69(0x121)],_0x33c926);});else{if(_0x153133[_0x51b017(0x134)]===_0x595490['length'])_0x595490[_0x51b017(0xd2)](_0x4be5b0=>!(_0x4be5b0[_0x51b017(0xc6)]!==_0x4be5b0[_0x51b017(0xfd)]&&_0x4be5b0['startColumn']!==_0x4be5b0[_0x51b017(0x135)]))&&_0x153133[_0x51b017(0xc1)]((_0x546d15,_0x3b0268)=>{const _0x4900fb=_0x51b017,_0x4e0812=_0x595490[_0x3b0268];_0x575353['setValue'](_0x546d15[_0x4900fb(0x160)],_0x546d15['column'],_0x4e0812);});else throw new Error('Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.');}}return _0x575353;}const Ke='SHEET_SPARKLINE_PLUGIN',Le={'standard':[_0x488b34(0xb4),_0x488b34(0xbb)],'specialty':['rgb(49,106,246)',_0x488b34(0x138)],'distinctive':['rgb(124,66,147)',_0x488b34(0x108)],'soft':['rgb(80,102,248)',_0x488b34(0xd1)],'fresh':[_0x488b34(0x119),_0x488b34(0xdb)]},on=[_0x488b34(0xc9),_0x488b34(0xf9),_0x488b34(0x109),'lowPoint','negativePoint',_0x488b34(0xad)];var Xe=(_0x4c9e58=>(_0x4c9e58[_0x488b34(0x145)]=_0x488b34(0x14c),_0x4c9e58[_0x488b34(0xeb)]=_0x488b34(0x149),_0x4c9e58[_0x488b34(0xdc)]='distinctive',_0x4c9e58[_0x488b34(0xfb)]='soft',_0x4c9e58[_0x488b34(0x140)]=_0x488b34(0x11e),_0x4c9e58[_0x488b34(0x159)]=_0x488b34(0x11d),_0x4c9e58))(Xe||{}),Dt=(_0x200738=>(_0x200738[_0x200738[_0x488b34(0xde)]=0x1]=_0x488b34(0xde),_0x200738[_0x200738[_0x488b34(0xf6)]=0x2]=_0x488b34(0xf6),_0x200738[_0x200738[_0x488b34(0x12a)]=0x3]=_0x488b34(0x12a),_0x200738[_0x200738[_0x488b34(0x165)]=0x4]='PIE_CHART',_0x200738))(Dt||{}),J=(_0x3639ba=>(_0x3639ba[_0x488b34(0x116)]='spacing',_0x3639ba['ZERO_VALUE']=_0x488b34(0x147),_0x3639ba['CONNECT_WITH_LINE']=_0x488b34(0xe1),_0x3639ba))(J||{}),De=(_0x248351=>(_0x248351[_0x248351[_0x488b34(0xba)]=0x1]='SELF_EXTREMUM',_0x248351[_0x248351[_0x488b34(0x169)]=0x2]=_0x488b34(0x169),_0x248351[_0x248351[_0x488b34(0x144)]=0x3]=_0x488b34(0x144),_0x248351))(De||{}),Et=Object[_0x488b34(0x11a)],Vt=(_0x2a8f5c,_0x3c2218,_0x7883de,_0x65ebe)=>{const _0x14e89a=_0x488b34;for(var _0x452c41=_0x65ebe>0x1?void 0x0:_0x65ebe?Et(_0x3c2218,_0x7883de):_0x3c2218,_0x413dc2=_0x2a8f5c[_0x14e89a(0x134)]-0x1,_0x53f8db;_0x413dc2>=0x0;_0x413dc2--)(_0x53f8db=_0x2a8f5c[_0x413dc2])&&(_0x452c41=_0x53f8db(_0x452c41)||_0x452c41);return _0x452c41;},yt=(_0x135366,_0x5d9b9a)=>(_0x3e52de,_0x4b56b0)=>_0x5d9b9a(_0x3e52de,_0x4b56b0,_0x135366);let x=class extends _0x50a864{constructor(_0x1c824b){const _0xa21988=_0x488b34;super(),se(this,_0xa21988(0x115),new Map()),se(this,_0xa21988(0x14a),new Map()),se(this,_0xa21988(0x101),new _0x27adb0()),se(this,'updateConfig$',this[_0xa21988(0x101)]['asObservable']()),this[_0xa21988(0x111)]=_0x1c824b;}[_0x488b34(0x163)](_0x50ccb3,_0x405105){const _0x3df659=_0x488b34;let _0x2f3547=this[_0x3df659(0x115)][_0x3df659(0x10c)](_0x50ccb3);_0x2f3547||(_0x2f3547=new Map(),this[_0x3df659(0x115)][_0x3df659(0xcf)](_0x50ccb3,_0x2f3547));let _0x2ec627=_0x2f3547[_0x3df659(0x10c)](_0x405105);return _0x2ec627||(_0x2ec627=new Map(),_0x2f3547[_0x3df659(0xcf)](_0x405105,_0x2ec627)),_0x2ec627;}[_0x488b34(0xe2)](_0x124127,_0x928e81){const _0x589ad7=_0x488b34;let _0x2ed9d3=this['_sparklineAnchorMap'][_0x589ad7(0x10c)](_0x124127);_0x2ed9d3||(_0x2ed9d3=new Map(),this[_0x589ad7(0x14a)][_0x589ad7(0xcf)](_0x124127,_0x2ed9d3));let _0x5b9a3c=_0x2ed9d3[_0x589ad7(0x10c)](_0x928e81);return _0x5b9a3c||(_0x5b9a3c={'matrix':new _0x15e796(),'extra':{}},_0x2ed9d3[_0x589ad7(0xcf)](_0x928e81,_0x5b9a3c)),_0x5b9a3c;}[_0x488b34(0x14e)](_0x30ce48,_0x34aed0,_0x586ac9,_0xf7abf0=_0x488b34(0xcf)){const _0x1849da=_0x488b34;var _0x33ae40,_0x3db2a8,_0x58a4b6,_0x1e1929,_0x3ff3f0,_0x138d45,_0x41836a,_0x36a1ff,_0x2250dc,_0x240b1f,_0xae2df6,_0x143c2d,_0x5b26be;const _0x98f1f=(_0x3db2a8=(_0x33ae40=this[_0x1849da(0x115)][_0x1849da(0x10c)](_0x30ce48))==null?void 0x0:_0x33ae40['get'](_0x34aed0))==null?void 0x0:_0x3db2a8[_0x1849da(0x10c)](_0x586ac9);if(!_0x98f1f)return;const _0x543c36=_0x4f4623(this['_univerInstanceService'],{'unitId':_0x30ce48,'subUnitId':_0x34aed0});if(!_0x543c36)return;const _0x5b542c=this[_0x1849da(0xe2)](_0x30ce48,_0x34aed0),{extra:_0x590b3c,matrix:_0x8e7aee}=_0x5b542c,{worksheet:_0x27d954}=_0x543c36;let _0x16698b=Number[_0x1849da(0xbd)],_0x471f30=Number['MAX_SAFE_INTEGER'];const _0x1b8064=(_0x58a4b6=_0x98f1f[_0x1849da(0x15e)][_0x1849da(0x157)])!=null?_0x58a4b6:!0x1;_0x98f1f[_0x1849da(0x15a)][_0x1849da(0x141)]((_0x2ab8ee,_0x40771c,_0x353ede)=>{const _0x42cf83=_0x1849da;var _0x456c17,_0x2596a5,_0x16118f;const _0x5048a3=_0x353ede;let _0x16f584=Number[_0x42cf83(0xbd)],_0x3db8e3=Number[_0x42cf83(0xf0)],_0x23f298=0x0,_0x5c6981=0x0;const _0x2d3370=[];if(!_0x385c6c(_0x5048a3))_0x8e7aee['setValue'](_0x2ab8ee,_0x40771c,{'groupId':_0x586ac9,'data':[],'max':_0x16f584,'min':_0x3db8e3,'highIndex':_0x23f298,'lowIndex':_0x5c6981,'negativeIndexes':_0x2d3370});else{const _0x7fe869=[];for(let _0x7a8d76=_0x5048a3['startRow'];_0x7a8d76<=_0x5048a3['endRow'];_0x7a8d76++){for(let _0x2c3402=_0x5048a3['startColumn'];_0x2c3402<=_0x5048a3[_0x42cf83(0x135)];_0x2c3402++){const _0x15b508=_0x27d954[_0x42cf83(0x13f)](_0x7a8d76),_0x227a8f=_0x27d954[_0x42cf83(0x11b)](_0x2c3402);if(!_0x1b8064&&(!_0x15b508||!_0x227a8f))continue;let _0x613906=0x0;const _0x30fe20=((_0x456c17=_0x27d954['getCellRaw'](_0x7a8d76,_0x2c3402))==null?void 0x0:_0x456c17['v'])!==void 0x0?_0x27d954[_0x42cf83(0x113)](_0x7a8d76,_0x2c3402):_0x27d954['getCell'](_0x7a8d76,_0x2c3402);if(!_0x30fe20||_0x30fe20['v']===void 0x0||_0x30fe20['v']===null){const _0x2dcae7=(_0x2596a5=_0x98f1f[_0x42cf83(0x15e)][_0x42cf83(0x15c)])!=null?_0x2596a5:J[_0x42cf83(0x116)];_0x2dcae7===J[_0x42cf83(0x154)]?_0x613906=0x0:_0x2dcae7===J[_0x42cf83(0x116)]?_0x613906=_0x42cf83(0x110):_0x2dcae7===J['CONNECT_WITH_LINE']&&(_0x613906='u-connect');}else{if(_0x30fe20['t']===_0x15d9a9[_0x42cf83(0xd8)]||_0x30fe20['t']===_0x15d9a9[_0x42cf83(0x143)]){const _0x4d1b1a=(_0x16118f=_0x98f1f['config'][_0x42cf83(0xc3)])!=null?_0x16118f:J[_0x42cf83(0x116)];_0x4d1b1a===J[_0x42cf83(0x154)]?_0x613906=0x0:_0x4d1b1a===J['SPACING']?_0x613906=_0x42cf83(0x110):_0x4d1b1a===J[_0x42cf83(0x10e)]&&(_0x613906='u-connect');}else _0x30fe20['t']===_0x15d9a9[_0x42cf83(0xe6)]?_0x613906=_0x30fe20['v']?0x1:0x0:_0x30fe20['t']===_0x15d9a9[_0x42cf83(0xb9)]?_0x613906=Number(_0x30fe20['v']):_0x613906=_0x30fe20['v'];}if(_0x7fe869['push'](_0x613906),typeof _0x613906==_0x42cf83(0xf3)){_0x16f584=Math['max'](_0x16f584,_0x613906),_0x16698b=Math['max'](_0x16698b,_0x613906),_0x471f30=Math[_0x42cf83(0x11f)](_0x471f30,_0x613906),_0x3db8e3=Math['min'](_0x3db8e3,_0x613906);const _0x6982d7=typeof _0x7fe869[_0x23f298]==_0x42cf83(0xf3)?Number(_0x7fe869[_0x23f298]):Number[_0x42cf83(0xbd)];_0x613906>_0x6982d7&&(_0x23f298=_0x7fe869['length']-0x1);const _0x8a15c8=typeof _0x7fe869[_0x5c6981]=='number'?Number(_0x7fe869[_0x5c6981]):Number[_0x42cf83(0xf0)];_0x613906<_0x8a15c8&&(_0x5c6981=_0x7fe869[_0x42cf83(0x134)]-0x1),_0x613906<0x0&&_0x2d3370[_0x42cf83(0x151)](_0x7fe869[_0x42cf83(0x134)]-0x1);}}_0x8e7aee[_0x42cf83(0xb0)](_0x2ab8ee,_0x40771c,{'groupId':_0x586ac9,'data':_0x7fe869,'max':_0x16f584,'min':_0x3db8e3,'highIndex':_0x23f298,'lowIndex':_0x5c6981,'negativeIndexes':_0x2d3370});}}});let _0x507158=_0x16698b;((_0x1e1929=_0x98f1f[_0x1849da(0x15e)][_0x1849da(0x125)])==null?void 0x0:_0x1e1929['type'])===De['CUSTOM_EXTREMUM']&&(_0x507158=(_0x138d45=(_0x3ff3f0=_0x98f1f['config'][_0x1849da(0x125)])==null?void 0x0:_0x3ff3f0['value'])!=null?_0x138d45:_0x16698b);let _0x28d8af=_0x471f30;((_0x41836a=_0x98f1f['config']['extremumMin'])==null?void 0x0:_0x41836a[_0x1849da(0xc2)])===De[_0x1849da(0x144)]&&(_0x28d8af=(_0x2250dc=(_0x36a1ff=_0x98f1f[_0x1849da(0x15e)][_0x1849da(0x164)])==null?void 0x0:_0x36a1ff['value'])!=null?_0x2250dc:_0x471f30);const _0x2918ce=(_0x240b1f=_0x98f1f[_0x1849da(0x15e)][_0x1849da(0xb5)])!=null?_0x240b1f:Xe[_0x1849da(0x145)],_0x10d745=(_0x5b26be=(_0x143c2d=_0x98f1f[_0x1849da(0x15e)][_0x1849da(0xc7)])!=null?_0x143c2d:(_0xae2df6=Le[_0x2918ce])==null?void 0x0:_0xae2df6[0x0])!=null?_0x5b26be:Le[_0x1849da(0x14c)][0x0],_0x214ce1=new _0x136bd6(_0x10d745),_0x1b405a=_0x214ce1[_0x1849da(0xe3)](0.2)[_0x1849da(0x15d)](),_0x50e48b=_0x214ce1['setAlpha'](0.05)['toRgbString']();_0x590b3c[_0x586ac9]={'groupMax':_0x16698b,'groupMin':_0x471f30,'showMax':_0x507158,'showMin':_0x28d8af,'startGradient':_0x1b405a,'endGradient':_0x50e48b},this['_updateConfig$']['next']({'unitId':_0x30ce48,'subUnitId':_0x34aed0,'groupId':_0x586ac9,'config':_0x98f1f,'type':_0xf7abf0});}[_0x488b34(0xbf)](_0x33c0f9,_0x53c822,_0x16fdfb,_0x1fe9d1){const _0x2aa9d0=_0x488b34;this[_0x2aa9d0(0x163)](_0x33c0f9,_0x53c822)[_0x2aa9d0(0xcf)](_0x16fdfb,_0x1fe9d1),this[_0x2aa9d0(0x14e)](_0x33c0f9,_0x53c822,_0x16fdfb,_0x2aa9d0(0xe4));}[_0x488b34(0x10b)](_0x55d0b4,_0x369e30,_0xef7c7b,_0x1d6ab5){const _0x3b96a4=_0x488b34;var _0x464e39;const _0x1818b2=(_0x464e39=this[_0x3b96a4(0x115)][_0x3b96a4(0x10c)](_0x55d0b4))==null?void 0x0:_0x464e39[_0x3b96a4(0x10c)](_0x369e30);_0xef7c7b['forEach'](_0x53dac8=>{const _0x1fe5b3=_0x3b96a4;_0x1818b2!=null&&_0x1818b2[_0x1fe5b3(0xee)](_0x53dac8)&&(_0x1818b2[_0x1fe5b3(0xcf)](_0x53dac8,_0x1d6ab5),this[_0x1fe5b3(0x14e)](_0x55d0b4,_0x369e30,_0x53dac8));});}[_0x488b34(0xd0)](_0xe708dd,_0x386b9f,_0x4f96db){const _0x1446da=_0x488b34;var _0x5031c6,_0x38bf58;const _0x72420a=this[_0x1446da(0x115)]['get'](_0xe708dd);if(_0x72420a){const _0x5974fc=_0x72420a['get'](_0x386b9f);if(_0x5974fc){_0x5974fc[_0x1446da(0x123)](_0x4f96db);const _0x1882bf=(_0x5031c6=this[_0x1446da(0x14a)][_0x1446da(0x10c)](_0xe708dd))==null?void 0x0:_0x5031c6[_0x1446da(0x10c)](_0x386b9f);(_0x38bf58=_0x1882bf==null?void 0x0:_0x1882bf[_0x1446da(0xfa)])==null||_0x38bf58['forValue']((_0x173731,_0x5ba17f,_0x3fae4c)=>{const _0x23254c=_0x1446da;(_0x3fae4c==null?void 0x0:_0x3fae4c[_0x23254c(0x112)])===_0x4f96db&&(_0x1882bf==null||_0x1882bf[_0x23254c(0xfa)][_0x23254c(0x12d)](_0x173731,_0x5ba17f));}),this['_updateConfig$']['next']({'unitId':_0xe708dd,'subUnitId':_0x386b9f,'groupId':_0x4f96db,'type':'remove'});}}}[_0x488b34(0x120)](_0x5e5238,_0x5d817d,_0x3d9599,_0x472e66){const _0x575e25=_0x488b34;var _0x498334,_0x866143,_0x451407,_0x1b2417;const _0x48c7a7=(_0x498334=this['_sparklineAnchorMap'][_0x575e25(0x10c)](_0x5e5238))==null?void 0x0:_0x498334['get'](_0x5d817d),_0x1fe142=_0x48c7a7==null?void 0x0:_0x48c7a7[_0x575e25(0xfa)][_0x575e25(0x131)](_0x3d9599,_0x472e66);if(_0x1fe142){const {groupId:_0x23fa67}=_0x1fe142,_0x1e0538=(_0x866143=this[_0x575e25(0x115)]['get'](_0x5e5238))==null?void 0x0:_0x866143[_0x575e25(0x10c)](_0x5d817d);(_0x451407=_0x1e0538==null?void 0x0:_0x1e0538['get'](_0x23fa67))==null||_0x451407[_0x575e25(0x15a)]['realDeleteValue'](_0x3d9599,_0x472e66),(_0x1b2417=_0x1e0538==null?void 0x0:_0x1e0538[_0x575e25(0x10c)](_0x23fa67))!=null&&_0x1b2417['sparklines'][_0x575e25(0xc0)]()||_0x1e0538==null||_0x1e0538[_0x575e25(0x123)](_0x23fa67),_0x48c7a7==null||_0x48c7a7['matrix']['realDeleteValue'](_0x3d9599,_0x472e66),this['_updateConfig$'][_0x575e25(0x127)]({'unitId':_0x5e5238,'subUnitId':_0x5d817d,'groupId':_0x23fa67,'type':_0x575e25(0x161)});}}[_0x488b34(0xf7)](_0x1a132a,_0x3811b3,_0x425a6b){const _0x570806=_0x488b34;var _0x313ced,_0x3f88e0,_0x3e484d,_0xb9f575;const _0x570a86=(_0x3e484d=(_0x3f88e0=(_0x313ced=this[_0x570806(0x115)]['get'](_0x1a132a))==null?void 0x0:_0x313ced[_0x570806(0x10c)](_0x3811b3))==null?void 0x0:_0x3f88e0[_0x570806(0x10c)](_0x425a6b))==null?void 0x0:_0x3e484d[_0x570806(0x15a)],_0x525beb=(_0xb9f575=this['_sparklineAnchorMap'][_0x570806(0x10c)](_0x1a132a))==null?void 0x0:_0xb9f575[_0x570806(0x10c)](_0x3811b3);if(_0x570a86&&_0x525beb){const {matrix:_0x398f8f,extra:_0x300ee0}=_0x525beb;_0x570a86[_0x570806(0x141)]((_0x1b0ee9,_0x562fbc,_0x37618e)=>{const _0x1c3340=_0x570806;_0x398f8f[_0x1c3340(0x12d)](_0x1b0ee9,_0x562fbc);}),delete _0x300ee0[_0x425a6b];}}[_0x488b34(0x114)](_0x1e350b,_0x5bedd6){const _0x29cb09=_0x488b34;var _0x2aface;return(_0x2aface=this['_sparklineModel'][_0x29cb09(0x10c)](_0x1e350b))==null?void 0x0:_0x2aface['get'](_0x5bedd6);}[_0x488b34(0xef)](_0xef8eaf,_0x4e1f89,_0x2bf4a0){const _0x124d26=_0x488b34;var _0x680cb4,_0x2e64ca;return(_0x2e64ca=(_0x680cb4=this[_0x124d26(0x115)][_0x124d26(0x10c)](_0xef8eaf))==null?void 0x0:_0x680cb4[_0x124d26(0x10c)](_0x4e1f89))==null?void 0x0:_0x2e64ca['get'](_0x2bf4a0);}[_0x488b34(0x133)](_0x3d7f15,_0x59c6e0,_0x2fea04,_0x4cf2b0){const _0x5321f1=_0x488b34;var _0x3769e7,_0x4de61c,_0x237221;return(_0x237221=(_0x4de61c=(_0x3769e7=this['_sparklineAnchorMap']['get'](_0x3d7f15))==null?void 0x0:_0x3769e7[_0x5321f1(0x10c)](_0x59c6e0))==null?void 0x0:_0x4de61c[_0x5321f1(0xfa)][_0x5321f1(0x131)](_0x2fea04,_0x4cf2b0))==null?void 0x0:_0x237221[_0x5321f1(0x112)];}['reBuildAnchorCache'](_0x473b4c,_0x31622e){const _0x282237=_0x488b34;var _0xf0c1de;const _0xbc461d=this[_0x282237(0xe2)](_0x473b4c,_0x31622e);_0xbc461d['matrix']['forValue']((_0x329d0a,_0x1995d2)=>{const _0x13a1bf=_0x282237;_0xbc461d[_0x13a1bf(0xfa)][_0x13a1bf(0x12d)](_0x329d0a,_0x1995d2);});const _0x53bf0c=(_0xf0c1de=this[_0x282237(0x115)][_0x282237(0x10c)](_0x473b4c))==null?void 0x0:_0xf0c1de[_0x282237(0x10c)](_0x31622e);if(_0x53bf0c){for(const [_0x1871f5]of _0x53bf0c)this[_0x282237(0x14e)](_0x473b4c,_0x31622e,_0x1871f5);}}[_0x488b34(0xd7)](){const _0x2f6ece=_0x488b34;return{'sparklineModel':this[_0x2f6ece(0x115)],'sparklineAnchorMap':this[_0x2f6ece(0x14a)]};}[_0x488b34(0xd3)](_0x18bd9f){const _0x25297a=_0x488b34,_0x45f188={};if(this[_0x25297a(0x115)]['has'](_0x18bd9f)){_0x45f188[_0x18bd9f]={};const _0x1e46d4=this[_0x25297a(0x115)][_0x25297a(0x10c)](_0x18bd9f);_0x1e46d4!=null&&_0x1e46d4[_0x25297a(0x137)]&&Array[_0x25297a(0xf5)](_0x1e46d4['keys']())[_0x25297a(0xc1)](_0x129f92=>{const _0x566029=_0x25297a;_0x45f188[_0x18bd9f][_0x129f92]={};const _0x35a42f=_0x1e46d4[_0x566029(0x10c)](_0x129f92);_0x35a42f!=null&&_0x35a42f[_0x566029(0x137)]&&Array['from'](_0x35a42f[_0x566029(0x146)]())[_0x566029(0xc1)](_0x172969=>{const _0x3007c8=_0x566029,_0x5024dd=_0x35a42f['get'](_0x172969);_0x5024dd&&(_0x45f188[_0x18bd9f][_0x129f92][_0x172969]={'config':_0x5024dd[_0x3007c8(0x15e)],'sparklines':_0x5024dd[_0x3007c8(0x15a)][_0x3007c8(0x11c)]()});});});}return _0x45f188;}['fromJSON'](_0x253d4a){const _0x39aeda=_0x488b34;if(!_0x253d4a)return;Object[_0x39aeda(0x146)](_0x253d4a)[_0x39aeda(0xc1)](_0x1d6053=>{const _0x4be7d4=_0x39aeda,_0x5a1a01=_0x253d4a[_0x1d6053];_0x5a1a01&&Object[_0x4be7d4(0x146)](_0x5a1a01)[_0x4be7d4(0xc1)](_0x12f470=>{const _0x3105a0=_0x4be7d4,_0x2831c2=_0x5a1a01[_0x12f470];_0x2831c2&&Object[_0x3105a0(0x146)](_0x2831c2)[_0x3105a0(0xc1)](_0x7ee662=>{const _0x3d69b6=_0x3105a0,_0x2113ae=_0x2831c2[_0x7ee662];if(_0x2113ae){const _0x204088={'config':_0x2113ae['config'],'sparklines':new _0x15e796(_0x2113ae[_0x3d69b6(0x15a)])};this['addSparkline'](_0x1d6053,_0x12f470,_0x7ee662,_0x204088);}});});});}[_0x488b34(0x14d)](_0x448e9c){const _0x390fc4=_0x488b34,_0x3924d3=this[_0x390fc4(0x115)]['get'](_0x448e9c);if(_0x3924d3){for(const [_0x3d59d7]of _0x3924d3){const _0x5883f8=_0x3924d3['get'](_0x3d59d7);if(_0x5883f8){for(const [_0x5abc94]of _0x5883f8)this[_0x390fc4(0xf7)](_0x448e9c,_0x3d59d7,_0x5abc94);}}this[_0x390fc4(0x115)]['delete'](_0x448e9c);}}};x=Vt([yt(0x0,_0x461bd9(_0x52ff88))],x);const V={'id':_0x488b34(0xce),'type':_0x2d2221['MUTATION'],'handler':(_0x57db6e,_0x404d2b)=>{const _0xc41a35=_0x488b34;if(!_0x404d2b)return!0x1;const {sparklineConfigMap:_0x51bbcc,unitId:_0x3217e0,subUnitId:_0x35a5d4}=_0x404d2b,_0x44d96b=_0x57db6e[_0xc41a35(0x10c)](x);return Object[_0xc41a35(0x156)](_0x51bbcc)[_0xc41a35(0xc1)](([_0x2a9e1d,_0x288ae7])=>{const _0x295d27=_0xc41a35,_0x55fac0={'config':_0x288ae7[_0x295d27(0x15e)],'sparklines':new _0x15e796(_0x288ae7[_0x295d27(0x15a)])};_0x44d96b[_0x295d27(0xbf)](_0x3217e0,_0x35a5d4,_0x2a9e1d,_0x55fac0);}),!0x0;}},y={'id':_0x488b34(0xbe),'type':_0x2d2221[_0x488b34(0xd9)],'handler':(_0xc6b4e8,_0x4b2a35)=>{const _0x52e5fb=_0x488b34;if(!_0x4b2a35)return!0x1;const {unitId:_0x3f0e64,subUnitId:_0x1e3889,ranges:_0x40ef7e,isSingle:_0x18d152,groupIds:_0x3a742f}=_0x4b2a35,_0x36ffad=_0xc6b4e8['get'](x);return _0x3a742f?(_0x3a742f[_0x52e5fb(0xc1)](_0x2351bd=>{const _0x3ed36d=_0x52e5fb;_0x36ffad[_0x3ed36d(0xd0)](_0x3f0e64,_0x1e3889,_0x2351bd);}),!0x0):_0x40ef7e?(_0x40ef7e[_0x52e5fb(0xc1)](_0x34447c=>{_0x591a4d['foreach'](_0x34447c,(_0x57acc5,_0x1aa464)=>{const _0x26b2ad=_0x1142,_0xc96198=_0x36ffad[_0x26b2ad(0x133)](_0x3f0e64,_0x1e3889,_0x57acc5,_0x1aa464);_0xc96198&&(_0x18d152?_0x36ffad[_0x26b2ad(0x120)](_0x3f0e64,_0x1e3889,_0x57acc5,_0x1aa464):_0x36ffad[_0x26b2ad(0xd0)](_0x3f0e64,_0x1e3889,_0xc96198));});}),!0x0):!0x1;}},Nt={'id':_0x488b34(0x126),'type':_0x2d2221[_0x488b34(0x155)],'handler':(_0x5a7a8,_0x3d0c9d)=>{const _0x4f7129=_0x488b34;if(!_0x3d0c9d)return!0x1;const {sourceRanges:_0x1723d8,targetRanges:_0x14ac46,config:_0xf248c}=_0x3d0c9d,_0x30111b=_0x5a7a8[_0x4f7129(0x10c)](_0x51a4c4),_0x461ecd='g_'+_0x334988(0x6),_0x36bf78=Fe(_0x1723d8,_0x14ac46),_0x105f31={'config':_0xf248c!=null?_0xf248c:{},'sparklines':_0x36bf78['getMatrix']()},_0x3da25a=_0x5a7a8[_0x4f7129(0x10c)](_0x52ff88),_0x14c710=_0x5a7a8['get'](x),_0x164431=_0x4f4623(_0x3da25a);if(!_0x164431)return!0x1;const {unitId:_0x4f0ef7,subUnitId:_0x1ce84b}=_0x164431,_0x354a1e=_0x5a7a8[_0x4f7129(0x10c)](_0x30a353),_0x531eca=[],_0x3f1aec=[],_0x372a52={},_0x575006={},_0x4d2bb2=new Set([_0x461ecd]);_0x36bf78[_0x4f7129(0x141)]((_0xc332f3,_0x50413b,_0x2b37f8)=>{const _0x3b5551=_0x4f7129,_0x26e4ed=_0x14c710[_0x3b5551(0x133)](_0x4f0ef7,_0x1ce84b,_0xc332f3,_0x50413b);if(_0x26e4ed){const _0x1395fb=_0x14c710[_0x3b5551(0xef)](_0x4f0ef7,_0x1ce84b,_0x26e4ed);if(_0x1395fb){_0x4d2bb2[_0x3b5551(0xe4)](_0x26e4ed);let _0x47f1d9=_0x372a52[_0x26e4ed],_0x6cf2d3=_0x575006[_0x26e4ed];_0x6cf2d3||(_0x6cf2d3={'config':_0x10e27a[_0x3b5551(0x102)](_0x1395fb['config']),'sparklines':new _0x15e796(_0x1395fb[_0x3b5551(0x15a)]['clone']())},_0x575006[_0x26e4ed]=_0x6cf2d3),_0x47f1d9||(_0x47f1d9={'config':_0x10e27a['deepClone'](_0x1395fb[_0x3b5551(0x15e)]),'sparklines':_0x1395fb[_0x3b5551(0x15a)][_0x3b5551(0xb3)]()},_0x372a52[_0x26e4ed]=_0x47f1d9),_0x6cf2d3[_0x3b5551(0x15a)][_0x3b5551(0x12d)](_0xc332f3,_0x50413b);}}});const _0x1b1af1={};return Object[_0x4f7129(0x156)](_0x575006)[_0x4f7129(0xc1)](([_0x2dde04,_0x16c42c])=>{const _0xf87173=_0x4f7129;_0x16c42c['sparklines'][_0xf87173(0x128)]()&&(_0x1b1af1[_0x2dde04]={'config':_0x16c42c['config'],'sparklines':_0x16c42c['sparklines']['clone']()});}),_0x1b1af1[_0x461ecd]=_0x105f31,_0x531eca[_0x4f7129(0x151)]({'id':y['id'],'params':{'unitId':_0x4f0ef7,'subUnitId':_0x1ce84b,'groupIds':Array[_0x4f7129(0xf5)](_0x4d2bb2),'isSingle':!0x1}}),_0x4d2bb2[_0x4f7129(0x137)]>0x1&&(_0x3f1aec[_0x4f7129(0x151)]({'id':y['id'],'params':{'unitId':_0x4f0ef7,'subUnitId':_0x1ce84b,'groupIds':Array[_0x4f7129(0xf5)](_0x4d2bb2),'isSingle':!0x1}}),_0x531eca[_0x4f7129(0x151)]({'id':V['id'],'params':{'unitId':_0x4f0ef7,'subUnitId':_0x1ce84b,'sparklineConfigMap':_0x372a52}})),_0x3f1aec[_0x4f7129(0x151)]({'id':V['id'],'params':{'unitId':_0x4f0ef7,'subUnitId':_0x1ce84b,'sparklineConfigMap':_0x1b1af1}}),_0x20f666(_0x3f1aec,_0x354a1e),_0x30111b[_0x4f7129(0xd4)]({'unitID':_0x4f0ef7,'undoMutations':_0x531eca,'redoMutations':_0x3f1aec}),!0x0;}},Ot={'id':_0x488b34(0xcd),'type':_0x2d2221[_0x488b34(0x155)],'handler':(_0x52056f,_0x3da177)=>{const _0x314eca=_0x488b34;var _0x54382c;const {isSingle:_0x3c04a0=!0x0}=_0x3da177||{},_0x71c2f8=_0x52056f['get'](_0x30a353),_0x552b99=_0x52056f[_0x314eca(0x10c)](_0x52ff88),_0x5c4949=_0x52056f[_0x314eca(0x10c)](x),_0x5de902=_0x52056f['get'](_0x51a4c4),_0x1108d4=_0x4f4623(_0x552b99);if(!_0x1108d4)return!0x1;const _0x1da9af=_0x52056f['get'](_0x5d71e5),_0x4bb867=(_0x54382c=_0x3da177==null?void 0x0:_0x3da177['ranges'])!=null?_0x54382c:_0x1da9af[_0x314eca(0x122)]()['map'](_0x7424d=>_0x7424d[_0x314eca(0xd6)]),{unitId:_0x25e18d,subUnitId:_0xb52185}=_0x1108d4,_0x151059=[],_0x5c2b8b=[];_0x151059[_0x314eca(0x151)]({'id':y['id'],'params':{'unitId':_0x25e18d,'subUnitId':_0xb52185,'ranges':_0x4bb867,'isSingle':_0x3c04a0}});const _0xff5306=[],_0x156798={};return _0x4bb867[_0x314eca(0xc1)](_0x31249a=>{const _0x3f6e4f=_0x314eca;_0x591a4d[_0x3f6e4f(0xed)](_0x31249a,(_0x5a0272,_0x445b3e)=>{const _0x3da0c5=_0x3f6e4f,_0x285620=_0x5c4949['getSparkline'](_0x25e18d,_0xb52185,_0x5a0272,_0x445b3e);if(_0x285620){const _0x7ba665=_0x5c4949[_0x3da0c5(0xef)](_0x25e18d,_0xb52185,_0x285620);_0x7ba665&&(_0xff5306[_0x3da0c5(0x151)](_0x285620),_0x156798[_0x285620]={'config':_0x10e27a[_0x3da0c5(0x102)](_0x7ba665[_0x3da0c5(0x15e)]),'sparklines':_0x10e27a[_0x3da0c5(0x102)](_0x7ba665[_0x3da0c5(0x15a)]['clone']())});}});}),_0x5c2b8b[_0x314eca(0x151)]({'id':y['id'],'params':{'unitId':_0x25e18d,'subUnitId':_0xb52185,'groupIds':_0xff5306,'isSingle':!0x1}}),_0x5c2b8b['push']({'id':V['id'],'params':{'unitId':_0x25e18d,'subUnitId':_0xb52185,'sparklineConfigMap':_0x156798}}),_0x20f666(_0x151059,_0x71c2f8),_0x5de902['pushUndoRedo']({'unitID':_0x25e18d,'undoMutations':_0x5c2b8b,'redoMutations':_0x151059}),!0x0;}},Oe={'id':_0x488b34(0xdf),'type':_0x2d2221['MUTATION'],'handler':(_0x35ba06,_0x3530bf)=>{const _0x1ea62a=_0x488b34;if(!_0x3530bf)return!0x1;const {unitId:_0x56d60f,subUnitId:_0x152bcc,groupIds:_0x342090,config:_0x469766}=_0x3530bf,_0x4b2774=_0x35ba06[_0x1ea62a(0x10c)](x);return _0x342090[_0x1ea62a(0xc1)](_0x144ab1=>{const _0x79d161=_0x1ea62a,_0x4bfc9f=_0x4b2774[_0x79d161(0xef)](_0x56d60f,_0x152bcc,_0x144ab1);if(_0x4bfc9f){const _0x41af42={'config':Object[_0x79d161(0x152)]({},_0x4bfc9f[_0x79d161(0x15e)],_0x469766[_0x79d161(0x15e)]),'sparklines':new _0x15e796(_0x4bfc9f['sparklines']['clone']())};_0x4b2774['setSparkline'](_0x56d60f,_0x152bcc,[_0x144ab1],_0x41af42);}}),!0x0;}},xt={'id':'sheet.command.set-sparkline','type':_0x2d2221['COMMAND'],'handler':(_0x4b4f22,_0x46d3a7)=>{const _0x5a5b33=_0x488b34;var _0x3b269c,_0x3807a3,_0x364253,_0x5b89e1;if(!_0x46d3a7)return!0x1;const _0x170ad3=_0x4b4f22[_0x5a5b33(0x10c)](_0x30a353),_0x2308e8=_0x4b4f22[_0x5a5b33(0x10c)](_0x5d71e5),_0x17ff7f=_0x4b4f22[_0x5a5b33(0x10c)](x),_0x3b7a69=_0x4b4f22[_0x5a5b33(0x10c)](_0x52ff88),_0x53afe7=_0x4b4f22[_0x5a5b33(0x10c)](_0x51a4c4),_0x21867c=_0x4f4623(_0x3b7a69);if(!_0x21867c)return!0x1;const {unitId:_0x5a6f19,subUnitId:_0x5872b7}=_0x21867c,_0x212858=(_0x3b269c=_0x46d3a7==null?void 0x0:_0x46d3a7[_0x5a5b33(0x107)])!=null?_0x3b269c:_0x2308e8[_0x5a5b33(0x122)]()[_0x5a5b33(0x166)](_0x345130=>_0x345130['range']),_0x104651=(_0x3807a3=_0x17ff7f[_0x5a5b33(0xd7)]()[_0x5a5b33(0x129)][_0x5a5b33(0x10c)](_0x5a6f19))==null?void 0x0:_0x3807a3['get'](_0x5872b7),{isChangeDataSource:_0x98d512,config:_0xc1b0db,combine:_0x507e34,unCombine:_0x3a2e33}=_0x46d3a7;if(_0x507e34){const _0x1aae06=[],_0xe73c69=[];_0x1aae06[_0x5a5b33(0x151)]({'id':y['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'ranges':_0x212858,'isSingle':!0x0}});const _0x10de9e='g_'+_0x334988(0x6),_0x3c5a3d=new _0x15e796(),_0x58a26d=(_0x364253=_0x17ff7f[_0x5a5b33(0xd7)]()[_0x5a5b33(0xd5)][_0x5a5b33(0x10c)](_0x5a6f19))==null?void 0x0:_0x364253['get'](_0x5872b7),_0x57dc04=new Set([_0x10de9e]),_0x26375e={};return _0x212858[_0x5a5b33(0xc1)](_0x502add=>{const _0x5e7782=_0x5a5b33;var _0x27692d,_0x1ea00c;const {startRow:_0x21141e,endRow:_0x2a8b96,startColumn:_0xa4c57,endColumn:_0x348514}=_0x502add;for(let _0x1167a4=_0x21141e;_0x1167a4<=_0x2a8b96;_0x1167a4++)for(let _0x24c8c9=_0xa4c57;_0x24c8c9<=_0x348514;_0x24c8c9++){const _0x18ce97=(_0x27692d=_0x104651==null?void 0x0:_0x104651['matrix'][_0x5e7782(0x131)](_0x1167a4,_0x24c8c9))==null?void 0x0:_0x27692d[_0x5e7782(0x112)];if(_0x18ce97){_0x57dc04[_0x5e7782(0xe4)](_0x18ce97);const _0x1a25ae=_0x17ff7f[_0x5e7782(0xef)](_0x5a6f19,_0x5872b7,_0x18ce97);_0x1a25ae&&(_0x26375e[_0x18ce97]={'config':_0x10e27a[_0x5e7782(0x102)](_0x1a25ae[_0x5e7782(0x15e)]),'sparklines':_0x10e27a[_0x5e7782(0x102)](_0x1a25ae[_0x5e7782(0x15a)][_0x5e7782(0xb3)]())});const _0x27427d=(_0x1ea00c=_0x58a26d==null?void 0x0:_0x58a26d[_0x5e7782(0x10c)](_0x18ce97))==null?void 0x0:_0x1ea00c[_0x5e7782(0x15a)]['getValue'](_0x1167a4,_0x24c8c9);_0x27427d&&_0x3c5a3d[_0x5e7782(0xb0)](_0x1167a4,_0x24c8c9,_0x27427d);}}}),_0x1aae06[_0x5a5b33(0x151)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x10de9e]:{'config':_0x10e27a[_0x5a5b33(0x102)](_0xc1b0db['config']),'sparklines':_0x3c5a3d[_0x5a5b33(0x11c)]()}},'unitId':_0x5a6f19,'subUnitId':_0x5872b7}}),_0xe73c69[_0x5a5b33(0x151)]({'id':y['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'isSingle':!0x1,'groupIds':Array[_0x5a5b33(0xf5)](_0x57dc04)}}),_0xe73c69[_0x5a5b33(0x151)]({'id':V['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'sparklineConfigMap':_0x26375e}}),_0x20f666(_0x1aae06,_0x170ad3),_0x53afe7[_0x5a5b33(0xd4)]({'unitID':_0x5a6f19,'undoMutations':_0xe73c69,'redoMutations':_0x1aae06}),!0x0;}else{if(_0x3a2e33){const _0x105669=[],_0x4d87fa=[];_0x105669[_0x5a5b33(0x151)]({'id':y['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'ranges':_0x212858,'isSingle':!0x0}});const _0x2b4bdd=(_0x5b89e1=_0x17ff7f[_0x5a5b33(0xd7)]()['sparklineModel'][_0x5a5b33(0x10c)](_0x5a6f19))==null?void 0x0:_0x5b89e1['get'](_0x5872b7),_0x34fb5c={},_0x30186a=new Set(),_0x3d1d11={};return _0x212858[_0x5a5b33(0xc1)](_0x40f784=>{const _0x5910c4=_0x5a5b33;var _0x44edd5,_0x29ddf3;const {startRow:_0x49f9f3,endRow:_0x51e2e8,startColumn:_0x338b83,endColumn:_0x206262}=_0x40f784;for(let _0x32f57f=_0x49f9f3;_0x32f57f<=_0x51e2e8;_0x32f57f++)for(let _0x510a1e=_0x338b83;_0x510a1e<=_0x206262;_0x510a1e++){const _0x1d6db0=(_0x44edd5=_0x104651==null?void 0x0:_0x104651[_0x5910c4(0xfa)][_0x5910c4(0x131)](_0x32f57f,_0x510a1e))==null?void 0x0:_0x44edd5['groupId'];if(_0x1d6db0){const _0x3ca2fd=new _0x15e796(),_0x29a908='g_'+_0x334988(0x6);_0x30186a[_0x5910c4(0xe4)](_0x1d6db0),_0x30186a['add'](_0x29a908);const _0xe28f6f=_0x17ff7f[_0x5910c4(0xef)](_0x5a6f19,_0x5872b7,_0x1d6db0);_0xe28f6f&&(_0x3d1d11[_0x1d6db0]={'config':_0x10e27a['deepClone'](_0xe28f6f['config']),'sparklines':_0x10e27a[_0x5910c4(0x102)](_0xe28f6f[_0x5910c4(0x15a)][_0x5910c4(0xb3)]())});const _0x175dff=(_0x29ddf3=_0x2b4bdd==null?void 0x0:_0x2b4bdd['get'](_0x1d6db0))==null?void 0x0:_0x29ddf3[_0x5910c4(0x15a)]['getValue'](_0x32f57f,_0x510a1e);_0x175dff&&_0x3ca2fd[_0x5910c4(0xb0)](_0x32f57f,_0x510a1e,_0x175dff),_0x34fb5c[_0x29a908]={'sparklines':_0x3ca2fd['getMatrix'](),'config':_0x10e27a['deepClone'](_0xc1b0db[_0x5910c4(0x15e)])};}}}),_0x105669[_0x5a5b33(0x151)]({'id':V['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'sparklineConfigMap':_0x34fb5c}}),_0x4d87fa[_0x5a5b33(0x151)]({'id':y['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'isSingle':!0x1,'groupIds':Array['from'](_0x30186a)}}),_0x4d87fa['push']({'id':V['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'sparklineConfigMap':_0x3d1d11}}),_0x20f666(_0x105669,_0x170ad3),_0x53afe7[_0x5a5b33(0xd4)]({'unitID':_0x5a6f19,'undoMutations':_0x4d87fa,'redoMutations':_0x105669}),!0x0;}}if(_0x98d512){const _0x3990d0=_0x46d3a7[_0x5a5b33(0xe5)];if(!_0x3990d0)return!0x1;const {groupId:_0x50d285,sourceRanges:_0x39976e,targetRanges:_0x58b90a,resetType:_0x2a25f2,primary:_0x3698c6}=_0x3990d0,_0x58e48e=[],_0x1567ed=[];_0x58e48e[_0x5a5b33(0x151)]({'id':y['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'ranges':_0x212858,'isSingle':!0x1,'groupIds':[_0x50d285]}}),_0x1567ed[_0x5a5b33(0x151)]({'id':y['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'ranges':_0x212858,'isSingle':!0x1,'groupIds':[_0x50d285]}});let _0x480ff2;_0x2a25f2===_0x5a5b33(0x13a)?(_0x480ff2=new _0x15e796(_0xc1b0db[_0x5a5b33(0x15a)][_0x5a5b33(0xb3)]()),_0x480ff2[_0x5a5b33(0x12d)](_0x3698c6[_0x5a5b33(0xc8)],_0x3698c6[_0x5a5b33(0xc5)]),_0x480ff2[_0x5a5b33(0xb0)](_0x58b90a[0x0][_0x5a5b33(0xc6)],_0x58b90a[0x0]['startColumn'],_0x39976e[0x0])):_0x480ff2=Fe(_0x39976e,_0x58b90a);const _0x5b878b={'config':_0x10e27a[_0x5a5b33(0x102)](_0xc1b0db[_0x5a5b33(0x15e)]),'sparklines':_0x480ff2['getMatrix']()},_0x33e660={'config':_0x10e27a[_0x5a5b33(0x102)](_0xc1b0db[_0x5a5b33(0x15e)]),'sparklines':_0x10e27a[_0x5a5b33(0x102)](_0xc1b0db[_0x5a5b33(0x15a)][_0x5a5b33(0xb3)]())};_0x58e48e[_0x5a5b33(0x151)]({'id':V['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'sparklineConfigMap':{[_0x50d285]:_0x5b878b}}}),_0x1567ed[_0x5a5b33(0x151)]({'id':V['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'sparklineConfigMap':{[_0x50d285]:_0x33e660}}}),_0x20f666(_0x58e48e,_0x170ad3),_0x53afe7['pushUndoRedo']({'unitID':_0x5a6f19,'undoMutations':_0x1567ed,'redoMutations':_0x58e48e});}else{const _0x50fb4e=[],_0x11e382=[],_0x43fbf7=new Set(),_0x4d1274={};_0x212858[_0x5a5b33(0xc1)](_0x2d62d5=>{const _0x5188ba=_0x5a5b33;var _0x2af635;const {startRow:_0xe44910,endRow:_0x5a2133,startColumn:_0x4b0588,endColumn:_0x28a3e9}=_0x2d62d5;for(let _0x12d522=_0xe44910;_0x12d522<=_0x5a2133;_0x12d522++)for(let _0x1a1d29=_0x4b0588;_0x1a1d29<=_0x28a3e9;_0x1a1d29++){const _0x49e3f1=(_0x2af635=_0x104651==null?void 0x0:_0x104651[_0x5188ba(0xfa)][_0x5188ba(0x131)](_0x12d522,_0x1a1d29))==null?void 0x0:_0x2af635['groupId'];if(_0x49e3f1){_0x43fbf7[_0x5188ba(0xe4)](_0x49e3f1);const _0x4f2bff=_0x17ff7f[_0x5188ba(0xef)](_0x5a6f19,_0x5872b7,_0x49e3f1);_0x4f2bff&&(_0x4d1274[_0x49e3f1]={'config':_0x10e27a['deepClone'](_0x4f2bff[_0x5188ba(0x15e)]),'sparklines':_0x10e27a[_0x5188ba(0x102)](_0x4f2bff[_0x5188ba(0x15a)][_0x5188ba(0xb3)]())});}}}),_0x11e382[_0x5a5b33(0x151)]({'id':Oe['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'groupIds':Array['from'](_0x43fbf7),'config':{'config':_0x10e27a[_0x5a5b33(0x102)](_0xc1b0db[_0x5a5b33(0x15e)]),'sparklines':_0xc1b0db[_0x5a5b33(0x15a)][_0x5a5b33(0x11c)]()}}}),_0x50fb4e[_0x5a5b33(0x151)]({'id':y['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'isSingle':!0x1,'groupIds':Array[_0x5a5b33(0xf5)](_0x43fbf7)}}),_0x50fb4e[_0x5a5b33(0x151)]({'id':V['id'],'params':{'unitId':_0x5a6f19,'subUnitId':_0x5872b7,'sparklineConfigMap':_0x4d1274}}),_0x20f666(_0x11e382,_0x170ad3),_0x53afe7[_0x5a5b33(0xd4)]({'unitID':_0x5a6f19,'undoMutations':_0x50fb4e,'redoMutations':_0x11e382});}return!0x0;}};var Ut=Object[_0x488b34(0x11a)],Pt=(_0x44ad08,_0x2680a3,_0xee5d82,_0x19ba3a)=>{const _0x52a28d=_0x488b34;for(var _0x1173be=_0x19ba3a>0x1?void 0x0:_0x19ba3a?Ut(_0x2680a3,_0xee5d82):_0x2680a3,_0x3e258a=_0x44ad08[_0x52a28d(0x134)]-0x1,_0x54e6d4;_0x3e258a>=0x0;_0x3e258a--)(_0x54e6d4=_0x44ad08[_0x3e258a])&&(_0x1173be=_0x54e6d4(_0x1173be)||_0x1173be);return _0x1173be;},fe=(_0x3cece8,_0xa9f1f0)=>(_0x251c89,_0x50a958)=>_0xa9f1f0(_0x251c89,_0x50a958,_0x3cece8);let Se=class extends _0x50a864{constructor(_0x42167c,_0x4cfe2c,_0x1f3881,_0x13903c){const _0x4ca9f0=_0x488b34;super(),this[_0x4ca9f0(0x12e)]=_0x42167c,this[_0x4ca9f0(0x167)]=_0x4cfe2c,this[_0x4ca9f0(0x111)]=_0x1f3881,this[_0x4ca9f0(0x13d)]=_0x13903c,this[_0x4ca9f0(0xc4)]();}['_initClearWithSparkline'](){const _0x39c9c3=_0x488b34;this[_0x39c9c3(0x13e)](this[_0x39c9c3(0x167)]['interceptCommand']({'getMutations':_0x3adc29=>{const _0x5d5653=_0x39c9c3,_0x5ce7f4=[],_0x39d16d=[];if(_0x3adc29['id']===_0x2fbb31['id']){const _0x383369=_0x4f4623(this['_univerInstanceService']);if(!_0x383369)return{'redos':_0x5ce7f4,'undos':_0x39d16d};const {unitId:_0x4c8b08,subUnitId:_0x31899e,worksheet:_0x25dea5}=_0x383369,_0x5ed889=this[_0x5d5653(0x13d)][_0x5d5653(0x122)]()[_0x5d5653(0x166)](_0x26b990=>_0x26b990[_0x5d5653(0xd6)]),_0xa5915f=new Set(),_0xa1beb2={},_0x3d6579={};_0x5ed889['forEach'](_0x2a0389=>{_0x591a4d['foreach'](_0x2a0389,(_0x4b17ed,_0x46972e)=>{const _0xc95add=_0x1142,_0x5eadc5=this[_0xc95add(0x12e)][_0xc95add(0x133)](_0x4c8b08,_0x31899e,_0x4b17ed,_0x46972e);if(_0x5eadc5&&!_0xa5915f[_0xc95add(0xee)](_0x5eadc5)){const _0x4ea4c9=this[_0xc95add(0x12e)][_0xc95add(0xef)](_0x4c8b08,_0x31899e,_0x5eadc5);_0x4ea4c9&&(_0xa5915f[_0xc95add(0xe4)](_0x5eadc5),_0xa1beb2[_0x5eadc5]={'config':_0x10e27a[_0xc95add(0x102)](_0x4ea4c9[_0xc95add(0x15e)]),'sparklines':_0x10e27a['deepClone'](_0x4ea4c9[_0xc95add(0x15a)][_0xc95add(0xb3)]())},_0x3d6579[_0x5eadc5]={'config':_0x10e27a[_0xc95add(0x102)](_0x4ea4c9['config']),'sparklines':_0x10e27a[_0xc95add(0x102)](_0x4ea4c9[_0xc95add(0x15a)]['clone']())});}});}),Object[_0x5d5653(0xfc)](_0x3d6579)['forEach'](_0x754dcf=>{const _0x3d5eba=_0x5d5653,_0x529180=_0x754dcf['sparklines'];new _0x15e796(_0x529180)[_0x3d5eba(0x141)]((_0x2567b5,_0x60c7fe,_0x30b0c9)=>{const _0x22ab58=_0x3d5eba;_0x5ed889['some'](_0x33e379=>_0x39ebf7[_0x22ab58(0x148)](_0x33e379,_0x2c12ac(_0x2567b5,_0x60c7fe)))&&delete _0x529180[_0x2567b5][_0x60c7fe];});}),_0x5ce7f4[_0x5d5653(0x151)]({'id':y['id'],'params':{'unitId':_0x4c8b08,'subUnitId':_0x31899e,'groupIds':Array['from'](_0xa5915f),'isSingle':!0x1}}),_0x5ce7f4[_0x5d5653(0x151)]({'id':V['id'],'params':{'unitId':_0x4c8b08,'subUnitId':_0x31899e,'sparklineConfigMap':_0x3d6579}}),_0x39d16d[_0x5d5653(0x151)]({'id':y['id'],'params':{'unitId':_0x4c8b08,'subUnitId':_0x31899e,'groupIds':Array['from'](_0xa5915f),'isSingle':!0x1}}),_0x39d16d[_0x5d5653(0x151)]({'id':V['id'],'params':{'unitId':_0x4c8b08,'subUnitId':_0x31899e,'sparklineConfigMap':_0xa1beb2}});}return{'redos':_0x5ce7f4,'undos':_0x39d16d};}}));}};Se=Pt([fe(0x0,_0x461bd9(x)),fe(0x1,_0x461bd9(_0x5b6037)),fe(0x2,_0x461bd9(_0x52ff88)),fe(0x3,_0x461bd9(_0x5d71e5))],Se);var Tt=Object[_0x488b34(0x11a)],$t=(_0x250aec,_0x1ee882,_0x359582,_0x9b6fb7)=>{const _0x2c1704=_0x488b34;for(var _0xd8695a=_0x9b6fb7>0x1?void 0x0:_0x9b6fb7?Tt(_0x1ee882,_0x359582):_0x1ee882,_0xa55267=_0x250aec[_0x2c1704(0x134)]-0x1,_0x16b6c0;_0xa55267>=0x0;_0xa55267--)(_0x16b6c0=_0x250aec[_0xa55267])&&(_0xd8695a=_0x16b6c0(_0xd8695a)||_0xd8695a);return _0xd8695a;},Ge=(_0x3e850a,_0x531c80)=>(_0x39f95f,_0x1e661e)=>_0x531c80(_0x39f95f,_0x1e661e,_0x3e850a);let ke=class extends _0x50a864{constructor(_0x34ee56,_0x43ab67){const _0x131e29=_0x488b34;super(),this['_sheetInterceptorService']=_0x34ee56,this[_0x131e29(0x12e)]=_0x43ab67,this[_0x131e29(0x100)]();}[_0x488b34(0x100)](){const _0x4741a3=_0x488b34;this[_0x4741a3(0x13e)](this['_sheetInterceptorService'][_0x4741a3(0xf4)]({'getMutations':_0x559417=>{const _0x15b444=_0x4741a3,_0x2e53ff=[],_0x3e0689=[];if(_0x559417['id']===_0x93143b['id']){const _0x53b03c=_0x559417[_0x15b444(0xb6)];if(!_0x53b03c)return{'redos':_0x2e53ff,'undos':_0x3e0689};const {unitId:_0x34bfb7,subUnitId:_0x348878,targetSubUnitId:_0xfd4c20}=_0x53b03c;if(!_0x34bfb7||!_0x348878||!_0xfd4c20)return{'redos':_0x2e53ff,'undos':_0x3e0689};const _0x561841=new Set(),_0x187be4={},_0x4d02a4=this['_sparklineDataSourceModel'][_0x15b444(0x114)](_0x34bfb7,_0x348878);if(!_0x4d02a4)return{'redos':_0x2e53ff,'undos':_0x3e0689};for(const [_0x49fac2,_0x251f42]of _0x4d02a4){const _0x257ee2='g_'+_0x334988(0x6);_0x561841[_0x15b444(0xe4)](_0x49fac2),_0x187be4[_0x257ee2]={'config':_0x10e27a[_0x15b444(0x102)](_0x251f42[_0x15b444(0x15e)]),'sparklines':_0x10e27a[_0x15b444(0x102)](_0x251f42['sparklines']['clone']())};}_0x561841[_0x15b444(0x137)]&&(_0x3e0689[_0x15b444(0x151)]({'id':y['id'],'params':{'unitId':_0x34bfb7,'subUnitId':_0xfd4c20,'groupIds':Array['from'](_0x561841),'isSingle':!0x1}}),_0x2e53ff['push']({'id':V['id'],'params':{'unitId':_0x34bfb7,'subUnitId':_0xfd4c20,'sparklineConfigMap':_0x187be4}}));}return{'redos':_0x2e53ff,'undos':_0x3e0689};}}));}};ke=$t([Ge(0x0,_0x461bd9(_0x5b6037)),Ge(0x1,_0x461bd9(x))],ke);var jt=Object[_0x488b34(0x11a)],Lt=(_0x5efc81,_0x33127d,_0x2cfe65,_0x4fb91e)=>{const _0x3f186e=_0x488b34;for(var _0x5b85b7=_0x4fb91e>0x1?void 0x0:_0x4fb91e?jt(_0x33127d,_0x2cfe65):_0x33127d,_0x197b12=_0x5efc81[_0x3f186e(0x134)]-0x1,_0x34f773;_0x197b12>=0x0;_0x197b12--)(_0x34f773=_0x5efc81[_0x197b12])&&(_0x5b85b7=_0x34f773(_0x5b85b7)||_0x5b85b7);return _0x5b85b7;},Ie=(_0x3b2f48,_0x48486a)=>(_0x1b3a00,_0x591faa)=>_0x48486a(_0x1b3a00,_0x591faa,_0x3b2f48);let me=class extends _0x50a864{constructor(_0x4a8828,_0x304dd1,_0x4af676){const _0x3c75bc=_0x488b34;super(),this['_commandService']=_0x4a8828,this[_0x3c75bc(0x12e)]=_0x304dd1,this[_0x3c75bc(0x10a)]=_0x4af676,this[_0x3c75bc(0xe8)](),this[_0x3c75bc(0x103)]();}[_0x488b34(0xe8)](){const _0x24e4f8=_0x488b34;this['disposeWithMe'](this[_0x24e4f8(0xcc)][_0x24e4f8(0xe0)](_0x29bb3b=>{const _0x4b1325=_0x24e4f8;if(_0x29bb3b['id']===_0x5b76cf['id']){const _0x229c80=_0x29bb3b[_0x4b1325(0xb6)],{cellValue:_0x1bbb79,unitId:_0x49a4fd,subUnitId:_0x1aaea6}=_0x229c80,_0x341bd4=new _0x15e796(_0x1bbb79),_0x4c98b6=new Set(),_0x5efe77=this[_0x4b1325(0x12e)][_0x4b1325(0x114)](_0x49a4fd,_0x1aaea6);if(!_0x5efe77)return;const _0x383a7e=Array[_0x4b1325(0xf5)](_0x5efe77);_0x341bd4[_0x4b1325(0x141)]((_0x1747c0,_0x1483d7,_0x454f02)=>{const _0x13050f=_0x4b1325,_0x4563dc=_0x2c12ac(_0x1747c0,_0x1483d7);for(let _0xe7f076=0x0;_0xe7f076<_0x383a7e[_0x13050f(0x134)];_0xe7f076++){const [_0x4ebe44,_0x5221ca]=_0x383a7e[_0xe7f076],_0x57156f=_0x4c98b6[_0x13050f(0xee)](_0x4ebe44);_0x57156f||_0x5221ca[_0x13050f(0x15a)][_0x13050f(0x141)]((_0x5c83d7,_0x326f48,_0x556866)=>{const _0x4e10a5=_0x13050f,_0xe90f4c=_0x556866;if(_0xe90f4c&&!_0x57156f&&_0x39ebf7[_0x4e10a5(0x148)](_0x4563dc,_0xe90f4c))return _0x4c98b6[_0x4e10a5(0xe4)](_0x4ebe44),!0x0;});}}),_0x4c98b6[_0x4b1325(0xc1)](_0x2c5c32=>{const _0xd6ac8a=_0x4b1325;this['_sparklineDataSourceModel'][_0xd6ac8a(0xf7)](_0x49a4fd,_0x1aaea6,_0x2c5c32),this[_0xd6ac8a(0x12e)][_0xd6ac8a(0x14e)](_0x49a4fd,_0x1aaea6,_0x2c5c32);});}else{if(_0x29bb3b['id']===_0x348cbc['id']){const _0x54f55d=_0x29bb3b[_0x4b1325(0xb6)],{range:_0x7d7d9a,unitId:_0x3ece63,subUnitId:_0x5eebff}=_0x54f55d,_0x381621=new Set(),_0x4b495b=this[_0x4b1325(0x12e)][_0x4b1325(0x114)](_0x3ece63,_0x5eebff);if(!_0x4b495b)return;const _0x209faa=Array['from'](_0x4b495b);for(let _0x1f702f=0x0;_0x1f702f<_0x209faa[_0x4b1325(0x134)];_0x1f702f++){const [_0x485cea,_0x1710ef]=_0x209faa[_0x1f702f],_0x15cb9c=_0x381621[_0x4b1325(0xee)](_0x485cea);_0x15cb9c||_0x1710ef[_0x4b1325(0x15a)][_0x4b1325(0x141)]((_0x7a7aaf,_0x714c6e,_0x235411)=>{const _0x559669=_0x4b1325,_0x29d792=_0x235411;if(_0x29d792&&!_0x15cb9c&&_0x39ebf7[_0x559669(0x148)](_0x7d7d9a,_0x29d792))return _0x381621[_0x559669(0xe4)](_0x485cea),!0x0;});}_0x381621[_0x4b1325(0xc1)](_0x27a0c2=>{const _0x264e28=_0x4b1325;this['_sparklineDataSourceModel'][_0x264e28(0xf7)](_0x3ece63,_0x5eebff,_0x27a0c2),this['_sparklineDataSourceModel'][_0x264e28(0x14e)](_0x3ece63,_0x5eebff,_0x27a0c2);});}}}));}[_0x488b34(0x103)](){const _0x51d042=_0x488b34;this[_0x51d042(0x13e)](this[_0x51d042(0x10a)][_0x51d042(0x132)][_0x51d042(0x130)](_0x418f56=>{const _0x22dc82=_0x51d042,{unitId:_0x58ef46,subUnitId:_0x39c384,ranges:_0x4da928}=_0x418f56,_0x5bdf39=this[_0x22dc82(0x12e)]['getSubUnitSparkline'](_0x58ef46,_0x39c384);if(!_0x5bdf39)return;const _0x1d1238=Array[_0x22dc82(0xf5)](_0x5bdf39),_0x10edcd=new Set();for(let _0x40c848=0x0;_0x40c848<_0x1d1238[_0x22dc82(0x134)];_0x40c848++){const [_0x3f7dcd,_0x90532f]=_0x1d1238[_0x40c848],_0x569226=_0x10edcd[_0x22dc82(0xee)](_0x3f7dcd);_0x569226||_0x90532f[_0x22dc82(0x15a)]['forValue']((_0x46f83d,_0x298e18,_0x274766)=>{const _0x38c3eb=_0x22dc82,_0x2962bf=_0x274766;if(_0x2962bf&&!_0x569226){for(const _0x29a83b of _0x4da928)if(_0x39ebf7[_0x38c3eb(0x148)](_0x29a83b,_0x2962bf)){_0x10edcd[_0x38c3eb(0xe4)](_0x3f7dcd);break;}}});}_0x10edcd[_0x22dc82(0xc1)](_0xdb1832=>{const _0x46357f=_0x22dc82;this[_0x46357f(0x12e)][_0x46357f(0xf7)](_0x58ef46,_0x39c384,_0xdb1832),this[_0x46357f(0x12e)][_0x46357f(0x14e)](_0x58ef46,_0x39c384,_0xdb1832);});}));}};me=Lt([Ie(0x0,_0x461bd9(_0x30a353)),Ie(0x1,_0x461bd9(x)),Ie(0x2,_0x461bd9(_0x386b3a))],me);var Gt=Object[_0x488b34(0x11a)],Wt=(_0x20807f,_0x580838,_0xed2185,_0x363cc4)=>{for(var _0x487811=_0x363cc4>0x1?void 0x0:_0x363cc4?Gt(_0x580838,_0xed2185):_0x580838,_0x17f62b=_0x20807f['length']-0x1,_0x596225;_0x17f62b>=0x0;_0x17f62b--)(_0x596225=_0x20807f[_0x17f62b])&&(_0x487811=_0x596225(_0x487811)||_0x487811);return _0x487811;},We=(_0x23c855,_0x3d6644)=>(_0x82c234,_0x16db20)=>_0x3d6644(_0x82c234,_0x16db20,_0x23c855);let Ce=class extends _0x50a864{constructor(_0x5408ca,_0x306246){const _0x3f8865=_0x488b34;super(),this['_commandService']=_0x5408ca,this[_0x3f8865(0x12e)]=_0x306246,this[_0x3f8865(0xb2)]();}[_0x488b34(0xb2)](){const _0x53c7bd=_0x488b34;this[_0x53c7bd(0xcc)][_0x53c7bd(0xe0)](_0x96b87a=>{const _0xe12d4=_0x53c7bd;if(_0x96b87a['id']===_0x1626a7['id']||_0x96b87a['id']===_0x141b84['id']||_0x96b87a['id']===_0x13f7a4['id']||_0x96b87a['id']===_0x44ff80['id']){const _0x5271e4=_0x96b87a['params'],{ranges:_0x523b50,unitId:_0x21087b,subUnitId:_0x755a3f}=_0x5271e4,_0x424b79=new Set(),_0x387bc5=this[_0xe12d4(0x12e)][_0xe12d4(0x114)](_0x21087b,_0x755a3f);if(!_0x387bc5)return;const _0x327b03=Array[_0xe12d4(0xf5)](_0x387bc5);_0x523b50[_0xe12d4(0xc1)](_0x5ac8db=>{_0x591a4d['foreach'](_0x5ac8db,(_0x164a4f,_0x440630)=>{const _0x2fd7d2=_0x1142,_0xbdc128=_0x2c12ac(_0x164a4f,_0x440630);for(let _0x41300e=0x0;_0x41300e<_0x327b03['length'];_0x41300e++){const [_0x56ccb3,_0x5a51c7]=_0x327b03[_0x41300e],_0x2110e6=_0x424b79['has'](_0x56ccb3);_0x2110e6||_0x5a51c7[_0x2fd7d2(0x15a)][_0x2fd7d2(0x141)]((_0x2a92d4,_0xb54860,_0x5ba1c3)=>{const _0x490a4d=_0x2fd7d2,_0xd3171a=_0x5ba1c3;if(_0xd3171a&&!_0x2110e6&&_0x39ebf7['intersects'](_0xbdc128,_0xd3171a))return _0x424b79[_0x490a4d(0xe4)](_0x56ccb3),!0x0;});}});}),_0x424b79['forEach'](_0x2f616f=>{const _0xa81013=_0xe12d4;this[_0xa81013(0x12e)]['clearSparklineCache'](_0x21087b,_0x755a3f,_0x2f616f),this[_0xa81013(0x12e)][_0xa81013(0x14e)](_0x21087b,_0x755a3f,_0x2f616f);});}});}};Ce=Wt([We(0x0,_0x461bd9(_0x30a353)),We(0x1,_0x461bd9(x))],Ce);function _0xec55(){const _0x42706c=['disposableCollection','LINE_CHART','sheet.mutation.set-sparkline','onCommandExecuted','connect_with_line','_ensureAnchorMatrix','setAlpha','add','changeDataSourceInfo','BOOLEAN','registerRefRange','_initDataChangeListener','subUnitId','removeColumns','SPECIALTY','_getRefRangeMutationsByDeleteCols','foreach','has','getSparklineById','MAX_SAFE_INTEGER','_getRefRangeMutationsByDeleteRows','1182576nJaRPY','number','interceptCommand','from','BAR_CHART','clearSparklineCache','reBuildAnchorCache','firstPoint','matrix','SOFT','values','endRow','742IuibSf','registerCommand','_initCopySheetWithSparkline','_updateConfig$','deepClone','_initExclusiveRangeChange','defineProperty','pluginName','dispose','ranges','rgb(252,117,60)','lastPoint','_exclusiveRangeService','setSparkline','get','getCurrentUnitForType','CONNECT_WITH_LINE','startColumn','u-spacing','_univerInstanceService','groupId','getCellRaw','getSubUnitSparkline','_sparklineModel','SPACING','10013283RUsiUY','symbol','rgb(46,187,122)','getOwnPropertyDescriptor','getColVisible','getMatrix','custom','fresh','min','removePartSparkline','column','getCurrentSelections','delete','_refRangeService','extremumMax','sheet.command.add-sparkline','next','getSizeOf','sparklineAnchorMap','PROFIT_AND_LOSS_CHART','734vSmzTG','fromJSON','realDeleteValue','_sparklineDataSourceModel','removeRows','subscribe','getValue','exclusiveRangesChange$','getSparkline','length','endColumn','_initDependencies','size','rgb(30,177,189)','stringify','item','576177ChmNgj','_initSnapshot','_sheetSelectionService','disposeWithMe','getRowVisible','FRESH','forValue','moveRows','FORCE_STRING','CUSTOM_EXTREMUM','STANDARD','keys','zero_value','intersects','specialty','_sparklineAnchorMap','_injector','standard','deleteUnit','updateSparklineExtraNum','_initCorrectRangeWithSparkline','_resourceManagerService','push','assign','_onRefRangeChange','ZERO_VALUE','COMMAND','entries','containHiddenCells','_initRegisterCommand','CUSTOM','sparklines','67630GEJnzN','emptyShowAs','toRgbString','config','1532750XNiQRp','row','remove','3459KkMXHd','_ensureConfigMap','extremumMin','PIE_CHART','map','_sheetInterceptorService','refRangeHandle','GROUP_EXTREMUM','markersPoint','_initMergeWithSparkline','NORMAL','setValue','_config','_initHideRowColWithSparkline','clone','rgb(54,78,244)','themeType','params','UNIVER_SHEET','moveColumns','NUMBER','SELF_EXTREMUM','rgb(236,100,169)','198xhAoeQ','MIN_SAFE_INTEGER','sheet.mutation.remove-sparkline','addSparkline','hasValue','forEach','type','nonNumShowAs','_initClearWithSparkline','actualColumn','startRow','seriesColor','actualRow','highPoint','registerPluginResource','14368wUnVMx','_commandService','sheet.command.remove-sparkline','sheet.mutation.add-sparkline','set','removeSparkline','rgb(244,104,249)','every','toJSON','pushUndoRedo','sparklineModel','range','getSparklineCache','STRING','MUTATION','316TKWwpY','rgb(248,190,21)','DISTINCTIVE'];_0xec55=function(){return _0x42706c;};return _0xec55();}var Bt=Object[_0x488b34(0x11a)],Ht=(_0x2b4f52,_0x1b80f6,_0x3e09b6,_0x425f42)=>{const _0x3312d0=_0x488b34;for(var _0x1f9aad=_0x425f42>0x1?void 0x0:_0x425f42?Bt(_0x1b80f6,_0x3e09b6):_0x1b80f6,_0x167f48=_0x2b4f52[_0x3312d0(0x134)]-0x1,_0x15682f;_0x167f48>=0x0;_0x167f48--)(_0x15682f=_0x2b4f52[_0x167f48])&&(_0x1f9aad=_0x15682f(_0x1f9aad)||_0x1f9aad);return _0x1f9aad;},be=(_0x2fd335,_0x3d1dc5)=>(_0x5d7b27,_0x1fd0c2)=>_0x3d1dc5(_0x5d7b27,_0x1fd0c2,_0x2fd335);let _e=class extends _0x50a864{constructor(_0x89d5a7,_0x357f43,_0x431dbe){const _0x21864c=_0x488b34;super(),this['_commandService']=_0x89d5a7,this[_0x21864c(0x167)]=_0x357f43,this[_0x21864c(0x12e)]=_0x431dbe,this['_initMergeWithSparkline']();}[_0x488b34(0xae)](){const _0x4c54b8=_0x488b34;this[_0x4c54b8(0x13e)](this[_0x4c54b8(0x167)][_0x4c54b8(0xf4)]({'getMutations':_0x22f3ef=>{const _0x244942=_0x4c54b8,_0x5a248f=[],_0x5da242=[];if(_0x22f3ef['id']===_0x499036['id']){const _0x1734ac=_0x22f3ef[_0x244942(0xb6)];if(!_0x1734ac)return{'redos':_0x5a248f,'undos':_0x5da242};const {unitId:_0x4f5c23,subUnitId:_0x422939,ranges:_0x47b561}=_0x1734ac,_0x487693=this[_0x244942(0x12e)][_0x244942(0x114)](_0x4f5c23,_0x422939);if(!_0x487693)return{'redos':_0x5a248f,'undos':_0x5da242};const _0x36fbf8={},_0x12fbd4={},_0xe9af37=new Set();_0x47b561['forEach'](_0x46e757=>{const _0x3ef580=_0x244942,_0x13e875=_0x46e757[_0x3ef580(0xc6)],_0x343a8e=_0x46e757['startColumn'];_0x591a4d[_0x3ef580(0xed)](_0x46e757,(_0x45b370,_0x2a4f48)=>{const _0xe648f=_0x3ef580,_0x264a72=this[_0xe648f(0x12e)][_0xe648f(0x133)](_0x4f5c23,_0x422939,_0x45b370,_0x2a4f48);if(_0x264a72&&!(_0x45b370===_0x13e875&&_0x2a4f48===_0x343a8e)){const _0x1fe0b7=this[_0xe648f(0x12e)][_0xe648f(0xef)](_0x4f5c23,_0x422939,_0x264a72);if(_0x1fe0b7){_0xe9af37['add'](_0x264a72);let _0x2d20a0=_0x36fbf8[_0x264a72];_0x2d20a0||(_0x2d20a0={'config':_0x10e27a[_0xe648f(0x102)](_0x1fe0b7['config']),'sparklines':new _0x15e796(_0x1fe0b7['sparklines'][_0xe648f(0xb3)]())},_0x36fbf8[_0x264a72]=_0x2d20a0),_0x2d20a0['sparklines']['realDeleteValue'](_0x45b370,_0x2a4f48),_0x12fbd4[_0x264a72]={'config':_0x10e27a[_0xe648f(0x102)](_0x1fe0b7[_0xe648f(0x15e)]),'sparklines':_0x10e27a[_0xe648f(0x102)](_0x1fe0b7[_0xe648f(0x15a)][_0xe648f(0xb3)]())};}}});});for(const [_0x31b0b3,_0xffc937]of _0x487693){const _0x5c4ebe=_0xffc937['sparklines'];_0x5c4ebe[_0x244942(0x141)]((_0x19b9ff,_0x4d8f40,_0x34be9e)=>{const _0x186645=_0x244942;for(let _0x594838=0x0;_0x594838<_0x47b561['length'];_0x594838++){const _0x2e4470=_0x47b561[_0x594838];if(_0x39ebf7['contains'](_0x2e4470,_0x34be9e)){_0xe9af37['add'](_0x31b0b3);let _0x33a7ea=_0x36fbf8[_0x31b0b3];_0x33a7ea||(_0x33a7ea={'config':_0x10e27a[_0x186645(0x102)](_0xffc937['config']),'sparklines':new _0x15e796(_0x5c4ebe[_0x186645(0xb3)]())},_0x36fbf8[_0x31b0b3]=_0x33a7ea),_0x33a7ea[_0x186645(0x15a)]['realDeleteValue'](_0x19b9ff,_0x4d8f40),_0x12fbd4[_0x31b0b3]||(_0x12fbd4[_0x31b0b3]={'config':_0x10e27a[_0x186645(0x102)](_0xffc937['config']),'sparklines':_0x10e27a[_0x186645(0x102)](_0x5c4ebe[_0x186645(0xb3)]())});}}});}const _0x24be55={};Object[_0x244942(0x156)](_0x36fbf8)[_0x244942(0xc1)](([_0x475b23,_0x4491cd])=>{const _0x39d80f=_0x244942;_0x4491cd['sparklines']['getSizeOf']()&&(_0x24be55[_0x475b23]={'config':_0x4491cd[_0x39d80f(0x15e)],'sparklines':_0x4491cd[_0x39d80f(0x15a)][_0x39d80f(0xb3)]()});}),_0xe9af37['size']&&(_0x5a248f['push']({'id':y['id'],'params':{'unitId':_0x4f5c23,'subUnitId':_0x422939,'groupIds':Array[_0x244942(0xf5)](_0xe9af37),'isSingle':!0x1}}),_0x5da242[_0x244942(0x151)]({'id':y['id'],'params':{'unitId':_0x4f5c23,'subUnitId':_0x422939,'groupIds':Array[_0x244942(0xf5)](_0xe9af37),'isSingle':!0x1}}),_0x5a248f[_0x244942(0x151)]({'id':V['id'],'params':{'unitId':_0x4f5c23,'subUnitId':_0x422939,'sparklineConfigMap':_0x24be55}}),_0x5da242[_0x244942(0x151)]({'id':V['id'],'params':{'unitId':_0x4f5c23,'subUnitId':_0x422939,'sparklineConfigMap':_0x12fbd4}}));}return{'redos':_0x5a248f,'undos':_0x5da242};}}));}};_e=Ht([be(0x0,_0x461bd9(_0x30a353)),be(0x1,_0x461bd9(_0x5b6037)),be(0x2,_0x461bd9(x))],_e);var Ft=Object[_0x488b34(0x11a)],Kt=(_0x41ffb1,_0xf5014d,_0x3836fc,_0x4e9722)=>{const _0x1cef94=_0x488b34;for(var _0x132336=_0x4e9722>0x1?void 0x0:_0x4e9722?Ft(_0xf5014d,_0x3836fc):_0xf5014d,_0x3b2702=_0x41ffb1[_0x1cef94(0x134)]-0x1,_0xa6821a;_0x3b2702>=0x0;_0x3b2702--)(_0xa6821a=_0x41ffb1[_0x3b2702])&&(_0x132336=_0xa6821a(_0x132336)||_0x132336);return _0x132336;},ge=(_0x547e75,_0x57ca0a)=>(_0x49de52,_0x19202c)=>_0x57ca0a(_0x49de52,_0x19202c,_0x547e75);let Me=class extends _0x50a864{constructor(_0x4c749,_0x1775e6,_0x3b9b07,_0x39ed15){const _0x51e366=_0x488b34;super(),se(this,_0x51e366(0xdd),new _0x7d9adb()),(this[_0x51e366(0xcc)]=_0x4c749,this[_0x51e366(0x124)]=_0x1775e6,this[_0x51e366(0x111)]=_0x3b9b07,this[_0x51e366(0x12e)]=_0x39ed15,this[_0x51e366(0x153)](),this[_0x51e366(0x14f)]());}[_0x488b34(0x153)](){const _0x2c6864=_0x488b34,_0x24ffe6=(_0x2ffaf3,_0x143ee8)=>{const _0x18f11d=_0x1142,_0x580b6e=this['_univerInstanceService'][_0x18f11d(0x10d)](_0x190875[_0x18f11d(0xb7)]);if(!_0x580b6e||!(_0x580b6e==null?void 0x0:_0x580b6e['getSheetBySheetId'](_0x143ee8)))return;this[_0x18f11d(0xdd)][_0x18f11d(0x106)]();const _0x4db126=_0x25b2d0=>this[_0x18f11d(0x168)](_0x25b2d0,_0x2ffaf3,_0x143ee8),_0x26c402=[],_0x4d5bba=this[_0x18f11d(0x12e)][_0x18f11d(0x114)](_0x2ffaf3,_0x143ee8);if(_0x4d5bba){for(const [_0x54d200,_0x13d3c0]of _0x4d5bba)_0x13d3c0[_0x18f11d(0x15a)][_0x18f11d(0x141)]((_0x5bfb2c,_0x2fa456,_0x585894)=>{const _0x4612b4=_0x18f11d,_0x142451=_0x2c12ac(_0x5bfb2c,_0x2fa456);_0x26c402[_0x4612b4(0x151)](_0x142451);});_0x26c402[_0x18f11d(0xc1)](_0x100204=>{const _0x45fa48=_0x18f11d;this['disposableCollection']['add'](this[_0x45fa48(0x124)][_0x45fa48(0xe7)](_0x100204,_0x4db126,_0x2ffaf3,_0x143ee8));});}};this['disposeWithMe'](this['_commandService'][_0x2c6864(0xe0)](_0x29a6c4=>{const _0x4287ba=_0x2c6864;if(_0x29a6c4['id']===_0x15bb63['id']){const _0xa3a57=_0x29a6c4['params'],_0x1964b7=_0xa3a57[_0x4287ba(0xe9)],_0x30b6e0=_0xa3a57['unitId'];if(!_0x1964b7||!_0x30b6e0)return;_0x24ffe6(_0x30b6e0,_0x1964b7);}if(_0x29a6c4['id']===Oe['id']||_0x29a6c4['id']===V['id']){const _0x2261eb=_0x29a6c4['params'],_0x2417e5=_0x2261eb['subUnitId'],_0x340e5d=_0x2261eb['unitId'];if(!_0x2417e5||!_0x340e5d)return;_0x24ffe6(_0x340e5d,_0x2417e5);}}));}[_0x488b34(0x168)](_0x4e45ae,_0x1a02a1,_0x4a40e7){const _0x44537f=_0x488b34;switch(_0x4e45ae['id']){case _0x10fb89['id']:return this[_0x44537f(0xec)](_0x4e45ae['params'],_0x1a02a1,_0x4a40e7);case _0x53a49c['id']:return this[_0x44537f(0xf1)](_0x4e45ae[_0x44537f(0xb6)],_0x1a02a1,_0x4a40e7);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x35fe84,_0x5d2dd2,_0x62444){const _0x3332df=_0x488b34;var _0x450056,_0x5b6bab;const {range:_0x118f5c}=_0x35fe84,_0xfe1b6=new Set(),_0x15b09e={},_0x30d368={},_0x31bedc=[],_0x2e22a1=[],_0x4e7d90=[],_0x3f9bc5=[];if(!_0x4f4623(this[_0x3332df(0x111)],{'unitId':_0x5d2dd2,'subUnitId':_0x62444}))return{'redos':_0x2e22a1,'undos':_0x31bedc};const _0x2accee=this['_sparklineDataSourceModel'][_0x3332df(0x114)](_0x5d2dd2,_0x62444);if(!_0x2accee)return{'redos':_0x2e22a1,'undos':_0x31bedc};if(!((_0x5b6bab=(_0x450056=this[_0x3332df(0x12e)][_0x3332df(0xd7)]()['sparklineAnchorMap'][_0x3332df(0x10c)](_0x5d2dd2))==null?void 0x0:_0x450056[_0x3332df(0x10c)](_0x62444))==null?void 0x0:_0x5b6bab[_0x3332df(0xfa)]))return{'redos':_0x2e22a1,'undos':_0x31bedc};for(const [_0x2da61e,_0x59a08f]of _0x2accee){const _0xf3ef5d=_0x59a08f[_0x3332df(0x15a)];_0xf3ef5d['forValue']((_0x386f1a,_0x4ed481,_0x3f02a2)=>{const _0x5ddd3f=_0x3332df;if(_0x39ebf7['intersects'](_0x118f5c,_0x3f02a2)){_0xfe1b6[_0x5ddd3f(0xe4)](_0x2da61e);let _0x25efb0=_0x30d368[_0x2da61e];_0x25efb0||(_0x25efb0={'config':_0x59a08f[_0x5ddd3f(0x15e)],'sparklines':_0x59a08f[_0x5ddd3f(0x15a)][_0x5ddd3f(0xb3)]()},_0x30d368[_0x2da61e]=_0x25efb0);let _0x59e2ce=_0x15b09e[_0x2da61e];_0x59e2ce||(_0x59e2ce={'config':_0x59a08f[_0x5ddd3f(0x15e)],'sparklines':new _0x15e796(_0x59a08f[_0x5ddd3f(0x15a)][_0x5ddd3f(0xb3)]())},_0x15b09e[_0x2da61e]=_0x59e2ce);const _0x3dcd60=_0x2eefd4(_0x3f02a2,{'id':_0x13aee7['id'],'params':_0x35fe84});_0x3dcd60?_0x59e2ce['sparklines'][_0x5ddd3f(0xb0)](_0x386f1a,_0x4ed481,_0x3dcd60):_0x59e2ce[_0x5ddd3f(0x15a)]['setValue'](_0x386f1a,_0x4ed481,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x31b14b[_0x5ddd3f(0xaf)]});}}),_0xf3ef5d['forValue']((_0x596fdb,_0x285dce,_0x230f78)=>{const _0x4dfd84=_0x3332df;if(_0x596fdb<=_0x118f5c[_0x4dfd84(0xfd)]&&_0x596fdb>=_0x118f5c[_0x4dfd84(0xc6)]){_0xfe1b6[_0x4dfd84(0xe4)](_0x2da61e);let _0x484d23=_0x30d368[_0x2da61e];_0x484d23||(_0x484d23={'config':_0x59a08f[_0x4dfd84(0x15e)],'sparklines':_0x59a08f['sparklines']['clone']()},_0x30d368[_0x2da61e]=_0x484d23);let _0x1d42b4=_0x15b09e[_0x2da61e];_0x1d42b4||(_0x1d42b4={'config':_0x59a08f['config'],'sparklines':new _0x15e796(_0x59a08f['sparklines']['clone']())},_0x15b09e[_0x2da61e]=_0x1d42b4);}});}_0x3f9bc5[_0x3332df(0x151)]({'id':y['id'],'params':{'unitId':_0x5d2dd2,'subUnitId':_0x62444,'groupIds':Array['from'](_0xfe1b6),'isSingle':!0x1}}),_0x4e7d90[_0x3332df(0x151)]({'id':y['id'],'params':{'unitId':_0x5d2dd2,'subUnitId':_0x62444,'groupIds':Array[_0x3332df(0xf5)](_0xfe1b6),'isSingle':!0x1}});const _0x2bbb8a={};let _0x4c7480=!0x1;return Object[_0x3332df(0x156)](_0x15b09e)[_0x3332df(0xc1)](([_0x50259a,_0x5e5696])=>{const _0x2a2d0b=_0x3332df;_0x5e5696[_0x2a2d0b(0x15a)]['getSizeOf']()&&(_0x4c7480=!0x0,_0x5e5696['sparklines'][_0x2a2d0b(0x12f)](_0x118f5c[_0x2a2d0b(0xc6)],_0x118f5c[_0x2a2d0b(0xfd)]-_0x118f5c[_0x2a2d0b(0xc6)]+0x1),_0x2bbb8a[_0x50259a]={'config':_0x5e5696['config'],'sparklines':_0x5e5696[_0x2a2d0b(0x15a)][_0x2a2d0b(0xb3)]()});}),_0x4c7480&&_0x2e22a1['push']({'id':V['id'],'params':{'unitId':_0x5d2dd2,'subUnitId':_0x62444,'sparklineConfigMap':_0x2bbb8a}}),_0x31bedc[_0x3332df(0x151)]({'id':V['id'],'params':{'unitId':_0x5d2dd2,'subUnitId':_0x62444,'sparklineConfigMap':_0x30d368}}),{'redos':_0x2e22a1,'undos':_0x31bedc,'preRedos':_0x4e7d90,'preUndos':_0x3f9bc5};}['_getRefRangeMutationsByDeleteCols'](_0x58f834,_0xd930c,_0x5270ac){const _0x59778e=_0x488b34;var _0x2376d6,_0x38d6a9;const {range:_0x1c9141}=_0x58f834,_0x437518=new Set(),_0x3e1fa0={},_0x3960d0={},_0x3a2a73=[],_0x2f8397=[],_0x2b12d9=[],_0x522ea4=[];if(!_0x4f4623(this[_0x59778e(0x111)],{'unitId':_0xd930c,'subUnitId':_0x5270ac}))return{'redos':_0x2f8397,'undos':_0x3a2a73};const _0x4bb48a=this[_0x59778e(0x12e)][_0x59778e(0x114)](_0xd930c,_0x5270ac);if(!_0x4bb48a)return{'redos':_0x2f8397,'undos':_0x3a2a73};if(!((_0x38d6a9=(_0x2376d6=this[_0x59778e(0x12e)][_0x59778e(0xd7)]()['sparklineAnchorMap'][_0x59778e(0x10c)](_0xd930c))==null?void 0x0:_0x2376d6[_0x59778e(0x10c)](_0x5270ac))==null?void 0x0:_0x38d6a9[_0x59778e(0xfa)]))return{'redos':_0x2f8397,'undos':_0x3a2a73};for(const [_0x2c548c,_0x5f598b]of _0x4bb48a){const _0x467527=_0x5f598b[_0x59778e(0x15a)];_0x467527[_0x59778e(0x141)]((_0xeaf3b9,_0x12922e,_0x2daf93)=>{const _0x26ecf3=_0x59778e;if(_0x39ebf7[_0x26ecf3(0x148)](_0x1c9141,_0x2daf93)){_0x437518[_0x26ecf3(0xe4)](_0x2c548c);let _0x388f43=_0x3960d0[_0x2c548c];_0x388f43||(_0x388f43={'config':_0x5f598b['config'],'sparklines':_0x5f598b[_0x26ecf3(0x15a)]['clone']()},_0x3960d0[_0x2c548c]=_0x388f43);let _0x5e23ef=_0x3e1fa0[_0x2c548c];_0x5e23ef||(_0x5e23ef={'config':_0x5f598b[_0x26ecf3(0x15e)],'sparklines':new _0x15e796(_0x5f598b[_0x26ecf3(0x15a)][_0x26ecf3(0xb3)]())},_0x3e1fa0[_0x2c548c]=_0x5e23ef);const _0x2103c7=_0x2eefd4(_0x2daf93,{'id':_0x1da228['id'],'params':_0x58f834});_0x2103c7?_0x5e23ef[_0x26ecf3(0x15a)][_0x26ecf3(0xb0)](_0xeaf3b9,_0x12922e,_0x2103c7):_0x5e23ef[_0x26ecf3(0x15a)][_0x26ecf3(0xb0)](_0xeaf3b9,_0x12922e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x31b14b[_0x26ecf3(0xaf)]});}}),_0x467527['forValue']((_0x3c00ae,_0x36c260,_0x953ab0)=>{const _0x3e63d1=_0x59778e;if(_0x36c260<=_0x1c9141[_0x3e63d1(0x135)]&&_0x36c260>=_0x1c9141[_0x3e63d1(0x10f)]){_0x437518['add'](_0x2c548c);let _0x592b32=_0x3960d0[_0x2c548c];_0x592b32||(_0x592b32={'config':_0x5f598b[_0x3e63d1(0x15e)],'sparklines':_0x5f598b[_0x3e63d1(0x15a)][_0x3e63d1(0xb3)]()},_0x3960d0[_0x2c548c]=_0x592b32);let _0x3c96af=_0x3e1fa0[_0x2c548c];_0x3c96af||(_0x3c96af={'config':_0x5f598b[_0x3e63d1(0x15e)],'sparklines':new _0x15e796(_0x5f598b[_0x3e63d1(0x15a)][_0x3e63d1(0xb3)]())},_0x3e1fa0[_0x2c548c]=_0x3c96af);}});}_0x522ea4[_0x59778e(0x151)]({'id':y['id'],'params':{'unitId':_0xd930c,'subUnitId':_0x5270ac,'groupIds':Array[_0x59778e(0xf5)](_0x437518),'isSingle':!0x1}}),_0x2b12d9[_0x59778e(0x151)]({'id':y['id'],'params':{'unitId':_0xd930c,'subUnitId':_0x5270ac,'groupIds':Array[_0x59778e(0xf5)](_0x437518),'isSingle':!0x1}});const _0x432141={};let _0xb5bba4=!0x1;return Object[_0x59778e(0x156)](_0x3e1fa0)[_0x59778e(0xc1)](([_0x1064b0,_0x5cf8e0])=>{const _0x32e0c2=_0x59778e;_0x5cf8e0['sparklines'][_0x32e0c2(0x128)]()&&(_0xb5bba4=!0x0,_0x5cf8e0[_0x32e0c2(0x15a)][_0x32e0c2(0xea)](_0x1c9141[_0x32e0c2(0x10f)],_0x1c9141[_0x32e0c2(0x135)]-_0x1c9141[_0x32e0c2(0x10f)]+0x1),_0x432141[_0x1064b0]={'config':_0x5cf8e0[_0x32e0c2(0x15e)],'sparklines':_0x5cf8e0['sparklines'][_0x32e0c2(0xb3)]()});}),_0xb5bba4&&_0x2f8397[_0x59778e(0x151)]({'id':V['id'],'params':{'unitId':_0xd930c,'subUnitId':_0x5270ac,'sparklineConfigMap':_0x432141}}),_0x3a2a73[_0x59778e(0x151)]({'id':V['id'],'params':{'unitId':_0xd930c,'subUnitId':_0x5270ac,'sparklineConfigMap':_0x3960d0}}),{'redos':_0x2f8397,'undos':_0x3a2a73,'preRedos':_0x2b12d9,'preUndos':_0x522ea4};}[_0x488b34(0x14f)](){const _0x4837de=_0x488b34;this[_0x4837de(0x13e)](this[_0x4837de(0xcc)][_0x4837de(0xe0)](_0xcb9d6e=>{const _0x278f6f=_0x4837de;if(_0xcb9d6e['id']===_0x2a9dad['id']){const _0x2b4efa=_0xcb9d6e[_0x278f6f(0xb6)],{unitId:_0x23e908,subUnitId:_0x511214,range:_0x4dc7c5}=_0x2b4efa,_0x552b90=_0x4dc7c5[_0x278f6f(0x10f)],_0x3ca11f=_0x4dc7c5[_0x278f6f(0x135)]-_0x4dc7c5[_0x278f6f(0x10f)]+0x1,_0x1cd68c=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x23e908,_0x511214);if(!_0x1cd68c)return;for(const [_0x1e85ff,_0x1a811a]of _0x1cd68c){this['_sparklineDataSourceModel'][_0x278f6f(0xf7)](_0x23e908,_0x511214,_0x1e85ff);const _0x45e4f5=_0x1a811a[_0x278f6f(0x15a)];_0x45e4f5[_0x278f6f(0x141)]((_0x31ecf7,_0x5e040b,_0x3ee374)=>{const _0x15497e=_0x278f6f,_0x457ba0={..._0x3ee374};_0x552b90<=_0x457ba0['startColumn']?(_0x457ba0[_0x15497e(0x10f)]+=_0x3ca11f,_0x457ba0['endColumn']+=_0x3ca11f):_0x552b90>_0x457ba0[_0x15497e(0x135)]||(_0x457ba0[_0x15497e(0x135)]+=_0x3ca11f),_0x45e4f5[_0x15497e(0xb0)](_0x31ecf7,_0x5e040b,_0x457ba0);});const _0x231c2c=_0x45e4f5[_0x278f6f(0x11c)]();for(const _0x1e3a5c in _0x231c2c){const _0x555b6a=_0x231c2c[Number(_0x1e3a5c)];if(!_0x555b6a)continue;const _0x1d57bf=Object[_0x278f6f(0x146)](_0x555b6a)[_0x278f6f(0x166)](Number),_0x1b0e30=Math['max'](..._0x1d57bf);for(let _0x11f511=_0x1b0e30;_0x11f511>=_0x552b90;_0x11f511--)_0x11f511>=_0x552b90&&_0x555b6a[_0x11f511]&&(_0x555b6a[_0x11f511+_0x3ca11f]=_0x555b6a[_0x11f511],delete _0x555b6a[_0x11f511]);}this[_0x278f6f(0x12e)][_0x278f6f(0x14e)](_0x23e908,_0x511214,_0x1e85ff);}}else{if(_0xcb9d6e['id']===_0x258800['id']){const _0x55f3b6=_0xcb9d6e[_0x278f6f(0xb6)],{unitId:_0x4c385d,subUnitId:_0x39b9f8,range:_0x14168b}=_0x55f3b6,_0x40c759=_0x14168b[_0x278f6f(0xc6)],_0x4febdf=_0x14168b['endRow']-_0x14168b[_0x278f6f(0xc6)]+0x1,_0x22e3b6=this[_0x278f6f(0x12e)][_0x278f6f(0x114)](_0x4c385d,_0x39b9f8);if(!_0x22e3b6)return;for(const [_0x357a6e,_0x1b8d94]of _0x22e3b6){this[_0x278f6f(0x12e)][_0x278f6f(0xf7)](_0x4c385d,_0x39b9f8,_0x357a6e);const _0x4c0c8b=_0x1b8d94[_0x278f6f(0x15a)];_0x4c0c8b[_0x278f6f(0x141)]((_0x1b76fc,_0x480e15,_0x364953)=>{const _0x6104e8=_0x278f6f,_0x4b52ae={..._0x364953};_0x40c759<=_0x4b52ae['startRow']?(_0x4b52ae[_0x6104e8(0xc6)]+=_0x4febdf,_0x4b52ae[_0x6104e8(0xfd)]+=_0x4febdf):_0x40c759>_0x4b52ae[_0x6104e8(0xfd)]||(_0x4b52ae[_0x6104e8(0xfd)]+=_0x4febdf),_0x4c0c8b[_0x6104e8(0xb0)](_0x1b76fc,_0x480e15,_0x4b52ae);});const _0x4adb78=_0x4c0c8b[_0x278f6f(0x11c)](),_0x453706=Object[_0x278f6f(0x146)](_0x4adb78)[_0x278f6f(0x166)](Number),_0x1e08b7=Math['max'](..._0x453706);for(let _0x2b7fea=_0x1e08b7;_0x2b7fea>=_0x40c759;_0x2b7fea--)_0x2b7fea>=_0x40c759&&_0x4adb78[_0x2b7fea]&&(_0x4adb78[_0x2b7fea+_0x4febdf]=_0x4adb78[_0x2b7fea],delete _0x4adb78[_0x2b7fea]);this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x4c385d,_0x39b9f8,_0x357a6e);}}else{if(_0xcb9d6e['id']===_0x1da228['id']){const _0x5411cb=_0xcb9d6e[_0x278f6f(0xb6)],{range:_0x4a6045,unitId:_0x12ea05,subUnitId:_0x2aa449}=_0x5411cb,_0x12ffa8=this[_0x278f6f(0x12e)]['getSubUnitSparkline'](_0x12ea05,_0x2aa449);if(!_0x12ffa8)return;for(const [_0x3b0797,_0x3db6fe]of _0x12ffa8){const _0x4c88f8=_0x3db6fe[_0x278f6f(0x15a)];_0x4c88f8['forValue']((_0x4190bd,_0x54e5b1,_0x4c5dec)=>{const _0x42bbea=_0x278f6f,_0x46b6e2=_0x2eefd4(_0x4c5dec,_0xcb9d6e);_0x46b6e2?_0x4c88f8[_0x42bbea(0xb0)](_0x4190bd,_0x54e5b1,_0x46b6e2):_0x4c88f8[_0x42bbea(0xb0)](_0x4190bd,_0x54e5b1,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x31b14b[_0x42bbea(0xaf)]});}),_0x4c88f8[_0x278f6f(0xea)](_0x4a6045[_0x278f6f(0x10f)],_0x4a6045[_0x278f6f(0x135)]-_0x4a6045[_0x278f6f(0x10f)]+0x1);}this[_0x278f6f(0x12e)][_0x278f6f(0xf8)](_0x12ea05,_0x2aa449);}else{if(_0xcb9d6e['id']===_0x13aee7['id']){const _0x293d2b=_0xcb9d6e['params'],{range:_0x1c206b,unitId:_0x298ffb,subUnitId:_0x17b912}=_0x293d2b,_0x30d103=this['_sparklineDataSourceModel'][_0x278f6f(0x114)](_0x298ffb,_0x17b912);if(!_0x30d103)return;for(const [_0x549576,_0x5d847c]of _0x30d103){const _0x41121c=_0x5d847c[_0x278f6f(0x15a)];_0x41121c[_0x278f6f(0x141)]((_0x326351,_0x555a8c,_0x5c7cf7)=>{const _0x1a4e6c=_0x278f6f,_0x390ad6=_0x2eefd4(_0x5c7cf7,_0xcb9d6e);_0x390ad6?_0x41121c[_0x1a4e6c(0xb0)](_0x326351,_0x555a8c,_0x390ad6):_0x41121c[_0x1a4e6c(0xb0)](_0x326351,_0x555a8c,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x31b14b[_0x1a4e6c(0xaf)]});}),_0x41121c['removeRows'](_0x1c206b['startRow'],_0x1c206b['endRow']-_0x1c206b['startRow']+0x1);}this[_0x278f6f(0x12e)][_0x278f6f(0xf8)](_0x298ffb,_0x17b912);}else{if(_0xcb9d6e['id']===_0x437ecb['id']){const _0x131e6e=_0xcb9d6e[_0x278f6f(0xb6)],{unitId:_0x4fb032,subUnitId:_0x55ded8,sourceRange:_0x63807c,targetRange:_0x17c2ac}=_0x131e6e,_0x2929b8=this[_0x278f6f(0x12e)]['getSubUnitSparkline'](_0x4fb032,_0x55ded8);if(!_0x2929b8)return;for(const [_0x7101b,_0x4aac38]of _0x2929b8){const _0x6f997b=_0x4aac38['sparklines'];_0x6f997b[_0x278f6f(0x141)]((_0x131c10,_0x40ce2c,_0x53caaa)=>{const _0x488d68=_0x278f6f,_0x430add=_0x2eefd4(_0x53caaa,_0xcb9d6e);_0x430add?_0x6f997b[_0x488d68(0xb0)](_0x131c10,_0x40ce2c,_0x430add):_0x6f997b['setValue'](_0x131c10,_0x40ce2c,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x31b14b[_0x488d68(0xaf)]});}),_0x6f997b[_0x278f6f(0xb8)](_0x63807c['startColumn'],_0x63807c[_0x278f6f(0x135)]-_0x63807c[_0x278f6f(0x10f)]+0x1,_0x17c2ac['startColumn']);}this[_0x278f6f(0x12e)]['reBuildAnchorCache'](_0x4fb032,_0x55ded8);}else{if(_0xcb9d6e['id']===_0x3d6247['id']){const _0x1d5e7b=_0xcb9d6e[_0x278f6f(0xb6)],{unitId:_0xa89055,subUnitId:_0x58a8e5,sourceRange:_0x1c6ddb,targetRange:_0x369467}=_0x1d5e7b,_0x3cb398=this[_0x278f6f(0x12e)][_0x278f6f(0x114)](_0xa89055,_0x58a8e5);if(!_0x3cb398)return;for(const [_0x7d8c59,_0x4c7984]of _0x3cb398){const _0x1a0018=_0x4c7984['sparklines'];_0x1a0018[_0x278f6f(0x141)]((_0x2a052e,_0x38a387,_0x429b3d)=>{const _0x534bc8=_0x278f6f,_0x17b690=_0x2eefd4(_0x429b3d,_0xcb9d6e);_0x17b690?_0x1a0018['setValue'](_0x2a052e,_0x38a387,_0x17b690):_0x1a0018[_0x534bc8(0xb0)](_0x2a052e,_0x38a387,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x31b14b[_0x534bc8(0xaf)]});}),_0x1a0018[_0x278f6f(0x142)](_0x1c6ddb['startRow'],_0x1c6ddb['endRow']-_0x1c6ddb[_0x278f6f(0xc6)]+0x1,_0x369467[_0x278f6f(0xc6)]);}this[_0x278f6f(0x12e)][_0x278f6f(0xf8)](_0xa89055,_0x58a8e5);}else{if(_0xcb9d6e['id']===_0x26867b['id']){const _0x51f866=_0xcb9d6e[_0x278f6f(0xb6)],{fromRange:_0x35b6f1,toRange:_0x1e255e,unitId:_0x5d0e9b,from:_0x49be01,to:_0x14ee5e}=_0x51f866;if(_0x49be01[_0x278f6f(0xe9)]!==_0x14ee5e['subUnitId'])return;const _0x3bb7ec=_0x49be01[_0x278f6f(0xe9)],{startRow:_0x1c57a1,endRow:_0x569319,startColumn:_0x36a830,endColumn:_0x4d49f6}=_0x35b6f1,{startRow:_0x23e5d7,startColumn:_0x470568}=_0x1e255e,_0x542d26=_0x23e5d7-_0x1c57a1,_0x13accf=_0x470568-_0x36a830,_0x5b7347=this['_sparklineDataSourceModel'][_0x278f6f(0x114)](_0x5d0e9b,_0x3bb7ec);if(!(_0x5b7347!=null&&_0x5b7347[_0x278f6f(0x137)]))return;for(let _0x428139=_0x1c57a1;_0x428139<=_0x569319;_0x428139++)for(let _0x86d1c1=_0x36a830;_0x86d1c1<=_0x4d49f6;_0x86d1c1++){const _0x3d5df0=this['_sparklineDataSourceModel'][_0x278f6f(0x133)](_0x5d0e9b,_0x3bb7ec,_0x428139,_0x86d1c1);if(_0x3d5df0){const _0x25e5c2=this[_0x278f6f(0x12e)][_0x278f6f(0xef)](_0x5d0e9b,_0x3bb7ec,_0x3d5df0);if(_0x25e5c2){const _0x3f591b=_0x25e5c2['sparklines'][_0x278f6f(0x131)](_0x428139,_0x86d1c1);_0x3f591b&&(_0x25e5c2[_0x278f6f(0x15a)][_0x278f6f(0xb0)](_0x428139+_0x542d26,_0x86d1c1+_0x13accf,_0x3f591b),_0x25e5c2[_0x278f6f(0x15a)][_0x278f6f(0x12d)](_0x428139,_0x86d1c1));}}}for(const [_0x308e49,_0x5aee67]of _0x5b7347){const _0x16ee91=_0x5aee67[_0x278f6f(0x15a)];_0x16ee91[_0x278f6f(0x141)]((_0x317877,_0x1ffaf4,_0x1ff486)=>{const _0x4672bd=_0x278f6f,_0x1514c5={..._0x1ff486};_0x39ebf7['contains'](_0x35b6f1,_0x1ff486)&&(_0x1514c5[_0x4672bd(0xc6)]+=_0x542d26,_0x1514c5['endRow']+=_0x542d26,_0x1514c5['startColumn']+=_0x13accf,_0x1514c5[_0x4672bd(0x135)]+=_0x13accf),_0x16ee91[_0x4672bd(0xb0)](_0x317877,_0x1ffaf4,_0x1514c5);});}this[_0x278f6f(0x12e)][_0x278f6f(0xf8)](_0x5d0e9b,_0x3bb7ec);}}}}}}}}));}};Me=Kt([ge(0x0,_0x461bd9(_0x30a353)),ge(0x1,_0x461bd9(_0xaeaac8)),ge(0x2,_0x52ff88),ge(0x3,_0x461bd9(x))],Me);function _0x1142(_0x2ceef8,_0x3411c4){const _0xec5525=_0xec55();return _0x1142=function(_0x11425c,_0x52499b){_0x11425c=_0x11425c-0xad;let _0x1607cf=_0xec5525[_0x11425c];return _0x1607cf;},_0x1142(_0x2ceef8,_0x3411c4);}var Xt=Object[_0x488b34(0x11a)],zt=(_0x1a9e59,_0x4c38db,_0xb5a68e,_0x8fb403)=>{for(var _0x1fd5ce=_0x8fb403>0x1?void 0x0:_0x8fb403?Xt(_0x4c38db,_0xb5a68e):_0x4c38db,_0x3c0ae0=_0x1a9e59['length']-0x1,_0x4f921e;_0x3c0ae0>=0x0;_0x3c0ae0--)(_0x4f921e=_0x1a9e59[_0x3c0ae0])&&(_0x1fd5ce=_0x4f921e(_0x1fd5ce)||_0x1fd5ce);return _0x1fd5ce;},Be=(_0x6aade7,_0x4622e4)=>(_0x279285,_0x89afd8)=>_0x4622e4(_0x279285,_0x89afd8,_0x6aade7);let Re=class extends _0x50a864{constructor(_0x52f9c2,_0x8542a2){const _0x502c82=_0x488b34;super(),this[_0x502c82(0x150)]=_0x52f9c2,this[_0x502c82(0x12e)]=_0x8542a2,this['_initSnapshot']();}[_0x488b34(0x13c)](){const _0xd42710=_0x488b34,_0x65e0ae=_0x570e90=>{const _0x51afcf=_0x1142,_0x14700e=this[_0x51afcf(0x12e)][_0x51afcf(0xd3)](_0x570e90);return _0x14700e?JSON[_0x51afcf(0x139)](_0x14700e):'';},_0x561d65=_0x1dbb78=>_0x1dbb78?JSON['parse'](_0x1dbb78):{};this[_0xd42710(0x13e)](this[_0xd42710(0x150)][_0xd42710(0xca)]({'toJson':_0x65e0ae,'parseJson':_0x561d65,'pluginName':Ke,'businesses':[_0x190875[_0xd42710(0xb7)]],'onLoad':(_0x1c4645,_0x28b848)=>{const _0x60e81a=_0xd42710;this[_0x60e81a(0x12e)][_0x60e81a(0x12c)](_0x28b848);},'onUnLoad':_0x1ad9aa=>{const _0x23ca89=_0xd42710;this['_sparklineDataSourceModel'][_0x23ca89(0x14d)](_0x1ad9aa);}}));}};Re=zt([Be(0x0,_0x461bd9(_0x17b376)),Be(0x1,_0x461bd9(x))],Re);var Jt=Object[_0x488b34(0x104)],Zt=Object[_0x488b34(0x11a)],Yt=(_0x2f44f5,_0x469585,_0x3eb159)=>_0x469585 in _0x2f44f5?Jt(_0x2f44f5,_0x469585,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3eb159}):_0x2f44f5[_0x469585]=_0x3eb159,qt=(_0x3a8224,_0x4aece7,_0x5830c9,_0x5a8d2a)=>{const _0x439f65=_0x488b34;for(var _0x2e7f77=_0x5a8d2a>0x1?void 0x0:_0x5a8d2a?Zt(_0x4aece7,_0x5830c9):_0x4aece7,_0x1ef8d1=_0x3a8224[_0x439f65(0x134)]-0x1,_0x2adaf7;_0x1ef8d1>=0x0;_0x1ef8d1--)(_0x2adaf7=_0x3a8224[_0x1ef8d1])&&(_0x2e7f77=_0x2adaf7(_0x2e7f77)||_0x2e7f77);return _0x2e7f77;},He=(_0x4627e2,_0x1074dc)=>(_0x5e475e,_0x30ccf5)=>_0x1074dc(_0x5e475e,_0x30ccf5,_0x4627e2),ze=(_0x3f7806,_0x30da0f,_0xc25c2b)=>Yt(_0x3f7806,typeof _0x30da0f!='symbol'?_0x30da0f+'':_0x30da0f,_0xc25c2b);let ve=class extends _0x2ae3d2{constructor(_0xda0fea={},_0x8ec0cf,_0x53472b){const _0x11a110=_0x488b34;super(),this[_0x11a110(0xb1)]=_0xda0fea,this[_0x11a110(0x14b)]=_0x8ec0cf,this[_0x11a110(0xcc)]=_0x53472b,this[_0x11a110(0x136)](),this['_initRegisterCommand']();}['_initDependencies'](){const _0x702824=_0x488b34;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x702824(0xc1)](_0xcc2bbb=>{const _0x5bc79f=_0x702824;this[_0x5bc79f(0x14b)][_0x5bc79f(0xe4)](_0xcc2bbb);}),_0x563cc1(this[_0x702824(0x14b)],[[Re]]);}['onReady'](){const _0x29fe06=_0x488b34;_0x563cc1(this[_0x29fe06(0x14b)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x488b34(0x158)](){const _0x3ccf4f=_0x488b34;[Nt,V,Ot,y,xt,Oe]['forEach'](_0x5356e1=>this['_commandService'][_0x3ccf4f(0xff)](_0x5356e1));}};ze(ve,_0x488b34(0x105),Ke),ze(ve,'type',_0x190875[_0x488b34(0xb7)]),ve=qt([_0x2d6f3a(_0x512be7),He(0x1,_0x461bd9(_0x4912cf)),He(0x2,_0x461bd9(_0x30a353))],ve);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,De as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5349c7=_0x2d6d;(function(_0x28032b,_0x2ba9e3){const _0x19f436=_0x2d6d,_0x725649=_0x28032b();while(!![]){try{const _0xf62bdb=-parseInt(_0x19f436(0xc8))/0x1+parseInt(_0x19f436(0xd5))/0x2*(-parseInt(_0x19f436(0xc6))/0x3)+-parseInt(_0x19f436(0xa7))/0x4*(-parseInt(_0x19f436(0xc4))/0x5)+parseInt(_0x19f436(0xd0))/0x6+-parseInt(_0x19f436(0xba))/0x7+parseInt(_0x19f436(0xbb))/0x8+parseInt(_0x19f436(0xcb))/0x9;if(_0xf62bdb===_0x2ba9e3)break;else _0x725649['push'](_0x725649['shift']());}catch(_0x539a8f){_0x725649['push'](_0x725649['shift']());}}}(_0x632a,0xcb7e6));import{SparklineDataSourceModel as _0x41a1c3,SetSheetSparklineCommand as _0xb51a5f,RemoveSheetSparklineCommand as _0x2ce48d,AddSheetSparklineCommand as _0x45b4aa,SparklineTypeEnum as _0x569406}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x9134c5,Injector as _0x1584d0,ICommandService as _0x265548,Tools as _0x421af6}from'@univerjs/core';import{FWorksheet as _0x20ee72}from'@univerjs/sheets/facade';import{FEnum as _0x2df22c,FEventName as _0x2ae9f3,FUniver as _0x2e5117}from'@univerjs/core/facade';function _0x2d6d(_0x40a2e8,_0x707857){const _0x632a6f=_0x632a();return _0x2d6d=function(_0x2d6d1b,_0x52491e){_0x2d6d1b=_0x2d6d1b-0xa0;let _0x491d23=_0x632a6f[_0x2d6d1b];return _0x491d23;},_0x2d6d(_0x40a2e8,_0x707857);}function _0x632a(){const _0x575780=['SparklineTypeEnum','fireEvent','createInstance','getSparklineByCell','syncExecuteCommand','2537934cGGiKi','12220128foaYwo','removeSparkline','item','deepClone','forEach','ranges','startColumn','range','matrix','35WEIaSL','_workbook','789bvDrbc','_injector','1471013xZImJg','_commandService','getSheetId','1673442eOmUNQ','getActiveSheet','getId','composeSparkline','startRow','3504810yAPpqY','onCommandExecuted','registerEventHandler','length','Event','6338EnAoZi','params','getCurrentSelections','extend','getAllSubSparkline','get','_row','getActiveWorkbook','from','changeDataSource','getOwnPropertyDescriptor','getSubUnitSparkline','getSparklineById','getUnitId','addSparkline','_worksheet','executeCommand','687396dGHqWp','getSparklineGroupByCell','filter','_col','getValue','getSparkline','setConfig','groupId','_subUnitId','_groupId','cancel','_unitId','map','SheetSparklineChanged'];_0x632a=function(){return _0x575780;};return _0x632a();}import{SheetsSelectionsService as _0x1e49e5}from'@univerjs/sheets';var z=Object['getOwnPropertyDescriptor'],H=(_0x1f11aa,_0x3d44bd,_0xce7f91,_0x6a54bb)=>{for(var _0x549aad=_0x6a54bb>0x1?void 0x0:_0x6a54bb?z(_0x3d44bd,_0xce7f91):_0x3d44bd,_0x401ee3=_0x1f11aa['length']-0x1,_0x527b11;_0x401ee3>=0x0;_0x401ee3--)(_0x527b11=_0x1f11aa[_0x401ee3])&&(_0x549aad=_0x527b11(_0x549aad)||_0x549aad);return _0x549aad;},V=(_0x3738f1,_0x37eeae)=>(_0xd798cf,_0x400ee4)=>_0x37eeae(_0xd798cf,_0x400ee4,_0x3738f1);let C=class{constructor(_0x4b3811,_0x46931a,_0x215e56,_0x18bb10,_0xa7f909,_0x1f8daf){const _0x1ac282=_0x2d6d;this[_0x1ac282(0xb2)]=_0x4b3811,this[_0x1ac282(0xaf)]=_0x46931a,this[_0x1ac282(0xb0)]=_0x215e56,this['_row']=_0x18bb10,this[_0x1ac282(0xaa)]=_0xa7f909,this[_0x1ac282(0xc7)]=_0x1f8daf;}['changeDataSource'](_0x136992,_0x469db7){const _0x406dfc=_0x2d6d,_0x438012=this[_0x406dfc(0xc7)]['get'](_0x41a1c3),_0x1046a2=this['_injector'][_0x406dfc(0xda)](_0x265548),_0x33a3a2=_0x438012[_0x406dfc(0xa2)](this['_unitId'],this[_0x406dfc(0xaf)],this[_0x406dfc(0xb0)]);if(!_0x33a3a2)return;const _0x5d4a15={'config':_0x33a3a2,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x406dfc(0xb0)],'resetType':_0x406dfc(0xbd),'sourceRanges':[_0x136992],'targetRanges':[_0x469db7],'primary':{'startRow':this[_0x406dfc(0xdb)],'startColumn':this['_col'],'endRow':this[_0x406dfc(0xdb)],'endColumn':this[_0x406dfc(0xaa)],'actualRow':this[_0x406dfc(0xdb)],'actualColumn':this[_0x406dfc(0xaa)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x1046a2[_0x406dfc(0xb9)](_0xb51a5f['id'],_0x5d4a15),this['_row']=_0x469db7[_0x406dfc(0xcf)],this[_0x406dfc(0xaa)]=_0x469db7[_0x406dfc(0xc1)],this;}[_0x5349c7(0xbc)](){const _0x48f043=_0x5349c7,_0x3a0cce=this[_0x48f043(0xc7)][_0x48f043(0xda)](_0x265548),_0x56b905={'isSingle':!0x0,'ranges':[{'startRow':this['_row'],'startColumn':this[_0x48f043(0xaa)],'endRow':this['_row'],'endColumn':this[_0x48f043(0xaa)]}]};_0x3a0cce['syncExecuteCommand'](_0x2ce48d['id'],_0x56b905);}};C=H([V(0x5,_0x9134c5(_0x1584d0))],C);var q=Object[_0x5349c7(0xa0)],J=(_0x425c51,_0x26169a,_0x178d21,_0x10d08f)=>{const _0x3c4fb0=_0x5349c7;for(var _0x327cf3=_0x10d08f>0x1?void 0x0:_0x10d08f?q(_0x26169a,_0x178d21):_0x26169a,_0x19fbdc=_0x425c51[_0x3c4fb0(0xd3)]-0x1,_0x3845fc;_0x19fbdc>=0x0;_0x19fbdc--)(_0x3845fc=_0x425c51[_0x19fbdc])&&(_0x327cf3=_0x3845fc(_0x327cf3)||_0x327cf3);return _0x327cf3;},K=(_0x48ae87,_0x26b240)=>(_0xea0211,_0x548a54)=>_0x26b240(_0xea0211,_0x548a54,_0x48ae87);let w=class{constructor(_0x4f6349,_0xc57ffc,_0x5d7b40,_0xe7daae,_0x56cb14,_0x2395ad){const _0x3b2bb3=_0x5349c7;this[_0x3b2bb3(0xb2)]=_0x4f6349,this[_0x3b2bb3(0xaf)]=_0xc57ffc,this[_0x3b2bb3(0xb0)]=_0x5d7b40,this[_0x3b2bb3(0xdb)]=_0xe7daae,this[_0x3b2bb3(0xaa)]=_0x56cb14,this['_injector']=_0x2395ad;}[_0x5349c7(0xde)](_0x11c00e,_0x2b4898){const _0x188111=_0x5349c7,_0x1140af=this[_0x188111(0xc7)][_0x188111(0xda)](_0x41a1c3),_0x187dba=this['_injector'][_0x188111(0xda)](_0x265548),_0x691ff0=_0x1140af[_0x188111(0xa2)](this[_0x188111(0xb2)],this[_0x188111(0xaf)],this[_0x188111(0xb0)]);if(!_0x691ff0)return;const _0x5b98ea={'config':_0x691ff0,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x188111(0xb0)],'resetType':'group','sourceRanges':_0x11c00e,'targetRanges':_0x2b4898,'primary':{'startRow':this['_row'],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this['_col'],'actualRow':this['_row'],'actualColumn':this[_0x188111(0xaa)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x187dba[_0x188111(0xb9)](_0xb51a5f['id'],_0x5b98ea),this[_0x188111(0xdb)]=_0x2b4898[0x0][_0x188111(0xcf)],this[_0x188111(0xaa)]=_0x2b4898[0x0][_0x188111(0xc1)],this;}['removeSparklineGroup'](){const _0x26a421=_0x5349c7,_0x1e988f=this[_0x26a421(0xc7)][_0x26a421(0xda)](_0x265548),_0x4cdeff={'isSingle':!0x1,'ranges':[{'startRow':this['_row'],'startColumn':this[_0x26a421(0xaa)],'endRow':this[_0x26a421(0xdb)],'endColumn':this[_0x26a421(0xaa)]}]};_0x1e988f[_0x26a421(0xb9)](_0x2ce48d['id'],_0x4cdeff);}[_0x5349c7(0xad)](_0x5dbffb){const _0x177f67=_0x5349c7,_0x30857d=this[_0x177f67(0xc7)][_0x177f67(0xda)](_0x41a1c3)[_0x177f67(0xa2)](this[_0x177f67(0xb2)],this[_0x177f67(0xaf)],this[_0x177f67(0xb0)]);if(_0x30857d){const _0x481694={'config':{'config':_0x5dbffb,'sparklines':_0x30857d['sparklines']},'isChangeDataSource':!0x1};this[_0x177f67(0xc7)]['get'](_0x265548)[_0x177f67(0xb9)](_0xb51a5f['id'],_0x481694);}return this;}};w=J([K(0x5,_0x9134c5(_0x1584d0))],w);class L extends _0x20ee72{[_0x5349c7(0xa4)](_0x405924,_0x2a2c00,_0x1c0820){const _0x437aeb=_0x5349c7;if(this['_commandService']['syncExecuteCommand'](_0x45b4aa['id'],{'sourceRanges':_0x405924,'targetRanges':_0x2a2c00,'targetInfo':{'unitId':this[_0x437aeb(0xc5)][_0x437aeb(0xa3)](),'subUnitId':this['_worksheet'][_0x437aeb(0xca)]()},'config':{'type':_0x1c0820}})){const {startRow:_0x552bc0,startColumn:_0x506d97}=_0x2a2c00[0x0];return this['getSparklineByCell'](_0x552bc0,_0x506d97);}}[_0x5349c7(0xd9)](){const _0x54cca2=_0x5349c7;return this[_0x54cca2(0xc7)][_0x54cca2(0xda)](_0x41a1c3)[_0x54cca2(0xa1)](this[_0x54cca2(0xc5)][_0x54cca2(0xa3)](),this['_worksheet'][_0x54cca2(0xca)]());}[_0x5349c7(0xce)](_0x4ede13){const _0x142905=_0x5349c7,_0x5e9d20=this['_injector']['get'](_0x41a1c3);let _0x171072;for(let _0x2cb714=0x0;_0x2cb714<_0x4ede13['length'];_0x2cb714++){const _0x43d620=_0x4ede13[_0x2cb714],{startRow:_0x223dc2,endRow:_0x2729a9,startColumn:_0x3e8ccd,endColumn:_0x5cee96}=_0x43d620;for(let _0x2d79c4=_0x223dc2;_0x2d79c4<=_0x2729a9;_0x2d79c4++)for(let _0x27501f=_0x3e8ccd;_0x27501f<=_0x5cee96;_0x27501f++){const _0x12f1b0=_0x5e9d20[_0x142905(0xac)](this[_0x142905(0xc5)]['getUnitId'](),this['_worksheet'][_0x142905(0xca)](),_0x2d79c4,_0x27501f);if(_0x12f1b0){const _0x55fc24=_0x5e9d20[_0x142905(0xa2)](this['_workbook'][_0x142905(0xa3)](),this[_0x142905(0xa5)][_0x142905(0xca)](),_0x12f1b0);if(_0x55fc24){_0x171072=_0x421af6[_0x142905(0xbe)](_0x55fc24);break;}}}}_0x171072&&this['_commandService']['executeCommand'](_0xb51a5f['id'],{'ranges':_0x4ede13,'combine':!0x0,'config':_0x171072,'isChangeDataSource':!0x1});}['unComposeSparkline'](_0x1eb019){const _0x582a68=_0x5349c7,_0x3d7200=this['_injector'][_0x582a68(0xda)](_0x41a1c3);let _0x5d432f;for(let _0x42a433=0x0;_0x42a433<_0x1eb019[_0x582a68(0xd3)];_0x42a433++){const _0x65f2f5=_0x1eb019[_0x42a433],{startRow:_0xedd593,endRow:_0x21653d,startColumn:_0x28e281,endColumn:_0x5aa978}=_0x65f2f5;for(let _0x18b476=_0xedd593;_0x18b476<=_0x21653d;_0x18b476++)for(let _0x42cb61=_0x28e281;_0x42cb61<=_0x5aa978;_0x42cb61++){const _0x2acdc5=_0x3d7200[_0x582a68(0xac)](this[_0x582a68(0xc5)]['getUnitId'](),this[_0x582a68(0xa5)][_0x582a68(0xca)](),_0x18b476,_0x42cb61);if(_0x2acdc5){const _0x21537e=_0x3d7200[_0x582a68(0xa2)](this[_0x582a68(0xc5)][_0x582a68(0xa3)](),this[_0x582a68(0xa5)][_0x582a68(0xca)](),_0x2acdc5);if(_0x21537e){_0x5d432f=_0x421af6[_0x582a68(0xbe)](_0x21537e);break;}}}}_0x5d432f||this[_0x582a68(0xc9)][_0x582a68(0xa6)](_0xb51a5f['id'],{'ranges':_0x1eb019,'unCombine':!0x0,'config':_0x5d432f,'isChangeDataSource':!0x1});}[_0x5349c7(0xb8)](_0x179deb,_0x66f1af){const _0x53b31e=_0x5349c7,_0x143790=this[_0x53b31e(0xc7)][_0x53b31e(0xda)](_0x41a1c3),_0x33f362=this['_workbook'][_0x53b31e(0xa3)](),_0x45debc=this[_0x53b31e(0xa5)][_0x53b31e(0xca)](),_0x59e0cd=_0x143790[_0x53b31e(0xac)](_0x33f362,_0x45debc,_0x179deb,_0x66f1af);if(_0x59e0cd)return this[_0x53b31e(0xc7)][_0x53b31e(0xb7)](C,_0x33f362,_0x45debc,_0x59e0cd,_0x179deb,_0x66f1af);}[_0x5349c7(0xa8)](_0x13dece,_0xc095e){const _0x5c2306=_0x5349c7,_0x5e73d5=this[_0x5c2306(0xc7)][_0x5c2306(0xda)](_0x41a1c3),_0x30a521=this['_workbook']['getUnitId'](),_0x1e613d=this['_worksheet'][_0x5c2306(0xca)](),_0x386806=_0x5e73d5[_0x5c2306(0xac)](_0x30a521,_0x1e613d,_0x13dece,_0xc095e);if(_0x386806)return this[_0x5c2306(0xc7)][_0x5c2306(0xb7)](w,_0x30a521,_0x1e613d,_0x386806,_0x13dece,_0xc095e);}}_0x20ee72[_0x5349c7(0xd8)](L);class Q extends _0x2df22c{get[_0x5349c7(0xb5)](){return _0x569406;}}_0x2df22c[_0x5349c7(0xd8)](Q);class X extends _0x2ae9f3{get[_0x5349c7(0xb4)](){const _0x4110a5=_0x5349c7;return _0x4110a5(0xb4);}}_0x2ae9f3[_0x5349c7(0xd8)](X);class Y extends _0x2e5117{['_initialize'](_0x559ad6){const _0x45cd06=_0x5349c7,_0x32ac95=_0x559ad6[_0x45cd06(0xda)](_0x265548);this[_0x45cd06(0xd2)](this[_0x45cd06(0xd4)]['SheetSparklineChanged'],()=>_0x32ac95[_0x45cd06(0xd1)](_0x188759=>{const _0x3ed512=_0x45cd06;var _0x1e6178,_0x3a710f;if(_0x188759['id']===_0xb51a5f['id']){const _0x4ae587=_0x188759[_0x3ed512(0xd6)];if(!_0x4ae587['isChangeDataSource']){const _0x3011d6=this[_0x3ed512(0xdc)](),_0x2977ad=_0x3011d6==null?void 0x0:_0x3011d6[_0x3ed512(0xcc)]();if(!_0x3011d6||!_0x2977ad)return;const _0x373ccb=_0x3011d6[_0x3ed512(0xcd)](),_0x27b9be=_0x2977ad[_0x3ed512(0xca)](),_0x30bb50=this[_0x3ed512(0xc7)][_0x3ed512(0xda)](_0x1e49e5),_0xbeae0e=this[_0x3ed512(0xc7)]['get'](_0x41a1c3),_0x53b32c=(_0x1e6178=_0x4ae587==null?void 0x0:_0x4ae587[_0x3ed512(0xc0)])!=null?_0x1e6178:_0x30bb50[_0x3ed512(0xd7)]()[_0x3ed512(0xb3)](_0x8d58f9=>_0x8d58f9[_0x3ed512(0xc2)]),_0xaab266=(_0x3a710f=_0xbeae0e['getSparklineCache']()['sparklineAnchorMap'][_0x3ed512(0xda)](_0x373ccb))==null?void 0x0:_0x3a710f[_0x3ed512(0xda)](_0x27b9be),_0x3560be=new Set();_0x53b32c[_0x3ed512(0xbf)](_0x4af23f=>{const _0x37274a=_0x3ed512;var _0x27d839;const {startRow:_0x40a153,endRow:_0x21403e,startColumn:_0x4dc4d4,endColumn:_0x75092a}=_0x4af23f;for(let _0x732931=_0x40a153;_0x732931<=_0x21403e;_0x732931++)for(let _0xc30c5e=_0x4dc4d4;_0xc30c5e<=_0x75092a;_0xc30c5e++){const _0x33c00b=(_0x27d839=_0xaab266==null?void 0x0:_0xaab266[_0x37274a(0xc3)][_0x37274a(0xab)](_0x732931,_0xc30c5e))==null?void 0x0:_0x27d839[_0x37274a(0xae)];_0x33c00b&&_0x3560be['add'](_0x33c00b);}});const _0x5caaad=Array[_0x3ed512(0xdd)](_0x3560be)['map'](_0x4f0f43=>_0xbeae0e[_0x3ed512(0xa2)](_0x373ccb,_0x27b9be,_0x4f0f43))[_0x3ed512(0xa9)](_0x9c5a57=>!!_0x9c5a57),_0x239ad8={'workbook':_0x3011d6,'worksheet':_0x2977ad,'sparklines':_0x5caaad};if(this[_0x3ed512(0xb6)](this[_0x3ed512(0xd4)][_0x3ed512(0xb4)],_0x239ad8),_0x239ad8[_0x3ed512(0xb1)])throw new Error('Sheet\x20create\x20canceled\x20by\x20facade\x20api.');}}}));}}_0x2e5117[_0x5349c7(0xd8)](Y);export{C as FSparkline,w as FSparklineGroup};
1
+ const _0x42c3e5=_0x30ff;(function(_0x24d1b5,_0x56314a){const _0x3f28a7=_0x30ff,_0x2df4c6=_0x24d1b5();while(!![]){try{const _0x322cec=parseInt(_0x3f28a7(0x13b))/0x1+-parseInt(_0x3f28a7(0x126))/0x2*(-parseInt(_0x3f28a7(0x125))/0x3)+parseInt(_0x3f28a7(0x137))/0x4+-parseInt(_0x3f28a7(0x14e))/0x5*(parseInt(_0x3f28a7(0x132))/0x6)+parseInt(_0x3f28a7(0x14b))/0x7*(parseInt(_0x3f28a7(0x143))/0x8)+parseInt(_0x3f28a7(0x12f))/0x9*(parseInt(_0x3f28a7(0x15b))/0xa)+-parseInt(_0x3f28a7(0x127))/0xb;if(_0x322cec===_0x56314a)break;else _0x2df4c6['push'](_0x2df4c6['shift']());}catch(_0x24b7a3){_0x2df4c6['push'](_0x2df4c6['shift']());}}}(_0x2002,0xb3805));import{SparklineDataSourceModel as _0x33bcff,SetSheetSparklineCommand as _0xb70d74,RemoveSheetSparklineCommand as _0x4a4eed,AddSheetSparklineCommand as _0x2f6170,SparklineTypeEnum as _0xe84a1b}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x4bc04e,Injector as _0x35dea8,ICommandService as _0x248bc5,Tools as _0x2af42b}from'@univerjs/core';import{FWorksheet as _0x31cb0a}from'@univerjs/sheets/facade';import{FEnum as _0x57ddb0,FEventName as _0x13be0c,FUniver as _0x192e06}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x5a6523}from'@univerjs/sheets';var z=Object[_0x42c3e5(0x15e)],H=(_0x4847e5,_0x51779e,_0xb59149,_0x410fbd)=>{const _0x3adf0f=_0x42c3e5;for(var _0x10e081=_0x410fbd>0x1?void 0x0:_0x410fbd?z(_0x51779e,_0xb59149):_0x51779e,_0x361b28=_0x4847e5[_0x3adf0f(0x146)]-0x1,_0x148abf;_0x361b28>=0x0;_0x361b28--)(_0x148abf=_0x4847e5[_0x361b28])&&(_0x10e081=_0x148abf(_0x10e081)||_0x10e081);return _0x10e081;},V=(_0x36a54f,_0x191cc6)=>(_0x3a1f69,_0x237f83)=>_0x191cc6(_0x3a1f69,_0x237f83,_0x36a54f);let C=class{constructor(_0x4c711e,_0x4401a7,_0x1a6bf9,_0x4133b4,_0x579662,_0x2172dd){const _0x821725=_0x42c3e5;this['_unitId']=_0x4c711e,this[_0x821725(0x13f)]=_0x4401a7,this[_0x821725(0x124)]=_0x1a6bf9,this['_row']=_0x4133b4,this['_col']=_0x579662,this['_injector']=_0x2172dd;}[_0x42c3e5(0x130)](_0x2495c5,_0xad785b){const _0x50736c=_0x42c3e5,_0x5b7b16=this[_0x50736c(0x15d)][_0x50736c(0x136)](_0x33bcff),_0x560700=this['_injector'][_0x50736c(0x136)](_0x248bc5),_0x51f63e=_0x5b7b16[_0x50736c(0x141)](this[_0x50736c(0x12b)],this[_0x50736c(0x13f)],this[_0x50736c(0x124)]);if(!_0x51f63e)return;const _0x19be4b={'config':_0x51f63e,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this['_groupId'],'resetType':_0x50736c(0x13d),'sourceRanges':[_0x2495c5],'targetRanges':[_0xad785b],'primary':{'startRow':this['_row'],'startColumn':this[_0x50736c(0x159)],'endRow':this[_0x50736c(0x140)],'endColumn':this['_col'],'actualRow':this[_0x50736c(0x140)],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x560700[_0x50736c(0x129)](_0xb70d74['id'],_0x19be4b),this[_0x50736c(0x140)]=_0xad785b['startRow'],this['_col']=_0xad785b[_0x50736c(0x133)],this;}[_0x42c3e5(0x149)](){const _0x3827a2=_0x42c3e5,_0x46c801=this[_0x3827a2(0x15d)][_0x3827a2(0x136)](_0x248bc5),_0x3aa45e={'isSingle':!0x0,'ranges':[{'startRow':this[_0x3827a2(0x140)],'startColumn':this[_0x3827a2(0x159)],'endRow':this[_0x3827a2(0x140)],'endColumn':this[_0x3827a2(0x159)]}]};_0x46c801['syncExecuteCommand'](_0x4a4eed['id'],_0x3aa45e);}};C=H([V(0x5,_0x4bc04e(_0x35dea8))],C);var q=Object['getOwnPropertyDescriptor'],J=(_0x2344e5,_0x46b191,_0x28ad9d,_0x1d3863)=>{for(var _0x111e4d=_0x1d3863>0x1?void 0x0:_0x1d3863?q(_0x46b191,_0x28ad9d):_0x46b191,_0x4874fc=_0x2344e5['length']-0x1,_0x4439e3;_0x4874fc>=0x0;_0x4874fc--)(_0x4439e3=_0x2344e5[_0x4874fc])&&(_0x111e4d=_0x4439e3(_0x111e4d)||_0x111e4d);return _0x111e4d;},K=(_0x14ef4e,_0x5baa16)=>(_0x1c8e80,_0x12bcdd)=>_0x5baa16(_0x1c8e80,_0x12bcdd,_0x14ef4e);let w=class{constructor(_0x5b5ca3,_0x423e44,_0x7bca36,_0x541b29,_0x3da168,_0x37d6ff){const _0x6772c4=_0x42c3e5;this[_0x6772c4(0x12b)]=_0x5b5ca3,this[_0x6772c4(0x13f)]=_0x423e44,this[_0x6772c4(0x124)]=_0x7bca36,this[_0x6772c4(0x140)]=_0x541b29,this[_0x6772c4(0x159)]=_0x3da168,this['_injector']=_0x37d6ff;}['changeDataSource'](_0x227ca0,_0x59c690){const _0xf57526=_0x42c3e5,_0x43afc8=this['_injector'][_0xf57526(0x136)](_0x33bcff),_0x4fb014=this['_injector']['get'](_0x248bc5),_0xabe4b0=_0x43afc8[_0xf57526(0x141)](this[_0xf57526(0x12b)],this[_0xf57526(0x13f)],this['_groupId']);if(!_0xabe4b0)return;const _0xb34341={'config':_0xabe4b0,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0xf57526(0x124)],'resetType':_0xf57526(0x12d),'sourceRanges':_0x227ca0,'targetRanges':_0x59c690,'primary':{'startRow':this[_0xf57526(0x140)],'startColumn':this[_0xf57526(0x159)],'endRow':this['_row'],'endColumn':this[_0xf57526(0x159)],'actualRow':this[_0xf57526(0x140)],'actualColumn':this[_0xf57526(0x159)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x4fb014[_0xf57526(0x129)](_0xb70d74['id'],_0xb34341),this[_0xf57526(0x140)]=_0x59c690[0x0][_0xf57526(0x12a)],this['_col']=_0x59c690[0x0][_0xf57526(0x133)],this;}[_0x42c3e5(0x164)](){const _0x2c80f3=_0x42c3e5,_0x11dbba=this[_0x2c80f3(0x15d)][_0x2c80f3(0x136)](_0x248bc5),_0x2549a2={'isSingle':!0x1,'ranges':[{'startRow':this[_0x2c80f3(0x140)],'startColumn':this[_0x2c80f3(0x159)],'endRow':this['_row'],'endColumn':this['_col']}]};_0x11dbba['syncExecuteCommand'](_0x4a4eed['id'],_0x2549a2);}[_0x42c3e5(0x156)](_0x960e99){const _0x36619c=_0x42c3e5,_0x353014=this[_0x36619c(0x15d)]['get'](_0x33bcff)[_0x36619c(0x141)](this[_0x36619c(0x12b)],this[_0x36619c(0x13f)],this[_0x36619c(0x124)]);if(_0x353014){const _0x1a7a7a={'config':{'config':_0x960e99,'sparklines':_0x353014[_0x36619c(0x139)]},'isChangeDataSource':!0x1};this[_0x36619c(0x15d)][_0x36619c(0x136)](_0x248bc5)['syncExecuteCommand'](_0xb70d74['id'],_0x1a7a7a);}return this;}};w=J([K(0x5,_0x4bc04e(_0x35dea8))],w);class L extends _0x31cb0a{[_0x42c3e5(0x160)](_0xb08cfe,_0x336b5f,_0x2f97c4){const _0x4a2eea=_0x42c3e5;if(this[_0x4a2eea(0x144)]['syncExecuteCommand'](_0x2f6170['id'],{'sourceRanges':_0xb08cfe,'targetRanges':_0x336b5f,'targetInfo':{'unitId':this[_0x4a2eea(0x163)][_0x4a2eea(0x147)](),'subUnitId':this[_0x4a2eea(0x135)][_0x4a2eea(0x15a)]()},'config':{'type':_0x2f97c4}})){const {startRow:_0x8ae9bc,startColumn:_0x18df25}=_0x336b5f[0x0];return this[_0x4a2eea(0x158)](_0x8ae9bc,_0x18df25);}}['getAllSubSparkline'](){const _0x50e44b=_0x42c3e5;return this['_injector']['get'](_0x33bcff)[_0x50e44b(0x122)](this['_workbook'][_0x50e44b(0x147)](),this[_0x50e44b(0x135)][_0x50e44b(0x15a)]());}[_0x42c3e5(0x145)](_0x359901){const _0x4a24e9=_0x42c3e5,_0x2af843=this[_0x4a24e9(0x15d)][_0x4a24e9(0x136)](_0x33bcff);let _0x546e8f;for(let _0x40f2a2=0x0;_0x40f2a2<_0x359901[_0x4a24e9(0x146)];_0x40f2a2++){const _0x453d9b=_0x359901[_0x40f2a2],{startRow:_0x399c2a,endRow:_0x2b2544,startColumn:_0x2d510d,endColumn:_0x6ca86a}=_0x453d9b;for(let _0x878bfa=_0x399c2a;_0x878bfa<=_0x2b2544;_0x878bfa++)for(let _0x2923a0=_0x2d510d;_0x2923a0<=_0x6ca86a;_0x2923a0++){const _0x5fe4d=_0x2af843[_0x4a24e9(0x154)](this[_0x4a24e9(0x163)]['getUnitId'](),this[_0x4a24e9(0x135)]['getSheetId'](),_0x878bfa,_0x2923a0);if(_0x5fe4d){const _0x206a94=_0x2af843[_0x4a24e9(0x141)](this[_0x4a24e9(0x163)][_0x4a24e9(0x147)](),this[_0x4a24e9(0x135)][_0x4a24e9(0x15a)](),_0x5fe4d);if(_0x206a94){_0x546e8f=_0x2af42b[_0x4a24e9(0x14d)](_0x206a94);break;}}}}_0x546e8f&&this[_0x4a24e9(0x144)][_0x4a24e9(0x155)](_0xb70d74['id'],{'ranges':_0x359901,'combine':!0x0,'config':_0x546e8f,'isChangeDataSource':!0x1});}[_0x42c3e5(0x151)](_0x4fd2fc){const _0x384352=_0x42c3e5,_0x2e9a22=this['_injector'][_0x384352(0x136)](_0x33bcff);let _0x3a9cde;for(let _0x2aea61=0x0;_0x2aea61<_0x4fd2fc[_0x384352(0x146)];_0x2aea61++){const _0x26e7d9=_0x4fd2fc[_0x2aea61],{startRow:_0x587677,endRow:_0x3be69e,startColumn:_0x3156c6,endColumn:_0x4d5bd8}=_0x26e7d9;for(let _0x4fdbcf=_0x587677;_0x4fdbcf<=_0x3be69e;_0x4fdbcf++)for(let _0x223bd5=_0x3156c6;_0x223bd5<=_0x4d5bd8;_0x223bd5++){const _0x5ac93f=_0x2e9a22[_0x384352(0x154)](this[_0x384352(0x163)]['getUnitId'](),this[_0x384352(0x135)][_0x384352(0x15a)](),_0x4fdbcf,_0x223bd5);if(_0x5ac93f){const _0x5364d1=_0x2e9a22[_0x384352(0x141)](this[_0x384352(0x163)][_0x384352(0x147)](),this[_0x384352(0x135)][_0x384352(0x15a)](),_0x5ac93f);if(_0x5364d1){_0x3a9cde=_0x2af42b[_0x384352(0x14d)](_0x5364d1);break;}}}}_0x3a9cde||this['_commandService']['executeCommand'](_0xb70d74['id'],{'ranges':_0x4fd2fc,'unCombine':!0x0,'config':_0x3a9cde,'isChangeDataSource':!0x1});}[_0x42c3e5(0x158)](_0x1fdc33,_0x297ff6){const _0x394499=_0x42c3e5,_0x4c1c17=this[_0x394499(0x15d)][_0x394499(0x136)](_0x33bcff),_0x3f3115=this['_workbook']['getUnitId'](),_0x238033=this['_worksheet'][_0x394499(0x15a)](),_0x25150b=_0x4c1c17[_0x394499(0x154)](_0x3f3115,_0x238033,_0x1fdc33,_0x297ff6);if(_0x25150b)return this[_0x394499(0x15d)][_0x394499(0x148)](C,_0x3f3115,_0x238033,_0x25150b,_0x1fdc33,_0x297ff6);}['getSparklineGroupByCell'](_0x1aeffd,_0x47dc5a){const _0x191910=_0x42c3e5,_0x1d2345=this[_0x191910(0x15d)][_0x191910(0x136)](_0x33bcff),_0x35f327=this[_0x191910(0x163)][_0x191910(0x147)](),_0x22b84d=this['_worksheet']['getSheetId'](),_0x6dd12e=_0x1d2345[_0x191910(0x154)](_0x35f327,_0x22b84d,_0x1aeffd,_0x47dc5a);if(_0x6dd12e)return this[_0x191910(0x15d)][_0x191910(0x148)](w,_0x35f327,_0x22b84d,_0x6dd12e,_0x1aeffd,_0x47dc5a);}}_0x31cb0a[_0x42c3e5(0x128)](L);class Q extends _0x57ddb0{get[_0x42c3e5(0x12c)](){return _0xe84a1b;}}function _0x30ff(_0x36738e,_0x42afe7){const _0x20021a=_0x2002();return _0x30ff=function(_0x30ff86,_0x4e3ff3){_0x30ff86=_0x30ff86-0x121;let _0x4116c1=_0x20021a[_0x30ff86];return _0x4116c1;},_0x30ff(_0x36738e,_0x42afe7);}function _0x2002(){const _0x278d08=['onCommandExecuted','getSparklineByCell','_col','getSheetId','810gPDowC','fireEvent','_injector','getOwnPropertyDescriptor','filter','addSparkline','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','params','_workbook','removeSparklineGroup','sparklineAnchorMap','getSubUnitSparkline','getId','_groupId','1336089tvMrPO','2wJgIBV','30279964vONvoZ','extend','syncExecuteCommand','startRow','_unitId','SparklineTypeEnum','group','Event','121635LYbKTb','changeDataSource','getCurrentSelections','24YhbwWb','startColumn','cancel','_worksheet','get','355680oqXyMd','getSparklineCache','sparklines','isChangeDataSource','639493UzEkWK','getActiveWorkbook','item','groupId','_subUnitId','_row','getSparklineById','from','16rruxOX','_commandService','composeSparkline','length','getUnitId','createInstance','removeSparkline','getValue','5003747ewlpFu','range','deepClone','262715uyrVng','map','forEach','unComposeSparkline','SheetSparklineChanged','registerEventHandler','getSparkline','executeCommand','setConfig'];_0x2002=function(){return _0x278d08;};return _0x2002();}_0x57ddb0[_0x42c3e5(0x128)](Q);class X extends _0x13be0c{get['SheetSparklineChanged'](){return'SheetSparklineChanged';}}_0x13be0c['extend'](X);class Y extends _0x192e06{['_initialize'](_0x51ee53){const _0x1ce767=_0x42c3e5,_0x54bc2e=_0x51ee53['get'](_0x248bc5);this[_0x1ce767(0x153)](this[_0x1ce767(0x12e)][_0x1ce767(0x152)],()=>_0x54bc2e[_0x1ce767(0x157)](_0x327b24=>{const _0x44f0c6=_0x1ce767;var _0x1c55d4,_0x4d1935;if(_0x327b24['id']===_0xb70d74['id']){const _0x3cb0b6=_0x327b24[_0x44f0c6(0x162)];if(!_0x3cb0b6[_0x44f0c6(0x13a)]){const _0x105ff4=this[_0x44f0c6(0x13c)](),_0x47f4bb=_0x105ff4==null?void 0x0:_0x105ff4['getActiveSheet']();if(!_0x105ff4||!_0x47f4bb)return;const _0x1428ac=_0x105ff4[_0x44f0c6(0x123)](),_0x576ed0=_0x47f4bb[_0x44f0c6(0x15a)](),_0x5ebc56=this['_injector'][_0x44f0c6(0x136)](_0x5a6523),_0x4c265a=this[_0x44f0c6(0x15d)][_0x44f0c6(0x136)](_0x33bcff),_0x2e548f=(_0x1c55d4=_0x3cb0b6==null?void 0x0:_0x3cb0b6['ranges'])!=null?_0x1c55d4:_0x5ebc56[_0x44f0c6(0x131)]()[_0x44f0c6(0x14f)](_0xcb1a4f=>_0xcb1a4f[_0x44f0c6(0x14c)]),_0x1bd9e5=(_0x4d1935=_0x4c265a[_0x44f0c6(0x138)]()[_0x44f0c6(0x121)][_0x44f0c6(0x136)](_0x1428ac))==null?void 0x0:_0x4d1935[_0x44f0c6(0x136)](_0x576ed0),_0x2a4d06=new Set();_0x2e548f[_0x44f0c6(0x150)](_0xbae462=>{const _0x414586=_0x44f0c6;var _0x68e932;const {startRow:_0x15a5bc,endRow:_0x3ebba6,startColumn:_0xfb9f3e,endColumn:_0x369454}=_0xbae462;for(let _0x9f0146=_0x15a5bc;_0x9f0146<=_0x3ebba6;_0x9f0146++)for(let _0x20dcb5=_0xfb9f3e;_0x20dcb5<=_0x369454;_0x20dcb5++){const _0x15abfe=(_0x68e932=_0x1bd9e5==null?void 0x0:_0x1bd9e5['matrix'][_0x414586(0x14a)](_0x9f0146,_0x20dcb5))==null?void 0x0:_0x68e932[_0x414586(0x13e)];_0x15abfe&&_0x2a4d06['add'](_0x15abfe);}});const _0x2dc735=Array[_0x44f0c6(0x142)](_0x2a4d06)[_0x44f0c6(0x14f)](_0x3fa227=>_0x4c265a['getSparklineById'](_0x1428ac,_0x576ed0,_0x3fa227))[_0x44f0c6(0x15f)](_0x201bf4=>!!_0x201bf4),_0x3d2708={'workbook':_0x105ff4,'worksheet':_0x47f4bb,'sparklines':_0x2dc735};if(this[_0x44f0c6(0x15c)](this[_0x44f0c6(0x12e)][_0x44f0c6(0x152)],_0x3d2708),_0x3d2708[_0x44f0c6(0x134)])throw new Error(_0x44f0c6(0x161));}}}));}}_0x192e06[_0x42c3e5(0x128)](Y);export{C as FSparkline,w as FSparklineGroup};