@univerjs-pro/sheets-shape 0.25.1 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x291bb4=_0x10d7;(function(_0x1c6552,_0x1a5eb9){const _0x499fee=_0x10d7,_0x33fe19=_0x1c6552();while(!![]){try{const _0x46cc14=parseInt(_0x499fee(0x180))/0x1*(parseInt(_0x499fee(0x11f))/0x2)+-parseInt(_0x499fee(0x155))/0x3*(-parseInt(_0x499fee(0x16e))/0x4)+-parseInt(_0x499fee(0x13a))/0x5*(parseInt(_0x499fee(0x147))/0x6)+-parseInt(_0x499fee(0x14d))/0x7+-parseInt(_0x499fee(0x11c))/0x8+parseInt(_0x499fee(0x18b))/0x9+-parseInt(_0x499fee(0x166))/0xa*(-parseInt(_0x499fee(0x12b))/0xb);if(_0x46cc14===_0x1a5eb9)break;else _0x33fe19['push'](_0x33fe19['shift']());}catch(_0x477b26){_0x33fe19['push'](_0x33fe19['shift']());}}}(_0x10ff,0x418c0));import{ConnectorCoordinateTransform as _0x3af6ac,ShapeArrowSizeEnum as _0x2155f7,ShapeArrowTypeEnum as _0x48d718,ShapeFillEnum as _0x56f575,ShapeGradientTypeEnum as _0x3d3b73,ShapeLineCapEnum as _0x3a73ac,ShapeLineDashEnum as _0x6eaf0d,ShapeLineJoinEnum as _0x5232cf,ShapeLineTypeEnum as _0x2e1f3e,ShapeTypeEnum as _0x140b90,computeConnectorRouteLayout as _0x1390bf,getBasicShapeRotateBound as _0x468f4d,isConnectorShape as _0x50e99f,routeConnectorLineShape as _0x59fc77}from'@univerjs-pro/engine-shape';import{FEnum as _0x2c4b61}from'@univerjs/core/facade';function _0x10d7(_0x1c07a4,_0x4892a8){_0x1c07a4=_0x1c07a4-0x10e;const _0x10ff88=_0x10ff();let _0x10d7a7=_0x10ff88[_0x1c07a4];return _0x10d7a7;}import{DEFAULT_SHAPE_HEIGHT as _0xd6b3e8,DEFAULT_SHAPE_WIDTH as _0xa2c7ac,InsertShapeCommand as _0x2d78f8,SetShapeDrawingDataCommand as _0x268798,SheetsShapeService as _0x32f133,UpdateConnectorRelationCommand as _0x219dd2}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x255a32,generateRandomId as _0x506b1e}from'@univerjs/core';function _0x10ff(){const _0x383bf4=['setShapeSolidFill','call','3260166OizARj','getDrawingByParam','getShapeData','shapeData','drawId','width','ShapeArrowSizeEnum','from','189VyjxAC','worldRect','string','gradientType','isLineShape','object','setStartArrowType','removeShape','lineType','getShapeModel','symbol','abs','ensureSkeleton','top','getConnectorLinePoints','setStrokeLineCapType','function','900CRAiij','_resolveEndpoints','updateShape','extend','ShapeLineJoinEnum','ShapeGradientTypeEnum','constructor','endArrow','10324fmJDFT','ang','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeFillEnum','height','opacity','sin','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','unitId','fill','getEndConnectInfo','getShapeType','index','setStrokeLineJoinType','find','keys','getShapes','setStrokeWidth','483oGbpgg','length','relation','shape','left','subUnitId','NoFill','build','newConnector','getUnitId','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','2323071KfQtpJ','_preloadShapeProperties','localToWorld','setShapeGradientFill','capType','shapeType','\x20and\x20subUnitId\x20','setWidth','_commandService','setStrokeColor','shapeId','getDrawingPoints','fillType','SolidFill','getAdjustValueByName','cxnIndex','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','1234536kLTvlp','getDrawingData','ShapeTypeEnum','1628zdFSEP','connectShapes','setStartArrowSize','size','startArrow','setEndArrowType','getShapeRelation','_injector','color','setStrokeOpacity','Skeleton\x20for\x20unitId\x20','transform','20229KcEOIa','stroke','executeCommand','default','getSheetId','updateContext','getShapeId','stringify','get','insertShape','cos','ShapeLineCapEnum','defineProperty','type','ShapeArrowTypeEnum','10565YDzbAb','setPosition','prototype','getConnectionSiteList','_resolveExistingOrFreeEndpoint','getStartConnectInfo','entries','setStrokeLineType','setNoneFill','connectionSiteIndex','getPosition','rotation','DRAWING_SHAPE','258eBRDuB','getWorkbook','\x20not\x20found','getAdjustPoints'];_0x10ff=function(){return _0x383bf4;};return _0x10ff();}import{IDrawingManagerService as _0x41f792}from'@univerjs/drawing';import{SheetSkeletonService as _0x40d10b,convertPositionCellToSheetOverGrid as _0x100e99}from'@univerjs/sheets';import{ISheetDrawingService as _0x14d135,RemoveSheetDrawingCommand as _0x1fa062}from'@univerjs/sheets-drawing';import{FWorksheet as _0x435e82}from'@univerjs/sheets/facade';var k=class extends _0x2c4b61{get[_0x291bb4(0x11e)](){return _0x140b90;}get[_0x291bb4(0x171)](){return _0x56f575;}get[_0x291bb4(0x16b)](){return _0x3d3b73;}get['ShapeLineTypeEnum'](){return _0x2e1f3e;}get['ShapeLineDashEnum'](){return _0x6eaf0d;}get[_0x291bb4(0x136)](){return _0x3a73ac;}get[_0x291bb4(0x16a)](){return _0x5232cf;}get[_0x291bb4(0x139)](){return _0x48d718;}get[_0x291bb4(0x153)](){return _0x2155f7;}};_0x2c4b61[_0x291bb4(0x169)](k);function A(_0x5a1545){'@babel/helpers - typeof';const _0x36760d=_0x291bb4;return A=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x36760d(0x15f)?function(_0x3c3bb5){return typeof _0x3c3bb5;}:function(_0x4ebbc4){const _0x4ac6cc=_0x36760d;return _0x4ebbc4&&typeof Symbol==_0x4ac6cc(0x165)&&_0x4ebbc4[_0x4ac6cc(0x16c)]===Symbol&&_0x4ebbc4!==Symbol[_0x4ac6cc(0x13c)]?_0x4ac6cc(0x15f):typeof _0x4ebbc4;},A(_0x5a1545);}function j(_0x157b57,_0x783281){const _0x3794f2=_0x291bb4;if(A(_0x157b57)!=_0x3794f2(0x15a)||!_0x157b57)return _0x157b57;var _0x1eb0e4=_0x157b57[Symbol['toPrimitive']];if(_0x1eb0e4!==void 0x0){var _0x1eb3f7=_0x1eb0e4[_0x3794f2(0x14c)](_0x157b57,_0x783281||_0x3794f2(0x12e));if(A(_0x1eb3f7)!=_0x3794f2(0x15a))return _0x1eb3f7;throw TypeError(_0x3794f2(0x170));}return(_0x783281===_0x3794f2(0x157)?String:Number)(_0x157b57);}function M(_0x1beec3){const _0x122b98=_0x291bb4;var _0x1ae5b5=j(_0x1beec3,'string');return A(_0x1ae5b5)==_0x122b98(0x15f)?_0x1ae5b5:_0x1ae5b5+'';}function N(_0x4116ec,_0xc4980c,_0xab6fa9){const _0x300898=_0x291bb4;return(_0xc4980c=M(_0xc4980c))in _0x4116ec?Object[_0x300898(0x137)](_0x4116ec,_0xc4980c,{'value':_0xab6fa9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4116ec[_0xc4980c]=_0xab6fa9,_0x4116ec;}var P=class{constructor(_0x2a0b04,_0x580b3e,_0x1c733b,_0x5758a1){const _0x1f6511=_0x291bb4;N(this,'unitId',void 0x0),N(this,_0x1f6511(0x185),void 0x0),N(this,_0x1f6511(0x151),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x1f6511(0x152),_0xa2c7ac),N(this,_0x1f6511(0x172),_0xd6b3e8),N(this,_0x1f6511(0x110),void 0x0),N(this,'shapeData',{}),N(this,_0x1f6511(0x126),void 0x0),this['unitId']=_0x2a0b04,this[_0x1f6511(0x185)]=_0x580b3e,this['drawId']=_0x1c733b||_0x506b1e(),this[_0x1f6511(0x126)]=_0x5758a1;}[_0x291bb4(0x13b)](_0x261d41,_0x4fc217,_0x27dc2b,_0x1263fa){const _0x4868c8=_0x291bb4;let _0x3a8f77=this[_0x4868c8(0x126)][_0x4868c8(0x133)](_0x40d10b)[_0x4868c8(0x161)](this[_0x4868c8(0x176)],this[_0x4868c8(0x185)]);if(!_0x3a8f77)throw Error(_0x4868c8(0x129)+this['unitId']+_0x4868c8(0x111)+this['subUnitId']+_0x4868c8(0x149));let {transform:_0x4c5151}=_0x100e99(this['unitId'],this[_0x4868c8(0x185)],{'row':_0x261d41,'column':_0x4fc217,'rowOffset':_0x27dc2b,'columnOffset':_0x1263fa},0x1,0x1,_0x3a8f77);return this['x']=_0x4c5151[_0x4868c8(0x184)],this['y']=_0x4c5151[_0x4868c8(0x162)],this;}['setAbsolutePosition'](_0x1a4538,_0x540a6e){return this['x']=_0x1a4538,this['y']=_0x540a6e,this;}['setShapeType'](_0x77a102){return this['shapeType']=_0x77a102,this;}[_0x291bb4(0x14b)](_0x198df8,_0x4689da){const _0x9d3d88=_0x291bb4;return this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]||(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]={}),this[_0x9d3d88(0x150)][_0x9d3d88(0x177)][_0x9d3d88(0x117)]=_0x56f575[_0x9d3d88(0x118)],_0x198df8!==void 0x0&&(this[_0x9d3d88(0x150)]['fill']['color']=_0x198df8),_0x4689da!==void 0x0&&(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]['opacity']=_0x4689da),this;}[_0x291bb4(0x10e)](_0x58ea71,_0x404ecd,_0x5045cb){const _0x118485=_0x291bb4;if(_0x404ecd===void 0x0||_0x404ecd[_0x118485(0x181)]===0x0)throw Error(_0x118485(0x175));return this[_0x118485(0x150)]['fill']||(this[_0x118485(0x150)][_0x118485(0x177)]={}),this[_0x118485(0x150)]['fill']['gradientStops']=_0x404ecd,this[_0x118485(0x150)][_0x118485(0x177)][_0x118485(0x117)]=_0x56f575['GradientFill'],this['shapeData'][_0x118485(0x177)][_0x118485(0x158)]=_0x58ea71,_0x5045cb!==void 0x0&&(this[_0x118485(0x150)][_0x118485(0x177)]['gradientAngle']=_0x5045cb),this;}[_0x291bb4(0x142)](){const _0x14498e=_0x291bb4;return this[_0x14498e(0x150)]['fill']={'fillType':_0x56f575[_0x14498e(0x186)]},this;}[_0x291bb4(0x114)](_0x3085bf){const _0x5ab674=_0x291bb4;return this[_0x5ab674(0x150)][_0x5ab674(0x12c)]||(this['shapeData'][_0x5ab674(0x12c)]={}),this['shapeData'][_0x5ab674(0x12c)][_0x5ab674(0x127)]=_0x3085bf,this;}[_0x291bb4(0x17f)](_0x8c029e){const _0x5009cf=_0x291bb4;return this[_0x5009cf(0x150)][_0x5009cf(0x12c)]||(this['shapeData']['stroke']={}),this[_0x5009cf(0x150)]['stroke'][_0x5009cf(0x152)]=_0x8c029e,this;}['setStrokeLineDashType'](_0x2a3931){const _0x4df03d=_0x291bb4;return this['shapeData'][_0x4df03d(0x12c)]||(this['shapeData'][_0x4df03d(0x12c)]={}),this[_0x4df03d(0x150)]['stroke']['dashType']=_0x2a3931,this;}[_0x291bb4(0x17b)](_0x5bcc09){const _0x229141=_0x291bb4;return this[_0x229141(0x150)]['stroke']||(this[_0x229141(0x150)][_0x229141(0x12c)]={}),this['shapeData'][_0x229141(0x12c)]['lineJoinType']=_0x5bcc09,this;}[_0x291bb4(0x164)](_0x38b6cc){const _0x3ee6cf=_0x291bb4;return this[_0x3ee6cf(0x150)]['stroke']||(this[_0x3ee6cf(0x150)][_0x3ee6cf(0x12c)]={}),this[_0x3ee6cf(0x150)]['stroke'][_0x3ee6cf(0x10f)]=_0x38b6cc,this;}[_0x291bb4(0x128)](_0x2723cd){const _0x3d33e3=_0x291bb4;return this['shapeData'][_0x3d33e3(0x12c)]||(this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)]={}),this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)][_0x3d33e3(0x173)]=_0x2723cd,this;}[_0x291bb4(0x141)](_0x5683c4){const _0x502f8b=_0x291bb4;return this['shapeData']['stroke']||(this[_0x502f8b(0x150)][_0x502f8b(0x12c)]={}),this[_0x502f8b(0x150)][_0x502f8b(0x12c)]['lineStrokeType']=_0x5683c4,this;}[_0x291bb4(0x112)](_0x44132d){const _0x28ed93=_0x291bb4;return this[_0x28ed93(0x152)]=_0x44132d,this;}['setHeight'](_0xe3ab6a){const _0xcee124=_0x291bb4;return this[_0xcee124(0x172)]=_0xe3ab6a,this;}[_0x291bb4(0x159)](){const _0x2d8f19=_0x291bb4;let _0x9ed73c=this[_0x2d8f19(0x126)][_0x2d8f19(0x133)](_0x32f133)['getShapeModel'](this[_0x2d8f19(0x176)],this[_0x2d8f19(0x185)],this[_0x2d8f19(0x151)]);return _0x9ed73c?_0x50e99f(_0x9ed73c[_0x2d8f19(0x179)]()):this['shapeType']?_0x50e99f(this[_0x2d8f19(0x110)]):!0x1;}['getConnectionSites'](){const _0xef1195=_0x291bb4;let _0x375fc9=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x32f133)[_0xef1195(0x15e)](this[_0xef1195(0x176)],this[_0xef1195(0x185)],this[_0xef1195(0x151)]);if(!_0x375fc9)return[];let _0x462ad3=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x41f792)[_0xef1195(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0xef1195(0x185)],'drawingId':this['drawId']});if(!(_0x462ad3!=null&&_0x462ad3[_0xef1195(0x12a)]))return[];let {width:_0xf7cd19=0x0,height:_0x42b9bf=0x0}=_0x462ad3[_0xef1195(0x12a)];return _0x375fc9[_0xef1195(0x130)]({'width':_0xf7cd19,'height':_0x42b9bf}),_0x375fc9[_0xef1195(0x13d)]();}[_0x291bb4(0x14a)](){const _0x288ca2=_0x291bb4;let _0x31cdc9=this['_injector']['get'](_0x32f133)['getShapeModel'](this['unitId'],this[_0x288ca2(0x185)],this[_0x288ca2(0x151)]);if(!_0x31cdc9)return[];let _0x486cfe=this[_0x288ca2(0x126)][_0x288ca2(0x133)](_0x41f792)[_0x288ca2(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0x288ca2(0x185)],'drawingId':this['drawId']});if(!(_0x486cfe!=null&&_0x486cfe[_0x288ca2(0x12a)]))return[];let {width:_0x12f537=0x0,height:_0x5bc8a9=0x0}=_0x486cfe[_0x288ca2(0x12a)];return _0x31cdc9['updateContext']({'width':_0x12f537,'height':_0x5bc8a9}),_0x31cdc9[_0x288ca2(0x116)]();}[_0x291bb4(0x163)](){const _0x3bf9f0=_0x291bb4;let _0x280a57=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x32f133)[_0x3bf9f0(0x15e)](this[_0x3bf9f0(0x176)],this[_0x3bf9f0(0x185)],this[_0x3bf9f0(0x151)]);if(!_0x280a57||!_0x50e99f(_0x280a57[_0x3bf9f0(0x179)]()))return[];let _0x1a96e3=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x41f792)[_0x3bf9f0(0x14e)]({'unitId':this[_0x3bf9f0(0x176)],'subUnitId':this[_0x3bf9f0(0x185)],'drawingId':this[_0x3bf9f0(0x151)]});if(!(_0x1a96e3!=null&&_0x1a96e3[_0x3bf9f0(0x12a)]))return[];let {width:_0x216445=0x0,height:_0x43af91=0x0}=_0x1a96e3[_0x3bf9f0(0x12a)];return _0x280a57[_0x3bf9f0(0x130)]({'width':_0x216445,'height':_0x43af91}),_0x280a57['getConnectorLinePoints']();}[_0x291bb4(0x13f)](){const _0x7eb395=_0x291bb4;var _0x19df9f;let _0x2f017c=this[_0x7eb395(0x126)][_0x7eb395(0x133)](_0x32f133)[_0x7eb395(0x15e)](this[_0x7eb395(0x176)],this['subUnitId'],this[_0x7eb395(0x151)]);return _0x2f017c?(_0x19df9f=_0x2f017c[_0x7eb395(0x13f)]())==null?null:_0x19df9f:null;}[_0x291bb4(0x178)](){const _0x5368c4=_0x291bb4;var _0x2754d3;let _0x1ac605=this[_0x5368c4(0x126)][_0x5368c4(0x133)](_0x32f133)[_0x5368c4(0x15e)](this['unitId'],this[_0x5368c4(0x185)],this[_0x5368c4(0x151)]);return _0x1ac605?(_0x2754d3=_0x1ac605['getEndConnectInfo']())==null?null:_0x2754d3:null;}[_0x291bb4(0x187)](){const _0x3a8a6c=_0x291bb4;var _0x141713,_0x4c3bda;if(!this['shapeType'])throw Error(_0x3a8a6c(0x18a));if(this['x']===0x0||this['y']===0x0){let _0x169b03=this[_0x3a8a6c(0x126)]['get'](_0x40d10b)[_0x3a8a6c(0x161)](this[_0x3a8a6c(0x176)],this[_0x3a8a6c(0x185)]);if(!_0x169b03)throw Error(_0x3a8a6c(0x129)+this[_0x3a8a6c(0x176)]+'\x20and\x20subUnitId\x20'+this[_0x3a8a6c(0x185)]+_0x3a8a6c(0x149));let {transform:_0x4e2c57}=_0x100e99(this['unitId'],this[_0x3a8a6c(0x185)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x169b03);this['x']=this['x']>0x0?this['x']:_0x4e2c57[_0x3a8a6c(0x184)],this['y']=this['y']>0x0?this['y']:_0x4e2c57[_0x3a8a6c(0x162)];}return this[_0x3a8a6c(0x152)]=(_0x141713=this[_0x3a8a6c(0x152)])==null?_0xa2c7ac:_0x141713,this[_0x3a8a6c(0x172)]=(_0x4c3bda=this[_0x3a8a6c(0x172)])==null?_0xd6b3e8:_0x4c3bda,{'unitId':this[_0x3a8a6c(0x176)],'subUnitId':this['subUnitId'],'shapeId':this[_0x3a8a6c(0x151)],'shapeType':this[_0x3a8a6c(0x110)],'shapeData':Object[_0x3a8a6c(0x17d)](this[_0x3a8a6c(0x150)])[_0x3a8a6c(0x181)]>0x0?this[_0x3a8a6c(0x150)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x3a8a6c(0x172)]};}[_0x291bb4(0x131)](){const _0x5983bb=_0x291bb4;return this[_0x5983bb(0x151)];}['getShapeType'](){const _0x5ea486=_0x291bb4;return this[_0x5ea486(0x110)];}[_0x291bb4(0x14f)](){const _0x4954e1=_0x291bb4;return this[_0x4954e1(0x150)];}[_0x291bb4(0x144)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0xdffd63=_0x291bb4;return{'width':this[_0xdffd63(0x152)],'height':this[_0xdffd63(0x172)]};}},F=class extends P{constructor(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481){const _0x342473=_0x291bb4;super(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481),N(this,_0x342473(0x150),{});}['setShapeType'](_0x38304c){const _0x173e1a=_0x291bb4;if(!_0x50e99f(_0x38304c))throw Error(_0x173e1a(0x11b)+_0x38304c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x38304c),this;}[_0x291bb4(0x15b)](_0x7b5985){const _0x30b6f7=_0x291bb4;var _0x3da1b9,_0x13ab25;return(_0x3da1b9=this[_0x30b6f7(0x150)])!=null&&_0x3da1b9['ln']||(this[_0x30b6f7(0x150)]['ln']={}),!((_0x13ab25=this[_0x30b6f7(0x150)])==null||(_0x13ab25=_0x13ab25['ln'])==null)&&_0x13ab25[_0x30b6f7(0x123)]||(this['shapeData']['ln'][_0x30b6f7(0x123)]={}),this[_0x30b6f7(0x150)]['ln']['startArrow'][_0x30b6f7(0x138)]=_0x7b5985,this;}[_0x291bb4(0x124)](_0x2ae5fb){const _0x2e6c9f=_0x291bb4;var _0x38f201,_0x415815;return(_0x38f201=this['shapeData'])!=null&&_0x38f201['ln']||(this[_0x2e6c9f(0x150)]['ln']={}),!((_0x415815=this[_0x2e6c9f(0x150)])==null||(_0x415815=_0x415815['ln'])==null)&&_0x415815['endArrow']||(this[_0x2e6c9f(0x150)]['ln'][_0x2e6c9f(0x16d)]={}),this['shapeData']['ln'][_0x2e6c9f(0x16d)]['type']=_0x2ae5fb,this;}[_0x291bb4(0x121)](_0x11812d){const _0x1a9e83=_0x291bb4;var _0x42c5c4,_0x23ed3d;return(_0x42c5c4=this[_0x1a9e83(0x150)])!=null&&_0x42c5c4['ln']||(this[_0x1a9e83(0x150)]['ln']={}),!((_0x23ed3d=this[_0x1a9e83(0x150)])==null||(_0x23ed3d=_0x23ed3d['ln'])==null)&&_0x23ed3d[_0x1a9e83(0x123)]||(this['shapeData']['ln']['startArrow']={}),this[_0x1a9e83(0x150)]['ln'][_0x1a9e83(0x123)][_0x1a9e83(0x122)]=_0x11812d,this;}['setEndArrowSize'](_0x3242fc){const _0x2dc2df=_0x291bb4;var _0x1d564b,_0x5502e5;return(_0x1d564b=this[_0x2dc2df(0x150)])!=null&&_0x1d564b['ln']||(this[_0x2dc2df(0x150)]['ln']={}),!((_0x5502e5=this['shapeData'])==null||(_0x5502e5=_0x5502e5['ln'])==null)&&_0x5502e5['endArrow']||(this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]={}),this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]['size']=_0x3242fc,this;}[_0x291bb4(0x187)](){const _0x4c41ec=_0x291bb4;return super[_0x4c41ec(0x187)]();}[_0x291bb4(0x178)](){const _0x2217a7=_0x291bb4;var _0xc8c934;return((_0xc8c934=this[_0x2217a7(0x150)])==null||(_0xc8c934=_0xc8c934[_0x2217a7(0x182)])==null?void 0x0:_0xc8c934['to'])||null;}[_0x291bb4(0x13f)](){const _0x3392e2=_0x291bb4;var _0x5c0d3d;return((_0x5c0d3d=this[_0x3392e2(0x150)])==null||(_0x5c0d3d=_0x5c0d3d[_0x3392e2(0x182)])==null?void 0x0:_0x5c0d3d['from'])||null;}};function I(_0x8d8981,_0x41c625,_0x18d7f5,_0x2c17fe,_0x579bac,_0x478df6){const _0x44c814=_0x291bb4;let _0x13026d=_0x579bac[_0x44c814(0x15e)](_0x8d8981,_0x41c625,_0x18d7f5);if(!_0x13026d)return null;let _0x3643ac=_0x478df6[_0x44c814(0x14e)]({'unitId':_0x8d8981,'subUnitId':_0x41c625,'drawingId':_0x18d7f5});if(!(_0x3643ac!=null&&_0x3643ac[_0x44c814(0x12a)]))return null;let {left:_0x1d2b1e=0x0,top:_0x1583e0=0x0,width:_0x5e3e5d=0x0,height:_0x4f5724=0x0,flipX:_0xd2a02c=!0x1,flipY:_0x4f96af=!0x1,angle:_0x4791c9}=_0x3643ac[_0x44c814(0x12a)];_0x13026d[_0x44c814(0x130)]({'width':_0x5e3e5d,'height':_0x4f5724});let _0x1ad6aa=_0x13026d[_0x44c814(0x13d)]()[_0x44c814(0x17c)](_0x3c642d=>_0x3c642d[_0x44c814(0x17a)]===_0x2c17fe);if(!_0x1ad6aa)return null;let _0x265a76=_0xd2a02c?_0x5e3e5d-_0x1ad6aa['x']:_0x1ad6aa['x'],_0x5b618b=_0x4f96af?_0x4f5724-_0x1ad6aa['y']:_0x1ad6aa['y'];if(_0x4791c9&&_0x4791c9!==0x0){let _0x299421=_0x4791c9*Math['PI']/0xb4,_0x39492f=Math[_0x44c814(0x135)](_0x299421),_0x5525dd=Math[_0x44c814(0x174)](_0x299421),_0x38d391=_0x5e3e5d/0x2,_0x46530b=_0x4f5724/0x2,_0x28443a=_0x265a76-_0x38d391,_0x533292=_0x5b618b-_0x46530b;_0x265a76=_0x38d391+_0x28443a*_0x39492f-_0x533292*_0x5525dd,_0x5b618b=_0x46530b+_0x28443a*_0x5525dd+_0x533292*_0x39492f;}_0x265a76+=_0x1d2b1e,_0x5b618b+=_0x1583e0;let _0x3de08d=_0x1ad6aa[_0x44c814(0x16f)]/0xea60;_0xd2a02c&&(_0x3de08d=0xb4-_0x3de08d),_0x4f96af&&(_0x3de08d=-_0x3de08d),_0x3de08d+=_0x4791c9||0x0,_0x3de08d=(_0x3de08d%0x168+0x168)%0x168;let _0x10413b=_0x468f4d({'left':_0x1d2b1e,'top':_0x1583e0,'width':_0x5e3e5d,'height':_0x4f5724},_0x4791c9||0x0);return{'point':{'x':_0x265a76,'y':_0x5b618b},'angle':_0x3de08d,'bounds':_0x10413b};}function L(_0xa9b7bd,_0x14eabe){const _0x58da9c=_0x291bb4;let _0x2e2e4e=_0x14eabe['x']-_0xa9b7bd['x'],_0xc900d6=_0x14eabe['y']-_0xa9b7bd['y'];return Math[_0x58da9c(0x160)](_0x2e2e4e)>=Math[_0x58da9c(0x160)](_0xc900d6)?_0x2e2e4e>=0x0?0xb4:0x0:_0xc900d6>=0x0?0x10e:0x5a;}function R(_0x1876c6,_0x44a1ab,_0x4ad0cb,_0x575d5c,_0x15f0b8,_0x8d7868,_0x2eed4a){const _0x2fa57e=_0x291bb4;let _0xce97b1=_0x8d7868['getShapeModel'](_0x1876c6,_0x44a1ab,_0x4ad0cb);if(!_0xce97b1)return null;let _0x1d05e7=_0x2eed4a[_0x2fa57e(0x14e)]({'unitId':_0x1876c6,'subUnitId':_0x44a1ab,'drawingId':_0x4ad0cb});if(!(_0x1d05e7!=null&&_0x1d05e7[_0x2fa57e(0x12a)]))return null;let {left:_0x4fd262=0x0,top:_0x4ffc94=0x0,width:_0x458028=0x0,height:_0x457bba=0x0,flipX:_0x1fe5d2=!0x1,flipY:_0x54e319=!0x1}=_0x1d05e7[_0x2fa57e(0x12a)];_0xce97b1[_0x2fa57e(0x130)]({'width':_0x458028,'height':_0x457bba});let _0x10505f=_0xce97b1['getConnectorLinePoints']();if(_0x10505f[_0x2fa57e(0x181)]<0x2)return null;let _0x40eed3=_0x575d5c?_0x10505f[0x0]:_0x10505f[_0x10505f['length']-0x1],_0x3de4b7=new _0x3af6ac({'left':_0x4fd262,'top':_0x4ffc94,'width':_0x458028,'height':_0x457bba,'flipX':_0x1fe5d2,'flipY':_0x54e319})[_0x2fa57e(0x18d)](_0x40eed3);return{'point':_0x3de4b7,'angle':L(_0x15f0b8['point'],_0x3de4b7),'bounds':{'left':_0x3de4b7['x'],'top':_0x3de4b7['y'],'width':0x0,'height':0x0}};}var z=class extends _0x435e82{async[_0x291bb4(0x134)](_0x489826){const _0x5a1b45=_0x291bb4;let {unitId:_0x4cf428,subUnitId:_0x575cd8,shapeId:_0x2be68f,shapeType:_0x40a2ed,shapeData:_0x2964f9,x:_0x5dd0bc,y:_0x52f6a2,width:_0x4eddcb,height:_0x4cc8e2}=_0x489826;return this[_0x5a1b45(0x113)][_0x5a1b45(0x12d)](_0x2d78f8['id'],{'unitId':_0x4cf428,'subUnitId':_0x575cd8,'shapeId':_0x2be68f,'shapeType':_0x40a2ed,'shapeData':_0x2964f9,'position':{'x':_0x5dd0bc,'y':_0x52f6a2},'width':_0x4eddcb,'height':_0x4cc8e2});}async[_0x291bb4(0x168)](_0x4c6c48){const _0x5b1464=_0x291bb4;let {unitId:_0x186aa3,subUnitId:_0x5e0a50,shapeId:_0x43d57f,shapeType:_0x505f08,shapeData:_0x3eb725,x:_0x5ca3af,y:_0x4b298a,width:_0x1d349c,height:_0x3c47aa}=_0x4c6c48;return this['_commandService'][_0x5b1464(0x12d)](_0x268798['id'],{'unitId':_0x186aa3,'subUnitId':_0x5e0a50,'shapeId':_0x43d57f,'shapeType':_0x505f08,'shapeData':_0x3eb725,'position':{'x':_0x5ca3af,'y':_0x4b298a},'width':_0x1d349c,'height':_0x3c47aa});}['newShape'](_0xe9eec1){const _0x4a5ed0=_0x291bb4;let _0x50e147=this[_0x4a5ed0(0x148)]()['getUnitId'](),_0x40e240=this[_0x4a5ed0(0x12f)]();if(_0xe9eec1){let _0x1c4947=new P(_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)],this[_0x4a5ed0(0x126)]);return this[_0x4a5ed0(0x18c)](_0x1c4947,_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)]),_0x1c4947;}return new P(_0x50e147,_0x40e240,_0x506b1e(),this['_injector']);}[_0x291bb4(0x188)](_0x23fbc3){const _0x4cdc57=_0x291bb4;let _0x1db8f6=this['getWorkbook']()[_0x4cdc57(0x189)](),_0x2250c2=this[_0x4cdc57(0x12f)]();if(_0x23fbc3){let _0x55f236=new F(_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)],this[_0x4cdc57(0x126)]);return this[_0x4cdc57(0x18c)](_0x55f236,_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)]),_0x55f236;}return new F(_0x1db8f6,_0x2250c2,_0x506b1e(),this['_injector']);}[_0x291bb4(0x17e)](){const _0x76f708=_0x291bb4;let _0x261ce5=this[_0x76f708(0x126)]['get'](_0x14d135),_0x3a1cde=this[_0x76f708(0x148)]()[_0x76f708(0x189)](),_0x19bb16=this[_0x76f708(0x12f)](),_0x569dae=_0x261ce5[_0x76f708(0x11d)](_0x3a1cde,_0x19bb16);if(!_0x569dae)return[];let _0x3b72ca=[];for(let [_0x2e4454,_0xad1a7a]of Object[_0x76f708(0x140)](_0x569dae))if(_0xad1a7a&&_0xad1a7a['drawingType']===_0x255a32[_0x76f708(0x146)]){let _0x57779d=new P(_0x3a1cde,_0x19bb16,_0x2e4454,this[_0x76f708(0x126)]);this[_0x76f708(0x18c)](_0x57779d,_0x3a1cde,_0x19bb16,_0x2e4454),_0x3b72ca['push'](_0x57779d);}return _0x3b72ca;}[_0x291bb4(0x15c)](_0x5bb6ee){const _0x2a2a98=_0x291bb4;let {unitId:_0x45bfff,subUnitId:_0x41b3a7,drawId:_0x1c60e3}=_0x5bb6ee;return this['_commandService'][_0x2a2a98(0x12d)](_0x1fa062['id'],{'unitId':_0x45bfff,'drawings':[{'unitId':_0x45bfff,'subUnitId':_0x41b3a7,'drawingId':_0x1c60e3,'drawingType':_0x255a32['DRAWING_SHAPE']}]});}async[_0x291bb4(0x120)](_0x5064f9){const _0xa912f7=_0x291bb4;let {connector:_0x47335f,startTarget:_0x58bd20,endTarget:_0x3c4d5e}=_0x5064f9;if(!_0x58bd20&&!_0x3c4d5e)return!0x1;let _0x5340b4=this[_0xa912f7(0x148)]()[_0xa912f7(0x189)](),_0x1b1df8=this[_0xa912f7(0x12f)](),_0x43c8c5=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x32f133),_0xf1d35b=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x41f792),_0x654580=_0x43c8c5[_0xa912f7(0x15e)](_0x5340b4,_0x1b1df8,_0x47335f[_0xa912f7(0x151)]);if(!_0x654580)return!0x1;let _0x12d271=_0x654580[_0xa912f7(0x179)](),_0x2d4bc0=_0x654580[_0xa912f7(0x125)](),_0x5d8595={};for(let _0x45403a of _0x654580['getAdjustNames']()){let _0x18aec5=_0x654580[_0xa912f7(0x119)](_0x45403a);_0x18aec5!==void 0x0&&(_0x5d8595[_0x45403a]=_0x18aec5);}let {startInfo:_0x86a1cb,endInfo:_0x38758a}=this[_0xa912f7(0x167)](_0x5340b4,_0x1b1df8,_0x47335f,_0x654580,_0x58bd20,_0x3c4d5e,_0x43c8c5,_0xf1d35b,_0x2d4bc0);if(!_0x86a1cb||!_0x38758a)return!0x1;let _0x4fe045=_0x1390bf(_0x59fc77(_0x86a1cb,_0x38758a,_0x12d271),_0x12d271),_0x45cc63={};return _0x58bd20?_0x45cc63['from']={'shapeId':_0x58bd20['shape'][_0xa912f7(0x151)],'cxnIndex':_0x58bd20[_0xa912f7(0x143)]}:_0x2d4bc0!=null&&_0x2d4bc0['from']&&(_0x45cc63[_0xa912f7(0x154)]=_0x2d4bc0[_0xa912f7(0x154)]),_0x3c4d5e?_0x45cc63['to']={'shapeId':_0x3c4d5e[_0xa912f7(0x183)][_0xa912f7(0x151)],'cxnIndex':_0x3c4d5e['connectionSiteIndex']}:_0x2d4bc0!=null&&_0x2d4bc0['to']&&(_0x45cc63['to']=_0x2d4bc0['to']),this[_0xa912f7(0x113)][_0xa912f7(0x12d)](_0x219dd2['id'],{'unitId':_0x5340b4,'subUnitId':_0x1b1df8,'connectorShapeId':_0x47335f[_0xa912f7(0x151)],'width':_0x4fe045[_0xa912f7(0x156)]['width'],'height':_0x4fe045['worldRect'][_0xa912f7(0x172)],'left':_0x4fe045[_0xa912f7(0x156)][_0xa912f7(0x184)],'top':_0x4fe045['worldRect'][_0xa912f7(0x162)],'flipX':_0x4fe045['worldRect']['flipX']||!0x1,'flipY':_0x4fe045[_0xa912f7(0x156)]['flipY']||!0x1,'oldAdjustValues':_0x5d8595,'newAdjustValues':_0x4fe045['adjustValues'],'newLineType':_0x4fe045[_0xa912f7(0x15d)],'oldLineType':_0x12d271,'rotation':_0x4fe045[_0xa912f7(0x145)],'oldRelation':_0x2d4bc0,'newRelation':_0x45cc63});}[_0x291bb4(0x18c)](_0x58b9c9,_0x1cc1bf,_0x30f73a,_0x51dd5a){const _0x2add98=_0x291bb4;let _0x50e1e5=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x41f792)[_0x2add98(0x14e)]({'unitId':_0x1cc1bf,'subUnitId':_0x30f73a,'drawingId':_0x51dd5a});if(_0x50e1e5!=null&&_0x50e1e5['transform']){var _0x4404ca,_0x2f7c6d,_0x250518,_0xf08f46;_0x58b9c9['x']=(_0x4404ca=_0x50e1e5['transform'][_0x2add98(0x184)])==null?0x0:_0x4404ca,_0x58b9c9['y']=(_0x2f7c6d=_0x50e1e5['transform'][_0x2add98(0x162)])==null?0x0:_0x2f7c6d,_0x58b9c9[_0x2add98(0x152)]=(_0x250518=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x152)])==null?_0x58b9c9[_0x2add98(0x152)]:_0x250518,_0x58b9c9[_0x2add98(0x172)]=(_0xf08f46=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x172)])==null?_0x58b9c9[_0x2add98(0x172)]:_0xf08f46;}let _0x5930c3=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x32f133)[_0x2add98(0x15e)](_0x1cc1bf,_0x30f73a,_0x51dd5a);if(_0x5930c3){_0x58b9c9[_0x2add98(0x110)]=_0x5930c3[_0x2add98(0x179)]();let _0x195736=_0x5930c3[_0x2add98(0x14f)]();_0x195736&&(_0x58b9c9[_0x2add98(0x150)]=JSON['parse'](JSON[_0x2add98(0x132)](_0x195736)));}}[_0x291bb4(0x167)](_0xd84ca8,_0x20bf47,_0x53f6f1,_0x44ea04,_0x416fa1,_0x5eb004,_0x1b7505,_0x41b98a,_0x3d0389){const _0x434b74=_0x291bb4;let _0xbe91d8=null,_0x2b4212=null;return _0x416fa1&&(_0xbe91d8=I(_0xd84ca8,_0x20bf47,_0x416fa1['shape']['drawId'],_0x416fa1[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0x5eb004&&(_0x2b4212=I(_0xd84ca8,_0x20bf47,_0x5eb004[_0x434b74(0x183)][_0x434b74(0x151)],_0x5eb004[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0xbe91d8||(_0xbe91d8=this['_resolveExistingOrFreeEndpoint'](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x0,_0x2b4212,_0x3d0389==null?void 0x0:_0x3d0389['from'],_0x1b7505,_0x41b98a)),_0x2b4212||(_0x2b4212=this[_0x434b74(0x13e)](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x1,_0xbe91d8,_0x3d0389==null?void 0x0:_0x3d0389['to'],_0x1b7505,_0x41b98a)),{'startInfo':_0xbe91d8,'endInfo':_0x2b4212};}['_resolveExistingOrFreeEndpoint'](_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x1b67d3,_0x4d75d6,_0x33a6e1){const _0x15cf70=_0x291bb4;if(_0x1b67d3){let _0x46c05e=I(_0x4d1515,_0x1ac046,_0x1b67d3[_0x15cf70(0x115)],_0x1b67d3[_0x15cf70(0x11a)],_0x4d75d6,_0x33a6e1);if(_0x46c05e)return _0x46c05e;}return _0x25a3d9?R(_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x4d75d6,_0x33a6e1):null;}};_0x435e82[_0x291bb4(0x169)](z);export{F as FConnectorShape,P as FShape};
|
|
1
|
+
const _0xb0776b=_0x2a57;function _0x2a57(_0x6fc16a,_0x253c8c){_0x6fc16a=_0x6fc16a-0x12b;const _0x2a6faa=_0x2a6f();let _0x2a5772=_0x2a6faa[_0x6fc16a];return _0x2a5772;}(function(_0x11f6fc,_0x4b252b){const _0x136aad=_0x2a57,_0x1f6f76=_0x11f6fc();while(!![]){try{const _0x3c30ac=-parseInt(_0x136aad(0x13b))/0x1+parseInt(_0x136aad(0x1a7))/0x2+parseInt(_0x136aad(0x19b))/0x3*(-parseInt(_0x136aad(0x136))/0x4)+parseInt(_0x136aad(0x15f))/0x5*(-parseInt(_0x136aad(0x12f))/0x6)+parseInt(_0x136aad(0x156))/0x7+parseInt(_0x136aad(0x19f))/0x8+-parseInt(_0x136aad(0x1a3))/0x9*(-parseInt(_0x136aad(0x1ae))/0xa);if(_0x3c30ac===_0x4b252b)break;else _0x1f6f76['push'](_0x1f6f76['shift']());}catch(_0x5a156c){_0x1f6f76['push'](_0x1f6f76['shift']());}}}(_0x2a6f,0xbaee5));import{ConnectorCoordinateTransform as _0x235482,ShapeArrowSizeEnum as _0x47593a,ShapeArrowTypeEnum as _0x25f79f,ShapeFillEnum as _0x2b9fa0,ShapeGradientTypeEnum as _0x465bb4,ShapeLineCapEnum as _0x6a8b99,ShapeLineDashEnum as _0xbe1de4,ShapeLineJoinEnum as _0x1e0034,ShapeLineTypeEnum as _0x43876c,ShapeTypeEnum as _0x58e817,computeConnectorRouteLayout as _0x53deb7,getBasicShapeRotateBound as _0x12c401,isConnectorShape as _0x1df30e,routeConnectorLineShape as _0x4773b1}from'@univerjs-pro/engine-shape';import{FEnum as _0x5f3d}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0xb8cf8d,DEFAULT_SHAPE_WIDTH as _0x5ef94c,InsertShapeCommand as _0x22bb9b,SetShapeDrawingDataCommand as _0x42294b,SheetsShapeService as _0x3c7127,UpdateConnectorRelationCommand as _0x319eb8}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x2bcb5a,generateRandomId as _0x793d5e}from'@univerjs/core';import{IDrawingManagerService as _0x36a4ec}from'@univerjs/drawing';import{SheetSkeletonService as _0x1f069c,convertPositionCellToSheetOverGrid as _0x433800}from'@univerjs/sheets';function _0x2a6f(){const _0x4de767=['getStartConnectInfo','stroke','updateShape','SolidFill','connectionSiteIndex','getShapes','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','transform','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','shapeId','getConnectorLinePoints','endArrow','getUnitId','\x20not\x20found','unitId','getAdjustNames','updateContext','abs','getDrawingByParam','getAdjustPoints','setHeight','setEndArrowType','getShapeModel','drawId','symbol','NoFill','2164722XQKZXQ','DRAWING_SHAPE','type','ang','size','worldRect','getSize','adjustValues','setShapeType','54190WRRnrV','getShapeData','relation','setStrokeLineDashType','getPosition','getShapeId','lineStrokeType','getSheetId','width','setStrokeColor','getAdjustValueByName','ShapeArrowTypeEnum','left','setShapeGradientFill','subUnitId','ShapeLineTypeEnum','_resolveExistingOrFreeEndpoint','ShapeGradientTypeEnum','shape','ShapeTypeEnum','executeCommand','isLineShape','build','shapeData','keys','sin','setShapeSolidFill','localToWorld','color','height','extend','constructor','drawingType','cxnIndex','get','setStartArrowType','string','startArrow','defineProperty','getWorkbook','toPrimitive','index','getDrawingPoints','parse','gradientStops','object','flipX','setEndArrowSize','dashType','getShapeType','getEndConnectInfo','setPosition','lineJoinType','setWidth','find','iterator','_commandService','ShapeArrowSizeEnum','getConnectionSiteList','entries','18qGmYyg','ShapeFillEnum','shapeType','setStrokeLineType','11815400NhPamH','lineType','top','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','313623uaNRvv','ShapeLineJoinEnum',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','_injector','1543654ZPGspo','setAbsolutePosition','capType','Skeleton\x20for\x20unitId\x20','length','fillType','fill','670ctxNom','ShapeLineCapEnum','\x20and\x20subUnitId\x20','function','rotation','_preloadShapeProperties','ensureSkeleton','768krzJCB','cos','setStrokeLineCapType','insertShape','prototype','_resolveEndpoints','point','1008948IXSYnz','from','setNoneFill','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','gradientType','1226392loKCvS'];_0x2a6f=function(){return _0x4de767;};return _0x2a6f();}import{ISheetDrawingService as _0x3e52bb,RemoveSheetDrawingCommand as _0x49b49f}from'@univerjs/sheets-drawing';import{FWorksheet as _0x30bddd}from'@univerjs/sheets/facade';var k=class extends _0x5f3d{get[_0xb0776b(0x172)](){return _0x58e817;}get[_0xb0776b(0x19c)](){return _0x2b9fa0;}get[_0xb0776b(0x170)](){return _0x465bb4;}get[_0xb0776b(0x16e)](){return _0x43876c;}get['ShapeLineDashEnum'](){return _0xbe1de4;}get[_0xb0776b(0x1af)](){return _0x6a8b99;}get[_0xb0776b(0x1a4)](){return _0x1e0034;}get[_0xb0776b(0x16a)](){return _0x25f79f;}get[_0xb0776b(0x198)](){return _0x47593a;}};_0x5f3d[_0xb0776b(0x17d)](k);function A(_0x54451f){'@babel/helpers - typeof';const _0x2c5adc=_0xb0776b;return A=typeof Symbol==_0x2c5adc(0x12b)&&typeof Symbol[_0x2c5adc(0x196)]==_0x2c5adc(0x154)?function(_0x545255){return typeof _0x545255;}:function(_0x13d18a){const _0x1ff158=_0x2c5adc;return _0x13d18a&&typeof Symbol==_0x1ff158(0x12b)&&_0x13d18a[_0x1ff158(0x17e)]===Symbol&&_0x13d18a!==Symbol[_0x1ff158(0x133)]?'symbol':typeof _0x13d18a;},A(_0x54451f);}function j(_0x4ab8c6,_0x467507){const _0x5755f2=_0xb0776b;if(A(_0x4ab8c6)!=_0x5755f2(0x18c)||!_0x4ab8c6)return _0x4ab8c6;var _0x3f9094=_0x4ab8c6[Symbol[_0x5755f2(0x187)]];if(_0x3f9094!==void 0x0){var _0x406079=_0x3f9094['call'](_0x4ab8c6,_0x467507||'default');if(A(_0x406079)!='object')return _0x406079;throw TypeError(_0x5755f2(0x142));}return(_0x467507==='string'?String:Number)(_0x4ab8c6);}function M(_0xec4f6f){const _0x452205=_0xb0776b;var _0x198843=j(_0xec4f6f,_0x452205(0x183));return A(_0x198843)==_0x452205(0x154)?_0x198843:_0x198843+'';}function N(_0x170523,_0x3ba230,_0x480d47){const _0x45879e=_0xb0776b;return(_0x3ba230=M(_0x3ba230))in _0x170523?Object[_0x45879e(0x185)](_0x170523,_0x3ba230,{'value':_0x480d47,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x170523[_0x3ba230]=_0x480d47,_0x170523;}var P=class{constructor(_0x5bef26,_0x3d0eb6,_0x1a81e3,_0x55f149){const _0x5377cc=_0xb0776b;N(this,_0x5377cc(0x14a),void 0x0),N(this,_0x5377cc(0x16d),void 0x0),N(this,'drawId',void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5377cc(0x167),_0x5ef94c),N(this,'height',_0xb8cf8d),N(this,_0x5377cc(0x19d),void 0x0),N(this,_0x5377cc(0x176),{}),N(this,_0x5377cc(0x1a6),void 0x0),this[_0x5377cc(0x14a)]=_0x5bef26,this[_0x5377cc(0x16d)]=_0x3d0eb6,this['drawId']=_0x1a81e3||_0x793d5e(),this['_injector']=_0x55f149;}[_0xb0776b(0x192)](_0x1ce47b,_0x4643e4,_0x4ffed8,_0x40d41a){const _0x3693c1=_0xb0776b;let _0x2ba4e0=this['_injector'][_0x3693c1(0x181)](_0x1f069c)[_0x3693c1(0x12e)](this['unitId'],this[_0x3693c1(0x16d)]);if(!_0x2ba4e0)throw Error(_0x3693c1(0x1aa)+this[_0x3693c1(0x14a)]+_0x3693c1(0x1b0)+this[_0x3693c1(0x16d)]+'\x20not\x20found');let {transform:_0x2cedac}=_0x433800(this[_0x3693c1(0x14a)],this['subUnitId'],{'row':_0x1ce47b,'column':_0x4643e4,'rowOffset':_0x4ffed8,'columnOffset':_0x40d41a},0x1,0x1,_0x2ba4e0);return this['x']=_0x2cedac[_0x3693c1(0x16b)],this['y']=_0x2cedac['top'],this;}[_0xb0776b(0x1a8)](_0xaf78a9,_0x1173df){return this['x']=_0xaf78a9,this['y']=_0x1173df,this;}[_0xb0776b(0x15e)](_0x5789a6){const _0x42436a=_0xb0776b;return this[_0x42436a(0x19d)]=_0x5789a6,this;}[_0xb0776b(0x179)](_0x5393e9,_0x190c39){const _0xb2ad73=_0xb0776b;return this[_0xb2ad73(0x176)]['fill']||(this['shapeData']['fill']={}),this[_0xb2ad73(0x176)]['fill'][_0xb2ad73(0x1ac)]=_0x2b9fa0[_0xb2ad73(0x13f)],_0x5393e9!==void 0x0&&(this['shapeData'][_0xb2ad73(0x1ad)][_0xb2ad73(0x17b)]=_0x5393e9),_0x190c39!==void 0x0&&(this[_0xb2ad73(0x176)][_0xb2ad73(0x1ad)]['opacity']=_0x190c39),this;}[_0xb0776b(0x16c)](_0x30e963,_0x526c83,_0x116158){const _0x2af808=_0xb0776b;if(_0x526c83===void 0x0||_0x526c83[_0x2af808(0x1ab)]===0x0)throw Error(_0x2af808(0x139));return this[_0x2af808(0x176)]['fill']||(this[_0x2af808(0x176)][_0x2af808(0x1ad)]={}),this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x18b)]=_0x526c83,this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x1ac)]=_0x2b9fa0['GradientFill'],this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x13a)]=_0x30e963,_0x116158!==void 0x0&&(this[_0x2af808(0x176)][_0x2af808(0x1ad)]['gradientAngle']=_0x116158),this;}[_0xb0776b(0x138)](){const _0x400fac=_0xb0776b;return this['shapeData'][_0x400fac(0x1ad)]={'fillType':_0x2b9fa0[_0x400fac(0x155)]},this;}[_0xb0776b(0x168)](_0x37134c){const _0x2168c0=_0xb0776b;return this[_0x2168c0(0x176)][_0x2168c0(0x13d)]||(this[_0x2168c0(0x176)][_0x2168c0(0x13d)]={}),this[_0x2168c0(0x176)][_0x2168c0(0x13d)]['color']=_0x37134c,this;}['setStrokeWidth'](_0x372056){const _0x56906a=_0xb0776b;return this[_0x56906a(0x176)][_0x56906a(0x13d)]||(this['shapeData']['stroke']={}),this[_0x56906a(0x176)][_0x56906a(0x13d)][_0x56906a(0x167)]=_0x372056,this;}[_0xb0776b(0x162)](_0x2e8edd){const _0x5c169b=_0xb0776b;return this[_0x5c169b(0x176)]['stroke']||(this['shapeData']['stroke']={}),this[_0x5c169b(0x176)][_0x5c169b(0x13d)][_0x5c169b(0x18f)]=_0x2e8edd,this;}['setStrokeLineJoinType'](_0x5b555f){const _0xf1a310=_0xb0776b;return this['shapeData'][_0xf1a310(0x13d)]||(this[_0xf1a310(0x176)][_0xf1a310(0x13d)]={}),this['shapeData'][_0xf1a310(0x13d)][_0xf1a310(0x193)]=_0x5b555f,this;}[_0xb0776b(0x131)](_0x21d12e){const _0x5863f3=_0xb0776b;return this[_0x5863f3(0x176)]['stroke']||(this[_0x5863f3(0x176)][_0x5863f3(0x13d)]={}),this['shapeData'][_0x5863f3(0x13d)][_0x5863f3(0x1a9)]=_0x21d12e,this;}['setStrokeOpacity'](_0x4a61ea){const _0x196012=_0xb0776b;return this[_0x196012(0x176)][_0x196012(0x13d)]||(this[_0x196012(0x176)][_0x196012(0x13d)]={}),this[_0x196012(0x176)][_0x196012(0x13d)]['opacity']=_0x4a61ea,this;}[_0xb0776b(0x19e)](_0x322036){const _0x3018af=_0xb0776b;return this[_0x3018af(0x176)][_0x3018af(0x13d)]||(this[_0x3018af(0x176)][_0x3018af(0x13d)]={}),this['shapeData']['stroke'][_0x3018af(0x165)]=_0x322036,this;}[_0xb0776b(0x194)](_0x256229){const _0x1f64ab=_0xb0776b;return this[_0x1f64ab(0x167)]=_0x256229,this;}[_0xb0776b(0x150)](_0x53d2ba){return this['height']=_0x53d2ba,this;}[_0xb0776b(0x174)](){const _0xc3040c=_0xb0776b;let _0x1869bf=this['_injector'][_0xc3040c(0x181)](_0x3c7127)[_0xc3040c(0x152)](this[_0xc3040c(0x14a)],this['subUnitId'],this['drawId']);return _0x1869bf?_0x1df30e(_0x1869bf[_0xc3040c(0x190)]()):this[_0xc3040c(0x19d)]?_0x1df30e(this[_0xc3040c(0x19d)]):!0x1;}['getConnectionSites'](){const _0x5f7b2d=_0xb0776b;let _0x40369c=this[_0x5f7b2d(0x1a6)][_0x5f7b2d(0x181)](_0x3c7127)[_0x5f7b2d(0x152)](this['unitId'],this[_0x5f7b2d(0x16d)],this[_0x5f7b2d(0x153)]);if(!_0x40369c)return[];let _0x13529b=this[_0x5f7b2d(0x1a6)]['get'](_0x36a4ec)[_0x5f7b2d(0x14e)]({'unitId':this[_0x5f7b2d(0x14a)],'subUnitId':this[_0x5f7b2d(0x16d)],'drawingId':this[_0x5f7b2d(0x153)]});if(!(_0x13529b!=null&&_0x13529b[_0x5f7b2d(0x143)]))return[];let {width:_0x4134db=0x0,height:_0x133441=0x0}=_0x13529b[_0x5f7b2d(0x143)];return _0x40369c[_0x5f7b2d(0x14c)]({'width':_0x4134db,'height':_0x133441}),_0x40369c['getConnectionSiteList']();}[_0xb0776b(0x14f)](){const _0x1e1995=_0xb0776b;let _0x15c4bc=this[_0x1e1995(0x1a6)]['get'](_0x3c7127)['getShapeModel'](this[_0x1e1995(0x14a)],this['subUnitId'],this['drawId']);if(!_0x15c4bc)return[];let _0x1bde29=this[_0x1e1995(0x1a6)]['get'](_0x36a4ec)['getDrawingByParam']({'unitId':this[_0x1e1995(0x14a)],'subUnitId':this[_0x1e1995(0x16d)],'drawingId':this[_0x1e1995(0x153)]});if(!(_0x1bde29!=null&&_0x1bde29[_0x1e1995(0x143)]))return[];let {width:_0x5d865a=0x0,height:_0x4c0c17=0x0}=_0x1bde29[_0x1e1995(0x143)];return _0x15c4bc[_0x1e1995(0x14c)]({'width':_0x5d865a,'height':_0x4c0c17}),_0x15c4bc[_0x1e1995(0x189)]();}[_0xb0776b(0x146)](){const _0x34f45e=_0xb0776b;let _0xd71229=this['_injector'][_0x34f45e(0x181)](_0x3c7127)['getShapeModel'](this['unitId'],this[_0x34f45e(0x16d)],this['drawId']);if(!_0xd71229||!_0x1df30e(_0xd71229[_0x34f45e(0x190)]()))return[];let _0x4fdeb5=this['_injector'][_0x34f45e(0x181)](_0x36a4ec)[_0x34f45e(0x14e)]({'unitId':this[_0x34f45e(0x14a)],'subUnitId':this['subUnitId'],'drawingId':this[_0x34f45e(0x153)]});if(!(_0x4fdeb5!=null&&_0x4fdeb5[_0x34f45e(0x143)]))return[];let {width:_0xaeb483=0x0,height:_0x1dddd6=0x0}=_0x4fdeb5[_0x34f45e(0x143)];return _0xd71229[_0x34f45e(0x14c)]({'width':_0xaeb483,'height':_0x1dddd6}),_0xd71229[_0x34f45e(0x146)]();}[_0xb0776b(0x13c)](){const _0x2cfc6f=_0xb0776b;var _0x28d82b;let _0x2e191f=this[_0x2cfc6f(0x1a6)][_0x2cfc6f(0x181)](_0x3c7127)[_0x2cfc6f(0x152)](this['unitId'],this['subUnitId'],this[_0x2cfc6f(0x153)]);return _0x2e191f?(_0x28d82b=_0x2e191f['getStartConnectInfo']())==null?null:_0x28d82b:null;}[_0xb0776b(0x191)](){const _0x2bf6fd=_0xb0776b;var _0x459423;let _0x104c17=this['_injector']['get'](_0x3c7127)[_0x2bf6fd(0x152)](this[_0x2bf6fd(0x14a)],this[_0x2bf6fd(0x16d)],this[_0x2bf6fd(0x153)]);return _0x104c17?(_0x459423=_0x104c17['getEndConnectInfo']())==null?null:_0x459423:null;}[_0xb0776b(0x175)](){const _0x2bfcc1=_0xb0776b;var _0x309126,_0x1c9ded;if(!this['shapeType'])throw Error(_0x2bfcc1(0x1a2));if(this['x']===0x0||this['y']===0x0){let _0x149bfa=this[_0x2bfcc1(0x1a6)][_0x2bfcc1(0x181)](_0x1f069c)[_0x2bfcc1(0x12e)](this[_0x2bfcc1(0x14a)],this['subUnitId']);if(!_0x149bfa)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x2bfcc1(0x14a)]+'\x20and\x20subUnitId\x20'+this[_0x2bfcc1(0x16d)]+_0x2bfcc1(0x149));let {transform:_0x57d651}=_0x433800(this[_0x2bfcc1(0x14a)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x149bfa);this['x']=this['x']>0x0?this['x']:_0x57d651[_0x2bfcc1(0x16b)],this['y']=this['y']>0x0?this['y']:_0x57d651[_0x2bfcc1(0x1a1)];}return this[_0x2bfcc1(0x167)]=(_0x309126=this[_0x2bfcc1(0x167)])==null?_0x5ef94c:_0x309126,this['height']=(_0x1c9ded=this['height'])==null?_0xb8cf8d:_0x1c9ded,{'unitId':this['unitId'],'subUnitId':this[_0x2bfcc1(0x16d)],'shapeId':this[_0x2bfcc1(0x153)],'shapeType':this['shapeType'],'shapeData':Object[_0x2bfcc1(0x177)](this[_0x2bfcc1(0x176)])[_0x2bfcc1(0x1ab)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x2bfcc1(0x17c)]};}[_0xb0776b(0x164)](){const _0x2810c0=_0xb0776b;return this[_0x2810c0(0x153)];}[_0xb0776b(0x190)](){const _0x847898=_0xb0776b;return this[_0x847898(0x19d)];}[_0xb0776b(0x160)](){const _0x33cfbd=_0xb0776b;return this[_0x33cfbd(0x176)];}[_0xb0776b(0x163)](){return{'x':this['x'],'y':this['y']};}[_0xb0776b(0x15c)](){const _0x4161e2=_0xb0776b;return{'width':this[_0x4161e2(0x167)],'height':this[_0x4161e2(0x17c)]};}},F=class extends P{constructor(_0xb0be27,_0x199b63,_0x3892bd,_0x359902){const _0x3c97d9=_0xb0776b;super(_0xb0be27,_0x199b63,_0x3892bd,_0x359902),N(this,_0x3c97d9(0x176),{});}[_0xb0776b(0x15e)](_0x3742ac){const _0x50f9e1=_0xb0776b;if(!_0x1df30e(_0x3742ac))throw Error(_0x50f9e1(0x144)+_0x3742ac+_0x50f9e1(0x1a5));return super[_0x50f9e1(0x15e)](_0x3742ac),this;}[_0xb0776b(0x182)](_0x23503e){const _0x210938=_0xb0776b;var _0x426cc2,_0x905e40;return(_0x426cc2=this[_0x210938(0x176)])!=null&&_0x426cc2['ln']||(this['shapeData']['ln']={}),!((_0x905e40=this['shapeData'])==null||(_0x905e40=_0x905e40['ln'])==null)&&_0x905e40['startArrow']||(this[_0x210938(0x176)]['ln'][_0x210938(0x184)]={}),this[_0x210938(0x176)]['ln'][_0x210938(0x184)][_0x210938(0x158)]=_0x23503e,this;}[_0xb0776b(0x151)](_0xc6d59a){const _0x2e940a=_0xb0776b;var _0x5d0416,_0x4368de;return(_0x5d0416=this[_0x2e940a(0x176)])!=null&&_0x5d0416['ln']||(this[_0x2e940a(0x176)]['ln']={}),!((_0x4368de=this[_0x2e940a(0x176)])==null||(_0x4368de=_0x4368de['ln'])==null)&&_0x4368de[_0x2e940a(0x147)]||(this[_0x2e940a(0x176)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x2e940a(0x147)][_0x2e940a(0x158)]=_0xc6d59a,this;}['setStartArrowSize'](_0x2d84e0){const _0x562fa9=_0xb0776b;var _0x47c13c,_0x34fba9;return(_0x47c13c=this[_0x562fa9(0x176)])!=null&&_0x47c13c['ln']||(this[_0x562fa9(0x176)]['ln']={}),!((_0x34fba9=this[_0x562fa9(0x176)])==null||(_0x34fba9=_0x34fba9['ln'])==null)&&_0x34fba9[_0x562fa9(0x184)]||(this[_0x562fa9(0x176)]['ln'][_0x562fa9(0x184)]={}),this['shapeData']['ln'][_0x562fa9(0x184)][_0x562fa9(0x15a)]=_0x2d84e0,this;}[_0xb0776b(0x18e)](_0x552e00){const _0x46759a=_0xb0776b;var _0x1c922e,_0x3e7328;return(_0x1c922e=this[_0x46759a(0x176)])!=null&&_0x1c922e['ln']||(this[_0x46759a(0x176)]['ln']={}),!((_0x3e7328=this['shapeData'])==null||(_0x3e7328=_0x3e7328['ln'])==null)&&_0x3e7328[_0x46759a(0x147)]||(this[_0x46759a(0x176)]['ln']['endArrow']={}),this[_0x46759a(0x176)]['ln']['endArrow'][_0x46759a(0x15a)]=_0x552e00,this;}['build'](){const _0x3eae23=_0xb0776b;return super[_0x3eae23(0x175)]();}[_0xb0776b(0x191)](){const _0x1f64e4=_0xb0776b;var _0x50d9f6;return((_0x50d9f6=this[_0x1f64e4(0x176)])==null||(_0x50d9f6=_0x50d9f6[_0x1f64e4(0x161)])==null?void 0x0:_0x50d9f6['to'])||null;}[_0xb0776b(0x13c)](){const _0x2e1e2f=_0xb0776b;var _0x241f15;return((_0x241f15=this['shapeData'])==null||(_0x241f15=_0x241f15[_0x2e1e2f(0x161)])==null?void 0x0:_0x241f15[_0x2e1e2f(0x137)])||null;}};function I(_0x51b27b,_0x50da3a,_0x319525,_0x4147e1,_0xdc3f8c,_0x9a5606){const _0x14f547=_0xb0776b;let _0xd21e10=_0xdc3f8c[_0x14f547(0x152)](_0x51b27b,_0x50da3a,_0x319525);if(!_0xd21e10)return null;let _0x202164=_0x9a5606[_0x14f547(0x14e)]({'unitId':_0x51b27b,'subUnitId':_0x50da3a,'drawingId':_0x319525});if(!(_0x202164!=null&&_0x202164[_0x14f547(0x143)]))return null;let {left:_0x8b5e95=0x0,top:_0x448479=0x0,width:_0x1bc3cf=0x0,height:_0x335391=0x0,flipX:_0xde98a9=!0x1,flipY:_0xaa6902=!0x1,angle:_0x32f097}=_0x202164[_0x14f547(0x143)];_0xd21e10[_0x14f547(0x14c)]({'width':_0x1bc3cf,'height':_0x335391});let _0x3d0d02=_0xd21e10[_0x14f547(0x199)]()[_0x14f547(0x195)](_0x4b3e87=>_0x4b3e87[_0x14f547(0x188)]===_0x4147e1);if(!_0x3d0d02)return null;let _0x4d5c4a=_0xde98a9?_0x1bc3cf-_0x3d0d02['x']:_0x3d0d02['x'],_0x494b0c=_0xaa6902?_0x335391-_0x3d0d02['y']:_0x3d0d02['y'];if(_0x32f097&&_0x32f097!==0x0){let _0x506706=_0x32f097*Math['PI']/0xb4,_0x23b90b=Math[_0x14f547(0x130)](_0x506706),_0x54d7b1=Math[_0x14f547(0x178)](_0x506706),_0x281add=_0x1bc3cf/0x2,_0x74a272=_0x335391/0x2,_0x9a8f41=_0x4d5c4a-_0x281add,_0x131aa7=_0x494b0c-_0x74a272;_0x4d5c4a=_0x281add+_0x9a8f41*_0x23b90b-_0x131aa7*_0x54d7b1,_0x494b0c=_0x74a272+_0x9a8f41*_0x54d7b1+_0x131aa7*_0x23b90b;}_0x4d5c4a+=_0x8b5e95,_0x494b0c+=_0x448479;let _0x53a141=_0x3d0d02[_0x14f547(0x159)]/0xea60;_0xde98a9&&(_0x53a141=0xb4-_0x53a141),_0xaa6902&&(_0x53a141=-_0x53a141),_0x53a141+=_0x32f097||0x0,_0x53a141=(_0x53a141%0x168+0x168)%0x168;let _0x5b9b0e=_0x12c401({'left':_0x8b5e95,'top':_0x448479,'width':_0x1bc3cf,'height':_0x335391},_0x32f097||0x0);return{'point':{'x':_0x4d5c4a,'y':_0x494b0c},'angle':_0x53a141,'bounds':_0x5b9b0e};}function L(_0x43b04f,_0x3255a1){const _0x40ca40=_0xb0776b;let _0x2bff51=_0x3255a1['x']-_0x43b04f['x'],_0x2445ce=_0x3255a1['y']-_0x43b04f['y'];return Math[_0x40ca40(0x14d)](_0x2bff51)>=Math['abs'](_0x2445ce)?_0x2bff51>=0x0?0xb4:0x0:_0x2445ce>=0x0?0x10e:0x5a;}function R(_0x4408ae,_0x148659,_0x20c402,_0x45bc69,_0xa524,_0x417021,_0x420478){const _0x4acb02=_0xb0776b;let _0x2b6f19=_0x417021[_0x4acb02(0x152)](_0x4408ae,_0x148659,_0x20c402);if(!_0x2b6f19)return null;let _0x1133d3=_0x420478[_0x4acb02(0x14e)]({'unitId':_0x4408ae,'subUnitId':_0x148659,'drawingId':_0x20c402});if(!(_0x1133d3!=null&&_0x1133d3[_0x4acb02(0x143)]))return null;let {left:_0x51c7fe=0x0,top:_0x1a5c39=0x0,width:_0x488760=0x0,height:_0x5ae787=0x0,flipX:_0x572315=!0x1,flipY:_0x2287fc=!0x1}=_0x1133d3['transform'];_0x2b6f19[_0x4acb02(0x14c)]({'width':_0x488760,'height':_0x5ae787});let _0xcd99a9=_0x2b6f19['getConnectorLinePoints']();if(_0xcd99a9[_0x4acb02(0x1ab)]<0x2)return null;let _0x16c0e6=_0x45bc69?_0xcd99a9[0x0]:_0xcd99a9[_0xcd99a9[_0x4acb02(0x1ab)]-0x1],_0x4e9889=new _0x235482({'left':_0x51c7fe,'top':_0x1a5c39,'width':_0x488760,'height':_0x5ae787,'flipX':_0x572315,'flipY':_0x2287fc})[_0x4acb02(0x17a)](_0x16c0e6);return{'point':_0x4e9889,'angle':L(_0xa524[_0x4acb02(0x135)],_0x4e9889),'bounds':{'left':_0x4e9889['x'],'top':_0x4e9889['y'],'width':0x0,'height':0x0}};}var z=class extends _0x30bddd{async[_0xb0776b(0x132)](_0x627784){const _0x57db04=_0xb0776b;let {unitId:_0x5756c5,subUnitId:_0x3bad9f,shapeId:_0x4cfa57,shapeType:_0x49d2e9,shapeData:_0x5d78e1,x:_0x545473,y:_0x20460b,width:_0x3a1ae3,height:_0x2bd113}=_0x627784;return this[_0x57db04(0x197)][_0x57db04(0x173)](_0x22bb9b['id'],{'unitId':_0x5756c5,'subUnitId':_0x3bad9f,'shapeId':_0x4cfa57,'shapeType':_0x49d2e9,'shapeData':_0x5d78e1,'position':{'x':_0x545473,'y':_0x20460b},'width':_0x3a1ae3,'height':_0x2bd113});}async[_0xb0776b(0x13e)](_0x124b5d){const _0x2e4499=_0xb0776b;let {unitId:_0x1896be,subUnitId:_0x4ec84b,shapeId:_0x3857ac,shapeType:_0x466e47,shapeData:_0xdac934,x:_0x27c39b,y:_0xb81d84,width:_0x1cb0a4,height:_0x1571db}=_0x124b5d;return this['_commandService'][_0x2e4499(0x173)](_0x42294b['id'],{'unitId':_0x1896be,'subUnitId':_0x4ec84b,'shapeId':_0x3857ac,'shapeType':_0x466e47,'shapeData':_0xdac934,'position':{'x':_0x27c39b,'y':_0xb81d84},'width':_0x1cb0a4,'height':_0x1571db});}['newShape'](_0x150a61){const _0x41885c=_0xb0776b;let _0x1bf5cc=this[_0x41885c(0x186)]()[_0x41885c(0x148)](),_0x47a386=this[_0x41885c(0x166)]();if(_0x150a61){let _0x5c5a48=new P(_0x1bf5cc,_0x47a386,_0x150a61[_0x41885c(0x153)],this['_injector']);return this['_preloadShapeProperties'](_0x5c5a48,_0x1bf5cc,_0x47a386,_0x150a61[_0x41885c(0x153)]),_0x5c5a48;}return new P(_0x1bf5cc,_0x47a386,_0x793d5e(),this[_0x41885c(0x1a6)]);}['newConnector'](_0x905f52){const _0x406376=_0xb0776b;let _0x2dbf94=this[_0x406376(0x186)]()[_0x406376(0x148)](),_0x502d84=this[_0x406376(0x166)]();if(_0x905f52){let _0x52f0d8=new F(_0x2dbf94,_0x502d84,_0x905f52[_0x406376(0x153)],this[_0x406376(0x1a6)]);return this[_0x406376(0x12d)](_0x52f0d8,_0x2dbf94,_0x502d84,_0x905f52['drawId']),_0x52f0d8;}return new F(_0x2dbf94,_0x502d84,_0x793d5e(),this[_0x406376(0x1a6)]);}[_0xb0776b(0x141)](){const _0x5e399f=_0xb0776b;let _0x3b8fbb=this[_0x5e399f(0x1a6)][_0x5e399f(0x181)](_0x3e52bb),_0x540b19=this['getWorkbook']()[_0x5e399f(0x148)](),_0xb7679d=this['getSheetId'](),_0x199e0f=_0x3b8fbb['getDrawingData'](_0x540b19,_0xb7679d);if(!_0x199e0f)return[];let _0x22af9e=[];for(let [_0x3310ef,_0x598448]of Object[_0x5e399f(0x19a)](_0x199e0f))if(_0x598448&&_0x598448[_0x5e399f(0x17f)]===_0x2bcb5a[_0x5e399f(0x157)]){let _0xd70a5c=new P(_0x540b19,_0xb7679d,_0x3310ef,this[_0x5e399f(0x1a6)]);this[_0x5e399f(0x12d)](_0xd70a5c,_0x540b19,_0xb7679d,_0x3310ef),_0x22af9e['push'](_0xd70a5c);}return _0x22af9e;}['removeShape'](_0x13ac09){const _0x1ba56b=_0xb0776b;let {unitId:_0x26645d,subUnitId:_0x35788d,drawId:_0x3dc22e}=_0x13ac09;return this[_0x1ba56b(0x197)][_0x1ba56b(0x173)](_0x49b49f['id'],{'unitId':_0x26645d,'drawings':[{'unitId':_0x26645d,'subUnitId':_0x35788d,'drawingId':_0x3dc22e,'drawingType':_0x2bcb5a[_0x1ba56b(0x157)]}]});}async['connectShapes'](_0x198ac3){const _0x493f68=_0xb0776b;let {connector:_0x4e5b46,startTarget:_0x325204,endTarget:_0x12bf39}=_0x198ac3;if(!_0x325204&&!_0x12bf39)return!0x1;let _0x39efb6=this[_0x493f68(0x186)]()[_0x493f68(0x148)](),_0x3bc3d2=this[_0x493f68(0x166)](),_0x3e8096=this['_injector'][_0x493f68(0x181)](_0x3c7127),_0x5efdfc=this[_0x493f68(0x1a6)][_0x493f68(0x181)](_0x36a4ec),_0x3892c9=_0x3e8096[_0x493f68(0x152)](_0x39efb6,_0x3bc3d2,_0x4e5b46[_0x493f68(0x153)]);if(!_0x3892c9)return!0x1;let _0x56a3e3=_0x3892c9[_0x493f68(0x190)](),_0x2fa108=_0x3892c9['getShapeRelation'](),_0x10da26={};for(let _0x11d23e of _0x3892c9[_0x493f68(0x14b)]()){let _0x2b2fd1=_0x3892c9[_0x493f68(0x169)](_0x11d23e);_0x2b2fd1!==void 0x0&&(_0x10da26[_0x11d23e]=_0x2b2fd1);}let {startInfo:_0x9f04b7,endInfo:_0x314e96}=this[_0x493f68(0x134)](_0x39efb6,_0x3bc3d2,_0x4e5b46,_0x3892c9,_0x325204,_0x12bf39,_0x3e8096,_0x5efdfc,_0x2fa108);if(!_0x9f04b7||!_0x314e96)return!0x1;let _0x1ac280=_0x53deb7(_0x4773b1(_0x9f04b7,_0x314e96,_0x56a3e3),_0x56a3e3),_0xc009d4={};return _0x325204?_0xc009d4['from']={'shapeId':_0x325204[_0x493f68(0x171)][_0x493f68(0x153)],'cxnIndex':_0x325204[_0x493f68(0x140)]}:_0x2fa108!=null&&_0x2fa108[_0x493f68(0x137)]&&(_0xc009d4[_0x493f68(0x137)]=_0x2fa108[_0x493f68(0x137)]),_0x12bf39?_0xc009d4['to']={'shapeId':_0x12bf39[_0x493f68(0x171)][_0x493f68(0x153)],'cxnIndex':_0x12bf39[_0x493f68(0x140)]}:_0x2fa108!=null&&_0x2fa108['to']&&(_0xc009d4['to']=_0x2fa108['to']),this[_0x493f68(0x197)][_0x493f68(0x173)](_0x319eb8['id'],{'unitId':_0x39efb6,'subUnitId':_0x3bc3d2,'connectorShapeId':_0x4e5b46['drawId'],'width':_0x1ac280['worldRect'][_0x493f68(0x167)],'height':_0x1ac280['worldRect']['height'],'left':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x16b)],'top':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x1a1)],'flipX':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x18d)]||!0x1,'flipY':_0x1ac280[_0x493f68(0x15b)]['flipY']||!0x1,'oldAdjustValues':_0x10da26,'newAdjustValues':_0x1ac280[_0x493f68(0x15d)],'newLineType':_0x1ac280[_0x493f68(0x1a0)],'oldLineType':_0x56a3e3,'rotation':_0x1ac280[_0x493f68(0x12c)],'oldRelation':_0x2fa108,'newRelation':_0xc009d4});}[_0xb0776b(0x12d)](_0x2628bd,_0x192e40,_0x28292d,_0x57557a){const _0x5908ee=_0xb0776b;let _0x51d30d=this[_0x5908ee(0x1a6)][_0x5908ee(0x181)](_0x36a4ec)[_0x5908ee(0x14e)]({'unitId':_0x192e40,'subUnitId':_0x28292d,'drawingId':_0x57557a});if(_0x51d30d!=null&&_0x51d30d[_0x5908ee(0x143)]){var _0x50fdbf,_0x4fc1ba,_0x5e2081,_0x2f0b77;_0x2628bd['x']=(_0x50fdbf=_0x51d30d[_0x5908ee(0x143)][_0x5908ee(0x16b)])==null?0x0:_0x50fdbf,_0x2628bd['y']=(_0x4fc1ba=_0x51d30d[_0x5908ee(0x143)]['top'])==null?0x0:_0x4fc1ba,_0x2628bd[_0x5908ee(0x167)]=(_0x5e2081=_0x51d30d[_0x5908ee(0x143)]['width'])==null?_0x2628bd[_0x5908ee(0x167)]:_0x5e2081,_0x2628bd[_0x5908ee(0x17c)]=(_0x2f0b77=_0x51d30d[_0x5908ee(0x143)][_0x5908ee(0x17c)])==null?_0x2628bd[_0x5908ee(0x17c)]:_0x2f0b77;}let _0x5767d5=this[_0x5908ee(0x1a6)][_0x5908ee(0x181)](_0x3c7127)[_0x5908ee(0x152)](_0x192e40,_0x28292d,_0x57557a);if(_0x5767d5){_0x2628bd['shapeType']=_0x5767d5['getShapeType']();let _0x40afbe=_0x5767d5['getShapeData']();_0x40afbe&&(_0x2628bd[_0x5908ee(0x176)]=JSON[_0x5908ee(0x18a)](JSON['stringify'](_0x40afbe)));}}[_0xb0776b(0x134)](_0x1970c5,_0x519701,_0x8c9040,_0x3e306b,_0x50bf32,_0xd4d909,_0x4343a0,_0x45414f,_0x12b7df){const _0x203258=_0xb0776b;let _0x4915be=null,_0x315329=null;return _0x50bf32&&(_0x4915be=I(_0x1970c5,_0x519701,_0x50bf32[_0x203258(0x171)][_0x203258(0x153)],_0x50bf32[_0x203258(0x140)],_0x4343a0,_0x45414f)),_0xd4d909&&(_0x315329=I(_0x1970c5,_0x519701,_0xd4d909[_0x203258(0x171)][_0x203258(0x153)],_0xd4d909[_0x203258(0x140)],_0x4343a0,_0x45414f)),_0x4915be||(_0x4915be=this[_0x203258(0x16f)](_0x1970c5,_0x519701,_0x8c9040[_0x203258(0x153)],!0x0,_0x315329,_0x12b7df==null?void 0x0:_0x12b7df[_0x203258(0x137)],_0x4343a0,_0x45414f)),_0x315329||(_0x315329=this[_0x203258(0x16f)](_0x1970c5,_0x519701,_0x8c9040[_0x203258(0x153)],!0x1,_0x4915be,_0x12b7df==null?void 0x0:_0x12b7df['to'],_0x4343a0,_0x45414f)),{'startInfo':_0x4915be,'endInfo':_0x315329};}[_0xb0776b(0x16f)](_0x1002d6,_0x1dd77c,_0x58c45c,_0x1765ea,_0x4d06f1,_0x59dcd6,_0x474983,_0x11797f){const _0x370534=_0xb0776b;if(_0x59dcd6){let _0x2860d8=I(_0x1002d6,_0x1dd77c,_0x59dcd6[_0x370534(0x145)],_0x59dcd6[_0x370534(0x180)],_0x474983,_0x11797f);if(_0x2860d8)return _0x2860d8;}return _0x4d06f1?R(_0x1002d6,_0x1dd77c,_0x58c45c,_0x1765ea,_0x4d06f1,_0x474983,_0x11797f):null;}};_0x30bddd[_0xb0776b(0x17d)](z);export{F as FConnectorShape,P as FShape};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x26c497=_0x48a4;(function(_0x3c1614,_0x8a4965){const _0x1a71b2=_0x48a4,_0x40a448=_0x3c1614();while(!![]){try{const _0x2b0243=parseInt(_0x1a71b2(0xd5))/0x1*(-parseInt(_0x1a71b2(0x144))/0x2)+parseInt(_0x1a71b2(0x12f))/0x3*(-parseInt(_0x1a71b2(0xfd))/0x4)+-parseInt(_0x1a71b2(0xeb))/0x5*(parseInt(_0x1a71b2(0x100))/0x6)+-parseInt(_0x1a71b2(0xed))/0x7*(-parseInt(_0x1a71b2(0x129))/0x8)+parseInt(_0x1a71b2(0x15e))/0x9*(parseInt(_0x1a71b2(0x148))/0xa)+parseInt(_0x1a71b2(0xec))/0xb+-parseInt(_0x1a71b2(0x11c))/0xc;if(_0x2b0243===_0x8a4965)break;else _0x40a448['push'](_0x40a448['shift']());}catch(_0x10a02f){_0x40a448['push'](_0x40a448['shift']());}}}(_0x1d94,0xa02cc));import{ShapeModel as _0x155cd2,computeConnectorRouteLayout as _0x1cd34f,getBasicShapeRotateBound as _0x420ab7,isConnectorShape as _0x45d4e8,routeConnectorLineShape as _0x37d66d}from'@univerjs-pro/engine-shape';function _0x1d94(){const _0x4b1f04=['forEach','getCellIndexAndOffsetByPosition','_serializeShapeForUnit','sheet.mutation.update-shape-type','push','getBatchUpdateOp','_shapes','2062xQYfHf','keys','getSkeleton','_initCommandInterceptor','10YfIQuU','fill','getDrawingByParam','_deserializeShapeForUnit','_groupIds','lineType','width','isFrom','_initCommands','getDrawingData','sheet.command.update-line-shape-resize','delete','stringify','adjustValues','onCommandExecute','iterator','_sheetSkeletonService','getBasicShapeType','has','sheet.command.insert-shape','getBatchAddOp','index','10060029FQDyBw','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','interceptCommand','MUTATION','lineShapeId','getShapeType','getConnectionSiteList','length','getAdjustNames','string','sheet.command.set-shape-rotate','_ensureShapeModelManager','defineProperty','sheet.mutation.update-shape-data','left','rotation','flipX','startX','shapeId','position','getLineShapeRelation','getBasicShapeRelation','sheet.command.set-shape-text-vertical-toggle','clear','parse','743CWebtX','_config','worldRect','insertShape','type','rotateEnabled','resizeEnabled','sheet.mutation.remove-shape','cos','syncExecuteCommand','UPDATE','get','getOwnPropertyDescriptor','setConfig','getShapeTextData','_sheetsShapeService','startY','getAdjustValueByName','decorate','removeLinePoints','pushUndoRedo','sheet.mutation.insert-shape','1525vjKUER','10459944JoDvpB','14XymoRz','UNIVER_SHEET','prototype','getShapeData','from','sheet.command.update-connector-relation','assign','_configService','COMMAND','_addLineFollowShapeUpdates','ang','default','getShapeRelation','redos','angle','sheet.command.toggle-shape-flip','124748ybGHOT','0.25.1','getCellWithCoordByIndex','3504mVMlAZ','transform','params','SHEET_SHAPE_PLUGIN','toJSON','set','_commandService','addShape','drawingType','_addLineRerouteUpdates','toPrimitive','_initSnapshot','add','top','result','filter','_drawingManagerService','height','function','relation','preUndos','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getEndConnectInfo','fromJSON','hasShape','data','cxnIndex','removeShape','17907612bYWPzA','_resourcesManagerService','registerPluginResource','setShapeType','sin','isLineShape','_getConnectPointInfo','disposeWithMe','object','constructor','_shapeModelManagerMap','_linesIds','ensureSkeleton','5218112aYRAbN','flipY','@univerjs-pro/sheets-shape','shapeData','call','setShapeData','27gHOgXi','DRAWING_SHAPE','preRedos','getStartConnectInfo','_sheetInterceptorService','range','INSERT','isHorizontal','borderEnabled','updateContext','symbol','undos','getShapeModel','dispose'];_0x1d94=function(){return _0x4b1f04;};return _0x1d94();}import{CommandType as _0x3e9504,DependentOn as _0x44491a,Disposable as _0x28b545,DrawingTypeEnum as _0x5e5e5b,ICommandService as _0x5b8310,IConfigService as _0x3ea937,IResourceManagerService as _0x54f492,IUndoRedoService as _0x4f939d,IUniverInstanceService as _0x70c7f6,Inject as _0x224b32,Injector as _0x5c089c,Plugin as _0x118c9a,UniverInstanceType as _0xd9deb1,generateRandomId as _0x15fabb,merge as _0x410777,sequenceExecute as _0x3a6f34,touchDependencies as _0x41ed94}from'@univerjs/core';import{SheetInterceptorService as _0x499171,SheetSkeletonService as _0xf2e92a,getSheetCommandTarget as _0x1d1d1e}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x286f04,DrawingApplyType as _0x5e6d34,ISheetDrawingService as _0x41f85d,InsertSheetDrawingCommand as _0xbe823c,RemoveSheetDrawingCommand as _0xd0523e,SetDrawingApplyMutation as _0x30ac56,SetSheetDrawingCommand as _0x238f6a,transformToAxisAlignPosition as _0x13d14d,transformToDrawingPosition as _0x4fa37c}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1f94d7}from'@univerjs-pro/license';import{IDrawingManagerService as _0x531999}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x49f382){'@babel/helpers - typeof';const _0x2da745=_0x48a4;return R=typeof Symbol==_0x2da745(0x112)&&typeof Symbol[_0x2da745(0x157)]==_0x2da745(0x139)?function(_0x582e35){return typeof _0x582e35;}:function(_0x803fd4){const _0x271709=_0x2da745;return _0x803fd4&&typeof Symbol==_0x271709(0x112)&&_0x803fd4[_0x271709(0x125)]===Symbol&&_0x803fd4!==Symbol[_0x271709(0xef)]?_0x271709(0x139):typeof _0x803fd4;},R(_0x49f382);}function z(_0x5bc6a4,_0x26daa1){const _0x37233b=_0x48a4;if(R(_0x5bc6a4)!=_0x37233b(0x124)||!_0x5bc6a4)return _0x5bc6a4;var _0x256033=_0x5bc6a4[Symbol[_0x37233b(0x10a)]];if(_0x256033!==void 0x0){var _0xf8f055=_0x256033[_0x37233b(0x12d)](_0x5bc6a4,_0x26daa1||_0x37233b(0xf8));if(R(_0xf8f055)!=_0x37233b(0x124))return _0xf8f055;throw TypeError(_0x37233b(0x115));}return(_0x26daa1===_0x37233b(0x167)?String:Number)(_0x5bc6a4);}function B(_0x5cbab0){const _0x3f7bbf=_0x48a4;var _0x2503cb=z(_0x5cbab0,_0x3f7bbf(0x167));return R(_0x2503cb)==_0x3f7bbf(0x139)?_0x2503cb:_0x2503cb+'';}function V(_0x4f8cca,_0x565fdc,_0x5f57f7){const _0x3055d5=_0x48a4;return(_0x565fdc=B(_0x565fdc))in _0x4f8cca?Object[_0x3055d5(0x16a)](_0x4f8cca,_0x565fdc,{'value':_0x5f57f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f8cca[_0x565fdc]=_0x5f57f7,_0x4f8cca;}var H=class extends _0x28b545{constructor(){const _0x43f9e0=_0x48a4;super(),V(this,'_shapes',new Map()),V(this,'_linesIds',new Set()),V(this,_0x43f9e0(0x14c),new Set());}[_0x26c497(0x107)](_0xfcbee,_0x5538b8,_0x128938){const _0x1e767a=_0x26c497;let _0x17cd9a=new _0x155cd2(_0xfcbee,_0x5538b8,_0x128938);return this[_0x1e767a(0x143)][_0x1e767a(0x105)](_0x5538b8,_0x17cd9a),_0x45d4e8(_0xfcbee)&&this[_0x1e767a(0x127)][_0x1e767a(0x10c)](_0x5538b8),_0x17cd9a;}[_0x26c497(0xd1)](_0x3b6a43){const _0x1544f0=_0x26c497;let _0x42bfc8=[];for(let _0x172f5e of this[_0x1544f0(0x127)]){let _0x542e50=this[_0x1544f0(0x143)]['get'](_0x172f5e);if(_0x542e50){let _0x3c98c1=_0x542e50['getShapeRelation']();if(_0x3c98c1){var _0x11cad0,_0x4dc3cc;((_0x11cad0=_0x3c98c1[_0x1544f0(0xf1)])==null?void 0x0:_0x11cad0[_0x1544f0(0x170)])===_0x3b6a43&&_0x42bfc8['push']({..._0x3c98c1[_0x1544f0(0xf1)],'lineShapeId':_0x172f5e,'isFrom':!0x0}),((_0x4dc3cc=_0x3c98c1['to'])==null?void 0x0:_0x4dc3cc['shapeId'])===_0x3b6a43&&_0x42bfc8[_0x1544f0(0x141)]({..._0x3c98c1['to'],'lineShapeId':_0x172f5e,'isFrom':!0x1});}}}return _0x42bfc8;}[_0x26c497(0xd0)](_0x5e5d06){const _0xbc7a37=_0x26c497;let _0x5469a4=this[_0xbc7a37(0x143)][_0xbc7a37(0xe0)](_0x5e5d06);if(_0x5469a4)return _0x5469a4['getShapeRelation']();}[_0x26c497(0x163)](_0x2fbffa){const _0x3f7c05=_0x26c497;let _0x2b7734=this[_0x3f7c05(0x143)]['get'](_0x2fbffa);if(_0x2b7734)return _0x2b7734[_0x3f7c05(0x163)]();}[_0x26c497(0x118)](_0x1bbaa6){const _0x32e7d9=_0x26c497;return this[_0x32e7d9(0x143)][_0x32e7d9(0x15a)](_0x1bbaa6);}['removeShape'](_0x59211b){const _0x67f8e2=_0x26c497;let _0x1bfb24=this[_0x67f8e2(0x143)]['get'](_0x59211b);_0x1bfb24&&(_0x45d4e8(_0x1bfb24['getShapeType']())&&this[_0x67f8e2(0x127)][_0x67f8e2(0x153)](_0x59211b),this[_0x67f8e2(0x143)][_0x67f8e2(0x153)](_0x59211b));}[_0x26c497(0x104)](){const _0x39390f=_0x26c497;let _0x17b91d=[];return this[_0x39390f(0x143)][_0x39390f(0x13d)](_0x262d65=>{const _0x4608a9=_0x39390f;_0x17b91d[_0x4608a9(0x141)](_0x262d65['toJSON']());}),_0x17b91d;}[_0x26c497(0x117)](_0x366811){const _0x281061=_0x26c497;for(let _0x5886b6 of _0x366811){let {id:_0x1613eb,shapeType:_0x381818}=_0x5886b6,_0x2a53f9=this['addShape'](_0x381818,_0x1613eb,_0x5886b6[_0x281061(0x12c)]);_0x2a53f9&&_0x2a53f9[_0x281061(0x121)]()&&this['_linesIds'][_0x281061(0x10c)](_0x1613eb);}}[_0x26c497(0x13c)](){const _0x52ec68=_0x26c497;this['_disposed']||(this['_shapes'][_0x52ec68(0x13d)](_0xe1f1b7=>{const _0x3b713e=_0x52ec68;_0xe1f1b7[_0x3b713e(0x13c)]();}),this[_0x52ec68(0x143)][_0x52ec68(0xd3)](),this[_0x52ec68(0x127)]['clear'](),this[_0x52ec68(0x14c)][_0x52ec68(0xd3)](),super[_0x52ec68(0x13c)]());}};function U(_0x13c04a,_0x4793ab){return function(_0x16f67a,_0x25be65){_0x4793ab(_0x16f67a,_0x25be65,_0x13c04a);};}function W(_0x3afaab,_0x365abd,_0x4d4665,_0x4efb1e){const _0xf79c23=_0x26c497;var _0x5f49b9=arguments[_0xf79c23(0x165)],_0x5f4e33=_0x5f49b9<0x3?_0x365abd:_0x4efb1e===null?_0x4efb1e=Object[_0xf79c23(0xe1)](_0x365abd,_0x4d4665):_0x4efb1e,_0x4373be;if(typeof Reflect==_0xf79c23(0x124)&&typeof Reflect[_0xf79c23(0xe7)]==_0xf79c23(0x112))_0x5f4e33=Reflect[_0xf79c23(0xe7)](_0x3afaab,_0x365abd,_0x4d4665,_0x4efb1e);else{for(var _0x56fa29=_0x3afaab[_0xf79c23(0x165)]-0x1;_0x56fa29>=0x0;_0x56fa29--)(_0x4373be=_0x3afaab[_0x56fa29])&&(_0x5f4e33=(_0x5f49b9<0x3?_0x4373be(_0x5f4e33):_0x5f49b9>0x3?_0x4373be(_0x365abd,_0x4d4665,_0x5f4e33):_0x4373be(_0x365abd,_0x4d4665))||_0x5f4e33);}return _0x5f49b9>0x3&&_0x5f4e33&&Object[_0xf79c23(0x16a)](_0x365abd,_0x4d4665,_0x5f4e33),_0x5f4e33;}let G=class extends _0x28b545{constructor(_0x4b99ff){const _0x5c4884=_0x26c497;super(),this[_0x5c4884(0x11d)]=_0x4b99ff,V(this,_0x5c4884(0x126),new Map()),this[_0x5c4884(0x10b)]();}[_0x26c497(0x169)](_0x24e69e,_0x262e7e){const _0x3cb6e7=_0x26c497;let _0x2d5dfc=this[_0x3cb6e7(0x126)][_0x3cb6e7(0xe0)](_0x24e69e);_0x2d5dfc||(_0x2d5dfc=new Map(),this[_0x3cb6e7(0x126)][_0x3cb6e7(0x105)](_0x24e69e,_0x2d5dfc));let _0x2e9df6=_0x2d5dfc[_0x3cb6e7(0xe0)](_0x262e7e);return _0x2e9df6||(_0x2e9df6=new H(),_0x2d5dfc[_0x3cb6e7(0x105)](_0x262e7e,_0x2e9df6)),_0x2e9df6;}['insertShape'](_0x7d340,_0x1f2e90,_0x3783fe,_0x3365fc,_0x2a8820){const _0x1a56af=_0x26c497;this[_0x1a56af(0x169)](_0x7d340,_0x1f2e90)[_0x1a56af(0x107)](_0x3783fe,_0x3365fc,_0x2a8820);}[_0x26c497(0x11b)](_0x523cf7,_0x3c226a,_0x5650a4){const _0x469da0=_0x26c497;this[_0x469da0(0x169)](_0x523cf7,_0x3c226a)['removeShape'](_0x5650a4);}[_0x26c497(0x159)](_0xdab321,_0xb9c2ae,_0x23fe19){const _0x30314d=_0x26c497;return this[_0x30314d(0x169)](_0xdab321,_0xb9c2ae)[_0x30314d(0x163)](_0x23fe19);}[_0x26c497(0x163)](_0x4f92f2,_0x5ad2ce,_0x2a3cf3){const _0x5b5d48=_0x26c497;return this[_0x5b5d48(0x169)](_0x4f92f2,_0x5ad2ce)[_0x5b5d48(0x163)](_0x2a3cf3);}[_0x26c497(0x118)](_0x4f0b0b,_0x5820dc,_0x5ca91e){const _0x2013d9=_0x26c497;return this[_0x2013d9(0x169)](_0x4f0b0b,_0x5820dc)[_0x2013d9(0x118)](_0x5ca91e);}['getShapeTypeById'](_0x2de412,_0x34bb18,_0x5b74fc){const _0x40dd7e=_0x26c497;return this[_0x40dd7e(0x169)](_0x2de412,_0x34bb18)['getShapeType'](_0x5b74fc);}['getShapeDataById'](_0x302171,_0x50dd53,_0x51886f){const _0x461133=_0x26c497;let _0x2bb7ee=this[_0x461133(0x169)](_0x302171,_0x50dd53);if(!_0x2bb7ee[_0x461133(0x163)](_0x51886f))return;let _0x3f9e95=_0x2bb7ee[_0x461133(0x143)][_0x461133(0xe0)](_0x51886f);if(_0x3f9e95)return _0x3f9e95[_0x461133(0xf0)]();}[_0x26c497(0x13b)](_0x526f75,_0x1788ae,_0x1a7383){const _0x32039a=_0x26c497;return this[_0x32039a(0x169)](_0x526f75,_0x1788ae)['_shapes']['get'](_0x1a7383);}[_0x26c497(0xd1)](_0x15bd2a,_0xdcab3f,_0x2e30a4){const _0x484410=_0x26c497;return this[_0x484410(0x169)](_0x15bd2a,_0xdcab3f)['getBasicShapeRelation'](_0x2e30a4);}[_0x26c497(0xd0)](_0x3d69af,_0x292fb5,_0x204ba3){const _0xe7d09c=_0x26c497;let _0x4f1569=this[_0xe7d09c(0x169)](_0x3d69af,_0x292fb5)['_shapes'][_0xe7d09c(0xe0)](_0x204ba3);if(_0x4f1569)return _0x4f1569[_0xe7d09c(0xf9)]();}[_0x26c497(0x11f)](){}[_0x26c497(0x13f)](_0x170143){const _0x1b3707=_0x26c497;let _0x1d5822={},_0x2af644=this[_0x1b3707(0x126)][_0x1b3707(0xe0)](_0x170143);return _0x2af644&&_0x2af644[_0x1b3707(0x13d)]((_0x98408b,_0x821173)=>{const _0x432500=_0x1b3707;let _0x41c0dd=_0x98408b[_0x432500(0x104)]();_0x41c0dd[_0x432500(0x165)]>0x0&&(_0x1d5822[_0x821173]=_0x41c0dd);}),JSON[_0x1b3707(0x154)](_0x1d5822);}[_0x26c497(0x14b)](_0x3450f3,_0x20f76f){const _0xd4115f=_0x26c497;Object[_0xd4115f(0x145)](_0x20f76f)[_0xd4115f(0x13d)](_0x2cf43d=>{const _0x5b9b89=_0xd4115f;this[_0x5b9b89(0x169)](_0x3450f3,_0x2cf43d)['fromJSON'](_0x20f76f[_0x2cf43d]);});}[_0x26c497(0x104)](){let _0x3949c0={};return this['_shapeModelManagerMap']['forEach']((_0x1060f9,_0x583629)=>{const _0x5cc134=_0x48a4;_0x3949c0[_0x583629]={},_0x1060f9[_0x5cc134(0x13d)]((_0x16f962,_0x45cb97)=>{_0x3949c0[_0x583629][_0x45cb97]=_0x16f962['toJSON']();});}),_0x3949c0;}[_0x26c497(0x117)](_0x5cf92e){const _0x36f7a9=_0x26c497;Object[_0x36f7a9(0x145)](_0x5cf92e)[_0x36f7a9(0x13d)](_0x385f07=>{const _0xecfd04=_0x36f7a9;let _0xfa9fa4=_0x5cf92e[_0x385f07];Object[_0xecfd04(0x145)](_0xfa9fa4)[_0xecfd04(0x13d)](_0x55e8ad=>{const _0x1e9d27=_0xecfd04;this['_ensureShapeModelManager'](_0x385f07,_0x55e8ad)[_0x1e9d27(0x117)](_0xfa9fa4[_0x55e8ad]);});});}['_initSnapshot'](){const _0x1f3e8f=_0x26c497;this[_0x1f3e8f(0x11d)][_0x1f3e8f(0x11e)]({'pluginName':_0x1f3e8f(0x103),'businesses':[_0xd9deb1[_0x1f3e8f(0xee)]],'toJson':_0x401a25=>this[_0x1f3e8f(0x13f)](_0x401a25),'parseJson':_0x53060e=>JSON[_0x1f3e8f(0xd4)](_0x53060e),'onLoad':(_0x259681,_0xabb09d)=>{const _0x53756e=_0x1f3e8f;this[_0x53756e(0x14b)](_0x259681,_0xabb09d);},'onUnLoad':_0xaac5ff=>{const _0x1fb8bc=_0x1f3e8f;let _0x3dade4=this[_0x1fb8bc(0x126)][_0x1fb8bc(0xe0)](_0xaac5ff);_0x3dade4&&(_0x3dade4[_0x1fb8bc(0x13d)](_0x4291da=>{const _0x3f6b33=_0x1fb8bc;_0x4291da[_0x3f6b33(0x13c)]();}),this[_0x1fb8bc(0x126)][_0x1fb8bc(0x153)](_0xaac5ff));}});}[_0x26c497(0x13c)](){this['_shapeModelManagerMap']['forEach'](_0x56db29=>{const _0x4ab5d4=_0x48a4;_0x56db29[_0x4ab5d4(0x13d)](_0x35e43f=>{const _0x18ab3b=_0x4ab5d4;_0x35e43f[_0x18ab3b(0x13c)]();});});}};G=W([U(0x0,_0x54f492)],G);const K={'id':_0x26c497(0xea),'type':_0x3e9504['MUTATION'],'handler':(_0x9aa014,_0x5a0978)=>{const _0x1e718a=_0x26c497;let {unitId:_0xf4d0aa,subUnitId:_0x533484,shapeType:_0x32e362,shapeId:_0x161492,shapeData:_0x2b0ea6}=_0x5a0978;return _0x9aa014[_0x1e718a(0xe0)](G)[_0x1e718a(0xd8)](_0xf4d0aa,_0x533484,_0x32e362,_0x161492,_0x2b0ea6),!0x0;}},q={'id':_0x26c497(0xdc),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x3cd920,_0x56e80c)=>{const _0x520dc0=_0x26c497;let {unitId:_0x233503,subUnitId:_0x595c21,shapeId:_0x3db2c0}=_0x56e80c;return _0x3cd920[_0x520dc0(0xe0)](G)[_0x520dc0(0x11b)](_0x233503,_0x595c21,_0x3db2c0),!0x0;}},J={'type':_0x3e9504[_0x26c497(0xf5)],'id':_0x26c497(0x15b),'handler':(_0x2c27d0,_0x454bf0)=>{const _0x34291a=_0x26c497;var _0x3d737a,_0x4cf013;let _0x8550a5=_0x1d1d1e(_0x2c27d0[_0x34291a(0xe0)](_0x70c7f6),_0x454bf0);if(!_0x8550a5)return!0x1;let _0x158328=_0x2c27d0[_0x34291a(0xe0)](_0xf2e92a),{unitId:_0x56edde,subUnitId:_0x420415}=_0x8550a5,_0x4db6e0=_0x158328['ensureSkeleton'](_0x56edde,_0x420415);if(!_0x4db6e0)return!0x1;let _0x5931c9=_0x2c27d0[_0x34291a(0xe0)](_0x5b8310),_0x2c6ba9=_0x2c27d0['get'](_0x4f939d),_0x52a1b3=_0x2c27d0['get'](_0x499171),_0x1e97dd=_0x2c27d0[_0x34291a(0xe0)](_0x41f85d),{shapeType:_0x22d9d,shapeData:_0x751a47}=_0x454bf0,_0x20e007=_0x454bf0[_0x34291a(0x170)]||_0x15fabb(),_0x4ea29e={'unitId':_0x56edde,'subUnitId':_0x420415,'shapeId':_0x20e007,'shapeType':_0x22d9d,'shapeData':_0x751a47},_0x37c2f2=_0x454bf0['width']||0xc8,_0x664d32=_0x454bf0[_0x34291a(0x111)]||0xc8,_0x3ed4a6=0x0,_0x504b9e=0x0,_0x5dc65f={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x322d25={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x454bf0[_0x34291a(0x171)]){let {x:_0x30018f,y:_0x4c0c50}=_0x454bf0['position'];_0x3ed4a6=_0x30018f,_0x504b9e=_0x4c0c50,_0x5dc65f=_0x4db6e0[_0x34291a(0x13e)](_0x30018f,_0x4c0c50),_0x322d25=_0x4db6e0[_0x34291a(0x13e)](_0x30018f+_0x37c2f2,_0x4c0c50+_0x664d32);}else{if(_0x454bf0[_0x34291a(0x134)]){let {startRow:_0x35556a,startColumn:_0x8c66d9}=_0x454bf0[_0x34291a(0x134)];_0x5dc65f={'row':_0x35556a,'rowOffset':0xa,'column':_0x8c66d9,'columnOffset':0xa};let _0x2213a5=_0x4db6e0[_0x34291a(0xff)](_0x35556a,_0x8c66d9);_0x3ed4a6=_0x2213a5[_0x34291a(0x16f)]+0xa,_0x504b9e=_0x2213a5[_0x34291a(0xe5)]+0xa,_0x322d25=_0x4db6e0[_0x34291a(0x13e)](_0x3ed4a6+_0x37c2f2,_0x504b9e+_0x664d32);}}let _0x43a997={'from':_0x5dc65f,'to':_0x322d25},_0x17fd16={'unitId':_0x56edde,'subUnitId':_0x420415,'drawingId':_0x20e007,'drawingType':_0x5e5e5b[_0x34291a(0x130)],'sheetTransform':_0x43a997,'transform':{'left':_0x3ed4a6,'top':_0x504b9e,'width':_0x37c2f2,'height':_0x664d32},'data':{'shapeType':_0x22d9d,'shapeData':_0x751a47},'axisAlignSheetTransform':_0x43a997,'allowTransform':!0x0};_0x45d4e8(_0x22d9d)&&(_0x17fd16[_0x34291a(0x119)]['fill']=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0xda)]=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0xdb)]=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0x137)]=!0x1,_0x17fd16[_0x34291a(0x101)][_0x34291a(0xda)]=!0x1,_0x17fd16[_0x34291a(0x101)][_0x34291a(0xdb)]=!0x1,_0x17fd16['transform']['borderEnabled']=!0x1);let {undo:_0xf315e9,redo:_0x1ec50e,objects:_0x34484b}=_0x1e97dd[_0x34291a(0x15c)]([_0x17fd16]),_0xf99a43=_0x52a1b3[_0x34291a(0x156)]({'id':_0xbe823c['id'],'params':{'unitId':_0x56edde,'drawings':[_0x17fd16]}}),_0x55643b=[...(_0x3d737a=_0xf99a43[_0x34291a(0x131)])==null?[]:_0x3d737a,{'id':_0x30ac56['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'op':_0x1ec50e,'objects':_0x34484b,'type':_0x5e6d34[_0x34291a(0x135)]}},{'id':_0x286f04['id'],'params':[_0x56edde]},..._0xf99a43[_0x34291a(0xfa)],{'id':K['id'],'params':_0x4ea29e}],_0x4868cf=[{'id':q['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'shapeId':_0x20e007}},...(_0x4cf013=_0xf99a43[_0x34291a(0x114)])==null?[]:_0x4cf013,{'id':_0x30ac56['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'op':_0xf315e9,'objects':_0x34484b,'type':_0x5e6d34['REMOVE']}},{'id':_0x286f04['id'],'params':[_0x56edde]},..._0xf99a43[_0x34291a(0x13a)]];return _0x3a6f34(_0x55643b,_0x5931c9)[_0x34291a(0x10e)]?(_0x2c6ba9[_0x34291a(0xe9)]({'unitID':_0x56edde,'undoMutations':_0x4868cf,'redoMutations':_0x55643b}),!0x0):!0x1;}},Y={'id':_0x26c497(0x16b),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x166154,_0x2fa193)=>{const _0x23b08a=_0x26c497;let {unitId:_0x58f341,subUnitId:_0x2c7ee7,shapeType:_0x4e5e9b,shapeId:_0x315414,shapeData:_0x678c8d}=_0x2fa193,_0x4be03e=_0x166154[_0x23b08a(0xe0)](G)[_0x23b08a(0x13b)](_0x58f341,_0x2c7ee7,_0x315414);return _0x4be03e&&(_0x4e5e9b!==void 0x0&&_0x4be03e[_0x23b08a(0x11f)](_0x4e5e9b),_0x678c8d&&(_0x4be03e==null||_0x4be03e[_0x23b08a(0x12e)](_0x678c8d,!0x0))),!0x0;}},ee={'type':_0x3e9504[_0x26c497(0xf5)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x98ff5e,_0x1e07af)=>{const _0x26f5ab=_0x26c497;var _0x43a3dd,_0x1d3c65;let _0x3dd426=_0x1d1d1e(_0x98ff5e[_0x26f5ab(0xe0)](_0x70c7f6),_0x1e07af);if(!_0x3dd426)return!0x1;let _0x53b7c2=_0x98ff5e[_0x26f5ab(0xe0)](_0xf2e92a),{unitId:_0xa1ec7f,subUnitId:_0xc7bc36}=_0x3dd426,_0x4b1cce=_0x53b7c2[_0x26f5ab(0x128)](_0xa1ec7f,_0xc7bc36);if(!_0x4b1cce)return!0x1;let _0x340b81=_0x98ff5e[_0x26f5ab(0xe0)](G),{shapeId:_0x3630d1,shapeType:_0x2710a5,shapeData:_0x2d0fc6,position:_0x5aa5e5,width:_0x3151bc,height:_0x112586}=_0x1e07af,_0x1117d2=_0x340b81[_0x26f5ab(0x13b)](_0xa1ec7f,_0xc7bc36,_0x3630d1);if(!_0x1117d2)return!0x1;let _0x255174=_0x98ff5e[_0x26f5ab(0xe0)](_0x5b8310),_0x3a269a=_0x98ff5e[_0x26f5ab(0xe0)](_0x4f939d),_0x5e5fac=_0x98ff5e[_0x26f5ab(0xe0)](_0x499171),_0x408ca1=_0x98ff5e[_0x26f5ab(0xe0)](_0x41f85d),_0xca3b78={'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'shapeId':_0x3630d1,'shapeType':_0x2710a5,'shapeData':_0x2d0fc6},_0x115019=_0x1117d2[_0x26f5ab(0x163)](),_0x53651c=_0x1117d2[_0x26f5ab(0xf0)](),{x:_0x591ab8,y:_0x52f890}=_0x5aa5e5,_0x429642={'from':_0x4b1cce[_0x26f5ab(0x13e)](_0x591ab8,_0x52f890),'to':_0x4b1cce[_0x26f5ab(0x13e)](_0x591ab8+_0x3151bc,_0x52f890+_0x112586)},_0x4e61cd={'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'drawingId':_0x3630d1,'drawingType':_0x5e5e5b[_0x26f5ab(0x130)],'sheetTransform':_0x429642,'transform':{'left':_0x591ab8,'top':_0x52f890,'width':_0x3151bc,'height':_0x112586},'data':{'shapeType':_0x2710a5,'shapeData':_0x2d0fc6},'axisAlignSheetTransform':_0x429642,'allowTransform':!0x0};_0x45d4e8(_0x2710a5)&&(_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0x149)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0xda)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0xdb)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0x137)]=!0x1,_0x4e61cd[_0x26f5ab(0x101)]['rotateEnabled']=!0x1,_0x4e61cd[_0x26f5ab(0x101)][_0x26f5ab(0xdb)]=!0x1,_0x4e61cd[_0x26f5ab(0x101)][_0x26f5ab(0x137)]=!0x1);let {undo:_0x49bf3d,redo:_0x36e9ea,objects:_0x29b7d6}=_0x408ca1[_0x26f5ab(0x142)]([_0x4e61cd]),_0x3c1289=_0x5e5fac['onCommandExecute']({'id':_0x238f6a['id'],'params':{'unitId':_0xa1ec7f,'drawings':[_0x4e61cd]}}),_0x1238b6=[...(_0x43a3dd=_0x3c1289['preRedos'])==null?[]:_0x43a3dd,{'id':_0x30ac56['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'op':_0x36e9ea,'objects':_0x29b7d6,'type':_0x5e6d34['UPDATE']}},{'id':_0x286f04['id'],'params':[_0xa1ec7f]},..._0x3c1289[_0x26f5ab(0xfa)],{'id':Y['id'],'params':_0xca3b78}],_0x224c97=[...(_0x1d3c65=_0x3c1289[_0x26f5ab(0x114)])==null?[]:_0x1d3c65,{'id':_0x30ac56['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'op':_0x49bf3d,'objects':_0x29b7d6,'type':_0x5e6d34[_0x26f5ab(0xdf)]}},{'id':_0x286f04['id'],'params':[_0xa1ec7f]},..._0x3c1289[_0x26f5ab(0x13a)],{'id':Y['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'shapeType':_0x115019,'shapeId':_0x3630d1,'shapeData':_0x53651c}}];return _0x3a6f34(_0x1238b6,_0x255174)['result']?(_0x3a269a['pushUndoRedo']({'unitID':_0xa1ec7f,'undoMutations':_0x224c97,'redoMutations':_0x1238b6}),!0x0):!0x1;}},te={'type':_0x3e9504[_0x26c497(0xf5)],'id':_0x26c497(0xfc),'handler':(_0x122e06,_0x789a7b)=>{const _0x2e9f1d=_0x26c497;var _0x316003,_0x21c296;let _0x52bc5c=_0x1d1d1e(_0x122e06[_0x2e9f1d(0xe0)](_0x70c7f6),_0x789a7b);if(!_0x52bc5c)return!0x1;let _0x37151f=_0x122e06[_0x2e9f1d(0xe0)](_0xf2e92a),{unitId:_0x22550e,subUnitId:_0x2d5a8d}=_0x52bc5c,_0x3240e1=_0x37151f['getSkeleton'](_0x22550e,_0x2d5a8d);if(!_0x3240e1)return!0x1;let _0x3289cb=_0x122e06[_0x2e9f1d(0xe0)](_0x41f85d),{shapeId:_0x2964dc,flipH:_0x12aee5,flipV:_0x3307dc}=_0x789a7b,_0x40f8b5=_0x3289cb['getDrawingByParam']({'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'drawingId':_0x2964dc});if(!_0x40f8b5)return!0x1;let _0x26413f=_0x122e06[_0x2e9f1d(0xe0)](G)[_0x2e9f1d(0x13b)](_0x22550e,_0x2d5a8d,_0x2964dc);if(!_0x26413f)return!0x1;let _0x2f50c6=_0x122e06['get'](_0x5b8310),_0x48951e=_0x122e06[_0x2e9f1d(0xe0)](_0x4f939d),_0x55d89f=_0x122e06[_0x2e9f1d(0xe0)](_0x499171),_0x465299={..._0x40f8b5[_0x2e9f1d(0x101)]};_0x12aee5!==void 0x0&&(_0x465299[_0x2e9f1d(0x16e)]=!_0x465299[_0x2e9f1d(0x16e)]),_0x3307dc!==void 0x0&&(_0x465299[_0x2e9f1d(0x12a)]=!_0x465299[_0x2e9f1d(0x12a)]);let _0x5a18b1=_0x4fa37c(_0x465299,_0x3240e1),_0x55741b=_0x13d14d(_0x465299,_0x3240e1),_0x6d1621=_0x26413f[_0x2e9f1d(0x163)](),_0x2e8173=_0x26413f['getShapeData'](),_0x202935={'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'drawingId':_0x2964dc,'drawingType':_0x5e5e5b[_0x2e9f1d(0x130)],'sheetTransform':_0x5a18b1,'transform':_0x465299,'data':{'shapeType':_0x6d1621,'shapeData':_0x2e8173},'axisAlignSheetTransform':_0x55741b,'allowTransform':!0x0},{undo:_0x195e51,redo:_0x1016cf,objects:_0x384042}=_0x3289cb[_0x2e9f1d(0x142)]([_0x202935]),_0x131507=_0x55d89f[_0x2e9f1d(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x22550e,'drawings':[_0x202935]}}),_0x398d5c=[...(_0x316003=_0x131507[_0x2e9f1d(0x131)])==null?[]:_0x316003,{'id':_0x30ac56['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'op':_0x1016cf,'objects':_0x384042,'type':_0x5e6d34[_0x2e9f1d(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x22550e]},..._0x131507[_0x2e9f1d(0xfa)]],_0x1fae9f=[...(_0x21c296=_0x131507[_0x2e9f1d(0x114)])==null?[]:_0x21c296,{'id':_0x30ac56['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'op':_0x195e51,'objects':_0x384042,'type':_0x5e6d34['UPDATE']}},{'id':_0x286f04['id'],'params':[_0x22550e]},..._0x131507[_0x2e9f1d(0x13a)]];if(_0x45d4e8(_0x6d1621)){let _0x595ba9=_0x26413f[_0x2e9f1d(0xf9)]();if(_0x595ba9){let _0x10f4a1={..._0x595ba9};_0x10f4a1['from']=void 0x0,_0x10f4a1['to']=void 0x0,_0x398d5c[_0x2e9f1d(0x141)]({'id':Y['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'shapeId':_0x2964dc,'shapeType':_0x6d1621,'shapeData':{'relation':_0x10f4a1}}}),_0x1fae9f['push']({'id':Y['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'shapeId':_0x2964dc,'shapeType':_0x6d1621,'shapeData':{'relation':_0x595ba9}}});}}return _0x3a6f34(_0x398d5c,_0x2f50c6)['result']?(_0x48951e[_0x2e9f1d(0xe9)]({'unitID':_0x22550e,'undoMutations':_0x1fae9f,'redoMutations':_0x398d5c}),!0x0):!0x1;}},X={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0x168),'handler':(_0xaefcfe,_0x570736)=>{const _0x4c2ac9=_0x26c497;var _0xa213ec,_0x3d04b0;let _0x224521=_0x1d1d1e(_0xaefcfe[_0x4c2ac9(0xe0)](_0x70c7f6),_0x570736);if(!_0x224521)return!0x1;let _0x474566=_0xaefcfe[_0x4c2ac9(0xe0)](_0xf2e92a),{unitId:_0x2d7c6e,subUnitId:_0x1c05ac}=_0x224521,_0x2ee746=_0x474566['getSkeleton'](_0x2d7c6e,_0x1c05ac);if(!_0x2ee746)return!0x1;let _0x2d0d18=_0xaefcfe[_0x4c2ac9(0xe0)](_0x41f85d),{shapeId:_0x5c791f,rotate:_0x243eea}=_0x570736,_0x65a673=_0x2d0d18[_0x4c2ac9(0x14a)]({'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'drawingId':_0x5c791f});if(!_0x65a673)return!0x1;let _0x4ff02e=_0xaefcfe[_0x4c2ac9(0xe0)](G)['getShapeModel'](_0x2d7c6e,_0x1c05ac,_0x5c791f);if(!_0x4ff02e)return!0x1;let _0x3a5e74=_0xaefcfe[_0x4c2ac9(0xe0)](_0x5b8310),_0x16bde5=_0xaefcfe[_0x4c2ac9(0xe0)](_0x4f939d),_0x181830=_0xaefcfe[_0x4c2ac9(0xe0)](_0x499171),_0x48caf5={..._0x65a673[_0x4c2ac9(0x101)]};_0x243eea!==void 0x0&&(_0x48caf5[_0x4c2ac9(0xfb)]=(_0x48caf5['angle']||0x0)+_0x243eea);let _0x534004=_0x4fa37c(_0x48caf5,_0x2ee746),_0x5598bd=_0x13d14d(_0x48caf5,_0x2ee746),_0x1db777=_0x4ff02e[_0x4c2ac9(0x163)](),_0x1169e3=_0x4ff02e['getShapeData'](),_0x43a563={'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'drawingId':_0x5c791f,'drawingType':_0x5e5e5b[_0x4c2ac9(0x130)],'sheetTransform':_0x534004,'transform':_0x48caf5,'data':{'shapeType':_0x1db777,'shapeData':_0x1169e3},'axisAlignSheetTransform':_0x5598bd,'allowTransform':!0x0},{undo:_0x577541,redo:_0x54249a,objects:_0x614f98}=_0x2d0d18['getBatchUpdateOp']([_0x43a563]),_0xe27102=_0x181830[_0x4c2ac9(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x2d7c6e,'drawings':[_0x43a563]}}),_0x3baa24=[...(_0xa213ec=_0xe27102[_0x4c2ac9(0x131)])==null?[]:_0xa213ec,{'id':_0x30ac56['id'],'params':{'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'op':_0x54249a,'objects':_0x614f98,'type':_0x5e6d34[_0x4c2ac9(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x2d7c6e]},..._0xe27102['redos']],_0x2637f2=[...(_0x3d04b0=_0xe27102[_0x4c2ac9(0x114)])==null?[]:_0x3d04b0,{'id':_0x30ac56['id'],'params':{'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'op':_0x577541,'objects':_0x614f98,'type':_0x5e6d34[_0x4c2ac9(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x2d7c6e]},..._0xe27102[_0x4c2ac9(0x13a)]];return _0x3a6f34(_0x3baa24,_0x3a5e74)[_0x4c2ac9(0x10e)]?(_0x16bde5['pushUndoRedo']({'unitID':_0x2d7c6e,'undoMutations':_0x2637f2,'redoMutations':_0x3baa24}),!0x0):!0x1;}},Z={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0xd2),'handler':(_0x93b416,_0x11aa62)=>{const _0x45f2f5=_0x26c497;var _0x1ffe49;let _0xdbf691=_0x1d1d1e(_0x93b416[_0x45f2f5(0xe0)](_0x70c7f6),_0x11aa62);if(!_0xdbf691)return!0x1;let {unitId:_0x50c62d,subUnitId:_0x3dde17}=_0xdbf691,{shapeId:_0x1b3e6d}=_0x11aa62,_0x1eb255=_0x93b416[_0x45f2f5(0xe0)](G)['getShapeModel'](_0x50c62d,_0x3dde17,_0x1b3e6d);if(!_0x1eb255)return!0x1;let _0x51a863=_0x1eb255[_0x45f2f5(0xe3)](),_0x5325cf=(_0x1ffe49=_0x51a863==null?void 0x0:_0x51a863[_0x45f2f5(0x136)])==null?!0x0:_0x1ffe49,_0x362488=!_0x5325cf,_0x2582b3=_0x93b416[_0x45f2f5(0xe0)](_0x5b8310),_0x17cdb1=_0x93b416[_0x45f2f5(0xe0)](_0x4f939d),_0x385bf6={'unitId':_0x50c62d,'subUnitId':_0x3dde17,'shapeId':_0x1b3e6d,'shapeData':{'shapeText':{'isHorizontal':_0x362488}}},_0x1f5e34={'unitId':_0x50c62d,'subUnitId':_0x3dde17,'shapeId':_0x1b3e6d,'shapeData':{'shapeText':{'isHorizontal':_0x5325cf}}},_0x40cd13=[{'id':Y['id'],'params':_0x385bf6}],_0x21fe59=[{'id':Y['id'],'params':_0x1f5e34}];return _0x3a6f34(_0x40cd13,_0x2582b3)[_0x45f2f5(0x10e)]?(_0x17cdb1[_0x45f2f5(0xe9)]({'unitID':_0x50c62d,'undoMutations':_0x21fe59,'redoMutations':_0x40cd13}),!0x0):!0x1;}},ne={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0xf2),'handler':(_0x583433,_0x593494)=>{const _0x309c4b=_0x26c497;var _0x566c89,_0x3d07b0,_0x2d60c2,_0x1f2281;let _0x5ba37e=_0x1d1d1e(_0x583433[_0x309c4b(0xe0)](_0x70c7f6),_0x593494);if(!_0x5ba37e)return!0x1;let _0x35ed10=_0x583433[_0x309c4b(0xe0)](_0xf2e92a),{unitId:_0x406edf,subUnitId:_0x4c277e}=_0x5ba37e,_0xaec5ce=_0x35ed10[_0x309c4b(0x146)](_0x406edf,_0x4c277e);if(!_0xaec5ce)return!0x1;let _0x152784=_0x583433['get'](_0x41f85d),{connectorShapeId:_0x2d8cc9,width:_0x3b599c,height:_0x12c807,left:_0x4d506e,top:_0x1ee9aa,flipX:_0x45a36b,flipY:_0x1e0202,rotation:_0x2bb0da,oldAdjustValues:_0x40a8e2,newAdjustValues:_0x5937e3,oldLineType:_0x41e464,newLineType:_0x1215d0,oldRelation:_0x2bfa5f,newRelation:_0x5f4468}=_0x593494,_0x5010d9=_0x152784[_0x309c4b(0x14a)]({'unitId':_0x406edf,'subUnitId':_0x4c277e,'drawingId':_0x2d8cc9});if(!_0x5010d9)return!0x1;let _0x37c194=_0x583433[_0x309c4b(0xe0)](G)['getShapeModel'](_0x406edf,_0x4c277e,_0x2d8cc9);if(!_0x37c194)return!0x1;let _0x565bcf=_0x583433[_0x309c4b(0xe0)](_0x5b8310),_0x2db390=_0x583433[_0x309c4b(0xe0)](_0x4f939d),_0x571a04=_0x583433[_0x309c4b(0xe0)](_0x499171),_0x4b18a5={..._0x5010d9[_0x309c4b(0x101)],'width':_0x3b599c,'height':_0x12c807,'left':_0x4d506e,'top':_0x1ee9aa,'flipX':_0x45a36b,'flipY':_0x1e0202,'angle':(_0x566c89=_0x2bb0da==null?(_0x3d07b0=_0x5010d9['transform'])==null?void 0x0:_0x3d07b0[_0x309c4b(0xfb)]:_0x2bb0da)==null?0x0:_0x566c89},_0x2fb48e=_0x4fa37c(_0x4b18a5,_0xaec5ce),_0x2d2f13=_0x13d14d(_0x4b18a5,_0xaec5ce),_0x954c9d=_0x37c194[_0x309c4b(0x163)](),_0x48249f=_0x37c194[_0x309c4b(0xf0)](),_0x4e74b5={'unitId':_0x406edf,'subUnitId':_0x4c277e,'drawingId':_0x2d8cc9,'drawingType':_0x5e5e5b['DRAWING_SHAPE'],'sheetTransform':_0x2fb48e,'transform':_0x4b18a5,'data':{'shapeType':_0x1215d0||_0x41e464||_0x954c9d,'shapeData':{..._0x48249f,'adjustValues':_0x5937e3||_0x40a8e2||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x155)]),'relation':_0x5f4468||_0x2bfa5f||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x113)])}},'axisAlignSheetTransform':_0x2d2f13,'allowTransform':!0x0},{undo:_0x5a6597,redo:_0x418c69,objects:_0x12d9db}=_0x152784[_0x309c4b(0x142)]([_0x4e74b5]),_0x190368=_0x571a04[_0x309c4b(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x406edf,'drawings':[_0x4e74b5]}}),_0x1d87a9=[...(_0x2d60c2=_0x190368['preRedos'])==null?[]:_0x2d60c2,{'id':_0x30ac56['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'op':_0x418c69,'objects':_0x12d9db,'type':_0x5e6d34[_0x309c4b(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x406edf]},..._0x190368['redos'],{'id':Y['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'shapeId':_0x2d8cc9,'shapeType':_0x1215d0,'shapeData':{'adjustValues':_0x5937e3,'relation':_0x5f4468}}}],_0x29d5f9=[...(_0x1f2281=_0x190368[_0x309c4b(0x114)])==null?[]:_0x1f2281,{'id':_0x30ac56['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'op':_0x5a6597,'objects':_0x12d9db,'type':_0x5e6d34[_0x309c4b(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x406edf]},..._0x190368[_0x309c4b(0x13a)],{'id':Y['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'shapeId':_0x2d8cc9,'shapeType':_0x954c9d,'shapeData':{..._0x48249f,'adjustValues':_0x40a8e2||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x155)]),'relation':_0x2bfa5f||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x113)])}}}];return _0x3a6f34(_0x1d87a9,_0x565bcf)[_0x309c4b(0x10e)]?(_0x2db390[_0x309c4b(0xe9)]({'unitID':_0x406edf,'undoMutations':_0x29d5f9,'redoMutations':_0x1d87a9}),!0x0):!0x1;}},re={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0x152),'handler':(_0x27b0cd,_0x45d01c)=>{const _0x3acb89=_0x26c497;var _0x40849c,_0x18c34e;let _0x5223b0=_0x1d1d1e(_0x27b0cd[_0x3acb89(0xe0)](_0x70c7f6),_0x45d01c);if(!_0x5223b0)return!0x1;let _0x379f5a=_0x27b0cd[_0x3acb89(0xe0)](_0xf2e92a),{unitId:_0x80e8d2,subUnitId:_0x3576b7}=_0x5223b0,_0x2e4090=_0x379f5a['getSkeleton'](_0x80e8d2,_0x3576b7);if(!_0x2e4090)return!0x1;let _0xa104d1=_0x27b0cd['get'](_0x41f85d),{shapeId:_0x5cb93e,width:_0x4f06a4,height:_0x5ac3bd,left:_0x1f35c3,top:_0x559f1d,flipX:_0xfe20f0,flipY:_0x167ea2,angle:_0x37429c,oldAdjustValues:_0x2105fd,newAdjustValues:_0x19cbd9,oldLineType:_0x11ac87,newLineType:_0x1ae2ae}=_0x45d01c,_0x59f67a=_0xa104d1[_0x3acb89(0x14a)]({'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'drawingId':_0x5cb93e});if(!_0x59f67a)return!0x1;let _0x1b565d=_0x27b0cd['get'](G)[_0x3acb89(0x13b)](_0x80e8d2,_0x3576b7,_0x5cb93e);if(!_0x1b565d)return!0x1;let _0x5901be=_0x27b0cd['get'](_0x5b8310),_0x3f5783=_0x27b0cd[_0x3acb89(0xe0)](_0x4f939d),_0x2d4abb=_0x27b0cd['get'](_0x499171),_0x4ffad3={..._0x59f67a[_0x3acb89(0x101)],'width':_0x4f06a4,'height':_0x5ac3bd,'left':_0x1f35c3,'top':_0x559f1d,'flipX':_0xfe20f0,'flipY':_0x167ea2,'angle':_0x37429c},_0x5da79c=_0x4fa37c(_0x4ffad3,_0x2e4090),_0x129615=_0x13d14d(_0x4ffad3,_0x2e4090),_0x413dff=_0x1b565d['getShapeType'](),_0x537b20=_0x1b565d[_0x3acb89(0xf0)](),_0x303d24={'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'drawingId':_0x5cb93e,'drawingType':_0x5e5e5b[_0x3acb89(0x130)],'sheetTransform':_0x5da79c,'transform':_0x4ffad3,'data':{'shapeType':_0x1ae2ae||_0x11ac87||_0x413dff,'shapeData':{..._0x537b20,'adjustValues':_0x19cbd9||_0x2105fd||(_0x537b20==null?void 0x0:_0x537b20['adjustValues'])}},'axisAlignSheetTransform':_0x129615,'allowTransform':!0x0},{undo:_0xa694ce,redo:_0x4292c6,objects:_0x522d06}=_0xa104d1[_0x3acb89(0x142)]([_0x303d24]),_0x1f91bf=_0x2d4abb['onCommandExecute']({'id':_0x238f6a['id'],'params':{'unitId':_0x80e8d2,'drawings':[_0x303d24]}}),_0x2f7f67=[...(_0x40849c=_0x1f91bf['preRedos'])==null?[]:_0x40849c,{'id':_0x30ac56['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'op':_0x4292c6,'objects':_0x522d06,'type':_0x5e6d34[_0x3acb89(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x80e8d2]},..._0x1f91bf[_0x3acb89(0xfa)],{'id':Y['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'shapeId':_0x5cb93e,'shapeType':_0x1ae2ae,'shapeData':{'adjustValues':_0x19cbd9}}}],_0x12105a=[...(_0x18c34e=_0x1f91bf[_0x3acb89(0x114)])==null?[]:_0x18c34e,{'id':_0x30ac56['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'op':_0xa694ce,'objects':_0x522d06,'type':_0x5e6d34[_0x3acb89(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x80e8d2]},..._0x1f91bf[_0x3acb89(0x13a)],{'id':Y['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'shapeId':_0x5cb93e,'shapeType':_0x413dff,'shapeData':{..._0x537b20,'adjustValues':_0x2105fd||(_0x537b20==null?void 0x0:_0x537b20[_0x3acb89(0x155)])}}}];return _0x3a6f34(_0x2f7f67,_0x5901be)['result']?(_0x3f5783[_0x3acb89(0xe9)]({'unitID':_0x80e8d2,'undoMutations':_0x12105a,'redoMutations':_0x2f7f67}),!0x0):!0x1;}},Q={'id':_0x26c497(0x140),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x4fee02,_0x53d2fe)=>{const _0xed3c8b=_0x26c497;let {unitId:_0x2abc37,subUnitId:_0x1785ae,shapeType:_0x578746,shapeId:_0x419c6a,shapeData:_0x574e4a}=_0x53d2fe,_0xb55453=_0x4fee02[_0xed3c8b(0xe0)](G)[_0xed3c8b(0x13b)](_0x2abc37,_0x1785ae,_0x419c6a);return _0xb55453&&(_0xb55453[_0xed3c8b(0x11f)](_0x578746),_0x574e4a&&(_0xb55453==null||_0xb55453[_0xed3c8b(0x12e)](_0x574e4a))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x3e9504[_0x26c497(0xf5)],'handler':(_0x215d6c,_0x28b1e0)=>{const _0x496e41=_0x26c497;if(!_0x28b1e0)return!0x1;let _0x188a0b=_0x215d6c[_0x496e41(0xe0)](_0x5b8310),_0x121d82=_0x215d6c['get'](G),_0x308fe8=_0x215d6c['get'](_0x4f939d),_0x4325e8=[],_0x23b2d8=[],{unitId:_0x5132e6,subUnitId:_0x16b927,shapeId:_0x27105d,shapeType:_0xc49c0f,shapeData:_0x35c12f}=_0x28b1e0,_0x46a615=_0x121d82[_0x496e41(0x13b)](_0x5132e6,_0x16b927,_0x27105d);if(_0x46a615){let _0x5a95bd=_0x46a615['getShapeType'](),_0x3d8132=Object[_0x496e41(0xf3)]({},_0x46a615[_0x496e41(0xf0)]()),_0x327b8b={'unitId':_0x5132e6,'subUnitId':_0x16b927,'shapeId':_0x27105d,'shapeType':_0xc49c0f,'shapeData':_0x35c12f},_0x212918={'unitId':_0x5132e6,'subUnitId':_0x16b927,'shapeId':_0x27105d,'shapeType':_0x5a95bd,'shapeData':_0x3d8132};return _0x4325e8['push']({'id':Q['id'],'params':_0x327b8b}),_0x23b2d8[_0x496e41(0x141)]({'id':Q['id'],'params':_0x212918}),_0x4325e8['every'](_0x98c255=>_0x188a0b[_0x496e41(0xde)](_0x98c255['id'],_0x98c255[_0x496e41(0x102)]))&&_0x308fe8[_0x496e41(0xe9)]({'unitID':_0x5132e6,'redoMutations':[..._0x4325e8],'undoMutations':[..._0x23b2d8]}),!0x0;}return!0x1;}};var ae=_0x26c497(0x12b),oe=_0x26c497(0xfe);const se={};function _0x48a4(_0x420ab7,_0x488495){_0x420ab7=_0x420ab7-0xd0;const _0x1d9452=_0x1d94();let _0x48a400=_0x1d9452[_0x420ab7];return _0x48a400;}let ce=class extends _0x28b545{constructor(_0x2eb3b4,_0xb6caf2,_0x42d830,_0x5ca834,_0x1674c2){const _0x4fea63=_0x26c497;super(),this[_0x4fea63(0x106)]=_0x2eb3b4,this[_0x4fea63(0x133)]=_0xb6caf2,this['_sheetSkeletonService']=_0x42d830,this['_sheetsShapeService']=_0x5ca834,this[_0x4fea63(0x110)]=_0x1674c2,this[_0x4fea63(0x150)](),this[_0x4fea63(0x147)]();}[_0x26c497(0x150)](){const _0x358145=_0x26c497;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x361a06=>this[_0x358145(0x123)](this[_0x358145(0x106)]['registerCommand'](_0x361a06)));}[_0x26c497(0x147)](){const _0x3392f5=_0x26c497;this[_0x3392f5(0x123)](this[_0x3392f5(0x133)][_0x3392f5(0x160)]({'getMutations':_0x300b3d=>{const _0x47a595=_0x3392f5;if(_0x300b3d['id']===_0xd0523e['id']){let {drawings:_0xf642dc}=_0x300b3d[_0x47a595(0x102)],_0x42d700=_0xf642dc[_0x47a595(0x10f)](_0x54d39a=>_0x54d39a[_0x47a595(0x108)]===_0x5e5e5b[_0x47a595(0x130)]);if(_0x42d700['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x44c797=[],_0x39115c=[];return _0x42d700[_0x47a595(0x13d)](_0x1fdcf9=>{const _0x570125=_0x47a595;let {unitId:_0x43749a,subUnitId:_0x257046,drawingId:_0x449c75}=_0x1fdcf9,_0x5762a8=this[_0x570125(0xe4)][_0x570125(0x13b)](_0x43749a,_0x257046,_0x449c75);if(!_0x5762a8)throw TypeError(_0x570125(0x15f)+_0x5762a8);_0x44c797[_0x570125(0x141)]({'id':q['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x449c75}}),_0x39115c[_0x570125(0x141)]({'id':K['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x449c75,'shapeType':_0x5762a8['getShapeType'](),'shapeData':_0x5762a8[_0x570125(0xf0)]()}});let _0x24cacd=this[_0x570125(0xe4)][_0x570125(0xd1)](_0x43749a,_0x257046,_0x449c75);if(_0x24cacd)for(let _0x2c38cb of _0x24cacd){let _0x2f0bab=_0x2c38cb[_0x570125(0x162)],_0x21fc90=_0x2c38cb[_0x570125(0x14f)],_0x5b78b5=_0x21fc90?{'from':void 0x0}:{'to':void 0x0},_0x51e1e5=_0x21fc90?{'from':{'shapeId':_0x2c38cb[_0x570125(0x170)],'cxnIndex':_0x2c38cb[_0x570125(0x11a)]}}:{'to':{'shapeId':_0x2c38cb[_0x570125(0x170)],'cxnIndex':_0x2c38cb[_0x570125(0x11a)]}};_0x44c797[_0x570125(0x141)]({'id':Y['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x2f0bab,'shapeData':{'relation':_0x5b78b5}}}),_0x39115c[_0x570125(0x141)]({'id':Y['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x2f0bab,'shapeData':{'relation':_0x51e1e5}}});}}),{'preRedos':_0x44c797,'redos':[],'preUndos':[],'undos':_0x39115c};}if(_0x300b3d['id']===_0x238f6a['id']){let {drawings:_0x4b20ea}=_0x300b3d['params'],_0x59e3bb=_0x4b20ea['filter'](_0x22a5c3=>_0x22a5c3[_0x47a595(0x108)]===_0x5e5e5b[_0x47a595(0x130)]);if(_0x59e3bb['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2ded07=[],_0x45265e=[];for(let _0x58d13f of _0x59e3bb){let {unitId:_0x104c7f,subUnitId:_0x47a688,drawingId:_0x57f528,transform:_0x59554b}=_0x58d13f;if(!_0x104c7f||!_0x47a688||!_0x57f528||!_0x59554b)continue;let _0x3ef3ae=this[_0x47a595(0xe4)]['getShapeModel'](_0x104c7f,_0x47a688,_0x57f528);if(!_0x3ef3ae)throw TypeError(_0x47a595(0x15f)+_0x3ef3ae);if(_0x45d4e8(_0x3ef3ae[_0x47a595(0x163)]())){let _0x2d62f0=this['_sheetsShapeService'][_0x47a595(0xd0)](_0x104c7f,_0x47a688,_0x57f528);_0x2d62f0&&(_0x2ded07[_0x47a595(0x141)]({'id':Y['id'],'params':{'unitId':_0x104c7f,'subUnitId':_0x47a688,'shapeId':_0x57f528,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x45265e[_0x47a595(0x141)]({'id':Y['id'],'params':{'unitId':_0x104c7f,'subUnitId':_0x47a688,'shapeId':_0x57f528,'shapeData':{'relation':_0x2d62f0}}}));}else{let _0x1b943b=this['_sheetsShapeService'][_0x47a595(0xd1)](_0x104c7f,_0x47a688,_0x57f528);if(_0x1b943b&&_0x1b943b['length']>0x0)for(let _0x23e4fd of _0x1b943b){let _0x48a680=_0x23e4fd[_0x47a595(0x162)],_0x12b6c7=_0x23e4fd['isFrom'],_0x41aedd=this[_0x47a595(0xe4)][_0x47a595(0x13b)](_0x104c7f,_0x47a688,_0x48a680);if(!_0x41aedd)continue;let _0x1cd8bf=_0x41aedd[_0x47a595(0x132)](),_0xe21744=_0x41aedd[_0x47a595(0x116)]();_0x1cd8bf&&_0xe21744?this[_0x47a595(0x109)](_0x104c7f,_0x47a688,_0x48a680,_0x41aedd,_0x1cd8bf,_0xe21744,_0x2ded07,_0x45265e,_0x57f528,_0x59554b):this[_0x47a595(0xf6)](_0x104c7f,_0x47a688,_0x48a680,_0x41aedd,_0x12b6c7?_0x1cd8bf:_0xe21744,_0x12b6c7,_0x2ded07,_0x45265e,_0x57f528,_0x59554b);}}}return{'preRedos':[],'redos':_0x2ded07,'preUndos':_0x45265e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x31e73a,_0x11fbf5,_0x2db225,_0x26b55d,_0x5c3c63){const _0x12393b=_0x26c497;if(!_0x11fbf5||!_0x2db225)return null;let {shapeId:_0x4ae0d7,cxnIndex:_0x420973}=_0x31e73a,_0x252543=this[_0x12393b(0xe4)][_0x12393b(0x13b)](_0x11fbf5,_0x2db225,_0x4ae0d7);if(!_0x252543)return null;let _0x458ef8=this[_0x12393b(0x110)]['getDrawingByParam']({'unitId':_0x11fbf5,'subUnitId':_0x2db225,'drawingId':_0x4ae0d7});if(!(_0x458ef8!=null&&_0x458ef8['transform']))return null;let {left:_0x2aceb0=0x0,top:_0x50084d=0x0,width:_0x80b08c=0x0,height:_0x1adb8a=0x0,flipX:_0x2e8ac3=!0x1,flipY:_0x360a27=!0x1,angle:_0x50d9b6}=_0x458ef8['transform'];if(_0x5c3c63&&_0x26b55d===_0x4ae0d7){var _0x381c20,_0x357c46,_0x317af1,_0x238892,_0x4114a9,_0x2d8892,_0x175c91;_0x2aceb0=(_0x381c20=_0x5c3c63[_0x12393b(0x16c)])==null?_0x2aceb0:_0x381c20,_0x50084d=(_0x357c46=_0x5c3c63[_0x12393b(0x10d)])==null?_0x50084d:_0x357c46,_0x80b08c=(_0x317af1=_0x5c3c63[_0x12393b(0x14e)])==null?_0x80b08c:_0x317af1,_0x1adb8a=(_0x238892=_0x5c3c63['height'])==null?_0x1adb8a:_0x238892,_0x2e8ac3=(_0x4114a9=_0x5c3c63[_0x12393b(0x16e)])==null?_0x2e8ac3:_0x4114a9,_0x360a27=(_0x2d8892=_0x5c3c63[_0x12393b(0x12a)])==null?_0x360a27:_0x2d8892,_0x50d9b6=(_0x175c91=_0x5c3c63[_0x12393b(0xfb)])==null?_0x50d9b6:_0x175c91;}_0x252543[_0x12393b(0x138)]({'width':_0x80b08c,'height':_0x1adb8a});let _0x206854=_0x252543[_0x12393b(0x164)]()['find'](_0x3b598c=>_0x3b598c[_0x12393b(0x15d)]===_0x420973);if(!_0x206854)return null;let _0x3f2c2e=_0x2e8ac3?_0x80b08c-_0x206854['x']:_0x206854['x'],_0x48beb3=_0x360a27?_0x1adb8a-_0x206854['y']:_0x206854['y'];if(_0x50d9b6!==0x0&&_0x50d9b6!=null){let _0x86797f=_0x50d9b6*Math['PI']/0xb4,_0x303345=Math[_0x12393b(0xdd)](_0x86797f),_0x59943d=Math[_0x12393b(0x120)](_0x86797f),_0x5783b4=_0x80b08c/0x2,_0x4759f1=_0x1adb8a/0x2,_0x173c04=_0x3f2c2e-_0x5783b4,_0x294023=_0x48beb3-_0x4759f1;_0x3f2c2e=_0x5783b4+_0x173c04*_0x303345-_0x294023*_0x59943d,_0x48beb3=_0x4759f1+_0x173c04*_0x59943d+_0x294023*_0x303345;}_0x3f2c2e+=_0x2aceb0,_0x48beb3+=_0x50084d;let _0x3b75ad=_0x206854[_0x12393b(0xf7)]/0xea60;_0x2e8ac3&&(_0x3b75ad=0xb4-_0x3b75ad),_0x360a27&&(_0x3b75ad=-_0x3b75ad),_0x3b75ad+=_0x50d9b6||0x0,_0x3b75ad=(_0x3b75ad%0x168+0x168)%0x168;let _0x4ec920=_0x420ab7({'left':_0x2aceb0,'top':_0x50084d,'width':_0x80b08c,'height':_0x1adb8a},_0x50d9b6||0x0);return{'point':{'x':_0x3f2c2e,'y':_0x48beb3},'angle':_0x3b75ad,'bounds':_0x4ec920};}['_addLineRerouteUpdates'](_0x403e67,_0x40cac3,_0x6362ee,_0x313b43,_0x482791,_0x4b5d33,_0xb733e7,_0x5333d5,_0x95ff8,_0x398200){const _0x1e1be7=_0x26c497;let _0x55b90e=this[_0x1e1be7(0x158)][_0x1e1be7(0x146)](_0x403e67,_0x40cac3);if(!_0x55b90e)return;let _0x5b29e6=_0x313b43[_0x1e1be7(0xf9)](),_0xf315d3=_0x313b43[_0x1e1be7(0x166)](),_0x3577be={},_0x58af6e={};_0xf315d3[_0x1e1be7(0x13d)](_0x77d155=>{const _0x306965=_0x1e1be7;let _0x2c129d=_0x313b43[_0x306965(0xe6)](_0x77d155);_0x58af6e[_0x77d155]=_0x2c129d==null?0x0:_0x2c129d;});let _0x43ffe6=this[_0x1e1be7(0x122)](_0x482791,_0x403e67,_0x40cac3,_0x95ff8,_0x398200),_0x4f843d=this['_getConnectPointInfo'](_0x4b5d33,_0x403e67,_0x40cac3,_0x95ff8,_0x398200);if(_0x43ffe6&&_0x4f843d){let _0x5bd554=_0x313b43['getShapeType'](),_0x547284=_0x37d66d(_0x43ffe6,_0x4f843d,_0x5bd554),_0x3ac850=_0x5bd554;if(_0x547284){let _0xbf5c85=_0x1cd34f(_0x547284,_0x313b43[_0x1e1be7(0x163)]()),_0x5af0b0=this[_0x1e1be7(0x110)][_0x1e1be7(0x151)](_0x403e67,_0x40cac3);if(_0x5af0b0&&_0x5af0b0[_0x6362ee]){let _0x3cb2d6=_0x5af0b0[_0x6362ee];_0x3ac850=_0xbf5c85[_0x1e1be7(0x14d)];for(let [_0x5b26de,_0x1acc2d]of Object['entries'](_0xbf5c85[_0x1e1be7(0x155)]))_0x3577be[_0x5b26de]=_0x1acc2d;let _0x1dc12d={..._0x3cb2d6[_0x1e1be7(0x101)],'width':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x14e)],'height':_0xbf5c85['worldRect'][_0x1e1be7(0x111)],'left':_0xbf5c85['worldRect']['left'],'top':_0xbf5c85[_0x1e1be7(0xd7)]['top'],'flipX':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x16e)],'flipY':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x12a)],'angle':_0xbf5c85[_0x1e1be7(0x16d)]},_0x55d4b3=_0x4fa37c(_0x1dc12d,_0x55b90e),_0x547a1d=_0x13d14d(_0x1dc12d,_0x55b90e),_0x2ecd60={'unitId':_0x403e67,'subUnitId':_0x40cac3,'drawingType':_0x5e5e5b['DRAWING_SHAPE'],'drawingId':_0x6362ee,'transform':_0x1dc12d,'sheetTransform':_0x55d4b3,'axisAlignSheetTransform':_0x547a1d},{unitId:_0x59ab4f,subUnitId:_0x99015a,undo:_0x59ca85,redo:_0x2835ce,objects:_0x428207}=this['_drawingManagerService'][_0x1e1be7(0x142)]([_0x2ecd60]);_0xb733e7[_0x1e1be7(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x59ab4f,'subUnitId':_0x99015a,'op':_0x2835ce,'objects':_0x428207,'type':_0x5e6d34[_0x1e1be7(0xdf)]}}),_0x5333d5['push']({'id':_0x30ac56['id'],'params':{'unitId':_0x59ab4f,'subUnitId':_0x99015a,'op':_0x59ca85,'objects':_0x428207,'type':_0x5e6d34[_0x1e1be7(0xdf)]}});}_0x313b43[_0x1e1be7(0xe8)]();}_0xb733e7[_0x1e1be7(0x141)]({'id':Y['id'],'params':{'unitId':_0x403e67,'subUnitId':_0x40cac3,'shapeId':_0x6362ee,'shapeType':_0x3ac850,'shapeData':{'adjustValues':_0x3577be,'relation':_0x5b29e6}}}),_0x5333d5[_0x1e1be7(0x141)]({'id':Y['id'],'params':{'unitId':_0x403e67,'subUnitId':_0x40cac3,'shapeId':_0x6362ee,'shapeType':_0x5bd554,'shapeData':{'adjustValues':_0x58af6e,'relation':_0x5b29e6}}});}}[_0x26c497(0xf6)](_0x1d601f,_0x1bf784,_0x2be500,_0x3d9066,_0x14b46a,_0x28719d,_0x3b3625,_0xb88a29,_0x14c794,_0x1367a9){const _0x12ea58=_0x26c497;var _0xf850ad;if(!_0x14b46a)return;let _0x1d7e93=this[_0x12ea58(0x158)][_0x12ea58(0x146)](_0x1d601f,_0x1bf784);if(!_0x1d7e93)return;let _0x18ff2=(_0xf850ad=this[_0x12ea58(0x110)]['getDrawingByParam']({'unitId':_0x1d601f,'subUnitId':_0x1bf784,'drawingId':_0x14c794}))==null?void 0x0:_0xf850ad['transform'];if(!_0x18ff2)return;let _0x1815bb=_0x18ff2[_0x12ea58(0x16c)]!==_0x1367a9[_0x12ea58(0x16c)]||_0x18ff2['top']!==_0x1367a9['top'],_0x34d63e=_0x18ff2[_0x12ea58(0x14e)]!==_0x1367a9[_0x12ea58(0x14e)]||_0x18ff2[_0x12ea58(0x111)]!==_0x1367a9[_0x12ea58(0x111)],_0x30218d=_0x18ff2[_0x12ea58(0x16e)]!==_0x1367a9['flipX']||_0x18ff2[_0x12ea58(0x12a)]!==_0x1367a9[_0x12ea58(0x12a)],_0x6ba956=_0x18ff2['angle']!==_0x1367a9['angle'];if(_0x1815bb&&!_0x34d63e&&!_0x30218d&&!_0x6ba956){var _0x554153,_0x40a93c,_0x48beb6,_0x4909ae;let _0x534499=((_0x554153=_0x1367a9['left'])==null?0x0:_0x554153)-((_0x40a93c=_0x18ff2[_0x12ea58(0x16c)])==null?0x0:_0x40a93c),_0x489da8=((_0x48beb6=_0x1367a9['top'])==null?0x0:_0x48beb6)-((_0x4909ae=_0x18ff2[_0x12ea58(0x10d)])==null?0x0:_0x4909ae),_0x1fffdf=this['_drawingManagerService'][_0x12ea58(0x151)](_0x1d601f,_0x1bf784);if(_0x1fffdf&&_0x1fffdf[_0x2be500]){var _0x368761,_0x2723ca,_0x213a04,_0x353a23;let _0x3cb7fc=_0x1fffdf[_0x2be500],_0x5b684f={..._0x3cb7fc[_0x12ea58(0x101)],'left':((_0x368761=(_0x2723ca=_0x3cb7fc['transform'])==null?void 0x0:_0x2723ca[_0x12ea58(0x16c)])==null?0x0:_0x368761)+_0x534499,'top':((_0x213a04=(_0x353a23=_0x3cb7fc[_0x12ea58(0x101)])==null?void 0x0:_0x353a23['top'])==null?0x0:_0x213a04)+_0x489da8},_0x2bd77f=_0x4fa37c(_0x5b684f,_0x1d7e93),_0x5c8e5c=_0x13d14d(_0x5b684f,_0x1d7e93),_0x10f57e={'unitId':_0x1d601f,'subUnitId':_0x1bf784,'drawingType':_0x5e5e5b[_0x12ea58(0x130)],'drawingId':_0x2be500,'transform':_0x5b684f,'sheetTransform':_0x2bd77f,'axisAlignSheetTransform':_0x5c8e5c},{unitId:_0x2610a3,subUnitId:_0x626f3d,undo:_0xf7031,redo:_0x53a829,objects:_0xb37ad0}=this['_drawingManagerService'][_0x12ea58(0x142)]([_0x10f57e]);_0x3b3625[_0x12ea58(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x2610a3,'subUnitId':_0x626f3d,'op':_0x53a829,'objects':_0xb37ad0,'type':_0x5e6d34['UPDATE']}}),_0xb88a29[_0x12ea58(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x2610a3,'subUnitId':_0x626f3d,'op':_0xf7031,'objects':_0xb37ad0,'type':_0x5e6d34[_0x12ea58(0xdf)]}});}}else{let _0x3d29f2=_0x3d9066[_0x12ea58(0x132)](),_0x4fe8fc=_0x3d9066['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x1d601f,_0x1bf784,_0x2be500,_0x3d9066,_0x3d29f2,_0x4fe8fc,_0x3b3625,_0xb88a29,_0x14c794,_0x1367a9);}}};ce=W([U(0x0,_0x5b8310),U(0x1,_0x224b32(_0x499171)),U(0x2,_0x224b32(_0xf2e92a)),U(0x3,_0x224b32(G)),U(0x4,_0x224b32(_0x531999))],ce);let $=class extends _0x118c9a{constructor(_0x5befa8=se,_0x69ecc9,_0x491181,_0x376d6f){const _0x373219=_0x26c497;super(),this[_0x373219(0xd6)]=_0x5befa8,this['_injector']=_0x69ecc9,this[_0x373219(0x106)]=_0x491181,this[_0x373219(0xf4)]=_0x376d6f;let {..._0x2dabc6}=_0x410777({},se,this['_config']);this[_0x373219(0xf4)][_0x373219(0xe2)]('sheets-shape.config',_0x2dabc6);}['onStarting'](){const _0x2f1c91=_0x26c497;let _0x401031=this['_injector'];[[H],[G],[ce]][_0x2f1c91(0x13d)](_0x4dba78=>_0x401031['add'](_0x4dba78)),_0x41ed94(_0x401031,[[G],[ce]]);}};V($,_0x26c497(0xd9),_0xd9deb1['UNIVER_SHEET']),V($,'pluginName',_0x26c497(0x103)),V($,'packageName',ae),V($,'version',oe),$=W([_0x44491a(_0x1f94d7),U(0x1,_0x224b32(_0x5c089c)),U(0x2,_0x5b8310),U(0x3,_0x3ea937)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x1ff262=_0x2f7a;(function(_0x434bda,_0x128bbc){const _0x945b80=_0x2f7a,_0x167fef=_0x434bda();while(!![]){try{const _0x54cdbb=-parseInt(_0x945b80(0x18c))/0x1+-parseInt(_0x945b80(0x157))/0x2+-parseInt(_0x945b80(0x135))/0x3+parseInt(_0x945b80(0x143))/0x4*(parseInt(_0x945b80(0x163))/0x5)+-parseInt(_0x945b80(0x134))/0x6*(parseInt(_0x945b80(0x128))/0x7)+parseInt(_0x945b80(0x18e))/0x8+-parseInt(_0x945b80(0x183))/0x9*(-parseInt(_0x945b80(0x1b3))/0xa);if(_0x54cdbb===_0x128bbc)break;else _0x167fef['push'](_0x167fef['shift']());}catch(_0x46b457){_0x167fef['push'](_0x167fef['shift']());}}}(_0x1c55,0x85dc8));import{ShapeModel as _0x10e020,computeConnectorRouteLayout as _0x1adc9d,getBasicShapeRotateBound as _0x1f4faa,isConnectorShape as _0x1f3e71,routeConnectorLineShape as _0x5a3de9}from'@univerjs-pro/engine-shape';import{CommandType as _0x2c633d,DependentOn as _0x13d69f,Disposable as _0xa3f2a6,DrawingTypeEnum as _0x288fdc,ICommandService as _0x388fc8,IConfigService as _0x7b487e,IResourceManagerService as _0x52dffc,IUndoRedoService as _0x10fe4b,IUniverInstanceService as _0x5db55d,Inject as _0x2530fb,Injector as _0x2f815e,Plugin as _0x23871c,UniverInstanceType as _0x4f30e9,generateRandomId as _0x54de0f,merge as _0xab60b4,sequenceExecute as _0x343173,touchDependencies as _0x1d0968}from'@univerjs/core';import{SheetInterceptorService as _0x3d8139,SheetSkeletonService as _0x23ace4,getSheetCommandTarget as _0x3f54c4}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x42fba7,DrawingApplyType as _0x48390c,ISheetDrawingService as _0x400d26,InsertSheetDrawingCommand as _0x37d3fe,RemoveSheetDrawingCommand as _0x3596f8,SetDrawingApplyMutation as _0x4839e2,SetSheetDrawingCommand as _0x374047,transformToAxisAlignPosition as _0x241ebb,transformToDrawingPosition as _0x2d3afd}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x19cd3c}from'@univerjs-pro/license';import{IDrawingManagerService as _0x11e38f}from'@univerjs/drawing';const I=0xc8,L=0xc8;function _0x2f7a(_0x218299,_0x24416a){_0x218299=_0x218299-0x127;const _0x1c5533=_0x1c55();let _0x2f7aa3=_0x1c5533[_0x218299];return _0x2f7aa3;}function R(_0x3d68cb){'@babel/helpers - typeof';const _0x3ab0d7=_0x2f7a;return R=typeof Symbol==_0x3ab0d7(0x1aa)&&typeof Symbol[_0x3ab0d7(0x132)]==_0x3ab0d7(0x177)?function(_0x6c34cc){return typeof _0x6c34cc;}:function(_0x369691){const _0x3999d6=_0x3ab0d7;return _0x369691&&typeof Symbol==_0x3999d6(0x1aa)&&_0x369691['constructor']===Symbol&&_0x369691!==Symbol[_0x3999d6(0x1bd)]?_0x3999d6(0x177):typeof _0x369691;},R(_0x3d68cb);}function z(_0x1c9291,_0x1cfcb3){const _0x2a1dfe=_0x2f7a;if(R(_0x1c9291)!=_0x2a1dfe(0x16b)||!_0x1c9291)return _0x1c9291;var _0x347340=_0x1c9291[Symbol[_0x2a1dfe(0x196)]];if(_0x347340!==void 0x0){var _0x29851d=_0x347340['call'](_0x1c9291,_0x1cfcb3||_0x2a1dfe(0x13a));if(R(_0x29851d)!=_0x2a1dfe(0x16b))return _0x29851d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1cfcb3==='string'?String:Number)(_0x1c9291);}function B(_0x1c77eb){const _0x5d94f8=_0x2f7a;var _0x10d5e0=z(_0x1c77eb,'string');return R(_0x10d5e0)==_0x5d94f8(0x177)?_0x10d5e0:_0x10d5e0+'';}function V(_0x11eef5,_0x16731d,_0x9f62b){return(_0x16731d=B(_0x16731d))in _0x11eef5?Object['defineProperty'](_0x11eef5,_0x16731d,{'value':_0x9f62b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11eef5[_0x16731d]=_0x9f62b,_0x11eef5;}var H=class extends _0xa3f2a6{constructor(){const _0x5b6100=_0x2f7a;super(),V(this,_0x5b6100(0x1be),new Map()),V(this,_0x5b6100(0x156),new Set()),V(this,_0x5b6100(0x142),new Set());}['addShape'](_0x23e146,_0x104c50,_0x2740a0){const _0x1d8d35=_0x2f7a;let _0x284ef2=new _0x10e020(_0x23e146,_0x104c50,_0x2740a0);return this[_0x1d8d35(0x1be)][_0x1d8d35(0x1b1)](_0x104c50,_0x284ef2),_0x1f3e71(_0x23e146)&&this['_linesIds'][_0x1d8d35(0x166)](_0x104c50),_0x284ef2;}[_0x1ff262(0x167)](_0x37c22a){const _0x18efe9=_0x1ff262;let _0x14d326=[];for(let _0x37e1f2 of this[_0x18efe9(0x156)]){let _0x32ca3d=this[_0x18efe9(0x1be)][_0x18efe9(0x1a9)](_0x37e1f2);if(_0x32ca3d){let _0x18fb1d=_0x32ca3d['getShapeRelation']();if(_0x18fb1d){var _0x18c8a4,_0x5d6de5;((_0x18c8a4=_0x18fb1d['from'])==null?void 0x0:_0x18c8a4['shapeId'])===_0x37c22a&&_0x14d326[_0x18efe9(0x14c)]({..._0x18fb1d[_0x18efe9(0x158)],'lineShapeId':_0x37e1f2,'isFrom':!0x0}),((_0x5d6de5=_0x18fb1d['to'])==null?void 0x0:_0x5d6de5[_0x18efe9(0x1a5)])===_0x37c22a&&_0x14d326[_0x18efe9(0x14c)]({..._0x18fb1d['to'],'lineShapeId':_0x37e1f2,'isFrom':!0x1});}}}return _0x14d326;}['getLineShapeRelation'](_0x3b80e0){const _0x231285=_0x1ff262;let _0x5b3b9c=this[_0x231285(0x1be)][_0x231285(0x1a9)](_0x3b80e0);if(_0x5b3b9c)return _0x5b3b9c[_0x231285(0x175)]();}[_0x1ff262(0x17c)](_0x46742c){const _0x1e0f6d=_0x1ff262;let _0x5b3c9f=this[_0x1e0f6d(0x1be)][_0x1e0f6d(0x1a9)](_0x46742c);if(_0x5b3c9f)return _0x5b3c9f[_0x1e0f6d(0x17c)]();}[_0x1ff262(0x1ba)](_0x3077b9){const _0x465946=_0x1ff262;return this['_shapes'][_0x465946(0x152)](_0x3077b9);}[_0x1ff262(0x15c)](_0x521dd0){const _0x310fb0=_0x1ff262;let _0x9f2c10=this[_0x310fb0(0x1be)]['get'](_0x521dd0);_0x9f2c10&&(_0x1f3e71(_0x9f2c10[_0x310fb0(0x17c)]())&&this['_linesIds'][_0x310fb0(0x18f)](_0x521dd0),this[_0x310fb0(0x1be)][_0x310fb0(0x18f)](_0x521dd0));}[_0x1ff262(0x178)](){const _0x3c43ea=_0x1ff262;let _0x38278e=[];return this[_0x3c43ea(0x1be)][_0x3c43ea(0x19b)](_0x266e91=>{const _0x5e18bf=_0x3c43ea;_0x38278e['push'](_0x266e91[_0x5e18bf(0x178)]());}),_0x38278e;}['fromJSON'](_0x259c42){const _0x3704bb=_0x1ff262;for(let _0x5beb65 of _0x259c42){let {id:_0x186d60,shapeType:_0x27612f}=_0x5beb65,_0x24470e=this[_0x3704bb(0x140)](_0x27612f,_0x186d60,_0x5beb65['shapeData']);_0x24470e&&_0x24470e[_0x3704bb(0x185)]()&&this[_0x3704bb(0x156)]['add'](_0x186d60);}}[_0x1ff262(0x19a)](){const _0x5e84db=_0x1ff262;this[_0x5e84db(0x14e)]||(this[_0x5e84db(0x1be)][_0x5e84db(0x19b)](_0x1b3231=>{_0x1b3231['dispose']();}),this[_0x5e84db(0x1be)][_0x5e84db(0x18b)](),this['_linesIds'][_0x5e84db(0x18b)](),this[_0x5e84db(0x142)][_0x5e84db(0x18b)](),super[_0x5e84db(0x19a)]());}};function U(_0x228ba1,_0xdef334){return function(_0xa5dd49,_0x55b876){_0xdef334(_0xa5dd49,_0x55b876,_0x228ba1);};}function W(_0x96f6ae,_0xd279db,_0x5aa7d,_0x3a9bd6){const _0x3ca654=_0x1ff262;var _0x29cc32=arguments['length'],_0x185112=_0x29cc32<0x3?_0xd279db:_0x3a9bd6===null?_0x3a9bd6=Object[_0x3ca654(0x19e)](_0xd279db,_0x5aa7d):_0x3a9bd6,_0x417d6f;if(typeof Reflect==_0x3ca654(0x16b)&&typeof Reflect['decorate']==_0x3ca654(0x1aa))_0x185112=Reflect['decorate'](_0x96f6ae,_0xd279db,_0x5aa7d,_0x3a9bd6);else{for(var _0x27a9d5=_0x96f6ae[_0x3ca654(0x181)]-0x1;_0x27a9d5>=0x0;_0x27a9d5--)(_0x417d6f=_0x96f6ae[_0x27a9d5])&&(_0x185112=(_0x29cc32<0x3?_0x417d6f(_0x185112):_0x29cc32>0x3?_0x417d6f(_0xd279db,_0x5aa7d,_0x185112):_0x417d6f(_0xd279db,_0x5aa7d))||_0x185112);}return _0x29cc32>0x3&&_0x185112&&Object[_0x3ca654(0x17d)](_0xd279db,_0x5aa7d,_0x185112),_0x185112;}let G=class extends _0xa3f2a6{constructor(_0x8039ce){const _0x357258=_0x1ff262;super(),this[_0x357258(0x161)]=_0x8039ce,V(this,'_shapeModelManagerMap',new Map()),this[_0x357258(0x186)]();}['_ensureShapeModelManager'](_0x14aad4,_0x22c037){const _0x56ab91=_0x1ff262;let _0x1ca3a6=this[_0x56ab91(0x1ab)]['get'](_0x14aad4);_0x1ca3a6||(_0x1ca3a6=new Map(),this['_shapeModelManagerMap']['set'](_0x14aad4,_0x1ca3a6));let _0x39cc88=_0x1ca3a6[_0x56ab91(0x1a9)](_0x22c037);return _0x39cc88||(_0x39cc88=new H(),_0x1ca3a6[_0x56ab91(0x1b1)](_0x22c037,_0x39cc88)),_0x39cc88;}[_0x1ff262(0x12f)](_0x168767,_0x429db2,_0x21dd5f,_0x521c90,_0x52547e){const _0x2466ce=_0x1ff262;this[_0x2466ce(0x1b0)](_0x168767,_0x429db2)[_0x2466ce(0x140)](_0x21dd5f,_0x521c90,_0x52547e);}[_0x1ff262(0x15c)](_0x46e87d,_0x44f647,_0x47ea46){const _0x126f95=_0x1ff262;this[_0x126f95(0x1b0)](_0x46e87d,_0x44f647)['removeShape'](_0x47ea46);}[_0x1ff262(0x168)](_0x821a11,_0xffc9fc,_0x4da96e){const _0x2e10a3=_0x1ff262;return this[_0x2e10a3(0x1b0)](_0x821a11,_0xffc9fc)[_0x2e10a3(0x17c)](_0x4da96e);}[_0x1ff262(0x17c)](_0x545671,_0x4c6ed8,_0x220003){const _0x38e96e=_0x1ff262;return this[_0x38e96e(0x1b0)](_0x545671,_0x4c6ed8)[_0x38e96e(0x17c)](_0x220003);}[_0x1ff262(0x1ba)](_0x5926cb,_0x5bd539,_0x765b41){const _0x5d6d60=_0x1ff262;return this[_0x5d6d60(0x1b0)](_0x5926cb,_0x5bd539)['hasShape'](_0x765b41);}['getShapeTypeById'](_0x3e1ae0,_0x35c445,_0x103c64){const _0x2d631c=_0x1ff262;return this[_0x2d631c(0x1b0)](_0x3e1ae0,_0x35c445)[_0x2d631c(0x17c)](_0x103c64);}[_0x1ff262(0x179)](_0x48eb00,_0x32fe80,_0x4c129e){const _0x37d3ed=_0x1ff262;let _0x26bf4d=this['_ensureShapeModelManager'](_0x48eb00,_0x32fe80);if(!_0x26bf4d[_0x37d3ed(0x17c)](_0x4c129e))return;let _0x3e883e=_0x26bf4d[_0x37d3ed(0x1be)][_0x37d3ed(0x1a9)](_0x4c129e);if(_0x3e883e)return _0x3e883e[_0x37d3ed(0x184)]();}[_0x1ff262(0x1c0)](_0x34d2c1,_0x324462,_0x25c215){const _0x4381f=_0x1ff262;return this[_0x4381f(0x1b0)](_0x34d2c1,_0x324462)[_0x4381f(0x1be)][_0x4381f(0x1a9)](_0x25c215);}[_0x1ff262(0x167)](_0x546b04,_0x38b47d,_0x2da365){const _0x4a01ac=_0x1ff262;return this['_ensureShapeModelManager'](_0x546b04,_0x38b47d)[_0x4a01ac(0x167)](_0x2da365);}[_0x1ff262(0x172)](_0x18ee91,_0xba5999,_0x1c6b8a){const _0x15a208=_0x1ff262;let _0x413f42=this[_0x15a208(0x1b0)](_0x18ee91,_0xba5999)['_shapes'][_0x15a208(0x1a9)](_0x1c6b8a);if(_0x413f42)return _0x413f42[_0x15a208(0x175)]();}[_0x1ff262(0x1b4)](){}[_0x1ff262(0x1bc)](_0x1e5057){const _0x3068a9=_0x1ff262;let _0x2149c2={},_0x315e00=this[_0x3068a9(0x1ab)]['get'](_0x1e5057);return _0x315e00&&_0x315e00['forEach']((_0x1e9523,_0x15b13d)=>{let _0x2ad5b5=_0x1e9523['toJSON']();_0x2ad5b5['length']>0x0&&(_0x2149c2[_0x15b13d]=_0x2ad5b5);}),JSON[_0x3068a9(0x1bb)](_0x2149c2);}[_0x1ff262(0x151)](_0x3cf70c,_0x267665){const _0x196a5c=_0x1ff262;Object[_0x196a5c(0x16c)](_0x267665)[_0x196a5c(0x19b)](_0x159c62=>{const _0x496033=_0x196a5c;this[_0x496033(0x1b0)](_0x3cf70c,_0x159c62)[_0x496033(0x14a)](_0x267665[_0x159c62]);});}[_0x1ff262(0x178)](){const _0x2eb3f1=_0x1ff262;let _0x28b3c8={};return this[_0x2eb3f1(0x1ab)][_0x2eb3f1(0x19b)]((_0x416a9c,_0x5ba671)=>{const _0x4ac5ef=_0x2eb3f1;_0x28b3c8[_0x5ba671]={},_0x416a9c[_0x4ac5ef(0x19b)]((_0x60425f,_0x4c8191)=>{_0x28b3c8[_0x5ba671][_0x4c8191]=_0x60425f['toJSON']();});}),_0x28b3c8;}[_0x1ff262(0x14a)](_0xc4808c){const _0x3c4e72=_0x1ff262;Object[_0x3c4e72(0x16c)](_0xc4808c)['forEach'](_0x41d487=>{const _0x3bf021=_0x3c4e72;let _0x1cf91a=_0xc4808c[_0x41d487];Object['keys'](_0x1cf91a)[_0x3bf021(0x19b)](_0x4608f9=>{const _0x415332=_0x3bf021;this[_0x415332(0x1b0)](_0x41d487,_0x4608f9)[_0x415332(0x14a)](_0x1cf91a[_0x4608f9]);});});}['_initSnapshot'](){const _0x5ebd40=_0x1ff262;this[_0x5ebd40(0x161)][_0x5ebd40(0x129)]({'pluginName':_0x5ebd40(0x19c),'businesses':[_0x4f30e9['UNIVER_SHEET']],'toJson':_0x59905f=>this[_0x5ebd40(0x1bc)](_0x59905f),'parseJson':_0x1be21a=>JSON[_0x5ebd40(0x154)](_0x1be21a),'onLoad':(_0x180a4e,_0x946837)=>{const _0x2abde1=_0x5ebd40;this[_0x2abde1(0x151)](_0x180a4e,_0x946837);},'onUnLoad':_0x2bed32=>{const _0x577641=_0x5ebd40;let _0x573af5=this[_0x577641(0x1ab)][_0x577641(0x1a9)](_0x2bed32);_0x573af5&&(_0x573af5[_0x577641(0x19b)](_0x411a43=>{const _0x5a5d1e=_0x577641;_0x411a43[_0x5a5d1e(0x19a)]();}),this[_0x577641(0x1ab)][_0x577641(0x18f)](_0x2bed32));}});}['dispose'](){const _0x3cd44d=_0x1ff262;this['_shapeModelManagerMap'][_0x3cd44d(0x19b)](_0x53825c=>{const _0x3b052d=_0x3cd44d;_0x53825c[_0x3b052d(0x19b)](_0x3ea921=>{const _0x2844ff=_0x3b052d;_0x3ea921[_0x2844ff(0x19a)]();});});}};G=W([U(0x0,_0x52dffc)],G);const K={'id':_0x1ff262(0x15a),'type':_0x2c633d['MUTATION'],'handler':(_0x4f9f6e,_0x2818ce)=>{const _0x5ae4ca=_0x1ff262;let {unitId:_0x1a8480,subUnitId:_0x9e629c,shapeType:_0x3d26bc,shapeId:_0x14b967,shapeData:_0x5725a0}=_0x2818ce;return _0x4f9f6e[_0x5ae4ca(0x1a9)](G)[_0x5ae4ca(0x12f)](_0x1a8480,_0x9e629c,_0x3d26bc,_0x14b967,_0x5725a0),!0x0;}},q={'id':_0x1ff262(0x160),'type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x26cf4d,_0x76c8)=>{const _0x428f20=_0x1ff262;let {unitId:_0x4b2687,subUnitId:_0x248336,shapeId:_0x272b50}=_0x76c8;return _0x26cf4d[_0x428f20(0x1a9)](G)['removeShape'](_0x4b2687,_0x248336,_0x272b50),!0x0;}},J={'type':_0x2c633d['COMMAND'],'id':_0x1ff262(0x138),'handler':(_0x2ecbd0,_0x4666ef)=>{const _0x48b4b9=_0x1ff262;var _0x70067f,_0x1ddbf2;let _0x4cf803=_0x3f54c4(_0x2ecbd0['get'](_0x5db55d),_0x4666ef);if(!_0x4cf803)return!0x1;let _0x5a6390=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x23ace4),{unitId:_0x182848,subUnitId:_0x2b713b}=_0x4cf803,_0x29bffd=_0x5a6390[_0x48b4b9(0x17a)](_0x182848,_0x2b713b);if(!_0x29bffd)return!0x1;let _0x417e9a=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x388fc8),_0x3c6133=_0x2ecbd0['get'](_0x10fe4b),_0x46bba9=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x3d8139),_0x136a15=_0x2ecbd0['get'](_0x400d26),{shapeType:_0x3c8d78,shapeData:_0x10ef1a}=_0x4666ef,_0x1aeacc=_0x4666ef[_0x48b4b9(0x1a5)]||_0x54de0f(),_0x5e9b7a={'unitId':_0x182848,'subUnitId':_0x2b713b,'shapeId':_0x1aeacc,'shapeType':_0x3c8d78,'shapeData':_0x10ef1a},_0x44a3e8=_0x4666ef[_0x48b4b9(0x1b8)]||0xc8,_0xa485=_0x4666ef['height']||0xc8,_0x5ec82b=0x0,_0x289439=0x0,_0x549aca={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x4fed08={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x4666ef[_0x48b4b9(0x1a0)]){let {x:_0xc3f091,y:_0x4146a6}=_0x4666ef['position'];_0x5ec82b=_0xc3f091,_0x289439=_0x4146a6,_0x549aca=_0x29bffd[_0x48b4b9(0x14d)](_0xc3f091,_0x4146a6),_0x4fed08=_0x29bffd[_0x48b4b9(0x14d)](_0xc3f091+_0x44a3e8,_0x4146a6+_0xa485);}else{if(_0x4666ef['range']){let {startRow:_0xedfcdd,startColumn:_0x276757}=_0x4666ef['range'];_0x549aca={'row':_0xedfcdd,'rowOffset':0xa,'column':_0x276757,'columnOffset':0xa};let _0x1a7063=_0x29bffd[_0x48b4b9(0x15e)](_0xedfcdd,_0x276757);_0x5ec82b=_0x1a7063[_0x48b4b9(0x17e)]+0xa,_0x289439=_0x1a7063[_0x48b4b9(0x192)]+0xa,_0x4fed08=_0x29bffd[_0x48b4b9(0x14d)](_0x5ec82b+_0x44a3e8,_0x289439+_0xa485);}}let _0x3aa830={'from':_0x549aca,'to':_0x4fed08},_0x1495bb={'unitId':_0x182848,'subUnitId':_0x2b713b,'drawingId':_0x1aeacc,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x3aa830,'transform':{'left':_0x5ec82b,'top':_0x289439,'width':_0x44a3e8,'height':_0xa485},'data':{'shapeType':_0x3c8d78,'shapeData':_0x10ef1a},'axisAlignSheetTransform':_0x3aa830,'allowTransform':!0x0};_0x1f3e71(_0x3c8d78)&&(_0x1495bb[_0x48b4b9(0x15f)]['fill']=!0x1,_0x1495bb[_0x48b4b9(0x15f)]['rotateEnabled']=!0x1,_0x1495bb[_0x48b4b9(0x15f)][_0x48b4b9(0x190)]=!0x1,_0x1495bb[_0x48b4b9(0x15f)][_0x48b4b9(0x17f)]=!0x1,_0x1495bb['transform'][_0x48b4b9(0x1ad)]=!0x1,_0x1495bb[_0x48b4b9(0x195)][_0x48b4b9(0x190)]=!0x1,_0x1495bb['transform'][_0x48b4b9(0x17f)]=!0x1);let {undo:_0x4e9d66,redo:_0x5cfa5d,objects:_0x2ae82b}=_0x136a15[_0x48b4b9(0x18d)]([_0x1495bb]),_0x178a68=_0x46bba9['onCommandExecute']({'id':_0x37d3fe['id'],'params':{'unitId':_0x182848,'drawings':[_0x1495bb]}}),_0x25d549=[...(_0x70067f=_0x178a68[_0x48b4b9(0x16f)])==null?[]:_0x70067f,{'id':_0x4839e2['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'op':_0x5cfa5d,'objects':_0x2ae82b,'type':_0x48390c[_0x48b4b9(0x1c1)]}},{'id':_0x42fba7['id'],'params':[_0x182848]},..._0x178a68[_0x48b4b9(0x1a1)],{'id':K['id'],'params':_0x5e9b7a}],_0x49da88=[{'id':q['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'shapeId':_0x1aeacc}},...(_0x1ddbf2=_0x178a68[_0x48b4b9(0x12c)])==null?[]:_0x1ddbf2,{'id':_0x4839e2['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'op':_0x4e9d66,'objects':_0x2ae82b,'type':_0x48390c[_0x48b4b9(0x150)]}},{'id':_0x42fba7['id'],'params':[_0x182848]},..._0x178a68[_0x48b4b9(0x144)]];return _0x343173(_0x25d549,_0x417e9a)['result']?(_0x3c6133[_0x48b4b9(0x13f)]({'unitID':_0x182848,'undoMutations':_0x49da88,'redoMutations':_0x25d549}),!0x0):!0x1;}},Y={'id':'sheet.mutation.update-shape-data','type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x4c26f3,_0x2fc0ca)=>{const _0x7b4584=_0x1ff262;let {unitId:_0x16e48d,subUnitId:_0x2bf1d9,shapeType:_0x5f1225,shapeId:_0x4658d0,shapeData:_0x4af52a}=_0x2fc0ca,_0x4af541=_0x4c26f3[_0x7b4584(0x1a9)](G)[_0x7b4584(0x1c0)](_0x16e48d,_0x2bf1d9,_0x4658d0);return _0x4af541&&(_0x5f1225!==void 0x0&&_0x4af541['setShapeType'](_0x5f1225),_0x4af52a&&(_0x4af541==null||_0x4af541[_0x7b4584(0x13b)](_0x4af52a,!0x0))),!0x0;}},ee={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x12d),'handler':(_0x520306,_0x4d012e)=>{const _0xc37b3f=_0x1ff262;var _0x38de94,_0x473e7e;let _0x27aadd=_0x3f54c4(_0x520306[_0xc37b3f(0x1a9)](_0x5db55d),_0x4d012e);if(!_0x27aadd)return!0x1;let _0x4f96e1=_0x520306[_0xc37b3f(0x1a9)](_0x23ace4),{unitId:_0x1ec063,subUnitId:_0x5a85bc}=_0x27aadd,_0x285901=_0x4f96e1[_0xc37b3f(0x17a)](_0x1ec063,_0x5a85bc);if(!_0x285901)return!0x1;let _0x4ca262=_0x520306[_0xc37b3f(0x1a9)](G),{shapeId:_0x53ca10,shapeType:_0x360afd,shapeData:_0x57a1ae,position:_0x321415,width:_0x15bfaf,height:_0x56980e}=_0x4d012e,_0x3f9967=_0x4ca262['getShapeModel'](_0x1ec063,_0x5a85bc,_0x53ca10);if(!_0x3f9967)return!0x1;let _0x431044=_0x520306[_0xc37b3f(0x1a9)](_0x388fc8),_0x2f5c7b=_0x520306[_0xc37b3f(0x1a9)](_0x10fe4b),_0x620cee=_0x520306[_0xc37b3f(0x1a9)](_0x3d8139),_0x2e1940=_0x520306['get'](_0x400d26),_0xd33f58={'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'shapeId':_0x53ca10,'shapeType':_0x360afd,'shapeData':_0x57a1ae},_0x2d907b=_0x3f9967['getShapeType'](),_0x126fa2=_0x3f9967['getShapeData'](),{x:_0x17303c,y:_0x475153}=_0x321415,_0xf893f3={'from':_0x285901['getCellIndexAndOffsetByPosition'](_0x17303c,_0x475153),'to':_0x285901[_0xc37b3f(0x14d)](_0x17303c+_0x15bfaf,_0x475153+_0x56980e)},_0x4e1fae={'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'drawingId':_0x53ca10,'drawingType':_0x288fdc[_0xc37b3f(0x15b)],'sheetTransform':_0xf893f3,'transform':{'left':_0x17303c,'top':_0x475153,'width':_0x15bfaf,'height':_0x56980e},'data':{'shapeType':_0x360afd,'shapeData':_0x57a1ae},'axisAlignSheetTransform':_0xf893f3,'allowTransform':!0x0};_0x1f3e71(_0x360afd)&&(_0x4e1fae[_0xc37b3f(0x15f)][_0xc37b3f(0x141)]=!0x1,_0x4e1fae['data']['rotateEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x15f)][_0xc37b3f(0x190)]=!0x1,_0x4e1fae[_0xc37b3f(0x15f)]['borderEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x195)][_0xc37b3f(0x1ad)]=!0x1,_0x4e1fae[_0xc37b3f(0x195)]['resizeEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x195)][_0xc37b3f(0x17f)]=!0x1);let {undo:_0x17babd,redo:_0x2f3774,objects:_0x57540c}=_0x2e1940[_0xc37b3f(0x12e)]([_0x4e1fae]),_0x21f8ed=_0x620cee[_0xc37b3f(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x1ec063,'drawings':[_0x4e1fae]}}),_0x5ea5af=[...(_0x38de94=_0x21f8ed[_0xc37b3f(0x16f)])==null?[]:_0x38de94,{'id':_0x4839e2['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'op':_0x2f3774,'objects':_0x57540c,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x1ec063]},..._0x21f8ed[_0xc37b3f(0x1a1)],{'id':Y['id'],'params':_0xd33f58}],_0x15d1eb=[...(_0x473e7e=_0x21f8ed[_0xc37b3f(0x12c)])==null?[]:_0x473e7e,{'id':_0x4839e2['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'op':_0x17babd,'objects':_0x57540c,'type':_0x48390c[_0xc37b3f(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x1ec063]},..._0x21f8ed[_0xc37b3f(0x144)],{'id':Y['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'shapeType':_0x2d907b,'shapeId':_0x53ca10,'shapeData':_0x126fa2}}];return _0x343173(_0x5ea5af,_0x431044)[_0xc37b3f(0x194)]?(_0x2f5c7b[_0xc37b3f(0x13f)]({'unitID':_0x1ec063,'undoMutations':_0x15d1eb,'redoMutations':_0x5ea5af}),!0x0):!0x1;}},te={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x12b),'handler':(_0x2f382a,_0x434dfb)=>{const _0x318400=_0x1ff262;var _0x19d451,_0x5485f0;let _0x460ad3=_0x3f54c4(_0x2f382a[_0x318400(0x1a9)](_0x5db55d),_0x434dfb);if(!_0x460ad3)return!0x1;let _0x28d90d=_0x2f382a[_0x318400(0x1a9)](_0x23ace4),{unitId:_0x37d3d0,subUnitId:_0x4fddd4}=_0x460ad3,_0x4f731c=_0x28d90d['getSkeleton'](_0x37d3d0,_0x4fddd4);if(!_0x4f731c)return!0x1;let _0xb2c2c3=_0x2f382a[_0x318400(0x1a9)](_0x400d26),{shapeId:_0xdec124,flipH:_0x38a65e,flipV:_0x38f6ab}=_0x434dfb,_0x60ea10=_0xb2c2c3['getDrawingByParam']({'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'drawingId':_0xdec124});if(!_0x60ea10)return!0x1;let _0x3fbea3=_0x2f382a[_0x318400(0x1a9)](G)[_0x318400(0x1c0)](_0x37d3d0,_0x4fddd4,_0xdec124);if(!_0x3fbea3)return!0x1;let _0x465eb6=_0x2f382a[_0x318400(0x1a9)](_0x388fc8),_0x2ad08e=_0x2f382a[_0x318400(0x1a9)](_0x10fe4b),_0x40f824=_0x2f382a[_0x318400(0x1a9)](_0x3d8139),_0x186fc0={..._0x60ea10[_0x318400(0x195)]};_0x38a65e!==void 0x0&&(_0x186fc0[_0x318400(0x1b6)]=!_0x186fc0[_0x318400(0x1b6)]),_0x38f6ab!==void 0x0&&(_0x186fc0['flipY']=!_0x186fc0['flipY']);let _0x76b4a2=_0x2d3afd(_0x186fc0,_0x4f731c),_0x2fe17e=_0x241ebb(_0x186fc0,_0x4f731c),_0x5a171d=_0x3fbea3[_0x318400(0x17c)](),_0x4546c2=_0x3fbea3[_0x318400(0x184)](),_0x17e908={'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'drawingId':_0xdec124,'drawingType':_0x288fdc[_0x318400(0x15b)],'sheetTransform':_0x76b4a2,'transform':_0x186fc0,'data':{'shapeType':_0x5a171d,'shapeData':_0x4546c2},'axisAlignSheetTransform':_0x2fe17e,'allowTransform':!0x0},{undo:_0x2787bf,redo:_0x31d916,objects:_0x217953}=_0xb2c2c3[_0x318400(0x12e)]([_0x17e908]),_0xb98552=_0x40f824['onCommandExecute']({'id':_0x374047['id'],'params':{'unitId':_0x37d3d0,'drawings':[_0x17e908]}}),_0x43afa9=[...(_0x19d451=_0xb98552['preRedos'])==null?[]:_0x19d451,{'id':_0x4839e2['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'op':_0x31d916,'objects':_0x217953,'type':_0x48390c[_0x318400(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x37d3d0]},..._0xb98552['redos']],_0x425d46=[...(_0x5485f0=_0xb98552[_0x318400(0x12c)])==null?[]:_0x5485f0,{'id':_0x4839e2['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'op':_0x2787bf,'objects':_0x217953,'type':_0x48390c[_0x318400(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x37d3d0]},..._0xb98552[_0x318400(0x144)]];if(_0x1f3e71(_0x5a171d)){let _0x3ff7cb=_0x3fbea3[_0x318400(0x175)]();if(_0x3ff7cb){let _0x11088d={..._0x3ff7cb};_0x11088d['from']=void 0x0,_0x11088d['to']=void 0x0,_0x43afa9[_0x318400(0x14c)]({'id':Y['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'shapeId':_0xdec124,'shapeType':_0x5a171d,'shapeData':{'relation':_0x11088d}}}),_0x425d46[_0x318400(0x14c)]({'id':Y['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'shapeId':_0xdec124,'shapeType':_0x5a171d,'shapeData':{'relation':_0x3ff7cb}}});}}return _0x343173(_0x43afa9,_0x465eb6)['result']?(_0x2ad08e[_0x318400(0x13f)]({'unitID':_0x37d3d0,'undoMutations':_0x425d46,'redoMutations':_0x43afa9}),!0x0):!0x1;}},X={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x173),'handler':(_0x4e1b18,_0x29e52c)=>{const _0x19ac0e=_0x1ff262;var _0x18df51,_0x306ea9;let _0x2e3e0f=_0x3f54c4(_0x4e1b18[_0x19ac0e(0x1a9)](_0x5db55d),_0x29e52c);if(!_0x2e3e0f)return!0x1;let _0x3421a0=_0x4e1b18['get'](_0x23ace4),{unitId:_0x322404,subUnitId:_0x47f153}=_0x2e3e0f,_0x2e5f4a=_0x3421a0[_0x19ac0e(0x13d)](_0x322404,_0x47f153);if(!_0x2e5f4a)return!0x1;let _0x308c66=_0x4e1b18[_0x19ac0e(0x1a9)](_0x400d26),{shapeId:_0x343ecd,rotate:_0x2bccd}=_0x29e52c,_0x57cde0=_0x308c66[_0x19ac0e(0x1a2)]({'unitId':_0x322404,'subUnitId':_0x47f153,'drawingId':_0x343ecd});if(!_0x57cde0)return!0x1;let _0x5ba516=_0x4e1b18[_0x19ac0e(0x1a9)](G)[_0x19ac0e(0x1c0)](_0x322404,_0x47f153,_0x343ecd);if(!_0x5ba516)return!0x1;let _0x564496=_0x4e1b18[_0x19ac0e(0x1a9)](_0x388fc8),_0x101f74=_0x4e1b18[_0x19ac0e(0x1a9)](_0x10fe4b),_0x42aac8=_0x4e1b18[_0x19ac0e(0x1a9)](_0x3d8139),_0x2eb16c={..._0x57cde0['transform']};_0x2bccd!==void 0x0&&(_0x2eb16c[_0x19ac0e(0x146)]=(_0x2eb16c['angle']||0x0)+_0x2bccd);let _0x3d95d3=_0x2d3afd(_0x2eb16c,_0x2e5f4a),_0x19eb4f=_0x241ebb(_0x2eb16c,_0x2e5f4a),_0x335d6f=_0x5ba516[_0x19ac0e(0x17c)](),_0x33eac3=_0x5ba516['getShapeData'](),_0x1a6876={'unitId':_0x322404,'subUnitId':_0x47f153,'drawingId':_0x343ecd,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x3d95d3,'transform':_0x2eb16c,'data':{'shapeType':_0x335d6f,'shapeData':_0x33eac3},'axisAlignSheetTransform':_0x19eb4f,'allowTransform':!0x0},{undo:_0x24dfbd,redo:_0x314cb2,objects:_0x2940f9}=_0x308c66['getBatchUpdateOp']([_0x1a6876]),_0x3e95da=_0x42aac8['onCommandExecute']({'id':_0x374047['id'],'params':{'unitId':_0x322404,'drawings':[_0x1a6876]}}),_0x5a0dca=[...(_0x18df51=_0x3e95da[_0x19ac0e(0x16f)])==null?[]:_0x18df51,{'id':_0x4839e2['id'],'params':{'unitId':_0x322404,'subUnitId':_0x47f153,'op':_0x314cb2,'objects':_0x2940f9,'type':_0x48390c[_0x19ac0e(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x322404]},..._0x3e95da[_0x19ac0e(0x1a1)]],_0x489d74=[...(_0x306ea9=_0x3e95da[_0x19ac0e(0x12c)])==null?[]:_0x306ea9,{'id':_0x4839e2['id'],'params':{'unitId':_0x322404,'subUnitId':_0x47f153,'op':_0x24dfbd,'objects':_0x2940f9,'type':_0x48390c[_0x19ac0e(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x322404]},..._0x3e95da[_0x19ac0e(0x144)]];return _0x343173(_0x5a0dca,_0x564496)['result']?(_0x101f74[_0x19ac0e(0x13f)]({'unitID':_0x322404,'undoMutations':_0x489d74,'redoMutations':_0x5a0dca}),!0x0):!0x1;}},Z={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x147),'handler':(_0x16574c,_0x254e42)=>{const _0x187fdb=_0x1ff262;var _0x4a61bf;let _0x68af8c=_0x3f54c4(_0x16574c[_0x187fdb(0x1a9)](_0x5db55d),_0x254e42);if(!_0x68af8c)return!0x1;let {unitId:_0x3d4c6d,subUnitId:_0x3534f3}=_0x68af8c,{shapeId:_0x15d9ef}=_0x254e42,_0x12f4df=_0x16574c[_0x187fdb(0x1a9)](G)[_0x187fdb(0x1c0)](_0x3d4c6d,_0x3534f3,_0x15d9ef);if(!_0x12f4df)return!0x1;let _0x34f24e=_0x12f4df[_0x187fdb(0x1b2)](),_0x35d0a1=(_0x4a61bf=_0x34f24e==null?void 0x0:_0x34f24e[_0x187fdb(0x171)])==null?!0x0:_0x4a61bf,_0x1556ce=!_0x35d0a1,_0x4f715b=_0x16574c[_0x187fdb(0x1a9)](_0x388fc8),_0x1d95f9=_0x16574c['get'](_0x10fe4b),_0x9c5cd3={'unitId':_0x3d4c6d,'subUnitId':_0x3534f3,'shapeId':_0x15d9ef,'shapeData':{'shapeText':{'isHorizontal':_0x1556ce}}},_0x848c42={'unitId':_0x3d4c6d,'subUnitId':_0x3534f3,'shapeId':_0x15d9ef,'shapeData':{'shapeText':{'isHorizontal':_0x35d0a1}}},_0x389521=[{'id':Y['id'],'params':_0x9c5cd3}],_0x279576=[{'id':Y['id'],'params':_0x848c42}];return _0x343173(_0x389521,_0x4f715b)[_0x187fdb(0x194)]?(_0x1d95f9[_0x187fdb(0x13f)]({'unitID':_0x3d4c6d,'undoMutations':_0x279576,'redoMutations':_0x389521}),!0x0):!0x1;}},ne={'type':_0x2c633d['COMMAND'],'id':_0x1ff262(0x164),'handler':(_0x96069,_0x2515dd)=>{const _0x4abddb=_0x1ff262;var _0x3b4da9,_0x3a9c2d,_0xfb12c2,_0x314f9b;let _0x29bbd0=_0x3f54c4(_0x96069['get'](_0x5db55d),_0x2515dd);if(!_0x29bbd0)return!0x1;let _0x49d66e=_0x96069[_0x4abddb(0x1a9)](_0x23ace4),{unitId:_0x5ab307,subUnitId:_0x15e30a}=_0x29bbd0,_0x408b95=_0x49d66e[_0x4abddb(0x13d)](_0x5ab307,_0x15e30a);if(!_0x408b95)return!0x1;let _0x2965b2=_0x96069[_0x4abddb(0x1a9)](_0x400d26),{connectorShapeId:_0x2c2606,width:_0x27c944,height:_0xaec04c,left:_0x361616,top:_0xda647d,flipX:_0x127bbe,flipY:_0x42bc94,rotation:_0x35a97c,oldAdjustValues:_0x23583a,newAdjustValues:_0x44dd66,oldLineType:_0x2d5988,newLineType:_0x233526,oldRelation:_0x44483d,newRelation:_0x5632aa}=_0x2515dd,_0x19bb6d=_0x2965b2[_0x4abddb(0x1a2)]({'unitId':_0x5ab307,'subUnitId':_0x15e30a,'drawingId':_0x2c2606});if(!_0x19bb6d)return!0x1;let _0x103632=_0x96069[_0x4abddb(0x1a9)](G)[_0x4abddb(0x1c0)](_0x5ab307,_0x15e30a,_0x2c2606);if(!_0x103632)return!0x1;let _0x2b44c9=_0x96069[_0x4abddb(0x1a9)](_0x388fc8),_0x9873e8=_0x96069[_0x4abddb(0x1a9)](_0x10fe4b),_0x19d558=_0x96069[_0x4abddb(0x1a9)](_0x3d8139),_0xc12dcd={..._0x19bb6d[_0x4abddb(0x195)],'width':_0x27c944,'height':_0xaec04c,'left':_0x361616,'top':_0xda647d,'flipX':_0x127bbe,'flipY':_0x42bc94,'angle':(_0x3b4da9=_0x35a97c==null?(_0x3a9c2d=_0x19bb6d['transform'])==null?void 0x0:_0x3a9c2d[_0x4abddb(0x146)]:_0x35a97c)==null?0x0:_0x3b4da9},_0x356175=_0x2d3afd(_0xc12dcd,_0x408b95),_0x341591=_0x241ebb(_0xc12dcd,_0x408b95),_0x146513=_0x103632['getShapeType'](),_0x3d8dc9=_0x103632['getShapeData'](),_0x4a36a1={'unitId':_0x5ab307,'subUnitId':_0x15e30a,'drawingId':_0x2c2606,'drawingType':_0x288fdc[_0x4abddb(0x15b)],'sheetTransform':_0x356175,'transform':_0xc12dcd,'data':{'shapeType':_0x233526||_0x2d5988||_0x146513,'shapeData':{..._0x3d8dc9,'adjustValues':_0x44dd66||_0x23583a||(_0x3d8dc9==null?void 0x0:_0x3d8dc9['adjustValues']),'relation':_0x5632aa||_0x44483d||(_0x3d8dc9==null?void 0x0:_0x3d8dc9[_0x4abddb(0x1ae)])}},'axisAlignSheetTransform':_0x341591,'allowTransform':!0x0},{undo:_0x1e3919,redo:_0x2d2ddb,objects:_0x2cda9a}=_0x2965b2[_0x4abddb(0x12e)]([_0x4a36a1]),_0x42d63c=_0x19d558[_0x4abddb(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x5ab307,'drawings':[_0x4a36a1]}}),_0x31644a=[...(_0xfb12c2=_0x42d63c[_0x4abddb(0x16f)])==null?[]:_0xfb12c2,{'id':_0x4839e2['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'op':_0x2d2ddb,'objects':_0x2cda9a,'type':_0x48390c[_0x4abddb(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x5ab307]},..._0x42d63c[_0x4abddb(0x1a1)],{'id':Y['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'shapeId':_0x2c2606,'shapeType':_0x233526,'shapeData':{'adjustValues':_0x44dd66,'relation':_0x5632aa}}}],_0x29004b=[...(_0x314f9b=_0x42d63c['preUndos'])==null?[]:_0x314f9b,{'id':_0x4839e2['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'op':_0x1e3919,'objects':_0x2cda9a,'type':_0x48390c[_0x4abddb(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x5ab307]},..._0x42d63c[_0x4abddb(0x144)],{'id':Y['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'shapeId':_0x2c2606,'shapeType':_0x146513,'shapeData':{..._0x3d8dc9,'adjustValues':_0x23583a||(_0x3d8dc9==null?void 0x0:_0x3d8dc9['adjustValues']),'relation':_0x44483d||(_0x3d8dc9==null?void 0x0:_0x3d8dc9[_0x4abddb(0x1ae)])}}}];return _0x343173(_0x31644a,_0x2b44c9)['result']?(_0x9873e8[_0x4abddb(0x13f)]({'unitID':_0x5ab307,'undoMutations':_0x29004b,'redoMutations':_0x31644a}),!0x0):!0x1;}},re={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x145),'handler':(_0x15e021,_0x573b60)=>{const _0x13274d=_0x1ff262;var _0xed353b,_0x684fd3;let _0x381208=_0x3f54c4(_0x15e021[_0x13274d(0x1a9)](_0x5db55d),_0x573b60);if(!_0x381208)return!0x1;let _0x723aad=_0x15e021[_0x13274d(0x1a9)](_0x23ace4),{unitId:_0x26aa6f,subUnitId:_0x5a4bd6}=_0x381208,_0x3311cd=_0x723aad[_0x13274d(0x13d)](_0x26aa6f,_0x5a4bd6);if(!_0x3311cd)return!0x1;let _0x19153b=_0x15e021['get'](_0x400d26),{shapeId:_0x199abb,width:_0x1afe0f,height:_0x177307,left:_0x381c44,top:_0x533fbe,flipX:_0x28fbb4,flipY:_0x1eea3e,angle:_0x4df47d,oldAdjustValues:_0x4a8f3e,newAdjustValues:_0x5e812d,oldLineType:_0x75b182,newLineType:_0x58a684}=_0x573b60,_0x15e134=_0x19153b['getDrawingByParam']({'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'drawingId':_0x199abb});if(!_0x15e134)return!0x1;let _0x2d9e59=_0x15e021['get'](G)['getShapeModel'](_0x26aa6f,_0x5a4bd6,_0x199abb);if(!_0x2d9e59)return!0x1;let _0x3e20a7=_0x15e021[_0x13274d(0x1a9)](_0x388fc8),_0x1beb45=_0x15e021[_0x13274d(0x1a9)](_0x10fe4b),_0x44f8d0=_0x15e021[_0x13274d(0x1a9)](_0x3d8139),_0x238af3={..._0x15e134[_0x13274d(0x195)],'width':_0x1afe0f,'height':_0x177307,'left':_0x381c44,'top':_0x533fbe,'flipX':_0x28fbb4,'flipY':_0x1eea3e,'angle':_0x4df47d},_0x4ef1df=_0x2d3afd(_0x238af3,_0x3311cd),_0x3a0bf2=_0x241ebb(_0x238af3,_0x3311cd),_0x1b66fa=_0x2d9e59[_0x13274d(0x17c)](),_0x3c3331=_0x2d9e59[_0x13274d(0x184)](),_0xdd52e7={'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'drawingId':_0x199abb,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x4ef1df,'transform':_0x238af3,'data':{'shapeType':_0x58a684||_0x75b182||_0x1b66fa,'shapeData':{..._0x3c3331,'adjustValues':_0x5e812d||_0x4a8f3e||(_0x3c3331==null?void 0x0:_0x3c3331[_0x13274d(0x1a6)])}},'axisAlignSheetTransform':_0x3a0bf2,'allowTransform':!0x0},{undo:_0x560190,redo:_0x2e8e72,objects:_0x5b5fb9}=_0x19153b[_0x13274d(0x12e)]([_0xdd52e7]),_0x58a1b0=_0x44f8d0[_0x13274d(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x26aa6f,'drawings':[_0xdd52e7]}}),_0x462ed5=[...(_0xed353b=_0x58a1b0['preRedos'])==null?[]:_0xed353b,{'id':_0x4839e2['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'op':_0x2e8e72,'objects':_0x5b5fb9,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x26aa6f]},..._0x58a1b0[_0x13274d(0x1a1)],{'id':Y['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'shapeId':_0x199abb,'shapeType':_0x58a684,'shapeData':{'adjustValues':_0x5e812d}}}],_0x5c3e53=[...(_0x684fd3=_0x58a1b0['preUndos'])==null?[]:_0x684fd3,{'id':_0x4839e2['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'op':_0x560190,'objects':_0x5b5fb9,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x26aa6f]},..._0x58a1b0[_0x13274d(0x144)],{'id':Y['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'shapeId':_0x199abb,'shapeType':_0x1b66fa,'shapeData':{..._0x3c3331,'adjustValues':_0x4a8f3e||(_0x3c3331==null?void 0x0:_0x3c3331['adjustValues'])}}}];return _0x343173(_0x462ed5,_0x3e20a7)[_0x13274d(0x194)]?(_0x1beb45[_0x13274d(0x13f)]({'unitID':_0x26aa6f,'undoMutations':_0x5c3e53,'redoMutations':_0x462ed5}),!0x0):!0x1;}},Q={'id':'sheet.mutation.update-shape-type','type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x25b726,_0x4f0581)=>{const _0x3ab89=_0x1ff262;let {unitId:_0x34611f,subUnitId:_0x30d791,shapeType:_0x4e4d23,shapeId:_0x28bed2,shapeData:_0x3a6885}=_0x4f0581,_0x2965dd=_0x25b726[_0x3ab89(0x1a9)](G)[_0x3ab89(0x1c0)](_0x34611f,_0x30d791,_0x28bed2);return _0x2965dd&&(_0x2965dd[_0x3ab89(0x1b4)](_0x4e4d23),_0x3a6885&&(_0x2965dd==null||_0x2965dd[_0x3ab89(0x13b)](_0x3a6885))),!0x0;}},ie={'id':_0x1ff262(0x188),'type':_0x2c633d[_0x1ff262(0x1a4)],'handler':(_0x4aab12,_0x5ed3cb)=>{const _0x2b661f=_0x1ff262;if(!_0x5ed3cb)return!0x1;let _0x47dde6=_0x4aab12[_0x2b661f(0x1a9)](_0x388fc8),_0x17d990=_0x4aab12['get'](G),_0x40e793=_0x4aab12[_0x2b661f(0x1a9)](_0x10fe4b),_0x2629b8=[],_0x53f5a8=[],{unitId:_0x4fc086,subUnitId:_0x4fd945,shapeId:_0xb66837,shapeType:_0x99e6ee,shapeData:_0xca32f7}=_0x5ed3cb,_0x5afa09=_0x17d990[_0x2b661f(0x1c0)](_0x4fc086,_0x4fd945,_0xb66837);if(_0x5afa09){let _0x3dc90b=_0x5afa09[_0x2b661f(0x17c)](),_0x1bad66=Object[_0x2b661f(0x1a8)]({},_0x5afa09[_0x2b661f(0x184)]()),_0x131b84={'unitId':_0x4fc086,'subUnitId':_0x4fd945,'shapeId':_0xb66837,'shapeType':_0x99e6ee,'shapeData':_0xca32f7},_0x3b2623={'unitId':_0x4fc086,'subUnitId':_0x4fd945,'shapeId':_0xb66837,'shapeType':_0x3dc90b,'shapeData':_0x1bad66};return _0x2629b8[_0x2b661f(0x14c)]({'id':Q['id'],'params':_0x131b84}),_0x53f5a8['push']({'id':Q['id'],'params':_0x3b2623}),_0x2629b8[_0x2b661f(0x199)](_0x3bb7a8=>_0x47dde6[_0x2b661f(0x189)](_0x3bb7a8['id'],_0x3bb7a8[_0x2b661f(0x1ac)]))&&_0x40e793[_0x2b661f(0x13f)]({'unitID':_0x4fc086,'redoMutations':[..._0x2629b8],'undoMutations':[..._0x53f5a8]}),!0x0;}return!0x1;}};var ae='@univerjs-pro/sheets-shape',oe='0.25.2';const se={};let ce=class extends _0xa3f2a6{constructor(_0x3a7d44,_0x8373,_0x5b4232,_0xb2f4f7,_0x605a12){const _0x5d1f2c=_0x1ff262;super(),this[_0x5d1f2c(0x169)]=_0x3a7d44,this['_sheetInterceptorService']=_0x8373,this['_sheetSkeletonService']=_0x5b4232,this[_0x5d1f2c(0x17b)]=_0xb2f4f7,this['_drawingManagerService']=_0x605a12,this[_0x5d1f2c(0x12a)](),this[_0x5d1f2c(0x130)]();}[_0x1ff262(0x12a)](){const _0x2c6394=_0x1ff262;[J,ee,te,X,Z,ne,re,K,q,Q,Y][_0x2c6394(0x19b)](_0x484600=>this['disposeWithMe'](this[_0x2c6394(0x169)]['registerCommand'](_0x484600)));}[_0x1ff262(0x130)](){const _0x462c1c=_0x1ff262;this[_0x462c1c(0x174)](this['_sheetInterceptorService'][_0x462c1c(0x13c)]({'getMutations':_0x2c0cbc=>{const _0x1dc0b8=_0x462c1c;if(_0x2c0cbc['id']===_0x3596f8['id']){let {drawings:_0x606a62}=_0x2c0cbc['params'],_0x2a4aca=_0x606a62[_0x1dc0b8(0x131)](_0x4173c8=>_0x4173c8[_0x1dc0b8(0x1af)]===_0x288fdc[_0x1dc0b8(0x15b)]);if(_0x2a4aca[_0x1dc0b8(0x181)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2d8e5f=[],_0x3c6e43=[];return _0x2a4aca[_0x1dc0b8(0x19b)](_0x4409d9=>{const _0x4a096d=_0x1dc0b8;let {unitId:_0x798bff,subUnitId:_0x310af2,drawingId:_0x31f70a}=_0x4409d9,_0x1c9eaa=this[_0x4a096d(0x17b)][_0x4a096d(0x1c0)](_0x798bff,_0x310af2,_0x31f70a);if(!_0x1c9eaa)throw TypeError(_0x4a096d(0x13e)+_0x1c9eaa);_0x2d8e5f['push']({'id':q['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x31f70a}}),_0x3c6e43[_0x4a096d(0x14c)]({'id':K['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x31f70a,'shapeType':_0x1c9eaa[_0x4a096d(0x17c)](),'shapeData':_0x1c9eaa[_0x4a096d(0x184)]()}});let _0x531690=this[_0x4a096d(0x17b)][_0x4a096d(0x167)](_0x798bff,_0x310af2,_0x31f70a);if(_0x531690)for(let _0x2bbaea of _0x531690){let _0x21a31c=_0x2bbaea['lineShapeId'],_0x5d2180=_0x2bbaea[_0x4a096d(0x1bf)],_0x597832=_0x5d2180?{'from':void 0x0}:{'to':void 0x0},_0x479c12=_0x5d2180?{'from':{'shapeId':_0x2bbaea[_0x4a096d(0x1a5)],'cxnIndex':_0x2bbaea[_0x4a096d(0x16e)]}}:{'to':{'shapeId':_0x2bbaea[_0x4a096d(0x1a5)],'cxnIndex':_0x2bbaea['cxnIndex']}};_0x2d8e5f['push']({'id':Y['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x21a31c,'shapeData':{'relation':_0x597832}}}),_0x3c6e43[_0x4a096d(0x14c)]({'id':Y['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x21a31c,'shapeData':{'relation':_0x479c12}}});}}),{'preRedos':_0x2d8e5f,'redos':[],'preUndos':[],'undos':_0x3c6e43};}if(_0x2c0cbc['id']===_0x374047['id']){let {drawings:_0x3c6b4c}=_0x2c0cbc[_0x1dc0b8(0x1ac)],_0x4d82aa=_0x3c6b4c[_0x1dc0b8(0x131)](_0x3f6ca0=>_0x3f6ca0[_0x1dc0b8(0x1af)]===_0x288fdc['DRAWING_SHAPE']);if(_0x4d82aa[_0x1dc0b8(0x181)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x8dd29c=[],_0x50c184=[];for(let _0x170322 of _0x4d82aa){let {unitId:_0x1c6107,subUnitId:_0x5f475a,drawingId:_0x227087,transform:_0x251436}=_0x170322;if(!_0x1c6107||!_0x5f475a||!_0x227087||!_0x251436)continue;let _0x1beeb0=this[_0x1dc0b8(0x17b)][_0x1dc0b8(0x1c0)](_0x1c6107,_0x5f475a,_0x227087);if(!_0x1beeb0)throw TypeError(_0x1dc0b8(0x13e)+_0x1beeb0);if(_0x1f3e71(_0x1beeb0[_0x1dc0b8(0x17c)]())){let _0xc04341=this['_sheetsShapeService']['getLineShapeRelation'](_0x1c6107,_0x5f475a,_0x227087);_0xc04341&&(_0x8dd29c[_0x1dc0b8(0x14c)]({'id':Y['id'],'params':{'unitId':_0x1c6107,'subUnitId':_0x5f475a,'shapeId':_0x227087,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x50c184[_0x1dc0b8(0x14c)]({'id':Y['id'],'params':{'unitId':_0x1c6107,'subUnitId':_0x5f475a,'shapeId':_0x227087,'shapeData':{'relation':_0xc04341}}}));}else{let _0x390253=this[_0x1dc0b8(0x17b)]['getBasicShapeRelation'](_0x1c6107,_0x5f475a,_0x227087);if(_0x390253&&_0x390253[_0x1dc0b8(0x181)]>0x0)for(let _0x366963 of _0x390253){let _0x1c5ff5=_0x366963[_0x1dc0b8(0x19d)],_0x8e5760=_0x366963[_0x1dc0b8(0x1bf)],_0x487f6e=this['_sheetsShapeService']['getShapeModel'](_0x1c6107,_0x5f475a,_0x1c5ff5);if(!_0x487f6e)continue;let _0x537eb1=_0x487f6e[_0x1dc0b8(0x187)](),_0x19306e=_0x487f6e[_0x1dc0b8(0x148)]();_0x537eb1&&_0x19306e?this[_0x1dc0b8(0x162)](_0x1c6107,_0x5f475a,_0x1c5ff5,_0x487f6e,_0x537eb1,_0x19306e,_0x8dd29c,_0x50c184,_0x227087,_0x251436):this[_0x1dc0b8(0x14b)](_0x1c6107,_0x5f475a,_0x1c5ff5,_0x487f6e,_0x8e5760?_0x537eb1:_0x19306e,_0x8e5760,_0x8dd29c,_0x50c184,_0x227087,_0x251436);}}}return{'preRedos':[],'redos':_0x8dd29c,'preUndos':_0x50c184,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1ff262(0x137)](_0x33c650,_0x470441,_0x2131ba,_0x43098e,_0x332436){const _0x5bdbd7=_0x1ff262;if(!_0x470441||!_0x2131ba)return null;let {shapeId:_0x166c76,cxnIndex:_0x139b07}=_0x33c650,_0x406c96=this[_0x5bdbd7(0x17b)][_0x5bdbd7(0x1c0)](_0x470441,_0x2131ba,_0x166c76);if(!_0x406c96)return null;let _0x40efb0=this[_0x5bdbd7(0x1c2)][_0x5bdbd7(0x1a2)]({'unitId':_0x470441,'subUnitId':_0x2131ba,'drawingId':_0x166c76});if(!(_0x40efb0!=null&&_0x40efb0['transform']))return null;let {left:_0x21176b=0x0,top:_0x15942e=0x0,width:_0x296cf1=0x0,height:_0x3a5929=0x0,flipX:_0x410113=!0x1,flipY:_0x3abfce=!0x1,angle:_0x16fd1e}=_0x40efb0[_0x5bdbd7(0x195)];if(_0x332436&&_0x43098e===_0x166c76){var _0x5575a8,_0x395390,_0x419b15,_0x5cb55e,_0x310d38,_0x70fd42,_0x2cd057;_0x21176b=(_0x5575a8=_0x332436[_0x5bdbd7(0x15d)])==null?_0x21176b:_0x5575a8,_0x15942e=(_0x395390=_0x332436[_0x5bdbd7(0x165)])==null?_0x15942e:_0x395390,_0x296cf1=(_0x419b15=_0x332436[_0x5bdbd7(0x1b8)])==null?_0x296cf1:_0x419b15,_0x3a5929=(_0x5cb55e=_0x332436[_0x5bdbd7(0x139)])==null?_0x3a5929:_0x5cb55e,_0x410113=(_0x310d38=_0x332436[_0x5bdbd7(0x1b6)])==null?_0x410113:_0x310d38,_0x3abfce=(_0x70fd42=_0x332436[_0x5bdbd7(0x1a7)])==null?_0x3abfce:_0x70fd42,_0x16fd1e=(_0x2cd057=_0x332436[_0x5bdbd7(0x146)])==null?_0x16fd1e:_0x2cd057;}_0x406c96[_0x5bdbd7(0x159)]({'width':_0x296cf1,'height':_0x3a5929});let _0x1e18e3=_0x406c96['getConnectionSiteList']()[_0x5bdbd7(0x198)](_0x174852=>_0x174852[_0x5bdbd7(0x155)]===_0x139b07);if(!_0x1e18e3)return null;let _0x12e336=_0x410113?_0x296cf1-_0x1e18e3['x']:_0x1e18e3['x'],_0x4fe382=_0x3abfce?_0x3a5929-_0x1e18e3['y']:_0x1e18e3['y'];if(_0x16fd1e!==0x0&&_0x16fd1e!=null){let _0x1c53c0=_0x16fd1e*Math['PI']/0xb4,_0x28f262=Math[_0x5bdbd7(0x191)](_0x1c53c0),_0x18d2af=Math[_0x5bdbd7(0x127)](_0x1c53c0),_0x9ab1e2=_0x296cf1/0x2,_0x4a7673=_0x3a5929/0x2,_0x4f0c43=_0x12e336-_0x9ab1e2,_0x4ae411=_0x4fe382-_0x4a7673;_0x12e336=_0x9ab1e2+_0x4f0c43*_0x28f262-_0x4ae411*_0x18d2af,_0x4fe382=_0x4a7673+_0x4f0c43*_0x18d2af+_0x4ae411*_0x28f262;}_0x12e336+=_0x21176b,_0x4fe382+=_0x15942e;let _0x4e8e46=_0x1e18e3[_0x5bdbd7(0x16d)]/0xea60;_0x410113&&(_0x4e8e46=0xb4-_0x4e8e46),_0x3abfce&&(_0x4e8e46=-_0x4e8e46),_0x4e8e46+=_0x16fd1e||0x0,_0x4e8e46=(_0x4e8e46%0x168+0x168)%0x168;let _0xb32912=_0x1f4faa({'left':_0x21176b,'top':_0x15942e,'width':_0x296cf1,'height':_0x3a5929},_0x16fd1e||0x0);return{'point':{'x':_0x12e336,'y':_0x4fe382},'angle':_0x4e8e46,'bounds':_0xb32912};}['_addLineRerouteUpdates'](_0x502bc2,_0x25fbee,_0x26b575,_0x592ac4,_0x37e8aa,_0x3c40ca,_0x33510c,_0x381055,_0x50e4a2,_0x3ccfde){const _0x8dc1f7=_0x1ff262;let _0x20f4d8=this[_0x8dc1f7(0x136)]['getSkeleton'](_0x502bc2,_0x25fbee);if(!_0x20f4d8)return;let _0x17a9ea=_0x592ac4['getShapeRelation'](),_0x52cde3=_0x592ac4[_0x8dc1f7(0x153)](),_0x335d86={},_0x4d9444={};_0x52cde3['forEach'](_0x41a810=>{let _0x18eb85=_0x592ac4['getAdjustValueByName'](_0x41a810);_0x4d9444[_0x41a810]=_0x18eb85==null?0x0:_0x18eb85;});let _0x35f94f=this[_0x8dc1f7(0x137)](_0x37e8aa,_0x502bc2,_0x25fbee,_0x50e4a2,_0x3ccfde),_0x13a8ef=this[_0x8dc1f7(0x137)](_0x3c40ca,_0x502bc2,_0x25fbee,_0x50e4a2,_0x3ccfde);if(_0x35f94f&&_0x13a8ef){let _0x1669a9=_0x592ac4['getShapeType'](),_0x290c68=_0x5a3de9(_0x35f94f,_0x13a8ef,_0x1669a9),_0x281e8d=_0x1669a9;if(_0x290c68){let _0x3cc56e=_0x1adc9d(_0x290c68,_0x592ac4['getShapeType']()),_0x1500ac=this['_drawingManagerService'][_0x8dc1f7(0x170)](_0x502bc2,_0x25fbee);if(_0x1500ac&&_0x1500ac[_0x26b575]){let _0x5357e6=_0x1500ac[_0x26b575];_0x281e8d=_0x3cc56e[_0x8dc1f7(0x133)];for(let [_0x4a4d73,_0x361de9]of Object[_0x8dc1f7(0x197)](_0x3cc56e[_0x8dc1f7(0x1a6)]))_0x335d86[_0x4a4d73]=_0x361de9;let _0x4c6d55={..._0x5357e6[_0x8dc1f7(0x195)],'width':_0x3cc56e[_0x8dc1f7(0x14f)]['width'],'height':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x139)],'left':_0x3cc56e['worldRect']['left'],'top':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x165)],'flipX':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x1b6)],'flipY':_0x3cc56e['worldRect'][_0x8dc1f7(0x1a7)],'angle':_0x3cc56e[_0x8dc1f7(0x19f)]},_0x13b2a0=_0x2d3afd(_0x4c6d55,_0x20f4d8),_0x5a4ace=_0x241ebb(_0x4c6d55,_0x20f4d8),_0x541556={'unitId':_0x502bc2,'subUnitId':_0x25fbee,'drawingType':_0x288fdc[_0x8dc1f7(0x15b)],'drawingId':_0x26b575,'transform':_0x4c6d55,'sheetTransform':_0x13b2a0,'axisAlignSheetTransform':_0x5a4ace},{unitId:_0x151f95,subUnitId:_0x5453e5,undo:_0x5641e5,redo:_0x43db26,objects:_0x53dac3}=this[_0x8dc1f7(0x1c2)][_0x8dc1f7(0x12e)]([_0x541556]);_0x33510c['push']({'id':_0x4839e2['id'],'params':{'unitId':_0x151f95,'subUnitId':_0x5453e5,'op':_0x43db26,'objects':_0x53dac3,'type':_0x48390c[_0x8dc1f7(0x149)]}}),_0x381055['push']({'id':_0x4839e2['id'],'params':{'unitId':_0x151f95,'subUnitId':_0x5453e5,'op':_0x5641e5,'objects':_0x53dac3,'type':_0x48390c['UPDATE']}});}_0x592ac4[_0x8dc1f7(0x1b9)]();}_0x33510c[_0x8dc1f7(0x14c)]({'id':Y['id'],'params':{'unitId':_0x502bc2,'subUnitId':_0x25fbee,'shapeId':_0x26b575,'shapeType':_0x281e8d,'shapeData':{'adjustValues':_0x335d86,'relation':_0x17a9ea}}}),_0x381055[_0x8dc1f7(0x14c)]({'id':Y['id'],'params':{'unitId':_0x502bc2,'subUnitId':_0x25fbee,'shapeId':_0x26b575,'shapeType':_0x1669a9,'shapeData':{'adjustValues':_0x4d9444,'relation':_0x17a9ea}}});}}[_0x1ff262(0x14b)](_0x43c31d,_0x378ce2,_0x1de7ec,_0x103633,_0x313e19,_0x13d247,_0x295998,_0x32d3ad,_0x17ffe2,_0x358271){const _0x59b7fb=_0x1ff262;var _0x218199;if(!_0x313e19)return;let _0x51e78e=this[_0x59b7fb(0x136)][_0x59b7fb(0x13d)](_0x43c31d,_0x378ce2);if(!_0x51e78e)return;let _0x10aebd=(_0x218199=this[_0x59b7fb(0x1c2)]['getDrawingByParam']({'unitId':_0x43c31d,'subUnitId':_0x378ce2,'drawingId':_0x17ffe2}))==null?void 0x0:_0x218199[_0x59b7fb(0x195)];if(!_0x10aebd)return;let _0x369aa1=_0x10aebd['left']!==_0x358271['left']||_0x10aebd[_0x59b7fb(0x165)]!==_0x358271['top'],_0x3d6857=_0x10aebd[_0x59b7fb(0x1b8)]!==_0x358271['width']||_0x10aebd['height']!==_0x358271[_0x59b7fb(0x139)],_0x2c6da5=_0x10aebd[_0x59b7fb(0x1b6)]!==_0x358271[_0x59b7fb(0x1b6)]||_0x10aebd[_0x59b7fb(0x1a7)]!==_0x358271[_0x59b7fb(0x1a7)],_0x14bed3=_0x10aebd[_0x59b7fb(0x146)]!==_0x358271[_0x59b7fb(0x146)];if(_0x369aa1&&!_0x3d6857&&!_0x2c6da5&&!_0x14bed3){var _0x283c39,_0x1abc8e,_0x29897e,_0x256476;let _0x108901=((_0x283c39=_0x358271[_0x59b7fb(0x15d)])==null?0x0:_0x283c39)-((_0x1abc8e=_0x10aebd['left'])==null?0x0:_0x1abc8e),_0x52ac4b=((_0x29897e=_0x358271[_0x59b7fb(0x165)])==null?0x0:_0x29897e)-((_0x256476=_0x10aebd[_0x59b7fb(0x165)])==null?0x0:_0x256476),_0x5d59ea=this[_0x59b7fb(0x1c2)][_0x59b7fb(0x170)](_0x43c31d,_0x378ce2);if(_0x5d59ea&&_0x5d59ea[_0x1de7ec]){var _0x31ff56,_0x559a33,_0x3fea10,_0x15284d;let _0x1d5dc8=_0x5d59ea[_0x1de7ec],_0x4a12bc={..._0x1d5dc8[_0x59b7fb(0x195)],'left':((_0x31ff56=(_0x559a33=_0x1d5dc8[_0x59b7fb(0x195)])==null?void 0x0:_0x559a33[_0x59b7fb(0x15d)])==null?0x0:_0x31ff56)+_0x108901,'top':((_0x3fea10=(_0x15284d=_0x1d5dc8['transform'])==null?void 0x0:_0x15284d[_0x59b7fb(0x165)])==null?0x0:_0x3fea10)+_0x52ac4b},_0x22e76b=_0x2d3afd(_0x4a12bc,_0x51e78e),_0x32fcab=_0x241ebb(_0x4a12bc,_0x51e78e),_0x134e04={'unitId':_0x43c31d,'subUnitId':_0x378ce2,'drawingType':_0x288fdc[_0x59b7fb(0x15b)],'drawingId':_0x1de7ec,'transform':_0x4a12bc,'sheetTransform':_0x22e76b,'axisAlignSheetTransform':_0x32fcab},{unitId:_0x266fc9,subUnitId:_0x168126,undo:_0x1add3c,redo:_0x334fce,objects:_0x5b8896}=this['_drawingManagerService'][_0x59b7fb(0x12e)]([_0x134e04]);_0x295998[_0x59b7fb(0x14c)]({'id':_0x4839e2['id'],'params':{'unitId':_0x266fc9,'subUnitId':_0x168126,'op':_0x334fce,'objects':_0x5b8896,'type':_0x48390c[_0x59b7fb(0x149)]}}),_0x32d3ad[_0x59b7fb(0x14c)]({'id':_0x4839e2['id'],'params':{'unitId':_0x266fc9,'subUnitId':_0x168126,'op':_0x1add3c,'objects':_0x5b8896,'type':_0x48390c['UPDATE']}});}}else{let _0x3a3657=_0x103633[_0x59b7fb(0x187)](),_0x4cfd90=_0x103633['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x43c31d,_0x378ce2,_0x1de7ec,_0x103633,_0x3a3657,_0x4cfd90,_0x295998,_0x32d3ad,_0x17ffe2,_0x358271);}}};ce=W([U(0x0,_0x388fc8),U(0x1,_0x2530fb(_0x3d8139)),U(0x2,_0x2530fb(_0x23ace4)),U(0x3,_0x2530fb(G)),U(0x4,_0x2530fb(_0x11e38f))],ce);let $=class extends _0x23871c{constructor(_0x887170=se,_0x17f95d,_0x18f6f1,_0x3d5ef4){const _0x56641f=_0x1ff262;super(),this[_0x56641f(0x176)]=_0x887170,this[_0x56641f(0x193)]=_0x17f95d,this[_0x56641f(0x169)]=_0x18f6f1,this['_configService']=_0x3d5ef4;let {..._0x3a03df}=_0xab60b4({},se,this['_config']);this[_0x56641f(0x1c3)][_0x56641f(0x1b5)]('sheets-shape.config',_0x3a03df);}[_0x1ff262(0x16a)](){const _0x15b221=_0x1ff262;let _0x47e928=this[_0x15b221(0x193)];[[H],[G],[ce]][_0x15b221(0x19b)](_0x52f01a=>_0x47e928['add'](_0x52f01a)),_0x1d0968(_0x47e928,[[G],[ce]]);}};function _0x1c55(){const _0x912987=['_linesIds','137586uEsstU','from','updateContext','sheet.mutation.insert-shape','DRAWING_SHAPE','removeShape','left','getCellWithCoordByIndex','data','sheet.mutation.remove-shape','_resourcesManagerService','_addLineRerouteUpdates','5lVrpBt','sheet.command.update-connector-relation','top','add','getBasicShapeRelation','getBasicShapeType','_commandService','onStarting','object','keys','ang','cxnIndex','preRedos','getDrawingData','isHorizontal','getLineShapeRelation','sheet.command.set-shape-rotate','disposeWithMe','getShapeRelation','_config','symbol','toJSON','getShapeDataById','ensureSkeleton','_sheetsShapeService','getShapeType','defineProperty','startX','borderEnabled','version','length','onCommandExecute','18RmPzcC','getShapeData','isLineShape','_initSnapshot','getStartConnectInfo','sheet.command.update-shape-type','syncExecuteCommand','packageName','clear','747912ntSNzC','getBatchAddOp','3693312npYmDa','delete','resizeEnabled','cos','startY','_injector','result','transform','toPrimitive','entries','find','every','dispose','forEach','SHEET_SHAPE_PLUGIN','lineShapeId','getOwnPropertyDescriptor','rotation','position','redos','getDrawingByParam','pluginName','COMMAND','shapeId','adjustValues','flipY','assign','get','function','_shapeModelManagerMap','params','rotateEnabled','relation','drawingType','_ensureShapeModelManager','set','getShapeTextData','9382190KKCvsd','setShapeType','setConfig','flipX','MUTATION','width','removeLinePoints','hasShape','stringify','_serializeShapeForUnit','prototype','_shapes','isFrom','getShapeModel','INSERT','_drawingManagerService','_configService','sin','49fkbBJG','registerPluginResource','_initCommands','sheet.command.toggle-shape-flip','preUndos','sheet.command.set-shape-drawing-data','getBatchUpdateOp','insertShape','_initCommandInterceptor','filter','iterator','lineType','925392OcpOKK','2807433owEKNF','_sheetSkeletonService','_getConnectPointInfo','sheet.command.insert-shape','height','default','setShapeData','interceptCommand','getSkeleton','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','pushUndoRedo','addShape','fill','_groupIds','4169336XflTvV','undos','sheet.command.update-line-shape-resize','angle','sheet.command.set-shape-text-vertical-toggle','getEndConnectInfo','UPDATE','fromJSON','_addLineFollowShapeUpdates','push','getCellIndexAndOffsetByPosition','_disposed','worldRect','REMOVE','_deserializeShapeForUnit','has','getAdjustNames','parse','index'];_0x1c55=function(){return _0x912987;};return _0x1c55();}V($,'type',_0x4f30e9['UNIVER_SHEET']),V($,_0x1ff262(0x1a3),_0x1ff262(0x19c)),V($,_0x1ff262(0x18a),ae),V($,_0x1ff262(0x180),oe),$=W([_0x13d69f(_0x19cd3c),U(0x1,_0x2530fb(_0x2f815e)),U(0x2,_0x388fc8),U(0x3,_0x7b487e)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x291bb4=_0x10d7;(function(_0x1c6552,_0x1a5eb9){const _0x499fee=_0x10d7,_0x33fe19=_0x1c6552();while(!![]){try{const _0x46cc14=parseInt(_0x499fee(0x180))/0x1*(parseInt(_0x499fee(0x11f))/0x2)+-parseInt(_0x499fee(0x155))/0x3*(-parseInt(_0x499fee(0x16e))/0x4)+-parseInt(_0x499fee(0x13a))/0x5*(parseInt(_0x499fee(0x147))/0x6)+-parseInt(_0x499fee(0x14d))/0x7+-parseInt(_0x499fee(0x11c))/0x8+parseInt(_0x499fee(0x18b))/0x9+-parseInt(_0x499fee(0x166))/0xa*(-parseInt(_0x499fee(0x12b))/0xb);if(_0x46cc14===_0x1a5eb9)break;else _0x33fe19['push'](_0x33fe19['shift']());}catch(_0x477b26){_0x33fe19['push'](_0x33fe19['shift']());}}}(_0x10ff,0x418c0));import{ConnectorCoordinateTransform as _0x3af6ac,ShapeArrowSizeEnum as _0x2155f7,ShapeArrowTypeEnum as _0x48d718,ShapeFillEnum as _0x56f575,ShapeGradientTypeEnum as _0x3d3b73,ShapeLineCapEnum as _0x3a73ac,ShapeLineDashEnum as _0x6eaf0d,ShapeLineJoinEnum as _0x5232cf,ShapeLineTypeEnum as _0x2e1f3e,ShapeTypeEnum as _0x140b90,computeConnectorRouteLayout as _0x1390bf,getBasicShapeRotateBound as _0x468f4d,isConnectorShape as _0x50e99f,routeConnectorLineShape as _0x59fc77}from'@univerjs-pro/engine-shape';import{FEnum as _0x2c4b61}from'@univerjs/core/facade';function _0x10d7(_0x1c07a4,_0x4892a8){_0x1c07a4=_0x1c07a4-0x10e;const _0x10ff88=_0x10ff();let _0x10d7a7=_0x10ff88[_0x1c07a4];return _0x10d7a7;}import{DEFAULT_SHAPE_HEIGHT as _0xd6b3e8,DEFAULT_SHAPE_WIDTH as _0xa2c7ac,InsertShapeCommand as _0x2d78f8,SetShapeDrawingDataCommand as _0x268798,SheetsShapeService as _0x32f133,UpdateConnectorRelationCommand as _0x219dd2}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x255a32,generateRandomId as _0x506b1e}from'@univerjs/core';function _0x10ff(){const _0x383bf4=['setShapeSolidFill','call','3260166OizARj','getDrawingByParam','getShapeData','shapeData','drawId','width','ShapeArrowSizeEnum','from','189VyjxAC','worldRect','string','gradientType','isLineShape','object','setStartArrowType','removeShape','lineType','getShapeModel','symbol','abs','ensureSkeleton','top','getConnectorLinePoints','setStrokeLineCapType','function','900CRAiij','_resolveEndpoints','updateShape','extend','ShapeLineJoinEnum','ShapeGradientTypeEnum','constructor','endArrow','10324fmJDFT','ang','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeFillEnum','height','opacity','sin','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','unitId','fill','getEndConnectInfo','getShapeType','index','setStrokeLineJoinType','find','keys','getShapes','setStrokeWidth','483oGbpgg','length','relation','shape','left','subUnitId','NoFill','build','newConnector','getUnitId','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','2323071KfQtpJ','_preloadShapeProperties','localToWorld','setShapeGradientFill','capType','shapeType','\x20and\x20subUnitId\x20','setWidth','_commandService','setStrokeColor','shapeId','getDrawingPoints','fillType','SolidFill','getAdjustValueByName','cxnIndex','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','1234536kLTvlp','getDrawingData','ShapeTypeEnum','1628zdFSEP','connectShapes','setStartArrowSize','size','startArrow','setEndArrowType','getShapeRelation','_injector','color','setStrokeOpacity','Skeleton\x20for\x20unitId\x20','transform','20229KcEOIa','stroke','executeCommand','default','getSheetId','updateContext','getShapeId','stringify','get','insertShape','cos','ShapeLineCapEnum','defineProperty','type','ShapeArrowTypeEnum','10565YDzbAb','setPosition','prototype','getConnectionSiteList','_resolveExistingOrFreeEndpoint','getStartConnectInfo','entries','setStrokeLineType','setNoneFill','connectionSiteIndex','getPosition','rotation','DRAWING_SHAPE','258eBRDuB','getWorkbook','\x20not\x20found','getAdjustPoints'];_0x10ff=function(){return _0x383bf4;};return _0x10ff();}import{IDrawingManagerService as _0x41f792}from'@univerjs/drawing';import{SheetSkeletonService as _0x40d10b,convertPositionCellToSheetOverGrid as _0x100e99}from'@univerjs/sheets';import{ISheetDrawingService as _0x14d135,RemoveSheetDrawingCommand as _0x1fa062}from'@univerjs/sheets-drawing';import{FWorksheet as _0x435e82}from'@univerjs/sheets/facade';var k=class extends _0x2c4b61{get[_0x291bb4(0x11e)](){return _0x140b90;}get[_0x291bb4(0x171)](){return _0x56f575;}get[_0x291bb4(0x16b)](){return _0x3d3b73;}get['ShapeLineTypeEnum'](){return _0x2e1f3e;}get['ShapeLineDashEnum'](){return _0x6eaf0d;}get[_0x291bb4(0x136)](){return _0x3a73ac;}get[_0x291bb4(0x16a)](){return _0x5232cf;}get[_0x291bb4(0x139)](){return _0x48d718;}get[_0x291bb4(0x153)](){return _0x2155f7;}};_0x2c4b61[_0x291bb4(0x169)](k);function A(_0x5a1545){'@babel/helpers - typeof';const _0x36760d=_0x291bb4;return A=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x36760d(0x15f)?function(_0x3c3bb5){return typeof _0x3c3bb5;}:function(_0x4ebbc4){const _0x4ac6cc=_0x36760d;return _0x4ebbc4&&typeof Symbol==_0x4ac6cc(0x165)&&_0x4ebbc4[_0x4ac6cc(0x16c)]===Symbol&&_0x4ebbc4!==Symbol[_0x4ac6cc(0x13c)]?_0x4ac6cc(0x15f):typeof _0x4ebbc4;},A(_0x5a1545);}function j(_0x157b57,_0x783281){const _0x3794f2=_0x291bb4;if(A(_0x157b57)!=_0x3794f2(0x15a)||!_0x157b57)return _0x157b57;var _0x1eb0e4=_0x157b57[Symbol['toPrimitive']];if(_0x1eb0e4!==void 0x0){var _0x1eb3f7=_0x1eb0e4[_0x3794f2(0x14c)](_0x157b57,_0x783281||_0x3794f2(0x12e));if(A(_0x1eb3f7)!=_0x3794f2(0x15a))return _0x1eb3f7;throw TypeError(_0x3794f2(0x170));}return(_0x783281===_0x3794f2(0x157)?String:Number)(_0x157b57);}function M(_0x1beec3){const _0x122b98=_0x291bb4;var _0x1ae5b5=j(_0x1beec3,'string');return A(_0x1ae5b5)==_0x122b98(0x15f)?_0x1ae5b5:_0x1ae5b5+'';}function N(_0x4116ec,_0xc4980c,_0xab6fa9){const _0x300898=_0x291bb4;return(_0xc4980c=M(_0xc4980c))in _0x4116ec?Object[_0x300898(0x137)](_0x4116ec,_0xc4980c,{'value':_0xab6fa9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4116ec[_0xc4980c]=_0xab6fa9,_0x4116ec;}var P=class{constructor(_0x2a0b04,_0x580b3e,_0x1c733b,_0x5758a1){const _0x1f6511=_0x291bb4;N(this,'unitId',void 0x0),N(this,_0x1f6511(0x185),void 0x0),N(this,_0x1f6511(0x151),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x1f6511(0x152),_0xa2c7ac),N(this,_0x1f6511(0x172),_0xd6b3e8),N(this,_0x1f6511(0x110),void 0x0),N(this,'shapeData',{}),N(this,_0x1f6511(0x126),void 0x0),this['unitId']=_0x2a0b04,this[_0x1f6511(0x185)]=_0x580b3e,this['drawId']=_0x1c733b||_0x506b1e(),this[_0x1f6511(0x126)]=_0x5758a1;}[_0x291bb4(0x13b)](_0x261d41,_0x4fc217,_0x27dc2b,_0x1263fa){const _0x4868c8=_0x291bb4;let _0x3a8f77=this[_0x4868c8(0x126)][_0x4868c8(0x133)](_0x40d10b)[_0x4868c8(0x161)](this[_0x4868c8(0x176)],this[_0x4868c8(0x185)]);if(!_0x3a8f77)throw Error(_0x4868c8(0x129)+this['unitId']+_0x4868c8(0x111)+this['subUnitId']+_0x4868c8(0x149));let {transform:_0x4c5151}=_0x100e99(this['unitId'],this[_0x4868c8(0x185)],{'row':_0x261d41,'column':_0x4fc217,'rowOffset':_0x27dc2b,'columnOffset':_0x1263fa},0x1,0x1,_0x3a8f77);return this['x']=_0x4c5151[_0x4868c8(0x184)],this['y']=_0x4c5151[_0x4868c8(0x162)],this;}['setAbsolutePosition'](_0x1a4538,_0x540a6e){return this['x']=_0x1a4538,this['y']=_0x540a6e,this;}['setShapeType'](_0x77a102){return this['shapeType']=_0x77a102,this;}[_0x291bb4(0x14b)](_0x198df8,_0x4689da){const _0x9d3d88=_0x291bb4;return this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]||(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]={}),this[_0x9d3d88(0x150)][_0x9d3d88(0x177)][_0x9d3d88(0x117)]=_0x56f575[_0x9d3d88(0x118)],_0x198df8!==void 0x0&&(this[_0x9d3d88(0x150)]['fill']['color']=_0x198df8),_0x4689da!==void 0x0&&(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]['opacity']=_0x4689da),this;}[_0x291bb4(0x10e)](_0x58ea71,_0x404ecd,_0x5045cb){const _0x118485=_0x291bb4;if(_0x404ecd===void 0x0||_0x404ecd[_0x118485(0x181)]===0x0)throw Error(_0x118485(0x175));return this[_0x118485(0x150)]['fill']||(this[_0x118485(0x150)][_0x118485(0x177)]={}),this[_0x118485(0x150)]['fill']['gradientStops']=_0x404ecd,this[_0x118485(0x150)][_0x118485(0x177)][_0x118485(0x117)]=_0x56f575['GradientFill'],this['shapeData'][_0x118485(0x177)][_0x118485(0x158)]=_0x58ea71,_0x5045cb!==void 0x0&&(this[_0x118485(0x150)][_0x118485(0x177)]['gradientAngle']=_0x5045cb),this;}[_0x291bb4(0x142)](){const _0x14498e=_0x291bb4;return this[_0x14498e(0x150)]['fill']={'fillType':_0x56f575[_0x14498e(0x186)]},this;}[_0x291bb4(0x114)](_0x3085bf){const _0x5ab674=_0x291bb4;return this[_0x5ab674(0x150)][_0x5ab674(0x12c)]||(this['shapeData'][_0x5ab674(0x12c)]={}),this['shapeData'][_0x5ab674(0x12c)][_0x5ab674(0x127)]=_0x3085bf,this;}[_0x291bb4(0x17f)](_0x8c029e){const _0x5009cf=_0x291bb4;return this[_0x5009cf(0x150)][_0x5009cf(0x12c)]||(this['shapeData']['stroke']={}),this[_0x5009cf(0x150)]['stroke'][_0x5009cf(0x152)]=_0x8c029e,this;}['setStrokeLineDashType'](_0x2a3931){const _0x4df03d=_0x291bb4;return this['shapeData'][_0x4df03d(0x12c)]||(this['shapeData'][_0x4df03d(0x12c)]={}),this[_0x4df03d(0x150)]['stroke']['dashType']=_0x2a3931,this;}[_0x291bb4(0x17b)](_0x5bcc09){const _0x229141=_0x291bb4;return this[_0x229141(0x150)]['stroke']||(this[_0x229141(0x150)][_0x229141(0x12c)]={}),this['shapeData'][_0x229141(0x12c)]['lineJoinType']=_0x5bcc09,this;}[_0x291bb4(0x164)](_0x38b6cc){const _0x3ee6cf=_0x291bb4;return this[_0x3ee6cf(0x150)]['stroke']||(this[_0x3ee6cf(0x150)][_0x3ee6cf(0x12c)]={}),this[_0x3ee6cf(0x150)]['stroke'][_0x3ee6cf(0x10f)]=_0x38b6cc,this;}[_0x291bb4(0x128)](_0x2723cd){const _0x3d33e3=_0x291bb4;return this['shapeData'][_0x3d33e3(0x12c)]||(this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)]={}),this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)][_0x3d33e3(0x173)]=_0x2723cd,this;}[_0x291bb4(0x141)](_0x5683c4){const _0x502f8b=_0x291bb4;return this['shapeData']['stroke']||(this[_0x502f8b(0x150)][_0x502f8b(0x12c)]={}),this[_0x502f8b(0x150)][_0x502f8b(0x12c)]['lineStrokeType']=_0x5683c4,this;}[_0x291bb4(0x112)](_0x44132d){const _0x28ed93=_0x291bb4;return this[_0x28ed93(0x152)]=_0x44132d,this;}['setHeight'](_0xe3ab6a){const _0xcee124=_0x291bb4;return this[_0xcee124(0x172)]=_0xe3ab6a,this;}[_0x291bb4(0x159)](){const _0x2d8f19=_0x291bb4;let _0x9ed73c=this[_0x2d8f19(0x126)][_0x2d8f19(0x133)](_0x32f133)['getShapeModel'](this[_0x2d8f19(0x176)],this[_0x2d8f19(0x185)],this[_0x2d8f19(0x151)]);return _0x9ed73c?_0x50e99f(_0x9ed73c[_0x2d8f19(0x179)]()):this['shapeType']?_0x50e99f(this[_0x2d8f19(0x110)]):!0x1;}['getConnectionSites'](){const _0xef1195=_0x291bb4;let _0x375fc9=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x32f133)[_0xef1195(0x15e)](this[_0xef1195(0x176)],this[_0xef1195(0x185)],this[_0xef1195(0x151)]);if(!_0x375fc9)return[];let _0x462ad3=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x41f792)[_0xef1195(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0xef1195(0x185)],'drawingId':this['drawId']});if(!(_0x462ad3!=null&&_0x462ad3[_0xef1195(0x12a)]))return[];let {width:_0xf7cd19=0x0,height:_0x42b9bf=0x0}=_0x462ad3[_0xef1195(0x12a)];return _0x375fc9[_0xef1195(0x130)]({'width':_0xf7cd19,'height':_0x42b9bf}),_0x375fc9[_0xef1195(0x13d)]();}[_0x291bb4(0x14a)](){const _0x288ca2=_0x291bb4;let _0x31cdc9=this['_injector']['get'](_0x32f133)['getShapeModel'](this['unitId'],this[_0x288ca2(0x185)],this[_0x288ca2(0x151)]);if(!_0x31cdc9)return[];let _0x486cfe=this[_0x288ca2(0x126)][_0x288ca2(0x133)](_0x41f792)[_0x288ca2(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0x288ca2(0x185)],'drawingId':this['drawId']});if(!(_0x486cfe!=null&&_0x486cfe[_0x288ca2(0x12a)]))return[];let {width:_0x12f537=0x0,height:_0x5bc8a9=0x0}=_0x486cfe[_0x288ca2(0x12a)];return _0x31cdc9['updateContext']({'width':_0x12f537,'height':_0x5bc8a9}),_0x31cdc9[_0x288ca2(0x116)]();}[_0x291bb4(0x163)](){const _0x3bf9f0=_0x291bb4;let _0x280a57=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x32f133)[_0x3bf9f0(0x15e)](this[_0x3bf9f0(0x176)],this[_0x3bf9f0(0x185)],this[_0x3bf9f0(0x151)]);if(!_0x280a57||!_0x50e99f(_0x280a57[_0x3bf9f0(0x179)]()))return[];let _0x1a96e3=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x41f792)[_0x3bf9f0(0x14e)]({'unitId':this[_0x3bf9f0(0x176)],'subUnitId':this[_0x3bf9f0(0x185)],'drawingId':this[_0x3bf9f0(0x151)]});if(!(_0x1a96e3!=null&&_0x1a96e3[_0x3bf9f0(0x12a)]))return[];let {width:_0x216445=0x0,height:_0x43af91=0x0}=_0x1a96e3[_0x3bf9f0(0x12a)];return _0x280a57[_0x3bf9f0(0x130)]({'width':_0x216445,'height':_0x43af91}),_0x280a57['getConnectorLinePoints']();}[_0x291bb4(0x13f)](){const _0x7eb395=_0x291bb4;var _0x19df9f;let _0x2f017c=this[_0x7eb395(0x126)][_0x7eb395(0x133)](_0x32f133)[_0x7eb395(0x15e)](this[_0x7eb395(0x176)],this['subUnitId'],this[_0x7eb395(0x151)]);return _0x2f017c?(_0x19df9f=_0x2f017c[_0x7eb395(0x13f)]())==null?null:_0x19df9f:null;}[_0x291bb4(0x178)](){const _0x5368c4=_0x291bb4;var _0x2754d3;let _0x1ac605=this[_0x5368c4(0x126)][_0x5368c4(0x133)](_0x32f133)[_0x5368c4(0x15e)](this['unitId'],this[_0x5368c4(0x185)],this[_0x5368c4(0x151)]);return _0x1ac605?(_0x2754d3=_0x1ac605['getEndConnectInfo']())==null?null:_0x2754d3:null;}[_0x291bb4(0x187)](){const _0x3a8a6c=_0x291bb4;var _0x141713,_0x4c3bda;if(!this['shapeType'])throw Error(_0x3a8a6c(0x18a));if(this['x']===0x0||this['y']===0x0){let _0x169b03=this[_0x3a8a6c(0x126)]['get'](_0x40d10b)[_0x3a8a6c(0x161)](this[_0x3a8a6c(0x176)],this[_0x3a8a6c(0x185)]);if(!_0x169b03)throw Error(_0x3a8a6c(0x129)+this[_0x3a8a6c(0x176)]+'\x20and\x20subUnitId\x20'+this[_0x3a8a6c(0x185)]+_0x3a8a6c(0x149));let {transform:_0x4e2c57}=_0x100e99(this['unitId'],this[_0x3a8a6c(0x185)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x169b03);this['x']=this['x']>0x0?this['x']:_0x4e2c57[_0x3a8a6c(0x184)],this['y']=this['y']>0x0?this['y']:_0x4e2c57[_0x3a8a6c(0x162)];}return this[_0x3a8a6c(0x152)]=(_0x141713=this[_0x3a8a6c(0x152)])==null?_0xa2c7ac:_0x141713,this[_0x3a8a6c(0x172)]=(_0x4c3bda=this[_0x3a8a6c(0x172)])==null?_0xd6b3e8:_0x4c3bda,{'unitId':this[_0x3a8a6c(0x176)],'subUnitId':this['subUnitId'],'shapeId':this[_0x3a8a6c(0x151)],'shapeType':this[_0x3a8a6c(0x110)],'shapeData':Object[_0x3a8a6c(0x17d)](this[_0x3a8a6c(0x150)])[_0x3a8a6c(0x181)]>0x0?this[_0x3a8a6c(0x150)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x3a8a6c(0x172)]};}[_0x291bb4(0x131)](){const _0x5983bb=_0x291bb4;return this[_0x5983bb(0x151)];}['getShapeType'](){const _0x5ea486=_0x291bb4;return this[_0x5ea486(0x110)];}[_0x291bb4(0x14f)](){const _0x4954e1=_0x291bb4;return this[_0x4954e1(0x150)];}[_0x291bb4(0x144)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0xdffd63=_0x291bb4;return{'width':this[_0xdffd63(0x152)],'height':this[_0xdffd63(0x172)]};}},F=class extends P{constructor(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481){const _0x342473=_0x291bb4;super(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481),N(this,_0x342473(0x150),{});}['setShapeType'](_0x38304c){const _0x173e1a=_0x291bb4;if(!_0x50e99f(_0x38304c))throw Error(_0x173e1a(0x11b)+_0x38304c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x38304c),this;}[_0x291bb4(0x15b)](_0x7b5985){const _0x30b6f7=_0x291bb4;var _0x3da1b9,_0x13ab25;return(_0x3da1b9=this[_0x30b6f7(0x150)])!=null&&_0x3da1b9['ln']||(this[_0x30b6f7(0x150)]['ln']={}),!((_0x13ab25=this[_0x30b6f7(0x150)])==null||(_0x13ab25=_0x13ab25['ln'])==null)&&_0x13ab25[_0x30b6f7(0x123)]||(this['shapeData']['ln'][_0x30b6f7(0x123)]={}),this[_0x30b6f7(0x150)]['ln']['startArrow'][_0x30b6f7(0x138)]=_0x7b5985,this;}[_0x291bb4(0x124)](_0x2ae5fb){const _0x2e6c9f=_0x291bb4;var _0x38f201,_0x415815;return(_0x38f201=this['shapeData'])!=null&&_0x38f201['ln']||(this[_0x2e6c9f(0x150)]['ln']={}),!((_0x415815=this[_0x2e6c9f(0x150)])==null||(_0x415815=_0x415815['ln'])==null)&&_0x415815['endArrow']||(this[_0x2e6c9f(0x150)]['ln'][_0x2e6c9f(0x16d)]={}),this['shapeData']['ln'][_0x2e6c9f(0x16d)]['type']=_0x2ae5fb,this;}[_0x291bb4(0x121)](_0x11812d){const _0x1a9e83=_0x291bb4;var _0x42c5c4,_0x23ed3d;return(_0x42c5c4=this[_0x1a9e83(0x150)])!=null&&_0x42c5c4['ln']||(this[_0x1a9e83(0x150)]['ln']={}),!((_0x23ed3d=this[_0x1a9e83(0x150)])==null||(_0x23ed3d=_0x23ed3d['ln'])==null)&&_0x23ed3d[_0x1a9e83(0x123)]||(this['shapeData']['ln']['startArrow']={}),this[_0x1a9e83(0x150)]['ln'][_0x1a9e83(0x123)][_0x1a9e83(0x122)]=_0x11812d,this;}['setEndArrowSize'](_0x3242fc){const _0x2dc2df=_0x291bb4;var _0x1d564b,_0x5502e5;return(_0x1d564b=this[_0x2dc2df(0x150)])!=null&&_0x1d564b['ln']||(this[_0x2dc2df(0x150)]['ln']={}),!((_0x5502e5=this['shapeData'])==null||(_0x5502e5=_0x5502e5['ln'])==null)&&_0x5502e5['endArrow']||(this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]={}),this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]['size']=_0x3242fc,this;}[_0x291bb4(0x187)](){const _0x4c41ec=_0x291bb4;return super[_0x4c41ec(0x187)]();}[_0x291bb4(0x178)](){const _0x2217a7=_0x291bb4;var _0xc8c934;return((_0xc8c934=this[_0x2217a7(0x150)])==null||(_0xc8c934=_0xc8c934[_0x2217a7(0x182)])==null?void 0x0:_0xc8c934['to'])||null;}[_0x291bb4(0x13f)](){const _0x3392e2=_0x291bb4;var _0x5c0d3d;return((_0x5c0d3d=this[_0x3392e2(0x150)])==null||(_0x5c0d3d=_0x5c0d3d[_0x3392e2(0x182)])==null?void 0x0:_0x5c0d3d['from'])||null;}};function I(_0x8d8981,_0x41c625,_0x18d7f5,_0x2c17fe,_0x579bac,_0x478df6){const _0x44c814=_0x291bb4;let _0x13026d=_0x579bac[_0x44c814(0x15e)](_0x8d8981,_0x41c625,_0x18d7f5);if(!_0x13026d)return null;let _0x3643ac=_0x478df6[_0x44c814(0x14e)]({'unitId':_0x8d8981,'subUnitId':_0x41c625,'drawingId':_0x18d7f5});if(!(_0x3643ac!=null&&_0x3643ac[_0x44c814(0x12a)]))return null;let {left:_0x1d2b1e=0x0,top:_0x1583e0=0x0,width:_0x5e3e5d=0x0,height:_0x4f5724=0x0,flipX:_0xd2a02c=!0x1,flipY:_0x4f96af=!0x1,angle:_0x4791c9}=_0x3643ac[_0x44c814(0x12a)];_0x13026d[_0x44c814(0x130)]({'width':_0x5e3e5d,'height':_0x4f5724});let _0x1ad6aa=_0x13026d[_0x44c814(0x13d)]()[_0x44c814(0x17c)](_0x3c642d=>_0x3c642d[_0x44c814(0x17a)]===_0x2c17fe);if(!_0x1ad6aa)return null;let _0x265a76=_0xd2a02c?_0x5e3e5d-_0x1ad6aa['x']:_0x1ad6aa['x'],_0x5b618b=_0x4f96af?_0x4f5724-_0x1ad6aa['y']:_0x1ad6aa['y'];if(_0x4791c9&&_0x4791c9!==0x0){let _0x299421=_0x4791c9*Math['PI']/0xb4,_0x39492f=Math[_0x44c814(0x135)](_0x299421),_0x5525dd=Math[_0x44c814(0x174)](_0x299421),_0x38d391=_0x5e3e5d/0x2,_0x46530b=_0x4f5724/0x2,_0x28443a=_0x265a76-_0x38d391,_0x533292=_0x5b618b-_0x46530b;_0x265a76=_0x38d391+_0x28443a*_0x39492f-_0x533292*_0x5525dd,_0x5b618b=_0x46530b+_0x28443a*_0x5525dd+_0x533292*_0x39492f;}_0x265a76+=_0x1d2b1e,_0x5b618b+=_0x1583e0;let _0x3de08d=_0x1ad6aa[_0x44c814(0x16f)]/0xea60;_0xd2a02c&&(_0x3de08d=0xb4-_0x3de08d),_0x4f96af&&(_0x3de08d=-_0x3de08d),_0x3de08d+=_0x4791c9||0x0,_0x3de08d=(_0x3de08d%0x168+0x168)%0x168;let _0x10413b=_0x468f4d({'left':_0x1d2b1e,'top':_0x1583e0,'width':_0x5e3e5d,'height':_0x4f5724},_0x4791c9||0x0);return{'point':{'x':_0x265a76,'y':_0x5b618b},'angle':_0x3de08d,'bounds':_0x10413b};}function L(_0xa9b7bd,_0x14eabe){const _0x58da9c=_0x291bb4;let _0x2e2e4e=_0x14eabe['x']-_0xa9b7bd['x'],_0xc900d6=_0x14eabe['y']-_0xa9b7bd['y'];return Math[_0x58da9c(0x160)](_0x2e2e4e)>=Math[_0x58da9c(0x160)](_0xc900d6)?_0x2e2e4e>=0x0?0xb4:0x0:_0xc900d6>=0x0?0x10e:0x5a;}function R(_0x1876c6,_0x44a1ab,_0x4ad0cb,_0x575d5c,_0x15f0b8,_0x8d7868,_0x2eed4a){const _0x2fa57e=_0x291bb4;let _0xce97b1=_0x8d7868['getShapeModel'](_0x1876c6,_0x44a1ab,_0x4ad0cb);if(!_0xce97b1)return null;let _0x1d05e7=_0x2eed4a[_0x2fa57e(0x14e)]({'unitId':_0x1876c6,'subUnitId':_0x44a1ab,'drawingId':_0x4ad0cb});if(!(_0x1d05e7!=null&&_0x1d05e7[_0x2fa57e(0x12a)]))return null;let {left:_0x4fd262=0x0,top:_0x4ffc94=0x0,width:_0x458028=0x0,height:_0x457bba=0x0,flipX:_0x1fe5d2=!0x1,flipY:_0x54e319=!0x1}=_0x1d05e7[_0x2fa57e(0x12a)];_0xce97b1[_0x2fa57e(0x130)]({'width':_0x458028,'height':_0x457bba});let _0x10505f=_0xce97b1['getConnectorLinePoints']();if(_0x10505f[_0x2fa57e(0x181)]<0x2)return null;let _0x40eed3=_0x575d5c?_0x10505f[0x0]:_0x10505f[_0x10505f['length']-0x1],_0x3de4b7=new _0x3af6ac({'left':_0x4fd262,'top':_0x4ffc94,'width':_0x458028,'height':_0x457bba,'flipX':_0x1fe5d2,'flipY':_0x54e319})[_0x2fa57e(0x18d)](_0x40eed3);return{'point':_0x3de4b7,'angle':L(_0x15f0b8['point'],_0x3de4b7),'bounds':{'left':_0x3de4b7['x'],'top':_0x3de4b7['y'],'width':0x0,'height':0x0}};}var z=class extends _0x435e82{async[_0x291bb4(0x134)](_0x489826){const _0x5a1b45=_0x291bb4;let {unitId:_0x4cf428,subUnitId:_0x575cd8,shapeId:_0x2be68f,shapeType:_0x40a2ed,shapeData:_0x2964f9,x:_0x5dd0bc,y:_0x52f6a2,width:_0x4eddcb,height:_0x4cc8e2}=_0x489826;return this[_0x5a1b45(0x113)][_0x5a1b45(0x12d)](_0x2d78f8['id'],{'unitId':_0x4cf428,'subUnitId':_0x575cd8,'shapeId':_0x2be68f,'shapeType':_0x40a2ed,'shapeData':_0x2964f9,'position':{'x':_0x5dd0bc,'y':_0x52f6a2},'width':_0x4eddcb,'height':_0x4cc8e2});}async[_0x291bb4(0x168)](_0x4c6c48){const _0x5b1464=_0x291bb4;let {unitId:_0x186aa3,subUnitId:_0x5e0a50,shapeId:_0x43d57f,shapeType:_0x505f08,shapeData:_0x3eb725,x:_0x5ca3af,y:_0x4b298a,width:_0x1d349c,height:_0x3c47aa}=_0x4c6c48;return this['_commandService'][_0x5b1464(0x12d)](_0x268798['id'],{'unitId':_0x186aa3,'subUnitId':_0x5e0a50,'shapeId':_0x43d57f,'shapeType':_0x505f08,'shapeData':_0x3eb725,'position':{'x':_0x5ca3af,'y':_0x4b298a},'width':_0x1d349c,'height':_0x3c47aa});}['newShape'](_0xe9eec1){const _0x4a5ed0=_0x291bb4;let _0x50e147=this[_0x4a5ed0(0x148)]()['getUnitId'](),_0x40e240=this[_0x4a5ed0(0x12f)]();if(_0xe9eec1){let _0x1c4947=new P(_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)],this[_0x4a5ed0(0x126)]);return this[_0x4a5ed0(0x18c)](_0x1c4947,_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)]),_0x1c4947;}return new P(_0x50e147,_0x40e240,_0x506b1e(),this['_injector']);}[_0x291bb4(0x188)](_0x23fbc3){const _0x4cdc57=_0x291bb4;let _0x1db8f6=this['getWorkbook']()[_0x4cdc57(0x189)](),_0x2250c2=this[_0x4cdc57(0x12f)]();if(_0x23fbc3){let _0x55f236=new F(_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)],this[_0x4cdc57(0x126)]);return this[_0x4cdc57(0x18c)](_0x55f236,_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)]),_0x55f236;}return new F(_0x1db8f6,_0x2250c2,_0x506b1e(),this['_injector']);}[_0x291bb4(0x17e)](){const _0x76f708=_0x291bb4;let _0x261ce5=this[_0x76f708(0x126)]['get'](_0x14d135),_0x3a1cde=this[_0x76f708(0x148)]()[_0x76f708(0x189)](),_0x19bb16=this[_0x76f708(0x12f)](),_0x569dae=_0x261ce5[_0x76f708(0x11d)](_0x3a1cde,_0x19bb16);if(!_0x569dae)return[];let _0x3b72ca=[];for(let [_0x2e4454,_0xad1a7a]of Object[_0x76f708(0x140)](_0x569dae))if(_0xad1a7a&&_0xad1a7a['drawingType']===_0x255a32[_0x76f708(0x146)]){let _0x57779d=new P(_0x3a1cde,_0x19bb16,_0x2e4454,this[_0x76f708(0x126)]);this[_0x76f708(0x18c)](_0x57779d,_0x3a1cde,_0x19bb16,_0x2e4454),_0x3b72ca['push'](_0x57779d);}return _0x3b72ca;}[_0x291bb4(0x15c)](_0x5bb6ee){const _0x2a2a98=_0x291bb4;let {unitId:_0x45bfff,subUnitId:_0x41b3a7,drawId:_0x1c60e3}=_0x5bb6ee;return this['_commandService'][_0x2a2a98(0x12d)](_0x1fa062['id'],{'unitId':_0x45bfff,'drawings':[{'unitId':_0x45bfff,'subUnitId':_0x41b3a7,'drawingId':_0x1c60e3,'drawingType':_0x255a32['DRAWING_SHAPE']}]});}async[_0x291bb4(0x120)](_0x5064f9){const _0xa912f7=_0x291bb4;let {connector:_0x47335f,startTarget:_0x58bd20,endTarget:_0x3c4d5e}=_0x5064f9;if(!_0x58bd20&&!_0x3c4d5e)return!0x1;let _0x5340b4=this[_0xa912f7(0x148)]()[_0xa912f7(0x189)](),_0x1b1df8=this[_0xa912f7(0x12f)](),_0x43c8c5=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x32f133),_0xf1d35b=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x41f792),_0x654580=_0x43c8c5[_0xa912f7(0x15e)](_0x5340b4,_0x1b1df8,_0x47335f[_0xa912f7(0x151)]);if(!_0x654580)return!0x1;let _0x12d271=_0x654580[_0xa912f7(0x179)](),_0x2d4bc0=_0x654580[_0xa912f7(0x125)](),_0x5d8595={};for(let _0x45403a of _0x654580['getAdjustNames']()){let _0x18aec5=_0x654580[_0xa912f7(0x119)](_0x45403a);_0x18aec5!==void 0x0&&(_0x5d8595[_0x45403a]=_0x18aec5);}let {startInfo:_0x86a1cb,endInfo:_0x38758a}=this[_0xa912f7(0x167)](_0x5340b4,_0x1b1df8,_0x47335f,_0x654580,_0x58bd20,_0x3c4d5e,_0x43c8c5,_0xf1d35b,_0x2d4bc0);if(!_0x86a1cb||!_0x38758a)return!0x1;let _0x4fe045=_0x1390bf(_0x59fc77(_0x86a1cb,_0x38758a,_0x12d271),_0x12d271),_0x45cc63={};return _0x58bd20?_0x45cc63['from']={'shapeId':_0x58bd20['shape'][_0xa912f7(0x151)],'cxnIndex':_0x58bd20[_0xa912f7(0x143)]}:_0x2d4bc0!=null&&_0x2d4bc0['from']&&(_0x45cc63[_0xa912f7(0x154)]=_0x2d4bc0[_0xa912f7(0x154)]),_0x3c4d5e?_0x45cc63['to']={'shapeId':_0x3c4d5e[_0xa912f7(0x183)][_0xa912f7(0x151)],'cxnIndex':_0x3c4d5e['connectionSiteIndex']}:_0x2d4bc0!=null&&_0x2d4bc0['to']&&(_0x45cc63['to']=_0x2d4bc0['to']),this[_0xa912f7(0x113)][_0xa912f7(0x12d)](_0x219dd2['id'],{'unitId':_0x5340b4,'subUnitId':_0x1b1df8,'connectorShapeId':_0x47335f[_0xa912f7(0x151)],'width':_0x4fe045[_0xa912f7(0x156)]['width'],'height':_0x4fe045['worldRect'][_0xa912f7(0x172)],'left':_0x4fe045[_0xa912f7(0x156)][_0xa912f7(0x184)],'top':_0x4fe045['worldRect'][_0xa912f7(0x162)],'flipX':_0x4fe045['worldRect']['flipX']||!0x1,'flipY':_0x4fe045[_0xa912f7(0x156)]['flipY']||!0x1,'oldAdjustValues':_0x5d8595,'newAdjustValues':_0x4fe045['adjustValues'],'newLineType':_0x4fe045[_0xa912f7(0x15d)],'oldLineType':_0x12d271,'rotation':_0x4fe045[_0xa912f7(0x145)],'oldRelation':_0x2d4bc0,'newRelation':_0x45cc63});}[_0x291bb4(0x18c)](_0x58b9c9,_0x1cc1bf,_0x30f73a,_0x51dd5a){const _0x2add98=_0x291bb4;let _0x50e1e5=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x41f792)[_0x2add98(0x14e)]({'unitId':_0x1cc1bf,'subUnitId':_0x30f73a,'drawingId':_0x51dd5a});if(_0x50e1e5!=null&&_0x50e1e5['transform']){var _0x4404ca,_0x2f7c6d,_0x250518,_0xf08f46;_0x58b9c9['x']=(_0x4404ca=_0x50e1e5['transform'][_0x2add98(0x184)])==null?0x0:_0x4404ca,_0x58b9c9['y']=(_0x2f7c6d=_0x50e1e5['transform'][_0x2add98(0x162)])==null?0x0:_0x2f7c6d,_0x58b9c9[_0x2add98(0x152)]=(_0x250518=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x152)])==null?_0x58b9c9[_0x2add98(0x152)]:_0x250518,_0x58b9c9[_0x2add98(0x172)]=(_0xf08f46=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x172)])==null?_0x58b9c9[_0x2add98(0x172)]:_0xf08f46;}let _0x5930c3=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x32f133)[_0x2add98(0x15e)](_0x1cc1bf,_0x30f73a,_0x51dd5a);if(_0x5930c3){_0x58b9c9[_0x2add98(0x110)]=_0x5930c3[_0x2add98(0x179)]();let _0x195736=_0x5930c3[_0x2add98(0x14f)]();_0x195736&&(_0x58b9c9[_0x2add98(0x150)]=JSON['parse'](JSON[_0x2add98(0x132)](_0x195736)));}}[_0x291bb4(0x167)](_0xd84ca8,_0x20bf47,_0x53f6f1,_0x44ea04,_0x416fa1,_0x5eb004,_0x1b7505,_0x41b98a,_0x3d0389){const _0x434b74=_0x291bb4;let _0xbe91d8=null,_0x2b4212=null;return _0x416fa1&&(_0xbe91d8=I(_0xd84ca8,_0x20bf47,_0x416fa1['shape']['drawId'],_0x416fa1[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0x5eb004&&(_0x2b4212=I(_0xd84ca8,_0x20bf47,_0x5eb004[_0x434b74(0x183)][_0x434b74(0x151)],_0x5eb004[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0xbe91d8||(_0xbe91d8=this['_resolveExistingOrFreeEndpoint'](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x0,_0x2b4212,_0x3d0389==null?void 0x0:_0x3d0389['from'],_0x1b7505,_0x41b98a)),_0x2b4212||(_0x2b4212=this[_0x434b74(0x13e)](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x1,_0xbe91d8,_0x3d0389==null?void 0x0:_0x3d0389['to'],_0x1b7505,_0x41b98a)),{'startInfo':_0xbe91d8,'endInfo':_0x2b4212};}['_resolveExistingOrFreeEndpoint'](_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x1b67d3,_0x4d75d6,_0x33a6e1){const _0x15cf70=_0x291bb4;if(_0x1b67d3){let _0x46c05e=I(_0x4d1515,_0x1ac046,_0x1b67d3[_0x15cf70(0x115)],_0x1b67d3[_0x15cf70(0x11a)],_0x4d75d6,_0x33a6e1);if(_0x46c05e)return _0x46c05e;}return _0x25a3d9?R(_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x4d75d6,_0x33a6e1):null;}};_0x435e82[_0x291bb4(0x169)](z);export{F as FConnectorShape,P as FShape};
|
|
1
|
+
const _0xb0776b=_0x2a57;function _0x2a57(_0x6fc16a,_0x253c8c){_0x6fc16a=_0x6fc16a-0x12b;const _0x2a6faa=_0x2a6f();let _0x2a5772=_0x2a6faa[_0x6fc16a];return _0x2a5772;}(function(_0x11f6fc,_0x4b252b){const _0x136aad=_0x2a57,_0x1f6f76=_0x11f6fc();while(!![]){try{const _0x3c30ac=-parseInt(_0x136aad(0x13b))/0x1+parseInt(_0x136aad(0x1a7))/0x2+parseInt(_0x136aad(0x19b))/0x3*(-parseInt(_0x136aad(0x136))/0x4)+parseInt(_0x136aad(0x15f))/0x5*(-parseInt(_0x136aad(0x12f))/0x6)+parseInt(_0x136aad(0x156))/0x7+parseInt(_0x136aad(0x19f))/0x8+-parseInt(_0x136aad(0x1a3))/0x9*(-parseInt(_0x136aad(0x1ae))/0xa);if(_0x3c30ac===_0x4b252b)break;else _0x1f6f76['push'](_0x1f6f76['shift']());}catch(_0x5a156c){_0x1f6f76['push'](_0x1f6f76['shift']());}}}(_0x2a6f,0xbaee5));import{ConnectorCoordinateTransform as _0x235482,ShapeArrowSizeEnum as _0x47593a,ShapeArrowTypeEnum as _0x25f79f,ShapeFillEnum as _0x2b9fa0,ShapeGradientTypeEnum as _0x465bb4,ShapeLineCapEnum as _0x6a8b99,ShapeLineDashEnum as _0xbe1de4,ShapeLineJoinEnum as _0x1e0034,ShapeLineTypeEnum as _0x43876c,ShapeTypeEnum as _0x58e817,computeConnectorRouteLayout as _0x53deb7,getBasicShapeRotateBound as _0x12c401,isConnectorShape as _0x1df30e,routeConnectorLineShape as _0x4773b1}from'@univerjs-pro/engine-shape';import{FEnum as _0x5f3d}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0xb8cf8d,DEFAULT_SHAPE_WIDTH as _0x5ef94c,InsertShapeCommand as _0x22bb9b,SetShapeDrawingDataCommand as _0x42294b,SheetsShapeService as _0x3c7127,UpdateConnectorRelationCommand as _0x319eb8}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x2bcb5a,generateRandomId as _0x793d5e}from'@univerjs/core';import{IDrawingManagerService as _0x36a4ec}from'@univerjs/drawing';import{SheetSkeletonService as _0x1f069c,convertPositionCellToSheetOverGrid as _0x433800}from'@univerjs/sheets';function _0x2a6f(){const _0x4de767=['getStartConnectInfo','stroke','updateShape','SolidFill','connectionSiteIndex','getShapes','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','transform','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','shapeId','getConnectorLinePoints','endArrow','getUnitId','\x20not\x20found','unitId','getAdjustNames','updateContext','abs','getDrawingByParam','getAdjustPoints','setHeight','setEndArrowType','getShapeModel','drawId','symbol','NoFill','2164722XQKZXQ','DRAWING_SHAPE','type','ang','size','worldRect','getSize','adjustValues','setShapeType','54190WRRnrV','getShapeData','relation','setStrokeLineDashType','getPosition','getShapeId','lineStrokeType','getSheetId','width','setStrokeColor','getAdjustValueByName','ShapeArrowTypeEnum','left','setShapeGradientFill','subUnitId','ShapeLineTypeEnum','_resolveExistingOrFreeEndpoint','ShapeGradientTypeEnum','shape','ShapeTypeEnum','executeCommand','isLineShape','build','shapeData','keys','sin','setShapeSolidFill','localToWorld','color','height','extend','constructor','drawingType','cxnIndex','get','setStartArrowType','string','startArrow','defineProperty','getWorkbook','toPrimitive','index','getDrawingPoints','parse','gradientStops','object','flipX','setEndArrowSize','dashType','getShapeType','getEndConnectInfo','setPosition','lineJoinType','setWidth','find','iterator','_commandService','ShapeArrowSizeEnum','getConnectionSiteList','entries','18qGmYyg','ShapeFillEnum','shapeType','setStrokeLineType','11815400NhPamH','lineType','top','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','313623uaNRvv','ShapeLineJoinEnum',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','_injector','1543654ZPGspo','setAbsolutePosition','capType','Skeleton\x20for\x20unitId\x20','length','fillType','fill','670ctxNom','ShapeLineCapEnum','\x20and\x20subUnitId\x20','function','rotation','_preloadShapeProperties','ensureSkeleton','768krzJCB','cos','setStrokeLineCapType','insertShape','prototype','_resolveEndpoints','point','1008948IXSYnz','from','setNoneFill','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','gradientType','1226392loKCvS'];_0x2a6f=function(){return _0x4de767;};return _0x2a6f();}import{ISheetDrawingService as _0x3e52bb,RemoveSheetDrawingCommand as _0x49b49f}from'@univerjs/sheets-drawing';import{FWorksheet as _0x30bddd}from'@univerjs/sheets/facade';var k=class extends _0x5f3d{get[_0xb0776b(0x172)](){return _0x58e817;}get[_0xb0776b(0x19c)](){return _0x2b9fa0;}get[_0xb0776b(0x170)](){return _0x465bb4;}get[_0xb0776b(0x16e)](){return _0x43876c;}get['ShapeLineDashEnum'](){return _0xbe1de4;}get[_0xb0776b(0x1af)](){return _0x6a8b99;}get[_0xb0776b(0x1a4)](){return _0x1e0034;}get[_0xb0776b(0x16a)](){return _0x25f79f;}get[_0xb0776b(0x198)](){return _0x47593a;}};_0x5f3d[_0xb0776b(0x17d)](k);function A(_0x54451f){'@babel/helpers - typeof';const _0x2c5adc=_0xb0776b;return A=typeof Symbol==_0x2c5adc(0x12b)&&typeof Symbol[_0x2c5adc(0x196)]==_0x2c5adc(0x154)?function(_0x545255){return typeof _0x545255;}:function(_0x13d18a){const _0x1ff158=_0x2c5adc;return _0x13d18a&&typeof Symbol==_0x1ff158(0x12b)&&_0x13d18a[_0x1ff158(0x17e)]===Symbol&&_0x13d18a!==Symbol[_0x1ff158(0x133)]?'symbol':typeof _0x13d18a;},A(_0x54451f);}function j(_0x4ab8c6,_0x467507){const _0x5755f2=_0xb0776b;if(A(_0x4ab8c6)!=_0x5755f2(0x18c)||!_0x4ab8c6)return _0x4ab8c6;var _0x3f9094=_0x4ab8c6[Symbol[_0x5755f2(0x187)]];if(_0x3f9094!==void 0x0){var _0x406079=_0x3f9094['call'](_0x4ab8c6,_0x467507||'default');if(A(_0x406079)!='object')return _0x406079;throw TypeError(_0x5755f2(0x142));}return(_0x467507==='string'?String:Number)(_0x4ab8c6);}function M(_0xec4f6f){const _0x452205=_0xb0776b;var _0x198843=j(_0xec4f6f,_0x452205(0x183));return A(_0x198843)==_0x452205(0x154)?_0x198843:_0x198843+'';}function N(_0x170523,_0x3ba230,_0x480d47){const _0x45879e=_0xb0776b;return(_0x3ba230=M(_0x3ba230))in _0x170523?Object[_0x45879e(0x185)](_0x170523,_0x3ba230,{'value':_0x480d47,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x170523[_0x3ba230]=_0x480d47,_0x170523;}var P=class{constructor(_0x5bef26,_0x3d0eb6,_0x1a81e3,_0x55f149){const _0x5377cc=_0xb0776b;N(this,_0x5377cc(0x14a),void 0x0),N(this,_0x5377cc(0x16d),void 0x0),N(this,'drawId',void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5377cc(0x167),_0x5ef94c),N(this,'height',_0xb8cf8d),N(this,_0x5377cc(0x19d),void 0x0),N(this,_0x5377cc(0x176),{}),N(this,_0x5377cc(0x1a6),void 0x0),this[_0x5377cc(0x14a)]=_0x5bef26,this[_0x5377cc(0x16d)]=_0x3d0eb6,this['drawId']=_0x1a81e3||_0x793d5e(),this['_injector']=_0x55f149;}[_0xb0776b(0x192)](_0x1ce47b,_0x4643e4,_0x4ffed8,_0x40d41a){const _0x3693c1=_0xb0776b;let _0x2ba4e0=this['_injector'][_0x3693c1(0x181)](_0x1f069c)[_0x3693c1(0x12e)](this['unitId'],this[_0x3693c1(0x16d)]);if(!_0x2ba4e0)throw Error(_0x3693c1(0x1aa)+this[_0x3693c1(0x14a)]+_0x3693c1(0x1b0)+this[_0x3693c1(0x16d)]+'\x20not\x20found');let {transform:_0x2cedac}=_0x433800(this[_0x3693c1(0x14a)],this['subUnitId'],{'row':_0x1ce47b,'column':_0x4643e4,'rowOffset':_0x4ffed8,'columnOffset':_0x40d41a},0x1,0x1,_0x2ba4e0);return this['x']=_0x2cedac[_0x3693c1(0x16b)],this['y']=_0x2cedac['top'],this;}[_0xb0776b(0x1a8)](_0xaf78a9,_0x1173df){return this['x']=_0xaf78a9,this['y']=_0x1173df,this;}[_0xb0776b(0x15e)](_0x5789a6){const _0x42436a=_0xb0776b;return this[_0x42436a(0x19d)]=_0x5789a6,this;}[_0xb0776b(0x179)](_0x5393e9,_0x190c39){const _0xb2ad73=_0xb0776b;return this[_0xb2ad73(0x176)]['fill']||(this['shapeData']['fill']={}),this[_0xb2ad73(0x176)]['fill'][_0xb2ad73(0x1ac)]=_0x2b9fa0[_0xb2ad73(0x13f)],_0x5393e9!==void 0x0&&(this['shapeData'][_0xb2ad73(0x1ad)][_0xb2ad73(0x17b)]=_0x5393e9),_0x190c39!==void 0x0&&(this[_0xb2ad73(0x176)][_0xb2ad73(0x1ad)]['opacity']=_0x190c39),this;}[_0xb0776b(0x16c)](_0x30e963,_0x526c83,_0x116158){const _0x2af808=_0xb0776b;if(_0x526c83===void 0x0||_0x526c83[_0x2af808(0x1ab)]===0x0)throw Error(_0x2af808(0x139));return this[_0x2af808(0x176)]['fill']||(this[_0x2af808(0x176)][_0x2af808(0x1ad)]={}),this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x18b)]=_0x526c83,this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x1ac)]=_0x2b9fa0['GradientFill'],this[_0x2af808(0x176)][_0x2af808(0x1ad)][_0x2af808(0x13a)]=_0x30e963,_0x116158!==void 0x0&&(this[_0x2af808(0x176)][_0x2af808(0x1ad)]['gradientAngle']=_0x116158),this;}[_0xb0776b(0x138)](){const _0x400fac=_0xb0776b;return this['shapeData'][_0x400fac(0x1ad)]={'fillType':_0x2b9fa0[_0x400fac(0x155)]},this;}[_0xb0776b(0x168)](_0x37134c){const _0x2168c0=_0xb0776b;return this[_0x2168c0(0x176)][_0x2168c0(0x13d)]||(this[_0x2168c0(0x176)][_0x2168c0(0x13d)]={}),this[_0x2168c0(0x176)][_0x2168c0(0x13d)]['color']=_0x37134c,this;}['setStrokeWidth'](_0x372056){const _0x56906a=_0xb0776b;return this[_0x56906a(0x176)][_0x56906a(0x13d)]||(this['shapeData']['stroke']={}),this[_0x56906a(0x176)][_0x56906a(0x13d)][_0x56906a(0x167)]=_0x372056,this;}[_0xb0776b(0x162)](_0x2e8edd){const _0x5c169b=_0xb0776b;return this[_0x5c169b(0x176)]['stroke']||(this['shapeData']['stroke']={}),this[_0x5c169b(0x176)][_0x5c169b(0x13d)][_0x5c169b(0x18f)]=_0x2e8edd,this;}['setStrokeLineJoinType'](_0x5b555f){const _0xf1a310=_0xb0776b;return this['shapeData'][_0xf1a310(0x13d)]||(this[_0xf1a310(0x176)][_0xf1a310(0x13d)]={}),this['shapeData'][_0xf1a310(0x13d)][_0xf1a310(0x193)]=_0x5b555f,this;}[_0xb0776b(0x131)](_0x21d12e){const _0x5863f3=_0xb0776b;return this[_0x5863f3(0x176)]['stroke']||(this[_0x5863f3(0x176)][_0x5863f3(0x13d)]={}),this['shapeData'][_0x5863f3(0x13d)][_0x5863f3(0x1a9)]=_0x21d12e,this;}['setStrokeOpacity'](_0x4a61ea){const _0x196012=_0xb0776b;return this[_0x196012(0x176)][_0x196012(0x13d)]||(this[_0x196012(0x176)][_0x196012(0x13d)]={}),this[_0x196012(0x176)][_0x196012(0x13d)]['opacity']=_0x4a61ea,this;}[_0xb0776b(0x19e)](_0x322036){const _0x3018af=_0xb0776b;return this[_0x3018af(0x176)][_0x3018af(0x13d)]||(this[_0x3018af(0x176)][_0x3018af(0x13d)]={}),this['shapeData']['stroke'][_0x3018af(0x165)]=_0x322036,this;}[_0xb0776b(0x194)](_0x256229){const _0x1f64ab=_0xb0776b;return this[_0x1f64ab(0x167)]=_0x256229,this;}[_0xb0776b(0x150)](_0x53d2ba){return this['height']=_0x53d2ba,this;}[_0xb0776b(0x174)](){const _0xc3040c=_0xb0776b;let _0x1869bf=this['_injector'][_0xc3040c(0x181)](_0x3c7127)[_0xc3040c(0x152)](this[_0xc3040c(0x14a)],this['subUnitId'],this['drawId']);return _0x1869bf?_0x1df30e(_0x1869bf[_0xc3040c(0x190)]()):this[_0xc3040c(0x19d)]?_0x1df30e(this[_0xc3040c(0x19d)]):!0x1;}['getConnectionSites'](){const _0x5f7b2d=_0xb0776b;let _0x40369c=this[_0x5f7b2d(0x1a6)][_0x5f7b2d(0x181)](_0x3c7127)[_0x5f7b2d(0x152)](this['unitId'],this[_0x5f7b2d(0x16d)],this[_0x5f7b2d(0x153)]);if(!_0x40369c)return[];let _0x13529b=this[_0x5f7b2d(0x1a6)]['get'](_0x36a4ec)[_0x5f7b2d(0x14e)]({'unitId':this[_0x5f7b2d(0x14a)],'subUnitId':this[_0x5f7b2d(0x16d)],'drawingId':this[_0x5f7b2d(0x153)]});if(!(_0x13529b!=null&&_0x13529b[_0x5f7b2d(0x143)]))return[];let {width:_0x4134db=0x0,height:_0x133441=0x0}=_0x13529b[_0x5f7b2d(0x143)];return _0x40369c[_0x5f7b2d(0x14c)]({'width':_0x4134db,'height':_0x133441}),_0x40369c['getConnectionSiteList']();}[_0xb0776b(0x14f)](){const _0x1e1995=_0xb0776b;let _0x15c4bc=this[_0x1e1995(0x1a6)]['get'](_0x3c7127)['getShapeModel'](this[_0x1e1995(0x14a)],this['subUnitId'],this['drawId']);if(!_0x15c4bc)return[];let _0x1bde29=this[_0x1e1995(0x1a6)]['get'](_0x36a4ec)['getDrawingByParam']({'unitId':this[_0x1e1995(0x14a)],'subUnitId':this[_0x1e1995(0x16d)],'drawingId':this[_0x1e1995(0x153)]});if(!(_0x1bde29!=null&&_0x1bde29[_0x1e1995(0x143)]))return[];let {width:_0x5d865a=0x0,height:_0x4c0c17=0x0}=_0x1bde29[_0x1e1995(0x143)];return _0x15c4bc[_0x1e1995(0x14c)]({'width':_0x5d865a,'height':_0x4c0c17}),_0x15c4bc[_0x1e1995(0x189)]();}[_0xb0776b(0x146)](){const _0x34f45e=_0xb0776b;let _0xd71229=this['_injector'][_0x34f45e(0x181)](_0x3c7127)['getShapeModel'](this['unitId'],this[_0x34f45e(0x16d)],this['drawId']);if(!_0xd71229||!_0x1df30e(_0xd71229[_0x34f45e(0x190)]()))return[];let _0x4fdeb5=this['_injector'][_0x34f45e(0x181)](_0x36a4ec)[_0x34f45e(0x14e)]({'unitId':this[_0x34f45e(0x14a)],'subUnitId':this['subUnitId'],'drawingId':this[_0x34f45e(0x153)]});if(!(_0x4fdeb5!=null&&_0x4fdeb5[_0x34f45e(0x143)]))return[];let {width:_0xaeb483=0x0,height:_0x1dddd6=0x0}=_0x4fdeb5[_0x34f45e(0x143)];return _0xd71229[_0x34f45e(0x14c)]({'width':_0xaeb483,'height':_0x1dddd6}),_0xd71229[_0x34f45e(0x146)]();}[_0xb0776b(0x13c)](){const _0x2cfc6f=_0xb0776b;var _0x28d82b;let _0x2e191f=this[_0x2cfc6f(0x1a6)][_0x2cfc6f(0x181)](_0x3c7127)[_0x2cfc6f(0x152)](this['unitId'],this['subUnitId'],this[_0x2cfc6f(0x153)]);return _0x2e191f?(_0x28d82b=_0x2e191f['getStartConnectInfo']())==null?null:_0x28d82b:null;}[_0xb0776b(0x191)](){const _0x2bf6fd=_0xb0776b;var _0x459423;let _0x104c17=this['_injector']['get'](_0x3c7127)[_0x2bf6fd(0x152)](this[_0x2bf6fd(0x14a)],this[_0x2bf6fd(0x16d)],this[_0x2bf6fd(0x153)]);return _0x104c17?(_0x459423=_0x104c17['getEndConnectInfo']())==null?null:_0x459423:null;}[_0xb0776b(0x175)](){const _0x2bfcc1=_0xb0776b;var _0x309126,_0x1c9ded;if(!this['shapeType'])throw Error(_0x2bfcc1(0x1a2));if(this['x']===0x0||this['y']===0x0){let _0x149bfa=this[_0x2bfcc1(0x1a6)][_0x2bfcc1(0x181)](_0x1f069c)[_0x2bfcc1(0x12e)](this[_0x2bfcc1(0x14a)],this['subUnitId']);if(!_0x149bfa)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x2bfcc1(0x14a)]+'\x20and\x20subUnitId\x20'+this[_0x2bfcc1(0x16d)]+_0x2bfcc1(0x149));let {transform:_0x57d651}=_0x433800(this[_0x2bfcc1(0x14a)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x149bfa);this['x']=this['x']>0x0?this['x']:_0x57d651[_0x2bfcc1(0x16b)],this['y']=this['y']>0x0?this['y']:_0x57d651[_0x2bfcc1(0x1a1)];}return this[_0x2bfcc1(0x167)]=(_0x309126=this[_0x2bfcc1(0x167)])==null?_0x5ef94c:_0x309126,this['height']=(_0x1c9ded=this['height'])==null?_0xb8cf8d:_0x1c9ded,{'unitId':this['unitId'],'subUnitId':this[_0x2bfcc1(0x16d)],'shapeId':this[_0x2bfcc1(0x153)],'shapeType':this['shapeType'],'shapeData':Object[_0x2bfcc1(0x177)](this[_0x2bfcc1(0x176)])[_0x2bfcc1(0x1ab)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x2bfcc1(0x17c)]};}[_0xb0776b(0x164)](){const _0x2810c0=_0xb0776b;return this[_0x2810c0(0x153)];}[_0xb0776b(0x190)](){const _0x847898=_0xb0776b;return this[_0x847898(0x19d)];}[_0xb0776b(0x160)](){const _0x33cfbd=_0xb0776b;return this[_0x33cfbd(0x176)];}[_0xb0776b(0x163)](){return{'x':this['x'],'y':this['y']};}[_0xb0776b(0x15c)](){const _0x4161e2=_0xb0776b;return{'width':this[_0x4161e2(0x167)],'height':this[_0x4161e2(0x17c)]};}},F=class extends P{constructor(_0xb0be27,_0x199b63,_0x3892bd,_0x359902){const _0x3c97d9=_0xb0776b;super(_0xb0be27,_0x199b63,_0x3892bd,_0x359902),N(this,_0x3c97d9(0x176),{});}[_0xb0776b(0x15e)](_0x3742ac){const _0x50f9e1=_0xb0776b;if(!_0x1df30e(_0x3742ac))throw Error(_0x50f9e1(0x144)+_0x3742ac+_0x50f9e1(0x1a5));return super[_0x50f9e1(0x15e)](_0x3742ac),this;}[_0xb0776b(0x182)](_0x23503e){const _0x210938=_0xb0776b;var _0x426cc2,_0x905e40;return(_0x426cc2=this[_0x210938(0x176)])!=null&&_0x426cc2['ln']||(this['shapeData']['ln']={}),!((_0x905e40=this['shapeData'])==null||(_0x905e40=_0x905e40['ln'])==null)&&_0x905e40['startArrow']||(this[_0x210938(0x176)]['ln'][_0x210938(0x184)]={}),this[_0x210938(0x176)]['ln'][_0x210938(0x184)][_0x210938(0x158)]=_0x23503e,this;}[_0xb0776b(0x151)](_0xc6d59a){const _0x2e940a=_0xb0776b;var _0x5d0416,_0x4368de;return(_0x5d0416=this[_0x2e940a(0x176)])!=null&&_0x5d0416['ln']||(this[_0x2e940a(0x176)]['ln']={}),!((_0x4368de=this[_0x2e940a(0x176)])==null||(_0x4368de=_0x4368de['ln'])==null)&&_0x4368de[_0x2e940a(0x147)]||(this[_0x2e940a(0x176)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x2e940a(0x147)][_0x2e940a(0x158)]=_0xc6d59a,this;}['setStartArrowSize'](_0x2d84e0){const _0x562fa9=_0xb0776b;var _0x47c13c,_0x34fba9;return(_0x47c13c=this[_0x562fa9(0x176)])!=null&&_0x47c13c['ln']||(this[_0x562fa9(0x176)]['ln']={}),!((_0x34fba9=this[_0x562fa9(0x176)])==null||(_0x34fba9=_0x34fba9['ln'])==null)&&_0x34fba9[_0x562fa9(0x184)]||(this[_0x562fa9(0x176)]['ln'][_0x562fa9(0x184)]={}),this['shapeData']['ln'][_0x562fa9(0x184)][_0x562fa9(0x15a)]=_0x2d84e0,this;}[_0xb0776b(0x18e)](_0x552e00){const _0x46759a=_0xb0776b;var _0x1c922e,_0x3e7328;return(_0x1c922e=this[_0x46759a(0x176)])!=null&&_0x1c922e['ln']||(this[_0x46759a(0x176)]['ln']={}),!((_0x3e7328=this['shapeData'])==null||(_0x3e7328=_0x3e7328['ln'])==null)&&_0x3e7328[_0x46759a(0x147)]||(this[_0x46759a(0x176)]['ln']['endArrow']={}),this[_0x46759a(0x176)]['ln']['endArrow'][_0x46759a(0x15a)]=_0x552e00,this;}['build'](){const _0x3eae23=_0xb0776b;return super[_0x3eae23(0x175)]();}[_0xb0776b(0x191)](){const _0x1f64e4=_0xb0776b;var _0x50d9f6;return((_0x50d9f6=this[_0x1f64e4(0x176)])==null||(_0x50d9f6=_0x50d9f6[_0x1f64e4(0x161)])==null?void 0x0:_0x50d9f6['to'])||null;}[_0xb0776b(0x13c)](){const _0x2e1e2f=_0xb0776b;var _0x241f15;return((_0x241f15=this['shapeData'])==null||(_0x241f15=_0x241f15[_0x2e1e2f(0x161)])==null?void 0x0:_0x241f15[_0x2e1e2f(0x137)])||null;}};function I(_0x51b27b,_0x50da3a,_0x319525,_0x4147e1,_0xdc3f8c,_0x9a5606){const _0x14f547=_0xb0776b;let _0xd21e10=_0xdc3f8c[_0x14f547(0x152)](_0x51b27b,_0x50da3a,_0x319525);if(!_0xd21e10)return null;let _0x202164=_0x9a5606[_0x14f547(0x14e)]({'unitId':_0x51b27b,'subUnitId':_0x50da3a,'drawingId':_0x319525});if(!(_0x202164!=null&&_0x202164[_0x14f547(0x143)]))return null;let {left:_0x8b5e95=0x0,top:_0x448479=0x0,width:_0x1bc3cf=0x0,height:_0x335391=0x0,flipX:_0xde98a9=!0x1,flipY:_0xaa6902=!0x1,angle:_0x32f097}=_0x202164[_0x14f547(0x143)];_0xd21e10[_0x14f547(0x14c)]({'width':_0x1bc3cf,'height':_0x335391});let _0x3d0d02=_0xd21e10[_0x14f547(0x199)]()[_0x14f547(0x195)](_0x4b3e87=>_0x4b3e87[_0x14f547(0x188)]===_0x4147e1);if(!_0x3d0d02)return null;let _0x4d5c4a=_0xde98a9?_0x1bc3cf-_0x3d0d02['x']:_0x3d0d02['x'],_0x494b0c=_0xaa6902?_0x335391-_0x3d0d02['y']:_0x3d0d02['y'];if(_0x32f097&&_0x32f097!==0x0){let _0x506706=_0x32f097*Math['PI']/0xb4,_0x23b90b=Math[_0x14f547(0x130)](_0x506706),_0x54d7b1=Math[_0x14f547(0x178)](_0x506706),_0x281add=_0x1bc3cf/0x2,_0x74a272=_0x335391/0x2,_0x9a8f41=_0x4d5c4a-_0x281add,_0x131aa7=_0x494b0c-_0x74a272;_0x4d5c4a=_0x281add+_0x9a8f41*_0x23b90b-_0x131aa7*_0x54d7b1,_0x494b0c=_0x74a272+_0x9a8f41*_0x54d7b1+_0x131aa7*_0x23b90b;}_0x4d5c4a+=_0x8b5e95,_0x494b0c+=_0x448479;let _0x53a141=_0x3d0d02[_0x14f547(0x159)]/0xea60;_0xde98a9&&(_0x53a141=0xb4-_0x53a141),_0xaa6902&&(_0x53a141=-_0x53a141),_0x53a141+=_0x32f097||0x0,_0x53a141=(_0x53a141%0x168+0x168)%0x168;let _0x5b9b0e=_0x12c401({'left':_0x8b5e95,'top':_0x448479,'width':_0x1bc3cf,'height':_0x335391},_0x32f097||0x0);return{'point':{'x':_0x4d5c4a,'y':_0x494b0c},'angle':_0x53a141,'bounds':_0x5b9b0e};}function L(_0x43b04f,_0x3255a1){const _0x40ca40=_0xb0776b;let _0x2bff51=_0x3255a1['x']-_0x43b04f['x'],_0x2445ce=_0x3255a1['y']-_0x43b04f['y'];return Math[_0x40ca40(0x14d)](_0x2bff51)>=Math['abs'](_0x2445ce)?_0x2bff51>=0x0?0xb4:0x0:_0x2445ce>=0x0?0x10e:0x5a;}function R(_0x4408ae,_0x148659,_0x20c402,_0x45bc69,_0xa524,_0x417021,_0x420478){const _0x4acb02=_0xb0776b;let _0x2b6f19=_0x417021[_0x4acb02(0x152)](_0x4408ae,_0x148659,_0x20c402);if(!_0x2b6f19)return null;let _0x1133d3=_0x420478[_0x4acb02(0x14e)]({'unitId':_0x4408ae,'subUnitId':_0x148659,'drawingId':_0x20c402});if(!(_0x1133d3!=null&&_0x1133d3[_0x4acb02(0x143)]))return null;let {left:_0x51c7fe=0x0,top:_0x1a5c39=0x0,width:_0x488760=0x0,height:_0x5ae787=0x0,flipX:_0x572315=!0x1,flipY:_0x2287fc=!0x1}=_0x1133d3['transform'];_0x2b6f19[_0x4acb02(0x14c)]({'width':_0x488760,'height':_0x5ae787});let _0xcd99a9=_0x2b6f19['getConnectorLinePoints']();if(_0xcd99a9[_0x4acb02(0x1ab)]<0x2)return null;let _0x16c0e6=_0x45bc69?_0xcd99a9[0x0]:_0xcd99a9[_0xcd99a9[_0x4acb02(0x1ab)]-0x1],_0x4e9889=new _0x235482({'left':_0x51c7fe,'top':_0x1a5c39,'width':_0x488760,'height':_0x5ae787,'flipX':_0x572315,'flipY':_0x2287fc})[_0x4acb02(0x17a)](_0x16c0e6);return{'point':_0x4e9889,'angle':L(_0xa524[_0x4acb02(0x135)],_0x4e9889),'bounds':{'left':_0x4e9889['x'],'top':_0x4e9889['y'],'width':0x0,'height':0x0}};}var z=class extends _0x30bddd{async[_0xb0776b(0x132)](_0x627784){const _0x57db04=_0xb0776b;let {unitId:_0x5756c5,subUnitId:_0x3bad9f,shapeId:_0x4cfa57,shapeType:_0x49d2e9,shapeData:_0x5d78e1,x:_0x545473,y:_0x20460b,width:_0x3a1ae3,height:_0x2bd113}=_0x627784;return this[_0x57db04(0x197)][_0x57db04(0x173)](_0x22bb9b['id'],{'unitId':_0x5756c5,'subUnitId':_0x3bad9f,'shapeId':_0x4cfa57,'shapeType':_0x49d2e9,'shapeData':_0x5d78e1,'position':{'x':_0x545473,'y':_0x20460b},'width':_0x3a1ae3,'height':_0x2bd113});}async[_0xb0776b(0x13e)](_0x124b5d){const _0x2e4499=_0xb0776b;let {unitId:_0x1896be,subUnitId:_0x4ec84b,shapeId:_0x3857ac,shapeType:_0x466e47,shapeData:_0xdac934,x:_0x27c39b,y:_0xb81d84,width:_0x1cb0a4,height:_0x1571db}=_0x124b5d;return this['_commandService'][_0x2e4499(0x173)](_0x42294b['id'],{'unitId':_0x1896be,'subUnitId':_0x4ec84b,'shapeId':_0x3857ac,'shapeType':_0x466e47,'shapeData':_0xdac934,'position':{'x':_0x27c39b,'y':_0xb81d84},'width':_0x1cb0a4,'height':_0x1571db});}['newShape'](_0x150a61){const _0x41885c=_0xb0776b;let _0x1bf5cc=this[_0x41885c(0x186)]()[_0x41885c(0x148)](),_0x47a386=this[_0x41885c(0x166)]();if(_0x150a61){let _0x5c5a48=new P(_0x1bf5cc,_0x47a386,_0x150a61[_0x41885c(0x153)],this['_injector']);return this['_preloadShapeProperties'](_0x5c5a48,_0x1bf5cc,_0x47a386,_0x150a61[_0x41885c(0x153)]),_0x5c5a48;}return new P(_0x1bf5cc,_0x47a386,_0x793d5e(),this[_0x41885c(0x1a6)]);}['newConnector'](_0x905f52){const _0x406376=_0xb0776b;let _0x2dbf94=this[_0x406376(0x186)]()[_0x406376(0x148)](),_0x502d84=this[_0x406376(0x166)]();if(_0x905f52){let _0x52f0d8=new F(_0x2dbf94,_0x502d84,_0x905f52[_0x406376(0x153)],this[_0x406376(0x1a6)]);return this[_0x406376(0x12d)](_0x52f0d8,_0x2dbf94,_0x502d84,_0x905f52['drawId']),_0x52f0d8;}return new F(_0x2dbf94,_0x502d84,_0x793d5e(),this[_0x406376(0x1a6)]);}[_0xb0776b(0x141)](){const _0x5e399f=_0xb0776b;let _0x3b8fbb=this[_0x5e399f(0x1a6)][_0x5e399f(0x181)](_0x3e52bb),_0x540b19=this['getWorkbook']()[_0x5e399f(0x148)](),_0xb7679d=this['getSheetId'](),_0x199e0f=_0x3b8fbb['getDrawingData'](_0x540b19,_0xb7679d);if(!_0x199e0f)return[];let _0x22af9e=[];for(let [_0x3310ef,_0x598448]of Object[_0x5e399f(0x19a)](_0x199e0f))if(_0x598448&&_0x598448[_0x5e399f(0x17f)]===_0x2bcb5a[_0x5e399f(0x157)]){let _0xd70a5c=new P(_0x540b19,_0xb7679d,_0x3310ef,this[_0x5e399f(0x1a6)]);this[_0x5e399f(0x12d)](_0xd70a5c,_0x540b19,_0xb7679d,_0x3310ef),_0x22af9e['push'](_0xd70a5c);}return _0x22af9e;}['removeShape'](_0x13ac09){const _0x1ba56b=_0xb0776b;let {unitId:_0x26645d,subUnitId:_0x35788d,drawId:_0x3dc22e}=_0x13ac09;return this[_0x1ba56b(0x197)][_0x1ba56b(0x173)](_0x49b49f['id'],{'unitId':_0x26645d,'drawings':[{'unitId':_0x26645d,'subUnitId':_0x35788d,'drawingId':_0x3dc22e,'drawingType':_0x2bcb5a[_0x1ba56b(0x157)]}]});}async['connectShapes'](_0x198ac3){const _0x493f68=_0xb0776b;let {connector:_0x4e5b46,startTarget:_0x325204,endTarget:_0x12bf39}=_0x198ac3;if(!_0x325204&&!_0x12bf39)return!0x1;let _0x39efb6=this[_0x493f68(0x186)]()[_0x493f68(0x148)](),_0x3bc3d2=this[_0x493f68(0x166)](),_0x3e8096=this['_injector'][_0x493f68(0x181)](_0x3c7127),_0x5efdfc=this[_0x493f68(0x1a6)][_0x493f68(0x181)](_0x36a4ec),_0x3892c9=_0x3e8096[_0x493f68(0x152)](_0x39efb6,_0x3bc3d2,_0x4e5b46[_0x493f68(0x153)]);if(!_0x3892c9)return!0x1;let _0x56a3e3=_0x3892c9[_0x493f68(0x190)](),_0x2fa108=_0x3892c9['getShapeRelation'](),_0x10da26={};for(let _0x11d23e of _0x3892c9[_0x493f68(0x14b)]()){let _0x2b2fd1=_0x3892c9[_0x493f68(0x169)](_0x11d23e);_0x2b2fd1!==void 0x0&&(_0x10da26[_0x11d23e]=_0x2b2fd1);}let {startInfo:_0x9f04b7,endInfo:_0x314e96}=this[_0x493f68(0x134)](_0x39efb6,_0x3bc3d2,_0x4e5b46,_0x3892c9,_0x325204,_0x12bf39,_0x3e8096,_0x5efdfc,_0x2fa108);if(!_0x9f04b7||!_0x314e96)return!0x1;let _0x1ac280=_0x53deb7(_0x4773b1(_0x9f04b7,_0x314e96,_0x56a3e3),_0x56a3e3),_0xc009d4={};return _0x325204?_0xc009d4['from']={'shapeId':_0x325204[_0x493f68(0x171)][_0x493f68(0x153)],'cxnIndex':_0x325204[_0x493f68(0x140)]}:_0x2fa108!=null&&_0x2fa108[_0x493f68(0x137)]&&(_0xc009d4[_0x493f68(0x137)]=_0x2fa108[_0x493f68(0x137)]),_0x12bf39?_0xc009d4['to']={'shapeId':_0x12bf39[_0x493f68(0x171)][_0x493f68(0x153)],'cxnIndex':_0x12bf39[_0x493f68(0x140)]}:_0x2fa108!=null&&_0x2fa108['to']&&(_0xc009d4['to']=_0x2fa108['to']),this[_0x493f68(0x197)][_0x493f68(0x173)](_0x319eb8['id'],{'unitId':_0x39efb6,'subUnitId':_0x3bc3d2,'connectorShapeId':_0x4e5b46['drawId'],'width':_0x1ac280['worldRect'][_0x493f68(0x167)],'height':_0x1ac280['worldRect']['height'],'left':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x16b)],'top':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x1a1)],'flipX':_0x1ac280[_0x493f68(0x15b)][_0x493f68(0x18d)]||!0x1,'flipY':_0x1ac280[_0x493f68(0x15b)]['flipY']||!0x1,'oldAdjustValues':_0x10da26,'newAdjustValues':_0x1ac280[_0x493f68(0x15d)],'newLineType':_0x1ac280[_0x493f68(0x1a0)],'oldLineType':_0x56a3e3,'rotation':_0x1ac280[_0x493f68(0x12c)],'oldRelation':_0x2fa108,'newRelation':_0xc009d4});}[_0xb0776b(0x12d)](_0x2628bd,_0x192e40,_0x28292d,_0x57557a){const _0x5908ee=_0xb0776b;let _0x51d30d=this[_0x5908ee(0x1a6)][_0x5908ee(0x181)](_0x36a4ec)[_0x5908ee(0x14e)]({'unitId':_0x192e40,'subUnitId':_0x28292d,'drawingId':_0x57557a});if(_0x51d30d!=null&&_0x51d30d[_0x5908ee(0x143)]){var _0x50fdbf,_0x4fc1ba,_0x5e2081,_0x2f0b77;_0x2628bd['x']=(_0x50fdbf=_0x51d30d[_0x5908ee(0x143)][_0x5908ee(0x16b)])==null?0x0:_0x50fdbf,_0x2628bd['y']=(_0x4fc1ba=_0x51d30d[_0x5908ee(0x143)]['top'])==null?0x0:_0x4fc1ba,_0x2628bd[_0x5908ee(0x167)]=(_0x5e2081=_0x51d30d[_0x5908ee(0x143)]['width'])==null?_0x2628bd[_0x5908ee(0x167)]:_0x5e2081,_0x2628bd[_0x5908ee(0x17c)]=(_0x2f0b77=_0x51d30d[_0x5908ee(0x143)][_0x5908ee(0x17c)])==null?_0x2628bd[_0x5908ee(0x17c)]:_0x2f0b77;}let _0x5767d5=this[_0x5908ee(0x1a6)][_0x5908ee(0x181)](_0x3c7127)[_0x5908ee(0x152)](_0x192e40,_0x28292d,_0x57557a);if(_0x5767d5){_0x2628bd['shapeType']=_0x5767d5['getShapeType']();let _0x40afbe=_0x5767d5['getShapeData']();_0x40afbe&&(_0x2628bd[_0x5908ee(0x176)]=JSON[_0x5908ee(0x18a)](JSON['stringify'](_0x40afbe)));}}[_0xb0776b(0x134)](_0x1970c5,_0x519701,_0x8c9040,_0x3e306b,_0x50bf32,_0xd4d909,_0x4343a0,_0x45414f,_0x12b7df){const _0x203258=_0xb0776b;let _0x4915be=null,_0x315329=null;return _0x50bf32&&(_0x4915be=I(_0x1970c5,_0x519701,_0x50bf32[_0x203258(0x171)][_0x203258(0x153)],_0x50bf32[_0x203258(0x140)],_0x4343a0,_0x45414f)),_0xd4d909&&(_0x315329=I(_0x1970c5,_0x519701,_0xd4d909[_0x203258(0x171)][_0x203258(0x153)],_0xd4d909[_0x203258(0x140)],_0x4343a0,_0x45414f)),_0x4915be||(_0x4915be=this[_0x203258(0x16f)](_0x1970c5,_0x519701,_0x8c9040[_0x203258(0x153)],!0x0,_0x315329,_0x12b7df==null?void 0x0:_0x12b7df[_0x203258(0x137)],_0x4343a0,_0x45414f)),_0x315329||(_0x315329=this[_0x203258(0x16f)](_0x1970c5,_0x519701,_0x8c9040[_0x203258(0x153)],!0x1,_0x4915be,_0x12b7df==null?void 0x0:_0x12b7df['to'],_0x4343a0,_0x45414f)),{'startInfo':_0x4915be,'endInfo':_0x315329};}[_0xb0776b(0x16f)](_0x1002d6,_0x1dd77c,_0x58c45c,_0x1765ea,_0x4d06f1,_0x59dcd6,_0x474983,_0x11797f){const _0x370534=_0xb0776b;if(_0x59dcd6){let _0x2860d8=I(_0x1002d6,_0x1dd77c,_0x59dcd6[_0x370534(0x145)],_0x59dcd6[_0x370534(0x180)],_0x474983,_0x11797f);if(_0x2860d8)return _0x2860d8;}return _0x4d06f1?R(_0x1002d6,_0x1dd77c,_0x58c45c,_0x1765ea,_0x4d06f1,_0x474983,_0x11797f):null;}};_0x30bddd[_0xb0776b(0x17d)](z);export{F as FConnectorShape,P as FShape};
|