@univerjs-pro/sheets-shape 0.20.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x104934=_0x4448;(function(_0x17bd2c,_0x10dee4){const _0x269571=_0x4448,_0x369f04=_0x17bd2c();while(!![]){try{const _0x22c974=parseInt(_0x269571(0xff))/0x1+-parseInt(_0x269571(0xf5))/0x2+parseInt(_0x269571(0x140))/0x3*(-parseInt(_0x269571(0x141))/0x4)+parseInt(_0x269571(0x150))/0x5*(parseInt(_0x269571(0x112))/0x6)+-parseInt(_0x269571(0xdb))/0x7+parseInt(_0x269571(0x123))/0x8+parseInt(_0x269571(0x165))/0x9;if(_0x22c974===_0x10dee4)break;else _0x369f04['push'](_0x369f04['shift']());}catch(_0x3d7265){_0x369f04['push'](_0x369f04['shift']());}}}(_0x1c67,0xa1bc7),Object[_0x104934(0xdf)](exports,Symbol[_0x104934(0x161)],{'value':_0x104934(0x12c)}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core/facade`),n=require(`@univerjs-pro/sheets-shape`),r=require(`@univerjs/core`),i=require(`@univerjs/drawing`),a=require(`@univerjs/sheets`),o=require(`@univerjs/sheets-drawing`),s=require(`@univerjs/sheets/facade`);var c=class extends t[_0x104934(0x162)]{get[_0x104934(0x10a)](){return e['ShapeTypeEnum'];}get[_0x104934(0x117)](){const _0x356ee7=_0x104934;return e[_0x356ee7(0x117)];}get[_0x104934(0x122)](){const _0x262b7a=_0x104934;return e[_0x262b7a(0x122)];}get[_0x104934(0x106)](){const _0x227ef6=_0x104934;return e[_0x227ef6(0x106)];}get[_0x104934(0x168)](){const _0x450bac=_0x104934;return e[_0x450bac(0x168)];}get[_0x104934(0x13f)](){const _0x3133e9=_0x104934;return e[_0x3133e9(0x13f)];}get[_0x104934(0x11b)](){return e['ShapeLineJoinEnum'];}get['ShapeArrowTypeEnum'](){const _0x5e62df=_0x104934;return e[_0x5e62df(0xeb)];}get['ShapeArrowSizeEnum'](){return e['ShapeArrowSizeEnum'];}};t[_0x104934(0x162)][_0x104934(0xfc)](c);function l(_0x27d6c8){'@babel/helpers - typeof';const _0x10c765=_0x104934;return l=typeof Symbol==_0x10c765(0x158)&&typeof Symbol[_0x10c765(0x130)]==_0x10c765(0xed)?function(_0x37d1ac){return typeof _0x37d1ac;}:function(_0x2e707e){const _0x46d624=_0x10c765;return _0x2e707e&&typeof Symbol==_0x46d624(0x158)&&_0x2e707e[_0x46d624(0x154)]===Symbol&&_0x2e707e!==Symbol[_0x46d624(0x16a)]?_0x46d624(0xed):typeof _0x2e707e;},l(_0x27d6c8);}function u(_0x1e392,_0x4fee2e){const _0x47640e=_0x104934;if(l(_0x1e392)!=_0x47640e(0x101)||!_0x1e392)return _0x1e392;var _0x11b339=_0x1e392[Symbol[_0x47640e(0x103)]];if(_0x11b339!==void 0x0){var _0x667c14=_0x11b339[_0x47640e(0x11c)](_0x1e392,_0x4fee2e||'default');if(l(_0x667c14)!=_0x47640e(0x101))return _0x667c14;throw TypeError(_0x47640e(0x12a));}return(_0x4fee2e===_0x47640e(0x163)?String:Number)(_0x1e392);}function d(_0x375e0f){const _0x48668d=_0x104934;var _0x36d545=u(_0x375e0f,_0x48668d(0x163));return l(_0x36d545)==_0x48668d(0xed)?_0x36d545:_0x36d545+'';}function f(_0x14f3ca,_0x18cb2b,_0x13d96e){return(_0x18cb2b=d(_0x18cb2b))in _0x14f3ca?Object['defineProperty'](_0x14f3ca,_0x18cb2b,{'value':_0x13d96e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14f3ca[_0x18cb2b]=_0x13d96e,_0x14f3ca;}var p=class{constructor(_0x2f5f29,_0x53468e,_0x5645d6,_0x5149a1){const _0x797b17=_0x104934;f(this,_0x797b17(0x127),void 0x0),f(this,'subUnitId',void 0x0),f(this,_0x797b17(0xe5),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x797b17(0x149),n[_0x797b17(0x155)]),f(this,_0x797b17(0x14d),n[_0x797b17(0x110)]),f(this,'shapeType',void 0x0),f(this,_0x797b17(0x169),{}),f(this,'_injector',void 0x0),this[_0x797b17(0x127)]=_0x2f5f29,this[_0x797b17(0x10e)]=_0x53468e,this[_0x797b17(0xe5)]=_0x5645d6||(0x0,r[_0x797b17(0x14e)])(),this[_0x797b17(0x128)]=_0x5149a1;}[_0x104934(0x14b)](_0x1dff6a,_0x375949,_0x408b10,_0x1bd0b9){const _0x35ff10=_0x104934;let _0x1413fb=this['_injector'][_0x35ff10(0x118)](a['SheetSkeletonService'])[_0x35ff10(0x148)](this[_0x35ff10(0x127)],this[_0x35ff10(0x10e)]);if(!_0x1413fb)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x35ff10(0x127)]+_0x35ff10(0x10d)+this[_0x35ff10(0x10e)]+_0x35ff10(0xee));let {transform:_0xe49dec}=(0x0,a[_0x35ff10(0x10b)])(this['unitId'],this[_0x35ff10(0x10e)],{'row':_0x1dff6a,'column':_0x375949,'rowOffset':_0x408b10,'columnOffset':_0x1bd0b9},0x1,0x1,_0x1413fb);return this['x']=_0xe49dec[_0x35ff10(0x111)],this['y']=_0xe49dec['top'],this;}['setAbsolutePosition'](_0x5b3fcf,_0x17a670){return this['x']=_0x5b3fcf,this['y']=_0x17a670,this;}[_0x104934(0xd9)](_0x399d8f){return this['shapeType']=_0x399d8f,this;}['setShapeSolidFill'](_0x592fd3,_0x33398f){const _0x3396ef=_0x104934;return this[_0x3396ef(0x169)][_0x3396ef(0xec)]||(this[_0x3396ef(0x169)][_0x3396ef(0xec)]={}),this[_0x3396ef(0x169)][_0x3396ef(0xec)]['fillType']=e['ShapeFillEnum'][_0x3396ef(0x151)],_0x592fd3!==void 0x0&&(this['shapeData'][_0x3396ef(0xec)][_0x3396ef(0x120)]=_0x592fd3),_0x33398f!==void 0x0&&(this[_0x3396ef(0x169)][_0x3396ef(0xec)]['opacity']=_0x33398f),this;}['setShapeGradientFill'](_0x120552,_0x2b3490,_0x468c7b){const _0x24e446=_0x104934;if(_0x2b3490===void 0x0||_0x2b3490[_0x24e446(0x135)]===0x0)throw Error(_0x24e446(0xe3));return this['shapeData'][_0x24e446(0xec)]||(this[_0x24e446(0x169)][_0x24e446(0xec)]={}),this[_0x24e446(0x169)][_0x24e446(0xec)][_0x24e446(0x11a)]=_0x2b3490,this[_0x24e446(0x169)]['fill'][_0x24e446(0x15b)]=e[_0x24e446(0x117)][_0x24e446(0x131)],this['shapeData'][_0x24e446(0xec)][_0x24e446(0x11d)]=_0x120552,_0x468c7b!==void 0x0&&(this[_0x24e446(0x169)]['fill']['gradientAngle']=_0x468c7b),this;}['setNoneFill'](){const _0x36d222=_0x104934;return this[_0x36d222(0x169)][_0x36d222(0xec)]={'fillType':e['ShapeFillEnum'][_0x36d222(0x132)]},this;}[_0x104934(0xf2)](_0x1f3235){const _0x47eb8b=_0x104934;return this[_0x47eb8b(0x169)][_0x47eb8b(0xe2)]||(this[_0x47eb8b(0x169)][_0x47eb8b(0xe2)]={}),this[_0x47eb8b(0x169)][_0x47eb8b(0xe2)][_0x47eb8b(0x120)]=_0x1f3235,this;}[_0x104934(0x11f)](_0x990963){const _0xece515=_0x104934;return this[_0xece515(0x169)]['stroke']||(this[_0xece515(0x169)]['stroke']={}),this[_0xece515(0x169)]['stroke'][_0xece515(0x149)]=_0x990963,this;}[_0x104934(0xfd)](_0x9538b8){const _0x9d4113=_0x104934;return this['shapeData'][_0x9d4113(0xe2)]||(this['shapeData'][_0x9d4113(0xe2)]={}),this[_0x9d4113(0x169)][_0x9d4113(0xe2)][_0x9d4113(0x16f)]=_0x9538b8,this;}[_0x104934(0x16d)](_0x518936){const _0x153324=_0x104934;return this[_0x153324(0x169)]['stroke']||(this[_0x153324(0x169)][_0x153324(0xe2)]={}),this[_0x153324(0x169)]['stroke'][_0x153324(0x12e)]=_0x518936,this;}['setStrokeLineCapType'](_0x21101f){const _0x5530b0=_0x104934;return this[_0x5530b0(0x169)][_0x5530b0(0xe2)]||(this[_0x5530b0(0x169)]['stroke']={}),this['shapeData'][_0x5530b0(0xe2)][_0x5530b0(0x153)]=_0x21101f,this;}['setStrokeOpacity'](_0xeba6dd){const _0x453cb7=_0x104934;return this['shapeData']['stroke']||(this[_0x453cb7(0x169)][_0x453cb7(0xe2)]={}),this[_0x453cb7(0x169)][_0x453cb7(0xe2)]['opacity']=_0xeba6dd,this;}[_0x104934(0xde)](_0x21b526){const _0x231b04=_0x104934;return this[_0x231b04(0x169)][_0x231b04(0xe2)]||(this[_0x231b04(0x169)][_0x231b04(0xe2)]={}),this['shapeData']['stroke'][_0x231b04(0x15a)]=_0x21b526,this;}[_0x104934(0x102)](_0x58d420){const _0x129e57=_0x104934;return this[_0x129e57(0x149)]=_0x58d420,this;}[_0x104934(0x124)](_0x568633){const _0x1f40b0=_0x104934;return this[_0x1f40b0(0x14d)]=_0x568633,this;}[_0x104934(0xe6)](){const _0x370a20=_0x104934;let _0x2f3af4=this['_injector'][_0x370a20(0x118)](n[_0x370a20(0x144)])['getShapeModel'](this[_0x370a20(0x127)],this[_0x370a20(0x10e)],this[_0x370a20(0xe5)]);return _0x2f3af4?(0x0,e['isConnectorShape'])(_0x2f3af4[_0x370a20(0x13a)]()):this[_0x370a20(0x136)]?(0x0,e[_0x370a20(0x160)])(this[_0x370a20(0x136)]):!0x1;}['getConnectionSites'](){const _0x5eda92=_0x104934;let _0x5903ff=this[_0x5eda92(0x128)][_0x5eda92(0x118)](n[_0x5eda92(0x144)])[_0x5eda92(0x12b)](this['unitId'],this[_0x5eda92(0x10e)],this[_0x5eda92(0xe5)]);if(!_0x5903ff)return[];let _0x3ea013=this[_0x5eda92(0x128)][_0x5eda92(0x118)](i['IDrawingManagerService'])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0x3ea013!=null&&_0x3ea013[_0x5eda92(0xe7)]))return[];let {width:_0x1e2692=0x0,height:_0x273e92=0x0}=_0x3ea013['transform'];return _0x5903ff[_0x5eda92(0xfa)]({'width':_0x1e2692,'height':_0x273e92}),_0x5903ff[_0x5eda92(0x105)]();}[_0x104934(0x15d)](){const _0x3ddf9c=_0x104934;let _0x4e4fcb=this[_0x3ddf9c(0x128)][_0x3ddf9c(0x118)](n['SheetsShapeService'])[_0x3ddf9c(0x12b)](this[_0x3ddf9c(0x127)],this[_0x3ddf9c(0x10e)],this[_0x3ddf9c(0xe5)]);if(!_0x4e4fcb)return[];let _0x3e450f=this[_0x3ddf9c(0x128)][_0x3ddf9c(0x118)](i[_0x3ddf9c(0x139)])[_0x3ddf9c(0x156)]({'unitId':this[_0x3ddf9c(0x127)],'subUnitId':this[_0x3ddf9c(0x10e)],'drawingId':this[_0x3ddf9c(0xe5)]});if(!(_0x3e450f!=null&&_0x3e450f['transform']))return[];let {width:_0x3aa546=0x0,height:_0xf256ca=0x0}=_0x3e450f[_0x3ddf9c(0xe7)];return _0x4e4fcb['updateContext']({'width':_0x3aa546,'height':_0xf256ca}),_0x4e4fcb[_0x3ddf9c(0x134)]();}[_0x104934(0x142)](){const _0x54fd6f=_0x104934;let _0x22fcd6=this[_0x54fd6f(0x128)][_0x54fd6f(0x118)](n['SheetsShapeService'])[_0x54fd6f(0x12b)](this[_0x54fd6f(0x127)],this['subUnitId'],this[_0x54fd6f(0xe5)]);if(!_0x22fcd6||!(0x0,e[_0x54fd6f(0x160)])(_0x22fcd6['getShapeType']()))return[];let _0x30473f=this[_0x54fd6f(0x128)][_0x54fd6f(0x118)](i[_0x54fd6f(0x139)])[_0x54fd6f(0x156)]({'unitId':this['unitId'],'subUnitId':this[_0x54fd6f(0x10e)],'drawingId':this[_0x54fd6f(0xe5)]});if(!(_0x30473f!=null&&_0x30473f[_0x54fd6f(0xe7)]))return[];let {width:_0x383a12=0x0,height:_0x1ed6cb=0x0}=_0x30473f[_0x54fd6f(0xe7)];return _0x22fcd6['updateContext']({'width':_0x383a12,'height':_0x1ed6cb}),_0x22fcd6['getConnectorLinePoints']();}[_0x104934(0x109)](){const _0xdcc744=_0x104934;var _0x1adbc5;let _0x416f34=this[_0xdcc744(0x128)][_0xdcc744(0x118)](n[_0xdcc744(0x144)])[_0xdcc744(0x12b)](this[_0xdcc744(0x127)],this['subUnitId'],this[_0xdcc744(0xe5)]);return _0x416f34?(_0x1adbc5=_0x416f34['getStartConnectInfo']())==null?null:_0x1adbc5:null;}[_0x104934(0x108)](){const _0x5d36e8=_0x104934;var _0x38ead4;let _0x1f648c=this[_0x5d36e8(0x128)][_0x5d36e8(0x118)](n[_0x5d36e8(0x144)])[_0x5d36e8(0x12b)](this[_0x5d36e8(0x127)],this[_0x5d36e8(0x10e)],this[_0x5d36e8(0xe5)]);return _0x1f648c?(_0x38ead4=_0x1f648c['getEndConnectInfo']())==null?null:_0x38ead4:null;}[_0x104934(0x137)](){const _0x2f75f8=_0x104934;var _0x3aaed0,_0x28d3d0;if(!this[_0x2f75f8(0x136)])throw Error(_0x2f75f8(0x13b));if(this['x']===0x0||this['y']===0x0){let _0x13cf47=this[_0x2f75f8(0x128)]['get'](a[_0x2f75f8(0xf3)])['ensureSkeleton'](this[_0x2f75f8(0x127)],this[_0x2f75f8(0x10e)]);if(!_0x13cf47)throw Error(_0x2f75f8(0xe4)+this['unitId']+_0x2f75f8(0x10d)+this['subUnitId']+_0x2f75f8(0xee));let {transform:_0x46cc7f}=(0x0,a['convertPositionCellToSheetOverGrid'])(this[_0x2f75f8(0x127)],this[_0x2f75f8(0x10e)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x13cf47);this['x']=this['x']>0x0?this['x']:_0x46cc7f[_0x2f75f8(0x111)],this['y']=this['y']>0x0?this['y']:_0x46cc7f[_0x2f75f8(0x157)];}return this[_0x2f75f8(0x149)]=(_0x3aaed0=this[_0x2f75f8(0x149)])==null?n['DEFAULT_SHAPE_WIDTH']:_0x3aaed0,this['height']=(_0x28d3d0=this[_0x2f75f8(0x14d)])==null?n[_0x2f75f8(0x110)]:_0x28d3d0,{'unitId':this[_0x2f75f8(0x127)],'subUnitId':this['subUnitId'],'shapeId':this[_0x2f75f8(0xe5)],'shapeType':this[_0x2f75f8(0x136)],'shapeData':Object[_0x2f75f8(0x12f)](this[_0x2f75f8(0x169)])[_0x2f75f8(0x135)]>0x0?this[_0x2f75f8(0x169)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x2f75f8(0x149)],'height':this['height']};}[_0x104934(0x104)](){const _0x556b58=_0x104934;return this[_0x556b58(0xe5)];}[_0x104934(0x13a)](){const _0x1e0d6a=_0x104934;return this[_0x1e0d6a(0x136)];}[_0x104934(0xe9)](){const _0x119e76=_0x104934;return this[_0x119e76(0x169)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x104934(0x170)](){const _0x539611=_0x104934;return{'width':this[_0x539611(0x149)],'height':this['height']};}},m=class extends p{constructor(_0x281074,_0x598f20,_0x3f83d5,_0x1e3955){const _0x139937=_0x104934;super(_0x281074,_0x598f20,_0x3f83d5,_0x1e3955),f(this,_0x139937(0x169),{});}[_0x104934(0xd9)](_0x32759d){const _0x255dd3=_0x104934;if(!(0x0,e[_0x255dd3(0x160)])(_0x32759d))throw Error(_0x255dd3(0x14a)+_0x32759d+_0x255dd3(0x125));return super[_0x255dd3(0xd9)](_0x32759d),this;}['setStartArrowType'](_0x334211){const _0x67f875=_0x104934;var _0x22c2b2,_0x1f3977;return(_0x22c2b2=this['shapeData'])!=null&&_0x22c2b2['ln']||(this[_0x67f875(0x169)]['ln']={}),!((_0x1f3977=this[_0x67f875(0x169)])==null||(_0x1f3977=_0x1f3977['ln'])==null)&&_0x1f3977[_0x67f875(0x171)]||(this['shapeData']['ln'][_0x67f875(0x171)]={}),this[_0x67f875(0x169)]['ln']['startArrow']['type']=_0x334211,this;}[_0x104934(0xe1)](_0x2d3bf3){const _0x5e163e=_0x104934;var _0x449582,_0x4e7865;return(_0x449582=this[_0x5e163e(0x169)])!=null&&_0x449582['ln']||(this[_0x5e163e(0x169)]['ln']={}),!((_0x4e7865=this[_0x5e163e(0x169)])==null||(_0x4e7865=_0x4e7865['ln'])==null)&&_0x4e7865[_0x5e163e(0x166)]||(this[_0x5e163e(0x169)]['ln'][_0x5e163e(0x166)]={}),this['shapeData']['ln'][_0x5e163e(0x166)][_0x5e163e(0xdd)]=_0x2d3bf3,this;}[_0x104934(0x143)](_0x59f1ff){const _0x5dffe1=_0x104934;var _0x3ef6a1,_0x224fa8;return(_0x3ef6a1=this['shapeData'])!=null&&_0x3ef6a1['ln']||(this[_0x5dffe1(0x169)]['ln']={}),!((_0x224fa8=this['shapeData'])==null||(_0x224fa8=_0x224fa8['ln'])==null)&&_0x224fa8['startArrow']||(this[_0x5dffe1(0x169)]['ln']['startArrow']={}),this['shapeData']['ln'][_0x5dffe1(0x171)][_0x5dffe1(0xfb)]=_0x59f1ff,this;}[_0x104934(0xf4)](_0x37b318){const _0x8a5770=_0x104934;var _0xf722f7,_0x36f251;return(_0xf722f7=this['shapeData'])!=null&&_0xf722f7['ln']||(this[_0x8a5770(0x169)]['ln']={}),!((_0x36f251=this[_0x8a5770(0x169)])==null||(_0x36f251=_0x36f251['ln'])==null)&&_0x36f251[_0x8a5770(0x166)]||(this[_0x8a5770(0x169)]['ln'][_0x8a5770(0x166)]={}),this['shapeData']['ln'][_0x8a5770(0x166)]['size']=_0x37b318,this;}[_0x104934(0x137)](){const _0x40c17f=_0x104934;return super[_0x40c17f(0x137)]();}[_0x104934(0x108)](){const _0x3c5e31=_0x104934;var _0x141cb9;return((_0x141cb9=this['shapeData'])==null||(_0x141cb9=_0x141cb9[_0x3c5e31(0x115)])==null?void 0x0:_0x141cb9['to'])||null;}[_0x104934(0x109)](){const _0x5510b4=_0x104934;var _0x914350;return((_0x914350=this[_0x5510b4(0x169)])==null||(_0x914350=_0x914350['relation'])==null?void 0x0:_0x914350[_0x5510b4(0x11e)])||null;}};function h(_0x3d8388,_0x81add1,_0x28b2eb,_0x404e66,_0xd65c15,_0x1adeaa){const _0x39dbf4=_0x104934;let _0x283da7=_0xd65c15['getShapeModel'](_0x3d8388,_0x81add1,_0x28b2eb);if(!_0x283da7)return null;let _0x3c8886=_0x1adeaa[_0x39dbf4(0x156)]({'unitId':_0x3d8388,'subUnitId':_0x81add1,'drawingId':_0x28b2eb});if(!(_0x3c8886!=null&&_0x3c8886['transform']))return null;let {left:_0x382d37=0x0,top:_0x30d4bf=0x0,width:_0x31a634=0x0,height:_0x440f90=0x0,flipX:_0x401796=!0x1,flipY:_0x4730a3=!0x1,angle:_0x33d41c}=_0x3c8886[_0x39dbf4(0xe7)];_0x283da7[_0x39dbf4(0xfa)]({'width':_0x31a634,'height':_0x440f90});let _0x1aed0d=_0x283da7[_0x39dbf4(0x105)]()[_0x39dbf4(0x16c)](_0x54ad75=>_0x54ad75['index']===_0x404e66);if(!_0x1aed0d)return null;let _0x3ea51c=_0x401796?_0x31a634-_0x1aed0d['x']:_0x1aed0d['x'],_0x4f5420=_0x4730a3?_0x440f90-_0x1aed0d['y']:_0x1aed0d['y'];if(_0x33d41c&&_0x33d41c!==0x0){let _0x36eeda=_0x33d41c*Math['PI']/0xb4,_0x3fa36c=Math['cos'](_0x36eeda),_0x9a7e62=Math[_0x39dbf4(0x10f)](_0x36eeda),_0x3ac352=_0x31a634/0x2,_0x11a65c=_0x440f90/0x2,_0xb811f3=_0x3ea51c-_0x3ac352,_0x53bce6=_0x4f5420-_0x11a65c;_0x3ea51c=_0x3ac352+_0xb811f3*_0x3fa36c-_0x53bce6*_0x9a7e62,_0x4f5420=_0x11a65c+_0xb811f3*_0x9a7e62+_0x53bce6*_0x3fa36c;}_0x3ea51c+=_0x382d37,_0x4f5420+=_0x30d4bf;let _0x565f05=_0x1aed0d[_0x39dbf4(0x14c)]/0xea60;_0x401796&&(_0x565f05=0xb4-_0x565f05),_0x4730a3&&(_0x565f05=-_0x565f05),_0x565f05+=_0x33d41c||0x0,_0x565f05=(_0x565f05%0x168+0x168)%0x168;let _0x55e3af=(0x0,e[_0x39dbf4(0x159)])({'left':_0x382d37,'top':_0x30d4bf,'width':_0x31a634,'height':_0x440f90},_0x33d41c||0x0);return{'point':{'x':_0x3ea51c,'y':_0x4f5420},'angle':_0x565f05,'bounds':_0x55e3af};}function g(_0x1eb9d6,_0xc30834){const _0x5dc8fe=_0x104934;let _0xa46113=_0xc30834['x']-_0x1eb9d6['x'],_0x461014=_0xc30834['y']-_0x1eb9d6['y'];return Math['abs'](_0xa46113)>=Math[_0x5dc8fe(0xf0)](_0x461014)?_0xa46113>=0x0?0xb4:0x0:_0x461014>=0x0?0x10e:0x5a;}function _0x1c67(){const _0x5903cb=['left','18bwnSFK','getAdjustValueByName','getUnitId','relation','getSheetId','ShapeFillEnum','get','FWorksheet','gradientStops','ShapeLineJoinEnum','call','gradientType','from','setStrokeWidth','color','shapeId','ShapeGradientTypeEnum','4143440LYWpwe','setHeight',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','updateShape','unitId','_injector','computeConnectorRouteLayout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeModel','Module','flipY','lineJoinType','keys','iterator','GradientFill','NoFill','getAdjustNames','getDrawingPoints','length','shapeType','build','getShapes','IDrawingManagerService','getShapeType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','_resolveEndpoints','getShapeRelation','push','ShapeLineCapEnum','157137zcIIFc','20TWfkTf','getConnectorLinePoints','setStartArrowSize','SheetsShapeService','_preloadShapeProperties','_resolveExistingOrFreeEndpoint','FShape','ensureSkeleton','width','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','setPosition','ang','height','generateRandomId','DrawingTypeEnum','886360irZnhD','SolidFil','newConnector','capType','constructor','DEFAULT_SHAPE_WIDTH','getDrawingByParam','top','function','getBasicShapeRotateBound','lineStrokeType','fillType','stringify','getAdjustPoints','RemoveSheetDrawingCommand','parse','isConnectorShape','toStringTag','FEnum','string','lineType','9625914HqQOgq','endArrow','shape','ShapeLineDashEnum','shapeData','prototype','worldRect','find','setStrokeLineJoinType','InsertShapeCommand','dashType','getSize','startArrow','executeCommand','drawingType','ConnectorCoordinateTransform','setShapeType','UpdateConnectorRelationCommand','4775498hckvLI','localToWorld','type','setStrokeLineType','defineProperty','entries','setEndArrowType','stroke','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','Skeleton\x20for\x20unitId\x20','drawId','isLineShape','transform','DRAWING_SHAPE','getShapeData','getWorkbook','ShapeArrowTypeEnum','fill','symbol','\x20not\x20found','cxnIndex','abs','_commandService','setStrokeColor','SheetSkeletonService','setEndArrowSize','2218442ZnvvGu','flipX','removeShape','getDrawingData','SetShapeDrawingDataCommand','updateContext','size','extend','setStrokeLineDashType','newShape','596509SAesMu','point','object','setWidth','toPrimitive','getShapeId','getConnectionSiteList','ShapeLineTypeEnum','connectionSiteIndex','getEndConnectInfo','getStartConnectInfo','ShapeTypeEnum','convertPositionCellToSheetOverGrid','FConnectorShape','\x20and\x20subUnitId\x20','subUnitId','sin','DEFAULT_SHAPE_HEIGHT'];_0x1c67=function(){return _0x5903cb;};return _0x1c67();}function _(_0x31550d,_0x2f6d52,_0xf7bdc,_0x4d8fb6,_0x8ec45b,_0x5a2bda,_0x3a6044){const _0x2e20ac=_0x104934;let _0x43f8b2=_0x5a2bda[_0x2e20ac(0x12b)](_0x31550d,_0x2f6d52,_0xf7bdc);if(!_0x43f8b2)return null;let _0x2f68e5=_0x3a6044['getDrawingByParam']({'unitId':_0x31550d,'subUnitId':_0x2f6d52,'drawingId':_0xf7bdc});if(!(_0x2f68e5!=null&&_0x2f68e5[_0x2e20ac(0xe7)]))return null;let {left:_0xc812d0=0x0,top:_0x1e58d2=0x0,width:_0x5bddc8=0x0,height:_0x3b52cb=0x0,flipX:_0xd00cb=!0x1,flipY:_0x45d5f1=!0x1}=_0x2f68e5[_0x2e20ac(0xe7)];_0x43f8b2['updateContext']({'width':_0x5bddc8,'height':_0x3b52cb});let _0x13d703=_0x43f8b2[_0x2e20ac(0x142)]();if(_0x13d703[_0x2e20ac(0x135)]<0x2)return null;let _0x4df868=_0x4d8fb6?_0x13d703[0x0]:_0x13d703[_0x13d703[_0x2e20ac(0x135)]-0x1],_0x2a02b3=new e[(_0x2e20ac(0x174))]({'left':_0xc812d0,'top':_0x1e58d2,'width':_0x5bddc8,'height':_0x3b52cb,'flipX':_0xd00cb,'flipY':_0x45d5f1})[_0x2e20ac(0xdc)](_0x4df868);return{'point':_0x2a02b3,'angle':g(_0x8ec45b[_0x2e20ac(0x100)],_0x2a02b3),'bounds':{'left':_0x2a02b3['x'],'top':_0x2a02b3['y'],'width':0x0,'height':0x0}};}var v=class extends s[_0x104934(0x119)]{async['insertShape'](_0x5c67e0){const _0x545647=_0x104934;let {unitId:_0x2ce181,subUnitId:_0x4368b2,shapeId:_0x5b3063,shapeType:_0x11701b,shapeData:_0x4142e9,x:_0x3a61fc,y:_0x3bbb87,width:_0x33d940,height:_0x48534f}=_0x5c67e0;return this[_0x545647(0xf1)][_0x545647(0x172)](n[_0x545647(0x16e)]['id'],{'unitId':_0x2ce181,'subUnitId':_0x4368b2,'shapeId':_0x5b3063,'shapeType':_0x11701b,'shapeData':_0x4142e9,'position':{'x':_0x3a61fc,'y':_0x3bbb87},'width':_0x33d940,'height':_0x48534f});}async[_0x104934(0x126)](_0x5c97d7){const _0x4f88dc=_0x104934;let {unitId:_0x481515,subUnitId:_0x1b623a,shapeId:_0x209b59,shapeType:_0x3aa762,shapeData:_0x28316f,x:_0x5ea6a6,y:_0x17a365,width:_0x50eab4,height:_0x72496c}=_0x5c97d7;return this['_commandService']['executeCommand'](n[_0x4f88dc(0xf9)]['id'],{'unitId':_0x481515,'subUnitId':_0x1b623a,'shapeId':_0x209b59,'shapeType':_0x3aa762,'shapeData':_0x28316f,'position':{'x':_0x5ea6a6,'y':_0x17a365},'width':_0x50eab4,'height':_0x72496c});}[_0x104934(0xfe)](_0x43c8d3){const _0x1ed32a=_0x104934;let _0x25199d=this[_0x1ed32a(0xea)]()[_0x1ed32a(0x114)](),_0x5f4143=this[_0x1ed32a(0x116)]();if(_0x43c8d3){let _0x187e97=new p(_0x25199d,_0x5f4143,_0x43c8d3[_0x1ed32a(0xe5)],this[_0x1ed32a(0x128)]);return this[_0x1ed32a(0x145)](_0x187e97,_0x25199d,_0x5f4143,_0x43c8d3[_0x1ed32a(0xe5)]),_0x187e97;}return new p(_0x25199d,_0x5f4143,(0x0,r[_0x1ed32a(0x14e)])(),this[_0x1ed32a(0x128)]);}[_0x104934(0x152)](_0x3f5711){const _0x3732e3=_0x104934;let _0x4f8ceb=this[_0x3732e3(0xea)]()[_0x3732e3(0x114)](),_0x290012=this['getSheetId']();if(_0x3f5711){let _0x55ad97=new m(_0x4f8ceb,_0x290012,_0x3f5711[_0x3732e3(0xe5)],this[_0x3732e3(0x128)]);return this['_preloadShapeProperties'](_0x55ad97,_0x4f8ceb,_0x290012,_0x3f5711[_0x3732e3(0xe5)]),_0x55ad97;}return new m(_0x4f8ceb,_0x290012,(0x0,r[_0x3732e3(0x14e)])(),this[_0x3732e3(0x128)]);}[_0x104934(0x138)](){const _0x4249c4=_0x104934;let _0x31c3d7=this[_0x4249c4(0x128)]['get'](o['ISheetDrawingService']),_0x329418=this[_0x4249c4(0xea)]()['getUnitId'](),_0x5e478e=this[_0x4249c4(0x116)](),_0x3f9f02=_0x31c3d7[_0x4249c4(0xf8)](_0x329418,_0x5e478e);if(!_0x3f9f02)return[];let _0x4e017d=[];for(let [_0x4f55c4,_0x1d6b8a]of Object[_0x4249c4(0xe0)](_0x3f9f02))if(_0x1d6b8a&&_0x1d6b8a[_0x4249c4(0x173)]===r[_0x4249c4(0x14f)][_0x4249c4(0xe8)]){let _0x3643c4=new p(_0x329418,_0x5e478e,_0x4f55c4,this['_injector']);this[_0x4249c4(0x145)](_0x3643c4,_0x329418,_0x5e478e,_0x4f55c4),_0x4e017d[_0x4249c4(0x13e)](_0x3643c4);}return _0x4e017d;}[_0x104934(0xf7)](_0x449539){const _0x13b17c=_0x104934;let {unitId:_0x2a8b7d,subUnitId:_0x5b039d,drawId:_0x173bfc}=_0x449539;return this[_0x13b17c(0xf1)]['executeCommand'](o[_0x13b17c(0x15e)]['id'],{'unitId':_0x2a8b7d,'drawings':[{'unitId':_0x2a8b7d,'subUnitId':_0x5b039d,'drawingId':_0x173bfc,'drawingType':r[_0x13b17c(0x14f)][_0x13b17c(0xe8)]}]});}async['connectShapes'](_0x5a43cb){const _0x2e7c0c=_0x104934;let {connector:_0x24e42c,startTarget:_0x6cf3b0,endTarget:_0x16dc13}=_0x5a43cb;if(!_0x6cf3b0&&!_0x16dc13)return!0x1;let _0x533e2b=this[_0x2e7c0c(0xea)]()[_0x2e7c0c(0x114)](),_0x44c489=this[_0x2e7c0c(0x116)](),_0x41dbee=this[_0x2e7c0c(0x128)][_0x2e7c0c(0x118)](n['SheetsShapeService']),_0x1b4fbc=this[_0x2e7c0c(0x128)]['get'](i[_0x2e7c0c(0x139)]),_0x291adc=_0x41dbee['getShapeModel'](_0x533e2b,_0x44c489,_0x24e42c['drawId']);if(!_0x291adc)return!0x1;let _0xe13285=_0x291adc['getShapeType'](),_0x50604f=_0x291adc[_0x2e7c0c(0x13d)](),_0x11a384={};for(let _0x166d19 of _0x291adc[_0x2e7c0c(0x133)]()){let _0x3359e0=_0x291adc[_0x2e7c0c(0x113)](_0x166d19);_0x3359e0!==void 0x0&&(_0x11a384[_0x166d19]=_0x3359e0);}let {startInfo:_0x52a552,endInfo:_0x5db626}=this['_resolveEndpoints'](_0x533e2b,_0x44c489,_0x24e42c,_0x291adc,_0x6cf3b0,_0x16dc13,_0x41dbee,_0x1b4fbc,_0x50604f);if(!_0x52a552||!_0x5db626)return!0x1;let _0x2f6fc3=(0x0,e[_0x2e7c0c(0x129)])((0x0,e['routeConnectorLineShape'])(_0x52a552,_0x5db626,_0xe13285),_0xe13285),_0x125c22={};return _0x6cf3b0?_0x125c22['from']={'shapeId':_0x6cf3b0[_0x2e7c0c(0x167)][_0x2e7c0c(0xe5)],'cxnIndex':_0x6cf3b0[_0x2e7c0c(0x107)]}:_0x50604f!=null&&_0x50604f[_0x2e7c0c(0x11e)]&&(_0x125c22['from']=_0x50604f['from']),_0x16dc13?_0x125c22['to']={'shapeId':_0x16dc13['shape'][_0x2e7c0c(0xe5)],'cxnIndex':_0x16dc13[_0x2e7c0c(0x107)]}:_0x50604f!=null&&_0x50604f['to']&&(_0x125c22['to']=_0x50604f['to']),this['_commandService'][_0x2e7c0c(0x172)](n[_0x2e7c0c(0xda)]['id'],{'unitId':_0x533e2b,'subUnitId':_0x44c489,'connectorShapeId':_0x24e42c[_0x2e7c0c(0xe5)],'width':_0x2f6fc3[_0x2e7c0c(0x16b)][_0x2e7c0c(0x149)],'height':_0x2f6fc3['worldRect'][_0x2e7c0c(0x14d)],'left':_0x2f6fc3[_0x2e7c0c(0x16b)][_0x2e7c0c(0x111)],'top':_0x2f6fc3[_0x2e7c0c(0x16b)][_0x2e7c0c(0x157)],'flipX':_0x2f6fc3[_0x2e7c0c(0x16b)][_0x2e7c0c(0xf6)]||!0x1,'flipY':_0x2f6fc3['worldRect'][_0x2e7c0c(0x12d)]||!0x1,'oldAdjustValues':_0x11a384,'newAdjustValues':_0x2f6fc3['adjustValues'],'newLineType':_0x2f6fc3[_0x2e7c0c(0x164)],'oldLineType':_0xe13285,'rotation':_0x2f6fc3['rotation'],'oldRelation':_0x50604f,'newRelation':_0x125c22});}['_preloadShapeProperties'](_0x4103af,_0x1ac5f2,_0x21c6f5,_0x1e8c30){const _0x4ee62a=_0x104934;let _0x3160a0=this[_0x4ee62a(0x128)][_0x4ee62a(0x118)](i['IDrawingManagerService'])[_0x4ee62a(0x156)]({'unitId':_0x1ac5f2,'subUnitId':_0x21c6f5,'drawingId':_0x1e8c30});if(_0x3160a0!=null&&_0x3160a0[_0x4ee62a(0xe7)]){var _0x33ca78,_0x1d1ec5,_0x4c7747,_0x36279b;_0x4103af['x']=(_0x33ca78=_0x3160a0['transform'][_0x4ee62a(0x111)])==null?0x0:_0x33ca78,_0x4103af['y']=(_0x1d1ec5=_0x3160a0[_0x4ee62a(0xe7)][_0x4ee62a(0x157)])==null?0x0:_0x1d1ec5,_0x4103af[_0x4ee62a(0x149)]=(_0x4c7747=_0x3160a0['transform']['width'])==null?_0x4103af[_0x4ee62a(0x149)]:_0x4c7747,_0x4103af[_0x4ee62a(0x14d)]=(_0x36279b=_0x3160a0[_0x4ee62a(0xe7)][_0x4ee62a(0x14d)])==null?_0x4103af['height']:_0x36279b;}let _0x3b9298=this[_0x4ee62a(0x128)][_0x4ee62a(0x118)](n[_0x4ee62a(0x144)])['getShapeModel'](_0x1ac5f2,_0x21c6f5,_0x1e8c30);if(_0x3b9298){_0x4103af[_0x4ee62a(0x136)]=_0x3b9298[_0x4ee62a(0x13a)]();let _0x29141f=_0x3b9298[_0x4ee62a(0xe9)]();_0x29141f&&(_0x4103af[_0x4ee62a(0x169)]=JSON[_0x4ee62a(0x15f)](JSON[_0x4ee62a(0x15c)](_0x29141f)));}}[_0x104934(0x13c)](_0xa3dcec,_0x17d583,_0x3e609a,_0x49d344,_0x408b50,_0x10f53c,_0x37ee53,_0x196424,_0x24f4d0){const _0x562feb=_0x104934;let _0x38d934=null,_0x537ddf=null;return _0x408b50&&(_0x38d934=h(_0xa3dcec,_0x17d583,_0x408b50[_0x562feb(0x167)][_0x562feb(0xe5)],_0x408b50['connectionSiteIndex'],_0x37ee53,_0x196424)),_0x10f53c&&(_0x537ddf=h(_0xa3dcec,_0x17d583,_0x10f53c[_0x562feb(0x167)][_0x562feb(0xe5)],_0x10f53c[_0x562feb(0x107)],_0x37ee53,_0x196424)),_0x38d934||(_0x38d934=this[_0x562feb(0x146)](_0xa3dcec,_0x17d583,_0x3e609a[_0x562feb(0xe5)],!0x0,_0x537ddf,_0x24f4d0==null?void 0x0:_0x24f4d0['from'],_0x37ee53,_0x196424)),_0x537ddf||(_0x537ddf=this['_resolveExistingOrFreeEndpoint'](_0xa3dcec,_0x17d583,_0x3e609a[_0x562feb(0xe5)],!0x1,_0x38d934,_0x24f4d0==null?void 0x0:_0x24f4d0['to'],_0x37ee53,_0x196424)),{'startInfo':_0x38d934,'endInfo':_0x537ddf};}[_0x104934(0x146)](_0x4a3b1f,_0x13635f,_0x3f99f5,_0x54c864,_0x18a643,_0x2e857a,_0x4f3319,_0x332ccb){const _0x190651=_0x104934;if(_0x2e857a){let _0x559ca6=h(_0x4a3b1f,_0x13635f,_0x2e857a[_0x190651(0x121)],_0x2e857a[_0x190651(0xef)],_0x4f3319,_0x332ccb);if(_0x559ca6)return _0x559ca6;}return _0x18a643?_(_0x4a3b1f,_0x13635f,_0x3f99f5,_0x54c864,_0x18a643,_0x4f3319,_0x332ccb):null;}};function _0x4448(_0x24e2c4,_0xc33e30){_0x24e2c4=_0x24e2c4-0xd9;const _0x1c67eb=_0x1c67();let _0x4448ee=_0x1c67eb[_0x24e2c4];return _0x4448ee;}s[_0x104934(0x119)][_0x104934(0xfc)](v),exports[_0x104934(0x10c)]=m,exports[_0x104934(0x147)]=p;
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;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x11106f=_0x25d2;function _0x5bf7(){const _0x231db9=['forEach','routeConnectorLineShape','_resourcesManagerService','resizeEnabled','sheet.mutation.remove-shape','getAdjustNames','transformToAxisAlignPosition','registerCommand','startY','filter','getSkeleton','width','worldRect','function','_ensureShapeModelManager','CommandType','set','onCommandExecute','_addLineRerouteUpdates','call','borderEnabled','UpdateSheetsShapeDataMutation','registerPluginResource','Plugin','height','_injector','getDrawingByParam','getBatchAddOp','sheet.mutation.update-shape-type','removeShape','4YGwzHZ','getLineShapeRelation','ShapeModel','DrawingApplyType','UniverInstanceType','syncExecuteCommand','default','touchDependencies','sequenceExecute','_configService','getConnectionSiteList','prototype','@univerjs-pro/sheets-shape','_disposed','getStartConnectInfo','transformToDrawingPosition','sheet.command.toggle-shape-flip','3380330CUbGeb','sin','delete','_initCommandInterceptor','left','InsertShapeCommand','range','parse','pluginName','_shapeModelManagerMap','toStringTag','preUndos','drawingType','DependentOn','REMOVE','getBasicShapeRelation','constructor','rotateEnabled','startX','cxnIndex','IResourceManagerService','getAdjustValueByName','getDrawingData','ICommandService','clear','toPrimitive','getShapeDataById','_config','_sheetSkeletonService','887802LJiVUe','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','rotation','DEFAULT_SHAPE_HEIGHT','getBatchUpdateOp','_initCommands','length','sheet.mutation.insert-shape','merge','computeConnectorRouteLayout','hasShape','sheet.mutation.update-shape-data','iterator','top','_sheetsShapeService','SetShapeDrawingDataCommand','redos','transform','DrawingTypeEnum','DRAWING_SHAPE','getShapeModel','sheet.command.update-shape-type','_deserializeShapeForUnit','200Jchjcn','updateContext','lineShapeId','_drawingManagerService','6150347iMiLGc','sheet.command.set-shape-drawing-data','getCellWithCoordByIndex','isConnectorShape','Inject','pushUndoRedo','entries','IUndoRedoService','data','setShapeType','_shapes','addShape','keys','SetSheetsShapeRotateCommand','onStarting','preRedos','from','defineProperty','ISheetDrawingService','_commandService','InsertSheetsShapeMutation','UPDATE','_addLineFollowShapeUpdates','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','shapeId','_sheetInterceptorService','_groupIds','getShapeType','DEFAULT_SHAPE_WIDTH','ClearSheetDrawingTransformerOperation','sheet.command.set-shape-rotate','stringify','type','flipX','getBasicShapeType','UpdateSheetsShapeTypeMutation','IUniverInstanceService','getEndConnectInfo','SetDrawingApplyMutation','6msKmka','undos','setShapeData','IDrawingManagerService','find','isFrom','add','assign','params','getShapeRelation','ang','_initSnapshot','315391bTAzrL','push','adjustValues','Disposable','SheetSkeletonService','getSheetCommandTarget','_linesIds','ensureSkeleton','decorate','index','SheetInterceptorService','generateRandomId','3642120RQCOyc','MUTATION','disposeWithMe','interceptCommand','UpdateConnectorRelationCommand','flipY','459135xYKKwM','get','sheet.command.update-line-shape-resize','angle','sheet.command.insert-shape','_getConnectPointInfo','InsertSheetDrawingCommand','UNIVER_SHEET','fill','COMMAND','getShapeData','getBasicShapeRotateBound','getCellIndexAndOffsetByPosition','relation','setConfig','lineType','_serializeShapeForUnit','RemoveSheetsShapeMutation','object','position','SetSheetDrawingCommand','0.20.1','dispose','2001561hbSmrT','ToggleSheetsShapeFlipCommand','toJSON','symbol','insertShape','sheet.command.update-connector-relation','every','fromJSON','UniverSheetsShapePlugin','getOwnPropertyDescriptor'];_0x5bf7=function(){return _0x231db9;};return _0x5bf7();}(function(_0x5904e3,_0x55cb3f){const _0x2ed8e0=_0x25d2,_0x3b0d77=_0x5904e3();while(!![]){try{const _0x1bd23b=-parseInt(_0x2ed8e0(0x175))/0x1+parseInt(_0x2ed8e0(0x127))/0x2+-parseInt(_0x2ed8e0(0x19e))/0x3+parseInt(_0x2ed8e0(0x1c6))/0x4*(parseInt(_0x2ed8e0(0x1d7))/0x5)+parseInt(_0x2ed8e0(0x169))/0x6*(parseInt(_0x2ed8e0(0x142))/0x7)+parseInt(_0x2ed8e0(0x181))/0x8+-parseInt(_0x2ed8e0(0x187))/0x9*(parseInt(_0x2ed8e0(0x13e))/0xa);if(_0x1bd23b===_0x55cb3f)break;else _0x3b0d77['push'](_0x3b0d77['shift']());}catch(_0x20342e){_0x3b0d77['push'](_0x3b0d77['shift']());}}}(_0x5bf7,0x6e19f),Object[_0x11106f(0x153)](exports,Symbol[_0x11106f(0x1e1)],{'value':'Module'}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core`),n=require(`@univerjs/sheets`),r=require(`@univerjs/sheets-drawing`),i=require(`@univerjs-pro/license`),a=require(`@univerjs/drawing`);function o(_0x5bf2ad){'@babel/helpers - typeof';const _0x32c083=_0x11106f;return o=typeof Symbol==_0x32c083(0x1b5)&&typeof Symbol[_0x32c083(0x133)]=='symbol'?function(_0x3f0d43){return typeof _0x3f0d43;}:function(_0x28bdb0){const _0x3bb7bb=_0x32c083;return _0x28bdb0&&typeof Symbol==_0x3bb7bb(0x1b5)&&_0x28bdb0[_0x3bb7bb(0x1e7)]===Symbol&&_0x28bdb0!==Symbol[_0x3bb7bb(0x1d1)]?_0x3bb7bb(0x1a1):typeof _0x28bdb0;},o(_0x5bf2ad);}function s(_0x5dba43,_0x5a54bc){const _0x41508=_0x11106f;if(o(_0x5dba43)!=_0x41508(0x199)||!_0x5dba43)return _0x5dba43;var _0x411844=_0x5dba43[Symbol[_0x41508(0x123)]];if(_0x411844!==void 0x0){var _0x4f8fec=_0x411844[_0x41508(0x1bb)](_0x5dba43,_0x5a54bc||_0x41508(0x1cc));if(o(_0x4f8fec)!=_0x41508(0x199))return _0x4f8fec;throw TypeError(_0x41508(0x159));}return(_0x5a54bc==='string'?String:Number)(_0x5dba43);}function c(_0x1e4c94){var _0x1ea024=s(_0x1e4c94,'string');return o(_0x1ea024)=='symbol'?_0x1ea024:_0x1ea024+'';}function l(_0x16a464,_0x4c24e4,_0x2c5c74){const _0x6f7da5=_0x11106f;return(_0x4c24e4=c(_0x4c24e4))in _0x16a464?Object[_0x6f7da5(0x153)](_0x16a464,_0x4c24e4,{'value':_0x2c5c74,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16a464[_0x4c24e4]=_0x2c5c74,_0x16a464;}var u=class extends t['Disposable']{constructor(){const _0x19e9d4=_0x11106f;super(),l(this,_0x19e9d4(0x14c),new Map()),l(this,_0x19e9d4(0x17b),new Set()),l(this,_0x19e9d4(0x15c),new Set());}[_0x11106f(0x14d)](_0x468962,_0x49e8a0,_0x39029c){const _0x1cec4e=_0x11106f;let _0x189223=new e[(_0x1cec4e(0x1c8))](_0x468962,_0x49e8a0,_0x39029c);return this[_0x1cec4e(0x14c)][_0x1cec4e(0x1b8)](_0x49e8a0,_0x189223),(0x0,e['isConnectorShape'])(_0x468962)&&this[_0x1cec4e(0x17b)][_0x1cec4e(0x16f)](_0x49e8a0),_0x189223;}['getBasicShapeRelation'](_0x426923){const _0x11ba4f=_0x11106f;let _0x278e78=[];for(let _0x51c7c5 of this[_0x11ba4f(0x17b)]){let _0x2d506e=this[_0x11ba4f(0x14c)]['get'](_0x51c7c5);if(_0x2d506e){let _0x4d405a=_0x2d506e[_0x11ba4f(0x172)]();if(_0x4d405a){var _0x3eacbd,_0x236ee0;((_0x3eacbd=_0x4d405a[_0x11ba4f(0x152)])==null?void 0x0:_0x3eacbd[_0x11ba4f(0x15a)])===_0x426923&&_0x278e78['push']({..._0x4d405a[_0x11ba4f(0x152)],'lineShapeId':_0x51c7c5,'isFrom':!0x0}),((_0x236ee0=_0x4d405a['to'])==null?void 0x0:_0x236ee0[_0x11ba4f(0x15a)])===_0x426923&&_0x278e78['push']({..._0x4d405a['to'],'lineShapeId':_0x51c7c5,'isFrom':!0x1});}}}return _0x278e78;}['getLineShapeRelation'](_0x238ba5){const _0x537044=_0x11106f;let _0x32bf21=this[_0x537044(0x14c)][_0x537044(0x188)](_0x238ba5);if(_0x32bf21)return _0x32bf21[_0x537044(0x172)]();}[_0x11106f(0x15d)](_0x2f5f01){const _0x418f6b=_0x11106f;let _0x1d3267=this['_shapes'][_0x418f6b(0x188)](_0x2f5f01);if(_0x1d3267)return _0x1d3267[_0x418f6b(0x15d)]();}[_0x11106f(0x131)](_0x3c32cb){const _0xa57c70=_0x11106f;return this[_0xa57c70(0x14c)]['has'](_0x3c32cb);}[_0x11106f(0x1c5)](_0x5d69b5){const _0x2a2e22=_0x11106f;let _0x51de0e=this['_shapes'][_0x2a2e22(0x188)](_0x5d69b5);_0x51de0e&&((0x0,e[_0x2a2e22(0x145)])(_0x51de0e[_0x2a2e22(0x15d)]())&&this[_0x2a2e22(0x17b)][_0x2a2e22(0x1d9)](_0x5d69b5),this[_0x2a2e22(0x14c)][_0x2a2e22(0x1d9)](_0x5d69b5));}[_0x11106f(0x1a0)](){const _0x219fe7=_0x11106f;let _0x4f59a1=[];return this[_0x219fe7(0x14c)][_0x219fe7(0x1a8)](_0x3616f9=>{const _0x213d9e=_0x219fe7;_0x4f59a1[_0x213d9e(0x176)](_0x3616f9[_0x213d9e(0x1a0)]());}),_0x4f59a1;}[_0x11106f(0x1a5)](_0x3553e9){const _0x1387fb=_0x11106f;for(let _0x5554b1 of _0x3553e9){let {id:_0x13c85f,shapeType:_0x20183e}=_0x5554b1,_0x518591=this[_0x1387fb(0x14d)](_0x20183e,_0x13c85f,_0x5554b1['shapeData']);_0x518591&&_0x518591['isLineShape']()&&this[_0x1387fb(0x17b)][_0x1387fb(0x16f)](_0x13c85f);}}[_0x11106f(0x19d)](){const _0xc8228d=_0x11106f;this[_0xc8228d(0x1d3)]||(this[_0xc8228d(0x14c)][_0xc8228d(0x1a8)](_0x5c0225=>{_0x5c0225['dispose']();}),this[_0xc8228d(0x14c)][_0xc8228d(0x122)](),this[_0xc8228d(0x17b)][_0xc8228d(0x122)](),this['_groupIds'][_0xc8228d(0x122)](),super[_0xc8228d(0x19d)]());}};function d(_0x27d454,_0x32c3bb){return function(_0x4828dd,_0x31cb2f){_0x32c3bb(_0x4828dd,_0x31cb2f,_0x27d454);};}function f(_0x211c5f,_0x1cbc5b,_0x494212,_0xe7f76f){const _0x5ac743=_0x11106f;var _0x2d449d=arguments[_0x5ac743(0x12d)],_0x1dde94=_0x2d449d<0x3?_0x1cbc5b:_0xe7f76f===null?_0xe7f76f=Object[_0x5ac743(0x1a7)](_0x1cbc5b,_0x494212):_0xe7f76f,_0x1cb74b;if(typeof Reflect==_0x5ac743(0x199)&&typeof Reflect[_0x5ac743(0x17d)]==_0x5ac743(0x1b5))_0x1dde94=Reflect[_0x5ac743(0x17d)](_0x211c5f,_0x1cbc5b,_0x494212,_0xe7f76f);else{for(var _0x14a999=_0x211c5f[_0x5ac743(0x12d)]-0x1;_0x14a999>=0x0;_0x14a999--)(_0x1cb74b=_0x211c5f[_0x14a999])&&(_0x1dde94=(_0x2d449d<0x3?_0x1cb74b(_0x1dde94):_0x2d449d>0x3?_0x1cb74b(_0x1cbc5b,_0x494212,_0x1dde94):_0x1cb74b(_0x1cbc5b,_0x494212))||_0x1dde94);}return _0x2d449d>0x3&&_0x1dde94&&Object[_0x5ac743(0x153)](_0x1cbc5b,_0x494212,_0x1dde94),_0x1dde94;}let p=class extends t[_0x11106f(0x178)]{constructor(_0x3c14ee){const _0x4ecd43=_0x11106f;super(),this[_0x4ecd43(0x1aa)]=_0x3c14ee,l(this,_0x4ecd43(0x1e0),new Map()),this[_0x4ecd43(0x174)]();}[_0x11106f(0x1b6)](_0x23ebd8,_0x5f502b){const _0x464092=_0x11106f;let _0x2c0333=this[_0x464092(0x1e0)]['get'](_0x23ebd8);_0x2c0333||(_0x2c0333=new Map(),this[_0x464092(0x1e0)][_0x464092(0x1b8)](_0x23ebd8,_0x2c0333));let _0x4913c9=_0x2c0333[_0x464092(0x188)](_0x5f502b);return _0x4913c9||(_0x4913c9=new u(),_0x2c0333['set'](_0x5f502b,_0x4913c9)),_0x4913c9;}[_0x11106f(0x1a2)](_0x26c2ae,_0x2c48f2,_0x159c4d,_0x12804f,_0x22663d){const _0x2d0e2f=_0x11106f;this[_0x2d0e2f(0x1b6)](_0x26c2ae,_0x2c48f2)['addShape'](_0x159c4d,_0x12804f,_0x22663d);}[_0x11106f(0x1c5)](_0x470cbc,_0xc13cbb,_0x2ebefd){const _0x2ec8b9=_0x11106f;this[_0x2ec8b9(0x1b6)](_0x470cbc,_0xc13cbb)[_0x2ec8b9(0x1c5)](_0x2ebefd);}[_0x11106f(0x164)](_0x51ce2c,_0x5f5332,_0x5327ad){const _0x8e1769=_0x11106f;return this[_0x8e1769(0x1b6)](_0x51ce2c,_0x5f5332)['getShapeType'](_0x5327ad);}['getShapeType'](_0x2199b8,_0x1af12d,_0x17ff9c){const _0x3f1ffb=_0x11106f;return this[_0x3f1ffb(0x1b6)](_0x2199b8,_0x1af12d)[_0x3f1ffb(0x15d)](_0x17ff9c);}[_0x11106f(0x131)](_0x1f2972,_0x44a259,_0x5a5a78){const _0x5ebf60=_0x11106f;return this[_0x5ebf60(0x1b6)](_0x1f2972,_0x44a259)['hasShape'](_0x5a5a78);}['getShapeTypeById'](_0x35de5b,_0x1282a7,_0x5cacb4){const _0x4597bc=_0x11106f;return this[_0x4597bc(0x1b6)](_0x35de5b,_0x1282a7)[_0x4597bc(0x15d)](_0x5cacb4);}[_0x11106f(0x124)](_0x3fed6f,_0x6b6f3c,_0x3fd1c6){const _0x4a3352=_0x11106f;let _0x4abae5=this[_0x4a3352(0x1b6)](_0x3fed6f,_0x6b6f3c);if(!_0x4abae5[_0x4a3352(0x15d)](_0x3fd1c6))return;let _0x8da306=_0x4abae5[_0x4a3352(0x14c)][_0x4a3352(0x188)](_0x3fd1c6);if(_0x8da306)return _0x8da306[_0x4a3352(0x191)]();}['getShapeModel'](_0x3b3d7e,_0x334454,_0x175155){const _0x1cf5fa=_0x11106f;return this['_ensureShapeModelManager'](_0x3b3d7e,_0x334454)[_0x1cf5fa(0x14c)][_0x1cf5fa(0x188)](_0x175155);}[_0x11106f(0x1e6)](_0x268660,_0x4b0850,_0x1e79e4){const _0x3620f2=_0x11106f;return this['_ensureShapeModelManager'](_0x268660,_0x4b0850)[_0x3620f2(0x1e6)](_0x1e79e4);}[_0x11106f(0x1c7)](_0x43a6d6,_0x1a2b69,_0x42ce89){const _0x8ebb30=_0x11106f;let _0x44be7=this[_0x8ebb30(0x1b6)](_0x43a6d6,_0x1a2b69)[_0x8ebb30(0x14c)]['get'](_0x42ce89);if(_0x44be7)return _0x44be7[_0x8ebb30(0x172)]();}['setShapeType'](){}[_0x11106f(0x197)](_0x201f84){const _0x40a0d6=_0x11106f;let _0x106c3e={},_0x40fe64=this[_0x40a0d6(0x1e0)]['get'](_0x201f84);return _0x40fe64&&_0x40fe64[_0x40a0d6(0x1a8)]((_0x5e4b91,_0x3245a9)=>{const _0x431001=_0x40a0d6;let _0x5777cc=_0x5e4b91[_0x431001(0x1a0)]();_0x5777cc[_0x431001(0x12d)]>0x0&&(_0x106c3e[_0x3245a9]=_0x5777cc);}),JSON[_0x40a0d6(0x161)](_0x106c3e);}[_0x11106f(0x13d)](_0x86ae98,_0x5162ed){const _0x6921de=_0x11106f;Object[_0x6921de(0x14e)](_0x5162ed)[_0x6921de(0x1a8)](_0xb5501a=>{const _0x200a1e=_0x6921de;this[_0x200a1e(0x1b6)](_0x86ae98,_0xb5501a)[_0x200a1e(0x1a5)](_0x5162ed[_0xb5501a]);});}[_0x11106f(0x1a0)](){const _0x476ac8=_0x11106f;let _0x2042a9={};return this[_0x476ac8(0x1e0)][_0x476ac8(0x1a8)]((_0x4fcdd8,_0x226bbd)=>{const _0x3547f2=_0x476ac8;_0x2042a9[_0x226bbd]={},_0x4fcdd8[_0x3547f2(0x1a8)]((_0x1b052c,_0x58d6c0)=>{const _0x373e2f=_0x3547f2;_0x2042a9[_0x226bbd][_0x58d6c0]=_0x1b052c[_0x373e2f(0x1a0)]();});}),_0x2042a9;}[_0x11106f(0x1a5)](_0x53e22d){const _0x2c9564=_0x11106f;Object[_0x2c9564(0x14e)](_0x53e22d)['forEach'](_0x3f1a5a=>{const _0x131c8b=_0x2c9564;let _0x449ea5=_0x53e22d[_0x3f1a5a];Object[_0x131c8b(0x14e)](_0x449ea5)[_0x131c8b(0x1a8)](_0x291a81=>{const _0x114847=_0x131c8b;this[_0x114847(0x1b6)](_0x3f1a5a,_0x291a81)['fromJSON'](_0x449ea5[_0x291a81]);});});}[_0x11106f(0x174)](){const _0x25fbb5=_0x11106f;this['_resourcesManagerService'][_0x25fbb5(0x1be)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[t[_0x25fbb5(0x1ca)]['UNIVER_SHEET']],'toJson':_0x32a764=>this[_0x25fbb5(0x197)](_0x32a764),'parseJson':_0x53b120=>JSON[_0x25fbb5(0x1de)](_0x53b120),'onLoad':(_0x3546b1,_0x48817a)=>{const _0x2de9cf=_0x25fbb5;this[_0x2de9cf(0x13d)](_0x3546b1,_0x48817a);},'onUnLoad':_0x4a57d6=>{const _0x3e48bc=_0x25fbb5;let _0x440452=this[_0x3e48bc(0x1e0)]['get'](_0x4a57d6);_0x440452&&(_0x440452[_0x3e48bc(0x1a8)](_0xf87649=>{const _0x31ca5c=_0x3e48bc;_0xf87649[_0x31ca5c(0x19d)]();}),this[_0x3e48bc(0x1e0)][_0x3e48bc(0x1d9)](_0x4a57d6));}});}[_0x11106f(0x19d)](){const _0x4679f7=_0x11106f;this[_0x4679f7(0x1e0)][_0x4679f7(0x1a8)](_0x56d953=>{const _0x349b49=_0x4679f7;_0x56d953[_0x349b49(0x1a8)](_0x1cef3a=>{const _0x24ad0b=_0x349b49;_0x1cef3a[_0x24ad0b(0x19d)]();});});}};p=f([d(0x0,t[_0x11106f(0x11e)])],p);const m={'id':_0x11106f(0x12e),'type':t['CommandType'][_0x11106f(0x182)],'handler':(_0xd37aa3,_0x1fca7a)=>{const _0x260ad4=_0x11106f;let {unitId:_0x11cb7e,subUnitId:_0x390a5a,shapeType:_0x412015,shapeId:_0xc6813e,shapeData:_0x4ea842}=_0x1fca7a;return _0xd37aa3[_0x260ad4(0x188)](p)['insertShape'](_0x11cb7e,_0x390a5a,_0x412015,_0xc6813e,_0x4ea842),!0x0;}},h={'id':_0x11106f(0x1ac),'type':t['CommandType'][_0x11106f(0x182)],'handler':(_0x1b813d,_0x1b90bb)=>{const _0x1f52c9=_0x11106f;let {unitId:_0x43b27b,subUnitId:_0x30b708,shapeId:_0x194748}=_0x1b90bb;return _0x1b813d[_0x1f52c9(0x188)](p)[_0x1f52c9(0x1c5)](_0x43b27b,_0x30b708,_0x194748),!0x0;}},g={'type':t['CommandType'][_0x11106f(0x190)],'id':_0x11106f(0x18b),'handler':(_0x4802fe,_0x1aacc1)=>{const _0x858ce=_0x11106f;var _0x2142e5,_0x7c799d;let _0x1ad61f=(0x0,n[_0x858ce(0x17a)])(_0x4802fe['get'](t[_0x858ce(0x166)]),_0x1aacc1);if(!_0x1ad61f)return!0x1;let _0x53bd9c=_0x4802fe[_0x858ce(0x188)](n[_0x858ce(0x179)]),{unitId:_0x2d969e,subUnitId:_0x1cfcd5}=_0x1ad61f,_0x3cae9a=_0x53bd9c[_0x858ce(0x17c)](_0x2d969e,_0x1cfcd5);if(!_0x3cae9a)return!0x1;let _0x10460e=_0x4802fe[_0x858ce(0x188)](t[_0x858ce(0x121)]),_0x30be54=_0x4802fe[_0x858ce(0x188)](t[_0x858ce(0x149)]),_0x3683ac=_0x4802fe[_0x858ce(0x188)](n['SheetInterceptorService']),_0x5185aa=_0x4802fe[_0x858ce(0x188)](r[_0x858ce(0x154)]),{shapeType:_0x194b65,shapeData:_0x306428}=_0x1aacc1,_0x208d5e=_0x1aacc1[_0x858ce(0x15a)]||(0x0,t[_0x858ce(0x180)])(),_0xad3b9e={'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'shapeId':_0x208d5e,'shapeType':_0x194b65,'shapeData':_0x306428},_0x26061d=_0x1aacc1[_0x858ce(0x1b3)]||0xc8,_0x1d1dbf=_0x1aacc1[_0x858ce(0x1c0)]||0xc8,_0x5db29d=0x0,_0x13d5ca=0x0,_0x4b1ad6={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x2a9364={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x1aacc1[_0x858ce(0x19a)]){let {x:_0x4c15c0,y:_0x2f3e23}=_0x1aacc1[_0x858ce(0x19a)];_0x5db29d=_0x4c15c0,_0x13d5ca=_0x2f3e23,_0x4b1ad6=_0x3cae9a[_0x858ce(0x193)](_0x4c15c0,_0x2f3e23),_0x2a9364=_0x3cae9a[_0x858ce(0x193)](_0x4c15c0+_0x26061d,_0x2f3e23+_0x1d1dbf);}else{if(_0x1aacc1[_0x858ce(0x1dd)]){let {startRow:_0x138d1c,startColumn:_0x22ba50}=_0x1aacc1['range'];_0x4b1ad6={'row':_0x138d1c,'rowOffset':0xa,'column':_0x22ba50,'columnOffset':0xa};let _0x807398=_0x3cae9a[_0x858ce(0x144)](_0x138d1c,_0x22ba50);_0x5db29d=_0x807398[_0x858ce(0x11c)]+0xa,_0x13d5ca=_0x807398[_0x858ce(0x1b0)]+0xa,_0x2a9364=_0x3cae9a['getCellIndexAndOffsetByPosition'](_0x5db29d+_0x26061d,_0x13d5ca+_0x1d1dbf);}}let _0x56fea2={'from':_0x4b1ad6,'to':_0x2a9364},_0x3356a8={'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'drawingId':_0x208d5e,'drawingType':t['DrawingTypeEnum'][_0x858ce(0x13a)],'sheetTransform':_0x56fea2,'transform':{'left':_0x5db29d,'top':_0x13d5ca,'width':_0x26061d,'height':_0x1d1dbf},'data':{'shapeType':_0x194b65,'shapeData':_0x306428},'axisAlignSheetTransform':_0x56fea2,'allowTransform':!0x0};(0x0,e[_0x858ce(0x145)])(_0x194b65)&&(_0x3356a8['data'][_0x858ce(0x18f)]=!0x1,_0x3356a8[_0x858ce(0x14a)][_0x858ce(0x1e8)]=!0x1,_0x3356a8[_0x858ce(0x14a)][_0x858ce(0x1ab)]=!0x1,_0x3356a8[_0x858ce(0x14a)][_0x858ce(0x1bc)]=!0x1,_0x3356a8[_0x858ce(0x138)][_0x858ce(0x1e8)]=!0x1,_0x3356a8[_0x858ce(0x138)][_0x858ce(0x1ab)]=!0x1,_0x3356a8[_0x858ce(0x138)]['borderEnabled']=!0x1);let {undo:_0x9d8d92,redo:_0x105dae,objects:_0x291ce1}=_0x5185aa[_0x858ce(0x1c3)]([_0x3356a8]),_0x7e7df=_0x3683ac[_0x858ce(0x1b9)]({'id':r[_0x858ce(0x18d)]['id'],'params':{'unitId':_0x2d969e,'drawings':[_0x3356a8]}}),_0x4c618e=[...(_0x2142e5=_0x7e7df[_0x858ce(0x151)])==null?[]:_0x2142e5,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'op':_0x105dae,'objects':_0x291ce1,'type':r[_0x858ce(0x1c9)]['INSERT']}},{'id':r[_0x858ce(0x15f)]['id'],'params':[_0x2d969e]},..._0x7e7df[_0x858ce(0x137)],{'id':m['id'],'params':_0xad3b9e}],_0x18553e=[{'id':h['id'],'params':{'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'shapeId':_0x208d5e}},...(_0x7c799d=_0x7e7df[_0x858ce(0x1e2)])==null?[]:_0x7c799d,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'op':_0x9d8d92,'objects':_0x291ce1,'type':r[_0x858ce(0x1c9)][_0x858ce(0x1e5)]}},{'id':r[_0x858ce(0x15f)]['id'],'params':[_0x2d969e]},..._0x7e7df[_0x858ce(0x16a)]];return(0x0,t[_0x858ce(0x1ce)])(_0x4c618e,_0x10460e)?(_0x30be54[_0x858ce(0x147)]({'unitID':_0x2d969e,'undoMutations':_0x18553e,'redoMutations':_0x4c618e}),!0x0):!0x1;}},_={'id':_0x11106f(0x132),'type':t['CommandType'][_0x11106f(0x182)],'handler':(_0x39400a,_0x2fe5c)=>{const _0x18181f=_0x11106f;let {unitId:_0x39f931,subUnitId:_0x444820,shapeType:_0x99691b,shapeId:_0x4e0a6a,shapeData:_0x18dd8c}=_0x2fe5c,_0x2c2188=_0x39400a[_0x18181f(0x188)](p)[_0x18181f(0x13b)](_0x39f931,_0x444820,_0x4e0a6a);return _0x2c2188&&(_0x99691b!==void 0x0&&_0x2c2188[_0x18181f(0x14b)](_0x99691b),_0x18dd8c&&(_0x2c2188==null||_0x2c2188['setShapeData'](_0x18dd8c,!0x0))),!0x0;}},v={'type':t[_0x11106f(0x1b7)][_0x11106f(0x190)],'id':_0x11106f(0x143),'handler':(_0x280715,_0x5a7886)=>{const _0x59e46f=_0x11106f;var _0x1c1714,_0x142a11;let _0x11684e=(0x0,n[_0x59e46f(0x17a)])(_0x280715[_0x59e46f(0x188)](t['IUniverInstanceService']),_0x5a7886);if(!_0x11684e)return!0x1;let _0x485af2=_0x280715[_0x59e46f(0x188)](n['SheetSkeletonService']),{unitId:_0x3d4cdc,subUnitId:_0x5909e6}=_0x11684e,_0x3ddcd0=_0x485af2[_0x59e46f(0x17c)](_0x3d4cdc,_0x5909e6);if(!_0x3ddcd0)return!0x1;let _0x24fa9f=_0x280715[_0x59e46f(0x188)](p),{shapeId:_0x3c1539,shapeType:_0x1af448,shapeData:_0x36b850,position:_0x109a41,width:_0x56cbfc,height:_0x31f153}=_0x5a7886,_0x2fc832=_0x24fa9f[_0x59e46f(0x13b)](_0x3d4cdc,_0x5909e6,_0x3c1539);if(!_0x2fc832)return!0x1;let _0x11865a=_0x280715['get'](t[_0x59e46f(0x121)]),_0x2c49bb=_0x280715[_0x59e46f(0x188)](t['IUndoRedoService']),_0x140650=_0x280715['get'](n['SheetInterceptorService']),_0x508218=_0x280715[_0x59e46f(0x188)](r['ISheetDrawingService']),_0x17ae54={'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'shapeId':_0x3c1539,'shapeType':_0x1af448,'shapeData':_0x36b850},_0x53f932=_0x2fc832[_0x59e46f(0x15d)](),_0xb6d718=_0x2fc832['getShapeData'](),{x:_0x2942f4,y:_0x4b8366}=_0x109a41,_0x5b318d={'from':_0x3ddcd0[_0x59e46f(0x193)](_0x2942f4,_0x4b8366),'to':_0x3ddcd0[_0x59e46f(0x193)](_0x2942f4+_0x56cbfc,_0x4b8366+_0x31f153)},_0x3e6529={'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'drawingId':_0x3c1539,'drawingType':t[_0x59e46f(0x139)][_0x59e46f(0x13a)],'sheetTransform':_0x5b318d,'transform':{'left':_0x2942f4,'top':_0x4b8366,'width':_0x56cbfc,'height':_0x31f153},'data':{'shapeType':_0x1af448,'shapeData':_0x36b850},'axisAlignSheetTransform':_0x5b318d,'allowTransform':!0x0};(0x0,e[_0x59e46f(0x145)])(_0x1af448)&&(_0x3e6529[_0x59e46f(0x14a)][_0x59e46f(0x18f)]=!0x1,_0x3e6529[_0x59e46f(0x14a)][_0x59e46f(0x1e8)]=!0x1,_0x3e6529[_0x59e46f(0x14a)][_0x59e46f(0x1ab)]=!0x1,_0x3e6529[_0x59e46f(0x14a)]['borderEnabled']=!0x1,_0x3e6529[_0x59e46f(0x138)][_0x59e46f(0x1e8)]=!0x1,_0x3e6529[_0x59e46f(0x138)][_0x59e46f(0x1ab)]=!0x1,_0x3e6529[_0x59e46f(0x138)][_0x59e46f(0x1bc)]=!0x1);let {undo:_0xb0a1eb,redo:_0x188a2c,objects:_0x17965c}=_0x508218[_0x59e46f(0x12b)]([_0x3e6529]),_0x115268=_0x140650[_0x59e46f(0x1b9)]({'id':r[_0x59e46f(0x19b)]['id'],'params':{'unitId':_0x3d4cdc,'drawings':[_0x3e6529]}}),_0x500c64=[...(_0x1c1714=_0x115268[_0x59e46f(0x151)])==null?[]:_0x1c1714,{'id':r[_0x59e46f(0x168)]['id'],'params':{'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'op':_0x188a2c,'objects':_0x17965c,'type':r['DrawingApplyType'][_0x59e46f(0x157)]}},{'id':r[_0x59e46f(0x15f)]['id'],'params':[_0x3d4cdc]},..._0x115268[_0x59e46f(0x137)],{'id':_['id'],'params':_0x17ae54}],_0x46c0f5=[...(_0x142a11=_0x115268[_0x59e46f(0x1e2)])==null?[]:_0x142a11,{'id':r[_0x59e46f(0x168)]['id'],'params':{'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'op':_0xb0a1eb,'objects':_0x17965c,'type':r[_0x59e46f(0x1c9)][_0x59e46f(0x157)]}},{'id':r[_0x59e46f(0x15f)]['id'],'params':[_0x3d4cdc]},..._0x115268['undos'],{'id':_['id'],'params':{'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'shapeType':_0x53f932,'shapeId':_0x3c1539,'shapeData':_0xb6d718}}];return(0x0,t[_0x59e46f(0x1ce)])(_0x500c64,_0x11865a)?(_0x2c49bb[_0x59e46f(0x147)]({'unitID':_0x3d4cdc,'undoMutations':_0x46c0f5,'redoMutations':_0x500c64}),!0x0):!0x1;}},y={'type':t['CommandType'][_0x11106f(0x190)],'id':_0x11106f(0x1d6),'handler':(_0x8c4192,_0x14f7d0)=>{const _0x43b762=_0x11106f;var _0x253ae0,_0x40b221;let _0x2777ae=(0x0,n[_0x43b762(0x17a)])(_0x8c4192[_0x43b762(0x188)](t['IUniverInstanceService']),_0x14f7d0);if(!_0x2777ae)return!0x1;let _0x5d41ba=_0x8c4192[_0x43b762(0x188)](n[_0x43b762(0x179)]),{unitId:_0x1c5b77,subUnitId:_0x377edd}=_0x2777ae,_0x3d887e=_0x5d41ba[_0x43b762(0x1b2)](_0x1c5b77,_0x377edd);if(!_0x3d887e)return!0x1;let _0x415314=_0x8c4192[_0x43b762(0x188)](r[_0x43b762(0x154)]),{shapeId:_0x213f57,flipH:_0x5dae6,flipV:_0xfb76b4}=_0x14f7d0,_0x501ee3=_0x415314[_0x43b762(0x1c2)]({'unitId':_0x1c5b77,'subUnitId':_0x377edd,'drawingId':_0x213f57});if(!_0x501ee3)return!0x1;let _0x31c2d9=_0x8c4192[_0x43b762(0x188)](p)[_0x43b762(0x13b)](_0x1c5b77,_0x377edd,_0x213f57);if(!_0x31c2d9)return!0x1;let _0x290185=_0x8c4192[_0x43b762(0x188)](t['ICommandService']),_0x1941cb=_0x8c4192[_0x43b762(0x188)](t[_0x43b762(0x149)]),_0xffadaf=_0x8c4192['get'](n[_0x43b762(0x17f)]),_0x236a27={..._0x501ee3[_0x43b762(0x138)]};_0x5dae6!==void 0x0&&(_0x236a27['flipX']=!_0x236a27[_0x43b762(0x163)]),_0xfb76b4!==void 0x0&&(_0x236a27['flipY']=!_0x236a27[_0x43b762(0x186)]);let _0x416e74=(0x0,r[_0x43b762(0x1d5)])(_0x236a27,_0x3d887e),_0x2d7fc7=(0x0,r['transformToAxisAlignPosition'])(_0x236a27,_0x3d887e),_0x5c21eb=_0x31c2d9['getShapeType'](),_0x465d33=_0x31c2d9[_0x43b762(0x191)](),_0x3dfcae={'unitId':_0x1c5b77,'subUnitId':_0x377edd,'drawingId':_0x213f57,'drawingType':t[_0x43b762(0x139)]['DRAWING_SHAPE'],'sheetTransform':_0x416e74,'transform':_0x236a27,'data':{'shapeType':_0x5c21eb,'shapeData':_0x465d33},'axisAlignSheetTransform':_0x2d7fc7,'allowTransform':!0x0},{undo:_0x17cc97,redo:_0x3d81c5,objects:_0x349d93}=_0x415314['getBatchUpdateOp']([_0x3dfcae]),_0x1351e9=_0xffadaf['onCommandExecute']({'id':r[_0x43b762(0x19b)]['id'],'params':{'unitId':_0x1c5b77,'drawings':[_0x3dfcae]}}),_0x357cfe=[...(_0x253ae0=_0x1351e9[_0x43b762(0x151)])==null?[]:_0x253ae0,{'id':r[_0x43b762(0x168)]['id'],'params':{'unitId':_0x1c5b77,'subUnitId':_0x377edd,'op':_0x3d81c5,'objects':_0x349d93,'type':r[_0x43b762(0x1c9)][_0x43b762(0x157)]}},{'id':r[_0x43b762(0x15f)]['id'],'params':[_0x1c5b77]},..._0x1351e9[_0x43b762(0x137)]],_0x200d9d=[...(_0x40b221=_0x1351e9['preUndos'])==null?[]:_0x40b221,{'id':r[_0x43b762(0x168)]['id'],'params':{'unitId':_0x1c5b77,'subUnitId':_0x377edd,'op':_0x17cc97,'objects':_0x349d93,'type':r[_0x43b762(0x1c9)][_0x43b762(0x157)]}},{'id':r[_0x43b762(0x15f)]['id'],'params':[_0x1c5b77]},..._0x1351e9[_0x43b762(0x16a)]];if((0x0,e[_0x43b762(0x145)])(_0x5c21eb)){let _0x516be9=_0x31c2d9[_0x43b762(0x172)]();if(_0x516be9){let _0x1f4fea={..._0x516be9};_0x1f4fea[_0x43b762(0x152)]=void 0x0,_0x1f4fea['to']=void 0x0,_0x357cfe[_0x43b762(0x176)]({'id':_['id'],'params':{'unitId':_0x1c5b77,'subUnitId':_0x377edd,'shapeId':_0x213f57,'shapeType':_0x5c21eb,'shapeData':{'relation':_0x1f4fea}}}),_0x200d9d[_0x43b762(0x176)]({'id':_['id'],'params':{'unitId':_0x1c5b77,'subUnitId':_0x377edd,'shapeId':_0x213f57,'shapeType':_0x5c21eb,'shapeData':{'relation':_0x516be9}}});}}return(0x0,t[_0x43b762(0x1ce)])(_0x357cfe,_0x290185)?(_0x1941cb[_0x43b762(0x147)]({'unitID':_0x1c5b77,'undoMutations':_0x200d9d,'redoMutations':_0x357cfe}),!0x0):!0x1;}},b={'type':t[_0x11106f(0x1b7)][_0x11106f(0x190)],'id':_0x11106f(0x160),'handler':(_0x1473d9,_0x3cea71)=>{const _0x2a2e3c=_0x11106f;var _0x4e9520,_0x4e805b;let _0x3c65f7=(0x0,n[_0x2a2e3c(0x17a)])(_0x1473d9[_0x2a2e3c(0x188)](t[_0x2a2e3c(0x166)]),_0x3cea71);if(!_0x3c65f7)return!0x1;let _0x570252=_0x1473d9['get'](n[_0x2a2e3c(0x179)]),{unitId:_0x3624bd,subUnitId:_0x783d0}=_0x3c65f7,_0x1c676d=_0x570252[_0x2a2e3c(0x1b2)](_0x3624bd,_0x783d0);if(!_0x1c676d)return!0x1;let _0x7a22a6=_0x1473d9[_0x2a2e3c(0x188)](r[_0x2a2e3c(0x154)]),{shapeId:_0x5c0194,rotate:_0x577864}=_0x3cea71,_0x2dc7f0=_0x7a22a6[_0x2a2e3c(0x1c2)]({'unitId':_0x3624bd,'subUnitId':_0x783d0,'drawingId':_0x5c0194});if(!_0x2dc7f0)return!0x1;let _0x1efc19=_0x1473d9[_0x2a2e3c(0x188)](p)['getShapeModel'](_0x3624bd,_0x783d0,_0x5c0194);if(!_0x1efc19)return!0x1;let _0x11df2e=_0x1473d9[_0x2a2e3c(0x188)](t['ICommandService']),_0x57c29f=_0x1473d9[_0x2a2e3c(0x188)](t[_0x2a2e3c(0x149)]),_0x393060=_0x1473d9[_0x2a2e3c(0x188)](n[_0x2a2e3c(0x17f)]),_0x11d7f4={..._0x2dc7f0[_0x2a2e3c(0x138)]};_0x577864!==void 0x0&&(_0x11d7f4[_0x2a2e3c(0x18a)]=(_0x11d7f4['angle']||0x0)+_0x577864);let _0x40e4c2=(0x0,r['transformToDrawingPosition'])(_0x11d7f4,_0x1c676d),_0x16005d=(0x0,r[_0x2a2e3c(0x1ae)])(_0x11d7f4,_0x1c676d),_0x56b41b=_0x1efc19['getShapeType'](),_0x3b924c=_0x1efc19[_0x2a2e3c(0x191)](),_0x318980={'unitId':_0x3624bd,'subUnitId':_0x783d0,'drawingId':_0x5c0194,'drawingType':t['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x40e4c2,'transform':_0x11d7f4,'data':{'shapeType':_0x56b41b,'shapeData':_0x3b924c},'axisAlignSheetTransform':_0x16005d,'allowTransform':!0x0},{undo:_0x5a9ff0,redo:_0x37513f,objects:_0x467684}=_0x7a22a6['getBatchUpdateOp']([_0x318980]),_0x251e43=_0x393060[_0x2a2e3c(0x1b9)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x3624bd,'drawings':[_0x318980]}}),_0x1efc7c=[...(_0x4e9520=_0x251e43[_0x2a2e3c(0x151)])==null?[]:_0x4e9520,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3624bd,'subUnitId':_0x783d0,'op':_0x37513f,'objects':_0x467684,'type':r[_0x2a2e3c(0x1c9)][_0x2a2e3c(0x157)]}},{'id':r[_0x2a2e3c(0x15f)]['id'],'params':[_0x3624bd]},..._0x251e43['redos']],_0x8e06d9=[...(_0x4e805b=_0x251e43[_0x2a2e3c(0x1e2)])==null?[]:_0x4e805b,{'id':r[_0x2a2e3c(0x168)]['id'],'params':{'unitId':_0x3624bd,'subUnitId':_0x783d0,'op':_0x5a9ff0,'objects':_0x467684,'type':r[_0x2a2e3c(0x1c9)][_0x2a2e3c(0x157)]}},{'id':r[_0x2a2e3c(0x15f)]['id'],'params':[_0x3624bd]},..._0x251e43[_0x2a2e3c(0x16a)]];return(0x0,t[_0x2a2e3c(0x1ce)])(_0x1efc7c,_0x11df2e)?(_0x57c29f[_0x2a2e3c(0x147)]({'unitID':_0x3624bd,'undoMutations':_0x8e06d9,'redoMutations':_0x1efc7c}),!0x0):!0x1;}},x={'type':t[_0x11106f(0x1b7)][_0x11106f(0x190)],'id':_0x11106f(0x1a3),'handler':(_0x590a49,_0x3de7b6)=>{const _0x588d83=_0x11106f;var _0x1f91ec,_0x363889,_0x10fd7b,_0x10c865;let _0x24381f=(0x0,n['getSheetCommandTarget'])(_0x590a49[_0x588d83(0x188)](t[_0x588d83(0x166)]),_0x3de7b6);if(!_0x24381f)return!0x1;let _0x760438=_0x590a49[_0x588d83(0x188)](n['SheetSkeletonService']),{unitId:_0xb8e12c,subUnitId:_0x3bff79}=_0x24381f,_0x200d3b=_0x760438['getSkeleton'](_0xb8e12c,_0x3bff79);if(!_0x200d3b)return!0x1;let _0x539f3d=_0x590a49['get'](r['ISheetDrawingService']),{connectorShapeId:_0x780bf5,width:_0x549c2f,height:_0x1859e4,left:_0x36f847,top:_0x3dd627,flipX:_0x43ffa7,flipY:_0xc3cea7,rotation:_0x262872,oldAdjustValues:_0x5d0340,newAdjustValues:_0x4757de,oldLineType:_0x1fb172,newLineType:_0x198937,oldRelation:_0x501a6a,newRelation:_0x24ff0f}=_0x3de7b6,_0xabb810=_0x539f3d[_0x588d83(0x1c2)]({'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'drawingId':_0x780bf5});if(!_0xabb810)return!0x1;let _0x190a81=_0x590a49[_0x588d83(0x188)](p)[_0x588d83(0x13b)](_0xb8e12c,_0x3bff79,_0x780bf5);if(!_0x190a81)return!0x1;let _0x200a72=_0x590a49[_0x588d83(0x188)](t[_0x588d83(0x121)]),_0x30c8a3=_0x590a49[_0x588d83(0x188)](t['IUndoRedoService']),_0xa31c78=_0x590a49[_0x588d83(0x188)](n[_0x588d83(0x17f)]),_0x341451={..._0xabb810[_0x588d83(0x138)],'width':_0x549c2f,'height':_0x1859e4,'left':_0x36f847,'top':_0x3dd627,'flipX':_0x43ffa7,'flipY':_0xc3cea7,'angle':(_0x1f91ec=_0x262872==null?(_0x363889=_0xabb810[_0x588d83(0x138)])==null?void 0x0:_0x363889[_0x588d83(0x18a)]:_0x262872)==null?0x0:_0x1f91ec},_0x4e1b4c=(0x0,r[_0x588d83(0x1d5)])(_0x341451,_0x200d3b),_0x188164=(0x0,r[_0x588d83(0x1ae)])(_0x341451,_0x200d3b),_0x5cc27c=_0x190a81[_0x588d83(0x15d)](),_0xc13584=_0x190a81['getShapeData'](),_0x19b0ff={'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'drawingId':_0x780bf5,'drawingType':t[_0x588d83(0x139)][_0x588d83(0x13a)],'sheetTransform':_0x4e1b4c,'transform':_0x341451,'data':{'shapeType':_0x198937||_0x1fb172||_0x5cc27c,'shapeData':{..._0xc13584,'adjustValues':_0x4757de||_0x5d0340||(_0xc13584==null?void 0x0:_0xc13584[_0x588d83(0x177)]),'relation':_0x24ff0f||_0x501a6a||(_0xc13584==null?void 0x0:_0xc13584[_0x588d83(0x194)])}},'axisAlignSheetTransform':_0x188164,'allowTransform':!0x0},{undo:_0x4ee9fd,redo:_0x16fa6e,objects:_0x2e76f4}=_0x539f3d[_0x588d83(0x12b)]([_0x19b0ff]),_0x2f9b53=_0xa31c78['onCommandExecute']({'id':r[_0x588d83(0x19b)]['id'],'params':{'unitId':_0xb8e12c,'drawings':[_0x19b0ff]}}),_0x10ed49=[...(_0x10fd7b=_0x2f9b53[_0x588d83(0x151)])==null?[]:_0x10fd7b,{'id':r[_0x588d83(0x168)]['id'],'params':{'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'op':_0x16fa6e,'objects':_0x2e76f4,'type':r[_0x588d83(0x1c9)][_0x588d83(0x157)]}},{'id':r[_0x588d83(0x15f)]['id'],'params':[_0xb8e12c]},..._0x2f9b53[_0x588d83(0x137)],{'id':_['id'],'params':{'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'shapeId':_0x780bf5,'shapeType':_0x198937,'shapeData':{'adjustValues':_0x4757de,'relation':_0x24ff0f}}}],_0x34e53d=[...(_0x10c865=_0x2f9b53[_0x588d83(0x1e2)])==null?[]:_0x10c865,{'id':r[_0x588d83(0x168)]['id'],'params':{'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'op':_0x4ee9fd,'objects':_0x2e76f4,'type':r[_0x588d83(0x1c9)][_0x588d83(0x157)]}},{'id':r[_0x588d83(0x15f)]['id'],'params':[_0xb8e12c]},..._0x2f9b53[_0x588d83(0x16a)],{'id':_['id'],'params':{'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'shapeId':_0x780bf5,'shapeType':_0x5cc27c,'shapeData':{..._0xc13584,'adjustValues':_0x5d0340||(_0xc13584==null?void 0x0:_0xc13584[_0x588d83(0x177)]),'relation':_0x501a6a||(_0xc13584==null?void 0x0:_0xc13584[_0x588d83(0x194)])}}}];return(0x0,t['sequenceExecute'])(_0x10ed49,_0x200a72)?(_0x30c8a3['pushUndoRedo']({'unitID':_0xb8e12c,'undoMutations':_0x34e53d,'redoMutations':_0x10ed49}),!0x0):!0x1;}},S={'type':t[_0x11106f(0x1b7)][_0x11106f(0x190)],'id':_0x11106f(0x189),'handler':(_0x11d17a,_0x100832)=>{const _0x2481b6=_0x11106f;var _0x2b8d31,_0x2c1389;let _0xe30665=(0x0,n['getSheetCommandTarget'])(_0x11d17a[_0x2481b6(0x188)](t[_0x2481b6(0x166)]),_0x100832);if(!_0xe30665)return!0x1;let _0x300e86=_0x11d17a[_0x2481b6(0x188)](n['SheetSkeletonService']),{unitId:_0x30822f,subUnitId:_0x8153c1}=_0xe30665,_0x26b3bc=_0x300e86['getSkeleton'](_0x30822f,_0x8153c1);if(!_0x26b3bc)return!0x1;let _0xb55d5c=_0x11d17a[_0x2481b6(0x188)](r[_0x2481b6(0x154)]),{shapeId:_0xa3c90,width:_0x1c6461,height:_0x5cd0b9,left:_0x29fea9,top:_0x26bee9,flipX:_0x1fd8f0,flipY:_0x32097f,angle:_0x28d285,oldAdjustValues:_0x63ca8e,newAdjustValues:_0x263555,oldLineType:_0x2ca591,newLineType:_0x48bd5b}=_0x100832,_0x434608=_0xb55d5c[_0x2481b6(0x1c2)]({'unitId':_0x30822f,'subUnitId':_0x8153c1,'drawingId':_0xa3c90});if(!_0x434608)return!0x1;let _0x4635a8=_0x11d17a[_0x2481b6(0x188)](p)['getShapeModel'](_0x30822f,_0x8153c1,_0xa3c90);if(!_0x4635a8)return!0x1;let _0x1af205=_0x11d17a['get'](t[_0x2481b6(0x121)]),_0x318e97=_0x11d17a['get'](t[_0x2481b6(0x149)]),_0x5b2a8c=_0x11d17a[_0x2481b6(0x188)](n[_0x2481b6(0x17f)]),_0x31b56d={..._0x434608[_0x2481b6(0x138)],'width':_0x1c6461,'height':_0x5cd0b9,'left':_0x29fea9,'top':_0x26bee9,'flipX':_0x1fd8f0,'flipY':_0x32097f,'angle':_0x28d285},_0x2aac76=(0x0,r[_0x2481b6(0x1d5)])(_0x31b56d,_0x26b3bc),_0x53a6c0=(0x0,r[_0x2481b6(0x1ae)])(_0x31b56d,_0x26b3bc),_0x3d4980=_0x4635a8[_0x2481b6(0x15d)](),_0x4dfdbd=_0x4635a8['getShapeData'](),_0x22cd02={'unitId':_0x30822f,'subUnitId':_0x8153c1,'drawingId':_0xa3c90,'drawingType':t[_0x2481b6(0x139)][_0x2481b6(0x13a)],'sheetTransform':_0x2aac76,'transform':_0x31b56d,'data':{'shapeType':_0x48bd5b||_0x2ca591||_0x3d4980,'shapeData':{..._0x4dfdbd,'adjustValues':_0x263555||_0x63ca8e||(_0x4dfdbd==null?void 0x0:_0x4dfdbd[_0x2481b6(0x177)])}},'axisAlignSheetTransform':_0x53a6c0,'allowTransform':!0x0},{undo:_0x218caa,redo:_0x16486f,objects:_0x436d24}=_0xb55d5c[_0x2481b6(0x12b)]([_0x22cd02]),_0x1f5a21=_0x5b2a8c[_0x2481b6(0x1b9)]({'id':r[_0x2481b6(0x19b)]['id'],'params':{'unitId':_0x30822f,'drawings':[_0x22cd02]}}),_0x5da454=[...(_0x2b8d31=_0x1f5a21['preRedos'])==null?[]:_0x2b8d31,{'id':r[_0x2481b6(0x168)]['id'],'params':{'unitId':_0x30822f,'subUnitId':_0x8153c1,'op':_0x16486f,'objects':_0x436d24,'type':r[_0x2481b6(0x1c9)][_0x2481b6(0x157)]}},{'id':r[_0x2481b6(0x15f)]['id'],'params':[_0x30822f]},..._0x1f5a21[_0x2481b6(0x137)],{'id':_['id'],'params':{'unitId':_0x30822f,'subUnitId':_0x8153c1,'shapeId':_0xa3c90,'shapeType':_0x48bd5b,'shapeData':{'adjustValues':_0x263555}}}],_0xdaa3a2=[...(_0x2c1389=_0x1f5a21['preUndos'])==null?[]:_0x2c1389,{'id':r[_0x2481b6(0x168)]['id'],'params':{'unitId':_0x30822f,'subUnitId':_0x8153c1,'op':_0x218caa,'objects':_0x436d24,'type':r[_0x2481b6(0x1c9)]['UPDATE']}},{'id':r[_0x2481b6(0x15f)]['id'],'params':[_0x30822f]},..._0x1f5a21[_0x2481b6(0x16a)],{'id':_['id'],'params':{'unitId':_0x30822f,'subUnitId':_0x8153c1,'shapeId':_0xa3c90,'shapeType':_0x3d4980,'shapeData':{..._0x4dfdbd,'adjustValues':_0x63ca8e||(_0x4dfdbd==null?void 0x0:_0x4dfdbd[_0x2481b6(0x177)])}}}];return(0x0,t[_0x2481b6(0x1ce)])(_0x5da454,_0x1af205)?(_0x318e97[_0x2481b6(0x147)]({'unitID':_0x30822f,'undoMutations':_0xdaa3a2,'redoMutations':_0x5da454}),!0x0):!0x1;}},C={'id':_0x11106f(0x1c4),'type':t['CommandType']['MUTATION'],'handler':(_0x5f56c7,_0x2221ad)=>{const _0x89c956=_0x11106f;let {unitId:_0x19de5a,subUnitId:_0x2a5ed3,shapeType:_0x458dae,shapeId:_0x13531f,shapeData:_0x1d3eea}=_0x2221ad,_0x3d4fc3=_0x5f56c7[_0x89c956(0x188)](p)[_0x89c956(0x13b)](_0x19de5a,_0x2a5ed3,_0x13531f);return _0x3d4fc3&&(_0x3d4fc3[_0x89c956(0x14b)](_0x458dae),_0x1d3eea&&(_0x3d4fc3==null||_0x3d4fc3[_0x89c956(0x16b)](_0x1d3eea))),!0x0;}},w={'id':_0x11106f(0x13c),'type':t[_0x11106f(0x1b7)]['COMMAND'],'handler':(_0x29f322,_0x59daf0)=>{const _0x341b28=_0x11106f;if(!_0x59daf0)return!0x1;let _0x1bd485=_0x29f322[_0x341b28(0x188)](t['ICommandService']),_0x2caab2=_0x29f322[_0x341b28(0x188)](p),_0x30f428=_0x29f322[_0x341b28(0x188)](t['IUndoRedoService']),_0x3074ba=[],_0x36a340=[],{unitId:_0x48804e,subUnitId:_0x58f67b,shapeId:_0x5f5408,shapeType:_0x26f602,shapeData:_0x366a13}=_0x59daf0,_0x282420=_0x2caab2[_0x341b28(0x13b)](_0x48804e,_0x58f67b,_0x5f5408);if(_0x282420){let _0x479fc4=_0x282420[_0x341b28(0x15d)](),_0x371231=Object[_0x341b28(0x170)]({},_0x282420[_0x341b28(0x191)]()),_0x195237={'unitId':_0x48804e,'subUnitId':_0x58f67b,'shapeId':_0x5f5408,'shapeType':_0x26f602,'shapeData':_0x366a13},_0x55ec85={'unitId':_0x48804e,'subUnitId':_0x58f67b,'shapeId':_0x5f5408,'shapeType':_0x479fc4,'shapeData':_0x371231};return _0x3074ba[_0x341b28(0x176)]({'id':C['id'],'params':_0x195237}),_0x36a340[_0x341b28(0x176)]({'id':C['id'],'params':_0x55ec85}),_0x3074ba[_0x341b28(0x1a4)](_0x22a89d=>_0x1bd485[_0x341b28(0x1cb)](_0x22a89d['id'],_0x22a89d[_0x341b28(0x171)]))&&_0x30f428[_0x341b28(0x147)]({'unitID':_0x48804e,'redoMutations':[..._0x3074ba],'undoMutations':[..._0x36a340]}),!0x0;}return!0x1;}};function _0x25d2(_0x404923,_0x2654fa){_0x404923=_0x404923-0x11c;const _0x5bf766=_0x5bf7();let _0x25d2a1=_0x5bf766[_0x404923];return _0x25d2a1;}var T=_0x11106f(0x1d2),E=_0x11106f(0x19c);const D='sheets-shape.config';Symbol(D);const O={};let k=class extends t['Disposable']{constructor(_0x13377b,_0x48199d,_0x9f5e40,_0x9ed878,_0x3aa545){const _0x3d7b66=_0x11106f;super(),this[_0x3d7b66(0x155)]=_0x13377b,this[_0x3d7b66(0x15b)]=_0x48199d,this[_0x3d7b66(0x126)]=_0x9f5e40,this[_0x3d7b66(0x135)]=_0x9ed878,this['_drawingManagerService']=_0x3aa545,this[_0x3d7b66(0x12c)](),this['_initCommandInterceptor']();}['_initCommands'](){const _0x53a6e7=_0x11106f;[g,v,y,b,x,S,m,h,C,_]['forEach'](_0xa683c6=>this[_0x53a6e7(0x183)](this['_commandService'][_0x53a6e7(0x1af)](_0xa683c6)));}[_0x11106f(0x1da)](){const _0x33ae20=_0x11106f;this[_0x33ae20(0x183)](this[_0x33ae20(0x15b)][_0x33ae20(0x184)]({'getMutations':_0x508cb7=>{const _0x1f568d=_0x33ae20;if(_0x508cb7['id']===r['RemoveSheetDrawingCommand']['id']){let {drawings:_0x8448f7}=_0x508cb7[_0x1f568d(0x171)],_0x5bcf3a=_0x8448f7[_0x1f568d(0x1b1)](_0x5e2278=>_0x5e2278[_0x1f568d(0x1e3)]===t['DrawingTypeEnum'][_0x1f568d(0x13a)]);if(_0x5bcf3a[_0x1f568d(0x12d)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4165fd=[],_0x5df858=[];return _0x5bcf3a[_0x1f568d(0x1a8)](_0x58f05f=>{const _0x5364a2=_0x1f568d;let {unitId:_0x180b17,subUnitId:_0x323766,drawingId:_0x19d666}=_0x58f05f,_0x22fcc5=this[_0x5364a2(0x135)][_0x5364a2(0x13b)](_0x180b17,_0x323766,_0x19d666);if(!_0x22fcc5)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x22fcc5);_0x4165fd['push']({'id':h['id'],'params':{'unitId':_0x180b17,'subUnitId':_0x323766,'shapeId':_0x19d666}}),_0x5df858['push']({'id':m['id'],'params':{'unitId':_0x180b17,'subUnitId':_0x323766,'shapeId':_0x19d666,'shapeType':_0x22fcc5[_0x5364a2(0x15d)](),'shapeData':_0x22fcc5[_0x5364a2(0x191)]()}});let _0x499ad9=this[_0x5364a2(0x135)]['getBasicShapeRelation'](_0x180b17,_0x323766,_0x19d666);if(_0x499ad9)for(let _0xeaef04 of _0x499ad9){let _0x2d3c6c=_0xeaef04[_0x5364a2(0x140)],_0x157123=_0xeaef04['isFrom'],_0x484fcb=_0x157123?{'from':void 0x0}:{'to':void 0x0},_0x53360a=_0x157123?{'from':{'shapeId':_0xeaef04[_0x5364a2(0x15a)],'cxnIndex':_0xeaef04[_0x5364a2(0x11d)]}}:{'to':{'shapeId':_0xeaef04['shapeId'],'cxnIndex':_0xeaef04[_0x5364a2(0x11d)]}};_0x4165fd[_0x5364a2(0x176)]({'id':_['id'],'params':{'unitId':_0x180b17,'subUnitId':_0x323766,'shapeId':_0x2d3c6c,'shapeData':{'relation':_0x484fcb}}}),_0x5df858[_0x5364a2(0x176)]({'id':_['id'],'params':{'unitId':_0x180b17,'subUnitId':_0x323766,'shapeId':_0x2d3c6c,'shapeData':{'relation':_0x53360a}}});}}),{'preRedos':_0x4165fd,'redos':[],'preUndos':[],'undos':_0x5df858};}if(_0x508cb7['id']===r[_0x1f568d(0x19b)]['id']){let {drawings:_0x3ae549}=_0x508cb7[_0x1f568d(0x171)],_0x3cfe09=_0x3ae549[_0x1f568d(0x1b1)](_0x3510b0=>_0x3510b0[_0x1f568d(0x1e3)]===t['DrawingTypeEnum'][_0x1f568d(0x13a)]);if(_0x3cfe09[_0x1f568d(0x12d)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x51f6b1=[],_0x4f6416=[];for(let _0x52c07e of _0x3cfe09){let {unitId:_0x4bf737,subUnitId:_0x59d8a1,drawingId:_0x1b275c,transform:_0x157c6a}=_0x52c07e;if(!_0x4bf737||!_0x59d8a1||!_0x1b275c||!_0x157c6a)continue;let _0x2f6d3a=this[_0x1f568d(0x135)][_0x1f568d(0x13b)](_0x4bf737,_0x59d8a1,_0x1b275c);if(!_0x2f6d3a)throw TypeError(_0x1f568d(0x128)+_0x2f6d3a);if((0x0,e[_0x1f568d(0x145)])(_0x2f6d3a[_0x1f568d(0x15d)]())){let _0x3bd942=this['_sheetsShapeService'][_0x1f568d(0x1c7)](_0x4bf737,_0x59d8a1,_0x1b275c);_0x3bd942&&(_0x51f6b1['push']({'id':_['id'],'params':{'unitId':_0x4bf737,'subUnitId':_0x59d8a1,'shapeId':_0x1b275c,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4f6416[_0x1f568d(0x176)]({'id':_['id'],'params':{'unitId':_0x4bf737,'subUnitId':_0x59d8a1,'shapeId':_0x1b275c,'shapeData':{'relation':_0x3bd942}}}));}else{let _0x4eaeeb=this[_0x1f568d(0x135)][_0x1f568d(0x1e6)](_0x4bf737,_0x59d8a1,_0x1b275c);if(_0x4eaeeb&&_0x4eaeeb['length']>0x0)for(let _0x12d79f of _0x4eaeeb){let _0x8b33d1=_0x12d79f['lineShapeId'],_0x5a9aeb=_0x12d79f[_0x1f568d(0x16e)],_0xa1f8ad=this[_0x1f568d(0x135)]['getShapeModel'](_0x4bf737,_0x59d8a1,_0x8b33d1);if(!_0xa1f8ad)continue;let _0x3411e6=_0xa1f8ad[_0x1f568d(0x1d4)](),_0x3e9596=_0xa1f8ad[_0x1f568d(0x167)]();_0x3411e6&&_0x3e9596?this[_0x1f568d(0x1ba)](_0x4bf737,_0x59d8a1,_0x8b33d1,_0xa1f8ad,_0x3411e6,_0x3e9596,_0x51f6b1,_0x4f6416,_0x1b275c,_0x157c6a):this[_0x1f568d(0x158)](_0x4bf737,_0x59d8a1,_0x8b33d1,_0xa1f8ad,_0x5a9aeb?_0x3411e6:_0x3e9596,_0x5a9aeb,_0x51f6b1,_0x4f6416,_0x1b275c,_0x157c6a);}}}return{'preRedos':[],'redos':_0x51f6b1,'preUndos':_0x4f6416,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x11106f(0x18c)](_0x482da9,_0x1ec3f1,_0x739742,_0x2af3ad,_0x8a3477){const _0x44d9f3=_0x11106f;if(!_0x1ec3f1||!_0x739742)return null;let {shapeId:_0x4c8a9e,cxnIndex:_0x170585}=_0x482da9,_0x1ac025=this[_0x44d9f3(0x135)][_0x44d9f3(0x13b)](_0x1ec3f1,_0x739742,_0x4c8a9e);if(!_0x1ac025)return null;let _0x33195b=this[_0x44d9f3(0x141)][_0x44d9f3(0x1c2)]({'unitId':_0x1ec3f1,'subUnitId':_0x739742,'drawingId':_0x4c8a9e});if(!(_0x33195b!=null&&_0x33195b[_0x44d9f3(0x138)]))return null;let {left:_0x5e4da5=0x0,top:_0xb995b3=0x0,width:_0x307bca=0x0,height:_0x49dc24=0x0,flipX:_0xeb038=!0x1,flipY:_0x438ac8=!0x1,angle:_0x364095}=_0x33195b['transform'];if(_0x8a3477&&_0x2af3ad===_0x4c8a9e){var _0x5713ae,_0x333525,_0x39c99f,_0x585987,_0x29ea35,_0x50da4a,_0x5600b6;_0x5e4da5=(_0x5713ae=_0x8a3477['left'])==null?_0x5e4da5:_0x5713ae,_0xb995b3=(_0x333525=_0x8a3477[_0x44d9f3(0x134)])==null?_0xb995b3:_0x333525,_0x307bca=(_0x39c99f=_0x8a3477[_0x44d9f3(0x1b3)])==null?_0x307bca:_0x39c99f,_0x49dc24=(_0x585987=_0x8a3477[_0x44d9f3(0x1c0)])==null?_0x49dc24:_0x585987,_0xeb038=(_0x29ea35=_0x8a3477[_0x44d9f3(0x163)])==null?_0xeb038:_0x29ea35,_0x438ac8=(_0x50da4a=_0x8a3477[_0x44d9f3(0x186)])==null?_0x438ac8:_0x50da4a,_0x364095=(_0x5600b6=_0x8a3477[_0x44d9f3(0x18a)])==null?_0x364095:_0x5600b6;}_0x1ac025[_0x44d9f3(0x13f)]({'width':_0x307bca,'height':_0x49dc24});let _0x5a077a=_0x1ac025[_0x44d9f3(0x1d0)]()[_0x44d9f3(0x16d)](_0x434924=>_0x434924[_0x44d9f3(0x17e)]===_0x170585);if(!_0x5a077a)return null;let _0x1a9241=_0xeb038?_0x307bca-_0x5a077a['x']:_0x5a077a['x'],_0x3caf6f=_0x438ac8?_0x49dc24-_0x5a077a['y']:_0x5a077a['y'];if(_0x364095!==0x0&&_0x364095!=null){let _0x5f4e99=_0x364095*Math['PI']/0xb4,_0x225fcc=Math['cos'](_0x5f4e99),_0x1d3e46=Math[_0x44d9f3(0x1d8)](_0x5f4e99),_0x32e3c0=_0x307bca/0x2,_0x5b2b2b=_0x49dc24/0x2,_0x463b62=_0x1a9241-_0x32e3c0,_0x5afcb4=_0x3caf6f-_0x5b2b2b;_0x1a9241=_0x32e3c0+_0x463b62*_0x225fcc-_0x5afcb4*_0x1d3e46,_0x3caf6f=_0x5b2b2b+_0x463b62*_0x1d3e46+_0x5afcb4*_0x225fcc;}_0x1a9241+=_0x5e4da5,_0x3caf6f+=_0xb995b3;let _0x415978=_0x5a077a[_0x44d9f3(0x173)]/0xea60;_0xeb038&&(_0x415978=0xb4-_0x415978),_0x438ac8&&(_0x415978=-_0x415978),_0x415978+=_0x364095||0x0,_0x415978=(_0x415978%0x168+0x168)%0x168;let _0x53a17b=(0x0,e[_0x44d9f3(0x192)])({'left':_0x5e4da5,'top':_0xb995b3,'width':_0x307bca,'height':_0x49dc24},_0x364095||0x0);return{'point':{'x':_0x1a9241,'y':_0x3caf6f},'angle':_0x415978,'bounds':_0x53a17b};}[_0x11106f(0x1ba)](_0x1f30b8,_0x4110ae,_0x284aba,_0x1808a4,_0x2bbd09,_0x1bb094,_0xfb58cc,_0x4a266d,_0x491cfb,_0x1b2d88){const _0x189907=_0x11106f;let _0x2cb991=this['_sheetSkeletonService'][_0x189907(0x1b2)](_0x1f30b8,_0x4110ae);if(!_0x2cb991)return;let _0x42f154=_0x1808a4[_0x189907(0x172)](),_0x4c5bb5=_0x1808a4[_0x189907(0x1ad)](),_0x477208={},_0x328fb8={};_0x4c5bb5['forEach'](_0x4b317d=>{const _0x1e234e=_0x189907;let _0x163048=_0x1808a4[_0x1e234e(0x11f)](_0x4b317d);_0x328fb8[_0x4b317d]=_0x163048==null?0x0:_0x163048;});let _0x305dab=this[_0x189907(0x18c)](_0x2bbd09,_0x1f30b8,_0x4110ae,_0x491cfb,_0x1b2d88),_0x2720e2=this[_0x189907(0x18c)](_0x1bb094,_0x1f30b8,_0x4110ae,_0x491cfb,_0x1b2d88);if(_0x305dab&&_0x2720e2){let _0x4ddb5e=_0x1808a4[_0x189907(0x15d)](),_0xa4fcfe=(0x0,e[_0x189907(0x1a9)])(_0x305dab,_0x2720e2,_0x4ddb5e),_0x45b862=_0x4ddb5e;if(_0xa4fcfe){let _0x3fcc2b=(0x0,e[_0x189907(0x130)])(_0xa4fcfe,_0x1808a4[_0x189907(0x15d)]()),_0x371cf3=this['_drawingManagerService'][_0x189907(0x120)](_0x1f30b8,_0x4110ae);if(_0x371cf3&&_0x371cf3[_0x284aba]){let _0x31935f=_0x371cf3[_0x284aba];_0x45b862=_0x3fcc2b[_0x189907(0x196)];for(let [_0x14ddcc,_0xa91759]of Object[_0x189907(0x148)](_0x3fcc2b[_0x189907(0x177)]))_0x477208[_0x14ddcc]=_0xa91759;let _0x200c13={..._0x31935f[_0x189907(0x138)],'width':_0x3fcc2b[_0x189907(0x1b4)][_0x189907(0x1b3)],'height':_0x3fcc2b['worldRect'][_0x189907(0x1c0)],'left':_0x3fcc2b[_0x189907(0x1b4)][_0x189907(0x1db)],'top':_0x3fcc2b[_0x189907(0x1b4)][_0x189907(0x134)],'flipX':_0x3fcc2b[_0x189907(0x1b4)]['flipX'],'flipY':_0x3fcc2b['worldRect'][_0x189907(0x186)],'angle':_0x3fcc2b[_0x189907(0x129)]},_0x3261d6=(0x0,r[_0x189907(0x1d5)])(_0x200c13,_0x2cb991),_0x478ffd=(0x0,r['transformToAxisAlignPosition'])(_0x200c13,_0x2cb991),_0x510ea4={'unitId':_0x1f30b8,'subUnitId':_0x4110ae,'drawingType':t['DrawingTypeEnum'][_0x189907(0x13a)],'drawingId':_0x284aba,'transform':_0x200c13,'sheetTransform':_0x3261d6,'axisAlignSheetTransform':_0x478ffd},{unitId:_0x91cfd7,subUnitId:_0x38a8cb,undo:_0x22762a,redo:_0x49dba3,objects:_0xecf8e7}=this[_0x189907(0x141)][_0x189907(0x12b)]([_0x510ea4]);_0xfb58cc[_0x189907(0x176)]({'id':r[_0x189907(0x168)]['id'],'params':{'unitId':_0x91cfd7,'subUnitId':_0x38a8cb,'op':_0x49dba3,'objects':_0xecf8e7,'type':r['DrawingApplyType'][_0x189907(0x157)]}}),_0x4a266d['push']({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x91cfd7,'subUnitId':_0x38a8cb,'op':_0x22762a,'objects':_0xecf8e7,'type':r[_0x189907(0x1c9)][_0x189907(0x157)]}});}_0x1808a4['removeLinePoints']();}_0xfb58cc[_0x189907(0x176)]({'id':_['id'],'params':{'unitId':_0x1f30b8,'subUnitId':_0x4110ae,'shapeId':_0x284aba,'shapeType':_0x45b862,'shapeData':{'adjustValues':_0x477208,'relation':_0x42f154}}}),_0x4a266d[_0x189907(0x176)]({'id':_['id'],'params':{'unitId':_0x1f30b8,'subUnitId':_0x4110ae,'shapeId':_0x284aba,'shapeType':_0x4ddb5e,'shapeData':{'adjustValues':_0x328fb8,'relation':_0x42f154}}});}}[_0x11106f(0x158)](_0x87f9d2,_0x3bd305,_0x3213a7,_0x2ea72f,_0x4679b4,_0x2c7e4e,_0x458ff2,_0xd51094,_0xbd8175,_0x350fa5){const _0x1478b1=_0x11106f;var _0x3d4afe;if(!_0x4679b4)return;let _0x1ceeee=this[_0x1478b1(0x126)][_0x1478b1(0x1b2)](_0x87f9d2,_0x3bd305);if(!_0x1ceeee)return;let _0xd5f06=(_0x3d4afe=this['_drawingManagerService'][_0x1478b1(0x1c2)]({'unitId':_0x87f9d2,'subUnitId':_0x3bd305,'drawingId':_0xbd8175}))==null?void 0x0:_0x3d4afe[_0x1478b1(0x138)];if(!_0xd5f06)return;let _0x3c5851=_0xd5f06['left']!==_0x350fa5['left']||_0xd5f06[_0x1478b1(0x134)]!==_0x350fa5[_0x1478b1(0x134)],_0x3c1e5e=_0xd5f06['width']!==_0x350fa5[_0x1478b1(0x1b3)]||_0xd5f06['height']!==_0x350fa5['height'],_0x175f33=_0xd5f06['flipX']!==_0x350fa5[_0x1478b1(0x163)]||_0xd5f06[_0x1478b1(0x186)]!==_0x350fa5['flipY'],_0xb5f9d3=_0xd5f06[_0x1478b1(0x18a)]!==_0x350fa5[_0x1478b1(0x18a)];if(_0x3c5851&&!_0x3c1e5e&&!_0x175f33&&!_0xb5f9d3){var _0x13c8d0,_0x49e999,_0x12791b,_0x52f227;let _0x52827a=((_0x13c8d0=_0x350fa5['left'])==null?0x0:_0x13c8d0)-((_0x49e999=_0xd5f06[_0x1478b1(0x1db)])==null?0x0:_0x49e999),_0x485ee7=((_0x12791b=_0x350fa5[_0x1478b1(0x134)])==null?0x0:_0x12791b)-((_0x52f227=_0xd5f06[_0x1478b1(0x134)])==null?0x0:_0x52f227),_0x46bde9=this[_0x1478b1(0x141)][_0x1478b1(0x120)](_0x87f9d2,_0x3bd305);if(_0x46bde9&&_0x46bde9[_0x3213a7]){var _0x38d494,_0x2b4eb9,_0x536d81,_0x432138;let _0x435820=_0x46bde9[_0x3213a7],_0x181a9c={..._0x435820[_0x1478b1(0x138)],'left':((_0x38d494=(_0x2b4eb9=_0x435820[_0x1478b1(0x138)])==null?void 0x0:_0x2b4eb9[_0x1478b1(0x1db)])==null?0x0:_0x38d494)+_0x52827a,'top':((_0x536d81=(_0x432138=_0x435820['transform'])==null?void 0x0:_0x432138[_0x1478b1(0x134)])==null?0x0:_0x536d81)+_0x485ee7},_0x5c915c=(0x0,r[_0x1478b1(0x1d5)])(_0x181a9c,_0x1ceeee),_0x503820=(0x0,r[_0x1478b1(0x1ae)])(_0x181a9c,_0x1ceeee),_0x12bfe1={'unitId':_0x87f9d2,'subUnitId':_0x3bd305,'drawingType':t[_0x1478b1(0x139)][_0x1478b1(0x13a)],'drawingId':_0x3213a7,'transform':_0x181a9c,'sheetTransform':_0x5c915c,'axisAlignSheetTransform':_0x503820},{unitId:_0x5e4648,subUnitId:_0x183a57,undo:_0x4d4389,redo:_0x7da653,objects:_0x2b7aa9}=this['_drawingManagerService'][_0x1478b1(0x12b)]([_0x12bfe1]);_0x458ff2['push']({'id':r[_0x1478b1(0x168)]['id'],'params':{'unitId':_0x5e4648,'subUnitId':_0x183a57,'op':_0x7da653,'objects':_0x2b7aa9,'type':r['DrawingApplyType']['UPDATE']}}),_0xd51094['push']({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5e4648,'subUnitId':_0x183a57,'op':_0x4d4389,'objects':_0x2b7aa9,'type':r[_0x1478b1(0x1c9)]['UPDATE']}});}}else{let _0xd1ea77=_0x2ea72f[_0x1478b1(0x1d4)](),_0x25ef76=_0x2ea72f[_0x1478b1(0x167)]();this['_addLineRerouteUpdates'](_0x87f9d2,_0x3bd305,_0x3213a7,_0x2ea72f,_0xd1ea77,_0x25ef76,_0x458ff2,_0xd51094,_0xbd8175,_0x350fa5);}}};k=f([d(0x0,t[_0x11106f(0x121)]),d(0x1,(0x0,t[_0x11106f(0x146)])(n[_0x11106f(0x17f)])),d(0x2,(0x0,t[_0x11106f(0x146)])(n['SheetSkeletonService'])),d(0x3,(0x0,t[_0x11106f(0x146)])(p)),d(0x4,(0x0,t[_0x11106f(0x146)])(a[_0x11106f(0x16c)]))],k);let A=class extends t[_0x11106f(0x1bf)]{constructor(_0x3cecec=O,_0x71aef2,_0xd98233,_0x2f0038){const _0x3fdd4d=_0x11106f;super(),this['_config']=_0x3cecec,this[_0x3fdd4d(0x1c1)]=_0x71aef2,this[_0x3fdd4d(0x155)]=_0xd98233,this['_configService']=_0x2f0038;let {..._0x2f143e}=(0x0,t[_0x3fdd4d(0x12f)])({},O,this[_0x3fdd4d(0x125)]);this[_0x3fdd4d(0x1cf)][_0x3fdd4d(0x195)](D,_0x2f143e);}[_0x11106f(0x150)](){const _0x143c99=_0x11106f;let _0x4f0368=this[_0x143c99(0x1c1)];[[u],[p],[k]]['forEach'](_0x102769=>_0x4f0368[_0x143c99(0x16f)](_0x102769)),(0x0,t[_0x143c99(0x1cd)])(_0x4f0368,[[p],[k]]);}};l(A,_0x11106f(0x162),t[_0x11106f(0x1ca)][_0x11106f(0x18e)]),l(A,_0x11106f(0x1df),'SHEET_SHAPE_PLUGIN'),l(A,'packageName',T),l(A,'version',E),A=f([(0x0,t[_0x11106f(0x1e4)])(i['UniverLicensePlugin']),d(0x1,(0x0,t[_0x11106f(0x146)])(t['Injector'])),d(0x2,t[_0x11106f(0x121)]),d(0x3,t['IConfigService'])],A),exports[_0x11106f(0x12a)]=0xc8,exports[_0x11106f(0x15e)]=0xc8,exports[_0x11106f(0x1dc)]=g,exports[_0x11106f(0x156)]=m,exports[_0x11106f(0x198)]=h,exports[_0x11106f(0x136)]=v,exports[_0x11106f(0x14f)]=b,Object[_0x11106f(0x153)](exports,'SheetsShapeService',{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x11106f(0x19f)]=y,Object[_0x11106f(0x153)](exports,_0x11106f(0x1a6),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x11106f(0x185)]=x,exports['UpdateLineShapeResizeCommand']=S,exports[_0x11106f(0x1bd)]=_,exports['UpdateSheetsShapeTypeCommand']=w,exports[_0x11106f(0x165)]=C;
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;