@univerjs-pro/sheets-outline 1.0.0-alpha.0 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4ef9(){var _0x2660d7=['DimensionOutlineErrorReason','syncExecuteCommand','getDimensionOutlines','setDimensionOutlineCollapsed','FEnum','_workbook','clearDimensionOutlines','150qZzSnf','getUnitId','SheetsOutlineModel','_commandService','DimensionOutlineAxis','_injector','SetDimensionOutlineCollapsedCommand','_addDimensionOutline','312vKtEQx','210717rODZGO','removeDimensionOutline','RemoveDimensionOutlineCommand','get','45388xrPcoR','ROW','AddDimensionOutlineCommand','getSheetId','_worksheet','COLUMN','ClearDimensionOutlinesCommand','getOutlines','36506780XnhlBc','axis','3736704FpZLIt','filter','11333ggqwVG','5860310KKAEZL','extend','FWorksheet','5008168ezpznx','22wZNRPj'];_0x4ef9=function(){return _0x2660d7;};return _0x4ef9();}var _0x3bc721=_0x471a;function _0x471a(_0x4679bf,_0x395f1d){_0x4679bf=_0x4679bf-0x101;var _0x4ef9fe=_0x4ef9();var _0x471ab7=_0x4ef9fe[_0x4679bf];return _0x471ab7;}(function(_0x3c8382,_0xccc7dc){var _0x518135=_0x471a,_0x27db88=_0x3c8382();while(!![]){try{var _0x122771=-parseInt(_0x518135(0x11e))/0x1*(parseInt(_0x518135(0x123))/0x2)+parseInt(_0x518135(0x11c))/0x3+parseInt(_0x518135(0x122))/0x4+parseInt(_0x518135(0x11f))/0x5+parseInt(_0x518135(0x105))/0x6*(-parseInt(_0x518135(0x112))/0x7)+-parseInt(_0x518135(0x10d))/0x8*(-parseInt(_0x518135(0x10e))/0x9)+-parseInt(_0x518135(0x11a))/0xa;if(_0x122771===_0xccc7dc)break;else _0x27db88['push'](_0x27db88['shift']());}catch(_0x4f85b7){_0x27db88['push'](_0x27db88['shift']());}}}(_0x4ef9,0x9d8da));let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');var r=class extends t[_0x3bc721(0x102)]{get[_0x3bc721(0x109)](){var _0x53acde=_0x3bc721;return e[_0x53acde(0x109)];}get[_0x3bc721(0x124)](){return e['DimensionOutlineErrorReason'];}};t[_0x3bc721(0x102)]['extend'](r);var i=class extends n['FWorksheet']{['addRowOutline'](_0x4cad81,_0x307a7c){var _0x31f445=_0x3bc721;return this['_addDimensionOutline'](e[_0x31f445(0x109)][_0x31f445(0x113)],_0x4cad81,_0x307a7c);}['addColumnOutline'](_0x21f2b1,_0x17efab){var _0x5dba3d=_0x3bc721;return this[_0x5dba3d(0x10c)](e['DimensionOutlineAxis'][_0x5dba3d(0x117)],_0x21f2b1,_0x17efab);}[_0x3bc721(0x10f)](_0x502a12){var _0x1e2ba6=_0x3bc721;return this['_commandService'][_0x1e2ba6(0x125)](e[_0x1e2ba6(0x110)]['id'],{'unitId':this[_0x1e2ba6(0x103)][_0x1e2ba6(0x106)](),'subUnitId':this['_worksheet'][_0x1e2ba6(0x115)](),'outlineId':_0x502a12}),this;}[_0x3bc721(0x101)](_0x404a34,_0x17df6c){var _0x373873=_0x3bc721;return this[_0x373873(0x108)]['syncExecuteCommand'](e[_0x373873(0x10b)]['id'],{'unitId':this[_0x373873(0x103)][_0x373873(0x106)](),'subUnitId':this[_0x373873(0x116)]['getSheetId'](),'outlineId':_0x404a34,'collapsed':_0x17df6c}),this;}[_0x3bc721(0x104)](_0x273089,_0x5d306b,_0x243e2f){var _0x42e3dc=_0x3bc721;return this[_0x42e3dc(0x108)][_0x42e3dc(0x125)](e[_0x42e3dc(0x118)]['id'],{'unitId':this[_0x42e3dc(0x103)]['getUnitId'](),'subUnitId':this[_0x42e3dc(0x116)][_0x42e3dc(0x115)](),'axis':_0x273089,'start':_0x5d306b,'end':_0x243e2f}),this;}[_0x3bc721(0x126)](_0x17194f){var _0x438c01=_0x3bc721;let _0x4f29d3=this[_0x438c01(0x10a)][_0x438c01(0x111)](e[_0x438c01(0x107)])[_0x438c01(0x119)](this[_0x438c01(0x103)]['getUnitId'](),this['_worksheet'][_0x438c01(0x115)]());return _0x17194f?_0x4f29d3[_0x438c01(0x11d)](_0x55b911=>_0x55b911[_0x438c01(0x11b)]===_0x17194f):_0x4f29d3;}['_addDimensionOutline'](_0x382f8f,_0x69b56a,_0x322611){var _0x4f3c6a=_0x3bc721;return this[_0x4f3c6a(0x108)][_0x4f3c6a(0x125)](e[_0x4f3c6a(0x114)]['id'],{'unitId':this[_0x4f3c6a(0x103)][_0x4f3c6a(0x106)](),'subUnitId':this[_0x4f3c6a(0x116)][_0x4f3c6a(0x115)](),'axis':_0x382f8f,'start':_0x69b56a,'end':_0x69b56a+_0x322611-0x1}),this;}};n[_0x3bc721(0x121)][_0x3bc721(0x120)](i);
1
+ var _0x580c8b=_0x78d2;function _0x78d2(_0x451500,_0x41b286){_0x451500=_0x451500-0x11c;var _0x4bf255=_0x4bf2();var _0x78d240=_0x4bf255[_0x451500];return _0x78d240;}(function(_0x34cb9e,_0x24eaab){var _0x536ff7=_0x78d2,_0x4ef35f=_0x34cb9e();while(!![]){try{var _0x3c309e=parseInt(_0x536ff7(0x11c))/0x1+parseInt(_0x536ff7(0x12b))/0x2+parseInt(_0x536ff7(0x124))/0x3*(-parseInt(_0x536ff7(0x12c))/0x4)+-parseInt(_0x536ff7(0x123))/0x5*(parseInt(_0x536ff7(0x13d))/0x6)+-parseInt(_0x536ff7(0x12e))/0x7*(-parseInt(_0x536ff7(0x128))/0x8)+parseInt(_0x536ff7(0x127))/0x9*(-parseInt(_0x536ff7(0x121))/0xa)+parseInt(_0x536ff7(0x125))/0xb;if(_0x3c309e===_0x24eaab)break;else _0x4ef35f['push'](_0x4ef35f['shift']());}catch(_0x1b2efc){_0x4ef35f['push'](_0x4ef35f['shift']());}}}(_0x4bf2,0xe8969));let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');var r=class extends t[_0x580c8b(0x139)]{get[_0x580c8b(0x11f)](){return e['DimensionOutlineAxis'];}get[_0x580c8b(0x135)](){var _0x373ac0=_0x580c8b;return e[_0x373ac0(0x135)];}};t[_0x580c8b(0x139)][_0x580c8b(0x136)](r);var i=class extends n[_0x580c8b(0x13a)]{['addRowOutline'](_0x2230de,_0x592ec2){var _0x5ebe57=_0x580c8b;return this[_0x5ebe57(0x130)](e[_0x5ebe57(0x11f)][_0x5ebe57(0x11e)],_0x2230de,_0x592ec2);}['addColumnOutline'](_0x53ab4d,_0x3ae298){var _0x3e809c=_0x580c8b;return this[_0x3e809c(0x130)](e[_0x3e809c(0x11f)][_0x3e809c(0x13c)],_0x53ab4d,_0x3ae298);}[_0x580c8b(0x126)](_0x52d5ed){var _0x4e45a0=_0x580c8b;return this[_0x4e45a0(0x120)]['syncExecuteCommand'](e[_0x4e45a0(0x137)]['id'],{'unitId':this[_0x4e45a0(0x132)][_0x4e45a0(0x134)](),'subUnitId':this['_worksheet'][_0x4e45a0(0x122)](),'outlineId':_0x52d5ed}),this;}[_0x580c8b(0x11d)](_0x48087c,_0x221dc2){var _0x23d835=_0x580c8b;return this[_0x23d835(0x120)][_0x23d835(0x12f)](e['SetDimensionOutlineCollapsedCommand']['id'],{'unitId':this[_0x23d835(0x132)][_0x23d835(0x134)](),'subUnitId':this['_worksheet'][_0x23d835(0x122)](),'outlineId':_0x48087c,'collapsed':_0x221dc2}),this;}[_0x580c8b(0x12a)](_0xfa6f7c,_0x54214b,_0x4a7156){var _0xbfc141=_0x580c8b;return this['_commandService']['syncExecuteCommand'](e[_0xbfc141(0x133)]['id'],{'unitId':this['_workbook'][_0xbfc141(0x134)](),'subUnitId':this[_0xbfc141(0x131)][_0xbfc141(0x122)](),'axis':_0xfa6f7c,'start':_0x54214b,'end':_0x4a7156}),this;}['getDimensionOutlines'](_0x4ea50a){var _0x1a7af2=_0x580c8b;let _0x3a5fdd=this[_0x1a7af2(0x12d)][_0x1a7af2(0x138)](e['SheetsOutlineModel'])['getOutlines'](this[_0x1a7af2(0x132)][_0x1a7af2(0x134)](),this[_0x1a7af2(0x131)][_0x1a7af2(0x122)]());return _0x4ea50a?_0x3a5fdd['filter'](_0x42fb6f=>_0x42fb6f[_0x1a7af2(0x13b)]===_0x4ea50a):_0x3a5fdd;}[_0x580c8b(0x130)](_0x2747d2,_0x55cd78,_0x161ff0){var _0x23dccd=_0x580c8b;return this['_commandService']['syncExecuteCommand'](e[_0x23dccd(0x129)]['id'],{'unitId':this['_workbook'][_0x23dccd(0x134)](),'subUnitId':this[_0x23dccd(0x131)][_0x23dccd(0x122)](),'axis':_0x2747d2,'start':_0x55cd78,'end':_0x55cd78+_0x161ff0-0x1}),this;}};function _0x4bf2(){var _0x54c51e=['RemoveDimensionOutlineCommand','get','FEnum','FWorksheet','axis','COLUMN','7832658hUNsKO','910442SJFLFk','setDimensionOutlineCollapsed','ROW','DimensionOutlineAxis','_commandService','34170miGVsq','getSheetId','5ImpNub','794187wJmYrH','949564SnBjvj','removeDimensionOutline','2871kkCnos','8rJmBhF','AddDimensionOutlineCommand','clearDimensionOutlines','2433182tSenao','4xXRHFQ','_injector','9796633AlccvW','syncExecuteCommand','_addDimensionOutline','_worksheet','_workbook','ClearDimensionOutlinesCommand','getUnitId','DimensionOutlineErrorReason','extend'];_0x4bf2=function(){return _0x54c51e;};return _0x4bf2();}n[_0x580c8b(0x13a)][_0x580c8b(0x136)](i);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3f51cc=_0x3fb5;(function(_0x1b5b2e,_0x8a645){const _0x1adae1=_0x3fb5,_0x508be7=_0x1b5b2e();while(!![]){try{const _0x29962f=-parseInt(_0x1adae1(0xbe))/0x1*(-parseInt(_0x1adae1(0x7b))/0x2)+-parseInt(_0x1adae1(0x80))/0x3+-parseInt(_0x1adae1(0xb8))/0x4+parseInt(_0x1adae1(0x138))/0x5+parseInt(_0x1adae1(0xa1))/0x6*(-parseInt(_0x1adae1(0x6a))/0x7)+-parseInt(_0x1adae1(0xd2))/0x8*(-parseInt(_0x1adae1(0xee))/0x9)+parseInt(_0x1adae1(0xb0))/0xa;if(_0x29962f===_0x8a645)break;else _0x508be7['push'](_0x508be7['shift']());}catch(_0x1dda0f){_0x508be7['push'](_0x508be7['shift']());}}}(_0x5876,0x7794e),Object[_0x3f51cc(0x9f)](exports,Symbol['toStringTag'],{'value':_0x3f51cc(0x7d)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x3ffae5){const _0x342cac=_0x3f51cc;return _0x3ffae5[_0x342cac(0x134)]=_0x342cac(0x82),_0x3ffae5[_0x342cac(0xc8)]='column',_0x3ffae5;}({}),o=function(_0x190330){const _0x268174=_0x3f51cc;return _0x190330[_0x268174(0x9e)]=_0x268174(0x74),_0x190330[_0x268174(0xa5)]=_0x268174(0x118),_0x190330[_0x268174(0xb2)]='crossing',_0x190330['MAX_DEPTH']='max-depth',_0x190330['MOVE_SPLITS_OUTLINE']=_0x268174(0xae),_0x190330[_0x268174(0xdc)]='clear-range-not-contain-outline',_0x190330['UNKNOWN']=_0x268174(0xc4),_0x190330;}({});var s=class extends Error{constructor(_0x321953,_0x5c75b4,_0x13b60a){const _0x2b51e8=_0x3f51cc;super(_0x5c75b4),this[_0x2b51e8(0x131)]=_0x321953,this[_0x2b51e8(0x107)]=_0x13b60a,this[_0x2b51e8(0x120)]=_0x2b51e8(0xfb);}};function c(_0x800dfc){const _0x128286=_0x3f51cc;return _0x800dfc instanceof s?_0x800dfc[_0x128286(0x131)]:_0x800dfc instanceof Error?_0x800dfc[_0x128286(0x68)][_0x128286(0xe3)](_0x128286(0x113))?_0x128286(0xae):_0x800dfc[_0x128286(0x68)][_0x128286(0xe3)](_0x128286(0xa8))?'max-depth':_0x800dfc[_0x128286(0x68)][_0x128286(0xe3)]('Crossing')?'crossing':_0x800dfc[_0x128286(0x68)][_0x128286(0xe3)](_0x128286(0xd1))?'invalid-range':_0x128286(0xc4):_0x128286(0xc4);}function l(_0x31ac86){return _0x31ac86 instanceof s?_0x31ac86['outlineId']:void 0x0;}const u=0x2**0x35-0x1;function _0x3fb5(_0x861112,_0x27e1e6){_0x861112=_0x861112-0x68;const _0x587604=_0x5876();let _0x3fb58e=_0x587604[_0x861112];return _0x3fb58e;}function d(_0x1882e5,_0x158073){const _0x1e268b=_0x3f51cc;return _0x1882e5['unitId']===_0x158073[_0x1e268b(0xf4)]&&_0x1882e5['subUnitId']===_0x158073['subUnitId']&&_0x1882e5[_0x1e268b(0x6d)]===_0x158073[_0x1e268b(0x6d)];}function f(_0xc35627,_0x24afbf={}){const _0x2cbfd4=_0x3f51cc;var _0x551cab;let _0x56a12e=(_0x551cab=_0x24afbf[_0x2cbfd4(0xc9)])==null?0x8:_0x551cab,_0x40842c=new Map();for(let _0x501547 of _0xc35627){let _0x198b9c=_0x501547[_0x2cbfd4(0xf4)]+':'+_0x501547[_0x2cbfd4(0x13b)]+':'+_0x501547['axis'],_0x4ed5d9=_0x40842c[_0x2cbfd4(0x109)](_0x198b9c);_0x4ed5d9?_0x4ed5d9[_0x2cbfd4(0x10d)](_0x501547):_0x40842c[_0x2cbfd4(0xa2)](_0x198b9c,[_0x501547]);}let _0xcae375=[];for(let _0x3100e6 of _0x40842c[_0x2cbfd4(0xde)]()){let _0x2054ba=[..._0x3100e6]['sort'](C),_0x27633b=[];for(let _0x4006e7 of _0x2054ba){for(oe(_0x4006e7);_0x27633b[_0x2cbfd4(0x129)]>0x0&&_0x4006e7[_0x2cbfd4(0xdb)]>_0x27633b[_0x27633b[_0x2cbfd4(0x129)]-0x1]['end'];)_0x27633b[_0x2cbfd4(0x78)]();let _0x3dfe08=_0x27633b[_0x27633b[_0x2cbfd4(0x129)]-0x1];if(_0x3dfe08&&_0x4006e7[_0x2cbfd4(0x77)]>_0x3dfe08['end'])throw new s(_0x2cbfd4(0xff),_0x2cbfd4(0x139),_0x4006e7['id']);let _0x33e780=_0x3dfe08?_0x3dfe08['depth']+0x1:0x1;if(_0x33e780>_0x56a12e)throw new s('max-depth',_0x2cbfd4(0x13a)+_0x56a12e,_0x4006e7['id']);let _0x5acd01={..._0x4006e7,'depth':_0x33e780,'parentId':_0x3dfe08==null?void 0x0:_0x3dfe08['id'],'anchor':_0x4006e7[_0x2cbfd4(0x77)],'children':[]};_0x3dfe08?_0x3dfe08[_0x2cbfd4(0xf5)][_0x2cbfd4(0x10d)](_0x5acd01):_0xcae375['push'](_0x5acd01),_0x27633b['push'](_0x5acd01);}}return _0xcae375;}function p(_0x254038,_0x3f4e33,_0x375d2d={}){const _0x8ecda0=_0x3f51cc;if(_0x3f4e33[_0x8ecda0(0xdb)]<0x0||_0x3f4e33['start']>_0x3f4e33[_0x8ecda0(0x77)])return{'valid':!0x1,'reason':_0x8ecda0(0x74)};if(_0x375d2d[_0x8ecda0(0x117)]!=null&&_0x3f4e33[_0x8ecda0(0x77)]>=_0x375d2d[_0x8ecda0(0x117)])return{'valid':!0x1,'reason':_0x8ecda0(0x118)};let _0x1e7c92=_0x254038['filter'](_0x2d34c5=>d(_0x2d34c5,_0x3f4e33));for(let _0x1b4771 of _0x1e7c92)if(se(_0x1b4771,_0x3f4e33))return{'valid':!0x1,'reason':_0x8ecda0(0xff)};try{f([..._0x254038,_0x3f4e33],_0x375d2d);}catch(_0x572b33){let _0x334b0d=c(_0x572b33);return _0x334b0d===_0x8ecda0(0xd6)?{'valid':!0x1,'reason':_0x8ecda0(0xd6)}:_0x334b0d===_0x8ecda0(0x74)?{'valid':!0x1,'reason':_0x8ecda0(0x74)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function m(_0x2d3db,_0x16c7f9,_0x1ae325={}){const _0x741274=_0x3f51cc;let _0x41873c=p(_0x2d3db,_0x16c7f9,_0x1ae325);if(!_0x41873c[_0x741274(0x104)]){var _0x2d58ae;throw Error((_0x2d58ae=_0x41873c[_0x741274(0x131)])==null?'invalid-dimension-outline':_0x2d58ae);}return[..._0x2d3db,_0x16c7f9];}function ee(_0x389a3a,_0x15254f){const _0x208a67=_0x3f51cc;let _0x2c706e=_0x15254f[_0x208a67(0xdb)],_0x474c83=_0x15254f[_0x208a67(0x77)],_0x432b5c=[],_0x5b451e=!0x0;for(;_0x5b451e;){_0x5b451e=!0x1;for(let _0x18305b of _0x389a3a)_0x432b5c[_0x208a67(0xe3)](_0x18305b)||!d(_0x18305b,_0x15254f)||!ie(_0x18305b[_0x208a67(0xdb)],_0x18305b[_0x208a67(0x77)],_0x2c706e,_0x474c83)||(_0x432b5c['push'](_0x18305b),_0x2c706e=Math[_0x208a67(0x119)](_0x2c706e,_0x18305b[_0x208a67(0xdb)]),_0x474c83=Math[_0x208a67(0x128)](_0x474c83,_0x18305b['end']),_0x5b451e=!0x0);}if(_0x432b5c['length']===0x0)return null;let [_0xa7f3c3]=[..._0x432b5c][_0x208a67(0xc7)](C);return{'mergedOutline':{..._0xa7f3c3,'start':_0x2c706e,'end':_0x474c83},'mergedOutlines':_0x432b5c};}function h(_0x115058,_0x4febe5){const _0x393c97=_0x3f51cc;return _0x115058[_0x393c97(0x110)](_0x27e630=>d(_0x27e630,_0x4febe5)?!(_0x27e630['start']>=_0x4febe5['start']&&_0x27e630[_0x393c97(0x77)]<=_0x4febe5[_0x393c97(0x77)]):!0x0);}function g(_0xff457c,_0x94c45c,_0x4b6ce7,_0x3b911b){const _0x160827=_0x3f51cc;return _(_0xff457c[_0x160827(0x110)](_0x26613a=>_0x26613a[_0x160827(0xf4)]===_0x94c45c&&_0x26613a[_0x160827(0x13b)]===_0x4b6ce7&&_0x26613a[_0x160827(0x6d)]===_0x3b911b&&_0x26613a[_0x160827(0xb5)])[_0x160827(0x8c)](_0x29a8d7=>({'start':_0x29a8d7[_0x160827(0xdb)],'end':_0x29a8d7[_0x160827(0x77)]})));}function _(_0x7fbb6){const _0x431de7=_0x3f51cc;if(_0x7fbb6['length']===0x0)return[];let _0x320b48=[..._0x7fbb6][_0x431de7(0xc7)]((_0x52986e,_0x3b2058)=>_0x52986e[_0x431de7(0xdb)]-_0x3b2058[_0x431de7(0xdb)]||_0x52986e['end']-_0x3b2058[_0x431de7(0x77)]),_0x5e177f=[];for(let _0x18e2b1 of _0x320b48){let _0x23fb49=_0x5e177f[_0x5e177f[_0x431de7(0x129)]-0x1];!_0x23fb49||_0x18e2b1[_0x431de7(0xdb)]>_0x23fb49[_0x431de7(0x77)]+0x1?_0x5e177f['push']({..._0x18e2b1}):_0x23fb49['end']=Math[_0x431de7(0x128)](_0x23fb49[_0x431de7(0x77)],_0x18e2b1[_0x431de7(0x77)]);}return _0x5e177f;}function v(_0x2f190b,_0x3f0ff9){const _0x150d08=_0x3f51cc;return _0x3f0ff9['count']<=0x0?_0x2f190b:S(_0x2f190b[_0x150d08(0x8c)](_0x555a07=>d(_0x555a07,_0x3f0ff9)?_0x3f0ff9[_0x150d08(0x85)]<=_0x555a07[_0x150d08(0xdb)]?{..._0x555a07,'start':_0x555a07[_0x150d08(0xdb)]+_0x3f0ff9[_0x150d08(0xfa)],'end':_0x555a07[_0x150d08(0x77)]+_0x3f0ff9[_0x150d08(0xfa)]}:_0x555a07[_0x150d08(0xdb)]<_0x3f0ff9[_0x150d08(0x85)]&&_0x3f0ff9[_0x150d08(0x85)]<=_0x555a07['end']?{..._0x555a07,'end':_0x555a07['end']+_0x3f0ff9[_0x150d08(0xfa)]}:_0x555a07:_0x555a07));}function y(_0x2ccd4f,_0x2b535f){const _0xd117a0=_0x3f51cc;if(_0x2b535f[_0xd117a0(0xdb)]>_0x2b535f[_0xd117a0(0x77)])return _0x2ccd4f;let _0x318f0d=_0x2b535f[_0xd117a0(0x77)]-_0x2b535f[_0xd117a0(0xdb)]+0x1,_0x1fc0ee=[];for(let _0x5980d4 of _0x2ccd4f){if(!d(_0x5980d4,_0x2b535f)){_0x1fc0ee[_0xd117a0(0x10d)](_0x5980d4);continue;}if(_0x5980d4['end']<_0x2b535f[_0xd117a0(0xdb)]){_0x1fc0ee['push'](_0x5980d4);continue;}if(_0x5980d4['start']>_0x2b535f['end']){_0x1fc0ee[_0xd117a0(0x10d)]({..._0x5980d4,'start':_0x5980d4[_0xd117a0(0xdb)]-_0x318f0d,'end':_0x5980d4[_0xd117a0(0x77)]-_0x318f0d});continue;}let _0x512edf=Math['max'](_0x5980d4['start'],_0x2b535f[_0xd117a0(0xdb)]),_0x38c7eb=Math[_0xd117a0(0x119)](_0x5980d4[_0xd117a0(0x77)],_0x2b535f[_0xd117a0(0x77)]),_0x5a59c9=Math[_0xd117a0(0x128)](0x0,_0x38c7eb-_0x512edf+0x1),_0x2fbdbb=_0x5980d4[_0xd117a0(0x77)]-_0x5980d4['start']+0x1-_0x5a59c9;if(_0x2fbdbb<=0x0)continue;let _0x16a9fc=_0x5980d4[_0xd117a0(0xdb)]<_0x2b535f['start']?_0x5980d4[_0xd117a0(0xdb)]:_0x2b535f[_0xd117a0(0xdb)];_0x1fc0ee[_0xd117a0(0x10d)]({..._0x5980d4,'start':_0x16a9fc,'end':_0x16a9fc+_0x2fbdbb-0x1});}return S(_0x1fc0ee);}function _0x5876(){const _0x586c5c=['_error$','SetRowVisibleMutation','version','SHEETS_OUTLINE_PLUGIN_CONFIG_KEY','string','params','some','entries','INVALID_RANGE','defineProperty','InsertRowCommand','6gkArez','set','localeCompare','UNIVER_SHEET','OUT_OF_BOUNDS','SetColVisibleMutation','outlineList','depth','object','sheet.command.clear-dimension-outlines','DependentOn','IUndoRedoService','DimensionOutlineAxis','move-splits-outline','SheetInterceptorService','9033330nuNRap','getActiveSheet','CROSSING','getRowCount','SheetsOutlineModel','collapsed','WorksheetViewPermission','clear','2287812LvGtnq','redos','MoveColsCommand','IResourceManagerService','RemoveDimensionOutlineMutation','sheet.mutation.set-dimension-outline-collapsed','195417PVnkpT','preUndos','Move\x20would\x20split\x20dimension\x20outline:\x20','setOutlines','_change$','function','unknown','sheet.mutation.transform-dimension-outlines','result','sort','COLUMN','maxDepth','mergedOutlines','clear-range-not-contain-outline','_ensureUnitOutlines','offset','getOutlines','IPermissionService','SHEET_OUTLINE_PLUGIN','range','64hijMem','sheet.mutation.add-dimension-outline','RemoveColCommand','pushUndoRedo','max-depth','delete','onStarting','permissionCheckWithoutRange','asObservable','start','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','getColumnCount','values','dispose','from','endRow','mergedOutline','includes','_resourceManagerService','restoreOutlines','getSheetBySheetId','sourceStart','_sheetsOutlineModel','_sheetInterceptorService','MoveRowsCommand','sequenceExecute','registerCommand','outline','312129yZHepn','SetDimensionOutlineCollapsedMutation','endColumn','insert','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','add','unitId','children','clearDimensionOutlinesInRange','AddDimensionOutlineCommand','getUnitOutlines','Subject','count','DimensionOutlineError','forEach','serialize','split','crossing','getOwnPropertyDescriptor','Plugin','Disposable','pluginName','valid','startRow','sheet.mutation.remove-dimension-outline','outlineId','has','get','deserialize','_initResource','_getCommandScope','push','packageName','ClearDimensionOutlinesCommand','filter','Invalid\x20dimension\x20outline\x20mutation','ICommandService','split\x20dimension\x20outline','SetRowHiddenMutation','SheetsOutlineErrorService','type','maxIndex','out-of-bounds','min','error$','_univerInstanceService','sheet.command.add-dimension-outline','getUniverSheetInstance','getDimensionOutlineErrorOutlineId','symbol','name','startColumn','CommandType','Inject','IUniverInstanceService','TransformDimensionOutlinesMutation','_injector','transformOutlinesByInsert','max','length','sheet.command.remove-dimension-outline','UniverInstanceType','removeUnit','destinationIndex','getSheetId','Invalid\x20dimension\x20outline\x20move\x20source\x20range','interceptCommand','reason','fromRange','default','ROW','toRange','hasDimensionOutlineViewPermission','COMMAND','1399285saDful','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','subUnitId','SheetPermissionCheckController','message','buildDimensionOutlineTree','3732799WmWEDF','getSheetCommandTarget','startWith','axis','toPrimitive','getDimensionOutlineViewPermission$','complete','preRedos','getCurrentUnitOfType','Injector','invalid-range','MUTATION','mergeRanges','end','pop','_initRegisterCommand','next','6avYYDF','sheet.mutation.clear-dimension-outlines','Module','column','parse','1355619guxmwd','getMaxColumns','row','call','registerPluginResource','index','_commandService','1.0.0-alpha.0','generateRandomId','disposeWithMe','sourceEnd','find','map','addDimensionOutlineToList','canAddDimensionOutline','_initCommandInterceptor','_outlines','RemoveDimensionOutlineCommand','move','@univerjs-pro/sheets-outline','change$','emit'];_0x5876=function(){return _0x586c5c;};return _0x5876();}function b(_0xe9d10f,_0x1e0e0a){const _0x1d4512=_0x3f51cc;if(_0x1e0e0a[_0x1d4512(0xe7)]>_0x1e0e0a[_0x1d4512(0x8a)])return _0xe9d10f;let _0x4d1cb7=[];for(let _0x6643c1 of _0xe9d10f){if(!d(_0x6643c1,_0x1e0e0a)){_0x4d1cb7[_0x1d4512(0x10d)](_0x6643c1);continue;}let _0x4aff49=x(_0x6643c1,_0x1e0e0a);if(_0x4aff49[_0x1d4512(0x116)]===_0x1d4512(0xfe))throw new s(_0x1d4512(0xae),_0x1d4512(0xc0)+_0x6643c1['id'],_0x6643c1['id']);_0x4d1cb7['push'](_0x4aff49['outline']);}return S(_0x4d1cb7);}function x(_0x3b45c0,_0xd33042){const _0x5e6481=_0x3f51cc;let _0x2c3461=te(_0xd33042[_0x5e6481(0xe7)],_0xd33042['sourceEnd']+0x1,_0xd33042['destinationIndex']),_0x4420aa=[],_0x5958e8={'start':_0x3b45c0[_0x5e6481(0xdb)],'end':_0x3b45c0[_0x5e6481(0x77)]+0x1};for(let _0x541245 of _0x2c3461){let _0x1bdc81=ne(_0x5958e8,_0x541245[_0x5e6481(0xd1)]);_0x1bdc81&&_0x4420aa[_0x5e6481(0x10d)]({'start':_0x1bdc81[_0x5e6481(0xdb)]+_0x541245[_0x5e6481(0xcd)],'end':_0x1bdc81[_0x5e6481(0x77)]+_0x541245['offset']});}let _0x410e4f=re(_0x4420aa);return _0x410e4f['length']===0x1?{'type':'ok','outline':{..._0x3b45c0,'start':_0x410e4f[0x0][_0x5e6481(0xdb)],'end':_0x410e4f[0x0][_0x5e6481(0x77)]-0x1}}:{'type':_0x5e6481(0xfe),'outline':_0x3b45c0,'ranges':_0x410e4f};}function te(_0x4dc5a2,_0x4f2857,_0x287c08){const _0xab548b=_0x3f51cc;let _0x4e15e3=_0x4f2857-_0x4dc5a2;if(_0x4e15e3<=0x0)throw Error(_0xab548b(0x12f));return _0x287c08>=_0x4dc5a2&&_0x287c08<=_0x4f2857?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x287c08<_0x4dc5a2?[{'range':{'start':0x0,'end':_0x287c08},'offset':0x0},{'range':{'start':_0x287c08,'end':_0x4dc5a2},'offset':_0x4e15e3},{'range':{'start':_0x4dc5a2,'end':_0x4f2857},'offset':_0x287c08-_0x4dc5a2},{'range':{'start':_0x4f2857,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x4dc5a2},'offset':0x0},{'range':{'start':_0x4dc5a2,'end':_0x4f2857},'offset':_0x287c08-_0x4f2857},{'range':{'start':_0x4f2857,'end':_0x287c08},'offset':-_0x4e15e3},{'range':{'start':_0x287c08,'end':u},'offset':0x0}];}function ne(_0x58acb0,_0x2d55c5){const _0x5281e6=_0x3f51cc;let _0x147b5b=Math[_0x5281e6(0x128)](_0x58acb0[_0x5281e6(0xdb)],_0x2d55c5[_0x5281e6(0xdb)]),_0xba03d3=Math[_0x5281e6(0x119)](_0x58acb0[_0x5281e6(0x77)],_0x2d55c5[_0x5281e6(0x77)]);return _0x147b5b>=_0xba03d3?null:{'start':_0x147b5b,'end':_0xba03d3};}function re(_0x3813aa){const _0x329cd2=_0x3f51cc;if(_0x3813aa[_0x329cd2(0x129)]===0x0)return[];let _0x5c9159=[..._0x3813aa][_0x329cd2(0xc7)]((_0x3afde2,_0x26f4d3)=>_0x3afde2[_0x329cd2(0xdb)]-_0x26f4d3[_0x329cd2(0xdb)]||_0x3afde2[_0x329cd2(0x77)]-_0x26f4d3[_0x329cd2(0x77)]),_0x5b8fc5=[];for(let _0x31c71a of _0x5c9159){let _0x4ceb55=_0x5b8fc5[_0x5b8fc5[_0x329cd2(0x129)]-0x1];!_0x4ceb55||_0x31c71a[_0x329cd2(0xdb)]>_0x4ceb55['end']?_0x5b8fc5['push']({..._0x31c71a}):_0x4ceb55[_0x329cd2(0x77)]=Math[_0x329cd2(0x128)](_0x4ceb55[_0x329cd2(0x77)],_0x31c71a[_0x329cd2(0x77)]);}return _0x5b8fc5;}function ie(_0x99227e,_0x2ce3b8,_0x4d96d5,_0x352dd0){return _0x2ce3b8+0x1===_0x4d96d5||_0x352dd0+0x1===_0x99227e;}function S(_0x2e37d4){let _0x2791ee=ae(_0x2e37d4);return f(_0x2791ee),_0x2791ee;}function ae(_0x3818d4){const _0x182675=_0x3f51cc;let _0x2b5659=new Map();for(let _0x269f78 of _0x3818d4){let _0x5bb013=[_0x269f78['unitId'],_0x269f78['subUnitId'],_0x269f78[_0x182675(0x6d)],_0x269f78[_0x182675(0xdb)],_0x269f78[_0x182675(0x77)]]['join'](':'),_0x5d0ffd=_0x2b5659[_0x182675(0x109)](_0x5bb013);if(!_0x5d0ffd){_0x2b5659['set'](_0x5bb013,_0x269f78);continue;}_0x2b5659[_0x182675(0xa2)](_0x5bb013,{..._0x5d0ffd,'collapsed':_0x5d0ffd[_0x182675(0xb5)]||_0x269f78[_0x182675(0xb5)]});}return Array[_0x182675(0xe0)](_0x2b5659['values']());}function C(_0x2d31c3,_0xffad68){const _0x63eaae=_0x3f51cc;return _0x2d31c3[_0x63eaae(0xf4)]===_0xffad68['unitId']?_0x2d31c3[_0x63eaae(0x13b)]===_0xffad68['subUnitId']?_0x2d31c3[_0x63eaae(0x6d)]===_0xffad68[_0x63eaae(0x6d)]?_0x2d31c3['start']===_0xffad68['start']?_0xffad68[_0x63eaae(0x77)]-_0x2d31c3['end']:_0x2d31c3['start']-_0xffad68['start']:_0x2d31c3['axis'][_0x63eaae(0xa3)](_0xffad68[_0x63eaae(0x6d)]):_0x2d31c3['subUnitId']['localeCompare'](_0xffad68['subUnitId']):_0x2d31c3[_0x63eaae(0xf4)][_0x63eaae(0xa3)](_0xffad68['unitId']);}function oe(_0x60a885){const _0x47bd71=_0x3f51cc;if(_0x60a885['start']>_0x60a885[_0x47bd71(0x77)])throw new s(_0x47bd71(0x74),'Invalid\x20outline\x20range',_0x60a885['id']);}function se(_0x200e5c,_0x1371af){const _0x22b911=_0x3f51cc;let _0x1fd006=_0x200e5c[_0x22b911(0xdb)]<=_0x1371af['end']&&_0x1371af[_0x22b911(0xdb)]<=_0x200e5c[_0x22b911(0x77)],_0x54e018=_0x200e5c['start']<=_0x1371af[_0x22b911(0xdb)]&&_0x1371af[_0x22b911(0x77)]<=_0x200e5c[_0x22b911(0x77)],_0x3d14a5=_0x1371af['start']<=_0x200e5c[_0x22b911(0xdb)]&&_0x200e5c[_0x22b911(0x77)]<=_0x1371af[_0x22b911(0x77)];return _0x1fd006&&!_0x54e018&&!_0x3d14a5;}function w(_0x2998cf){'@babel/helpers - typeof';const _0x23ef2e=_0x3f51cc;return w=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x23ef2e(0x11f)?function(_0x5e5b58){return typeof _0x5e5b58;}:function(_0x43c5e0){const _0x483936=_0x23ef2e;return _0x43c5e0&&typeof Symbol==_0x483936(0xc3)&&_0x43c5e0['constructor']===Symbol&&_0x43c5e0!==Symbol['prototype']?_0x483936(0x11f):typeof _0x43c5e0;},w(_0x2998cf);}function ce(_0x395f29,_0x576ef0){const _0x5e431b=_0x3f51cc;if(w(_0x395f29)!='object'||!_0x395f29)return _0x395f29;var _0x5784cc=_0x395f29[Symbol[_0x5e431b(0x6e)]];if(_0x5784cc!==void 0x0){var _0xf1d601=_0x5784cc[_0x5e431b(0x83)](_0x395f29,_0x576ef0||_0x5e431b(0x133));if(w(_0xf1d601)!=_0x5e431b(0xa9))return _0xf1d601;throw TypeError(_0x5e431b(0xf2));}return(_0x576ef0===_0x5e431b(0x9a)?String:Number)(_0x395f29);}function le(_0x3ae0ce){const _0x4237f1=_0x3f51cc;var _0x163195=ce(_0x3ae0ce,'string');return w(_0x163195)==_0x4237f1(0x11f)?_0x163195:_0x163195+'';}function T(_0x4cb88a,_0x35597e,_0x5cc81a){const _0x4f6ef6=_0x3f51cc;return(_0x35597e=le(_0x35597e))in _0x4cb88a?Object[_0x4f6ef6(0x9f)](_0x4cb88a,_0x35597e,{'value':_0x5cc81a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4cb88a[_0x35597e]=_0x5cc81a,_0x4cb88a;}var E=class extends e[_0x3f51cc(0x102)]{constructor(..._0x5bae15){const _0x270b1b=_0x3f51cc;super(..._0x5bae15),T(this,_0x270b1b(0x90),new Map()),T(this,'_change$',new n[(_0x270b1b(0xf9))]()),T(this,_0x270b1b(0x94),this[_0x270b1b(0xc2)][_0x270b1b(0xda)]());}[_0x3f51cc(0xce)](_0x320900,_0x4645df){const _0x49e082=_0x3f51cc;var _0xcae5db,_0x12b2df;return[...(_0xcae5db=(_0x12b2df=this[_0x49e082(0x90)][_0x49e082(0x109)](_0x320900))==null?void 0x0:_0x12b2df[_0x49e082(0x109)](_0x4645df))==null?[]:_0xcae5db];}[_0x3f51cc(0xf8)](_0x49dbc4){const _0x10991f=_0x3f51cc;let _0x5ac53e=this[_0x10991f(0x90)][_0x10991f(0x109)](_0x49dbc4),_0x3cb893=new Map();return _0x5ac53e==null||_0x5ac53e[_0x10991f(0xfc)]((_0x1278c4,_0x3a2832)=>{const _0x5f5912=_0x10991f;_0x3cb893[_0x5f5912(0xa2)](_0x3a2832,[..._0x1278c4]);}),_0x3cb893;}[_0x3f51cc(0xc1)](_0x378e26,_0x24dcbf,_0x31362b){const _0x37844d=_0x3f51cc;this[_0x37844d(0xcc)](_0x378e26)[_0x37844d(0xa2)](_0x24dcbf,[..._0x31362b]),this[_0x37844d(0xc2)][_0x37844d(0x7a)]({'unitId':_0x378e26,'subUnitId':_0x24dcbf});}[_0x3f51cc(0x12c)](_0x5d4721){const _0x4ed5d2=_0x3f51cc;this[_0x4ed5d2(0x90)]['delete'](_0x5d4721),this[_0x4ed5d2(0xc2)][_0x4ed5d2(0x7a)]({'unitId':_0x5d4721});}[_0x3f51cc(0xfd)](_0x1c41a5){const _0x58536a=_0x3f51cc;let _0xd5dfc6=this[_0x58536a(0x90)][_0x58536a(0x109)](_0x1c41a5),_0x5e34d9={};return _0xd5dfc6==null||_0xd5dfc6[_0x58536a(0xfc)]((_0xe22ef8,_0x2db13a)=>{_0x5e34d9[_0x2db13a]={'outlineList':[..._0xe22ef8]};}),_0x5e34d9;}[_0x3f51cc(0x10a)](_0x3a4822,_0x22e15e){const _0x158f23=_0x3f51cc;let _0xfe0d8=new Map();Object[_0x158f23(0x9d)](_0x22e15e)[_0x158f23(0xfc)](([_0xa73e78,_0x5d54f5])=>{const _0x440bca=_0x158f23;var _0xf944dc;_0xfe0d8[_0x440bca(0xa2)](_0xa73e78,[...(_0xf944dc=_0x5d54f5[_0x440bca(0xa7)])==null?[]:_0xf944dc]);}),this[_0x158f23(0x90)][_0x158f23(0xa2)](_0x3a4822,_0xfe0d8),this[_0x158f23(0xc2)][_0x158f23(0x7a)]({'unitId':_0x3a4822});}[_0x3f51cc(0xdf)](){const _0x4fe109=_0x3f51cc;super['dispose'](),this['_outlines'][_0x4fe109(0xb7)](),this[_0x4fe109(0xc2)][_0x4fe109(0x70)]();}[_0x3f51cc(0xcc)](_0x283c72){const _0x12e40a=_0x3f51cc;let _0x24ab3e=this[_0x12e40a(0x90)][_0x12e40a(0x109)](_0x283c72);return _0x24ab3e||(_0x24ab3e=new Map(),this[_0x12e40a(0x90)]['set'](_0x283c72,_0x24ab3e)),_0x24ab3e;}},D=class extends e[_0x3f51cc(0x102)]{constructor(..._0x38717a){const _0x2ee808=_0x3f51cc;super(..._0x38717a),T(this,_0x2ee808(0x96),new n[(_0x2ee808(0xf9))]()),T(this,_0x2ee808(0x11a),this[_0x2ee808(0x96)][_0x2ee808(0xda)]());}[_0x3f51cc(0x95)](_0x219d0e){const _0x4a0716=_0x3f51cc;this['_error$'][_0x4a0716(0x7a)](_0x219d0e);}[_0x3f51cc(0xdf)](){const _0x4fbd82=_0x3f51cc;super[_0x4fbd82(0xdf)](),this[_0x4fbd82(0x96)][_0x4fbd82(0x70)]();}};const O={'id':_0x3f51cc(0xd3),'type':e[_0x3f51cc(0x122)][_0x3f51cc(0x75)],'handler':(_0x213b4a,_0x5eeea)=>{const _0x4b8f04=_0x3f51cc;let _0x27693c=_0x213b4a['get'](E),_0x22b4f1=_0x27693c[_0x4b8f04(0xce)](_0x5eeea[_0x4b8f04(0xf4)],_0x5eeea[_0x4b8f04(0x13b)]);return _0x27693c['setOutlines'](_0x5eeea[_0x4b8f04(0xf4)],_0x5eeea['subUnitId'],m(_0x22b4f1,_0x5eeea[_0x4b8f04(0xed)])),!0x0;}},k={'id':_0x3f51cc(0x106),'type':e[_0x3f51cc(0x122)]['MUTATION'],'handler':(_0x4f85c0,_0x4db174)=>{const _0x10025c=_0x3f51cc;let _0x3a5b8d=_0x4f85c0[_0x10025c(0x109)](E),_0x22c012=_0x3a5b8d[_0x10025c(0xce)](_0x4db174[_0x10025c(0xf4)],_0x4db174['subUnitId']);return _0x3a5b8d['setOutlines'](_0x4db174[_0x10025c(0xf4)],_0x4db174[_0x10025c(0x13b)],_0x22c012[_0x10025c(0x110)](_0x330304=>_0x330304['id']!==_0x4db174[_0x10025c(0x107)])),!0x0;}};function A(_0x4783e9,_0x37723a,_0x5cf89d){const _0x22fe0f=_0x3f51cc;let _0x55d7d6=de(_0x4783e9);return _0x55d7d6?_0x55d7d6[_0x22fe0f(0xd9)]({'workbookTypes':[t['WorkbookViewPermission']],'worksheetTypes':[t[_0x22fe0f(0xb6)]]},_0x37723a,_0x5cf89d):!0x0;}function ue(_0x24f131,_0x16aebd,_0x553ed2){const _0x27b374=_0x3f51cc;var _0x4f1b81;let _0x1ea5a0=fe(_0x24f131);return((_0x4f1b81=_0x1ea5a0==null?void 0x0:_0x1ea5a0['permissionPointUpdate$'])==null?(0x0,n['of'])(null):_0x4f1b81)['pipe']((0x0,r['debounceTime'])(0x64),(0x0,r[_0x27b374(0x6c)])(null),(0x0,r[_0x27b374(0x8c)])(()=>A(_0x24f131,_0x16aebd,_0x553ed2)));}function de(_0x10411e){const _0x769c34=_0x3f51cc;if(typeof _0x10411e['has']==_0x769c34(0xc3)&&!_0x10411e['has'](t[_0x769c34(0x13c)]))return null;try{return _0x10411e[_0x769c34(0x109)](t['SheetPermissionCheckController']);}catch{return null;}}function fe(_0x2d9162){const _0xf4b7ce=_0x3f51cc;if(typeof _0x2d9162[_0xf4b7ce(0x108)]==_0xf4b7ce(0xc3)&&!_0x2d9162[_0xf4b7ce(0x108)](e[_0xf4b7ce(0xcf)]))return null;try{return _0x2d9162[_0xf4b7ce(0x109)](e[_0xf4b7ce(0xcf)]);}catch{return null;}}const j={'id':_0x3f51cc(0x11c),'type':e[_0x3f51cc(0x122)]['COMMAND'],'handler':(_0x2aed8d,_0x5da017)=>{const _0x241b7d=_0x3f51cc;var _0x53ea9a,_0xa8da8b;if(!_0x5da017)return!0x1;let _0x29c367=(0x0,t[_0x241b7d(0x6b)])(_0x2aed8d[_0x241b7d(0x109)](e['IUniverInstanceService']),_0x5da017);if(!_0x29c367)return!0x1;let {unitId:_0x396552,subUnitId:_0x288763,worksheet:_0x42c236}=_0x29c367;if(!A(_0x2aed8d,_0x396552,_0x288763))return!0x1;let _0x36de20=_0x2aed8d[_0x241b7d(0x109)](E),_0x175407={'id':'dimension-outline-'+(0x0,e[_0x241b7d(0x88)])(0x6),'unitId':_0x396552,'subUnitId':_0x288763,'axis':_0x5da017[_0x241b7d(0x6d)],'start':_0x5da017[_0x241b7d(0xdb)],'end':_0x5da017['end'],'collapsed':!0x1},_0x10aaa9=_0x5da017['axis']===_0x241b7d(0x82)?_0x42c236[_0x241b7d(0xb3)]():_0x42c236[_0x241b7d(0xdd)](),_0x4d4370=_0x36de20[_0x241b7d(0xce)](_0x396552,_0x288763),_0x1a5a8a=ee(_0x4d4370,_0x175407),_0x25424f=(_0x53ea9a=_0x1a5a8a==null?void 0x0:_0x1a5a8a[_0x241b7d(0xca)])==null?[]:_0x53ea9a,_0x24550c=(_0xa8da8b=_0x1a5a8a==null?void 0x0:_0x1a5a8a[_0x241b7d(0xe2)])==null?_0x175407:_0xa8da8b,_0x53be98=p(_0x1a5a8a?_0x4d4370[_0x241b7d(0x110)](_0x48473e=>!_0x25424f[_0x241b7d(0x9c)](_0x4f629f=>_0x4f629f['id']===_0x48473e['id'])):_0x4d4370,_0x24550c,{'maxIndex':_0x10aaa9});if(!_0x53be98[_0x241b7d(0x104)]){var _0x3bc9cb;return _0x2aed8d['get'](D)[_0x241b7d(0x95)]({'reason':(_0x3bc9cb=_0x53be98[_0x241b7d(0x131)])==null?_0x241b7d(0xc4):_0x3bc9cb,'commandId':j['id'],'unitId':_0x396552,'subUnitId':_0x288763,'axis':_0x5da017['axis'],'outlineId':_0x24550c['id']}),!0x1;}let _0x1d3e8d=[..._0x25424f['map'](_0x399630=>({'id':k['id'],'params':{'unitId':_0x396552,'subUnitId':_0x288763,'outlineId':_0x399630['id']}})),{'id':O['id'],'params':{'unitId':_0x396552,'subUnitId':_0x288763,'outline':_0x24550c}}],_0x11c4ec=[{'id':k['id'],'params':{'unitId':_0x396552,'subUnitId':_0x288763,'outlineId':_0x24550c['id']}},..._0x25424f[_0x241b7d(0x8c)](_0x4e0a7e=>({'id':O['id'],'params':{'unitId':_0x396552,'subUnitId':_0x288763,'outline':_0x4e0a7e}}))];return(0x0,e[_0x241b7d(0xeb)])(_0x1d3e8d,_0x2aed8d[_0x241b7d(0x109)](e[_0x241b7d(0x112)]))[_0x241b7d(0xc6)]?(_0x2aed8d[_0x241b7d(0x109)](e[_0x241b7d(0xac)])[_0x241b7d(0xd5)]({'unitID':_0x396552,'undoMutations':_0x11c4ec,'redoMutations':_0x1d3e8d}),!0x0):!0x1;}},M={'id':_0x3f51cc(0x7c),'type':e[_0x3f51cc(0x122)][_0x3f51cc(0x75)],'handler':(_0x3e14ac,_0x474b4d)=>{const _0x107f43=_0x3f51cc;let _0x109b7c=_0x3e14ac['get'](E),_0xaf222e=_0x109b7c['getOutlines'](_0x474b4d[_0x107f43(0xf4)],_0x474b4d[_0x107f43(0x13b)]);return _0x109b7c[_0x107f43(0xc1)](_0x474b4d['unitId'],_0x474b4d['subUnitId'],h(_0xaf222e,_0x474b4d)),!0x0;}},N={'id':_0x3f51cc(0xaa),'type':e[_0x3f51cc(0x122)][_0x3f51cc(0x137)],'handler':(_0x576ce8,_0x3b90f2)=>{const _0x5eaee7=_0x3f51cc;if(!_0x3b90f2)return!0x1;let _0x36fce6=(0x0,t['getSheetCommandTarget'])(_0x576ce8[_0x5eaee7(0x109)](e[_0x5eaee7(0x124)]),_0x3b90f2);if(!_0x36fce6)return!0x1;let {unitId:_0x14b944,subUnitId:_0x42faab}=_0x36fce6;if(!A(_0x576ce8,_0x14b944,_0x42faab))return!0x1;let _0x46c137={'unitId':_0x14b944,'subUnitId':_0x42faab,'axis':_0x3b90f2[_0x5eaee7(0x6d)],'start':_0x3b90f2[_0x5eaee7(0xdb)],'end':_0x3b90f2[_0x5eaee7(0x77)]},_0x3affc0=_0x576ce8[_0x5eaee7(0x109)](E)[_0x5eaee7(0xce)](_0x14b944,_0x42faab)[_0x5eaee7(0x110)](_0x425ced=>d(_0x425ced,_0x46c137)&&_0x425ced[_0x5eaee7(0xdb)]>=_0x3b90f2['start']&&_0x425ced['end']<=_0x3b90f2[_0x5eaee7(0x77)]);if(_0x3affc0[_0x5eaee7(0x129)]===0x0)return _0x576ce8[_0x5eaee7(0x109)](D)[_0x5eaee7(0x95)]({'reason':_0x5eaee7(0xcb),'commandId':N['id'],'unitId':_0x14b944,'subUnitId':_0x42faab,'axis':_0x3b90f2[_0x5eaee7(0x6d)]}),!0x1;let _0x576f29=[{'id':M['id'],'params':{..._0x46c137,'removedOutlineIds':_0x3affc0[_0x5eaee7(0x8c)](_0x69a178=>_0x69a178['id'])}}],_0x5a4eab=_0x3affc0[_0x5eaee7(0x8c)](_0x3ecf0b=>({'id':O['id'],'params':{'unitId':_0x14b944,'subUnitId':_0x42faab,'outline':_0x3ecf0b}}));return(0x0,e['sequenceExecute'])(_0x576f29,_0x576ce8[_0x5eaee7(0x109)](e['ICommandService']))[_0x5eaee7(0xc6)]?(_0x576ce8[_0x5eaee7(0x109)](e[_0x5eaee7(0xac)])[_0x5eaee7(0xd5)]({'unitID':_0x14b944,'undoMutations':_0x5a4eab,'redoMutations':_0x576f29}),!0x0):!0x1;}},P={'id':_0x3f51cc(0x12a),'type':e['CommandType'][_0x3f51cc(0x137)],'handler':(_0x5b30a9,_0x161fe1)=>{const _0x5e109b=_0x3f51cc;if(!_0x161fe1)return!0x1;let _0x1c099d=(0x0,t['getSheetCommandTarget'])(_0x5b30a9[_0x5e109b(0x109)](e[_0x5e109b(0x124)]),_0x161fe1);if(!_0x1c099d)return!0x1;let {unitId:_0x3028d5,subUnitId:_0x465d34}=_0x1c099d;if(!A(_0x5b30a9,_0x3028d5,_0x465d34))return!0x1;let _0x142953=_0x5b30a9[_0x5e109b(0x109)](E)['getOutlines'](_0x3028d5,_0x465d34)['find'](_0x191aee=>_0x191aee['id']===_0x161fe1[_0x5e109b(0x107)]);if(!_0x142953)return!0x1;let _0x23fa26=[{'id':k['id'],'params':{'unitId':_0x3028d5,'subUnitId':_0x465d34,'outlineId':_0x142953['id'],'outline':_0x142953}}],_0x27949b=[{'id':O['id'],'params':{'unitId':_0x3028d5,'subUnitId':_0x465d34,'outline':_0x142953}}];return(0x0,e[_0x5e109b(0xeb)])(_0x23fa26,_0x5b30a9[_0x5e109b(0x109)](e['ICommandService']))[_0x5e109b(0xc6)]?(_0x5b30a9[_0x5e109b(0x109)](e['IUndoRedoService'])[_0x5e109b(0xd5)]({'unitID':_0x3028d5,'undoMutations':_0x27949b,'redoMutations':_0x23fa26}),!0x0):!0x1;}},F={'id':_0x3f51cc(0xbd),'type':e['CommandType'][_0x3f51cc(0x75)],'handler':(_0x1bbc76,_0x34c52d)=>{const _0x546137=_0x3f51cc;let _0x2880b0=_0x1bbc76[_0x546137(0x109)](E),_0x2b9608=_0x2880b0[_0x546137(0xce)](_0x34c52d['unitId'],_0x34c52d[_0x546137(0x13b)]),_0x10bd9c=_0x2b9608['find'](_0x1eabdf=>_0x1eabdf['id']===_0x34c52d['outlineId']);return _0x10bd9c&&_0x2880b0[_0x546137(0xc1)](_0x34c52d[_0x546137(0xf4)],_0x34c52d[_0x546137(0x13b)],_0x2b9608[_0x546137(0x8c)](_0x1da567=>_0x1da567[_0x546137(0xf4)]!==_0x10bd9c[_0x546137(0xf4)]||_0x1da567[_0x546137(0x13b)]!==_0x10bd9c[_0x546137(0x13b)]||_0x1da567[_0x546137(0x6d)]!==_0x10bd9c[_0x546137(0x6d)]||_0x1da567[_0x546137(0xdb)]!==_0x10bd9c[_0x546137(0xdb)]||_0x1da567[_0x546137(0x77)]!==_0x10bd9c[_0x546137(0x77)]?_0x1da567:{..._0x1da567,'collapsed':_0x34c52d[_0x546137(0xb5)]})),!0x0;}};function I(_0x21c18f,_0x114d01,_0x2cc41d,_0x48e861){const _0x21c751=_0x3f51cc;return _0x21c18f===_0x21c751(0x82)?{'startRow':_0x114d01,'endRow':_0x2cc41d,'startColumn':0x0,'endColumn':_0x48e861[_0x21c751(0x81)]()-0x1}:{'startRow':0x0,'endRow':_0x48e861[_0x21c751(0xb3)]()-0x1,'startColumn':_0x114d01,'endColumn':_0x2cc41d};}function pe(_0x33ca2f){const _0x37d3cb=_0x3f51cc;return _0x33ca2f===_0x37d3cb(0x82)?t[_0x37d3cb(0x114)]['id']:t['SetColHiddenMutation']['id'];}function me(_0x30a79a){const _0x14280c=_0x3f51cc;return _0x30a79a===_0x14280c(0x82)?t[_0x14280c(0x97)]['id']:t[_0x14280c(0xa6)]['id'];}function L(_0x5595d2,_0x5a77ff,_0x5f3bf6,_0x1a9b3f){const _0x13bd43=_0x3f51cc;let _0x14a0eb=_0x5a77ff?[I(_0x5595d2[_0x13bd43(0x6d)],_0x5595d2['start'],_0x5595d2['end'],_0x5f3bf6)]:R(_0x5595d2,_0x1a9b3f,_0x5f3bf6),_0x3349be=_0x5a77ff?pe(_0x5595d2['axis']):me(_0x5595d2['axis']);return[{'id':F['id'],'params':{'unitId':_0x5595d2[_0x13bd43(0xf4)],'subUnitId':_0x5595d2['subUnitId'],'outlineId':_0x5595d2['id'],'outline':_0x5595d2,'collapsed':_0x5a77ff}},..._0x14a0eb[_0x13bd43(0x8c)](_0x352827=>({'id':_0x3349be,'params':{'unitId':_0x5595d2[_0x13bd43(0xf4)],'subUnitId':_0x5595d2[_0x13bd43(0x13b)],'ranges':[_0x352827],'dimensionOutlineId':_0x5595d2['id']}}))];}function R(_0x226390,_0x37110b,_0x48aa1a){const _0x5548e9=_0x3f51cc;let _0x4165d5=g(_0x37110b[_0x5548e9(0x8c)](_0x141823=>z(_0x141823,_0x226390)?{..._0x141823,'collapsed':!0x1}:_0x141823),_0x226390[_0x5548e9(0xf4)],_0x226390['subUnitId'],_0x226390[_0x5548e9(0x6d)]);return he({'start':_0x226390[_0x5548e9(0xdb)],'end':_0x226390[_0x5548e9(0x77)]},_0x4165d5)['map'](_0x5354a8=>I(_0x226390[_0x5548e9(0x6d)],_0x5354a8[_0x5548e9(0xdb)],_0x5354a8[_0x5548e9(0x77)],_0x48aa1a));}function z(_0x4875be,_0x28b3d8){const _0x2bdfda=_0x3f51cc;return _0x4875be[_0x2bdfda(0xf4)]===_0x28b3d8[_0x2bdfda(0xf4)]&&_0x4875be[_0x2bdfda(0x13b)]===_0x28b3d8[_0x2bdfda(0x13b)]&&_0x4875be[_0x2bdfda(0x6d)]===_0x28b3d8[_0x2bdfda(0x6d)]&&_0x4875be['start']===_0x28b3d8['start']&&_0x4875be[_0x2bdfda(0x77)]===_0x28b3d8[_0x2bdfda(0x77)];}function he(_0x5308e5,_0x1db654){const _0x2709c4=_0x3f51cc;let _0x3a453d=_0x5308e5[_0x2709c4(0xdb)],_0x469f69=[];for(let _0x3aa784 of _0x1db654)if(!(_0x3aa784[_0x2709c4(0x77)]<_0x3a453d||_0x3aa784[_0x2709c4(0xdb)]>_0x5308e5[_0x2709c4(0x77)])&&(_0x3aa784[_0x2709c4(0xdb)]>_0x3a453d&&_0x469f69[_0x2709c4(0x10d)]({'start':_0x3a453d,'end':Math[_0x2709c4(0x119)](_0x3aa784['start']-0x1,_0x5308e5[_0x2709c4(0x77)])}),_0x3a453d=Math[_0x2709c4(0x128)](_0x3a453d,_0x3aa784['end']+0x1),_0x3a453d>_0x5308e5['end']))break;return _0x3a453d<=_0x5308e5[_0x2709c4(0x77)]&&_0x469f69['push']({'start':_0x3a453d,'end':_0x5308e5[_0x2709c4(0x77)]}),_0x469f69;}const B={'id':'sheet.command.set-dimension-outline-collapsed','type':e[_0x3f51cc(0x122)][_0x3f51cc(0x137)],'handler':(_0x416cd7,_0x1f1d13)=>{const _0x2b09f5=_0x3f51cc;if(!_0x1f1d13)return!0x1;let _0x2da4a3=(0x0,t[_0x2b09f5(0x6b)])(_0x416cd7[_0x2b09f5(0x109)](e[_0x2b09f5(0x124)]),_0x1f1d13);if(!_0x2da4a3)return!0x1;let {unitId:_0xb7b1e1,subUnitId:_0x3a61a4,worksheet:_0x7d4c3}=_0x2da4a3;if(!A(_0x416cd7,_0xb7b1e1,_0x3a61a4))return!0x1;let _0x669b1c=_0x416cd7[_0x2b09f5(0x109)](E)[_0x2b09f5(0xce)](_0xb7b1e1,_0x3a61a4),_0x13c92d=_0x669b1c[_0x2b09f5(0x8b)](_0x3c0c54=>_0x3c0c54['id']===_0x1f1d13[_0x2b09f5(0x107)]);if(!_0x13c92d||_0x13c92d['collapsed']===_0x1f1d13['collapsed'])return!0x1;let _0x560a1f=L(_0x13c92d,_0x1f1d13[_0x2b09f5(0xb5)],_0x7d4c3,_0x669b1c),_0x477a9e=L(_0x13c92d,!_0x1f1d13['collapsed'],_0x7d4c3,_0x669b1c);return(0x0,e['sequenceExecute'])(_0x560a1f,_0x416cd7[_0x2b09f5(0x109)](e['ICommandService']))[_0x2b09f5(0xc6)]?(_0x416cd7[_0x2b09f5(0x109)](e[_0x2b09f5(0xac)])['pushUndoRedo']({'unitID':_0xb7b1e1,'undoMutations':_0x477a9e,'redoMutations':_0x560a1f}),!0x0):!0x1;}},V={'id':_0x3f51cc(0xc5),'type':e['CommandType'][_0x3f51cc(0x75)],'handler':(_0x3be9a4,_0x1c0272)=>{const _0x4f6add=_0x3f51cc;let _0x33a0d9=_0x3be9a4[_0x4f6add(0x109)](E),_0x2348e8=ge(_0x33a0d9[_0x4f6add(0xce)](_0x1c0272[_0x4f6add(0xf4)],_0x1c0272[_0x4f6add(0x13b)]),_0x1c0272);return _0x33a0d9['setOutlines'](_0x1c0272[_0x4f6add(0xf4)],_0x1c0272['subUnitId'],_0x2348e8),!0x0;}};function ge(_0x4e3c15,_0x4f45a2){const _0x48c0cb=_0x3f51cc;switch(_0x4f45a2[_0x48c0cb(0x116)]){case _0x48c0cb(0xf1):return _0x4f45a2['restoreOutlines']?_e(_0x4e3c15,_0x4f45a2):v(_0x4e3c15,_0x4f45a2);case _0x48c0cb(0xd7):return y(_0x4e3c15,_0x4f45a2);case'move':return b(_0x4e3c15,_0x4f45a2);}}function _e(_0x261ac3,_0x3c2964){const _0x566a63=_0x3f51cc;return[..._0x261ac3[_0x566a63(0x110)](_0x173088=>_0x173088[_0x566a63(0xf4)]!==_0x3c2964[_0x566a63(0xf4)]||_0x173088['subUnitId']!==_0x3c2964[_0x566a63(0x13b)]||_0x173088[_0x566a63(0x6d)]!==_0x3c2964[_0x566a63(0x6d)]),..._0x3c2964[_0x566a63(0xe5)]];}const H=_0x3f51cc(0xd0);var ve=_0x3f51cc(0x93),ye=_0x3f51cc(0x87);function U(_0x26b3dc,_0x309b40){return function(_0x5e2302,_0x490963){_0x309b40(_0x5e2302,_0x490963,_0x26b3dc);};}function W(_0x5f2576,_0x8ff3ad,_0x850c0b,_0x4a3b22){const _0x344042=_0x3f51cc;var _0x2421d4=arguments['length'],_0x327bdf=_0x2421d4<0x3?_0x8ff3ad:_0x4a3b22===null?_0x4a3b22=Object[_0x344042(0x100)](_0x8ff3ad,_0x850c0b):_0x4a3b22,_0x503b1a;if(typeof Reflect==_0x344042(0xa9)&&typeof Reflect['decorate']==_0x344042(0xc3))_0x327bdf=Reflect['decorate'](_0x5f2576,_0x8ff3ad,_0x850c0b,_0x4a3b22);else{for(var _0x6bab58=_0x5f2576[_0x344042(0x129)]-0x1;_0x6bab58>=0x0;_0x6bab58--)(_0x503b1a=_0x5f2576[_0x6bab58])&&(_0x327bdf=(_0x2421d4<0x3?_0x503b1a(_0x327bdf):_0x2421d4>0x3?_0x503b1a(_0x8ff3ad,_0x850c0b,_0x327bdf):_0x503b1a(_0x8ff3ad,_0x850c0b))||_0x327bdf);}return _0x2421d4>0x3&&_0x327bdf&&Object[_0x344042(0x9f)](_0x8ff3ad,_0x850c0b,_0x327bdf),_0x327bdf;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e['Disposable']{constructor(_0x460f29,_0x2b6909,_0x4fb82d,_0x11b358){const _0x4d443b=_0x3f51cc;super(),this[_0x4d443b(0x11b)]=_0x460f29,this[_0x4d443b(0xe9)]=_0x2b6909,this[_0x4d443b(0xe8)]=_0x4fb82d,this['_sheetsOutlineErrorService']=_0x11b358,this[_0x4d443b(0x8f)]();}[_0x3f51cc(0x8f)](){const _0x57bf6e=_0x3f51cc;this[_0x57bf6e(0x89)](this[_0x57bf6e(0xe9)][_0x57bf6e(0x130)]({'getMutations':_0x22af36=>be(_0x22af36,(_0x545d30,_0x36307d)=>this['_sheetsOutlineModel'][_0x57bf6e(0xce)](_0x545d30,_0x36307d),this[_0x57bf6e(0x10c)](_0x22af36['params']),_0x471987=>this['_sheetsOutlineErrorService']['emit'](_0x471987))}));}[_0x3f51cc(0x10c)](_0xa2e0b5){const _0x55c42e=_0x3f51cc;let _0x3486c8=_0xa2e0b5,_0x4926ae=_0x3486c8!=null&&_0x3486c8[_0x55c42e(0xf4)]?this['_univerInstanceService'][_0x55c42e(0x11d)](_0x3486c8[_0x55c42e(0xf4)]):this[_0x55c42e(0x11b)][_0x55c42e(0x72)](e[_0x55c42e(0x12b)]['UNIVER_SHEET']);if(!_0x4926ae)return;let _0x2a8b05=_0x3486c8!=null&&_0x3486c8['subUnitId']?_0x4926ae[_0x55c42e(0xe6)](_0x3486c8[_0x55c42e(0x13b)]):_0x4926ae[_0x55c42e(0xb1)]();if(_0x2a8b05)return{'unitId':_0x4926ae['getUnitId'](),'subUnitId':_0x2a8b05[_0x55c42e(0x12e)]()};}};K=W([U(0x0,e[_0x3f51cc(0x124)]),U(0x1,(0x0,e[_0x3f51cc(0x123)])(t[_0x3f51cc(0xaf)])),U(0x2,(0x0,e[_0x3f51cc(0x123)])(E)),U(0x3,(0x0,e[_0x3f51cc(0x123)])(D))],K);function be(_0x45c9dc,_0x241f12,_0x55da34,_0x27f7dc){const _0xdb8ce0=_0x3f51cc;let _0x2c883a=Se(_0x45c9dc,_0x55da34);if(!_0x2c883a)return Z();let _0x10b81d=_0x241f12(_0x2c883a[_0xdb8ce0(0xf4)],_0x2c883a[_0xdb8ce0(0x13b)]);if(!_0x10b81d[_0xdb8ce0(0x9c)](_0x5d0a69=>_0x5d0a69[_0xdb8ce0(0x6d)]===_0x2c883a[_0xdb8ce0(0x6d)]))return Z();xe(_0x10b81d,_0x2c883a,_0x45c9dc['id'],_0x27f7dc);let _0x1fbfad=Ce(_0x2c883a,_0x10b81d);return{'redos':[{'id':V['id'],'params':_0x2c883a}],'undos':[{'id':V['id'],'params':_0x1fbfad}],'preRedos':[],'preUndos':[]};}function xe(_0x58fc86,_0x1beb2f,_0x8301c9,_0x62247b){const _0x1ac21d=_0x3f51cc;try{switch(_0x1beb2f[_0x1ac21d(0x116)]){case _0x1ac21d(0xf1):v(_0x58fc86,_0x1beb2f);break;case _0x1ac21d(0xd7):y(_0x58fc86,_0x1beb2f);break;case _0x1ac21d(0x92):b(_0x58fc86,_0x1beb2f);break;}}catch(_0x25754b){throw _0x62247b==null||_0x62247b({'reason':c(_0x25754b),'commandId':_0x8301c9,'unitId':_0x1beb2f['unitId'],'subUnitId':_0x1beb2f[_0x1ac21d(0x13b)],'axis':_0x1beb2f[_0x1ac21d(0x6d)],'outlineId':l(_0x25754b)}),new e['CustomCommandExecutionError'](_0x25754b instanceof Error?_0x25754b['message']:_0x1ac21d(0x111));}}function Se(_0x2f2c8a,_0x4fc6d1){const _0x418e0a=_0x3f51cc;switch(_0x2f2c8a['id']){case t[_0x418e0a(0xa0)]['id']:return q(_0x2f2c8a[_0x418e0a(0x9b)],_0x418e0a(0x82),_0x4fc6d1);case t['InsertColCommand']['id']:return q(_0x2f2c8a[_0x418e0a(0x9b)],_0x418e0a(0x7e),_0x4fc6d1);case t['RemoveRowCommand']['id']:return J(_0x2f2c8a[_0x418e0a(0x9b)],'row',_0x4fc6d1);case t[_0x418e0a(0xd4)]['id']:return J(_0x2f2c8a[_0x418e0a(0x9b)],_0x418e0a(0x7e),_0x4fc6d1);case t[_0x418e0a(0xea)]['id']:return Y(_0x2f2c8a['params'],_0x418e0a(0x82),_0x4fc6d1);case t[_0x418e0a(0xba)]['id']:return Y(_0x2f2c8a[_0x418e0a(0x9b)],'column',_0x4fc6d1);default:return null;}}function q(_0x52cb91,_0x228c54,_0x2a9b25){const _0x42403e=_0x3f51cc;let _0x1a2d56=X(_0x52cb91,_0x2a9b25);if(!(_0x52cb91!=null&&_0x52cb91[_0x42403e(0xd1)])||!_0x1a2d56)return null;let _0x129329=_0x228c54===_0x42403e(0x82)?_0x52cb91['range']['startRow']:_0x52cb91[_0x42403e(0xd1)]['startColumn'],_0x20d687=_0x228c54==='row'?_0x52cb91[_0x42403e(0xd1)][_0x42403e(0xe1)]:_0x52cb91['range'][_0x42403e(0xf0)];return{..._0x1a2d56,'axis':_0x228c54,'type':'insert','index':_0x129329,'count':_0x20d687-_0x129329+0x1};}function J(_0x3a17f7,_0x3de4f4,_0x19cccd){const _0x74915b=_0x3f51cc;let _0x34c7be=X(_0x3a17f7,_0x19cccd);if(!(_0x3a17f7!=null&&_0x3a17f7[_0x74915b(0xd1)])||!_0x34c7be)return null;let _0x1418cd=_0x3de4f4===_0x74915b(0x82)?_0x3a17f7[_0x74915b(0xd1)][_0x74915b(0x105)]:_0x3a17f7[_0x74915b(0xd1)][_0x74915b(0x121)],_0x4d4ab4=_0x3de4f4===_0x74915b(0x82)?_0x3a17f7['range'][_0x74915b(0xe1)]:_0x3a17f7[_0x74915b(0xd1)][_0x74915b(0xf0)];return{..._0x34c7be,'axis':_0x3de4f4,'type':_0x74915b(0xd7),'start':_0x1418cd,'end':_0x4d4ab4};}function Y(_0x176778,_0x481dcb,_0x40875a){const _0x89e995=_0x3f51cc;let _0x36ac4f=X(_0x176778,_0x40875a);if(!(_0x176778!=null&&_0x176778['fromRange'])||!_0x176778['toRange']||!_0x36ac4f)return null;let _0x3ee7a6=_0x481dcb===_0x89e995(0x82)?_0x176778[_0x89e995(0x132)][_0x89e995(0x105)]:_0x176778['fromRange'][_0x89e995(0x121)],_0x301a2b=_0x481dcb==='row'?_0x176778[_0x89e995(0x132)][_0x89e995(0xe1)]:_0x176778['fromRange'][_0x89e995(0xf0)],_0x1130d6=_0x481dcb===_0x89e995(0x82)?_0x176778['toRange']['startRow']:_0x176778[_0x89e995(0x135)]['startColumn'];return{..._0x36ac4f,'axis':_0x481dcb,'type':_0x89e995(0x92),'sourceStart':_0x3ee7a6,'sourceEnd':_0x301a2b,'destinationIndex':_0x1130d6};}function Ce(_0x56be58,_0x1f858b){const _0x2a297d=_0x3f51cc;switch(_0x56be58[_0x2a297d(0x116)]){case _0x2a297d(0xf1):return{'unitId':_0x56be58[_0x2a297d(0xf4)],'subUnitId':_0x56be58[_0x2a297d(0x13b)],'axis':_0x56be58['axis'],'type':_0x2a297d(0xd7),'start':_0x56be58[_0x2a297d(0x85)],'end':_0x56be58[_0x2a297d(0x85)]+_0x56be58[_0x2a297d(0xfa)]-0x1};case'delete':return{'unitId':_0x56be58[_0x2a297d(0xf4)],'subUnitId':_0x56be58[_0x2a297d(0x13b)],'axis':_0x56be58[_0x2a297d(0x6d)],'type':_0x2a297d(0xf1),'index':_0x56be58[_0x2a297d(0xdb)],'count':_0x56be58[_0x2a297d(0x77)]-_0x56be58[_0x2a297d(0xdb)]+0x1,'restoreOutlines':_0x1f858b[_0x2a297d(0x110)](_0x11df33=>_0x11df33[_0x2a297d(0xf4)]===_0x56be58[_0x2a297d(0xf4)]&&_0x11df33[_0x2a297d(0x13b)]===_0x56be58['subUnitId']&&_0x11df33[_0x2a297d(0x6d)]===_0x56be58[_0x2a297d(0x6d)])};case _0x2a297d(0x92):return we(_0x56be58);}}function we(_0x20d3fb){const _0x5a8bce=_0x3f51cc;let _0x59860f=_0x20d3fb[_0x5a8bce(0x8a)]-_0x20d3fb[_0x5a8bce(0xe7)]+0x1;return _0x20d3fb[_0x5a8bce(0x12d)]>=_0x20d3fb[_0x5a8bce(0xe7)]&&_0x20d3fb[_0x5a8bce(0x12d)]<=_0x20d3fb[_0x5a8bce(0x8a)]+0x1?{..._0x20d3fb}:_0x20d3fb['destinationIndex']>_0x20d3fb[_0x5a8bce(0x8a)]+0x1?{..._0x20d3fb,'sourceStart':_0x20d3fb[_0x5a8bce(0x12d)]-_0x59860f,'sourceEnd':_0x20d3fb[_0x5a8bce(0x12d)]-0x1,'destinationIndex':_0x20d3fb[_0x5a8bce(0xe7)]}:{..._0x20d3fb,'sourceStart':_0x20d3fb[_0x5a8bce(0x12d)],'sourceEnd':_0x20d3fb['destinationIndex']+_0x59860f-0x1,'destinationIndex':_0x20d3fb['sourceEnd']+0x1};}function X(_0x2b583a,_0x31886f){const _0x3874cd=_0x3f51cc;var _0xb7caf0,_0x21500b;let _0x502b87=(_0xb7caf0=_0x2b583a==null?void 0x0:_0x2b583a[_0x3874cd(0xf4)])==null?_0x31886f==null?void 0x0:_0x31886f[_0x3874cd(0xf4)]:_0xb7caf0,_0x5b23be=(_0x21500b=_0x2b583a==null?void 0x0:_0x2b583a[_0x3874cd(0x13b)])==null?_0x31886f==null?void 0x0:_0x31886f[_0x3874cd(0x13b)]:_0x21500b;return _0x502b87&&_0x5b23be?{'unitId':_0x502b87,'subUnitId':_0x5b23be}:null;}function Z(){const _0x4c2f2d=_0x3f51cc;var _0x1b2efe,_0x251a61;return{'redos':[...G[_0x4c2f2d(0xb9)]],'undos':[...G['undos']],'preRedos':[...(_0x1b2efe=G[_0x4c2f2d(0x71)])==null?[]:_0x1b2efe],'preUndos':[...(_0x251a61=G[_0x4c2f2d(0xbf)])==null?[]:_0x251a61]};}let Q=class extends e[_0x3f51cc(0x102)]{constructor(_0x2eed26,_0x1e13a7){const _0x3d319d=_0x3f51cc;super(),this['_resourceManagerService']=_0x2eed26,this[_0x3d319d(0xe8)]=_0x1e13a7,this[_0x3d319d(0x10b)]();}[_0x3f51cc(0x10b)](){const _0xda8f86=_0x3f51cc;this['disposeWithMe'](this[_0xda8f86(0xe4)][_0xda8f86(0x84)]({'pluginName':H,'businesses':[e[_0xda8f86(0x12b)][_0xda8f86(0xa4)]],'toJson':_0x13e45e=>JSON['stringify'](this['_sheetsOutlineModel'][_0xda8f86(0xfd)](_0x13e45e)),'parseJson':_0x46cb90=>JSON[_0xda8f86(0x7f)](_0x46cb90),'onLoad':(_0x47f109,_0x9a22da)=>this['_sheetsOutlineModel'][_0xda8f86(0x10a)](_0x47f109,_0x9a22da),'onUnLoad':_0x1c5ed1=>this['_sheetsOutlineModel'][_0xda8f86(0x12c)](_0x1c5ed1)}));}};Q=W([U(0x0,e[_0x3f51cc(0xbb)]),U(0x1,(0x0,e['Inject'])(E))],Q);let $=class extends e[_0x3f51cc(0x101)]{constructor(_0x2c149d,_0x2eb746,_0x2685c2){const _0x370d50=_0x3f51cc;super(),this['_config']=_0x2c149d,this[_0x370d50(0x126)]=_0x2eb746,this[_0x370d50(0x86)]=_0x2685c2;}[_0x3f51cc(0xd8)](){const _0x14058b=_0x3f51cc;this[_0x14058b(0x126)][_0x14058b(0xf3)]([E]),this[_0x14058b(0x126)][_0x14058b(0xf3)]([D]),this[_0x14058b(0x126)][_0x14058b(0xf3)]([Q]),this[_0x14058b(0x126)]['add']([K]),this[_0x14058b(0x79)](),this[_0x14058b(0x126)]['get'](E),this[_0x14058b(0x126)]['get'](D),this['_injector']['get'](Q),this[_0x14058b(0x126)][_0x14058b(0x109)](K);}[_0x3f51cc(0x79)](){const _0x235617=_0x3f51cc;[j,P,B,N][_0x235617(0xfc)](_0x42e6e7=>{const _0x41c4e2=_0x235617;this[_0x41c4e2(0x89)](this['_commandService'][_0x41c4e2(0xec)](_0x42e6e7));}),[O,k,F,M,V]['forEach'](_0x556d41=>{const _0x228337=_0x235617;this[_0x228337(0x89)](this['_commandService']['registerCommand'](_0x556d41));});}};T($,_0x3f51cc(0x103),H),T($,_0x3f51cc(0x10e),ve),T($,_0x3f51cc(0x98),ye),T($,_0x3f51cc(0x116),e[_0x3f51cc(0x12b)][_0x3f51cc(0xa4)]),$=W([(0x0,e[_0x3f51cc(0xab)])(i['UniverLicensePlugin']),U(0x1,(0x0,e['Inject'])(e[_0x3f51cc(0x73)])),U(0x2,e[_0x3f51cc(0x112)])],$),exports[_0x3f51cc(0xf7)]=j,exports['AddDimensionOutlineMutation']=O,exports[_0x3f51cc(0x10f)]=N,exports['ClearDimensionOutlinesMutation']=M,exports[_0x3f51cc(0xad)]=a,exports[_0x3f51cc(0xfb)]=s,exports['DimensionOutlineErrorReason']=o,exports[_0x3f51cc(0x91)]=P,exports[_0x3f51cc(0xbc)]=k,exports[_0x3f51cc(0x99)]='sheets-outline.config',exports['SHEET_OUTLINE_PLUGIN']=H,exports['SetDimensionOutlineCollapsedCommand']=B,exports[_0x3f51cc(0xef)]=F,exports[_0x3f51cc(0x115)]=D,exports[_0x3f51cc(0xb4)]=E,exports[_0x3f51cc(0x125)]=V,Object[_0x3f51cc(0x9f)](exports,'UniverSheetsOutlinePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3f51cc(0x8d)]=m,exports[_0x3f51cc(0x69)]=f,exports['buildHiddenRanges']=g,exports[_0x3f51cc(0x8e)]=p,exports[_0x3f51cc(0xf6)]=h,exports[_0x3f51cc(0x11e)]=l,exports['getDimensionOutlineErrorReason']=c,exports[_0x3f51cc(0x6f)]=ue,exports[_0x3f51cc(0x136)]=A,exports[_0x3f51cc(0x76)]=_,exports['transformOutlinesByDelete']=y,exports[_0x3f51cc(0x127)]=v,exports['transformOutlinesByMove']=b;
1
+ const _0x25bb4f=_0x5e99;(function(_0x2a67cb,_0x598eb0){const _0x2b6da6=_0x5e99,_0x47473b=_0x2a67cb();while(!![]){try{const _0xb9238f=-parseInt(_0x2b6da6(0xd5))/0x1*(-parseInt(_0x2b6da6(0x13f))/0x2)+parseInt(_0x2b6da6(0x150))/0x3*(parseInt(_0x2b6da6(0xff))/0x4)+-parseInt(_0x2b6da6(0x90))/0x5*(parseInt(_0x2b6da6(0x15d))/0x6)+parseInt(_0x2b6da6(0xa7))/0x7+-parseInt(_0x2b6da6(0x9c))/0x8+parseInt(_0x2b6da6(0x121))/0x9+-parseInt(_0x2b6da6(0x108))/0xa*(parseInt(_0x2b6da6(0xaf))/0xb);if(_0xb9238f===_0x598eb0)break;else _0x47473b['push'](_0x47473b['shift']());}catch(_0x57ab76){_0x47473b['push'](_0x47473b['shift']());}}}(_0x3227,0x43664),Object['defineProperty'](exports,Symbol[_0x25bb4f(0xce)],{'value':_0x25bb4f(0x147)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x144bd2){const _0x4a6a5c=_0x25bb4f;return _0x144bd2[_0x4a6a5c(0xb9)]=_0x4a6a5c(0x91),_0x144bd2[_0x4a6a5c(0x135)]=_0x4a6a5c(0xd7),_0x144bd2;}({}),o=function(_0x2117b4){const _0x242fbe=_0x25bb4f;return _0x2117b4['INVALID_RANGE']='invalid-range',_0x2117b4[_0x242fbe(0x143)]=_0x242fbe(0x11b),_0x2117b4['CROSSING']='crossing',_0x2117b4[_0x242fbe(0xca)]=_0x242fbe(0x130),_0x2117b4[_0x242fbe(0xa2)]=_0x242fbe(0xbd),_0x2117b4[_0x242fbe(0x137)]=_0x242fbe(0x8f),_0x2117b4['UNKNOWN']='unknown',_0x2117b4;}({});var s=class extends Error{constructor(_0xaf630d,_0x432741,_0x21e24c){const _0x27b94d=_0x25bb4f;super(_0x432741),this[_0x27b94d(0x158)]=_0xaf630d,this[_0x27b94d(0x168)]=_0x21e24c,this[_0x27b94d(0x132)]=_0x27b94d(0xc9);}};function c(_0x20e347){const _0x4dcbac=_0x25bb4f;return _0x20e347 instanceof s?_0x20e347[_0x4dcbac(0x158)]:_0x20e347 instanceof Error?_0x20e347[_0x4dcbac(0x138)][_0x4dcbac(0x160)](_0x4dcbac(0x105))?_0x4dcbac(0xbd):_0x20e347[_0x4dcbac(0x138)][_0x4dcbac(0x160)](_0x4dcbac(0x14f))?_0x4dcbac(0x130):_0x20e347[_0x4dcbac(0x138)][_0x4dcbac(0x160)](_0x4dcbac(0x15e))?'crossing':_0x20e347[_0x4dcbac(0x138)][_0x4dcbac(0x160)](_0x4dcbac(0x140))?_0x4dcbac(0xc3):_0x4dcbac(0xdd):_0x4dcbac(0xdd);}function _0x3227(){const _0x42e418=['MoveRowsCommand','4tAtvmg','string','1.0.0-alpha.2','WorksheetViewPermission','endRow','@univerjs-pro/sheets-outline','split\x20dimension\x20outline','params','startWith','4257460PxWvMl','count','_initRegisterCommand','Plugin','start','error$','_change$','registerPluginResource','axis','crossing','SHEETS_OUTLINE_PLUGIN_CONFIG_KEY','SheetsOutlineModel','insert','getUnitOutlines','forEach','InsertRowCommand','getRowCount','disposeWithMe','min','out-of-bounds','DimensionOutlineErrorReason','_sheetsOutlineErrorService','sourceEnd','SheetInterceptorService','toPrimitive','2861046LbDzoq','offset','get','asObservable','find','registerCommand','outlineList','sourceStart','call','removeUnit','restoreOutlines','SHEET_OUTLINE_PLUGIN','filter','sheet.mutation.remove-dimension-outline','generateRandomId','max-depth','UNIVER_SHEET','name','_outlines','onStarting','COLUMN','type','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','message','defineProperty','add','SheetPermissionCheckController','index','CommandType','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','126ZgGREX','range','complete','transformOutlinesByDelete','OUT_OF_BOUNDS','map','_config','getCurrentUnitOfType','Module','deserialize','getUnitId','localeCompare','IUniverInstanceService','_getCommandScope','redos','getUniverSheetInstance','depth','856467REdGrZ','getDimensionOutlineErrorOutlineId','next','RemoveDimensionOutlineMutation','merge','set','children','split','reason','ICommandService','interceptCommand','dimension-outline-','pushUndoRedo','24jdGRjy','Crossing','invalid-dimension-outline','includes','mergedOutline','SheetsOutlineErrorService','default','DependentOn','unitId','MUTATION','DimensionOutlineAxis','outlineId','getSheetCommandTarget','subUnitId','IConfigService','ClearDimensionOutlinesMutation','clear-range-not-contain-outline','82500pWSott','row','sheet.mutation.clear-dimension-outlines','_univerInstanceService','packageName','push','UniverLicensePlugin','length','preUndos','values','RemoveColCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2218792VBAhJg','result','Subject','transformOutlinesByMove','version','symbol','MOVE_SPLITS_OUTLINE','some','toRange','permissionCheckWithoutRange','_ensureUnitOutlines','3120187DWHpKA','COMMAND','_error$','sheet.command.remove-dimension-outline','getColumnCount','Invalid\x20outline\x20range','move','destinationIndex','22eIXmlM','setOutlines','sheet.mutation.add-dimension-outline','max','serialize','ClearDimensionOutlinesCommand','emit','SetRowHiddenMutation','mergeRanges','_resourceManagerService','ROW','_sheetInterceptorService','startRow','_injector','move-splits-outline','getActiveSheet','from','IResourceManagerService','pop','RemoveRowCommand','invalid-range','Inject','_initResource','dispose','sheet.mutation.transform-dimension-outlines','join','DimensionOutlineError','MAX_DEPTH','object','buildHiddenRanges','_commandService','toStringTag','function','endColumn','CustomCommandExecutionError','fromRange','buildDimensionOutlineTree','sort','6695OxeEBZ','sheets-outline.config','column','UniverInstanceType','Disposable','Move\x20would\x20split\x20dimension\x20outline:\x20','Invalid\x20dimension\x20outline\x20move\x20source\x20range','sheet.mutation.set-dimension-outline-collapsed','unknown','IPermissionService','collapsed','WorkbookViewPermission','getOutlines','_sheetsOutlineModel','getMaxColumns','SetColVisibleMutation','IUndoRedoService','_configService','maxIndex','getSheetId','sheet.command.set-dimension-outline-collapsed','pipe','outline','clear','debounceTime','undos','end','sequenceExecute','getSheetBySheetId','delete','Invalid\x20dimension\x20outline\x20mutation','maxDepth','SetRowVisibleMutation','preRedos','SetColHiddenMutation','has','_initCommandInterceptor','InsertColCommand','decorate','iterator','startColumn'];_0x3227=function(){return _0x42e418;};return _0x3227();}function l(_0x1cf9c0){const _0x19393b=_0x25bb4f;return _0x1cf9c0 instanceof s?_0x1cf9c0[_0x19393b(0x168)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x116144,_0x55a682){const _0x4137d4=_0x25bb4f;return _0x116144[_0x4137d4(0x165)]===_0x55a682['unitId']&&_0x116144[_0x4137d4(0x16a)]===_0x55a682['subUnitId']&&_0x116144[_0x4137d4(0x110)]===_0x55a682[_0x4137d4(0x110)];}function f(_0x53d9a5,_0x14eb52={}){const _0x13f346=_0x25bb4f;var _0x275b04;let _0x18d490=(_0x275b04=_0x14eb52[_0x13f346(0xf4)])==null?0x8:_0x275b04,_0x491832=new Map();for(let _0x2e14e8 of _0x53d9a5){let _0x34b30a=_0x2e14e8[_0x13f346(0x165)]+':'+_0x2e14e8['subUnitId']+':'+_0x2e14e8[_0x13f346(0x110)],_0x5253bd=_0x491832[_0x13f346(0x123)](_0x34b30a);_0x5253bd?_0x5253bd[_0x13f346(0x95)](_0x2e14e8):_0x491832[_0x13f346(0x155)](_0x34b30a,[_0x2e14e8]);}let _0x26c459=[];for(let _0x132918 of _0x491832[_0x13f346(0x99)]()){let _0x5ec059=[..._0x132918][_0x13f346(0xd4)](C),_0x28109b=[];for(let _0x50571a of _0x5ec059){for(oe(_0x50571a);_0x28109b[_0x13f346(0x97)]>0x0&&_0x50571a[_0x13f346(0x10c)]>_0x28109b[_0x28109b[_0x13f346(0x97)]-0x1][_0x13f346(0xef)];)_0x28109b[_0x13f346(0xc1)]();let _0x1224bf=_0x28109b[_0x28109b[_0x13f346(0x97)]-0x1];if(_0x1224bf&&_0x50571a[_0x13f346(0xef)]>_0x1224bf[_0x13f346(0xef)])throw new s(_0x13f346(0x111),_0x13f346(0x13e),_0x50571a['id']);let _0x2b1084=_0x1224bf?_0x1224bf['depth']+0x1:0x1;if(_0x2b1084>_0x18d490)throw new s(_0x13f346(0x130),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x18d490,_0x50571a['id']);let _0x14cd12={..._0x50571a,'depth':_0x2b1084,'parentId':_0x1224bf==null?void 0x0:_0x1224bf['id'],'anchor':_0x50571a['end'],'children':[]};_0x1224bf?_0x1224bf[_0x13f346(0x156)][_0x13f346(0x95)](_0x14cd12):_0x26c459[_0x13f346(0x95)](_0x14cd12),_0x28109b['push'](_0x14cd12);}}return _0x26c459;}function p(_0x349489,_0x4a0735,_0x37e943={}){const _0xf4bf7c=_0x25bb4f;if(_0x4a0735[_0xf4bf7c(0x10c)]<0x0||_0x4a0735['start']>_0x4a0735[_0xf4bf7c(0xef)])return{'valid':!0x1,'reason':_0xf4bf7c(0xc3)};if(_0x37e943[_0xf4bf7c(0xe7)]!=null&&_0x4a0735[_0xf4bf7c(0xef)]>=_0x37e943[_0xf4bf7c(0xe7)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x157a08=_0x349489[_0xf4bf7c(0x12d)](_0x34f4f3=>d(_0x34f4f3,_0x4a0735));for(let _0x48adb5 of _0x157a08)if(se(_0x48adb5,_0x4a0735))return{'valid':!0x1,'reason':_0xf4bf7c(0x111)};try{f([..._0x349489,_0x4a0735],_0x37e943);}catch(_0x35f287){let _0x2d93dd=c(_0x35f287);return _0x2d93dd==='max-depth'?{'valid':!0x1,'reason':'max-depth'}:_0x2d93dd===_0xf4bf7c(0xc3)?{'valid':!0x1,'reason':_0xf4bf7c(0xc3)}:{'valid':!0x1,'reason':_0xf4bf7c(0x111)};}return{'valid':!0x0};}function m(_0x56bfe5,_0x1fdc49,_0x526073={}){const _0x43e542=_0x25bb4f;let _0x537348=p(_0x56bfe5,_0x1fdc49,_0x526073);if(!_0x537348['valid']){var _0x2cd3e1;throw Error((_0x2cd3e1=_0x537348[_0x43e542(0x158)])==null?_0x43e542(0x15f):_0x2cd3e1);}return[..._0x56bfe5,_0x1fdc49];}function ee(_0x354a6b,_0x5e7547){const _0x5bae32=_0x25bb4f;let _0x56df38=_0x5e7547['start'],_0x1bdaaa=_0x5e7547[_0x5bae32(0xef)],_0x2211fa=[],_0x29b7f7=!0x0;for(;_0x29b7f7;){_0x29b7f7=!0x1;for(let _0x136316 of _0x354a6b)_0x2211fa['includes'](_0x136316)||!d(_0x136316,_0x5e7547)||!ie(_0x136316[_0x5bae32(0x10c)],_0x136316[_0x5bae32(0xef)],_0x56df38,_0x1bdaaa)||(_0x2211fa[_0x5bae32(0x95)](_0x136316),_0x56df38=Math[_0x5bae32(0x11a)](_0x56df38,_0x136316[_0x5bae32(0x10c)]),_0x1bdaaa=Math[_0x5bae32(0xb2)](_0x1bdaaa,_0x136316['end']),_0x29b7f7=!0x0);}if(_0x2211fa['length']===0x0)return null;let [_0x5dd3d5]=[..._0x2211fa][_0x5bae32(0xd4)](C);return{'mergedOutline':{..._0x5dd3d5,'start':_0x56df38,'end':_0x1bdaaa},'mergedOutlines':_0x2211fa};}function h(_0x660b7b,_0x26a888){const _0x4941d0=_0x25bb4f;return _0x660b7b[_0x4941d0(0x12d)](_0xbb709b=>d(_0xbb709b,_0x26a888)?!(_0xbb709b[_0x4941d0(0x10c)]>=_0x26a888[_0x4941d0(0x10c)]&&_0xbb709b[_0x4941d0(0xef)]<=_0x26a888[_0x4941d0(0xef)]):!0x0);}function g(_0x587264,_0xffd288,_0x485b97,_0x5bd189){const _0x437d4e=_0x25bb4f;return _(_0x587264[_0x437d4e(0x12d)](_0x1804fb=>_0x1804fb[_0x437d4e(0x165)]===_0xffd288&&_0x1804fb[_0x437d4e(0x16a)]===_0x485b97&&_0x1804fb[_0x437d4e(0x110)]===_0x5bd189&&_0x1804fb['collapsed'])[_0x437d4e(0x144)](_0x3d3280=>({'start':_0x3d3280['start'],'end':_0x3d3280['end']})));}function _(_0xd44ef0){const _0x2554d6=_0x25bb4f;if(_0xd44ef0[_0x2554d6(0x97)]===0x0)return[];let _0x2b7c2d=[..._0xd44ef0][_0x2554d6(0xd4)]((_0x82b97c,_0x1795de)=>_0x82b97c[_0x2554d6(0x10c)]-_0x1795de[_0x2554d6(0x10c)]||_0x82b97c[_0x2554d6(0xef)]-_0x1795de[_0x2554d6(0xef)]),_0x59f710=[];for(let _0x149560 of _0x2b7c2d){let _0x53b6eb=_0x59f710[_0x59f710['length']-0x1];!_0x53b6eb||_0x149560[_0x2554d6(0x10c)]>_0x53b6eb[_0x2554d6(0xef)]+0x1?_0x59f710['push']({..._0x149560}):_0x53b6eb[_0x2554d6(0xef)]=Math[_0x2554d6(0xb2)](_0x53b6eb[_0x2554d6(0xef)],_0x149560[_0x2554d6(0xef)]);}return _0x59f710;}function v(_0x25cb9c,_0x3b2610){const _0x397f22=_0x25bb4f;return _0x3b2610['count']<=0x0?_0x25cb9c:S(_0x25cb9c['map'](_0x5997f7=>d(_0x5997f7,_0x3b2610)?_0x3b2610[_0x397f22(0x13c)]<=_0x5997f7[_0x397f22(0x10c)]?{..._0x5997f7,'start':_0x5997f7['start']+_0x3b2610[_0x397f22(0x109)],'end':_0x5997f7[_0x397f22(0xef)]+_0x3b2610[_0x397f22(0x109)]}:_0x5997f7[_0x397f22(0x10c)]<_0x3b2610[_0x397f22(0x13c)]&&_0x3b2610['index']<=_0x5997f7[_0x397f22(0xef)]?{..._0x5997f7,'end':_0x5997f7['end']+_0x3b2610['count']}:_0x5997f7:_0x5997f7));}function y(_0x4fd79e,_0x48add1){const _0x5057a5=_0x25bb4f;if(_0x48add1[_0x5057a5(0x10c)]>_0x48add1['end'])return _0x4fd79e;let _0x573326=_0x48add1[_0x5057a5(0xef)]-_0x48add1[_0x5057a5(0x10c)]+0x1,_0x322c40=[];for(let _0x2e921b of _0x4fd79e){if(!d(_0x2e921b,_0x48add1)){_0x322c40['push'](_0x2e921b);continue;}if(_0x2e921b['end']<_0x48add1[_0x5057a5(0x10c)]){_0x322c40[_0x5057a5(0x95)](_0x2e921b);continue;}if(_0x2e921b[_0x5057a5(0x10c)]>_0x48add1[_0x5057a5(0xef)]){_0x322c40['push']({..._0x2e921b,'start':_0x2e921b[_0x5057a5(0x10c)]-_0x573326,'end':_0x2e921b[_0x5057a5(0xef)]-_0x573326});continue;}let _0x5015ab=Math[_0x5057a5(0xb2)](_0x2e921b[_0x5057a5(0x10c)],_0x48add1[_0x5057a5(0x10c)]),_0x382d85=Math['min'](_0x2e921b[_0x5057a5(0xef)],_0x48add1['end']),_0x2814f9=Math[_0x5057a5(0xb2)](0x0,_0x382d85-_0x5015ab+0x1),_0x39da3d=_0x2e921b[_0x5057a5(0xef)]-_0x2e921b[_0x5057a5(0x10c)]+0x1-_0x2814f9;if(_0x39da3d<=0x0)continue;let _0x246a75=_0x2e921b['start']<_0x48add1[_0x5057a5(0x10c)]?_0x2e921b[_0x5057a5(0x10c)]:_0x48add1[_0x5057a5(0x10c)];_0x322c40['push']({..._0x2e921b,'start':_0x246a75,'end':_0x246a75+_0x39da3d-0x1});}return S(_0x322c40);}function b(_0x45bf67,_0x27525f){const _0x4c5d37=_0x25bb4f;if(_0x27525f['sourceStart']>_0x27525f[_0x4c5d37(0x11e)])return _0x45bf67;let _0x318950=[];for(let _0x50c8d8 of _0x45bf67){if(!d(_0x50c8d8,_0x27525f)){_0x318950[_0x4c5d37(0x95)](_0x50c8d8);continue;}let _0x3f31b0=x(_0x50c8d8,_0x27525f);if(_0x3f31b0[_0x4c5d37(0x136)]===_0x4c5d37(0x157))throw new s(_0x4c5d37(0xbd),_0x4c5d37(0xda)+_0x50c8d8['id'],_0x50c8d8['id']);_0x318950[_0x4c5d37(0x95)](_0x3f31b0[_0x4c5d37(0xeb)]);}return S(_0x318950);}function x(_0x538515,_0x18bc1c){const _0x456e5f=_0x25bb4f;let _0x11c78f=te(_0x18bc1c[_0x456e5f(0x128)],_0x18bc1c[_0x456e5f(0x11e)]+0x1,_0x18bc1c[_0x456e5f(0xae)]),_0xb1c5c7=[],_0x1e4d52={'start':_0x538515[_0x456e5f(0x10c)],'end':_0x538515[_0x456e5f(0xef)]+0x1};for(let _0x17a1cd of _0x11c78f){let _0x262994=ne(_0x1e4d52,_0x17a1cd[_0x456e5f(0x140)]);_0x262994&&_0xb1c5c7[_0x456e5f(0x95)]({'start':_0x262994['start']+_0x17a1cd[_0x456e5f(0x122)],'end':_0x262994[_0x456e5f(0xef)]+_0x17a1cd[_0x456e5f(0x122)]});}let _0x1d578e=re(_0xb1c5c7);return _0x1d578e[_0x456e5f(0x97)]===0x1?{'type':'ok','outline':{..._0x538515,'start':_0x1d578e[0x0][_0x456e5f(0x10c)],'end':_0x1d578e[0x0][_0x456e5f(0xef)]-0x1}}:{'type':_0x456e5f(0x157),'outline':_0x538515,'ranges':_0x1d578e};}function te(_0x365fa4,_0x4ac8a5,_0x5e7508){const _0x163dca=_0x25bb4f;let _0x37af4d=_0x4ac8a5-_0x365fa4;if(_0x37af4d<=0x0)throw Error(_0x163dca(0xdb));return _0x5e7508>=_0x365fa4&&_0x5e7508<=_0x4ac8a5?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x5e7508<_0x365fa4?[{'range':{'start':0x0,'end':_0x5e7508},'offset':0x0},{'range':{'start':_0x5e7508,'end':_0x365fa4},'offset':_0x37af4d},{'range':{'start':_0x365fa4,'end':_0x4ac8a5},'offset':_0x5e7508-_0x365fa4},{'range':{'start':_0x4ac8a5,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x365fa4},'offset':0x0},{'range':{'start':_0x365fa4,'end':_0x4ac8a5},'offset':_0x5e7508-_0x4ac8a5},{'range':{'start':_0x4ac8a5,'end':_0x5e7508},'offset':-_0x37af4d},{'range':{'start':_0x5e7508,'end':u},'offset':0x0}];}function ne(_0x5f0a72,_0x149961){const _0x1d869c=_0x25bb4f;let _0x25c120=Math[_0x1d869c(0xb2)](_0x5f0a72['start'],_0x149961[_0x1d869c(0x10c)]),_0x4c5992=Math['min'](_0x5f0a72[_0x1d869c(0xef)],_0x149961[_0x1d869c(0xef)]);return _0x25c120>=_0x4c5992?null:{'start':_0x25c120,'end':_0x4c5992};}function re(_0x11d312){const _0x48c697=_0x25bb4f;if(_0x11d312[_0x48c697(0x97)]===0x0)return[];let _0x18538f=[..._0x11d312][_0x48c697(0xd4)]((_0x320da7,_0x28ce9a)=>_0x320da7[_0x48c697(0x10c)]-_0x28ce9a[_0x48c697(0x10c)]||_0x320da7['end']-_0x28ce9a[_0x48c697(0xef)]),_0x443ca3=[];for(let _0x9933ae of _0x18538f){let _0x329b95=_0x443ca3[_0x443ca3[_0x48c697(0x97)]-0x1];!_0x329b95||_0x9933ae[_0x48c697(0x10c)]>_0x329b95['end']?_0x443ca3['push']({..._0x9933ae}):_0x329b95[_0x48c697(0xef)]=Math[_0x48c697(0xb2)](_0x329b95[_0x48c697(0xef)],_0x9933ae[_0x48c697(0xef)]);}return _0x443ca3;}function ie(_0x257519,_0x105320,_0x786473,_0x82e9fa){return _0x105320+0x1===_0x786473||_0x82e9fa+0x1===_0x257519;}function S(_0x33083e){let _0x3d3e54=ae(_0x33083e);return f(_0x3d3e54),_0x3d3e54;}function ae(_0x573736){const _0x16dfa7=_0x25bb4f;let _0x48dffe=new Map();for(let _0x588533 of _0x573736){let _0x289f82=[_0x588533[_0x16dfa7(0x165)],_0x588533[_0x16dfa7(0x16a)],_0x588533[_0x16dfa7(0x110)],_0x588533[_0x16dfa7(0x10c)],_0x588533[_0x16dfa7(0xef)]][_0x16dfa7(0xc8)](':'),_0x45e6b7=_0x48dffe[_0x16dfa7(0x123)](_0x289f82);if(!_0x45e6b7){_0x48dffe[_0x16dfa7(0x155)](_0x289f82,_0x588533);continue;}_0x48dffe[_0x16dfa7(0x155)](_0x289f82,{..._0x45e6b7,'collapsed':_0x45e6b7[_0x16dfa7(0xdf)]||_0x588533['collapsed']});}return Array[_0x16dfa7(0xbf)](_0x48dffe[_0x16dfa7(0x99)]());}function C(_0x48fb7a,_0x314933){const _0x56834e=_0x25bb4f;return _0x48fb7a['unitId']===_0x314933[_0x56834e(0x165)]?_0x48fb7a[_0x56834e(0x16a)]===_0x314933['subUnitId']?_0x48fb7a[_0x56834e(0x110)]===_0x314933[_0x56834e(0x110)]?_0x48fb7a['start']===_0x314933[_0x56834e(0x10c)]?_0x314933[_0x56834e(0xef)]-_0x48fb7a[_0x56834e(0xef)]:_0x48fb7a['start']-_0x314933[_0x56834e(0x10c)]:_0x48fb7a[_0x56834e(0x110)][_0x56834e(0x14a)](_0x314933[_0x56834e(0x110)]):_0x48fb7a['subUnitId'][_0x56834e(0x14a)](_0x314933['subUnitId']):_0x48fb7a['unitId'][_0x56834e(0x14a)](_0x314933[_0x56834e(0x165)]);}function oe(_0x5f1a69){const _0x3c7e2f=_0x25bb4f;if(_0x5f1a69[_0x3c7e2f(0x10c)]>_0x5f1a69[_0x3c7e2f(0xef)])throw new s(_0x3c7e2f(0xc3),_0x3c7e2f(0xac),_0x5f1a69['id']);}function se(_0x20a108,_0x315612){const _0x2f2c58=_0x25bb4f;let _0x5e2d08=_0x20a108[_0x2f2c58(0x10c)]<=_0x315612[_0x2f2c58(0xef)]&&_0x315612[_0x2f2c58(0x10c)]<=_0x20a108['end'],_0x2929bd=_0x20a108[_0x2f2c58(0x10c)]<=_0x315612['start']&&_0x315612[_0x2f2c58(0xef)]<=_0x20a108[_0x2f2c58(0xef)],_0x2c3225=_0x315612[_0x2f2c58(0x10c)]<=_0x20a108['start']&&_0x20a108[_0x2f2c58(0xef)]<=_0x315612['end'];return _0x5e2d08&&!_0x2929bd&&!_0x2c3225;}function w(_0x2e7f99){'@babel/helpers - typeof';const _0x2720ee=_0x25bb4f;return w=typeof Symbol==_0x2720ee(0xcf)&&typeof Symbol[_0x2720ee(0xfc)]==_0x2720ee(0xa1)?function(_0x2fa8aa){return typeof _0x2fa8aa;}:function(_0x1cc99c){const _0x210418=_0x2720ee;return _0x1cc99c&&typeof Symbol==_0x210418(0xcf)&&_0x1cc99c['constructor']===Symbol&&_0x1cc99c!==Symbol['prototype']?_0x210418(0xa1):typeof _0x1cc99c;},w(_0x2e7f99);}function ce(_0x350cc9,_0xe29b9d){const _0x5cdfa9=_0x25bb4f;if(w(_0x350cc9)!=_0x5cdfa9(0xcb)||!_0x350cc9)return _0x350cc9;var _0x24b449=_0x350cc9[Symbol[_0x5cdfa9(0x120)]];if(_0x24b449!==void 0x0){var _0x3056dd=_0x24b449[_0x5cdfa9(0x129)](_0x350cc9,_0xe29b9d||_0x5cdfa9(0x163));if(w(_0x3056dd)!=_0x5cdfa9(0xcb))return _0x3056dd;throw TypeError(_0x5cdfa9(0x9b));}return(_0xe29b9d===_0x5cdfa9(0x100)?String:Number)(_0x350cc9);}function le(_0x4a7591){const _0x2e992b=_0x25bb4f;var _0x370a6d=ce(_0x4a7591,'string');return w(_0x370a6d)==_0x2e992b(0xa1)?_0x370a6d:_0x370a6d+'';}function T(_0x41121e,_0x29a576,_0x2d6d99){const _0x374517=_0x25bb4f;return(_0x29a576=le(_0x29a576))in _0x41121e?Object[_0x374517(0x139)](_0x41121e,_0x29a576,{'value':_0x2d6d99,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41121e[_0x29a576]=_0x2d6d99,_0x41121e;}var E=class extends e[_0x25bb4f(0xd9)]{constructor(..._0x201556){const _0x372be3=_0x25bb4f;super(..._0x201556),T(this,_0x372be3(0x133),new Map()),T(this,_0x372be3(0x10e),new n[(_0x372be3(0x9e))]()),T(this,'change$',this[_0x372be3(0x10e)][_0x372be3(0x124)]());}['getOutlines'](_0x3a6b63,_0x1ba856){const _0xb45667=_0x25bb4f;var _0x4f6944,_0xf04313;return[...(_0x4f6944=(_0xf04313=this['_outlines'][_0xb45667(0x123)](_0x3a6b63))==null?void 0x0:_0xf04313[_0xb45667(0x123)](_0x1ba856))==null?[]:_0x4f6944];}[_0x25bb4f(0x115)](_0x1cdf6b){const _0x52f9dc=_0x25bb4f;let _0x5697b2=this['_outlines'][_0x52f9dc(0x123)](_0x1cdf6b),_0x1580a9=new Map();return _0x5697b2==null||_0x5697b2[_0x52f9dc(0x116)]((_0x417bc2,_0xe04572)=>{_0x1580a9['set'](_0xe04572,[..._0x417bc2]);}),_0x1580a9;}[_0x25bb4f(0xb0)](_0x56181a,_0x285174,_0x3ccfff){const _0x2a9b52=_0x25bb4f;this[_0x2a9b52(0xa6)](_0x56181a)['set'](_0x285174,[..._0x3ccfff]),this[_0x2a9b52(0x10e)][_0x2a9b52(0x152)]({'unitId':_0x56181a,'subUnitId':_0x285174});}[_0x25bb4f(0x12a)](_0x58e12c){const _0x453988=_0x25bb4f;this[_0x453988(0x133)]['delete'](_0x58e12c),this[_0x453988(0x10e)]['next']({'unitId':_0x58e12c});}[_0x25bb4f(0xb3)](_0x4236f9){const _0x5e5c65=_0x25bb4f;let _0x5c8318=this[_0x5e5c65(0x133)][_0x5e5c65(0x123)](_0x4236f9),_0x21ce06={};return _0x5c8318==null||_0x5c8318[_0x5e5c65(0x116)]((_0x1419af,_0x32ceed)=>{_0x21ce06[_0x32ceed]={'outlineList':[..._0x1419af]};}),_0x21ce06;}['deserialize'](_0x48ba1a,_0xd24d3e){const _0x58f981=_0x25bb4f;let _0x51acca=new Map();Object['entries'](_0xd24d3e)[_0x58f981(0x116)](([_0x31987a,_0x5a840f])=>{const _0x306961=_0x58f981;var _0x36359c;_0x51acca['set'](_0x31987a,[...(_0x36359c=_0x5a840f[_0x306961(0x127)])==null?[]:_0x36359c]);}),this[_0x58f981(0x133)][_0x58f981(0x155)](_0x48ba1a,_0x51acca),this[_0x58f981(0x10e)][_0x58f981(0x152)]({'unitId':_0x48ba1a});}[_0x25bb4f(0xc6)](){const _0x29fc40=_0x25bb4f;super['dispose'](),this[_0x29fc40(0x133)][_0x29fc40(0xec)](),this[_0x29fc40(0x10e)][_0x29fc40(0x141)]();}[_0x25bb4f(0xa6)](_0x280254){const _0x21aba5=_0x25bb4f;let _0x2a8f2d=this['_outlines']['get'](_0x280254);return _0x2a8f2d||(_0x2a8f2d=new Map(),this[_0x21aba5(0x133)][_0x21aba5(0x155)](_0x280254,_0x2a8f2d)),_0x2a8f2d;}},D=class extends e[_0x25bb4f(0xd9)]{constructor(..._0x34cf38){const _0x4107c2=_0x25bb4f;super(..._0x34cf38),T(this,_0x4107c2(0xa9),new n[(_0x4107c2(0x9e))]()),T(this,_0x4107c2(0x10d),this['_error$'][_0x4107c2(0x124)]());}[_0x25bb4f(0xb5)](_0x4689c8){const _0x2e3368=_0x25bb4f;this[_0x2e3368(0xa9)][_0x2e3368(0x152)](_0x4689c8);}['dispose'](){const _0x26f855=_0x25bb4f;super[_0x26f855(0xc6)](),this[_0x26f855(0xa9)]['complete']();}};const O={'id':_0x25bb4f(0xb1),'type':e['CommandType'][_0x25bb4f(0x166)],'handler':(_0x94d56,_0x222796)=>{const _0x3da6af=_0x25bb4f;let _0x50b811=_0x94d56[_0x3da6af(0x123)](E),_0x533e57=_0x50b811[_0x3da6af(0xe1)](_0x222796['unitId'],_0x222796['subUnitId']);return _0x50b811[_0x3da6af(0xb0)](_0x222796[_0x3da6af(0x165)],_0x222796['subUnitId'],m(_0x533e57,_0x222796[_0x3da6af(0xeb)])),!0x0;}},k={'id':_0x25bb4f(0x12e),'type':e[_0x25bb4f(0x13d)][_0x25bb4f(0x166)],'handler':(_0x4b2502,_0x295755)=>{const _0x4e1d7f=_0x25bb4f;let _0x58ef19=_0x4b2502[_0x4e1d7f(0x123)](E),_0x2ceac2=_0x58ef19['getOutlines'](_0x295755[_0x4e1d7f(0x165)],_0x295755[_0x4e1d7f(0x16a)]);return _0x58ef19[_0x4e1d7f(0xb0)](_0x295755[_0x4e1d7f(0x165)],_0x295755['subUnitId'],_0x2ceac2[_0x4e1d7f(0x12d)](_0x1b98c7=>_0x1b98c7['id']!==_0x295755[_0x4e1d7f(0x168)])),!0x0;}};function A(_0x5f2379,_0x52972b,_0x3fc74b){const _0x40ef47=_0x25bb4f;let _0x28d1e0=de(_0x5f2379);return _0x28d1e0?_0x28d1e0[_0x40ef47(0xa5)]({'workbookTypes':[t[_0x40ef47(0xe0)]],'worksheetTypes':[t[_0x40ef47(0x102)]]},_0x52972b,_0x3fc74b):!0x0;}function ue(_0x31acd9,_0x1b993d,_0x2ae603){const _0x11ba82=_0x25bb4f;var _0x19cac5;let _0x107db6=fe(_0x31acd9);return((_0x19cac5=_0x107db6==null?void 0x0:_0x107db6['permissionPointUpdate$'])==null?(0x0,n['of'])(null):_0x19cac5)[_0x11ba82(0xea)]((0x0,r[_0x11ba82(0xed)])(0x64),(0x0,r[_0x11ba82(0x107)])(null),(0x0,r[_0x11ba82(0x144)])(()=>A(_0x31acd9,_0x1b993d,_0x2ae603)));}function de(_0x570470){const _0x1734d6=_0x25bb4f;if(typeof _0x570470[_0x1734d6(0xf8)]==_0x1734d6(0xcf)&&!_0x570470[_0x1734d6(0xf8)](t[_0x1734d6(0x13b)]))return null;try{return _0x570470[_0x1734d6(0x123)](t[_0x1734d6(0x13b)]);}catch{return null;}}function fe(_0x1de8d5){const _0x2b34c4=_0x25bb4f;if(typeof _0x1de8d5[_0x2b34c4(0xf8)]==_0x2b34c4(0xcf)&&!_0x1de8d5['has'](e[_0x2b34c4(0xde)]))return null;try{return _0x1de8d5[_0x2b34c4(0x123)](e[_0x2b34c4(0xde)]);}catch{return null;}}const j={'id':'sheet.command.add-dimension-outline','type':e[_0x25bb4f(0x13d)]['COMMAND'],'handler':(_0x9e0510,_0x559844)=>{const _0x451523=_0x25bb4f;var _0x415434,_0x29e502;if(!_0x559844)return!0x1;let _0x5d9907=(0x0,t[_0x451523(0x169)])(_0x9e0510[_0x451523(0x123)](e['IUniverInstanceService']),_0x559844);if(!_0x5d9907)return!0x1;let {unitId:_0x5da31a,subUnitId:_0x2d6495,worksheet:_0x690f7a}=_0x5d9907;if(!A(_0x9e0510,_0x5da31a,_0x2d6495))return!0x1;let _0x4edf9d=_0x9e0510['get'](E),_0x39e9f4={'id':_0x451523(0x15b)+(0x0,e[_0x451523(0x12f)])(0x6),'unitId':_0x5da31a,'subUnitId':_0x2d6495,'axis':_0x559844[_0x451523(0x110)],'start':_0x559844[_0x451523(0x10c)],'end':_0x559844[_0x451523(0xef)],'collapsed':!0x1},_0x4d4214=_0x559844[_0x451523(0x110)]==='row'?_0x690f7a[_0x451523(0x118)]():_0x690f7a[_0x451523(0xab)](),_0x4ed722=_0x4edf9d[_0x451523(0xe1)](_0x5da31a,_0x2d6495),_0x1243c3=ee(_0x4ed722,_0x39e9f4),_0x38ab1f=(_0x415434=_0x1243c3==null?void 0x0:_0x1243c3['mergedOutlines'])==null?[]:_0x415434,_0x3cf72e=(_0x29e502=_0x1243c3==null?void 0x0:_0x1243c3[_0x451523(0x161)])==null?_0x39e9f4:_0x29e502,_0x1e7810=p(_0x1243c3?_0x4ed722[_0x451523(0x12d)](_0x3bee79=>!_0x38ab1f['some'](_0x37c38f=>_0x37c38f['id']===_0x3bee79['id'])):_0x4ed722,_0x3cf72e,{'maxIndex':_0x4d4214});if(!_0x1e7810['valid']){var _0x554819;return _0x9e0510[_0x451523(0x123)](D)[_0x451523(0xb5)]({'reason':(_0x554819=_0x1e7810['reason'])==null?_0x451523(0xdd):_0x554819,'commandId':j['id'],'unitId':_0x5da31a,'subUnitId':_0x2d6495,'axis':_0x559844[_0x451523(0x110)],'outlineId':_0x3cf72e['id']}),!0x1;}let _0x200473=[..._0x38ab1f[_0x451523(0x144)](_0x136e72=>({'id':k['id'],'params':{'unitId':_0x5da31a,'subUnitId':_0x2d6495,'outlineId':_0x136e72['id']}})),{'id':O['id'],'params':{'unitId':_0x5da31a,'subUnitId':_0x2d6495,'outline':_0x3cf72e}}],_0x4cf5a7=[{'id':k['id'],'params':{'unitId':_0x5da31a,'subUnitId':_0x2d6495,'outlineId':_0x3cf72e['id']}},..._0x38ab1f[_0x451523(0x144)](_0x3b40ea=>({'id':O['id'],'params':{'unitId':_0x5da31a,'subUnitId':_0x2d6495,'outline':_0x3b40ea}}))];return(0x0,e[_0x451523(0xf0)])(_0x200473,_0x9e0510[_0x451523(0x123)](e[_0x451523(0x159)]))['result']?(_0x9e0510['get'](e[_0x451523(0xe5)])['pushUndoRedo']({'unitID':_0x5da31a,'undoMutations':_0x4cf5a7,'redoMutations':_0x200473}),!0x0):!0x1;}},M={'id':_0x25bb4f(0x92),'type':e[_0x25bb4f(0x13d)][_0x25bb4f(0x166)],'handler':(_0x40acb2,_0x4e987b)=>{const _0x14eb1f=_0x25bb4f;let _0x1e1fcf=_0x40acb2['get'](E),_0xacbfef=_0x1e1fcf[_0x14eb1f(0xe1)](_0x4e987b[_0x14eb1f(0x165)],_0x4e987b['subUnitId']);return _0x1e1fcf[_0x14eb1f(0xb0)](_0x4e987b[_0x14eb1f(0x165)],_0x4e987b[_0x14eb1f(0x16a)],h(_0xacbfef,_0x4e987b)),!0x0;}},N={'id':'sheet.command.clear-dimension-outlines','type':e[_0x25bb4f(0x13d)]['COMMAND'],'handler':(_0x431638,_0x1fe4f3)=>{const _0x51d609=_0x25bb4f;if(!_0x1fe4f3)return!0x1;let _0x1c595a=(0x0,t[_0x51d609(0x169)])(_0x431638[_0x51d609(0x123)](e[_0x51d609(0x14b)]),_0x1fe4f3);if(!_0x1c595a)return!0x1;let {unitId:_0x5e0dce,subUnitId:_0xa640f6}=_0x1c595a;if(!A(_0x431638,_0x5e0dce,_0xa640f6))return!0x1;let _0x8f09e5={'unitId':_0x5e0dce,'subUnitId':_0xa640f6,'axis':_0x1fe4f3[_0x51d609(0x110)],'start':_0x1fe4f3[_0x51d609(0x10c)],'end':_0x1fe4f3[_0x51d609(0xef)]},_0x56209f=_0x431638[_0x51d609(0x123)](E)['getOutlines'](_0x5e0dce,_0xa640f6)[_0x51d609(0x12d)](_0x37db09=>d(_0x37db09,_0x8f09e5)&&_0x37db09[_0x51d609(0x10c)]>=_0x1fe4f3[_0x51d609(0x10c)]&&_0x37db09[_0x51d609(0xef)]<=_0x1fe4f3[_0x51d609(0xef)]);if(_0x56209f[_0x51d609(0x97)]===0x0)return _0x431638[_0x51d609(0x123)](D)[_0x51d609(0xb5)]({'reason':'clear-range-not-contain-outline','commandId':N['id'],'unitId':_0x5e0dce,'subUnitId':_0xa640f6,'axis':_0x1fe4f3['axis']}),!0x1;let _0x27e6a7=[{'id':M['id'],'params':{..._0x8f09e5,'removedOutlineIds':_0x56209f[_0x51d609(0x144)](_0x1a5be4=>_0x1a5be4['id'])}}],_0x53f0ea=_0x56209f[_0x51d609(0x144)](_0x8fc07d=>({'id':O['id'],'params':{'unitId':_0x5e0dce,'subUnitId':_0xa640f6,'outline':_0x8fc07d}}));return(0x0,e[_0x51d609(0xf0)])(_0x27e6a7,_0x431638[_0x51d609(0x123)](e['ICommandService']))['result']?(_0x431638[_0x51d609(0x123)](e['IUndoRedoService'])[_0x51d609(0x15c)]({'unitID':_0x5e0dce,'undoMutations':_0x53f0ea,'redoMutations':_0x27e6a7}),!0x0):!0x1;}},P={'id':_0x25bb4f(0xaa),'type':e['CommandType']['COMMAND'],'handler':(_0x152feb,_0x37e2d9)=>{const _0x28367e=_0x25bb4f;if(!_0x37e2d9)return!0x1;let _0x1341fe=(0x0,t[_0x28367e(0x169)])(_0x152feb[_0x28367e(0x123)](e[_0x28367e(0x14b)]),_0x37e2d9);if(!_0x1341fe)return!0x1;let {unitId:_0x159b53,subUnitId:_0x527e71}=_0x1341fe;if(!A(_0x152feb,_0x159b53,_0x527e71))return!0x1;let _0x4bd069=_0x152feb['get'](E)[_0x28367e(0xe1)](_0x159b53,_0x527e71)[_0x28367e(0x125)](_0x1ca3b8=>_0x1ca3b8['id']===_0x37e2d9[_0x28367e(0x168)]);if(!_0x4bd069)return!0x1;let _0xd9898=[{'id':k['id'],'params':{'unitId':_0x159b53,'subUnitId':_0x527e71,'outlineId':_0x4bd069['id'],'outline':_0x4bd069}}],_0x2c6046=[{'id':O['id'],'params':{'unitId':_0x159b53,'subUnitId':_0x527e71,'outline':_0x4bd069}}];return(0x0,e[_0x28367e(0xf0)])(_0xd9898,_0x152feb[_0x28367e(0x123)](e[_0x28367e(0x159)]))[_0x28367e(0x9d)]?(_0x152feb[_0x28367e(0x123)](e[_0x28367e(0xe5)])[_0x28367e(0x15c)]({'unitID':_0x159b53,'undoMutations':_0x2c6046,'redoMutations':_0xd9898}),!0x0):!0x1;}},F={'id':_0x25bb4f(0xdc),'type':e['CommandType'][_0x25bb4f(0x166)],'handler':(_0x2903e3,_0xa19930)=>{const _0x7cbd1=_0x25bb4f;let _0x59d113=_0x2903e3[_0x7cbd1(0x123)](E),_0x57ebd2=_0x59d113[_0x7cbd1(0xe1)](_0xa19930[_0x7cbd1(0x165)],_0xa19930[_0x7cbd1(0x16a)]),_0x578524=_0x57ebd2[_0x7cbd1(0x125)](_0x4edc26=>_0x4edc26['id']===_0xa19930[_0x7cbd1(0x168)]);return _0x578524&&_0x59d113[_0x7cbd1(0xb0)](_0xa19930['unitId'],_0xa19930['subUnitId'],_0x57ebd2[_0x7cbd1(0x144)](_0x4ad4dc=>_0x4ad4dc[_0x7cbd1(0x165)]!==_0x578524[_0x7cbd1(0x165)]||_0x4ad4dc[_0x7cbd1(0x16a)]!==_0x578524['subUnitId']||_0x4ad4dc['axis']!==_0x578524['axis']||_0x4ad4dc[_0x7cbd1(0x10c)]!==_0x578524[_0x7cbd1(0x10c)]||_0x4ad4dc[_0x7cbd1(0xef)]!==_0x578524['end']?_0x4ad4dc:{..._0x4ad4dc,'collapsed':_0xa19930[_0x7cbd1(0xdf)]})),!0x0;}};function I(_0x623967,_0x13e235,_0x5c9f73,_0x480aff){const _0x543ec9=_0x25bb4f;return _0x623967==='row'?{'startRow':_0x13e235,'endRow':_0x5c9f73,'startColumn':0x0,'endColumn':_0x480aff[_0x543ec9(0xe3)]()-0x1}:{'startRow':0x0,'endRow':_0x480aff[_0x543ec9(0x118)]()-0x1,'startColumn':_0x13e235,'endColumn':_0x5c9f73};}function pe(_0x520a64){const _0x32e2e4=_0x25bb4f;return _0x520a64==='row'?t[_0x32e2e4(0xb6)]['id']:t[_0x32e2e4(0xf7)]['id'];}function me(_0x540218){const _0x2c7c2f=_0x25bb4f;return _0x540218===_0x2c7c2f(0x91)?t[_0x2c7c2f(0xf5)]['id']:t[_0x2c7c2f(0xe4)]['id'];}function L(_0x543eb3,_0x429145,_0x499228,_0x181d3f){const _0xc71a60=_0x25bb4f;let _0x5c3778=_0x429145?[I(_0x543eb3[_0xc71a60(0x110)],_0x543eb3[_0xc71a60(0x10c)],_0x543eb3['end'],_0x499228)]:he(_0x543eb3,_0x181d3f,_0x499228),_0x459e48=_0x429145?pe(_0x543eb3[_0xc71a60(0x110)]):me(_0x543eb3[_0xc71a60(0x110)]);return[{'id':F['id'],'params':{'unitId':_0x543eb3[_0xc71a60(0x165)],'subUnitId':_0x543eb3[_0xc71a60(0x16a)],'outlineId':_0x543eb3['id'],'outline':_0x543eb3,'collapsed':_0x429145}},..._0x5c3778[_0xc71a60(0x144)](_0xaeb113=>({'id':_0x459e48,'params':{'unitId':_0x543eb3['unitId'],'subUnitId':_0x543eb3[_0xc71a60(0x16a)],'ranges':[_0xaeb113],'dimensionOutlineId':_0x543eb3['id']}}))];}function he(_0x1b0f77,_0x147135,_0x32e40b){const _0x4140b4=_0x25bb4f;let _0x2a69cc=g(_0x147135[_0x4140b4(0x144)](_0x5822b0=>ge(_0x5822b0,_0x1b0f77)?{..._0x5822b0,'collapsed':!0x1}:_0x5822b0),_0x1b0f77[_0x4140b4(0x165)],_0x1b0f77['subUnitId'],_0x1b0f77[_0x4140b4(0x110)]);return _e({'start':_0x1b0f77[_0x4140b4(0x10c)],'end':_0x1b0f77['end']},_0x2a69cc)[_0x4140b4(0x144)](_0xab496d=>I(_0x1b0f77[_0x4140b4(0x110)],_0xab496d[_0x4140b4(0x10c)],_0xab496d[_0x4140b4(0xef)],_0x32e40b));}function ge(_0xac2af1,_0x879778){const _0x1bc246=_0x25bb4f;return _0xac2af1['unitId']===_0x879778[_0x1bc246(0x165)]&&_0xac2af1[_0x1bc246(0x16a)]===_0x879778[_0x1bc246(0x16a)]&&_0xac2af1[_0x1bc246(0x110)]===_0x879778[_0x1bc246(0x110)]&&_0xac2af1[_0x1bc246(0x10c)]===_0x879778[_0x1bc246(0x10c)]&&_0xac2af1[_0x1bc246(0xef)]===_0x879778[_0x1bc246(0xef)];}function _e(_0x40b6eb,_0x519554){const _0x3ed1ba=_0x25bb4f;let _0x1a9ec6=_0x40b6eb[_0x3ed1ba(0x10c)],_0x2a2ffe=[];for(let _0x5e63ef of _0x519554)if(!(_0x5e63ef['end']<_0x1a9ec6||_0x5e63ef[_0x3ed1ba(0x10c)]>_0x40b6eb[_0x3ed1ba(0xef)])&&(_0x5e63ef['start']>_0x1a9ec6&&_0x2a2ffe[_0x3ed1ba(0x95)]({'start':_0x1a9ec6,'end':Math[_0x3ed1ba(0x11a)](_0x5e63ef[_0x3ed1ba(0x10c)]-0x1,_0x40b6eb['end'])}),_0x1a9ec6=Math['max'](_0x1a9ec6,_0x5e63ef[_0x3ed1ba(0xef)]+0x1),_0x1a9ec6>_0x40b6eb[_0x3ed1ba(0xef)]))break;return _0x1a9ec6<=_0x40b6eb['end']&&_0x2a2ffe[_0x3ed1ba(0x95)]({'start':_0x1a9ec6,'end':_0x40b6eb[_0x3ed1ba(0xef)]}),_0x2a2ffe;}const R={'id':_0x25bb4f(0xe9),'type':e[_0x25bb4f(0x13d)][_0x25bb4f(0xa8)],'handler':(_0x3b970a,_0x17d1ae)=>{const _0x1d067b=_0x25bb4f;if(!_0x17d1ae)return!0x1;let _0x128e63=(0x0,t[_0x1d067b(0x169)])(_0x3b970a[_0x1d067b(0x123)](e[_0x1d067b(0x14b)]),_0x17d1ae);if(!_0x128e63)return!0x1;let {unitId:_0x2b0c92,subUnitId:_0x56bc10,worksheet:_0x173396}=_0x128e63;if(!A(_0x3b970a,_0x2b0c92,_0x56bc10))return!0x1;let _0x54aeff=_0x3b970a['get'](E)['getOutlines'](_0x2b0c92,_0x56bc10),_0x4d4458=_0x54aeff[_0x1d067b(0x125)](_0x469ea1=>_0x469ea1['id']===_0x17d1ae[_0x1d067b(0x168)]);if(!_0x4d4458||_0x4d4458[_0x1d067b(0xdf)]===_0x17d1ae[_0x1d067b(0xdf)])return!0x1;let _0x4ba225=L(_0x4d4458,_0x17d1ae[_0x1d067b(0xdf)],_0x173396,_0x54aeff),_0xbae9ef=L(_0x4d4458,!_0x17d1ae['collapsed'],_0x173396,_0x54aeff);return(0x0,e[_0x1d067b(0xf0)])(_0x4ba225,_0x3b970a['get'](e['ICommandService']))[_0x1d067b(0x9d)]?(_0x3b970a['get'](e[_0x1d067b(0xe5)])[_0x1d067b(0x15c)]({'unitID':_0x2b0c92,'undoMutations':_0xbae9ef,'redoMutations':_0x4ba225}),!0x0):!0x1;}},z={'id':_0x25bb4f(0xc7),'type':e['CommandType'][_0x25bb4f(0x166)],'handler':(_0x51a7a9,_0x1aefca)=>{const _0x28ff81=_0x25bb4f;let _0x1b114a=_0x51a7a9[_0x28ff81(0x123)](E),_0x508094=ve(_0x1b114a[_0x28ff81(0xe1)](_0x1aefca[_0x28ff81(0x165)],_0x1aefca[_0x28ff81(0x16a)]),_0x1aefca);return _0x1b114a[_0x28ff81(0xb0)](_0x1aefca['unitId'],_0x1aefca[_0x28ff81(0x16a)],_0x508094),!0x0;}};function ve(_0x21f3ed,_0xdf8b62){const _0x4a861f=_0x25bb4f;switch(_0xdf8b62[_0x4a861f(0x136)]){case _0x4a861f(0x114):return _0xdf8b62[_0x4a861f(0x12b)]?ye(_0x21f3ed,_0xdf8b62):v(_0x21f3ed,_0xdf8b62);case'delete':return y(_0x21f3ed,_0xdf8b62);case'move':return b(_0x21f3ed,_0xdf8b62);}}function ye(_0x5e7b94,_0x2383e8){const _0x29dd5b=_0x25bb4f;return[..._0x5e7b94[_0x29dd5b(0x12d)](_0x374f05=>_0x374f05[_0x29dd5b(0x165)]!==_0x2383e8['unitId']||_0x374f05['subUnitId']!==_0x2383e8[_0x29dd5b(0x16a)]||_0x374f05['axis']!==_0x2383e8[_0x29dd5b(0x110)]),..._0x2383e8[_0x29dd5b(0x12b)]];}const B=_0x25bb4f(0x12c),V=_0x25bb4f(0xd6),H={};var be=_0x25bb4f(0x104),xe=_0x25bb4f(0x101);function U(_0x472f5b,_0x5e55ff){return function(_0x22fbc5,_0x473427){_0x5e55ff(_0x22fbc5,_0x473427,_0x472f5b);};}function W(_0x37c7d5,_0x471678,_0x4cfdf7,_0x5d8be9){const _0x14a16b=_0x25bb4f;var _0x1cf975=arguments[_0x14a16b(0x97)],_0xeebfe=_0x1cf975<0x3?_0x471678:_0x5d8be9===null?_0x5d8be9=Object['getOwnPropertyDescriptor'](_0x471678,_0x4cfdf7):_0x5d8be9,_0x33a0cc;if(typeof Reflect==_0x14a16b(0xcb)&&typeof Reflect[_0x14a16b(0xfb)]==_0x14a16b(0xcf))_0xeebfe=Reflect[_0x14a16b(0xfb)](_0x37c7d5,_0x471678,_0x4cfdf7,_0x5d8be9);else{for(var _0x31bc26=_0x37c7d5[_0x14a16b(0x97)]-0x1;_0x31bc26>=0x0;_0x31bc26--)(_0x33a0cc=_0x37c7d5[_0x31bc26])&&(_0xeebfe=(_0x1cf975<0x3?_0x33a0cc(_0xeebfe):_0x1cf975>0x3?_0x33a0cc(_0x471678,_0x4cfdf7,_0xeebfe):_0x33a0cc(_0x471678,_0x4cfdf7))||_0xeebfe);}return _0x1cf975>0x3&&_0xeebfe&&Object['defineProperty'](_0x471678,_0x4cfdf7,_0xeebfe),_0xeebfe;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e[_0x25bb4f(0xd9)]{constructor(_0x3840fb,_0x2c05bd,_0x431887,_0x23854a){const _0x18e338=_0x25bb4f;super(),this['_univerInstanceService']=_0x3840fb,this[_0x18e338(0xba)]=_0x2c05bd,this[_0x18e338(0xe2)]=_0x431887,this[_0x18e338(0x11d)]=_0x23854a,this[_0x18e338(0xf9)]();}[_0x25bb4f(0xf9)](){const _0x5108fe=_0x25bb4f;this[_0x5108fe(0x119)](this[_0x5108fe(0xba)][_0x5108fe(0x15a)]({'getMutations':_0x1c9e98=>Se(_0x1c9e98,(_0x1a80d7,_0x3580ce)=>this[_0x5108fe(0xe2)][_0x5108fe(0xe1)](_0x1a80d7,_0x3580ce),this[_0x5108fe(0x14c)](_0x1c9e98[_0x5108fe(0x106)]),_0x43610d=>this[_0x5108fe(0x11d)]['emit'](_0x43610d))}));}[_0x25bb4f(0x14c)](_0x3ac721){const _0x435e10=_0x25bb4f;let _0xf03e26=_0x3ac721,_0x5b0299=_0xf03e26!=null&&_0xf03e26[_0x435e10(0x165)]?this[_0x435e10(0x93)][_0x435e10(0x14e)](_0xf03e26[_0x435e10(0x165)]):this[_0x435e10(0x93)][_0x435e10(0x146)](e['UniverInstanceType'][_0x435e10(0x131)]);if(!_0x5b0299)return;let _0x11a461=_0xf03e26!=null&&_0xf03e26[_0x435e10(0x16a)]?_0x5b0299[_0x435e10(0xf1)](_0xf03e26[_0x435e10(0x16a)]):_0x5b0299[_0x435e10(0xbe)]();if(_0x11a461)return{'unitId':_0x5b0299[_0x435e10(0x149)](),'subUnitId':_0x11a461[_0x435e10(0xe8)]()};}};K=W([U(0x0,e[_0x25bb4f(0x14b)]),U(0x1,(0x0,e[_0x25bb4f(0xc4)])(t[_0x25bb4f(0x11f)])),U(0x2,(0x0,e['Inject'])(E)),U(0x3,(0x0,e['Inject'])(D))],K);function Se(_0x50e3b6,_0x502520,_0x29624c,_0xe5664){const _0x4bf4ad=_0x25bb4f;let _0x5d3f74=we(_0x50e3b6,_0x29624c);if(!_0x5d3f74)return Z();let _0x4e5d36=_0x502520(_0x5d3f74[_0x4bf4ad(0x165)],_0x5d3f74[_0x4bf4ad(0x16a)]);if(!_0x4e5d36[_0x4bf4ad(0xa3)](_0x143603=>_0x143603[_0x4bf4ad(0x110)]===_0x5d3f74[_0x4bf4ad(0x110)]))return Z();Ce(_0x4e5d36,_0x5d3f74,_0x50e3b6['id'],_0xe5664);let _0x2d2b5c=Te(_0x5d3f74,_0x4e5d36);return{'redos':[{'id':z['id'],'params':_0x5d3f74}],'undos':[{'id':z['id'],'params':_0x2d2b5c}],'preRedos':[],'preUndos':[]};}function Ce(_0x19cc0a,_0x4253d1,_0x28b39b,_0x4a251d){const _0x17af15=_0x25bb4f;try{switch(_0x4253d1[_0x17af15(0x136)]){case _0x17af15(0x114):v(_0x19cc0a,_0x4253d1);break;case _0x17af15(0xf2):y(_0x19cc0a,_0x4253d1);break;case _0x17af15(0xad):b(_0x19cc0a,_0x4253d1);break;}}catch(_0x439265){throw _0x4a251d==null||_0x4a251d({'reason':c(_0x439265),'commandId':_0x28b39b,'unitId':_0x4253d1[_0x17af15(0x165)],'subUnitId':_0x4253d1[_0x17af15(0x16a)],'axis':_0x4253d1['axis'],'outlineId':l(_0x439265)}),new e[(_0x17af15(0xd1))](_0x439265 instanceof Error?_0x439265[_0x17af15(0x138)]:_0x17af15(0xf3));}}function we(_0xd31dfb,_0x2d95df){const _0x2ca4d7=_0x25bb4f;switch(_0xd31dfb['id']){case t[_0x2ca4d7(0x117)]['id']:return q(_0xd31dfb[_0x2ca4d7(0x106)],_0x2ca4d7(0x91),_0x2d95df);case t[_0x2ca4d7(0xfa)]['id']:return q(_0xd31dfb[_0x2ca4d7(0x106)],'column',_0x2d95df);case t[_0x2ca4d7(0xc2)]['id']:return J(_0xd31dfb[_0x2ca4d7(0x106)],_0x2ca4d7(0x91),_0x2d95df);case t[_0x2ca4d7(0x9a)]['id']:return J(_0xd31dfb[_0x2ca4d7(0x106)],_0x2ca4d7(0xd7),_0x2d95df);case t[_0x2ca4d7(0xfe)]['id']:return Y(_0xd31dfb[_0x2ca4d7(0x106)],_0x2ca4d7(0x91),_0x2d95df);case t['MoveColsCommand']['id']:return Y(_0xd31dfb[_0x2ca4d7(0x106)],_0x2ca4d7(0xd7),_0x2d95df);default:return null;}}function q(_0x3d2ee4,_0x225618,_0x2a7c29){const _0x1b0404=_0x25bb4f;let _0x473deb=X(_0x3d2ee4,_0x2a7c29);if(!(_0x3d2ee4!=null&&_0x3d2ee4['range'])||!_0x473deb)return null;let _0x4177e6=_0x225618===_0x1b0404(0x91)?_0x3d2ee4[_0x1b0404(0x140)][_0x1b0404(0xbb)]:_0x3d2ee4[_0x1b0404(0x140)][_0x1b0404(0xfd)],_0x331947=_0x225618===_0x1b0404(0x91)?_0x3d2ee4[_0x1b0404(0x140)][_0x1b0404(0x103)]:_0x3d2ee4[_0x1b0404(0x140)][_0x1b0404(0xd0)];return{..._0x473deb,'axis':_0x225618,'type':_0x1b0404(0x114),'index':_0x4177e6,'count':_0x331947-_0x4177e6+0x1};}function _0x5e99(_0x1db9df,_0x245bc7){_0x1db9df=_0x1db9df-0x8d;const _0x3227ff=_0x3227();let _0x5e9925=_0x3227ff[_0x1db9df];return _0x5e9925;}function J(_0x4651c4,_0x54174c,_0xb6d5b7){const _0x31b82a=_0x25bb4f;let _0x2744aa=X(_0x4651c4,_0xb6d5b7);if(!(_0x4651c4!=null&&_0x4651c4['range'])||!_0x2744aa)return null;let _0x51a854=_0x54174c===_0x31b82a(0x91)?_0x4651c4[_0x31b82a(0x140)][_0x31b82a(0xbb)]:_0x4651c4[_0x31b82a(0x140)][_0x31b82a(0xfd)],_0x298211=_0x54174c==='row'?_0x4651c4[_0x31b82a(0x140)][_0x31b82a(0x103)]:_0x4651c4[_0x31b82a(0x140)][_0x31b82a(0xd0)];return{..._0x2744aa,'axis':_0x54174c,'type':'delete','start':_0x51a854,'end':_0x298211};}function Y(_0x3bada8,_0x3ce54b,_0x1baf3b){const _0x3ab989=_0x25bb4f;let _0x91555=X(_0x3bada8,_0x1baf3b);if(!(_0x3bada8!=null&&_0x3bada8[_0x3ab989(0xd2)])||!_0x3bada8['toRange']||!_0x91555)return null;let _0x4ac1cf=_0x3ce54b==='row'?_0x3bada8[_0x3ab989(0xd2)]['startRow']:_0x3bada8[_0x3ab989(0xd2)][_0x3ab989(0xfd)],_0x3dbdd6=_0x3ce54b==='row'?_0x3bada8[_0x3ab989(0xd2)][_0x3ab989(0x103)]:_0x3bada8['fromRange'][_0x3ab989(0xd0)],_0x2428b7=_0x3ce54b===_0x3ab989(0x91)?_0x3bada8[_0x3ab989(0xa4)][_0x3ab989(0xbb)]:_0x3bada8[_0x3ab989(0xa4)]['startColumn'];return{..._0x91555,'axis':_0x3ce54b,'type':_0x3ab989(0xad),'sourceStart':_0x4ac1cf,'sourceEnd':_0x3dbdd6,'destinationIndex':_0x2428b7};}function Te(_0x394a0c,_0x1708e3){const _0x51c308=_0x25bb4f;switch(_0x394a0c['type']){case _0x51c308(0x114):return{'unitId':_0x394a0c[_0x51c308(0x165)],'subUnitId':_0x394a0c['subUnitId'],'axis':_0x394a0c['axis'],'type':'delete','start':_0x394a0c[_0x51c308(0x13c)],'end':_0x394a0c[_0x51c308(0x13c)]+_0x394a0c[_0x51c308(0x109)]-0x1};case _0x51c308(0xf2):return{'unitId':_0x394a0c[_0x51c308(0x165)],'subUnitId':_0x394a0c['subUnitId'],'axis':_0x394a0c[_0x51c308(0x110)],'type':_0x51c308(0x114),'index':_0x394a0c[_0x51c308(0x10c)],'count':_0x394a0c['end']-_0x394a0c['start']+0x1,'restoreOutlines':_0x1708e3[_0x51c308(0x12d)](_0x266481=>_0x266481[_0x51c308(0x165)]===_0x394a0c[_0x51c308(0x165)]&&_0x266481[_0x51c308(0x16a)]===_0x394a0c['subUnitId']&&_0x266481[_0x51c308(0x110)]===_0x394a0c[_0x51c308(0x110)])};case _0x51c308(0xad):return Ee(_0x394a0c);}}function Ee(_0x487277){const _0x1d45c5=_0x25bb4f;let _0x13b68a=_0x487277[_0x1d45c5(0x11e)]-_0x487277[_0x1d45c5(0x128)]+0x1;return _0x487277[_0x1d45c5(0xae)]>=_0x487277[_0x1d45c5(0x128)]&&_0x487277[_0x1d45c5(0xae)]<=_0x487277[_0x1d45c5(0x11e)]+0x1?{..._0x487277}:_0x487277[_0x1d45c5(0xae)]>_0x487277['sourceEnd']+0x1?{..._0x487277,'sourceStart':_0x487277[_0x1d45c5(0xae)]-_0x13b68a,'sourceEnd':_0x487277[_0x1d45c5(0xae)]-0x1,'destinationIndex':_0x487277[_0x1d45c5(0x128)]}:{..._0x487277,'sourceStart':_0x487277[_0x1d45c5(0xae)],'sourceEnd':_0x487277[_0x1d45c5(0xae)]+_0x13b68a-0x1,'destinationIndex':_0x487277[_0x1d45c5(0x11e)]+0x1};}function X(_0x22298a,_0x206ede){const _0x51e0f0=_0x25bb4f;var _0x32a91f,_0x2319d2;let _0x2384d6=(_0x32a91f=_0x22298a==null?void 0x0:_0x22298a[_0x51e0f0(0x165)])==null?_0x206ede==null?void 0x0:_0x206ede[_0x51e0f0(0x165)]:_0x32a91f,_0x552492=(_0x2319d2=_0x22298a==null?void 0x0:_0x22298a[_0x51e0f0(0x16a)])==null?_0x206ede==null?void 0x0:_0x206ede[_0x51e0f0(0x16a)]:_0x2319d2;return _0x2384d6&&_0x552492?{'unitId':_0x2384d6,'subUnitId':_0x552492}:null;}function Z(){const _0x3a45c9=_0x25bb4f;var _0x1c9a12,_0x85c295;return{'redos':[...G[_0x3a45c9(0x14d)]],'undos':[...G[_0x3a45c9(0xee)]],'preRedos':[...(_0x1c9a12=G[_0x3a45c9(0xf6)])==null?[]:_0x1c9a12],'preUndos':[...(_0x85c295=G[_0x3a45c9(0x98)])==null?[]:_0x85c295]};}let Q=class extends e[_0x25bb4f(0xd9)]{constructor(_0x2a67d3,_0x448ab0){const _0xa27227=_0x25bb4f;super(),this[_0xa27227(0xb8)]=_0x2a67d3,this[_0xa27227(0xe2)]=_0x448ab0,this[_0xa27227(0xc5)]();}[_0x25bb4f(0xc5)](){const _0x473c6a=_0x25bb4f;this[_0x473c6a(0x119)](this[_0x473c6a(0xb8)][_0x473c6a(0x10f)]({'pluginName':B,'businesses':[e[_0x473c6a(0xd8)][_0x473c6a(0x131)]],'toJson':_0x2e358c=>JSON['stringify'](this[_0x473c6a(0xe2)][_0x473c6a(0xb3)](_0x2e358c)),'parseJson':_0x17e22e=>JSON['parse'](_0x17e22e),'onLoad':(_0x4843ef,_0x3a1e2b)=>this[_0x473c6a(0xe2)][_0x473c6a(0x148)](_0x4843ef,_0x3a1e2b),'onUnLoad':_0x49a5bf=>this['_sheetsOutlineModel']['removeUnit'](_0x49a5bf)}));}};Q=W([U(0x0,e[_0x25bb4f(0xc0)]),U(0x1,(0x0,e[_0x25bb4f(0xc4)])(E))],Q);let $=class extends e[_0x25bb4f(0x10b)]{constructor(_0x7b3fa5=H,_0x28d9e1,_0xec2693,_0x41efb1){const _0x2eb695=_0x25bb4f;super(),this['_config']=_0x7b3fa5,this[_0x2eb695(0xbc)]=_0x28d9e1,this['_commandService']=_0xec2693,this[_0x2eb695(0xe6)]=_0x41efb1;let {..._0x4b8b50}=(0x0,e[_0x2eb695(0x154)])({},H,this[_0x2eb695(0x145)]);this['_configService']['setConfig'](V,_0x4b8b50);}[_0x25bb4f(0x134)](){const _0x5c071f=_0x25bb4f;this['_injector'][_0x5c071f(0x13a)]([E]),this[_0x5c071f(0xbc)]['add']([D]),this['_injector'][_0x5c071f(0x13a)]([Q]),this[_0x5c071f(0xbc)][_0x5c071f(0x13a)]([K]),this['_initRegisterCommand'](),this['_injector']['get'](E),this['_injector'][_0x5c071f(0x123)](D),this['_injector'][_0x5c071f(0x123)](Q),this[_0x5c071f(0xbc)][_0x5c071f(0x123)](K);}[_0x25bb4f(0x10a)](){const _0x27c728=_0x25bb4f;[j,P,R,N][_0x27c728(0x116)](_0xbf725d=>{const _0x1dd4a2=_0x27c728;this[_0x1dd4a2(0x119)](this[_0x1dd4a2(0xcd)][_0x1dd4a2(0x126)](_0xbf725d));}),[O,k,F,M,z][_0x27c728(0x116)](_0x39de50=>{const _0x5c9043=_0x27c728;this['disposeWithMe'](this[_0x5c9043(0xcd)][_0x5c9043(0x126)](_0x39de50));});}};T($,'pluginName',B),T($,_0x25bb4f(0x94),be),T($,_0x25bb4f(0xa0),xe),T($,'type',e[_0x25bb4f(0xd8)][_0x25bb4f(0x131)]),$=W([(0x0,e[_0x25bb4f(0x164)])(i[_0x25bb4f(0x96)]),U(0x1,(0x0,e['Inject'])(e['Injector'])),U(0x2,e[_0x25bb4f(0x159)]),U(0x3,e[_0x25bb4f(0x8d)])],$),exports['AddDimensionOutlineCommand']=j,exports['AddDimensionOutlineMutation']=O,exports[_0x25bb4f(0xb4)]=N,exports[_0x25bb4f(0x8e)]=M,exports[_0x25bb4f(0x167)]=a,exports['DimensionOutlineError']=s,exports[_0x25bb4f(0x11c)]=o,exports['RemoveDimensionOutlineCommand']=P,exports[_0x25bb4f(0x153)]=k,exports[_0x25bb4f(0x112)]=V,exports['SHEET_OUTLINE_PLUGIN']=B,exports['SetDimensionOutlineCollapsedCommand']=R,exports['SetDimensionOutlineCollapsedMutation']=F,exports[_0x25bb4f(0x162)]=D,exports[_0x25bb4f(0x113)]=E,exports['TransformDimensionOutlinesMutation']=z,Object[_0x25bb4f(0x139)](exports,'UniverSheetsOutlinePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports['addDimensionOutlineToList']=m,exports[_0x25bb4f(0xd3)]=f,exports[_0x25bb4f(0xcc)]=g,exports['canAddDimensionOutline']=p,exports['clearDimensionOutlinesInRange']=h,exports[_0x25bb4f(0x151)]=l,exports['getDimensionOutlineErrorReason']=c,exports['getDimensionOutlineViewPermission$']=ue,exports['hasDimensionOutlineViewPermission']=A,exports[_0x25bb4f(0xb7)]=_,exports[_0x25bb4f(0x142)]=y,exports['transformOutlinesByInsert']=v,exports[_0x25bb4f(0x9f)]=b;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x5b02c9=_0x5d32;(function(_0x4bda0d,_0x2aed4d){var _0x88c987=_0x5d32,_0x6b1a85=_0x4bda0d();while(!![]){try{var _0x5e3886=parseInt(_0x88c987(0x1de))/0x1+-parseInt(_0x88c987(0x1df))/0x2*(parseInt(_0x88c987(0x1d8))/0x3)+-parseInt(_0x88c987(0x1f3))/0x4*(-parseInt(_0x88c987(0x1e9))/0x5)+parseInt(_0x88c987(0x1f1))/0x6*(-parseInt(_0x88c987(0x1e2))/0x7)+-parseInt(_0x88c987(0x1e5))/0x8*(parseInt(_0x88c987(0x1e6))/0x9)+-parseInt(_0x88c987(0x1e4))/0xa+parseInt(_0x88c987(0x1f2))/0xb;if(_0x5e3886===_0x2aed4d)break;else _0x6b1a85['push'](_0x6b1a85['shift']());}catch(_0x1c6b7d){_0x6b1a85['push'](_0x6b1a85['shift']());}}}(_0x311b,0x84b28));import{AddDimensionOutlineCommand as _0x132179,ClearDimensionOutlinesCommand as _0x1f6f53,DimensionOutlineAxis as _0x776dc9,DimensionOutlineErrorReason as _0x1381bf,RemoveDimensionOutlineCommand as _0x31b19d,SetDimensionOutlineCollapsedCommand as _0x47595c,SheetsOutlineModel as _0x48e4a7}from'@univerjs-pro/sheets-outline';function _0x311b(){var _0x14ce4c=['_injector','extend','8124DIcHmJ','16598516fKRygq','4hAbnhd','_addDimensionOutline','filter','45rqfDQP','DimensionOutlineErrorReason','addRowOutline','getUnitId','ROW','syncExecuteCommand','388643aLAWjF','104054JzzYNp','setDimensionOutlineCollapsed','COLUMN','644HfvQIS','getSheetId','679670YdpIvp','6462592JXcACy','9vSsmtO','_worksheet','addColumnOutline','2133465LWBPqb','getOutlines','_workbook','axis','_commandService','removeDimensionOutline'];_0x311b=function(){return _0x14ce4c;};return _0x311b();}import{FEnum as _0x25ae5b}from'@univerjs/core/facade';import{FWorksheet as _0x235889}from'@univerjs/sheets/facade';var l=class extends _0x25ae5b{get['DimensionOutlineAxis'](){return _0x776dc9;}get[_0x5b02c9(0x1d9)](){return _0x1381bf;}};function _0x5d32(_0x370ca5,_0x5bb19b){_0x370ca5=_0x370ca5-0x1d6;var _0x311b3a=_0x311b();var _0x5d3244=_0x311b3a[_0x370ca5];return _0x5d3244;}_0x25ae5b[_0x5b02c9(0x1f0)](l);var u=class extends _0x235889{[_0x5b02c9(0x1da)](_0x46ee1a,_0x32037b){var _0x32346c=_0x5b02c9;return this[_0x32346c(0x1d6)](_0x776dc9[_0x32346c(0x1dc)],_0x46ee1a,_0x32037b);}[_0x5b02c9(0x1e8)](_0x261afc,_0x297d68){var _0x29a3e6=_0x5b02c9;return this[_0x29a3e6(0x1d6)](_0x776dc9[_0x29a3e6(0x1e1)],_0x261afc,_0x297d68);}[_0x5b02c9(0x1ee)](_0x17bdf3){var _0x2b55f7=_0x5b02c9;return this[_0x2b55f7(0x1ed)][_0x2b55f7(0x1dd)](_0x31b19d['id'],{'unitId':this[_0x2b55f7(0x1eb)][_0x2b55f7(0x1db)](),'subUnitId':this[_0x2b55f7(0x1e7)][_0x2b55f7(0x1e3)](),'outlineId':_0x17bdf3}),this;}[_0x5b02c9(0x1e0)](_0x35a4e5,_0x3e82fb){var _0x56eb83=_0x5b02c9;return this[_0x56eb83(0x1ed)][_0x56eb83(0x1dd)](_0x47595c['id'],{'unitId':this[_0x56eb83(0x1eb)]['getUnitId'](),'subUnitId':this[_0x56eb83(0x1e7)][_0x56eb83(0x1e3)](),'outlineId':_0x35a4e5,'collapsed':_0x3e82fb}),this;}['clearDimensionOutlines'](_0x80e453,_0xdb87f7,_0x9e384){var _0x474ba6=_0x5b02c9;return this[_0x474ba6(0x1ed)][_0x474ba6(0x1dd)](_0x1f6f53['id'],{'unitId':this['_workbook'][_0x474ba6(0x1db)](),'subUnitId':this[_0x474ba6(0x1e7)][_0x474ba6(0x1e3)](),'axis':_0x80e453,'start':_0xdb87f7,'end':_0x9e384}),this;}['getDimensionOutlines'](_0x2a3b1b){var _0x4ba18f=_0x5b02c9;let _0x746334=this[_0x4ba18f(0x1ef)]['get'](_0x48e4a7)[_0x4ba18f(0x1ea)](this[_0x4ba18f(0x1eb)][_0x4ba18f(0x1db)](),this[_0x4ba18f(0x1e7)][_0x4ba18f(0x1e3)]());return _0x2a3b1b?_0x746334[_0x4ba18f(0x1d7)](_0x9abff3=>_0x9abff3[_0x4ba18f(0x1ec)]===_0x2a3b1b):_0x746334;}[_0x5b02c9(0x1d6)](_0x43ce62,_0x566d2b,_0x230873){var _0x242205=_0x5b02c9;return this[_0x242205(0x1ed)][_0x242205(0x1dd)](_0x132179['id'],{'unitId':this[_0x242205(0x1eb)][_0x242205(0x1db)](),'subUnitId':this[_0x242205(0x1e7)][_0x242205(0x1e3)](),'axis':_0x43ce62,'start':_0x566d2b,'end':_0x566d2b+_0x230873-0x1}),this;}};_0x235889['extend'](u);export{};
1
+ var _0x297cae=_0x2690;(function(_0x18e8e7,_0x423e00){var _0x465c3e=_0x2690,_0x42828f=_0x18e8e7();while(!![]){try{var _0x2fddd7=-parseInt(_0x465c3e(0x1d3))/0x1+parseInt(_0x465c3e(0x1cd))/0x2+-parseInt(_0x465c3e(0x1df))/0x3+-parseInt(_0x465c3e(0x1c7))/0x4*(parseInt(_0x465c3e(0x1e2))/0x5)+-parseInt(_0x465c3e(0x1d8))/0x6*(-parseInt(_0x465c3e(0x1db))/0x7)+-parseInt(_0x465c3e(0x1ce))/0x8+-parseInt(_0x465c3e(0x1de))/0x9*(-parseInt(_0x465c3e(0x1d4))/0xa);if(_0x2fddd7===_0x423e00)break;else _0x42828f['push'](_0x42828f['shift']());}catch(_0x1779b2){_0x42828f['push'](_0x42828f['shift']());}}}(_0x5bd9,0xd121b));import{AddDimensionOutlineCommand as _0x4159c7,ClearDimensionOutlinesCommand as _0x562805,DimensionOutlineAxis as _0x27a999,DimensionOutlineErrorReason as _0x45e0fb,RemoveDimensionOutlineCommand as _0xf8656,SetDimensionOutlineCollapsedCommand as _0x10c969,SheetsOutlineModel as _0x4095b5}from'@univerjs-pro/sheets-outline';import{FEnum as _0x451298}from'@univerjs/core/facade';import{FWorksheet as _0x567cbd}from'@univerjs/sheets/facade';function _0x2690(_0x2e740e,_0x32d507){_0x2e740e=_0x2e740e-0x1c7;var _0x5bd99b=_0x5bd9();var _0x2690bf=_0x5bd99b[_0x2e740e];return _0x2690bf;}var l=class extends _0x451298{get['DimensionOutlineAxis'](){return _0x27a999;}get[_0x297cae(0x1d7)](){return _0x45e0fb;}};function _0x5bd9(){var _0x4c5ff0=['_addDimensionOutline','_workbook','1442wlVlHa','_injector','addColumnOutline','10291887QJUDcs','3014775QPZeXg','get','filter','1490UlRBlY','ROW','getOutlines','2048OSIjtw','getUnitId','syncExecuteCommand','setDimensionOutlineCollapsed','_commandService','COLUMN','577640cyZnQc','3990080biIYSm','axis','addRowOutline','getDimensionOutlines','getSheetId','534539miLPEb','10EzBSHX','_worksheet','extend','DimensionOutlineErrorReason','47040VSFGxs'];_0x5bd9=function(){return _0x4c5ff0;};return _0x5bd9();}_0x451298[_0x297cae(0x1d6)](l);var u=class extends _0x567cbd{[_0x297cae(0x1d0)](_0x9060cd,_0x4c86f8){var _0x12d613=_0x297cae;return this[_0x12d613(0x1d9)](_0x27a999[_0x12d613(0x1e3)],_0x9060cd,_0x4c86f8);}[_0x297cae(0x1dd)](_0x224962,_0x3fe1a7){var _0x548bd4=_0x297cae;return this['_addDimensionOutline'](_0x27a999[_0x548bd4(0x1cc)],_0x224962,_0x3fe1a7);}['removeDimensionOutline'](_0x545f96){var _0x9f11c4=_0x297cae;return this[_0x9f11c4(0x1cb)]['syncExecuteCommand'](_0xf8656['id'],{'unitId':this['_workbook'][_0x9f11c4(0x1c8)](),'subUnitId':this['_worksheet'][_0x9f11c4(0x1d2)](),'outlineId':_0x545f96}),this;}[_0x297cae(0x1ca)](_0x3474df,_0x76cdc7){var _0x42ec0e=_0x297cae;return this[_0x42ec0e(0x1cb)][_0x42ec0e(0x1c9)](_0x10c969['id'],{'unitId':this['_workbook'][_0x42ec0e(0x1c8)](),'subUnitId':this['_worksheet']['getSheetId'](),'outlineId':_0x3474df,'collapsed':_0x76cdc7}),this;}['clearDimensionOutlines'](_0x363053,_0x4aa6c3,_0x137d34){var _0x475d14=_0x297cae;return this[_0x475d14(0x1cb)][_0x475d14(0x1c9)](_0x562805['id'],{'unitId':this[_0x475d14(0x1da)]['getUnitId'](),'subUnitId':this[_0x475d14(0x1d5)][_0x475d14(0x1d2)](),'axis':_0x363053,'start':_0x4aa6c3,'end':_0x137d34}),this;}[_0x297cae(0x1d1)](_0x29fb3a){var _0x47eb78=_0x297cae;let _0x3fcd3b=this[_0x47eb78(0x1dc)][_0x47eb78(0x1e0)](_0x4095b5)[_0x47eb78(0x1e4)](this[_0x47eb78(0x1da)]['getUnitId'](),this['_worksheet']['getSheetId']());return _0x29fb3a?_0x3fcd3b[_0x47eb78(0x1e1)](_0x8be1af=>_0x8be1af[_0x47eb78(0x1cf)]===_0x29fb3a):_0x3fcd3b;}[_0x297cae(0x1d9)](_0x5287ad,_0x3942cc,_0x273ee1){var _0x51fd6b=_0x297cae;return this[_0x51fd6b(0x1cb)][_0x51fd6b(0x1c9)](_0x4159c7['id'],{'unitId':this[_0x51fd6b(0x1da)][_0x51fd6b(0x1c8)](),'subUnitId':this[_0x51fd6b(0x1d5)][_0x51fd6b(0x1d2)](),'axis':_0x5287ad,'start':_0x3942cc,'end':_0x3942cc+_0x273ee1-0x1}),this;}};_0x567cbd['extend'](u);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2b136a=_0x57ad;(function(_0x32634f,_0x412ff5){const _0x1aee45=_0x57ad,_0x1c0769=_0x32634f();while(!![]){try{const _0x33936b=-parseInt(_0x1aee45(0x20b))/0x1+parseInt(_0x1aee45(0x205))/0x2*(parseInt(_0x1aee45(0x19b))/0x3)+parseInt(_0x1aee45(0x211))/0x4+-parseInt(_0x1aee45(0x1df))/0x5+parseInt(_0x1aee45(0x1e6))/0x6+parseInt(_0x1aee45(0x214))/0x7*(-parseInt(_0x1aee45(0x1a7))/0x8)+-parseInt(_0x1aee45(0x197))/0x9*(-parseInt(_0x1aee45(0x1cd))/0xa);if(_0x33936b===_0x412ff5)break;else _0x1c0769['push'](_0x1c0769['shift']());}catch(_0x2bb336){_0x1c0769['push'](_0x1c0769['shift']());}}}(_0x4bc1,0x68a9d));import{CommandType as _0x402f43,CustomCommandExecutionError as _0x572a0e,DependentOn as _0x4c9be6,Disposable as _0x2d464d,ICommandService as _0x355240,IPermissionService as _0x23dc6a,IResourceManagerService as _0x15669d,IUndoRedoService as _0x433e23,IUniverInstanceService as _0x478d16,Inject as _0x276b8a,Injector as _0x4f21ac,Plugin as _0x1ee2c1,UniverInstanceType as _0x2c22e1,generateRandomId as _0x3f215b,sequenceExecute as _0x5c26bc}from'@univerjs/core';import{InsertColCommand as _0x1962b8,InsertRowCommand as _0x4069a2,MoveColsCommand as _0x5c79fe,MoveRowsCommand as _0x992660,RemoveColCommand as _0x1f7ffb,RemoveRowCommand as _0x4211b9,SetColHiddenMutation as _0x4d70f1,SetColVisibleMutation as _0x4d9cdf,SetRowHiddenMutation as _0x133fe5,SetRowVisibleMutation as _0x32843d,SheetInterceptorService as _0x53c644,SheetPermissionCheckController as _0x640d59,WorkbookViewPermission as _0x18fbd9,WorksheetViewPermission as _0x442ea8,getSheetCommandTarget as _0x3c02f4}from'@univerjs/sheets';import{Subject as _0x4cd9b8,of as _0x3c541c}from'rxjs';function _0x57ad(_0x1de958,_0x4a08b1){_0x1de958=_0x1de958-0x189;const _0x4bc1b4=_0x4bc1();let _0x57ad78=_0x4bc1b4[_0x1de958];return _0x57ad78;}import{debounceTime as _0x203016,map as _0x30f77,startWith as _0x1b8a00}from'rxjs/operators';import{UniverLicensePlugin as _0x2e7caf}from'@univerjs-pro/license';let fe=function(_0x110c9e){const _0x30330d=_0x57ad;return _0x110c9e[_0x30330d(0x219)]=_0x30330d(0x18f),_0x110c9e[_0x30330d(0x1b1)]=_0x30330d(0x229),_0x110c9e;}({}),pe=function(_0x593863){const _0x5ee660=_0x57ad;return _0x593863[_0x5ee660(0x226)]=_0x5ee660(0x1bd),_0x593863[_0x5ee660(0x1c5)]=_0x5ee660(0x1cb),_0x593863[_0x5ee660(0x1c0)]=_0x5ee660(0x1f7),_0x593863[_0x5ee660(0x221)]=_0x5ee660(0x1c1),_0x593863['MOVE_SPLITS_OUTLINE']=_0x5ee660(0x204),_0x593863[_0x5ee660(0x1b0)]=_0x5ee660(0x1a5),_0x593863['UNKNOWN']=_0x5ee660(0x225),_0x593863;}({});var w=class extends Error{constructor(_0x52ff44,_0x4169df,_0x5bcfbc){const _0x3de61d=_0x57ad;super(_0x4169df),this['reason']=_0x52ff44,this[_0x3de61d(0x1c7)]=_0x5bcfbc,this['name']=_0x3de61d(0x208);}};function T(_0x561311){const _0x14e743=_0x57ad;return _0x561311 instanceof w?_0x561311[_0x14e743(0x220)]:_0x561311 instanceof Error?_0x561311[_0x14e743(0x1be)][_0x14e743(0x21c)](_0x14e743(0x1e2))?_0x14e743(0x204):_0x561311[_0x14e743(0x1be)][_0x14e743(0x21c)]('depth')?_0x14e743(0x1c1):_0x561311[_0x14e743(0x1be)][_0x14e743(0x21c)](_0x14e743(0x18d))?_0x14e743(0x1f7):_0x561311[_0x14e743(0x1be)]['includes']('range')?'invalid-range':'unknown':_0x14e743(0x225);}function me(_0x528570){const _0x2db68b=_0x57ad;return _0x528570 instanceof w?_0x528570[_0x2db68b(0x1c7)]:void 0x0;}const E=0x2**0x35-0x1;function D(_0x251a35,_0x57d341){const _0x229f69=_0x57ad;return _0x251a35[_0x229f69(0x1d0)]===_0x57d341[_0x229f69(0x1d0)]&&_0x251a35[_0x229f69(0x1e7)]===_0x57d341[_0x229f69(0x1e7)]&&_0x251a35[_0x229f69(0x198)]===_0x57d341[_0x229f69(0x198)];}function O(_0x554352,_0x4ad1e6={}){const _0x585b1b=_0x57ad;var _0x31ac5b;let _0x1a37f7=(_0x31ac5b=_0x4ad1e6['maxDepth'])==null?0x8:_0x31ac5b,_0x16e10d=new Map();for(let _0x9b1189 of _0x554352){let _0x35835a=_0x9b1189[_0x585b1b(0x1d0)]+':'+_0x9b1189[_0x585b1b(0x1e7)]+':'+_0x9b1189[_0x585b1b(0x198)],_0x321f3e=_0x16e10d[_0x585b1b(0x1c4)](_0x35835a);_0x321f3e?_0x321f3e[_0x585b1b(0x189)](_0x9b1189):_0x16e10d[_0x585b1b(0x1a4)](_0x35835a,[_0x9b1189]);}let _0x37a915=[];for(let _0x41354b of _0x16e10d['values']()){let _0x2424cb=[..._0x41354b][_0x585b1b(0x19e)](Ee),_0xded05=[];for(let _0x456d5e of _0x2424cb){for(De(_0x456d5e);_0xded05[_0x585b1b(0x1ec)]>0x0&&_0x456d5e[_0x585b1b(0x218)]>_0xded05[_0xded05[_0x585b1b(0x1ec)]-0x1][_0x585b1b(0x1ee)];)_0xded05['pop']();let _0x2a898e=_0xded05[_0xded05[_0x585b1b(0x1ec)]-0x1];if(_0x2a898e&&_0x456d5e[_0x585b1b(0x1ee)]>_0x2a898e[_0x585b1b(0x1ee)])throw new w(_0x585b1b(0x1f7),_0x585b1b(0x18b),_0x456d5e['id']);let _0x3d3544=_0x2a898e?_0x2a898e[_0x585b1b(0x1c2)]+0x1:0x1;if(_0x3d3544>_0x1a37f7)throw new w(_0x585b1b(0x1c1),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x1a37f7,_0x456d5e['id']);let _0xff54da={..._0x456d5e,'depth':_0x3d3544,'parentId':_0x2a898e==null?void 0x0:_0x2a898e['id'],'anchor':_0x456d5e[_0x585b1b(0x1ee)],'children':[]};_0x2a898e?_0x2a898e[_0x585b1b(0x1d6)][_0x585b1b(0x189)](_0xff54da):_0x37a915[_0x585b1b(0x189)](_0xff54da),_0xded05[_0x585b1b(0x189)](_0xff54da);}}return _0x37a915;}function k(_0x572126,_0x7f3fb8,_0x192b28={}){const _0xeb0551=_0x57ad;if(_0x7f3fb8['start']<0x0||_0x7f3fb8[_0xeb0551(0x218)]>_0x7f3fb8[_0xeb0551(0x1ee)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x192b28['maxIndex']!=null&&_0x7f3fb8[_0xeb0551(0x1ee)]>=_0x192b28['maxIndex'])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x534f7b=_0x572126[_0xeb0551(0x1d9)](_0x3877c3=>D(_0x3877c3,_0x7f3fb8));for(let _0x131097 of _0x534f7b)if(Oe(_0x131097,_0x7f3fb8))return{'valid':!0x1,'reason':_0xeb0551(0x1f7)};try{O([..._0x572126,_0x7f3fb8],_0x192b28);}catch(_0x5298be){let _0x3ea761=T(_0x5298be);return _0x3ea761==='max-depth'?{'valid':!0x1,'reason':_0xeb0551(0x1c1)}:_0x3ea761===_0xeb0551(0x1bd)?{'valid':!0x1,'reason':_0xeb0551(0x1bd)}:{'valid':!0x1,'reason':_0xeb0551(0x1f7)};}return{'valid':!0x0};}function he(_0xe27ef8,_0x276383,_0x4300e3={}){const _0x492865=_0x57ad;let _0x118f63=k(_0xe27ef8,_0x276383,_0x4300e3);if(!_0x118f63['valid']){var _0xcadb9b;throw Error((_0xcadb9b=_0x118f63[_0x492865(0x220)])==null?_0x492865(0x223):_0xcadb9b);}return[..._0xe27ef8,_0x276383];}function ge(_0x243356,_0x2dc68a){const _0x1d70e9=_0x57ad;let _0x23fea1=_0x2dc68a[_0x1d70e9(0x218)],_0x2d5c98=_0x2dc68a[_0x1d70e9(0x1ee)],_0x3b8138=[],_0x39b400=!0x0;for(;_0x39b400;){_0x39b400=!0x1;for(let _0x10c2a3 of _0x243356)_0x3b8138['includes'](_0x10c2a3)||!D(_0x10c2a3,_0x2dc68a)||!we(_0x10c2a3[_0x1d70e9(0x218)],_0x10c2a3[_0x1d70e9(0x1ee)],_0x23fea1,_0x2d5c98)||(_0x3b8138[_0x1d70e9(0x189)](_0x10c2a3),_0x23fea1=Math['min'](_0x23fea1,_0x10c2a3[_0x1d70e9(0x218)]),_0x2d5c98=Math[_0x1d70e9(0x1a9)](_0x2d5c98,_0x10c2a3[_0x1d70e9(0x1ee)]),_0x39b400=!0x0);}if(_0x3b8138[_0x1d70e9(0x1ec)]===0x0)return null;let [_0x165d46]=[..._0x3b8138][_0x1d70e9(0x19e)](Ee);return{'mergedOutline':{..._0x165d46,'start':_0x23fea1,'end':_0x2d5c98},'mergedOutlines':_0x3b8138};}function _e(_0x587acd,_0x546a40){const _0x32b6bc=_0x57ad;return _0x587acd['filter'](_0x4f5034=>D(_0x4f5034,_0x546a40)?!(_0x4f5034['start']>=_0x546a40[_0x32b6bc(0x218)]&&_0x4f5034[_0x32b6bc(0x1ee)]<=_0x546a40[_0x32b6bc(0x1ee)]):!0x0);}function ve(_0x4c5f90,_0x393a90,_0x175f8c,_0x49638e){const _0x256294=_0x57ad;return ye(_0x4c5f90[_0x256294(0x1d9)](_0x5935f8=>_0x5935f8[_0x256294(0x1d0)]===_0x393a90&&_0x5935f8['subUnitId']===_0x175f8c&&_0x5935f8[_0x256294(0x198)]===_0x49638e&&_0x5935f8['collapsed'])[_0x256294(0x1e9)](_0x4f2d55=>({'start':_0x4f2d55['start'],'end':_0x4f2d55[_0x256294(0x1ee)]})));}function ye(_0x35a497){const _0x1ff511=_0x57ad;if(_0x35a497['length']===0x0)return[];let _0x35cdd4=[..._0x35a497][_0x1ff511(0x19e)]((_0x4518ce,_0x5b2ca4)=>_0x4518ce['start']-_0x5b2ca4['start']||_0x4518ce[_0x1ff511(0x1ee)]-_0x5b2ca4['end']),_0x5a0b4c=[];for(let _0x200b46 of _0x35cdd4){let _0x4334f=_0x5a0b4c[_0x5a0b4c[_0x1ff511(0x1ec)]-0x1];!_0x4334f||_0x200b46[_0x1ff511(0x218)]>_0x4334f['end']+0x1?_0x5a0b4c[_0x1ff511(0x189)]({..._0x200b46}):_0x4334f[_0x1ff511(0x1ee)]=Math['max'](_0x4334f[_0x1ff511(0x1ee)],_0x200b46[_0x1ff511(0x1ee)]);}return _0x5a0b4c;}function A(_0x2ea103,_0x325c00){const _0x229fd7=_0x57ad;return _0x325c00[_0x229fd7(0x18e)]<=0x0?_0x2ea103:N(_0x2ea103[_0x229fd7(0x1e9)](_0xbffa31=>D(_0xbffa31,_0x325c00)?_0x325c00[_0x229fd7(0x192)]<=_0xbffa31[_0x229fd7(0x218)]?{..._0xbffa31,'start':_0xbffa31[_0x229fd7(0x218)]+_0x325c00['count'],'end':_0xbffa31[_0x229fd7(0x1ee)]+_0x325c00[_0x229fd7(0x18e)]}:_0xbffa31[_0x229fd7(0x218)]<_0x325c00['index']&&_0x325c00[_0x229fd7(0x192)]<=_0xbffa31['end']?{..._0xbffa31,'end':_0xbffa31[_0x229fd7(0x1ee)]+_0x325c00['count']}:_0xbffa31:_0xbffa31));}function j(_0x935526,_0x506cb5){const _0x288ba7=_0x57ad;if(_0x506cb5[_0x288ba7(0x218)]>_0x506cb5[_0x288ba7(0x1ee)])return _0x935526;let _0xa4d9bc=_0x506cb5['end']-_0x506cb5[_0x288ba7(0x218)]+0x1,_0x117dcc=[];for(let _0x517edb of _0x935526){if(!D(_0x517edb,_0x506cb5)){_0x117dcc[_0x288ba7(0x189)](_0x517edb);continue;}if(_0x517edb['end']<_0x506cb5[_0x288ba7(0x218)]){_0x117dcc['push'](_0x517edb);continue;}if(_0x517edb[_0x288ba7(0x218)]>_0x506cb5[_0x288ba7(0x1ee)]){_0x117dcc[_0x288ba7(0x189)]({..._0x517edb,'start':_0x517edb['start']-_0xa4d9bc,'end':_0x517edb['end']-_0xa4d9bc});continue;}let _0x465e15=Math[_0x288ba7(0x1a9)](_0x517edb['start'],_0x506cb5[_0x288ba7(0x218)]),_0x3b5f64=Math[_0x288ba7(0x1a2)](_0x517edb[_0x288ba7(0x1ee)],_0x506cb5[_0x288ba7(0x1ee)]),_0x133309=Math[_0x288ba7(0x1a9)](0x0,_0x3b5f64-_0x465e15+0x1),_0x1b5b43=_0x517edb[_0x288ba7(0x1ee)]-_0x517edb[_0x288ba7(0x218)]+0x1-_0x133309;if(_0x1b5b43<=0x0)continue;let _0x3926f6=_0x517edb[_0x288ba7(0x218)]<_0x506cb5[_0x288ba7(0x218)]?_0x517edb[_0x288ba7(0x218)]:_0x506cb5[_0x288ba7(0x218)];_0x117dcc[_0x288ba7(0x189)]({..._0x517edb,'start':_0x3926f6,'end':_0x3926f6+_0x1b5b43-0x1});}return N(_0x117dcc);}function M(_0x3dfaf1,_0x5e352){const _0x13f4f4=_0x57ad;if(_0x5e352[_0x13f4f4(0x1ce)]>_0x5e352[_0x13f4f4(0x1eb)])return _0x3dfaf1;let _0x51a97b=[];for(let _0x9df4a of _0x3dfaf1){if(!D(_0x9df4a,_0x5e352)){_0x51a97b[_0x13f4f4(0x189)](_0x9df4a);continue;}let _0x17d06b=be(_0x9df4a,_0x5e352);if(_0x17d06b['type']==='split')throw new w(_0x13f4f4(0x204),'Move\x20would\x20split\x20dimension\x20outline:\x20'+_0x9df4a['id'],_0x9df4a['id']);_0x51a97b[_0x13f4f4(0x189)](_0x17d06b[_0x13f4f4(0x1e0)]);}return N(_0x51a97b);}function be(_0x1d7ae0,_0x39feff){const _0x1337ad=_0x57ad;let _0x600c2c=xe(_0x39feff[_0x1337ad(0x1ce)],_0x39feff['sourceEnd']+0x1,_0x39feff[_0x1337ad(0x1bc)]),_0x1b3048=[],_0x1c4cf4={'start':_0x1d7ae0[_0x1337ad(0x218)],'end':_0x1d7ae0[_0x1337ad(0x1ee)]+0x1};for(let _0x462cdb of _0x600c2c){let _0x3174fc=Se(_0x1c4cf4,_0x462cdb[_0x1337ad(0x19a)]);_0x3174fc&&_0x1b3048[_0x1337ad(0x189)]({'start':_0x3174fc[_0x1337ad(0x218)]+_0x462cdb[_0x1337ad(0x18c)],'end':_0x3174fc[_0x1337ad(0x1ee)]+_0x462cdb[_0x1337ad(0x18c)]});}let _0xabc188=Ce(_0x1b3048);return _0xabc188[_0x1337ad(0x1ec)]===0x1?{'type':'ok','outline':{..._0x1d7ae0,'start':_0xabc188[0x0][_0x1337ad(0x218)],'end':_0xabc188[0x0][_0x1337ad(0x1ee)]-0x1}}:{'type':_0x1337ad(0x21d),'outline':_0x1d7ae0,'ranges':_0xabc188};}function xe(_0x290b3c,_0x526631,_0x1c5549){let _0x433bde=_0x526631-_0x290b3c;if(_0x433bde<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x1c5549>=_0x290b3c&&_0x1c5549<=_0x526631?[{'range':{'start':0x0,'end':E},'offset':0x0}]:_0x1c5549<_0x290b3c?[{'range':{'start':0x0,'end':_0x1c5549},'offset':0x0},{'range':{'start':_0x1c5549,'end':_0x290b3c},'offset':_0x433bde},{'range':{'start':_0x290b3c,'end':_0x526631},'offset':_0x1c5549-_0x290b3c},{'range':{'start':_0x526631,'end':E},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x290b3c},'offset':0x0},{'range':{'start':_0x290b3c,'end':_0x526631},'offset':_0x1c5549-_0x526631},{'range':{'start':_0x526631,'end':_0x1c5549},'offset':-_0x433bde},{'range':{'start':_0x1c5549,'end':E},'offset':0x0}];}function Se(_0x3090bf,_0xf51ce4){const _0x2db6fa=_0x57ad;let _0x3c6913=Math['max'](_0x3090bf[_0x2db6fa(0x218)],_0xf51ce4[_0x2db6fa(0x218)]),_0x2a3630=Math[_0x2db6fa(0x1a2)](_0x3090bf[_0x2db6fa(0x1ee)],_0xf51ce4[_0x2db6fa(0x1ee)]);return _0x3c6913>=_0x2a3630?null:{'start':_0x3c6913,'end':_0x2a3630};}function Ce(_0x32849d){const _0x176224=_0x57ad;if(_0x32849d[_0x176224(0x1ec)]===0x0)return[];let _0x2729a6=[..._0x32849d][_0x176224(0x19e)]((_0x4fa29e,_0x512963)=>_0x4fa29e[_0x176224(0x218)]-_0x512963[_0x176224(0x218)]||_0x4fa29e[_0x176224(0x1ee)]-_0x512963[_0x176224(0x1ee)]),_0x5653ac=[];for(let _0x1ff578 of _0x2729a6){let _0x283220=_0x5653ac[_0x5653ac[_0x176224(0x1ec)]-0x1];!_0x283220||_0x1ff578[_0x176224(0x218)]>_0x283220[_0x176224(0x1ee)]?_0x5653ac[_0x176224(0x189)]({..._0x1ff578}):_0x283220['end']=Math[_0x176224(0x1a9)](_0x283220[_0x176224(0x1ee)],_0x1ff578['end']);}return _0x5653ac;}function we(_0x284891,_0x493992,_0x4249a1,_0x3180e5){return _0x493992+0x1===_0x4249a1||_0x3180e5+0x1===_0x284891;}function N(_0x1d8826){let _0x469045=Te(_0x1d8826);return O(_0x469045),_0x469045;}function Te(_0x123093){const _0x270433=_0x57ad;let _0x37584a=new Map();for(let _0xf345c1 of _0x123093){let _0x53ac84=[_0xf345c1[_0x270433(0x1d0)],_0xf345c1[_0x270433(0x1e7)],_0xf345c1[_0x270433(0x198)],_0xf345c1[_0x270433(0x218)],_0xf345c1[_0x270433(0x1ee)]][_0x270433(0x1b4)](':'),_0x90c83f=_0x37584a[_0x270433(0x1c4)](_0x53ac84);if(!_0x90c83f){_0x37584a[_0x270433(0x1a4)](_0x53ac84,_0xf345c1);continue;}_0x37584a[_0x270433(0x1a4)](_0x53ac84,{..._0x90c83f,'collapsed':_0x90c83f[_0x270433(0x1fc)]||_0xf345c1[_0x270433(0x1fc)]});}return Array[_0x270433(0x1de)](_0x37584a[_0x270433(0x1dc)]());}function Ee(_0x5b69b5,_0x4d4298){const _0x405431=_0x57ad;return _0x5b69b5[_0x405431(0x1d0)]===_0x4d4298[_0x405431(0x1d0)]?_0x5b69b5[_0x405431(0x1e7)]===_0x4d4298[_0x405431(0x1e7)]?_0x5b69b5[_0x405431(0x198)]===_0x4d4298[_0x405431(0x198)]?_0x5b69b5[_0x405431(0x218)]===_0x4d4298[_0x405431(0x218)]?_0x4d4298[_0x405431(0x1ee)]-_0x5b69b5['end']:_0x5b69b5[_0x405431(0x218)]-_0x4d4298[_0x405431(0x218)]:_0x5b69b5[_0x405431(0x198)][_0x405431(0x212)](_0x4d4298[_0x405431(0x198)]):_0x5b69b5[_0x405431(0x1e7)]['localeCompare'](_0x4d4298[_0x405431(0x1e7)]):_0x5b69b5[_0x405431(0x1d0)][_0x405431(0x212)](_0x4d4298[_0x405431(0x1d0)]);}function De(_0x3e8de0){const _0x3690d3=_0x57ad;if(_0x3e8de0[_0x3690d3(0x218)]>_0x3e8de0['end'])throw new w('invalid-range','Invalid\x20outline\x20range',_0x3e8de0['id']);}function Oe(_0x130a42,_0x149128){const _0x3f61ea=_0x57ad;let _0x3f2360=_0x130a42['start']<=_0x149128['end']&&_0x149128[_0x3f61ea(0x218)]<=_0x130a42['end'],_0x58c973=_0x130a42[_0x3f61ea(0x218)]<=_0x149128[_0x3f61ea(0x218)]&&_0x149128[_0x3f61ea(0x1ee)]<=_0x130a42[_0x3f61ea(0x1ee)],_0x33e324=_0x149128[_0x3f61ea(0x218)]<=_0x130a42[_0x3f61ea(0x218)]&&_0x130a42['end']<=_0x149128[_0x3f61ea(0x1ee)];return _0x3f2360&&!_0x58c973&&!_0x33e324;}function P(_0x53c9a6){'@babel/helpers - typeof';const _0x1bc1ea=_0x57ad;return P=typeof Symbol=='function'&&typeof Symbol[_0x1bc1ea(0x1b6)]==_0x1bc1ea(0x202)?function(_0x455079){return typeof _0x455079;}:function(_0x29e2be){const _0x27e1e5=_0x1bc1ea;return _0x29e2be&&typeof Symbol==_0x27e1e5(0x1c8)&&_0x29e2be['constructor']===Symbol&&_0x29e2be!==Symbol['prototype']?_0x27e1e5(0x202):typeof _0x29e2be;},P(_0x53c9a6);}function ke(_0x89f702,_0x5c9023){const _0x303456=_0x57ad;if(P(_0x89f702)!='object'||!_0x89f702)return _0x89f702;var _0x2614d0=_0x89f702[Symbol['toPrimitive']];if(_0x2614d0!==void 0x0){var _0x4b135e=_0x2614d0[_0x303456(0x191)](_0x89f702,_0x5c9023||_0x303456(0x21a));if(P(_0x4b135e)!=_0x303456(0x1cc))return _0x4b135e;throw TypeError(_0x303456(0x194));}return(_0x5c9023===_0x303456(0x21b)?String:Number)(_0x89f702);}function Ae(_0x1f144e){const _0x2a25eb=_0x57ad;var _0x4b7d47=ke(_0x1f144e,'string');return P(_0x4b7d47)==_0x2a25eb(0x202)?_0x4b7d47:_0x4b7d47+'';}function F(_0x157c67,_0x23f8cb,_0xf0cc71){const _0x4561a3=_0x57ad;return(_0x23f8cb=Ae(_0x23f8cb))in _0x157c67?Object[_0x4561a3(0x227)](_0x157c67,_0x23f8cb,{'value':_0xf0cc71,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x157c67[_0x23f8cb]=_0xf0cc71,_0x157c67;}var I=class extends _0x2d464d{constructor(..._0xc11b99){const _0x2af3d6=_0x57ad;super(..._0xc11b99),F(this,_0x2af3d6(0x1ca),new Map()),F(this,_0x2af3d6(0x1c3),new _0x4cd9b8()),F(this,_0x2af3d6(0x1d1),this[_0x2af3d6(0x1c3)][_0x2af3d6(0x1ab)]());}['getOutlines'](_0x26c6cc,_0x568bba){const _0x4c9b31=_0x57ad;var _0x2b2a0c,_0xd4a400;return[...(_0x2b2a0c=(_0xd4a400=this[_0x4c9b31(0x1ca)]['get'](_0x26c6cc))==null?void 0x0:_0xd4a400[_0x4c9b31(0x1c4)](_0x568bba))==null?[]:_0x2b2a0c];}['getUnitOutlines'](_0x279a3a){const _0x23045d=_0x57ad;let _0x5db313=this['_outlines']['get'](_0x279a3a),_0x2b335c=new Map();return _0x5db313==null||_0x5db313[_0x23045d(0x1d3)]((_0xbedb71,_0x12596e)=>{const _0x316e26=_0x23045d;_0x2b335c[_0x316e26(0x1a4)](_0x12596e,[..._0xbedb71]);}),_0x2b335c;}['setOutlines'](_0x4e4203,_0x255f59,_0x53440c){const _0x2b4a5a=_0x57ad;this[_0x2b4a5a(0x1aa)](_0x4e4203)[_0x2b4a5a(0x1a4)](_0x255f59,[..._0x53440c]),this[_0x2b4a5a(0x1c3)][_0x2b4a5a(0x1ac)]({'unitId':_0x4e4203,'subUnitId':_0x255f59});}[_0x2b136a(0x21e)](_0x29140a){const _0x599331=_0x2b136a;this['_outlines']['delete'](_0x29140a),this[_0x599331(0x1c3)][_0x599331(0x1ac)]({'unitId':_0x29140a});}[_0x2b136a(0x1ed)](_0x3076fd){const _0x5ae18b=_0x2b136a;let _0x16ec33=this[_0x5ae18b(0x1ca)]['get'](_0x3076fd),_0x3a95fa={};return _0x16ec33==null||_0x16ec33['forEach']((_0xaeb377,_0x49dc2a)=>{_0x3a95fa[_0x49dc2a]={'outlineList':[..._0xaeb377]};}),_0x3a95fa;}[_0x2b136a(0x1f1)](_0x447847,_0xd51d47){const _0x4a98d2=_0x2b136a;let _0x55600c=new Map();Object[_0x4a98d2(0x1f9)](_0xd51d47)[_0x4a98d2(0x1d3)](([_0x3a4851,_0x268e01])=>{const _0x522515=_0x4a98d2;var _0x290860;_0x55600c[_0x522515(0x1a4)](_0x3a4851,[...(_0x290860=_0x268e01[_0x522515(0x22a)])==null?[]:_0x290860]);}),this[_0x4a98d2(0x1ca)][_0x4a98d2(0x1a4)](_0x447847,_0x55600c),this[_0x4a98d2(0x1c3)][_0x4a98d2(0x1ac)]({'unitId':_0x447847});}[_0x2b136a(0x209)](){const _0x4c3a41=_0x2b136a;super[_0x4c3a41(0x209)](),this[_0x4c3a41(0x1ca)]['clear'](),this[_0x4c3a41(0x1c3)]['complete']();}['_ensureUnitOutlines'](_0x360dea){const _0x189dfa=_0x2b136a;let _0x5854b4=this['_outlines'][_0x189dfa(0x1c4)](_0x360dea);return _0x5854b4||(_0x5854b4=new Map(),this[_0x189dfa(0x1ca)][_0x189dfa(0x1a4)](_0x360dea,_0x5854b4)),_0x5854b4;}},L=class extends _0x2d464d{constructor(..._0x547bee){const _0x293fb3=_0x2b136a;super(..._0x547bee),F(this,'_error$',new _0x4cd9b8()),F(this,_0x293fb3(0x217),this[_0x293fb3(0x1db)][_0x293fb3(0x1ab)]());}[_0x2b136a(0x1f0)](_0x43b00a){const _0x356db7=_0x2b136a;this[_0x356db7(0x1db)][_0x356db7(0x1ac)](_0x43b00a);}[_0x2b136a(0x209)](){const _0x1215f0=_0x2b136a;super[_0x1215f0(0x209)](),this[_0x1215f0(0x1db)]['complete']();}};const R={'id':'sheet.mutation.add-dimension-outline','type':_0x402f43[_0x2b136a(0x1fe)],'handler':(_0x557902,_0x582f0c)=>{const _0x218aeb=_0x2b136a;let _0x49b2e2=_0x557902[_0x218aeb(0x1c4)](I),_0x2c0025=_0x49b2e2[_0x218aeb(0x210)](_0x582f0c[_0x218aeb(0x1d0)],_0x582f0c[_0x218aeb(0x1e7)]);return _0x49b2e2['setOutlines'](_0x582f0c[_0x218aeb(0x1d0)],_0x582f0c[_0x218aeb(0x1e7)],he(_0x2c0025,_0x582f0c[_0x218aeb(0x1e0)])),!0x0;}},z={'id':_0x2b136a(0x1af),'type':_0x402f43[_0x2b136a(0x1fe)],'handler':(_0x575e00,_0x583a2c)=>{const _0x50eec8=_0x2b136a;let _0x52c05d=_0x575e00[_0x50eec8(0x1c4)](I),_0x18e594=_0x52c05d['getOutlines'](_0x583a2c[_0x50eec8(0x1d0)],_0x583a2c[_0x50eec8(0x1e7)]);return _0x52c05d[_0x50eec8(0x1b8)](_0x583a2c[_0x50eec8(0x1d0)],_0x583a2c[_0x50eec8(0x1e7)],_0x18e594[_0x50eec8(0x1d9)](_0x40a0bb=>_0x40a0bb['id']!==_0x583a2c['outlineId'])),!0x0;}};function B(_0x56b5a7,_0x384721,_0x5cee03){const _0x4994eb=_0x2b136a;let _0x5cb4f4=Me(_0x56b5a7);return _0x5cb4f4?_0x5cb4f4[_0x4994eb(0x1e5)]({'workbookTypes':[_0x18fbd9],'worksheetTypes':[_0x442ea8]},_0x384721,_0x5cee03):!0x0;}function je(_0x4804a7,_0x4da6ce,_0x37b185){const _0x15a762=_0x2b136a;var _0x47de2b;let _0x34bc9c=Ne(_0x4804a7);return((_0x47de2b=_0x34bc9c==null?void 0x0:_0x34bc9c[_0x15a762(0x196)])==null?_0x3c541c(null):_0x47de2b)['pipe'](_0x203016(0x64),_0x1b8a00(null),_0x30f77(()=>B(_0x4804a7,_0x4da6ce,_0x37b185)));}function _0x4bc1(){const _0x45c06c=['set','clear-range-not-contain-outline','getMaxColumns','8vFrZuz','COMMAND','max','_ensureUnitOutlines','asObservable','next','sheet.command.remove-dimension-outline','endColumn','sheet.mutation.remove-dimension-outline','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','COLUMN','sheet.mutation.clear-dimension-outlines','preUndos','join','valid','iterator','find','setOutlines','_commandService','fromRange','sheet.mutation.set-dimension-outline-collapsed','destinationIndex','invalid-range','message','insert','CROSSING','max-depth','depth','_change$','get','OUT_OF_BOUNDS','result','outlineId','function','_sheetInterceptorService','_outlines','out-of-bounds','object','5430ZldcMU','sourceStart','pluginName','unitId','change$','registerCommand','forEach','getUnitId','some','children','stringify','getOwnPropertyDescriptor','filter','_initRegisterCommand','_error$','values','registerPluginResource','from','1326895aGMBYj','outline','startRow','split\x20dimension\x20outline','_injector','_resourceManagerService','permissionCheckWithoutRange','1708446WAQMvK','subUnitId','redos','map','getActiveSheet','sourceEnd','length','serialize','end','params','emit','deserialize','startColumn','undos','getRowCount','getCurrentUnitOfType','type','crossing','add','entries','sheet.command.add-dimension-outline','_initCommandInterceptor','collapsed','_sheetsOutlineModel','MUTATION','getSheetBySheetId','decorate','Invalid\x20dimension\x20outline\x20mutation','symbol','version','move-splits-outline','2kDOPOq','_univerInstanceService','_getCommandScope','DimensionOutlineError','dispose','toRange','122177KqnsGQ','getUniverSheetInstance','UNIVER_SHEET','_initResource','sheet.command.clear-dimension-outlines','getOutlines','1756688IZRCnQ','localeCompare','onStarting','1555190EoFGJa','_sheetsOutlineErrorService','1.0.0-alpha.0','error$','start','ROW','default','string','includes','split','removeUnit','mergedOutlines','reason','MAX_DEPTH','packageName','invalid-dimension-outline','pushUndoRedo','unknown','INVALID_RANGE','defineProperty','has','column','outlineList','push','move','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','offset','Crossing','count','row','_config','call','index','getColumnCount','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSheetId','permissionPointUpdate$','2043VOXFkn','axis','sheets-outline.config','range','573759VUEmbb','disposeWithMe','endRow','sort','parse','sheet.mutation.transform-dimension-outlines','restoreOutlines','min','delete'];_0x4bc1=function(){return _0x45c06c;};return _0x4bc1();}function Me(_0x236e5f){const _0x5df0a3=_0x2b136a;if(typeof _0x236e5f[_0x5df0a3(0x228)]==_0x5df0a3(0x1c8)&&!_0x236e5f[_0x5df0a3(0x228)](_0x640d59))return null;try{return _0x236e5f['get'](_0x640d59);}catch{return null;}}function Ne(_0x5e74c2){const _0x57eb45=_0x2b136a;if(typeof _0x5e74c2['has']==_0x57eb45(0x1c8)&&!_0x5e74c2[_0x57eb45(0x228)](_0x23dc6a))return null;try{return _0x5e74c2[_0x57eb45(0x1c4)](_0x23dc6a);}catch{return null;}}const V={'id':_0x2b136a(0x1fa),'type':_0x402f43[_0x2b136a(0x1a8)],'handler':(_0x14d4cb,_0x537348)=>{const _0x43e84b=_0x2b136a;var _0x59462c,_0xce8d50;if(!_0x537348)return!0x1;let _0x25a6aa=_0x3c02f4(_0x14d4cb[_0x43e84b(0x1c4)](_0x478d16),_0x537348);if(!_0x25a6aa)return!0x1;let {unitId:_0x1da25d,subUnitId:_0x10ba78,worksheet:_0x8eb457}=_0x25a6aa;if(!B(_0x14d4cb,_0x1da25d,_0x10ba78))return!0x1;let _0x2e0aeb=_0x14d4cb[_0x43e84b(0x1c4)](I),_0x331783={'id':'dimension-outline-'+_0x3f215b(0x6),'unitId':_0x1da25d,'subUnitId':_0x10ba78,'axis':_0x537348[_0x43e84b(0x198)],'start':_0x537348[_0x43e84b(0x218)],'end':_0x537348[_0x43e84b(0x1ee)],'collapsed':!0x1},_0x95dbe9=_0x537348['axis']===_0x43e84b(0x18f)?_0x8eb457['getRowCount']():_0x8eb457[_0x43e84b(0x193)](),_0x4ea869=_0x2e0aeb[_0x43e84b(0x210)](_0x1da25d,_0x10ba78),_0x4df663=ge(_0x4ea869,_0x331783),_0x494534=(_0x59462c=_0x4df663==null?void 0x0:_0x4df663[_0x43e84b(0x21f)])==null?[]:_0x59462c,_0x2f9875=(_0xce8d50=_0x4df663==null?void 0x0:_0x4df663['mergedOutline'])==null?_0x331783:_0xce8d50,_0x15bc9a=k(_0x4df663?_0x4ea869[_0x43e84b(0x1d9)](_0x261298=>!_0x494534[_0x43e84b(0x1d5)](_0x1625bd=>_0x1625bd['id']===_0x261298['id'])):_0x4ea869,_0x2f9875,{'maxIndex':_0x95dbe9});if(!_0x15bc9a[_0x43e84b(0x1b5)]){var _0x1b6610;return _0x14d4cb[_0x43e84b(0x1c4)](L)['emit']({'reason':(_0x1b6610=_0x15bc9a[_0x43e84b(0x220)])==null?_0x43e84b(0x225):_0x1b6610,'commandId':V['id'],'unitId':_0x1da25d,'subUnitId':_0x10ba78,'axis':_0x537348[_0x43e84b(0x198)],'outlineId':_0x2f9875['id']}),!0x1;}let _0x25236f=[..._0x494534[_0x43e84b(0x1e9)](_0x13bc37=>({'id':z['id'],'params':{'unitId':_0x1da25d,'subUnitId':_0x10ba78,'outlineId':_0x13bc37['id']}})),{'id':R['id'],'params':{'unitId':_0x1da25d,'subUnitId':_0x10ba78,'outline':_0x2f9875}}],_0x365edd=[{'id':z['id'],'params':{'unitId':_0x1da25d,'subUnitId':_0x10ba78,'outlineId':_0x2f9875['id']}},..._0x494534[_0x43e84b(0x1e9)](_0x34d730=>({'id':R['id'],'params':{'unitId':_0x1da25d,'subUnitId':_0x10ba78,'outline':_0x34d730}}))];return _0x5c26bc(_0x25236f,_0x14d4cb[_0x43e84b(0x1c4)](_0x355240))[_0x43e84b(0x1c6)]?(_0x14d4cb[_0x43e84b(0x1c4)](_0x433e23)[_0x43e84b(0x224)]({'unitID':_0x1da25d,'undoMutations':_0x365edd,'redoMutations':_0x25236f}),!0x0):!0x1;}},H={'id':_0x2b136a(0x1b2),'type':_0x402f43[_0x2b136a(0x1fe)],'handler':(_0x231273,_0x383b7f)=>{const _0x181cfa=_0x2b136a;let _0x2f889d=_0x231273[_0x181cfa(0x1c4)](I),_0x92944e=_0x2f889d[_0x181cfa(0x210)](_0x383b7f['unitId'],_0x383b7f['subUnitId']);return _0x2f889d[_0x181cfa(0x1b8)](_0x383b7f[_0x181cfa(0x1d0)],_0x383b7f['subUnitId'],_e(_0x92944e,_0x383b7f)),!0x0;}},U={'id':_0x2b136a(0x20f),'type':_0x402f43['COMMAND'],'handler':(_0x66c2af,_0x506d1c)=>{const _0x154e08=_0x2b136a;if(!_0x506d1c)return!0x1;let _0x2e6178=_0x3c02f4(_0x66c2af[_0x154e08(0x1c4)](_0x478d16),_0x506d1c);if(!_0x2e6178)return!0x1;let {unitId:_0x59ad32,subUnitId:_0x43fb2b}=_0x2e6178;if(!B(_0x66c2af,_0x59ad32,_0x43fb2b))return!0x1;let _0x5b3dff={'unitId':_0x59ad32,'subUnitId':_0x43fb2b,'axis':_0x506d1c[_0x154e08(0x198)],'start':_0x506d1c[_0x154e08(0x218)],'end':_0x506d1c[_0x154e08(0x1ee)]},_0x11bfec=_0x66c2af[_0x154e08(0x1c4)](I)[_0x154e08(0x210)](_0x59ad32,_0x43fb2b)['filter'](_0x5e5b6a=>D(_0x5e5b6a,_0x5b3dff)&&_0x5e5b6a[_0x154e08(0x218)]>=_0x506d1c[_0x154e08(0x218)]&&_0x5e5b6a[_0x154e08(0x1ee)]<=_0x506d1c[_0x154e08(0x1ee)]);if(_0x11bfec['length']===0x0)return _0x66c2af[_0x154e08(0x1c4)](L)['emit']({'reason':_0x154e08(0x1a5),'commandId':U['id'],'unitId':_0x59ad32,'subUnitId':_0x43fb2b,'axis':_0x506d1c[_0x154e08(0x198)]}),!0x1;let _0xbf7ce2=[{'id':H['id'],'params':{..._0x5b3dff,'removedOutlineIds':_0x11bfec[_0x154e08(0x1e9)](_0x1ccdb5=>_0x1ccdb5['id'])}}],_0x4490c3=_0x11bfec[_0x154e08(0x1e9)](_0x87e30=>({'id':R['id'],'params':{'unitId':_0x59ad32,'subUnitId':_0x43fb2b,'outline':_0x87e30}}));return _0x5c26bc(_0xbf7ce2,_0x66c2af[_0x154e08(0x1c4)](_0x355240))[_0x154e08(0x1c6)]?(_0x66c2af[_0x154e08(0x1c4)](_0x433e23)[_0x154e08(0x224)]({'unitID':_0x59ad32,'undoMutations':_0x4490c3,'redoMutations':_0xbf7ce2}),!0x0):!0x1;}},Pe={'id':_0x2b136a(0x1ad),'type':_0x402f43[_0x2b136a(0x1a8)],'handler':(_0x14402d,_0x1c0de7)=>{const _0x493311=_0x2b136a;if(!_0x1c0de7)return!0x1;let _0x1e9d35=_0x3c02f4(_0x14402d[_0x493311(0x1c4)](_0x478d16),_0x1c0de7);if(!_0x1e9d35)return!0x1;let {unitId:_0x3b5d72,subUnitId:_0x2aaf0d}=_0x1e9d35;if(!B(_0x14402d,_0x3b5d72,_0x2aaf0d))return!0x1;let _0x26d13f=_0x14402d[_0x493311(0x1c4)](I)[_0x493311(0x210)](_0x3b5d72,_0x2aaf0d)['find'](_0x170a82=>_0x170a82['id']===_0x1c0de7[_0x493311(0x1c7)]);if(!_0x26d13f)return!0x1;let _0x16ba56=[{'id':z['id'],'params':{'unitId':_0x3b5d72,'subUnitId':_0x2aaf0d,'outlineId':_0x26d13f['id'],'outline':_0x26d13f}}],_0x2f6b6a=[{'id':R['id'],'params':{'unitId':_0x3b5d72,'subUnitId':_0x2aaf0d,'outline':_0x26d13f}}];return _0x5c26bc(_0x16ba56,_0x14402d['get'](_0x355240))['result']?(_0x14402d[_0x493311(0x1c4)](_0x433e23)[_0x493311(0x224)]({'unitID':_0x3b5d72,'undoMutations':_0x2f6b6a,'redoMutations':_0x16ba56}),!0x0):!0x1;}},W={'id':_0x2b136a(0x1bb),'type':_0x402f43['MUTATION'],'handler':(_0x191079,_0x3684f3)=>{const _0x4d48cc=_0x2b136a;let _0x38b75e=_0x191079[_0x4d48cc(0x1c4)](I),_0x3bf2e2=_0x38b75e['getOutlines'](_0x3684f3[_0x4d48cc(0x1d0)],_0x3684f3[_0x4d48cc(0x1e7)]),_0x20169d=_0x3bf2e2[_0x4d48cc(0x1b7)](_0x350cf5=>_0x350cf5['id']===_0x3684f3['outlineId']);return _0x20169d&&_0x38b75e[_0x4d48cc(0x1b8)](_0x3684f3[_0x4d48cc(0x1d0)],_0x3684f3[_0x4d48cc(0x1e7)],_0x3bf2e2[_0x4d48cc(0x1e9)](_0x10f073=>_0x10f073['unitId']!==_0x20169d[_0x4d48cc(0x1d0)]||_0x10f073[_0x4d48cc(0x1e7)]!==_0x20169d[_0x4d48cc(0x1e7)]||_0x10f073[_0x4d48cc(0x198)]!==_0x20169d[_0x4d48cc(0x198)]||_0x10f073['start']!==_0x20169d[_0x4d48cc(0x218)]||_0x10f073[_0x4d48cc(0x1ee)]!==_0x20169d[_0x4d48cc(0x1ee)]?_0x10f073:{..._0x10f073,'collapsed':_0x3684f3[_0x4d48cc(0x1fc)]})),!0x0;}};function Fe(_0x120715,_0x277f1d,_0x44ca81,_0x286ced){const _0x4be367=_0x2b136a;return _0x120715===_0x4be367(0x18f)?{'startRow':_0x277f1d,'endRow':_0x44ca81,'startColumn':0x0,'endColumn':_0x286ced[_0x4be367(0x1a6)]()-0x1}:{'startRow':0x0,'endRow':_0x286ced[_0x4be367(0x1f4)]()-0x1,'startColumn':_0x277f1d,'endColumn':_0x44ca81};}function Ie(_0x4e9a99){const _0x4ba917=_0x2b136a;return _0x4e9a99===_0x4ba917(0x18f)?_0x133fe5['id']:_0x4d70f1['id'];}function Le(_0x39beac){const _0x25072e=_0x2b136a;return _0x39beac===_0x25072e(0x18f)?_0x32843d['id']:_0x4d9cdf['id'];}function Re(_0x23e205,_0x16f473,_0x15df64,_0x40deed){const _0x1cf300=_0x2b136a;let _0x54df82=_0x16f473?[Fe(_0x23e205[_0x1cf300(0x198)],_0x23e205[_0x1cf300(0x218)],_0x23e205[_0x1cf300(0x1ee)],_0x15df64)]:ze(_0x23e205,_0x40deed,_0x15df64),_0x53b407=_0x16f473?Ie(_0x23e205['axis']):Le(_0x23e205[_0x1cf300(0x198)]);return[{'id':W['id'],'params':{'unitId':_0x23e205['unitId'],'subUnitId':_0x23e205[_0x1cf300(0x1e7)],'outlineId':_0x23e205['id'],'outline':_0x23e205,'collapsed':_0x16f473}},..._0x54df82['map'](_0x829726=>({'id':_0x53b407,'params':{'unitId':_0x23e205['unitId'],'subUnitId':_0x23e205['subUnitId'],'ranges':[_0x829726],'dimensionOutlineId':_0x23e205['id']}}))];}function ze(_0x24aeba,_0x33c436,_0x141275){const _0x430cd1=_0x2b136a;let _0x523e39=ve(_0x33c436[_0x430cd1(0x1e9)](_0x16a69b=>Be(_0x16a69b,_0x24aeba)?{..._0x16a69b,'collapsed':!0x1}:_0x16a69b),_0x24aeba['unitId'],_0x24aeba[_0x430cd1(0x1e7)],_0x24aeba[_0x430cd1(0x198)]);return Ve({'start':_0x24aeba[_0x430cd1(0x218)],'end':_0x24aeba[_0x430cd1(0x1ee)]},_0x523e39)['map'](_0xf955dd=>Fe(_0x24aeba[_0x430cd1(0x198)],_0xf955dd[_0x430cd1(0x218)],_0xf955dd[_0x430cd1(0x1ee)],_0x141275));}function Be(_0x1798f2,_0x34430e){const _0x3577fe=_0x2b136a;return _0x1798f2[_0x3577fe(0x1d0)]===_0x34430e['unitId']&&_0x1798f2['subUnitId']===_0x34430e[_0x3577fe(0x1e7)]&&_0x1798f2[_0x3577fe(0x198)]===_0x34430e[_0x3577fe(0x198)]&&_0x1798f2[_0x3577fe(0x218)]===_0x34430e[_0x3577fe(0x218)]&&_0x1798f2[_0x3577fe(0x1ee)]===_0x34430e[_0x3577fe(0x1ee)];}function Ve(_0x3a21bf,_0x1634d1){const _0x4ee74b=_0x2b136a;let _0x566d87=_0x3a21bf['start'],_0x18f245=[];for(let _0x523fce of _0x1634d1)if(!(_0x523fce[_0x4ee74b(0x1ee)]<_0x566d87||_0x523fce[_0x4ee74b(0x218)]>_0x3a21bf[_0x4ee74b(0x1ee)])&&(_0x523fce[_0x4ee74b(0x218)]>_0x566d87&&_0x18f245[_0x4ee74b(0x189)]({'start':_0x566d87,'end':Math[_0x4ee74b(0x1a2)](_0x523fce[_0x4ee74b(0x218)]-0x1,_0x3a21bf[_0x4ee74b(0x1ee)])}),_0x566d87=Math[_0x4ee74b(0x1a9)](_0x566d87,_0x523fce[_0x4ee74b(0x1ee)]+0x1),_0x566d87>_0x3a21bf[_0x4ee74b(0x1ee)]))break;return _0x566d87<=_0x3a21bf['end']&&_0x18f245['push']({'start':_0x566d87,'end':_0x3a21bf[_0x4ee74b(0x1ee)]}),_0x18f245;}const He={'id':'sheet.command.set-dimension-outline-collapsed','type':_0x402f43[_0x2b136a(0x1a8)],'handler':(_0x36db79,_0x4106a7)=>{const _0x560ee4=_0x2b136a;if(!_0x4106a7)return!0x1;let _0x593e95=_0x3c02f4(_0x36db79[_0x560ee4(0x1c4)](_0x478d16),_0x4106a7);if(!_0x593e95)return!0x1;let {unitId:_0x3fac46,subUnitId:_0x136a9f,worksheet:_0x3b047e}=_0x593e95;if(!B(_0x36db79,_0x3fac46,_0x136a9f))return!0x1;let _0x17b590=_0x36db79[_0x560ee4(0x1c4)](I)[_0x560ee4(0x210)](_0x3fac46,_0x136a9f),_0x546275=_0x17b590['find'](_0x19be08=>_0x19be08['id']===_0x4106a7[_0x560ee4(0x1c7)]);if(!_0x546275||_0x546275['collapsed']===_0x4106a7[_0x560ee4(0x1fc)])return!0x1;let _0x463177=Re(_0x546275,_0x4106a7['collapsed'],_0x3b047e,_0x17b590),_0x2ab260=Re(_0x546275,!_0x4106a7[_0x560ee4(0x1fc)],_0x3b047e,_0x17b590);return _0x5c26bc(_0x463177,_0x36db79[_0x560ee4(0x1c4)](_0x355240))['result']?(_0x36db79[_0x560ee4(0x1c4)](_0x433e23)[_0x560ee4(0x224)]({'unitID':_0x3fac46,'undoMutations':_0x2ab260,'redoMutations':_0x463177}),!0x0):!0x1;}},G={'id':_0x2b136a(0x1a0),'type':_0x402f43[_0x2b136a(0x1fe)],'handler':(_0x151249,_0x4c7190)=>{const _0x46858f=_0x2b136a;let _0x57733a=_0x151249[_0x46858f(0x1c4)](I),_0x4611cd=Ue(_0x57733a[_0x46858f(0x210)](_0x4c7190[_0x46858f(0x1d0)],_0x4c7190[_0x46858f(0x1e7)]),_0x4c7190);return _0x57733a['setOutlines'](_0x4c7190[_0x46858f(0x1d0)],_0x4c7190[_0x46858f(0x1e7)],_0x4611cd),!0x0;}};function Ue(_0x4c39db,_0x1afbe2){const _0x4f1a4b=_0x2b136a;switch(_0x1afbe2[_0x4f1a4b(0x1f6)]){case _0x4f1a4b(0x1bf):return _0x1afbe2[_0x4f1a4b(0x1a1)]?We(_0x4c39db,_0x1afbe2):A(_0x4c39db,_0x1afbe2);case _0x4f1a4b(0x1a3):return j(_0x4c39db,_0x1afbe2);case'move':return M(_0x4c39db,_0x1afbe2);}}function We(_0x2ba3ae,_0x14b1fc){const _0x367171=_0x2b136a;return[..._0x2ba3ae[_0x367171(0x1d9)](_0x130dfd=>_0x130dfd['unitId']!==_0x14b1fc[_0x367171(0x1d0)]||_0x130dfd['subUnitId']!==_0x14b1fc['subUnitId']||_0x130dfd[_0x367171(0x198)]!==_0x14b1fc[_0x367171(0x198)]),..._0x14b1fc[_0x367171(0x1a1)]];}const K='SHEET_OUTLINE_PLUGIN',Ge=_0x2b136a(0x199);var Ke='@univerjs-pro/sheets-outline',qe=_0x2b136a(0x216);function q(_0x1d8f98,_0x35acde){return function(_0x55aafb,_0x186309){_0x35acde(_0x55aafb,_0x186309,_0x1d8f98);};}function J(_0x25f7df,_0x230949,_0x33a421,_0x8f8391){const _0x3c6ec2=_0x2b136a;var _0x768d3c=arguments[_0x3c6ec2(0x1ec)],_0x38f930=_0x768d3c<0x3?_0x230949:_0x8f8391===null?_0x8f8391=Object[_0x3c6ec2(0x1d8)](_0x230949,_0x33a421):_0x8f8391,_0x320dba;if(typeof Reflect==_0x3c6ec2(0x1cc)&&typeof Reflect[_0x3c6ec2(0x200)]=='function')_0x38f930=Reflect[_0x3c6ec2(0x200)](_0x25f7df,_0x230949,_0x33a421,_0x8f8391);else{for(var _0x389b8c=_0x25f7df['length']-0x1;_0x389b8c>=0x0;_0x389b8c--)(_0x320dba=_0x25f7df[_0x389b8c])&&(_0x38f930=(_0x768d3c<0x3?_0x320dba(_0x38f930):_0x768d3c>0x3?_0x320dba(_0x230949,_0x33a421,_0x38f930):_0x320dba(_0x230949,_0x33a421))||_0x38f930);}return _0x768d3c>0x3&&_0x38f930&&Object[_0x3c6ec2(0x227)](_0x230949,_0x33a421,_0x38f930),_0x38f930;}const Y={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let X=class extends _0x2d464d{constructor(_0x498798,_0x35134c,_0xdc6e22,_0x42f4e0){const _0x1f744c=_0x2b136a;super(),this['_univerInstanceService']=_0x498798,this[_0x1f744c(0x1c9)]=_0x35134c,this[_0x1f744c(0x1fd)]=_0xdc6e22,this['_sheetsOutlineErrorService']=_0x42f4e0,this['_initCommandInterceptor']();}[_0x2b136a(0x1fb)](){const _0x245fe0=_0x2b136a;this[_0x245fe0(0x19c)](this[_0x245fe0(0x1c9)]['interceptCommand']({'getMutations':_0x33b7f0=>Je(_0x33b7f0,(_0x4ef215,_0x5ed0de)=>this[_0x245fe0(0x1fd)][_0x245fe0(0x210)](_0x4ef215,_0x5ed0de),this[_0x245fe0(0x207)](_0x33b7f0[_0x245fe0(0x1ef)]),_0x40d693=>this[_0x245fe0(0x215)][_0x245fe0(0x1f0)](_0x40d693))}));}['_getCommandScope'](_0x1b225a){const _0x49c3a2=_0x2b136a;let _0x38364f=_0x1b225a,_0x407f89=_0x38364f!=null&&_0x38364f[_0x49c3a2(0x1d0)]?this['_univerInstanceService'][_0x49c3a2(0x20c)](_0x38364f[_0x49c3a2(0x1d0)]):this[_0x49c3a2(0x206)][_0x49c3a2(0x1f5)](_0x2c22e1[_0x49c3a2(0x20d)]);if(!_0x407f89)return;let _0x555500=_0x38364f!=null&&_0x38364f[_0x49c3a2(0x1e7)]?_0x407f89[_0x49c3a2(0x1ff)](_0x38364f['subUnitId']):_0x407f89[_0x49c3a2(0x1ea)]();if(_0x555500)return{'unitId':_0x407f89[_0x49c3a2(0x1d4)](),'subUnitId':_0x555500[_0x49c3a2(0x195)]()};}};X=J([q(0x0,_0x478d16),q(0x1,_0x276b8a(_0x53c644)),q(0x2,_0x276b8a(I)),q(0x3,_0x276b8a(L))],X);function Je(_0x3eca86,_0x39fb34,_0x4f2e60,_0x59bd36){const _0x35de08=_0x2b136a;let _0x203251=Xe(_0x3eca86,_0x4f2e60);if(!_0x203251)return nt();let _0x383a4a=_0x39fb34(_0x203251[_0x35de08(0x1d0)],_0x203251[_0x35de08(0x1e7)]);if(!_0x383a4a[_0x35de08(0x1d5)](_0x101820=>_0x101820[_0x35de08(0x198)]===_0x203251[_0x35de08(0x198)]))return nt();Ye(_0x383a4a,_0x203251,_0x3eca86['id'],_0x59bd36);let _0x4bdac5=et(_0x203251,_0x383a4a);return{'redos':[{'id':G['id'],'params':_0x203251}],'undos':[{'id':G['id'],'params':_0x4bdac5}],'preRedos':[],'preUndos':[]};}function Ye(_0x292f72,_0x235e5d,_0x342f89,_0x2b2ef6){const _0x309ee6=_0x2b136a;try{switch(_0x235e5d[_0x309ee6(0x1f6)]){case'insert':A(_0x292f72,_0x235e5d);break;case'delete':j(_0x292f72,_0x235e5d);break;case _0x309ee6(0x18a):M(_0x292f72,_0x235e5d);break;}}catch(_0x405f87){throw _0x2b2ef6==null||_0x2b2ef6({'reason':T(_0x405f87),'commandId':_0x342f89,'unitId':_0x235e5d[_0x309ee6(0x1d0)],'subUnitId':_0x235e5d['subUnitId'],'axis':_0x235e5d[_0x309ee6(0x198)],'outlineId':me(_0x405f87)}),new _0x572a0e(_0x405f87 instanceof Error?_0x405f87[_0x309ee6(0x1be)]:_0x309ee6(0x201));}}function Xe(_0x1f712b,_0x2d667d){const _0x3b0519=_0x2b136a;switch(_0x1f712b['id']){case _0x4069a2['id']:return Ze(_0x1f712b[_0x3b0519(0x1ef)],_0x3b0519(0x18f),_0x2d667d);case _0x1962b8['id']:return Ze(_0x1f712b[_0x3b0519(0x1ef)],_0x3b0519(0x229),_0x2d667d);case _0x4211b9['id']:return Qe(_0x1f712b[_0x3b0519(0x1ef)],'row',_0x2d667d);case _0x1f7ffb['id']:return Qe(_0x1f712b[_0x3b0519(0x1ef)],_0x3b0519(0x229),_0x2d667d);case _0x992660['id']:return $e(_0x1f712b['params'],_0x3b0519(0x18f),_0x2d667d);case _0x5c79fe['id']:return $e(_0x1f712b[_0x3b0519(0x1ef)],_0x3b0519(0x229),_0x2d667d);default:return null;}}function Ze(_0x5bfa6e,_0x12b55e,_0x48c1a6){const _0x507a63=_0x2b136a;let _0x4bd5f7=Z(_0x5bfa6e,_0x48c1a6);if(!(_0x5bfa6e!=null&&_0x5bfa6e[_0x507a63(0x19a)])||!_0x4bd5f7)return null;let _0x21b6f4=_0x12b55e===_0x507a63(0x18f)?_0x5bfa6e[_0x507a63(0x19a)][_0x507a63(0x1e1)]:_0x5bfa6e['range'][_0x507a63(0x1f2)],_0x111949=_0x12b55e===_0x507a63(0x18f)?_0x5bfa6e['range'][_0x507a63(0x19d)]:_0x5bfa6e[_0x507a63(0x19a)][_0x507a63(0x1ae)];return{..._0x4bd5f7,'axis':_0x12b55e,'type':_0x507a63(0x1bf),'index':_0x21b6f4,'count':_0x111949-_0x21b6f4+0x1};}function Qe(_0x738dea,_0x3e2181,_0xb32900){const _0xa79d78=_0x2b136a;let _0x734940=Z(_0x738dea,_0xb32900);if(!(_0x738dea!=null&&_0x738dea['range'])||!_0x734940)return null;let _0x40913a=_0x3e2181==='row'?_0x738dea[_0xa79d78(0x19a)][_0xa79d78(0x1e1)]:_0x738dea['range']['startColumn'],_0x30ae26=_0x3e2181==='row'?_0x738dea[_0xa79d78(0x19a)][_0xa79d78(0x19d)]:_0x738dea[_0xa79d78(0x19a)][_0xa79d78(0x1ae)];return{..._0x734940,'axis':_0x3e2181,'type':_0xa79d78(0x1a3),'start':_0x40913a,'end':_0x30ae26};}function $e(_0x2c4e53,_0x545f79,_0xfe6375){const _0x3e61e6=_0x2b136a;let _0x1d3bfd=Z(_0x2c4e53,_0xfe6375);if(!(_0x2c4e53!=null&&_0x2c4e53[_0x3e61e6(0x1ba)])||!_0x2c4e53[_0x3e61e6(0x20a)]||!_0x1d3bfd)return null;let _0x562186=_0x545f79===_0x3e61e6(0x18f)?_0x2c4e53[_0x3e61e6(0x1ba)][_0x3e61e6(0x1e1)]:_0x2c4e53[_0x3e61e6(0x1ba)][_0x3e61e6(0x1f2)],_0x527a6c=_0x545f79===_0x3e61e6(0x18f)?_0x2c4e53[_0x3e61e6(0x1ba)][_0x3e61e6(0x19d)]:_0x2c4e53[_0x3e61e6(0x1ba)]['endColumn'],_0x13580d=_0x545f79===_0x3e61e6(0x18f)?_0x2c4e53[_0x3e61e6(0x20a)][_0x3e61e6(0x1e1)]:_0x2c4e53[_0x3e61e6(0x20a)]['startColumn'];return{..._0x1d3bfd,'axis':_0x545f79,'type':_0x3e61e6(0x18a),'sourceStart':_0x562186,'sourceEnd':_0x527a6c,'destinationIndex':_0x13580d};}function et(_0x59d62b,_0x320492){const _0x1aee40=_0x2b136a;switch(_0x59d62b[_0x1aee40(0x1f6)]){case _0x1aee40(0x1bf):return{'unitId':_0x59d62b[_0x1aee40(0x1d0)],'subUnitId':_0x59d62b[_0x1aee40(0x1e7)],'axis':_0x59d62b[_0x1aee40(0x198)],'type':_0x1aee40(0x1a3),'start':_0x59d62b[_0x1aee40(0x192)],'end':_0x59d62b[_0x1aee40(0x192)]+_0x59d62b[_0x1aee40(0x18e)]-0x1};case _0x1aee40(0x1a3):return{'unitId':_0x59d62b[_0x1aee40(0x1d0)],'subUnitId':_0x59d62b[_0x1aee40(0x1e7)],'axis':_0x59d62b[_0x1aee40(0x198)],'type':'insert','index':_0x59d62b[_0x1aee40(0x218)],'count':_0x59d62b['end']-_0x59d62b[_0x1aee40(0x218)]+0x1,'restoreOutlines':_0x320492[_0x1aee40(0x1d9)](_0x405c4c=>_0x405c4c[_0x1aee40(0x1d0)]===_0x59d62b[_0x1aee40(0x1d0)]&&_0x405c4c[_0x1aee40(0x1e7)]===_0x59d62b[_0x1aee40(0x1e7)]&&_0x405c4c[_0x1aee40(0x198)]===_0x59d62b[_0x1aee40(0x198)])};case _0x1aee40(0x18a):return tt(_0x59d62b);}}function tt(_0x4e3cb7){const _0x183fac=_0x2b136a;let _0x1ce09d=_0x4e3cb7[_0x183fac(0x1eb)]-_0x4e3cb7[_0x183fac(0x1ce)]+0x1;return _0x4e3cb7[_0x183fac(0x1bc)]>=_0x4e3cb7[_0x183fac(0x1ce)]&&_0x4e3cb7[_0x183fac(0x1bc)]<=_0x4e3cb7['sourceEnd']+0x1?{..._0x4e3cb7}:_0x4e3cb7[_0x183fac(0x1bc)]>_0x4e3cb7[_0x183fac(0x1eb)]+0x1?{..._0x4e3cb7,'sourceStart':_0x4e3cb7['destinationIndex']-_0x1ce09d,'sourceEnd':_0x4e3cb7['destinationIndex']-0x1,'destinationIndex':_0x4e3cb7[_0x183fac(0x1ce)]}:{..._0x4e3cb7,'sourceStart':_0x4e3cb7['destinationIndex'],'sourceEnd':_0x4e3cb7[_0x183fac(0x1bc)]+_0x1ce09d-0x1,'destinationIndex':_0x4e3cb7[_0x183fac(0x1eb)]+0x1};}function Z(_0x4d49fd,_0x49478f){const _0x2a6b65=_0x2b136a;var _0x50d747,_0x2ef4bd;let _0x5d1427=(_0x50d747=_0x4d49fd==null?void 0x0:_0x4d49fd[_0x2a6b65(0x1d0)])==null?_0x49478f==null?void 0x0:_0x49478f[_0x2a6b65(0x1d0)]:_0x50d747,_0x3388ce=(_0x2ef4bd=_0x4d49fd==null?void 0x0:_0x4d49fd[_0x2a6b65(0x1e7)])==null?_0x49478f==null?void 0x0:_0x49478f['subUnitId']:_0x2ef4bd;return _0x5d1427&&_0x3388ce?{'unitId':_0x5d1427,'subUnitId':_0x3388ce}:null;}function nt(){const _0x17eba4=_0x2b136a;var _0x232719,_0xf1ada6;return{'redos':[...Y[_0x17eba4(0x1e8)]],'undos':[...Y[_0x17eba4(0x1f3)]],'preRedos':[...(_0x232719=Y['preRedos'])==null?[]:_0x232719],'preUndos':[...(_0xf1ada6=Y[_0x17eba4(0x1b3)])==null?[]:_0xf1ada6]};}let Q=class extends _0x2d464d{constructor(_0x104366,_0x107e52){const _0x33d043=_0x2b136a;super(),this['_resourceManagerService']=_0x104366,this[_0x33d043(0x1fd)]=_0x107e52,this['_initResource']();}[_0x2b136a(0x20e)](){const _0x245abd=_0x2b136a;this[_0x245abd(0x19c)](this[_0x245abd(0x1e4)][_0x245abd(0x1dd)]({'pluginName':K,'businesses':[_0x2c22e1['UNIVER_SHEET']],'toJson':_0xdf10e7=>JSON[_0x245abd(0x1d7)](this['_sheetsOutlineModel'][_0x245abd(0x1ed)](_0xdf10e7)),'parseJson':_0x5d2f8f=>JSON[_0x245abd(0x19f)](_0x5d2f8f),'onLoad':(_0x4715d8,_0x2a6215)=>this[_0x245abd(0x1fd)]['deserialize'](_0x4715d8,_0x2a6215),'onUnLoad':_0x4c9f8b=>this['_sheetsOutlineModel'][_0x245abd(0x21e)](_0x4c9f8b)}));}};Q=J([q(0x0,_0x15669d),q(0x1,_0x276b8a(I))],Q);let $=class extends _0x1ee2c1{constructor(_0x57d1e5,_0x42271d,_0x3ee711){const _0x457b51=_0x2b136a;super(),this[_0x457b51(0x190)]=_0x57d1e5,this[_0x457b51(0x1e3)]=_0x42271d,this[_0x457b51(0x1b9)]=_0x3ee711;}[_0x2b136a(0x213)](){const _0x2d9caa=_0x2b136a;this[_0x2d9caa(0x1e3)][_0x2d9caa(0x1f8)]([I]),this['_injector']['add']([L]),this[_0x2d9caa(0x1e3)][_0x2d9caa(0x1f8)]([Q]),this[_0x2d9caa(0x1e3)][_0x2d9caa(0x1f8)]([X]),this[_0x2d9caa(0x1da)](),this[_0x2d9caa(0x1e3)]['get'](I),this[_0x2d9caa(0x1e3)][_0x2d9caa(0x1c4)](L),this['_injector'][_0x2d9caa(0x1c4)](Q),this[_0x2d9caa(0x1e3)][_0x2d9caa(0x1c4)](X);}['_initRegisterCommand'](){const _0x29868e=_0x2b136a;[V,Pe,He,U][_0x29868e(0x1d3)](_0x281664=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x281664));}),[R,z,W,H,G][_0x29868e(0x1d3)](_0x2f6335=>{const _0x3e53a8=_0x29868e;this['disposeWithMe'](this['_commandService'][_0x3e53a8(0x1d2)](_0x2f6335));});}};F($,_0x2b136a(0x1cf),K),F($,_0x2b136a(0x222),Ke),F($,_0x2b136a(0x203),qe),F($,_0x2b136a(0x1f6),_0x2c22e1['UNIVER_SHEET']),$=J([_0x4c9be6(_0x2e7caf),q(0x1,_0x276b8a(_0x4f21ac)),q(0x2,_0x355240)],$);export{V as AddDimensionOutlineCommand,R as AddDimensionOutlineMutation,U as ClearDimensionOutlinesCommand,H as ClearDimensionOutlinesMutation,fe as DimensionOutlineAxis,w as DimensionOutlineError,pe as DimensionOutlineErrorReason,Pe as RemoveDimensionOutlineCommand,z as RemoveDimensionOutlineMutation,Ge as SHEETS_OUTLINE_PLUGIN_CONFIG_KEY,K as SHEET_OUTLINE_PLUGIN,He as SetDimensionOutlineCollapsedCommand,W as SetDimensionOutlineCollapsedMutation,L as SheetsOutlineErrorService,I as SheetsOutlineModel,G as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,he as addDimensionOutlineToList,O as buildDimensionOutlineTree,ve as buildHiddenRanges,k as canAddDimensionOutline,_e as clearDimensionOutlinesInRange,me as getDimensionOutlineErrorOutlineId,T as getDimensionOutlineErrorReason,je as getDimensionOutlineViewPermission$,B as hasDimensionOutlineViewPermission,ye as mergeRanges,j as transformOutlinesByDelete,A as transformOutlinesByInsert,M as transformOutlinesByMove};
1
+ const _0x12c15b=_0x4a22;(function(_0x537032,_0x2a0d08){const _0xe1dd30=_0x4a22,_0x32aa74=_0x537032();while(!![]){try{const _0x528218=-parseInt(_0xe1dd30(0xbf))/0x1+parseInt(_0xe1dd30(0x160))/0x2+-parseInt(_0xe1dd30(0x122))/0x3*(parseInt(_0xe1dd30(0x124))/0x4)+-parseInt(_0xe1dd30(0x167))/0x5+-parseInt(_0xe1dd30(0xcc))/0x6+-parseInt(_0xe1dd30(0x14a))/0x7*(-parseInt(_0xe1dd30(0x11f))/0x8)+-parseInt(_0xe1dd30(0x12e))/0x9*(-parseInt(_0xe1dd30(0x114))/0xa);if(_0x528218===_0x2a0d08)break;else _0x32aa74['push'](_0x32aa74['shift']());}catch(_0x402c68){_0x32aa74['push'](_0x32aa74['shift']());}}}(_0x36f9,0x77691));import{CommandType as _0x17a129,CustomCommandExecutionError as _0x2cf88e,DependentOn as _0x273fa0,Disposable as _0xf63b2f,ICommandService as _0xc79031,IConfigService as _0x306e00,IPermissionService as _0x40ce12,IResourceManagerService as _0x3e9218,IUndoRedoService as _0x33517b,IUniverInstanceService as _0x5a4105,Inject as _0x1650e6,Injector as _0xb0ffb3,Plugin as _0x4c3cec,UniverInstanceType as _0x3f1988,generateRandomId as _0x136f84,merge as _0x4a2971,sequenceExecute as _0x14996f}from'@univerjs/core';import{InsertColCommand as _0x64193c,InsertRowCommand as _0x484dae,MoveColsCommand as _0x69f01d,MoveRowsCommand as _0x12e969,RemoveColCommand as _0x116d08,RemoveRowCommand as _0xadfd65,SetColHiddenMutation as _0x1d80f1,SetColVisibleMutation as _0x3f38bc,SetRowHiddenMutation as _0x45b91e,SetRowVisibleMutation as _0x17e061,SheetInterceptorService as _0x158c55,SheetPermissionCheckController as _0x5181c4,WorkbookViewPermission as _0x19c1fc,WorksheetViewPermission as _0x18ea4c,getSheetCommandTarget as _0x167798}from'@univerjs/sheets';import{Subject as _0x4ed9b8,of as _0x5d0dc6}from'rxjs';import{debounceTime as _0x15eee1,map as _0x1aff52,startWith as _0xba2077}from'rxjs/operators';import{UniverLicensePlugin as _0x3eafe6}from'@univerjs-pro/license';let he=function(_0x47f8f1){const _0x45dc0d=_0x4a22;return _0x47f8f1['ROW']='row',_0x47f8f1['COLUMN']=_0x45dc0d(0xeb),_0x47f8f1;}({}),ge=function(_0x2c53e0){const _0x312e31=_0x4a22;return _0x2c53e0[_0x312e31(0xdf)]=_0x312e31(0xd0),_0x2c53e0[_0x312e31(0x115)]=_0x312e31(0x162),_0x2c53e0[_0x312e31(0x102)]=_0x312e31(0xe9),_0x2c53e0['MAX_DEPTH']=_0x312e31(0xe7),_0x2c53e0[_0x312e31(0x12b)]=_0x312e31(0x13d),_0x2c53e0[_0x312e31(0xc6)]='clear-range-not-contain-outline',_0x2c53e0[_0x312e31(0x116)]=_0x312e31(0xde),_0x2c53e0;}({});var C=class extends Error{constructor(_0x5b3636,_0x3f494d,_0x26ded6){const _0x18efba=_0x4a22;super(_0x3f494d),this[_0x18efba(0x105)]=_0x5b3636,this['outlineId']=_0x26ded6,this[_0x18efba(0x113)]=_0x18efba(0x136);}};function w(_0x2af4d3){const _0x3af743=_0x4a22;return _0x2af4d3 instanceof C?_0x2af4d3[_0x3af743(0x105)]:_0x2af4d3 instanceof Error?_0x2af4d3[_0x3af743(0xe5)]['includes'](_0x3af743(0xf5))?_0x3af743(0x13d):_0x2af4d3['message'][_0x3af743(0xf7)](_0x3af743(0xdb))?_0x3af743(0xe7):_0x2af4d3['message'][_0x3af743(0xf7)](_0x3af743(0xfb))?_0x3af743(0xe9):_0x2af4d3['message'][_0x3af743(0xf7)](_0x3af743(0x14e))?'invalid-range':'unknown':_0x3af743(0xde);}function _e(_0x555eb2){const _0x490bd8=_0x4a22;return _0x555eb2 instanceof C?_0x555eb2[_0x490bd8(0x128)]:void 0x0;}const T=0x2**0x35-0x1;function E(_0x4d6968,_0xc8201c){const _0x37743e=_0x4a22;return _0x4d6968[_0x37743e(0xf1)]===_0xc8201c[_0x37743e(0xf1)]&&_0x4d6968[_0x37743e(0x165)]===_0xc8201c[_0x37743e(0x165)]&&_0x4d6968['axis']===_0xc8201c[_0x37743e(0xc8)];}function D(_0x3392bb,_0x4f24b2={}){const _0x2515bb=_0x4a22;var _0x476e60;let _0x19a52c=(_0x476e60=_0x4f24b2[_0x2515bb(0x163)])==null?0x8:_0x476e60,_0x56ddb7=new Map();for(let _0x42723f of _0x3392bb){let _0x366709=_0x42723f[_0x2515bb(0xf1)]+':'+_0x42723f[_0x2515bb(0x165)]+':'+_0x42723f[_0x2515bb(0xc8)],_0x9b729c=_0x56ddb7['get'](_0x366709);_0x9b729c?_0x9b729c[_0x2515bb(0xd7)](_0x42723f):_0x56ddb7[_0x2515bb(0xfa)](_0x366709,[_0x42723f]);}let _0xdc98d1=[];for(let _0x42d9f5 of _0x56ddb7[_0x2515bb(0x166)]()){let _0x44bc36=[..._0x42d9f5][_0x2515bb(0xcb)](ke),_0x290be4=[];for(let _0x4e6088 of _0x44bc36){for(Ae(_0x4e6088);_0x290be4[_0x2515bb(0x106)]>0x0&&_0x4e6088[_0x2515bb(0xe4)]>_0x290be4[_0x290be4[_0x2515bb(0x106)]-0x1][_0x2515bb(0x131)];)_0x290be4[_0x2515bb(0x12a)]();let _0x22369c=_0x290be4[_0x290be4[_0x2515bb(0x106)]-0x1];if(_0x22369c&&_0x4e6088['end']>_0x22369c[_0x2515bb(0x131)])throw new C(_0x2515bb(0xe9),_0x2515bb(0xd2),_0x4e6088['id']);let _0x5cc57a=_0x22369c?_0x22369c[_0x2515bb(0xdb)]+0x1:0x1;if(_0x5cc57a>_0x19a52c)throw new C('max-depth',_0x2515bb(0x10c)+_0x19a52c,_0x4e6088['id']);let _0x5d9884={..._0x4e6088,'depth':_0x5cc57a,'parentId':_0x22369c==null?void 0x0:_0x22369c['id'],'anchor':_0x4e6088['end'],'children':[]};_0x22369c?_0x22369c[_0x2515bb(0xd5)][_0x2515bb(0xd7)](_0x5d9884):_0xdc98d1['push'](_0x5d9884),_0x290be4[_0x2515bb(0xd7)](_0x5d9884);}}return _0xdc98d1;}function O(_0x15e888,_0x4b733f,_0x5b45a7={}){const _0x34c8de=_0x4a22;if(_0x4b733f[_0x34c8de(0xe4)]<0x0||_0x4b733f[_0x34c8de(0xe4)]>_0x4b733f[_0x34c8de(0x131)])return{'valid':!0x1,'reason':_0x34c8de(0xd0)};if(_0x5b45a7[_0x34c8de(0x121)]!=null&&_0x4b733f['end']>=_0x5b45a7[_0x34c8de(0x121)])return{'valid':!0x1,'reason':_0x34c8de(0x162)};let _0x23d697=_0x15e888['filter'](_0x140626=>E(_0x140626,_0x4b733f));for(let _0x2b70bb of _0x23d697)if(je(_0x2b70bb,_0x4b733f))return{'valid':!0x1,'reason':_0x34c8de(0xe9)};try{D([..._0x15e888,_0x4b733f],_0x5b45a7);}catch(_0x1e788c){let _0x3950c6=w(_0x1e788c);return _0x3950c6===_0x34c8de(0xe7)?{'valid':!0x1,'reason':'max-depth'}:_0x3950c6===_0x34c8de(0xd0)?{'valid':!0x1,'reason':_0x34c8de(0xd0)}:{'valid':!0x1,'reason':_0x34c8de(0xe9)};}return{'valid':!0x0};}function ve(_0x5a695b,_0x2d8e37,_0x40c2b2={}){const _0xfd5b79=_0x4a22;let _0xcfdaa9=O(_0x5a695b,_0x2d8e37,_0x40c2b2);if(!_0xcfdaa9['valid']){var _0x35778c;throw Error((_0x35778c=_0xcfdaa9['reason'])==null?_0xfd5b79(0x139):_0x35778c);}return[..._0x5a695b,_0x2d8e37];}function ye(_0x8c0509,_0x138035){const _0x228271=_0x4a22;let _0xe461f0=_0x138035['start'],_0x4d2624=_0x138035[_0x228271(0x131)],_0x4d65e3=[],_0x5a471d=!0x0;for(;_0x5a471d;){_0x5a471d=!0x1;for(let _0x769bd5 of _0x8c0509)_0x4d65e3[_0x228271(0xf7)](_0x769bd5)||!E(_0x769bd5,_0x138035)||!De(_0x769bd5['start'],_0x769bd5[_0x228271(0x131)],_0xe461f0,_0x4d2624)||(_0x4d65e3[_0x228271(0xd7)](_0x769bd5),_0xe461f0=Math[_0x228271(0xca)](_0xe461f0,_0x769bd5[_0x228271(0xe4)]),_0x4d2624=Math[_0x228271(0xdd)](_0x4d2624,_0x769bd5[_0x228271(0x131)]),_0x5a471d=!0x0);}if(_0x4d65e3[_0x228271(0x106)]===0x0)return null;let [_0x5484a6]=[..._0x4d65e3]['sort'](ke);return{'mergedOutline':{..._0x5484a6,'start':_0xe461f0,'end':_0x4d2624},'mergedOutlines':_0x4d65e3};}function be(_0x1951b7,_0x48737e){const _0x1e5691=_0x4a22;return _0x1951b7[_0x1e5691(0x159)](_0x278db5=>E(_0x278db5,_0x48737e)?!(_0x278db5[_0x1e5691(0xe4)]>=_0x48737e[_0x1e5691(0xe4)]&&_0x278db5[_0x1e5691(0x131)]<=_0x48737e[_0x1e5691(0x131)]):!0x0);}function xe(_0x571c5b,_0x2f053c,_0x3082e4,_0x26ce97){const _0x4d420a=_0x4a22;return Se(_0x571c5b[_0x4d420a(0x159)](_0x3e57b3=>_0x3e57b3[_0x4d420a(0xf1)]===_0x2f053c&&_0x3e57b3[_0x4d420a(0x165)]===_0x3082e4&&_0x3e57b3[_0x4d420a(0xc8)]===_0x26ce97&&_0x3e57b3['collapsed'])[_0x4d420a(0x13c)](_0x3a20ab=>({'start':_0x3a20ab['start'],'end':_0x3a20ab[_0x4d420a(0x131)]})));}function Se(_0xdc956f){const _0x15d0b6=_0x4a22;if(_0xdc956f[_0x15d0b6(0x106)]===0x0)return[];let _0x4e1bd7=[..._0xdc956f]['sort']((_0x5183da,_0x346a27)=>_0x5183da[_0x15d0b6(0xe4)]-_0x346a27[_0x15d0b6(0xe4)]||_0x5183da[_0x15d0b6(0x131)]-_0x346a27[_0x15d0b6(0x131)]),_0x2d5d23=[];for(let _0x2efedb of _0x4e1bd7){let _0x31bc01=_0x2d5d23[_0x2d5d23[_0x15d0b6(0x106)]-0x1];!_0x31bc01||_0x2efedb[_0x15d0b6(0xe4)]>_0x31bc01[_0x15d0b6(0x131)]+0x1?_0x2d5d23[_0x15d0b6(0xd7)]({..._0x2efedb}):_0x31bc01[_0x15d0b6(0x131)]=Math[_0x15d0b6(0xdd)](_0x31bc01[_0x15d0b6(0x131)],_0x2efedb[_0x15d0b6(0x131)]);}return _0x2d5d23;}function k(_0x4eacc3,_0x54c601){const _0x553953=_0x4a22;return _0x54c601[_0x553953(0x15d)]<=0x0?_0x4eacc3:M(_0x4eacc3['map'](_0xb895e7=>E(_0xb895e7,_0x54c601)?_0x54c601['index']<=_0xb895e7['start']?{..._0xb895e7,'start':_0xb895e7['start']+_0x54c601[_0x553953(0x15d)],'end':_0xb895e7[_0x553953(0x131)]+_0x54c601[_0x553953(0x15d)]}:_0xb895e7[_0x553953(0xe4)]<_0x54c601['index']&&_0x54c601[_0x553953(0x15c)]<=_0xb895e7[_0x553953(0x131)]?{..._0xb895e7,'end':_0xb895e7['end']+_0x54c601['count']}:_0xb895e7:_0xb895e7));}function A(_0x18c205,_0x2f0f09){const _0x1a4b94=_0x4a22;if(_0x2f0f09[_0x1a4b94(0xe4)]>_0x2f0f09[_0x1a4b94(0x131)])return _0x18c205;let _0xb16945=_0x2f0f09[_0x1a4b94(0x131)]-_0x2f0f09[_0x1a4b94(0xe4)]+0x1,_0xd3125=[];for(let _0x38855a of _0x18c205){if(!E(_0x38855a,_0x2f0f09)){_0xd3125[_0x1a4b94(0xd7)](_0x38855a);continue;}if(_0x38855a['end']<_0x2f0f09['start']){_0xd3125['push'](_0x38855a);continue;}if(_0x38855a['start']>_0x2f0f09[_0x1a4b94(0x131)]){_0xd3125[_0x1a4b94(0xd7)]({..._0x38855a,'start':_0x38855a[_0x1a4b94(0xe4)]-_0xb16945,'end':_0x38855a[_0x1a4b94(0x131)]-_0xb16945});continue;}let _0x459a8=Math[_0x1a4b94(0xdd)](_0x38855a[_0x1a4b94(0xe4)],_0x2f0f09[_0x1a4b94(0xe4)]),_0x3770fa=Math[_0x1a4b94(0xca)](_0x38855a['end'],_0x2f0f09['end']),_0x1882bb=Math[_0x1a4b94(0xdd)](0x0,_0x3770fa-_0x459a8+0x1),_0x4f50fe=_0x38855a[_0x1a4b94(0x131)]-_0x38855a[_0x1a4b94(0xe4)]+0x1-_0x1882bb;if(_0x4f50fe<=0x0)continue;let _0x6adb57=_0x38855a[_0x1a4b94(0xe4)]<_0x2f0f09[_0x1a4b94(0xe4)]?_0x38855a['start']:_0x2f0f09[_0x1a4b94(0xe4)];_0xd3125[_0x1a4b94(0xd7)]({..._0x38855a,'start':_0x6adb57,'end':_0x6adb57+_0x4f50fe-0x1});}return M(_0xd3125);}function j(_0x1d590d,_0x315331){const _0x3ad419=_0x4a22;if(_0x315331[_0x3ad419(0x127)]>_0x315331[_0x3ad419(0x146)])return _0x1d590d;let _0x16a115=[];for(let _0x132d46 of _0x1d590d){if(!E(_0x132d46,_0x315331)){_0x16a115['push'](_0x132d46);continue;}let _0x32f30d=Ce(_0x132d46,_0x315331);if(_0x32f30d[_0x3ad419(0x134)]==='split')throw new C('move-splits-outline','Move\x20would\x20split\x20dimension\x20outline:\x20'+_0x132d46['id'],_0x132d46['id']);_0x16a115[_0x3ad419(0xd7)](_0x32f30d[_0x3ad419(0x107)]);}return M(_0x16a115);}function Ce(_0x2fa065,_0x2b439c){const _0x4cb63b=_0x4a22;let _0x3c42bd=we(_0x2b439c[_0x4cb63b(0x127)],_0x2b439c[_0x4cb63b(0x146)]+0x1,_0x2b439c[_0x4cb63b(0xe0)]),_0x33772c=[],_0x264134={'start':_0x2fa065[_0x4cb63b(0xe4)],'end':_0x2fa065[_0x4cb63b(0x131)]+0x1};for(let _0x509252 of _0x3c42bd){let _0x31c2e2=Te(_0x264134,_0x509252[_0x4cb63b(0x14e)]);_0x31c2e2&&_0x33772c[_0x4cb63b(0xd7)]({'start':_0x31c2e2[_0x4cb63b(0xe4)]+_0x509252[_0x4cb63b(0x111)],'end':_0x31c2e2['end']+_0x509252[_0x4cb63b(0x111)]});}let _0x2fe0d7=Ee(_0x33772c);return _0x2fe0d7['length']===0x1?{'type':'ok','outline':{..._0x2fa065,'start':_0x2fe0d7[0x0][_0x4cb63b(0xe4)],'end':_0x2fe0d7[0x0][_0x4cb63b(0x131)]-0x1}}:{'type':_0x4cb63b(0x109),'outline':_0x2fa065,'ranges':_0x2fe0d7};}function we(_0x4abd84,_0x3b6ea0,_0x478576){const _0x55c6b1=_0x4a22;let _0x3a1997=_0x3b6ea0-_0x4abd84;if(_0x3a1997<=0x0)throw Error(_0x55c6b1(0x15b));return _0x478576>=_0x4abd84&&_0x478576<=_0x3b6ea0?[{'range':{'start':0x0,'end':T},'offset':0x0}]:_0x478576<_0x4abd84?[{'range':{'start':0x0,'end':_0x478576},'offset':0x0},{'range':{'start':_0x478576,'end':_0x4abd84},'offset':_0x3a1997},{'range':{'start':_0x4abd84,'end':_0x3b6ea0},'offset':_0x478576-_0x4abd84},{'range':{'start':_0x3b6ea0,'end':T},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x4abd84},'offset':0x0},{'range':{'start':_0x4abd84,'end':_0x3b6ea0},'offset':_0x478576-_0x3b6ea0},{'range':{'start':_0x3b6ea0,'end':_0x478576},'offset':-_0x3a1997},{'range':{'start':_0x478576,'end':T},'offset':0x0}];}function Te(_0x5e4a22,_0x3b377a){const _0x5f06b7=_0x4a22;let _0x333946=Math[_0x5f06b7(0xdd)](_0x5e4a22[_0x5f06b7(0xe4)],_0x3b377a[_0x5f06b7(0xe4)]),_0x2bf75e=Math[_0x5f06b7(0xca)](_0x5e4a22['end'],_0x3b377a['end']);return _0x333946>=_0x2bf75e?null:{'start':_0x333946,'end':_0x2bf75e};}function Ee(_0xd1aa59){const _0x54ec32=_0x4a22;if(_0xd1aa59['length']===0x0)return[];let _0x161a1e=[..._0xd1aa59][_0x54ec32(0xcb)]((_0x483b9c,_0x3d70d6)=>_0x483b9c[_0x54ec32(0xe4)]-_0x3d70d6['start']||_0x483b9c[_0x54ec32(0x131)]-_0x3d70d6['end']),_0x2d6067=[];for(let _0x459cd6 of _0x161a1e){let _0x43512e=_0x2d6067[_0x2d6067[_0x54ec32(0x106)]-0x1];!_0x43512e||_0x459cd6[_0x54ec32(0xe4)]>_0x43512e[_0x54ec32(0x131)]?_0x2d6067['push']({..._0x459cd6}):_0x43512e[_0x54ec32(0x131)]=Math[_0x54ec32(0xdd)](_0x43512e[_0x54ec32(0x131)],_0x459cd6[_0x54ec32(0x131)]);}return _0x2d6067;}function De(_0x389e4d,_0x3f6f87,_0x5ed9f3,_0x360ca1){return _0x3f6f87+0x1===_0x5ed9f3||_0x360ca1+0x1===_0x389e4d;}function M(_0x1ad274){let _0x586c5a=Oe(_0x1ad274);return D(_0x586c5a),_0x586c5a;}function Oe(_0x126b5d){const _0x266c23=_0x4a22;let _0x23ca36=new Map();for(let _0x13ae61 of _0x126b5d){let _0x86086=[_0x13ae61['unitId'],_0x13ae61[_0x266c23(0x165)],_0x13ae61[_0x266c23(0xc8)],_0x13ae61['start'],_0x13ae61[_0x266c23(0x131)]][_0x266c23(0x135)](':'),_0x5dfa78=_0x23ca36['get'](_0x86086);if(!_0x5dfa78){_0x23ca36['set'](_0x86086,_0x13ae61);continue;}_0x23ca36[_0x266c23(0xfa)](_0x86086,{..._0x5dfa78,'collapsed':_0x5dfa78[_0x266c23(0xc0)]||_0x13ae61[_0x266c23(0xc0)]});}return Array[_0x266c23(0x10f)](_0x23ca36[_0x266c23(0x166)]());}function ke(_0x561ac1,_0x4b5767){const _0x54b968=_0x4a22;return _0x561ac1['unitId']===_0x4b5767[_0x54b968(0xf1)]?_0x561ac1[_0x54b968(0x165)]===_0x4b5767[_0x54b968(0x165)]?_0x561ac1[_0x54b968(0xc8)]===_0x4b5767['axis']?_0x561ac1[_0x54b968(0xe4)]===_0x4b5767['start']?_0x4b5767[_0x54b968(0x131)]-_0x561ac1[_0x54b968(0x131)]:_0x561ac1[_0x54b968(0xe4)]-_0x4b5767[_0x54b968(0xe4)]:_0x561ac1[_0x54b968(0xc8)][_0x54b968(0x11e)](_0x4b5767[_0x54b968(0xc8)]):_0x561ac1[_0x54b968(0x165)][_0x54b968(0x11e)](_0x4b5767[_0x54b968(0x165)]):_0x561ac1[_0x54b968(0xf1)][_0x54b968(0x11e)](_0x4b5767['unitId']);}function Ae(_0x5f18cc){const _0x5966a5=_0x4a22;if(_0x5f18cc[_0x5966a5(0xe4)]>_0x5f18cc[_0x5966a5(0x131)])throw new C(_0x5966a5(0xd0),_0x5966a5(0x12c),_0x5f18cc['id']);}function je(_0xc108a6,_0x2544b3){const _0x3b6f16=_0x4a22;let _0x1946d5=_0xc108a6[_0x3b6f16(0xe4)]<=_0x2544b3['end']&&_0x2544b3[_0x3b6f16(0xe4)]<=_0xc108a6[_0x3b6f16(0x131)],_0x10e4d9=_0xc108a6[_0x3b6f16(0xe4)]<=_0x2544b3[_0x3b6f16(0xe4)]&&_0x2544b3['end']<=_0xc108a6['end'],_0x2bb029=_0x2544b3['start']<=_0xc108a6[_0x3b6f16(0xe4)]&&_0xc108a6[_0x3b6f16(0x131)]<=_0x2544b3['end'];return _0x1946d5&&!_0x10e4d9&&!_0x2bb029;}function N(_0x23b5b7){'@babel/helpers - typeof';const _0x52b9b1=_0x4a22;return N=typeof Symbol=='function'&&typeof Symbol[_0x52b9b1(0x12d)]==_0x52b9b1(0xf0)?function(_0x1ecf70){return typeof _0x1ecf70;}:function(_0x2cce6a){const _0x35c9d5=_0x52b9b1;return _0x2cce6a&&typeof Symbol=='function'&&_0x2cce6a[_0x35c9d5(0xd1)]===Symbol&&_0x2cce6a!==Symbol[_0x35c9d5(0xe2)]?_0x35c9d5(0xf0):typeof _0x2cce6a;},N(_0x23b5b7);}function Me(_0x5763c2,_0x2f3397){const _0x54250c=_0x4a22;if(N(_0x5763c2)!=_0x54250c(0x15e)||!_0x5763c2)return _0x5763c2;var _0x333f41=_0x5763c2[Symbol['toPrimitive']];if(_0x333f41!==void 0x0){var _0x35cd25=_0x333f41[_0x54250c(0xe3)](_0x5763c2,_0x2f3397||_0x54250c(0xd8));if(N(_0x35cd25)!='object')return _0x35cd25;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2f3397==='string'?String:Number)(_0x5763c2);}function Ne(_0x4931f6){const _0x22ac7b=_0x4a22;var _0x373fe3=Me(_0x4931f6,_0x22ac7b(0xf3));return N(_0x373fe3)==_0x22ac7b(0xf0)?_0x373fe3:_0x373fe3+'';}function P(_0x588543,_0x50dad0,_0x478d19){const _0x505a8f=_0x4a22;return(_0x50dad0=Ne(_0x50dad0))in _0x588543?Object[_0x505a8f(0xc9)](_0x588543,_0x50dad0,{'value':_0x478d19,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x588543[_0x50dad0]=_0x478d19,_0x588543;}var F=class extends _0xf63b2f{constructor(..._0x13707a){const _0x277f40=_0x4a22;super(..._0x13707a),P(this,'_outlines',new Map()),P(this,_0x277f40(0x156),new _0x4ed9b8()),P(this,_0x277f40(0x11c),this[_0x277f40(0x156)][_0x277f40(0xef)]());}[_0x12c15b(0x152)](_0x2a8cfd,_0x366aa7){const _0x31c808=_0x12c15b;var _0x4b7c7b,_0x523b95;return[...(_0x4b7c7b=(_0x523b95=this[_0x31c808(0x145)][_0x31c808(0xcf)](_0x2a8cfd))==null?void 0x0:_0x523b95[_0x31c808(0xcf)](_0x366aa7))==null?[]:_0x4b7c7b];}['getUnitOutlines'](_0x9c9481){const _0x5ec13e=_0x12c15b;let _0x355cce=this[_0x5ec13e(0x145)][_0x5ec13e(0xcf)](_0x9c9481),_0x5bbd99=new Map();return _0x355cce==null||_0x355cce[_0x5ec13e(0xd3)]((_0x1274e1,_0x394f7a)=>{const _0x1d1531=_0x5ec13e;_0x5bbd99[_0x1d1531(0xfa)](_0x394f7a,[..._0x1274e1]);}),_0x5bbd99;}[_0x12c15b(0x103)](_0x42507e,_0x24e734,_0x4af012){const _0xb4bec7=_0x12c15b;this[_0xb4bec7(0x100)](_0x42507e)[_0xb4bec7(0xfa)](_0x24e734,[..._0x4af012]),this[_0xb4bec7(0x156)]['next']({'unitId':_0x42507e,'subUnitId':_0x24e734});}[_0x12c15b(0x14f)](_0x36b689){const _0x3c0c9b=_0x12c15b;this[_0x3c0c9b(0x145)][_0x3c0c9b(0x14c)](_0x36b689),this['_change$'][_0x3c0c9b(0xe8)]({'unitId':_0x36b689});}[_0x12c15b(0xdc)](_0x1b1e47){const _0x36ef21=_0x12c15b;let _0x46995e=this[_0x36ef21(0x145)][_0x36ef21(0xcf)](_0x1b1e47),_0x434f97={};return _0x46995e==null||_0x46995e['forEach']((_0x56fad4,_0x1a596d)=>{_0x434f97[_0x1a596d]={'outlineList':[..._0x56fad4]};}),_0x434f97;}[_0x12c15b(0xf6)](_0x2c1453,_0x59d57c){const _0x2f1c4b=_0x12c15b;let _0x59eb29=new Map();Object[_0x2f1c4b(0x11b)](_0x59d57c)['forEach'](([_0x506a7b,_0x49b934])=>{const _0x2a64f0=_0x2f1c4b;var _0x347f28;_0x59eb29[_0x2a64f0(0xfa)](_0x506a7b,[...(_0x347f28=_0x49b934['outlineList'])==null?[]:_0x347f28]);}),this[_0x2f1c4b(0x145)][_0x2f1c4b(0xfa)](_0x2c1453,_0x59eb29),this[_0x2f1c4b(0x156)][_0x2f1c4b(0xe8)]({'unitId':_0x2c1453});}[_0x12c15b(0x123)](){const _0x4043e0=_0x12c15b;super[_0x4043e0(0x123)](),this[_0x4043e0(0x145)][_0x4043e0(0x140)](),this[_0x4043e0(0x156)][_0x4043e0(0x110)]();}[_0x12c15b(0x100)](_0x355c9a){const _0x45e4a9=_0x12c15b;let _0x3e1521=this['_outlines'][_0x45e4a9(0xcf)](_0x355c9a);return _0x3e1521||(_0x3e1521=new Map(),this['_outlines'][_0x45e4a9(0xfa)](_0x355c9a,_0x3e1521)),_0x3e1521;}},I=class extends _0xf63b2f{constructor(..._0x32716a){const _0x215089=_0x12c15b;super(..._0x32716a),P(this,_0x215089(0xc2),new _0x4ed9b8()),P(this,'error$',this[_0x215089(0xc2)][_0x215089(0xef)]());}[_0x12c15b(0x10a)](_0x1699fc){const _0x4b0f7a=_0x12c15b;this[_0x4b0f7a(0xc2)]['next'](_0x1699fc);}[_0x12c15b(0x123)](){const _0x3a68fc=_0x12c15b;super[_0x3a68fc(0x123)](),this['_error$'][_0x3a68fc(0x110)]();}};const L={'id':'sheet.mutation.add-dimension-outline','type':_0x17a129[_0x12c15b(0x104)],'handler':(_0x2c7365,_0x2272d6)=>{const _0x1ea87e=_0x12c15b;let _0x35fd9e=_0x2c7365['get'](F),_0x3eef4b=_0x35fd9e['getOutlines'](_0x2272d6['unitId'],_0x2272d6[_0x1ea87e(0x165)]);return _0x35fd9e[_0x1ea87e(0x103)](_0x2272d6[_0x1ea87e(0xf1)],_0x2272d6['subUnitId'],ve(_0x3eef4b,_0x2272d6[_0x1ea87e(0x107)])),!0x0;}},R={'id':'sheet.mutation.remove-dimension-outline','type':_0x17a129[_0x12c15b(0x104)],'handler':(_0x324d41,_0x5bfecf)=>{const _0x2f77bb=_0x12c15b;let _0x9a009e=_0x324d41[_0x2f77bb(0xcf)](F),_0x1707ee=_0x9a009e[_0x2f77bb(0x152)](_0x5bfecf[_0x2f77bb(0xf1)],_0x5bfecf[_0x2f77bb(0x165)]);return _0x9a009e['setOutlines'](_0x5bfecf['unitId'],_0x5bfecf[_0x2f77bb(0x165)],_0x1707ee[_0x2f77bb(0x159)](_0x23e4c6=>_0x23e4c6['id']!==_0x5bfecf[_0x2f77bb(0x128)])),!0x0;}};function z(_0x1deb9c,_0x15406f,_0x2ab92a){const _0x174854=_0x12c15b;let _0x1a79bf=Fe(_0x1deb9c);return _0x1a79bf?_0x1a79bf[_0x174854(0x149)]({'workbookTypes':[_0x19c1fc],'worksheetTypes':[_0x18ea4c]},_0x15406f,_0x2ab92a):!0x0;}function Pe(_0x322d64,_0x2d7e23,_0x3a95bc){const _0x3a006d=_0x12c15b;var _0x417234;let _0x550f4b=Ie(_0x322d64);return((_0x417234=_0x550f4b==null?void 0x0:_0x550f4b[_0x3a006d(0x117)])==null?_0x5d0dc6(null):_0x417234)[_0x3a006d(0x141)](_0x15eee1(0x64),_0xba2077(null),_0x1aff52(()=>z(_0x322d64,_0x2d7e23,_0x3a95bc)));}function Fe(_0x5a42ce){const _0x50e426=_0x12c15b;if(typeof _0x5a42ce['has']=='function'&&!_0x5a42ce[_0x50e426(0x143)](_0x5181c4))return null;try{return _0x5a42ce['get'](_0x5181c4);}catch{return null;}}function Ie(_0xf45e45){const _0x6b617b=_0x12c15b;if(typeof _0xf45e45[_0x6b617b(0x143)]==_0x6b617b(0x118)&&!_0xf45e45[_0x6b617b(0x143)](_0x40ce12))return null;try{return _0xf45e45[_0x6b617b(0xcf)](_0x40ce12);}catch{return null;}}const B={'id':'sheet.command.add-dimension-outline','type':_0x17a129[_0x12c15b(0x138)],'handler':(_0x4f4241,_0x32975f)=>{const _0x1894ab=_0x12c15b;var _0x538264,_0x40bd31;if(!_0x32975f)return!0x1;let _0x3ee30c=_0x167798(_0x4f4241[_0x1894ab(0xcf)](_0x5a4105),_0x32975f);if(!_0x3ee30c)return!0x1;let {unitId:_0x43f035,subUnitId:_0x2c7dbf,worksheet:_0x2f8da5}=_0x3ee30c;if(!z(_0x4f4241,_0x43f035,_0x2c7dbf))return!0x1;let _0x5e71db=_0x4f4241[_0x1894ab(0xcf)](F),_0x9b62cb={'id':'dimension-outline-'+_0x136f84(0x6),'unitId':_0x43f035,'subUnitId':_0x2c7dbf,'axis':_0x32975f[_0x1894ab(0xc8)],'start':_0x32975f[_0x1894ab(0xe4)],'end':_0x32975f[_0x1894ab(0x131)],'collapsed':!0x1},_0x37c439=_0x32975f['axis']===_0x1894ab(0x150)?_0x2f8da5[_0x1894ab(0x132)]():_0x2f8da5['getColumnCount'](),_0x5b9232=_0x5e71db[_0x1894ab(0x152)](_0x43f035,_0x2c7dbf),_0x1f0331=ye(_0x5b9232,_0x9b62cb),_0x294d51=(_0x538264=_0x1f0331==null?void 0x0:_0x1f0331[_0x1894ab(0x108)])==null?[]:_0x538264,_0xf0cca6=(_0x40bd31=_0x1f0331==null?void 0x0:_0x1f0331[_0x1894ab(0x120)])==null?_0x9b62cb:_0x40bd31,_0x5a1c47=O(_0x1f0331?_0x5b9232[_0x1894ab(0x159)](_0x1a29aa=>!_0x294d51[_0x1894ab(0x161)](_0x2eed20=>_0x2eed20['id']===_0x1a29aa['id'])):_0x5b9232,_0xf0cca6,{'maxIndex':_0x37c439});if(!_0x5a1c47[_0x1894ab(0x15f)]){var _0x8ffb60;return _0x4f4241[_0x1894ab(0xcf)](I)['emit']({'reason':(_0x8ffb60=_0x5a1c47[_0x1894ab(0x105)])==null?_0x1894ab(0xde):_0x8ffb60,'commandId':B['id'],'unitId':_0x43f035,'subUnitId':_0x2c7dbf,'axis':_0x32975f['axis'],'outlineId':_0xf0cca6['id']}),!0x1;}let _0x45ea8d=[..._0x294d51['map'](_0x20ada2=>({'id':R['id'],'params':{'unitId':_0x43f035,'subUnitId':_0x2c7dbf,'outlineId':_0x20ada2['id']}})),{'id':L['id'],'params':{'unitId':_0x43f035,'subUnitId':_0x2c7dbf,'outline':_0xf0cca6}}],_0x328284=[{'id':R['id'],'params':{'unitId':_0x43f035,'subUnitId':_0x2c7dbf,'outlineId':_0xf0cca6['id']}},..._0x294d51[_0x1894ab(0x13c)](_0x224291=>({'id':L['id'],'params':{'unitId':_0x43f035,'subUnitId':_0x2c7dbf,'outline':_0x224291}}))];return _0x14996f(_0x45ea8d,_0x4f4241['get'](_0xc79031))[_0x1894ab(0xce)]?(_0x4f4241[_0x1894ab(0xcf)](_0x33517b)[_0x1894ab(0x144)]({'unitID':_0x43f035,'undoMutations':_0x328284,'redoMutations':_0x45ea8d}),!0x0):!0x1;}},V={'id':_0x12c15b(0x164),'type':_0x17a129[_0x12c15b(0x104)],'handler':(_0x29ecf9,_0x45e52f)=>{const _0x213876=_0x12c15b;let _0x218c66=_0x29ecf9[_0x213876(0xcf)](F),_0x23ed08=_0x218c66['getOutlines'](_0x45e52f[_0x213876(0xf1)],_0x45e52f[_0x213876(0x165)]);return _0x218c66[_0x213876(0x103)](_0x45e52f[_0x213876(0xf1)],_0x45e52f[_0x213876(0x165)],be(_0x23ed08,_0x45e52f)),!0x0;}},H={'id':_0x12c15b(0x147),'type':_0x17a129[_0x12c15b(0x138)],'handler':(_0x4feb42,_0xaa6b72)=>{const _0x4045a8=_0x12c15b;if(!_0xaa6b72)return!0x1;let _0x51010f=_0x167798(_0x4feb42[_0x4045a8(0xcf)](_0x5a4105),_0xaa6b72);if(!_0x51010f)return!0x1;let {unitId:_0x4972d6,subUnitId:_0xa0bdc9}=_0x51010f;if(!z(_0x4feb42,_0x4972d6,_0xa0bdc9))return!0x1;let _0x4dbe23={'unitId':_0x4972d6,'subUnitId':_0xa0bdc9,'axis':_0xaa6b72['axis'],'start':_0xaa6b72[_0x4045a8(0xe4)],'end':_0xaa6b72[_0x4045a8(0x131)]},_0x4ccf0a=_0x4feb42[_0x4045a8(0xcf)](F)['getOutlines'](_0x4972d6,_0xa0bdc9)[_0x4045a8(0x159)](_0xf668a4=>E(_0xf668a4,_0x4dbe23)&&_0xf668a4[_0x4045a8(0xe4)]>=_0xaa6b72['start']&&_0xf668a4[_0x4045a8(0x131)]<=_0xaa6b72[_0x4045a8(0x131)]);if(_0x4ccf0a['length']===0x0)return _0x4feb42[_0x4045a8(0xcf)](I)['emit']({'reason':'clear-range-not-contain-outline','commandId':H['id'],'unitId':_0x4972d6,'subUnitId':_0xa0bdc9,'axis':_0xaa6b72[_0x4045a8(0xc8)]}),!0x1;let _0x4c2997=[{'id':V['id'],'params':{..._0x4dbe23,'removedOutlineIds':_0x4ccf0a[_0x4045a8(0x13c)](_0x43ec43=>_0x43ec43['id'])}}],_0x50a441=_0x4ccf0a['map'](_0x1626d7=>({'id':L['id'],'params':{'unitId':_0x4972d6,'subUnitId':_0xa0bdc9,'outline':_0x1626d7}}));return _0x14996f(_0x4c2997,_0x4feb42['get'](_0xc79031))[_0x4045a8(0xce)]?(_0x4feb42['get'](_0x33517b)[_0x4045a8(0x144)]({'unitID':_0x4972d6,'undoMutations':_0x50a441,'redoMutations':_0x4c2997}),!0x0):!0x1;}},Le={'id':_0x12c15b(0x155),'type':_0x17a129[_0x12c15b(0x138)],'handler':(_0x1c9e0b,_0x2217b8)=>{const _0x5c5f85=_0x12c15b;if(!_0x2217b8)return!0x1;let _0x1c02c2=_0x167798(_0x1c9e0b['get'](_0x5a4105),_0x2217b8);if(!_0x1c02c2)return!0x1;let {unitId:_0x2611cb,subUnitId:_0x2a85b6}=_0x1c02c2;if(!z(_0x1c9e0b,_0x2611cb,_0x2a85b6))return!0x1;let _0x59fc6e=_0x1c9e0b[_0x5c5f85(0xcf)](F)[_0x5c5f85(0x152)](_0x2611cb,_0x2a85b6)[_0x5c5f85(0x142)](_0x2c3c7d=>_0x2c3c7d['id']===_0x2217b8[_0x5c5f85(0x128)]);if(!_0x59fc6e)return!0x1;let _0x4608d1=[{'id':R['id'],'params':{'unitId':_0x2611cb,'subUnitId':_0x2a85b6,'outlineId':_0x59fc6e['id'],'outline':_0x59fc6e}}],_0x29d351=[{'id':L['id'],'params':{'unitId':_0x2611cb,'subUnitId':_0x2a85b6,'outline':_0x59fc6e}}];return _0x14996f(_0x4608d1,_0x1c9e0b['get'](_0xc79031))[_0x5c5f85(0xce)]?(_0x1c9e0b[_0x5c5f85(0xcf)](_0x33517b)['pushUndoRedo']({'unitID':_0x2611cb,'undoMutations':_0x29d351,'redoMutations':_0x4608d1}),!0x0):!0x1;}},U={'id':_0x12c15b(0xec),'type':_0x17a129[_0x12c15b(0x104)],'handler':(_0x161f63,_0x1565e3)=>{const _0x56849e=_0x12c15b;let _0x32725a=_0x161f63[_0x56849e(0xcf)](F),_0x434724=_0x32725a[_0x56849e(0x152)](_0x1565e3[_0x56849e(0xf1)],_0x1565e3[_0x56849e(0x165)]),_0x5a1f3a=_0x434724[_0x56849e(0x142)](_0x296fbc=>_0x296fbc['id']===_0x1565e3[_0x56849e(0x128)]);return _0x5a1f3a&&_0x32725a['setOutlines'](_0x1565e3[_0x56849e(0xf1)],_0x1565e3[_0x56849e(0x165)],_0x434724['map'](_0x596984=>_0x596984['unitId']!==_0x5a1f3a['unitId']||_0x596984[_0x56849e(0x165)]!==_0x5a1f3a['subUnitId']||_0x596984['axis']!==_0x5a1f3a[_0x56849e(0xc8)]||_0x596984['start']!==_0x5a1f3a[_0x56849e(0xe4)]||_0x596984[_0x56849e(0x131)]!==_0x5a1f3a[_0x56849e(0x131)]?_0x596984:{..._0x596984,'collapsed':_0x1565e3[_0x56849e(0xc0)]})),!0x0;}};function Re(_0x403efd,_0x210445,_0x263418,_0x27c7d3){const _0x225b3f=_0x12c15b;return _0x403efd===_0x225b3f(0x150)?{'startRow':_0x210445,'endRow':_0x263418,'startColumn':0x0,'endColumn':_0x27c7d3[_0x225b3f(0xc7)]()-0x1}:{'startRow':0x0,'endRow':_0x27c7d3[_0x225b3f(0x132)]()-0x1,'startColumn':_0x210445,'endColumn':_0x263418};}function ze(_0x2a66b8){return _0x2a66b8==='row'?_0x45b91e['id']:_0x1d80f1['id'];}function Be(_0xa302f5){return _0xa302f5==='row'?_0x17e061['id']:_0x3f38bc['id'];}function Ve(_0x1bac52,_0x265a98,_0x44f798,_0x5cbcaf){const _0x502136=_0x12c15b;let _0x84fd36=_0x265a98?[Re(_0x1bac52[_0x502136(0xc8)],_0x1bac52[_0x502136(0xe4)],_0x1bac52['end'],_0x44f798)]:He(_0x1bac52,_0x5cbcaf,_0x44f798),_0x2c5c90=_0x265a98?ze(_0x1bac52[_0x502136(0xc8)]):Be(_0x1bac52[_0x502136(0xc8)]);return[{'id':U['id'],'params':{'unitId':_0x1bac52[_0x502136(0xf1)],'subUnitId':_0x1bac52[_0x502136(0x165)],'outlineId':_0x1bac52['id'],'outline':_0x1bac52,'collapsed':_0x265a98}},..._0x84fd36[_0x502136(0x13c)](_0x283cad=>({'id':_0x2c5c90,'params':{'unitId':_0x1bac52[_0x502136(0xf1)],'subUnitId':_0x1bac52[_0x502136(0x165)],'ranges':[_0x283cad],'dimensionOutlineId':_0x1bac52['id']}}))];}function He(_0x4ffb60,_0xfdf19c,_0x1f5d6a){const _0x49cdc1=_0x12c15b;let _0x26ef78=xe(_0xfdf19c[_0x49cdc1(0x13c)](_0x4d2d90=>Ue(_0x4d2d90,_0x4ffb60)?{..._0x4d2d90,'collapsed':!0x1}:_0x4d2d90),_0x4ffb60[_0x49cdc1(0xf1)],_0x4ffb60[_0x49cdc1(0x165)],_0x4ffb60[_0x49cdc1(0xc8)]);return We({'start':_0x4ffb60[_0x49cdc1(0xe4)],'end':_0x4ffb60[_0x49cdc1(0x131)]},_0x26ef78)['map'](_0xfb5eed=>Re(_0x4ffb60[_0x49cdc1(0xc8)],_0xfb5eed[_0x49cdc1(0xe4)],_0xfb5eed[_0x49cdc1(0x131)],_0x1f5d6a));}function Ue(_0x2b428c,_0x3a5d7a){const _0x51d35d=_0x12c15b;return _0x2b428c[_0x51d35d(0xf1)]===_0x3a5d7a[_0x51d35d(0xf1)]&&_0x2b428c[_0x51d35d(0x165)]===_0x3a5d7a['subUnitId']&&_0x2b428c[_0x51d35d(0xc8)]===_0x3a5d7a[_0x51d35d(0xc8)]&&_0x2b428c[_0x51d35d(0xe4)]===_0x3a5d7a['start']&&_0x2b428c[_0x51d35d(0x131)]===_0x3a5d7a[_0x51d35d(0x131)];}function We(_0x317dcf,_0x472c23){const _0x7d48ed=_0x12c15b;let _0x255c75=_0x317dcf[_0x7d48ed(0xe4)],_0x12122c=[];for(let _0x44ca4c of _0x472c23)if(!(_0x44ca4c[_0x7d48ed(0x131)]<_0x255c75||_0x44ca4c[_0x7d48ed(0xe4)]>_0x317dcf[_0x7d48ed(0x131)])&&(_0x44ca4c[_0x7d48ed(0xe4)]>_0x255c75&&_0x12122c[_0x7d48ed(0xd7)]({'start':_0x255c75,'end':Math['min'](_0x44ca4c[_0x7d48ed(0xe4)]-0x1,_0x317dcf[_0x7d48ed(0x131)])}),_0x255c75=Math[_0x7d48ed(0xdd)](_0x255c75,_0x44ca4c[_0x7d48ed(0x131)]+0x1),_0x255c75>_0x317dcf[_0x7d48ed(0x131)]))break;return _0x255c75<=_0x317dcf['end']&&_0x12122c[_0x7d48ed(0xd7)]({'start':_0x255c75,'end':_0x317dcf[_0x7d48ed(0x131)]}),_0x12122c;}const Ge={'id':'sheet.command.set-dimension-outline-collapsed','type':_0x17a129[_0x12c15b(0x138)],'handler':(_0x52365f,_0x58531d)=>{const _0x92ba88=_0x12c15b;if(!_0x58531d)return!0x1;let _0x3a6b89=_0x167798(_0x52365f[_0x92ba88(0xcf)](_0x5a4105),_0x58531d);if(!_0x3a6b89)return!0x1;let {unitId:_0x25834d,subUnitId:_0x10bb74,worksheet:_0x362ce4}=_0x3a6b89;if(!z(_0x52365f,_0x25834d,_0x10bb74))return!0x1;let _0x29355f=_0x52365f[_0x92ba88(0xcf)](F)[_0x92ba88(0x152)](_0x25834d,_0x10bb74),_0x3bcebd=_0x29355f['find'](_0x470496=>_0x470496['id']===_0x58531d[_0x92ba88(0x128)]);if(!_0x3bcebd||_0x3bcebd[_0x92ba88(0xc0)]===_0x58531d['collapsed'])return!0x1;let _0x556982=Ve(_0x3bcebd,_0x58531d[_0x92ba88(0xc0)],_0x362ce4,_0x29355f),_0x11fdaa=Ve(_0x3bcebd,!_0x58531d[_0x92ba88(0xc0)],_0x362ce4,_0x29355f);return _0x14996f(_0x556982,_0x52365f[_0x92ba88(0xcf)](_0xc79031))[_0x92ba88(0xce)]?(_0x52365f[_0x92ba88(0xcf)](_0x33517b)[_0x92ba88(0x144)]({'unitID':_0x25834d,'undoMutations':_0x11fdaa,'redoMutations':_0x556982}),!0x0):!0x1;}},W={'id':_0x12c15b(0xea),'type':_0x17a129[_0x12c15b(0x104)],'handler':(_0x25f354,_0x18576a)=>{const _0xe0f94c=_0x12c15b;let _0xa7d67a=_0x25f354['get'](F),_0x2c2817=Ke(_0xa7d67a[_0xe0f94c(0x152)](_0x18576a[_0xe0f94c(0xf1)],_0x18576a['subUnitId']),_0x18576a);return _0xa7d67a[_0xe0f94c(0x103)](_0x18576a[_0xe0f94c(0xf1)],_0x18576a[_0xe0f94c(0x165)],_0x2c2817),!0x0;}};function Ke(_0x589ce0,_0x27d340){const _0x487c48=_0x12c15b;switch(_0x27d340[_0x487c48(0x134)]){case _0x487c48(0x12f):return _0x27d340['restoreOutlines']?qe(_0x589ce0,_0x27d340):k(_0x589ce0,_0x27d340);case _0x487c48(0x14c):return A(_0x589ce0,_0x27d340);case _0x487c48(0xed):return j(_0x589ce0,_0x27d340);}}function qe(_0x798ca0,_0x902df8){const _0x46d23b=_0x12c15b;return[..._0x798ca0[_0x46d23b(0x159)](_0x4443f4=>_0x4443f4[_0x46d23b(0xf1)]!==_0x902df8['unitId']||_0x4443f4[_0x46d23b(0x165)]!==_0x902df8[_0x46d23b(0x165)]||_0x4443f4[_0x46d23b(0xc8)]!==_0x902df8['axis']),..._0x902df8[_0x46d23b(0x13a)]];}const G=_0x12c15b(0x130),Je=_0x12c15b(0xf9),Ye={};var Xe=_0x12c15b(0xd9),Ze=_0x12c15b(0x15a);function _0x36f9(){const _0x203870=['filter','1.0.0-alpha.2','Invalid\x20dimension\x20outline\x20move\x20source\x20range','index','count','object','valid','1708512InSqWJ','some','out-of-bounds','maxDepth','sheet.mutation.clear-dimension-outlines','subUnitId','values','4709170frJiFi','349389qXxfZW','collapsed','getActiveSheet','_error$','_sheetsOutlineModel','toRange','endColumn','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','getMaxColumns','axis','defineProperty','min','sort','2690514xjCpXs','undos','result','get','invalid-range','constructor','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','forEach','_initRegisterCommand','children','_commandService','push','default','@univerjs-pro/sheets-outline','_resourceManagerService','depth','serialize','max','unknown','INVALID_RANGE','destinationIndex','getUnitId','prototype','call','start','message','registerPluginResource','max-depth','next','crossing','sheet.mutation.transform-dimension-outlines','column','sheet.mutation.set-dimension-outline-collapsed','move','getOwnPropertyDescriptor','asObservable','symbol','unitId','getUniverSheetInstance','string','_sheetInterceptorService','split\x20dimension\x20outline','deserialize','includes','disposeWithMe','sheets-outline.config','set','Crossing','pluginName','packageName','_injector','Invalid\x20dimension\x20outline\x20mutation','_ensureUnitOutlines','decorate','CROSSING','setOutlines','MUTATION','reason','length','outline','mergedOutlines','split','emit','parse','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','getCurrentUnitOfType','params','from','complete','offset','_getCommandScope','name','163570XfSmDs','OUT_OF_BOUNDS','UNKNOWN','permissionPointUpdate$','function','onStarting','version','entries','change$','endRow','localeCompare','7797432hisBGO','mergedOutline','maxIndex','12723YtaQre','dispose','348govgdE','_config','getSheetId','sourceStart','outlineId','startRow','pop','MOVE_SPLITS_OUTLINE','Invalid\x20outline\x20range','iterator','423TiiuKi','insert','SHEET_OUTLINE_PLUGIN','end','getRowCount','startColumn','type','join','DimensionOutlineError','_univerInstanceService','COMMAND','invalid-dimension-outline','restoreOutlines','UNIVER_SHEET','map','move-splits-outline','add','fromRange','clear','pipe','find','has','pushUndoRedo','_outlines','sourceEnd','sheet.command.clear-dimension-outlines','redos','permissionCheckWithoutRange','7xYPJha','_sheetsOutlineErrorService','delete','stringify','range','removeUnit','row','_initResource','getOutlines','registerCommand','_configService','sheet.command.remove-dimension-outline','_change$','_initCommandInterceptor','getSheetBySheetId'];_0x36f9=function(){return _0x203870;};return _0x36f9();}function K(_0x1464f5,_0x1b3e22){return function(_0x56b769,_0x2bb24e){_0x1b3e22(_0x56b769,_0x2bb24e,_0x1464f5);};}function q(_0x980523,_0x540784,_0x248ad5,_0x3dc327){const _0xbaa8b7=_0x12c15b;var _0x307efd=arguments[_0xbaa8b7(0x106)],_0x2285ca=_0x307efd<0x3?_0x540784:_0x3dc327===null?_0x3dc327=Object[_0xbaa8b7(0xee)](_0x540784,_0x248ad5):_0x3dc327,_0x1464ba;if(typeof Reflect==_0xbaa8b7(0x15e)&&typeof Reflect[_0xbaa8b7(0x101)]==_0xbaa8b7(0x118))_0x2285ca=Reflect[_0xbaa8b7(0x101)](_0x980523,_0x540784,_0x248ad5,_0x3dc327);else{for(var _0x6d5772=_0x980523[_0xbaa8b7(0x106)]-0x1;_0x6d5772>=0x0;_0x6d5772--)(_0x1464ba=_0x980523[_0x6d5772])&&(_0x2285ca=(_0x307efd<0x3?_0x1464ba(_0x2285ca):_0x307efd>0x3?_0x1464ba(_0x540784,_0x248ad5,_0x2285ca):_0x1464ba(_0x540784,_0x248ad5))||_0x2285ca);}return _0x307efd>0x3&&_0x2285ca&&Object[_0xbaa8b7(0xc9)](_0x540784,_0x248ad5,_0x2285ca),_0x2285ca;}const J={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};function _0x4a22(_0x57f6da,_0x302b4e){_0x57f6da=_0x57f6da-0xbf;const _0x36f9c8=_0x36f9();let _0x4a2276=_0x36f9c8[_0x57f6da];return _0x4a2276;}let Y=class extends _0xf63b2f{constructor(_0x276b04,_0x47b9fa,_0x37cc91,_0x286fa1){const _0x17757c=_0x12c15b;super(),this[_0x17757c(0x137)]=_0x276b04,this[_0x17757c(0xf4)]=_0x47b9fa,this['_sheetsOutlineModel']=_0x37cc91,this['_sheetsOutlineErrorService']=_0x286fa1,this[_0x17757c(0x157)]();}[_0x12c15b(0x157)](){const _0xb7b5eb=_0x12c15b;this[_0xb7b5eb(0xf8)](this[_0xb7b5eb(0xf4)]['interceptCommand']({'getMutations':_0x44d657=>Qe(_0x44d657,(_0x5d4a1e,_0x43f073)=>this[_0xb7b5eb(0xc3)][_0xb7b5eb(0x152)](_0x5d4a1e,_0x43f073),this[_0xb7b5eb(0x112)](_0x44d657['params']),_0x19e404=>this[_0xb7b5eb(0x14b)][_0xb7b5eb(0x10a)](_0x19e404))}));}[_0x12c15b(0x112)](_0x1f6312){const _0x501b1e=_0x12c15b;let _0x2accc5=_0x1f6312,_0x2edbfe=_0x2accc5!=null&&_0x2accc5[_0x501b1e(0xf1)]?this[_0x501b1e(0x137)][_0x501b1e(0xf2)](_0x2accc5[_0x501b1e(0xf1)]):this[_0x501b1e(0x137)][_0x501b1e(0x10d)](_0x3f1988[_0x501b1e(0x13b)]);if(!_0x2edbfe)return;let _0x518feb=_0x2accc5!=null&&_0x2accc5[_0x501b1e(0x165)]?_0x2edbfe[_0x501b1e(0x158)](_0x2accc5[_0x501b1e(0x165)]):_0x2edbfe[_0x501b1e(0xc1)]();if(_0x518feb)return{'unitId':_0x2edbfe[_0x501b1e(0xe1)](),'subUnitId':_0x518feb[_0x501b1e(0x126)]()};}};Y=q([K(0x0,_0x5a4105),K(0x1,_0x1650e6(_0x158c55)),K(0x2,_0x1650e6(F)),K(0x3,_0x1650e6(I))],Y);function Qe(_0x5cf0b0,_0x347e11,_0x280874,_0x1d162b){const _0x382de4=_0x12c15b;let _0x210d4f=et(_0x5cf0b0,_0x280874);if(!_0x210d4f)return at();let _0x3b87e2=_0x347e11(_0x210d4f['unitId'],_0x210d4f[_0x382de4(0x165)]);if(!_0x3b87e2[_0x382de4(0x161)](_0x5c3875=>_0x5c3875[_0x382de4(0xc8)]===_0x210d4f[_0x382de4(0xc8)]))return at();$e(_0x3b87e2,_0x210d4f,_0x5cf0b0['id'],_0x1d162b);let _0x3b2909=rt(_0x210d4f,_0x3b87e2);return{'redos':[{'id':W['id'],'params':_0x210d4f}],'undos':[{'id':W['id'],'params':_0x3b2909}],'preRedos':[],'preUndos':[]};}function $e(_0x44e356,_0x2bdac1,_0x3230e7,_0x21038a){const _0x140a2d=_0x12c15b;try{switch(_0x2bdac1[_0x140a2d(0x134)]){case _0x140a2d(0x12f):k(_0x44e356,_0x2bdac1);break;case _0x140a2d(0x14c):A(_0x44e356,_0x2bdac1);break;case _0x140a2d(0xed):j(_0x44e356,_0x2bdac1);break;}}catch(_0x441ba0){throw _0x21038a==null||_0x21038a({'reason':w(_0x441ba0),'commandId':_0x3230e7,'unitId':_0x2bdac1[_0x140a2d(0xf1)],'subUnitId':_0x2bdac1[_0x140a2d(0x165)],'axis':_0x2bdac1[_0x140a2d(0xc8)],'outlineId':_e(_0x441ba0)}),new _0x2cf88e(_0x441ba0 instanceof Error?_0x441ba0[_0x140a2d(0xe5)]:_0x140a2d(0xff));}}function et(_0x2c7a4c,_0x36260b){const _0x397e6e=_0x12c15b;switch(_0x2c7a4c['id']){case _0x484dae['id']:return X(_0x2c7a4c[_0x397e6e(0x10e)],_0x397e6e(0x150),_0x36260b);case _0x64193c['id']:return X(_0x2c7a4c['params'],_0x397e6e(0xeb),_0x36260b);case _0xadfd65['id']:return tt(_0x2c7a4c[_0x397e6e(0x10e)],'row',_0x36260b);case _0x116d08['id']:return tt(_0x2c7a4c[_0x397e6e(0x10e)],_0x397e6e(0xeb),_0x36260b);case _0x12e969['id']:return nt(_0x2c7a4c['params'],'row',_0x36260b);case _0x69f01d['id']:return nt(_0x2c7a4c[_0x397e6e(0x10e)],_0x397e6e(0xeb),_0x36260b);default:return null;}}function X(_0x57b712,_0x13d61f,_0x353e8){const _0x164aa3=_0x12c15b;let _0xbc30e6=Z(_0x57b712,_0x353e8);if(!(_0x57b712!=null&&_0x57b712[_0x164aa3(0x14e)])||!_0xbc30e6)return null;let _0xef1486=_0x13d61f===_0x164aa3(0x150)?_0x57b712[_0x164aa3(0x14e)]['startRow']:_0x57b712[_0x164aa3(0x14e)][_0x164aa3(0x133)],_0xb0594c=_0x13d61f===_0x164aa3(0x150)?_0x57b712[_0x164aa3(0x14e)]['endRow']:_0x57b712[_0x164aa3(0x14e)][_0x164aa3(0xc5)];return{..._0xbc30e6,'axis':_0x13d61f,'type':_0x164aa3(0x12f),'index':_0xef1486,'count':_0xb0594c-_0xef1486+0x1};}function tt(_0x1e814a,_0x313876,_0x14fd78){const _0xfb4d63=_0x12c15b;let _0x5227c1=Z(_0x1e814a,_0x14fd78);if(!(_0x1e814a!=null&&_0x1e814a['range'])||!_0x5227c1)return null;let _0x3b9084=_0x313876===_0xfb4d63(0x150)?_0x1e814a[_0xfb4d63(0x14e)][_0xfb4d63(0x129)]:_0x1e814a[_0xfb4d63(0x14e)][_0xfb4d63(0x133)],_0x3282ac=_0x313876===_0xfb4d63(0x150)?_0x1e814a['range'][_0xfb4d63(0x11d)]:_0x1e814a[_0xfb4d63(0x14e)][_0xfb4d63(0xc5)];return{..._0x5227c1,'axis':_0x313876,'type':_0xfb4d63(0x14c),'start':_0x3b9084,'end':_0x3282ac};}function nt(_0x4d9e77,_0x1af4f9,_0x1c228b){const _0x513bc2=_0x12c15b;let _0x2e8ed9=Z(_0x4d9e77,_0x1c228b);if(!(_0x4d9e77!=null&&_0x4d9e77[_0x513bc2(0x13f)])||!_0x4d9e77[_0x513bc2(0xc4)]||!_0x2e8ed9)return null;let _0x43cdf9=_0x1af4f9===_0x513bc2(0x150)?_0x4d9e77[_0x513bc2(0x13f)]['startRow']:_0x4d9e77[_0x513bc2(0x13f)][_0x513bc2(0x133)],_0x4586ed=_0x1af4f9==='row'?_0x4d9e77[_0x513bc2(0x13f)]['endRow']:_0x4d9e77['fromRange'][_0x513bc2(0xc5)],_0x545a86=_0x1af4f9===_0x513bc2(0x150)?_0x4d9e77[_0x513bc2(0xc4)][_0x513bc2(0x129)]:_0x4d9e77[_0x513bc2(0xc4)][_0x513bc2(0x133)];return{..._0x2e8ed9,'axis':_0x1af4f9,'type':_0x513bc2(0xed),'sourceStart':_0x43cdf9,'sourceEnd':_0x4586ed,'destinationIndex':_0x545a86};}function rt(_0x2f2d49,_0x3408a4){const _0x4dae05=_0x12c15b;switch(_0x2f2d49['type']){case _0x4dae05(0x12f):return{'unitId':_0x2f2d49[_0x4dae05(0xf1)],'subUnitId':_0x2f2d49[_0x4dae05(0x165)],'axis':_0x2f2d49[_0x4dae05(0xc8)],'type':_0x4dae05(0x14c),'start':_0x2f2d49[_0x4dae05(0x15c)],'end':_0x2f2d49['index']+_0x2f2d49['count']-0x1};case'delete':return{'unitId':_0x2f2d49['unitId'],'subUnitId':_0x2f2d49[_0x4dae05(0x165)],'axis':_0x2f2d49[_0x4dae05(0xc8)],'type':'insert','index':_0x2f2d49['start'],'count':_0x2f2d49[_0x4dae05(0x131)]-_0x2f2d49[_0x4dae05(0xe4)]+0x1,'restoreOutlines':_0x3408a4[_0x4dae05(0x159)](_0x580104=>_0x580104[_0x4dae05(0xf1)]===_0x2f2d49['unitId']&&_0x580104[_0x4dae05(0x165)]===_0x2f2d49[_0x4dae05(0x165)]&&_0x580104[_0x4dae05(0xc8)]===_0x2f2d49['axis'])};case'move':return it(_0x2f2d49);}}function it(_0x46a289){const _0x7f997=_0x12c15b;let _0x4c319a=_0x46a289['sourceEnd']-_0x46a289['sourceStart']+0x1;return _0x46a289[_0x7f997(0xe0)]>=_0x46a289[_0x7f997(0x127)]&&_0x46a289[_0x7f997(0xe0)]<=_0x46a289['sourceEnd']+0x1?{..._0x46a289}:_0x46a289[_0x7f997(0xe0)]>_0x46a289[_0x7f997(0x146)]+0x1?{..._0x46a289,'sourceStart':_0x46a289['destinationIndex']-_0x4c319a,'sourceEnd':_0x46a289[_0x7f997(0xe0)]-0x1,'destinationIndex':_0x46a289[_0x7f997(0x127)]}:{..._0x46a289,'sourceStart':_0x46a289[_0x7f997(0xe0)],'sourceEnd':_0x46a289['destinationIndex']+_0x4c319a-0x1,'destinationIndex':_0x46a289[_0x7f997(0x146)]+0x1};}function Z(_0x2bea3a,_0x2e74bf){const _0x50aff7=_0x12c15b;var _0x60d28,_0x5633d1;let _0x569809=(_0x60d28=_0x2bea3a==null?void 0x0:_0x2bea3a[_0x50aff7(0xf1)])==null?_0x2e74bf==null?void 0x0:_0x2e74bf[_0x50aff7(0xf1)]:_0x60d28,_0x246d7b=(_0x5633d1=_0x2bea3a==null?void 0x0:_0x2bea3a[_0x50aff7(0x165)])==null?_0x2e74bf==null?void 0x0:_0x2e74bf[_0x50aff7(0x165)]:_0x5633d1;return _0x569809&&_0x246d7b?{'unitId':_0x569809,'subUnitId':_0x246d7b}:null;}function at(){const _0x2fbbf2=_0x12c15b;var _0x75a504,_0x5b324b;return{'redos':[...J[_0x2fbbf2(0x148)]],'undos':[...J[_0x2fbbf2(0xcd)]],'preRedos':[...(_0x75a504=J['preRedos'])==null?[]:_0x75a504],'preUndos':[...(_0x5b324b=J['preUndos'])==null?[]:_0x5b324b]};}let Q=class extends _0xf63b2f{constructor(_0x871f53,_0x2e3d46){const _0x3f8d69=_0x12c15b;super(),this[_0x3f8d69(0xda)]=_0x871f53,this[_0x3f8d69(0xc3)]=_0x2e3d46,this[_0x3f8d69(0x151)]();}[_0x12c15b(0x151)](){const _0xf74c3=_0x12c15b;this[_0xf74c3(0xf8)](this[_0xf74c3(0xda)][_0xf74c3(0xe6)]({'pluginName':G,'businesses':[_0x3f1988[_0xf74c3(0x13b)]],'toJson':_0x7e80cc=>JSON[_0xf74c3(0x14d)](this[_0xf74c3(0xc3)]['serialize'](_0x7e80cc)),'parseJson':_0x3c17b7=>JSON[_0xf74c3(0x10b)](_0x3c17b7),'onLoad':(_0xb08462,_0x2995e9)=>this['_sheetsOutlineModel']['deserialize'](_0xb08462,_0x2995e9),'onUnLoad':_0x448e32=>this['_sheetsOutlineModel']['removeUnit'](_0x448e32)}));}};Q=q([K(0x0,_0x3e9218),K(0x1,_0x1650e6(F))],Q);let $=class extends _0x4c3cec{constructor(_0x21aef4=Ye,_0x256235,_0x232ae4,_0x43f949){const _0x1988d1=_0x12c15b;super(),this['_config']=_0x21aef4,this[_0x1988d1(0xfe)]=_0x256235,this['_commandService']=_0x232ae4,this[_0x1988d1(0x154)]=_0x43f949;let {..._0x1c7e66}=_0x4a2971({},Ye,this[_0x1988d1(0x125)]);this[_0x1988d1(0x154)]['setConfig'](Je,_0x1c7e66);}[_0x12c15b(0x119)](){const _0x13affb=_0x12c15b;this[_0x13affb(0xfe)][_0x13affb(0x13e)]([F]),this[_0x13affb(0xfe)]['add']([I]),this['_injector']['add']([Q]),this[_0x13affb(0xfe)][_0x13affb(0x13e)]([Y]),this['_initRegisterCommand'](),this[_0x13affb(0xfe)][_0x13affb(0xcf)](F),this['_injector'][_0x13affb(0xcf)](I),this['_injector'][_0x13affb(0xcf)](Q),this['_injector'][_0x13affb(0xcf)](Y);}[_0x12c15b(0xd4)](){const _0x2a3adc=_0x12c15b;[B,Le,Ge,H][_0x2a3adc(0xd3)](_0x42a115=>{const _0x539a8c=_0x2a3adc;this[_0x539a8c(0xf8)](this[_0x539a8c(0xd6)][_0x539a8c(0x153)](_0x42a115));}),[L,R,U,V,W]['forEach'](_0x3bfad5=>{const _0x43d336=_0x2a3adc;this[_0x43d336(0xf8)](this['_commandService'][_0x43d336(0x153)](_0x3bfad5));});}};P($,_0x12c15b(0xfc),G),P($,_0x12c15b(0xfd),Xe),P($,_0x12c15b(0x11a),Ze),P($,_0x12c15b(0x134),_0x3f1988[_0x12c15b(0x13b)]),$=q([_0x273fa0(_0x3eafe6),K(0x1,_0x1650e6(_0xb0ffb3)),K(0x2,_0xc79031),K(0x3,_0x306e00)],$);export{B as AddDimensionOutlineCommand,L as AddDimensionOutlineMutation,H as ClearDimensionOutlinesCommand,V as ClearDimensionOutlinesMutation,he as DimensionOutlineAxis,C as DimensionOutlineError,ge as DimensionOutlineErrorReason,Le as RemoveDimensionOutlineCommand,R as RemoveDimensionOutlineMutation,Je as SHEETS_OUTLINE_PLUGIN_CONFIG_KEY,G as SHEET_OUTLINE_PLUGIN,Ge as SetDimensionOutlineCollapsedCommand,U as SetDimensionOutlineCollapsedMutation,I as SheetsOutlineErrorService,F as SheetsOutlineModel,W as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,ve as addDimensionOutlineToList,D as buildDimensionOutlineTree,xe as buildHiddenRanges,O as canAddDimensionOutline,be as clearDimensionOutlinesInRange,_e as getDimensionOutlineErrorOutlineId,w as getDimensionOutlineErrorReason,Pe as getDimensionOutlineViewPermission$,z as hasDimensionOutlineViewPermission,Se as mergeRanges,A as transformOutlinesByDelete,k as transformOutlinesByInsert,j as transformOutlinesByMove};