@univerjs-pro/sheets-shape 0.25.0 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2073d0=_0x50e3;(function(_0x475033,_0x1bce5f){const _0x2284ed=_0x50e3,_0x49e1ef=_0x475033();while(!![]){try{const _0x3ab621=parseInt(_0x2284ed(0x17b))/0x1*(-parseInt(_0x2284ed(0x11f))/0x2)+-parseInt(_0x2284ed(0x10e))/0x3+-parseInt(_0x2284ed(0x14e))/0x4+-parseInt(_0x2284ed(0x137))/0x5*(-parseInt(_0x2284ed(0x16d))/0x6)+-parseInt(_0x2284ed(0x11a))/0x7*(-parseInt(_0x2284ed(0x145))/0x8)+parseInt(_0x2284ed(0x173))/0x9*(-parseInt(_0x2284ed(0x105))/0xa)+-parseInt(_0x2284ed(0x164))/0xb*(-parseInt(_0x2284ed(0x15b))/0xc);if(_0x3ab621===_0x1bce5f)break;else _0x49e1ef['push'](_0x49e1ef['shift']());}catch(_0x4ae1d6){_0x49e1ef['push'](_0x49e1ef['shift']());}}}(_0x3850,0x2ecc9));import{ConnectorCoordinateTransform as _0x3d6405,ShapeArrowSizeEnum as _0x5ad41c,ShapeArrowTypeEnum as _0x489d00,ShapeFillEnum as _0x3a3330,ShapeGradientTypeEnum as _0x528bbb,ShapeLineCapEnum as _0x5bde8f,ShapeLineDashEnum as _0x9c15d2,ShapeLineJoinEnum as _0x38c71a,ShapeLineTypeEnum as _0xd5ba2a,ShapeTypeEnum as _0x19ac2c,computeConnectorRouteLayout as _0x416057,getBasicShapeRotateBound as _0x2e4726,isConnectorShape as _0x41643b,routeConnectorLineShape as _0x232c7e}from'@univerjs-pro/engine-shape';import{FEnum as _0x285a81}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x54d06d,DEFAULT_SHAPE_WIDTH as _0x2bb6ff,InsertShapeCommand as _0x531a5c,SetShapeDrawingDataCommand as _0x4a74ed,SheetsShapeService as _0x20e1c9,UpdateConnectorRelationCommand as _0x127ca0}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x232e10,generateRandomId as _0x1e925e}from'@univerjs/core';import{IDrawingManagerService as _0x5859f8}from'@univerjs/drawing';import{SheetSkeletonService as _0x2a796e,convertPositionCellToSheetOverGrid as _0x3621c7}from'@univerjs/sheets';import{ISheetDrawingService as _0x286869,RemoveSheetDrawingCommand as _0x4ddd72}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26843a}from'@univerjs/sheets/facade';var k=class extends _0x285a81{get[_0x2073d0(0x176)](){return _0x19ac2c;}get[_0x2073d0(0x100)](){return _0x3a3330;}get['ShapeGradientTypeEnum'](){return _0x528bbb;}get['ShapeLineTypeEnum'](){return _0xd5ba2a;}get[_0x2073d0(0x14b)](){return _0x9c15d2;}get[_0x2073d0(0x16c)](){return _0x5bde8f;}get[_0x2073d0(0x14a)](){return _0x38c71a;}get[_0x2073d0(0x172)](){return _0x489d00;}get[_0x2073d0(0xff)](){return _0x5ad41c;}};_0x285a81[_0x2073d0(0x179)](k);function A(_0x225554){'@babel/helpers - typeof';const _0x20d739=_0x2073d0;return A=typeof Symbol==_0x20d739(0x12b)&&typeof Symbol[_0x20d739(0x142)]==_0x20d739(0x16b)?function(_0x52afcc){return typeof _0x52afcc;}:function(_0x56b91b){const _0x1db4c9=_0x20d739;return _0x56b91b&&typeof Symbol==_0x1db4c9(0x12b)&&_0x56b91b[_0x1db4c9(0x12c)]===Symbol&&_0x56b91b!==Symbol[_0x1db4c9(0x119)]?_0x1db4c9(0x16b):typeof _0x56b91b;},A(_0x225554);}function j(_0x228039,_0x1741b4){const _0x3fa298=_0x2073d0;if(A(_0x228039)!=_0x3fa298(0xfd)||!_0x228039)return _0x228039;var _0x19a606=_0x228039[Symbol[_0x3fa298(0x132)]];if(_0x19a606!==void 0x0){var _0x1a93f6=_0x19a606[_0x3fa298(0x110)](_0x228039,_0x1741b4||_0x3fa298(0x12d));if(A(_0x1a93f6)!=_0x3fa298(0xfd))return _0x1a93f6;throw TypeError(_0x3fa298(0x174));}return(_0x1741b4===_0x3fa298(0x149)?String:Number)(_0x228039);}function M(_0x11b371){const _0x562743=_0x2073d0;var _0x16ade0=j(_0x11b371,_0x562743(0x149));return A(_0x16ade0)==_0x562743(0x16b)?_0x16ade0:_0x16ade0+'';}function N(_0x4e130c,_0x30f0b1,_0x3b46ce){const _0x2393fa=_0x2073d0;return(_0x30f0b1=M(_0x30f0b1))in _0x4e130c?Object[_0x2393fa(0x13f)](_0x4e130c,_0x30f0b1,{'value':_0x3b46ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e130c[_0x30f0b1]=_0x3b46ce,_0x4e130c;}var P=class{constructor(_0x20e8ef,_0x34908c,_0x34c3c7,_0x15c43e){const _0x7cf93d=_0x2073d0;N(this,'unitId',void 0x0),N(this,_0x7cf93d(0x134),void 0x0),N(this,_0x7cf93d(0x124),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x7cf93d(0x128),_0x2bb6ff),N(this,'height',_0x54d06d),N(this,_0x7cf93d(0x108),void 0x0),N(this,'shapeData',{}),N(this,'_injector',void 0x0),this['unitId']=_0x20e8ef,this[_0x7cf93d(0x134)]=_0x34908c,this['drawId']=_0x34c3c7||_0x1e925e(),this['_injector']=_0x15c43e;}['setPosition'](_0x419b52,_0x1c0591,_0x5e8729,_0x4e7134){const _0x341e00=_0x2073d0;let _0x595d86=this['_injector'][_0x341e00(0x141)](_0x2a796e)[_0x341e00(0x150)](this[_0x341e00(0x13a)],this['subUnitId']);if(!_0x595d86)throw Error(_0x341e00(0x10c)+this[_0x341e00(0x13a)]+_0x341e00(0x11b)+this[_0x341e00(0x134)]+_0x341e00(0x118));let {transform:_0x1ad084}=_0x3621c7(this['unitId'],this[_0x341e00(0x134)],{'row':_0x419b52,'column':_0x1c0591,'rowOffset':_0x5e8729,'columnOffset':_0x4e7134},0x1,0x1,_0x595d86);return this['x']=_0x1ad084[_0x341e00(0x16f)],this['y']=_0x1ad084['top'],this;}[_0x2073d0(0x125)](_0x530858,_0x83146c){return this['x']=_0x530858,this['y']=_0x83146c,this;}[_0x2073d0(0x17a)](_0x3c453a){const _0x37eb18=_0x2073d0;return this[_0x37eb18(0x108)]=_0x3c453a,this;}[_0x2073d0(0x102)](_0x40337b,_0x1f0d70){const _0x42b5b9=_0x2073d0;return this['shapeData'][_0x42b5b9(0x14f)]||(this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)]={}),this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)][_0x42b5b9(0x117)]=_0x3a3330[_0x42b5b9(0x15f)],_0x40337b!==void 0x0&&(this['shapeData'][_0x42b5b9(0x14f)]['color']=_0x40337b),_0x1f0d70!==void 0x0&&(this[_0x42b5b9(0x113)]['fill'][_0x42b5b9(0x111)]=_0x1f0d70),this;}['setShapeGradientFill'](_0x20c8ed,_0x1c47bf,_0x54a4a5){const _0x136a73=_0x2073d0;if(_0x1c47bf===void 0x0||_0x1c47bf[_0x136a73(0x109)]===0x0)throw Error(_0x136a73(0x15d));return this[_0x136a73(0x113)][_0x136a73(0x14f)]||(this[_0x136a73(0x113)][_0x136a73(0x14f)]={}),this[_0x136a73(0x113)]['fill'][_0x136a73(0x103)]=_0x1c47bf,this[_0x136a73(0x113)]['fill']['fillType']=_0x3a3330['GradientFill'],this[_0x136a73(0x113)][_0x136a73(0x14f)][_0x136a73(0x133)]=_0x20c8ed,_0x54a4a5!==void 0x0&&(this['shapeData'][_0x136a73(0x14f)][_0x136a73(0x148)]=_0x54a4a5),this;}['setNoneFill'](){const _0x4d0f6a=_0x2073d0;return this[_0x4d0f6a(0x113)][_0x4d0f6a(0x14f)]={'fillType':_0x3a3330['NoFill']},this;}['setStrokeColor'](_0x2cf5c4){const _0x33a6da=_0x2073d0;return this['shapeData'][_0x33a6da(0x13d)]||(this['shapeData'][_0x33a6da(0x13d)]={}),this[_0x33a6da(0x113)]['stroke'][_0x33a6da(0x144)]=_0x2cf5c4,this;}[_0x2073d0(0x104)](_0x3edf8f){const _0x21cd92=_0x2073d0;return this[_0x21cd92(0x113)][_0x21cd92(0x13d)]||(this[_0x21cd92(0x113)][_0x21cd92(0x13d)]={}),this[_0x21cd92(0x113)]['stroke']['width']=_0x3edf8f,this;}[_0x2073d0(0x154)](_0xc8b615){const _0x141a2f=_0x2073d0;return this[_0x141a2f(0x113)][_0x141a2f(0x13d)]||(this['shapeData'][_0x141a2f(0x13d)]={}),this[_0x141a2f(0x113)][_0x141a2f(0x13d)][_0x141a2f(0x177)]=_0xc8b615,this;}[_0x2073d0(0x170)](_0x27009f){const _0x3eca22=_0x2073d0;return this[_0x3eca22(0x113)][_0x3eca22(0x13d)]||(this[_0x3eca22(0x113)][_0x3eca22(0x13d)]={}),this[_0x3eca22(0x113)][_0x3eca22(0x13d)][_0x3eca22(0x162)]=_0x27009f,this;}[_0x2073d0(0x175)](_0x120d8d){const _0x120387=_0x2073d0;return this[_0x120387(0x113)][_0x120387(0x13d)]||(this[_0x120387(0x113)][_0x120387(0x13d)]={}),this[_0x120387(0x113)][_0x120387(0x13d)][_0x120387(0x107)]=_0x120d8d,this;}[_0x2073d0(0x139)](_0x1ec9e1){const _0x21fd27=_0x2073d0;return this[_0x21fd27(0x113)][_0x21fd27(0x13d)]||(this[_0x21fd27(0x113)][_0x21fd27(0x13d)]={}),this['shapeData'][_0x21fd27(0x13d)][_0x21fd27(0x111)]=_0x1ec9e1,this;}[_0x2073d0(0x160)](_0x250605){const _0x243c75=_0x2073d0;return this[_0x243c75(0x113)]['stroke']||(this[_0x243c75(0x113)]['stroke']={}),this['shapeData'][_0x243c75(0x13d)]['lineStrokeType']=_0x250605,this;}[_0x2073d0(0x163)](_0x947657){const _0x2f31fd=_0x2073d0;return this[_0x2f31fd(0x128)]=_0x947657,this;}['setHeight'](_0x4617d3){const _0x17d03b=_0x2073d0;return this[_0x17d03b(0x152)]=_0x4617d3,this;}['isLineShape'](){const _0x3efe3b=_0x2073d0;let _0x15f071=this[_0x3efe3b(0x147)][_0x3efe3b(0x141)](_0x20e1c9)[_0x3efe3b(0x138)](this[_0x3efe3b(0x13a)],this[_0x3efe3b(0x134)],this[_0x3efe3b(0x124)]);return _0x15f071?_0x41643b(_0x15f071['getShapeType']()):this[_0x3efe3b(0x108)]?_0x41643b(this[_0x3efe3b(0x108)]):!0x1;}[_0x2073d0(0x10a)](){const _0x35cc6f=_0x2073d0;let _0x57d285=this[_0x35cc6f(0x147)][_0x35cc6f(0x141)](_0x20e1c9)['getShapeModel'](this['unitId'],this[_0x35cc6f(0x134)],this[_0x35cc6f(0x124)]);if(!_0x57d285)return[];let _0x21b566=this['_injector'][_0x35cc6f(0x141)](_0x5859f8)[_0x35cc6f(0x167)]({'unitId':this[_0x35cc6f(0x13a)],'subUnitId':this[_0x35cc6f(0x134)],'drawingId':this[_0x35cc6f(0x124)]});if(!(_0x21b566!=null&&_0x21b566[_0x35cc6f(0x126)]))return[];let {width:_0x499262=0x0,height:_0x84cab0=0x0}=_0x21b566[_0x35cc6f(0x126)];return _0x57d285['updateContext']({'width':_0x499262,'height':_0x84cab0}),_0x57d285[_0x35cc6f(0x17d)]();}['getAdjustPoints'](){const _0x366fcb=_0x2073d0;let _0x3a8d6e=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x20e1c9)['getShapeModel'](this[_0x366fcb(0x13a)],this[_0x366fcb(0x134)],this[_0x366fcb(0x124)]);if(!_0x3a8d6e)return[];let _0x32d5e7=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x366fcb(0x134)],'drawingId':this['drawId']});if(!(_0x32d5e7!=null&&_0x32d5e7[_0x366fcb(0x126)]))return[];let {width:_0x31ad76=0x0,height:_0x3ccd74=0x0}=_0x32d5e7[_0x366fcb(0x126)];return _0x3a8d6e[_0x366fcb(0x178)]({'width':_0x31ad76,'height':_0x3ccd74}),_0x3a8d6e[_0x366fcb(0x181)]();}[_0x2073d0(0x15c)](){const _0x35b28e=_0x2073d0;let _0x5707ab=this[_0x35b28e(0x147)]['get'](_0x20e1c9)[_0x35b28e(0x138)](this[_0x35b28e(0x13a)],this[_0x35b28e(0x134)],this[_0x35b28e(0x124)]);if(!_0x5707ab||!_0x41643b(_0x5707ab['getShapeType']()))return[];let _0x2cf68a=this[_0x35b28e(0x147)][_0x35b28e(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this[_0x35b28e(0x13a)],'subUnitId':this[_0x35b28e(0x134)],'drawingId':this['drawId']});if(!(_0x2cf68a!=null&&_0x2cf68a[_0x35b28e(0x126)]))return[];let {width:_0x4d9961=0x0,height:_0x1d74ec=0x0}=_0x2cf68a[_0x35b28e(0x126)];return _0x5707ab['updateContext']({'width':_0x4d9961,'height':_0x1d74ec}),_0x5707ab[_0x35b28e(0x15c)]();}[_0x2073d0(0x13e)](){const _0x30fa57=_0x2073d0;var _0x3c1b13;let _0x2a172c=this['_injector'][_0x30fa57(0x141)](_0x20e1c9)[_0x30fa57(0x138)](this['unitId'],this[_0x30fa57(0x134)],this[_0x30fa57(0x124)]);return _0x2a172c?(_0x3c1b13=_0x2a172c[_0x30fa57(0x13e)]())==null?null:_0x3c1b13:null;}['getEndConnectInfo'](){const _0x2dce52=_0x2073d0;var _0x49a276;let _0x34e3a4=this[_0x2dce52(0x147)][_0x2dce52(0x141)](_0x20e1c9)[_0x2dce52(0x138)](this[_0x2dce52(0x13a)],this[_0x2dce52(0x134)],this[_0x2dce52(0x124)]);return _0x34e3a4?(_0x49a276=_0x34e3a4[_0x2dce52(0x12a)]())==null?null:_0x49a276:null;}['build'](){const _0x159906=_0x2073d0;var _0x39faed,_0x35fb85;if(!this['shapeType'])throw Error(_0x159906(0x112));if(this['x']===0x0||this['y']===0x0){let _0x5c04f9=this[_0x159906(0x147)][_0x159906(0x141)](_0x2a796e)[_0x159906(0x150)](this[_0x159906(0x13a)],this[_0x159906(0x134)]);if(!_0x5c04f9)throw Error(_0x159906(0x10c)+this[_0x159906(0x13a)]+_0x159906(0x11b)+this[_0x159906(0x134)]+_0x159906(0x118));let {transform:_0x23f34f}=_0x3621c7(this[_0x159906(0x13a)],this[_0x159906(0x134)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5c04f9);this['x']=this['x']>0x0?this['x']:_0x23f34f[_0x159906(0x16f)],this['y']=this['y']>0x0?this['y']:_0x23f34f['top'];}return this['width']=(_0x39faed=this[_0x159906(0x128)])==null?_0x2bb6ff:_0x39faed,this[_0x159906(0x152)]=(_0x35fb85=this[_0x159906(0x152)])==null?_0x54d06d:_0x35fb85,{'unitId':this[_0x159906(0x13a)],'subUnitId':this[_0x159906(0x134)],'shapeId':this[_0x159906(0x124)],'shapeType':this[_0x159906(0x108)],'shapeData':Object['keys'](this['shapeData'])[_0x159906(0x109)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x159906(0x128)],'height':this['height']};}[_0x2073d0(0x15e)](){const _0x36fd05=_0x2073d0;return this[_0x36fd05(0x124)];}[_0x2073d0(0x166)](){const _0xf3e0f=_0x2073d0;return this[_0xf3e0f(0x108)];}[_0x2073d0(0x13b)](){return this['shapeData'];}[_0x2073d0(0x13c)](){return{'x':this['x'],'y':this['y']};}[_0x2073d0(0x153)](){const _0x431f8e=_0x2073d0;return{'width':this[_0x431f8e(0x128)],'height':this[_0x431f8e(0x152)]};}},F=class extends P{constructor(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633){const _0x300717=_0x2073d0;super(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633),N(this,_0x300717(0x113),{});}[_0x2073d0(0x17a)](_0x3fc44b){const _0x11a330=_0x2073d0;if(!_0x41643b(_0x3fc44b))throw Error(_0x11a330(0x15a)+_0x3fc44b+_0x11a330(0x11d));return super[_0x11a330(0x17a)](_0x3fc44b),this;}[_0x2073d0(0x169)](_0x54b41b){const _0x492bc8=_0x2073d0;var _0x2a9c30,_0x2ba152;return(_0x2a9c30=this[_0x492bc8(0x113)])!=null&&_0x2a9c30['ln']||(this[_0x492bc8(0x113)]['ln']={}),!((_0x2ba152=this['shapeData'])==null||(_0x2ba152=_0x2ba152['ln'])==null)&&_0x2ba152[_0x492bc8(0x135)]||(this[_0x492bc8(0x113)]['ln'][_0x492bc8(0x135)]={}),this['shapeData']['ln'][_0x492bc8(0x135)][_0x492bc8(0x106)]=_0x54b41b,this;}[_0x2073d0(0x129)](_0x38835a){const _0x2a9fc6=_0x2073d0;var _0x59c056,_0x326b37;return(_0x59c056=this[_0x2a9fc6(0x113)])!=null&&_0x59c056['ln']||(this[_0x2a9fc6(0x113)]['ln']={}),!((_0x326b37=this[_0x2a9fc6(0x113)])==null||(_0x326b37=_0x326b37['ln'])==null)&&_0x326b37[_0x2a9fc6(0x16a)]||(this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)]={}),this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)][_0x2a9fc6(0x106)]=_0x38835a,this;}[_0x2073d0(0x151)](_0x51992a){const _0x25b33a=_0x2073d0;var _0x49a6a2,_0xee6c92;return(_0x49a6a2=this[_0x25b33a(0x113)])!=null&&_0x49a6a2['ln']||(this[_0x25b33a(0x113)]['ln']={}),!((_0xee6c92=this[_0x25b33a(0x113)])==null||(_0xee6c92=_0xee6c92['ln'])==null)&&_0xee6c92[_0x25b33a(0x135)]||(this['shapeData']['ln'][_0x25b33a(0x135)]={}),this[_0x25b33a(0x113)]['ln'][_0x25b33a(0x135)]['size']=_0x51992a,this;}[_0x2073d0(0x10f)](_0x428a18){const _0x1341d4=_0x2073d0;var _0x193612,_0x598518;return(_0x193612=this[_0x1341d4(0x113)])!=null&&_0x193612['ln']||(this[_0x1341d4(0x113)]['ln']={}),!((_0x598518=this['shapeData'])==null||(_0x598518=_0x598518['ln'])==null)&&_0x598518[_0x1341d4(0x16a)]||(this[_0x1341d4(0x113)]['ln'][_0x1341d4(0x16a)]={}),this['shapeData']['ln']['endArrow'][_0x1341d4(0x114)]=_0x428a18,this;}[_0x2073d0(0x123)](){return super['build']();}[_0x2073d0(0x12a)](){const _0x48a8cb=_0x2073d0;var _0x508e8f;return((_0x508e8f=this[_0x48a8cb(0x113)])==null||(_0x508e8f=_0x508e8f[_0x48a8cb(0x10d)])==null?void 0x0:_0x508e8f['to'])||null;}[_0x2073d0(0x13e)](){const _0x16f374=_0x2073d0;var _0x36e906;return((_0x36e906=this['shapeData'])==null||(_0x36e906=_0x36e906[_0x16f374(0x10d)])==null?void 0x0:_0x36e906[_0x16f374(0x140)])||null;}};function _0x50e3(_0x2fa40d,_0xfe81f8){_0x2fa40d=_0x2fa40d-0xfd;const _0x3850f=_0x3850();let _0x50e3fb=_0x3850f[_0x2fa40d];return _0x50e3fb;}function I(_0x1ea84a,_0x11c3bb,_0x4d5b2b,_0x144136,_0x1fbdfb,_0x42223b){const _0x4eb539=_0x2073d0;let _0x36eb6c=_0x1fbdfb[_0x4eb539(0x138)](_0x1ea84a,_0x11c3bb,_0x4d5b2b);if(!_0x36eb6c)return null;let _0x39c776=_0x42223b[_0x4eb539(0x167)]({'unitId':_0x1ea84a,'subUnitId':_0x11c3bb,'drawingId':_0x4d5b2b});if(!(_0x39c776!=null&&_0x39c776[_0x4eb539(0x126)]))return null;let {left:_0x1441a3=0x0,top:_0x3ba489=0x0,width:_0x3839cb=0x0,height:_0x139193=0x0,flipX:_0x15b9c8=!0x1,flipY:_0xd9d57e=!0x1,angle:_0x4040b5}=_0x39c776[_0x4eb539(0x126)];_0x36eb6c[_0x4eb539(0x178)]({'width':_0x3839cb,'height':_0x139193});let _0xb55f01=_0x36eb6c[_0x4eb539(0x17d)]()[_0x4eb539(0x168)](_0x38b637=>_0x38b637[_0x4eb539(0x155)]===_0x144136);if(!_0xb55f01)return null;let _0x580226=_0x15b9c8?_0x3839cb-_0xb55f01['x']:_0xb55f01['x'],_0x1d2d55=_0xd9d57e?_0x139193-_0xb55f01['y']:_0xb55f01['y'];if(_0x4040b5&&_0x4040b5!==0x0){let _0x76d71d=_0x4040b5*Math['PI']/0xb4,_0x4da6ba=Math['cos'](_0x76d71d),_0x4ac009=Math['sin'](_0x76d71d),_0x5ac38a=_0x3839cb/0x2,_0x58cf81=_0x139193/0x2,_0x49b4c3=_0x580226-_0x5ac38a,_0x303cea=_0x1d2d55-_0x58cf81;_0x580226=_0x5ac38a+_0x49b4c3*_0x4da6ba-_0x303cea*_0x4ac009,_0x1d2d55=_0x58cf81+_0x49b4c3*_0x4ac009+_0x303cea*_0x4da6ba;}_0x580226+=_0x1441a3,_0x1d2d55+=_0x3ba489;let _0xee3483=_0xb55f01[_0x4eb539(0x127)]/0xea60;_0x15b9c8&&(_0xee3483=0xb4-_0xee3483),_0xd9d57e&&(_0xee3483=-_0xee3483),_0xee3483+=_0x4040b5||0x0,_0xee3483=(_0xee3483%0x168+0x168)%0x168;let _0x97dd2a=_0x2e4726({'left':_0x1441a3,'top':_0x3ba489,'width':_0x3839cb,'height':_0x139193},_0x4040b5||0x0);return{'point':{'x':_0x580226,'y':_0x1d2d55},'angle':_0xee3483,'bounds':_0x97dd2a};}function L(_0xd9db51,_0x427b52){const _0x14836b=_0x2073d0;let _0x4f9a3e=_0x427b52['x']-_0xd9db51['x'],_0x2f3722=_0x427b52['y']-_0xd9db51['y'];return Math[_0x14836b(0x146)](_0x4f9a3e)>=Math[_0x14836b(0x146)](_0x2f3722)?_0x4f9a3e>=0x0?0xb4:0x0:_0x2f3722>=0x0?0x10e:0x5a;}function R(_0x1e624f,_0x1205be,_0x442b34,_0x2fa904,_0x2c28a0,_0x25401d,_0x1d5964){const _0x36f955=_0x2073d0;let _0x36fa44=_0x25401d[_0x36f955(0x138)](_0x1e624f,_0x1205be,_0x442b34);if(!_0x36fa44)return null;let _0x190196=_0x1d5964[_0x36f955(0x167)]({'unitId':_0x1e624f,'subUnitId':_0x1205be,'drawingId':_0x442b34});if(!(_0x190196!=null&&_0x190196['transform']))return null;let {left:_0x4df48d=0x0,top:_0x3d4101=0x0,width:_0x5362e1=0x0,height:_0x1e72f2=0x0,flipX:_0xf75ca4=!0x1,flipY:_0x47df41=!0x1}=_0x190196[_0x36f955(0x126)];_0x36fa44[_0x36f955(0x178)]({'width':_0x5362e1,'height':_0x1e72f2});let _0x37cecd=_0x36fa44[_0x36f955(0x15c)]();if(_0x37cecd['length']<0x2)return null;let _0x4e2914=_0x2fa904?_0x37cecd[0x0]:_0x37cecd[_0x37cecd[_0x36f955(0x109)]-0x1],_0x32ea50=new _0x3d6405({'left':_0x4df48d,'top':_0x3d4101,'width':_0x5362e1,'height':_0x1e72f2,'flipX':_0xf75ca4,'flipY':_0x47df41})[_0x36f955(0x122)](_0x4e2914);return{'point':_0x32ea50,'angle':L(_0x2c28a0[_0x36f955(0x11e)],_0x32ea50),'bounds':{'left':_0x32ea50['x'],'top':_0x32ea50['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26843a{async[_0x2073d0(0x12f)](_0x228b61){const _0x18db8e=_0x2073d0;let {unitId:_0x59bb3b,subUnitId:_0x27dfbf,shapeId:_0x2b017d,shapeType:_0x3cb272,shapeData:_0x175002,x:_0x32eb35,y:_0x2339a1,width:_0x56517e,height:_0x2950ff}=_0x228b61;return this[_0x18db8e(0x17e)]['executeCommand'](_0x531a5c['id'],{'unitId':_0x59bb3b,'subUnitId':_0x27dfbf,'shapeId':_0x2b017d,'shapeType':_0x3cb272,'shapeData':_0x175002,'position':{'x':_0x32eb35,'y':_0x2339a1},'width':_0x56517e,'height':_0x2950ff});}async[_0x2073d0(0x182)](_0x2b95f0){const _0x32fbc6=_0x2073d0;let {unitId:_0x38909b,subUnitId:_0x29ed2d,shapeId:_0x596c6f,shapeType:_0x3ddeba,shapeData:_0x3b9f1a,x:_0x3c101d,y:_0x1bd4d0,width:_0x221812,height:_0x3a370f}=_0x2b95f0;return this[_0x32fbc6(0x17e)][_0x32fbc6(0x161)](_0x4a74ed['id'],{'unitId':_0x38909b,'subUnitId':_0x29ed2d,'shapeId':_0x596c6f,'shapeType':_0x3ddeba,'shapeData':_0x3b9f1a,'position':{'x':_0x3c101d,'y':_0x1bd4d0},'width':_0x221812,'height':_0x3a370f});}[_0x2073d0(0x183)](_0x566203){const _0x4aedf4=_0x2073d0;let _0x2a5338=this[_0x4aedf4(0x165)]()[_0x4aedf4(0x101)](),_0x11207a=this[_0x4aedf4(0x10b)]();if(_0x566203){let _0x4ec868=new P(_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)],this[_0x4aedf4(0x147)]);return this[_0x4aedf4(0x17f)](_0x4ec868,_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)]),_0x4ec868;}return new P(_0x2a5338,_0x11207a,_0x1e925e(),this['_injector']);}[_0x2073d0(0x157)](_0xe2e812){const _0x5d6944=_0x2073d0;let _0x4c2631=this['getWorkbook']()[_0x5d6944(0x101)](),_0x1abd34=this[_0x5d6944(0x10b)]();if(_0xe2e812){let _0x5b10f5=new F(_0x4c2631,_0x1abd34,_0xe2e812['drawId'],this[_0x5d6944(0x147)]);return this['_preloadShapeProperties'](_0x5b10f5,_0x4c2631,_0x1abd34,_0xe2e812['drawId']),_0x5b10f5;}return new F(_0x4c2631,_0x1abd34,_0x1e925e(),this[_0x5d6944(0x147)]);}[_0x2073d0(0x17c)](){const _0x785d49=_0x2073d0;let _0x5c6e7e=this[_0x785d49(0x147)]['get'](_0x286869),_0x1d58cc=this[_0x785d49(0x165)]()[_0x785d49(0x101)](),_0x4d67cf=this[_0x785d49(0x10b)](),_0x1e3770=_0x5c6e7e['getDrawingData'](_0x1d58cc,_0x4d67cf);if(!_0x1e3770)return[];let _0x12cb43=[];for(let [_0x30ca2b,_0x3f3b0a]of Object[_0x785d49(0x131)](_0x1e3770))if(_0x3f3b0a&&_0x3f3b0a[_0x785d49(0x12e)]===_0x232e10[_0x785d49(0x14c)]){let _0x2e8241=new P(_0x1d58cc,_0x4d67cf,_0x30ca2b,this[_0x785d49(0x147)]);this[_0x785d49(0x17f)](_0x2e8241,_0x1d58cc,_0x4d67cf,_0x30ca2b),_0x12cb43[_0x785d49(0x16e)](_0x2e8241);}return _0x12cb43;}['removeShape'](_0x3f88a9){const _0x36600d=_0x2073d0;let {unitId:_0x3abbdf,subUnitId:_0x593ca7,drawId:_0x5be6d6}=_0x3f88a9;return this['_commandService'][_0x36600d(0x161)](_0x4ddd72['id'],{'unitId':_0x3abbdf,'drawings':[{'unitId':_0x3abbdf,'subUnitId':_0x593ca7,'drawingId':_0x5be6d6,'drawingType':_0x232e10[_0x36600d(0x14c)]}]});}async[_0x2073d0(0x156)](_0xeddc22){const _0x6d5380=_0x2073d0;let {connector:_0x3d9e66,startTarget:_0x1dc056,endTarget:_0x315b47}=_0xeddc22;if(!_0x1dc056&&!_0x315b47)return!0x1;let _0x3930cc=this[_0x6d5380(0x165)]()['getUnitId'](),_0x223325=this[_0x6d5380(0x10b)](),_0x367dea=this[_0x6d5380(0x147)][_0x6d5380(0x141)](_0x20e1c9),_0x7afc88=this['_injector'][_0x6d5380(0x141)](_0x5859f8),_0x5c4874=_0x367dea[_0x6d5380(0x138)](_0x3930cc,_0x223325,_0x3d9e66[_0x6d5380(0x124)]);if(!_0x5c4874)return!0x1;let _0x27291a=_0x5c4874[_0x6d5380(0x166)](),_0x36828e=_0x5c4874[_0x6d5380(0x136)](),_0x59e299={};for(let _0xc305ff of _0x5c4874[_0x6d5380(0x143)]()){let _0x5d95c2=_0x5c4874['getAdjustValueByName'](_0xc305ff);_0x5d95c2!==void 0x0&&(_0x59e299[_0xc305ff]=_0x5d95c2);}let {startInfo:_0x20eb1d,endInfo:_0x233692}=this[_0x6d5380(0x115)](_0x3930cc,_0x223325,_0x3d9e66,_0x5c4874,_0x1dc056,_0x315b47,_0x367dea,_0x7afc88,_0x36828e);if(!_0x20eb1d||!_0x233692)return!0x1;let _0x1c4a0f=_0x416057(_0x232c7e(_0x20eb1d,_0x233692,_0x27291a),_0x27291a),_0x24922a={};return _0x1dc056?_0x24922a[_0x6d5380(0x140)]={'shapeId':_0x1dc056[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x1dc056['connectionSiteIndex']}:_0x36828e!=null&&_0x36828e['from']&&(_0x24922a[_0x6d5380(0x140)]=_0x36828e[_0x6d5380(0x140)]),_0x315b47?_0x24922a['to']={'shapeId':_0x315b47[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x315b47[_0x6d5380(0x180)]}:_0x36828e!=null&&_0x36828e['to']&&(_0x24922a['to']=_0x36828e['to']),this[_0x6d5380(0x17e)][_0x6d5380(0x161)](_0x127ca0['id'],{'unitId':_0x3930cc,'subUnitId':_0x223325,'connectorShapeId':_0x3d9e66[_0x6d5380(0x124)],'width':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x128)],'height':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x152)],'left':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x16f)],'top':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0xfe)],'flipX':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x120)]||!0x1,'flipY':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x158)]||!0x1,'oldAdjustValues':_0x59e299,'newAdjustValues':_0x1c4a0f[_0x6d5380(0x116)],'newLineType':_0x1c4a0f['lineType'],'oldLineType':_0x27291a,'rotation':_0x1c4a0f[_0x6d5380(0x130)],'oldRelation':_0x36828e,'newRelation':_0x24922a});}[_0x2073d0(0x17f)](_0x3083ef,_0x57decc,_0x3210b5,_0x1b0f56){const _0x21a500=_0x2073d0;let _0x35ed48=this['_injector'][_0x21a500(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':_0x57decc,'subUnitId':_0x3210b5,'drawingId':_0x1b0f56});if(_0x35ed48!=null&&_0x35ed48[_0x21a500(0x126)]){var _0x413edf,_0x45ee9e,_0x213229,_0x5028c6;_0x3083ef['x']=(_0x413edf=_0x35ed48['transform'][_0x21a500(0x16f)])==null?0x0:_0x413edf,_0x3083ef['y']=(_0x45ee9e=_0x35ed48['transform'][_0x21a500(0xfe)])==null?0x0:_0x45ee9e,_0x3083ef[_0x21a500(0x128)]=(_0x213229=_0x35ed48['transform'][_0x21a500(0x128)])==null?_0x3083ef[_0x21a500(0x128)]:_0x213229,_0x3083ef[_0x21a500(0x152)]=(_0x5028c6=_0x35ed48[_0x21a500(0x126)][_0x21a500(0x152)])==null?_0x3083ef['height']:_0x5028c6;}let _0x12bf2c=this[_0x21a500(0x147)][_0x21a500(0x141)](_0x20e1c9)['getShapeModel'](_0x57decc,_0x3210b5,_0x1b0f56);if(_0x12bf2c){_0x3083ef[_0x21a500(0x108)]=_0x12bf2c[_0x21a500(0x166)]();let _0x5687af=_0x12bf2c['getShapeData']();_0x5687af&&(_0x3083ef[_0x21a500(0x113)]=JSON[_0x21a500(0x11c)](JSON['stringify'](_0x5687af)));}}[_0x2073d0(0x115)](_0x55e377,_0x4aae02,_0x436652,_0x19dcaf,_0x206273,_0x118c77,_0x45dc5c,_0x1d9e8f,_0x302bd4){const _0x9785a7=_0x2073d0;let _0x175968=null,_0x5664f8=null;return _0x206273&&(_0x175968=I(_0x55e377,_0x4aae02,_0x206273[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x206273[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x118c77&&(_0x5664f8=I(_0x55e377,_0x4aae02,_0x118c77[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x118c77[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x175968||(_0x175968=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x0,_0x5664f8,_0x302bd4==null?void 0x0:_0x302bd4[_0x9785a7(0x140)],_0x45dc5c,_0x1d9e8f)),_0x5664f8||(_0x5664f8=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x1,_0x175968,_0x302bd4==null?void 0x0:_0x302bd4['to'],_0x45dc5c,_0x1d9e8f)),{'startInfo':_0x175968,'endInfo':_0x5664f8};}[_0x2073d0(0x121)](_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x4d9b9d,_0x29390d,_0x1b85d4){const _0x25b2d1=_0x2073d0;if(_0x4d9b9d){let _0x2ae2d6=I(_0x5e9f48,_0x4925ef,_0x4d9b9d[_0x25b2d1(0x14d)],_0x4d9b9d['cxnIndex'],_0x29390d,_0x1b85d4);if(_0x2ae2d6)return _0x2ae2d6;}return _0x3219cb?R(_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x29390d,_0x1b85d4):null;}};_0x26843a[_0x2073d0(0x179)](z);export{F as FConnectorShape,P as FShape};function _0x3850(){const _0x60091c=['setStrokeLineDashType','index','connectShapes','newConnector','flipY','shape','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','3228756lOJpLN','getConnectorLinePoints','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getShapeId','SolidFill','setStrokeLineType','executeCommand','lineJoinType','setWidth','11UeeYoL','getWorkbook','getShapeType','getDrawingByParam','find','setStartArrowType','endArrow','symbol','ShapeLineCapEnum','1782786uUkxpp','push','left','setStrokeLineJoinType','worldRect','ShapeArrowTypeEnum','9fytaGN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setStrokeLineCapType','ShapeTypeEnum','dashType','updateContext','extend','setShapeType','77XSsvdy','getShapes','getConnectionSiteList','_commandService','_preloadShapeProperties','connectionSiteIndex','getDrawingPoints','updateShape','newShape','object','top','ShapeArrowSizeEnum','ShapeFillEnum','getUnitId','setShapeSolidFill','gradientStops','setStrokeWidth','738590dvSfOH','type','capType','shapeType','length','getConnectionSites','getSheetId','Skeleton\x20for\x20unitId\x20','relation','183465pUxJxG','setEndArrowSize','call','opacity','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','shapeData','size','_resolveEndpoints','adjustValues','fillType','\x20not\x20found','prototype','35VsOQkz','\x20and\x20subUnitId\x20','parse',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','point','7370KmxsqD','flipX','_resolveExistingOrFreeEndpoint','localToWorld','build','drawId','setAbsolutePosition','transform','ang','width','setEndArrowType','getEndConnectInfo','function','constructor','default','drawingType','insertShape','rotation','entries','toPrimitive','gradientType','subUnitId','startArrow','getShapeRelation','5WEefPh','getShapeModel','setStrokeOpacity','unitId','getShapeData','getPosition','stroke','getStartConnectInfo','defineProperty','from','get','iterator','getAdjustNames','color','219368JxkeuE','abs','_injector','gradientAngle','string','ShapeLineJoinEnum','ShapeLineDashEnum','DRAWING_SHAPE','shapeId','371404pBcgRT','fill','ensureSkeleton','setStartArrowSize','height','getSize'];_0x3850=function(){return _0x60091c;};return _0x3850();}
1
+ const _0xb0776b=_0x2a57;function _0x2a57(_0x6fc16a,_0x253c8c){_0x6fc16a=_0x6fc16a-0x12b;const _0x2a6faa=_0x2a6f();let _0x2a5772=_0x2a6faa[_0x6fc16a];return _0x2a5772;}(function(_0x11f6fc,_0x4b252b){const _0x136aad=_0x2a57,_0x1f6f76=_0x11f6fc();while(!![]){try{const _0x3c30ac=-parseInt(_0x136aad(0x13b))/0x1+parseInt(_0x136aad(0x1a7))/0x2+parseInt(_0x136aad(0x19b))/0x3*(-parseInt(_0x136aad(0x136))/0x4)+parseInt(_0x136aad(0x15f))/0x5*(-parseInt(_0x136aad(0x12f))/0x6)+parseInt(_0x136aad(0x156))/0x7+parseInt(_0x136aad(0x19f))/0x8+-parseInt(_0x136aad(0x1a3))/0x9*(-parseInt(_0x136aad(0x1ae))/0xa);if(_0x3c30ac===_0x4b252b)break;else _0x1f6f76['push'](_0x1f6f76['shift']());}catch(_0x5a156c){_0x1f6f76['push'](_0x1f6f76['shift']());}}}(_0x2a6f,0xbaee5));import{ConnectorCoordinateTransform as _0x235482,ShapeArrowSizeEnum as _0x47593a,ShapeArrowTypeEnum as _0x25f79f,ShapeFillEnum as _0x2b9fa0,ShapeGradientTypeEnum as _0x465bb4,ShapeLineCapEnum as _0x6a8b99,ShapeLineDashEnum as _0xbe1de4,ShapeLineJoinEnum as _0x1e0034,ShapeLineTypeEnum as _0x43876c,ShapeTypeEnum as _0x58e817,computeConnectorRouteLayout as _0x53deb7,getBasicShapeRotateBound as _0x12c401,isConnectorShape as _0x1df30e,routeConnectorLineShape as _0x4773b1}from'@univerjs-pro/engine-shape';import{FEnum as _0x5f3d}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0xb8cf8d,DEFAULT_SHAPE_WIDTH as _0x5ef94c,InsertShapeCommand as _0x22bb9b,SetShapeDrawingDataCommand as _0x42294b,SheetsShapeService as _0x3c7127,UpdateConnectorRelationCommand as _0x319eb8}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x2bcb5a,generateRandomId as _0x793d5e}from'@univerjs/core';import{IDrawingManagerService as _0x36a4ec}from'@univerjs/drawing';import{SheetSkeletonService as _0x1f069c,convertPositionCellToSheetOverGrid as _0x433800}from'@univerjs/sheets';function _0x2a6f(){const _0x4de767=['getStartConnectInfo','stroke','updateShape','SolidFill','connectionSiteIndex','getShapes','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','transform','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','shapeId','getConnectorLinePoints','endArrow','getUnitId','\x20not\x20found','unitId','getAdjustNames','updateContext','abs','getDrawingByParam','getAdjustPoints','setHeight','setEndArrowType','getShapeModel','drawId','symbol','NoFill','2164722XQKZXQ','DRAWING_SHAPE','type','ang','size','worldRect','getSize','adjustValues','setShapeType','54190WRRnrV','getShapeData','relation','setStrokeLineDashType','getPosition','getShapeId','lineStrokeType','getSheetId','width','setStrokeColor','getAdjustValueByName','ShapeArrowTypeEnum','left','setShapeGradientFill','subUnitId','ShapeLineTypeEnum','_resolveExistingOrFreeEndpoint','ShapeGradientTypeEnum','shape','ShapeTypeEnum','executeCommand','isLineShape','build','shapeData','keys','sin','setShapeSolidFill','localToWorld','color','height','extend','constructor','drawingType','cxnIndex','get','setStartArrowType','string','startArrow','defineProperty','getWorkbook','toPrimitive','index','getDrawingPoints','parse','gradientStops','object','flipX','setEndArrowSize','dashType','getShapeType','getEndConnectInfo','setPosition','lineJoinType','setWidth','find','iterator','_commandService','ShapeArrowSizeEnum','getConnectionSiteList','entries','18qGmYyg','ShapeFillEnum','shapeType','setStrokeLineType','11815400NhPamH','lineType','top','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','313623uaNRvv','ShapeLineJoinEnum',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','_injector','1543654ZPGspo','setAbsolutePosition','capType','Skeleton\x20for\x20unitId\x20','length','fillType','fill','670ctxNom','ShapeLineCapEnum','\x20and\x20subUnitId\x20','function','rotation','_preloadShapeProperties','ensureSkeleton','768krzJCB','cos','setStrokeLineCapType','insertShape','prototype','_resolveEndpoints','point','1008948IXSYnz','from','setNoneFill','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','gradientType','1226392loKCvS'];_0x2a6f=function(){return _0x4de767;};return _0x2a6f();}import{ISheetDrawingService as _0x3e52bb,RemoveSheetDrawingCommand as _0x49b49f}from'@univerjs/sheets-drawing';import{FWorksheet as _0x30bddd}from'@univerjs/sheets/facade';var k=class extends _0x5f3d{get[_0xb0776b(0x172)](){return _0x58e817;}get[_0xb0776b(0x19c)](){return _0x2b9fa0;}get[_0xb0776b(0x170)](){return _0x465bb4;}get[_0xb0776b(0x16e)](){return _0x43876c;}get['ShapeLineDashEnum'](){return _0xbe1de4;}get[_0xb0776b(0x1af)](){return _0x6a8b99;}get[_0xb0776b(0x1a4)](){return _0x1e0034;}get[_0xb0776b(0x16a)](){return _0x25f79f;}get[_0xb0776b(0x198)](){return _0x47593a;}};_0x5f3d[_0xb0776b(0x17d)](k);function A(_0x54451f){'@babel/helpers - typeof';const _0x2c5adc=_0xb0776b;return A=typeof Symbol==_0x2c5adc(0x12b)&&typeof Symbol[_0x2c5adc(0x196)]==_0x2c5adc(0x154)?function(_0x545255){return typeof _0x545255;}:function(_0x13d18a){const _0x1ff158=_0x2c5adc;return _0x13d18a&&typeof Symbol==_0x1ff158(0x12b)&&_0x13d18a[_0x1ff158(0x17e)]===Symbol&&_0x13d18a!==Symbol[_0x1ff158(0x133)]?'symbol':typeof _0x13d18a;},A(_0x54451f);}function j(_0x4ab8c6,_0x467507){const _0x5755f2=_0xb0776b;if(A(_0x4ab8c6)!=_0x5755f2(0x18c)||!_0x4ab8c6)return _0x4ab8c6;var _0x3f9094=_0x4ab8c6[Symbol[_0x5755f2(0x187)]];if(_0x3f9094!==void 0x0){var _0x406079=_0x3f9094['call'](_0x4ab8c6,_0x467507||'default');if(A(_0x406079)!='object')return _0x406079;throw TypeError(_0x5755f2(0x142));}return(_0x467507==='string'?String:Number)(_0x4ab8c6);}function M(_0xec4f6f){const _0x452205=_0xb0776b;var _0x198843=j(_0xec4f6f,_0x452205(0x183));return A(_0x198843)==_0x452205(0x154)?_0x198843:_0x198843+'';}function N(_0x170523,_0x3ba230,_0x480d47){const _0x45879e=_0xb0776b;return(_0x3ba230=M(_0x3ba230))in _0x170523?Object[_0x45879e(0x185)](_0x170523,_0x3ba230,{'value':_0x480d47,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x170523[_0x3ba230]=_0x480d47,_0x170523;}var P=class{constructor(_0x5bef26,_0x3d0eb6,_0x1a81e3,_0x55f149){const _0x5377cc=_0xb0776b;N(this,_0x5377cc(0x14a),void 0x0),N(this,_0x5377cc(0x16d),void 0x0),N(this,'drawId',void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5377cc(0x167),_0x5ef94c),N(this,'height',_0xb8cf8d),N(this,_0x5377cc(0x19d),void 0x0),N(this,_0x5377cc(0x176),{}),N(this,_0x5377cc(0x1a6),void 0x0),this[_0x5377cc(0x14a)]=_0x5bef26,this[_0x5377cc(0x16d)]=_0x3d0eb6,this['drawId']=_0x1a81e3||_0x793d5e(),this['_injector']=_0x55f149;}[_0xb0776b(0x192)](_0x1ce47b,_0x4643e4,_0x4ffed8,_0x40d41a){const _0x3693c1=_0xb0776b;let _0x2ba4e0=this['_injector'][_0x3693c1(0x181)](_0x1f069c)[_0x3693c1(0x12e)](this['unitId'],this[_0x3693c1(0x16d)]);if(!_0x2ba4e0)throw Error(_0x3693c1(0x1aa)+this[_0x3693c1(0x14a)]+_0x3693c1(0x1b0)+this[_0x3693c1(0x16d)]+'\x20not\x20found');let {transform:_0x2cedac}=_0x433800(this[_0x3693c1(0x14a)],this['subUnitId'],{'row':_0x1ce47b,'column':_0x4643e4,'rowOffset':_0x4ffed8,'columnOffset':_0x40d41a},0x1,0x1,_0x2ba4e0);return this['x']=_0x2cedac[_0x3693c1(0x16b)],this['y']=_0x2cedac['top'],this;}[_0xb0776b(0x1a8)](_0xaf78a9,_0x1173df){return this['x']=_0xaf78a9,this['y']=_0x1173df,this;}[_0xb0776b(0x15e)](_0x5789a6){const _0x42436a=_0xb0776b;return this[_0x42436a(0x19d)]=_0x5789a6,this;}[_0xb0776b(0x179)](_0x5393e9,_0x190c39){const _0xb2ad73=_0xb0776b;return this[_0xb2ad73(0x176)]['fill']||(this['shapeData']['fill']={}),this[_0xb2ad73(0x176)]['fill'][_0xb2ad73(0x1ac)]=_0x2b9fa0[_0xb2ad73(0x13f)],_0x5393e9!==void 0x0&&(this['shapeData'][_0xb2ad73(0x1ad)][_0xb2ad73(0x17b)]=_0x5393e9),_0x190c39!==void 0x0&&(this[_0xb2ad73(0x176)][_0xb2ad73(0x1ad)]['opacity']=_0x190c39),this;}[_0xb0776b(0x16c)](_0x30e963,_0x526c83,_0x116158){const _0x2af808=_0xb0776b;if(_0x526c83===void 0x0||_0x526c83[_0x2af808(0x1ab)]===0x0)throw Error(_0x2af808(0x139));return this[_0x2af808(0x176)]['fill']||(this[_0x2af808(0x176)][_0x2af808(0x1ad)]={}),this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x18b)]=_0x526c83,this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x1ac)]=_0x2b9fa0['GradientFill'],this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x13a)]=_0x30e963,_0x116158!==void 0x0&&(this[_0x2af808(0x176)][_0x2af808(0x1ad)]['gradientAngle']=_0x116158),this;}[_0xb0776b(0x138)](){const _0x400fac=_0xb0776b;return this['shapeData'][_0x400fac(0x1ad)]={'fillType':_0x2b9fa0[_0x400fac(0x155)]},this;}[_0xb0776b(0x168)](_0x37134c){const _0x2168c0=_0xb0776b;return this[_0x2168c0(0x176)][_0x2168c0(0x13d)]||(this[_0x2168c0(0x176)][_0x2168c0(0x13d)]={}),this[_0x2168c0(0x176)][_0x2168c0(0x13d)]['color']=_0x37134c,this;}['setStrokeWidth'](_0x372056){const _0x56906a=_0xb0776b;return this[_0x56906a(0x176)][_0x56906a(0x13d)]||(this['shapeData']['stroke']={}),this[_0x56906a(0x176)][_0x56906a(0x13d)][_0x56906a(0x167)]=_0x372056,this;}[_0xb0776b(0x162)](_0x2e8edd){const _0x5c169b=_0xb0776b;return this[_0x5c169b(0x176)]['stroke']||(this['shapeData']['stroke']={}),this[_0x5c169b(0x176)][_0x5c169b(0x13d)][_0x5c169b(0x18f)]=_0x2e8edd,this;}['setStrokeLineJoinType'](_0x5b555f){const _0xf1a310=_0xb0776b;return this['shapeData'][_0xf1a310(0x13d)]||(this[_0xf1a310(0x176)][_0xf1a310(0x13d)]={}),this['shapeData'][_0xf1a310(0x13d)][_0xf1a310(0x193)]=_0x5b555f,this;}[_0xb0776b(0x131)](_0x21d12e){const _0x5863f3=_0xb0776b;return this[_0x5863f3(0x176)]['stroke']||(this[_0x5863f3(0x176)][_0x5863f3(0x13d)]={}),this['shapeData'][_0x5863f3(0x13d)][_0x5863f3(0x1a9)]=_0x21d12e,this;}['setStrokeOpacity'](_0x4a61ea){const _0x196012=_0xb0776b;return this[_0x196012(0x176)][_0x196012(0x13d)]||(this[_0x196012(0x176)][_0x196012(0x13d)]={}),this[_0x196012(0x176)][_0x196012(0x13d)]['opacity']=_0x4a61ea,this;}[_0xb0776b(0x19e)](_0x322036){const _0x3018af=_0xb0776b;return this[_0x3018af(0x176)][_0x3018af(0x13d)]||(this[_0x3018af(0x176)][_0x3018af(0x13d)]={}),this['shapeData']['stroke'][_0x3018af(0x165)]=_0x322036,this;}[_0xb0776b(0x194)](_0x256229){const _0x1f64ab=_0xb0776b;return this[_0x1f64ab(0x167)]=_0x256229,this;}[_0xb0776b(0x150)](_0x53d2ba){return this['height']=_0x53d2ba,this;}[_0xb0776b(0x174)](){const _0xc3040c=_0xb0776b;let _0x1869bf=this['_injector'][_0xc3040c(0x181)](_0x3c7127)[_0xc3040c(0x152)](this[_0xc3040c(0x14a)],this['subUnitId'],this['drawId']);return _0x1869bf?_0x1df30e(_0x1869bf[_0xc3040c(0x190)]()):this[_0xc3040c(0x19d)]?_0x1df30e(this[_0xc3040c(0x19d)]):!0x1;}['getConnectionSites'](){const _0x5f7b2d=_0xb0776b;let _0x40369c=this[_0x5f7b2d(0x1a6)][_0x5f7b2d(0x181)](_0x3c7127)[_0x5f7b2d(0x152)](this['unitId'],this[_0x5f7b2d(0x16d)],this[_0x5f7b2d(0x153)]);if(!_0x40369c)return[];let _0x13529b=this[_0x5f7b2d(0x1a6)]['get'](_0x36a4ec)[_0x5f7b2d(0x14e)]({'unitId':this[_0x5f7b2d(0x14a)],'subUnitId':this[_0x5f7b2d(0x16d)],'drawingId':this[_0x5f7b2d(0x153)]});if(!(_0x13529b!=null&&_0x13529b[_0x5f7b2d(0x143)]))return[];let {width:_0x4134db=0x0,height:_0x133441=0x0}=_0x13529b[_0x5f7b2d(0x143)];return _0x40369c[_0x5f7b2d(0x14c)]({'width':_0x4134db,'height':_0x133441}),_0x40369c['getConnectionSiteList']();}[_0xb0776b(0x14f)](){const _0x1e1995=_0xb0776b;let _0x15c4bc=this[_0x1e1995(0x1a6)]['get'](_0x3c7127)['getShapeModel'](this[_0x1e1995(0x14a)],this['subUnitId'],this['drawId']);if(!_0x15c4bc)return[];let _0x1bde29=this[_0x1e1995(0x1a6)]['get'](_0x36a4ec)['getDrawingByParam']({'unitId':this[_0x1e1995(0x14a)],'subUnitId':this[_0x1e1995(0x16d)],'drawingId':this[_0x1e1995(0x153)]});if(!(_0x1bde29!=null&&_0x1bde29[_0x1e1995(0x143)]))return[];let {width:_0x5d865a=0x0,height:_0x4c0c17=0x0}=_0x1bde29[_0x1e1995(0x143)];return _0x15c4bc[_0x1e1995(0x14c)]({'width':_0x5d865a,'height':_0x4c0c17}),_0x15c4bc[_0x1e1995(0x189)]();}[_0xb0776b(0x146)](){const _0x34f45e=_0xb0776b;let _0xd71229=this['_injector'][_0x34f45e(0x181)](_0x3c7127)['getShapeModel'](this['unitId'],this[_0x34f45e(0x16d)],this['drawId']);if(!_0xd71229||!_0x1df30e(_0xd71229[_0x34f45e(0x190)]()))return[];let _0x4fdeb5=this['_injector'][_0x34f45e(0x181)](_0x36a4ec)[_0x34f45e(0x14e)]({'unitId':this[_0x34f45e(0x14a)],'subUnitId':this['subUnitId'],'drawingId':this[_0x34f45e(0x153)]});if(!(_0x4fdeb5!=null&&_0x4fdeb5[_0x34f45e(0x143)]))return[];let {width:_0xaeb483=0x0,height:_0x1dddd6=0x0}=_0x4fdeb5[_0x34f45e(0x143)];return _0xd71229[_0x34f45e(0x14c)]({'width':_0xaeb483,'height':_0x1dddd6}),_0xd71229[_0x34f45e(0x146)]();}[_0xb0776b(0x13c)](){const _0x2cfc6f=_0xb0776b;var _0x28d82b;let _0x2e191f=this[_0x2cfc6f(0x1a6)][_0x2cfc6f(0x181)](_0x3c7127)[_0x2cfc6f(0x152)](this['unitId'],this['subUnitId'],this[_0x2cfc6f(0x153)]);return _0x2e191f?(_0x28d82b=_0x2e191f['getStartConnectInfo']())==null?null:_0x28d82b:null;}[_0xb0776b(0x191)](){const _0x2bf6fd=_0xb0776b;var _0x459423;let _0x104c17=this['_injector']['get'](_0x3c7127)[_0x2bf6fd(0x152)](this[_0x2bf6fd(0x14a)],this[_0x2bf6fd(0x16d)],this[_0x2bf6fd(0x153)]);return _0x104c17?(_0x459423=_0x104c17['getEndConnectInfo']())==null?null:_0x459423:null;}[_0xb0776b(0x175)](){const _0x2bfcc1=_0xb0776b;var _0x309126,_0x1c9ded;if(!this['shapeType'])throw Error(_0x2bfcc1(0x1a2));if(this['x']===0x0||this['y']===0x0){let _0x149bfa=this[_0x2bfcc1(0x1a6)][_0x2bfcc1(0x181)](_0x1f069c)[_0x2bfcc1(0x12e)](this[_0x2bfcc1(0x14a)],this['subUnitId']);if(!_0x149bfa)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x2bfcc1(0x14a)]+'\x20and\x20subUnitId\x20'+this[_0x2bfcc1(0x16d)]+_0x2bfcc1(0x149));let {transform:_0x57d651}=_0x433800(this[_0x2bfcc1(0x14a)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x149bfa);this['x']=this['x']>0x0?this['x']:_0x57d651[_0x2bfcc1(0x16b)],this['y']=this['y']>0x0?this['y']:_0x57d651[_0x2bfcc1(0x1a1)];}return this[_0x2bfcc1(0x167)]=(_0x309126=this[_0x2bfcc1(0x167)])==null?_0x5ef94c:_0x309126,this['height']=(_0x1c9ded=this['height'])==null?_0xb8cf8d:_0x1c9ded,{'unitId':this['unitId'],'subUnitId':this[_0x2bfcc1(0x16d)],'shapeId':this[_0x2bfcc1(0x153)],'shapeType':this['shapeType'],'shapeData':Object[_0x2bfcc1(0x177)](this[_0x2bfcc1(0x176)])[_0x2bfcc1(0x1ab)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x2bfcc1(0x17c)]};}[_0xb0776b(0x164)](){const _0x2810c0=_0xb0776b;return this[_0x2810c0(0x153)];}[_0xb0776b(0x190)](){const _0x847898=_0xb0776b;return this[_0x847898(0x19d)];}[_0xb0776b(0x160)](){const _0x33cfbd=_0xb0776b;return this[_0x33cfbd(0x176)];}[_0xb0776b(0x163)](){return{'x':this['x'],'y':this['y']};}[_0xb0776b(0x15c)](){const _0x4161e2=_0xb0776b;return{'width':this[_0x4161e2(0x167)],'height':this[_0x4161e2(0x17c)]};}},F=class extends P{constructor(_0xb0be27,_0x199b63,_0x3892bd,_0x359902){const _0x3c97d9=_0xb0776b;super(_0xb0be27,_0x199b63,_0x3892bd,_0x359902),N(this,_0x3c97d9(0x176),{});}[_0xb0776b(0x15e)](_0x3742ac){const _0x50f9e1=_0xb0776b;if(!_0x1df30e(_0x3742ac))throw Error(_0x50f9e1(0x144)+_0x3742ac+_0x50f9e1(0x1a5));return super[_0x50f9e1(0x15e)](_0x3742ac),this;}[_0xb0776b(0x182)](_0x23503e){const _0x210938=_0xb0776b;var _0x426cc2,_0x905e40;return(_0x426cc2=this[_0x210938(0x176)])!=null&&_0x426cc2['ln']||(this['shapeData']['ln']={}),!((_0x905e40=this['shapeData'])==null||(_0x905e40=_0x905e40['ln'])==null)&&_0x905e40['startArrow']||(this[_0x210938(0x176)]['ln'][_0x210938(0x184)]={}),this[_0x210938(0x176)]['ln'][_0x210938(0x184)][_0x210938(0x158)]=_0x23503e,this;}[_0xb0776b(0x151)](_0xc6d59a){const _0x2e940a=_0xb0776b;var _0x5d0416,_0x4368de;return(_0x5d0416=this[_0x2e940a(0x176)])!=null&&_0x5d0416['ln']||(this[_0x2e940a(0x176)]['ln']={}),!((_0x4368de=this[_0x2e940a(0x176)])==null||(_0x4368de=_0x4368de['ln'])==null)&&_0x4368de[_0x2e940a(0x147)]||(this[_0x2e940a(0x176)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x2e940a(0x147)][_0x2e940a(0x158)]=_0xc6d59a,this;}['setStartArrowSize'](_0x2d84e0){const _0x562fa9=_0xb0776b;var _0x47c13c,_0x34fba9;return(_0x47c13c=this[_0x562fa9(0x176)])!=null&&_0x47c13c['ln']||(this[_0x562fa9(0x176)]['ln']={}),!((_0x34fba9=this[_0x562fa9(0x176)])==null||(_0x34fba9=_0x34fba9['ln'])==null)&&_0x34fba9[_0x562fa9(0x184)]||(this[_0x562fa9(0x176)]['ln'][_0x562fa9(0x184)]={}),this['shapeData']['ln'][_0x562fa9(0x184)][_0x562fa9(0x15a)]=_0x2d84e0,this;}[_0xb0776b(0x18e)](_0x552e00){const _0x46759a=_0xb0776b;var _0x1c922e,_0x3e7328;return(_0x1c922e=this[_0x46759a(0x176)])!=null&&_0x1c922e['ln']||(this[_0x46759a(0x176)]['ln']={}),!((_0x3e7328=this['shapeData'])==null||(_0x3e7328=_0x3e7328['ln'])==null)&&_0x3e7328[_0x46759a(0x147)]||(this[_0x46759a(0x176)]['ln']['endArrow']={}),this[_0x46759a(0x176)]['ln']['endArrow'][_0x46759a(0x15a)]=_0x552e00,this;}['build'](){const _0x3eae23=_0xb0776b;return super[_0x3eae23(0x175)]();}[_0xb0776b(0x191)](){const _0x1f64e4=_0xb0776b;var _0x50d9f6;return((_0x50d9f6=this[_0x1f64e4(0x176)])==null||(_0x50d9f6=_0x50d9f6[_0x1f64e4(0x161)])==null?void 0x0:_0x50d9f6['to'])||null;}[_0xb0776b(0x13c)](){const _0x2e1e2f=_0xb0776b;var _0x241f15;return((_0x241f15=this['shapeData'])==null||(_0x241f15=_0x241f15[_0x2e1e2f(0x161)])==null?void 0x0:_0x241f15[_0x2e1e2f(0x137)])||null;}};function I(_0x51b27b,_0x50da3a,_0x319525,_0x4147e1,_0xdc3f8c,_0x9a5606){const _0x14f547=_0xb0776b;let _0xd21e10=_0xdc3f8c[_0x14f547(0x152)](_0x51b27b,_0x50da3a,_0x319525);if(!_0xd21e10)return null;let _0x202164=_0x9a5606[_0x14f547(0x14e)]({'unitId':_0x51b27b,'subUnitId':_0x50da3a,'drawingId':_0x319525});if(!(_0x202164!=null&&_0x202164[_0x14f547(0x143)]))return null;let {left:_0x8b5e95=0x0,top:_0x448479=0x0,width:_0x1bc3cf=0x0,height:_0x335391=0x0,flipX:_0xde98a9=!0x1,flipY:_0xaa6902=!0x1,angle:_0x32f097}=_0x202164[_0x14f547(0x143)];_0xd21e10[_0x14f547(0x14c)]({'width':_0x1bc3cf,'height':_0x335391});let _0x3d0d02=_0xd21e10[_0x14f547(0x199)]()[_0x14f547(0x195)](_0x4b3e87=>_0x4b3e87[_0x14f547(0x188)]===_0x4147e1);if(!_0x3d0d02)return null;let _0x4d5c4a=_0xde98a9?_0x1bc3cf-_0x3d0d02['x']:_0x3d0d02['x'],_0x494b0c=_0xaa6902?_0x335391-_0x3d0d02['y']:_0x3d0d02['y'];if(_0x32f097&&_0x32f097!==0x0){let _0x506706=_0x32f097*Math['PI']/0xb4,_0x23b90b=Math[_0x14f547(0x130)](_0x506706),_0x54d7b1=Math[_0x14f547(0x178)](_0x506706),_0x281add=_0x1bc3cf/0x2,_0x74a272=_0x335391/0x2,_0x9a8f41=_0x4d5c4a-_0x281add,_0x131aa7=_0x494b0c-_0x74a272;_0x4d5c4a=_0x281add+_0x9a8f41*_0x23b90b-_0x131aa7*_0x54d7b1,_0x494b0c=_0x74a272+_0x9a8f41*_0x54d7b1+_0x131aa7*_0x23b90b;}_0x4d5c4a+=_0x8b5e95,_0x494b0c+=_0x448479;let _0x53a141=_0x3d0d02[_0x14f547(0x159)]/0xea60;_0xde98a9&&(_0x53a141=0xb4-_0x53a141),_0xaa6902&&(_0x53a141=-_0x53a141),_0x53a141+=_0x32f097||0x0,_0x53a141=(_0x53a141%0x168+0x168)%0x168;let _0x5b9b0e=_0x12c401({'left':_0x8b5e95,'top':_0x448479,'width':_0x1bc3cf,'height':_0x335391},_0x32f097||0x0);return{'point':{'x':_0x4d5c4a,'y':_0x494b0c},'angle':_0x53a141,'bounds':_0x5b9b0e};}function L(_0x43b04f,_0x3255a1){const _0x40ca40=_0xb0776b;let _0x2bff51=_0x3255a1['x']-_0x43b04f['x'],_0x2445ce=_0x3255a1['y']-_0x43b04f['y'];return Math[_0x40ca40(0x14d)](_0x2bff51)>=Math['abs'](_0x2445ce)?_0x2bff51>=0x0?0xb4:0x0:_0x2445ce>=0x0?0x10e:0x5a;}function R(_0x4408ae,_0x148659,_0x20c402,_0x45bc69,_0xa524,_0x417021,_0x420478){const _0x4acb02=_0xb0776b;let _0x2b6f19=_0x417021[_0x4acb02(0x152)](_0x4408ae,_0x148659,_0x20c402);if(!_0x2b6f19)return null;let _0x1133d3=_0x420478[_0x4acb02(0x14e)]({'unitId':_0x4408ae,'subUnitId':_0x148659,'drawingId':_0x20c402});if(!(_0x1133d3!=null&&_0x1133d3[_0x4acb02(0x143)]))return null;let {left:_0x51c7fe=0x0,top:_0x1a5c39=0x0,width:_0x488760=0x0,height:_0x5ae787=0x0,flipX:_0x572315=!0x1,flipY:_0x2287fc=!0x1}=_0x1133d3['transform'];_0x2b6f19[_0x4acb02(0x14c)]({'width':_0x488760,'height':_0x5ae787});let _0xcd99a9=_0x2b6f19['getConnectorLinePoints']();if(_0xcd99a9[_0x4acb02(0x1ab)]<0x2)return null;let _0x16c0e6=_0x45bc69?_0xcd99a9[0x0]:_0xcd99a9[_0xcd99a9[_0x4acb02(0x1ab)]-0x1],_0x4e9889=new _0x235482({'left':_0x51c7fe,'top':_0x1a5c39,'width':_0x488760,'height':_0x5ae787,'flipX':_0x572315,'flipY':_0x2287fc})[_0x4acb02(0x17a)](_0x16c0e6);return{'point':_0x4e9889,'angle':L(_0xa524[_0x4acb02(0x135)],_0x4e9889),'bounds':{'left':_0x4e9889['x'],'top':_0x4e9889['y'],'width':0x0,'height':0x0}};}var z=class extends _0x30bddd{async[_0xb0776b(0x132)](_0x627784){const _0x57db04=_0xb0776b;let {unitId:_0x5756c5,subUnitId:_0x3bad9f,shapeId:_0x4cfa57,shapeType:_0x49d2e9,shapeData:_0x5d78e1,x:_0x545473,y:_0x20460b,width:_0x3a1ae3,height:_0x2bd113}=_0x627784;return this[_0x57db04(0x197)][_0x57db04(0x173)](_0x22bb9b['id'],{'unitId':_0x5756c5,'subUnitId':_0x3bad9f,'shapeId':_0x4cfa57,'shapeType':_0x49d2e9,'shapeData':_0x5d78e1,'position':{'x':_0x545473,'y':_0x20460b},'width':_0x3a1ae3,'height':_0x2bd113});}async[_0xb0776b(0x13e)](_0x124b5d){const _0x2e4499=_0xb0776b;let {unitId:_0x1896be,subUnitId:_0x4ec84b,shapeId:_0x3857ac,shapeType:_0x466e47,shapeData:_0xdac934,x:_0x27c39b,y:_0xb81d84,width:_0x1cb0a4,height:_0x1571db}=_0x124b5d;return this['_commandService'][_0x2e4499(0x173)](_0x42294b['id'],{'unitId':_0x1896be,'subUnitId':_0x4ec84b,'shapeId':_0x3857ac,'shapeType':_0x466e47,'shapeData':_0xdac934,'position':{'x':_0x27c39b,'y':_0xb81d84},'width':_0x1cb0a4,'height':_0x1571db});}['newShape'](_0x150a61){const _0x41885c=_0xb0776b;let _0x1bf5cc=this[_0x41885c(0x186)]()[_0x41885c(0x148)](),_0x47a386=this[_0x41885c(0x166)]();if(_0x150a61){let _0x5c5a48=new P(_0x1bf5cc,_0x47a386,_0x150a61[_0x41885c(0x153)],this['_injector']);return this['_preloadShapeProperties'](_0x5c5a48,_0x1bf5cc,_0x47a386,_0x150a61[_0x41885c(0x153)]),_0x5c5a48;}return new P(_0x1bf5cc,_0x47a386,_0x793d5e(),this[_0x41885c(0x1a6)]);}['newConnector'](_0x905f52){const _0x406376=_0xb0776b;let _0x2dbf94=this[_0x406376(0x186)]()[_0x406376(0x148)](),_0x502d84=this[_0x406376(0x166)]();if(_0x905f52){let _0x52f0d8=new F(_0x2dbf94,_0x502d84,_0x905f52[_0x406376(0x153)],this[_0x406376(0x1a6)]);return this[_0x406376(0x12d)](_0x52f0d8,_0x2dbf94,_0x502d84,_0x905f52['drawId']),_0x52f0d8;}return new F(_0x2dbf94,_0x502d84,_0x793d5e(),this[_0x406376(0x1a6)]);}[_0xb0776b(0x141)](){const _0x5e399f=_0xb0776b;let _0x3b8fbb=this[_0x5e399f(0x1a6)][_0x5e399f(0x181)](_0x3e52bb),_0x540b19=this['getWorkbook']()[_0x5e399f(0x148)](),_0xb7679d=this['getSheetId'](),_0x199e0f=_0x3b8fbb['getDrawingData'](_0x540b19,_0xb7679d);if(!_0x199e0f)return[];let _0x22af9e=[];for(let [_0x3310ef,_0x598448]of Object[_0x5e399f(0x19a)](_0x199e0f))if(_0x598448&&_0x598448[_0x5e399f(0x17f)]===_0x2bcb5a[_0x5e399f(0x157)]){let _0xd70a5c=new P(_0x540b19,_0xb7679d,_0x3310ef,this[_0x5e399f(0x1a6)]);this[_0x5e399f(0x12d)](_0xd70a5c,_0x540b19,_0xb7679d,_0x3310ef),_0x22af9e['push'](_0xd70a5c);}return _0x22af9e;}['removeShape'](_0x13ac09){const _0x1ba56b=_0xb0776b;let {unitId:_0x26645d,subUnitId:_0x35788d,drawId:_0x3dc22e}=_0x13ac09;return this[_0x1ba56b(0x197)][_0x1ba56b(0x173)](_0x49b49f['id'],{'unitId':_0x26645d,'drawings':[{'unitId':_0x26645d,'subUnitId':_0x35788d,'drawingId':_0x3dc22e,'drawingType':_0x2bcb5a[_0x1ba56b(0x157)]}]});}async['connectShapes'](_0x198ac3){const _0x493f68=_0xb0776b;let {connector:_0x4e5b46,startTarget:_0x325204,endTarget:_0x12bf39}=_0x198ac3;if(!_0x325204&&!_0x12bf39)return!0x1;let _0x39efb6=this[_0x493f68(0x186)]()[_0x493f68(0x148)](),_0x3bc3d2=this[_0x493f68(0x166)](),_0x3e8096=this['_injector'][_0x493f68(0x181)](_0x3c7127),_0x5efdfc=this[_0x493f68(0x1a6)][_0x493f68(0x181)](_0x36a4ec),_0x3892c9=_0x3e8096[_0x493f68(0x152)](_0x39efb6,_0x3bc3d2,_0x4e5b46[_0x493f68(0x153)]);if(!_0x3892c9)return!0x1;let _0x56a3e3=_0x3892c9[_0x493f68(0x190)](),_0x2fa108=_0x3892c9['getShapeRelation'](),_0x10da26={};for(let _0x11d23e of _0x3892c9[_0x493f68(0x14b)]()){let _0x2b2fd1=_0x3892c9[_0x493f68(0x169)](_0x11d23e);_0x2b2fd1!==void 0x0&&(_0x10da26[_0x11d23e]=_0x2b2fd1);}let {startInfo:_0x9f04b7,endInfo:_0x314e96}=this[_0x493f68(0x134)](_0x39efb6,_0x3bc3d2,_0x4e5b46,_0x3892c9,_0x325204,_0x12bf39,_0x3e8096,_0x5efdfc,_0x2fa108);if(!_0x9f04b7||!_0x314e96)return!0x1;let _0x1ac280=_0x53deb7(_0x4773b1(_0x9f04b7,_0x314e96,_0x56a3e3),_0x56a3e3),_0xc009d4={};return _0x325204?_0xc009d4['from']={'shapeId':_0x325204[_0x493f68(0x171)][_0x493f68(0x153)],'cxnIndex':_0x325204[_0x493f68(0x140)]}:_0x2fa108!=null&&_0x2fa108[_0x493f68(0x137)]&&(_0xc009d4[_0x493f68(0x137)]=_0x2fa108[_0x493f68(0x137)]),_0x12bf39?_0xc009d4['to']={'shapeId':_0x12bf39[_0x493f68(0x171)][_0x493f68(0x153)],'cxnIndex':_0x12bf39[_0x493f68(0x140)]}:_0x2fa108!=null&&_0x2fa108['to']&&(_0xc009d4['to']=_0x2fa108['to']),this[_0x493f68(0x197)][_0x493f68(0x173)](_0x319eb8['id'],{'unitId':_0x39efb6,'subUnitId':_0x3bc3d2,'connectorShapeId':_0x4e5b46['drawId'],'width':_0x1ac280['worldRect'][_0x493f68(0x167)],'height':_0x1ac280['worldRect']['height'],'left':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x16b)],'top':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x1a1)],'flipX':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x18d)]||!0x1,'flipY':_0x1ac280[_0x493f68(0x15b)]['flipY']||!0x1,'oldAdjustValues':_0x10da26,'newAdjustValues':_0x1ac280[_0x493f68(0x15d)],'newLineType':_0x1ac280[_0x493f68(0x1a0)],'oldLineType':_0x56a3e3,'rotation':_0x1ac280[_0x493f68(0x12c)],'oldRelation':_0x2fa108,'newRelation':_0xc009d4});}[_0xb0776b(0x12d)](_0x2628bd,_0x192e40,_0x28292d,_0x57557a){const _0x5908ee=_0xb0776b;let _0x51d30d=this[_0x5908ee(0x1a6)][_0x5908ee(0x181)](_0x36a4ec)[_0x5908ee(0x14e)]({'unitId':_0x192e40,'subUnitId':_0x28292d,'drawingId':_0x57557a});if(_0x51d30d!=null&&_0x51d30d[_0x5908ee(0x143)]){var _0x50fdbf,_0x4fc1ba,_0x5e2081,_0x2f0b77;_0x2628bd['x']=(_0x50fdbf=_0x51d30d[_0x5908ee(0x143)][_0x5908ee(0x16b)])==null?0x0:_0x50fdbf,_0x2628bd['y']=(_0x4fc1ba=_0x51d30d[_0x5908ee(0x143)]['top'])==null?0x0:_0x4fc1ba,_0x2628bd[_0x5908ee(0x167)]=(_0x5e2081=_0x51d30d[_0x5908ee(0x143)]['width'])==null?_0x2628bd[_0x5908ee(0x167)]:_0x5e2081,_0x2628bd[_0x5908ee(0x17c)]=(_0x2f0b77=_0x51d30d[_0x5908ee(0x143)][_0x5908ee(0x17c)])==null?_0x2628bd[_0x5908ee(0x17c)]:_0x2f0b77;}let _0x5767d5=this[_0x5908ee(0x1a6)][_0x5908ee(0x181)](_0x3c7127)[_0x5908ee(0x152)](_0x192e40,_0x28292d,_0x57557a);if(_0x5767d5){_0x2628bd['shapeType']=_0x5767d5['getShapeType']();let _0x40afbe=_0x5767d5['getShapeData']();_0x40afbe&&(_0x2628bd[_0x5908ee(0x176)]=JSON[_0x5908ee(0x18a)](JSON['stringify'](_0x40afbe)));}}[_0xb0776b(0x134)](_0x1970c5,_0x519701,_0x8c9040,_0x3e306b,_0x50bf32,_0xd4d909,_0x4343a0,_0x45414f,_0x12b7df){const _0x203258=_0xb0776b;let _0x4915be=null,_0x315329=null;return _0x50bf32&&(_0x4915be=I(_0x1970c5,_0x519701,_0x50bf32[_0x203258(0x171)][_0x203258(0x153)],_0x50bf32[_0x203258(0x140)],_0x4343a0,_0x45414f)),_0xd4d909&&(_0x315329=I(_0x1970c5,_0x519701,_0xd4d909[_0x203258(0x171)][_0x203258(0x153)],_0xd4d909[_0x203258(0x140)],_0x4343a0,_0x45414f)),_0x4915be||(_0x4915be=this[_0x203258(0x16f)](_0x1970c5,_0x519701,_0x8c9040[_0x203258(0x153)],!0x0,_0x315329,_0x12b7df==null?void 0x0:_0x12b7df[_0x203258(0x137)],_0x4343a0,_0x45414f)),_0x315329||(_0x315329=this[_0x203258(0x16f)](_0x1970c5,_0x519701,_0x8c9040[_0x203258(0x153)],!0x1,_0x4915be,_0x12b7df==null?void 0x0:_0x12b7df['to'],_0x4343a0,_0x45414f)),{'startInfo':_0x4915be,'endInfo':_0x315329};}[_0xb0776b(0x16f)](_0x1002d6,_0x1dd77c,_0x58c45c,_0x1765ea,_0x4d06f1,_0x59dcd6,_0x474983,_0x11797f){const _0x370534=_0xb0776b;if(_0x59dcd6){let _0x2860d8=I(_0x1002d6,_0x1dd77c,_0x59dcd6[_0x370534(0x145)],_0x59dcd6[_0x370534(0x180)],_0x474983,_0x11797f);if(_0x2860d8)return _0x2860d8;}return _0x4d06f1?R(_0x1002d6,_0x1dd77c,_0x58c45c,_0x1765ea,_0x4d06f1,_0x474983,_0x11797f):null;}};_0x30bddd[_0xb0776b(0x17d)](z);export{F as FConnectorShape,P as FShape};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1a417c=_0x6126;(function(_0x1af039,_0x59c209){const _0x53dc21=_0x6126,_0x493f5c=_0x1af039();while(!![]){try{const _0x583380=parseInt(_0x53dc21(0x1f3))/0x1*(-parseInt(_0x53dc21(0x24f))/0x2)+-parseInt(_0x53dc21(0x1e7))/0x3*(parseInt(_0x53dc21(0x20b))/0x4)+parseInt(_0x53dc21(0x264))/0x5*(-parseInt(_0x53dc21(0x1df))/0x6)+-parseInt(_0x53dc21(0x20d))/0x7+parseInt(_0x53dc21(0x24c))/0x8*(-parseInt(_0x53dc21(0x267))/0x9)+parseInt(_0x53dc21(0x1e6))/0xa+-parseInt(_0x53dc21(0x208))/0xb*(-parseInt(_0x53dc21(0x216))/0xc);if(_0x583380===_0x59c209)break;else _0x493f5c['push'](_0x493f5c['shift']());}catch(_0x390e0c){_0x493f5c['push'](_0x493f5c['shift']());}}}(_0x20c3,0x5cae0));import{ShapeModel as _0x35c2ea,computeConnectorRouteLayout as _0x4d5188,getBasicShapeRotateBound as _0x4dd2cd,isConnectorShape as _0x33d47c,routeConnectorLineShape as _0x29d7a4}from'@univerjs-pro/engine-shape';import{CommandType as _0x5229c7,DependentOn as _0x4c451e,Disposable as _0x4e5f9f,DrawingTypeEnum as _0x5d2b71,ICommandService as _0x285fd2,IConfigService as _0x3c3bf5,IResourceManagerService as _0x5cf65e,IUndoRedoService as _0x2b286c,IUniverInstanceService as _0x32f2cd,Inject as _0xca6a11,Injector as _0x4e72d8,Plugin as _0x2582f4,UniverInstanceType as _0x26716f,generateRandomId as _0x26ccda,merge as _0x3c605c,sequenceExecute as _0x3ffddd,touchDependencies as _0x5c294e}from'@univerjs/core';import{SheetInterceptorService as _0x19401e,SheetSkeletonService as _0x55630f,getSheetCommandTarget as _0x4e7fb4}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0xeb678b,DrawingApplyType as _0x5af201,ISheetDrawingService as _0x3339be,InsertSheetDrawingCommand as _0x1696e3,RemoveSheetDrawingCommand as _0x56569e,SetDrawingApplyMutation as _0x2ae4cd,SetSheetDrawingCommand as _0x28e6ad,transformToAxisAlignPosition as _0x64f7c2,transformToDrawingPosition as _0x5aa0b0}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3785ee}from'@univerjs-pro/license';import{IDrawingManagerService as _0x525c29}from'@univerjs/drawing';const I=0xc8,L=0xc8;function _0x20c3(){const _0x59e26b=['drawingType','_configService','filter','removeLinePoints','flipX','212442IlXkNc','COMMAND','getShapeTypeById','getShapeData','get','_getConnectPointInfo','UPDATE','3057090SWRZXr','3dVGcCs','from','getCellWithCoordByIndex','set','length','cxnIndex','setShapeData','lineShapeId','setShapeType','interceptCommand','shapeData','isLineShape','326342pCcrEg','ensureSkeleton','delete','_resourcesManagerService','sheet.mutation.update-shape-data','left','sheet.mutation.update-shape-type','pushUndoRedo','getShapeModel','undos','has','decorate','adjustValues','_shapes','fill','preRedos','function','getDrawingByParam','_drawingManagerService','rotation','sheet.command.set-shape-drawing-data','21086725EDQeKT','_addLineFollowShapeUpdates','registerPluginResource','2628968iLlTjf','result','1771728cZeLpR','onStarting','defineProperty','getBasicShapeRelation','borderEnabled','top','SHEET_SHAPE_PLUGIN','sheet.command.update-shape-type','_initCommands','12yqPwoF','_linesIds','assign','syncExecuteCommand','_groupIds','flipY','shapeId','string','sin','getShapeType','@univerjs-pro/sheets-shape','UNIVER_SHEET','getShapeRelation','clear','sheet.command.update-connector-relation','height','sheet.command.update-line-shape-resize','forEach','data','rotateEnabled','getDrawingData','onCommandExecute','isFrom','resizeEnabled','default','getCellIndexAndOffsetByPosition','_disposed','MUTATION','getSkeleton','disposeWithMe','sheet.mutation.insert-shape','_sheetsShapeService','getStartConnectInfo','_sheetSkeletonService','REMOVE','_commandService','getLineShapeRelation','redos','params','INSERT','find','pluginName','_sheetInterceptorService','ang','preUndos','_initCommandInterceptor','_injector','removeShape','toJSON','dispose','packageName','lineType','angle','sheet.command.set-shape-rotate','8LxudKx','_deserializeShapeForUnit','worldRect','2ggRwEG','getConnectionSiteList','DRAWING_SHAPE','startX','_ensureShapeModelManager','range','getBatchUpdateOp','addShape','getEndConnectInfo','type','toPrimitive','position','getAdjustValueByName','fromJSON','add','insertShape','isHorizontal','prototype','_addLineRerouteUpdates','symbol','getAdjustNames','5hpcMcw','_shapeModelManagerMap','push','5138757bbUSbw','relation','iterator','setConfig','object','startY','hasShape','constructor','width','transform','keys','_config','getShapeTextData','sheet.command.set-shape-text-vertical-toggle'];_0x20c3=function(){return _0x59e26b;};return _0x20c3();}function R(_0x88740d){'@babel/helpers - typeof';const _0x3734b3=_0x6126;return R=typeof Symbol==_0x3734b3(0x203)&&typeof Symbol[_0x3734b3(0x269)]==_0x3734b3(0x262)?function(_0x57e190){return typeof _0x57e190;}:function(_0x1f6fc8){const _0xe52e73=_0x3734b3;return _0x1f6fc8&&typeof Symbol==_0xe52e73(0x203)&&_0x1f6fc8[_0xe52e73(0x26e)]===Symbol&&_0x1f6fc8!==Symbol[_0xe52e73(0x260)]?_0xe52e73(0x262):typeof _0x1f6fc8;},R(_0x88740d);}function z(_0x5eee0e,_0x599c1a){const _0x999ee4=_0x6126;if(R(_0x5eee0e)!=_0x999ee4(0x26b)||!_0x5eee0e)return _0x5eee0e;var _0x2762e5=_0x5eee0e[Symbol[_0x999ee4(0x259)]];if(_0x2762e5!==void 0x0){var _0x26255e=_0x2762e5['call'](_0x5eee0e,_0x599c1a||_0x999ee4(0x22e));if(R(_0x26255e)!='object')return _0x26255e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x599c1a===_0x999ee4(0x21d)?String:Number)(_0x5eee0e);}function B(_0x59eab9){const _0x301ba2=_0x6126;var _0x1df4eb=z(_0x59eab9,_0x301ba2(0x21d));return R(_0x1df4eb)=='symbol'?_0x1df4eb:_0x1df4eb+'';}function V(_0x30c52f,_0x402147,_0x2887f6){const _0x3c4aaf=_0x6126;return(_0x402147=B(_0x402147))in _0x30c52f?Object[_0x3c4aaf(0x20f)](_0x30c52f,_0x402147,{'value':_0x2887f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30c52f[_0x402147]=_0x2887f6,_0x30c52f;}var H=class extends _0x4e5f9f{constructor(){const _0x34700f=_0x6126;super(),V(this,_0x34700f(0x200),new Map()),V(this,_0x34700f(0x217),new Set()),V(this,'_groupIds',new Set());}[_0x1a417c(0x256)](_0x1076ac,_0x136093,_0x443021){const _0x103611=_0x1a417c;let _0x1b0e48=new _0x35c2ea(_0x1076ac,_0x136093,_0x443021);return this[_0x103611(0x200)]['set'](_0x136093,_0x1b0e48),_0x33d47c(_0x1076ac)&&this[_0x103611(0x217)][_0x103611(0x25d)](_0x136093),_0x1b0e48;}[_0x1a417c(0x210)](_0x5af173){const _0x1971ed=_0x1a417c;let _0x4f0144=[];for(let _0x169008 of this[_0x1971ed(0x217)]){let _0x5103b9=this['_shapes'][_0x1971ed(0x1e3)](_0x169008);if(_0x5103b9){let _0x521976=_0x5103b9[_0x1971ed(0x222)]();if(_0x521976){var _0x1ff969,_0x30d652;((_0x1ff969=_0x521976[_0x1971ed(0x1e8)])==null?void 0x0:_0x1ff969[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976[_0x1971ed(0x1e8)],'lineShapeId':_0x169008,'isFrom':!0x0}),((_0x30d652=_0x521976['to'])==null?void 0x0:_0x30d652[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976['to'],'lineShapeId':_0x169008,'isFrom':!0x1});}}}return _0x4f0144;}[_0x1a417c(0x23a)](_0x1a0607){const _0x157313=_0x1a417c;let _0x1bda51=this[_0x157313(0x200)]['get'](_0x1a0607);if(_0x1bda51)return _0x1bda51[_0x157313(0x222)]();}[_0x1a417c(0x21f)](_0x2f30c3){const _0x17ba17=_0x1a417c;let _0x491e1f=this[_0x17ba17(0x200)]['get'](_0x2f30c3);if(_0x491e1f)return _0x491e1f[_0x17ba17(0x21f)]();}['hasShape'](_0x37bbd6){const _0x512c10=_0x1a417c;return this[_0x512c10(0x200)][_0x512c10(0x1fd)](_0x37bbd6);}[_0x1a417c(0x245)](_0x32c936){const _0x3841f5=_0x1a417c;let _0x34052c=this[_0x3841f5(0x200)]['get'](_0x32c936);_0x34052c&&(_0x33d47c(_0x34052c[_0x3841f5(0x21f)]())&&this[_0x3841f5(0x217)]['delete'](_0x32c936),this[_0x3841f5(0x200)][_0x3841f5(0x1f5)](_0x32c936));}['toJSON'](){const _0x20eb57=_0x1a417c;let _0x1d234d=[];return this['_shapes'][_0x20eb57(0x227)](_0x270762=>{_0x1d234d['push'](_0x270762['toJSON']());}),_0x1d234d;}[_0x1a417c(0x25c)](_0x31e6c6){const _0x55cae0=_0x1a417c;for(let _0x49fdd1 of _0x31e6c6){let {id:_0x3fe395,shapeType:_0x515ccf}=_0x49fdd1,_0x342c36=this[_0x55cae0(0x256)](_0x515ccf,_0x3fe395,_0x49fdd1[_0x55cae0(0x1f1)]);_0x342c36&&_0x342c36[_0x55cae0(0x1f2)]()&&this[_0x55cae0(0x217)][_0x55cae0(0x25d)](_0x3fe395);}}[_0x1a417c(0x247)](){const _0x22f7fd=_0x1a417c;this[_0x22f7fd(0x230)]||(this[_0x22f7fd(0x200)][_0x22f7fd(0x227)](_0x4f57aa=>{const _0xbc8bd0=_0x22f7fd;_0x4f57aa[_0xbc8bd0(0x247)]();}),this['_shapes']['clear'](),this['_linesIds'][_0x22f7fd(0x223)](),this[_0x22f7fd(0x21a)][_0x22f7fd(0x223)](),super[_0x22f7fd(0x247)]());}};function U(_0x22c5b4,_0x1325e1){return function(_0x2e5034,_0xf56a6a){_0x1325e1(_0x2e5034,_0xf56a6a,_0x22c5b4);};}function W(_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50){const _0x17c0db=_0x1a417c;var _0x3594ee=arguments[_0x17c0db(0x1eb)],_0x283dc0=_0x3594ee<0x3?_0x32c429:_0x3f9c50===null?_0x3f9c50=Object['getOwnPropertyDescriptor'](_0x32c429,_0x439ed9):_0x3f9c50,_0x4c65de;if(typeof Reflect==_0x17c0db(0x26b)&&typeof Reflect[_0x17c0db(0x1fe)]==_0x17c0db(0x203))_0x283dc0=Reflect[_0x17c0db(0x1fe)](_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50);else{for(var _0x492eee=_0xc6bf37[_0x17c0db(0x1eb)]-0x1;_0x492eee>=0x0;_0x492eee--)(_0x4c65de=_0xc6bf37[_0x492eee])&&(_0x283dc0=(_0x3594ee<0x3?_0x4c65de(_0x283dc0):_0x3594ee>0x3?_0x4c65de(_0x32c429,_0x439ed9,_0x283dc0):_0x4c65de(_0x32c429,_0x439ed9))||_0x283dc0);}return _0x3594ee>0x3&&_0x283dc0&&Object[_0x17c0db(0x20f)](_0x32c429,_0x439ed9,_0x283dc0),_0x283dc0;}let G=class extends _0x4e5f9f{constructor(_0x36bf1f){const _0x102ff2=_0x1a417c;super(),this['_resourcesManagerService']=_0x36bf1f,V(this,_0x102ff2(0x265),new Map()),this['_initSnapshot']();}[_0x1a417c(0x253)](_0x3b87dd,_0x2cd931){const _0x1f162a=_0x1a417c;let _0x38f176=this[_0x1f162a(0x265)][_0x1f162a(0x1e3)](_0x3b87dd);_0x38f176||(_0x38f176=new Map(),this[_0x1f162a(0x265)][_0x1f162a(0x1ea)](_0x3b87dd,_0x38f176));let _0x396231=_0x38f176[_0x1f162a(0x1e3)](_0x2cd931);return _0x396231||(_0x396231=new H(),_0x38f176['set'](_0x2cd931,_0x396231)),_0x396231;}['insertShape'](_0x5f31db,_0x4a69a0,_0x18d581,_0x1b7570,_0x34394a){const _0x5a93ce=_0x1a417c;this[_0x5a93ce(0x253)](_0x5f31db,_0x4a69a0)[_0x5a93ce(0x256)](_0x18d581,_0x1b7570,_0x34394a);}[_0x1a417c(0x245)](_0x1b660b,_0x2e6b8e,_0x2d2cc3){const _0x4b7c20=_0x1a417c;this['_ensureShapeModelManager'](_0x1b660b,_0x2e6b8e)[_0x4b7c20(0x245)](_0x2d2cc3);}['getBasicShapeType'](_0x307af0,_0x2e96c6,_0xa8e032){const _0x4b8075=_0x1a417c;return this[_0x4b8075(0x253)](_0x307af0,_0x2e96c6)[_0x4b8075(0x21f)](_0xa8e032);}[_0x1a417c(0x21f)](_0x4624df,_0x3976fe,_0x339567){const _0x1cd31e=_0x1a417c;return this[_0x1cd31e(0x253)](_0x4624df,_0x3976fe)['getShapeType'](_0x339567);}[_0x1a417c(0x26d)](_0x46196d,_0x54161b,_0x9a316){const _0x21f226=_0x1a417c;return this['_ensureShapeModelManager'](_0x46196d,_0x54161b)[_0x21f226(0x26d)](_0x9a316);}[_0x1a417c(0x1e1)](_0x349bb6,_0x10dd3c,_0x37a502){const _0x4b5772=_0x1a417c;return this['_ensureShapeModelManager'](_0x349bb6,_0x10dd3c)[_0x4b5772(0x21f)](_0x37a502);}['getShapeDataById'](_0x2e461f,_0x4af949,_0x34af3e){const _0x142a5e=_0x1a417c;let _0x2ca2b5=this[_0x142a5e(0x253)](_0x2e461f,_0x4af949);if(!_0x2ca2b5[_0x142a5e(0x21f)](_0x34af3e))return;let _0x2b65a3=_0x2ca2b5[_0x142a5e(0x200)]['get'](_0x34af3e);if(_0x2b65a3)return _0x2b65a3[_0x142a5e(0x1e2)]();}[_0x1a417c(0x1fb)](_0x2a0098,_0x5a7d89,_0x4b4d23){const _0x58eb2c=_0x1a417c;return this[_0x58eb2c(0x253)](_0x2a0098,_0x5a7d89)[_0x58eb2c(0x200)][_0x58eb2c(0x1e3)](_0x4b4d23);}[_0x1a417c(0x210)](_0x1714fd,_0x2e3659,_0x3d7a97){const _0x413f9c=_0x1a417c;return this[_0x413f9c(0x253)](_0x1714fd,_0x2e3659)[_0x413f9c(0x210)](_0x3d7a97);}[_0x1a417c(0x23a)](_0x3812e9,_0x58b3b7,_0x557e6f){const _0x58bdd8=_0x1a417c;let _0x10ef65=this[_0x58bdd8(0x253)](_0x3812e9,_0x58b3b7)['_shapes'][_0x58bdd8(0x1e3)](_0x557e6f);if(_0x10ef65)return _0x10ef65['getShapeRelation']();}[_0x1a417c(0x1ef)](){}['_serializeShapeForUnit'](_0x2a0afb){const _0x2e7ce9=_0x1a417c;let _0x5e4d69={},_0x471aee=this['_shapeModelManagerMap'][_0x2e7ce9(0x1e3)](_0x2a0afb);return _0x471aee&&_0x471aee['forEach']((_0xa44e1a,_0x3e7208)=>{const _0x4b91ab=_0x2e7ce9;let _0x397582=_0xa44e1a['toJSON']();_0x397582[_0x4b91ab(0x1eb)]>0x0&&(_0x5e4d69[_0x3e7208]=_0x397582);}),JSON['stringify'](_0x5e4d69);}[_0x1a417c(0x24d)](_0x3c6889,_0x120a42){const _0x464d68=_0x1a417c;Object[_0x464d68(0x271)](_0x120a42)['forEach'](_0x2a7e4c=>{const _0x31eae3=_0x464d68;this[_0x31eae3(0x253)](_0x3c6889,_0x2a7e4c)[_0x31eae3(0x25c)](_0x120a42[_0x2a7e4c]);});}[_0x1a417c(0x246)](){const _0x162a4f=_0x1a417c;let _0x46316d={};return this[_0x162a4f(0x265)][_0x162a4f(0x227)]((_0x680fe9,_0xf683d8)=>{const _0x58c4e5=_0x162a4f;_0x46316d[_0xf683d8]={},_0x680fe9[_0x58c4e5(0x227)]((_0x51c3fb,_0x2311e7)=>{const _0x5420f8=_0x58c4e5;_0x46316d[_0xf683d8][_0x2311e7]=_0x51c3fb[_0x5420f8(0x246)]();});}),_0x46316d;}[_0x1a417c(0x25c)](_0x263172){const _0x1f9c14=_0x1a417c;Object[_0x1f9c14(0x271)](_0x263172)['forEach'](_0x42fcbb=>{const _0x3bb30b=_0x1f9c14;let _0x48077c=_0x263172[_0x42fcbb];Object[_0x3bb30b(0x271)](_0x48077c)['forEach'](_0x14675e=>{const _0x16a2ac=_0x3bb30b;this['_ensureShapeModelManager'](_0x42fcbb,_0x14675e)[_0x16a2ac(0x25c)](_0x48077c[_0x14675e]);});});}['_initSnapshot'](){const _0x4c01be=_0x1a417c;this[_0x4c01be(0x1f6)][_0x4c01be(0x20a)]({'pluginName':_0x4c01be(0x213),'businesses':[_0x26716f[_0x4c01be(0x221)]],'toJson':_0x1876f0=>this['_serializeShapeForUnit'](_0x1876f0),'parseJson':_0x302c48=>JSON['parse'](_0x302c48),'onLoad':(_0x1dcd75,_0x343f5c)=>{const _0x5b4390=_0x4c01be;this[_0x5b4390(0x24d)](_0x1dcd75,_0x343f5c);},'onUnLoad':_0x56099f=>{const _0x2e3ddb=_0x4c01be;let _0x15b681=this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1e3)](_0x56099f);_0x15b681&&(_0x15b681[_0x2e3ddb(0x227)](_0xd40976=>{_0xd40976['dispose']();}),this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1f5)](_0x56099f));}});}[_0x1a417c(0x247)](){const _0x43ca59=_0x1a417c;this[_0x43ca59(0x265)][_0x43ca59(0x227)](_0x2b4128=>{const _0x543e1e=_0x43ca59;_0x2b4128[_0x543e1e(0x227)](_0x2b4c35=>{const _0x34dd98=_0x543e1e;_0x2b4c35[_0x34dd98(0x247)]();});});}};G=W([U(0x0,_0x5cf65e)],G);const K={'id':_0x1a417c(0x234),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x304eaf,_0x4c2700)=>{const _0xc298f7=_0x1a417c;let {unitId:_0xf68612,subUnitId:_0x1c654c,shapeType:_0x3f57a3,shapeId:_0xdd5791,shapeData:_0xdfdb0e}=_0x4c2700;return _0x304eaf['get'](G)[_0xc298f7(0x25e)](_0xf68612,_0x1c654c,_0x3f57a3,_0xdd5791,_0xdfdb0e),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xe11b2d,_0x54f305)=>{const _0x276549=_0x1a417c;let {unitId:_0x19d9e1,subUnitId:_0x2aeca6,shapeId:_0x245937}=_0x54f305;return _0xe11b2d[_0x276549(0x1e3)](G)['removeShape'](_0x19d9e1,_0x2aeca6,_0x245937),!0x0;}},J={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.insert-shape','handler':(_0x2ba2fc,_0x31f9ca)=>{const _0x4fa7b5=_0x1a417c;var _0x38314d,_0x47bae3;let _0xdb837a=_0x4e7fb4(_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x32f2cd),_0x31f9ca);if(!_0xdb837a)return!0x1;let _0x1e8385=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x55630f),{unitId:_0x80cbc6,subUnitId:_0x416819}=_0xdb837a,_0xfb05ce=_0x1e8385[_0x4fa7b5(0x1f4)](_0x80cbc6,_0x416819);if(!_0xfb05ce)return!0x1;let _0x54d16b=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x285fd2),_0x43f14f=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x2b286c),_0x27ddad=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x19401e),_0x216816=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x3339be),{shapeType:_0x5a1df7,shapeData:_0x30eb61}=_0x31f9ca,_0xa9a114=_0x31f9ca[_0x4fa7b5(0x21c)]||_0x26ccda(),_0x3b571e={'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114,'shapeType':_0x5a1df7,'shapeData':_0x30eb61},_0x17ac8d=_0x31f9ca['width']||0xc8,_0x102a2f=_0x31f9ca[_0x4fa7b5(0x225)]||0xc8,_0x41c408=0x0,_0x1a12fe=0x0,_0x12d03b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x5c6648={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x31f9ca[_0x4fa7b5(0x25a)]){let {x:_0xdbc707,y:_0x4d8dc8}=_0x31f9ca[_0x4fa7b5(0x25a)];_0x41c408=_0xdbc707,_0x1a12fe=_0x4d8dc8,_0x12d03b=_0xfb05ce[_0x4fa7b5(0x22f)](_0xdbc707,_0x4d8dc8),_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0xdbc707+_0x17ac8d,_0x4d8dc8+_0x102a2f);}else{if(_0x31f9ca[_0x4fa7b5(0x254)]){let {startRow:_0x1e8f11,startColumn:_0x3d5757}=_0x31f9ca[_0x4fa7b5(0x254)];_0x12d03b={'row':_0x1e8f11,'rowOffset':0xa,'column':_0x3d5757,'columnOffset':0xa};let _0xf5a39c=_0xfb05ce[_0x4fa7b5(0x1e9)](_0x1e8f11,_0x3d5757);_0x41c408=_0xf5a39c[_0x4fa7b5(0x252)]+0xa,_0x1a12fe=_0xf5a39c[_0x4fa7b5(0x26c)]+0xa,_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0x41c408+_0x17ac8d,_0x1a12fe+_0x102a2f);}}let _0xc32fa0={'from':_0x12d03b,'to':_0x5c6648},_0x3bc7cc={'unitId':_0x80cbc6,'subUnitId':_0x416819,'drawingId':_0xa9a114,'drawingType':_0x5d2b71[_0x4fa7b5(0x251)],'sheetTransform':_0xc32fa0,'transform':{'left':_0x41c408,'top':_0x1a12fe,'width':_0x17ac8d,'height':_0x102a2f},'data':{'shapeType':_0x5a1df7,'shapeData':_0x30eb61},'axisAlignSheetTransform':_0xc32fa0,'allowTransform':!0x0};_0x33d47c(_0x5a1df7)&&(_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x201)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x211)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x211)]=!0x1);let {undo:_0x1217fe,redo:_0x432c15,objects:_0x1ceee0}=_0x216816['getBatchAddOp']([_0x3bc7cc]),_0x5c6787=_0x27ddad[_0x4fa7b5(0x22b)]({'id':_0x1696e3['id'],'params':{'unitId':_0x80cbc6,'drawings':[_0x3bc7cc]}}),_0x301b18=[...(_0x38314d=_0x5c6787['preRedos'])==null?[]:_0x38314d,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x432c15,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x23d)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x23b)],{'id':K['id'],'params':_0x3b571e}],_0x1f2d66=[{'id':q['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114}},...(_0x47bae3=_0x5c6787[_0x4fa7b5(0x242)])==null?[]:_0x47bae3,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x1217fe,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x238)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x1fc)]];return _0x3ffddd(_0x301b18,_0x54d16b)['result']?(_0x43f14f[_0x4fa7b5(0x1fa)]({'unitID':_0x80cbc6,'undoMutations':_0x1f2d66,'redoMutations':_0x301b18}),!0x0):!0x1;}},Y={'id':_0x1a417c(0x1f7),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x44c20b,_0x572229)=>{const _0x262566=_0x1a417c;let {unitId:_0x3dec78,subUnitId:_0x3a37c0,shapeType:_0x551e6e,shapeId:_0x26b26c,shapeData:_0x56b75c}=_0x572229,_0x3073c0=_0x44c20b[_0x262566(0x1e3)](G)[_0x262566(0x1fb)](_0x3dec78,_0x3a37c0,_0x26b26c);return _0x3073c0&&(_0x551e6e!==void 0x0&&_0x3073c0[_0x262566(0x1ef)](_0x551e6e),_0x56b75c&&(_0x3073c0==null||_0x3073c0[_0x262566(0x1ed)](_0x56b75c,!0x0))),!0x0;}},ee={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x207),'handler':(_0x25f3e5,_0x4fa513)=>{const _0x121781=_0x1a417c;var _0x41e207,_0x5f0fc0;let _0x3b94d9=_0x4e7fb4(_0x25f3e5[_0x121781(0x1e3)](_0x32f2cd),_0x4fa513);if(!_0x3b94d9)return!0x1;let _0x794d89=_0x25f3e5[_0x121781(0x1e3)](_0x55630f),{unitId:_0x324c08,subUnitId:_0x35d162}=_0x3b94d9,_0x3a2ea4=_0x794d89[_0x121781(0x1f4)](_0x324c08,_0x35d162);if(!_0x3a2ea4)return!0x1;let _0xd45d0=_0x25f3e5['get'](G),{shapeId:_0x4f2886,shapeType:_0x29d377,shapeData:_0x5b7a5c,position:_0x19fad0,width:_0x35139f,height:_0x227ff0}=_0x4fa513,_0xf2720f=_0xd45d0[_0x121781(0x1fb)](_0x324c08,_0x35d162,_0x4f2886);if(!_0xf2720f)return!0x1;let _0x5301e7=_0x25f3e5[_0x121781(0x1e3)](_0x285fd2),_0x41f52c=_0x25f3e5['get'](_0x2b286c),_0xac465b=_0x25f3e5[_0x121781(0x1e3)](_0x19401e),_0x34fe8b=_0x25f3e5[_0x121781(0x1e3)](_0x3339be),_0x48217f={'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeId':_0x4f2886,'shapeType':_0x29d377,'shapeData':_0x5b7a5c},_0x11f98e=_0xf2720f[_0x121781(0x21f)](),_0xf19aa=_0xf2720f[_0x121781(0x1e2)](),{x:_0x34753f,y:_0x27c09c}=_0x19fad0,_0x4dc017={'from':_0x3a2ea4[_0x121781(0x22f)](_0x34753f,_0x27c09c),'to':_0x3a2ea4[_0x121781(0x22f)](_0x34753f+_0x35139f,_0x27c09c+_0x227ff0)},_0x25e3c3={'unitId':_0x324c08,'subUnitId':_0x35d162,'drawingId':_0x4f2886,'drawingType':_0x5d2b71[_0x121781(0x251)],'sheetTransform':_0x4dc017,'transform':{'left':_0x34753f,'top':_0x27c09c,'width':_0x35139f,'height':_0x227ff0},'data':{'shapeType':_0x29d377,'shapeData':_0x5b7a5c},'axisAlignSheetTransform':_0x4dc017,'allowTransform':!0x0};_0x33d47c(_0x29d377)&&(_0x25e3c3[_0x121781(0x228)]['fill']=!0x1,_0x25e3c3[_0x121781(0x228)]['rotateEnabled']=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x211)]=!0x1,_0x25e3c3[_0x121781(0x270)]['rotateEnabled']=!0x1,_0x25e3c3['transform'][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x270)][_0x121781(0x211)]=!0x1);let {undo:_0x3011f0,redo:_0x59842b,objects:_0x408aaa}=_0x34fe8b[_0x121781(0x255)]([_0x25e3c3]),_0x2acf25=_0xac465b[_0x121781(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x324c08,'drawings':[_0x25e3c3]}}),_0x52398b=[...(_0x41e207=_0x2acf25[_0x121781(0x202)])==null?[]:_0x41e207,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x59842b,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25[_0x121781(0x23b)],{'id':Y['id'],'params':_0x48217f}],_0x4d9df7=[...(_0x5f0fc0=_0x2acf25['preUndos'])==null?[]:_0x5f0fc0,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x3011f0,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25['undos'],{'id':Y['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeType':_0x11f98e,'shapeId':_0x4f2886,'shapeData':_0xf19aa}}];return _0x3ffddd(_0x52398b,_0x5301e7)[_0x121781(0x20c)]?(_0x41f52c[_0x121781(0x1fa)]({'unitID':_0x324c08,'undoMutations':_0x4d9df7,'redoMutations':_0x52398b}),!0x0):!0x1;}},te={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.toggle-shape-flip','handler':(_0x5cb20a,_0x611ab)=>{const _0x1b76c9=_0x1a417c;var _0x5a1eab,_0x2bfa82;let _0x57379f=_0x4e7fb4(_0x5cb20a[_0x1b76c9(0x1e3)](_0x32f2cd),_0x611ab);if(!_0x57379f)return!0x1;let _0x23b108=_0x5cb20a[_0x1b76c9(0x1e3)](_0x55630f),{unitId:_0x2829ff,subUnitId:_0x121a21}=_0x57379f,_0x18cefd=_0x23b108['getSkeleton'](_0x2829ff,_0x121a21);if(!_0x18cefd)return!0x1;let _0x494f66=_0x5cb20a[_0x1b76c9(0x1e3)](_0x3339be),{shapeId:_0x30ddf0,flipH:_0x476179,flipV:_0x92049a}=_0x611ab,_0x3e9126=_0x494f66[_0x1b76c9(0x204)]({'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0});if(!_0x3e9126)return!0x1;let _0x56d84e=_0x5cb20a[_0x1b76c9(0x1e3)](G)[_0x1b76c9(0x1fb)](_0x2829ff,_0x121a21,_0x30ddf0);if(!_0x56d84e)return!0x1;let _0x2ba86b=_0x5cb20a[_0x1b76c9(0x1e3)](_0x285fd2),_0x2ee72e=_0x5cb20a[_0x1b76c9(0x1e3)](_0x2b286c),_0x3088b4=_0x5cb20a[_0x1b76c9(0x1e3)](_0x19401e),_0x370a8f={..._0x3e9126['transform']};_0x476179!==void 0x0&&(_0x370a8f[_0x1b76c9(0x1de)]=!_0x370a8f['flipX']),_0x92049a!==void 0x0&&(_0x370a8f['flipY']=!_0x370a8f['flipY']);let _0x342bb7=_0x5aa0b0(_0x370a8f,_0x18cefd),_0x4bc0dc=_0x64f7c2(_0x370a8f,_0x18cefd),_0x189819=_0x56d84e['getShapeType'](),_0x29e43b=_0x56d84e[_0x1b76c9(0x1e2)](),_0x50d6e1={'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'sheetTransform':_0x342bb7,'transform':_0x370a8f,'data':{'shapeType':_0x189819,'shapeData':_0x29e43b},'axisAlignSheetTransform':_0x4bc0dc,'allowTransform':!0x0},{undo:_0x394073,redo:_0x527173,objects:_0x140f85}=_0x494f66[_0x1b76c9(0x255)]([_0x50d6e1]),_0x9e178d=_0x3088b4['onCommandExecute']({'id':_0x28e6ad['id'],'params':{'unitId':_0x2829ff,'drawings':[_0x50d6e1]}}),_0x2de0f5=[...(_0x5a1eab=_0x9e178d[_0x1b76c9(0x202)])==null?[]:_0x5a1eab,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x527173,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d[_0x1b76c9(0x23b)]],_0x8aedea=[...(_0x2bfa82=_0x9e178d[_0x1b76c9(0x242)])==null?[]:_0x2bfa82,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x394073,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d['undos']];if(_0x33d47c(_0x189819)){let _0x320e1e=_0x56d84e[_0x1b76c9(0x222)]();if(_0x320e1e){let _0x396653={..._0x320e1e};_0x396653[_0x1b76c9(0x1e8)]=void 0x0,_0x396653['to']=void 0x0,_0x2de0f5[_0x1b76c9(0x266)]({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x396653}}}),_0x8aedea['push']({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x320e1e}}});}}return _0x3ffddd(_0x2de0f5,_0x2ba86b)['result']?(_0x2ee72e[_0x1b76c9(0x1fa)]({'unitID':_0x2829ff,'undoMutations':_0x8aedea,'redoMutations':_0x2de0f5}),!0x0):!0x1;}},X={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x24b),'handler':(_0x28644a,_0x5a2a2d)=>{const _0x554f10=_0x1a417c;var _0x41bd3c,_0x46762e;let _0x49133e=_0x4e7fb4(_0x28644a['get'](_0x32f2cd),_0x5a2a2d);if(!_0x49133e)return!0x1;let _0x2bb625=_0x28644a[_0x554f10(0x1e3)](_0x55630f),{unitId:_0x553e95,subUnitId:_0x154d85}=_0x49133e,_0xb79bcd=_0x2bb625['getSkeleton'](_0x553e95,_0x154d85);if(!_0xb79bcd)return!0x1;let _0x6b443c=_0x28644a[_0x554f10(0x1e3)](_0x3339be),{shapeId:_0x44af2e,rotate:_0x57c366}=_0x5a2a2d,_0x5f3865=_0x6b443c['getDrawingByParam']({'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e});if(!_0x5f3865)return!0x1;let _0x32f9a8=_0x28644a['get'](G)[_0x554f10(0x1fb)](_0x553e95,_0x154d85,_0x44af2e);if(!_0x32f9a8)return!0x1;let _0x30237b=_0x28644a[_0x554f10(0x1e3)](_0x285fd2),_0x1349e2=_0x28644a[_0x554f10(0x1e3)](_0x2b286c),_0x8ad80d=_0x28644a['get'](_0x19401e),_0x8580c5={..._0x5f3865['transform']};_0x57c366!==void 0x0&&(_0x8580c5[_0x554f10(0x24a)]=(_0x8580c5[_0x554f10(0x24a)]||0x0)+_0x57c366);let _0x3bfefe=_0x5aa0b0(_0x8580c5,_0xb79bcd),_0x2c5ac3=_0x64f7c2(_0x8580c5,_0xb79bcd),_0x3557bc=_0x32f9a8[_0x554f10(0x21f)](),_0x8d4750=_0x32f9a8[_0x554f10(0x1e2)](),_0x3f1806={'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e,'drawingType':_0x5d2b71[_0x554f10(0x251)],'sheetTransform':_0x3bfefe,'transform':_0x8580c5,'data':{'shapeType':_0x3557bc,'shapeData':_0x8d4750},'axisAlignSheetTransform':_0x2c5ac3,'allowTransform':!0x0},{undo:_0x4827ae,redo:_0x428c23,objects:_0x3e06be}=_0x6b443c[_0x554f10(0x255)]([_0x3f1806]),_0x5d762a=_0x8ad80d[_0x554f10(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x553e95,'drawings':[_0x3f1806]}}),_0x20a710=[...(_0x41bd3c=_0x5d762a[_0x554f10(0x202)])==null?[]:_0x41bd3c,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x428c23,'objects':_0x3e06be,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x23b)]],_0x5263df=[...(_0x46762e=_0x5d762a[_0x554f10(0x242)])==null?[]:_0x46762e,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x4827ae,'objects':_0x3e06be,'type':_0x5af201[_0x554f10(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x1fc)]];return _0x3ffddd(_0x20a710,_0x30237b)[_0x554f10(0x20c)]?(_0x1349e2[_0x554f10(0x1fa)]({'unitID':_0x553e95,'undoMutations':_0x5263df,'redoMutations':_0x20a710}),!0x0):!0x1;}},Z={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x274),'handler':(_0x40c3b1,_0xb7750b)=>{const _0x10f733=_0x1a417c;var _0x5667b1;let _0x223af0=_0x4e7fb4(_0x40c3b1['get'](_0x32f2cd),_0xb7750b);if(!_0x223af0)return!0x1;let {unitId:_0xbd1495,subUnitId:_0xde5fed}=_0x223af0,{shapeId:_0x18ddee}=_0xb7750b,_0x17393a=_0x40c3b1[_0x10f733(0x1e3)](G)[_0x10f733(0x1fb)](_0xbd1495,_0xde5fed,_0x18ddee);if(!_0x17393a)return!0x1;let _0x41fd74=_0x17393a[_0x10f733(0x273)](),_0x40723b=(_0x5667b1=_0x41fd74==null?void 0x0:_0x41fd74[_0x10f733(0x25f)])==null?!0x0:_0x5667b1,_0x50ccf9=!_0x40723b,_0x7015d6=_0x40c3b1[_0x10f733(0x1e3)](_0x285fd2),_0x53e6a4=_0x40c3b1['get'](_0x2b286c),_0x9a582a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x50ccf9}}},_0x582c5a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x40723b}}},_0x188c92=[{'id':Y['id'],'params':_0x9a582a}],_0x363d82=[{'id':Y['id'],'params':_0x582c5a}];return _0x3ffddd(_0x188c92,_0x7015d6)[_0x10f733(0x20c)]?(_0x53e6a4[_0x10f733(0x1fa)]({'unitID':_0xbd1495,'undoMutations':_0x363d82,'redoMutations':_0x188c92}),!0x0):!0x1;}},ne={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x224),'handler':(_0x281ccc,_0xd70ecf)=>{const _0x44fbb2=_0x1a417c;var _0x5b8c1a,_0x1f4e13,_0xd2ebcb,_0x43f8ad;let _0x259fcb=_0x4e7fb4(_0x281ccc['get'](_0x32f2cd),_0xd70ecf);if(!_0x259fcb)return!0x1;let _0x2e4351=_0x281ccc[_0x44fbb2(0x1e3)](_0x55630f),{unitId:_0x42b3da,subUnitId:_0x3f7cfe}=_0x259fcb,_0x346cad=_0x2e4351[_0x44fbb2(0x232)](_0x42b3da,_0x3f7cfe);if(!_0x346cad)return!0x1;let _0x153fdb=_0x281ccc['get'](_0x3339be),{connectorShapeId:_0x56f11a,width:_0x1c7fc0,height:_0x3084a0,left:_0x381635,top:_0x45ce36,flipX:_0x2d124a,flipY:_0x5119c8,rotation:_0x486b46,oldAdjustValues:_0x4a0fec,newAdjustValues:_0x305717,oldLineType:_0x348e6d,newLineType:_0x2717e4,oldRelation:_0x29efcf,newRelation:_0x559353}=_0xd70ecf,_0x530582=_0x153fdb[_0x44fbb2(0x204)]({'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a});if(!_0x530582)return!0x1;let _0x2c30e1=_0x281ccc['get'](G)[_0x44fbb2(0x1fb)](_0x42b3da,_0x3f7cfe,_0x56f11a);if(!_0x2c30e1)return!0x1;let _0x4fcafd=_0x281ccc['get'](_0x285fd2),_0x2e121d=_0x281ccc[_0x44fbb2(0x1e3)](_0x2b286c),_0x3c03cd=_0x281ccc[_0x44fbb2(0x1e3)](_0x19401e),_0x1cc722={..._0x530582[_0x44fbb2(0x270)],'width':_0x1c7fc0,'height':_0x3084a0,'left':_0x381635,'top':_0x45ce36,'flipX':_0x2d124a,'flipY':_0x5119c8,'angle':(_0x5b8c1a=_0x486b46==null?(_0x1f4e13=_0x530582['transform'])==null?void 0x0:_0x1f4e13['angle']:_0x486b46)==null?0x0:_0x5b8c1a},_0x55ba4f=_0x5aa0b0(_0x1cc722,_0x346cad),_0x438902=_0x64f7c2(_0x1cc722,_0x346cad),_0x554184=_0x2c30e1[_0x44fbb2(0x21f)](),_0x320562=_0x2c30e1['getShapeData'](),_0x1b8d70={'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a,'drawingType':_0x5d2b71[_0x44fbb2(0x251)],'sheetTransform':_0x55ba4f,'transform':_0x1cc722,'data':{'shapeType':_0x2717e4||_0x348e6d||_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x305717||_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x559353||_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}},'axisAlignSheetTransform':_0x438902,'allowTransform':!0x0},{undo:_0x2a033f,redo:_0x4eac24,objects:_0x15ac96}=_0x153fdb[_0x44fbb2(0x255)]([_0x1b8d70]),_0x17c644=_0x3c03cd[_0x44fbb2(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x42b3da,'drawings':[_0x1b8d70]}}),_0x400615=[...(_0xd2ebcb=_0x17c644[_0x44fbb2(0x202)])==null?[]:_0xd2ebcb,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x4eac24,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x23b)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x2717e4,'shapeData':{'adjustValues':_0x305717,'relation':_0x559353}}}],_0x23d56b=[...(_0x43f8ad=_0x17c644[_0x44fbb2(0x242)])==null?[]:_0x43f8ad,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x2a033f,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}}}];return _0x3ffddd(_0x400615,_0x4fcafd)[_0x44fbb2(0x20c)]?(_0x2e121d[_0x44fbb2(0x1fa)]({'unitID':_0x42b3da,'undoMutations':_0x23d56b,'redoMutations':_0x400615}),!0x0):!0x1;}},re={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x226),'handler':(_0x179eb9,_0x1d20e0)=>{const _0x1f46fc=_0x1a417c;var _0x444b38,_0x945df8;let _0x3bee41=_0x4e7fb4(_0x179eb9['get'](_0x32f2cd),_0x1d20e0);if(!_0x3bee41)return!0x1;let _0xaed240=_0x179eb9[_0x1f46fc(0x1e3)](_0x55630f),{unitId:_0x1c7458,subUnitId:_0xaf6b67}=_0x3bee41,_0x2a3353=_0xaed240[_0x1f46fc(0x232)](_0x1c7458,_0xaf6b67);if(!_0x2a3353)return!0x1;let _0x6a74d5=_0x179eb9['get'](_0x3339be),{shapeId:_0x13bf73,width:_0x551ddb,height:_0x3ba555,left:_0x58f644,top:_0x49181e,flipX:_0x3c0877,flipY:_0x5ec63f,angle:_0x9615b1,oldAdjustValues:_0x8787ef,newAdjustValues:_0x4b7309,oldLineType:_0x5f3707,newLineType:_0x56df5c}=_0x1d20e0,_0x46c9a0=_0x6a74d5[_0x1f46fc(0x204)]({'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73});if(!_0x46c9a0)return!0x1;let _0x39a1cb=_0x179eb9[_0x1f46fc(0x1e3)](G)[_0x1f46fc(0x1fb)](_0x1c7458,_0xaf6b67,_0x13bf73);if(!_0x39a1cb)return!0x1;let _0x5ea497=_0x179eb9[_0x1f46fc(0x1e3)](_0x285fd2),_0x53c996=_0x179eb9[_0x1f46fc(0x1e3)](_0x2b286c),_0x5a968e=_0x179eb9[_0x1f46fc(0x1e3)](_0x19401e),_0x32624f={..._0x46c9a0[_0x1f46fc(0x270)],'width':_0x551ddb,'height':_0x3ba555,'left':_0x58f644,'top':_0x49181e,'flipX':_0x3c0877,'flipY':_0x5ec63f,'angle':_0x9615b1},_0x422cd1=_0x5aa0b0(_0x32624f,_0x2a3353),_0x13dd7b=_0x64f7c2(_0x32624f,_0x2a3353),_0x4153a9=_0x39a1cb[_0x1f46fc(0x21f)](),_0x2b1504=_0x39a1cb['getShapeData'](),_0x451fcd={'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73,'drawingType':_0x5d2b71[_0x1f46fc(0x251)],'sheetTransform':_0x422cd1,'transform':_0x32624f,'data':{'shapeType':_0x56df5c||_0x5f3707||_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x4b7309||_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}},'axisAlignSheetTransform':_0x13dd7b,'allowTransform':!0x0},{undo:_0x3992a0,redo:_0x1afe83,objects:_0xad2196}=_0x6a74d5['getBatchUpdateOp']([_0x451fcd]),_0x321aa6=_0x5a968e[_0x1f46fc(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x1c7458,'drawings':[_0x451fcd]}}),_0x5d1f59=[...(_0x444b38=_0x321aa6[_0x1f46fc(0x202)])==null?[]:_0x444b38,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x1afe83,'objects':_0xad2196,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x23b)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x56df5c,'shapeData':{'adjustValues':_0x4b7309}}}],_0x48a918=[...(_0x945df8=_0x321aa6[_0x1f46fc(0x242)])==null?[]:_0x945df8,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x3992a0,'objects':_0xad2196,'type':_0x5af201[_0x1f46fc(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}}}];return _0x3ffddd(_0x5d1f59,_0x5ea497)[_0x1f46fc(0x20c)]?(_0x53c996[_0x1f46fc(0x1fa)]({'unitID':_0x1c7458,'undoMutations':_0x48a918,'redoMutations':_0x5d1f59}),!0x0):!0x1;}},Q={'id':_0x1a417c(0x1f9),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xcf97ef,_0x336992)=>{const _0x3de8e9=_0x1a417c;let {unitId:_0x2e014e,subUnitId:_0x2047fc,shapeType:_0x5149d3,shapeId:_0x4f91b8,shapeData:_0x4382d0}=_0x336992,_0x94378e=_0xcf97ef[_0x3de8e9(0x1e3)](G)['getShapeModel'](_0x2e014e,_0x2047fc,_0x4f91b8);return _0x94378e&&(_0x94378e[_0x3de8e9(0x1ef)](_0x5149d3),_0x4382d0&&(_0x94378e==null||_0x94378e[_0x3de8e9(0x1ed)](_0x4382d0))),!0x0;}},ie={'id':_0x1a417c(0x214),'type':_0x5229c7['COMMAND'],'handler':(_0x15121c,_0x440aa2)=>{const _0x2ef0d8=_0x1a417c;if(!_0x440aa2)return!0x1;let _0x5395c7=_0x15121c[_0x2ef0d8(0x1e3)](_0x285fd2),_0x385cd9=_0x15121c[_0x2ef0d8(0x1e3)](G),_0x401623=_0x15121c['get'](_0x2b286c),_0x402505=[],_0x5c9294=[],{unitId:_0xa4dddb,subUnitId:_0x1f93cc,shapeId:_0x30b388,shapeType:_0x3653e2,shapeData:_0x47f8bb}=_0x440aa2,_0x1d6c8a=_0x385cd9['getShapeModel'](_0xa4dddb,_0x1f93cc,_0x30b388);if(_0x1d6c8a){let _0x4f6366=_0x1d6c8a[_0x2ef0d8(0x21f)](),_0x200651=Object[_0x2ef0d8(0x218)]({},_0x1d6c8a['getShapeData']()),_0x1781a4={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x3653e2,'shapeData':_0x47f8bb},_0x15188c={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x4f6366,'shapeData':_0x200651};return _0x402505[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x1781a4}),_0x5c9294[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x15188c}),_0x402505['every'](_0x1c5831=>_0x5395c7[_0x2ef0d8(0x219)](_0x1c5831['id'],_0x1c5831[_0x2ef0d8(0x23c)]))&&_0x401623[_0x2ef0d8(0x1fa)]({'unitID':_0xa4dddb,'redoMutations':[..._0x402505],'undoMutations':[..._0x5c9294]}),!0x0;}return!0x1;}};var ae=_0x1a417c(0x220),oe='0.25.0';const se={};function _0x6126(_0x250eaf,_0x4f7ded){_0x250eaf=_0x250eaf-0x1dd;const _0x20c38f=_0x20c3();let _0x61267a=_0x20c38f[_0x250eaf];return _0x61267a;}let ce=class extends _0x4e5f9f{constructor(_0x1c34d1,_0x16fd8b,_0x5757bc,_0x2c171d,_0x354eb){const _0x5a3f8e=_0x1a417c;super(),this['_commandService']=_0x1c34d1,this['_sheetInterceptorService']=_0x16fd8b,this[_0x5a3f8e(0x237)]=_0x5757bc,this[_0x5a3f8e(0x235)]=_0x2c171d,this[_0x5a3f8e(0x205)]=_0x354eb,this[_0x5a3f8e(0x215)](),this[_0x5a3f8e(0x243)]();}[_0x1a417c(0x215)](){const _0x2a8e82=_0x1a417c;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x4291e2=>this[_0x2a8e82(0x233)](this[_0x2a8e82(0x239)]['registerCommand'](_0x4291e2)));}[_0x1a417c(0x243)](){const _0x336936=_0x1a417c;this[_0x336936(0x233)](this[_0x336936(0x240)][_0x336936(0x1f0)]({'getMutations':_0x2629dd=>{const _0x447a8b=_0x336936;if(_0x2629dd['id']===_0x56569e['id']){let {drawings:_0x324b1f}=_0x2629dd[_0x447a8b(0x23c)],_0x1ec6c5=_0x324b1f[_0x447a8b(0x277)](_0x933da2=>_0x933da2[_0x447a8b(0x275)]===_0x5d2b71['DRAWING_SHAPE']);if(_0x1ec6c5['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x210ed2=[],_0x4b4a80=[];return _0x1ec6c5[_0x447a8b(0x227)](_0xb4676c=>{const _0x3f368f=_0x447a8b;let {unitId:_0x4c5234,subUnitId:_0xf2de3b,drawingId:_0x5cc650}=_0xb4676c,_0x233796=this[_0x3f368f(0x235)][_0x3f368f(0x1fb)](_0x4c5234,_0xf2de3b,_0x5cc650);if(!_0x233796)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x233796);_0x210ed2['push']({'id':q['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650}}),_0x4b4a80[_0x3f368f(0x266)]({'id':K['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650,'shapeType':_0x233796[_0x3f368f(0x21f)](),'shapeData':_0x233796[_0x3f368f(0x1e2)]()}});let _0x49b2ef=this[_0x3f368f(0x235)]['getBasicShapeRelation'](_0x4c5234,_0xf2de3b,_0x5cc650);if(_0x49b2ef)for(let _0x1e7608 of _0x49b2ef){let _0x1627cc=_0x1e7608['lineShapeId'],_0x2c574d=_0x1e7608[_0x3f368f(0x22c)],_0x43e7b5=_0x2c574d?{'from':void 0x0}:{'to':void 0x0},_0x9d1fbd=_0x2c574d?{'from':{'shapeId':_0x1e7608[_0x3f368f(0x21c)],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}}:{'to':{'shapeId':_0x1e7608['shapeId'],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}};_0x210ed2[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x43e7b5}}}),_0x4b4a80[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x9d1fbd}}});}}),{'preRedos':_0x210ed2,'redos':[],'preUndos':[],'undos':_0x4b4a80};}if(_0x2629dd['id']===_0x28e6ad['id']){let {drawings:_0x3448a1}=_0x2629dd[_0x447a8b(0x23c)],_0x320eaa=_0x3448a1[_0x447a8b(0x277)](_0x1ca393=>_0x1ca393[_0x447a8b(0x275)]===_0x5d2b71[_0x447a8b(0x251)]);if(_0x320eaa[_0x447a8b(0x1eb)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x192802=[],_0x226f08=[];for(let _0x5c84ab of _0x320eaa){let {unitId:_0x3c697f,subUnitId:_0x72bc90,drawingId:_0x242779,transform:_0x42bbac}=_0x5c84ab;if(!_0x3c697f||!_0x72bc90||!_0x242779||!_0x42bbac)continue;let _0xab2293=this[_0x447a8b(0x235)]['getShapeModel'](_0x3c697f,_0x72bc90,_0x242779);if(!_0xab2293)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0xab2293);if(_0x33d47c(_0xab2293[_0x447a8b(0x21f)]())){let _0x17e2f7=this[_0x447a8b(0x235)]['getLineShapeRelation'](_0x3c697f,_0x72bc90,_0x242779);_0x17e2f7&&(_0x192802[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x226f08[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':_0x17e2f7}}}));}else{let _0x5b2092=this[_0x447a8b(0x235)][_0x447a8b(0x210)](_0x3c697f,_0x72bc90,_0x242779);if(_0x5b2092&&_0x5b2092[_0x447a8b(0x1eb)]>0x0)for(let _0x5b579b of _0x5b2092){let _0x36a511=_0x5b579b[_0x447a8b(0x1ee)],_0x20bf07=_0x5b579b['isFrom'],_0x254a8b=this['_sheetsShapeService'][_0x447a8b(0x1fb)](_0x3c697f,_0x72bc90,_0x36a511);if(!_0x254a8b)continue;let _0x51d917=_0x254a8b[_0x447a8b(0x236)](),_0x1250ab=_0x254a8b['getEndConnectInfo']();_0x51d917&&_0x1250ab?this['_addLineRerouteUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x51d917,_0x1250ab,_0x192802,_0x226f08,_0x242779,_0x42bbac):this['_addLineFollowShapeUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x20bf07?_0x51d917:_0x1250ab,_0x20bf07,_0x192802,_0x226f08,_0x242779,_0x42bbac);}}}return{'preRedos':[],'redos':_0x192802,'preUndos':_0x226f08,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1a417c(0x1e4)](_0x456d00,_0x2d5650,_0xc7cab,_0x10f6bd,_0x4bb40b){const _0x46459e=_0x1a417c;if(!_0x2d5650||!_0xc7cab)return null;let {shapeId:_0x31faf7,cxnIndex:_0x2bbe61}=_0x456d00,_0x319ddd=this[_0x46459e(0x235)]['getShapeModel'](_0x2d5650,_0xc7cab,_0x31faf7);if(!_0x319ddd)return null;let _0x3df61f=this['_drawingManagerService'][_0x46459e(0x204)]({'unitId':_0x2d5650,'subUnitId':_0xc7cab,'drawingId':_0x31faf7});if(!(_0x3df61f!=null&&_0x3df61f[_0x46459e(0x270)]))return null;let {left:_0x1af3c2=0x0,top:_0x3f3b12=0x0,width:_0x45fa6f=0x0,height:_0x124df6=0x0,flipX:_0x1a364c=!0x1,flipY:_0x28c5cd=!0x1,angle:_0x5b5c27}=_0x3df61f[_0x46459e(0x270)];if(_0x4bb40b&&_0x10f6bd===_0x31faf7){var _0x3e3a70,_0x55da7b,_0x165853,_0x2094e2,_0x4c3618,_0x39a84e,_0x5e9360;_0x1af3c2=(_0x3e3a70=_0x4bb40b[_0x46459e(0x1f8)])==null?_0x1af3c2:_0x3e3a70,_0x3f3b12=(_0x55da7b=_0x4bb40b[_0x46459e(0x212)])==null?_0x3f3b12:_0x55da7b,_0x45fa6f=(_0x165853=_0x4bb40b[_0x46459e(0x26f)])==null?_0x45fa6f:_0x165853,_0x124df6=(_0x2094e2=_0x4bb40b[_0x46459e(0x225)])==null?_0x124df6:_0x2094e2,_0x1a364c=(_0x4c3618=_0x4bb40b[_0x46459e(0x1de)])==null?_0x1a364c:_0x4c3618,_0x28c5cd=(_0x39a84e=_0x4bb40b[_0x46459e(0x21b)])==null?_0x28c5cd:_0x39a84e,_0x5b5c27=(_0x5e9360=_0x4bb40b['angle'])==null?_0x5b5c27:_0x5e9360;}_0x319ddd['updateContext']({'width':_0x45fa6f,'height':_0x124df6});let _0x249d85=_0x319ddd[_0x46459e(0x250)]()[_0x46459e(0x23e)](_0x413488=>_0x413488['index']===_0x2bbe61);if(!_0x249d85)return null;let _0x379d0c=_0x1a364c?_0x45fa6f-_0x249d85['x']:_0x249d85['x'],_0x2df45c=_0x28c5cd?_0x124df6-_0x249d85['y']:_0x249d85['y'];if(_0x5b5c27!==0x0&&_0x5b5c27!=null){let _0x1a3923=_0x5b5c27*Math['PI']/0xb4,_0x365ab2=Math['cos'](_0x1a3923),_0x295438=Math[_0x46459e(0x21e)](_0x1a3923),_0x3c17fa=_0x45fa6f/0x2,_0xbcf8f7=_0x124df6/0x2,_0x18ba76=_0x379d0c-_0x3c17fa,_0xa09374=_0x2df45c-_0xbcf8f7;_0x379d0c=_0x3c17fa+_0x18ba76*_0x365ab2-_0xa09374*_0x295438,_0x2df45c=_0xbcf8f7+_0x18ba76*_0x295438+_0xa09374*_0x365ab2;}_0x379d0c+=_0x1af3c2,_0x2df45c+=_0x3f3b12;let _0x2d9db4=_0x249d85[_0x46459e(0x241)]/0xea60;_0x1a364c&&(_0x2d9db4=0xb4-_0x2d9db4),_0x28c5cd&&(_0x2d9db4=-_0x2d9db4),_0x2d9db4+=_0x5b5c27||0x0,_0x2d9db4=(_0x2d9db4%0x168+0x168)%0x168;let _0x2ec983=_0x4dd2cd({'left':_0x1af3c2,'top':_0x3f3b12,'width':_0x45fa6f,'height':_0x124df6},_0x5b5c27||0x0);return{'point':{'x':_0x379d0c,'y':_0x2df45c},'angle':_0x2d9db4,'bounds':_0x2ec983};}[_0x1a417c(0x261)](_0x123318,_0x28c24f,_0x49d29e,_0x210dfa,_0x2c7f2f,_0x26fcb1,_0x382c04,_0x6a903f,_0x4f4597,_0x15da44){const _0x285b99=_0x1a417c;let _0x2b93f7=this[_0x285b99(0x237)][_0x285b99(0x232)](_0x123318,_0x28c24f);if(!_0x2b93f7)return;let _0x411791=_0x210dfa[_0x285b99(0x222)](),_0x8a3cd2=_0x210dfa[_0x285b99(0x263)](),_0x5d989e={},_0x11cff3={};_0x8a3cd2[_0x285b99(0x227)](_0x2fa32d=>{const _0x2fb358=_0x285b99;let _0x5880f4=_0x210dfa[_0x2fb358(0x25b)](_0x2fa32d);_0x11cff3[_0x2fa32d]=_0x5880f4==null?0x0:_0x5880f4;});let _0x3d6205=this[_0x285b99(0x1e4)](_0x2c7f2f,_0x123318,_0x28c24f,_0x4f4597,_0x15da44),_0x1f003e=this['_getConnectPointInfo'](_0x26fcb1,_0x123318,_0x28c24f,_0x4f4597,_0x15da44);if(_0x3d6205&&_0x1f003e){let _0x425945=_0x210dfa[_0x285b99(0x21f)](),_0x4bba85=_0x29d7a4(_0x3d6205,_0x1f003e,_0x425945),_0x11e967=_0x425945;if(_0x4bba85){let _0x55711f=_0x4d5188(_0x4bba85,_0x210dfa[_0x285b99(0x21f)]()),_0x5cd76a=this['_drawingManagerService'][_0x285b99(0x22a)](_0x123318,_0x28c24f);if(_0x5cd76a&&_0x5cd76a[_0x49d29e]){let _0x16e584=_0x5cd76a[_0x49d29e];_0x11e967=_0x55711f[_0x285b99(0x249)];for(let [_0xac3bcd,_0x2009aa]of Object['entries'](_0x55711f[_0x285b99(0x1ff)]))_0x5d989e[_0xac3bcd]=_0x2009aa;let _0x10f768={..._0x16e584['transform'],'width':_0x55711f[_0x285b99(0x24e)]['width'],'height':_0x55711f[_0x285b99(0x24e)]['height'],'left':_0x55711f['worldRect']['left'],'top':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x212)],'flipX':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x1de)],'flipY':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x21b)],'angle':_0x55711f[_0x285b99(0x206)]},_0x11ce2e=_0x5aa0b0(_0x10f768,_0x2b93f7),_0x4e7fc0=_0x64f7c2(_0x10f768,_0x2b93f7),_0x2a0437={'unitId':_0x123318,'subUnitId':_0x28c24f,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'drawingId':_0x49d29e,'transform':_0x10f768,'sheetTransform':_0x11ce2e,'axisAlignSheetTransform':_0x4e7fc0},{unitId:_0x4f61de,subUnitId:_0x28af05,undo:_0x4cc391,redo:_0xa26139,objects:_0x24621c}=this[_0x285b99(0x205)]['getBatchUpdateOp']([_0x2a0437]);_0x382c04[_0x285b99(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0xa26139,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}}),_0x6a903f['push']({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0x4cc391,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}});}_0x210dfa[_0x285b99(0x1dd)]();}_0x382c04[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x11e967,'shapeData':{'adjustValues':_0x5d989e,'relation':_0x411791}}}),_0x6a903f[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x425945,'shapeData':{'adjustValues':_0x11cff3,'relation':_0x411791}}});}}[_0x1a417c(0x209)](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x2ac881,_0x4c28f2,_0x2d17e8,_0x37747e,_0x244542,_0x40e793){const _0x3958b9=_0x1a417c;var _0x308f88;if(!_0x2ac881)return;let _0x59daa0=this[_0x3958b9(0x237)]['getSkeleton'](_0x46efac,_0x57f5da);if(!_0x59daa0)return;let _0x22b10a=(_0x308f88=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingId':_0x244542}))==null?void 0x0:_0x308f88[_0x3958b9(0x270)];if(!_0x22b10a)return;let _0x21d4e0=_0x22b10a['left']!==_0x40e793[_0x3958b9(0x1f8)]||_0x22b10a[_0x3958b9(0x212)]!==_0x40e793[_0x3958b9(0x212)],_0x22247b=_0x22b10a['width']!==_0x40e793[_0x3958b9(0x26f)]||_0x22b10a['height']!==_0x40e793[_0x3958b9(0x225)],_0x4af8c4=_0x22b10a['flipX']!==_0x40e793[_0x3958b9(0x1de)]||_0x22b10a[_0x3958b9(0x21b)]!==_0x40e793[_0x3958b9(0x21b)],_0xabf556=_0x22b10a[_0x3958b9(0x24a)]!==_0x40e793['angle'];if(_0x21d4e0&&!_0x22247b&&!_0x4af8c4&&!_0xabf556){var _0x417a2e,_0x40085e,_0x4dfa1d,_0x1d2677;let _0xc64819=((_0x417a2e=_0x40e793[_0x3958b9(0x1f8)])==null?0x0:_0x417a2e)-((_0x40085e=_0x22b10a['left'])==null?0x0:_0x40085e),_0x3a3cb6=((_0x4dfa1d=_0x40e793['top'])==null?0x0:_0x4dfa1d)-((_0x1d2677=_0x22b10a['top'])==null?0x0:_0x1d2677),_0x4e4f36=this[_0x3958b9(0x205)][_0x3958b9(0x22a)](_0x46efac,_0x57f5da);if(_0x4e4f36&&_0x4e4f36[_0x3b5998]){var _0x17bf1b,_0x46b0f4,_0x547609,_0x30d34e;let _0x27192a=_0x4e4f36[_0x3b5998],_0x18ed8a={..._0x27192a[_0x3958b9(0x270)],'left':((_0x17bf1b=(_0x46b0f4=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x46b0f4[_0x3958b9(0x1f8)])==null?0x0:_0x17bf1b)+_0xc64819,'top':((_0x547609=(_0x30d34e=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x30d34e[_0x3958b9(0x212)])==null?0x0:_0x547609)+_0x3a3cb6},_0x22913f=_0x5aa0b0(_0x18ed8a,_0x59daa0),_0xe4493d=_0x64f7c2(_0x18ed8a,_0x59daa0),_0x5df928={'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingType':_0x5d2b71[_0x3958b9(0x251)],'drawingId':_0x3b5998,'transform':_0x18ed8a,'sheetTransform':_0x22913f,'axisAlignSheetTransform':_0xe4493d},{unitId:_0x18fba4,subUnitId:_0x1ad7b6,undo:_0x1f0300,redo:_0x52345d,objects:_0x1c91c7}=this[_0x3958b9(0x205)][_0x3958b9(0x255)]([_0x5df928]);_0x2d17e8[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x52345d,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}}),_0x37747e[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x1f0300,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}});}}else{let _0x392a41=_0x388b5d['getStartConnectInfo'](),_0x301a17=_0x388b5d[_0x3958b9(0x257)]();this['_addLineRerouteUpdates'](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x392a41,_0x301a17,_0x2d17e8,_0x37747e,_0x244542,_0x40e793);}}};ce=W([U(0x0,_0x285fd2),U(0x1,_0xca6a11(_0x19401e)),U(0x2,_0xca6a11(_0x55630f)),U(0x3,_0xca6a11(G)),U(0x4,_0xca6a11(_0x525c29))],ce);let $=class extends _0x2582f4{constructor(_0x14e772=se,_0x3d9d93,_0x5de1fc,_0xe65d15){const _0x508a9d=_0x1a417c;super(),this[_0x508a9d(0x272)]=_0x14e772,this[_0x508a9d(0x244)]=_0x3d9d93,this[_0x508a9d(0x239)]=_0x5de1fc,this[_0x508a9d(0x276)]=_0xe65d15;let {..._0x1fa749}=_0x3c605c({},se,this['_config']);this['_configService'][_0x508a9d(0x26a)]('sheets-shape.config',_0x1fa749);}[_0x1a417c(0x20e)](){const _0xd1d204=_0x1a417c;let _0x334b64=this[_0xd1d204(0x244)];[[H],[G],[ce]]['forEach'](_0xa41ef5=>_0x334b64[_0xd1d204(0x25d)](_0xa41ef5)),_0x5c294e(_0x334b64,[[G],[ce]]);}};V($,_0x1a417c(0x258),_0x26716f[_0x1a417c(0x221)]),V($,_0x1a417c(0x23f),_0x1a417c(0x213)),V($,_0x1a417c(0x248),ae),V($,'version',oe),$=W([_0x4c451e(_0x3785ee),U(0x1,_0xca6a11(_0x4e72d8)),U(0x2,_0x285fd2),U(0x3,_0x3c3bf5)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
1
+ const _0x1ff262=_0x2f7a;(function(_0x434bda,_0x128bbc){const _0x945b80=_0x2f7a,_0x167fef=_0x434bda();while(!![]){try{const _0x54cdbb=-parseInt(_0x945b80(0x18c))/0x1+-parseInt(_0x945b80(0x157))/0x2+-parseInt(_0x945b80(0x135))/0x3+parseInt(_0x945b80(0x143))/0x4*(parseInt(_0x945b80(0x163))/0x5)+-parseInt(_0x945b80(0x134))/0x6*(parseInt(_0x945b80(0x128))/0x7)+parseInt(_0x945b80(0x18e))/0x8+-parseInt(_0x945b80(0x183))/0x9*(-parseInt(_0x945b80(0x1b3))/0xa);if(_0x54cdbb===_0x128bbc)break;else _0x167fef['push'](_0x167fef['shift']());}catch(_0x46b457){_0x167fef['push'](_0x167fef['shift']());}}}(_0x1c55,0x85dc8));import{ShapeModel as _0x10e020,computeConnectorRouteLayout as _0x1adc9d,getBasicShapeRotateBound as _0x1f4faa,isConnectorShape as _0x1f3e71,routeConnectorLineShape as _0x5a3de9}from'@univerjs-pro/engine-shape';import{CommandType as _0x2c633d,DependentOn as _0x13d69f,Disposable as _0xa3f2a6,DrawingTypeEnum as _0x288fdc,ICommandService as _0x388fc8,IConfigService as _0x7b487e,IResourceManagerService as _0x52dffc,IUndoRedoService as _0x10fe4b,IUniverInstanceService as _0x5db55d,Inject as _0x2530fb,Injector as _0x2f815e,Plugin as _0x23871c,UniverInstanceType as _0x4f30e9,generateRandomId as _0x54de0f,merge as _0xab60b4,sequenceExecute as _0x343173,touchDependencies as _0x1d0968}from'@univerjs/core';import{SheetInterceptorService as _0x3d8139,SheetSkeletonService as _0x23ace4,getSheetCommandTarget as _0x3f54c4}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x42fba7,DrawingApplyType as _0x48390c,ISheetDrawingService as _0x400d26,InsertSheetDrawingCommand as _0x37d3fe,RemoveSheetDrawingCommand as _0x3596f8,SetDrawingApplyMutation as _0x4839e2,SetSheetDrawingCommand as _0x374047,transformToAxisAlignPosition as _0x241ebb,transformToDrawingPosition as _0x2d3afd}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x19cd3c}from'@univerjs-pro/license';import{IDrawingManagerService as _0x11e38f}from'@univerjs/drawing';const I=0xc8,L=0xc8;function _0x2f7a(_0x218299,_0x24416a){_0x218299=_0x218299-0x127;const _0x1c5533=_0x1c55();let _0x2f7aa3=_0x1c5533[_0x218299];return _0x2f7aa3;}function R(_0x3d68cb){'@babel/helpers - typeof';const _0x3ab0d7=_0x2f7a;return R=typeof Symbol==_0x3ab0d7(0x1aa)&&typeof Symbol[_0x3ab0d7(0x132)]==_0x3ab0d7(0x177)?function(_0x6c34cc){return typeof _0x6c34cc;}:function(_0x369691){const _0x3999d6=_0x3ab0d7;return _0x369691&&typeof Symbol==_0x3999d6(0x1aa)&&_0x369691['constructor']===Symbol&&_0x369691!==Symbol[_0x3999d6(0x1bd)]?_0x3999d6(0x177):typeof _0x369691;},R(_0x3d68cb);}function z(_0x1c9291,_0x1cfcb3){const _0x2a1dfe=_0x2f7a;if(R(_0x1c9291)!=_0x2a1dfe(0x16b)||!_0x1c9291)return _0x1c9291;var _0x347340=_0x1c9291[Symbol[_0x2a1dfe(0x196)]];if(_0x347340!==void 0x0){var _0x29851d=_0x347340['call'](_0x1c9291,_0x1cfcb3||_0x2a1dfe(0x13a));if(R(_0x29851d)!=_0x2a1dfe(0x16b))return _0x29851d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1cfcb3==='string'?String:Number)(_0x1c9291);}function B(_0x1c77eb){const _0x5d94f8=_0x2f7a;var _0x10d5e0=z(_0x1c77eb,'string');return R(_0x10d5e0)==_0x5d94f8(0x177)?_0x10d5e0:_0x10d5e0+'';}function V(_0x11eef5,_0x16731d,_0x9f62b){return(_0x16731d=B(_0x16731d))in _0x11eef5?Object['defineProperty'](_0x11eef5,_0x16731d,{'value':_0x9f62b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11eef5[_0x16731d]=_0x9f62b,_0x11eef5;}var H=class extends _0xa3f2a6{constructor(){const _0x5b6100=_0x2f7a;super(),V(this,_0x5b6100(0x1be),new Map()),V(this,_0x5b6100(0x156),new Set()),V(this,_0x5b6100(0x142),new Set());}['addShape'](_0x23e146,_0x104c50,_0x2740a0){const _0x1d8d35=_0x2f7a;let _0x284ef2=new _0x10e020(_0x23e146,_0x104c50,_0x2740a0);return this[_0x1d8d35(0x1be)][_0x1d8d35(0x1b1)](_0x104c50,_0x284ef2),_0x1f3e71(_0x23e146)&&this['_linesIds'][_0x1d8d35(0x166)](_0x104c50),_0x284ef2;}[_0x1ff262(0x167)](_0x37c22a){const _0x18efe9=_0x1ff262;let _0x14d326=[];for(let _0x37e1f2 of this[_0x18efe9(0x156)]){let _0x32ca3d=this[_0x18efe9(0x1be)][_0x18efe9(0x1a9)](_0x37e1f2);if(_0x32ca3d){let _0x18fb1d=_0x32ca3d['getShapeRelation']();if(_0x18fb1d){var _0x18c8a4,_0x5d6de5;((_0x18c8a4=_0x18fb1d['from'])==null?void 0x0:_0x18c8a4['shapeId'])===_0x37c22a&&_0x14d326[_0x18efe9(0x14c)]({..._0x18fb1d[_0x18efe9(0x158)],'lineShapeId':_0x37e1f2,'isFrom':!0x0}),((_0x5d6de5=_0x18fb1d['to'])==null?void 0x0:_0x5d6de5[_0x18efe9(0x1a5)])===_0x37c22a&&_0x14d326[_0x18efe9(0x14c)]({..._0x18fb1d['to'],'lineShapeId':_0x37e1f2,'isFrom':!0x1});}}}return _0x14d326;}['getLineShapeRelation'](_0x3b80e0){const _0x231285=_0x1ff262;let _0x5b3b9c=this[_0x231285(0x1be)][_0x231285(0x1a9)](_0x3b80e0);if(_0x5b3b9c)return _0x5b3b9c[_0x231285(0x175)]();}[_0x1ff262(0x17c)](_0x46742c){const _0x1e0f6d=_0x1ff262;let _0x5b3c9f=this[_0x1e0f6d(0x1be)][_0x1e0f6d(0x1a9)](_0x46742c);if(_0x5b3c9f)return _0x5b3c9f[_0x1e0f6d(0x17c)]();}[_0x1ff262(0x1ba)](_0x3077b9){const _0x465946=_0x1ff262;return this['_shapes'][_0x465946(0x152)](_0x3077b9);}[_0x1ff262(0x15c)](_0x521dd0){const _0x310fb0=_0x1ff262;let _0x9f2c10=this[_0x310fb0(0x1be)]['get'](_0x521dd0);_0x9f2c10&&(_0x1f3e71(_0x9f2c10[_0x310fb0(0x17c)]())&&this['_linesIds'][_0x310fb0(0x18f)](_0x521dd0),this[_0x310fb0(0x1be)][_0x310fb0(0x18f)](_0x521dd0));}[_0x1ff262(0x178)](){const _0x3c43ea=_0x1ff262;let _0x38278e=[];return this[_0x3c43ea(0x1be)][_0x3c43ea(0x19b)](_0x266e91=>{const _0x5e18bf=_0x3c43ea;_0x38278e['push'](_0x266e91[_0x5e18bf(0x178)]());}),_0x38278e;}['fromJSON'](_0x259c42){const _0x3704bb=_0x1ff262;for(let _0x5beb65 of _0x259c42){let {id:_0x186d60,shapeType:_0x27612f}=_0x5beb65,_0x24470e=this[_0x3704bb(0x140)](_0x27612f,_0x186d60,_0x5beb65['shapeData']);_0x24470e&&_0x24470e[_0x3704bb(0x185)]()&&this[_0x3704bb(0x156)]['add'](_0x186d60);}}[_0x1ff262(0x19a)](){const _0x5e84db=_0x1ff262;this[_0x5e84db(0x14e)]||(this[_0x5e84db(0x1be)][_0x5e84db(0x19b)](_0x1b3231=>{_0x1b3231['dispose']();}),this[_0x5e84db(0x1be)][_0x5e84db(0x18b)](),this['_linesIds'][_0x5e84db(0x18b)](),this[_0x5e84db(0x142)][_0x5e84db(0x18b)](),super[_0x5e84db(0x19a)]());}};function U(_0x228ba1,_0xdef334){return function(_0xa5dd49,_0x55b876){_0xdef334(_0xa5dd49,_0x55b876,_0x228ba1);};}function W(_0x96f6ae,_0xd279db,_0x5aa7d,_0x3a9bd6){const _0x3ca654=_0x1ff262;var _0x29cc32=arguments['length'],_0x185112=_0x29cc32<0x3?_0xd279db:_0x3a9bd6===null?_0x3a9bd6=Object[_0x3ca654(0x19e)](_0xd279db,_0x5aa7d):_0x3a9bd6,_0x417d6f;if(typeof Reflect==_0x3ca654(0x16b)&&typeof Reflect['decorate']==_0x3ca654(0x1aa))_0x185112=Reflect['decorate'](_0x96f6ae,_0xd279db,_0x5aa7d,_0x3a9bd6);else{for(var _0x27a9d5=_0x96f6ae[_0x3ca654(0x181)]-0x1;_0x27a9d5>=0x0;_0x27a9d5--)(_0x417d6f=_0x96f6ae[_0x27a9d5])&&(_0x185112=(_0x29cc32<0x3?_0x417d6f(_0x185112):_0x29cc32>0x3?_0x417d6f(_0xd279db,_0x5aa7d,_0x185112):_0x417d6f(_0xd279db,_0x5aa7d))||_0x185112);}return _0x29cc32>0x3&&_0x185112&&Object[_0x3ca654(0x17d)](_0xd279db,_0x5aa7d,_0x185112),_0x185112;}let G=class extends _0xa3f2a6{constructor(_0x8039ce){const _0x357258=_0x1ff262;super(),this[_0x357258(0x161)]=_0x8039ce,V(this,'_shapeModelManagerMap',new Map()),this[_0x357258(0x186)]();}['_ensureShapeModelManager'](_0x14aad4,_0x22c037){const _0x56ab91=_0x1ff262;let _0x1ca3a6=this[_0x56ab91(0x1ab)]['get'](_0x14aad4);_0x1ca3a6||(_0x1ca3a6=new Map(),this['_shapeModelManagerMap']['set'](_0x14aad4,_0x1ca3a6));let _0x39cc88=_0x1ca3a6[_0x56ab91(0x1a9)](_0x22c037);return _0x39cc88||(_0x39cc88=new H(),_0x1ca3a6[_0x56ab91(0x1b1)](_0x22c037,_0x39cc88)),_0x39cc88;}[_0x1ff262(0x12f)](_0x168767,_0x429db2,_0x21dd5f,_0x521c90,_0x52547e){const _0x2466ce=_0x1ff262;this[_0x2466ce(0x1b0)](_0x168767,_0x429db2)[_0x2466ce(0x140)](_0x21dd5f,_0x521c90,_0x52547e);}[_0x1ff262(0x15c)](_0x46e87d,_0x44f647,_0x47ea46){const _0x126f95=_0x1ff262;this[_0x126f95(0x1b0)](_0x46e87d,_0x44f647)['removeShape'](_0x47ea46);}[_0x1ff262(0x168)](_0x821a11,_0xffc9fc,_0x4da96e){const _0x2e10a3=_0x1ff262;return this[_0x2e10a3(0x1b0)](_0x821a11,_0xffc9fc)[_0x2e10a3(0x17c)](_0x4da96e);}[_0x1ff262(0x17c)](_0x545671,_0x4c6ed8,_0x220003){const _0x38e96e=_0x1ff262;return this[_0x38e96e(0x1b0)](_0x545671,_0x4c6ed8)[_0x38e96e(0x17c)](_0x220003);}[_0x1ff262(0x1ba)](_0x5926cb,_0x5bd539,_0x765b41){const _0x5d6d60=_0x1ff262;return this[_0x5d6d60(0x1b0)](_0x5926cb,_0x5bd539)['hasShape'](_0x765b41);}['getShapeTypeById'](_0x3e1ae0,_0x35c445,_0x103c64){const _0x2d631c=_0x1ff262;return this[_0x2d631c(0x1b0)](_0x3e1ae0,_0x35c445)[_0x2d631c(0x17c)](_0x103c64);}[_0x1ff262(0x179)](_0x48eb00,_0x32fe80,_0x4c129e){const _0x37d3ed=_0x1ff262;let _0x26bf4d=this['_ensureShapeModelManager'](_0x48eb00,_0x32fe80);if(!_0x26bf4d[_0x37d3ed(0x17c)](_0x4c129e))return;let _0x3e883e=_0x26bf4d[_0x37d3ed(0x1be)][_0x37d3ed(0x1a9)](_0x4c129e);if(_0x3e883e)return _0x3e883e[_0x37d3ed(0x184)]();}[_0x1ff262(0x1c0)](_0x34d2c1,_0x324462,_0x25c215){const _0x4381f=_0x1ff262;return this[_0x4381f(0x1b0)](_0x34d2c1,_0x324462)[_0x4381f(0x1be)][_0x4381f(0x1a9)](_0x25c215);}[_0x1ff262(0x167)](_0x546b04,_0x38b47d,_0x2da365){const _0x4a01ac=_0x1ff262;return this['_ensureShapeModelManager'](_0x546b04,_0x38b47d)[_0x4a01ac(0x167)](_0x2da365);}[_0x1ff262(0x172)](_0x18ee91,_0xba5999,_0x1c6b8a){const _0x15a208=_0x1ff262;let _0x413f42=this[_0x15a208(0x1b0)](_0x18ee91,_0xba5999)['_shapes'][_0x15a208(0x1a9)](_0x1c6b8a);if(_0x413f42)return _0x413f42[_0x15a208(0x175)]();}[_0x1ff262(0x1b4)](){}[_0x1ff262(0x1bc)](_0x1e5057){const _0x3068a9=_0x1ff262;let _0x2149c2={},_0x315e00=this[_0x3068a9(0x1ab)]['get'](_0x1e5057);return _0x315e00&&_0x315e00['forEach']((_0x1e9523,_0x15b13d)=>{let _0x2ad5b5=_0x1e9523['toJSON']();_0x2ad5b5['length']>0x0&&(_0x2149c2[_0x15b13d]=_0x2ad5b5);}),JSON[_0x3068a9(0x1bb)](_0x2149c2);}[_0x1ff262(0x151)](_0x3cf70c,_0x267665){const _0x196a5c=_0x1ff262;Object[_0x196a5c(0x16c)](_0x267665)[_0x196a5c(0x19b)](_0x159c62=>{const _0x496033=_0x196a5c;this[_0x496033(0x1b0)](_0x3cf70c,_0x159c62)[_0x496033(0x14a)](_0x267665[_0x159c62]);});}[_0x1ff262(0x178)](){const _0x2eb3f1=_0x1ff262;let _0x28b3c8={};return this[_0x2eb3f1(0x1ab)][_0x2eb3f1(0x19b)]((_0x416a9c,_0x5ba671)=>{const _0x4ac5ef=_0x2eb3f1;_0x28b3c8[_0x5ba671]={},_0x416a9c[_0x4ac5ef(0x19b)]((_0x60425f,_0x4c8191)=>{_0x28b3c8[_0x5ba671][_0x4c8191]=_0x60425f['toJSON']();});}),_0x28b3c8;}[_0x1ff262(0x14a)](_0xc4808c){const _0x3c4e72=_0x1ff262;Object[_0x3c4e72(0x16c)](_0xc4808c)['forEach'](_0x41d487=>{const _0x3bf021=_0x3c4e72;let _0x1cf91a=_0xc4808c[_0x41d487];Object['keys'](_0x1cf91a)[_0x3bf021(0x19b)](_0x4608f9=>{const _0x415332=_0x3bf021;this[_0x415332(0x1b0)](_0x41d487,_0x4608f9)[_0x415332(0x14a)](_0x1cf91a[_0x4608f9]);});});}['_initSnapshot'](){const _0x5ebd40=_0x1ff262;this[_0x5ebd40(0x161)][_0x5ebd40(0x129)]({'pluginName':_0x5ebd40(0x19c),'businesses':[_0x4f30e9['UNIVER_SHEET']],'toJson':_0x59905f=>this[_0x5ebd40(0x1bc)](_0x59905f),'parseJson':_0x1be21a=>JSON[_0x5ebd40(0x154)](_0x1be21a),'onLoad':(_0x180a4e,_0x946837)=>{const _0x2abde1=_0x5ebd40;this[_0x2abde1(0x151)](_0x180a4e,_0x946837);},'onUnLoad':_0x2bed32=>{const _0x577641=_0x5ebd40;let _0x573af5=this[_0x577641(0x1ab)][_0x577641(0x1a9)](_0x2bed32);_0x573af5&&(_0x573af5[_0x577641(0x19b)](_0x411a43=>{const _0x5a5d1e=_0x577641;_0x411a43[_0x5a5d1e(0x19a)]();}),this[_0x577641(0x1ab)][_0x577641(0x18f)](_0x2bed32));}});}['dispose'](){const _0x3cd44d=_0x1ff262;this['_shapeModelManagerMap'][_0x3cd44d(0x19b)](_0x53825c=>{const _0x3b052d=_0x3cd44d;_0x53825c[_0x3b052d(0x19b)](_0x3ea921=>{const _0x2844ff=_0x3b052d;_0x3ea921[_0x2844ff(0x19a)]();});});}};G=W([U(0x0,_0x52dffc)],G);const K={'id':_0x1ff262(0x15a),'type':_0x2c633d['MUTATION'],'handler':(_0x4f9f6e,_0x2818ce)=>{const _0x5ae4ca=_0x1ff262;let {unitId:_0x1a8480,subUnitId:_0x9e629c,shapeType:_0x3d26bc,shapeId:_0x14b967,shapeData:_0x5725a0}=_0x2818ce;return _0x4f9f6e[_0x5ae4ca(0x1a9)](G)[_0x5ae4ca(0x12f)](_0x1a8480,_0x9e629c,_0x3d26bc,_0x14b967,_0x5725a0),!0x0;}},q={'id':_0x1ff262(0x160),'type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x26cf4d,_0x76c8)=>{const _0x428f20=_0x1ff262;let {unitId:_0x4b2687,subUnitId:_0x248336,shapeId:_0x272b50}=_0x76c8;return _0x26cf4d[_0x428f20(0x1a9)](G)['removeShape'](_0x4b2687,_0x248336,_0x272b50),!0x0;}},J={'type':_0x2c633d['COMMAND'],'id':_0x1ff262(0x138),'handler':(_0x2ecbd0,_0x4666ef)=>{const _0x48b4b9=_0x1ff262;var _0x70067f,_0x1ddbf2;let _0x4cf803=_0x3f54c4(_0x2ecbd0['get'](_0x5db55d),_0x4666ef);if(!_0x4cf803)return!0x1;let _0x5a6390=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x23ace4),{unitId:_0x182848,subUnitId:_0x2b713b}=_0x4cf803,_0x29bffd=_0x5a6390[_0x48b4b9(0x17a)](_0x182848,_0x2b713b);if(!_0x29bffd)return!0x1;let _0x417e9a=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x388fc8),_0x3c6133=_0x2ecbd0['get'](_0x10fe4b),_0x46bba9=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x3d8139),_0x136a15=_0x2ecbd0['get'](_0x400d26),{shapeType:_0x3c8d78,shapeData:_0x10ef1a}=_0x4666ef,_0x1aeacc=_0x4666ef[_0x48b4b9(0x1a5)]||_0x54de0f(),_0x5e9b7a={'unitId':_0x182848,'subUnitId':_0x2b713b,'shapeId':_0x1aeacc,'shapeType':_0x3c8d78,'shapeData':_0x10ef1a},_0x44a3e8=_0x4666ef[_0x48b4b9(0x1b8)]||0xc8,_0xa485=_0x4666ef['height']||0xc8,_0x5ec82b=0x0,_0x289439=0x0,_0x549aca={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x4fed08={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x4666ef[_0x48b4b9(0x1a0)]){let {x:_0xc3f091,y:_0x4146a6}=_0x4666ef['position'];_0x5ec82b=_0xc3f091,_0x289439=_0x4146a6,_0x549aca=_0x29bffd[_0x48b4b9(0x14d)](_0xc3f091,_0x4146a6),_0x4fed08=_0x29bffd[_0x48b4b9(0x14d)](_0xc3f091+_0x44a3e8,_0x4146a6+_0xa485);}else{if(_0x4666ef['range']){let {startRow:_0xedfcdd,startColumn:_0x276757}=_0x4666ef['range'];_0x549aca={'row':_0xedfcdd,'rowOffset':0xa,'column':_0x276757,'columnOffset':0xa};let _0x1a7063=_0x29bffd[_0x48b4b9(0x15e)](_0xedfcdd,_0x276757);_0x5ec82b=_0x1a7063[_0x48b4b9(0x17e)]+0xa,_0x289439=_0x1a7063[_0x48b4b9(0x192)]+0xa,_0x4fed08=_0x29bffd[_0x48b4b9(0x14d)](_0x5ec82b+_0x44a3e8,_0x289439+_0xa485);}}let _0x3aa830={'from':_0x549aca,'to':_0x4fed08},_0x1495bb={'unitId':_0x182848,'subUnitId':_0x2b713b,'drawingId':_0x1aeacc,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x3aa830,'transform':{'left':_0x5ec82b,'top':_0x289439,'width':_0x44a3e8,'height':_0xa485},'data':{'shapeType':_0x3c8d78,'shapeData':_0x10ef1a},'axisAlignSheetTransform':_0x3aa830,'allowTransform':!0x0};_0x1f3e71(_0x3c8d78)&&(_0x1495bb[_0x48b4b9(0x15f)]['fill']=!0x1,_0x1495bb[_0x48b4b9(0x15f)]['rotateEnabled']=!0x1,_0x1495bb[_0x48b4b9(0x15f)][_0x48b4b9(0x190)]=!0x1,_0x1495bb[_0x48b4b9(0x15f)][_0x48b4b9(0x17f)]=!0x1,_0x1495bb['transform'][_0x48b4b9(0x1ad)]=!0x1,_0x1495bb[_0x48b4b9(0x195)][_0x48b4b9(0x190)]=!0x1,_0x1495bb['transform'][_0x48b4b9(0x17f)]=!0x1);let {undo:_0x4e9d66,redo:_0x5cfa5d,objects:_0x2ae82b}=_0x136a15[_0x48b4b9(0x18d)]([_0x1495bb]),_0x178a68=_0x46bba9['onCommandExecute']({'id':_0x37d3fe['id'],'params':{'unitId':_0x182848,'drawings':[_0x1495bb]}}),_0x25d549=[...(_0x70067f=_0x178a68[_0x48b4b9(0x16f)])==null?[]:_0x70067f,{'id':_0x4839e2['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'op':_0x5cfa5d,'objects':_0x2ae82b,'type':_0x48390c[_0x48b4b9(0x1c1)]}},{'id':_0x42fba7['id'],'params':[_0x182848]},..._0x178a68[_0x48b4b9(0x1a1)],{'id':K['id'],'params':_0x5e9b7a}],_0x49da88=[{'id':q['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'shapeId':_0x1aeacc}},...(_0x1ddbf2=_0x178a68[_0x48b4b9(0x12c)])==null?[]:_0x1ddbf2,{'id':_0x4839e2['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'op':_0x4e9d66,'objects':_0x2ae82b,'type':_0x48390c[_0x48b4b9(0x150)]}},{'id':_0x42fba7['id'],'params':[_0x182848]},..._0x178a68[_0x48b4b9(0x144)]];return _0x343173(_0x25d549,_0x417e9a)['result']?(_0x3c6133[_0x48b4b9(0x13f)]({'unitID':_0x182848,'undoMutations':_0x49da88,'redoMutations':_0x25d549}),!0x0):!0x1;}},Y={'id':'sheet.mutation.update-shape-data','type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x4c26f3,_0x2fc0ca)=>{const _0x7b4584=_0x1ff262;let {unitId:_0x16e48d,subUnitId:_0x2bf1d9,shapeType:_0x5f1225,shapeId:_0x4658d0,shapeData:_0x4af52a}=_0x2fc0ca,_0x4af541=_0x4c26f3[_0x7b4584(0x1a9)](G)[_0x7b4584(0x1c0)](_0x16e48d,_0x2bf1d9,_0x4658d0);return _0x4af541&&(_0x5f1225!==void 0x0&&_0x4af541['setShapeType'](_0x5f1225),_0x4af52a&&(_0x4af541==null||_0x4af541[_0x7b4584(0x13b)](_0x4af52a,!0x0))),!0x0;}},ee={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x12d),'handler':(_0x520306,_0x4d012e)=>{const _0xc37b3f=_0x1ff262;var _0x38de94,_0x473e7e;let _0x27aadd=_0x3f54c4(_0x520306[_0xc37b3f(0x1a9)](_0x5db55d),_0x4d012e);if(!_0x27aadd)return!0x1;let _0x4f96e1=_0x520306[_0xc37b3f(0x1a9)](_0x23ace4),{unitId:_0x1ec063,subUnitId:_0x5a85bc}=_0x27aadd,_0x285901=_0x4f96e1[_0xc37b3f(0x17a)](_0x1ec063,_0x5a85bc);if(!_0x285901)return!0x1;let _0x4ca262=_0x520306[_0xc37b3f(0x1a9)](G),{shapeId:_0x53ca10,shapeType:_0x360afd,shapeData:_0x57a1ae,position:_0x321415,width:_0x15bfaf,height:_0x56980e}=_0x4d012e,_0x3f9967=_0x4ca262['getShapeModel'](_0x1ec063,_0x5a85bc,_0x53ca10);if(!_0x3f9967)return!0x1;let _0x431044=_0x520306[_0xc37b3f(0x1a9)](_0x388fc8),_0x2f5c7b=_0x520306[_0xc37b3f(0x1a9)](_0x10fe4b),_0x620cee=_0x520306[_0xc37b3f(0x1a9)](_0x3d8139),_0x2e1940=_0x520306['get'](_0x400d26),_0xd33f58={'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'shapeId':_0x53ca10,'shapeType':_0x360afd,'shapeData':_0x57a1ae},_0x2d907b=_0x3f9967['getShapeType'](),_0x126fa2=_0x3f9967['getShapeData'](),{x:_0x17303c,y:_0x475153}=_0x321415,_0xf893f3={'from':_0x285901['getCellIndexAndOffsetByPosition'](_0x17303c,_0x475153),'to':_0x285901[_0xc37b3f(0x14d)](_0x17303c+_0x15bfaf,_0x475153+_0x56980e)},_0x4e1fae={'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'drawingId':_0x53ca10,'drawingType':_0x288fdc[_0xc37b3f(0x15b)],'sheetTransform':_0xf893f3,'transform':{'left':_0x17303c,'top':_0x475153,'width':_0x15bfaf,'height':_0x56980e},'data':{'shapeType':_0x360afd,'shapeData':_0x57a1ae},'axisAlignSheetTransform':_0xf893f3,'allowTransform':!0x0};_0x1f3e71(_0x360afd)&&(_0x4e1fae[_0xc37b3f(0x15f)][_0xc37b3f(0x141)]=!0x1,_0x4e1fae['data']['rotateEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x15f)][_0xc37b3f(0x190)]=!0x1,_0x4e1fae[_0xc37b3f(0x15f)]['borderEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x195)][_0xc37b3f(0x1ad)]=!0x1,_0x4e1fae[_0xc37b3f(0x195)]['resizeEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x195)][_0xc37b3f(0x17f)]=!0x1);let {undo:_0x17babd,redo:_0x2f3774,objects:_0x57540c}=_0x2e1940[_0xc37b3f(0x12e)]([_0x4e1fae]),_0x21f8ed=_0x620cee[_0xc37b3f(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x1ec063,'drawings':[_0x4e1fae]}}),_0x5ea5af=[...(_0x38de94=_0x21f8ed[_0xc37b3f(0x16f)])==null?[]:_0x38de94,{'id':_0x4839e2['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'op':_0x2f3774,'objects':_0x57540c,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x1ec063]},..._0x21f8ed[_0xc37b3f(0x1a1)],{'id':Y['id'],'params':_0xd33f58}],_0x15d1eb=[...(_0x473e7e=_0x21f8ed[_0xc37b3f(0x12c)])==null?[]:_0x473e7e,{'id':_0x4839e2['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'op':_0x17babd,'objects':_0x57540c,'type':_0x48390c[_0xc37b3f(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x1ec063]},..._0x21f8ed[_0xc37b3f(0x144)],{'id':Y['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'shapeType':_0x2d907b,'shapeId':_0x53ca10,'shapeData':_0x126fa2}}];return _0x343173(_0x5ea5af,_0x431044)[_0xc37b3f(0x194)]?(_0x2f5c7b[_0xc37b3f(0x13f)]({'unitID':_0x1ec063,'undoMutations':_0x15d1eb,'redoMutations':_0x5ea5af}),!0x0):!0x1;}},te={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x12b),'handler':(_0x2f382a,_0x434dfb)=>{const _0x318400=_0x1ff262;var _0x19d451,_0x5485f0;let _0x460ad3=_0x3f54c4(_0x2f382a[_0x318400(0x1a9)](_0x5db55d),_0x434dfb);if(!_0x460ad3)return!0x1;let _0x28d90d=_0x2f382a[_0x318400(0x1a9)](_0x23ace4),{unitId:_0x37d3d0,subUnitId:_0x4fddd4}=_0x460ad3,_0x4f731c=_0x28d90d['getSkeleton'](_0x37d3d0,_0x4fddd4);if(!_0x4f731c)return!0x1;let _0xb2c2c3=_0x2f382a[_0x318400(0x1a9)](_0x400d26),{shapeId:_0xdec124,flipH:_0x38a65e,flipV:_0x38f6ab}=_0x434dfb,_0x60ea10=_0xb2c2c3['getDrawingByParam']({'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'drawingId':_0xdec124});if(!_0x60ea10)return!0x1;let _0x3fbea3=_0x2f382a[_0x318400(0x1a9)](G)[_0x318400(0x1c0)](_0x37d3d0,_0x4fddd4,_0xdec124);if(!_0x3fbea3)return!0x1;let _0x465eb6=_0x2f382a[_0x318400(0x1a9)](_0x388fc8),_0x2ad08e=_0x2f382a[_0x318400(0x1a9)](_0x10fe4b),_0x40f824=_0x2f382a[_0x318400(0x1a9)](_0x3d8139),_0x186fc0={..._0x60ea10[_0x318400(0x195)]};_0x38a65e!==void 0x0&&(_0x186fc0[_0x318400(0x1b6)]=!_0x186fc0[_0x318400(0x1b6)]),_0x38f6ab!==void 0x0&&(_0x186fc0['flipY']=!_0x186fc0['flipY']);let _0x76b4a2=_0x2d3afd(_0x186fc0,_0x4f731c),_0x2fe17e=_0x241ebb(_0x186fc0,_0x4f731c),_0x5a171d=_0x3fbea3[_0x318400(0x17c)](),_0x4546c2=_0x3fbea3[_0x318400(0x184)](),_0x17e908={'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'drawingId':_0xdec124,'drawingType':_0x288fdc[_0x318400(0x15b)],'sheetTransform':_0x76b4a2,'transform':_0x186fc0,'data':{'shapeType':_0x5a171d,'shapeData':_0x4546c2},'axisAlignSheetTransform':_0x2fe17e,'allowTransform':!0x0},{undo:_0x2787bf,redo:_0x31d916,objects:_0x217953}=_0xb2c2c3[_0x318400(0x12e)]([_0x17e908]),_0xb98552=_0x40f824['onCommandExecute']({'id':_0x374047['id'],'params':{'unitId':_0x37d3d0,'drawings':[_0x17e908]}}),_0x43afa9=[...(_0x19d451=_0xb98552['preRedos'])==null?[]:_0x19d451,{'id':_0x4839e2['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'op':_0x31d916,'objects':_0x217953,'type':_0x48390c[_0x318400(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x37d3d0]},..._0xb98552['redos']],_0x425d46=[...(_0x5485f0=_0xb98552[_0x318400(0x12c)])==null?[]:_0x5485f0,{'id':_0x4839e2['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'op':_0x2787bf,'objects':_0x217953,'type':_0x48390c[_0x318400(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x37d3d0]},..._0xb98552[_0x318400(0x144)]];if(_0x1f3e71(_0x5a171d)){let _0x3ff7cb=_0x3fbea3[_0x318400(0x175)]();if(_0x3ff7cb){let _0x11088d={..._0x3ff7cb};_0x11088d['from']=void 0x0,_0x11088d['to']=void 0x0,_0x43afa9[_0x318400(0x14c)]({'id':Y['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'shapeId':_0xdec124,'shapeType':_0x5a171d,'shapeData':{'relation':_0x11088d}}}),_0x425d46[_0x318400(0x14c)]({'id':Y['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'shapeId':_0xdec124,'shapeType':_0x5a171d,'shapeData':{'relation':_0x3ff7cb}}});}}return _0x343173(_0x43afa9,_0x465eb6)['result']?(_0x2ad08e[_0x318400(0x13f)]({'unitID':_0x37d3d0,'undoMutations':_0x425d46,'redoMutations':_0x43afa9}),!0x0):!0x1;}},X={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x173),'handler':(_0x4e1b18,_0x29e52c)=>{const _0x19ac0e=_0x1ff262;var _0x18df51,_0x306ea9;let _0x2e3e0f=_0x3f54c4(_0x4e1b18[_0x19ac0e(0x1a9)](_0x5db55d),_0x29e52c);if(!_0x2e3e0f)return!0x1;let _0x3421a0=_0x4e1b18['get'](_0x23ace4),{unitId:_0x322404,subUnitId:_0x47f153}=_0x2e3e0f,_0x2e5f4a=_0x3421a0[_0x19ac0e(0x13d)](_0x322404,_0x47f153);if(!_0x2e5f4a)return!0x1;let _0x308c66=_0x4e1b18[_0x19ac0e(0x1a9)](_0x400d26),{shapeId:_0x343ecd,rotate:_0x2bccd}=_0x29e52c,_0x57cde0=_0x308c66[_0x19ac0e(0x1a2)]({'unitId':_0x322404,'subUnitId':_0x47f153,'drawingId':_0x343ecd});if(!_0x57cde0)return!0x1;let _0x5ba516=_0x4e1b18[_0x19ac0e(0x1a9)](G)[_0x19ac0e(0x1c0)](_0x322404,_0x47f153,_0x343ecd);if(!_0x5ba516)return!0x1;let _0x564496=_0x4e1b18[_0x19ac0e(0x1a9)](_0x388fc8),_0x101f74=_0x4e1b18[_0x19ac0e(0x1a9)](_0x10fe4b),_0x42aac8=_0x4e1b18[_0x19ac0e(0x1a9)](_0x3d8139),_0x2eb16c={..._0x57cde0['transform']};_0x2bccd!==void 0x0&&(_0x2eb16c[_0x19ac0e(0x146)]=(_0x2eb16c['angle']||0x0)+_0x2bccd);let _0x3d95d3=_0x2d3afd(_0x2eb16c,_0x2e5f4a),_0x19eb4f=_0x241ebb(_0x2eb16c,_0x2e5f4a),_0x335d6f=_0x5ba516[_0x19ac0e(0x17c)](),_0x33eac3=_0x5ba516['getShapeData'](),_0x1a6876={'unitId':_0x322404,'subUnitId':_0x47f153,'drawingId':_0x343ecd,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x3d95d3,'transform':_0x2eb16c,'data':{'shapeType':_0x335d6f,'shapeData':_0x33eac3},'axisAlignSheetTransform':_0x19eb4f,'allowTransform':!0x0},{undo:_0x24dfbd,redo:_0x314cb2,objects:_0x2940f9}=_0x308c66['getBatchUpdateOp']([_0x1a6876]),_0x3e95da=_0x42aac8['onCommandExecute']({'id':_0x374047['id'],'params':{'unitId':_0x322404,'drawings':[_0x1a6876]}}),_0x5a0dca=[...(_0x18df51=_0x3e95da[_0x19ac0e(0x16f)])==null?[]:_0x18df51,{'id':_0x4839e2['id'],'params':{'unitId':_0x322404,'subUnitId':_0x47f153,'op':_0x314cb2,'objects':_0x2940f9,'type':_0x48390c[_0x19ac0e(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x322404]},..._0x3e95da[_0x19ac0e(0x1a1)]],_0x489d74=[...(_0x306ea9=_0x3e95da[_0x19ac0e(0x12c)])==null?[]:_0x306ea9,{'id':_0x4839e2['id'],'params':{'unitId':_0x322404,'subUnitId':_0x47f153,'op':_0x24dfbd,'objects':_0x2940f9,'type':_0x48390c[_0x19ac0e(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x322404]},..._0x3e95da[_0x19ac0e(0x144)]];return _0x343173(_0x5a0dca,_0x564496)['result']?(_0x101f74[_0x19ac0e(0x13f)]({'unitID':_0x322404,'undoMutations':_0x489d74,'redoMutations':_0x5a0dca}),!0x0):!0x1;}},Z={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x147),'handler':(_0x16574c,_0x254e42)=>{const _0x187fdb=_0x1ff262;var _0x4a61bf;let _0x68af8c=_0x3f54c4(_0x16574c[_0x187fdb(0x1a9)](_0x5db55d),_0x254e42);if(!_0x68af8c)return!0x1;let {unitId:_0x3d4c6d,subUnitId:_0x3534f3}=_0x68af8c,{shapeId:_0x15d9ef}=_0x254e42,_0x12f4df=_0x16574c[_0x187fdb(0x1a9)](G)[_0x187fdb(0x1c0)](_0x3d4c6d,_0x3534f3,_0x15d9ef);if(!_0x12f4df)return!0x1;let _0x34f24e=_0x12f4df[_0x187fdb(0x1b2)](),_0x35d0a1=(_0x4a61bf=_0x34f24e==null?void 0x0:_0x34f24e[_0x187fdb(0x171)])==null?!0x0:_0x4a61bf,_0x1556ce=!_0x35d0a1,_0x4f715b=_0x16574c[_0x187fdb(0x1a9)](_0x388fc8),_0x1d95f9=_0x16574c['get'](_0x10fe4b),_0x9c5cd3={'unitId':_0x3d4c6d,'subUnitId':_0x3534f3,'shapeId':_0x15d9ef,'shapeData':{'shapeText':{'isHorizontal':_0x1556ce}}},_0x848c42={'unitId':_0x3d4c6d,'subUnitId':_0x3534f3,'shapeId':_0x15d9ef,'shapeData':{'shapeText':{'isHorizontal':_0x35d0a1}}},_0x389521=[{'id':Y['id'],'params':_0x9c5cd3}],_0x279576=[{'id':Y['id'],'params':_0x848c42}];return _0x343173(_0x389521,_0x4f715b)[_0x187fdb(0x194)]?(_0x1d95f9[_0x187fdb(0x13f)]({'unitID':_0x3d4c6d,'undoMutations':_0x279576,'redoMutations':_0x389521}),!0x0):!0x1;}},ne={'type':_0x2c633d['COMMAND'],'id':_0x1ff262(0x164),'handler':(_0x96069,_0x2515dd)=>{const _0x4abddb=_0x1ff262;var _0x3b4da9,_0x3a9c2d,_0xfb12c2,_0x314f9b;let _0x29bbd0=_0x3f54c4(_0x96069['get'](_0x5db55d),_0x2515dd);if(!_0x29bbd0)return!0x1;let _0x49d66e=_0x96069[_0x4abddb(0x1a9)](_0x23ace4),{unitId:_0x5ab307,subUnitId:_0x15e30a}=_0x29bbd0,_0x408b95=_0x49d66e[_0x4abddb(0x13d)](_0x5ab307,_0x15e30a);if(!_0x408b95)return!0x1;let _0x2965b2=_0x96069[_0x4abddb(0x1a9)](_0x400d26),{connectorShapeId:_0x2c2606,width:_0x27c944,height:_0xaec04c,left:_0x361616,top:_0xda647d,flipX:_0x127bbe,flipY:_0x42bc94,rotation:_0x35a97c,oldAdjustValues:_0x23583a,newAdjustValues:_0x44dd66,oldLineType:_0x2d5988,newLineType:_0x233526,oldRelation:_0x44483d,newRelation:_0x5632aa}=_0x2515dd,_0x19bb6d=_0x2965b2[_0x4abddb(0x1a2)]({'unitId':_0x5ab307,'subUnitId':_0x15e30a,'drawingId':_0x2c2606});if(!_0x19bb6d)return!0x1;let _0x103632=_0x96069[_0x4abddb(0x1a9)](G)[_0x4abddb(0x1c0)](_0x5ab307,_0x15e30a,_0x2c2606);if(!_0x103632)return!0x1;let _0x2b44c9=_0x96069[_0x4abddb(0x1a9)](_0x388fc8),_0x9873e8=_0x96069[_0x4abddb(0x1a9)](_0x10fe4b),_0x19d558=_0x96069[_0x4abddb(0x1a9)](_0x3d8139),_0xc12dcd={..._0x19bb6d[_0x4abddb(0x195)],'width':_0x27c944,'height':_0xaec04c,'left':_0x361616,'top':_0xda647d,'flipX':_0x127bbe,'flipY':_0x42bc94,'angle':(_0x3b4da9=_0x35a97c==null?(_0x3a9c2d=_0x19bb6d['transform'])==null?void 0x0:_0x3a9c2d[_0x4abddb(0x146)]:_0x35a97c)==null?0x0:_0x3b4da9},_0x356175=_0x2d3afd(_0xc12dcd,_0x408b95),_0x341591=_0x241ebb(_0xc12dcd,_0x408b95),_0x146513=_0x103632['getShapeType'](),_0x3d8dc9=_0x103632['getShapeData'](),_0x4a36a1={'unitId':_0x5ab307,'subUnitId':_0x15e30a,'drawingId':_0x2c2606,'drawingType':_0x288fdc[_0x4abddb(0x15b)],'sheetTransform':_0x356175,'transform':_0xc12dcd,'data':{'shapeType':_0x233526||_0x2d5988||_0x146513,'shapeData':{..._0x3d8dc9,'adjustValues':_0x44dd66||_0x23583a||(_0x3d8dc9==null?void 0x0:_0x3d8dc9['adjustValues']),'relation':_0x5632aa||_0x44483d||(_0x3d8dc9==null?void 0x0:_0x3d8dc9[_0x4abddb(0x1ae)])}},'axisAlignSheetTransform':_0x341591,'allowTransform':!0x0},{undo:_0x1e3919,redo:_0x2d2ddb,objects:_0x2cda9a}=_0x2965b2[_0x4abddb(0x12e)]([_0x4a36a1]),_0x42d63c=_0x19d558[_0x4abddb(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x5ab307,'drawings':[_0x4a36a1]}}),_0x31644a=[...(_0xfb12c2=_0x42d63c[_0x4abddb(0x16f)])==null?[]:_0xfb12c2,{'id':_0x4839e2['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'op':_0x2d2ddb,'objects':_0x2cda9a,'type':_0x48390c[_0x4abddb(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x5ab307]},..._0x42d63c[_0x4abddb(0x1a1)],{'id':Y['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'shapeId':_0x2c2606,'shapeType':_0x233526,'shapeData':{'adjustValues':_0x44dd66,'relation':_0x5632aa}}}],_0x29004b=[...(_0x314f9b=_0x42d63c['preUndos'])==null?[]:_0x314f9b,{'id':_0x4839e2['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'op':_0x1e3919,'objects':_0x2cda9a,'type':_0x48390c[_0x4abddb(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x5ab307]},..._0x42d63c[_0x4abddb(0x144)],{'id':Y['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'shapeId':_0x2c2606,'shapeType':_0x146513,'shapeData':{..._0x3d8dc9,'adjustValues':_0x23583a||(_0x3d8dc9==null?void 0x0:_0x3d8dc9['adjustValues']),'relation':_0x44483d||(_0x3d8dc9==null?void 0x0:_0x3d8dc9[_0x4abddb(0x1ae)])}}}];return _0x343173(_0x31644a,_0x2b44c9)['result']?(_0x9873e8[_0x4abddb(0x13f)]({'unitID':_0x5ab307,'undoMutations':_0x29004b,'redoMutations':_0x31644a}),!0x0):!0x1;}},re={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x145),'handler':(_0x15e021,_0x573b60)=>{const _0x13274d=_0x1ff262;var _0xed353b,_0x684fd3;let _0x381208=_0x3f54c4(_0x15e021[_0x13274d(0x1a9)](_0x5db55d),_0x573b60);if(!_0x381208)return!0x1;let _0x723aad=_0x15e021[_0x13274d(0x1a9)](_0x23ace4),{unitId:_0x26aa6f,subUnitId:_0x5a4bd6}=_0x381208,_0x3311cd=_0x723aad[_0x13274d(0x13d)](_0x26aa6f,_0x5a4bd6);if(!_0x3311cd)return!0x1;let _0x19153b=_0x15e021['get'](_0x400d26),{shapeId:_0x199abb,width:_0x1afe0f,height:_0x177307,left:_0x381c44,top:_0x533fbe,flipX:_0x28fbb4,flipY:_0x1eea3e,angle:_0x4df47d,oldAdjustValues:_0x4a8f3e,newAdjustValues:_0x5e812d,oldLineType:_0x75b182,newLineType:_0x58a684}=_0x573b60,_0x15e134=_0x19153b['getDrawingByParam']({'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'drawingId':_0x199abb});if(!_0x15e134)return!0x1;let _0x2d9e59=_0x15e021['get'](G)['getShapeModel'](_0x26aa6f,_0x5a4bd6,_0x199abb);if(!_0x2d9e59)return!0x1;let _0x3e20a7=_0x15e021[_0x13274d(0x1a9)](_0x388fc8),_0x1beb45=_0x15e021[_0x13274d(0x1a9)](_0x10fe4b),_0x44f8d0=_0x15e021[_0x13274d(0x1a9)](_0x3d8139),_0x238af3={..._0x15e134[_0x13274d(0x195)],'width':_0x1afe0f,'height':_0x177307,'left':_0x381c44,'top':_0x533fbe,'flipX':_0x28fbb4,'flipY':_0x1eea3e,'angle':_0x4df47d},_0x4ef1df=_0x2d3afd(_0x238af3,_0x3311cd),_0x3a0bf2=_0x241ebb(_0x238af3,_0x3311cd),_0x1b66fa=_0x2d9e59[_0x13274d(0x17c)](),_0x3c3331=_0x2d9e59[_0x13274d(0x184)](),_0xdd52e7={'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'drawingId':_0x199abb,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x4ef1df,'transform':_0x238af3,'data':{'shapeType':_0x58a684||_0x75b182||_0x1b66fa,'shapeData':{..._0x3c3331,'adjustValues':_0x5e812d||_0x4a8f3e||(_0x3c3331==null?void 0x0:_0x3c3331[_0x13274d(0x1a6)])}},'axisAlignSheetTransform':_0x3a0bf2,'allowTransform':!0x0},{undo:_0x560190,redo:_0x2e8e72,objects:_0x5b5fb9}=_0x19153b[_0x13274d(0x12e)]([_0xdd52e7]),_0x58a1b0=_0x44f8d0[_0x13274d(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x26aa6f,'drawings':[_0xdd52e7]}}),_0x462ed5=[...(_0xed353b=_0x58a1b0['preRedos'])==null?[]:_0xed353b,{'id':_0x4839e2['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'op':_0x2e8e72,'objects':_0x5b5fb9,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x26aa6f]},..._0x58a1b0[_0x13274d(0x1a1)],{'id':Y['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'shapeId':_0x199abb,'shapeType':_0x58a684,'shapeData':{'adjustValues':_0x5e812d}}}],_0x5c3e53=[...(_0x684fd3=_0x58a1b0['preUndos'])==null?[]:_0x684fd3,{'id':_0x4839e2['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'op':_0x560190,'objects':_0x5b5fb9,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x26aa6f]},..._0x58a1b0[_0x13274d(0x144)],{'id':Y['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'shapeId':_0x199abb,'shapeType':_0x1b66fa,'shapeData':{..._0x3c3331,'adjustValues':_0x4a8f3e||(_0x3c3331==null?void 0x0:_0x3c3331['adjustValues'])}}}];return _0x343173(_0x462ed5,_0x3e20a7)[_0x13274d(0x194)]?(_0x1beb45[_0x13274d(0x13f)]({'unitID':_0x26aa6f,'undoMutations':_0x5c3e53,'redoMutations':_0x462ed5}),!0x0):!0x1;}},Q={'id':'sheet.mutation.update-shape-type','type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x25b726,_0x4f0581)=>{const _0x3ab89=_0x1ff262;let {unitId:_0x34611f,subUnitId:_0x30d791,shapeType:_0x4e4d23,shapeId:_0x28bed2,shapeData:_0x3a6885}=_0x4f0581,_0x2965dd=_0x25b726[_0x3ab89(0x1a9)](G)[_0x3ab89(0x1c0)](_0x34611f,_0x30d791,_0x28bed2);return _0x2965dd&&(_0x2965dd[_0x3ab89(0x1b4)](_0x4e4d23),_0x3a6885&&(_0x2965dd==null||_0x2965dd[_0x3ab89(0x13b)](_0x3a6885))),!0x0;}},ie={'id':_0x1ff262(0x188),'type':_0x2c633d[_0x1ff262(0x1a4)],'handler':(_0x4aab12,_0x5ed3cb)=>{const _0x2b661f=_0x1ff262;if(!_0x5ed3cb)return!0x1;let _0x47dde6=_0x4aab12[_0x2b661f(0x1a9)](_0x388fc8),_0x17d990=_0x4aab12['get'](G),_0x40e793=_0x4aab12[_0x2b661f(0x1a9)](_0x10fe4b),_0x2629b8=[],_0x53f5a8=[],{unitId:_0x4fc086,subUnitId:_0x4fd945,shapeId:_0xb66837,shapeType:_0x99e6ee,shapeData:_0xca32f7}=_0x5ed3cb,_0x5afa09=_0x17d990[_0x2b661f(0x1c0)](_0x4fc086,_0x4fd945,_0xb66837);if(_0x5afa09){let _0x3dc90b=_0x5afa09[_0x2b661f(0x17c)](),_0x1bad66=Object[_0x2b661f(0x1a8)]({},_0x5afa09[_0x2b661f(0x184)]()),_0x131b84={'unitId':_0x4fc086,'subUnitId':_0x4fd945,'shapeId':_0xb66837,'shapeType':_0x99e6ee,'shapeData':_0xca32f7},_0x3b2623={'unitId':_0x4fc086,'subUnitId':_0x4fd945,'shapeId':_0xb66837,'shapeType':_0x3dc90b,'shapeData':_0x1bad66};return _0x2629b8[_0x2b661f(0x14c)]({'id':Q['id'],'params':_0x131b84}),_0x53f5a8['push']({'id':Q['id'],'params':_0x3b2623}),_0x2629b8[_0x2b661f(0x199)](_0x3bb7a8=>_0x47dde6[_0x2b661f(0x189)](_0x3bb7a8['id'],_0x3bb7a8[_0x2b661f(0x1ac)]))&&_0x40e793[_0x2b661f(0x13f)]({'unitID':_0x4fc086,'redoMutations':[..._0x2629b8],'undoMutations':[..._0x53f5a8]}),!0x0;}return!0x1;}};var ae='@univerjs-pro/sheets-shape',oe='0.25.2';const se={};let ce=class extends _0xa3f2a6{constructor(_0x3a7d44,_0x8373,_0x5b4232,_0xb2f4f7,_0x605a12){const _0x5d1f2c=_0x1ff262;super(),this[_0x5d1f2c(0x169)]=_0x3a7d44,this['_sheetInterceptorService']=_0x8373,this['_sheetSkeletonService']=_0x5b4232,this[_0x5d1f2c(0x17b)]=_0xb2f4f7,this['_drawingManagerService']=_0x605a12,this[_0x5d1f2c(0x12a)](),this[_0x5d1f2c(0x130)]();}[_0x1ff262(0x12a)](){const _0x2c6394=_0x1ff262;[J,ee,te,X,Z,ne,re,K,q,Q,Y][_0x2c6394(0x19b)](_0x484600=>this['disposeWithMe'](this[_0x2c6394(0x169)]['registerCommand'](_0x484600)));}[_0x1ff262(0x130)](){const _0x462c1c=_0x1ff262;this[_0x462c1c(0x174)](this['_sheetInterceptorService'][_0x462c1c(0x13c)]({'getMutations':_0x2c0cbc=>{const _0x1dc0b8=_0x462c1c;if(_0x2c0cbc['id']===_0x3596f8['id']){let {drawings:_0x606a62}=_0x2c0cbc['params'],_0x2a4aca=_0x606a62[_0x1dc0b8(0x131)](_0x4173c8=>_0x4173c8[_0x1dc0b8(0x1af)]===_0x288fdc[_0x1dc0b8(0x15b)]);if(_0x2a4aca[_0x1dc0b8(0x181)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2d8e5f=[],_0x3c6e43=[];return _0x2a4aca[_0x1dc0b8(0x19b)](_0x4409d9=>{const _0x4a096d=_0x1dc0b8;let {unitId:_0x798bff,subUnitId:_0x310af2,drawingId:_0x31f70a}=_0x4409d9,_0x1c9eaa=this[_0x4a096d(0x17b)][_0x4a096d(0x1c0)](_0x798bff,_0x310af2,_0x31f70a);if(!_0x1c9eaa)throw TypeError(_0x4a096d(0x13e)+_0x1c9eaa);_0x2d8e5f['push']({'id':q['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x31f70a}}),_0x3c6e43[_0x4a096d(0x14c)]({'id':K['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x31f70a,'shapeType':_0x1c9eaa[_0x4a096d(0x17c)](),'shapeData':_0x1c9eaa[_0x4a096d(0x184)]()}});let _0x531690=this[_0x4a096d(0x17b)][_0x4a096d(0x167)](_0x798bff,_0x310af2,_0x31f70a);if(_0x531690)for(let _0x2bbaea of _0x531690){let _0x21a31c=_0x2bbaea['lineShapeId'],_0x5d2180=_0x2bbaea[_0x4a096d(0x1bf)],_0x597832=_0x5d2180?{'from':void 0x0}:{'to':void 0x0},_0x479c12=_0x5d2180?{'from':{'shapeId':_0x2bbaea[_0x4a096d(0x1a5)],'cxnIndex':_0x2bbaea[_0x4a096d(0x16e)]}}:{'to':{'shapeId':_0x2bbaea[_0x4a096d(0x1a5)],'cxnIndex':_0x2bbaea['cxnIndex']}};_0x2d8e5f['push']({'id':Y['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x21a31c,'shapeData':{'relation':_0x597832}}}),_0x3c6e43[_0x4a096d(0x14c)]({'id':Y['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x21a31c,'shapeData':{'relation':_0x479c12}}});}}),{'preRedos':_0x2d8e5f,'redos':[],'preUndos':[],'undos':_0x3c6e43};}if(_0x2c0cbc['id']===_0x374047['id']){let {drawings:_0x3c6b4c}=_0x2c0cbc[_0x1dc0b8(0x1ac)],_0x4d82aa=_0x3c6b4c[_0x1dc0b8(0x131)](_0x3f6ca0=>_0x3f6ca0[_0x1dc0b8(0x1af)]===_0x288fdc['DRAWING_SHAPE']);if(_0x4d82aa[_0x1dc0b8(0x181)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x8dd29c=[],_0x50c184=[];for(let _0x170322 of _0x4d82aa){let {unitId:_0x1c6107,subUnitId:_0x5f475a,drawingId:_0x227087,transform:_0x251436}=_0x170322;if(!_0x1c6107||!_0x5f475a||!_0x227087||!_0x251436)continue;let _0x1beeb0=this[_0x1dc0b8(0x17b)][_0x1dc0b8(0x1c0)](_0x1c6107,_0x5f475a,_0x227087);if(!_0x1beeb0)throw TypeError(_0x1dc0b8(0x13e)+_0x1beeb0);if(_0x1f3e71(_0x1beeb0[_0x1dc0b8(0x17c)]())){let _0xc04341=this['_sheetsShapeService']['getLineShapeRelation'](_0x1c6107,_0x5f475a,_0x227087);_0xc04341&&(_0x8dd29c[_0x1dc0b8(0x14c)]({'id':Y['id'],'params':{'unitId':_0x1c6107,'subUnitId':_0x5f475a,'shapeId':_0x227087,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x50c184[_0x1dc0b8(0x14c)]({'id':Y['id'],'params':{'unitId':_0x1c6107,'subUnitId':_0x5f475a,'shapeId':_0x227087,'shapeData':{'relation':_0xc04341}}}));}else{let _0x390253=this[_0x1dc0b8(0x17b)]['getBasicShapeRelation'](_0x1c6107,_0x5f475a,_0x227087);if(_0x390253&&_0x390253[_0x1dc0b8(0x181)]>0x0)for(let _0x366963 of _0x390253){let _0x1c5ff5=_0x366963[_0x1dc0b8(0x19d)],_0x8e5760=_0x366963[_0x1dc0b8(0x1bf)],_0x487f6e=this['_sheetsShapeService']['getShapeModel'](_0x1c6107,_0x5f475a,_0x1c5ff5);if(!_0x487f6e)continue;let _0x537eb1=_0x487f6e[_0x1dc0b8(0x187)](),_0x19306e=_0x487f6e[_0x1dc0b8(0x148)]();_0x537eb1&&_0x19306e?this[_0x1dc0b8(0x162)](_0x1c6107,_0x5f475a,_0x1c5ff5,_0x487f6e,_0x537eb1,_0x19306e,_0x8dd29c,_0x50c184,_0x227087,_0x251436):this[_0x1dc0b8(0x14b)](_0x1c6107,_0x5f475a,_0x1c5ff5,_0x487f6e,_0x8e5760?_0x537eb1:_0x19306e,_0x8e5760,_0x8dd29c,_0x50c184,_0x227087,_0x251436);}}}return{'preRedos':[],'redos':_0x8dd29c,'preUndos':_0x50c184,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1ff262(0x137)](_0x33c650,_0x470441,_0x2131ba,_0x43098e,_0x332436){const _0x5bdbd7=_0x1ff262;if(!_0x470441||!_0x2131ba)return null;let {shapeId:_0x166c76,cxnIndex:_0x139b07}=_0x33c650,_0x406c96=this[_0x5bdbd7(0x17b)][_0x5bdbd7(0x1c0)](_0x470441,_0x2131ba,_0x166c76);if(!_0x406c96)return null;let _0x40efb0=this[_0x5bdbd7(0x1c2)][_0x5bdbd7(0x1a2)]({'unitId':_0x470441,'subUnitId':_0x2131ba,'drawingId':_0x166c76});if(!(_0x40efb0!=null&&_0x40efb0['transform']))return null;let {left:_0x21176b=0x0,top:_0x15942e=0x0,width:_0x296cf1=0x0,height:_0x3a5929=0x0,flipX:_0x410113=!0x1,flipY:_0x3abfce=!0x1,angle:_0x16fd1e}=_0x40efb0[_0x5bdbd7(0x195)];if(_0x332436&&_0x43098e===_0x166c76){var _0x5575a8,_0x395390,_0x419b15,_0x5cb55e,_0x310d38,_0x70fd42,_0x2cd057;_0x21176b=(_0x5575a8=_0x332436[_0x5bdbd7(0x15d)])==null?_0x21176b:_0x5575a8,_0x15942e=(_0x395390=_0x332436[_0x5bdbd7(0x165)])==null?_0x15942e:_0x395390,_0x296cf1=(_0x419b15=_0x332436[_0x5bdbd7(0x1b8)])==null?_0x296cf1:_0x419b15,_0x3a5929=(_0x5cb55e=_0x332436[_0x5bdbd7(0x139)])==null?_0x3a5929:_0x5cb55e,_0x410113=(_0x310d38=_0x332436[_0x5bdbd7(0x1b6)])==null?_0x410113:_0x310d38,_0x3abfce=(_0x70fd42=_0x332436[_0x5bdbd7(0x1a7)])==null?_0x3abfce:_0x70fd42,_0x16fd1e=(_0x2cd057=_0x332436[_0x5bdbd7(0x146)])==null?_0x16fd1e:_0x2cd057;}_0x406c96[_0x5bdbd7(0x159)]({'width':_0x296cf1,'height':_0x3a5929});let _0x1e18e3=_0x406c96['getConnectionSiteList']()[_0x5bdbd7(0x198)](_0x174852=>_0x174852[_0x5bdbd7(0x155)]===_0x139b07);if(!_0x1e18e3)return null;let _0x12e336=_0x410113?_0x296cf1-_0x1e18e3['x']:_0x1e18e3['x'],_0x4fe382=_0x3abfce?_0x3a5929-_0x1e18e3['y']:_0x1e18e3['y'];if(_0x16fd1e!==0x0&&_0x16fd1e!=null){let _0x1c53c0=_0x16fd1e*Math['PI']/0xb4,_0x28f262=Math[_0x5bdbd7(0x191)](_0x1c53c0),_0x18d2af=Math[_0x5bdbd7(0x127)](_0x1c53c0),_0x9ab1e2=_0x296cf1/0x2,_0x4a7673=_0x3a5929/0x2,_0x4f0c43=_0x12e336-_0x9ab1e2,_0x4ae411=_0x4fe382-_0x4a7673;_0x12e336=_0x9ab1e2+_0x4f0c43*_0x28f262-_0x4ae411*_0x18d2af,_0x4fe382=_0x4a7673+_0x4f0c43*_0x18d2af+_0x4ae411*_0x28f262;}_0x12e336+=_0x21176b,_0x4fe382+=_0x15942e;let _0x4e8e46=_0x1e18e3[_0x5bdbd7(0x16d)]/0xea60;_0x410113&&(_0x4e8e46=0xb4-_0x4e8e46),_0x3abfce&&(_0x4e8e46=-_0x4e8e46),_0x4e8e46+=_0x16fd1e||0x0,_0x4e8e46=(_0x4e8e46%0x168+0x168)%0x168;let _0xb32912=_0x1f4faa({'left':_0x21176b,'top':_0x15942e,'width':_0x296cf1,'height':_0x3a5929},_0x16fd1e||0x0);return{'point':{'x':_0x12e336,'y':_0x4fe382},'angle':_0x4e8e46,'bounds':_0xb32912};}['_addLineRerouteUpdates'](_0x502bc2,_0x25fbee,_0x26b575,_0x592ac4,_0x37e8aa,_0x3c40ca,_0x33510c,_0x381055,_0x50e4a2,_0x3ccfde){const _0x8dc1f7=_0x1ff262;let _0x20f4d8=this[_0x8dc1f7(0x136)]['getSkeleton'](_0x502bc2,_0x25fbee);if(!_0x20f4d8)return;let _0x17a9ea=_0x592ac4['getShapeRelation'](),_0x52cde3=_0x592ac4[_0x8dc1f7(0x153)](),_0x335d86={},_0x4d9444={};_0x52cde3['forEach'](_0x41a810=>{let _0x18eb85=_0x592ac4['getAdjustValueByName'](_0x41a810);_0x4d9444[_0x41a810]=_0x18eb85==null?0x0:_0x18eb85;});let _0x35f94f=this[_0x8dc1f7(0x137)](_0x37e8aa,_0x502bc2,_0x25fbee,_0x50e4a2,_0x3ccfde),_0x13a8ef=this[_0x8dc1f7(0x137)](_0x3c40ca,_0x502bc2,_0x25fbee,_0x50e4a2,_0x3ccfde);if(_0x35f94f&&_0x13a8ef){let _0x1669a9=_0x592ac4['getShapeType'](),_0x290c68=_0x5a3de9(_0x35f94f,_0x13a8ef,_0x1669a9),_0x281e8d=_0x1669a9;if(_0x290c68){let _0x3cc56e=_0x1adc9d(_0x290c68,_0x592ac4['getShapeType']()),_0x1500ac=this['_drawingManagerService'][_0x8dc1f7(0x170)](_0x502bc2,_0x25fbee);if(_0x1500ac&&_0x1500ac[_0x26b575]){let _0x5357e6=_0x1500ac[_0x26b575];_0x281e8d=_0x3cc56e[_0x8dc1f7(0x133)];for(let [_0x4a4d73,_0x361de9]of Object[_0x8dc1f7(0x197)](_0x3cc56e[_0x8dc1f7(0x1a6)]))_0x335d86[_0x4a4d73]=_0x361de9;let _0x4c6d55={..._0x5357e6[_0x8dc1f7(0x195)],'width':_0x3cc56e[_0x8dc1f7(0x14f)]['width'],'height':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x139)],'left':_0x3cc56e['worldRect']['left'],'top':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x165)],'flipX':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x1b6)],'flipY':_0x3cc56e['worldRect'][_0x8dc1f7(0x1a7)],'angle':_0x3cc56e[_0x8dc1f7(0x19f)]},_0x13b2a0=_0x2d3afd(_0x4c6d55,_0x20f4d8),_0x5a4ace=_0x241ebb(_0x4c6d55,_0x20f4d8),_0x541556={'unitId':_0x502bc2,'subUnitId':_0x25fbee,'drawingType':_0x288fdc[_0x8dc1f7(0x15b)],'drawingId':_0x26b575,'transform':_0x4c6d55,'sheetTransform':_0x13b2a0,'axisAlignSheetTransform':_0x5a4ace},{unitId:_0x151f95,subUnitId:_0x5453e5,undo:_0x5641e5,redo:_0x43db26,objects:_0x53dac3}=this[_0x8dc1f7(0x1c2)][_0x8dc1f7(0x12e)]([_0x541556]);_0x33510c['push']({'id':_0x4839e2['id'],'params':{'unitId':_0x151f95,'subUnitId':_0x5453e5,'op':_0x43db26,'objects':_0x53dac3,'type':_0x48390c[_0x8dc1f7(0x149)]}}),_0x381055['push']({'id':_0x4839e2['id'],'params':{'unitId':_0x151f95,'subUnitId':_0x5453e5,'op':_0x5641e5,'objects':_0x53dac3,'type':_0x48390c['UPDATE']}});}_0x592ac4[_0x8dc1f7(0x1b9)]();}_0x33510c[_0x8dc1f7(0x14c)]({'id':Y['id'],'params':{'unitId':_0x502bc2,'subUnitId':_0x25fbee,'shapeId':_0x26b575,'shapeType':_0x281e8d,'shapeData':{'adjustValues':_0x335d86,'relation':_0x17a9ea}}}),_0x381055[_0x8dc1f7(0x14c)]({'id':Y['id'],'params':{'unitId':_0x502bc2,'subUnitId':_0x25fbee,'shapeId':_0x26b575,'shapeType':_0x1669a9,'shapeData':{'adjustValues':_0x4d9444,'relation':_0x17a9ea}}});}}[_0x1ff262(0x14b)](_0x43c31d,_0x378ce2,_0x1de7ec,_0x103633,_0x313e19,_0x13d247,_0x295998,_0x32d3ad,_0x17ffe2,_0x358271){const _0x59b7fb=_0x1ff262;var _0x218199;if(!_0x313e19)return;let _0x51e78e=this[_0x59b7fb(0x136)][_0x59b7fb(0x13d)](_0x43c31d,_0x378ce2);if(!_0x51e78e)return;let _0x10aebd=(_0x218199=this[_0x59b7fb(0x1c2)]['getDrawingByParam']({'unitId':_0x43c31d,'subUnitId':_0x378ce2,'drawingId':_0x17ffe2}))==null?void 0x0:_0x218199[_0x59b7fb(0x195)];if(!_0x10aebd)return;let _0x369aa1=_0x10aebd['left']!==_0x358271['left']||_0x10aebd[_0x59b7fb(0x165)]!==_0x358271['top'],_0x3d6857=_0x10aebd[_0x59b7fb(0x1b8)]!==_0x358271['width']||_0x10aebd['height']!==_0x358271[_0x59b7fb(0x139)],_0x2c6da5=_0x10aebd[_0x59b7fb(0x1b6)]!==_0x358271[_0x59b7fb(0x1b6)]||_0x10aebd[_0x59b7fb(0x1a7)]!==_0x358271[_0x59b7fb(0x1a7)],_0x14bed3=_0x10aebd[_0x59b7fb(0x146)]!==_0x358271[_0x59b7fb(0x146)];if(_0x369aa1&&!_0x3d6857&&!_0x2c6da5&&!_0x14bed3){var _0x283c39,_0x1abc8e,_0x29897e,_0x256476;let _0x108901=((_0x283c39=_0x358271[_0x59b7fb(0x15d)])==null?0x0:_0x283c39)-((_0x1abc8e=_0x10aebd['left'])==null?0x0:_0x1abc8e),_0x52ac4b=((_0x29897e=_0x358271[_0x59b7fb(0x165)])==null?0x0:_0x29897e)-((_0x256476=_0x10aebd[_0x59b7fb(0x165)])==null?0x0:_0x256476),_0x5d59ea=this[_0x59b7fb(0x1c2)][_0x59b7fb(0x170)](_0x43c31d,_0x378ce2);if(_0x5d59ea&&_0x5d59ea[_0x1de7ec]){var _0x31ff56,_0x559a33,_0x3fea10,_0x15284d;let _0x1d5dc8=_0x5d59ea[_0x1de7ec],_0x4a12bc={..._0x1d5dc8[_0x59b7fb(0x195)],'left':((_0x31ff56=(_0x559a33=_0x1d5dc8[_0x59b7fb(0x195)])==null?void 0x0:_0x559a33[_0x59b7fb(0x15d)])==null?0x0:_0x31ff56)+_0x108901,'top':((_0x3fea10=(_0x15284d=_0x1d5dc8['transform'])==null?void 0x0:_0x15284d[_0x59b7fb(0x165)])==null?0x0:_0x3fea10)+_0x52ac4b},_0x22e76b=_0x2d3afd(_0x4a12bc,_0x51e78e),_0x32fcab=_0x241ebb(_0x4a12bc,_0x51e78e),_0x134e04={'unitId':_0x43c31d,'subUnitId':_0x378ce2,'drawingType':_0x288fdc[_0x59b7fb(0x15b)],'drawingId':_0x1de7ec,'transform':_0x4a12bc,'sheetTransform':_0x22e76b,'axisAlignSheetTransform':_0x32fcab},{unitId:_0x266fc9,subUnitId:_0x168126,undo:_0x1add3c,redo:_0x334fce,objects:_0x5b8896}=this['_drawingManagerService'][_0x59b7fb(0x12e)]([_0x134e04]);_0x295998[_0x59b7fb(0x14c)]({'id':_0x4839e2['id'],'params':{'unitId':_0x266fc9,'subUnitId':_0x168126,'op':_0x334fce,'objects':_0x5b8896,'type':_0x48390c[_0x59b7fb(0x149)]}}),_0x32d3ad[_0x59b7fb(0x14c)]({'id':_0x4839e2['id'],'params':{'unitId':_0x266fc9,'subUnitId':_0x168126,'op':_0x1add3c,'objects':_0x5b8896,'type':_0x48390c['UPDATE']}});}}else{let _0x3a3657=_0x103633[_0x59b7fb(0x187)](),_0x4cfd90=_0x103633['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x43c31d,_0x378ce2,_0x1de7ec,_0x103633,_0x3a3657,_0x4cfd90,_0x295998,_0x32d3ad,_0x17ffe2,_0x358271);}}};ce=W([U(0x0,_0x388fc8),U(0x1,_0x2530fb(_0x3d8139)),U(0x2,_0x2530fb(_0x23ace4)),U(0x3,_0x2530fb(G)),U(0x4,_0x2530fb(_0x11e38f))],ce);let $=class extends _0x23871c{constructor(_0x887170=se,_0x17f95d,_0x18f6f1,_0x3d5ef4){const _0x56641f=_0x1ff262;super(),this[_0x56641f(0x176)]=_0x887170,this[_0x56641f(0x193)]=_0x17f95d,this[_0x56641f(0x169)]=_0x18f6f1,this['_configService']=_0x3d5ef4;let {..._0x3a03df}=_0xab60b4({},se,this['_config']);this[_0x56641f(0x1c3)][_0x56641f(0x1b5)]('sheets-shape.config',_0x3a03df);}[_0x1ff262(0x16a)](){const _0x15b221=_0x1ff262;let _0x47e928=this[_0x15b221(0x193)];[[H],[G],[ce]][_0x15b221(0x19b)](_0x52f01a=>_0x47e928['add'](_0x52f01a)),_0x1d0968(_0x47e928,[[G],[ce]]);}};function _0x1c55(){const _0x912987=['_linesIds','137586uEsstU','from','updateContext','sheet.mutation.insert-shape','DRAWING_SHAPE','removeShape','left','getCellWithCoordByIndex','data','sheet.mutation.remove-shape','_resourcesManagerService','_addLineRerouteUpdates','5lVrpBt','sheet.command.update-connector-relation','top','add','getBasicShapeRelation','getBasicShapeType','_commandService','onStarting','object','keys','ang','cxnIndex','preRedos','getDrawingData','isHorizontal','getLineShapeRelation','sheet.command.set-shape-rotate','disposeWithMe','getShapeRelation','_config','symbol','toJSON','getShapeDataById','ensureSkeleton','_sheetsShapeService','getShapeType','defineProperty','startX','borderEnabled','version','length','onCommandExecute','18RmPzcC','getShapeData','isLineShape','_initSnapshot','getStartConnectInfo','sheet.command.update-shape-type','syncExecuteCommand','packageName','clear','747912ntSNzC','getBatchAddOp','3693312npYmDa','delete','resizeEnabled','cos','startY','_injector','result','transform','toPrimitive','entries','find','every','dispose','forEach','SHEET_SHAPE_PLUGIN','lineShapeId','getOwnPropertyDescriptor','rotation','position','redos','getDrawingByParam','pluginName','COMMAND','shapeId','adjustValues','flipY','assign','get','function','_shapeModelManagerMap','params','rotateEnabled','relation','drawingType','_ensureShapeModelManager','set','getShapeTextData','9382190KKCvsd','setShapeType','setConfig','flipX','MUTATION','width','removeLinePoints','hasShape','stringify','_serializeShapeForUnit','prototype','_shapes','isFrom','getShapeModel','INSERT','_drawingManagerService','_configService','sin','49fkbBJG','registerPluginResource','_initCommands','sheet.command.toggle-shape-flip','preUndos','sheet.command.set-shape-drawing-data','getBatchUpdateOp','insertShape','_initCommandInterceptor','filter','iterator','lineType','925392OcpOKK','2807433owEKNF','_sheetSkeletonService','_getConnectPointInfo','sheet.command.insert-shape','height','default','setShapeData','interceptCommand','getSkeleton','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','pushUndoRedo','addShape','fill','_groupIds','4169336XflTvV','undos','sheet.command.update-line-shape-resize','angle','sheet.command.set-shape-text-vertical-toggle','getEndConnectInfo','UPDATE','fromJSON','_addLineFollowShapeUpdates','push','getCellIndexAndOffsetByPosition','_disposed','worldRect','REMOVE','_deserializeShapeForUnit','has','getAdjustNames','parse','index'];_0x1c55=function(){return _0x912987;};return _0x1c55();}V($,'type',_0x4f30e9['UNIVER_SHEET']),V($,_0x1ff262(0x1a3),_0x1ff262(0x19c)),V($,_0x1ff262(0x18a),ae),V($,_0x1ff262(0x180),oe),$=W([_0x13d69f(_0x19cd3c),U(0x1,_0x2530fb(_0x2f815e)),U(0x2,_0x388fc8),U(0x3,_0x7b487e)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2073d0=_0x50e3;(function(_0x475033,_0x1bce5f){const _0x2284ed=_0x50e3,_0x49e1ef=_0x475033();while(!![]){try{const _0x3ab621=parseInt(_0x2284ed(0x17b))/0x1*(-parseInt(_0x2284ed(0x11f))/0x2)+-parseInt(_0x2284ed(0x10e))/0x3+-parseInt(_0x2284ed(0x14e))/0x4+-parseInt(_0x2284ed(0x137))/0x5*(-parseInt(_0x2284ed(0x16d))/0x6)+-parseInt(_0x2284ed(0x11a))/0x7*(-parseInt(_0x2284ed(0x145))/0x8)+parseInt(_0x2284ed(0x173))/0x9*(-parseInt(_0x2284ed(0x105))/0xa)+-parseInt(_0x2284ed(0x164))/0xb*(-parseInt(_0x2284ed(0x15b))/0xc);if(_0x3ab621===_0x1bce5f)break;else _0x49e1ef['push'](_0x49e1ef['shift']());}catch(_0x4ae1d6){_0x49e1ef['push'](_0x49e1ef['shift']());}}}(_0x3850,0x2ecc9));import{ConnectorCoordinateTransform as _0x3d6405,ShapeArrowSizeEnum as _0x5ad41c,ShapeArrowTypeEnum as _0x489d00,ShapeFillEnum as _0x3a3330,ShapeGradientTypeEnum as _0x528bbb,ShapeLineCapEnum as _0x5bde8f,ShapeLineDashEnum as _0x9c15d2,ShapeLineJoinEnum as _0x38c71a,ShapeLineTypeEnum as _0xd5ba2a,ShapeTypeEnum as _0x19ac2c,computeConnectorRouteLayout as _0x416057,getBasicShapeRotateBound as _0x2e4726,isConnectorShape as _0x41643b,routeConnectorLineShape as _0x232c7e}from'@univerjs-pro/engine-shape';import{FEnum as _0x285a81}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x54d06d,DEFAULT_SHAPE_WIDTH as _0x2bb6ff,InsertShapeCommand as _0x531a5c,SetShapeDrawingDataCommand as _0x4a74ed,SheetsShapeService as _0x20e1c9,UpdateConnectorRelationCommand as _0x127ca0}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x232e10,generateRandomId as _0x1e925e}from'@univerjs/core';import{IDrawingManagerService as _0x5859f8}from'@univerjs/drawing';import{SheetSkeletonService as _0x2a796e,convertPositionCellToSheetOverGrid as _0x3621c7}from'@univerjs/sheets';import{ISheetDrawingService as _0x286869,RemoveSheetDrawingCommand as _0x4ddd72}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26843a}from'@univerjs/sheets/facade';var k=class extends _0x285a81{get[_0x2073d0(0x176)](){return _0x19ac2c;}get[_0x2073d0(0x100)](){return _0x3a3330;}get['ShapeGradientTypeEnum'](){return _0x528bbb;}get['ShapeLineTypeEnum'](){return _0xd5ba2a;}get[_0x2073d0(0x14b)](){return _0x9c15d2;}get[_0x2073d0(0x16c)](){return _0x5bde8f;}get[_0x2073d0(0x14a)](){return _0x38c71a;}get[_0x2073d0(0x172)](){return _0x489d00;}get[_0x2073d0(0xff)](){return _0x5ad41c;}};_0x285a81[_0x2073d0(0x179)](k);function A(_0x225554){'@babel/helpers - typeof';const _0x20d739=_0x2073d0;return A=typeof Symbol==_0x20d739(0x12b)&&typeof Symbol[_0x20d739(0x142)]==_0x20d739(0x16b)?function(_0x52afcc){return typeof _0x52afcc;}:function(_0x56b91b){const _0x1db4c9=_0x20d739;return _0x56b91b&&typeof Symbol==_0x1db4c9(0x12b)&&_0x56b91b[_0x1db4c9(0x12c)]===Symbol&&_0x56b91b!==Symbol[_0x1db4c9(0x119)]?_0x1db4c9(0x16b):typeof _0x56b91b;},A(_0x225554);}function j(_0x228039,_0x1741b4){const _0x3fa298=_0x2073d0;if(A(_0x228039)!=_0x3fa298(0xfd)||!_0x228039)return _0x228039;var _0x19a606=_0x228039[Symbol[_0x3fa298(0x132)]];if(_0x19a606!==void 0x0){var _0x1a93f6=_0x19a606[_0x3fa298(0x110)](_0x228039,_0x1741b4||_0x3fa298(0x12d));if(A(_0x1a93f6)!=_0x3fa298(0xfd))return _0x1a93f6;throw TypeError(_0x3fa298(0x174));}return(_0x1741b4===_0x3fa298(0x149)?String:Number)(_0x228039);}function M(_0x11b371){const _0x562743=_0x2073d0;var _0x16ade0=j(_0x11b371,_0x562743(0x149));return A(_0x16ade0)==_0x562743(0x16b)?_0x16ade0:_0x16ade0+'';}function N(_0x4e130c,_0x30f0b1,_0x3b46ce){const _0x2393fa=_0x2073d0;return(_0x30f0b1=M(_0x30f0b1))in _0x4e130c?Object[_0x2393fa(0x13f)](_0x4e130c,_0x30f0b1,{'value':_0x3b46ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e130c[_0x30f0b1]=_0x3b46ce,_0x4e130c;}var P=class{constructor(_0x20e8ef,_0x34908c,_0x34c3c7,_0x15c43e){const _0x7cf93d=_0x2073d0;N(this,'unitId',void 0x0),N(this,_0x7cf93d(0x134),void 0x0),N(this,_0x7cf93d(0x124),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x7cf93d(0x128),_0x2bb6ff),N(this,'height',_0x54d06d),N(this,_0x7cf93d(0x108),void 0x0),N(this,'shapeData',{}),N(this,'_injector',void 0x0),this['unitId']=_0x20e8ef,this[_0x7cf93d(0x134)]=_0x34908c,this['drawId']=_0x34c3c7||_0x1e925e(),this['_injector']=_0x15c43e;}['setPosition'](_0x419b52,_0x1c0591,_0x5e8729,_0x4e7134){const _0x341e00=_0x2073d0;let _0x595d86=this['_injector'][_0x341e00(0x141)](_0x2a796e)[_0x341e00(0x150)](this[_0x341e00(0x13a)],this['subUnitId']);if(!_0x595d86)throw Error(_0x341e00(0x10c)+this[_0x341e00(0x13a)]+_0x341e00(0x11b)+this[_0x341e00(0x134)]+_0x341e00(0x118));let {transform:_0x1ad084}=_0x3621c7(this['unitId'],this[_0x341e00(0x134)],{'row':_0x419b52,'column':_0x1c0591,'rowOffset':_0x5e8729,'columnOffset':_0x4e7134},0x1,0x1,_0x595d86);return this['x']=_0x1ad084[_0x341e00(0x16f)],this['y']=_0x1ad084['top'],this;}[_0x2073d0(0x125)](_0x530858,_0x83146c){return this['x']=_0x530858,this['y']=_0x83146c,this;}[_0x2073d0(0x17a)](_0x3c453a){const _0x37eb18=_0x2073d0;return this[_0x37eb18(0x108)]=_0x3c453a,this;}[_0x2073d0(0x102)](_0x40337b,_0x1f0d70){const _0x42b5b9=_0x2073d0;return this['shapeData'][_0x42b5b9(0x14f)]||(this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)]={}),this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)][_0x42b5b9(0x117)]=_0x3a3330[_0x42b5b9(0x15f)],_0x40337b!==void 0x0&&(this['shapeData'][_0x42b5b9(0x14f)]['color']=_0x40337b),_0x1f0d70!==void 0x0&&(this[_0x42b5b9(0x113)]['fill'][_0x42b5b9(0x111)]=_0x1f0d70),this;}['setShapeGradientFill'](_0x20c8ed,_0x1c47bf,_0x54a4a5){const _0x136a73=_0x2073d0;if(_0x1c47bf===void 0x0||_0x1c47bf[_0x136a73(0x109)]===0x0)throw Error(_0x136a73(0x15d));return this[_0x136a73(0x113)][_0x136a73(0x14f)]||(this[_0x136a73(0x113)][_0x136a73(0x14f)]={}),this[_0x136a73(0x113)]['fill'][_0x136a73(0x103)]=_0x1c47bf,this[_0x136a73(0x113)]['fill']['fillType']=_0x3a3330['GradientFill'],this[_0x136a73(0x113)][_0x136a73(0x14f)][_0x136a73(0x133)]=_0x20c8ed,_0x54a4a5!==void 0x0&&(this['shapeData'][_0x136a73(0x14f)][_0x136a73(0x148)]=_0x54a4a5),this;}['setNoneFill'](){const _0x4d0f6a=_0x2073d0;return this[_0x4d0f6a(0x113)][_0x4d0f6a(0x14f)]={'fillType':_0x3a3330['NoFill']},this;}['setStrokeColor'](_0x2cf5c4){const _0x33a6da=_0x2073d0;return this['shapeData'][_0x33a6da(0x13d)]||(this['shapeData'][_0x33a6da(0x13d)]={}),this[_0x33a6da(0x113)]['stroke'][_0x33a6da(0x144)]=_0x2cf5c4,this;}[_0x2073d0(0x104)](_0x3edf8f){const _0x21cd92=_0x2073d0;return this[_0x21cd92(0x113)][_0x21cd92(0x13d)]||(this[_0x21cd92(0x113)][_0x21cd92(0x13d)]={}),this[_0x21cd92(0x113)]['stroke']['width']=_0x3edf8f,this;}[_0x2073d0(0x154)](_0xc8b615){const _0x141a2f=_0x2073d0;return this[_0x141a2f(0x113)][_0x141a2f(0x13d)]||(this['shapeData'][_0x141a2f(0x13d)]={}),this[_0x141a2f(0x113)][_0x141a2f(0x13d)][_0x141a2f(0x177)]=_0xc8b615,this;}[_0x2073d0(0x170)](_0x27009f){const _0x3eca22=_0x2073d0;return this[_0x3eca22(0x113)][_0x3eca22(0x13d)]||(this[_0x3eca22(0x113)][_0x3eca22(0x13d)]={}),this[_0x3eca22(0x113)][_0x3eca22(0x13d)][_0x3eca22(0x162)]=_0x27009f,this;}[_0x2073d0(0x175)](_0x120d8d){const _0x120387=_0x2073d0;return this[_0x120387(0x113)][_0x120387(0x13d)]||(this[_0x120387(0x113)][_0x120387(0x13d)]={}),this[_0x120387(0x113)][_0x120387(0x13d)][_0x120387(0x107)]=_0x120d8d,this;}[_0x2073d0(0x139)](_0x1ec9e1){const _0x21fd27=_0x2073d0;return this[_0x21fd27(0x113)][_0x21fd27(0x13d)]||(this[_0x21fd27(0x113)][_0x21fd27(0x13d)]={}),this['shapeData'][_0x21fd27(0x13d)][_0x21fd27(0x111)]=_0x1ec9e1,this;}[_0x2073d0(0x160)](_0x250605){const _0x243c75=_0x2073d0;return this[_0x243c75(0x113)]['stroke']||(this[_0x243c75(0x113)]['stroke']={}),this['shapeData'][_0x243c75(0x13d)]['lineStrokeType']=_0x250605,this;}[_0x2073d0(0x163)](_0x947657){const _0x2f31fd=_0x2073d0;return this[_0x2f31fd(0x128)]=_0x947657,this;}['setHeight'](_0x4617d3){const _0x17d03b=_0x2073d0;return this[_0x17d03b(0x152)]=_0x4617d3,this;}['isLineShape'](){const _0x3efe3b=_0x2073d0;let _0x15f071=this[_0x3efe3b(0x147)][_0x3efe3b(0x141)](_0x20e1c9)[_0x3efe3b(0x138)](this[_0x3efe3b(0x13a)],this[_0x3efe3b(0x134)],this[_0x3efe3b(0x124)]);return _0x15f071?_0x41643b(_0x15f071['getShapeType']()):this[_0x3efe3b(0x108)]?_0x41643b(this[_0x3efe3b(0x108)]):!0x1;}[_0x2073d0(0x10a)](){const _0x35cc6f=_0x2073d0;let _0x57d285=this[_0x35cc6f(0x147)][_0x35cc6f(0x141)](_0x20e1c9)['getShapeModel'](this['unitId'],this[_0x35cc6f(0x134)],this[_0x35cc6f(0x124)]);if(!_0x57d285)return[];let _0x21b566=this['_injector'][_0x35cc6f(0x141)](_0x5859f8)[_0x35cc6f(0x167)]({'unitId':this[_0x35cc6f(0x13a)],'subUnitId':this[_0x35cc6f(0x134)],'drawingId':this[_0x35cc6f(0x124)]});if(!(_0x21b566!=null&&_0x21b566[_0x35cc6f(0x126)]))return[];let {width:_0x499262=0x0,height:_0x84cab0=0x0}=_0x21b566[_0x35cc6f(0x126)];return _0x57d285['updateContext']({'width':_0x499262,'height':_0x84cab0}),_0x57d285[_0x35cc6f(0x17d)]();}['getAdjustPoints'](){const _0x366fcb=_0x2073d0;let _0x3a8d6e=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x20e1c9)['getShapeModel'](this[_0x366fcb(0x13a)],this[_0x366fcb(0x134)],this[_0x366fcb(0x124)]);if(!_0x3a8d6e)return[];let _0x32d5e7=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x366fcb(0x134)],'drawingId':this['drawId']});if(!(_0x32d5e7!=null&&_0x32d5e7[_0x366fcb(0x126)]))return[];let {width:_0x31ad76=0x0,height:_0x3ccd74=0x0}=_0x32d5e7[_0x366fcb(0x126)];return _0x3a8d6e[_0x366fcb(0x178)]({'width':_0x31ad76,'height':_0x3ccd74}),_0x3a8d6e[_0x366fcb(0x181)]();}[_0x2073d0(0x15c)](){const _0x35b28e=_0x2073d0;let _0x5707ab=this[_0x35b28e(0x147)]['get'](_0x20e1c9)[_0x35b28e(0x138)](this[_0x35b28e(0x13a)],this[_0x35b28e(0x134)],this[_0x35b28e(0x124)]);if(!_0x5707ab||!_0x41643b(_0x5707ab['getShapeType']()))return[];let _0x2cf68a=this[_0x35b28e(0x147)][_0x35b28e(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this[_0x35b28e(0x13a)],'subUnitId':this[_0x35b28e(0x134)],'drawingId':this['drawId']});if(!(_0x2cf68a!=null&&_0x2cf68a[_0x35b28e(0x126)]))return[];let {width:_0x4d9961=0x0,height:_0x1d74ec=0x0}=_0x2cf68a[_0x35b28e(0x126)];return _0x5707ab['updateContext']({'width':_0x4d9961,'height':_0x1d74ec}),_0x5707ab[_0x35b28e(0x15c)]();}[_0x2073d0(0x13e)](){const _0x30fa57=_0x2073d0;var _0x3c1b13;let _0x2a172c=this['_injector'][_0x30fa57(0x141)](_0x20e1c9)[_0x30fa57(0x138)](this['unitId'],this[_0x30fa57(0x134)],this[_0x30fa57(0x124)]);return _0x2a172c?(_0x3c1b13=_0x2a172c[_0x30fa57(0x13e)]())==null?null:_0x3c1b13:null;}['getEndConnectInfo'](){const _0x2dce52=_0x2073d0;var _0x49a276;let _0x34e3a4=this[_0x2dce52(0x147)][_0x2dce52(0x141)](_0x20e1c9)[_0x2dce52(0x138)](this[_0x2dce52(0x13a)],this[_0x2dce52(0x134)],this[_0x2dce52(0x124)]);return _0x34e3a4?(_0x49a276=_0x34e3a4[_0x2dce52(0x12a)]())==null?null:_0x49a276:null;}['build'](){const _0x159906=_0x2073d0;var _0x39faed,_0x35fb85;if(!this['shapeType'])throw Error(_0x159906(0x112));if(this['x']===0x0||this['y']===0x0){let _0x5c04f9=this[_0x159906(0x147)][_0x159906(0x141)](_0x2a796e)[_0x159906(0x150)](this[_0x159906(0x13a)],this[_0x159906(0x134)]);if(!_0x5c04f9)throw Error(_0x159906(0x10c)+this[_0x159906(0x13a)]+_0x159906(0x11b)+this[_0x159906(0x134)]+_0x159906(0x118));let {transform:_0x23f34f}=_0x3621c7(this[_0x159906(0x13a)],this[_0x159906(0x134)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5c04f9);this['x']=this['x']>0x0?this['x']:_0x23f34f[_0x159906(0x16f)],this['y']=this['y']>0x0?this['y']:_0x23f34f['top'];}return this['width']=(_0x39faed=this[_0x159906(0x128)])==null?_0x2bb6ff:_0x39faed,this[_0x159906(0x152)]=(_0x35fb85=this[_0x159906(0x152)])==null?_0x54d06d:_0x35fb85,{'unitId':this[_0x159906(0x13a)],'subUnitId':this[_0x159906(0x134)],'shapeId':this[_0x159906(0x124)],'shapeType':this[_0x159906(0x108)],'shapeData':Object['keys'](this['shapeData'])[_0x159906(0x109)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x159906(0x128)],'height':this['height']};}[_0x2073d0(0x15e)](){const _0x36fd05=_0x2073d0;return this[_0x36fd05(0x124)];}[_0x2073d0(0x166)](){const _0xf3e0f=_0x2073d0;return this[_0xf3e0f(0x108)];}[_0x2073d0(0x13b)](){return this['shapeData'];}[_0x2073d0(0x13c)](){return{'x':this['x'],'y':this['y']};}[_0x2073d0(0x153)](){const _0x431f8e=_0x2073d0;return{'width':this[_0x431f8e(0x128)],'height':this[_0x431f8e(0x152)]};}},F=class extends P{constructor(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633){const _0x300717=_0x2073d0;super(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633),N(this,_0x300717(0x113),{});}[_0x2073d0(0x17a)](_0x3fc44b){const _0x11a330=_0x2073d0;if(!_0x41643b(_0x3fc44b))throw Error(_0x11a330(0x15a)+_0x3fc44b+_0x11a330(0x11d));return super[_0x11a330(0x17a)](_0x3fc44b),this;}[_0x2073d0(0x169)](_0x54b41b){const _0x492bc8=_0x2073d0;var _0x2a9c30,_0x2ba152;return(_0x2a9c30=this[_0x492bc8(0x113)])!=null&&_0x2a9c30['ln']||(this[_0x492bc8(0x113)]['ln']={}),!((_0x2ba152=this['shapeData'])==null||(_0x2ba152=_0x2ba152['ln'])==null)&&_0x2ba152[_0x492bc8(0x135)]||(this[_0x492bc8(0x113)]['ln'][_0x492bc8(0x135)]={}),this['shapeData']['ln'][_0x492bc8(0x135)][_0x492bc8(0x106)]=_0x54b41b,this;}[_0x2073d0(0x129)](_0x38835a){const _0x2a9fc6=_0x2073d0;var _0x59c056,_0x326b37;return(_0x59c056=this[_0x2a9fc6(0x113)])!=null&&_0x59c056['ln']||(this[_0x2a9fc6(0x113)]['ln']={}),!((_0x326b37=this[_0x2a9fc6(0x113)])==null||(_0x326b37=_0x326b37['ln'])==null)&&_0x326b37[_0x2a9fc6(0x16a)]||(this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)]={}),this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)][_0x2a9fc6(0x106)]=_0x38835a,this;}[_0x2073d0(0x151)](_0x51992a){const _0x25b33a=_0x2073d0;var _0x49a6a2,_0xee6c92;return(_0x49a6a2=this[_0x25b33a(0x113)])!=null&&_0x49a6a2['ln']||(this[_0x25b33a(0x113)]['ln']={}),!((_0xee6c92=this[_0x25b33a(0x113)])==null||(_0xee6c92=_0xee6c92['ln'])==null)&&_0xee6c92[_0x25b33a(0x135)]||(this['shapeData']['ln'][_0x25b33a(0x135)]={}),this[_0x25b33a(0x113)]['ln'][_0x25b33a(0x135)]['size']=_0x51992a,this;}[_0x2073d0(0x10f)](_0x428a18){const _0x1341d4=_0x2073d0;var _0x193612,_0x598518;return(_0x193612=this[_0x1341d4(0x113)])!=null&&_0x193612['ln']||(this[_0x1341d4(0x113)]['ln']={}),!((_0x598518=this['shapeData'])==null||(_0x598518=_0x598518['ln'])==null)&&_0x598518[_0x1341d4(0x16a)]||(this[_0x1341d4(0x113)]['ln'][_0x1341d4(0x16a)]={}),this['shapeData']['ln']['endArrow'][_0x1341d4(0x114)]=_0x428a18,this;}[_0x2073d0(0x123)](){return super['build']();}[_0x2073d0(0x12a)](){const _0x48a8cb=_0x2073d0;var _0x508e8f;return((_0x508e8f=this[_0x48a8cb(0x113)])==null||(_0x508e8f=_0x508e8f[_0x48a8cb(0x10d)])==null?void 0x0:_0x508e8f['to'])||null;}[_0x2073d0(0x13e)](){const _0x16f374=_0x2073d0;var _0x36e906;return((_0x36e906=this['shapeData'])==null||(_0x36e906=_0x36e906[_0x16f374(0x10d)])==null?void 0x0:_0x36e906[_0x16f374(0x140)])||null;}};function _0x50e3(_0x2fa40d,_0xfe81f8){_0x2fa40d=_0x2fa40d-0xfd;const _0x3850f=_0x3850();let _0x50e3fb=_0x3850f[_0x2fa40d];return _0x50e3fb;}function I(_0x1ea84a,_0x11c3bb,_0x4d5b2b,_0x144136,_0x1fbdfb,_0x42223b){const _0x4eb539=_0x2073d0;let _0x36eb6c=_0x1fbdfb[_0x4eb539(0x138)](_0x1ea84a,_0x11c3bb,_0x4d5b2b);if(!_0x36eb6c)return null;let _0x39c776=_0x42223b[_0x4eb539(0x167)]({'unitId':_0x1ea84a,'subUnitId':_0x11c3bb,'drawingId':_0x4d5b2b});if(!(_0x39c776!=null&&_0x39c776[_0x4eb539(0x126)]))return null;let {left:_0x1441a3=0x0,top:_0x3ba489=0x0,width:_0x3839cb=0x0,height:_0x139193=0x0,flipX:_0x15b9c8=!0x1,flipY:_0xd9d57e=!0x1,angle:_0x4040b5}=_0x39c776[_0x4eb539(0x126)];_0x36eb6c[_0x4eb539(0x178)]({'width':_0x3839cb,'height':_0x139193});let _0xb55f01=_0x36eb6c[_0x4eb539(0x17d)]()[_0x4eb539(0x168)](_0x38b637=>_0x38b637[_0x4eb539(0x155)]===_0x144136);if(!_0xb55f01)return null;let _0x580226=_0x15b9c8?_0x3839cb-_0xb55f01['x']:_0xb55f01['x'],_0x1d2d55=_0xd9d57e?_0x139193-_0xb55f01['y']:_0xb55f01['y'];if(_0x4040b5&&_0x4040b5!==0x0){let _0x76d71d=_0x4040b5*Math['PI']/0xb4,_0x4da6ba=Math['cos'](_0x76d71d),_0x4ac009=Math['sin'](_0x76d71d),_0x5ac38a=_0x3839cb/0x2,_0x58cf81=_0x139193/0x2,_0x49b4c3=_0x580226-_0x5ac38a,_0x303cea=_0x1d2d55-_0x58cf81;_0x580226=_0x5ac38a+_0x49b4c3*_0x4da6ba-_0x303cea*_0x4ac009,_0x1d2d55=_0x58cf81+_0x49b4c3*_0x4ac009+_0x303cea*_0x4da6ba;}_0x580226+=_0x1441a3,_0x1d2d55+=_0x3ba489;let _0xee3483=_0xb55f01[_0x4eb539(0x127)]/0xea60;_0x15b9c8&&(_0xee3483=0xb4-_0xee3483),_0xd9d57e&&(_0xee3483=-_0xee3483),_0xee3483+=_0x4040b5||0x0,_0xee3483=(_0xee3483%0x168+0x168)%0x168;let _0x97dd2a=_0x2e4726({'left':_0x1441a3,'top':_0x3ba489,'width':_0x3839cb,'height':_0x139193},_0x4040b5||0x0);return{'point':{'x':_0x580226,'y':_0x1d2d55},'angle':_0xee3483,'bounds':_0x97dd2a};}function L(_0xd9db51,_0x427b52){const _0x14836b=_0x2073d0;let _0x4f9a3e=_0x427b52['x']-_0xd9db51['x'],_0x2f3722=_0x427b52['y']-_0xd9db51['y'];return Math[_0x14836b(0x146)](_0x4f9a3e)>=Math[_0x14836b(0x146)](_0x2f3722)?_0x4f9a3e>=0x0?0xb4:0x0:_0x2f3722>=0x0?0x10e:0x5a;}function R(_0x1e624f,_0x1205be,_0x442b34,_0x2fa904,_0x2c28a0,_0x25401d,_0x1d5964){const _0x36f955=_0x2073d0;let _0x36fa44=_0x25401d[_0x36f955(0x138)](_0x1e624f,_0x1205be,_0x442b34);if(!_0x36fa44)return null;let _0x190196=_0x1d5964[_0x36f955(0x167)]({'unitId':_0x1e624f,'subUnitId':_0x1205be,'drawingId':_0x442b34});if(!(_0x190196!=null&&_0x190196['transform']))return null;let {left:_0x4df48d=0x0,top:_0x3d4101=0x0,width:_0x5362e1=0x0,height:_0x1e72f2=0x0,flipX:_0xf75ca4=!0x1,flipY:_0x47df41=!0x1}=_0x190196[_0x36f955(0x126)];_0x36fa44[_0x36f955(0x178)]({'width':_0x5362e1,'height':_0x1e72f2});let _0x37cecd=_0x36fa44[_0x36f955(0x15c)]();if(_0x37cecd['length']<0x2)return null;let _0x4e2914=_0x2fa904?_0x37cecd[0x0]:_0x37cecd[_0x37cecd[_0x36f955(0x109)]-0x1],_0x32ea50=new _0x3d6405({'left':_0x4df48d,'top':_0x3d4101,'width':_0x5362e1,'height':_0x1e72f2,'flipX':_0xf75ca4,'flipY':_0x47df41})[_0x36f955(0x122)](_0x4e2914);return{'point':_0x32ea50,'angle':L(_0x2c28a0[_0x36f955(0x11e)],_0x32ea50),'bounds':{'left':_0x32ea50['x'],'top':_0x32ea50['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26843a{async[_0x2073d0(0x12f)](_0x228b61){const _0x18db8e=_0x2073d0;let {unitId:_0x59bb3b,subUnitId:_0x27dfbf,shapeId:_0x2b017d,shapeType:_0x3cb272,shapeData:_0x175002,x:_0x32eb35,y:_0x2339a1,width:_0x56517e,height:_0x2950ff}=_0x228b61;return this[_0x18db8e(0x17e)]['executeCommand'](_0x531a5c['id'],{'unitId':_0x59bb3b,'subUnitId':_0x27dfbf,'shapeId':_0x2b017d,'shapeType':_0x3cb272,'shapeData':_0x175002,'position':{'x':_0x32eb35,'y':_0x2339a1},'width':_0x56517e,'height':_0x2950ff});}async[_0x2073d0(0x182)](_0x2b95f0){const _0x32fbc6=_0x2073d0;let {unitId:_0x38909b,subUnitId:_0x29ed2d,shapeId:_0x596c6f,shapeType:_0x3ddeba,shapeData:_0x3b9f1a,x:_0x3c101d,y:_0x1bd4d0,width:_0x221812,height:_0x3a370f}=_0x2b95f0;return this[_0x32fbc6(0x17e)][_0x32fbc6(0x161)](_0x4a74ed['id'],{'unitId':_0x38909b,'subUnitId':_0x29ed2d,'shapeId':_0x596c6f,'shapeType':_0x3ddeba,'shapeData':_0x3b9f1a,'position':{'x':_0x3c101d,'y':_0x1bd4d0},'width':_0x221812,'height':_0x3a370f});}[_0x2073d0(0x183)](_0x566203){const _0x4aedf4=_0x2073d0;let _0x2a5338=this[_0x4aedf4(0x165)]()[_0x4aedf4(0x101)](),_0x11207a=this[_0x4aedf4(0x10b)]();if(_0x566203){let _0x4ec868=new P(_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)],this[_0x4aedf4(0x147)]);return this[_0x4aedf4(0x17f)](_0x4ec868,_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)]),_0x4ec868;}return new P(_0x2a5338,_0x11207a,_0x1e925e(),this['_injector']);}[_0x2073d0(0x157)](_0xe2e812){const _0x5d6944=_0x2073d0;let _0x4c2631=this['getWorkbook']()[_0x5d6944(0x101)](),_0x1abd34=this[_0x5d6944(0x10b)]();if(_0xe2e812){let _0x5b10f5=new F(_0x4c2631,_0x1abd34,_0xe2e812['drawId'],this[_0x5d6944(0x147)]);return this['_preloadShapeProperties'](_0x5b10f5,_0x4c2631,_0x1abd34,_0xe2e812['drawId']),_0x5b10f5;}return new F(_0x4c2631,_0x1abd34,_0x1e925e(),this[_0x5d6944(0x147)]);}[_0x2073d0(0x17c)](){const _0x785d49=_0x2073d0;let _0x5c6e7e=this[_0x785d49(0x147)]['get'](_0x286869),_0x1d58cc=this[_0x785d49(0x165)]()[_0x785d49(0x101)](),_0x4d67cf=this[_0x785d49(0x10b)](),_0x1e3770=_0x5c6e7e['getDrawingData'](_0x1d58cc,_0x4d67cf);if(!_0x1e3770)return[];let _0x12cb43=[];for(let [_0x30ca2b,_0x3f3b0a]of Object[_0x785d49(0x131)](_0x1e3770))if(_0x3f3b0a&&_0x3f3b0a[_0x785d49(0x12e)]===_0x232e10[_0x785d49(0x14c)]){let _0x2e8241=new P(_0x1d58cc,_0x4d67cf,_0x30ca2b,this[_0x785d49(0x147)]);this[_0x785d49(0x17f)](_0x2e8241,_0x1d58cc,_0x4d67cf,_0x30ca2b),_0x12cb43[_0x785d49(0x16e)](_0x2e8241);}return _0x12cb43;}['removeShape'](_0x3f88a9){const _0x36600d=_0x2073d0;let {unitId:_0x3abbdf,subUnitId:_0x593ca7,drawId:_0x5be6d6}=_0x3f88a9;return this['_commandService'][_0x36600d(0x161)](_0x4ddd72['id'],{'unitId':_0x3abbdf,'drawings':[{'unitId':_0x3abbdf,'subUnitId':_0x593ca7,'drawingId':_0x5be6d6,'drawingType':_0x232e10[_0x36600d(0x14c)]}]});}async[_0x2073d0(0x156)](_0xeddc22){const _0x6d5380=_0x2073d0;let {connector:_0x3d9e66,startTarget:_0x1dc056,endTarget:_0x315b47}=_0xeddc22;if(!_0x1dc056&&!_0x315b47)return!0x1;let _0x3930cc=this[_0x6d5380(0x165)]()['getUnitId'](),_0x223325=this[_0x6d5380(0x10b)](),_0x367dea=this[_0x6d5380(0x147)][_0x6d5380(0x141)](_0x20e1c9),_0x7afc88=this['_injector'][_0x6d5380(0x141)](_0x5859f8),_0x5c4874=_0x367dea[_0x6d5380(0x138)](_0x3930cc,_0x223325,_0x3d9e66[_0x6d5380(0x124)]);if(!_0x5c4874)return!0x1;let _0x27291a=_0x5c4874[_0x6d5380(0x166)](),_0x36828e=_0x5c4874[_0x6d5380(0x136)](),_0x59e299={};for(let _0xc305ff of _0x5c4874[_0x6d5380(0x143)]()){let _0x5d95c2=_0x5c4874['getAdjustValueByName'](_0xc305ff);_0x5d95c2!==void 0x0&&(_0x59e299[_0xc305ff]=_0x5d95c2);}let {startInfo:_0x20eb1d,endInfo:_0x233692}=this[_0x6d5380(0x115)](_0x3930cc,_0x223325,_0x3d9e66,_0x5c4874,_0x1dc056,_0x315b47,_0x367dea,_0x7afc88,_0x36828e);if(!_0x20eb1d||!_0x233692)return!0x1;let _0x1c4a0f=_0x416057(_0x232c7e(_0x20eb1d,_0x233692,_0x27291a),_0x27291a),_0x24922a={};return _0x1dc056?_0x24922a[_0x6d5380(0x140)]={'shapeId':_0x1dc056[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x1dc056['connectionSiteIndex']}:_0x36828e!=null&&_0x36828e['from']&&(_0x24922a[_0x6d5380(0x140)]=_0x36828e[_0x6d5380(0x140)]),_0x315b47?_0x24922a['to']={'shapeId':_0x315b47[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x315b47[_0x6d5380(0x180)]}:_0x36828e!=null&&_0x36828e['to']&&(_0x24922a['to']=_0x36828e['to']),this[_0x6d5380(0x17e)][_0x6d5380(0x161)](_0x127ca0['id'],{'unitId':_0x3930cc,'subUnitId':_0x223325,'connectorShapeId':_0x3d9e66[_0x6d5380(0x124)],'width':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x128)],'height':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x152)],'left':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x16f)],'top':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0xfe)],'flipX':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x120)]||!0x1,'flipY':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x158)]||!0x1,'oldAdjustValues':_0x59e299,'newAdjustValues':_0x1c4a0f[_0x6d5380(0x116)],'newLineType':_0x1c4a0f['lineType'],'oldLineType':_0x27291a,'rotation':_0x1c4a0f[_0x6d5380(0x130)],'oldRelation':_0x36828e,'newRelation':_0x24922a});}[_0x2073d0(0x17f)](_0x3083ef,_0x57decc,_0x3210b5,_0x1b0f56){const _0x21a500=_0x2073d0;let _0x35ed48=this['_injector'][_0x21a500(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':_0x57decc,'subUnitId':_0x3210b5,'drawingId':_0x1b0f56});if(_0x35ed48!=null&&_0x35ed48[_0x21a500(0x126)]){var _0x413edf,_0x45ee9e,_0x213229,_0x5028c6;_0x3083ef['x']=(_0x413edf=_0x35ed48['transform'][_0x21a500(0x16f)])==null?0x0:_0x413edf,_0x3083ef['y']=(_0x45ee9e=_0x35ed48['transform'][_0x21a500(0xfe)])==null?0x0:_0x45ee9e,_0x3083ef[_0x21a500(0x128)]=(_0x213229=_0x35ed48['transform'][_0x21a500(0x128)])==null?_0x3083ef[_0x21a500(0x128)]:_0x213229,_0x3083ef[_0x21a500(0x152)]=(_0x5028c6=_0x35ed48[_0x21a500(0x126)][_0x21a500(0x152)])==null?_0x3083ef['height']:_0x5028c6;}let _0x12bf2c=this[_0x21a500(0x147)][_0x21a500(0x141)](_0x20e1c9)['getShapeModel'](_0x57decc,_0x3210b5,_0x1b0f56);if(_0x12bf2c){_0x3083ef[_0x21a500(0x108)]=_0x12bf2c[_0x21a500(0x166)]();let _0x5687af=_0x12bf2c['getShapeData']();_0x5687af&&(_0x3083ef[_0x21a500(0x113)]=JSON[_0x21a500(0x11c)](JSON['stringify'](_0x5687af)));}}[_0x2073d0(0x115)](_0x55e377,_0x4aae02,_0x436652,_0x19dcaf,_0x206273,_0x118c77,_0x45dc5c,_0x1d9e8f,_0x302bd4){const _0x9785a7=_0x2073d0;let _0x175968=null,_0x5664f8=null;return _0x206273&&(_0x175968=I(_0x55e377,_0x4aae02,_0x206273[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x206273[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x118c77&&(_0x5664f8=I(_0x55e377,_0x4aae02,_0x118c77[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x118c77[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x175968||(_0x175968=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x0,_0x5664f8,_0x302bd4==null?void 0x0:_0x302bd4[_0x9785a7(0x140)],_0x45dc5c,_0x1d9e8f)),_0x5664f8||(_0x5664f8=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x1,_0x175968,_0x302bd4==null?void 0x0:_0x302bd4['to'],_0x45dc5c,_0x1d9e8f)),{'startInfo':_0x175968,'endInfo':_0x5664f8};}[_0x2073d0(0x121)](_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x4d9b9d,_0x29390d,_0x1b85d4){const _0x25b2d1=_0x2073d0;if(_0x4d9b9d){let _0x2ae2d6=I(_0x5e9f48,_0x4925ef,_0x4d9b9d[_0x25b2d1(0x14d)],_0x4d9b9d['cxnIndex'],_0x29390d,_0x1b85d4);if(_0x2ae2d6)return _0x2ae2d6;}return _0x3219cb?R(_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x29390d,_0x1b85d4):null;}};_0x26843a[_0x2073d0(0x179)](z);export{F as FConnectorShape,P as FShape};function _0x3850(){const _0x60091c=['setStrokeLineDashType','index','connectShapes','newConnector','flipY','shape','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','3228756lOJpLN','getConnectorLinePoints','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getShapeId','SolidFill','setStrokeLineType','executeCommand','lineJoinType','setWidth','11UeeYoL','getWorkbook','getShapeType','getDrawingByParam','find','setStartArrowType','endArrow','symbol','ShapeLineCapEnum','1782786uUkxpp','push','left','setStrokeLineJoinType','worldRect','ShapeArrowTypeEnum','9fytaGN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setStrokeLineCapType','ShapeTypeEnum','dashType','updateContext','extend','setShapeType','77XSsvdy','getShapes','getConnectionSiteList','_commandService','_preloadShapeProperties','connectionSiteIndex','getDrawingPoints','updateShape','newShape','object','top','ShapeArrowSizeEnum','ShapeFillEnum','getUnitId','setShapeSolidFill','gradientStops','setStrokeWidth','738590dvSfOH','type','capType','shapeType','length','getConnectionSites','getSheetId','Skeleton\x20for\x20unitId\x20','relation','183465pUxJxG','setEndArrowSize','call','opacity','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','shapeData','size','_resolveEndpoints','adjustValues','fillType','\x20not\x20found','prototype','35VsOQkz','\x20and\x20subUnitId\x20','parse',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','point','7370KmxsqD','flipX','_resolveExistingOrFreeEndpoint','localToWorld','build','drawId','setAbsolutePosition','transform','ang','width','setEndArrowType','getEndConnectInfo','function','constructor','default','drawingType','insertShape','rotation','entries','toPrimitive','gradientType','subUnitId','startArrow','getShapeRelation','5WEefPh','getShapeModel','setStrokeOpacity','unitId','getShapeData','getPosition','stroke','getStartConnectInfo','defineProperty','from','get','iterator','getAdjustNames','color','219368JxkeuE','abs','_injector','gradientAngle','string','ShapeLineJoinEnum','ShapeLineDashEnum','DRAWING_SHAPE','shapeId','371404pBcgRT','fill','ensureSkeleton','setStartArrowSize','height','getSize'];_0x3850=function(){return _0x60091c;};return _0x3850();}
1
+ const _0xb0776b=_0x2a57;function _0x2a57(_0x6fc16a,_0x253c8c){_0x6fc16a=_0x6fc16a-0x12b;const _0x2a6faa=_0x2a6f();let _0x2a5772=_0x2a6faa[_0x6fc16a];return _0x2a5772;}(function(_0x11f6fc,_0x4b252b){const _0x136aad=_0x2a57,_0x1f6f76=_0x11f6fc();while(!![]){try{const _0x3c30ac=-parseInt(_0x136aad(0x13b))/0x1+parseInt(_0x136aad(0x1a7))/0x2+parseInt(_0x136aad(0x19b))/0x3*(-parseInt(_0x136aad(0x136))/0x4)+parseInt(_0x136aad(0x15f))/0x5*(-parseInt(_0x136aad(0x12f))/0x6)+parseInt(_0x136aad(0x156))/0x7+parseInt(_0x136aad(0x19f))/0x8+-parseInt(_0x136aad(0x1a3))/0x9*(-parseInt(_0x136aad(0x1ae))/0xa);if(_0x3c30ac===_0x4b252b)break;else _0x1f6f76['push'](_0x1f6f76['shift']());}catch(_0x5a156c){_0x1f6f76['push'](_0x1f6f76['shift']());}}}(_0x2a6f,0xbaee5));import{ConnectorCoordinateTransform as _0x235482,ShapeArrowSizeEnum as _0x47593a,ShapeArrowTypeEnum as _0x25f79f,ShapeFillEnum as _0x2b9fa0,ShapeGradientTypeEnum as _0x465bb4,ShapeLineCapEnum as _0x6a8b99,ShapeLineDashEnum as _0xbe1de4,ShapeLineJoinEnum as _0x1e0034,ShapeLineTypeEnum as _0x43876c,ShapeTypeEnum as _0x58e817,computeConnectorRouteLayout as _0x53deb7,getBasicShapeRotateBound as _0x12c401,isConnectorShape as _0x1df30e,routeConnectorLineShape as _0x4773b1}from'@univerjs-pro/engine-shape';import{FEnum as _0x5f3d}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0xb8cf8d,DEFAULT_SHAPE_WIDTH as _0x5ef94c,InsertShapeCommand as _0x22bb9b,SetShapeDrawingDataCommand as _0x42294b,SheetsShapeService as _0x3c7127,UpdateConnectorRelationCommand as _0x319eb8}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x2bcb5a,generateRandomId as _0x793d5e}from'@univerjs/core';import{IDrawingManagerService as _0x36a4ec}from'@univerjs/drawing';import{SheetSkeletonService as _0x1f069c,convertPositionCellToSheetOverGrid as _0x433800}from'@univerjs/sheets';function _0x2a6f(){const _0x4de767=['getStartConnectInfo','stroke','updateShape','SolidFill','connectionSiteIndex','getShapes','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','transform','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','shapeId','getConnectorLinePoints','endArrow','getUnitId','\x20not\x20found','unitId','getAdjustNames','updateContext','abs','getDrawingByParam','getAdjustPoints','setHeight','setEndArrowType','getShapeModel','drawId','symbol','NoFill','2164722XQKZXQ','DRAWING_SHAPE','type','ang','size','worldRect','getSize','adjustValues','setShapeType','54190WRRnrV','getShapeData','relation','setStrokeLineDashType','getPosition','getShapeId','lineStrokeType','getSheetId','width','setStrokeColor','getAdjustValueByName','ShapeArrowTypeEnum','left','setShapeGradientFill','subUnitId','ShapeLineTypeEnum','_resolveExistingOrFreeEndpoint','ShapeGradientTypeEnum','shape','ShapeTypeEnum','executeCommand','isLineShape','build','shapeData','keys','sin','setShapeSolidFill','localToWorld','color','height','extend','constructor','drawingType','cxnIndex','get','setStartArrowType','string','startArrow','defineProperty','getWorkbook','toPrimitive','index','getDrawingPoints','parse','gradientStops','object','flipX','setEndArrowSize','dashType','getShapeType','getEndConnectInfo','setPosition','lineJoinType','setWidth','find','iterator','_commandService','ShapeArrowSizeEnum','getConnectionSiteList','entries','18qGmYyg','ShapeFillEnum','shapeType','setStrokeLineType','11815400NhPamH','lineType','top','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','313623uaNRvv','ShapeLineJoinEnum',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','_injector','1543654ZPGspo','setAbsolutePosition','capType','Skeleton\x20for\x20unitId\x20','length','fillType','fill','670ctxNom','ShapeLineCapEnum','\x20and\x20subUnitId\x20','function','rotation','_preloadShapeProperties','ensureSkeleton','768krzJCB','cos','setStrokeLineCapType','insertShape','prototype','_resolveEndpoints','point','1008948IXSYnz','from','setNoneFill','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','gradientType','1226392loKCvS'];_0x2a6f=function(){return _0x4de767;};return _0x2a6f();}import{ISheetDrawingService as _0x3e52bb,RemoveSheetDrawingCommand as _0x49b49f}from'@univerjs/sheets-drawing';import{FWorksheet as _0x30bddd}from'@univerjs/sheets/facade';var k=class extends _0x5f3d{get[_0xb0776b(0x172)](){return _0x58e817;}get[_0xb0776b(0x19c)](){return _0x2b9fa0;}get[_0xb0776b(0x170)](){return _0x465bb4;}get[_0xb0776b(0x16e)](){return _0x43876c;}get['ShapeLineDashEnum'](){return _0xbe1de4;}get[_0xb0776b(0x1af)](){return _0x6a8b99;}get[_0xb0776b(0x1a4)](){return _0x1e0034;}get[_0xb0776b(0x16a)](){return _0x25f79f;}get[_0xb0776b(0x198)](){return _0x47593a;}};_0x5f3d[_0xb0776b(0x17d)](k);function A(_0x54451f){'@babel/helpers - typeof';const _0x2c5adc=_0xb0776b;return A=typeof Symbol==_0x2c5adc(0x12b)&&typeof Symbol[_0x2c5adc(0x196)]==_0x2c5adc(0x154)?function(_0x545255){return typeof _0x545255;}:function(_0x13d18a){const _0x1ff158=_0x2c5adc;return _0x13d18a&&typeof Symbol==_0x1ff158(0x12b)&&_0x13d18a[_0x1ff158(0x17e)]===Symbol&&_0x13d18a!==Symbol[_0x1ff158(0x133)]?'symbol':typeof _0x13d18a;},A(_0x54451f);}function j(_0x4ab8c6,_0x467507){const _0x5755f2=_0xb0776b;if(A(_0x4ab8c6)!=_0x5755f2(0x18c)||!_0x4ab8c6)return _0x4ab8c6;var _0x3f9094=_0x4ab8c6[Symbol[_0x5755f2(0x187)]];if(_0x3f9094!==void 0x0){var _0x406079=_0x3f9094['call'](_0x4ab8c6,_0x467507||'default');if(A(_0x406079)!='object')return _0x406079;throw TypeError(_0x5755f2(0x142));}return(_0x467507==='string'?String:Number)(_0x4ab8c6);}function M(_0xec4f6f){const _0x452205=_0xb0776b;var _0x198843=j(_0xec4f6f,_0x452205(0x183));return A(_0x198843)==_0x452205(0x154)?_0x198843:_0x198843+'';}function N(_0x170523,_0x3ba230,_0x480d47){const _0x45879e=_0xb0776b;return(_0x3ba230=M(_0x3ba230))in _0x170523?Object[_0x45879e(0x185)](_0x170523,_0x3ba230,{'value':_0x480d47,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x170523[_0x3ba230]=_0x480d47,_0x170523;}var P=class{constructor(_0x5bef26,_0x3d0eb6,_0x1a81e3,_0x55f149){const _0x5377cc=_0xb0776b;N(this,_0x5377cc(0x14a),void 0x0),N(this,_0x5377cc(0x16d),void 0x0),N(this,'drawId',void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5377cc(0x167),_0x5ef94c),N(this,'height',_0xb8cf8d),N(this,_0x5377cc(0x19d),void 0x0),N(this,_0x5377cc(0x176),{}),N(this,_0x5377cc(0x1a6),void 0x0),this[_0x5377cc(0x14a)]=_0x5bef26,this[_0x5377cc(0x16d)]=_0x3d0eb6,this['drawId']=_0x1a81e3||_0x793d5e(),this['_injector']=_0x55f149;}[_0xb0776b(0x192)](_0x1ce47b,_0x4643e4,_0x4ffed8,_0x40d41a){const _0x3693c1=_0xb0776b;let _0x2ba4e0=this['_injector'][_0x3693c1(0x181)](_0x1f069c)[_0x3693c1(0x12e)](this['unitId'],this[_0x3693c1(0x16d)]);if(!_0x2ba4e0)throw Error(_0x3693c1(0x1aa)+this[_0x3693c1(0x14a)]+_0x3693c1(0x1b0)+this[_0x3693c1(0x16d)]+'\x20not\x20found');let {transform:_0x2cedac}=_0x433800(this[_0x3693c1(0x14a)],this['subUnitId'],{'row':_0x1ce47b,'column':_0x4643e4,'rowOffset':_0x4ffed8,'columnOffset':_0x40d41a},0x1,0x1,_0x2ba4e0);return this['x']=_0x2cedac[_0x3693c1(0x16b)],this['y']=_0x2cedac['top'],this;}[_0xb0776b(0x1a8)](_0xaf78a9,_0x1173df){return this['x']=_0xaf78a9,this['y']=_0x1173df,this;}[_0xb0776b(0x15e)](_0x5789a6){const _0x42436a=_0xb0776b;return this[_0x42436a(0x19d)]=_0x5789a6,this;}[_0xb0776b(0x179)](_0x5393e9,_0x190c39){const _0xb2ad73=_0xb0776b;return this[_0xb2ad73(0x176)]['fill']||(this['shapeData']['fill']={}),this[_0xb2ad73(0x176)]['fill'][_0xb2ad73(0x1ac)]=_0x2b9fa0[_0xb2ad73(0x13f)],_0x5393e9!==void 0x0&&(this['shapeData'][_0xb2ad73(0x1ad)][_0xb2ad73(0x17b)]=_0x5393e9),_0x190c39!==void 0x0&&(this[_0xb2ad73(0x176)][_0xb2ad73(0x1ad)]['opacity']=_0x190c39),this;}[_0xb0776b(0x16c)](_0x30e963,_0x526c83,_0x116158){const _0x2af808=_0xb0776b;if(_0x526c83===void 0x0||_0x526c83[_0x2af808(0x1ab)]===0x0)throw Error(_0x2af808(0x139));return this[_0x2af808(0x176)]['fill']||(this[_0x2af808(0x176)][_0x2af808(0x1ad)]={}),this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x18b)]=_0x526c83,this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x1ac)]=_0x2b9fa0['GradientFill'],this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x13a)]=_0x30e963,_0x116158!==void 0x0&&(this[_0x2af808(0x176)][_0x2af808(0x1ad)]['gradientAngle']=_0x116158),this;}[_0xb0776b(0x138)](){const _0x400fac=_0xb0776b;return this['shapeData'][_0x400fac(0x1ad)]={'fillType':_0x2b9fa0[_0x400fac(0x155)]},this;}[_0xb0776b(0x168)](_0x37134c){const _0x2168c0=_0xb0776b;return this[_0x2168c0(0x176)][_0x2168c0(0x13d)]||(this[_0x2168c0(0x176)][_0x2168c0(0x13d)]={}),this[_0x2168c0(0x176)][_0x2168c0(0x13d)]['color']=_0x37134c,this;}['setStrokeWidth'](_0x372056){const _0x56906a=_0xb0776b;return this[_0x56906a(0x176)][_0x56906a(0x13d)]||(this['shapeData']['stroke']={}),this[_0x56906a(0x176)][_0x56906a(0x13d)][_0x56906a(0x167)]=_0x372056,this;}[_0xb0776b(0x162)](_0x2e8edd){const _0x5c169b=_0xb0776b;return this[_0x5c169b(0x176)]['stroke']||(this['shapeData']['stroke']={}),this[_0x5c169b(0x176)][_0x5c169b(0x13d)][_0x5c169b(0x18f)]=_0x2e8edd,this;}['setStrokeLineJoinType'](_0x5b555f){const _0xf1a310=_0xb0776b;return this['shapeData'][_0xf1a310(0x13d)]||(this[_0xf1a310(0x176)][_0xf1a310(0x13d)]={}),this['shapeData'][_0xf1a310(0x13d)][_0xf1a310(0x193)]=_0x5b555f,this;}[_0xb0776b(0x131)](_0x21d12e){const _0x5863f3=_0xb0776b;return this[_0x5863f3(0x176)]['stroke']||(this[_0x5863f3(0x176)][_0x5863f3(0x13d)]={}),this['shapeData'][_0x5863f3(0x13d)][_0x5863f3(0x1a9)]=_0x21d12e,this;}['setStrokeOpacity'](_0x4a61ea){const _0x196012=_0xb0776b;return this[_0x196012(0x176)][_0x196012(0x13d)]||(this[_0x196012(0x176)][_0x196012(0x13d)]={}),this[_0x196012(0x176)][_0x196012(0x13d)]['opacity']=_0x4a61ea,this;}[_0xb0776b(0x19e)](_0x322036){const _0x3018af=_0xb0776b;return this[_0x3018af(0x176)][_0x3018af(0x13d)]||(this[_0x3018af(0x176)][_0x3018af(0x13d)]={}),this['shapeData']['stroke'][_0x3018af(0x165)]=_0x322036,this;}[_0xb0776b(0x194)](_0x256229){const _0x1f64ab=_0xb0776b;return this[_0x1f64ab(0x167)]=_0x256229,this;}[_0xb0776b(0x150)](_0x53d2ba){return this['height']=_0x53d2ba,this;}[_0xb0776b(0x174)](){const _0xc3040c=_0xb0776b;let _0x1869bf=this['_injector'][_0xc3040c(0x181)](_0x3c7127)[_0xc3040c(0x152)](this[_0xc3040c(0x14a)],this['subUnitId'],this['drawId']);return _0x1869bf?_0x1df30e(_0x1869bf[_0xc3040c(0x190)]()):this[_0xc3040c(0x19d)]?_0x1df30e(this[_0xc3040c(0x19d)]):!0x1;}['getConnectionSites'](){const _0x5f7b2d=_0xb0776b;let _0x40369c=this[_0x5f7b2d(0x1a6)][_0x5f7b2d(0x181)](_0x3c7127)[_0x5f7b2d(0x152)](this['unitId'],this[_0x5f7b2d(0x16d)],this[_0x5f7b2d(0x153)]);if(!_0x40369c)return[];let _0x13529b=this[_0x5f7b2d(0x1a6)]['get'](_0x36a4ec)[_0x5f7b2d(0x14e)]({'unitId':this[_0x5f7b2d(0x14a)],'subUnitId':this[_0x5f7b2d(0x16d)],'drawingId':this[_0x5f7b2d(0x153)]});if(!(_0x13529b!=null&&_0x13529b[_0x5f7b2d(0x143)]))return[];let {width:_0x4134db=0x0,height:_0x133441=0x0}=_0x13529b[_0x5f7b2d(0x143)];return _0x40369c[_0x5f7b2d(0x14c)]({'width':_0x4134db,'height':_0x133441}),_0x40369c['getConnectionSiteList']();}[_0xb0776b(0x14f)](){const _0x1e1995=_0xb0776b;let _0x15c4bc=this[_0x1e1995(0x1a6)]['get'](_0x3c7127)['getShapeModel'](this[_0x1e1995(0x14a)],this['subUnitId'],this['drawId']);if(!_0x15c4bc)return[];let _0x1bde29=this[_0x1e1995(0x1a6)]['get'](_0x36a4ec)['getDrawingByParam']({'unitId':this[_0x1e1995(0x14a)],'subUnitId':this[_0x1e1995(0x16d)],'drawingId':this[_0x1e1995(0x153)]});if(!(_0x1bde29!=null&&_0x1bde29[_0x1e1995(0x143)]))return[];let {width:_0x5d865a=0x0,height:_0x4c0c17=0x0}=_0x1bde29[_0x1e1995(0x143)];return _0x15c4bc[_0x1e1995(0x14c)]({'width':_0x5d865a,'height':_0x4c0c17}),_0x15c4bc[_0x1e1995(0x189)]();}[_0xb0776b(0x146)](){const _0x34f45e=_0xb0776b;let _0xd71229=this['_injector'][_0x34f45e(0x181)](_0x3c7127)['getShapeModel'](this['unitId'],this[_0x34f45e(0x16d)],this['drawId']);if(!_0xd71229||!_0x1df30e(_0xd71229[_0x34f45e(0x190)]()))return[];let _0x4fdeb5=this['_injector'][_0x34f45e(0x181)](_0x36a4ec)[_0x34f45e(0x14e)]({'unitId':this[_0x34f45e(0x14a)],'subUnitId':this['subUnitId'],'drawingId':this[_0x34f45e(0x153)]});if(!(_0x4fdeb5!=null&&_0x4fdeb5[_0x34f45e(0x143)]))return[];let {width:_0xaeb483=0x0,height:_0x1dddd6=0x0}=_0x4fdeb5[_0x34f45e(0x143)];return _0xd71229[_0x34f45e(0x14c)]({'width':_0xaeb483,'height':_0x1dddd6}),_0xd71229[_0x34f45e(0x146)]();}[_0xb0776b(0x13c)](){const _0x2cfc6f=_0xb0776b;var _0x28d82b;let _0x2e191f=this[_0x2cfc6f(0x1a6)][_0x2cfc6f(0x181)](_0x3c7127)[_0x2cfc6f(0x152)](this['unitId'],this['subUnitId'],this[_0x2cfc6f(0x153)]);return _0x2e191f?(_0x28d82b=_0x2e191f['getStartConnectInfo']())==null?null:_0x28d82b:null;}[_0xb0776b(0x191)](){const _0x2bf6fd=_0xb0776b;var _0x459423;let _0x104c17=this['_injector']['get'](_0x3c7127)[_0x2bf6fd(0x152)](this[_0x2bf6fd(0x14a)],this[_0x2bf6fd(0x16d)],this[_0x2bf6fd(0x153)]);return _0x104c17?(_0x459423=_0x104c17['getEndConnectInfo']())==null?null:_0x459423:null;}[_0xb0776b(0x175)](){const _0x2bfcc1=_0xb0776b;var _0x309126,_0x1c9ded;if(!this['shapeType'])throw Error(_0x2bfcc1(0x1a2));if(this['x']===0x0||this['y']===0x0){let _0x149bfa=this[_0x2bfcc1(0x1a6)][_0x2bfcc1(0x181)](_0x1f069c)[_0x2bfcc1(0x12e)](this[_0x2bfcc1(0x14a)],this['subUnitId']);if(!_0x149bfa)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x2bfcc1(0x14a)]+'\x20and\x20subUnitId\x20'+this[_0x2bfcc1(0x16d)]+_0x2bfcc1(0x149));let {transform:_0x57d651}=_0x433800(this[_0x2bfcc1(0x14a)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x149bfa);this['x']=this['x']>0x0?this['x']:_0x57d651[_0x2bfcc1(0x16b)],this['y']=this['y']>0x0?this['y']:_0x57d651[_0x2bfcc1(0x1a1)];}return this[_0x2bfcc1(0x167)]=(_0x309126=this[_0x2bfcc1(0x167)])==null?_0x5ef94c:_0x309126,this['height']=(_0x1c9ded=this['height'])==null?_0xb8cf8d:_0x1c9ded,{'unitId':this['unitId'],'subUnitId':this[_0x2bfcc1(0x16d)],'shapeId':this[_0x2bfcc1(0x153)],'shapeType':this['shapeType'],'shapeData':Object[_0x2bfcc1(0x177)](this[_0x2bfcc1(0x176)])[_0x2bfcc1(0x1ab)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x2bfcc1(0x17c)]};}[_0xb0776b(0x164)](){const _0x2810c0=_0xb0776b;return this[_0x2810c0(0x153)];}[_0xb0776b(0x190)](){const _0x847898=_0xb0776b;return this[_0x847898(0x19d)];}[_0xb0776b(0x160)](){const _0x33cfbd=_0xb0776b;return this[_0x33cfbd(0x176)];}[_0xb0776b(0x163)](){return{'x':this['x'],'y':this['y']};}[_0xb0776b(0x15c)](){const _0x4161e2=_0xb0776b;return{'width':this[_0x4161e2(0x167)],'height':this[_0x4161e2(0x17c)]};}},F=class extends P{constructor(_0xb0be27,_0x199b63,_0x3892bd,_0x359902){const _0x3c97d9=_0xb0776b;super(_0xb0be27,_0x199b63,_0x3892bd,_0x359902),N(this,_0x3c97d9(0x176),{});}[_0xb0776b(0x15e)](_0x3742ac){const _0x50f9e1=_0xb0776b;if(!_0x1df30e(_0x3742ac))throw Error(_0x50f9e1(0x144)+_0x3742ac+_0x50f9e1(0x1a5));return super[_0x50f9e1(0x15e)](_0x3742ac),this;}[_0xb0776b(0x182)](_0x23503e){const _0x210938=_0xb0776b;var _0x426cc2,_0x905e40;return(_0x426cc2=this[_0x210938(0x176)])!=null&&_0x426cc2['ln']||(this['shapeData']['ln']={}),!((_0x905e40=this['shapeData'])==null||(_0x905e40=_0x905e40['ln'])==null)&&_0x905e40['startArrow']||(this[_0x210938(0x176)]['ln'][_0x210938(0x184)]={}),this[_0x210938(0x176)]['ln'][_0x210938(0x184)][_0x210938(0x158)]=_0x23503e,this;}[_0xb0776b(0x151)](_0xc6d59a){const _0x2e940a=_0xb0776b;var _0x5d0416,_0x4368de;return(_0x5d0416=this[_0x2e940a(0x176)])!=null&&_0x5d0416['ln']||(this[_0x2e940a(0x176)]['ln']={}),!((_0x4368de=this[_0x2e940a(0x176)])==null||(_0x4368de=_0x4368de['ln'])==null)&&_0x4368de[_0x2e940a(0x147)]||(this[_0x2e940a(0x176)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x2e940a(0x147)][_0x2e940a(0x158)]=_0xc6d59a,this;}['setStartArrowSize'](_0x2d84e0){const _0x562fa9=_0xb0776b;var _0x47c13c,_0x34fba9;return(_0x47c13c=this[_0x562fa9(0x176)])!=null&&_0x47c13c['ln']||(this[_0x562fa9(0x176)]['ln']={}),!((_0x34fba9=this[_0x562fa9(0x176)])==null||(_0x34fba9=_0x34fba9['ln'])==null)&&_0x34fba9[_0x562fa9(0x184)]||(this[_0x562fa9(0x176)]['ln'][_0x562fa9(0x184)]={}),this['shapeData']['ln'][_0x562fa9(0x184)][_0x562fa9(0x15a)]=_0x2d84e0,this;}[_0xb0776b(0x18e)](_0x552e00){const _0x46759a=_0xb0776b;var _0x1c922e,_0x3e7328;return(_0x1c922e=this[_0x46759a(0x176)])!=null&&_0x1c922e['ln']||(this[_0x46759a(0x176)]['ln']={}),!((_0x3e7328=this['shapeData'])==null||(_0x3e7328=_0x3e7328['ln'])==null)&&_0x3e7328[_0x46759a(0x147)]||(this[_0x46759a(0x176)]['ln']['endArrow']={}),this[_0x46759a(0x176)]['ln']['endArrow'][_0x46759a(0x15a)]=_0x552e00,this;}['build'](){const _0x3eae23=_0xb0776b;return super[_0x3eae23(0x175)]();}[_0xb0776b(0x191)](){const _0x1f64e4=_0xb0776b;var _0x50d9f6;return((_0x50d9f6=this[_0x1f64e4(0x176)])==null||(_0x50d9f6=_0x50d9f6[_0x1f64e4(0x161)])==null?void 0x0:_0x50d9f6['to'])||null;}[_0xb0776b(0x13c)](){const _0x2e1e2f=_0xb0776b;var _0x241f15;return((_0x241f15=this['shapeData'])==null||(_0x241f15=_0x241f15[_0x2e1e2f(0x161)])==null?void 0x0:_0x241f15[_0x2e1e2f(0x137)])||null;}};function I(_0x51b27b,_0x50da3a,_0x319525,_0x4147e1,_0xdc3f8c,_0x9a5606){const _0x14f547=_0xb0776b;let _0xd21e10=_0xdc3f8c[_0x14f547(0x152)](_0x51b27b,_0x50da3a,_0x319525);if(!_0xd21e10)return null;let _0x202164=_0x9a5606[_0x14f547(0x14e)]({'unitId':_0x51b27b,'subUnitId':_0x50da3a,'drawingId':_0x319525});if(!(_0x202164!=null&&_0x202164[_0x14f547(0x143)]))return null;let {left:_0x8b5e95=0x0,top:_0x448479=0x0,width:_0x1bc3cf=0x0,height:_0x335391=0x0,flipX:_0xde98a9=!0x1,flipY:_0xaa6902=!0x1,angle:_0x32f097}=_0x202164[_0x14f547(0x143)];_0xd21e10[_0x14f547(0x14c)]({'width':_0x1bc3cf,'height':_0x335391});let _0x3d0d02=_0xd21e10[_0x14f547(0x199)]()[_0x14f547(0x195)](_0x4b3e87=>_0x4b3e87[_0x14f547(0x188)]===_0x4147e1);if(!_0x3d0d02)return null;let _0x4d5c4a=_0xde98a9?_0x1bc3cf-_0x3d0d02['x']:_0x3d0d02['x'],_0x494b0c=_0xaa6902?_0x335391-_0x3d0d02['y']:_0x3d0d02['y'];if(_0x32f097&&_0x32f097!==0x0){let _0x506706=_0x32f097*Math['PI']/0xb4,_0x23b90b=Math[_0x14f547(0x130)](_0x506706),_0x54d7b1=Math[_0x14f547(0x178)](_0x506706),_0x281add=_0x1bc3cf/0x2,_0x74a272=_0x335391/0x2,_0x9a8f41=_0x4d5c4a-_0x281add,_0x131aa7=_0x494b0c-_0x74a272;_0x4d5c4a=_0x281add+_0x9a8f41*_0x23b90b-_0x131aa7*_0x54d7b1,_0x494b0c=_0x74a272+_0x9a8f41*_0x54d7b1+_0x131aa7*_0x23b90b;}_0x4d5c4a+=_0x8b5e95,_0x494b0c+=_0x448479;let _0x53a141=_0x3d0d02[_0x14f547(0x159)]/0xea60;_0xde98a9&&(_0x53a141=0xb4-_0x53a141),_0xaa6902&&(_0x53a141=-_0x53a141),_0x53a141+=_0x32f097||0x0,_0x53a141=(_0x53a141%0x168+0x168)%0x168;let _0x5b9b0e=_0x12c401({'left':_0x8b5e95,'top':_0x448479,'width':_0x1bc3cf,'height':_0x335391},_0x32f097||0x0);return{'point':{'x':_0x4d5c4a,'y':_0x494b0c},'angle':_0x53a141,'bounds':_0x5b9b0e};}function L(_0x43b04f,_0x3255a1){const _0x40ca40=_0xb0776b;let _0x2bff51=_0x3255a1['x']-_0x43b04f['x'],_0x2445ce=_0x3255a1['y']-_0x43b04f['y'];return Math[_0x40ca40(0x14d)](_0x2bff51)>=Math['abs'](_0x2445ce)?_0x2bff51>=0x0?0xb4:0x0:_0x2445ce>=0x0?0x10e:0x5a;}function R(_0x4408ae,_0x148659,_0x20c402,_0x45bc69,_0xa524,_0x417021,_0x420478){const _0x4acb02=_0xb0776b;let _0x2b6f19=_0x417021[_0x4acb02(0x152)](_0x4408ae,_0x148659,_0x20c402);if(!_0x2b6f19)return null;let _0x1133d3=_0x420478[_0x4acb02(0x14e)]({'unitId':_0x4408ae,'subUnitId':_0x148659,'drawingId':_0x20c402});if(!(_0x1133d3!=null&&_0x1133d3[_0x4acb02(0x143)]))return null;let {left:_0x51c7fe=0x0,top:_0x1a5c39=0x0,width:_0x488760=0x0,height:_0x5ae787=0x0,flipX:_0x572315=!0x1,flipY:_0x2287fc=!0x1}=_0x1133d3['transform'];_0x2b6f19[_0x4acb02(0x14c)]({'width':_0x488760,'height':_0x5ae787});let _0xcd99a9=_0x2b6f19['getConnectorLinePoints']();if(_0xcd99a9[_0x4acb02(0x1ab)]<0x2)return null;let _0x16c0e6=_0x45bc69?_0xcd99a9[0x0]:_0xcd99a9[_0xcd99a9[_0x4acb02(0x1ab)]-0x1],_0x4e9889=new _0x235482({'left':_0x51c7fe,'top':_0x1a5c39,'width':_0x488760,'height':_0x5ae787,'flipX':_0x572315,'flipY':_0x2287fc})[_0x4acb02(0x17a)](_0x16c0e6);return{'point':_0x4e9889,'angle':L(_0xa524[_0x4acb02(0x135)],_0x4e9889),'bounds':{'left':_0x4e9889['x'],'top':_0x4e9889['y'],'width':0x0,'height':0x0}};}var z=class extends _0x30bddd{async[_0xb0776b(0x132)](_0x627784){const _0x57db04=_0xb0776b;let {unitId:_0x5756c5,subUnitId:_0x3bad9f,shapeId:_0x4cfa57,shapeType:_0x49d2e9,shapeData:_0x5d78e1,x:_0x545473,y:_0x20460b,width:_0x3a1ae3,height:_0x2bd113}=_0x627784;return this[_0x57db04(0x197)][_0x57db04(0x173)](_0x22bb9b['id'],{'unitId':_0x5756c5,'subUnitId':_0x3bad9f,'shapeId':_0x4cfa57,'shapeType':_0x49d2e9,'shapeData':_0x5d78e1,'position':{'x':_0x545473,'y':_0x20460b},'width':_0x3a1ae3,'height':_0x2bd113});}async[_0xb0776b(0x13e)](_0x124b5d){const _0x2e4499=_0xb0776b;let {unitId:_0x1896be,subUnitId:_0x4ec84b,shapeId:_0x3857ac,shapeType:_0x466e47,shapeData:_0xdac934,x:_0x27c39b,y:_0xb81d84,width:_0x1cb0a4,height:_0x1571db}=_0x124b5d;return this['_commandService'][_0x2e4499(0x173)](_0x42294b['id'],{'unitId':_0x1896be,'subUnitId':_0x4ec84b,'shapeId':_0x3857ac,'shapeType':_0x466e47,'shapeData':_0xdac934,'position':{'x':_0x27c39b,'y':_0xb81d84},'width':_0x1cb0a4,'height':_0x1571db});}['newShape'](_0x150a61){const _0x41885c=_0xb0776b;let _0x1bf5cc=this[_0x41885c(0x186)]()[_0x41885c(0x148)](),_0x47a386=this[_0x41885c(0x166)]();if(_0x150a61){let _0x5c5a48=new P(_0x1bf5cc,_0x47a386,_0x150a61[_0x41885c(0x153)],this['_injector']);return this['_preloadShapeProperties'](_0x5c5a48,_0x1bf5cc,_0x47a386,_0x150a61[_0x41885c(0x153)]),_0x5c5a48;}return new P(_0x1bf5cc,_0x47a386,_0x793d5e(),this[_0x41885c(0x1a6)]);}['newConnector'](_0x905f52){const _0x406376=_0xb0776b;let _0x2dbf94=this[_0x406376(0x186)]()[_0x406376(0x148)](),_0x502d84=this[_0x406376(0x166)]();if(_0x905f52){let _0x52f0d8=new F(_0x2dbf94,_0x502d84,_0x905f52[_0x406376(0x153)],this[_0x406376(0x1a6)]);return this[_0x406376(0x12d)](_0x52f0d8,_0x2dbf94,_0x502d84,_0x905f52['drawId']),_0x52f0d8;}return new F(_0x2dbf94,_0x502d84,_0x793d5e(),this[_0x406376(0x1a6)]);}[_0xb0776b(0x141)](){const _0x5e399f=_0xb0776b;let _0x3b8fbb=this[_0x5e399f(0x1a6)][_0x5e399f(0x181)](_0x3e52bb),_0x540b19=this['getWorkbook']()[_0x5e399f(0x148)](),_0xb7679d=this['getSheetId'](),_0x199e0f=_0x3b8fbb['getDrawingData'](_0x540b19,_0xb7679d);if(!_0x199e0f)return[];let _0x22af9e=[];for(let [_0x3310ef,_0x598448]of Object[_0x5e399f(0x19a)](_0x199e0f))if(_0x598448&&_0x598448[_0x5e399f(0x17f)]===_0x2bcb5a[_0x5e399f(0x157)]){let _0xd70a5c=new P(_0x540b19,_0xb7679d,_0x3310ef,this[_0x5e399f(0x1a6)]);this[_0x5e399f(0x12d)](_0xd70a5c,_0x540b19,_0xb7679d,_0x3310ef),_0x22af9e['push'](_0xd70a5c);}return _0x22af9e;}['removeShape'](_0x13ac09){const _0x1ba56b=_0xb0776b;let {unitId:_0x26645d,subUnitId:_0x35788d,drawId:_0x3dc22e}=_0x13ac09;return this[_0x1ba56b(0x197)][_0x1ba56b(0x173)](_0x49b49f['id'],{'unitId':_0x26645d,'drawings':[{'unitId':_0x26645d,'subUnitId':_0x35788d,'drawingId':_0x3dc22e,'drawingType':_0x2bcb5a[_0x1ba56b(0x157)]}]});}async['connectShapes'](_0x198ac3){const _0x493f68=_0xb0776b;let {connector:_0x4e5b46,startTarget:_0x325204,endTarget:_0x12bf39}=_0x198ac3;if(!_0x325204&&!_0x12bf39)return!0x1;let _0x39efb6=this[_0x493f68(0x186)]()[_0x493f68(0x148)](),_0x3bc3d2=this[_0x493f68(0x166)](),_0x3e8096=this['_injector'][_0x493f68(0x181)](_0x3c7127),_0x5efdfc=this[_0x493f68(0x1a6)][_0x493f68(0x181)](_0x36a4ec),_0x3892c9=_0x3e8096[_0x493f68(0x152)](_0x39efb6,_0x3bc3d2,_0x4e5b46[_0x493f68(0x153)]);if(!_0x3892c9)return!0x1;let _0x56a3e3=_0x3892c9[_0x493f68(0x190)](),_0x2fa108=_0x3892c9['getShapeRelation'](),_0x10da26={};for(let _0x11d23e of _0x3892c9[_0x493f68(0x14b)]()){let _0x2b2fd1=_0x3892c9[_0x493f68(0x169)](_0x11d23e);_0x2b2fd1!==void 0x0&&(_0x10da26[_0x11d23e]=_0x2b2fd1);}let {startInfo:_0x9f04b7,endInfo:_0x314e96}=this[_0x493f68(0x134)](_0x39efb6,_0x3bc3d2,_0x4e5b46,_0x3892c9,_0x325204,_0x12bf39,_0x3e8096,_0x5efdfc,_0x2fa108);if(!_0x9f04b7||!_0x314e96)return!0x1;let _0x1ac280=_0x53deb7(_0x4773b1(_0x9f04b7,_0x314e96,_0x56a3e3),_0x56a3e3),_0xc009d4={};return _0x325204?_0xc009d4['from']={'shapeId':_0x325204[_0x493f68(0x171)][_0x493f68(0x153)],'cxnIndex':_0x325204[_0x493f68(0x140)]}:_0x2fa108!=null&&_0x2fa108[_0x493f68(0x137)]&&(_0xc009d4[_0x493f68(0x137)]=_0x2fa108[_0x493f68(0x137)]),_0x12bf39?_0xc009d4['to']={'shapeId':_0x12bf39[_0x493f68(0x171)][_0x493f68(0x153)],'cxnIndex':_0x12bf39[_0x493f68(0x140)]}:_0x2fa108!=null&&_0x2fa108['to']&&(_0xc009d4['to']=_0x2fa108['to']),this[_0x493f68(0x197)][_0x493f68(0x173)](_0x319eb8['id'],{'unitId':_0x39efb6,'subUnitId':_0x3bc3d2,'connectorShapeId':_0x4e5b46['drawId'],'width':_0x1ac280['worldRect'][_0x493f68(0x167)],'height':_0x1ac280['worldRect']['height'],'left':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x16b)],'top':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x1a1)],'flipX':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x18d)]||!0x1,'flipY':_0x1ac280[_0x493f68(0x15b)]['flipY']||!0x1,'oldAdjustValues':_0x10da26,'newAdjustValues':_0x1ac280[_0x493f68(0x15d)],'newLineType':_0x1ac280[_0x493f68(0x1a0)],'oldLineType':_0x56a3e3,'rotation':_0x1ac280[_0x493f68(0x12c)],'oldRelation':_0x2fa108,'newRelation':_0xc009d4});}[_0xb0776b(0x12d)](_0x2628bd,_0x192e40,_0x28292d,_0x57557a){const _0x5908ee=_0xb0776b;let _0x51d30d=this[_0x5908ee(0x1a6)][_0x5908ee(0x181)](_0x36a4ec)[_0x5908ee(0x14e)]({'unitId':_0x192e40,'subUnitId':_0x28292d,'drawingId':_0x57557a});if(_0x51d30d!=null&&_0x51d30d[_0x5908ee(0x143)]){var _0x50fdbf,_0x4fc1ba,_0x5e2081,_0x2f0b77;_0x2628bd['x']=(_0x50fdbf=_0x51d30d[_0x5908ee(0x143)][_0x5908ee(0x16b)])==null?0x0:_0x50fdbf,_0x2628bd['y']=(_0x4fc1ba=_0x51d30d[_0x5908ee(0x143)]['top'])==null?0x0:_0x4fc1ba,_0x2628bd[_0x5908ee(0x167)]=(_0x5e2081=_0x51d30d[_0x5908ee(0x143)]['width'])==null?_0x2628bd[_0x5908ee(0x167)]:_0x5e2081,_0x2628bd[_0x5908ee(0x17c)]=(_0x2f0b77=_0x51d30d[_0x5908ee(0x143)][_0x5908ee(0x17c)])==null?_0x2628bd[_0x5908ee(0x17c)]:_0x2f0b77;}let _0x5767d5=this[_0x5908ee(0x1a6)][_0x5908ee(0x181)](_0x3c7127)[_0x5908ee(0x152)](_0x192e40,_0x28292d,_0x57557a);if(_0x5767d5){_0x2628bd['shapeType']=_0x5767d5['getShapeType']();let _0x40afbe=_0x5767d5['getShapeData']();_0x40afbe&&(_0x2628bd[_0x5908ee(0x176)]=JSON[_0x5908ee(0x18a)](JSON['stringify'](_0x40afbe)));}}[_0xb0776b(0x134)](_0x1970c5,_0x519701,_0x8c9040,_0x3e306b,_0x50bf32,_0xd4d909,_0x4343a0,_0x45414f,_0x12b7df){const _0x203258=_0xb0776b;let _0x4915be=null,_0x315329=null;return _0x50bf32&&(_0x4915be=I(_0x1970c5,_0x519701,_0x50bf32[_0x203258(0x171)][_0x203258(0x153)],_0x50bf32[_0x203258(0x140)],_0x4343a0,_0x45414f)),_0xd4d909&&(_0x315329=I(_0x1970c5,_0x519701,_0xd4d909[_0x203258(0x171)][_0x203258(0x153)],_0xd4d909[_0x203258(0x140)],_0x4343a0,_0x45414f)),_0x4915be||(_0x4915be=this[_0x203258(0x16f)](_0x1970c5,_0x519701,_0x8c9040[_0x203258(0x153)],!0x0,_0x315329,_0x12b7df==null?void 0x0:_0x12b7df[_0x203258(0x137)],_0x4343a0,_0x45414f)),_0x315329||(_0x315329=this[_0x203258(0x16f)](_0x1970c5,_0x519701,_0x8c9040[_0x203258(0x153)],!0x1,_0x4915be,_0x12b7df==null?void 0x0:_0x12b7df['to'],_0x4343a0,_0x45414f)),{'startInfo':_0x4915be,'endInfo':_0x315329};}[_0xb0776b(0x16f)](_0x1002d6,_0x1dd77c,_0x58c45c,_0x1765ea,_0x4d06f1,_0x59dcd6,_0x474983,_0x11797f){const _0x370534=_0xb0776b;if(_0x59dcd6){let _0x2860d8=I(_0x1002d6,_0x1dd77c,_0x59dcd6[_0x370534(0x145)],_0x59dcd6[_0x370534(0x180)],_0x474983,_0x11797f);if(_0x2860d8)return _0x2860d8;}return _0x4d06f1?R(_0x1002d6,_0x1dd77c,_0x58c45c,_0x1765ea,_0x4d06f1,_0x474983,_0x11797f):null;}};_0x30bddd[_0xb0776b(0x17d)](z);export{F as FConnectorShape,P as FShape};