@univerjs-pro/sheets-shape 0.22.1 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5442c3=_0x1248;(function(_0x3a5918,_0x5cdec4){const _0x1d52b9=_0x1248,_0x1fa75c=_0x3a5918();while(!![]){try{const _0xb9d1f5=parseInt(_0x1d52b9(0xa5))/0x1+-parseInt(_0x1d52b9(0x136))/0x2*(-parseInt(_0x1d52b9(0xed))/0x3)+-parseInt(_0x1d52b9(0x106))/0x4+-parseInt(_0x1d52b9(0x122))/0x5*(-parseInt(_0x1d52b9(0x102))/0x6)+-parseInt(_0x1d52b9(0xd8))/0x7*(parseInt(_0x1d52b9(0x109))/0x8)+-parseInt(_0x1d52b9(0xff))/0x9+-parseInt(_0x1d52b9(0xc2))/0xa*(-parseInt(_0x1d52b9(0x141))/0xb);if(_0xb9d1f5===_0x5cdec4)break;else _0x1fa75c['push'](_0x1fa75c['shift']());}catch(_0x4132dc){_0x1fa75c['push'](_0x1fa75c['shift']());}}}(_0x241b,0xd3447),Object[_0x5442c3(0xc0)](exports,Symbol['toStringTag'],{'value':_0x5442c3(0xf2)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_sheets_facade=require('@univerjs/sheets/facade');var FSheetsShapeEnumMixin=class extends _univerjs_core_facade[_0x5442c3(0xb8)]{get['ShapeTypeEnum'](){return _univerjs_pro_engine_shape['ShapeTypeEnum'];}get[_0x5442c3(0x12f)](){const _0x3511ae=_0x5442c3;return _univerjs_pro_engine_shape[_0x3511ae(0x12f)];}get[_0x5442c3(0xb0)](){const _0x517074=_0x5442c3;return _univerjs_pro_engine_shape[_0x517074(0xb0)];}get[_0x5442c3(0x105)](){const _0xaf2175=_0x5442c3;return _univerjs_pro_engine_shape[_0xaf2175(0x105)];}get[_0x5442c3(0xd2)](){const _0x1a4181=_0x5442c3;return _univerjs_pro_engine_shape[_0x1a4181(0xd2)];}get['ShapeLineCapEnum'](){const _0x52498b=_0x5442c3;return _univerjs_pro_engine_shape[_0x52498b(0xc5)];}get[_0x5442c3(0x12a)](){const _0x284e07=_0x5442c3;return _univerjs_pro_engine_shape[_0x284e07(0x12a)];}get['ShapeArrowTypeEnum'](){const _0x56eb3d=_0x5442c3;return _univerjs_pro_engine_shape[_0x56eb3d(0xc3)];}get[_0x5442c3(0xe7)](){const _0x11b1a1=_0x5442c3;return _univerjs_pro_engine_shape[_0x11b1a1(0xe7)];}};function _0x241b(){const _0x293a54=['startArrow','updateContext','object','ShapeGradientTypeEnum','from','lineJoinType','FConnectorShape','RemoveSheetDrawingCommand','_resolveExistingOrFreeEndpoint','find','\x20and\x20subUnitId\x20','FEnum','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','convertPositionCellToSheetOverGrid','generateRandomId','getAdjustValueByName','executeCommand','shapeId','ang','defineProperty','color','6689270IkcKPd','ShapeArrowTypeEnum','keys','ShapeLineCapEnum','point','computeConnectorRouteLayout','relation','routeConnectorLineShape','fillType','IDrawingManagerService','SheetsShapeService','getShapeModel','toPrimitive','GradientFill','isConnectorShape','extend','ShapeLineDashEnum','getSheetId','_injector','ISheetDrawingService','isLineShape','setEndArrowSize','1558277TBUHUP','stroke','setStrokeLineDashType','Skeleton\x20for\x20unitId\x20','function','\x20not\x20found','NoFill','setStrokeOpacity','default','setWidth','size','_preloadShapeProperties','setEndArrowType','setNoneFill','setStrokeColor','ShapeArrowSizeEnum','type','setStrokeLineCapType','cxnIndex','top','abs','144wxZeMt','fill','build','setPosition','setStrokeWidth','Module','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','symbol','setShapeGradientFill','getConnectionSiteList','unitId','get','UpdateConnectorRelationCommand','DrawingTypeEnum','getConnectorLinePoints','cos','DRAWING_SHAPE','_commandService','8707167qSeoPn','getShapeType','SetShapeDrawingDataCommand','1576194uhiLCo','getPosition','localToWorld','ShapeLineTypeEnum','2176568JtulFc','getEndConnectInfo','getSize','56SsjIBZ','gradientStops','shape','getWorkbook','removeShape','getShapeRelation','flipX','lineType','drawingType','parse','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','SheetSkeletonService','worldRect','opacity','width','setShapeType','gradientType','lineStrokeType','drawId','setAbsolutePosition','height','transform','rotation','setHeight','getStartConnectInfo','10cJkXnL','left','getShapeData','DEFAULT_SHAPE_HEIGHT','newShape','newConnector','endArrow','string','ShapeLineJoinEnum','adjustValues','getBasicShapeRotateBound',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','index','ShapeFillEnum','setStartArrowSize','subUnitId','getConnectionSites','ConnectorCoordinateTransform','FWorksheet','getAdjustNames','3588ywCnvZ','iterator','prototype','sin','getDrawingByParam','shapeType','connectionSiteIndex','push','ensureSkeleton','shapeData','getAdjustPoints','33kCyXrg','_resolveEndpoints','1316942FyVoPA','connectShapes','gradientAngle','DEFAULT_SHAPE_WIDTH','insertShape','getUnitId','setStrokeLineType','length'];_0x241b=function(){return _0x293a54;};return _0x241b();}_univerjs_core_facade['FEnum'][_0x5442c3(0xd1)](FSheetsShapeEnumMixin);function _typeof(_0x2953e1){'@babel/helpers - typeof';const _0x66df18=_0x5442c3;return _typeof=_0x66df18(0xdc)==typeof Symbol&&'symbol'==typeof Symbol[_0x66df18(0x137)]?function(_0x3b02d4){return typeof _0x3b02d4;}:function(_0x42e88b){const _0x5881c7=_0x66df18;return _0x42e88b&&_0x5881c7(0xdc)==typeof Symbol&&_0x42e88b['constructor']===Symbol&&_0x42e88b!==Symbol[_0x5881c7(0x138)]?_0x5881c7(0xf4):typeof _0x42e88b;},_typeof(_0x2953e1);}function toPrimitive(_0x52d0e8,_0x2f0c3f){const _0x4056dc=_0x5442c3;if(_0x4056dc(0xaf)!=_typeof(_0x52d0e8)||!_0x52d0e8)return _0x52d0e8;var _0x1964e9=_0x52d0e8[Symbol[_0x4056dc(0xce)]];if(void 0x0!==_0x1964e9){var _0x126a80=_0x1964e9['call'](_0x52d0e8,_0x2f0c3f||_0x4056dc(0xe0));if(_0x4056dc(0xaf)!=_typeof(_0x126a80))return _0x126a80;throw new TypeError(_0x4056dc(0xb9));}return(_0x4056dc(0x129)===_0x2f0c3f?String:Number)(_0x52d0e8);}function toPropertyKey(_0x8c7a2c){const _0x4e5901=_0x5442c3;var _0x3d89cb=toPrimitive(_0x8c7a2c,_0x4e5901(0x129));return _0x4e5901(0xf4)==_typeof(_0x3d89cb)?_0x3d89cb:_0x3d89cb+'';}function _defineProperty(_0x374609,_0x4ad8f3,_0xc9b810){const _0x69ccc5=_0x5442c3;return(_0x4ad8f3=toPropertyKey(_0x4ad8f3))in _0x374609?Object[_0x69ccc5(0xc0)](_0x374609,_0x4ad8f3,{'value':_0xc9b810,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x374609[_0x4ad8f3]=_0xc9b810,_0x374609;}var FShape=class{constructor(_0x4fa148,_0x1031dc,_0x11c36e,_0x278a89){const _0x106085=_0x5442c3;_defineProperty(this,_0x106085(0xf7),void 0x0),_defineProperty(this,_0x106085(0x131),void 0x0),_defineProperty(this,_0x106085(0x11b),void 0x0),_defineProperty(this,'x',0x0),_defineProperty(this,'y',0x0),_defineProperty(this,_0x106085(0x117),_univerjs_pro_sheets_shape['DEFAULT_SHAPE_WIDTH']),_defineProperty(this,'height',_univerjs_pro_sheets_shape[_0x106085(0x125)]),_defineProperty(this,'shapeType',void 0x0),_defineProperty(this,_0x106085(0x13f),{}),_defineProperty(this,_0x106085(0xd4),void 0x0),this[_0x106085(0xf7)]=_0x4fa148,this[_0x106085(0x131)]=_0x1031dc,this[_0x106085(0x11b)]=_0x11c36e||(0x0,_univerjs_core[_0x106085(0xbb)])(),this[_0x106085(0xd4)]=_0x278a89;}[_0x5442c3(0xf0)](_0x399ff7,_0x48db75,_0x5ec902,_0x514b5d){const _0x31c3ba=_0x5442c3,_0x2e89ee=this[_0x31c3ba(0xd4)][_0x31c3ba(0xf8)](_univerjs_sheets[_0x31c3ba(0x114)])[_0x31c3ba(0x13e)](this['unitId'],this[_0x31c3ba(0x131)]);if(!_0x2e89ee)throw new Error(_0x31c3ba(0xdb)+this[_0x31c3ba(0xf7)]+_0x31c3ba(0xb7)+this[_0x31c3ba(0x131)]+_0x31c3ba(0xdd));const {transform:_0x299f71}=(0x0,_univerjs_sheets[_0x31c3ba(0xba)])(this['unitId'],this['subUnitId'],{'row':_0x399ff7,'column':_0x48db75,'rowOffset':_0x5ec902,'columnOffset':_0x514b5d},0x1,0x1,_0x2e89ee);return this['x']=_0x299f71['left'],this['y']=_0x299f71[_0x31c3ba(0xeb)],this;}[_0x5442c3(0x11c)](_0x185812,_0x1b8831){return this['x']=_0x185812,this['y']=_0x1b8831,this;}[_0x5442c3(0x118)](_0x5a56ff){const _0x57fca2=_0x5442c3;return this[_0x57fca2(0x13b)]=_0x5a56ff,this;}['setShapeSolidFill'](_0x2a97cc,_0x46bd07){const _0x2363c7=_0x5442c3;if(!this[_0x2363c7(0x13f)][_0x2363c7(0xee)])this[_0x2363c7(0x13f)][_0x2363c7(0xee)]={};this[_0x2363c7(0x13f)][_0x2363c7(0xee)][_0x2363c7(0xca)]=_univerjs_pro_engine_shape[_0x2363c7(0x12f)]['SolidFill'];if(_0x2a97cc!==void 0x0)this['shapeData'][_0x2363c7(0xee)]['color']=_0x2a97cc;if(_0x46bd07!==void 0x0)this[_0x2363c7(0x13f)]['fill'][_0x2363c7(0x116)]=_0x46bd07;return this;}[_0x5442c3(0xf5)](_0x9298d4,_0x3314b3,_0x36242d){const _0xee3250=_0x5442c3;if(_0x3314b3===void 0x0||_0x3314b3['length']===0x0)throw new Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');if(!this[_0xee3250(0x13f)][_0xee3250(0xee)])this[_0xee3250(0x13f)][_0xee3250(0xee)]={};this['shapeData'][_0xee3250(0xee)][_0xee3250(0x10a)]=_0x3314b3,this['shapeData']['fill'][_0xee3250(0xca)]=_univerjs_pro_engine_shape[_0xee3250(0x12f)][_0xee3250(0xcf)],this[_0xee3250(0x13f)][_0xee3250(0xee)][_0xee3250(0x119)]=_0x9298d4;if(_0x36242d!==void 0x0)this[_0xee3250(0x13f)]['fill'][_0xee3250(0xa7)]=_0x36242d;return this;}[_0x5442c3(0xe5)](){const _0xb63866=_0x5442c3;return this['shapeData'][_0xb63866(0xee)]={'fillType':_univerjs_pro_engine_shape['ShapeFillEnum'][_0xb63866(0xde)]},this;}[_0x5442c3(0xe6)](_0x5c1429){const _0x39b56e=_0x5442c3;if(!this['shapeData'][_0x39b56e(0xd9)])this[_0x39b56e(0x13f)][_0x39b56e(0xd9)]={};return this[_0x39b56e(0x13f)][_0x39b56e(0xd9)][_0x39b56e(0xc1)]=_0x5c1429,this;}[_0x5442c3(0xf1)](_0x3d505e){const _0x47b846=_0x5442c3;if(!this[_0x47b846(0x13f)][_0x47b846(0xd9)])this[_0x47b846(0x13f)][_0x47b846(0xd9)]={};return this[_0x47b846(0x13f)][_0x47b846(0xd9)][_0x47b846(0x117)]=_0x3d505e,this;}[_0x5442c3(0xda)](_0x1dcb0a){const _0x5e8092=_0x5442c3;if(!this[_0x5e8092(0x13f)][_0x5e8092(0xd9)])this[_0x5e8092(0x13f)]['stroke']={};return this[_0x5e8092(0x13f)][_0x5e8092(0xd9)]['dashType']=_0x1dcb0a,this;}['setStrokeLineJoinType'](_0x287792){const _0x4a22ec=_0x5442c3;if(!this['shapeData'][_0x4a22ec(0xd9)])this[_0x4a22ec(0x13f)][_0x4a22ec(0xd9)]={};return this[_0x4a22ec(0x13f)][_0x4a22ec(0xd9)][_0x4a22ec(0xb2)]=_0x287792,this;}[_0x5442c3(0xe9)](_0x1de5c1){const _0x1a7f62=_0x5442c3;if(!this['shapeData']['stroke'])this[_0x1a7f62(0x13f)][_0x1a7f62(0xd9)]={};return this['shapeData'][_0x1a7f62(0xd9)]['capType']=_0x1de5c1,this;}[_0x5442c3(0xdf)](_0x4df5d8){const _0x42e9b1=_0x5442c3;if(!this[_0x42e9b1(0x13f)]['stroke'])this[_0x42e9b1(0x13f)]['stroke']={};return this[_0x42e9b1(0x13f)]['stroke']['opacity']=_0x4df5d8,this;}[_0x5442c3(0xab)](_0x445394){const _0x234b8a=_0x5442c3;if(!this[_0x234b8a(0x13f)]['stroke'])this[_0x234b8a(0x13f)][_0x234b8a(0xd9)]={};return this[_0x234b8a(0x13f)][_0x234b8a(0xd9)][_0x234b8a(0x11a)]=_0x445394,this;}[_0x5442c3(0xe1)](_0x1b7a2c){const _0x4b6ec2=_0x5442c3;return this[_0x4b6ec2(0x117)]=_0x1b7a2c,this;}[_0x5442c3(0x120)](_0x805436){const _0x29b537=_0x5442c3;return this[_0x29b537(0x11d)]=_0x805436,this;}[_0x5442c3(0xd6)](){const _0x125ba5=_0x5442c3,_0x13f90e=this[_0x125ba5(0xd4)]['get'](_univerjs_pro_sheets_shape[_0x125ba5(0xcc)])['getShapeModel'](this[_0x125ba5(0xf7)],this[_0x125ba5(0x131)],this[_0x125ba5(0x11b)]);if(_0x13f90e)return(0x0,_univerjs_pro_engine_shape[_0x125ba5(0xd0)])(_0x13f90e[_0x125ba5(0x100)]());if(this['shapeType'])return(0x0,_univerjs_pro_engine_shape[_0x125ba5(0xd0)])(this[_0x125ba5(0x13b)]);return![];}[_0x5442c3(0x132)](){const _0x49da3e=_0x5442c3,_0x13da92=this[_0x49da3e(0xd4)]['get'](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x49da3e(0xcd)](this['unitId'],this[_0x49da3e(0x131)],this[_0x49da3e(0x11b)]);if(!_0x13da92)return[];const _0x201acf=this[_0x49da3e(0xd4)]['get'](_univerjs_drawing[_0x49da3e(0xcb)])[_0x49da3e(0x13a)]({'unitId':this['unitId'],'subUnitId':this[_0x49da3e(0x131)],'drawingId':this[_0x49da3e(0x11b)]});if(!(_0x201acf===null||_0x201acf===void 0x0?void 0x0:_0x201acf[_0x49da3e(0x11e)]))return[];const {width:width=0x0,height:height=0x0}=_0x201acf[_0x49da3e(0x11e)];return _0x13da92[_0x49da3e(0xae)]({'width':width,'height':height}),_0x13da92[_0x49da3e(0xf6)]();}[_0x5442c3(0x140)](){const _0x13daac=_0x5442c3,_0x227789=this[_0x13daac(0xd4)][_0x13daac(0xf8)](_univerjs_pro_sheets_shape[_0x13daac(0xcc)])['getShapeModel'](this[_0x13daac(0xf7)],this[_0x13daac(0x131)],this[_0x13daac(0x11b)]);if(!_0x227789)return[];const _0x2d7b20=this[_0x13daac(0xd4)][_0x13daac(0xf8)](_univerjs_drawing['IDrawingManagerService'])[_0x13daac(0x13a)]({'unitId':this[_0x13daac(0xf7)],'subUnitId':this[_0x13daac(0x131)],'drawingId':this[_0x13daac(0x11b)]});if(!(_0x2d7b20===null||_0x2d7b20===void 0x0?void 0x0:_0x2d7b20[_0x13daac(0x11e)]))return[];const {width:width=0x0,height:height=0x0}=_0x2d7b20[_0x13daac(0x11e)];return _0x227789[_0x13daac(0xae)]({'width':width,'height':height}),_0x227789['getDrawingPoints']();}[_0x5442c3(0xfb)](){const _0x3339db=_0x5442c3,_0x227451=this[_0x3339db(0xd4)][_0x3339db(0xf8)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x3339db(0xcd)](this[_0x3339db(0xf7)],this[_0x3339db(0x131)],this[_0x3339db(0x11b)]);if(!_0x227451)return[];if(!(0x0,_univerjs_pro_engine_shape[_0x3339db(0xd0)])(_0x227451[_0x3339db(0x100)]()))return[];const _0x3768f3=this['_injector'][_0x3339db(0xf8)](_univerjs_drawing['IDrawingManagerService'])[_0x3339db(0x13a)]({'unitId':this[_0x3339db(0xf7)],'subUnitId':this[_0x3339db(0x131)],'drawingId':this[_0x3339db(0x11b)]});if(!(_0x3768f3===null||_0x3768f3===void 0x0?void 0x0:_0x3768f3[_0x3339db(0x11e)]))return[];const {width:width=0x0,height:height=0x0}=_0x3768f3[_0x3339db(0x11e)];return _0x227451[_0x3339db(0xae)]({'width':width,'height':height}),_0x227451[_0x3339db(0xfb)]();}[_0x5442c3(0x121)](){const _0x355ce9=_0x5442c3;var _0x48a617;const _0x2da111=this[_0x355ce9(0xd4)][_0x355ce9(0xf8)](_univerjs_pro_sheets_shape[_0x355ce9(0xcc)])[_0x355ce9(0xcd)](this[_0x355ce9(0xf7)],this[_0x355ce9(0x131)],this[_0x355ce9(0x11b)]);if(!_0x2da111)return null;return(_0x48a617=_0x2da111['getStartConnectInfo']())!==null&&_0x48a617!==void 0x0?_0x48a617:null;}[_0x5442c3(0x107)](){const _0x54a13f=_0x5442c3;var _0x58ec3b;const _0x127668=this[_0x54a13f(0xd4)][_0x54a13f(0xf8)](_univerjs_pro_sheets_shape[_0x54a13f(0xcc)])[_0x54a13f(0xcd)](this['unitId'],this[_0x54a13f(0x131)],this['drawId']);if(!_0x127668)return null;return(_0x58ec3b=_0x127668['getEndConnectInfo']())!==null&&_0x58ec3b!==void 0x0?_0x58ec3b:null;}['build'](){const _0x4fd5fc=_0x5442c3;var _0x585427,_0x23184c;if(!this[_0x4fd5fc(0x13b)])throw new Error(_0x4fd5fc(0xf3));if(this['x']===0x0||this['y']===0x0){const _0x3c27a7=this['_injector'][_0x4fd5fc(0xf8)](_univerjs_sheets[_0x4fd5fc(0x114)])[_0x4fd5fc(0x13e)](this['unitId'],this[_0x4fd5fc(0x131)]);if(!_0x3c27a7)throw new Error('Skeleton\x20for\x20unitId\x20'+this['unitId']+_0x4fd5fc(0xb7)+this['subUnitId']+_0x4fd5fc(0xdd));const {transform:_0x727bbc}=(0x0,_univerjs_sheets[_0x4fd5fc(0xba)])(this['unitId'],this[_0x4fd5fc(0x131)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x3c27a7);this['x']=this['x']>0x0?this['x']:_0x727bbc['left'],this['y']=this['y']>0x0?this['y']:_0x727bbc['top'];}return this[_0x4fd5fc(0x117)]=(_0x585427=this['width'])!==null&&_0x585427!==void 0x0?_0x585427:_univerjs_pro_sheets_shape[_0x4fd5fc(0xa8)],this[_0x4fd5fc(0x11d)]=(_0x23184c=this[_0x4fd5fc(0x11d)])!==null&&_0x23184c!==void 0x0?_0x23184c:_univerjs_pro_sheets_shape[_0x4fd5fc(0x125)],{'unitId':this[_0x4fd5fc(0xf7)],'subUnitId':this[_0x4fd5fc(0x131)],'shapeId':this['drawId'],'shapeType':this['shapeType'],'shapeData':Object[_0x4fd5fc(0xc4)](this[_0x4fd5fc(0x13f)])['length']>0x0?this[_0x4fd5fc(0x13f)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x4fd5fc(0x117)],'height':this[_0x4fd5fc(0x11d)]};}['getShapeId'](){return this['drawId'];}[_0x5442c3(0x100)](){const _0x1a2ef4=_0x5442c3;return this[_0x1a2ef4(0x13b)];}['getShapeData'](){return this['shapeData'];}[_0x5442c3(0x103)](){return{'x':this['x'],'y':this['y']};}[_0x5442c3(0x108)](){const _0xe5d32e=_0x5442c3;return{'width':this[_0xe5d32e(0x117)],'height':this[_0xe5d32e(0x11d)]};}},FConnectorShape=class extends FShape{constructor(_0x1f757c,_0x4a3531,_0x44c2ff,_0x17b105){const _0x2cc282=_0x5442c3;super(_0x1f757c,_0x4a3531,_0x44c2ff,_0x17b105),_defineProperty(this,_0x2cc282(0x13f),{});}[_0x5442c3(0x118)](_0x5947aa){const _0x48f336=_0x5442c3;if(!(0x0,_univerjs_pro_engine_shape[_0x48f336(0xd0)])(_0x5947aa))throw new Error(_0x48f336(0x113)+_0x5947aa+_0x48f336(0x12d));return super[_0x48f336(0x118)](_0x5947aa),this;}['setStartArrowType'](_0x5e8245){const _0x50a7c8=_0x5442c3;var _0x5763ad,_0x2d19e8;if(!((_0x5763ad=this[_0x50a7c8(0x13f)])===null||_0x5763ad===void 0x0?void 0x0:_0x5763ad['ln']))this[_0x50a7c8(0x13f)]['ln']={};if(!((_0x2d19e8=this[_0x50a7c8(0x13f)])===null||_0x2d19e8===void 0x0||(_0x2d19e8=_0x2d19e8['ln'])===null||_0x2d19e8===void 0x0?void 0x0:_0x2d19e8['startArrow']))this[_0x50a7c8(0x13f)]['ln'][_0x50a7c8(0xad)]={};return this[_0x50a7c8(0x13f)]['ln'][_0x50a7c8(0xad)]['type']=_0x5e8245,this;}[_0x5442c3(0xe4)](_0x34ceb2){const _0x1963b2=_0x5442c3;var _0x1f29dd,_0x3052bf;if(!((_0x1f29dd=this[_0x1963b2(0x13f)])===null||_0x1f29dd===void 0x0?void 0x0:_0x1f29dd['ln']))this['shapeData']['ln']={};if(!((_0x3052bf=this[_0x1963b2(0x13f)])===null||_0x3052bf===void 0x0||(_0x3052bf=_0x3052bf['ln'])===null||_0x3052bf===void 0x0?void 0x0:_0x3052bf['endArrow']))this['shapeData']['ln'][_0x1963b2(0x128)]={};return this[_0x1963b2(0x13f)]['ln'][_0x1963b2(0x128)][_0x1963b2(0xe8)]=_0x34ceb2,this;}[_0x5442c3(0x130)](_0x1cdf06){const _0x2a0551=_0x5442c3;var _0x240e1f,_0xdc5569;if(!((_0x240e1f=this['shapeData'])===null||_0x240e1f===void 0x0?void 0x0:_0x240e1f['ln']))this[_0x2a0551(0x13f)]['ln']={};if(!((_0xdc5569=this[_0x2a0551(0x13f)])===null||_0xdc5569===void 0x0||(_0xdc5569=_0xdc5569['ln'])===null||_0xdc5569===void 0x0?void 0x0:_0xdc5569['startArrow']))this[_0x2a0551(0x13f)]['ln'][_0x2a0551(0xad)]={};return this[_0x2a0551(0x13f)]['ln']['startArrow'][_0x2a0551(0xe2)]=_0x1cdf06,this;}[_0x5442c3(0xd7)](_0x4d0614){const _0x5ec4ec=_0x5442c3;var _0x3332e0,_0x117455;if(!((_0x3332e0=this[_0x5ec4ec(0x13f)])===null||_0x3332e0===void 0x0?void 0x0:_0x3332e0['ln']))this[_0x5ec4ec(0x13f)]['ln']={};if(!((_0x117455=this['shapeData'])===null||_0x117455===void 0x0||(_0x117455=_0x117455['ln'])===null||_0x117455===void 0x0?void 0x0:_0x117455[_0x5ec4ec(0x128)]))this[_0x5ec4ec(0x13f)]['ln'][_0x5ec4ec(0x128)]={};return this['shapeData']['ln']['endArrow'][_0x5ec4ec(0xe2)]=_0x4d0614,this;}[_0x5442c3(0xef)](){const _0x16c4bd=_0x5442c3;return super[_0x16c4bd(0xef)]();}[_0x5442c3(0x107)](){const _0x5b856a=_0x5442c3;var _0x488799;return((_0x488799=this[_0x5b856a(0x13f)])===null||_0x488799===void 0x0||(_0x488799=_0x488799[_0x5b856a(0xc8)])===null||_0x488799===void 0x0?void 0x0:_0x488799['to'])||null;}[_0x5442c3(0x121)](){const _0x2469ba=_0x5442c3;var _0x4b31e7;return((_0x4b31e7=this[_0x2469ba(0x13f)])===null||_0x4b31e7===void 0x0||(_0x4b31e7=_0x4b31e7['relation'])===null||_0x4b31e7===void 0x0?void 0x0:_0x4b31e7[_0x2469ba(0xb1)])||null;}};function computeConnectionPointInfo(_0x292534,_0x21effd,_0x793618,_0x36bf46,_0x5c0fe0,_0x2f09db){const _0x26c442=_0x5442c3,_0x1e48f8=_0x5c0fe0[_0x26c442(0xcd)](_0x292534,_0x21effd,_0x793618);if(!_0x1e48f8)return null;const _0x816967=_0x2f09db[_0x26c442(0x13a)]({'unitId':_0x292534,'subUnitId':_0x21effd,'drawingId':_0x793618});if(!(_0x816967===null||_0x816967===void 0x0?void 0x0:_0x816967[_0x26c442(0x11e)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x18c731}=_0x816967[_0x26c442(0x11e)];_0x1e48f8['updateContext']({'width':width,'height':height});const _0x46c3da=_0x1e48f8[_0x26c442(0xf6)]()[_0x26c442(0xb6)](_0x3f2646=>_0x3f2646[_0x26c442(0x12e)]===_0x36bf46);if(!_0x46c3da)return null;let _0x3bf018=flipX?width-_0x46c3da['x']:_0x46c3da['x'],_0x5ad37d=flipY?height-_0x46c3da['y']:_0x46c3da['y'];if(_0x18c731&&_0x18c731!==0x0){const _0x1f7bd3=_0x18c731*Math['PI']/0xb4,_0x641cc8=Math[_0x26c442(0xfc)](_0x1f7bd3),_0x521518=Math[_0x26c442(0x139)](_0x1f7bd3),_0x10ab57=width/0x2,_0xdaa01f=height/0x2,_0xb5b163=_0x3bf018-_0x10ab57,_0xec9f90=_0x5ad37d-_0xdaa01f;_0x3bf018=_0x10ab57+_0xb5b163*_0x641cc8-_0xec9f90*_0x521518,_0x5ad37d=_0xdaa01f+_0xb5b163*_0x521518+_0xec9f90*_0x641cc8;}_0x3bf018+=left,_0x5ad37d+=top;let _0x2473b6=_0x46c3da[_0x26c442(0xbf)]/0xea60;if(flipX)_0x2473b6=0xb4-_0x2473b6;if(flipY)_0x2473b6=-_0x2473b6;_0x2473b6+=_0x18c731||0x0,_0x2473b6=(_0x2473b6%0x168+0x168)%0x168;const _0x559801=(0x0,_univerjs_pro_engine_shape[_0x26c442(0x12c)])({'left':left,'top':top,'width':width,'height':height},_0x18c731||0x0);return{'point':{'x':_0x3bf018,'y':_0x5ad37d},'angle':_0x2473b6,'bounds':_0x559801};}function calculateFreeEndpointAngle(_0x29648d,_0x543df5){const _0xcb9ee9=_0x5442c3,_0x59b6b7=_0x543df5['x']-_0x29648d['x'],_0x57f8d5=_0x543df5['y']-_0x29648d['y'];if(Math[_0xcb9ee9(0xec)](_0x59b6b7)>=Math[_0xcb9ee9(0xec)](_0x57f8d5))return _0x59b6b7>=0x0?0xb4:0x0;return _0x57f8d5>=0x0?0x10e:0x5a;}function _0x1248(_0x11ea8b,_0x4e7ba0){_0x11ea8b=_0x11ea8b-0xa5;const _0x241b51=_0x241b();let _0x124804=_0x241b51[_0x11ea8b];return _0x124804;}function computeFreeEndpointInfo(_0x314cb1,_0x33f93f,_0xbb9d4e,_0x40c9ec,_0x1499f3,_0x3ba23b,_0x15dbd0){const _0x1d078d=_0x5442c3,_0x4a7f55=_0x3ba23b['getShapeModel'](_0x314cb1,_0x33f93f,_0xbb9d4e);if(!_0x4a7f55)return null;const _0x32bbaa=_0x15dbd0[_0x1d078d(0x13a)]({'unitId':_0x314cb1,'subUnitId':_0x33f93f,'drawingId':_0xbb9d4e});if(!(_0x32bbaa===null||_0x32bbaa===void 0x0?void 0x0:_0x32bbaa[_0x1d078d(0x11e)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x32bbaa[_0x1d078d(0x11e)];_0x4a7f55[_0x1d078d(0xae)]({'width':width,'height':height});const _0x5a02dc=_0x4a7f55[_0x1d078d(0xfb)]();if(_0x5a02dc[_0x1d078d(0xac)]<0x2)return null;const _0x50ee95=_0x40c9ec?_0x5a02dc[0x0]:_0x5a02dc[_0x5a02dc[_0x1d078d(0xac)]-0x1],_0x3eba1e=new _univerjs_pro_engine_shape[(_0x1d078d(0x133))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY})[_0x1d078d(0x104)](_0x50ee95);return{'point':_0x3eba1e,'angle':calculateFreeEndpointAngle(_0x1499f3[_0x1d078d(0xc6)],_0x3eba1e),'bounds':{'left':_0x3eba1e['x'],'top':_0x3eba1e['y'],'width':0x0,'height':0x0}};}var FWorksheetShapeMixin=class extends _univerjs_sheets_facade[_0x5442c3(0x134)]{async[_0x5442c3(0xa9)](_0x1b3ba1){const _0x28efb8=_0x5442c3,{unitId:_0x59e587,subUnitId:_0x3d2410,shapeId:_0x4e41ab,shapeType:_0x2b6980,shapeData:_0xbd1b35,x:_0x4e896d,y:_0x399f47,width:_0x1dd19e,height:_0x492657}=_0x1b3ba1;return this[_0x28efb8(0xfe)][_0x28efb8(0xbd)](_univerjs_pro_sheets_shape['InsertShapeCommand']['id'],{'unitId':_0x59e587,'subUnitId':_0x3d2410,'shapeId':_0x4e41ab,'shapeType':_0x2b6980,'shapeData':_0xbd1b35,'position':{'x':_0x4e896d,'y':_0x399f47},'width':_0x1dd19e,'height':_0x492657});}async['updateShape'](_0x220534){const _0x2b3c5d=_0x5442c3,{unitId:_0x5df1d3,subUnitId:_0x2dbb2c,shapeId:_0x3d9bae,shapeType:_0x15eb6e,shapeData:_0x11f358,x:_0x31f62a,y:_0x37f7db,width:_0x3f960c,height:_0x22b3cd}=_0x220534;return this[_0x2b3c5d(0xfe)]['executeCommand'](_univerjs_pro_sheets_shape[_0x2b3c5d(0x101)]['id'],{'unitId':_0x5df1d3,'subUnitId':_0x2dbb2c,'shapeId':_0x3d9bae,'shapeType':_0x15eb6e,'shapeData':_0x11f358,'position':{'x':_0x31f62a,'y':_0x37f7db},'width':_0x3f960c,'height':_0x22b3cd});}[_0x5442c3(0x126)](_0x125650){const _0x1ba368=_0x5442c3,_0x589ed6=this['getWorkbook']()[_0x1ba368(0xaa)](),_0x3328ba=this[_0x1ba368(0xd3)]();if(_0x125650){const _0x4c97ec=new FShape(_0x589ed6,_0x3328ba,_0x125650[_0x1ba368(0x11b)],this[_0x1ba368(0xd4)]);return this['_preloadShapeProperties'](_0x4c97ec,_0x589ed6,_0x3328ba,_0x125650[_0x1ba368(0x11b)]),_0x4c97ec;}return new FShape(_0x589ed6,_0x3328ba,(0x0,_univerjs_core[_0x1ba368(0xbb)])(),this[_0x1ba368(0xd4)]);}[_0x5442c3(0x127)](_0x280a91){const _0x14b906=_0x5442c3,_0x15babb=this[_0x14b906(0x10c)]()[_0x14b906(0xaa)](),_0x5bcce9=this['getSheetId']();if(_0x280a91){const _0x4f3363=new FConnectorShape(_0x15babb,_0x5bcce9,_0x280a91[_0x14b906(0x11b)],this[_0x14b906(0xd4)]);return this[_0x14b906(0xe3)](_0x4f3363,_0x15babb,_0x5bcce9,_0x280a91[_0x14b906(0x11b)]),_0x4f3363;}return new FConnectorShape(_0x15babb,_0x5bcce9,(0x0,_univerjs_core[_0x14b906(0xbb)])(),this[_0x14b906(0xd4)]);}['getShapes'](){const _0x1aa2cf=_0x5442c3,_0x428dc9=this[_0x1aa2cf(0xd4)][_0x1aa2cf(0xf8)](_univerjs_sheets_drawing[_0x1aa2cf(0xd5)]),_0x247e4a=this[_0x1aa2cf(0x10c)]()[_0x1aa2cf(0xaa)](),_0x1d760c=this[_0x1aa2cf(0xd3)](),_0xc60a2b=_0x428dc9['getDrawingData'](_0x247e4a,_0x1d760c);if(!_0xc60a2b)return[];const _0x498a91=[];for(const [_0x5cdbdc,_0x539c2c]of Object['entries'](_0xc60a2b))if(_0x539c2c&&_0x539c2c[_0x1aa2cf(0x111)]===_univerjs_core[_0x1aa2cf(0xfa)][_0x1aa2cf(0xfd)]){const _0x3a9607=new FShape(_0x247e4a,_0x1d760c,_0x5cdbdc,this[_0x1aa2cf(0xd4)]);this[_0x1aa2cf(0xe3)](_0x3a9607,_0x247e4a,_0x1d760c,_0x5cdbdc),_0x498a91[_0x1aa2cf(0x13d)](_0x3a9607);}return _0x498a91;}[_0x5442c3(0x10d)](_0x4245e7){const _0x267aa9=_0x5442c3,{unitId:_0x256d26,subUnitId:_0x4e5937,drawId:_0x4aff82}=_0x4245e7;return this[_0x267aa9(0xfe)][_0x267aa9(0xbd)](_univerjs_sheets_drawing[_0x267aa9(0xb4)]['id'],{'unitId':_0x256d26,'drawings':[{'unitId':_0x256d26,'subUnitId':_0x4e5937,'drawingId':_0x4aff82,'drawingType':_univerjs_core['DrawingTypeEnum'][_0x267aa9(0xfd)]}]});}async[_0x5442c3(0xa6)](_0x274dea){const _0x2cbdca=_0x5442c3,{connector:_0x1aabcd,startTarget:_0x51fd0d,endTarget:_0x4c6a55}=_0x274dea;if(!_0x51fd0d&&!_0x4c6a55)return![];const _0x35a219=this[_0x2cbdca(0x10c)]()[_0x2cbdca(0xaa)](),_0x325724=this[_0x2cbdca(0xd3)](),_0x5d7836=this[_0x2cbdca(0xd4)][_0x2cbdca(0xf8)](_univerjs_pro_sheets_shape[_0x2cbdca(0xcc)]),_0x563bba=this['_injector'][_0x2cbdca(0xf8)](_univerjs_drawing[_0x2cbdca(0xcb)]),_0x1f42a6=_0x5d7836[_0x2cbdca(0xcd)](_0x35a219,_0x325724,_0x1aabcd[_0x2cbdca(0x11b)]);if(!_0x1f42a6)return![];const _0x6dd330=_0x1f42a6['getShapeType'](),_0xd374d5=_0x1f42a6[_0x2cbdca(0x10e)](),_0x4c23a2={};for(const _0x4038ab of _0x1f42a6[_0x2cbdca(0x135)]()){const _0x20220a=_0x1f42a6[_0x2cbdca(0xbc)](_0x4038ab);if(_0x20220a!==void 0x0)_0x4c23a2[_0x4038ab]=_0x20220a;}const {startInfo:_0x271fd0,endInfo:_0x2df382}=this[_0x2cbdca(0x142)](_0x35a219,_0x325724,_0x1aabcd,_0x1f42a6,_0x51fd0d,_0x4c6a55,_0x5d7836,_0x563bba,_0xd374d5);if(!_0x271fd0||!_0x2df382)return![];const _0x528d32=(0x0,_univerjs_pro_engine_shape[_0x2cbdca(0xc7)])((0x0,_univerjs_pro_engine_shape[_0x2cbdca(0xc9)])(_0x271fd0,_0x2df382,_0x6dd330),_0x6dd330),_0xd329d0={};if(_0x51fd0d)_0xd329d0[_0x2cbdca(0xb1)]={'shapeId':_0x51fd0d[_0x2cbdca(0x10b)]['drawId'],'cxnIndex':_0x51fd0d[_0x2cbdca(0x13c)]};else{if(_0xd374d5===null||_0xd374d5===void 0x0?void 0x0:_0xd374d5[_0x2cbdca(0xb1)])_0xd329d0[_0x2cbdca(0xb1)]=_0xd374d5[_0x2cbdca(0xb1)];}if(_0x4c6a55)_0xd329d0['to']={'shapeId':_0x4c6a55[_0x2cbdca(0x10b)]['drawId'],'cxnIndex':_0x4c6a55[_0x2cbdca(0x13c)]};else{if(_0xd374d5===null||_0xd374d5===void 0x0?void 0x0:_0xd374d5['to'])_0xd329d0['to']=_0xd374d5['to'];}return this['_commandService'][_0x2cbdca(0xbd)](_univerjs_pro_sheets_shape[_0x2cbdca(0xf9)]['id'],{'unitId':_0x35a219,'subUnitId':_0x325724,'connectorShapeId':_0x1aabcd[_0x2cbdca(0x11b)],'width':_0x528d32[_0x2cbdca(0x115)][_0x2cbdca(0x117)],'height':_0x528d32['worldRect'][_0x2cbdca(0x11d)],'left':_0x528d32[_0x2cbdca(0x115)][_0x2cbdca(0x123)],'top':_0x528d32[_0x2cbdca(0x115)][_0x2cbdca(0xeb)],'flipX':_0x528d32[_0x2cbdca(0x115)][_0x2cbdca(0x10f)]||![],'flipY':_0x528d32[_0x2cbdca(0x115)]['flipY']||![],'oldAdjustValues':_0x4c23a2,'newAdjustValues':_0x528d32[_0x2cbdca(0x12b)],'newLineType':_0x528d32[_0x2cbdca(0x110)],'oldLineType':_0x6dd330,'rotation':_0x528d32[_0x2cbdca(0x11f)],'oldRelation':_0xd374d5,'newRelation':_0xd329d0});}[_0x5442c3(0xe3)](_0x242ea8,_0x123d02,_0x33cbc7,_0x5be4d5){const _0x122a68=_0x5442c3,_0x1a75db=this[_0x122a68(0xd4)][_0x122a68(0xf8)](_univerjs_drawing[_0x122a68(0xcb)])[_0x122a68(0x13a)]({'unitId':_0x123d02,'subUnitId':_0x33cbc7,'drawingId':_0x5be4d5});if(_0x1a75db===null||_0x1a75db===void 0x0?void 0x0:_0x1a75db[_0x122a68(0x11e)]){var _0x586bc9,_0x4d4bd5,_0x470fcb,_0x317cdd;_0x242ea8['x']=(_0x586bc9=_0x1a75db[_0x122a68(0x11e)][_0x122a68(0x123)])!==null&&_0x586bc9!==void 0x0?_0x586bc9:0x0,_0x242ea8['y']=(_0x4d4bd5=_0x1a75db[_0x122a68(0x11e)][_0x122a68(0xeb)])!==null&&_0x4d4bd5!==void 0x0?_0x4d4bd5:0x0,_0x242ea8[_0x122a68(0x117)]=(_0x470fcb=_0x1a75db[_0x122a68(0x11e)][_0x122a68(0x117)])!==null&&_0x470fcb!==void 0x0?_0x470fcb:_0x242ea8[_0x122a68(0x117)],_0x242ea8[_0x122a68(0x11d)]=(_0x317cdd=_0x1a75db['transform'][_0x122a68(0x11d)])!==null&&_0x317cdd!==void 0x0?_0x317cdd:_0x242ea8['height'];}const _0x561c89=this['_injector']['get'](_univerjs_pro_sheets_shape[_0x122a68(0xcc)])['getShapeModel'](_0x123d02,_0x33cbc7,_0x5be4d5);if(_0x561c89){_0x242ea8['shapeType']=_0x561c89['getShapeType']();const _0x4f46b5=_0x561c89[_0x122a68(0x124)]();if(_0x4f46b5)_0x242ea8[_0x122a68(0x13f)]=JSON[_0x122a68(0x112)](JSON['stringify'](_0x4f46b5));}}[_0x5442c3(0x142)](_0x291050,_0x5dcb77,_0x2b4dc0,_0x8aafb2,_0x867326,_0x11b0f0,_0x326d06,_0x2008ca,_0x37b4ea){const _0x537f64=_0x5442c3;let _0xe514b8=null,_0x5c6303=null;if(_0x867326)_0xe514b8=computeConnectionPointInfo(_0x291050,_0x5dcb77,_0x867326['shape'][_0x537f64(0x11b)],_0x867326['connectionSiteIndex'],_0x326d06,_0x2008ca);if(_0x11b0f0)_0x5c6303=computeConnectionPointInfo(_0x291050,_0x5dcb77,_0x11b0f0[_0x537f64(0x10b)][_0x537f64(0x11b)],_0x11b0f0[_0x537f64(0x13c)],_0x326d06,_0x2008ca);if(!_0xe514b8)_0xe514b8=this[_0x537f64(0xb5)](_0x291050,_0x5dcb77,_0x2b4dc0[_0x537f64(0x11b)],!![],_0x5c6303,_0x37b4ea===null||_0x37b4ea===void 0x0?void 0x0:_0x37b4ea[_0x537f64(0xb1)],_0x326d06,_0x2008ca);if(!_0x5c6303)_0x5c6303=this['_resolveExistingOrFreeEndpoint'](_0x291050,_0x5dcb77,_0x2b4dc0[_0x537f64(0x11b)],![],_0xe514b8,_0x37b4ea===null||_0x37b4ea===void 0x0?void 0x0:_0x37b4ea['to'],_0x326d06,_0x2008ca);return{'startInfo':_0xe514b8,'endInfo':_0x5c6303};}['_resolveExistingOrFreeEndpoint'](_0x2a896f,_0x38e0f9,_0x4186ed,_0x1435de,_0x38626c,_0x4d7835,_0x5b4a78,_0x3aea29){const _0x443fd6=_0x5442c3;if(_0x4d7835){const _0x3ec722=computeConnectionPointInfo(_0x2a896f,_0x38e0f9,_0x4d7835[_0x443fd6(0xbe)],_0x4d7835[_0x443fd6(0xea)],_0x5b4a78,_0x3aea29);if(_0x3ec722)return _0x3ec722;}if(!_0x38626c)return null;return computeFreeEndpointInfo(_0x2a896f,_0x38e0f9,_0x4186ed,_0x1435de,_0x38626c,_0x5b4a78,_0x3aea29);}};_univerjs_sheets_facade[_0x5442c3(0x134)][_0x5442c3(0xd1)](FWorksheetShapeMixin),exports[_0x5442c3(0xb3)]=FConnectorShape,exports['FShape']=FShape;
1
+ const _0x4cc3cb=_0x2708;function _0x4e6c(){const _0x5e4399=['endArrow','getWorkbook','10bnoZCo','getShapes','index','worldRect','unitId','DrawingTypeEnum','GradientFill','isConnectorShape','setStrokeLineDashType','connectionSiteIndex','getShapeRelation','getShapeModel','left','getConnectorLinePoints','setStrokeLineJoinType','localToWorld','object','fillType','RemoveSheetDrawingCommand','setStrokeWidth','prototype','getSize','sin','string','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','toStringTag','DEFAULT_SHAPE_WIDTH','lineJoinType','length','newShape','fill','DRAWING_SHAPE','lineStrokeType','_injector','top','routeConnectorLineShape','extend','\x20and\x20subUnitId\x20','ShapeLineTypeEnum','adjustValues','getShapeId','ShapeFillEnum','NoFill','getUnitId','drawingType','transform','setStartArrowType','width','capType','setShapeType','47376307GueIvs','_preloadShapeProperties','symbol','ISheetDrawingService','function','entries','flipY','build','parse','insertShape','ensureSkeleton','getAdjustPoints','connectShapes','executeCommand','setHeight','getShapeType','setNoneFill','call','9395802mQvAMn','815BpGXNH','setEndArrowSize','shape','SheetsShapeService','FEnum','default','from','shapeId','shapeData','getAdjustNames','stroke','_resolveExistingOrFreeEndpoint','\x20not\x20found','InsertShapeCommand','Skeleton\x20for\x20unitId\x20','508655RqaOLP','26328VjEvPA','rotation','updateContext','getConnectionSites','SetShapeDrawingDataCommand','abs','IDrawingManagerService','setStrokeLineType','setStartArrowSize','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setEndArrowType','getAdjustValueByName','FShape','ShapeLineDashEnum','setStrokeColor','getSheetId','DEFAULT_SHAPE_HEIGHT','startArrow',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','height','gradientStops','setStrokeOpacity','defineProperty','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','opacity','328332yNhLil','gradientAngle','relation','type','color','288078sczFAD','ShapeArrowSizeEnum','getConnectionSiteList','ShapeTypeEnum','FConnectorShape','getDrawingByParam','convertPositionCellToSheetOverGrid','39rHvLgd','isLineShape','ShapeArrowTypeEnum','shapeType','setWidth','SheetSkeletonService','removeShape','computeConnectorRouteLayout','subUnitId','getStartConnectInfo','flipX','_commandService','constructor','1737944ayEIEX','ang','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','ConnectorCoordinateTransform','getShapeData','ShapeLineJoinEnum','_resolveEndpoints','size','drawId','SolidFill','dashType','stringify','getEndConnectInfo','getDrawingPoints','get','lineType','ShapeGradientTypeEnum','136zKlEwH'];_0x4e6c=function(){return _0x5e4399;};return _0x4e6c();}(function(_0x34230a,_0x425294){const _0x187d98=_0x2708,_0x30ac77=_0x34230a();while(!![]){try{const _0xaca435=parseInt(_0x187d98(0x17e))/0x1+parseInt(_0x187d98(0x116))/0x2+parseInt(_0x187d98(0x1a4))/0x3*(parseInt(_0x187d98(0x198))/0x4)+-parseInt(_0x187d98(0x16f))/0x5*(-parseInt(_0x187d98(0x17f))/0x6)+-parseInt(_0x187d98(0x19d))/0x7*(-parseInt(_0x187d98(0x127))/0x8)+parseInt(_0x187d98(0x16e))/0x9+parseInt(_0x187d98(0x12a))/0xa*(-parseInt(_0x187d98(0x15c))/0xb);if(_0xaca435===_0x425294)break;else _0x30ac77['push'](_0x30ac77['shift']());}catch(_0x290deb){_0x30ac77['push'](_0x30ac77['shift']());}}}(_0x4e6c,0x91a81),Object[_0x4cc3cb(0x195)](exports,Symbol[_0x4cc3cb(0x143)],{'value':'Module'}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core/facade`),n=require(`@univerjs-pro/sheets-shape`),r=require(`@univerjs/core`),i=require(`@univerjs/drawing`),a=require(`@univerjs/sheets`),o=require(`@univerjs/sheets-drawing`),s=require(`@univerjs/sheets/facade`);var c=class extends t[_0x4cc3cb(0x173)]{get[_0x4cc3cb(0x1a0)](){const _0x537415=_0x4cc3cb;return e[_0x537415(0x1a0)];}get[_0x4cc3cb(0x153)](){return e['ShapeFillEnum'];}get['ShapeGradientTypeEnum'](){const _0x2e2fd3=_0x4cc3cb;return e[_0x2e2fd3(0x126)];}get['ShapeLineTypeEnum'](){const _0x485657=_0x4cc3cb;return e[_0x485657(0x150)];}get['ShapeLineDashEnum'](){const _0x2545a3=_0x4cc3cb;return e[_0x2545a3(0x18c)];}get['ShapeLineCapEnum'](){return e['ShapeLineCapEnum'];}get[_0x4cc3cb(0x11b)](){const _0x3befaf=_0x4cc3cb;return e[_0x3befaf(0x11b)];}get['ShapeArrowTypeEnum'](){const _0xfe60b6=_0x4cc3cb;return e[_0xfe60b6(0x1a6)];}get[_0x4cc3cb(0x19e)](){return e['ShapeArrowSizeEnum'];}};t[_0x4cc3cb(0x173)][_0x4cc3cb(0x14e)](c);function l(_0x1e205c){'@babel/helpers - typeof';const _0x355e19=_0x4cc3cb;return l=typeof Symbol==_0x355e19(0x160)&&typeof Symbol['iterator']==_0x355e19(0x15e)?function(_0x32b38c){return typeof _0x32b38c;}:function(_0x244b1a){const _0x4ff7a3=_0x355e19;return _0x244b1a&&typeof Symbol=='function'&&_0x244b1a[_0x4ff7a3(0x115)]===Symbol&&_0x244b1a!==Symbol[_0x4ff7a3(0x13e)]?'symbol':typeof _0x244b1a;},l(_0x1e205c);}function u(_0x23ca66,_0x5c3031){const _0x511449=_0x4cc3cb;if(l(_0x23ca66)!=_0x511449(0x13a)||!_0x23ca66)return _0x23ca66;var _0x1ad1f6=_0x23ca66[Symbol['toPrimitive']];if(_0x1ad1f6!==void 0x0){var _0x3f9ec8=_0x1ad1f6[_0x511449(0x16d)](_0x23ca66,_0x5c3031||_0x511449(0x174));if(l(_0x3f9ec8)!='object')return _0x3f9ec8;throw TypeError(_0x511449(0x188));}return(_0x5c3031===_0x511449(0x141)?String:Number)(_0x23ca66);}function d(_0xa0522c){const _0x4c95c0=_0x4cc3cb;var _0x373041=u(_0xa0522c,_0x4c95c0(0x141));return l(_0x373041)==_0x4c95c0(0x15e)?_0x373041:_0x373041+'';}function f(_0x82cf0b,_0x1b404e,_0x2b8532){const _0x27fdfb=_0x4cc3cb;return(_0x1b404e=d(_0x1b404e))in _0x82cf0b?Object[_0x27fdfb(0x195)](_0x82cf0b,_0x1b404e,{'value':_0x2b8532,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x82cf0b[_0x1b404e]=_0x2b8532,_0x82cf0b;}function _0x2708(_0x54947e,_0x2ef79e){_0x54947e=_0x54947e-0x10d;const _0x4e6ce6=_0x4e6c();let _0x2708d0=_0x4e6ce6[_0x54947e];return _0x2708d0;}var p=class{constructor(_0x587c99,_0x32d07f,_0x3b669d,_0x2f92b3){const _0x30f159=_0x4cc3cb;f(this,'unitId',void 0x0),f(this,_0x30f159(0x111),void 0x0),f(this,'drawId',void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x30f159(0x159),n[_0x30f159(0x144)]),f(this,'height',n['DEFAULT_SHAPE_HEIGHT']),f(this,_0x30f159(0x1a7),void 0x0),f(this,_0x30f159(0x177),{}),f(this,_0x30f159(0x14b),void 0x0),this[_0x30f159(0x12e)]=_0x587c99,this[_0x30f159(0x111)]=_0x32d07f,this[_0x30f159(0x11e)]=_0x3b669d||(0x0,r['generateRandomId'])(),this[_0x30f159(0x14b)]=_0x2f92b3;}['setPosition'](_0x395f42,_0x58b1a2,_0x3ecd5d,_0x3c2d05){const _0x115616=_0x4cc3cb;let _0x3e69dd=this[_0x115616(0x14b)][_0x115616(0x124)](a[_0x115616(0x10e)])[_0x115616(0x166)](this[_0x115616(0x12e)],this[_0x115616(0x111)]);if(!_0x3e69dd)throw Error(_0x115616(0x17d)+this['unitId']+'\x20and\x20subUnitId\x20'+this[_0x115616(0x111)]+'\x20not\x20found');let {transform:_0x5727fe}=(0x0,a[_0x115616(0x1a3)])(this[_0x115616(0x12e)],this['subUnitId'],{'row':_0x395f42,'column':_0x58b1a2,'rowOffset':_0x3ecd5d,'columnOffset':_0x3c2d05},0x1,0x1,_0x3e69dd);return this['x']=_0x5727fe[_0x115616(0x136)],this['y']=_0x5727fe['top'],this;}['setAbsolutePosition'](_0x153a33,_0x50274e){return this['x']=_0x153a33,this['y']=_0x50274e,this;}[_0x4cc3cb(0x15b)](_0xed79){const _0x14f659=_0x4cc3cb;return this[_0x14f659(0x1a7)]=_0xed79,this;}['setShapeSolidFill'](_0x51a252,_0x12a885){const _0x2212a3=_0x4cc3cb;return this[_0x2212a3(0x177)][_0x2212a3(0x148)]||(this['shapeData'][_0x2212a3(0x148)]={}),this[_0x2212a3(0x177)]['fill'][_0x2212a3(0x13b)]=e[_0x2212a3(0x153)][_0x2212a3(0x11f)],_0x51a252!==void 0x0&&(this[_0x2212a3(0x177)]['fill'][_0x2212a3(0x19c)]=_0x51a252),_0x12a885!==void 0x0&&(this[_0x2212a3(0x177)][_0x2212a3(0x148)][_0x2212a3(0x197)]=_0x12a885),this;}['setShapeGradientFill'](_0x4c0570,_0x4bd343,_0xdfd33a){const _0x117265=_0x4cc3cb;if(_0x4bd343===void 0x0||_0x4bd343[_0x117265(0x146)]===0x0)throw Error(_0x117265(0x196));return this['shapeData'][_0x117265(0x148)]||(this[_0x117265(0x177)][_0x117265(0x148)]={}),this[_0x117265(0x177)][_0x117265(0x148)][_0x117265(0x193)]=_0x4bd343,this['shapeData']['fill'][_0x117265(0x13b)]=e[_0x117265(0x153)][_0x117265(0x130)],this[_0x117265(0x177)]['fill']['gradientType']=_0x4c0570,_0xdfd33a!==void 0x0&&(this[_0x117265(0x177)]['fill'][_0x117265(0x199)]=_0xdfd33a),this;}[_0x4cc3cb(0x16c)](){const _0x2878fc=_0x4cc3cb;return this[_0x2878fc(0x177)][_0x2878fc(0x148)]={'fillType':e[_0x2878fc(0x153)][_0x2878fc(0x154)]},this;}[_0x4cc3cb(0x18d)](_0x11709b){const _0x234eb9=_0x4cc3cb;return this[_0x234eb9(0x177)]['stroke']||(this[_0x234eb9(0x177)]['stroke']={}),this['shapeData'][_0x234eb9(0x179)]['color']=_0x11709b,this;}[_0x4cc3cb(0x13d)](_0x570998){const _0x2fcd87=_0x4cc3cb;return this[_0x2fcd87(0x177)][_0x2fcd87(0x179)]||(this[_0x2fcd87(0x177)][_0x2fcd87(0x179)]={}),this[_0x2fcd87(0x177)]['stroke'][_0x2fcd87(0x159)]=_0x570998,this;}[_0x4cc3cb(0x132)](_0x48bab7){const _0x214484=_0x4cc3cb;return this['shapeData'][_0x214484(0x179)]||(this[_0x214484(0x177)][_0x214484(0x179)]={}),this[_0x214484(0x177)][_0x214484(0x179)][_0x214484(0x120)]=_0x48bab7,this;}[_0x4cc3cb(0x138)](_0x27c1c8){const _0x558221=_0x4cc3cb;return this['shapeData'][_0x558221(0x179)]||(this['shapeData'][_0x558221(0x179)]={}),this[_0x558221(0x177)][_0x558221(0x179)][_0x558221(0x145)]=_0x27c1c8,this;}['setStrokeLineCapType'](_0x4fcfc0){const _0x1f41a0=_0x4cc3cb;return this[_0x1f41a0(0x177)]['stroke']||(this['shapeData'][_0x1f41a0(0x179)]={}),this[_0x1f41a0(0x177)][_0x1f41a0(0x179)][_0x1f41a0(0x15a)]=_0x4fcfc0,this;}[_0x4cc3cb(0x194)](_0x3e9793){const _0x229865=_0x4cc3cb;return this[_0x229865(0x177)][_0x229865(0x179)]||(this['shapeData'][_0x229865(0x179)]={}),this['shapeData']['stroke'][_0x229865(0x197)]=_0x3e9793,this;}[_0x4cc3cb(0x186)](_0x186877){const _0x9ff437=_0x4cc3cb;return this[_0x9ff437(0x177)]['stroke']||(this[_0x9ff437(0x177)]['stroke']={}),this['shapeData'][_0x9ff437(0x179)][_0x9ff437(0x14a)]=_0x186877,this;}[_0x4cc3cb(0x10d)](_0x1d6649){const _0x20aa78=_0x4cc3cb;return this[_0x20aa78(0x159)]=_0x1d6649,this;}[_0x4cc3cb(0x16a)](_0x5c0d50){const _0x457f2e=_0x4cc3cb;return this[_0x457f2e(0x192)]=_0x5c0d50,this;}[_0x4cc3cb(0x1a5)](){const _0x5f09a3=_0x4cc3cb;let _0x14474f=this[_0x5f09a3(0x14b)][_0x5f09a3(0x124)](n['SheetsShapeService'])[_0x5f09a3(0x135)](this['unitId'],this[_0x5f09a3(0x111)],this[_0x5f09a3(0x11e)]);return _0x14474f?(0x0,e['isConnectorShape'])(_0x14474f[_0x5f09a3(0x16b)]()):this['shapeType']?(0x0,e[_0x5f09a3(0x131)])(this['shapeType']):!0x1;}[_0x4cc3cb(0x182)](){const _0x483032=_0x4cc3cb;let _0x33475f=this[_0x483032(0x14b)][_0x483032(0x124)](n['SheetsShapeService'])[_0x483032(0x135)](this[_0x483032(0x12e)],this[_0x483032(0x111)],this[_0x483032(0x11e)]);if(!_0x33475f)return[];let _0x3ca9b6=this[_0x483032(0x14b)][_0x483032(0x124)](i['IDrawingManagerService'])[_0x483032(0x1a2)]({'unitId':this['unitId'],'subUnitId':this[_0x483032(0x111)],'drawingId':this[_0x483032(0x11e)]});if(!(_0x3ca9b6!=null&&_0x3ca9b6[_0x483032(0x157)]))return[];let {width:_0x15dd1a=0x0,height:_0x4a00ed=0x0}=_0x3ca9b6[_0x483032(0x157)];return _0x33475f['updateContext']({'width':_0x15dd1a,'height':_0x4a00ed}),_0x33475f[_0x483032(0x19f)]();}[_0x4cc3cb(0x167)](){const _0xfcdf32=_0x4cc3cb;let _0x59ae34=this[_0xfcdf32(0x14b)][_0xfcdf32(0x124)](n['SheetsShapeService'])['getShapeModel'](this[_0xfcdf32(0x12e)],this[_0xfcdf32(0x111)],this[_0xfcdf32(0x11e)]);if(!_0x59ae34)return[];let _0x1364b2=this[_0xfcdf32(0x14b)][_0xfcdf32(0x124)](i['IDrawingManagerService'])['getDrawingByParam']({'unitId':this[_0xfcdf32(0x12e)],'subUnitId':this['subUnitId'],'drawingId':this[_0xfcdf32(0x11e)]});if(!(_0x1364b2!=null&&_0x1364b2[_0xfcdf32(0x157)]))return[];let {width:_0xd32afc=0x0,height:_0x2cc892=0x0}=_0x1364b2['transform'];return _0x59ae34['updateContext']({'width':_0xd32afc,'height':_0x2cc892}),_0x59ae34[_0xfcdf32(0x123)]();}[_0x4cc3cb(0x137)](){const _0x3eb50e=_0x4cc3cb;let _0x53ac9e=this[_0x3eb50e(0x14b)][_0x3eb50e(0x124)](n[_0x3eb50e(0x172)])['getShapeModel'](this[_0x3eb50e(0x12e)],this[_0x3eb50e(0x111)],this[_0x3eb50e(0x11e)]);if(!_0x53ac9e||!(0x0,e['isConnectorShape'])(_0x53ac9e[_0x3eb50e(0x16b)]()))return[];let _0x17a07f=this['_injector'][_0x3eb50e(0x124)](i['IDrawingManagerService'])[_0x3eb50e(0x1a2)]({'unitId':this[_0x3eb50e(0x12e)],'subUnitId':this[_0x3eb50e(0x111)],'drawingId':this[_0x3eb50e(0x11e)]});if(!(_0x17a07f!=null&&_0x17a07f[_0x3eb50e(0x157)]))return[];let {width:_0x4838fe=0x0,height:_0x1f588d=0x0}=_0x17a07f[_0x3eb50e(0x157)];return _0x53ac9e[_0x3eb50e(0x181)]({'width':_0x4838fe,'height':_0x1f588d}),_0x53ac9e[_0x3eb50e(0x137)]();}[_0x4cc3cb(0x112)](){const _0x2fb409=_0x4cc3cb;var _0x40807f;let _0x291e33=this[_0x2fb409(0x14b)][_0x2fb409(0x124)](n[_0x2fb409(0x172)])[_0x2fb409(0x135)](this[_0x2fb409(0x12e)],this[_0x2fb409(0x111)],this['drawId']);return _0x291e33?(_0x40807f=_0x291e33['getStartConnectInfo']())==null?null:_0x40807f:null;}[_0x4cc3cb(0x122)](){const _0x7a7a7d=_0x4cc3cb;var _0x3bed1e;let _0x11558a=this[_0x7a7a7d(0x14b)][_0x7a7a7d(0x124)](n[_0x7a7a7d(0x172)])[_0x7a7a7d(0x135)](this[_0x7a7a7d(0x12e)],this[_0x7a7a7d(0x111)],this[_0x7a7a7d(0x11e)]);return _0x11558a?(_0x3bed1e=_0x11558a[_0x7a7a7d(0x122)]())==null?null:_0x3bed1e:null;}[_0x4cc3cb(0x163)](){const _0x27f6b0=_0x4cc3cb;var _0x331570,_0x320dc5;if(!this['shapeType'])throw Error(_0x27f6b0(0x118));if(this['x']===0x0||this['y']===0x0){let _0x4a5cdc=this[_0x27f6b0(0x14b)][_0x27f6b0(0x124)](a[_0x27f6b0(0x10e)])[_0x27f6b0(0x166)](this[_0x27f6b0(0x12e)],this[_0x27f6b0(0x111)]);if(!_0x4a5cdc)throw Error(_0x27f6b0(0x17d)+this[_0x27f6b0(0x12e)]+_0x27f6b0(0x14f)+this[_0x27f6b0(0x111)]+_0x27f6b0(0x17b));let {transform:_0x56b22f}=(0x0,a['convertPositionCellToSheetOverGrid'])(this[_0x27f6b0(0x12e)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x4a5cdc);this['x']=this['x']>0x0?this['x']:_0x56b22f['left'],this['y']=this['y']>0x0?this['y']:_0x56b22f['top'];}return this[_0x27f6b0(0x159)]=(_0x331570=this[_0x27f6b0(0x159)])==null?n['DEFAULT_SHAPE_WIDTH']:_0x331570,this[_0x27f6b0(0x192)]=(_0x320dc5=this['height'])==null?n[_0x27f6b0(0x18f)]:_0x320dc5,{'unitId':this[_0x27f6b0(0x12e)],'subUnitId':this[_0x27f6b0(0x111)],'shapeId':this[_0x27f6b0(0x11e)],'shapeType':this[_0x27f6b0(0x1a7)],'shapeData':Object['keys'](this[_0x27f6b0(0x177)])[_0x27f6b0(0x146)]>0x0?this[_0x27f6b0(0x177)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x27f6b0(0x159)],'height':this[_0x27f6b0(0x192)]};}[_0x4cc3cb(0x152)](){const _0x195f33=_0x4cc3cb;return this[_0x195f33(0x11e)];}[_0x4cc3cb(0x16b)](){const _0x20c68e=_0x4cc3cb;return this[_0x20c68e(0x1a7)];}['getShapeData'](){const _0x559075=_0x4cc3cb;return this[_0x559075(0x177)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x4cc3cb(0x13f)](){const _0x34cbba=_0x4cc3cb;return{'width':this[_0x34cbba(0x159)],'height':this[_0x34cbba(0x192)]};}},m=class extends p{constructor(_0x33da35,_0x9714dd,_0x3c6fe0,_0x27ddb8){const _0x38c046=_0x4cc3cb;super(_0x33da35,_0x9714dd,_0x3c6fe0,_0x27ddb8),f(this,_0x38c046(0x177),{});}[_0x4cc3cb(0x15b)](_0x10f452){const _0x2f6220=_0x4cc3cb;if(!(0x0,e[_0x2f6220(0x131)])(_0x10f452))throw Error(_0x2f6220(0x142)+_0x10f452+_0x2f6220(0x191));return super[_0x2f6220(0x15b)](_0x10f452),this;}[_0x4cc3cb(0x158)](_0x263a3b){const _0x5452a7=_0x4cc3cb;var _0x2968b1,_0x27ab37;return(_0x2968b1=this[_0x5452a7(0x177)])!=null&&_0x2968b1['ln']||(this['shapeData']['ln']={}),!((_0x27ab37=this[_0x5452a7(0x177)])==null||(_0x27ab37=_0x27ab37['ln'])==null)&&_0x27ab37[_0x5452a7(0x190)]||(this[_0x5452a7(0x177)]['ln'][_0x5452a7(0x190)]={}),this[_0x5452a7(0x177)]['ln'][_0x5452a7(0x190)][_0x5452a7(0x19b)]=_0x263a3b,this;}[_0x4cc3cb(0x189)](_0x3cf9bf){const _0x5a6e99=_0x4cc3cb;var _0x343f44,_0x597367;return(_0x343f44=this[_0x5a6e99(0x177)])!=null&&_0x343f44['ln']||(this[_0x5a6e99(0x177)]['ln']={}),!((_0x597367=this[_0x5a6e99(0x177)])==null||(_0x597367=_0x597367['ln'])==null)&&_0x597367[_0x5a6e99(0x128)]||(this[_0x5a6e99(0x177)]['ln'][_0x5a6e99(0x128)]={}),this[_0x5a6e99(0x177)]['ln'][_0x5a6e99(0x128)]['type']=_0x3cf9bf,this;}[_0x4cc3cb(0x187)](_0x5b0ae3){const _0x2dc15a=_0x4cc3cb;var _0x391e5b,_0x3e6696;return(_0x391e5b=this['shapeData'])!=null&&_0x391e5b['ln']||(this[_0x2dc15a(0x177)]['ln']={}),!((_0x3e6696=this[_0x2dc15a(0x177)])==null||(_0x3e6696=_0x3e6696['ln'])==null)&&_0x3e6696[_0x2dc15a(0x190)]||(this[_0x2dc15a(0x177)]['ln']['startArrow']={}),this[_0x2dc15a(0x177)]['ln'][_0x2dc15a(0x190)][_0x2dc15a(0x11d)]=_0x5b0ae3,this;}[_0x4cc3cb(0x170)](_0x49409d){const _0x216931=_0x4cc3cb;var _0x1ce56c,_0x289f77;return(_0x1ce56c=this[_0x216931(0x177)])!=null&&_0x1ce56c['ln']||(this[_0x216931(0x177)]['ln']={}),!((_0x289f77=this[_0x216931(0x177)])==null||(_0x289f77=_0x289f77['ln'])==null)&&_0x289f77[_0x216931(0x128)]||(this['shapeData']['ln'][_0x216931(0x128)]={}),this[_0x216931(0x177)]['ln']['endArrow'][_0x216931(0x11d)]=_0x49409d,this;}['build'](){return super['build']();}[_0x4cc3cb(0x122)](){const _0x3978fa=_0x4cc3cb;var _0x2b91eb;return((_0x2b91eb=this[_0x3978fa(0x177)])==null||(_0x2b91eb=_0x2b91eb[_0x3978fa(0x19a)])==null?void 0x0:_0x2b91eb['to'])||null;}['getStartConnectInfo'](){const _0x1ff888=_0x4cc3cb;var _0x4344aa;return((_0x4344aa=this[_0x1ff888(0x177)])==null||(_0x4344aa=_0x4344aa[_0x1ff888(0x19a)])==null?void 0x0:_0x4344aa[_0x1ff888(0x175)])||null;}};function h(_0x1f793a,_0x1c3ef7,_0x283d39,_0x2a49af,_0x39b1e3,_0x25dc6b){const _0xf42f28=_0x4cc3cb;let _0x560aa5=_0x39b1e3[_0xf42f28(0x135)](_0x1f793a,_0x1c3ef7,_0x283d39);if(!_0x560aa5)return null;let _0x1a3e3c=_0x25dc6b['getDrawingByParam']({'unitId':_0x1f793a,'subUnitId':_0x1c3ef7,'drawingId':_0x283d39});if(!(_0x1a3e3c!=null&&_0x1a3e3c[_0xf42f28(0x157)]))return null;let {left:_0x44d841=0x0,top:_0x558f6b=0x0,width:_0x305e85=0x0,height:_0x8d74c0=0x0,flipX:_0x155772=!0x1,flipY:_0x3803aa=!0x1,angle:_0x586fe1}=_0x1a3e3c['transform'];_0x560aa5['updateContext']({'width':_0x305e85,'height':_0x8d74c0});let _0x1e89e4=_0x560aa5[_0xf42f28(0x19f)]()['find'](_0x4c5e58=>_0x4c5e58[_0xf42f28(0x12c)]===_0x2a49af);if(!_0x1e89e4)return null;let _0xec6ee0=_0x155772?_0x305e85-_0x1e89e4['x']:_0x1e89e4['x'],_0x1042cc=_0x3803aa?_0x8d74c0-_0x1e89e4['y']:_0x1e89e4['y'];if(_0x586fe1&&_0x586fe1!==0x0){let _0x416c60=_0x586fe1*Math['PI']/0xb4,_0x5cb920=Math['cos'](_0x416c60),_0x396fba=Math[_0xf42f28(0x140)](_0x416c60),_0x4d7c91=_0x305e85/0x2,_0x5f09a9=_0x8d74c0/0x2,_0x2d91d5=_0xec6ee0-_0x4d7c91,_0x534b88=_0x1042cc-_0x5f09a9;_0xec6ee0=_0x4d7c91+_0x2d91d5*_0x5cb920-_0x534b88*_0x396fba,_0x1042cc=_0x5f09a9+_0x2d91d5*_0x396fba+_0x534b88*_0x5cb920;}_0xec6ee0+=_0x44d841,_0x1042cc+=_0x558f6b;let _0x11634c=_0x1e89e4[_0xf42f28(0x117)]/0xea60;_0x155772&&(_0x11634c=0xb4-_0x11634c),_0x3803aa&&(_0x11634c=-_0x11634c),_0x11634c+=_0x586fe1||0x0,_0x11634c=(_0x11634c%0x168+0x168)%0x168;let _0x72353=(0x0,e['getBasicShapeRotateBound'])({'left':_0x44d841,'top':_0x558f6b,'width':_0x305e85,'height':_0x8d74c0},_0x586fe1||0x0);return{'point':{'x':_0xec6ee0,'y':_0x1042cc},'angle':_0x11634c,'bounds':_0x72353};}function g(_0x3863b3,_0x39cce){const _0x275f8e=_0x4cc3cb;let _0x2c4a3a=_0x39cce['x']-_0x3863b3['x'],_0x1c86c3=_0x39cce['y']-_0x3863b3['y'];return Math[_0x275f8e(0x184)](_0x2c4a3a)>=Math[_0x275f8e(0x184)](_0x1c86c3)?_0x2c4a3a>=0x0?0xb4:0x0:_0x1c86c3>=0x0?0x10e:0x5a;}function _(_0x5c17e8,_0x4925e8,_0x1a4218,_0x3185c3,_0x5af5d2,_0x363821,_0x5e2fa0){const _0x432404=_0x4cc3cb;let _0x21d470=_0x363821[_0x432404(0x135)](_0x5c17e8,_0x4925e8,_0x1a4218);if(!_0x21d470)return null;let _0x450c28=_0x5e2fa0[_0x432404(0x1a2)]({'unitId':_0x5c17e8,'subUnitId':_0x4925e8,'drawingId':_0x1a4218});if(!(_0x450c28!=null&&_0x450c28[_0x432404(0x157)]))return null;let {left:_0x59822f=0x0,top:_0x514304=0x0,width:_0x2dbe84=0x0,height:_0x10e83b=0x0,flipX:_0x15f125=!0x1,flipY:_0x47a9a0=!0x1}=_0x450c28[_0x432404(0x157)];_0x21d470['updateContext']({'width':_0x2dbe84,'height':_0x10e83b});let _0x2bc527=_0x21d470[_0x432404(0x137)]();if(_0x2bc527[_0x432404(0x146)]<0x2)return null;let _0x180e0a=_0x3185c3?_0x2bc527[0x0]:_0x2bc527[_0x2bc527[_0x432404(0x146)]-0x1],_0x512559=new e[(_0x432404(0x119))]({'left':_0x59822f,'top':_0x514304,'width':_0x2dbe84,'height':_0x10e83b,'flipX':_0x15f125,'flipY':_0x47a9a0})[_0x432404(0x139)](_0x180e0a);return{'point':_0x512559,'angle':g(_0x5af5d2['point'],_0x512559),'bounds':{'left':_0x512559['x'],'top':_0x512559['y'],'width':0x0,'height':0x0}};}var v=class extends s['FWorksheet']{async[_0x4cc3cb(0x165)](_0x512fce){const _0x3b0cfe=_0x4cc3cb;let {unitId:_0x1d27c1,subUnitId:_0x4c4f8b,shapeId:_0x34c83e,shapeType:_0xa1c0,shapeData:_0x3ccf31,x:_0x501442,y:_0x19e7c3,width:_0x5b7397,height:_0x27c3f5}=_0x512fce;return this[_0x3b0cfe(0x114)][_0x3b0cfe(0x169)](n[_0x3b0cfe(0x17c)]['id'],{'unitId':_0x1d27c1,'subUnitId':_0x4c4f8b,'shapeId':_0x34c83e,'shapeType':_0xa1c0,'shapeData':_0x3ccf31,'position':{'x':_0x501442,'y':_0x19e7c3},'width':_0x5b7397,'height':_0x27c3f5});}async['updateShape'](_0x112938){const _0x266bb7=_0x4cc3cb;let {unitId:_0xf85a8b,subUnitId:_0x24a0f1,shapeId:_0x50632f,shapeType:_0x50fb2c,shapeData:_0x237057,x:_0x46ba57,y:_0x5e347b,width:_0x3146cb,height:_0x2fc38d}=_0x112938;return this[_0x266bb7(0x114)][_0x266bb7(0x169)](n[_0x266bb7(0x183)]['id'],{'unitId':_0xf85a8b,'subUnitId':_0x24a0f1,'shapeId':_0x50632f,'shapeType':_0x50fb2c,'shapeData':_0x237057,'position':{'x':_0x46ba57,'y':_0x5e347b},'width':_0x3146cb,'height':_0x2fc38d});}[_0x4cc3cb(0x147)](_0x2e9b3f){const _0x2c18a3=_0x4cc3cb;let _0x290f1c=this[_0x2c18a3(0x129)]()[_0x2c18a3(0x155)](),_0x45628a=this['getSheetId']();if(_0x2e9b3f){let _0x206dab=new p(_0x290f1c,_0x45628a,_0x2e9b3f[_0x2c18a3(0x11e)],this[_0x2c18a3(0x14b)]);return this[_0x2c18a3(0x15d)](_0x206dab,_0x290f1c,_0x45628a,_0x2e9b3f[_0x2c18a3(0x11e)]),_0x206dab;}return new p(_0x290f1c,_0x45628a,(0x0,r['generateRandomId'])(),this[_0x2c18a3(0x14b)]);}['newConnector'](_0x4c74cf){const _0x3a052f=_0x4cc3cb;let _0x158c93=this[_0x3a052f(0x129)]()[_0x3a052f(0x155)](),_0x48b70d=this[_0x3a052f(0x18e)]();if(_0x4c74cf){let _0x38fb70=new m(_0x158c93,_0x48b70d,_0x4c74cf[_0x3a052f(0x11e)],this['_injector']);return this[_0x3a052f(0x15d)](_0x38fb70,_0x158c93,_0x48b70d,_0x4c74cf[_0x3a052f(0x11e)]),_0x38fb70;}return new m(_0x158c93,_0x48b70d,(0x0,r['generateRandomId'])(),this[_0x3a052f(0x14b)]);}[_0x4cc3cb(0x12b)](){const _0x4a508f=_0x4cc3cb;let _0x22dd6f=this[_0x4a508f(0x14b)][_0x4a508f(0x124)](o[_0x4a508f(0x15f)]),_0x143e99=this['getWorkbook']()[_0x4a508f(0x155)](),_0x2044af=this['getSheetId'](),_0x4b71ab=_0x22dd6f['getDrawingData'](_0x143e99,_0x2044af);if(!_0x4b71ab)return[];let _0x5ad11d=[];for(let [_0x46cbcd,_0x306498]of Object[_0x4a508f(0x161)](_0x4b71ab))if(_0x306498&&_0x306498[_0x4a508f(0x156)]===r[_0x4a508f(0x12f)][_0x4a508f(0x149)]){let _0x3403d8=new p(_0x143e99,_0x2044af,_0x46cbcd,this['_injector']);this['_preloadShapeProperties'](_0x3403d8,_0x143e99,_0x2044af,_0x46cbcd),_0x5ad11d['push'](_0x3403d8);}return _0x5ad11d;}[_0x4cc3cb(0x10f)](_0x882a93){const _0x2a304d=_0x4cc3cb;let {unitId:_0x3249d,subUnitId:_0x23fe5d,drawId:_0x6d8bdc}=_0x882a93;return this[_0x2a304d(0x114)][_0x2a304d(0x169)](o[_0x2a304d(0x13c)]['id'],{'unitId':_0x3249d,'drawings':[{'unitId':_0x3249d,'subUnitId':_0x23fe5d,'drawingId':_0x6d8bdc,'drawingType':r[_0x2a304d(0x12f)]['DRAWING_SHAPE']}]});}async[_0x4cc3cb(0x168)](_0x189c17){const _0xb64abf=_0x4cc3cb;let {connector:_0x3ea369,startTarget:_0x48c919,endTarget:_0x546da5}=_0x189c17;if(!_0x48c919&&!_0x546da5)return!0x1;let _0x56d68d=this[_0xb64abf(0x129)]()[_0xb64abf(0x155)](),_0x3cf8fa=this[_0xb64abf(0x18e)](),_0x33d090=this[_0xb64abf(0x14b)][_0xb64abf(0x124)](n[_0xb64abf(0x172)]),_0x59cb76=this[_0xb64abf(0x14b)][_0xb64abf(0x124)](i['IDrawingManagerService']),_0x4baaa8=_0x33d090['getShapeModel'](_0x56d68d,_0x3cf8fa,_0x3ea369[_0xb64abf(0x11e)]);if(!_0x4baaa8)return!0x1;let _0x4c2d2d=_0x4baaa8[_0xb64abf(0x16b)](),_0x265183=_0x4baaa8[_0xb64abf(0x134)](),_0x59ba43={};for(let _0xbc77f5 of _0x4baaa8[_0xb64abf(0x178)]()){let _0x52a328=_0x4baaa8[_0xb64abf(0x18a)](_0xbc77f5);_0x52a328!==void 0x0&&(_0x59ba43[_0xbc77f5]=_0x52a328);}let {startInfo:_0x38832f,endInfo:_0xa574dd}=this['_resolveEndpoints'](_0x56d68d,_0x3cf8fa,_0x3ea369,_0x4baaa8,_0x48c919,_0x546da5,_0x33d090,_0x59cb76,_0x265183);if(!_0x38832f||!_0xa574dd)return!0x1;let _0x40067f=(0x0,e[_0xb64abf(0x110)])((0x0,e[_0xb64abf(0x14d)])(_0x38832f,_0xa574dd,_0x4c2d2d),_0x4c2d2d),_0x2da8db={};return _0x48c919?_0x2da8db[_0xb64abf(0x175)]={'shapeId':_0x48c919[_0xb64abf(0x171)][_0xb64abf(0x11e)],'cxnIndex':_0x48c919['connectionSiteIndex']}:_0x265183!=null&&_0x265183[_0xb64abf(0x175)]&&(_0x2da8db[_0xb64abf(0x175)]=_0x265183['from']),_0x546da5?_0x2da8db['to']={'shapeId':_0x546da5['shape'][_0xb64abf(0x11e)],'cxnIndex':_0x546da5[_0xb64abf(0x133)]}:_0x265183!=null&&_0x265183['to']&&(_0x2da8db['to']=_0x265183['to']),this[_0xb64abf(0x114)][_0xb64abf(0x169)](n['UpdateConnectorRelationCommand']['id'],{'unitId':_0x56d68d,'subUnitId':_0x3cf8fa,'connectorShapeId':_0x3ea369[_0xb64abf(0x11e)],'width':_0x40067f['worldRect'][_0xb64abf(0x159)],'height':_0x40067f[_0xb64abf(0x12d)][_0xb64abf(0x192)],'left':_0x40067f[_0xb64abf(0x12d)][_0xb64abf(0x136)],'top':_0x40067f[_0xb64abf(0x12d)][_0xb64abf(0x14c)],'flipX':_0x40067f[_0xb64abf(0x12d)][_0xb64abf(0x113)]||!0x1,'flipY':_0x40067f['worldRect'][_0xb64abf(0x162)]||!0x1,'oldAdjustValues':_0x59ba43,'newAdjustValues':_0x40067f[_0xb64abf(0x151)],'newLineType':_0x40067f[_0xb64abf(0x125)],'oldLineType':_0x4c2d2d,'rotation':_0x40067f[_0xb64abf(0x180)],'oldRelation':_0x265183,'newRelation':_0x2da8db});}[_0x4cc3cb(0x15d)](_0x2a23e9,_0x14d1a6,_0x9fe3ae,_0x2e9600){const _0x2d4a45=_0x4cc3cb;let _0x3d22b4=this[_0x2d4a45(0x14b)][_0x2d4a45(0x124)](i[_0x2d4a45(0x185)])[_0x2d4a45(0x1a2)]({'unitId':_0x14d1a6,'subUnitId':_0x9fe3ae,'drawingId':_0x2e9600});if(_0x3d22b4!=null&&_0x3d22b4[_0x2d4a45(0x157)]){var _0x5b39d5,_0x159467,_0x5f0854,_0x144d88;_0x2a23e9['x']=(_0x5b39d5=_0x3d22b4['transform'][_0x2d4a45(0x136)])==null?0x0:_0x5b39d5,_0x2a23e9['y']=(_0x159467=_0x3d22b4[_0x2d4a45(0x157)]['top'])==null?0x0:_0x159467,_0x2a23e9[_0x2d4a45(0x159)]=(_0x5f0854=_0x3d22b4[_0x2d4a45(0x157)][_0x2d4a45(0x159)])==null?_0x2a23e9[_0x2d4a45(0x159)]:_0x5f0854,_0x2a23e9[_0x2d4a45(0x192)]=(_0x144d88=_0x3d22b4['transform'][_0x2d4a45(0x192)])==null?_0x2a23e9[_0x2d4a45(0x192)]:_0x144d88;}let _0x57fb55=this['_injector']['get'](n[_0x2d4a45(0x172)])[_0x2d4a45(0x135)](_0x14d1a6,_0x9fe3ae,_0x2e9600);if(_0x57fb55){_0x2a23e9[_0x2d4a45(0x1a7)]=_0x57fb55[_0x2d4a45(0x16b)]();let _0x215670=_0x57fb55[_0x2d4a45(0x11a)]();_0x215670&&(_0x2a23e9[_0x2d4a45(0x177)]=JSON[_0x2d4a45(0x164)](JSON[_0x2d4a45(0x121)](_0x215670)));}}[_0x4cc3cb(0x11c)](_0x533aea,_0x35eb85,_0x4c7fbd,_0x4d1ae3,_0x5fff09,_0x219d92,_0x5e2b16,_0x40343e,_0x42eba4){const _0x55c0ee=_0x4cc3cb;let _0x8e32e6=null,_0x46ee56=null;return _0x5fff09&&(_0x8e32e6=h(_0x533aea,_0x35eb85,_0x5fff09[_0x55c0ee(0x171)][_0x55c0ee(0x11e)],_0x5fff09[_0x55c0ee(0x133)],_0x5e2b16,_0x40343e)),_0x219d92&&(_0x46ee56=h(_0x533aea,_0x35eb85,_0x219d92['shape'][_0x55c0ee(0x11e)],_0x219d92['connectionSiteIndex'],_0x5e2b16,_0x40343e)),_0x8e32e6||(_0x8e32e6=this[_0x55c0ee(0x17a)](_0x533aea,_0x35eb85,_0x4c7fbd[_0x55c0ee(0x11e)],!0x0,_0x46ee56,_0x42eba4==null?void 0x0:_0x42eba4['from'],_0x5e2b16,_0x40343e)),_0x46ee56||(_0x46ee56=this['_resolveExistingOrFreeEndpoint'](_0x533aea,_0x35eb85,_0x4c7fbd[_0x55c0ee(0x11e)],!0x1,_0x8e32e6,_0x42eba4==null?void 0x0:_0x42eba4['to'],_0x5e2b16,_0x40343e)),{'startInfo':_0x8e32e6,'endInfo':_0x46ee56};}[_0x4cc3cb(0x17a)](_0x4ff9ec,_0x24dfb7,_0x20e64d,_0x30d95d,_0x15b191,_0x382a53,_0x1541c1,_0x26e3a2){const _0x5a31c9=_0x4cc3cb;if(_0x382a53){let _0x4fa62e=h(_0x4ff9ec,_0x24dfb7,_0x382a53[_0x5a31c9(0x176)],_0x382a53['cxnIndex'],_0x1541c1,_0x26e3a2);if(_0x4fa62e)return _0x4fa62e;}return _0x15b191?_(_0x4ff9ec,_0x24dfb7,_0x20e64d,_0x30d95d,_0x15b191,_0x1541c1,_0x26e3a2):null;}};s['FWorksheet'][_0x4cc3cb(0x14e)](v),exports[_0x4cc3cb(0x1a1)]=m,exports[_0x4cc3cb(0x18b)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2c3098=_0x1dca;(function(_0x268f23,_0x4f516c){const _0x459c8e=_0x1dca,_0x1dbdc6=_0x268f23();while(!![]){try{const _0x437ae7=parseInt(_0x459c8e(0x181))/0x1*(parseInt(_0x459c8e(0x1a4))/0x2)+-parseInt(_0x459c8e(0x127))/0x3*(parseInt(_0x459c8e(0x101))/0x4)+parseInt(_0x459c8e(0x1a5))/0x5+-parseInt(_0x459c8e(0x179))/0x6*(parseInt(_0x459c8e(0x132))/0x7)+-parseInt(_0x459c8e(0x153))/0x8+parseInt(_0x459c8e(0x189))/0x9*(parseInt(_0x459c8e(0x138))/0xa)+parseInt(_0x459c8e(0x160))/0xb*(parseInt(_0x459c8e(0x186))/0xc);if(_0x437ae7===_0x4f516c)break;else _0x1dbdc6['push'](_0x1dbdc6['shift']());}catch(_0x28e5bf){_0x1dbdc6['push'](_0x1dbdc6['shift']());}}}(_0x4947,0x8bb63),Object[_0x2c3098(0xf4)](exports,Symbol['toStringTag'],{'value':_0x2c3098(0x191)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_drawing=require('@univerjs/drawing');const DEFAULT_SHAPE_WIDTH=0xc8,DEFAULT_SHAPE_HEIGHT=0xc8;function _typeof(_0x237cd0){'@babel/helpers - typeof';const _0x3906e4=_0x2c3098;return _typeof='function'==typeof Symbol&&_0x3906e4(0x14a)==typeof Symbol[_0x3906e4(0x125)]?function(_0x398848){return typeof _0x398848;}:function(_0x182618){const _0x264c1f=_0x3906e4;return _0x182618&&'function'==typeof Symbol&&_0x182618['constructor']===Symbol&&_0x182618!==Symbol['prototype']?_0x264c1f(0x14a):typeof _0x182618;},_typeof(_0x237cd0);}function toPrimitive(_0x4c8fcc,_0x223503){const _0x46495d=_0x2c3098;if(_0x46495d(0x1bd)!=_typeof(_0x4c8fcc)||!_0x4c8fcc)return _0x4c8fcc;var _0x4d2906=_0x4c8fcc[Symbol[_0x46495d(0x16c)]];if(void 0x0!==_0x4d2906){var _0x2ea2ce=_0x4d2906[_0x46495d(0x194)](_0x4c8fcc,_0x223503||_0x46495d(0x13b));if('object'!=_typeof(_0x2ea2ce))return _0x2ea2ce;throw new TypeError(_0x46495d(0x14e));}return(_0x46495d(0x1aa)===_0x223503?String:Number)(_0x4c8fcc);}function toPropertyKey(_0x1fc676){const _0xb688d9=_0x2c3098;var _0x80c68=toPrimitive(_0x1fc676,_0xb688d9(0x1aa));return _0xb688d9(0x14a)==_typeof(_0x80c68)?_0x80c68:_0x80c68+'';}function _defineProperty(_0x159d74,_0x25c224,_0x13ca1e){return(_0x25c224=toPropertyKey(_0x25c224))in _0x159d74?Object['defineProperty'](_0x159d74,_0x25c224,{'value':_0x13ca1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x159d74[_0x25c224]=_0x13ca1e,_0x159d74;}var SheetShapeModelManager=class extends _univerjs_core[_0x2c3098(0x102)]{constructor(){const _0x1d6b8f=_0x2c3098;super(),_defineProperty(this,_0x1d6b8f(0x112),new Map()),_defineProperty(this,_0x1d6b8f(0x109),new Set()),_defineProperty(this,_0x1d6b8f(0x18e),new Set());}[_0x2c3098(0x18c)](_0x220c70,_0x5e6ad9,_0x244554){const _0x36b46b=_0x2c3098,_0x528a3e=new _univerjs_pro_engine_shape[(_0x36b46b(0x117))](_0x220c70,_0x5e6ad9,_0x244554);this[_0x36b46b(0x112)]['set'](_0x5e6ad9,_0x528a3e);if((0x0,_univerjs_pro_engine_shape[_0x36b46b(0x1b3)])(_0x220c70))this['_linesIds']['add'](_0x5e6ad9);return _0x528a3e;}[_0x2c3098(0x149)](_0x58312c){const _0xae1da8=_0x2c3098,_0x4acf6f=[];for(const _0x29c432 of this['_linesIds']){const _0xac72d6=this['_shapes'][_0xae1da8(0x162)](_0x29c432);if(_0xac72d6){const _0x4f5340=_0xac72d6[_0xae1da8(0x1a2)]();if(_0x4f5340){var _0xa7fae5,_0x1454e9;if(((_0xa7fae5=_0x4f5340['from'])===null||_0xa7fae5===void 0x0?void 0x0:_0xa7fae5['shapeId'])===_0x58312c)_0x4acf6f[_0xae1da8(0x115)]({..._0x4f5340['from'],'lineShapeId':_0x29c432,'isFrom':!![]});if(((_0x1454e9=_0x4f5340['to'])===null||_0x1454e9===void 0x0?void 0x0:_0x1454e9[_0xae1da8(0x143)])===_0x58312c)_0x4acf6f[_0xae1da8(0x115)]({..._0x4f5340['to'],'lineShapeId':_0x29c432,'isFrom':![]});}}}return _0x4acf6f;}[_0x2c3098(0x187)](_0x37ecfd){const _0x55e247=_0x2c3098,_0x40a6ec=this[_0x55e247(0x112)][_0x55e247(0x162)](_0x37ecfd);if(_0x40a6ec)return _0x40a6ec[_0x55e247(0x1a2)]();}['getShapeType'](_0x11e0cd){const _0x4cf979=_0x2c3098,_0x48b9b1=this[_0x4cf979(0x112)][_0x4cf979(0x162)](_0x11e0cd);if(_0x48b9b1)return _0x48b9b1['getShapeType']();}[_0x2c3098(0x140)](_0x59ea70){const _0x4f8164=_0x2c3098;return this[_0x4f8164(0x112)][_0x4f8164(0x1a9)](_0x59ea70);}[_0x2c3098(0x169)](_0x5823f2){const _0x4b718=_0x2c3098,_0x588ed5=this[_0x4b718(0x112)][_0x4b718(0x162)](_0x5823f2);if(!_0x588ed5)return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x588ed5['getShapeType']()))this[_0x4b718(0x109)][_0x4b718(0x147)](_0x5823f2);this[_0x4b718(0x112)][_0x4b718(0x147)](_0x5823f2);}[_0x2c3098(0x123)](){const _0x4b8843=_0x2c3098,_0xeca6a4=[];return this[_0x4b8843(0x112)]['forEach'](_0x3886e3=>{const _0x7c3b50=_0x4b8843;_0xeca6a4[_0x7c3b50(0x115)](_0x3886e3[_0x7c3b50(0x123)]());}),_0xeca6a4;}[_0x2c3098(0x124)](_0x613061){const _0x52cc5c=_0x2c3098;for(const _0x5f570d of _0x613061){const {id:_0x403e8b,shapeType:_0x14b885}=_0x5f570d,_0x1c3405=this[_0x52cc5c(0x18c)](_0x14b885,_0x403e8b,_0x5f570d[_0x52cc5c(0x184)]);if(_0x1c3405&&_0x1c3405[_0x52cc5c(0x15d)]())this['_linesIds'][_0x52cc5c(0x126)](_0x403e8b);}}[_0x2c3098(0xfe)](){const _0xf89905=_0x2c3098;if(this[_0xf89905(0x165)])return;this[_0xf89905(0x112)][_0xf89905(0x14d)](_0xf41e14=>{const _0x27c9b0=_0xf89905;_0xf41e14[_0x27c9b0(0xfe)]();}),this[_0xf89905(0x112)][_0xf89905(0x158)](),this[_0xf89905(0x109)]['clear'](),this[_0xf89905(0x18e)][_0xf89905(0x158)](),super[_0xf89905(0xfe)]();}};function __decorateParam(_0x5beb04,_0x23231d){return function(_0x1cb6c7,_0x17efa9){_0x23231d(_0x1cb6c7,_0x17efa9,_0x5beb04);};}function __decorate(_0x52de11,_0x147622,_0x377675,_0xbe6ed){const _0x1938f5=_0x2c3098;var _0x1072b0=arguments['length'],_0xdadf7d=_0x1072b0<0x3?_0x147622:_0xbe6ed===null?_0xbe6ed=Object[_0x1938f5(0x107)](_0x147622,_0x377675):_0xbe6ed,_0x5054b8;if(typeof Reflect==='object'&&typeof Reflect[_0x1938f5(0x11f)]===_0x1938f5(0x155))_0xdadf7d=Reflect[_0x1938f5(0x11f)](_0x52de11,_0x147622,_0x377675,_0xbe6ed);else{for(var _0x3b89ce=_0x52de11[_0x1938f5(0x1b5)]-0x1;_0x3b89ce>=0x0;_0x3b89ce--)if(_0x5054b8=_0x52de11[_0x3b89ce])_0xdadf7d=(_0x1072b0<0x3?_0x5054b8(_0xdadf7d):_0x1072b0>0x3?_0x5054b8(_0x147622,_0x377675,_0xdadf7d):_0x5054b8(_0x147622,_0x377675))||_0xdadf7d;}return _0x1072b0>0x3&&_0xdadf7d&&Object[_0x1938f5(0xf4)](_0x147622,_0x377675,_0xdadf7d),_0xdadf7d;}const SHEET_SHAPE_PLUGIN='SHEET_SHAPE_PLUGIN';let SheetsShapeService=class SheetsShapeService extends _univerjs_core[_0x2c3098(0x102)]{constructor(_0x1c1996){const _0x3f131d=_0x2c3098;super(),this[_0x3f131d(0x195)]=_0x1c1996,_defineProperty(this,_0x3f131d(0xfd),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0xea311c,_0x310c06){const _0x14e515=_0x2c3098;let _0x262026=this[_0x14e515(0xfd)][_0x14e515(0x162)](_0xea311c);!_0x262026&&(_0x262026=new Map(),this[_0x14e515(0xfd)][_0x14e515(0x19c)](_0xea311c,_0x262026));let _0xfe83d0=_0x262026[_0x14e515(0x162)](_0x310c06);return!_0xfe83d0&&(_0xfe83d0=new SheetShapeModelManager(),_0x262026['set'](_0x310c06,_0xfe83d0)),_0xfe83d0;}[_0x2c3098(0x134)](_0xc791b0,_0x14f95d,_0x4b1933,_0x5d0d3d,_0x732e90){const _0x50e1f9=_0x2c3098;this['_ensureShapeModelManager'](_0xc791b0,_0x14f95d)[_0x50e1f9(0x18c)](_0x4b1933,_0x5d0d3d,_0x732e90);}[_0x2c3098(0x169)](_0x29e007,_0x59638f,_0x857e7b){this['_ensureShapeModelManager'](_0x29e007,_0x59638f)['removeShape'](_0x857e7b);}[_0x2c3098(0x1a6)](_0x2cd5b5,_0x22fcfe,_0x2d78ad){const _0x149f13=_0x2c3098;return this[_0x149f13(0x159)](_0x2cd5b5,_0x22fcfe)[_0x149f13(0x111)](_0x2d78ad);}[_0x2c3098(0x111)](_0x40a825,_0x307ebc,_0xc37226){const _0x7c3628=_0x2c3098;return this[_0x7c3628(0x159)](_0x40a825,_0x307ebc)[_0x7c3628(0x111)](_0xc37226);}[_0x2c3098(0x140)](_0x103e4b,_0x208e49,_0x53dd0e){const _0x31d64f=_0x2c3098;return this[_0x31d64f(0x159)](_0x103e4b,_0x208e49)[_0x31d64f(0x140)](_0x53dd0e);}[_0x2c3098(0x173)](_0x2ed8df,_0x3c10ca,_0x4efb6e){const _0x231702=_0x2c3098;return this['_ensureShapeModelManager'](_0x2ed8df,_0x3c10ca)[_0x231702(0x111)](_0x4efb6e);}['getShapeDataById'](_0x4a8994,_0x329d6f,_0x588acb){const _0x347518=_0x2c3098,_0x2dcf9d=this[_0x347518(0x159)](_0x4a8994,_0x329d6f);if(!_0x2dcf9d[_0x347518(0x111)](_0x588acb))return;const _0x244304=_0x2dcf9d['_shapes'][_0x347518(0x162)](_0x588acb);if(!_0x244304)return;return _0x244304[_0x347518(0x154)]();}[_0x2c3098(0xfa)](_0x5d154c,_0x348098,_0x2233e1){const _0x3c63e4=_0x2c3098;return this[_0x3c63e4(0x159)](_0x5d154c,_0x348098)[_0x3c63e4(0x112)][_0x3c63e4(0x162)](_0x2233e1);}['getBasicShapeRelation'](_0x5b7c12,_0x216f43,_0x4321f0){const _0x368906=_0x2c3098;return this[_0x368906(0x159)](_0x5b7c12,_0x216f43)[_0x368906(0x149)](_0x4321f0);}[_0x2c3098(0x187)](_0x3bd66f,_0x59ab7f,_0x349fab){const _0xfb6cf5=_0x2c3098,_0x51883c=this[_0xfb6cf5(0x159)](_0x3bd66f,_0x59ab7f)[_0xfb6cf5(0x112)]['get'](_0x349fab);if(!_0x51883c)return;return _0x51883c[_0xfb6cf5(0x1a2)]();}[_0x2c3098(0x1b0)](){}['_serializeShapeForUnit'](_0x2a3088){const _0xc3bf32=_0x2c3098,_0xe812eb={},_0x237822=this[_0xc3bf32(0xfd)][_0xc3bf32(0x162)](_0x2a3088);if(_0x237822)_0x237822[_0xc3bf32(0x14d)]((_0x363efe,_0x9872e9)=>{const _0x180d87=_0xc3bf32,_0x33e43b=_0x363efe[_0x180d87(0x123)]();if(_0x33e43b[_0x180d87(0x1b5)]>0x0)_0xe812eb[_0x9872e9]=_0x33e43b;});return JSON[_0xc3bf32(0x170)](_0xe812eb);}['_deserializeShapeForUnit'](_0x277544,_0x112458){const _0x1c9b56=_0x2c3098;Object[_0x1c9b56(0x157)](_0x112458)['forEach'](_0x19cec0=>{const _0x252afe=_0x1c9b56;this['_ensureShapeModelManager'](_0x277544,_0x19cec0)[_0x252afe(0x124)](_0x112458[_0x19cec0]);});}[_0x2c3098(0x123)](){const _0x38ffbe=_0x2c3098,_0x45ddbd={};return this[_0x38ffbe(0xfd)][_0x38ffbe(0x14d)]((_0x5bdbd4,_0x334a6d)=>{const _0x2bec2e=_0x38ffbe;_0x45ddbd[_0x334a6d]={},_0x5bdbd4[_0x2bec2e(0x14d)]((_0x28790a,_0x4f5b3c)=>{const _0x516f76=_0x2bec2e;_0x45ddbd[_0x334a6d][_0x4f5b3c]=_0x28790a[_0x516f76(0x123)]();});}),_0x45ddbd;}[_0x2c3098(0x124)](_0x1b6d2e){const _0x4c110b=_0x2c3098;Object[_0x4c110b(0x157)](_0x1b6d2e)[_0x4c110b(0x14d)](_0x2f7041=>{const _0x40683f=_0x4c110b,_0x1d4b5c=_0x1b6d2e[_0x2f7041];Object[_0x40683f(0x157)](_0x1d4b5c)[_0x40683f(0x14d)](_0x2f0766=>{const _0x37832d=_0x40683f;this[_0x37832d(0x159)](_0x2f7041,_0x2f0766)[_0x37832d(0x124)](_0x1d4b5c[_0x2f0766]);});});}['_initSnapshot'](){const _0xa42324=_0x2c3098;this[_0xa42324(0x195)][_0xa42324(0x11d)]({'pluginName':SHEET_SHAPE_PLUGIN,'businesses':[_univerjs_core[_0xa42324(0x104)]['UNIVER_SHEET']],'toJson':_0x5e90fc=>this['_serializeShapeForUnit'](_0x5e90fc),'parseJson':_0x34559f=>JSON['parse'](_0x34559f),'onLoad':(_0x240b5d,_0x79cf20)=>{const _0x1fe5db=_0xa42324;this[_0x1fe5db(0x185)](_0x240b5d,_0x79cf20);},'onUnLoad':_0xa1625a=>{const _0x426f99=_0xa42324,_0x3e55d3=this[_0x426f99(0xfd)][_0x426f99(0x162)](_0xa1625a);_0x3e55d3&&(_0x3e55d3[_0x426f99(0x14d)](_0x5a476d=>{const _0x4a79af=_0x426f99;_0x5a476d[_0x4a79af(0xfe)]();}),this['_shapeModelManagerMap'][_0x426f99(0x147)](_0xa1625a));}});}['dispose'](){const _0x4e47ae=_0x2c3098;this['_shapeModelManagerMap'][_0x4e47ae(0x14d)](_0x1ac5ff=>{const _0x569a1b=_0x4e47ae;_0x1ac5ff[_0x569a1b(0x14d)](_0x8a19e9=>{const _0x6ab528=_0x569a1b;_0x8a19e9[_0x6ab528(0xfe)]();});});}};SheetsShapeService=__decorate([__decorateParam(0x0,_univerjs_core['IResourceManagerService'])],SheetsShapeService);function _0x4947(){const _0x1ecc6a=['REMOVE','ShapeModel','pushUndoRedo','getAdjustValueByName','_sheetsShapeService','entries','undos','registerPluginResource','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','decorate','preRedos','removeLinePoints','lineType','toJSON','fromJSON','iterator','add','20709anTjxJ','sheet.command.set-shape-rotate','RemoveSheetsShapeMutation','CommandType','IUndoRedoService','sheet.mutation.remove-shape','SetSheetDrawingCommand','startY','getCellIndexAndOffsetByPosition','UpdateLineShapeResizeCommand','@univerjs-pro/sheets-shape','2086XZqveG','redos','insertShape','getDrawingData','rotation','UniverSheetsShapePlugin','370HjRLYb','UpdateConnectorRelationCommand','data','default','_addLineFollowShapeUpdates','sheet.command.toggle-shape-flip','SheetSkeletonService','startX','hasShape','computeConnectorRouteLayout','IUniverInstanceService','shapeId','sheet.mutation.update-shape-data','height','borderEnabled','delete','InsertSheetDrawingCommand','getBasicShapeRelation','symbol','assign','sheet.command.update-connector-relation','forEach','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','lineShapeId','range','SetSheetsShapeTextVerticalToggleCommand','version','5015008dLYYOw','getShapeData','function','top','keys','clear','_ensureShapeModelManager','DEFAULT_SHAPE_WIDTH','UpdateSheetsShapeDataMutation','IDrawingManagerService','isLineShape','cos','params','77uRxMyA','ClearSheetDrawingTransformerOperation','get','_injector','filter','_disposed','generateRandomId','SetShapeDrawingDataCommand','isFrom','removeShape','_initCommands','IConfigService','toPrimitive','result','drawingType','routeConnectorLineShape','stringify','interceptCommand','ICommandService','getShapeTypeById','INSERT','setConfig','UniverLicensePlugin','worldRect','sheets-shape.config','8424lHJqFR','getDrawingByParam','getShapeTextData','DependentOn','_sheetSkeletonService','ToggleSheetsShapeFlipCommand','fill','relation','40133EDRHwC','UPDATE','COMMAND','shapeData','_deserializeShapeForUnit','1566168QkEYvH','getLineShapeRelation','SheetsShapeService','90567RAWcKl','rotateEnabled','resizeEnabled','addShape','InsertSheetsShapeMutation','_groupIds','SheetInterceptorService','left','Module','ensureSkeleton','DEFAULT_SHAPE_HEIGHT','call','_resourcesManagerService','getEndConnectInfo','_config','DRAWING_SHAPE','find','getBatchUpdateOp','disposeWithMe','set','registerCommand','setShapeData','getSkeleton','adjustValues','_drawingManagerService','getShapeRelation','type','28JYrzds','1161185TDgvMR','getBasicShapeType','ang','every','has','string','sheet.command.update-shape-type','SetDrawingApplyMutation','width','sequenceExecute','_configService','setShapeType','DrawingApplyType','getSheetCommandTarget','isConnectorShape','getStartConnectInfo','length','UpdateSheetsShapeTypeCommand','preUndos','UNIVER_SHEET','_sheetInterceptorService','Inject','flipX','_addLineRerouteUpdates','object','defineProperty','sheet.command.insert-shape','_getConnectPointInfo','SHEET_SHAPE_PLUGIN','ISheetDrawingService','InsertShapeCommand','getShapeModel','angle','index','_shapeModelManagerMap','dispose','transform','DrawingTypeEnum','268iVRqxx','Disposable','flipY','UniverInstanceType','pluginName','sheet.mutation.insert-shape','getOwnPropertyDescriptor','MUTATION','_linesIds','transformToAxisAlignPosition','packageName','onStarting','_commandService','getBatchAddOp','transformToDrawingPosition','sheet.command.update-line-shape-resize','getShapeType','_shapes','position','onCommandExecute','push'];_0x4947=function(){return _0x1ecc6a;};return _0x4947();}const InsertSheetsShapeMutation={'id':_0x2c3098(0x106),'type':_univerjs_core[_0x2c3098(0x12a)]['MUTATION'],'handler':(_0x3e7a99,_0x19ba93)=>{const _0x5a53c2=_0x2c3098,{unitId:_0x219dd1,subUnitId:_0x1d0edb,shapeType:_0x25c365,shapeId:_0x32a8b0,shapeData:_0x1cf631}=_0x19ba93;return _0x3e7a99[_0x5a53c2(0x162)](SheetsShapeService)['insertShape'](_0x219dd1,_0x1d0edb,_0x25c365,_0x32a8b0,_0x1cf631),!![];}},RemoveSheetsShapeMutation={'id':_0x2c3098(0x12c),'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x108)],'handler':(_0x4de2f2,_0x3ce882)=>{const {unitId:_0x193429,subUnitId:_0x67cf33,shapeId:_0x43d0af}=_0x3ce882;return _0x4de2f2['get'](SheetsShapeService)['removeShape'](_0x193429,_0x67cf33,_0x43d0af),!![];}},InsertShapeCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':_0x2c3098(0xf5),'handler':(_0x3913df,_0x5b22d5)=>{const _0x45c591=_0x2c3098;var _0x3cf2a7,_0x1b7e4e;const _0x2dc967=(0x0,_univerjs_sheets[_0x45c591(0x1b2)])(_0x3913df[_0x45c591(0x162)](_univerjs_core[_0x45c591(0x142)]),_0x5b22d5);if(!_0x2dc967)return![];const _0x7c9365=_0x3913df[_0x45c591(0x162)](_univerjs_sheets[_0x45c591(0x13e)]),{unitId:_0x3cd814,subUnitId:_0x8eda44}=_0x2dc967,_0x3ae8c9=_0x7c9365[_0x45c591(0x192)](_0x3cd814,_0x8eda44);if(!_0x3ae8c9)return![];const _0x14d573=_0x3913df['get'](_univerjs_core[_0x45c591(0x172)]),_0x430f08=_0x3913df['get'](_univerjs_core[_0x45c591(0x12b)]),_0x18afc9=_0x3913df['get'](_univerjs_sheets[_0x45c591(0x18f)]),_0x59ad2d=_0x3913df[_0x45c591(0x162)](_univerjs_sheets_drawing[_0x45c591(0xf8)]),{shapeType:_0x1d7d1f,shapeData:_0x53e699}=_0x5b22d5,_0x996d8d=_0x5b22d5[_0x45c591(0x143)]||(0x0,_univerjs_core[_0x45c591(0x166)])(),_0x103ae0={'unitId':_0x3cd814,'subUnitId':_0x8eda44,'shapeId':_0x996d8d,'shapeType':_0x1d7d1f,'shapeData':_0x53e699},_0x1c288e=_0x5b22d5[_0x45c591(0x1ad)]||0xc8,_0x34a229=_0x5b22d5['height']||0xc8;let _0xb83389=0x0,_0x9d4d7d=0x0,_0x4ceda7={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x1a4105={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x5b22d5[_0x45c591(0x113)]){const {x:_0x5ec9fb,y:_0x1f64aa}=_0x5b22d5[_0x45c591(0x113)];_0xb83389=_0x5ec9fb,_0x9d4d7d=_0x1f64aa,_0x4ceda7=_0x3ae8c9['getCellIndexAndOffsetByPosition'](_0x5ec9fb,_0x1f64aa),_0x1a4105=_0x3ae8c9[_0x45c591(0x12f)](_0x5ec9fb+_0x1c288e,_0x1f64aa+_0x34a229);}else{if(_0x5b22d5[_0x45c591(0x150)]){const {startRow:_0x28da70,startColumn:_0x57bb45}=_0x5b22d5[_0x45c591(0x150)],_0x5a389e=0xa,_0x8b410a=0xa;_0x4ceda7={'row':_0x28da70,'rowOffset':_0x5a389e,'column':_0x57bb45,'columnOffset':_0x8b410a};const _0x5dae10=_0x3ae8c9['getCellWithCoordByIndex'](_0x28da70,_0x57bb45);_0xb83389=_0x5dae10[_0x45c591(0x13f)]+_0x8b410a,_0x9d4d7d=_0x5dae10[_0x45c591(0x12e)]+_0x5a389e,_0x1a4105=_0x3ae8c9[_0x45c591(0x12f)](_0xb83389+_0x1c288e,_0x9d4d7d+_0x34a229);}}const _0x4a540f={'from':_0x4ceda7,'to':_0x1a4105},_0x594c4d={'unitId':_0x3cd814,'subUnitId':_0x8eda44,'drawingId':_0x996d8d,'drawingType':_univerjs_core[_0x45c591(0x100)][_0x45c591(0x198)],'sheetTransform':_0x4a540f,'transform':{'left':_0xb83389,'top':_0x9d4d7d,'width':_0x1c288e,'height':_0x34a229},'data':{'shapeType':_0x1d7d1f,'shapeData':_0x53e699},'axisAlignSheetTransform':_0x4a540f,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x1d7d1f)&&(_0x594c4d['data'][_0x45c591(0x17f)]=![],_0x594c4d[_0x45c591(0x13a)]['rotateEnabled']=![],_0x594c4d[_0x45c591(0x13a)]['resizeEnabled']=![],_0x594c4d[_0x45c591(0x13a)][_0x45c591(0x146)]=![],_0x594c4d[_0x45c591(0xff)][_0x45c591(0x18a)]=![],_0x594c4d[_0x45c591(0xff)][_0x45c591(0x18b)]=![],_0x594c4d[_0x45c591(0xff)][_0x45c591(0x146)]=![]);const {undo:_0x25ae57,redo:_0x288a73,objects:_0x2d4d40}=_0x59ad2d[_0x45c591(0x10e)]([_0x594c4d]),_0x4a0df5=_0x18afc9[_0x45c591(0x114)]({'id':_univerjs_sheets_drawing[_0x45c591(0x148)]['id'],'params':{'unitId':_0x3cd814,'drawings':[_0x594c4d]}}),_0x5541b8=[...(_0x3cf2a7=_0x4a0df5[_0x45c591(0x120)])!==null&&_0x3cf2a7!==void 0x0?_0x3cf2a7:[],{'id':_univerjs_sheets_drawing[_0x45c591(0x1ac)]['id'],'params':{'unitId':_0x3cd814,'subUnitId':_0x8eda44,'op':_0x288a73,'objects':_0x2d4d40,'type':_univerjs_sheets_drawing[_0x45c591(0x1b1)][_0x45c591(0x174)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3cd814]},..._0x4a0df5[_0x45c591(0x133)],{'id':InsertSheetsShapeMutation['id'],'params':_0x103ae0}],_0x2130e0=[{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x3cd814,'subUnitId':_0x8eda44,'shapeId':_0x996d8d}},...(_0x1b7e4e=_0x4a0df5[_0x45c591(0x1b7)])!==null&&_0x1b7e4e!==void 0x0?_0x1b7e4e:[],{'id':_univerjs_sheets_drawing[_0x45c591(0x1ac)]['id'],'params':{'unitId':_0x3cd814,'subUnitId':_0x8eda44,'op':_0x25ae57,'objects':_0x2d4d40,'type':_univerjs_sheets_drawing[_0x45c591(0x1b1)][_0x45c591(0x116)]}},{'id':_univerjs_sheets_drawing[_0x45c591(0x161)]['id'],'params':[_0x3cd814]},..._0x4a0df5[_0x45c591(0x11c)]];if((0x0,_univerjs_core[_0x45c591(0x1ae)])(_0x5541b8,_0x14d573)[_0x45c591(0x16d)])return _0x430f08[_0x45c591(0x118)]({'unitID':_0x3cd814,'undoMutations':_0x2130e0,'redoMutations':_0x5541b8}),!![];return![];}},UpdateSheetsShapeDataMutation={'id':_0x2c3098(0x144),'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x108)],'handler':(_0x4e80fb,_0x5ecc24)=>{const _0x36c208=_0x2c3098,{unitId:_0x3316b6,subUnitId:_0x1563bb,shapeType:_0x314fdf,shapeId:_0x466e66,shapeData:_0xbd375e}=_0x5ecc24,_0x280722=_0x4e80fb[_0x36c208(0x162)](SheetsShapeService)[_0x36c208(0xfa)](_0x3316b6,_0x1563bb,_0x466e66);if(_0x280722){if(_0x314fdf!==void 0x0)_0x280722[_0x36c208(0x1b0)](_0x314fdf);if(_0xbd375e)_0x280722===null||_0x280722===void 0x0||_0x280722['setShapeData'](_0xbd375e,!![]);}return!![];}},SetShapeDrawingDataCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x23fec3,_0x4ac82c)=>{const _0x704fc5=_0x2c3098;var _0x5bb307,_0x5bdc57;const _0x165a33=(0x0,_univerjs_sheets[_0x704fc5(0x1b2)])(_0x23fec3['get'](_univerjs_core[_0x704fc5(0x142)]),_0x4ac82c);if(!_0x165a33)return![];const _0x1a9acd=_0x23fec3[_0x704fc5(0x162)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x54f8d7,subUnitId:_0x4b7d9e}=_0x165a33,_0x33ee29=_0x1a9acd['ensureSkeleton'](_0x54f8d7,_0x4b7d9e);if(!_0x33ee29)return![];const _0x5613f8=_0x23fec3[_0x704fc5(0x162)](SheetsShapeService),{shapeId:_0x28b13c,shapeType:_0x4f741a,shapeData:_0x364b81,position:_0x3fdbde,width:_0xa8a6e2,height:_0x2f3026}=_0x4ac82c,_0xbcd0e5=_0x5613f8[_0x704fc5(0xfa)](_0x54f8d7,_0x4b7d9e,_0x28b13c);if(!_0xbcd0e5)return![];const _0x399db8=_0x23fec3[_0x704fc5(0x162)](_univerjs_core[_0x704fc5(0x172)]),_0x3948b9=_0x23fec3['get'](_univerjs_core[_0x704fc5(0x12b)]),_0xa0c8f8=_0x23fec3[_0x704fc5(0x162)](_univerjs_sheets[_0x704fc5(0x18f)]),_0x24fe74=_0x23fec3[_0x704fc5(0x162)](_univerjs_sheets_drawing[_0x704fc5(0xf8)]),_0x1244d3={'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'shapeId':_0x28b13c,'shapeType':_0x4f741a,'shapeData':_0x364b81},_0x51f3a9=_0xbcd0e5['getShapeType'](),_0x4ecb6b=_0xbcd0e5[_0x704fc5(0x154)](),{x:_0x5b9579,y:_0x2200a8}=_0x3fdbde,_0x21f02a={'from':_0x33ee29[_0x704fc5(0x12f)](_0x5b9579,_0x2200a8),'to':_0x33ee29[_0x704fc5(0x12f)](_0x5b9579+_0xa8a6e2,_0x2200a8+_0x2f3026)},_0x186724={'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'drawingId':_0x28b13c,'drawingType':_univerjs_core[_0x704fc5(0x100)][_0x704fc5(0x198)],'sheetTransform':_0x21f02a,'transform':{'left':_0x5b9579,'top':_0x2200a8,'width':_0xa8a6e2,'height':_0x2f3026},'data':{'shapeType':_0x4f741a,'shapeData':_0x364b81},'axisAlignSheetTransform':_0x21f02a,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape[_0x704fc5(0x1b3)])(_0x4f741a)&&(_0x186724[_0x704fc5(0x13a)][_0x704fc5(0x17f)]=![],_0x186724[_0x704fc5(0x13a)][_0x704fc5(0x18a)]=![],_0x186724[_0x704fc5(0x13a)][_0x704fc5(0x18b)]=![],_0x186724[_0x704fc5(0x13a)][_0x704fc5(0x146)]=![],_0x186724[_0x704fc5(0xff)][_0x704fc5(0x18a)]=![],_0x186724[_0x704fc5(0xff)][_0x704fc5(0x18b)]=![],_0x186724[_0x704fc5(0xff)]['borderEnabled']=![]);const {undo:_0x322fa7,redo:_0x570bf4,objects:_0x55a888}=_0x24fe74['getBatchUpdateOp']([_0x186724]),_0x1a9450=_0xa0c8f8[_0x704fc5(0x114)]({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x54f8d7,'drawings':[_0x186724]}}),_0x40ff06=[...(_0x5bb307=_0x1a9450['preRedos'])!==null&&_0x5bb307!==void 0x0?_0x5bb307:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'op':_0x570bf4,'objects':_0x55a888,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x704fc5(0x182)]}},{'id':_univerjs_sheets_drawing[_0x704fc5(0x161)]['id'],'params':[_0x54f8d7]},..._0x1a9450[_0x704fc5(0x133)],{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x1244d3}],_0x1f0d77=[...(_0x5bdc57=_0x1a9450[_0x704fc5(0x1b7)])!==null&&_0x5bdc57!==void 0x0?_0x5bdc57:[],{'id':_univerjs_sheets_drawing[_0x704fc5(0x1ac)]['id'],'params':{'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'op':_0x322fa7,'objects':_0x55a888,'type':_univerjs_sheets_drawing['DrawingApplyType']['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x704fc5(0x161)]['id'],'params':[_0x54f8d7]},..._0x1a9450[_0x704fc5(0x11c)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'shapeType':_0x51f3a9,'shapeId':_0x28b13c,'shapeData':_0x4ecb6b}}];if((0x0,_univerjs_core['sequenceExecute'])(_0x40ff06,_0x399db8)[_0x704fc5(0x16d)])return _0x3948b9['pushUndoRedo']({'unitID':_0x54f8d7,'undoMutations':_0x1f0d77,'redoMutations':_0x40ff06}),!![];return![];}},ToggleSheetsShapeFlipCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':_0x2c3098(0x13d),'handler':(_0x18fc87,_0x2268d9)=>{const _0x3b5c1b=_0x2c3098;var _0x558b41,_0x7ba1aa;const _0x479c3b=(0x0,_univerjs_sheets[_0x3b5c1b(0x1b2)])(_0x18fc87['get'](_univerjs_core[_0x3b5c1b(0x142)]),_0x2268d9);if(!_0x479c3b)return![];const _0x13ed8e=_0x18fc87[_0x3b5c1b(0x162)](_univerjs_sheets[_0x3b5c1b(0x13e)]),{unitId:_0x3d0f4d,subUnitId:_0x49ddbc}=_0x479c3b,_0x5c7b77=_0x13ed8e[_0x3b5c1b(0x19f)](_0x3d0f4d,_0x49ddbc);if(!_0x5c7b77)return![];const _0x2eb382=_0x18fc87['get'](_univerjs_sheets_drawing[_0x3b5c1b(0xf8)]),{shapeId:_0x491d7f,flipH:_0x324aa2,flipV:_0x22f520}=_0x2268d9,_0x340783=_0x2eb382[_0x3b5c1b(0x17a)]({'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'drawingId':_0x491d7f});if(!_0x340783)return![];const _0x52ab24=_0x18fc87[_0x3b5c1b(0x162)](SheetsShapeService)[_0x3b5c1b(0xfa)](_0x3d0f4d,_0x49ddbc,_0x491d7f);if(!_0x52ab24)return![];const _0x43938a=_0x18fc87[_0x3b5c1b(0x162)](_univerjs_core['ICommandService']),_0x1258bc=_0x18fc87['get'](_univerjs_core[_0x3b5c1b(0x12b)]),_0x1ceda8=_0x18fc87[_0x3b5c1b(0x162)](_univerjs_sheets[_0x3b5c1b(0x18f)]),_0x4ec536={..._0x340783[_0x3b5c1b(0xff)]};if(_0x324aa2!==void 0x0)_0x4ec536[_0x3b5c1b(0x1bb)]=!_0x4ec536[_0x3b5c1b(0x1bb)];if(_0x22f520!==void 0x0)_0x4ec536['flipY']=!_0x4ec536[_0x3b5c1b(0x103)];const _0x5ab014=(0x0,_univerjs_sheets_drawing[_0x3b5c1b(0x10f)])(_0x4ec536,_0x5c7b77),_0x1dc46b=(0x0,_univerjs_sheets_drawing[_0x3b5c1b(0x10a)])(_0x4ec536,_0x5c7b77),_0x1f7f7a=_0x52ab24[_0x3b5c1b(0x111)](),_0x471c9d=_0x52ab24[_0x3b5c1b(0x154)](),_0x2f7ef8={'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'drawingId':_0x491d7f,'drawingType':_univerjs_core[_0x3b5c1b(0x100)][_0x3b5c1b(0x198)],'sheetTransform':_0x5ab014,'transform':_0x4ec536,'data':{'shapeType':_0x1f7f7a,'shapeData':_0x471c9d},'axisAlignSheetTransform':_0x1dc46b,'allowTransform':!![]},{undo:_0x201a39,redo:_0x317b1,objects:_0x742360}=_0x2eb382['getBatchUpdateOp']([_0x2f7ef8]),_0x3b87e7=_0x1ceda8[_0x3b5c1b(0x114)]({'id':_univerjs_sheets_drawing[_0x3b5c1b(0x12d)]['id'],'params':{'unitId':_0x3d0f4d,'drawings':[_0x2f7ef8]}}),_0x465881=[...(_0x558b41=_0x3b87e7[_0x3b5c1b(0x120)])!==null&&_0x558b41!==void 0x0?_0x558b41:[],{'id':_univerjs_sheets_drawing[_0x3b5c1b(0x1ac)]['id'],'params':{'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'op':_0x317b1,'objects':_0x742360,'type':_univerjs_sheets_drawing[_0x3b5c1b(0x1b1)][_0x3b5c1b(0x182)]}},{'id':_univerjs_sheets_drawing[_0x3b5c1b(0x161)]['id'],'params':[_0x3d0f4d]},..._0x3b87e7[_0x3b5c1b(0x133)]],_0x244ae4=[...(_0x7ba1aa=_0x3b87e7['preUndos'])!==null&&_0x7ba1aa!==void 0x0?_0x7ba1aa:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'op':_0x201a39,'objects':_0x742360,'type':_univerjs_sheets_drawing[_0x3b5c1b(0x1b1)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x3b5c1b(0x161)]['id'],'params':[_0x3d0f4d]},..._0x3b87e7[_0x3b5c1b(0x11c)]];if((0x0,_univerjs_pro_engine_shape[_0x3b5c1b(0x1b3)])(_0x1f7f7a)){const _0x166933=_0x52ab24[_0x3b5c1b(0x1a2)]();if(_0x166933){const _0x276b32={..._0x166933};_0x276b32['from']=void 0x0,_0x276b32['to']=void 0x0,_0x465881['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'shapeId':_0x491d7f,'shapeType':_0x1f7f7a,'shapeData':{'relation':_0x276b32}}}),_0x244ae4['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'shapeId':_0x491d7f,'shapeType':_0x1f7f7a,'shapeData':{'relation':_0x166933}}});}}if((0x0,_univerjs_core[_0x3b5c1b(0x1ae)])(_0x465881,_0x43938a)[_0x3b5c1b(0x16d)])return _0x1258bc['pushUndoRedo']({'unitID':_0x3d0f4d,'undoMutations':_0x244ae4,'redoMutations':_0x465881}),!![];return![];}},SetSheetsShapeRotateCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':_0x2c3098(0x128),'handler':(_0x5a7a89,_0x94c525)=>{const _0x4da424=_0x2c3098;var _0x205f1e,_0x116ee9;const _0x26d153=(0x0,_univerjs_sheets[_0x4da424(0x1b2)])(_0x5a7a89['get'](_univerjs_core['IUniverInstanceService']),_0x94c525);if(!_0x26d153)return![];const _0x4c8c6d=_0x5a7a89[_0x4da424(0x162)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x3da7fd,subUnitId:_0xdcdbbe}=_0x26d153,_0x515a06=_0x4c8c6d['getSkeleton'](_0x3da7fd,_0xdcdbbe);if(!_0x515a06)return![];const _0x18548e=_0x5a7a89['get'](_univerjs_sheets_drawing[_0x4da424(0xf8)]),{shapeId:_0x418aa9,rotate:_0x1753d5}=_0x94c525,_0x1cbdd7=_0x18548e[_0x4da424(0x17a)]({'unitId':_0x3da7fd,'subUnitId':_0xdcdbbe,'drawingId':_0x418aa9});if(!_0x1cbdd7)return![];const _0xa9618a=_0x5a7a89[_0x4da424(0x162)](SheetsShapeService)['getShapeModel'](_0x3da7fd,_0xdcdbbe,_0x418aa9);if(!_0xa9618a)return![];const _0xa8bd8d=_0x5a7a89[_0x4da424(0x162)](_univerjs_core['ICommandService']),_0x2e6c6d=_0x5a7a89[_0x4da424(0x162)](_univerjs_core['IUndoRedoService']),_0x14bc3f=_0x5a7a89[_0x4da424(0x162)](_univerjs_sheets[_0x4da424(0x18f)]),_0x148046={..._0x1cbdd7[_0x4da424(0xff)]};if(_0x1753d5!==void 0x0)_0x148046[_0x4da424(0xfb)]=(_0x148046[_0x4da424(0xfb)]||0x0)+_0x1753d5;const _0x1ecae2=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x148046,_0x515a06),_0x4705d2=(0x0,_univerjs_sheets_drawing[_0x4da424(0x10a)])(_0x148046,_0x515a06),_0x447682=_0xa9618a[_0x4da424(0x111)](),_0x23ed82=_0xa9618a['getShapeData'](),_0x42a6f9={'unitId':_0x3da7fd,'subUnitId':_0xdcdbbe,'drawingId':_0x418aa9,'drawingType':_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x1ecae2,'transform':_0x148046,'data':{'shapeType':_0x447682,'shapeData':_0x23ed82},'axisAlignSheetTransform':_0x4705d2,'allowTransform':!![]},{undo:_0x29196a,redo:_0x5ee9c9,objects:_0x1b5239}=_0x18548e[_0x4da424(0x19a)]([_0x42a6f9]),_0x331c11=_0x14bc3f[_0x4da424(0x114)]({'id':_univerjs_sheets_drawing[_0x4da424(0x12d)]['id'],'params':{'unitId':_0x3da7fd,'drawings':[_0x42a6f9]}}),_0x437027=[...(_0x205f1e=_0x331c11[_0x4da424(0x120)])!==null&&_0x205f1e!==void 0x0?_0x205f1e:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3da7fd,'subUnitId':_0xdcdbbe,'op':_0x5ee9c9,'objects':_0x1b5239,'type':_univerjs_sheets_drawing[_0x4da424(0x1b1)][_0x4da424(0x182)]}},{'id':_univerjs_sheets_drawing[_0x4da424(0x161)]['id'],'params':[_0x3da7fd]},..._0x331c11[_0x4da424(0x133)]],_0x31b074=[...(_0x116ee9=_0x331c11['preUndos'])!==null&&_0x116ee9!==void 0x0?_0x116ee9:[],{'id':_univerjs_sheets_drawing[_0x4da424(0x1ac)]['id'],'params':{'unitId':_0x3da7fd,'subUnitId':_0xdcdbbe,'op':_0x29196a,'objects':_0x1b5239,'type':_univerjs_sheets_drawing[_0x4da424(0x1b1)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x4da424(0x161)]['id'],'params':[_0x3da7fd]},..._0x331c11[_0x4da424(0x11c)]];if((0x0,_univerjs_core[_0x4da424(0x1ae)])(_0x437027,_0xa8bd8d)[_0x4da424(0x16d)])return _0x2e6c6d[_0x4da424(0x118)]({'unitID':_0x3da7fd,'undoMutations':_0x31b074,'redoMutations':_0x437027}),!![];return![];}},SetSheetsShapeTextVerticalToggleCommand={'type':_univerjs_core[_0x2c3098(0x12a)]['COMMAND'],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x2c43fb,_0x5ba8b5)=>{const _0x7dd3e0=_0x2c3098;var _0x3522f0;const _0xcd7ae=(0x0,_univerjs_sheets[_0x7dd3e0(0x1b2)])(_0x2c43fb[_0x7dd3e0(0x162)](_univerjs_core[_0x7dd3e0(0x142)]),_0x5ba8b5);if(!_0xcd7ae)return![];const {unitId:_0xb2bdc7,subUnitId:_0x579a16}=_0xcd7ae,{shapeId:_0x395e35}=_0x5ba8b5,_0x263140=_0x2c43fb['get'](SheetsShapeService)['getShapeModel'](_0xb2bdc7,_0x579a16,_0x395e35);if(!_0x263140)return![];const _0x8eaaed=_0x263140[_0x7dd3e0(0x17b)](),_0x579c6d=(_0x3522f0=_0x8eaaed===null||_0x8eaaed===void 0x0?void 0x0:_0x8eaaed['isHorizontal'])!==null&&_0x3522f0!==void 0x0?_0x3522f0:!![],_0x54f8ac=!_0x579c6d,_0x365eb5=_0x2c43fb[_0x7dd3e0(0x162)](_univerjs_core[_0x7dd3e0(0x172)]),_0x12c421=_0x2c43fb[_0x7dd3e0(0x162)](_univerjs_core['IUndoRedoService']),_0x201a54={'unitId':_0xb2bdc7,'subUnitId':_0x579a16,'shapeId':_0x395e35,'shapeData':{'shapeText':{'isHorizontal':_0x54f8ac}}},_0x57e1db={'unitId':_0xb2bdc7,'subUnitId':_0x579a16,'shapeId':_0x395e35,'shapeData':{'shapeText':{'isHorizontal':_0x579c6d}}},_0x5d06db=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x201a54}],_0x2e71d0=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x57e1db}];if((0x0,_univerjs_core[_0x7dd3e0(0x1ae)])(_0x5d06db,_0x365eb5)[_0x7dd3e0(0x16d)])return _0x12c421[_0x7dd3e0(0x118)]({'unitID':_0xb2bdc7,'undoMutations':_0x2e71d0,'redoMutations':_0x5d06db}),!![];return![];}},UpdateConnectorRelationCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x2c3098(0x14c),'handler':(_0x4f7d3e,_0x55a96e)=>{const _0x4e10f2=_0x2c3098;var _0x500789,_0x39ad21,_0x51b0b9,_0x1b0d25;const _0x53bcf9=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x4f7d3e['get'](_univerjs_core[_0x4e10f2(0x142)]),_0x55a96e);if(!_0x53bcf9)return![];const _0x292353=_0x4f7d3e[_0x4e10f2(0x162)](_univerjs_sheets[_0x4e10f2(0x13e)]),{unitId:_0x2f26a6,subUnitId:_0x26cba0}=_0x53bcf9,_0x34fc1f=_0x292353[_0x4e10f2(0x19f)](_0x2f26a6,_0x26cba0);if(!_0x34fc1f)return![];const _0x3debb2=_0x4f7d3e['get'](_univerjs_sheets_drawing[_0x4e10f2(0xf8)]),{connectorShapeId:_0x2c559a,width:_0xfaff0d,height:_0x57e81d,left:_0x4bc074,top:_0x66f05a,flipX:_0x1dcb8e,flipY:_0x5b1cb2,rotation:_0x5d0eee,oldAdjustValues:_0x18b153,newAdjustValues:_0x4d2500,oldLineType:_0x351faf,newLineType:_0x96a465,oldRelation:_0x2e265b,newRelation:_0x2ba02a}=_0x55a96e,_0x3be335=_0x3debb2[_0x4e10f2(0x17a)]({'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'drawingId':_0x2c559a});if(!_0x3be335)return![];const _0x95bf8a=_0x4f7d3e[_0x4e10f2(0x162)](SheetsShapeService)[_0x4e10f2(0xfa)](_0x2f26a6,_0x26cba0,_0x2c559a);if(!_0x95bf8a)return![];const _0x4955ef=_0x4f7d3e[_0x4e10f2(0x162)](_univerjs_core[_0x4e10f2(0x172)]),_0x3a498e=_0x4f7d3e['get'](_univerjs_core['IUndoRedoService']),_0x2f4ff4=_0x4f7d3e['get'](_univerjs_sheets[_0x4e10f2(0x18f)]),_0x50f5fd={..._0x3be335[_0x4e10f2(0xff)],'width':_0xfaff0d,'height':_0x57e81d,'left':_0x4bc074,'top':_0x66f05a,'flipX':_0x1dcb8e,'flipY':_0x5b1cb2,'angle':(_0x500789=_0x5d0eee!==null&&_0x5d0eee!==void 0x0?_0x5d0eee:(_0x39ad21=_0x3be335[_0x4e10f2(0xff)])===null||_0x39ad21===void 0x0?void 0x0:_0x39ad21[_0x4e10f2(0xfb)])!==null&&_0x500789!==void 0x0?_0x500789:0x0},_0x178143=(0x0,_univerjs_sheets_drawing[_0x4e10f2(0x10f)])(_0x50f5fd,_0x34fc1f),_0xa44899=(0x0,_univerjs_sheets_drawing[_0x4e10f2(0x10a)])(_0x50f5fd,_0x34fc1f),_0x452493=_0x95bf8a[_0x4e10f2(0x111)](),_0x4250e3=_0x95bf8a[_0x4e10f2(0x154)](),_0x141e2b={'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'drawingId':_0x2c559a,'drawingType':_univerjs_core[_0x4e10f2(0x100)][_0x4e10f2(0x198)],'sheetTransform':_0x178143,'transform':_0x50f5fd,'data':{'shapeType':_0x96a465||_0x351faf||_0x452493,'shapeData':{..._0x4250e3,'adjustValues':_0x4d2500||_0x18b153||(_0x4250e3===null||_0x4250e3===void 0x0?void 0x0:_0x4250e3[_0x4e10f2(0x1a0)]),'relation':_0x2ba02a||_0x2e265b||(_0x4250e3===null||_0x4250e3===void 0x0?void 0x0:_0x4250e3[_0x4e10f2(0x180)])}},'axisAlignSheetTransform':_0xa44899,'allowTransform':!![]},{undo:_0x2d19a0,redo:_0x2cc265,objects:_0x199d0f}=_0x3debb2[_0x4e10f2(0x19a)]([_0x141e2b]),_0x1593d3=_0x2f4ff4['onCommandExecute']({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x2f26a6,'drawings':[_0x141e2b]}}),_0x8ddece=[...(_0x51b0b9=_0x1593d3['preRedos'])!==null&&_0x51b0b9!==void 0x0?_0x51b0b9:[],{'id':_univerjs_sheets_drawing[_0x4e10f2(0x1ac)]['id'],'params':{'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'op':_0x2cc265,'objects':_0x199d0f,'type':_univerjs_sheets_drawing[_0x4e10f2(0x1b1)][_0x4e10f2(0x182)]}},{'id':_univerjs_sheets_drawing[_0x4e10f2(0x161)]['id'],'params':[_0x2f26a6]},..._0x1593d3[_0x4e10f2(0x133)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'shapeId':_0x2c559a,'shapeType':_0x96a465,'shapeData':{'adjustValues':_0x4d2500,'relation':_0x2ba02a}}}],_0x252f6d=[...(_0x1b0d25=_0x1593d3['preUndos'])!==null&&_0x1b0d25!==void 0x0?_0x1b0d25:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'op':_0x2d19a0,'objects':_0x199d0f,'type':_univerjs_sheets_drawing[_0x4e10f2(0x1b1)][_0x4e10f2(0x182)]}},{'id':_univerjs_sheets_drawing[_0x4e10f2(0x161)]['id'],'params':[_0x2f26a6]},..._0x1593d3['undos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'shapeId':_0x2c559a,'shapeType':_0x452493,'shapeData':{..._0x4250e3,'adjustValues':_0x18b153||(_0x4250e3===null||_0x4250e3===void 0x0?void 0x0:_0x4250e3[_0x4e10f2(0x1a0)]),'relation':_0x2e265b||(_0x4250e3===null||_0x4250e3===void 0x0?void 0x0:_0x4250e3[_0x4e10f2(0x180)])}}}];if((0x0,_univerjs_core[_0x4e10f2(0x1ae)])(_0x8ddece,_0x4955ef)[_0x4e10f2(0x16d)])return _0x3a498e['pushUndoRedo']({'unitID':_0x2f26a6,'undoMutations':_0x252f6d,'redoMutations':_0x8ddece}),!![];return![];}},UpdateLineShapeResizeCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':_0x2c3098(0x110),'handler':(_0x411e01,_0x11eaa1)=>{const _0x270858=_0x2c3098;var _0x3b20b0,_0x5e36ed;const _0x139225=(0x0,_univerjs_sheets[_0x270858(0x1b2)])(_0x411e01['get'](_univerjs_core['IUniverInstanceService']),_0x11eaa1);if(!_0x139225)return![];const _0x2b66f7=_0x411e01[_0x270858(0x162)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x5eb53a,subUnitId:_0x3c9a98}=_0x139225,_0x177168=_0x2b66f7[_0x270858(0x19f)](_0x5eb53a,_0x3c9a98);if(!_0x177168)return![];const _0x6f0bf1=_0x411e01[_0x270858(0x162)](_univerjs_sheets_drawing[_0x270858(0xf8)]),{shapeId:_0x21bbaf,width:_0x144932,height:_0x3af195,left:_0xff2f83,top:_0x52474d,flipX:_0x5a20da,flipY:_0x865f25,angle:_0x4fcb27,oldAdjustValues:_0x3f7430,newAdjustValues:_0x3a20e2,oldLineType:_0x43c630,newLineType:_0x1679d9}=_0x11eaa1,_0x420218=_0x6f0bf1[_0x270858(0x17a)]({'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'drawingId':_0x21bbaf});if(!_0x420218)return![];const _0x6bf69d=_0x411e01[_0x270858(0x162)](SheetsShapeService)[_0x270858(0xfa)](_0x5eb53a,_0x3c9a98,_0x21bbaf);if(!_0x6bf69d)return![];const _0x1b4465=_0x411e01[_0x270858(0x162)](_univerjs_core[_0x270858(0x172)]),_0x19c9ac=_0x411e01['get'](_univerjs_core[_0x270858(0x12b)]),_0x52da51=_0x411e01['get'](_univerjs_sheets[_0x270858(0x18f)]),_0x19d9be={..._0x420218['transform'],'width':_0x144932,'height':_0x3af195,'left':_0xff2f83,'top':_0x52474d,'flipX':_0x5a20da,'flipY':_0x865f25,'angle':_0x4fcb27},_0x1472f4=(0x0,_univerjs_sheets_drawing[_0x270858(0x10f)])(_0x19d9be,_0x177168),_0x915e27=(0x0,_univerjs_sheets_drawing[_0x270858(0x10a)])(_0x19d9be,_0x177168),_0x567296=_0x6bf69d['getShapeType'](),_0x527778=_0x6bf69d[_0x270858(0x154)](),_0x38f0ea={'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'drawingId':_0x21bbaf,'drawingType':_univerjs_core[_0x270858(0x100)]['DRAWING_SHAPE'],'sheetTransform':_0x1472f4,'transform':_0x19d9be,'data':{'shapeType':_0x1679d9||_0x43c630||_0x567296,'shapeData':{..._0x527778,'adjustValues':_0x3a20e2||_0x3f7430||(_0x527778===null||_0x527778===void 0x0?void 0x0:_0x527778[_0x270858(0x1a0)])}},'axisAlignSheetTransform':_0x915e27,'allowTransform':!![]},{undo:_0x207937,redo:_0x3d74dc,objects:_0x1583ab}=_0x6f0bf1['getBatchUpdateOp']([_0x38f0ea]),_0x4d69f2=_0x52da51[_0x270858(0x114)]({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x5eb53a,'drawings':[_0x38f0ea]}}),_0x455b7f=[...(_0x3b20b0=_0x4d69f2[_0x270858(0x120)])!==null&&_0x3b20b0!==void 0x0?_0x3b20b0:[],{'id':_univerjs_sheets_drawing[_0x270858(0x1ac)]['id'],'params':{'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'op':_0x3d74dc,'objects':_0x1583ab,'type':_univerjs_sheets_drawing['DrawingApplyType']['UPDATE']}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5eb53a]},..._0x4d69f2['redos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'shapeId':_0x21bbaf,'shapeType':_0x1679d9,'shapeData':{'adjustValues':_0x3a20e2}}}],_0x21eb60=[...(_0x5e36ed=_0x4d69f2[_0x270858(0x1b7)])!==null&&_0x5e36ed!==void 0x0?_0x5e36ed:[],{'id':_univerjs_sheets_drawing[_0x270858(0x1ac)]['id'],'params':{'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'op':_0x207937,'objects':_0x1583ab,'type':_univerjs_sheets_drawing[_0x270858(0x1b1)][_0x270858(0x182)]}},{'id':_univerjs_sheets_drawing[_0x270858(0x161)]['id'],'params':[_0x5eb53a]},..._0x4d69f2['undos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'shapeId':_0x21bbaf,'shapeType':_0x567296,'shapeData':{..._0x527778,'adjustValues':_0x3f7430||(_0x527778===null||_0x527778===void 0x0?void 0x0:_0x527778[_0x270858(0x1a0)])}}}];if((0x0,_univerjs_core['sequenceExecute'])(_0x455b7f,_0x1b4465)[_0x270858(0x16d)])return _0x19c9ac[_0x270858(0x118)]({'unitID':_0x5eb53a,'undoMutations':_0x21eb60,'redoMutations':_0x455b7f}),!![];return![];}},UpdateSheetsShapeTypeMutation={'id':'sheet.mutation.update-shape-type','type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x108)],'handler':(_0x2c6ee8,_0x1f689f)=>{const _0x4be658=_0x2c3098,{unitId:_0x1553d6,subUnitId:_0x31cbd0,shapeType:_0x560252,shapeId:_0x8675f6,shapeData:_0x224202}=_0x1f689f,_0x54439b=_0x2c6ee8['get'](SheetsShapeService)[_0x4be658(0xfa)](_0x1553d6,_0x31cbd0,_0x8675f6);if(_0x54439b){_0x54439b[_0x4be658(0x1b0)](_0x560252);if(_0x224202)_0x54439b===null||_0x54439b===void 0x0||_0x54439b[_0x4be658(0x19e)](_0x224202);}return!![];}},UpdateSheetsShapeTypeCommand={'id':_0x2c3098(0x1ab),'type':_univerjs_core['CommandType']['COMMAND'],'handler':(_0x5055de,_0x9f6078)=>{const _0x5e3a81=_0x2c3098;if(!_0x9f6078)return![];const _0x4aac43=_0x5055de[_0x5e3a81(0x162)](_univerjs_core[_0x5e3a81(0x172)]),_0xbce55=_0x5055de[_0x5e3a81(0x162)](SheetsShapeService),_0x49a0a6=_0x5055de[_0x5e3a81(0x162)](_univerjs_core[_0x5e3a81(0x12b)]),_0x40e0a5=[],_0x1f9b1c=[],{unitId:_0x3449da,subUnitId:_0x343888,shapeId:_0x15d7cd,shapeType:_0x70c365,shapeData:_0x5a0e64}=_0x9f6078,_0x49ffa5=_0xbce55[_0x5e3a81(0xfa)](_0x3449da,_0x343888,_0x15d7cd);if(_0x49ffa5){const _0x1ffaf6=_0x49ffa5['getShapeType'](),_0x3a0d56=Object[_0x5e3a81(0x14b)]({},_0x49ffa5[_0x5e3a81(0x154)]()),_0x489fab={'unitId':_0x3449da,'subUnitId':_0x343888,'shapeId':_0x15d7cd,'shapeType':_0x70c365,'shapeData':_0x5a0e64},_0x44c049={'unitId':_0x3449da,'subUnitId':_0x343888,'shapeId':_0x15d7cd,'shapeType':_0x1ffaf6,'shapeData':_0x3a0d56};_0x40e0a5['push']({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x489fab}),_0x1f9b1c['push']({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x44c049});if(_0x40e0a5[_0x5e3a81(0x1a8)](_0x1c91f4=>_0x4aac43['syncExecuteCommand'](_0x1c91f4['id'],_0x1c91f4[_0x5e3a81(0x15f)])))_0x49a0a6[_0x5e3a81(0x118)]({'unitID':_0x3449da,'redoMutations':[..._0x40e0a5],'undoMutations':[..._0x1f9b1c]});return!![];}return![];}};var name=_0x2c3098(0x131),version='0.22.1';const SHEETS_SHAPE_PLUGIN_CONFIG_KEY=_0x2c3098(0x178),configSymbol=Symbol(SHEETS_SHAPE_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let SheetsShapeController=class SheetsShapeController extends _univerjs_core['Disposable']{constructor(_0x4babb1,_0x3fe68a,_0x42ad40,_0x2df5d2,_0x1239db){const _0x15c355=_0x2c3098;super(),this['_commandService']=_0x4babb1,this[_0x15c355(0x1b9)]=_0x3fe68a,this[_0x15c355(0x17d)]=_0x42ad40,this[_0x15c355(0x11a)]=_0x2df5d2,this[_0x15c355(0x1a1)]=_0x1239db,this[_0x15c355(0x16a)](),this['_initCommandInterceptor']();}[_0x2c3098(0x16a)](){const _0x5cb22f=_0x2c3098;[InsertShapeCommand,SetShapeDrawingDataCommand,ToggleSheetsShapeFlipCommand,SetSheetsShapeRotateCommand,SetSheetsShapeTextVerticalToggleCommand,UpdateConnectorRelationCommand,UpdateLineShapeResizeCommand,InsertSheetsShapeMutation,RemoveSheetsShapeMutation,UpdateSheetsShapeTypeMutation,UpdateSheetsShapeDataMutation][_0x5cb22f(0x14d)](_0x16141e=>this[_0x5cb22f(0x19b)](this['_commandService'][_0x5cb22f(0x19d)](_0x16141e)));}['_initCommandInterceptor'](){const _0x490cd7=_0x2c3098;this[_0x490cd7(0x19b)](this[_0x490cd7(0x1b9)][_0x490cd7(0x171)]({'getMutations':_0xf337e6=>{const _0x58872d=_0x490cd7;if(_0xf337e6['id']===_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id']){const {drawings:_0x744fd}=_0xf337e6[_0x58872d(0x15f)],_0x5e58c3=_0x744fd['filter'](_0xf0076e=>_0xf0076e['drawingType']===_univerjs_core[_0x58872d(0x100)][_0x58872d(0x198)]);if(_0x5e58c3[_0x58872d(0x1b5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x28946d=[],_0x444e77=[];return _0x5e58c3[_0x58872d(0x14d)](_0x508c96=>{const _0x2e5240=_0x58872d,{unitId:_0x2cf76b,subUnitId:_0x31b49f,drawingId:_0x347039}=_0x508c96,_0x30e6d4=this[_0x2e5240(0x11a)][_0x2e5240(0xfa)](_0x2cf76b,_0x31b49f,_0x347039);if(!_0x30e6d4)throw new TypeError(_0x2e5240(0x11e)+_0x30e6d4);_0x28946d['push']({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x2cf76b,'subUnitId':_0x31b49f,'shapeId':_0x347039}}),_0x444e77[_0x2e5240(0x115)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x2cf76b,'subUnitId':_0x31b49f,'shapeId':_0x347039,'shapeType':_0x30e6d4[_0x2e5240(0x111)](),'shapeData':_0x30e6d4[_0x2e5240(0x154)]()}});const _0x5a3b9d=this[_0x2e5240(0x11a)][_0x2e5240(0x149)](_0x2cf76b,_0x31b49f,_0x347039);if(_0x5a3b9d)for(const _0x11974a of _0x5a3b9d){const _0x44ebd6=_0x11974a[_0x2e5240(0x14f)],_0x133a4a=_0x11974a[_0x2e5240(0x168)],_0x23b25c=_0x133a4a?{'from':void 0x0}:{'to':void 0x0},_0x55da6d=_0x133a4a?{'from':{'shapeId':_0x11974a[_0x2e5240(0x143)],'cxnIndex':_0x11974a['cxnIndex']}}:{'to':{'shapeId':_0x11974a[_0x2e5240(0x143)],'cxnIndex':_0x11974a['cxnIndex']}};_0x28946d[_0x2e5240(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2cf76b,'subUnitId':_0x31b49f,'shapeId':_0x44ebd6,'shapeData':{'relation':_0x23b25c}}}),_0x444e77[_0x2e5240(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2cf76b,'subUnitId':_0x31b49f,'shapeId':_0x44ebd6,'shapeData':{'relation':_0x55da6d}}});}}),{'preRedos':_0x28946d,'redos':[],'preUndos':[],'undos':_0x444e77};}if(_0xf337e6['id']===_univerjs_sheets_drawing[_0x58872d(0x12d)]['id']){const {drawings:_0x3ce4e4}=_0xf337e6[_0x58872d(0x15f)],_0xa0cb28=_0x3ce4e4[_0x58872d(0x164)](_0x183dbb=>_0x183dbb[_0x58872d(0x16e)]===_univerjs_core[_0x58872d(0x100)]['DRAWING_SHAPE']);if(_0xa0cb28[_0x58872d(0x1b5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x48bd7f=[],_0x1d0f06=[];for(const _0x564291 of _0xa0cb28){const {unitId:_0x4279cf,subUnitId:_0x457e8c,drawingId:_0x3baeb3,transform:_0x5cdfc5}=_0x564291;if(!_0x4279cf||!_0x457e8c||!_0x3baeb3||!_0x5cdfc5)continue;const _0x5bc0d9=this[_0x58872d(0x11a)][_0x58872d(0xfa)](_0x4279cf,_0x457e8c,_0x3baeb3);if(!_0x5bc0d9)throw new TypeError(_0x58872d(0x11e)+_0x5bc0d9);if((0x0,_univerjs_pro_engine_shape[_0x58872d(0x1b3)])(_0x5bc0d9[_0x58872d(0x111)]())){const _0x45a164=this[_0x58872d(0x11a)]['getLineShapeRelation'](_0x4279cf,_0x457e8c,_0x3baeb3),_0x2070b1={'from':void 0x0,'to':void 0x0};_0x45a164&&(_0x48bd7f[_0x58872d(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x4279cf,'subUnitId':_0x457e8c,'shapeId':_0x3baeb3,'shapeData':{'relation':_0x2070b1}}}),_0x1d0f06[_0x58872d(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x4279cf,'subUnitId':_0x457e8c,'shapeId':_0x3baeb3,'shapeData':{'relation':_0x45a164}}}));}else{const _0x329671=this['_sheetsShapeService'][_0x58872d(0x149)](_0x4279cf,_0x457e8c,_0x3baeb3);if(_0x329671&&_0x329671[_0x58872d(0x1b5)]>0x0)for(const _0x35fee4 of _0x329671){const _0x3b8230=_0x35fee4[_0x58872d(0x14f)],_0x376a0f=_0x35fee4['isFrom'],_0x386800=this['_sheetsShapeService'][_0x58872d(0xfa)](_0x4279cf,_0x457e8c,_0x3b8230);if(!_0x386800)continue;const _0x267544=_0x386800[_0x58872d(0x1b4)](),_0x10ce4c=_0x386800[_0x58872d(0x196)]();if(_0x267544&&_0x10ce4c)this[_0x58872d(0x1bc)](_0x4279cf,_0x457e8c,_0x3b8230,_0x386800,_0x267544,_0x10ce4c,_0x48bd7f,_0x1d0f06,_0x3baeb3,_0x5cdfc5);else this['_addLineFollowShapeUpdates'](_0x4279cf,_0x457e8c,_0x3b8230,_0x386800,_0x376a0f?_0x267544:_0x10ce4c,_0x376a0f,_0x48bd7f,_0x1d0f06,_0x3baeb3,_0x5cdfc5);}}}return{'preRedos':[],'redos':_0x48bd7f,'preUndos':_0x1d0f06,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x2c3098(0xf6)](_0x208cb4,_0x4916c0,_0x4aef09,_0x5b7669,_0x297d4a){const _0x17b2a9=_0x2c3098;if(!_0x4916c0||!_0x4aef09)return null;const {shapeId:_0x57642b,cxnIndex:_0x32c09b}=_0x208cb4,_0x1f7def=this[_0x17b2a9(0x11a)][_0x17b2a9(0xfa)](_0x4916c0,_0x4aef09,_0x57642b);if(!_0x1f7def)return null;const _0x1871a8=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x4916c0,'subUnitId':_0x4aef09,'drawingId':_0x57642b});if(!(_0x1871a8===null||_0x1871a8===void 0x0?void 0x0:_0x1871a8['transform']))return null;let {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x1629ff}=_0x1871a8[_0x17b2a9(0xff)];if(_0x297d4a&&_0x5b7669===_0x57642b){var _0x13de63,_0x1c8685,_0x5d73d9,_0x4e732a,_0x50bc2a,_0x3110cf,_0x4d3c05;left=(_0x13de63=_0x297d4a[_0x17b2a9(0x190)])!==null&&_0x13de63!==void 0x0?_0x13de63:left,top=(_0x1c8685=_0x297d4a[_0x17b2a9(0x156)])!==null&&_0x1c8685!==void 0x0?_0x1c8685:top,width=(_0x5d73d9=_0x297d4a[_0x17b2a9(0x1ad)])!==null&&_0x5d73d9!==void 0x0?_0x5d73d9:width,height=(_0x4e732a=_0x297d4a['height'])!==null&&_0x4e732a!==void 0x0?_0x4e732a:height,flipX=(_0x50bc2a=_0x297d4a[_0x17b2a9(0x1bb)])!==null&&_0x50bc2a!==void 0x0?_0x50bc2a:flipX,flipY=(_0x3110cf=_0x297d4a[_0x17b2a9(0x103)])!==null&&_0x3110cf!==void 0x0?_0x3110cf:flipY,_0x1629ff=(_0x4d3c05=_0x297d4a[_0x17b2a9(0xfb)])!==null&&_0x4d3c05!==void 0x0?_0x4d3c05:_0x1629ff;}_0x1f7def['updateContext']({'width':width,'height':height});const _0x5aa436=_0x1f7def['getConnectionSiteList']()[_0x17b2a9(0x199)](_0x251a77=>_0x251a77[_0x17b2a9(0xfc)]===_0x32c09b);if(!_0x5aa436)return null;let _0x41a0ef=flipX?width-_0x5aa436['x']:_0x5aa436['x'],_0x3b7f01=flipY?height-_0x5aa436['y']:_0x5aa436['y'];if(_0x1629ff!==0x0&&_0x1629ff!==void 0x0&&_0x1629ff!==null){const _0x590ad9=_0x1629ff*Math['PI']/0xb4,_0x4fcdb5=Math[_0x17b2a9(0x15e)](_0x590ad9),_0x176420=Math['sin'](_0x590ad9),_0x1190b0=width/0x2,_0x29683d=height/0x2,_0x6f6aa8=_0x41a0ef-_0x1190b0,_0x5203b2=_0x3b7f01-_0x29683d;_0x41a0ef=_0x1190b0+_0x6f6aa8*_0x4fcdb5-_0x5203b2*_0x176420,_0x3b7f01=_0x29683d+_0x6f6aa8*_0x176420+_0x5203b2*_0x4fcdb5;}_0x41a0ef+=left,_0x3b7f01+=top;let _0x4f1a56=_0x5aa436[_0x17b2a9(0x1a7)]/0xea60;if(flipX)_0x4f1a56=0xb4-_0x4f1a56;if(flipY)_0x4f1a56=-_0x4f1a56;_0x4f1a56+=_0x1629ff||0x0,_0x4f1a56=(_0x4f1a56%0x168+0x168)%0x168;const _0x1417f7=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x1629ff||0x0);return{'point':{'x':_0x41a0ef,'y':_0x3b7f01},'angle':_0x4f1a56,'bounds':_0x1417f7};}[_0x2c3098(0x1bc)](_0x38384b,_0x490268,_0x208631,_0x1c5824,_0x51457c,_0x324038,_0x242238,_0x174131,_0x2f8bae,_0x499af6){const _0x118bdd=_0x2c3098,_0x5c5e9b=this[_0x118bdd(0x17d)][_0x118bdd(0x19f)](_0x38384b,_0x490268);if(!_0x5c5e9b)return;const _0x5d259e=_0x1c5824['getShapeRelation'](),_0x4687cf=_0x1c5824['getAdjustNames'](),_0x2ad0f9={},_0x3d70fd={};_0x4687cf[_0x118bdd(0x14d)](_0x186201=>{const _0x142cda=_0x118bdd,_0x5b43a5=_0x1c5824[_0x142cda(0x119)](_0x186201);_0x3d70fd[_0x186201]=_0x5b43a5!==null&&_0x5b43a5!==void 0x0?_0x5b43a5:0x0;});const _0x2f51ff=this['_getConnectPointInfo'](_0x51457c,_0x38384b,_0x490268,_0x2f8bae,_0x499af6),_0x950da4=this[_0x118bdd(0xf6)](_0x324038,_0x38384b,_0x490268,_0x2f8bae,_0x499af6);if(_0x2f51ff&&_0x950da4){const _0xaa7333=_0x1c5824[_0x118bdd(0x111)](),_0x31646d=(0x0,_univerjs_pro_engine_shape[_0x118bdd(0x16f)])(_0x2f51ff,_0x950da4,_0xaa7333);let _0x38014f=_0xaa7333;if(_0x31646d){const _0x5ef1e6=(0x0,_univerjs_pro_engine_shape[_0x118bdd(0x141)])(_0x31646d,_0x1c5824[_0x118bdd(0x111)]()),_0xff7540=this['_drawingManagerService'][_0x118bdd(0x135)](_0x38384b,_0x490268);if(_0xff7540&&_0xff7540[_0x208631]){const _0x276764=_0xff7540[_0x208631];_0x38014f=_0x5ef1e6[_0x118bdd(0x122)];for(const [_0x5a56ae,_0x432f7f]of Object[_0x118bdd(0x11b)](_0x5ef1e6[_0x118bdd(0x1a0)]))_0x2ad0f9[_0x5a56ae]=_0x432f7f;const _0xf6d96b={..._0x276764[_0x118bdd(0xff)],'width':_0x5ef1e6['worldRect']['width'],'height':_0x5ef1e6[_0x118bdd(0x177)]['height'],'left':_0x5ef1e6[_0x118bdd(0x177)]['left'],'top':_0x5ef1e6[_0x118bdd(0x177)][_0x118bdd(0x156)],'flipX':_0x5ef1e6[_0x118bdd(0x177)][_0x118bdd(0x1bb)],'flipY':_0x5ef1e6[_0x118bdd(0x177)][_0x118bdd(0x103)],'angle':_0x5ef1e6[_0x118bdd(0x136)]},_0x1efb20=(0x0,_univerjs_sheets_drawing[_0x118bdd(0x10f)])(_0xf6d96b,_0x5c5e9b),_0x4c75f8=(0x0,_univerjs_sheets_drawing['transformToAxisAlignPosition'])(_0xf6d96b,_0x5c5e9b),_0x51d458={'unitId':_0x38384b,'subUnitId':_0x490268,'drawingType':_univerjs_core[_0x118bdd(0x100)][_0x118bdd(0x198)],'drawingId':_0x208631,'transform':_0xf6d96b,'sheetTransform':_0x1efb20,'axisAlignSheetTransform':_0x4c75f8},{unitId:_0x4a759c,subUnitId:_0x140a0c,undo:_0xbc0549,redo:_0x816eeb,objects:_0x9f19cf}=this[_0x118bdd(0x1a1)][_0x118bdd(0x19a)]([_0x51d458]);_0x242238[_0x118bdd(0x115)]({'id':_univerjs_sheets_drawing[_0x118bdd(0x1ac)]['id'],'params':{'unitId':_0x4a759c,'subUnitId':_0x140a0c,'op':_0x816eeb,'objects':_0x9f19cf,'type':_univerjs_sheets_drawing[_0x118bdd(0x1b1)][_0x118bdd(0x182)]}}),_0x174131[_0x118bdd(0x115)]({'id':_univerjs_sheets_drawing[_0x118bdd(0x1ac)]['id'],'params':{'unitId':_0x4a759c,'subUnitId':_0x140a0c,'op':_0xbc0549,'objects':_0x9f19cf,'type':_univerjs_sheets_drawing[_0x118bdd(0x1b1)][_0x118bdd(0x182)]}});}_0x1c5824[_0x118bdd(0x121)]();}_0x242238[_0x118bdd(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x38384b,'subUnitId':_0x490268,'shapeId':_0x208631,'shapeType':_0x38014f,'shapeData':{'adjustValues':_0x2ad0f9,'relation':_0x5d259e}}}),_0x174131[_0x118bdd(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x38384b,'subUnitId':_0x490268,'shapeId':_0x208631,'shapeType':_0xaa7333,'shapeData':{'adjustValues':_0x3d70fd,'relation':_0x5d259e}}});}}[_0x2c3098(0x13c)](_0x308fa6,_0xaf2cc0,_0x161273,_0x501393,_0x27df0e,_0x4ddf32,_0x3bea8a,_0x177e5d,_0x508f04,_0xaa141){const _0x512091=_0x2c3098;var _0x2d52d2;if(!_0x27df0e)return;const _0x369884=this[_0x512091(0x17d)][_0x512091(0x19f)](_0x308fa6,_0xaf2cc0);if(!_0x369884)return;const _0x48f556=(_0x2d52d2=this[_0x512091(0x1a1)][_0x512091(0x17a)]({'unitId':_0x308fa6,'subUnitId':_0xaf2cc0,'drawingId':_0x508f04}))===null||_0x2d52d2===void 0x0?void 0x0:_0x2d52d2[_0x512091(0xff)];if(!_0x48f556)return;const _0x406872=_0x48f556[_0x512091(0x190)]!==_0xaa141[_0x512091(0x190)]||_0x48f556[_0x512091(0x156)]!==_0xaa141[_0x512091(0x156)],_0x1d1c1f=_0x48f556[_0x512091(0x1ad)]!==_0xaa141[_0x512091(0x1ad)]||_0x48f556[_0x512091(0x145)]!==_0xaa141[_0x512091(0x145)],_0x1a9444=_0x48f556[_0x512091(0x1bb)]!==_0xaa141[_0x512091(0x1bb)]||_0x48f556[_0x512091(0x103)]!==_0xaa141[_0x512091(0x103)],_0x2fc438=_0x48f556[_0x512091(0xfb)]!==_0xaa141[_0x512091(0xfb)];if(_0x406872&&!_0x1d1c1f&&!_0x1a9444&&!_0x2fc438){var _0x573b93,_0x2a24a2,_0x229618,_0x29a1e1;const _0x276b96=((_0x573b93=_0xaa141[_0x512091(0x190)])!==null&&_0x573b93!==void 0x0?_0x573b93:0x0)-((_0x2a24a2=_0x48f556[_0x512091(0x190)])!==null&&_0x2a24a2!==void 0x0?_0x2a24a2:0x0),_0x1d7459=((_0x229618=_0xaa141[_0x512091(0x156)])!==null&&_0x229618!==void 0x0?_0x229618:0x0)-((_0x29a1e1=_0x48f556[_0x512091(0x156)])!==null&&_0x29a1e1!==void 0x0?_0x29a1e1:0x0),_0x1d211c=this['_drawingManagerService'][_0x512091(0x135)](_0x308fa6,_0xaf2cc0);if(_0x1d211c&&_0x1d211c[_0x161273]){var _0x5e3f47,_0x287cb6,_0x3eb034,_0x204fee;const _0x20516b=_0x1d211c[_0x161273],_0x1f3830={..._0x20516b['transform'],'left':((_0x5e3f47=(_0x287cb6=_0x20516b['transform'])===null||_0x287cb6===void 0x0?void 0x0:_0x287cb6[_0x512091(0x190)])!==null&&_0x5e3f47!==void 0x0?_0x5e3f47:0x0)+_0x276b96,'top':((_0x3eb034=(_0x204fee=_0x20516b[_0x512091(0xff)])===null||_0x204fee===void 0x0?void 0x0:_0x204fee[_0x512091(0x156)])!==null&&_0x3eb034!==void 0x0?_0x3eb034:0x0)+_0x1d7459},_0x48ad3f=(0x0,_univerjs_sheets_drawing[_0x512091(0x10f)])(_0x1f3830,_0x369884),_0x3235a3=(0x0,_univerjs_sheets_drawing[_0x512091(0x10a)])(_0x1f3830,_0x369884),_0x2f2724={'unitId':_0x308fa6,'subUnitId':_0xaf2cc0,'drawingType':_univerjs_core[_0x512091(0x100)][_0x512091(0x198)],'drawingId':_0x161273,'transform':_0x1f3830,'sheetTransform':_0x48ad3f,'axisAlignSheetTransform':_0x3235a3},{unitId:_0x2103fc,subUnitId:_0x28e3ca,undo:_0x5c533e,redo:_0x233304,objects:_0x5b37af}=this['_drawingManagerService'][_0x512091(0x19a)]([_0x2f2724]);_0x3bea8a['push']({'id':_univerjs_sheets_drawing[_0x512091(0x1ac)]['id'],'params':{'unitId':_0x2103fc,'subUnitId':_0x28e3ca,'op':_0x233304,'objects':_0x5b37af,'type':_univerjs_sheets_drawing[_0x512091(0x1b1)][_0x512091(0x182)]}}),_0x177e5d[_0x512091(0x115)]({'id':_univerjs_sheets_drawing[_0x512091(0x1ac)]['id'],'params':{'unitId':_0x2103fc,'subUnitId':_0x28e3ca,'op':_0x5c533e,'objects':_0x5b37af,'type':_univerjs_sheets_drawing[_0x512091(0x1b1)][_0x512091(0x182)]}});}}else{const _0x18e5da=_0x501393[_0x512091(0x1b4)](),_0x23fbb1=_0x501393[_0x512091(0x196)]();this['_addLineRerouteUpdates'](_0x308fa6,_0xaf2cc0,_0x161273,_0x501393,_0x18e5da,_0x23fbb1,_0x3bea8a,_0x177e5d,_0x508f04,_0xaa141);}}};function _0x1dca(_0x1c70e8,_0xe3a771){_0x1c70e8=_0x1c70e8-0xf4;const _0x494705=_0x4947();let _0x1dca4f=_0x494705[_0x1c70e8];return _0x1dca4f;}SheetsShapeController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x2c3098(0x1ba)])(_univerjs_sheets['SheetInterceptorService'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x2c3098(0x13e)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x2c3098(0x1ba)])(SheetsShapeService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x2c3098(0x1ba)])(_univerjs_drawing[_0x2c3098(0x15c)]))],SheetsShapeController);let UniverSheetsShapePlugin=class UniverSheetsShapePlugin extends _univerjs_core['Plugin']{constructor(_0xfb6b35=defaultPluginConfig,_0x3854b0,_0x1730e9,_0x146b63){const _0x4f4dea=_0x2c3098;super(),this[_0x4f4dea(0x197)]=_0xfb6b35,this[_0x4f4dea(0x163)]=_0x3854b0,this[_0x4f4dea(0x10d)]=_0x1730e9,this[_0x4f4dea(0x1af)]=_0x146b63;const {..._0x55dc87}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this[_0x4f4dea(0x197)]);this['_configService'][_0x4f4dea(0x175)](SHEETS_SHAPE_PLUGIN_CONFIG_KEY,_0x55dc87);}[_0x2c3098(0x10c)](){const _0x2f49a4=_0x2c3098,_0x397c63=this[_0x2f49a4(0x163)];[[SheetShapeModelManager],[SheetsShapeService],[SheetsShapeController]]['forEach'](_0xb86c88=>_0x397c63[_0x2f49a4(0x126)](_0xb86c88)),(0x0,_univerjs_core['touchDependencies'])(_0x397c63,[[SheetsShapeService],[SheetsShapeController]]);}};_defineProperty(UniverSheetsShapePlugin,_0x2c3098(0x1a3),_univerjs_core[_0x2c3098(0x104)][_0x2c3098(0x1b8)]),_defineProperty(UniverSheetsShapePlugin,_0x2c3098(0x105),_0x2c3098(0xf7)),_defineProperty(UniverSheetsShapePlugin,_0x2c3098(0x10b),name),_defineProperty(UniverSheetsShapePlugin,_0x2c3098(0x152),version),UniverSheetsShapePlugin=__decorate([(0x0,_univerjs_core[_0x2c3098(0x17c)])(_univerjs_pro_license[_0x2c3098(0x176)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x2c3098(0x172)]),__decorateParam(0x3,_univerjs_core[_0x2c3098(0x16b)])],UniverSheetsShapePlugin),exports[_0x2c3098(0x193)]=DEFAULT_SHAPE_HEIGHT,exports[_0x2c3098(0x15a)]=DEFAULT_SHAPE_WIDTH,exports[_0x2c3098(0xf9)]=InsertShapeCommand,exports[_0x2c3098(0x18d)]=InsertSheetsShapeMutation,exports[_0x2c3098(0x129)]=RemoveSheetsShapeMutation,exports[_0x2c3098(0x167)]=SetShapeDrawingDataCommand,exports['SetSheetsShapeRotateCommand']=SetSheetsShapeRotateCommand,exports[_0x2c3098(0x151)]=SetSheetsShapeTextVerticalToggleCommand,Object[_0x2c3098(0xf4)](exports,_0x2c3098(0x188),{'enumerable':!![],'get':function(){return SheetsShapeService;}}),exports[_0x2c3098(0x17e)]=ToggleSheetsShapeFlipCommand,Object[_0x2c3098(0xf4)](exports,_0x2c3098(0x137),{'enumerable':!![],'get':function(){return UniverSheetsShapePlugin;}}),exports[_0x2c3098(0x139)]=UpdateConnectorRelationCommand,exports[_0x2c3098(0x130)]=UpdateLineShapeResizeCommand,exports[_0x2c3098(0x15b)]=UpdateSheetsShapeDataMutation,exports[_0x2c3098(0x1b6)]=UpdateSheetsShapeTypeCommand,exports['UpdateSheetsShapeTypeMutation']=UpdateSheetsShapeTypeMutation;
1
+ const _0x3015ca=_0x255b;(function(_0x3ea6ee,_0x2a16b8){const _0x2d2d20=_0x255b,_0x1f974c=_0x3ea6ee();while(!![]){try{const _0x472691=-parseInt(_0x2d2d20(0x12e))/0x1+-parseInt(_0x2d2d20(0x121))/0x2+-parseInt(_0x2d2d20(0xdb))/0x3*(parseInt(_0x2d2d20(0x132))/0x4)+-parseInt(_0x2d2d20(0x114))/0x5*(-parseInt(_0x2d2d20(0x169))/0x6)+parseInt(_0x2d2d20(0x138))/0x7*(parseInt(_0x2d2d20(0xef))/0x8)+parseInt(_0x2d2d20(0x174))/0x9+parseInt(_0x2d2d20(0x139))/0xa;if(_0x472691===_0x2a16b8)break;else _0x1f974c['push'](_0x1f974c['shift']());}catch(_0x3f31dd){_0x1f974c['push'](_0x1f974c['shift']());}}}(_0x3261,0xc0a0a),Object[_0x3015ca(0x10b)](exports,Symbol[_0x3015ca(0x116)],{'value':_0x3015ca(0x152)}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core`),n=require(`@univerjs/sheets`),r=require(`@univerjs/sheets-drawing`),i=require(`@univerjs-pro/license`),a=require(`@univerjs/drawing`);function o(_0x9e3468){'@babel/helpers - typeof';const _0x5bd7bd=_0x3015ca;return o=typeof Symbol==_0x5bd7bd(0xcf)&&typeof Symbol['iterator']=='symbol'?function(_0x584c60){return typeof _0x584c60;}:function(_0x42df6c){const _0x5f72dc=_0x5bd7bd;return _0x42df6c&&typeof Symbol==_0x5f72dc(0xcf)&&_0x42df6c[_0x5f72dc(0x120)]===Symbol&&_0x42df6c!==Symbol[_0x5f72dc(0x145)]?_0x5f72dc(0xe5):typeof _0x42df6c;},o(_0x9e3468);}function s(_0x2bb3d5,_0x432b0f){const _0x35bcc9=_0x3015ca;if(o(_0x2bb3d5)!='object'||!_0x2bb3d5)return _0x2bb3d5;var _0x315290=_0x2bb3d5[Symbol[_0x35bcc9(0x161)]];if(_0x315290!==void 0x0){var _0x2ac78b=_0x315290[_0x35bcc9(0xcb)](_0x2bb3d5,_0x432b0f||_0x35bcc9(0x12c));if(o(_0x2ac78b)!=_0x35bcc9(0xeb))return _0x2ac78b;throw TypeError(_0x35bcc9(0xbc));}return(_0x432b0f===_0x35bcc9(0xc8)?String:Number)(_0x2bb3d5);}function c(_0x231211){const _0xe62bce=_0x3015ca;var _0x3ef8d6=s(_0x231211,_0xe62bce(0xc8));return o(_0x3ef8d6)=='symbol'?_0x3ef8d6:_0x3ef8d6+'';}function l(_0x47e919,_0x17cffe,_0x5526dd){return(_0x17cffe=c(_0x17cffe))in _0x47e919?Object['defineProperty'](_0x47e919,_0x17cffe,{'value':_0x5526dd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x47e919[_0x17cffe]=_0x5526dd,_0x47e919;}var u=class extends t['Disposable']{constructor(){const _0x54f555=_0x3015ca;super(),l(this,_0x54f555(0x118),new Map()),l(this,_0x54f555(0x111),new Set()),l(this,_0x54f555(0xde),new Set());}[_0x3015ca(0x16e)](_0x5af95e,_0x35bb44,_0x38aff8){const _0x42cea2=_0x3015ca;let _0x45e8d4=new e[(_0x42cea2(0x15b))](_0x5af95e,_0x35bb44,_0x38aff8);return this[_0x42cea2(0x118)]['set'](_0x35bb44,_0x45e8d4),(0x0,e['isConnectorShape'])(_0x5af95e)&&this[_0x42cea2(0x111)][_0x42cea2(0xc2)](_0x35bb44),_0x45e8d4;}[_0x3015ca(0xfc)](_0x5d933b){const _0x31279b=_0x3015ca;let _0x1db43f=[];for(let _0x2d7da9 of this['_linesIds']){let _0x330809=this[_0x31279b(0x118)][_0x31279b(0x16a)](_0x2d7da9);if(_0x330809){let _0x4bdcd5=_0x330809[_0x31279b(0x170)]();if(_0x4bdcd5){var _0x5a0865,_0x7c413c;((_0x5a0865=_0x4bdcd5[_0x31279b(0xbf)])==null?void 0x0:_0x5a0865['shapeId'])===_0x5d933b&&_0x1db43f[_0x31279b(0xea)]({..._0x4bdcd5['from'],'lineShapeId':_0x2d7da9,'isFrom':!0x0}),((_0x7c413c=_0x4bdcd5['to'])==null?void 0x0:_0x7c413c[_0x31279b(0xce)])===_0x5d933b&&_0x1db43f[_0x31279b(0xea)]({..._0x4bdcd5['to'],'lineShapeId':_0x2d7da9,'isFrom':!0x1});}}}return _0x1db43f;}[_0x3015ca(0x15a)](_0x442af5){const _0x2cba3e=_0x3015ca;let _0x4d89fa=this['_shapes']['get'](_0x442af5);if(_0x4d89fa)return _0x4d89fa[_0x2cba3e(0x170)]();}[_0x3015ca(0xe1)](_0x3781a4){const _0xf35a38=_0x3015ca;let _0x510be4=this[_0xf35a38(0x118)][_0xf35a38(0x16a)](_0x3781a4);if(_0x510be4)return _0x510be4['getShapeType']();}[_0x3015ca(0xe3)](_0x56f982){const _0x35f853=_0x3015ca;return this[_0x35f853(0x118)]['has'](_0x56f982);}[_0x3015ca(0xf7)](_0x3d5766){const _0x197f5c=_0x3015ca;let _0x34f5ba=this[_0x197f5c(0x118)][_0x197f5c(0x16a)](_0x3d5766);_0x34f5ba&&((0x0,e[_0x197f5c(0x175)])(_0x34f5ba[_0x197f5c(0xe1)]())&&this[_0x197f5c(0x111)][_0x197f5c(0x11d)](_0x3d5766),this[_0x197f5c(0x118)]['delete'](_0x3d5766));}[_0x3015ca(0x107)](){const _0x26f903=_0x3015ca;let _0x4866a2=[];return this[_0x26f903(0x118)]['forEach'](_0x553abd=>{const _0x1dff70=_0x26f903;_0x4866a2[_0x1dff70(0xea)](_0x553abd['toJSON']());}),_0x4866a2;}[_0x3015ca(0x157)](_0x4a9d5c){const _0x5bbf42=_0x3015ca;for(let _0x18288d of _0x4a9d5c){let {id:_0x7d530d,shapeType:_0x3ea7e6}=_0x18288d,_0x2519ba=this[_0x5bbf42(0x16e)](_0x3ea7e6,_0x7d530d,_0x18288d[_0x5bbf42(0xb9)]);_0x2519ba&&_0x2519ba['isLineShape']()&&this[_0x5bbf42(0x111)]['add'](_0x7d530d);}}[_0x3015ca(0x15d)](){const _0x5db211=_0x3015ca;this[_0x5db211(0x130)]||(this[_0x5db211(0x118)]['forEach'](_0x1983fa=>{const _0x3c1a1a=_0x5db211;_0x1983fa[_0x3c1a1a(0x15d)]();}),this['_shapes'][_0x5db211(0x14f)](),this[_0x5db211(0x111)][_0x5db211(0x14f)](),this[_0x5db211(0xde)][_0x5db211(0x14f)](),super[_0x5db211(0x15d)]());}};function d(_0x54b22d,_0x375a63){return function(_0x279112,_0x558a17){_0x375a63(_0x279112,_0x558a17,_0x54b22d);};}function f(_0x138fd3,_0x4ae2e4,_0xf78485,_0x19947d){const _0x5ac5ff=_0x3015ca;var _0x550929=arguments[_0x5ac5ff(0x128)],_0x5851de=_0x550929<0x3?_0x4ae2e4:_0x19947d===null?_0x19947d=Object[_0x5ac5ff(0xd8)](_0x4ae2e4,_0xf78485):_0x19947d,_0x148acf;if(typeof Reflect==_0x5ac5ff(0xeb)&&typeof Reflect[_0x5ac5ff(0xf3)]==_0x5ac5ff(0xcf))_0x5851de=Reflect[_0x5ac5ff(0xf3)](_0x138fd3,_0x4ae2e4,_0xf78485,_0x19947d);else{for(var _0x24163b=_0x138fd3[_0x5ac5ff(0x128)]-0x1;_0x24163b>=0x0;_0x24163b--)(_0x148acf=_0x138fd3[_0x24163b])&&(_0x5851de=(_0x550929<0x3?_0x148acf(_0x5851de):_0x550929>0x3?_0x148acf(_0x4ae2e4,_0xf78485,_0x5851de):_0x148acf(_0x4ae2e4,_0xf78485))||_0x5851de);}return _0x550929>0x3&&_0x5851de&&Object[_0x5ac5ff(0x10b)](_0x4ae2e4,_0xf78485,_0x5851de),_0x5851de;}function _0x3261(){const _0x37735e=['UniverSheetsShapePlugin','setShapeData','INSERT','setShapeType','sheet.command.update-line-shape-resize','getOwnPropertyDescriptor','SetShapeDrawingDataCommand','rotateEnabled','2349111FbzHwG','UPDATE','cos','_groupIds','entries','setConfig','getShapeType','_sheetInterceptorService','hasShape','SheetsShapeService','symbol','getAdjustNames','flipX','generateRandomId','sequenceExecute','push','object','registerCommand','forEach','_addLineRerouteUpdates','1920RQHnEr','redos','getBatchAddOp','computeConnectorRouteLayout','decorate','UniverLicensePlugin','IUndoRedoService','UpdateLineShapeResizeCommand','removeShape','_configService','UpdateSheetsShapeDataMutation','drawingType','sheet.mutation.insert-shape','getBasicShapeRelation','pluginName','getShapeTextData','Disposable','IUniverInstanceService','sheets-shape.config','keys','merge','isFrom','IConfigService','_drawingManagerService','toJSON','width','_ensureShapeModelManager','SheetInterceptorService','defineProperty','@univerjs-pro/sheets-shape','fill','_getConnectPointInfo','angle','interceptCommand','_linesIds','top','getShapeData','1610olhuua','sheet.mutation.update-shape-type','toStringTag','getShapeDataById','_shapes','_addLineFollowShapeUpdates','_serializeShapeForUnit','getDrawingByParam','transformToAxisAlignPosition','delete','_config','filter','constructor','1269718gDxpQp','ang','insertShape','parse','index','result','sheet.command.update-connector-relation','length','ClearSheetDrawingTransformerOperation','InsertSheetDrawingCommand','CommandType','default','COMMAND','1572946mjVBiC','getShapeModel','_disposed','cxnIndex','8cCTack','getAdjustValueByName','DrawingApplyType','getBatchUpdateOp','DRAWING_SHAPE','data','41993PnurBn','21457560MsUBnZ','sheet.command.update-shape-type','UpdateSheetsShapeTypeCommand','sheet.command.set-shape-text-vertical-toggle','SheetSkeletonService','worldRect','Plugin','ISheetDrawingService','getSheetCommandTarget','onCommandExecute','disposeWithMe','params','prototype','flipY','Inject','UNIVER_SHEET','getBasicShapeType','getCellWithCoordByIndex','IResourceManagerService','_injector','_resourcesManagerService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','clear','ensureSkeleton','getCellIndexAndOffsetByPosition','Module','height','_sheetsShapeService','Injector','SHEET_SHAPE_PLUGIN','fromJSON','lineShapeId','SetDrawingApplyMutation','getLineShapeRelation','ShapeModel','ToggleSheetsShapeFlipCommand','dispose','transformToDrawingPosition','find','routeConnectorLineShape','toPrimitive','adjustValues','assign','UniverInstanceType','undos','_sheetSkeletonService','preUndos','stringify','14718vpfeNa','get','relation','startX','DrawingTypeEnum','addShape','getSkeleton','getShapeRelation','preRedos','SetSheetDrawingCommand','_initCommandInterceptor','1687491gLQhAp','isConnectorShape','UpdateConnectorRelationCommand','_initCommands','getDrawingData','rotation','_shapeModelManagerMap','_commandService','borderEnabled','startY','shapeData','sin','RemoveSheetDrawingCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getEndConnectInfo','touchDependencies','from','transform','sheet.command.set-shape-rotate','add','_deserializeShapeForUnit','MUTATION','syncExecuteCommand','set','pushUndoRedo','string','left','getShapeTypeById','call','packageName','SetSheetsShapeTextVerticalToggleCommand','shapeId','function','sheet.command.toggle-shape-flip','resizeEnabled','ICommandService'];_0x3261=function(){return _0x37735e;};return _0x3261();}let p=class extends t[_0x3015ca(0xff)]{constructor(_0x2f7f6e){const _0x36354b=_0x3015ca;super(),this[_0x36354b(0x14d)]=_0x2f7f6e,l(this,_0x36354b(0xb5),new Map()),this['_initSnapshot']();}[_0x3015ca(0x109)](_0x17e8bd,_0x39d558){const _0x3d0060=_0x3015ca;let _0x31b83c=this[_0x3d0060(0xb5)][_0x3d0060(0x16a)](_0x17e8bd);_0x31b83c||(_0x31b83c=new Map(),this[_0x3d0060(0xb5)][_0x3d0060(0xc6)](_0x17e8bd,_0x31b83c));let _0x305765=_0x31b83c[_0x3d0060(0x16a)](_0x39d558);return _0x305765||(_0x305765=new u(),_0x31b83c[_0x3d0060(0xc6)](_0x39d558,_0x305765)),_0x305765;}[_0x3015ca(0x123)](_0x576cbd,_0x1de04c,_0x9a9850,_0x41276e,_0x8c0814){const _0x170539=_0x3015ca;this[_0x170539(0x109)](_0x576cbd,_0x1de04c)[_0x170539(0x16e)](_0x9a9850,_0x41276e,_0x8c0814);}[_0x3015ca(0xf7)](_0x32fe4d,_0x11e946,_0x3eb101){const _0x25712a=_0x3015ca;this[_0x25712a(0x109)](_0x32fe4d,_0x11e946)[_0x25712a(0xf7)](_0x3eb101);}[_0x3015ca(0x149)](_0x3c09c6,_0x45f0bf,_0x1a3f2e){const _0x24a2c2=_0x3015ca;return this[_0x24a2c2(0x109)](_0x3c09c6,_0x45f0bf)[_0x24a2c2(0xe1)](_0x1a3f2e);}['getShapeType'](_0x2a97d5,_0x4cc697,_0x546ad6){const _0x1e7e81=_0x3015ca;return this[_0x1e7e81(0x109)](_0x2a97d5,_0x4cc697)['getShapeType'](_0x546ad6);}[_0x3015ca(0xe3)](_0x6ff37b,_0x351eba,_0x4b7c42){const _0x2a87d2=_0x3015ca;return this[_0x2a87d2(0x109)](_0x6ff37b,_0x351eba)[_0x2a87d2(0xe3)](_0x4b7c42);}[_0x3015ca(0xca)](_0x3c9046,_0x57e9a9,_0x18eea8){return this['_ensureShapeModelManager'](_0x3c9046,_0x57e9a9)['getShapeType'](_0x18eea8);}[_0x3015ca(0x117)](_0x142c03,_0x2c8651,_0x30eb35){const _0x6ed710=_0x3015ca;let _0x879d9f=this[_0x6ed710(0x109)](_0x142c03,_0x2c8651);if(!_0x879d9f[_0x6ed710(0xe1)](_0x30eb35))return;let _0x303475=_0x879d9f[_0x6ed710(0x118)][_0x6ed710(0x16a)](_0x30eb35);if(_0x303475)return _0x303475[_0x6ed710(0x113)]();}[_0x3015ca(0x12f)](_0x1a4120,_0x4c5475,_0x56e87c){const _0x340d91=_0x3015ca;return this[_0x340d91(0x109)](_0x1a4120,_0x4c5475)[_0x340d91(0x118)][_0x340d91(0x16a)](_0x56e87c);}['getBasicShapeRelation'](_0x1bed60,_0x39c809,_0x36f5a6){const _0x24267d=_0x3015ca;return this[_0x24267d(0x109)](_0x1bed60,_0x39c809)['getBasicShapeRelation'](_0x36f5a6);}[_0x3015ca(0x15a)](_0x3d2598,_0x3c5eaf,_0x3c21f8){const _0x27d949=_0x3015ca;let _0x320e98=this[_0x27d949(0x109)](_0x3d2598,_0x3c5eaf)['_shapes'][_0x27d949(0x16a)](_0x3c21f8);if(_0x320e98)return _0x320e98[_0x27d949(0x170)]();}['setShapeType'](){}[_0x3015ca(0x11a)](_0x55c7fe){const _0x41186e=_0x3015ca;let _0x16b198={},_0x227ad5=this[_0x41186e(0xb5)][_0x41186e(0x16a)](_0x55c7fe);return _0x227ad5&&_0x227ad5['forEach']((_0x5f5ca5,_0x31a9ac)=>{const _0x40ab4c=_0x41186e;let _0x1aa9ef=_0x5f5ca5[_0x40ab4c(0x107)]();_0x1aa9ef[_0x40ab4c(0x128)]>0x0&&(_0x16b198[_0x31a9ac]=_0x1aa9ef);}),JSON[_0x41186e(0x168)](_0x16b198);}['_deserializeShapeForUnit'](_0x400ed7,_0x57af7a){const _0x2270cc=_0x3015ca;Object[_0x2270cc(0x102)](_0x57af7a)[_0x2270cc(0xed)](_0x13cb0f=>{const _0x3fdf6e=_0x2270cc;this[_0x3fdf6e(0x109)](_0x400ed7,_0x13cb0f)['fromJSON'](_0x57af7a[_0x13cb0f]);});}[_0x3015ca(0x107)](){const _0x19ca35=_0x3015ca;let _0xf64cdf={};return this[_0x19ca35(0xb5)]['forEach']((_0x46c419,_0xc8428f)=>{_0xf64cdf[_0xc8428f]={},_0x46c419['forEach']((_0x52bce7,_0xf6d540)=>{const _0x3d2e0d=_0x255b;_0xf64cdf[_0xc8428f][_0xf6d540]=_0x52bce7[_0x3d2e0d(0x107)]();});}),_0xf64cdf;}['fromJSON'](_0xebac5){const _0x2c48a4=_0x3015ca;Object[_0x2c48a4(0x102)](_0xebac5)['forEach'](_0x494333=>{const _0xed3a8d=_0x2c48a4;let _0x4c487e=_0xebac5[_0x494333];Object[_0xed3a8d(0x102)](_0x4c487e)[_0xed3a8d(0xed)](_0x3f5714=>{const _0x4b710b=_0xed3a8d;this[_0x4b710b(0x109)](_0x494333,_0x3f5714)[_0x4b710b(0x157)](_0x4c487e[_0x3f5714]);});});}['_initSnapshot'](){const _0x4ad25a=_0x3015ca;this[_0x4ad25a(0x14d)]['registerPluginResource']({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[t[_0x4ad25a(0x164)][_0x4ad25a(0x148)]],'toJson':_0x52a327=>this[_0x4ad25a(0x11a)](_0x52a327),'parseJson':_0x1bc0fb=>JSON[_0x4ad25a(0x124)](_0x1bc0fb),'onLoad':(_0x5b9a9d,_0x37152a)=>{const _0x1639a3=_0x4ad25a;this[_0x1639a3(0xc3)](_0x5b9a9d,_0x37152a);},'onUnLoad':_0x48b0f1=>{const _0xedd690=_0x4ad25a;let _0x4f4afa=this['_shapeModelManagerMap'][_0xedd690(0x16a)](_0x48b0f1);_0x4f4afa&&(_0x4f4afa[_0xedd690(0xed)](_0x13da73=>{const _0x4f843b=_0xedd690;_0x13da73[_0x4f843b(0x15d)]();}),this['_shapeModelManagerMap']['delete'](_0x48b0f1));}});}[_0x3015ca(0x15d)](){const _0xdcc54e=_0x3015ca;this[_0xdcc54e(0xb5)][_0xdcc54e(0xed)](_0x41dd3e=>{const _0x2d203a=_0xdcc54e;_0x41dd3e[_0x2d203a(0xed)](_0x1085db=>{const _0x72d059=_0x2d203a;_0x1085db[_0x72d059(0x15d)]();});});}};p=f([d(0x0,t[_0x3015ca(0x14b)])],p);const m={'id':_0x3015ca(0xfb),'type':t['CommandType']['MUTATION'],'handler':(_0x3c6850,_0x5ec8e6)=>{const _0x18630f=_0x3015ca;let {unitId:_0x1cf370,subUnitId:_0x2e74fb,shapeType:_0x551ba0,shapeId:_0x1fdd59,shapeData:_0x4721fe}=_0x5ec8e6;return _0x3c6850[_0x18630f(0x16a)](p)[_0x18630f(0x123)](_0x1cf370,_0x2e74fb,_0x551ba0,_0x1fdd59,_0x4721fe),!0x0;}},h={'id':'sheet.mutation.remove-shape','type':t['CommandType'][_0x3015ca(0xc4)],'handler':(_0x210fc9,_0x3c8d25)=>{const _0x429a03=_0x3015ca;let {unitId:_0x201213,subUnitId:_0x2a734a,shapeId:_0x579fc8}=_0x3c8d25;return _0x210fc9[_0x429a03(0x16a)](p)[_0x429a03(0xf7)](_0x201213,_0x2a734a,_0x579fc8),!0x0;}},g={'type':t['CommandType'][_0x3015ca(0x12d)],'id':'sheet.command.insert-shape','handler':(_0x514edb,_0x192be3)=>{const _0x1e87ad=_0x3015ca;var _0x5de785,_0xb09641;let _0x327e2f=(0x0,n[_0x1e87ad(0x141)])(_0x514edb[_0x1e87ad(0x16a)](t[_0x1e87ad(0x100)]),_0x192be3);if(!_0x327e2f)return!0x1;let _0x20da76=_0x514edb['get'](n[_0x1e87ad(0x13d)]),{unitId:_0xaf8967,subUnitId:_0xb9612}=_0x327e2f,_0xa5383c=_0x20da76[_0x1e87ad(0x150)](_0xaf8967,_0xb9612);if(!_0xa5383c)return!0x1;let _0x149f79=_0x514edb[_0x1e87ad(0x16a)](t[_0x1e87ad(0xd2)]),_0x2b3415=_0x514edb['get'](t['IUndoRedoService']),_0x43a896=_0x514edb[_0x1e87ad(0x16a)](n['SheetInterceptorService']),_0x45446c=_0x514edb[_0x1e87ad(0x16a)](r['ISheetDrawingService']),{shapeType:_0x1f7117,shapeData:_0x5a2d7b}=_0x192be3,_0x334c35=_0x192be3[_0x1e87ad(0xce)]||(0x0,t[_0x1e87ad(0xe8)])(),_0x4aacf7={'unitId':_0xaf8967,'subUnitId':_0xb9612,'shapeId':_0x334c35,'shapeType':_0x1f7117,'shapeData':_0x5a2d7b},_0x6c3f51=_0x192be3[_0x1e87ad(0x108)]||0xc8,_0x185de9=_0x192be3[_0x1e87ad(0x153)]||0xc8,_0x4c72ec=0x0,_0x5191f4=0x0,_0x19eb68={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x4666f2={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x192be3['position']){let {x:_0x5b1de3,y:_0x44d756}=_0x192be3['position'];_0x4c72ec=_0x5b1de3,_0x5191f4=_0x44d756,_0x19eb68=_0xa5383c[_0x1e87ad(0x151)](_0x5b1de3,_0x44d756),_0x4666f2=_0xa5383c[_0x1e87ad(0x151)](_0x5b1de3+_0x6c3f51,_0x44d756+_0x185de9);}else{if(_0x192be3['range']){let {startRow:_0x1f9a26,startColumn:_0x27a94e}=_0x192be3['range'];_0x19eb68={'row':_0x1f9a26,'rowOffset':0xa,'column':_0x27a94e,'columnOffset':0xa};let _0x511bfa=_0xa5383c[_0x1e87ad(0x14a)](_0x1f9a26,_0x27a94e);_0x4c72ec=_0x511bfa[_0x1e87ad(0x16c)]+0xa,_0x5191f4=_0x511bfa[_0x1e87ad(0xb8)]+0xa,_0x4666f2=_0xa5383c[_0x1e87ad(0x151)](_0x4c72ec+_0x6c3f51,_0x5191f4+_0x185de9);}}let _0x9520b5={'from':_0x19eb68,'to':_0x4666f2},_0x4eecb1={'unitId':_0xaf8967,'subUnitId':_0xb9612,'drawingId':_0x334c35,'drawingType':t[_0x1e87ad(0x16d)][_0x1e87ad(0x136)],'sheetTransform':_0x9520b5,'transform':{'left':_0x4c72ec,'top':_0x5191f4,'width':_0x6c3f51,'height':_0x185de9},'data':{'shapeType':_0x1f7117,'shapeData':_0x5a2d7b},'axisAlignSheetTransform':_0x9520b5,'allowTransform':!0x0};(0x0,e[_0x1e87ad(0x175)])(_0x1f7117)&&(_0x4eecb1[_0x1e87ad(0x137)][_0x1e87ad(0x10d)]=!0x1,_0x4eecb1['data']['rotateEnabled']=!0x1,_0x4eecb1['data'][_0x1e87ad(0xd1)]=!0x1,_0x4eecb1[_0x1e87ad(0x137)]['borderEnabled']=!0x1,_0x4eecb1[_0x1e87ad(0xc0)][_0x1e87ad(0xda)]=!0x1,_0x4eecb1[_0x1e87ad(0xc0)][_0x1e87ad(0xd1)]=!0x1,_0x4eecb1[_0x1e87ad(0xc0)]['borderEnabled']=!0x1);let {undo:_0x3e4304,redo:_0x1c0700,objects:_0x5263b0}=_0x45446c[_0x1e87ad(0xf1)]([_0x4eecb1]),_0x4058c5=_0x43a896['onCommandExecute']({'id':r[_0x1e87ad(0x12a)]['id'],'params':{'unitId':_0xaf8967,'drawings':[_0x4eecb1]}}),_0x240f8c=[...(_0x5de785=_0x4058c5[_0x1e87ad(0x171)])==null?[]:_0x5de785,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xaf8967,'subUnitId':_0xb9612,'op':_0x1c0700,'objects':_0x5263b0,'type':r[_0x1e87ad(0x134)][_0x1e87ad(0xd5)]}},{'id':r[_0x1e87ad(0x129)]['id'],'params':[_0xaf8967]},..._0x4058c5['redos'],{'id':m['id'],'params':_0x4aacf7}],_0x6c2429=[{'id':h['id'],'params':{'unitId':_0xaf8967,'subUnitId':_0xb9612,'shapeId':_0x334c35}},...(_0xb09641=_0x4058c5[_0x1e87ad(0x167)])==null?[]:_0xb09641,{'id':r[_0x1e87ad(0x159)]['id'],'params':{'unitId':_0xaf8967,'subUnitId':_0xb9612,'op':_0x3e4304,'objects':_0x5263b0,'type':r[_0x1e87ad(0x134)]['REMOVE']}},{'id':r[_0x1e87ad(0x129)]['id'],'params':[_0xaf8967]},..._0x4058c5[_0x1e87ad(0x165)]];return(0x0,t[_0x1e87ad(0xe9)])(_0x240f8c,_0x149f79)[_0x1e87ad(0x126)]?(_0x2b3415[_0x1e87ad(0xc7)]({'unitID':_0xaf8967,'undoMutations':_0x6c2429,'redoMutations':_0x240f8c}),!0x0):!0x1;}},_={'id':'sheet.mutation.update-shape-data','type':t[_0x3015ca(0x12b)]['MUTATION'],'handler':(_0x4051c4,_0x270d6d)=>{const _0x4c8b88=_0x3015ca;let {unitId:_0x2043ce,subUnitId:_0x4764d7,shapeType:_0x518e7b,shapeId:_0x4ed7ca,shapeData:_0x589a78}=_0x270d6d,_0x10f0b6=_0x4051c4[_0x4c8b88(0x16a)](p)['getShapeModel'](_0x2043ce,_0x4764d7,_0x4ed7ca);return _0x10f0b6&&(_0x518e7b!==void 0x0&&_0x10f0b6[_0x4c8b88(0xd6)](_0x518e7b),_0x589a78&&(_0x10f0b6==null||_0x10f0b6[_0x4c8b88(0xd4)](_0x589a78,!0x0))),!0x0;}},v={'type':t['CommandType']['COMMAND'],'id':'sheet.command.set-shape-drawing-data','handler':(_0x3a6fca,_0x3b77d2)=>{const _0x54d46c=_0x3015ca;var _0x33e725,_0x5a3768;let _0x108884=(0x0,n[_0x54d46c(0x141)])(_0x3a6fca[_0x54d46c(0x16a)](t[_0x54d46c(0x100)]),_0x3b77d2);if(!_0x108884)return!0x1;let _0x2b7b6e=_0x3a6fca[_0x54d46c(0x16a)](n['SheetSkeletonService']),{unitId:_0x9aa7de,subUnitId:_0x282fc3}=_0x108884,_0x575a8b=_0x2b7b6e[_0x54d46c(0x150)](_0x9aa7de,_0x282fc3);if(!_0x575a8b)return!0x1;let _0x2af13c=_0x3a6fca[_0x54d46c(0x16a)](p),{shapeId:_0x17b27d,shapeType:_0x9fb999,shapeData:_0x5494dc,position:_0x53febb,width:_0x35e087,height:_0x7c192f}=_0x3b77d2,_0x148d40=_0x2af13c[_0x54d46c(0x12f)](_0x9aa7de,_0x282fc3,_0x17b27d);if(!_0x148d40)return!0x1;let _0x1e9d3c=_0x3a6fca[_0x54d46c(0x16a)](t[_0x54d46c(0xd2)]),_0x36b396=_0x3a6fca[_0x54d46c(0x16a)](t[_0x54d46c(0xf5)]),_0x5354d0=_0x3a6fca[_0x54d46c(0x16a)](n[_0x54d46c(0x10a)]),_0x5b9e3e=_0x3a6fca[_0x54d46c(0x16a)](r[_0x54d46c(0x140)]),_0x4a95f9={'unitId':_0x9aa7de,'subUnitId':_0x282fc3,'shapeId':_0x17b27d,'shapeType':_0x9fb999,'shapeData':_0x5494dc},_0x147f20=_0x148d40[_0x54d46c(0xe1)](),_0x21253f=_0x148d40['getShapeData'](),{x:_0x33d88e,y:_0x4f02b7}=_0x53febb,_0x54edae={'from':_0x575a8b[_0x54d46c(0x151)](_0x33d88e,_0x4f02b7),'to':_0x575a8b['getCellIndexAndOffsetByPosition'](_0x33d88e+_0x35e087,_0x4f02b7+_0x7c192f)},_0x4a72f2={'unitId':_0x9aa7de,'subUnitId':_0x282fc3,'drawingId':_0x17b27d,'drawingType':t[_0x54d46c(0x16d)]['DRAWING_SHAPE'],'sheetTransform':_0x54edae,'transform':{'left':_0x33d88e,'top':_0x4f02b7,'width':_0x35e087,'height':_0x7c192f},'data':{'shapeType':_0x9fb999,'shapeData':_0x5494dc},'axisAlignSheetTransform':_0x54edae,'allowTransform':!0x0};(0x0,e[_0x54d46c(0x175)])(_0x9fb999)&&(_0x4a72f2['data']['fill']=!0x1,_0x4a72f2[_0x54d46c(0x137)]['rotateEnabled']=!0x1,_0x4a72f2[_0x54d46c(0x137)][_0x54d46c(0xd1)]=!0x1,_0x4a72f2[_0x54d46c(0x137)][_0x54d46c(0xb7)]=!0x1,_0x4a72f2[_0x54d46c(0xc0)][_0x54d46c(0xda)]=!0x1,_0x4a72f2[_0x54d46c(0xc0)]['resizeEnabled']=!0x1,_0x4a72f2[_0x54d46c(0xc0)][_0x54d46c(0xb7)]=!0x1);let {undo:_0x3803d4,redo:_0x36a303,objects:_0x631258}=_0x5b9e3e['getBatchUpdateOp']([_0x4a72f2]),_0x598fb9=_0x5354d0['onCommandExecute']({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x9aa7de,'drawings':[_0x4a72f2]}}),_0x5094d0=[...(_0x33e725=_0x598fb9[_0x54d46c(0x171)])==null?[]:_0x33e725,{'id':r[_0x54d46c(0x159)]['id'],'params':{'unitId':_0x9aa7de,'subUnitId':_0x282fc3,'op':_0x36a303,'objects':_0x631258,'type':r['DrawingApplyType']['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x9aa7de]},..._0x598fb9['redos'],{'id':_['id'],'params':_0x4a95f9}],_0x253741=[...(_0x5a3768=_0x598fb9['preUndos'])==null?[]:_0x5a3768,{'id':r[_0x54d46c(0x159)]['id'],'params':{'unitId':_0x9aa7de,'subUnitId':_0x282fc3,'op':_0x3803d4,'objects':_0x631258,'type':r[_0x54d46c(0x134)][_0x54d46c(0xdc)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x9aa7de]},..._0x598fb9[_0x54d46c(0x165)],{'id':_['id'],'params':{'unitId':_0x9aa7de,'subUnitId':_0x282fc3,'shapeType':_0x147f20,'shapeId':_0x17b27d,'shapeData':_0x21253f}}];return(0x0,t['sequenceExecute'])(_0x5094d0,_0x1e9d3c)[_0x54d46c(0x126)]?(_0x36b396[_0x54d46c(0xc7)]({'unitID':_0x9aa7de,'undoMutations':_0x253741,'redoMutations':_0x5094d0}),!0x0):!0x1;}},y={'type':t[_0x3015ca(0x12b)][_0x3015ca(0x12d)],'id':_0x3015ca(0xd0),'handler':(_0x2ece20,_0x2decf9)=>{const _0x3e3d5f=_0x3015ca;var _0x456c56,_0x1e36c7;let _0x1d723b=(0x0,n[_0x3e3d5f(0x141)])(_0x2ece20[_0x3e3d5f(0x16a)](t[_0x3e3d5f(0x100)]),_0x2decf9);if(!_0x1d723b)return!0x1;let _0x562214=_0x2ece20['get'](n[_0x3e3d5f(0x13d)]),{unitId:_0x284678,subUnitId:_0x3d89a0}=_0x1d723b,_0x2e0fec=_0x562214[_0x3e3d5f(0x16f)](_0x284678,_0x3d89a0);if(!_0x2e0fec)return!0x1;let _0x2d8b09=_0x2ece20[_0x3e3d5f(0x16a)](r['ISheetDrawingService']),{shapeId:_0x496d7e,flipH:_0x383000,flipV:_0x50a51d}=_0x2decf9,_0x146c7a=_0x2d8b09[_0x3e3d5f(0x11b)]({'unitId':_0x284678,'subUnitId':_0x3d89a0,'drawingId':_0x496d7e});if(!_0x146c7a)return!0x1;let _0x321f54=_0x2ece20[_0x3e3d5f(0x16a)](p)[_0x3e3d5f(0x12f)](_0x284678,_0x3d89a0,_0x496d7e);if(!_0x321f54)return!0x1;let _0x3f83c3=_0x2ece20['get'](t['ICommandService']),_0x5de04a=_0x2ece20[_0x3e3d5f(0x16a)](t['IUndoRedoService']),_0x3dfb5b=_0x2ece20['get'](n['SheetInterceptorService']),_0xeae3ed={..._0x146c7a[_0x3e3d5f(0xc0)]};_0x383000!==void 0x0&&(_0xeae3ed[_0x3e3d5f(0xe7)]=!_0xeae3ed['flipX']),_0x50a51d!==void 0x0&&(_0xeae3ed[_0x3e3d5f(0x146)]=!_0xeae3ed[_0x3e3d5f(0x146)]);let _0x4be8ba=(0x0,r[_0x3e3d5f(0x15e)])(_0xeae3ed,_0x2e0fec),_0x4a5c84=(0x0,r['transformToAxisAlignPosition'])(_0xeae3ed,_0x2e0fec),_0x4a0e0a=_0x321f54[_0x3e3d5f(0xe1)](),_0x112e78=_0x321f54[_0x3e3d5f(0x113)](),_0x46d76f={'unitId':_0x284678,'subUnitId':_0x3d89a0,'drawingId':_0x496d7e,'drawingType':t[_0x3e3d5f(0x16d)][_0x3e3d5f(0x136)],'sheetTransform':_0x4be8ba,'transform':_0xeae3ed,'data':{'shapeType':_0x4a0e0a,'shapeData':_0x112e78},'axisAlignSheetTransform':_0x4a5c84,'allowTransform':!0x0},{undo:_0x2deee0,redo:_0x2ee31d,objects:_0x424b03}=_0x2d8b09[_0x3e3d5f(0x135)]([_0x46d76f]),_0x35e42c=_0x3dfb5b[_0x3e3d5f(0x142)]({'id':r[_0x3e3d5f(0x172)]['id'],'params':{'unitId':_0x284678,'drawings':[_0x46d76f]}}),_0x3c43d5=[...(_0x456c56=_0x35e42c[_0x3e3d5f(0x171)])==null?[]:_0x456c56,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x284678,'subUnitId':_0x3d89a0,'op':_0x2ee31d,'objects':_0x424b03,'type':r[_0x3e3d5f(0x134)][_0x3e3d5f(0xdc)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x284678]},..._0x35e42c['redos']],_0x6e6d39=[...(_0x1e36c7=_0x35e42c[_0x3e3d5f(0x167)])==null?[]:_0x1e36c7,{'id':r[_0x3e3d5f(0x159)]['id'],'params':{'unitId':_0x284678,'subUnitId':_0x3d89a0,'op':_0x2deee0,'objects':_0x424b03,'type':r['DrawingApplyType'][_0x3e3d5f(0xdc)]}},{'id':r[_0x3e3d5f(0x129)]['id'],'params':[_0x284678]},..._0x35e42c[_0x3e3d5f(0x165)]];if((0x0,e['isConnectorShape'])(_0x4a0e0a)){let _0x5984af=_0x321f54['getShapeRelation']();if(_0x5984af){let _0xb706d8={..._0x5984af};_0xb706d8[_0x3e3d5f(0xbf)]=void 0x0,_0xb706d8['to']=void 0x0,_0x3c43d5['push']({'id':_['id'],'params':{'unitId':_0x284678,'subUnitId':_0x3d89a0,'shapeId':_0x496d7e,'shapeType':_0x4a0e0a,'shapeData':{'relation':_0xb706d8}}}),_0x6e6d39[_0x3e3d5f(0xea)]({'id':_['id'],'params':{'unitId':_0x284678,'subUnitId':_0x3d89a0,'shapeId':_0x496d7e,'shapeType':_0x4a0e0a,'shapeData':{'relation':_0x5984af}}});}}return(0x0,t[_0x3e3d5f(0xe9)])(_0x3c43d5,_0x3f83c3)[_0x3e3d5f(0x126)]?(_0x5de04a['pushUndoRedo']({'unitID':_0x284678,'undoMutations':_0x6e6d39,'redoMutations':_0x3c43d5}),!0x0):!0x1;}},b={'type':t[_0x3015ca(0x12b)][_0x3015ca(0x12d)],'id':_0x3015ca(0xc1),'handler':(_0x9b8c74,_0x2cff8f)=>{const _0x1e9592=_0x3015ca;var _0x4cc0a7,_0x24ca07;let _0x2de137=(0x0,n[_0x1e9592(0x141)])(_0x9b8c74[_0x1e9592(0x16a)](t['IUniverInstanceService']),_0x2cff8f);if(!_0x2de137)return!0x1;let _0x3cd4d2=_0x9b8c74[_0x1e9592(0x16a)](n[_0x1e9592(0x13d)]),{unitId:_0x15c828,subUnitId:_0x263d8f}=_0x2de137,_0x45a990=_0x3cd4d2[_0x1e9592(0x16f)](_0x15c828,_0x263d8f);if(!_0x45a990)return!0x1;let _0x39389e=_0x9b8c74[_0x1e9592(0x16a)](r[_0x1e9592(0x140)]),{shapeId:_0x210da2,rotate:_0x459f03}=_0x2cff8f,_0x501502=_0x39389e[_0x1e9592(0x11b)]({'unitId':_0x15c828,'subUnitId':_0x263d8f,'drawingId':_0x210da2});if(!_0x501502)return!0x1;let _0x10a357=_0x9b8c74['get'](p)['getShapeModel'](_0x15c828,_0x263d8f,_0x210da2);if(!_0x10a357)return!0x1;let _0x14b98d=_0x9b8c74[_0x1e9592(0x16a)](t[_0x1e9592(0xd2)]),_0x23403e=_0x9b8c74[_0x1e9592(0x16a)](t['IUndoRedoService']),_0x5ac149=_0x9b8c74[_0x1e9592(0x16a)](n[_0x1e9592(0x10a)]),_0x33f4bc={..._0x501502[_0x1e9592(0xc0)]};_0x459f03!==void 0x0&&(_0x33f4bc[_0x1e9592(0x10f)]=(_0x33f4bc[_0x1e9592(0x10f)]||0x0)+_0x459f03);let _0x1c98b5=(0x0,r['transformToDrawingPosition'])(_0x33f4bc,_0x45a990),_0x413560=(0x0,r[_0x1e9592(0x11c)])(_0x33f4bc,_0x45a990),_0x2a31b4=_0x10a357[_0x1e9592(0xe1)](),_0x551f23=_0x10a357[_0x1e9592(0x113)](),_0x4bcef6={'unitId':_0x15c828,'subUnitId':_0x263d8f,'drawingId':_0x210da2,'drawingType':t[_0x1e9592(0x16d)][_0x1e9592(0x136)],'sheetTransform':_0x1c98b5,'transform':_0x33f4bc,'data':{'shapeType':_0x2a31b4,'shapeData':_0x551f23},'axisAlignSheetTransform':_0x413560,'allowTransform':!0x0},{undo:_0x8f1cfc,redo:_0x3be9a5,objects:_0xf17cdc}=_0x39389e['getBatchUpdateOp']([_0x4bcef6]),_0x1a1db6=_0x5ac149[_0x1e9592(0x142)]({'id':r[_0x1e9592(0x172)]['id'],'params':{'unitId':_0x15c828,'drawings':[_0x4bcef6]}}),_0x80c554=[...(_0x4cc0a7=_0x1a1db6[_0x1e9592(0x171)])==null?[]:_0x4cc0a7,{'id':r[_0x1e9592(0x159)]['id'],'params':{'unitId':_0x15c828,'subUnitId':_0x263d8f,'op':_0x3be9a5,'objects':_0xf17cdc,'type':r[_0x1e9592(0x134)][_0x1e9592(0xdc)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x15c828]},..._0x1a1db6['redos']],_0x20a721=[...(_0x24ca07=_0x1a1db6[_0x1e9592(0x167)])==null?[]:_0x24ca07,{'id':r[_0x1e9592(0x159)]['id'],'params':{'unitId':_0x15c828,'subUnitId':_0x263d8f,'op':_0x8f1cfc,'objects':_0xf17cdc,'type':r[_0x1e9592(0x134)]['UPDATE']}},{'id':r[_0x1e9592(0x129)]['id'],'params':[_0x15c828]},..._0x1a1db6[_0x1e9592(0x165)]];return(0x0,t[_0x1e9592(0xe9)])(_0x80c554,_0x14b98d)[_0x1e9592(0x126)]?(_0x23403e[_0x1e9592(0xc7)]({'unitID':_0x15c828,'undoMutations':_0x20a721,'redoMutations':_0x80c554}),!0x0):!0x1;}},x={'type':t[_0x3015ca(0x12b)][_0x3015ca(0x12d)],'id':_0x3015ca(0x13c),'handler':(_0x136331,_0x2a8d2d)=>{const _0x48ceee=_0x3015ca;var _0xe48451;let _0x22fed5=(0x0,n['getSheetCommandTarget'])(_0x136331[_0x48ceee(0x16a)](t['IUniverInstanceService']),_0x2a8d2d);if(!_0x22fed5)return!0x1;let {unitId:_0x29ed66,subUnitId:_0x11c791}=_0x22fed5,{shapeId:_0x67e5c2}=_0x2a8d2d,_0xb50dce=_0x136331['get'](p)['getShapeModel'](_0x29ed66,_0x11c791,_0x67e5c2);if(!_0xb50dce)return!0x1;let _0x5f2afa=_0xb50dce[_0x48ceee(0xfe)](),_0xbfe658=(_0xe48451=_0x5f2afa==null?void 0x0:_0x5f2afa['isHorizontal'])==null?!0x0:_0xe48451,_0x3aefeb=!_0xbfe658,_0x168533=_0x136331[_0x48ceee(0x16a)](t[_0x48ceee(0xd2)]),_0x2edfaa=_0x136331[_0x48ceee(0x16a)](t[_0x48ceee(0xf5)]),_0x148d52={'unitId':_0x29ed66,'subUnitId':_0x11c791,'shapeId':_0x67e5c2,'shapeData':{'shapeText':{'isHorizontal':_0x3aefeb}}},_0x585fd5={'unitId':_0x29ed66,'subUnitId':_0x11c791,'shapeId':_0x67e5c2,'shapeData':{'shapeText':{'isHorizontal':_0xbfe658}}},_0x1b20ce=[{'id':_['id'],'params':_0x148d52}],_0x14d38f=[{'id':_['id'],'params':_0x585fd5}];return(0x0,t[_0x48ceee(0xe9)])(_0x1b20ce,_0x168533)['result']?(_0x2edfaa[_0x48ceee(0xc7)]({'unitID':_0x29ed66,'undoMutations':_0x14d38f,'redoMutations':_0x1b20ce}),!0x0):!0x1;}},S={'type':t[_0x3015ca(0x12b)]['COMMAND'],'id':_0x3015ca(0x127),'handler':(_0x47c404,_0x4e4dc5)=>{const _0x2d8a39=_0x3015ca;var _0xf4ffd9,_0x353f4b,_0x3c500e,_0x2e87ab;let _0x42549a=(0x0,n['getSheetCommandTarget'])(_0x47c404[_0x2d8a39(0x16a)](t[_0x2d8a39(0x100)]),_0x4e4dc5);if(!_0x42549a)return!0x1;let _0x51d0f0=_0x47c404[_0x2d8a39(0x16a)](n[_0x2d8a39(0x13d)]),{unitId:_0xb147bf,subUnitId:_0x16ad2d}=_0x42549a,_0x87e23d=_0x51d0f0[_0x2d8a39(0x16f)](_0xb147bf,_0x16ad2d);if(!_0x87e23d)return!0x1;let _0x31621d=_0x47c404[_0x2d8a39(0x16a)](r['ISheetDrawingService']),{connectorShapeId:_0x3bdeed,width:_0x13f97c,height:_0x528778,left:_0xb413be,top:_0x2c45f3,flipX:_0x2b3f0f,flipY:_0x437685,rotation:_0x4615e1,oldAdjustValues:_0x19a67c,newAdjustValues:_0x22bf94,oldLineType:_0x142e6e,newLineType:_0x8c54d3,oldRelation:_0x1f3db2,newRelation:_0x1b95f8}=_0x4e4dc5,_0xf06655=_0x31621d['getDrawingByParam']({'unitId':_0xb147bf,'subUnitId':_0x16ad2d,'drawingId':_0x3bdeed});if(!_0xf06655)return!0x1;let _0x1a9e92=_0x47c404[_0x2d8a39(0x16a)](p)[_0x2d8a39(0x12f)](_0xb147bf,_0x16ad2d,_0x3bdeed);if(!_0x1a9e92)return!0x1;let _0x17ca01=_0x47c404[_0x2d8a39(0x16a)](t[_0x2d8a39(0xd2)]),_0x51a492=_0x47c404[_0x2d8a39(0x16a)](t['IUndoRedoService']),_0x65b7e4=_0x47c404[_0x2d8a39(0x16a)](n[_0x2d8a39(0x10a)]),_0x526008={..._0xf06655[_0x2d8a39(0xc0)],'width':_0x13f97c,'height':_0x528778,'left':_0xb413be,'top':_0x2c45f3,'flipX':_0x2b3f0f,'flipY':_0x437685,'angle':(_0xf4ffd9=_0x4615e1==null?(_0x353f4b=_0xf06655[_0x2d8a39(0xc0)])==null?void 0x0:_0x353f4b[_0x2d8a39(0x10f)]:_0x4615e1)==null?0x0:_0xf4ffd9},_0x5762de=(0x0,r['transformToDrawingPosition'])(_0x526008,_0x87e23d),_0x744124=(0x0,r[_0x2d8a39(0x11c)])(_0x526008,_0x87e23d),_0x12b612=_0x1a9e92[_0x2d8a39(0xe1)](),_0x4b6eb0=_0x1a9e92[_0x2d8a39(0x113)](),_0x54ef81={'unitId':_0xb147bf,'subUnitId':_0x16ad2d,'drawingId':_0x3bdeed,'drawingType':t[_0x2d8a39(0x16d)][_0x2d8a39(0x136)],'sheetTransform':_0x5762de,'transform':_0x526008,'data':{'shapeType':_0x8c54d3||_0x142e6e||_0x12b612,'shapeData':{..._0x4b6eb0,'adjustValues':_0x22bf94||_0x19a67c||(_0x4b6eb0==null?void 0x0:_0x4b6eb0[_0x2d8a39(0x162)]),'relation':_0x1b95f8||_0x1f3db2||(_0x4b6eb0==null?void 0x0:_0x4b6eb0[_0x2d8a39(0x16b)])}},'axisAlignSheetTransform':_0x744124,'allowTransform':!0x0},{undo:_0x52e378,redo:_0x2617a1,objects:_0x491965}=_0x31621d[_0x2d8a39(0x135)]([_0x54ef81]),_0x45b9d0=_0x65b7e4[_0x2d8a39(0x142)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0xb147bf,'drawings':[_0x54ef81]}}),_0x1bcd4c=[...(_0x3c500e=_0x45b9d0[_0x2d8a39(0x171)])==null?[]:_0x3c500e,{'id':r[_0x2d8a39(0x159)]['id'],'params':{'unitId':_0xb147bf,'subUnitId':_0x16ad2d,'op':_0x2617a1,'objects':_0x491965,'type':r[_0x2d8a39(0x134)][_0x2d8a39(0xdc)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xb147bf]},..._0x45b9d0[_0x2d8a39(0xf0)],{'id':_['id'],'params':{'unitId':_0xb147bf,'subUnitId':_0x16ad2d,'shapeId':_0x3bdeed,'shapeType':_0x8c54d3,'shapeData':{'adjustValues':_0x22bf94,'relation':_0x1b95f8}}}],_0x359262=[...(_0x2e87ab=_0x45b9d0[_0x2d8a39(0x167)])==null?[]:_0x2e87ab,{'id':r[_0x2d8a39(0x159)]['id'],'params':{'unitId':_0xb147bf,'subUnitId':_0x16ad2d,'op':_0x52e378,'objects':_0x491965,'type':r[_0x2d8a39(0x134)][_0x2d8a39(0xdc)]}},{'id':r[_0x2d8a39(0x129)]['id'],'params':[_0xb147bf]},..._0x45b9d0[_0x2d8a39(0x165)],{'id':_['id'],'params':{'unitId':_0xb147bf,'subUnitId':_0x16ad2d,'shapeId':_0x3bdeed,'shapeType':_0x12b612,'shapeData':{..._0x4b6eb0,'adjustValues':_0x19a67c||(_0x4b6eb0==null?void 0x0:_0x4b6eb0['adjustValues']),'relation':_0x1f3db2||(_0x4b6eb0==null?void 0x0:_0x4b6eb0[_0x2d8a39(0x16b)])}}}];return(0x0,t[_0x2d8a39(0xe9)])(_0x1bcd4c,_0x17ca01)[_0x2d8a39(0x126)]?(_0x51a492[_0x2d8a39(0xc7)]({'unitID':_0xb147bf,'undoMutations':_0x359262,'redoMutations':_0x1bcd4c}),!0x0):!0x1;}},C={'type':t['CommandType']['COMMAND'],'id':_0x3015ca(0xd7),'handler':(_0x30ad07,_0x27e4db)=>{const _0x4d5e76=_0x3015ca;var _0x16ff78,_0x461cc4;let _0x294f96=(0x0,n[_0x4d5e76(0x141)])(_0x30ad07['get'](t[_0x4d5e76(0x100)]),_0x27e4db);if(!_0x294f96)return!0x1;let _0x4eb030=_0x30ad07[_0x4d5e76(0x16a)](n['SheetSkeletonService']),{unitId:_0x243287,subUnitId:_0x2ddb4d}=_0x294f96,_0x2e90d9=_0x4eb030[_0x4d5e76(0x16f)](_0x243287,_0x2ddb4d);if(!_0x2e90d9)return!0x1;let _0x2ac27f=_0x30ad07[_0x4d5e76(0x16a)](r[_0x4d5e76(0x140)]),{shapeId:_0x5eb498,width:_0x27ed52,height:_0x402ee6,left:_0xa8f6f5,top:_0x1a34ff,flipX:_0x4d80c7,flipY:_0x1a07ef,angle:_0x385932,oldAdjustValues:_0x9e8fad,newAdjustValues:_0x1a0127,oldLineType:_0x56c027,newLineType:_0x2ce9e8}=_0x27e4db,_0x5690db=_0x2ac27f[_0x4d5e76(0x11b)]({'unitId':_0x243287,'subUnitId':_0x2ddb4d,'drawingId':_0x5eb498});if(!_0x5690db)return!0x1;let _0x3f8c08=_0x30ad07['get'](p)['getShapeModel'](_0x243287,_0x2ddb4d,_0x5eb498);if(!_0x3f8c08)return!0x1;let _0x2d94d3=_0x30ad07[_0x4d5e76(0x16a)](t[_0x4d5e76(0xd2)]),_0x6f645c=_0x30ad07[_0x4d5e76(0x16a)](t[_0x4d5e76(0xf5)]),_0x57ec03=_0x30ad07[_0x4d5e76(0x16a)](n[_0x4d5e76(0x10a)]),_0x3f089d={..._0x5690db[_0x4d5e76(0xc0)],'width':_0x27ed52,'height':_0x402ee6,'left':_0xa8f6f5,'top':_0x1a34ff,'flipX':_0x4d80c7,'flipY':_0x1a07ef,'angle':_0x385932},_0x146e14=(0x0,r[_0x4d5e76(0x15e)])(_0x3f089d,_0x2e90d9),_0x5b08e3=(0x0,r['transformToAxisAlignPosition'])(_0x3f089d,_0x2e90d9),_0x3977ce=_0x3f8c08[_0x4d5e76(0xe1)](),_0x23e012=_0x3f8c08[_0x4d5e76(0x113)](),_0xa64487={'unitId':_0x243287,'subUnitId':_0x2ddb4d,'drawingId':_0x5eb498,'drawingType':t['DrawingTypeEnum'][_0x4d5e76(0x136)],'sheetTransform':_0x146e14,'transform':_0x3f089d,'data':{'shapeType':_0x2ce9e8||_0x56c027||_0x3977ce,'shapeData':{..._0x23e012,'adjustValues':_0x1a0127||_0x9e8fad||(_0x23e012==null?void 0x0:_0x23e012[_0x4d5e76(0x162)])}},'axisAlignSheetTransform':_0x5b08e3,'allowTransform':!0x0},{undo:_0x29cd2d,redo:_0x2a8360,objects:_0x34cfb6}=_0x2ac27f[_0x4d5e76(0x135)]([_0xa64487]),_0x191c8b=_0x57ec03[_0x4d5e76(0x142)]({'id':r[_0x4d5e76(0x172)]['id'],'params':{'unitId':_0x243287,'drawings':[_0xa64487]}}),_0x37cb2f=[...(_0x16ff78=_0x191c8b[_0x4d5e76(0x171)])==null?[]:_0x16ff78,{'id':r[_0x4d5e76(0x159)]['id'],'params':{'unitId':_0x243287,'subUnitId':_0x2ddb4d,'op':_0x2a8360,'objects':_0x34cfb6,'type':r[_0x4d5e76(0x134)][_0x4d5e76(0xdc)]}},{'id':r[_0x4d5e76(0x129)]['id'],'params':[_0x243287]},..._0x191c8b[_0x4d5e76(0xf0)],{'id':_['id'],'params':{'unitId':_0x243287,'subUnitId':_0x2ddb4d,'shapeId':_0x5eb498,'shapeType':_0x2ce9e8,'shapeData':{'adjustValues':_0x1a0127}}}],_0x486add=[...(_0x461cc4=_0x191c8b[_0x4d5e76(0x167)])==null?[]:_0x461cc4,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x243287,'subUnitId':_0x2ddb4d,'op':_0x29cd2d,'objects':_0x34cfb6,'type':r['DrawingApplyType'][_0x4d5e76(0xdc)]}},{'id':r[_0x4d5e76(0x129)]['id'],'params':[_0x243287]},..._0x191c8b[_0x4d5e76(0x165)],{'id':_['id'],'params':{'unitId':_0x243287,'subUnitId':_0x2ddb4d,'shapeId':_0x5eb498,'shapeType':_0x3977ce,'shapeData':{..._0x23e012,'adjustValues':_0x9e8fad||(_0x23e012==null?void 0x0:_0x23e012['adjustValues'])}}}];return(0x0,t['sequenceExecute'])(_0x37cb2f,_0x2d94d3)[_0x4d5e76(0x126)]?(_0x6f645c[_0x4d5e76(0xc7)]({'unitID':_0x243287,'undoMutations':_0x486add,'redoMutations':_0x37cb2f}),!0x0):!0x1;}},w={'id':_0x3015ca(0x115),'type':t[_0x3015ca(0x12b)]['MUTATION'],'handler':(_0x5eb36b,_0x55ab70)=>{const _0x4c2e64=_0x3015ca;let {unitId:_0x12f55c,subUnitId:_0x175f9a,shapeType:_0x560cca,shapeId:_0x2aec2c,shapeData:_0x5d617f}=_0x55ab70,_0x5f234c=_0x5eb36b[_0x4c2e64(0x16a)](p)['getShapeModel'](_0x12f55c,_0x175f9a,_0x2aec2c);return _0x5f234c&&(_0x5f234c[_0x4c2e64(0xd6)](_0x560cca),_0x5d617f&&(_0x5f234c==null||_0x5f234c[_0x4c2e64(0xd4)](_0x5d617f))),!0x0;}},T={'id':_0x3015ca(0x13a),'type':t[_0x3015ca(0x12b)][_0x3015ca(0x12d)],'handler':(_0x3aa219,_0x1c0a0f)=>{const _0x323935=_0x3015ca;if(!_0x1c0a0f)return!0x1;let _0x16add3=_0x3aa219[_0x323935(0x16a)](t[_0x323935(0xd2)]),_0x46fd4b=_0x3aa219[_0x323935(0x16a)](p),_0x5632c3=_0x3aa219[_0x323935(0x16a)](t[_0x323935(0xf5)]),_0x39879f=[],_0x29da7c=[],{unitId:_0x8a9092,subUnitId:_0x395c17,shapeId:_0x47b621,shapeType:_0x57ef8b,shapeData:_0x3b551a}=_0x1c0a0f,_0x2469b0=_0x46fd4b[_0x323935(0x12f)](_0x8a9092,_0x395c17,_0x47b621);if(_0x2469b0){let _0x4ce4e5=_0x2469b0[_0x323935(0xe1)](),_0x2ef1d2=Object[_0x323935(0x163)]({},_0x2469b0[_0x323935(0x113)]()),_0x4c67bf={'unitId':_0x8a9092,'subUnitId':_0x395c17,'shapeId':_0x47b621,'shapeType':_0x57ef8b,'shapeData':_0x3b551a},_0x18da64={'unitId':_0x8a9092,'subUnitId':_0x395c17,'shapeId':_0x47b621,'shapeType':_0x4ce4e5,'shapeData':_0x2ef1d2};return _0x39879f[_0x323935(0xea)]({'id':w['id'],'params':_0x4c67bf}),_0x29da7c[_0x323935(0xea)]({'id':w['id'],'params':_0x18da64}),_0x39879f['every'](_0x2e05e5=>_0x16add3[_0x323935(0xc5)](_0x2e05e5['id'],_0x2e05e5['params']))&&_0x5632c3[_0x323935(0xc7)]({'unitID':_0x8a9092,'redoMutations':[..._0x39879f],'undoMutations':[..._0x29da7c]}),!0x0;}return!0x1;}};var E=_0x3015ca(0x10c),D='0.23.0';const O=_0x3015ca(0x101);function _0x255b(_0x5be531,_0x18d779){_0x5be531=_0x5be531-0xb1;const _0x3261ea=_0x3261();let _0x255bd3=_0x3261ea[_0x5be531];return _0x255bd3;}Symbol(O);const k={};let A=class extends t['Disposable']{constructor(_0x28cf69,_0x275986,_0x2374f7,_0x3f7621,_0x29ed2c){const _0x30e4c7=_0x3015ca;super(),this[_0x30e4c7(0xb6)]=_0x28cf69,this[_0x30e4c7(0xe2)]=_0x275986,this['_sheetSkeletonService']=_0x2374f7,this[_0x30e4c7(0x154)]=_0x3f7621,this[_0x30e4c7(0x106)]=_0x29ed2c,this[_0x30e4c7(0xb2)](),this['_initCommandInterceptor']();}[_0x3015ca(0xb2)](){const _0x4b0576=_0x3015ca;[g,v,y,b,x,S,C,m,h,w,_][_0x4b0576(0xed)](_0x2f4959=>this[_0x4b0576(0x143)](this['_commandService'][_0x4b0576(0xec)](_0x2f4959)));}[_0x3015ca(0x173)](){const _0x13ec1b=_0x3015ca;this[_0x13ec1b(0x143)](this[_0x13ec1b(0xe2)][_0x13ec1b(0x110)]({'getMutations':_0xf596f0=>{const _0x47f618=_0x13ec1b;if(_0xf596f0['id']===r[_0x47f618(0xbb)]['id']){let {drawings:_0x2545fa}=_0xf596f0[_0x47f618(0x144)],_0x976012=_0x2545fa[_0x47f618(0x11f)](_0x2db63f=>_0x2db63f[_0x47f618(0xfa)]===t[_0x47f618(0x16d)][_0x47f618(0x136)]);if(_0x976012['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x41f777=[],_0x3f1388=[];return _0x976012[_0x47f618(0xed)](_0x339409=>{const _0x56970f=_0x47f618;let {unitId:_0x1e25c1,subUnitId:_0x437929,drawingId:_0x3ff74e}=_0x339409,_0x477126=this[_0x56970f(0x154)][_0x56970f(0x12f)](_0x1e25c1,_0x437929,_0x3ff74e);if(!_0x477126)throw TypeError(_0x56970f(0x14e)+_0x477126);_0x41f777['push']({'id':h['id'],'params':{'unitId':_0x1e25c1,'subUnitId':_0x437929,'shapeId':_0x3ff74e}}),_0x3f1388['push']({'id':m['id'],'params':{'unitId':_0x1e25c1,'subUnitId':_0x437929,'shapeId':_0x3ff74e,'shapeType':_0x477126[_0x56970f(0xe1)](),'shapeData':_0x477126['getShapeData']()}});let _0x3b7b39=this[_0x56970f(0x154)][_0x56970f(0xfc)](_0x1e25c1,_0x437929,_0x3ff74e);if(_0x3b7b39)for(let _0xfa36ea of _0x3b7b39){let _0x370f03=_0xfa36ea[_0x56970f(0x158)],_0x437ab5=_0xfa36ea[_0x56970f(0x104)],_0x57512c=_0x437ab5?{'from':void 0x0}:{'to':void 0x0},_0x502f82=_0x437ab5?{'from':{'shapeId':_0xfa36ea[_0x56970f(0xce)],'cxnIndex':_0xfa36ea['cxnIndex']}}:{'to':{'shapeId':_0xfa36ea[_0x56970f(0xce)],'cxnIndex':_0xfa36ea[_0x56970f(0x131)]}};_0x41f777['push']({'id':_['id'],'params':{'unitId':_0x1e25c1,'subUnitId':_0x437929,'shapeId':_0x370f03,'shapeData':{'relation':_0x57512c}}}),_0x3f1388['push']({'id':_['id'],'params':{'unitId':_0x1e25c1,'subUnitId':_0x437929,'shapeId':_0x370f03,'shapeData':{'relation':_0x502f82}}});}}),{'preRedos':_0x41f777,'redos':[],'preUndos':[],'undos':_0x3f1388};}if(_0xf596f0['id']===r['SetSheetDrawingCommand']['id']){let {drawings:_0x33d7dd}=_0xf596f0['params'],_0x10754a=_0x33d7dd[_0x47f618(0x11f)](_0x10d1fa=>_0x10d1fa[_0x47f618(0xfa)]===t[_0x47f618(0x16d)][_0x47f618(0x136)]);if(_0x10754a[_0x47f618(0x128)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x443b15=[],_0x2c0922=[];for(let _0x11fca4 of _0x10754a){let {unitId:_0x2262d2,subUnitId:_0x286c3f,drawingId:_0x31d360,transform:_0x2cbc25}=_0x11fca4;if(!_0x2262d2||!_0x286c3f||!_0x31d360||!_0x2cbc25)continue;let _0xaf53ec=this[_0x47f618(0x154)][_0x47f618(0x12f)](_0x2262d2,_0x286c3f,_0x31d360);if(!_0xaf53ec)throw TypeError(_0x47f618(0x14e)+_0xaf53ec);if((0x0,e['isConnectorShape'])(_0xaf53ec[_0x47f618(0xe1)]())){let _0x4131be=this[_0x47f618(0x154)][_0x47f618(0x15a)](_0x2262d2,_0x286c3f,_0x31d360);_0x4131be&&(_0x443b15[_0x47f618(0xea)]({'id':_['id'],'params':{'unitId':_0x2262d2,'subUnitId':_0x286c3f,'shapeId':_0x31d360,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2c0922[_0x47f618(0xea)]({'id':_['id'],'params':{'unitId':_0x2262d2,'subUnitId':_0x286c3f,'shapeId':_0x31d360,'shapeData':{'relation':_0x4131be}}}));}else{let _0x2a5282=this[_0x47f618(0x154)][_0x47f618(0xfc)](_0x2262d2,_0x286c3f,_0x31d360);if(_0x2a5282&&_0x2a5282[_0x47f618(0x128)]>0x0)for(let _0x3a2c41 of _0x2a5282){let _0x1f6432=_0x3a2c41['lineShapeId'],_0x368484=_0x3a2c41['isFrom'],_0x3ebd32=this[_0x47f618(0x154)]['getShapeModel'](_0x2262d2,_0x286c3f,_0x1f6432);if(!_0x3ebd32)continue;let _0x500ed7=_0x3ebd32['getStartConnectInfo'](),_0x47d3af=_0x3ebd32['getEndConnectInfo']();_0x500ed7&&_0x47d3af?this[_0x47f618(0xee)](_0x2262d2,_0x286c3f,_0x1f6432,_0x3ebd32,_0x500ed7,_0x47d3af,_0x443b15,_0x2c0922,_0x31d360,_0x2cbc25):this[_0x47f618(0x119)](_0x2262d2,_0x286c3f,_0x1f6432,_0x3ebd32,_0x368484?_0x500ed7:_0x47d3af,_0x368484,_0x443b15,_0x2c0922,_0x31d360,_0x2cbc25);}}}return{'preRedos':[],'redos':_0x443b15,'preUndos':_0x2c0922,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x33edc1,_0x4d5a42,_0x3ccbbe,_0x4dfa2a,_0x208a84){const _0xd8459=_0x3015ca;if(!_0x4d5a42||!_0x3ccbbe)return null;let {shapeId:_0x244eb4,cxnIndex:_0x1a191f}=_0x33edc1,_0x191340=this['_sheetsShapeService'][_0xd8459(0x12f)](_0x4d5a42,_0x3ccbbe,_0x244eb4);if(!_0x191340)return null;let _0x434bd3=this[_0xd8459(0x106)]['getDrawingByParam']({'unitId':_0x4d5a42,'subUnitId':_0x3ccbbe,'drawingId':_0x244eb4});if(!(_0x434bd3!=null&&_0x434bd3[_0xd8459(0xc0)]))return null;let {left:_0x2c2575=0x0,top:_0x25744d=0x0,width:_0x181d4d=0x0,height:_0x46c9c4=0x0,flipX:_0x40b817=!0x1,flipY:_0x4bee93=!0x1,angle:_0x431bd6}=_0x434bd3[_0xd8459(0xc0)];if(_0x208a84&&_0x4dfa2a===_0x244eb4){var _0x307718,_0x28a736,_0x4aba6f,_0x3feccc,_0x1ca604,_0xe8911c,_0x3548d4;_0x2c2575=(_0x307718=_0x208a84['left'])==null?_0x2c2575:_0x307718,_0x25744d=(_0x28a736=_0x208a84[_0xd8459(0x112)])==null?_0x25744d:_0x28a736,_0x181d4d=(_0x4aba6f=_0x208a84['width'])==null?_0x181d4d:_0x4aba6f,_0x46c9c4=(_0x3feccc=_0x208a84['height'])==null?_0x46c9c4:_0x3feccc,_0x40b817=(_0x1ca604=_0x208a84['flipX'])==null?_0x40b817:_0x1ca604,_0x4bee93=(_0xe8911c=_0x208a84[_0xd8459(0x146)])==null?_0x4bee93:_0xe8911c,_0x431bd6=(_0x3548d4=_0x208a84[_0xd8459(0x10f)])==null?_0x431bd6:_0x3548d4;}_0x191340['updateContext']({'width':_0x181d4d,'height':_0x46c9c4});let _0x4665b0=_0x191340['getConnectionSiteList']()[_0xd8459(0x15f)](_0x217e2b=>_0x217e2b[_0xd8459(0x125)]===_0x1a191f);if(!_0x4665b0)return null;let _0x3c86c7=_0x40b817?_0x181d4d-_0x4665b0['x']:_0x4665b0['x'],_0xe1b99d=_0x4bee93?_0x46c9c4-_0x4665b0['y']:_0x4665b0['y'];if(_0x431bd6!==0x0&&_0x431bd6!=null){let _0x52547c=_0x431bd6*Math['PI']/0xb4,_0x208b41=Math[_0xd8459(0xdd)](_0x52547c),_0x558eae=Math[_0xd8459(0xba)](_0x52547c),_0x1c1140=_0x181d4d/0x2,_0xc5293e=_0x46c9c4/0x2,_0x307226=_0x3c86c7-_0x1c1140,_0x58a2b5=_0xe1b99d-_0xc5293e;_0x3c86c7=_0x1c1140+_0x307226*_0x208b41-_0x58a2b5*_0x558eae,_0xe1b99d=_0xc5293e+_0x307226*_0x558eae+_0x58a2b5*_0x208b41;}_0x3c86c7+=_0x2c2575,_0xe1b99d+=_0x25744d;let _0x2c2702=_0x4665b0[_0xd8459(0x122)]/0xea60;_0x40b817&&(_0x2c2702=0xb4-_0x2c2702),_0x4bee93&&(_0x2c2702=-_0x2c2702),_0x2c2702+=_0x431bd6||0x0,_0x2c2702=(_0x2c2702%0x168+0x168)%0x168;let _0x1fea5b=(0x0,e['getBasicShapeRotateBound'])({'left':_0x2c2575,'top':_0x25744d,'width':_0x181d4d,'height':_0x46c9c4},_0x431bd6||0x0);return{'point':{'x':_0x3c86c7,'y':_0xe1b99d},'angle':_0x2c2702,'bounds':_0x1fea5b};}[_0x3015ca(0xee)](_0x59ebd0,_0x204120,_0x31c21f,_0x27d7f5,_0x19fe37,_0xd162d8,_0x5be81b,_0x16b19e,_0x3f2b89,_0x30d3cc){const _0x222858=_0x3015ca;let _0x53ae08=this[_0x222858(0x166)][_0x222858(0x16f)](_0x59ebd0,_0x204120);if(!_0x53ae08)return;let _0x4c0544=_0x27d7f5[_0x222858(0x170)](),_0x33dc8e=_0x27d7f5[_0x222858(0xe6)](),_0x38b6ca={},_0x29e2b7={};_0x33dc8e[_0x222858(0xed)](_0x3f166d=>{const _0x39e102=_0x222858;let _0x3af6a3=_0x27d7f5[_0x39e102(0x133)](_0x3f166d);_0x29e2b7[_0x3f166d]=_0x3af6a3==null?0x0:_0x3af6a3;});let _0x5bd4af=this[_0x222858(0x10e)](_0x19fe37,_0x59ebd0,_0x204120,_0x3f2b89,_0x30d3cc),_0x2750dd=this[_0x222858(0x10e)](_0xd162d8,_0x59ebd0,_0x204120,_0x3f2b89,_0x30d3cc);if(_0x5bd4af&&_0x2750dd){let _0x12193b=_0x27d7f5[_0x222858(0xe1)](),_0x55c158=(0x0,e[_0x222858(0x160)])(_0x5bd4af,_0x2750dd,_0x12193b),_0x3dca9a=_0x12193b;if(_0x55c158){let _0x2af9ee=(0x0,e[_0x222858(0xf2)])(_0x55c158,_0x27d7f5[_0x222858(0xe1)]()),_0x5083b7=this[_0x222858(0x106)]['getDrawingData'](_0x59ebd0,_0x204120);if(_0x5083b7&&_0x5083b7[_0x31c21f]){let _0x1e414f=_0x5083b7[_0x31c21f];_0x3dca9a=_0x2af9ee['lineType'];for(let [_0x456237,_0x137c9d]of Object[_0x222858(0xdf)](_0x2af9ee[_0x222858(0x162)]))_0x38b6ca[_0x456237]=_0x137c9d;let _0x59b8ef={..._0x1e414f['transform'],'width':_0x2af9ee[_0x222858(0x13e)][_0x222858(0x108)],'height':_0x2af9ee[_0x222858(0x13e)][_0x222858(0x153)],'left':_0x2af9ee[_0x222858(0x13e)][_0x222858(0xc9)],'top':_0x2af9ee[_0x222858(0x13e)]['top'],'flipX':_0x2af9ee[_0x222858(0x13e)][_0x222858(0xe7)],'flipY':_0x2af9ee[_0x222858(0x13e)][_0x222858(0x146)],'angle':_0x2af9ee[_0x222858(0xb4)]},_0x35046c=(0x0,r['transformToDrawingPosition'])(_0x59b8ef,_0x53ae08),_0x29dd91=(0x0,r[_0x222858(0x11c)])(_0x59b8ef,_0x53ae08),_0x2fd1ef={'unitId':_0x59ebd0,'subUnitId':_0x204120,'drawingType':t[_0x222858(0x16d)][_0x222858(0x136)],'drawingId':_0x31c21f,'transform':_0x59b8ef,'sheetTransform':_0x35046c,'axisAlignSheetTransform':_0x29dd91},{unitId:_0x12ca8b,subUnitId:_0x5d2763,undo:_0x2c8861,redo:_0x3064fd,objects:_0x2f9128}=this['_drawingManagerService'][_0x222858(0x135)]([_0x2fd1ef]);_0x5be81b[_0x222858(0xea)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x12ca8b,'subUnitId':_0x5d2763,'op':_0x3064fd,'objects':_0x2f9128,'type':r[_0x222858(0x134)][_0x222858(0xdc)]}}),_0x16b19e[_0x222858(0xea)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x12ca8b,'subUnitId':_0x5d2763,'op':_0x2c8861,'objects':_0x2f9128,'type':r[_0x222858(0x134)][_0x222858(0xdc)]}});}_0x27d7f5['removeLinePoints']();}_0x5be81b['push']({'id':_['id'],'params':{'unitId':_0x59ebd0,'subUnitId':_0x204120,'shapeId':_0x31c21f,'shapeType':_0x3dca9a,'shapeData':{'adjustValues':_0x38b6ca,'relation':_0x4c0544}}}),_0x16b19e['push']({'id':_['id'],'params':{'unitId':_0x59ebd0,'subUnitId':_0x204120,'shapeId':_0x31c21f,'shapeType':_0x12193b,'shapeData':{'adjustValues':_0x29e2b7,'relation':_0x4c0544}}});}}[_0x3015ca(0x119)](_0x46772e,_0x49f20f,_0x10f6e1,_0x2b97a0,_0x3e93ba,_0x2ca320,_0x14fd83,_0x5e41b7,_0x38d4b4,_0x3272bd){const _0xb355ba=_0x3015ca;var _0xc9213b;if(!_0x3e93ba)return;let _0x374317=this['_sheetSkeletonService'][_0xb355ba(0x16f)](_0x46772e,_0x49f20f);if(!_0x374317)return;let _0x227ffa=(_0xc9213b=this[_0xb355ba(0x106)][_0xb355ba(0x11b)]({'unitId':_0x46772e,'subUnitId':_0x49f20f,'drawingId':_0x38d4b4}))==null?void 0x0:_0xc9213b[_0xb355ba(0xc0)];if(!_0x227ffa)return;let _0x2d9d76=_0x227ffa['left']!==_0x3272bd[_0xb355ba(0xc9)]||_0x227ffa[_0xb355ba(0x112)]!==_0x3272bd[_0xb355ba(0x112)],_0x4d99f3=_0x227ffa[_0xb355ba(0x108)]!==_0x3272bd[_0xb355ba(0x108)]||_0x227ffa[_0xb355ba(0x153)]!==_0x3272bd[_0xb355ba(0x153)],_0x4ce14d=_0x227ffa['flipX']!==_0x3272bd[_0xb355ba(0xe7)]||_0x227ffa[_0xb355ba(0x146)]!==_0x3272bd['flipY'],_0x52ea1e=_0x227ffa[_0xb355ba(0x10f)]!==_0x3272bd[_0xb355ba(0x10f)];if(_0x2d9d76&&!_0x4d99f3&&!_0x4ce14d&&!_0x52ea1e){var _0x36df2a,_0x3d3f00,_0x5c01ca,_0x2582a2;let _0x48df3b=((_0x36df2a=_0x3272bd[_0xb355ba(0xc9)])==null?0x0:_0x36df2a)-((_0x3d3f00=_0x227ffa[_0xb355ba(0xc9)])==null?0x0:_0x3d3f00),_0x1c6fbb=((_0x5c01ca=_0x3272bd['top'])==null?0x0:_0x5c01ca)-((_0x2582a2=_0x227ffa['top'])==null?0x0:_0x2582a2),_0x4575da=this['_drawingManagerService'][_0xb355ba(0xb3)](_0x46772e,_0x49f20f);if(_0x4575da&&_0x4575da[_0x10f6e1]){var _0x633a14,_0x3ab379,_0x2f09d2,_0x8d0e2;let _0x1719a4=_0x4575da[_0x10f6e1],_0x47bf3c={..._0x1719a4['transform'],'left':((_0x633a14=(_0x3ab379=_0x1719a4[_0xb355ba(0xc0)])==null?void 0x0:_0x3ab379[_0xb355ba(0xc9)])==null?0x0:_0x633a14)+_0x48df3b,'top':((_0x2f09d2=(_0x8d0e2=_0x1719a4[_0xb355ba(0xc0)])==null?void 0x0:_0x8d0e2[_0xb355ba(0x112)])==null?0x0:_0x2f09d2)+_0x1c6fbb},_0x2ee7b5=(0x0,r[_0xb355ba(0x15e)])(_0x47bf3c,_0x374317),_0x25d8ff=(0x0,r[_0xb355ba(0x11c)])(_0x47bf3c,_0x374317),_0x1cab62={'unitId':_0x46772e,'subUnitId':_0x49f20f,'drawingType':t['DrawingTypeEnum']['DRAWING_SHAPE'],'drawingId':_0x10f6e1,'transform':_0x47bf3c,'sheetTransform':_0x2ee7b5,'axisAlignSheetTransform':_0x25d8ff},{unitId:_0x14156f,subUnitId:_0x239599,undo:_0x32446a,redo:_0xad49a5,objects:_0x562bfd}=this[_0xb355ba(0x106)][_0xb355ba(0x135)]([_0x1cab62]);_0x14fd83[_0xb355ba(0xea)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x14156f,'subUnitId':_0x239599,'op':_0xad49a5,'objects':_0x562bfd,'type':r['DrawingApplyType']['UPDATE']}}),_0x5e41b7['push']({'id':r[_0xb355ba(0x159)]['id'],'params':{'unitId':_0x14156f,'subUnitId':_0x239599,'op':_0x32446a,'objects':_0x562bfd,'type':r[_0xb355ba(0x134)][_0xb355ba(0xdc)]}});}}else{let _0x2eba51=_0x2b97a0['getStartConnectInfo'](),_0x5b8fcd=_0x2b97a0[_0xb355ba(0xbd)]();this[_0xb355ba(0xee)](_0x46772e,_0x49f20f,_0x10f6e1,_0x2b97a0,_0x2eba51,_0x5b8fcd,_0x14fd83,_0x5e41b7,_0x38d4b4,_0x3272bd);}}};A=f([d(0x0,t[_0x3015ca(0xd2)]),d(0x1,(0x0,t['Inject'])(n[_0x3015ca(0x10a)])),d(0x2,(0x0,t['Inject'])(n['SheetSkeletonService'])),d(0x3,(0x0,t['Inject'])(p)),d(0x4,(0x0,t[_0x3015ca(0x147)])(a['IDrawingManagerService']))],A);let j=class extends t[_0x3015ca(0x13f)]{constructor(_0x35019d=k,_0x75dedf,_0x5c2f7e,_0x1b8284){const _0x185895=_0x3015ca;super(),this[_0x185895(0x11e)]=_0x35019d,this[_0x185895(0x14c)]=_0x75dedf,this[_0x185895(0xb6)]=_0x5c2f7e,this[_0x185895(0xf8)]=_0x1b8284;let {..._0x637f0b}=(0x0,t[_0x185895(0x103)])({},k,this[_0x185895(0x11e)]);this[_0x185895(0xf8)][_0x185895(0xe0)](O,_0x637f0b);}['onStarting'](){const _0x17455e=_0x3015ca;let _0x1d9aba=this[_0x17455e(0x14c)];[[u],[p],[A]][_0x17455e(0xed)](_0x5fd0cf=>_0x1d9aba[_0x17455e(0xc2)](_0x5fd0cf)),(0x0,t[_0x17455e(0xbe)])(_0x1d9aba,[[p],[A]]);}};l(j,'type',t[_0x3015ca(0x164)]['UNIVER_SHEET']),l(j,_0x3015ca(0xfd),_0x3015ca(0x156)),l(j,_0x3015ca(0xcc),E),l(j,'version',D),j=f([(0x0,t['DependentOn'])(i[_0x3015ca(0xf4)]),d(0x1,(0x0,t['Inject'])(t[_0x3015ca(0x155)])),d(0x2,t[_0x3015ca(0xd2)]),d(0x3,t[_0x3015ca(0x105)])],j),exports['DEFAULT_SHAPE_HEIGHT']=0xc8,exports['DEFAULT_SHAPE_WIDTH']=0xc8,exports['InsertShapeCommand']=g,exports['InsertSheetsShapeMutation']=m,exports['RemoveSheetsShapeMutation']=h,exports[_0x3015ca(0xd9)]=v,exports['SetSheetsShapeRotateCommand']=b,exports[_0x3015ca(0xcd)]=x,Object['defineProperty'](exports,_0x3015ca(0xe4),{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x3015ca(0x15c)]=y,Object['defineProperty'](exports,_0x3015ca(0xd3),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x3015ca(0xb1)]=S,exports[_0x3015ca(0xf6)]=C,exports[_0x3015ca(0xf9)]=_,exports[_0x3015ca(0x13b)]=T,exports['UpdateSheetsShapeTypeMutation']=w;