@univerjs-pro/sheets-sparkline 0.12.4-insiders.20251213-692494c → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x7bca28=_0x215a;(function(_0xd941e3,_0x3e590c){const _0x39bd0c=_0x215a,_0x46648e=_0xd941e3();while(!![]){try{const _0x41930e=-parseInt(_0x39bd0c(0x240))/0x1*(parseInt(_0x39bd0c(0x1c9))/0x2)+parseInt(_0x39bd0c(0x229))/0x3+-parseInt(_0x39bd0c(0x18f))/0x4*(-parseInt(_0x39bd0c(0x1e5))/0x5)+-parseInt(_0x39bd0c(0x1e2))/0x6+-parseInt(_0x39bd0c(0x232))/0x7+parseInt(_0x39bd0c(0x21b))/0x8*(parseInt(_0x39bd0c(0x1aa))/0x9)+parseInt(_0x39bd0c(0x1fd))/0xa;if(_0x41930e===_0x3e590c)break;else _0x46648e['push'](_0x46648e['shift']());}catch(_0x24fbdd){_0x46648e['push'](_0x46648e['shift']());}}}(_0x3b16,0x953cb));var qe=Object[_0x7bca28(0x1ed)],Qe=(_0x28d800,_0x3368ed,_0x26bbd6)=>_0x3368ed in _0x28d800?qe(_0x28d800,_0x3368ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26bbd6}):_0x28d800[_0x3368ed]=_0x26bbd6,re=(_0x55a907,_0x7a71fe,_0x28ade6)=>Qe(_0x55a907,typeof _0x7a71fe!='symbol'?_0x7a71fe+'':_0x7a71fe,_0x28ade6);import{ObjectMatrix as _0x14599f,Inject as _0x4859aa,IUniverInstanceService as _0x2333fb,Disposable as _0x323f2b,isValidRange as _0x42b3fa,CellValueType as _0x4335dd,ColorKit as _0x30dea1,CommandType as _0x35eb78,Range as _0x1b6681,IUndoRedoService as _0x3a9262,generateRandomId as _0x4d040d,ICommandService as _0x5d9d84,Tools as _0x372585,sequenceExecute as _0x3b6676,Rectangle as _0x991d94,cellToRange as _0x29166f,DisposableCollection as _0x50f974,RANGE_TYPE as _0xce4c10,UniverInstanceType as _0x48bd24,IResourceManagerService as _0x37cfd1,DependentOn as _0x669323,Injector as _0x34a1fe,Plugin as _0x526cd1,touchDependencies as _0x3b2a7b}from'@univerjs/core';import{getSheetCommandTarget as _0x3df95d,SheetsSelectionsService as _0x282367,SheetInterceptorService as _0xb191a,ClearSelectionAllCommand as _0x1c86b4,IExclusiveRangeService as _0x19414a,SetRangeValuesMutation as _0x1a433c,ReorderRangeMutation as _0x7f44b4,SetRowHiddenMutation as _0x881ac,SetColHiddenMutation as _0x39ae28,SetRowVisibleMutation as _0x1c6cd6,SetColVisibleMutation as _0x140780,AddWorksheetMergeCommand as _0x436e53,RefRangeService as _0xfa61f6,SetWorksheetActivateCommand as _0x3aab27,RemoveRowCommand as _0x10e228,RemoveColCommand as _0x4eaa85,adjustRangeOnMutation as _0x13dcd7,RemoveRowMutation as _0x4a45c3,RemoveColMutation as _0x21aa39,InsertColMutation as _0x512a4e,InsertRowMutation as _0x1b59ae,MoveColsMutation as _0x21b9aa,MoveRowsMutation as _0x5ca113,MoveRangeMutation as _0xe963b3,RemoveSheetCommand as _0x48eb3b,CopySheetCommand as _0x3bc170}from'@univerjs/sheets';import{Subject as _0x51383a}from'rxjs';import{UniverLicensePlugin as _0x2cb3ef}from'@univerjs-pro/license';function Fe(_0x8c48d7,_0x43a77b){const _0x1c5728=_0x7bca28,_0x59f44d=new _0x14599f(),_0x58eb6c=[],_0xff7f65=_0x8c48d7[_0x1c5728(0x19d)]>0x1;let _0x49fbba=0x0,_0x3d54ce=0x0;for(const _0x295ccb of _0x8c48d7)_0x49fbba+=_0x295ccb['endRow']-_0x295ccb[_0x1c5728(0x1b1)]+0x1,_0x3d54ce+=_0x295ccb[_0x1c5728(0x1b9)]-_0x295ccb[_0x1c5728(0x21f)]+0x1;for(const _0x169a57 of _0x43a77b)for(let _0x4b40d8=_0x169a57[_0x1c5728(0x1b1)];_0x4b40d8<=_0x169a57['endRow'];_0x4b40d8++)for(let _0x2869db=_0x169a57[_0x1c5728(0x21f)];_0x2869db<=_0x169a57['endColumn'];_0x2869db++)_0x58eb6c['push']({'row':_0x4b40d8,'column':_0x2869db});if(_0x58eb6c[_0x1c5728(0x19d)]===_0x49fbba)_0xff7f65?_0x58eb6c[_0x1c5728(0x209)]((_0x85df74,_0x5678bf)=>{const _0x3d9251=_0x1c5728,_0x5e5880=_0x8c48d7[_0x5678bf],_0x42938f={'startRow':_0x5e5880[_0x3d9251(0x1b1)],'startColumn':_0x5e5880[_0x3d9251(0x21f)],'endRow':_0x5e5880[_0x3d9251(0x1b1)],'endColumn':_0x5e5880['endColumn']};_0x59f44d[_0x3d9251(0x216)](_0x85df74[_0x3d9251(0x1dc)],_0x85df74[_0x3d9251(0x221)],_0x42938f);}):_0x58eb6c[_0x1c5728(0x209)]((_0x18580,_0x4b84ec)=>{const _0x1a0a8a=_0x1c5728,_0x1f4620=_0x8c48d7[0x0],_0x2071db={'startRow':_0x1f4620[_0x1a0a8a(0x1b1)]+_0x4b84ec,'startColumn':_0x1f4620[_0x1a0a8a(0x21f)],'endRow':_0x1f4620[_0x1a0a8a(0x1b1)]+_0x4b84ec,'endColumn':_0x1f4620[_0x1a0a8a(0x1b9)]};_0x59f44d[_0x1a0a8a(0x216)](_0x18580[_0x1a0a8a(0x1dc)],_0x18580[_0x1a0a8a(0x221)],_0x2071db);});else{if(_0x58eb6c[_0x1c5728(0x19d)]===_0x3d54ce)_0xff7f65?_0x58eb6c['forEach']((_0x184df2,_0x1bef33)=>{const _0x20ffc1=_0x1c5728,_0x2e2a84=_0x8c48d7[_0x1bef33],_0x4e188e={'startRow':_0x2e2a84['startRow'],'startColumn':_0x2e2a84[_0x20ffc1(0x21f)],'endRow':_0x2e2a84['endRow'],'endColumn':_0x2e2a84[_0x20ffc1(0x21f)]};_0x59f44d[_0x20ffc1(0x216)](_0x184df2[_0x20ffc1(0x1dc)],_0x184df2[_0x20ffc1(0x221)],_0x4e188e);}):_0x58eb6c['forEach']((_0x138845,_0x2a182d)=>{const _0x467f26=_0x1c5728,_0x4896f6=_0x8c48d7[0x0],_0x4e97dc={'startRow':_0x4896f6[_0x467f26(0x1b1)],'startColumn':_0x4896f6[_0x467f26(0x21f)]+_0x2a182d,'endRow':_0x4896f6[_0x467f26(0x217)],'endColumn':_0x4896f6[_0x467f26(0x21f)]+_0x2a182d};_0x59f44d[_0x467f26(0x216)](_0x138845[_0x467f26(0x1dc)],_0x138845[_0x467f26(0x221)],_0x4e97dc);});else{if(_0x58eb6c[_0x1c5728(0x19d)]===_0x8c48d7['length'])_0x8c48d7[_0x1c5728(0x1f8)](_0x17751e=>!(_0x17751e[_0x1c5728(0x1b1)]!==_0x17751e['endRow']&&_0x17751e[_0x1c5728(0x21f)]!==_0x17751e['endColumn']))&&_0x58eb6c[_0x1c5728(0x209)]((_0x22232f,_0x31142b)=>{const _0x1801e9=_0x1c5728,_0x90357d=_0x8c48d7[_0x31142b];_0x59f44d[_0x1801e9(0x216)](_0x22232f[_0x1801e9(0x1dc)],_0x22232f[_0x1801e9(0x221)],_0x90357d);});else throw new Error(_0x1c5728(0x1ee));}}return _0x59f44d;}const Ke=_0x7bca28(0x230),Ge={'standard':[_0x7bca28(0x20b),_0x7bca28(0x204)],'specialty':['rgb(49,106,246)',_0x7bca28(0x222)],'distinctive':[_0x7bca28(0x1d0),_0x7bca28(0x206)],'soft':[_0x7bca28(0x1dd),_0x7bca28(0x183)],'fresh':['rgb(46,187,122)',_0x7bca28(0x185)]},an=['highPoint',_0x7bca28(0x187),'lastPoint',_0x7bca28(0x1f6),'negativePoint',_0x7bca28(0x194)];var ze=(_0x5584dc=>(_0x5584dc[_0x7bca28(0x1a0)]=_0x7bca28(0x20e),_0x5584dc[_0x7bca28(0x1b8)]='specialty',_0x5584dc[_0x7bca28(0x1d1)]=_0x7bca28(0x22b),_0x5584dc[_0x7bca28(0x1a5)]=_0x7bca28(0x1b7),_0x5584dc[_0x7bca28(0x200)]=_0x7bca28(0x184),_0x5584dc[_0x7bca28(0x1ca)]=_0x7bca28(0x1af),_0x5584dc))(ze||{}),Et=(_0x55522b=>(_0x55522b[_0x55522b[_0x7bca28(0x219)]=0x1]=_0x7bca28(0x219),_0x55522b[_0x55522b[_0x7bca28(0x190)]=0x2]='BAR_CHART',_0x55522b[_0x55522b[_0x7bca28(0x1c6)]=0x3]=_0x7bca28(0x1c6),_0x55522b[_0x55522b['PIE_CHART']=0x4]=_0x7bca28(0x214),_0x55522b))(Et||{}),J=(_0x207eba=>(_0x207eba[_0x7bca28(0x1a3)]='spacing',_0x207eba[_0x7bca28(0x1c7)]=_0x7bca28(0x1b2),_0x207eba[_0x7bca28(0x199)]=_0x7bca28(0x19c),_0x207eba))(J||{}),Ve=(_0xd4eb68=>(_0xd4eb68[_0xd4eb68['SELF_EXTREMUM']=0x1]=_0x7bca28(0x1f4),_0xd4eb68[_0xd4eb68['GROUP_EXTREMUM']=0x2]=_0x7bca28(0x21c),_0xd4eb68[_0xd4eb68[_0x7bca28(0x1ba)]=0x3]='CUSTOM_EXTREMUM',_0xd4eb68))(Ve||{}),Vt=Object['getOwnPropertyDescriptor'],yt=(_0x2ff731,_0xab2d65,_0x4a0d21,_0x13b0d4)=>{for(var _0xaab38e=_0x13b0d4>0x1?void 0x0:_0x13b0d4?Vt(_0xab2d65,_0x4a0d21):_0xab2d65,_0x38b769=_0x2ff731['length']-0x1,_0x446367;_0x38b769>=0x0;_0x38b769--)(_0x446367=_0x2ff731[_0x38b769])&&(_0xaab38e=_0x446367(_0xaab38e)||_0xaab38e);return _0xaab38e;},Nt=(_0x3c5c78,_0x43d362)=>(_0x4c1ba1,_0x30e026)=>_0x43d362(_0x4c1ba1,_0x30e026,_0x3c5c78);let x=class extends _0x323f2b{constructor(_0x4b4a2a){const _0x39230f=_0x7bca28;super(),re(this,_0x39230f(0x1d3),new Map()),re(this,_0x39230f(0x1b5),new Map()),re(this,_0x39230f(0x22f),new _0x51383a()),re(this,_0x39230f(0x205),this[_0x39230f(0x22f)][_0x39230f(0x1b4)]()),this[_0x39230f(0x239)]=_0x4b4a2a;}[_0x7bca28(0x21a)](_0x4ee767,_0xbecf2f){const _0x24db26=_0x7bca28;let _0x206331=this['_sparklineModel'][_0x24db26(0x23a)](_0x4ee767);_0x206331||(_0x206331=new Map(),this[_0x24db26(0x1d3)][_0x24db26(0x22e)](_0x4ee767,_0x206331));let _0x5d267f=_0x206331[_0x24db26(0x23a)](_0xbecf2f);return _0x5d267f||(_0x5d267f=new Map(),_0x206331[_0x24db26(0x22e)](_0xbecf2f,_0x5d267f)),_0x5d267f;}[_0x7bca28(0x1bc)](_0x5df4a6,_0x2c3c4e){const _0x485486=_0x7bca28;let _0x227ff2=this[_0x485486(0x1b5)][_0x485486(0x23a)](_0x5df4a6);_0x227ff2||(_0x227ff2=new Map(),this[_0x485486(0x1b5)]['set'](_0x5df4a6,_0x227ff2));let _0x42b833=_0x227ff2[_0x485486(0x23a)](_0x2c3c4e);return _0x42b833||(_0x42b833={'matrix':new _0x14599f(),'extra':{}},_0x227ff2[_0x485486(0x22e)](_0x2c3c4e,_0x42b833)),_0x42b833;}[_0x7bca28(0x1e6)](_0x5cb49e,_0x299bbe,_0x3063d9,_0x55cee7=_0x7bca28(0x22e)){const _0x7878ec=_0x7bca28;var _0x1397c3,_0x4339ee,_0x44aeda,_0x270299,_0x1659bd,_0x17fb0d,_0xe1c087,_0x48099c,_0x50bafd,_0x115a09,_0x433b07,_0xd9b1a0,_0x51cda0;const _0x9cdb48=(_0x4339ee=(_0x1397c3=this[_0x7878ec(0x1d3)][_0x7878ec(0x23a)](_0x5cb49e))==null?void 0x0:_0x1397c3[_0x7878ec(0x23a)](_0x299bbe))==null?void 0x0:_0x4339ee[_0x7878ec(0x23a)](_0x3063d9);if(!_0x9cdb48)return;const _0x4e9af4=_0x3df95d(this[_0x7878ec(0x239)],{'unitId':_0x5cb49e,'subUnitId':_0x299bbe});if(!_0x4e9af4)return;const _0x2f6e81=this[_0x7878ec(0x1bc)](_0x5cb49e,_0x299bbe),{extra:_0x3c9091,matrix:_0x24d0bb}=_0x2f6e81,{worksheet:_0x50e5b4}=_0x4e9af4;let _0x520083=Number[_0x7878ec(0x23b)],_0x191336=Number[_0x7878ec(0x228)];const _0x440746=(_0x44aeda=_0x9cdb48['config']['containHiddenCells'])!=null?_0x44aeda:!0x1;_0x9cdb48[_0x7878ec(0x215)]['forValue']((_0x4a32cb,_0x48c56e,_0x3f7ce4)=>{const _0x11db1c=_0x7878ec;var _0x2614f9,_0x48d1d7,_0x59caf7;const _0x281181=_0x3f7ce4;let _0x4d3cf0=Number['MIN_SAFE_INTEGER'],_0x36d134=Number['MAX_SAFE_INTEGER'],_0x105255=0x0,_0x75af75=0x0;const _0x39f43d=[];if(!_0x42b3fa(_0x281181))_0x24d0bb['setValue'](_0x4a32cb,_0x48c56e,{'groupId':_0x3063d9,'data':[],'max':_0x4d3cf0,'min':_0x36d134,'highIndex':_0x105255,'lowIndex':_0x75af75,'negativeIndexes':_0x39f43d});else{const _0x4f5fcc=[];for(let _0x34ef75=_0x281181[_0x11db1c(0x1b1)];_0x34ef75<=_0x281181['endRow'];_0x34ef75++){for(let _0x30523d=_0x281181['startColumn'];_0x30523d<=_0x281181[_0x11db1c(0x1b9)];_0x30523d++){const _0x2dbccb=_0x50e5b4[_0x11db1c(0x1a4)](_0x34ef75),_0x336320=_0x50e5b4[_0x11db1c(0x1e1)](_0x30523d);if(!_0x440746&&(!_0x2dbccb||!_0x336320))continue;let _0x241e2d=0x0;const _0xdfe78d=((_0x2614f9=_0x50e5b4[_0x11db1c(0x18b)](_0x34ef75,_0x30523d))==null?void 0x0:_0x2614f9['v'])!==void 0x0?_0x50e5b4[_0x11db1c(0x18b)](_0x34ef75,_0x30523d):_0x50e5b4[_0x11db1c(0x1b6)](_0x34ef75,_0x30523d);if(!_0xdfe78d||_0xdfe78d['v']===void 0x0||_0xdfe78d['v']===null){const _0x978c9e=(_0x48d1d7=_0x9cdb48[_0x11db1c(0x1ad)][_0x11db1c(0x18a)])!=null?_0x48d1d7:J['SPACING'];_0x978c9e===J[_0x11db1c(0x1c7)]?_0x241e2d=0x0:_0x978c9e===J[_0x11db1c(0x1a3)]?_0x241e2d=_0x11db1c(0x225):_0x978c9e===J['CONNECT_WITH_LINE']&&(_0x241e2d=_0x11db1c(0x1bd));}else{if(_0xdfe78d['t']===_0x4335dd[_0x11db1c(0x1f2)]||_0xdfe78d['t']===_0x4335dd[_0x11db1c(0x1d2)]){const _0x394276=(_0x59caf7=_0x9cdb48[_0x11db1c(0x1ad)]['nonNumShowAs'])!=null?_0x59caf7:J[_0x11db1c(0x1a3)];_0x394276===J['ZERO_VALUE']?_0x241e2d=0x0:_0x394276===J[_0x11db1c(0x1a3)]?_0x241e2d=_0x11db1c(0x225):_0x394276===J['CONNECT_WITH_LINE']&&(_0x241e2d=_0x11db1c(0x1bd));}else _0xdfe78d['t']===_0x4335dd['BOOLEAN']?_0x241e2d=_0xdfe78d['v']?0x1:0x0:_0xdfe78d['t']===_0x4335dd[_0x11db1c(0x19f)]?_0x241e2d=Number(_0xdfe78d['v']):_0x241e2d=_0xdfe78d['v'];}if(_0x4f5fcc[_0x11db1c(0x208)](_0x241e2d),typeof _0x241e2d==_0x11db1c(0x18e)){_0x4d3cf0=Math[_0x11db1c(0x1e9)](_0x4d3cf0,_0x241e2d),_0x520083=Math['max'](_0x520083,_0x241e2d),_0x191336=Math[_0x11db1c(0x1f0)](_0x191336,_0x241e2d),_0x36d134=Math[_0x11db1c(0x1f0)](_0x36d134,_0x241e2d);const _0x2f3075=typeof _0x4f5fcc[_0x105255]=='number'?Number(_0x4f5fcc[_0x105255]):Number[_0x11db1c(0x23b)];_0x241e2d>_0x2f3075&&(_0x105255=_0x4f5fcc['length']-0x1);const _0x27a262=typeof _0x4f5fcc[_0x75af75]=='number'?Number(_0x4f5fcc[_0x75af75]):Number[_0x11db1c(0x228)];_0x241e2d<_0x27a262&&(_0x75af75=_0x4f5fcc['length']-0x1),_0x241e2d<0x0&&_0x39f43d[_0x11db1c(0x208)](_0x4f5fcc[_0x11db1c(0x19d)]-0x1);}}_0x24d0bb['setValue'](_0x4a32cb,_0x48c56e,{'groupId':_0x3063d9,'data':_0x4f5fcc,'max':_0x4d3cf0,'min':_0x36d134,'highIndex':_0x105255,'lowIndex':_0x75af75,'negativeIndexes':_0x39f43d});}}});let _0x3c57a6=_0x520083;((_0x270299=_0x9cdb48['config'][_0x7878ec(0x213)])==null?void 0x0:_0x270299['type'])===Ve[_0x7878ec(0x1ba)]&&(_0x3c57a6=(_0x17fb0d=(_0x1659bd=_0x9cdb48[_0x7878ec(0x1ad)][_0x7878ec(0x213)])==null?void 0x0:_0x1659bd['value'])!=null?_0x17fb0d:_0x520083);let _0x143a93=_0x191336;((_0xe1c087=_0x9cdb48[_0x7878ec(0x1ad)][_0x7878ec(0x1c0)])==null?void 0x0:_0xe1c087[_0x7878ec(0x1a6)])===Ve['CUSTOM_EXTREMUM']&&(_0x143a93=(_0x50bafd=(_0x48099c=_0x9cdb48[_0x7878ec(0x1ad)][_0x7878ec(0x1c0)])==null?void 0x0:_0x48099c['value'])!=null?_0x50bafd:_0x191336);const _0x51b5bb=(_0x115a09=_0x9cdb48[_0x7878ec(0x1ad)][_0x7878ec(0x20c)])!=null?_0x115a09:ze[_0x7878ec(0x1a0)],_0x59d478=(_0x51cda0=(_0xd9b1a0=_0x9cdb48[_0x7878ec(0x1ad)][_0x7878ec(0x23e)])!=null?_0xd9b1a0:(_0x433b07=Ge[_0x51b5bb])==null?void 0x0:_0x433b07[0x0])!=null?_0x51cda0:Ge[_0x7878ec(0x20e)][0x0],_0xe862aa=new _0x30dea1(_0x59d478),_0x363f8c=_0xe862aa[_0x7878ec(0x1e0)](0.2)[_0x7878ec(0x1d6)](),_0x4317de=_0xe862aa[_0x7878ec(0x1e0)](0.05)[_0x7878ec(0x1d6)]();_0x3c9091[_0x3063d9]={'groupMax':_0x520083,'groupMin':_0x191336,'showMax':_0x3c57a6,'showMin':_0x143a93,'startGradient':_0x363f8c,'endGradient':_0x4317de},this['_updateConfig$'][_0x7878ec(0x1a7)]({'unitId':_0x5cb49e,'subUnitId':_0x299bbe,'groupId':_0x3063d9,'config':_0x9cdb48,'type':_0x55cee7});}['addSparkline'](_0x23d081,_0x32381a,_0x264b6,_0x4291d6){const _0x5f5b91=_0x7bca28;this['_ensureConfigMap'](_0x23d081,_0x32381a)[_0x5f5b91(0x22e)](_0x264b6,_0x4291d6),this['updateSparklineExtraNum'](_0x23d081,_0x32381a,_0x264b6,_0x5f5b91(0x19a));}[_0x7bca28(0x20f)](_0x53b50e,_0x56762c,_0x578c70,_0x2e0a5a){const _0x931cc0=_0x7bca28;var _0xdb463d;const _0x4d7624=(_0xdb463d=this[_0x931cc0(0x1d3)][_0x931cc0(0x23a)](_0x53b50e))==null?void 0x0:_0xdb463d[_0x931cc0(0x23a)](_0x56762c);_0x578c70[_0x931cc0(0x209)](_0x4d033d=>{const _0x346850=_0x931cc0;_0x4d7624!=null&&_0x4d7624[_0x346850(0x1da)](_0x4d033d)&&(_0x4d7624[_0x346850(0x22e)](_0x4d033d,_0x2e0a5a),this[_0x346850(0x1e6)](_0x53b50e,_0x56762c,_0x4d033d));});}['removeSparkline'](_0x3a7777,_0xd96407,_0x3a820d){const _0x4d80d3=_0x7bca28;var _0x3f4b20,_0x31f0e1;const _0x3f05b1=this[_0x4d80d3(0x1d3)][_0x4d80d3(0x23a)](_0x3a7777);if(_0x3f05b1){const _0x105813=_0x3f05b1[_0x4d80d3(0x23a)](_0xd96407);if(_0x105813){_0x105813[_0x4d80d3(0x1ae)](_0x3a820d);const _0x1cec10=(_0x3f4b20=this['_sparklineAnchorMap'][_0x4d80d3(0x23a)](_0x3a7777))==null?void 0x0:_0x3f4b20[_0x4d80d3(0x23a)](_0xd96407);(_0x31f0e1=_0x1cec10==null?void 0x0:_0x1cec10[_0x4d80d3(0x1be)])==null||_0x31f0e1[_0x4d80d3(0x201)]((_0x4e3115,_0x2e5353,_0x1a6215)=>{const _0x8ff5e3=_0x4d80d3;(_0x1a6215==null?void 0x0:_0x1a6215[_0x8ff5e3(0x234)])===_0x3a820d&&(_0x1cec10==null||_0x1cec10['matrix'][_0x8ff5e3(0x22d)](_0x4e3115,_0x2e5353));}),this[_0x4d80d3(0x22f)][_0x4d80d3(0x1a7)]({'unitId':_0x3a7777,'subUnitId':_0xd96407,'groupId':_0x3a820d,'type':_0x4d80d3(0x1d5)}),_0x105813['size']===0x0&&_0x3f05b1[_0x4d80d3(0x1ae)](_0xd96407);}}}[_0x7bca28(0x207)](_0x365c6f,_0x452a89,_0x187c6b,_0x3e532f){const _0x109a9e=_0x7bca28;var _0x3f5f92,_0x36820c,_0x294fbe,_0x35b4a8;const _0x7a5873=(_0x3f5f92=this[_0x109a9e(0x1b5)][_0x109a9e(0x23a)](_0x365c6f))==null?void 0x0:_0x3f5f92['get'](_0x452a89),_0x54c7f2=_0x7a5873==null?void 0x0:_0x7a5873[_0x109a9e(0x1be)]['getValue'](_0x187c6b,_0x3e532f);if(_0x54c7f2){const {groupId:_0x33dbfa}=_0x54c7f2,_0x2e0da3=(_0x36820c=this[_0x109a9e(0x1d3)][_0x109a9e(0x23a)](_0x365c6f))==null?void 0x0:_0x36820c[_0x109a9e(0x23a)](_0x452a89);(_0x294fbe=_0x2e0da3==null?void 0x0:_0x2e0da3['get'](_0x33dbfa))==null||_0x294fbe[_0x109a9e(0x215)]['realDeleteValue'](_0x187c6b,_0x3e532f),(_0x35b4a8=_0x2e0da3==null?void 0x0:_0x2e0da3[_0x109a9e(0x23a)](_0x33dbfa))!=null&&_0x35b4a8[_0x109a9e(0x215)][_0x109a9e(0x191)]()||_0x2e0da3==null||_0x2e0da3[_0x109a9e(0x1ae)](_0x33dbfa),_0x7a5873==null||_0x7a5873['matrix'][_0x109a9e(0x22d)](_0x187c6b,_0x3e532f),this[_0x109a9e(0x22f)][_0x109a9e(0x1a7)]({'unitId':_0x365c6f,'subUnitId':_0x452a89,'groupId':_0x33dbfa,'type':_0x109a9e(0x1d5)});}}[_0x7bca28(0x193)](_0x2afb3e,_0x39f512,_0x3920ad){const _0x57e77f=_0x7bca28;var _0x2db859,_0x3b4e64,_0x264efb,_0x3df8de;const _0x19d061=(_0x264efb=(_0x3b4e64=(_0x2db859=this[_0x57e77f(0x1d3)][_0x57e77f(0x23a)](_0x2afb3e))==null?void 0x0:_0x2db859[_0x57e77f(0x23a)](_0x39f512))==null?void 0x0:_0x3b4e64['get'](_0x3920ad))==null?void 0x0:_0x264efb[_0x57e77f(0x215)],_0x3326c4=(_0x3df8de=this[_0x57e77f(0x1b5)][_0x57e77f(0x23a)](_0x2afb3e))==null?void 0x0:_0x3df8de['get'](_0x39f512);if(_0x19d061&&_0x3326c4){const {matrix:_0x324003,extra:_0x190d64}=_0x3326c4;_0x19d061[_0x57e77f(0x201)]((_0x5808f5,_0x50d642,_0xdb3c18)=>{const _0x4c19d5=_0x57e77f;_0x324003[_0x4c19d5(0x22d)](_0x5808f5,_0x50d642);}),delete _0x190d64[_0x3920ad];}}[_0x7bca28(0x1cc)](_0x12e64c,_0x47c2a1){const _0x56cc0e=_0x7bca28;var _0x568ac2;return(_0x568ac2=this[_0x56cc0e(0x1d3)][_0x56cc0e(0x23a)](_0x12e64c))==null?void 0x0:_0x568ac2[_0x56cc0e(0x23a)](_0x47c2a1);}[_0x7bca28(0x22a)](_0x59ca2f,_0x2b2173,_0x5721b4){const _0x341413=_0x7bca28;var _0x1af7b8,_0x41ada8;return(_0x41ada8=(_0x1af7b8=this[_0x341413(0x1d3)][_0x341413(0x23a)](_0x59ca2f))==null?void 0x0:_0x1af7b8[_0x341413(0x23a)](_0x2b2173))==null?void 0x0:_0x41ada8[_0x341413(0x23a)](_0x5721b4);}[_0x7bca28(0x1e4)](_0x2163e1,_0x1fee06,_0x380812,_0x346f83){const _0x285966=_0x7bca28;var _0x24baec,_0x587536,_0x54403f;return(_0x54403f=(_0x587536=(_0x24baec=this[_0x285966(0x1b5)]['get'](_0x2163e1))==null?void 0x0:_0x24baec[_0x285966(0x23a)](_0x1fee06))==null?void 0x0:_0x587536['matrix'][_0x285966(0x1f1)](_0x380812,_0x346f83))==null?void 0x0:_0x54403f[_0x285966(0x234)];}[_0x7bca28(0x1c3)](_0x2dd435,_0x43a44f){const _0x30e851=_0x7bca28;var _0x4b54b3;const _0x584168=this['_ensureAnchorMatrix'](_0x2dd435,_0x43a44f);_0x584168[_0x30e851(0x1be)][_0x30e851(0x201)]((_0x4ee415,_0x365584)=>{const _0x1eccbe=_0x30e851;_0x584168[_0x1eccbe(0x1be)][_0x1eccbe(0x22d)](_0x4ee415,_0x365584);});const _0x5335a0=(_0x4b54b3=this[_0x30e851(0x1d3)][_0x30e851(0x23a)](_0x2dd435))==null?void 0x0:_0x4b54b3[_0x30e851(0x23a)](_0x43a44f);if(_0x5335a0){for(const [_0x1a613a]of _0x5335a0)this[_0x30e851(0x1e6)](_0x2dd435,_0x43a44f,_0x1a613a);}}[_0x7bca28(0x1ef)](){const _0x2dded8=_0x7bca28;return{'sparklineModel':this['_sparklineModel'],'sparklineAnchorMap':this[_0x2dded8(0x1b5)]};}[_0x7bca28(0x1d7)](_0x242304){const _0x42d1e2=_0x7bca28,_0x67970d={};if(this[_0x42d1e2(0x1d3)]['has'](_0x242304)){_0x67970d[_0x242304]={};const _0x3c2145=this[_0x42d1e2(0x1d3)][_0x42d1e2(0x23a)](_0x242304);_0x3c2145!=null&&_0x3c2145['size']&&Array[_0x42d1e2(0x22c)](_0x3c2145[_0x42d1e2(0x1e7)]())[_0x42d1e2(0x209)](_0xb6afe2=>{const _0x465ef2=_0x42d1e2;_0x67970d[_0x242304][_0xb6afe2]={};const _0x22827b=_0x3c2145[_0x465ef2(0x23a)](_0xb6afe2);_0x22827b!=null&&_0x22827b[_0x465ef2(0x1c8)]&&Array['from'](_0x22827b[_0x465ef2(0x1e7)]())[_0x465ef2(0x209)](_0x3a22cd=>{const _0x533e2d=_0x465ef2,_0x2df06a=_0x22827b[_0x533e2d(0x23a)](_0x3a22cd);_0x2df06a&&(_0x67970d[_0x242304][_0xb6afe2][_0x3a22cd]={'config':_0x2df06a[_0x533e2d(0x1ad)],'sparklines':_0x2df06a[_0x533e2d(0x215)][_0x533e2d(0x186)]()});});});}return _0x67970d;}[_0x7bca28(0x231)](_0x1e4de5){if(!_0x1e4de5)return;Object['keys'](_0x1e4de5)['forEach'](_0x102cb3=>{const _0x49a48c=_0x215a,_0x536db1=_0x1e4de5[_0x102cb3];_0x536db1&&Object[_0x49a48c(0x1e7)](_0x536db1)['forEach'](_0x60e1a0=>{const _0x3f36d=_0x49a48c,_0x32b3cf=_0x536db1[_0x60e1a0];_0x32b3cf&&Object[_0x3f36d(0x1e7)](_0x32b3cf)[_0x3f36d(0x209)](_0x5e2477=>{const _0x21cd0d=_0x3f36d,_0x103035=_0x32b3cf[_0x5e2477];if(_0x103035){const _0x3cee07={'config':_0x103035[_0x21cd0d(0x1ad)],'sparklines':new _0x14599f(_0x103035[_0x21cd0d(0x215)])};this[_0x21cd0d(0x210)](_0x102cb3,_0x60e1a0,_0x5e2477,_0x3cee07);}});});});}[_0x7bca28(0x1cb)](_0x52440a){const _0x2377c3=_0x7bca28,_0x5c778f=this[_0x2377c3(0x1d3)][_0x2377c3(0x23a)](_0x52440a);if(_0x5c778f){for(const [_0xdc42b2]of _0x5c778f){const _0x48fc11=_0x5c778f[_0x2377c3(0x23a)](_0xdc42b2);if(_0x48fc11){for(const [_0x1833c5]of _0x48fc11)this[_0x2377c3(0x193)](_0x52440a,_0xdc42b2,_0x1833c5);}}this[_0x2377c3(0x1d3)][_0x2377c3(0x1ae)](_0x52440a);}}};x=yt([Nt(0x0,_0x4859aa(_0x2333fb))],x);const V={'id':_0x7bca28(0x1eb),'type':_0x35eb78[_0x7bca28(0x238)],'handler':(_0x2ee817,_0x431875)=>{const _0x3bb3d3=_0x7bca28;if(!_0x431875)return!0x1;const {sparklineConfigMap:_0x14239a,unitId:_0x51a9f8,subUnitId:_0x31e3f4}=_0x431875,_0x5b47f9=_0x2ee817[_0x3bb3d3(0x23a)](x);return Object[_0x3bb3d3(0x1db)](_0x14239a)[_0x3bb3d3(0x209)](([_0x83dc5f,_0x352ee9])=>{const _0x163687=_0x3bb3d3,_0x2502c7={'config':_0x352ee9[_0x163687(0x1ad)],'sparklines':new _0x14599f(_0x352ee9[_0x163687(0x215)])};_0x5b47f9[_0x163687(0x210)](_0x51a9f8,_0x31e3f4,_0x83dc5f,_0x2502c7);}),!0x0;}},y={'id':_0x7bca28(0x1cd),'type':_0x35eb78['MUTATION'],'handler':(_0x53ce2e,_0x31bf5b)=>{const _0x1f3209=_0x7bca28;if(!_0x31bf5b)return!0x1;const {unitId:_0x1f98c5,subUnitId:_0x3287d3,ranges:_0x18c61d,isSingle:_0xf3bafa,groupIds:_0x180347}=_0x31bf5b,_0x570f03=_0x53ce2e['get'](x);return _0x180347?(_0x180347[_0x1f3209(0x209)](_0x3a2d98=>{const _0x1e39ad=_0x1f3209;_0x570f03[_0x1e39ad(0x1ce)](_0x1f98c5,_0x3287d3,_0x3a2d98);}),!0x0):_0x18c61d?(_0x18c61d['forEach'](_0x3a31f3=>{_0x1b6681['foreach'](_0x3a31f3,(_0x33a8b3,_0x3a1ae5)=>{const _0x2e75af=_0x215a,_0x934672=_0x570f03[_0x2e75af(0x1e4)](_0x1f98c5,_0x3287d3,_0x33a8b3,_0x3a1ae5);_0x934672&&(_0xf3bafa?_0x570f03[_0x2e75af(0x207)](_0x1f98c5,_0x3287d3,_0x33a8b3,_0x3a1ae5):_0x570f03[_0x2e75af(0x1ce)](_0x1f98c5,_0x3287d3,_0x934672));});}),!0x0):!0x1;}},Ot={'id':'sheet.command.add-sparkline','type':_0x35eb78['COMMAND'],'handler':(_0x3bd77f,_0x584a27)=>{const _0x471169=_0x7bca28;if(!_0x584a27)return!0x1;const {sourceRanges:_0x15060a,targetRanges:_0x70de16,config:_0x3c61e0}=_0x584a27,_0x14b6d5=_0x3bd77f[_0x471169(0x23a)](_0x3a9262),_0x445218='g_'+_0x4d040d(0x6),_0x193259=Fe(_0x15060a,_0x70de16),_0x473f99={'config':_0x3c61e0!=null?_0x3c61e0:{},'sparklines':_0x193259[_0x471169(0x186)]()},_0x312168=_0x3bd77f[_0x471169(0x23a)](_0x2333fb),_0x528026=_0x3bd77f[_0x471169(0x23a)](x),_0x5b57e6=_0x3df95d(_0x312168);if(!_0x5b57e6)return!0x1;const {unitId:_0x3671f6,subUnitId:_0x1c2ec8}=_0x5b57e6,_0x5318cc=_0x3bd77f['get'](_0x5d9d84),_0xc6676d=[],_0xf829ac=[],_0x2ba5dc={},_0x14e530={},_0x188977=new Set([_0x445218]);_0x193259[_0x471169(0x201)]((_0x1492c9,_0x164edf,_0xde161b)=>{const _0x1fc69c=_0x471169,_0x47a37e=_0x528026[_0x1fc69c(0x1e4)](_0x3671f6,_0x1c2ec8,_0x1492c9,_0x164edf);if(_0x47a37e){const _0x5012f0=_0x528026['getSparklineById'](_0x3671f6,_0x1c2ec8,_0x47a37e);if(_0x5012f0){_0x188977['add'](_0x47a37e);let _0x14d6ed=_0x2ba5dc[_0x47a37e],_0x2cde3f=_0x14e530[_0x47a37e];_0x2cde3f||(_0x2cde3f={'config':_0x372585['deepClone'](_0x5012f0[_0x1fc69c(0x1ad)]),'sparklines':new _0x14599f(_0x5012f0[_0x1fc69c(0x215)][_0x1fc69c(0x203)]())},_0x14e530[_0x47a37e]=_0x2cde3f),_0x14d6ed||(_0x14d6ed={'config':_0x372585['deepClone'](_0x5012f0['config']),'sparklines':_0x5012f0[_0x1fc69c(0x215)][_0x1fc69c(0x203)]()},_0x2ba5dc[_0x47a37e]=_0x14d6ed),_0x2cde3f['sparklines']['realDeleteValue'](_0x1492c9,_0x164edf);}}});const _0x1ad860={};return Object[_0x471169(0x1db)](_0x14e530)[_0x471169(0x209)](([_0x2b5c27,_0x8c72b2])=>{const _0x4b0c1d=_0x471169;_0x8c72b2[_0x4b0c1d(0x215)][_0x4b0c1d(0x1cf)]()&&(_0x1ad860[_0x2b5c27]={'config':_0x8c72b2[_0x4b0c1d(0x1ad)],'sparklines':_0x8c72b2[_0x4b0c1d(0x215)][_0x4b0c1d(0x203)]()});}),_0x1ad860[_0x445218]=_0x473f99,_0xc6676d[_0x471169(0x208)]({'id':y['id'],'params':{'unitId':_0x3671f6,'subUnitId':_0x1c2ec8,'groupIds':Array[_0x471169(0x22c)](_0x188977),'isSingle':!0x1}}),_0x188977[_0x471169(0x1c8)]>0x1&&(_0xf829ac[_0x471169(0x208)]({'id':y['id'],'params':{'unitId':_0x3671f6,'subUnitId':_0x1c2ec8,'groupIds':Array[_0x471169(0x22c)](_0x188977),'isSingle':!0x1}}),_0xc6676d['push']({'id':V['id'],'params':{'unitId':_0x3671f6,'subUnitId':_0x1c2ec8,'sparklineConfigMap':_0x2ba5dc}})),_0xf829ac[_0x471169(0x208)]({'id':V['id'],'params':{'unitId':_0x3671f6,'subUnitId':_0x1c2ec8,'sparklineConfigMap':_0x1ad860}}),_0x3b6676(_0xf829ac,_0x5318cc),_0x14b6d5[_0x471169(0x1ab)]({'unitID':_0x3671f6,'undoMutations':_0xc6676d,'redoMutations':_0xf829ac}),!0x0;}},xt={'id':'sheet.command.remove-sparkline','type':_0x35eb78[_0x7bca28(0x212)],'handler':(_0x4e2ad1,_0x11a72b)=>{const _0x2237d2=_0x7bca28;var _0x2acef9;const {isSingle:_0x15897c=!0x0}=_0x11a72b||{},_0x1988cc=_0x4e2ad1[_0x2237d2(0x23a)](_0x5d9d84),_0x558361=_0x4e2ad1[_0x2237d2(0x23a)](_0x2333fb),_0x5dfcc2=_0x4e2ad1[_0x2237d2(0x23a)](x),_0x3d40ed=_0x4e2ad1[_0x2237d2(0x23a)](_0x3a9262),_0x1a021b=_0x3df95d(_0x558361);if(!_0x1a021b)return!0x1;const _0x5ddde0=_0x4e2ad1[_0x2237d2(0x23a)](_0x282367),_0x491824=(_0x2acef9=_0x11a72b==null?void 0x0:_0x11a72b[_0x2237d2(0x1e3)])!=null?_0x2acef9:_0x5ddde0[_0x2237d2(0x1b3)]()[_0x2237d2(0x226)](_0x10b343=>_0x10b343[_0x2237d2(0x23c)]),{unitId:_0x13db4e,subUnitId:_0x4a944b}=_0x1a021b,_0x14e0a7=[],_0x288c3d=[];_0x14e0a7[_0x2237d2(0x208)]({'id':y['id'],'params':{'unitId':_0x13db4e,'subUnitId':_0x4a944b,'ranges':_0x491824,'isSingle':_0x15897c}});const _0xdb3338=[],_0x2d4fd7={};return _0x491824[_0x2237d2(0x209)](_0x535578=>{const _0x570058=_0x2237d2;_0x1b6681[_0x570058(0x1df)](_0x535578,(_0x275c9d,_0x413d1d)=>{const _0x94856c=_0x570058,_0x42064d=_0x5dfcc2[_0x94856c(0x1e4)](_0x13db4e,_0x4a944b,_0x275c9d,_0x413d1d);if(_0x42064d){const _0x479149=_0x5dfcc2[_0x94856c(0x22a)](_0x13db4e,_0x4a944b,_0x42064d);_0x479149&&(_0xdb3338[_0x94856c(0x208)](_0x42064d),_0x2d4fd7[_0x42064d]={'config':_0x372585['deepClone'](_0x479149[_0x94856c(0x1ad)]),'sparklines':_0x372585[_0x94856c(0x1ac)](_0x479149['sparklines'][_0x94856c(0x203)]())});}});}),_0x288c3d['push']({'id':y['id'],'params':{'unitId':_0x13db4e,'subUnitId':_0x4a944b,'groupIds':_0xdb3338,'isSingle':!0x1}}),_0x288c3d[_0x2237d2(0x208)]({'id':V['id'],'params':{'unitId':_0x13db4e,'subUnitId':_0x4a944b,'sparklineConfigMap':_0x2d4fd7}}),_0x3b6676(_0x14e0a7,_0x1988cc),_0x3d40ed[_0x2237d2(0x1ab)]({'unitID':_0x13db4e,'undoMutations':_0x288c3d,'redoMutations':_0x14e0a7}),!0x0;}},xe={'id':_0x7bca28(0x223),'type':_0x35eb78[_0x7bca28(0x238)],'handler':(_0x3edbe6,_0xbf358d)=>{const _0x58083f=_0x7bca28;if(!_0xbf358d)return!0x1;const {unitId:_0x51ccb8,subUnitId:_0x337686,groupIds:_0x17936d,config:_0x3f7eb7}=_0xbf358d,_0x4dd90b=_0x3edbe6[_0x58083f(0x23a)](x);return _0x17936d[_0x58083f(0x209)](_0x33d60e=>{const _0xa8ce8b=_0x58083f,_0x11c0e1=_0x4dd90b['getSparklineById'](_0x51ccb8,_0x337686,_0x33d60e);if(_0x11c0e1){const _0x2b1833={'config':Object['assign']({},_0x11c0e1['config'],_0x3f7eb7[_0xa8ce8b(0x1ad)]),'sparklines':new _0x14599f(_0x11c0e1[_0xa8ce8b(0x215)][_0xa8ce8b(0x203)]())};_0x4dd90b['setSparkline'](_0x51ccb8,_0x337686,[_0x33d60e],_0x2b1833);}}),!0x0;}},Ut={'id':_0x7bca28(0x1a8),'type':_0x35eb78['COMMAND'],'handler':(_0x10cb8d,_0x5af4b5)=>{const _0x564469=_0x7bca28;var _0x3441b8,_0x51e1e6,_0x43117b,_0x186971;if(!_0x5af4b5)return!0x1;const _0x5e9314=_0x10cb8d[_0x564469(0x23a)](_0x5d9d84),_0x3d338c=_0x10cb8d[_0x564469(0x23a)](_0x282367),_0x396155=_0x10cb8d[_0x564469(0x23a)](x),_0x13ea0a=_0x10cb8d['get'](_0x2333fb),_0x37b234=_0x10cb8d[_0x564469(0x23a)](_0x3a9262),_0x284af4=_0x3df95d(_0x13ea0a);if(!_0x284af4)return!0x1;const {unitId:_0x3d7a81,subUnitId:_0x21df96}=_0x284af4,_0x302999=(_0x3441b8=_0x5af4b5==null?void 0x0:_0x5af4b5[_0x564469(0x1e3)])!=null?_0x3441b8:_0x3d338c[_0x564469(0x1b3)]()['map'](_0x533f3b=>_0x533f3b[_0x564469(0x23c)]),_0x1af318=(_0x51e1e6=_0x396155['getSparklineCache']()['sparklineAnchorMap'][_0x564469(0x23a)](_0x3d7a81))==null?void 0x0:_0x51e1e6['get'](_0x21df96),{isChangeDataSource:_0x31513d,config:_0x48943f,combine:_0x3cf956,unCombine:_0xdc1758}=_0x5af4b5;if(_0x3cf956){const _0x1fc3c8=[],_0x4b7056=[];_0x1fc3c8[_0x564469(0x208)]({'id':y['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'ranges':_0x302999,'isSingle':!0x0}});const _0x52d808='g_'+_0x4d040d(0x6),_0x5af653=new _0x14599f(),_0x209822=(_0x43117b=_0x396155[_0x564469(0x1ef)]()['sparklineModel'][_0x564469(0x23a)](_0x3d7a81))==null?void 0x0:_0x43117b[_0x564469(0x23a)](_0x21df96),_0x583379=new Set([_0x52d808]),_0x3e2023={};return _0x302999[_0x564469(0x209)](_0x45ffc9=>{const _0x5eddc5=_0x564469;var _0x1295ad,_0x380f2d;const {startRow:_0x349003,endRow:_0x511f2f,startColumn:_0x40e32e,endColumn:_0x425ba9}=_0x45ffc9;for(let _0x2af295=_0x349003;_0x2af295<=_0x511f2f;_0x2af295++)for(let _0x22c5b3=_0x40e32e;_0x22c5b3<=_0x425ba9;_0x22c5b3++){const _0x5e4bf6=(_0x1295ad=_0x1af318==null?void 0x0:_0x1af318[_0x5eddc5(0x1be)][_0x5eddc5(0x1f1)](_0x2af295,_0x22c5b3))==null?void 0x0:_0x1295ad['groupId'];if(_0x5e4bf6){_0x583379[_0x5eddc5(0x19a)](_0x5e4bf6);const _0x3d3de4=_0x396155['getSparklineById'](_0x3d7a81,_0x21df96,_0x5e4bf6);_0x3d3de4&&(_0x3e2023[_0x5e4bf6]={'config':_0x372585[_0x5eddc5(0x1ac)](_0x3d3de4[_0x5eddc5(0x1ad)]),'sparklines':_0x372585[_0x5eddc5(0x1ac)](_0x3d3de4[_0x5eddc5(0x215)][_0x5eddc5(0x203)]())});const _0x2e55a2=(_0x380f2d=_0x209822==null?void 0x0:_0x209822[_0x5eddc5(0x23a)](_0x5e4bf6))==null?void 0x0:_0x380f2d[_0x5eddc5(0x215)][_0x5eddc5(0x1f1)](_0x2af295,_0x22c5b3);_0x2e55a2&&_0x5af653[_0x5eddc5(0x216)](_0x2af295,_0x22c5b3,_0x2e55a2);}}}),_0x1fc3c8[_0x564469(0x208)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x52d808]:{'config':_0x372585['deepClone'](_0x48943f[_0x564469(0x1ad)]),'sparklines':_0x5af653[_0x564469(0x186)]()}},'unitId':_0x3d7a81,'subUnitId':_0x21df96}}),_0x4b7056['push']({'id':y['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'isSingle':!0x1,'groupIds':Array[_0x564469(0x22c)](_0x583379)}}),_0x4b7056[_0x564469(0x208)]({'id':V['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'sparklineConfigMap':_0x3e2023}}),_0x3b6676(_0x1fc3c8,_0x5e9314),_0x37b234[_0x564469(0x1ab)]({'unitID':_0x3d7a81,'undoMutations':_0x4b7056,'redoMutations':_0x1fc3c8}),!0x0;}else{if(_0xdc1758){const _0x30acb3=[],_0x384b4e=[];_0x30acb3[_0x564469(0x208)]({'id':y['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'ranges':_0x302999,'isSingle':!0x0}});const _0x1fc401=(_0x186971=_0x396155[_0x564469(0x1ef)]()['sparklineModel'][_0x564469(0x23a)](_0x3d7a81))==null?void 0x0:_0x186971[_0x564469(0x23a)](_0x21df96),_0x471187={},_0x59a64c=new Set(),_0x86c0ad={};return _0x302999[_0x564469(0x209)](_0x270207=>{const _0x2f0a9a=_0x564469;var _0x1d6365,_0x2c3623;const {startRow:_0x38e95e,endRow:_0x323575,startColumn:_0x43010f,endColumn:_0x48c24b}=_0x270207;for(let _0x42b96e=_0x38e95e;_0x42b96e<=_0x323575;_0x42b96e++)for(let _0x5d61f2=_0x43010f;_0x5d61f2<=_0x48c24b;_0x5d61f2++){const _0x3c6e92=(_0x1d6365=_0x1af318==null?void 0x0:_0x1af318['matrix'][_0x2f0a9a(0x1f1)](_0x42b96e,_0x5d61f2))==null?void 0x0:_0x1d6365[_0x2f0a9a(0x234)];if(_0x3c6e92){const _0x491eca=new _0x14599f(),_0x45681f='g_'+_0x4d040d(0x6);_0x59a64c[_0x2f0a9a(0x19a)](_0x3c6e92),_0x59a64c[_0x2f0a9a(0x19a)](_0x45681f);const _0x43d78e=_0x396155[_0x2f0a9a(0x22a)](_0x3d7a81,_0x21df96,_0x3c6e92);_0x43d78e&&(_0x86c0ad[_0x3c6e92]={'config':_0x372585['deepClone'](_0x43d78e[_0x2f0a9a(0x1ad)]),'sparklines':_0x372585[_0x2f0a9a(0x1ac)](_0x43d78e[_0x2f0a9a(0x215)][_0x2f0a9a(0x203)]())});const _0x4bb2a6=(_0x2c3623=_0x1fc401==null?void 0x0:_0x1fc401[_0x2f0a9a(0x23a)](_0x3c6e92))==null?void 0x0:_0x2c3623[_0x2f0a9a(0x215)]['getValue'](_0x42b96e,_0x5d61f2);_0x4bb2a6&&_0x491eca[_0x2f0a9a(0x216)](_0x42b96e,_0x5d61f2,_0x4bb2a6),_0x471187[_0x45681f]={'sparklines':_0x491eca[_0x2f0a9a(0x186)](),'config':_0x372585[_0x2f0a9a(0x1ac)](_0x48943f[_0x2f0a9a(0x1ad)])};}}}),_0x30acb3['push']({'id':V['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'sparklineConfigMap':_0x471187}}),_0x384b4e['push']({'id':y['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'isSingle':!0x1,'groupIds':Array['from'](_0x59a64c)}}),_0x384b4e[_0x564469(0x208)]({'id':V['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'sparklineConfigMap':_0x86c0ad}}),_0x3b6676(_0x30acb3,_0x5e9314),_0x37b234[_0x564469(0x1ab)]({'unitID':_0x3d7a81,'undoMutations':_0x384b4e,'redoMutations':_0x30acb3}),!0x0;}}if(_0x31513d){const _0x496845=_0x5af4b5['changeDataSourceInfo'];if(!_0x496845)return!0x1;const {groupId:_0x4f9a39,sourceRanges:_0x76726,targetRanges:_0x26fbc8,resetType:_0x286d9c,primary:_0x1ce0cc}=_0x496845,_0x10161c=[],_0x16b891=[];_0x10161c[_0x564469(0x208)]({'id':y['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'ranges':_0x302999,'isSingle':!0x1,'groupIds':[_0x4f9a39]}}),_0x16b891[_0x564469(0x208)]({'id':y['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'ranges':_0x302999,'isSingle':!0x1,'groupIds':[_0x4f9a39]}});let _0x3fe72a;_0x286d9c===_0x564469(0x1f5)?(_0x3fe72a=new _0x14599f(_0x48943f['sparklines'][_0x564469(0x203)]()),_0x3fe72a[_0x564469(0x22d)](_0x1ce0cc[_0x564469(0x19b)],_0x1ce0cc['actualColumn']),_0x3fe72a[_0x564469(0x216)](_0x26fbc8[0x0][_0x564469(0x1b1)],_0x26fbc8[0x0][_0x564469(0x21f)],_0x76726[0x0])):_0x3fe72a=Fe(_0x76726,_0x26fbc8);const _0x4d5558={'config':_0x372585[_0x564469(0x1ac)](_0x48943f['config']),'sparklines':_0x3fe72a[_0x564469(0x186)]()},_0x4e8302={'config':_0x372585[_0x564469(0x1ac)](_0x48943f[_0x564469(0x1ad)]),'sparklines':_0x372585['deepClone'](_0x48943f[_0x564469(0x215)][_0x564469(0x203)]())};_0x10161c[_0x564469(0x208)]({'id':V['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'sparklineConfigMap':{[_0x4f9a39]:_0x4d5558}}}),_0x16b891[_0x564469(0x208)]({'id':V['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'sparklineConfigMap':{[_0x4f9a39]:_0x4e8302}}}),_0x3b6676(_0x10161c,_0x5e9314),_0x37b234[_0x564469(0x1ab)]({'unitID':_0x3d7a81,'undoMutations':_0x16b891,'redoMutations':_0x10161c});}else{const _0x553253=[],_0x111cf0=[],_0x193718=new Set(),_0x179ed3={};_0x302999['forEach'](_0x5adc55=>{const _0x12d9ab=_0x564469;var _0x58c616;const {startRow:_0x5e27d0,endRow:_0x5693ce,startColumn:_0x38cfbe,endColumn:_0x542106}=_0x5adc55;for(let _0x1a7742=_0x5e27d0;_0x1a7742<=_0x5693ce;_0x1a7742++)for(let _0x38a009=_0x38cfbe;_0x38a009<=_0x542106;_0x38a009++){const _0x45824b=(_0x58c616=_0x1af318==null?void 0x0:_0x1af318['matrix']['getValue'](_0x1a7742,_0x38a009))==null?void 0x0:_0x58c616[_0x12d9ab(0x234)];if(_0x45824b){_0x193718[_0x12d9ab(0x19a)](_0x45824b);const _0x7e9313=_0x396155['getSparklineById'](_0x3d7a81,_0x21df96,_0x45824b);_0x7e9313&&(_0x179ed3[_0x45824b]={'config':_0x372585[_0x12d9ab(0x1ac)](_0x7e9313[_0x12d9ab(0x1ad)]),'sparklines':_0x372585[_0x12d9ab(0x1ac)](_0x7e9313[_0x12d9ab(0x215)][_0x12d9ab(0x203)]())});}}}),_0x111cf0['push']({'id':xe['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'groupIds':Array[_0x564469(0x22c)](_0x193718),'config':{'config':_0x372585[_0x564469(0x1ac)](_0x48943f[_0x564469(0x1ad)]),'sparklines':_0x48943f['sparklines'][_0x564469(0x186)]()}}}),_0x553253[_0x564469(0x208)]({'id':y['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'isSingle':!0x1,'groupIds':Array['from'](_0x193718)}}),_0x553253[_0x564469(0x208)]({'id':V['id'],'params':{'unitId':_0x3d7a81,'subUnitId':_0x21df96,'sparklineConfigMap':_0x179ed3}}),_0x3b6676(_0x111cf0,_0x5e9314),_0x37b234[_0x564469(0x1ab)]({'unitID':_0x3d7a81,'undoMutations':_0x553253,'redoMutations':_0x111cf0});}return!0x0;}};var Pt=Object[_0x7bca28(0x1f9)],Tt=(_0x3fc920,_0x42e798,_0x525f03,_0x132efa)=>{for(var _0x3d97c4=_0x132efa>0x1?void 0x0:_0x132efa?Pt(_0x42e798,_0x525f03):_0x42e798,_0x38cb62=_0x3fc920['length']-0x1,_0x40c287;_0x38cb62>=0x0;_0x38cb62--)(_0x40c287=_0x3fc920[_0x38cb62])&&(_0x3d97c4=_0x40c287(_0x3d97c4)||_0x3d97c4);return _0x3d97c4;},ge=(_0xab046a,_0x2ff880)=>(_0x2d570a,_0x22bc6b)=>_0x2ff880(_0x2d570a,_0x22bc6b,_0xab046a);let ke=class extends _0x323f2b{constructor(_0x28a814,_0x1cd340,_0x1d0cc3,_0x368a76){const _0x5a5a9f=_0x7bca28;super(),this[_0x5a5a9f(0x188)]=_0x28a814,this[_0x5a5a9f(0x233)]=_0x1cd340,this[_0x5a5a9f(0x239)]=_0x1d0cc3,this[_0x5a5a9f(0x218)]=_0x368a76,this['_initClearWithSparkline']();}[_0x7bca28(0x18d)](){const _0x224944=_0x7bca28;this[_0x224944(0x197)](this[_0x224944(0x233)][_0x224944(0x235)]({'getMutations':_0x4a675c=>{const _0x4214c6=_0x224944,_0x254b9c=[],_0x1a1edd=[];if(_0x4a675c['id']===_0x1c86b4['id']){const _0xcc2ef6=_0x3df95d(this[_0x4214c6(0x239)]);if(!_0xcc2ef6)return{'redos':_0x254b9c,'undos':_0x1a1edd};const {unitId:_0x33e2a6,subUnitId:_0x39bf94,worksheet:_0x1b7f56}=_0xcc2ef6,_0x450d3b=this['_sheetSelectionService'][_0x4214c6(0x1b3)]()[_0x4214c6(0x226)](_0x3b7b02=>_0x3b7b02[_0x4214c6(0x23c)]),_0x5e20a6=new Set(),_0x3e7088={},_0x13e4aa={};_0x450d3b[_0x4214c6(0x209)](_0x4c6347=>{const _0x422110=_0x4214c6;_0x1b6681[_0x422110(0x1df)](_0x4c6347,(_0x3367b5,_0x11a244)=>{const _0x45f09f=_0x422110,_0x1a3a8d=this[_0x45f09f(0x188)][_0x45f09f(0x1e4)](_0x33e2a6,_0x39bf94,_0x3367b5,_0x11a244);if(_0x1a3a8d&&!_0x5e20a6['has'](_0x1a3a8d)){const _0x5127b3=this[_0x45f09f(0x188)][_0x45f09f(0x22a)](_0x33e2a6,_0x39bf94,_0x1a3a8d);_0x5127b3&&(_0x5e20a6[_0x45f09f(0x19a)](_0x1a3a8d),_0x3e7088[_0x1a3a8d]={'config':_0x372585['deepClone'](_0x5127b3['config']),'sparklines':_0x372585[_0x45f09f(0x1ac)](_0x5127b3[_0x45f09f(0x215)][_0x45f09f(0x203)]())},_0x13e4aa[_0x1a3a8d]={'config':_0x372585[_0x45f09f(0x1ac)](_0x5127b3[_0x45f09f(0x1ad)]),'sparklines':_0x372585[_0x45f09f(0x1ac)](_0x5127b3[_0x45f09f(0x215)][_0x45f09f(0x203)]())});}});}),Object[_0x4214c6(0x236)](_0x13e4aa)[_0x4214c6(0x209)](_0x5ed969=>{const _0x55de21=_0x4214c6,_0x2efb05=_0x5ed969[_0x55de21(0x215)];new _0x14599f(_0x2efb05)[_0x55de21(0x201)]((_0x36c383,_0x5dbec9,_0x40f8bf)=>{const _0x2c37cb=_0x55de21;_0x450d3b['some'](_0x214a5f=>_0x991d94[_0x2c37cb(0x224)](_0x214a5f,_0x29166f(_0x36c383,_0x5dbec9)))&&delete _0x2efb05[_0x36c383][_0x5dbec9];});}),_0x254b9c[_0x4214c6(0x208)]({'id':y['id'],'params':{'unitId':_0x33e2a6,'subUnitId':_0x39bf94,'groupIds':Array['from'](_0x5e20a6),'isSingle':!0x1}}),_0x254b9c[_0x4214c6(0x208)]({'id':V['id'],'params':{'unitId':_0x33e2a6,'subUnitId':_0x39bf94,'sparklineConfigMap':_0x13e4aa}}),_0x1a1edd['push']({'id':y['id'],'params':{'unitId':_0x33e2a6,'subUnitId':_0x39bf94,'groupIds':Array[_0x4214c6(0x22c)](_0x5e20a6),'isSingle':!0x1}}),_0x1a1edd[_0x4214c6(0x208)]({'id':V['id'],'params':{'unitId':_0x33e2a6,'subUnitId':_0x39bf94,'sparklineConfigMap':_0x3e7088}});}return{'redos':_0x254b9c,'undos':_0x1a1edd};}}));}};ke=Tt([ge(0x0,_0x4859aa(x)),ge(0x1,_0x4859aa(_0xb191a)),ge(0x2,_0x4859aa(_0x2333fb)),ge(0x3,_0x4859aa(_0x282367))],ke);var $t=Object[_0x7bca28(0x1f9)],jt=(_0x44b6e2,_0x407382,_0xd9c3f5,_0x1e2459)=>{for(var _0x260900=_0x1e2459>0x1?void 0x0:_0x1e2459?$t(_0x407382,_0xd9c3f5):_0x407382,_0x425876=_0x44b6e2['length']-0x1,_0x37827a;_0x425876>=0x0;_0x425876--)(_0x37827a=_0x44b6e2[_0x425876])&&(_0x260900=_0x37827a(_0x260900)||_0x260900);return _0x260900;},be=(_0x4f80b4,_0x3a6344)=>(_0x2e9506,_0x656482)=>_0x3a6344(_0x2e9506,_0x656482,_0x4f80b4);let me=class extends _0x323f2b{constructor(_0x23682c,_0x15af6d,_0x25bfe3){const _0xc536aa=_0x7bca28;super(),this[_0xc536aa(0x19e)]=_0x23682c,this[_0xc536aa(0x188)]=_0x15af6d,this['_exclusiveRangeService']=_0x25bfe3,this[_0xc536aa(0x20d)](),this[_0xc536aa(0x1d9)]();}[_0x7bca28(0x20d)](){const _0x1568f7=_0x7bca28;this[_0x1568f7(0x197)](this['_commandService'][_0x1568f7(0x195)](_0x5a15dd=>{const _0x212aea=_0x1568f7;if(_0x5a15dd['id']===_0x1a433c['id']){const _0x355fd4=_0x5a15dd[_0x212aea(0x1ea)],{cellValue:_0x243ae6,unitId:_0x42d211,subUnitId:_0x1f67ae}=_0x355fd4,_0x5d1029=new _0x14599f(_0x243ae6),_0x548f72=new Set(),_0x22ab37=this['_sparklineDataSourceModel'][_0x212aea(0x1cc)](_0x42d211,_0x1f67ae);if(!_0x22ab37)return;const _0x367c89=Array[_0x212aea(0x22c)](_0x22ab37);_0x5d1029[_0x212aea(0x201)]((_0x11d89c,_0x2bae6d,_0x37b723)=>{const _0x38a632=_0x212aea,_0x41da27=_0x29166f(_0x11d89c,_0x2bae6d);for(let _0x4bc951=0x0;_0x4bc951<_0x367c89[_0x38a632(0x19d)];_0x4bc951++){const [_0x58df67,_0x11af6e]=_0x367c89[_0x4bc951],_0x4a1cf5=_0x548f72['has'](_0x58df67);_0x4a1cf5||_0x11af6e[_0x38a632(0x215)]['forValue']((_0x2f96d3,_0x322d6e,_0x386a44)=>{const _0x14c734=_0x38a632,_0x575f6f=_0x386a44;if(_0x575f6f&&!_0x4a1cf5&&_0x991d94[_0x14c734(0x224)](_0x41da27,_0x575f6f))return _0x548f72[_0x14c734(0x19a)](_0x58df67),!0x0;});}}),_0x548f72[_0x212aea(0x209)](_0x5f5ab3=>{const _0x3b0316=_0x212aea;this[_0x3b0316(0x188)][_0x3b0316(0x193)](_0x42d211,_0x1f67ae,_0x5f5ab3),this[_0x3b0316(0x188)][_0x3b0316(0x1e6)](_0x42d211,_0x1f67ae,_0x5f5ab3);});}else{if(_0x5a15dd['id']===_0x7f44b4['id']){const _0x3d9a19=_0x5a15dd[_0x212aea(0x1ea)],{range:_0x3990e0,unitId:_0x36df99,subUnitId:_0x39a7f0}=_0x3d9a19,_0x58dc7b=new Set(),_0x2ca49b=this[_0x212aea(0x188)][_0x212aea(0x1cc)](_0x36df99,_0x39a7f0);if(!_0x2ca49b)return;const _0x1c3dd9=Array[_0x212aea(0x22c)](_0x2ca49b);for(let _0xca78d3=0x0;_0xca78d3<_0x1c3dd9[_0x212aea(0x19d)];_0xca78d3++){const [_0x277129,_0x546ecc]=_0x1c3dd9[_0xca78d3],_0x4f1879=_0x58dc7b[_0x212aea(0x1da)](_0x277129);_0x4f1879||_0x546ecc['sparklines']['forValue']((_0x17bb31,_0x85ac9f,_0x1a4b27)=>{const _0x5be6f1=_0x212aea,_0x2a0ad4=_0x1a4b27;if(_0x2a0ad4&&!_0x4f1879&&_0x991d94[_0x5be6f1(0x224)](_0x3990e0,_0x2a0ad4))return _0x58dc7b[_0x5be6f1(0x19a)](_0x277129),!0x0;});}_0x58dc7b[_0x212aea(0x209)](_0x4dca36=>{const _0x276d33=_0x212aea;this[_0x276d33(0x188)]['clearSparklineCache'](_0x36df99,_0x39a7f0,_0x4dca36),this[_0x276d33(0x188)][_0x276d33(0x1e6)](_0x36df99,_0x39a7f0,_0x4dca36);});}}}));}['_initExclusiveRangeChange'](){const _0x7c225e=_0x7bca28;this[_0x7c225e(0x197)](this[_0x7c225e(0x1a9)][_0x7c225e(0x1c1)][_0x7c225e(0x211)](_0x521a82=>{const _0x39d04d=_0x7c225e,{unitId:_0x2ab6d0,subUnitId:_0x27730e,ranges:_0x28929f}=_0x521a82,_0x5c777c=this[_0x39d04d(0x188)][_0x39d04d(0x1cc)](_0x2ab6d0,_0x27730e);if(!_0x5c777c)return;const _0x1db33d=Array['from'](_0x5c777c),_0xc40a5f=new Set();for(let _0x44285d=0x0;_0x44285d<_0x1db33d[_0x39d04d(0x19d)];_0x44285d++){const [_0x1556db,_0x449359]=_0x1db33d[_0x44285d],_0x5ca3a0=_0xc40a5f[_0x39d04d(0x1da)](_0x1556db);_0x5ca3a0||_0x449359['sparklines'][_0x39d04d(0x201)]((_0x19f40c,_0x42d2ea,_0x436477)=>{const _0x1fd031=_0x39d04d,_0x7a56e1=_0x436477;if(_0x7a56e1&&!_0x5ca3a0){for(const _0x299ffe of _0x28929f)if(_0x991d94[_0x1fd031(0x224)](_0x299ffe,_0x7a56e1)){_0xc40a5f[_0x1fd031(0x19a)](_0x1556db);break;}}});}_0xc40a5f[_0x39d04d(0x209)](_0x1ad800=>{const _0x1bd145=_0x39d04d;this[_0x1bd145(0x188)][_0x1bd145(0x193)](_0x2ab6d0,_0x27730e,_0x1ad800),this[_0x1bd145(0x188)][_0x1bd145(0x1e6)](_0x2ab6d0,_0x27730e,_0x1ad800);});}));}};me=jt([be(0x0,_0x4859aa(_0x5d9d84)),be(0x1,_0x4859aa(x)),be(0x2,_0x4859aa(_0x19414a))],me);var Lt=Object[_0x7bca28(0x1f9)],Gt=(_0x188554,_0x6a09c1,_0x4e819a,_0xa9088c)=>{const _0x2eb4fd=_0x7bca28;for(var _0x20271e=_0xa9088c>0x1?void 0x0:_0xa9088c?Lt(_0x6a09c1,_0x4e819a):_0x6a09c1,_0x264502=_0x188554[_0x2eb4fd(0x19d)]-0x1,_0x2bf342;_0x264502>=0x0;_0x264502--)(_0x2bf342=_0x188554[_0x264502])&&(_0x20271e=_0x2bf342(_0x20271e)||_0x20271e);return _0x20271e;},He=(_0x101a00,_0x2eca34)=>(_0x39bc95,_0x3fd201)=>_0x2eca34(_0x39bc95,_0x3fd201,_0x101a00);let Ce=class extends _0x323f2b{constructor(_0x28c9dd,_0xdd33f1){const _0x42e124=_0x7bca28;super(),this['_commandService']=_0x28c9dd,this[_0x42e124(0x188)]=_0xdd33f1,this['_initHideRowColWithSparkline']();}[_0x7bca28(0x237)](){this['_commandService']['onCommandExecuted'](_0x458c84=>{const _0x28a270=_0x215a;if(_0x458c84['id']===_0x881ac['id']||_0x458c84['id']===_0x39ae28['id']||_0x458c84['id']===_0x1c6cd6['id']||_0x458c84['id']===_0x140780['id']){const _0x3bc963=_0x458c84[_0x28a270(0x1ea)],{ranges:_0x96b86c,unitId:_0x44f9bf,subUnitId:_0x1a17af}=_0x3bc963,_0x1a1961=new Set(),_0x58bc9d=this[_0x28a270(0x188)][_0x28a270(0x1cc)](_0x44f9bf,_0x1a17af);if(!_0x58bc9d)return;const _0x21eb3a=Array[_0x28a270(0x22c)](_0x58bc9d);_0x96b86c[_0x28a270(0x209)](_0x1cde37=>{const _0x323ebd=_0x28a270;_0x1b6681[_0x323ebd(0x1df)](_0x1cde37,(_0x3768e6,_0x4f4dc0)=>{const _0x33ed46=_0x323ebd,_0x2e2d01=_0x29166f(_0x3768e6,_0x4f4dc0);for(let _0x33bbb6=0x0;_0x33bbb6<_0x21eb3a[_0x33ed46(0x19d)];_0x33bbb6++){const [_0x582fd9,_0x357677]=_0x21eb3a[_0x33bbb6],_0x4bb806=_0x1a1961['has'](_0x582fd9);_0x4bb806||_0x357677[_0x33ed46(0x215)]['forValue']((_0x510c24,_0x45c8a8,_0x3cd0af)=>{const _0x37ae18=_0x33ed46,_0xd6afb0=_0x3cd0af;if(_0xd6afb0&&!_0x4bb806&&_0x991d94[_0x37ae18(0x224)](_0x2e2d01,_0xd6afb0))return _0x1a1961[_0x37ae18(0x19a)](_0x582fd9),!0x0;});}});}),_0x1a1961['forEach'](_0x3710e7=>{const _0x3b1062=_0x28a270;this[_0x3b1062(0x188)][_0x3b1062(0x193)](_0x44f9bf,_0x1a17af,_0x3710e7),this['_sparklineDataSourceModel'][_0x3b1062(0x1e6)](_0x44f9bf,_0x1a17af,_0x3710e7);});}});}};Ce=Gt([He(0x0,_0x4859aa(_0x5d9d84)),He(0x1,_0x4859aa(x))],Ce);var Ht=Object[_0x7bca28(0x1f9)],Bt=(_0x18cf37,_0x31a311,_0x4f25ae,_0x526497)=>{const _0x558435=_0x7bca28;for(var _0x347706=_0x526497>0x1?void 0x0:_0x526497?Ht(_0x31a311,_0x4f25ae):_0x31a311,_0x1af36d=_0x18cf37[_0x558435(0x19d)]-0x1,_0xa617ed;_0x1af36d>=0x0;_0x1af36d--)(_0xa617ed=_0x18cf37[_0x1af36d])&&(_0x347706=_0xa617ed(_0x347706)||_0x347706);return _0x347706;},De=(_0x494252,_0x287ebe)=>(_0x3f1a12,_0x9ba3ad)=>_0x287ebe(_0x3f1a12,_0x9ba3ad,_0x494252);function _0x215a(_0xea63b9,_0x340b8f){_0xea63b9=_0xea63b9-0x183;const _0x3b1649=_0x3b16();let _0x215aa5=_0x3b1649[_0xea63b9];return _0x215aa5;}let _e=class extends _0x323f2b{constructor(_0x487896,_0x301239,_0x52d3e6){const _0x297058=_0x7bca28;super(),this['_commandService']=_0x487896,this[_0x297058(0x233)]=_0x301239,this['_sparklineDataSourceModel']=_0x52d3e6,this['_initMergeWithSparkline']();}[_0x7bca28(0x1fe)](){const _0x301db7=_0x7bca28;this['disposeWithMe'](this['_sheetInterceptorService'][_0x301db7(0x235)]({'getMutations':_0x320203=>{const _0x402927=_0x301db7,_0x1fbfc8=[],_0x191368=[];if(_0x320203['id']===_0x436e53['id']){const _0x1ba72=_0x320203[_0x402927(0x1ea)];if(!_0x1ba72)return{'redos':_0x1fbfc8,'undos':_0x191368};const {unitId:_0x5ecfc7,subUnitId:_0x82d64a,ranges:_0x3bbf30}=_0x1ba72,_0x4ccef3=this[_0x402927(0x188)][_0x402927(0x1cc)](_0x5ecfc7,_0x82d64a);if(!_0x4ccef3)return{'redos':_0x1fbfc8,'undos':_0x191368};const _0x15248b={},_0x1c592e={},_0x2d9d1d=new Set();_0x3bbf30['forEach'](_0x2c5f41=>{const _0x5c9cc8=_0x402927,_0x2ac815=_0x2c5f41[_0x5c9cc8(0x1b1)],_0x9d29d4=_0x2c5f41[_0x5c9cc8(0x21f)];_0x1b6681[_0x5c9cc8(0x1df)](_0x2c5f41,(_0x5f2bd6,_0x49af66)=>{const _0x48a081=_0x5c9cc8,_0x329291=this[_0x48a081(0x188)][_0x48a081(0x1e4)](_0x5ecfc7,_0x82d64a,_0x5f2bd6,_0x49af66);if(_0x329291&&!(_0x5f2bd6===_0x2ac815&&_0x49af66===_0x9d29d4)){const _0x47aef9=this[_0x48a081(0x188)][_0x48a081(0x22a)](_0x5ecfc7,_0x82d64a,_0x329291);if(_0x47aef9){_0x2d9d1d[_0x48a081(0x19a)](_0x329291);let _0x1a9987=_0x15248b[_0x329291];_0x1a9987||(_0x1a9987={'config':_0x372585[_0x48a081(0x1ac)](_0x47aef9[_0x48a081(0x1ad)]),'sparklines':new _0x14599f(_0x47aef9[_0x48a081(0x215)][_0x48a081(0x203)]())},_0x15248b[_0x329291]=_0x1a9987),_0x1a9987['sparklines'][_0x48a081(0x22d)](_0x5f2bd6,_0x49af66),_0x1c592e[_0x329291]={'config':_0x372585[_0x48a081(0x1ac)](_0x47aef9[_0x48a081(0x1ad)]),'sparklines':_0x372585[_0x48a081(0x1ac)](_0x47aef9[_0x48a081(0x215)][_0x48a081(0x203)]())};}}});});for(const [_0x39f98c,_0x4a8314]of _0x4ccef3){const _0x2b2147=_0x4a8314[_0x402927(0x215)];_0x2b2147[_0x402927(0x201)]((_0x411e88,_0x3a5dab,_0x9a19eb)=>{const _0x8a82ed=_0x402927;for(let _0x31b095=0x0;_0x31b095<_0x3bbf30[_0x8a82ed(0x19d)];_0x31b095++){const _0x4bdaec=_0x3bbf30[_0x31b095];if(_0x991d94['contains'](_0x4bdaec,_0x9a19eb)){_0x2d9d1d[_0x8a82ed(0x19a)](_0x39f98c);let _0x1d768a=_0x15248b[_0x39f98c];_0x1d768a||(_0x1d768a={'config':_0x372585[_0x8a82ed(0x1ac)](_0x4a8314[_0x8a82ed(0x1ad)]),'sparklines':new _0x14599f(_0x2b2147[_0x8a82ed(0x203)]())},_0x15248b[_0x39f98c]=_0x1d768a),_0x1d768a[_0x8a82ed(0x215)][_0x8a82ed(0x22d)](_0x411e88,_0x3a5dab),_0x1c592e[_0x39f98c]||(_0x1c592e[_0x39f98c]={'config':_0x372585['deepClone'](_0x4a8314[_0x8a82ed(0x1ad)]),'sparklines':_0x372585[_0x8a82ed(0x1ac)](_0x2b2147[_0x8a82ed(0x203)]())});}}});}const _0x4f6dc4={};Object[_0x402927(0x1db)](_0x15248b)[_0x402927(0x209)](([_0x4a52e4,_0x397240])=>{const _0x309c55=_0x402927;_0x397240[_0x309c55(0x215)]['getSizeOf']()&&(_0x4f6dc4[_0x4a52e4]={'config':_0x397240[_0x309c55(0x1ad)],'sparklines':_0x397240[_0x309c55(0x215)][_0x309c55(0x203)]()});}),_0x2d9d1d[_0x402927(0x1c8)]&&(_0x1fbfc8['push']({'id':y['id'],'params':{'unitId':_0x5ecfc7,'subUnitId':_0x82d64a,'groupIds':Array[_0x402927(0x22c)](_0x2d9d1d),'isSingle':!0x1}}),_0x191368[_0x402927(0x208)]({'id':y['id'],'params':{'unitId':_0x5ecfc7,'subUnitId':_0x82d64a,'groupIds':Array['from'](_0x2d9d1d),'isSingle':!0x1}}),_0x1fbfc8['push']({'id':V['id'],'params':{'unitId':_0x5ecfc7,'subUnitId':_0x82d64a,'sparklineConfigMap':_0x4f6dc4}}),_0x191368[_0x402927(0x208)]({'id':V['id'],'params':{'unitId':_0x5ecfc7,'subUnitId':_0x82d64a,'sparklineConfigMap':_0x1c592e}}));}return{'redos':_0x1fbfc8,'undos':_0x191368};}}));}};_e=Bt([De(0x0,_0x4859aa(_0x5d9d84)),De(0x1,_0x4859aa(_0xb191a)),De(0x2,_0x4859aa(x))],_e);var Wt=Object[_0x7bca28(0x1f9)],Ft=(_0x30a07f,_0x49b87a,_0x4ea631,_0x542631)=>{const _0x3c4fc9=_0x7bca28;for(var _0x25981f=_0x542631>0x1?void 0x0:_0x542631?Wt(_0x49b87a,_0x4ea631):_0x49b87a,_0x5ae57c=_0x30a07f[_0x3c4fc9(0x19d)]-0x1,_0x3a3062;_0x5ae57c>=0x0;_0x5ae57c--)(_0x3a3062=_0x30a07f[_0x5ae57c])&&(_0x25981f=_0x3a3062(_0x25981f)||_0x25981f);return _0x25981f;},he=(_0x107d0a,_0x1f9c53)=>(_0x2a0284,_0x2a08de)=>_0x1f9c53(_0x2a0284,_0x2a08de,_0x107d0a);let Me=class extends _0x323f2b{constructor(_0x22316e,_0xe945dd,_0x393ed4,_0x27d15){const _0x4bf15f=_0x7bca28;super(),re(this,'disposableCollection',new _0x50f974()),(this[_0x4bf15f(0x19e)]=_0x22316e,this[_0x4bf15f(0x1bb)]=_0xe945dd,this[_0x4bf15f(0x239)]=_0x393ed4,this['_sparklineDataSourceModel']=_0x27d15,this['_onRefRangeChange'](),this[_0x4bf15f(0x1a2)]());}[_0x7bca28(0x1ff)](){const _0x1b0671=_0x7bca28,_0x23bfbe=(_0x579f54,_0x218e30)=>{const _0x322dab=_0x215a,_0xd110a2=this['_univerInstanceService'][_0x322dab(0x227)](_0x48bd24['UNIVER_SHEET']);if(!_0xd110a2||!(_0xd110a2==null?void 0x0:_0xd110a2['getSheetBySheetId'](_0x218e30)))return;this[_0x322dab(0x1ec)][_0x322dab(0x1e8)]();const _0xe9c194=_0x4ecbfd=>this['refRangeHandle'](_0x4ecbfd,_0x579f54,_0x218e30),_0x203f4c=[],_0x26a423=this[_0x322dab(0x188)]['getSubUnitSparkline'](_0x579f54,_0x218e30);if(_0x26a423){for(const [_0x2acc69,_0x52015e]of _0x26a423)_0x52015e[_0x322dab(0x215)][_0x322dab(0x201)]((_0x1dc8d3,_0x2a0165,_0x13017e)=>{const _0xe8eb87=_0x322dab,_0x27cb87=_0x29166f(_0x1dc8d3,_0x2a0165);_0x203f4c[_0xe8eb87(0x208)](_0x27cb87);});_0x203f4c[_0x322dab(0x209)](_0x505559=>{const _0x3a0e27=_0x322dab;this['disposableCollection'][_0x3a0e27(0x19a)](this['_refRangeService']['registerRefRange'](_0x505559,_0xe9c194,_0x579f54,_0x218e30));});}};this[_0x1b0671(0x197)](this[_0x1b0671(0x19e)][_0x1b0671(0x195)](_0x5626a6=>{const _0x348f88=_0x1b0671;if(_0x5626a6['id']===_0x3aab27['id']){const _0x2ac19d=_0x5626a6[_0x348f88(0x1ea)],_0x32a507=_0x2ac19d[_0x348f88(0x21d)],_0x4b0632=_0x2ac19d['unitId'];if(!_0x32a507||!_0x4b0632)return;_0x23bfbe(_0x4b0632,_0x32a507);}if(_0x5626a6['id']===xe['id']||_0x5626a6['id']===V['id']){const _0x409dec=_0x5626a6[_0x348f88(0x1ea)],_0xe148e1=_0x409dec[_0x348f88(0x21d)],_0x434520=_0x409dec[_0x348f88(0x189)];if(!_0xe148e1||!_0x434520)return;_0x23bfbe(_0x434520,_0xe148e1);}}));}[_0x7bca28(0x20a)](_0x1fcb20,_0x258fa9,_0x12bae2){const _0x4bce76=_0x7bca28;switch(_0x1fcb20['id']){case _0x4eaa85['id']:return this[_0x4bce76(0x23f)](_0x1fcb20[_0x4bce76(0x1ea)],_0x258fa9,_0x12bae2);case _0x10e228['id']:return this['_getRefRangeMutationsByDeleteRows'](_0x1fcb20[_0x4bce76(0x1ea)],_0x258fa9,_0x12bae2);}return{'redos':[],'undos':[]};}[_0x7bca28(0x21e)](_0xbb4c4f,_0x43a62e,_0x340f62){const _0x5307e5=_0x7bca28;var _0x43e205,_0x1647da;const {range:_0x4db5d6}=_0xbb4c4f,_0x5a8e2a=new Set(),_0x41d8c3={},_0x5e11ab={},_0x4ced21=[],_0x16840a=[],_0x2ad8a9=[],_0x33ec01=[];if(!_0x3df95d(this[_0x5307e5(0x239)],{'unitId':_0x43a62e,'subUnitId':_0x340f62}))return{'redos':_0x16840a,'undos':_0x4ced21};const _0x3e1838=this[_0x5307e5(0x188)][_0x5307e5(0x1cc)](_0x43a62e,_0x340f62);if(!_0x3e1838)return{'redos':_0x16840a,'undos':_0x4ced21};if(!((_0x1647da=(_0x43e205=this[_0x5307e5(0x188)]['getSparklineCache']()[_0x5307e5(0x196)][_0x5307e5(0x23a)](_0x43a62e))==null?void 0x0:_0x43e205['get'](_0x340f62))==null?void 0x0:_0x1647da['matrix']))return{'redos':_0x16840a,'undos':_0x4ced21};for(const [_0x42d825,_0x20548e]of _0x3e1838){const _0x225cf0=_0x20548e[_0x5307e5(0x215)];_0x225cf0[_0x5307e5(0x201)]((_0x1f704b,_0x44e285,_0x277815)=>{const _0x5b35e4=_0x5307e5;if(_0x991d94[_0x5b35e4(0x224)](_0x4db5d6,_0x277815)){_0x5a8e2a['add'](_0x42d825);let _0x6dcf8a=_0x5e11ab[_0x42d825];_0x6dcf8a||(_0x6dcf8a={'config':_0x20548e[_0x5b35e4(0x1ad)],'sparklines':_0x20548e[_0x5b35e4(0x215)][_0x5b35e4(0x203)]()},_0x5e11ab[_0x42d825]=_0x6dcf8a);let _0x36662f=_0x41d8c3[_0x42d825];_0x36662f||(_0x36662f={'config':_0x20548e[_0x5b35e4(0x1ad)],'sparklines':new _0x14599f(_0x20548e[_0x5b35e4(0x215)]['clone']())},_0x41d8c3[_0x42d825]=_0x36662f);const _0x9dac99=_0x13dcd7(_0x277815,{'id':_0x4a45c3['id'],'params':_0xbb4c4f});_0x9dac99?_0x36662f[_0x5b35e4(0x215)][_0x5b35e4(0x216)](_0x1f704b,_0x44e285,_0x9dac99):_0x36662f[_0x5b35e4(0x215)]['setValue'](_0x1f704b,_0x44e285,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xce4c10[_0x5b35e4(0x1bf)]});}}),_0x225cf0['forValue']((_0x5e9629,_0x3f7a31,_0x580880)=>{const _0x39f7c3=_0x5307e5;if(_0x5e9629<=_0x4db5d6['endRow']&&_0x5e9629>=_0x4db5d6[_0x39f7c3(0x1b1)]){_0x5a8e2a[_0x39f7c3(0x19a)](_0x42d825);let _0x13703a=_0x5e11ab[_0x42d825];_0x13703a||(_0x13703a={'config':_0x20548e['config'],'sparklines':_0x20548e['sparklines'][_0x39f7c3(0x203)]()},_0x5e11ab[_0x42d825]=_0x13703a);let _0x1b0259=_0x41d8c3[_0x42d825];_0x1b0259||(_0x1b0259={'config':_0x20548e[_0x39f7c3(0x1ad)],'sparklines':new _0x14599f(_0x20548e[_0x39f7c3(0x215)][_0x39f7c3(0x203)]())},_0x41d8c3[_0x42d825]=_0x1b0259);}});}_0x33ec01[_0x5307e5(0x208)]({'id':y['id'],'params':{'unitId':_0x43a62e,'subUnitId':_0x340f62,'groupIds':Array[_0x5307e5(0x22c)](_0x5a8e2a),'isSingle':!0x1}}),_0x2ad8a9[_0x5307e5(0x208)]({'id':y['id'],'params':{'unitId':_0x43a62e,'subUnitId':_0x340f62,'groupIds':Array['from'](_0x5a8e2a),'isSingle':!0x1}});const _0x215af4={};let _0x2e257a=!0x1;return Object['entries'](_0x41d8c3)[_0x5307e5(0x209)](([_0x35452e,_0x2ec7b1])=>{const _0x1b5f04=_0x5307e5;_0x2ec7b1[_0x1b5f04(0x215)]['getSizeOf']()&&(_0x2e257a=!0x0,_0x2ec7b1[_0x1b5f04(0x215)][_0x1b5f04(0x198)](_0x4db5d6[_0x1b5f04(0x1b1)],_0x4db5d6[_0x1b5f04(0x217)]-_0x4db5d6['startRow']+0x1),_0x215af4[_0x35452e]={'config':_0x2ec7b1['config'],'sparklines':_0x2ec7b1['sparklines'][_0x1b5f04(0x203)]()});}),_0x2e257a&&_0x16840a['push']({'id':V['id'],'params':{'unitId':_0x43a62e,'subUnitId':_0x340f62,'sparklineConfigMap':_0x215af4}}),_0x4ced21[_0x5307e5(0x208)]({'id':V['id'],'params':{'unitId':_0x43a62e,'subUnitId':_0x340f62,'sparklineConfigMap':_0x5e11ab}}),{'redos':_0x16840a,'undos':_0x4ced21,'preRedos':_0x2ad8a9,'preUndos':_0x33ec01};}[_0x7bca28(0x23f)](_0x20ce18,_0x33ee98,_0x3aefb7){const _0x439ab3=_0x7bca28;var _0x2a6cc9,_0x55584c;const {range:_0x37517c}=_0x20ce18,_0x282b3d=new Set(),_0x3ad159={},_0x3c92bd={},_0x4d8ec5=[],_0x3fa417=[],_0x1bdf9a=[],_0x3c14d9=[];if(!_0x3df95d(this[_0x439ab3(0x239)],{'unitId':_0x33ee98,'subUnitId':_0x3aefb7}))return{'redos':_0x3fa417,'undos':_0x4d8ec5};const _0x28e8f9=this[_0x439ab3(0x188)][_0x439ab3(0x1cc)](_0x33ee98,_0x3aefb7);if(!_0x28e8f9)return{'redos':_0x3fa417,'undos':_0x4d8ec5};if(!((_0x55584c=(_0x2a6cc9=this[_0x439ab3(0x188)][_0x439ab3(0x1ef)]()[_0x439ab3(0x196)][_0x439ab3(0x23a)](_0x33ee98))==null?void 0x0:_0x2a6cc9[_0x439ab3(0x23a)](_0x3aefb7))==null?void 0x0:_0x55584c[_0x439ab3(0x1be)]))return{'redos':_0x3fa417,'undos':_0x4d8ec5};for(const [_0x365f79,_0x85b9b5]of _0x28e8f9){const _0x38d87e=_0x85b9b5[_0x439ab3(0x215)];_0x38d87e[_0x439ab3(0x201)]((_0x5a5f77,_0x3cf5d4,_0x57926b)=>{const _0x27dc92=_0x439ab3;if(_0x991d94[_0x27dc92(0x224)](_0x37517c,_0x57926b)){_0x282b3d['add'](_0x365f79);let _0x4c1538=_0x3c92bd[_0x365f79];_0x4c1538||(_0x4c1538={'config':_0x85b9b5[_0x27dc92(0x1ad)],'sparklines':_0x85b9b5['sparklines'][_0x27dc92(0x203)]()},_0x3c92bd[_0x365f79]=_0x4c1538);let _0x24d803=_0x3ad159[_0x365f79];_0x24d803||(_0x24d803={'config':_0x85b9b5['config'],'sparklines':new _0x14599f(_0x85b9b5[_0x27dc92(0x215)][_0x27dc92(0x203)]())},_0x3ad159[_0x365f79]=_0x24d803);const _0x1af7fc=_0x13dcd7(_0x57926b,{'id':_0x21aa39['id'],'params':_0x20ce18});_0x1af7fc?_0x24d803[_0x27dc92(0x215)][_0x27dc92(0x216)](_0x5a5f77,_0x3cf5d4,_0x1af7fc):_0x24d803[_0x27dc92(0x215)][_0x27dc92(0x216)](_0x5a5f77,_0x3cf5d4,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xce4c10[_0x27dc92(0x1bf)]});}}),_0x38d87e[_0x439ab3(0x201)]((_0x1b0d72,_0xbef941,_0x4e93a6)=>{const _0x3a0b80=_0x439ab3;if(_0xbef941<=_0x37517c[_0x3a0b80(0x1b9)]&&_0xbef941>=_0x37517c[_0x3a0b80(0x21f)]){_0x282b3d['add'](_0x365f79);let _0xb6d082=_0x3c92bd[_0x365f79];_0xb6d082||(_0xb6d082={'config':_0x85b9b5[_0x3a0b80(0x1ad)],'sparklines':_0x85b9b5[_0x3a0b80(0x215)]['clone']()},_0x3c92bd[_0x365f79]=_0xb6d082);let _0x10124c=_0x3ad159[_0x365f79];_0x10124c||(_0x10124c={'config':_0x85b9b5['config'],'sparklines':new _0x14599f(_0x85b9b5[_0x3a0b80(0x215)]['clone']())},_0x3ad159[_0x365f79]=_0x10124c);}});}_0x3c14d9['push']({'id':y['id'],'params':{'unitId':_0x33ee98,'subUnitId':_0x3aefb7,'groupIds':Array[_0x439ab3(0x22c)](_0x282b3d),'isSingle':!0x1}}),_0x1bdf9a['push']({'id':y['id'],'params':{'unitId':_0x33ee98,'subUnitId':_0x3aefb7,'groupIds':Array[_0x439ab3(0x22c)](_0x282b3d),'isSingle':!0x1}});const _0x25240d={};let _0x2d6149=!0x1;return Object['entries'](_0x3ad159)['forEach'](([_0x30e4d6,_0x42832e])=>{const _0x1da79=_0x439ab3;_0x42832e['sparklines']['getSizeOf']()&&(_0x2d6149=!0x0,_0x42832e[_0x1da79(0x215)][_0x1da79(0x1fb)](_0x37517c[_0x1da79(0x21f)],_0x37517c[_0x1da79(0x1b9)]-_0x37517c[_0x1da79(0x21f)]+0x1),_0x25240d[_0x30e4d6]={'config':_0x42832e[_0x1da79(0x1ad)],'sparklines':_0x42832e[_0x1da79(0x215)]['clone']()});}),_0x2d6149&&_0x3fa417[_0x439ab3(0x208)]({'id':V['id'],'params':{'unitId':_0x33ee98,'subUnitId':_0x3aefb7,'sparklineConfigMap':_0x25240d}}),_0x4d8ec5['push']({'id':V['id'],'params':{'unitId':_0x33ee98,'subUnitId':_0x3aefb7,'sparklineConfigMap':_0x3c92bd}}),{'redos':_0x3fa417,'undos':_0x4d8ec5,'preRedos':_0x1bdf9a,'preUndos':_0x3c14d9};}[_0x7bca28(0x1a2)](){const _0x314753=_0x7bca28;this[_0x314753(0x197)](this[_0x314753(0x19e)][_0x314753(0x195)](_0x31dda6=>{const _0x5cb6df=_0x314753;if(_0x31dda6['id']===_0x512a4e['id']){const _0x294912=_0x31dda6[_0x5cb6df(0x1ea)],{unitId:_0x4d313e,subUnitId:_0x1986cf,range:_0x44e3e9}=_0x294912,_0x174188=_0x44e3e9[_0x5cb6df(0x21f)],_0x2c667a=_0x44e3e9['endColumn']-_0x44e3e9[_0x5cb6df(0x21f)]+0x1,_0x438e19=this[_0x5cb6df(0x188)][_0x5cb6df(0x1cc)](_0x4d313e,_0x1986cf);if(!_0x438e19)return;for(const [_0x3dc237,_0x18933]of _0x438e19){this['_sparklineDataSourceModel'][_0x5cb6df(0x193)](_0x4d313e,_0x1986cf,_0x3dc237);const _0x4b8b36=_0x18933[_0x5cb6df(0x215)];_0x4b8b36[_0x5cb6df(0x201)]((_0x164fd7,_0x4b77d4,_0x5e5fea)=>{const _0x70065e=_0x5cb6df,_0x267447={..._0x5e5fea};_0x174188<=_0x267447[_0x70065e(0x21f)]?(_0x267447[_0x70065e(0x21f)]+=_0x2c667a,_0x267447[_0x70065e(0x1b9)]+=_0x2c667a):_0x174188>_0x267447[_0x70065e(0x1b9)]||(_0x267447[_0x70065e(0x1b9)]+=_0x2c667a),_0x4b8b36['setValue'](_0x164fd7,_0x4b77d4,_0x267447);});const _0x56ceca=_0x4b8b36[_0x5cb6df(0x186)]();for(const _0xf68dc9 in _0x56ceca){const _0x3ccf06=_0x56ceca[Number(_0xf68dc9)];if(!_0x3ccf06)continue;const _0x4f6bc4=Object[_0x5cb6df(0x1e7)](_0x3ccf06)[_0x5cb6df(0x226)](Number),_0x1272e2=Math[_0x5cb6df(0x1e9)](..._0x4f6bc4);for(let _0x359a51=_0x1272e2;_0x359a51>=_0x174188;_0x359a51--)_0x359a51>=_0x174188&&_0x3ccf06[_0x359a51]&&(_0x3ccf06[_0x359a51+_0x2c667a]=_0x3ccf06[_0x359a51],delete _0x3ccf06[_0x359a51]);}this[_0x5cb6df(0x188)][_0x5cb6df(0x1e6)](_0x4d313e,_0x1986cf,_0x3dc237);}}else{if(_0x31dda6['id']===_0x1b59ae['id']){const _0x5dc8a=_0x31dda6[_0x5cb6df(0x1ea)],{unitId:_0x203476,subUnitId:_0x5775c1,range:_0x3cc429}=_0x5dc8a,_0x3eb215=_0x3cc429[_0x5cb6df(0x1b1)],_0x2a0a2f=_0x3cc429['endRow']-_0x3cc429['startRow']+0x1,_0x4a0468=this[_0x5cb6df(0x188)][_0x5cb6df(0x1cc)](_0x203476,_0x5775c1);if(!_0x4a0468)return;for(const [_0x1af59a,_0x224dfa]of _0x4a0468){this[_0x5cb6df(0x188)][_0x5cb6df(0x193)](_0x203476,_0x5775c1,_0x1af59a);const _0x59ee7b=_0x224dfa[_0x5cb6df(0x215)];_0x59ee7b[_0x5cb6df(0x201)]((_0x561656,_0x3e284b,_0x1c84e1)=>{const _0x1d82cc=_0x5cb6df,_0x306fe4={..._0x1c84e1};_0x3eb215<=_0x306fe4[_0x1d82cc(0x1b1)]?(_0x306fe4[_0x1d82cc(0x1b1)]+=_0x2a0a2f,_0x306fe4[_0x1d82cc(0x217)]+=_0x2a0a2f):_0x3eb215>_0x306fe4[_0x1d82cc(0x217)]||(_0x306fe4[_0x1d82cc(0x217)]+=_0x2a0a2f),_0x59ee7b[_0x1d82cc(0x216)](_0x561656,_0x3e284b,_0x306fe4);});const _0x1af26b=_0x59ee7b['getMatrix'](),_0x46257a=Object[_0x5cb6df(0x1e7)](_0x1af26b)['map'](Number),_0x4b84b5=Math[_0x5cb6df(0x1e9)](..._0x46257a);for(let _0x407d17=_0x4b84b5;_0x407d17>=_0x3eb215;_0x407d17--)_0x407d17>=_0x3eb215&&_0x1af26b[_0x407d17]&&(_0x1af26b[_0x407d17+_0x2a0a2f]=_0x1af26b[_0x407d17],delete _0x1af26b[_0x407d17]);this[_0x5cb6df(0x188)][_0x5cb6df(0x1e6)](_0x203476,_0x5775c1,_0x1af59a);}}else{if(_0x31dda6['id']===_0x21aa39['id']){const _0x31098e=_0x31dda6[_0x5cb6df(0x1ea)],{range:_0x2ec5f3,unitId:_0x4f8b17,subUnitId:_0x2d5362}=_0x31098e,_0x2937ac=this[_0x5cb6df(0x188)][_0x5cb6df(0x1cc)](_0x4f8b17,_0x2d5362);if(!_0x2937ac)return;for(const [_0x3dc29b,_0xa8078e]of _0x2937ac){const _0x5df347=_0xa8078e[_0x5cb6df(0x215)];_0x5df347[_0x5cb6df(0x201)]((_0x1b0afe,_0x4454fb,_0x5c2024)=>{const _0x4f28f8=_0x5cb6df,_0x379877=_0x13dcd7(_0x5c2024,_0x31dda6);_0x379877?_0x5df347[_0x4f28f8(0x216)](_0x1b0afe,_0x4454fb,_0x379877):_0x5df347[_0x4f28f8(0x216)](_0x1b0afe,_0x4454fb,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xce4c10['NORMAL']});}),_0x5df347['removeColumns'](_0x2ec5f3[_0x5cb6df(0x21f)],_0x2ec5f3[_0x5cb6df(0x1b9)]-_0x2ec5f3[_0x5cb6df(0x21f)]+0x1);}this[_0x5cb6df(0x188)][_0x5cb6df(0x1c3)](_0x4f8b17,_0x2d5362);}else{if(_0x31dda6['id']===_0x4a45c3['id']){const _0x284480=_0x31dda6[_0x5cb6df(0x1ea)],{range:_0x294763,unitId:_0x513823,subUnitId:_0x306bdf}=_0x284480,_0x220d3f=this[_0x5cb6df(0x188)]['getSubUnitSparkline'](_0x513823,_0x306bdf);if(!_0x220d3f)return;for(const [_0x578926,_0x144de5]of _0x220d3f){const _0x163f0a=_0x144de5[_0x5cb6df(0x215)];_0x163f0a[_0x5cb6df(0x201)]((_0x603a62,_0x4c075b,_0x1749bd)=>{const _0x50c4eb=_0x5cb6df,_0x30954b=_0x13dcd7(_0x1749bd,_0x31dda6);_0x30954b?_0x163f0a[_0x50c4eb(0x216)](_0x603a62,_0x4c075b,_0x30954b):_0x163f0a[_0x50c4eb(0x216)](_0x603a62,_0x4c075b,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xce4c10['NORMAL']});}),_0x163f0a[_0x5cb6df(0x198)](_0x294763[_0x5cb6df(0x1b1)],_0x294763[_0x5cb6df(0x217)]-_0x294763['startRow']+0x1);}this[_0x5cb6df(0x188)][_0x5cb6df(0x1c3)](_0x513823,_0x306bdf);}else{if(_0x31dda6['id']===_0x21b9aa['id']){const _0x4f3f01=_0x31dda6['params'],{unitId:_0x4f3b39,subUnitId:_0x4182bf,sourceRange:_0x34fd6a,targetRange:_0x398283}=_0x4f3f01,_0x42ecd4=this[_0x5cb6df(0x188)][_0x5cb6df(0x1cc)](_0x4f3b39,_0x4182bf);if(!_0x42ecd4)return;for(const [_0x3b402d,_0x5ea81d]of _0x42ecd4){const _0x1149a2=_0x5ea81d[_0x5cb6df(0x215)];_0x1149a2[_0x5cb6df(0x201)]((_0x1c7b7a,_0x32bc3f,_0x40d4b4)=>{const _0x2c970d=_0x5cb6df,_0x4d5588=_0x13dcd7(_0x40d4b4,_0x31dda6);_0x4d5588?_0x1149a2['setValue'](_0x1c7b7a,_0x32bc3f,_0x4d5588):_0x1149a2[_0x2c970d(0x216)](_0x1c7b7a,_0x32bc3f,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xce4c10[_0x2c970d(0x1bf)]});}),_0x1149a2[_0x5cb6df(0x1d4)](_0x34fd6a[_0x5cb6df(0x21f)],_0x34fd6a[_0x5cb6df(0x1b9)]-_0x34fd6a['startColumn']+0x1,_0x398283[_0x5cb6df(0x21f)]);}this[_0x5cb6df(0x188)][_0x5cb6df(0x1c3)](_0x4f3b39,_0x4182bf);}else{if(_0x31dda6['id']===_0x5ca113['id']){const _0x197f64=_0x31dda6[_0x5cb6df(0x1ea)],{unitId:_0x230ca5,subUnitId:_0x41d8a0,sourceRange:_0x537f79,targetRange:_0x7d491d}=_0x197f64,_0x2c1551=this[_0x5cb6df(0x188)][_0x5cb6df(0x1cc)](_0x230ca5,_0x41d8a0);if(!_0x2c1551)return;for(const [_0x1d164b,_0x3eafb9]of _0x2c1551){const _0x1422e7=_0x3eafb9[_0x5cb6df(0x215)];_0x1422e7[_0x5cb6df(0x201)]((_0x7023fb,_0x12e73a,_0x33eb0)=>{const _0xae479f=_0x5cb6df,_0x3e4e76=_0x13dcd7(_0x33eb0,_0x31dda6);_0x3e4e76?_0x1422e7[_0xae479f(0x216)](_0x7023fb,_0x12e73a,_0x3e4e76):_0x1422e7['setValue'](_0x7023fb,_0x12e73a,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xce4c10['NORMAL']});}),_0x1422e7['moveRows'](_0x537f79['startRow'],_0x537f79[_0x5cb6df(0x217)]-_0x537f79['startRow']+0x1,_0x7d491d[_0x5cb6df(0x1b1)]);}this[_0x5cb6df(0x188)][_0x5cb6df(0x1c3)](_0x230ca5,_0x41d8a0);}else{if(_0x31dda6['id']===_0xe963b3['id']){const _0x2645a4=_0x31dda6[_0x5cb6df(0x1ea)],{fromRange:_0x28c35a,toRange:_0x3e8013,unitId:_0x1c6ad6,from:_0x5bde67,to:_0x25cbb5}=_0x2645a4;if(_0x5bde67[_0x5cb6df(0x21d)]!==_0x25cbb5[_0x5cb6df(0x21d)])return;const _0x4a8dbc=_0x5bde67[_0x5cb6df(0x21d)],{startRow:_0x462b79,endRow:_0x401b1b,startColumn:_0x1546d3,endColumn:_0x1cf30f}=_0x28c35a,{startRow:_0x450c9a,startColumn:_0x53edb7}=_0x3e8013,_0x1f90e3=_0x450c9a-_0x462b79,_0x2f0c77=_0x53edb7-_0x1546d3,_0x508e52=this['_sparklineDataSourceModel'][_0x5cb6df(0x1cc)](_0x1c6ad6,_0x4a8dbc);if(!(_0x508e52!=null&&_0x508e52[_0x5cb6df(0x1c8)]))return;for(let _0x5c61dc=_0x462b79;_0x5c61dc<=_0x401b1b;_0x5c61dc++)for(let _0x29dc11=_0x1546d3;_0x29dc11<=_0x1cf30f;_0x29dc11++){const _0x48601a=this[_0x5cb6df(0x188)]['getSparkline'](_0x1c6ad6,_0x4a8dbc,_0x5c61dc,_0x29dc11);if(_0x48601a){const _0x27aaa9=this[_0x5cb6df(0x188)][_0x5cb6df(0x22a)](_0x1c6ad6,_0x4a8dbc,_0x48601a);if(_0x27aaa9){const _0x123126=_0x27aaa9[_0x5cb6df(0x215)]['getValue'](_0x5c61dc,_0x29dc11);_0x123126&&(_0x27aaa9[_0x5cb6df(0x215)][_0x5cb6df(0x216)](_0x5c61dc+_0x1f90e3,_0x29dc11+_0x2f0c77,_0x123126),_0x27aaa9[_0x5cb6df(0x215)][_0x5cb6df(0x22d)](_0x5c61dc,_0x29dc11));}}}for(const [_0x4efbf9,_0x2e5035]of _0x508e52){const _0x1c13b4=_0x2e5035['sparklines'];_0x1c13b4[_0x5cb6df(0x201)]((_0x4d5161,_0x566605,_0x5a4d10)=>{const _0x1a0b28=_0x5cb6df,_0x58fbb9={..._0x5a4d10};_0x991d94[_0x1a0b28(0x1f3)](_0x28c35a,_0x5a4d10)&&(_0x58fbb9[_0x1a0b28(0x1b1)]+=_0x1f90e3,_0x58fbb9['endRow']+=_0x1f90e3,_0x58fbb9[_0x1a0b28(0x21f)]+=_0x2f0c77,_0x58fbb9[_0x1a0b28(0x1b9)]+=_0x2f0c77),_0x1c13b4['setValue'](_0x4d5161,_0x566605,_0x58fbb9);});}this[_0x5cb6df(0x188)]['reBuildAnchorCache'](_0x1c6ad6,_0x4a8dbc);}}}}}}}}));}};Me=Ft([he(0x0,_0x4859aa(_0x5d9d84)),he(0x1,_0x4859aa(_0xfa61f6)),he(0x2,_0x2333fb),he(0x3,_0x4859aa(x))],Me);var Kt=Object[_0x7bca28(0x1f9)],zt=(_0x5a5b91,_0x229cda,_0xf06105,_0x5f12e5)=>{const _0x5e1f19=_0x7bca28;for(var _0x2dadf4=_0x5f12e5>0x1?void 0x0:_0x5f12e5?Kt(_0x229cda,_0xf06105):_0x229cda,_0x56841f=_0x5a5b91[_0x5e1f19(0x19d)]-0x1,_0x4c129a;_0x56841f>=0x0;_0x56841f--)(_0x4c129a=_0x5a5b91[_0x56841f])&&(_0x2dadf4=_0x4c129a(_0x2dadf4)||_0x2dadf4);return _0x2dadf4;},Ee=(_0x33c1ec,_0x532329)=>(_0x29ee11,_0x205e1a)=>_0x532329(_0x29ee11,_0x205e1a,_0x33c1ec);let Re=class extends _0x323f2b{constructor(_0x542474,_0x300d74,_0x47d8df){const _0x450a47=_0x7bca28;super(),this[_0x450a47(0x239)]=_0x542474,this[_0x450a47(0x233)]=_0x300d74,this[_0x450a47(0x188)]=_0x47d8df,this[_0x450a47(0x192)]();}[_0x7bca28(0x192)](){const _0x34eaa4=_0x7bca28;this[_0x34eaa4(0x197)](this['_sheetInterceptorService'][_0x34eaa4(0x235)]({'getMutations':_0x15cdf6=>{const _0x1e777d=_0x34eaa4;var _0x2b8cff;if(_0x15cdf6['id']===_0x48eb3b['id']){const _0x50ab7b=_0x15cdf6[_0x1e777d(0x1ea)],_0x2f37f8=_0x50ab7b[_0x1e777d(0x189)]||this['_univerInstanceService']['getCurrentUnitOfType'](_0x48bd24['UNIVER_SHEET'])['getUnitId'](),_0x14e41b=_0x50ab7b[_0x1e777d(0x21d)]||((_0x2b8cff=this[_0x1e777d(0x239)][_0x1e777d(0x202)](_0x48bd24[_0x1e777d(0x1fa)])[_0x1e777d(0x1de)]())==null?void 0x0:_0x2b8cff[_0x1e777d(0x1a1)]());if(!_0x2f37f8||!_0x14e41b)return{'redos':[],'undos':[]};const _0x317d88=this[_0x1e777d(0x188)]['getSubUnitSparkline'](_0x2f37f8,_0x14e41b);if(!_0x317d88)return{'redos':[],'undos':[]};const _0x4d5b88=new Set(),_0x3b3024={};for(const [_0xa2ced3,_0x405f3a]of _0x317d88)_0x4d5b88['add'](_0xa2ced3),_0x3b3024[_0xa2ced3]={'config':_0x372585[_0x1e777d(0x1ac)](_0x405f3a[_0x1e777d(0x1ad)]),'sparklines':_0x372585[_0x1e777d(0x1ac)](_0x405f3a['sparklines']['clone']())};if(_0x4d5b88[_0x1e777d(0x1c8)])return{'redos':[{'id':y['id'],'params':{'unitId':_0x2f37f8,'subUnitId':_0x14e41b,'groupIds':Array[_0x1e777d(0x22c)](_0x4d5b88),'isSingle':!0x1}}],'undos':[{'id':V['id'],'params':{'unitId':_0x2f37f8,'subUnitId':_0x14e41b,'sparklineConfigMap':_0x3b3024}}]};}else{if(_0x15cdf6['id']===_0x3bc170['id']){const _0x357b73=_0x15cdf6[_0x1e777d(0x1ea)],{unitId:_0x120666,subUnitId:_0x54b600,targetSubUnitId:_0x3e31e1}=_0x357b73;if(!_0x120666||!_0x54b600||!_0x3e31e1)return{'redos':[],'undos':[]};const _0x2e5ff8=this[_0x1e777d(0x188)]['getSubUnitSparkline'](_0x120666,_0x54b600);if(!_0x2e5ff8)return{'redos':[],'undos':[]};const _0x2d2fce=new Set(),_0x880228={};for(const [_0x24e0c3,_0x2d6019]of _0x2e5ff8){const _0x3f888a='g_'+_0x4d040d(0x6);_0x2d2fce[_0x1e777d(0x19a)](_0x24e0c3),_0x880228[_0x3f888a]={'config':_0x372585[_0x1e777d(0x1ac)](_0x2d6019[_0x1e777d(0x1ad)]),'sparklines':_0x372585['deepClone'](_0x2d6019[_0x1e777d(0x215)]['clone']())};}if(_0x2d2fce['size'])return{'redos':[{'id':V['id'],'params':{'unitId':_0x120666,'subUnitId':_0x3e31e1,'sparklineConfigMap':_0x880228}}],'undos':[{'id':y['id'],'params':{'unitId':_0x120666,'subUnitId':_0x3e31e1,'groupIds':Array[_0x1e777d(0x22c)](_0x2d2fce),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};Re=zt([Ee(0x0,_0x4859aa(_0x2333fb)),Ee(0x1,_0x4859aa(_0xb191a)),Ee(0x2,_0x4859aa(x))],Re);var Xt=Object[_0x7bca28(0x1f9)],Jt=(_0x419307,_0x4a6be6,_0x18d16d,_0x1cadad)=>{const _0x1a2cf5=_0x7bca28;for(var _0x9ee470=_0x1cadad>0x1?void 0x0:_0x1cadad?Xt(_0x4a6be6,_0x18d16d):_0x4a6be6,_0x4fe812=_0x419307[_0x1a2cf5(0x19d)]-0x1,_0x3c3d7e;_0x4fe812>=0x0;_0x4fe812--)(_0x3c3d7e=_0x419307[_0x4fe812])&&(_0x9ee470=_0x3c3d7e(_0x9ee470)||_0x9ee470);return _0x9ee470;},Be=(_0x2a600c,_0x37be7d)=>(_0x138c33,_0x5bef8c)=>_0x37be7d(_0x138c33,_0x5bef8c,_0x2a600c);function _0x3b16(){const _0x325f2f=['UNIVER_SHEET','removeColumns','_resourceManagerService','14316880SBfjYg','_initMergeWithSparkline','_onRefRangeChange','FRESH','forValue','getCurrentUnitOfType','clone','rgb(236,100,169)','updateConfig$','rgb(252,117,60)','removePartSparkline','push','forEach','refRangeHandle','rgb(54,78,244)','themeType','_initDataChangeListener','standard','setSparkline','addSparkline','subscribe','COMMAND','extremumMax','PIE_CHART','sparklines','setValue','endRow','_sheetSelectionService','LINE_CHART','_ensureConfigMap','8QIrHHZ','GROUP_EXTREMUM','subUnitId','_getRefRangeMutationsByDeleteRows','startColumn','symbol','column','rgb(30,177,189)','sheet.mutation.set-sparkline','intersects','u-spacing','map','getCurrentUnitForType','MAX_SAFE_INTEGER','389130NtSQSK','getSparklineById','distinctive','from','realDeleteValue','set','_updateConfig$','SHEET_SPARKLINE_PLUGIN','fromJSON','1426404lYyeCD','_sheetInterceptorService','groupId','interceptCommand','values','_initHideRowColWithSparkline','MUTATION','_univerInstanceService','get','MIN_SAFE_INTEGER','range','_initDependencies','seriesColor','_getRefRangeMutationsByDeleteCols','317209ENnJYI','rgb(244,104,249)','fresh','rgb(248,190,21)','getMatrix','firstPoint','_sparklineDataSourceModel','unitId','emptyShowAs','getCellRaw','_initRegisterCommand','_initClearWithSparkline','number','2632332rkJQRq','BAR_CHART','hasValue','_initSheetChange','clearSparklineCache','markersPoint','onCommandExecuted','sparklineAnchorMap','disposeWithMe','removeRows','CONNECT_WITH_LINE','add','actualRow','connect_with_line','length','_commandService','NUMBER','STANDARD','getSheetId','_initCorrectRangeWithSparkline','SPACING','getRowVisible','SOFT','type','next','sheet.command.set-sparkline','_exclusiveRangeService','492894BejArs','pushUndoRedo','deepClone','config','delete','custom','registerPluginResource','startRow','zero_value','getCurrentSelections','asObservable','_sparklineAnchorMap','getCell','soft','SPECIALTY','endColumn','CUSTOM_EXTREMUM','_refRangeService','_ensureAnchorMatrix','u-connect','matrix','NORMAL','extremumMin','exclusiveRangesChange$','_injector','reBuildAnchorCache','parse','_config','PROFIT_AND_LOSS_CHART','ZERO_VALUE','size','2kweNFE','CUSTOM','deleteUnit','getSubUnitSparkline','sheet.mutation.remove-sparkline','removeSparkline','getSizeOf','rgb(124,66,147)','DISTINCTIVE','FORCE_STRING','_sparklineModel','moveColumns','remove','toRgbString','toJSON','_initSnapshot','_initExclusiveRangeChange','has','entries','row','rgb(80,102,248)','getActiveSheet','foreach','setAlpha','getColVisible','6851946UVvDpU','ranges','getSparkline','5PtOcrq','updateSparklineExtraNum','keys','dispose','max','params','sheet.mutation.add-sparkline','disposableCollection','defineProperty','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','getSparklineCache','min','getValue','STRING','contains','SELF_EXTREMUM','item','lowPoint','pluginName','every','getOwnPropertyDescriptor'];_0x3b16=function(){return _0x325f2f;};return _0x3b16();}let ve=class extends _0x323f2b{constructor(_0x2f9730,_0x4eb2a6){const _0x17836a=_0x7bca28;super(),this['_resourceManagerService']=_0x2f9730,this[_0x17836a(0x188)]=_0x4eb2a6,this[_0x17836a(0x1d8)]();}[_0x7bca28(0x1d8)](){const _0x3493e7=_0x7bca28,_0x56986c=_0x28fabb=>{const _0x4e3be5=_0x215a,_0x528db4=this[_0x4e3be5(0x188)]['toJSON'](_0x28fabb);return _0x528db4?JSON['stringify'](_0x528db4):'';},_0x41cf8a=_0x1b95d3=>_0x1b95d3?JSON[_0x3493e7(0x1c4)](_0x1b95d3):{};this[_0x3493e7(0x197)](this[_0x3493e7(0x1fc)][_0x3493e7(0x1b0)]({'toJson':_0x56986c,'parseJson':_0x41cf8a,'pluginName':Ke,'businesses':[_0x48bd24['UNIVER_SHEET']],'onLoad':(_0x22222e,_0x4f7be4)=>{const _0xad371e=_0x3493e7;this[_0xad371e(0x188)][_0xad371e(0x231)](_0x4f7be4);},'onUnLoad':_0x4a1d87=>{const _0x43ce59=_0x3493e7;this[_0x43ce59(0x188)]['deleteUnit'](_0x4a1d87);}}));}};ve=Jt([Be(0x0,_0x4859aa(_0x37cfd1)),Be(0x1,_0x4859aa(x))],ve);var Zt=Object[_0x7bca28(0x1ed)],Yt=Object['getOwnPropertyDescriptor'],qt=(_0x35f6d5,_0x362b0f,_0x5c5137)=>_0x362b0f in _0x35f6d5?Zt(_0x35f6d5,_0x362b0f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c5137}):_0x35f6d5[_0x362b0f]=_0x5c5137,Qt=(_0x1cb9ab,_0x4fa57f,_0x1f8dec,_0xf06b2)=>{for(var _0x335cb6=_0xf06b2>0x1?void 0x0:_0xf06b2?Yt(_0x4fa57f,_0x1f8dec):_0x4fa57f,_0x51c34b=_0x1cb9ab['length']-0x1,_0x354521;_0x51c34b>=0x0;_0x51c34b--)(_0x354521=_0x1cb9ab[_0x51c34b])&&(_0x335cb6=_0x354521(_0x335cb6)||_0x335cb6);return _0x335cb6;},We=(_0x8e6525,_0x4d873c)=>(_0x31abee,_0x1684af)=>_0x4d873c(_0x31abee,_0x1684af,_0x8e6525),Xe=(_0x469711,_0x4f88df,_0x1270ce)=>qt(_0x469711,typeof _0x4f88df!=_0x7bca28(0x220)?_0x4f88df+'':_0x4f88df,_0x1270ce);let we=class extends _0x526cd1{constructor(_0x5cb141={},_0x36fffc,_0x2af44a){const _0x239a4a=_0x7bca28;super(),this[_0x239a4a(0x1c5)]=_0x5cb141,this[_0x239a4a(0x1c2)]=_0x36fffc,this[_0x239a4a(0x19e)]=_0x2af44a,this[_0x239a4a(0x23d)](),this['_initRegisterCommand']();}[_0x7bca28(0x23d)](){const _0x271687=_0x7bca28;[[x],[me],[_e],[ke],[Me],[Ce],[Re],[ve]][_0x271687(0x209)](_0x138402=>{const _0x582f87=_0x271687;this[_0x582f87(0x1c2)][_0x582f87(0x19a)](_0x138402);}),_0x3b2a7b(this[_0x271687(0x1c2)],[[ve]]);}['onReady'](){const _0x489416=_0x7bca28;_0x3b2a7b(this[_0x489416(0x1c2)],[[me],[_e],[ke],[Me],[Ce],[Re]]);}[_0x7bca28(0x18c)](){const _0x271166=_0x7bca28;[Ot,V,xt,y,Ut,xe][_0x271166(0x209)](_0x1d3500=>this[_0x271166(0x19e)]['registerCommand'](_0x1d3500));}};Xe(we,_0x7bca28(0x1f7),Ke),Xe(we,_0x7bca28(0x1a6),_0x48bd24['UNIVER_SHEET']),we=Qt([_0x669323(_0x2cb3ef),We(0x1,_0x4859aa(_0x34a1fe)),We(0x2,_0x4859aa(_0x5d9d84))],we);export{Ot as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,xt as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,Ut as SetSheetSparklineCommand,xe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,Ve as SparklineExtremumTypeEnum,an as SparklinePointsNames,Ge as SparklineThemeMapping,ze as SparklineThemeTypeEnum,Et as SparklineTypeEnum,we as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
|
|
1
|
+
const _0xffcb5=_0x578b;(function(_0x168d57,_0x1b7abf){const _0x18067a=_0x578b,_0x42de76=_0x168d57();while(!![]){try{const _0x45c7c8=parseInt(_0x18067a(0x170))/0x1+parseInt(_0x18067a(0x1b9))/0x2*(parseInt(_0x18067a(0x1f3))/0x3)+parseInt(_0x18067a(0x195))/0x4*(parseInt(_0x18067a(0x156))/0x5)+parseInt(_0x18067a(0x1e5))/0x6*(-parseInt(_0x18067a(0x1e4))/0x7)+-parseInt(_0x18067a(0x15e))/0x8*(parseInt(_0x18067a(0x14b))/0x9)+parseInt(_0x18067a(0x1e3))/0xa+-parseInt(_0x18067a(0x157))/0xb*(parseInt(_0x18067a(0x172))/0xc);if(_0x45c7c8===_0x1b7abf)break;else _0x42de76['push'](_0x42de76['shift']());}catch(_0x5a5541){_0x42de76['push'](_0x42de76['shift']());}}}(_0x1ad6,0x27365));var qe=Object[_0xffcb5(0x1d6)],Qe=(_0x4d073b,_0x4e1057,_0x2354a3)=>_0x4e1057 in _0x4d073b?qe(_0x4d073b,_0x4e1057,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2354a3}):_0x4d073b[_0x4e1057]=_0x2354a3,re=(_0x57f76f,_0x34d9b2,_0x5c9080)=>Qe(_0x57f76f,typeof _0x34d9b2!=_0xffcb5(0x1ed)?_0x34d9b2+'':_0x34d9b2,_0x5c9080);import{ObjectMatrix as _0x4a8230,Inject as _0xa4ca45,IUniverInstanceService as _0x3fc178,Disposable as _0x10aa75,isValidRange as _0x583973,CellValueType as _0x55a170,ColorKit as _0x587e0c,CommandType as _0x598939,Range as _0xe67202,IUndoRedoService as _0x263e4a,generateRandomId as _0xe87289,ICommandService as _0x25d554,Tools as _0x524faa,sequenceExecute as _0x51416e,Rectangle as _0x1c4800,cellToRange as _0x2cb8ba,DisposableCollection as _0x56b716,RANGE_TYPE as _0x46e3f1,UniverInstanceType as _0xdc48d7,IResourceManagerService as _0x16568e,DependentOn as _0x18c544,Injector as _0x22768a,Plugin as _0x183207,touchDependencies as _0x5cbd6a}from'@univerjs/core';import{getSheetCommandTarget as _0x5a590c,SheetsSelectionsService as _0x1d410d,SheetInterceptorService as _0x4891aa,ClearSelectionAllCommand as _0x53eefa,IExclusiveRangeService as _0x3a66f4,SetRangeValuesMutation as _0x34ae5b,ReorderRangeMutation as _0x105a29,SetRowHiddenMutation as _0xd5c566,SetColHiddenMutation as _0x112a44,SetRowVisibleMutation as _0x3f2fe4,SetColVisibleMutation as _0x14f814,AddWorksheetMergeCommand as _0x2a54af,RefRangeService as _0x524ea0,SetWorksheetActivateCommand as _0xa8b0dd,RemoveRowCommand as _0x27ed64,RemoveColCommand as _0x26bf5e,adjustRangeOnMutation as _0x45e1ba,RemoveRowMutation as _0x2cca27,RemoveColMutation as _0xb2e7b,InsertColMutation as _0x5ba74c,InsertRowMutation as _0x34657c,MoveColsMutation as _0xa22292,MoveRowsMutation as _0x30c61d,MoveRangeMutation as _0x9c7e93,RemoveSheetCommand as _0xf02379,CopySheetCommand as _0x335c9d}from'@univerjs/sheets';import{Subject as _0xdbb644}from'rxjs';import{UniverLicensePlugin as _0x5bb428}from'@univerjs-pro/license';function Fe(_0xdc9729,_0x1cb7c4){const _0x31147f=_0xffcb5,_0x3b6733=new _0x4a8230(),_0x112857=[],_0x1f5fd6=_0xdc9729[_0x31147f(0x16b)]>0x1;let _0x20105d=0x0,_0x22f5fd=0x0;for(const _0x50e5c3 of _0xdc9729)_0x20105d+=_0x50e5c3[_0x31147f(0x1f2)]-_0x50e5c3['startRow']+0x1,_0x22f5fd+=_0x50e5c3[_0x31147f(0x15f)]-_0x50e5c3['startColumn']+0x1;for(const _0x4c9396 of _0x1cb7c4)for(let _0x317830=_0x4c9396['startRow'];_0x317830<=_0x4c9396[_0x31147f(0x1f2)];_0x317830++)for(let _0x512d42=_0x4c9396['startColumn'];_0x512d42<=_0x4c9396[_0x31147f(0x15f)];_0x512d42++)_0x112857[_0x31147f(0x1c1)]({'row':_0x317830,'column':_0x512d42});if(_0x112857[_0x31147f(0x16b)]===_0x20105d)_0x1f5fd6?_0x112857[_0x31147f(0x1a4)]((_0x4de6c8,_0xa30e74)=>{const _0x889be=_0x31147f,_0x2fa80c=_0xdc9729[_0xa30e74],_0xda94ca={'startRow':_0x2fa80c[_0x889be(0x1b3)],'startColumn':_0x2fa80c[_0x889be(0x158)],'endRow':_0x2fa80c[_0x889be(0x1b3)],'endColumn':_0x2fa80c['endColumn']};_0x3b6733['setValue'](_0x4de6c8['row'],_0x4de6c8[_0x889be(0x19e)],_0xda94ca);}):_0x112857[_0x31147f(0x1a4)]((_0x368a52,_0x4b8b26)=>{const _0x236fcf=_0x31147f,_0x28f4ae=_0xdc9729[0x0],_0x4ab521={'startRow':_0x28f4ae[_0x236fcf(0x1b3)]+_0x4b8b26,'startColumn':_0x28f4ae[_0x236fcf(0x158)],'endRow':_0x28f4ae[_0x236fcf(0x1b3)]+_0x4b8b26,'endColumn':_0x28f4ae[_0x236fcf(0x15f)]};_0x3b6733[_0x236fcf(0x1cb)](_0x368a52[_0x236fcf(0x14f)],_0x368a52[_0x236fcf(0x19e)],_0x4ab521);});else{if(_0x112857['length']===_0x22f5fd)_0x1f5fd6?_0x112857[_0x31147f(0x1a4)]((_0x523704,_0x2c1223)=>{const _0x5f1155=_0x31147f,_0x2ce359=_0xdc9729[_0x2c1223],_0x5d2438={'startRow':_0x2ce359[_0x5f1155(0x1b3)],'startColumn':_0x2ce359[_0x5f1155(0x158)],'endRow':_0x2ce359[_0x5f1155(0x1f2)],'endColumn':_0x2ce359[_0x5f1155(0x158)]};_0x3b6733[_0x5f1155(0x1cb)](_0x523704[_0x5f1155(0x14f)],_0x523704[_0x5f1155(0x19e)],_0x5d2438);}):_0x112857[_0x31147f(0x1a4)]((_0xac6986,_0x50be9a)=>{const _0x3279d5=_0x31147f,_0x54b426=_0xdc9729[0x0],_0x3c9e26={'startRow':_0x54b426['startRow'],'startColumn':_0x54b426[_0x3279d5(0x158)]+_0x50be9a,'endRow':_0x54b426[_0x3279d5(0x1f2)],'endColumn':_0x54b426['startColumn']+_0x50be9a};_0x3b6733[_0x3279d5(0x1cb)](_0xac6986[_0x3279d5(0x14f)],_0xac6986[_0x3279d5(0x19e)],_0x3c9e26);});else{if(_0x112857[_0x31147f(0x16b)]===_0xdc9729[_0x31147f(0x16b)])_0xdc9729[_0x31147f(0x148)](_0x1c7cb7=>!(_0x1c7cb7[_0x31147f(0x1b3)]!==_0x1c7cb7[_0x31147f(0x1f2)]&&_0x1c7cb7['startColumn']!==_0x1c7cb7[_0x31147f(0x15f)]))&&_0x112857[_0x31147f(0x1a4)]((_0x51022f,_0x5df6d6)=>{const _0x4ce502=_0x31147f,_0x17e3a6=_0xdc9729[_0x5df6d6];_0x3b6733[_0x4ce502(0x1cb)](_0x51022f[_0x4ce502(0x14f)],_0x51022f['column'],_0x17e3a6);});else throw new Error(_0x31147f(0x1d9));}}return _0x3b6733;}const Ke='SHEET_SPARKLINE_PLUGIN',Ge={'standard':['rgb(54,78,244)','rgb(236,100,169)'],'specialty':[_0xffcb5(0x144),'rgb(30,177,189)'],'distinctive':[_0xffcb5(0x1cc),_0xffcb5(0x175)],'soft':[_0xffcb5(0x1bf),_0xffcb5(0x1f9)],'fresh':[_0xffcb5(0x15b),'rgb(248,190,21)']},an=[_0xffcb5(0x1e1),_0xffcb5(0x1a8),'lastPoint',_0xffcb5(0x1af),_0xffcb5(0x1c8),_0xffcb5(0x161)];var ze=(_0x1152d2=>(_0x1152d2['STANDARD']=_0xffcb5(0x1c9),_0x1152d2['SPECIALTY']=_0xffcb5(0x19a),_0x1152d2[_0xffcb5(0x181)]=_0xffcb5(0x18c),_0x1152d2['SOFT']=_0xffcb5(0x188),_0x1152d2['FRESH']='fresh',_0x1152d2[_0xffcb5(0x1e2)]=_0xffcb5(0x182),_0x1152d2))(ze||{}),Et=(_0x3db84c=>(_0x3db84c[_0x3db84c[_0xffcb5(0x18f)]=0x1]='LINE_CHART',_0x3db84c[_0x3db84c[_0xffcb5(0x14c)]=0x2]='BAR_CHART',_0x3db84c[_0x3db84c[_0xffcb5(0x1bd)]=0x3]=_0xffcb5(0x1bd),_0x3db84c[_0x3db84c[_0xffcb5(0x143)]=0x4]=_0xffcb5(0x143),_0x3db84c))(Et||{}),J=(_0x3d2543=>(_0x3d2543[_0xffcb5(0x168)]=_0xffcb5(0x1e8),_0x3d2543['ZERO_VALUE']=_0xffcb5(0x19d),_0x3d2543['CONNECT_WITH_LINE']=_0xffcb5(0x1f4),_0x3d2543))(J||{}),Ve=(_0xbcfdc1=>(_0xbcfdc1[_0xbcfdc1[_0xffcb5(0x178)]=0x1]=_0xffcb5(0x178),_0xbcfdc1[_0xbcfdc1['GROUP_EXTREMUM']=0x2]=_0xffcb5(0x165),_0xbcfdc1[_0xbcfdc1[_0xffcb5(0x1d4)]=0x3]='CUSTOM_EXTREMUM',_0xbcfdc1))(Ve||{}),Vt=Object[_0xffcb5(0x13c)],yt=(_0x5ac4d0,_0x4861a3,_0x21bf00,_0x8dc303)=>{const _0x1376bc=_0xffcb5;for(var _0x1a65f8=_0x8dc303>0x1?void 0x0:_0x8dc303?Vt(_0x4861a3,_0x21bf00):_0x4861a3,_0x177c62=_0x5ac4d0[_0x1376bc(0x16b)]-0x1,_0x4f3065;_0x177c62>=0x0;_0x177c62--)(_0x4f3065=_0x5ac4d0[_0x177c62])&&(_0x1a65f8=_0x4f3065(_0x1a65f8)||_0x1a65f8);return _0x1a65f8;},Nt=(_0x16fa47,_0x4def07)=>(_0x2ae577,_0x4931ce)=>_0x4def07(_0x2ae577,_0x4931ce,_0x16fa47);function _0x1ad6(){const _0x20a40e=['setValue','rgb(124,66,147)','onReady','_getRefRangeMutationsByDeleteCols','toRgbString','NORMAL','containHiddenCells','addSparkline','_ensureAnchorMatrix','CUSTOM_EXTREMUM','MIN_SAFE_INTEGER','defineProperty','deleteUnit','getSheetId','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','remove','removeRows','u-connect','_initSnapshot','emptyShowAs','config','changeDataSourceInfo','highPoint','CUSTOM','2978000TlpyYu','7DsDiSx','1456614ufXOJy','fromJSON','removeSparkline','spacing','min','get','extremumMax','getSparkline','symbol','_refRangeService','getSubUnitSparkline','registerPluginResource','getCurrentSelections','endRow','9jtLdLs','connect_with_line','deepClone','_updateConfig$','sparklines','sparklineModel','rgb(244,104,249)','getOwnPropertyDescriptor','actualColumn','_sparklineModel','setSparkline','_commandService','reBuildAnchorCache','_injector','PIE_CHART','rgb(49,106,246)','sheet.mutation.add-sparkline','matrix','getCurrentUnitOfType','every','onCommandExecuted','_initMergeWithSparkline','90FUjAKy','BAR_CHART','getSizeOf','pushUndoRedo','row','range','getColVisible','asObservable','sheet.command.add-sparkline','_initHideRowColWithSparkline','assign','58945lcHvlr','3466122trsmPY','startColumn','_univerInstanceService','extremumMin','rgb(46,187,122)','actualRow','exclusiveRangesChange$','221576zyLGkp','endColumn','moveColumns','markersPoint','forValue','disposableCollection','_resourceManagerService','GROUP_EXTREMUM','contains','realDeleteValue','SPACING','dispose','getMatrix','length','BOOLEAN','sheet.command.remove-sparkline','MAX_SAFE_INTEGER','map','155421IjcGID','refRangeHandle','12kHIUOy','values','set','rgb(252,117,60)','ranges','add','SELF_EXTREMUM','_initCorrectRangeWithSparkline','ZERO_VALUE','sheet.mutation.remove-sparkline','_initDependencies','registerRefRange','_sparklineAnchorMap','getSparklineById','_sparklineDataSourceModel','DISTINCTIVE','custom','themeType','max','type','setAlpha','_initClearWithSparkline','soft','getRowVisible','value','pluginName','distinctive','unitId','number','LINE_CHART','removePartSparkline','_initExclusiveRangeChange','clearSparklineCache','moveRows','disposeWithMe','104xharzs','from','size','MUTATION','_initDataChangeListener','specialty','_exclusiveRangeService','STRING','zero_value','column','sheet.mutation.set-sparkline','getCellRaw','has','getValue','foreach','forEach','entries','groupId','clone','firstPoint','_config','getCurrentUnitForType','u-spacing','sparklineAnchorMap','subUnitId','delete','lowPoint','updateSparklineExtraNum','CONNECT_WITH_LINE','_onRefRangeChange','startRow','params','_ensureConfigMap','stringify','_sheetInterceptorService','NUMBER','157146CLoSwk','_initRegisterCommand','getCell','item','PROFIT_AND_LOSS_CHART','next','rgb(80,102,248)','interceptCommand','push','UNIVER_SHEET','getSparklineCache','keys','parse','nonNumShowAs','COMMAND','negativePoint','standard','intersects'];_0x1ad6=function(){return _0x20a40e;};return _0x1ad6();}let x=class extends _0x10aa75{constructor(_0x5d85a1){const _0x218fdc=_0xffcb5;super(),re(this,_0x218fdc(0x13e),new Map()),re(this,_0x218fdc(0x17e),new Map()),re(this,_0x218fdc(0x1f6),new _0xdbb644()),re(this,'updateConfig$',this['_updateConfig$'][_0x218fdc(0x152)]()),this[_0x218fdc(0x159)]=_0x5d85a1;}[_0xffcb5(0x1b5)](_0x1ed326,_0x4a7436){const _0xbb913b=_0xffcb5;let _0x5ae7e5=this['_sparklineModel'][_0xbb913b(0x1ea)](_0x1ed326);_0x5ae7e5||(_0x5ae7e5=new Map(),this['_sparklineModel']['set'](_0x1ed326,_0x5ae7e5));let _0x1bf0f5=_0x5ae7e5[_0xbb913b(0x1ea)](_0x4a7436);return _0x1bf0f5||(_0x1bf0f5=new Map(),_0x5ae7e5[_0xbb913b(0x174)](_0x4a7436,_0x1bf0f5)),_0x1bf0f5;}[_0xffcb5(0x1d3)](_0x1e2f74,_0x24eaa5){const _0x3ffe24=_0xffcb5;let _0x4a4331=this[_0x3ffe24(0x17e)]['get'](_0x1e2f74);_0x4a4331||(_0x4a4331=new Map(),this[_0x3ffe24(0x17e)][_0x3ffe24(0x174)](_0x1e2f74,_0x4a4331));let _0x430183=_0x4a4331['get'](_0x24eaa5);return _0x430183||(_0x430183={'matrix':new _0x4a8230(),'extra':{}},_0x4a4331[_0x3ffe24(0x174)](_0x24eaa5,_0x430183)),_0x430183;}[_0xffcb5(0x1b0)](_0x5e3130,_0x518db6,_0x15c119,_0x2a5ee9=_0xffcb5(0x174)){const _0x1d8494=_0xffcb5;var _0x39365c,_0x5ceb54,_0x41997c,_0x40ab41,_0x249ae4,_0x36459a,_0x13aa86,_0x267762,_0x3e4292,_0x1b7fd5,_0x3042ca,_0x95a639,_0x5a9284;const _0x2717a3=(_0x5ceb54=(_0x39365c=this['_sparklineModel'][_0x1d8494(0x1ea)](_0x5e3130))==null?void 0x0:_0x39365c[_0x1d8494(0x1ea)](_0x518db6))==null?void 0x0:_0x5ceb54[_0x1d8494(0x1ea)](_0x15c119);if(!_0x2717a3)return;const _0x22c809=_0x5a590c(this['_univerInstanceService'],{'unitId':_0x5e3130,'subUnitId':_0x518db6});if(!_0x22c809)return;const _0xff5f27=this[_0x1d8494(0x1d3)](_0x5e3130,_0x518db6),{extra:_0x5c545a,matrix:_0x444109}=_0xff5f27,{worksheet:_0x5ad2d9}=_0x22c809;let _0x28bbe7=Number['MIN_SAFE_INTEGER'],_0x1c21b6=Number[_0x1d8494(0x16e)];const _0x595a56=(_0x41997c=_0x2717a3[_0x1d8494(0x1df)][_0x1d8494(0x1d1)])!=null?_0x41997c:!0x1;_0x2717a3[_0x1d8494(0x1f7)][_0x1d8494(0x162)]((_0xe5b825,_0x272173,_0x29c8f4)=>{const _0x5059c2=_0x1d8494;var _0x3e9b88,_0x23f0d5,_0x11097d;const _0x3025a0=_0x29c8f4;let _0x182e65=Number[_0x5059c2(0x1d5)],_0x5461c6=Number[_0x5059c2(0x16e)],_0xa97fe9=0x0,_0x1872dd=0x0;const _0x4dbf93=[];if(!_0x583973(_0x3025a0))_0x444109[_0x5059c2(0x1cb)](_0xe5b825,_0x272173,{'groupId':_0x15c119,'data':[],'max':_0x182e65,'min':_0x5461c6,'highIndex':_0xa97fe9,'lowIndex':_0x1872dd,'negativeIndexes':_0x4dbf93});else{const _0x1e29d0=[];for(let _0x6a6ef3=_0x3025a0['startRow'];_0x6a6ef3<=_0x3025a0[_0x5059c2(0x1f2)];_0x6a6ef3++){for(let _0xd1d3=_0x3025a0[_0x5059c2(0x158)];_0xd1d3<=_0x3025a0[_0x5059c2(0x15f)];_0xd1d3++){const _0x3e4627=_0x5ad2d9[_0x5059c2(0x189)](_0x6a6ef3),_0xcaf1ec=_0x5ad2d9[_0x5059c2(0x151)](_0xd1d3);if(!_0x595a56&&(!_0x3e4627||!_0xcaf1ec))continue;let _0x286586=0x0;const _0x4b1b7e=((_0x3e9b88=_0x5ad2d9[_0x5059c2(0x1a0)](_0x6a6ef3,_0xd1d3))==null?void 0x0:_0x3e9b88['v'])!==void 0x0?_0x5ad2d9['getCellRaw'](_0x6a6ef3,_0xd1d3):_0x5ad2d9[_0x5059c2(0x1bb)](_0x6a6ef3,_0xd1d3);if(!_0x4b1b7e||_0x4b1b7e['v']===void 0x0||_0x4b1b7e['v']===null){const _0x9ccbc5=(_0x23f0d5=_0x2717a3[_0x5059c2(0x1df)][_0x5059c2(0x1de)])!=null?_0x23f0d5:J['SPACING'];_0x9ccbc5===J[_0x5059c2(0x17a)]?_0x286586=0x0:_0x9ccbc5===J[_0x5059c2(0x168)]?_0x286586=_0x5059c2(0x1ab):_0x9ccbc5===J[_0x5059c2(0x1b1)]&&(_0x286586='u-connect');}else{if(_0x4b1b7e['t']===_0x55a170[_0x5059c2(0x19c)]||_0x4b1b7e['t']===_0x55a170['FORCE_STRING']){const _0x37c7f=(_0x11097d=_0x2717a3['config'][_0x5059c2(0x1c6)])!=null?_0x11097d:J[_0x5059c2(0x168)];_0x37c7f===J[_0x5059c2(0x17a)]?_0x286586=0x0:_0x37c7f===J[_0x5059c2(0x168)]?_0x286586=_0x5059c2(0x1ab):_0x37c7f===J[_0x5059c2(0x1b1)]&&(_0x286586=_0x5059c2(0x1dc));}else _0x4b1b7e['t']===_0x55a170[_0x5059c2(0x16c)]?_0x286586=_0x4b1b7e['v']?0x1:0x0:_0x4b1b7e['t']===_0x55a170[_0x5059c2(0x1b8)]?_0x286586=Number(_0x4b1b7e['v']):_0x286586=_0x4b1b7e['v'];}if(_0x1e29d0['push'](_0x286586),typeof _0x286586==_0x5059c2(0x18e)){_0x182e65=Math[_0x5059c2(0x184)](_0x182e65,_0x286586),_0x28bbe7=Math['max'](_0x28bbe7,_0x286586),_0x1c21b6=Math[_0x5059c2(0x1e9)](_0x1c21b6,_0x286586),_0x5461c6=Math[_0x5059c2(0x1e9)](_0x5461c6,_0x286586);const _0x5d2e41=typeof _0x1e29d0[_0xa97fe9]==_0x5059c2(0x18e)?Number(_0x1e29d0[_0xa97fe9]):Number[_0x5059c2(0x1d5)];_0x286586>_0x5d2e41&&(_0xa97fe9=_0x1e29d0['length']-0x1);const _0x499065=typeof _0x1e29d0[_0x1872dd]==_0x5059c2(0x18e)?Number(_0x1e29d0[_0x1872dd]):Number[_0x5059c2(0x16e)];_0x286586<_0x499065&&(_0x1872dd=_0x1e29d0[_0x5059c2(0x16b)]-0x1),_0x286586<0x0&&_0x4dbf93['push'](_0x1e29d0['length']-0x1);}}_0x444109[_0x5059c2(0x1cb)](_0xe5b825,_0x272173,{'groupId':_0x15c119,'data':_0x1e29d0,'max':_0x182e65,'min':_0x5461c6,'highIndex':_0xa97fe9,'lowIndex':_0x1872dd,'negativeIndexes':_0x4dbf93});}}});let _0x50a4b3=_0x28bbe7;((_0x40ab41=_0x2717a3[_0x1d8494(0x1df)][_0x1d8494(0x1eb)])==null?void 0x0:_0x40ab41[_0x1d8494(0x185)])===Ve[_0x1d8494(0x1d4)]&&(_0x50a4b3=(_0x36459a=(_0x249ae4=_0x2717a3['config'][_0x1d8494(0x1eb)])==null?void 0x0:_0x249ae4[_0x1d8494(0x18a)])!=null?_0x36459a:_0x28bbe7);let _0x291703=_0x1c21b6;((_0x13aa86=_0x2717a3[_0x1d8494(0x1df)][_0x1d8494(0x15a)])==null?void 0x0:_0x13aa86[_0x1d8494(0x185)])===Ve[_0x1d8494(0x1d4)]&&(_0x291703=(_0x3e4292=(_0x267762=_0x2717a3[_0x1d8494(0x1df)][_0x1d8494(0x15a)])==null?void 0x0:_0x267762['value'])!=null?_0x3e4292:_0x1c21b6);const _0xf5314f=(_0x1b7fd5=_0x2717a3[_0x1d8494(0x1df)][_0x1d8494(0x183)])!=null?_0x1b7fd5:ze['STANDARD'],_0x5a2531=(_0x5a9284=(_0x95a639=_0x2717a3[_0x1d8494(0x1df)]['seriesColor'])!=null?_0x95a639:(_0x3042ca=Ge[_0xf5314f])==null?void 0x0:_0x3042ca[0x0])!=null?_0x5a9284:Ge[_0x1d8494(0x1c9)][0x0],_0x4704f0=new _0x587e0c(_0x5a2531),_0x5aef63=_0x4704f0[_0x1d8494(0x186)](0.2)['toRgbString'](),_0x5a76b0=_0x4704f0[_0x1d8494(0x186)](0.05)[_0x1d8494(0x1cf)]();_0x5c545a[_0x15c119]={'groupMax':_0x28bbe7,'groupMin':_0x1c21b6,'showMax':_0x50a4b3,'showMin':_0x291703,'startGradient':_0x5aef63,'endGradient':_0x5a76b0},this[_0x1d8494(0x1f6)][_0x1d8494(0x1be)]({'unitId':_0x5e3130,'subUnitId':_0x518db6,'groupId':_0x15c119,'config':_0x2717a3,'type':_0x2a5ee9});}[_0xffcb5(0x1d2)](_0xe24804,_0x4bc6fa,_0x46d727,_0x57647d){const _0x19c3b4=_0xffcb5;this[_0x19c3b4(0x1b5)](_0xe24804,_0x4bc6fa)['set'](_0x46d727,_0x57647d),this[_0x19c3b4(0x1b0)](_0xe24804,_0x4bc6fa,_0x46d727,'add');}[_0xffcb5(0x13f)](_0x3bd441,_0x47ea3a,_0x569470,_0x8a4c16){const _0x14297f=_0xffcb5;var _0x63ddd7;const _0x89e5de=(_0x63ddd7=this[_0x14297f(0x13e)][_0x14297f(0x1ea)](_0x3bd441))==null?void 0x0:_0x63ddd7[_0x14297f(0x1ea)](_0x47ea3a);_0x569470['forEach'](_0x4b51c3=>{const _0x26e464=_0x14297f;_0x89e5de!=null&&_0x89e5de[_0x26e464(0x1a1)](_0x4b51c3)&&(_0x89e5de[_0x26e464(0x174)](_0x4b51c3,_0x8a4c16),this['updateSparklineExtraNum'](_0x3bd441,_0x47ea3a,_0x4b51c3));});}[_0xffcb5(0x1e7)](_0x1a131a,_0x2d8748,_0x2d6e03){const _0x283165=_0xffcb5;var _0x123db5,_0x397c5a;const _0x15a279=this[_0x283165(0x13e)][_0x283165(0x1ea)](_0x1a131a);if(_0x15a279){const _0xca9652=_0x15a279[_0x283165(0x1ea)](_0x2d8748);if(_0xca9652){_0xca9652[_0x283165(0x1ae)](_0x2d6e03);const _0x593af4=(_0x123db5=this['_sparklineAnchorMap']['get'](_0x1a131a))==null?void 0x0:_0x123db5[_0x283165(0x1ea)](_0x2d8748);(_0x397c5a=_0x593af4==null?void 0x0:_0x593af4[_0x283165(0x146)])==null||_0x397c5a[_0x283165(0x162)]((_0x386045,_0xec844c,_0x42483c)=>{const _0x32f9cb=_0x283165;(_0x42483c==null?void 0x0:_0x42483c['groupId'])===_0x2d6e03&&(_0x593af4==null||_0x593af4[_0x32f9cb(0x146)][_0x32f9cb(0x167)](_0x386045,_0xec844c));}),this[_0x283165(0x1f6)][_0x283165(0x1be)]({'unitId':_0x1a131a,'subUnitId':_0x2d8748,'groupId':_0x2d6e03,'type':_0x283165(0x1da)}),_0xca9652[_0x283165(0x197)]===0x0&&_0x15a279[_0x283165(0x1ae)](_0x2d8748);}}}[_0xffcb5(0x190)](_0x492f21,_0x48cc63,_0x3da5ef,_0xea03d2){const _0x4173ce=_0xffcb5;var _0x1f9ad2,_0x151675,_0xc562f9,_0x2bbb18;const _0x191bd1=(_0x1f9ad2=this['_sparklineAnchorMap']['get'](_0x492f21))==null?void 0x0:_0x1f9ad2[_0x4173ce(0x1ea)](_0x48cc63),_0x534394=_0x191bd1==null?void 0x0:_0x191bd1[_0x4173ce(0x146)][_0x4173ce(0x1a2)](_0x3da5ef,_0xea03d2);if(_0x534394){const {groupId:_0x9fcac2}=_0x534394,_0x4b18fb=(_0x151675=this[_0x4173ce(0x13e)][_0x4173ce(0x1ea)](_0x492f21))==null?void 0x0:_0x151675[_0x4173ce(0x1ea)](_0x48cc63);(_0xc562f9=_0x4b18fb==null?void 0x0:_0x4b18fb[_0x4173ce(0x1ea)](_0x9fcac2))==null||_0xc562f9[_0x4173ce(0x1f7)][_0x4173ce(0x167)](_0x3da5ef,_0xea03d2),(_0x2bbb18=_0x4b18fb==null?void 0x0:_0x4b18fb[_0x4173ce(0x1ea)](_0x9fcac2))!=null&&_0x2bbb18[_0x4173ce(0x1f7)]['hasValue']()||_0x4b18fb==null||_0x4b18fb[_0x4173ce(0x1ae)](_0x9fcac2),_0x191bd1==null||_0x191bd1['matrix'][_0x4173ce(0x167)](_0x3da5ef,_0xea03d2),this[_0x4173ce(0x1f6)][_0x4173ce(0x1be)]({'unitId':_0x492f21,'subUnitId':_0x48cc63,'groupId':_0x9fcac2,'type':_0x4173ce(0x1da)});}}[_0xffcb5(0x192)](_0x286f84,_0x37e3d9,_0x15c9ee){const _0x200b00=_0xffcb5;var _0x5723a2,_0x2863fe,_0x42e068,_0x323cdf;const _0x3bfdb5=(_0x42e068=(_0x2863fe=(_0x5723a2=this['_sparklineModel']['get'](_0x286f84))==null?void 0x0:_0x5723a2['get'](_0x37e3d9))==null?void 0x0:_0x2863fe['get'](_0x15c9ee))==null?void 0x0:_0x42e068[_0x200b00(0x1f7)],_0x33d89d=(_0x323cdf=this[_0x200b00(0x17e)][_0x200b00(0x1ea)](_0x286f84))==null?void 0x0:_0x323cdf['get'](_0x37e3d9);if(_0x3bfdb5&&_0x33d89d){const {matrix:_0x2795e5,extra:_0x508e57}=_0x33d89d;_0x3bfdb5[_0x200b00(0x162)]((_0x465362,_0x10bb4f,_0x25ad86)=>{const _0x392246=_0x200b00;_0x2795e5[_0x392246(0x167)](_0x465362,_0x10bb4f);}),delete _0x508e57[_0x15c9ee];}}[_0xffcb5(0x1ef)](_0x148b93,_0x297802){const _0x108726=_0xffcb5;var _0x10e257;return(_0x10e257=this[_0x108726(0x13e)][_0x108726(0x1ea)](_0x148b93))==null?void 0x0:_0x10e257[_0x108726(0x1ea)](_0x297802);}[_0xffcb5(0x17f)](_0x3c284a,_0x58632f,_0x1a4b4c){const _0x23aa41=_0xffcb5;var _0x492bd5,_0x486739;return(_0x486739=(_0x492bd5=this['_sparklineModel'][_0x23aa41(0x1ea)](_0x3c284a))==null?void 0x0:_0x492bd5[_0x23aa41(0x1ea)](_0x58632f))==null?void 0x0:_0x486739[_0x23aa41(0x1ea)](_0x1a4b4c);}['getSparkline'](_0x409985,_0x5aebd3,_0x83ef18,_0x41398e){const _0x5eb584=_0xffcb5;var _0x460277,_0xdb96c9,_0x32fc26;return(_0x32fc26=(_0xdb96c9=(_0x460277=this['_sparklineAnchorMap'][_0x5eb584(0x1ea)](_0x409985))==null?void 0x0:_0x460277[_0x5eb584(0x1ea)](_0x5aebd3))==null?void 0x0:_0xdb96c9[_0x5eb584(0x146)]['getValue'](_0x83ef18,_0x41398e))==null?void 0x0:_0x32fc26[_0x5eb584(0x1a6)];}['reBuildAnchorCache'](_0x9e8f59,_0x460cfb){const _0x37f383=_0xffcb5;var _0x38406a;const _0x295098=this[_0x37f383(0x1d3)](_0x9e8f59,_0x460cfb);_0x295098[_0x37f383(0x146)][_0x37f383(0x162)]((_0x583762,_0x50cb23)=>{const _0xe22e93=_0x37f383;_0x295098[_0xe22e93(0x146)][_0xe22e93(0x167)](_0x583762,_0x50cb23);});const _0x7d050b=(_0x38406a=this[_0x37f383(0x13e)][_0x37f383(0x1ea)](_0x9e8f59))==null?void 0x0:_0x38406a[_0x37f383(0x1ea)](_0x460cfb);if(_0x7d050b){for(const [_0x2f2bd0]of _0x7d050b)this['updateSparklineExtraNum'](_0x9e8f59,_0x460cfb,_0x2f2bd0);}}[_0xffcb5(0x1c3)](){const _0x379272=_0xffcb5;return{'sparklineModel':this[_0x379272(0x13e)],'sparklineAnchorMap':this[_0x379272(0x17e)]};}['toJSON'](_0x35f720){const _0x4183f6=_0xffcb5,_0x2049fc={};if(this[_0x4183f6(0x13e)][_0x4183f6(0x1a1)](_0x35f720)){_0x2049fc[_0x35f720]={};const _0xf85aa7=this[_0x4183f6(0x13e)][_0x4183f6(0x1ea)](_0x35f720);_0xf85aa7!=null&&_0xf85aa7[_0x4183f6(0x197)]&&Array['from'](_0xf85aa7[_0x4183f6(0x1c4)]())['forEach'](_0x6b2d32=>{const _0x438238=_0x4183f6;_0x2049fc[_0x35f720][_0x6b2d32]={};const _0x2e6ed9=_0xf85aa7[_0x438238(0x1ea)](_0x6b2d32);_0x2e6ed9!=null&&_0x2e6ed9[_0x438238(0x197)]&&Array[_0x438238(0x196)](_0x2e6ed9[_0x438238(0x1c4)]())[_0x438238(0x1a4)](_0x5baeb0=>{const _0x5a08dc=_0x438238,_0x1f4b6a=_0x2e6ed9['get'](_0x5baeb0);_0x1f4b6a&&(_0x2049fc[_0x35f720][_0x6b2d32][_0x5baeb0]={'config':_0x1f4b6a[_0x5a08dc(0x1df)],'sparklines':_0x1f4b6a['sparklines'][_0x5a08dc(0x16a)]()});});});}return _0x2049fc;}[_0xffcb5(0x1e6)](_0x1b6c1e){const _0x4d136d=_0xffcb5;if(!_0x1b6c1e)return;Object[_0x4d136d(0x1c4)](_0x1b6c1e)['forEach'](_0x2f342f=>{const _0x2cfb46=_0x4d136d,_0x37f2cc=_0x1b6c1e[_0x2f342f];_0x37f2cc&&Object[_0x2cfb46(0x1c4)](_0x37f2cc)[_0x2cfb46(0x1a4)](_0x2cf182=>{const _0x456385=_0x2cfb46,_0x560f00=_0x37f2cc[_0x2cf182];_0x560f00&&Object['keys'](_0x560f00)[_0x456385(0x1a4)](_0x2e8678=>{const _0x40f73f=_0x456385,_0xd1ff02=_0x560f00[_0x2e8678];if(_0xd1ff02){const _0x2f64fd={'config':_0xd1ff02['config'],'sparklines':new _0x4a8230(_0xd1ff02[_0x40f73f(0x1f7)])};this['addSparkline'](_0x2f342f,_0x2cf182,_0x2e8678,_0x2f64fd);}});});});}[_0xffcb5(0x1d7)](_0x223e9e){const _0x2eda08=_0xffcb5,_0x523770=this[_0x2eda08(0x13e)][_0x2eda08(0x1ea)](_0x223e9e);if(_0x523770){for(const [_0x37a70b]of _0x523770){const _0x2460a1=_0x523770[_0x2eda08(0x1ea)](_0x37a70b);if(_0x2460a1){for(const [_0x299934]of _0x2460a1)this[_0x2eda08(0x192)](_0x223e9e,_0x37a70b,_0x299934);}}this['_sparklineModel'][_0x2eda08(0x1ae)](_0x223e9e);}}};x=yt([Nt(0x0,_0xa4ca45(_0x3fc178))],x);const V={'id':_0xffcb5(0x145),'type':_0x598939[_0xffcb5(0x198)],'handler':(_0x2b6497,_0x38aff5)=>{const _0x39c5c5=_0xffcb5;if(!_0x38aff5)return!0x1;const {sparklineConfigMap:_0x1c1e2d,unitId:_0x16d8e3,subUnitId:_0x467fc3}=_0x38aff5,_0x191c1b=_0x2b6497['get'](x);return Object[_0x39c5c5(0x1a5)](_0x1c1e2d)[_0x39c5c5(0x1a4)](([_0x147e43,_0x4acc44])=>{const _0x1ea83d=_0x39c5c5,_0xad4c68={'config':_0x4acc44[_0x1ea83d(0x1df)],'sparklines':new _0x4a8230(_0x4acc44[_0x1ea83d(0x1f7)])};_0x191c1b[_0x1ea83d(0x1d2)](_0x16d8e3,_0x467fc3,_0x147e43,_0xad4c68);}),!0x0;}},y={'id':_0xffcb5(0x17b),'type':_0x598939[_0xffcb5(0x198)],'handler':(_0x41ddb6,_0x24a3f5)=>{const _0x36ed79=_0xffcb5;if(!_0x24a3f5)return!0x1;const {unitId:_0x29df4b,subUnitId:_0x51b349,ranges:_0x44c31c,isSingle:_0x3a3f8d,groupIds:_0x157bc3}=_0x24a3f5,_0x3c4656=_0x41ddb6[_0x36ed79(0x1ea)](x);return _0x157bc3?(_0x157bc3[_0x36ed79(0x1a4)](_0x4ee7cd=>{const _0x609274=_0x36ed79;_0x3c4656[_0x609274(0x1e7)](_0x29df4b,_0x51b349,_0x4ee7cd);}),!0x0):_0x44c31c?(_0x44c31c['forEach'](_0x2aa364=>{const _0x52e699=_0x36ed79;_0xe67202[_0x52e699(0x1a3)](_0x2aa364,(_0x29be0f,_0x25b5d4)=>{const _0x571ee3=_0x52e699,_0x5df90c=_0x3c4656['getSparkline'](_0x29df4b,_0x51b349,_0x29be0f,_0x25b5d4);_0x5df90c&&(_0x3a3f8d?_0x3c4656[_0x571ee3(0x190)](_0x29df4b,_0x51b349,_0x29be0f,_0x25b5d4):_0x3c4656[_0x571ee3(0x1e7)](_0x29df4b,_0x51b349,_0x5df90c));});}),!0x0):!0x1;}},Ot={'id':_0xffcb5(0x153),'type':_0x598939[_0xffcb5(0x1c7)],'handler':(_0x1fc154,_0x534407)=>{const _0x2163ab=_0xffcb5;if(!_0x534407)return!0x1;const {sourceRanges:_0x20fb49,targetRanges:_0x5f59d1,config:_0x1110da}=_0x534407,_0x1bc291=_0x1fc154['get'](_0x263e4a),_0x34628b='g_'+_0xe87289(0x6),_0x44aaa3=Fe(_0x20fb49,_0x5f59d1),_0xb2ab9b={'config':_0x1110da!=null?_0x1110da:{},'sparklines':_0x44aaa3[_0x2163ab(0x16a)]()},_0x3340b6=_0x1fc154['get'](_0x3fc178),_0xf615d0=_0x1fc154[_0x2163ab(0x1ea)](x),_0x12d915=_0x5a590c(_0x3340b6);if(!_0x12d915)return!0x1;const {unitId:_0x35d6e9,subUnitId:_0x22a037}=_0x12d915,_0x41586d=_0x1fc154[_0x2163ab(0x1ea)](_0x25d554),_0x1fb624=[],_0x36ffc1=[],_0x2a23e1={},_0xbe5c60={},_0x2c85bf=new Set([_0x34628b]);_0x44aaa3['forValue']((_0xaa87ee,_0x20a2c1,_0x3f1f49)=>{const _0x5e3d69=_0x2163ab,_0x1bb7a7=_0xf615d0['getSparkline'](_0x35d6e9,_0x22a037,_0xaa87ee,_0x20a2c1);if(_0x1bb7a7){const _0x1b0b48=_0xf615d0['getSparklineById'](_0x35d6e9,_0x22a037,_0x1bb7a7);if(_0x1b0b48){_0x2c85bf[_0x5e3d69(0x177)](_0x1bb7a7);let _0x375614=_0x2a23e1[_0x1bb7a7],_0x58bd9a=_0xbe5c60[_0x1bb7a7];_0x58bd9a||(_0x58bd9a={'config':_0x524faa['deepClone'](_0x1b0b48[_0x5e3d69(0x1df)]),'sparklines':new _0x4a8230(_0x1b0b48['sparklines'][_0x5e3d69(0x1a7)]())},_0xbe5c60[_0x1bb7a7]=_0x58bd9a),_0x375614||(_0x375614={'config':_0x524faa['deepClone'](_0x1b0b48['config']),'sparklines':_0x1b0b48[_0x5e3d69(0x1f7)]['clone']()},_0x2a23e1[_0x1bb7a7]=_0x375614),_0x58bd9a[_0x5e3d69(0x1f7)]['realDeleteValue'](_0xaa87ee,_0x20a2c1);}}});const _0x37c80a={};return Object['entries'](_0xbe5c60)[_0x2163ab(0x1a4)](([_0x3ea612,_0x211807])=>{const _0x40bc9d=_0x2163ab;_0x211807[_0x40bc9d(0x1f7)][_0x40bc9d(0x14d)]()&&(_0x37c80a[_0x3ea612]={'config':_0x211807[_0x40bc9d(0x1df)],'sparklines':_0x211807[_0x40bc9d(0x1f7)][_0x40bc9d(0x1a7)]()});}),_0x37c80a[_0x34628b]=_0xb2ab9b,_0x1fb624['push']({'id':y['id'],'params':{'unitId':_0x35d6e9,'subUnitId':_0x22a037,'groupIds':Array[_0x2163ab(0x196)](_0x2c85bf),'isSingle':!0x1}}),_0x2c85bf['size']>0x1&&(_0x36ffc1[_0x2163ab(0x1c1)]({'id':y['id'],'params':{'unitId':_0x35d6e9,'subUnitId':_0x22a037,'groupIds':Array[_0x2163ab(0x196)](_0x2c85bf),'isSingle':!0x1}}),_0x1fb624[_0x2163ab(0x1c1)]({'id':V['id'],'params':{'unitId':_0x35d6e9,'subUnitId':_0x22a037,'sparklineConfigMap':_0x2a23e1}})),_0x36ffc1[_0x2163ab(0x1c1)]({'id':V['id'],'params':{'unitId':_0x35d6e9,'subUnitId':_0x22a037,'sparklineConfigMap':_0x37c80a}}),_0x51416e(_0x36ffc1,_0x41586d),_0x1bc291[_0x2163ab(0x14e)]({'unitID':_0x35d6e9,'undoMutations':_0x1fb624,'redoMutations':_0x36ffc1}),!0x0;}},xt={'id':_0xffcb5(0x16d),'type':_0x598939[_0xffcb5(0x1c7)],'handler':(_0x29b328,_0x238338)=>{const _0x6de89a=_0xffcb5;var _0xb87b77;const {isSingle:_0x3de9dd=!0x0}=_0x238338||{},_0x5e367a=_0x29b328[_0x6de89a(0x1ea)](_0x25d554),_0x2c1b07=_0x29b328[_0x6de89a(0x1ea)](_0x3fc178),_0x38acae=_0x29b328['get'](x),_0x2bc116=_0x29b328[_0x6de89a(0x1ea)](_0x263e4a),_0x1d5ca5=_0x5a590c(_0x2c1b07);if(!_0x1d5ca5)return!0x1;const _0x51d729=_0x29b328[_0x6de89a(0x1ea)](_0x1d410d),_0x4363aa=(_0xb87b77=_0x238338==null?void 0x0:_0x238338[_0x6de89a(0x176)])!=null?_0xb87b77:_0x51d729[_0x6de89a(0x1f1)]()['map'](_0x524d7a=>_0x524d7a[_0x6de89a(0x150)]),{unitId:_0x6437cc,subUnitId:_0x1a3ee3}=_0x1d5ca5,_0x2df12e=[],_0x409bcb=[];_0x2df12e[_0x6de89a(0x1c1)]({'id':y['id'],'params':{'unitId':_0x6437cc,'subUnitId':_0x1a3ee3,'ranges':_0x4363aa,'isSingle':_0x3de9dd}});const _0x5e58ec=[],_0x3f41b2={};return _0x4363aa[_0x6de89a(0x1a4)](_0x1f9a27=>{const _0x51e1a7=_0x6de89a;_0xe67202[_0x51e1a7(0x1a3)](_0x1f9a27,(_0x1717a3,_0x43898d)=>{const _0x221967=_0x51e1a7,_0x2991c=_0x38acae[_0x221967(0x1ec)](_0x6437cc,_0x1a3ee3,_0x1717a3,_0x43898d);if(_0x2991c){const _0x250386=_0x38acae[_0x221967(0x17f)](_0x6437cc,_0x1a3ee3,_0x2991c);_0x250386&&(_0x5e58ec[_0x221967(0x1c1)](_0x2991c),_0x3f41b2[_0x2991c]={'config':_0x524faa[_0x221967(0x1f5)](_0x250386[_0x221967(0x1df)]),'sparklines':_0x524faa[_0x221967(0x1f5)](_0x250386[_0x221967(0x1f7)][_0x221967(0x1a7)]())});}});}),_0x409bcb['push']({'id':y['id'],'params':{'unitId':_0x6437cc,'subUnitId':_0x1a3ee3,'groupIds':_0x5e58ec,'isSingle':!0x1}}),_0x409bcb['push']({'id':V['id'],'params':{'unitId':_0x6437cc,'subUnitId':_0x1a3ee3,'sparklineConfigMap':_0x3f41b2}}),_0x51416e(_0x2df12e,_0x5e367a),_0x2bc116[_0x6de89a(0x14e)]({'unitID':_0x6437cc,'undoMutations':_0x409bcb,'redoMutations':_0x2df12e}),!0x0;}},xe={'id':_0xffcb5(0x19f),'type':_0x598939[_0xffcb5(0x198)],'handler':(_0x9ab273,_0x11ac6c)=>{const _0x5912c5=_0xffcb5;if(!_0x11ac6c)return!0x1;const {unitId:_0x45ca8a,subUnitId:_0x4b815f,groupIds:_0x2462ce,config:_0x399930}=_0x11ac6c,_0x4e3480=_0x9ab273[_0x5912c5(0x1ea)](x);return _0x2462ce['forEach'](_0x1752c7=>{const _0x29bad5=_0x5912c5,_0x3b2034=_0x4e3480['getSparklineById'](_0x45ca8a,_0x4b815f,_0x1752c7);if(_0x3b2034){const _0x780ab3={'config':Object[_0x29bad5(0x155)]({},_0x3b2034['config'],_0x399930[_0x29bad5(0x1df)]),'sparklines':new _0x4a8230(_0x3b2034[_0x29bad5(0x1f7)][_0x29bad5(0x1a7)]())};_0x4e3480['setSparkline'](_0x45ca8a,_0x4b815f,[_0x1752c7],_0x780ab3);}}),!0x0;}},Ut={'id':'sheet.command.set-sparkline','type':_0x598939[_0xffcb5(0x1c7)],'handler':(_0x745fe3,_0xad0edc)=>{const _0x3a33ea=_0xffcb5;var _0x5781f5,_0x12d80c,_0x1e295a,_0x597bea;if(!_0xad0edc)return!0x1;const _0x4fcb7d=_0x745fe3[_0x3a33ea(0x1ea)](_0x25d554),_0x3e2769=_0x745fe3['get'](_0x1d410d),_0x1513e9=_0x745fe3['get'](x),_0x5543f4=_0x745fe3['get'](_0x3fc178),_0x1cd149=_0x745fe3['get'](_0x263e4a),_0x50f8b9=_0x5a590c(_0x5543f4);if(!_0x50f8b9)return!0x1;const {unitId:_0x340939,subUnitId:_0x1de551}=_0x50f8b9,_0x3dcd7c=(_0x5781f5=_0xad0edc==null?void 0x0:_0xad0edc['ranges'])!=null?_0x5781f5:_0x3e2769[_0x3a33ea(0x1f1)]()['map'](_0x52910a=>_0x52910a[_0x3a33ea(0x150)]),_0x559012=(_0x12d80c=_0x1513e9[_0x3a33ea(0x1c3)]()[_0x3a33ea(0x1ac)][_0x3a33ea(0x1ea)](_0x340939))==null?void 0x0:_0x12d80c[_0x3a33ea(0x1ea)](_0x1de551),{isChangeDataSource:_0x721b21,config:_0x257b7f,combine:_0x478043,unCombine:_0x22e3ef}=_0xad0edc;if(_0x478043){const _0x39194e=[],_0x4d6c55=[];_0x39194e['push']({'id':y['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'ranges':_0x3dcd7c,'isSingle':!0x0}});const _0x5bd6cb='g_'+_0xe87289(0x6),_0x4b46b8=new _0x4a8230(),_0x3e2ea5=(_0x1e295a=_0x1513e9[_0x3a33ea(0x1c3)]()[_0x3a33ea(0x1f8)]['get'](_0x340939))==null?void 0x0:_0x1e295a[_0x3a33ea(0x1ea)](_0x1de551),_0x374a57=new Set([_0x5bd6cb]),_0x4938ab={};return _0x3dcd7c[_0x3a33ea(0x1a4)](_0x4493fd=>{const _0x2df21e=_0x3a33ea;var _0x457876,_0x4fbc07;const {startRow:_0x248002,endRow:_0x12abee,startColumn:_0x5b9697,endColumn:_0x4d7719}=_0x4493fd;for(let _0x3da048=_0x248002;_0x3da048<=_0x12abee;_0x3da048++)for(let _0x50fe3a=_0x5b9697;_0x50fe3a<=_0x4d7719;_0x50fe3a++){const _0x336924=(_0x457876=_0x559012==null?void 0x0:_0x559012[_0x2df21e(0x146)][_0x2df21e(0x1a2)](_0x3da048,_0x50fe3a))==null?void 0x0:_0x457876['groupId'];if(_0x336924){_0x374a57[_0x2df21e(0x177)](_0x336924);const _0x5485ac=_0x1513e9[_0x2df21e(0x17f)](_0x340939,_0x1de551,_0x336924);_0x5485ac&&(_0x4938ab[_0x336924]={'config':_0x524faa[_0x2df21e(0x1f5)](_0x5485ac[_0x2df21e(0x1df)]),'sparklines':_0x524faa[_0x2df21e(0x1f5)](_0x5485ac[_0x2df21e(0x1f7)]['clone']())});const _0xf1d379=(_0x4fbc07=_0x3e2ea5==null?void 0x0:_0x3e2ea5[_0x2df21e(0x1ea)](_0x336924))==null?void 0x0:_0x4fbc07['sparklines']['getValue'](_0x3da048,_0x50fe3a);_0xf1d379&&_0x4b46b8[_0x2df21e(0x1cb)](_0x3da048,_0x50fe3a,_0xf1d379);}}}),_0x39194e['push']({'id':V['id'],'params':{'sparklineConfigMap':{[_0x5bd6cb]:{'config':_0x524faa[_0x3a33ea(0x1f5)](_0x257b7f['config']),'sparklines':_0x4b46b8[_0x3a33ea(0x16a)]()}},'unitId':_0x340939,'subUnitId':_0x1de551}}),_0x4d6c55[_0x3a33ea(0x1c1)]({'id':y['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'isSingle':!0x1,'groupIds':Array['from'](_0x374a57)}}),_0x4d6c55[_0x3a33ea(0x1c1)]({'id':V['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'sparklineConfigMap':_0x4938ab}}),_0x51416e(_0x39194e,_0x4fcb7d),_0x1cd149[_0x3a33ea(0x14e)]({'unitID':_0x340939,'undoMutations':_0x4d6c55,'redoMutations':_0x39194e}),!0x0;}else{if(_0x22e3ef){const _0x3a6b5c=[],_0x2f95b4=[];_0x3a6b5c[_0x3a33ea(0x1c1)]({'id':y['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'ranges':_0x3dcd7c,'isSingle':!0x0}});const _0x25f0e1=(_0x597bea=_0x1513e9['getSparklineCache']()['sparklineModel'][_0x3a33ea(0x1ea)](_0x340939))==null?void 0x0:_0x597bea[_0x3a33ea(0x1ea)](_0x1de551),_0x5631f8={},_0x1ac2d1=new Set(),_0x1e0738={};return _0x3dcd7c[_0x3a33ea(0x1a4)](_0x2841d9=>{const _0x52d41b=_0x3a33ea;var _0xd268cf,_0x135b87;const {startRow:_0x390223,endRow:_0x972a02,startColumn:_0x1bb9d5,endColumn:_0x1349d9}=_0x2841d9;for(let _0x42f1b3=_0x390223;_0x42f1b3<=_0x972a02;_0x42f1b3++)for(let _0x52d181=_0x1bb9d5;_0x52d181<=_0x1349d9;_0x52d181++){const _0x180539=(_0xd268cf=_0x559012==null?void 0x0:_0x559012[_0x52d41b(0x146)][_0x52d41b(0x1a2)](_0x42f1b3,_0x52d181))==null?void 0x0:_0xd268cf[_0x52d41b(0x1a6)];if(_0x180539){const _0x2d9cb0=new _0x4a8230(),_0x19e8e3='g_'+_0xe87289(0x6);_0x1ac2d1[_0x52d41b(0x177)](_0x180539),_0x1ac2d1['add'](_0x19e8e3);const _0x191451=_0x1513e9[_0x52d41b(0x17f)](_0x340939,_0x1de551,_0x180539);_0x191451&&(_0x1e0738[_0x180539]={'config':_0x524faa[_0x52d41b(0x1f5)](_0x191451[_0x52d41b(0x1df)]),'sparklines':_0x524faa[_0x52d41b(0x1f5)](_0x191451['sparklines']['clone']())});const _0x3782d5=(_0x135b87=_0x25f0e1==null?void 0x0:_0x25f0e1[_0x52d41b(0x1ea)](_0x180539))==null?void 0x0:_0x135b87[_0x52d41b(0x1f7)][_0x52d41b(0x1a2)](_0x42f1b3,_0x52d181);_0x3782d5&&_0x2d9cb0['setValue'](_0x42f1b3,_0x52d181,_0x3782d5),_0x5631f8[_0x19e8e3]={'sparklines':_0x2d9cb0[_0x52d41b(0x16a)](),'config':_0x524faa[_0x52d41b(0x1f5)](_0x257b7f[_0x52d41b(0x1df)])};}}}),_0x3a6b5c['push']({'id':V['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'sparklineConfigMap':_0x5631f8}}),_0x2f95b4[_0x3a33ea(0x1c1)]({'id':y['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'isSingle':!0x1,'groupIds':Array[_0x3a33ea(0x196)](_0x1ac2d1)}}),_0x2f95b4[_0x3a33ea(0x1c1)]({'id':V['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'sparklineConfigMap':_0x1e0738}}),_0x51416e(_0x3a6b5c,_0x4fcb7d),_0x1cd149[_0x3a33ea(0x14e)]({'unitID':_0x340939,'undoMutations':_0x2f95b4,'redoMutations':_0x3a6b5c}),!0x0;}}if(_0x721b21){const _0x3199bd=_0xad0edc[_0x3a33ea(0x1e0)];if(!_0x3199bd)return!0x1;const {groupId:_0x566922,sourceRanges:_0xd4e64,targetRanges:_0x399621,resetType:_0x34d685,primary:_0x475246}=_0x3199bd,_0x32da0b=[],_0x140318=[];_0x32da0b[_0x3a33ea(0x1c1)]({'id':y['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'ranges':_0x3dcd7c,'isSingle':!0x1,'groupIds':[_0x566922]}}),_0x140318[_0x3a33ea(0x1c1)]({'id':y['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'ranges':_0x3dcd7c,'isSingle':!0x1,'groupIds':[_0x566922]}});let _0x4ce05e;_0x34d685===_0x3a33ea(0x1bc)?(_0x4ce05e=new _0x4a8230(_0x257b7f[_0x3a33ea(0x1f7)][_0x3a33ea(0x1a7)]()),_0x4ce05e['realDeleteValue'](_0x475246[_0x3a33ea(0x15c)],_0x475246[_0x3a33ea(0x13d)]),_0x4ce05e['setValue'](_0x399621[0x0][_0x3a33ea(0x1b3)],_0x399621[0x0]['startColumn'],_0xd4e64[0x0])):_0x4ce05e=Fe(_0xd4e64,_0x399621);const _0x197be2={'config':_0x524faa[_0x3a33ea(0x1f5)](_0x257b7f[_0x3a33ea(0x1df)]),'sparklines':_0x4ce05e['getMatrix']()},_0x19118a={'config':_0x524faa[_0x3a33ea(0x1f5)](_0x257b7f[_0x3a33ea(0x1df)]),'sparklines':_0x524faa[_0x3a33ea(0x1f5)](_0x257b7f['sparklines'][_0x3a33ea(0x1a7)]())};_0x32da0b['push']({'id':V['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'sparklineConfigMap':{[_0x566922]:_0x197be2}}}),_0x140318['push']({'id':V['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'sparklineConfigMap':{[_0x566922]:_0x19118a}}}),_0x51416e(_0x32da0b,_0x4fcb7d),_0x1cd149['pushUndoRedo']({'unitID':_0x340939,'undoMutations':_0x140318,'redoMutations':_0x32da0b});}else{const _0x24ac4d=[],_0x17e3df=[],_0x206de4=new Set(),_0x2cebd3={};_0x3dcd7c['forEach'](_0x4d7c10=>{const _0x561171=_0x3a33ea;var _0x2f67a5;const {startRow:_0x14d002,endRow:_0xdeea36,startColumn:_0xd90d69,endColumn:_0x787488}=_0x4d7c10;for(let _0x2323dd=_0x14d002;_0x2323dd<=_0xdeea36;_0x2323dd++)for(let _0xdfac95=_0xd90d69;_0xdfac95<=_0x787488;_0xdfac95++){const _0x3d6d8f=(_0x2f67a5=_0x559012==null?void 0x0:_0x559012[_0x561171(0x146)][_0x561171(0x1a2)](_0x2323dd,_0xdfac95))==null?void 0x0:_0x2f67a5['groupId'];if(_0x3d6d8f){_0x206de4[_0x561171(0x177)](_0x3d6d8f);const _0x284799=_0x1513e9[_0x561171(0x17f)](_0x340939,_0x1de551,_0x3d6d8f);_0x284799&&(_0x2cebd3[_0x3d6d8f]={'config':_0x524faa[_0x561171(0x1f5)](_0x284799[_0x561171(0x1df)]),'sparklines':_0x524faa[_0x561171(0x1f5)](_0x284799[_0x561171(0x1f7)][_0x561171(0x1a7)]())});}}}),_0x17e3df[_0x3a33ea(0x1c1)]({'id':xe['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'groupIds':Array[_0x3a33ea(0x196)](_0x206de4),'config':{'config':_0x524faa['deepClone'](_0x257b7f[_0x3a33ea(0x1df)]),'sparklines':_0x257b7f[_0x3a33ea(0x1f7)][_0x3a33ea(0x16a)]()}}}),_0x24ac4d[_0x3a33ea(0x1c1)]({'id':y['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'isSingle':!0x1,'groupIds':Array[_0x3a33ea(0x196)](_0x206de4)}}),_0x24ac4d['push']({'id':V['id'],'params':{'unitId':_0x340939,'subUnitId':_0x1de551,'sparklineConfigMap':_0x2cebd3}}),_0x51416e(_0x17e3df,_0x4fcb7d),_0x1cd149['pushUndoRedo']({'unitID':_0x340939,'undoMutations':_0x24ac4d,'redoMutations':_0x17e3df});}return!0x0;}};var Pt=Object['getOwnPropertyDescriptor'],Tt=(_0x307e79,_0x6a2f3c,_0x4b25e7,_0x617f02)=>{const _0x561911=_0xffcb5;for(var _0x36126b=_0x617f02>0x1?void 0x0:_0x617f02?Pt(_0x6a2f3c,_0x4b25e7):_0x6a2f3c,_0x47fe4a=_0x307e79[_0x561911(0x16b)]-0x1,_0x314a46;_0x47fe4a>=0x0;_0x47fe4a--)(_0x314a46=_0x307e79[_0x47fe4a])&&(_0x36126b=_0x314a46(_0x36126b)||_0x36126b);return _0x36126b;},ge=(_0x72a8c0,_0x4e888a)=>(_0x6593df,_0x265d03)=>_0x4e888a(_0x6593df,_0x265d03,_0x72a8c0);let ke=class extends _0x10aa75{constructor(_0x3a2fa2,_0x2784ec,_0x419c01,_0x398dcf){const _0x2b37b3=_0xffcb5;super(),this['_sparklineDataSourceModel']=_0x3a2fa2,this[_0x2b37b3(0x1b7)]=_0x2784ec,this['_univerInstanceService']=_0x419c01,this['_sheetSelectionService']=_0x398dcf,this[_0x2b37b3(0x187)]();}[_0xffcb5(0x187)](){const _0x545d70=_0xffcb5;this[_0x545d70(0x194)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x2ce617=>{const _0x32e088=_0x545d70,_0x2fc30e=[],_0x1223a8=[];if(_0x2ce617['id']===_0x53eefa['id']){const _0x2a3650=_0x5a590c(this[_0x32e088(0x159)]);if(!_0x2a3650)return{'redos':_0x2fc30e,'undos':_0x1223a8};const {unitId:_0x4aa3ee,subUnitId:_0x4108f2,worksheet:_0x437f3f}=_0x2a3650,_0x64fc0b=this['_sheetSelectionService'][_0x32e088(0x1f1)]()[_0x32e088(0x16f)](_0x19336c=>_0x19336c[_0x32e088(0x150)]),_0x5301fc=new Set(),_0x562f59={},_0x40e338={};_0x64fc0b[_0x32e088(0x1a4)](_0x2683cf=>{_0xe67202['foreach'](_0x2683cf,(_0x41660c,_0x4fe8de)=>{const _0xbfa534=_0x578b,_0x39be29=this[_0xbfa534(0x180)][_0xbfa534(0x1ec)](_0x4aa3ee,_0x4108f2,_0x41660c,_0x4fe8de);if(_0x39be29&&!_0x5301fc['has'](_0x39be29)){const _0x319f8f=this['_sparklineDataSourceModel'][_0xbfa534(0x17f)](_0x4aa3ee,_0x4108f2,_0x39be29);_0x319f8f&&(_0x5301fc[_0xbfa534(0x177)](_0x39be29),_0x562f59[_0x39be29]={'config':_0x524faa[_0xbfa534(0x1f5)](_0x319f8f['config']),'sparklines':_0x524faa[_0xbfa534(0x1f5)](_0x319f8f[_0xbfa534(0x1f7)][_0xbfa534(0x1a7)]())},_0x40e338[_0x39be29]={'config':_0x524faa[_0xbfa534(0x1f5)](_0x319f8f[_0xbfa534(0x1df)]),'sparklines':_0x524faa['deepClone'](_0x319f8f['sparklines'][_0xbfa534(0x1a7)]())});}});}),Object[_0x32e088(0x173)](_0x40e338)[_0x32e088(0x1a4)](_0x2b1c6a=>{const _0x15ad71=_0x32e088,_0x441e3e=_0x2b1c6a[_0x15ad71(0x1f7)];new _0x4a8230(_0x441e3e)['forValue']((_0x5ba668,_0x38cf44,_0x27d6df)=>{const _0x1604eb=_0x15ad71;_0x64fc0b['some'](_0x187322=>_0x1c4800[_0x1604eb(0x1ca)](_0x187322,_0x2cb8ba(_0x5ba668,_0x38cf44)))&&delete _0x441e3e[_0x5ba668][_0x38cf44];});}),_0x2fc30e[_0x32e088(0x1c1)]({'id':y['id'],'params':{'unitId':_0x4aa3ee,'subUnitId':_0x4108f2,'groupIds':Array[_0x32e088(0x196)](_0x5301fc),'isSingle':!0x1}}),_0x2fc30e[_0x32e088(0x1c1)]({'id':V['id'],'params':{'unitId':_0x4aa3ee,'subUnitId':_0x4108f2,'sparklineConfigMap':_0x40e338}}),_0x1223a8[_0x32e088(0x1c1)]({'id':y['id'],'params':{'unitId':_0x4aa3ee,'subUnitId':_0x4108f2,'groupIds':Array[_0x32e088(0x196)](_0x5301fc),'isSingle':!0x1}}),_0x1223a8[_0x32e088(0x1c1)]({'id':V['id'],'params':{'unitId':_0x4aa3ee,'subUnitId':_0x4108f2,'sparklineConfigMap':_0x562f59}});}return{'redos':_0x2fc30e,'undos':_0x1223a8};}}));}};ke=Tt([ge(0x0,_0xa4ca45(x)),ge(0x1,_0xa4ca45(_0x4891aa)),ge(0x2,_0xa4ca45(_0x3fc178)),ge(0x3,_0xa4ca45(_0x1d410d))],ke);function _0x578b(_0x281b0f,_0x598a8e){_0x281b0f=_0x281b0f-0x13c;const _0x1ad643=_0x1ad6();let _0x578b86=_0x1ad643[_0x281b0f];return _0x578b86;}var $t=Object['getOwnPropertyDescriptor'],jt=(_0x2678f4,_0x171940,_0x11cfd3,_0x1330fc)=>{const _0x526084=_0xffcb5;for(var _0x80b4f8=_0x1330fc>0x1?void 0x0:_0x1330fc?$t(_0x171940,_0x11cfd3):_0x171940,_0x4718df=_0x2678f4[_0x526084(0x16b)]-0x1,_0x3a2078;_0x4718df>=0x0;_0x4718df--)(_0x3a2078=_0x2678f4[_0x4718df])&&(_0x80b4f8=_0x3a2078(_0x80b4f8)||_0x80b4f8);return _0x80b4f8;},be=(_0x1fe388,_0x5e2e64)=>(_0x35dd7b,_0x521171)=>_0x5e2e64(_0x35dd7b,_0x521171,_0x1fe388);let me=class extends _0x10aa75{constructor(_0x2a7db2,_0x590be1,_0x159f02){const _0x969739=_0xffcb5;super(),this[_0x969739(0x140)]=_0x2a7db2,this['_sparklineDataSourceModel']=_0x590be1,this[_0x969739(0x19b)]=_0x159f02,this[_0x969739(0x199)](),this[_0x969739(0x191)]();}[_0xffcb5(0x199)](){const _0x4dc395=_0xffcb5;this[_0x4dc395(0x194)](this['_commandService'][_0x4dc395(0x149)](_0x339482=>{const _0x34d6f1=_0x4dc395;if(_0x339482['id']===_0x34ae5b['id']){const _0x460373=_0x339482[_0x34d6f1(0x1b4)],{cellValue:_0x5656ee,unitId:_0x475713,subUnitId:_0x4a65cd}=_0x460373,_0x267eb7=new _0x4a8230(_0x5656ee),_0x375757=new Set(),_0xc9097b=this[_0x34d6f1(0x180)]['getSubUnitSparkline'](_0x475713,_0x4a65cd);if(!_0xc9097b)return;const _0x146bdd=Array[_0x34d6f1(0x196)](_0xc9097b);_0x267eb7[_0x34d6f1(0x162)]((_0x527739,_0x1e3ab2,_0x2ec6e2)=>{const _0x276a3a=_0x34d6f1,_0x55633e=_0x2cb8ba(_0x527739,_0x1e3ab2);for(let _0x60f65b=0x0;_0x60f65b<_0x146bdd[_0x276a3a(0x16b)];_0x60f65b++){const [_0x204ca7,_0x5e7f9a]=_0x146bdd[_0x60f65b],_0x4364ee=_0x375757['has'](_0x204ca7);_0x4364ee||_0x5e7f9a[_0x276a3a(0x1f7)]['forValue']((_0x2600f9,_0x176327,_0x5e0787)=>{const _0x1c8192=_0x276a3a,_0x344816=_0x5e0787;if(_0x344816&&!_0x4364ee&&_0x1c4800[_0x1c8192(0x1ca)](_0x55633e,_0x344816))return _0x375757[_0x1c8192(0x177)](_0x204ca7),!0x0;});}}),_0x375757[_0x34d6f1(0x1a4)](_0xb98cf6=>{const _0x58f45f=_0x34d6f1;this[_0x58f45f(0x180)][_0x58f45f(0x192)](_0x475713,_0x4a65cd,_0xb98cf6),this[_0x58f45f(0x180)]['updateSparklineExtraNum'](_0x475713,_0x4a65cd,_0xb98cf6);});}else{if(_0x339482['id']===_0x105a29['id']){const _0x49a3c2=_0x339482[_0x34d6f1(0x1b4)],{range:_0x300e54,unitId:_0x123dd8,subUnitId:_0x2ea56b}=_0x49a3c2,_0x4c472d=new Set(),_0x4a9060=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x123dd8,_0x2ea56b);if(!_0x4a9060)return;const _0x347569=Array[_0x34d6f1(0x196)](_0x4a9060);for(let _0x42b8d6=0x0;_0x42b8d6<_0x347569['length'];_0x42b8d6++){const [_0x4c1e78,_0x5c8fb4]=_0x347569[_0x42b8d6],_0x336ce2=_0x4c472d['has'](_0x4c1e78);_0x336ce2||_0x5c8fb4['sparklines'][_0x34d6f1(0x162)]((_0x46e4f6,_0x816a1a,_0x5dbb99)=>{const _0x49b30b=_0x34d6f1,_0x1e1413=_0x5dbb99;if(_0x1e1413&&!_0x336ce2&&_0x1c4800[_0x49b30b(0x1ca)](_0x300e54,_0x1e1413))return _0x4c472d[_0x49b30b(0x177)](_0x4c1e78),!0x0;});}_0x4c472d[_0x34d6f1(0x1a4)](_0x3fe7de=>{const _0x3cc873=_0x34d6f1;this[_0x3cc873(0x180)]['clearSparklineCache'](_0x123dd8,_0x2ea56b,_0x3fe7de),this[_0x3cc873(0x180)][_0x3cc873(0x1b0)](_0x123dd8,_0x2ea56b,_0x3fe7de);});}}}));}[_0xffcb5(0x191)](){const _0x17db00=_0xffcb5;this['disposeWithMe'](this[_0x17db00(0x19b)][_0x17db00(0x15d)]['subscribe'](_0x391a38=>{const _0x36b18d=_0x17db00,{unitId:_0x1feba0,subUnitId:_0x55c4a1,ranges:_0x4285bf}=_0x391a38,_0x4de9dc=this[_0x36b18d(0x180)][_0x36b18d(0x1ef)](_0x1feba0,_0x55c4a1);if(!_0x4de9dc)return;const _0x40dd3d=Array[_0x36b18d(0x196)](_0x4de9dc),_0x4aa2be=new Set();for(let _0xed59c3=0x0;_0xed59c3<_0x40dd3d['length'];_0xed59c3++){const [_0x3c7f03,_0x7b7efb]=_0x40dd3d[_0xed59c3],_0x75ed9d=_0x4aa2be[_0x36b18d(0x1a1)](_0x3c7f03);_0x75ed9d||_0x7b7efb[_0x36b18d(0x1f7)][_0x36b18d(0x162)]((_0x415d18,_0x47c5a9,_0x4427f9)=>{const _0x1d7d1e=_0x36b18d,_0x34295a=_0x4427f9;if(_0x34295a&&!_0x75ed9d){for(const _0x122f04 of _0x4285bf)if(_0x1c4800[_0x1d7d1e(0x1ca)](_0x122f04,_0x34295a)){_0x4aa2be[_0x1d7d1e(0x177)](_0x3c7f03);break;}}});}_0x4aa2be[_0x36b18d(0x1a4)](_0x2cf85a=>{const _0x26c91b=_0x36b18d;this[_0x26c91b(0x180)]['clearSparklineCache'](_0x1feba0,_0x55c4a1,_0x2cf85a),this['_sparklineDataSourceModel'][_0x26c91b(0x1b0)](_0x1feba0,_0x55c4a1,_0x2cf85a);});}));}};me=jt([be(0x0,_0xa4ca45(_0x25d554)),be(0x1,_0xa4ca45(x)),be(0x2,_0xa4ca45(_0x3a66f4))],me);var Lt=Object[_0xffcb5(0x13c)],Gt=(_0x360b6c,_0x227a65,_0x14f869,_0x4b232f)=>{const _0x2ed500=_0xffcb5;for(var _0x17b768=_0x4b232f>0x1?void 0x0:_0x4b232f?Lt(_0x227a65,_0x14f869):_0x227a65,_0x1d7fa3=_0x360b6c[_0x2ed500(0x16b)]-0x1,_0x3b9bcd;_0x1d7fa3>=0x0;_0x1d7fa3--)(_0x3b9bcd=_0x360b6c[_0x1d7fa3])&&(_0x17b768=_0x3b9bcd(_0x17b768)||_0x17b768);return _0x17b768;},He=(_0x3456ef,_0x4acd6c)=>(_0x12361a,_0x599ca1)=>_0x4acd6c(_0x12361a,_0x599ca1,_0x3456ef);let Ce=class extends _0x10aa75{constructor(_0x637cf4,_0x210aa9){const _0x54d7c4=_0xffcb5;super(),this[_0x54d7c4(0x140)]=_0x637cf4,this[_0x54d7c4(0x180)]=_0x210aa9,this['_initHideRowColWithSparkline']();}[_0xffcb5(0x154)](){this['_commandService']['onCommandExecuted'](_0x532715=>{const _0x3ffa62=_0x578b;if(_0x532715['id']===_0xd5c566['id']||_0x532715['id']===_0x112a44['id']||_0x532715['id']===_0x3f2fe4['id']||_0x532715['id']===_0x14f814['id']){const _0x50b5cb=_0x532715[_0x3ffa62(0x1b4)],{ranges:_0x306d23,unitId:_0x1a35b5,subUnitId:_0x2e02ca}=_0x50b5cb,_0x2c1e09=new Set(),_0x165b12=this[_0x3ffa62(0x180)][_0x3ffa62(0x1ef)](_0x1a35b5,_0x2e02ca);if(!_0x165b12)return;const _0x1b3d45=Array[_0x3ffa62(0x196)](_0x165b12);_0x306d23['forEach'](_0x2e93a2=>{const _0x184b1c=_0x3ffa62;_0xe67202[_0x184b1c(0x1a3)](_0x2e93a2,(_0x2e2808,_0x520340)=>{const _0x11c066=_0x184b1c,_0x36dbb0=_0x2cb8ba(_0x2e2808,_0x520340);for(let _0x568bd5=0x0;_0x568bd5<_0x1b3d45[_0x11c066(0x16b)];_0x568bd5++){const [_0x30694b,_0x4d15c3]=_0x1b3d45[_0x568bd5],_0x1267bf=_0x2c1e09['has'](_0x30694b);_0x1267bf||_0x4d15c3[_0x11c066(0x1f7)][_0x11c066(0x162)]((_0x149887,_0x2be0ed,_0x5a1505)=>{const _0x58b7e5=_0x11c066,_0xe7ebe5=_0x5a1505;if(_0xe7ebe5&&!_0x1267bf&&_0x1c4800[_0x58b7e5(0x1ca)](_0x36dbb0,_0xe7ebe5))return _0x2c1e09[_0x58b7e5(0x177)](_0x30694b),!0x0;});}});}),_0x2c1e09['forEach'](_0x58d0a8=>{const _0x371bec=_0x3ffa62;this[_0x371bec(0x180)][_0x371bec(0x192)](_0x1a35b5,_0x2e02ca,_0x58d0a8),this[_0x371bec(0x180)][_0x371bec(0x1b0)](_0x1a35b5,_0x2e02ca,_0x58d0a8);});}});}};Ce=Gt([He(0x0,_0xa4ca45(_0x25d554)),He(0x1,_0xa4ca45(x))],Ce);var Ht=Object[_0xffcb5(0x13c)],Bt=(_0x157678,_0x36dae0,_0x274ef5,_0x2d02fc)=>{const _0x1770e1=_0xffcb5;for(var _0x3b285e=_0x2d02fc>0x1?void 0x0:_0x2d02fc?Ht(_0x36dae0,_0x274ef5):_0x36dae0,_0x3416aa=_0x157678[_0x1770e1(0x16b)]-0x1,_0x3d94c5;_0x3416aa>=0x0;_0x3416aa--)(_0x3d94c5=_0x157678[_0x3416aa])&&(_0x3b285e=_0x3d94c5(_0x3b285e)||_0x3b285e);return _0x3b285e;},De=(_0x2b9e2a,_0x17e8f8)=>(_0x361565,_0x550fc8)=>_0x17e8f8(_0x361565,_0x550fc8,_0x2b9e2a);let _e=class extends _0x10aa75{constructor(_0x6d646e,_0x33eae4,_0x28e71b){const _0x5957d2=_0xffcb5;super(),this[_0x5957d2(0x140)]=_0x6d646e,this[_0x5957d2(0x1b7)]=_0x33eae4,this[_0x5957d2(0x180)]=_0x28e71b,this['_initMergeWithSparkline']();}[_0xffcb5(0x14a)](){const _0x35a4d7=_0xffcb5;this[_0x35a4d7(0x194)](this[_0x35a4d7(0x1b7)][_0x35a4d7(0x1c0)]({'getMutations':_0x29bd26=>{const _0x2c4e7d=_0x35a4d7,_0x1525c0=[],_0x529df6=[];if(_0x29bd26['id']===_0x2a54af['id']){const _0x4a29a9=_0x29bd26[_0x2c4e7d(0x1b4)];if(!_0x4a29a9)return{'redos':_0x1525c0,'undos':_0x529df6};const {unitId:_0x4b1c93,subUnitId:_0x5bb867,ranges:_0x206045}=_0x4a29a9,_0x2461d7=this['_sparklineDataSourceModel'][_0x2c4e7d(0x1ef)](_0x4b1c93,_0x5bb867);if(!_0x2461d7)return{'redos':_0x1525c0,'undos':_0x529df6};const _0x3cfab3={},_0x57cf40={},_0x480ada=new Set();_0x206045[_0x2c4e7d(0x1a4)](_0x3cacd0=>{const _0x5c5281=_0x2c4e7d,_0x3cf5cd=_0x3cacd0[_0x5c5281(0x1b3)],_0x2e260e=_0x3cacd0[_0x5c5281(0x158)];_0xe67202['foreach'](_0x3cacd0,(_0x542eba,_0x360840)=>{const _0x33a2bf=_0x5c5281,_0x2e9610=this['_sparklineDataSourceModel'][_0x33a2bf(0x1ec)](_0x4b1c93,_0x5bb867,_0x542eba,_0x360840);if(_0x2e9610&&!(_0x542eba===_0x3cf5cd&&_0x360840===_0x2e260e)){const _0x14df24=this[_0x33a2bf(0x180)][_0x33a2bf(0x17f)](_0x4b1c93,_0x5bb867,_0x2e9610);if(_0x14df24){_0x480ada[_0x33a2bf(0x177)](_0x2e9610);let _0x372f4e=_0x3cfab3[_0x2e9610];_0x372f4e||(_0x372f4e={'config':_0x524faa[_0x33a2bf(0x1f5)](_0x14df24[_0x33a2bf(0x1df)]),'sparklines':new _0x4a8230(_0x14df24['sparklines'][_0x33a2bf(0x1a7)]())},_0x3cfab3[_0x2e9610]=_0x372f4e),_0x372f4e[_0x33a2bf(0x1f7)][_0x33a2bf(0x167)](_0x542eba,_0x360840),_0x57cf40[_0x2e9610]={'config':_0x524faa[_0x33a2bf(0x1f5)](_0x14df24[_0x33a2bf(0x1df)]),'sparklines':_0x524faa[_0x33a2bf(0x1f5)](_0x14df24[_0x33a2bf(0x1f7)][_0x33a2bf(0x1a7)]())};}}});});for(const [_0x68b636,_0x1fc76e]of _0x2461d7){const _0x2884c6=_0x1fc76e[_0x2c4e7d(0x1f7)];_0x2884c6[_0x2c4e7d(0x162)]((_0x3ca286,_0x20b5b9,_0x566d22)=>{const _0x33917a=_0x2c4e7d;for(let _0x4a2a4c=0x0;_0x4a2a4c<_0x206045['length'];_0x4a2a4c++){const _0x24b9bc=_0x206045[_0x4a2a4c];if(_0x1c4800[_0x33917a(0x166)](_0x24b9bc,_0x566d22)){_0x480ada[_0x33917a(0x177)](_0x68b636);let _0x25649=_0x3cfab3[_0x68b636];_0x25649||(_0x25649={'config':_0x524faa[_0x33917a(0x1f5)](_0x1fc76e[_0x33917a(0x1df)]),'sparklines':new _0x4a8230(_0x2884c6['clone']())},_0x3cfab3[_0x68b636]=_0x25649),_0x25649[_0x33917a(0x1f7)][_0x33917a(0x167)](_0x3ca286,_0x20b5b9),_0x57cf40[_0x68b636]||(_0x57cf40[_0x68b636]={'config':_0x524faa[_0x33917a(0x1f5)](_0x1fc76e['config']),'sparklines':_0x524faa[_0x33917a(0x1f5)](_0x2884c6[_0x33917a(0x1a7)]())});}}});}const _0x10253d={};Object['entries'](_0x3cfab3)[_0x2c4e7d(0x1a4)](([_0x3eb8ff,_0x4b5b66])=>{const _0x94c93e=_0x2c4e7d;_0x4b5b66[_0x94c93e(0x1f7)][_0x94c93e(0x14d)]()&&(_0x10253d[_0x3eb8ff]={'config':_0x4b5b66['config'],'sparklines':_0x4b5b66[_0x94c93e(0x1f7)][_0x94c93e(0x1a7)]()});}),_0x480ada[_0x2c4e7d(0x197)]&&(_0x1525c0[_0x2c4e7d(0x1c1)]({'id':y['id'],'params':{'unitId':_0x4b1c93,'subUnitId':_0x5bb867,'groupIds':Array[_0x2c4e7d(0x196)](_0x480ada),'isSingle':!0x1}}),_0x529df6[_0x2c4e7d(0x1c1)]({'id':y['id'],'params':{'unitId':_0x4b1c93,'subUnitId':_0x5bb867,'groupIds':Array['from'](_0x480ada),'isSingle':!0x1}}),_0x1525c0[_0x2c4e7d(0x1c1)]({'id':V['id'],'params':{'unitId':_0x4b1c93,'subUnitId':_0x5bb867,'sparklineConfigMap':_0x10253d}}),_0x529df6['push']({'id':V['id'],'params':{'unitId':_0x4b1c93,'subUnitId':_0x5bb867,'sparklineConfigMap':_0x57cf40}}));}return{'redos':_0x1525c0,'undos':_0x529df6};}}));}};_e=Bt([De(0x0,_0xa4ca45(_0x25d554)),De(0x1,_0xa4ca45(_0x4891aa)),De(0x2,_0xa4ca45(x))],_e);var Wt=Object[_0xffcb5(0x13c)],Ft=(_0x395dd6,_0x149e52,_0x507200,_0x215b40)=>{const _0x1a8584=_0xffcb5;for(var _0x2f0e08=_0x215b40>0x1?void 0x0:_0x215b40?Wt(_0x149e52,_0x507200):_0x149e52,_0x2c48af=_0x395dd6[_0x1a8584(0x16b)]-0x1,_0x45ba11;_0x2c48af>=0x0;_0x2c48af--)(_0x45ba11=_0x395dd6[_0x2c48af])&&(_0x2f0e08=_0x45ba11(_0x2f0e08)||_0x2f0e08);return _0x2f0e08;},he=(_0x1e422d,_0x34e57a)=>(_0x1ecacc,_0x33e3dd)=>_0x34e57a(_0x1ecacc,_0x33e3dd,_0x1e422d);let Me=class extends _0x10aa75{constructor(_0x476b74,_0x261f2a,_0x5e30a9,_0x34ffd1){const _0x5cf57a=_0xffcb5;super(),re(this,_0x5cf57a(0x163),new _0x56b716()),(this[_0x5cf57a(0x140)]=_0x476b74,this[_0x5cf57a(0x1ee)]=_0x261f2a,this[_0x5cf57a(0x159)]=_0x5e30a9,this[_0x5cf57a(0x180)]=_0x34ffd1,this[_0x5cf57a(0x1b2)](),this[_0x5cf57a(0x179)]());}[_0xffcb5(0x1b2)](){const _0x413d9a=_0xffcb5,_0x4d6557=(_0x53890f,_0x3e50c3)=>{const _0x509cef=_0x578b,_0x42c71e=this['_univerInstanceService'][_0x509cef(0x1aa)](_0xdc48d7[_0x509cef(0x1c2)]);if(!_0x42c71e||!(_0x42c71e==null?void 0x0:_0x42c71e['getSheetBySheetId'](_0x3e50c3)))return;this[_0x509cef(0x163)][_0x509cef(0x169)]();const _0x173a9c=_0x32eea5=>this[_0x509cef(0x171)](_0x32eea5,_0x53890f,_0x3e50c3),_0x36998d=[],_0x503e64=this[_0x509cef(0x180)][_0x509cef(0x1ef)](_0x53890f,_0x3e50c3);if(_0x503e64){for(const [_0x1eef82,_0x37fb81]of _0x503e64)_0x37fb81['sparklines'][_0x509cef(0x162)]((_0x207aeb,_0x2f8f4e,_0x5f49f0)=>{const _0x421892=_0x509cef,_0x5e0df5=_0x2cb8ba(_0x207aeb,_0x2f8f4e);_0x36998d[_0x421892(0x1c1)](_0x5e0df5);});_0x36998d[_0x509cef(0x1a4)](_0x5bcd30=>{const _0x262341=_0x509cef;this[_0x262341(0x163)][_0x262341(0x177)](this[_0x262341(0x1ee)][_0x262341(0x17d)](_0x5bcd30,_0x173a9c,_0x53890f,_0x3e50c3));});}};this[_0x413d9a(0x194)](this[_0x413d9a(0x140)][_0x413d9a(0x149)](_0x53c48e=>{const _0x3507a4=_0x413d9a;if(_0x53c48e['id']===_0xa8b0dd['id']){const _0x264599=_0x53c48e[_0x3507a4(0x1b4)],_0x3acad7=_0x264599[_0x3507a4(0x1ad)],_0x2c6480=_0x264599[_0x3507a4(0x18d)];if(!_0x3acad7||!_0x2c6480)return;_0x4d6557(_0x2c6480,_0x3acad7);}if(_0x53c48e['id']===xe['id']||_0x53c48e['id']===V['id']){const _0x2b3ee0=_0x53c48e[_0x3507a4(0x1b4)],_0x429bc6=_0x2b3ee0[_0x3507a4(0x1ad)],_0x1e65a9=_0x2b3ee0[_0x3507a4(0x18d)];if(!_0x429bc6||!_0x1e65a9)return;_0x4d6557(_0x1e65a9,_0x429bc6);}}));}[_0xffcb5(0x171)](_0x16602b,_0x143408,_0x498a4e){const _0x130e66=_0xffcb5;switch(_0x16602b['id']){case _0x26bf5e['id']:return this[_0x130e66(0x1ce)](_0x16602b[_0x130e66(0x1b4)],_0x143408,_0x498a4e);case _0x27ed64['id']:return this['_getRefRangeMutationsByDeleteRows'](_0x16602b['params'],_0x143408,_0x498a4e);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x28fa13,_0x2bed0d,_0x260722){const _0x1d2f31=_0xffcb5;var _0x46da7f,_0x31defa;const {range:_0x3b1d0c}=_0x28fa13,_0x166d39=new Set(),_0x7b6ad8={},_0x2d5375={},_0x53777c=[],_0x48a571=[],_0x295681=[],_0xb159f5=[];if(!_0x5a590c(this[_0x1d2f31(0x159)],{'unitId':_0x2bed0d,'subUnitId':_0x260722}))return{'redos':_0x48a571,'undos':_0x53777c};const _0x2e40ba=this[_0x1d2f31(0x180)][_0x1d2f31(0x1ef)](_0x2bed0d,_0x260722);if(!_0x2e40ba)return{'redos':_0x48a571,'undos':_0x53777c};if(!((_0x31defa=(_0x46da7f=this[_0x1d2f31(0x180)][_0x1d2f31(0x1c3)]()[_0x1d2f31(0x1ac)][_0x1d2f31(0x1ea)](_0x2bed0d))==null?void 0x0:_0x46da7f[_0x1d2f31(0x1ea)](_0x260722))==null?void 0x0:_0x31defa[_0x1d2f31(0x146)]))return{'redos':_0x48a571,'undos':_0x53777c};for(const [_0x348459,_0x4e9b35]of _0x2e40ba){const _0x337aee=_0x4e9b35[_0x1d2f31(0x1f7)];_0x337aee[_0x1d2f31(0x162)]((_0xc08e6,_0x447d30,_0x224bd0)=>{const _0x14446b=_0x1d2f31;if(_0x1c4800[_0x14446b(0x1ca)](_0x3b1d0c,_0x224bd0)){_0x166d39[_0x14446b(0x177)](_0x348459);let _0x592d1=_0x2d5375[_0x348459];_0x592d1||(_0x592d1={'config':_0x4e9b35[_0x14446b(0x1df)],'sparklines':_0x4e9b35[_0x14446b(0x1f7)][_0x14446b(0x1a7)]()},_0x2d5375[_0x348459]=_0x592d1);let _0x2d4b53=_0x7b6ad8[_0x348459];_0x2d4b53||(_0x2d4b53={'config':_0x4e9b35['config'],'sparklines':new _0x4a8230(_0x4e9b35[_0x14446b(0x1f7)]['clone']())},_0x7b6ad8[_0x348459]=_0x2d4b53);const _0x438313=_0x45e1ba(_0x224bd0,{'id':_0x2cca27['id'],'params':_0x28fa13});_0x438313?_0x2d4b53['sparklines'][_0x14446b(0x1cb)](_0xc08e6,_0x447d30,_0x438313):_0x2d4b53[_0x14446b(0x1f7)][_0x14446b(0x1cb)](_0xc08e6,_0x447d30,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x46e3f1['NORMAL']});}}),_0x337aee['forValue']((_0x981c8a,_0x75b220,_0x46f2a1)=>{const _0x337cc8=_0x1d2f31;if(_0x981c8a<=_0x3b1d0c['endRow']&&_0x981c8a>=_0x3b1d0c['startRow']){_0x166d39[_0x337cc8(0x177)](_0x348459);let _0x2613e0=_0x2d5375[_0x348459];_0x2613e0||(_0x2613e0={'config':_0x4e9b35[_0x337cc8(0x1df)],'sparklines':_0x4e9b35[_0x337cc8(0x1f7)][_0x337cc8(0x1a7)]()},_0x2d5375[_0x348459]=_0x2613e0);let _0x1b8755=_0x7b6ad8[_0x348459];_0x1b8755||(_0x1b8755={'config':_0x4e9b35[_0x337cc8(0x1df)],'sparklines':new _0x4a8230(_0x4e9b35[_0x337cc8(0x1f7)][_0x337cc8(0x1a7)]())},_0x7b6ad8[_0x348459]=_0x1b8755);}});}_0xb159f5[_0x1d2f31(0x1c1)]({'id':y['id'],'params':{'unitId':_0x2bed0d,'subUnitId':_0x260722,'groupIds':Array['from'](_0x166d39),'isSingle':!0x1}}),_0x295681['push']({'id':y['id'],'params':{'unitId':_0x2bed0d,'subUnitId':_0x260722,'groupIds':Array['from'](_0x166d39),'isSingle':!0x1}});const _0x165210={};let _0x2b038b=!0x1;return Object[_0x1d2f31(0x1a5)](_0x7b6ad8)[_0x1d2f31(0x1a4)](([_0x478d4d,_0x36d0a9])=>{const _0x99315f=_0x1d2f31;_0x36d0a9[_0x99315f(0x1f7)][_0x99315f(0x14d)]()&&(_0x2b038b=!0x0,_0x36d0a9[_0x99315f(0x1f7)][_0x99315f(0x1db)](_0x3b1d0c[_0x99315f(0x1b3)],_0x3b1d0c[_0x99315f(0x1f2)]-_0x3b1d0c[_0x99315f(0x1b3)]+0x1),_0x165210[_0x478d4d]={'config':_0x36d0a9[_0x99315f(0x1df)],'sparklines':_0x36d0a9['sparklines'][_0x99315f(0x1a7)]()});}),_0x2b038b&&_0x48a571[_0x1d2f31(0x1c1)]({'id':V['id'],'params':{'unitId':_0x2bed0d,'subUnitId':_0x260722,'sparklineConfigMap':_0x165210}}),_0x53777c[_0x1d2f31(0x1c1)]({'id':V['id'],'params':{'unitId':_0x2bed0d,'subUnitId':_0x260722,'sparklineConfigMap':_0x2d5375}}),{'redos':_0x48a571,'undos':_0x53777c,'preRedos':_0x295681,'preUndos':_0xb159f5};}['_getRefRangeMutationsByDeleteCols'](_0x4de9d3,_0x249893,_0x2d2179){const _0x232c5d=_0xffcb5;var _0xe8a1b1,_0x588c0e;const {range:_0x4515c6}=_0x4de9d3,_0x3b7f92=new Set(),_0x2e9cd1={},_0x3db223={},_0x5c741d=[],_0x150379=[],_0x594b04=[],_0x42a1a5=[];if(!_0x5a590c(this[_0x232c5d(0x159)],{'unitId':_0x249893,'subUnitId':_0x2d2179}))return{'redos':_0x150379,'undos':_0x5c741d};const _0x6c05a7=this[_0x232c5d(0x180)][_0x232c5d(0x1ef)](_0x249893,_0x2d2179);if(!_0x6c05a7)return{'redos':_0x150379,'undos':_0x5c741d};if(!((_0x588c0e=(_0xe8a1b1=this[_0x232c5d(0x180)]['getSparklineCache']()[_0x232c5d(0x1ac)][_0x232c5d(0x1ea)](_0x249893))==null?void 0x0:_0xe8a1b1[_0x232c5d(0x1ea)](_0x2d2179))==null?void 0x0:_0x588c0e[_0x232c5d(0x146)]))return{'redos':_0x150379,'undos':_0x5c741d};for(const [_0x535483,_0x47a208]of _0x6c05a7){const _0x4b3525=_0x47a208[_0x232c5d(0x1f7)];_0x4b3525['forValue']((_0x3454a3,_0x2e8ae2,_0x283c56)=>{const _0x479442=_0x232c5d;if(_0x1c4800[_0x479442(0x1ca)](_0x4515c6,_0x283c56)){_0x3b7f92[_0x479442(0x177)](_0x535483);let _0x10896c=_0x3db223[_0x535483];_0x10896c||(_0x10896c={'config':_0x47a208[_0x479442(0x1df)],'sparklines':_0x47a208[_0x479442(0x1f7)]['clone']()},_0x3db223[_0x535483]=_0x10896c);let _0x4e591a=_0x2e9cd1[_0x535483];_0x4e591a||(_0x4e591a={'config':_0x47a208['config'],'sparklines':new _0x4a8230(_0x47a208[_0x479442(0x1f7)][_0x479442(0x1a7)]())},_0x2e9cd1[_0x535483]=_0x4e591a);const _0xf00851=_0x45e1ba(_0x283c56,{'id':_0xb2e7b['id'],'params':_0x4de9d3});_0xf00851?_0x4e591a['sparklines'][_0x479442(0x1cb)](_0x3454a3,_0x2e8ae2,_0xf00851):_0x4e591a[_0x479442(0x1f7)][_0x479442(0x1cb)](_0x3454a3,_0x2e8ae2,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x46e3f1[_0x479442(0x1d0)]});}}),_0x4b3525[_0x232c5d(0x162)]((_0x4e1513,_0x59fb9c,_0x51fcc4)=>{const _0x5e1904=_0x232c5d;if(_0x59fb9c<=_0x4515c6['endColumn']&&_0x59fb9c>=_0x4515c6[_0x5e1904(0x158)]){_0x3b7f92['add'](_0x535483);let _0xc6f7e7=_0x3db223[_0x535483];_0xc6f7e7||(_0xc6f7e7={'config':_0x47a208[_0x5e1904(0x1df)],'sparklines':_0x47a208[_0x5e1904(0x1f7)]['clone']()},_0x3db223[_0x535483]=_0xc6f7e7);let _0x3d7e25=_0x2e9cd1[_0x535483];_0x3d7e25||(_0x3d7e25={'config':_0x47a208['config'],'sparklines':new _0x4a8230(_0x47a208['sparklines']['clone']())},_0x2e9cd1[_0x535483]=_0x3d7e25);}});}_0x42a1a5[_0x232c5d(0x1c1)]({'id':y['id'],'params':{'unitId':_0x249893,'subUnitId':_0x2d2179,'groupIds':Array['from'](_0x3b7f92),'isSingle':!0x1}}),_0x594b04[_0x232c5d(0x1c1)]({'id':y['id'],'params':{'unitId':_0x249893,'subUnitId':_0x2d2179,'groupIds':Array['from'](_0x3b7f92),'isSingle':!0x1}});const _0x45a959={};let _0x21f797=!0x1;return Object[_0x232c5d(0x1a5)](_0x2e9cd1)[_0x232c5d(0x1a4)](([_0x31dc68,_0x52b4d7])=>{const _0x40110d=_0x232c5d;_0x52b4d7[_0x40110d(0x1f7)][_0x40110d(0x14d)]()&&(_0x21f797=!0x0,_0x52b4d7['sparklines']['removeColumns'](_0x4515c6[_0x40110d(0x158)],_0x4515c6[_0x40110d(0x15f)]-_0x4515c6[_0x40110d(0x158)]+0x1),_0x45a959[_0x31dc68]={'config':_0x52b4d7[_0x40110d(0x1df)],'sparklines':_0x52b4d7['sparklines']['clone']()});}),_0x21f797&&_0x150379['push']({'id':V['id'],'params':{'unitId':_0x249893,'subUnitId':_0x2d2179,'sparklineConfigMap':_0x45a959}}),_0x5c741d[_0x232c5d(0x1c1)]({'id':V['id'],'params':{'unitId':_0x249893,'subUnitId':_0x2d2179,'sparklineConfigMap':_0x3db223}}),{'redos':_0x150379,'undos':_0x5c741d,'preRedos':_0x594b04,'preUndos':_0x42a1a5};}[_0xffcb5(0x179)](){const _0x1d86d7=_0xffcb5;this['disposeWithMe'](this['_commandService'][_0x1d86d7(0x149)](_0x1d2a20=>{const _0x4bc0aa=_0x1d86d7;if(_0x1d2a20['id']===_0x5ba74c['id']){const _0x444727=_0x1d2a20[_0x4bc0aa(0x1b4)],{unitId:_0x53261c,subUnitId:_0x7d3eae,range:_0x16ab83}=_0x444727,_0xaf0e4e=_0x16ab83[_0x4bc0aa(0x158)],_0x2534a1=_0x16ab83[_0x4bc0aa(0x15f)]-_0x16ab83['startColumn']+0x1,_0x17a4b0=this[_0x4bc0aa(0x180)]['getSubUnitSparkline'](_0x53261c,_0x7d3eae);if(!_0x17a4b0)return;for(const [_0xc03c64,_0x52fff6]of _0x17a4b0){this['_sparklineDataSourceModel']['clearSparklineCache'](_0x53261c,_0x7d3eae,_0xc03c64);const _0x5210c4=_0x52fff6[_0x4bc0aa(0x1f7)];_0x5210c4['forValue']((_0x8743cf,_0x3b19fe,_0x17807e)=>{const _0x1f9540=_0x4bc0aa,_0x3ee71f={..._0x17807e};_0xaf0e4e<=_0x3ee71f['startColumn']?(_0x3ee71f['startColumn']+=_0x2534a1,_0x3ee71f[_0x1f9540(0x15f)]+=_0x2534a1):_0xaf0e4e>_0x3ee71f[_0x1f9540(0x15f)]||(_0x3ee71f[_0x1f9540(0x15f)]+=_0x2534a1),_0x5210c4['setValue'](_0x8743cf,_0x3b19fe,_0x3ee71f);});const _0xbb21ee=_0x5210c4[_0x4bc0aa(0x16a)]();for(const _0x2d65e5 in _0xbb21ee){const _0x18f269=_0xbb21ee[Number(_0x2d65e5)];if(!_0x18f269)continue;const _0x4123c0=Object['keys'](_0x18f269)[_0x4bc0aa(0x16f)](Number),_0x2686c7=Math[_0x4bc0aa(0x184)](..._0x4123c0);for(let _0x2f3b9e=_0x2686c7;_0x2f3b9e>=_0xaf0e4e;_0x2f3b9e--)_0x2f3b9e>=_0xaf0e4e&&_0x18f269[_0x2f3b9e]&&(_0x18f269[_0x2f3b9e+_0x2534a1]=_0x18f269[_0x2f3b9e],delete _0x18f269[_0x2f3b9e]);}this[_0x4bc0aa(0x180)][_0x4bc0aa(0x1b0)](_0x53261c,_0x7d3eae,_0xc03c64);}}else{if(_0x1d2a20['id']===_0x34657c['id']){const _0x2517a2=_0x1d2a20[_0x4bc0aa(0x1b4)],{unitId:_0x28c64c,subUnitId:_0x304baf,range:_0x44d976}=_0x2517a2,_0x366e2d=_0x44d976[_0x4bc0aa(0x1b3)],_0x3e61df=_0x44d976['endRow']-_0x44d976['startRow']+0x1,_0x2d7b03=this[_0x4bc0aa(0x180)]['getSubUnitSparkline'](_0x28c64c,_0x304baf);if(!_0x2d7b03)return;for(const [_0x3661c9,_0x50178b]of _0x2d7b03){this[_0x4bc0aa(0x180)][_0x4bc0aa(0x192)](_0x28c64c,_0x304baf,_0x3661c9);const _0x1842d8=_0x50178b['sparklines'];_0x1842d8['forValue']((_0x1a8d04,_0x2b2a54,_0x462a95)=>{const _0xb43fc9=_0x4bc0aa,_0x16723b={..._0x462a95};_0x366e2d<=_0x16723b['startRow']?(_0x16723b[_0xb43fc9(0x1b3)]+=_0x3e61df,_0x16723b[_0xb43fc9(0x1f2)]+=_0x3e61df):_0x366e2d>_0x16723b['endRow']||(_0x16723b[_0xb43fc9(0x1f2)]+=_0x3e61df),_0x1842d8[_0xb43fc9(0x1cb)](_0x1a8d04,_0x2b2a54,_0x16723b);});const _0x5b6bd7=_0x1842d8[_0x4bc0aa(0x16a)](),_0x30a6e9=Object[_0x4bc0aa(0x1c4)](_0x5b6bd7)[_0x4bc0aa(0x16f)](Number),_0x539942=Math[_0x4bc0aa(0x184)](..._0x30a6e9);for(let _0x2f50ac=_0x539942;_0x2f50ac>=_0x366e2d;_0x2f50ac--)_0x2f50ac>=_0x366e2d&&_0x5b6bd7[_0x2f50ac]&&(_0x5b6bd7[_0x2f50ac+_0x3e61df]=_0x5b6bd7[_0x2f50ac],delete _0x5b6bd7[_0x2f50ac]);this['_sparklineDataSourceModel'][_0x4bc0aa(0x1b0)](_0x28c64c,_0x304baf,_0x3661c9);}}else{if(_0x1d2a20['id']===_0xb2e7b['id']){const _0x456ebb=_0x1d2a20[_0x4bc0aa(0x1b4)],{range:_0x6444d,unitId:_0x562a1b,subUnitId:_0x46360c}=_0x456ebb,_0x5b7a6c=this['_sparklineDataSourceModel'][_0x4bc0aa(0x1ef)](_0x562a1b,_0x46360c);if(!_0x5b7a6c)return;for(const [_0x37eac7,_0x970c9c]of _0x5b7a6c){const _0x45365a=_0x970c9c[_0x4bc0aa(0x1f7)];_0x45365a[_0x4bc0aa(0x162)]((_0x2b1aff,_0x3e1924,_0x4f0e47)=>{const _0x407edd=_0x4bc0aa,_0x3a718e=_0x45e1ba(_0x4f0e47,_0x1d2a20);_0x3a718e?_0x45365a[_0x407edd(0x1cb)](_0x2b1aff,_0x3e1924,_0x3a718e):_0x45365a[_0x407edd(0x1cb)](_0x2b1aff,_0x3e1924,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x46e3f1['NORMAL']});}),_0x45365a['removeColumns'](_0x6444d[_0x4bc0aa(0x158)],_0x6444d[_0x4bc0aa(0x15f)]-_0x6444d[_0x4bc0aa(0x158)]+0x1);}this['_sparklineDataSourceModel'][_0x4bc0aa(0x141)](_0x562a1b,_0x46360c);}else{if(_0x1d2a20['id']===_0x2cca27['id']){const _0x3dce73=_0x1d2a20['params'],{range:_0x4ccd8b,unitId:_0x469a25,subUnitId:_0xcc9c7}=_0x3dce73,_0x4a6aa8=this['_sparklineDataSourceModel'][_0x4bc0aa(0x1ef)](_0x469a25,_0xcc9c7);if(!_0x4a6aa8)return;for(const [_0x12dc5e,_0x365230]of _0x4a6aa8){const _0xa5d09d=_0x365230['sparklines'];_0xa5d09d[_0x4bc0aa(0x162)]((_0x28e9e3,_0x4cd2b2,_0x1645c3)=>{const _0x3d1d64=_0x4bc0aa,_0x14d47a=_0x45e1ba(_0x1645c3,_0x1d2a20);_0x14d47a?_0xa5d09d[_0x3d1d64(0x1cb)](_0x28e9e3,_0x4cd2b2,_0x14d47a):_0xa5d09d[_0x3d1d64(0x1cb)](_0x28e9e3,_0x4cd2b2,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x46e3f1[_0x3d1d64(0x1d0)]});}),_0xa5d09d[_0x4bc0aa(0x1db)](_0x4ccd8b[_0x4bc0aa(0x1b3)],_0x4ccd8b[_0x4bc0aa(0x1f2)]-_0x4ccd8b[_0x4bc0aa(0x1b3)]+0x1);}this[_0x4bc0aa(0x180)]['reBuildAnchorCache'](_0x469a25,_0xcc9c7);}else{if(_0x1d2a20['id']===_0xa22292['id']){const _0x3fbca5=_0x1d2a20[_0x4bc0aa(0x1b4)],{unitId:_0x61da9e,subUnitId:_0x233974,sourceRange:_0x2f2d2f,targetRange:_0x49adec}=_0x3fbca5,_0x27cc77=this[_0x4bc0aa(0x180)][_0x4bc0aa(0x1ef)](_0x61da9e,_0x233974);if(!_0x27cc77)return;for(const [_0x4c893e,_0x562341]of _0x27cc77){const _0x13bc82=_0x562341[_0x4bc0aa(0x1f7)];_0x13bc82['forValue']((_0x24a3c0,_0x288b1c,_0xd3ed85)=>{const _0x3767e4=_0x4bc0aa,_0x499529=_0x45e1ba(_0xd3ed85,_0x1d2a20);_0x499529?_0x13bc82[_0x3767e4(0x1cb)](_0x24a3c0,_0x288b1c,_0x499529):_0x13bc82[_0x3767e4(0x1cb)](_0x24a3c0,_0x288b1c,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x46e3f1['NORMAL']});}),_0x13bc82[_0x4bc0aa(0x160)](_0x2f2d2f[_0x4bc0aa(0x158)],_0x2f2d2f[_0x4bc0aa(0x15f)]-_0x2f2d2f[_0x4bc0aa(0x158)]+0x1,_0x49adec[_0x4bc0aa(0x158)]);}this['_sparklineDataSourceModel'][_0x4bc0aa(0x141)](_0x61da9e,_0x233974);}else{if(_0x1d2a20['id']===_0x30c61d['id']){const _0x18998a=_0x1d2a20[_0x4bc0aa(0x1b4)],{unitId:_0x48a879,subUnitId:_0x555953,sourceRange:_0x145d96,targetRange:_0x3e9c3f}=_0x18998a,_0x8cd024=this['_sparklineDataSourceModel'][_0x4bc0aa(0x1ef)](_0x48a879,_0x555953);if(!_0x8cd024)return;for(const [_0xa6cb92,_0x8ebde0]of _0x8cd024){const _0xc9715c=_0x8ebde0[_0x4bc0aa(0x1f7)];_0xc9715c[_0x4bc0aa(0x162)]((_0x593c2b,_0x3735b2,_0x3febe4)=>{const _0x27ffb9=_0x4bc0aa,_0x373a70=_0x45e1ba(_0x3febe4,_0x1d2a20);_0x373a70?_0xc9715c['setValue'](_0x593c2b,_0x3735b2,_0x373a70):_0xc9715c[_0x27ffb9(0x1cb)](_0x593c2b,_0x3735b2,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x46e3f1[_0x27ffb9(0x1d0)]});}),_0xc9715c[_0x4bc0aa(0x193)](_0x145d96[_0x4bc0aa(0x1b3)],_0x145d96[_0x4bc0aa(0x1f2)]-_0x145d96[_0x4bc0aa(0x1b3)]+0x1,_0x3e9c3f['startRow']);}this[_0x4bc0aa(0x180)][_0x4bc0aa(0x141)](_0x48a879,_0x555953);}else{if(_0x1d2a20['id']===_0x9c7e93['id']){const _0xc96ae2=_0x1d2a20[_0x4bc0aa(0x1b4)],{fromRange:_0x586123,toRange:_0x1f0079,unitId:_0x12e75e,from:_0x5a53a1,to:_0x17b86f}=_0xc96ae2;if(_0x5a53a1['subUnitId']!==_0x17b86f[_0x4bc0aa(0x1ad)])return;const _0x438a27=_0x5a53a1[_0x4bc0aa(0x1ad)],{startRow:_0x325e6,endRow:_0x40e0fe,startColumn:_0x196490,endColumn:_0x3151ce}=_0x586123,{startRow:_0x2416f5,startColumn:_0xdc58ef}=_0x1f0079,_0xd403bf=_0x2416f5-_0x325e6,_0x529d53=_0xdc58ef-_0x196490,_0x524d5e=this[_0x4bc0aa(0x180)]['getSubUnitSparkline'](_0x12e75e,_0x438a27);if(!(_0x524d5e!=null&&_0x524d5e['size']))return;for(let _0x46f4b6=_0x325e6;_0x46f4b6<=_0x40e0fe;_0x46f4b6++)for(let _0x4eb28=_0x196490;_0x4eb28<=_0x3151ce;_0x4eb28++){const _0x243956=this[_0x4bc0aa(0x180)][_0x4bc0aa(0x1ec)](_0x12e75e,_0x438a27,_0x46f4b6,_0x4eb28);if(_0x243956){const _0x29cd0b=this['_sparklineDataSourceModel'][_0x4bc0aa(0x17f)](_0x12e75e,_0x438a27,_0x243956);if(_0x29cd0b){const _0x5dfa57=_0x29cd0b[_0x4bc0aa(0x1f7)][_0x4bc0aa(0x1a2)](_0x46f4b6,_0x4eb28);_0x5dfa57&&(_0x29cd0b[_0x4bc0aa(0x1f7)][_0x4bc0aa(0x1cb)](_0x46f4b6+_0xd403bf,_0x4eb28+_0x529d53,_0x5dfa57),_0x29cd0b['sparklines']['realDeleteValue'](_0x46f4b6,_0x4eb28));}}}for(const [_0x31a2a2,_0x22a97f]of _0x524d5e){const _0x68bc41=_0x22a97f[_0x4bc0aa(0x1f7)];_0x68bc41['forValue']((_0x3ec76e,_0x2b36f9,_0xe4f3b)=>{const _0x59c4c0=_0x4bc0aa,_0x35e05d={..._0xe4f3b};_0x1c4800[_0x59c4c0(0x166)](_0x586123,_0xe4f3b)&&(_0x35e05d[_0x59c4c0(0x1b3)]+=_0xd403bf,_0x35e05d[_0x59c4c0(0x1f2)]+=_0xd403bf,_0x35e05d['startColumn']+=_0x529d53,_0x35e05d[_0x59c4c0(0x15f)]+=_0x529d53),_0x68bc41[_0x59c4c0(0x1cb)](_0x3ec76e,_0x2b36f9,_0x35e05d);});}this[_0x4bc0aa(0x180)]['reBuildAnchorCache'](_0x12e75e,_0x438a27);}}}}}}}}));}};Me=Ft([he(0x0,_0xa4ca45(_0x25d554)),he(0x1,_0xa4ca45(_0x524ea0)),he(0x2,_0x3fc178),he(0x3,_0xa4ca45(x))],Me);var Kt=Object[_0xffcb5(0x13c)],zt=(_0x223cca,_0x1ff738,_0x57fba5,_0x25b8e6)=>{for(var _0xcdb419=_0x25b8e6>0x1?void 0x0:_0x25b8e6?Kt(_0x1ff738,_0x57fba5):_0x1ff738,_0x1ee327=_0x223cca['length']-0x1,_0x39120b;_0x1ee327>=0x0;_0x1ee327--)(_0x39120b=_0x223cca[_0x1ee327])&&(_0xcdb419=_0x39120b(_0xcdb419)||_0xcdb419);return _0xcdb419;},Ee=(_0x66ddc7,_0x45daad)=>(_0x4253f4,_0x111b1e)=>_0x45daad(_0x4253f4,_0x111b1e,_0x66ddc7);let Re=class extends _0x10aa75{constructor(_0x28fabb,_0x4dc859,_0x2d7902){const _0x49d321=_0xffcb5;super(),this[_0x49d321(0x159)]=_0x28fabb,this[_0x49d321(0x1b7)]=_0x4dc859,this['_sparklineDataSourceModel']=_0x2d7902,this['_initSheetChange']();}['_initSheetChange'](){const _0x4e4a29=_0xffcb5;this[_0x4e4a29(0x194)](this[_0x4e4a29(0x1b7)][_0x4e4a29(0x1c0)]({'getMutations':_0x2f3dce=>{const _0xb079ff=_0x4e4a29;var _0x3cfe6b;if(_0x2f3dce['id']===_0xf02379['id']){const _0x58693d=_0x2f3dce[_0xb079ff(0x1b4)],_0x445a54=_0x58693d['unitId']||this[_0xb079ff(0x159)]['getCurrentUnitOfType'](_0xdc48d7[_0xb079ff(0x1c2)])['getUnitId'](),_0x326835=_0x58693d[_0xb079ff(0x1ad)]||((_0x3cfe6b=this[_0xb079ff(0x159)][_0xb079ff(0x147)](_0xdc48d7[_0xb079ff(0x1c2)])['getActiveSheet']())==null?void 0x0:_0x3cfe6b[_0xb079ff(0x1d8)]());if(!_0x445a54||!_0x326835)return{'redos':[],'undos':[]};const _0x355136=this[_0xb079ff(0x180)]['getSubUnitSparkline'](_0x445a54,_0x326835);if(!_0x355136)return{'redos':[],'undos':[]};const _0x3209f0=new Set(),_0x37b7f1={};for(const [_0x3ffefa,_0x50a603]of _0x355136)_0x3209f0['add'](_0x3ffefa),_0x37b7f1[_0x3ffefa]={'config':_0x524faa['deepClone'](_0x50a603[_0xb079ff(0x1df)]),'sparklines':_0x524faa[_0xb079ff(0x1f5)](_0x50a603['sparklines'][_0xb079ff(0x1a7)]())};if(_0x3209f0['size'])return{'redos':[{'id':y['id'],'params':{'unitId':_0x445a54,'subUnitId':_0x326835,'groupIds':Array[_0xb079ff(0x196)](_0x3209f0),'isSingle':!0x1}}],'undos':[{'id':V['id'],'params':{'unitId':_0x445a54,'subUnitId':_0x326835,'sparklineConfigMap':_0x37b7f1}}]};}else{if(_0x2f3dce['id']===_0x335c9d['id']){const _0x2454ea=_0x2f3dce[_0xb079ff(0x1b4)],{unitId:_0x49eedc,subUnitId:_0x580d8a,targetSubUnitId:_0x56441d}=_0x2454ea;if(!_0x49eedc||!_0x580d8a||!_0x56441d)return{'redos':[],'undos':[]};const _0x3f6f8e=this[_0xb079ff(0x180)][_0xb079ff(0x1ef)](_0x49eedc,_0x580d8a);if(!_0x3f6f8e)return{'redos':[],'undos':[]};const _0x567671=new Set(),_0x4131b6={};for(const [_0x46a6b2,_0x916d90]of _0x3f6f8e){const _0x138c95='g_'+_0xe87289(0x6);_0x567671[_0xb079ff(0x177)](_0x46a6b2),_0x4131b6[_0x138c95]={'config':_0x524faa[_0xb079ff(0x1f5)](_0x916d90['config']),'sparklines':_0x524faa['deepClone'](_0x916d90[_0xb079ff(0x1f7)][_0xb079ff(0x1a7)]())};}if(_0x567671[_0xb079ff(0x197)])return{'redos':[{'id':V['id'],'params':{'unitId':_0x49eedc,'subUnitId':_0x56441d,'sparklineConfigMap':_0x4131b6}}],'undos':[{'id':y['id'],'params':{'unitId':_0x49eedc,'subUnitId':_0x56441d,'groupIds':Array[_0xb079ff(0x196)](_0x567671),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};Re=zt([Ee(0x0,_0xa4ca45(_0x3fc178)),Ee(0x1,_0xa4ca45(_0x4891aa)),Ee(0x2,_0xa4ca45(x))],Re);var Xt=Object[_0xffcb5(0x13c)],Jt=(_0x42fd36,_0x3aadfe,_0xe13b96,_0x3310b6)=>{const _0xd9c0c4=_0xffcb5;for(var _0x3efce5=_0x3310b6>0x1?void 0x0:_0x3310b6?Xt(_0x3aadfe,_0xe13b96):_0x3aadfe,_0x5336eb=_0x42fd36[_0xd9c0c4(0x16b)]-0x1,_0x214656;_0x5336eb>=0x0;_0x5336eb--)(_0x214656=_0x42fd36[_0x5336eb])&&(_0x3efce5=_0x214656(_0x3efce5)||_0x3efce5);return _0x3efce5;},Be=(_0x56ea58,_0x1f3fd2)=>(_0x34d6b9,_0x58465d)=>_0x1f3fd2(_0x34d6b9,_0x58465d,_0x56ea58);let ve=class extends _0x10aa75{constructor(_0x214abd,_0x291b12){const _0x5b9d1a=_0xffcb5;super(),this[_0x5b9d1a(0x164)]=_0x214abd,this[_0x5b9d1a(0x180)]=_0x291b12,this[_0x5b9d1a(0x1dd)]();}[_0xffcb5(0x1dd)](){const _0x3d0ff3=_0xffcb5,_0x4599be=_0x12d8cb=>{const _0x24d45c=_0x578b,_0x252c70=this[_0x24d45c(0x180)]['toJSON'](_0x12d8cb);return _0x252c70?JSON[_0x24d45c(0x1b6)](_0x252c70):'';},_0x5316e2=_0x174aab=>_0x174aab?JSON[_0x3d0ff3(0x1c5)](_0x174aab):{};this['disposeWithMe'](this[_0x3d0ff3(0x164)][_0x3d0ff3(0x1f0)]({'toJson':_0x4599be,'parseJson':_0x5316e2,'pluginName':Ke,'businesses':[_0xdc48d7[_0x3d0ff3(0x1c2)]],'onLoad':(_0x44d610,_0x1c83dc)=>{const _0x54d01b=_0x3d0ff3;this[_0x54d01b(0x180)][_0x54d01b(0x1e6)](_0x1c83dc);},'onUnLoad':_0x3b1e36=>{const _0x2b12db=_0x3d0ff3;this['_sparklineDataSourceModel'][_0x2b12db(0x1d7)](_0x3b1e36);}}));}};ve=Jt([Be(0x0,_0xa4ca45(_0x16568e)),Be(0x1,_0xa4ca45(x))],ve);var Zt=Object['defineProperty'],Yt=Object[_0xffcb5(0x13c)],qt=(_0xc73c88,_0x18dd77,_0x22266c)=>_0x18dd77 in _0xc73c88?Zt(_0xc73c88,_0x18dd77,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22266c}):_0xc73c88[_0x18dd77]=_0x22266c,Qt=(_0x554010,_0x48be3b,_0xd04e5b,_0x3e0b8e)=>{const _0x20de07=_0xffcb5;for(var _0x39a4a3=_0x3e0b8e>0x1?void 0x0:_0x3e0b8e?Yt(_0x48be3b,_0xd04e5b):_0x48be3b,_0x5555f4=_0x554010[_0x20de07(0x16b)]-0x1,_0x46d4dd;_0x5555f4>=0x0;_0x5555f4--)(_0x46d4dd=_0x554010[_0x5555f4])&&(_0x39a4a3=_0x46d4dd(_0x39a4a3)||_0x39a4a3);return _0x39a4a3;},We=(_0x9d70dd,_0x42e58c)=>(_0x1286a7,_0x27c2c9)=>_0x42e58c(_0x1286a7,_0x27c2c9,_0x9d70dd),Xe=(_0x2aab67,_0x6d8b2b,_0x54608a)=>qt(_0x2aab67,typeof _0x6d8b2b!=_0xffcb5(0x1ed)?_0x6d8b2b+'':_0x6d8b2b,_0x54608a);let we=class extends _0x183207{constructor(_0xfe81f7={},_0x59e309,_0x4813e9){const _0x297b9e=_0xffcb5;super(),this[_0x297b9e(0x1a9)]=_0xfe81f7,this[_0x297b9e(0x142)]=_0x59e309,this['_commandService']=_0x4813e9,this[_0x297b9e(0x17c)](),this[_0x297b9e(0x1ba)]();}[_0xffcb5(0x17c)](){const _0x5a8310=_0xffcb5;[[x],[me],[_e],[ke],[Me],[Ce],[Re],[ve]]['forEach'](_0x3ca1a6=>{const _0x57f994=_0x578b;this[_0x57f994(0x142)][_0x57f994(0x177)](_0x3ca1a6);}),_0x5cbd6a(this[_0x5a8310(0x142)],[[ve]]);}[_0xffcb5(0x1cd)](){_0x5cbd6a(this['_injector'],[[me],[_e],[ke],[Me],[Ce],[Re]]);}[_0xffcb5(0x1ba)](){const _0x40fc89=_0xffcb5;[Ot,V,xt,y,Ut,xe]['forEach'](_0x4a0e54=>this[_0x40fc89(0x140)]['registerCommand'](_0x4a0e54));}};Xe(we,_0xffcb5(0x18b),Ke),Xe(we,'type',_0xdc48d7[_0xffcb5(0x1c2)]),we=Qt([_0x18c544(_0x5bb428),We(0x1,_0xa4ca45(_0x22768a)),We(0x2,_0xa4ca45(_0x25d554))],we);export{Ot as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,xt as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,Ut as SetSheetSparklineCommand,xe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,Ve as SparklineExtremumTypeEnum,an as SparklinePointsNames,Ge as SparklineThemeMapping,ze as SparklineThemeTypeEnum,Et as SparklineTypeEnum,we as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xe1086a=_0x2397;(function(_0x4d1dda,_0x1c2fab){const _0x5185b8=_0x2397,_0xa159ff=_0x4d1dda();while(!![]){try{const _0x57febc=parseInt(_0x5185b8(0x137))/0x1*(parseInt(_0x5185b8(0x160))/0x2)+parseInt(_0x5185b8(0x15e))/0x3*(-parseInt(_0x5185b8(0x13e))/0x4)+parseInt(_0x5185b8(0x16e))/0x5+parseInt(_0x5185b8(0x139))/0x6+-parseInt(_0x5185b8(0x16b))/0x7*(-parseInt(_0x5185b8(0x153))/0x8)+-parseInt(_0x5185b8(0x15d))/0x9*(-parseInt(_0x5185b8(0x140))/0xa)+parseInt(_0x5185b8(0x142))/0xb*(-parseInt(_0x5185b8(0x162))/0xc);if(_0x57febc===_0x1c2fab)break;else _0xa159ff['push'](_0xa159ff['shift']());}catch(_0x3b001c){_0xa159ff['push'](_0xa159ff['shift']());}}}(_0x5c10,0xc979b));import{SparklineDataSourceModel as _0x8ae006,SetSheetSparklineCommand as _0x4efee8,RemoveSheetSparklineCommand as _0xe8ac69,AddSheetSparklineCommand as _0x14f3a3,SparklineTypeEnum as _0x485d5a}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x57d0bf,Injector as _0x43c39c,ICommandService as _0x5e15ef,Tools as _0x52ebd4}from'@univerjs/core';import{FWorksheet as _0x56ac78}from'@univerjs/sheets/facade';import{FEnum as _0x95c203,FEventName as _0x207081,FUniver as _0x1697db}from'@univerjs/core/facade';function _0x2397(_0x4c659b,_0x557399){_0x4c659b=_0x4c659b-0x137;const _0x5c100e=_0x5c10();let _0x2397c6=_0x5c100e[_0x4c659b];return _0x2397c6;}import{SheetsSelectionsService as _0x2e2a40}from'@univerjs/sheets';var z=Object['getOwnPropertyDescriptor'],H=(_0x254e99,_0x5c05ea,_0x3431ff,_0x409940)=>{const _0x4cac65=_0x2397;for(var _0x12ba5c=_0x409940>0x1?void 0x0:_0x409940?z(_0x5c05ea,_0x3431ff):_0x5c05ea,_0x666552=_0x254e99[_0x4cac65(0x14b)]-0x1,_0x39fcb9;_0x666552>=0x0;_0x666552--)(_0x39fcb9=_0x254e99[_0x666552])&&(_0x12ba5c=_0x39fcb9(_0x12ba5c)||_0x12ba5c);return _0x12ba5c;},V=(_0x2e1809,_0x4b9ded)=>(_0x218b2f,_0xf3178f)=>_0x4b9ded(_0x218b2f,_0xf3178f,_0x2e1809);let C=class{constructor(_0x2b36ef,_0x4d4401,_0x1c1a3c,_0x16e7cb,_0x3b646e,_0x148afb){const _0x478613=_0x2397;this['_unitId']=_0x2b36ef,this[_0x478613(0x152)]=_0x4d4401,this[_0x478613(0x169)]=_0x1c1a3c,this[_0x478613(0x13d)]=_0x16e7cb,this['_col']=_0x3b646e,this[_0x478613(0x161)]=_0x148afb;}['changeDataSource'](_0x1e14f7,_0x3d7266){const _0x54d183=_0x2397,_0x9d211a=this[_0x54d183(0x161)][_0x54d183(0x147)](_0x8ae006),_0xb6ce34=this[_0x54d183(0x161)][_0x54d183(0x147)](_0x5e15ef),_0x1d7f6d=_0x9d211a[_0x54d183(0x177)](this[_0x54d183(0x14a)],this[_0x54d183(0x152)],this['_groupId']);if(!_0x1d7f6d)return;const _0x129198={'config':_0x1d7f6d,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x54d183(0x169)],'resetType':'item','sourceRanges':[_0x1e14f7],'targetRanges':[_0x3d7266],'primary':{'startRow':this[_0x54d183(0x13d)],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this[_0x54d183(0x13a)],'actualRow':this['_row'],'actualColumn':this[_0x54d183(0x13a)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0xb6ce34[_0x54d183(0x146)](_0x4efee8['id'],_0x129198),this['_row']=_0x3d7266[_0x54d183(0x172)],this[_0x54d183(0x13a)]=_0x3d7266[_0x54d183(0x179)],this;}[_0xe1086a(0x143)](){const _0x2b99f3=_0xe1086a,_0x3f3b40=this['_injector'][_0x2b99f3(0x147)](_0x5e15ef),_0x991f6c={'isSingle':!0x0,'ranges':[{'startRow':this[_0x2b99f3(0x13d)],'startColumn':this[_0x2b99f3(0x13a)],'endRow':this['_row'],'endColumn':this['_col']}]};_0x3f3b40[_0x2b99f3(0x146)](_0xe8ac69['id'],_0x991f6c);}};C=H([V(0x5,_0x57d0bf(_0x43c39c))],C);var q=Object[_0xe1086a(0x15a)],J=(_0x2fa225,_0x458245,_0x2bf57d,_0x29a9cb)=>{const _0x3babdf=_0xe1086a;for(var _0x32a7b4=_0x29a9cb>0x1?void 0x0:_0x29a9cb?q(_0x458245,_0x2bf57d):_0x458245,_0x6069e9=_0x2fa225[_0x3babdf(0x14b)]-0x1,_0x4449ca;_0x6069e9>=0x0;_0x6069e9--)(_0x4449ca=_0x2fa225[_0x6069e9])&&(_0x32a7b4=_0x4449ca(_0x32a7b4)||_0x32a7b4);return _0x32a7b4;},K=(_0x217d3e,_0x29d136)=>(_0x1cefa6,_0x3b53ce)=>_0x29d136(_0x1cefa6,_0x3b53ce,_0x217d3e);let w=class{constructor(_0x421969,_0x1c179b,_0x79e341,_0x3c8e05,_0x36597a,_0x4def57){const _0x391dfe=_0xe1086a;this[_0x391dfe(0x14a)]=_0x421969,this[_0x391dfe(0x152)]=_0x1c179b,this[_0x391dfe(0x169)]=_0x79e341,this[_0x391dfe(0x13d)]=_0x3c8e05,this['_col']=_0x36597a,this['_injector']=_0x4def57;}['changeDataSource'](_0x801579,_0x262b24){const _0x4cd585=_0xe1086a,_0x3ca79f=this['_injector'][_0x4cd585(0x147)](_0x8ae006),_0x503ec0=this[_0x4cd585(0x161)][_0x4cd585(0x147)](_0x5e15ef),_0x4c8145=_0x3ca79f['getSparklineById'](this[_0x4cd585(0x14a)],this['_subUnitId'],this[_0x4cd585(0x169)]);if(!_0x4c8145)return;const _0x7f6b8={'config':_0x4c8145,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this['_groupId'],'resetType':_0x4cd585(0x14f),'sourceRanges':_0x801579,'targetRanges':_0x262b24,'primary':{'startRow':this[_0x4cd585(0x13d)],'startColumn':this[_0x4cd585(0x13a)],'endRow':this[_0x4cd585(0x13d)],'endColumn':this[_0x4cd585(0x13a)],'actualRow':this[_0x4cd585(0x13d)],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x503ec0[_0x4cd585(0x146)](_0x4efee8['id'],_0x7f6b8),this['_row']=_0x262b24[0x0][_0x4cd585(0x172)],this[_0x4cd585(0x13a)]=_0x262b24[0x0][_0x4cd585(0x179)],this;}[_0xe1086a(0x149)](){const _0x16468d=_0xe1086a,_0x38bd98=this[_0x16468d(0x161)][_0x16468d(0x147)](_0x5e15ef),_0x17fc10={'isSingle':!0x1,'ranges':[{'startRow':this[_0x16468d(0x13d)],'startColumn':this[_0x16468d(0x13a)],'endRow':this[_0x16468d(0x13d)],'endColumn':this['_col']}]};_0x38bd98['syncExecuteCommand'](_0xe8ac69['id'],_0x17fc10);}[_0xe1086a(0x14c)](_0x5d49a7){const _0x29965d=_0xe1086a,_0x492a2f=this[_0x29965d(0x161)][_0x29965d(0x147)](_0x8ae006)[_0x29965d(0x177)](this['_unitId'],this['_subUnitId'],this[_0x29965d(0x169)]);if(_0x492a2f){const _0x3ee369={'config':{'config':_0x5d49a7,'sparklines':_0x492a2f[_0x29965d(0x157)]},'isChangeDataSource':!0x1};this['_injector'][_0x29965d(0x147)](_0x5e15ef)[_0x29965d(0x146)](_0x4efee8['id'],_0x3ee369);}return this;}};w=J([K(0x5,_0x57d0bf(_0x43c39c))],w);class L extends _0x56ac78{[_0xe1086a(0x16f)](_0xe2541,_0x3f4a78,_0x4b3260){const _0x252124=_0xe1086a;if(this[_0x252124(0x145)][_0x252124(0x146)](_0x14f3a3['id'],{'sourceRanges':_0xe2541,'targetRanges':_0x3f4a78,'targetInfo':{'unitId':this['_workbook'][_0x252124(0x148)](),'subUnitId':this[_0x252124(0x178)][_0x252124(0x141)]()},'config':{'type':_0x4b3260}})){const {startRow:_0x1b125d,startColumn:_0x8be8aa}=_0x3f4a78[0x0];return this[_0x252124(0x176)](_0x1b125d,_0x8be8aa);}}['getAllSubSparkline'](){const _0x3161af=_0xe1086a;return this[_0x3161af(0x161)][_0x3161af(0x147)](_0x8ae006)[_0x3161af(0x15f)](this[_0x3161af(0x16d)][_0x3161af(0x148)](),this['_worksheet'][_0x3161af(0x141)]());}[_0xe1086a(0x13b)](_0x3ce122){const _0x2b785d=_0xe1086a,_0x507d79=this[_0x2b785d(0x161)]['get'](_0x8ae006);let _0x233cad;for(let _0x29162e=0x0;_0x29162e<_0x3ce122[_0x2b785d(0x14b)];_0x29162e++){const _0x11dcbb=_0x3ce122[_0x29162e],{startRow:_0x5da8bd,endRow:_0xbd5aa,startColumn:_0x10f125,endColumn:_0x41da09}=_0x11dcbb;for(let _0xb0cba0=_0x5da8bd;_0xb0cba0<=_0xbd5aa;_0xb0cba0++)for(let _0x5c87ff=_0x10f125;_0x5c87ff<=_0x41da09;_0x5c87ff++){const _0x54dd4f=_0x507d79[_0x2b785d(0x138)](this[_0x2b785d(0x16d)][_0x2b785d(0x148)](),this[_0x2b785d(0x178)][_0x2b785d(0x141)](),_0xb0cba0,_0x5c87ff);if(_0x54dd4f){const _0x3a102a=_0x507d79[_0x2b785d(0x177)](this['_workbook'][_0x2b785d(0x148)](),this[_0x2b785d(0x178)][_0x2b785d(0x141)](),_0x54dd4f);if(_0x3a102a){_0x233cad=_0x52ebd4[_0x2b785d(0x154)](_0x3a102a);break;}}}}_0x233cad&&this[_0x2b785d(0x145)][_0x2b785d(0x16a)](_0x4efee8['id'],{'ranges':_0x3ce122,'combine':!0x0,'config':_0x233cad,'isChangeDataSource':!0x1});}[_0xe1086a(0x167)](_0x238f36){const _0x1ebc9f=_0xe1086a,_0x48cc84=this[_0x1ebc9f(0x161)][_0x1ebc9f(0x147)](_0x8ae006);let _0x92f44d;for(let _0x5e9c6f=0x0;_0x5e9c6f<_0x238f36[_0x1ebc9f(0x14b)];_0x5e9c6f++){const _0x4cf789=_0x238f36[_0x5e9c6f],{startRow:_0x53bed6,endRow:_0x226b7,startColumn:_0x163bef,endColumn:_0x10de07}=_0x4cf789;for(let _0x10aea2=_0x53bed6;_0x10aea2<=_0x226b7;_0x10aea2++)for(let _0x491cdd=_0x163bef;_0x491cdd<=_0x10de07;_0x491cdd++){const _0x47bb60=_0x48cc84['getSparkline'](this[_0x1ebc9f(0x16d)][_0x1ebc9f(0x148)](),this[_0x1ebc9f(0x178)]['getSheetId'](),_0x10aea2,_0x491cdd);if(_0x47bb60){const _0xec8e6e=_0x48cc84['getSparklineById'](this[_0x1ebc9f(0x16d)][_0x1ebc9f(0x148)](),this[_0x1ebc9f(0x178)][_0x1ebc9f(0x141)](),_0x47bb60);if(_0xec8e6e){_0x92f44d=_0x52ebd4[_0x1ebc9f(0x154)](_0xec8e6e);break;}}}}_0x92f44d||this['_commandService'][_0x1ebc9f(0x16a)](_0x4efee8['id'],{'ranges':_0x238f36,'unCombine':!0x0,'config':_0x92f44d,'isChangeDataSource':!0x1});}[_0xe1086a(0x176)](_0x795845,_0x281a4c){const _0x1e10d1=_0xe1086a,_0x3346e0=this[_0x1e10d1(0x161)][_0x1e10d1(0x147)](_0x8ae006),_0x4ce0fd=this[_0x1e10d1(0x16d)][_0x1e10d1(0x148)](),_0x3d74ce=this['_worksheet'][_0x1e10d1(0x141)](),_0x5afd5e=_0x3346e0[_0x1e10d1(0x138)](_0x4ce0fd,_0x3d74ce,_0x795845,_0x281a4c);if(_0x5afd5e)return this[_0x1e10d1(0x161)][_0x1e10d1(0x156)](C,_0x4ce0fd,_0x3d74ce,_0x5afd5e,_0x795845,_0x281a4c);}['getSparklineGroupByCell'](_0xf19096,_0x137e92){const _0x6623fc=_0xe1086a,_0x4ea8e3=this[_0x6623fc(0x161)]['get'](_0x8ae006),_0x2a3ff9=this[_0x6623fc(0x16d)][_0x6623fc(0x148)](),_0x25be4d=this[_0x6623fc(0x178)][_0x6623fc(0x141)](),_0x40e34f=_0x4ea8e3['getSparkline'](_0x2a3ff9,_0x25be4d,_0xf19096,_0x137e92);if(_0x40e34f)return this['_injector'][_0x6623fc(0x156)](w,_0x2a3ff9,_0x25be4d,_0x40e34f,_0xf19096,_0x137e92);}}_0x56ac78[_0xe1086a(0x14d)](L);class Q extends _0x95c203{get['SparklineTypeEnum'](){return _0x485d5a;}}_0x95c203['extend'](Q);class X extends _0x207081{get[_0xe1086a(0x164)](){return'SheetSparklineChanged';}}_0x207081[_0xe1086a(0x14d)](X);function _0x5c10(){const _0x22847e=['groupId','SheetSparklineChanged','map','Event','unComposeSparkline','sparklineAnchorMap','_groupId','executeCommand','22281feDYEH','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','_workbook','7347020CylYgL','addSparkline','range','cancel','startRow','getActiveWorkbook','getActiveSheet','forEach','getSparklineByCell','getSparklineById','_worksheet','startColumn','9VLsYoN','getSparkline','5680596pZtPNl','_col','composeSparkline','onCommandExecuted','_row','1256cbWAXg','getId','10MgBsct','getSheetId','44RrdsAd','removeSparkline','filter','_commandService','syncExecuteCommand','get','getUnitId','removeSparklineGroup','_unitId','length','setConfig','extend','isChangeDataSource','group','add','matrix','_subUnitId','3584lwaGMd','deepClone','params','createInstance','sparklines','getSparklineCache','from','getOwnPropertyDescriptor','getCurrentSelections','fireEvent','6068502kinjHr','6816gPzLYM','getSubUnitSparkline','264174WzNrUd','_injector','12499692sXhJFM'];_0x5c10=function(){return _0x22847e;};return _0x5c10();}class Y extends _0x1697db{['_initialize'](_0x1d3055){const _0x143303=_0xe1086a,_0x1c9d45=_0x1d3055[_0x143303(0x147)](_0x5e15ef);this['registerEventHandler'](this[_0x143303(0x166)][_0x143303(0x164)],()=>_0x1c9d45[_0x143303(0x13c)](_0x5f33aa=>{const _0x15fd35=_0x143303;var _0x1bc2e6,_0x21039b;if(_0x5f33aa['id']===_0x4efee8['id']){const _0x191967=_0x5f33aa[_0x15fd35(0x155)];if(!_0x191967[_0x15fd35(0x14e)]){const _0x599e1b=this[_0x15fd35(0x173)](),_0x4e18d1=_0x599e1b==null?void 0x0:_0x599e1b[_0x15fd35(0x174)]();if(!_0x599e1b||!_0x4e18d1)return;const _0x5b3559=_0x599e1b[_0x15fd35(0x13f)](),_0x484a2e=_0x4e18d1[_0x15fd35(0x141)](),_0x370d6b=this[_0x15fd35(0x161)][_0x15fd35(0x147)](_0x2e2a40),_0x18bdc7=this['_injector'][_0x15fd35(0x147)](_0x8ae006),_0x502d4a=(_0x1bc2e6=_0x191967==null?void 0x0:_0x191967['ranges'])!=null?_0x1bc2e6:_0x370d6b[_0x15fd35(0x15b)]()[_0x15fd35(0x165)](_0x3ede7d=>_0x3ede7d[_0x15fd35(0x170)]),_0x11acaf=(_0x21039b=_0x18bdc7[_0x15fd35(0x158)]()[_0x15fd35(0x168)][_0x15fd35(0x147)](_0x5b3559))==null?void 0x0:_0x21039b['get'](_0x484a2e),_0x315f31=new Set();_0x502d4a[_0x15fd35(0x175)](_0x1077e0=>{const _0x5d37fb=_0x15fd35;var _0x28ead5;const {startRow:_0x1bca7e,endRow:_0x165dc3,startColumn:_0x4a5946,endColumn:_0x39140f}=_0x1077e0;for(let _0x4dbe1c=_0x1bca7e;_0x4dbe1c<=_0x165dc3;_0x4dbe1c++)for(let _0x31b364=_0x4a5946;_0x31b364<=_0x39140f;_0x31b364++){const _0x108200=(_0x28ead5=_0x11acaf==null?void 0x0:_0x11acaf[_0x5d37fb(0x151)]['getValue'](_0x4dbe1c,_0x31b364))==null?void 0x0:_0x28ead5[_0x5d37fb(0x163)];_0x108200&&_0x315f31[_0x5d37fb(0x150)](_0x108200);}});const _0x4bc617=Array[_0x15fd35(0x159)](_0x315f31)[_0x15fd35(0x165)](_0x331f3b=>_0x18bdc7[_0x15fd35(0x177)](_0x5b3559,_0x484a2e,_0x331f3b))[_0x15fd35(0x144)](_0x37203b=>!!_0x37203b),_0x1f06e3={'workbook':_0x599e1b,'worksheet':_0x4e18d1,'sparklines':_0x4bc617};if(this[_0x15fd35(0x15c)](this[_0x15fd35(0x166)][_0x15fd35(0x164)],_0x1f06e3),_0x1f06e3[_0x15fd35(0x171)])throw new Error(_0x15fd35(0x16c));}}}));}}_0x1697db['extend'](Y);export{C as FSparkline,w as FSparklineGroup};
|
|
1
|
+
const _0xebd828=_0x121d;(function(_0x2999e5,_0x2deb74){const _0x3a0e73=_0x121d,_0x59e89b=_0x2999e5();while(!![]){try{const _0x4b7614=parseInt(_0x3a0e73(0x15c))/0x1+-parseInt(_0x3a0e73(0x159))/0x2+-parseInt(_0x3a0e73(0x167))/0x3*(parseInt(_0x3a0e73(0x179))/0x4)+parseInt(_0x3a0e73(0x15f))/0x5*(-parseInt(_0x3a0e73(0x157))/0x6)+parseInt(_0x3a0e73(0x177))/0x7*(parseInt(_0x3a0e73(0x188))/0x8)+-parseInt(_0x3a0e73(0x176))/0x9+parseInt(_0x3a0e73(0x17f))/0xa;if(_0x4b7614===_0x2deb74)break;else _0x59e89b['push'](_0x59e89b['shift']());}catch(_0x2d5253){_0x59e89b['push'](_0x59e89b['shift']());}}}(_0x2872,0x214a6));import{SparklineDataSourceModel as _0x141f1b,SetSheetSparklineCommand as _0x39f7f7,RemoveSheetSparklineCommand as _0x51f887,AddSheetSparklineCommand as _0x2b595f,SparklineTypeEnum as _0x1a6534}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x45a2bb,Injector as _0x50dce5,ICommandService as _0x2921e4,Tools as _0x2291ec}from'@univerjs/core';import{FWorksheet as _0x1ba7b0}from'@univerjs/sheets/facade';import{FEnum as _0xe767f4,FEventName as _0x30fcff,FUniver as _0x534210}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x502354}from'@univerjs/sheets';var z=Object[_0xebd828(0x155)],H=(_0x805a8b,_0x4397f1,_0x4988b3,_0x241129)=>{const _0x6fa1d9=_0xebd828;for(var _0xa6c42e=_0x241129>0x1?void 0x0:_0x241129?z(_0x4397f1,_0x4988b3):_0x4397f1,_0x1abae9=_0x805a8b[_0x6fa1d9(0x183)]-0x1,_0x9cf309;_0x1abae9>=0x0;_0x1abae9--)(_0x9cf309=_0x805a8b[_0x1abae9])&&(_0xa6c42e=_0x9cf309(_0xa6c42e)||_0xa6c42e);return _0xa6c42e;},V=(_0x4f1892,_0x3a9fe2)=>(_0x2a3205,_0x4a884c)=>_0x3a9fe2(_0x2a3205,_0x4a884c,_0x4f1892);let C=class{constructor(_0x5f486d,_0xd170d7,_0x265e22,_0x44e584,_0x3bdc40,_0x484417){const _0x305fef=_0xebd828;this[_0x305fef(0x154)]=_0x5f486d,this['_subUnitId']=_0xd170d7,this[_0x305fef(0x17b)]=_0x265e22,this[_0x305fef(0x164)]=_0x44e584,this['_col']=_0x3bdc40,this['_injector']=_0x484417;}['changeDataSource'](_0x34d479,_0x57a36a){const _0x9d1226=_0xebd828,_0x467690=this['_injector'][_0x9d1226(0x166)](_0x141f1b),_0x58b20f=this[_0x9d1226(0x16e)]['get'](_0x2921e4),_0x12ee96=_0x467690[_0x9d1226(0x16f)](this['_unitId'],this[_0x9d1226(0x170)],this[_0x9d1226(0x17b)]);if(!_0x12ee96)return;const _0x12b1b3={'config':_0x12ee96,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x9d1226(0x17b)],'resetType':_0x9d1226(0x15e),'sourceRanges':[_0x34d479],'targetRanges':[_0x57a36a],'primary':{'startRow':this['_row'],'startColumn':this[_0x9d1226(0x165)],'endRow':this[_0x9d1226(0x164)],'endColumn':this[_0x9d1226(0x165)],'actualRow':this[_0x9d1226(0x164)],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x58b20f[_0x9d1226(0x169)](_0x39f7f7['id'],_0x12b1b3),this['_row']=_0x57a36a['startRow'],this[_0x9d1226(0x165)]=_0x57a36a[_0x9d1226(0x16a)],this;}['removeSparkline'](){const _0x24871c=_0xebd828,_0x19330f=this[_0x24871c(0x16e)]['get'](_0x2921e4),_0x15abd5={'isSingle':!0x0,'ranges':[{'startRow':this[_0x24871c(0x164)],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this[_0x24871c(0x165)]}]};_0x19330f[_0x24871c(0x169)](_0x51f887['id'],_0x15abd5);}};C=H([V(0x5,_0x45a2bb(_0x50dce5))],C);function _0x121d(_0xe592be,_0x2d0abe){_0xe592be=_0xe592be-0x150;const _0x28723b=_0x2872();let _0x121d9b=_0x28723b[_0xe592be];return _0x121d9b;}var q=Object[_0xebd828(0x155)],J=(_0x4bb465,_0x43f3cf,_0x384706,_0xbc2b9e)=>{const _0x5d9385=_0xebd828;for(var _0x28baf7=_0xbc2b9e>0x1?void 0x0:_0xbc2b9e?q(_0x43f3cf,_0x384706):_0x43f3cf,_0x495e08=_0x4bb465[_0x5d9385(0x183)]-0x1,_0x1d2b54;_0x495e08>=0x0;_0x495e08--)(_0x1d2b54=_0x4bb465[_0x495e08])&&(_0x28baf7=_0x1d2b54(_0x28baf7)||_0x28baf7);return _0x28baf7;},K=(_0xc5be07,_0x1e8e3b)=>(_0xed9462,_0x5738a0)=>_0x1e8e3b(_0xed9462,_0x5738a0,_0xc5be07);function _0x2872(){const _0x29cf65=['_workbook','matrix','createInstance','_unitId','getOwnPropertyDescriptor','getActiveWorkbook','110718eDwDpL','composeSparkline','393166xclEjY','deepClone','ranges','94243myHBvS','map','item','65lCGIJc','getUnitId','SparklineTypeEnum','changeDataSource','_worksheet','_row','_col','get','3BmzNCR','Event','syncExecuteCommand','startColumn','executeCommand','isChangeDataSource','getCurrentSelections','_injector','getSparklineById','_subUnitId','_commandService','unComposeSparkline','range','addSparkline','_initialize','1489869VEiVzV','62979SvAvhC','from','35356THFGDv','SheetSparklineChanged','_groupId','onCommandExecuted','getValue','getSparkline','4280420SMhgjc','registerEventHandler','getSheetId','getSparklineByCell','length','extend','getId','setConfig','params','200TGpJwx','sparklineAnchorMap','add'];_0x2872=function(){return _0x29cf65;};return _0x2872();}let w=class{constructor(_0x30b3a9,_0x24eaaf,_0xfa7fa7,_0x42a1b7,_0x3126d4,_0x50a148){const _0x587a62=_0xebd828;this[_0x587a62(0x154)]=_0x30b3a9,this[_0x587a62(0x170)]=_0x24eaaf,this[_0x587a62(0x17b)]=_0xfa7fa7,this[_0x587a62(0x164)]=_0x42a1b7,this[_0x587a62(0x165)]=_0x3126d4,this['_injector']=_0x50a148;}[_0xebd828(0x162)](_0x39d195,_0x557b4f){const _0x29e29d=_0xebd828,_0x435447=this[_0x29e29d(0x16e)][_0x29e29d(0x166)](_0x141f1b),_0x4b5712=this['_injector'][_0x29e29d(0x166)](_0x2921e4),_0x63c4f4=_0x435447['getSparklineById'](this[_0x29e29d(0x154)],this['_subUnitId'],this[_0x29e29d(0x17b)]);if(!_0x63c4f4)return;const _0x4e0f45={'config':_0x63c4f4,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x29e29d(0x17b)],'resetType':'group','sourceRanges':_0x39d195,'targetRanges':_0x557b4f,'primary':{'startRow':this[_0x29e29d(0x164)],'startColumn':this[_0x29e29d(0x165)],'endRow':this[_0x29e29d(0x164)],'endColumn':this[_0x29e29d(0x165)],'actualRow':this[_0x29e29d(0x164)],'actualColumn':this[_0x29e29d(0x165)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x4b5712[_0x29e29d(0x169)](_0x39f7f7['id'],_0x4e0f45),this[_0x29e29d(0x164)]=_0x557b4f[0x0]['startRow'],this[_0x29e29d(0x165)]=_0x557b4f[0x0]['startColumn'],this;}['removeSparklineGroup'](){const _0x2b9494=_0xebd828,_0x55e854=this['_injector'][_0x2b9494(0x166)](_0x2921e4),_0x101db6={'isSingle':!0x1,'ranges':[{'startRow':this[_0x2b9494(0x164)],'startColumn':this[_0x2b9494(0x165)],'endRow':this['_row'],'endColumn':this[_0x2b9494(0x165)]}]};_0x55e854[_0x2b9494(0x169)](_0x51f887['id'],_0x101db6);}[_0xebd828(0x186)](_0x5873e3){const _0x46b0c7=_0xebd828,_0xcaa8c3=this[_0x46b0c7(0x16e)]['get'](_0x141f1b)[_0x46b0c7(0x16f)](this['_unitId'],this['_subUnitId'],this[_0x46b0c7(0x17b)]);if(_0xcaa8c3){const _0x4231ed={'config':{'config':_0x5873e3,'sparklines':_0xcaa8c3['sparklines']},'isChangeDataSource':!0x1};this[_0x46b0c7(0x16e)]['get'](_0x2921e4)[_0x46b0c7(0x169)](_0x39f7f7['id'],_0x4231ed);}return this;}};w=J([K(0x5,_0x45a2bb(_0x50dce5))],w);class L extends _0x1ba7b0{[_0xebd828(0x174)](_0x337f14,_0x6eb61,_0x2619c2){const _0x35a7b3=_0xebd828;if(this[_0x35a7b3(0x171)][_0x35a7b3(0x169)](_0x2b595f['id'],{'sourceRanges':_0x337f14,'targetRanges':_0x6eb61,'targetInfo':{'unitId':this[_0x35a7b3(0x151)][_0x35a7b3(0x160)](),'subUnitId':this[_0x35a7b3(0x163)][_0x35a7b3(0x181)]()},'config':{'type':_0x2619c2}})){const {startRow:_0x2886ff,startColumn:_0x4df842}=_0x6eb61[0x0];return this[_0x35a7b3(0x182)](_0x2886ff,_0x4df842);}}['getAllSubSparkline'](){const _0x458b50=_0xebd828;return this[_0x458b50(0x16e)][_0x458b50(0x166)](_0x141f1b)['getSubUnitSparkline'](this[_0x458b50(0x151)][_0x458b50(0x160)](),this[_0x458b50(0x163)][_0x458b50(0x181)]());}[_0xebd828(0x158)](_0x5b15da){const _0xa0850c=_0xebd828,_0x557c9f=this['_injector'][_0xa0850c(0x166)](_0x141f1b);let _0x562f4d;for(let _0x314860=0x0;_0x314860<_0x5b15da[_0xa0850c(0x183)];_0x314860++){const _0x2c804f=_0x5b15da[_0x314860],{startRow:_0x56b1bb,endRow:_0xdc9637,startColumn:_0x181c11,endColumn:_0x5d7a21}=_0x2c804f;for(let _0x8e58ce=_0x56b1bb;_0x8e58ce<=_0xdc9637;_0x8e58ce++)for(let _0x4b891a=_0x181c11;_0x4b891a<=_0x5d7a21;_0x4b891a++){const _0x1e7c9b=_0x557c9f[_0xa0850c(0x17e)](this[_0xa0850c(0x151)][_0xa0850c(0x160)](),this['_worksheet'][_0xa0850c(0x181)](),_0x8e58ce,_0x4b891a);if(_0x1e7c9b){const _0x8b3e46=_0x557c9f['getSparklineById'](this[_0xa0850c(0x151)][_0xa0850c(0x160)](),this[_0xa0850c(0x163)][_0xa0850c(0x181)](),_0x1e7c9b);if(_0x8b3e46){_0x562f4d=_0x2291ec['deepClone'](_0x8b3e46);break;}}}}_0x562f4d&&this[_0xa0850c(0x171)][_0xa0850c(0x16b)](_0x39f7f7['id'],{'ranges':_0x5b15da,'combine':!0x0,'config':_0x562f4d,'isChangeDataSource':!0x1});}[_0xebd828(0x172)](_0x48911a){const _0x3741ca=_0xebd828,_0x29cab8=this[_0x3741ca(0x16e)][_0x3741ca(0x166)](_0x141f1b);let _0x444c15;for(let _0x5b2c6b=0x0;_0x5b2c6b<_0x48911a['length'];_0x5b2c6b++){const _0x317437=_0x48911a[_0x5b2c6b],{startRow:_0x3e3249,endRow:_0xac08f5,startColumn:_0x10c4db,endColumn:_0xade19e}=_0x317437;for(let _0x3e1ff1=_0x3e3249;_0x3e1ff1<=_0xac08f5;_0x3e1ff1++)for(let _0x491fff=_0x10c4db;_0x491fff<=_0xade19e;_0x491fff++){const _0x468de1=_0x29cab8[_0x3741ca(0x17e)](this[_0x3741ca(0x151)][_0x3741ca(0x160)](),this[_0x3741ca(0x163)][_0x3741ca(0x181)](),_0x3e1ff1,_0x491fff);if(_0x468de1){const _0x59b7f5=_0x29cab8[_0x3741ca(0x16f)](this['_workbook'][_0x3741ca(0x160)](),this[_0x3741ca(0x163)][_0x3741ca(0x181)](),_0x468de1);if(_0x59b7f5){_0x444c15=_0x2291ec[_0x3741ca(0x15a)](_0x59b7f5);break;}}}}_0x444c15||this[_0x3741ca(0x171)][_0x3741ca(0x16b)](_0x39f7f7['id'],{'ranges':_0x48911a,'unCombine':!0x0,'config':_0x444c15,'isChangeDataSource':!0x1});}[_0xebd828(0x182)](_0x12d0c4,_0x5688e2){const _0x10ca14=_0xebd828,_0x1f54ad=this[_0x10ca14(0x16e)][_0x10ca14(0x166)](_0x141f1b),_0x3f2094=this['_workbook']['getUnitId'](),_0x652d10=this[_0x10ca14(0x163)]['getSheetId'](),_0x1fe7b2=_0x1f54ad[_0x10ca14(0x17e)](_0x3f2094,_0x652d10,_0x12d0c4,_0x5688e2);if(_0x1fe7b2)return this[_0x10ca14(0x16e)][_0x10ca14(0x153)](C,_0x3f2094,_0x652d10,_0x1fe7b2,_0x12d0c4,_0x5688e2);}['getSparklineGroupByCell'](_0xd404da,_0x44aae8){const _0x2f7399=_0xebd828,_0x53c623=this[_0x2f7399(0x16e)]['get'](_0x141f1b),_0x359f0=this[_0x2f7399(0x151)][_0x2f7399(0x160)](),_0x4917c9=this[_0x2f7399(0x163)][_0x2f7399(0x181)](),_0x408c7c=_0x53c623[_0x2f7399(0x17e)](_0x359f0,_0x4917c9,_0xd404da,_0x44aae8);if(_0x408c7c)return this[_0x2f7399(0x16e)][_0x2f7399(0x153)](w,_0x359f0,_0x4917c9,_0x408c7c,_0xd404da,_0x44aae8);}}_0x1ba7b0[_0xebd828(0x184)](L);class Q extends _0xe767f4{get[_0xebd828(0x161)](){return _0x1a6534;}}_0xe767f4[_0xebd828(0x184)](Q);class X extends _0x30fcff{get[_0xebd828(0x17a)](){return'SheetSparklineChanged';}}_0x30fcff['extend'](X);class Y extends _0x534210{[_0xebd828(0x175)](_0x569d44){const _0x29d5cd=_0xebd828,_0x4eb012=_0x569d44[_0x29d5cd(0x166)](_0x2921e4);this[_0x29d5cd(0x180)](this[_0x29d5cd(0x168)]['SheetSparklineChanged'],()=>_0x4eb012[_0x29d5cd(0x17c)](_0x5574db=>{const _0x1608b6=_0x29d5cd;var _0x18324c,_0x1f2b8a;if(_0x5574db['id']===_0x39f7f7['id']){const _0x378f01=_0x5574db[_0x1608b6(0x187)];if(!_0x378f01[_0x1608b6(0x16c)]){const _0x42335f=this[_0x1608b6(0x156)](),_0x425130=_0x42335f==null?void 0x0:_0x42335f['getActiveSheet']();if(!_0x42335f||!_0x425130)return;const _0x39740a=_0x42335f[_0x1608b6(0x185)](),_0x20e8c3=_0x425130['getSheetId'](),_0x5dbb74=this[_0x1608b6(0x16e)][_0x1608b6(0x166)](_0x502354),_0x5ec6bc=this['_injector'][_0x1608b6(0x166)](_0x141f1b),_0x58bf0c=(_0x18324c=_0x378f01==null?void 0x0:_0x378f01[_0x1608b6(0x15b)])!=null?_0x18324c:_0x5dbb74[_0x1608b6(0x16d)]()[_0x1608b6(0x15d)](_0x5b337a=>_0x5b337a[_0x1608b6(0x173)]),_0x1b55e2=(_0x1f2b8a=_0x5ec6bc['getSparklineCache']()[_0x1608b6(0x189)]['get'](_0x39740a))==null?void 0x0:_0x1f2b8a['get'](_0x20e8c3),_0x562f9b=new Set();_0x58bf0c['forEach'](_0x4f0d2a=>{const _0x3e624f=_0x1608b6;var _0x34b3a1;const {startRow:_0x2295da,endRow:_0x4a2339,startColumn:_0x945b05,endColumn:_0x6b7ab0}=_0x4f0d2a;for(let _0x2650a2=_0x2295da;_0x2650a2<=_0x4a2339;_0x2650a2++)for(let _0x41094f=_0x945b05;_0x41094f<=_0x6b7ab0;_0x41094f++){const _0x572427=(_0x34b3a1=_0x1b55e2==null?void 0x0:_0x1b55e2[_0x3e624f(0x152)][_0x3e624f(0x17d)](_0x2650a2,_0x41094f))==null?void 0x0:_0x34b3a1['groupId'];_0x572427&&_0x562f9b[_0x3e624f(0x150)](_0x572427);}});const _0x407a16=Array[_0x1608b6(0x178)](_0x562f9b)[_0x1608b6(0x15d)](_0x1e7697=>_0x5ec6bc[_0x1608b6(0x16f)](_0x39740a,_0x20e8c3,_0x1e7697))['filter'](_0x1c6d3c=>!!_0x1c6d3c),_0x2f4dd7={'workbook':_0x42335f,'worksheet':_0x425130,'sparklines':_0x407a16};if(this['fireEvent'](this[_0x1608b6(0x168)][_0x1608b6(0x17a)],_0x2f4dd7),_0x2f4dd7['cancel'])throw new Error('Sheet\x20create\x20canceled\x20by\x20facade\x20api.');}}}));}}_0x534210[_0xebd828(0x184)](Y);export{C as FSparkline,w as FSparklineGroup};
|