@univerjs-pro/sheets-shape 0.21.0 → 0.21.1
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 +8 -8
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2ffec3=_0x136b;(function(_0x5b702c,_0x4695c9){const _0x3fceb8=_0x136b,_0x581608=_0x5b702c();while(!![]){try{const _0x5083fd=-parseInt(_0x3fceb8(0x1b4))/0x1*(-parseInt(_0x3fceb8(0x221))/0x2)+-parseInt(_0x3fceb8(0x202))/0x3*(-parseInt(_0x3fceb8(0x22a))/0x4)+-parseInt(_0x3fceb8(0x20b))/0x5+-parseInt(_0x3fceb8(0x214))/0x6+-parseInt(_0x3fceb8(0x204))/0x7+-parseInt(_0x3fceb8(0x205))/0x8+parseInt(_0x3fceb8(0x1d8))/0x9*(parseInt(_0x3fceb8(0x1c4))/0xa);if(_0x5083fd===_0x4695c9)break;else _0x581608['push'](_0x581608['shift']());}catch(_0x418462){_0x581608['push'](_0x581608['shift']());}}}(_0x1762,0x67805),Object[_0x2ffec3(0x229)](exports,Symbol[_0x2ffec3(0x1b6)],{'value':_0x2ffec3(0x1ec)}));function _0x136b(_0x7be385,_0x1b9db4){_0x7be385=_0x7be385-0x1ab;const _0x1762b3=_0x1762();let _0x136b31=_0x1762b3[_0x7be385];return _0x136b31;}let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_sheets_facade=require('@univerjs/sheets/facade');var FSheetsShapeEnumMixin=class extends _univerjs_core_facade[_0x2ffec3(0x1b7)]{get['ShapeTypeEnum'](){const _0x20746e=_0x2ffec3;return _univerjs_pro_engine_shape[_0x20746e(0x1ee)];}get[_0x2ffec3(0x225)](){const _0x2adb10=_0x2ffec3;return _univerjs_pro_engine_shape[_0x2adb10(0x225)];}get['ShapeGradientTypeEnum'](){const _0x6bfb64=_0x2ffec3;return _univerjs_pro_engine_shape[_0x6bfb64(0x222)];}get[_0x2ffec3(0x218)](){const _0x10f16b=_0x2ffec3;return _univerjs_pro_engine_shape[_0x10f16b(0x218)];}get[_0x2ffec3(0x23d)](){const _0x50438a=_0x2ffec3;return _univerjs_pro_engine_shape[_0x50438a(0x23d)];}get[_0x2ffec3(0x1e8)](){const _0x1e8d6b=_0x2ffec3;return _univerjs_pro_engine_shape[_0x1e8d6b(0x1e8)];}get[_0x2ffec3(0x233)](){const _0x5ebf9d=_0x2ffec3;return _univerjs_pro_engine_shape[_0x5ebf9d(0x233)];}get[_0x2ffec3(0x20a)](){return _univerjs_pro_engine_shape['ShapeArrowTypeEnum'];}get[_0x2ffec3(0x22f)](){return _univerjs_pro_engine_shape['ShapeArrowSizeEnum'];}};_univerjs_core_facade[_0x2ffec3(0x1b7)]['extend'](FSheetsShapeEnumMixin);function _typeof(_0x4f96e1){'@babel/helpers - typeof';const _0xfc47=_0x2ffec3;return _typeof='function'==typeof Symbol&&_0xfc47(0x1f6)==typeof Symbol[_0xfc47(0x1e5)]?function(_0x4175be){return typeof _0x4175be;}:function(_0x9607ff){const _0x1c511d=_0xfc47;return _0x9607ff&&_0x1c511d(0x1fc)==typeof Symbol&&_0x9607ff['constructor']===Symbol&&_0x9607ff!==Symbol[_0x1c511d(0x217)]?_0x1c511d(0x1f6):typeof _0x9607ff;},_typeof(_0x4f96e1);}function toPrimitive(_0x45ad38,_0x5a69df){const _0x3b5e84=_0x2ffec3;if(_0x3b5e84(0x23a)!=_typeof(_0x45ad38)||!_0x45ad38)return _0x45ad38;var _0x35142a=_0x45ad38[Symbol[_0x3b5e84(0x1f7)]];if(void 0x0!==_0x35142a){var _0x2bd39f=_0x35142a[_0x3b5e84(0x1db)](_0x45ad38,_0x5a69df||_0x3b5e84(0x20f));if(_0x3b5e84(0x23a)!=_typeof(_0x2bd39f))return _0x2bd39f;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return('string'===_0x5a69df?String:Number)(_0x45ad38);}function toPropertyKey(_0x420af5){const _0x17764f=_0x2ffec3;var _0x2e2fe2=toPrimitive(_0x420af5,_0x17764f(0x200));return _0x17764f(0x1f6)==_typeof(_0x2e2fe2)?_0x2e2fe2:_0x2e2fe2+'';}function _defineProperty(_0x490f3c,_0x260caf,_0x3d6419){const _0x19bca9=_0x2ffec3;return(_0x260caf=toPropertyKey(_0x260caf))in _0x490f3c?Object[_0x19bca9(0x229)](_0x490f3c,_0x260caf,{'value':_0x3d6419,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x490f3c[_0x260caf]=_0x3d6419,_0x490f3c;}var FShape=class{constructor(_0x609e53,_0xd65334,_0x22a753,_0x5b721b){const _0x2f60e7=_0x2ffec3;_defineProperty(this,'unitId',void 0x0),_defineProperty(this,_0x2f60e7(0x21c),void 0x0),_defineProperty(this,_0x2f60e7(0x227),void 0x0),_defineProperty(this,'x',0x0),_defineProperty(this,'y',0x0),_defineProperty(this,_0x2f60e7(0x1e6),_univerjs_pro_sheets_shape['DEFAULT_SHAPE_WIDTH']),_defineProperty(this,_0x2f60e7(0x1d2),_univerjs_pro_sheets_shape['DEFAULT_SHAPE_HEIGHT']),_defineProperty(this,_0x2f60e7(0x1fe),void 0x0),_defineProperty(this,_0x2f60e7(0x1ef),{}),_defineProperty(this,_0x2f60e7(0x1f4),void 0x0),this[_0x2f60e7(0x1bf)]=_0x609e53,this[_0x2f60e7(0x21c)]=_0xd65334,this[_0x2f60e7(0x227)]=_0x22a753||(0x0,_univerjs_core[_0x2f60e7(0x232)])(),this[_0x2f60e7(0x1f4)]=_0x5b721b;}[_0x2ffec3(0x1b8)](_0x1ca459,_0x45789a,_0x2ecb6c,_0x9b8b56){const _0x5984f8=_0x2ffec3,_0x25473f=this[_0x5984f8(0x1f4)][_0x5984f8(0x234)](_univerjs_sheets[_0x5984f8(0x22c)])[_0x5984f8(0x201)](this[_0x5984f8(0x1bf)],this[_0x5984f8(0x21c)]);if(!_0x25473f)throw new Error(_0x5984f8(0x1e3)+this[_0x5984f8(0x1bf)]+_0x5984f8(0x230)+this[_0x5984f8(0x21c)]+'\x20not\x20found');const {transform:_0x23f7ec}=(0x0,_univerjs_sheets[_0x5984f8(0x1f1)])(this[_0x5984f8(0x1bf)],this['subUnitId'],{'row':_0x1ca459,'column':_0x45789a,'rowOffset':_0x2ecb6c,'columnOffset':_0x9b8b56},0x1,0x1,_0x25473f);return this['x']=_0x23f7ec[_0x5984f8(0x1c9)],this['y']=_0x23f7ec[_0x5984f8(0x1eb)],this;}[_0x2ffec3(0x23c)](_0x44bb90,_0x5c9914){return this['x']=_0x44bb90,this['y']=_0x5c9914,this;}[_0x2ffec3(0x21a)](_0x48e5d3){const _0x141748=_0x2ffec3;return this[_0x141748(0x1fe)]=_0x48e5d3,this;}[_0x2ffec3(0x1c2)](_0x5e22b1,_0x9e734a){const _0x196f91=_0x2ffec3;if(!this[_0x196f91(0x1ef)][_0x196f91(0x1f2)])this[_0x196f91(0x1ef)][_0x196f91(0x1f2)]={};this[_0x196f91(0x1ef)][_0x196f91(0x1f2)][_0x196f91(0x1de)]=_univerjs_pro_engine_shape[_0x196f91(0x225)][_0x196f91(0x21e)];if(_0x5e22b1!==void 0x0)this[_0x196f91(0x1ef)][_0x196f91(0x1f2)]['color']=_0x5e22b1;if(_0x9e734a!==void 0x0)this['shapeData']['fill'][_0x196f91(0x219)]=_0x9e734a;return this;}[_0x2ffec3(0x1af)](_0x583f50,_0xaaae75,_0x5285b8){const _0x4007e6=_0x2ffec3;if(_0xaaae75===void 0x0||_0xaaae75[_0x4007e6(0x1bc)]===0x0)throw new Error(_0x4007e6(0x1cf));if(!this[_0x4007e6(0x1ef)][_0x4007e6(0x1f2)])this[_0x4007e6(0x1ef)][_0x4007e6(0x1f2)]={};this[_0x4007e6(0x1ef)][_0x4007e6(0x1f2)][_0x4007e6(0x21d)]=_0xaaae75,this['shapeData'][_0x4007e6(0x1f2)]['fillType']=_univerjs_pro_engine_shape[_0x4007e6(0x225)][_0x4007e6(0x1d5)],this[_0x4007e6(0x1ef)][_0x4007e6(0x1f2)][_0x4007e6(0x226)]=_0x583f50;if(_0x5285b8!==void 0x0)this[_0x4007e6(0x1ef)][_0x4007e6(0x1f2)][_0x4007e6(0x1dd)]=_0x5285b8;return this;}[_0x2ffec3(0x1f3)](){const _0x5ee519=_0x2ffec3;return this[_0x5ee519(0x1ef)][_0x5ee519(0x1f2)]={'fillType':_univerjs_pro_engine_shape[_0x5ee519(0x225)][_0x5ee519(0x210)]},this;}[_0x2ffec3(0x228)](_0x58e0c6){const _0x554a70=_0x2ffec3;if(!this[_0x554a70(0x1ef)]['stroke'])this[_0x554a70(0x1ef)][_0x554a70(0x1ed)]={};return this['shapeData'][_0x554a70(0x1ed)][_0x554a70(0x21f)]=_0x58e0c6,this;}[_0x2ffec3(0x1cb)](_0x14c66d){const _0xff80cf=_0x2ffec3;if(!this[_0xff80cf(0x1ef)]['stroke'])this['shapeData'][_0xff80cf(0x1ed)]={};return this['shapeData'][_0xff80cf(0x1ed)]['width']=_0x14c66d,this;}['setStrokeLineDashType'](_0x171a96){const _0x264f9d=_0x2ffec3;if(!this[_0x264f9d(0x1ef)][_0x264f9d(0x1ed)])this['shapeData']['stroke']={};return this['shapeData'][_0x264f9d(0x1ed)][_0x264f9d(0x1be)]=_0x171a96,this;}[_0x2ffec3(0x1f8)](_0x29dbe6){const _0x701adb=_0x2ffec3;if(!this[_0x701adb(0x1ef)][_0x701adb(0x1ed)])this['shapeData'][_0x701adb(0x1ed)]={};return this[_0x701adb(0x1ef)]['stroke']['lineJoinType']=_0x29dbe6,this;}['setStrokeLineCapType'](_0x2985cf){const _0xb3e2f1=_0x2ffec3;if(!this['shapeData'][_0xb3e2f1(0x1ed)])this[_0xb3e2f1(0x1ef)][_0xb3e2f1(0x1ed)]={};return this['shapeData']['stroke']['capType']=_0x2985cf,this;}['setStrokeOpacity'](_0x26600e){const _0x2be987=_0x2ffec3;if(!this[_0x2be987(0x1ef)][_0x2be987(0x1ed)])this[_0x2be987(0x1ef)][_0x2be987(0x1ed)]={};return this[_0x2be987(0x1ef)]['stroke'][_0x2be987(0x219)]=_0x26600e,this;}[_0x2ffec3(0x224)](_0x20a087){const _0x294dc5=_0x2ffec3;if(!this[_0x294dc5(0x1ef)][_0x294dc5(0x1ed)])this[_0x294dc5(0x1ef)][_0x294dc5(0x1ed)]={};return this['shapeData'][_0x294dc5(0x1ed)]['lineStrokeType']=_0x20a087,this;}['setWidth'](_0x4a25e1){return this['width']=_0x4a25e1,this;}['setHeight'](_0x3103fd){const _0x202043=_0x2ffec3;return this[_0x202043(0x1d2)]=_0x3103fd,this;}[_0x2ffec3(0x209)](){const _0x2c46e7=_0x2ffec3,_0x10a163=this['_injector'][_0x2c46e7(0x234)](_univerjs_pro_sheets_shape['SheetsShapeService'])['getShapeModel'](this[_0x2c46e7(0x1bf)],this[_0x2c46e7(0x21c)],this[_0x2c46e7(0x227)]);if(_0x10a163)return(0x0,_univerjs_pro_engine_shape[_0x2c46e7(0x206)])(_0x10a163[_0x2c46e7(0x1ac)]());if(this[_0x2c46e7(0x1fe)])return(0x0,_univerjs_pro_engine_shape[_0x2c46e7(0x206)])(this['shapeType']);return![];}[_0x2ffec3(0x1da)](){const _0x12b69f=_0x2ffec3,_0x542a3f=this['_injector'][_0x12b69f(0x234)](_univerjs_pro_sheets_shape[_0x12b69f(0x1ff)])[_0x12b69f(0x1b2)](this[_0x12b69f(0x1bf)],this[_0x12b69f(0x21c)],this[_0x12b69f(0x227)]);if(!_0x542a3f)return[];const _0x35545b=this[_0x12b69f(0x1f4)][_0x12b69f(0x234)](_univerjs_drawing['IDrawingManagerService'])['getDrawingByParam']({'unitId':this[_0x12b69f(0x1bf)],'subUnitId':this[_0x12b69f(0x21c)],'drawingId':this[_0x12b69f(0x227)]});if(!(_0x35545b===null||_0x35545b===void 0x0?void 0x0:_0x35545b[_0x12b69f(0x1cd)]))return[];const {width:width=0x0,height:height=0x0}=_0x35545b[_0x12b69f(0x1cd)];return _0x542a3f[_0x12b69f(0x1bb)]({'width':width,'height':height}),_0x542a3f[_0x12b69f(0x208)]();}[_0x2ffec3(0x1d0)](){const _0x375f4d=_0x2ffec3,_0x1bedb5=this[_0x375f4d(0x1f4)][_0x375f4d(0x234)](_univerjs_pro_sheets_shape[_0x375f4d(0x1ff)])['getShapeModel'](this[_0x375f4d(0x1bf)],this[_0x375f4d(0x21c)],this['drawId']);if(!_0x1bedb5)return[];const _0x3936cb=this[_0x375f4d(0x1f4)][_0x375f4d(0x234)](_univerjs_drawing[_0x375f4d(0x1c1)])[_0x375f4d(0x212)]({'unitId':this[_0x375f4d(0x1bf)],'subUnitId':this['subUnitId'],'drawingId':this[_0x375f4d(0x227)]});if(!(_0x3936cb===null||_0x3936cb===void 0x0?void 0x0:_0x3936cb[_0x375f4d(0x1cd)]))return[];const {width:width=0x0,height:height=0x0}=_0x3936cb[_0x375f4d(0x1cd)];return _0x1bedb5[_0x375f4d(0x1bb)]({'width':width,'height':height}),_0x1bedb5[_0x375f4d(0x1ad)]();}['getConnectorLinePoints'](){const _0x3215d8=_0x2ffec3,_0x583338=this[_0x3215d8(0x1f4)][_0x3215d8(0x234)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x3215d8(0x1b2)](this[_0x3215d8(0x1bf)],this['subUnitId'],this[_0x3215d8(0x227)]);if(!_0x583338)return[];if(!(0x0,_univerjs_pro_engine_shape[_0x3215d8(0x206)])(_0x583338[_0x3215d8(0x1ac)]()))return[];const _0x41a8c8=this[_0x3215d8(0x1f4)][_0x3215d8(0x234)](_univerjs_drawing[_0x3215d8(0x1c1)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x3215d8(0x21c)],'drawingId':this['drawId']});if(!(_0x41a8c8===null||_0x41a8c8===void 0x0?void 0x0:_0x41a8c8[_0x3215d8(0x1cd)]))return[];const {width:width=0x0,height:height=0x0}=_0x41a8c8[_0x3215d8(0x1cd)];return _0x583338[_0x3215d8(0x1bb)]({'width':width,'height':height}),_0x583338['getConnectorLinePoints']();}[_0x2ffec3(0x1ba)](){const _0x40960a=_0x2ffec3;var _0x4dd45b;const _0x213a4c=this[_0x40960a(0x1f4)][_0x40960a(0x234)](_univerjs_pro_sheets_shape[_0x40960a(0x1ff)])[_0x40960a(0x1b2)](this[_0x40960a(0x1bf)],this[_0x40960a(0x21c)],this[_0x40960a(0x227)]);if(!_0x213a4c)return null;return(_0x4dd45b=_0x213a4c['getStartConnectInfo']())!==null&&_0x4dd45b!==void 0x0?_0x4dd45b:null;}[_0x2ffec3(0x1ab)](){const _0x1432cc=_0x2ffec3;var _0x56d483;const _0x46a9eb=this[_0x1432cc(0x1f4)][_0x1432cc(0x234)](_univerjs_pro_sheets_shape[_0x1432cc(0x1ff)])[_0x1432cc(0x1b2)](this[_0x1432cc(0x1bf)],this[_0x1432cc(0x21c)],this[_0x1432cc(0x227)]);if(!_0x46a9eb)return null;return(_0x56d483=_0x46a9eb[_0x1432cc(0x1ab)]())!==null&&_0x56d483!==void 0x0?_0x56d483:null;}[_0x2ffec3(0x231)](){const _0x4bced2=_0x2ffec3;var _0x531efe,_0x5952ad;if(!this[_0x4bced2(0x1fe)])throw new Error(_0x4bced2(0x1ae));if(this['x']===0x0||this['y']===0x0){const _0x9f74f4=this[_0x4bced2(0x1f4)]['get'](_univerjs_sheets[_0x4bced2(0x22c)])[_0x4bced2(0x201)](this[_0x4bced2(0x1bf)],this[_0x4bced2(0x21c)]);if(!_0x9f74f4)throw new Error(_0x4bced2(0x1e3)+this[_0x4bced2(0x1bf)]+_0x4bced2(0x230)+this[_0x4bced2(0x21c)]+'\x20not\x20found');const {transform:_0x1d29e0}=(0x0,_univerjs_sheets[_0x4bced2(0x1f1)])(this[_0x4bced2(0x1bf)],this[_0x4bced2(0x21c)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x9f74f4);this['x']=this['x']>0x0?this['x']:_0x1d29e0['left'],this['y']=this['y']>0x0?this['y']:_0x1d29e0[_0x4bced2(0x1eb)];}return this['width']=(_0x531efe=this[_0x4bced2(0x1e6)])!==null&&_0x531efe!==void 0x0?_0x531efe:_univerjs_pro_sheets_shape['DEFAULT_SHAPE_WIDTH'],this['height']=(_0x5952ad=this[_0x4bced2(0x1d2)])!==null&&_0x5952ad!==void 0x0?_0x5952ad:_univerjs_pro_sheets_shape[_0x4bced2(0x1ea)],{'unitId':this[_0x4bced2(0x1bf)],'subUnitId':this[_0x4bced2(0x21c)],'shapeId':this[_0x4bced2(0x227)],'shapeType':this[_0x4bced2(0x1fe)],'shapeData':Object[_0x4bced2(0x220)](this[_0x4bced2(0x1ef)])[_0x4bced2(0x1bc)]>0x0?this[_0x4bced2(0x1ef)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x4bced2(0x1d2)]};}[_0x2ffec3(0x1b9)](){return this['drawId'];}['getShapeType'](){const _0x3137c0=_0x2ffec3;return this[_0x3137c0(0x1fe)];}[_0x2ffec3(0x1c7)](){const _0x1b031d=_0x2ffec3;return this[_0x1b031d(0x1ef)];}[_0x2ffec3(0x1c6)](){return{'x':this['x'],'y':this['y']};}[_0x2ffec3(0x1d1)](){const _0x4e1088=_0x2ffec3;return{'width':this[_0x4e1088(0x1e6)],'height':this['height']};}},FConnectorShape=class extends FShape{constructor(_0xa8374e,_0xc26624,_0x5f2d0f,_0x25ac2f){const _0x471e36=_0x2ffec3;super(_0xa8374e,_0xc26624,_0x5f2d0f,_0x25ac2f),_defineProperty(this,_0x471e36(0x1ef),{});}[_0x2ffec3(0x21a)](_0x5d046f){const _0x195888=_0x2ffec3;if(!(0x0,_univerjs_pro_engine_shape[_0x195888(0x206)])(_0x5d046f))throw new Error(_0x195888(0x215)+_0x5d046f+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x195888(0x21a)](_0x5d046f),this;}[_0x2ffec3(0x1df)](_0x522e99){const _0x2a577b=_0x2ffec3;var _0x30921f,_0xaa4441;if(!((_0x30921f=this['shapeData'])===null||_0x30921f===void 0x0?void 0x0:_0x30921f['ln']))this[_0x2a577b(0x1ef)]['ln']={};if(!((_0xaa4441=this[_0x2a577b(0x1ef)])===null||_0xaa4441===void 0x0||(_0xaa4441=_0xaa4441['ln'])===null||_0xaa4441===void 0x0?void 0x0:_0xaa4441[_0x2a577b(0x216)]))this[_0x2a577b(0x1ef)]['ln']['startArrow']={};return this['shapeData']['ln'][_0x2a577b(0x216)][_0x2a577b(0x1dc)]=_0x522e99,this;}[_0x2ffec3(0x223)](_0x33aa95){const _0x11a8a0=_0x2ffec3;var _0x1cba40,_0x2f2d37;if(!((_0x1cba40=this['shapeData'])===null||_0x1cba40===void 0x0?void 0x0:_0x1cba40['ln']))this['shapeData']['ln']={};if(!((_0x2f2d37=this[_0x11a8a0(0x1ef)])===null||_0x2f2d37===void 0x0||(_0x2f2d37=_0x2f2d37['ln'])===null||_0x2f2d37===void 0x0?void 0x0:_0x2f2d37['endArrow']))this[_0x11a8a0(0x1ef)]['ln'][_0x11a8a0(0x22e)]={};return this[_0x11a8a0(0x1ef)]['ln']['endArrow'][_0x11a8a0(0x1dc)]=_0x33aa95,this;}[_0x2ffec3(0x238)](_0x4cbbbf){const _0x2ac2bb=_0x2ffec3;var _0x1b867d,_0x21cc50;if(!((_0x1b867d=this[_0x2ac2bb(0x1ef)])===null||_0x1b867d===void 0x0?void 0x0:_0x1b867d['ln']))this[_0x2ac2bb(0x1ef)]['ln']={};if(!((_0x21cc50=this[_0x2ac2bb(0x1ef)])===null||_0x21cc50===void 0x0||(_0x21cc50=_0x21cc50['ln'])===null||_0x21cc50===void 0x0?void 0x0:_0x21cc50[_0x2ac2bb(0x216)]))this[_0x2ac2bb(0x1ef)]['ln'][_0x2ac2bb(0x216)]={};return this[_0x2ac2bb(0x1ef)]['ln']['startArrow']['size']=_0x4cbbbf,this;}['setEndArrowSize'](_0x267b6e){const _0x43be7a=_0x2ffec3;var _0x2ec096,_0x32bc94;if(!((_0x2ec096=this[_0x43be7a(0x1ef)])===null||_0x2ec096===void 0x0?void 0x0:_0x2ec096['ln']))this[_0x43be7a(0x1ef)]['ln']={};if(!((_0x32bc94=this[_0x43be7a(0x1ef)])===null||_0x32bc94===void 0x0||(_0x32bc94=_0x32bc94['ln'])===null||_0x32bc94===void 0x0?void 0x0:_0x32bc94[_0x43be7a(0x22e)]))this[_0x43be7a(0x1ef)]['ln']['endArrow']={};return this['shapeData']['ln'][_0x43be7a(0x22e)]['size']=_0x267b6e,this;}[_0x2ffec3(0x231)](){return super['build']();}['getEndConnectInfo'](){const _0x250e51=_0x2ffec3;var _0x461ba1;return((_0x461ba1=this['shapeData'])===null||_0x461ba1===void 0x0||(_0x461ba1=_0x461ba1[_0x250e51(0x1c0)])===null||_0x461ba1===void 0x0?void 0x0:_0x461ba1['to'])||null;}['getStartConnectInfo'](){const _0x245385=_0x2ffec3;var _0x37d791;return((_0x37d791=this[_0x245385(0x1ef)])===null||_0x37d791===void 0x0||(_0x37d791=_0x37d791[_0x245385(0x1c0)])===null||_0x37d791===void 0x0?void 0x0:_0x37d791[_0x245385(0x22b)])||null;}};function computeConnectionPointInfo(_0x3785f1,_0x369367,_0x1b3c45,_0x40077f,_0x178da2,_0x3b45e2){const _0x539e08=_0x2ffec3,_0x8c18d2=_0x178da2[_0x539e08(0x1b2)](_0x3785f1,_0x369367,_0x1b3c45);if(!_0x8c18d2)return null;const _0x4e4e43=_0x3b45e2[_0x539e08(0x212)]({'unitId':_0x3785f1,'subUnitId':_0x369367,'drawingId':_0x1b3c45});if(!(_0x4e4e43===null||_0x4e4e43===void 0x0?void 0x0:_0x4e4e43[_0x539e08(0x1cd)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x998d82}=_0x4e4e43[_0x539e08(0x1cd)];_0x8c18d2[_0x539e08(0x1bb)]({'width':width,'height':height});const _0x3eb5e2=_0x8c18d2['getConnectionSiteList']()[_0x539e08(0x1f5)](_0xabcbe9=>_0xabcbe9[_0x539e08(0x1d7)]===_0x40077f);if(!_0x3eb5e2)return null;let _0x152a86=flipX?width-_0x3eb5e2['x']:_0x3eb5e2['x'],_0x3aec65=flipY?height-_0x3eb5e2['y']:_0x3eb5e2['y'];if(_0x998d82&&_0x998d82!==0x0){const _0x5cecb9=_0x998d82*Math['PI']/0xb4,_0x2dcff8=Math['cos'](_0x5cecb9),_0x16d1ce=Math['sin'](_0x5cecb9),_0x133899=width/0x2,_0x42ee57=height/0x2,_0x3be980=_0x152a86-_0x133899,_0x6545ad=_0x3aec65-_0x42ee57;_0x152a86=_0x133899+_0x3be980*_0x2dcff8-_0x6545ad*_0x16d1ce,_0x3aec65=_0x42ee57+_0x3be980*_0x16d1ce+_0x6545ad*_0x2dcff8;}_0x152a86+=left,_0x3aec65+=top;let _0x3f1cae=_0x3eb5e2[_0x539e08(0x20c)]/0xea60;if(flipX)_0x3f1cae=0xb4-_0x3f1cae;if(flipY)_0x3f1cae=-_0x3f1cae;_0x3f1cae+=_0x998d82||0x0,_0x3f1cae=(_0x3f1cae%0x168+0x168)%0x168;const _0x291937=(0x0,_univerjs_pro_engine_shape[_0x539e08(0x1c3)])({'left':left,'top':top,'width':width,'height':height},_0x998d82||0x0);return{'point':{'x':_0x152a86,'y':_0x3aec65},'angle':_0x3f1cae,'bounds':_0x291937};}function calculateFreeEndpointAngle(_0x9e5594,_0x57d4c4){const _0x3fb5f0=_0x2ffec3,_0x519bbc=_0x57d4c4['x']-_0x9e5594['x'],_0x409414=_0x57d4c4['y']-_0x9e5594['y'];if(Math[_0x3fb5f0(0x1b0)](_0x519bbc)>=Math[_0x3fb5f0(0x1b0)](_0x409414))return _0x519bbc>=0x0?0xb4:0x0;return _0x409414>=0x0?0x10e:0x5a;}function computeFreeEndpointInfo(_0x3adc35,_0x5ccc42,_0x3827c4,_0x14ba6c,_0x5df9ac,_0x54eeb3,_0x30c027){const _0xe5e940=_0x2ffec3,_0x2c2212=_0x54eeb3[_0xe5e940(0x1b2)](_0x3adc35,_0x5ccc42,_0x3827c4);if(!_0x2c2212)return null;const _0x38624d=_0x30c027[_0xe5e940(0x212)]({'unitId':_0x3adc35,'subUnitId':_0x5ccc42,'drawingId':_0x3827c4});if(!(_0x38624d===null||_0x38624d===void 0x0?void 0x0:_0x38624d['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x38624d[_0xe5e940(0x1cd)];_0x2c2212[_0xe5e940(0x1bb)]({'width':width,'height':height});const _0x5f3f83=_0x2c2212['getConnectorLinePoints']();if(_0x5f3f83[_0xe5e940(0x1bc)]<0x2)return null;const _0x58fb7e=_0x14ba6c?_0x5f3f83[0x0]:_0x5f3f83[_0x5f3f83[_0xe5e940(0x1bc)]-0x1],_0x3a7b6a=new _univerjs_pro_engine_shape[(_0xe5e940(0x1f0))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY})['localToWorld'](_0x58fb7e);return{'point':_0x3a7b6a,'angle':calculateFreeEndpointAngle(_0x5df9ac[_0xe5e940(0x207)],_0x3a7b6a),'bounds':{'left':_0x3a7b6a['x'],'top':_0x3a7b6a['y'],'width':0x0,'height':0x0}};}var FWorksheetShapeMixin=class extends _univerjs_sheets_facade[_0x2ffec3(0x22d)]{async['insertShape'](_0xd384ba){const _0x7dc525=_0x2ffec3,{unitId:_0x5902ad,subUnitId:_0x5bb4dc,shapeId:_0x5c1b63,shapeType:_0x49b8cc,shapeData:_0x249465,x:_0x3904e6,y:_0x30cd7c,width:_0x1d0a6d,height:_0x33c68d}=_0xd384ba;return this[_0x7dc525(0x1e0)][_0x7dc525(0x1fa)](_univerjs_pro_sheets_shape[_0x7dc525(0x23e)]['id'],{'unitId':_0x5902ad,'subUnitId':_0x5bb4dc,'shapeId':_0x5c1b63,'shapeType':_0x49b8cc,'shapeData':_0x249465,'position':{'x':_0x3904e6,'y':_0x30cd7c},'width':_0x1d0a6d,'height':_0x33c68d});}async[_0x2ffec3(0x1d3)](_0x28d65a){const _0x999cec=_0x2ffec3,{unitId:_0x2ff084,subUnitId:_0x5ab35c,shapeId:_0x77b81a,shapeType:_0x25a6a7,shapeData:_0x1d465b,x:_0x2d86da,y:_0x27ed09,width:_0x1091d2,height:_0x3430c2}=_0x28d65a;return this[_0x999cec(0x1e0)][_0x999cec(0x1fa)](_univerjs_pro_sheets_shape[_0x999cec(0x237)]['id'],{'unitId':_0x2ff084,'subUnitId':_0x5ab35c,'shapeId':_0x77b81a,'shapeType':_0x25a6a7,'shapeData':_0x1d465b,'position':{'x':_0x2d86da,'y':_0x27ed09},'width':_0x1091d2,'height':_0x3430c2});}[_0x2ffec3(0x1cc)](_0x5e17f8){const _0x2470c0=_0x2ffec3,_0x54c54d=this['getWorkbook']()[_0x2470c0(0x203)](),_0x539370=this[_0x2470c0(0x1b5)]();if(_0x5e17f8){const _0x442321=new FShape(_0x54c54d,_0x539370,_0x5e17f8['drawId'],this[_0x2470c0(0x1f4)]);return this[_0x2470c0(0x1d4)](_0x442321,_0x54c54d,_0x539370,_0x5e17f8[_0x2470c0(0x227)]),_0x442321;}return new FShape(_0x54c54d,_0x539370,(0x0,_univerjs_core[_0x2470c0(0x232)])(),this['_injector']);}[_0x2ffec3(0x239)](_0x5ad95b){const _0x22916d=_0x2ffec3,_0x2ae157=this[_0x22916d(0x1e9)]()['getUnitId'](),_0x3492c2=this[_0x22916d(0x1b5)]();if(_0x5ad95b){const _0x5baaca=new FConnectorShape(_0x2ae157,_0x3492c2,_0x5ad95b[_0x22916d(0x227)],this['_injector']);return this['_preloadShapeProperties'](_0x5baaca,_0x2ae157,_0x3492c2,_0x5ad95b['drawId']),_0x5baaca;}return new FConnectorShape(_0x2ae157,_0x3492c2,(0x0,_univerjs_core['generateRandomId'])(),this[_0x22916d(0x1f4)]);}['getShapes'](){const _0x58046d=_0x2ffec3,_0x58aa40=this['_injector'][_0x58046d(0x234)](_univerjs_sheets_drawing[_0x58046d(0x23b)]),_0x45175d=this[_0x58046d(0x1e9)]()['getUnitId'](),_0x554037=this['getSheetId'](),_0x395a2b=_0x58aa40['getDrawingData'](_0x45175d,_0x554037);if(!_0x395a2b)return[];const _0x14df61=[];for(const [_0x237f96,_0x2375e2]of Object[_0x58046d(0x1f9)](_0x395a2b))if(_0x2375e2&&_0x2375e2[_0x58046d(0x1e4)]===_univerjs_core[_0x58046d(0x1d6)][_0x58046d(0x20d)]){const _0x5e9580=new FShape(_0x45175d,_0x554037,_0x237f96,this[_0x58046d(0x1f4)]);this[_0x58046d(0x1d4)](_0x5e9580,_0x45175d,_0x554037,_0x237f96),_0x14df61[_0x58046d(0x1e7)](_0x5e9580);}return _0x14df61;}[_0x2ffec3(0x211)](_0x5f5837){const _0x4ab94a=_0x2ffec3,{unitId:_0x3b94eb,subUnitId:_0x5abaf9,drawId:_0x56c15a}=_0x5f5837;return this[_0x4ab94a(0x1e0)][_0x4ab94a(0x1fa)](_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id'],{'unitId':_0x3b94eb,'drawings':[{'unitId':_0x3b94eb,'subUnitId':_0x5abaf9,'drawingId':_0x56c15a,'drawingType':_univerjs_core[_0x4ab94a(0x1d6)][_0x4ab94a(0x20d)]}]});}async[_0x2ffec3(0x1e2)](_0x192161){const _0x457f11=_0x2ffec3,{connector:_0x414499,startTarget:_0x445909,endTarget:_0x24f5b2}=_0x192161;if(!_0x445909&&!_0x24f5b2)return![];const _0xf8c9e3=this['getWorkbook']()[_0x457f11(0x203)](),_0xf73122=this[_0x457f11(0x1b5)](),_0x41a5f8=this[_0x457f11(0x1f4)]['get'](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x5c7812=this[_0x457f11(0x1f4)]['get'](_univerjs_drawing[_0x457f11(0x1c1)]),_0x3f0a14=_0x41a5f8[_0x457f11(0x1b2)](_0xf8c9e3,_0xf73122,_0x414499[_0x457f11(0x227)]);if(!_0x3f0a14)return![];const _0x3bc632=_0x3f0a14[_0x457f11(0x1ac)](),_0x2fdacd=_0x3f0a14[_0x457f11(0x236)](),_0x7cbf3a={};for(const _0x9822f0 of _0x3f0a14['getAdjustNames']()){const _0x177c0d=_0x3f0a14[_0x457f11(0x1ca)](_0x9822f0);if(_0x177c0d!==void 0x0)_0x7cbf3a[_0x9822f0]=_0x177c0d;}const {startInfo:_0x3e3792,endInfo:_0x1ab492}=this[_0x457f11(0x1b3)](_0xf8c9e3,_0xf73122,_0x414499,_0x3f0a14,_0x445909,_0x24f5b2,_0x41a5f8,_0x5c7812,_0x2fdacd);if(!_0x3e3792||!_0x1ab492)return![];const _0x482c3c=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])((0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x3e3792,_0x1ab492,_0x3bc632),_0x3bc632),_0x3565cf={};if(_0x445909)_0x3565cf[_0x457f11(0x22b)]={'shapeId':_0x445909[_0x457f11(0x21b)]['drawId'],'cxnIndex':_0x445909[_0x457f11(0x1b1)]};else{if(_0x2fdacd===null||_0x2fdacd===void 0x0?void 0x0:_0x2fdacd[_0x457f11(0x22b)])_0x3565cf[_0x457f11(0x22b)]=_0x2fdacd['from'];}if(_0x24f5b2)_0x3565cf['to']={'shapeId':_0x24f5b2[_0x457f11(0x21b)][_0x457f11(0x227)],'cxnIndex':_0x24f5b2['connectionSiteIndex']};else{if(_0x2fdacd===null||_0x2fdacd===void 0x0?void 0x0:_0x2fdacd['to'])_0x3565cf['to']=_0x2fdacd['to'];}return this[_0x457f11(0x1e0)][_0x457f11(0x1fa)](_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id'],{'unitId':_0xf8c9e3,'subUnitId':_0xf73122,'connectorShapeId':_0x414499[_0x457f11(0x227)],'width':_0x482c3c[_0x457f11(0x1c8)][_0x457f11(0x1e6)],'height':_0x482c3c['worldRect'][_0x457f11(0x1d2)],'left':_0x482c3c[_0x457f11(0x1c8)][_0x457f11(0x1c9)],'top':_0x482c3c['worldRect'][_0x457f11(0x1eb)],'flipX':_0x482c3c[_0x457f11(0x1c8)][_0x457f11(0x1fd)]||![],'flipY':_0x482c3c[_0x457f11(0x1c8)][_0x457f11(0x20e)]||![],'oldAdjustValues':_0x7cbf3a,'newAdjustValues':_0x482c3c['adjustValues'],'newLineType':_0x482c3c[_0x457f11(0x213)],'oldLineType':_0x3bc632,'rotation':_0x482c3c[_0x457f11(0x1fb)],'oldRelation':_0x2fdacd,'newRelation':_0x3565cf});}[_0x2ffec3(0x1d4)](_0x5ca3ec,_0x59b3c8,_0x44d61f,_0x3555ab){const _0x314b43=_0x2ffec3,_0x5e49a6=this['_injector']['get'](_univerjs_drawing[_0x314b43(0x1c1)])[_0x314b43(0x212)]({'unitId':_0x59b3c8,'subUnitId':_0x44d61f,'drawingId':_0x3555ab});if(_0x5e49a6===null||_0x5e49a6===void 0x0?void 0x0:_0x5e49a6['transform']){var _0x496830,_0x28adb5,_0x2e0d73,_0x20bbaa;_0x5ca3ec['x']=(_0x496830=_0x5e49a6[_0x314b43(0x1cd)][_0x314b43(0x1c9)])!==null&&_0x496830!==void 0x0?_0x496830:0x0,_0x5ca3ec['y']=(_0x28adb5=_0x5e49a6['transform'][_0x314b43(0x1eb)])!==null&&_0x28adb5!==void 0x0?_0x28adb5:0x0,_0x5ca3ec[_0x314b43(0x1e6)]=(_0x2e0d73=_0x5e49a6['transform']['width'])!==null&&_0x2e0d73!==void 0x0?_0x2e0d73:_0x5ca3ec[_0x314b43(0x1e6)],_0x5ca3ec[_0x314b43(0x1d2)]=(_0x20bbaa=_0x5e49a6[_0x314b43(0x1cd)][_0x314b43(0x1d2)])!==null&&_0x20bbaa!==void 0x0?_0x20bbaa:_0x5ca3ec[_0x314b43(0x1d2)];}const _0x2069de=this[_0x314b43(0x1f4)][_0x314b43(0x234)](_univerjs_pro_sheets_shape[_0x314b43(0x1ff)])[_0x314b43(0x1b2)](_0x59b3c8,_0x44d61f,_0x3555ab);if(_0x2069de){_0x5ca3ec['shapeType']=_0x2069de['getShapeType']();const _0x2171c5=_0x2069de['getShapeData']();if(_0x2171c5)_0x5ca3ec[_0x314b43(0x1ef)]=JSON[_0x314b43(0x1c5)](JSON[_0x314b43(0x1e1)](_0x2171c5));}}['_resolveEndpoints'](_0x1ed238,_0x13dd3c,_0x2f04ff,_0x2001e4,_0x10fa30,_0x3acb1e,_0x509d96,_0x1478e8,_0x4bc141){const _0x111a7e=_0x2ffec3;let _0x52afea=null,_0xb35596=null;if(_0x10fa30)_0x52afea=computeConnectionPointInfo(_0x1ed238,_0x13dd3c,_0x10fa30[_0x111a7e(0x21b)][_0x111a7e(0x227)],_0x10fa30[_0x111a7e(0x1b1)],_0x509d96,_0x1478e8);if(_0x3acb1e)_0xb35596=computeConnectionPointInfo(_0x1ed238,_0x13dd3c,_0x3acb1e[_0x111a7e(0x21b)][_0x111a7e(0x227)],_0x3acb1e[_0x111a7e(0x1b1)],_0x509d96,_0x1478e8);if(!_0x52afea)_0x52afea=this[_0x111a7e(0x1bd)](_0x1ed238,_0x13dd3c,_0x2f04ff[_0x111a7e(0x227)],!![],_0xb35596,_0x4bc141===null||_0x4bc141===void 0x0?void 0x0:_0x4bc141[_0x111a7e(0x22b)],_0x509d96,_0x1478e8);if(!_0xb35596)_0xb35596=this[_0x111a7e(0x1bd)](_0x1ed238,_0x13dd3c,_0x2f04ff[_0x111a7e(0x227)],![],_0x52afea,_0x4bc141===null||_0x4bc141===void 0x0?void 0x0:_0x4bc141['to'],_0x509d96,_0x1478e8);return{'startInfo':_0x52afea,'endInfo':_0xb35596};}[_0x2ffec3(0x1bd)](_0x2add09,_0x44a59b,_0x51b94a,_0x5ab7ad,_0x356251,_0x131ee9,_0x119271,_0x1ca4c5){const _0x2f9f39=_0x2ffec3;if(_0x131ee9){const _0x59942e=computeConnectionPointInfo(_0x2add09,_0x44a59b,_0x131ee9[_0x2f9f39(0x1ce)],_0x131ee9[_0x2f9f39(0x235)],_0x119271,_0x1ca4c5);if(_0x59942e)return _0x59942e;}if(!_0x356251)return null;return computeFreeEndpointInfo(_0x2add09,_0x44a59b,_0x51b94a,_0x5ab7ad,_0x356251,_0x119271,_0x1ca4c5);}};function _0x1762(){const _0x289783=['cxnIndex','getShapeRelation','SetShapeDrawingDataCommand','setStartArrowSize','newConnector','object','ISheetDrawingService','setAbsolutePosition','ShapeLineDashEnum','InsertShapeCommand','getEndConnectInfo','getShapeType','getDrawingPoints','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','setShapeGradientFill','abs','connectionSiteIndex','getShapeModel','_resolveEndpoints','1bVLFPy','getSheetId','toStringTag','FEnum','setPosition','getShapeId','getStartConnectInfo','updateContext','length','_resolveExistingOrFreeEndpoint','dashType','unitId','relation','IDrawingManagerService','setShapeSolidFill','getBasicShapeRotateBound','180ANYmpl','parse','getPosition','getShapeData','worldRect','left','getAdjustValueByName','setStrokeWidth','newShape','transform','shapeId','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getAdjustPoints','getSize','height','updateShape','_preloadShapeProperties','GradientFill','DrawingTypeEnum','index','646614ieTwxj','FShape','getConnectionSites','call','type','gradientAngle','fillType','setStartArrowType','_commandService','stringify','connectShapes','Skeleton\x20for\x20unitId\x20','drawingType','iterator','width','push','ShapeLineCapEnum','getWorkbook','DEFAULT_SHAPE_HEIGHT','top','Module','stroke','ShapeTypeEnum','shapeData','ConnectorCoordinateTransform','convertPositionCellToSheetOverGrid','fill','setNoneFill','_injector','find','symbol','toPrimitive','setStrokeLineJoinType','entries','executeCommand','rotation','function','flipX','shapeType','SheetsShapeService','string','ensureSkeleton','33WaJejL','getUnitId','3912048qZuGME','4922824TtxSvX','isConnectorShape','point','getConnectionSiteList','isLineShape','ShapeArrowTypeEnum','672985EgmvHK','ang','DRAWING_SHAPE','flipY','default','NoFill','removeShape','getDrawingByParam','lineType','1650612aqfCpH','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','startArrow','prototype','ShapeLineTypeEnum','opacity','setShapeType','shape','subUnitId','gradientStops','SolidFill','color','keys','1271474NtJUjE','ShapeGradientTypeEnum','setEndArrowType','setStrokeLineType','ShapeFillEnum','gradientType','drawId','setStrokeColor','defineProperty','28688ZMtrWe','from','SheetSkeletonService','FWorksheet','endArrow','ShapeArrowSizeEnum','\x20and\x20subUnitId\x20','build','generateRandomId','ShapeLineJoinEnum','get'];_0x1762=function(){return _0x289783;};return _0x1762();}_univerjs_sheets_facade[_0x2ffec3(0x22d)]['extend'](FWorksheetShapeMixin),exports['FConnectorShape']=FConnectorShape,exports[_0x2ffec3(0x1d9)]=FShape;
|
|
1
|
+
function _0x5dce(_0x268913,_0x3dbc12){_0x268913=_0x268913-0xac;const _0x542693=_0x5426();let _0x5dce90=_0x542693[_0x268913];return _0x5dce90;}const _0x50d3b2=_0x5dce;(function(_0x1a1c33,_0x4dc714){const _0x47e22d=_0x5dce,_0x241ae8=_0x1a1c33();while(!![]){try{const _0x564841=-parseInt(_0x47e22d(0x139))/0x1*(-parseInt(_0x47e22d(0x12d))/0x2)+-parseInt(_0x47e22d(0xd8))/0x3+parseInt(_0x47e22d(0x114))/0x4+-parseInt(_0x47e22d(0xea))/0x5+-parseInt(_0x47e22d(0x116))/0x6+-parseInt(_0x47e22d(0xe3))/0x7+-parseInt(_0x47e22d(0x121))/0x8*(-parseInt(_0x47e22d(0xc0))/0x9);if(_0x564841===_0x4dc714)break;else _0x241ae8['push'](_0x241ae8['shift']());}catch(_0x2421b9){_0x241ae8['push'](_0x241ae8['shift']());}}}(_0x5426,0x259bf),Object[_0x50d3b2(0x10b)](exports,Symbol[_0x50d3b2(0x112)],{'value':_0x50d3b2(0xcb)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_sheets_facade=require('@univerjs/sheets/facade');var FSheetsShapeEnumMixin=class extends _univerjs_core_facade[_0x50d3b2(0x134)]{get['ShapeTypeEnum'](){const _0x423db3=_0x50d3b2;return _univerjs_pro_engine_shape[_0x423db3(0xfc)];}get[_0x50d3b2(0x132)](){return _univerjs_pro_engine_shape['ShapeFillEnum'];}get[_0x50d3b2(0x110)](){const _0x12c239=_0x50d3b2;return _univerjs_pro_engine_shape[_0x12c239(0x110)];}get[_0x50d3b2(0x11e)](){const _0x29dbe0=_0x50d3b2;return _univerjs_pro_engine_shape[_0x29dbe0(0x11e)];}get[_0x50d3b2(0x137)](){const _0x4054a1=_0x50d3b2;return _univerjs_pro_engine_shape[_0x4054a1(0x137)];}get[_0x50d3b2(0xae)](){const _0x29283e=_0x50d3b2;return _univerjs_pro_engine_shape[_0x29283e(0xae)];}get[_0x50d3b2(0x100)](){const _0x4b2e7c=_0x50d3b2;return _univerjs_pro_engine_shape[_0x4b2e7c(0x100)];}get[_0x50d3b2(0x12a)](){const _0x5bb496=_0x50d3b2;return _univerjs_pro_engine_shape[_0x5bb496(0x12a)];}get[_0x50d3b2(0xc8)](){const _0x448e5f=_0x50d3b2;return _univerjs_pro_engine_shape[_0x448e5f(0xc8)];}};function _0x5426(){const _0x18190c=['ShapeLineTypeEnum','lineType','adjustValues','24NbcMnN','_preloadShapeProperties','shape','IDrawingManagerService','newShape','setStartArrowSize','parse','NoFill','setStrokeColor','ShapeArrowTypeEnum','constructor','isLineShape','7894VafFgW','getStartConnectInfo','getShapeType','fillType','string','ShapeFillEnum','index','FEnum','getBasicShapeRotateBound','fill','ShapeLineDashEnum','updateContext','63ONVPrX','connectionSiteIndex','object','shapeId','lineStrokeType','length','sin','ShapeLineCapEnum','setShapeType','DEFAULT_SHAPE_WIDTH','worldRect','getShapeModel','setWidth','_resolveExistingOrFreeEndpoint','InsertShapeCommand','setStrokeOpacity','ConnectorCoordinateTransform','cxnIndex','gradientStops','getUnitId','keys','UpdateConnectorRelationCommand','SetShapeDrawingDataCommand','getDrawingPoints','GradientFill','519723JFBzBz','push','shapeType','height','entries','flipY','color','shapeData','ShapeArrowSizeEnum','relation','convertPositionCellToSheetOverGrid','Module','prototype','getSheetId','setStartArrowType','getShapeData','capType','_commandService','setEndArrowType','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','FShape','cos','startArrow','setNoneFill','461778VkYeNU','setStrokeLineJoinType','find',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','\x20not\x20found','drawId','get','ensureSkeleton','function','gradientType','routeConnectorLineShape','464849HQMwum','getSize','getShapeId','symbol','getPosition','call','getConnectionSiteList','1217620GaqOKh','RemoveSheetDrawingCommand','_resolveEndpoints','SheetsShapeService','type','generateRandomId','FConnectorShape','width','ISheetDrawingService','build','DRAWING_SHAPE','DrawingTypeEnum','iterator','unitId','from','localToWorld','executeCommand','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','ShapeTypeEnum','getShapeRelation','top','transform','ShapeLineJoinEnum','subUnitId','endArrow','setShapeSolidFill','Skeleton\x20for\x20unitId\x20','setStrokeLineCapType','getEndConnectInfo','stroke','getConnectorLinePoints','setEndArrowSize','FWorksheet','defineProperty','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','opacity','drawingType','rotation','ShapeGradientTypeEnum','DEFAULT_SHAPE_HEIGHT','toStringTag','getWorkbook','1193432NSBxgX','lineJoinType','614136azVukd','_injector','getDrawingByParam','\x20and\x20subUnitId\x20','isConnectorShape','SheetSkeletonService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','left'];_0x5426=function(){return _0x18190c;};return _0x5426();}_univerjs_core_facade[_0x50d3b2(0x134)]['extend'](FSheetsShapeEnumMixin);function _typeof(_0x3d2dbc){'@babel/helpers - typeof';const _0x11c888=_0x50d3b2;return _typeof=_0x11c888(0xe0)==typeof Symbol&&_0x11c888(0xe6)==typeof Symbol[_0x11c888(0xf6)]?function(_0x2e86e9){return typeof _0x2e86e9;}:function(_0xd4424e){const _0x222ffa=_0x11c888;return _0xd4424e&&'function'==typeof Symbol&&_0xd4424e[_0x222ffa(0x12b)]===Symbol&&_0xd4424e!==Symbol[_0x222ffa(0xcc)]?_0x222ffa(0xe6):typeof _0xd4424e;},_typeof(_0x3d2dbc);}function toPrimitive(_0x4e9bbe,_0x2b8ae9){const _0x2cce8a=_0x50d3b2;if(_0x2cce8a(0x13b)!=_typeof(_0x4e9bbe)||!_0x4e9bbe)return _0x4e9bbe;var _0x30ba4a=_0x4e9bbe[Symbol['toPrimitive']];if(void 0x0!==_0x30ba4a){var _0x502e64=_0x30ba4a[_0x2cce8a(0xe8)](_0x4e9bbe,_0x2b8ae9||'default');if(_0x2cce8a(0x13b)!=_typeof(_0x502e64))return _0x502e64;throw new TypeError(_0x2cce8a(0x11c));}return('string'===_0x2b8ae9?String:Number)(_0x4e9bbe);}function toPropertyKey(_0x1c11e7){const _0x38783d=_0x50d3b2;var _0x1a3cb6=toPrimitive(_0x1c11e7,_0x38783d(0x131));return'symbol'==_typeof(_0x1a3cb6)?_0x1a3cb6:_0x1a3cb6+'';}function _defineProperty(_0x598c3a,_0x28a1b7,_0x1f579c){const _0x25a1c2=_0x50d3b2;return(_0x28a1b7=toPropertyKey(_0x28a1b7))in _0x598c3a?Object[_0x25a1c2(0x10b)](_0x598c3a,_0x28a1b7,{'value':_0x1f579c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x598c3a[_0x28a1b7]=_0x1f579c,_0x598c3a;}var FShape=class{constructor(_0x2e094d,_0xdaabd4,_0x173d30,_0x2b119b){const _0x5a1e84=_0x50d3b2;_defineProperty(this,_0x5a1e84(0xf7),void 0x0),_defineProperty(this,_0x5a1e84(0x101),void 0x0),_defineProperty(this,_0x5a1e84(0xdd),void 0x0),_defineProperty(this,'x',0x0),_defineProperty(this,'y',0x0),_defineProperty(this,'width',_univerjs_pro_sheets_shape[_0x5a1e84(0xb0)]),_defineProperty(this,'height',_univerjs_pro_sheets_shape[_0x5a1e84(0x111)]),_defineProperty(this,'shapeType',void 0x0),_defineProperty(this,_0x5a1e84(0xc7),{}),_defineProperty(this,_0x5a1e84(0x117),void 0x0),this[_0x5a1e84(0xf7)]=_0x2e094d,this['subUnitId']=_0xdaabd4,this[_0x5a1e84(0xdd)]=_0x173d30||(0x0,_univerjs_core[_0x5a1e84(0xef)])(),this[_0x5a1e84(0x117)]=_0x2b119b;}['setPosition'](_0x1127f7,_0xb13679,_0x550ebd,_0x42bb55){const _0x552da4=_0x50d3b2,_0x332f4b=this['_injector'][_0x552da4(0xde)](_univerjs_sheets['SheetSkeletonService'])[_0x552da4(0xdf)](this[_0x552da4(0xf7)],this[_0x552da4(0x101)]);if(!_0x332f4b)throw new Error(_0x552da4(0x104)+this[_0x552da4(0xf7)]+_0x552da4(0x119)+this[_0x552da4(0x101)]+_0x552da4(0xdc));const {transform:_0x4fc4c1}=(0x0,_univerjs_sheets[_0x552da4(0xca)])(this['unitId'],this['subUnitId'],{'row':_0x1127f7,'column':_0xb13679,'rowOffset':_0x550ebd,'columnOffset':_0x42bb55},0x1,0x1,_0x332f4b);return this['x']=_0x4fc4c1[_0x552da4(0x11d)],this['y']=_0x4fc4c1[_0x552da4(0xfe)],this;}['setAbsolutePosition'](_0x36048a,_0x4901b6){return this['x']=_0x36048a,this['y']=_0x4901b6,this;}[_0x50d3b2(0xaf)](_0x1727c6){const _0x280b68=_0x50d3b2;return this[_0x280b68(0xc2)]=_0x1727c6,this;}[_0x50d3b2(0x103)](_0x551665,_0x57cf65){const _0x355662=_0x50d3b2;if(!this[_0x355662(0xc7)][_0x355662(0x136)])this[_0x355662(0xc7)]['fill']={};this[_0x355662(0xc7)][_0x355662(0x136)]['fillType']=_univerjs_pro_engine_shape[_0x355662(0x132)]['SolidFill'];if(_0x551665!==void 0x0)this['shapeData']['fill']['color']=_0x551665;if(_0x57cf65!==void 0x0)this[_0x355662(0xc7)][_0x355662(0x136)][_0x355662(0x10d)]=_0x57cf65;return this;}['setShapeGradientFill'](_0x337459,_0x42fa31,_0x2821a8){const _0x4a622c=_0x50d3b2;if(_0x42fa31===void 0x0||_0x42fa31[_0x4a622c(0xac)]===0x0)throw new Error(_0x4a622c(0xd3));if(!this[_0x4a622c(0xc7)][_0x4a622c(0x136)])this[_0x4a622c(0xc7)]['fill']={};this[_0x4a622c(0xc7)][_0x4a622c(0x136)][_0x4a622c(0xb9)]=_0x42fa31,this[_0x4a622c(0xc7)][_0x4a622c(0x136)][_0x4a622c(0x130)]=_univerjs_pro_engine_shape[_0x4a622c(0x132)][_0x4a622c(0xbf)],this['shapeData'][_0x4a622c(0x136)][_0x4a622c(0xe1)]=_0x337459;if(_0x2821a8!==void 0x0)this['shapeData'][_0x4a622c(0x136)]['gradientAngle']=_0x2821a8;return this;}[_0x50d3b2(0xd7)](){const _0x2212ba=_0x50d3b2;return this['shapeData'][_0x2212ba(0x136)]={'fillType':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x2212ba(0x128)]},this;}[_0x50d3b2(0x129)](_0x1570de){const _0x56ded9=_0x50d3b2;if(!this[_0x56ded9(0xc7)][_0x56ded9(0x107)])this['shapeData'][_0x56ded9(0x107)]={};return this[_0x56ded9(0xc7)][_0x56ded9(0x107)][_0x56ded9(0xc6)]=_0x1570de,this;}['setStrokeWidth'](_0x5d8ad4){const _0x2c08a2=_0x50d3b2;if(!this[_0x2c08a2(0xc7)][_0x2c08a2(0x107)])this[_0x2c08a2(0xc7)]['stroke']={};return this['shapeData'][_0x2c08a2(0x107)][_0x2c08a2(0xf1)]=_0x5d8ad4,this;}['setStrokeLineDashType'](_0x3798ce){const _0x36e35b=_0x50d3b2;if(!this[_0x36e35b(0xc7)]['stroke'])this[_0x36e35b(0xc7)][_0x36e35b(0x107)]={};return this[_0x36e35b(0xc7)][_0x36e35b(0x107)]['dashType']=_0x3798ce,this;}[_0x50d3b2(0xd9)](_0x17294f){const _0x57f75b=_0x50d3b2;if(!this[_0x57f75b(0xc7)][_0x57f75b(0x107)])this[_0x57f75b(0xc7)][_0x57f75b(0x107)]={};return this[_0x57f75b(0xc7)][_0x57f75b(0x107)][_0x57f75b(0x115)]=_0x17294f,this;}[_0x50d3b2(0x105)](_0x44def4){const _0x28c5f1=_0x50d3b2;if(!this[_0x28c5f1(0xc7)][_0x28c5f1(0x107)])this[_0x28c5f1(0xc7)]['stroke']={};return this[_0x28c5f1(0xc7)][_0x28c5f1(0x107)][_0x28c5f1(0xd0)]=_0x44def4,this;}[_0x50d3b2(0xb6)](_0x570f89){const _0x52d55b=_0x50d3b2;if(!this[_0x52d55b(0xc7)][_0x52d55b(0x107)])this[_0x52d55b(0xc7)]['stroke']={};return this['shapeData']['stroke']['opacity']=_0x570f89,this;}['setStrokeLineType'](_0x4f02e8){const _0x183f98=_0x50d3b2;if(!this[_0x183f98(0xc7)][_0x183f98(0x107)])this['shapeData']['stroke']={};return this['shapeData'][_0x183f98(0x107)][_0x183f98(0x13d)]=_0x4f02e8,this;}[_0x50d3b2(0xb3)](_0x254822){const _0x21275a=_0x50d3b2;return this[_0x21275a(0xf1)]=_0x254822,this;}['setHeight'](_0x457905){return this['height']=_0x457905,this;}[_0x50d3b2(0x12c)](){const _0x1a3f21=_0x50d3b2,_0x3e7f7d=this['_injector'][_0x1a3f21(0xde)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x1a3f21(0xb2)](this[_0x1a3f21(0xf7)],this[_0x1a3f21(0x101)],this['drawId']);if(_0x3e7f7d)return(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x3e7f7d[_0x1a3f21(0x12f)]());if(this[_0x1a3f21(0xc2)])return(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this['shapeType']);return![];}['getConnectionSites'](){const _0x262f9a=_0x50d3b2,_0x245074=this['_injector'][_0x262f9a(0xde)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x262f9a(0xb2)](this[_0x262f9a(0xf7)],this['subUnitId'],this['drawId']);if(!_0x245074)return[];const _0x24445b=this[_0x262f9a(0x117)]['get'](_univerjs_drawing[_0x262f9a(0x124)])[_0x262f9a(0x118)]({'unitId':this['unitId'],'subUnitId':this[_0x262f9a(0x101)],'drawingId':this[_0x262f9a(0xdd)]});if(!(_0x24445b===null||_0x24445b===void 0x0?void 0x0:_0x24445b[_0x262f9a(0xff)]))return[];const {width:width=0x0,height:height=0x0}=_0x24445b[_0x262f9a(0xff)];return _0x245074['updateContext']({'width':width,'height':height}),_0x245074[_0x262f9a(0xe9)]();}['getAdjustPoints'](){const _0x9ea6d5=_0x50d3b2,_0x3ddc8a=this['_injector']['get'](_univerjs_pro_sheets_shape['SheetsShapeService'])['getShapeModel'](this[_0x9ea6d5(0xf7)],this['subUnitId'],this['drawId']);if(!_0x3ddc8a)return[];const _0x5c64ba=this['_injector'][_0x9ea6d5(0xde)](_univerjs_drawing[_0x9ea6d5(0x124)])[_0x9ea6d5(0x118)]({'unitId':this['unitId'],'subUnitId':this[_0x9ea6d5(0x101)],'drawingId':this[_0x9ea6d5(0xdd)]});if(!(_0x5c64ba===null||_0x5c64ba===void 0x0?void 0x0:_0x5c64ba[_0x9ea6d5(0xff)]))return[];const {width:width=0x0,height:height=0x0}=_0x5c64ba[_0x9ea6d5(0xff)];return _0x3ddc8a[_0x9ea6d5(0x138)]({'width':width,'height':height}),_0x3ddc8a[_0x9ea6d5(0xbe)]();}[_0x50d3b2(0x108)](){const _0x4193a6=_0x50d3b2,_0x2b2f02=this[_0x4193a6(0x117)]['get'](_univerjs_pro_sheets_shape[_0x4193a6(0xed)])[_0x4193a6(0xb2)](this['unitId'],this[_0x4193a6(0x101)],this[_0x4193a6(0xdd)]);if(!_0x2b2f02)return[];if(!(0x0,_univerjs_pro_engine_shape[_0x4193a6(0x11a)])(_0x2b2f02[_0x4193a6(0x12f)]()))return[];const _0x1668ba=this[_0x4193a6(0x117)][_0x4193a6(0xde)](_univerjs_drawing['IDrawingManagerService'])[_0x4193a6(0x118)]({'unitId':this[_0x4193a6(0xf7)],'subUnitId':this[_0x4193a6(0x101)],'drawingId':this['drawId']});if(!(_0x1668ba===null||_0x1668ba===void 0x0?void 0x0:_0x1668ba[_0x4193a6(0xff)]))return[];const {width:width=0x0,height:height=0x0}=_0x1668ba[_0x4193a6(0xff)];return _0x2b2f02[_0x4193a6(0x138)]({'width':width,'height':height}),_0x2b2f02[_0x4193a6(0x108)]();}[_0x50d3b2(0x12e)](){const _0x18f3a1=_0x50d3b2;var _0x335188;const _0x103d7a=this['_injector'][_0x18f3a1(0xde)](_univerjs_pro_sheets_shape[_0x18f3a1(0xed)])[_0x18f3a1(0xb2)](this[_0x18f3a1(0xf7)],this['subUnitId'],this['drawId']);if(!_0x103d7a)return null;return(_0x335188=_0x103d7a[_0x18f3a1(0x12e)]())!==null&&_0x335188!==void 0x0?_0x335188:null;}[_0x50d3b2(0x106)](){const _0xf6cc08=_0x50d3b2;var _0x5f0acf;const _0x44a89b=this['_injector'][_0xf6cc08(0xde)](_univerjs_pro_sheets_shape[_0xf6cc08(0xed)])[_0xf6cc08(0xb2)](this['unitId'],this[_0xf6cc08(0x101)],this[_0xf6cc08(0xdd)]);if(!_0x44a89b)return null;return(_0x5f0acf=_0x44a89b[_0xf6cc08(0x106)]())!==null&&_0x5f0acf!==void 0x0?_0x5f0acf:null;}[_0x50d3b2(0xf3)](){const _0x343e06=_0x50d3b2;var _0x2d679b,_0x1a6e16;if(!this[_0x343e06(0xc2)])throw new Error(_0x343e06(0x10c));if(this['x']===0x0||this['y']===0x0){const _0x3e9552=this[_0x343e06(0x117)][_0x343e06(0xde)](_univerjs_sheets[_0x343e06(0x11b)])['ensureSkeleton'](this[_0x343e06(0xf7)],this[_0x343e06(0x101)]);if(!_0x3e9552)throw new Error(_0x343e06(0x104)+this[_0x343e06(0xf7)]+'\x20and\x20subUnitId\x20'+this[_0x343e06(0x101)]+_0x343e06(0xdc));const {transform:_0x1baeab}=(0x0,_univerjs_sheets[_0x343e06(0xca)])(this[_0x343e06(0xf7)],this[_0x343e06(0x101)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x3e9552);this['x']=this['x']>0x0?this['x']:_0x1baeab['left'],this['y']=this['y']>0x0?this['y']:_0x1baeab[_0x343e06(0xfe)];}return this[_0x343e06(0xf1)]=(_0x2d679b=this['width'])!==null&&_0x2d679b!==void 0x0?_0x2d679b:_univerjs_pro_sheets_shape[_0x343e06(0xb0)],this['height']=(_0x1a6e16=this[_0x343e06(0xc3)])!==null&&_0x1a6e16!==void 0x0?_0x1a6e16:_univerjs_pro_sheets_shape['DEFAULT_SHAPE_HEIGHT'],{'unitId':this[_0x343e06(0xf7)],'subUnitId':this[_0x343e06(0x101)],'shapeId':this[_0x343e06(0xdd)],'shapeType':this[_0x343e06(0xc2)],'shapeData':Object[_0x343e06(0xbb)](this[_0x343e06(0xc7)])[_0x343e06(0xac)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x343e06(0xc3)]};}[_0x50d3b2(0xe5)](){const _0x13336a=_0x50d3b2;return this[_0x13336a(0xdd)];}[_0x50d3b2(0x12f)](){const _0x2b199d=_0x50d3b2;return this[_0x2b199d(0xc2)];}[_0x50d3b2(0xcf)](){return this['shapeData'];}[_0x50d3b2(0xe7)](){return{'x':this['x'],'y':this['y']};}[_0x50d3b2(0xe4)](){const _0x4db91c=_0x50d3b2;return{'width':this[_0x4db91c(0xf1)],'height':this[_0x4db91c(0xc3)]};}},FConnectorShape=class extends FShape{constructor(_0x4549e7,_0x62a85d,_0x212246,_0x14ff2e){super(_0x4549e7,_0x62a85d,_0x212246,_0x14ff2e),_defineProperty(this,'shapeData',{});}[_0x50d3b2(0xaf)](_0x4f7218){const _0x153830=_0x50d3b2;if(!(0x0,_univerjs_pro_engine_shape[_0x153830(0x11a)])(_0x4f7218))throw new Error(_0x153830(0xfb)+_0x4f7218+_0x153830(0xdb));return super['setShapeType'](_0x4f7218),this;}[_0x50d3b2(0xce)](_0x4665c7){const _0x55ab8a=_0x50d3b2;var _0x488810,_0x282eac;if(!((_0x488810=this[_0x55ab8a(0xc7)])===null||_0x488810===void 0x0?void 0x0:_0x488810['ln']))this[_0x55ab8a(0xc7)]['ln']={};if(!((_0x282eac=this['shapeData'])===null||_0x282eac===void 0x0||(_0x282eac=_0x282eac['ln'])===null||_0x282eac===void 0x0?void 0x0:_0x282eac['startArrow']))this[_0x55ab8a(0xc7)]['ln'][_0x55ab8a(0xd6)]={};return this[_0x55ab8a(0xc7)]['ln']['startArrow'][_0x55ab8a(0xee)]=_0x4665c7,this;}[_0x50d3b2(0xd2)](_0xc1aaa2){const _0x384ea2=_0x50d3b2;var _0x4820c1,_0x42cbff;if(!((_0x4820c1=this[_0x384ea2(0xc7)])===null||_0x4820c1===void 0x0?void 0x0:_0x4820c1['ln']))this[_0x384ea2(0xc7)]['ln']={};if(!((_0x42cbff=this[_0x384ea2(0xc7)])===null||_0x42cbff===void 0x0||(_0x42cbff=_0x42cbff['ln'])===null||_0x42cbff===void 0x0?void 0x0:_0x42cbff[_0x384ea2(0x102)]))this[_0x384ea2(0xc7)]['ln'][_0x384ea2(0x102)]={};return this[_0x384ea2(0xc7)]['ln'][_0x384ea2(0x102)][_0x384ea2(0xee)]=_0xc1aaa2,this;}[_0x50d3b2(0x126)](_0x14fdb3){const _0x46e65e=_0x50d3b2;var _0x2e60e3,_0x369a01;if(!((_0x2e60e3=this['shapeData'])===null||_0x2e60e3===void 0x0?void 0x0:_0x2e60e3['ln']))this[_0x46e65e(0xc7)]['ln']={};if(!((_0x369a01=this[_0x46e65e(0xc7)])===null||_0x369a01===void 0x0||(_0x369a01=_0x369a01['ln'])===null||_0x369a01===void 0x0?void 0x0:_0x369a01['startArrow']))this[_0x46e65e(0xc7)]['ln'][_0x46e65e(0xd6)]={};return this[_0x46e65e(0xc7)]['ln'][_0x46e65e(0xd6)]['size']=_0x14fdb3,this;}[_0x50d3b2(0x109)](_0xeea96e){const _0x4cc9f9=_0x50d3b2;var _0xe4a0fb,_0x4c547d;if(!((_0xe4a0fb=this[_0x4cc9f9(0xc7)])===null||_0xe4a0fb===void 0x0?void 0x0:_0xe4a0fb['ln']))this['shapeData']['ln']={};if(!((_0x4c547d=this['shapeData'])===null||_0x4c547d===void 0x0||(_0x4c547d=_0x4c547d['ln'])===null||_0x4c547d===void 0x0?void 0x0:_0x4c547d[_0x4cc9f9(0x102)]))this[_0x4cc9f9(0xc7)]['ln'][_0x4cc9f9(0x102)]={};return this[_0x4cc9f9(0xc7)]['ln'][_0x4cc9f9(0x102)]['size']=_0xeea96e,this;}[_0x50d3b2(0xf3)](){return super['build']();}['getEndConnectInfo'](){const _0x2d0368=_0x50d3b2;var _0x3510b5;return((_0x3510b5=this[_0x2d0368(0xc7)])===null||_0x3510b5===void 0x0||(_0x3510b5=_0x3510b5[_0x2d0368(0xc9)])===null||_0x3510b5===void 0x0?void 0x0:_0x3510b5['to'])||null;}[_0x50d3b2(0x12e)](){const _0x1c2969=_0x50d3b2;var _0x21b3f2;return((_0x21b3f2=this[_0x1c2969(0xc7)])===null||_0x21b3f2===void 0x0||(_0x21b3f2=_0x21b3f2[_0x1c2969(0xc9)])===null||_0x21b3f2===void 0x0?void 0x0:_0x21b3f2['from'])||null;}};function computeConnectionPointInfo(_0x35fa70,_0x26c5a6,_0x585a6f,_0x3d4849,_0xebea6b,_0x1b5560){const _0x4ecced=_0x50d3b2,_0x221dcb=_0xebea6b[_0x4ecced(0xb2)](_0x35fa70,_0x26c5a6,_0x585a6f);if(!_0x221dcb)return null;const _0x47d147=_0x1b5560['getDrawingByParam']({'unitId':_0x35fa70,'subUnitId':_0x26c5a6,'drawingId':_0x585a6f});if(!(_0x47d147===null||_0x47d147===void 0x0?void 0x0:_0x47d147[_0x4ecced(0xff)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x269de5}=_0x47d147[_0x4ecced(0xff)];_0x221dcb[_0x4ecced(0x138)]({'width':width,'height':height});const _0x1a4594=_0x221dcb[_0x4ecced(0xe9)]()[_0x4ecced(0xda)](_0x56dfd1=>_0x56dfd1[_0x4ecced(0x133)]===_0x3d4849);if(!_0x1a4594)return null;let _0x3fcebf=flipX?width-_0x1a4594['x']:_0x1a4594['x'],_0x4ba150=flipY?height-_0x1a4594['y']:_0x1a4594['y'];if(_0x269de5&&_0x269de5!==0x0){const _0x24e2be=_0x269de5*Math['PI']/0xb4,_0x1fad7e=Math[_0x4ecced(0xd5)](_0x24e2be),_0x2c06b9=Math[_0x4ecced(0xad)](_0x24e2be),_0x5e8562=width/0x2,_0x2cf8b5=height/0x2,_0x480980=_0x3fcebf-_0x5e8562,_0x4ae961=_0x4ba150-_0x2cf8b5;_0x3fcebf=_0x5e8562+_0x480980*_0x1fad7e-_0x4ae961*_0x2c06b9,_0x4ba150=_0x2cf8b5+_0x480980*_0x2c06b9+_0x4ae961*_0x1fad7e;}_0x3fcebf+=left,_0x4ba150+=top;let _0x58eb0d=_0x1a4594['ang']/0xea60;if(flipX)_0x58eb0d=0xb4-_0x58eb0d;if(flipY)_0x58eb0d=-_0x58eb0d;_0x58eb0d+=_0x269de5||0x0,_0x58eb0d=(_0x58eb0d%0x168+0x168)%0x168;const _0xb03560=(0x0,_univerjs_pro_engine_shape[_0x4ecced(0x135)])({'left':left,'top':top,'width':width,'height':height},_0x269de5||0x0);return{'point':{'x':_0x3fcebf,'y':_0x4ba150},'angle':_0x58eb0d,'bounds':_0xb03560};}function calculateFreeEndpointAngle(_0x32acd6,_0x892ccc){const _0x5d035d=_0x892ccc['x']-_0x32acd6['x'],_0x3e0d77=_0x892ccc['y']-_0x32acd6['y'];if(Math['abs'](_0x5d035d)>=Math['abs'](_0x3e0d77))return _0x5d035d>=0x0?0xb4:0x0;return _0x3e0d77>=0x0?0x10e:0x5a;}function computeFreeEndpointInfo(_0x400cd4,_0x34c7be,_0x32131c,_0x4937fb,_0x45aa42,_0x3cbe31,_0x184eaf){const _0x2bfa6b=_0x50d3b2,_0x427311=_0x3cbe31[_0x2bfa6b(0xb2)](_0x400cd4,_0x34c7be,_0x32131c);if(!_0x427311)return null;const _0x28c1cd=_0x184eaf[_0x2bfa6b(0x118)]({'unitId':_0x400cd4,'subUnitId':_0x34c7be,'drawingId':_0x32131c});if(!(_0x28c1cd===null||_0x28c1cd===void 0x0?void 0x0:_0x28c1cd[_0x2bfa6b(0xff)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x28c1cd[_0x2bfa6b(0xff)];_0x427311[_0x2bfa6b(0x138)]({'width':width,'height':height});const _0xa1550e=_0x427311[_0x2bfa6b(0x108)]();if(_0xa1550e[_0x2bfa6b(0xac)]<0x2)return null;const _0x29f9f1=_0x4937fb?_0xa1550e[0x0]:_0xa1550e[_0xa1550e['length']-0x1],_0x262e5b=new _univerjs_pro_engine_shape[(_0x2bfa6b(0xb7))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY})[_0x2bfa6b(0xf9)](_0x29f9f1);return{'point':_0x262e5b,'angle':calculateFreeEndpointAngle(_0x45aa42['point'],_0x262e5b),'bounds':{'left':_0x262e5b['x'],'top':_0x262e5b['y'],'width':0x0,'height':0x0}};}var FWorksheetShapeMixin=class extends _univerjs_sheets_facade[_0x50d3b2(0x10a)]{async['insertShape'](_0xeaec9c){const _0x1feabc=_0x50d3b2,{unitId:_0x37b77e,subUnitId:_0x29b46e,shapeId:_0x164849,shapeType:_0x7a74bd,shapeData:_0x5eb9e4,x:_0x205926,y:_0x5d1a49,width:_0x36f445,height:_0x32bebf}=_0xeaec9c;return this['_commandService'][_0x1feabc(0xfa)](_univerjs_pro_sheets_shape[_0x1feabc(0xb5)]['id'],{'unitId':_0x37b77e,'subUnitId':_0x29b46e,'shapeId':_0x164849,'shapeType':_0x7a74bd,'shapeData':_0x5eb9e4,'position':{'x':_0x205926,'y':_0x5d1a49},'width':_0x36f445,'height':_0x32bebf});}async['updateShape'](_0xf9db04){const _0x4f60aa=_0x50d3b2,{unitId:_0x41f834,subUnitId:_0x17898b,shapeId:_0x53df1f,shapeType:_0x12b268,shapeData:_0x3f3309,x:_0x1bd4b5,y:_0x3c4634,width:_0x1feeb6,height:_0x55fcab}=_0xf9db04;return this[_0x4f60aa(0xd1)][_0x4f60aa(0xfa)](_univerjs_pro_sheets_shape[_0x4f60aa(0xbd)]['id'],{'unitId':_0x41f834,'subUnitId':_0x17898b,'shapeId':_0x53df1f,'shapeType':_0x12b268,'shapeData':_0x3f3309,'position':{'x':_0x1bd4b5,'y':_0x3c4634},'width':_0x1feeb6,'height':_0x55fcab});}[_0x50d3b2(0x125)](_0x4e43b4){const _0x4d7d17=_0x50d3b2,_0x121a2c=this[_0x4d7d17(0x113)]()[_0x4d7d17(0xba)](),_0x354b21=this[_0x4d7d17(0xcd)]();if(_0x4e43b4){const _0x65e269=new FShape(_0x121a2c,_0x354b21,_0x4e43b4['drawId'],this['_injector']);return this['_preloadShapeProperties'](_0x65e269,_0x121a2c,_0x354b21,_0x4e43b4['drawId']),_0x65e269;}return new FShape(_0x121a2c,_0x354b21,(0x0,_univerjs_core[_0x4d7d17(0xef)])(),this['_injector']);}['newConnector'](_0x21f796){const _0x47aa58=_0x50d3b2,_0x44f2e2=this[_0x47aa58(0x113)]()[_0x47aa58(0xba)](),_0x1093f1=this[_0x47aa58(0xcd)]();if(_0x21f796){const _0x4daca2=new FConnectorShape(_0x44f2e2,_0x1093f1,_0x21f796[_0x47aa58(0xdd)],this[_0x47aa58(0x117)]);return this[_0x47aa58(0x122)](_0x4daca2,_0x44f2e2,_0x1093f1,_0x21f796[_0x47aa58(0xdd)]),_0x4daca2;}return new FConnectorShape(_0x44f2e2,_0x1093f1,(0x0,_univerjs_core['generateRandomId'])(),this[_0x47aa58(0x117)]);}['getShapes'](){const _0x4db511=_0x50d3b2,_0x2bdfe6=this[_0x4db511(0x117)][_0x4db511(0xde)](_univerjs_sheets_drawing[_0x4db511(0xf2)]),_0x3a61e2=this[_0x4db511(0x113)]()['getUnitId'](),_0x523108=this['getSheetId'](),_0x473eb8=_0x2bdfe6['getDrawingData'](_0x3a61e2,_0x523108);if(!_0x473eb8)return[];const _0x3bf277=[];for(const [_0x1cd2cd,_0x33c1fb]of Object[_0x4db511(0xc4)](_0x473eb8))if(_0x33c1fb&&_0x33c1fb[_0x4db511(0x10e)]===_univerjs_core[_0x4db511(0xf5)][_0x4db511(0xf4)]){const _0x4ab641=new FShape(_0x3a61e2,_0x523108,_0x1cd2cd,this[_0x4db511(0x117)]);this[_0x4db511(0x122)](_0x4ab641,_0x3a61e2,_0x523108,_0x1cd2cd),_0x3bf277[_0x4db511(0xc1)](_0x4ab641);}return _0x3bf277;}['removeShape'](_0x34ffa9){const _0x5e6b6d=_0x50d3b2,{unitId:_0x152a33,subUnitId:_0x25800e,drawId:_0x322ede}=_0x34ffa9;return this[_0x5e6b6d(0xd1)][_0x5e6b6d(0xfa)](_univerjs_sheets_drawing[_0x5e6b6d(0xeb)]['id'],{'unitId':_0x152a33,'drawings':[{'unitId':_0x152a33,'subUnitId':_0x25800e,'drawingId':_0x322ede,'drawingType':_univerjs_core[_0x5e6b6d(0xf5)]['DRAWING_SHAPE']}]});}async['connectShapes'](_0x29c4e7){const _0x27f91d=_0x50d3b2,{connector:_0x1b70e7,startTarget:_0x479df6,endTarget:_0xbbe03f}=_0x29c4e7;if(!_0x479df6&&!_0xbbe03f)return![];const _0xad3d7e=this[_0x27f91d(0x113)]()[_0x27f91d(0xba)](),_0x389303=this[_0x27f91d(0xcd)](),_0xc4c8df=this[_0x27f91d(0x117)][_0x27f91d(0xde)](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x31eb4d=this[_0x27f91d(0x117)][_0x27f91d(0xde)](_univerjs_drawing[_0x27f91d(0x124)]),_0x1e94c9=_0xc4c8df[_0x27f91d(0xb2)](_0xad3d7e,_0x389303,_0x1b70e7[_0x27f91d(0xdd)]);if(!_0x1e94c9)return![];const _0x2410d1=_0x1e94c9['getShapeType'](),_0x1c75c0=_0x1e94c9[_0x27f91d(0xfd)](),_0x458ef8={};for(const _0x4259a7 of _0x1e94c9['getAdjustNames']()){const _0x392ce9=_0x1e94c9['getAdjustValueByName'](_0x4259a7);if(_0x392ce9!==void 0x0)_0x458ef8[_0x4259a7]=_0x392ce9;}const {startInfo:_0x43424d,endInfo:_0x359489}=this[_0x27f91d(0xec)](_0xad3d7e,_0x389303,_0x1b70e7,_0x1e94c9,_0x479df6,_0xbbe03f,_0xc4c8df,_0x31eb4d,_0x1c75c0);if(!_0x43424d||!_0x359489)return![];const _0x37d69c=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])((0x0,_univerjs_pro_engine_shape[_0x27f91d(0xe2)])(_0x43424d,_0x359489,_0x2410d1),_0x2410d1),_0x83c7ff={};if(_0x479df6)_0x83c7ff[_0x27f91d(0xf8)]={'shapeId':_0x479df6[_0x27f91d(0x123)][_0x27f91d(0xdd)],'cxnIndex':_0x479df6[_0x27f91d(0x13a)]};else{if(_0x1c75c0===null||_0x1c75c0===void 0x0?void 0x0:_0x1c75c0['from'])_0x83c7ff[_0x27f91d(0xf8)]=_0x1c75c0[_0x27f91d(0xf8)];}if(_0xbbe03f)_0x83c7ff['to']={'shapeId':_0xbbe03f[_0x27f91d(0x123)]['drawId'],'cxnIndex':_0xbbe03f[_0x27f91d(0x13a)]};else{if(_0x1c75c0===null||_0x1c75c0===void 0x0?void 0x0:_0x1c75c0['to'])_0x83c7ff['to']=_0x1c75c0['to'];}return this[_0x27f91d(0xd1)][_0x27f91d(0xfa)](_univerjs_pro_sheets_shape[_0x27f91d(0xbc)]['id'],{'unitId':_0xad3d7e,'subUnitId':_0x389303,'connectorShapeId':_0x1b70e7[_0x27f91d(0xdd)],'width':_0x37d69c['worldRect'][_0x27f91d(0xf1)],'height':_0x37d69c[_0x27f91d(0xb1)][_0x27f91d(0xc3)],'left':_0x37d69c[_0x27f91d(0xb1)]['left'],'top':_0x37d69c[_0x27f91d(0xb1)][_0x27f91d(0xfe)],'flipX':_0x37d69c['worldRect']['flipX']||![],'flipY':_0x37d69c[_0x27f91d(0xb1)][_0x27f91d(0xc5)]||![],'oldAdjustValues':_0x458ef8,'newAdjustValues':_0x37d69c[_0x27f91d(0x120)],'newLineType':_0x37d69c[_0x27f91d(0x11f)],'oldLineType':_0x2410d1,'rotation':_0x37d69c[_0x27f91d(0x10f)],'oldRelation':_0x1c75c0,'newRelation':_0x83c7ff});}['_preloadShapeProperties'](_0x516e81,_0xba3682,_0x378166,_0x3dc6fe){const _0x3bf36d=_0x50d3b2,_0x593681=this[_0x3bf36d(0x117)][_0x3bf36d(0xde)](_univerjs_drawing[_0x3bf36d(0x124)])[_0x3bf36d(0x118)]({'unitId':_0xba3682,'subUnitId':_0x378166,'drawingId':_0x3dc6fe});if(_0x593681===null||_0x593681===void 0x0?void 0x0:_0x593681[_0x3bf36d(0xff)]){var _0x2b6d25,_0x41bf74,_0x5b5e3b,_0x28ea50;_0x516e81['x']=(_0x2b6d25=_0x593681[_0x3bf36d(0xff)][_0x3bf36d(0x11d)])!==null&&_0x2b6d25!==void 0x0?_0x2b6d25:0x0,_0x516e81['y']=(_0x41bf74=_0x593681[_0x3bf36d(0xff)][_0x3bf36d(0xfe)])!==null&&_0x41bf74!==void 0x0?_0x41bf74:0x0,_0x516e81['width']=(_0x5b5e3b=_0x593681['transform']['width'])!==null&&_0x5b5e3b!==void 0x0?_0x5b5e3b:_0x516e81['width'],_0x516e81[_0x3bf36d(0xc3)]=(_0x28ea50=_0x593681[_0x3bf36d(0xff)][_0x3bf36d(0xc3)])!==null&&_0x28ea50!==void 0x0?_0x28ea50:_0x516e81['height'];}const _0x534614=this[_0x3bf36d(0x117)]['get'](_univerjs_pro_sheets_shape[_0x3bf36d(0xed)])[_0x3bf36d(0xb2)](_0xba3682,_0x378166,_0x3dc6fe);if(_0x534614){_0x516e81[_0x3bf36d(0xc2)]=_0x534614[_0x3bf36d(0x12f)]();const _0x4beda4=_0x534614['getShapeData']();if(_0x4beda4)_0x516e81[_0x3bf36d(0xc7)]=JSON[_0x3bf36d(0x127)](JSON['stringify'](_0x4beda4));}}[_0x50d3b2(0xec)](_0x13ad77,_0x5ec7bb,_0x4f7c02,_0x51ff77,_0x3b6fe6,_0x428deb,_0x198188,_0x37b7ed,_0x2bfd6f){const _0x3579b0=_0x50d3b2;let _0x239f96=null,_0x125465=null;if(_0x3b6fe6)_0x239f96=computeConnectionPointInfo(_0x13ad77,_0x5ec7bb,_0x3b6fe6[_0x3579b0(0x123)][_0x3579b0(0xdd)],_0x3b6fe6[_0x3579b0(0x13a)],_0x198188,_0x37b7ed);if(_0x428deb)_0x125465=computeConnectionPointInfo(_0x13ad77,_0x5ec7bb,_0x428deb[_0x3579b0(0x123)][_0x3579b0(0xdd)],_0x428deb[_0x3579b0(0x13a)],_0x198188,_0x37b7ed);if(!_0x239f96)_0x239f96=this[_0x3579b0(0xb4)](_0x13ad77,_0x5ec7bb,_0x4f7c02['drawId'],!![],_0x125465,_0x2bfd6f===null||_0x2bfd6f===void 0x0?void 0x0:_0x2bfd6f[_0x3579b0(0xf8)],_0x198188,_0x37b7ed);if(!_0x125465)_0x125465=this[_0x3579b0(0xb4)](_0x13ad77,_0x5ec7bb,_0x4f7c02[_0x3579b0(0xdd)],![],_0x239f96,_0x2bfd6f===null||_0x2bfd6f===void 0x0?void 0x0:_0x2bfd6f['to'],_0x198188,_0x37b7ed);return{'startInfo':_0x239f96,'endInfo':_0x125465};}[_0x50d3b2(0xb4)](_0x2d37f9,_0x439542,_0x1ca519,_0x46e70b,_0x151542,_0x4a96b5,_0x208aef,_0xa7f902){const _0x1122e3=_0x50d3b2;if(_0x4a96b5){const _0x4269cd=computeConnectionPointInfo(_0x2d37f9,_0x439542,_0x4a96b5[_0x1122e3(0x13c)],_0x4a96b5[_0x1122e3(0xb8)],_0x208aef,_0xa7f902);if(_0x4269cd)return _0x4269cd;}if(!_0x151542)return null;return computeFreeEndpointInfo(_0x2d37f9,_0x439542,_0x1ca519,_0x46e70b,_0x151542,_0x208aef,_0xa7f902);}};_univerjs_sheets_facade[_0x50d3b2(0x10a)]['extend'](FWorksheetShapeMixin),exports[_0x50d3b2(0xf0)]=FConnectorShape,exports[_0x50d3b2(0xd4)]=FShape;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1420e0=_0x1b33;(function(_0x2f619f,_0x382120){const _0x22ed93=_0x1b33,_0x10a848=_0x2f619f();while(!![]){try{const _0x1aa6c7=parseInt(_0x22ed93(0x1ad))/0x1*(parseInt(_0x22ed93(0x224))/0x2)+-parseInt(_0x22ed93(0x1d8))/0x3+parseInt(_0x22ed93(0x1ae))/0x4+-parseInt(_0x22ed93(0x16e))/0x5+-parseInt(_0x22ed93(0x17c))/0x6*(-parseInt(_0x22ed93(0x1ab))/0x7)+parseInt(_0x22ed93(0x22f))/0x8*(-parseInt(_0x22ed93(0x1a8))/0x9)+-parseInt(_0x22ed93(0x1b7))/0xa*(-parseInt(_0x22ed93(0x19e))/0xb);if(_0x1aa6c7===_0x382120)break;else _0x10a848['push'](_0x10a848['shift']());}catch(_0x21cd83){_0x10a848['push'](_0x10a848['shift']());}}}(_0x5df6,0x67ebd),Object[_0x1420e0(0x1c8)](exports,Symbol[_0x1420e0(0x1a6)],{'value':_0x1420e0(0x1b0)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_drawing=require('@univerjs/drawing');const DEFAULT_SHAPE_WIDTH=0xc8,DEFAULT_SHAPE_HEIGHT=0xc8;function _typeof(_0x358621){'@babel/helpers - typeof';const _0x3fb051=_0x1420e0;return _typeof=_0x3fb051(0x1f1)==typeof Symbol&&_0x3fb051(0x1c2)==typeof Symbol[_0x3fb051(0x215)]?function(_0x5b8544){return typeof _0x5b8544;}:function(_0x35b1b5){const _0x3f80ca=_0x3fb051;return _0x35b1b5&&'function'==typeof Symbol&&_0x35b1b5[_0x3f80ca(0x190)]===Symbol&&_0x35b1b5!==Symbol[_0x3f80ca(0x1af)]?_0x3f80ca(0x1c2):typeof _0x35b1b5;},_typeof(_0x358621);}function toPrimitive(_0x54d9dc,_0xe72839){const _0x3ed171=_0x1420e0;if(_0x3ed171(0x1f9)!=_typeof(_0x54d9dc)||!_0x54d9dc)return _0x54d9dc;var _0x35e0df=_0x54d9dc[Symbol[_0x3ed171(0x16a)]];if(void 0x0!==_0x35e0df){var _0xab6c46=_0x35e0df[_0x3ed171(0x1b5)](_0x54d9dc,_0xe72839||_0x3ed171(0x202));if(_0x3ed171(0x1f9)!=_typeof(_0xab6c46))return _0xab6c46;throw new TypeError(_0x3ed171(0x1d5));}return(_0x3ed171(0x180)===_0xe72839?String:Number)(_0x54d9dc);}function toPropertyKey(_0x18a995){const _0x3d36af=_0x1420e0;var _0x47824c=toPrimitive(_0x18a995,_0x3d36af(0x180));return _0x3d36af(0x1c2)==_typeof(_0x47824c)?_0x47824c:_0x47824c+'';}function _defineProperty(_0x40f6a6,_0x45df40,_0x5759a){const _0x3a14d0=_0x1420e0;return(_0x45df40=toPropertyKey(_0x45df40))in _0x40f6a6?Object[_0x3a14d0(0x1c8)](_0x40f6a6,_0x45df40,{'value':_0x5759a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40f6a6[_0x45df40]=_0x5759a,_0x40f6a6;}var SheetShapeModelManager=class extends _univerjs_core[_0x1420e0(0x177)]{constructor(){const _0xc3d89a=_0x1420e0;super(),_defineProperty(this,'_shapes',new Map()),_defineProperty(this,_0xc3d89a(0x176),new Set()),_defineProperty(this,_0xc3d89a(0x168),new Set());}['addShape'](_0x26c406,_0x2012bf,_0x5a00f7){const _0x5b3e95=_0x1420e0,_0x597f52=new _univerjs_pro_engine_shape['ShapeModel'](_0x26c406,_0x2012bf,_0x5a00f7);this[_0x5b3e95(0x1b6)][_0x5b3e95(0x1ed)](_0x2012bf,_0x597f52);if((0x0,_univerjs_pro_engine_shape[_0x5b3e95(0x1fd)])(_0x26c406))this['_linesIds'][_0x5b3e95(0x1f6)](_0x2012bf);return _0x597f52;}[_0x1420e0(0x1d1)](_0x2c825d){const _0x3c17cb=_0x1420e0,_0x2a4ff4=[];for(const _0x519f72 of this[_0x3c17cb(0x176)]){const _0x4273ab=this['_shapes']['get'](_0x519f72);if(_0x4273ab){const _0x11cc56=_0x4273ab[_0x3c17cb(0x1c1)]();if(_0x11cc56){var _0x4b7214,_0x569048;if(((_0x4b7214=_0x11cc56[_0x3c17cb(0x1cc)])===null||_0x4b7214===void 0x0?void 0x0:_0x4b7214[_0x3c17cb(0x22d)])===_0x2c825d)_0x2a4ff4['push']({..._0x11cc56[_0x3c17cb(0x1cc)],'lineShapeId':_0x519f72,'isFrom':!![]});if(((_0x569048=_0x11cc56['to'])===null||_0x569048===void 0x0?void 0x0:_0x569048[_0x3c17cb(0x22d)])===_0x2c825d)_0x2a4ff4[_0x3c17cb(0x20e)]({..._0x11cc56['to'],'lineShapeId':_0x519f72,'isFrom':![]});}}}return _0x2a4ff4;}[_0x1420e0(0x179)](_0x51a018){const _0x26dcf9=_0x1420e0,_0x2354b1=this[_0x26dcf9(0x1b6)]['get'](_0x51a018);if(_0x2354b1)return _0x2354b1[_0x26dcf9(0x1c1)]();}[_0x1420e0(0x1db)](_0x401d94){const _0x1434dc=_0x1420e0,_0x119729=this[_0x1434dc(0x1b6)][_0x1434dc(0x213)](_0x401d94);if(_0x119729)return _0x119729[_0x1434dc(0x1db)]();}[_0x1420e0(0x18b)](_0x471836){const _0x1978da=_0x1420e0;return this[_0x1978da(0x1b6)]['has'](_0x471836);}[_0x1420e0(0x1a3)](_0x348e60){const _0x2baf07=_0x1420e0,_0xdf8036=this[_0x2baf07(0x1b6)][_0x2baf07(0x213)](_0x348e60);if(!_0xdf8036)return;if((0x0,_univerjs_pro_engine_shape[_0x2baf07(0x1fd)])(_0xdf8036[_0x2baf07(0x1db)]()))this[_0x2baf07(0x176)][_0x2baf07(0x1ff)](_0x348e60);this[_0x2baf07(0x1b6)][_0x2baf07(0x1ff)](_0x348e60);}['toJSON'](){const _0x529fd2=_0x1420e0,_0x5dcef0=[];return this[_0x529fd2(0x1b6)][_0x529fd2(0x22a)](_0xb338fd=>{const _0x3e38e5=_0x529fd2;_0x5dcef0['push'](_0xb338fd[_0x3e38e5(0x16b)]());}),_0x5dcef0;}[_0x1420e0(0x1bc)](_0x4009b9){const _0xf6fa07=_0x1420e0;for(const _0x10bf92 of _0x4009b9){const {id:_0x2e11ec,shapeType:_0xaa0a2e}=_0x10bf92,_0x1417a6=this[_0xf6fa07(0x1ef)](_0xaa0a2e,_0x2e11ec,_0x10bf92[_0xf6fa07(0x1b1)]);if(_0x1417a6&&_0x1417a6[_0xf6fa07(0x1a7)]())this[_0xf6fa07(0x176)]['add'](_0x2e11ec);}}[_0x1420e0(0x22c)](){const _0x33659c=_0x1420e0;if(this[_0x33659c(0x1d2)])return;this[_0x33659c(0x1b6)][_0x33659c(0x22a)](_0x5e52d3=>{const _0x409e66=_0x33659c;_0x5e52d3[_0x409e66(0x22c)]();}),this['_shapes'][_0x33659c(0x227)](),this[_0x33659c(0x176)][_0x33659c(0x227)](),this[_0x33659c(0x168)][_0x33659c(0x227)](),super[_0x33659c(0x22c)]();}};function __decorateParam(_0x52f759,_0x31c012){return function(_0x295cca,_0x578971){_0x31c012(_0x295cca,_0x578971,_0x52f759);};}function __decorate(_0x1c3f1d,_0xb68cd6,_0x5171e4,_0x2b6bf1){const _0x112065=_0x1420e0;var _0x897924=arguments[_0x112065(0x206)],_0x4d69a3=_0x897924<0x3?_0xb68cd6:_0x2b6bf1===null?_0x2b6bf1=Object[_0x112065(0x1ec)](_0xb68cd6,_0x5171e4):_0x2b6bf1,_0x55ec87;if(typeof Reflect===_0x112065(0x1f9)&&typeof Reflect[_0x112065(0x1c4)]===_0x112065(0x1f1))_0x4d69a3=Reflect[_0x112065(0x1c4)](_0x1c3f1d,_0xb68cd6,_0x5171e4,_0x2b6bf1);else{for(var _0x5cb865=_0x1c3f1d[_0x112065(0x206)]-0x1;_0x5cb865>=0x0;_0x5cb865--)if(_0x55ec87=_0x1c3f1d[_0x5cb865])_0x4d69a3=(_0x897924<0x3?_0x55ec87(_0x4d69a3):_0x897924>0x3?_0x55ec87(_0xb68cd6,_0x5171e4,_0x4d69a3):_0x55ec87(_0xb68cd6,_0x5171e4))||_0x4d69a3;}return _0x897924>0x3&&_0x4d69a3&&Object['defineProperty'](_0xb68cd6,_0x5171e4,_0x4d69a3),_0x4d69a3;}const SHEET_SHAPE_PLUGIN=_0x1420e0(0x172);function _0x5df6(){const _0x2304d8=['UniverLicensePlugin','SetDrawingApplyMutation','UpdateLineShapeResizeCommand','add','rotateEnabled','CommandType','object','entries','packageName','routeConnectorLineShape','isConnectorShape','updateContext','delete','sheet.command.update-connector-relation','SheetsShapeService','default','_sheetInterceptorService','params','angle','length','transformToDrawingPosition','getAdjustNames','getSheetCommandTarget','setShapeData','sheet.command.insert-shape','sequenceExecute','UniverInstanceType','push','UNIVER_SHEET','worldRect','getBasicShapeType','data','get','_addLineRerouteUpdates','iterator','flipX','_serializeShapeForUnit','_initSnapshot','merge','transformToAxisAlignPosition','rotation','0.21.0','getDrawingByParam','_ensureShapeModelManager','left','_commandService','InsertShapeCommand','find','pushUndoRedo','50VLeKLN','width','sheet.command.set-shape-drawing-data','clear','every','fill','forEach','removeLinePoints','dispose','shapeId','MUTATION','184BOhWfu','syncExecuteCommand','SheetSkeletonService','IConfigService','drawingType','sheet.command.update-line-shape-resize','position','_groupIds','getBatchUpdateOp','toPrimitive','toJSON','isFrom','getEndConnectInfo','1450655ndbNKM','getSkeleton','getDrawingData','redos','SHEET_SHAPE_PLUGIN','DrawingTypeEnum','INSERT','index','_linesIds','Disposable','filter','getLineShapeRelation','startY','_resourcesManagerService','57918EQqsPN','adjustValues','transform','disposeWithMe','string','SetSheetDrawingCommand','UniverSheetsShapePlugin','@univerjs-pro/sheets-shape','UpdateSheetsShapeTypeMutation','IUniverInstanceService','keys','onCommandExecute','ISheetDrawingService','sheet.mutation.insert-shape','preRedos','hasShape','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','SetSheetsShapeTextVerticalToggleCommand','InsertSheetDrawingCommand','cos','constructor','RemoveSheetDrawingCommand','getShapeTextData','DRAWING_SHAPE','touchDependencies','flipY','_sheetsShapeService','generateRandomId','COMMAND','lineShapeId','borderEnabled','Inject','relation','REMOVE','11wLIgBp','version','sheet.mutation.update-shape-data','sheet.mutation.update-shape-type','DependentOn','removeShape','getShapeModel','sheet.command.toggle-shape-flip','toStringTag','isLineShape','251658Tpbcdx','_shapeModelManagerMap','parse','196NdXYcY','DrawingApplyType','29675KxAaYj','2110780zGFsuU','prototype','Module','shapeData','cxnIndex','preUndos','sin','call','_shapes','5172740htCncm','ensureSkeleton','UPDATE','sheet.command.update-shape-type','sheets-shape.config','fromJSON','ToggleSheetsShapeFlipCommand','getStartConnectInfo','_addLineFollowShapeUpdates','IUndoRedoService','getShapeRelation','symbol','InsertSheetsShapeMutation','decorate','SheetInterceptorService','range','_config','defineProperty','undos','sheet.mutation.remove-shape','onStarting','from','_sheetSkeletonService','insertShape','_injector','interceptCommand','getBasicShapeRelation','_disposed','_initCommands','Plugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','getCellIndexAndOffsetByPosition','2094630RzlwmS','SetShapeDrawingDataCommand','height','getShapeType','getShapeData','resizeEnabled','startX','_configService','type','_deserializeShapeForUnit','UpdateSheetsShapeTypeCommand','sheet.command.set-shape-rotate','top','setShapeType','assign','_drawingManagerService','getCellWithCoordByIndex','_initCommandInterceptor','ClearSheetDrawingTransformerOperation','DEFAULT_SHAPE_HEIGHT','getOwnPropertyDescriptor','set','_getConnectPointInfo','addShape','ICommandService','function','getShapeDataById'];_0x5df6=function(){return _0x2304d8;};return _0x5df6();}let SheetsShapeService=class SheetsShapeService extends _univerjs_core[_0x1420e0(0x177)]{constructor(_0x4d1272){const _0x23026b=_0x1420e0;super(),this['_resourcesManagerService']=_0x4d1272,_defineProperty(this,'_shapeModelManagerMap',new Map()),this[_0x23026b(0x218)]();}[_0x1420e0(0x21e)](_0x488e2d,_0x52275f){const _0xc9f119=_0x1420e0;let _0x37ac1c=this['_shapeModelManagerMap'][_0xc9f119(0x213)](_0x488e2d);!_0x37ac1c&&(_0x37ac1c=new Map(),this[_0xc9f119(0x1a9)][_0xc9f119(0x1ed)](_0x488e2d,_0x37ac1c));let _0x1d1168=_0x37ac1c[_0xc9f119(0x213)](_0x52275f);return!_0x1d1168&&(_0x1d1168=new SheetShapeModelManager(),_0x37ac1c[_0xc9f119(0x1ed)](_0x52275f,_0x1d1168)),_0x1d1168;}['insertShape'](_0x159ed0,_0x46e076,_0x4ea77f,_0x7f9541,_0x494e80){const _0x1c87d8=_0x1420e0;this[_0x1c87d8(0x21e)](_0x159ed0,_0x46e076)[_0x1c87d8(0x1ef)](_0x4ea77f,_0x7f9541,_0x494e80);}['removeShape'](_0x3bba0d,_0x2d7cbe,_0x2d2b8b){const _0x16ed4f=_0x1420e0;this[_0x16ed4f(0x21e)](_0x3bba0d,_0x2d7cbe)[_0x16ed4f(0x1a3)](_0x2d2b8b);}[_0x1420e0(0x211)](_0x26f7e6,_0x406325,_0x11cc7d){const _0x463055=_0x1420e0;return this[_0x463055(0x21e)](_0x26f7e6,_0x406325)[_0x463055(0x1db)](_0x11cc7d);}[_0x1420e0(0x1db)](_0x23629d,_0x5bff6d,_0x53d876){const _0x35a2b2=_0x1420e0;return this['_ensureShapeModelManager'](_0x23629d,_0x5bff6d)[_0x35a2b2(0x1db)](_0x53d876);}['hasShape'](_0x308879,_0x5f01ab,_0x1e1baf){return this['_ensureShapeModelManager'](_0x308879,_0x5f01ab)['hasShape'](_0x1e1baf);}['getShapeTypeById'](_0x53bd53,_0x3ce88c,_0x5816ba){const _0x4e28fe=_0x1420e0;return this[_0x4e28fe(0x21e)](_0x53bd53,_0x3ce88c)[_0x4e28fe(0x1db)](_0x5816ba);}[_0x1420e0(0x1f2)](_0x53765e,_0x214fb5,_0x34c58d){const _0x19d94f=_0x1420e0,_0x45d603=this['_ensureShapeModelManager'](_0x53765e,_0x214fb5);if(!_0x45d603['getShapeType'](_0x34c58d))return;const _0x3b54b9=_0x45d603[_0x19d94f(0x1b6)]['get'](_0x34c58d);if(!_0x3b54b9)return;return _0x3b54b9[_0x19d94f(0x1dc)]();}[_0x1420e0(0x1a4)](_0x5113eb,_0x5b4fbb,_0x27e019){const _0x27d3c0=_0x1420e0;return this[_0x27d3c0(0x21e)](_0x5113eb,_0x5b4fbb)[_0x27d3c0(0x1b6)]['get'](_0x27e019);}[_0x1420e0(0x1d1)](_0x5b4025,_0x2ee420,_0x57d2e6){const _0x4fe2b3=_0x1420e0;return this[_0x4fe2b3(0x21e)](_0x5b4025,_0x2ee420)[_0x4fe2b3(0x1d1)](_0x57d2e6);}[_0x1420e0(0x179)](_0x1f112b,_0xd84fc,_0xc127ee){const _0x464517=_0x1420e0,_0x1bbd27=this[_0x464517(0x21e)](_0x1f112b,_0xd84fc)[_0x464517(0x1b6)][_0x464517(0x213)](_0xc127ee);if(!_0x1bbd27)return;return _0x1bbd27[_0x464517(0x1c1)]();}[_0x1420e0(0x1e5)](){}['_serializeShapeForUnit'](_0x566b8a){const _0x274051=_0x1420e0,_0x5b40ee={},_0x15ba9f=this[_0x274051(0x1a9)][_0x274051(0x213)](_0x566b8a);if(_0x15ba9f)_0x15ba9f[_0x274051(0x22a)]((_0xb33b5e,_0x4bf0df)=>{const _0x458443=_0x274051,_0x2f1df6=_0xb33b5e[_0x458443(0x16b)]();if(_0x2f1df6[_0x458443(0x206)]>0x0)_0x5b40ee[_0x4bf0df]=_0x2f1df6;});return JSON['stringify'](_0x5b40ee);}[_0x1420e0(0x1e1)](_0x3cfc64,_0x2d23fb){const _0x5a4ce4=_0x1420e0;Object[_0x5a4ce4(0x186)](_0x2d23fb)[_0x5a4ce4(0x22a)](_0x1bc69d=>{const _0x35495f=_0x5a4ce4;this[_0x35495f(0x21e)](_0x3cfc64,_0x1bc69d)[_0x35495f(0x1bc)](_0x2d23fb[_0x1bc69d]);});}['toJSON'](){const _0x56fd81=_0x1420e0,_0x3c76d2={};return this[_0x56fd81(0x1a9)][_0x56fd81(0x22a)]((_0x865f39,_0xb6a8e7)=>{const _0x217ce5=_0x56fd81;_0x3c76d2[_0xb6a8e7]={},_0x865f39[_0x217ce5(0x22a)]((_0x3fa35b,_0xe5c7b)=>{_0x3c76d2[_0xb6a8e7][_0xe5c7b]=_0x3fa35b['toJSON']();});}),_0x3c76d2;}['fromJSON'](_0x3bc791){const _0x85bfe2=_0x1420e0;Object[_0x85bfe2(0x186)](_0x3bc791)[_0x85bfe2(0x22a)](_0x5639a5=>{const _0xc0330=_0x85bfe2,_0x5a8809=_0x3bc791[_0x5639a5];Object[_0xc0330(0x186)](_0x5a8809)['forEach'](_0x1a2131=>{const _0x5108e9=_0xc0330;this[_0x5108e9(0x21e)](_0x5639a5,_0x1a2131)[_0x5108e9(0x1bc)](_0x5a8809[_0x1a2131]);});});}['_initSnapshot'](){const _0x588ce0=_0x1420e0;this[_0x588ce0(0x17b)]['registerPluginResource']({'pluginName':SHEET_SHAPE_PLUGIN,'businesses':[_univerjs_core[_0x588ce0(0x20d)][_0x588ce0(0x20f)]],'toJson':_0x6237b2=>this[_0x588ce0(0x217)](_0x6237b2),'parseJson':_0x2fd96d=>JSON[_0x588ce0(0x1aa)](_0x2fd96d),'onLoad':(_0x1f0462,_0x116a0c)=>{const _0x4d807e=_0x588ce0;this[_0x4d807e(0x1e1)](_0x1f0462,_0x116a0c);},'onUnLoad':_0x1e8ab3=>{const _0x2b344c=_0x588ce0,_0x296bc2=this[_0x2b344c(0x1a9)][_0x2b344c(0x213)](_0x1e8ab3);_0x296bc2&&(_0x296bc2[_0x2b344c(0x22a)](_0xf29c45=>{_0xf29c45['dispose']();}),this['_shapeModelManagerMap'][_0x2b344c(0x1ff)](_0x1e8ab3));}});}[_0x1420e0(0x22c)](){const _0x4a6cf3=_0x1420e0;this[_0x4a6cf3(0x1a9)][_0x4a6cf3(0x22a)](_0x23bc75=>{const _0x32e20f=_0x4a6cf3;_0x23bc75[_0x32e20f(0x22a)](_0x2eb625=>{const _0x3b5ca1=_0x32e20f;_0x2eb625[_0x3b5ca1(0x22c)]();});});}};SheetsShapeService=__decorate([__decorateParam(0x0,_univerjs_core['IResourceManagerService'])],SheetsShapeService);const InsertSheetsShapeMutation={'id':_0x1420e0(0x189),'type':_univerjs_core['CommandType'][_0x1420e0(0x22e)],'handler':(_0x32e0bf,_0x4046ea)=>{const _0x528ada=_0x1420e0,{unitId:_0x3d69ff,subUnitId:_0x65eb3f,shapeType:_0x1a2508,shapeId:_0x4ce2b1,shapeData:_0x14bbbf}=_0x4046ea;return _0x32e0bf['get'](SheetsShapeService)[_0x528ada(0x1ce)](_0x3d69ff,_0x65eb3f,_0x1a2508,_0x4ce2b1,_0x14bbbf),!![];}},RemoveSheetsShapeMutation={'id':_0x1420e0(0x1ca),'type':_univerjs_core[_0x1420e0(0x1f8)][_0x1420e0(0x22e)],'handler':(_0x4e2a79,_0x5458b7)=>{const _0x505240=_0x1420e0,{unitId:_0x54e5c3,subUnitId:_0x4082e7,shapeId:_0x324dd8}=_0x5458b7;return _0x4e2a79['get'](SheetsShapeService)[_0x505240(0x1a3)](_0x54e5c3,_0x4082e7,_0x324dd8),!![];}},InsertShapeCommand={'type':_univerjs_core[_0x1420e0(0x1f8)][_0x1420e0(0x198)],'id':_0x1420e0(0x20b),'handler':(_0x1ec85d,_0x4a1676)=>{const _0x20dbad=_0x1420e0;var _0x9093c5,_0x1bab8f;const _0x1bc01d=(0x0,_univerjs_sheets[_0x20dbad(0x209)])(_0x1ec85d[_0x20dbad(0x213)](_univerjs_core[_0x20dbad(0x185)]),_0x4a1676);if(!_0x1bc01d)return![];const _0x18ec6b=_0x1ec85d['get'](_univerjs_sheets[_0x20dbad(0x231)]),{unitId:_0x1d8a7d,subUnitId:_0x17013d}=_0x1bc01d,_0x4c5bcb=_0x18ec6b[_0x20dbad(0x1b8)](_0x1d8a7d,_0x17013d);if(!_0x4c5bcb)return![];const _0x455c8a=_0x1ec85d['get'](_univerjs_core[_0x20dbad(0x1f0)]),_0x296b63=_0x1ec85d[_0x20dbad(0x213)](_univerjs_core[_0x20dbad(0x1c0)]),_0x50cb4d=_0x1ec85d[_0x20dbad(0x213)](_univerjs_sheets[_0x20dbad(0x1c5)]),_0x4a2b1f=_0x1ec85d[_0x20dbad(0x213)](_univerjs_sheets_drawing[_0x20dbad(0x188)]),{shapeType:_0x3fa59d,shapeData:_0x56b599}=_0x4a1676,_0x44e505=_0x4a1676[_0x20dbad(0x22d)]||(0x0,_univerjs_core[_0x20dbad(0x197)])(),_0x3f4ef6={'unitId':_0x1d8a7d,'subUnitId':_0x17013d,'shapeId':_0x44e505,'shapeType':_0x3fa59d,'shapeData':_0x56b599},_0x308769=_0x4a1676[_0x20dbad(0x225)]||0xc8,_0x1158dd=_0x4a1676[_0x20dbad(0x1da)]||0xc8;let _0x3ba561=0x0,_0x5882c0=0x0,_0x38e48d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x10a76a={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x4a1676[_0x20dbad(0x167)]){const {x:_0x4a05dd,y:_0x1ebd1e}=_0x4a1676[_0x20dbad(0x167)];_0x3ba561=_0x4a05dd,_0x5882c0=_0x1ebd1e,_0x38e48d=_0x4c5bcb[_0x20dbad(0x1d7)](_0x4a05dd,_0x1ebd1e),_0x10a76a=_0x4c5bcb['getCellIndexAndOffsetByPosition'](_0x4a05dd+_0x308769,_0x1ebd1e+_0x1158dd);}else{if(_0x4a1676[_0x20dbad(0x1c6)]){const {startRow:_0xf5416c,startColumn:_0x1c93c7}=_0x4a1676[_0x20dbad(0x1c6)],_0x53885a=0xa,_0x4a903e=0xa;_0x38e48d={'row':_0xf5416c,'rowOffset':_0x53885a,'column':_0x1c93c7,'columnOffset':_0x4a903e};const _0x40979f=_0x4c5bcb[_0x20dbad(0x1e8)](_0xf5416c,_0x1c93c7);_0x3ba561=_0x40979f[_0x20dbad(0x1de)]+_0x4a903e,_0x5882c0=_0x40979f[_0x20dbad(0x17a)]+_0x53885a,_0x10a76a=_0x4c5bcb[_0x20dbad(0x1d7)](_0x3ba561+_0x308769,_0x5882c0+_0x1158dd);}}const _0x4f6c3d={'from':_0x38e48d,'to':_0x10a76a},_0x47ea37={'unitId':_0x1d8a7d,'subUnitId':_0x17013d,'drawingId':_0x44e505,'drawingType':_univerjs_core[_0x20dbad(0x173)]['DRAWING_SHAPE'],'sheetTransform':_0x4f6c3d,'transform':{'left':_0x3ba561,'top':_0x5882c0,'width':_0x308769,'height':_0x1158dd},'data':{'shapeType':_0x3fa59d,'shapeData':_0x56b599},'axisAlignSheetTransform':_0x4f6c3d,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape[_0x20dbad(0x1fd)])(_0x3fa59d)&&(_0x47ea37[_0x20dbad(0x212)][_0x20dbad(0x229)]=![],_0x47ea37[_0x20dbad(0x212)][_0x20dbad(0x1f7)]=![],_0x47ea37[_0x20dbad(0x212)]['resizeEnabled']=![],_0x47ea37[_0x20dbad(0x212)][_0x20dbad(0x19a)]=![],_0x47ea37[_0x20dbad(0x17e)][_0x20dbad(0x1f7)]=![],_0x47ea37[_0x20dbad(0x17e)]['resizeEnabled']=![],_0x47ea37['transform']['borderEnabled']=![]);const {undo:_0x312f2a,redo:_0x4b338e,objects:_0x7bc37e}=_0x4a2b1f['getBatchAddOp']([_0x47ea37]),_0x4c8216=_0x50cb4d[_0x20dbad(0x187)]({'id':_univerjs_sheets_drawing[_0x20dbad(0x18e)]['id'],'params':{'unitId':_0x1d8a7d,'drawings':[_0x47ea37]}}),_0x24f90c=[...(_0x9093c5=_0x4c8216[_0x20dbad(0x18a)])!==null&&_0x9093c5!==void 0x0?_0x9093c5:[],{'id':_univerjs_sheets_drawing[_0x20dbad(0x1f4)]['id'],'params':{'unitId':_0x1d8a7d,'subUnitId':_0x17013d,'op':_0x4b338e,'objects':_0x7bc37e,'type':_univerjs_sheets_drawing[_0x20dbad(0x1ac)][_0x20dbad(0x174)]}},{'id':_univerjs_sheets_drawing[_0x20dbad(0x1ea)]['id'],'params':[_0x1d8a7d]},..._0x4c8216[_0x20dbad(0x171)],{'id':InsertSheetsShapeMutation['id'],'params':_0x3f4ef6}],_0x4c0c0d=[{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x1d8a7d,'subUnitId':_0x17013d,'shapeId':_0x44e505}},...(_0x1bab8f=_0x4c8216['preUndos'])!==null&&_0x1bab8f!==void 0x0?_0x1bab8f:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1d8a7d,'subUnitId':_0x17013d,'op':_0x312f2a,'objects':_0x7bc37e,'type':_univerjs_sheets_drawing[_0x20dbad(0x1ac)][_0x20dbad(0x19d)]}},{'id':_univerjs_sheets_drawing[_0x20dbad(0x1ea)]['id'],'params':[_0x1d8a7d]},..._0x4c8216[_0x20dbad(0x1c9)]];if((0x0,_univerjs_core['sequenceExecute'])(_0x24f90c,_0x455c8a))return _0x296b63[_0x20dbad(0x223)]({'unitID':_0x1d8a7d,'undoMutations':_0x4c0c0d,'redoMutations':_0x24f90c}),!![];return![];}},UpdateSheetsShapeDataMutation={'id':_0x1420e0(0x1a0),'type':_univerjs_core[_0x1420e0(0x1f8)][_0x1420e0(0x22e)],'handler':(_0x355d0a,_0x22505b)=>{const _0x1f08bb=_0x1420e0,{unitId:_0x45d6f6,subUnitId:_0x464833,shapeType:_0x3f774f,shapeId:_0x21fe2f,shapeData:_0x43c6b2}=_0x22505b,_0x534714=_0x355d0a[_0x1f08bb(0x213)](SheetsShapeService)['getShapeModel'](_0x45d6f6,_0x464833,_0x21fe2f);if(_0x534714){if(_0x3f774f!==void 0x0)_0x534714[_0x1f08bb(0x1e5)](_0x3f774f);if(_0x43c6b2)_0x534714===null||_0x534714===void 0x0||_0x534714[_0x1f08bb(0x20a)](_0x43c6b2,!![]);}return!![];}},SetShapeDrawingDataCommand={'type':_univerjs_core[_0x1420e0(0x1f8)][_0x1420e0(0x198)],'id':_0x1420e0(0x226),'handler':(_0x5e9978,_0x3e0dea)=>{const _0x24032f=_0x1420e0;var _0xc68246,_0x5c5f16;const _0x27eb3f=(0x0,_univerjs_sheets[_0x24032f(0x209)])(_0x5e9978['get'](_univerjs_core['IUniverInstanceService']),_0x3e0dea);if(!_0x27eb3f)return![];const _0x1b42e2=_0x5e9978[_0x24032f(0x213)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x5ef547,subUnitId:_0x5b7e24}=_0x27eb3f,_0x24cb25=_0x1b42e2[_0x24032f(0x1b8)](_0x5ef547,_0x5b7e24);if(!_0x24cb25)return![];const _0x3b2bfd=_0x5e9978['get'](SheetsShapeService),{shapeId:_0x2fa39e,shapeType:_0x1636dd,shapeData:_0x131f96,position:_0x3bcd38,width:_0x2f4668,height:_0x1dac5d}=_0x3e0dea,_0x432d67=_0x3b2bfd[_0x24032f(0x1a4)](_0x5ef547,_0x5b7e24,_0x2fa39e);if(!_0x432d67)return![];const _0x381288=_0x5e9978['get'](_univerjs_core['ICommandService']),_0x366765=_0x5e9978[_0x24032f(0x213)](_univerjs_core[_0x24032f(0x1c0)]),_0x4a6817=_0x5e9978['get'](_univerjs_sheets[_0x24032f(0x1c5)]),_0x24b6ab=_0x5e9978['get'](_univerjs_sheets_drawing[_0x24032f(0x188)]),_0x248edb={'unitId':_0x5ef547,'subUnitId':_0x5b7e24,'shapeId':_0x2fa39e,'shapeType':_0x1636dd,'shapeData':_0x131f96},_0x5947c2=_0x432d67[_0x24032f(0x1db)](),_0x4b114f=_0x432d67[_0x24032f(0x1dc)](),{x:_0x52f072,y:_0x3babc1}=_0x3bcd38,_0x5a2f0b={'from':_0x24cb25['getCellIndexAndOffsetByPosition'](_0x52f072,_0x3babc1),'to':_0x24cb25[_0x24032f(0x1d7)](_0x52f072+_0x2f4668,_0x3babc1+_0x1dac5d)},_0x492306={'unitId':_0x5ef547,'subUnitId':_0x5b7e24,'drawingId':_0x2fa39e,'drawingType':_univerjs_core[_0x24032f(0x173)][_0x24032f(0x193)],'sheetTransform':_0x5a2f0b,'transform':{'left':_0x52f072,'top':_0x3babc1,'width':_0x2f4668,'height':_0x1dac5d},'data':{'shapeType':_0x1636dd,'shapeData':_0x131f96},'axisAlignSheetTransform':_0x5a2f0b,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x1636dd)&&(_0x492306[_0x24032f(0x212)][_0x24032f(0x229)]=![],_0x492306[_0x24032f(0x212)][_0x24032f(0x1f7)]=![],_0x492306['data']['resizeEnabled']=![],_0x492306[_0x24032f(0x212)]['borderEnabled']=![],_0x492306[_0x24032f(0x17e)][_0x24032f(0x1f7)]=![],_0x492306['transform'][_0x24032f(0x1dd)]=![],_0x492306[_0x24032f(0x17e)]['borderEnabled']=![]);const {undo:_0x25b483,redo:_0x347ec5,objects:_0x3d8b53}=_0x24b6ab['getBatchUpdateOp']([_0x492306]),_0x13366e=_0x4a6817['onCommandExecute']({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x5ef547,'drawings':[_0x492306]}}),_0x249f63=[...(_0xc68246=_0x13366e['preRedos'])!==null&&_0xc68246!==void 0x0?_0xc68246:[],{'id':_univerjs_sheets_drawing[_0x24032f(0x1f4)]['id'],'params':{'unitId':_0x5ef547,'subUnitId':_0x5b7e24,'op':_0x347ec5,'objects':_0x3d8b53,'type':_univerjs_sheets_drawing[_0x24032f(0x1ac)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x24032f(0x1ea)]['id'],'params':[_0x5ef547]},..._0x13366e[_0x24032f(0x171)],{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x248edb}],_0x361894=[...(_0x5c5f16=_0x13366e[_0x24032f(0x1b3)])!==null&&_0x5c5f16!==void 0x0?_0x5c5f16:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5ef547,'subUnitId':_0x5b7e24,'op':_0x25b483,'objects':_0x3d8b53,'type':_univerjs_sheets_drawing[_0x24032f(0x1ac)][_0x24032f(0x1b9)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5ef547]},..._0x13366e[_0x24032f(0x1c9)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x5ef547,'subUnitId':_0x5b7e24,'shapeType':_0x5947c2,'shapeId':_0x2fa39e,'shapeData':_0x4b114f}}];if((0x0,_univerjs_core[_0x24032f(0x20c)])(_0x249f63,_0x381288))return _0x366765['pushUndoRedo']({'unitID':_0x5ef547,'undoMutations':_0x361894,'redoMutations':_0x249f63}),!![];return![];}},ToggleSheetsShapeFlipCommand={'type':_univerjs_core['CommandType'][_0x1420e0(0x198)],'id':_0x1420e0(0x1a5),'handler':(_0x14019a,_0x26a869)=>{const _0x4b2205=_0x1420e0;var _0x54be8d,_0xa679b0;const _0x40a6da=(0x0,_univerjs_sheets[_0x4b2205(0x209)])(_0x14019a['get'](_univerjs_core['IUniverInstanceService']),_0x26a869);if(!_0x40a6da)return![];const _0xf8dc51=_0x14019a[_0x4b2205(0x213)](_univerjs_sheets[_0x4b2205(0x231)]),{unitId:_0x510d76,subUnitId:_0x3248dc}=_0x40a6da,_0x11a34f=_0xf8dc51['getSkeleton'](_0x510d76,_0x3248dc);if(!_0x11a34f)return![];const _0x33c2d2=_0x14019a['get'](_univerjs_sheets_drawing[_0x4b2205(0x188)]),{shapeId:_0x278acb,flipH:_0x13c202,flipV:_0x54e872}=_0x26a869,_0x84ba81=_0x33c2d2['getDrawingByParam']({'unitId':_0x510d76,'subUnitId':_0x3248dc,'drawingId':_0x278acb});if(!_0x84ba81)return![];const _0x33f705=_0x14019a[_0x4b2205(0x213)](SheetsShapeService)[_0x4b2205(0x1a4)](_0x510d76,_0x3248dc,_0x278acb);if(!_0x33f705)return![];const _0x3567cd=_0x14019a['get'](_univerjs_core[_0x4b2205(0x1f0)]),_0x6958d=_0x14019a[_0x4b2205(0x213)](_univerjs_core[_0x4b2205(0x1c0)]),_0xa938bc=_0x14019a[_0x4b2205(0x213)](_univerjs_sheets[_0x4b2205(0x1c5)]),_0x2e51ed={..._0x84ba81[_0x4b2205(0x17e)]};if(_0x13c202!==void 0x0)_0x2e51ed[_0x4b2205(0x216)]=!_0x2e51ed[_0x4b2205(0x216)];if(_0x54e872!==void 0x0)_0x2e51ed[_0x4b2205(0x195)]=!_0x2e51ed[_0x4b2205(0x195)];const _0x81acdb=(0x0,_univerjs_sheets_drawing[_0x4b2205(0x207)])(_0x2e51ed,_0x11a34f),_0x589a57=(0x0,_univerjs_sheets_drawing[_0x4b2205(0x21a)])(_0x2e51ed,_0x11a34f),_0x5887b2=_0x33f705['getShapeType'](),_0x48f5b9=_0x33f705[_0x4b2205(0x1dc)](),_0xcecbf7={'unitId':_0x510d76,'subUnitId':_0x3248dc,'drawingId':_0x278acb,'drawingType':_univerjs_core[_0x4b2205(0x173)][_0x4b2205(0x193)],'sheetTransform':_0x81acdb,'transform':_0x2e51ed,'data':{'shapeType':_0x5887b2,'shapeData':_0x48f5b9},'axisAlignSheetTransform':_0x589a57,'allowTransform':!![]},{undo:_0x480291,redo:_0x5ea5e2,objects:_0x489f57}=_0x33c2d2[_0x4b2205(0x169)]([_0xcecbf7]),_0x57ccf4=_0xa938bc['onCommandExecute']({'id':_univerjs_sheets_drawing[_0x4b2205(0x181)]['id'],'params':{'unitId':_0x510d76,'drawings':[_0xcecbf7]}}),_0x292df1=[...(_0x54be8d=_0x57ccf4['preRedos'])!==null&&_0x54be8d!==void 0x0?_0x54be8d:[],{'id':_univerjs_sheets_drawing[_0x4b2205(0x1f4)]['id'],'params':{'unitId':_0x510d76,'subUnitId':_0x3248dc,'op':_0x5ea5e2,'objects':_0x489f57,'type':_univerjs_sheets_drawing[_0x4b2205(0x1ac)][_0x4b2205(0x1b9)]}},{'id':_univerjs_sheets_drawing[_0x4b2205(0x1ea)]['id'],'params':[_0x510d76]},..._0x57ccf4['redos']],_0x27425c=[...(_0xa679b0=_0x57ccf4[_0x4b2205(0x1b3)])!==null&&_0xa679b0!==void 0x0?_0xa679b0:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x510d76,'subUnitId':_0x3248dc,'op':_0x480291,'objects':_0x489f57,'type':_univerjs_sheets_drawing[_0x4b2205(0x1ac)][_0x4b2205(0x1b9)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x510d76]},..._0x57ccf4[_0x4b2205(0x1c9)]];if((0x0,_univerjs_pro_engine_shape[_0x4b2205(0x1fd)])(_0x5887b2)){const _0x1a5eb1=_0x33f705[_0x4b2205(0x1c1)]();if(_0x1a5eb1){const _0x29b7a4={..._0x1a5eb1};_0x29b7a4[_0x4b2205(0x1cc)]=void 0x0,_0x29b7a4['to']=void 0x0,_0x292df1[_0x4b2205(0x20e)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x510d76,'subUnitId':_0x3248dc,'shapeId':_0x278acb,'shapeType':_0x5887b2,'shapeData':{'relation':_0x29b7a4}}}),_0x27425c[_0x4b2205(0x20e)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x510d76,'subUnitId':_0x3248dc,'shapeId':_0x278acb,'shapeType':_0x5887b2,'shapeData':{'relation':_0x1a5eb1}}});}}if((0x0,_univerjs_core[_0x4b2205(0x20c)])(_0x292df1,_0x3567cd))return _0x6958d[_0x4b2205(0x223)]({'unitID':_0x510d76,'undoMutations':_0x27425c,'redoMutations':_0x292df1}),!![];return![];}},SetSheetsShapeRotateCommand={'type':_univerjs_core[_0x1420e0(0x1f8)]['COMMAND'],'id':_0x1420e0(0x1e3),'handler':(_0x3ba85d,_0x3680d8)=>{const _0x2e9a38=_0x1420e0;var _0x58183c,_0x40f7ad;const _0x5342f5=(0x0,_univerjs_sheets[_0x2e9a38(0x209)])(_0x3ba85d[_0x2e9a38(0x213)](_univerjs_core[_0x2e9a38(0x185)]),_0x3680d8);if(!_0x5342f5)return![];const _0x335e76=_0x3ba85d['get'](_univerjs_sheets[_0x2e9a38(0x231)]),{unitId:_0x3b77cc,subUnitId:_0x254053}=_0x5342f5,_0xbf7160=_0x335e76[_0x2e9a38(0x16f)](_0x3b77cc,_0x254053);if(!_0xbf7160)return![];const _0x1fee37=_0x3ba85d['get'](_univerjs_sheets_drawing[_0x2e9a38(0x188)]),{shapeId:_0x1d5370,rotate:_0x289360}=_0x3680d8,_0xeb7497=_0x1fee37[_0x2e9a38(0x21d)]({'unitId':_0x3b77cc,'subUnitId':_0x254053,'drawingId':_0x1d5370});if(!_0xeb7497)return![];const _0x145fe5=_0x3ba85d[_0x2e9a38(0x213)](SheetsShapeService)[_0x2e9a38(0x1a4)](_0x3b77cc,_0x254053,_0x1d5370);if(!_0x145fe5)return![];const _0x3681a9=_0x3ba85d[_0x2e9a38(0x213)](_univerjs_core[_0x2e9a38(0x1f0)]),_0x22d91e=_0x3ba85d[_0x2e9a38(0x213)](_univerjs_core[_0x2e9a38(0x1c0)]),_0x152eb6=_0x3ba85d['get'](_univerjs_sheets[_0x2e9a38(0x1c5)]),_0x541e03={..._0xeb7497['transform']};if(_0x289360!==void 0x0)_0x541e03['angle']=(_0x541e03[_0x2e9a38(0x205)]||0x0)+_0x289360;const _0x2f500b=(0x0,_univerjs_sheets_drawing[_0x2e9a38(0x207)])(_0x541e03,_0xbf7160),_0x226bf0=(0x0,_univerjs_sheets_drawing[_0x2e9a38(0x21a)])(_0x541e03,_0xbf7160),_0xdc3e8d=_0x145fe5[_0x2e9a38(0x1db)](),_0x205522=_0x145fe5[_0x2e9a38(0x1dc)](),_0x5a52ba={'unitId':_0x3b77cc,'subUnitId':_0x254053,'drawingId':_0x1d5370,'drawingType':_univerjs_core['DrawingTypeEnum'][_0x2e9a38(0x193)],'sheetTransform':_0x2f500b,'transform':_0x541e03,'data':{'shapeType':_0xdc3e8d,'shapeData':_0x205522},'axisAlignSheetTransform':_0x226bf0,'allowTransform':!![]},{undo:_0x11ef47,redo:_0x3d2bc0,objects:_0x46a5c3}=_0x1fee37[_0x2e9a38(0x169)]([_0x5a52ba]),_0x1ed942=_0x152eb6['onCommandExecute']({'id':_univerjs_sheets_drawing[_0x2e9a38(0x181)]['id'],'params':{'unitId':_0x3b77cc,'drawings':[_0x5a52ba]}}),_0x15efe9=[...(_0x58183c=_0x1ed942[_0x2e9a38(0x18a)])!==null&&_0x58183c!==void 0x0?_0x58183c:[],{'id':_univerjs_sheets_drawing[_0x2e9a38(0x1f4)]['id'],'params':{'unitId':_0x3b77cc,'subUnitId':_0x254053,'op':_0x3d2bc0,'objects':_0x46a5c3,'type':_univerjs_sheets_drawing[_0x2e9a38(0x1ac)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x2e9a38(0x1ea)]['id'],'params':[_0x3b77cc]},..._0x1ed942[_0x2e9a38(0x171)]],_0xfbc159=[...(_0x40f7ad=_0x1ed942['preUndos'])!==null&&_0x40f7ad!==void 0x0?_0x40f7ad:[],{'id':_univerjs_sheets_drawing[_0x2e9a38(0x1f4)]['id'],'params':{'unitId':_0x3b77cc,'subUnitId':_0x254053,'op':_0x11ef47,'objects':_0x46a5c3,'type':_univerjs_sheets_drawing[_0x2e9a38(0x1ac)][_0x2e9a38(0x1b9)]}},{'id':_univerjs_sheets_drawing[_0x2e9a38(0x1ea)]['id'],'params':[_0x3b77cc]},..._0x1ed942[_0x2e9a38(0x1c9)]];if((0x0,_univerjs_core[_0x2e9a38(0x20c)])(_0x15efe9,_0x3681a9))return _0x22d91e[_0x2e9a38(0x223)]({'unitID':_0x3b77cc,'undoMutations':_0xfbc159,'redoMutations':_0x15efe9}),!![];return![];}},SetSheetsShapeTextVerticalToggleCommand={'type':_univerjs_core[_0x1420e0(0x1f8)][_0x1420e0(0x198)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x440e3e,_0x5be371)=>{const _0x224c10=_0x1420e0;var _0x43e645;const _0x2d74cc=(0x0,_univerjs_sheets[_0x224c10(0x209)])(_0x440e3e[_0x224c10(0x213)](_univerjs_core['IUniverInstanceService']),_0x5be371);if(!_0x2d74cc)return![];const {unitId:_0x260faa,subUnitId:_0x5f2bfe}=_0x2d74cc,{shapeId:_0x547441}=_0x5be371,_0xb4cca=_0x440e3e[_0x224c10(0x213)](SheetsShapeService)[_0x224c10(0x1a4)](_0x260faa,_0x5f2bfe,_0x547441);if(!_0xb4cca)return![];const _0x1de426=_0xb4cca[_0x224c10(0x192)](),_0x5a50fc=(_0x43e645=_0x1de426===null||_0x1de426===void 0x0?void 0x0:_0x1de426['isHorizontal'])!==null&&_0x43e645!==void 0x0?_0x43e645:!![],_0x32e0b6=!_0x5a50fc,_0x4637dc=_0x440e3e[_0x224c10(0x213)](_univerjs_core[_0x224c10(0x1f0)]),_0x36c598=_0x440e3e[_0x224c10(0x213)](_univerjs_core['IUndoRedoService']),_0xfc92af={'unitId':_0x260faa,'subUnitId':_0x5f2bfe,'shapeId':_0x547441,'shapeData':{'shapeText':{'isHorizontal':_0x32e0b6}}},_0x1ff2e0={'unitId':_0x260faa,'subUnitId':_0x5f2bfe,'shapeId':_0x547441,'shapeData':{'shapeText':{'isHorizontal':_0x5a50fc}}},_0x329f2f=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0xfc92af}],_0xaabd90=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x1ff2e0}];if((0x0,_univerjs_core[_0x224c10(0x20c)])(_0x329f2f,_0x4637dc))return _0x36c598[_0x224c10(0x223)]({'unitID':_0x260faa,'undoMutations':_0xaabd90,'redoMutations':_0x329f2f}),!![];return![];}},UpdateConnectorRelationCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x1420e0(0x200),'handler':(_0x4eb513,_0x362320)=>{const _0x15e06e=_0x1420e0;var _0x5640d4,_0x4ad50c,_0x1038f1,_0x192ba2;const _0x33be35=(0x0,_univerjs_sheets[_0x15e06e(0x209)])(_0x4eb513[_0x15e06e(0x213)](_univerjs_core['IUniverInstanceService']),_0x362320);if(!_0x33be35)return![];const _0x7a71ae=_0x4eb513[_0x15e06e(0x213)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x2dbe18,subUnitId:_0x52c4fa}=_0x33be35,_0x5d0cbf=_0x7a71ae[_0x15e06e(0x16f)](_0x2dbe18,_0x52c4fa);if(!_0x5d0cbf)return![];const _0x8b1d25=_0x4eb513['get'](_univerjs_sheets_drawing[_0x15e06e(0x188)]),{connectorShapeId:_0x38da2d,width:_0x2b6899,height:_0x4f788e,left:_0x5bc50a,top:_0x3c1209,flipX:_0x306f31,flipY:_0x334239,rotation:_0x168e6b,oldAdjustValues:_0x421338,newAdjustValues:_0x215d64,oldLineType:_0x34c8f5,newLineType:_0x1278e6,oldRelation:_0x3dd505,newRelation:_0x3edda8}=_0x362320,_0x34bee5=_0x8b1d25['getDrawingByParam']({'unitId':_0x2dbe18,'subUnitId':_0x52c4fa,'drawingId':_0x38da2d});if(!_0x34bee5)return![];const _0x380d24=_0x4eb513[_0x15e06e(0x213)](SheetsShapeService)[_0x15e06e(0x1a4)](_0x2dbe18,_0x52c4fa,_0x38da2d);if(!_0x380d24)return![];const _0x2e5336=_0x4eb513['get'](_univerjs_core[_0x15e06e(0x1f0)]),_0x4fead8=_0x4eb513[_0x15e06e(0x213)](_univerjs_core[_0x15e06e(0x1c0)]),_0x596cea=_0x4eb513['get'](_univerjs_sheets['SheetInterceptorService']),_0x1f5784={..._0x34bee5[_0x15e06e(0x17e)],'width':_0x2b6899,'height':_0x4f788e,'left':_0x5bc50a,'top':_0x3c1209,'flipX':_0x306f31,'flipY':_0x334239,'angle':(_0x5640d4=_0x168e6b!==null&&_0x168e6b!==void 0x0?_0x168e6b:(_0x4ad50c=_0x34bee5[_0x15e06e(0x17e)])===null||_0x4ad50c===void 0x0?void 0x0:_0x4ad50c['angle'])!==null&&_0x5640d4!==void 0x0?_0x5640d4:0x0},_0x297944=(0x0,_univerjs_sheets_drawing[_0x15e06e(0x207)])(_0x1f5784,_0x5d0cbf),_0x139106=(0x0,_univerjs_sheets_drawing['transformToAxisAlignPosition'])(_0x1f5784,_0x5d0cbf),_0x4a69bb=_0x380d24[_0x15e06e(0x1db)](),_0x5afa1d=_0x380d24[_0x15e06e(0x1dc)](),_0x2890ac={'unitId':_0x2dbe18,'subUnitId':_0x52c4fa,'drawingId':_0x38da2d,'drawingType':_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x297944,'transform':_0x1f5784,'data':{'shapeType':_0x1278e6||_0x34c8f5||_0x4a69bb,'shapeData':{..._0x5afa1d,'adjustValues':_0x215d64||_0x421338||(_0x5afa1d===null||_0x5afa1d===void 0x0?void 0x0:_0x5afa1d[_0x15e06e(0x17d)]),'relation':_0x3edda8||_0x3dd505||(_0x5afa1d===null||_0x5afa1d===void 0x0?void 0x0:_0x5afa1d['relation'])}},'axisAlignSheetTransform':_0x139106,'allowTransform':!![]},{undo:_0xd8b5e,redo:_0x17777d,objects:_0x2f2a06}=_0x8b1d25['getBatchUpdateOp']([_0x2890ac]),_0x5829b2=_0x596cea[_0x15e06e(0x187)]({'id':_univerjs_sheets_drawing[_0x15e06e(0x181)]['id'],'params':{'unitId':_0x2dbe18,'drawings':[_0x2890ac]}}),_0x492e70=[...(_0x1038f1=_0x5829b2[_0x15e06e(0x18a)])!==null&&_0x1038f1!==void 0x0?_0x1038f1:[],{'id':_univerjs_sheets_drawing[_0x15e06e(0x1f4)]['id'],'params':{'unitId':_0x2dbe18,'subUnitId':_0x52c4fa,'op':_0x17777d,'objects':_0x2f2a06,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x15e06e(0x1b9)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2dbe18]},..._0x5829b2[_0x15e06e(0x171)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2dbe18,'subUnitId':_0x52c4fa,'shapeId':_0x38da2d,'shapeType':_0x1278e6,'shapeData':{'adjustValues':_0x215d64,'relation':_0x3edda8}}}],_0x4e0305=[...(_0x192ba2=_0x5829b2['preUndos'])!==null&&_0x192ba2!==void 0x0?_0x192ba2:[],{'id':_univerjs_sheets_drawing[_0x15e06e(0x1f4)]['id'],'params':{'unitId':_0x2dbe18,'subUnitId':_0x52c4fa,'op':_0xd8b5e,'objects':_0x2f2a06,'type':_univerjs_sheets_drawing[_0x15e06e(0x1ac)][_0x15e06e(0x1b9)]}},{'id':_univerjs_sheets_drawing[_0x15e06e(0x1ea)]['id'],'params':[_0x2dbe18]},..._0x5829b2[_0x15e06e(0x1c9)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2dbe18,'subUnitId':_0x52c4fa,'shapeId':_0x38da2d,'shapeType':_0x4a69bb,'shapeData':{..._0x5afa1d,'adjustValues':_0x421338||(_0x5afa1d===null||_0x5afa1d===void 0x0?void 0x0:_0x5afa1d[_0x15e06e(0x17d)]),'relation':_0x3dd505||(_0x5afa1d===null||_0x5afa1d===void 0x0?void 0x0:_0x5afa1d[_0x15e06e(0x19c)])}}}];if((0x0,_univerjs_core['sequenceExecute'])(_0x492e70,_0x2e5336))return _0x4fead8[_0x15e06e(0x223)]({'unitID':_0x2dbe18,'undoMutations':_0x4e0305,'redoMutations':_0x492e70}),!![];return![];}},UpdateLineShapeResizeCommand={'type':_univerjs_core[_0x1420e0(0x1f8)][_0x1420e0(0x198)],'id':_0x1420e0(0x166),'handler':(_0x525feb,_0x27c507)=>{const _0x4684ee=_0x1420e0;var _0xa0adb0,_0x2631ae;const _0x3b782e=(0x0,_univerjs_sheets[_0x4684ee(0x209)])(_0x525feb[_0x4684ee(0x213)](_univerjs_core[_0x4684ee(0x185)]),_0x27c507);if(!_0x3b782e)return![];const _0xc1caf7=_0x525feb['get'](_univerjs_sheets[_0x4684ee(0x231)]),{unitId:_0x31eeca,subUnitId:_0x59cc16}=_0x3b782e,_0x49bae5=_0xc1caf7[_0x4684ee(0x16f)](_0x31eeca,_0x59cc16);if(!_0x49bae5)return![];const _0x549530=_0x525feb[_0x4684ee(0x213)](_univerjs_sheets_drawing[_0x4684ee(0x188)]),{shapeId:_0x18140a,width:_0x1aa7bd,height:_0x35e005,left:_0x461ecb,top:_0x42342d,flipX:_0xf38230,flipY:_0x3b86b8,angle:_0x4a260f,oldAdjustValues:_0x220c98,newAdjustValues:_0x84817a,oldLineType:_0x530996,newLineType:_0x434319}=_0x27c507,_0x518793=_0x549530[_0x4684ee(0x21d)]({'unitId':_0x31eeca,'subUnitId':_0x59cc16,'drawingId':_0x18140a});if(!_0x518793)return![];const _0x5b29a8=_0x525feb[_0x4684ee(0x213)](SheetsShapeService)[_0x4684ee(0x1a4)](_0x31eeca,_0x59cc16,_0x18140a);if(!_0x5b29a8)return![];const _0x225b22=_0x525feb[_0x4684ee(0x213)](_univerjs_core[_0x4684ee(0x1f0)]),_0x4299e8=_0x525feb['get'](_univerjs_core['IUndoRedoService']),_0x2b2e92=_0x525feb[_0x4684ee(0x213)](_univerjs_sheets[_0x4684ee(0x1c5)]),_0x1ee49d={..._0x518793['transform'],'width':_0x1aa7bd,'height':_0x35e005,'left':_0x461ecb,'top':_0x42342d,'flipX':_0xf38230,'flipY':_0x3b86b8,'angle':_0x4a260f},_0x296ffe=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x1ee49d,_0x49bae5),_0x1cd480=(0x0,_univerjs_sheets_drawing[_0x4684ee(0x21a)])(_0x1ee49d,_0x49bae5),_0x490b68=_0x5b29a8[_0x4684ee(0x1db)](),_0x2aaff1=_0x5b29a8['getShapeData'](),_0x25373d={'unitId':_0x31eeca,'subUnitId':_0x59cc16,'drawingId':_0x18140a,'drawingType':_univerjs_core['DrawingTypeEnum'][_0x4684ee(0x193)],'sheetTransform':_0x296ffe,'transform':_0x1ee49d,'data':{'shapeType':_0x434319||_0x530996||_0x490b68,'shapeData':{..._0x2aaff1,'adjustValues':_0x84817a||_0x220c98||(_0x2aaff1===null||_0x2aaff1===void 0x0?void 0x0:_0x2aaff1['adjustValues'])}},'axisAlignSheetTransform':_0x1cd480,'allowTransform':!![]},{undo:_0xf3631b,redo:_0x5ac03e,objects:_0x59c2f1}=_0x549530[_0x4684ee(0x169)]([_0x25373d]),_0x53bf91=_0x2b2e92[_0x4684ee(0x187)]({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x31eeca,'drawings':[_0x25373d]}}),_0xaff803=[...(_0xa0adb0=_0x53bf91[_0x4684ee(0x18a)])!==null&&_0xa0adb0!==void 0x0?_0xa0adb0:[],{'id':_univerjs_sheets_drawing[_0x4684ee(0x1f4)]['id'],'params':{'unitId':_0x31eeca,'subUnitId':_0x59cc16,'op':_0x5ac03e,'objects':_0x59c2f1,'type':_univerjs_sheets_drawing[_0x4684ee(0x1ac)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x4684ee(0x1ea)]['id'],'params':[_0x31eeca]},..._0x53bf91[_0x4684ee(0x171)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x31eeca,'subUnitId':_0x59cc16,'shapeId':_0x18140a,'shapeType':_0x434319,'shapeData':{'adjustValues':_0x84817a}}}],_0x20cf47=[...(_0x2631ae=_0x53bf91['preUndos'])!==null&&_0x2631ae!==void 0x0?_0x2631ae:[],{'id':_univerjs_sheets_drawing[_0x4684ee(0x1f4)]['id'],'params':{'unitId':_0x31eeca,'subUnitId':_0x59cc16,'op':_0xf3631b,'objects':_0x59c2f1,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4684ee(0x1b9)]}},{'id':_univerjs_sheets_drawing[_0x4684ee(0x1ea)]['id'],'params':[_0x31eeca]},..._0x53bf91['undos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x31eeca,'subUnitId':_0x59cc16,'shapeId':_0x18140a,'shapeType':_0x490b68,'shapeData':{..._0x2aaff1,'adjustValues':_0x220c98||(_0x2aaff1===null||_0x2aaff1===void 0x0?void 0x0:_0x2aaff1[_0x4684ee(0x17d)])}}}];if((0x0,_univerjs_core[_0x4684ee(0x20c)])(_0xaff803,_0x225b22))return _0x4299e8[_0x4684ee(0x223)]({'unitID':_0x31eeca,'undoMutations':_0x20cf47,'redoMutations':_0xaff803}),!![];return![];}},UpdateSheetsShapeTypeMutation={'id':_0x1420e0(0x1a1),'type':_univerjs_core[_0x1420e0(0x1f8)][_0x1420e0(0x22e)],'handler':(_0x5b685f,_0x15702b)=>{const _0x32eea6=_0x1420e0,{unitId:_0x5329f8,subUnitId:_0x1ab9e4,shapeType:_0xfa0262,shapeId:_0x3719d6,shapeData:_0x457848}=_0x15702b,_0x46187a=_0x5b685f[_0x32eea6(0x213)](SheetsShapeService)[_0x32eea6(0x1a4)](_0x5329f8,_0x1ab9e4,_0x3719d6);if(_0x46187a){_0x46187a[_0x32eea6(0x1e5)](_0xfa0262);if(_0x457848)_0x46187a===null||_0x46187a===void 0x0||_0x46187a[_0x32eea6(0x20a)](_0x457848);}return!![];}},UpdateSheetsShapeTypeCommand={'id':_0x1420e0(0x1ba),'type':_univerjs_core[_0x1420e0(0x1f8)]['COMMAND'],'handler':(_0x37769b,_0x7b7a8d)=>{const _0x37990c=_0x1420e0;if(!_0x7b7a8d)return![];const _0x20f6bf=_0x37769b[_0x37990c(0x213)](_univerjs_core[_0x37990c(0x1f0)]),_0xe91832=_0x37769b[_0x37990c(0x213)](SheetsShapeService),_0xb9379c=_0x37769b[_0x37990c(0x213)](_univerjs_core[_0x37990c(0x1c0)]),_0x22f571=[],_0xa6826e=[],{unitId:_0x1c353f,subUnitId:_0xd930,shapeId:_0x23a87c,shapeType:_0x170501,shapeData:_0x1d8c75}=_0x7b7a8d,_0x3639b2=_0xe91832[_0x37990c(0x1a4)](_0x1c353f,_0xd930,_0x23a87c);if(_0x3639b2){const _0x73f1b1=_0x3639b2[_0x37990c(0x1db)](),_0x101830=Object[_0x37990c(0x1e6)]({},_0x3639b2[_0x37990c(0x1dc)]()),_0x1ae753={'unitId':_0x1c353f,'subUnitId':_0xd930,'shapeId':_0x23a87c,'shapeType':_0x170501,'shapeData':_0x1d8c75},_0x306af3={'unitId':_0x1c353f,'subUnitId':_0xd930,'shapeId':_0x23a87c,'shapeType':_0x73f1b1,'shapeData':_0x101830};_0x22f571[_0x37990c(0x20e)]({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x1ae753}),_0xa6826e[_0x37990c(0x20e)]({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x306af3});if(_0x22f571[_0x37990c(0x228)](_0x45fc4a=>_0x20f6bf[_0x37990c(0x230)](_0x45fc4a['id'],_0x45fc4a[_0x37990c(0x204)])))_0xb9379c[_0x37990c(0x223)]({'unitID':_0x1c353f,'redoMutations':[..._0x22f571],'undoMutations':[..._0xa6826e]});return!![];}return![];}};var name=_0x1420e0(0x183),version=_0x1420e0(0x21c);const SHEETS_SHAPE_PLUGIN_CONFIG_KEY=_0x1420e0(0x1bb),configSymbol=Symbol(SHEETS_SHAPE_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let SheetsShapeController=class SheetsShapeController extends _univerjs_core['Disposable']{constructor(_0x56a11c,_0x2a209f,_0x3bb5e4,_0x126ee7,_0x1403fd){const _0x1595e6=_0x1420e0;super(),this[_0x1595e6(0x220)]=_0x56a11c,this[_0x1595e6(0x203)]=_0x2a209f,this[_0x1595e6(0x1cd)]=_0x3bb5e4,this[_0x1595e6(0x196)]=_0x126ee7,this[_0x1595e6(0x1e7)]=_0x1403fd,this[_0x1595e6(0x1d3)](),this[_0x1595e6(0x1e9)]();}[_0x1420e0(0x1d3)](){const _0x194010=_0x1420e0;[InsertShapeCommand,SetShapeDrawingDataCommand,ToggleSheetsShapeFlipCommand,SetSheetsShapeRotateCommand,SetSheetsShapeTextVerticalToggleCommand,UpdateConnectorRelationCommand,UpdateLineShapeResizeCommand,InsertSheetsShapeMutation,RemoveSheetsShapeMutation,UpdateSheetsShapeTypeMutation,UpdateSheetsShapeDataMutation][_0x194010(0x22a)](_0x44f473=>this[_0x194010(0x17f)](this[_0x194010(0x220)]['registerCommand'](_0x44f473)));}[_0x1420e0(0x1e9)](){const _0x30725f=_0x1420e0;this[_0x30725f(0x17f)](this[_0x30725f(0x203)][_0x30725f(0x1d0)]({'getMutations':_0xf74401=>{const _0x23c418=_0x30725f;if(_0xf74401['id']===_univerjs_sheets_drawing[_0x23c418(0x191)]['id']){const {drawings:_0x57b065}=_0xf74401[_0x23c418(0x204)],_0x37974c=_0x57b065[_0x23c418(0x178)](_0xda25a=>_0xda25a[_0x23c418(0x165)]===_univerjs_core[_0x23c418(0x173)][_0x23c418(0x193)]);if(_0x37974c[_0x23c418(0x206)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x11946e=[],_0x2a459c=[];return _0x37974c[_0x23c418(0x22a)](_0x1f2cd2=>{const _0x3eba57=_0x23c418,{unitId:_0x1ff829,subUnitId:_0x47d40b,drawingId:_0x12a753}=_0x1f2cd2,_0x1050ef=this[_0x3eba57(0x196)]['getShapeModel'](_0x1ff829,_0x47d40b,_0x12a753);if(!_0x1050ef)throw new TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x1050ef);_0x11946e[_0x3eba57(0x20e)]({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x1ff829,'subUnitId':_0x47d40b,'shapeId':_0x12a753}}),_0x2a459c[_0x3eba57(0x20e)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x1ff829,'subUnitId':_0x47d40b,'shapeId':_0x12a753,'shapeType':_0x1050ef[_0x3eba57(0x1db)](),'shapeData':_0x1050ef['getShapeData']()}});const _0x558fa5=this[_0x3eba57(0x196)][_0x3eba57(0x1d1)](_0x1ff829,_0x47d40b,_0x12a753);if(_0x558fa5)for(const _0x37f22a of _0x558fa5){const _0x275ecd=_0x37f22a[_0x3eba57(0x199)],_0x2d03ba=_0x37f22a[_0x3eba57(0x16c)],_0x475c2a=_0x2d03ba?{'from':void 0x0}:{'to':void 0x0},_0xdac302=_0x2d03ba?{'from':{'shapeId':_0x37f22a[_0x3eba57(0x22d)],'cxnIndex':_0x37f22a['cxnIndex']}}:{'to':{'shapeId':_0x37f22a[_0x3eba57(0x22d)],'cxnIndex':_0x37f22a[_0x3eba57(0x1b2)]}};_0x11946e[_0x3eba57(0x20e)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x1ff829,'subUnitId':_0x47d40b,'shapeId':_0x275ecd,'shapeData':{'relation':_0x475c2a}}}),_0x2a459c[_0x3eba57(0x20e)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x1ff829,'subUnitId':_0x47d40b,'shapeId':_0x275ecd,'shapeData':{'relation':_0xdac302}}});}}),{'preRedos':_0x11946e,'redos':[],'preUndos':[],'undos':_0x2a459c};}if(_0xf74401['id']===_univerjs_sheets_drawing[_0x23c418(0x181)]['id']){const {drawings:_0x107b15}=_0xf74401[_0x23c418(0x204)],_0x2ee127=_0x107b15['filter'](_0x1bbdb2=>_0x1bbdb2['drawingType']===_univerjs_core[_0x23c418(0x173)][_0x23c418(0x193)]);if(_0x2ee127['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x324608=[],_0x55e846=[];for(const _0x3af4ca of _0x2ee127){const {unitId:_0x2187f8,subUnitId:_0x438c40,drawingId:_0x34ffab,transform:_0x287769}=_0x3af4ca;if(!_0x2187f8||!_0x438c40||!_0x34ffab||!_0x287769)continue;const _0xe2a395=this[_0x23c418(0x196)][_0x23c418(0x1a4)](_0x2187f8,_0x438c40,_0x34ffab);if(!_0xe2a395)throw new TypeError(_0x23c418(0x18c)+_0xe2a395);if((0x0,_univerjs_pro_engine_shape[_0x23c418(0x1fd)])(_0xe2a395['getShapeType']())){const _0x4b430f=this[_0x23c418(0x196)][_0x23c418(0x179)](_0x2187f8,_0x438c40,_0x34ffab),_0x991449={'from':void 0x0,'to':void 0x0};_0x4b430f&&(_0x324608['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2187f8,'subUnitId':_0x438c40,'shapeId':_0x34ffab,'shapeData':{'relation':_0x991449}}}),_0x55e846['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2187f8,'subUnitId':_0x438c40,'shapeId':_0x34ffab,'shapeData':{'relation':_0x4b430f}}}));}else{const _0x3b3971=this['_sheetsShapeService'][_0x23c418(0x1d1)](_0x2187f8,_0x438c40,_0x34ffab);if(_0x3b3971&&_0x3b3971['length']>0x0)for(const _0x57634f of _0x3b3971){const _0x35b1f7=_0x57634f[_0x23c418(0x199)],_0x43ae34=_0x57634f[_0x23c418(0x16c)],_0x445751=this[_0x23c418(0x196)][_0x23c418(0x1a4)](_0x2187f8,_0x438c40,_0x35b1f7);if(!_0x445751)continue;const _0xc66c81=_0x445751['getStartConnectInfo'](),_0x5ee475=_0x445751[_0x23c418(0x16d)]();if(_0xc66c81&&_0x5ee475)this[_0x23c418(0x214)](_0x2187f8,_0x438c40,_0x35b1f7,_0x445751,_0xc66c81,_0x5ee475,_0x324608,_0x55e846,_0x34ffab,_0x287769);else this['_addLineFollowShapeUpdates'](_0x2187f8,_0x438c40,_0x35b1f7,_0x445751,_0x43ae34?_0xc66c81:_0x5ee475,_0x43ae34,_0x324608,_0x55e846,_0x34ffab,_0x287769);}}}return{'preRedos':[],'redos':_0x324608,'preUndos':_0x55e846,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x23e598,_0x112464,_0x49d323,_0xe0daf1,_0x2129af){const _0x58f200=_0x1420e0;if(!_0x112464||!_0x49d323)return null;const {shapeId:_0x1b3159,cxnIndex:_0x1ac1b7}=_0x23e598,_0x4b6402=this[_0x58f200(0x196)][_0x58f200(0x1a4)](_0x112464,_0x49d323,_0x1b3159);if(!_0x4b6402)return null;const _0x48332d=this[_0x58f200(0x1e7)]['getDrawingByParam']({'unitId':_0x112464,'subUnitId':_0x49d323,'drawingId':_0x1b3159});if(!(_0x48332d===null||_0x48332d===void 0x0?void 0x0:_0x48332d[_0x58f200(0x17e)]))return null;let {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x44c441}=_0x48332d[_0x58f200(0x17e)];if(_0x2129af&&_0xe0daf1===_0x1b3159){var _0x319c3c,_0x28d7bf,_0x33c618,_0x29f397,_0x5054b3,_0x442c4d,_0x448fc6;left=(_0x319c3c=_0x2129af['left'])!==null&&_0x319c3c!==void 0x0?_0x319c3c:left,top=(_0x28d7bf=_0x2129af[_0x58f200(0x1e4)])!==null&&_0x28d7bf!==void 0x0?_0x28d7bf:top,width=(_0x33c618=_0x2129af['width'])!==null&&_0x33c618!==void 0x0?_0x33c618:width,height=(_0x29f397=_0x2129af[_0x58f200(0x1da)])!==null&&_0x29f397!==void 0x0?_0x29f397:height,flipX=(_0x5054b3=_0x2129af[_0x58f200(0x216)])!==null&&_0x5054b3!==void 0x0?_0x5054b3:flipX,flipY=(_0x442c4d=_0x2129af[_0x58f200(0x195)])!==null&&_0x442c4d!==void 0x0?_0x442c4d:flipY,_0x44c441=(_0x448fc6=_0x2129af['angle'])!==null&&_0x448fc6!==void 0x0?_0x448fc6:_0x44c441;}_0x4b6402[_0x58f200(0x1fe)]({'width':width,'height':height});const _0x2e392a=_0x4b6402['getConnectionSiteList']()[_0x58f200(0x222)](_0x19849f=>_0x19849f[_0x58f200(0x175)]===_0x1ac1b7);if(!_0x2e392a)return null;let _0x2783d9=flipX?width-_0x2e392a['x']:_0x2e392a['x'],_0x593c29=flipY?height-_0x2e392a['y']:_0x2e392a['y'];if(_0x44c441!==0x0&&_0x44c441!==void 0x0&&_0x44c441!==null){const _0x42917e=_0x44c441*Math['PI']/0xb4,_0x381b99=Math[_0x58f200(0x18f)](_0x42917e),_0x1bd614=Math[_0x58f200(0x1b4)](_0x42917e),_0x2d6e60=width/0x2,_0x40ad50=height/0x2,_0x26a94=_0x2783d9-_0x2d6e60,_0x2fb494=_0x593c29-_0x40ad50;_0x2783d9=_0x2d6e60+_0x26a94*_0x381b99-_0x2fb494*_0x1bd614,_0x593c29=_0x40ad50+_0x26a94*_0x1bd614+_0x2fb494*_0x381b99;}_0x2783d9+=left,_0x593c29+=top;let _0x1c629f=_0x2e392a['ang']/0xea60;if(flipX)_0x1c629f=0xb4-_0x1c629f;if(flipY)_0x1c629f=-_0x1c629f;_0x1c629f+=_0x44c441||0x0,_0x1c629f=(_0x1c629f%0x168+0x168)%0x168;const _0x563d15=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x44c441||0x0);return{'point':{'x':_0x2783d9,'y':_0x593c29},'angle':_0x1c629f,'bounds':_0x563d15};}['_addLineRerouteUpdates'](_0x284d02,_0x1b409a,_0x262172,_0x4389e6,_0x170e6f,_0x344fec,_0x94b8e6,_0x257874,_0x3a8b6c,_0x528ad9){const _0x4a2e3a=_0x1420e0,_0x1a3968=this[_0x4a2e3a(0x1cd)][_0x4a2e3a(0x16f)](_0x284d02,_0x1b409a);if(!_0x1a3968)return;const _0x4f8077=_0x4389e6[_0x4a2e3a(0x1c1)](),_0x366386=_0x4389e6[_0x4a2e3a(0x208)](),_0x267bbd={},_0x193d1b={};_0x366386[_0x4a2e3a(0x22a)](_0x281126=>{const _0x3c14d1=_0x4389e6['getAdjustValueByName'](_0x281126);_0x193d1b[_0x281126]=_0x3c14d1!==null&&_0x3c14d1!==void 0x0?_0x3c14d1:0x0;});const _0x487775=this['_getConnectPointInfo'](_0x170e6f,_0x284d02,_0x1b409a,_0x3a8b6c,_0x528ad9),_0x198691=this[_0x4a2e3a(0x1ee)](_0x344fec,_0x284d02,_0x1b409a,_0x3a8b6c,_0x528ad9);if(_0x487775&&_0x198691){const _0x15e11b=_0x4389e6['getShapeType'](),_0x47f842=(0x0,_univerjs_pro_engine_shape[_0x4a2e3a(0x1fc)])(_0x487775,_0x198691,_0x15e11b);let _0x4bef90=_0x15e11b;if(_0x47f842){const _0x416cb5=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x47f842,_0x4389e6[_0x4a2e3a(0x1db)]()),_0x30cb59=this[_0x4a2e3a(0x1e7)][_0x4a2e3a(0x170)](_0x284d02,_0x1b409a);if(_0x30cb59&&_0x30cb59[_0x262172]){const _0x140854=_0x30cb59[_0x262172];_0x4bef90=_0x416cb5['lineType'];for(const [_0x352507,_0x3492ad]of Object[_0x4a2e3a(0x1fa)](_0x416cb5['adjustValues']))_0x267bbd[_0x352507]=_0x3492ad;const _0x3ebd2f={..._0x140854[_0x4a2e3a(0x17e)],'width':_0x416cb5[_0x4a2e3a(0x210)][_0x4a2e3a(0x225)],'height':_0x416cb5[_0x4a2e3a(0x210)][_0x4a2e3a(0x1da)],'left':_0x416cb5[_0x4a2e3a(0x210)][_0x4a2e3a(0x21f)],'top':_0x416cb5[_0x4a2e3a(0x210)][_0x4a2e3a(0x1e4)],'flipX':_0x416cb5['worldRect'][_0x4a2e3a(0x216)],'flipY':_0x416cb5[_0x4a2e3a(0x210)][_0x4a2e3a(0x195)],'angle':_0x416cb5[_0x4a2e3a(0x21b)]},_0x13af0b=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x3ebd2f,_0x1a3968),_0x3ce060=(0x0,_univerjs_sheets_drawing[_0x4a2e3a(0x21a)])(_0x3ebd2f,_0x1a3968),_0xe41bf8={'unitId':_0x284d02,'subUnitId':_0x1b409a,'drawingType':_univerjs_core[_0x4a2e3a(0x173)][_0x4a2e3a(0x193)],'drawingId':_0x262172,'transform':_0x3ebd2f,'sheetTransform':_0x13af0b,'axisAlignSheetTransform':_0x3ce060},{unitId:_0x35505b,subUnitId:_0x42b7e0,undo:_0x880f00,redo:_0xa7273f,objects:_0x39f1b3}=this[_0x4a2e3a(0x1e7)][_0x4a2e3a(0x169)]([_0xe41bf8]);_0x94b8e6[_0x4a2e3a(0x20e)]({'id':_univerjs_sheets_drawing[_0x4a2e3a(0x1f4)]['id'],'params':{'unitId':_0x35505b,'subUnitId':_0x42b7e0,'op':_0xa7273f,'objects':_0x39f1b3,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4a2e3a(0x1b9)]}}),_0x257874[_0x4a2e3a(0x20e)]({'id':_univerjs_sheets_drawing[_0x4a2e3a(0x1f4)]['id'],'params':{'unitId':_0x35505b,'subUnitId':_0x42b7e0,'op':_0x880f00,'objects':_0x39f1b3,'type':_univerjs_sheets_drawing[_0x4a2e3a(0x1ac)]['UPDATE']}});}_0x4389e6[_0x4a2e3a(0x22b)]();}_0x94b8e6[_0x4a2e3a(0x20e)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x284d02,'subUnitId':_0x1b409a,'shapeId':_0x262172,'shapeType':_0x4bef90,'shapeData':{'adjustValues':_0x267bbd,'relation':_0x4f8077}}}),_0x257874['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x284d02,'subUnitId':_0x1b409a,'shapeId':_0x262172,'shapeType':_0x15e11b,'shapeData':{'adjustValues':_0x193d1b,'relation':_0x4f8077}}});}}[_0x1420e0(0x1bf)](_0xf9d972,_0x10fb4c,_0x597c3b,_0x3fcac3,_0x47b474,_0x39f437,_0x494f6c,_0x2fee9b,_0xcdd3fb,_0x37ed32){const _0x276d0a=_0x1420e0;var _0x1b7661;if(!_0x47b474)return;const _0x4f54af=this[_0x276d0a(0x1cd)][_0x276d0a(0x16f)](_0xf9d972,_0x10fb4c);if(!_0x4f54af)return;const _0x1a971f=(_0x1b7661=this[_0x276d0a(0x1e7)]['getDrawingByParam']({'unitId':_0xf9d972,'subUnitId':_0x10fb4c,'drawingId':_0xcdd3fb}))===null||_0x1b7661===void 0x0?void 0x0:_0x1b7661['transform'];if(!_0x1a971f)return;const _0x48c759=_0x1a971f[_0x276d0a(0x21f)]!==_0x37ed32['left']||_0x1a971f['top']!==_0x37ed32[_0x276d0a(0x1e4)],_0x401e8e=_0x1a971f[_0x276d0a(0x225)]!==_0x37ed32[_0x276d0a(0x225)]||_0x1a971f['height']!==_0x37ed32['height'],_0x2a308f=_0x1a971f[_0x276d0a(0x216)]!==_0x37ed32[_0x276d0a(0x216)]||_0x1a971f[_0x276d0a(0x195)]!==_0x37ed32[_0x276d0a(0x195)],_0x1d2c1f=_0x1a971f['angle']!==_0x37ed32[_0x276d0a(0x205)];if(_0x48c759&&!_0x401e8e&&!_0x2a308f&&!_0x1d2c1f){var _0x6b548e,_0x11ed4c,_0x5e1a37,_0x299761;const _0x661232=((_0x6b548e=_0x37ed32[_0x276d0a(0x21f)])!==null&&_0x6b548e!==void 0x0?_0x6b548e:0x0)-((_0x11ed4c=_0x1a971f['left'])!==null&&_0x11ed4c!==void 0x0?_0x11ed4c:0x0),_0x240349=((_0x5e1a37=_0x37ed32[_0x276d0a(0x1e4)])!==null&&_0x5e1a37!==void 0x0?_0x5e1a37:0x0)-((_0x299761=_0x1a971f['top'])!==null&&_0x299761!==void 0x0?_0x299761:0x0),_0x448d72=this['_drawingManagerService'][_0x276d0a(0x170)](_0xf9d972,_0x10fb4c);if(_0x448d72&&_0x448d72[_0x597c3b]){var _0x1ec79b,_0x122468,_0x424294,_0x158a17;const _0x2c8b78=_0x448d72[_0x597c3b],_0xe0f0b4={..._0x2c8b78[_0x276d0a(0x17e)],'left':((_0x1ec79b=(_0x122468=_0x2c8b78['transform'])===null||_0x122468===void 0x0?void 0x0:_0x122468[_0x276d0a(0x21f)])!==null&&_0x1ec79b!==void 0x0?_0x1ec79b:0x0)+_0x661232,'top':((_0x424294=(_0x158a17=_0x2c8b78[_0x276d0a(0x17e)])===null||_0x158a17===void 0x0?void 0x0:_0x158a17[_0x276d0a(0x1e4)])!==null&&_0x424294!==void 0x0?_0x424294:0x0)+_0x240349},_0x4c5c0b=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0xe0f0b4,_0x4f54af),_0x3689cf=(0x0,_univerjs_sheets_drawing[_0x276d0a(0x21a)])(_0xe0f0b4,_0x4f54af),_0x4d4d01={'unitId':_0xf9d972,'subUnitId':_0x10fb4c,'drawingType':_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE'],'drawingId':_0x597c3b,'transform':_0xe0f0b4,'sheetTransform':_0x4c5c0b,'axisAlignSheetTransform':_0x3689cf},{unitId:_0x46cda8,subUnitId:_0x25493b,undo:_0x309932,redo:_0x23b41e,objects:_0x25bdac}=this[_0x276d0a(0x1e7)][_0x276d0a(0x169)]([_0x4d4d01]);_0x494f6c[_0x276d0a(0x20e)]({'id':_univerjs_sheets_drawing[_0x276d0a(0x1f4)]['id'],'params':{'unitId':_0x46cda8,'subUnitId':_0x25493b,'op':_0x23b41e,'objects':_0x25bdac,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x276d0a(0x1b9)]}}),_0x2fee9b[_0x276d0a(0x20e)]({'id':_univerjs_sheets_drawing[_0x276d0a(0x1f4)]['id'],'params':{'unitId':_0x46cda8,'subUnitId':_0x25493b,'op':_0x309932,'objects':_0x25bdac,'type':_univerjs_sheets_drawing[_0x276d0a(0x1ac)]['UPDATE']}});}}else{const _0x4b6bea=_0x3fcac3[_0x276d0a(0x1be)](),_0x2e86b4=_0x3fcac3['getEndConnectInfo']();this[_0x276d0a(0x214)](_0xf9d972,_0x10fb4c,_0x597c3b,_0x3fcac3,_0x4b6bea,_0x2e86b4,_0x494f6c,_0x2fee9b,_0xcdd3fb,_0x37ed32);}}};function _0x1b33(_0x435406,_0xcccff1){_0x435406=_0x435406-0x165;const _0x5df675=_0x5df6();let _0x1b3367=_0x5df675[_0x435406];return _0x1b3367;}SheetsShapeController=__decorate([__decorateParam(0x0,_univerjs_core[_0x1420e0(0x1f0)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x1420e0(0x19b)])(_univerjs_sheets['SheetInterceptorService'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets['SheetSkeletonService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x1420e0(0x19b)])(SheetsShapeService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x1420e0(0x19b)])(_univerjs_drawing['IDrawingManagerService']))],SheetsShapeController);let UniverSheetsShapePlugin=class UniverSheetsShapePlugin extends _univerjs_core[_0x1420e0(0x1d4)]{constructor(_0x59ac3b=defaultPluginConfig,_0x3e3722,_0x3d01c0,_0x9b7bdf){const _0x26f04d=_0x1420e0;super(),this[_0x26f04d(0x1c7)]=_0x59ac3b,this[_0x26f04d(0x1cf)]=_0x3e3722,this['_commandService']=_0x3d01c0,this['_configService']=_0x9b7bdf;const {..._0x5c4f33}=(0x0,_univerjs_core[_0x26f04d(0x219)])({},defaultPluginConfig,this[_0x26f04d(0x1c7)]);this[_0x26f04d(0x1df)]['setConfig'](SHEETS_SHAPE_PLUGIN_CONFIG_KEY,_0x5c4f33);}[_0x1420e0(0x1cb)](){const _0x2b30aa=_0x1420e0,_0x515c2a=this[_0x2b30aa(0x1cf)];[[SheetShapeModelManager],[SheetsShapeService],[SheetsShapeController]][_0x2b30aa(0x22a)](_0x405fb0=>_0x515c2a[_0x2b30aa(0x1f6)](_0x405fb0)),(0x0,_univerjs_core[_0x2b30aa(0x194)])(_0x515c2a,[[SheetsShapeService],[SheetsShapeController]]);}};_defineProperty(UniverSheetsShapePlugin,_0x1420e0(0x1e0),_univerjs_core[_0x1420e0(0x20d)][_0x1420e0(0x20f)]),_defineProperty(UniverSheetsShapePlugin,_0x1420e0(0x1d6),'SHEET_SHAPE_PLUGIN'),_defineProperty(UniverSheetsShapePlugin,_0x1420e0(0x1fb),name),_defineProperty(UniverSheetsShapePlugin,_0x1420e0(0x19f),version),UniverSheetsShapePlugin=__decorate([(0x0,_univerjs_core[_0x1420e0(0x1a2)])(_univerjs_pro_license[_0x1420e0(0x1f3)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x1420e0(0x19b)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core['ICommandService']),__decorateParam(0x3,_univerjs_core[_0x1420e0(0x232)])],UniverSheetsShapePlugin),exports[_0x1420e0(0x1eb)]=DEFAULT_SHAPE_HEIGHT,exports['DEFAULT_SHAPE_WIDTH']=DEFAULT_SHAPE_WIDTH,exports[_0x1420e0(0x221)]=InsertShapeCommand,exports[_0x1420e0(0x1c3)]=InsertSheetsShapeMutation,exports['RemoveSheetsShapeMutation']=RemoveSheetsShapeMutation,exports[_0x1420e0(0x1d9)]=SetShapeDrawingDataCommand,exports['SetSheetsShapeRotateCommand']=SetSheetsShapeRotateCommand,exports[_0x1420e0(0x18d)]=SetSheetsShapeTextVerticalToggleCommand,Object[_0x1420e0(0x1c8)](exports,_0x1420e0(0x201),{'enumerable':!![],'get':function(){return SheetsShapeService;}}),exports[_0x1420e0(0x1bd)]=ToggleSheetsShapeFlipCommand,Object[_0x1420e0(0x1c8)](exports,_0x1420e0(0x182),{'enumerable':!![],'get':function(){return UniverSheetsShapePlugin;}}),exports['UpdateConnectorRelationCommand']=UpdateConnectorRelationCommand,exports[_0x1420e0(0x1f5)]=UpdateLineShapeResizeCommand,exports['UpdateSheetsShapeDataMutation']=UpdateSheetsShapeDataMutation,exports[_0x1420e0(0x1e2)]=UpdateSheetsShapeTypeCommand,exports[_0x1420e0(0x184)]=UpdateSheetsShapeTypeMutation;
|
|
1
|
+
const _0x2a18d5=_0x1514;(function(_0x54a8fb,_0x15715d){const _0x47a26f=_0x1514,_0x55a548=_0x54a8fb();while(!![]){try{const _0x149a63=parseInt(_0x47a26f(0x169))/0x1+parseInt(_0x47a26f(0x176))/0x2*(-parseInt(_0x47a26f(0xdc))/0x3)+-parseInt(_0x47a26f(0x15e))/0x4+-parseInt(_0x47a26f(0x17a))/0x5*(-parseInt(_0x47a26f(0x10b))/0x6)+parseInt(_0x47a26f(0x11b))/0x7+parseInt(_0x47a26f(0x158))/0x8+parseInt(_0x47a26f(0xf8))/0x9*(-parseInt(_0x47a26f(0xc8))/0xa);if(_0x149a63===_0x15715d)break;else _0x55a548['push'](_0x55a548['shift']());}catch(_0x154d01){_0x55a548['push'](_0x55a548['shift']());}}}(_0x50b6,0x61be1),Object[_0x2a18d5(0x14c)](exports,Symbol[_0x2a18d5(0x152)],{'value':_0x2a18d5(0xe6)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_drawing=require('@univerjs/drawing');const DEFAULT_SHAPE_WIDTH=0xc8,DEFAULT_SHAPE_HEIGHT=0xc8;function _typeof(_0xa469a8){'@babel/helpers - typeof';const _0xdfe174=_0x2a18d5;return _typeof=_0xdfe174(0x189)==typeof Symbol&&_0xdfe174(0x157)==typeof Symbol[_0xdfe174(0x16a)]?function(_0x5e61e4){return typeof _0x5e61e4;}:function(_0xa9853a){const _0x4e8f4e=_0xdfe174;return _0xa9853a&&_0x4e8f4e(0x189)==typeof Symbol&&_0xa9853a[_0x4e8f4e(0x151)]===Symbol&&_0xa9853a!==Symbol[_0x4e8f4e(0x121)]?_0x4e8f4e(0x157):typeof _0xa9853a;},_typeof(_0xa469a8);}function _0x50b6(){const _0x3b1473=['getBasicShapeRotateBound','getShapeType','flipY','rotation','7382990vxuwlB','rotateEnabled','width','UniverInstanceType','entries','height','getConnectionSiteList','sheet.command.update-shape-type','UpdateConnectorRelationCommand','transform','stringify','IUniverInstanceService','_linesIds','top','IDrawingManagerService','getShapeTypeById','every','version','getShapeDataById','_serializeShapeForUnit','1633602oTGcdI','keys','adjustValues','startY','DRAWING_SHAPE','sheet.mutation.update-shape-type','getBatchUpdateOp','IResourceManagerService','MUTATION','_sheetSkeletonService','Module','SheetSkeletonService','0.21.1','getBasicShapeRelation','isLineShape','SetSheetDrawingCommand','UpdateSheetsShapeDataMutation','worldRect','range','getAdjustNames','pluginName','startX','sequenceExecute','InsertSheetsShapeMutation','shapeData','_groupIds','InsertShapeCommand','clear','9RzvtyA','Injector','ICommandService','isConnectorShape','sheets-shape.config','ToggleSheetsShapeFlipCommand','_deserializeShapeForUnit','length','getShapeData','position','Disposable','DependentOn','syncExecuteCommand','relation','SetShapeDrawingDataCommand','_config','getShapeRelation','preRedos','getShapeModel','293154nHaKrA','getCellWithCoordByIndex','ShapeModel','onCommandExecute','computeConnectorRouteLayout','sheet.command.set-shape-text-vertical-toggle','touchDependencies','fromJSON','_sheetsShapeService','insertShape','assign','sheet.command.toggle-shape-flip','decorate','SetDrawingApplyMutation','SheetInterceptorService','transformToAxisAlignPosition','3499083UuqUgF','SetSheetsShapeRotateCommand','ClearSheetDrawingTransformerOperation','SHEET_SHAPE_PLUGIN','SheetsShapeService','delete','prototype','_initCommands','pushUndoRedo','getEndConnectInfo','sheet.command.update-line-shape-resize','disposeWithMe','getSheetCommandTarget','UPDATE','removeLinePoints','left','ensureSkeleton','sheet.command.insert-shape','hasShape','forEach','redos','getBatchAddOp','removeShape','_resourcesManagerService','merge','COMMAND','_initSnapshot','undos','parse','interceptCommand','call','registerPluginResource','getSkeleton','params','_initCommandInterceptor','isFrom','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getDrawingData','setShapeData','getAdjustValueByName','generateRandomId','fill','_shapeModelManagerMap','_injector','cxnIndex','object','UNIVER_SHEET','has','routeConnectorLineShape','defineProperty','shapeId','sheet.command.set-shape-rotate','DEFAULT_SHAPE_HEIGHT','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','constructor','toStringTag','addShape','Inject','UpdateLineShapeResizeCommand','set','symbol','5171248VMPNba','toJSON','angle','InsertSheetDrawingCommand','borderEnabled','sheet.mutation.update-shape-data','1616032wPUyAg','CommandType','_addLineRerouteUpdates','add','resizeEnabled','@univerjs-pro/sheets-shape','get','registerCommand','_commandService','_getConnectPointInfo','lineShapeId','745483jPRmuL','iterator','DrawingTypeEnum','push','getDrawingByParam','_drawingManagerService','_shapes','data','setConfig','_configService','getStartConnectInfo','UpdateSheetsShapeTypeCommand','type','2IskYSL','sheet.mutation.insert-shape','IUndoRedoService','preUndos','20YqOhpM','IConfigService','sheet.command.set-shape-drawing-data','INSERT','lineType','SetSheetsShapeTextVerticalToggleCommand','dispose','setShapeType','ISheetDrawingService','cos','getCellIndexAndOffsetByPosition','from','DrawingApplyType','UpdateSheetsShapeTypeMutation','_sheetInterceptorService','function','sheet.command.update-connector-relation','getShapeTextData','flipX','UniverSheetsShapePlugin','getLineShapeRelation','string','_ensureShapeModelManager','transformToDrawingPosition'];_0x50b6=function(){return _0x3b1473;};return _0x50b6();}function toPrimitive(_0x21b1b9,_0x16ae31){const _0xc39c3f=_0x2a18d5;if('object'!=_typeof(_0x21b1b9)||!_0x21b1b9)return _0x21b1b9;var _0x48f551=_0x21b1b9[Symbol['toPrimitive']];if(void 0x0!==_0x48f551){var _0x25ad2f=_0x48f551[_0xc39c3f(0x139)](_0x21b1b9,_0x16ae31||'default');if(_0xc39c3f(0x148)!=_typeof(_0x25ad2f))return _0x25ad2f;throw new TypeError(_0xc39c3f(0x150));}return(_0xc39c3f(0xc1)===_0x16ae31?String:Number)(_0x21b1b9);}function toPropertyKey(_0x429363){const _0x234846=_0x2a18d5;var _0x46db3d=toPrimitive(_0x429363,_0x234846(0xc1));return _0x234846(0x157)==_typeof(_0x46db3d)?_0x46db3d:_0x46db3d+'';}function _defineProperty(_0x285e69,_0x4f47a1,_0x3fb90c){return(_0x4f47a1=toPropertyKey(_0x4f47a1))in _0x285e69?Object['defineProperty'](_0x285e69,_0x4f47a1,{'value':_0x3fb90c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x285e69[_0x4f47a1]=_0x3fb90c,_0x285e69;}var SheetShapeModelManager=class extends _univerjs_core[_0x2a18d5(0x102)]{constructor(){const _0x1e953b=_0x2a18d5;super(),_defineProperty(this,'_shapes',new Map()),_defineProperty(this,_0x1e953b(0xd4),new Set()),_defineProperty(this,'_groupIds',new Set());}[_0x2a18d5(0x153)](_0x2e8c41,_0x1df41e,_0x4819d1){const _0x42d2d7=_0x2a18d5,_0x5b4449=new _univerjs_pro_engine_shape[(_0x42d2d7(0x10d))](_0x2e8c41,_0x1df41e,_0x4819d1);this['_shapes'][_0x42d2d7(0x156)](_0x1df41e,_0x5b4449);if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x2e8c41))this[_0x42d2d7(0xd4)][_0x42d2d7(0x161)](_0x1df41e);return _0x5b4449;}['getBasicShapeRelation'](_0x723b0d){const _0x15ec9f=_0x2a18d5,_0x24f2ad=[];for(const _0x5c78df of this[_0x15ec9f(0xd4)]){const _0x2e827e=this[_0x15ec9f(0x16f)][_0x15ec9f(0x164)](_0x5c78df);if(_0x2e827e){const _0x184ea0=_0x2e827e['getShapeRelation']();if(_0x184ea0){var _0x58970a,_0x4cae20;if(((_0x58970a=_0x184ea0[_0x15ec9f(0x185)])===null||_0x58970a===void 0x0?void 0x0:_0x58970a['shapeId'])===_0x723b0d)_0x24f2ad['push']({..._0x184ea0[_0x15ec9f(0x185)],'lineShapeId':_0x5c78df,'isFrom':!![]});if(((_0x4cae20=_0x184ea0['to'])===null||_0x4cae20===void 0x0?void 0x0:_0x4cae20[_0x15ec9f(0x14d)])===_0x723b0d)_0x24f2ad[_0x15ec9f(0x16c)]({..._0x184ea0['to'],'lineShapeId':_0x5c78df,'isFrom':![]});}}}return _0x24f2ad;}['getLineShapeRelation'](_0x171a7a){const _0x3e28d1=_0x2a18d5,_0x29e6e3=this['_shapes'][_0x3e28d1(0x164)](_0x171a7a);if(_0x29e6e3)return _0x29e6e3['getShapeRelation']();}[_0x2a18d5(0xc5)](_0x1a125f){const _0xca1832=_0x2a18d5,_0x1255c8=this['_shapes']['get'](_0x1a125f);if(_0x1255c8)return _0x1255c8[_0xca1832(0xc5)]();}['hasShape'](_0x11241b){const _0x420c41=_0x2a18d5;return this[_0x420c41(0x16f)][_0x420c41(0x14a)](_0x11241b);}[_0x2a18d5(0x131)](_0x5970a7){const _0x22e554=_0x2a18d5,_0xa92958=this[_0x22e554(0x16f)][_0x22e554(0x164)](_0x5970a7);if(!_0xa92958)return;if((0x0,_univerjs_pro_engine_shape[_0x22e554(0xfb)])(_0xa92958['getShapeType']()))this[_0x22e554(0xd4)][_0x22e554(0x120)](_0x5970a7);this[_0x22e554(0x16f)]['delete'](_0x5970a7);}[_0x2a18d5(0x159)](){const _0x10ce04=_0x2a18d5,_0x5ba373=[];return this[_0x10ce04(0x16f)]['forEach'](_0x49b051=>{const _0x30a850=_0x10ce04;_0x5ba373[_0x30a850(0x16c)](_0x49b051[_0x30a850(0x159)]());}),_0x5ba373;}[_0x2a18d5(0x112)](_0xa3bd98){const _0x1a2378=_0x2a18d5;for(const _0x575736 of _0xa3bd98){const {id:_0x4deaed,shapeType:_0x1fb04e}=_0x575736,_0x342aca=this[_0x1a2378(0x153)](_0x1fb04e,_0x4deaed,_0x575736[_0x1a2378(0xf4)]);if(_0x342aca&&_0x342aca[_0x1a2378(0xea)]())this[_0x1a2378(0xd4)]['add'](_0x4deaed);}}[_0x2a18d5(0x180)](){const _0x5cad17=_0x2a18d5;if(this['_disposed'])return;this[_0x5cad17(0x16f)][_0x5cad17(0x12e)](_0x10e4bf=>{const _0x29f40f=_0x5cad17;_0x10e4bf[_0x29f40f(0x180)]();}),this[_0x5cad17(0x16f)][_0x5cad17(0xf7)](),this[_0x5cad17(0xd4)][_0x5cad17(0xf7)](),this[_0x5cad17(0xf5)][_0x5cad17(0xf7)](),super[_0x5cad17(0x180)]();}};function __decorateParam(_0xe540c6,_0x1ebabf){return function(_0x2142e1,_0x1519b6){_0x1ebabf(_0x2142e1,_0x1519b6,_0xe540c6);};}function __decorate(_0x346b68,_0x5326ae,_0x2aa428,_0xa156d2){const _0x313132=_0x2a18d5;var _0x1dd079=arguments['length'],_0x4e8ac0=_0x1dd079<0x3?_0x5326ae:_0xa156d2===null?_0xa156d2=Object['getOwnPropertyDescriptor'](_0x5326ae,_0x2aa428):_0xa156d2,_0x13353f;if(typeof Reflect===_0x313132(0x148)&&typeof Reflect[_0x313132(0x117)]===_0x313132(0x189))_0x4e8ac0=Reflect[_0x313132(0x117)](_0x346b68,_0x5326ae,_0x2aa428,_0xa156d2);else{for(var _0xa4ca51=_0x346b68['length']-0x1;_0xa4ca51>=0x0;_0xa4ca51--)if(_0x13353f=_0x346b68[_0xa4ca51])_0x4e8ac0=(_0x1dd079<0x3?_0x13353f(_0x4e8ac0):_0x1dd079>0x3?_0x13353f(_0x5326ae,_0x2aa428,_0x4e8ac0):_0x13353f(_0x5326ae,_0x2aa428))||_0x4e8ac0;}return _0x1dd079>0x3&&_0x4e8ac0&&Object[_0x313132(0x14c)](_0x5326ae,_0x2aa428,_0x4e8ac0),_0x4e8ac0;}function _0x1514(_0x2e8fb0,_0x55cade){_0x2e8fb0=_0x2e8fb0-0xc1;const _0x50b605=_0x50b6();let _0x1514a5=_0x50b605[_0x2e8fb0];return _0x1514a5;}const SHEET_SHAPE_PLUGIN='SHEET_SHAPE_PLUGIN';let SheetsShapeService=class SheetsShapeService extends _univerjs_core[_0x2a18d5(0x102)]{constructor(_0x40d687){const _0x2baada=_0x2a18d5;super(),this['_resourcesManagerService']=_0x40d687,_defineProperty(this,_0x2baada(0x145),new Map()),this[_0x2baada(0x135)]();}[_0x2a18d5(0xc2)](_0x412685,_0x41bad5){const _0x42e71c=_0x2a18d5;let _0xe314fb=this['_shapeModelManagerMap'][_0x42e71c(0x164)](_0x412685);!_0xe314fb&&(_0xe314fb=new Map(),this[_0x42e71c(0x145)][_0x42e71c(0x156)](_0x412685,_0xe314fb));let _0x3f1297=_0xe314fb['get'](_0x41bad5);return!_0x3f1297&&(_0x3f1297=new SheetShapeModelManager(),_0xe314fb[_0x42e71c(0x156)](_0x41bad5,_0x3f1297)),_0x3f1297;}[_0x2a18d5(0x114)](_0x592909,_0xd9ad71,_0x23671d,_0x30d7d1,_0x89b8ad){const _0x3f4aa9=_0x2a18d5;this['_ensureShapeModelManager'](_0x592909,_0xd9ad71)[_0x3f4aa9(0x153)](_0x23671d,_0x30d7d1,_0x89b8ad);}[_0x2a18d5(0x131)](_0x1ee422,_0x54f02f,_0x58288c){const _0x3b4adc=_0x2a18d5;this['_ensureShapeModelManager'](_0x1ee422,_0x54f02f)[_0x3b4adc(0x131)](_0x58288c);}['getBasicShapeType'](_0x3db012,_0x231b9e,_0x5f4516){const _0x2c9611=_0x2a18d5;return this[_0x2c9611(0xc2)](_0x3db012,_0x231b9e)[_0x2c9611(0xc5)](_0x5f4516);}[_0x2a18d5(0xc5)](_0x10f928,_0x2cf993,_0x28b6e4){const _0x438956=_0x2a18d5;return this[_0x438956(0xc2)](_0x10f928,_0x2cf993)[_0x438956(0xc5)](_0x28b6e4);}[_0x2a18d5(0x12d)](_0x3641e7,_0x9a68ca,_0x5bd7e8){return this['_ensureShapeModelManager'](_0x3641e7,_0x9a68ca)['hasShape'](_0x5bd7e8);}[_0x2a18d5(0xd7)](_0x1b7881,_0x17595c,_0x12133a){const _0x4e3b70=_0x2a18d5;return this[_0x4e3b70(0xc2)](_0x1b7881,_0x17595c)[_0x4e3b70(0xc5)](_0x12133a);}[_0x2a18d5(0xda)](_0x422315,_0x3be221,_0x4ef625){const _0x4a0617=_0x2a18d5,_0x1a4a83=this[_0x4a0617(0xc2)](_0x422315,_0x3be221);if(!_0x1a4a83[_0x4a0617(0xc5)](_0x4ef625))return;const _0xa27101=_0x1a4a83[_0x4a0617(0x16f)][_0x4a0617(0x164)](_0x4ef625);if(!_0xa27101)return;return _0xa27101[_0x4a0617(0x100)]();}[_0x2a18d5(0x10a)](_0x4ea4be,_0x217397,_0x475c39){const _0x50cdb2=_0x2a18d5;return this[_0x50cdb2(0xc2)](_0x4ea4be,_0x217397)[_0x50cdb2(0x16f)][_0x50cdb2(0x164)](_0x475c39);}['getBasicShapeRelation'](_0x143332,_0x216613,_0x5b54a9){const _0x5d7723=_0x2a18d5;return this[_0x5d7723(0xc2)](_0x143332,_0x216613)[_0x5d7723(0xe9)](_0x5b54a9);}['getLineShapeRelation'](_0x41048b,_0x3e8c5c,_0x320229){const _0x4dfb8c=_0x2a18d5,_0x2b7130=this[_0x4dfb8c(0xc2)](_0x41048b,_0x3e8c5c)[_0x4dfb8c(0x16f)][_0x4dfb8c(0x164)](_0x320229);if(!_0x2b7130)return;return _0x2b7130[_0x4dfb8c(0x108)]();}[_0x2a18d5(0x181)](){}[_0x2a18d5(0xdb)](_0x37b383){const _0x5ca9c3=_0x2a18d5,_0x46e9ea={},_0x4b1897=this[_0x5ca9c3(0x145)][_0x5ca9c3(0x164)](_0x37b383);if(_0x4b1897)_0x4b1897[_0x5ca9c3(0x12e)]((_0x10c313,_0xb06cd5)=>{const _0x46acfc=_0x5ca9c3,_0x5abb67=_0x10c313[_0x46acfc(0x159)]();if(_0x5abb67['length']>0x0)_0x46e9ea[_0xb06cd5]=_0x5abb67;});return JSON[_0x5ca9c3(0xd2)](_0x46e9ea);}['_deserializeShapeForUnit'](_0x53fee5,_0xcf1908){const _0x429316=_0x2a18d5;Object[_0x429316(0xdd)](_0xcf1908)[_0x429316(0x12e)](_0x3dfb14=>{const _0x32a258=_0x429316;this[_0x32a258(0xc2)](_0x53fee5,_0x3dfb14)[_0x32a258(0x112)](_0xcf1908[_0x3dfb14]);});}[_0x2a18d5(0x159)](){const _0x328ed8=_0x2a18d5,_0x3c24e0={};return this['_shapeModelManagerMap'][_0x328ed8(0x12e)]((_0x4dbfbe,_0x4bf583)=>{const _0x412603=_0x328ed8;_0x3c24e0[_0x4bf583]={},_0x4dbfbe[_0x412603(0x12e)]((_0x9421fd,_0x5e08ce)=>{const _0x27bbff=_0x412603;_0x3c24e0[_0x4bf583][_0x5e08ce]=_0x9421fd[_0x27bbff(0x159)]();});}),_0x3c24e0;}[_0x2a18d5(0x112)](_0x413399){const _0x8365e1=_0x2a18d5;Object[_0x8365e1(0xdd)](_0x413399)[_0x8365e1(0x12e)](_0x544446=>{const _0x493bfc=_0x8365e1,_0x4116a4=_0x413399[_0x544446];Object[_0x493bfc(0xdd)](_0x4116a4)[_0x493bfc(0x12e)](_0x4ec317=>{const _0x1e2f89=_0x493bfc;this[_0x1e2f89(0xc2)](_0x544446,_0x4ec317)[_0x1e2f89(0x112)](_0x4116a4[_0x4ec317]);});});}[_0x2a18d5(0x135)](){const _0x16f6a9=_0x2a18d5;this[_0x16f6a9(0x132)][_0x16f6a9(0x13a)]({'pluginName':SHEET_SHAPE_PLUGIN,'businesses':[_univerjs_core[_0x16f6a9(0xcb)][_0x16f6a9(0x149)]],'toJson':_0x350b5a=>this[_0x16f6a9(0xdb)](_0x350b5a),'parseJson':_0x2a7bbf=>JSON[_0x16f6a9(0x137)](_0x2a7bbf),'onLoad':(_0x164683,_0x28f80c)=>{const _0x5e7e57=_0x16f6a9;this[_0x5e7e57(0xfe)](_0x164683,_0x28f80c);},'onUnLoad':_0x1ef03a=>{const _0x4879b8=_0x16f6a9,_0x2839a7=this[_0x4879b8(0x145)][_0x4879b8(0x164)](_0x1ef03a);_0x2839a7&&(_0x2839a7[_0x4879b8(0x12e)](_0x32a8b5=>{_0x32a8b5['dispose']();}),this[_0x4879b8(0x145)][_0x4879b8(0x120)](_0x1ef03a));}});}[_0x2a18d5(0x180)](){const _0x1dc46a=_0x2a18d5;this[_0x1dc46a(0x145)][_0x1dc46a(0x12e)](_0x4e3b4d=>{const _0x29695a=_0x1dc46a;_0x4e3b4d[_0x29695a(0x12e)](_0x2e7b29=>{_0x2e7b29['dispose']();});});}};SheetsShapeService=__decorate([__decorateParam(0x0,_univerjs_core[_0x2a18d5(0xe3)])],SheetsShapeService);const InsertSheetsShapeMutation={'id':_0x2a18d5(0x177),'type':_univerjs_core[_0x2a18d5(0x15f)][_0x2a18d5(0xe4)],'handler':(_0x47afe1,_0x1004e3)=>{const {unitId:_0x13c071,subUnitId:_0x19bcae,shapeType:_0xfd6f31,shapeId:_0x5c69e8,shapeData:_0x4077eb}=_0x1004e3;return _0x47afe1['get'](SheetsShapeService)['insertShape'](_0x13c071,_0x19bcae,_0xfd6f31,_0x5c69e8,_0x4077eb),!![];}},RemoveSheetsShapeMutation={'id':'sheet.mutation.remove-shape','type':_univerjs_core['CommandType']['MUTATION'],'handler':(_0x207c2,_0x277bbe)=>{const _0x40fde7=_0x2a18d5,{unitId:_0x5850f4,subUnitId:_0x2eaf8a,shapeId:_0x3b115e}=_0x277bbe;return _0x207c2[_0x40fde7(0x164)](SheetsShapeService)[_0x40fde7(0x131)](_0x5850f4,_0x2eaf8a,_0x3b115e),!![];}},InsertShapeCommand={'type':_univerjs_core[_0x2a18d5(0x15f)][_0x2a18d5(0x134)],'id':_0x2a18d5(0x12c),'handler':(_0x4d9064,_0x6edfdb)=>{const _0x511155=_0x2a18d5;var _0x2acad0,_0x2ba7db;const _0xb4f2fc=(0x0,_univerjs_sheets[_0x511155(0x127)])(_0x4d9064[_0x511155(0x164)](_univerjs_core[_0x511155(0xd3)]),_0x6edfdb);if(!_0xb4f2fc)return![];const _0x310897=_0x4d9064[_0x511155(0x164)](_univerjs_sheets[_0x511155(0xe7)]),{unitId:_0x508450,subUnitId:_0x14bb54}=_0xb4f2fc,_0x3fb4fd=_0x310897['ensureSkeleton'](_0x508450,_0x14bb54);if(!_0x3fb4fd)return![];const _0xea867e=_0x4d9064[_0x511155(0x164)](_univerjs_core[_0x511155(0xfa)]),_0x57cba3=_0x4d9064[_0x511155(0x164)](_univerjs_core[_0x511155(0x178)]),_0x4b2be9=_0x4d9064[_0x511155(0x164)](_univerjs_sheets[_0x511155(0x119)]),_0x571e0b=_0x4d9064[_0x511155(0x164)](_univerjs_sheets_drawing[_0x511155(0x182)]),{shapeType:_0x3eab77,shapeData:_0x1605a6}=_0x6edfdb,_0x5a430b=_0x6edfdb[_0x511155(0x14d)]||(0x0,_univerjs_core[_0x511155(0x143)])(),_0x5f25a8={'unitId':_0x508450,'subUnitId':_0x14bb54,'shapeId':_0x5a430b,'shapeType':_0x3eab77,'shapeData':_0x1605a6},_0x5569ad=_0x6edfdb['width']||0xc8,_0x47bffa=_0x6edfdb['height']||0xc8;let _0x1adbdd=0x0,_0x14663c=0x0,_0xe69a2d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x47474c={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x6edfdb[_0x511155(0x101)]){const {x:_0x5a4e04,y:_0x5a3423}=_0x6edfdb['position'];_0x1adbdd=_0x5a4e04,_0x14663c=_0x5a3423,_0xe69a2d=_0x3fb4fd[_0x511155(0x184)](_0x5a4e04,_0x5a3423),_0x47474c=_0x3fb4fd[_0x511155(0x184)](_0x5a4e04+_0x5569ad,_0x5a3423+_0x47bffa);}else{if(_0x6edfdb[_0x511155(0xee)]){const {startRow:_0x1ce811,startColumn:_0x13ae4e}=_0x6edfdb[_0x511155(0xee)],_0x5721e2=0xa,_0x41da4a=0xa;_0xe69a2d={'row':_0x1ce811,'rowOffset':_0x5721e2,'column':_0x13ae4e,'columnOffset':_0x41da4a};const _0xdc1222=_0x3fb4fd[_0x511155(0x10c)](_0x1ce811,_0x13ae4e);_0x1adbdd=_0xdc1222[_0x511155(0xf1)]+_0x41da4a,_0x14663c=_0xdc1222[_0x511155(0xdf)]+_0x5721e2,_0x47474c=_0x3fb4fd[_0x511155(0x184)](_0x1adbdd+_0x5569ad,_0x14663c+_0x47bffa);}}const _0x429d34={'from':_0xe69a2d,'to':_0x47474c},_0x4795dc={'unitId':_0x508450,'subUnitId':_0x14bb54,'drawingId':_0x5a430b,'drawingType':_univerjs_core[_0x511155(0x16b)][_0x511155(0xe0)],'sheetTransform':_0x429d34,'transform':{'left':_0x1adbdd,'top':_0x14663c,'width':_0x5569ad,'height':_0x47bffa},'data':{'shapeType':_0x3eab77,'shapeData':_0x1605a6},'axisAlignSheetTransform':_0x429d34,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape[_0x511155(0xfb)])(_0x3eab77)&&(_0x4795dc[_0x511155(0x170)][_0x511155(0x144)]=![],_0x4795dc[_0x511155(0x170)][_0x511155(0xc9)]=![],_0x4795dc[_0x511155(0x170)][_0x511155(0x162)]=![],_0x4795dc['data'][_0x511155(0x15c)]=![],_0x4795dc['transform'][_0x511155(0xc9)]=![],_0x4795dc['transform'][_0x511155(0x162)]=![],_0x4795dc[_0x511155(0xd1)][_0x511155(0x15c)]=![]);const {undo:_0x1d268d,redo:_0x37d62c,objects:_0x2b17d4}=_0x571e0b[_0x511155(0x130)]([_0x4795dc]),_0x3dd903=_0x4b2be9[_0x511155(0x10e)]({'id':_univerjs_sheets_drawing[_0x511155(0x15b)]['id'],'params':{'unitId':_0x508450,'drawings':[_0x4795dc]}}),_0x474a02=[...(_0x2acad0=_0x3dd903[_0x511155(0x109)])!==null&&_0x2acad0!==void 0x0?_0x2acad0:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x508450,'subUnitId':_0x14bb54,'op':_0x37d62c,'objects':_0x2b17d4,'type':_univerjs_sheets_drawing[_0x511155(0x186)][_0x511155(0x17d)]}},{'id':_univerjs_sheets_drawing[_0x511155(0x11d)]['id'],'params':[_0x508450]},..._0x3dd903['redos'],{'id':InsertSheetsShapeMutation['id'],'params':_0x5f25a8}],_0x168fad=[{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x508450,'subUnitId':_0x14bb54,'shapeId':_0x5a430b}},...(_0x2ba7db=_0x3dd903['preUndos'])!==null&&_0x2ba7db!==void 0x0?_0x2ba7db:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x508450,'subUnitId':_0x14bb54,'op':_0x1d268d,'objects':_0x2b17d4,'type':_univerjs_sheets_drawing[_0x511155(0x186)]['REMOVE']}},{'id':_univerjs_sheets_drawing[_0x511155(0x11d)]['id'],'params':[_0x508450]},..._0x3dd903[_0x511155(0x136)]];if((0x0,_univerjs_core[_0x511155(0xf2)])(_0x474a02,_0xea867e))return _0x57cba3[_0x511155(0x123)]({'unitID':_0x508450,'undoMutations':_0x168fad,'redoMutations':_0x474a02}),!![];return![];}},UpdateSheetsShapeDataMutation={'id':_0x2a18d5(0x15d),'type':_univerjs_core[_0x2a18d5(0x15f)][_0x2a18d5(0xe4)],'handler':(_0x554549,_0x2c162e)=>{const _0x5a27c9=_0x2a18d5,{unitId:_0x56b339,subUnitId:_0x4e2eb4,shapeType:_0x3619fd,shapeId:_0x33bca7,shapeData:_0xeda8e3}=_0x2c162e,_0x3eef39=_0x554549['get'](SheetsShapeService)[_0x5a27c9(0x10a)](_0x56b339,_0x4e2eb4,_0x33bca7);if(_0x3eef39){if(_0x3619fd!==void 0x0)_0x3eef39[_0x5a27c9(0x181)](_0x3619fd);if(_0xeda8e3)_0x3eef39===null||_0x3eef39===void 0x0||_0x3eef39['setShapeData'](_0xeda8e3,!![]);}return!![];}},SetShapeDrawingDataCommand={'type':_univerjs_core[_0x2a18d5(0x15f)][_0x2a18d5(0x134)],'id':_0x2a18d5(0x17c),'handler':(_0x2b2849,_0x44bdcc)=>{const _0x3a7dea=_0x2a18d5;var _0x1be978,_0x1ef9f3;const _0x3e1852=(0x0,_univerjs_sheets[_0x3a7dea(0x127)])(_0x2b2849[_0x3a7dea(0x164)](_univerjs_core[_0x3a7dea(0xd3)]),_0x44bdcc);if(!_0x3e1852)return![];const _0xea5650=_0x2b2849['get'](_univerjs_sheets[_0x3a7dea(0xe7)]),{unitId:_0x425953,subUnitId:_0x2f591d}=_0x3e1852,_0x53e9bb=_0xea5650[_0x3a7dea(0x12b)](_0x425953,_0x2f591d);if(!_0x53e9bb)return![];const _0x28c542=_0x2b2849[_0x3a7dea(0x164)](SheetsShapeService),{shapeId:_0x3fd655,shapeType:_0x379116,shapeData:_0xe15174,position:_0x4afd20,width:_0x3dac54,height:_0x81f91b}=_0x44bdcc,_0x10b181=_0x28c542[_0x3a7dea(0x10a)](_0x425953,_0x2f591d,_0x3fd655);if(!_0x10b181)return![];const _0x395d91=_0x2b2849[_0x3a7dea(0x164)](_univerjs_core[_0x3a7dea(0xfa)]),_0x4dcaa0=_0x2b2849[_0x3a7dea(0x164)](_univerjs_core[_0x3a7dea(0x178)]),_0x535ce2=_0x2b2849[_0x3a7dea(0x164)](_univerjs_sheets[_0x3a7dea(0x119)]),_0x5a584b=_0x2b2849['get'](_univerjs_sheets_drawing[_0x3a7dea(0x182)]),_0x1b8a45={'unitId':_0x425953,'subUnitId':_0x2f591d,'shapeId':_0x3fd655,'shapeType':_0x379116,'shapeData':_0xe15174},_0x12d40a=_0x10b181['getShapeType'](),_0x336d3e=_0x10b181['getShapeData'](),{x:_0x1f8b68,y:_0x49a357}=_0x4afd20,_0x5d66c9={'from':_0x53e9bb[_0x3a7dea(0x184)](_0x1f8b68,_0x49a357),'to':_0x53e9bb[_0x3a7dea(0x184)](_0x1f8b68+_0x3dac54,_0x49a357+_0x81f91b)},_0x2aa58a={'unitId':_0x425953,'subUnitId':_0x2f591d,'drawingId':_0x3fd655,'drawingType':_univerjs_core[_0x3a7dea(0x16b)][_0x3a7dea(0xe0)],'sheetTransform':_0x5d66c9,'transform':{'left':_0x1f8b68,'top':_0x49a357,'width':_0x3dac54,'height':_0x81f91b},'data':{'shapeType':_0x379116,'shapeData':_0xe15174},'axisAlignSheetTransform':_0x5d66c9,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape[_0x3a7dea(0xfb)])(_0x379116)&&(_0x2aa58a[_0x3a7dea(0x170)][_0x3a7dea(0x144)]=![],_0x2aa58a['data'][_0x3a7dea(0xc9)]=![],_0x2aa58a[_0x3a7dea(0x170)]['resizeEnabled']=![],_0x2aa58a['data'][_0x3a7dea(0x15c)]=![],_0x2aa58a[_0x3a7dea(0xd1)]['rotateEnabled']=![],_0x2aa58a[_0x3a7dea(0xd1)]['resizeEnabled']=![],_0x2aa58a[_0x3a7dea(0xd1)][_0x3a7dea(0x15c)]=![]);const {undo:_0x1f1754,redo:_0x4eea89,objects:_0x15484f}=_0x5a584b['getBatchUpdateOp']([_0x2aa58a]),_0x1bab54=_0x535ce2[_0x3a7dea(0x10e)]({'id':_univerjs_sheets_drawing[_0x3a7dea(0xeb)]['id'],'params':{'unitId':_0x425953,'drawings':[_0x2aa58a]}}),_0x218760=[...(_0x1be978=_0x1bab54[_0x3a7dea(0x109)])!==null&&_0x1be978!==void 0x0?_0x1be978:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x425953,'subUnitId':_0x2f591d,'op':_0x4eea89,'objects':_0x15484f,'type':_univerjs_sheets_drawing[_0x3a7dea(0x186)][_0x3a7dea(0x128)]}},{'id':_univerjs_sheets_drawing[_0x3a7dea(0x11d)]['id'],'params':[_0x425953]},..._0x1bab54[_0x3a7dea(0x12f)],{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x1b8a45}],_0x561437=[...(_0x1ef9f3=_0x1bab54[_0x3a7dea(0x179)])!==null&&_0x1ef9f3!==void 0x0?_0x1ef9f3:[],{'id':_univerjs_sheets_drawing[_0x3a7dea(0x118)]['id'],'params':{'unitId':_0x425953,'subUnitId':_0x2f591d,'op':_0x1f1754,'objects':_0x15484f,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3a7dea(0x128)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x425953]},..._0x1bab54[_0x3a7dea(0x136)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x425953,'subUnitId':_0x2f591d,'shapeType':_0x12d40a,'shapeId':_0x3fd655,'shapeData':_0x336d3e}}];if((0x0,_univerjs_core[_0x3a7dea(0xf2)])(_0x218760,_0x395d91))return _0x4dcaa0[_0x3a7dea(0x123)]({'unitID':_0x425953,'undoMutations':_0x561437,'redoMutations':_0x218760}),!![];return![];}},ToggleSheetsShapeFlipCommand={'type':_univerjs_core[_0x2a18d5(0x15f)][_0x2a18d5(0x134)],'id':_0x2a18d5(0x116),'handler':(_0x45275d,_0x1652fe)=>{const _0x2152d0=_0x2a18d5;var _0x56628e,_0x172060;const _0x4dd38e=(0x0,_univerjs_sheets[_0x2152d0(0x127)])(_0x45275d[_0x2152d0(0x164)](_univerjs_core[_0x2152d0(0xd3)]),_0x1652fe);if(!_0x4dd38e)return![];const _0x2ba4c7=_0x45275d[_0x2152d0(0x164)](_univerjs_sheets[_0x2152d0(0xe7)]),{unitId:_0x43ef7d,subUnitId:_0x5e7f81}=_0x4dd38e,_0x130fad=_0x2ba4c7[_0x2152d0(0x13b)](_0x43ef7d,_0x5e7f81);if(!_0x130fad)return![];const _0x1da19e=_0x45275d[_0x2152d0(0x164)](_univerjs_sheets_drawing[_0x2152d0(0x182)]),{shapeId:_0x581831,flipH:_0x26c41d,flipV:_0x1b2f5e}=_0x1652fe,_0x4add16=_0x1da19e[_0x2152d0(0x16d)]({'unitId':_0x43ef7d,'subUnitId':_0x5e7f81,'drawingId':_0x581831});if(!_0x4add16)return![];const _0xeab154=_0x45275d['get'](SheetsShapeService)[_0x2152d0(0x10a)](_0x43ef7d,_0x5e7f81,_0x581831);if(!_0xeab154)return![];const _0x20bbf2=_0x45275d['get'](_univerjs_core['ICommandService']),_0x5b339c=_0x45275d[_0x2152d0(0x164)](_univerjs_core[_0x2152d0(0x178)]),_0x2e13a5=_0x45275d[_0x2152d0(0x164)](_univerjs_sheets['SheetInterceptorService']),_0x28bd21={..._0x4add16[_0x2152d0(0xd1)]};if(_0x26c41d!==void 0x0)_0x28bd21[_0x2152d0(0x18c)]=!_0x28bd21[_0x2152d0(0x18c)];if(_0x1b2f5e!==void 0x0)_0x28bd21[_0x2152d0(0xc6)]=!_0x28bd21[_0x2152d0(0xc6)];const _0x438ac8=(0x0,_univerjs_sheets_drawing[_0x2152d0(0xc3)])(_0x28bd21,_0x130fad),_0x5319bc=(0x0,_univerjs_sheets_drawing[_0x2152d0(0x11a)])(_0x28bd21,_0x130fad),_0x544b73=_0xeab154[_0x2152d0(0xc5)](),_0x22fda0=_0xeab154[_0x2152d0(0x100)](),_0x4fb4fa={'unitId':_0x43ef7d,'subUnitId':_0x5e7f81,'drawingId':_0x581831,'drawingType':_univerjs_core[_0x2152d0(0x16b)][_0x2152d0(0xe0)],'sheetTransform':_0x438ac8,'transform':_0x28bd21,'data':{'shapeType':_0x544b73,'shapeData':_0x22fda0},'axisAlignSheetTransform':_0x5319bc,'allowTransform':!![]},{undo:_0x4bbba0,redo:_0x5aafb4,objects:_0x114fcd}=_0x1da19e[_0x2152d0(0xe2)]([_0x4fb4fa]),_0x1cd65d=_0x2e13a5[_0x2152d0(0x10e)]({'id':_univerjs_sheets_drawing[_0x2152d0(0xeb)]['id'],'params':{'unitId':_0x43ef7d,'drawings':[_0x4fb4fa]}}),_0xe4741=[...(_0x56628e=_0x1cd65d[_0x2152d0(0x109)])!==null&&_0x56628e!==void 0x0?_0x56628e:[],{'id':_univerjs_sheets_drawing[_0x2152d0(0x118)]['id'],'params':{'unitId':_0x43ef7d,'subUnitId':_0x5e7f81,'op':_0x5aafb4,'objects':_0x114fcd,'type':_univerjs_sheets_drawing[_0x2152d0(0x186)][_0x2152d0(0x128)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x43ef7d]},..._0x1cd65d[_0x2152d0(0x12f)]],_0x53075e=[...(_0x172060=_0x1cd65d[_0x2152d0(0x179)])!==null&&_0x172060!==void 0x0?_0x172060:[],{'id':_univerjs_sheets_drawing[_0x2152d0(0x118)]['id'],'params':{'unitId':_0x43ef7d,'subUnitId':_0x5e7f81,'op':_0x4bbba0,'objects':_0x114fcd,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x2152d0(0x128)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x43ef7d]},..._0x1cd65d[_0x2152d0(0x136)]];if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x544b73)){const _0x3107d6=_0xeab154[_0x2152d0(0x108)]();if(_0x3107d6){const _0x3c5c3b={..._0x3107d6};_0x3c5c3b[_0x2152d0(0x185)]=void 0x0,_0x3c5c3b['to']=void 0x0,_0xe4741[_0x2152d0(0x16c)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x43ef7d,'subUnitId':_0x5e7f81,'shapeId':_0x581831,'shapeType':_0x544b73,'shapeData':{'relation':_0x3c5c3b}}}),_0x53075e[_0x2152d0(0x16c)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x43ef7d,'subUnitId':_0x5e7f81,'shapeId':_0x581831,'shapeType':_0x544b73,'shapeData':{'relation':_0x3107d6}}});}}if((0x0,_univerjs_core[_0x2152d0(0xf2)])(_0xe4741,_0x20bbf2))return _0x5b339c[_0x2152d0(0x123)]({'unitID':_0x43ef7d,'undoMutations':_0x53075e,'redoMutations':_0xe4741}),!![];return![];}},SetSheetsShapeRotateCommand={'type':_univerjs_core['CommandType'][_0x2a18d5(0x134)],'id':_0x2a18d5(0x14e),'handler':(_0x1c7c3c,_0x596df6)=>{const _0x13f094=_0x2a18d5;var _0x55ebb5,_0xed3ec1;const _0x854b74=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x1c7c3c[_0x13f094(0x164)](_univerjs_core[_0x13f094(0xd3)]),_0x596df6);if(!_0x854b74)return![];const _0x55b8ef=_0x1c7c3c[_0x13f094(0x164)](_univerjs_sheets[_0x13f094(0xe7)]),{unitId:_0x38e0a1,subUnitId:_0x4d80a3}=_0x854b74,_0x254f8e=_0x55b8ef['getSkeleton'](_0x38e0a1,_0x4d80a3);if(!_0x254f8e)return![];const _0x2b7398=_0x1c7c3c[_0x13f094(0x164)](_univerjs_sheets_drawing[_0x13f094(0x182)]),{shapeId:_0x208b17,rotate:_0x1d0985}=_0x596df6,_0x12c603=_0x2b7398[_0x13f094(0x16d)]({'unitId':_0x38e0a1,'subUnitId':_0x4d80a3,'drawingId':_0x208b17});if(!_0x12c603)return![];const _0x4b7efa=_0x1c7c3c['get'](SheetsShapeService)[_0x13f094(0x10a)](_0x38e0a1,_0x4d80a3,_0x208b17);if(!_0x4b7efa)return![];const _0x124044=_0x1c7c3c[_0x13f094(0x164)](_univerjs_core[_0x13f094(0xfa)]),_0x359810=_0x1c7c3c[_0x13f094(0x164)](_univerjs_core[_0x13f094(0x178)]),_0x177edd=_0x1c7c3c[_0x13f094(0x164)](_univerjs_sheets[_0x13f094(0x119)]),_0x2a99ed={..._0x12c603['transform']};if(_0x1d0985!==void 0x0)_0x2a99ed[_0x13f094(0x15a)]=(_0x2a99ed[_0x13f094(0x15a)]||0x0)+_0x1d0985;const _0x3ccf64=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x2a99ed,_0x254f8e),_0x356ddd=(0x0,_univerjs_sheets_drawing[_0x13f094(0x11a)])(_0x2a99ed,_0x254f8e),_0x37a7c3=_0x4b7efa[_0x13f094(0xc5)](),_0x4bcbf3=_0x4b7efa[_0x13f094(0x100)](),_0x9b7b8b={'unitId':_0x38e0a1,'subUnitId':_0x4d80a3,'drawingId':_0x208b17,'drawingType':_univerjs_core['DrawingTypeEnum'][_0x13f094(0xe0)],'sheetTransform':_0x3ccf64,'transform':_0x2a99ed,'data':{'shapeType':_0x37a7c3,'shapeData':_0x4bcbf3},'axisAlignSheetTransform':_0x356ddd,'allowTransform':!![]},{undo:_0x47a4db,redo:_0x593fa8,objects:_0x58f864}=_0x2b7398[_0x13f094(0xe2)]([_0x9b7b8b]),_0x44f676=_0x177edd[_0x13f094(0x10e)]({'id':_univerjs_sheets_drawing[_0x13f094(0xeb)]['id'],'params':{'unitId':_0x38e0a1,'drawings':[_0x9b7b8b]}}),_0xe723fd=[...(_0x55ebb5=_0x44f676[_0x13f094(0x109)])!==null&&_0x55ebb5!==void 0x0?_0x55ebb5:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x38e0a1,'subUnitId':_0x4d80a3,'op':_0x593fa8,'objects':_0x58f864,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x13f094(0x128)]}},{'id':_univerjs_sheets_drawing[_0x13f094(0x11d)]['id'],'params':[_0x38e0a1]},..._0x44f676[_0x13f094(0x12f)]],_0x1bc36f=[...(_0xed3ec1=_0x44f676[_0x13f094(0x179)])!==null&&_0xed3ec1!==void 0x0?_0xed3ec1:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x38e0a1,'subUnitId':_0x4d80a3,'op':_0x47a4db,'objects':_0x58f864,'type':_univerjs_sheets_drawing[_0x13f094(0x186)][_0x13f094(0x128)]}},{'id':_univerjs_sheets_drawing[_0x13f094(0x11d)]['id'],'params':[_0x38e0a1]},..._0x44f676['undos']];if((0x0,_univerjs_core[_0x13f094(0xf2)])(_0xe723fd,_0x124044))return _0x359810['pushUndoRedo']({'unitID':_0x38e0a1,'undoMutations':_0x1bc36f,'redoMutations':_0xe723fd}),!![];return![];}},SetSheetsShapeTextVerticalToggleCommand={'type':_univerjs_core[_0x2a18d5(0x15f)][_0x2a18d5(0x134)],'id':_0x2a18d5(0x110),'handler':(_0x280b8f,_0x4b69fd)=>{const _0x29caf3=_0x2a18d5;var _0x37185d;const _0x4d22a2=(0x0,_univerjs_sheets[_0x29caf3(0x127)])(_0x280b8f[_0x29caf3(0x164)](_univerjs_core[_0x29caf3(0xd3)]),_0x4b69fd);if(!_0x4d22a2)return![];const {unitId:_0x2c6567,subUnitId:_0x385c26}=_0x4d22a2,{shapeId:_0x4678f6}=_0x4b69fd,_0x5a0616=_0x280b8f[_0x29caf3(0x164)](SheetsShapeService)[_0x29caf3(0x10a)](_0x2c6567,_0x385c26,_0x4678f6);if(!_0x5a0616)return![];const _0x96fa5e=_0x5a0616[_0x29caf3(0x18b)](),_0x17db1b=(_0x37185d=_0x96fa5e===null||_0x96fa5e===void 0x0?void 0x0:_0x96fa5e['isHorizontal'])!==null&&_0x37185d!==void 0x0?_0x37185d:!![],_0x42a960=!_0x17db1b,_0x11ff8c=_0x280b8f['get'](_univerjs_core[_0x29caf3(0xfa)]),_0x2ee44e=_0x280b8f['get'](_univerjs_core[_0x29caf3(0x178)]),_0x88a43e={'unitId':_0x2c6567,'subUnitId':_0x385c26,'shapeId':_0x4678f6,'shapeData':{'shapeText':{'isHorizontal':_0x42a960}}},_0x3d31d0={'unitId':_0x2c6567,'subUnitId':_0x385c26,'shapeId':_0x4678f6,'shapeData':{'shapeText':{'isHorizontal':_0x17db1b}}},_0x36d8b8=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x88a43e}],_0x7a6dab=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x3d31d0}];if((0x0,_univerjs_core[_0x29caf3(0xf2)])(_0x36d8b8,_0x11ff8c))return _0x2ee44e['pushUndoRedo']({'unitID':_0x2c6567,'undoMutations':_0x7a6dab,'redoMutations':_0x36d8b8}),!![];return![];}},UpdateConnectorRelationCommand={'type':_univerjs_core['CommandType'][_0x2a18d5(0x134)],'id':_0x2a18d5(0x18a),'handler':(_0x80c18f,_0x4c0f9e)=>{const _0x6fa552=_0x2a18d5;var _0x5a46cd,_0x4fb2ae,_0x3ea708,_0x501b3f;const _0xb29db4=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x80c18f['get'](_univerjs_core[_0x6fa552(0xd3)]),_0x4c0f9e);if(!_0xb29db4)return![];const _0x1e509a=_0x80c18f[_0x6fa552(0x164)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0xc47eb7,subUnitId:_0x1be48b}=_0xb29db4,_0x22b52f=_0x1e509a['getSkeleton'](_0xc47eb7,_0x1be48b);if(!_0x22b52f)return![];const _0x2eae23=_0x80c18f[_0x6fa552(0x164)](_univerjs_sheets_drawing[_0x6fa552(0x182)]),{connectorShapeId:_0x1cfed7,width:_0x595f87,height:_0x630217,left:_0x4ffad0,top:_0x304383,flipX:_0x16dfd6,flipY:_0x1d2153,rotation:_0x3177dd,oldAdjustValues:_0x43df8e,newAdjustValues:_0x3efa2d,oldLineType:_0x432bb8,newLineType:_0x2a6ad1,oldRelation:_0x3dbee7,newRelation:_0xd94f9}=_0x4c0f9e,_0x24e54d=_0x2eae23[_0x6fa552(0x16d)]({'unitId':_0xc47eb7,'subUnitId':_0x1be48b,'drawingId':_0x1cfed7});if(!_0x24e54d)return![];const _0x3d8fbc=_0x80c18f['get'](SheetsShapeService)[_0x6fa552(0x10a)](_0xc47eb7,_0x1be48b,_0x1cfed7);if(!_0x3d8fbc)return![];const _0x59496b=_0x80c18f[_0x6fa552(0x164)](_univerjs_core['ICommandService']),_0x4e9ec5=_0x80c18f[_0x6fa552(0x164)](_univerjs_core['IUndoRedoService']),_0x16f02d=_0x80c18f[_0x6fa552(0x164)](_univerjs_sheets[_0x6fa552(0x119)]),_0x3b4c65={..._0x24e54d[_0x6fa552(0xd1)],'width':_0x595f87,'height':_0x630217,'left':_0x4ffad0,'top':_0x304383,'flipX':_0x16dfd6,'flipY':_0x1d2153,'angle':(_0x5a46cd=_0x3177dd!==null&&_0x3177dd!==void 0x0?_0x3177dd:(_0x4fb2ae=_0x24e54d[_0x6fa552(0xd1)])===null||_0x4fb2ae===void 0x0?void 0x0:_0x4fb2ae[_0x6fa552(0x15a)])!==null&&_0x5a46cd!==void 0x0?_0x5a46cd:0x0},_0x7f4f75=(0x0,_univerjs_sheets_drawing[_0x6fa552(0xc3)])(_0x3b4c65,_0x22b52f),_0x50abf9=(0x0,_univerjs_sheets_drawing[_0x6fa552(0x11a)])(_0x3b4c65,_0x22b52f),_0x455d36=_0x3d8fbc[_0x6fa552(0xc5)](),_0x118bbf=_0x3d8fbc[_0x6fa552(0x100)](),_0x44e35f={'unitId':_0xc47eb7,'subUnitId':_0x1be48b,'drawingId':_0x1cfed7,'drawingType':_univerjs_core[_0x6fa552(0x16b)]['DRAWING_SHAPE'],'sheetTransform':_0x7f4f75,'transform':_0x3b4c65,'data':{'shapeType':_0x2a6ad1||_0x432bb8||_0x455d36,'shapeData':{..._0x118bbf,'adjustValues':_0x3efa2d||_0x43df8e||(_0x118bbf===null||_0x118bbf===void 0x0?void 0x0:_0x118bbf[_0x6fa552(0xde)]),'relation':_0xd94f9||_0x3dbee7||(_0x118bbf===null||_0x118bbf===void 0x0?void 0x0:_0x118bbf[_0x6fa552(0x105)])}},'axisAlignSheetTransform':_0x50abf9,'allowTransform':!![]},{undo:_0x1af21c,redo:_0x382ee0,objects:_0x37b9e5}=_0x2eae23['getBatchUpdateOp']([_0x44e35f]),_0x4c7c7=_0x16f02d[_0x6fa552(0x10e)]({'id':_univerjs_sheets_drawing[_0x6fa552(0xeb)]['id'],'params':{'unitId':_0xc47eb7,'drawings':[_0x44e35f]}}),_0x9a1efc=[...(_0x3ea708=_0x4c7c7[_0x6fa552(0x109)])!==null&&_0x3ea708!==void 0x0?_0x3ea708:[],{'id':_univerjs_sheets_drawing[_0x6fa552(0x118)]['id'],'params':{'unitId':_0xc47eb7,'subUnitId':_0x1be48b,'op':_0x382ee0,'objects':_0x37b9e5,'type':_univerjs_sheets_drawing[_0x6fa552(0x186)][_0x6fa552(0x128)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xc47eb7]},..._0x4c7c7[_0x6fa552(0x12f)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0xc47eb7,'subUnitId':_0x1be48b,'shapeId':_0x1cfed7,'shapeType':_0x2a6ad1,'shapeData':{'adjustValues':_0x3efa2d,'relation':_0xd94f9}}}],_0x36fc34=[...(_0x501b3f=_0x4c7c7[_0x6fa552(0x179)])!==null&&_0x501b3f!==void 0x0?_0x501b3f:[],{'id':_univerjs_sheets_drawing[_0x6fa552(0x118)]['id'],'params':{'unitId':_0xc47eb7,'subUnitId':_0x1be48b,'op':_0x1af21c,'objects':_0x37b9e5,'type':_univerjs_sheets_drawing[_0x6fa552(0x186)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x6fa552(0x11d)]['id'],'params':[_0xc47eb7]},..._0x4c7c7[_0x6fa552(0x136)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0xc47eb7,'subUnitId':_0x1be48b,'shapeId':_0x1cfed7,'shapeType':_0x455d36,'shapeData':{..._0x118bbf,'adjustValues':_0x43df8e||(_0x118bbf===null||_0x118bbf===void 0x0?void 0x0:_0x118bbf[_0x6fa552(0xde)]),'relation':_0x3dbee7||(_0x118bbf===null||_0x118bbf===void 0x0?void 0x0:_0x118bbf[_0x6fa552(0x105)])}}}];if((0x0,_univerjs_core[_0x6fa552(0xf2)])(_0x9a1efc,_0x59496b))return _0x4e9ec5[_0x6fa552(0x123)]({'unitID':_0xc47eb7,'undoMutations':_0x36fc34,'redoMutations':_0x9a1efc}),!![];return![];}},UpdateLineShapeResizeCommand={'type':_univerjs_core[_0x2a18d5(0x15f)][_0x2a18d5(0x134)],'id':_0x2a18d5(0x125),'handler':(_0x4f61ea,_0x32b945)=>{const _0x2602cc=_0x2a18d5;var _0x723f3d,_0x23776d;const _0x1e1681=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x4f61ea[_0x2602cc(0x164)](_univerjs_core[_0x2602cc(0xd3)]),_0x32b945);if(!_0x1e1681)return![];const _0x5423df=_0x4f61ea[_0x2602cc(0x164)](_univerjs_sheets[_0x2602cc(0xe7)]),{unitId:_0x29356c,subUnitId:_0x52b05e}=_0x1e1681,_0xdee136=_0x5423df[_0x2602cc(0x13b)](_0x29356c,_0x52b05e);if(!_0xdee136)return![];const _0x31a8e5=_0x4f61ea[_0x2602cc(0x164)](_univerjs_sheets_drawing[_0x2602cc(0x182)]),{shapeId:_0x42aa5e,width:_0x5aadb9,height:_0xd18981,left:_0x5a5faa,top:_0x2a943c,flipX:_0x304e71,flipY:_0x329bdd,angle:_0xf50dff,oldAdjustValues:_0x512b7d,newAdjustValues:_0x23159e,oldLineType:_0x9a241e,newLineType:_0x29668e}=_0x32b945,_0x227626=_0x31a8e5['getDrawingByParam']({'unitId':_0x29356c,'subUnitId':_0x52b05e,'drawingId':_0x42aa5e});if(!_0x227626)return![];const _0x5e0130=_0x4f61ea[_0x2602cc(0x164)](SheetsShapeService)[_0x2602cc(0x10a)](_0x29356c,_0x52b05e,_0x42aa5e);if(!_0x5e0130)return![];const _0x419f8d=_0x4f61ea['get'](_univerjs_core['ICommandService']),_0x9dd4ca=_0x4f61ea[_0x2602cc(0x164)](_univerjs_core['IUndoRedoService']),_0x3c9b76=_0x4f61ea[_0x2602cc(0x164)](_univerjs_sheets[_0x2602cc(0x119)]),_0x361a65={..._0x227626['transform'],'width':_0x5aadb9,'height':_0xd18981,'left':_0x5a5faa,'top':_0x2a943c,'flipX':_0x304e71,'flipY':_0x329bdd,'angle':_0xf50dff},_0x13c6ec=(0x0,_univerjs_sheets_drawing[_0x2602cc(0xc3)])(_0x361a65,_0xdee136),_0x414bcc=(0x0,_univerjs_sheets_drawing[_0x2602cc(0x11a)])(_0x361a65,_0xdee136),_0x492778=_0x5e0130[_0x2602cc(0xc5)](),_0x3c1ba9=_0x5e0130[_0x2602cc(0x100)](),_0x493f26={'unitId':_0x29356c,'subUnitId':_0x52b05e,'drawingId':_0x42aa5e,'drawingType':_univerjs_core[_0x2602cc(0x16b)][_0x2602cc(0xe0)],'sheetTransform':_0x13c6ec,'transform':_0x361a65,'data':{'shapeType':_0x29668e||_0x9a241e||_0x492778,'shapeData':{..._0x3c1ba9,'adjustValues':_0x23159e||_0x512b7d||(_0x3c1ba9===null||_0x3c1ba9===void 0x0?void 0x0:_0x3c1ba9[_0x2602cc(0xde)])}},'axisAlignSheetTransform':_0x414bcc,'allowTransform':!![]},{undo:_0x1f943f,redo:_0x351afb,objects:_0x5c80ee}=_0x31a8e5[_0x2602cc(0xe2)]([_0x493f26]),_0x471a3a=_0x3c9b76[_0x2602cc(0x10e)]({'id':_univerjs_sheets_drawing[_0x2602cc(0xeb)]['id'],'params':{'unitId':_0x29356c,'drawings':[_0x493f26]}}),_0x171f21=[...(_0x723f3d=_0x471a3a[_0x2602cc(0x109)])!==null&&_0x723f3d!==void 0x0?_0x723f3d:[],{'id':_univerjs_sheets_drawing[_0x2602cc(0x118)]['id'],'params':{'unitId':_0x29356c,'subUnitId':_0x52b05e,'op':_0x351afb,'objects':_0x5c80ee,'type':_univerjs_sheets_drawing[_0x2602cc(0x186)][_0x2602cc(0x128)]}},{'id':_univerjs_sheets_drawing[_0x2602cc(0x11d)]['id'],'params':[_0x29356c]},..._0x471a3a[_0x2602cc(0x12f)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x29356c,'subUnitId':_0x52b05e,'shapeId':_0x42aa5e,'shapeType':_0x29668e,'shapeData':{'adjustValues':_0x23159e}}}],_0x138951=[...(_0x23776d=_0x471a3a[_0x2602cc(0x179)])!==null&&_0x23776d!==void 0x0?_0x23776d:[],{'id':_univerjs_sheets_drawing[_0x2602cc(0x118)]['id'],'params':{'unitId':_0x29356c,'subUnitId':_0x52b05e,'op':_0x1f943f,'objects':_0x5c80ee,'type':_univerjs_sheets_drawing[_0x2602cc(0x186)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x2602cc(0x11d)]['id'],'params':[_0x29356c]},..._0x471a3a[_0x2602cc(0x136)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x29356c,'subUnitId':_0x52b05e,'shapeId':_0x42aa5e,'shapeType':_0x492778,'shapeData':{..._0x3c1ba9,'adjustValues':_0x512b7d||(_0x3c1ba9===null||_0x3c1ba9===void 0x0?void 0x0:_0x3c1ba9['adjustValues'])}}}];if((0x0,_univerjs_core['sequenceExecute'])(_0x171f21,_0x419f8d))return _0x9dd4ca[_0x2602cc(0x123)]({'unitID':_0x29356c,'undoMutations':_0x138951,'redoMutations':_0x171f21}),!![];return![];}},UpdateSheetsShapeTypeMutation={'id':_0x2a18d5(0xe1),'type':_univerjs_core['CommandType'][_0x2a18d5(0xe4)],'handler':(_0x21ce2c,_0x4df78c)=>{const _0x442715=_0x2a18d5,{unitId:_0x28cef5,subUnitId:_0x31f597,shapeType:_0x3378f7,shapeId:_0x16918c,shapeData:_0x2af477}=_0x4df78c,_0x13f6da=_0x21ce2c[_0x442715(0x164)](SheetsShapeService)['getShapeModel'](_0x28cef5,_0x31f597,_0x16918c);if(_0x13f6da){_0x13f6da['setShapeType'](_0x3378f7);if(_0x2af477)_0x13f6da===null||_0x13f6da===void 0x0||_0x13f6da[_0x442715(0x141)](_0x2af477);}return!![];}},UpdateSheetsShapeTypeCommand={'id':_0x2a18d5(0xcf),'type':_univerjs_core[_0x2a18d5(0x15f)][_0x2a18d5(0x134)],'handler':(_0x2bd525,_0x2c82fe)=>{const _0x5c9618=_0x2a18d5;if(!_0x2c82fe)return![];const _0xb8103b=_0x2bd525[_0x5c9618(0x164)](_univerjs_core[_0x5c9618(0xfa)]),_0x2116f1=_0x2bd525[_0x5c9618(0x164)](SheetsShapeService),_0x53b379=_0x2bd525[_0x5c9618(0x164)](_univerjs_core[_0x5c9618(0x178)]),_0x38e92a=[],_0x5e5dc0=[],{unitId:_0x1a5075,subUnitId:_0x59b528,shapeId:_0x2b7e83,shapeType:_0x280d71,shapeData:_0x3e6426}=_0x2c82fe,_0x52b770=_0x2116f1['getShapeModel'](_0x1a5075,_0x59b528,_0x2b7e83);if(_0x52b770){const _0xef5e29=_0x52b770[_0x5c9618(0xc5)](),_0x580cd2=Object[_0x5c9618(0x115)]({},_0x52b770['getShapeData']()),_0x2288ea={'unitId':_0x1a5075,'subUnitId':_0x59b528,'shapeId':_0x2b7e83,'shapeType':_0x280d71,'shapeData':_0x3e6426},_0x3ee0b4={'unitId':_0x1a5075,'subUnitId':_0x59b528,'shapeId':_0x2b7e83,'shapeType':_0xef5e29,'shapeData':_0x580cd2};_0x38e92a['push']({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x2288ea}),_0x5e5dc0[_0x5c9618(0x16c)]({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x3ee0b4});if(_0x38e92a[_0x5c9618(0xd8)](_0x1dd3a3=>_0xb8103b[_0x5c9618(0x104)](_0x1dd3a3['id'],_0x1dd3a3[_0x5c9618(0x13c)])))_0x53b379['pushUndoRedo']({'unitID':_0x1a5075,'redoMutations':[..._0x38e92a],'undoMutations':[..._0x5e5dc0]});return!![];}return![];}};var name=_0x2a18d5(0x163),version=_0x2a18d5(0xe8);const SHEETS_SHAPE_PLUGIN_CONFIG_KEY=_0x2a18d5(0xfc),configSymbol=Symbol(SHEETS_SHAPE_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let SheetsShapeController=class SheetsShapeController extends _univerjs_core['Disposable']{constructor(_0xb9f704,_0x28e2d4,_0x2ff18c,_0x41e58b,_0x506897){const _0x103dc1=_0x2a18d5;super(),this[_0x103dc1(0x166)]=_0xb9f704,this[_0x103dc1(0x188)]=_0x28e2d4,this[_0x103dc1(0xe5)]=_0x2ff18c,this[_0x103dc1(0x113)]=_0x41e58b,this[_0x103dc1(0x16e)]=_0x506897,this[_0x103dc1(0x122)](),this[_0x103dc1(0x13d)]();}[_0x2a18d5(0x122)](){const _0x450ed2=_0x2a18d5;[InsertShapeCommand,SetShapeDrawingDataCommand,ToggleSheetsShapeFlipCommand,SetSheetsShapeRotateCommand,SetSheetsShapeTextVerticalToggleCommand,UpdateConnectorRelationCommand,UpdateLineShapeResizeCommand,InsertSheetsShapeMutation,RemoveSheetsShapeMutation,UpdateSheetsShapeTypeMutation,UpdateSheetsShapeDataMutation]['forEach'](_0x5c4905=>this[_0x450ed2(0x126)](this[_0x450ed2(0x166)][_0x450ed2(0x165)](_0x5c4905)));}[_0x2a18d5(0x13d)](){const _0x1233a6=_0x2a18d5;this[_0x1233a6(0x126)](this[_0x1233a6(0x188)][_0x1233a6(0x138)]({'getMutations':_0x476099=>{const _0x403128=_0x1233a6;if(_0x476099['id']===_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id']){const {drawings:_0x12c31e}=_0x476099[_0x403128(0x13c)],_0x1ab5db=_0x12c31e['filter'](_0x502d11=>_0x502d11['drawingType']===_univerjs_core[_0x403128(0x16b)]['DRAWING_SHAPE']);if(_0x1ab5db['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x361c63=[],_0x442031=[];return _0x1ab5db[_0x403128(0x12e)](_0x1ddcd8=>{const _0x4c521c=_0x403128,{unitId:_0x8f2465,subUnitId:_0x298707,drawingId:_0x10116a}=_0x1ddcd8,_0x3f2127=this[_0x4c521c(0x113)][_0x4c521c(0x10a)](_0x8f2465,_0x298707,_0x10116a);if(!_0x3f2127)throw new TypeError(_0x4c521c(0x13f)+_0x3f2127);_0x361c63[_0x4c521c(0x16c)]({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x8f2465,'subUnitId':_0x298707,'shapeId':_0x10116a}}),_0x442031['push']({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x8f2465,'subUnitId':_0x298707,'shapeId':_0x10116a,'shapeType':_0x3f2127[_0x4c521c(0xc5)](),'shapeData':_0x3f2127[_0x4c521c(0x100)]()}});const _0xfb56b4=this[_0x4c521c(0x113)][_0x4c521c(0xe9)](_0x8f2465,_0x298707,_0x10116a);if(_0xfb56b4)for(const _0x3f21ff of _0xfb56b4){const _0x1321eb=_0x3f21ff[_0x4c521c(0x168)],_0x5ee33a=_0x3f21ff[_0x4c521c(0x13e)],_0x8e2724=_0x5ee33a?{'from':void 0x0}:{'to':void 0x0},_0x2a86fd=_0x5ee33a?{'from':{'shapeId':_0x3f21ff['shapeId'],'cxnIndex':_0x3f21ff[_0x4c521c(0x147)]}}:{'to':{'shapeId':_0x3f21ff[_0x4c521c(0x14d)],'cxnIndex':_0x3f21ff[_0x4c521c(0x147)]}};_0x361c63['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x8f2465,'subUnitId':_0x298707,'shapeId':_0x1321eb,'shapeData':{'relation':_0x8e2724}}}),_0x442031[_0x4c521c(0x16c)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x8f2465,'subUnitId':_0x298707,'shapeId':_0x1321eb,'shapeData':{'relation':_0x2a86fd}}});}}),{'preRedos':_0x361c63,'redos':[],'preUndos':[],'undos':_0x442031};}if(_0x476099['id']===_univerjs_sheets_drawing[_0x403128(0xeb)]['id']){const {drawings:_0x5af7e8}=_0x476099[_0x403128(0x13c)],_0x575869=_0x5af7e8['filter'](_0x23558b=>_0x23558b['drawingType']===_univerjs_core[_0x403128(0x16b)]['DRAWING_SHAPE']);if(_0x575869[_0x403128(0xff)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x40b8ed=[],_0x56073d=[];for(const _0x2cfe35 of _0x575869){const {unitId:_0x95f0c3,subUnitId:_0x5aa7c2,drawingId:_0x49a0e7,transform:_0x35671f}=_0x2cfe35;if(!_0x95f0c3||!_0x5aa7c2||!_0x49a0e7||!_0x35671f)continue;const _0xa4302d=this[_0x403128(0x113)][_0x403128(0x10a)](_0x95f0c3,_0x5aa7c2,_0x49a0e7);if(!_0xa4302d)throw new TypeError(_0x403128(0x13f)+_0xa4302d);if((0x0,_univerjs_pro_engine_shape[_0x403128(0xfb)])(_0xa4302d['getShapeType']())){const _0x671d4a=this['_sheetsShapeService'][_0x403128(0x18e)](_0x95f0c3,_0x5aa7c2,_0x49a0e7),_0x5d02f0={'from':void 0x0,'to':void 0x0};_0x671d4a&&(_0x40b8ed[_0x403128(0x16c)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x95f0c3,'subUnitId':_0x5aa7c2,'shapeId':_0x49a0e7,'shapeData':{'relation':_0x5d02f0}}}),_0x56073d[_0x403128(0x16c)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x95f0c3,'subUnitId':_0x5aa7c2,'shapeId':_0x49a0e7,'shapeData':{'relation':_0x671d4a}}}));}else{const _0xeecda8=this[_0x403128(0x113)][_0x403128(0xe9)](_0x95f0c3,_0x5aa7c2,_0x49a0e7);if(_0xeecda8&&_0xeecda8[_0x403128(0xff)]>0x0)for(const _0x10dea5 of _0xeecda8){const _0x164089=_0x10dea5['lineShapeId'],_0xc97777=_0x10dea5[_0x403128(0x13e)],_0x360b28=this[_0x403128(0x113)][_0x403128(0x10a)](_0x95f0c3,_0x5aa7c2,_0x164089);if(!_0x360b28)continue;const _0x45055e=_0x360b28[_0x403128(0x173)](),_0x5c2eb7=_0x360b28['getEndConnectInfo']();if(_0x45055e&&_0x5c2eb7)this[_0x403128(0x160)](_0x95f0c3,_0x5aa7c2,_0x164089,_0x360b28,_0x45055e,_0x5c2eb7,_0x40b8ed,_0x56073d,_0x49a0e7,_0x35671f);else this['_addLineFollowShapeUpdates'](_0x95f0c3,_0x5aa7c2,_0x164089,_0x360b28,_0xc97777?_0x45055e:_0x5c2eb7,_0xc97777,_0x40b8ed,_0x56073d,_0x49a0e7,_0x35671f);}}}return{'preRedos':[],'redos':_0x40b8ed,'preUndos':_0x56073d,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x2a18d5(0x167)](_0x2cbe21,_0x396dff,_0x46a758,_0x15829d,_0x857494){const _0xfc62fe=_0x2a18d5;if(!_0x396dff||!_0x46a758)return null;const {shapeId:_0x4ba598,cxnIndex:_0x282947}=_0x2cbe21,_0x13710f=this[_0xfc62fe(0x113)]['getShapeModel'](_0x396dff,_0x46a758,_0x4ba598);if(!_0x13710f)return null;const _0x39e5b2=this[_0xfc62fe(0x16e)][_0xfc62fe(0x16d)]({'unitId':_0x396dff,'subUnitId':_0x46a758,'drawingId':_0x4ba598});if(!(_0x39e5b2===null||_0x39e5b2===void 0x0?void 0x0:_0x39e5b2[_0xfc62fe(0xd1)]))return null;let {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x24a6cb}=_0x39e5b2['transform'];if(_0x857494&&_0x15829d===_0x4ba598){var _0x50085e,_0x1ad76a,_0x14d31d,_0x3925c3,_0x409842,_0x372a8f,_0x5e367f;left=(_0x50085e=_0x857494[_0xfc62fe(0x12a)])!==null&&_0x50085e!==void 0x0?_0x50085e:left,top=(_0x1ad76a=_0x857494[_0xfc62fe(0xd5)])!==null&&_0x1ad76a!==void 0x0?_0x1ad76a:top,width=(_0x14d31d=_0x857494[_0xfc62fe(0xca)])!==null&&_0x14d31d!==void 0x0?_0x14d31d:width,height=(_0x3925c3=_0x857494[_0xfc62fe(0xcd)])!==null&&_0x3925c3!==void 0x0?_0x3925c3:height,flipX=(_0x409842=_0x857494['flipX'])!==null&&_0x409842!==void 0x0?_0x409842:flipX,flipY=(_0x372a8f=_0x857494['flipY'])!==null&&_0x372a8f!==void 0x0?_0x372a8f:flipY,_0x24a6cb=(_0x5e367f=_0x857494[_0xfc62fe(0x15a)])!==null&&_0x5e367f!==void 0x0?_0x5e367f:_0x24a6cb;}_0x13710f['updateContext']({'width':width,'height':height});const _0x117f16=_0x13710f[_0xfc62fe(0xce)]()['find'](_0x5a07db=>_0x5a07db['index']===_0x282947);if(!_0x117f16)return null;let _0x29f17d=flipX?width-_0x117f16['x']:_0x117f16['x'],_0x5d1e77=flipY?height-_0x117f16['y']:_0x117f16['y'];if(_0x24a6cb!==0x0&&_0x24a6cb!==void 0x0&&_0x24a6cb!==null){const _0x5bf4b9=_0x24a6cb*Math['PI']/0xb4,_0x24f7b5=Math[_0xfc62fe(0x183)](_0x5bf4b9),_0x2a20c5=Math['sin'](_0x5bf4b9),_0x2d5e81=width/0x2,_0x304f55=height/0x2,_0x5e844d=_0x29f17d-_0x2d5e81,_0x1d5347=_0x5d1e77-_0x304f55;_0x29f17d=_0x2d5e81+_0x5e844d*_0x24f7b5-_0x1d5347*_0x2a20c5,_0x5d1e77=_0x304f55+_0x5e844d*_0x2a20c5+_0x1d5347*_0x24f7b5;}_0x29f17d+=left,_0x5d1e77+=top;let _0x12d0ae=_0x117f16['ang']/0xea60;if(flipX)_0x12d0ae=0xb4-_0x12d0ae;if(flipY)_0x12d0ae=-_0x12d0ae;_0x12d0ae+=_0x24a6cb||0x0,_0x12d0ae=(_0x12d0ae%0x168+0x168)%0x168;const _0x17d1aa=(0x0,_univerjs_pro_engine_shape[_0xfc62fe(0xc4)])({'left':left,'top':top,'width':width,'height':height},_0x24a6cb||0x0);return{'point':{'x':_0x29f17d,'y':_0x5d1e77},'angle':_0x12d0ae,'bounds':_0x17d1aa};}[_0x2a18d5(0x160)](_0x40ab74,_0x214fcb,_0x5108bb,_0x52ffa6,_0x529b3d,_0x5488e1,_0x58d4f5,_0x1fced1,_0x3eee75,_0x242af5){const _0x49b9ab=_0x2a18d5,_0x8ea92f=this[_0x49b9ab(0xe5)][_0x49b9ab(0x13b)](_0x40ab74,_0x214fcb);if(!_0x8ea92f)return;const _0x478b83=_0x52ffa6[_0x49b9ab(0x108)](),_0x157c80=_0x52ffa6[_0x49b9ab(0xef)](),_0x4eaac2={},_0x1ac4f7={};_0x157c80[_0x49b9ab(0x12e)](_0x200e41=>{const _0x1cfb76=_0x49b9ab,_0x2baf34=_0x52ffa6[_0x1cfb76(0x142)](_0x200e41);_0x1ac4f7[_0x200e41]=_0x2baf34!==null&&_0x2baf34!==void 0x0?_0x2baf34:0x0;});const _0x19f8dd=this[_0x49b9ab(0x167)](_0x529b3d,_0x40ab74,_0x214fcb,_0x3eee75,_0x242af5),_0x465f3a=this['_getConnectPointInfo'](_0x5488e1,_0x40ab74,_0x214fcb,_0x3eee75,_0x242af5);if(_0x19f8dd&&_0x465f3a){const _0x213d25=_0x52ffa6[_0x49b9ab(0xc5)](),_0x1200f1=(0x0,_univerjs_pro_engine_shape[_0x49b9ab(0x14b)])(_0x19f8dd,_0x465f3a,_0x213d25);let _0x145899=_0x213d25;if(_0x1200f1){const _0x55c792=(0x0,_univerjs_pro_engine_shape[_0x49b9ab(0x10f)])(_0x1200f1,_0x52ffa6['getShapeType']()),_0x4e835b=this[_0x49b9ab(0x16e)][_0x49b9ab(0x140)](_0x40ab74,_0x214fcb);if(_0x4e835b&&_0x4e835b[_0x5108bb]){const _0x4d09f4=_0x4e835b[_0x5108bb];_0x145899=_0x55c792[_0x49b9ab(0x17e)];for(const [_0x21dea8,_0x5c01e5]of Object[_0x49b9ab(0xcc)](_0x55c792['adjustValues']))_0x4eaac2[_0x21dea8]=_0x5c01e5;const _0x3e1a8f={..._0x4d09f4[_0x49b9ab(0xd1)],'width':_0x55c792[_0x49b9ab(0xed)][_0x49b9ab(0xca)],'height':_0x55c792['worldRect'][_0x49b9ab(0xcd)],'left':_0x55c792[_0x49b9ab(0xed)]['left'],'top':_0x55c792[_0x49b9ab(0xed)][_0x49b9ab(0xd5)],'flipX':_0x55c792['worldRect'][_0x49b9ab(0x18c)],'flipY':_0x55c792[_0x49b9ab(0xed)]['flipY'],'angle':_0x55c792[_0x49b9ab(0xc7)]},_0x5f17bd=(0x0,_univerjs_sheets_drawing[_0x49b9ab(0xc3)])(_0x3e1a8f,_0x8ea92f),_0x242f31=(0x0,_univerjs_sheets_drawing['transformToAxisAlignPosition'])(_0x3e1a8f,_0x8ea92f),_0x130f87={'unitId':_0x40ab74,'subUnitId':_0x214fcb,'drawingType':_univerjs_core[_0x49b9ab(0x16b)]['DRAWING_SHAPE'],'drawingId':_0x5108bb,'transform':_0x3e1a8f,'sheetTransform':_0x5f17bd,'axisAlignSheetTransform':_0x242f31},{unitId:_0x124f4a,subUnitId:_0x1d4931,undo:_0x5d49fb,redo:_0x4dc3dd,objects:_0x32bfea}=this[_0x49b9ab(0x16e)]['getBatchUpdateOp']([_0x130f87]);_0x58d4f5['push']({'id':_univerjs_sheets_drawing[_0x49b9ab(0x118)]['id'],'params':{'unitId':_0x124f4a,'subUnitId':_0x1d4931,'op':_0x4dc3dd,'objects':_0x32bfea,'type':_univerjs_sheets_drawing[_0x49b9ab(0x186)][_0x49b9ab(0x128)]}}),_0x1fced1[_0x49b9ab(0x16c)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x124f4a,'subUnitId':_0x1d4931,'op':_0x5d49fb,'objects':_0x32bfea,'type':_univerjs_sheets_drawing[_0x49b9ab(0x186)]['UPDATE']}});}_0x52ffa6[_0x49b9ab(0x129)]();}_0x58d4f5[_0x49b9ab(0x16c)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x40ab74,'subUnitId':_0x214fcb,'shapeId':_0x5108bb,'shapeType':_0x145899,'shapeData':{'adjustValues':_0x4eaac2,'relation':_0x478b83}}}),_0x1fced1[_0x49b9ab(0x16c)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x40ab74,'subUnitId':_0x214fcb,'shapeId':_0x5108bb,'shapeType':_0x213d25,'shapeData':{'adjustValues':_0x1ac4f7,'relation':_0x478b83}}});}}['_addLineFollowShapeUpdates'](_0x5c1f36,_0x53de35,_0x41da91,_0x3ec8c6,_0x1d3118,_0x201fa7,_0x38b4af,_0x580ffb,_0x538e59,_0x318941){const _0x953a7e=_0x2a18d5;var _0x2a053b;if(!_0x1d3118)return;const _0x3aa9f9=this['_sheetSkeletonService'][_0x953a7e(0x13b)](_0x5c1f36,_0x53de35);if(!_0x3aa9f9)return;const _0x480f24=(_0x2a053b=this[_0x953a7e(0x16e)][_0x953a7e(0x16d)]({'unitId':_0x5c1f36,'subUnitId':_0x53de35,'drawingId':_0x538e59}))===null||_0x2a053b===void 0x0?void 0x0:_0x2a053b[_0x953a7e(0xd1)];if(!_0x480f24)return;const _0x27080f=_0x480f24[_0x953a7e(0x12a)]!==_0x318941[_0x953a7e(0x12a)]||_0x480f24[_0x953a7e(0xd5)]!==_0x318941[_0x953a7e(0xd5)],_0x390891=_0x480f24[_0x953a7e(0xca)]!==_0x318941[_0x953a7e(0xca)]||_0x480f24[_0x953a7e(0xcd)]!==_0x318941[_0x953a7e(0xcd)],_0x2fac5e=_0x480f24['flipX']!==_0x318941[_0x953a7e(0x18c)]||_0x480f24[_0x953a7e(0xc6)]!==_0x318941[_0x953a7e(0xc6)],_0x4118f2=_0x480f24[_0x953a7e(0x15a)]!==_0x318941[_0x953a7e(0x15a)];if(_0x27080f&&!_0x390891&&!_0x2fac5e&&!_0x4118f2){var _0x2a72e4,_0x4216ee,_0x3de75e,_0xd66391;const _0x1094a6=((_0x2a72e4=_0x318941[_0x953a7e(0x12a)])!==null&&_0x2a72e4!==void 0x0?_0x2a72e4:0x0)-((_0x4216ee=_0x480f24['left'])!==null&&_0x4216ee!==void 0x0?_0x4216ee:0x0),_0x27b38a=((_0x3de75e=_0x318941['top'])!==null&&_0x3de75e!==void 0x0?_0x3de75e:0x0)-((_0xd66391=_0x480f24[_0x953a7e(0xd5)])!==null&&_0xd66391!==void 0x0?_0xd66391:0x0),_0x505068=this[_0x953a7e(0x16e)][_0x953a7e(0x140)](_0x5c1f36,_0x53de35);if(_0x505068&&_0x505068[_0x41da91]){var _0x33ecb1,_0x48408e,_0x416479,_0x1ea23a;const _0x2f095d=_0x505068[_0x41da91],_0x225bb6={..._0x2f095d['transform'],'left':((_0x33ecb1=(_0x48408e=_0x2f095d[_0x953a7e(0xd1)])===null||_0x48408e===void 0x0?void 0x0:_0x48408e[_0x953a7e(0x12a)])!==null&&_0x33ecb1!==void 0x0?_0x33ecb1:0x0)+_0x1094a6,'top':((_0x416479=(_0x1ea23a=_0x2f095d[_0x953a7e(0xd1)])===null||_0x1ea23a===void 0x0?void 0x0:_0x1ea23a[_0x953a7e(0xd5)])!==null&&_0x416479!==void 0x0?_0x416479:0x0)+_0x27b38a},_0xe3d902=(0x0,_univerjs_sheets_drawing[_0x953a7e(0xc3)])(_0x225bb6,_0x3aa9f9),_0x3db30c=(0x0,_univerjs_sheets_drawing[_0x953a7e(0x11a)])(_0x225bb6,_0x3aa9f9),_0x3f87ea={'unitId':_0x5c1f36,'subUnitId':_0x53de35,'drawingType':_univerjs_core[_0x953a7e(0x16b)][_0x953a7e(0xe0)],'drawingId':_0x41da91,'transform':_0x225bb6,'sheetTransform':_0xe3d902,'axisAlignSheetTransform':_0x3db30c},{unitId:_0x4f6e72,subUnitId:_0x300e2c,undo:_0x305e59,redo:_0x5f28a9,objects:_0x32c62f}=this['_drawingManagerService']['getBatchUpdateOp']([_0x3f87ea]);_0x38b4af['push']({'id':_univerjs_sheets_drawing[_0x953a7e(0x118)]['id'],'params':{'unitId':_0x4f6e72,'subUnitId':_0x300e2c,'op':_0x5f28a9,'objects':_0x32c62f,'type':_univerjs_sheets_drawing[_0x953a7e(0x186)][_0x953a7e(0x128)]}}),_0x580ffb[_0x953a7e(0x16c)]({'id':_univerjs_sheets_drawing[_0x953a7e(0x118)]['id'],'params':{'unitId':_0x4f6e72,'subUnitId':_0x300e2c,'op':_0x305e59,'objects':_0x32c62f,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x953a7e(0x128)]}});}}else{const _0x5b121c=_0x3ec8c6[_0x953a7e(0x173)](),_0x1b511e=_0x3ec8c6[_0x953a7e(0x124)]();this[_0x953a7e(0x160)](_0x5c1f36,_0x53de35,_0x41da91,_0x3ec8c6,_0x5b121c,_0x1b511e,_0x38b4af,_0x580ffb,_0x538e59,_0x318941);}}};SheetsShapeController=__decorate([__decorateParam(0x0,_univerjs_core[_0x2a18d5(0xfa)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x2a18d5(0x119)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x2a18d5(0x154)])(_univerjs_sheets[_0x2a18d5(0xe7)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x2a18d5(0x154)])(SheetsShapeService)),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_drawing[_0x2a18d5(0xd6)]))],SheetsShapeController);let UniverSheetsShapePlugin=class UniverSheetsShapePlugin extends _univerjs_core['Plugin']{constructor(_0x55cef4=defaultPluginConfig,_0x19cc1e,_0x499636,_0xb76ad0){const _0x4459a3=_0x2a18d5;super(),this['_config']=_0x55cef4,this[_0x4459a3(0x146)]=_0x19cc1e,this['_commandService']=_0x499636,this['_configService']=_0xb76ad0;const {..._0x49de54}=(0x0,_univerjs_core[_0x4459a3(0x133)])({},defaultPluginConfig,this[_0x4459a3(0x107)]);this[_0x4459a3(0x172)][_0x4459a3(0x171)](SHEETS_SHAPE_PLUGIN_CONFIG_KEY,_0x49de54);}['onStarting'](){const _0x378696=_0x2a18d5,_0x32a6ea=this['_injector'];[[SheetShapeModelManager],[SheetsShapeService],[SheetsShapeController]][_0x378696(0x12e)](_0x3998a5=>_0x32a6ea[_0x378696(0x161)](_0x3998a5)),(0x0,_univerjs_core[_0x378696(0x111)])(_0x32a6ea,[[SheetsShapeService],[SheetsShapeController]]);}};_defineProperty(UniverSheetsShapePlugin,_0x2a18d5(0x175),_univerjs_core[_0x2a18d5(0xcb)]['UNIVER_SHEET']),_defineProperty(UniverSheetsShapePlugin,_0x2a18d5(0xf0),_0x2a18d5(0x11e)),_defineProperty(UniverSheetsShapePlugin,'packageName',name),_defineProperty(UniverSheetsShapePlugin,_0x2a18d5(0xd9),version),UniverSheetsShapePlugin=__decorate([(0x0,_univerjs_core[_0x2a18d5(0x103)])(_univerjs_pro_license['UniverLicensePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0x2a18d5(0x154)])(_univerjs_core[_0x2a18d5(0xf9)])),__decorateParam(0x2,_univerjs_core[_0x2a18d5(0xfa)]),__decorateParam(0x3,_univerjs_core[_0x2a18d5(0x17b)])],UniverSheetsShapePlugin),exports[_0x2a18d5(0x14f)]=DEFAULT_SHAPE_HEIGHT,exports['DEFAULT_SHAPE_WIDTH']=DEFAULT_SHAPE_WIDTH,exports[_0x2a18d5(0xf6)]=InsertShapeCommand,exports[_0x2a18d5(0xf3)]=InsertSheetsShapeMutation,exports['RemoveSheetsShapeMutation']=RemoveSheetsShapeMutation,exports[_0x2a18d5(0x106)]=SetShapeDrawingDataCommand,exports[_0x2a18d5(0x11c)]=SetSheetsShapeRotateCommand,exports[_0x2a18d5(0x17f)]=SetSheetsShapeTextVerticalToggleCommand,Object[_0x2a18d5(0x14c)](exports,_0x2a18d5(0x11f),{'enumerable':!![],'get':function(){return SheetsShapeService;}}),exports[_0x2a18d5(0xfd)]=ToggleSheetsShapeFlipCommand,Object[_0x2a18d5(0x14c)](exports,_0x2a18d5(0x18d),{'enumerable':!![],'get':function(){return UniverSheetsShapePlugin;}}),exports[_0x2a18d5(0xd0)]=UpdateConnectorRelationCommand,exports[_0x2a18d5(0x155)]=UpdateLineShapeResizeCommand,exports[_0x2a18d5(0xec)]=UpdateSheetsShapeDataMutation,exports[_0x2a18d5(0x174)]=UpdateSheetsShapeTypeCommand,exports[_0x2a18d5(0x187)]=UpdateSheetsShapeTypeMutation;
|