@univerjs-pro/sheets-outline 1.0.0 → 1.0.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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
- package/lib/types/controllers/config.schema.d.ts +0 -5
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x5c60e5=_0x13d4;(function(_0x13da71,_0xab6891){var _0x24fc2b=_0x13d4,_0x3e13e2=_0x13da71();while(!![]){try{var _0x741d2f=-parseInt(_0x24fc2b(0x1f9))/0x1+-parseInt(_0x24fc2b(0x1f8))/0x2+-parseInt(_0x24fc2b(0x1e6))/0x3*(-parseInt(_0x24fc2b(0x1fa))/0x4)+-parseInt(_0x24fc2b(0x1f5))/0x5+parseInt(_0x24fc2b(0x1fb))/0x6*(-parseInt(_0x24fc2b(0x1e5))/0x7)+parseInt(_0x24fc2b(0x1e9))/0x8+-parseInt(_0x24fc2b(0x1ef))/0x9*(-parseInt(_0x24fc2b(0x1ed))/0xa);if(_0x741d2f===_0xab6891)break;else _0x3e13e2['push'](_0x3e13e2['shift']());}catch(_0x1c665e){_0x3e13e2['push'](_0x3e13e2['shift']());}}}(_0x1f4e,0xe8645));function _0x1f4e(){var _0x5c33f6=['1400830hDyYtH','_workbook','45yNfZta','syncExecuteCommand','addColumnOutline','DimensionOutlineErrorReason','_worksheet','axis','1785045EnwkLs','removeDimensionOutline','COLUMN','494766avjLwl','310732bsCMdh','28wJcNxM','6AgCfyJ','addRowOutline','FWorksheet','getOutlines','_commandService','RemoveDimensionOutlineCommand','getSheetId','extend','getUnitId','4125982mNJhcC','52641ykUCay','DimensionOutlineAxis','AddDimensionOutlineCommand','13065464GVQTXy','SheetsOutlineModel','filter','_addDimensionOutline'];_0x1f4e=function(){return _0x5c33f6;};return _0x1f4e();}let e=require('@univerjs-pro/sheets-outline'),t=require('@univerjs/core/facade'),n=require('@univerjs/sheets/facade');function _0x13d4(_0x111372,_0xd011b5){_0x111372=_0x111372-0x1df;var _0x1f4e5c=_0x1f4e();var _0x13d412=_0x1f4e5c[_0x111372];return _0x13d412;}var r=class extends t['FEnum']{get[_0x5c60e5(0x1e7)](){var _0x28ad08=_0x5c60e5;return e[_0x28ad08(0x1e7)];}get[_0x5c60e5(0x1f2)](){var _0x7bd659=_0x5c60e5;return e[_0x7bd659(0x1f2)];}};t['FEnum'][_0x5c60e5(0x1e3)](r);var i=class extends n['FWorksheet']{[_0x5c60e5(0x1fc)](_0x230d85,_0x47029d){var _0x3d6509=_0x5c60e5;return this[_0x3d6509(0x1ec)](e[_0x3d6509(0x1e7)]['ROW'],_0x230d85,_0x47029d);}[_0x5c60e5(0x1f1)](_0x5d1749,_0x5cb67e){var _0x1de987=_0x5c60e5;return this[_0x1de987(0x1ec)](e[_0x1de987(0x1e7)][_0x1de987(0x1f7)],_0x5d1749,_0x5cb67e);}[_0x5c60e5(0x1f6)](_0x2346c2){var _0x275073=_0x5c60e5;return this[_0x275073(0x1e0)]['syncExecuteCommand'](e[_0x275073(0x1e1)]['id'],{'unitId':this[_0x275073(0x1ee)][_0x275073(0x1e4)](),'subUnitId':this['_worksheet'][_0x275073(0x1e2)](),'outlineId':_0x2346c2}),this;}['setDimensionOutlineCollapsed'](_0x451e27,_0x3f0b3a){var _0x5e8253=_0x5c60e5;return this[_0x5e8253(0x1e0)][_0x5e8253(0x1f0)](e['SetDimensionOutlineCollapsedCommand']['id'],{'unitId':this[_0x5e8253(0x1ee)]['getUnitId'](),'subUnitId':this[_0x5e8253(0x1f3)][_0x5e8253(0x1e2)](),'outlineId':_0x451e27,'collapsed':_0x3f0b3a}),this;}['clearDimensionOutlines'](_0x2a61fd,_0x2ae426,_0xa370d9){var _0x2aac3d=_0x5c60e5;return this[_0x2aac3d(0x1e0)][_0x2aac3d(0x1f0)](e['ClearDimensionOutlinesCommand']['id'],{'unitId':this[_0x2aac3d(0x1ee)][_0x2aac3d(0x1e4)](),'subUnitId':this['_worksheet']['getSheetId'](),'axis':_0x2a61fd,'start':_0x2ae426,'end':_0xa370d9}),this;}['getDimensionOutlines'](_0x1977fd){var _0x27c1c7=_0x5c60e5;let _0x26a7d5=this['_injector']['get'](e[_0x27c1c7(0x1ea)])[_0x27c1c7(0x1df)](this[_0x27c1c7(0x1ee)][_0x27c1c7(0x1e4)](),this[_0x27c1c7(0x1f3)][_0x27c1c7(0x1e2)]());return _0x1977fd?_0x26a7d5[_0x27c1c7(0x1eb)](_0x215ea3=>_0x215ea3[_0x27c1c7(0x1f4)]===_0x1977fd):_0x26a7d5;}[_0x5c60e5(0x1ec)](_0x258242,_0x171e0d,_0x2e932f){var _0x3c2a41=_0x5c60e5;return this['_commandService'][_0x3c2a41(0x1f0)](e[_0x3c2a41(0x1e8)]['id'],{'unitId':this[_0x3c2a41(0x1ee)][_0x3c2a41(0x1e4)](),'subUnitId':this[_0x3c2a41(0x1f3)][_0x3c2a41(0x1e2)](),'axis':_0x258242,'start':_0x171e0d,'end':_0x171e0d+_0x2e932f-0x1}),this;}};n[_0x5c60e5(0x1fd)][_0x5c60e5(0x1e3)](i);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5570cf=_0xeefc;(function(_0x4c956e,_0xce6d9d){const _0x4ecf25=_0xeefc,_0x2f5fd1=_0x4c956e();while(!![]){try{const _0x2890e8=parseInt(_0x4ecf25(0x1b1))/0x1+-parseInt(_0x4ecf25(0x1c8))/0x2*(-parseInt(_0x4ecf25(0x1fb))/0x3)+parseInt(_0x4ecf25(0x1b9))/0x4+parseInt(_0x4ecf25(0x220))/0x5*(parseInt(_0x4ecf25(0x1e9))/0x6)+-parseInt(_0x4ecf25(0x255))/0x7*(parseInt(_0x4ecf25(0x247))/0x8)+-parseInt(_0x4ecf25(0x197))/0x9+-parseInt(_0x4ecf25(0x21c))/0xa*(parseInt(_0x4ecf25(0x24d))/0xb);if(_0x2890e8===_0xce6d9d)break;else _0x2f5fd1['push'](_0x2f5fd1['shift']());}catch(_0x332e0b){_0x2f5fd1['push'](_0x2f5fd1['shift']());}}}(_0x318d,0xa3d21),Object[_0x5570cf(0x1d3)](exports,Symbol[_0x5570cf(0x215)],{'value':_0x5570cf(0x1ed)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x1b3f3a){const _0x55209e=_0x5570cf;return _0x1b3f3a[_0x55209e(0x185)]=_0x55209e(0x1e3),_0x1b3f3a[_0x55209e(0x18d)]=_0x55209e(0x1cf),_0x1b3f3a;}({}),o=function(_0x46c959){const _0x16bd84=_0x5570cf;return _0x46c959[_0x16bd84(0x249)]=_0x16bd84(0x245),_0x46c959['OUT_OF_BOUNDS']=_0x16bd84(0x213),_0x46c959[_0x16bd84(0x258)]=_0x16bd84(0x195),_0x46c959[_0x16bd84(0x20c)]=_0x16bd84(0x191),_0x46c959['MOVE_SPLITS_OUTLINE']=_0x16bd84(0x1f6),_0x46c959[_0x16bd84(0x1f0)]=_0x16bd84(0x20b),_0x46c959[_0x16bd84(0x196)]=_0x16bd84(0x1a8),_0x46c959;}({});var s=class extends Error{constructor(_0xee10f5,_0x51059,_0xff6718){super(_0x51059),this['reason']=_0xee10f5,this['outlineId']=_0xff6718,this['name']='DimensionOutlineError';}};function c(_0x288aef){const _0x94ee9a=_0x5570cf;return _0x288aef instanceof s?_0x288aef['reason']:_0x288aef instanceof Error?_0x288aef[_0x94ee9a(0x1c9)]['includes'](_0x94ee9a(0x1b3))?_0x94ee9a(0x1f6):_0x288aef[_0x94ee9a(0x1c9)][_0x94ee9a(0x199)](_0x94ee9a(0x1d9))?_0x94ee9a(0x191):_0x288aef[_0x94ee9a(0x1c9)][_0x94ee9a(0x199)]('Crossing')?_0x94ee9a(0x195):_0x288aef[_0x94ee9a(0x1c9)][_0x94ee9a(0x199)](_0x94ee9a(0x212))?_0x94ee9a(0x245):_0x94ee9a(0x1a8):_0x94ee9a(0x1a8);}function l(_0x2b5173){const _0x116b56=_0x5570cf;return _0x2b5173 instanceof s?_0x2b5173[_0x116b56(0x194)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x5eb40c,_0x11b3be){const _0x6d229d=_0x5570cf;return _0x5eb40c[_0x6d229d(0x1ac)]===_0x11b3be[_0x6d229d(0x1ac)]&&_0x5eb40c[_0x6d229d(0x242)]===_0x11b3be[_0x6d229d(0x242)]&&_0x5eb40c[_0x6d229d(0x263)]===_0x11b3be[_0x6d229d(0x263)];}function _0xeefc(_0xac3e0f,_0x51fed7){_0xac3e0f=_0xac3e0f-0x185;const _0x318d80=_0x318d();let _0xeefc9=_0x318d80[_0xac3e0f];return _0xeefc9;}function f(_0x4a5dc7,_0x485cc0={}){const _0x3a972a=_0x5570cf;let _0x5ba4bd=_0x485cc0['maxDepth']??0x8,_0x4d3b82=new Map();for(let _0x606b19 of _0x4a5dc7){let _0xcaf493=_0x606b19['unitId']+':'+_0x606b19[_0x3a972a(0x242)]+':'+_0x606b19[_0x3a972a(0x263)],_0x1433f6=_0x4d3b82[_0x3a972a(0x19a)](_0xcaf493);_0x1433f6?_0x1433f6[_0x3a972a(0x1ab)](_0x606b19):_0x4d3b82[_0x3a972a(0x1cb)](_0xcaf493,[_0x606b19]);}let _0x1fae97=[];for(let _0x20d0cb of _0x4d3b82[_0x3a972a(0x25d)]()){let _0xe85f7=[..._0x20d0cb]['sort'](S),_0x229bc9=[];for(let _0x283416 of _0xe85f7){for(se(_0x283416);_0x229bc9[_0x3a972a(0x1c7)]>0x0&&_0x283416[_0x3a972a(0x1d8)]>_0x229bc9[_0x229bc9[_0x3a972a(0x1c7)]-0x1][_0x3a972a(0x1f1)];)_0x229bc9[_0x3a972a(0x1e0)]();let _0x121567=_0x229bc9[_0x229bc9[_0x3a972a(0x1c7)]-0x1];if(_0x121567&&_0x283416[_0x3a972a(0x1f1)]>_0x121567['end'])throw new s(_0x3a972a(0x195),'Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed',_0x283416['id']);let _0x3f4881=_0x121567?_0x121567[_0x3a972a(0x1d9)]+0x1:0x1;if(_0x3f4881>_0x5ba4bd)throw new s('max-depth',_0x3a972a(0x233)+_0x5ba4bd,_0x283416['id']);let _0x1d3934={..._0x283416,'depth':_0x3f4881,'parentId':_0x121567==null?void 0x0:_0x121567['id'],'anchor':_0x283416['end'],'children':[]};_0x121567?_0x121567[_0x3a972a(0x204)]['push'](_0x1d3934):_0x1fae97[_0x3a972a(0x1ab)](_0x1d3934),_0x229bc9[_0x3a972a(0x1ab)](_0x1d3934);}}return _0x1fae97;}function p(_0x5dde7d,_0x4136b9,_0x1d36f7={}){const _0x155116=_0x5570cf;if(_0x4136b9[_0x155116(0x1d8)]<0x0||_0x4136b9[_0x155116(0x1d8)]>_0x4136b9[_0x155116(0x1f1)])return{'valid':!0x1,'reason':_0x155116(0x245)};if(_0x1d36f7[_0x155116(0x1b8)]!=null&&_0x4136b9[_0x155116(0x1f1)]>=_0x1d36f7[_0x155116(0x1b8)])return{'valid':!0x1,'reason':_0x155116(0x213)};let _0x31e93a=_0x5dde7d[_0x155116(0x228)](_0x1867eb=>d(_0x1867eb,_0x4136b9));for(let _0x2c8980 of _0x31e93a)if(C(_0x2c8980,_0x4136b9))return{'valid':!0x1,'reason':_0x155116(0x195)};try{f([..._0x5dde7d,_0x4136b9],_0x1d36f7);}catch(_0x51a455){let _0x533623=c(_0x51a455);return _0x533623===_0x155116(0x191)?{'valid':!0x1,'reason':'max-depth'}:_0x533623===_0x155116(0x245)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':_0x155116(0x195)};}return{'valid':!0x0};}function m(_0x537a12,_0x318aac,_0x20eb1e={}){const _0x3c352d=_0x5570cf;let _0x57278b=p(_0x537a12,_0x318aac,_0x20eb1e);if(!_0x57278b[_0x3c352d(0x243)])throw Error(_0x57278b['reason']??_0x3c352d(0x231));return[..._0x537a12,_0x318aac];}function ee(_0x4d5525,_0x4be720){const _0x4ecd7d=_0x5570cf;let _0xae45ad=_0x4be720[_0x4ecd7d(0x1d8)],_0x450172=_0x4be720['end'],_0x1e06c8=[],_0x577031=!0x0;for(;_0x577031;){_0x577031=!0x1;for(let _0x51cec0 of _0x4d5525)!_0x1e06c8['includes'](_0x51cec0)&&d(_0x51cec0,_0x4be720)&&ae(_0x51cec0[_0x4ecd7d(0x1d8)],_0x51cec0[_0x4ecd7d(0x1f1)],_0xae45ad,_0x450172)&&(_0x1e06c8['push'](_0x51cec0),_0xae45ad=Math[_0x4ecd7d(0x19d)](_0xae45ad,_0x51cec0['start']),_0x450172=Math[_0x4ecd7d(0x23f)](_0x450172,_0x51cec0['end']),_0x577031=!0x0);}if(_0x1e06c8['length']===0x0)return null;let [_0x47ef83]=[..._0x1e06c8][_0x4ecd7d(0x1be)](S);return{'mergedOutline':{..._0x47ef83,'start':_0xae45ad,'end':_0x450172},'mergedOutlines':_0x1e06c8};}function h(_0x1b3134,_0x52aed2){const _0x8bcc84=_0x5570cf;return _0x1b3134[_0x8bcc84(0x228)](_0x382200=>!d(_0x382200,_0x52aed2)||!(_0x382200[_0x8bcc84(0x1d8)]>=_0x52aed2[_0x8bcc84(0x1d8)]&&_0x382200[_0x8bcc84(0x1f1)]<=_0x52aed2['end']));}function g(_0x20b301,_0x1a4813,_0x132e73,_0x1db15f){const _0x4d836d=_0x5570cf;return _(_0x20b301[_0x4d836d(0x228)](_0x52745b=>_0x52745b[_0x4d836d(0x1ac)]===_0x1a4813&&_0x52745b['subUnitId']===_0x132e73&&_0x52745b[_0x4d836d(0x263)]===_0x1db15f&&_0x52745b[_0x4d836d(0x21d)])[_0x4d836d(0x209)](_0xaaea42=>({'start':_0xaaea42[_0x4d836d(0x1d8)],'end':_0xaaea42[_0x4d836d(0x1f1)]})));}function _(_0x5c3083){const _0x1c10ea=_0x5570cf;if(_0x5c3083['length']===0x0)return[];let _0x188b54=[..._0x5c3083][_0x1c10ea(0x1be)]((_0xc00eb6,_0x17cb1d)=>_0xc00eb6[_0x1c10ea(0x1d8)]-_0x17cb1d[_0x1c10ea(0x1d8)]||_0xc00eb6[_0x1c10ea(0x1f1)]-_0x17cb1d[_0x1c10ea(0x1f1)]),_0x19ff13=[];for(let _0x4f314e of _0x188b54){let _0x38d074=_0x19ff13[_0x19ff13[_0x1c10ea(0x1c7)]-0x1];!_0x38d074||_0x4f314e[_0x1c10ea(0x1d8)]>_0x38d074[_0x1c10ea(0x1f1)]+0x1?_0x19ff13['push']({..._0x4f314e}):_0x38d074[_0x1c10ea(0x1f1)]=Math[_0x1c10ea(0x23f)](_0x38d074[_0x1c10ea(0x1f1)],_0x4f314e['end']);}return _0x19ff13;}function v(_0x2a3486,_0x1956bf){const _0x2292ef=_0x5570cf;return _0x1956bf[_0x2292ef(0x20f)]<=0x0?_0x2a3486:x(_0x2a3486[_0x2292ef(0x209)](_0x9c1fb7=>d(_0x9c1fb7,_0x1956bf)?_0x1956bf[_0x2292ef(0x21b)]<=_0x9c1fb7[_0x2292ef(0x1d8)]?{..._0x9c1fb7,'start':_0x9c1fb7['start']+_0x1956bf[_0x2292ef(0x20f)],'end':_0x9c1fb7['end']+_0x1956bf[_0x2292ef(0x20f)]}:_0x9c1fb7[_0x2292ef(0x1d8)]<_0x1956bf[_0x2292ef(0x21b)]&&_0x1956bf[_0x2292ef(0x21b)]<=_0x9c1fb7[_0x2292ef(0x1f1)]?{..._0x9c1fb7,'end':_0x9c1fb7[_0x2292ef(0x1f1)]+_0x1956bf[_0x2292ef(0x20f)]}:_0x9c1fb7:_0x9c1fb7));}function y(_0x47142a,_0x51dd8d){const _0x725f4e=_0x5570cf;if(_0x51dd8d[_0x725f4e(0x1d8)]>_0x51dd8d[_0x725f4e(0x1f1)])return _0x47142a;let _0x1c01c9=_0x51dd8d[_0x725f4e(0x1f1)]-_0x51dd8d['start']+0x1,_0x2ad894=[];for(let _0x468707 of _0x47142a){if(!d(_0x468707,_0x51dd8d)){_0x2ad894[_0x725f4e(0x1ab)](_0x468707);continue;}if(_0x468707[_0x725f4e(0x1f1)]<_0x51dd8d[_0x725f4e(0x1d8)]){_0x2ad894[_0x725f4e(0x1ab)](_0x468707);continue;}if(_0x468707[_0x725f4e(0x1d8)]>_0x51dd8d[_0x725f4e(0x1f1)]){_0x2ad894['push']({..._0x468707,'start':_0x468707['start']-_0x1c01c9,'end':_0x468707[_0x725f4e(0x1f1)]-_0x1c01c9});continue;}let _0x6dd140=Math[_0x725f4e(0x23f)](_0x468707[_0x725f4e(0x1d8)],_0x51dd8d[_0x725f4e(0x1d8)]),_0x58906b=Math[_0x725f4e(0x19d)](_0x468707[_0x725f4e(0x1f1)],_0x51dd8d['end']),_0x19e4d2=Math[_0x725f4e(0x23f)](0x0,_0x58906b-_0x6dd140+0x1),_0x320e7b=_0x468707[_0x725f4e(0x1f1)]-_0x468707['start']+0x1-_0x19e4d2;if(_0x320e7b<=0x0)continue;let _0x118d5e=_0x468707[_0x725f4e(0x1d8)]<_0x51dd8d['start']?_0x468707[_0x725f4e(0x1d8)]:_0x51dd8d[_0x725f4e(0x1d8)];_0x2ad894[_0x725f4e(0x1ab)]({..._0x468707,'start':_0x118d5e,'end':_0x118d5e+_0x320e7b-0x1});}return x(_0x2ad894);}function b(_0x49eafd,_0x28d370){const _0x568430=_0x5570cf;if(_0x28d370['sourceStart']>_0x28d370[_0x568430(0x20e)])return _0x49eafd;let _0x44ba22=[];for(let _0x5d98a8 of _0x49eafd){if(!d(_0x5d98a8,_0x28d370)){_0x44ba22[_0x568430(0x1ab)](_0x5d98a8);continue;}let _0x39f5f4=te(_0x5d98a8,_0x28d370);if(_0x39f5f4[_0x568430(0x225)]===_0x568430(0x1c4))throw new s('move-splits-outline',_0x568430(0x22c)+_0x5d98a8['id'],_0x5d98a8['id']);_0x44ba22['push'](_0x39f5f4[_0x568430(0x1f8)]);}return x(_0x44ba22);}function te(_0x165cae,_0x1438d4){const _0x17df2b=_0x5570cf;let _0x27960f=ne(_0x1438d4['sourceStart'],_0x1438d4[_0x17df2b(0x20e)]+0x1,_0x1438d4[_0x17df2b(0x210)]),_0x215df3=[],_0x288a4d={'start':_0x165cae[_0x17df2b(0x1d8)],'end':_0x165cae[_0x17df2b(0x1f1)]+0x1};for(let _0x2178bb of _0x27960f){let _0x29ed64=re(_0x288a4d,_0x2178bb[_0x17df2b(0x212)]);_0x29ed64&&_0x215df3[_0x17df2b(0x1ab)]({'start':_0x29ed64[_0x17df2b(0x1d8)]+_0x2178bb['offset'],'end':_0x29ed64['end']+_0x2178bb[_0x17df2b(0x18a)]});}let _0x11deaf=ie(_0x215df3);return _0x11deaf[_0x17df2b(0x1c7)]===0x1?{'type':'ok','outline':{..._0x165cae,'start':_0x11deaf[0x0][_0x17df2b(0x1d8)],'end':_0x11deaf[0x0][_0x17df2b(0x1f1)]-0x1}}:{'type':_0x17df2b(0x1c4),'outline':_0x165cae,'ranges':_0x11deaf};}function ne(_0x8372f6,_0x27cb8e,_0xc99d62){const _0x191943=_0x5570cf;let _0x6d22ee=_0x27cb8e-_0x8372f6;if(_0x6d22ee<=0x0)throw Error(_0x191943(0x235));return _0xc99d62>=_0x8372f6&&_0xc99d62<=_0x27cb8e?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0xc99d62<_0x8372f6?[{'range':{'start':0x0,'end':_0xc99d62},'offset':0x0},{'range':{'start':_0xc99d62,'end':_0x8372f6},'offset':_0x6d22ee},{'range':{'start':_0x8372f6,'end':_0x27cb8e},'offset':_0xc99d62-_0x8372f6},{'range':{'start':_0x27cb8e,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x8372f6},'offset':0x0},{'range':{'start':_0x8372f6,'end':_0x27cb8e},'offset':_0xc99d62-_0x27cb8e},{'range':{'start':_0x27cb8e,'end':_0xc99d62},'offset':-_0x6d22ee},{'range':{'start':_0xc99d62,'end':u},'offset':0x0}];}function re(_0x420551,_0x2c380b){const _0x35cdca=_0x5570cf;let _0x1c0f5a=Math[_0x35cdca(0x23f)](_0x420551[_0x35cdca(0x1d8)],_0x2c380b[_0x35cdca(0x1d8)]),_0x30a08c=Math[_0x35cdca(0x19d)](_0x420551[_0x35cdca(0x1f1)],_0x2c380b[_0x35cdca(0x1f1)]);return _0x1c0f5a>=_0x30a08c?null:{'start':_0x1c0f5a,'end':_0x30a08c};}function ie(_0x3489a6){const _0x78186f=_0x5570cf;if(_0x3489a6[_0x78186f(0x1c7)]===0x0)return[];let _0x38efd6=[..._0x3489a6][_0x78186f(0x1be)]((_0xa3c80e,_0x3c11e0)=>_0xa3c80e[_0x78186f(0x1d8)]-_0x3c11e0['start']||_0xa3c80e[_0x78186f(0x1f1)]-_0x3c11e0[_0x78186f(0x1f1)]),_0x3f7674=[];for(let _0xa720f2 of _0x38efd6){let _0x355287=_0x3f7674[_0x3f7674[_0x78186f(0x1c7)]-0x1];!_0x355287||_0xa720f2['start']>_0x355287[_0x78186f(0x1f1)]?_0x3f7674[_0x78186f(0x1ab)]({..._0xa720f2}):_0x355287[_0x78186f(0x1f1)]=Math[_0x78186f(0x23f)](_0x355287['end'],_0xa720f2[_0x78186f(0x1f1)]);}return _0x3f7674;}function ae(_0x3d18c8,_0x3ca5bd,_0x1928ec,_0x320503){return _0x3ca5bd+0x1===_0x1928ec||_0x320503+0x1===_0x3d18c8;}function x(_0x57dd9c){let _0x26ac96=oe(_0x57dd9c);return f(_0x26ac96),_0x26ac96;}function oe(_0x2f3950){const _0x412711=_0x5570cf;let _0x1c4c5b=new Map();for(let _0x4b73fb of _0x2f3950){let _0x3a255b=[_0x4b73fb[_0x412711(0x1ac)],_0x4b73fb['subUnitId'],_0x4b73fb[_0x412711(0x263)],_0x4b73fb[_0x412711(0x1d8)],_0x4b73fb[_0x412711(0x1f1)]][_0x412711(0x1cd)](':'),_0xa8ea66=_0x1c4c5b[_0x412711(0x19a)](_0x3a255b);if(!_0xa8ea66){_0x1c4c5b[_0x412711(0x1cb)](_0x3a255b,_0x4b73fb);continue;}_0x1c4c5b['set'](_0x3a255b,{..._0xa8ea66,'collapsed':_0xa8ea66[_0x412711(0x21d)]||_0x4b73fb['collapsed']});}return Array['from'](_0x1c4c5b[_0x412711(0x25d)]());}function S(_0x353187,_0x3bb45a){const _0x270dbd=_0x5570cf;return _0x353187[_0x270dbd(0x1ac)]===_0x3bb45a[_0x270dbd(0x1ac)]?_0x353187[_0x270dbd(0x242)]===_0x3bb45a['subUnitId']?_0x353187[_0x270dbd(0x263)]===_0x3bb45a[_0x270dbd(0x263)]?_0x353187[_0x270dbd(0x1d8)]===_0x3bb45a[_0x270dbd(0x1d8)]?_0x3bb45a[_0x270dbd(0x1f1)]-_0x353187[_0x270dbd(0x1f1)]:_0x353187[_0x270dbd(0x1d8)]-_0x3bb45a[_0x270dbd(0x1d8)]:_0x353187[_0x270dbd(0x263)][_0x270dbd(0x24f)](_0x3bb45a[_0x270dbd(0x263)]):_0x353187[_0x270dbd(0x242)]['localeCompare'](_0x3bb45a[_0x270dbd(0x242)]):_0x353187[_0x270dbd(0x1ac)][_0x270dbd(0x24f)](_0x3bb45a[_0x270dbd(0x1ac)]);}function se(_0x10553d){const _0x8c48ad=_0x5570cf;if(_0x10553d[_0x8c48ad(0x1d8)]>_0x10553d[_0x8c48ad(0x1f1)])throw new s(_0x8c48ad(0x245),_0x8c48ad(0x1ec),_0x10553d['id']);}function C(_0x2fdfe8,_0x54f1b1){const _0x274961=_0x5570cf;let _0x38cc65=_0x2fdfe8[_0x274961(0x1d8)]<=_0x54f1b1[_0x274961(0x1f1)]&&_0x54f1b1['start']<=_0x2fdfe8[_0x274961(0x1f1)],_0x374a6a=_0x2fdfe8[_0x274961(0x1d8)]<=_0x54f1b1[_0x274961(0x1d8)]&&_0x54f1b1[_0x274961(0x1f1)]<=_0x2fdfe8[_0x274961(0x1f1)],_0x312818=_0x54f1b1['start']<=_0x2fdfe8[_0x274961(0x1d8)]&&_0x2fdfe8[_0x274961(0x1f1)]<=_0x54f1b1[_0x274961(0x1f1)];return _0x38cc65&&!_0x374a6a&&!_0x312818;}function w(_0x4b45e0){'@babel/helpers - typeof';const _0x2e5f63=_0x5570cf;return w=typeof Symbol==_0x2e5f63(0x216)&&typeof Symbol[_0x2e5f63(0x25b)]==_0x2e5f63(0x20d)?function(_0x136c57){return typeof _0x136c57;}:function(_0x448d84){const _0x11fa2e=_0x2e5f63;return _0x448d84&&typeof Symbol==_0x11fa2e(0x216)&&_0x448d84[_0x11fa2e(0x193)]===Symbol&&_0x448d84!==Symbol[_0x11fa2e(0x259)]?'symbol':typeof _0x448d84;},w(_0x4b45e0);}function ce(_0x2608a5,_0x453012){const _0x272ba2=_0x5570cf;if(w(_0x2608a5)!=_0x272ba2(0x198)||!_0x2608a5)return _0x2608a5;var _0x2c502a=_0x2608a5[Symbol[_0x272ba2(0x1eb)]];if(_0x2c502a!==void 0x0){var _0xd565af=_0x2c502a[_0x272ba2(0x253)](_0x2608a5,_0x453012||'default');if(w(_0xd565af)!=_0x272ba2(0x198))return _0xd565af;throw TypeError(_0x272ba2(0x252));}return(_0x453012===_0x272ba2(0x1cc)?String:Number)(_0x2608a5);}function le(_0x3d068c){const _0x4f4f57=_0x5570cf;var _0x2190a3=ce(_0x3d068c,'string');return w(_0x2190a3)==_0x4f4f57(0x20d)?_0x2190a3:_0x2190a3+'';}function T(_0x25902e,_0x3546ec,_0x230191){const _0x4f8471=_0x5570cf;return(_0x3546ec=le(_0x3546ec))in _0x25902e?Object[_0x4f8471(0x1d3)](_0x25902e,_0x3546ec,{'value':_0x230191,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25902e[_0x3546ec]=_0x230191,_0x25902e;}var E=class extends e[_0x5570cf(0x189)]{constructor(..._0x39a9a8){const _0x110301=_0x5570cf;super(..._0x39a9a8),T(this,'_outlines',new Map()),T(this,_0x110301(0x239),new n[(_0x110301(0x1bd))]()),T(this,'change$',this['_change$']['asObservable']());}[_0x5570cf(0x1f5)](_0x769d34,_0x5ef066){const _0x1d5926=_0x5570cf;var _0x4bf946;return[...((_0x4bf946=this['_outlines'][_0x1d5926(0x19a)](_0x769d34))==null?void 0x0:_0x4bf946[_0x1d5926(0x19a)](_0x5ef066))??[]];}[_0x5570cf(0x1ea)](_0x36418a){const _0x3c1d49=_0x5570cf;let _0x3b0a0d=this['_outlines'][_0x3c1d49(0x19a)](_0x36418a),_0x282466=new Map();return _0x3b0a0d==null||_0x3b0a0d[_0x3c1d49(0x1f9)]((_0xb3b141,_0x6ef0c6)=>{const _0x120e95=_0x3c1d49;_0x282466[_0x120e95(0x1cb)](_0x6ef0c6,[..._0xb3b141]);}),_0x282466;}['setOutlines'](_0x5b394f,_0x482ee6,_0x2e5e0a){const _0x85553e=_0x5570cf;this[_0x85553e(0x22a)](_0x5b394f)['set'](_0x482ee6,[..._0x2e5e0a]),this[_0x85553e(0x239)]['next']({'unitId':_0x5b394f,'subUnitId':_0x482ee6});}[_0x5570cf(0x23b)](_0x2fe94b){const _0x59d67b=_0x5570cf;this['_outlines'][_0x59d67b(0x25f)](_0x2fe94b),this[_0x59d67b(0x239)][_0x59d67b(0x248)]({'unitId':_0x2fe94b});}[_0x5570cf(0x1aa)](_0x4f8391){const _0x385ae0=_0x5570cf;let _0x27f531=this[_0x385ae0(0x19b)][_0x385ae0(0x19a)](_0x4f8391),_0x2bcbe3={};return _0x27f531==null||_0x27f531['forEach']((_0x4d7767,_0x5117b2)=>{_0x2bcbe3[_0x5117b2]={'outlineList':[..._0x4d7767]};}),_0x2bcbe3;}['deserialize'](_0x1c8422,_0x444981){const _0x4a4749=_0x5570cf;let _0x403a5b=new Map();Object[_0x4a4749(0x1fa)](_0x444981)[_0x4a4749(0x1f9)](([_0x20f1b0,_0x5e8804])=>{const _0xe4245c=_0x4a4749;_0x403a5b[_0xe4245c(0x1cb)](_0x20f1b0,[..._0x5e8804['outlineList']??[]]);}),this[_0x4a4749(0x19b)][_0x4a4749(0x1cb)](_0x1c8422,_0x403a5b),this[_0x4a4749(0x239)][_0x4a4749(0x248)]({'unitId':_0x1c8422});}['dispose'](){const _0x503c5b=_0x5570cf;super[_0x503c5b(0x22d)](),this['_outlines'][_0x503c5b(0x1a9)](),this[_0x503c5b(0x239)][_0x503c5b(0x186)]();}['_ensureUnitOutlines'](_0x357c86){const _0x2b12c9=_0x5570cf;let _0x585336=this[_0x2b12c9(0x19b)][_0x2b12c9(0x19a)](_0x357c86);return _0x585336||(_0x585336=new Map(),this['_outlines'][_0x2b12c9(0x1cb)](_0x357c86,_0x585336)),_0x585336;}},D=class extends e[_0x5570cf(0x189)]{constructor(..._0x4e348b){const _0x322e2a=_0x5570cf;super(..._0x4e348b),T(this,_0x322e2a(0x200),new n[(_0x322e2a(0x1bd))]()),T(this,_0x322e2a(0x232),this['_error$'][_0x322e2a(0x1c0)]());}['emit'](_0x1f57bf){const _0x25efec=_0x5570cf;this[_0x25efec(0x200)][_0x25efec(0x248)](_0x1f57bf);}['dispose'](){const _0xadec22=_0x5570cf;super[_0xadec22(0x22d)](),this['_error$'][_0xadec22(0x186)]();}};const O={'id':_0x5570cf(0x1dc),'type':e[_0x5570cf(0x1f4)][_0x5570cf(0x1a4)],'handler':(_0x482b49,_0x43df08)=>{const _0x172fb3=_0x5570cf;let _0x26db8b=_0x482b49['get'](E),_0x18fc3b=_0x26db8b['getOutlines'](_0x43df08[_0x172fb3(0x1ac)],_0x43df08[_0x172fb3(0x242)]);return _0x26db8b['setOutlines'](_0x43df08[_0x172fb3(0x1ac)],_0x43df08[_0x172fb3(0x242)],m(_0x18fc3b,_0x43df08['outline'])),!0x0;}},k={'id':_0x5570cf(0x22f),'type':e['CommandType']['MUTATION'],'handler':(_0x217d91,_0x10cc27)=>{const _0x201bd0=_0x5570cf;let _0x387871=_0x217d91[_0x201bd0(0x19a)](E),_0x4ff90b=_0x387871[_0x201bd0(0x1f5)](_0x10cc27[_0x201bd0(0x1ac)],_0x10cc27[_0x201bd0(0x242)]);return _0x387871[_0x201bd0(0x214)](_0x10cc27[_0x201bd0(0x1ac)],_0x10cc27['subUnitId'],_0x4ff90b[_0x201bd0(0x228)](_0x582514=>_0x582514['id']!==_0x10cc27[_0x201bd0(0x194)])),!0x0;}};function A(_0x1cdf0f,_0x315608,_0x18916f){const _0x282bed=_0x5570cf;let _0x75ef99=de(_0x1cdf0f);return!_0x75ef99||_0x75ef99['permissionCheckWithoutRange']({'workbookTypes':[t[_0x282bed(0x1ae)]],'worksheetTypes':[t[_0x282bed(0x1b0)]]},_0x315608,_0x18916f);}function _0x318d(){const _0x11248d=['end','UNIVER_SHEET','_initResource','CommandType','getOutlines','move-splits-outline','ICommandService','outline','forEach','entries','33UgNFnX','deserialize','getSheetId','result','SetRowVisibleMutation','_error$','SetDimensionOutlineCollapsedMutation','mergedOutline','RemoveDimensionOutlineCommand','children','MoveRowsCommand','_sheetInterceptorService','IResourceManagerService','dimension-outline-','map','RemoveColCommand','clear-range-not-contain-outline','MAX_DEPTH','symbol','sourceEnd','count','destinationIndex','some','range','out-of-bounds','setOutlines','toStringTag','function','getSheetCommandTarget','CustomCommandExecutionError','stringify','_configService','index','263390glPwSP','collapsed','redos','_commandService','4114290fRpSHU','SHEET_OUTLINE_PLUGIN','transformOutlinesByDelete','getMaxColumns','DimensionOutlineAxis','type','SetColHiddenMutation','MoveColsCommand','filter','_initCommandInterceptor','_ensureUnitOutlines','TransformDimensionOutlinesMutation','Move\x20would\x20split\x20dimension\x20outline:\x20','dispose','AddDimensionOutlineMutation','sheet.mutation.remove-dimension-outline','disposeWithMe','invalid-dimension-outline','error$','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','sheet.command.set-dimension-outline-collapsed','Invalid\x20dimension\x20outline\x20move\x20source\x20range','IUndoRedoService','buildDimensionOutlineTree','_getCommandScope','_change$','reason','removeUnit','SetDimensionOutlineCollapsedCommand','sourceStart','Plugin','max','startColumn','merge','subUnitId','valid','SheetsOutlineErrorService','invalid-range','pushUndoRedo','528664ybkBCu','next','INVALID_RANGE','interceptCommand','move','packageName','187nCrsag','AddDimensionOutlineCommand','localeCompare','version','endColumn','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','call','endRow','91rIuOmo','RemoveDimensionOutlineMutation','registerCommand','CROSSING','prototype','DependentOn','iterator','Injector','values','insert','delete','generateRandomId','registerPluginResource','UniverSheetsOutlinePlugin','axis','ROW','complete','SheetsOutlineModel','toRange','Disposable','offset','getActiveSheet','SetColVisibleMutation','COLUMN','getUnit','getCurrentUnitOfType','UniverLicensePlugin','max-depth','sheet.mutation.transform-dimension-outlines','constructor','outlineId','crossing','UNKNOWN','11930967vTspnH','object','includes','get','_outlines','restoreOutlines','min','_injector','preRedos','Inject','sheet.mutation.clear-dimension-outlines','preUndos','undos','MUTATION','@univerjs-pro/sheets-outline','sheet.command.add-dimension-outline','DimensionOutlineErrorReason','unknown','clear','serialize','push','unitId','getOwnPropertyDescriptor','WorkbookViewPermission','_resourceManagerService','WorksheetViewPermission','1056411atgGsL','COMMAND','split\x20dimension\x20outline','add','getColumnCount','SheetInterceptorService','_sheetsOutlineErrorService','maxIndex','4286076eXPzkn','IPermissionService','IUniverInstanceService','has','Subject','sort','IConfigService','asObservable','RemoveRowCommand','_sheetsOutlineModel','transformOutlinesByMove','split','decorate','UniverInstanceType','length','64132UxuXSZ','message','SetRowHiddenMutation','set','string','join','sheet.command.remove-dimension-outline','column','emit','UniverSheetsPlugin','startWith','defineProperty','sequenceExecute','ClearDimensionOutlinesCommand','InsertRowCommand','InsertColCommand','start','depth','SheetPermissionCheckController','params','sheet.mutation.add-dimension-outline','startRow','fromRange','getUnitId','pop','pluginName','parse','row','hasDimensionOutlineViewPermission','pipe','debounceTime','permissionPointUpdate$','_univerInstanceService','6GAYinu','getUnitOutlines','toPrimitive','Invalid\x20outline\x20range','Module','getRowCount','find','CLEAR_RANGE_NOT_CONTAIN_OUTLINE'];_0x318d=function(){return _0x11248d;};return _0x318d();}function ue(_0x3138b1,_0x4fd87a,_0x9f50d){const _0x4db5f0=_0x5570cf;let _0x55661a=fe(_0x3138b1);return((_0x55661a==null?void 0x0:_0x55661a[_0x4db5f0(0x1e7)])??(0x0,n['of'])(null))[_0x4db5f0(0x1e5)]((0x0,r[_0x4db5f0(0x1e6)])(0x64),(0x0,r[_0x4db5f0(0x1d2)])(null),(0x0,r[_0x4db5f0(0x209)])(()=>A(_0x3138b1,_0x4fd87a,_0x9f50d)));}function de(_0xccd651){const _0x96a5a8=_0x5570cf;if(typeof _0xccd651[_0x96a5a8(0x1bc)]==_0x96a5a8(0x216)&&!_0xccd651[_0x96a5a8(0x1bc)](t[_0x96a5a8(0x1da)]))return null;try{return _0xccd651['get'](t[_0x96a5a8(0x1da)]);}catch{return null;}}function fe(_0x1df353){const _0x2e3374=_0x5570cf;if(typeof _0x1df353[_0x2e3374(0x1bc)]==_0x2e3374(0x216)&&!_0x1df353[_0x2e3374(0x1bc)](e['IPermissionService']))return null;try{return _0x1df353['get'](e[_0x2e3374(0x1ba)]);}catch{return null;}}const j={'id':_0x5570cf(0x1a6),'type':e['CommandType'][_0x5570cf(0x1b2)],'handler':(_0x307ceb,_0x419593)=>{const _0x39cbe0=_0x5570cf;if(!_0x419593)return!0x1;let _0x192074=(0x0,t[_0x39cbe0(0x217)])(_0x307ceb['get'](e[_0x39cbe0(0x1bb)]),_0x419593);if(!_0x192074)return!0x1;let {unitId:_0x33f8f8,subUnitId:_0x2bc18c,worksheet:_0x11a5f8}=_0x192074;if(!A(_0x307ceb,_0x33f8f8,_0x2bc18c))return!0x1;let _0x6decab=_0x307ceb[_0x39cbe0(0x19a)](E),_0x40b75c={'id':_0x39cbe0(0x208)+(0x0,e[_0x39cbe0(0x260)])(0x6),'unitId':_0x33f8f8,'subUnitId':_0x2bc18c,'axis':_0x419593['axis'],'start':_0x419593[_0x39cbe0(0x1d8)],'end':_0x419593['end'],'collapsed':!0x1},_0x1ca35c=_0x419593[_0x39cbe0(0x263)]===_0x39cbe0(0x1e3)?_0x11a5f8[_0x39cbe0(0x1ee)]():_0x11a5f8[_0x39cbe0(0x1b5)](),_0x196c90=_0x6decab[_0x39cbe0(0x1f5)](_0x33f8f8,_0x2bc18c),_0x28a655=ee(_0x196c90,_0x40b75c),_0x45e3c6=(_0x28a655==null?void 0x0:_0x28a655['mergedOutlines'])??[],_0x21ea7c=(_0x28a655==null?void 0x0:_0x28a655[_0x39cbe0(0x202)])??_0x40b75c,_0x2269ff=p(_0x28a655?_0x196c90[_0x39cbe0(0x228)](_0x198b49=>!_0x45e3c6[_0x39cbe0(0x211)](_0x3e2f30=>_0x3e2f30['id']===_0x198b49['id'])):_0x196c90,_0x21ea7c,{'maxIndex':_0x1ca35c});if(!_0x2269ff['valid'])return _0x307ceb[_0x39cbe0(0x19a)](D)['emit']({'reason':_0x2269ff[_0x39cbe0(0x23a)]??_0x39cbe0(0x1a8),'commandId':j['id'],'unitId':_0x33f8f8,'subUnitId':_0x2bc18c,'axis':_0x419593[_0x39cbe0(0x263)],'outlineId':_0x21ea7c['id']}),!0x1;let _0xa9f70c=[..._0x45e3c6[_0x39cbe0(0x209)](_0x199e78=>({'id':k['id'],'params':{'unitId':_0x33f8f8,'subUnitId':_0x2bc18c,'outlineId':_0x199e78['id']}})),{'id':O['id'],'params':{'unitId':_0x33f8f8,'subUnitId':_0x2bc18c,'outline':_0x21ea7c}}],_0x553657=[{'id':k['id'],'params':{'unitId':_0x33f8f8,'subUnitId':_0x2bc18c,'outlineId':_0x21ea7c['id']}},..._0x45e3c6[_0x39cbe0(0x209)](_0x162db8=>({'id':O['id'],'params':{'unitId':_0x33f8f8,'subUnitId':_0x2bc18c,'outline':_0x162db8}}))];return(0x0,e['sequenceExecute'])(_0xa9f70c,_0x307ceb['get'](e[_0x39cbe0(0x1f7)]))[_0x39cbe0(0x1fe)]?(_0x307ceb[_0x39cbe0(0x19a)](e[_0x39cbe0(0x236)])[_0x39cbe0(0x246)]({'unitID':_0x33f8f8,'undoMutations':_0x553657,'redoMutations':_0xa9f70c}),!0x0):!0x1;}},M={'id':_0x5570cf(0x1a1),'type':e[_0x5570cf(0x1f4)]['MUTATION'],'handler':(_0x4bd19f,_0xd6d1f1)=>{const _0x429b4f=_0x5570cf;let _0x1ab687=_0x4bd19f[_0x429b4f(0x19a)](E),_0x33319a=_0x1ab687['getOutlines'](_0xd6d1f1[_0x429b4f(0x1ac)],_0xd6d1f1['subUnitId']);return _0x1ab687[_0x429b4f(0x214)](_0xd6d1f1[_0x429b4f(0x1ac)],_0xd6d1f1[_0x429b4f(0x242)],h(_0x33319a,_0xd6d1f1)),!0x0;}},N={'id':'sheet.command.clear-dimension-outlines','type':e['CommandType'][_0x5570cf(0x1b2)],'handler':(_0x2578c9,_0xca7665)=>{const _0x90e490=_0x5570cf;if(!_0xca7665)return!0x1;let _0x29294e=(0x0,t['getSheetCommandTarget'])(_0x2578c9[_0x90e490(0x19a)](e['IUniverInstanceService']),_0xca7665);if(!_0x29294e)return!0x1;let {unitId:_0x207717,subUnitId:_0x5cb4c6}=_0x29294e;if(!A(_0x2578c9,_0x207717,_0x5cb4c6))return!0x1;let _0x2b5dc5={'unitId':_0x207717,'subUnitId':_0x5cb4c6,'axis':_0xca7665[_0x90e490(0x263)],'start':_0xca7665['start'],'end':_0xca7665[_0x90e490(0x1f1)]},_0x41c641=_0x2578c9[_0x90e490(0x19a)](E)[_0x90e490(0x1f5)](_0x207717,_0x5cb4c6)[_0x90e490(0x228)](_0x1a9623=>d(_0x1a9623,_0x2b5dc5)&&_0x1a9623[_0x90e490(0x1d8)]>=_0xca7665[_0x90e490(0x1d8)]&&_0x1a9623['end']<=_0xca7665[_0x90e490(0x1f1)]);if(_0x41c641[_0x90e490(0x1c7)]===0x0)return _0x2578c9[_0x90e490(0x19a)](D)[_0x90e490(0x1d0)]({'reason':_0x90e490(0x20b),'commandId':N['id'],'unitId':_0x207717,'subUnitId':_0x5cb4c6,'axis':_0xca7665['axis']}),!0x1;let _0x3a853e=[{'id':M['id'],'params':{..._0x2b5dc5,'removedOutlineIds':_0x41c641[_0x90e490(0x209)](_0x42fc68=>_0x42fc68['id'])}}],_0x18ac62=_0x41c641['map'](_0x530465=>({'id':O['id'],'params':{'unitId':_0x207717,'subUnitId':_0x5cb4c6,'outline':_0x530465}}));return(0x0,e['sequenceExecute'])(_0x3a853e,_0x2578c9['get'](e['ICommandService']))['result']?(_0x2578c9[_0x90e490(0x19a)](e[_0x90e490(0x236)])[_0x90e490(0x246)]({'unitID':_0x207717,'undoMutations':_0x18ac62,'redoMutations':_0x3a853e}),!0x0):!0x1;}},P={'id':_0x5570cf(0x1ce),'type':e[_0x5570cf(0x1f4)][_0x5570cf(0x1b2)],'handler':(_0x3d5a44,_0x4f1aad)=>{const _0x11b9b5=_0x5570cf;if(!_0x4f1aad)return!0x1;let _0x562949=(0x0,t[_0x11b9b5(0x217)])(_0x3d5a44[_0x11b9b5(0x19a)](e[_0x11b9b5(0x1bb)]),_0x4f1aad);if(!_0x562949)return!0x1;let {unitId:_0x824d3c,subUnitId:_0x7aae48}=_0x562949;if(!A(_0x3d5a44,_0x824d3c,_0x7aae48))return!0x1;let _0x15da0c=_0x3d5a44[_0x11b9b5(0x19a)](E)[_0x11b9b5(0x1f5)](_0x824d3c,_0x7aae48)[_0x11b9b5(0x1ef)](_0x8dc4e=>_0x8dc4e['id']===_0x4f1aad[_0x11b9b5(0x194)]);if(!_0x15da0c)return!0x1;let _0x122c42=[{'id':k['id'],'params':{'unitId':_0x824d3c,'subUnitId':_0x7aae48,'outlineId':_0x15da0c['id'],'outline':_0x15da0c}}],_0x2f1408=[{'id':O['id'],'params':{'unitId':_0x824d3c,'subUnitId':_0x7aae48,'outline':_0x15da0c}}];return(0x0,e[_0x11b9b5(0x1d4)])(_0x122c42,_0x3d5a44[_0x11b9b5(0x19a)](e[_0x11b9b5(0x1f7)]))[_0x11b9b5(0x1fe)]?(_0x3d5a44[_0x11b9b5(0x19a)](e[_0x11b9b5(0x236)])[_0x11b9b5(0x246)]({'unitID':_0x824d3c,'undoMutations':_0x2f1408,'redoMutations':_0x122c42}),!0x0):!0x1;}},F={'id':'sheet.mutation.set-dimension-outline-collapsed','type':e[_0x5570cf(0x1f4)][_0x5570cf(0x1a4)],'handler':(_0x4881a8,_0x2ed492)=>{const _0x987927=_0x5570cf;let _0x305915=_0x4881a8['get'](E),_0xb0eee7=_0x305915['getOutlines'](_0x2ed492['unitId'],_0x2ed492[_0x987927(0x242)]),_0x1379e0=_0xb0eee7[_0x987927(0x1ef)](_0x538843=>_0x538843['id']===_0x2ed492['outlineId']);return _0x1379e0&&_0x305915['setOutlines'](_0x2ed492['unitId'],_0x2ed492[_0x987927(0x242)],_0xb0eee7[_0x987927(0x209)](_0x4b43bf=>_0x4b43bf['unitId']!==_0x1379e0[_0x987927(0x1ac)]||_0x4b43bf['subUnitId']!==_0x1379e0[_0x987927(0x242)]||_0x4b43bf[_0x987927(0x263)]!==_0x1379e0[_0x987927(0x263)]||_0x4b43bf[_0x987927(0x1d8)]!==_0x1379e0[_0x987927(0x1d8)]||_0x4b43bf[_0x987927(0x1f1)]!==_0x1379e0[_0x987927(0x1f1)]?_0x4b43bf:{..._0x4b43bf,'collapsed':_0x2ed492[_0x987927(0x21d)]})),!0x0;}};function I(_0x1f30e8,_0x1a807d,_0x3b98a8,_0xb7fc0f){const _0x350d49=_0x5570cf;return _0x1f30e8==='row'?{'startRow':_0x1a807d,'endRow':_0x3b98a8,'startColumn':0x0,'endColumn':_0xb7fc0f[_0x350d49(0x223)]()-0x1}:{'startRow':0x0,'endRow':_0xb7fc0f[_0x350d49(0x1ee)]()-0x1,'startColumn':_0x1a807d,'endColumn':_0x3b98a8};}function pe(_0x231ddc){const _0x23d2ec=_0x5570cf;return _0x231ddc===_0x23d2ec(0x1e3)?t[_0x23d2ec(0x1ca)]['id']:t[_0x23d2ec(0x226)]['id'];}function me(_0x491386){const _0x239d61=_0x5570cf;return _0x491386===_0x239d61(0x1e3)?t[_0x239d61(0x1ff)]['id']:t[_0x239d61(0x18c)]['id'];}function L(_0x1cbd80,_0x2c37d3,_0x2ad601,_0x3ce667){const _0xf816ff=_0x5570cf;let _0x8b6584=_0x2c37d3?[I(_0x1cbd80[_0xf816ff(0x263)],_0x1cbd80['start'],_0x1cbd80[_0xf816ff(0x1f1)],_0x2ad601)]:he(_0x1cbd80,_0x3ce667,_0x2ad601),_0x449ade=_0x2c37d3?pe(_0x1cbd80[_0xf816ff(0x263)]):me(_0x1cbd80[_0xf816ff(0x263)]);return[{'id':F['id'],'params':{'unitId':_0x1cbd80[_0xf816ff(0x1ac)],'subUnitId':_0x1cbd80['subUnitId'],'outlineId':_0x1cbd80['id'],'outline':_0x1cbd80,'collapsed':_0x2c37d3}},..._0x8b6584[_0xf816ff(0x209)](_0x396624=>({'id':_0x449ade,'params':{'unitId':_0x1cbd80[_0xf816ff(0x1ac)],'subUnitId':_0x1cbd80[_0xf816ff(0x242)],'ranges':[_0x396624],'dimensionOutlineId':_0x1cbd80['id']}}))];}function he(_0x5d6583,_0x157819,_0x2339b8){const _0x20aaa1=_0x5570cf;let _0x3d61fd=g(_0x157819[_0x20aaa1(0x209)](_0x233dd9=>R(_0x233dd9,_0x5d6583)?{..._0x233dd9,'collapsed':!0x1}:_0x233dd9),_0x5d6583['unitId'],_0x5d6583[_0x20aaa1(0x242)],_0x5d6583[_0x20aaa1(0x263)]);return ge({'start':_0x5d6583[_0x20aaa1(0x1d8)],'end':_0x5d6583[_0x20aaa1(0x1f1)]},_0x3d61fd)[_0x20aaa1(0x209)](_0x5e3385=>I(_0x5d6583[_0x20aaa1(0x263)],_0x5e3385[_0x20aaa1(0x1d8)],_0x5e3385['end'],_0x2339b8));}function R(_0x5edcfb,_0x24f1a0){const _0x2732f3=_0x5570cf;return _0x5edcfb[_0x2732f3(0x1ac)]===_0x24f1a0[_0x2732f3(0x1ac)]&&_0x5edcfb[_0x2732f3(0x242)]===_0x24f1a0[_0x2732f3(0x242)]&&_0x5edcfb[_0x2732f3(0x263)]===_0x24f1a0[_0x2732f3(0x263)]&&_0x5edcfb[_0x2732f3(0x1d8)]===_0x24f1a0[_0x2732f3(0x1d8)]&&_0x5edcfb[_0x2732f3(0x1f1)]===_0x24f1a0[_0x2732f3(0x1f1)];}function ge(_0x252646,_0x3ce6b6){const _0x4f476f=_0x5570cf;let _0x143b71=_0x252646[_0x4f476f(0x1d8)],_0x56b95f=[];for(let _0x325a51 of _0x3ce6b6)if(!(_0x325a51[_0x4f476f(0x1f1)]<_0x143b71||_0x325a51[_0x4f476f(0x1d8)]>_0x252646[_0x4f476f(0x1f1)])&&(_0x325a51[_0x4f476f(0x1d8)]>_0x143b71&&_0x56b95f['push']({'start':_0x143b71,'end':Math[_0x4f476f(0x19d)](_0x325a51[_0x4f476f(0x1d8)]-0x1,_0x252646[_0x4f476f(0x1f1)])}),_0x143b71=Math[_0x4f476f(0x23f)](_0x143b71,_0x325a51[_0x4f476f(0x1f1)]+0x1),_0x143b71>_0x252646[_0x4f476f(0x1f1)]))break;return _0x143b71<=_0x252646['end']&&_0x56b95f[_0x4f476f(0x1ab)]({'start':_0x143b71,'end':_0x252646[_0x4f476f(0x1f1)]}),_0x56b95f;}const z={'id':_0x5570cf(0x234),'type':e[_0x5570cf(0x1f4)][_0x5570cf(0x1b2)],'handler':(_0xfa3f70,_0x500041)=>{const _0x89b28b=_0x5570cf;if(!_0x500041)return!0x1;let _0x464afa=(0x0,t['getSheetCommandTarget'])(_0xfa3f70[_0x89b28b(0x19a)](e[_0x89b28b(0x1bb)]),_0x500041);if(!_0x464afa)return!0x1;let {unitId:_0x4161b3,subUnitId:_0x387cbd,worksheet:_0x33c6f9}=_0x464afa;if(!A(_0xfa3f70,_0x4161b3,_0x387cbd))return!0x1;let _0x3b3ba9=_0xfa3f70[_0x89b28b(0x19a)](E)['getOutlines'](_0x4161b3,_0x387cbd),_0x17763c=_0x3b3ba9[_0x89b28b(0x1ef)](_0x5ca565=>_0x5ca565['id']===_0x500041['outlineId']);if(!_0x17763c||_0x17763c[_0x89b28b(0x21d)]===_0x500041[_0x89b28b(0x21d)])return!0x1;let _0xa09f60=L(_0x17763c,_0x500041[_0x89b28b(0x21d)],_0x33c6f9,_0x3b3ba9),_0x987761=L(_0x17763c,!_0x500041[_0x89b28b(0x21d)],_0x33c6f9,_0x3b3ba9);return(0x0,e[_0x89b28b(0x1d4)])(_0xa09f60,_0xfa3f70[_0x89b28b(0x19a)](e[_0x89b28b(0x1f7)]))['result']?(_0xfa3f70[_0x89b28b(0x19a)](e[_0x89b28b(0x236)])[_0x89b28b(0x246)]({'unitID':_0x4161b3,'undoMutations':_0x987761,'redoMutations':_0xa09f60}),!0x0):!0x1;}},B={'id':_0x5570cf(0x192),'type':e[_0x5570cf(0x1f4)][_0x5570cf(0x1a4)],'handler':(_0x33aabe,_0x3b15b8)=>{const _0x3341be=_0x5570cf;let _0x5eda75=_0x33aabe[_0x3341be(0x19a)](E),_0x2bd367=_e(_0x5eda75[_0x3341be(0x1f5)](_0x3b15b8['unitId'],_0x3b15b8[_0x3341be(0x242)]),_0x3b15b8);return _0x5eda75[_0x3341be(0x214)](_0x3b15b8[_0x3341be(0x1ac)],_0x3b15b8[_0x3341be(0x242)],_0x2bd367),!0x0;}};function _e(_0x5d020e,_0xa23991){const _0x359dd2=_0x5570cf;switch(_0xa23991[_0x359dd2(0x225)]){case'insert':return _0xa23991['restoreOutlines']?ve(_0x5d020e,_0xa23991):v(_0x5d020e,_0xa23991);case _0x359dd2(0x25f):return y(_0x5d020e,_0xa23991);case _0x359dd2(0x24b):return b(_0x5d020e,_0xa23991);}}function ve(_0x5e42a9,_0x27b2c7){const _0x4c440e=_0x5570cf;return[..._0x5e42a9[_0x4c440e(0x228)](_0x67517=>_0x67517[_0x4c440e(0x1ac)]!==_0x27b2c7[_0x4c440e(0x1ac)]||_0x67517['subUnitId']!==_0x27b2c7[_0x4c440e(0x242)]||_0x67517[_0x4c440e(0x263)]!==_0x27b2c7[_0x4c440e(0x263)]),..._0x27b2c7[_0x4c440e(0x19c)]];}const V=_0x5570cf(0x221);var ye=_0x5570cf(0x1a5),be='1.0.0';const H={};function U(_0x20910c,_0x4c2c22){return function(_0x71a87a,_0x39438b){_0x4c2c22(_0x71a87a,_0x39438b,_0x20910c);};}function W(_0x384884,_0x95ad8b,_0xc405d,_0x486ce0){const _0xbf0f53=_0x5570cf;var _0x37bcf7=arguments[_0xbf0f53(0x1c7)],_0x5d8db2=_0x37bcf7<0x3?_0x95ad8b:_0x486ce0===null?_0x486ce0=Object[_0xbf0f53(0x1ad)](_0x95ad8b,_0xc405d):_0x486ce0,_0x49a0cf;if(typeof Reflect=='object'&&typeof Reflect[_0xbf0f53(0x1c5)]==_0xbf0f53(0x216))_0x5d8db2=Reflect[_0xbf0f53(0x1c5)](_0x384884,_0x95ad8b,_0xc405d,_0x486ce0);else{for(var _0x5aeca3=_0x384884[_0xbf0f53(0x1c7)]-0x1;_0x5aeca3>=0x0;_0x5aeca3--)(_0x49a0cf=_0x384884[_0x5aeca3])&&(_0x5d8db2=(_0x37bcf7<0x3?_0x49a0cf(_0x5d8db2):_0x37bcf7>0x3?_0x49a0cf(_0x95ad8b,_0xc405d,_0x5d8db2):_0x49a0cf(_0x95ad8b,_0xc405d))||_0x5d8db2);}return _0x37bcf7>0x3&&_0x5d8db2&&Object[_0xbf0f53(0x1d3)](_0x95ad8b,_0xc405d,_0x5d8db2),_0x5d8db2;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e['Disposable']{constructor(_0x193b90,_0x44ef36,_0x34bebc,_0x2b264f){const _0x3d2d90=_0x5570cf;super(),this[_0x3d2d90(0x1e8)]=_0x193b90,this[_0x3d2d90(0x206)]=_0x44ef36,this[_0x3d2d90(0x1c2)]=_0x34bebc,this[_0x3d2d90(0x1b7)]=_0x2b264f,this[_0x3d2d90(0x229)]();}[_0x5570cf(0x229)](){const _0x5b5f76=_0x5570cf;this[_0x5b5f76(0x230)](this[_0x5b5f76(0x206)][_0x5b5f76(0x24a)]({'getMutations':_0x4fe67f=>xe(_0x4fe67f,(_0xada7e5,_0x4e0767)=>this[_0x5b5f76(0x1c2)]['getOutlines'](_0xada7e5,_0x4e0767),this[_0x5b5f76(0x238)](_0x4fe67f[_0x5b5f76(0x1db)]),_0x490ea0=>this[_0x5b5f76(0x1b7)]['emit'](_0x490ea0))}));}[_0x5570cf(0x238)](_0xd60398){const _0x41068c=_0x5570cf;let _0x136d45=_0xd60398,_0x49effd=_0x136d45!=null&&_0x136d45['unitId']?this[_0x41068c(0x1e8)][_0x41068c(0x18e)](_0x136d45['unitId'],e['UniverInstanceType'][_0x41068c(0x1f2)]):this[_0x41068c(0x1e8)][_0x41068c(0x18f)](e[_0x41068c(0x1c6)]['UNIVER_SHEET']);if(!_0x49effd)return;let _0x464594=_0x136d45!=null&&_0x136d45['subUnitId']?_0x49effd['getSheetBySheetId'](_0x136d45[_0x41068c(0x242)]):_0x49effd[_0x41068c(0x18b)]();if(_0x464594)return{'unitId':_0x49effd[_0x41068c(0x1df)](),'subUnitId':_0x464594[_0x41068c(0x1fd)]()};}};K=W([U(0x0,e[_0x5570cf(0x1bb)]),U(0x1,(0x0,e[_0x5570cf(0x1a0)])(t[_0x5570cf(0x1b6)])),U(0x2,(0x0,e[_0x5570cf(0x1a0)])(E)),U(0x3,(0x0,e[_0x5570cf(0x1a0)])(D))],K);function xe(_0x29bb9b,_0x31a58b,_0x58cb96,_0x336486){const _0x213794=_0x5570cf;let _0x323c2b=Ce(_0x29bb9b,_0x58cb96);if(!_0x323c2b)return Z();let _0x56a436=_0x31a58b(_0x323c2b[_0x213794(0x1ac)],_0x323c2b[_0x213794(0x242)]);if(!_0x56a436['some'](_0x6f8fb1=>_0x6f8fb1[_0x213794(0x263)]===_0x323c2b[_0x213794(0x263)]))return Z();Se(_0x56a436,_0x323c2b,_0x29bb9b['id'],_0x336486);let _0xb833a5=we(_0x323c2b,_0x56a436);return{'redos':[{'id':B['id'],'params':_0x323c2b}],'undos':[{'id':B['id'],'params':_0xb833a5}],'preRedos':[],'preUndos':[]};}function Se(_0x315ecc,_0x42be26,_0x41b44b,_0x412fe6){const _0x4b88c7=_0x5570cf;try{switch(_0x42be26[_0x4b88c7(0x225)]){case _0x4b88c7(0x25e):v(_0x315ecc,_0x42be26);break;case'delete':y(_0x315ecc,_0x42be26);break;case _0x4b88c7(0x24b):b(_0x315ecc,_0x42be26);}}catch(_0x19534f){throw _0x412fe6==null||_0x412fe6({'reason':c(_0x19534f),'commandId':_0x41b44b,'unitId':_0x42be26[_0x4b88c7(0x1ac)],'subUnitId':_0x42be26[_0x4b88c7(0x242)],'axis':_0x42be26[_0x4b88c7(0x263)],'outlineId':l(_0x19534f)}),new e[(_0x4b88c7(0x218))](_0x19534f instanceof Error?_0x19534f[_0x4b88c7(0x1c9)]:'Invalid\x20dimension\x20outline\x20mutation');}}function Ce(_0x2655bd,_0x38ab2){const _0x2382e0=_0x5570cf;switch(_0x2655bd['id']){case t[_0x2382e0(0x1d6)]['id']:return q(_0x2655bd[_0x2382e0(0x1db)],'row',_0x38ab2);case t[_0x2382e0(0x1d7)]['id']:return q(_0x2655bd[_0x2382e0(0x1db)],'column',_0x38ab2);case t[_0x2382e0(0x1c1)]['id']:return J(_0x2655bd[_0x2382e0(0x1db)],_0x2382e0(0x1e3),_0x38ab2);case t[_0x2382e0(0x20a)]['id']:return J(_0x2655bd[_0x2382e0(0x1db)],_0x2382e0(0x1cf),_0x38ab2);case t[_0x2382e0(0x205)]['id']:return Y(_0x2655bd[_0x2382e0(0x1db)],_0x2382e0(0x1e3),_0x38ab2);case t[_0x2382e0(0x227)]['id']:return Y(_0x2655bd[_0x2382e0(0x1db)],_0x2382e0(0x1cf),_0x38ab2);default:return null;}}function q(_0x30aa2a,_0x2d8aaf,_0x234b53){const _0x4a4aa4=_0x5570cf;let _0x89bb3c=X(_0x30aa2a,_0x234b53);if(!(_0x30aa2a!=null&&_0x30aa2a['range'])||!_0x89bb3c)return null;let _0x1af291=_0x2d8aaf===_0x4a4aa4(0x1e3)?_0x30aa2a[_0x4a4aa4(0x212)][_0x4a4aa4(0x1dd)]:_0x30aa2a[_0x4a4aa4(0x212)][_0x4a4aa4(0x240)],_0x310680=_0x2d8aaf==='row'?_0x30aa2a[_0x4a4aa4(0x212)]['endRow']:_0x30aa2a['range'][_0x4a4aa4(0x251)];return{..._0x89bb3c,'axis':_0x2d8aaf,'type':'insert','index':_0x1af291,'count':_0x310680-_0x1af291+0x1};}function J(_0x23a373,_0x7d8c32,_0xa5b016){const _0x5999ce=_0x5570cf;let _0x1f7949=X(_0x23a373,_0xa5b016);if(!(_0x23a373!=null&&_0x23a373[_0x5999ce(0x212)])||!_0x1f7949)return null;let _0x4095fc=_0x7d8c32===_0x5999ce(0x1e3)?_0x23a373[_0x5999ce(0x212)]['startRow']:_0x23a373[_0x5999ce(0x212)][_0x5999ce(0x240)],_0x148516=_0x7d8c32===_0x5999ce(0x1e3)?_0x23a373[_0x5999ce(0x212)][_0x5999ce(0x254)]:_0x23a373[_0x5999ce(0x212)][_0x5999ce(0x251)];return{..._0x1f7949,'axis':_0x7d8c32,'type':_0x5999ce(0x25f),'start':_0x4095fc,'end':_0x148516};}function Y(_0x2ef4b5,_0x3a656e,_0x22d38c){const _0x53429c=_0x5570cf;let _0x1c9395=X(_0x2ef4b5,_0x22d38c);if(!(_0x2ef4b5!=null&&_0x2ef4b5[_0x53429c(0x1de)])||!_0x2ef4b5[_0x53429c(0x188)]||!_0x1c9395)return null;let _0x3f6b4c=_0x3a656e===_0x53429c(0x1e3)?_0x2ef4b5[_0x53429c(0x1de)]['startRow']:_0x2ef4b5[_0x53429c(0x1de)][_0x53429c(0x240)],_0x21d3b4=_0x3a656e===_0x53429c(0x1e3)?_0x2ef4b5[_0x53429c(0x1de)][_0x53429c(0x254)]:_0x2ef4b5[_0x53429c(0x1de)]['endColumn'],_0x2439e5=_0x3a656e==='row'?_0x2ef4b5[_0x53429c(0x188)][_0x53429c(0x1dd)]:_0x2ef4b5['toRange'][_0x53429c(0x240)];return{..._0x1c9395,'axis':_0x3a656e,'type':_0x53429c(0x24b),'sourceStart':_0x3f6b4c,'sourceEnd':_0x21d3b4,'destinationIndex':_0x2439e5};}function we(_0x14bf4e,_0x4c9e90){const _0x496e22=_0x5570cf;switch(_0x14bf4e['type']){case _0x496e22(0x25e):return{'unitId':_0x14bf4e[_0x496e22(0x1ac)],'subUnitId':_0x14bf4e[_0x496e22(0x242)],'axis':_0x14bf4e[_0x496e22(0x263)],'type':_0x496e22(0x25f),'start':_0x14bf4e[_0x496e22(0x21b)],'end':_0x14bf4e[_0x496e22(0x21b)]+_0x14bf4e[_0x496e22(0x20f)]-0x1};case _0x496e22(0x25f):return{'unitId':_0x14bf4e[_0x496e22(0x1ac)],'subUnitId':_0x14bf4e[_0x496e22(0x242)],'axis':_0x14bf4e[_0x496e22(0x263)],'type':_0x496e22(0x25e),'index':_0x14bf4e[_0x496e22(0x1d8)],'count':_0x14bf4e['end']-_0x14bf4e[_0x496e22(0x1d8)]+0x1,'restoreOutlines':_0x4c9e90[_0x496e22(0x228)](_0x1d16b6=>_0x1d16b6[_0x496e22(0x1ac)]===_0x14bf4e[_0x496e22(0x1ac)]&&_0x1d16b6[_0x496e22(0x242)]===_0x14bf4e[_0x496e22(0x242)]&&_0x1d16b6['axis']===_0x14bf4e[_0x496e22(0x263)])};case _0x496e22(0x24b):return Te(_0x14bf4e);}}function Te(_0x15664b){const _0x40bdd2=_0x5570cf;let _0x93111a=_0x15664b[_0x40bdd2(0x20e)]-_0x15664b['sourceStart']+0x1;return _0x15664b[_0x40bdd2(0x210)]>=_0x15664b['sourceStart']&&_0x15664b[_0x40bdd2(0x210)]<=_0x15664b[_0x40bdd2(0x20e)]+0x1?{..._0x15664b}:_0x15664b['destinationIndex']>_0x15664b['sourceEnd']+0x1?{..._0x15664b,'sourceStart':_0x15664b[_0x40bdd2(0x210)]-_0x93111a,'sourceEnd':_0x15664b[_0x40bdd2(0x210)]-0x1,'destinationIndex':_0x15664b[_0x40bdd2(0x23d)]}:{..._0x15664b,'sourceStart':_0x15664b['destinationIndex'],'sourceEnd':_0x15664b[_0x40bdd2(0x210)]+_0x93111a-0x1,'destinationIndex':_0x15664b[_0x40bdd2(0x20e)]+0x1};}function X(_0xadfe78,_0x577cc8){const _0x455856=_0x5570cf;let _0x4496af=(_0xadfe78==null?void 0x0:_0xadfe78['unitId'])??(_0x577cc8==null?void 0x0:_0x577cc8[_0x455856(0x1ac)]),_0x5a2cd0=(_0xadfe78==null?void 0x0:_0xadfe78['subUnitId'])??(_0x577cc8==null?void 0x0:_0x577cc8[_0x455856(0x242)]);return _0x4496af&&_0x5a2cd0?{'unitId':_0x4496af,'subUnitId':_0x5a2cd0}:null;}function Z(){const _0x23d714=_0x5570cf;return{'redos':[...G[_0x23d714(0x21e)]],'undos':[...G[_0x23d714(0x1a3)]],'preRedos':[...G[_0x23d714(0x19f)]??[]],'preUndos':[...G[_0x23d714(0x1a2)]??[]]};}let Q=class extends e[_0x5570cf(0x189)]{constructor(_0x191151,_0x3506a8){const _0x2efe9e=_0x5570cf;super(),this[_0x2efe9e(0x1af)]=_0x191151,this[_0x2efe9e(0x1c2)]=_0x3506a8,this[_0x2efe9e(0x1f3)]();}[_0x5570cf(0x1f3)](){const _0x149b9d=_0x5570cf;this[_0x149b9d(0x230)](this[_0x149b9d(0x1af)][_0x149b9d(0x261)]({'pluginName':V,'businesses':[e[_0x149b9d(0x1c6)][_0x149b9d(0x1f2)]],'toJson':_0x2514b1=>JSON[_0x149b9d(0x219)](this[_0x149b9d(0x1c2)][_0x149b9d(0x1aa)](_0x2514b1)),'parseJson':_0x2abe58=>JSON[_0x149b9d(0x1e2)](_0x2abe58),'onLoad':(_0x1b30d8,_0x4fc4b7)=>this['_sheetsOutlineModel'][_0x149b9d(0x1fc)](_0x1b30d8,_0x4fc4b7),'onUnLoad':_0x131306=>this['_sheetsOutlineModel']['removeUnit'](_0x131306)}));}};Q=W([U(0x0,e[_0x5570cf(0x207)]),U(0x1,(0x0,e[_0x5570cf(0x1a0)])(E))],Q);let $=class extends e[_0x5570cf(0x23e)]{constructor(_0x417a86=H,_0x579f6b,_0xaf24cb,_0x1c1ec9){const _0xe12848=_0x5570cf;super(),this['_config']=_0x417a86,this[_0xe12848(0x19e)]=_0x579f6b,this[_0xe12848(0x21f)]=_0xaf24cb,this[_0xe12848(0x21a)]=_0x1c1ec9;let {..._0x4aacff}=(0x0,e[_0xe12848(0x241)])({},H,this['_config']);this['_configService']['setConfig']('sheets-outline.config',_0x4aacff);}['onStarting'](){const _0x1c485b=_0x5570cf;this[_0x1c485b(0x19e)][_0x1c485b(0x1b4)]([E]),this[_0x1c485b(0x19e)][_0x1c485b(0x1b4)]([D]),this[_0x1c485b(0x19e)][_0x1c485b(0x1b4)]([Q]),this[_0x1c485b(0x19e)][_0x1c485b(0x1b4)]([K]),this['_initRegisterCommand'](),this[_0x1c485b(0x19e)]['get'](E),this['_injector'][_0x1c485b(0x19a)](D),this[_0x1c485b(0x19e)][_0x1c485b(0x19a)](Q),this[_0x1c485b(0x19e)]['get'](K);}['_initRegisterCommand'](){const _0x50bfa6=_0x5570cf;[j,P,z,N][_0x50bfa6(0x1f9)](_0x2c56b0=>{const _0x189a58=_0x50bfa6;this[_0x189a58(0x230)](this[_0x189a58(0x21f)][_0x189a58(0x257)](_0x2c56b0));}),[O,k,F,M,B][_0x50bfa6(0x1f9)](_0x57e38c=>{const _0x2b50f6=_0x50bfa6;this[_0x2b50f6(0x230)](this['_commandService'][_0x2b50f6(0x257)](_0x57e38c));});}};T($,_0x5570cf(0x1e1),V),T($,_0x5570cf(0x24c),ye),T($,_0x5570cf(0x250),be),T($,'type',e[_0x5570cf(0x1c6)]['UNIVER_SHEET']),$=W([(0x0,e[_0x5570cf(0x25a)])(i[_0x5570cf(0x190)],t[_0x5570cf(0x1d1)]),U(0x1,(0x0,e['Inject'])(e[_0x5570cf(0x25c)])),U(0x2,e[_0x5570cf(0x1f7)]),U(0x3,e[_0x5570cf(0x1bf)])],$),exports[_0x5570cf(0x24e)]=j,exports[_0x5570cf(0x22e)]=O,exports[_0x5570cf(0x1d5)]=N,exports['ClearDimensionOutlinesMutation']=M,exports[_0x5570cf(0x224)]=a,exports[_0x5570cf(0x1a7)]=o,exports[_0x5570cf(0x203)]=P,exports[_0x5570cf(0x256)]=k,exports[_0x5570cf(0x221)]=V,exports[_0x5570cf(0x23c)]=z,exports[_0x5570cf(0x201)]=F,exports[_0x5570cf(0x244)]=D,exports[_0x5570cf(0x187)]=E,exports[_0x5570cf(0x22b)]=B,Object['defineProperty'](exports,_0x5570cf(0x262),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x5570cf(0x237)]=f,exports['canAddDimensionOutline']=p,exports['getDimensionOutlineViewPermission$']=ue,exports[_0x5570cf(0x1e4)]=A,exports[_0x5570cf(0x222)]=y,exports['transformOutlinesByInsert']=v,exports[_0x5570cf(0x1c3)]=b;
|
|
1
|
+
const _0x48b523=_0x3157;(function(_0x4aa2ec,_0x4c8a64){const _0x3fc1d9=_0x3157,_0x3c71b0=_0x4aa2ec();while(!![]){try{const _0x5d35cb=-parseInt(_0x3fc1d9(0x1fe))/0x1+parseInt(_0x3fc1d9(0x191))/0x2*(-parseInt(_0x3fc1d9(0x1f7))/0x3)+-parseInt(_0x3fc1d9(0x1c5))/0x4*(parseInt(_0x3fc1d9(0x187))/0x5)+-parseInt(_0x3fc1d9(0x21d))/0x6*(-parseInt(_0x3fc1d9(0x205))/0x7)+parseInt(_0x3fc1d9(0x18c))/0x8*(parseInt(_0x3fc1d9(0x1c4))/0x9)+-parseInt(_0x3fc1d9(0x177))/0xa+parseInt(_0x3fc1d9(0x1e9))/0xb;if(_0x5d35cb===_0x4c8a64)break;else _0x3c71b0['push'](_0x3c71b0['shift']());}catch(_0x3e6fe3){_0x3c71b0['push'](_0x3c71b0['shift']());}}}(_0x17e6,0x2078f),Object[_0x48b523(0x1f5)](exports,Symbol[_0x48b523(0x16a)],{'value':_0x48b523(0x1e6)}));let e=require('@univerjs/core'),t=require('@univerjs/sheets'),n=require('rxjs'),r=require('rxjs/operators'),i=require('@univerjs-pro/license'),a=function(_0x518bae){const _0x5cbf44=_0x48b523;return _0x518bae[_0x5cbf44(0x207)]='row',_0x518bae[_0x5cbf44(0x1f9)]=_0x5cbf44(0x1bf),_0x518bae;}({}),o=function(_0x338007){const _0x23e58a=_0x48b523;return _0x338007[_0x23e58a(0x1ee)]=_0x23e58a(0x193),_0x338007['OUT_OF_BOUNDS']='out-of-bounds',_0x338007[_0x23e58a(0x1c7)]=_0x23e58a(0x20e),_0x338007[_0x23e58a(0x23f)]=_0x23e58a(0x23c),_0x338007[_0x23e58a(0x1d7)]='move-splits-outline',_0x338007[_0x23e58a(0x19e)]='clear-range-not-contain-outline',_0x338007['UNKNOWN']=_0x23e58a(0x1cc),_0x338007;}({});var s=class extends Error{constructor(_0x492bf6,_0x4b7abf,_0x449641){const _0x21d330=_0x48b523;super(_0x4b7abf),this['reason']=_0x492bf6,this['outlineId']=_0x449641,this[_0x21d330(0x1d0)]=_0x21d330(0x22a);}};function c(_0x4a96b3){const _0x4bc490=_0x48b523;return _0x4a96b3 instanceof s?_0x4a96b3[_0x4bc490(0x16f)]:_0x4a96b3 instanceof Error?_0x4a96b3['message']['includes'](_0x4bc490(0x232))?_0x4bc490(0x1a6):_0x4a96b3[_0x4bc490(0x210)]['includes'](_0x4bc490(0x16e))?_0x4bc490(0x23c):_0x4a96b3[_0x4bc490(0x210)][_0x4bc490(0x1ca)]('Crossing')?_0x4bc490(0x20e):_0x4a96b3[_0x4bc490(0x210)][_0x4bc490(0x1ca)]('range')?_0x4bc490(0x193):_0x4bc490(0x1cc):_0x4bc490(0x1cc);}function l(_0x20b76a){const _0x435056=_0x48b523;return _0x20b76a instanceof s?_0x20b76a[_0x435056(0x223)]:void 0x0;}const u=0x2**0x35-0x1;function d(_0x209a5e,_0x181d58){const _0x347a7c=_0x48b523;return _0x209a5e[_0x347a7c(0x16d)]===_0x181d58['unitId']&&_0x209a5e[_0x347a7c(0x20f)]===_0x181d58[_0x347a7c(0x20f)]&&_0x209a5e[_0x347a7c(0x217)]===_0x181d58['axis'];}function f(_0x2ea40f,_0x7df242={}){const _0x2bc0e9=_0x48b523;let _0x3ce275=_0x7df242[_0x2bc0e9(0x206)]??0x8,_0x5bf73c=new Map();for(let _0x50b1c2 of _0x2ea40f){let _0x46094a=_0x50b1c2[_0x2bc0e9(0x16d)]+':'+_0x50b1c2[_0x2bc0e9(0x20f)]+':'+_0x50b1c2[_0x2bc0e9(0x217)],_0x6d3950=_0x5bf73c[_0x2bc0e9(0x22e)](_0x46094a);_0x6d3950?_0x6d3950[_0x2bc0e9(0x23b)](_0x50b1c2):_0x5bf73c[_0x2bc0e9(0x202)](_0x46094a,[_0x50b1c2]);}let _0x450212=[];for(let _0x138f46 of _0x5bf73c[_0x2bc0e9(0x22d)]()){let _0x2e8922=[..._0x138f46]['sort'](S),_0x5730c0=[];for(let _0x45833c of _0x2e8922){for(se(_0x45833c);_0x5730c0[_0x2bc0e9(0x1ab)]>0x0&&_0x45833c[_0x2bc0e9(0x1d1)]>_0x5730c0[_0x5730c0[_0x2bc0e9(0x1ab)]-0x1][_0x2bc0e9(0x17e)];)_0x5730c0['pop']();let _0x1ff447=_0x5730c0[_0x5730c0[_0x2bc0e9(0x1ab)]-0x1];if(_0x1ff447&&_0x45833c[_0x2bc0e9(0x17e)]>_0x1ff447[_0x2bc0e9(0x17e)])throw new s(_0x2bc0e9(0x20e),_0x2bc0e9(0x1e3),_0x45833c['id']);let _0x105ad4=_0x1ff447?_0x1ff447[_0x2bc0e9(0x16e)]+0x1:0x1;if(_0x105ad4>_0x3ce275)throw new s(_0x2bc0e9(0x23c),'Dimension\x20outline\x20depth\x20cannot\x20exceed\x20'+_0x3ce275,_0x45833c['id']);let _0x1da35a={..._0x45833c,'depth':_0x105ad4,'parentId':_0x1ff447==null?void 0x0:_0x1ff447['id'],'anchor':_0x45833c[_0x2bc0e9(0x17e)],'children':[]};_0x1ff447?_0x1ff447[_0x2bc0e9(0x1c3)][_0x2bc0e9(0x23b)](_0x1da35a):_0x450212[_0x2bc0e9(0x23b)](_0x1da35a),_0x5730c0[_0x2bc0e9(0x23b)](_0x1da35a);}}return _0x450212;}function p(_0x350997,_0xd05f64,_0x3876ef={}){const _0x57c677=_0x48b523;if(_0xd05f64[_0x57c677(0x1d1)]<0x0||_0xd05f64['start']>_0xd05f64[_0x57c677(0x17e)])return{'valid':!0x1,'reason':'invalid-range'};if(_0x3876ef[_0x57c677(0x1a5)]!=null&&_0xd05f64['end']>=_0x3876ef[_0x57c677(0x1a5)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x4c95af=_0x350997['filter'](_0x49082b=>d(_0x49082b,_0xd05f64));for(let _0x910038 of _0x4c95af)if(C(_0x910038,_0xd05f64))return{'valid':!0x1,'reason':_0x57c677(0x20e)};try{f([..._0x350997,_0xd05f64],_0x3876ef);}catch(_0x34b197){let _0x31af2d=c(_0x34b197);return _0x31af2d==='max-depth'?{'valid':!0x1,'reason':_0x57c677(0x23c)}:_0x31af2d===_0x57c677(0x193)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':_0x57c677(0x20e)};}return{'valid':!0x0};}function m(_0x3da1be,_0x4545e0,_0x53b6b2={}){const _0xfeae6e=_0x48b523;let _0x3e1831=p(_0x3da1be,_0x4545e0,_0x53b6b2);if(!_0x3e1831[_0xfeae6e(0x175)])throw Error(_0x3e1831['reason']??_0xfeae6e(0x1d9));return[..._0x3da1be,_0x4545e0];}function ee(_0x21d678,_0x2ec0bc){const _0x4b8078=_0x48b523;let _0x38feb1=_0x2ec0bc[_0x4b8078(0x1d1)],_0x1a5a21=_0x2ec0bc[_0x4b8078(0x17e)],_0x28e0c8=[],_0x3d8221=!0x0;for(;_0x3d8221;){_0x3d8221=!0x1;for(let _0xe5bd02 of _0x21d678)!_0x28e0c8[_0x4b8078(0x1ca)](_0xe5bd02)&&d(_0xe5bd02,_0x2ec0bc)&&ae(_0xe5bd02['start'],_0xe5bd02[_0x4b8078(0x17e)],_0x38feb1,_0x1a5a21)&&(_0x28e0c8[_0x4b8078(0x23b)](_0xe5bd02),_0x38feb1=Math['min'](_0x38feb1,_0xe5bd02[_0x4b8078(0x1d1)]),_0x1a5a21=Math['max'](_0x1a5a21,_0xe5bd02[_0x4b8078(0x17e)]),_0x3d8221=!0x0);}if(_0x28e0c8['length']===0x0)return null;let [_0x1d18a6]=[..._0x28e0c8]['sort'](S);return{'mergedOutline':{..._0x1d18a6,'start':_0x38feb1,'end':_0x1a5a21},'mergedOutlines':_0x28e0c8};}function h(_0x263736,_0x5b50ee){const _0x569622=_0x48b523;return _0x263736['filter'](_0x2ea491=>!d(_0x2ea491,_0x5b50ee)||!(_0x2ea491[_0x569622(0x1d1)]>=_0x5b50ee[_0x569622(0x1d1)]&&_0x2ea491['end']<=_0x5b50ee[_0x569622(0x17e)]));}function g(_0x4fc0b0,_0x25a210,_0x6815fe,_0x3249ba){const _0x2afb6d=_0x48b523;return _(_0x4fc0b0[_0x2afb6d(0x1c6)](_0x37249e=>_0x37249e[_0x2afb6d(0x16d)]===_0x25a210&&_0x37249e[_0x2afb6d(0x20f)]===_0x6815fe&&_0x37249e[_0x2afb6d(0x217)]===_0x3249ba&&_0x37249e[_0x2afb6d(0x1ef)])['map'](_0x3bf702=>({'start':_0x3bf702['start'],'end':_0x3bf702[_0x2afb6d(0x17e)]})));}function _(_0x5c250e){const _0x26eecf=_0x48b523;if(_0x5c250e[_0x26eecf(0x1ab)]===0x0)return[];let _0x4d275b=[..._0x5c250e][_0x26eecf(0x1a7)]((_0x16c766,_0x5b769e)=>_0x16c766[_0x26eecf(0x1d1)]-_0x5b769e['start']||_0x16c766[_0x26eecf(0x17e)]-_0x5b769e['end']),_0x10c3f9=[];for(let _0x4b6665 of _0x4d275b){let _0x2c1997=_0x10c3f9[_0x10c3f9[_0x26eecf(0x1ab)]-0x1];!_0x2c1997||_0x4b6665['start']>_0x2c1997[_0x26eecf(0x17e)]+0x1?_0x10c3f9[_0x26eecf(0x23b)]({..._0x4b6665}):_0x2c1997[_0x26eecf(0x17e)]=Math[_0x26eecf(0x21b)](_0x2c1997[_0x26eecf(0x17e)],_0x4b6665[_0x26eecf(0x17e)]);}return _0x10c3f9;}function v(_0x3c0052,_0x21fd4b){const _0x5dc84a=_0x48b523;return _0x21fd4b[_0x5dc84a(0x1f6)]<=0x0?_0x3c0052:x(_0x3c0052[_0x5dc84a(0x1b9)](_0x2ec644=>d(_0x2ec644,_0x21fd4b)?_0x21fd4b[_0x5dc84a(0x1b4)]<=_0x2ec644[_0x5dc84a(0x1d1)]?{..._0x2ec644,'start':_0x2ec644[_0x5dc84a(0x1d1)]+_0x21fd4b[_0x5dc84a(0x1f6)],'end':_0x2ec644[_0x5dc84a(0x17e)]+_0x21fd4b[_0x5dc84a(0x1f6)]}:_0x2ec644[_0x5dc84a(0x1d1)]<_0x21fd4b['index']&&_0x21fd4b[_0x5dc84a(0x1b4)]<=_0x2ec644[_0x5dc84a(0x17e)]?{..._0x2ec644,'end':_0x2ec644[_0x5dc84a(0x17e)]+_0x21fd4b['count']}:_0x2ec644:_0x2ec644));}function y(_0x2080aa,_0x553033){const _0x18b5f1=_0x48b523;if(_0x553033[_0x18b5f1(0x1d1)]>_0x553033['end'])return _0x2080aa;let _0xda49f=_0x553033[_0x18b5f1(0x17e)]-_0x553033['start']+0x1,_0x58b319=[];for(let _0x248ae5 of _0x2080aa){if(!d(_0x248ae5,_0x553033)){_0x58b319[_0x18b5f1(0x23b)](_0x248ae5);continue;}if(_0x248ae5['end']<_0x553033[_0x18b5f1(0x1d1)]){_0x58b319[_0x18b5f1(0x23b)](_0x248ae5);continue;}if(_0x248ae5['start']>_0x553033[_0x18b5f1(0x17e)]){_0x58b319[_0x18b5f1(0x23b)]({..._0x248ae5,'start':_0x248ae5[_0x18b5f1(0x1d1)]-_0xda49f,'end':_0x248ae5[_0x18b5f1(0x17e)]-_0xda49f});continue;}let _0x108d7e=Math[_0x18b5f1(0x21b)](_0x248ae5[_0x18b5f1(0x1d1)],_0x553033[_0x18b5f1(0x1d1)]),_0x33df27=Math[_0x18b5f1(0x1aa)](_0x248ae5[_0x18b5f1(0x17e)],_0x553033[_0x18b5f1(0x17e)]),_0x1dddc2=Math[_0x18b5f1(0x21b)](0x0,_0x33df27-_0x108d7e+0x1),_0xb8b970=_0x248ae5[_0x18b5f1(0x17e)]-_0x248ae5['start']+0x1-_0x1dddc2;if(_0xb8b970<=0x0)continue;let _0x341743=_0x248ae5['start']<_0x553033[_0x18b5f1(0x1d1)]?_0x248ae5[_0x18b5f1(0x1d1)]:_0x553033['start'];_0x58b319['push']({..._0x248ae5,'start':_0x341743,'end':_0x341743+_0xb8b970-0x1});}return x(_0x58b319);}function b(_0x1acdfe,_0x14d3b9){const _0xc56258=_0x48b523;if(_0x14d3b9[_0xc56258(0x1ce)]>_0x14d3b9[_0xc56258(0x1b1)])return _0x1acdfe;let _0x17920d=[];for(let _0x290660 of _0x1acdfe){if(!d(_0x290660,_0x14d3b9)){_0x17920d[_0xc56258(0x23b)](_0x290660);continue;}let _0x5cef6e=te(_0x290660,_0x14d3b9);if(_0x5cef6e[_0xc56258(0x1bc)]==='split')throw new s(_0xc56258(0x1a6),_0xc56258(0x215)+_0x290660['id'],_0x290660['id']);_0x17920d[_0xc56258(0x23b)](_0x5cef6e['outline']);}return x(_0x17920d);}function te(_0x4e0990,_0xcd82b1){const _0x273c85=_0x48b523;let _0x18fe9b=ne(_0xcd82b1['sourceStart'],_0xcd82b1[_0x273c85(0x1b1)]+0x1,_0xcd82b1['destinationIndex']),_0x5c58b4=[],_0x292c33={'start':_0x4e0990[_0x273c85(0x1d1)],'end':_0x4e0990[_0x273c85(0x17e)]+0x1};for(let _0x255488 of _0x18fe9b){let _0x37f288=re(_0x292c33,_0x255488['range']);_0x37f288&&_0x5c58b4[_0x273c85(0x23b)]({'start':_0x37f288['start']+_0x255488[_0x273c85(0x189)],'end':_0x37f288[_0x273c85(0x17e)]+_0x255488[_0x273c85(0x189)]});}let _0x3ae938=ie(_0x5c58b4);return _0x3ae938[_0x273c85(0x1ab)]===0x1?{'type':'ok','outline':{..._0x4e0990,'start':_0x3ae938[0x0]['start'],'end':_0x3ae938[0x0][_0x273c85(0x17e)]-0x1}}:{'type':_0x273c85(0x1c8),'outline':_0x4e0990,'ranges':_0x3ae938};}function ne(_0x148728,_0x38fedf,_0x1bb8d9){const _0xd51513=_0x48b523;let _0x3533dc=_0x38fedf-_0x148728;if(_0x3533dc<=0x0)throw Error(_0xd51513(0x1bd));return _0x1bb8d9>=_0x148728&&_0x1bb8d9<=_0x38fedf?[{'range':{'start':0x0,'end':u},'offset':0x0}]:_0x1bb8d9<_0x148728?[{'range':{'start':0x0,'end':_0x1bb8d9},'offset':0x0},{'range':{'start':_0x1bb8d9,'end':_0x148728},'offset':_0x3533dc},{'range':{'start':_0x148728,'end':_0x38fedf},'offset':_0x1bb8d9-_0x148728},{'range':{'start':_0x38fedf,'end':u},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x148728},'offset':0x0},{'range':{'start':_0x148728,'end':_0x38fedf},'offset':_0x1bb8d9-_0x38fedf},{'range':{'start':_0x38fedf,'end':_0x1bb8d9},'offset':-_0x3533dc},{'range':{'start':_0x1bb8d9,'end':u},'offset':0x0}];}function re(_0x1a92ff,_0x357346){const _0x44886f=_0x48b523;let _0x5ad1ac=Math[_0x44886f(0x21b)](_0x1a92ff[_0x44886f(0x1d1)],_0x357346[_0x44886f(0x1d1)]),_0x208d40=Math[_0x44886f(0x1aa)](_0x1a92ff[_0x44886f(0x17e)],_0x357346[_0x44886f(0x17e)]);return _0x5ad1ac>=_0x208d40?null:{'start':_0x5ad1ac,'end':_0x208d40};}function ie(_0x13430c){const _0x1508ed=_0x48b523;if(_0x13430c[_0x1508ed(0x1ab)]===0x0)return[];let _0x2f8ba5=[..._0x13430c]['sort']((_0x1558e8,_0x43a043)=>_0x1558e8['start']-_0x43a043[_0x1508ed(0x1d1)]||_0x1558e8[_0x1508ed(0x17e)]-_0x43a043[_0x1508ed(0x17e)]),_0x4ebc6f=[];for(let _0x5a569d of _0x2f8ba5){let _0x2b0218=_0x4ebc6f[_0x4ebc6f['length']-0x1];!_0x2b0218||_0x5a569d[_0x1508ed(0x1d1)]>_0x2b0218[_0x1508ed(0x17e)]?_0x4ebc6f[_0x1508ed(0x23b)]({..._0x5a569d}):_0x2b0218['end']=Math[_0x1508ed(0x21b)](_0x2b0218[_0x1508ed(0x17e)],_0x5a569d[_0x1508ed(0x17e)]);}return _0x4ebc6f;}function ae(_0x1af0ea,_0x4b305c,_0xd1092f,_0x6e59aa){return _0x4b305c+0x1===_0xd1092f||_0x6e59aa+0x1===_0x1af0ea;}function _0x17e6(){const _0x2bec5a=['clear','SheetInterceptorService','AddDimensionOutlineCommand','getMaxColumns','entries','push','max-depth','constructor','MoveRowsCommand','MAX_DEPTH','toStringTag','Subject','redos','unitId','depth','reason','TransformDimensionOutlinesMutation','dispose','sheets-outline.config','RemoveColCommand','packageName','valid','getColumnCount','2508560PSRsYF','disposeWithMe','Invalid\x20outline\x20range','DependentOn','MoveColsCommand','asObservable','MUTATION','end','_outlines','function','WorksheetViewPermission','find','undos','permissionPointUpdate$','UniverLicensePlugin','InsertRowCommand','5yLEkRx','RemoveRowCommand','offset','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','8nDIlah','delete','ICommandService','SetRowVisibleMutation','COMMAND','2RivOZF','result','invalid-range','UniverSheetsPlugin','sheet.mutation.transform-dimension-outlines','merge','getUnitOutlines','SetColVisibleMutation','CommandType','transformOutlinesByDelete','some','params','mergedOutlines','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','SheetsOutlineModel','@univerjs-pro/sheets-outline','SheetPermissionCheckController','UniverSheetsOutlinePlugin','transformOutlinesByMove','ClearDimensionOutlinesCommand','maxIndex','move-splits-outline','sort','_injector','serialize','min','length','setOutlines','sequenceExecute','has','Plugin','SetRowHiddenMutation','sourceEnd','forEach','_config','index','_sheetsOutlineModel','IConfigService','_getCommandScope','WorkbookViewPermission','map','destinationIndex','pluginName','type','Invalid\x20dimension\x20outline\x20move\x20source\x20range','buildDimensionOutlineTree','column','Inject','_ensureUnitOutlines','SheetsOutlineErrorService','children','1516014mRgyBE','873332aZJgxp','filter','CROSSING','split','stringify','includes','add','unknown','transformOutlinesByInsert','sourceStart','getDimensionOutlineViewPermission$','name','start','IPermissionService','iterator','_commandService','permissionCheckWithoutRange','SetDimensionOutlineCollapsedCommand','MOVE_SPLITS_OUTLINE','range','invalid-dimension-outline','fromRange','complete','getRowCount','sheet.command.clear-dimension-outlines','RemoveDimensionOutlineMutation','toRange','error$','next','RemoveDimensionOutlineCommand','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','setConfig','preRedos','Module','getActiveSheet','object','7672291nZODUc','_initRegisterCommand','_univerInstanceService','getSheetId','UniverInstanceType','INVALID_RANGE','collapsed','registerCommand','ClearDimensionOutlinesMutation','sheet.mutation.clear-dimension-outlines','registerPluginResource','emit','defineProperty','count','762213VycYWc','UNIVER_SHEET','COLUMN','CustomCommandExecutionError','mergedOutline','_resourceManagerService','endRow','116671sUALtt','IUniverInstanceService','getOutlines','DimensionOutlineAxis','set','onStarting','getSheetCommandTarget','7qNXTTs','maxDepth','ROW','clear-range-not-contain-outline','localeCompare','move','pushUndoRedo','pipe','getCurrentUnitOfType','crossing','subUnitId','message','canAddDimensionOutline','string','startColumn','Invalid\x20dimension\x20outline\x20mutation','Move\x20would\x20split\x20dimension\x20outline:\x20','interceptCommand','axis','IUndoRedoService','_change$','row','max','outlineList','642066kvIMCs','getUnitId','SHEET_OUTLINE_PLUGIN','_error$','_initCommandInterceptor','call','outlineId','parse','deserialize','startRow','change$','endColumn','restoreOutlines','DimensionOutlineError','symbol','sheet.mutation.set-dimension-outline-collapsed','values','get','getUnit','join','Disposable','split\x20dimension\x20outline','insert','outline','AddDimensionOutlineMutation'];_0x17e6=function(){return _0x2bec5a;};return _0x17e6();}function x(_0x2f6f7b){let _0x1f15c7=oe(_0x2f6f7b);return f(_0x1f15c7),_0x1f15c7;}function oe(_0x576c51){const _0x5bc104=_0x48b523;let _0x38472e=new Map();for(let _0x3dbf28 of _0x576c51){let _0x440069=[_0x3dbf28[_0x5bc104(0x16d)],_0x3dbf28[_0x5bc104(0x20f)],_0x3dbf28['axis'],_0x3dbf28[_0x5bc104(0x1d1)],_0x3dbf28['end']][_0x5bc104(0x230)](':'),_0xf01827=_0x38472e[_0x5bc104(0x22e)](_0x440069);if(!_0xf01827){_0x38472e[_0x5bc104(0x202)](_0x440069,_0x3dbf28);continue;}_0x38472e[_0x5bc104(0x202)](_0x440069,{..._0xf01827,'collapsed':_0xf01827[_0x5bc104(0x1ef)]||_0x3dbf28['collapsed']});}return Array['from'](_0x38472e[_0x5bc104(0x22d)]());}function S(_0x1fa943,_0x38b964){const _0x41fb75=_0x48b523;return _0x1fa943[_0x41fb75(0x16d)]===_0x38b964[_0x41fb75(0x16d)]?_0x1fa943[_0x41fb75(0x20f)]===_0x38b964[_0x41fb75(0x20f)]?_0x1fa943[_0x41fb75(0x217)]===_0x38b964[_0x41fb75(0x217)]?_0x1fa943[_0x41fb75(0x1d1)]===_0x38b964[_0x41fb75(0x1d1)]?_0x38b964['end']-_0x1fa943[_0x41fb75(0x17e)]:_0x1fa943[_0x41fb75(0x1d1)]-_0x38b964[_0x41fb75(0x1d1)]:_0x1fa943['axis']['localeCompare'](_0x38b964[_0x41fb75(0x217)]):_0x1fa943[_0x41fb75(0x20f)][_0x41fb75(0x209)](_0x38b964[_0x41fb75(0x20f)]):_0x1fa943[_0x41fb75(0x16d)][_0x41fb75(0x209)](_0x38b964[_0x41fb75(0x16d)]);}function se(_0x2c7d55){const _0x21d143=_0x48b523;if(_0x2c7d55['start']>_0x2c7d55[_0x21d143(0x17e)])throw new s('invalid-range',_0x21d143(0x179),_0x2c7d55['id']);}function C(_0x5b9eb0,_0x2d6d5a){const _0x505708=_0x48b523;let _0xcf1933=_0x5b9eb0['start']<=_0x2d6d5a[_0x505708(0x17e)]&&_0x2d6d5a[_0x505708(0x1d1)]<=_0x5b9eb0[_0x505708(0x17e)],_0x340960=_0x5b9eb0[_0x505708(0x1d1)]<=_0x2d6d5a[_0x505708(0x1d1)]&&_0x2d6d5a[_0x505708(0x17e)]<=_0x5b9eb0[_0x505708(0x17e)],_0x1a8827=_0x2d6d5a[_0x505708(0x1d1)]<=_0x5b9eb0['start']&&_0x5b9eb0[_0x505708(0x17e)]<=_0x2d6d5a[_0x505708(0x17e)];return _0xcf1933&&!_0x340960&&!_0x1a8827;}function w(_0x405e47){'@babel/helpers - typeof';const _0x5ac49a=_0x48b523;return w=typeof Symbol=='function'&&typeof Symbol[_0x5ac49a(0x1d3)]==_0x5ac49a(0x22b)?function(_0x570241){return typeof _0x570241;}:function(_0x585c82){const _0x54c90e=_0x5ac49a;return _0x585c82&&typeof Symbol=='function'&&_0x585c82[_0x54c90e(0x23d)]===Symbol&&_0x585c82!==Symbol['prototype']?_0x54c90e(0x22b):typeof _0x585c82;},w(_0x405e47);}function ce(_0x4f24ef,_0x2cb998){const _0x12920a=_0x48b523;if(w(_0x4f24ef)!=_0x12920a(0x1e8)||!_0x4f24ef)return _0x4f24ef;var _0x39cf80=_0x4f24ef[Symbol['toPrimitive']];if(_0x39cf80!==void 0x0){var _0x390921=_0x39cf80[_0x12920a(0x222)](_0x4f24ef,_0x2cb998||'default');if(w(_0x390921)!=_0x12920a(0x1e8))return _0x390921;throw TypeError(_0x12920a(0x18b));}return(_0x2cb998==='string'?String:Number)(_0x4f24ef);}function _0x3157(_0x5dc044,_0x521195){_0x5dc044=_0x5dc044-0x16a;const _0x17e6d2=_0x17e6();let _0x31577b=_0x17e6d2[_0x5dc044];return _0x31577b;}function le(_0x60e0d8){const _0x15a775=_0x48b523;var _0x45ddc1=ce(_0x60e0d8,_0x15a775(0x212));return w(_0x45ddc1)==_0x15a775(0x22b)?_0x45ddc1:_0x45ddc1+'';}function T(_0xc9a6e5,_0x2f36c3,_0x264bd3){const _0x2d968c=_0x48b523;return(_0x2f36c3=le(_0x2f36c3))in _0xc9a6e5?Object[_0x2d968c(0x1f5)](_0xc9a6e5,_0x2f36c3,{'value':_0x264bd3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc9a6e5[_0x2f36c3]=_0x264bd3,_0xc9a6e5;}var E=class extends e['Disposable']{constructor(..._0x2e5404){const _0x373403=_0x48b523;super(..._0x2e5404),T(this,_0x373403(0x17f),new Map()),T(this,_0x373403(0x219),new n[(_0x373403(0x16b))]()),T(this,_0x373403(0x227),this['_change$']['asObservable']());}['getOutlines'](_0x5ce1c2,_0x518c83){const _0x2088dd=_0x48b523;var _0x2c3f3f;return[...((_0x2c3f3f=this[_0x2088dd(0x17f)][_0x2088dd(0x22e)](_0x5ce1c2))==null?void 0x0:_0x2c3f3f[_0x2088dd(0x22e)](_0x518c83))??[]];}[_0x48b523(0x197)](_0x57992d){const _0x4fc6c4=_0x48b523;let _0x71b7e3=this[_0x4fc6c4(0x17f)]['get'](_0x57992d),_0x5278d1=new Map();return _0x71b7e3==null||_0x71b7e3[_0x4fc6c4(0x1b2)]((_0x19f893,_0x4c3b3a)=>{const _0x178374=_0x4fc6c4;_0x5278d1[_0x178374(0x202)](_0x4c3b3a,[..._0x19f893]);}),_0x5278d1;}[_0x48b523(0x1ac)](_0x2ac5be,_0x2e6fb4,_0x4d9d8c){const _0x2af092=_0x48b523;this[_0x2af092(0x1c1)](_0x2ac5be)[_0x2af092(0x202)](_0x2e6fb4,[..._0x4d9d8c]),this['_change$'][_0x2af092(0x1e1)]({'unitId':_0x2ac5be,'subUnitId':_0x2e6fb4});}['removeUnit'](_0x5716e7){const _0xb6dff1=_0x48b523;this[_0xb6dff1(0x17f)][_0xb6dff1(0x18d)](_0x5716e7),this[_0xb6dff1(0x219)][_0xb6dff1(0x1e1)]({'unitId':_0x5716e7});}[_0x48b523(0x1a9)](_0x3141a){const _0x3e097d=_0x48b523;let _0x3b0883=this[_0x3e097d(0x17f)][_0x3e097d(0x22e)](_0x3141a),_0x33bc0b={};return _0x3b0883==null||_0x3b0883['forEach']((_0x1e89bd,_0x3e72b4)=>{_0x33bc0b[_0x3e72b4]={'outlineList':[..._0x1e89bd]};}),_0x33bc0b;}[_0x48b523(0x225)](_0x5da6c9,_0x57144a){const _0x14ebd5=_0x48b523;let _0x36d408=new Map();Object[_0x14ebd5(0x23a)](_0x57144a)[_0x14ebd5(0x1b2)](([_0x4e6c8d,_0x2b972a])=>{const _0x1669de=_0x14ebd5;_0x36d408[_0x1669de(0x202)](_0x4e6c8d,[..._0x2b972a[_0x1669de(0x21c)]??[]]);}),this[_0x14ebd5(0x17f)][_0x14ebd5(0x202)](_0x5da6c9,_0x36d408),this[_0x14ebd5(0x219)]['next']({'unitId':_0x5da6c9});}[_0x48b523(0x171)](){const _0x3e33a4=_0x48b523;super[_0x3e33a4(0x171)](),this[_0x3e33a4(0x17f)][_0x3e33a4(0x236)](),this[_0x3e33a4(0x219)][_0x3e33a4(0x1db)]();}[_0x48b523(0x1c1)](_0x41a37c){const _0x2ca73d=_0x48b523;let _0x113c3e=this['_outlines'][_0x2ca73d(0x22e)](_0x41a37c);return _0x113c3e||(_0x113c3e=new Map(),this[_0x2ca73d(0x17f)][_0x2ca73d(0x202)](_0x41a37c,_0x113c3e)),_0x113c3e;}},D=class extends e[_0x48b523(0x231)]{constructor(..._0x5b7b50){const _0x3fc3c2=_0x48b523;super(..._0x5b7b50),T(this,_0x3fc3c2(0x220),new n[(_0x3fc3c2(0x16b))]()),T(this,_0x3fc3c2(0x1e0),this[_0x3fc3c2(0x220)][_0x3fc3c2(0x17c)]());}[_0x48b523(0x1f4)](_0x4e25a4){const _0x187a3a=_0x48b523;this[_0x187a3a(0x220)][_0x187a3a(0x1e1)](_0x4e25a4);}[_0x48b523(0x171)](){const _0x4f3060=_0x48b523;super[_0x4f3060(0x171)](),this[_0x4f3060(0x220)]['complete']();}};const O={'id':'sheet.mutation.add-dimension-outline','type':e[_0x48b523(0x199)][_0x48b523(0x17d)],'handler':(_0xd317e1,_0x1a3037)=>{const _0xd8095d=_0x48b523;let _0xecfd1=_0xd317e1['get'](E),_0x124a34=_0xecfd1[_0xd8095d(0x200)](_0x1a3037[_0xd8095d(0x16d)],_0x1a3037['subUnitId']);return _0xecfd1[_0xd8095d(0x1ac)](_0x1a3037[_0xd8095d(0x16d)],_0x1a3037['subUnitId'],m(_0x124a34,_0x1a3037[_0xd8095d(0x234)])),!0x0;}},k={'id':'sheet.mutation.remove-dimension-outline','type':e['CommandType'][_0x48b523(0x17d)],'handler':(_0x392801,_0x5cb61f)=>{const _0x24b6d3=_0x48b523;let _0x186be1=_0x392801[_0x24b6d3(0x22e)](E),_0x5a99e8=_0x186be1['getOutlines'](_0x5cb61f[_0x24b6d3(0x16d)],_0x5cb61f['subUnitId']);return _0x186be1[_0x24b6d3(0x1ac)](_0x5cb61f['unitId'],_0x5cb61f[_0x24b6d3(0x20f)],_0x5a99e8['filter'](_0x494163=>_0x494163['id']!==_0x5cb61f['outlineId'])),!0x0;}};function A(_0x1db40d,_0x5a2d16,_0x762ff1){const _0xaa0636=_0x48b523;let _0x3f4c97=de(_0x1db40d);return!_0x3f4c97||_0x3f4c97[_0xaa0636(0x1d5)]({'workbookTypes':[t[_0xaa0636(0x1b8)]],'worksheetTypes':[t[_0xaa0636(0x181)]]},_0x5a2d16,_0x762ff1);}function ue(_0x37f457,_0x274189,_0x1d14b9){const _0x3a5702=_0x48b523;let _0x502b43=fe(_0x37f457);return((_0x502b43==null?void 0x0:_0x502b43[_0x3a5702(0x184)])??(0x0,n['of'])(null))[_0x3a5702(0x20c)]((0x0,r['debounceTime'])(0x64),(0x0,r['startWith'])(null),(0x0,r[_0x3a5702(0x1b9)])(()=>A(_0x37f457,_0x274189,_0x1d14b9)));}function de(_0x211af5){const _0x2b4bce=_0x48b523;if(typeof _0x211af5['has']==_0x2b4bce(0x180)&&!_0x211af5[_0x2b4bce(0x1ae)](t['SheetPermissionCheckController']))return null;try{return _0x211af5[_0x2b4bce(0x22e)](t[_0x2b4bce(0x1a1)]);}catch{return null;}}function fe(_0xeb3da){const _0x4f3424=_0x48b523;if(typeof _0xeb3da[_0x4f3424(0x1ae)]==_0x4f3424(0x180)&&!_0xeb3da[_0x4f3424(0x1ae)](e[_0x4f3424(0x1d2)]))return null;try{return _0xeb3da[_0x4f3424(0x22e)](e[_0x4f3424(0x1d2)]);}catch{return null;}}const j={'id':'sheet.command.add-dimension-outline','type':e[_0x48b523(0x199)][_0x48b523(0x190)],'handler':(_0x2ee479,_0x47df92)=>{const _0x58f98c=_0x48b523;if(!_0x47df92)return!0x1;let _0x35b8ce=(0x0,t[_0x58f98c(0x204)])(_0x2ee479[_0x58f98c(0x22e)](e[_0x58f98c(0x1ff)]),_0x47df92);if(!_0x35b8ce)return!0x1;let {unitId:_0x4dfa8d,subUnitId:_0x38ab2f,worksheet:_0x4b3577}=_0x35b8ce;if(!A(_0x2ee479,_0x4dfa8d,_0x38ab2f))return!0x1;let _0x557565=_0x2ee479[_0x58f98c(0x22e)](E),_0x528f22={'id':'dimension-outline-'+(0x0,e['generateRandomId'])(0x6),'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'axis':_0x47df92[_0x58f98c(0x217)],'start':_0x47df92[_0x58f98c(0x1d1)],'end':_0x47df92[_0x58f98c(0x17e)],'collapsed':!0x1},_0xdc4eb6=_0x47df92[_0x58f98c(0x217)]===_0x58f98c(0x21a)?_0x4b3577[_0x58f98c(0x1dc)]():_0x4b3577[_0x58f98c(0x176)](),_0x1670fb=_0x557565['getOutlines'](_0x4dfa8d,_0x38ab2f),_0x4e5be0=ee(_0x1670fb,_0x528f22),_0x31a6db=(_0x4e5be0==null?void 0x0:_0x4e5be0[_0x58f98c(0x19d)])??[],_0x277b80=(_0x4e5be0==null?void 0x0:_0x4e5be0[_0x58f98c(0x1fb)])??_0x528f22,_0xd26c30=p(_0x4e5be0?_0x1670fb[_0x58f98c(0x1c6)](_0x2eb842=>!_0x31a6db[_0x58f98c(0x19b)](_0x390c60=>_0x390c60['id']===_0x2eb842['id'])):_0x1670fb,_0x277b80,{'maxIndex':_0xdc4eb6});if(!_0xd26c30[_0x58f98c(0x175)])return _0x2ee479[_0x58f98c(0x22e)](D)[_0x58f98c(0x1f4)]({'reason':_0xd26c30['reason']??_0x58f98c(0x1cc),'commandId':j['id'],'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'axis':_0x47df92[_0x58f98c(0x217)],'outlineId':_0x277b80['id']}),!0x1;let _0xf1fca9=[..._0x31a6db['map'](_0xa3e546=>({'id':k['id'],'params':{'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'outlineId':_0xa3e546['id']}})),{'id':O['id'],'params':{'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'outline':_0x277b80}}],_0x4f403a=[{'id':k['id'],'params':{'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'outlineId':_0x277b80['id']}},..._0x31a6db[_0x58f98c(0x1b9)](_0x2668d1=>({'id':O['id'],'params':{'unitId':_0x4dfa8d,'subUnitId':_0x38ab2f,'outline':_0x2668d1}}))];return(0x0,e[_0x58f98c(0x1ad)])(_0xf1fca9,_0x2ee479[_0x58f98c(0x22e)](e['ICommandService']))[_0x58f98c(0x192)]?(_0x2ee479[_0x58f98c(0x22e)](e[_0x58f98c(0x218)])[_0x58f98c(0x20b)]({'unitID':_0x4dfa8d,'undoMutations':_0x4f403a,'redoMutations':_0xf1fca9}),!0x0):!0x1;}},M={'id':_0x48b523(0x1f2),'type':e['CommandType']['MUTATION'],'handler':(_0x125ec5,_0x3d3606)=>{const _0x653b7e=_0x48b523;let _0x353e3d=_0x125ec5['get'](E),_0x4a93d3=_0x353e3d['getOutlines'](_0x3d3606['unitId'],_0x3d3606['subUnitId']);return _0x353e3d['setOutlines'](_0x3d3606['unitId'],_0x3d3606[_0x653b7e(0x20f)],h(_0x4a93d3,_0x3d3606)),!0x0;}},N={'id':_0x48b523(0x1dd),'type':e[_0x48b523(0x199)][_0x48b523(0x190)],'handler':(_0x904da3,_0x432d71)=>{const _0xbb7d55=_0x48b523;if(!_0x432d71)return!0x1;let _0x3d485=(0x0,t[_0xbb7d55(0x204)])(_0x904da3['get'](e['IUniverInstanceService']),_0x432d71);if(!_0x3d485)return!0x1;let {unitId:_0x3bf396,subUnitId:_0x4e8ec6}=_0x3d485;if(!A(_0x904da3,_0x3bf396,_0x4e8ec6))return!0x1;let _0x50f808={'unitId':_0x3bf396,'subUnitId':_0x4e8ec6,'axis':_0x432d71['axis'],'start':_0x432d71[_0xbb7d55(0x1d1)],'end':_0x432d71[_0xbb7d55(0x17e)]},_0x69908f=_0x904da3[_0xbb7d55(0x22e)](E)[_0xbb7d55(0x200)](_0x3bf396,_0x4e8ec6)[_0xbb7d55(0x1c6)](_0x3b28eb=>d(_0x3b28eb,_0x50f808)&&_0x3b28eb[_0xbb7d55(0x1d1)]>=_0x432d71[_0xbb7d55(0x1d1)]&&_0x3b28eb[_0xbb7d55(0x17e)]<=_0x432d71[_0xbb7d55(0x17e)]);if(_0x69908f['length']===0x0)return _0x904da3[_0xbb7d55(0x22e)](D)['emit']({'reason':_0xbb7d55(0x208),'commandId':N['id'],'unitId':_0x3bf396,'subUnitId':_0x4e8ec6,'axis':_0x432d71['axis']}),!0x1;let _0x7f534f=[{'id':M['id'],'params':{..._0x50f808,'removedOutlineIds':_0x69908f[_0xbb7d55(0x1b9)](_0x4fe95f=>_0x4fe95f['id'])}}],_0x4dfb03=_0x69908f[_0xbb7d55(0x1b9)](_0x24ad0b=>({'id':O['id'],'params':{'unitId':_0x3bf396,'subUnitId':_0x4e8ec6,'outline':_0x24ad0b}}));return(0x0,e[_0xbb7d55(0x1ad)])(_0x7f534f,_0x904da3[_0xbb7d55(0x22e)](e[_0xbb7d55(0x18e)]))[_0xbb7d55(0x192)]?(_0x904da3[_0xbb7d55(0x22e)](e[_0xbb7d55(0x218)])['pushUndoRedo']({'unitID':_0x3bf396,'undoMutations':_0x4dfb03,'redoMutations':_0x7f534f}),!0x0):!0x1;}},P={'id':'sheet.command.remove-dimension-outline','type':e[_0x48b523(0x199)]['COMMAND'],'handler':(_0x5a4f84,_0x209f92)=>{const _0x56586e=_0x48b523;if(!_0x209f92)return!0x1;let _0x186685=(0x0,t['getSheetCommandTarget'])(_0x5a4f84[_0x56586e(0x22e)](e[_0x56586e(0x1ff)]),_0x209f92);if(!_0x186685)return!0x1;let {unitId:_0x3c30fe,subUnitId:_0x490fea}=_0x186685;if(!A(_0x5a4f84,_0x3c30fe,_0x490fea))return!0x1;let _0x12cd25=_0x5a4f84[_0x56586e(0x22e)](E)['getOutlines'](_0x3c30fe,_0x490fea)[_0x56586e(0x182)](_0x17065b=>_0x17065b['id']===_0x209f92[_0x56586e(0x223)]);if(!_0x12cd25)return!0x1;let _0x4353ae=[{'id':k['id'],'params':{'unitId':_0x3c30fe,'subUnitId':_0x490fea,'outlineId':_0x12cd25['id'],'outline':_0x12cd25}}],_0x2f521a=[{'id':O['id'],'params':{'unitId':_0x3c30fe,'subUnitId':_0x490fea,'outline':_0x12cd25}}];return(0x0,e['sequenceExecute'])(_0x4353ae,_0x5a4f84[_0x56586e(0x22e)](e[_0x56586e(0x18e)]))[_0x56586e(0x192)]?(_0x5a4f84[_0x56586e(0x22e)](e['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x3c30fe,'undoMutations':_0x2f521a,'redoMutations':_0x4353ae}),!0x0):!0x1;}},F={'id':_0x48b523(0x22c),'type':e['CommandType']['MUTATION'],'handler':(_0x40f64b,_0x2ebbeb)=>{const _0x2629ae=_0x48b523;let _0x4d151e=_0x40f64b[_0x2629ae(0x22e)](E),_0x6451ef=_0x4d151e['getOutlines'](_0x2ebbeb['unitId'],_0x2ebbeb[_0x2629ae(0x20f)]),_0x2aeda5=_0x6451ef[_0x2629ae(0x182)](_0x3ba54c=>_0x3ba54c['id']===_0x2ebbeb['outlineId']);return _0x2aeda5&&_0x4d151e[_0x2629ae(0x1ac)](_0x2ebbeb['unitId'],_0x2ebbeb[_0x2629ae(0x20f)],_0x6451ef[_0x2629ae(0x1b9)](_0x81e3ff=>_0x81e3ff[_0x2629ae(0x16d)]!==_0x2aeda5[_0x2629ae(0x16d)]||_0x81e3ff[_0x2629ae(0x20f)]!==_0x2aeda5[_0x2629ae(0x20f)]||_0x81e3ff['axis']!==_0x2aeda5['axis']||_0x81e3ff[_0x2629ae(0x1d1)]!==_0x2aeda5[_0x2629ae(0x1d1)]||_0x81e3ff[_0x2629ae(0x17e)]!==_0x2aeda5['end']?_0x81e3ff:{..._0x81e3ff,'collapsed':_0x2ebbeb[_0x2629ae(0x1ef)]})),!0x0;}};function I(_0x44e61c,_0x5ea835,_0x466215,_0xbfc229){const _0x6278c0=_0x48b523;return _0x44e61c===_0x6278c0(0x21a)?{'startRow':_0x5ea835,'endRow':_0x466215,'startColumn':0x0,'endColumn':_0xbfc229[_0x6278c0(0x239)]()-0x1}:{'startRow':0x0,'endRow':_0xbfc229[_0x6278c0(0x1dc)]()-0x1,'startColumn':_0x5ea835,'endColumn':_0x466215};}function pe(_0x2ecf01){const _0x516bec=_0x48b523;return _0x2ecf01===_0x516bec(0x21a)?t[_0x516bec(0x1b0)]['id']:t['SetColHiddenMutation']['id'];}function me(_0x3a3281){const _0x1a2e69=_0x48b523;return _0x3a3281===_0x1a2e69(0x21a)?t[_0x1a2e69(0x18f)]['id']:t[_0x1a2e69(0x198)]['id'];}function L(_0x32781c,_0x2e69ab,_0x3cc8a2,_0xefd582){const _0x429e90=_0x48b523;let _0xafc8bd=_0x2e69ab?[I(_0x32781c[_0x429e90(0x217)],_0x32781c[_0x429e90(0x1d1)],_0x32781c['end'],_0x3cc8a2)]:he(_0x32781c,_0xefd582,_0x3cc8a2),_0x4836d5=_0x2e69ab?pe(_0x32781c['axis']):me(_0x32781c[_0x429e90(0x217)]);return[{'id':F['id'],'params':{'unitId':_0x32781c[_0x429e90(0x16d)],'subUnitId':_0x32781c['subUnitId'],'outlineId':_0x32781c['id'],'outline':_0x32781c,'collapsed':_0x2e69ab}},..._0xafc8bd[_0x429e90(0x1b9)](_0x418b7e=>({'id':_0x4836d5,'params':{'unitId':_0x32781c[_0x429e90(0x16d)],'subUnitId':_0x32781c[_0x429e90(0x20f)],'ranges':[_0x418b7e],'dimensionOutlineId':_0x32781c['id']}}))];}function he(_0x5946c9,_0x2e14a0,_0x1a55a1){const _0x3ff53e=_0x48b523;let _0x2a6614=g(_0x2e14a0[_0x3ff53e(0x1b9)](_0x2173e5=>R(_0x2173e5,_0x5946c9)?{..._0x2173e5,'collapsed':!0x1}:_0x2173e5),_0x5946c9['unitId'],_0x5946c9['subUnitId'],_0x5946c9['axis']);return ge({'start':_0x5946c9[_0x3ff53e(0x1d1)],'end':_0x5946c9[_0x3ff53e(0x17e)]},_0x2a6614)[_0x3ff53e(0x1b9)](_0x1311b6=>I(_0x5946c9[_0x3ff53e(0x217)],_0x1311b6[_0x3ff53e(0x1d1)],_0x1311b6[_0x3ff53e(0x17e)],_0x1a55a1));}function R(_0x16d0c2,_0x2a69d4){const _0x598924=_0x48b523;return _0x16d0c2[_0x598924(0x16d)]===_0x2a69d4[_0x598924(0x16d)]&&_0x16d0c2[_0x598924(0x20f)]===_0x2a69d4[_0x598924(0x20f)]&&_0x16d0c2['axis']===_0x2a69d4[_0x598924(0x217)]&&_0x16d0c2[_0x598924(0x1d1)]===_0x2a69d4[_0x598924(0x1d1)]&&_0x16d0c2['end']===_0x2a69d4[_0x598924(0x17e)];}function ge(_0x4f6ae1,_0x574061){const _0x58f380=_0x48b523;let _0x476644=_0x4f6ae1['start'],_0xd5091d=[];for(let _0x26885f of _0x574061)if(!(_0x26885f['end']<_0x476644||_0x26885f[_0x58f380(0x1d1)]>_0x4f6ae1[_0x58f380(0x17e)])&&(_0x26885f[_0x58f380(0x1d1)]>_0x476644&&_0xd5091d['push']({'start':_0x476644,'end':Math[_0x58f380(0x1aa)](_0x26885f[_0x58f380(0x1d1)]-0x1,_0x4f6ae1['end'])}),_0x476644=Math[_0x58f380(0x21b)](_0x476644,_0x26885f[_0x58f380(0x17e)]+0x1),_0x476644>_0x4f6ae1[_0x58f380(0x17e)]))break;return _0x476644<=_0x4f6ae1[_0x58f380(0x17e)]&&_0xd5091d['push']({'start':_0x476644,'end':_0x4f6ae1[_0x58f380(0x17e)]}),_0xd5091d;}const z={'id':'sheet.command.set-dimension-outline-collapsed','type':e[_0x48b523(0x199)][_0x48b523(0x190)],'handler':(_0xc82c87,_0xe33337)=>{const _0x3bfd5e=_0x48b523;if(!_0xe33337)return!0x1;let _0x4942a5=(0x0,t['getSheetCommandTarget'])(_0xc82c87[_0x3bfd5e(0x22e)](e[_0x3bfd5e(0x1ff)]),_0xe33337);if(!_0x4942a5)return!0x1;let {unitId:_0x5dfb65,subUnitId:_0x226fc9,worksheet:_0x5e9d65}=_0x4942a5;if(!A(_0xc82c87,_0x5dfb65,_0x226fc9))return!0x1;let _0x1a0263=_0xc82c87[_0x3bfd5e(0x22e)](E)[_0x3bfd5e(0x200)](_0x5dfb65,_0x226fc9),_0x7c4c88=_0x1a0263[_0x3bfd5e(0x182)](_0x3a9bb3=>_0x3a9bb3['id']===_0xe33337[_0x3bfd5e(0x223)]);if(!_0x7c4c88||_0x7c4c88[_0x3bfd5e(0x1ef)]===_0xe33337[_0x3bfd5e(0x1ef)])return!0x1;let _0x57abc5=L(_0x7c4c88,_0xe33337[_0x3bfd5e(0x1ef)],_0x5e9d65,_0x1a0263),_0x48c552=L(_0x7c4c88,!_0xe33337[_0x3bfd5e(0x1ef)],_0x5e9d65,_0x1a0263);return(0x0,e[_0x3bfd5e(0x1ad)])(_0x57abc5,_0xc82c87[_0x3bfd5e(0x22e)](e[_0x3bfd5e(0x18e)]))['result']?(_0xc82c87[_0x3bfd5e(0x22e)](e['IUndoRedoService'])[_0x3bfd5e(0x20b)]({'unitID':_0x5dfb65,'undoMutations':_0x48c552,'redoMutations':_0x57abc5}),!0x0):!0x1;}},B={'id':_0x48b523(0x195),'type':e['CommandType'][_0x48b523(0x17d)],'handler':(_0x526bc8,_0x1fd44b)=>{const _0x5c523d=_0x48b523;let _0x17ac34=_0x526bc8[_0x5c523d(0x22e)](E),_0x1e545f=_e(_0x17ac34['getOutlines'](_0x1fd44b[_0x5c523d(0x16d)],_0x1fd44b[_0x5c523d(0x20f)]),_0x1fd44b);return _0x17ac34[_0x5c523d(0x1ac)](_0x1fd44b[_0x5c523d(0x16d)],_0x1fd44b[_0x5c523d(0x20f)],_0x1e545f),!0x0;}};function _e(_0x24e065,_0x57daa1){const _0x463e7c=_0x48b523;switch(_0x57daa1[_0x463e7c(0x1bc)]){case'insert':return _0x57daa1[_0x463e7c(0x229)]?ve(_0x24e065,_0x57daa1):v(_0x24e065,_0x57daa1);case'delete':return y(_0x24e065,_0x57daa1);case _0x463e7c(0x20a):return b(_0x24e065,_0x57daa1);}}function ve(_0x41e526,_0x4c4482){const _0x5d4d7f=_0x48b523;return[..._0x41e526[_0x5d4d7f(0x1c6)](_0x24a17e=>_0x24a17e['unitId']!==_0x4c4482['unitId']||_0x24a17e[_0x5d4d7f(0x20f)]!==_0x4c4482[_0x5d4d7f(0x20f)]||_0x24a17e['axis']!==_0x4c4482[_0x5d4d7f(0x217)]),..._0x4c4482[_0x5d4d7f(0x229)]];}const V='SHEET_OUTLINE_PLUGIN';var ye=_0x48b523(0x1a0),be='1.0.2';const H={};function U(_0x3aaeaa,_0xf75851){return function(_0x33d75a,_0xce2811){_0xf75851(_0x33d75a,_0xce2811,_0x3aaeaa);};}function W(_0x504462,_0x266d16,_0xa56d97,_0x402e77){const _0x240148=_0x48b523;var _0x3e65c5=arguments[_0x240148(0x1ab)],_0x47cdff=_0x3e65c5<0x3?_0x266d16:_0x402e77===null?_0x402e77=Object['getOwnPropertyDescriptor'](_0x266d16,_0xa56d97):_0x402e77,_0x70bb7f;if(typeof Reflect==_0x240148(0x1e8)&&typeof Reflect['decorate']==_0x240148(0x180))_0x47cdff=Reflect['decorate'](_0x504462,_0x266d16,_0xa56d97,_0x402e77);else{for(var _0x50b536=_0x504462[_0x240148(0x1ab)]-0x1;_0x50b536>=0x0;_0x50b536--)(_0x70bb7f=_0x504462[_0x50b536])&&(_0x47cdff=(_0x3e65c5<0x3?_0x70bb7f(_0x47cdff):_0x3e65c5>0x3?_0x70bb7f(_0x266d16,_0xa56d97,_0x47cdff):_0x70bb7f(_0x266d16,_0xa56d97))||_0x47cdff);}return _0x3e65c5>0x3&&_0x47cdff&&Object[_0x240148(0x1f5)](_0x266d16,_0xa56d97,_0x47cdff),_0x47cdff;}const G={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let K=class extends e['Disposable']{constructor(_0x1f1977,_0x138380,_0x3e3984,_0x993907){const _0x2773aa=_0x48b523;super(),this[_0x2773aa(0x1eb)]=_0x1f1977,this['_sheetInterceptorService']=_0x138380,this[_0x2773aa(0x1b5)]=_0x3e3984,this['_sheetsOutlineErrorService']=_0x993907,this[_0x2773aa(0x221)]();}[_0x48b523(0x221)](){const _0x3e2eee=_0x48b523;this[_0x3e2eee(0x178)](this['_sheetInterceptorService'][_0x3e2eee(0x216)]({'getMutations':_0x3e7644=>xe(_0x3e7644,(_0x33effa,_0x4fc269)=>this[_0x3e2eee(0x1b5)][_0x3e2eee(0x200)](_0x33effa,_0x4fc269),this[_0x3e2eee(0x1b7)](_0x3e7644[_0x3e2eee(0x19c)]),_0x2df2da=>this['_sheetsOutlineErrorService'][_0x3e2eee(0x1f4)](_0x2df2da))}));}[_0x48b523(0x1b7)](_0x384603){const _0x34534f=_0x48b523;let _0x1bcecf=_0x384603,_0x43c215=_0x1bcecf!=null&&_0x1bcecf['unitId']?this[_0x34534f(0x1eb)][_0x34534f(0x22f)](_0x1bcecf['unitId'],e[_0x34534f(0x1ed)][_0x34534f(0x1f8)]):this['_univerInstanceService'][_0x34534f(0x20d)](e[_0x34534f(0x1ed)]['UNIVER_SHEET']);if(!_0x43c215)return;let _0x551cbf=_0x1bcecf!=null&&_0x1bcecf[_0x34534f(0x20f)]?_0x43c215['getSheetBySheetId'](_0x1bcecf[_0x34534f(0x20f)]):_0x43c215[_0x34534f(0x1e7)]();if(_0x551cbf)return{'unitId':_0x43c215[_0x34534f(0x21e)](),'subUnitId':_0x551cbf[_0x34534f(0x1ec)]()};}};K=W([U(0x0,e[_0x48b523(0x1ff)]),U(0x1,(0x0,e['Inject'])(t[_0x48b523(0x237)])),U(0x2,(0x0,e[_0x48b523(0x1c0)])(E)),U(0x3,(0x0,e['Inject'])(D))],K);function xe(_0x2f8cdf,_0x803beb,_0x5ee2b9,_0x2f789b){const _0x1fa89b=_0x48b523;let _0x5d68b8=Ce(_0x2f8cdf,_0x5ee2b9);if(!_0x5d68b8)return Z();let _0x14d9a5=_0x803beb(_0x5d68b8[_0x1fa89b(0x16d)],_0x5d68b8[_0x1fa89b(0x20f)]);if(!_0x14d9a5[_0x1fa89b(0x19b)](_0x56673d=>_0x56673d[_0x1fa89b(0x217)]===_0x5d68b8[_0x1fa89b(0x217)]))return Z();Se(_0x14d9a5,_0x5d68b8,_0x2f8cdf['id'],_0x2f789b);let _0x3e0b9a=we(_0x5d68b8,_0x14d9a5);return{'redos':[{'id':B['id'],'params':_0x5d68b8}],'undos':[{'id':B['id'],'params':_0x3e0b9a}],'preRedos':[],'preUndos':[]};}function Se(_0x770c0f,_0x2fa6fc,_0x225be4,_0x4caccf){const _0x4964ba=_0x48b523;try{switch(_0x2fa6fc[_0x4964ba(0x1bc)]){case _0x4964ba(0x233):v(_0x770c0f,_0x2fa6fc);break;case _0x4964ba(0x18d):y(_0x770c0f,_0x2fa6fc);break;case'move':b(_0x770c0f,_0x2fa6fc);}}catch(_0x5ce4c5){throw _0x4caccf==null||_0x4caccf({'reason':c(_0x5ce4c5),'commandId':_0x225be4,'unitId':_0x2fa6fc[_0x4964ba(0x16d)],'subUnitId':_0x2fa6fc['subUnitId'],'axis':_0x2fa6fc['axis'],'outlineId':l(_0x5ce4c5)}),new e[(_0x4964ba(0x1fa))](_0x5ce4c5 instanceof Error?_0x5ce4c5[_0x4964ba(0x210)]:_0x4964ba(0x214));}}function Ce(_0x27818c,_0xcd4005){const _0x54dde3=_0x48b523;switch(_0x27818c['id']){case t[_0x54dde3(0x186)]['id']:return q(_0x27818c[_0x54dde3(0x19c)],_0x54dde3(0x21a),_0xcd4005);case t['InsertColCommand']['id']:return q(_0x27818c[_0x54dde3(0x19c)],_0x54dde3(0x1bf),_0xcd4005);case t[_0x54dde3(0x188)]['id']:return J(_0x27818c[_0x54dde3(0x19c)],_0x54dde3(0x21a),_0xcd4005);case t[_0x54dde3(0x173)]['id']:return J(_0x27818c[_0x54dde3(0x19c)],_0x54dde3(0x1bf),_0xcd4005);case t[_0x54dde3(0x23e)]['id']:return Y(_0x27818c['params'],_0x54dde3(0x21a),_0xcd4005);case t[_0x54dde3(0x17b)]['id']:return Y(_0x27818c[_0x54dde3(0x19c)],'column',_0xcd4005);default:return null;}}function q(_0xa4d09d,_0x3d009c,_0x3688a5){const _0x25f3cb=_0x48b523;let _0x1727f9=X(_0xa4d09d,_0x3688a5);if(!(_0xa4d09d!=null&&_0xa4d09d['range'])||!_0x1727f9)return null;let _0x4a993e=_0x3d009c===_0x25f3cb(0x21a)?_0xa4d09d['range']['startRow']:_0xa4d09d[_0x25f3cb(0x1d8)][_0x25f3cb(0x213)],_0x5f5643=_0x3d009c===_0x25f3cb(0x21a)?_0xa4d09d[_0x25f3cb(0x1d8)][_0x25f3cb(0x1fd)]:_0xa4d09d[_0x25f3cb(0x1d8)][_0x25f3cb(0x228)];return{..._0x1727f9,'axis':_0x3d009c,'type':_0x25f3cb(0x233),'index':_0x4a993e,'count':_0x5f5643-_0x4a993e+0x1};}function J(_0x487e36,_0x2eabe7,_0x1c9bbb){const _0x4633ec=_0x48b523;let _0x1e02a9=X(_0x487e36,_0x1c9bbb);if(!(_0x487e36!=null&&_0x487e36[_0x4633ec(0x1d8)])||!_0x1e02a9)return null;let _0x49285f=_0x2eabe7===_0x4633ec(0x21a)?_0x487e36[_0x4633ec(0x1d8)][_0x4633ec(0x226)]:_0x487e36[_0x4633ec(0x1d8)][_0x4633ec(0x213)],_0x5c6487=_0x2eabe7===_0x4633ec(0x21a)?_0x487e36[_0x4633ec(0x1d8)][_0x4633ec(0x1fd)]:_0x487e36[_0x4633ec(0x1d8)][_0x4633ec(0x228)];return{..._0x1e02a9,'axis':_0x2eabe7,'type':_0x4633ec(0x18d),'start':_0x49285f,'end':_0x5c6487};}function Y(_0x198267,_0x15c1dd,_0x3e9fd0){const _0x542731=_0x48b523;let _0x276201=X(_0x198267,_0x3e9fd0);if(!(_0x198267!=null&&_0x198267[_0x542731(0x1da)])||!_0x198267[_0x542731(0x1df)]||!_0x276201)return null;let _0x5ca367=_0x15c1dd===_0x542731(0x21a)?_0x198267[_0x542731(0x1da)][_0x542731(0x226)]:_0x198267['fromRange'][_0x542731(0x213)],_0x3a6625=_0x15c1dd==='row'?_0x198267[_0x542731(0x1da)]['endRow']:_0x198267[_0x542731(0x1da)][_0x542731(0x228)],_0x4c528c=_0x15c1dd===_0x542731(0x21a)?_0x198267[_0x542731(0x1df)]['startRow']:_0x198267[_0x542731(0x1df)][_0x542731(0x213)];return{..._0x276201,'axis':_0x15c1dd,'type':_0x542731(0x20a),'sourceStart':_0x5ca367,'sourceEnd':_0x3a6625,'destinationIndex':_0x4c528c};}function we(_0x14d878,_0x244993){const _0x38de9f=_0x48b523;switch(_0x14d878[_0x38de9f(0x1bc)]){case _0x38de9f(0x233):return{'unitId':_0x14d878[_0x38de9f(0x16d)],'subUnitId':_0x14d878[_0x38de9f(0x20f)],'axis':_0x14d878['axis'],'type':'delete','start':_0x14d878[_0x38de9f(0x1b4)],'end':_0x14d878['index']+_0x14d878[_0x38de9f(0x1f6)]-0x1};case _0x38de9f(0x18d):return{'unitId':_0x14d878[_0x38de9f(0x16d)],'subUnitId':_0x14d878[_0x38de9f(0x20f)],'axis':_0x14d878[_0x38de9f(0x217)],'type':_0x38de9f(0x233),'index':_0x14d878[_0x38de9f(0x1d1)],'count':_0x14d878[_0x38de9f(0x17e)]-_0x14d878[_0x38de9f(0x1d1)]+0x1,'restoreOutlines':_0x244993['filter'](_0x504f4e=>_0x504f4e[_0x38de9f(0x16d)]===_0x14d878['unitId']&&_0x504f4e['subUnitId']===_0x14d878[_0x38de9f(0x20f)]&&_0x504f4e[_0x38de9f(0x217)]===_0x14d878[_0x38de9f(0x217)])};case _0x38de9f(0x20a):return Te(_0x14d878);}}function Te(_0x3f89e5){const _0x2b6727=_0x48b523;let _0x42dea1=_0x3f89e5['sourceEnd']-_0x3f89e5[_0x2b6727(0x1ce)]+0x1;return _0x3f89e5[_0x2b6727(0x1ba)]>=_0x3f89e5['sourceStart']&&_0x3f89e5[_0x2b6727(0x1ba)]<=_0x3f89e5[_0x2b6727(0x1b1)]+0x1?{..._0x3f89e5}:_0x3f89e5[_0x2b6727(0x1ba)]>_0x3f89e5[_0x2b6727(0x1b1)]+0x1?{..._0x3f89e5,'sourceStart':_0x3f89e5[_0x2b6727(0x1ba)]-_0x42dea1,'sourceEnd':_0x3f89e5[_0x2b6727(0x1ba)]-0x1,'destinationIndex':_0x3f89e5[_0x2b6727(0x1ce)]}:{..._0x3f89e5,'sourceStart':_0x3f89e5[_0x2b6727(0x1ba)],'sourceEnd':_0x3f89e5['destinationIndex']+_0x42dea1-0x1,'destinationIndex':_0x3f89e5['sourceEnd']+0x1};}function X(_0x2f17fc,_0x4c54ab){const _0x565a55=_0x48b523;let _0x51424b=(_0x2f17fc==null?void 0x0:_0x2f17fc[_0x565a55(0x16d)])??(_0x4c54ab==null?void 0x0:_0x4c54ab[_0x565a55(0x16d)]),_0x14daae=(_0x2f17fc==null?void 0x0:_0x2f17fc[_0x565a55(0x20f)])??(_0x4c54ab==null?void 0x0:_0x4c54ab[_0x565a55(0x20f)]);return _0x51424b&&_0x14daae?{'unitId':_0x51424b,'subUnitId':_0x14daae}:null;}function Z(){const _0x3f6b76=_0x48b523;return{'redos':[...G[_0x3f6b76(0x16c)]],'undos':[...G[_0x3f6b76(0x183)]],'preRedos':[...G[_0x3f6b76(0x1e5)]??[]],'preUndos':[...G['preUndos']??[]]};}let Q=class extends e[_0x48b523(0x231)]{constructor(_0xc8fab1,_0x3a3287){const _0xd27704=_0x48b523;super(),this[_0xd27704(0x1fc)]=_0xc8fab1,this['_sheetsOutlineModel']=_0x3a3287,this['_initResource']();}['_initResource'](){const _0x3ba98e=_0x48b523;this[_0x3ba98e(0x178)](this[_0x3ba98e(0x1fc)][_0x3ba98e(0x1f3)]({'pluginName':V,'businesses':[e['UniverInstanceType'][_0x3ba98e(0x1f8)]],'toJson':_0x530243=>JSON[_0x3ba98e(0x1c9)](this[_0x3ba98e(0x1b5)][_0x3ba98e(0x1a9)](_0x530243)),'parseJson':_0xe4d31=>JSON[_0x3ba98e(0x224)](_0xe4d31),'onLoad':(_0x264d52,_0x1f9fed)=>this[_0x3ba98e(0x1b5)][_0x3ba98e(0x225)](_0x264d52,_0x1f9fed),'onUnLoad':_0x130aeb=>this['_sheetsOutlineModel']['removeUnit'](_0x130aeb)}));}};Q=W([U(0x0,e['IResourceManagerService']),U(0x1,(0x0,e[_0x48b523(0x1c0)])(E))],Q);let $=class extends e[_0x48b523(0x1af)]{constructor(_0x1e1929=H,_0x47303a,_0x5c0d89,_0x557d4c){const _0x37ca45=_0x48b523;super(),this[_0x37ca45(0x1b3)]=_0x1e1929,this[_0x37ca45(0x1a8)]=_0x47303a,this[_0x37ca45(0x1d4)]=_0x5c0d89,this['_configService']=_0x557d4c;let {..._0x38fd0e}=(0x0,e[_0x37ca45(0x196)])({},H,this[_0x37ca45(0x1b3)]);this['_configService'][_0x37ca45(0x1e4)](_0x37ca45(0x172),_0x38fd0e);}[_0x48b523(0x203)](){const _0x207561=_0x48b523;this[_0x207561(0x1a8)][_0x207561(0x1cb)]([E]),this[_0x207561(0x1a8)]['add']([D]),this[_0x207561(0x1a8)][_0x207561(0x1cb)]([Q]),this['_injector'][_0x207561(0x1cb)]([K]),this[_0x207561(0x1ea)](),this[_0x207561(0x1a8)][_0x207561(0x22e)](E),this['_injector'][_0x207561(0x22e)](D),this['_injector'][_0x207561(0x22e)](Q),this[_0x207561(0x1a8)]['get'](K);}['_initRegisterCommand'](){const _0x134ac6=_0x48b523;[j,P,z,N][_0x134ac6(0x1b2)](_0x1349c5=>{const _0xb28343=_0x134ac6;this[_0xb28343(0x178)](this['_commandService'][_0xb28343(0x1f0)](_0x1349c5));}),[O,k,F,M,B]['forEach'](_0x476605=>{const _0x36d6e=_0x134ac6;this[_0x36d6e(0x178)](this['_commandService']['registerCommand'](_0x476605));});}};T($,_0x48b523(0x1bb),V),T($,_0x48b523(0x174),ye),T($,'version',be),T($,_0x48b523(0x1bc),e[_0x48b523(0x1ed)][_0x48b523(0x1f8)]),$=W([(0x0,e[_0x48b523(0x17a)])(i[_0x48b523(0x185)],t[_0x48b523(0x194)]),U(0x1,(0x0,e[_0x48b523(0x1c0)])(e[_0x48b523(0x18a)])),U(0x2,e[_0x48b523(0x18e)]),U(0x3,e[_0x48b523(0x1b6)])],$),exports[_0x48b523(0x238)]=j,exports[_0x48b523(0x235)]=O,exports[_0x48b523(0x1a4)]=N,exports[_0x48b523(0x1f1)]=M,exports[_0x48b523(0x201)]=a,exports['DimensionOutlineErrorReason']=o,exports[_0x48b523(0x1e2)]=P,exports[_0x48b523(0x1de)]=k,exports[_0x48b523(0x21f)]=V,exports[_0x48b523(0x1d6)]=z,exports['SetDimensionOutlineCollapsedMutation']=F,exports[_0x48b523(0x1c2)]=D,exports[_0x48b523(0x19f)]=E,exports[_0x48b523(0x170)]=B,Object['defineProperty'](exports,_0x48b523(0x1a2),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x48b523(0x1be)]=f,exports[_0x48b523(0x211)]=p,exports[_0x48b523(0x1cf)]=ue,exports['hasDimensionOutlineViewPermission']=A,exports[_0x48b523(0x19a)]=y,exports[_0x48b523(0x1cd)]=v,exports[_0x48b523(0x1a3)]=b;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x39e1aa=_0xe1b9;(function(_0x25c429,_0x54851c){var _0x950144=_0xe1b9,_0x4b3585=_0x25c429();while(!![]){try{var _0x1a0692=-parseInt(_0x950144(0x192))/0x1*(parseInt(_0x950144(0x181))/0x2)+parseInt(_0x950144(0x17a))/0x3+-parseInt(_0x950144(0x191))/0x4*(parseInt(_0x950144(0x180))/0x5)+parseInt(_0x950144(0x189))/0x6+-parseInt(_0x950144(0x185))/0x7+parseInt(_0x950144(0x18a))/0x8+-parseInt(_0x950144(0x186))/0x9*(-parseInt(_0x950144(0x178))/0xa);if(_0x1a0692===_0x54851c)break;else _0x4b3585['push'](_0x4b3585['shift']());}catch(_0x117dc5){_0x4b3585['push'](_0x4b3585['shift']());}}}(_0x1a96,0x73c78));import{AddDimensionOutlineCommand as _0x14ba49,ClearDimensionOutlinesCommand as _0x467796,DimensionOutlineAxis as _0x1258d0,DimensionOutlineErrorReason as _0x29ab78,RemoveDimensionOutlineCommand as _0xdb1f28,SetDimensionOutlineCollapsedCommand as _0x3e79e2,SheetsOutlineModel as _0x3526e7}from'@univerjs-pro/sheets-outline';import{FEnum as _0x5da7be}from'@univerjs/core/facade';function _0xe1b9(_0x4a694b,_0x55d8bf){_0x4a694b=_0x4a694b-0x178;var _0x1a961f=_0x1a96();var _0xe1b946=_0x1a961f[_0x4a694b];return _0xe1b946;}import{FWorksheet as _0x47c83b}from'@univerjs/sheets/facade';var l=class extends _0x5da7be{get[_0x39e1aa(0x184)](){return _0x1258d0;}get[_0x39e1aa(0x18f)](){return _0x29ab78;}};_0x5da7be[_0x39e1aa(0x17f)](l);var u=class extends _0x47c83b{[_0x39e1aa(0x190)](_0x50e197,_0xe81133){var _0x49c791=_0x39e1aa;return this[_0x49c791(0x183)](_0x1258d0[_0x49c791(0x18d)],_0x50e197,_0xe81133);}['addColumnOutline'](_0x1b94f5,_0x3667e5){var _0x34a4a9=_0x39e1aa;return this['_addDimensionOutline'](_0x1258d0[_0x34a4a9(0x188)],_0x1b94f5,_0x3667e5);}['removeDimensionOutline'](_0x8efba3){var _0x285d04=_0x39e1aa;return this[_0x285d04(0x187)]['syncExecuteCommand'](_0xdb1f28['id'],{'unitId':this[_0x285d04(0x17d)][_0x285d04(0x18e)](),'subUnitId':this[_0x285d04(0x18b)][_0x285d04(0x182)](),'outlineId':_0x8efba3}),this;}['setDimensionOutlineCollapsed'](_0x50e367,_0x4b2e4f){var _0xb1b056=_0x39e1aa;return this['_commandService'][_0xb1b056(0x17b)](_0x3e79e2['id'],{'unitId':this[_0xb1b056(0x17d)][_0xb1b056(0x18e)](),'subUnitId':this[_0xb1b056(0x18b)]['getSheetId'](),'outlineId':_0x50e367,'collapsed':_0x4b2e4f}),this;}[_0x39e1aa(0x17c)](_0x3ecb52,_0x538777,_0x330d6c){var _0x470d8a=_0x39e1aa;return this['_commandService'][_0x470d8a(0x17b)](_0x467796['id'],{'unitId':this[_0x470d8a(0x17d)][_0x470d8a(0x18e)](),'subUnitId':this[_0x470d8a(0x18b)][_0x470d8a(0x182)](),'axis':_0x3ecb52,'start':_0x538777,'end':_0x330d6c}),this;}['getDimensionOutlines'](_0x4ec3a7){var _0x24dc2b=_0x39e1aa;let _0x3cf39d=this['_injector'][_0x24dc2b(0x17e)](_0x3526e7)['getOutlines'](this[_0x24dc2b(0x17d)]['getUnitId'](),this[_0x24dc2b(0x18b)][_0x24dc2b(0x182)]());return _0x4ec3a7?_0x3cf39d[_0x24dc2b(0x179)](_0x5ca77=>_0x5ca77[_0x24dc2b(0x18c)]===_0x4ec3a7):_0x3cf39d;}['_addDimensionOutline'](_0xc4c11c,_0xb895ad,_0x2f5961){var _0x114850=_0x39e1aa;return this[_0x114850(0x187)][_0x114850(0x17b)](_0x14ba49['id'],{'unitId':this[_0x114850(0x17d)][_0x114850(0x18e)](),'subUnitId':this[_0x114850(0x18b)][_0x114850(0x182)](),'axis':_0xc4c11c,'start':_0xb895ad,'end':_0xb895ad+_0x2f5961-0x1}),this;}};_0x47c83b[_0x39e1aa(0x17f)](u);export{};function _0x1a96(){var _0x138778=['addRowOutline','1114700qIuVIi','721642zlgdqY','170tQqGHs','filter','83670MuwoCc','syncExecuteCommand','clearDimensionOutlines','_workbook','get','extend','5BUPCxt','2KZsBZD','getSheetId','_addDimensionOutline','DimensionOutlineAxis','5597403CzhFAs','362709vcmcmd','_commandService','COLUMN','5112546irRhef','5672640saQgXo','_worksheet','axis','ROW','getUnitId','DimensionOutlineErrorReason'];_0x1a96=function(){return _0x138778;};return _0x1a96();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ce52f=_0x2f6c;(function(_0x39cc53,_0x275b02){const _0x50d63f=_0x2f6c,_0x16f0c8=_0x39cc53();while(!![]){try{const _0x2645fa=-parseInt(_0x50d63f(0x1c2))/0x1*(parseInt(_0x50d63f(0x156))/0x2)+parseInt(_0x50d63f(0x163))/0x3*(-parseInt(_0x50d63f(0x176))/0x4)+-parseInt(_0x50d63f(0x183))/0x5+parseInt(_0x50d63f(0x16c))/0x6+parseInt(_0x50d63f(0x19e))/0x7*(parseInt(_0x50d63f(0x17e))/0x8)+-parseInt(_0x50d63f(0x1a1))/0x9*(parseInt(_0x50d63f(0x1d4))/0xa)+parseInt(_0x50d63f(0x1ae))/0xb*(parseInt(_0x50d63f(0x1b1))/0xc);if(_0x2645fa===_0x275b02)break;else _0x16f0c8['push'](_0x16f0c8['shift']());}catch(_0x48b81f){_0x16f0c8['push'](_0x16f0c8['shift']());}}}(_0x1852,0xd90b5));import{CommandType as _0x370b23,CustomCommandExecutionError as _0x342912,DependentOn as _0x35d92d,Disposable as _0x28774d,ICommandService as _0x5b34db,IConfigService as _0x3ab1ed,IPermissionService as _0x4da996,IResourceManagerService as _0x57db0b,IUndoRedoService as _0x236935,IUniverInstanceService as _0x501b88,Inject as _0xbe0a21,Injector as _0x1ea18e,Plugin as _0xd243c4,UniverInstanceType as _0x1395c1,generateRandomId as _0x358551,merge as _0x1a0e54,sequenceExecute as _0x57ab44}from'@univerjs/core';import{InsertColCommand as _0x3ee2a4,InsertRowCommand as _0x3f6c82,MoveColsCommand as _0x18c95c,MoveRowsCommand as _0x50a7df,RemoveColCommand as _0x4afcff,RemoveRowCommand as _0x4c3e8d,SetColHiddenMutation as _0x401771,SetColVisibleMutation as _0x316671,SetRowHiddenMutation as _0x4a1f85,SetRowVisibleMutation as _0x31f5ab,SheetInterceptorService as _0xb4bd43,SheetPermissionCheckController as _0x345ac3,UniverSheetsPlugin as _0x1d7adc,WorkbookViewPermission as _0x1753bb,WorksheetViewPermission as _0x86b3d9,getSheetCommandTarget as _0x3c973f}from'@univerjs/sheets';import{Subject as _0x53422c,of as _0x51ab36}from'rxjs';import{debounceTime as _0x194e36,map as _0x12a638,startWith as _0x23085b}from'rxjs/operators';import{UniverLicensePlugin as _0x1e0280}from'@univerjs-pro/license';let _e=function(_0x5ad970){const _0x4bb20b=_0x2f6c;return _0x5ad970[_0x4bb20b(0x197)]=_0x4bb20b(0x1dc),_0x5ad970[_0x4bb20b(0x1ed)]='column',_0x5ad970;}({}),ve=function(_0x525da7){const _0x2b5761=_0x2f6c;return _0x525da7[_0x2b5761(0x1f1)]=_0x2b5761(0x1d1),_0x525da7[_0x2b5761(0x196)]=_0x2b5761(0x1c5),_0x525da7['CROSSING']=_0x2b5761(0x171),_0x525da7[_0x2b5761(0x1fc)]='max-depth',_0x525da7[_0x2b5761(0x19f)]=_0x2b5761(0x1f7),_0x525da7[_0x2b5761(0x1c4)]=_0x2b5761(0x1c6),_0x525da7[_0x2b5761(0x1af)]=_0x2b5761(0x192),_0x525da7;}({});var S=class extends Error{constructor(_0x11f16a,_0x69a38b,_0x2e3a39){const _0x4016c0=_0x2f6c;super(_0x69a38b),this[_0x4016c0(0x1b7)]=_0x11f16a,this[_0x4016c0(0x1a5)]=_0x2e3a39,this[_0x4016c0(0x1da)]=_0x4016c0(0x17a);}};function ye(_0x2c4a49){const _0x3459f6=_0x2f6c;return _0x2c4a49 instanceof S?_0x2c4a49[_0x3459f6(0x1b7)]:_0x2c4a49 instanceof Error?_0x2c4a49[_0x3459f6(0x1ac)][_0x3459f6(0x1e0)]('split\x20dimension\x20outline')?'move-splits-outline':_0x2c4a49[_0x3459f6(0x1ac)][_0x3459f6(0x1e0)](_0x3459f6(0x1bc))?_0x3459f6(0x1fb):_0x2c4a49[_0x3459f6(0x1ac)]['includes'](_0x3459f6(0x1b6))?_0x3459f6(0x171):_0x2c4a49['message'][_0x3459f6(0x1e0)](_0x3459f6(0x1fa))?_0x3459f6(0x1d1):'unknown':_0x3459f6(0x192);}function be(_0x3afd38){const _0x4d75d3=_0x2f6c;return _0x3afd38 instanceof S?_0x3afd38[_0x4d75d3(0x1a5)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x2a97b2,_0x454200){const _0x4c8fb5=_0x2f6c;return _0x2a97b2['unitId']===_0x454200[_0x4c8fb5(0x1e1)]&&_0x2a97b2['subUnitId']===_0x454200[_0x4c8fb5(0x18f)]&&_0x2a97b2[_0x4c8fb5(0x162)]===_0x454200[_0x4c8fb5(0x162)];}function T(_0x3f8325,_0x59b4a8={}){const _0xa6ef92=_0x2f6c;let _0x2115c3=_0x59b4a8[_0xa6ef92(0x1b5)]??0x8,_0x4b841f=new Map();for(let _0x27bfc0 of _0x3f8325){let _0x8a7f6a=_0x27bfc0['unitId']+':'+_0x27bfc0['subUnitId']+':'+_0x27bfc0[_0xa6ef92(0x162)],_0x22d62b=_0x4b841f['get'](_0x8a7f6a);_0x22d62b?_0x22d62b[_0xa6ef92(0x1a8)](_0x27bfc0):_0x4b841f[_0xa6ef92(0x161)](_0x8a7f6a,[_0x27bfc0]);}let _0x39a40a=[];for(let _0x23984e of _0x4b841f[_0xa6ef92(0x1e2)]()){let _0x31b6c4=[..._0x23984e][_0xa6ef92(0x1d3)](j),_0x50e24b=[];for(let _0x128d4c of _0x31b6c4){for(Me(_0x128d4c);_0x50e24b[_0xa6ef92(0x169)]>0x0&&_0x128d4c[_0xa6ef92(0x1e5)]>_0x50e24b[_0x50e24b[_0xa6ef92(0x169)]-0x1][_0xa6ef92(0x168)];)_0x50e24b[_0xa6ef92(0x150)]();let _0x19b044=_0x50e24b[_0x50e24b[_0xa6ef92(0x169)]-0x1];if(_0x19b044&&_0x128d4c['end']>_0x19b044['end'])throw new S(_0xa6ef92(0x171),_0xa6ef92(0x173),_0x128d4c['id']);let _0x2f3bcd=_0x19b044?_0x19b044[_0xa6ef92(0x1bc)]+0x1:0x1;if(_0x2f3bcd>_0x2115c3)throw new S(_0xa6ef92(0x1fb),_0xa6ef92(0x177)+_0x2115c3,_0x128d4c['id']);let _0xa2f298={..._0x128d4c,'depth':_0x2f3bcd,'parentId':_0x19b044==null?void 0x0:_0x19b044['id'],'anchor':_0x128d4c[_0xa6ef92(0x168)],'children':[]};_0x19b044?_0x19b044['children'][_0xa6ef92(0x1a8)](_0xa2f298):_0x39a40a[_0xa6ef92(0x1a8)](_0xa2f298),_0x50e24b[_0xa6ef92(0x1a8)](_0xa2f298);}}return _0x39a40a;}function E(_0x5f07fa,_0x23e6f9,_0x1e9939={}){const _0x5ec90d=_0x2f6c;if(_0x23e6f9['start']<0x0||_0x23e6f9[_0x5ec90d(0x1e5)]>_0x23e6f9['end'])return{'valid':!0x1,'reason':'invalid-range'};if(_0x1e9939[_0x5ec90d(0x190)]!=null&&_0x23e6f9[_0x5ec90d(0x168)]>=_0x1e9939[_0x5ec90d(0x190)])return{'valid':!0x1,'reason':_0x5ec90d(0x1c5)};let _0x29b345=_0x5f07fa[_0x5ec90d(0x1f2)](_0x56b389=>w(_0x56b389,_0x23e6f9));for(let _0x24f48e of _0x29b345)if(Ne(_0x24f48e,_0x23e6f9))return{'valid':!0x1,'reason':_0x5ec90d(0x171)};try{T([..._0x5f07fa,_0x23e6f9],_0x1e9939);}catch(_0x3e4218){let _0x4a1b94=ye(_0x3e4218);return _0x4a1b94===_0x5ec90d(0x1fb)?{'valid':!0x1,'reason':'max-depth'}:_0x4a1b94===_0x5ec90d(0x1d1)?{'valid':!0x1,'reason':_0x5ec90d(0x1d1)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x32caad,_0x153684,_0x417054={}){const _0x42b1a8=_0x2f6c;let _0x294cbe=E(_0x32caad,_0x153684,_0x417054);if(!_0x294cbe[_0x42b1a8(0x1bd)])throw Error(_0x294cbe['reason']??'invalid-dimension-outline');return[..._0x32caad,_0x153684];}function Se(_0x4c5494,_0x222dd3){const _0x294dbe=_0x2f6c;let _0xb25e8b=_0x222dd3['start'],_0x730a07=_0x222dd3[_0x294dbe(0x168)],_0x412efd=[],_0x232066=!0x0;for(;_0x232066;){_0x232066=!0x1;for(let _0x3a4ced of _0x4c5494)!_0x412efd['includes'](_0x3a4ced)&&w(_0x3a4ced,_0x222dd3)&&Ae(_0x3a4ced[_0x294dbe(0x1e5)],_0x3a4ced[_0x294dbe(0x168)],_0xb25e8b,_0x730a07)&&(_0x412efd['push'](_0x3a4ced),_0xb25e8b=Math[_0x294dbe(0x164)](_0xb25e8b,_0x3a4ced[_0x294dbe(0x1e5)]),_0x730a07=Math['max'](_0x730a07,_0x3a4ced['end']),_0x232066=!0x0);}if(_0x412efd['length']===0x0)return null;let [_0x2e7690]=[..._0x412efd]['sort'](j);return{'mergedOutline':{..._0x2e7690,'start':_0xb25e8b,'end':_0x730a07},'mergedOutlines':_0x412efd};}function Ce(_0x454250,_0x54836f){const _0x4675f2=_0x2f6c;return _0x454250['filter'](_0x39f988=>!w(_0x39f988,_0x54836f)||!(_0x39f988[_0x4675f2(0x1e5)]>=_0x54836f[_0x4675f2(0x1e5)]&&_0x39f988[_0x4675f2(0x168)]<=_0x54836f[_0x4675f2(0x168)]));}function we(_0xfab062,_0x170931,_0x47a83e,_0xa036ba){const _0x29f5ce=_0x2f6c;return Te(_0xfab062[_0x29f5ce(0x1f2)](_0x1de5b9=>_0x1de5b9[_0x29f5ce(0x1e1)]===_0x170931&&_0x1de5b9['subUnitId']===_0x47a83e&&_0x1de5b9[_0x29f5ce(0x162)]===_0xa036ba&&_0x1de5b9[_0x29f5ce(0x182)])[_0x29f5ce(0x1bf)](_0x3ade80=>({'start':_0x3ade80['start'],'end':_0x3ade80[_0x29f5ce(0x168)]})));}function Te(_0x3ab997){const _0x3f98d7=_0x2f6c;if(_0x3ab997[_0x3f98d7(0x169)]===0x0)return[];let _0x2df543=[..._0x3ab997][_0x3f98d7(0x1d3)]((_0x4cb9ea,_0x38243c)=>_0x4cb9ea[_0x3f98d7(0x1e5)]-_0x38243c[_0x3f98d7(0x1e5)]||_0x4cb9ea['end']-_0x38243c['end']),_0x379a89=[];for(let _0x59d61e of _0x2df543){let _0x4a025e=_0x379a89[_0x379a89[_0x3f98d7(0x169)]-0x1];!_0x4a025e||_0x59d61e[_0x3f98d7(0x1e5)]>_0x4a025e[_0x3f98d7(0x168)]+0x1?_0x379a89[_0x3f98d7(0x1a8)]({..._0x59d61e}):_0x4a025e['end']=Math[_0x3f98d7(0x1eb)](_0x4a025e[_0x3f98d7(0x168)],_0x59d61e[_0x3f98d7(0x168)]);}return _0x379a89;}function D(_0xd55074,_0x394f20){const _0x3fa33c=_0x2f6c;return _0x394f20['count']<=0x0?_0xd55074:A(_0xd55074[_0x3fa33c(0x1bf)](_0x1678b5=>w(_0x1678b5,_0x394f20)?_0x394f20[_0x3fa33c(0x1df)]<=_0x1678b5[_0x3fa33c(0x1e5)]?{..._0x1678b5,'start':_0x1678b5[_0x3fa33c(0x1e5)]+_0x394f20[_0x3fa33c(0x179)],'end':_0x1678b5['end']+_0x394f20[_0x3fa33c(0x179)]}:_0x1678b5[_0x3fa33c(0x1e5)]<_0x394f20[_0x3fa33c(0x1df)]&&_0x394f20[_0x3fa33c(0x1df)]<=_0x1678b5[_0x3fa33c(0x168)]?{..._0x1678b5,'end':_0x1678b5[_0x3fa33c(0x168)]+_0x394f20[_0x3fa33c(0x179)]}:_0x1678b5:_0x1678b5));}function O(_0x5d5f91,_0x1be45c){const _0x55de3d=_0x2f6c;if(_0x1be45c[_0x55de3d(0x1e5)]>_0x1be45c[_0x55de3d(0x168)])return _0x5d5f91;let _0x23a907=_0x1be45c[_0x55de3d(0x168)]-_0x1be45c[_0x55de3d(0x1e5)]+0x1,_0x50a896=[];for(let _0x53f0ee of _0x5d5f91){if(!w(_0x53f0ee,_0x1be45c)){_0x50a896[_0x55de3d(0x1a8)](_0x53f0ee);continue;}if(_0x53f0ee[_0x55de3d(0x168)]<_0x1be45c['start']){_0x50a896[_0x55de3d(0x1a8)](_0x53f0ee);continue;}if(_0x53f0ee[_0x55de3d(0x1e5)]>_0x1be45c[_0x55de3d(0x168)]){_0x50a896[_0x55de3d(0x1a8)]({..._0x53f0ee,'start':_0x53f0ee[_0x55de3d(0x1e5)]-_0x23a907,'end':_0x53f0ee[_0x55de3d(0x168)]-_0x23a907});continue;}let _0x5ca11b=Math[_0x55de3d(0x1eb)](_0x53f0ee[_0x55de3d(0x1e5)],_0x1be45c[_0x55de3d(0x1e5)]),_0x43b81d=Math[_0x55de3d(0x164)](_0x53f0ee[_0x55de3d(0x168)],_0x1be45c[_0x55de3d(0x168)]),_0x5222bd=Math[_0x55de3d(0x1eb)](0x0,_0x43b81d-_0x5ca11b+0x1),_0x5be394=_0x53f0ee[_0x55de3d(0x168)]-_0x53f0ee['start']+0x1-_0x5222bd;if(_0x5be394<=0x0)continue;let _0x34e2eb=_0x53f0ee[_0x55de3d(0x1e5)]<_0x1be45c[_0x55de3d(0x1e5)]?_0x53f0ee[_0x55de3d(0x1e5)]:_0x1be45c['start'];_0x50a896[_0x55de3d(0x1a8)]({..._0x53f0ee,'start':_0x34e2eb,'end':_0x34e2eb+_0x5be394-0x1});}return A(_0x50a896);}function k(_0x24400c,_0x4fdbca){const _0x128abf=_0x2f6c;if(_0x4fdbca[_0x128abf(0x166)]>_0x4fdbca['sourceEnd'])return _0x24400c;let _0x152a58=[];for(let _0xbee1ef of _0x24400c){if(!w(_0xbee1ef,_0x4fdbca)){_0x152a58['push'](_0xbee1ef);continue;}let _0x297627=Ee(_0xbee1ef,_0x4fdbca);if(_0x297627[_0x128abf(0x1b4)]===_0x128abf(0x194))throw new S('move-splits-outline',_0x128abf(0x170)+_0xbee1ef['id'],_0xbee1ef['id']);_0x152a58[_0x128abf(0x1a8)](_0x297627[_0x128abf(0x1ca)]);}return A(_0x152a58);}function Ee(_0x386fc0,_0x207792){const _0x1d8c55=_0x2f6c;let _0x4fb72b=De(_0x207792[_0x1d8c55(0x166)],_0x207792['sourceEnd']+0x1,_0x207792['destinationIndex']),_0x55f3f9=[],_0x41e789={'start':_0x386fc0[_0x1d8c55(0x1e5)],'end':_0x386fc0[_0x1d8c55(0x168)]+0x1};for(let _0xe35b21 of _0x4fb72b){let _0x2db21c=Oe(_0x41e789,_0xe35b21[_0x1d8c55(0x1fa)]);_0x2db21c&&_0x55f3f9[_0x1d8c55(0x1a8)]({'start':_0x2db21c[_0x1d8c55(0x1e5)]+_0xe35b21[_0x1d8c55(0x16d)],'end':_0x2db21c['end']+_0xe35b21[_0x1d8c55(0x16d)]});}let _0x3bdf04=ke(_0x55f3f9);return _0x3bdf04['length']===0x1?{'type':'ok','outline':{..._0x386fc0,'start':_0x3bdf04[0x0][_0x1d8c55(0x1e5)],'end':_0x3bdf04[0x0][_0x1d8c55(0x168)]-0x1}}:{'type':_0x1d8c55(0x194),'outline':_0x386fc0,'ranges':_0x3bdf04};}function De(_0x15dd7c,_0x1aa59c,_0x367949){const _0x272b3f=_0x2f6c;let _0x402b9c=_0x1aa59c-_0x15dd7c;if(_0x402b9c<=0x0)throw Error(_0x272b3f(0x191));return _0x367949>=_0x15dd7c&&_0x367949<=_0x1aa59c?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x367949<_0x15dd7c?[{'range':{'start':0x0,'end':_0x367949},'offset':0x0},{'range':{'start':_0x367949,'end':_0x15dd7c},'offset':_0x402b9c},{'range':{'start':_0x15dd7c,'end':_0x1aa59c},'offset':_0x367949-_0x15dd7c},{'range':{'start':_0x1aa59c,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x15dd7c},'offset':0x0},{'range':{'start':_0x15dd7c,'end':_0x1aa59c},'offset':_0x367949-_0x1aa59c},{'range':{'start':_0x1aa59c,'end':_0x367949},'offset':-_0x402b9c},{'range':{'start':_0x367949,'end':C},'offset':0x0}];}function Oe(_0x382e42,_0x3d5e53){const _0x499373=_0x2f6c;let _0x19484e=Math[_0x499373(0x1eb)](_0x382e42[_0x499373(0x1e5)],_0x3d5e53['start']),_0x25b11c=Math['min'](_0x382e42[_0x499373(0x168)],_0x3d5e53[_0x499373(0x168)]);return _0x19484e>=_0x25b11c?null:{'start':_0x19484e,'end':_0x25b11c};}function ke(_0x3fb232){const _0x2ad3f6=_0x2f6c;if(_0x3fb232[_0x2ad3f6(0x169)]===0x0)return[];let _0x5a7c90=[..._0x3fb232][_0x2ad3f6(0x1d3)]((_0xd75579,_0x1d725f)=>_0xd75579[_0x2ad3f6(0x1e5)]-_0x1d725f['start']||_0xd75579[_0x2ad3f6(0x168)]-_0x1d725f[_0x2ad3f6(0x168)]),_0x4a4f52=[];for(let _0x3b992e of _0x5a7c90){let _0x38922a=_0x4a4f52[_0x4a4f52[_0x2ad3f6(0x169)]-0x1];!_0x38922a||_0x3b992e[_0x2ad3f6(0x1e5)]>_0x38922a[_0x2ad3f6(0x168)]?_0x4a4f52[_0x2ad3f6(0x1a8)]({..._0x3b992e}):_0x38922a['end']=Math[_0x2ad3f6(0x1eb)](_0x38922a[_0x2ad3f6(0x168)],_0x3b992e[_0x2ad3f6(0x168)]);}return _0x4a4f52;}function Ae(_0x51b3be,_0x1b1fd5,_0x2fa9d6,_0x313cd2){return _0x1b1fd5+0x1===_0x2fa9d6||_0x313cd2+0x1===_0x51b3be;}function A(_0x1759d3){let _0x2ab679=je(_0x1759d3);return T(_0x2ab679),_0x2ab679;}function je(_0xc6ae5f){const _0x2b6fc7=_0x2f6c;let _0x3db9f3=new Map();for(let _0x176307 of _0xc6ae5f){let _0x4c1aba=[_0x176307[_0x2b6fc7(0x1e1)],_0x176307['subUnitId'],_0x176307[_0x2b6fc7(0x162)],_0x176307['start'],_0x176307['end']][_0x2b6fc7(0x1a3)](':'),_0x2174e7=_0x3db9f3[_0x2b6fc7(0x1b2)](_0x4c1aba);if(!_0x2174e7){_0x3db9f3[_0x2b6fc7(0x161)](_0x4c1aba,_0x176307);continue;}_0x3db9f3[_0x2b6fc7(0x161)](_0x4c1aba,{..._0x2174e7,'collapsed':_0x2174e7[_0x2b6fc7(0x182)]||_0x176307[_0x2b6fc7(0x182)]});}return Array[_0x2b6fc7(0x155)](_0x3db9f3[_0x2b6fc7(0x1e2)]());}function j(_0xad6196,_0x57357d){const _0x94e7a4=_0x2f6c;return _0xad6196['unitId']===_0x57357d['unitId']?_0xad6196[_0x94e7a4(0x18f)]===_0x57357d[_0x94e7a4(0x18f)]?_0xad6196[_0x94e7a4(0x162)]===_0x57357d[_0x94e7a4(0x162)]?_0xad6196[_0x94e7a4(0x1e5)]===_0x57357d['start']?_0x57357d['end']-_0xad6196[_0x94e7a4(0x168)]:_0xad6196['start']-_0x57357d['start']:_0xad6196[_0x94e7a4(0x162)][_0x94e7a4(0x1a9)](_0x57357d[_0x94e7a4(0x162)]):_0xad6196[_0x94e7a4(0x18f)][_0x94e7a4(0x1a9)](_0x57357d[_0x94e7a4(0x18f)]):_0xad6196['unitId'][_0x94e7a4(0x1a9)](_0x57357d[_0x94e7a4(0x1e1)]);}function Me(_0x46793b){const _0x1a1294=_0x2f6c;if(_0x46793b['start']>_0x46793b[_0x1a1294(0x168)])throw new S('invalid-range',_0x1a1294(0x1e4),_0x46793b['id']);}function Ne(_0x4795f2,_0x3b3fe5){const _0x17e238=_0x2f6c;let _0x5d5ce7=_0x4795f2['start']<=_0x3b3fe5[_0x17e238(0x168)]&&_0x3b3fe5['start']<=_0x4795f2['end'],_0x2f38ba=_0x4795f2['start']<=_0x3b3fe5['start']&&_0x3b3fe5[_0x17e238(0x168)]<=_0x4795f2['end'],_0xe31a67=_0x3b3fe5[_0x17e238(0x1e5)]<=_0x4795f2[_0x17e238(0x1e5)]&&_0x4795f2[_0x17e238(0x168)]<=_0x3b3fe5[_0x17e238(0x168)];return _0x5d5ce7&&!_0x2f38ba&&!_0xe31a67;}function M(_0x5a697){'@babel/helpers - typeof';const _0x1f7a54=_0x2f6c;return M=typeof Symbol==_0x1f7a54(0x15b)&&typeof Symbol['iterator']==_0x1f7a54(0x1ea)?function(_0x5eb1cb){return typeof _0x5eb1cb;}:function(_0x4fcfec){const _0x4688a4=_0x1f7a54;return _0x4fcfec&&typeof Symbol=='function'&&_0x4fcfec[_0x4688a4(0x19d)]===Symbol&&_0x4fcfec!==Symbol[_0x4688a4(0x1c8)]?_0x4688a4(0x1ea):typeof _0x4fcfec;},M(_0x5a697);}function Pe(_0x362d27,_0x141263){const _0x858a84=_0x2f6c;if(M(_0x362d27)!='object'||!_0x362d27)return _0x362d27;var _0x301220=_0x362d27[Symbol[_0x858a84(0x188)]];if(_0x301220!==void 0x0){var _0x3c633d=_0x301220['call'](_0x362d27,_0x141263||_0x858a84(0x186));if(M(_0x3c633d)!='object')return _0x3c633d;throw TypeError(_0x858a84(0x14f));}return(_0x141263==='string'?String:Number)(_0x362d27);}function Fe(_0x4bc23c){const _0x585918=_0x2f6c;var _0x53d53d=Pe(_0x4bc23c,_0x585918(0x159));return M(_0x53d53d)==_0x585918(0x1ea)?_0x53d53d:_0x53d53d+'';}function N(_0x5166cc,_0x569aa8,_0xddc6c8){const _0x4a2a4b=_0x2f6c;return(_0x569aa8=Fe(_0x569aa8))in _0x5166cc?Object[_0x4a2a4b(0x1cf)](_0x5166cc,_0x569aa8,{'value':_0xddc6c8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5166cc[_0x569aa8]=_0xddc6c8,_0x5166cc;}var P=class extends _0x28774d{constructor(..._0x38c1ef){const _0x9b0d47=_0x2f6c;super(..._0x38c1ef),N(this,_0x9b0d47(0x152),new Map()),N(this,'_change$',new _0x53422c()),N(this,_0x9b0d47(0x1aa),this[_0x9b0d47(0x1f5)][_0x9b0d47(0x1f3)]());}[_0x1ce52f(0x1a4)](_0x30d2d6,_0x57d879){const _0x5210c3=_0x1ce52f;var _0x569a4a;return[...((_0x569a4a=this['_outlines'][_0x5210c3(0x1b2)](_0x30d2d6))==null?void 0x0:_0x569a4a['get'](_0x57d879))??[]];}[_0x1ce52f(0x198)](_0x595fee){const _0x556b43=_0x1ce52f;let _0x51dc14=this[_0x556b43(0x152)][_0x556b43(0x1b2)](_0x595fee),_0x541c81=new Map();return _0x51dc14==null||_0x51dc14[_0x556b43(0x1f0)]((_0x1189ff,_0x2feffb)=>{const _0x5e2784=_0x556b43;_0x541c81[_0x5e2784(0x161)](_0x2feffb,[..._0x1189ff]);}),_0x541c81;}[_0x1ce52f(0x1e7)](_0x419325,_0x3f1574,_0x5e8d3e){const _0x373b39=_0x1ce52f;this[_0x373b39(0x1b9)](_0x419325)['set'](_0x3f1574,[..._0x5e8d3e]),this[_0x373b39(0x1f5)][_0x373b39(0x175)]({'unitId':_0x419325,'subUnitId':_0x3f1574});}[_0x1ce52f(0x17b)](_0x4060b8){const _0x58c189=_0x1ce52f;this[_0x58c189(0x152)]['delete'](_0x4060b8),this[_0x58c189(0x1f5)][_0x58c189(0x175)]({'unitId':_0x4060b8});}[_0x1ce52f(0x19a)](_0x4788ef){const _0x42d475=_0x1ce52f;let _0x1bb691=this['_outlines'][_0x42d475(0x1b2)](_0x4788ef),_0x160159={};return _0x1bb691==null||_0x1bb691[_0x42d475(0x1f0)]((_0x26aca0,_0x58eacc)=>{_0x160159[_0x58eacc]={'outlineList':[..._0x26aca0]};}),_0x160159;}[_0x1ce52f(0x1d5)](_0x4c8d10,_0x43b2d){const _0x483b25=_0x1ce52f;let _0x527af6=new Map();Object[_0x483b25(0x18e)](_0x43b2d)[_0x483b25(0x1f0)](([_0x21efbc,_0xfe494a])=>{const _0x25c2b7=_0x483b25;_0x527af6[_0x25c2b7(0x161)](_0x21efbc,[..._0xfe494a['outlineList']??[]]);}),this['_outlines']['set'](_0x4c8d10,_0x527af6),this['_change$'][_0x483b25(0x175)]({'unitId':_0x4c8d10});}[_0x1ce52f(0x153)](){const _0x6dfc01=_0x1ce52f;super[_0x6dfc01(0x153)](),this[_0x6dfc01(0x152)]['clear'](),this['_change$']['complete']();}[_0x1ce52f(0x1b9)](_0x58196b){const _0xa30bf5=_0x1ce52f;let _0x5eeea6=this[_0xa30bf5(0x152)][_0xa30bf5(0x1b2)](_0x58196b);return _0x5eeea6||(_0x5eeea6=new Map(),this[_0xa30bf5(0x152)][_0xa30bf5(0x161)](_0x58196b,_0x5eeea6)),_0x5eeea6;}},F=class extends _0x28774d{constructor(..._0x191b90){const _0x23fb42=_0x1ce52f;super(..._0x191b90),N(this,_0x23fb42(0x1e6),new _0x53422c()),N(this,_0x23fb42(0x1d0),this[_0x23fb42(0x1e6)][_0x23fb42(0x1f3)]());}['emit'](_0x25f904){const _0x175ffc=_0x1ce52f;this[_0x175ffc(0x1e6)][_0x175ffc(0x175)](_0x25f904);}['dispose'](){const _0x3aeb97=_0x1ce52f;super['dispose'](),this[_0x3aeb97(0x1e6)][_0x3aeb97(0x15d)]();}};const I={'id':_0x1ce52f(0x17c),'type':_0x370b23['MUTATION'],'handler':(_0x3dc59e,_0x4b4ca8)=>{const _0x46f9c9=_0x1ce52f;let _0x468bf1=_0x3dc59e[_0x46f9c9(0x1b2)](P),_0x24bbf7=_0x468bf1[_0x46f9c9(0x1a4)](_0x4b4ca8[_0x46f9c9(0x1e1)],_0x4b4ca8[_0x46f9c9(0x18f)]);return _0x468bf1[_0x46f9c9(0x1e7)](_0x4b4ca8['unitId'],_0x4b4ca8[_0x46f9c9(0x18f)],xe(_0x24bbf7,_0x4b4ca8['outline'])),!0x0;}},L={'id':_0x1ce52f(0x17f),'type':_0x370b23[_0x1ce52f(0x1ce)],'handler':(_0x51d7af,_0x5b5bd4)=>{const _0x3754ed=_0x1ce52f;let _0x22daa9=_0x51d7af[_0x3754ed(0x1b2)](P),_0xb54efc=_0x22daa9[_0x3754ed(0x1a4)](_0x5b5bd4['unitId'],_0x5b5bd4[_0x3754ed(0x18f)]);return _0x22daa9['setOutlines'](_0x5b5bd4[_0x3754ed(0x1e1)],_0x5b5bd4[_0x3754ed(0x18f)],_0xb54efc[_0x3754ed(0x1f2)](_0x2cb327=>_0x2cb327['id']!==_0x5b5bd4[_0x3754ed(0x1a5)])),!0x0;}};function R(_0x549ccd,_0x1c98d6,_0x45c067){let _0x2aaf82=Le(_0x549ccd);return!_0x2aaf82||_0x2aaf82['permissionCheckWithoutRange']({'workbookTypes':[_0x1753bb],'worksheetTypes':[_0x86b3d9]},_0x1c98d6,_0x45c067);}function Ie(_0x2de631,_0x12825b,_0x4b0a10){const _0x72bc7b=_0x1ce52f;let _0x582eef=Re(_0x2de631);return((_0x582eef==null?void 0x0:_0x582eef[_0x72bc7b(0x18a)])??_0x51ab36(null))[_0x72bc7b(0x160)](_0x194e36(0x64),_0x23085b(null),_0x12a638(()=>R(_0x2de631,_0x12825b,_0x4b0a10)));}function Le(_0x1e9706){const _0x3fdb96=_0x1ce52f;if(typeof _0x1e9706['has']==_0x3fdb96(0x15b)&&!_0x1e9706['has'](_0x345ac3))return null;try{return _0x1e9706['get'](_0x345ac3);}catch{return null;}}function Re(_0x464f49){const _0x5cb6aa=_0x1ce52f;if(typeof _0x464f49[_0x5cb6aa(0x1c7)]=='function'&&!_0x464f49[_0x5cb6aa(0x1c7)](_0x4da996))return null;try{return _0x464f49['get'](_0x4da996);}catch{return null;}}const z={'id':_0x1ce52f(0x165),'type':_0x370b23[_0x1ce52f(0x1dd)],'handler':(_0x358bc2,_0x5844c0)=>{const _0xc58c77=_0x1ce52f;if(!_0x5844c0)return!0x1;let _0x544bc0=_0x3c973f(_0x358bc2[_0xc58c77(0x1b2)](_0x501b88),_0x5844c0);if(!_0x544bc0)return!0x1;let {unitId:_0x3e7b7e,subUnitId:_0x4b0a38,worksheet:_0x2917f4}=_0x544bc0;if(!R(_0x358bc2,_0x3e7b7e,_0x4b0a38))return!0x1;let _0x4e217e=_0x358bc2[_0xc58c77(0x1b2)](P),_0xf0eff7={'id':_0xc58c77(0x1a6)+_0x358551(0x6),'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'axis':_0x5844c0['axis'],'start':_0x5844c0[_0xc58c77(0x1e5)],'end':_0x5844c0['end'],'collapsed':!0x1},_0x29040d=_0x5844c0[_0xc58c77(0x162)]===_0xc58c77(0x1dc)?_0x2917f4[_0xc58c77(0x1e9)]():_0x2917f4[_0xc58c77(0x1ab)](),_0x2887ac=_0x4e217e[_0xc58c77(0x1a4)](_0x3e7b7e,_0x4b0a38),_0x3d3646=Se(_0x2887ac,_0xf0eff7),_0x382afa=(_0x3d3646==null?void 0x0:_0x3d3646[_0xc58c77(0x187)])??[],_0x5d0a4c=(_0x3d3646==null?void 0x0:_0x3d3646[_0xc58c77(0x1ba)])??_0xf0eff7,_0x15497f=E(_0x3d3646?_0x2887ac[_0xc58c77(0x1f2)](_0x415209=>!_0x382afa[_0xc58c77(0x1a2)](_0x4141b8=>_0x4141b8['id']===_0x415209['id'])):_0x2887ac,_0x5d0a4c,{'maxIndex':_0x29040d});if(!_0x15497f['valid'])return _0x358bc2[_0xc58c77(0x1b2)](F)[_0xc58c77(0x19c)]({'reason':_0x15497f['reason']??'unknown','commandId':z['id'],'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'axis':_0x5844c0[_0xc58c77(0x162)],'outlineId':_0x5d0a4c['id']}),!0x1;let _0x4c0cb6=[..._0x382afa[_0xc58c77(0x1bf)](_0x16b82a=>({'id':L['id'],'params':{'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'outlineId':_0x16b82a['id']}})),{'id':I['id'],'params':{'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'outline':_0x5d0a4c}}],_0x2387e5=[{'id':L['id'],'params':{'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'outlineId':_0x5d0a4c['id']}},..._0x382afa[_0xc58c77(0x1bf)](_0x3d91ac=>({'id':I['id'],'params':{'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'outline':_0x3d91ac}}))];return _0x57ab44(_0x4c0cb6,_0x358bc2[_0xc58c77(0x1b2)](_0x5b34db))['result']?(_0x358bc2[_0xc58c77(0x1b2)](_0x236935)[_0xc58c77(0x1ad)]({'unitID':_0x3e7b7e,'undoMutations':_0x2387e5,'redoMutations':_0x4c0cb6}),!0x0):!0x1;}},B={'id':_0x1ce52f(0x151),'type':_0x370b23[_0x1ce52f(0x1ce)],'handler':(_0x2d80d9,_0x184fb8)=>{const _0x1b3e6d=_0x1ce52f;let _0x44cece=_0x2d80d9[_0x1b3e6d(0x1b2)](P),_0x5b7ee0=_0x44cece[_0x1b3e6d(0x1a4)](_0x184fb8['unitId'],_0x184fb8[_0x1b3e6d(0x18f)]);return _0x44cece[_0x1b3e6d(0x1e7)](_0x184fb8['unitId'],_0x184fb8[_0x1b3e6d(0x18f)],Ce(_0x5b7ee0,_0x184fb8)),!0x0;}},V={'id':_0x1ce52f(0x167),'type':_0x370b23[_0x1ce52f(0x1dd)],'handler':(_0x4321ae,_0x12d71e)=>{const _0x88d6cb=_0x1ce52f;if(!_0x12d71e)return!0x1;let _0x3fb726=_0x3c973f(_0x4321ae[_0x88d6cb(0x1b2)](_0x501b88),_0x12d71e);if(!_0x3fb726)return!0x1;let {unitId:_0xc9f397,subUnitId:_0x4b1a1e}=_0x3fb726;if(!R(_0x4321ae,_0xc9f397,_0x4b1a1e))return!0x1;let _0x1c1b65={'unitId':_0xc9f397,'subUnitId':_0x4b1a1e,'axis':_0x12d71e['axis'],'start':_0x12d71e['start'],'end':_0x12d71e['end']},_0x3ce980=_0x4321ae[_0x88d6cb(0x1b2)](P)[_0x88d6cb(0x1a4)](_0xc9f397,_0x4b1a1e)['filter'](_0x2c26e9=>w(_0x2c26e9,_0x1c1b65)&&_0x2c26e9[_0x88d6cb(0x1e5)]>=_0x12d71e[_0x88d6cb(0x1e5)]&&_0x2c26e9[_0x88d6cb(0x168)]<=_0x12d71e[_0x88d6cb(0x168)]);if(_0x3ce980[_0x88d6cb(0x169)]===0x0)return _0x4321ae[_0x88d6cb(0x1b2)](F)[_0x88d6cb(0x19c)]({'reason':'clear-range-not-contain-outline','commandId':V['id'],'unitId':_0xc9f397,'subUnitId':_0x4b1a1e,'axis':_0x12d71e[_0x88d6cb(0x162)]}),!0x1;let _0x4722c3=[{'id':B['id'],'params':{..._0x1c1b65,'removedOutlineIds':_0x3ce980[_0x88d6cb(0x1bf)](_0x53ed93=>_0x53ed93['id'])}}],_0x283907=_0x3ce980[_0x88d6cb(0x1bf)](_0x2ce41b=>({'id':I['id'],'params':{'unitId':_0xc9f397,'subUnitId':_0x4b1a1e,'outline':_0x2ce41b}}));return _0x57ab44(_0x4722c3,_0x4321ae[_0x88d6cb(0x1b2)](_0x5b34db))['result']?(_0x4321ae[_0x88d6cb(0x1b2)](_0x236935)['pushUndoRedo']({'unitID':_0xc9f397,'undoMutations':_0x283907,'redoMutations':_0x4722c3}),!0x0):!0x1;}},ze={'id':_0x1ce52f(0x1f6),'type':_0x370b23['COMMAND'],'handler':(_0x9ad437,_0x5a7ac4)=>{const _0x2793c7=_0x1ce52f;if(!_0x5a7ac4)return!0x1;let _0x236b37=_0x3c973f(_0x9ad437['get'](_0x501b88),_0x5a7ac4);if(!_0x236b37)return!0x1;let {unitId:_0x514f9d,subUnitId:_0x4f8fa2}=_0x236b37;if(!R(_0x9ad437,_0x514f9d,_0x4f8fa2))return!0x1;let _0x2abfc4=_0x9ad437[_0x2793c7(0x1b2)](P)[_0x2793c7(0x1a4)](_0x514f9d,_0x4f8fa2)['find'](_0x2fe7bb=>_0x2fe7bb['id']===_0x5a7ac4[_0x2793c7(0x1a5)]);if(!_0x2abfc4)return!0x1;let _0x529129=[{'id':L['id'],'params':{'unitId':_0x514f9d,'subUnitId':_0x4f8fa2,'outlineId':_0x2abfc4['id'],'outline':_0x2abfc4}}],_0x43ebb4=[{'id':I['id'],'params':{'unitId':_0x514f9d,'subUnitId':_0x4f8fa2,'outline':_0x2abfc4}}];return _0x57ab44(_0x529129,_0x9ad437[_0x2793c7(0x1b2)](_0x5b34db))[_0x2793c7(0x1be)]?(_0x9ad437['get'](_0x236935)[_0x2793c7(0x1ad)]({'unitID':_0x514f9d,'undoMutations':_0x43ebb4,'redoMutations':_0x529129}),!0x0):!0x1;}},H={'id':_0x1ce52f(0x1fd),'type':_0x370b23['MUTATION'],'handler':(_0x322dd2,_0x20b5df)=>{const _0x1259f5=_0x1ce52f;let _0x5d66a2=_0x322dd2[_0x1259f5(0x1b2)](P),_0x13dfb4=_0x5d66a2[_0x1259f5(0x1a4)](_0x20b5df['unitId'],_0x20b5df['subUnitId']),_0x56fcf3=_0x13dfb4[_0x1259f5(0x1f8)](_0x30adcc=>_0x30adcc['id']===_0x20b5df['outlineId']);return _0x56fcf3&&_0x5d66a2['setOutlines'](_0x20b5df[_0x1259f5(0x1e1)],_0x20b5df[_0x1259f5(0x18f)],_0x13dfb4[_0x1259f5(0x1bf)](_0x5bcab8=>_0x5bcab8['unitId']!==_0x56fcf3[_0x1259f5(0x1e1)]||_0x5bcab8[_0x1259f5(0x18f)]!==_0x56fcf3[_0x1259f5(0x18f)]||_0x5bcab8[_0x1259f5(0x162)]!==_0x56fcf3[_0x1259f5(0x162)]||_0x5bcab8[_0x1259f5(0x1e5)]!==_0x56fcf3['start']||_0x5bcab8[_0x1259f5(0x168)]!==_0x56fcf3[_0x1259f5(0x168)]?_0x5bcab8:{..._0x5bcab8,'collapsed':_0x20b5df['collapsed']})),!0x0;}};function Be(_0x3b1b4c,_0x5aac71,_0x4efa24,_0x182956){const _0xcf5d6a=_0x1ce52f;return _0x3b1b4c===_0xcf5d6a(0x1dc)?{'startRow':_0x5aac71,'endRow':_0x4efa24,'startColumn':0x0,'endColumn':_0x182956[_0xcf5d6a(0x1f4)]()-0x1}:{'startRow':0x0,'endRow':_0x182956['getRowCount']()-0x1,'startColumn':_0x5aac71,'endColumn':_0x4efa24};}function Ve(_0x1b7834){const _0x1cd015=_0x1ce52f;return _0x1b7834===_0x1cd015(0x1dc)?_0x4a1f85['id']:_0x401771['id'];}function He(_0x1d14ed){const _0x65a336=_0x1ce52f;return _0x1d14ed===_0x65a336(0x1dc)?_0x31f5ab['id']:_0x316671['id'];}function Ue(_0x188ad0,_0x125f44,_0x4ef352,_0x22a4bb){const _0xbf3b6e=_0x1ce52f;let _0x5f4a54=_0x125f44?[Be(_0x188ad0[_0xbf3b6e(0x162)],_0x188ad0[_0xbf3b6e(0x1e5)],_0x188ad0[_0xbf3b6e(0x168)],_0x4ef352)]:We(_0x188ad0,_0x22a4bb,_0x4ef352),_0x2e8668=_0x125f44?Ve(_0x188ad0['axis']):He(_0x188ad0['axis']);return[{'id':H['id'],'params':{'unitId':_0x188ad0[_0xbf3b6e(0x1e1)],'subUnitId':_0x188ad0[_0xbf3b6e(0x18f)],'outlineId':_0x188ad0['id'],'outline':_0x188ad0,'collapsed':_0x125f44}},..._0x5f4a54[_0xbf3b6e(0x1bf)](_0x483a3b=>({'id':_0x2e8668,'params':{'unitId':_0x188ad0[_0xbf3b6e(0x1e1)],'subUnitId':_0x188ad0[_0xbf3b6e(0x18f)],'ranges':[_0x483a3b],'dimensionOutlineId':_0x188ad0['id']}}))];}function We(_0x2829d8,_0x4d1b58,_0x4f1142){const _0x5b3a29=_0x1ce52f;let _0x31c53c=we(_0x4d1b58[_0x5b3a29(0x1bf)](_0x3374ae=>Ge(_0x3374ae,_0x2829d8)?{..._0x3374ae,'collapsed':!0x1}:_0x3374ae),_0x2829d8[_0x5b3a29(0x1e1)],_0x2829d8[_0x5b3a29(0x18f)],_0x2829d8[_0x5b3a29(0x162)]);return Ke({'start':_0x2829d8['start'],'end':_0x2829d8['end']},_0x31c53c)['map'](_0x2fb790=>Be(_0x2829d8[_0x5b3a29(0x162)],_0x2fb790[_0x5b3a29(0x1e5)],_0x2fb790[_0x5b3a29(0x168)],_0x4f1142));}function Ge(_0x379a74,_0x313122){const _0xc5661b=_0x1ce52f;return _0x379a74[_0xc5661b(0x1e1)]===_0x313122[_0xc5661b(0x1e1)]&&_0x379a74[_0xc5661b(0x18f)]===_0x313122[_0xc5661b(0x18f)]&&_0x379a74[_0xc5661b(0x162)]===_0x313122[_0xc5661b(0x162)]&&_0x379a74[_0xc5661b(0x1e5)]===_0x313122[_0xc5661b(0x1e5)]&&_0x379a74[_0xc5661b(0x168)]===_0x313122[_0xc5661b(0x168)];}function Ke(_0x32df55,_0x2ed38f){const _0x3c6f10=_0x1ce52f;let _0x20acc5=_0x32df55[_0x3c6f10(0x1e5)],_0x47a04a=[];for(let _0x6a59c of _0x2ed38f)if(!(_0x6a59c[_0x3c6f10(0x168)]<_0x20acc5||_0x6a59c[_0x3c6f10(0x1e5)]>_0x32df55[_0x3c6f10(0x168)])&&(_0x6a59c[_0x3c6f10(0x1e5)]>_0x20acc5&&_0x47a04a[_0x3c6f10(0x1a8)]({'start':_0x20acc5,'end':Math[_0x3c6f10(0x164)](_0x6a59c[_0x3c6f10(0x1e5)]-0x1,_0x32df55['end'])}),_0x20acc5=Math['max'](_0x20acc5,_0x6a59c[_0x3c6f10(0x168)]+0x1),_0x20acc5>_0x32df55['end']))break;return _0x20acc5<=_0x32df55[_0x3c6f10(0x168)]&&_0x47a04a[_0x3c6f10(0x1a8)]({'start':_0x20acc5,'end':_0x32df55[_0x3c6f10(0x168)]}),_0x47a04a;}const qe={'id':_0x1ce52f(0x189),'type':_0x370b23[_0x1ce52f(0x1dd)],'handler':(_0x260e79,_0x304bc5)=>{const _0x5d34b3=_0x1ce52f;if(!_0x304bc5)return!0x1;let _0x5577a9=_0x3c973f(_0x260e79[_0x5d34b3(0x1b2)](_0x501b88),_0x304bc5);if(!_0x5577a9)return!0x1;let {unitId:_0x259fac,subUnitId:_0xa5d14a,worksheet:_0x4b5732}=_0x5577a9;if(!R(_0x260e79,_0x259fac,_0xa5d14a))return!0x1;let _0x3718e5=_0x260e79['get'](P)[_0x5d34b3(0x1a4)](_0x259fac,_0xa5d14a),_0x55c6e2=_0x3718e5['find'](_0x971d79=>_0x971d79['id']===_0x304bc5['outlineId']);if(!_0x55c6e2||_0x55c6e2[_0x5d34b3(0x182)]===_0x304bc5[_0x5d34b3(0x182)])return!0x1;let _0x199756=Ue(_0x55c6e2,_0x304bc5[_0x5d34b3(0x182)],_0x4b5732,_0x3718e5),_0x30e412=Ue(_0x55c6e2,!_0x304bc5['collapsed'],_0x4b5732,_0x3718e5);return _0x57ab44(_0x199756,_0x260e79[_0x5d34b3(0x1b2)](_0x5b34db))['result']?(_0x260e79[_0x5d34b3(0x1b2)](_0x236935)['pushUndoRedo']({'unitID':_0x259fac,'undoMutations':_0x30e412,'redoMutations':_0x199756}),!0x0):!0x1;}},U={'id':_0x1ce52f(0x1cb),'type':_0x370b23[_0x1ce52f(0x1ce)],'handler':(_0x27137e,_0x3e7d7b)=>{const _0x511d6f=_0x1ce52f;let _0x14aa00=_0x27137e['get'](P),_0x5f5c3f=Je(_0x14aa00[_0x511d6f(0x1a4)](_0x3e7d7b['unitId'],_0x3e7d7b[_0x511d6f(0x18f)]),_0x3e7d7b);return _0x14aa00['setOutlines'](_0x3e7d7b[_0x511d6f(0x1e1)],_0x3e7d7b[_0x511d6f(0x18f)],_0x5f5c3f),!0x0;}};function Je(_0x23f8a4,_0x15b136){const _0x1c2a1d=_0x1ce52f;switch(_0x15b136[_0x1c2a1d(0x1b4)]){case _0x1c2a1d(0x17d):return _0x15b136[_0x1c2a1d(0x16e)]?Ye(_0x23f8a4,_0x15b136):D(_0x23f8a4,_0x15b136);case'delete':return O(_0x23f8a4,_0x15b136);case'move':return k(_0x23f8a4,_0x15b136);}}function Ye(_0x52aacf,_0x5bc981){const _0x905399=_0x1ce52f;return[..._0x52aacf[_0x905399(0x1f2)](_0x5b12b6=>_0x5b12b6[_0x905399(0x1e1)]!==_0x5bc981[_0x905399(0x1e1)]||_0x5b12b6[_0x905399(0x18f)]!==_0x5bc981[_0x905399(0x18f)]||_0x5b12b6['axis']!==_0x5bc981[_0x905399(0x162)]),..._0x5bc981[_0x905399(0x16e)]];}const W=_0x1ce52f(0x1c1);function _0x2f6c(_0x1318c1,_0x77451d){_0x1318c1=_0x1318c1-0x14f;const _0x1852e5=_0x1852();let _0x2f6c96=_0x1852e5[_0x1318c1];return _0x2f6c96;}var Xe=_0x1ce52f(0x1de),Ze='1.0.0';const Qe={};function G(_0x74f689,_0x98d68b){return function(_0x56bc6c,_0x24623f){_0x98d68b(_0x56bc6c,_0x24623f,_0x74f689);};}function K(_0x71ada7,_0x386ae2,_0x10dfdf,_0x32c672){const _0x30f961=_0x1ce52f;var _0x380172=arguments[_0x30f961(0x169)],_0x25cbf6=_0x380172<0x3?_0x386ae2:_0x32c672===null?_0x32c672=Object['getOwnPropertyDescriptor'](_0x386ae2,_0x10dfdf):_0x32c672,_0x316312;if(typeof Reflect==_0x30f961(0x1db)&&typeof Reflect[_0x30f961(0x1a0)]==_0x30f961(0x15b))_0x25cbf6=Reflect[_0x30f961(0x1a0)](_0x71ada7,_0x386ae2,_0x10dfdf,_0x32c672);else{for(var _0x48ab62=_0x71ada7[_0x30f961(0x169)]-0x1;_0x48ab62>=0x0;_0x48ab62--)(_0x316312=_0x71ada7[_0x48ab62])&&(_0x25cbf6=(_0x380172<0x3?_0x316312(_0x25cbf6):_0x380172>0x3?_0x316312(_0x386ae2,_0x10dfdf,_0x25cbf6):_0x316312(_0x386ae2,_0x10dfdf))||_0x25cbf6);}return _0x380172>0x3&&_0x25cbf6&&Object['defineProperty'](_0x386ae2,_0x10dfdf,_0x25cbf6),_0x25cbf6;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x28774d{constructor(_0x452215,_0x4b2ac1,_0x1d69e8,_0x13fb66){const _0x3b0574=_0x1ce52f;super(),this[_0x3b0574(0x154)]=_0x452215,this[_0x3b0574(0x172)]=_0x4b2ac1,this['_sheetsOutlineModel']=_0x1d69e8,this[_0x3b0574(0x184)]=_0x13fb66,this[_0x3b0574(0x158)]();}[_0x1ce52f(0x158)](){const _0x3613d4=_0x1ce52f;this[_0x3613d4(0x1c3)](this['_sheetInterceptorService'][_0x3613d4(0x1e3)]({'getMutations':_0x5b2df1=>$e(_0x5b2df1,(_0x50e015,_0x205feb)=>this[_0x3613d4(0x1c0)]['getOutlines'](_0x50e015,_0x205feb),this[_0x3613d4(0x1ee)](_0x5b2df1[_0x3613d4(0x18c)]),_0x466ea4=>this[_0x3613d4(0x184)][_0x3613d4(0x19c)](_0x466ea4))}));}[_0x1ce52f(0x1ee)](_0x5b18cc){const _0x2a48c4=_0x1ce52f;let _0x1ada04=_0x5b18cc,_0x20b731=_0x1ada04!=null&&_0x1ada04['unitId']?this[_0x2a48c4(0x154)][_0x2a48c4(0x1d7)](_0x1ada04[_0x2a48c4(0x1e1)],_0x1395c1[_0x2a48c4(0x18b)]):this[_0x2a48c4(0x154)][_0x2a48c4(0x1d8)](_0x1395c1[_0x2a48c4(0x18b)]);if(!_0x20b731)return;let _0x43070a=_0x1ada04!=null&&_0x1ada04['subUnitId']?_0x20b731[_0x2a48c4(0x199)](_0x1ada04[_0x2a48c4(0x18f)]):_0x20b731[_0x2a48c4(0x193)]();if(_0x43070a)return{'unitId':_0x20b731[_0x2a48c4(0x1b8)](),'subUnitId':_0x43070a[_0x2a48c4(0x1e8)]()};}};J=K([G(0x0,_0x501b88),G(0x1,_0xbe0a21(_0xb4bd43)),G(0x2,_0xbe0a21(P)),G(0x3,_0xbe0a21(F))],J);function $e(_0x522e9d,_0x4884c7,_0x304b09,_0x5ebc92){const _0x4078b2=_0x1ce52f;let _0x4e6f0d=tt(_0x522e9d,_0x304b09);if(!_0x4e6f0d)return Z();let _0x189822=_0x4884c7(_0x4e6f0d[_0x4078b2(0x1e1)],_0x4e6f0d[_0x4078b2(0x18f)]);if(!_0x189822[_0x4078b2(0x1a2)](_0x410dc9=>_0x410dc9[_0x4078b2(0x162)]===_0x4e6f0d[_0x4078b2(0x162)]))return Z();et(_0x189822,_0x4e6f0d,_0x522e9d['id'],_0x5ebc92);let _0x5e74b0=it(_0x4e6f0d,_0x189822);return{'redos':[{'id':U['id'],'params':_0x4e6f0d}],'undos':[{'id':U['id'],'params':_0x5e74b0}],'preRedos':[],'preUndos':[]};}function et(_0x163fcc,_0x58741d,_0x15beb5,_0x4033ed){const _0x91d3b9=_0x1ce52f;try{switch(_0x58741d[_0x91d3b9(0x1b4)]){case _0x91d3b9(0x17d):D(_0x163fcc,_0x58741d);break;case _0x91d3b9(0x1d6):O(_0x163fcc,_0x58741d);break;case _0x91d3b9(0x1fe):k(_0x163fcc,_0x58741d);}}catch(_0x4479ba){throw _0x4033ed==null||_0x4033ed({'reason':ye(_0x4479ba),'commandId':_0x15beb5,'unitId':_0x58741d['unitId'],'subUnitId':_0x58741d[_0x91d3b9(0x18f)],'axis':_0x58741d[_0x91d3b9(0x162)],'outlineId':be(_0x4479ba)}),new _0x342912(_0x4479ba instanceof Error?_0x4479ba['message']:_0x91d3b9(0x1ec));}}function tt(_0xf11c8,_0x4b200c){const _0x28486e=_0x1ce52f;switch(_0xf11c8['id']){case _0x3f6c82['id']:return Y(_0xf11c8['params'],_0x28486e(0x1dc),_0x4b200c);case _0x3ee2a4['id']:return Y(_0xf11c8[_0x28486e(0x18c)],'column',_0x4b200c);case _0x4c3e8d['id']:return nt(_0xf11c8['params'],_0x28486e(0x1dc),_0x4b200c);case _0x4afcff['id']:return nt(_0xf11c8[_0x28486e(0x18c)],'column',_0x4b200c);case _0x50a7df['id']:return rt(_0xf11c8['params'],_0x28486e(0x1dc),_0x4b200c);case _0x18c95c['id']:return rt(_0xf11c8[_0x28486e(0x18c)],_0x28486e(0x1c9),_0x4b200c);default:return null;}}function Y(_0x39dc2d,_0x36bcea,_0x414a79){const _0x368499=_0x1ce52f;let _0x2c2ca3=X(_0x39dc2d,_0x414a79);if(!(_0x39dc2d!=null&&_0x39dc2d['range'])||!_0x2c2ca3)return null;let _0x11f901=_0x36bcea==='row'?_0x39dc2d['range'][_0x368499(0x185)]:_0x39dc2d[_0x368499(0x1fa)]['startColumn'],_0x1a6869=_0x36bcea===_0x368499(0x1dc)?_0x39dc2d[_0x368499(0x1fa)][_0x368499(0x1cc)]:_0x39dc2d[_0x368499(0x1fa)][_0x368499(0x1cd)];return{..._0x2c2ca3,'axis':_0x36bcea,'type':_0x368499(0x17d),'index':_0x11f901,'count':_0x1a6869-_0x11f901+0x1};}function _0x1852(){const _0xdb13ba=['getCurrentUnitOfType','_injector','name','object','row','COMMAND','@univerjs-pro/sheets-outline','index','includes','unitId','values','interceptCommand','Invalid\x20outline\x20range','start','_error$','setOutlines','getSheetId','getRowCount','symbol','max','Invalid\x20dimension\x20outline\x20mutation','COLUMN','_getCommandScope','registerPluginResource','forEach','INVALID_RANGE','filter','asObservable','getMaxColumns','_change$','sheet.command.remove-dimension-outline','move-splits-outline','find','toRange','range','max-depth','MAX_DEPTH','sheet.mutation.set-dimension-outline-collapsed','move','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pop','sheet.mutation.clear-dimension-outlines','_outlines','dispose','_univerInstanceService','from','373258ZluVXs','registerCommand','_initCommandInterceptor','string','add','function','redos','complete','_config','onStarting','pipe','set','axis','39cmnfFr','min','sheet.command.add-dimension-outline','sourceStart','sheet.command.clear-dimension-outlines','end','length','fromRange','_resourceManagerService','7616550OeXELK','offset','restoreOutlines','_initRegisterCommand','Move\x20would\x20split\x20dimension\x20outline:\x20','crossing','_sheetInterceptorService','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','destinationIndex','next','361256AxRtIU','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','_initResource','count','DimensionOutlineError','removeUnit','sheet.mutation.add-dimension-outline','insert','136216TQracp','sheet.mutation.remove-dimension-outline','_commandService','_configService','collapsed','2045480nJTLhK','_sheetsOutlineErrorService','startRow','default','mergedOutlines','toPrimitive','sheet.command.set-dimension-outline-collapsed','permissionPointUpdate$','UNIVER_SHEET','params','packageName','entries','subUnitId','maxIndex','Invalid\x20dimension\x20outline\x20move\x20source\x20range','unknown','getActiveSheet','split','preUndos','OUT_OF_BOUNDS','ROW','getUnitOutlines','getSheetBySheetId','serialize','version','emit','constructor','7yAfwqf','MOVE_SPLITS_OUTLINE','decorate','325341oPoSSz','some','join','getOutlines','outlineId','dimension-outline-','startColumn','push','localeCompare','change$','getColumnCount','message','pushUndoRedo','34238149YMEjiO','UNKNOWN','sourceEnd','12YUdUzW','get','pluginName','type','maxDepth','Crossing','reason','getUnitId','_ensureUnitOutlines','mergedOutline','undos','depth','valid','result','map','_sheetsOutlineModel','SHEET_OUTLINE_PLUGIN','8ispKDf','disposeWithMe','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','out-of-bounds','clear-range-not-contain-outline','has','prototype','column','outline','sheet.mutation.transform-dimension-outlines','endRow','endColumn','MUTATION','defineProperty','error$','invalid-range','stringify','sort','120tziZAl','deserialize','delete','getUnit'];_0x1852=function(){return _0xdb13ba;};return _0x1852();}function nt(_0x236e81,_0x53d7b0,_0x4dbe16){const _0x3332c1=_0x1ce52f;let _0x48ff75=X(_0x236e81,_0x4dbe16);if(!(_0x236e81!=null&&_0x236e81[_0x3332c1(0x1fa)])||!_0x48ff75)return null;let _0x3db01c=_0x53d7b0===_0x3332c1(0x1dc)?_0x236e81['range'][_0x3332c1(0x185)]:_0x236e81[_0x3332c1(0x1fa)][_0x3332c1(0x1a7)],_0x44bef7=_0x53d7b0==='row'?_0x236e81[_0x3332c1(0x1fa)][_0x3332c1(0x1cc)]:_0x236e81[_0x3332c1(0x1fa)]['endColumn'];return{..._0x48ff75,'axis':_0x53d7b0,'type':_0x3332c1(0x1d6),'start':_0x3db01c,'end':_0x44bef7};}function rt(_0x11adcf,_0x2a0727,_0x1b0cd6){const _0x5d88da=_0x1ce52f;let _0x39eb4d=X(_0x11adcf,_0x1b0cd6);if(!(_0x11adcf!=null&&_0x11adcf[_0x5d88da(0x16a)])||!_0x11adcf[_0x5d88da(0x1f9)]||!_0x39eb4d)return null;let _0x5b1ccb=_0x2a0727===_0x5d88da(0x1dc)?_0x11adcf[_0x5d88da(0x16a)]['startRow']:_0x11adcf['fromRange']['startColumn'],_0x39be7a=_0x2a0727===_0x5d88da(0x1dc)?_0x11adcf[_0x5d88da(0x16a)]['endRow']:_0x11adcf[_0x5d88da(0x16a)][_0x5d88da(0x1cd)],_0x3fddde=_0x2a0727===_0x5d88da(0x1dc)?_0x11adcf[_0x5d88da(0x1f9)][_0x5d88da(0x185)]:_0x11adcf[_0x5d88da(0x1f9)][_0x5d88da(0x1a7)];return{..._0x39eb4d,'axis':_0x2a0727,'type':_0x5d88da(0x1fe),'sourceStart':_0x5b1ccb,'sourceEnd':_0x39be7a,'destinationIndex':_0x3fddde};}function it(_0x2efe25,_0x26923f){const _0x1eee4b=_0x1ce52f;switch(_0x2efe25[_0x1eee4b(0x1b4)]){case _0x1eee4b(0x17d):return{'unitId':_0x2efe25['unitId'],'subUnitId':_0x2efe25[_0x1eee4b(0x18f)],'axis':_0x2efe25[_0x1eee4b(0x162)],'type':_0x1eee4b(0x1d6),'start':_0x2efe25[_0x1eee4b(0x1df)],'end':_0x2efe25['index']+_0x2efe25[_0x1eee4b(0x179)]-0x1};case _0x1eee4b(0x1d6):return{'unitId':_0x2efe25['unitId'],'subUnitId':_0x2efe25[_0x1eee4b(0x18f)],'axis':_0x2efe25[_0x1eee4b(0x162)],'type':_0x1eee4b(0x17d),'index':_0x2efe25['start'],'count':_0x2efe25[_0x1eee4b(0x168)]-_0x2efe25['start']+0x1,'restoreOutlines':_0x26923f['filter'](_0x2fbcbc=>_0x2fbcbc[_0x1eee4b(0x1e1)]===_0x2efe25[_0x1eee4b(0x1e1)]&&_0x2fbcbc[_0x1eee4b(0x18f)]===_0x2efe25[_0x1eee4b(0x18f)]&&_0x2fbcbc[_0x1eee4b(0x162)]===_0x2efe25[_0x1eee4b(0x162)])};case'move':return at(_0x2efe25);}}function at(_0xaa0aca){const _0x219b9e=_0x1ce52f;let _0x35330a=_0xaa0aca[_0x219b9e(0x1b0)]-_0xaa0aca[_0x219b9e(0x166)]+0x1;return _0xaa0aca[_0x219b9e(0x174)]>=_0xaa0aca[_0x219b9e(0x166)]&&_0xaa0aca['destinationIndex']<=_0xaa0aca['sourceEnd']+0x1?{..._0xaa0aca}:_0xaa0aca[_0x219b9e(0x174)]>_0xaa0aca[_0x219b9e(0x1b0)]+0x1?{..._0xaa0aca,'sourceStart':_0xaa0aca['destinationIndex']-_0x35330a,'sourceEnd':_0xaa0aca[_0x219b9e(0x174)]-0x1,'destinationIndex':_0xaa0aca[_0x219b9e(0x166)]}:{..._0xaa0aca,'sourceStart':_0xaa0aca[_0x219b9e(0x174)],'sourceEnd':_0xaa0aca[_0x219b9e(0x174)]+_0x35330a-0x1,'destinationIndex':_0xaa0aca['sourceEnd']+0x1};}function X(_0x5a2d0a,_0x139d48){const _0x4fae06=_0x1ce52f;let _0x435f7e=(_0x5a2d0a==null?void 0x0:_0x5a2d0a[_0x4fae06(0x1e1)])??(_0x139d48==null?void 0x0:_0x139d48[_0x4fae06(0x1e1)]),_0x2a7598=(_0x5a2d0a==null?void 0x0:_0x5a2d0a['subUnitId'])??(_0x139d48==null?void 0x0:_0x139d48[_0x4fae06(0x18f)]);return _0x435f7e&&_0x2a7598?{'unitId':_0x435f7e,'subUnitId':_0x2a7598}:null;}function Z(){const _0x22dc75=_0x1ce52f;return{'redos':[...q[_0x22dc75(0x15c)]],'undos':[...q[_0x22dc75(0x1bb)]],'preRedos':[...q['preRedos']??[]],'preUndos':[...q[_0x22dc75(0x195)]??[]]};}let Q=class extends _0x28774d{constructor(_0x3848f2,_0x2115c8){const _0x32d3b7=_0x1ce52f;super(),this[_0x32d3b7(0x16b)]=_0x3848f2,this[_0x32d3b7(0x1c0)]=_0x2115c8,this['_initResource']();}[_0x1ce52f(0x178)](){const _0x23272a=_0x1ce52f;this[_0x23272a(0x1c3)](this[_0x23272a(0x16b)][_0x23272a(0x1ef)]({'pluginName':W,'businesses':[_0x1395c1[_0x23272a(0x18b)]],'toJson':_0x3c7d27=>JSON[_0x23272a(0x1d2)](this[_0x23272a(0x1c0)][_0x23272a(0x19a)](_0x3c7d27)),'parseJson':_0xa86f8a=>JSON['parse'](_0xa86f8a),'onLoad':(_0x5d37e2,_0x1e2598)=>this[_0x23272a(0x1c0)][_0x23272a(0x1d5)](_0x5d37e2,_0x1e2598),'onUnLoad':_0x3f2240=>this[_0x23272a(0x1c0)][_0x23272a(0x17b)](_0x3f2240)}));}};Q=K([G(0x0,_0x57db0b),G(0x1,_0xbe0a21(P))],Q);let $=class extends _0xd243c4{constructor(_0xee5c95=Qe,_0x5f4960,_0x17a340,_0x2e44ec){const _0x4237c5=_0x1ce52f;super(),this[_0x4237c5(0x15e)]=_0xee5c95,this[_0x4237c5(0x1d9)]=_0x5f4960,this[_0x4237c5(0x180)]=_0x17a340,this[_0x4237c5(0x181)]=_0x2e44ec;let {..._0x4e0065}=_0x1a0e54({},Qe,this[_0x4237c5(0x15e)]);this[_0x4237c5(0x181)]['setConfig']('sheets-outline.config',_0x4e0065);}[_0x1ce52f(0x15f)](){const _0x164c21=_0x1ce52f;this[_0x164c21(0x1d9)]['add']([P]),this['_injector'][_0x164c21(0x15a)]([F]),this[_0x164c21(0x1d9)]['add']([Q]),this[_0x164c21(0x1d9)][_0x164c21(0x15a)]([J]),this[_0x164c21(0x16f)](),this['_injector'][_0x164c21(0x1b2)](P),this['_injector'][_0x164c21(0x1b2)](F),this[_0x164c21(0x1d9)][_0x164c21(0x1b2)](Q),this['_injector'][_0x164c21(0x1b2)](J);}[_0x1ce52f(0x16f)](){const _0x8e6d00=_0x1ce52f;[z,ze,qe,V][_0x8e6d00(0x1f0)](_0x1addb7=>{const _0x4df2da=_0x8e6d00;this[_0x4df2da(0x1c3)](this[_0x4df2da(0x180)][_0x4df2da(0x157)](_0x1addb7));}),[I,L,H,B,U][_0x8e6d00(0x1f0)](_0x30b372=>{const _0x3c0f88=_0x8e6d00;this['disposeWithMe'](this[_0x3c0f88(0x180)][_0x3c0f88(0x157)](_0x30b372));});}};N($,_0x1ce52f(0x1b3),W),N($,_0x1ce52f(0x18d),Xe),N($,_0x1ce52f(0x19b),Ze),N($,'type',_0x1395c1[_0x1ce52f(0x18b)]),$=K([_0x35d92d(_0x1e0280,_0x1d7adc),G(0x1,_0xbe0a21(_0x1ea18e)),G(0x2,_0x5b34db),G(0x3,_0x3ab1ed)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
|
|
1
|
+
const _0x2552be=_0x38a2;(function(_0x138e3b,_0x12de20){const _0x9ba323=_0x38a2,_0x3b044d=_0x138e3b();while(!![]){try{const _0x329dff=-parseInt(_0x9ba323(0x1f6))/0x1+-parseInt(_0x9ba323(0x19b))/0x2*(-parseInt(_0x9ba323(0x1ca))/0x3)+parseInt(_0x9ba323(0x1bf))/0x4*(-parseInt(_0x9ba323(0x1de))/0x5)+-parseInt(_0x9ba323(0x1ea))/0x6+parseInt(_0x9ba323(0x1ce))/0x7*(-parseInt(_0x9ba323(0x185))/0x8)+parseInt(_0x9ba323(0x192))/0x9*(-parseInt(_0x9ba323(0x16e))/0xa)+parseInt(_0x9ba323(0x16d))/0xb*(parseInt(_0x9ba323(0x1da))/0xc);if(_0x329dff===_0x12de20)break;else _0x3b044d['push'](_0x3b044d['shift']());}catch(_0x1a479b){_0x3b044d['push'](_0x3b044d['shift']());}}}(_0x327d,0x4a300));import{CommandType as _0x42c5de,CustomCommandExecutionError as _0x6678d2,DependentOn as _0x24a179,Disposable as _0x1f59cd,ICommandService as _0xec1c95,IConfigService as _0x88f4c1,IPermissionService as _0x51f3bd,IResourceManagerService as _0x12fef9,IUndoRedoService as _0x3d7842,IUniverInstanceService as _0x241e59,Inject as _0x259385,Injector as _0x2948c4,Plugin as _0x14323e,UniverInstanceType as _0x149174,generateRandomId as _0x293be6,merge as _0x2da987,sequenceExecute as _0x5c69e0}from'@univerjs/core';import{InsertColCommand as _0x540713,InsertRowCommand as _0x576ba9,MoveColsCommand as _0x5c3cdd,MoveRowsCommand as _0x32509d,RemoveColCommand as _0x289843,RemoveRowCommand as _0x19474a,SetColHiddenMutation as _0x5d70bb,SetColVisibleMutation as _0x34dce4,SetRowHiddenMutation as _0x3c2892,SetRowVisibleMutation as _0x35cb71,SheetInterceptorService as _0x2d3c87,SheetPermissionCheckController as _0x891372,UniverSheetsPlugin as _0x4eb0bf,WorkbookViewPermission as _0xd8479c,WorksheetViewPermission as _0x230a03,getSheetCommandTarget as _0x5bb827}from'@univerjs/sheets';import{Subject as _0x2a2d34,of as _0x4fe5d5}from'rxjs';import{debounceTime as _0x1bdf9f,map as _0x5d1f67,startWith as _0x4ef7b8}from'rxjs/operators';import{UniverLicensePlugin as _0x41b4af}from'@univerjs-pro/license';let _e=function(_0x540cd2){const _0x540868=_0x38a2;return _0x540cd2['ROW']=_0x540868(0x1d6),_0x540cd2[_0x540868(0x1e1)]=_0x540868(0x1b5),_0x540cd2;}({}),ve=function(_0x4d02c8){const _0x1d446d=_0x38a2;return _0x4d02c8[_0x1d446d(0x1ae)]=_0x1d446d(0x19d),_0x4d02c8['OUT_OF_BOUNDS']=_0x1d446d(0x1b3),_0x4d02c8[_0x1d446d(0x1d4)]=_0x1d446d(0x202),_0x4d02c8[_0x1d446d(0x1bd)]=_0x1d446d(0x1c3),_0x4d02c8['MOVE_SPLITS_OUTLINE']=_0x1d446d(0x1a6),_0x4d02c8[_0x1d446d(0x191)]='clear-range-not-contain-outline',_0x4d02c8[_0x1d446d(0x1e4)]='unknown',_0x4d02c8;}({});var S=class extends Error{constructor(_0x43a6ab,_0x49ca70,_0x1ae695){const _0x5d6e48=_0x38a2;super(_0x49ca70),this[_0x5d6e48(0x1fa)]=_0x43a6ab,this[_0x5d6e48(0x1b6)]=_0x1ae695,this[_0x5d6e48(0x159)]=_0x5d6e48(0x1a5);}};function ye(_0x2c0ef3){const _0x556606=_0x38a2;return _0x2c0ef3 instanceof S?_0x2c0ef3[_0x556606(0x1fa)]:_0x2c0ef3 instanceof Error?_0x2c0ef3['message'][_0x556606(0x197)](_0x556606(0x15d))?_0x556606(0x1a6):_0x2c0ef3[_0x556606(0x195)]['includes']('depth')?_0x556606(0x1c3):_0x2c0ef3[_0x556606(0x195)][_0x556606(0x197)](_0x556606(0x19e))?_0x556606(0x202):_0x2c0ef3[_0x556606(0x195)][_0x556606(0x197)](_0x556606(0x18d))?_0x556606(0x19d):_0x556606(0x17d):_0x556606(0x17d);}function be(_0x1dca98){return _0x1dca98 instanceof S?_0x1dca98['outlineId']:void 0x0;}const C=0x2**0x35-0x1;function w(_0x1cc3c7,_0xbc12c2){const _0x11f578=_0x38a2;return _0x1cc3c7[_0x11f578(0x181)]===_0xbc12c2[_0x11f578(0x181)]&&_0x1cc3c7[_0x11f578(0x1c4)]===_0xbc12c2[_0x11f578(0x1c4)]&&_0x1cc3c7[_0x11f578(0x1cc)]===_0xbc12c2[_0x11f578(0x1cc)];}function T(_0x354cfa,_0x28f916={}){const _0x2eb016=_0x38a2;let _0x5cab63=_0x28f916[_0x2eb016(0x161)]??0x8,_0x129948=new Map();for(let _0x2c6263 of _0x354cfa){let _0x380152=_0x2c6263['unitId']+':'+_0x2c6263[_0x2eb016(0x1c4)]+':'+_0x2c6263['axis'],_0x174c26=_0x129948['get'](_0x380152);_0x174c26?_0x174c26[_0x2eb016(0x170)](_0x2c6263):_0x129948[_0x2eb016(0x1ec)](_0x380152,[_0x2c6263]);}let _0x131be8=[];for(let _0x242736 of _0x129948[_0x2eb016(0x163)]()){let _0x525cc5=[..._0x242736]['sort'](j),_0x485872=[];for(let _0x2a1339 of _0x525cc5){for(Me(_0x2a1339);_0x485872[_0x2eb016(0x198)]>0x0&&_0x2a1339['start']>_0x485872[_0x485872[_0x2eb016(0x198)]-0x1]['end'];)_0x485872[_0x2eb016(0x1cb)]();let _0x2699d5=_0x485872[_0x485872[_0x2eb016(0x198)]-0x1];if(_0x2699d5&&_0x2a1339[_0x2eb016(0x18a)]>_0x2699d5[_0x2eb016(0x18a)])throw new S(_0x2eb016(0x202),_0x2eb016(0x182),_0x2a1339['id']);let _0x85054a=_0x2699d5?_0x2699d5[_0x2eb016(0x18f)]+0x1:0x1;if(_0x85054a>_0x5cab63)throw new S(_0x2eb016(0x1c3),_0x2eb016(0x1f3)+_0x5cab63,_0x2a1339['id']);let _0x4a1ea2={..._0x2a1339,'depth':_0x85054a,'parentId':_0x2699d5==null?void 0x0:_0x2699d5['id'],'anchor':_0x2a1339[_0x2eb016(0x18a)],'children':[]};_0x2699d5?_0x2699d5[_0x2eb016(0x203)][_0x2eb016(0x170)](_0x4a1ea2):_0x131be8['push'](_0x4a1ea2),_0x485872['push'](_0x4a1ea2);}}return _0x131be8;}function E(_0xf59297,_0x389074,_0x5daf0e={}){const _0x487226=_0x38a2;if(_0x389074['start']<0x0||_0x389074[_0x487226(0x19f)]>_0x389074[_0x487226(0x18a)])return{'valid':!0x1,'reason':_0x487226(0x19d)};if(_0x5daf0e[_0x487226(0x1f7)]!=null&&_0x389074['end']>=_0x5daf0e[_0x487226(0x1f7)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x4729d5=_0xf59297[_0x487226(0x188)](_0x4e6799=>w(_0x4e6799,_0x389074));for(let _0x295e51 of _0x4729d5)if(Ne(_0x295e51,_0x389074))return{'valid':!0x1,'reason':_0x487226(0x202)};try{T([..._0xf59297,_0x389074],_0x5daf0e);}catch(_0x28d658){let _0x2609f0=ye(_0x28d658);return _0x2609f0===_0x487226(0x1c3)?{'valid':!0x1,'reason':_0x487226(0x1c3)}:_0x2609f0===_0x487226(0x19d)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x424feb,_0x4f774d,_0x4c5257={}){const _0x5175dc=_0x38a2;let _0xd396fe=E(_0x424feb,_0x4f774d,_0x4c5257);if(!_0xd396fe['valid'])throw Error(_0xd396fe[_0x5175dc(0x1fa)]??_0x5175dc(0x16c));return[..._0x424feb,_0x4f774d];}function Se(_0x5a30db,_0x25270a){const _0x5e1d32=_0x38a2;let _0x5dacce=_0x25270a['start'],_0x4be6e8=_0x25270a[_0x5e1d32(0x18a)],_0xef5eea=[],_0x379e9f=!0x0;for(;_0x379e9f;){_0x379e9f=!0x1;for(let _0x118a3c of _0x5a30db)!_0xef5eea[_0x5e1d32(0x197)](_0x118a3c)&&w(_0x118a3c,_0x25270a)&&Ae(_0x118a3c[_0x5e1d32(0x19f)],_0x118a3c['end'],_0x5dacce,_0x4be6e8)&&(_0xef5eea[_0x5e1d32(0x170)](_0x118a3c),_0x5dacce=Math[_0x5e1d32(0x1d7)](_0x5dacce,_0x118a3c['start']),_0x4be6e8=Math[_0x5e1d32(0x17b)](_0x4be6e8,_0x118a3c[_0x5e1d32(0x18a)]),_0x379e9f=!0x0);}if(_0xef5eea['length']===0x0)return null;let [_0x52ec2a]=[..._0xef5eea][_0x5e1d32(0x1bb)](j);return{'mergedOutline':{..._0x52ec2a,'start':_0x5dacce,'end':_0x4be6e8},'mergedOutlines':_0xef5eea};}function Ce(_0x14ebc0,_0x58a22a){const _0x1f5cac=_0x38a2;return _0x14ebc0[_0x1f5cac(0x188)](_0x4d1e25=>!w(_0x4d1e25,_0x58a22a)||!(_0x4d1e25[_0x1f5cac(0x19f)]>=_0x58a22a[_0x1f5cac(0x19f)]&&_0x4d1e25['end']<=_0x58a22a[_0x1f5cac(0x18a)]));}function we(_0x10d4c7,_0x560281,_0x528b35,_0x291688){const _0x46d67c=_0x38a2;return Te(_0x10d4c7[_0x46d67c(0x188)](_0x3f2b17=>_0x3f2b17[_0x46d67c(0x181)]===_0x560281&&_0x3f2b17['subUnitId']===_0x528b35&&_0x3f2b17[_0x46d67c(0x1cc)]===_0x291688&&_0x3f2b17['collapsed'])[_0x46d67c(0x1a2)](_0x44cf9d=>({'start':_0x44cf9d[_0x46d67c(0x19f)],'end':_0x44cf9d['end']})));}function Te(_0x4739af){const _0x2f2eb1=_0x38a2;if(_0x4739af['length']===0x0)return[];let _0x30c425=[..._0x4739af][_0x2f2eb1(0x1bb)]((_0x2623be,_0x51289d)=>_0x2623be[_0x2f2eb1(0x19f)]-_0x51289d['start']||_0x2623be[_0x2f2eb1(0x18a)]-_0x51289d[_0x2f2eb1(0x18a)]),_0xc044b7=[];for(let _0x4a4f84 of _0x30c425){let _0x2b2ac9=_0xc044b7[_0xc044b7[_0x2f2eb1(0x198)]-0x1];!_0x2b2ac9||_0x4a4f84[_0x2f2eb1(0x19f)]>_0x2b2ac9[_0x2f2eb1(0x18a)]+0x1?_0xc044b7[_0x2f2eb1(0x170)]({..._0x4a4f84}):_0x2b2ac9[_0x2f2eb1(0x18a)]=Math['max'](_0x2b2ac9[_0x2f2eb1(0x18a)],_0x4a4f84['end']);}return _0xc044b7;}function D(_0xc08f69,_0x4509c0){const _0x178770=_0x38a2;return _0x4509c0[_0x178770(0x1dd)]<=0x0?_0xc08f69:A(_0xc08f69[_0x178770(0x1a2)](_0x2f5fdf=>w(_0x2f5fdf,_0x4509c0)?_0x4509c0[_0x178770(0x1d1)]<=_0x2f5fdf['start']?{..._0x2f5fdf,'start':_0x2f5fdf[_0x178770(0x19f)]+_0x4509c0[_0x178770(0x1dd)],'end':_0x2f5fdf[_0x178770(0x18a)]+_0x4509c0['count']}:_0x2f5fdf[_0x178770(0x19f)]<_0x4509c0['index']&&_0x4509c0[_0x178770(0x1d1)]<=_0x2f5fdf[_0x178770(0x18a)]?{..._0x2f5fdf,'end':_0x2f5fdf['end']+_0x4509c0[_0x178770(0x1dd)]}:_0x2f5fdf:_0x2f5fdf));}function O(_0xbe358b,_0x3dd186){const _0x3d4da2=_0x38a2;if(_0x3dd186[_0x3d4da2(0x19f)]>_0x3dd186[_0x3d4da2(0x18a)])return _0xbe358b;let _0xcb3c3f=_0x3dd186[_0x3d4da2(0x18a)]-_0x3dd186[_0x3d4da2(0x19f)]+0x1,_0x47497a=[];for(let _0x54c7d5 of _0xbe358b){if(!w(_0x54c7d5,_0x3dd186)){_0x47497a[_0x3d4da2(0x170)](_0x54c7d5);continue;}if(_0x54c7d5[_0x3d4da2(0x18a)]<_0x3dd186[_0x3d4da2(0x19f)]){_0x47497a[_0x3d4da2(0x170)](_0x54c7d5);continue;}if(_0x54c7d5[_0x3d4da2(0x19f)]>_0x3dd186['end']){_0x47497a['push']({..._0x54c7d5,'start':_0x54c7d5['start']-_0xcb3c3f,'end':_0x54c7d5[_0x3d4da2(0x18a)]-_0xcb3c3f});continue;}let _0x220dc5=Math[_0x3d4da2(0x17b)](_0x54c7d5['start'],_0x3dd186[_0x3d4da2(0x19f)]),_0x994b60=Math['min'](_0x54c7d5['end'],_0x3dd186['end']),_0x295feb=Math[_0x3d4da2(0x17b)](0x0,_0x994b60-_0x220dc5+0x1),_0x168613=_0x54c7d5[_0x3d4da2(0x18a)]-_0x54c7d5[_0x3d4da2(0x19f)]+0x1-_0x295feb;if(_0x168613<=0x0)continue;let _0xf0b37e=_0x54c7d5[_0x3d4da2(0x19f)]<_0x3dd186[_0x3d4da2(0x19f)]?_0x54c7d5[_0x3d4da2(0x19f)]:_0x3dd186[_0x3d4da2(0x19f)];_0x47497a[_0x3d4da2(0x170)]({..._0x54c7d5,'start':_0xf0b37e,'end':_0xf0b37e+_0x168613-0x1});}return A(_0x47497a);}function k(_0x5e940b,_0x5cd25c){const _0x5c94e6=_0x38a2;if(_0x5cd25c[_0x5c94e6(0x178)]>_0x5cd25c['sourceEnd'])return _0x5e940b;let _0x74df84=[];for(let _0x3022a3 of _0x5e940b){if(!w(_0x3022a3,_0x5cd25c)){_0x74df84[_0x5c94e6(0x170)](_0x3022a3);continue;}let _0x35c535=Ee(_0x3022a3,_0x5cd25c);if(_0x35c535[_0x5c94e6(0x201)]===_0x5c94e6(0x19c))throw new S('move-splits-outline',_0x5c94e6(0x1cf)+_0x3022a3['id'],_0x3022a3['id']);_0x74df84['push'](_0x35c535[_0x5c94e6(0x175)]);}return A(_0x74df84);}function Ee(_0xdc0242,_0x5b6f50){const _0x5e3401=_0x38a2;let _0x4ed35d=De(_0x5b6f50['sourceStart'],_0x5b6f50['sourceEnd']+0x1,_0x5b6f50[_0x5e3401(0x1ed)]),_0x43cf24=[],_0x2ab225={'start':_0xdc0242[_0x5e3401(0x19f)],'end':_0xdc0242[_0x5e3401(0x18a)]+0x1};for(let _0x5080bb of _0x4ed35d){let _0x4b1b78=Oe(_0x2ab225,_0x5080bb[_0x5e3401(0x18d)]);_0x4b1b78&&_0x43cf24[_0x5e3401(0x170)]({'start':_0x4b1b78[_0x5e3401(0x19f)]+_0x5080bb[_0x5e3401(0x15b)],'end':_0x4b1b78[_0x5e3401(0x18a)]+_0x5080bb[_0x5e3401(0x15b)]});}let _0xc609f0=ke(_0x43cf24);return _0xc609f0[_0x5e3401(0x198)]===0x1?{'type':'ok','outline':{..._0xdc0242,'start':_0xc609f0[0x0][_0x5e3401(0x19f)],'end':_0xc609f0[0x0][_0x5e3401(0x18a)]-0x1}}:{'type':'split','outline':_0xdc0242,'ranges':_0xc609f0};}function De(_0x1f5319,_0x542517,_0x318d5a){let _0x4a2f29=_0x542517-_0x1f5319;if(_0x4a2f29<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x318d5a>=_0x1f5319&&_0x318d5a<=_0x542517?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x318d5a<_0x1f5319?[{'range':{'start':0x0,'end':_0x318d5a},'offset':0x0},{'range':{'start':_0x318d5a,'end':_0x1f5319},'offset':_0x4a2f29},{'range':{'start':_0x1f5319,'end':_0x542517},'offset':_0x318d5a-_0x1f5319},{'range':{'start':_0x542517,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x1f5319},'offset':0x0},{'range':{'start':_0x1f5319,'end':_0x542517},'offset':_0x318d5a-_0x542517},{'range':{'start':_0x542517,'end':_0x318d5a},'offset':-_0x4a2f29},{'range':{'start':_0x318d5a,'end':C},'offset':0x0}];}function Oe(_0x3beb0c,_0x5cc76f){const _0x3b6e7c=_0x38a2;let _0x2add85=Math[_0x3b6e7c(0x17b)](_0x3beb0c['start'],_0x5cc76f[_0x3b6e7c(0x19f)]),_0x276c87=Math[_0x3b6e7c(0x1d7)](_0x3beb0c[_0x3b6e7c(0x18a)],_0x5cc76f[_0x3b6e7c(0x18a)]);return _0x2add85>=_0x276c87?null:{'start':_0x2add85,'end':_0x276c87};}function ke(_0x2c9e05){const _0xcd5553=_0x38a2;if(_0x2c9e05['length']===0x0)return[];let _0x48433a=[..._0x2c9e05][_0xcd5553(0x1bb)]((_0x1bf9ba,_0x521fd4)=>_0x1bf9ba[_0xcd5553(0x19f)]-_0x521fd4['start']||_0x1bf9ba[_0xcd5553(0x18a)]-_0x521fd4['end']),_0x3f8ede=[];for(let _0x347ec2 of _0x48433a){let _0x289f34=_0x3f8ede[_0x3f8ede[_0xcd5553(0x198)]-0x1];!_0x289f34||_0x347ec2['start']>_0x289f34[_0xcd5553(0x18a)]?_0x3f8ede[_0xcd5553(0x170)]({..._0x347ec2}):_0x289f34[_0xcd5553(0x18a)]=Math[_0xcd5553(0x17b)](_0x289f34[_0xcd5553(0x18a)],_0x347ec2['end']);}return _0x3f8ede;}function Ae(_0x3b9120,_0x3543f4,_0x861bec,_0x59bdb0){return _0x3543f4+0x1===_0x861bec||_0x59bdb0+0x1===_0x3b9120;}function A(_0x267172){let _0x354354=je(_0x267172);return T(_0x354354),_0x354354;}function je(_0x508cdf){const _0x168fda=_0x38a2;let _0x506e9d=new Map();for(let _0x4d7d55 of _0x508cdf){let _0x2ea65b=[_0x4d7d55[_0x168fda(0x181)],_0x4d7d55['subUnitId'],_0x4d7d55[_0x168fda(0x1cc)],_0x4d7d55['start'],_0x4d7d55[_0x168fda(0x18a)]]['join'](':'),_0x1f1a24=_0x506e9d[_0x168fda(0x194)](_0x2ea65b);if(!_0x1f1a24){_0x506e9d['set'](_0x2ea65b,_0x4d7d55);continue;}_0x506e9d[_0x168fda(0x1ec)](_0x2ea65b,{..._0x1f1a24,'collapsed':_0x1f1a24['collapsed']||_0x4d7d55['collapsed']});}return Array[_0x168fda(0x1c0)](_0x506e9d[_0x168fda(0x163)]());}function j(_0x18578d,_0x2102c9){const _0x26f8b3=_0x38a2;return _0x18578d['unitId']===_0x2102c9[_0x26f8b3(0x181)]?_0x18578d['subUnitId']===_0x2102c9['subUnitId']?_0x18578d['axis']===_0x2102c9[_0x26f8b3(0x1cc)]?_0x18578d[_0x26f8b3(0x19f)]===_0x2102c9[_0x26f8b3(0x19f)]?_0x2102c9[_0x26f8b3(0x18a)]-_0x18578d['end']:_0x18578d[_0x26f8b3(0x19f)]-_0x2102c9[_0x26f8b3(0x19f)]:_0x18578d[_0x26f8b3(0x1cc)]['localeCompare'](_0x2102c9['axis']):_0x18578d['subUnitId'][_0x26f8b3(0x1fe)](_0x2102c9[_0x26f8b3(0x1c4)]):_0x18578d[_0x26f8b3(0x181)][_0x26f8b3(0x1fe)](_0x2102c9[_0x26f8b3(0x181)]);}function Me(_0x2f171c){const _0x18997=_0x38a2;if(_0x2f171c[_0x18997(0x19f)]>_0x2f171c[_0x18997(0x18a)])throw new S(_0x18997(0x19d),_0x18997(0x1f9),_0x2f171c['id']);}function Ne(_0x5f1be7,_0x598ca1){const _0x474be9=_0x38a2;let _0x1708f1=_0x5f1be7[_0x474be9(0x19f)]<=_0x598ca1['end']&&_0x598ca1[_0x474be9(0x19f)]<=_0x5f1be7[_0x474be9(0x18a)],_0x1c3941=_0x5f1be7[_0x474be9(0x19f)]<=_0x598ca1[_0x474be9(0x19f)]&&_0x598ca1['end']<=_0x5f1be7[_0x474be9(0x18a)],_0x2d5829=_0x598ca1['start']<=_0x5f1be7[_0x474be9(0x19f)]&&_0x5f1be7['end']<=_0x598ca1[_0x474be9(0x18a)];return _0x1708f1&&!_0x1c3941&&!_0x2d5829;}function _0x327d(){const _0x2e9111=['184613fGgTOB','53180yfOhzQ','MUTATION','push','move','setConfig','endColumn','registerCommand','outline','_sheetsOutlineErrorService','sheets-outline.config','sourceStart','entries','call','max','getUnit','unknown','getMaxColumns','_resourceManagerService','result','unitId','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','undos','registerPluginResource','1595096mAxHZh','_initResource','dimension-outline-','filter','sourceEnd','end','string','sheet.mutation.transform-dimension-outlines','range','toRange','depth','fromRange','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','54qsrhDy','collapsed','get','message','_sheetInterceptorService','includes','length','getSheetBySheetId','getRowCount','84fOaTAF','split','invalid-range','Crossing','start','emit','change$','map','sheet.command.set-dimension-outline-collapsed','preUndos','DimensionOutlineError','move-splits-outline','version','stringify','sheet.command.remove-dimension-outline','Invalid\x20dimension\x20outline\x20mutation','complete','_sheetsOutlineModel','_configService','INVALID_RANGE','getActiveSheet','sheet.mutation.add-dimension-outline','startRow','forEach','out-of-bounds','_commandService','column','outlineId','mergedOutline','getUnitOutlines','getColumnCount','restoreOutlines','sort','UNIVER_SHEET','MAX_DEPTH','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','795332rNYFFt','from','function','endRow','max-depth','subUnitId','serialize','clear','_error$','getOutlines','_getCommandScope','42594VbhfuO','pop','axis','pluginName','21XRZURA','Move\x20would\x20split\x20dimension\x20outline:\x20','some','index','decorate','startColumn','CROSSING','_univerInstanceService','row','min','setOutlines','outlineList','1140IIMIYq','deserialize','@univerjs-pro/sheets-outline','count','5vdzYbg','sheet.command.add-dimension-outline','getUnitId','COLUMN','has','dispose','UNKNOWN','COMMAND','delete','disposeWithMe','pipe','sheet.mutation.remove-dimension-outline','2715432oyyBli','parse','set','destinationIndex','_injector','insert','_outlines','onStarting','getOwnPropertyDescriptor','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','object','params','605355LEWYpr','maxIndex','_initRegisterCommand','Invalid\x20outline\x20range','reason','1.0.2','defineProperty','add','localeCompare','getSheetId','sheet.command.clear-dimension-outlines','type','crossing','children','getCurrentUnitOfType','name','toPrimitive','offset','_config','split\x20dimension\x20outline','redos','removeUnit','_change$','maxDepth','find','values','SHEET_OUTLINE_PLUGIN','permissionPointUpdate$','packageName','pushUndoRedo','symbol','permissionCheckWithoutRange','next','preRedos','invalid-dimension-outline'];_0x327d=function(){return _0x2e9111;};return _0x327d();}function M(_0x5f2107){'@babel/helpers - typeof';const _0xa43912=_0x38a2;return M=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xa43912(0x168)?function(_0x1b8531){return typeof _0x1b8531;}:function(_0x440a77){const _0x3db1cd=_0xa43912;return _0x440a77&&typeof Symbol==_0x3db1cd(0x1c1)&&_0x440a77['constructor']===Symbol&&_0x440a77!==Symbol['prototype']?'symbol':typeof _0x440a77;},M(_0x5f2107);}function Pe(_0x21445b,_0x5a7377){const _0x565a41=_0x38a2;if(M(_0x21445b)!=_0x565a41(0x1f4)||!_0x21445b)return _0x21445b;var _0x436338=_0x21445b[Symbol[_0x565a41(0x15a)]];if(_0x436338!==void 0x0){var _0x11b927=_0x436338[_0x565a41(0x17a)](_0x21445b,_0x5a7377||'default');if(M(_0x11b927)!='object')return _0x11b927;throw TypeError(_0x565a41(0x1be));}return(_0x5a7377===_0x565a41(0x18b)?String:Number)(_0x21445b);}function Fe(_0x46865a){const _0x5abf7f=_0x38a2;var _0x16295c=Pe(_0x46865a,_0x5abf7f(0x18b));return M(_0x16295c)==_0x5abf7f(0x168)?_0x16295c:_0x16295c+'';}function N(_0x5cdda2,_0x497ba8,_0x315bf7){const _0x1d226c=_0x38a2;return(_0x497ba8=Fe(_0x497ba8))in _0x5cdda2?Object[_0x1d226c(0x1fc)](_0x5cdda2,_0x497ba8,{'value':_0x315bf7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cdda2[_0x497ba8]=_0x315bf7,_0x5cdda2;}var P=class extends _0x1f59cd{constructor(..._0x2ac573){const _0x5ca148=_0x38a2;super(..._0x2ac573),N(this,'_outlines',new Map()),N(this,_0x5ca148(0x160),new _0x2a2d34()),N(this,_0x5ca148(0x1a1),this[_0x5ca148(0x160)]['asObservable']());}[_0x2552be(0x1c8)](_0x7f983f,_0x2d68fd){const _0x5e9db7=_0x2552be;var _0x4797d3;return[...((_0x4797d3=this[_0x5e9db7(0x1f0)][_0x5e9db7(0x194)](_0x7f983f))==null?void 0x0:_0x4797d3[_0x5e9db7(0x194)](_0x2d68fd))??[]];}[_0x2552be(0x1b8)](_0x61bcc0){const _0x108009=_0x2552be;let _0x4b69d8=this[_0x108009(0x1f0)][_0x108009(0x194)](_0x61bcc0),_0x2defc2=new Map();return _0x4b69d8==null||_0x4b69d8['forEach']((_0x57502f,_0x340e5f)=>{const _0x10e1c5=_0x108009;_0x2defc2[_0x10e1c5(0x1ec)](_0x340e5f,[..._0x57502f]);}),_0x2defc2;}[_0x2552be(0x1d8)](_0x327a5c,_0x14989d,_0x1d82f6){const _0x120bdb=_0x2552be;this['_ensureUnitOutlines'](_0x327a5c)[_0x120bdb(0x1ec)](_0x14989d,[..._0x1d82f6]),this['_change$']['next']({'unitId':_0x327a5c,'subUnitId':_0x14989d});}[_0x2552be(0x15f)](_0x479a3c){const _0x35024f=_0x2552be;this[_0x35024f(0x1f0)]['delete'](_0x479a3c),this[_0x35024f(0x160)]['next']({'unitId':_0x479a3c});}['serialize'](_0xe43e82){const _0x33f54c=_0x2552be;let _0x4a4930=this[_0x33f54c(0x1f0)][_0x33f54c(0x194)](_0xe43e82),_0x4d5e8c={};return _0x4a4930==null||_0x4a4930[_0x33f54c(0x1b2)]((_0x1ecb64,_0x1aedd5)=>{_0x4d5e8c[_0x1aedd5]={'outlineList':[..._0x1ecb64]};}),_0x4d5e8c;}[_0x2552be(0x1db)](_0x32db43,_0x3221b0){const _0x5e2a1c=_0x2552be;let _0x3204e3=new Map();Object[_0x5e2a1c(0x179)](_0x3221b0)[_0x5e2a1c(0x1b2)](([_0x4860aa,_0x10b7bf])=>{const _0x10ae6b=_0x5e2a1c;_0x3204e3[_0x10ae6b(0x1ec)](_0x4860aa,[..._0x10b7bf[_0x10ae6b(0x1d9)]??[]]);}),this[_0x5e2a1c(0x1f0)][_0x5e2a1c(0x1ec)](_0x32db43,_0x3204e3),this['_change$'][_0x5e2a1c(0x16a)]({'unitId':_0x32db43});}[_0x2552be(0x1e3)](){const _0x2162f8=_0x2552be;super[_0x2162f8(0x1e3)](),this[_0x2162f8(0x1f0)][_0x2162f8(0x1c6)](),this[_0x2162f8(0x160)]['complete']();}['_ensureUnitOutlines'](_0x414ba9){const _0x9124e8=_0x2552be;let _0x42065a=this['_outlines'][_0x9124e8(0x194)](_0x414ba9);return _0x42065a||(_0x42065a=new Map(),this[_0x9124e8(0x1f0)][_0x9124e8(0x1ec)](_0x414ba9,_0x42065a)),_0x42065a;}},F=class extends _0x1f59cd{constructor(..._0x428f75){const _0x3fcfa1=_0x2552be;super(..._0x428f75),N(this,'_error$',new _0x2a2d34()),N(this,'error$',this[_0x3fcfa1(0x1c7)]['asObservable']());}['emit'](_0x58f457){const _0x966952=_0x2552be;this[_0x966952(0x1c7)][_0x966952(0x16a)](_0x58f457);}[_0x2552be(0x1e3)](){const _0x422c9c=_0x2552be;super[_0x422c9c(0x1e3)](),this[_0x422c9c(0x1c7)][_0x422c9c(0x1ab)]();}};const I={'id':_0x2552be(0x1b0),'type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x10a33c,_0xa19a29)=>{const _0x50075e=_0x2552be;let _0x4879c9=_0x10a33c[_0x50075e(0x194)](P),_0x5091a3=_0x4879c9[_0x50075e(0x1c8)](_0xa19a29[_0x50075e(0x181)],_0xa19a29[_0x50075e(0x1c4)]);return _0x4879c9['setOutlines'](_0xa19a29[_0x50075e(0x181)],_0xa19a29['subUnitId'],xe(_0x5091a3,_0xa19a29[_0x50075e(0x175)])),!0x0;}},L={'id':_0x2552be(0x1e9),'type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x23e142,_0x17b863)=>{const _0x23c802=_0x2552be;let _0x345e37=_0x23e142['get'](P),_0x182679=_0x345e37['getOutlines'](_0x17b863[_0x23c802(0x181)],_0x17b863[_0x23c802(0x1c4)]);return _0x345e37[_0x23c802(0x1d8)](_0x17b863[_0x23c802(0x181)],_0x17b863[_0x23c802(0x1c4)],_0x182679[_0x23c802(0x188)](_0x2c555a=>_0x2c555a['id']!==_0x17b863[_0x23c802(0x1b6)])),!0x0;}};function R(_0x515a84,_0x4c11c4,_0x21739e){const _0x54fcd6=_0x2552be;let _0x4a507c=Le(_0x515a84);return!_0x4a507c||_0x4a507c[_0x54fcd6(0x169)]({'workbookTypes':[_0xd8479c],'worksheetTypes':[_0x230a03]},_0x4c11c4,_0x21739e);}function Ie(_0x5a7b03,_0x231799,_0x11051d){const _0x49a20d=_0x2552be;let _0x4a94f5=Re(_0x5a7b03);return((_0x4a94f5==null?void 0x0:_0x4a94f5[_0x49a20d(0x165)])??_0x4fe5d5(null))[_0x49a20d(0x1e8)](_0x1bdf9f(0x64),_0x4ef7b8(null),_0x5d1f67(()=>R(_0x5a7b03,_0x231799,_0x11051d)));}function Le(_0x145936){const _0x187edf=_0x2552be;if(typeof _0x145936[_0x187edf(0x1e2)]==_0x187edf(0x1c1)&&!_0x145936['has'](_0x891372))return null;try{return _0x145936[_0x187edf(0x194)](_0x891372);}catch{return null;}}function Re(_0x1658e0){const _0x513d38=_0x2552be;if(typeof _0x1658e0[_0x513d38(0x1e2)]==_0x513d38(0x1c1)&&!_0x1658e0[_0x513d38(0x1e2)](_0x51f3bd))return null;try{return _0x1658e0[_0x513d38(0x194)](_0x51f3bd);}catch{return null;}}const z={'id':_0x2552be(0x1df),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x5c4c58,_0x28d55b)=>{const _0x215766=_0x2552be;if(!_0x28d55b)return!0x1;let _0x4b07c6=_0x5bb827(_0x5c4c58[_0x215766(0x194)](_0x241e59),_0x28d55b);if(!_0x4b07c6)return!0x1;let {unitId:_0x253be2,subUnitId:_0x489a70,worksheet:_0x5f278f}=_0x4b07c6;if(!R(_0x5c4c58,_0x253be2,_0x489a70))return!0x1;let _0x45f60a=_0x5c4c58[_0x215766(0x194)](P),_0x5d0e39={'id':_0x215766(0x187)+_0x293be6(0x6),'unitId':_0x253be2,'subUnitId':_0x489a70,'axis':_0x28d55b[_0x215766(0x1cc)],'start':_0x28d55b[_0x215766(0x19f)],'end':_0x28d55b[_0x215766(0x18a)],'collapsed':!0x1},_0x849c4a=_0x28d55b[_0x215766(0x1cc)]===_0x215766(0x1d6)?_0x5f278f[_0x215766(0x19a)]():_0x5f278f[_0x215766(0x1b9)](),_0x5a1569=_0x45f60a[_0x215766(0x1c8)](_0x253be2,_0x489a70),_0x5628d7=Se(_0x5a1569,_0x5d0e39),_0x40293c=(_0x5628d7==null?void 0x0:_0x5628d7['mergedOutlines'])??[],_0x233d4b=(_0x5628d7==null?void 0x0:_0x5628d7[_0x215766(0x1b7)])??_0x5d0e39,_0x1e59f4=E(_0x5628d7?_0x5a1569[_0x215766(0x188)](_0x57c307=>!_0x40293c[_0x215766(0x1d0)](_0x114622=>_0x114622['id']===_0x57c307['id'])):_0x5a1569,_0x233d4b,{'maxIndex':_0x849c4a});if(!_0x1e59f4['valid'])return _0x5c4c58[_0x215766(0x194)](F)[_0x215766(0x1a0)]({'reason':_0x1e59f4[_0x215766(0x1fa)]??_0x215766(0x17d),'commandId':z['id'],'unitId':_0x253be2,'subUnitId':_0x489a70,'axis':_0x28d55b[_0x215766(0x1cc)],'outlineId':_0x233d4b['id']}),!0x1;let _0x3d993e=[..._0x40293c[_0x215766(0x1a2)](_0x262d52=>({'id':L['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outlineId':_0x262d52['id']}})),{'id':I['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outline':_0x233d4b}}],_0x4bbeb5=[{'id':L['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outlineId':_0x233d4b['id']}},..._0x40293c[_0x215766(0x1a2)](_0x4d8be8=>({'id':I['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outline':_0x4d8be8}}))];return _0x5c69e0(_0x3d993e,_0x5c4c58['get'](_0xec1c95))[_0x215766(0x180)]?(_0x5c4c58['get'](_0x3d7842)['pushUndoRedo']({'unitID':_0x253be2,'undoMutations':_0x4bbeb5,'redoMutations':_0x3d993e}),!0x0):!0x1;}},B={'id':'sheet.mutation.clear-dimension-outlines','type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x57b757,_0x34b06e)=>{const _0x333a19=_0x2552be;let _0x3baa0d=_0x57b757[_0x333a19(0x194)](P),_0x314209=_0x3baa0d['getOutlines'](_0x34b06e['unitId'],_0x34b06e[_0x333a19(0x1c4)]);return _0x3baa0d['setOutlines'](_0x34b06e['unitId'],_0x34b06e['subUnitId'],Ce(_0x314209,_0x34b06e)),!0x0;}},V={'id':_0x2552be(0x200),'type':_0x42c5de['COMMAND'],'handler':(_0x147d6b,_0x5b5d83)=>{const _0x216dee=_0x2552be;if(!_0x5b5d83)return!0x1;let _0x23ff78=_0x5bb827(_0x147d6b[_0x216dee(0x194)](_0x241e59),_0x5b5d83);if(!_0x23ff78)return!0x1;let {unitId:_0x6a1fc2,subUnitId:_0x47e9c2}=_0x23ff78;if(!R(_0x147d6b,_0x6a1fc2,_0x47e9c2))return!0x1;let _0x27be32={'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'axis':_0x5b5d83[_0x216dee(0x1cc)],'start':_0x5b5d83[_0x216dee(0x19f)],'end':_0x5b5d83['end']},_0xb65329=_0x147d6b[_0x216dee(0x194)](P)[_0x216dee(0x1c8)](_0x6a1fc2,_0x47e9c2)['filter'](_0x4c2f33=>w(_0x4c2f33,_0x27be32)&&_0x4c2f33[_0x216dee(0x19f)]>=_0x5b5d83['start']&&_0x4c2f33[_0x216dee(0x18a)]<=_0x5b5d83[_0x216dee(0x18a)]);if(_0xb65329[_0x216dee(0x198)]===0x0)return _0x147d6b[_0x216dee(0x194)](F)[_0x216dee(0x1a0)]({'reason':'clear-range-not-contain-outline','commandId':V['id'],'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'axis':_0x5b5d83[_0x216dee(0x1cc)]}),!0x1;let _0x5d7797=[{'id':B['id'],'params':{..._0x27be32,'removedOutlineIds':_0xb65329[_0x216dee(0x1a2)](_0x5e326f=>_0x5e326f['id'])}}],_0x2fef0b=_0xb65329[_0x216dee(0x1a2)](_0x571fa0=>({'id':I['id'],'params':{'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'outline':_0x571fa0}}));return _0x5c69e0(_0x5d7797,_0x147d6b[_0x216dee(0x194)](_0xec1c95))[_0x216dee(0x180)]?(_0x147d6b[_0x216dee(0x194)](_0x3d7842)[_0x216dee(0x167)]({'unitID':_0x6a1fc2,'undoMutations':_0x2fef0b,'redoMutations':_0x5d7797}),!0x0):!0x1;}},ze={'id':_0x2552be(0x1a9),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x19b640,_0xe9cf2d)=>{const _0x5294eb=_0x2552be;if(!_0xe9cf2d)return!0x1;let _0xd84f79=_0x5bb827(_0x19b640['get'](_0x241e59),_0xe9cf2d);if(!_0xd84f79)return!0x1;let {unitId:_0x129088,subUnitId:_0x44e473}=_0xd84f79;if(!R(_0x19b640,_0x129088,_0x44e473))return!0x1;let _0x57e34c=_0x19b640['get'](P)[_0x5294eb(0x1c8)](_0x129088,_0x44e473)[_0x5294eb(0x162)](_0x3f499e=>_0x3f499e['id']===_0xe9cf2d['outlineId']);if(!_0x57e34c)return!0x1;let _0x5b1899=[{'id':L['id'],'params':{'unitId':_0x129088,'subUnitId':_0x44e473,'outlineId':_0x57e34c['id'],'outline':_0x57e34c}}],_0xf14de2=[{'id':I['id'],'params':{'unitId':_0x129088,'subUnitId':_0x44e473,'outline':_0x57e34c}}];return _0x5c69e0(_0x5b1899,_0x19b640[_0x5294eb(0x194)](_0xec1c95))[_0x5294eb(0x180)]?(_0x19b640[_0x5294eb(0x194)](_0x3d7842)[_0x5294eb(0x167)]({'unitID':_0x129088,'undoMutations':_0xf14de2,'redoMutations':_0x5b1899}),!0x0):!0x1;}},H={'id':'sheet.mutation.set-dimension-outline-collapsed','type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x8b13a6,_0x5a6a2e)=>{const _0x510f3=_0x2552be;let _0x4ead48=_0x8b13a6['get'](P),_0x448b1c=_0x4ead48[_0x510f3(0x1c8)](_0x5a6a2e['unitId'],_0x5a6a2e[_0x510f3(0x1c4)]),_0x2573ec=_0x448b1c[_0x510f3(0x162)](_0x1deac0=>_0x1deac0['id']===_0x5a6a2e[_0x510f3(0x1b6)]);return _0x2573ec&&_0x4ead48[_0x510f3(0x1d8)](_0x5a6a2e['unitId'],_0x5a6a2e[_0x510f3(0x1c4)],_0x448b1c[_0x510f3(0x1a2)](_0x260d50=>_0x260d50[_0x510f3(0x181)]!==_0x2573ec['unitId']||_0x260d50['subUnitId']!==_0x2573ec[_0x510f3(0x1c4)]||_0x260d50[_0x510f3(0x1cc)]!==_0x2573ec['axis']||_0x260d50['start']!==_0x2573ec[_0x510f3(0x19f)]||_0x260d50[_0x510f3(0x18a)]!==_0x2573ec[_0x510f3(0x18a)]?_0x260d50:{..._0x260d50,'collapsed':_0x5a6a2e[_0x510f3(0x193)]})),!0x0;}};function Be(_0x150999,_0x2f6de1,_0x3f2b40,_0x1ad0df){const _0x4e8e82=_0x2552be;return _0x150999===_0x4e8e82(0x1d6)?{'startRow':_0x2f6de1,'endRow':_0x3f2b40,'startColumn':0x0,'endColumn':_0x1ad0df[_0x4e8e82(0x17e)]()-0x1}:{'startRow':0x0,'endRow':_0x1ad0df[_0x4e8e82(0x19a)]()-0x1,'startColumn':_0x2f6de1,'endColumn':_0x3f2b40};}function Ve(_0x362e95){return _0x362e95==='row'?_0x3c2892['id']:_0x5d70bb['id'];}function He(_0x24045d){return _0x24045d==='row'?_0x35cb71['id']:_0x34dce4['id'];}function Ue(_0x22c288,_0x31fd9b,_0x4ba758,_0x24c0be){const _0x4c563b=_0x2552be;let _0x3eef17=_0x31fd9b?[Be(_0x22c288[_0x4c563b(0x1cc)],_0x22c288[_0x4c563b(0x19f)],_0x22c288[_0x4c563b(0x18a)],_0x4ba758)]:We(_0x22c288,_0x24c0be,_0x4ba758),_0x5d6c61=_0x31fd9b?Ve(_0x22c288[_0x4c563b(0x1cc)]):He(_0x22c288['axis']);return[{'id':H['id'],'params':{'unitId':_0x22c288[_0x4c563b(0x181)],'subUnitId':_0x22c288['subUnitId'],'outlineId':_0x22c288['id'],'outline':_0x22c288,'collapsed':_0x31fd9b}},..._0x3eef17[_0x4c563b(0x1a2)](_0x120e67=>({'id':_0x5d6c61,'params':{'unitId':_0x22c288[_0x4c563b(0x181)],'subUnitId':_0x22c288[_0x4c563b(0x1c4)],'ranges':[_0x120e67],'dimensionOutlineId':_0x22c288['id']}}))];}function We(_0x506140,_0x361739,_0x327434){const _0x5a15fc=_0x2552be;let _0x103f42=we(_0x361739[_0x5a15fc(0x1a2)](_0x529153=>Ge(_0x529153,_0x506140)?{..._0x529153,'collapsed':!0x1}:_0x529153),_0x506140[_0x5a15fc(0x181)],_0x506140['subUnitId'],_0x506140[_0x5a15fc(0x1cc)]);return Ke({'start':_0x506140['start'],'end':_0x506140[_0x5a15fc(0x18a)]},_0x103f42)[_0x5a15fc(0x1a2)](_0xefe5a7=>Be(_0x506140[_0x5a15fc(0x1cc)],_0xefe5a7[_0x5a15fc(0x19f)],_0xefe5a7[_0x5a15fc(0x18a)],_0x327434));}function Ge(_0x126872,_0x17f447){const _0xfce4c4=_0x2552be;return _0x126872[_0xfce4c4(0x181)]===_0x17f447[_0xfce4c4(0x181)]&&_0x126872[_0xfce4c4(0x1c4)]===_0x17f447[_0xfce4c4(0x1c4)]&&_0x126872[_0xfce4c4(0x1cc)]===_0x17f447[_0xfce4c4(0x1cc)]&&_0x126872[_0xfce4c4(0x19f)]===_0x17f447[_0xfce4c4(0x19f)]&&_0x126872[_0xfce4c4(0x18a)]===_0x17f447['end'];}function Ke(_0x2fad72,_0x4084f2){const _0x36b7c9=_0x2552be;let _0xfc5c88=_0x2fad72[_0x36b7c9(0x19f)],_0x516ffa=[];for(let _0x24a2d7 of _0x4084f2)if(!(_0x24a2d7[_0x36b7c9(0x18a)]<_0xfc5c88||_0x24a2d7[_0x36b7c9(0x19f)]>_0x2fad72[_0x36b7c9(0x18a)])&&(_0x24a2d7['start']>_0xfc5c88&&_0x516ffa[_0x36b7c9(0x170)]({'start':_0xfc5c88,'end':Math[_0x36b7c9(0x1d7)](_0x24a2d7[_0x36b7c9(0x19f)]-0x1,_0x2fad72[_0x36b7c9(0x18a)])}),_0xfc5c88=Math[_0x36b7c9(0x17b)](_0xfc5c88,_0x24a2d7[_0x36b7c9(0x18a)]+0x1),_0xfc5c88>_0x2fad72[_0x36b7c9(0x18a)]))break;return _0xfc5c88<=_0x2fad72[_0x36b7c9(0x18a)]&&_0x516ffa[_0x36b7c9(0x170)]({'start':_0xfc5c88,'end':_0x2fad72[_0x36b7c9(0x18a)]}),_0x516ffa;}const qe={'id':_0x2552be(0x1a3),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x67a539,_0x58eba9)=>{const _0x17982b=_0x2552be;if(!_0x58eba9)return!0x1;let _0x552f38=_0x5bb827(_0x67a539['get'](_0x241e59),_0x58eba9);if(!_0x552f38)return!0x1;let {unitId:_0xe5ccd9,subUnitId:_0x1b3504,worksheet:_0x1ea647}=_0x552f38;if(!R(_0x67a539,_0xe5ccd9,_0x1b3504))return!0x1;let _0x5e36c8=_0x67a539[_0x17982b(0x194)](P)[_0x17982b(0x1c8)](_0xe5ccd9,_0x1b3504),_0x1cfd45=_0x5e36c8[_0x17982b(0x162)](_0x11c0a9=>_0x11c0a9['id']===_0x58eba9[_0x17982b(0x1b6)]);if(!_0x1cfd45||_0x1cfd45[_0x17982b(0x193)]===_0x58eba9[_0x17982b(0x193)])return!0x1;let _0x513644=Ue(_0x1cfd45,_0x58eba9[_0x17982b(0x193)],_0x1ea647,_0x5e36c8),_0x58730a=Ue(_0x1cfd45,!_0x58eba9[_0x17982b(0x193)],_0x1ea647,_0x5e36c8);return _0x5c69e0(_0x513644,_0x67a539[_0x17982b(0x194)](_0xec1c95))[_0x17982b(0x180)]?(_0x67a539[_0x17982b(0x194)](_0x3d7842)['pushUndoRedo']({'unitID':_0xe5ccd9,'undoMutations':_0x58730a,'redoMutations':_0x513644}),!0x0):!0x1;}},U={'id':_0x2552be(0x18c),'type':_0x42c5de['MUTATION'],'handler':(_0x559171,_0x323a59)=>{const _0x45af3e=_0x2552be;let _0xc91e27=_0x559171[_0x45af3e(0x194)](P),_0x534ddd=Je(_0xc91e27[_0x45af3e(0x1c8)](_0x323a59[_0x45af3e(0x181)],_0x323a59[_0x45af3e(0x1c4)]),_0x323a59);return _0xc91e27[_0x45af3e(0x1d8)](_0x323a59[_0x45af3e(0x181)],_0x323a59['subUnitId'],_0x534ddd),!0x0;}};function Je(_0x224f60,_0x242938){const _0x14e1f2=_0x2552be;switch(_0x242938[_0x14e1f2(0x201)]){case _0x14e1f2(0x1ef):return _0x242938['restoreOutlines']?Ye(_0x224f60,_0x242938):D(_0x224f60,_0x242938);case'delete':return O(_0x224f60,_0x242938);case'move':return k(_0x224f60,_0x242938);}}function Ye(_0x244f3b,_0x59ab84){const _0x16338f=_0x2552be;return[..._0x244f3b[_0x16338f(0x188)](_0x241421=>_0x241421[_0x16338f(0x181)]!==_0x59ab84[_0x16338f(0x181)]||_0x241421['subUnitId']!==_0x59ab84[_0x16338f(0x1c4)]||_0x241421['axis']!==_0x59ab84['axis']),..._0x59ab84[_0x16338f(0x1ba)]];}const W=_0x2552be(0x164);var Xe=_0x2552be(0x1dc),Ze=_0x2552be(0x1fb);const Qe={};function _0x38a2(_0x419161,_0x1a9cb8){_0x419161=_0x419161-0x158;const _0x327d3e=_0x327d();let _0x38a208=_0x327d3e[_0x419161];return _0x38a208;}function G(_0x51ab05,_0x228909){return function(_0x72c19,_0x25a0bc){_0x228909(_0x72c19,_0x25a0bc,_0x51ab05);};}function K(_0x28b277,_0x32874d,_0x1e40d6,_0x501e79){const _0x40a916=_0x2552be;var _0x213ba6=arguments[_0x40a916(0x198)],_0x20993e=_0x213ba6<0x3?_0x32874d:_0x501e79===null?_0x501e79=Object[_0x40a916(0x1f2)](_0x32874d,_0x1e40d6):_0x501e79,_0x404f41;if(typeof Reflect==_0x40a916(0x1f4)&&typeof Reflect[_0x40a916(0x1d2)]==_0x40a916(0x1c1))_0x20993e=Reflect[_0x40a916(0x1d2)](_0x28b277,_0x32874d,_0x1e40d6,_0x501e79);else{for(var _0x143a0b=_0x28b277[_0x40a916(0x198)]-0x1;_0x143a0b>=0x0;_0x143a0b--)(_0x404f41=_0x28b277[_0x143a0b])&&(_0x20993e=(_0x213ba6<0x3?_0x404f41(_0x20993e):_0x213ba6>0x3?_0x404f41(_0x32874d,_0x1e40d6,_0x20993e):_0x404f41(_0x32874d,_0x1e40d6))||_0x20993e);}return _0x213ba6>0x3&&_0x20993e&&Object[_0x40a916(0x1fc)](_0x32874d,_0x1e40d6,_0x20993e),_0x20993e;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x1f59cd{constructor(_0x46c477,_0x5413f,_0x809106,_0x44a9f8){const _0x4803b1=_0x2552be;super(),this[_0x4803b1(0x1d5)]=_0x46c477,this[_0x4803b1(0x196)]=_0x5413f,this[_0x4803b1(0x1ac)]=_0x809106,this[_0x4803b1(0x176)]=_0x44a9f8,this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x139fc4=_0x2552be;this[_0x139fc4(0x1e7)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x3620ea=>$e(_0x3620ea,(_0x4e2f91,_0x4d465c)=>this[_0x139fc4(0x1ac)][_0x139fc4(0x1c8)](_0x4e2f91,_0x4d465c),this['_getCommandScope'](_0x3620ea[_0x139fc4(0x1f5)]),_0x5bbfa6=>this[_0x139fc4(0x176)][_0x139fc4(0x1a0)](_0x5bbfa6))}));}[_0x2552be(0x1c9)](_0x460caf){const _0x4b3f5c=_0x2552be;let _0xddc4a0=_0x460caf,_0x11e16d=_0xddc4a0!=null&&_0xddc4a0[_0x4b3f5c(0x181)]?this[_0x4b3f5c(0x1d5)][_0x4b3f5c(0x17c)](_0xddc4a0['unitId'],_0x149174['UNIVER_SHEET']):this[_0x4b3f5c(0x1d5)][_0x4b3f5c(0x158)](_0x149174[_0x4b3f5c(0x1bc)]);if(!_0x11e16d)return;let _0x5d2ff6=_0xddc4a0!=null&&_0xddc4a0['subUnitId']?_0x11e16d[_0x4b3f5c(0x199)](_0xddc4a0['subUnitId']):_0x11e16d[_0x4b3f5c(0x1af)]();if(_0x5d2ff6)return{'unitId':_0x11e16d[_0x4b3f5c(0x1e0)](),'subUnitId':_0x5d2ff6[_0x4b3f5c(0x1ff)]()};}};J=K([G(0x0,_0x241e59),G(0x1,_0x259385(_0x2d3c87)),G(0x2,_0x259385(P)),G(0x3,_0x259385(F))],J);function $e(_0x405408,_0x1ef5ce,_0x4a75b8,_0x4590ac){const _0x1b62d2=_0x2552be;let _0x571aa1=tt(_0x405408,_0x4a75b8);if(!_0x571aa1)return Z();let _0x1bb55b=_0x1ef5ce(_0x571aa1[_0x1b62d2(0x181)],_0x571aa1[_0x1b62d2(0x1c4)]);if(!_0x1bb55b['some'](_0x18b16f=>_0x18b16f['axis']===_0x571aa1[_0x1b62d2(0x1cc)]))return Z();et(_0x1bb55b,_0x571aa1,_0x405408['id'],_0x4590ac);let _0x453cb0=it(_0x571aa1,_0x1bb55b);return{'redos':[{'id':U['id'],'params':_0x571aa1}],'undos':[{'id':U['id'],'params':_0x453cb0}],'preRedos':[],'preUndos':[]};}function et(_0x3b0d27,_0x51daeb,_0x28eb9b,_0x266195){const _0xc4a5d=_0x2552be;try{switch(_0x51daeb[_0xc4a5d(0x201)]){case _0xc4a5d(0x1ef):D(_0x3b0d27,_0x51daeb);break;case _0xc4a5d(0x1e6):O(_0x3b0d27,_0x51daeb);break;case _0xc4a5d(0x171):k(_0x3b0d27,_0x51daeb);}}catch(_0x597264){throw _0x266195==null||_0x266195({'reason':ye(_0x597264),'commandId':_0x28eb9b,'unitId':_0x51daeb[_0xc4a5d(0x181)],'subUnitId':_0x51daeb[_0xc4a5d(0x1c4)],'axis':_0x51daeb['axis'],'outlineId':be(_0x597264)}),new _0x6678d2(_0x597264 instanceof Error?_0x597264[_0xc4a5d(0x195)]:_0xc4a5d(0x1aa));}}function tt(_0x4f65fd,_0x44b4c6){const _0x3a70f3=_0x2552be;switch(_0x4f65fd['id']){case _0x576ba9['id']:return Y(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1d6),_0x44b4c6);case _0x540713['id']:return Y(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1b5),_0x44b4c6);case _0x19474a['id']:return nt(_0x4f65fd[_0x3a70f3(0x1f5)],'row',_0x44b4c6);case _0x289843['id']:return nt(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1b5),_0x44b4c6);case _0x32509d['id']:return rt(_0x4f65fd[_0x3a70f3(0x1f5)],'row',_0x44b4c6);case _0x5c3cdd['id']:return rt(_0x4f65fd['params'],'column',_0x44b4c6);default:return null;}}function Y(_0x53cfdc,_0x2ec943,_0x334792){const _0x1645cc=_0x2552be;let _0x51c991=X(_0x53cfdc,_0x334792);if(!(_0x53cfdc!=null&&_0x53cfdc[_0x1645cc(0x18d)])||!_0x51c991)return null;let _0x18ddad=_0x2ec943==='row'?_0x53cfdc['range']['startRow']:_0x53cfdc[_0x1645cc(0x18d)][_0x1645cc(0x1d3)],_0x5ce83f=_0x2ec943===_0x1645cc(0x1d6)?_0x53cfdc['range'][_0x1645cc(0x1c2)]:_0x53cfdc[_0x1645cc(0x18d)]['endColumn'];return{..._0x51c991,'axis':_0x2ec943,'type':'insert','index':_0x18ddad,'count':_0x5ce83f-_0x18ddad+0x1};}function nt(_0x527605,_0x47950d,_0x303da3){const _0x419e17=_0x2552be;let _0x191159=X(_0x527605,_0x303da3);if(!(_0x527605!=null&&_0x527605[_0x419e17(0x18d)])||!_0x191159)return null;let _0x3bddf6=_0x47950d===_0x419e17(0x1d6)?_0x527605['range']['startRow']:_0x527605[_0x419e17(0x18d)]['startColumn'],_0x555a9e=_0x47950d===_0x419e17(0x1d6)?_0x527605[_0x419e17(0x18d)]['endRow']:_0x527605[_0x419e17(0x18d)][_0x419e17(0x173)];return{..._0x191159,'axis':_0x47950d,'type':_0x419e17(0x1e6),'start':_0x3bddf6,'end':_0x555a9e};}function rt(_0x23effb,_0x4cd064,_0x40d035){const _0x850808=_0x2552be;let _0x372da1=X(_0x23effb,_0x40d035);if(!(_0x23effb!=null&&_0x23effb[_0x850808(0x190)])||!_0x23effb[_0x850808(0x18e)]||!_0x372da1)return null;let _0x4e05eb=_0x4cd064===_0x850808(0x1d6)?_0x23effb[_0x850808(0x190)][_0x850808(0x1b1)]:_0x23effb['fromRange'][_0x850808(0x1d3)],_0x42c9bc=_0x4cd064==='row'?_0x23effb[_0x850808(0x190)]['endRow']:_0x23effb[_0x850808(0x190)]['endColumn'],_0x323287=_0x4cd064==='row'?_0x23effb[_0x850808(0x18e)][_0x850808(0x1b1)]:_0x23effb[_0x850808(0x18e)]['startColumn'];return{..._0x372da1,'axis':_0x4cd064,'type':_0x850808(0x171),'sourceStart':_0x4e05eb,'sourceEnd':_0x42c9bc,'destinationIndex':_0x323287};}function it(_0x1dc0e2,_0x4599d6){const _0x19ec84=_0x2552be;switch(_0x1dc0e2[_0x19ec84(0x201)]){case _0x19ec84(0x1ef):return{'unitId':_0x1dc0e2[_0x19ec84(0x181)],'subUnitId':_0x1dc0e2['subUnitId'],'axis':_0x1dc0e2[_0x19ec84(0x1cc)],'type':_0x19ec84(0x1e6),'start':_0x1dc0e2[_0x19ec84(0x1d1)],'end':_0x1dc0e2[_0x19ec84(0x1d1)]+_0x1dc0e2[_0x19ec84(0x1dd)]-0x1};case'delete':return{'unitId':_0x1dc0e2['unitId'],'subUnitId':_0x1dc0e2[_0x19ec84(0x1c4)],'axis':_0x1dc0e2[_0x19ec84(0x1cc)],'type':'insert','index':_0x1dc0e2[_0x19ec84(0x19f)],'count':_0x1dc0e2['end']-_0x1dc0e2[_0x19ec84(0x19f)]+0x1,'restoreOutlines':_0x4599d6[_0x19ec84(0x188)](_0x38e353=>_0x38e353[_0x19ec84(0x181)]===_0x1dc0e2[_0x19ec84(0x181)]&&_0x38e353[_0x19ec84(0x1c4)]===_0x1dc0e2['subUnitId']&&_0x38e353[_0x19ec84(0x1cc)]===_0x1dc0e2[_0x19ec84(0x1cc)])};case _0x19ec84(0x171):return at(_0x1dc0e2);}}function at(_0x3f2c43){const _0x2be49b=_0x2552be;let _0x1cae23=_0x3f2c43[_0x2be49b(0x189)]-_0x3f2c43[_0x2be49b(0x178)]+0x1;return _0x3f2c43[_0x2be49b(0x1ed)]>=_0x3f2c43['sourceStart']&&_0x3f2c43[_0x2be49b(0x1ed)]<=_0x3f2c43[_0x2be49b(0x189)]+0x1?{..._0x3f2c43}:_0x3f2c43[_0x2be49b(0x1ed)]>_0x3f2c43[_0x2be49b(0x189)]+0x1?{..._0x3f2c43,'sourceStart':_0x3f2c43['destinationIndex']-_0x1cae23,'sourceEnd':_0x3f2c43[_0x2be49b(0x1ed)]-0x1,'destinationIndex':_0x3f2c43[_0x2be49b(0x178)]}:{..._0x3f2c43,'sourceStart':_0x3f2c43[_0x2be49b(0x1ed)],'sourceEnd':_0x3f2c43['destinationIndex']+_0x1cae23-0x1,'destinationIndex':_0x3f2c43['sourceEnd']+0x1};}function X(_0x117a10,_0x59e733){const _0x5f839=_0x2552be;let _0x403ef0=(_0x117a10==null?void 0x0:_0x117a10[_0x5f839(0x181)])??(_0x59e733==null?void 0x0:_0x59e733[_0x5f839(0x181)]),_0x2cee26=(_0x117a10==null?void 0x0:_0x117a10[_0x5f839(0x1c4)])??(_0x59e733==null?void 0x0:_0x59e733[_0x5f839(0x1c4)]);return _0x403ef0&&_0x2cee26?{'unitId':_0x403ef0,'subUnitId':_0x2cee26}:null;}function Z(){const _0x50bd84=_0x2552be;return{'redos':[...q[_0x50bd84(0x15e)]],'undos':[...q[_0x50bd84(0x183)]],'preRedos':[...q[_0x50bd84(0x16b)]??[]],'preUndos':[...q[_0x50bd84(0x1a4)]??[]]};}let Q=class extends _0x1f59cd{constructor(_0x260ae3,_0x141566){const _0x551fd1=_0x2552be;super(),this[_0x551fd1(0x17f)]=_0x260ae3,this[_0x551fd1(0x1ac)]=_0x141566,this['_initResource']();}[_0x2552be(0x186)](){const _0x2e0d35=_0x2552be;this['disposeWithMe'](this['_resourceManagerService'][_0x2e0d35(0x184)]({'pluginName':W,'businesses':[_0x149174[_0x2e0d35(0x1bc)]],'toJson':_0x36216e=>JSON[_0x2e0d35(0x1a8)](this[_0x2e0d35(0x1ac)][_0x2e0d35(0x1c5)](_0x36216e)),'parseJson':_0x3baf8b=>JSON[_0x2e0d35(0x1eb)](_0x3baf8b),'onLoad':(_0x2471d6,_0x4e666e)=>this[_0x2e0d35(0x1ac)][_0x2e0d35(0x1db)](_0x2471d6,_0x4e666e),'onUnLoad':_0x425c43=>this[_0x2e0d35(0x1ac)][_0x2e0d35(0x15f)](_0x425c43)}));}};Q=K([G(0x0,_0x12fef9),G(0x1,_0x259385(P))],Q);let $=class extends _0x14323e{constructor(_0x13e0cb=Qe,_0x1f57eb,_0x60d41,_0x28ff81){const _0x27a1f3=_0x2552be;super(),this[_0x27a1f3(0x15c)]=_0x13e0cb,this['_injector']=_0x1f57eb,this[_0x27a1f3(0x1b4)]=_0x60d41,this[_0x27a1f3(0x1ad)]=_0x28ff81;let {..._0x31e9f8}=_0x2da987({},Qe,this[_0x27a1f3(0x15c)]);this[_0x27a1f3(0x1ad)][_0x27a1f3(0x172)](_0x27a1f3(0x177),_0x31e9f8);}[_0x2552be(0x1f1)](){const _0x53cfa5=_0x2552be;this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([P]),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([F]),this['_injector'][_0x53cfa5(0x1fd)]([Q]),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([J]),this[_0x53cfa5(0x1f8)](),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x194)](P),this[_0x53cfa5(0x1ee)]['get'](F),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x194)](Q),this[_0x53cfa5(0x1ee)]['get'](J);}['_initRegisterCommand'](){[z,ze,qe,V]['forEach'](_0x211e9b=>{const _0x254b04=_0x38a2;this[_0x254b04(0x1e7)](this['_commandService'][_0x254b04(0x174)](_0x211e9b));}),[I,L,H,B,U]['forEach'](_0x1a6f0c=>{const _0x8d7eb9=_0x38a2;this[_0x8d7eb9(0x1e7)](this[_0x8d7eb9(0x1b4)]['registerCommand'](_0x1a6f0c));});}};N($,_0x2552be(0x1cd),W),N($,_0x2552be(0x166),Xe),N($,_0x2552be(0x1a7),Ze),N($,_0x2552be(0x201),_0x149174['UNIVER_SHEET']),$=K([_0x24a179(_0x41b4af,_0x4eb0bf),G(0x1,_0x259385(_0x2948c4)),G(0x2,_0xec1c95),G(0x3,_0x88f4c1)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x39e1aa=_0xe1b9;(function(_0x25c429,_0x54851c){var _0x950144=_0xe1b9,_0x4b3585=_0x25c429();while(!![]){try{var _0x1a0692=-parseInt(_0x950144(0x192))/0x1*(parseInt(_0x950144(0x181))/0x2)+parseInt(_0x950144(0x17a))/0x3+-parseInt(_0x950144(0x191))/0x4*(parseInt(_0x950144(0x180))/0x5)+parseInt(_0x950144(0x189))/0x6+-parseInt(_0x950144(0x185))/0x7+parseInt(_0x950144(0x18a))/0x8+-parseInt(_0x950144(0x186))/0x9*(-parseInt(_0x950144(0x178))/0xa);if(_0x1a0692===_0x54851c)break;else _0x4b3585['push'](_0x4b3585['shift']());}catch(_0x117dc5){_0x4b3585['push'](_0x4b3585['shift']());}}}(_0x1a96,0x73c78));import{AddDimensionOutlineCommand as _0x14ba49,ClearDimensionOutlinesCommand as _0x467796,DimensionOutlineAxis as _0x1258d0,DimensionOutlineErrorReason as _0x29ab78,RemoveDimensionOutlineCommand as _0xdb1f28,SetDimensionOutlineCollapsedCommand as _0x3e79e2,SheetsOutlineModel as _0x3526e7}from'@univerjs-pro/sheets-outline';import{FEnum as _0x5da7be}from'@univerjs/core/facade';function _0xe1b9(_0x4a694b,_0x55d8bf){_0x4a694b=_0x4a694b-0x178;var _0x1a961f=_0x1a96();var _0xe1b946=_0x1a961f[_0x4a694b];return _0xe1b946;}import{FWorksheet as _0x47c83b}from'@univerjs/sheets/facade';var l=class extends _0x5da7be{get[_0x39e1aa(0x184)](){return _0x1258d0;}get[_0x39e1aa(0x18f)](){return _0x29ab78;}};_0x5da7be[_0x39e1aa(0x17f)](l);var u=class extends _0x47c83b{[_0x39e1aa(0x190)](_0x50e197,_0xe81133){var _0x49c791=_0x39e1aa;return this[_0x49c791(0x183)](_0x1258d0[_0x49c791(0x18d)],_0x50e197,_0xe81133);}['addColumnOutline'](_0x1b94f5,_0x3667e5){var _0x34a4a9=_0x39e1aa;return this['_addDimensionOutline'](_0x1258d0[_0x34a4a9(0x188)],_0x1b94f5,_0x3667e5);}['removeDimensionOutline'](_0x8efba3){var _0x285d04=_0x39e1aa;return this[_0x285d04(0x187)]['syncExecuteCommand'](_0xdb1f28['id'],{'unitId':this[_0x285d04(0x17d)][_0x285d04(0x18e)](),'subUnitId':this[_0x285d04(0x18b)][_0x285d04(0x182)](),'outlineId':_0x8efba3}),this;}['setDimensionOutlineCollapsed'](_0x50e367,_0x4b2e4f){var _0xb1b056=_0x39e1aa;return this['_commandService'][_0xb1b056(0x17b)](_0x3e79e2['id'],{'unitId':this[_0xb1b056(0x17d)][_0xb1b056(0x18e)](),'subUnitId':this[_0xb1b056(0x18b)]['getSheetId'](),'outlineId':_0x50e367,'collapsed':_0x4b2e4f}),this;}[_0x39e1aa(0x17c)](_0x3ecb52,_0x538777,_0x330d6c){var _0x470d8a=_0x39e1aa;return this['_commandService'][_0x470d8a(0x17b)](_0x467796['id'],{'unitId':this[_0x470d8a(0x17d)][_0x470d8a(0x18e)](),'subUnitId':this[_0x470d8a(0x18b)][_0x470d8a(0x182)](),'axis':_0x3ecb52,'start':_0x538777,'end':_0x330d6c}),this;}['getDimensionOutlines'](_0x4ec3a7){var _0x24dc2b=_0x39e1aa;let _0x3cf39d=this['_injector'][_0x24dc2b(0x17e)](_0x3526e7)['getOutlines'](this[_0x24dc2b(0x17d)]['getUnitId'](),this[_0x24dc2b(0x18b)][_0x24dc2b(0x182)]());return _0x4ec3a7?_0x3cf39d[_0x24dc2b(0x179)](_0x5ca77=>_0x5ca77[_0x24dc2b(0x18c)]===_0x4ec3a7):_0x3cf39d;}['_addDimensionOutline'](_0xc4c11c,_0xb895ad,_0x2f5961){var _0x114850=_0x39e1aa;return this[_0x114850(0x187)][_0x114850(0x17b)](_0x14ba49['id'],{'unitId':this[_0x114850(0x17d)][_0x114850(0x18e)](),'subUnitId':this[_0x114850(0x18b)][_0x114850(0x182)](),'axis':_0xc4c11c,'start':_0xb895ad,'end':_0xb895ad+_0x2f5961-0x1}),this;}};_0x47c83b[_0x39e1aa(0x17f)](u);export{};function _0x1a96(){var _0x138778=['addRowOutline','1114700qIuVIi','721642zlgdqY','170tQqGHs','filter','83670MuwoCc','syncExecuteCommand','clearDimensionOutlines','_workbook','get','extend','5BUPCxt','2KZsBZD','getSheetId','_addDimensionOutline','DimensionOutlineAxis','5597403CzhFAs','362709vcmcmd','_commandService','COLUMN','5112546irRhef','5672640saQgXo','_worksheet','axis','ROW','getUnitId','DimensionOutlineErrorReason'];_0x1a96=function(){return _0x138778;};return _0x1a96();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ce52f=_0x2f6c;(function(_0x39cc53,_0x275b02){const _0x50d63f=_0x2f6c,_0x16f0c8=_0x39cc53();while(!![]){try{const _0x2645fa=-parseInt(_0x50d63f(0x1c2))/0x1*(parseInt(_0x50d63f(0x156))/0x2)+parseInt(_0x50d63f(0x163))/0x3*(-parseInt(_0x50d63f(0x176))/0x4)+-parseInt(_0x50d63f(0x183))/0x5+parseInt(_0x50d63f(0x16c))/0x6+parseInt(_0x50d63f(0x19e))/0x7*(parseInt(_0x50d63f(0x17e))/0x8)+-parseInt(_0x50d63f(0x1a1))/0x9*(parseInt(_0x50d63f(0x1d4))/0xa)+parseInt(_0x50d63f(0x1ae))/0xb*(parseInt(_0x50d63f(0x1b1))/0xc);if(_0x2645fa===_0x275b02)break;else _0x16f0c8['push'](_0x16f0c8['shift']());}catch(_0x48b81f){_0x16f0c8['push'](_0x16f0c8['shift']());}}}(_0x1852,0xd90b5));import{CommandType as _0x370b23,CustomCommandExecutionError as _0x342912,DependentOn as _0x35d92d,Disposable as _0x28774d,ICommandService as _0x5b34db,IConfigService as _0x3ab1ed,IPermissionService as _0x4da996,IResourceManagerService as _0x57db0b,IUndoRedoService as _0x236935,IUniverInstanceService as _0x501b88,Inject as _0xbe0a21,Injector as _0x1ea18e,Plugin as _0xd243c4,UniverInstanceType as _0x1395c1,generateRandomId as _0x358551,merge as _0x1a0e54,sequenceExecute as _0x57ab44}from'@univerjs/core';import{InsertColCommand as _0x3ee2a4,InsertRowCommand as _0x3f6c82,MoveColsCommand as _0x18c95c,MoveRowsCommand as _0x50a7df,RemoveColCommand as _0x4afcff,RemoveRowCommand as _0x4c3e8d,SetColHiddenMutation as _0x401771,SetColVisibleMutation as _0x316671,SetRowHiddenMutation as _0x4a1f85,SetRowVisibleMutation as _0x31f5ab,SheetInterceptorService as _0xb4bd43,SheetPermissionCheckController as _0x345ac3,UniverSheetsPlugin as _0x1d7adc,WorkbookViewPermission as _0x1753bb,WorksheetViewPermission as _0x86b3d9,getSheetCommandTarget as _0x3c973f}from'@univerjs/sheets';import{Subject as _0x53422c,of as _0x51ab36}from'rxjs';import{debounceTime as _0x194e36,map as _0x12a638,startWith as _0x23085b}from'rxjs/operators';import{UniverLicensePlugin as _0x1e0280}from'@univerjs-pro/license';let _e=function(_0x5ad970){const _0x4bb20b=_0x2f6c;return _0x5ad970[_0x4bb20b(0x197)]=_0x4bb20b(0x1dc),_0x5ad970[_0x4bb20b(0x1ed)]='column',_0x5ad970;}({}),ve=function(_0x525da7){const _0x2b5761=_0x2f6c;return _0x525da7[_0x2b5761(0x1f1)]=_0x2b5761(0x1d1),_0x525da7[_0x2b5761(0x196)]=_0x2b5761(0x1c5),_0x525da7['CROSSING']=_0x2b5761(0x171),_0x525da7[_0x2b5761(0x1fc)]='max-depth',_0x525da7[_0x2b5761(0x19f)]=_0x2b5761(0x1f7),_0x525da7[_0x2b5761(0x1c4)]=_0x2b5761(0x1c6),_0x525da7[_0x2b5761(0x1af)]=_0x2b5761(0x192),_0x525da7;}({});var S=class extends Error{constructor(_0x11f16a,_0x69a38b,_0x2e3a39){const _0x4016c0=_0x2f6c;super(_0x69a38b),this[_0x4016c0(0x1b7)]=_0x11f16a,this[_0x4016c0(0x1a5)]=_0x2e3a39,this[_0x4016c0(0x1da)]=_0x4016c0(0x17a);}};function ye(_0x2c4a49){const _0x3459f6=_0x2f6c;return _0x2c4a49 instanceof S?_0x2c4a49[_0x3459f6(0x1b7)]:_0x2c4a49 instanceof Error?_0x2c4a49[_0x3459f6(0x1ac)][_0x3459f6(0x1e0)]('split\x20dimension\x20outline')?'move-splits-outline':_0x2c4a49[_0x3459f6(0x1ac)][_0x3459f6(0x1e0)](_0x3459f6(0x1bc))?_0x3459f6(0x1fb):_0x2c4a49[_0x3459f6(0x1ac)]['includes'](_0x3459f6(0x1b6))?_0x3459f6(0x171):_0x2c4a49['message'][_0x3459f6(0x1e0)](_0x3459f6(0x1fa))?_0x3459f6(0x1d1):'unknown':_0x3459f6(0x192);}function be(_0x3afd38){const _0x4d75d3=_0x2f6c;return _0x3afd38 instanceof S?_0x3afd38[_0x4d75d3(0x1a5)]:void 0x0;}const C=0x2**0x35-0x1;function w(_0x2a97b2,_0x454200){const _0x4c8fb5=_0x2f6c;return _0x2a97b2['unitId']===_0x454200[_0x4c8fb5(0x1e1)]&&_0x2a97b2['subUnitId']===_0x454200[_0x4c8fb5(0x18f)]&&_0x2a97b2[_0x4c8fb5(0x162)]===_0x454200[_0x4c8fb5(0x162)];}function T(_0x3f8325,_0x59b4a8={}){const _0xa6ef92=_0x2f6c;let _0x2115c3=_0x59b4a8[_0xa6ef92(0x1b5)]??0x8,_0x4b841f=new Map();for(let _0x27bfc0 of _0x3f8325){let _0x8a7f6a=_0x27bfc0['unitId']+':'+_0x27bfc0['subUnitId']+':'+_0x27bfc0[_0xa6ef92(0x162)],_0x22d62b=_0x4b841f['get'](_0x8a7f6a);_0x22d62b?_0x22d62b[_0xa6ef92(0x1a8)](_0x27bfc0):_0x4b841f[_0xa6ef92(0x161)](_0x8a7f6a,[_0x27bfc0]);}let _0x39a40a=[];for(let _0x23984e of _0x4b841f[_0xa6ef92(0x1e2)]()){let _0x31b6c4=[..._0x23984e][_0xa6ef92(0x1d3)](j),_0x50e24b=[];for(let _0x128d4c of _0x31b6c4){for(Me(_0x128d4c);_0x50e24b[_0xa6ef92(0x169)]>0x0&&_0x128d4c[_0xa6ef92(0x1e5)]>_0x50e24b[_0x50e24b[_0xa6ef92(0x169)]-0x1][_0xa6ef92(0x168)];)_0x50e24b[_0xa6ef92(0x150)]();let _0x19b044=_0x50e24b[_0x50e24b[_0xa6ef92(0x169)]-0x1];if(_0x19b044&&_0x128d4c['end']>_0x19b044['end'])throw new S(_0xa6ef92(0x171),_0xa6ef92(0x173),_0x128d4c['id']);let _0x2f3bcd=_0x19b044?_0x19b044[_0xa6ef92(0x1bc)]+0x1:0x1;if(_0x2f3bcd>_0x2115c3)throw new S(_0xa6ef92(0x1fb),_0xa6ef92(0x177)+_0x2115c3,_0x128d4c['id']);let _0xa2f298={..._0x128d4c,'depth':_0x2f3bcd,'parentId':_0x19b044==null?void 0x0:_0x19b044['id'],'anchor':_0x128d4c[_0xa6ef92(0x168)],'children':[]};_0x19b044?_0x19b044['children'][_0xa6ef92(0x1a8)](_0xa2f298):_0x39a40a[_0xa6ef92(0x1a8)](_0xa2f298),_0x50e24b[_0xa6ef92(0x1a8)](_0xa2f298);}}return _0x39a40a;}function E(_0x5f07fa,_0x23e6f9,_0x1e9939={}){const _0x5ec90d=_0x2f6c;if(_0x23e6f9['start']<0x0||_0x23e6f9[_0x5ec90d(0x1e5)]>_0x23e6f9['end'])return{'valid':!0x1,'reason':'invalid-range'};if(_0x1e9939[_0x5ec90d(0x190)]!=null&&_0x23e6f9[_0x5ec90d(0x168)]>=_0x1e9939[_0x5ec90d(0x190)])return{'valid':!0x1,'reason':_0x5ec90d(0x1c5)};let _0x29b345=_0x5f07fa[_0x5ec90d(0x1f2)](_0x56b389=>w(_0x56b389,_0x23e6f9));for(let _0x24f48e of _0x29b345)if(Ne(_0x24f48e,_0x23e6f9))return{'valid':!0x1,'reason':_0x5ec90d(0x171)};try{T([..._0x5f07fa,_0x23e6f9],_0x1e9939);}catch(_0x3e4218){let _0x4a1b94=ye(_0x3e4218);return _0x4a1b94===_0x5ec90d(0x1fb)?{'valid':!0x1,'reason':'max-depth'}:_0x4a1b94===_0x5ec90d(0x1d1)?{'valid':!0x1,'reason':_0x5ec90d(0x1d1)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x32caad,_0x153684,_0x417054={}){const _0x42b1a8=_0x2f6c;let _0x294cbe=E(_0x32caad,_0x153684,_0x417054);if(!_0x294cbe[_0x42b1a8(0x1bd)])throw Error(_0x294cbe['reason']??'invalid-dimension-outline');return[..._0x32caad,_0x153684];}function Se(_0x4c5494,_0x222dd3){const _0x294dbe=_0x2f6c;let _0xb25e8b=_0x222dd3['start'],_0x730a07=_0x222dd3[_0x294dbe(0x168)],_0x412efd=[],_0x232066=!0x0;for(;_0x232066;){_0x232066=!0x1;for(let _0x3a4ced of _0x4c5494)!_0x412efd['includes'](_0x3a4ced)&&w(_0x3a4ced,_0x222dd3)&&Ae(_0x3a4ced[_0x294dbe(0x1e5)],_0x3a4ced[_0x294dbe(0x168)],_0xb25e8b,_0x730a07)&&(_0x412efd['push'](_0x3a4ced),_0xb25e8b=Math[_0x294dbe(0x164)](_0xb25e8b,_0x3a4ced[_0x294dbe(0x1e5)]),_0x730a07=Math['max'](_0x730a07,_0x3a4ced['end']),_0x232066=!0x0);}if(_0x412efd['length']===0x0)return null;let [_0x2e7690]=[..._0x412efd]['sort'](j);return{'mergedOutline':{..._0x2e7690,'start':_0xb25e8b,'end':_0x730a07},'mergedOutlines':_0x412efd};}function Ce(_0x454250,_0x54836f){const _0x4675f2=_0x2f6c;return _0x454250['filter'](_0x39f988=>!w(_0x39f988,_0x54836f)||!(_0x39f988[_0x4675f2(0x1e5)]>=_0x54836f[_0x4675f2(0x1e5)]&&_0x39f988[_0x4675f2(0x168)]<=_0x54836f[_0x4675f2(0x168)]));}function we(_0xfab062,_0x170931,_0x47a83e,_0xa036ba){const _0x29f5ce=_0x2f6c;return Te(_0xfab062[_0x29f5ce(0x1f2)](_0x1de5b9=>_0x1de5b9[_0x29f5ce(0x1e1)]===_0x170931&&_0x1de5b9['subUnitId']===_0x47a83e&&_0x1de5b9[_0x29f5ce(0x162)]===_0xa036ba&&_0x1de5b9[_0x29f5ce(0x182)])[_0x29f5ce(0x1bf)](_0x3ade80=>({'start':_0x3ade80['start'],'end':_0x3ade80[_0x29f5ce(0x168)]})));}function Te(_0x3ab997){const _0x3f98d7=_0x2f6c;if(_0x3ab997[_0x3f98d7(0x169)]===0x0)return[];let _0x2df543=[..._0x3ab997][_0x3f98d7(0x1d3)]((_0x4cb9ea,_0x38243c)=>_0x4cb9ea[_0x3f98d7(0x1e5)]-_0x38243c[_0x3f98d7(0x1e5)]||_0x4cb9ea['end']-_0x38243c['end']),_0x379a89=[];for(let _0x59d61e of _0x2df543){let _0x4a025e=_0x379a89[_0x379a89[_0x3f98d7(0x169)]-0x1];!_0x4a025e||_0x59d61e[_0x3f98d7(0x1e5)]>_0x4a025e[_0x3f98d7(0x168)]+0x1?_0x379a89[_0x3f98d7(0x1a8)]({..._0x59d61e}):_0x4a025e['end']=Math[_0x3f98d7(0x1eb)](_0x4a025e[_0x3f98d7(0x168)],_0x59d61e[_0x3f98d7(0x168)]);}return _0x379a89;}function D(_0xd55074,_0x394f20){const _0x3fa33c=_0x2f6c;return _0x394f20['count']<=0x0?_0xd55074:A(_0xd55074[_0x3fa33c(0x1bf)](_0x1678b5=>w(_0x1678b5,_0x394f20)?_0x394f20[_0x3fa33c(0x1df)]<=_0x1678b5[_0x3fa33c(0x1e5)]?{..._0x1678b5,'start':_0x1678b5[_0x3fa33c(0x1e5)]+_0x394f20[_0x3fa33c(0x179)],'end':_0x1678b5['end']+_0x394f20[_0x3fa33c(0x179)]}:_0x1678b5[_0x3fa33c(0x1e5)]<_0x394f20[_0x3fa33c(0x1df)]&&_0x394f20[_0x3fa33c(0x1df)]<=_0x1678b5[_0x3fa33c(0x168)]?{..._0x1678b5,'end':_0x1678b5[_0x3fa33c(0x168)]+_0x394f20[_0x3fa33c(0x179)]}:_0x1678b5:_0x1678b5));}function O(_0x5d5f91,_0x1be45c){const _0x55de3d=_0x2f6c;if(_0x1be45c[_0x55de3d(0x1e5)]>_0x1be45c[_0x55de3d(0x168)])return _0x5d5f91;let _0x23a907=_0x1be45c[_0x55de3d(0x168)]-_0x1be45c[_0x55de3d(0x1e5)]+0x1,_0x50a896=[];for(let _0x53f0ee of _0x5d5f91){if(!w(_0x53f0ee,_0x1be45c)){_0x50a896[_0x55de3d(0x1a8)](_0x53f0ee);continue;}if(_0x53f0ee[_0x55de3d(0x168)]<_0x1be45c['start']){_0x50a896[_0x55de3d(0x1a8)](_0x53f0ee);continue;}if(_0x53f0ee[_0x55de3d(0x1e5)]>_0x1be45c[_0x55de3d(0x168)]){_0x50a896[_0x55de3d(0x1a8)]({..._0x53f0ee,'start':_0x53f0ee[_0x55de3d(0x1e5)]-_0x23a907,'end':_0x53f0ee[_0x55de3d(0x168)]-_0x23a907});continue;}let _0x5ca11b=Math[_0x55de3d(0x1eb)](_0x53f0ee[_0x55de3d(0x1e5)],_0x1be45c[_0x55de3d(0x1e5)]),_0x43b81d=Math[_0x55de3d(0x164)](_0x53f0ee[_0x55de3d(0x168)],_0x1be45c[_0x55de3d(0x168)]),_0x5222bd=Math[_0x55de3d(0x1eb)](0x0,_0x43b81d-_0x5ca11b+0x1),_0x5be394=_0x53f0ee[_0x55de3d(0x168)]-_0x53f0ee['start']+0x1-_0x5222bd;if(_0x5be394<=0x0)continue;let _0x34e2eb=_0x53f0ee[_0x55de3d(0x1e5)]<_0x1be45c[_0x55de3d(0x1e5)]?_0x53f0ee[_0x55de3d(0x1e5)]:_0x1be45c['start'];_0x50a896[_0x55de3d(0x1a8)]({..._0x53f0ee,'start':_0x34e2eb,'end':_0x34e2eb+_0x5be394-0x1});}return A(_0x50a896);}function k(_0x24400c,_0x4fdbca){const _0x128abf=_0x2f6c;if(_0x4fdbca[_0x128abf(0x166)]>_0x4fdbca['sourceEnd'])return _0x24400c;let _0x152a58=[];for(let _0xbee1ef of _0x24400c){if(!w(_0xbee1ef,_0x4fdbca)){_0x152a58['push'](_0xbee1ef);continue;}let _0x297627=Ee(_0xbee1ef,_0x4fdbca);if(_0x297627[_0x128abf(0x1b4)]===_0x128abf(0x194))throw new S('move-splits-outline',_0x128abf(0x170)+_0xbee1ef['id'],_0xbee1ef['id']);_0x152a58[_0x128abf(0x1a8)](_0x297627[_0x128abf(0x1ca)]);}return A(_0x152a58);}function Ee(_0x386fc0,_0x207792){const _0x1d8c55=_0x2f6c;let _0x4fb72b=De(_0x207792[_0x1d8c55(0x166)],_0x207792['sourceEnd']+0x1,_0x207792['destinationIndex']),_0x55f3f9=[],_0x41e789={'start':_0x386fc0[_0x1d8c55(0x1e5)],'end':_0x386fc0[_0x1d8c55(0x168)]+0x1};for(let _0xe35b21 of _0x4fb72b){let _0x2db21c=Oe(_0x41e789,_0xe35b21[_0x1d8c55(0x1fa)]);_0x2db21c&&_0x55f3f9[_0x1d8c55(0x1a8)]({'start':_0x2db21c[_0x1d8c55(0x1e5)]+_0xe35b21[_0x1d8c55(0x16d)],'end':_0x2db21c['end']+_0xe35b21[_0x1d8c55(0x16d)]});}let _0x3bdf04=ke(_0x55f3f9);return _0x3bdf04['length']===0x1?{'type':'ok','outline':{..._0x386fc0,'start':_0x3bdf04[0x0][_0x1d8c55(0x1e5)],'end':_0x3bdf04[0x0][_0x1d8c55(0x168)]-0x1}}:{'type':_0x1d8c55(0x194),'outline':_0x386fc0,'ranges':_0x3bdf04};}function De(_0x15dd7c,_0x1aa59c,_0x367949){const _0x272b3f=_0x2f6c;let _0x402b9c=_0x1aa59c-_0x15dd7c;if(_0x402b9c<=0x0)throw Error(_0x272b3f(0x191));return _0x367949>=_0x15dd7c&&_0x367949<=_0x1aa59c?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x367949<_0x15dd7c?[{'range':{'start':0x0,'end':_0x367949},'offset':0x0},{'range':{'start':_0x367949,'end':_0x15dd7c},'offset':_0x402b9c},{'range':{'start':_0x15dd7c,'end':_0x1aa59c},'offset':_0x367949-_0x15dd7c},{'range':{'start':_0x1aa59c,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x15dd7c},'offset':0x0},{'range':{'start':_0x15dd7c,'end':_0x1aa59c},'offset':_0x367949-_0x1aa59c},{'range':{'start':_0x1aa59c,'end':_0x367949},'offset':-_0x402b9c},{'range':{'start':_0x367949,'end':C},'offset':0x0}];}function Oe(_0x382e42,_0x3d5e53){const _0x499373=_0x2f6c;let _0x19484e=Math[_0x499373(0x1eb)](_0x382e42[_0x499373(0x1e5)],_0x3d5e53['start']),_0x25b11c=Math['min'](_0x382e42[_0x499373(0x168)],_0x3d5e53[_0x499373(0x168)]);return _0x19484e>=_0x25b11c?null:{'start':_0x19484e,'end':_0x25b11c};}function ke(_0x3fb232){const _0x2ad3f6=_0x2f6c;if(_0x3fb232[_0x2ad3f6(0x169)]===0x0)return[];let _0x5a7c90=[..._0x3fb232][_0x2ad3f6(0x1d3)]((_0xd75579,_0x1d725f)=>_0xd75579[_0x2ad3f6(0x1e5)]-_0x1d725f['start']||_0xd75579[_0x2ad3f6(0x168)]-_0x1d725f[_0x2ad3f6(0x168)]),_0x4a4f52=[];for(let _0x3b992e of _0x5a7c90){let _0x38922a=_0x4a4f52[_0x4a4f52[_0x2ad3f6(0x169)]-0x1];!_0x38922a||_0x3b992e[_0x2ad3f6(0x1e5)]>_0x38922a[_0x2ad3f6(0x168)]?_0x4a4f52[_0x2ad3f6(0x1a8)]({..._0x3b992e}):_0x38922a['end']=Math[_0x2ad3f6(0x1eb)](_0x38922a[_0x2ad3f6(0x168)],_0x3b992e[_0x2ad3f6(0x168)]);}return _0x4a4f52;}function Ae(_0x51b3be,_0x1b1fd5,_0x2fa9d6,_0x313cd2){return _0x1b1fd5+0x1===_0x2fa9d6||_0x313cd2+0x1===_0x51b3be;}function A(_0x1759d3){let _0x2ab679=je(_0x1759d3);return T(_0x2ab679),_0x2ab679;}function je(_0xc6ae5f){const _0x2b6fc7=_0x2f6c;let _0x3db9f3=new Map();for(let _0x176307 of _0xc6ae5f){let _0x4c1aba=[_0x176307[_0x2b6fc7(0x1e1)],_0x176307['subUnitId'],_0x176307[_0x2b6fc7(0x162)],_0x176307['start'],_0x176307['end']][_0x2b6fc7(0x1a3)](':'),_0x2174e7=_0x3db9f3[_0x2b6fc7(0x1b2)](_0x4c1aba);if(!_0x2174e7){_0x3db9f3[_0x2b6fc7(0x161)](_0x4c1aba,_0x176307);continue;}_0x3db9f3[_0x2b6fc7(0x161)](_0x4c1aba,{..._0x2174e7,'collapsed':_0x2174e7[_0x2b6fc7(0x182)]||_0x176307[_0x2b6fc7(0x182)]});}return Array[_0x2b6fc7(0x155)](_0x3db9f3[_0x2b6fc7(0x1e2)]());}function j(_0xad6196,_0x57357d){const _0x94e7a4=_0x2f6c;return _0xad6196['unitId']===_0x57357d['unitId']?_0xad6196[_0x94e7a4(0x18f)]===_0x57357d[_0x94e7a4(0x18f)]?_0xad6196[_0x94e7a4(0x162)]===_0x57357d[_0x94e7a4(0x162)]?_0xad6196[_0x94e7a4(0x1e5)]===_0x57357d['start']?_0x57357d['end']-_0xad6196[_0x94e7a4(0x168)]:_0xad6196['start']-_0x57357d['start']:_0xad6196[_0x94e7a4(0x162)][_0x94e7a4(0x1a9)](_0x57357d[_0x94e7a4(0x162)]):_0xad6196[_0x94e7a4(0x18f)][_0x94e7a4(0x1a9)](_0x57357d[_0x94e7a4(0x18f)]):_0xad6196['unitId'][_0x94e7a4(0x1a9)](_0x57357d[_0x94e7a4(0x1e1)]);}function Me(_0x46793b){const _0x1a1294=_0x2f6c;if(_0x46793b['start']>_0x46793b[_0x1a1294(0x168)])throw new S('invalid-range',_0x1a1294(0x1e4),_0x46793b['id']);}function Ne(_0x4795f2,_0x3b3fe5){const _0x17e238=_0x2f6c;let _0x5d5ce7=_0x4795f2['start']<=_0x3b3fe5[_0x17e238(0x168)]&&_0x3b3fe5['start']<=_0x4795f2['end'],_0x2f38ba=_0x4795f2['start']<=_0x3b3fe5['start']&&_0x3b3fe5[_0x17e238(0x168)]<=_0x4795f2['end'],_0xe31a67=_0x3b3fe5[_0x17e238(0x1e5)]<=_0x4795f2[_0x17e238(0x1e5)]&&_0x4795f2[_0x17e238(0x168)]<=_0x3b3fe5[_0x17e238(0x168)];return _0x5d5ce7&&!_0x2f38ba&&!_0xe31a67;}function M(_0x5a697){'@babel/helpers - typeof';const _0x1f7a54=_0x2f6c;return M=typeof Symbol==_0x1f7a54(0x15b)&&typeof Symbol['iterator']==_0x1f7a54(0x1ea)?function(_0x5eb1cb){return typeof _0x5eb1cb;}:function(_0x4fcfec){const _0x4688a4=_0x1f7a54;return _0x4fcfec&&typeof Symbol=='function'&&_0x4fcfec[_0x4688a4(0x19d)]===Symbol&&_0x4fcfec!==Symbol[_0x4688a4(0x1c8)]?_0x4688a4(0x1ea):typeof _0x4fcfec;},M(_0x5a697);}function Pe(_0x362d27,_0x141263){const _0x858a84=_0x2f6c;if(M(_0x362d27)!='object'||!_0x362d27)return _0x362d27;var _0x301220=_0x362d27[Symbol[_0x858a84(0x188)]];if(_0x301220!==void 0x0){var _0x3c633d=_0x301220['call'](_0x362d27,_0x141263||_0x858a84(0x186));if(M(_0x3c633d)!='object')return _0x3c633d;throw TypeError(_0x858a84(0x14f));}return(_0x141263==='string'?String:Number)(_0x362d27);}function Fe(_0x4bc23c){const _0x585918=_0x2f6c;var _0x53d53d=Pe(_0x4bc23c,_0x585918(0x159));return M(_0x53d53d)==_0x585918(0x1ea)?_0x53d53d:_0x53d53d+'';}function N(_0x5166cc,_0x569aa8,_0xddc6c8){const _0x4a2a4b=_0x2f6c;return(_0x569aa8=Fe(_0x569aa8))in _0x5166cc?Object[_0x4a2a4b(0x1cf)](_0x5166cc,_0x569aa8,{'value':_0xddc6c8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5166cc[_0x569aa8]=_0xddc6c8,_0x5166cc;}var P=class extends _0x28774d{constructor(..._0x38c1ef){const _0x9b0d47=_0x2f6c;super(..._0x38c1ef),N(this,_0x9b0d47(0x152),new Map()),N(this,'_change$',new _0x53422c()),N(this,_0x9b0d47(0x1aa),this[_0x9b0d47(0x1f5)][_0x9b0d47(0x1f3)]());}[_0x1ce52f(0x1a4)](_0x30d2d6,_0x57d879){const _0x5210c3=_0x1ce52f;var _0x569a4a;return[...((_0x569a4a=this['_outlines'][_0x5210c3(0x1b2)](_0x30d2d6))==null?void 0x0:_0x569a4a['get'](_0x57d879))??[]];}[_0x1ce52f(0x198)](_0x595fee){const _0x556b43=_0x1ce52f;let _0x51dc14=this[_0x556b43(0x152)][_0x556b43(0x1b2)](_0x595fee),_0x541c81=new Map();return _0x51dc14==null||_0x51dc14[_0x556b43(0x1f0)]((_0x1189ff,_0x2feffb)=>{const _0x5e2784=_0x556b43;_0x541c81[_0x5e2784(0x161)](_0x2feffb,[..._0x1189ff]);}),_0x541c81;}[_0x1ce52f(0x1e7)](_0x419325,_0x3f1574,_0x5e8d3e){const _0x373b39=_0x1ce52f;this[_0x373b39(0x1b9)](_0x419325)['set'](_0x3f1574,[..._0x5e8d3e]),this[_0x373b39(0x1f5)][_0x373b39(0x175)]({'unitId':_0x419325,'subUnitId':_0x3f1574});}[_0x1ce52f(0x17b)](_0x4060b8){const _0x58c189=_0x1ce52f;this[_0x58c189(0x152)]['delete'](_0x4060b8),this[_0x58c189(0x1f5)][_0x58c189(0x175)]({'unitId':_0x4060b8});}[_0x1ce52f(0x19a)](_0x4788ef){const _0x42d475=_0x1ce52f;let _0x1bb691=this['_outlines'][_0x42d475(0x1b2)](_0x4788ef),_0x160159={};return _0x1bb691==null||_0x1bb691[_0x42d475(0x1f0)]((_0x26aca0,_0x58eacc)=>{_0x160159[_0x58eacc]={'outlineList':[..._0x26aca0]};}),_0x160159;}[_0x1ce52f(0x1d5)](_0x4c8d10,_0x43b2d){const _0x483b25=_0x1ce52f;let _0x527af6=new Map();Object[_0x483b25(0x18e)](_0x43b2d)[_0x483b25(0x1f0)](([_0x21efbc,_0xfe494a])=>{const _0x25c2b7=_0x483b25;_0x527af6[_0x25c2b7(0x161)](_0x21efbc,[..._0xfe494a['outlineList']??[]]);}),this['_outlines']['set'](_0x4c8d10,_0x527af6),this['_change$'][_0x483b25(0x175)]({'unitId':_0x4c8d10});}[_0x1ce52f(0x153)](){const _0x6dfc01=_0x1ce52f;super[_0x6dfc01(0x153)](),this[_0x6dfc01(0x152)]['clear'](),this['_change$']['complete']();}[_0x1ce52f(0x1b9)](_0x58196b){const _0xa30bf5=_0x1ce52f;let _0x5eeea6=this[_0xa30bf5(0x152)][_0xa30bf5(0x1b2)](_0x58196b);return _0x5eeea6||(_0x5eeea6=new Map(),this[_0xa30bf5(0x152)][_0xa30bf5(0x161)](_0x58196b,_0x5eeea6)),_0x5eeea6;}},F=class extends _0x28774d{constructor(..._0x191b90){const _0x23fb42=_0x1ce52f;super(..._0x191b90),N(this,_0x23fb42(0x1e6),new _0x53422c()),N(this,_0x23fb42(0x1d0),this[_0x23fb42(0x1e6)][_0x23fb42(0x1f3)]());}['emit'](_0x25f904){const _0x175ffc=_0x1ce52f;this[_0x175ffc(0x1e6)][_0x175ffc(0x175)](_0x25f904);}['dispose'](){const _0x3aeb97=_0x1ce52f;super['dispose'](),this[_0x3aeb97(0x1e6)][_0x3aeb97(0x15d)]();}};const I={'id':_0x1ce52f(0x17c),'type':_0x370b23['MUTATION'],'handler':(_0x3dc59e,_0x4b4ca8)=>{const _0x46f9c9=_0x1ce52f;let _0x468bf1=_0x3dc59e[_0x46f9c9(0x1b2)](P),_0x24bbf7=_0x468bf1[_0x46f9c9(0x1a4)](_0x4b4ca8[_0x46f9c9(0x1e1)],_0x4b4ca8[_0x46f9c9(0x18f)]);return _0x468bf1[_0x46f9c9(0x1e7)](_0x4b4ca8['unitId'],_0x4b4ca8[_0x46f9c9(0x18f)],xe(_0x24bbf7,_0x4b4ca8['outline'])),!0x0;}},L={'id':_0x1ce52f(0x17f),'type':_0x370b23[_0x1ce52f(0x1ce)],'handler':(_0x51d7af,_0x5b5bd4)=>{const _0x3754ed=_0x1ce52f;let _0x22daa9=_0x51d7af[_0x3754ed(0x1b2)](P),_0xb54efc=_0x22daa9[_0x3754ed(0x1a4)](_0x5b5bd4['unitId'],_0x5b5bd4[_0x3754ed(0x18f)]);return _0x22daa9['setOutlines'](_0x5b5bd4[_0x3754ed(0x1e1)],_0x5b5bd4[_0x3754ed(0x18f)],_0xb54efc[_0x3754ed(0x1f2)](_0x2cb327=>_0x2cb327['id']!==_0x5b5bd4[_0x3754ed(0x1a5)])),!0x0;}};function R(_0x549ccd,_0x1c98d6,_0x45c067){let _0x2aaf82=Le(_0x549ccd);return!_0x2aaf82||_0x2aaf82['permissionCheckWithoutRange']({'workbookTypes':[_0x1753bb],'worksheetTypes':[_0x86b3d9]},_0x1c98d6,_0x45c067);}function Ie(_0x2de631,_0x12825b,_0x4b0a10){const _0x72bc7b=_0x1ce52f;let _0x582eef=Re(_0x2de631);return((_0x582eef==null?void 0x0:_0x582eef[_0x72bc7b(0x18a)])??_0x51ab36(null))[_0x72bc7b(0x160)](_0x194e36(0x64),_0x23085b(null),_0x12a638(()=>R(_0x2de631,_0x12825b,_0x4b0a10)));}function Le(_0x1e9706){const _0x3fdb96=_0x1ce52f;if(typeof _0x1e9706['has']==_0x3fdb96(0x15b)&&!_0x1e9706['has'](_0x345ac3))return null;try{return _0x1e9706['get'](_0x345ac3);}catch{return null;}}function Re(_0x464f49){const _0x5cb6aa=_0x1ce52f;if(typeof _0x464f49[_0x5cb6aa(0x1c7)]=='function'&&!_0x464f49[_0x5cb6aa(0x1c7)](_0x4da996))return null;try{return _0x464f49['get'](_0x4da996);}catch{return null;}}const z={'id':_0x1ce52f(0x165),'type':_0x370b23[_0x1ce52f(0x1dd)],'handler':(_0x358bc2,_0x5844c0)=>{const _0xc58c77=_0x1ce52f;if(!_0x5844c0)return!0x1;let _0x544bc0=_0x3c973f(_0x358bc2[_0xc58c77(0x1b2)](_0x501b88),_0x5844c0);if(!_0x544bc0)return!0x1;let {unitId:_0x3e7b7e,subUnitId:_0x4b0a38,worksheet:_0x2917f4}=_0x544bc0;if(!R(_0x358bc2,_0x3e7b7e,_0x4b0a38))return!0x1;let _0x4e217e=_0x358bc2[_0xc58c77(0x1b2)](P),_0xf0eff7={'id':_0xc58c77(0x1a6)+_0x358551(0x6),'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'axis':_0x5844c0['axis'],'start':_0x5844c0[_0xc58c77(0x1e5)],'end':_0x5844c0['end'],'collapsed':!0x1},_0x29040d=_0x5844c0[_0xc58c77(0x162)]===_0xc58c77(0x1dc)?_0x2917f4[_0xc58c77(0x1e9)]():_0x2917f4[_0xc58c77(0x1ab)](),_0x2887ac=_0x4e217e[_0xc58c77(0x1a4)](_0x3e7b7e,_0x4b0a38),_0x3d3646=Se(_0x2887ac,_0xf0eff7),_0x382afa=(_0x3d3646==null?void 0x0:_0x3d3646[_0xc58c77(0x187)])??[],_0x5d0a4c=(_0x3d3646==null?void 0x0:_0x3d3646[_0xc58c77(0x1ba)])??_0xf0eff7,_0x15497f=E(_0x3d3646?_0x2887ac[_0xc58c77(0x1f2)](_0x415209=>!_0x382afa[_0xc58c77(0x1a2)](_0x4141b8=>_0x4141b8['id']===_0x415209['id'])):_0x2887ac,_0x5d0a4c,{'maxIndex':_0x29040d});if(!_0x15497f['valid'])return _0x358bc2[_0xc58c77(0x1b2)](F)[_0xc58c77(0x19c)]({'reason':_0x15497f['reason']??'unknown','commandId':z['id'],'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'axis':_0x5844c0[_0xc58c77(0x162)],'outlineId':_0x5d0a4c['id']}),!0x1;let _0x4c0cb6=[..._0x382afa[_0xc58c77(0x1bf)](_0x16b82a=>({'id':L['id'],'params':{'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'outlineId':_0x16b82a['id']}})),{'id':I['id'],'params':{'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'outline':_0x5d0a4c}}],_0x2387e5=[{'id':L['id'],'params':{'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'outlineId':_0x5d0a4c['id']}},..._0x382afa[_0xc58c77(0x1bf)](_0x3d91ac=>({'id':I['id'],'params':{'unitId':_0x3e7b7e,'subUnitId':_0x4b0a38,'outline':_0x3d91ac}}))];return _0x57ab44(_0x4c0cb6,_0x358bc2[_0xc58c77(0x1b2)](_0x5b34db))['result']?(_0x358bc2[_0xc58c77(0x1b2)](_0x236935)[_0xc58c77(0x1ad)]({'unitID':_0x3e7b7e,'undoMutations':_0x2387e5,'redoMutations':_0x4c0cb6}),!0x0):!0x1;}},B={'id':_0x1ce52f(0x151),'type':_0x370b23[_0x1ce52f(0x1ce)],'handler':(_0x2d80d9,_0x184fb8)=>{const _0x1b3e6d=_0x1ce52f;let _0x44cece=_0x2d80d9[_0x1b3e6d(0x1b2)](P),_0x5b7ee0=_0x44cece[_0x1b3e6d(0x1a4)](_0x184fb8['unitId'],_0x184fb8[_0x1b3e6d(0x18f)]);return _0x44cece[_0x1b3e6d(0x1e7)](_0x184fb8['unitId'],_0x184fb8[_0x1b3e6d(0x18f)],Ce(_0x5b7ee0,_0x184fb8)),!0x0;}},V={'id':_0x1ce52f(0x167),'type':_0x370b23[_0x1ce52f(0x1dd)],'handler':(_0x4321ae,_0x12d71e)=>{const _0x88d6cb=_0x1ce52f;if(!_0x12d71e)return!0x1;let _0x3fb726=_0x3c973f(_0x4321ae[_0x88d6cb(0x1b2)](_0x501b88),_0x12d71e);if(!_0x3fb726)return!0x1;let {unitId:_0xc9f397,subUnitId:_0x4b1a1e}=_0x3fb726;if(!R(_0x4321ae,_0xc9f397,_0x4b1a1e))return!0x1;let _0x1c1b65={'unitId':_0xc9f397,'subUnitId':_0x4b1a1e,'axis':_0x12d71e['axis'],'start':_0x12d71e['start'],'end':_0x12d71e['end']},_0x3ce980=_0x4321ae[_0x88d6cb(0x1b2)](P)[_0x88d6cb(0x1a4)](_0xc9f397,_0x4b1a1e)['filter'](_0x2c26e9=>w(_0x2c26e9,_0x1c1b65)&&_0x2c26e9[_0x88d6cb(0x1e5)]>=_0x12d71e[_0x88d6cb(0x1e5)]&&_0x2c26e9[_0x88d6cb(0x168)]<=_0x12d71e[_0x88d6cb(0x168)]);if(_0x3ce980[_0x88d6cb(0x169)]===0x0)return _0x4321ae[_0x88d6cb(0x1b2)](F)[_0x88d6cb(0x19c)]({'reason':'clear-range-not-contain-outline','commandId':V['id'],'unitId':_0xc9f397,'subUnitId':_0x4b1a1e,'axis':_0x12d71e[_0x88d6cb(0x162)]}),!0x1;let _0x4722c3=[{'id':B['id'],'params':{..._0x1c1b65,'removedOutlineIds':_0x3ce980[_0x88d6cb(0x1bf)](_0x53ed93=>_0x53ed93['id'])}}],_0x283907=_0x3ce980[_0x88d6cb(0x1bf)](_0x2ce41b=>({'id':I['id'],'params':{'unitId':_0xc9f397,'subUnitId':_0x4b1a1e,'outline':_0x2ce41b}}));return _0x57ab44(_0x4722c3,_0x4321ae[_0x88d6cb(0x1b2)](_0x5b34db))['result']?(_0x4321ae[_0x88d6cb(0x1b2)](_0x236935)['pushUndoRedo']({'unitID':_0xc9f397,'undoMutations':_0x283907,'redoMutations':_0x4722c3}),!0x0):!0x1;}},ze={'id':_0x1ce52f(0x1f6),'type':_0x370b23['COMMAND'],'handler':(_0x9ad437,_0x5a7ac4)=>{const _0x2793c7=_0x1ce52f;if(!_0x5a7ac4)return!0x1;let _0x236b37=_0x3c973f(_0x9ad437['get'](_0x501b88),_0x5a7ac4);if(!_0x236b37)return!0x1;let {unitId:_0x514f9d,subUnitId:_0x4f8fa2}=_0x236b37;if(!R(_0x9ad437,_0x514f9d,_0x4f8fa2))return!0x1;let _0x2abfc4=_0x9ad437[_0x2793c7(0x1b2)](P)[_0x2793c7(0x1a4)](_0x514f9d,_0x4f8fa2)['find'](_0x2fe7bb=>_0x2fe7bb['id']===_0x5a7ac4[_0x2793c7(0x1a5)]);if(!_0x2abfc4)return!0x1;let _0x529129=[{'id':L['id'],'params':{'unitId':_0x514f9d,'subUnitId':_0x4f8fa2,'outlineId':_0x2abfc4['id'],'outline':_0x2abfc4}}],_0x43ebb4=[{'id':I['id'],'params':{'unitId':_0x514f9d,'subUnitId':_0x4f8fa2,'outline':_0x2abfc4}}];return _0x57ab44(_0x529129,_0x9ad437[_0x2793c7(0x1b2)](_0x5b34db))[_0x2793c7(0x1be)]?(_0x9ad437['get'](_0x236935)[_0x2793c7(0x1ad)]({'unitID':_0x514f9d,'undoMutations':_0x43ebb4,'redoMutations':_0x529129}),!0x0):!0x1;}},H={'id':_0x1ce52f(0x1fd),'type':_0x370b23['MUTATION'],'handler':(_0x322dd2,_0x20b5df)=>{const _0x1259f5=_0x1ce52f;let _0x5d66a2=_0x322dd2[_0x1259f5(0x1b2)](P),_0x13dfb4=_0x5d66a2[_0x1259f5(0x1a4)](_0x20b5df['unitId'],_0x20b5df['subUnitId']),_0x56fcf3=_0x13dfb4[_0x1259f5(0x1f8)](_0x30adcc=>_0x30adcc['id']===_0x20b5df['outlineId']);return _0x56fcf3&&_0x5d66a2['setOutlines'](_0x20b5df[_0x1259f5(0x1e1)],_0x20b5df[_0x1259f5(0x18f)],_0x13dfb4[_0x1259f5(0x1bf)](_0x5bcab8=>_0x5bcab8['unitId']!==_0x56fcf3[_0x1259f5(0x1e1)]||_0x5bcab8[_0x1259f5(0x18f)]!==_0x56fcf3[_0x1259f5(0x18f)]||_0x5bcab8[_0x1259f5(0x162)]!==_0x56fcf3[_0x1259f5(0x162)]||_0x5bcab8[_0x1259f5(0x1e5)]!==_0x56fcf3['start']||_0x5bcab8[_0x1259f5(0x168)]!==_0x56fcf3[_0x1259f5(0x168)]?_0x5bcab8:{..._0x5bcab8,'collapsed':_0x20b5df['collapsed']})),!0x0;}};function Be(_0x3b1b4c,_0x5aac71,_0x4efa24,_0x182956){const _0xcf5d6a=_0x1ce52f;return _0x3b1b4c===_0xcf5d6a(0x1dc)?{'startRow':_0x5aac71,'endRow':_0x4efa24,'startColumn':0x0,'endColumn':_0x182956[_0xcf5d6a(0x1f4)]()-0x1}:{'startRow':0x0,'endRow':_0x182956['getRowCount']()-0x1,'startColumn':_0x5aac71,'endColumn':_0x4efa24};}function Ve(_0x1b7834){const _0x1cd015=_0x1ce52f;return _0x1b7834===_0x1cd015(0x1dc)?_0x4a1f85['id']:_0x401771['id'];}function He(_0x1d14ed){const _0x65a336=_0x1ce52f;return _0x1d14ed===_0x65a336(0x1dc)?_0x31f5ab['id']:_0x316671['id'];}function Ue(_0x188ad0,_0x125f44,_0x4ef352,_0x22a4bb){const _0xbf3b6e=_0x1ce52f;let _0x5f4a54=_0x125f44?[Be(_0x188ad0[_0xbf3b6e(0x162)],_0x188ad0[_0xbf3b6e(0x1e5)],_0x188ad0[_0xbf3b6e(0x168)],_0x4ef352)]:We(_0x188ad0,_0x22a4bb,_0x4ef352),_0x2e8668=_0x125f44?Ve(_0x188ad0['axis']):He(_0x188ad0['axis']);return[{'id':H['id'],'params':{'unitId':_0x188ad0[_0xbf3b6e(0x1e1)],'subUnitId':_0x188ad0[_0xbf3b6e(0x18f)],'outlineId':_0x188ad0['id'],'outline':_0x188ad0,'collapsed':_0x125f44}},..._0x5f4a54[_0xbf3b6e(0x1bf)](_0x483a3b=>({'id':_0x2e8668,'params':{'unitId':_0x188ad0[_0xbf3b6e(0x1e1)],'subUnitId':_0x188ad0[_0xbf3b6e(0x18f)],'ranges':[_0x483a3b],'dimensionOutlineId':_0x188ad0['id']}}))];}function We(_0x2829d8,_0x4d1b58,_0x4f1142){const _0x5b3a29=_0x1ce52f;let _0x31c53c=we(_0x4d1b58[_0x5b3a29(0x1bf)](_0x3374ae=>Ge(_0x3374ae,_0x2829d8)?{..._0x3374ae,'collapsed':!0x1}:_0x3374ae),_0x2829d8[_0x5b3a29(0x1e1)],_0x2829d8[_0x5b3a29(0x18f)],_0x2829d8[_0x5b3a29(0x162)]);return Ke({'start':_0x2829d8['start'],'end':_0x2829d8['end']},_0x31c53c)['map'](_0x2fb790=>Be(_0x2829d8[_0x5b3a29(0x162)],_0x2fb790[_0x5b3a29(0x1e5)],_0x2fb790[_0x5b3a29(0x168)],_0x4f1142));}function Ge(_0x379a74,_0x313122){const _0xc5661b=_0x1ce52f;return _0x379a74[_0xc5661b(0x1e1)]===_0x313122[_0xc5661b(0x1e1)]&&_0x379a74[_0xc5661b(0x18f)]===_0x313122[_0xc5661b(0x18f)]&&_0x379a74[_0xc5661b(0x162)]===_0x313122[_0xc5661b(0x162)]&&_0x379a74[_0xc5661b(0x1e5)]===_0x313122[_0xc5661b(0x1e5)]&&_0x379a74[_0xc5661b(0x168)]===_0x313122[_0xc5661b(0x168)];}function Ke(_0x32df55,_0x2ed38f){const _0x3c6f10=_0x1ce52f;let _0x20acc5=_0x32df55[_0x3c6f10(0x1e5)],_0x47a04a=[];for(let _0x6a59c of _0x2ed38f)if(!(_0x6a59c[_0x3c6f10(0x168)]<_0x20acc5||_0x6a59c[_0x3c6f10(0x1e5)]>_0x32df55[_0x3c6f10(0x168)])&&(_0x6a59c[_0x3c6f10(0x1e5)]>_0x20acc5&&_0x47a04a[_0x3c6f10(0x1a8)]({'start':_0x20acc5,'end':Math[_0x3c6f10(0x164)](_0x6a59c[_0x3c6f10(0x1e5)]-0x1,_0x32df55['end'])}),_0x20acc5=Math['max'](_0x20acc5,_0x6a59c[_0x3c6f10(0x168)]+0x1),_0x20acc5>_0x32df55['end']))break;return _0x20acc5<=_0x32df55[_0x3c6f10(0x168)]&&_0x47a04a[_0x3c6f10(0x1a8)]({'start':_0x20acc5,'end':_0x32df55[_0x3c6f10(0x168)]}),_0x47a04a;}const qe={'id':_0x1ce52f(0x189),'type':_0x370b23[_0x1ce52f(0x1dd)],'handler':(_0x260e79,_0x304bc5)=>{const _0x5d34b3=_0x1ce52f;if(!_0x304bc5)return!0x1;let _0x5577a9=_0x3c973f(_0x260e79[_0x5d34b3(0x1b2)](_0x501b88),_0x304bc5);if(!_0x5577a9)return!0x1;let {unitId:_0x259fac,subUnitId:_0xa5d14a,worksheet:_0x4b5732}=_0x5577a9;if(!R(_0x260e79,_0x259fac,_0xa5d14a))return!0x1;let _0x3718e5=_0x260e79['get'](P)[_0x5d34b3(0x1a4)](_0x259fac,_0xa5d14a),_0x55c6e2=_0x3718e5['find'](_0x971d79=>_0x971d79['id']===_0x304bc5['outlineId']);if(!_0x55c6e2||_0x55c6e2[_0x5d34b3(0x182)]===_0x304bc5[_0x5d34b3(0x182)])return!0x1;let _0x199756=Ue(_0x55c6e2,_0x304bc5[_0x5d34b3(0x182)],_0x4b5732,_0x3718e5),_0x30e412=Ue(_0x55c6e2,!_0x304bc5['collapsed'],_0x4b5732,_0x3718e5);return _0x57ab44(_0x199756,_0x260e79[_0x5d34b3(0x1b2)](_0x5b34db))['result']?(_0x260e79[_0x5d34b3(0x1b2)](_0x236935)['pushUndoRedo']({'unitID':_0x259fac,'undoMutations':_0x30e412,'redoMutations':_0x199756}),!0x0):!0x1;}},U={'id':_0x1ce52f(0x1cb),'type':_0x370b23[_0x1ce52f(0x1ce)],'handler':(_0x27137e,_0x3e7d7b)=>{const _0x511d6f=_0x1ce52f;let _0x14aa00=_0x27137e['get'](P),_0x5f5c3f=Je(_0x14aa00[_0x511d6f(0x1a4)](_0x3e7d7b['unitId'],_0x3e7d7b[_0x511d6f(0x18f)]),_0x3e7d7b);return _0x14aa00['setOutlines'](_0x3e7d7b[_0x511d6f(0x1e1)],_0x3e7d7b[_0x511d6f(0x18f)],_0x5f5c3f),!0x0;}};function Je(_0x23f8a4,_0x15b136){const _0x1c2a1d=_0x1ce52f;switch(_0x15b136[_0x1c2a1d(0x1b4)]){case _0x1c2a1d(0x17d):return _0x15b136[_0x1c2a1d(0x16e)]?Ye(_0x23f8a4,_0x15b136):D(_0x23f8a4,_0x15b136);case'delete':return O(_0x23f8a4,_0x15b136);case'move':return k(_0x23f8a4,_0x15b136);}}function Ye(_0x52aacf,_0x5bc981){const _0x905399=_0x1ce52f;return[..._0x52aacf[_0x905399(0x1f2)](_0x5b12b6=>_0x5b12b6[_0x905399(0x1e1)]!==_0x5bc981[_0x905399(0x1e1)]||_0x5b12b6[_0x905399(0x18f)]!==_0x5bc981[_0x905399(0x18f)]||_0x5b12b6['axis']!==_0x5bc981[_0x905399(0x162)]),..._0x5bc981[_0x905399(0x16e)]];}const W=_0x1ce52f(0x1c1);function _0x2f6c(_0x1318c1,_0x77451d){_0x1318c1=_0x1318c1-0x14f;const _0x1852e5=_0x1852();let _0x2f6c96=_0x1852e5[_0x1318c1];return _0x2f6c96;}var Xe=_0x1ce52f(0x1de),Ze='1.0.0';const Qe={};function G(_0x74f689,_0x98d68b){return function(_0x56bc6c,_0x24623f){_0x98d68b(_0x56bc6c,_0x24623f,_0x74f689);};}function K(_0x71ada7,_0x386ae2,_0x10dfdf,_0x32c672){const _0x30f961=_0x1ce52f;var _0x380172=arguments[_0x30f961(0x169)],_0x25cbf6=_0x380172<0x3?_0x386ae2:_0x32c672===null?_0x32c672=Object['getOwnPropertyDescriptor'](_0x386ae2,_0x10dfdf):_0x32c672,_0x316312;if(typeof Reflect==_0x30f961(0x1db)&&typeof Reflect[_0x30f961(0x1a0)]==_0x30f961(0x15b))_0x25cbf6=Reflect[_0x30f961(0x1a0)](_0x71ada7,_0x386ae2,_0x10dfdf,_0x32c672);else{for(var _0x48ab62=_0x71ada7[_0x30f961(0x169)]-0x1;_0x48ab62>=0x0;_0x48ab62--)(_0x316312=_0x71ada7[_0x48ab62])&&(_0x25cbf6=(_0x380172<0x3?_0x316312(_0x25cbf6):_0x380172>0x3?_0x316312(_0x386ae2,_0x10dfdf,_0x25cbf6):_0x316312(_0x386ae2,_0x10dfdf))||_0x25cbf6);}return _0x380172>0x3&&_0x25cbf6&&Object['defineProperty'](_0x386ae2,_0x10dfdf,_0x25cbf6),_0x25cbf6;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x28774d{constructor(_0x452215,_0x4b2ac1,_0x1d69e8,_0x13fb66){const _0x3b0574=_0x1ce52f;super(),this[_0x3b0574(0x154)]=_0x452215,this[_0x3b0574(0x172)]=_0x4b2ac1,this['_sheetsOutlineModel']=_0x1d69e8,this[_0x3b0574(0x184)]=_0x13fb66,this[_0x3b0574(0x158)]();}[_0x1ce52f(0x158)](){const _0x3613d4=_0x1ce52f;this[_0x3613d4(0x1c3)](this['_sheetInterceptorService'][_0x3613d4(0x1e3)]({'getMutations':_0x5b2df1=>$e(_0x5b2df1,(_0x50e015,_0x205feb)=>this[_0x3613d4(0x1c0)]['getOutlines'](_0x50e015,_0x205feb),this[_0x3613d4(0x1ee)](_0x5b2df1[_0x3613d4(0x18c)]),_0x466ea4=>this[_0x3613d4(0x184)][_0x3613d4(0x19c)](_0x466ea4))}));}[_0x1ce52f(0x1ee)](_0x5b18cc){const _0x2a48c4=_0x1ce52f;let _0x1ada04=_0x5b18cc,_0x20b731=_0x1ada04!=null&&_0x1ada04['unitId']?this[_0x2a48c4(0x154)][_0x2a48c4(0x1d7)](_0x1ada04[_0x2a48c4(0x1e1)],_0x1395c1[_0x2a48c4(0x18b)]):this[_0x2a48c4(0x154)][_0x2a48c4(0x1d8)](_0x1395c1[_0x2a48c4(0x18b)]);if(!_0x20b731)return;let _0x43070a=_0x1ada04!=null&&_0x1ada04['subUnitId']?_0x20b731[_0x2a48c4(0x199)](_0x1ada04[_0x2a48c4(0x18f)]):_0x20b731[_0x2a48c4(0x193)]();if(_0x43070a)return{'unitId':_0x20b731[_0x2a48c4(0x1b8)](),'subUnitId':_0x43070a[_0x2a48c4(0x1e8)]()};}};J=K([G(0x0,_0x501b88),G(0x1,_0xbe0a21(_0xb4bd43)),G(0x2,_0xbe0a21(P)),G(0x3,_0xbe0a21(F))],J);function $e(_0x522e9d,_0x4884c7,_0x304b09,_0x5ebc92){const _0x4078b2=_0x1ce52f;let _0x4e6f0d=tt(_0x522e9d,_0x304b09);if(!_0x4e6f0d)return Z();let _0x189822=_0x4884c7(_0x4e6f0d[_0x4078b2(0x1e1)],_0x4e6f0d[_0x4078b2(0x18f)]);if(!_0x189822[_0x4078b2(0x1a2)](_0x410dc9=>_0x410dc9[_0x4078b2(0x162)]===_0x4e6f0d[_0x4078b2(0x162)]))return Z();et(_0x189822,_0x4e6f0d,_0x522e9d['id'],_0x5ebc92);let _0x5e74b0=it(_0x4e6f0d,_0x189822);return{'redos':[{'id':U['id'],'params':_0x4e6f0d}],'undos':[{'id':U['id'],'params':_0x5e74b0}],'preRedos':[],'preUndos':[]};}function et(_0x163fcc,_0x58741d,_0x15beb5,_0x4033ed){const _0x91d3b9=_0x1ce52f;try{switch(_0x58741d[_0x91d3b9(0x1b4)]){case _0x91d3b9(0x17d):D(_0x163fcc,_0x58741d);break;case _0x91d3b9(0x1d6):O(_0x163fcc,_0x58741d);break;case _0x91d3b9(0x1fe):k(_0x163fcc,_0x58741d);}}catch(_0x4479ba){throw _0x4033ed==null||_0x4033ed({'reason':ye(_0x4479ba),'commandId':_0x15beb5,'unitId':_0x58741d['unitId'],'subUnitId':_0x58741d[_0x91d3b9(0x18f)],'axis':_0x58741d[_0x91d3b9(0x162)],'outlineId':be(_0x4479ba)}),new _0x342912(_0x4479ba instanceof Error?_0x4479ba['message']:_0x91d3b9(0x1ec));}}function tt(_0xf11c8,_0x4b200c){const _0x28486e=_0x1ce52f;switch(_0xf11c8['id']){case _0x3f6c82['id']:return Y(_0xf11c8['params'],_0x28486e(0x1dc),_0x4b200c);case _0x3ee2a4['id']:return Y(_0xf11c8[_0x28486e(0x18c)],'column',_0x4b200c);case _0x4c3e8d['id']:return nt(_0xf11c8['params'],_0x28486e(0x1dc),_0x4b200c);case _0x4afcff['id']:return nt(_0xf11c8[_0x28486e(0x18c)],'column',_0x4b200c);case _0x50a7df['id']:return rt(_0xf11c8['params'],_0x28486e(0x1dc),_0x4b200c);case _0x18c95c['id']:return rt(_0xf11c8[_0x28486e(0x18c)],_0x28486e(0x1c9),_0x4b200c);default:return null;}}function Y(_0x39dc2d,_0x36bcea,_0x414a79){const _0x368499=_0x1ce52f;let _0x2c2ca3=X(_0x39dc2d,_0x414a79);if(!(_0x39dc2d!=null&&_0x39dc2d['range'])||!_0x2c2ca3)return null;let _0x11f901=_0x36bcea==='row'?_0x39dc2d['range'][_0x368499(0x185)]:_0x39dc2d[_0x368499(0x1fa)]['startColumn'],_0x1a6869=_0x36bcea===_0x368499(0x1dc)?_0x39dc2d[_0x368499(0x1fa)][_0x368499(0x1cc)]:_0x39dc2d[_0x368499(0x1fa)][_0x368499(0x1cd)];return{..._0x2c2ca3,'axis':_0x36bcea,'type':_0x368499(0x17d),'index':_0x11f901,'count':_0x1a6869-_0x11f901+0x1};}function _0x1852(){const _0xdb13ba=['getCurrentUnitOfType','_injector','name','object','row','COMMAND','@univerjs-pro/sheets-outline','index','includes','unitId','values','interceptCommand','Invalid\x20outline\x20range','start','_error$','setOutlines','getSheetId','getRowCount','symbol','max','Invalid\x20dimension\x20outline\x20mutation','COLUMN','_getCommandScope','registerPluginResource','forEach','INVALID_RANGE','filter','asObservable','getMaxColumns','_change$','sheet.command.remove-dimension-outline','move-splits-outline','find','toRange','range','max-depth','MAX_DEPTH','sheet.mutation.set-dimension-outline-collapsed','move','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pop','sheet.mutation.clear-dimension-outlines','_outlines','dispose','_univerInstanceService','from','373258ZluVXs','registerCommand','_initCommandInterceptor','string','add','function','redos','complete','_config','onStarting','pipe','set','axis','39cmnfFr','min','sheet.command.add-dimension-outline','sourceStart','sheet.command.clear-dimension-outlines','end','length','fromRange','_resourceManagerService','7616550OeXELK','offset','restoreOutlines','_initRegisterCommand','Move\x20would\x20split\x20dimension\x20outline:\x20','crossing','_sheetInterceptorService','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','destinationIndex','next','361256AxRtIU','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','_initResource','count','DimensionOutlineError','removeUnit','sheet.mutation.add-dimension-outline','insert','136216TQracp','sheet.mutation.remove-dimension-outline','_commandService','_configService','collapsed','2045480nJTLhK','_sheetsOutlineErrorService','startRow','default','mergedOutlines','toPrimitive','sheet.command.set-dimension-outline-collapsed','permissionPointUpdate$','UNIVER_SHEET','params','packageName','entries','subUnitId','maxIndex','Invalid\x20dimension\x20outline\x20move\x20source\x20range','unknown','getActiveSheet','split','preUndos','OUT_OF_BOUNDS','ROW','getUnitOutlines','getSheetBySheetId','serialize','version','emit','constructor','7yAfwqf','MOVE_SPLITS_OUTLINE','decorate','325341oPoSSz','some','join','getOutlines','outlineId','dimension-outline-','startColumn','push','localeCompare','change$','getColumnCount','message','pushUndoRedo','34238149YMEjiO','UNKNOWN','sourceEnd','12YUdUzW','get','pluginName','type','maxDepth','Crossing','reason','getUnitId','_ensureUnitOutlines','mergedOutline','undos','depth','valid','result','map','_sheetsOutlineModel','SHEET_OUTLINE_PLUGIN','8ispKDf','disposeWithMe','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','out-of-bounds','clear-range-not-contain-outline','has','prototype','column','outline','sheet.mutation.transform-dimension-outlines','endRow','endColumn','MUTATION','defineProperty','error$','invalid-range','stringify','sort','120tziZAl','deserialize','delete','getUnit'];_0x1852=function(){return _0xdb13ba;};return _0x1852();}function nt(_0x236e81,_0x53d7b0,_0x4dbe16){const _0x3332c1=_0x1ce52f;let _0x48ff75=X(_0x236e81,_0x4dbe16);if(!(_0x236e81!=null&&_0x236e81[_0x3332c1(0x1fa)])||!_0x48ff75)return null;let _0x3db01c=_0x53d7b0===_0x3332c1(0x1dc)?_0x236e81['range'][_0x3332c1(0x185)]:_0x236e81[_0x3332c1(0x1fa)][_0x3332c1(0x1a7)],_0x44bef7=_0x53d7b0==='row'?_0x236e81[_0x3332c1(0x1fa)][_0x3332c1(0x1cc)]:_0x236e81[_0x3332c1(0x1fa)]['endColumn'];return{..._0x48ff75,'axis':_0x53d7b0,'type':_0x3332c1(0x1d6),'start':_0x3db01c,'end':_0x44bef7};}function rt(_0x11adcf,_0x2a0727,_0x1b0cd6){const _0x5d88da=_0x1ce52f;let _0x39eb4d=X(_0x11adcf,_0x1b0cd6);if(!(_0x11adcf!=null&&_0x11adcf[_0x5d88da(0x16a)])||!_0x11adcf[_0x5d88da(0x1f9)]||!_0x39eb4d)return null;let _0x5b1ccb=_0x2a0727===_0x5d88da(0x1dc)?_0x11adcf[_0x5d88da(0x16a)]['startRow']:_0x11adcf['fromRange']['startColumn'],_0x39be7a=_0x2a0727===_0x5d88da(0x1dc)?_0x11adcf[_0x5d88da(0x16a)]['endRow']:_0x11adcf[_0x5d88da(0x16a)][_0x5d88da(0x1cd)],_0x3fddde=_0x2a0727===_0x5d88da(0x1dc)?_0x11adcf[_0x5d88da(0x1f9)][_0x5d88da(0x185)]:_0x11adcf[_0x5d88da(0x1f9)][_0x5d88da(0x1a7)];return{..._0x39eb4d,'axis':_0x2a0727,'type':_0x5d88da(0x1fe),'sourceStart':_0x5b1ccb,'sourceEnd':_0x39be7a,'destinationIndex':_0x3fddde};}function it(_0x2efe25,_0x26923f){const _0x1eee4b=_0x1ce52f;switch(_0x2efe25[_0x1eee4b(0x1b4)]){case _0x1eee4b(0x17d):return{'unitId':_0x2efe25['unitId'],'subUnitId':_0x2efe25[_0x1eee4b(0x18f)],'axis':_0x2efe25[_0x1eee4b(0x162)],'type':_0x1eee4b(0x1d6),'start':_0x2efe25[_0x1eee4b(0x1df)],'end':_0x2efe25['index']+_0x2efe25[_0x1eee4b(0x179)]-0x1};case _0x1eee4b(0x1d6):return{'unitId':_0x2efe25['unitId'],'subUnitId':_0x2efe25[_0x1eee4b(0x18f)],'axis':_0x2efe25[_0x1eee4b(0x162)],'type':_0x1eee4b(0x17d),'index':_0x2efe25['start'],'count':_0x2efe25[_0x1eee4b(0x168)]-_0x2efe25['start']+0x1,'restoreOutlines':_0x26923f['filter'](_0x2fbcbc=>_0x2fbcbc[_0x1eee4b(0x1e1)]===_0x2efe25[_0x1eee4b(0x1e1)]&&_0x2fbcbc[_0x1eee4b(0x18f)]===_0x2efe25[_0x1eee4b(0x18f)]&&_0x2fbcbc[_0x1eee4b(0x162)]===_0x2efe25[_0x1eee4b(0x162)])};case'move':return at(_0x2efe25);}}function at(_0xaa0aca){const _0x219b9e=_0x1ce52f;let _0x35330a=_0xaa0aca[_0x219b9e(0x1b0)]-_0xaa0aca[_0x219b9e(0x166)]+0x1;return _0xaa0aca[_0x219b9e(0x174)]>=_0xaa0aca[_0x219b9e(0x166)]&&_0xaa0aca['destinationIndex']<=_0xaa0aca['sourceEnd']+0x1?{..._0xaa0aca}:_0xaa0aca[_0x219b9e(0x174)]>_0xaa0aca[_0x219b9e(0x1b0)]+0x1?{..._0xaa0aca,'sourceStart':_0xaa0aca['destinationIndex']-_0x35330a,'sourceEnd':_0xaa0aca[_0x219b9e(0x174)]-0x1,'destinationIndex':_0xaa0aca[_0x219b9e(0x166)]}:{..._0xaa0aca,'sourceStart':_0xaa0aca[_0x219b9e(0x174)],'sourceEnd':_0xaa0aca[_0x219b9e(0x174)]+_0x35330a-0x1,'destinationIndex':_0xaa0aca['sourceEnd']+0x1};}function X(_0x5a2d0a,_0x139d48){const _0x4fae06=_0x1ce52f;let _0x435f7e=(_0x5a2d0a==null?void 0x0:_0x5a2d0a[_0x4fae06(0x1e1)])??(_0x139d48==null?void 0x0:_0x139d48[_0x4fae06(0x1e1)]),_0x2a7598=(_0x5a2d0a==null?void 0x0:_0x5a2d0a['subUnitId'])??(_0x139d48==null?void 0x0:_0x139d48[_0x4fae06(0x18f)]);return _0x435f7e&&_0x2a7598?{'unitId':_0x435f7e,'subUnitId':_0x2a7598}:null;}function Z(){const _0x22dc75=_0x1ce52f;return{'redos':[...q[_0x22dc75(0x15c)]],'undos':[...q[_0x22dc75(0x1bb)]],'preRedos':[...q['preRedos']??[]],'preUndos':[...q[_0x22dc75(0x195)]??[]]};}let Q=class extends _0x28774d{constructor(_0x3848f2,_0x2115c8){const _0x32d3b7=_0x1ce52f;super(),this[_0x32d3b7(0x16b)]=_0x3848f2,this[_0x32d3b7(0x1c0)]=_0x2115c8,this['_initResource']();}[_0x1ce52f(0x178)](){const _0x23272a=_0x1ce52f;this[_0x23272a(0x1c3)](this[_0x23272a(0x16b)][_0x23272a(0x1ef)]({'pluginName':W,'businesses':[_0x1395c1[_0x23272a(0x18b)]],'toJson':_0x3c7d27=>JSON[_0x23272a(0x1d2)](this[_0x23272a(0x1c0)][_0x23272a(0x19a)](_0x3c7d27)),'parseJson':_0xa86f8a=>JSON['parse'](_0xa86f8a),'onLoad':(_0x5d37e2,_0x1e2598)=>this[_0x23272a(0x1c0)][_0x23272a(0x1d5)](_0x5d37e2,_0x1e2598),'onUnLoad':_0x3f2240=>this[_0x23272a(0x1c0)][_0x23272a(0x17b)](_0x3f2240)}));}};Q=K([G(0x0,_0x57db0b),G(0x1,_0xbe0a21(P))],Q);let $=class extends _0xd243c4{constructor(_0xee5c95=Qe,_0x5f4960,_0x17a340,_0x2e44ec){const _0x4237c5=_0x1ce52f;super(),this[_0x4237c5(0x15e)]=_0xee5c95,this[_0x4237c5(0x1d9)]=_0x5f4960,this[_0x4237c5(0x180)]=_0x17a340,this[_0x4237c5(0x181)]=_0x2e44ec;let {..._0x4e0065}=_0x1a0e54({},Qe,this[_0x4237c5(0x15e)]);this[_0x4237c5(0x181)]['setConfig']('sheets-outline.config',_0x4e0065);}[_0x1ce52f(0x15f)](){const _0x164c21=_0x1ce52f;this[_0x164c21(0x1d9)]['add']([P]),this['_injector'][_0x164c21(0x15a)]([F]),this[_0x164c21(0x1d9)]['add']([Q]),this[_0x164c21(0x1d9)][_0x164c21(0x15a)]([J]),this[_0x164c21(0x16f)](),this['_injector'][_0x164c21(0x1b2)](P),this['_injector'][_0x164c21(0x1b2)](F),this[_0x164c21(0x1d9)][_0x164c21(0x1b2)](Q),this['_injector'][_0x164c21(0x1b2)](J);}[_0x1ce52f(0x16f)](){const _0x8e6d00=_0x1ce52f;[z,ze,qe,V][_0x8e6d00(0x1f0)](_0x1addb7=>{const _0x4df2da=_0x8e6d00;this[_0x4df2da(0x1c3)](this[_0x4df2da(0x180)][_0x4df2da(0x157)](_0x1addb7));}),[I,L,H,B,U][_0x8e6d00(0x1f0)](_0x30b372=>{const _0x3c0f88=_0x8e6d00;this['disposeWithMe'](this[_0x3c0f88(0x180)][_0x3c0f88(0x157)](_0x30b372));});}};N($,_0x1ce52f(0x1b3),W),N($,_0x1ce52f(0x18d),Xe),N($,_0x1ce52f(0x19b),Ze),N($,'type',_0x1395c1[_0x1ce52f(0x18b)]),$=K([_0x35d92d(_0x1e0280,_0x1d7adc),G(0x1,_0xbe0a21(_0x1ea18e)),G(0x2,_0x5b34db),G(0x3,_0x3ab1ed)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
|
|
1
|
+
const _0x2552be=_0x38a2;(function(_0x138e3b,_0x12de20){const _0x9ba323=_0x38a2,_0x3b044d=_0x138e3b();while(!![]){try{const _0x329dff=-parseInt(_0x9ba323(0x1f6))/0x1+-parseInt(_0x9ba323(0x19b))/0x2*(-parseInt(_0x9ba323(0x1ca))/0x3)+parseInt(_0x9ba323(0x1bf))/0x4*(-parseInt(_0x9ba323(0x1de))/0x5)+-parseInt(_0x9ba323(0x1ea))/0x6+parseInt(_0x9ba323(0x1ce))/0x7*(-parseInt(_0x9ba323(0x185))/0x8)+parseInt(_0x9ba323(0x192))/0x9*(-parseInt(_0x9ba323(0x16e))/0xa)+parseInt(_0x9ba323(0x16d))/0xb*(parseInt(_0x9ba323(0x1da))/0xc);if(_0x329dff===_0x12de20)break;else _0x3b044d['push'](_0x3b044d['shift']());}catch(_0x1a479b){_0x3b044d['push'](_0x3b044d['shift']());}}}(_0x327d,0x4a300));import{CommandType as _0x42c5de,CustomCommandExecutionError as _0x6678d2,DependentOn as _0x24a179,Disposable as _0x1f59cd,ICommandService as _0xec1c95,IConfigService as _0x88f4c1,IPermissionService as _0x51f3bd,IResourceManagerService as _0x12fef9,IUndoRedoService as _0x3d7842,IUniverInstanceService as _0x241e59,Inject as _0x259385,Injector as _0x2948c4,Plugin as _0x14323e,UniverInstanceType as _0x149174,generateRandomId as _0x293be6,merge as _0x2da987,sequenceExecute as _0x5c69e0}from'@univerjs/core';import{InsertColCommand as _0x540713,InsertRowCommand as _0x576ba9,MoveColsCommand as _0x5c3cdd,MoveRowsCommand as _0x32509d,RemoveColCommand as _0x289843,RemoveRowCommand as _0x19474a,SetColHiddenMutation as _0x5d70bb,SetColVisibleMutation as _0x34dce4,SetRowHiddenMutation as _0x3c2892,SetRowVisibleMutation as _0x35cb71,SheetInterceptorService as _0x2d3c87,SheetPermissionCheckController as _0x891372,UniverSheetsPlugin as _0x4eb0bf,WorkbookViewPermission as _0xd8479c,WorksheetViewPermission as _0x230a03,getSheetCommandTarget as _0x5bb827}from'@univerjs/sheets';import{Subject as _0x2a2d34,of as _0x4fe5d5}from'rxjs';import{debounceTime as _0x1bdf9f,map as _0x5d1f67,startWith as _0x4ef7b8}from'rxjs/operators';import{UniverLicensePlugin as _0x41b4af}from'@univerjs-pro/license';let _e=function(_0x540cd2){const _0x540868=_0x38a2;return _0x540cd2['ROW']=_0x540868(0x1d6),_0x540cd2[_0x540868(0x1e1)]=_0x540868(0x1b5),_0x540cd2;}({}),ve=function(_0x4d02c8){const _0x1d446d=_0x38a2;return _0x4d02c8[_0x1d446d(0x1ae)]=_0x1d446d(0x19d),_0x4d02c8['OUT_OF_BOUNDS']=_0x1d446d(0x1b3),_0x4d02c8[_0x1d446d(0x1d4)]=_0x1d446d(0x202),_0x4d02c8[_0x1d446d(0x1bd)]=_0x1d446d(0x1c3),_0x4d02c8['MOVE_SPLITS_OUTLINE']=_0x1d446d(0x1a6),_0x4d02c8[_0x1d446d(0x191)]='clear-range-not-contain-outline',_0x4d02c8[_0x1d446d(0x1e4)]='unknown',_0x4d02c8;}({});var S=class extends Error{constructor(_0x43a6ab,_0x49ca70,_0x1ae695){const _0x5d6e48=_0x38a2;super(_0x49ca70),this[_0x5d6e48(0x1fa)]=_0x43a6ab,this[_0x5d6e48(0x1b6)]=_0x1ae695,this[_0x5d6e48(0x159)]=_0x5d6e48(0x1a5);}};function ye(_0x2c0ef3){const _0x556606=_0x38a2;return _0x2c0ef3 instanceof S?_0x2c0ef3[_0x556606(0x1fa)]:_0x2c0ef3 instanceof Error?_0x2c0ef3['message'][_0x556606(0x197)](_0x556606(0x15d))?_0x556606(0x1a6):_0x2c0ef3[_0x556606(0x195)]['includes']('depth')?_0x556606(0x1c3):_0x2c0ef3[_0x556606(0x195)][_0x556606(0x197)](_0x556606(0x19e))?_0x556606(0x202):_0x2c0ef3[_0x556606(0x195)][_0x556606(0x197)](_0x556606(0x18d))?_0x556606(0x19d):_0x556606(0x17d):_0x556606(0x17d);}function be(_0x1dca98){return _0x1dca98 instanceof S?_0x1dca98['outlineId']:void 0x0;}const C=0x2**0x35-0x1;function w(_0x1cc3c7,_0xbc12c2){const _0x11f578=_0x38a2;return _0x1cc3c7[_0x11f578(0x181)]===_0xbc12c2[_0x11f578(0x181)]&&_0x1cc3c7[_0x11f578(0x1c4)]===_0xbc12c2[_0x11f578(0x1c4)]&&_0x1cc3c7[_0x11f578(0x1cc)]===_0xbc12c2[_0x11f578(0x1cc)];}function T(_0x354cfa,_0x28f916={}){const _0x2eb016=_0x38a2;let _0x5cab63=_0x28f916[_0x2eb016(0x161)]??0x8,_0x129948=new Map();for(let _0x2c6263 of _0x354cfa){let _0x380152=_0x2c6263['unitId']+':'+_0x2c6263[_0x2eb016(0x1c4)]+':'+_0x2c6263['axis'],_0x174c26=_0x129948['get'](_0x380152);_0x174c26?_0x174c26[_0x2eb016(0x170)](_0x2c6263):_0x129948[_0x2eb016(0x1ec)](_0x380152,[_0x2c6263]);}let _0x131be8=[];for(let _0x242736 of _0x129948[_0x2eb016(0x163)]()){let _0x525cc5=[..._0x242736]['sort'](j),_0x485872=[];for(let _0x2a1339 of _0x525cc5){for(Me(_0x2a1339);_0x485872[_0x2eb016(0x198)]>0x0&&_0x2a1339['start']>_0x485872[_0x485872[_0x2eb016(0x198)]-0x1]['end'];)_0x485872[_0x2eb016(0x1cb)]();let _0x2699d5=_0x485872[_0x485872[_0x2eb016(0x198)]-0x1];if(_0x2699d5&&_0x2a1339[_0x2eb016(0x18a)]>_0x2699d5[_0x2eb016(0x18a)])throw new S(_0x2eb016(0x202),_0x2eb016(0x182),_0x2a1339['id']);let _0x85054a=_0x2699d5?_0x2699d5[_0x2eb016(0x18f)]+0x1:0x1;if(_0x85054a>_0x5cab63)throw new S(_0x2eb016(0x1c3),_0x2eb016(0x1f3)+_0x5cab63,_0x2a1339['id']);let _0x4a1ea2={..._0x2a1339,'depth':_0x85054a,'parentId':_0x2699d5==null?void 0x0:_0x2699d5['id'],'anchor':_0x2a1339[_0x2eb016(0x18a)],'children':[]};_0x2699d5?_0x2699d5[_0x2eb016(0x203)][_0x2eb016(0x170)](_0x4a1ea2):_0x131be8['push'](_0x4a1ea2),_0x485872['push'](_0x4a1ea2);}}return _0x131be8;}function E(_0xf59297,_0x389074,_0x5daf0e={}){const _0x487226=_0x38a2;if(_0x389074['start']<0x0||_0x389074[_0x487226(0x19f)]>_0x389074[_0x487226(0x18a)])return{'valid':!0x1,'reason':_0x487226(0x19d)};if(_0x5daf0e[_0x487226(0x1f7)]!=null&&_0x389074['end']>=_0x5daf0e[_0x487226(0x1f7)])return{'valid':!0x1,'reason':'out-of-bounds'};let _0x4729d5=_0xf59297[_0x487226(0x188)](_0x4e6799=>w(_0x4e6799,_0x389074));for(let _0x295e51 of _0x4729d5)if(Ne(_0x295e51,_0x389074))return{'valid':!0x1,'reason':_0x487226(0x202)};try{T([..._0xf59297,_0x389074],_0x5daf0e);}catch(_0x28d658){let _0x2609f0=ye(_0x28d658);return _0x2609f0===_0x487226(0x1c3)?{'valid':!0x1,'reason':_0x487226(0x1c3)}:_0x2609f0===_0x487226(0x19d)?{'valid':!0x1,'reason':'invalid-range'}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function xe(_0x424feb,_0x4f774d,_0x4c5257={}){const _0x5175dc=_0x38a2;let _0xd396fe=E(_0x424feb,_0x4f774d,_0x4c5257);if(!_0xd396fe['valid'])throw Error(_0xd396fe[_0x5175dc(0x1fa)]??_0x5175dc(0x16c));return[..._0x424feb,_0x4f774d];}function Se(_0x5a30db,_0x25270a){const _0x5e1d32=_0x38a2;let _0x5dacce=_0x25270a['start'],_0x4be6e8=_0x25270a[_0x5e1d32(0x18a)],_0xef5eea=[],_0x379e9f=!0x0;for(;_0x379e9f;){_0x379e9f=!0x1;for(let _0x118a3c of _0x5a30db)!_0xef5eea[_0x5e1d32(0x197)](_0x118a3c)&&w(_0x118a3c,_0x25270a)&&Ae(_0x118a3c[_0x5e1d32(0x19f)],_0x118a3c['end'],_0x5dacce,_0x4be6e8)&&(_0xef5eea[_0x5e1d32(0x170)](_0x118a3c),_0x5dacce=Math[_0x5e1d32(0x1d7)](_0x5dacce,_0x118a3c['start']),_0x4be6e8=Math[_0x5e1d32(0x17b)](_0x4be6e8,_0x118a3c[_0x5e1d32(0x18a)]),_0x379e9f=!0x0);}if(_0xef5eea['length']===0x0)return null;let [_0x52ec2a]=[..._0xef5eea][_0x5e1d32(0x1bb)](j);return{'mergedOutline':{..._0x52ec2a,'start':_0x5dacce,'end':_0x4be6e8},'mergedOutlines':_0xef5eea};}function Ce(_0x14ebc0,_0x58a22a){const _0x1f5cac=_0x38a2;return _0x14ebc0[_0x1f5cac(0x188)](_0x4d1e25=>!w(_0x4d1e25,_0x58a22a)||!(_0x4d1e25[_0x1f5cac(0x19f)]>=_0x58a22a[_0x1f5cac(0x19f)]&&_0x4d1e25['end']<=_0x58a22a[_0x1f5cac(0x18a)]));}function we(_0x10d4c7,_0x560281,_0x528b35,_0x291688){const _0x46d67c=_0x38a2;return Te(_0x10d4c7[_0x46d67c(0x188)](_0x3f2b17=>_0x3f2b17[_0x46d67c(0x181)]===_0x560281&&_0x3f2b17['subUnitId']===_0x528b35&&_0x3f2b17[_0x46d67c(0x1cc)]===_0x291688&&_0x3f2b17['collapsed'])[_0x46d67c(0x1a2)](_0x44cf9d=>({'start':_0x44cf9d[_0x46d67c(0x19f)],'end':_0x44cf9d['end']})));}function Te(_0x4739af){const _0x2f2eb1=_0x38a2;if(_0x4739af['length']===0x0)return[];let _0x30c425=[..._0x4739af][_0x2f2eb1(0x1bb)]((_0x2623be,_0x51289d)=>_0x2623be[_0x2f2eb1(0x19f)]-_0x51289d['start']||_0x2623be[_0x2f2eb1(0x18a)]-_0x51289d[_0x2f2eb1(0x18a)]),_0xc044b7=[];for(let _0x4a4f84 of _0x30c425){let _0x2b2ac9=_0xc044b7[_0xc044b7[_0x2f2eb1(0x198)]-0x1];!_0x2b2ac9||_0x4a4f84[_0x2f2eb1(0x19f)]>_0x2b2ac9[_0x2f2eb1(0x18a)]+0x1?_0xc044b7[_0x2f2eb1(0x170)]({..._0x4a4f84}):_0x2b2ac9[_0x2f2eb1(0x18a)]=Math['max'](_0x2b2ac9[_0x2f2eb1(0x18a)],_0x4a4f84['end']);}return _0xc044b7;}function D(_0xc08f69,_0x4509c0){const _0x178770=_0x38a2;return _0x4509c0[_0x178770(0x1dd)]<=0x0?_0xc08f69:A(_0xc08f69[_0x178770(0x1a2)](_0x2f5fdf=>w(_0x2f5fdf,_0x4509c0)?_0x4509c0[_0x178770(0x1d1)]<=_0x2f5fdf['start']?{..._0x2f5fdf,'start':_0x2f5fdf[_0x178770(0x19f)]+_0x4509c0[_0x178770(0x1dd)],'end':_0x2f5fdf[_0x178770(0x18a)]+_0x4509c0['count']}:_0x2f5fdf[_0x178770(0x19f)]<_0x4509c0['index']&&_0x4509c0[_0x178770(0x1d1)]<=_0x2f5fdf[_0x178770(0x18a)]?{..._0x2f5fdf,'end':_0x2f5fdf['end']+_0x4509c0[_0x178770(0x1dd)]}:_0x2f5fdf:_0x2f5fdf));}function O(_0xbe358b,_0x3dd186){const _0x3d4da2=_0x38a2;if(_0x3dd186[_0x3d4da2(0x19f)]>_0x3dd186[_0x3d4da2(0x18a)])return _0xbe358b;let _0xcb3c3f=_0x3dd186[_0x3d4da2(0x18a)]-_0x3dd186[_0x3d4da2(0x19f)]+0x1,_0x47497a=[];for(let _0x54c7d5 of _0xbe358b){if(!w(_0x54c7d5,_0x3dd186)){_0x47497a[_0x3d4da2(0x170)](_0x54c7d5);continue;}if(_0x54c7d5[_0x3d4da2(0x18a)]<_0x3dd186[_0x3d4da2(0x19f)]){_0x47497a[_0x3d4da2(0x170)](_0x54c7d5);continue;}if(_0x54c7d5[_0x3d4da2(0x19f)]>_0x3dd186['end']){_0x47497a['push']({..._0x54c7d5,'start':_0x54c7d5['start']-_0xcb3c3f,'end':_0x54c7d5[_0x3d4da2(0x18a)]-_0xcb3c3f});continue;}let _0x220dc5=Math[_0x3d4da2(0x17b)](_0x54c7d5['start'],_0x3dd186[_0x3d4da2(0x19f)]),_0x994b60=Math['min'](_0x54c7d5['end'],_0x3dd186['end']),_0x295feb=Math[_0x3d4da2(0x17b)](0x0,_0x994b60-_0x220dc5+0x1),_0x168613=_0x54c7d5[_0x3d4da2(0x18a)]-_0x54c7d5[_0x3d4da2(0x19f)]+0x1-_0x295feb;if(_0x168613<=0x0)continue;let _0xf0b37e=_0x54c7d5[_0x3d4da2(0x19f)]<_0x3dd186[_0x3d4da2(0x19f)]?_0x54c7d5[_0x3d4da2(0x19f)]:_0x3dd186[_0x3d4da2(0x19f)];_0x47497a[_0x3d4da2(0x170)]({..._0x54c7d5,'start':_0xf0b37e,'end':_0xf0b37e+_0x168613-0x1});}return A(_0x47497a);}function k(_0x5e940b,_0x5cd25c){const _0x5c94e6=_0x38a2;if(_0x5cd25c[_0x5c94e6(0x178)]>_0x5cd25c['sourceEnd'])return _0x5e940b;let _0x74df84=[];for(let _0x3022a3 of _0x5e940b){if(!w(_0x3022a3,_0x5cd25c)){_0x74df84[_0x5c94e6(0x170)](_0x3022a3);continue;}let _0x35c535=Ee(_0x3022a3,_0x5cd25c);if(_0x35c535[_0x5c94e6(0x201)]===_0x5c94e6(0x19c))throw new S('move-splits-outline',_0x5c94e6(0x1cf)+_0x3022a3['id'],_0x3022a3['id']);_0x74df84['push'](_0x35c535[_0x5c94e6(0x175)]);}return A(_0x74df84);}function Ee(_0xdc0242,_0x5b6f50){const _0x5e3401=_0x38a2;let _0x4ed35d=De(_0x5b6f50['sourceStart'],_0x5b6f50['sourceEnd']+0x1,_0x5b6f50[_0x5e3401(0x1ed)]),_0x43cf24=[],_0x2ab225={'start':_0xdc0242[_0x5e3401(0x19f)],'end':_0xdc0242[_0x5e3401(0x18a)]+0x1};for(let _0x5080bb of _0x4ed35d){let _0x4b1b78=Oe(_0x2ab225,_0x5080bb[_0x5e3401(0x18d)]);_0x4b1b78&&_0x43cf24[_0x5e3401(0x170)]({'start':_0x4b1b78[_0x5e3401(0x19f)]+_0x5080bb[_0x5e3401(0x15b)],'end':_0x4b1b78[_0x5e3401(0x18a)]+_0x5080bb[_0x5e3401(0x15b)]});}let _0xc609f0=ke(_0x43cf24);return _0xc609f0[_0x5e3401(0x198)]===0x1?{'type':'ok','outline':{..._0xdc0242,'start':_0xc609f0[0x0][_0x5e3401(0x19f)],'end':_0xc609f0[0x0][_0x5e3401(0x18a)]-0x1}}:{'type':'split','outline':_0xdc0242,'ranges':_0xc609f0};}function De(_0x1f5319,_0x542517,_0x318d5a){let _0x4a2f29=_0x542517-_0x1f5319;if(_0x4a2f29<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x318d5a>=_0x1f5319&&_0x318d5a<=_0x542517?[{'range':{'start':0x0,'end':C},'offset':0x0}]:_0x318d5a<_0x1f5319?[{'range':{'start':0x0,'end':_0x318d5a},'offset':0x0},{'range':{'start':_0x318d5a,'end':_0x1f5319},'offset':_0x4a2f29},{'range':{'start':_0x1f5319,'end':_0x542517},'offset':_0x318d5a-_0x1f5319},{'range':{'start':_0x542517,'end':C},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x1f5319},'offset':0x0},{'range':{'start':_0x1f5319,'end':_0x542517},'offset':_0x318d5a-_0x542517},{'range':{'start':_0x542517,'end':_0x318d5a},'offset':-_0x4a2f29},{'range':{'start':_0x318d5a,'end':C},'offset':0x0}];}function Oe(_0x3beb0c,_0x5cc76f){const _0x3b6e7c=_0x38a2;let _0x2add85=Math[_0x3b6e7c(0x17b)](_0x3beb0c['start'],_0x5cc76f[_0x3b6e7c(0x19f)]),_0x276c87=Math[_0x3b6e7c(0x1d7)](_0x3beb0c[_0x3b6e7c(0x18a)],_0x5cc76f[_0x3b6e7c(0x18a)]);return _0x2add85>=_0x276c87?null:{'start':_0x2add85,'end':_0x276c87};}function ke(_0x2c9e05){const _0xcd5553=_0x38a2;if(_0x2c9e05['length']===0x0)return[];let _0x48433a=[..._0x2c9e05][_0xcd5553(0x1bb)]((_0x1bf9ba,_0x521fd4)=>_0x1bf9ba[_0xcd5553(0x19f)]-_0x521fd4['start']||_0x1bf9ba[_0xcd5553(0x18a)]-_0x521fd4['end']),_0x3f8ede=[];for(let _0x347ec2 of _0x48433a){let _0x289f34=_0x3f8ede[_0x3f8ede[_0xcd5553(0x198)]-0x1];!_0x289f34||_0x347ec2['start']>_0x289f34[_0xcd5553(0x18a)]?_0x3f8ede[_0xcd5553(0x170)]({..._0x347ec2}):_0x289f34[_0xcd5553(0x18a)]=Math[_0xcd5553(0x17b)](_0x289f34[_0xcd5553(0x18a)],_0x347ec2['end']);}return _0x3f8ede;}function Ae(_0x3b9120,_0x3543f4,_0x861bec,_0x59bdb0){return _0x3543f4+0x1===_0x861bec||_0x59bdb0+0x1===_0x3b9120;}function A(_0x267172){let _0x354354=je(_0x267172);return T(_0x354354),_0x354354;}function je(_0x508cdf){const _0x168fda=_0x38a2;let _0x506e9d=new Map();for(let _0x4d7d55 of _0x508cdf){let _0x2ea65b=[_0x4d7d55[_0x168fda(0x181)],_0x4d7d55['subUnitId'],_0x4d7d55[_0x168fda(0x1cc)],_0x4d7d55['start'],_0x4d7d55[_0x168fda(0x18a)]]['join'](':'),_0x1f1a24=_0x506e9d[_0x168fda(0x194)](_0x2ea65b);if(!_0x1f1a24){_0x506e9d['set'](_0x2ea65b,_0x4d7d55);continue;}_0x506e9d[_0x168fda(0x1ec)](_0x2ea65b,{..._0x1f1a24,'collapsed':_0x1f1a24['collapsed']||_0x4d7d55['collapsed']});}return Array[_0x168fda(0x1c0)](_0x506e9d[_0x168fda(0x163)]());}function j(_0x18578d,_0x2102c9){const _0x26f8b3=_0x38a2;return _0x18578d['unitId']===_0x2102c9[_0x26f8b3(0x181)]?_0x18578d['subUnitId']===_0x2102c9['subUnitId']?_0x18578d['axis']===_0x2102c9[_0x26f8b3(0x1cc)]?_0x18578d[_0x26f8b3(0x19f)]===_0x2102c9[_0x26f8b3(0x19f)]?_0x2102c9[_0x26f8b3(0x18a)]-_0x18578d['end']:_0x18578d[_0x26f8b3(0x19f)]-_0x2102c9[_0x26f8b3(0x19f)]:_0x18578d[_0x26f8b3(0x1cc)]['localeCompare'](_0x2102c9['axis']):_0x18578d['subUnitId'][_0x26f8b3(0x1fe)](_0x2102c9[_0x26f8b3(0x1c4)]):_0x18578d[_0x26f8b3(0x181)][_0x26f8b3(0x1fe)](_0x2102c9[_0x26f8b3(0x181)]);}function Me(_0x2f171c){const _0x18997=_0x38a2;if(_0x2f171c[_0x18997(0x19f)]>_0x2f171c[_0x18997(0x18a)])throw new S(_0x18997(0x19d),_0x18997(0x1f9),_0x2f171c['id']);}function Ne(_0x5f1be7,_0x598ca1){const _0x474be9=_0x38a2;let _0x1708f1=_0x5f1be7[_0x474be9(0x19f)]<=_0x598ca1['end']&&_0x598ca1[_0x474be9(0x19f)]<=_0x5f1be7[_0x474be9(0x18a)],_0x1c3941=_0x5f1be7[_0x474be9(0x19f)]<=_0x598ca1[_0x474be9(0x19f)]&&_0x598ca1['end']<=_0x5f1be7[_0x474be9(0x18a)],_0x2d5829=_0x598ca1['start']<=_0x5f1be7[_0x474be9(0x19f)]&&_0x5f1be7['end']<=_0x598ca1[_0x474be9(0x18a)];return _0x1708f1&&!_0x1c3941&&!_0x2d5829;}function _0x327d(){const _0x2e9111=['184613fGgTOB','53180yfOhzQ','MUTATION','push','move','setConfig','endColumn','registerCommand','outline','_sheetsOutlineErrorService','sheets-outline.config','sourceStart','entries','call','max','getUnit','unknown','getMaxColumns','_resourceManagerService','result','unitId','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','undos','registerPluginResource','1595096mAxHZh','_initResource','dimension-outline-','filter','sourceEnd','end','string','sheet.mutation.transform-dimension-outlines','range','toRange','depth','fromRange','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','54qsrhDy','collapsed','get','message','_sheetInterceptorService','includes','length','getSheetBySheetId','getRowCount','84fOaTAF','split','invalid-range','Crossing','start','emit','change$','map','sheet.command.set-dimension-outline-collapsed','preUndos','DimensionOutlineError','move-splits-outline','version','stringify','sheet.command.remove-dimension-outline','Invalid\x20dimension\x20outline\x20mutation','complete','_sheetsOutlineModel','_configService','INVALID_RANGE','getActiveSheet','sheet.mutation.add-dimension-outline','startRow','forEach','out-of-bounds','_commandService','column','outlineId','mergedOutline','getUnitOutlines','getColumnCount','restoreOutlines','sort','UNIVER_SHEET','MAX_DEPTH','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','795332rNYFFt','from','function','endRow','max-depth','subUnitId','serialize','clear','_error$','getOutlines','_getCommandScope','42594VbhfuO','pop','axis','pluginName','21XRZURA','Move\x20would\x20split\x20dimension\x20outline:\x20','some','index','decorate','startColumn','CROSSING','_univerInstanceService','row','min','setOutlines','outlineList','1140IIMIYq','deserialize','@univerjs-pro/sheets-outline','count','5vdzYbg','sheet.command.add-dimension-outline','getUnitId','COLUMN','has','dispose','UNKNOWN','COMMAND','delete','disposeWithMe','pipe','sheet.mutation.remove-dimension-outline','2715432oyyBli','parse','set','destinationIndex','_injector','insert','_outlines','onStarting','getOwnPropertyDescriptor','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','object','params','605355LEWYpr','maxIndex','_initRegisterCommand','Invalid\x20outline\x20range','reason','1.0.2','defineProperty','add','localeCompare','getSheetId','sheet.command.clear-dimension-outlines','type','crossing','children','getCurrentUnitOfType','name','toPrimitive','offset','_config','split\x20dimension\x20outline','redos','removeUnit','_change$','maxDepth','find','values','SHEET_OUTLINE_PLUGIN','permissionPointUpdate$','packageName','pushUndoRedo','symbol','permissionCheckWithoutRange','next','preRedos','invalid-dimension-outline'];_0x327d=function(){return _0x2e9111;};return _0x327d();}function M(_0x5f2107){'@babel/helpers - typeof';const _0xa43912=_0x38a2;return M=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xa43912(0x168)?function(_0x1b8531){return typeof _0x1b8531;}:function(_0x440a77){const _0x3db1cd=_0xa43912;return _0x440a77&&typeof Symbol==_0x3db1cd(0x1c1)&&_0x440a77['constructor']===Symbol&&_0x440a77!==Symbol['prototype']?'symbol':typeof _0x440a77;},M(_0x5f2107);}function Pe(_0x21445b,_0x5a7377){const _0x565a41=_0x38a2;if(M(_0x21445b)!=_0x565a41(0x1f4)||!_0x21445b)return _0x21445b;var _0x436338=_0x21445b[Symbol[_0x565a41(0x15a)]];if(_0x436338!==void 0x0){var _0x11b927=_0x436338[_0x565a41(0x17a)](_0x21445b,_0x5a7377||'default');if(M(_0x11b927)!='object')return _0x11b927;throw TypeError(_0x565a41(0x1be));}return(_0x5a7377===_0x565a41(0x18b)?String:Number)(_0x21445b);}function Fe(_0x46865a){const _0x5abf7f=_0x38a2;var _0x16295c=Pe(_0x46865a,_0x5abf7f(0x18b));return M(_0x16295c)==_0x5abf7f(0x168)?_0x16295c:_0x16295c+'';}function N(_0x5cdda2,_0x497ba8,_0x315bf7){const _0x1d226c=_0x38a2;return(_0x497ba8=Fe(_0x497ba8))in _0x5cdda2?Object[_0x1d226c(0x1fc)](_0x5cdda2,_0x497ba8,{'value':_0x315bf7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cdda2[_0x497ba8]=_0x315bf7,_0x5cdda2;}var P=class extends _0x1f59cd{constructor(..._0x2ac573){const _0x5ca148=_0x38a2;super(..._0x2ac573),N(this,'_outlines',new Map()),N(this,_0x5ca148(0x160),new _0x2a2d34()),N(this,_0x5ca148(0x1a1),this[_0x5ca148(0x160)]['asObservable']());}[_0x2552be(0x1c8)](_0x7f983f,_0x2d68fd){const _0x5e9db7=_0x2552be;var _0x4797d3;return[...((_0x4797d3=this[_0x5e9db7(0x1f0)][_0x5e9db7(0x194)](_0x7f983f))==null?void 0x0:_0x4797d3[_0x5e9db7(0x194)](_0x2d68fd))??[]];}[_0x2552be(0x1b8)](_0x61bcc0){const _0x108009=_0x2552be;let _0x4b69d8=this[_0x108009(0x1f0)][_0x108009(0x194)](_0x61bcc0),_0x2defc2=new Map();return _0x4b69d8==null||_0x4b69d8['forEach']((_0x57502f,_0x340e5f)=>{const _0x10e1c5=_0x108009;_0x2defc2[_0x10e1c5(0x1ec)](_0x340e5f,[..._0x57502f]);}),_0x2defc2;}[_0x2552be(0x1d8)](_0x327a5c,_0x14989d,_0x1d82f6){const _0x120bdb=_0x2552be;this['_ensureUnitOutlines'](_0x327a5c)[_0x120bdb(0x1ec)](_0x14989d,[..._0x1d82f6]),this['_change$']['next']({'unitId':_0x327a5c,'subUnitId':_0x14989d});}[_0x2552be(0x15f)](_0x479a3c){const _0x35024f=_0x2552be;this[_0x35024f(0x1f0)]['delete'](_0x479a3c),this[_0x35024f(0x160)]['next']({'unitId':_0x479a3c});}['serialize'](_0xe43e82){const _0x33f54c=_0x2552be;let _0x4a4930=this[_0x33f54c(0x1f0)][_0x33f54c(0x194)](_0xe43e82),_0x4d5e8c={};return _0x4a4930==null||_0x4a4930[_0x33f54c(0x1b2)]((_0x1ecb64,_0x1aedd5)=>{_0x4d5e8c[_0x1aedd5]={'outlineList':[..._0x1ecb64]};}),_0x4d5e8c;}[_0x2552be(0x1db)](_0x32db43,_0x3221b0){const _0x5e2a1c=_0x2552be;let _0x3204e3=new Map();Object[_0x5e2a1c(0x179)](_0x3221b0)[_0x5e2a1c(0x1b2)](([_0x4860aa,_0x10b7bf])=>{const _0x10ae6b=_0x5e2a1c;_0x3204e3[_0x10ae6b(0x1ec)](_0x4860aa,[..._0x10b7bf[_0x10ae6b(0x1d9)]??[]]);}),this[_0x5e2a1c(0x1f0)][_0x5e2a1c(0x1ec)](_0x32db43,_0x3204e3),this['_change$'][_0x5e2a1c(0x16a)]({'unitId':_0x32db43});}[_0x2552be(0x1e3)](){const _0x2162f8=_0x2552be;super[_0x2162f8(0x1e3)](),this[_0x2162f8(0x1f0)][_0x2162f8(0x1c6)](),this[_0x2162f8(0x160)]['complete']();}['_ensureUnitOutlines'](_0x414ba9){const _0x9124e8=_0x2552be;let _0x42065a=this['_outlines'][_0x9124e8(0x194)](_0x414ba9);return _0x42065a||(_0x42065a=new Map(),this[_0x9124e8(0x1f0)][_0x9124e8(0x1ec)](_0x414ba9,_0x42065a)),_0x42065a;}},F=class extends _0x1f59cd{constructor(..._0x428f75){const _0x3fcfa1=_0x2552be;super(..._0x428f75),N(this,'_error$',new _0x2a2d34()),N(this,'error$',this[_0x3fcfa1(0x1c7)]['asObservable']());}['emit'](_0x58f457){const _0x966952=_0x2552be;this[_0x966952(0x1c7)][_0x966952(0x16a)](_0x58f457);}[_0x2552be(0x1e3)](){const _0x422c9c=_0x2552be;super[_0x422c9c(0x1e3)](),this[_0x422c9c(0x1c7)][_0x422c9c(0x1ab)]();}};const I={'id':_0x2552be(0x1b0),'type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x10a33c,_0xa19a29)=>{const _0x50075e=_0x2552be;let _0x4879c9=_0x10a33c[_0x50075e(0x194)](P),_0x5091a3=_0x4879c9[_0x50075e(0x1c8)](_0xa19a29[_0x50075e(0x181)],_0xa19a29[_0x50075e(0x1c4)]);return _0x4879c9['setOutlines'](_0xa19a29[_0x50075e(0x181)],_0xa19a29['subUnitId'],xe(_0x5091a3,_0xa19a29[_0x50075e(0x175)])),!0x0;}},L={'id':_0x2552be(0x1e9),'type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x23e142,_0x17b863)=>{const _0x23c802=_0x2552be;let _0x345e37=_0x23e142['get'](P),_0x182679=_0x345e37['getOutlines'](_0x17b863[_0x23c802(0x181)],_0x17b863[_0x23c802(0x1c4)]);return _0x345e37[_0x23c802(0x1d8)](_0x17b863[_0x23c802(0x181)],_0x17b863[_0x23c802(0x1c4)],_0x182679[_0x23c802(0x188)](_0x2c555a=>_0x2c555a['id']!==_0x17b863[_0x23c802(0x1b6)])),!0x0;}};function R(_0x515a84,_0x4c11c4,_0x21739e){const _0x54fcd6=_0x2552be;let _0x4a507c=Le(_0x515a84);return!_0x4a507c||_0x4a507c[_0x54fcd6(0x169)]({'workbookTypes':[_0xd8479c],'worksheetTypes':[_0x230a03]},_0x4c11c4,_0x21739e);}function Ie(_0x5a7b03,_0x231799,_0x11051d){const _0x49a20d=_0x2552be;let _0x4a94f5=Re(_0x5a7b03);return((_0x4a94f5==null?void 0x0:_0x4a94f5[_0x49a20d(0x165)])??_0x4fe5d5(null))[_0x49a20d(0x1e8)](_0x1bdf9f(0x64),_0x4ef7b8(null),_0x5d1f67(()=>R(_0x5a7b03,_0x231799,_0x11051d)));}function Le(_0x145936){const _0x187edf=_0x2552be;if(typeof _0x145936[_0x187edf(0x1e2)]==_0x187edf(0x1c1)&&!_0x145936['has'](_0x891372))return null;try{return _0x145936[_0x187edf(0x194)](_0x891372);}catch{return null;}}function Re(_0x1658e0){const _0x513d38=_0x2552be;if(typeof _0x1658e0[_0x513d38(0x1e2)]==_0x513d38(0x1c1)&&!_0x1658e0[_0x513d38(0x1e2)](_0x51f3bd))return null;try{return _0x1658e0[_0x513d38(0x194)](_0x51f3bd);}catch{return null;}}const z={'id':_0x2552be(0x1df),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x5c4c58,_0x28d55b)=>{const _0x215766=_0x2552be;if(!_0x28d55b)return!0x1;let _0x4b07c6=_0x5bb827(_0x5c4c58[_0x215766(0x194)](_0x241e59),_0x28d55b);if(!_0x4b07c6)return!0x1;let {unitId:_0x253be2,subUnitId:_0x489a70,worksheet:_0x5f278f}=_0x4b07c6;if(!R(_0x5c4c58,_0x253be2,_0x489a70))return!0x1;let _0x45f60a=_0x5c4c58[_0x215766(0x194)](P),_0x5d0e39={'id':_0x215766(0x187)+_0x293be6(0x6),'unitId':_0x253be2,'subUnitId':_0x489a70,'axis':_0x28d55b[_0x215766(0x1cc)],'start':_0x28d55b[_0x215766(0x19f)],'end':_0x28d55b[_0x215766(0x18a)],'collapsed':!0x1},_0x849c4a=_0x28d55b[_0x215766(0x1cc)]===_0x215766(0x1d6)?_0x5f278f[_0x215766(0x19a)]():_0x5f278f[_0x215766(0x1b9)](),_0x5a1569=_0x45f60a[_0x215766(0x1c8)](_0x253be2,_0x489a70),_0x5628d7=Se(_0x5a1569,_0x5d0e39),_0x40293c=(_0x5628d7==null?void 0x0:_0x5628d7['mergedOutlines'])??[],_0x233d4b=(_0x5628d7==null?void 0x0:_0x5628d7[_0x215766(0x1b7)])??_0x5d0e39,_0x1e59f4=E(_0x5628d7?_0x5a1569[_0x215766(0x188)](_0x57c307=>!_0x40293c[_0x215766(0x1d0)](_0x114622=>_0x114622['id']===_0x57c307['id'])):_0x5a1569,_0x233d4b,{'maxIndex':_0x849c4a});if(!_0x1e59f4['valid'])return _0x5c4c58[_0x215766(0x194)](F)[_0x215766(0x1a0)]({'reason':_0x1e59f4[_0x215766(0x1fa)]??_0x215766(0x17d),'commandId':z['id'],'unitId':_0x253be2,'subUnitId':_0x489a70,'axis':_0x28d55b[_0x215766(0x1cc)],'outlineId':_0x233d4b['id']}),!0x1;let _0x3d993e=[..._0x40293c[_0x215766(0x1a2)](_0x262d52=>({'id':L['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outlineId':_0x262d52['id']}})),{'id':I['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outline':_0x233d4b}}],_0x4bbeb5=[{'id':L['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outlineId':_0x233d4b['id']}},..._0x40293c[_0x215766(0x1a2)](_0x4d8be8=>({'id':I['id'],'params':{'unitId':_0x253be2,'subUnitId':_0x489a70,'outline':_0x4d8be8}}))];return _0x5c69e0(_0x3d993e,_0x5c4c58['get'](_0xec1c95))[_0x215766(0x180)]?(_0x5c4c58['get'](_0x3d7842)['pushUndoRedo']({'unitID':_0x253be2,'undoMutations':_0x4bbeb5,'redoMutations':_0x3d993e}),!0x0):!0x1;}},B={'id':'sheet.mutation.clear-dimension-outlines','type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x57b757,_0x34b06e)=>{const _0x333a19=_0x2552be;let _0x3baa0d=_0x57b757[_0x333a19(0x194)](P),_0x314209=_0x3baa0d['getOutlines'](_0x34b06e['unitId'],_0x34b06e[_0x333a19(0x1c4)]);return _0x3baa0d['setOutlines'](_0x34b06e['unitId'],_0x34b06e['subUnitId'],Ce(_0x314209,_0x34b06e)),!0x0;}},V={'id':_0x2552be(0x200),'type':_0x42c5de['COMMAND'],'handler':(_0x147d6b,_0x5b5d83)=>{const _0x216dee=_0x2552be;if(!_0x5b5d83)return!0x1;let _0x23ff78=_0x5bb827(_0x147d6b[_0x216dee(0x194)](_0x241e59),_0x5b5d83);if(!_0x23ff78)return!0x1;let {unitId:_0x6a1fc2,subUnitId:_0x47e9c2}=_0x23ff78;if(!R(_0x147d6b,_0x6a1fc2,_0x47e9c2))return!0x1;let _0x27be32={'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'axis':_0x5b5d83[_0x216dee(0x1cc)],'start':_0x5b5d83[_0x216dee(0x19f)],'end':_0x5b5d83['end']},_0xb65329=_0x147d6b[_0x216dee(0x194)](P)[_0x216dee(0x1c8)](_0x6a1fc2,_0x47e9c2)['filter'](_0x4c2f33=>w(_0x4c2f33,_0x27be32)&&_0x4c2f33[_0x216dee(0x19f)]>=_0x5b5d83['start']&&_0x4c2f33[_0x216dee(0x18a)]<=_0x5b5d83[_0x216dee(0x18a)]);if(_0xb65329[_0x216dee(0x198)]===0x0)return _0x147d6b[_0x216dee(0x194)](F)[_0x216dee(0x1a0)]({'reason':'clear-range-not-contain-outline','commandId':V['id'],'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'axis':_0x5b5d83[_0x216dee(0x1cc)]}),!0x1;let _0x5d7797=[{'id':B['id'],'params':{..._0x27be32,'removedOutlineIds':_0xb65329[_0x216dee(0x1a2)](_0x5e326f=>_0x5e326f['id'])}}],_0x2fef0b=_0xb65329[_0x216dee(0x1a2)](_0x571fa0=>({'id':I['id'],'params':{'unitId':_0x6a1fc2,'subUnitId':_0x47e9c2,'outline':_0x571fa0}}));return _0x5c69e0(_0x5d7797,_0x147d6b[_0x216dee(0x194)](_0xec1c95))[_0x216dee(0x180)]?(_0x147d6b[_0x216dee(0x194)](_0x3d7842)[_0x216dee(0x167)]({'unitID':_0x6a1fc2,'undoMutations':_0x2fef0b,'redoMutations':_0x5d7797}),!0x0):!0x1;}},ze={'id':_0x2552be(0x1a9),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x19b640,_0xe9cf2d)=>{const _0x5294eb=_0x2552be;if(!_0xe9cf2d)return!0x1;let _0xd84f79=_0x5bb827(_0x19b640['get'](_0x241e59),_0xe9cf2d);if(!_0xd84f79)return!0x1;let {unitId:_0x129088,subUnitId:_0x44e473}=_0xd84f79;if(!R(_0x19b640,_0x129088,_0x44e473))return!0x1;let _0x57e34c=_0x19b640['get'](P)[_0x5294eb(0x1c8)](_0x129088,_0x44e473)[_0x5294eb(0x162)](_0x3f499e=>_0x3f499e['id']===_0xe9cf2d['outlineId']);if(!_0x57e34c)return!0x1;let _0x5b1899=[{'id':L['id'],'params':{'unitId':_0x129088,'subUnitId':_0x44e473,'outlineId':_0x57e34c['id'],'outline':_0x57e34c}}],_0xf14de2=[{'id':I['id'],'params':{'unitId':_0x129088,'subUnitId':_0x44e473,'outline':_0x57e34c}}];return _0x5c69e0(_0x5b1899,_0x19b640[_0x5294eb(0x194)](_0xec1c95))[_0x5294eb(0x180)]?(_0x19b640[_0x5294eb(0x194)](_0x3d7842)[_0x5294eb(0x167)]({'unitID':_0x129088,'undoMutations':_0xf14de2,'redoMutations':_0x5b1899}),!0x0):!0x1;}},H={'id':'sheet.mutation.set-dimension-outline-collapsed','type':_0x42c5de[_0x2552be(0x16f)],'handler':(_0x8b13a6,_0x5a6a2e)=>{const _0x510f3=_0x2552be;let _0x4ead48=_0x8b13a6['get'](P),_0x448b1c=_0x4ead48[_0x510f3(0x1c8)](_0x5a6a2e['unitId'],_0x5a6a2e[_0x510f3(0x1c4)]),_0x2573ec=_0x448b1c[_0x510f3(0x162)](_0x1deac0=>_0x1deac0['id']===_0x5a6a2e[_0x510f3(0x1b6)]);return _0x2573ec&&_0x4ead48[_0x510f3(0x1d8)](_0x5a6a2e['unitId'],_0x5a6a2e[_0x510f3(0x1c4)],_0x448b1c[_0x510f3(0x1a2)](_0x260d50=>_0x260d50[_0x510f3(0x181)]!==_0x2573ec['unitId']||_0x260d50['subUnitId']!==_0x2573ec[_0x510f3(0x1c4)]||_0x260d50[_0x510f3(0x1cc)]!==_0x2573ec['axis']||_0x260d50['start']!==_0x2573ec[_0x510f3(0x19f)]||_0x260d50[_0x510f3(0x18a)]!==_0x2573ec[_0x510f3(0x18a)]?_0x260d50:{..._0x260d50,'collapsed':_0x5a6a2e[_0x510f3(0x193)]})),!0x0;}};function Be(_0x150999,_0x2f6de1,_0x3f2b40,_0x1ad0df){const _0x4e8e82=_0x2552be;return _0x150999===_0x4e8e82(0x1d6)?{'startRow':_0x2f6de1,'endRow':_0x3f2b40,'startColumn':0x0,'endColumn':_0x1ad0df[_0x4e8e82(0x17e)]()-0x1}:{'startRow':0x0,'endRow':_0x1ad0df[_0x4e8e82(0x19a)]()-0x1,'startColumn':_0x2f6de1,'endColumn':_0x3f2b40};}function Ve(_0x362e95){return _0x362e95==='row'?_0x3c2892['id']:_0x5d70bb['id'];}function He(_0x24045d){return _0x24045d==='row'?_0x35cb71['id']:_0x34dce4['id'];}function Ue(_0x22c288,_0x31fd9b,_0x4ba758,_0x24c0be){const _0x4c563b=_0x2552be;let _0x3eef17=_0x31fd9b?[Be(_0x22c288[_0x4c563b(0x1cc)],_0x22c288[_0x4c563b(0x19f)],_0x22c288[_0x4c563b(0x18a)],_0x4ba758)]:We(_0x22c288,_0x24c0be,_0x4ba758),_0x5d6c61=_0x31fd9b?Ve(_0x22c288[_0x4c563b(0x1cc)]):He(_0x22c288['axis']);return[{'id':H['id'],'params':{'unitId':_0x22c288[_0x4c563b(0x181)],'subUnitId':_0x22c288['subUnitId'],'outlineId':_0x22c288['id'],'outline':_0x22c288,'collapsed':_0x31fd9b}},..._0x3eef17[_0x4c563b(0x1a2)](_0x120e67=>({'id':_0x5d6c61,'params':{'unitId':_0x22c288[_0x4c563b(0x181)],'subUnitId':_0x22c288[_0x4c563b(0x1c4)],'ranges':[_0x120e67],'dimensionOutlineId':_0x22c288['id']}}))];}function We(_0x506140,_0x361739,_0x327434){const _0x5a15fc=_0x2552be;let _0x103f42=we(_0x361739[_0x5a15fc(0x1a2)](_0x529153=>Ge(_0x529153,_0x506140)?{..._0x529153,'collapsed':!0x1}:_0x529153),_0x506140[_0x5a15fc(0x181)],_0x506140['subUnitId'],_0x506140[_0x5a15fc(0x1cc)]);return Ke({'start':_0x506140['start'],'end':_0x506140[_0x5a15fc(0x18a)]},_0x103f42)[_0x5a15fc(0x1a2)](_0xefe5a7=>Be(_0x506140[_0x5a15fc(0x1cc)],_0xefe5a7[_0x5a15fc(0x19f)],_0xefe5a7[_0x5a15fc(0x18a)],_0x327434));}function Ge(_0x126872,_0x17f447){const _0xfce4c4=_0x2552be;return _0x126872[_0xfce4c4(0x181)]===_0x17f447[_0xfce4c4(0x181)]&&_0x126872[_0xfce4c4(0x1c4)]===_0x17f447[_0xfce4c4(0x1c4)]&&_0x126872[_0xfce4c4(0x1cc)]===_0x17f447[_0xfce4c4(0x1cc)]&&_0x126872[_0xfce4c4(0x19f)]===_0x17f447[_0xfce4c4(0x19f)]&&_0x126872[_0xfce4c4(0x18a)]===_0x17f447['end'];}function Ke(_0x2fad72,_0x4084f2){const _0x36b7c9=_0x2552be;let _0xfc5c88=_0x2fad72[_0x36b7c9(0x19f)],_0x516ffa=[];for(let _0x24a2d7 of _0x4084f2)if(!(_0x24a2d7[_0x36b7c9(0x18a)]<_0xfc5c88||_0x24a2d7[_0x36b7c9(0x19f)]>_0x2fad72[_0x36b7c9(0x18a)])&&(_0x24a2d7['start']>_0xfc5c88&&_0x516ffa[_0x36b7c9(0x170)]({'start':_0xfc5c88,'end':Math[_0x36b7c9(0x1d7)](_0x24a2d7[_0x36b7c9(0x19f)]-0x1,_0x2fad72[_0x36b7c9(0x18a)])}),_0xfc5c88=Math[_0x36b7c9(0x17b)](_0xfc5c88,_0x24a2d7[_0x36b7c9(0x18a)]+0x1),_0xfc5c88>_0x2fad72[_0x36b7c9(0x18a)]))break;return _0xfc5c88<=_0x2fad72[_0x36b7c9(0x18a)]&&_0x516ffa[_0x36b7c9(0x170)]({'start':_0xfc5c88,'end':_0x2fad72[_0x36b7c9(0x18a)]}),_0x516ffa;}const qe={'id':_0x2552be(0x1a3),'type':_0x42c5de[_0x2552be(0x1e5)],'handler':(_0x67a539,_0x58eba9)=>{const _0x17982b=_0x2552be;if(!_0x58eba9)return!0x1;let _0x552f38=_0x5bb827(_0x67a539['get'](_0x241e59),_0x58eba9);if(!_0x552f38)return!0x1;let {unitId:_0xe5ccd9,subUnitId:_0x1b3504,worksheet:_0x1ea647}=_0x552f38;if(!R(_0x67a539,_0xe5ccd9,_0x1b3504))return!0x1;let _0x5e36c8=_0x67a539[_0x17982b(0x194)](P)[_0x17982b(0x1c8)](_0xe5ccd9,_0x1b3504),_0x1cfd45=_0x5e36c8[_0x17982b(0x162)](_0x11c0a9=>_0x11c0a9['id']===_0x58eba9[_0x17982b(0x1b6)]);if(!_0x1cfd45||_0x1cfd45[_0x17982b(0x193)]===_0x58eba9[_0x17982b(0x193)])return!0x1;let _0x513644=Ue(_0x1cfd45,_0x58eba9[_0x17982b(0x193)],_0x1ea647,_0x5e36c8),_0x58730a=Ue(_0x1cfd45,!_0x58eba9[_0x17982b(0x193)],_0x1ea647,_0x5e36c8);return _0x5c69e0(_0x513644,_0x67a539[_0x17982b(0x194)](_0xec1c95))[_0x17982b(0x180)]?(_0x67a539[_0x17982b(0x194)](_0x3d7842)['pushUndoRedo']({'unitID':_0xe5ccd9,'undoMutations':_0x58730a,'redoMutations':_0x513644}),!0x0):!0x1;}},U={'id':_0x2552be(0x18c),'type':_0x42c5de['MUTATION'],'handler':(_0x559171,_0x323a59)=>{const _0x45af3e=_0x2552be;let _0xc91e27=_0x559171[_0x45af3e(0x194)](P),_0x534ddd=Je(_0xc91e27[_0x45af3e(0x1c8)](_0x323a59[_0x45af3e(0x181)],_0x323a59[_0x45af3e(0x1c4)]),_0x323a59);return _0xc91e27[_0x45af3e(0x1d8)](_0x323a59[_0x45af3e(0x181)],_0x323a59['subUnitId'],_0x534ddd),!0x0;}};function Je(_0x224f60,_0x242938){const _0x14e1f2=_0x2552be;switch(_0x242938[_0x14e1f2(0x201)]){case _0x14e1f2(0x1ef):return _0x242938['restoreOutlines']?Ye(_0x224f60,_0x242938):D(_0x224f60,_0x242938);case'delete':return O(_0x224f60,_0x242938);case'move':return k(_0x224f60,_0x242938);}}function Ye(_0x244f3b,_0x59ab84){const _0x16338f=_0x2552be;return[..._0x244f3b[_0x16338f(0x188)](_0x241421=>_0x241421[_0x16338f(0x181)]!==_0x59ab84[_0x16338f(0x181)]||_0x241421['subUnitId']!==_0x59ab84[_0x16338f(0x1c4)]||_0x241421['axis']!==_0x59ab84['axis']),..._0x59ab84[_0x16338f(0x1ba)]];}const W=_0x2552be(0x164);var Xe=_0x2552be(0x1dc),Ze=_0x2552be(0x1fb);const Qe={};function _0x38a2(_0x419161,_0x1a9cb8){_0x419161=_0x419161-0x158;const _0x327d3e=_0x327d();let _0x38a208=_0x327d3e[_0x419161];return _0x38a208;}function G(_0x51ab05,_0x228909){return function(_0x72c19,_0x25a0bc){_0x228909(_0x72c19,_0x25a0bc,_0x51ab05);};}function K(_0x28b277,_0x32874d,_0x1e40d6,_0x501e79){const _0x40a916=_0x2552be;var _0x213ba6=arguments[_0x40a916(0x198)],_0x20993e=_0x213ba6<0x3?_0x32874d:_0x501e79===null?_0x501e79=Object[_0x40a916(0x1f2)](_0x32874d,_0x1e40d6):_0x501e79,_0x404f41;if(typeof Reflect==_0x40a916(0x1f4)&&typeof Reflect[_0x40a916(0x1d2)]==_0x40a916(0x1c1))_0x20993e=Reflect[_0x40a916(0x1d2)](_0x28b277,_0x32874d,_0x1e40d6,_0x501e79);else{for(var _0x143a0b=_0x28b277[_0x40a916(0x198)]-0x1;_0x143a0b>=0x0;_0x143a0b--)(_0x404f41=_0x28b277[_0x143a0b])&&(_0x20993e=(_0x213ba6<0x3?_0x404f41(_0x20993e):_0x213ba6>0x3?_0x404f41(_0x32874d,_0x1e40d6,_0x20993e):_0x404f41(_0x32874d,_0x1e40d6))||_0x20993e);}return _0x213ba6>0x3&&_0x20993e&&Object[_0x40a916(0x1fc)](_0x32874d,_0x1e40d6,_0x20993e),_0x20993e;}const q={'redos':[],'undos':[],'preRedos':[],'preUndos':[]};let J=class extends _0x1f59cd{constructor(_0x46c477,_0x5413f,_0x809106,_0x44a9f8){const _0x4803b1=_0x2552be;super(),this[_0x4803b1(0x1d5)]=_0x46c477,this[_0x4803b1(0x196)]=_0x5413f,this[_0x4803b1(0x1ac)]=_0x809106,this[_0x4803b1(0x176)]=_0x44a9f8,this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x139fc4=_0x2552be;this[_0x139fc4(0x1e7)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x3620ea=>$e(_0x3620ea,(_0x4e2f91,_0x4d465c)=>this[_0x139fc4(0x1ac)][_0x139fc4(0x1c8)](_0x4e2f91,_0x4d465c),this['_getCommandScope'](_0x3620ea[_0x139fc4(0x1f5)]),_0x5bbfa6=>this[_0x139fc4(0x176)][_0x139fc4(0x1a0)](_0x5bbfa6))}));}[_0x2552be(0x1c9)](_0x460caf){const _0x4b3f5c=_0x2552be;let _0xddc4a0=_0x460caf,_0x11e16d=_0xddc4a0!=null&&_0xddc4a0[_0x4b3f5c(0x181)]?this[_0x4b3f5c(0x1d5)][_0x4b3f5c(0x17c)](_0xddc4a0['unitId'],_0x149174['UNIVER_SHEET']):this[_0x4b3f5c(0x1d5)][_0x4b3f5c(0x158)](_0x149174[_0x4b3f5c(0x1bc)]);if(!_0x11e16d)return;let _0x5d2ff6=_0xddc4a0!=null&&_0xddc4a0['subUnitId']?_0x11e16d[_0x4b3f5c(0x199)](_0xddc4a0['subUnitId']):_0x11e16d[_0x4b3f5c(0x1af)]();if(_0x5d2ff6)return{'unitId':_0x11e16d[_0x4b3f5c(0x1e0)](),'subUnitId':_0x5d2ff6[_0x4b3f5c(0x1ff)]()};}};J=K([G(0x0,_0x241e59),G(0x1,_0x259385(_0x2d3c87)),G(0x2,_0x259385(P)),G(0x3,_0x259385(F))],J);function $e(_0x405408,_0x1ef5ce,_0x4a75b8,_0x4590ac){const _0x1b62d2=_0x2552be;let _0x571aa1=tt(_0x405408,_0x4a75b8);if(!_0x571aa1)return Z();let _0x1bb55b=_0x1ef5ce(_0x571aa1[_0x1b62d2(0x181)],_0x571aa1[_0x1b62d2(0x1c4)]);if(!_0x1bb55b['some'](_0x18b16f=>_0x18b16f['axis']===_0x571aa1[_0x1b62d2(0x1cc)]))return Z();et(_0x1bb55b,_0x571aa1,_0x405408['id'],_0x4590ac);let _0x453cb0=it(_0x571aa1,_0x1bb55b);return{'redos':[{'id':U['id'],'params':_0x571aa1}],'undos':[{'id':U['id'],'params':_0x453cb0}],'preRedos':[],'preUndos':[]};}function et(_0x3b0d27,_0x51daeb,_0x28eb9b,_0x266195){const _0xc4a5d=_0x2552be;try{switch(_0x51daeb[_0xc4a5d(0x201)]){case _0xc4a5d(0x1ef):D(_0x3b0d27,_0x51daeb);break;case _0xc4a5d(0x1e6):O(_0x3b0d27,_0x51daeb);break;case _0xc4a5d(0x171):k(_0x3b0d27,_0x51daeb);}}catch(_0x597264){throw _0x266195==null||_0x266195({'reason':ye(_0x597264),'commandId':_0x28eb9b,'unitId':_0x51daeb[_0xc4a5d(0x181)],'subUnitId':_0x51daeb[_0xc4a5d(0x1c4)],'axis':_0x51daeb['axis'],'outlineId':be(_0x597264)}),new _0x6678d2(_0x597264 instanceof Error?_0x597264[_0xc4a5d(0x195)]:_0xc4a5d(0x1aa));}}function tt(_0x4f65fd,_0x44b4c6){const _0x3a70f3=_0x2552be;switch(_0x4f65fd['id']){case _0x576ba9['id']:return Y(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1d6),_0x44b4c6);case _0x540713['id']:return Y(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1b5),_0x44b4c6);case _0x19474a['id']:return nt(_0x4f65fd[_0x3a70f3(0x1f5)],'row',_0x44b4c6);case _0x289843['id']:return nt(_0x4f65fd[_0x3a70f3(0x1f5)],_0x3a70f3(0x1b5),_0x44b4c6);case _0x32509d['id']:return rt(_0x4f65fd[_0x3a70f3(0x1f5)],'row',_0x44b4c6);case _0x5c3cdd['id']:return rt(_0x4f65fd['params'],'column',_0x44b4c6);default:return null;}}function Y(_0x53cfdc,_0x2ec943,_0x334792){const _0x1645cc=_0x2552be;let _0x51c991=X(_0x53cfdc,_0x334792);if(!(_0x53cfdc!=null&&_0x53cfdc[_0x1645cc(0x18d)])||!_0x51c991)return null;let _0x18ddad=_0x2ec943==='row'?_0x53cfdc['range']['startRow']:_0x53cfdc[_0x1645cc(0x18d)][_0x1645cc(0x1d3)],_0x5ce83f=_0x2ec943===_0x1645cc(0x1d6)?_0x53cfdc['range'][_0x1645cc(0x1c2)]:_0x53cfdc[_0x1645cc(0x18d)]['endColumn'];return{..._0x51c991,'axis':_0x2ec943,'type':'insert','index':_0x18ddad,'count':_0x5ce83f-_0x18ddad+0x1};}function nt(_0x527605,_0x47950d,_0x303da3){const _0x419e17=_0x2552be;let _0x191159=X(_0x527605,_0x303da3);if(!(_0x527605!=null&&_0x527605[_0x419e17(0x18d)])||!_0x191159)return null;let _0x3bddf6=_0x47950d===_0x419e17(0x1d6)?_0x527605['range']['startRow']:_0x527605[_0x419e17(0x18d)]['startColumn'],_0x555a9e=_0x47950d===_0x419e17(0x1d6)?_0x527605[_0x419e17(0x18d)]['endRow']:_0x527605[_0x419e17(0x18d)][_0x419e17(0x173)];return{..._0x191159,'axis':_0x47950d,'type':_0x419e17(0x1e6),'start':_0x3bddf6,'end':_0x555a9e};}function rt(_0x23effb,_0x4cd064,_0x40d035){const _0x850808=_0x2552be;let _0x372da1=X(_0x23effb,_0x40d035);if(!(_0x23effb!=null&&_0x23effb[_0x850808(0x190)])||!_0x23effb[_0x850808(0x18e)]||!_0x372da1)return null;let _0x4e05eb=_0x4cd064===_0x850808(0x1d6)?_0x23effb[_0x850808(0x190)][_0x850808(0x1b1)]:_0x23effb['fromRange'][_0x850808(0x1d3)],_0x42c9bc=_0x4cd064==='row'?_0x23effb[_0x850808(0x190)]['endRow']:_0x23effb[_0x850808(0x190)]['endColumn'],_0x323287=_0x4cd064==='row'?_0x23effb[_0x850808(0x18e)][_0x850808(0x1b1)]:_0x23effb[_0x850808(0x18e)]['startColumn'];return{..._0x372da1,'axis':_0x4cd064,'type':_0x850808(0x171),'sourceStart':_0x4e05eb,'sourceEnd':_0x42c9bc,'destinationIndex':_0x323287};}function it(_0x1dc0e2,_0x4599d6){const _0x19ec84=_0x2552be;switch(_0x1dc0e2[_0x19ec84(0x201)]){case _0x19ec84(0x1ef):return{'unitId':_0x1dc0e2[_0x19ec84(0x181)],'subUnitId':_0x1dc0e2['subUnitId'],'axis':_0x1dc0e2[_0x19ec84(0x1cc)],'type':_0x19ec84(0x1e6),'start':_0x1dc0e2[_0x19ec84(0x1d1)],'end':_0x1dc0e2[_0x19ec84(0x1d1)]+_0x1dc0e2[_0x19ec84(0x1dd)]-0x1};case'delete':return{'unitId':_0x1dc0e2['unitId'],'subUnitId':_0x1dc0e2[_0x19ec84(0x1c4)],'axis':_0x1dc0e2[_0x19ec84(0x1cc)],'type':'insert','index':_0x1dc0e2[_0x19ec84(0x19f)],'count':_0x1dc0e2['end']-_0x1dc0e2[_0x19ec84(0x19f)]+0x1,'restoreOutlines':_0x4599d6[_0x19ec84(0x188)](_0x38e353=>_0x38e353[_0x19ec84(0x181)]===_0x1dc0e2[_0x19ec84(0x181)]&&_0x38e353[_0x19ec84(0x1c4)]===_0x1dc0e2['subUnitId']&&_0x38e353[_0x19ec84(0x1cc)]===_0x1dc0e2[_0x19ec84(0x1cc)])};case _0x19ec84(0x171):return at(_0x1dc0e2);}}function at(_0x3f2c43){const _0x2be49b=_0x2552be;let _0x1cae23=_0x3f2c43[_0x2be49b(0x189)]-_0x3f2c43[_0x2be49b(0x178)]+0x1;return _0x3f2c43[_0x2be49b(0x1ed)]>=_0x3f2c43['sourceStart']&&_0x3f2c43[_0x2be49b(0x1ed)]<=_0x3f2c43[_0x2be49b(0x189)]+0x1?{..._0x3f2c43}:_0x3f2c43[_0x2be49b(0x1ed)]>_0x3f2c43[_0x2be49b(0x189)]+0x1?{..._0x3f2c43,'sourceStart':_0x3f2c43['destinationIndex']-_0x1cae23,'sourceEnd':_0x3f2c43[_0x2be49b(0x1ed)]-0x1,'destinationIndex':_0x3f2c43[_0x2be49b(0x178)]}:{..._0x3f2c43,'sourceStart':_0x3f2c43[_0x2be49b(0x1ed)],'sourceEnd':_0x3f2c43['destinationIndex']+_0x1cae23-0x1,'destinationIndex':_0x3f2c43['sourceEnd']+0x1};}function X(_0x117a10,_0x59e733){const _0x5f839=_0x2552be;let _0x403ef0=(_0x117a10==null?void 0x0:_0x117a10[_0x5f839(0x181)])??(_0x59e733==null?void 0x0:_0x59e733[_0x5f839(0x181)]),_0x2cee26=(_0x117a10==null?void 0x0:_0x117a10[_0x5f839(0x1c4)])??(_0x59e733==null?void 0x0:_0x59e733[_0x5f839(0x1c4)]);return _0x403ef0&&_0x2cee26?{'unitId':_0x403ef0,'subUnitId':_0x2cee26}:null;}function Z(){const _0x50bd84=_0x2552be;return{'redos':[...q[_0x50bd84(0x15e)]],'undos':[...q[_0x50bd84(0x183)]],'preRedos':[...q[_0x50bd84(0x16b)]??[]],'preUndos':[...q[_0x50bd84(0x1a4)]??[]]};}let Q=class extends _0x1f59cd{constructor(_0x260ae3,_0x141566){const _0x551fd1=_0x2552be;super(),this[_0x551fd1(0x17f)]=_0x260ae3,this[_0x551fd1(0x1ac)]=_0x141566,this['_initResource']();}[_0x2552be(0x186)](){const _0x2e0d35=_0x2552be;this['disposeWithMe'](this['_resourceManagerService'][_0x2e0d35(0x184)]({'pluginName':W,'businesses':[_0x149174[_0x2e0d35(0x1bc)]],'toJson':_0x36216e=>JSON[_0x2e0d35(0x1a8)](this[_0x2e0d35(0x1ac)][_0x2e0d35(0x1c5)](_0x36216e)),'parseJson':_0x3baf8b=>JSON[_0x2e0d35(0x1eb)](_0x3baf8b),'onLoad':(_0x2471d6,_0x4e666e)=>this[_0x2e0d35(0x1ac)][_0x2e0d35(0x1db)](_0x2471d6,_0x4e666e),'onUnLoad':_0x425c43=>this[_0x2e0d35(0x1ac)][_0x2e0d35(0x15f)](_0x425c43)}));}};Q=K([G(0x0,_0x12fef9),G(0x1,_0x259385(P))],Q);let $=class extends _0x14323e{constructor(_0x13e0cb=Qe,_0x1f57eb,_0x60d41,_0x28ff81){const _0x27a1f3=_0x2552be;super(),this[_0x27a1f3(0x15c)]=_0x13e0cb,this['_injector']=_0x1f57eb,this[_0x27a1f3(0x1b4)]=_0x60d41,this[_0x27a1f3(0x1ad)]=_0x28ff81;let {..._0x31e9f8}=_0x2da987({},Qe,this[_0x27a1f3(0x15c)]);this[_0x27a1f3(0x1ad)][_0x27a1f3(0x172)](_0x27a1f3(0x177),_0x31e9f8);}[_0x2552be(0x1f1)](){const _0x53cfa5=_0x2552be;this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([P]),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([F]),this['_injector'][_0x53cfa5(0x1fd)]([Q]),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x1fd)]([J]),this[_0x53cfa5(0x1f8)](),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x194)](P),this[_0x53cfa5(0x1ee)]['get'](F),this[_0x53cfa5(0x1ee)][_0x53cfa5(0x194)](Q),this[_0x53cfa5(0x1ee)]['get'](J);}['_initRegisterCommand'](){[z,ze,qe,V]['forEach'](_0x211e9b=>{const _0x254b04=_0x38a2;this[_0x254b04(0x1e7)](this['_commandService'][_0x254b04(0x174)](_0x211e9b));}),[I,L,H,B,U]['forEach'](_0x1a6f0c=>{const _0x8d7eb9=_0x38a2;this[_0x8d7eb9(0x1e7)](this[_0x8d7eb9(0x1b4)]['registerCommand'](_0x1a6f0c));});}};N($,_0x2552be(0x1cd),W),N($,_0x2552be(0x166),Xe),N($,_0x2552be(0x1a7),Ze),N($,_0x2552be(0x201),_0x149174['UNIVER_SHEET']),$=K([_0x24a179(_0x41b4af,_0x4eb0bf),G(0x1,_0x259385(_0x2948c4)),G(0x2,_0xec1c95),G(0x3,_0x88f4c1)],$);export{z as AddDimensionOutlineCommand,I as AddDimensionOutlineMutation,V as ClearDimensionOutlinesCommand,B as ClearDimensionOutlinesMutation,_e as DimensionOutlineAxis,ve as DimensionOutlineErrorReason,ze as RemoveDimensionOutlineCommand,L as RemoveDimensionOutlineMutation,W as SHEET_OUTLINE_PLUGIN,qe as SetDimensionOutlineCollapsedCommand,H as SetDimensionOutlineCollapsedMutation,F as SheetsOutlineErrorService,P as SheetsOutlineModel,U as TransformDimensionOutlinesMutation,$ as UniverSheetsOutlinePlugin,T as buildDimensionOutlineTree,E as canAddDimensionOutline,Ie as getDimensionOutlineViewPermission$,R as hasDimensionOutlineViewPermission,O as transformOutlinesByDelete,D as transformOutlinesByInsert,k as transformOutlinesByMove};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5882(_0x597d59,_0x2503b8){_0x597d59=_0x597d59-0xcd;var _0x1e9591=_0x1e95();var _0x5882a8=_0x1e9591[_0x597d59];return _0x5882a8;}(function(_0x245f50,_0x5f233d){var _0x13aa12=_0x5882,_0x248819=_0x245f50();while(!![]){try{var _0x1065b1=-parseInt(_0x13aa12(0xdc))/0x1+-parseInt(_0x13aa12(0xd0))/0x2+parseInt(_0x13aa12(0xec))/0x3+-parseInt(_0x13aa12(0xe8))/0x4*(-parseInt(_0x13aa12(0xe3))/0x5)+parseInt(_0x13aa12(0xde))/0x6+-parseInt(_0x13aa12(0xf2))/0x7+parseInt(_0x13aa12(0xdd))/0x8;if(_0x1065b1===_0x5f233d)break;else _0x248819['push'](_0x248819['shift']());}catch(_0x800ca1){_0x248819['push'](_0x248819['shift']());}}}(_0x1e95,0x3b248),function(_0x1c1833,_0x4c8568){var _0x37c209=_0x5882;typeof exports==_0x37c209(0xd2)&&typeof module<'u'?_0x4c8568(require('@univerjs-pro/sheets-outline'),require('@univerjs/core/facade'),require('@univerjs/sheets/facade')):typeof define==_0x37c209(0xe5)&&define['amd']?define([_0x37c209(0xe1),_0x37c209(0xe6),_0x37c209(0xd4)],_0x4c8568):(_0x1c1833=typeof globalThis<'u'?globalThis:_0x1c1833||self,_0x4c8568(_0x1c1833[_0x37c209(0xda)],_0x1c1833['UniverCoreFacade'],_0x1c1833[_0x37c209(0xd1)]));}(this,function(_0x223a88,_0x20957b,_0x4f8992){var _0x1d1920=_0x5882,_0x5d25de=class extends _0x20957b[_0x1d1920(0xcd)]{get[_0x1d1920(0xd6)](){var _0x16bb0d=_0x1d1920;return _0x223a88[_0x16bb0d(0xd6)];}get['DimensionOutlineErrorReason'](){return _0x223a88['DimensionOutlineErrorReason'];}};_0x20957b[_0x1d1920(0xcd)][_0x1d1920(0xe0)](_0x5d25de);var _0x273640=class extends _0x4f8992[_0x1d1920(0xcf)]{[_0x1d1920(0xf3)](_0x47b425,_0x3df0ea){var _0x409c53=_0x1d1920;return this[_0x409c53(0xe7)](_0x223a88['DimensionOutlineAxis'][_0x409c53(0xed)],_0x47b425,_0x3df0ea);}[_0x1d1920(0xce)](_0x4fd0ed,_0x2d27b8){return this['_addDimensionOutline'](_0x223a88['DimensionOutlineAxis']['COLUMN'],_0x4fd0ed,_0x2d27b8);}[_0x1d1920(0xea)](_0x41c6de){var _0x357b19=_0x1d1920;return this[_0x357b19(0xd9)][_0x357b19(0xdf)](_0x223a88[_0x357b19(0xe9)]['id'],{'unitId':this['_workbook'][_0x357b19(0xf1)](),'subUnitId':this[_0x357b19(0xdb)]['getSheetId'](),'outlineId':_0x41c6de}),this;}[_0x1d1920(0xee)](_0x4d765d,_0x292673){var _0x24b8fb=_0x1d1920;return this[_0x24b8fb(0xd9)][_0x24b8fb(0xdf)](_0x223a88[_0x24b8fb(0xe2)]['id'],{'unitId':this[_0x24b8fb(0xd5)][_0x24b8fb(0xf1)](),'subUnitId':this['_worksheet'][_0x24b8fb(0xd7)](),'outlineId':_0x4d765d,'collapsed':_0x292673}),this;}['clearDimensionOutlines'](_0x8ae71c,_0x3eb7ee,_0x2f5626){var _0x9a0aa7=_0x1d1920;return this['_commandService'][_0x9a0aa7(0xdf)](_0x223a88[_0x9a0aa7(0xeb)]['id'],{'unitId':this['_workbook'][_0x9a0aa7(0xf1)](),'subUnitId':this[_0x9a0aa7(0xdb)][_0x9a0aa7(0xd7)](),'axis':_0x8ae71c,'start':_0x3eb7ee,'end':_0x2f5626}),this;}[_0x1d1920(0xf4)](_0x5f595f){var _0x49f555=_0x1d1920;let _0x3f7aef=this[_0x49f555(0xef)]['get'](_0x223a88[_0x49f555(0xe4)])['getOutlines'](this[_0x49f555(0xd5)][_0x49f555(0xf1)](),this[_0x49f555(0xdb)]['getSheetId']());return _0x5f595f?_0x3f7aef[_0x49f555(0xd8)](_0x416754=>_0x416754[_0x49f555(0xf0)]===_0x5f595f):_0x3f7aef;}[_0x1d1920(0xe7)](_0x5d7cd7,_0x5bbb95,_0x8ec491){var _0x501f14=_0x1d1920;return this[_0x501f14(0xd9)][_0x501f14(0xdf)](_0x223a88[_0x501f14(0xd3)]['id'],{'unitId':this[_0x501f14(0xd5)][_0x501f14(0xf1)](),'subUnitId':this[_0x501f14(0xdb)]['getSheetId'](),'axis':_0x5d7cd7,'start':_0x5bbb95,'end':_0x5bbb95+_0x8ec491-0x1}),this;}};_0x4f8992[_0x1d1920(0xcf)]['extend'](_0x273640);}));function _0x1e95(){var _0x38a015=['FWorksheet','749682oIsBGq','UniverSheetsFacade','object','AddDimensionOutlineCommand','@univerjs/sheets/facade','_workbook','DimensionOutlineAxis','getSheetId','filter','_commandService','UniverProSheetsOutline','_worksheet','290390KXGIAD','4722192zecScB','138102xdYirE','syncExecuteCommand','extend','@univerjs-pro/sheets-outline','SetDimensionOutlineCollapsedCommand','9490itIKDe','SheetsOutlineModel','function','@univerjs/core/facade','_addDimensionOutline','444BbekOa','RemoveDimensionOutlineCommand','removeDimensionOutline','ClearDimensionOutlinesCommand','335952WMEMCh','ROW','setDimensionOutlineCollapsed','_injector','axis','getUnitId','199318FpMhZf','addRowOutline','getDimensionOutlines','FEnum','addColumnOutline'];_0x1e95=function(){return _0x38a015;};return _0x1e95();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x16f8(_0x20014b,_0x21024a){_0x20014b=_0x20014b-0x137;const _0x1d7fb4=_0x1d7f();let _0x16f8d6=_0x1d7fb4[_0x20014b];return _0x16f8d6;}(function(_0x4827f3,_0x58a89d){const _0x3385b7=_0x16f8,_0x2dcda5=_0x4827f3();while(!![]){try{const _0x2e8249=parseInt(_0x3385b7(0x180))/0x1*(-parseInt(_0x3385b7(0x179))/0x2)+-parseInt(_0x3385b7(0x1f0))/0x3*(parseInt(_0x3385b7(0x148))/0x4)+parseInt(_0x3385b7(0x186))/0x5*(parseInt(_0x3385b7(0x1fe))/0x6)+parseInt(_0x3385b7(0x1ae))/0x7+parseInt(_0x3385b7(0x1bc))/0x8+-parseInt(_0x3385b7(0x181))/0x9+parseInt(_0x3385b7(0x184))/0xa*(-parseInt(_0x3385b7(0x1d7))/0xb);if(_0x2e8249===_0x58a89d)break;else _0x2dcda5['push'](_0x2dcda5['shift']());}catch(_0x56596d){_0x2dcda5['push'](_0x2dcda5['shift']());}}}(_0x1d7f,0x2fddf),function(_0x2107eb,_0x488c95){const _0x298872=_0x16f8;typeof exports==_0x298872(0x14e)&&typeof module<'u'?_0x488c95(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define==_0x298872(0x174)&&define[_0x298872(0x137)]?define([_0x298872(0x1d2),_0x298872(0x20c),_0x298872(0x1ab),'rxjs',_0x298872(0x1fb),_0x298872(0x200)],_0x488c95):(_0x2107eb=typeof globalThis<'u'?globalThis:_0x2107eb||self,_0x488c95(_0x2107eb[_0x298872(0x1a8)]={},_0x2107eb[_0x298872(0x161)],_0x2107eb[_0x298872(0x1f2)],_0x2107eb[_0x298872(0x18c)],_0x2107eb[_0x298872(0x18c)][_0x298872(0x1c5)],_0x2107eb['UniverProLicense']));}(this,function(_0x4a67dc,_0x473743,_0x11c297,_0x36fbab,_0x4dc8fd,_0x2bffaa){const _0x24a4c3=_0x16f8;Object[_0x24a4c3(0x138)](_0x4a67dc,Symbol[_0x24a4c3(0x198)],{'value':_0x24a4c3(0x207)});let _0xa95a23=function(_0x28c37f){const _0x4847dc=_0x24a4c3;return _0x28c37f['ROW']=_0x4847dc(0x17d),_0x28c37f[_0x4847dc(0x1ed)]='column',_0x28c37f;}({}),_0x2c2309=function(_0x15f9a1){const _0x401efc=_0x24a4c3;return _0x15f9a1[_0x401efc(0x15f)]=_0x401efc(0x19d),_0x15f9a1[_0x401efc(0x1f3)]=_0x401efc(0x1e5),_0x15f9a1[_0x401efc(0x158)]=_0x401efc(0x16d),_0x15f9a1[_0x401efc(0x1d4)]=_0x401efc(0x1cc),_0x15f9a1['MOVE_SPLITS_OUTLINE']='move-splits-outline',_0x15f9a1[_0x401efc(0x19c)]='clear-range-not-contain-outline',_0x15f9a1[_0x401efc(0x18e)]=_0x401efc(0x16b),_0x15f9a1;}({});var _0x3aa0a1=class extends Error{constructor(_0x5c91ec,_0x13d429,_0x49a3fd){const _0x17c2db=_0x24a4c3;super(_0x13d429),this['reason']=_0x5c91ec,this[_0x17c2db(0x1fa)]=_0x49a3fd,this['name']='DimensionOutlineError';}};function _0x5f4151(_0xd2c546){const _0x5e40ae=_0x24a4c3;return _0xd2c546 instanceof _0x3aa0a1?_0xd2c546[_0x5e40ae(0x1a1)]:_0xd2c546 instanceof Error?_0xd2c546[_0x5e40ae(0x1b9)][_0x5e40ae(0x1b6)](_0x5e40ae(0x210))?_0x5e40ae(0x1b4):_0xd2c546[_0x5e40ae(0x1b9)][_0x5e40ae(0x1b6)]('depth')?_0x5e40ae(0x1cc):_0xd2c546[_0x5e40ae(0x1b9)][_0x5e40ae(0x1b6)](_0x5e40ae(0x1a9))?_0x5e40ae(0x16d):_0xd2c546[_0x5e40ae(0x1b9)][_0x5e40ae(0x1b6)](_0x5e40ae(0x1be))?_0x5e40ae(0x19d):'unknown':_0x5e40ae(0x16b);}function _0x455c87(_0x1c9a3f){const _0x17b3d7=_0x24a4c3;return _0x1c9a3f instanceof _0x3aa0a1?_0x1c9a3f[_0x17b3d7(0x1fa)]:void 0x0;}let _0x2756dc=0x2**0x35-0x1;function _0xa36c76(_0x4af6ad,_0x25eb8e){const _0x246257=_0x24a4c3;return _0x4af6ad['unitId']===_0x25eb8e[_0x246257(0x178)]&&_0x4af6ad[_0x246257(0x19f)]===_0x25eb8e[_0x246257(0x19f)]&&_0x4af6ad[_0x246257(0x1ba)]===_0x25eb8e[_0x246257(0x1ba)];}function _0x3b963d(_0x668dbc,_0x3da23a={}){const _0x4069f9=_0x24a4c3;let _0x112d63=_0x3da23a['maxDepth']??0x8,_0x5034bf=new Map();for(let _0xdd1d7a of _0x668dbc){let _0x3ccb86=_0xdd1d7a[_0x4069f9(0x178)]+':'+_0xdd1d7a[_0x4069f9(0x19f)]+':'+_0xdd1d7a[_0x4069f9(0x1ba)],_0x2ea20e=_0x5034bf[_0x4069f9(0x1de)](_0x3ccb86);_0x2ea20e?_0x2ea20e[_0x4069f9(0x1ff)](_0xdd1d7a):_0x5034bf['set'](_0x3ccb86,[_0xdd1d7a]);}let _0x340e35=[];for(let _0x487ef5 of _0x5034bf['values']()){let _0x53369a=[..._0x487ef5][_0x4069f9(0x1f4)](_0x21d8a0),_0x24f7f2=[];for(let _0x1c18f1 of _0x53369a){for(_0x4ea32a(_0x1c18f1);_0x24f7f2['length']>0x0&&_0x1c18f1[_0x4069f9(0x171)]>_0x24f7f2[_0x24f7f2['length']-0x1][_0x4069f9(0x196)];)_0x24f7f2[_0x4069f9(0x165)]();let _0x4d4d4a=_0x24f7f2[_0x24f7f2[_0x4069f9(0x206)]-0x1];if(_0x4d4d4a&&_0x1c18f1[_0x4069f9(0x196)]>_0x4d4d4a[_0x4069f9(0x196)])throw new _0x3aa0a1(_0x4069f9(0x16d),'Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed',_0x1c18f1['id']);let _0x54b69f=_0x4d4d4a?_0x4d4d4a[_0x4069f9(0x1af)]+0x1:0x1;if(_0x54b69f>_0x112d63)throw new _0x3aa0a1(_0x4069f9(0x1cc),_0x4069f9(0x1fd)+_0x112d63,_0x1c18f1['id']);let _0x3f0ce8={..._0x1c18f1,'depth':_0x54b69f,'parentId':_0x4d4d4a==null?void 0x0:_0x4d4d4a['id'],'anchor':_0x1c18f1[_0x4069f9(0x196)],'children':[]};_0x4d4d4a?_0x4d4d4a['children'][_0x4069f9(0x1ff)](_0x3f0ce8):_0x340e35[_0x4069f9(0x1ff)](_0x3f0ce8),_0x24f7f2[_0x4069f9(0x1ff)](_0x3f0ce8);}}return _0x340e35;}function _0xd1463c(_0x472798,_0x2c4051,_0xe761f0={}){const _0xd6cbec=_0x24a4c3;if(_0x2c4051['start']<0x0||_0x2c4051['start']>_0x2c4051[_0xd6cbec(0x196)])return{'valid':!0x1,'reason':'invalid-range'};if(_0xe761f0['maxIndex']!=null&&_0x2c4051[_0xd6cbec(0x196)]>=_0xe761f0[_0xd6cbec(0x139)])return{'valid':!0x1,'reason':_0xd6cbec(0x1e5)};let _0xd52240=_0x472798['filter'](_0x4bf202=>_0xa36c76(_0x4bf202,_0x2c4051));for(let _0x32eb89 of _0xd52240)if(_0x14b35f(_0x32eb89,_0x2c4051))return{'valid':!0x1,'reason':_0xd6cbec(0x16d)};try{_0x3b963d([..._0x472798,_0x2c4051],_0xe761f0);}catch(_0x5b9b62){let _0x104347=_0x5f4151(_0x5b9b62);return _0x104347===_0xd6cbec(0x1cc)?{'valid':!0x1,'reason':_0xd6cbec(0x1cc)}:_0x104347==='invalid-range'?{'valid':!0x1,'reason':_0xd6cbec(0x19d)}:{'valid':!0x1,'reason':_0xd6cbec(0x16d)};}return{'valid':!0x0};}function _0x204106(_0x2dd061,_0x2421db,_0x165a93={}){const _0x14771b=_0x24a4c3;let _0x4f0e7a=_0xd1463c(_0x2dd061,_0x2421db,_0x165a93);if(!_0x4f0e7a[_0x14771b(0x1d0)])throw Error(_0x4f0e7a[_0x14771b(0x1a1)]??_0x14771b(0x1ec));return[..._0x2dd061,_0x2421db];}function _0x1af917(_0x4c94eb,_0x54249f){const _0x249557=_0x24a4c3;let _0x2e815d=_0x54249f[_0x249557(0x171)],_0x4793a3=_0x54249f[_0x249557(0x196)],_0x1e66be=[],_0x4c0933=!0x0;for(;_0x4c0933;){_0x4c0933=!0x1;for(let _0x160a8d of _0x4c94eb)!_0x1e66be[_0x249557(0x1b6)](_0x160a8d)&&_0xa36c76(_0x160a8d,_0x54249f)&&_0x5cdc31(_0x160a8d[_0x249557(0x171)],_0x160a8d[_0x249557(0x196)],_0x2e815d,_0x4793a3)&&(_0x1e66be[_0x249557(0x1ff)](_0x160a8d),_0x2e815d=Math[_0x249557(0x1c7)](_0x2e815d,_0x160a8d[_0x249557(0x171)]),_0x4793a3=Math[_0x249557(0x1c8)](_0x4793a3,_0x160a8d[_0x249557(0x196)]),_0x4c0933=!0x0);}if(_0x1e66be[_0x249557(0x206)]===0x0)return null;let [_0x1b9e9c]=[..._0x1e66be][_0x249557(0x1f4)](_0x21d8a0);return{'mergedOutline':{..._0x1b9e9c,'start':_0x2e815d,'end':_0x4793a3},'mergedOutlines':_0x1e66be};}function _0x1f5071(_0x3b342a,_0x149d65){const _0x57bcd7=_0x24a4c3;return _0x3b342a[_0x57bcd7(0x1db)](_0x2ac13d=>!_0xa36c76(_0x2ac13d,_0x149d65)||!(_0x2ac13d[_0x57bcd7(0x171)]>=_0x149d65[_0x57bcd7(0x171)]&&_0x2ac13d[_0x57bcd7(0x196)]<=_0x149d65[_0x57bcd7(0x196)]));}function _0x19aff9(_0x2d4d53,_0x478626,_0x14b152,_0x4bf199){const _0x994703=_0x24a4c3;return _0x2c2c5b(_0x2d4d53['filter'](_0x3ea996=>_0x3ea996[_0x994703(0x178)]===_0x478626&&_0x3ea996['subUnitId']===_0x14b152&&_0x3ea996[_0x994703(0x1ba)]===_0x4bf199&&_0x3ea996['collapsed'])[_0x994703(0x1f9)](_0x4e4b89=>({'start':_0x4e4b89[_0x994703(0x171)],'end':_0x4e4b89[_0x994703(0x196)]})));}function _0x2c2c5b(_0x403f24){const _0x464659=_0x24a4c3;if(_0x403f24[_0x464659(0x206)]===0x0)return[];let _0x4fcd3f=[..._0x403f24][_0x464659(0x1f4)]((_0x457fd8,_0x45804e)=>_0x457fd8[_0x464659(0x171)]-_0x45804e[_0x464659(0x171)]||_0x457fd8[_0x464659(0x196)]-_0x45804e['end']),_0x52bc49=[];for(let _0x353e72 of _0x4fcd3f){let _0x32acf4=_0x52bc49[_0x52bc49[_0x464659(0x206)]-0x1];!_0x32acf4||_0x353e72[_0x464659(0x171)]>_0x32acf4[_0x464659(0x196)]+0x1?_0x52bc49['push']({..._0x353e72}):_0x32acf4[_0x464659(0x196)]=Math[_0x464659(0x1c8)](_0x32acf4[_0x464659(0x196)],_0x353e72[_0x464659(0x196)]);}return _0x52bc49;}function _0x4b0be0(_0x4ac644,_0x2fb330){const _0x49e5fe=_0x24a4c3;return _0x2fb330['count']<=0x0?_0x4ac644:_0x2e3c63(_0x4ac644[_0x49e5fe(0x1f9)](_0x17a7ba=>_0xa36c76(_0x17a7ba,_0x2fb330)?_0x2fb330[_0x49e5fe(0x1cd)]<=_0x17a7ba[_0x49e5fe(0x171)]?{..._0x17a7ba,'start':_0x17a7ba[_0x49e5fe(0x171)]+_0x2fb330[_0x49e5fe(0x175)],'end':_0x17a7ba[_0x49e5fe(0x196)]+_0x2fb330[_0x49e5fe(0x175)]}:_0x17a7ba['start']<_0x2fb330[_0x49e5fe(0x1cd)]&&_0x2fb330[_0x49e5fe(0x1cd)]<=_0x17a7ba[_0x49e5fe(0x196)]?{..._0x17a7ba,'end':_0x17a7ba[_0x49e5fe(0x196)]+_0x2fb330[_0x49e5fe(0x175)]}:_0x17a7ba:_0x17a7ba));}function _0x1482f1(_0x22a3cc,_0x47601e){const _0x3ccdc2=_0x24a4c3;if(_0x47601e['start']>_0x47601e[_0x3ccdc2(0x196)])return _0x22a3cc;let _0x5e6f29=_0x47601e[_0x3ccdc2(0x196)]-_0x47601e[_0x3ccdc2(0x171)]+0x1,_0x33762d=[];for(let _0x2498d1 of _0x22a3cc){if(!_0xa36c76(_0x2498d1,_0x47601e)){_0x33762d[_0x3ccdc2(0x1ff)](_0x2498d1);continue;}if(_0x2498d1[_0x3ccdc2(0x196)]<_0x47601e['start']){_0x33762d[_0x3ccdc2(0x1ff)](_0x2498d1);continue;}if(_0x2498d1[_0x3ccdc2(0x171)]>_0x47601e['end']){_0x33762d['push']({..._0x2498d1,'start':_0x2498d1[_0x3ccdc2(0x171)]-_0x5e6f29,'end':_0x2498d1[_0x3ccdc2(0x196)]-_0x5e6f29});continue;}let _0x63cbaa=Math['max'](_0x2498d1[_0x3ccdc2(0x171)],_0x47601e['start']),_0x2a8c60=Math[_0x3ccdc2(0x1c7)](_0x2498d1[_0x3ccdc2(0x196)],_0x47601e[_0x3ccdc2(0x196)]),_0x3b09be=Math[_0x3ccdc2(0x1c8)](0x0,_0x2a8c60-_0x63cbaa+0x1),_0x2568bb=_0x2498d1[_0x3ccdc2(0x196)]-_0x2498d1[_0x3ccdc2(0x171)]+0x1-_0x3b09be;if(_0x2568bb<=0x0)continue;let _0xca6ab6=_0x2498d1['start']<_0x47601e[_0x3ccdc2(0x171)]?_0x2498d1['start']:_0x47601e[_0x3ccdc2(0x171)];_0x33762d[_0x3ccdc2(0x1ff)]({..._0x2498d1,'start':_0xca6ab6,'end':_0xca6ab6+_0x2568bb-0x1});}return _0x2e3c63(_0x33762d);}function _0x182936(_0x29ee92,_0x35d476){const _0x4a7b37=_0x24a4c3;if(_0x35d476['sourceStart']>_0x35d476[_0x4a7b37(0x1ca)])return _0x29ee92;let _0xc7ff7c=[];for(let _0xace3b6 of _0x29ee92){if(!_0xa36c76(_0xace3b6,_0x35d476)){_0xc7ff7c[_0x4a7b37(0x1ff)](_0xace3b6);continue;}let _0x2c5d46=_0x305b9d(_0xace3b6,_0x35d476);if(_0x2c5d46[_0x4a7b37(0x192)]===_0x4a7b37(0x1dc))throw new _0x3aa0a1(_0x4a7b37(0x1b4),_0x4a7b37(0x205)+_0xace3b6['id'],_0xace3b6['id']);_0xc7ff7c[_0x4a7b37(0x1ff)](_0x2c5d46[_0x4a7b37(0x1eb)]);}return _0x2e3c63(_0xc7ff7c);}function _0x305b9d(_0x82039b,_0xeb48d7){const _0x5b2a6f=_0x24a4c3;let _0x3693b3=_0x3e84ab(_0xeb48d7[_0x5b2a6f(0x141)],_0xeb48d7['sourceEnd']+0x1,_0xeb48d7['destinationIndex']),_0x4aa56d=[],_0x596076={'start':_0x82039b['start'],'end':_0x82039b[_0x5b2a6f(0x196)]+0x1};for(let _0x22b5f7 of _0x3693b3){let _0x3b535f=_0x2ab2a0(_0x596076,_0x22b5f7[_0x5b2a6f(0x1be)]);_0x3b535f&&_0x4aa56d['push']({'start':_0x3b535f[_0x5b2a6f(0x171)]+_0x22b5f7[_0x5b2a6f(0x16a)],'end':_0x3b535f[_0x5b2a6f(0x196)]+_0x22b5f7['offset']});}let _0x3324a8=_0xd4e892(_0x4aa56d);return _0x3324a8[_0x5b2a6f(0x206)]===0x1?{'type':'ok','outline':{..._0x82039b,'start':_0x3324a8[0x0]['start'],'end':_0x3324a8[0x0]['end']-0x1}}:{'type':'split','outline':_0x82039b,'ranges':_0x3324a8};}function _0x3e84ab(_0x3814b7,_0x1e31c2,_0x3eee50){let _0x140c58=_0x1e31c2-_0x3814b7;if(_0x140c58<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x3eee50>=_0x3814b7&&_0x3eee50<=_0x1e31c2?[{'range':{'start':0x0,'end':_0x2756dc},'offset':0x0}]:_0x3eee50<_0x3814b7?[{'range':{'start':0x0,'end':_0x3eee50},'offset':0x0},{'range':{'start':_0x3eee50,'end':_0x3814b7},'offset':_0x140c58},{'range':{'start':_0x3814b7,'end':_0x1e31c2},'offset':_0x3eee50-_0x3814b7},{'range':{'start':_0x1e31c2,'end':_0x2756dc},'offset':0x0}]:[{'range':{'start':0x0,'end':_0x3814b7},'offset':0x0},{'range':{'start':_0x3814b7,'end':_0x1e31c2},'offset':_0x3eee50-_0x1e31c2},{'range':{'start':_0x1e31c2,'end':_0x3eee50},'offset':-_0x140c58},{'range':{'start':_0x3eee50,'end':_0x2756dc},'offset':0x0}];}function _0x2ab2a0(_0x2e823d,_0xdce7eb){const _0x627f77=_0x24a4c3;let _0x13fc65=Math[_0x627f77(0x1c8)](_0x2e823d[_0x627f77(0x171)],_0xdce7eb['start']),_0x205cf8=Math[_0x627f77(0x1c7)](_0x2e823d[_0x627f77(0x196)],_0xdce7eb[_0x627f77(0x196)]);return _0x13fc65>=_0x205cf8?null:{'start':_0x13fc65,'end':_0x205cf8};}function _0xd4e892(_0x539886){const _0x395c9f=_0x24a4c3;if(_0x539886[_0x395c9f(0x206)]===0x0)return[];let _0x2adf68=[..._0x539886][_0x395c9f(0x1f4)]((_0xcdd9e0,_0x3acdc3)=>_0xcdd9e0[_0x395c9f(0x171)]-_0x3acdc3[_0x395c9f(0x171)]||_0xcdd9e0[_0x395c9f(0x196)]-_0x3acdc3[_0x395c9f(0x196)]),_0x4fa9e9=[];for(let _0x8a0769 of _0x2adf68){let _0x2be79e=_0x4fa9e9[_0x4fa9e9[_0x395c9f(0x206)]-0x1];!_0x2be79e||_0x8a0769[_0x395c9f(0x171)]>_0x2be79e[_0x395c9f(0x196)]?_0x4fa9e9[_0x395c9f(0x1ff)]({..._0x8a0769}):_0x2be79e[_0x395c9f(0x196)]=Math[_0x395c9f(0x1c8)](_0x2be79e[_0x395c9f(0x196)],_0x8a0769['end']);}return _0x4fa9e9;}function _0x5cdc31(_0x56e07a,_0x53cdb3,_0x2386e0,_0x149b95){return _0x53cdb3+0x1===_0x2386e0||_0x149b95+0x1===_0x56e07a;}function _0x2e3c63(_0x1f84f9){let _0x466d7f=_0x502aeb(_0x1f84f9);return _0x3b963d(_0x466d7f),_0x466d7f;}function _0x502aeb(_0x2dcfaf){const _0x6c1252=_0x24a4c3;let _0x22ea74=new Map();for(let _0x56c773 of _0x2dcfaf){let _0xd3e4f=[_0x56c773[_0x6c1252(0x178)],_0x56c773[_0x6c1252(0x19f)],_0x56c773[_0x6c1252(0x1ba)],_0x56c773[_0x6c1252(0x171)],_0x56c773[_0x6c1252(0x196)]][_0x6c1252(0x15a)](':'),_0x49a760=_0x22ea74['get'](_0xd3e4f);if(!_0x49a760){_0x22ea74['set'](_0xd3e4f,_0x56c773);continue;}_0x22ea74[_0x6c1252(0x164)](_0xd3e4f,{..._0x49a760,'collapsed':_0x49a760['collapsed']||_0x56c773[_0x6c1252(0x18b)]});}return Array[_0x6c1252(0x201)](_0x22ea74[_0x6c1252(0x1ce)]());}function _0x21d8a0(_0x3d0898,_0x4ffeb5){const _0x48c499=_0x24a4c3;return _0x3d0898[_0x48c499(0x178)]===_0x4ffeb5[_0x48c499(0x178)]?_0x3d0898[_0x48c499(0x19f)]===_0x4ffeb5['subUnitId']?_0x3d0898[_0x48c499(0x1ba)]===_0x4ffeb5[_0x48c499(0x1ba)]?_0x3d0898['start']===_0x4ffeb5[_0x48c499(0x171)]?_0x4ffeb5[_0x48c499(0x196)]-_0x3d0898[_0x48c499(0x196)]:_0x3d0898[_0x48c499(0x171)]-_0x4ffeb5[_0x48c499(0x171)]:_0x3d0898[_0x48c499(0x1ba)][_0x48c499(0x1f7)](_0x4ffeb5['axis']):_0x3d0898['subUnitId'][_0x48c499(0x1f7)](_0x4ffeb5['subUnitId']):_0x3d0898[_0x48c499(0x178)][_0x48c499(0x1f7)](_0x4ffeb5[_0x48c499(0x178)]);}function _0x4ea32a(_0x1fc8a6){const _0x2b1a2c=_0x24a4c3;if(_0x1fc8a6[_0x2b1a2c(0x171)]>_0x1fc8a6['end'])throw new _0x3aa0a1(_0x2b1a2c(0x19d),_0x2b1a2c(0x176),_0x1fc8a6['id']);}function _0x14b35f(_0x43b192,_0x56cdfb){const _0x333358=_0x24a4c3;let _0x49e344=_0x43b192['start']<=_0x56cdfb[_0x333358(0x196)]&&_0x56cdfb[_0x333358(0x171)]<=_0x43b192[_0x333358(0x196)],_0x327033=_0x43b192['start']<=_0x56cdfb[_0x333358(0x171)]&&_0x56cdfb['end']<=_0x43b192[_0x333358(0x196)],_0x2ce4b4=_0x56cdfb[_0x333358(0x171)]<=_0x43b192['start']&&_0x43b192[_0x333358(0x196)]<=_0x56cdfb['end'];return _0x49e344&&!_0x327033&&!_0x2ce4b4;}function _0xac5e17(_0x4ac2b8){'@babel/helpers - typeof';const _0x2ec288=_0x24a4c3;return _0xac5e17=typeof Symbol==_0x2ec288(0x174)&&typeof Symbol[_0x2ec288(0x1e3)]==_0x2ec288(0x188)?function(_0x34fdf6){return typeof _0x34fdf6;}:function(_0x54fd79){const _0x1dcc96=_0x2ec288;return _0x54fd79&&typeof Symbol==_0x1dcc96(0x174)&&_0x54fd79[_0x1dcc96(0x1e7)]===Symbol&&_0x54fd79!==Symbol[_0x1dcc96(0x166)]?_0x1dcc96(0x188):typeof _0x54fd79;},_0xac5e17(_0x4ac2b8);}function _0x29ea99(_0x44cafb,_0x1f6d10){const _0x5a9af9=_0x24a4c3;if(_0xac5e17(_0x44cafb)!=_0x5a9af9(0x14e)||!_0x44cafb)return _0x44cafb;var _0x1a5e18=_0x44cafb[Symbol['toPrimitive']];if(_0x1a5e18!==void 0x0){var _0x4a8091=_0x1a5e18[_0x5a9af9(0x182)](_0x44cafb,_0x1f6d10||_0x5a9af9(0x1e6));if(_0xac5e17(_0x4a8091)!=_0x5a9af9(0x14e))return _0x4a8091;throw TypeError(_0x5a9af9(0x1d9));}return(_0x1f6d10===_0x5a9af9(0x1c1)?String:Number)(_0x44cafb);}function _0x2d1a8e(_0x10edf1){const _0x1ed7ce=_0x24a4c3;var _0x1d3e7e=_0x29ea99(_0x10edf1,'string');return _0xac5e17(_0x1d3e7e)==_0x1ed7ce(0x188)?_0x1d3e7e:_0x1d3e7e+'';}function _0x121fc8(_0x23edbb,_0x4fd838,_0x1d62be){const _0x4bf603=_0x24a4c3;return(_0x4fd838=_0x2d1a8e(_0x4fd838))in _0x23edbb?Object[_0x4bf603(0x138)](_0x23edbb,_0x4fd838,{'value':_0x1d62be,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x23edbb[_0x4fd838]=_0x1d62be,_0x23edbb;}var _0x2deb8b=class extends _0x473743[_0x24a4c3(0x189)]{constructor(..._0x20eaa3){const _0x375c8c=_0x24a4c3;super(..._0x20eaa3),_0x121fc8(this,_0x375c8c(0x1b8),new Map()),_0x121fc8(this,_0x375c8c(0x1f1),new _0x36fbab['Subject']()),_0x121fc8(this,'change$',this['_change$'][_0x375c8c(0x195)]());}[_0x24a4c3(0x13b)](_0x5b1863,_0xd52760){const _0x5e9569=_0x24a4c3;var _0x18e0e5;return[...((_0x18e0e5=this[_0x5e9569(0x1b8)][_0x5e9569(0x1de)](_0x5b1863))==null?void 0x0:_0x18e0e5[_0x5e9569(0x1de)](_0xd52760))??[]];}['getUnitOutlines'](_0x429535){const _0xdd8f51=_0x24a4c3;let _0x19df70=this['_outlines'][_0xdd8f51(0x1de)](_0x429535),_0x490dee=new Map();return _0x19df70==null||_0x19df70[_0xdd8f51(0x19e)]((_0x1473fb,_0x2d044b)=>{_0x490dee['set'](_0x2d044b,[..._0x1473fb]);}),_0x490dee;}[_0x24a4c3(0x14d)](_0x55de56,_0x2fc2f4,_0x57c62f){const _0x467d64=_0x24a4c3;this[_0x467d64(0x1ee)](_0x55de56)[_0x467d64(0x164)](_0x2fc2f4,[..._0x57c62f]),this[_0x467d64(0x1f1)][_0x467d64(0x15e)]({'unitId':_0x55de56,'subUnitId':_0x2fc2f4});}[_0x24a4c3(0x1cb)](_0x44d9a9){const _0x33fec3=_0x24a4c3;this[_0x33fec3(0x1b8)][_0x33fec3(0x203)](_0x44d9a9),this[_0x33fec3(0x1f1)][_0x33fec3(0x15e)]({'unitId':_0x44d9a9});}['serialize'](_0x13401a){const _0xfe8928=_0x24a4c3;let _0x3a7198=this[_0xfe8928(0x1b8)][_0xfe8928(0x1de)](_0x13401a),_0x1d4bbd={};return _0x3a7198==null||_0x3a7198[_0xfe8928(0x19e)]((_0x46293d,_0x39c660)=>{_0x1d4bbd[_0x39c660]={'outlineList':[..._0x46293d]};}),_0x1d4bbd;}[_0x24a4c3(0x163)](_0x799e6d,_0xaa2449){const _0x743bb0=_0x24a4c3;let _0x1faeb0=new Map();Object['entries'](_0xaa2449)[_0x743bb0(0x19e)](([_0x4641b6,_0x213df1])=>{const _0xf6cf8=_0x743bb0;_0x1faeb0['set'](_0x4641b6,[..._0x213df1[_0xf6cf8(0x1d8)]??[]]);}),this['_outlines']['set'](_0x799e6d,_0x1faeb0),this[_0x743bb0(0x1f1)]['next']({'unitId':_0x799e6d});}[_0x24a4c3(0x143)](){const _0x36f6a3=_0x24a4c3;super['dispose'](),this[_0x36f6a3(0x1b8)]['clear'](),this[_0x36f6a3(0x1f1)]['complete']();}['_ensureUnitOutlines'](_0x3f376e){const _0x4836c6=_0x24a4c3;let _0x50189e=this['_outlines'][_0x4836c6(0x1de)](_0x3f376e);return _0x50189e||(_0x50189e=new Map(),this[_0x4836c6(0x1b8)][_0x4836c6(0x164)](_0x3f376e,_0x50189e)),_0x50189e;}},_0x318b95=class extends _0x473743[_0x24a4c3(0x189)]{constructor(..._0x2316e4){const _0x1c031d=_0x24a4c3;super(..._0x2316e4),_0x121fc8(this,'_error$',new _0x36fbab[(_0x1c031d(0x185))]()),_0x121fc8(this,_0x1c031d(0x1bd),this[_0x1c031d(0x211)][_0x1c031d(0x195)]());}[_0x24a4c3(0x167)](_0x379086){const _0x1be17c=_0x24a4c3;this[_0x1be17c(0x211)]['next'](_0x379086);}['dispose'](){const _0x1e5740=_0x24a4c3;super[_0x1e5740(0x143)](),this['_error$'][_0x1e5740(0x1dd)]();}};let _0x32e3f5={'id':_0x24a4c3(0x140),'type':_0x473743[_0x24a4c3(0x13a)][_0x24a4c3(0x193)],'handler':(_0x148f63,_0x4d0d22)=>{const _0x266710=_0x24a4c3;let _0x1d9e28=_0x148f63[_0x266710(0x1de)](_0x2deb8b),_0x4cda82=_0x1d9e28['getOutlines'](_0x4d0d22[_0x266710(0x178)],_0x4d0d22[_0x266710(0x19f)]);return _0x1d9e28[_0x266710(0x14d)](_0x4d0d22[_0x266710(0x178)],_0x4d0d22[_0x266710(0x19f)],_0x204106(_0x4cda82,_0x4d0d22['outline'])),!0x0;}},_0xf4e120={'id':_0x24a4c3(0x177),'type':_0x473743[_0x24a4c3(0x13a)]['MUTATION'],'handler':(_0x97e68a,_0x25752f)=>{const _0x1a65f1=_0x24a4c3;let _0x13d99e=_0x97e68a[_0x1a65f1(0x1de)](_0x2deb8b),_0x593176=_0x13d99e['getOutlines'](_0x25752f['unitId'],_0x25752f[_0x1a65f1(0x19f)]);return _0x13d99e[_0x1a65f1(0x14d)](_0x25752f[_0x1a65f1(0x178)],_0x25752f[_0x1a65f1(0x19f)],_0x593176['filter'](_0x53c60a=>_0x53c60a['id']!==_0x25752f['outlineId'])),!0x0;}};function _0xb2802d(_0x2b21b8,_0x247f9c,_0x3f7044){const _0x4aaa44=_0x24a4c3;let _0xcd5b7d=_0x10afeb(_0x2b21b8);return!_0xcd5b7d||_0xcd5b7d['permissionCheckWithoutRange']({'workbookTypes':[_0x11c297['WorkbookViewPermission']],'worksheetTypes':[_0x11c297[_0x4aaa44(0x168)]]},_0x247f9c,_0x3f7044);}function _0x28c7a3(_0x3db77a,_0x1e486f,_0x37da24){const _0x54c7d1=_0x24a4c3;let _0x5c906d=_0x51ff9b(_0x3db77a);return((_0x5c906d==null?void 0x0:_0x5c906d[_0x54c7d1(0x1e2)])??(0x0,_0x36fbab['of'])(null))[_0x54c7d1(0x151)]((0x0,_0x4dc8fd['debounceTime'])(0x64),(0x0,_0x4dc8fd[_0x54c7d1(0x17a)])(null),(0x0,_0x4dc8fd[_0x54c7d1(0x1f9)])(()=>_0xb2802d(_0x3db77a,_0x1e486f,_0x37da24)));}function _0x10afeb(_0x3d1446){const _0x17f439=_0x24a4c3;if(typeof _0x3d1446[_0x17f439(0x1a7)]=='function'&&!_0x3d1446[_0x17f439(0x1a7)](_0x11c297[_0x17f439(0x14f)]))return null;try{return _0x3d1446['get'](_0x11c297[_0x17f439(0x14f)]);}catch{return null;}}function _0x51ff9b(_0x195ba2){const _0x3566ba=_0x24a4c3;if(typeof _0x195ba2['has']==_0x3566ba(0x174)&&!_0x195ba2[_0x3566ba(0x1a7)](_0x473743[_0x3566ba(0x142)]))return null;try{return _0x195ba2[_0x3566ba(0x1de)](_0x473743[_0x3566ba(0x142)]);}catch{return null;}}let _0x3ff9d6={'id':_0x24a4c3(0x13f),'type':_0x473743[_0x24a4c3(0x13a)][_0x24a4c3(0x20e)],'handler':(_0xe39c85,_0x55c472)=>{const _0x2466ec=_0x24a4c3;if(!_0x55c472)return!0x1;let _0x3e373f=(0x0,_0x11c297[_0x2466ec(0x1da)])(_0xe39c85[_0x2466ec(0x1de)](_0x473743['IUniverInstanceService']),_0x55c472);if(!_0x3e373f)return!0x1;let {unitId:_0x1d98f6,subUnitId:_0x37ca19,worksheet:_0x3c816b}=_0x3e373f;if(!_0xb2802d(_0xe39c85,_0x1d98f6,_0x37ca19))return!0x1;let _0x409121=_0xe39c85[_0x2466ec(0x1de)](_0x2deb8b),_0x1446db={'id':'dimension-outline-'+(0x0,_0x473743[_0x2466ec(0x1e9)])(0x6),'unitId':_0x1d98f6,'subUnitId':_0x37ca19,'axis':_0x55c472[_0x2466ec(0x1ba)],'start':_0x55c472[_0x2466ec(0x171)],'end':_0x55c472[_0x2466ec(0x196)],'collapsed':!0x1},_0x522b23=_0x55c472['axis']===_0x2466ec(0x17d)?_0x3c816b[_0x2466ec(0x162)]():_0x3c816b[_0x2466ec(0x1df)](),_0x6e3228=_0x409121[_0x2466ec(0x13b)](_0x1d98f6,_0x37ca19),_0x43e081=_0x1af917(_0x6e3228,_0x1446db),_0x32a99b=(_0x43e081==null?void 0x0:_0x43e081[_0x2466ec(0x17f)])??[],_0xaf2948=(_0x43e081==null?void 0x0:_0x43e081['mergedOutline'])??_0x1446db,_0x2abca7=_0xd1463c(_0x43e081?_0x6e3228['filter'](_0x586359=>!_0x32a99b['some'](_0x20ebc4=>_0x20ebc4['id']===_0x586359['id'])):_0x6e3228,_0xaf2948,{'maxIndex':_0x522b23});if(!_0x2abca7[_0x2466ec(0x1d0)])return _0xe39c85[_0x2466ec(0x1de)](_0x318b95)[_0x2466ec(0x167)]({'reason':_0x2abca7[_0x2466ec(0x1a1)]??_0x2466ec(0x16b),'commandId':_0x3ff9d6['id'],'unitId':_0x1d98f6,'subUnitId':_0x37ca19,'axis':_0x55c472['axis'],'outlineId':_0xaf2948['id']}),!0x1;let _0x2a617e=[..._0x32a99b[_0x2466ec(0x1f9)](_0x4cac4d=>({'id':_0xf4e120['id'],'params':{'unitId':_0x1d98f6,'subUnitId':_0x37ca19,'outlineId':_0x4cac4d['id']}})),{'id':_0x32e3f5['id'],'params':{'unitId':_0x1d98f6,'subUnitId':_0x37ca19,'outline':_0xaf2948}}],_0x55093c=[{'id':_0xf4e120['id'],'params':{'unitId':_0x1d98f6,'subUnitId':_0x37ca19,'outlineId':_0xaf2948['id']}},..._0x32a99b['map'](_0xf61f70=>({'id':_0x32e3f5['id'],'params':{'unitId':_0x1d98f6,'subUnitId':_0x37ca19,'outline':_0xf61f70}}))];return(0x0,_0x473743[_0x2466ec(0x144)])(_0x2a617e,_0xe39c85[_0x2466ec(0x1de)](_0x473743[_0x2466ec(0x214)]))[_0x2466ec(0x1a3)]?(_0xe39c85[_0x2466ec(0x1de)](_0x473743[_0x2466ec(0x1bf)])[_0x2466ec(0x16e)]({'unitID':_0x1d98f6,'undoMutations':_0x55093c,'redoMutations':_0x2a617e}),!0x0):!0x1;}},_0x6e61d9={'id':_0x24a4c3(0x153),'type':_0x473743[_0x24a4c3(0x13a)]['MUTATION'],'handler':(_0x42b1ec,_0x14fa1f)=>{const _0x557518=_0x24a4c3;let _0x54cb9a=_0x42b1ec[_0x557518(0x1de)](_0x2deb8b),_0x13abe5=_0x54cb9a[_0x557518(0x13b)](_0x14fa1f[_0x557518(0x178)],_0x14fa1f['subUnitId']);return _0x54cb9a[_0x557518(0x14d)](_0x14fa1f[_0x557518(0x178)],_0x14fa1f['subUnitId'],_0x1f5071(_0x13abe5,_0x14fa1f)),!0x0;}},_0x408f14={'id':'sheet.command.clear-dimension-outlines','type':_0x473743[_0x24a4c3(0x13a)][_0x24a4c3(0x20e)],'handler':(_0x9d8027,_0x37146d)=>{const _0x221ca4=_0x24a4c3;if(!_0x37146d)return!0x1;let _0x7121be=(0x0,_0x11c297[_0x221ca4(0x1da)])(_0x9d8027[_0x221ca4(0x1de)](_0x473743[_0x221ca4(0x1ac)]),_0x37146d);if(!_0x7121be)return!0x1;let {unitId:_0x1f83a6,subUnitId:_0xa10977}=_0x7121be;if(!_0xb2802d(_0x9d8027,_0x1f83a6,_0xa10977))return!0x1;let _0xbc97d1={'unitId':_0x1f83a6,'subUnitId':_0xa10977,'axis':_0x37146d[_0x221ca4(0x1ba)],'start':_0x37146d[_0x221ca4(0x171)],'end':_0x37146d[_0x221ca4(0x196)]},_0x4cbc56=_0x9d8027[_0x221ca4(0x1de)](_0x2deb8b)['getOutlines'](_0x1f83a6,_0xa10977)[_0x221ca4(0x1db)](_0x1590fe=>_0xa36c76(_0x1590fe,_0xbc97d1)&&_0x1590fe[_0x221ca4(0x171)]>=_0x37146d[_0x221ca4(0x171)]&&_0x1590fe[_0x221ca4(0x196)]<=_0x37146d[_0x221ca4(0x196)]);if(_0x4cbc56[_0x221ca4(0x206)]===0x0)return _0x9d8027[_0x221ca4(0x1de)](_0x318b95)[_0x221ca4(0x167)]({'reason':_0x221ca4(0x1b1),'commandId':_0x408f14['id'],'unitId':_0x1f83a6,'subUnitId':_0xa10977,'axis':_0x37146d[_0x221ca4(0x1ba)]}),!0x1;let _0x55540d=[{'id':_0x6e61d9['id'],'params':{..._0xbc97d1,'removedOutlineIds':_0x4cbc56[_0x221ca4(0x1f9)](_0x45e994=>_0x45e994['id'])}}],_0x571332=_0x4cbc56[_0x221ca4(0x1f9)](_0x49e91d=>({'id':_0x32e3f5['id'],'params':{'unitId':_0x1f83a6,'subUnitId':_0xa10977,'outline':_0x49e91d}}));return(0x0,_0x473743[_0x221ca4(0x144)])(_0x55540d,_0x9d8027['get'](_0x473743[_0x221ca4(0x214)]))[_0x221ca4(0x1a3)]?(_0x9d8027[_0x221ca4(0x1de)](_0x473743[_0x221ca4(0x1bf)])['pushUndoRedo']({'unitID':_0x1f83a6,'undoMutations':_0x571332,'redoMutations':_0x55540d}),!0x0):!0x1;}},_0x5a6b1b={'id':'sheet.command.remove-dimension-outline','type':_0x473743[_0x24a4c3(0x13a)][_0x24a4c3(0x20e)],'handler':(_0x2d1d66,_0x5dc863)=>{const _0x51712c=_0x24a4c3;if(!_0x5dc863)return!0x1;let _0x55a3cc=(0x0,_0x11c297[_0x51712c(0x1da)])(_0x2d1d66['get'](_0x473743[_0x51712c(0x1ac)]),_0x5dc863);if(!_0x55a3cc)return!0x1;let {unitId:_0x219072,subUnitId:_0x3cf7f8}=_0x55a3cc;if(!_0xb2802d(_0x2d1d66,_0x219072,_0x3cf7f8))return!0x1;let _0x5d0bc3=_0x2d1d66[_0x51712c(0x1de)](_0x2deb8b)['getOutlines'](_0x219072,_0x3cf7f8)[_0x51712c(0x1b3)](_0x350b74=>_0x350b74['id']===_0x5dc863[_0x51712c(0x1fa)]);if(!_0x5d0bc3)return!0x1;let _0x28ac79=[{'id':_0xf4e120['id'],'params':{'unitId':_0x219072,'subUnitId':_0x3cf7f8,'outlineId':_0x5d0bc3['id'],'outline':_0x5d0bc3}}],_0x74e395=[{'id':_0x32e3f5['id'],'params':{'unitId':_0x219072,'subUnitId':_0x3cf7f8,'outline':_0x5d0bc3}}];return(0x0,_0x473743[_0x51712c(0x144)])(_0x28ac79,_0x2d1d66[_0x51712c(0x1de)](_0x473743['ICommandService']))['result']?(_0x2d1d66[_0x51712c(0x1de)](_0x473743[_0x51712c(0x1bf)])[_0x51712c(0x16e)]({'unitID':_0x219072,'undoMutations':_0x74e395,'redoMutations':_0x28ac79}),!0x0):!0x1;}},_0x3f9239={'id':_0x24a4c3(0x1c0),'type':_0x473743['CommandType']['MUTATION'],'handler':(_0x33742a,_0x167a66)=>{const _0x8d5d17=_0x24a4c3;let _0xc50bfe=_0x33742a[_0x8d5d17(0x1de)](_0x2deb8b),_0x576d22=_0xc50bfe[_0x8d5d17(0x13b)](_0x167a66[_0x8d5d17(0x178)],_0x167a66[_0x8d5d17(0x19f)]),_0x24f09f=_0x576d22[_0x8d5d17(0x1b3)](_0xf5b35f=>_0xf5b35f['id']===_0x167a66['outlineId']);return _0x24f09f&&_0xc50bfe[_0x8d5d17(0x14d)](_0x167a66[_0x8d5d17(0x178)],_0x167a66['subUnitId'],_0x576d22[_0x8d5d17(0x1f9)](_0x12565b=>_0x12565b['unitId']!==_0x24f09f['unitId']||_0x12565b['subUnitId']!==_0x24f09f['subUnitId']||_0x12565b[_0x8d5d17(0x1ba)]!==_0x24f09f[_0x8d5d17(0x1ba)]||_0x12565b[_0x8d5d17(0x171)]!==_0x24f09f['start']||_0x12565b[_0x8d5d17(0x196)]!==_0x24f09f['end']?_0x12565b:{..._0x12565b,'collapsed':_0x167a66[_0x8d5d17(0x18b)]})),!0x0;}};function _0x4b3cc8(_0x2fdcea,_0x481134,_0x3ad551,_0x1188cc){const _0x3edd1e=_0x24a4c3;return _0x2fdcea==='row'?{'startRow':_0x481134,'endRow':_0x3ad551,'startColumn':0x0,'endColumn':_0x1188cc['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x1188cc[_0x3edd1e(0x162)]()-0x1,'startColumn':_0x481134,'endColumn':_0x3ad551};}function _0x495b9d(_0x5eb9f3){const _0x14465c=_0x24a4c3;return _0x5eb9f3==='row'?_0x11c297['SetRowHiddenMutation']['id']:_0x11c297[_0x14465c(0x19a)]['id'];}function _0x30f455(_0x2be7f7){const _0x175dbd=_0x24a4c3;return _0x2be7f7===_0x175dbd(0x17d)?_0x11c297['SetRowVisibleMutation']['id']:_0x11c297[_0x175dbd(0x1d1)]['id'];}function _0x4c3a76(_0x117e39,_0x4dbdb9,_0x5163f4,_0x11cef0){const _0x1bf9c1=_0x24a4c3;let _0x58d2d0=_0x4dbdb9?[_0x4b3cc8(_0x117e39['axis'],_0x117e39['start'],_0x117e39[_0x1bf9c1(0x196)],_0x5163f4)]:_0x51f8dc(_0x117e39,_0x11cef0,_0x5163f4),_0x396eb7=_0x4dbdb9?_0x495b9d(_0x117e39['axis']):_0x30f455(_0x117e39[_0x1bf9c1(0x1ba)]);return[{'id':_0x3f9239['id'],'params':{'unitId':_0x117e39[_0x1bf9c1(0x178)],'subUnitId':_0x117e39['subUnitId'],'outlineId':_0x117e39['id'],'outline':_0x117e39,'collapsed':_0x4dbdb9}},..._0x58d2d0[_0x1bf9c1(0x1f9)](_0x323140=>({'id':_0x396eb7,'params':{'unitId':_0x117e39[_0x1bf9c1(0x178)],'subUnitId':_0x117e39[_0x1bf9c1(0x19f)],'ranges':[_0x323140],'dimensionOutlineId':_0x117e39['id']}}))];}function _0x51f8dc(_0x487629,_0x45f0be,_0x4eeca4){const _0xab0b2c=_0x24a4c3;let _0x1dd5b0=_0x19aff9(_0x45f0be[_0xab0b2c(0x1f9)](_0x30abe3=>_0x4e9a93(_0x30abe3,_0x487629)?{..._0x30abe3,'collapsed':!0x1}:_0x30abe3),_0x487629[_0xab0b2c(0x178)],_0x487629[_0xab0b2c(0x19f)],_0x487629[_0xab0b2c(0x1ba)]);return _0x151a7a({'start':_0x487629[_0xab0b2c(0x171)],'end':_0x487629[_0xab0b2c(0x196)]},_0x1dd5b0)[_0xab0b2c(0x1f9)](_0x5a863c=>_0x4b3cc8(_0x487629['axis'],_0x5a863c[_0xab0b2c(0x171)],_0x5a863c['end'],_0x4eeca4));}function _0x4e9a93(_0x39f7a9,_0x45c4fe){const _0x37908b=_0x24a4c3;return _0x39f7a9[_0x37908b(0x178)]===_0x45c4fe['unitId']&&_0x39f7a9[_0x37908b(0x19f)]===_0x45c4fe['subUnitId']&&_0x39f7a9['axis']===_0x45c4fe[_0x37908b(0x1ba)]&&_0x39f7a9[_0x37908b(0x171)]===_0x45c4fe[_0x37908b(0x171)]&&_0x39f7a9['end']===_0x45c4fe[_0x37908b(0x196)];}function _0x151a7a(_0x5f13a3,_0x529154){const _0x378864=_0x24a4c3;let _0x5613f7=_0x5f13a3['start'],_0x42d749=[];for(let _0x8fd875 of _0x529154)if(!(_0x8fd875[_0x378864(0x196)]<_0x5613f7||_0x8fd875['start']>_0x5f13a3[_0x378864(0x196)])&&(_0x8fd875[_0x378864(0x171)]>_0x5613f7&&_0x42d749[_0x378864(0x1ff)]({'start':_0x5613f7,'end':Math[_0x378864(0x1c7)](_0x8fd875['start']-0x1,_0x5f13a3[_0x378864(0x196)])}),_0x5613f7=Math[_0x378864(0x1c8)](_0x5613f7,_0x8fd875[_0x378864(0x196)]+0x1),_0x5613f7>_0x5f13a3[_0x378864(0x196)]))break;return _0x5613f7<=_0x5f13a3[_0x378864(0x196)]&&_0x42d749[_0x378864(0x1ff)]({'start':_0x5613f7,'end':_0x5f13a3['end']}),_0x42d749;}let _0x1c0617={'id':'sheet.command.set-dimension-outline-collapsed','type':_0x473743[_0x24a4c3(0x13a)][_0x24a4c3(0x20e)],'handler':(_0x1849f2,_0x5ac388)=>{const _0x387f77=_0x24a4c3;if(!_0x5ac388)return!0x1;let _0x590884=(0x0,_0x11c297[_0x387f77(0x1da)])(_0x1849f2['get'](_0x473743[_0x387f77(0x1ac)]),_0x5ac388);if(!_0x590884)return!0x1;let {unitId:_0x43315c,subUnitId:_0x49c9c6,worksheet:_0x41f42f}=_0x590884;if(!_0xb2802d(_0x1849f2,_0x43315c,_0x49c9c6))return!0x1;let _0x4e4754=_0x1849f2[_0x387f77(0x1de)](_0x2deb8b)[_0x387f77(0x13b)](_0x43315c,_0x49c9c6),_0xc84f17=_0x4e4754[_0x387f77(0x1b3)](_0xa056be=>_0xa056be['id']===_0x5ac388['outlineId']);if(!_0xc84f17||_0xc84f17['collapsed']===_0x5ac388[_0x387f77(0x18b)])return!0x1;let _0x11bf47=_0x4c3a76(_0xc84f17,_0x5ac388[_0x387f77(0x18b)],_0x41f42f,_0x4e4754),_0x53b8a3=_0x4c3a76(_0xc84f17,!_0x5ac388['collapsed'],_0x41f42f,_0x4e4754);return(0x0,_0x473743[_0x387f77(0x144)])(_0x11bf47,_0x1849f2[_0x387f77(0x1de)](_0x473743[_0x387f77(0x214)]))[_0x387f77(0x1a3)]?(_0x1849f2[_0x387f77(0x1de)](_0x473743[_0x387f77(0x1bf)])['pushUndoRedo']({'unitID':_0x43315c,'undoMutations':_0x53b8a3,'redoMutations':_0x11bf47}),!0x0):!0x1;}},_0x215c5a={'id':_0x24a4c3(0x1ea),'type':_0x473743[_0x24a4c3(0x13a)][_0x24a4c3(0x193)],'handler':(_0x4496a0,_0x3aa601)=>{const _0x401c22=_0x24a4c3;let _0x244533=_0x4496a0[_0x401c22(0x1de)](_0x2deb8b),_0x1c841d=_0x4adc15(_0x244533['getOutlines'](_0x3aa601[_0x401c22(0x178)],_0x3aa601['subUnitId']),_0x3aa601);return _0x244533[_0x401c22(0x14d)](_0x3aa601[_0x401c22(0x178)],_0x3aa601[_0x401c22(0x19f)],_0x1c841d),!0x0;}};function _0x4adc15(_0x4a92e2,_0x103cf3){const _0x2360d8=_0x24a4c3;switch(_0x103cf3[_0x2360d8(0x192)]){case _0x2360d8(0x204):return _0x103cf3['restoreOutlines']?_0x1b3a3f(_0x4a92e2,_0x103cf3):_0x4b0be0(_0x4a92e2,_0x103cf3);case _0x2360d8(0x203):return _0x1482f1(_0x4a92e2,_0x103cf3);case _0x2360d8(0x1ad):return _0x182936(_0x4a92e2,_0x103cf3);}}function _0x1b3a3f(_0x4cb3f8,_0x4688be){const _0x1948ae=_0x24a4c3;return[..._0x4cb3f8[_0x1948ae(0x1db)](_0x435a76=>_0x435a76['unitId']!==_0x4688be[_0x1948ae(0x178)]||_0x435a76[_0x1948ae(0x19f)]!==_0x4688be['subUnitId']||_0x435a76[_0x1948ae(0x1ba)]!==_0x4688be[_0x1948ae(0x1ba)]),..._0x4688be['restoreOutlines']];}let _0x37d521=_0x24a4c3(0x215);var _0x3d51af=_0x24a4c3(0x155),_0x232714=_0x24a4c3(0x157);let _0x5a590f={};function _0x48dcd1(_0x43645f,_0x2bd54d){return function(_0x325805,_0x3e63d5){_0x2bd54d(_0x325805,_0x3e63d5,_0x43645f);};}function _0x4b323c(_0x3b7bcf,_0x447e70,_0x1fe0bb,_0x57f594){const _0x3afb4b=_0x24a4c3;var _0x2ed6de=arguments[_0x3afb4b(0x206)],_0xa340a0=_0x2ed6de<0x3?_0x447e70:_0x57f594===null?_0x57f594=Object[_0x3afb4b(0x14a)](_0x447e70,_0x1fe0bb):_0x57f594,_0x532063;if(typeof Reflect=='object'&&typeof Reflect[_0x3afb4b(0x159)]==_0x3afb4b(0x174))_0xa340a0=Reflect[_0x3afb4b(0x159)](_0x3b7bcf,_0x447e70,_0x1fe0bb,_0x57f594);else{for(var _0x4649da=_0x3b7bcf['length']-0x1;_0x4649da>=0x0;_0x4649da--)(_0x532063=_0x3b7bcf[_0x4649da])&&(_0xa340a0=(_0x2ed6de<0x3?_0x532063(_0xa340a0):_0x2ed6de>0x3?_0x532063(_0x447e70,_0x1fe0bb,_0xa340a0):_0x532063(_0x447e70,_0x1fe0bb))||_0xa340a0);}return _0x2ed6de>0x3&&_0xa340a0&&Object[_0x3afb4b(0x138)](_0x447e70,_0x1fe0bb,_0xa340a0),_0xa340a0;}let _0x86e82d={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x54f643=class extends _0x473743[_0x24a4c3(0x189)]{constructor(_0x425102,_0x1b1c23,_0x41824c,_0xffd3de){const _0x440b51=_0x24a4c3;super(),this[_0x440b51(0x145)]=_0x425102,this[_0x440b51(0x18d)]=_0x1b1c23,this['_sheetsOutlineModel']=_0x41824c,this[_0x440b51(0x13d)]=_0xffd3de,this['_initCommandInterceptor']();}[_0x24a4c3(0x1e8)](){const _0x35395d=_0x24a4c3;this[_0x35395d(0x16c)](this[_0x35395d(0x18d)][_0x35395d(0x1aa)]({'getMutations':_0x47237a=>_0x2fc868(_0x47237a,(_0x35c3f0,_0x4e380b)=>this[_0x35395d(0x187)][_0x35395d(0x13b)](_0x35c3f0,_0x4e380b),this[_0x35395d(0x13e)](_0x47237a[_0x35395d(0x18a)]),_0x2b9f2b=>this['_sheetsOutlineErrorService'][_0x35395d(0x167)](_0x2b9f2b))}));}[_0x24a4c3(0x13e)](_0x5034b0){const _0x736615=_0x24a4c3;let _0x27e9ba=_0x5034b0,_0x12923f=_0x27e9ba!=null&&_0x27e9ba['unitId']?this[_0x736615(0x145)]['getUnit'](_0x27e9ba[_0x736615(0x178)],_0x473743[_0x736615(0x191)][_0x736615(0x1a5)]):this[_0x736615(0x145)][_0x736615(0x15d)](_0x473743[_0x736615(0x191)][_0x736615(0x1a5)]);if(!_0x12923f)return;let _0x588192=_0x27e9ba!=null&&_0x27e9ba[_0x736615(0x19f)]?_0x12923f[_0x736615(0x172)](_0x27e9ba['subUnitId']):_0x12923f[_0x736615(0x149)]();if(_0x588192)return{'unitId':_0x12923f['getUnitId'](),'subUnitId':_0x588192['getSheetId']()};}};_0x54f643=_0x4b323c([_0x48dcd1(0x0,_0x473743[_0x24a4c3(0x1ac)]),_0x48dcd1(0x1,(0x0,_0x473743[_0x24a4c3(0x199)])(_0x11c297['SheetInterceptorService'])),_0x48dcd1(0x2,(0x0,_0x473743[_0x24a4c3(0x199)])(_0x2deb8b)),_0x48dcd1(0x3,(0x0,_0x473743[_0x24a4c3(0x199)])(_0x318b95))],_0x54f643);function _0x2fc868(_0x702544,_0x1c4381,_0xbfc5a7,_0x4ce484){const _0x2a5870=_0x24a4c3;let _0x213415=_0x16b8a9(_0x702544,_0xbfc5a7);if(!_0x213415)return _0x189828();let _0x5ce3ef=_0x1c4381(_0x213415[_0x2a5870(0x178)],_0x213415[_0x2a5870(0x19f)]);if(!_0x5ce3ef[_0x2a5870(0x169)](_0x581f8c=>_0x581f8c['axis']===_0x213415['axis']))return _0x189828();_0x52a6cd(_0x5ce3ef,_0x213415,_0x702544['id'],_0x4ce484);let _0x55a8db=_0x4c97a9(_0x213415,_0x5ce3ef);return{'redos':[{'id':_0x215c5a['id'],'params':_0x213415}],'undos':[{'id':_0x215c5a['id'],'params':_0x55a8db}],'preRedos':[],'preUndos':[]};}function _0x52a6cd(_0x1673b8,_0x1dbe1c,_0x393ee4,_0x3417e0){const _0x31541a=_0x24a4c3;try{switch(_0x1dbe1c[_0x31541a(0x192)]){case _0x31541a(0x204):_0x4b0be0(_0x1673b8,_0x1dbe1c);break;case _0x31541a(0x203):_0x1482f1(_0x1673b8,_0x1dbe1c);break;case _0x31541a(0x1ad):_0x182936(_0x1673b8,_0x1dbe1c);}}catch(_0x21c1e5){throw _0x3417e0==null||_0x3417e0({'reason':_0x5f4151(_0x21c1e5),'commandId':_0x393ee4,'unitId':_0x1dbe1c['unitId'],'subUnitId':_0x1dbe1c['subUnitId'],'axis':_0x1dbe1c[_0x31541a(0x1ba)],'outlineId':_0x455c87(_0x21c1e5)}),new _0x473743[(_0x31541a(0x212))](_0x21c1e5 instanceof Error?_0x21c1e5['message']:_0x31541a(0x15b));}}function _0x16b8a9(_0x2c95ac,_0x5ac238){const _0x5ec576=_0x24a4c3;switch(_0x2c95ac['id']){case _0x11c297[_0x5ec576(0x1b2)]['id']:return _0x4770de(_0x2c95ac['params'],'row',_0x5ac238);case _0x11c297[_0x5ec576(0x150)]['id']:return _0x4770de(_0x2c95ac['params'],_0x5ec576(0x209),_0x5ac238);case _0x11c297[_0x5ec576(0x13c)]['id']:return _0x2d80dd(_0x2c95ac[_0x5ec576(0x18a)],_0x5ec576(0x17d),_0x5ac238);case _0x11c297[_0x5ec576(0x173)]['id']:return _0x2d80dd(_0x2c95ac[_0x5ec576(0x18a)],'column',_0x5ac238);case _0x11c297[_0x5ec576(0x1cf)]['id']:return _0x11dc0e(_0x2c95ac[_0x5ec576(0x18a)],_0x5ec576(0x17d),_0x5ac238);case _0x11c297['MoveColsCommand']['id']:return _0x11dc0e(_0x2c95ac[_0x5ec576(0x18a)],_0x5ec576(0x209),_0x5ac238);default:return null;}}function _0x4770de(_0x25f855,_0x9db497,_0xa1baec){const _0x10ee4c=_0x24a4c3;let _0x41ae26=_0x56430a(_0x25f855,_0xa1baec);if(!(_0x25f855!=null&&_0x25f855['range'])||!_0x41ae26)return null;let _0x6960a2=_0x9db497==='row'?_0x25f855[_0x10ee4c(0x1be)]['startRow']:_0x25f855[_0x10ee4c(0x1be)][_0x10ee4c(0x202)],_0x35052c=_0x9db497==='row'?_0x25f855['range'][_0x10ee4c(0x14b)]:_0x25f855[_0x10ee4c(0x1be)][_0x10ee4c(0x156)];return{..._0x41ae26,'axis':_0x9db497,'type':_0x10ee4c(0x204),'index':_0x6960a2,'count':_0x35052c-_0x6960a2+0x1};}function _0x2d80dd(_0x445ad5,_0x21a300,_0x1298e9){const _0x11cdd0=_0x24a4c3;let _0x3f54d4=_0x56430a(_0x445ad5,_0x1298e9);if(!(_0x445ad5!=null&&_0x445ad5[_0x11cdd0(0x1be)])||!_0x3f54d4)return null;let _0x69570a=_0x21a300===_0x11cdd0(0x17d)?_0x445ad5[_0x11cdd0(0x1be)][_0x11cdd0(0x1b7)]:_0x445ad5[_0x11cdd0(0x1be)][_0x11cdd0(0x202)],_0x57c456=_0x21a300==='row'?_0x445ad5[_0x11cdd0(0x1be)]['endRow']:_0x445ad5['range']['endColumn'];return{..._0x3f54d4,'axis':_0x21a300,'type':_0x11cdd0(0x203),'start':_0x69570a,'end':_0x57c456};}function _0x11dc0e(_0x5b83e7,_0x3d3615,_0x4ab977){const _0x34d009=_0x24a4c3;let _0x3086bd=_0x56430a(_0x5b83e7,_0x4ab977);if(!(_0x5b83e7!=null&&_0x5b83e7['fromRange'])||!_0x5b83e7[_0x34d009(0x1e1)]||!_0x3086bd)return null;let _0x1badbc=_0x3d3615===_0x34d009(0x17d)?_0x5b83e7[_0x34d009(0x1c2)][_0x34d009(0x1b7)]:_0x5b83e7[_0x34d009(0x1c2)][_0x34d009(0x202)],_0x2c69e5=_0x3d3615==='row'?_0x5b83e7[_0x34d009(0x1c2)][_0x34d009(0x14b)]:_0x5b83e7[_0x34d009(0x1c2)]['endColumn'],_0x25a531=_0x3d3615===_0x34d009(0x17d)?_0x5b83e7['toRange']['startRow']:_0x5b83e7['toRange'][_0x34d009(0x202)];return{..._0x3086bd,'axis':_0x3d3615,'type':_0x34d009(0x1ad),'sourceStart':_0x1badbc,'sourceEnd':_0x2c69e5,'destinationIndex':_0x25a531};}function _0x4c97a9(_0x357470,_0x28654b){const _0x5c2dbf=_0x24a4c3;switch(_0x357470[_0x5c2dbf(0x192)]){case _0x5c2dbf(0x204):return{'unitId':_0x357470[_0x5c2dbf(0x178)],'subUnitId':_0x357470['subUnitId'],'axis':_0x357470['axis'],'type':_0x5c2dbf(0x203),'start':_0x357470[_0x5c2dbf(0x1cd)],'end':_0x357470[_0x5c2dbf(0x1cd)]+_0x357470[_0x5c2dbf(0x175)]-0x1};case'delete':return{'unitId':_0x357470[_0x5c2dbf(0x178)],'subUnitId':_0x357470['subUnitId'],'axis':_0x357470[_0x5c2dbf(0x1ba)],'type':_0x5c2dbf(0x204),'index':_0x357470[_0x5c2dbf(0x171)],'count':_0x357470['end']-_0x357470[_0x5c2dbf(0x171)]+0x1,'restoreOutlines':_0x28654b[_0x5c2dbf(0x1db)](_0x1d713e=>_0x1d713e['unitId']===_0x357470['unitId']&&_0x1d713e[_0x5c2dbf(0x19f)]===_0x357470[_0x5c2dbf(0x19f)]&&_0x1d713e[_0x5c2dbf(0x1ba)]===_0x357470['axis'])};case _0x5c2dbf(0x1ad):return _0x265a28(_0x357470);}}function _0x265a28(_0x33383a){const _0x35de7d=_0x24a4c3;let _0x20219e=_0x33383a[_0x35de7d(0x1ca)]-_0x33383a[_0x35de7d(0x141)]+0x1;return _0x33383a['destinationIndex']>=_0x33383a[_0x35de7d(0x141)]&&_0x33383a[_0x35de7d(0x18f)]<=_0x33383a[_0x35de7d(0x1ca)]+0x1?{..._0x33383a}:_0x33383a[_0x35de7d(0x18f)]>_0x33383a[_0x35de7d(0x1ca)]+0x1?{..._0x33383a,'sourceStart':_0x33383a[_0x35de7d(0x18f)]-_0x20219e,'sourceEnd':_0x33383a[_0x35de7d(0x18f)]-0x1,'destinationIndex':_0x33383a['sourceStart']}:{..._0x33383a,'sourceStart':_0x33383a['destinationIndex'],'sourceEnd':_0x33383a[_0x35de7d(0x18f)]+_0x20219e-0x1,'destinationIndex':_0x33383a[_0x35de7d(0x1ca)]+0x1};}function _0x56430a(_0x28946c,_0x3da009){const _0xe83e64=_0x24a4c3;let _0x12b150=(_0x28946c==null?void 0x0:_0x28946c[_0xe83e64(0x178)])??(_0x3da009==null?void 0x0:_0x3da009['unitId']),_0x5be3d8=(_0x28946c==null?void 0x0:_0x28946c['subUnitId'])??(_0x3da009==null?void 0x0:_0x3da009[_0xe83e64(0x19f)]);return _0x12b150&&_0x5be3d8?{'unitId':_0x12b150,'subUnitId':_0x5be3d8}:null;}function _0x189828(){const _0x232262=_0x24a4c3;return{'redos':[..._0x86e82d[_0x232262(0x1d6)]],'undos':[..._0x86e82d[_0x232262(0x1f8)]],'preRedos':[..._0x86e82d['preRedos']??[]],'preUndos':[..._0x86e82d[_0x232262(0x20a)]??[]]};}let _0x46be77=class extends _0x473743[_0x24a4c3(0x189)]{constructor(_0x4150e7,_0x2b5da5){const _0x35e8f8=_0x24a4c3;super(),this[_0x35e8f8(0x1fc)]=_0x4150e7,this[_0x35e8f8(0x187)]=_0x2b5da5,this[_0x35e8f8(0x1d5)]();}[_0x24a4c3(0x1d5)](){const _0xf49b1e=_0x24a4c3;this[_0xf49b1e(0x16c)](this['_resourceManagerService'][_0xf49b1e(0x1f5)]({'pluginName':_0x37d521,'businesses':[_0x473743['UniverInstanceType'][_0xf49b1e(0x1a5)]],'toJson':_0x1b730d=>JSON[_0xf49b1e(0x194)](this['_sheetsOutlineModel'][_0xf49b1e(0x1e0)](_0x1b730d)),'parseJson':_0x26199e=>JSON['parse'](_0x26199e),'onLoad':(_0x5af897,_0x4040c3)=>this['_sheetsOutlineModel'][_0xf49b1e(0x163)](_0x5af897,_0x4040c3),'onUnLoad':_0x41e605=>this['_sheetsOutlineModel'][_0xf49b1e(0x1cb)](_0x41e605)}));}};_0x46be77=_0x4b323c([_0x48dcd1(0x0,_0x473743[_0x24a4c3(0x20f)]),_0x48dcd1(0x1,(0x0,_0x473743[_0x24a4c3(0x199)])(_0x2deb8b))],_0x46be77);let _0x28b2ca=class extends _0x473743['Plugin']{constructor(_0x596154=_0x5a590f,_0x681c3f,_0x4919e9,_0x4be2d4){const _0x497d43=_0x24a4c3;super(),this[_0x497d43(0x1ef)]=_0x596154,this['_injector']=_0x681c3f,this[_0x497d43(0x183)]=_0x4919e9,this[_0x497d43(0x213)]=_0x4be2d4;let {..._0xc6bc0d}=(0x0,_0x473743['merge'])({},_0x5a590f,this['_config']);this[_0x497d43(0x213)][_0x497d43(0x20d)](_0x497d43(0x1e4),_0xc6bc0d);}['onStarting'](){const _0x48e0ad=_0x24a4c3;this[_0x48e0ad(0x1f6)]['add']([_0x2deb8b]),this[_0x48e0ad(0x1f6)][_0x48e0ad(0x16f)]([_0x318b95]),this[_0x48e0ad(0x1f6)][_0x48e0ad(0x16f)]([_0x46be77]),this[_0x48e0ad(0x1f6)]['add']([_0x54f643]),this[_0x48e0ad(0x146)](),this[_0x48e0ad(0x1f6)][_0x48e0ad(0x1de)](_0x2deb8b),this[_0x48e0ad(0x1f6)]['get'](_0x318b95),this['_injector'][_0x48e0ad(0x1de)](_0x46be77),this[_0x48e0ad(0x1f6)][_0x48e0ad(0x1de)](_0x54f643);}[_0x24a4c3(0x146)](){const _0x76e58c=_0x24a4c3;[_0x3ff9d6,_0x5a6b1b,_0x1c0617,_0x408f14][_0x76e58c(0x19e)](_0x240267=>{const _0x4beb0f=_0x76e58c;this[_0x4beb0f(0x16c)](this[_0x4beb0f(0x183)][_0x4beb0f(0x1bb)](_0x240267));}),[_0x32e3f5,_0xf4e120,_0x3f9239,_0x6e61d9,_0x215c5a][_0x76e58c(0x19e)](_0x20b6e8=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x20b6e8));});}};_0x121fc8(_0x28b2ca,_0x24a4c3(0x1d3),_0x37d521),_0x121fc8(_0x28b2ca,_0x24a4c3(0x15c),_0x3d51af),_0x121fc8(_0x28b2ca,_0x24a4c3(0x20b),_0x232714),_0x121fc8(_0x28b2ca,_0x24a4c3(0x192),_0x473743[_0x24a4c3(0x191)][_0x24a4c3(0x1a5)]),_0x28b2ca=_0x4b323c([(0x0,_0x473743[_0x24a4c3(0x14c)])(_0x2bffaa['UniverLicensePlugin'],_0x11c297[_0x24a4c3(0x190)]),_0x48dcd1(0x1,(0x0,_0x473743['Inject'])(_0x473743[_0x24a4c3(0x152)])),_0x48dcd1(0x2,_0x473743[_0x24a4c3(0x214)]),_0x48dcd1(0x3,_0x473743[_0x24a4c3(0x197)])],_0x28b2ca),_0x4a67dc[_0x24a4c3(0x1a6)]=_0x3ff9d6,_0x4a67dc[_0x24a4c3(0x160)]=_0x32e3f5,_0x4a67dc[_0x24a4c3(0x1c3)]=_0x408f14,_0x4a67dc[_0x24a4c3(0x1c6)]=_0x6e61d9,_0x4a67dc[_0x24a4c3(0x1a4)]=_0xa95a23,_0x4a67dc[_0x24a4c3(0x19b)]=_0x2c2309,_0x4a67dc[_0x24a4c3(0x1a2)]=_0x5a6b1b,_0x4a67dc[_0x24a4c3(0x170)]=_0xf4e120,_0x4a67dc['SHEET_OUTLINE_PLUGIN']=_0x37d521,_0x4a67dc[_0x24a4c3(0x1a0)]=_0x1c0617,_0x4a67dc['SetDimensionOutlineCollapsedMutation']=_0x3f9239,_0x4a67dc[_0x24a4c3(0x147)]=_0x318b95,_0x4a67dc[_0x24a4c3(0x17b)]=_0x2deb8b,_0x4a67dc[_0x24a4c3(0x1c9)]=_0x215c5a,Object[_0x24a4c3(0x138)](_0x4a67dc,_0x24a4c3(0x1b5),{'enumerable':!0x0,'get':function(){return _0x28b2ca;}}),_0x4a67dc[_0x24a4c3(0x17e)]=_0x3b963d,_0x4a67dc[_0x24a4c3(0x154)]=_0xd1463c,_0x4a67dc[_0x24a4c3(0x17c)]=_0x28c7a3,_0x4a67dc[_0x24a4c3(0x1c4)]=_0xb2802d,_0x4a67dc[_0x24a4c3(0x208)]=_0x1482f1,_0x4a67dc[_0x24a4c3(0x1b0)]=_0x4b0be0,_0x4a67dc['transformOutlinesByMove']=_0x182936;}));function _0x1d7f(){const _0x320968=['index','values','MoveRowsCommand','valid','SetColVisibleMutation','exports','pluginName','MAX_DEPTH','_initResource','redos','11jSeZCP','outlineList','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSheetCommandTarget','filter','split','complete','get','getColumnCount','serialize','toRange','permissionPointUpdate$','iterator','sheets-outline.config','out-of-bounds','default','constructor','_initCommandInterceptor','generateRandomId','sheet.mutation.transform-dimension-outlines','outline','invalid-dimension-outline','COLUMN','_ensureUnitOutlines','_config','828gtKgEb','_change$','UniverSheets','OUT_OF_BOUNDS','sort','registerPluginResource','_injector','localeCompare','undos','map','outlineId','rxjs/operators','_resourceManagerService','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','1120596rQUfsp','push','@univerjs-pro/license','from','startColumn','delete','insert','Move\x20would\x20split\x20dimension\x20outline:\x20','length','Module','transformOutlinesByDelete','column','preUndos','version','@univerjs/core','setConfig','COMMAND','IResourceManagerService','split\x20dimension\x20outline','_error$','CustomCommandExecutionError','_configService','ICommandService','SHEET_OUTLINE_PLUGIN','amd','defineProperty','maxIndex','CommandType','getOutlines','RemoveRowCommand','_sheetsOutlineErrorService','_getCommandScope','sheet.command.add-dimension-outline','sheet.mutation.add-dimension-outline','sourceStart','IPermissionService','dispose','sequenceExecute','_univerInstanceService','_initRegisterCommand','SheetsOutlineErrorService','1968SiYTai','getActiveSheet','getOwnPropertyDescriptor','endRow','DependentOn','setOutlines','object','SheetPermissionCheckController','InsertColCommand','pipe','Injector','sheet.mutation.clear-dimension-outlines','canAddDimensionOutline','@univerjs-pro/sheets-outline','endColumn','1.0.0','CROSSING','decorate','join','Invalid\x20dimension\x20outline\x20mutation','packageName','getCurrentUnitOfType','next','INVALID_RANGE','AddDimensionOutlineMutation','UniverCore','getRowCount','deserialize','set','pop','prototype','emit','WorksheetViewPermission','some','offset','unknown','disposeWithMe','crossing','pushUndoRedo','add','RemoveDimensionOutlineMutation','start','getSheetBySheetId','RemoveColCommand','function','count','Invalid\x20outline\x20range','sheet.mutation.remove-dimension-outline','unitId','196zdTYoX','startWith','SheetsOutlineModel','getDimensionOutlineViewPermission$','row','buildDimensionOutlineTree','mergedOutlines','3817XsLioM','251694zASqxu','call','_commandService','573590HEcdht','Subject','10gWMqMJ','_sheetsOutlineModel','symbol','Disposable','params','collapsed','rxjs','_sheetInterceptorService','UNKNOWN','destinationIndex','UniverSheetsPlugin','UniverInstanceType','type','MUTATION','stringify','asObservable','end','IConfigService','toStringTag','Inject','SetColHiddenMutation','DimensionOutlineErrorReason','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','invalid-range','forEach','subUnitId','SetDimensionOutlineCollapsedCommand','reason','RemoveDimensionOutlineCommand','result','DimensionOutlineAxis','UNIVER_SHEET','AddDimensionOutlineCommand','has','UniverProSheetsOutline','Crossing','interceptCommand','@univerjs/sheets','IUniverInstanceService','move','2042292EaBPmU','depth','transformOutlinesByInsert','clear-range-not-contain-outline','InsertRowCommand','find','move-splits-outline','UniverSheetsOutlinePlugin','includes','startRow','_outlines','message','axis','registerCommand','1007664QUBJpD','error$','range','IUndoRedoService','sheet.mutation.set-dimension-outline-collapsed','string','fromRange','ClearDimensionOutlinesCommand','hasDimensionOutlineViewPermission','operators','ClearDimensionOutlinesMutation','min','max','TransformDimensionOutlinesMutation','sourceEnd','removeUnit','max-depth'];_0x1d7f=function(){return _0x320968;};return _0x1d7f();}
|
|
1
|
+
function _0x108c(_0x192833,_0x23bc08){_0x192833=_0x192833-0xbc;const _0x444734=_0x4447();let _0x108cc2=_0x444734[_0x192833];return _0x108cc2;}function _0x4447(){const _0x2e880a=['DependentOn','_configService','sheet.command.set-dimension-outline-collapsed','Invalid\x20dimension\x20outline\x20mutation','pop','COLUMN','UniverSheetsOutlinePlugin','getSheetId','dispose','sheets-outline.config','hasDimensionOutlineViewPermission','startWith','depth','2501916nKQJwt','_initResource','params','_resourceManagerService','_sheetsOutlineModel','_initRegisterCommand','interceptCommand','find','split','clear','CommandType','_sheetsOutlineErrorService','ClearDimensionOutlinesCommand','redos','defineProperty','CLEAR_RANGE_NOT_CONTAIN_OUTLINE','ROW','27320TMUKmF','sheet.command.clear-dimension-outlines','pluginName','join','Module','SheetsOutlineErrorService','1407093astemi','getRowCount','operators','IUniverInstanceService','endRow','sheet.mutation.set-dimension-outline-collapsed','rxjs','permissionPointUpdate$','TransformDimensionOutlinesMutation','SetColHiddenMutation','range','move-splits-outline','delete','AddDimensionOutlineMutation','min','default','object','startRow','1124263NCXfam','set','string','row','transformOutlinesByInsert','_outlines','RemoveDimensionOutlineMutation','decorate','end','Disposable','maxDepth','WorksheetViewPermission','change$','call','buildDimensionOutlineTree','emit','InsertRowCommand','InsertColCommand','getActiveSheet','Invalid\x20outline\x20range','next','337785HZMAnf','_error$','getSheetCommandTarget','values','IPermissionService','length','CustomCommandExecutionError','getUnit','IUndoRedoService','sort','_injector','maxIndex','MAX_DEPTH','_change$','map','error$','removeUnit','result','Subject','symbol','undos','localeCompare','add','version','getSheetBySheetId','SetRowVisibleMutation','sheet.mutation.transform-dimension-outlines','transformOutlinesByDelete','destinationIndex','prototype','some','insert','Crossing','sequenceExecute','UniverSheetsPlugin','UNKNOWN','Inject','_ensureUnitOutlines','MUTATION','count','1.0.2','unitId','UniverCore','registerCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','mergedOutlines','_sheetInterceptorService','deserialize','_getCommandScope','split\x20dimension\x20outline','UniverSheets','ICommandService','sourceEnd','176700kSKLlx','startColumn','toRange','rxjs/operators','registerPluginResource','Plugin','iterator','push','setConfig','_univerInstanceService','clear-range-not-contain-outline','get','filter','getOwnPropertyDescriptor','collapsed','exports','sourceStart','children','message','max-depth','sheet.command.add-dimension-outline','sheet.command.remove-dimension-outline','start','DimensionOutlineErrorReason','outline','Crossing\x20dimension\x20outlines\x20are\x20not\x20allowed','_config','complete','WorkbookViewPermission','asObservable','@univerjs/sheets','UniverProSheetsOutline','pipe','disposeWithMe','name','INVALID_RANGE','@univerjs-pro/sheets-outline','function','constructor','amd','invalid-range','ClearDimensionOutlinesMutation','18VjFlvz','preUndos','UniverProLicense','RemoveColCommand','720vJzeeH','setOutlines','stringify','endColumn','@univerjs-pro/license','RemoveDimensionOutlineCommand','type','forEach','toStringTag','move','mergedOutline','debounceTime','UNIVER_SHEET','crossing','dimension-outline-','SetDimensionOutlineCollapsedMutation','getOutlines','has','MOVE_SPLITS_OUTLINE','sheet.mutation.add-dimension-outline','restoreOutlines','out-of-bounds','SheetPermissionCheckController','index','DimensionOutlineAxis','packageName','fromRange','outlineId','getUnitOutlines','_commandService','pushUndoRedo','Dimension\x20outline\x20depth\x20cannot\x20exceed\x20','includes','reason','merge','canAddDimensionOutline','AddDimensionOutlineCommand','serialize','UniverInstanceType','column','MoveColsCommand','onStarting','axis','798658ASKuOU','unknown','subUnitId','valid','Move\x20would\x20split\x20dimension\x20outline:\x20','offset','DimensionOutlineError','COMMAND'];_0x4447=function(){return _0x2e880a;};return _0x4447();}(function(_0x3cfc89,_0x4951aa){const _0x3dd5b5=_0x108c,_0x4b6260=_0x3cfc89();while(!![]){try{const _0x18e32e=parseInt(_0x3dd5b5(0x12f))/0x1+parseInt(_0x3dd5b5(0x188))/0x2+parseInt(_0x3dd5b5(0xd3))/0x3+-parseInt(_0x3dd5b5(0xbc))/0x4+-parseInt(_0x3dd5b5(0xfa))/0x5*(parseInt(_0x3dd5b5(0x159))/0x6)+-parseInt(_0x3dd5b5(0xe5))/0x7+parseInt(_0x3dd5b5(0xcd))/0x8*(parseInt(_0x3dd5b5(0x15d))/0x9);if(_0x18e32e===_0x4951aa)break;else _0x4b6260['push'](_0x4b6260['shift']());}catch(_0x238e59){_0x4b6260['push'](_0x4b6260['shift']());}}}(_0x4447,0x5071d),function(_0x369f8b,_0x5e502b){const _0x4f9f45=_0x108c;typeof exports==_0x4f9f45(0xe3)&&typeof module<'u'?_0x5e502b(exports,require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license')):typeof define==_0x4f9f45(0x154)&&define[_0x4f9f45(0x156)]?define([_0x4f9f45(0x13e),'@univerjs/core',_0x4f9f45(0x14d),_0x4f9f45(0xd9),_0x4f9f45(0x132),_0x4f9f45(0x161)],_0x5e502b):(_0x369f8b=typeof globalThis<'u'?globalThis:_0x369f8b||self,_0x5e502b(_0x369f8b[_0x4f9f45(0x14e)]={},_0x369f8b[_0x4f9f45(0x124)],_0x369f8b[_0x4f9f45(0x12c)],_0x369f8b[_0x4f9f45(0xd9)],_0x369f8b['rxjs'][_0x4f9f45(0xd5)],_0x369f8b[_0x4f9f45(0x15b)]));}(this,function(_0x548ebf,_0x1bfc8b,_0x1349f0,_0x49dce8,_0x2f5655,_0x2da048){const _0x40b04a=_0x108c;Object[_0x40b04a(0xca)](_0x548ebf,Symbol[_0x40b04a(0x165)],{'value':_0x40b04a(0xd1)});let _0x59ce2c=function(_0x3e8a16){const _0x4486b3=_0x40b04a;return _0x3e8a16[_0x4486b3(0xcc)]=_0x4486b3(0xe8),_0x3e8a16[_0x4486b3(0x195)]=_0x4486b3(0x184),_0x3e8a16;}({}),_0x31de7f=function(_0x169173){const _0x12454e=_0x40b04a;return _0x169173[_0x12454e(0x152)]=_0x12454e(0x157),_0x169173['OUT_OF_BOUNDS']=_0x12454e(0x172),_0x169173['CROSSING']=_0x12454e(0x16a),_0x169173[_0x12454e(0x106)]='max-depth',_0x169173[_0x12454e(0x16f)]=_0x12454e(0xde),_0x169173[_0x12454e(0xcb)]='clear-range-not-contain-outline',_0x169173[_0x12454e(0x11d)]=_0x12454e(0x189),_0x169173;}({});var _0x49a3ce=class extends Error{constructor(_0x5867cc,_0x91c547,_0x3c4fd3){const _0x13803f=_0x40b04a;super(_0x91c547),this[_0x13803f(0x17e)]=_0x5867cc,this['outlineId']=_0x3c4fd3,this[_0x13803f(0x151)]=_0x13803f(0x18e);}};function _0x11b222(_0x4cd020){const _0x60cdb1=_0x40b04a;return _0x4cd020 instanceof _0x49a3ce?_0x4cd020[_0x60cdb1(0x17e)]:_0x4cd020 instanceof Error?_0x4cd020[_0x60cdb1(0x141)][_0x60cdb1(0x17d)](_0x60cdb1(0x12b))?_0x60cdb1(0xde):_0x4cd020[_0x60cdb1(0x141)]['includes'](_0x60cdb1(0x19c))?'max-depth':_0x4cd020[_0x60cdb1(0x141)][_0x60cdb1(0x17d)](_0x60cdb1(0x11a))?_0x60cdb1(0x16a):_0x4cd020[_0x60cdb1(0x141)][_0x60cdb1(0x17d)]('range')?_0x60cdb1(0x157):'unknown':_0x60cdb1(0x189);}function _0x272753(_0x136da8){const _0x33e2f8=_0x40b04a;return _0x136da8 instanceof _0x49a3ce?_0x136da8[_0x33e2f8(0x178)]:void 0x0;}let _0x11e042=0x2**0x35-0x1;function _0x35aadb(_0x2724b4,_0x48392a){const _0x585fe2=_0x40b04a;return _0x2724b4[_0x585fe2(0x123)]===_0x48392a[_0x585fe2(0x123)]&&_0x2724b4[_0x585fe2(0x18a)]===_0x48392a[_0x585fe2(0x18a)]&&_0x2724b4[_0x585fe2(0x187)]===_0x48392a['axis'];}function _0x2a6a78(_0x564ab8,_0x2af50e={}){const _0xf8ddd2=_0x40b04a;let _0x2d5029=_0x2af50e[_0xf8ddd2(0xef)]??0x8,_0x30d471=new Map();for(let _0x1d627e of _0x564ab8){let _0x1eb8a1=_0x1d627e['unitId']+':'+_0x1d627e[_0xf8ddd2(0x18a)]+':'+_0x1d627e[_0xf8ddd2(0x187)],_0x2d7f74=_0x30d471[_0xf8ddd2(0x13a)](_0x1eb8a1);_0x2d7f74?_0x2d7f74['push'](_0x1d627e):_0x30d471[_0xf8ddd2(0xe6)](_0x1eb8a1,[_0x1d627e]);}let _0x405d3d=[];for(let _0x131f0d of _0x30d471[_0xf8ddd2(0xfd)]()){let _0x2abfa2=[..._0x131f0d][_0xf8ddd2(0x103)](_0x2e1329),_0x1772c0=[];for(let _0x4f3976 of _0x2abfa2){for(_0x29b502(_0x4f3976);_0x1772c0[_0xf8ddd2(0xff)]>0x0&&_0x4f3976[_0xf8ddd2(0x145)]>_0x1772c0[_0x1772c0[_0xf8ddd2(0xff)]-0x1]['end'];)_0x1772c0[_0xf8ddd2(0x194)]();let _0x59644e=_0x1772c0[_0x1772c0[_0xf8ddd2(0xff)]-0x1];if(_0x59644e&&_0x4f3976[_0xf8ddd2(0xed)]>_0x59644e[_0xf8ddd2(0xed)])throw new _0x49a3ce('crossing',_0xf8ddd2(0x148),_0x4f3976['id']);let _0x3337f4=_0x59644e?_0x59644e['depth']+0x1:0x1;if(_0x3337f4>_0x2d5029)throw new _0x49a3ce(_0xf8ddd2(0x142),_0xf8ddd2(0x17c)+_0x2d5029,_0x4f3976['id']);let _0x35706d={..._0x4f3976,'depth':_0x3337f4,'parentId':_0x59644e==null?void 0x0:_0x59644e['id'],'anchor':_0x4f3976[_0xf8ddd2(0xed)],'children':[]};_0x59644e?_0x59644e[_0xf8ddd2(0x140)][_0xf8ddd2(0x136)](_0x35706d):_0x405d3d['push'](_0x35706d),_0x1772c0[_0xf8ddd2(0x136)](_0x35706d);}}return _0x405d3d;}function _0x19a930(_0x13a576,_0x568241,_0x3463f4={}){const _0x2781f1=_0x40b04a;if(_0x568241['start']<0x0||_0x568241[_0x2781f1(0x145)]>_0x568241[_0x2781f1(0xed)])return{'valid':!0x1,'reason':_0x2781f1(0x157)};if(_0x3463f4[_0x2781f1(0x105)]!=null&&_0x568241[_0x2781f1(0xed)]>=_0x3463f4[_0x2781f1(0x105)])return{'valid':!0x1,'reason':_0x2781f1(0x172)};let _0x50b3bc=_0x13a576[_0x2781f1(0x13b)](_0x5eb27f=>_0x35aadb(_0x5eb27f,_0x568241));for(let _0x5e8517 of _0x50b3bc)if(_0x31d536(_0x5e8517,_0x568241))return{'valid':!0x1,'reason':_0x2781f1(0x16a)};try{_0x2a6a78([..._0x13a576,_0x568241],_0x3463f4);}catch(_0x225f21){let _0x3c408c=_0x11b222(_0x225f21);return _0x3c408c===_0x2781f1(0x142)?{'valid':!0x1,'reason':_0x2781f1(0x142)}:_0x3c408c===_0x2781f1(0x157)?{'valid':!0x1,'reason':_0x2781f1(0x157)}:{'valid':!0x1,'reason':'crossing'};}return{'valid':!0x0};}function _0x17ede1(_0x3ee498,_0x4b37d0,_0x4b11f7={}){const _0x594958=_0x40b04a;let _0x2e591c=_0x19a930(_0x3ee498,_0x4b37d0,_0x4b11f7);if(!_0x2e591c[_0x594958(0x18b)])throw Error(_0x2e591c['reason']??'invalid-dimension-outline');return[..._0x3ee498,_0x4b37d0];}function _0x478419(_0x1ccada,_0x4260c8){const _0x581d29=_0x40b04a;let _0x5ac3bc=_0x4260c8[_0x581d29(0x145)],_0x341313=_0x4260c8[_0x581d29(0xed)],_0x1f9019=[],_0x2ec76a=!0x0;for(;_0x2ec76a;){_0x2ec76a=!0x1;for(let _0x1e4af4 of _0x1ccada)!_0x1f9019[_0x581d29(0x17d)](_0x1e4af4)&&_0x35aadb(_0x1e4af4,_0x4260c8)&&_0x1ea73e(_0x1e4af4[_0x581d29(0x145)],_0x1e4af4[_0x581d29(0xed)],_0x5ac3bc,_0x341313)&&(_0x1f9019[_0x581d29(0x136)](_0x1e4af4),_0x5ac3bc=Math[_0x581d29(0xe1)](_0x5ac3bc,_0x1e4af4['start']),_0x341313=Math['max'](_0x341313,_0x1e4af4[_0x581d29(0xed)]),_0x2ec76a=!0x0);}if(_0x1f9019[_0x581d29(0xff)]===0x0)return null;let [_0x351992]=[..._0x1f9019][_0x581d29(0x103)](_0x2e1329);return{'mergedOutline':{..._0x351992,'start':_0x5ac3bc,'end':_0x341313},'mergedOutlines':_0x1f9019};}function _0x48a8f5(_0xcbc6c6,_0x180158){const _0x2fba09=_0x40b04a;return _0xcbc6c6[_0x2fba09(0x13b)](_0x42ceda=>!_0x35aadb(_0x42ceda,_0x180158)||!(_0x42ceda['start']>=_0x180158[_0x2fba09(0x145)]&&_0x42ceda[_0x2fba09(0xed)]<=_0x180158['end']));}function _0x4d2898(_0x5b592c,_0x40c388,_0x2da05d,_0x1bd5e2){const _0x22ace1=_0x40b04a;return _0x4b69b8(_0x5b592c[_0x22ace1(0x13b)](_0x47b96e=>_0x47b96e[_0x22ace1(0x123)]===_0x40c388&&_0x47b96e[_0x22ace1(0x18a)]===_0x2da05d&&_0x47b96e[_0x22ace1(0x187)]===_0x1bd5e2&&_0x47b96e[_0x22ace1(0x13d)])[_0x22ace1(0x108)](_0x5cb1fa=>({'start':_0x5cb1fa[_0x22ace1(0x145)],'end':_0x5cb1fa[_0x22ace1(0xed)]})));}function _0x4b69b8(_0x24b475){const _0x2c8f0b=_0x40b04a;if(_0x24b475[_0x2c8f0b(0xff)]===0x0)return[];let _0x1bbcc5=[..._0x24b475][_0x2c8f0b(0x103)]((_0x7e2e85,_0x588333)=>_0x7e2e85[_0x2c8f0b(0x145)]-_0x588333[_0x2c8f0b(0x145)]||_0x7e2e85[_0x2c8f0b(0xed)]-_0x588333[_0x2c8f0b(0xed)]),_0x4558bb=[];for(let _0x1269e4 of _0x1bbcc5){let _0x139f4b=_0x4558bb[_0x4558bb[_0x2c8f0b(0xff)]-0x1];!_0x139f4b||_0x1269e4[_0x2c8f0b(0x145)]>_0x139f4b[_0x2c8f0b(0xed)]+0x1?_0x4558bb[_0x2c8f0b(0x136)]({..._0x1269e4}):_0x139f4b['end']=Math['max'](_0x139f4b['end'],_0x1269e4[_0x2c8f0b(0xed)]);}return _0x4558bb;}function _0x3ddb88(_0x5db1f4,_0x484cf2){const _0x5aee76=_0x40b04a;return _0x484cf2[_0x5aee76(0x121)]<=0x0?_0x5db1f4:_0x36b560(_0x5db1f4['map'](_0x14dea2=>_0x35aadb(_0x14dea2,_0x484cf2)?_0x484cf2['index']<=_0x14dea2[_0x5aee76(0x145)]?{..._0x14dea2,'start':_0x14dea2['start']+_0x484cf2[_0x5aee76(0x121)],'end':_0x14dea2[_0x5aee76(0xed)]+_0x484cf2[_0x5aee76(0x121)]}:_0x14dea2[_0x5aee76(0x145)]<_0x484cf2[_0x5aee76(0x174)]&&_0x484cf2[_0x5aee76(0x174)]<=_0x14dea2['end']?{..._0x14dea2,'end':_0x14dea2[_0x5aee76(0xed)]+_0x484cf2['count']}:_0x14dea2:_0x14dea2));}function _0x1fbe99(_0x250620,_0x39bb7b){const _0x5f5b6d=_0x40b04a;if(_0x39bb7b[_0x5f5b6d(0x145)]>_0x39bb7b[_0x5f5b6d(0xed)])return _0x250620;let _0x5e3531=_0x39bb7b['end']-_0x39bb7b[_0x5f5b6d(0x145)]+0x1,_0x3fe837=[];for(let _0x53166b of _0x250620){if(!_0x35aadb(_0x53166b,_0x39bb7b)){_0x3fe837[_0x5f5b6d(0x136)](_0x53166b);continue;}if(_0x53166b[_0x5f5b6d(0xed)]<_0x39bb7b['start']){_0x3fe837['push'](_0x53166b);continue;}if(_0x53166b[_0x5f5b6d(0x145)]>_0x39bb7b[_0x5f5b6d(0xed)]){_0x3fe837[_0x5f5b6d(0x136)]({..._0x53166b,'start':_0x53166b[_0x5f5b6d(0x145)]-_0x5e3531,'end':_0x53166b[_0x5f5b6d(0xed)]-_0x5e3531});continue;}let _0xbde0b2=Math['max'](_0x53166b[_0x5f5b6d(0x145)],_0x39bb7b[_0x5f5b6d(0x145)]),_0x1a6835=Math[_0x5f5b6d(0xe1)](_0x53166b[_0x5f5b6d(0xed)],_0x39bb7b[_0x5f5b6d(0xed)]),_0x4cc659=Math['max'](0x0,_0x1a6835-_0xbde0b2+0x1),_0x470c0f=_0x53166b[_0x5f5b6d(0xed)]-_0x53166b[_0x5f5b6d(0x145)]+0x1-_0x4cc659;if(_0x470c0f<=0x0)continue;let _0x2f85fe=_0x53166b[_0x5f5b6d(0x145)]<_0x39bb7b['start']?_0x53166b['start']:_0x39bb7b[_0x5f5b6d(0x145)];_0x3fe837[_0x5f5b6d(0x136)]({..._0x53166b,'start':_0x2f85fe,'end':_0x2f85fe+_0x470c0f-0x1});}return _0x36b560(_0x3fe837);}function _0x5322fd(_0x59d059,_0x5dce8a){const _0x1010a8=_0x40b04a;if(_0x5dce8a[_0x1010a8(0x13f)]>_0x5dce8a[_0x1010a8(0x12e)])return _0x59d059;let _0x5674ce=[];for(let _0xfbf1b2 of _0x59d059){if(!_0x35aadb(_0xfbf1b2,_0x5dce8a)){_0x5674ce[_0x1010a8(0x136)](_0xfbf1b2);continue;}let _0x3e0bc3=_0x3e1e30(_0xfbf1b2,_0x5dce8a);if(_0x3e0bc3[_0x1010a8(0x163)]===_0x1010a8(0xc4))throw new _0x49a3ce(_0x1010a8(0xde),_0x1010a8(0x18c)+_0xfbf1b2['id'],_0xfbf1b2['id']);_0x5674ce[_0x1010a8(0x136)](_0x3e0bc3[_0x1010a8(0x147)]);}return _0x36b560(_0x5674ce);}function _0x3e1e30(_0x30bac3,_0x1d5b3d){const _0x19479e=_0x40b04a;let _0xce11eb=_0x4881f0(_0x1d5b3d[_0x19479e(0x13f)],_0x1d5b3d[_0x19479e(0x12e)]+0x1,_0x1d5b3d[_0x19479e(0x116)]),_0x5f0fd4=[],_0x332fc9={'start':_0x30bac3[_0x19479e(0x145)],'end':_0x30bac3[_0x19479e(0xed)]+0x1};for(let _0x1de4ee of _0xce11eb){let _0x4435cb=_0xfe920a(_0x332fc9,_0x1de4ee[_0x19479e(0xdd)]);_0x4435cb&&_0x5f0fd4[_0x19479e(0x136)]({'start':_0x4435cb[_0x19479e(0x145)]+_0x1de4ee['offset'],'end':_0x4435cb[_0x19479e(0xed)]+_0x1de4ee[_0x19479e(0x18d)]});}let _0x9b7d1d=_0x1c295c(_0x5f0fd4);return _0x9b7d1d[_0x19479e(0xff)]===0x1?{'type':'ok','outline':{..._0x30bac3,'start':_0x9b7d1d[0x0][_0x19479e(0x145)],'end':_0x9b7d1d[0x0][_0x19479e(0xed)]-0x1}}:{'type':_0x19479e(0xc4),'outline':_0x30bac3,'ranges':_0x9b7d1d};}function _0x4881f0(_0xe368ee,_0x1cabcc,_0x9bb112){let _0x3a3cda=_0x1cabcc-_0xe368ee;if(_0x3a3cda<=0x0)throw Error('Invalid\x20dimension\x20outline\x20move\x20source\x20range');return _0x9bb112>=_0xe368ee&&_0x9bb112<=_0x1cabcc?[{'range':{'start':0x0,'end':_0x11e042},'offset':0x0}]:_0x9bb112<_0xe368ee?[{'range':{'start':0x0,'end':_0x9bb112},'offset':0x0},{'range':{'start':_0x9bb112,'end':_0xe368ee},'offset':_0x3a3cda},{'range':{'start':_0xe368ee,'end':_0x1cabcc},'offset':_0x9bb112-_0xe368ee},{'range':{'start':_0x1cabcc,'end':_0x11e042},'offset':0x0}]:[{'range':{'start':0x0,'end':_0xe368ee},'offset':0x0},{'range':{'start':_0xe368ee,'end':_0x1cabcc},'offset':_0x9bb112-_0x1cabcc},{'range':{'start':_0x1cabcc,'end':_0x9bb112},'offset':-_0x3a3cda},{'range':{'start':_0x9bb112,'end':_0x11e042},'offset':0x0}];}function _0xfe920a(_0x4e7725,_0xad2750){const _0x382f02=_0x40b04a;let _0x218198=Math['max'](_0x4e7725[_0x382f02(0x145)],_0xad2750[_0x382f02(0x145)]),_0x559c11=Math[_0x382f02(0xe1)](_0x4e7725[_0x382f02(0xed)],_0xad2750['end']);return _0x218198>=_0x559c11?null:{'start':_0x218198,'end':_0x559c11};}function _0x1c295c(_0x25f413){const _0x18b963=_0x40b04a;if(_0x25f413[_0x18b963(0xff)]===0x0)return[];let _0x555e92=[..._0x25f413]['sort']((_0x2fcc87,_0x5e489d)=>_0x2fcc87[_0x18b963(0x145)]-_0x5e489d['start']||_0x2fcc87[_0x18b963(0xed)]-_0x5e489d[_0x18b963(0xed)]),_0x1a6ff3=[];for(let _0x434099 of _0x555e92){let _0x356e06=_0x1a6ff3[_0x1a6ff3[_0x18b963(0xff)]-0x1];!_0x356e06||_0x434099[_0x18b963(0x145)]>_0x356e06[_0x18b963(0xed)]?_0x1a6ff3[_0x18b963(0x136)]({..._0x434099}):_0x356e06[_0x18b963(0xed)]=Math['max'](_0x356e06[_0x18b963(0xed)],_0x434099['end']);}return _0x1a6ff3;}function _0x1ea73e(_0x547b4e,_0x307d17,_0x3d0575,_0x35298b){return _0x307d17+0x1===_0x3d0575||_0x35298b+0x1===_0x547b4e;}function _0x36b560(_0x10b82a){let _0x191b6b=_0x4fd963(_0x10b82a);return _0x2a6a78(_0x191b6b),_0x191b6b;}function _0x4fd963(_0x2f6bfe){const _0x230d68=_0x40b04a;let _0x58bbf3=new Map();for(let _0x541d42 of _0x2f6bfe){let _0x56f809=[_0x541d42[_0x230d68(0x123)],_0x541d42['subUnitId'],_0x541d42[_0x230d68(0x187)],_0x541d42[_0x230d68(0x145)],_0x541d42['end']][_0x230d68(0xd0)](':'),_0x1c5bb4=_0x58bbf3['get'](_0x56f809);if(!_0x1c5bb4){_0x58bbf3[_0x230d68(0xe6)](_0x56f809,_0x541d42);continue;}_0x58bbf3[_0x230d68(0xe6)](_0x56f809,{..._0x1c5bb4,'collapsed':_0x1c5bb4[_0x230d68(0x13d)]||_0x541d42['collapsed']});}return Array['from'](_0x58bbf3[_0x230d68(0xfd)]());}function _0x2e1329(_0x362576,_0x19f887){const _0x1b2f92=_0x40b04a;return _0x362576[_0x1b2f92(0x123)]===_0x19f887['unitId']?_0x362576['subUnitId']===_0x19f887[_0x1b2f92(0x18a)]?_0x362576[_0x1b2f92(0x187)]===_0x19f887['axis']?_0x362576[_0x1b2f92(0x145)]===_0x19f887[_0x1b2f92(0x145)]?_0x19f887['end']-_0x362576[_0x1b2f92(0xed)]:_0x362576[_0x1b2f92(0x145)]-_0x19f887[_0x1b2f92(0x145)]:_0x362576['axis'][_0x1b2f92(0x10f)](_0x19f887['axis']):_0x362576[_0x1b2f92(0x18a)]['localeCompare'](_0x19f887[_0x1b2f92(0x18a)]):_0x362576[_0x1b2f92(0x123)][_0x1b2f92(0x10f)](_0x19f887[_0x1b2f92(0x123)]);}function _0x29b502(_0x36d223){const _0x18c15b=_0x40b04a;if(_0x36d223['start']>_0x36d223[_0x18c15b(0xed)])throw new _0x49a3ce(_0x18c15b(0x157),_0x18c15b(0xf8),_0x36d223['id']);}function _0x31d536(_0x5798ec,_0xe36dc8){const _0x290e35=_0x40b04a;let _0x452760=_0x5798ec[_0x290e35(0x145)]<=_0xe36dc8[_0x290e35(0xed)]&&_0xe36dc8['start']<=_0x5798ec[_0x290e35(0xed)],_0x2296f0=_0x5798ec[_0x290e35(0x145)]<=_0xe36dc8[_0x290e35(0x145)]&&_0xe36dc8[_0x290e35(0xed)]<=_0x5798ec[_0x290e35(0xed)],_0x2851e8=_0xe36dc8[_0x290e35(0x145)]<=_0x5798ec['start']&&_0x5798ec['end']<=_0xe36dc8['end'];return _0x452760&&!_0x2296f0&&!_0x2851e8;}function _0x40d2f9(_0x3a18e5){'@babel/helpers - typeof';const _0x5c104e=_0x40b04a;return _0x40d2f9=typeof Symbol==_0x5c104e(0x154)&&typeof Symbol[_0x5c104e(0x135)]==_0x5c104e(0x10d)?function(_0x30e66a){return typeof _0x30e66a;}:function(_0x72891b){const _0x1fb0a9=_0x5c104e;return _0x72891b&&typeof Symbol==_0x1fb0a9(0x154)&&_0x72891b[_0x1fb0a9(0x155)]===Symbol&&_0x72891b!==Symbol[_0x1fb0a9(0x117)]?'symbol':typeof _0x72891b;},_0x40d2f9(_0x3a18e5);}function _0x1868a1(_0x165eee,_0x2dc0e8){const _0x30f073=_0x40b04a;if(_0x40d2f9(_0x165eee)!='object'||!_0x165eee)return _0x165eee;var _0x459cbe=_0x165eee[Symbol['toPrimitive']];if(_0x459cbe!==void 0x0){var _0x3d7cd3=_0x459cbe[_0x30f073(0xf2)](_0x165eee,_0x2dc0e8||_0x30f073(0xe2));if(_0x40d2f9(_0x3d7cd3)!=_0x30f073(0xe3))return _0x3d7cd3;throw TypeError(_0x30f073(0x126));}return(_0x2dc0e8===_0x30f073(0xe7)?String:Number)(_0x165eee);}function _0x34b0b5(_0x2f5931){var _0xbffd6b=_0x1868a1(_0x2f5931,'string');return _0x40d2f9(_0xbffd6b)=='symbol'?_0xbffd6b:_0xbffd6b+'';}function _0x365a78(_0x2dc107,_0x7bb776,_0x350fb1){const _0x2175fb=_0x40b04a;return(_0x7bb776=_0x34b0b5(_0x7bb776))in _0x2dc107?Object[_0x2175fb(0xca)](_0x2dc107,_0x7bb776,{'value':_0x350fb1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2dc107[_0x7bb776]=_0x350fb1,_0x2dc107;}var _0x59094b=class extends _0x1bfc8b[_0x40b04a(0xee)]{constructor(..._0x5614b0){const _0xc55bd=_0x40b04a;super(..._0x5614b0),_0x365a78(this,'_outlines',new Map()),_0x365a78(this,_0xc55bd(0x107),new _0x49dce8[(_0xc55bd(0x10c))]()),_0x365a78(this,_0xc55bd(0xf1),this['_change$']['asObservable']());}['getOutlines'](_0x50e12c,_0x29c178){const _0x307f7b=_0x40b04a;var _0x4be19d;return[...((_0x4be19d=this['_outlines'][_0x307f7b(0x13a)](_0x50e12c))==null?void 0x0:_0x4be19d['get'](_0x29c178))??[]];}[_0x40b04a(0x179)](_0x211fae){const _0x260c67=_0x40b04a;let _0x48fdff=this[_0x260c67(0xea)][_0x260c67(0x13a)](_0x211fae),_0x1e925e=new Map();return _0x48fdff==null||_0x48fdff[_0x260c67(0x164)]((_0x1a4ea9,_0x55210d)=>{const _0x188d01=_0x260c67;_0x1e925e[_0x188d01(0xe6)](_0x55210d,[..._0x1a4ea9]);}),_0x1e925e;}[_0x40b04a(0x15e)](_0x4fb4d0,_0x27ff36,_0x334b1b){const _0x4eebc8=_0x40b04a;this[_0x4eebc8(0x11f)](_0x4fb4d0)[_0x4eebc8(0xe6)](_0x27ff36,[..._0x334b1b]),this[_0x4eebc8(0x107)]['next']({'unitId':_0x4fb4d0,'subUnitId':_0x27ff36});}['removeUnit'](_0x5b4565){const _0x514222=_0x40b04a;this['_outlines'][_0x514222(0xdf)](_0x5b4565),this['_change$'][_0x514222(0xf9)]({'unitId':_0x5b4565});}[_0x40b04a(0x182)](_0x3b05aa){const _0x242dce=_0x40b04a;let _0x17c53a=this[_0x242dce(0xea)][_0x242dce(0x13a)](_0x3b05aa),_0x1611e7={};return _0x17c53a==null||_0x17c53a['forEach']((_0x59fa95,_0x23c47e)=>{_0x1611e7[_0x23c47e]={'outlineList':[..._0x59fa95]};}),_0x1611e7;}[_0x40b04a(0x129)](_0x5589e1,_0xa23fe5){const _0x5bc919=_0x40b04a;let _0x5dd3c7=new Map();Object['entries'](_0xa23fe5)['forEach'](([_0x3aa52a,_0x168048])=>{const _0x39fb06=_0x108c;_0x5dd3c7[_0x39fb06(0xe6)](_0x3aa52a,[..._0x168048['outlineList']??[]]);}),this[_0x5bc919(0xea)][_0x5bc919(0xe6)](_0x5589e1,_0x5dd3c7),this[_0x5bc919(0x107)][_0x5bc919(0xf9)]({'unitId':_0x5589e1});}[_0x40b04a(0x198)](){const _0xb6ef3=_0x40b04a;super['dispose'](),this[_0xb6ef3(0xea)][_0xb6ef3(0xc5)](),this[_0xb6ef3(0x107)][_0xb6ef3(0x14a)]();}[_0x40b04a(0x11f)](_0x197aa0){const _0x5c4042=_0x40b04a;let _0x1cdab9=this['_outlines'][_0x5c4042(0x13a)](_0x197aa0);return _0x1cdab9||(_0x1cdab9=new Map(),this[_0x5c4042(0xea)][_0x5c4042(0xe6)](_0x197aa0,_0x1cdab9)),_0x1cdab9;}},_0x9be8a4=class extends _0x1bfc8b[_0x40b04a(0xee)]{constructor(..._0x458291){const _0x538347=_0x40b04a;super(..._0x458291),_0x365a78(this,'_error$',new _0x49dce8['Subject']()),_0x365a78(this,_0x538347(0x109),this[_0x538347(0xfb)][_0x538347(0x14c)]());}[_0x40b04a(0xf4)](_0x1ad6f2){const _0xe67e7f=_0x40b04a;this['_error$'][_0xe67e7f(0xf9)](_0x1ad6f2);}[_0x40b04a(0x198)](){const _0x2c0337=_0x40b04a;super[_0x2c0337(0x198)](),this[_0x2c0337(0xfb)][_0x2c0337(0x14a)]();}};let _0x1f2a85={'id':_0x40b04a(0x170),'type':_0x1bfc8b['CommandType']['MUTATION'],'handler':(_0x3685b2,_0x55cbab)=>{const _0x3df7a7=_0x40b04a;let _0x129ed4=_0x3685b2[_0x3df7a7(0x13a)](_0x59094b),_0x28db7c=_0x129ed4['getOutlines'](_0x55cbab[_0x3df7a7(0x123)],_0x55cbab[_0x3df7a7(0x18a)]);return _0x129ed4['setOutlines'](_0x55cbab[_0x3df7a7(0x123)],_0x55cbab[_0x3df7a7(0x18a)],_0x17ede1(_0x28db7c,_0x55cbab[_0x3df7a7(0x147)])),!0x0;}},_0x3bdced={'id':'sheet.mutation.remove-dimension-outline','type':_0x1bfc8b['CommandType'][_0x40b04a(0x120)],'handler':(_0x217560,_0x2abfda)=>{const _0x21e577=_0x40b04a;let _0x37699e=_0x217560[_0x21e577(0x13a)](_0x59094b),_0x5d4953=_0x37699e[_0x21e577(0x16d)](_0x2abfda[_0x21e577(0x123)],_0x2abfda[_0x21e577(0x18a)]);return _0x37699e[_0x21e577(0x15e)](_0x2abfda[_0x21e577(0x123)],_0x2abfda[_0x21e577(0x18a)],_0x5d4953[_0x21e577(0x13b)](_0xa580a6=>_0xa580a6['id']!==_0x2abfda[_0x21e577(0x178)])),!0x0;}};function _0x253bf1(_0xb6361a,_0x518986,_0x402103){const _0x15338c=_0x40b04a;let _0x3c7e7a=_0x3a0fde(_0xb6361a);return!_0x3c7e7a||_0x3c7e7a['permissionCheckWithoutRange']({'workbookTypes':[_0x1349f0[_0x15338c(0x14b)]],'worksheetTypes':[_0x1349f0[_0x15338c(0xf0)]]},_0x518986,_0x402103);}function _0x1ccc12(_0x20a777,_0x36df75,_0x324e0c){const _0x14b833=_0x40b04a;let _0x5aac19=_0x53a669(_0x20a777);return((_0x5aac19==null?void 0x0:_0x5aac19[_0x14b833(0xda)])??(0x0,_0x49dce8['of'])(null))[_0x14b833(0x14f)]((0x0,_0x2f5655[_0x14b833(0x168)])(0x64),(0x0,_0x2f5655[_0x14b833(0x19b)])(null),(0x0,_0x2f5655['map'])(()=>_0x253bf1(_0x20a777,_0x36df75,_0x324e0c)));}function _0x3a0fde(_0xd9d2a5){const _0x177d8f=_0x40b04a;if(typeof _0xd9d2a5[_0x177d8f(0x16e)]==_0x177d8f(0x154)&&!_0xd9d2a5[_0x177d8f(0x16e)](_0x1349f0[_0x177d8f(0x173)]))return null;try{return _0xd9d2a5[_0x177d8f(0x13a)](_0x1349f0['SheetPermissionCheckController']);}catch{return null;}}function _0x53a669(_0x2fd784){const _0x14730a=_0x40b04a;if(typeof _0x2fd784['has']==_0x14730a(0x154)&&!_0x2fd784[_0x14730a(0x16e)](_0x1bfc8b['IPermissionService']))return null;try{return _0x2fd784[_0x14730a(0x13a)](_0x1bfc8b[_0x14730a(0xfe)]);}catch{return null;}}let _0x952f6a={'id':_0x40b04a(0x143),'type':_0x1bfc8b[_0x40b04a(0xc6)]['COMMAND'],'handler':(_0x4c9329,_0x2ccbe1)=>{const _0x3bff94=_0x40b04a;if(!_0x2ccbe1)return!0x1;let _0x413418=(0x0,_0x1349f0[_0x3bff94(0xfc)])(_0x4c9329[_0x3bff94(0x13a)](_0x1bfc8b[_0x3bff94(0xd6)]),_0x2ccbe1);if(!_0x413418)return!0x1;let {unitId:_0x5a397c,subUnitId:_0x13f4b1,worksheet:_0x220531}=_0x413418;if(!_0x253bf1(_0x4c9329,_0x5a397c,_0x13f4b1))return!0x1;let _0x449065=_0x4c9329[_0x3bff94(0x13a)](_0x59094b),_0x19bbe2={'id':_0x3bff94(0x16b)+(0x0,_0x1bfc8b['generateRandomId'])(0x6),'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'axis':_0x2ccbe1[_0x3bff94(0x187)],'start':_0x2ccbe1[_0x3bff94(0x145)],'end':_0x2ccbe1[_0x3bff94(0xed)],'collapsed':!0x1},_0x36f168=_0x2ccbe1['axis']==='row'?_0x220531[_0x3bff94(0xd4)]():_0x220531['getColumnCount'](),_0x16b63c=_0x449065['getOutlines'](_0x5a397c,_0x13f4b1),_0x3ec5d8=_0x478419(_0x16b63c,_0x19bbe2),_0x48884e=(_0x3ec5d8==null?void 0x0:_0x3ec5d8[_0x3bff94(0x127)])??[],_0x49e54f=(_0x3ec5d8==null?void 0x0:_0x3ec5d8[_0x3bff94(0x167)])??_0x19bbe2,_0x544212=_0x19a930(_0x3ec5d8?_0x16b63c[_0x3bff94(0x13b)](_0x3beffe=>!_0x48884e[_0x3bff94(0x118)](_0x29c087=>_0x29c087['id']===_0x3beffe['id'])):_0x16b63c,_0x49e54f,{'maxIndex':_0x36f168});if(!_0x544212['valid'])return _0x4c9329[_0x3bff94(0x13a)](_0x9be8a4)[_0x3bff94(0xf4)]({'reason':_0x544212['reason']??_0x3bff94(0x189),'commandId':_0x952f6a['id'],'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'axis':_0x2ccbe1[_0x3bff94(0x187)],'outlineId':_0x49e54f['id']}),!0x1;let _0x541770=[..._0x48884e[_0x3bff94(0x108)](_0x4ae106=>({'id':_0x3bdced['id'],'params':{'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'outlineId':_0x4ae106['id']}})),{'id':_0x1f2a85['id'],'params':{'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'outline':_0x49e54f}}],_0xdc3ef2=[{'id':_0x3bdced['id'],'params':{'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'outlineId':_0x49e54f['id']}},..._0x48884e[_0x3bff94(0x108)](_0x420a79=>({'id':_0x1f2a85['id'],'params':{'unitId':_0x5a397c,'subUnitId':_0x13f4b1,'outline':_0x420a79}}))];return(0x0,_0x1bfc8b[_0x3bff94(0x11b)])(_0x541770,_0x4c9329[_0x3bff94(0x13a)](_0x1bfc8b[_0x3bff94(0x12d)]))[_0x3bff94(0x10b)]?(_0x4c9329[_0x3bff94(0x13a)](_0x1bfc8b[_0x3bff94(0x102)])[_0x3bff94(0x17b)]({'unitID':_0x5a397c,'undoMutations':_0xdc3ef2,'redoMutations':_0x541770}),!0x0):!0x1;}},_0x5997ef={'id':'sheet.mutation.clear-dimension-outlines','type':_0x1bfc8b[_0x40b04a(0xc6)]['MUTATION'],'handler':(_0xa999fb,_0x40423f)=>{const _0x2bdc74=_0x40b04a;let _0x78f657=_0xa999fb['get'](_0x59094b),_0x568c51=_0x78f657[_0x2bdc74(0x16d)](_0x40423f['unitId'],_0x40423f[_0x2bdc74(0x18a)]);return _0x78f657[_0x2bdc74(0x15e)](_0x40423f[_0x2bdc74(0x123)],_0x40423f[_0x2bdc74(0x18a)],_0x48a8f5(_0x568c51,_0x40423f)),!0x0;}},_0x4ea615={'id':_0x40b04a(0xce),'type':_0x1bfc8b['CommandType'][_0x40b04a(0x18f)],'handler':(_0x2986e8,_0x324cac)=>{const _0x1f8b8d=_0x40b04a;if(!_0x324cac)return!0x1;let _0x3b6d1c=(0x0,_0x1349f0['getSheetCommandTarget'])(_0x2986e8[_0x1f8b8d(0x13a)](_0x1bfc8b[_0x1f8b8d(0xd6)]),_0x324cac);if(!_0x3b6d1c)return!0x1;let {unitId:_0x33864c,subUnitId:_0x356877}=_0x3b6d1c;if(!_0x253bf1(_0x2986e8,_0x33864c,_0x356877))return!0x1;let _0x33bd11={'unitId':_0x33864c,'subUnitId':_0x356877,'axis':_0x324cac['axis'],'start':_0x324cac['start'],'end':_0x324cac[_0x1f8b8d(0xed)]},_0x32d99d=_0x2986e8['get'](_0x59094b)[_0x1f8b8d(0x16d)](_0x33864c,_0x356877)[_0x1f8b8d(0x13b)](_0x4bbf3d=>_0x35aadb(_0x4bbf3d,_0x33bd11)&&_0x4bbf3d[_0x1f8b8d(0x145)]>=_0x324cac['start']&&_0x4bbf3d[_0x1f8b8d(0xed)]<=_0x324cac[_0x1f8b8d(0xed)]);if(_0x32d99d[_0x1f8b8d(0xff)]===0x0)return _0x2986e8[_0x1f8b8d(0x13a)](_0x9be8a4)[_0x1f8b8d(0xf4)]({'reason':_0x1f8b8d(0x139),'commandId':_0x4ea615['id'],'unitId':_0x33864c,'subUnitId':_0x356877,'axis':_0x324cac[_0x1f8b8d(0x187)]}),!0x1;let _0x3f0ace=[{'id':_0x5997ef['id'],'params':{..._0x33bd11,'removedOutlineIds':_0x32d99d[_0x1f8b8d(0x108)](_0x5fcd=>_0x5fcd['id'])}}],_0x267936=_0x32d99d[_0x1f8b8d(0x108)](_0x1b6412=>({'id':_0x1f2a85['id'],'params':{'unitId':_0x33864c,'subUnitId':_0x356877,'outline':_0x1b6412}}));return(0x0,_0x1bfc8b[_0x1f8b8d(0x11b)])(_0x3f0ace,_0x2986e8[_0x1f8b8d(0x13a)](_0x1bfc8b['ICommandService']))['result']?(_0x2986e8['get'](_0x1bfc8b[_0x1f8b8d(0x102)])['pushUndoRedo']({'unitID':_0x33864c,'undoMutations':_0x267936,'redoMutations':_0x3f0ace}),!0x0):!0x1;}},_0x8a92d1={'id':_0x40b04a(0x144),'type':_0x1bfc8b[_0x40b04a(0xc6)]['COMMAND'],'handler':(_0x5a91cf,_0x2b49b5)=>{const _0x361831=_0x40b04a;if(!_0x2b49b5)return!0x1;let _0x426cfc=(0x0,_0x1349f0[_0x361831(0xfc)])(_0x5a91cf[_0x361831(0x13a)](_0x1bfc8b[_0x361831(0xd6)]),_0x2b49b5);if(!_0x426cfc)return!0x1;let {unitId:_0x573d70,subUnitId:_0x53f1fc}=_0x426cfc;if(!_0x253bf1(_0x5a91cf,_0x573d70,_0x53f1fc))return!0x1;let _0x1b3af0=_0x5a91cf['get'](_0x59094b)[_0x361831(0x16d)](_0x573d70,_0x53f1fc)[_0x361831(0xc3)](_0x181833=>_0x181833['id']===_0x2b49b5[_0x361831(0x178)]);if(!_0x1b3af0)return!0x1;let _0x377e04=[{'id':_0x3bdced['id'],'params':{'unitId':_0x573d70,'subUnitId':_0x53f1fc,'outlineId':_0x1b3af0['id'],'outline':_0x1b3af0}}],_0x471e6b=[{'id':_0x1f2a85['id'],'params':{'unitId':_0x573d70,'subUnitId':_0x53f1fc,'outline':_0x1b3af0}}];return(0x0,_0x1bfc8b[_0x361831(0x11b)])(_0x377e04,_0x5a91cf[_0x361831(0x13a)](_0x1bfc8b[_0x361831(0x12d)]))['result']?(_0x5a91cf[_0x361831(0x13a)](_0x1bfc8b[_0x361831(0x102)])[_0x361831(0x17b)]({'unitID':_0x573d70,'undoMutations':_0x471e6b,'redoMutations':_0x377e04}),!0x0):!0x1;}},_0x362a2c={'id':_0x40b04a(0xd8),'type':_0x1bfc8b['CommandType'][_0x40b04a(0x120)],'handler':(_0x4e8654,_0x4fc459)=>{const _0x4ffa95=_0x40b04a;let _0x177c80=_0x4e8654[_0x4ffa95(0x13a)](_0x59094b),_0x3e6ce0=_0x177c80[_0x4ffa95(0x16d)](_0x4fc459[_0x4ffa95(0x123)],_0x4fc459[_0x4ffa95(0x18a)]),_0x4224d8=_0x3e6ce0[_0x4ffa95(0xc3)](_0x5d5eab=>_0x5d5eab['id']===_0x4fc459[_0x4ffa95(0x178)]);return _0x4224d8&&_0x177c80[_0x4ffa95(0x15e)](_0x4fc459[_0x4ffa95(0x123)],_0x4fc459['subUnitId'],_0x3e6ce0[_0x4ffa95(0x108)](_0x4f0bd1=>_0x4f0bd1[_0x4ffa95(0x123)]!==_0x4224d8[_0x4ffa95(0x123)]||_0x4f0bd1['subUnitId']!==_0x4224d8[_0x4ffa95(0x18a)]||_0x4f0bd1[_0x4ffa95(0x187)]!==_0x4224d8[_0x4ffa95(0x187)]||_0x4f0bd1[_0x4ffa95(0x145)]!==_0x4224d8[_0x4ffa95(0x145)]||_0x4f0bd1[_0x4ffa95(0xed)]!==_0x4224d8[_0x4ffa95(0xed)]?_0x4f0bd1:{..._0x4f0bd1,'collapsed':_0x4fc459[_0x4ffa95(0x13d)]})),!0x0;}};function _0x15e9b8(_0x5e3d12,_0x110310,_0x3662d4,_0x5b1493){const _0x13ec86=_0x40b04a;return _0x5e3d12===_0x13ec86(0xe8)?{'startRow':_0x110310,'endRow':_0x3662d4,'startColumn':0x0,'endColumn':_0x5b1493['getMaxColumns']()-0x1}:{'startRow':0x0,'endRow':_0x5b1493[_0x13ec86(0xd4)]()-0x1,'startColumn':_0x110310,'endColumn':_0x3662d4};}function _0x4fabeb(_0x5dd6b6){const _0x30bd4a=_0x40b04a;return _0x5dd6b6===_0x30bd4a(0xe8)?_0x1349f0['SetRowHiddenMutation']['id']:_0x1349f0[_0x30bd4a(0xdc)]['id'];}function _0x45014b(_0x15c4a9){const _0x58cf88=_0x40b04a;return _0x15c4a9===_0x58cf88(0xe8)?_0x1349f0[_0x58cf88(0x113)]['id']:_0x1349f0['SetColVisibleMutation']['id'];}function _0x2076f0(_0xd881cf,_0x36d453,_0x3b579b,_0x12062f){const _0x5e896d=_0x40b04a;let _0x4f6448=_0x36d453?[_0x15e9b8(_0xd881cf['axis'],_0xd881cf[_0x5e896d(0x145)],_0xd881cf['end'],_0x3b579b)]:_0x5e97cf(_0xd881cf,_0x12062f,_0x3b579b),_0x499033=_0x36d453?_0x4fabeb(_0xd881cf['axis']):_0x45014b(_0xd881cf[_0x5e896d(0x187)]);return[{'id':_0x362a2c['id'],'params':{'unitId':_0xd881cf[_0x5e896d(0x123)],'subUnitId':_0xd881cf[_0x5e896d(0x18a)],'outlineId':_0xd881cf['id'],'outline':_0xd881cf,'collapsed':_0x36d453}},..._0x4f6448['map'](_0x323ebc=>({'id':_0x499033,'params':{'unitId':_0xd881cf[_0x5e896d(0x123)],'subUnitId':_0xd881cf[_0x5e896d(0x18a)],'ranges':[_0x323ebc],'dimensionOutlineId':_0xd881cf['id']}}))];}function _0x5e97cf(_0x107d4a,_0x41576b,_0x277536){const _0x24cb1d=_0x40b04a;let _0x172042=_0x4d2898(_0x41576b['map'](_0x5983f3=>_0x1ee330(_0x5983f3,_0x107d4a)?{..._0x5983f3,'collapsed':!0x1}:_0x5983f3),_0x107d4a[_0x24cb1d(0x123)],_0x107d4a[_0x24cb1d(0x18a)],_0x107d4a['axis']);return _0x1e434c({'start':_0x107d4a[_0x24cb1d(0x145)],'end':_0x107d4a[_0x24cb1d(0xed)]},_0x172042)[_0x24cb1d(0x108)](_0x5cb5ef=>_0x15e9b8(_0x107d4a[_0x24cb1d(0x187)],_0x5cb5ef[_0x24cb1d(0x145)],_0x5cb5ef[_0x24cb1d(0xed)],_0x277536));}function _0x1ee330(_0x2b0be3,_0x59f616){const _0x95c9c9=_0x40b04a;return _0x2b0be3[_0x95c9c9(0x123)]===_0x59f616[_0x95c9c9(0x123)]&&_0x2b0be3['subUnitId']===_0x59f616['subUnitId']&&_0x2b0be3[_0x95c9c9(0x187)]===_0x59f616[_0x95c9c9(0x187)]&&_0x2b0be3[_0x95c9c9(0x145)]===_0x59f616[_0x95c9c9(0x145)]&&_0x2b0be3[_0x95c9c9(0xed)]===_0x59f616['end'];}function _0x1e434c(_0x450ec9,_0x250869){const _0x266f97=_0x40b04a;let _0x2706a2=_0x450ec9[_0x266f97(0x145)],_0x12118c=[];for(let _0x37b5f5 of _0x250869)if(!(_0x37b5f5[_0x266f97(0xed)]<_0x2706a2||_0x37b5f5[_0x266f97(0x145)]>_0x450ec9[_0x266f97(0xed)])&&(_0x37b5f5[_0x266f97(0x145)]>_0x2706a2&&_0x12118c[_0x266f97(0x136)]({'start':_0x2706a2,'end':Math[_0x266f97(0xe1)](_0x37b5f5[_0x266f97(0x145)]-0x1,_0x450ec9['end'])}),_0x2706a2=Math['max'](_0x2706a2,_0x37b5f5[_0x266f97(0xed)]+0x1),_0x2706a2>_0x450ec9[_0x266f97(0xed)]))break;return _0x2706a2<=_0x450ec9[_0x266f97(0xed)]&&_0x12118c[_0x266f97(0x136)]({'start':_0x2706a2,'end':_0x450ec9[_0x266f97(0xed)]}),_0x12118c;}let _0x1d728a={'id':_0x40b04a(0x192),'type':_0x1bfc8b[_0x40b04a(0xc6)][_0x40b04a(0x18f)],'handler':(_0xdb57c8,_0x59920e)=>{const _0x56d8d9=_0x40b04a;if(!_0x59920e)return!0x1;let _0x38d167=(0x0,_0x1349f0[_0x56d8d9(0xfc)])(_0xdb57c8[_0x56d8d9(0x13a)](_0x1bfc8b['IUniverInstanceService']),_0x59920e);if(!_0x38d167)return!0x1;let {unitId:_0x33e4f9,subUnitId:_0x46f976,worksheet:_0x39effd}=_0x38d167;if(!_0x253bf1(_0xdb57c8,_0x33e4f9,_0x46f976))return!0x1;let _0x448c03=_0xdb57c8['get'](_0x59094b)[_0x56d8d9(0x16d)](_0x33e4f9,_0x46f976),_0x39b3f3=_0x448c03[_0x56d8d9(0xc3)](_0x361d09=>_0x361d09['id']===_0x59920e[_0x56d8d9(0x178)]);if(!_0x39b3f3||_0x39b3f3[_0x56d8d9(0x13d)]===_0x59920e['collapsed'])return!0x1;let _0x4b027a=_0x2076f0(_0x39b3f3,_0x59920e[_0x56d8d9(0x13d)],_0x39effd,_0x448c03),_0x229255=_0x2076f0(_0x39b3f3,!_0x59920e[_0x56d8d9(0x13d)],_0x39effd,_0x448c03);return(0x0,_0x1bfc8b[_0x56d8d9(0x11b)])(_0x4b027a,_0xdb57c8['get'](_0x1bfc8b[_0x56d8d9(0x12d)]))[_0x56d8d9(0x10b)]?(_0xdb57c8[_0x56d8d9(0x13a)](_0x1bfc8b[_0x56d8d9(0x102)])[_0x56d8d9(0x17b)]({'unitID':_0x33e4f9,'undoMutations':_0x229255,'redoMutations':_0x4b027a}),!0x0):!0x1;}},_0x14effe={'id':_0x40b04a(0x114),'type':_0x1bfc8b[_0x40b04a(0xc6)][_0x40b04a(0x120)],'handler':(_0x3cc4c4,_0x220c2f)=>{const _0x5781bf=_0x40b04a;let _0x5a4ca2=_0x3cc4c4[_0x5781bf(0x13a)](_0x59094b),_0x48b639=_0x1c4915(_0x5a4ca2[_0x5781bf(0x16d)](_0x220c2f[_0x5781bf(0x123)],_0x220c2f[_0x5781bf(0x18a)]),_0x220c2f);return _0x5a4ca2[_0x5781bf(0x15e)](_0x220c2f[_0x5781bf(0x123)],_0x220c2f[_0x5781bf(0x18a)],_0x48b639),!0x0;}};function _0x1c4915(_0x5671fd,_0x3963ab){const _0x33036f=_0x40b04a;switch(_0x3963ab[_0x33036f(0x163)]){case _0x33036f(0x119):return _0x3963ab[_0x33036f(0x171)]?_0x338819(_0x5671fd,_0x3963ab):_0x3ddb88(_0x5671fd,_0x3963ab);case _0x33036f(0xdf):return _0x1fbe99(_0x5671fd,_0x3963ab);case _0x33036f(0x166):return _0x5322fd(_0x5671fd,_0x3963ab);}}function _0x338819(_0x253939,_0x3f80bf){const _0x46c803=_0x40b04a;return[..._0x253939[_0x46c803(0x13b)](_0x37e564=>_0x37e564[_0x46c803(0x123)]!==_0x3f80bf[_0x46c803(0x123)]||_0x37e564[_0x46c803(0x18a)]!==_0x3f80bf[_0x46c803(0x18a)]||_0x37e564[_0x46c803(0x187)]!==_0x3f80bf[_0x46c803(0x187)]),..._0x3f80bf[_0x46c803(0x171)]];}let _0x4bb432='SHEET_OUTLINE_PLUGIN';var _0x125004=_0x40b04a(0x153),_0x87ade2=_0x40b04a(0x122);let _0x229e5b={};function _0x56eec0(_0x4d24b4,_0x5454be){return function(_0x2ff175,_0x3a0ca6){_0x5454be(_0x2ff175,_0x3a0ca6,_0x4d24b4);};}function _0xa2a049(_0x426a58,_0x4207ce,_0x310fcc,_0x2d3cec){const _0x231b96=_0x40b04a;var _0x18f1b8=arguments[_0x231b96(0xff)],_0x124c4c=_0x18f1b8<0x3?_0x4207ce:_0x2d3cec===null?_0x2d3cec=Object[_0x231b96(0x13c)](_0x4207ce,_0x310fcc):_0x2d3cec,_0x5ec86a;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x124c4c=Reflect[_0x231b96(0xec)](_0x426a58,_0x4207ce,_0x310fcc,_0x2d3cec);else{for(var _0xeb9ad=_0x426a58[_0x231b96(0xff)]-0x1;_0xeb9ad>=0x0;_0xeb9ad--)(_0x5ec86a=_0x426a58[_0xeb9ad])&&(_0x124c4c=(_0x18f1b8<0x3?_0x5ec86a(_0x124c4c):_0x18f1b8>0x3?_0x5ec86a(_0x4207ce,_0x310fcc,_0x124c4c):_0x5ec86a(_0x4207ce,_0x310fcc))||_0x124c4c);}return _0x18f1b8>0x3&&_0x124c4c&&Object[_0x231b96(0xca)](_0x4207ce,_0x310fcc,_0x124c4c),_0x124c4c;}let _0xa30acc={'redos':[],'undos':[],'preRedos':[],'preUndos':[]},_0x29865c=class extends _0x1bfc8b[_0x40b04a(0xee)]{constructor(_0x53427a,_0x5bf8b8,_0x56bfb1,_0x2826d1){const _0x271354=_0x40b04a;super(),this[_0x271354(0x138)]=_0x53427a,this[_0x271354(0x128)]=_0x5bf8b8,this[_0x271354(0xc0)]=_0x56bfb1,this[_0x271354(0xc7)]=_0x2826d1,this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0xe03aea=_0x40b04a;this[_0xe03aea(0x150)](this[_0xe03aea(0x128)][_0xe03aea(0xc2)]({'getMutations':_0x2c23d0=>_0x57aaa0(_0x2c23d0,(_0x1d0279,_0x4eb70c)=>this['_sheetsOutlineModel']['getOutlines'](_0x1d0279,_0x4eb70c),this[_0xe03aea(0x12a)](_0x2c23d0[_0xe03aea(0xbe)]),_0x5ed494=>this[_0xe03aea(0xc7)][_0xe03aea(0xf4)](_0x5ed494))}));}[_0x40b04a(0x12a)](_0x327759){const _0x5b2c15=_0x40b04a;let _0x378a3e=_0x327759,_0x2c6436=_0x378a3e!=null&&_0x378a3e[_0x5b2c15(0x123)]?this[_0x5b2c15(0x138)][_0x5b2c15(0x101)](_0x378a3e[_0x5b2c15(0x123)],_0x1bfc8b['UniverInstanceType'][_0x5b2c15(0x169)]):this[_0x5b2c15(0x138)]['getCurrentUnitOfType'](_0x1bfc8b['UniverInstanceType'][_0x5b2c15(0x169)]);if(!_0x2c6436)return;let _0x2ffb63=_0x378a3e!=null&&_0x378a3e[_0x5b2c15(0x18a)]?_0x2c6436[_0x5b2c15(0x112)](_0x378a3e[_0x5b2c15(0x18a)]):_0x2c6436[_0x5b2c15(0xf7)]();if(_0x2ffb63)return{'unitId':_0x2c6436['getUnitId'](),'subUnitId':_0x2ffb63[_0x5b2c15(0x197)]()};}};_0x29865c=_0xa2a049([_0x56eec0(0x0,_0x1bfc8b[_0x40b04a(0xd6)]),_0x56eec0(0x1,(0x0,_0x1bfc8b[_0x40b04a(0x11e)])(_0x1349f0['SheetInterceptorService'])),_0x56eec0(0x2,(0x0,_0x1bfc8b[_0x40b04a(0x11e)])(_0x59094b)),_0x56eec0(0x3,(0x0,_0x1bfc8b[_0x40b04a(0x11e)])(_0x9be8a4))],_0x29865c);function _0x57aaa0(_0x21f244,_0x29a3ef,_0x2df5a5,_0x56b995){const _0x3c9a8f=_0x40b04a;let _0x63059b=_0x502ec1(_0x21f244,_0x2df5a5);if(!_0x63059b)return _0x36ec3d();let _0x50f4a0=_0x29a3ef(_0x63059b['unitId'],_0x63059b[_0x3c9a8f(0x18a)]);if(!_0x50f4a0['some'](_0x107e67=>_0x107e67[_0x3c9a8f(0x187)]===_0x63059b[_0x3c9a8f(0x187)]))return _0x36ec3d();_0x12fb68(_0x50f4a0,_0x63059b,_0x21f244['id'],_0x56b995);let _0x396144=_0x573634(_0x63059b,_0x50f4a0);return{'redos':[{'id':_0x14effe['id'],'params':_0x63059b}],'undos':[{'id':_0x14effe['id'],'params':_0x396144}],'preRedos':[],'preUndos':[]};}function _0x12fb68(_0x163de7,_0x4fe355,_0x437fa6,_0x20463d){const _0x251411=_0x40b04a;try{switch(_0x4fe355['type']){case'insert':_0x3ddb88(_0x163de7,_0x4fe355);break;case _0x251411(0xdf):_0x1fbe99(_0x163de7,_0x4fe355);break;case _0x251411(0x166):_0x5322fd(_0x163de7,_0x4fe355);}}catch(_0x3af097){throw _0x20463d==null||_0x20463d({'reason':_0x11b222(_0x3af097),'commandId':_0x437fa6,'unitId':_0x4fe355[_0x251411(0x123)],'subUnitId':_0x4fe355[_0x251411(0x18a)],'axis':_0x4fe355[_0x251411(0x187)],'outlineId':_0x272753(_0x3af097)}),new _0x1bfc8b[(_0x251411(0x100))](_0x3af097 instanceof Error?_0x3af097[_0x251411(0x141)]:_0x251411(0x193));}}function _0x502ec1(_0x6e6888,_0x55a612){const _0x5e2554=_0x40b04a;switch(_0x6e6888['id']){case _0x1349f0[_0x5e2554(0xf5)]['id']:return _0x3c9f13(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0xe8),_0x55a612);case _0x1349f0[_0x5e2554(0xf6)]['id']:return _0x3c9f13(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0x184),_0x55a612);case _0x1349f0['RemoveRowCommand']['id']:return _0x3df7b3(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0xe8),_0x55a612);case _0x1349f0[_0x5e2554(0x15c)]['id']:return _0x3df7b3(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0x184),_0x55a612);case _0x1349f0['MoveRowsCommand']['id']:return _0x24389b(_0x6e6888['params'],_0x5e2554(0xe8),_0x55a612);case _0x1349f0[_0x5e2554(0x185)]['id']:return _0x24389b(_0x6e6888[_0x5e2554(0xbe)],_0x5e2554(0x184),_0x55a612);default:return null;}}function _0x3c9f13(_0x29161c,_0x4abfcf,_0xa335ae){const _0x221364=_0x40b04a;let _0x43e2af=_0x8c7feb(_0x29161c,_0xa335ae);if(!(_0x29161c!=null&&_0x29161c[_0x221364(0xdd)])||!_0x43e2af)return null;let _0x46a100=_0x4abfcf===_0x221364(0xe8)?_0x29161c[_0x221364(0xdd)]['startRow']:_0x29161c[_0x221364(0xdd)][_0x221364(0x130)],_0x1ae18d=_0x4abfcf==='row'?_0x29161c['range'][_0x221364(0xd7)]:_0x29161c[_0x221364(0xdd)][_0x221364(0x160)];return{..._0x43e2af,'axis':_0x4abfcf,'type':_0x221364(0x119),'index':_0x46a100,'count':_0x1ae18d-_0x46a100+0x1};}function _0x3df7b3(_0x1731c7,_0x3ad028,_0x893b20){const _0x655b99=_0x40b04a;let _0x20f16f=_0x8c7feb(_0x1731c7,_0x893b20);if(!(_0x1731c7!=null&&_0x1731c7[_0x655b99(0xdd)])||!_0x20f16f)return null;let _0x2f7654=_0x3ad028===_0x655b99(0xe8)?_0x1731c7[_0x655b99(0xdd)][_0x655b99(0xe4)]:_0x1731c7[_0x655b99(0xdd)][_0x655b99(0x130)],_0x41f7ff=_0x3ad028===_0x655b99(0xe8)?_0x1731c7['range'][_0x655b99(0xd7)]:_0x1731c7[_0x655b99(0xdd)][_0x655b99(0x160)];return{..._0x20f16f,'axis':_0x3ad028,'type':_0x655b99(0xdf),'start':_0x2f7654,'end':_0x41f7ff};}function _0x24389b(_0x24a883,_0xc0ff28,_0x3c9915){const _0x19a9ca=_0x40b04a;let _0x4fa428=_0x8c7feb(_0x24a883,_0x3c9915);if(!(_0x24a883!=null&&_0x24a883['fromRange'])||!_0x24a883[_0x19a9ca(0x131)]||!_0x4fa428)return null;let _0x5c0540=_0xc0ff28===_0x19a9ca(0xe8)?_0x24a883[_0x19a9ca(0x177)][_0x19a9ca(0xe4)]:_0x24a883[_0x19a9ca(0x177)][_0x19a9ca(0x130)],_0x166fd8=_0xc0ff28===_0x19a9ca(0xe8)?_0x24a883['fromRange']['endRow']:_0x24a883[_0x19a9ca(0x177)]['endColumn'],_0x221555=_0xc0ff28==='row'?_0x24a883[_0x19a9ca(0x131)][_0x19a9ca(0xe4)]:_0x24a883[_0x19a9ca(0x131)]['startColumn'];return{..._0x4fa428,'axis':_0xc0ff28,'type':_0x19a9ca(0x166),'sourceStart':_0x5c0540,'sourceEnd':_0x166fd8,'destinationIndex':_0x221555};}function _0x573634(_0x4cc072,_0x46bcd4){const _0x51146f=_0x40b04a;switch(_0x4cc072[_0x51146f(0x163)]){case _0x51146f(0x119):return{'unitId':_0x4cc072[_0x51146f(0x123)],'subUnitId':_0x4cc072['subUnitId'],'axis':_0x4cc072['axis'],'type':'delete','start':_0x4cc072[_0x51146f(0x174)],'end':_0x4cc072[_0x51146f(0x174)]+_0x4cc072[_0x51146f(0x121)]-0x1};case _0x51146f(0xdf):return{'unitId':_0x4cc072[_0x51146f(0x123)],'subUnitId':_0x4cc072[_0x51146f(0x18a)],'axis':_0x4cc072['axis'],'type':_0x51146f(0x119),'index':_0x4cc072[_0x51146f(0x145)],'count':_0x4cc072['end']-_0x4cc072[_0x51146f(0x145)]+0x1,'restoreOutlines':_0x46bcd4['filter'](_0x1494d7=>_0x1494d7[_0x51146f(0x123)]===_0x4cc072['unitId']&&_0x1494d7[_0x51146f(0x18a)]===_0x4cc072[_0x51146f(0x18a)]&&_0x1494d7[_0x51146f(0x187)]===_0x4cc072['axis'])};case _0x51146f(0x166):return _0x210788(_0x4cc072);}}function _0x210788(_0x588139){const _0x191404=_0x40b04a;let _0xec0a80=_0x588139[_0x191404(0x12e)]-_0x588139['sourceStart']+0x1;return _0x588139[_0x191404(0x116)]>=_0x588139[_0x191404(0x13f)]&&_0x588139['destinationIndex']<=_0x588139['sourceEnd']+0x1?{..._0x588139}:_0x588139[_0x191404(0x116)]>_0x588139[_0x191404(0x12e)]+0x1?{..._0x588139,'sourceStart':_0x588139['destinationIndex']-_0xec0a80,'sourceEnd':_0x588139['destinationIndex']-0x1,'destinationIndex':_0x588139['sourceStart']}:{..._0x588139,'sourceStart':_0x588139[_0x191404(0x116)],'sourceEnd':_0x588139[_0x191404(0x116)]+_0xec0a80-0x1,'destinationIndex':_0x588139['sourceEnd']+0x1};}function _0x8c7feb(_0x50ab67,_0x19691e){const _0x5e0901=_0x40b04a;let _0x445550=(_0x50ab67==null?void 0x0:_0x50ab67[_0x5e0901(0x123)])??(_0x19691e==null?void 0x0:_0x19691e[_0x5e0901(0x123)]),_0x423a93=(_0x50ab67==null?void 0x0:_0x50ab67[_0x5e0901(0x18a)])??(_0x19691e==null?void 0x0:_0x19691e[_0x5e0901(0x18a)]);return _0x445550&&_0x423a93?{'unitId':_0x445550,'subUnitId':_0x423a93}:null;}function _0x36ec3d(){const _0x332f89=_0x40b04a;return{'redos':[..._0xa30acc[_0x332f89(0xc9)]],'undos':[..._0xa30acc[_0x332f89(0x10e)]],'preRedos':[..._0xa30acc['preRedos']??[]],'preUndos':[..._0xa30acc[_0x332f89(0x15a)]??[]]};}let _0x355c76=class extends _0x1bfc8b[_0x40b04a(0xee)]{constructor(_0x21c182,_0x3a631b){const _0x54f1b2=_0x40b04a;super(),this[_0x54f1b2(0xbf)]=_0x21c182,this['_sheetsOutlineModel']=_0x3a631b,this[_0x54f1b2(0xbd)]();}['_initResource'](){const _0x2d9f8a=_0x40b04a;this[_0x2d9f8a(0x150)](this[_0x2d9f8a(0xbf)][_0x2d9f8a(0x133)]({'pluginName':_0x4bb432,'businesses':[_0x1bfc8b[_0x2d9f8a(0x183)][_0x2d9f8a(0x169)]],'toJson':_0x2193d6=>JSON[_0x2d9f8a(0x15f)](this['_sheetsOutlineModel'][_0x2d9f8a(0x182)](_0x2193d6)),'parseJson':_0x1c814b=>JSON['parse'](_0x1c814b),'onLoad':(_0x22fb23,_0x5088d7)=>this['_sheetsOutlineModel'][_0x2d9f8a(0x129)](_0x22fb23,_0x5088d7),'onUnLoad':_0xc02c9d=>this['_sheetsOutlineModel'][_0x2d9f8a(0x10a)](_0xc02c9d)}));}};_0x355c76=_0xa2a049([_0x56eec0(0x0,_0x1bfc8b['IResourceManagerService']),_0x56eec0(0x1,(0x0,_0x1bfc8b['Inject'])(_0x59094b))],_0x355c76);let _0x410006=class extends _0x1bfc8b[_0x40b04a(0x134)]{constructor(_0x1f6635=_0x229e5b,_0x371dd5,_0x4a29ad,_0x1cacd9){const _0x531e6c=_0x40b04a;super(),this[_0x531e6c(0x149)]=_0x1f6635,this[_0x531e6c(0x104)]=_0x371dd5,this[_0x531e6c(0x17a)]=_0x4a29ad,this[_0x531e6c(0x191)]=_0x1cacd9;let {..._0x799e6e}=(0x0,_0x1bfc8b[_0x531e6c(0x17f)])({},_0x229e5b,this[_0x531e6c(0x149)]);this['_configService'][_0x531e6c(0x137)](_0x531e6c(0x199),_0x799e6e);}[_0x40b04a(0x186)](){const _0x39a511=_0x40b04a;this['_injector'][_0x39a511(0x110)]([_0x59094b]),this[_0x39a511(0x104)][_0x39a511(0x110)]([_0x9be8a4]),this[_0x39a511(0x104)][_0x39a511(0x110)]([_0x355c76]),this[_0x39a511(0x104)][_0x39a511(0x110)]([_0x29865c]),this[_0x39a511(0xc1)](),this[_0x39a511(0x104)][_0x39a511(0x13a)](_0x59094b),this['_injector'][_0x39a511(0x13a)](_0x9be8a4),this['_injector']['get'](_0x355c76),this[_0x39a511(0x104)][_0x39a511(0x13a)](_0x29865c);}[_0x40b04a(0xc1)](){const _0x4e1342=_0x40b04a;[_0x952f6a,_0x8a92d1,_0x1d728a,_0x4ea615]['forEach'](_0x3ec182=>{const _0x4b8973=_0x108c;this[_0x4b8973(0x150)](this[_0x4b8973(0x17a)][_0x4b8973(0x125)](_0x3ec182));}),[_0x1f2a85,_0x3bdced,_0x362a2c,_0x5997ef,_0x14effe][_0x4e1342(0x164)](_0x47e210=>{const _0x116238=_0x4e1342;this[_0x116238(0x150)](this[_0x116238(0x17a)][_0x116238(0x125)](_0x47e210));});}};_0x365a78(_0x410006,_0x40b04a(0xcf),_0x4bb432),_0x365a78(_0x410006,_0x40b04a(0x176),_0x125004),_0x365a78(_0x410006,_0x40b04a(0x111),_0x87ade2),_0x365a78(_0x410006,_0x40b04a(0x163),_0x1bfc8b['UniverInstanceType'][_0x40b04a(0x169)]),_0x410006=_0xa2a049([(0x0,_0x1bfc8b[_0x40b04a(0x190)])(_0x2da048['UniverLicensePlugin'],_0x1349f0[_0x40b04a(0x11c)]),_0x56eec0(0x1,(0x0,_0x1bfc8b[_0x40b04a(0x11e)])(_0x1bfc8b['Injector'])),_0x56eec0(0x2,_0x1bfc8b[_0x40b04a(0x12d)]),_0x56eec0(0x3,_0x1bfc8b['IConfigService'])],_0x410006),_0x548ebf[_0x40b04a(0x181)]=_0x952f6a,_0x548ebf[_0x40b04a(0xe0)]=_0x1f2a85,_0x548ebf[_0x40b04a(0xc8)]=_0x4ea615,_0x548ebf[_0x40b04a(0x158)]=_0x5997ef,_0x548ebf[_0x40b04a(0x175)]=_0x59ce2c,_0x548ebf[_0x40b04a(0x146)]=_0x31de7f,_0x548ebf[_0x40b04a(0x162)]=_0x8a92d1,_0x548ebf[_0x40b04a(0xeb)]=_0x3bdced,_0x548ebf['SHEET_OUTLINE_PLUGIN']=_0x4bb432,_0x548ebf['SetDimensionOutlineCollapsedCommand']=_0x1d728a,_0x548ebf[_0x40b04a(0x16c)]=_0x362a2c,_0x548ebf[_0x40b04a(0xd2)]=_0x9be8a4,_0x548ebf['SheetsOutlineModel']=_0x59094b,_0x548ebf[_0x40b04a(0xdb)]=_0x14effe,Object[_0x40b04a(0xca)](_0x548ebf,_0x40b04a(0x196),{'enumerable':!0x0,'get':function(){return _0x410006;}}),_0x548ebf[_0x40b04a(0xf3)]=_0x2a6a78,_0x548ebf[_0x40b04a(0x180)]=_0x19a930,_0x548ebf['getDimensionOutlineViewPermission$']=_0x1ccc12,_0x548ebf[_0x40b04a(0x19a)]=_0x253bf1,_0x548ebf[_0x40b04a(0x115)]=_0x1fbe99,_0x548ebf[_0x40b04a(0xe9)]=_0x3ddb88,_0x548ebf['transformOutlinesByMove']=_0x5322fd;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-outline",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Dimension outline model integration for Univer Sheets.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"rxjs": ">=7.0.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@univerjs-pro/license": "1.0.
|
|
65
|
-
"@univerjs/core": "1.0.
|
|
66
|
-
"@univerjs/sheets": "1.0.
|
|
64
|
+
"@univerjs-pro/license": "1.0.2",
|
|
65
|
+
"@univerjs/core": "1.0.2",
|
|
66
|
+
"@univerjs/sheets": "1.0.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@univerjs-infra/shared": "1.0.
|
|
69
|
+
"@univerjs-infra/shared": "1.0.2",
|
|
70
70
|
"rxjs": "7.8.2",
|
|
71
71
|
"typescript": "^6.0.3",
|
|
72
72
|
"vitest": "^5.0.0"
|