@univerjs-pro/sheets-shape 0.20.0-insiders.20260411-27a8c24 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x272d60=_0x32bf;(function(_0x24dc54,_0x1ea3ca){const _0x17b720=_0x32bf,_0x8c26fc=_0x24dc54();while(!![]){try{const _0x4fbaf9=parseInt(_0x17b720(0x1d6))/0x1*(parseInt(_0x17b720(0x1af))/0x2)+parseInt(_0x17b720(0x199))/0x3*(-parseInt(_0x17b720(0x190))/0x4)+parseInt(_0x17b720(0x1e7))/0x5*(-parseInt(_0x17b720(0x19e))/0x6)+parseInt(_0x17b720(0x1be))/0x7*(-parseInt(_0x17b720(0x19c))/0x8)+-parseInt(_0x17b720(0x195))/0x9*(-parseInt(_0x17b720(0x187))/0xa)+-parseInt(_0x17b720(0x1b8))/0xb+parseInt(_0x17b720(0x1bb))/0xc;if(_0x4fbaf9===_0x1ea3ca)break;else _0x8c26fc['push'](_0x8c26fc['shift']());}catch(_0x3f8139){_0x8c26fc['push'](_0x8c26fc['shift']());}}}(_0x26f2,0x2728d),Object[_0x272d60(0x197)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core/facade`),n=require(`@univerjs-pro/sheets-shape`),r=require(`@univerjs/core`),i=require(`@univerjs/drawing`),a=require(`@univerjs/sheets`),o=require(`@univerjs/sheets-drawing`),s=require(`@univerjs/sheets/facade`);var c=class extends t[_0x272d60(0x1c4)]{get[_0x272d60(0x161)](){return e['ShapeTypeEnum'];}get['ShapeFillEnum'](){const _0x5d96c7=_0x272d60;return e[_0x5d96c7(0x167)];}get[_0x272d60(0x1c2)](){const _0x3009a0=_0x272d60;return e[_0x3009a0(0x1c2)];}get[_0x272d60(0x1a3)](){const _0x44167a=_0x272d60;return e[_0x44167a(0x1a3)];}get[_0x272d60(0x16f)](){const _0x1c094c=_0x272d60;return e[_0x1c094c(0x16f)];}get[_0x272d60(0x189)](){const _0x11d5d2=_0x272d60;return e[_0x11d5d2(0x189)];}get['ShapeLineJoinEnum'](){const _0x5c5f5e=_0x272d60;return e[_0x5c5f5e(0x1e1)];}get[_0x272d60(0x19f)](){return e['ShapeArrowTypeEnum'];}get[_0x272d60(0x1a0)](){const _0x29bb75=_0x272d60;return e[_0x29bb75(0x1a0)];}};function _0x26f2(){const _0x388f09=['setShapeType','setEndArrowType','DrawingTypeEnum','connectShapes','getAdjustPoints','NoFill','SolidFil','getBasicShapeRotateBound','convertPositionCellToSheetOverGrid','\x20not\x20found','insertShape','call','983030XyDfFn','setStrokeLineDashType','ShapeLineCapEnum','InsertShapeCommand','rotation','setStrokeLineType','newShape','SheetsShapeService','build','40DllxCD','executeCommand','width','color','object','9trTQmS','gradientType','defineProperty','gradientAngle','10362DaoSyz','setShapeSolidFill','left','70240DHeixs','setStrokeLineCapType','12hTmrzy','ShapeArrowTypeEnum','ShapeArrowSizeEnum','_resolveExistingOrFreeEndpoint','_resolveEndpoints','ShapeLineTypeEnum','string','getSheetId','extend','setStartArrowType','getUnitId','getSize','gradientStops','height',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','abs','index','6JETPSI','subUnitId','DEFAULT_SHAPE_HEIGHT','getAdjustNames','getShapeType','fillType','length','endArrow','getConnectionSiteList','1744578EMaMZs','drawId','top','4551540Lnhnpa','get','adjustValues','175ENpbAK','setEndArrowSize','drawingType','flipY','ShapeGradientTypeEnum','ensureSkeleton','FEnum','isLineShape','point','stringify','setStrokeLineJoinType','getConnectionSites','setStartArrowSize','newConnector','parse','lineType','computeConnectorRouteLayout','toPrimitive','setHeight','unitId','sin','relation','function','getDrawingByParam','32611XExTxv','getAdjustValueByName','\x20and\x20subUnitId\x20','getStartConnectInfo','setStrokeWidth','getConnectorLinePoints','getWorkbook','ang','keys','symbol','_preloadShapeProperties','ShapeLineJoinEnum','ConnectorCoordinateTransform','opacity','setWidth','IDrawingManagerService','getDrawingPoints','5990NVXtUF','shapeType','setPosition','push','DEFAULT_SHAPE_WIDTH','getShapeData','FConnectorShape','generateRandomId','getShapeModel','fill','connectionSiteIndex','from','constructor','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','Skeleton\x20for\x20unitId\x20','getShapes','setNoneFill','setAbsolutePosition','FWorksheet','setShapeGradientFill','SetShapeDrawingDataCommand','isConnectorShape','size','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','updateContext','getShapeRelation','prototype','ShapeTypeEnum','localToWorld','routeConnectorLineShape','getEndConnectInfo','_injector','SheetSkeletonService','ShapeFillEnum','startArrow','shapeId','_commandService','worldRect','shape','iterator','type','ShapeLineDashEnum','cxnIndex','getShapeId','transform','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','shapeData','lineStrokeType','DRAWING_SHAPE','getPosition','setStrokeOpacity','stroke','updateShape'];_0x26f2=function(){return _0x388f09;};return _0x26f2();}t[_0x272d60(0x1c4)][_0x272d60(0x1a6)](c);function l(_0x2d4442){'@babel/helpers - typeof';const _0x3c5415=_0x272d60;return l=typeof Symbol==_0x3c5415(0x1d4)&&typeof Symbol[_0x3c5415(0x16d)]==_0x3c5415(0x1df)?function(_0x1a8717){return typeof _0x1a8717;}:function(_0x2e530d){const _0x1c41ce=_0x3c5415;return _0x2e530d&&typeof Symbol==_0x1c41ce(0x1d4)&&_0x2e530d[_0x1c41ce(0x1f3)]===Symbol&&_0x2e530d!==Symbol[_0x1c41ce(0x160)]?'symbol':typeof _0x2e530d;},l(_0x2d4442);}function u(_0x55d1a2,_0x4157a8){const _0x20121d=_0x272d60;if(l(_0x55d1a2)!=_0x20121d(0x194)||!_0x55d1a2)return _0x55d1a2;var _0x9450dc=_0x55d1a2[Symbol[_0x20121d(0x1cf)]];if(_0x9450dc!==void 0x0){var _0x223583=_0x9450dc[_0x20121d(0x186)](_0x55d1a2,_0x4157a8||'default');if(l(_0x223583)!='object')return _0x223583;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4157a8==='string'?String:Number)(_0x55d1a2);}function d(_0x2dfb7e){const _0x13edbb=_0x272d60;var _0x1d6ec7=u(_0x2dfb7e,_0x13edbb(0x1a4));return l(_0x1d6ec7)==_0x13edbb(0x1df)?_0x1d6ec7:_0x1d6ec7+'';}function f(_0x35d97d,_0x1a02c1,_0x11b3ea){const _0x2f1ba7=_0x272d60;return(_0x1a02c1=d(_0x1a02c1))in _0x35d97d?Object[_0x2f1ba7(0x197)](_0x35d97d,_0x1a02c1,{'value':_0x11b3ea,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35d97d[_0x1a02c1]=_0x11b3ea,_0x35d97d;}var p=class{constructor(_0x41bac8,_0x8a4816,_0xbb7b7d,_0x610fcd){const _0x4cbfd9=_0x272d60;f(this,_0x4cbfd9(0x1d1),void 0x0),f(this,_0x4cbfd9(0x1b0),void 0x0),f(this,_0x4cbfd9(0x1b9),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x4cbfd9(0x192),n[_0x4cbfd9(0x1eb)]),f(this,_0x4cbfd9(0x1ab),n[_0x4cbfd9(0x1b1)]),f(this,_0x4cbfd9(0x1e8),void 0x0),f(this,_0x4cbfd9(0x174),{}),f(this,_0x4cbfd9(0x165),void 0x0),this[_0x4cbfd9(0x1d1)]=_0x41bac8,this[_0x4cbfd9(0x1b0)]=_0x8a4816,this['drawId']=_0xbb7b7d||(0x0,r['generateRandomId'])(),this[_0x4cbfd9(0x165)]=_0x610fcd;}[_0x272d60(0x1e9)](_0x10d412,_0x420352,_0x3247cb,_0x135255){const _0x5d62e0=_0x272d60;let _0x12f16a=this[_0x5d62e0(0x165)][_0x5d62e0(0x1bc)](a['SheetSkeletonService'])[_0x5d62e0(0x1c3)](this[_0x5d62e0(0x1d1)],this['subUnitId']);if(!_0x12f16a)throw Error(_0x5d62e0(0x1f5)+this[_0x5d62e0(0x1d1)]+_0x5d62e0(0x1d8)+this['subUnitId']+_0x5d62e0(0x184));let {transform:_0x5a5eab}=(0x0,a[_0x5d62e0(0x183)])(this[_0x5d62e0(0x1d1)],this[_0x5d62e0(0x1b0)],{'row':_0x10d412,'column':_0x420352,'rowOffset':_0x3247cb,'columnOffset':_0x135255},0x1,0x1,_0x12f16a);return this['x']=_0x5a5eab['left'],this['y']=_0x5a5eab['top'],this;}[_0x272d60(0x1f8)](_0x3c0527,_0x5b821c){return this['x']=_0x3c0527,this['y']=_0x5b821c,this;}[_0x272d60(0x17b)](_0x38b7e6){const _0x51b67f=_0x272d60;return this[_0x51b67f(0x1e8)]=_0x38b7e6,this;}[_0x272d60(0x19a)](_0x132794,_0x39ae7e){const _0x47395e=_0x272d60;return this[_0x47395e(0x174)][_0x47395e(0x1f0)]||(this[_0x47395e(0x174)][_0x47395e(0x1f0)]={}),this[_0x47395e(0x174)][_0x47395e(0x1f0)][_0x47395e(0x1b4)]=e[_0x47395e(0x167)][_0x47395e(0x181)],_0x132794!==void 0x0&&(this[_0x47395e(0x174)][_0x47395e(0x1f0)]['color']=_0x132794),_0x39ae7e!==void 0x0&&(this[_0x47395e(0x174)][_0x47395e(0x1f0)]['opacity']=_0x39ae7e),this;}[_0x272d60(0x1fa)](_0x1b4bc1,_0x56a7c8,_0xf2012){const _0x19b5ba=_0x272d60;if(_0x56a7c8===void 0x0||_0x56a7c8['length']===0x0)throw Error(_0x19b5ba(0x173));return this[_0x19b5ba(0x174)][_0x19b5ba(0x1f0)]||(this[_0x19b5ba(0x174)][_0x19b5ba(0x1f0)]={}),this['shapeData'][_0x19b5ba(0x1f0)][_0x19b5ba(0x1aa)]=_0x56a7c8,this[_0x19b5ba(0x174)][_0x19b5ba(0x1f0)]['fillType']=e['ShapeFillEnum']['GradientFill'],this[_0x19b5ba(0x174)][_0x19b5ba(0x1f0)][_0x19b5ba(0x196)]=_0x1b4bc1,_0xf2012!==void 0x0&&(this[_0x19b5ba(0x174)][_0x19b5ba(0x1f0)][_0x19b5ba(0x198)]=_0xf2012),this;}[_0x272d60(0x1f7)](){const _0x1ccb4f=_0x272d60;return this[_0x1ccb4f(0x174)]['fill']={'fillType':e[_0x1ccb4f(0x167)][_0x1ccb4f(0x180)]},this;}['setStrokeColor'](_0x2aae2c){const _0x10b07c=_0x272d60;return this[_0x10b07c(0x174)][_0x10b07c(0x179)]||(this[_0x10b07c(0x174)][_0x10b07c(0x179)]={}),this[_0x10b07c(0x174)]['stroke'][_0x10b07c(0x193)]=_0x2aae2c,this;}[_0x272d60(0x1da)](_0x5b84cb){const _0x3edd1a=_0x272d60;return this[_0x3edd1a(0x174)]['stroke']||(this[_0x3edd1a(0x174)][_0x3edd1a(0x179)]={}),this[_0x3edd1a(0x174)][_0x3edd1a(0x179)]['width']=_0x5b84cb,this;}[_0x272d60(0x188)](_0x384330){const _0xaeb760=_0x272d60;return this[_0xaeb760(0x174)][_0xaeb760(0x179)]||(this[_0xaeb760(0x174)][_0xaeb760(0x179)]={}),this[_0xaeb760(0x174)]['stroke']['dashType']=_0x384330,this;}[_0x272d60(0x1c8)](_0x4d6a71){const _0x545c75=_0x272d60;return this[_0x545c75(0x174)][_0x545c75(0x179)]||(this[_0x545c75(0x174)][_0x545c75(0x179)]={}),this[_0x545c75(0x174)][_0x545c75(0x179)]['lineJoinType']=_0x4d6a71,this;}[_0x272d60(0x19d)](_0x55459c){const _0x23fc63=_0x272d60;return this[_0x23fc63(0x174)][_0x23fc63(0x179)]||(this[_0x23fc63(0x174)][_0x23fc63(0x179)]={}),this[_0x23fc63(0x174)][_0x23fc63(0x179)]['capType']=_0x55459c,this;}[_0x272d60(0x178)](_0x5878ad){const _0x37ec24=_0x272d60;return this[_0x37ec24(0x174)][_0x37ec24(0x179)]||(this['shapeData'][_0x37ec24(0x179)]={}),this[_0x37ec24(0x174)][_0x37ec24(0x179)][_0x37ec24(0x1e3)]=_0x5878ad,this;}[_0x272d60(0x18c)](_0x50553e){const _0x1cb0ac=_0x272d60;return this[_0x1cb0ac(0x174)][_0x1cb0ac(0x179)]||(this['shapeData'][_0x1cb0ac(0x179)]={}),this[_0x1cb0ac(0x174)][_0x1cb0ac(0x179)][_0x1cb0ac(0x175)]=_0x50553e,this;}[_0x272d60(0x1e4)](_0x158833){const _0xf7809c=_0x272d60;return this[_0xf7809c(0x192)]=_0x158833,this;}[_0x272d60(0x1d0)](_0xbe3140){const _0x4bdf65=_0x272d60;return this[_0x4bdf65(0x1ab)]=_0xbe3140,this;}[_0x272d60(0x1c5)](){const _0x398901=_0x272d60;let _0x462eb8=this['_injector']['get'](n['SheetsShapeService'])[_0x398901(0x1ef)](this[_0x398901(0x1d1)],this[_0x398901(0x1b0)],this[_0x398901(0x1b9)]);return _0x462eb8?(0x0,e['isConnectorShape'])(_0x462eb8[_0x398901(0x1b3)]()):this['shapeType']?(0x0,e[_0x398901(0x1fc)])(this[_0x398901(0x1e8)]):!0x1;}[_0x272d60(0x1c9)](){const _0x2a56cd=_0x272d60;let _0x716195=this['_injector'][_0x2a56cd(0x1bc)](n[_0x2a56cd(0x18e)])[_0x2a56cd(0x1ef)](this[_0x2a56cd(0x1d1)],this[_0x2a56cd(0x1b0)],this[_0x2a56cd(0x1b9)]);if(!_0x716195)return[];let _0x50f055=this[_0x2a56cd(0x165)][_0x2a56cd(0x1bc)](i['IDrawingManagerService'])[_0x2a56cd(0x1d5)]({'unitId':this['unitId'],'subUnitId':this[_0x2a56cd(0x1b0)],'drawingId':this[_0x2a56cd(0x1b9)]});if(!(_0x50f055!=null&&_0x50f055['transform']))return[];let {width:_0x2a04cc=0x0,height:_0xd5ed6a=0x0}=_0x50f055[_0x2a56cd(0x172)];return _0x716195[_0x2a56cd(0x1ff)]({'width':_0x2a04cc,'height':_0xd5ed6a}),_0x716195[_0x2a56cd(0x1b7)]();}[_0x272d60(0x17f)](){const _0x5c42db=_0x272d60;let _0xc85a53=this[_0x5c42db(0x165)][_0x5c42db(0x1bc)](n[_0x5c42db(0x18e)])['getShapeModel'](this[_0x5c42db(0x1d1)],this['subUnitId'],this['drawId']);if(!_0xc85a53)return[];let _0xf31b34=this[_0x5c42db(0x165)][_0x5c42db(0x1bc)](i['IDrawingManagerService'])[_0x5c42db(0x1d5)]({'unitId':this[_0x5c42db(0x1d1)],'subUnitId':this[_0x5c42db(0x1b0)],'drawingId':this['drawId']});if(!(_0xf31b34!=null&&_0xf31b34['transform']))return[];let {width:_0x3a4236=0x0,height:_0x3ea622=0x0}=_0xf31b34[_0x5c42db(0x172)];return _0xc85a53[_0x5c42db(0x1ff)]({'width':_0x3a4236,'height':_0x3ea622}),_0xc85a53[_0x5c42db(0x1e6)]();}[_0x272d60(0x1db)](){const _0x4beba2=_0x272d60;let _0x315d77=this['_injector'][_0x4beba2(0x1bc)](n['SheetsShapeService'])[_0x4beba2(0x1ef)](this[_0x4beba2(0x1d1)],this[_0x4beba2(0x1b0)],this['drawId']);if(!_0x315d77||!(0x0,e[_0x4beba2(0x1fc)])(_0x315d77[_0x4beba2(0x1b3)]()))return[];let _0x5738f2=this[_0x4beba2(0x165)][_0x4beba2(0x1bc)](i[_0x4beba2(0x1e5)])[_0x4beba2(0x1d5)]({'unitId':this[_0x4beba2(0x1d1)],'subUnitId':this[_0x4beba2(0x1b0)],'drawingId':this['drawId']});if(!(_0x5738f2!=null&&_0x5738f2[_0x4beba2(0x172)]))return[];let {width:_0x102237=0x0,height:_0xccced1=0x0}=_0x5738f2[_0x4beba2(0x172)];return _0x315d77[_0x4beba2(0x1ff)]({'width':_0x102237,'height':_0xccced1}),_0x315d77[_0x4beba2(0x1db)]();}['getStartConnectInfo'](){const _0x4e961f=_0x272d60;var _0x2c7900;let _0x2557b5=this[_0x4e961f(0x165)][_0x4e961f(0x1bc)](n[_0x4e961f(0x18e)])[_0x4e961f(0x1ef)](this['unitId'],this['subUnitId'],this[_0x4e961f(0x1b9)]);return _0x2557b5?(_0x2c7900=_0x2557b5[_0x4e961f(0x1d9)]())==null?null:_0x2c7900:null;}[_0x272d60(0x164)](){const _0x4dcb8b=_0x272d60;var _0x49d87c;let _0x751b66=this[_0x4dcb8b(0x165)][_0x4dcb8b(0x1bc)](n[_0x4dcb8b(0x18e)])[_0x4dcb8b(0x1ef)](this[_0x4dcb8b(0x1d1)],this[_0x4dcb8b(0x1b0)],this[_0x4dcb8b(0x1b9)]);return _0x751b66?(_0x49d87c=_0x751b66[_0x4dcb8b(0x164)]())==null?null:_0x49d87c:null;}[_0x272d60(0x18f)](){const _0x599cea=_0x272d60;var _0x30c323,_0x1bbfe8;if(!this[_0x599cea(0x1e8)])throw Error(_0x599cea(0x1fe));if(this['x']===0x0||this['y']===0x0){let _0x3560e2=this['_injector'][_0x599cea(0x1bc)](a[_0x599cea(0x166)])['ensureSkeleton'](this[_0x599cea(0x1d1)],this['subUnitId']);if(!_0x3560e2)throw Error(_0x599cea(0x1f5)+this['unitId']+_0x599cea(0x1d8)+this[_0x599cea(0x1b0)]+_0x599cea(0x184));let {transform:_0x5f1af2}=(0x0,a[_0x599cea(0x183)])(this[_0x599cea(0x1d1)],this[_0x599cea(0x1b0)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x3560e2);this['x']=this['x']>0x0?this['x']:_0x5f1af2['left'],this['y']=this['y']>0x0?this['y']:_0x5f1af2[_0x599cea(0x1ba)];}return this[_0x599cea(0x192)]=(_0x30c323=this['width'])==null?n[_0x599cea(0x1eb)]:_0x30c323,this[_0x599cea(0x1ab)]=(_0x1bbfe8=this[_0x599cea(0x1ab)])==null?n['DEFAULT_SHAPE_HEIGHT']:_0x1bbfe8,{'unitId':this[_0x599cea(0x1d1)],'subUnitId':this[_0x599cea(0x1b0)],'shapeId':this[_0x599cea(0x1b9)],'shapeType':this[_0x599cea(0x1e8)],'shapeData':Object[_0x599cea(0x1de)](this[_0x599cea(0x174)])[_0x599cea(0x1b5)]>0x0?this[_0x599cea(0x174)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x599cea(0x192)],'height':this[_0x599cea(0x1ab)]};}[_0x272d60(0x171)](){return this['drawId'];}['getShapeType'](){const _0x31551f=_0x272d60;return this[_0x31551f(0x1e8)];}[_0x272d60(0x1ec)](){const _0x7f54c0=_0x272d60;return this[_0x7f54c0(0x174)];}[_0x272d60(0x177)](){return{'x':this['x'],'y':this['y']};}[_0x272d60(0x1a9)](){const _0x31ca38=_0x272d60;return{'width':this['width'],'height':this[_0x31ca38(0x1ab)]};}},m=class extends p{constructor(_0x464f67,_0x39b105,_0x8827e,_0x1fbb0c){const _0x1a9859=_0x272d60;super(_0x464f67,_0x39b105,_0x8827e,_0x1fbb0c),f(this,_0x1a9859(0x174),{});}['setShapeType'](_0x1264d5){const _0x5dd393=_0x272d60;if(!(0x0,e['isConnectorShape'])(_0x1264d5))throw Error(_0x5dd393(0x1f4)+_0x1264d5+_0x5dd393(0x1ac));return super[_0x5dd393(0x17b)](_0x1264d5),this;}[_0x272d60(0x1a7)](_0x15c1f3){const _0x155dc3=_0x272d60;var _0x4d5622,_0x3fdad;return(_0x4d5622=this[_0x155dc3(0x174)])!=null&&_0x4d5622['ln']||(this[_0x155dc3(0x174)]['ln']={}),!((_0x3fdad=this[_0x155dc3(0x174)])==null||(_0x3fdad=_0x3fdad['ln'])==null)&&_0x3fdad[_0x155dc3(0x168)]||(this[_0x155dc3(0x174)]['ln'][_0x155dc3(0x168)]={}),this[_0x155dc3(0x174)]['ln'][_0x155dc3(0x168)]['type']=_0x15c1f3,this;}[_0x272d60(0x17c)](_0x5a685f){const _0x45c495=_0x272d60;var _0xdc3c47,_0xd7ee5b;return(_0xdc3c47=this[_0x45c495(0x174)])!=null&&_0xdc3c47['ln']||(this['shapeData']['ln']={}),!((_0xd7ee5b=this[_0x45c495(0x174)])==null||(_0xd7ee5b=_0xd7ee5b['ln'])==null)&&_0xd7ee5b[_0x45c495(0x1b6)]||(this[_0x45c495(0x174)]['ln'][_0x45c495(0x1b6)]={}),this[_0x45c495(0x174)]['ln'][_0x45c495(0x1b6)][_0x45c495(0x16e)]=_0x5a685f,this;}[_0x272d60(0x1ca)](_0x52773e){const _0x8f77e8=_0x272d60;var _0x37138b,_0x581e0a;return(_0x37138b=this[_0x8f77e8(0x174)])!=null&&_0x37138b['ln']||(this[_0x8f77e8(0x174)]['ln']={}),!((_0x581e0a=this[_0x8f77e8(0x174)])==null||(_0x581e0a=_0x581e0a['ln'])==null)&&_0x581e0a[_0x8f77e8(0x168)]||(this['shapeData']['ln'][_0x8f77e8(0x168)]={}),this['shapeData']['ln']['startArrow']['size']=_0x52773e,this;}[_0x272d60(0x1bf)](_0xaa4e14){const _0x55f55a=_0x272d60;var _0xc71188,_0x4f1445;return(_0xc71188=this['shapeData'])!=null&&_0xc71188['ln']||(this[_0x55f55a(0x174)]['ln']={}),!((_0x4f1445=this[_0x55f55a(0x174)])==null||(_0x4f1445=_0x4f1445['ln'])==null)&&_0x4f1445['endArrow']||(this[_0x55f55a(0x174)]['ln'][_0x55f55a(0x1b6)]={}),this['shapeData']['ln'][_0x55f55a(0x1b6)][_0x55f55a(0x1fd)]=_0xaa4e14,this;}[_0x272d60(0x18f)](){const _0x14e51e=_0x272d60;return super[_0x14e51e(0x18f)]();}['getEndConnectInfo'](){const _0x84ba2c=_0x272d60;var _0x325eca;return((_0x325eca=this[_0x84ba2c(0x174)])==null||(_0x325eca=_0x325eca[_0x84ba2c(0x1d3)])==null?void 0x0:_0x325eca['to'])||null;}[_0x272d60(0x1d9)](){const _0x24cc2f=_0x272d60;var _0x3cd844;return((_0x3cd844=this[_0x24cc2f(0x174)])==null||(_0x3cd844=_0x3cd844[_0x24cc2f(0x1d3)])==null?void 0x0:_0x3cd844[_0x24cc2f(0x1f2)])||null;}};function h(_0x444cc0,_0x279401,_0x1bdbdd,_0x4ed26d,_0x320227,_0x549cf9){const _0x14b618=_0x272d60;let _0x9b81fc=_0x320227[_0x14b618(0x1ef)](_0x444cc0,_0x279401,_0x1bdbdd);if(!_0x9b81fc)return null;let _0x4712c8=_0x549cf9[_0x14b618(0x1d5)]({'unitId':_0x444cc0,'subUnitId':_0x279401,'drawingId':_0x1bdbdd});if(!(_0x4712c8!=null&&_0x4712c8[_0x14b618(0x172)]))return null;let {left:_0x3fc1ba=0x0,top:_0x2da486=0x0,width:_0x82da69=0x0,height:_0x441532=0x0,flipX:_0xaa0edc=!0x1,flipY:_0x212435=!0x1,angle:_0x56c807}=_0x4712c8[_0x14b618(0x172)];_0x9b81fc[_0x14b618(0x1ff)]({'width':_0x82da69,'height':_0x441532});let _0x46af90=_0x9b81fc[_0x14b618(0x1b7)]()['find'](_0x342aa6=>_0x342aa6[_0x14b618(0x1ae)]===_0x4ed26d);if(!_0x46af90)return null;let _0x101b78=_0xaa0edc?_0x82da69-_0x46af90['x']:_0x46af90['x'],_0x20ea2c=_0x212435?_0x441532-_0x46af90['y']:_0x46af90['y'];if(_0x56c807&&_0x56c807!==0x0){let _0x9479d6=_0x56c807*Math['PI']/0xb4,_0x591c55=Math['cos'](_0x9479d6),_0x1a5a86=Math[_0x14b618(0x1d2)](_0x9479d6),_0x28475c=_0x82da69/0x2,_0x430f52=_0x441532/0x2,_0x32a81e=_0x101b78-_0x28475c,_0x43341a=_0x20ea2c-_0x430f52;_0x101b78=_0x28475c+_0x32a81e*_0x591c55-_0x43341a*_0x1a5a86,_0x20ea2c=_0x430f52+_0x32a81e*_0x1a5a86+_0x43341a*_0x591c55;}_0x101b78+=_0x3fc1ba,_0x20ea2c+=_0x2da486;let _0x5a5ec2=_0x46af90[_0x14b618(0x1dd)]/0xea60;_0xaa0edc&&(_0x5a5ec2=0xb4-_0x5a5ec2),_0x212435&&(_0x5a5ec2=-_0x5a5ec2),_0x5a5ec2+=_0x56c807||0x0,_0x5a5ec2=(_0x5a5ec2%0x168+0x168)%0x168;let _0x59ba55=(0x0,e[_0x14b618(0x182)])({'left':_0x3fc1ba,'top':_0x2da486,'width':_0x82da69,'height':_0x441532},_0x56c807||0x0);return{'point':{'x':_0x101b78,'y':_0x20ea2c},'angle':_0x5a5ec2,'bounds':_0x59ba55};}function g(_0x3adf4a,_0x31239c){const _0x2cc71e=_0x272d60;let _0xe629a9=_0x31239c['x']-_0x3adf4a['x'],_0x1d6798=_0x31239c['y']-_0x3adf4a['y'];return Math[_0x2cc71e(0x1ad)](_0xe629a9)>=Math[_0x2cc71e(0x1ad)](_0x1d6798)?_0xe629a9>=0x0?0xb4:0x0:_0x1d6798>=0x0?0x10e:0x5a;}function _(_0x223e03,_0x2923b6,_0x5f5193,_0x20f927,_0x32e999,_0x148280,_0x3dbc31){const _0x262ec0=_0x272d60;let _0x3ed783=_0x148280[_0x262ec0(0x1ef)](_0x223e03,_0x2923b6,_0x5f5193);if(!_0x3ed783)return null;let _0xc87f2b=_0x3dbc31[_0x262ec0(0x1d5)]({'unitId':_0x223e03,'subUnitId':_0x2923b6,'drawingId':_0x5f5193});if(!(_0xc87f2b!=null&&_0xc87f2b[_0x262ec0(0x172)]))return null;let {left:_0x26d63c=0x0,top:_0x46ba0d=0x0,width:_0x25f8a3=0x0,height:_0x32e7d9=0x0,flipX:_0x24d2e7=!0x1,flipY:_0x711b83=!0x1}=_0xc87f2b[_0x262ec0(0x172)];_0x3ed783[_0x262ec0(0x1ff)]({'width':_0x25f8a3,'height':_0x32e7d9});let _0x2a5933=_0x3ed783[_0x262ec0(0x1db)]();if(_0x2a5933['length']<0x2)return null;let _0x10e4c3=_0x20f927?_0x2a5933[0x0]:_0x2a5933[_0x2a5933[_0x262ec0(0x1b5)]-0x1],_0x4d79f5=new e[(_0x262ec0(0x1e2))]({'left':_0x26d63c,'top':_0x46ba0d,'width':_0x25f8a3,'height':_0x32e7d9,'flipX':_0x24d2e7,'flipY':_0x711b83})[_0x262ec0(0x162)](_0x10e4c3);return{'point':_0x4d79f5,'angle':g(_0x32e999[_0x262ec0(0x1c6)],_0x4d79f5),'bounds':{'left':_0x4d79f5['x'],'top':_0x4d79f5['y'],'width':0x0,'height':0x0}};}var v=class extends s[_0x272d60(0x1f9)]{async[_0x272d60(0x185)](_0x2c8615){const _0x145a58=_0x272d60;let {unitId:_0x39bd3a,subUnitId:_0x44e924,shapeId:_0x348d66,shapeType:_0x5bfb20,shapeData:_0x287c17,x:_0x1d376d,y:_0x343ca2,width:_0x3572a5,height:_0x3f426b}=_0x2c8615;return this[_0x145a58(0x16a)]['executeCommand'](n[_0x145a58(0x18a)]['id'],{'unitId':_0x39bd3a,'subUnitId':_0x44e924,'shapeId':_0x348d66,'shapeType':_0x5bfb20,'shapeData':_0x287c17,'position':{'x':_0x1d376d,'y':_0x343ca2},'width':_0x3572a5,'height':_0x3f426b});}async[_0x272d60(0x17a)](_0x14c2eb){const _0x20c12d=_0x272d60;let {unitId:_0x3261e6,subUnitId:_0x1c43c2,shapeId:_0xa1952f,shapeType:_0x11ccdd,shapeData:_0x2b825c,x:_0x3547b3,y:_0x4abc8c,width:_0x18abf7,height:_0x515cb9}=_0x14c2eb;return this[_0x20c12d(0x16a)][_0x20c12d(0x191)](n[_0x20c12d(0x1fb)]['id'],{'unitId':_0x3261e6,'subUnitId':_0x1c43c2,'shapeId':_0xa1952f,'shapeType':_0x11ccdd,'shapeData':_0x2b825c,'position':{'x':_0x3547b3,'y':_0x4abc8c},'width':_0x18abf7,'height':_0x515cb9});}[_0x272d60(0x18d)](_0x403db2){const _0x3299b2=_0x272d60;let _0x6cff80=this[_0x3299b2(0x1dc)]()[_0x3299b2(0x1a8)](),_0x3e332d=this[_0x3299b2(0x1a5)]();if(_0x403db2){let _0x48b8c5=new p(_0x6cff80,_0x3e332d,_0x403db2['drawId'],this[_0x3299b2(0x165)]);return this[_0x3299b2(0x1e0)](_0x48b8c5,_0x6cff80,_0x3e332d,_0x403db2[_0x3299b2(0x1b9)]),_0x48b8c5;}return new p(_0x6cff80,_0x3e332d,(0x0,r['generateRandomId'])(),this[_0x3299b2(0x165)]);}[_0x272d60(0x1cb)](_0xbc588){const _0x1a0942=_0x272d60;let _0x1edf2a=this[_0x1a0942(0x1dc)]()[_0x1a0942(0x1a8)](),_0x1e8566=this['getSheetId']();if(_0xbc588){let _0x580f4e=new m(_0x1edf2a,_0x1e8566,_0xbc588['drawId'],this[_0x1a0942(0x165)]);return this[_0x1a0942(0x1e0)](_0x580f4e,_0x1edf2a,_0x1e8566,_0xbc588[_0x1a0942(0x1b9)]),_0x580f4e;}return new m(_0x1edf2a,_0x1e8566,(0x0,r[_0x1a0942(0x1ee)])(),this[_0x1a0942(0x165)]);}[_0x272d60(0x1f6)](){const _0x4aa57a=_0x272d60;let _0xbe3445=this[_0x4aa57a(0x165)]['get'](o['ISheetDrawingService']),_0x4d50fe=this['getWorkbook']()[_0x4aa57a(0x1a8)](),_0x260abe=this[_0x4aa57a(0x1a5)](),_0x2dfb79=_0xbe3445['getDrawingData'](_0x4d50fe,_0x260abe);if(!_0x2dfb79)return[];let _0x38003c=[];for(let [_0x16ab97,_0x4e805d]of Object['entries'](_0x2dfb79))if(_0x4e805d&&_0x4e805d[_0x4aa57a(0x1c0)]===r[_0x4aa57a(0x17d)][_0x4aa57a(0x176)]){let _0x214b9a=new p(_0x4d50fe,_0x260abe,_0x16ab97,this[_0x4aa57a(0x165)]);this[_0x4aa57a(0x1e0)](_0x214b9a,_0x4d50fe,_0x260abe,_0x16ab97),_0x38003c[_0x4aa57a(0x1ea)](_0x214b9a);}return _0x38003c;}['removeShape'](_0x3f64fb){const _0x565bbf=_0x272d60;let {unitId:_0x53529d,subUnitId:_0x2d9b46,drawId:_0x14c6b8}=_0x3f64fb;return this[_0x565bbf(0x16a)]['executeCommand'](o['RemoveSheetDrawingCommand']['id'],{'unitId':_0x53529d,'drawings':[{'unitId':_0x53529d,'subUnitId':_0x2d9b46,'drawingId':_0x14c6b8,'drawingType':r['DrawingTypeEnum']['DRAWING_SHAPE']}]});}async[_0x272d60(0x17e)](_0x45b780){const _0x29aac2=_0x272d60;let {connector:_0x1ef1a6,startTarget:_0x2c8462,endTarget:_0x1b2fc3}=_0x45b780;if(!_0x2c8462&&!_0x1b2fc3)return!0x1;let _0x43fe43=this[_0x29aac2(0x1dc)]()[_0x29aac2(0x1a8)](),_0x1d1efd=this[_0x29aac2(0x1a5)](),_0x681588=this[_0x29aac2(0x165)]['get'](n[_0x29aac2(0x18e)]),_0x54336f=this[_0x29aac2(0x165)][_0x29aac2(0x1bc)](i[_0x29aac2(0x1e5)]),_0x3e392b=_0x681588['getShapeModel'](_0x43fe43,_0x1d1efd,_0x1ef1a6[_0x29aac2(0x1b9)]);if(!_0x3e392b)return!0x1;let _0x5a4cfb=_0x3e392b[_0x29aac2(0x1b3)](),_0x2ae017=_0x3e392b[_0x29aac2(0x200)](),_0x3755b5={};for(let _0x57e80a of _0x3e392b[_0x29aac2(0x1b2)]()){let _0x1f687b=_0x3e392b[_0x29aac2(0x1d7)](_0x57e80a);_0x1f687b!==void 0x0&&(_0x3755b5[_0x57e80a]=_0x1f687b);}let {startInfo:_0x4b194d,endInfo:_0xf3efa9}=this[_0x29aac2(0x1a2)](_0x43fe43,_0x1d1efd,_0x1ef1a6,_0x3e392b,_0x2c8462,_0x1b2fc3,_0x681588,_0x54336f,_0x2ae017);if(!_0x4b194d||!_0xf3efa9)return!0x1;let _0x847c36=(0x0,e[_0x29aac2(0x1ce)])((0x0,e[_0x29aac2(0x163)])(_0x4b194d,_0xf3efa9,_0x5a4cfb),_0x5a4cfb),_0x26da1f={};return _0x2c8462?_0x26da1f['from']={'shapeId':_0x2c8462['shape'][_0x29aac2(0x1b9)],'cxnIndex':_0x2c8462[_0x29aac2(0x1f1)]}:_0x2ae017!=null&&_0x2ae017[_0x29aac2(0x1f2)]&&(_0x26da1f['from']=_0x2ae017[_0x29aac2(0x1f2)]),_0x1b2fc3?_0x26da1f['to']={'shapeId':_0x1b2fc3[_0x29aac2(0x16c)][_0x29aac2(0x1b9)],'cxnIndex':_0x1b2fc3['connectionSiteIndex']}:_0x2ae017!=null&&_0x2ae017['to']&&(_0x26da1f['to']=_0x2ae017['to']),this['_commandService'][_0x29aac2(0x191)](n['UpdateConnectorRelationCommand']['id'],{'unitId':_0x43fe43,'subUnitId':_0x1d1efd,'connectorShapeId':_0x1ef1a6[_0x29aac2(0x1b9)],'width':_0x847c36[_0x29aac2(0x16b)][_0x29aac2(0x192)],'height':_0x847c36[_0x29aac2(0x16b)][_0x29aac2(0x1ab)],'left':_0x847c36['worldRect'][_0x29aac2(0x19b)],'top':_0x847c36['worldRect'][_0x29aac2(0x1ba)],'flipX':_0x847c36['worldRect']['flipX']||!0x1,'flipY':_0x847c36[_0x29aac2(0x16b)][_0x29aac2(0x1c1)]||!0x1,'oldAdjustValues':_0x3755b5,'newAdjustValues':_0x847c36[_0x29aac2(0x1bd)],'newLineType':_0x847c36[_0x29aac2(0x1cd)],'oldLineType':_0x5a4cfb,'rotation':_0x847c36[_0x29aac2(0x18b)],'oldRelation':_0x2ae017,'newRelation':_0x26da1f});}['_preloadShapeProperties'](_0x439e3c,_0x18a301,_0x2245fa,_0x4f8307){const _0x27ff44=_0x272d60;let _0x28b6fc=this[_0x27ff44(0x165)][_0x27ff44(0x1bc)](i[_0x27ff44(0x1e5)])[_0x27ff44(0x1d5)]({'unitId':_0x18a301,'subUnitId':_0x2245fa,'drawingId':_0x4f8307});if(_0x28b6fc!=null&&_0x28b6fc[_0x27ff44(0x172)]){var _0x522630,_0x2266fd,_0x1a3107,_0x4365e0;_0x439e3c['x']=(_0x522630=_0x28b6fc['transform'][_0x27ff44(0x19b)])==null?0x0:_0x522630,_0x439e3c['y']=(_0x2266fd=_0x28b6fc[_0x27ff44(0x172)][_0x27ff44(0x1ba)])==null?0x0:_0x2266fd,_0x439e3c['width']=(_0x1a3107=_0x28b6fc[_0x27ff44(0x172)][_0x27ff44(0x192)])==null?_0x439e3c['width']:_0x1a3107,_0x439e3c[_0x27ff44(0x1ab)]=(_0x4365e0=_0x28b6fc[_0x27ff44(0x172)]['height'])==null?_0x439e3c[_0x27ff44(0x1ab)]:_0x4365e0;}let _0x2a56d4=this[_0x27ff44(0x165)][_0x27ff44(0x1bc)](n[_0x27ff44(0x18e)])[_0x27ff44(0x1ef)](_0x18a301,_0x2245fa,_0x4f8307);if(_0x2a56d4){_0x439e3c['shapeType']=_0x2a56d4[_0x27ff44(0x1b3)]();let _0x20386e=_0x2a56d4['getShapeData']();_0x20386e&&(_0x439e3c['shapeData']=JSON[_0x27ff44(0x1cc)](JSON[_0x27ff44(0x1c7)](_0x20386e)));}}[_0x272d60(0x1a2)](_0x255b00,_0x1ee9fa,_0x2f25e2,_0x3b74c7,_0x1295ed,_0xac1d20,_0x2475b5,_0x3018d2,_0x17ad97){const _0x52a0db=_0x272d60;let _0x5eb82d=null,_0x2669a6=null;return _0x1295ed&&(_0x5eb82d=h(_0x255b00,_0x1ee9fa,_0x1295ed[_0x52a0db(0x16c)][_0x52a0db(0x1b9)],_0x1295ed[_0x52a0db(0x1f1)],_0x2475b5,_0x3018d2)),_0xac1d20&&(_0x2669a6=h(_0x255b00,_0x1ee9fa,_0xac1d20['shape'][_0x52a0db(0x1b9)],_0xac1d20[_0x52a0db(0x1f1)],_0x2475b5,_0x3018d2)),_0x5eb82d||(_0x5eb82d=this['_resolveExistingOrFreeEndpoint'](_0x255b00,_0x1ee9fa,_0x2f25e2[_0x52a0db(0x1b9)],!0x0,_0x2669a6,_0x17ad97==null?void 0x0:_0x17ad97[_0x52a0db(0x1f2)],_0x2475b5,_0x3018d2)),_0x2669a6||(_0x2669a6=this[_0x52a0db(0x1a1)](_0x255b00,_0x1ee9fa,_0x2f25e2['drawId'],!0x1,_0x5eb82d,_0x17ad97==null?void 0x0:_0x17ad97['to'],_0x2475b5,_0x3018d2)),{'startInfo':_0x5eb82d,'endInfo':_0x2669a6};}[_0x272d60(0x1a1)](_0x5a9840,_0x1a1310,_0x4fea72,_0x13d3bf,_0x9ae800,_0xca7bd5,_0x459ad9,_0x427b59){const _0x19644e=_0x272d60;if(_0xca7bd5){let _0xb95dfb=h(_0x5a9840,_0x1a1310,_0xca7bd5[_0x19644e(0x169)],_0xca7bd5[_0x19644e(0x170)],_0x459ad9,_0x427b59);if(_0xb95dfb)return _0xb95dfb;}return _0x9ae800?_(_0x5a9840,_0x1a1310,_0x4fea72,_0x13d3bf,_0x9ae800,_0x459ad9,_0x427b59):null;}};function _0x32bf(_0x5c4c24,_0x2e0f93){_0x5c4c24=_0x5c4c24-0x160;const _0x26f23e=_0x26f2();let _0x32bf82=_0x26f23e[_0x5c4c24];return _0x32bf82;}s[_0x272d60(0x1f9)][_0x272d60(0x1a6)](v),exports[_0x272d60(0x1ed)]=m,exports['FShape']=p;
1
+ const _0x104934=_0x4448;(function(_0x17bd2c,_0x10dee4){const _0x269571=_0x4448,_0x369f04=_0x17bd2c();while(!![]){try{const _0x22c974=parseInt(_0x269571(0xff))/0x1+-parseInt(_0x269571(0xf5))/0x2+parseInt(_0x269571(0x140))/0x3*(-parseInt(_0x269571(0x141))/0x4)+parseInt(_0x269571(0x150))/0x5*(parseInt(_0x269571(0x112))/0x6)+-parseInt(_0x269571(0xdb))/0x7+parseInt(_0x269571(0x123))/0x8+parseInt(_0x269571(0x165))/0x9;if(_0x22c974===_0x10dee4)break;else _0x369f04['push'](_0x369f04['shift']());}catch(_0x3d7265){_0x369f04['push'](_0x369f04['shift']());}}}(_0x1c67,0xa1bc7),Object[_0x104934(0xdf)](exports,Symbol[_0x104934(0x161)],{'value':_0x104934(0x12c)}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core/facade`),n=require(`@univerjs-pro/sheets-shape`),r=require(`@univerjs/core`),i=require(`@univerjs/drawing`),a=require(`@univerjs/sheets`),o=require(`@univerjs/sheets-drawing`),s=require(`@univerjs/sheets/facade`);var c=class extends t[_0x104934(0x162)]{get[_0x104934(0x10a)](){return e['ShapeTypeEnum'];}get[_0x104934(0x117)](){const _0x356ee7=_0x104934;return e[_0x356ee7(0x117)];}get[_0x104934(0x122)](){const _0x262b7a=_0x104934;return e[_0x262b7a(0x122)];}get[_0x104934(0x106)](){const _0x227ef6=_0x104934;return e[_0x227ef6(0x106)];}get[_0x104934(0x168)](){const _0x450bac=_0x104934;return e[_0x450bac(0x168)];}get[_0x104934(0x13f)](){const _0x3133e9=_0x104934;return e[_0x3133e9(0x13f)];}get[_0x104934(0x11b)](){return e['ShapeLineJoinEnum'];}get['ShapeArrowTypeEnum'](){const _0x5e62df=_0x104934;return e[_0x5e62df(0xeb)];}get['ShapeArrowSizeEnum'](){return e['ShapeArrowSizeEnum'];}};t[_0x104934(0x162)][_0x104934(0xfc)](c);function l(_0x27d6c8){'@babel/helpers - typeof';const _0x10c765=_0x104934;return l=typeof Symbol==_0x10c765(0x158)&&typeof Symbol[_0x10c765(0x130)]==_0x10c765(0xed)?function(_0x37d1ac){return typeof _0x37d1ac;}:function(_0x2e707e){const _0x46d624=_0x10c765;return _0x2e707e&&typeof Symbol==_0x46d624(0x158)&&_0x2e707e[_0x46d624(0x154)]===Symbol&&_0x2e707e!==Symbol[_0x46d624(0x16a)]?_0x46d624(0xed):typeof _0x2e707e;},l(_0x27d6c8);}function u(_0x1e392,_0x4fee2e){const _0x47640e=_0x104934;if(l(_0x1e392)!=_0x47640e(0x101)||!_0x1e392)return _0x1e392;var _0x11b339=_0x1e392[Symbol[_0x47640e(0x103)]];if(_0x11b339!==void 0x0){var _0x667c14=_0x11b339[_0x47640e(0x11c)](_0x1e392,_0x4fee2e||'default');if(l(_0x667c14)!=_0x47640e(0x101))return _0x667c14;throw TypeError(_0x47640e(0x12a));}return(_0x4fee2e===_0x47640e(0x163)?String:Number)(_0x1e392);}function d(_0x375e0f){const _0x48668d=_0x104934;var _0x36d545=u(_0x375e0f,_0x48668d(0x163));return l(_0x36d545)==_0x48668d(0xed)?_0x36d545:_0x36d545+'';}function f(_0x14f3ca,_0x18cb2b,_0x13d96e){return(_0x18cb2b=d(_0x18cb2b))in _0x14f3ca?Object['defineProperty'](_0x14f3ca,_0x18cb2b,{'value':_0x13d96e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14f3ca[_0x18cb2b]=_0x13d96e,_0x14f3ca;}var p=class{constructor(_0x2f5f29,_0x53468e,_0x5645d6,_0x5149a1){const _0x797b17=_0x104934;f(this,_0x797b17(0x127),void 0x0),f(this,'subUnitId',void 0x0),f(this,_0x797b17(0xe5),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x797b17(0x149),n[_0x797b17(0x155)]),f(this,_0x797b17(0x14d),n[_0x797b17(0x110)]),f(this,'shapeType',void 0x0),f(this,_0x797b17(0x169),{}),f(this,'_injector',void 0x0),this[_0x797b17(0x127)]=_0x2f5f29,this[_0x797b17(0x10e)]=_0x53468e,this[_0x797b17(0xe5)]=_0x5645d6||(0x0,r[_0x797b17(0x14e)])(),this[_0x797b17(0x128)]=_0x5149a1;}[_0x104934(0x14b)](_0x1dff6a,_0x375949,_0x408b10,_0x1bd0b9){const _0x35ff10=_0x104934;let _0x1413fb=this['_injector'][_0x35ff10(0x118)](a['SheetSkeletonService'])[_0x35ff10(0x148)](this[_0x35ff10(0x127)],this[_0x35ff10(0x10e)]);if(!_0x1413fb)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x35ff10(0x127)]+_0x35ff10(0x10d)+this[_0x35ff10(0x10e)]+_0x35ff10(0xee));let {transform:_0xe49dec}=(0x0,a[_0x35ff10(0x10b)])(this['unitId'],this[_0x35ff10(0x10e)],{'row':_0x1dff6a,'column':_0x375949,'rowOffset':_0x408b10,'columnOffset':_0x1bd0b9},0x1,0x1,_0x1413fb);return this['x']=_0xe49dec[_0x35ff10(0x111)],this['y']=_0xe49dec['top'],this;}['setAbsolutePosition'](_0x5b3fcf,_0x17a670){return this['x']=_0x5b3fcf,this['y']=_0x17a670,this;}[_0x104934(0xd9)](_0x399d8f){return this['shapeType']=_0x399d8f,this;}['setShapeSolidFill'](_0x592fd3,_0x33398f){const _0x3396ef=_0x104934;return this[_0x3396ef(0x169)][_0x3396ef(0xec)]||(this[_0x3396ef(0x169)][_0x3396ef(0xec)]={}),this[_0x3396ef(0x169)][_0x3396ef(0xec)]['fillType']=e['ShapeFillEnum'][_0x3396ef(0x151)],_0x592fd3!==void 0x0&&(this['shapeData'][_0x3396ef(0xec)][_0x3396ef(0x120)]=_0x592fd3),_0x33398f!==void 0x0&&(this[_0x3396ef(0x169)][_0x3396ef(0xec)]['opacity']=_0x33398f),this;}['setShapeGradientFill'](_0x120552,_0x2b3490,_0x468c7b){const _0x24e446=_0x104934;if(_0x2b3490===void 0x0||_0x2b3490[_0x24e446(0x135)]===0x0)throw Error(_0x24e446(0xe3));return this['shapeData'][_0x24e446(0xec)]||(this[_0x24e446(0x169)][_0x24e446(0xec)]={}),this[_0x24e446(0x169)][_0x24e446(0xec)][_0x24e446(0x11a)]=_0x2b3490,this[_0x24e446(0x169)]['fill'][_0x24e446(0x15b)]=e[_0x24e446(0x117)][_0x24e446(0x131)],this['shapeData'][_0x24e446(0xec)][_0x24e446(0x11d)]=_0x120552,_0x468c7b!==void 0x0&&(this[_0x24e446(0x169)]['fill']['gradientAngle']=_0x468c7b),this;}['setNoneFill'](){const _0x36d222=_0x104934;return this[_0x36d222(0x169)][_0x36d222(0xec)]={'fillType':e['ShapeFillEnum'][_0x36d222(0x132)]},this;}[_0x104934(0xf2)](_0x1f3235){const _0x47eb8b=_0x104934;return this[_0x47eb8b(0x169)][_0x47eb8b(0xe2)]||(this[_0x47eb8b(0x169)][_0x47eb8b(0xe2)]={}),this[_0x47eb8b(0x169)][_0x47eb8b(0xe2)][_0x47eb8b(0x120)]=_0x1f3235,this;}[_0x104934(0x11f)](_0x990963){const _0xece515=_0x104934;return this[_0xece515(0x169)]['stroke']||(this[_0xece515(0x169)]['stroke']={}),this[_0xece515(0x169)]['stroke'][_0xece515(0x149)]=_0x990963,this;}[_0x104934(0xfd)](_0x9538b8){const _0x9d4113=_0x104934;return this['shapeData'][_0x9d4113(0xe2)]||(this['shapeData'][_0x9d4113(0xe2)]={}),this[_0x9d4113(0x169)][_0x9d4113(0xe2)][_0x9d4113(0x16f)]=_0x9538b8,this;}[_0x104934(0x16d)](_0x518936){const _0x153324=_0x104934;return this[_0x153324(0x169)]['stroke']||(this[_0x153324(0x169)][_0x153324(0xe2)]={}),this[_0x153324(0x169)]['stroke'][_0x153324(0x12e)]=_0x518936,this;}['setStrokeLineCapType'](_0x21101f){const _0x5530b0=_0x104934;return this[_0x5530b0(0x169)][_0x5530b0(0xe2)]||(this[_0x5530b0(0x169)]['stroke']={}),this['shapeData'][_0x5530b0(0xe2)][_0x5530b0(0x153)]=_0x21101f,this;}['setStrokeOpacity'](_0xeba6dd){const _0x453cb7=_0x104934;return this['shapeData']['stroke']||(this[_0x453cb7(0x169)][_0x453cb7(0xe2)]={}),this[_0x453cb7(0x169)][_0x453cb7(0xe2)]['opacity']=_0xeba6dd,this;}[_0x104934(0xde)](_0x21b526){const _0x231b04=_0x104934;return this[_0x231b04(0x169)][_0x231b04(0xe2)]||(this[_0x231b04(0x169)][_0x231b04(0xe2)]={}),this['shapeData']['stroke'][_0x231b04(0x15a)]=_0x21b526,this;}[_0x104934(0x102)](_0x58d420){const _0x129e57=_0x104934;return this[_0x129e57(0x149)]=_0x58d420,this;}[_0x104934(0x124)](_0x568633){const _0x1f40b0=_0x104934;return this[_0x1f40b0(0x14d)]=_0x568633,this;}[_0x104934(0xe6)](){const _0x370a20=_0x104934;let _0x2f3af4=this['_injector'][_0x370a20(0x118)](n[_0x370a20(0x144)])['getShapeModel'](this[_0x370a20(0x127)],this[_0x370a20(0x10e)],this[_0x370a20(0xe5)]);return _0x2f3af4?(0x0,e['isConnectorShape'])(_0x2f3af4[_0x370a20(0x13a)]()):this[_0x370a20(0x136)]?(0x0,e[_0x370a20(0x160)])(this[_0x370a20(0x136)]):!0x1;}['getConnectionSites'](){const _0x5eda92=_0x104934;let _0x5903ff=this[_0x5eda92(0x128)][_0x5eda92(0x118)](n[_0x5eda92(0x144)])[_0x5eda92(0x12b)](this['unitId'],this[_0x5eda92(0x10e)],this[_0x5eda92(0xe5)]);if(!_0x5903ff)return[];let _0x3ea013=this[_0x5eda92(0x128)][_0x5eda92(0x118)](i['IDrawingManagerService'])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0x3ea013!=null&&_0x3ea013[_0x5eda92(0xe7)]))return[];let {width:_0x1e2692=0x0,height:_0x273e92=0x0}=_0x3ea013['transform'];return _0x5903ff[_0x5eda92(0xfa)]({'width':_0x1e2692,'height':_0x273e92}),_0x5903ff[_0x5eda92(0x105)]();}[_0x104934(0x15d)](){const _0x3ddf9c=_0x104934;let _0x4e4fcb=this[_0x3ddf9c(0x128)][_0x3ddf9c(0x118)](n['SheetsShapeService'])[_0x3ddf9c(0x12b)](this[_0x3ddf9c(0x127)],this[_0x3ddf9c(0x10e)],this[_0x3ddf9c(0xe5)]);if(!_0x4e4fcb)return[];let _0x3e450f=this[_0x3ddf9c(0x128)][_0x3ddf9c(0x118)](i[_0x3ddf9c(0x139)])[_0x3ddf9c(0x156)]({'unitId':this[_0x3ddf9c(0x127)],'subUnitId':this[_0x3ddf9c(0x10e)],'drawingId':this[_0x3ddf9c(0xe5)]});if(!(_0x3e450f!=null&&_0x3e450f['transform']))return[];let {width:_0x3aa546=0x0,height:_0xf256ca=0x0}=_0x3e450f[_0x3ddf9c(0xe7)];return _0x4e4fcb['updateContext']({'width':_0x3aa546,'height':_0xf256ca}),_0x4e4fcb[_0x3ddf9c(0x134)]();}[_0x104934(0x142)](){const _0x54fd6f=_0x104934;let _0x22fcd6=this[_0x54fd6f(0x128)][_0x54fd6f(0x118)](n['SheetsShapeService'])[_0x54fd6f(0x12b)](this[_0x54fd6f(0x127)],this['subUnitId'],this[_0x54fd6f(0xe5)]);if(!_0x22fcd6||!(0x0,e[_0x54fd6f(0x160)])(_0x22fcd6['getShapeType']()))return[];let _0x30473f=this[_0x54fd6f(0x128)][_0x54fd6f(0x118)](i[_0x54fd6f(0x139)])[_0x54fd6f(0x156)]({'unitId':this['unitId'],'subUnitId':this[_0x54fd6f(0x10e)],'drawingId':this[_0x54fd6f(0xe5)]});if(!(_0x30473f!=null&&_0x30473f[_0x54fd6f(0xe7)]))return[];let {width:_0x383a12=0x0,height:_0x1ed6cb=0x0}=_0x30473f[_0x54fd6f(0xe7)];return _0x22fcd6['updateContext']({'width':_0x383a12,'height':_0x1ed6cb}),_0x22fcd6['getConnectorLinePoints']();}[_0x104934(0x109)](){const _0xdcc744=_0x104934;var _0x1adbc5;let _0x416f34=this[_0xdcc744(0x128)][_0xdcc744(0x118)](n[_0xdcc744(0x144)])[_0xdcc744(0x12b)](this[_0xdcc744(0x127)],this['subUnitId'],this[_0xdcc744(0xe5)]);return _0x416f34?(_0x1adbc5=_0x416f34['getStartConnectInfo']())==null?null:_0x1adbc5:null;}[_0x104934(0x108)](){const _0x5d36e8=_0x104934;var _0x38ead4;let _0x1f648c=this[_0x5d36e8(0x128)][_0x5d36e8(0x118)](n[_0x5d36e8(0x144)])[_0x5d36e8(0x12b)](this[_0x5d36e8(0x127)],this[_0x5d36e8(0x10e)],this[_0x5d36e8(0xe5)]);return _0x1f648c?(_0x38ead4=_0x1f648c['getEndConnectInfo']())==null?null:_0x38ead4:null;}[_0x104934(0x137)](){const _0x2f75f8=_0x104934;var _0x3aaed0,_0x28d3d0;if(!this[_0x2f75f8(0x136)])throw Error(_0x2f75f8(0x13b));if(this['x']===0x0||this['y']===0x0){let _0x13cf47=this[_0x2f75f8(0x128)]['get'](a[_0x2f75f8(0xf3)])['ensureSkeleton'](this[_0x2f75f8(0x127)],this[_0x2f75f8(0x10e)]);if(!_0x13cf47)throw Error(_0x2f75f8(0xe4)+this['unitId']+_0x2f75f8(0x10d)+this['subUnitId']+_0x2f75f8(0xee));let {transform:_0x46cc7f}=(0x0,a['convertPositionCellToSheetOverGrid'])(this[_0x2f75f8(0x127)],this[_0x2f75f8(0x10e)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x13cf47);this['x']=this['x']>0x0?this['x']:_0x46cc7f[_0x2f75f8(0x111)],this['y']=this['y']>0x0?this['y']:_0x46cc7f[_0x2f75f8(0x157)];}return this[_0x2f75f8(0x149)]=(_0x3aaed0=this[_0x2f75f8(0x149)])==null?n['DEFAULT_SHAPE_WIDTH']:_0x3aaed0,this['height']=(_0x28d3d0=this[_0x2f75f8(0x14d)])==null?n[_0x2f75f8(0x110)]:_0x28d3d0,{'unitId':this[_0x2f75f8(0x127)],'subUnitId':this['subUnitId'],'shapeId':this[_0x2f75f8(0xe5)],'shapeType':this[_0x2f75f8(0x136)],'shapeData':Object[_0x2f75f8(0x12f)](this[_0x2f75f8(0x169)])[_0x2f75f8(0x135)]>0x0?this[_0x2f75f8(0x169)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x2f75f8(0x149)],'height':this['height']};}[_0x104934(0x104)](){const _0x556b58=_0x104934;return this[_0x556b58(0xe5)];}[_0x104934(0x13a)](){const _0x1e0d6a=_0x104934;return this[_0x1e0d6a(0x136)];}[_0x104934(0xe9)](){const _0x119e76=_0x104934;return this[_0x119e76(0x169)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x104934(0x170)](){const _0x539611=_0x104934;return{'width':this[_0x539611(0x149)],'height':this['height']};}},m=class extends p{constructor(_0x281074,_0x598f20,_0x3f83d5,_0x1e3955){const _0x139937=_0x104934;super(_0x281074,_0x598f20,_0x3f83d5,_0x1e3955),f(this,_0x139937(0x169),{});}[_0x104934(0xd9)](_0x32759d){const _0x255dd3=_0x104934;if(!(0x0,e[_0x255dd3(0x160)])(_0x32759d))throw Error(_0x255dd3(0x14a)+_0x32759d+_0x255dd3(0x125));return super[_0x255dd3(0xd9)](_0x32759d),this;}['setStartArrowType'](_0x334211){const _0x67f875=_0x104934;var _0x22c2b2,_0x1f3977;return(_0x22c2b2=this['shapeData'])!=null&&_0x22c2b2['ln']||(this[_0x67f875(0x169)]['ln']={}),!((_0x1f3977=this[_0x67f875(0x169)])==null||(_0x1f3977=_0x1f3977['ln'])==null)&&_0x1f3977[_0x67f875(0x171)]||(this['shapeData']['ln'][_0x67f875(0x171)]={}),this[_0x67f875(0x169)]['ln']['startArrow']['type']=_0x334211,this;}[_0x104934(0xe1)](_0x2d3bf3){const _0x5e163e=_0x104934;var _0x449582,_0x4e7865;return(_0x449582=this[_0x5e163e(0x169)])!=null&&_0x449582['ln']||(this[_0x5e163e(0x169)]['ln']={}),!((_0x4e7865=this[_0x5e163e(0x169)])==null||(_0x4e7865=_0x4e7865['ln'])==null)&&_0x4e7865[_0x5e163e(0x166)]||(this[_0x5e163e(0x169)]['ln'][_0x5e163e(0x166)]={}),this['shapeData']['ln'][_0x5e163e(0x166)][_0x5e163e(0xdd)]=_0x2d3bf3,this;}[_0x104934(0x143)](_0x59f1ff){const _0x5dffe1=_0x104934;var _0x3ef6a1,_0x224fa8;return(_0x3ef6a1=this['shapeData'])!=null&&_0x3ef6a1['ln']||(this[_0x5dffe1(0x169)]['ln']={}),!((_0x224fa8=this['shapeData'])==null||(_0x224fa8=_0x224fa8['ln'])==null)&&_0x224fa8['startArrow']||(this[_0x5dffe1(0x169)]['ln']['startArrow']={}),this['shapeData']['ln'][_0x5dffe1(0x171)][_0x5dffe1(0xfb)]=_0x59f1ff,this;}[_0x104934(0xf4)](_0x37b318){const _0x8a5770=_0x104934;var _0xf722f7,_0x36f251;return(_0xf722f7=this['shapeData'])!=null&&_0xf722f7['ln']||(this[_0x8a5770(0x169)]['ln']={}),!((_0x36f251=this[_0x8a5770(0x169)])==null||(_0x36f251=_0x36f251['ln'])==null)&&_0x36f251[_0x8a5770(0x166)]||(this[_0x8a5770(0x169)]['ln'][_0x8a5770(0x166)]={}),this['shapeData']['ln'][_0x8a5770(0x166)]['size']=_0x37b318,this;}[_0x104934(0x137)](){const _0x40c17f=_0x104934;return super[_0x40c17f(0x137)]();}[_0x104934(0x108)](){const _0x3c5e31=_0x104934;var _0x141cb9;return((_0x141cb9=this['shapeData'])==null||(_0x141cb9=_0x141cb9[_0x3c5e31(0x115)])==null?void 0x0:_0x141cb9['to'])||null;}[_0x104934(0x109)](){const _0x5510b4=_0x104934;var _0x914350;return((_0x914350=this[_0x5510b4(0x169)])==null||(_0x914350=_0x914350['relation'])==null?void 0x0:_0x914350[_0x5510b4(0x11e)])||null;}};function h(_0x3d8388,_0x81add1,_0x28b2eb,_0x404e66,_0xd65c15,_0x1adeaa){const _0x39dbf4=_0x104934;let _0x283da7=_0xd65c15['getShapeModel'](_0x3d8388,_0x81add1,_0x28b2eb);if(!_0x283da7)return null;let _0x3c8886=_0x1adeaa[_0x39dbf4(0x156)]({'unitId':_0x3d8388,'subUnitId':_0x81add1,'drawingId':_0x28b2eb});if(!(_0x3c8886!=null&&_0x3c8886['transform']))return null;let {left:_0x382d37=0x0,top:_0x30d4bf=0x0,width:_0x31a634=0x0,height:_0x440f90=0x0,flipX:_0x401796=!0x1,flipY:_0x4730a3=!0x1,angle:_0x33d41c}=_0x3c8886[_0x39dbf4(0xe7)];_0x283da7[_0x39dbf4(0xfa)]({'width':_0x31a634,'height':_0x440f90});let _0x1aed0d=_0x283da7[_0x39dbf4(0x105)]()[_0x39dbf4(0x16c)](_0x54ad75=>_0x54ad75['index']===_0x404e66);if(!_0x1aed0d)return null;let _0x3ea51c=_0x401796?_0x31a634-_0x1aed0d['x']:_0x1aed0d['x'],_0x4f5420=_0x4730a3?_0x440f90-_0x1aed0d['y']:_0x1aed0d['y'];if(_0x33d41c&&_0x33d41c!==0x0){let _0x36eeda=_0x33d41c*Math['PI']/0xb4,_0x3fa36c=Math['cos'](_0x36eeda),_0x9a7e62=Math[_0x39dbf4(0x10f)](_0x36eeda),_0x3ac352=_0x31a634/0x2,_0x11a65c=_0x440f90/0x2,_0xb811f3=_0x3ea51c-_0x3ac352,_0x53bce6=_0x4f5420-_0x11a65c;_0x3ea51c=_0x3ac352+_0xb811f3*_0x3fa36c-_0x53bce6*_0x9a7e62,_0x4f5420=_0x11a65c+_0xb811f3*_0x9a7e62+_0x53bce6*_0x3fa36c;}_0x3ea51c+=_0x382d37,_0x4f5420+=_0x30d4bf;let _0x565f05=_0x1aed0d[_0x39dbf4(0x14c)]/0xea60;_0x401796&&(_0x565f05=0xb4-_0x565f05),_0x4730a3&&(_0x565f05=-_0x565f05),_0x565f05+=_0x33d41c||0x0,_0x565f05=(_0x565f05%0x168+0x168)%0x168;let _0x55e3af=(0x0,e[_0x39dbf4(0x159)])({'left':_0x382d37,'top':_0x30d4bf,'width':_0x31a634,'height':_0x440f90},_0x33d41c||0x0);return{'point':{'x':_0x3ea51c,'y':_0x4f5420},'angle':_0x565f05,'bounds':_0x55e3af};}function g(_0x1eb9d6,_0xc30834){const _0x5dc8fe=_0x104934;let _0xa46113=_0xc30834['x']-_0x1eb9d6['x'],_0x461014=_0xc30834['y']-_0x1eb9d6['y'];return Math['abs'](_0xa46113)>=Math[_0x5dc8fe(0xf0)](_0x461014)?_0xa46113>=0x0?0xb4:0x0:_0x461014>=0x0?0x10e:0x5a;}function _0x1c67(){const _0x5903cb=['left','18bwnSFK','getAdjustValueByName','getUnitId','relation','getSheetId','ShapeFillEnum','get','FWorksheet','gradientStops','ShapeLineJoinEnum','call','gradientType','from','setStrokeWidth','color','shapeId','ShapeGradientTypeEnum','4143440LYWpwe','setHeight',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','updateShape','unitId','_injector','computeConnectorRouteLayout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeModel','Module','flipY','lineJoinType','keys','iterator','GradientFill','NoFill','getAdjustNames','getDrawingPoints','length','shapeType','build','getShapes','IDrawingManagerService','getShapeType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','_resolveEndpoints','getShapeRelation','push','ShapeLineCapEnum','157137zcIIFc','20TWfkTf','getConnectorLinePoints','setStartArrowSize','SheetsShapeService','_preloadShapeProperties','_resolveExistingOrFreeEndpoint','FShape','ensureSkeleton','width','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','setPosition','ang','height','generateRandomId','DrawingTypeEnum','886360irZnhD','SolidFil','newConnector','capType','constructor','DEFAULT_SHAPE_WIDTH','getDrawingByParam','top','function','getBasicShapeRotateBound','lineStrokeType','fillType','stringify','getAdjustPoints','RemoveSheetDrawingCommand','parse','isConnectorShape','toStringTag','FEnum','string','lineType','9625914HqQOgq','endArrow','shape','ShapeLineDashEnum','shapeData','prototype','worldRect','find','setStrokeLineJoinType','InsertShapeCommand','dashType','getSize','startArrow','executeCommand','drawingType','ConnectorCoordinateTransform','setShapeType','UpdateConnectorRelationCommand','4775498hckvLI','localToWorld','type','setStrokeLineType','defineProperty','entries','setEndArrowType','stroke','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','Skeleton\x20for\x20unitId\x20','drawId','isLineShape','transform','DRAWING_SHAPE','getShapeData','getWorkbook','ShapeArrowTypeEnum','fill','symbol','\x20not\x20found','cxnIndex','abs','_commandService','setStrokeColor','SheetSkeletonService','setEndArrowSize','2218442ZnvvGu','flipX','removeShape','getDrawingData','SetShapeDrawingDataCommand','updateContext','size','extend','setStrokeLineDashType','newShape','596509SAesMu','point','object','setWidth','toPrimitive','getShapeId','getConnectionSiteList','ShapeLineTypeEnum','connectionSiteIndex','getEndConnectInfo','getStartConnectInfo','ShapeTypeEnum','convertPositionCellToSheetOverGrid','FConnectorShape','\x20and\x20subUnitId\x20','subUnitId','sin','DEFAULT_SHAPE_HEIGHT'];_0x1c67=function(){return _0x5903cb;};return _0x1c67();}function _(_0x31550d,_0x2f6d52,_0xf7bdc,_0x4d8fb6,_0x8ec45b,_0x5a2bda,_0x3a6044){const _0x2e20ac=_0x104934;let _0x43f8b2=_0x5a2bda[_0x2e20ac(0x12b)](_0x31550d,_0x2f6d52,_0xf7bdc);if(!_0x43f8b2)return null;let _0x2f68e5=_0x3a6044['getDrawingByParam']({'unitId':_0x31550d,'subUnitId':_0x2f6d52,'drawingId':_0xf7bdc});if(!(_0x2f68e5!=null&&_0x2f68e5[_0x2e20ac(0xe7)]))return null;let {left:_0xc812d0=0x0,top:_0x1e58d2=0x0,width:_0x5bddc8=0x0,height:_0x3b52cb=0x0,flipX:_0xd00cb=!0x1,flipY:_0x45d5f1=!0x1}=_0x2f68e5[_0x2e20ac(0xe7)];_0x43f8b2['updateContext']({'width':_0x5bddc8,'height':_0x3b52cb});let _0x13d703=_0x43f8b2[_0x2e20ac(0x142)]();if(_0x13d703[_0x2e20ac(0x135)]<0x2)return null;let _0x4df868=_0x4d8fb6?_0x13d703[0x0]:_0x13d703[_0x13d703[_0x2e20ac(0x135)]-0x1],_0x2a02b3=new e[(_0x2e20ac(0x174))]({'left':_0xc812d0,'top':_0x1e58d2,'width':_0x5bddc8,'height':_0x3b52cb,'flipX':_0xd00cb,'flipY':_0x45d5f1})[_0x2e20ac(0xdc)](_0x4df868);return{'point':_0x2a02b3,'angle':g(_0x8ec45b[_0x2e20ac(0x100)],_0x2a02b3),'bounds':{'left':_0x2a02b3['x'],'top':_0x2a02b3['y'],'width':0x0,'height':0x0}};}var v=class extends s[_0x104934(0x119)]{async['insertShape'](_0x5c67e0){const _0x545647=_0x104934;let {unitId:_0x2ce181,subUnitId:_0x4368b2,shapeId:_0x5b3063,shapeType:_0x11701b,shapeData:_0x4142e9,x:_0x3a61fc,y:_0x3bbb87,width:_0x33d940,height:_0x48534f}=_0x5c67e0;return this[_0x545647(0xf1)][_0x545647(0x172)](n[_0x545647(0x16e)]['id'],{'unitId':_0x2ce181,'subUnitId':_0x4368b2,'shapeId':_0x5b3063,'shapeType':_0x11701b,'shapeData':_0x4142e9,'position':{'x':_0x3a61fc,'y':_0x3bbb87},'width':_0x33d940,'height':_0x48534f});}async[_0x104934(0x126)](_0x5c97d7){const _0x4f88dc=_0x104934;let {unitId:_0x481515,subUnitId:_0x1b623a,shapeId:_0x209b59,shapeType:_0x3aa762,shapeData:_0x28316f,x:_0x5ea6a6,y:_0x17a365,width:_0x50eab4,height:_0x72496c}=_0x5c97d7;return this['_commandService']['executeCommand'](n[_0x4f88dc(0xf9)]['id'],{'unitId':_0x481515,'subUnitId':_0x1b623a,'shapeId':_0x209b59,'shapeType':_0x3aa762,'shapeData':_0x28316f,'position':{'x':_0x5ea6a6,'y':_0x17a365},'width':_0x50eab4,'height':_0x72496c});}[_0x104934(0xfe)](_0x43c8d3){const _0x1ed32a=_0x104934;let _0x25199d=this[_0x1ed32a(0xea)]()[_0x1ed32a(0x114)](),_0x5f4143=this[_0x1ed32a(0x116)]();if(_0x43c8d3){let _0x187e97=new p(_0x25199d,_0x5f4143,_0x43c8d3[_0x1ed32a(0xe5)],this[_0x1ed32a(0x128)]);return this[_0x1ed32a(0x145)](_0x187e97,_0x25199d,_0x5f4143,_0x43c8d3[_0x1ed32a(0xe5)]),_0x187e97;}return new p(_0x25199d,_0x5f4143,(0x0,r[_0x1ed32a(0x14e)])(),this[_0x1ed32a(0x128)]);}[_0x104934(0x152)](_0x3f5711){const _0x3732e3=_0x104934;let _0x4f8ceb=this[_0x3732e3(0xea)]()[_0x3732e3(0x114)](),_0x290012=this['getSheetId']();if(_0x3f5711){let _0x55ad97=new m(_0x4f8ceb,_0x290012,_0x3f5711[_0x3732e3(0xe5)],this[_0x3732e3(0x128)]);return this['_preloadShapeProperties'](_0x55ad97,_0x4f8ceb,_0x290012,_0x3f5711[_0x3732e3(0xe5)]),_0x55ad97;}return new m(_0x4f8ceb,_0x290012,(0x0,r[_0x3732e3(0x14e)])(),this[_0x3732e3(0x128)]);}[_0x104934(0x138)](){const _0x4249c4=_0x104934;let _0x31c3d7=this[_0x4249c4(0x128)]['get'](o['ISheetDrawingService']),_0x329418=this[_0x4249c4(0xea)]()['getUnitId'](),_0x5e478e=this[_0x4249c4(0x116)](),_0x3f9f02=_0x31c3d7[_0x4249c4(0xf8)](_0x329418,_0x5e478e);if(!_0x3f9f02)return[];let _0x4e017d=[];for(let [_0x4f55c4,_0x1d6b8a]of Object[_0x4249c4(0xe0)](_0x3f9f02))if(_0x1d6b8a&&_0x1d6b8a[_0x4249c4(0x173)]===r[_0x4249c4(0x14f)][_0x4249c4(0xe8)]){let _0x3643c4=new p(_0x329418,_0x5e478e,_0x4f55c4,this['_injector']);this[_0x4249c4(0x145)](_0x3643c4,_0x329418,_0x5e478e,_0x4f55c4),_0x4e017d[_0x4249c4(0x13e)](_0x3643c4);}return _0x4e017d;}[_0x104934(0xf7)](_0x449539){const _0x13b17c=_0x104934;let {unitId:_0x2a8b7d,subUnitId:_0x5b039d,drawId:_0x173bfc}=_0x449539;return this[_0x13b17c(0xf1)]['executeCommand'](o[_0x13b17c(0x15e)]['id'],{'unitId':_0x2a8b7d,'drawings':[{'unitId':_0x2a8b7d,'subUnitId':_0x5b039d,'drawingId':_0x173bfc,'drawingType':r[_0x13b17c(0x14f)][_0x13b17c(0xe8)]}]});}async['connectShapes'](_0x5a43cb){const _0x2e7c0c=_0x104934;let {connector:_0x24e42c,startTarget:_0x6cf3b0,endTarget:_0x16dc13}=_0x5a43cb;if(!_0x6cf3b0&&!_0x16dc13)return!0x1;let _0x533e2b=this[_0x2e7c0c(0xea)]()[_0x2e7c0c(0x114)](),_0x44c489=this[_0x2e7c0c(0x116)](),_0x41dbee=this[_0x2e7c0c(0x128)][_0x2e7c0c(0x118)](n['SheetsShapeService']),_0x1b4fbc=this[_0x2e7c0c(0x128)]['get'](i[_0x2e7c0c(0x139)]),_0x291adc=_0x41dbee['getShapeModel'](_0x533e2b,_0x44c489,_0x24e42c['drawId']);if(!_0x291adc)return!0x1;let _0xe13285=_0x291adc['getShapeType'](),_0x50604f=_0x291adc[_0x2e7c0c(0x13d)](),_0x11a384={};for(let _0x166d19 of _0x291adc[_0x2e7c0c(0x133)]()){let _0x3359e0=_0x291adc[_0x2e7c0c(0x113)](_0x166d19);_0x3359e0!==void 0x0&&(_0x11a384[_0x166d19]=_0x3359e0);}let {startInfo:_0x52a552,endInfo:_0x5db626}=this['_resolveEndpoints'](_0x533e2b,_0x44c489,_0x24e42c,_0x291adc,_0x6cf3b0,_0x16dc13,_0x41dbee,_0x1b4fbc,_0x50604f);if(!_0x52a552||!_0x5db626)return!0x1;let _0x2f6fc3=(0x0,e[_0x2e7c0c(0x129)])((0x0,e['routeConnectorLineShape'])(_0x52a552,_0x5db626,_0xe13285),_0xe13285),_0x125c22={};return _0x6cf3b0?_0x125c22['from']={'shapeId':_0x6cf3b0[_0x2e7c0c(0x167)][_0x2e7c0c(0xe5)],'cxnIndex':_0x6cf3b0[_0x2e7c0c(0x107)]}:_0x50604f!=null&&_0x50604f[_0x2e7c0c(0x11e)]&&(_0x125c22['from']=_0x50604f['from']),_0x16dc13?_0x125c22['to']={'shapeId':_0x16dc13['shape'][_0x2e7c0c(0xe5)],'cxnIndex':_0x16dc13[_0x2e7c0c(0x107)]}:_0x50604f!=null&&_0x50604f['to']&&(_0x125c22['to']=_0x50604f['to']),this['_commandService'][_0x2e7c0c(0x172)](n[_0x2e7c0c(0xda)]['id'],{'unitId':_0x533e2b,'subUnitId':_0x44c489,'connectorShapeId':_0x24e42c[_0x2e7c0c(0xe5)],'width':_0x2f6fc3[_0x2e7c0c(0x16b)][_0x2e7c0c(0x149)],'height':_0x2f6fc3['worldRect'][_0x2e7c0c(0x14d)],'left':_0x2f6fc3[_0x2e7c0c(0x16b)][_0x2e7c0c(0x111)],'top':_0x2f6fc3[_0x2e7c0c(0x16b)][_0x2e7c0c(0x157)],'flipX':_0x2f6fc3[_0x2e7c0c(0x16b)][_0x2e7c0c(0xf6)]||!0x1,'flipY':_0x2f6fc3['worldRect'][_0x2e7c0c(0x12d)]||!0x1,'oldAdjustValues':_0x11a384,'newAdjustValues':_0x2f6fc3['adjustValues'],'newLineType':_0x2f6fc3[_0x2e7c0c(0x164)],'oldLineType':_0xe13285,'rotation':_0x2f6fc3['rotation'],'oldRelation':_0x50604f,'newRelation':_0x125c22});}['_preloadShapeProperties'](_0x4103af,_0x1ac5f2,_0x21c6f5,_0x1e8c30){const _0x4ee62a=_0x104934;let _0x3160a0=this[_0x4ee62a(0x128)][_0x4ee62a(0x118)](i['IDrawingManagerService'])[_0x4ee62a(0x156)]({'unitId':_0x1ac5f2,'subUnitId':_0x21c6f5,'drawingId':_0x1e8c30});if(_0x3160a0!=null&&_0x3160a0[_0x4ee62a(0xe7)]){var _0x33ca78,_0x1d1ec5,_0x4c7747,_0x36279b;_0x4103af['x']=(_0x33ca78=_0x3160a0['transform'][_0x4ee62a(0x111)])==null?0x0:_0x33ca78,_0x4103af['y']=(_0x1d1ec5=_0x3160a0[_0x4ee62a(0xe7)][_0x4ee62a(0x157)])==null?0x0:_0x1d1ec5,_0x4103af[_0x4ee62a(0x149)]=(_0x4c7747=_0x3160a0['transform']['width'])==null?_0x4103af[_0x4ee62a(0x149)]:_0x4c7747,_0x4103af[_0x4ee62a(0x14d)]=(_0x36279b=_0x3160a0[_0x4ee62a(0xe7)][_0x4ee62a(0x14d)])==null?_0x4103af['height']:_0x36279b;}let _0x3b9298=this[_0x4ee62a(0x128)][_0x4ee62a(0x118)](n[_0x4ee62a(0x144)])['getShapeModel'](_0x1ac5f2,_0x21c6f5,_0x1e8c30);if(_0x3b9298){_0x4103af[_0x4ee62a(0x136)]=_0x3b9298[_0x4ee62a(0x13a)]();let _0x29141f=_0x3b9298[_0x4ee62a(0xe9)]();_0x29141f&&(_0x4103af[_0x4ee62a(0x169)]=JSON[_0x4ee62a(0x15f)](JSON[_0x4ee62a(0x15c)](_0x29141f)));}}[_0x104934(0x13c)](_0xa3dcec,_0x17d583,_0x3e609a,_0x49d344,_0x408b50,_0x10f53c,_0x37ee53,_0x196424,_0x24f4d0){const _0x562feb=_0x104934;let _0x38d934=null,_0x537ddf=null;return _0x408b50&&(_0x38d934=h(_0xa3dcec,_0x17d583,_0x408b50[_0x562feb(0x167)][_0x562feb(0xe5)],_0x408b50['connectionSiteIndex'],_0x37ee53,_0x196424)),_0x10f53c&&(_0x537ddf=h(_0xa3dcec,_0x17d583,_0x10f53c[_0x562feb(0x167)][_0x562feb(0xe5)],_0x10f53c[_0x562feb(0x107)],_0x37ee53,_0x196424)),_0x38d934||(_0x38d934=this[_0x562feb(0x146)](_0xa3dcec,_0x17d583,_0x3e609a[_0x562feb(0xe5)],!0x0,_0x537ddf,_0x24f4d0==null?void 0x0:_0x24f4d0['from'],_0x37ee53,_0x196424)),_0x537ddf||(_0x537ddf=this['_resolveExistingOrFreeEndpoint'](_0xa3dcec,_0x17d583,_0x3e609a[_0x562feb(0xe5)],!0x1,_0x38d934,_0x24f4d0==null?void 0x0:_0x24f4d0['to'],_0x37ee53,_0x196424)),{'startInfo':_0x38d934,'endInfo':_0x537ddf};}[_0x104934(0x146)](_0x4a3b1f,_0x13635f,_0x3f99f5,_0x54c864,_0x18a643,_0x2e857a,_0x4f3319,_0x332ccb){const _0x190651=_0x104934;if(_0x2e857a){let _0x559ca6=h(_0x4a3b1f,_0x13635f,_0x2e857a[_0x190651(0x121)],_0x2e857a[_0x190651(0xef)],_0x4f3319,_0x332ccb);if(_0x559ca6)return _0x559ca6;}return _0x18a643?_(_0x4a3b1f,_0x13635f,_0x3f99f5,_0x54c864,_0x18a643,_0x4f3319,_0x332ccb):null;}};function _0x4448(_0x24e2c4,_0xc33e30){_0x24e2c4=_0x24e2c4-0xd9;const _0x1c67eb=_0x1c67();let _0x4448ee=_0x1c67eb[_0x24e2c4];return _0x4448ee;}s[_0x104934(0x119)][_0x104934(0xfc)](v),exports[_0x104934(0x10c)]=m,exports[_0x104934(0x147)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x20ae4b=_0x1097;(function(_0x2da9d2,_0x5de181){const _0x4c88bb=_0x1097,_0x22e8e7=_0x2da9d2();while(!![]){try{const _0x4f57e9=parseInt(_0x4c88bb(0x21f))/0x1+-parseInt(_0x4c88bb(0x20f))/0x2+-parseInt(_0x4c88bb(0x24a))/0x3*(-parseInt(_0x4c88bb(0x1d1))/0x4)+parseInt(_0x4c88bb(0x1ec))/0x5*(parseInt(_0x4c88bb(0x1e8))/0x6)+parseInt(_0x4c88bb(0x23c))/0x7*(parseInt(_0x4c88bb(0x24f))/0x8)+parseInt(_0x4c88bb(0x1e9))/0x9*(-parseInt(_0x4c88bb(0x255))/0xa)+-parseInt(_0x4c88bb(0x228))/0xb;if(_0x4f57e9===_0x5de181)break;else _0x22e8e7['push'](_0x22e8e7['shift']());}catch(_0x496505){_0x22e8e7['push'](_0x22e8e7['shift']());}}}(_0x2508,0x36474),Object[_0x20ae4b(0x225)](exports,Symbol[_0x20ae4b(0x250)],{'value':_0x20ae4b(0x26f)}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core`),n=require(`@univerjs/sheets`),r=require(`@univerjs/sheets-drawing`),i=require(`@univerjs-pro/license`),a=require(`@univerjs/drawing`);function o(_0x34ff72){'@babel/helpers - typeof';const _0xfb63a3=_0x20ae4b;return o=typeof Symbol==_0xfb63a3(0x1fe)&&typeof Symbol[_0xfb63a3(0x20a)]==_0xfb63a3(0x245)?function(_0xa0a7d5){return typeof _0xa0a7d5;}:function(_0x58c8c3){const _0x5b4cec=_0xfb63a3;return _0x58c8c3&&typeof Symbol==_0x5b4cec(0x1fe)&&_0x58c8c3[_0x5b4cec(0x22a)]===Symbol&&_0x58c8c3!==Symbol[_0x5b4cec(0x1f1)]?'symbol':typeof _0x58c8c3;},o(_0x34ff72);}function s(_0x4c48ca,_0x34a3e7){const _0x2c94a1=_0x20ae4b;if(o(_0x4c48ca)!='object'||!_0x4c48ca)return _0x4c48ca;var _0x287312=_0x4c48ca[Symbol[_0x2c94a1(0x1da)]];if(_0x287312!==void 0x0){var _0x5e6a26=_0x287312[_0x2c94a1(0x25c)](_0x4c48ca,_0x34a3e7||_0x2c94a1(0x258));if(o(_0x5e6a26)!=_0x2c94a1(0x1bc))return _0x5e6a26;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x34a3e7===_0x2c94a1(0x20d)?String:Number)(_0x4c48ca);}function c(_0x23704f){const _0x39af7e=_0x20ae4b;var _0x4c7dfd=s(_0x23704f,_0x39af7e(0x20d));return o(_0x4c7dfd)==_0x39af7e(0x245)?_0x4c7dfd:_0x4c7dfd+'';}function l(_0x310ae4,_0x10c0c9,_0x25a5ba){return(_0x10c0c9=c(_0x10c0c9))in _0x310ae4?Object['defineProperty'](_0x310ae4,_0x10c0c9,{'value':_0x25a5ba,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x310ae4[_0x10c0c9]=_0x25a5ba,_0x310ae4;}var u=class extends t[_0x20ae4b(0x1d6)]{constructor(){const _0x23f615=_0x20ae4b;super(),l(this,'_shapes',new Map()),l(this,_0x23f615(0x1d3),new Set()),l(this,_0x23f615(0x20b),new Set());}[_0x20ae4b(0x1c8)](_0x4a8b41,_0x162f6e,_0x46cea8){const _0x2476e8=_0x20ae4b;let _0xbd4b80=new e[(_0x2476e8(0x219))](_0x4a8b41,_0x162f6e,_0x46cea8);return this[_0x2476e8(0x232)]['set'](_0x162f6e,_0xbd4b80),(0x0,e[_0x2476e8(0x1ea)])(_0x4a8b41)&&this[_0x2476e8(0x1d3)][_0x2476e8(0x263)](_0x162f6e),_0xbd4b80;}[_0x20ae4b(0x261)](_0xeb0da4){const _0x5844d4=_0x20ae4b;let _0x2948e5=[];for(let _0x6f6430 of this[_0x5844d4(0x1d3)]){let _0x276d72=this[_0x5844d4(0x232)][_0x5844d4(0x1ab)](_0x6f6430);if(_0x276d72){let _0x3fc854=_0x276d72[_0x5844d4(0x1ed)]();if(_0x3fc854){var _0x168705,_0x4179c7;((_0x168705=_0x3fc854[_0x5844d4(0x269)])==null?void 0x0:_0x168705[_0x5844d4(0x1f9)])===_0xeb0da4&&_0x2948e5[_0x5844d4(0x224)]({..._0x3fc854['from'],'lineShapeId':_0x6f6430,'isFrom':!0x0}),((_0x4179c7=_0x3fc854['to'])==null?void 0x0:_0x4179c7[_0x5844d4(0x1f9)])===_0xeb0da4&&_0x2948e5[_0x5844d4(0x224)]({..._0x3fc854['to'],'lineShapeId':_0x6f6430,'isFrom':!0x1});}}}return _0x2948e5;}[_0x20ae4b(0x1cb)](_0xae2ad3){const _0x232929=_0x20ae4b;let _0x588bb0=this[_0x232929(0x232)][_0x232929(0x1ab)](_0xae2ad3);if(_0x588bb0)return _0x588bb0[_0x232929(0x1ed)]();}['getShapeType'](_0x35c14d){const _0x54a4b4=_0x20ae4b;let _0x487cf3=this[_0x54a4b4(0x232)][_0x54a4b4(0x1ab)](_0x35c14d);if(_0x487cf3)return _0x487cf3[_0x54a4b4(0x1ac)]();}[_0x20ae4b(0x1d7)](_0x4174da){const _0x3a9966=_0x20ae4b;return this[_0x3a9966(0x232)][_0x3a9966(0x22d)](_0x4174da);}[_0x20ae4b(0x257)](_0x5dd626){const _0x1b9e24=_0x20ae4b;let _0x32b0e9=this[_0x1b9e24(0x232)]['get'](_0x5dd626);_0x32b0e9&&((0x0,e[_0x1b9e24(0x1ea)])(_0x32b0e9[_0x1b9e24(0x1ac)]())&&this['_linesIds']['delete'](_0x5dd626),this['_shapes'][_0x1b9e24(0x1d9)](_0x5dd626));}[_0x20ae4b(0x1e6)](){const _0x1909f5=_0x20ae4b;let _0x37b5f5=[];return this[_0x1909f5(0x232)]['forEach'](_0x3a16ea=>{const _0x172711=_0x1909f5;_0x37b5f5[_0x172711(0x224)](_0x3a16ea[_0x172711(0x1e6)]());}),_0x37b5f5;}[_0x20ae4b(0x201)](_0x27af29){const _0x3c1c57=_0x20ae4b;for(let _0x21d0b7 of _0x27af29){let {id:_0x18dbc6,shapeType:_0x428bb9}=_0x21d0b7,_0x243bec=this[_0x3c1c57(0x1c8)](_0x428bb9,_0x18dbc6,_0x21d0b7[_0x3c1c57(0x1f8)]);_0x243bec&&_0x243bec[_0x3c1c57(0x207)]()&&this['_linesIds'][_0x3c1c57(0x263)](_0x18dbc6);}}[_0x20ae4b(0x243)](){const _0x4bfaa2=_0x20ae4b;this[_0x4bfaa2(0x218)]||(this['_shapes']['forEach'](_0x2bac59=>{const _0x655a4e=_0x4bfaa2;_0x2bac59[_0x655a4e(0x243)]();}),this[_0x4bfaa2(0x232)][_0x4bfaa2(0x247)](),this[_0x4bfaa2(0x1d3)][_0x4bfaa2(0x247)](),this[_0x4bfaa2(0x20b)][_0x4bfaa2(0x247)](),super[_0x4bfaa2(0x243)]());}};function d(_0x5ed234,_0x3f03e2){return function(_0x82a3e6,_0x47d216){_0x3f03e2(_0x82a3e6,_0x47d216,_0x5ed234);};}function f(_0x89566c,_0x593582,_0xb44c62,_0x53bae1){const _0x2dba31=_0x20ae4b;var _0x5ac1c4=arguments[_0x2dba31(0x1f0)],_0x2c1c57=_0x5ac1c4<0x3?_0x593582:_0x53bae1===null?_0x53bae1=Object['getOwnPropertyDescriptor'](_0x593582,_0xb44c62):_0x53bae1,_0x63cd9d;if(typeof Reflect==_0x2dba31(0x1bc)&&typeof Reflect[_0x2dba31(0x25d)]=='function')_0x2c1c57=Reflect['decorate'](_0x89566c,_0x593582,_0xb44c62,_0x53bae1);else{for(var _0x5339d8=_0x89566c[_0x2dba31(0x1f0)]-0x1;_0x5339d8>=0x0;_0x5339d8--)(_0x63cd9d=_0x89566c[_0x5339d8])&&(_0x2c1c57=(_0x5ac1c4<0x3?_0x63cd9d(_0x2c1c57):_0x5ac1c4>0x3?_0x63cd9d(_0x593582,_0xb44c62,_0x2c1c57):_0x63cd9d(_0x593582,_0xb44c62))||_0x2c1c57);}return _0x5ac1c4>0x3&&_0x2c1c57&&Object[_0x2dba31(0x225)](_0x593582,_0xb44c62,_0x2c1c57),_0x2c1c57;}let p=class extends t['Disposable']{constructor(_0x7a10cc){const _0x126e63=_0x20ae4b;super(),this['_resourcesManagerService']=_0x7a10cc,l(this,_0x126e63(0x1f2),new Map()),this[_0x126e63(0x1b5)]();}[_0x20ae4b(0x241)](_0x501d5b,_0x276c98){const _0x4fd39d=_0x20ae4b;let _0x283175=this[_0x4fd39d(0x1f2)]['get'](_0x501d5b);_0x283175||(_0x283175=new Map(),this[_0x4fd39d(0x1f2)][_0x4fd39d(0x22b)](_0x501d5b,_0x283175));let _0x57bf17=_0x283175[_0x4fd39d(0x1ab)](_0x276c98);return _0x57bf17||(_0x57bf17=new u(),_0x283175[_0x4fd39d(0x22b)](_0x276c98,_0x57bf17)),_0x57bf17;}['insertShape'](_0x27e579,_0x5f03a7,_0x3f8eb4,_0xc0002b,_0x4c454e){const _0x57073a=_0x20ae4b;this[_0x57073a(0x241)](_0x27e579,_0x5f03a7)[_0x57073a(0x1c8)](_0x3f8eb4,_0xc0002b,_0x4c454e);}[_0x20ae4b(0x257)](_0x75a9d9,_0x507071,_0x2eb642){const _0x26c4e8=_0x20ae4b;this[_0x26c4e8(0x241)](_0x75a9d9,_0x507071)['removeShape'](_0x2eb642);}[_0x20ae4b(0x24b)](_0x29d827,_0x43be6d,_0x194671){const _0x4f7006=_0x20ae4b;return this[_0x4f7006(0x241)](_0x29d827,_0x43be6d)[_0x4f7006(0x1ac)](_0x194671);}[_0x20ae4b(0x1ac)](_0x4ce134,_0x436130,_0x417f62){const _0x528ac3=_0x20ae4b;return this['_ensureShapeModelManager'](_0x4ce134,_0x436130)[_0x528ac3(0x1ac)](_0x417f62);}[_0x20ae4b(0x1d7)](_0x1e3fae,_0x3d1cb3,_0x30a039){const _0x404feb=_0x20ae4b;return this[_0x404feb(0x241)](_0x1e3fae,_0x3d1cb3)[_0x404feb(0x1d7)](_0x30a039);}[_0x20ae4b(0x1b8)](_0xbbe3d2,_0x31fe29,_0x164c9f){const _0x4ea154=_0x20ae4b;return this[_0x4ea154(0x241)](_0xbbe3d2,_0x31fe29)[_0x4ea154(0x1ac)](_0x164c9f);}[_0x20ae4b(0x22e)](_0x4536aa,_0x476f1b,_0x4e7502){const _0x344f0f=_0x20ae4b;let _0x238902=this[_0x344f0f(0x241)](_0x4536aa,_0x476f1b);if(!_0x238902[_0x344f0f(0x1ac)](_0x4e7502))return;let _0x547532=_0x238902[_0x344f0f(0x232)][_0x344f0f(0x1ab)](_0x4e7502);if(_0x547532)return _0x547532['getShapeData']();}[_0x20ae4b(0x203)](_0x3a44e6,_0x590eda,_0x49625c){const _0x22f17d=_0x20ae4b;return this[_0x22f17d(0x241)](_0x3a44e6,_0x590eda)[_0x22f17d(0x232)][_0x22f17d(0x1ab)](_0x49625c);}[_0x20ae4b(0x261)](_0x30bf3f,_0x1a1c01,_0x51bf83){const _0x285914=_0x20ae4b;return this[_0x285914(0x241)](_0x30bf3f,_0x1a1c01)['getBasicShapeRelation'](_0x51bf83);}['getLineShapeRelation'](_0x38fc5e,_0x2a3b6b,_0x2ef02a){const _0x508583=_0x20ae4b;let _0x241ed4=this[_0x508583(0x241)](_0x38fc5e,_0x2a3b6b)[_0x508583(0x232)]['get'](_0x2ef02a);if(_0x241ed4)return _0x241ed4[_0x508583(0x1ed)]();}['setShapeType'](){}[_0x20ae4b(0x1d8)](_0x2ddcd8){const _0x2b825f=_0x20ae4b;let _0x2bbfb6={},_0x2af237=this['_shapeModelManagerMap']['get'](_0x2ddcd8);return _0x2af237&&_0x2af237['forEach']((_0x23fa9f,_0x5e5d0b)=>{const _0x31aeea=_0x1097;let _0x115238=_0x23fa9f[_0x31aeea(0x1e6)]();_0x115238[_0x31aeea(0x1f0)]>0x0&&(_0x2bbfb6[_0x5e5d0b]=_0x115238);}),JSON[_0x2b825f(0x265)](_0x2bbfb6);}[_0x20ae4b(0x249)](_0x4ec195,_0x12df4f){const _0x1a42d2=_0x20ae4b;Object[_0x1a42d2(0x21b)](_0x12df4f)[_0x1a42d2(0x240)](_0x362e75=>{const _0x13dfef=_0x1a42d2;this[_0x13dfef(0x241)](_0x4ec195,_0x362e75)[_0x13dfef(0x201)](_0x12df4f[_0x362e75]);});}[_0x20ae4b(0x1e6)](){const _0x4051e3=_0x20ae4b;let _0x3c5ee7={};return this['_shapeModelManagerMap'][_0x4051e3(0x240)]((_0x405c90,_0x515335)=>{const _0x55cf92=_0x4051e3;_0x3c5ee7[_0x515335]={},_0x405c90[_0x55cf92(0x240)]((_0x161ca5,_0x4233a9)=>{const _0x242310=_0x55cf92;_0x3c5ee7[_0x515335][_0x4233a9]=_0x161ca5[_0x242310(0x1e6)]();});}),_0x3c5ee7;}[_0x20ae4b(0x201)](_0x3fb111){const _0x522354=_0x20ae4b;Object[_0x522354(0x21b)](_0x3fb111)['forEach'](_0x11c89b=>{const _0x5be3df=_0x522354;let _0x3989b5=_0x3fb111[_0x11c89b];Object[_0x5be3df(0x21b)](_0x3989b5)['forEach'](_0xdc23df=>{const _0x262f43=_0x5be3df;this[_0x262f43(0x241)](_0x11c89b,_0xdc23df)[_0x262f43(0x201)](_0x3989b5[_0xdc23df]);});});}[_0x20ae4b(0x1b5)](){const _0x188935=_0x20ae4b;this[_0x188935(0x21e)][_0x188935(0x1f7)]({'pluginName':_0x188935(0x1e1),'businesses':[t[_0x188935(0x24c)][_0x188935(0x1bb)]],'toJson':_0x5e0f1f=>this[_0x188935(0x1d8)](_0x5e0f1f),'parseJson':_0xbb12e1=>JSON[_0x188935(0x1b2)](_0xbb12e1),'onLoad':(_0x3ef027,_0xbf8ef5)=>{const _0x22e9dc=_0x188935;this[_0x22e9dc(0x249)](_0x3ef027,_0xbf8ef5);},'onUnLoad':_0x15d028=>{const _0x3fe973=_0x188935;let _0x26c223=this[_0x3fe973(0x1f2)][_0x3fe973(0x1ab)](_0x15d028);_0x26c223&&(_0x26c223[_0x3fe973(0x240)](_0x5eaad1=>{_0x5eaad1['dispose']();}),this[_0x3fe973(0x1f2)][_0x3fe973(0x1d9)](_0x15d028));}});}['dispose'](){const _0x44e37f=_0x20ae4b;this[_0x44e37f(0x1f2)][_0x44e37f(0x240)](_0x13ce01=>{const _0x3364f1=_0x44e37f;_0x13ce01[_0x3364f1(0x240)](_0x436b34=>{const _0x360130=_0x3364f1;_0x436b34[_0x360130(0x243)]();});});}};p=f([d(0x0,t['IResourceManagerService'])],p);const m={'id':_0x20ae4b(0x211),'type':t['CommandType']['MUTATION'],'handler':(_0x310e14,_0x26cc6e)=>{const _0xf14cac=_0x20ae4b;let {unitId:_0x1c5522,subUnitId:_0x3f1d06,shapeType:_0x2a7c82,shapeId:_0x25ec2e,shapeData:_0x1d3717}=_0x26cc6e;return _0x310e14[_0xf14cac(0x1ab)](p)['insertShape'](_0x1c5522,_0x3f1d06,_0x2a7c82,_0x25ec2e,_0x1d3717),!0x0;}},h={'id':_0x20ae4b(0x21c),'type':t[_0x20ae4b(0x1af)][_0x20ae4b(0x220)],'handler':(_0xe49998,_0x5457f9)=>{const _0x219198=_0x20ae4b;let {unitId:_0xd3a643,subUnitId:_0xa09222,shapeId:_0x350007}=_0x5457f9;return _0xe49998[_0x219198(0x1ab)](p)[_0x219198(0x257)](_0xd3a643,_0xa09222,_0x350007),!0x0;}},g={'type':t[_0x20ae4b(0x1af)]['COMMAND'],'id':_0x20ae4b(0x227),'handler':(_0x3c9a12,_0x1bc060)=>{const _0x22a240=_0x20ae4b;var _0x37321b,_0x48dd97;let _0x4517c0=(0x0,n['getSheetCommandTarget'])(_0x3c9a12[_0x22a240(0x1ab)](t[_0x22a240(0x208)]),_0x1bc060);if(!_0x4517c0)return!0x1;let _0x484477=_0x3c9a12['get'](n[_0x22a240(0x1de)]),{unitId:_0x3c902a,subUnitId:_0x12ff26}=_0x4517c0,_0x2bf81e=_0x484477[_0x22a240(0x205)](_0x3c902a,_0x12ff26);if(!_0x2bf81e)return!0x1;let _0xb152ba=_0x3c9a12[_0x22a240(0x1ab)](t[_0x22a240(0x1e3)]),_0x9c1546=_0x3c9a12['get'](t[_0x22a240(0x1b1)]),_0x253516=_0x3c9a12['get'](n[_0x22a240(0x25b)]),_0x335e7a=_0x3c9a12['get'](r[_0x22a240(0x1fb)]),{shapeType:_0x53bbd0,shapeData:_0x2a058b}=_0x1bc060,_0x3f8905=_0x1bc060[_0x22a240(0x1f9)]||(0x0,t[_0x22a240(0x25f)])(),_0x252f63={'unitId':_0x3c902a,'subUnitId':_0x12ff26,'shapeId':_0x3f8905,'shapeType':_0x53bbd0,'shapeData':_0x2a058b},_0x3fbced=_0x1bc060[_0x22a240(0x251)]||0xc8,_0x634f6a=_0x1bc060[_0x22a240(0x1c6)]||0xc8,_0xcd9e45=0x0,_0x193623=0x0,_0x1d9436={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x10895d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x1bc060[_0x22a240(0x1ba)]){let {x:_0x3eecca,y:_0x88afb5}=_0x1bc060[_0x22a240(0x1ba)];_0xcd9e45=_0x3eecca,_0x193623=_0x88afb5,_0x1d9436=_0x2bf81e[_0x22a240(0x24d)](_0x3eecca,_0x88afb5),_0x10895d=_0x2bf81e[_0x22a240(0x24d)](_0x3eecca+_0x3fbced,_0x88afb5+_0x634f6a);}else{if(_0x1bc060[_0x22a240(0x1fc)]){let {startRow:_0x3d9db4,startColumn:_0x12ddad}=_0x1bc060[_0x22a240(0x1fc)];_0x1d9436={'row':_0x3d9db4,'rowOffset':0xa,'column':_0x12ddad,'columnOffset':0xa};let _0x6aface=_0x2bf81e[_0x22a240(0x229)](_0x3d9db4,_0x12ddad);_0xcd9e45=_0x6aface[_0x22a240(0x1bf)]+0xa,_0x193623=_0x6aface[_0x22a240(0x252)]+0xa,_0x10895d=_0x2bf81e['getCellIndexAndOffsetByPosition'](_0xcd9e45+_0x3fbced,_0x193623+_0x634f6a);}}let _0x2b8f00={'from':_0x1d9436,'to':_0x10895d},_0xca560e={'unitId':_0x3c902a,'subUnitId':_0x12ff26,'drawingId':_0x3f8905,'drawingType':t[_0x22a240(0x1dd)]['DRAWING_SHAPE'],'sheetTransform':_0x2b8f00,'transform':{'left':_0xcd9e45,'top':_0x193623,'width':_0x3fbced,'height':_0x634f6a},'data':{'shapeType':_0x53bbd0,'shapeData':_0x2a058b},'axisAlignSheetTransform':_0x2b8f00,'allowTransform':!0x0};(0x0,e[_0x22a240(0x1ea)])(_0x53bbd0)&&(_0xca560e[_0x22a240(0x1a9)][_0x22a240(0x233)]=!0x1,_0xca560e[_0x22a240(0x1a9)]['rotateEnabled']=!0x1,_0xca560e[_0x22a240(0x1a9)][_0x22a240(0x1f4)]=!0x1,_0xca560e[_0x22a240(0x1a9)]['borderEnabled']=!0x1,_0xca560e[_0x22a240(0x26d)]['rotateEnabled']=!0x1,_0xca560e[_0x22a240(0x26d)][_0x22a240(0x1f4)]=!0x1,_0xca560e[_0x22a240(0x26d)][_0x22a240(0x22c)]=!0x1);let {undo:_0x9b4f,redo:_0x3edcbe,objects:_0x4e001c}=_0x335e7a[_0x22a240(0x222)]([_0xca560e]),_0x293966=_0x253516[_0x22a240(0x1aa)]({'id':r[_0x22a240(0x244)]['id'],'params':{'unitId':_0x3c902a,'drawings':[_0xca560e]}}),_0x234153=[...(_0x37321b=_0x293966[_0x22a240(0x216)])==null?[]:_0x37321b,{'id':r[_0x22a240(0x1db)]['id'],'params':{'unitId':_0x3c902a,'subUnitId':_0x12ff26,'op':_0x3edcbe,'objects':_0x4e001c,'type':r[_0x22a240(0x1d2)][_0x22a240(0x21a)]}},{'id':r[_0x22a240(0x230)]['id'],'params':[_0x3c902a]},..._0x293966[_0x22a240(0x1c5)],{'id':m['id'],'params':_0x252f63}],_0x2b8728=[{'id':h['id'],'params':{'unitId':_0x3c902a,'subUnitId':_0x12ff26,'shapeId':_0x3f8905}},...(_0x48dd97=_0x293966[_0x22a240(0x26b)])==null?[]:_0x48dd97,{'id':r[_0x22a240(0x1db)]['id'],'params':{'unitId':_0x3c902a,'subUnitId':_0x12ff26,'op':_0x9b4f,'objects':_0x4e001c,'type':r[_0x22a240(0x1d2)][_0x22a240(0x1be)]}},{'id':r[_0x22a240(0x230)]['id'],'params':[_0x3c902a]},..._0x293966[_0x22a240(0x248)]];return(0x0,t[_0x22a240(0x270)])(_0x234153,_0xb152ba)?(_0x9c1546[_0x22a240(0x1cf)]({'unitID':_0x3c902a,'undoMutations':_0x2b8728,'redoMutations':_0x234153}),!0x0):!0x1;}},_={'id':_0x20ae4b(0x26e),'type':t[_0x20ae4b(0x1af)]['MUTATION'],'handler':(_0x122c38,_0x9185ae)=>{const _0x3db394=_0x20ae4b;let {unitId:_0x649ce6,subUnitId:_0x4ef971,shapeType:_0x48a04b,shapeId:_0xfab23d,shapeData:_0x149e97}=_0x9185ae,_0x300888=_0x122c38[_0x3db394(0x1ab)](p)[_0x3db394(0x203)](_0x649ce6,_0x4ef971,_0xfab23d);return _0x300888&&(_0x48a04b!==void 0x0&&_0x300888[_0x3db394(0x1d0)](_0x48a04b),_0x149e97&&(_0x300888==null||_0x300888[_0x3db394(0x1d4)](_0x149e97,!0x0))),!0x0;}},v={'type':t[_0x20ae4b(0x1af)]['COMMAND'],'id':_0x20ae4b(0x234),'handler':(_0x222b56,_0x3d8554)=>{const _0x355a17=_0x20ae4b;var _0x335fdd,_0x4cc5ff;let _0x26adc9=(0x0,n[_0x355a17(0x213)])(_0x222b56[_0x355a17(0x1ab)](t['IUniverInstanceService']),_0x3d8554);if(!_0x26adc9)return!0x1;let _0xb8c65f=_0x222b56[_0x355a17(0x1ab)](n['SheetSkeletonService']),{unitId:_0x12e018,subUnitId:_0x2a6917}=_0x26adc9,_0x56ae0f=_0xb8c65f[_0x355a17(0x205)](_0x12e018,_0x2a6917);if(!_0x56ae0f)return!0x1;let _0x19c7eb=_0x222b56[_0x355a17(0x1ab)](p),{shapeId:_0x49dea9,shapeType:_0x5bf150,shapeData:_0x755816,position:_0x7c2608,width:_0x551887,height:_0x162cb1}=_0x3d8554,_0x145138=_0x19c7eb[_0x355a17(0x203)](_0x12e018,_0x2a6917,_0x49dea9);if(!_0x145138)return!0x1;let _0x326f75=_0x222b56['get'](t[_0x355a17(0x1e3)]),_0x114ab5=_0x222b56[_0x355a17(0x1ab)](t[_0x355a17(0x1b1)]),_0x31864c=_0x222b56[_0x355a17(0x1ab)](n[_0x355a17(0x25b)]),_0xe12df8=_0x222b56['get'](r[_0x355a17(0x1fb)]),_0x56532a={'unitId':_0x12e018,'subUnitId':_0x2a6917,'shapeId':_0x49dea9,'shapeType':_0x5bf150,'shapeData':_0x755816},_0x2df37f=_0x145138[_0x355a17(0x1ac)](),_0x452503=_0x145138[_0x355a17(0x237)](),{x:_0x3d629b,y:_0x4a89ce}=_0x7c2608,_0x55df70={'from':_0x56ae0f['getCellIndexAndOffsetByPosition'](_0x3d629b,_0x4a89ce),'to':_0x56ae0f['getCellIndexAndOffsetByPosition'](_0x3d629b+_0x551887,_0x4a89ce+_0x162cb1)},_0x1b3a06={'unitId':_0x12e018,'subUnitId':_0x2a6917,'drawingId':_0x49dea9,'drawingType':t['DrawingTypeEnum'][_0x355a17(0x259)],'sheetTransform':_0x55df70,'transform':{'left':_0x3d629b,'top':_0x4a89ce,'width':_0x551887,'height':_0x162cb1},'data':{'shapeType':_0x5bf150,'shapeData':_0x755816},'axisAlignSheetTransform':_0x55df70,'allowTransform':!0x0};(0x0,e['isConnectorShape'])(_0x5bf150)&&(_0x1b3a06[_0x355a17(0x1a9)][_0x355a17(0x233)]=!0x1,_0x1b3a06[_0x355a17(0x1a9)][_0x355a17(0x1a6)]=!0x1,_0x1b3a06[_0x355a17(0x1a9)][_0x355a17(0x1f4)]=!0x1,_0x1b3a06[_0x355a17(0x1a9)]['borderEnabled']=!0x1,_0x1b3a06[_0x355a17(0x26d)][_0x355a17(0x1a6)]=!0x1,_0x1b3a06['transform'][_0x355a17(0x1f4)]=!0x1,_0x1b3a06[_0x355a17(0x26d)][_0x355a17(0x22c)]=!0x1);let {undo:_0x5aa9c7,redo:_0x2b823c,objects:_0x531895}=_0xe12df8[_0x355a17(0x1c0)]([_0x1b3a06]),_0x39cf19=_0x31864c['onCommandExecute']({'id':r[_0x355a17(0x1b4)]['id'],'params':{'unitId':_0x12e018,'drawings':[_0x1b3a06]}}),_0x3cdd69=[...(_0x335fdd=_0x39cf19[_0x355a17(0x216)])==null?[]:_0x335fdd,{'id':r[_0x355a17(0x1db)]['id'],'params':{'unitId':_0x12e018,'subUnitId':_0x2a6917,'op':_0x2b823c,'objects':_0x531895,'type':r[_0x355a17(0x1d2)][_0x355a17(0x1ae)]}},{'id':r[_0x355a17(0x230)]['id'],'params':[_0x12e018]},..._0x39cf19[_0x355a17(0x1c5)],{'id':_['id'],'params':_0x56532a}],_0x577006=[...(_0x4cc5ff=_0x39cf19[_0x355a17(0x26b)])==null?[]:_0x4cc5ff,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x12e018,'subUnitId':_0x2a6917,'op':_0x5aa9c7,'objects':_0x531895,'type':r[_0x355a17(0x1d2)]['UPDATE']}},{'id':r[_0x355a17(0x230)]['id'],'params':[_0x12e018]},..._0x39cf19[_0x355a17(0x248)],{'id':_['id'],'params':{'unitId':_0x12e018,'subUnitId':_0x2a6917,'shapeType':_0x2df37f,'shapeId':_0x49dea9,'shapeData':_0x452503}}];return(0x0,t['sequenceExecute'])(_0x3cdd69,_0x326f75)?(_0x114ab5[_0x355a17(0x1cf)]({'unitID':_0x12e018,'undoMutations':_0x577006,'redoMutations':_0x3cdd69}),!0x0):!0x1;}},y={'type':t[_0x20ae4b(0x1af)][_0x20ae4b(0x1c7)],'id':_0x20ae4b(0x1cd),'handler':(_0x19255e,_0x38aec2)=>{const _0x1cb22e=_0x20ae4b;var _0x402f8d,_0x2ebcd5;let _0x5223e4=(0x0,n['getSheetCommandTarget'])(_0x19255e[_0x1cb22e(0x1ab)](t[_0x1cb22e(0x208)]),_0x38aec2);if(!_0x5223e4)return!0x1;let _0x3f3435=_0x19255e[_0x1cb22e(0x1ab)](n[_0x1cb22e(0x1de)]),{unitId:_0x55af72,subUnitId:_0x2686b3}=_0x5223e4,_0xed4385=_0x3f3435[_0x1cb22e(0x26c)](_0x55af72,_0x2686b3);if(!_0xed4385)return!0x1;let _0x1ee98b=_0x19255e[_0x1cb22e(0x1ab)](r['ISheetDrawingService']),{shapeId:_0x457eb7,flipH:_0x27b8f9,flipV:_0x37cca3}=_0x38aec2,_0x2b691d=_0x1ee98b['getDrawingByParam']({'unitId':_0x55af72,'subUnitId':_0x2686b3,'drawingId':_0x457eb7});if(!_0x2b691d)return!0x1;let _0x183706=_0x19255e['get'](p)[_0x1cb22e(0x203)](_0x55af72,_0x2686b3,_0x457eb7);if(!_0x183706)return!0x1;let _0x1ee16b=_0x19255e['get'](t[_0x1cb22e(0x1e3)]),_0x12266e=_0x19255e[_0x1cb22e(0x1ab)](t[_0x1cb22e(0x1b1)]),_0x210ba1=_0x19255e[_0x1cb22e(0x1ab)](n['SheetInterceptorService']),_0x1033b3={..._0x2b691d[_0x1cb22e(0x26d)]};_0x27b8f9!==void 0x0&&(_0x1033b3[_0x1cb22e(0x1c2)]=!_0x1033b3[_0x1cb22e(0x1c2)]),_0x37cca3!==void 0x0&&(_0x1033b3[_0x1cb22e(0x25e)]=!_0x1033b3['flipY']);let _0x5a88d4=(0x0,r[_0x1cb22e(0x262)])(_0x1033b3,_0xed4385),_0x13a2c7=(0x0,r[_0x1cb22e(0x246)])(_0x1033b3,_0xed4385),_0x3eaf04=_0x183706['getShapeType'](),_0x5b1bf3=_0x183706[_0x1cb22e(0x237)](),_0x372fda={'unitId':_0x55af72,'subUnitId':_0x2686b3,'drawingId':_0x457eb7,'drawingType':t[_0x1cb22e(0x1dd)][_0x1cb22e(0x259)],'sheetTransform':_0x5a88d4,'transform':_0x1033b3,'data':{'shapeType':_0x3eaf04,'shapeData':_0x5b1bf3},'axisAlignSheetTransform':_0x13a2c7,'allowTransform':!0x0},{undo:_0x3dd87f,redo:_0x402bf5,objects:_0x323e50}=_0x1ee98b[_0x1cb22e(0x1c0)]([_0x372fda]),_0x109757=_0x210ba1['onCommandExecute']({'id':r[_0x1cb22e(0x1b4)]['id'],'params':{'unitId':_0x55af72,'drawings':[_0x372fda]}}),_0xc3e86c=[...(_0x402f8d=_0x109757['preRedos'])==null?[]:_0x402f8d,{'id':r[_0x1cb22e(0x1db)]['id'],'params':{'unitId':_0x55af72,'subUnitId':_0x2686b3,'op':_0x402bf5,'objects':_0x323e50,'type':r['DrawingApplyType']['UPDATE']}},{'id':r[_0x1cb22e(0x230)]['id'],'params':[_0x55af72]},..._0x109757['redos']],_0x28345b=[...(_0x2ebcd5=_0x109757[_0x1cb22e(0x26b)])==null?[]:_0x2ebcd5,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x55af72,'subUnitId':_0x2686b3,'op':_0x3dd87f,'objects':_0x323e50,'type':r[_0x1cb22e(0x1d2)][_0x1cb22e(0x1ae)]}},{'id':r[_0x1cb22e(0x230)]['id'],'params':[_0x55af72]},..._0x109757['undos']];if((0x0,e[_0x1cb22e(0x1ea)])(_0x3eaf04)){let _0x445f2e=_0x183706['getShapeRelation']();if(_0x445f2e){let _0x22e3aa={..._0x445f2e};_0x22e3aa[_0x1cb22e(0x269)]=void 0x0,_0x22e3aa['to']=void 0x0,_0xc3e86c[_0x1cb22e(0x224)]({'id':_['id'],'params':{'unitId':_0x55af72,'subUnitId':_0x2686b3,'shapeId':_0x457eb7,'shapeType':_0x3eaf04,'shapeData':{'relation':_0x22e3aa}}}),_0x28345b[_0x1cb22e(0x224)]({'id':_['id'],'params':{'unitId':_0x55af72,'subUnitId':_0x2686b3,'shapeId':_0x457eb7,'shapeType':_0x3eaf04,'shapeData':{'relation':_0x445f2e}}});}}return(0x0,t['sequenceExecute'])(_0xc3e86c,_0x1ee16b)?(_0x12266e['pushUndoRedo']({'unitID':_0x55af72,'undoMutations':_0x28345b,'redoMutations':_0xc3e86c}),!0x0):!0x1;}},b={'type':t[_0x20ae4b(0x1af)][_0x20ae4b(0x1c7)],'id':_0x20ae4b(0x1b7),'handler':(_0xd2eb34,_0xc713e5)=>{const _0x36b141=_0x20ae4b;var _0x1faecc,_0x1c50d5;let _0x9fcf03=(0x0,n[_0x36b141(0x213)])(_0xd2eb34[_0x36b141(0x1ab)](t[_0x36b141(0x208)]),_0xc713e5);if(!_0x9fcf03)return!0x1;let _0x4d8b4d=_0xd2eb34['get'](n[_0x36b141(0x1de)]),{unitId:_0x3bb7d4,subUnitId:_0x177e92}=_0x9fcf03,_0x3c4687=_0x4d8b4d[_0x36b141(0x26c)](_0x3bb7d4,_0x177e92);if(!_0x3c4687)return!0x1;let _0x21d2ed=_0xd2eb34['get'](r[_0x36b141(0x1fb)]),{shapeId:_0x2c9fa0,rotate:_0xf6d506}=_0xc713e5,_0x2a4c37=_0x21d2ed[_0x36b141(0x23e)]({'unitId':_0x3bb7d4,'subUnitId':_0x177e92,'drawingId':_0x2c9fa0});if(!_0x2a4c37)return!0x1;let _0x3af8d4=_0xd2eb34[_0x36b141(0x1ab)](p)[_0x36b141(0x203)](_0x3bb7d4,_0x177e92,_0x2c9fa0);if(!_0x3af8d4)return!0x1;let _0x43a0d3=_0xd2eb34[_0x36b141(0x1ab)](t['ICommandService']),_0x41c7a7=_0xd2eb34[_0x36b141(0x1ab)](t[_0x36b141(0x1b1)]),_0x92c0da=_0xd2eb34['get'](n[_0x36b141(0x25b)]),_0xcf878a={..._0x2a4c37['transform']};_0xf6d506!==void 0x0&&(_0xcf878a['angle']=(_0xcf878a[_0x36b141(0x202)]||0x0)+_0xf6d506);let _0x206804=(0x0,r[_0x36b141(0x262)])(_0xcf878a,_0x3c4687),_0x3fcd9f=(0x0,r[_0x36b141(0x246)])(_0xcf878a,_0x3c4687),_0x10d11f=_0x3af8d4[_0x36b141(0x1ac)](),_0x29eb0a=_0x3af8d4[_0x36b141(0x237)](),_0x17a341={'unitId':_0x3bb7d4,'subUnitId':_0x177e92,'drawingId':_0x2c9fa0,'drawingType':t[_0x36b141(0x1dd)][_0x36b141(0x259)],'sheetTransform':_0x206804,'transform':_0xcf878a,'data':{'shapeType':_0x10d11f,'shapeData':_0x29eb0a},'axisAlignSheetTransform':_0x3fcd9f,'allowTransform':!0x0},{undo:_0x2eec2a,redo:_0x18b0bb,objects:_0x555178}=_0x21d2ed[_0x36b141(0x1c0)]([_0x17a341]),_0x35e14a=_0x92c0da[_0x36b141(0x1aa)]({'id':r[_0x36b141(0x1b4)]['id'],'params':{'unitId':_0x3bb7d4,'drawings':[_0x17a341]}}),_0x1df58a=[...(_0x1faecc=_0x35e14a[_0x36b141(0x216)])==null?[]:_0x1faecc,{'id':r[_0x36b141(0x1db)]['id'],'params':{'unitId':_0x3bb7d4,'subUnitId':_0x177e92,'op':_0x18b0bb,'objects':_0x555178,'type':r[_0x36b141(0x1d2)][_0x36b141(0x1ae)]}},{'id':r[_0x36b141(0x230)]['id'],'params':[_0x3bb7d4]},..._0x35e14a[_0x36b141(0x1c5)]],_0x168c9b=[...(_0x1c50d5=_0x35e14a[_0x36b141(0x26b)])==null?[]:_0x1c50d5,{'id':r[_0x36b141(0x1db)]['id'],'params':{'unitId':_0x3bb7d4,'subUnitId':_0x177e92,'op':_0x2eec2a,'objects':_0x555178,'type':r[_0x36b141(0x1d2)][_0x36b141(0x1ae)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3bb7d4]},..._0x35e14a[_0x36b141(0x248)]];return(0x0,t[_0x36b141(0x270)])(_0x1df58a,_0x43a0d3)?(_0x41c7a7[_0x36b141(0x1cf)]({'unitID':_0x3bb7d4,'undoMutations':_0x168c9b,'redoMutations':_0x1df58a}),!0x0):!0x1;}},x={'type':t[_0x20ae4b(0x1af)][_0x20ae4b(0x1c7)],'id':_0x20ae4b(0x1dc),'handler':(_0x14fdcb,_0x26bf46)=>{const _0x3453d9=_0x20ae4b;var _0x5a247f,_0x5a76e2,_0x3c6add,_0xc2791c;let _0x5dfef4=(0x0,n[_0x3453d9(0x213)])(_0x14fdcb[_0x3453d9(0x1ab)](t['IUniverInstanceService']),_0x26bf46);if(!_0x5dfef4)return!0x1;let _0x2c4897=_0x14fdcb[_0x3453d9(0x1ab)](n[_0x3453d9(0x1de)]),{unitId:_0x52c01f,subUnitId:_0x10f067}=_0x5dfef4,_0xfc9ac3=_0x2c4897[_0x3453d9(0x26c)](_0x52c01f,_0x10f067);if(!_0xfc9ac3)return!0x1;let _0x315ea4=_0x14fdcb[_0x3453d9(0x1ab)](r[_0x3453d9(0x1fb)]),{connectorShapeId:_0x26d95e,width:_0x34d871,height:_0x169ef5,left:_0x3604b0,top:_0x1bae0e,flipX:_0x1b48b7,flipY:_0x6a9cd7,rotation:_0x1ecca4,oldAdjustValues:_0x5902e5,newAdjustValues:_0x4d20e9,oldLineType:_0x48847a,newLineType:_0x1fc909,oldRelation:_0x1ea5f6,newRelation:_0x512d4b}=_0x26bf46,_0x247780=_0x315ea4[_0x3453d9(0x23e)]({'unitId':_0x52c01f,'subUnitId':_0x10f067,'drawingId':_0x26d95e});if(!_0x247780)return!0x1;let _0x460b35=_0x14fdcb[_0x3453d9(0x1ab)](p)[_0x3453d9(0x203)](_0x52c01f,_0x10f067,_0x26d95e);if(!_0x460b35)return!0x1;let _0x338c8c=_0x14fdcb[_0x3453d9(0x1ab)](t[_0x3453d9(0x1e3)]),_0x49fd94=_0x14fdcb[_0x3453d9(0x1ab)](t['IUndoRedoService']),_0x30ca22=_0x14fdcb[_0x3453d9(0x1ab)](n[_0x3453d9(0x25b)]),_0x59b4f1={..._0x247780[_0x3453d9(0x26d)],'width':_0x34d871,'height':_0x169ef5,'left':_0x3604b0,'top':_0x1bae0e,'flipX':_0x1b48b7,'flipY':_0x6a9cd7,'angle':(_0x5a247f=_0x1ecca4==null?(_0x5a76e2=_0x247780[_0x3453d9(0x26d)])==null?void 0x0:_0x5a76e2['angle']:_0x1ecca4)==null?0x0:_0x5a247f},_0x489bc0=(0x0,r[_0x3453d9(0x262)])(_0x59b4f1,_0xfc9ac3),_0x7a6657=(0x0,r['transformToAxisAlignPosition'])(_0x59b4f1,_0xfc9ac3),_0x1e7063=_0x460b35['getShapeType'](),_0x1d9c28=_0x460b35[_0x3453d9(0x237)](),_0xaf6efa={'unitId':_0x52c01f,'subUnitId':_0x10f067,'drawingId':_0x26d95e,'drawingType':t[_0x3453d9(0x1dd)]['DRAWING_SHAPE'],'sheetTransform':_0x489bc0,'transform':_0x59b4f1,'data':{'shapeType':_0x1fc909||_0x48847a||_0x1e7063,'shapeData':{..._0x1d9c28,'adjustValues':_0x4d20e9||_0x5902e5||(_0x1d9c28==null?void 0x0:_0x1d9c28[_0x3453d9(0x1e2)]),'relation':_0x512d4b||_0x1ea5f6||(_0x1d9c28==null?void 0x0:_0x1d9c28[_0x3453d9(0x24e)])}},'axisAlignSheetTransform':_0x7a6657,'allowTransform':!0x0},{undo:_0x3503f4,redo:_0x163cf4,objects:_0x512835}=_0x315ea4['getBatchUpdateOp']([_0xaf6efa]),_0x4ecb81=_0x30ca22[_0x3453d9(0x1aa)]({'id':r[_0x3453d9(0x1b4)]['id'],'params':{'unitId':_0x52c01f,'drawings':[_0xaf6efa]}}),_0x2d4a90=[...(_0x3c6add=_0x4ecb81['preRedos'])==null?[]:_0x3c6add,{'id':r[_0x3453d9(0x1db)]['id'],'params':{'unitId':_0x52c01f,'subUnitId':_0x10f067,'op':_0x163cf4,'objects':_0x512835,'type':r[_0x3453d9(0x1d2)]['UPDATE']}},{'id':r[_0x3453d9(0x230)]['id'],'params':[_0x52c01f]},..._0x4ecb81[_0x3453d9(0x1c5)],{'id':_['id'],'params':{'unitId':_0x52c01f,'subUnitId':_0x10f067,'shapeId':_0x26d95e,'shapeType':_0x1fc909,'shapeData':{'adjustValues':_0x4d20e9,'relation':_0x512d4b}}}],_0x5f1ca0=[...(_0xc2791c=_0x4ecb81['preUndos'])==null?[]:_0xc2791c,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x52c01f,'subUnitId':_0x10f067,'op':_0x3503f4,'objects':_0x512835,'type':r[_0x3453d9(0x1d2)][_0x3453d9(0x1ae)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x52c01f]},..._0x4ecb81[_0x3453d9(0x248)],{'id':_['id'],'params':{'unitId':_0x52c01f,'subUnitId':_0x10f067,'shapeId':_0x26d95e,'shapeType':_0x1e7063,'shapeData':{..._0x1d9c28,'adjustValues':_0x5902e5||(_0x1d9c28==null?void 0x0:_0x1d9c28['adjustValues']),'relation':_0x1ea5f6||(_0x1d9c28==null?void 0x0:_0x1d9c28[_0x3453d9(0x24e)])}}}];return(0x0,t[_0x3453d9(0x270)])(_0x2d4a90,_0x338c8c)?(_0x49fd94[_0x3453d9(0x1cf)]({'unitID':_0x52c01f,'undoMutations':_0x5f1ca0,'redoMutations':_0x2d4a90}),!0x0):!0x1;}},S={'type':t['CommandType']['COMMAND'],'id':'sheet.command.update-line-shape-resize','handler':(_0x2ecf68,_0x3df067)=>{const _0x8503d1=_0x20ae4b;var _0x299627,_0x4dcb51;let _0x3a58f1=(0x0,n[_0x8503d1(0x213)])(_0x2ecf68['get'](t[_0x8503d1(0x208)]),_0x3df067);if(!_0x3a58f1)return!0x1;let _0x5334a9=_0x2ecf68['get'](n['SheetSkeletonService']),{unitId:_0x1380f3,subUnitId:_0x5a52ef}=_0x3a58f1,_0x2b6af4=_0x5334a9['getSkeleton'](_0x1380f3,_0x5a52ef);if(!_0x2b6af4)return!0x1;let _0x1912a5=_0x2ecf68[_0x8503d1(0x1ab)](r[_0x8503d1(0x1fb)]),{shapeId:_0x284a1f,width:_0x2b495c,height:_0x396d8b,left:_0x4561ee,top:_0x1bba05,flipX:_0x4b4bdc,flipY:_0x477ed8,angle:_0x19c83c,oldAdjustValues:_0x1e6ed3,newAdjustValues:_0x512400,oldLineType:_0x3a3ebb,newLineType:_0x5ef51b}=_0x3df067,_0x4b9e37=_0x1912a5[_0x8503d1(0x23e)]({'unitId':_0x1380f3,'subUnitId':_0x5a52ef,'drawingId':_0x284a1f});if(!_0x4b9e37)return!0x1;let _0x497221=_0x2ecf68[_0x8503d1(0x1ab)](p)[_0x8503d1(0x203)](_0x1380f3,_0x5a52ef,_0x284a1f);if(!_0x497221)return!0x1;let _0x57c11e=_0x2ecf68['get'](t['ICommandService']),_0x5c727d=_0x2ecf68[_0x8503d1(0x1ab)](t[_0x8503d1(0x1b1)]),_0x29a93b=_0x2ecf68[_0x8503d1(0x1ab)](n[_0x8503d1(0x25b)]),_0x806bb7={..._0x4b9e37[_0x8503d1(0x26d)],'width':_0x2b495c,'height':_0x396d8b,'left':_0x4561ee,'top':_0x1bba05,'flipX':_0x4b4bdc,'flipY':_0x477ed8,'angle':_0x19c83c},_0xe7fb63=(0x0,r['transformToDrawingPosition'])(_0x806bb7,_0x2b6af4),_0x3ea960=(0x0,r[_0x8503d1(0x246)])(_0x806bb7,_0x2b6af4),_0x492331=_0x497221[_0x8503d1(0x1ac)](),_0xad82ea=_0x497221[_0x8503d1(0x237)](),_0x55820a={'unitId':_0x1380f3,'subUnitId':_0x5a52ef,'drawingId':_0x284a1f,'drawingType':t[_0x8503d1(0x1dd)][_0x8503d1(0x259)],'sheetTransform':_0xe7fb63,'transform':_0x806bb7,'data':{'shapeType':_0x5ef51b||_0x3a3ebb||_0x492331,'shapeData':{..._0xad82ea,'adjustValues':_0x512400||_0x1e6ed3||(_0xad82ea==null?void 0x0:_0xad82ea[_0x8503d1(0x1e2)])}},'axisAlignSheetTransform':_0x3ea960,'allowTransform':!0x0},{undo:_0x2fe6a1,redo:_0x1510ab,objects:_0x2ed316}=_0x1912a5[_0x8503d1(0x1c0)]([_0x55820a]),_0x3cb70a=_0x29a93b[_0x8503d1(0x1aa)]({'id':r[_0x8503d1(0x1b4)]['id'],'params':{'unitId':_0x1380f3,'drawings':[_0x55820a]}}),_0xc576cd=[...(_0x299627=_0x3cb70a['preRedos'])==null?[]:_0x299627,{'id':r[_0x8503d1(0x1db)]['id'],'params':{'unitId':_0x1380f3,'subUnitId':_0x5a52ef,'op':_0x1510ab,'objects':_0x2ed316,'type':r[_0x8503d1(0x1d2)][_0x8503d1(0x1ae)]}},{'id':r[_0x8503d1(0x230)]['id'],'params':[_0x1380f3]},..._0x3cb70a['redos'],{'id':_['id'],'params':{'unitId':_0x1380f3,'subUnitId':_0x5a52ef,'shapeId':_0x284a1f,'shapeType':_0x5ef51b,'shapeData':{'adjustValues':_0x512400}}}],_0x1fc0ef=[...(_0x4dcb51=_0x3cb70a[_0x8503d1(0x26b)])==null?[]:_0x4dcb51,{'id':r[_0x8503d1(0x1db)]['id'],'params':{'unitId':_0x1380f3,'subUnitId':_0x5a52ef,'op':_0x2fe6a1,'objects':_0x2ed316,'type':r[_0x8503d1(0x1d2)][_0x8503d1(0x1ae)]}},{'id':r[_0x8503d1(0x230)]['id'],'params':[_0x1380f3]},..._0x3cb70a['undos'],{'id':_['id'],'params':{'unitId':_0x1380f3,'subUnitId':_0x5a52ef,'shapeId':_0x284a1f,'shapeType':_0x492331,'shapeData':{..._0xad82ea,'adjustValues':_0x1e6ed3||(_0xad82ea==null?void 0x0:_0xad82ea[_0x8503d1(0x1e2)])}}}];return(0x0,t[_0x8503d1(0x270)])(_0xc576cd,_0x57c11e)?(_0x5c727d[_0x8503d1(0x1cf)]({'unitID':_0x1380f3,'undoMutations':_0x1fc0ef,'redoMutations':_0xc576cd}),!0x0):!0x1;}},C={'id':_0x20ae4b(0x1fa),'type':t[_0x20ae4b(0x1af)][_0x20ae4b(0x220)],'handler':(_0x317c09,_0x26b188)=>{const _0x201d78=_0x20ae4b;let {unitId:_0x3aeceb,subUnitId:_0x45a089,shapeType:_0x5ee3d3,shapeId:_0x3c709d,shapeData:_0x141912}=_0x26b188,_0x28ee34=_0x317c09[_0x201d78(0x1ab)](p)[_0x201d78(0x203)](_0x3aeceb,_0x45a089,_0x3c709d);return _0x28ee34&&(_0x28ee34[_0x201d78(0x1d0)](_0x5ee3d3),_0x141912&&(_0x28ee34==null||_0x28ee34[_0x201d78(0x1d4)](_0x141912))),!0x0;}},w={'id':_0x20ae4b(0x1e4),'type':t[_0x20ae4b(0x1af)][_0x20ae4b(0x1c7)],'handler':(_0x34b82d,_0x131797)=>{const _0x42de8d=_0x20ae4b;if(!_0x131797)return!0x1;let _0x637b99=_0x34b82d[_0x42de8d(0x1ab)](t[_0x42de8d(0x1e3)]),_0x5d7328=_0x34b82d[_0x42de8d(0x1ab)](p),_0x11fb0d=_0x34b82d[_0x42de8d(0x1ab)](t[_0x42de8d(0x1b1)]),_0x20de11=[],_0x10b6c2=[],{unitId:_0x5e5109,subUnitId:_0x520606,shapeId:_0x17fa55,shapeType:_0x4fb3e3,shapeData:_0x873ed0}=_0x131797,_0x2c725a=_0x5d7328[_0x42de8d(0x203)](_0x5e5109,_0x520606,_0x17fa55);if(_0x2c725a){let _0x2cc2d5=_0x2c725a[_0x42de8d(0x1ac)](),_0x13b29d=Object['assign']({},_0x2c725a[_0x42de8d(0x237)]()),_0x2c66a8={'unitId':_0x5e5109,'subUnitId':_0x520606,'shapeId':_0x17fa55,'shapeType':_0x4fb3e3,'shapeData':_0x873ed0},_0x53d5e3={'unitId':_0x5e5109,'subUnitId':_0x520606,'shapeId':_0x17fa55,'shapeType':_0x2cc2d5,'shapeData':_0x13b29d};return _0x20de11[_0x42de8d(0x224)]({'id':C['id'],'params':_0x2c66a8}),_0x10b6c2[_0x42de8d(0x224)]({'id':C['id'],'params':_0x53d5e3}),_0x20de11[_0x42de8d(0x20e)](_0x460bdf=>_0x637b99['syncExecuteCommand'](_0x460bdf['id'],_0x460bdf[_0x42de8d(0x1b3)]))&&_0x11fb0d[_0x42de8d(0x1cf)]({'unitID':_0x5e5109,'redoMutations':[..._0x20de11],'undoMutations':[..._0x10b6c2]}),!0x0;}return!0x1;}};var T=_0x20ae4b(0x223),E=_0x20ae4b(0x264);function _0x1097(_0x5913a0,_0x4bec0c){_0x5913a0=_0x5913a0-0x1a6;const _0x2508c0=_0x2508();let _0x1097bf=_0x2508c0[_0x5913a0];return _0x1097bf;}const D=_0x20ae4b(0x200);Symbol(D);function _0x2508(){const _0x1a7bac=['getShapeDataById','_configService','ClearSheetDrawingTransformerOperation','worldRect','_shapes','fill','sheet.command.set-shape-drawing-data','merge','type','getShapeData','removeLinePoints','UniverSheetsShapePlugin','routeConnectorLineShape','filter','7uADRxj','getStartConnectInfo','getDrawingByParam','top','forEach','_ensureShapeModelManager','updateContext','dispose','InsertSheetDrawingCommand','symbol','transformToAxisAlignPosition','clear','undos','_deserializeShapeForUnit','3URonWW','getBasicShapeType','UniverInstanceType','getCellIndexAndOffsetByPosition','relation','1222488VKYIFh','toStringTag','width','startY','UniverLicensePlugin','isFrom','20qUODlP','pluginName','removeShape','default','DRAWING_SHAPE','index','SheetInterceptorService','call','decorate','flipY','generateRandomId','_addLineFollowShapeUpdates','getBasicShapeRelation','transformToDrawingPosition','add','0.20.0-insiders.20260411-27a8c24','stringify','ToggleSheetsShapeFlipCommand','find','getAdjustValueByName','from','rotation','preUndos','getSkeleton','transform','sheet.mutation.update-shape-data','Module','sequenceExecute','getEndConnectInfo','rotateEnabled','UpdateSheetsShapeTypeMutation','_addLineRerouteUpdates','data','onCommandExecute','get','getShapeType','DEFAULT_SHAPE_WIDTH','UPDATE','CommandType','_initCommands','IUndoRedoService','parse','params','SetSheetDrawingCommand','_initSnapshot','Plugin','sheet.command.set-shape-rotate','getShapeTypeById','entries','position','UNIVER_SHEET','object','UpdateConnectorRelationCommand','REMOVE','startX','getBatchUpdateOp','_config','flipX','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getDrawingData','redos','height','COMMAND','addShape','disposeWithMe','setConfig','getLineShapeRelation','version','sheet.command.toggle-shape-flip','RemoveSheetsShapeMutation','pushUndoRedo','setShapeType','994972haLUPA','DrawingApplyType','_linesIds','setShapeData','DEFAULT_SHAPE_HEIGHT','Disposable','hasShape','_serializeShapeForUnit','delete','toPrimitive','SetDrawingApplyMutation','sheet.command.update-connector-relation','DrawingTypeEnum','SheetSkeletonService','_getConnectPointInfo','DependentOn','SHEET_SHAPE_PLUGIN','adjustValues','ICommandService','sheet.command.update-shape-type','Inject','toJSON','UpdateSheetsShapeTypeCommand','577938KsPTPy','1254861cysHFn','isConnectorShape','drawingType','5evWZpQ','getShapeRelation','lineShapeId','UpdateLineShapeResizeCommand','length','prototype','_shapeModelManagerMap','_sheetsShapeService','resizeEnabled','cos','registerCommand','registerPluginResource','shapeData','shapeId','sheet.mutation.update-shape-type','ISheetDrawingService','range','_commandService','function','_drawingManagerService','sheets-shape.config','fromJSON','angle','getShapeModel','_sheetInterceptorService','ensureSkeleton','Injector','isLineShape','IUniverInstanceService','sin','iterator','_groupIds','left','string','every','83402dntRaU','getConnectionSiteList','sheet.mutation.insert-shape','_initCommandInterceptor','getSheetCommandTarget','UpdateSheetsShapeDataMutation','InsertShapeCommand','preRedos','SetSheetsShapeRotateCommand','_disposed','ShapeModel','INSERT','keys','sheet.mutation.remove-shape','_sheetSkeletonService','_resourcesManagerService','395014PtdxTW','MUTATION','cxnIndex','getBatchAddOp','@univerjs-pro/sheets-shape','push','defineProperty','InsertSheetsShapeMutation','sheet.command.insert-shape','3850088DJpAnn','getCellWithCoordByIndex','constructor','set','borderEnabled','has'];_0x2508=function(){return _0x1a7bac;};return _0x2508();}const O={};let k=class extends t[_0x20ae4b(0x1d6)]{constructor(_0x31317c,_0x53ab97,_0x41569f,_0x1ba12a,_0x106d92){const _0xdc2e7a=_0x20ae4b;super(),this[_0xdc2e7a(0x1fd)]=_0x31317c,this[_0xdc2e7a(0x204)]=_0x53ab97,this['_sheetSkeletonService']=_0x41569f,this[_0xdc2e7a(0x1f3)]=_0x1ba12a,this['_drawingManagerService']=_0x106d92,this[_0xdc2e7a(0x1b0)](),this[_0xdc2e7a(0x212)]();}['_initCommands'](){const _0x221f94=_0x20ae4b;[g,v,y,b,x,S,m,h,C,_][_0x221f94(0x240)](_0x3ee907=>this[_0x221f94(0x1c9)](this[_0x221f94(0x1fd)][_0x221f94(0x1f6)](_0x3ee907)));}[_0x20ae4b(0x212)](){const _0x5439c1=_0x20ae4b;this[_0x5439c1(0x1c9)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x3637ec=>{const _0x8673f2=_0x5439c1;if(_0x3637ec['id']===r['RemoveSheetDrawingCommand']['id']){let {drawings:_0x54bdfd}=_0x3637ec['params'],_0x6fcb28=_0x54bdfd[_0x8673f2(0x23b)](_0x2cb15d=>_0x2cb15d[_0x8673f2(0x1eb)]===t[_0x8673f2(0x1dd)][_0x8673f2(0x259)]);if(_0x6fcb28['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2b56a6=[],_0x5938d9=[];return _0x6fcb28['forEach'](_0x2f8ada=>{const _0x22e715=_0x8673f2;let {unitId:_0x32ccfa,subUnitId:_0x3ff511,drawingId:_0x482934}=_0x2f8ada,_0x48e975=this[_0x22e715(0x1f3)]['getShapeModel'](_0x32ccfa,_0x3ff511,_0x482934);if(!_0x48e975)throw TypeError(_0x22e715(0x1c3)+_0x48e975);_0x2b56a6['push']({'id':h['id'],'params':{'unitId':_0x32ccfa,'subUnitId':_0x3ff511,'shapeId':_0x482934}}),_0x5938d9[_0x22e715(0x224)]({'id':m['id'],'params':{'unitId':_0x32ccfa,'subUnitId':_0x3ff511,'shapeId':_0x482934,'shapeType':_0x48e975[_0x22e715(0x1ac)](),'shapeData':_0x48e975[_0x22e715(0x237)]()}});let _0x4f323a=this['_sheetsShapeService']['getBasicShapeRelation'](_0x32ccfa,_0x3ff511,_0x482934);if(_0x4f323a)for(let _0x533a61 of _0x4f323a){let _0x43c011=_0x533a61[_0x22e715(0x1ee)],_0x17e5ce=_0x533a61[_0x22e715(0x254)],_0x1f7fd8=_0x17e5ce?{'from':void 0x0}:{'to':void 0x0},_0x3f9084=_0x17e5ce?{'from':{'shapeId':_0x533a61[_0x22e715(0x1f9)],'cxnIndex':_0x533a61[_0x22e715(0x221)]}}:{'to':{'shapeId':_0x533a61[_0x22e715(0x1f9)],'cxnIndex':_0x533a61['cxnIndex']}};_0x2b56a6[_0x22e715(0x224)]({'id':_['id'],'params':{'unitId':_0x32ccfa,'subUnitId':_0x3ff511,'shapeId':_0x43c011,'shapeData':{'relation':_0x1f7fd8}}}),_0x5938d9[_0x22e715(0x224)]({'id':_['id'],'params':{'unitId':_0x32ccfa,'subUnitId':_0x3ff511,'shapeId':_0x43c011,'shapeData':{'relation':_0x3f9084}}});}}),{'preRedos':_0x2b56a6,'redos':[],'preUndos':[],'undos':_0x5938d9};}if(_0x3637ec['id']===r['SetSheetDrawingCommand']['id']){let {drawings:_0x199654}=_0x3637ec[_0x8673f2(0x1b3)],_0x478d9b=_0x199654['filter'](_0x215200=>_0x215200[_0x8673f2(0x1eb)]===t[_0x8673f2(0x1dd)]['DRAWING_SHAPE']);if(_0x478d9b[_0x8673f2(0x1f0)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2c55ac=[],_0x37fdb3=[];for(let _0x251041 of _0x478d9b){let {unitId:_0x5e44d8,subUnitId:_0x337404,drawingId:_0xeb401f,transform:_0x8988ab}=_0x251041;if(!_0x5e44d8||!_0x337404||!_0xeb401f||!_0x8988ab)continue;let _0x7de304=this[_0x8673f2(0x1f3)][_0x8673f2(0x203)](_0x5e44d8,_0x337404,_0xeb401f);if(!_0x7de304)throw TypeError(_0x8673f2(0x1c3)+_0x7de304);if((0x0,e[_0x8673f2(0x1ea)])(_0x7de304[_0x8673f2(0x1ac)]())){let _0xfd6d6e=this[_0x8673f2(0x1f3)]['getLineShapeRelation'](_0x5e44d8,_0x337404,_0xeb401f);_0xfd6d6e&&(_0x2c55ac[_0x8673f2(0x224)]({'id':_['id'],'params':{'unitId':_0x5e44d8,'subUnitId':_0x337404,'shapeId':_0xeb401f,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x37fdb3[_0x8673f2(0x224)]({'id':_['id'],'params':{'unitId':_0x5e44d8,'subUnitId':_0x337404,'shapeId':_0xeb401f,'shapeData':{'relation':_0xfd6d6e}}}));}else{let _0x732e20=this[_0x8673f2(0x1f3)]['getBasicShapeRelation'](_0x5e44d8,_0x337404,_0xeb401f);if(_0x732e20&&_0x732e20[_0x8673f2(0x1f0)]>0x0)for(let _0x2167aa of _0x732e20){let _0x125c26=_0x2167aa[_0x8673f2(0x1ee)],_0xddce6d=_0x2167aa[_0x8673f2(0x254)],_0x502376=this[_0x8673f2(0x1f3)][_0x8673f2(0x203)](_0x5e44d8,_0x337404,_0x125c26);if(!_0x502376)continue;let _0x57e038=_0x502376[_0x8673f2(0x23d)](),_0x159726=_0x502376[_0x8673f2(0x271)]();_0x57e038&&_0x159726?this[_0x8673f2(0x1a8)](_0x5e44d8,_0x337404,_0x125c26,_0x502376,_0x57e038,_0x159726,_0x2c55ac,_0x37fdb3,_0xeb401f,_0x8988ab):this[_0x8673f2(0x260)](_0x5e44d8,_0x337404,_0x125c26,_0x502376,_0xddce6d?_0x57e038:_0x159726,_0xddce6d,_0x2c55ac,_0x37fdb3,_0xeb401f,_0x8988ab);}}}return{'preRedos':[],'redos':_0x2c55ac,'preUndos':_0x37fdb3,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x44aae8,_0x416d16,_0x365e82,_0x59ecc9,_0x4af24c){const _0x157cad=_0x20ae4b;if(!_0x416d16||!_0x365e82)return null;let {shapeId:_0x1c3dd2,cxnIndex:_0x31c631}=_0x44aae8,_0x4da95e=this[_0x157cad(0x1f3)][_0x157cad(0x203)](_0x416d16,_0x365e82,_0x1c3dd2);if(!_0x4da95e)return null;let _0x1fa100=this['_drawingManagerService'][_0x157cad(0x23e)]({'unitId':_0x416d16,'subUnitId':_0x365e82,'drawingId':_0x1c3dd2});if(!(_0x1fa100!=null&&_0x1fa100[_0x157cad(0x26d)]))return null;let {left:_0x49aeed=0x0,top:_0x4fd79e=0x0,width:_0x4f60ab=0x0,height:_0xf440b0=0x0,flipX:_0x45ad31=!0x1,flipY:_0xaba214=!0x1,angle:_0x34b883}=_0x1fa100[_0x157cad(0x26d)];if(_0x4af24c&&_0x59ecc9===_0x1c3dd2){var _0x3bd837,_0x4f5cf6,_0xeb8db5,_0x912868,_0x352dd4,_0x2b7249,_0x451e94;_0x49aeed=(_0x3bd837=_0x4af24c[_0x157cad(0x20c)])==null?_0x49aeed:_0x3bd837,_0x4fd79e=(_0x4f5cf6=_0x4af24c[_0x157cad(0x23f)])==null?_0x4fd79e:_0x4f5cf6,_0x4f60ab=(_0xeb8db5=_0x4af24c['width'])==null?_0x4f60ab:_0xeb8db5,_0xf440b0=(_0x912868=_0x4af24c[_0x157cad(0x1c6)])==null?_0xf440b0:_0x912868,_0x45ad31=(_0x352dd4=_0x4af24c['flipX'])==null?_0x45ad31:_0x352dd4,_0xaba214=(_0x2b7249=_0x4af24c[_0x157cad(0x25e)])==null?_0xaba214:_0x2b7249,_0x34b883=(_0x451e94=_0x4af24c[_0x157cad(0x202)])==null?_0x34b883:_0x451e94;}_0x4da95e[_0x157cad(0x242)]({'width':_0x4f60ab,'height':_0xf440b0});let _0x52f70c=_0x4da95e[_0x157cad(0x210)]()[_0x157cad(0x267)](_0xff559a=>_0xff559a[_0x157cad(0x25a)]===_0x31c631);if(!_0x52f70c)return null;let _0x5f7c=_0x45ad31?_0x4f60ab-_0x52f70c['x']:_0x52f70c['x'],_0x32546b=_0xaba214?_0xf440b0-_0x52f70c['y']:_0x52f70c['y'];if(_0x34b883!==0x0&&_0x34b883!=null){let _0x5ad8ef=_0x34b883*Math['PI']/0xb4,_0xce921e=Math[_0x157cad(0x1f5)](_0x5ad8ef),_0x54488d=Math[_0x157cad(0x209)](_0x5ad8ef),_0xf406f4=_0x4f60ab/0x2,_0x83f07f=_0xf440b0/0x2,_0x58227b=_0x5f7c-_0xf406f4,_0x3bb4c9=_0x32546b-_0x83f07f;_0x5f7c=_0xf406f4+_0x58227b*_0xce921e-_0x3bb4c9*_0x54488d,_0x32546b=_0x83f07f+_0x58227b*_0x54488d+_0x3bb4c9*_0xce921e;}_0x5f7c+=_0x49aeed,_0x32546b+=_0x4fd79e;let _0x9f526b=_0x52f70c['ang']/0xea60;_0x45ad31&&(_0x9f526b=0xb4-_0x9f526b),_0xaba214&&(_0x9f526b=-_0x9f526b),_0x9f526b+=_0x34b883||0x0,_0x9f526b=(_0x9f526b%0x168+0x168)%0x168;let _0x364523=(0x0,e['getBasicShapeRotateBound'])({'left':_0x49aeed,'top':_0x4fd79e,'width':_0x4f60ab,'height':_0xf440b0},_0x34b883||0x0);return{'point':{'x':_0x5f7c,'y':_0x32546b},'angle':_0x9f526b,'bounds':_0x364523};}[_0x20ae4b(0x1a8)](_0x4eafec,_0x3c65b8,_0x36602c,_0x1503e8,_0x2d33d3,_0x53cb9e,_0x36cb62,_0x1152ec,_0x349d55,_0x5c4ffa){const _0x3296a9=_0x20ae4b;let _0x140f10=this[_0x3296a9(0x21d)][_0x3296a9(0x26c)](_0x4eafec,_0x3c65b8);if(!_0x140f10)return;let _0x2ead3d=_0x1503e8[_0x3296a9(0x1ed)](),_0x2307a3=_0x1503e8['getAdjustNames'](),_0x3a2551={},_0x175b63={};_0x2307a3[_0x3296a9(0x240)](_0x4abe3f=>{const _0x356825=_0x3296a9;let _0x433f9c=_0x1503e8[_0x356825(0x268)](_0x4abe3f);_0x175b63[_0x4abe3f]=_0x433f9c==null?0x0:_0x433f9c;});let _0x2245b4=this[_0x3296a9(0x1df)](_0x2d33d3,_0x4eafec,_0x3c65b8,_0x349d55,_0x5c4ffa),_0x53aa3d=this[_0x3296a9(0x1df)](_0x53cb9e,_0x4eafec,_0x3c65b8,_0x349d55,_0x5c4ffa);if(_0x2245b4&&_0x53aa3d){let _0x1e68e7=_0x1503e8['getShapeType'](),_0x4f0f45=(0x0,e[_0x3296a9(0x23a)])(_0x2245b4,_0x53aa3d,_0x1e68e7),_0xc7e4ee=_0x1e68e7;if(_0x4f0f45){let _0x3d3f5e=(0x0,e['computeConnectorRouteLayout'])(_0x4f0f45,_0x1503e8[_0x3296a9(0x1ac)]()),_0x3569c0=this['_drawingManagerService'][_0x3296a9(0x1c4)](_0x4eafec,_0x3c65b8);if(_0x3569c0&&_0x3569c0[_0x36602c]){let _0x43fbc9=_0x3569c0[_0x36602c];_0xc7e4ee=_0x3d3f5e['lineType'];for(let [_0xd221bb,_0x487ff5]of Object[_0x3296a9(0x1b9)](_0x3d3f5e[_0x3296a9(0x1e2)]))_0x3a2551[_0xd221bb]=_0x487ff5;let _0x305c62={..._0x43fbc9[_0x3296a9(0x26d)],'width':_0x3d3f5e[_0x3296a9(0x231)][_0x3296a9(0x251)],'height':_0x3d3f5e['worldRect']['height'],'left':_0x3d3f5e[_0x3296a9(0x231)][_0x3296a9(0x20c)],'top':_0x3d3f5e[_0x3296a9(0x231)][_0x3296a9(0x23f)],'flipX':_0x3d3f5e['worldRect']['flipX'],'flipY':_0x3d3f5e['worldRect'][_0x3296a9(0x25e)],'angle':_0x3d3f5e[_0x3296a9(0x26a)]},_0x20bf1b=(0x0,r['transformToDrawingPosition'])(_0x305c62,_0x140f10),_0x2d5c1f=(0x0,r[_0x3296a9(0x246)])(_0x305c62,_0x140f10),_0x3eceaa={'unitId':_0x4eafec,'subUnitId':_0x3c65b8,'drawingType':t[_0x3296a9(0x1dd)][_0x3296a9(0x259)],'drawingId':_0x36602c,'transform':_0x305c62,'sheetTransform':_0x20bf1b,'axisAlignSheetTransform':_0x2d5c1f},{unitId:_0x1dfdc3,subUnitId:_0x40ed1b,undo:_0x5a7f09,redo:_0x54a6cd,objects:_0x6c16a3}=this['_drawingManagerService'][_0x3296a9(0x1c0)]([_0x3eceaa]);_0x36cb62['push']({'id':r[_0x3296a9(0x1db)]['id'],'params':{'unitId':_0x1dfdc3,'subUnitId':_0x40ed1b,'op':_0x54a6cd,'objects':_0x6c16a3,'type':r[_0x3296a9(0x1d2)][_0x3296a9(0x1ae)]}}),_0x1152ec[_0x3296a9(0x224)]({'id':r[_0x3296a9(0x1db)]['id'],'params':{'unitId':_0x1dfdc3,'subUnitId':_0x40ed1b,'op':_0x5a7f09,'objects':_0x6c16a3,'type':r[_0x3296a9(0x1d2)][_0x3296a9(0x1ae)]}});}_0x1503e8[_0x3296a9(0x238)]();}_0x36cb62[_0x3296a9(0x224)]({'id':_['id'],'params':{'unitId':_0x4eafec,'subUnitId':_0x3c65b8,'shapeId':_0x36602c,'shapeType':_0xc7e4ee,'shapeData':{'adjustValues':_0x3a2551,'relation':_0x2ead3d}}}),_0x1152ec['push']({'id':_['id'],'params':{'unitId':_0x4eafec,'subUnitId':_0x3c65b8,'shapeId':_0x36602c,'shapeType':_0x1e68e7,'shapeData':{'adjustValues':_0x175b63,'relation':_0x2ead3d}}});}}[_0x20ae4b(0x260)](_0x1759b2,_0x2af269,_0x24bcc3,_0x2766e1,_0x780854,_0x4716d4,_0x3a124b,_0x5c1bc3,_0x1b1f28,_0x5672b4){const _0x2ef6bb=_0x20ae4b;var _0x2d3ad5;if(!_0x780854)return;let _0x3c0692=this[_0x2ef6bb(0x21d)][_0x2ef6bb(0x26c)](_0x1759b2,_0x2af269);if(!_0x3c0692)return;let _0x3d5a80=(_0x2d3ad5=this[_0x2ef6bb(0x1ff)][_0x2ef6bb(0x23e)]({'unitId':_0x1759b2,'subUnitId':_0x2af269,'drawingId':_0x1b1f28}))==null?void 0x0:_0x2d3ad5['transform'];if(!_0x3d5a80)return;let _0xa2d9cb=_0x3d5a80['left']!==_0x5672b4[_0x2ef6bb(0x20c)]||_0x3d5a80['top']!==_0x5672b4[_0x2ef6bb(0x23f)],_0x393432=_0x3d5a80[_0x2ef6bb(0x251)]!==_0x5672b4[_0x2ef6bb(0x251)]||_0x3d5a80[_0x2ef6bb(0x1c6)]!==_0x5672b4[_0x2ef6bb(0x1c6)],_0x107721=_0x3d5a80[_0x2ef6bb(0x1c2)]!==_0x5672b4[_0x2ef6bb(0x1c2)]||_0x3d5a80[_0x2ef6bb(0x25e)]!==_0x5672b4['flipY'],_0x1d810e=_0x3d5a80[_0x2ef6bb(0x202)]!==_0x5672b4['angle'];if(_0xa2d9cb&&!_0x393432&&!_0x107721&&!_0x1d810e){var _0x135f0a,_0x308eef,_0x37febf,_0x2fbf34;let _0x2afe32=((_0x135f0a=_0x5672b4[_0x2ef6bb(0x20c)])==null?0x0:_0x135f0a)-((_0x308eef=_0x3d5a80[_0x2ef6bb(0x20c)])==null?0x0:_0x308eef),_0x4ffe62=((_0x37febf=_0x5672b4[_0x2ef6bb(0x23f)])==null?0x0:_0x37febf)-((_0x2fbf34=_0x3d5a80[_0x2ef6bb(0x23f)])==null?0x0:_0x2fbf34),_0x1b8985=this[_0x2ef6bb(0x1ff)]['getDrawingData'](_0x1759b2,_0x2af269);if(_0x1b8985&&_0x1b8985[_0x24bcc3]){var _0x12b1ff,_0x306622,_0x237852,_0x940006;let _0x58ab05=_0x1b8985[_0x24bcc3],_0x23c39a={..._0x58ab05[_0x2ef6bb(0x26d)],'left':((_0x12b1ff=(_0x306622=_0x58ab05[_0x2ef6bb(0x26d)])==null?void 0x0:_0x306622[_0x2ef6bb(0x20c)])==null?0x0:_0x12b1ff)+_0x2afe32,'top':((_0x237852=(_0x940006=_0x58ab05[_0x2ef6bb(0x26d)])==null?void 0x0:_0x940006['top'])==null?0x0:_0x237852)+_0x4ffe62},_0x28ade7=(0x0,r[_0x2ef6bb(0x262)])(_0x23c39a,_0x3c0692),_0x2842c7=(0x0,r['transformToAxisAlignPosition'])(_0x23c39a,_0x3c0692),_0x3d41d3={'unitId':_0x1759b2,'subUnitId':_0x2af269,'drawingType':t[_0x2ef6bb(0x1dd)][_0x2ef6bb(0x259)],'drawingId':_0x24bcc3,'transform':_0x23c39a,'sheetTransform':_0x28ade7,'axisAlignSheetTransform':_0x2842c7},{unitId:_0x112f66,subUnitId:_0x574861,undo:_0x5d3868,redo:_0x5de7a6,objects:_0x47c87d}=this['_drawingManagerService'][_0x2ef6bb(0x1c0)]([_0x3d41d3]);_0x3a124b[_0x2ef6bb(0x224)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x112f66,'subUnitId':_0x574861,'op':_0x5de7a6,'objects':_0x47c87d,'type':r[_0x2ef6bb(0x1d2)][_0x2ef6bb(0x1ae)]}}),_0x5c1bc3[_0x2ef6bb(0x224)]({'id':r[_0x2ef6bb(0x1db)]['id'],'params':{'unitId':_0x112f66,'subUnitId':_0x574861,'op':_0x5d3868,'objects':_0x47c87d,'type':r[_0x2ef6bb(0x1d2)][_0x2ef6bb(0x1ae)]}});}}else{let _0x17a9ff=_0x2766e1[_0x2ef6bb(0x23d)](),_0x40a619=_0x2766e1[_0x2ef6bb(0x271)]();this[_0x2ef6bb(0x1a8)](_0x1759b2,_0x2af269,_0x24bcc3,_0x2766e1,_0x17a9ff,_0x40a619,_0x3a124b,_0x5c1bc3,_0x1b1f28,_0x5672b4);}}};k=f([d(0x0,t[_0x20ae4b(0x1e3)]),d(0x1,(0x0,t[_0x20ae4b(0x1e5)])(n[_0x20ae4b(0x25b)])),d(0x2,(0x0,t[_0x20ae4b(0x1e5)])(n[_0x20ae4b(0x1de)])),d(0x3,(0x0,t[_0x20ae4b(0x1e5)])(p)),d(0x4,(0x0,t[_0x20ae4b(0x1e5)])(a['IDrawingManagerService']))],k);let A=class extends t[_0x20ae4b(0x1b6)]{constructor(_0x4f9652=O,_0x3dd1a7,_0x2745bb,_0x238e01){const _0xd9bc5b=_0x20ae4b;super(),this[_0xd9bc5b(0x1c1)]=_0x4f9652,this['_injector']=_0x3dd1a7,this[_0xd9bc5b(0x1fd)]=_0x2745bb,this[_0xd9bc5b(0x22f)]=_0x238e01;let {..._0x3c6b6d}=(0x0,t[_0xd9bc5b(0x235)])({},O,this[_0xd9bc5b(0x1c1)]);this['_configService'][_0xd9bc5b(0x1ca)](D,_0x3c6b6d);}['onStarting'](){const _0x53de26=_0x20ae4b;let _0x50d84d=this['_injector'];[[u],[p],[k]][_0x53de26(0x240)](_0x40f86f=>_0x50d84d[_0x53de26(0x263)](_0x40f86f)),(0x0,t['touchDependencies'])(_0x50d84d,[[p],[k]]);}};l(A,_0x20ae4b(0x236),t[_0x20ae4b(0x24c)][_0x20ae4b(0x1bb)]),l(A,_0x20ae4b(0x256),_0x20ae4b(0x1e1)),l(A,'packageName',T),l(A,_0x20ae4b(0x1cc),E),A=f([(0x0,t[_0x20ae4b(0x1e0)])(i[_0x20ae4b(0x253)]),d(0x1,(0x0,t['Inject'])(t[_0x20ae4b(0x206)])),d(0x2,t['ICommandService']),d(0x3,t['IConfigService'])],A),exports[_0x20ae4b(0x1d5)]=0xc8,exports[_0x20ae4b(0x1ad)]=0xc8,exports[_0x20ae4b(0x215)]=g,exports[_0x20ae4b(0x226)]=m,exports[_0x20ae4b(0x1ce)]=h,exports['SetShapeDrawingDataCommand']=v,exports[_0x20ae4b(0x217)]=b,Object[_0x20ae4b(0x225)](exports,'SheetsShapeService',{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x20ae4b(0x266)]=y,Object[_0x20ae4b(0x225)](exports,_0x20ae4b(0x239),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x20ae4b(0x1bd)]=x,exports[_0x20ae4b(0x1ef)]=S,exports[_0x20ae4b(0x214)]=_,exports[_0x20ae4b(0x1e7)]=w,exports[_0x20ae4b(0x1a7)]=C;
1
+ const _0x11106f=_0x25d2;function _0x5bf7(){const _0x231db9=['forEach','routeConnectorLineShape','_resourcesManagerService','resizeEnabled','sheet.mutation.remove-shape','getAdjustNames','transformToAxisAlignPosition','registerCommand','startY','filter','getSkeleton','width','worldRect','function','_ensureShapeModelManager','CommandType','set','onCommandExecute','_addLineRerouteUpdates','call','borderEnabled','UpdateSheetsShapeDataMutation','registerPluginResource','Plugin','height','_injector','getDrawingByParam','getBatchAddOp','sheet.mutation.update-shape-type','removeShape','4YGwzHZ','getLineShapeRelation','ShapeModel','DrawingApplyType','UniverInstanceType','syncExecuteCommand','default','touchDependencies','sequenceExecute','_configService','getConnectionSiteList','prototype','@univerjs-pro/sheets-shape','_disposed','getStartConnectInfo','transformToDrawingPosition','sheet.command.toggle-shape-flip','3380330CUbGeb','sin','delete','_initCommandInterceptor','left','InsertShapeCommand','range','parse','pluginName','_shapeModelManagerMap','toStringTag','preUndos','drawingType','DependentOn','REMOVE','getBasicShapeRelation','constructor','rotateEnabled','startX','cxnIndex','IResourceManagerService','getAdjustValueByName','getDrawingData','ICommandService','clear','toPrimitive','getShapeDataById','_config','_sheetSkeletonService','887802LJiVUe','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','rotation','DEFAULT_SHAPE_HEIGHT','getBatchUpdateOp','_initCommands','length','sheet.mutation.insert-shape','merge','computeConnectorRouteLayout','hasShape','sheet.mutation.update-shape-data','iterator','top','_sheetsShapeService','SetShapeDrawingDataCommand','redos','transform','DrawingTypeEnum','DRAWING_SHAPE','getShapeModel','sheet.command.update-shape-type','_deserializeShapeForUnit','200Jchjcn','updateContext','lineShapeId','_drawingManagerService','6150347iMiLGc','sheet.command.set-shape-drawing-data','getCellWithCoordByIndex','isConnectorShape','Inject','pushUndoRedo','entries','IUndoRedoService','data','setShapeType','_shapes','addShape','keys','SetSheetsShapeRotateCommand','onStarting','preRedos','from','defineProperty','ISheetDrawingService','_commandService','InsertSheetsShapeMutation','UPDATE','_addLineFollowShapeUpdates','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','shapeId','_sheetInterceptorService','_groupIds','getShapeType','DEFAULT_SHAPE_WIDTH','ClearSheetDrawingTransformerOperation','sheet.command.set-shape-rotate','stringify','type','flipX','getBasicShapeType','UpdateSheetsShapeTypeMutation','IUniverInstanceService','getEndConnectInfo','SetDrawingApplyMutation','6msKmka','undos','setShapeData','IDrawingManagerService','find','isFrom','add','assign','params','getShapeRelation','ang','_initSnapshot','315391bTAzrL','push','adjustValues','Disposable','SheetSkeletonService','getSheetCommandTarget','_linesIds','ensureSkeleton','decorate','index','SheetInterceptorService','generateRandomId','3642120RQCOyc','MUTATION','disposeWithMe','interceptCommand','UpdateConnectorRelationCommand','flipY','459135xYKKwM','get','sheet.command.update-line-shape-resize','angle','sheet.command.insert-shape','_getConnectPointInfo','InsertSheetDrawingCommand','UNIVER_SHEET','fill','COMMAND','getShapeData','getBasicShapeRotateBound','getCellIndexAndOffsetByPosition','relation','setConfig','lineType','_serializeShapeForUnit','RemoveSheetsShapeMutation','object','position','SetSheetDrawingCommand','0.20.1','dispose','2001561hbSmrT','ToggleSheetsShapeFlipCommand','toJSON','symbol','insertShape','sheet.command.update-connector-relation','every','fromJSON','UniverSheetsShapePlugin','getOwnPropertyDescriptor'];_0x5bf7=function(){return _0x231db9;};return _0x5bf7();}(function(_0x5904e3,_0x55cb3f){const _0x2ed8e0=_0x25d2,_0x3b0d77=_0x5904e3();while(!![]){try{const _0x1bd23b=-parseInt(_0x2ed8e0(0x175))/0x1+parseInt(_0x2ed8e0(0x127))/0x2+-parseInt(_0x2ed8e0(0x19e))/0x3+parseInt(_0x2ed8e0(0x1c6))/0x4*(parseInt(_0x2ed8e0(0x1d7))/0x5)+parseInt(_0x2ed8e0(0x169))/0x6*(parseInt(_0x2ed8e0(0x142))/0x7)+parseInt(_0x2ed8e0(0x181))/0x8+-parseInt(_0x2ed8e0(0x187))/0x9*(parseInt(_0x2ed8e0(0x13e))/0xa);if(_0x1bd23b===_0x55cb3f)break;else _0x3b0d77['push'](_0x3b0d77['shift']());}catch(_0x20342e){_0x3b0d77['push'](_0x3b0d77['shift']());}}}(_0x5bf7,0x6e19f),Object[_0x11106f(0x153)](exports,Symbol[_0x11106f(0x1e1)],{'value':'Module'}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core`),n=require(`@univerjs/sheets`),r=require(`@univerjs/sheets-drawing`),i=require(`@univerjs-pro/license`),a=require(`@univerjs/drawing`);function o(_0x5bf2ad){'@babel/helpers - typeof';const _0x32c083=_0x11106f;return o=typeof Symbol==_0x32c083(0x1b5)&&typeof Symbol[_0x32c083(0x133)]=='symbol'?function(_0x3f0d43){return typeof _0x3f0d43;}:function(_0x28bdb0){const _0x3bb7bb=_0x32c083;return _0x28bdb0&&typeof Symbol==_0x3bb7bb(0x1b5)&&_0x28bdb0[_0x3bb7bb(0x1e7)]===Symbol&&_0x28bdb0!==Symbol[_0x3bb7bb(0x1d1)]?_0x3bb7bb(0x1a1):typeof _0x28bdb0;},o(_0x5bf2ad);}function s(_0x5dba43,_0x5a54bc){const _0x41508=_0x11106f;if(o(_0x5dba43)!=_0x41508(0x199)||!_0x5dba43)return _0x5dba43;var _0x411844=_0x5dba43[Symbol[_0x41508(0x123)]];if(_0x411844!==void 0x0){var _0x4f8fec=_0x411844[_0x41508(0x1bb)](_0x5dba43,_0x5a54bc||_0x41508(0x1cc));if(o(_0x4f8fec)!=_0x41508(0x199))return _0x4f8fec;throw TypeError(_0x41508(0x159));}return(_0x5a54bc==='string'?String:Number)(_0x5dba43);}function c(_0x1e4c94){var _0x1ea024=s(_0x1e4c94,'string');return o(_0x1ea024)=='symbol'?_0x1ea024:_0x1ea024+'';}function l(_0x16a464,_0x4c24e4,_0x2c5c74){const _0x6f7da5=_0x11106f;return(_0x4c24e4=c(_0x4c24e4))in _0x16a464?Object[_0x6f7da5(0x153)](_0x16a464,_0x4c24e4,{'value':_0x2c5c74,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16a464[_0x4c24e4]=_0x2c5c74,_0x16a464;}var u=class extends t['Disposable']{constructor(){const _0x19e9d4=_0x11106f;super(),l(this,_0x19e9d4(0x14c),new Map()),l(this,_0x19e9d4(0x17b),new Set()),l(this,_0x19e9d4(0x15c),new Set());}[_0x11106f(0x14d)](_0x468962,_0x49e8a0,_0x39029c){const _0x1cec4e=_0x11106f;let _0x189223=new e[(_0x1cec4e(0x1c8))](_0x468962,_0x49e8a0,_0x39029c);return this[_0x1cec4e(0x14c)][_0x1cec4e(0x1b8)](_0x49e8a0,_0x189223),(0x0,e['isConnectorShape'])(_0x468962)&&this[_0x1cec4e(0x17b)][_0x1cec4e(0x16f)](_0x49e8a0),_0x189223;}['getBasicShapeRelation'](_0x426923){const _0x11ba4f=_0x11106f;let _0x278e78=[];for(let _0x51c7c5 of this[_0x11ba4f(0x17b)]){let _0x2d506e=this[_0x11ba4f(0x14c)]['get'](_0x51c7c5);if(_0x2d506e){let _0x4d405a=_0x2d506e[_0x11ba4f(0x172)]();if(_0x4d405a){var _0x3eacbd,_0x236ee0;((_0x3eacbd=_0x4d405a[_0x11ba4f(0x152)])==null?void 0x0:_0x3eacbd[_0x11ba4f(0x15a)])===_0x426923&&_0x278e78['push']({..._0x4d405a[_0x11ba4f(0x152)],'lineShapeId':_0x51c7c5,'isFrom':!0x0}),((_0x236ee0=_0x4d405a['to'])==null?void 0x0:_0x236ee0[_0x11ba4f(0x15a)])===_0x426923&&_0x278e78['push']({..._0x4d405a['to'],'lineShapeId':_0x51c7c5,'isFrom':!0x1});}}}return _0x278e78;}['getLineShapeRelation'](_0x238ba5){const _0x537044=_0x11106f;let _0x32bf21=this[_0x537044(0x14c)][_0x537044(0x188)](_0x238ba5);if(_0x32bf21)return _0x32bf21[_0x537044(0x172)]();}[_0x11106f(0x15d)](_0x2f5f01){const _0x418f6b=_0x11106f;let _0x1d3267=this['_shapes'][_0x418f6b(0x188)](_0x2f5f01);if(_0x1d3267)return _0x1d3267[_0x418f6b(0x15d)]();}[_0x11106f(0x131)](_0x3c32cb){const _0xa57c70=_0x11106f;return this[_0xa57c70(0x14c)]['has'](_0x3c32cb);}[_0x11106f(0x1c5)](_0x5d69b5){const _0x2a2e22=_0x11106f;let _0x51de0e=this['_shapes'][_0x2a2e22(0x188)](_0x5d69b5);_0x51de0e&&((0x0,e[_0x2a2e22(0x145)])(_0x51de0e[_0x2a2e22(0x15d)]())&&this[_0x2a2e22(0x17b)][_0x2a2e22(0x1d9)](_0x5d69b5),this[_0x2a2e22(0x14c)][_0x2a2e22(0x1d9)](_0x5d69b5));}[_0x11106f(0x1a0)](){const _0x219fe7=_0x11106f;let _0x4f59a1=[];return this[_0x219fe7(0x14c)][_0x219fe7(0x1a8)](_0x3616f9=>{const _0x213d9e=_0x219fe7;_0x4f59a1[_0x213d9e(0x176)](_0x3616f9[_0x213d9e(0x1a0)]());}),_0x4f59a1;}[_0x11106f(0x1a5)](_0x3553e9){const _0x1387fb=_0x11106f;for(let _0x5554b1 of _0x3553e9){let {id:_0x13c85f,shapeType:_0x20183e}=_0x5554b1,_0x518591=this[_0x1387fb(0x14d)](_0x20183e,_0x13c85f,_0x5554b1['shapeData']);_0x518591&&_0x518591['isLineShape']()&&this[_0x1387fb(0x17b)][_0x1387fb(0x16f)](_0x13c85f);}}[_0x11106f(0x19d)](){const _0xc8228d=_0x11106f;this[_0xc8228d(0x1d3)]||(this[_0xc8228d(0x14c)][_0xc8228d(0x1a8)](_0x5c0225=>{_0x5c0225['dispose']();}),this[_0xc8228d(0x14c)][_0xc8228d(0x122)](),this[_0xc8228d(0x17b)][_0xc8228d(0x122)](),this['_groupIds'][_0xc8228d(0x122)](),super[_0xc8228d(0x19d)]());}};function d(_0x27d454,_0x32c3bb){return function(_0x4828dd,_0x31cb2f){_0x32c3bb(_0x4828dd,_0x31cb2f,_0x27d454);};}function f(_0x211c5f,_0x1cbc5b,_0x494212,_0xe7f76f){const _0x5ac743=_0x11106f;var _0x2d449d=arguments[_0x5ac743(0x12d)],_0x1dde94=_0x2d449d<0x3?_0x1cbc5b:_0xe7f76f===null?_0xe7f76f=Object[_0x5ac743(0x1a7)](_0x1cbc5b,_0x494212):_0xe7f76f,_0x1cb74b;if(typeof Reflect==_0x5ac743(0x199)&&typeof Reflect[_0x5ac743(0x17d)]==_0x5ac743(0x1b5))_0x1dde94=Reflect[_0x5ac743(0x17d)](_0x211c5f,_0x1cbc5b,_0x494212,_0xe7f76f);else{for(var _0x14a999=_0x211c5f[_0x5ac743(0x12d)]-0x1;_0x14a999>=0x0;_0x14a999--)(_0x1cb74b=_0x211c5f[_0x14a999])&&(_0x1dde94=(_0x2d449d<0x3?_0x1cb74b(_0x1dde94):_0x2d449d>0x3?_0x1cb74b(_0x1cbc5b,_0x494212,_0x1dde94):_0x1cb74b(_0x1cbc5b,_0x494212))||_0x1dde94);}return _0x2d449d>0x3&&_0x1dde94&&Object[_0x5ac743(0x153)](_0x1cbc5b,_0x494212,_0x1dde94),_0x1dde94;}let p=class extends t[_0x11106f(0x178)]{constructor(_0x3c14ee){const _0x4ecd43=_0x11106f;super(),this[_0x4ecd43(0x1aa)]=_0x3c14ee,l(this,_0x4ecd43(0x1e0),new Map()),this[_0x4ecd43(0x174)]();}[_0x11106f(0x1b6)](_0x23ebd8,_0x5f502b){const _0x464092=_0x11106f;let _0x2c0333=this[_0x464092(0x1e0)]['get'](_0x23ebd8);_0x2c0333||(_0x2c0333=new Map(),this[_0x464092(0x1e0)][_0x464092(0x1b8)](_0x23ebd8,_0x2c0333));let _0x4913c9=_0x2c0333[_0x464092(0x188)](_0x5f502b);return _0x4913c9||(_0x4913c9=new u(),_0x2c0333['set'](_0x5f502b,_0x4913c9)),_0x4913c9;}[_0x11106f(0x1a2)](_0x26c2ae,_0x2c48f2,_0x159c4d,_0x12804f,_0x22663d){const _0x2d0e2f=_0x11106f;this[_0x2d0e2f(0x1b6)](_0x26c2ae,_0x2c48f2)['addShape'](_0x159c4d,_0x12804f,_0x22663d);}[_0x11106f(0x1c5)](_0x470cbc,_0xc13cbb,_0x2ebefd){const _0x2ec8b9=_0x11106f;this[_0x2ec8b9(0x1b6)](_0x470cbc,_0xc13cbb)[_0x2ec8b9(0x1c5)](_0x2ebefd);}[_0x11106f(0x164)](_0x51ce2c,_0x5f5332,_0x5327ad){const _0x8e1769=_0x11106f;return this[_0x8e1769(0x1b6)](_0x51ce2c,_0x5f5332)['getShapeType'](_0x5327ad);}['getShapeType'](_0x2199b8,_0x1af12d,_0x17ff9c){const _0x3f1ffb=_0x11106f;return this[_0x3f1ffb(0x1b6)](_0x2199b8,_0x1af12d)[_0x3f1ffb(0x15d)](_0x17ff9c);}[_0x11106f(0x131)](_0x1f2972,_0x44a259,_0x5a5a78){const _0x5ebf60=_0x11106f;return this[_0x5ebf60(0x1b6)](_0x1f2972,_0x44a259)['hasShape'](_0x5a5a78);}['getShapeTypeById'](_0x35de5b,_0x1282a7,_0x5cacb4){const _0x4597bc=_0x11106f;return this[_0x4597bc(0x1b6)](_0x35de5b,_0x1282a7)[_0x4597bc(0x15d)](_0x5cacb4);}[_0x11106f(0x124)](_0x3fed6f,_0x6b6f3c,_0x3fd1c6){const _0x4a3352=_0x11106f;let _0x4abae5=this[_0x4a3352(0x1b6)](_0x3fed6f,_0x6b6f3c);if(!_0x4abae5[_0x4a3352(0x15d)](_0x3fd1c6))return;let _0x8da306=_0x4abae5[_0x4a3352(0x14c)][_0x4a3352(0x188)](_0x3fd1c6);if(_0x8da306)return _0x8da306[_0x4a3352(0x191)]();}['getShapeModel'](_0x3b3d7e,_0x334454,_0x175155){const _0x1cf5fa=_0x11106f;return this['_ensureShapeModelManager'](_0x3b3d7e,_0x334454)[_0x1cf5fa(0x14c)][_0x1cf5fa(0x188)](_0x175155);}[_0x11106f(0x1e6)](_0x268660,_0x4b0850,_0x1e79e4){const _0x3620f2=_0x11106f;return this['_ensureShapeModelManager'](_0x268660,_0x4b0850)[_0x3620f2(0x1e6)](_0x1e79e4);}[_0x11106f(0x1c7)](_0x43a6d6,_0x1a2b69,_0x42ce89){const _0x8ebb30=_0x11106f;let _0x44be7=this[_0x8ebb30(0x1b6)](_0x43a6d6,_0x1a2b69)[_0x8ebb30(0x14c)]['get'](_0x42ce89);if(_0x44be7)return _0x44be7[_0x8ebb30(0x172)]();}['setShapeType'](){}[_0x11106f(0x197)](_0x201f84){const _0x40a0d6=_0x11106f;let _0x106c3e={},_0x40fe64=this[_0x40a0d6(0x1e0)]['get'](_0x201f84);return _0x40fe64&&_0x40fe64[_0x40a0d6(0x1a8)]((_0x5e4b91,_0x3245a9)=>{const _0x431001=_0x40a0d6;let _0x5777cc=_0x5e4b91[_0x431001(0x1a0)]();_0x5777cc[_0x431001(0x12d)]>0x0&&(_0x106c3e[_0x3245a9]=_0x5777cc);}),JSON[_0x40a0d6(0x161)](_0x106c3e);}[_0x11106f(0x13d)](_0x86ae98,_0x5162ed){const _0x6921de=_0x11106f;Object[_0x6921de(0x14e)](_0x5162ed)[_0x6921de(0x1a8)](_0xb5501a=>{const _0x200a1e=_0x6921de;this[_0x200a1e(0x1b6)](_0x86ae98,_0xb5501a)[_0x200a1e(0x1a5)](_0x5162ed[_0xb5501a]);});}[_0x11106f(0x1a0)](){const _0x476ac8=_0x11106f;let _0x2042a9={};return this[_0x476ac8(0x1e0)][_0x476ac8(0x1a8)]((_0x4fcdd8,_0x226bbd)=>{const _0x3547f2=_0x476ac8;_0x2042a9[_0x226bbd]={},_0x4fcdd8[_0x3547f2(0x1a8)]((_0x1b052c,_0x58d6c0)=>{const _0x373e2f=_0x3547f2;_0x2042a9[_0x226bbd][_0x58d6c0]=_0x1b052c[_0x373e2f(0x1a0)]();});}),_0x2042a9;}[_0x11106f(0x1a5)](_0x53e22d){const _0x2c9564=_0x11106f;Object[_0x2c9564(0x14e)](_0x53e22d)['forEach'](_0x3f1a5a=>{const _0x131c8b=_0x2c9564;let _0x449ea5=_0x53e22d[_0x3f1a5a];Object[_0x131c8b(0x14e)](_0x449ea5)[_0x131c8b(0x1a8)](_0x291a81=>{const _0x114847=_0x131c8b;this[_0x114847(0x1b6)](_0x3f1a5a,_0x291a81)['fromJSON'](_0x449ea5[_0x291a81]);});});}[_0x11106f(0x174)](){const _0x25fbb5=_0x11106f;this['_resourcesManagerService'][_0x25fbb5(0x1be)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[t[_0x25fbb5(0x1ca)]['UNIVER_SHEET']],'toJson':_0x32a764=>this[_0x25fbb5(0x197)](_0x32a764),'parseJson':_0x53b120=>JSON[_0x25fbb5(0x1de)](_0x53b120),'onLoad':(_0x3546b1,_0x48817a)=>{const _0x2de9cf=_0x25fbb5;this[_0x2de9cf(0x13d)](_0x3546b1,_0x48817a);},'onUnLoad':_0x4a57d6=>{const _0x3e48bc=_0x25fbb5;let _0x440452=this[_0x3e48bc(0x1e0)]['get'](_0x4a57d6);_0x440452&&(_0x440452[_0x3e48bc(0x1a8)](_0xf87649=>{const _0x31ca5c=_0x3e48bc;_0xf87649[_0x31ca5c(0x19d)]();}),this[_0x3e48bc(0x1e0)][_0x3e48bc(0x1d9)](_0x4a57d6));}});}[_0x11106f(0x19d)](){const _0x4679f7=_0x11106f;this[_0x4679f7(0x1e0)][_0x4679f7(0x1a8)](_0x56d953=>{const _0x349b49=_0x4679f7;_0x56d953[_0x349b49(0x1a8)](_0x1cef3a=>{const _0x24ad0b=_0x349b49;_0x1cef3a[_0x24ad0b(0x19d)]();});});}};p=f([d(0x0,t[_0x11106f(0x11e)])],p);const m={'id':_0x11106f(0x12e),'type':t['CommandType'][_0x11106f(0x182)],'handler':(_0xd37aa3,_0x1fca7a)=>{const _0x260ad4=_0x11106f;let {unitId:_0x11cb7e,subUnitId:_0x390a5a,shapeType:_0x412015,shapeId:_0xc6813e,shapeData:_0x4ea842}=_0x1fca7a;return _0xd37aa3[_0x260ad4(0x188)](p)['insertShape'](_0x11cb7e,_0x390a5a,_0x412015,_0xc6813e,_0x4ea842),!0x0;}},h={'id':_0x11106f(0x1ac),'type':t['CommandType'][_0x11106f(0x182)],'handler':(_0x1b813d,_0x1b90bb)=>{const _0x1f52c9=_0x11106f;let {unitId:_0x43b27b,subUnitId:_0x30b708,shapeId:_0x194748}=_0x1b90bb;return _0x1b813d[_0x1f52c9(0x188)](p)[_0x1f52c9(0x1c5)](_0x43b27b,_0x30b708,_0x194748),!0x0;}},g={'type':t['CommandType'][_0x11106f(0x190)],'id':_0x11106f(0x18b),'handler':(_0x4802fe,_0x1aacc1)=>{const _0x858ce=_0x11106f;var _0x2142e5,_0x7c799d;let _0x1ad61f=(0x0,n[_0x858ce(0x17a)])(_0x4802fe['get'](t[_0x858ce(0x166)]),_0x1aacc1);if(!_0x1ad61f)return!0x1;let _0x53bd9c=_0x4802fe[_0x858ce(0x188)](n[_0x858ce(0x179)]),{unitId:_0x2d969e,subUnitId:_0x1cfcd5}=_0x1ad61f,_0x3cae9a=_0x53bd9c[_0x858ce(0x17c)](_0x2d969e,_0x1cfcd5);if(!_0x3cae9a)return!0x1;let _0x10460e=_0x4802fe[_0x858ce(0x188)](t[_0x858ce(0x121)]),_0x30be54=_0x4802fe[_0x858ce(0x188)](t[_0x858ce(0x149)]),_0x3683ac=_0x4802fe[_0x858ce(0x188)](n['SheetInterceptorService']),_0x5185aa=_0x4802fe[_0x858ce(0x188)](r[_0x858ce(0x154)]),{shapeType:_0x194b65,shapeData:_0x306428}=_0x1aacc1,_0x208d5e=_0x1aacc1[_0x858ce(0x15a)]||(0x0,t[_0x858ce(0x180)])(),_0xad3b9e={'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'shapeId':_0x208d5e,'shapeType':_0x194b65,'shapeData':_0x306428},_0x26061d=_0x1aacc1[_0x858ce(0x1b3)]||0xc8,_0x1d1dbf=_0x1aacc1[_0x858ce(0x1c0)]||0xc8,_0x5db29d=0x0,_0x13d5ca=0x0,_0x4b1ad6={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x2a9364={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x1aacc1[_0x858ce(0x19a)]){let {x:_0x4c15c0,y:_0x2f3e23}=_0x1aacc1[_0x858ce(0x19a)];_0x5db29d=_0x4c15c0,_0x13d5ca=_0x2f3e23,_0x4b1ad6=_0x3cae9a[_0x858ce(0x193)](_0x4c15c0,_0x2f3e23),_0x2a9364=_0x3cae9a[_0x858ce(0x193)](_0x4c15c0+_0x26061d,_0x2f3e23+_0x1d1dbf);}else{if(_0x1aacc1[_0x858ce(0x1dd)]){let {startRow:_0x138d1c,startColumn:_0x22ba50}=_0x1aacc1['range'];_0x4b1ad6={'row':_0x138d1c,'rowOffset':0xa,'column':_0x22ba50,'columnOffset':0xa};let _0x807398=_0x3cae9a[_0x858ce(0x144)](_0x138d1c,_0x22ba50);_0x5db29d=_0x807398[_0x858ce(0x11c)]+0xa,_0x13d5ca=_0x807398[_0x858ce(0x1b0)]+0xa,_0x2a9364=_0x3cae9a['getCellIndexAndOffsetByPosition'](_0x5db29d+_0x26061d,_0x13d5ca+_0x1d1dbf);}}let _0x56fea2={'from':_0x4b1ad6,'to':_0x2a9364},_0x3356a8={'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'drawingId':_0x208d5e,'drawingType':t['DrawingTypeEnum'][_0x858ce(0x13a)],'sheetTransform':_0x56fea2,'transform':{'left':_0x5db29d,'top':_0x13d5ca,'width':_0x26061d,'height':_0x1d1dbf},'data':{'shapeType':_0x194b65,'shapeData':_0x306428},'axisAlignSheetTransform':_0x56fea2,'allowTransform':!0x0};(0x0,e[_0x858ce(0x145)])(_0x194b65)&&(_0x3356a8['data'][_0x858ce(0x18f)]=!0x1,_0x3356a8[_0x858ce(0x14a)][_0x858ce(0x1e8)]=!0x1,_0x3356a8[_0x858ce(0x14a)][_0x858ce(0x1ab)]=!0x1,_0x3356a8[_0x858ce(0x14a)][_0x858ce(0x1bc)]=!0x1,_0x3356a8[_0x858ce(0x138)][_0x858ce(0x1e8)]=!0x1,_0x3356a8[_0x858ce(0x138)][_0x858ce(0x1ab)]=!0x1,_0x3356a8[_0x858ce(0x138)]['borderEnabled']=!0x1);let {undo:_0x9d8d92,redo:_0x105dae,objects:_0x291ce1}=_0x5185aa[_0x858ce(0x1c3)]([_0x3356a8]),_0x7e7df=_0x3683ac[_0x858ce(0x1b9)]({'id':r[_0x858ce(0x18d)]['id'],'params':{'unitId':_0x2d969e,'drawings':[_0x3356a8]}}),_0x4c618e=[...(_0x2142e5=_0x7e7df[_0x858ce(0x151)])==null?[]:_0x2142e5,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'op':_0x105dae,'objects':_0x291ce1,'type':r[_0x858ce(0x1c9)]['INSERT']}},{'id':r[_0x858ce(0x15f)]['id'],'params':[_0x2d969e]},..._0x7e7df[_0x858ce(0x137)],{'id':m['id'],'params':_0xad3b9e}],_0x18553e=[{'id':h['id'],'params':{'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'shapeId':_0x208d5e}},...(_0x7c799d=_0x7e7df[_0x858ce(0x1e2)])==null?[]:_0x7c799d,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2d969e,'subUnitId':_0x1cfcd5,'op':_0x9d8d92,'objects':_0x291ce1,'type':r[_0x858ce(0x1c9)][_0x858ce(0x1e5)]}},{'id':r[_0x858ce(0x15f)]['id'],'params':[_0x2d969e]},..._0x7e7df[_0x858ce(0x16a)]];return(0x0,t[_0x858ce(0x1ce)])(_0x4c618e,_0x10460e)?(_0x30be54[_0x858ce(0x147)]({'unitID':_0x2d969e,'undoMutations':_0x18553e,'redoMutations':_0x4c618e}),!0x0):!0x1;}},_={'id':_0x11106f(0x132),'type':t['CommandType'][_0x11106f(0x182)],'handler':(_0x39400a,_0x2fe5c)=>{const _0x18181f=_0x11106f;let {unitId:_0x39f931,subUnitId:_0x444820,shapeType:_0x99691b,shapeId:_0x4e0a6a,shapeData:_0x18dd8c}=_0x2fe5c,_0x2c2188=_0x39400a[_0x18181f(0x188)](p)[_0x18181f(0x13b)](_0x39f931,_0x444820,_0x4e0a6a);return _0x2c2188&&(_0x99691b!==void 0x0&&_0x2c2188[_0x18181f(0x14b)](_0x99691b),_0x18dd8c&&(_0x2c2188==null||_0x2c2188['setShapeData'](_0x18dd8c,!0x0))),!0x0;}},v={'type':t[_0x11106f(0x1b7)][_0x11106f(0x190)],'id':_0x11106f(0x143),'handler':(_0x280715,_0x5a7886)=>{const _0x59e46f=_0x11106f;var _0x1c1714,_0x142a11;let _0x11684e=(0x0,n[_0x59e46f(0x17a)])(_0x280715[_0x59e46f(0x188)](t['IUniverInstanceService']),_0x5a7886);if(!_0x11684e)return!0x1;let _0x485af2=_0x280715[_0x59e46f(0x188)](n['SheetSkeletonService']),{unitId:_0x3d4cdc,subUnitId:_0x5909e6}=_0x11684e,_0x3ddcd0=_0x485af2[_0x59e46f(0x17c)](_0x3d4cdc,_0x5909e6);if(!_0x3ddcd0)return!0x1;let _0x24fa9f=_0x280715[_0x59e46f(0x188)](p),{shapeId:_0x3c1539,shapeType:_0x1af448,shapeData:_0x36b850,position:_0x109a41,width:_0x56cbfc,height:_0x31f153}=_0x5a7886,_0x2fc832=_0x24fa9f[_0x59e46f(0x13b)](_0x3d4cdc,_0x5909e6,_0x3c1539);if(!_0x2fc832)return!0x1;let _0x11865a=_0x280715['get'](t[_0x59e46f(0x121)]),_0x2c49bb=_0x280715[_0x59e46f(0x188)](t['IUndoRedoService']),_0x140650=_0x280715['get'](n['SheetInterceptorService']),_0x508218=_0x280715[_0x59e46f(0x188)](r['ISheetDrawingService']),_0x17ae54={'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'shapeId':_0x3c1539,'shapeType':_0x1af448,'shapeData':_0x36b850},_0x53f932=_0x2fc832[_0x59e46f(0x15d)](),_0xb6d718=_0x2fc832['getShapeData'](),{x:_0x2942f4,y:_0x4b8366}=_0x109a41,_0x5b318d={'from':_0x3ddcd0[_0x59e46f(0x193)](_0x2942f4,_0x4b8366),'to':_0x3ddcd0[_0x59e46f(0x193)](_0x2942f4+_0x56cbfc,_0x4b8366+_0x31f153)},_0x3e6529={'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'drawingId':_0x3c1539,'drawingType':t[_0x59e46f(0x139)][_0x59e46f(0x13a)],'sheetTransform':_0x5b318d,'transform':{'left':_0x2942f4,'top':_0x4b8366,'width':_0x56cbfc,'height':_0x31f153},'data':{'shapeType':_0x1af448,'shapeData':_0x36b850},'axisAlignSheetTransform':_0x5b318d,'allowTransform':!0x0};(0x0,e[_0x59e46f(0x145)])(_0x1af448)&&(_0x3e6529[_0x59e46f(0x14a)][_0x59e46f(0x18f)]=!0x1,_0x3e6529[_0x59e46f(0x14a)][_0x59e46f(0x1e8)]=!0x1,_0x3e6529[_0x59e46f(0x14a)][_0x59e46f(0x1ab)]=!0x1,_0x3e6529[_0x59e46f(0x14a)]['borderEnabled']=!0x1,_0x3e6529[_0x59e46f(0x138)][_0x59e46f(0x1e8)]=!0x1,_0x3e6529[_0x59e46f(0x138)][_0x59e46f(0x1ab)]=!0x1,_0x3e6529[_0x59e46f(0x138)][_0x59e46f(0x1bc)]=!0x1);let {undo:_0xb0a1eb,redo:_0x188a2c,objects:_0x17965c}=_0x508218[_0x59e46f(0x12b)]([_0x3e6529]),_0x115268=_0x140650[_0x59e46f(0x1b9)]({'id':r[_0x59e46f(0x19b)]['id'],'params':{'unitId':_0x3d4cdc,'drawings':[_0x3e6529]}}),_0x500c64=[...(_0x1c1714=_0x115268[_0x59e46f(0x151)])==null?[]:_0x1c1714,{'id':r[_0x59e46f(0x168)]['id'],'params':{'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'op':_0x188a2c,'objects':_0x17965c,'type':r['DrawingApplyType'][_0x59e46f(0x157)]}},{'id':r[_0x59e46f(0x15f)]['id'],'params':[_0x3d4cdc]},..._0x115268[_0x59e46f(0x137)],{'id':_['id'],'params':_0x17ae54}],_0x46c0f5=[...(_0x142a11=_0x115268[_0x59e46f(0x1e2)])==null?[]:_0x142a11,{'id':r[_0x59e46f(0x168)]['id'],'params':{'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'op':_0xb0a1eb,'objects':_0x17965c,'type':r[_0x59e46f(0x1c9)][_0x59e46f(0x157)]}},{'id':r[_0x59e46f(0x15f)]['id'],'params':[_0x3d4cdc]},..._0x115268['undos'],{'id':_['id'],'params':{'unitId':_0x3d4cdc,'subUnitId':_0x5909e6,'shapeType':_0x53f932,'shapeId':_0x3c1539,'shapeData':_0xb6d718}}];return(0x0,t[_0x59e46f(0x1ce)])(_0x500c64,_0x11865a)?(_0x2c49bb[_0x59e46f(0x147)]({'unitID':_0x3d4cdc,'undoMutations':_0x46c0f5,'redoMutations':_0x500c64}),!0x0):!0x1;}},y={'type':t['CommandType'][_0x11106f(0x190)],'id':_0x11106f(0x1d6),'handler':(_0x8c4192,_0x14f7d0)=>{const _0x43b762=_0x11106f;var _0x253ae0,_0x40b221;let _0x2777ae=(0x0,n[_0x43b762(0x17a)])(_0x8c4192[_0x43b762(0x188)](t['IUniverInstanceService']),_0x14f7d0);if(!_0x2777ae)return!0x1;let _0x5d41ba=_0x8c4192[_0x43b762(0x188)](n[_0x43b762(0x179)]),{unitId:_0x1c5b77,subUnitId:_0x377edd}=_0x2777ae,_0x3d887e=_0x5d41ba[_0x43b762(0x1b2)](_0x1c5b77,_0x377edd);if(!_0x3d887e)return!0x1;let _0x415314=_0x8c4192[_0x43b762(0x188)](r[_0x43b762(0x154)]),{shapeId:_0x213f57,flipH:_0x5dae6,flipV:_0xfb76b4}=_0x14f7d0,_0x501ee3=_0x415314[_0x43b762(0x1c2)]({'unitId':_0x1c5b77,'subUnitId':_0x377edd,'drawingId':_0x213f57});if(!_0x501ee3)return!0x1;let _0x31c2d9=_0x8c4192[_0x43b762(0x188)](p)[_0x43b762(0x13b)](_0x1c5b77,_0x377edd,_0x213f57);if(!_0x31c2d9)return!0x1;let _0x290185=_0x8c4192[_0x43b762(0x188)](t['ICommandService']),_0x1941cb=_0x8c4192[_0x43b762(0x188)](t[_0x43b762(0x149)]),_0xffadaf=_0x8c4192['get'](n[_0x43b762(0x17f)]),_0x236a27={..._0x501ee3[_0x43b762(0x138)]};_0x5dae6!==void 0x0&&(_0x236a27['flipX']=!_0x236a27[_0x43b762(0x163)]),_0xfb76b4!==void 0x0&&(_0x236a27['flipY']=!_0x236a27[_0x43b762(0x186)]);let _0x416e74=(0x0,r[_0x43b762(0x1d5)])(_0x236a27,_0x3d887e),_0x2d7fc7=(0x0,r['transformToAxisAlignPosition'])(_0x236a27,_0x3d887e),_0x5c21eb=_0x31c2d9['getShapeType'](),_0x465d33=_0x31c2d9[_0x43b762(0x191)](),_0x3dfcae={'unitId':_0x1c5b77,'subUnitId':_0x377edd,'drawingId':_0x213f57,'drawingType':t[_0x43b762(0x139)]['DRAWING_SHAPE'],'sheetTransform':_0x416e74,'transform':_0x236a27,'data':{'shapeType':_0x5c21eb,'shapeData':_0x465d33},'axisAlignSheetTransform':_0x2d7fc7,'allowTransform':!0x0},{undo:_0x17cc97,redo:_0x3d81c5,objects:_0x349d93}=_0x415314['getBatchUpdateOp']([_0x3dfcae]),_0x1351e9=_0xffadaf['onCommandExecute']({'id':r[_0x43b762(0x19b)]['id'],'params':{'unitId':_0x1c5b77,'drawings':[_0x3dfcae]}}),_0x357cfe=[...(_0x253ae0=_0x1351e9[_0x43b762(0x151)])==null?[]:_0x253ae0,{'id':r[_0x43b762(0x168)]['id'],'params':{'unitId':_0x1c5b77,'subUnitId':_0x377edd,'op':_0x3d81c5,'objects':_0x349d93,'type':r[_0x43b762(0x1c9)][_0x43b762(0x157)]}},{'id':r[_0x43b762(0x15f)]['id'],'params':[_0x1c5b77]},..._0x1351e9[_0x43b762(0x137)]],_0x200d9d=[...(_0x40b221=_0x1351e9['preUndos'])==null?[]:_0x40b221,{'id':r[_0x43b762(0x168)]['id'],'params':{'unitId':_0x1c5b77,'subUnitId':_0x377edd,'op':_0x17cc97,'objects':_0x349d93,'type':r[_0x43b762(0x1c9)][_0x43b762(0x157)]}},{'id':r[_0x43b762(0x15f)]['id'],'params':[_0x1c5b77]},..._0x1351e9[_0x43b762(0x16a)]];if((0x0,e[_0x43b762(0x145)])(_0x5c21eb)){let _0x516be9=_0x31c2d9[_0x43b762(0x172)]();if(_0x516be9){let _0x1f4fea={..._0x516be9};_0x1f4fea[_0x43b762(0x152)]=void 0x0,_0x1f4fea['to']=void 0x0,_0x357cfe[_0x43b762(0x176)]({'id':_['id'],'params':{'unitId':_0x1c5b77,'subUnitId':_0x377edd,'shapeId':_0x213f57,'shapeType':_0x5c21eb,'shapeData':{'relation':_0x1f4fea}}}),_0x200d9d[_0x43b762(0x176)]({'id':_['id'],'params':{'unitId':_0x1c5b77,'subUnitId':_0x377edd,'shapeId':_0x213f57,'shapeType':_0x5c21eb,'shapeData':{'relation':_0x516be9}}});}}return(0x0,t[_0x43b762(0x1ce)])(_0x357cfe,_0x290185)?(_0x1941cb[_0x43b762(0x147)]({'unitID':_0x1c5b77,'undoMutations':_0x200d9d,'redoMutations':_0x357cfe}),!0x0):!0x1;}},b={'type':t[_0x11106f(0x1b7)][_0x11106f(0x190)],'id':_0x11106f(0x160),'handler':(_0x1473d9,_0x3cea71)=>{const _0x2a2e3c=_0x11106f;var _0x4e9520,_0x4e805b;let _0x3c65f7=(0x0,n[_0x2a2e3c(0x17a)])(_0x1473d9[_0x2a2e3c(0x188)](t[_0x2a2e3c(0x166)]),_0x3cea71);if(!_0x3c65f7)return!0x1;let _0x570252=_0x1473d9['get'](n[_0x2a2e3c(0x179)]),{unitId:_0x3624bd,subUnitId:_0x783d0}=_0x3c65f7,_0x1c676d=_0x570252[_0x2a2e3c(0x1b2)](_0x3624bd,_0x783d0);if(!_0x1c676d)return!0x1;let _0x7a22a6=_0x1473d9[_0x2a2e3c(0x188)](r[_0x2a2e3c(0x154)]),{shapeId:_0x5c0194,rotate:_0x577864}=_0x3cea71,_0x2dc7f0=_0x7a22a6[_0x2a2e3c(0x1c2)]({'unitId':_0x3624bd,'subUnitId':_0x783d0,'drawingId':_0x5c0194});if(!_0x2dc7f0)return!0x1;let _0x1efc19=_0x1473d9[_0x2a2e3c(0x188)](p)['getShapeModel'](_0x3624bd,_0x783d0,_0x5c0194);if(!_0x1efc19)return!0x1;let _0x11df2e=_0x1473d9[_0x2a2e3c(0x188)](t['ICommandService']),_0x57c29f=_0x1473d9[_0x2a2e3c(0x188)](t[_0x2a2e3c(0x149)]),_0x393060=_0x1473d9[_0x2a2e3c(0x188)](n[_0x2a2e3c(0x17f)]),_0x11d7f4={..._0x2dc7f0[_0x2a2e3c(0x138)]};_0x577864!==void 0x0&&(_0x11d7f4[_0x2a2e3c(0x18a)]=(_0x11d7f4['angle']||0x0)+_0x577864);let _0x40e4c2=(0x0,r['transformToDrawingPosition'])(_0x11d7f4,_0x1c676d),_0x16005d=(0x0,r[_0x2a2e3c(0x1ae)])(_0x11d7f4,_0x1c676d),_0x56b41b=_0x1efc19['getShapeType'](),_0x3b924c=_0x1efc19[_0x2a2e3c(0x191)](),_0x318980={'unitId':_0x3624bd,'subUnitId':_0x783d0,'drawingId':_0x5c0194,'drawingType':t['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x40e4c2,'transform':_0x11d7f4,'data':{'shapeType':_0x56b41b,'shapeData':_0x3b924c},'axisAlignSheetTransform':_0x16005d,'allowTransform':!0x0},{undo:_0x5a9ff0,redo:_0x37513f,objects:_0x467684}=_0x7a22a6['getBatchUpdateOp']([_0x318980]),_0x251e43=_0x393060[_0x2a2e3c(0x1b9)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x3624bd,'drawings':[_0x318980]}}),_0x1efc7c=[...(_0x4e9520=_0x251e43[_0x2a2e3c(0x151)])==null?[]:_0x4e9520,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3624bd,'subUnitId':_0x783d0,'op':_0x37513f,'objects':_0x467684,'type':r[_0x2a2e3c(0x1c9)][_0x2a2e3c(0x157)]}},{'id':r[_0x2a2e3c(0x15f)]['id'],'params':[_0x3624bd]},..._0x251e43['redos']],_0x8e06d9=[...(_0x4e805b=_0x251e43[_0x2a2e3c(0x1e2)])==null?[]:_0x4e805b,{'id':r[_0x2a2e3c(0x168)]['id'],'params':{'unitId':_0x3624bd,'subUnitId':_0x783d0,'op':_0x5a9ff0,'objects':_0x467684,'type':r[_0x2a2e3c(0x1c9)][_0x2a2e3c(0x157)]}},{'id':r[_0x2a2e3c(0x15f)]['id'],'params':[_0x3624bd]},..._0x251e43[_0x2a2e3c(0x16a)]];return(0x0,t[_0x2a2e3c(0x1ce)])(_0x1efc7c,_0x11df2e)?(_0x57c29f[_0x2a2e3c(0x147)]({'unitID':_0x3624bd,'undoMutations':_0x8e06d9,'redoMutations':_0x1efc7c}),!0x0):!0x1;}},x={'type':t[_0x11106f(0x1b7)][_0x11106f(0x190)],'id':_0x11106f(0x1a3),'handler':(_0x590a49,_0x3de7b6)=>{const _0x588d83=_0x11106f;var _0x1f91ec,_0x363889,_0x10fd7b,_0x10c865;let _0x24381f=(0x0,n['getSheetCommandTarget'])(_0x590a49[_0x588d83(0x188)](t[_0x588d83(0x166)]),_0x3de7b6);if(!_0x24381f)return!0x1;let _0x760438=_0x590a49[_0x588d83(0x188)](n['SheetSkeletonService']),{unitId:_0xb8e12c,subUnitId:_0x3bff79}=_0x24381f,_0x200d3b=_0x760438['getSkeleton'](_0xb8e12c,_0x3bff79);if(!_0x200d3b)return!0x1;let _0x539f3d=_0x590a49['get'](r['ISheetDrawingService']),{connectorShapeId:_0x780bf5,width:_0x549c2f,height:_0x1859e4,left:_0x36f847,top:_0x3dd627,flipX:_0x43ffa7,flipY:_0xc3cea7,rotation:_0x262872,oldAdjustValues:_0x5d0340,newAdjustValues:_0x4757de,oldLineType:_0x1fb172,newLineType:_0x198937,oldRelation:_0x501a6a,newRelation:_0x24ff0f}=_0x3de7b6,_0xabb810=_0x539f3d[_0x588d83(0x1c2)]({'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'drawingId':_0x780bf5});if(!_0xabb810)return!0x1;let _0x190a81=_0x590a49[_0x588d83(0x188)](p)[_0x588d83(0x13b)](_0xb8e12c,_0x3bff79,_0x780bf5);if(!_0x190a81)return!0x1;let _0x200a72=_0x590a49[_0x588d83(0x188)](t[_0x588d83(0x121)]),_0x30c8a3=_0x590a49[_0x588d83(0x188)](t['IUndoRedoService']),_0xa31c78=_0x590a49[_0x588d83(0x188)](n[_0x588d83(0x17f)]),_0x341451={..._0xabb810[_0x588d83(0x138)],'width':_0x549c2f,'height':_0x1859e4,'left':_0x36f847,'top':_0x3dd627,'flipX':_0x43ffa7,'flipY':_0xc3cea7,'angle':(_0x1f91ec=_0x262872==null?(_0x363889=_0xabb810[_0x588d83(0x138)])==null?void 0x0:_0x363889[_0x588d83(0x18a)]:_0x262872)==null?0x0:_0x1f91ec},_0x4e1b4c=(0x0,r[_0x588d83(0x1d5)])(_0x341451,_0x200d3b),_0x188164=(0x0,r[_0x588d83(0x1ae)])(_0x341451,_0x200d3b),_0x5cc27c=_0x190a81[_0x588d83(0x15d)](),_0xc13584=_0x190a81['getShapeData'](),_0x19b0ff={'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'drawingId':_0x780bf5,'drawingType':t[_0x588d83(0x139)][_0x588d83(0x13a)],'sheetTransform':_0x4e1b4c,'transform':_0x341451,'data':{'shapeType':_0x198937||_0x1fb172||_0x5cc27c,'shapeData':{..._0xc13584,'adjustValues':_0x4757de||_0x5d0340||(_0xc13584==null?void 0x0:_0xc13584[_0x588d83(0x177)]),'relation':_0x24ff0f||_0x501a6a||(_0xc13584==null?void 0x0:_0xc13584[_0x588d83(0x194)])}},'axisAlignSheetTransform':_0x188164,'allowTransform':!0x0},{undo:_0x4ee9fd,redo:_0x16fa6e,objects:_0x2e76f4}=_0x539f3d[_0x588d83(0x12b)]([_0x19b0ff]),_0x2f9b53=_0xa31c78['onCommandExecute']({'id':r[_0x588d83(0x19b)]['id'],'params':{'unitId':_0xb8e12c,'drawings':[_0x19b0ff]}}),_0x10ed49=[...(_0x10fd7b=_0x2f9b53[_0x588d83(0x151)])==null?[]:_0x10fd7b,{'id':r[_0x588d83(0x168)]['id'],'params':{'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'op':_0x16fa6e,'objects':_0x2e76f4,'type':r[_0x588d83(0x1c9)][_0x588d83(0x157)]}},{'id':r[_0x588d83(0x15f)]['id'],'params':[_0xb8e12c]},..._0x2f9b53[_0x588d83(0x137)],{'id':_['id'],'params':{'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'shapeId':_0x780bf5,'shapeType':_0x198937,'shapeData':{'adjustValues':_0x4757de,'relation':_0x24ff0f}}}],_0x34e53d=[...(_0x10c865=_0x2f9b53[_0x588d83(0x1e2)])==null?[]:_0x10c865,{'id':r[_0x588d83(0x168)]['id'],'params':{'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'op':_0x4ee9fd,'objects':_0x2e76f4,'type':r[_0x588d83(0x1c9)][_0x588d83(0x157)]}},{'id':r[_0x588d83(0x15f)]['id'],'params':[_0xb8e12c]},..._0x2f9b53[_0x588d83(0x16a)],{'id':_['id'],'params':{'unitId':_0xb8e12c,'subUnitId':_0x3bff79,'shapeId':_0x780bf5,'shapeType':_0x5cc27c,'shapeData':{..._0xc13584,'adjustValues':_0x5d0340||(_0xc13584==null?void 0x0:_0xc13584[_0x588d83(0x177)]),'relation':_0x501a6a||(_0xc13584==null?void 0x0:_0xc13584[_0x588d83(0x194)])}}}];return(0x0,t['sequenceExecute'])(_0x10ed49,_0x200a72)?(_0x30c8a3['pushUndoRedo']({'unitID':_0xb8e12c,'undoMutations':_0x34e53d,'redoMutations':_0x10ed49}),!0x0):!0x1;}},S={'type':t[_0x11106f(0x1b7)][_0x11106f(0x190)],'id':_0x11106f(0x189),'handler':(_0x11d17a,_0x100832)=>{const _0x2481b6=_0x11106f;var _0x2b8d31,_0x2c1389;let _0xe30665=(0x0,n['getSheetCommandTarget'])(_0x11d17a[_0x2481b6(0x188)](t[_0x2481b6(0x166)]),_0x100832);if(!_0xe30665)return!0x1;let _0x300e86=_0x11d17a[_0x2481b6(0x188)](n['SheetSkeletonService']),{unitId:_0x30822f,subUnitId:_0x8153c1}=_0xe30665,_0x26b3bc=_0x300e86['getSkeleton'](_0x30822f,_0x8153c1);if(!_0x26b3bc)return!0x1;let _0xb55d5c=_0x11d17a[_0x2481b6(0x188)](r[_0x2481b6(0x154)]),{shapeId:_0xa3c90,width:_0x1c6461,height:_0x5cd0b9,left:_0x29fea9,top:_0x26bee9,flipX:_0x1fd8f0,flipY:_0x32097f,angle:_0x28d285,oldAdjustValues:_0x63ca8e,newAdjustValues:_0x263555,oldLineType:_0x2ca591,newLineType:_0x48bd5b}=_0x100832,_0x434608=_0xb55d5c[_0x2481b6(0x1c2)]({'unitId':_0x30822f,'subUnitId':_0x8153c1,'drawingId':_0xa3c90});if(!_0x434608)return!0x1;let _0x4635a8=_0x11d17a[_0x2481b6(0x188)](p)['getShapeModel'](_0x30822f,_0x8153c1,_0xa3c90);if(!_0x4635a8)return!0x1;let _0x1af205=_0x11d17a['get'](t[_0x2481b6(0x121)]),_0x318e97=_0x11d17a['get'](t[_0x2481b6(0x149)]),_0x5b2a8c=_0x11d17a[_0x2481b6(0x188)](n[_0x2481b6(0x17f)]),_0x31b56d={..._0x434608[_0x2481b6(0x138)],'width':_0x1c6461,'height':_0x5cd0b9,'left':_0x29fea9,'top':_0x26bee9,'flipX':_0x1fd8f0,'flipY':_0x32097f,'angle':_0x28d285},_0x2aac76=(0x0,r[_0x2481b6(0x1d5)])(_0x31b56d,_0x26b3bc),_0x53a6c0=(0x0,r[_0x2481b6(0x1ae)])(_0x31b56d,_0x26b3bc),_0x3d4980=_0x4635a8[_0x2481b6(0x15d)](),_0x4dfdbd=_0x4635a8['getShapeData'](),_0x22cd02={'unitId':_0x30822f,'subUnitId':_0x8153c1,'drawingId':_0xa3c90,'drawingType':t[_0x2481b6(0x139)][_0x2481b6(0x13a)],'sheetTransform':_0x2aac76,'transform':_0x31b56d,'data':{'shapeType':_0x48bd5b||_0x2ca591||_0x3d4980,'shapeData':{..._0x4dfdbd,'adjustValues':_0x263555||_0x63ca8e||(_0x4dfdbd==null?void 0x0:_0x4dfdbd[_0x2481b6(0x177)])}},'axisAlignSheetTransform':_0x53a6c0,'allowTransform':!0x0},{undo:_0x218caa,redo:_0x16486f,objects:_0x436d24}=_0xb55d5c[_0x2481b6(0x12b)]([_0x22cd02]),_0x1f5a21=_0x5b2a8c[_0x2481b6(0x1b9)]({'id':r[_0x2481b6(0x19b)]['id'],'params':{'unitId':_0x30822f,'drawings':[_0x22cd02]}}),_0x5da454=[...(_0x2b8d31=_0x1f5a21['preRedos'])==null?[]:_0x2b8d31,{'id':r[_0x2481b6(0x168)]['id'],'params':{'unitId':_0x30822f,'subUnitId':_0x8153c1,'op':_0x16486f,'objects':_0x436d24,'type':r[_0x2481b6(0x1c9)][_0x2481b6(0x157)]}},{'id':r[_0x2481b6(0x15f)]['id'],'params':[_0x30822f]},..._0x1f5a21[_0x2481b6(0x137)],{'id':_['id'],'params':{'unitId':_0x30822f,'subUnitId':_0x8153c1,'shapeId':_0xa3c90,'shapeType':_0x48bd5b,'shapeData':{'adjustValues':_0x263555}}}],_0xdaa3a2=[...(_0x2c1389=_0x1f5a21['preUndos'])==null?[]:_0x2c1389,{'id':r[_0x2481b6(0x168)]['id'],'params':{'unitId':_0x30822f,'subUnitId':_0x8153c1,'op':_0x218caa,'objects':_0x436d24,'type':r[_0x2481b6(0x1c9)]['UPDATE']}},{'id':r[_0x2481b6(0x15f)]['id'],'params':[_0x30822f]},..._0x1f5a21[_0x2481b6(0x16a)],{'id':_['id'],'params':{'unitId':_0x30822f,'subUnitId':_0x8153c1,'shapeId':_0xa3c90,'shapeType':_0x3d4980,'shapeData':{..._0x4dfdbd,'adjustValues':_0x63ca8e||(_0x4dfdbd==null?void 0x0:_0x4dfdbd[_0x2481b6(0x177)])}}}];return(0x0,t[_0x2481b6(0x1ce)])(_0x5da454,_0x1af205)?(_0x318e97[_0x2481b6(0x147)]({'unitID':_0x30822f,'undoMutations':_0xdaa3a2,'redoMutations':_0x5da454}),!0x0):!0x1;}},C={'id':_0x11106f(0x1c4),'type':t['CommandType']['MUTATION'],'handler':(_0x5f56c7,_0x2221ad)=>{const _0x89c956=_0x11106f;let {unitId:_0x19de5a,subUnitId:_0x2a5ed3,shapeType:_0x458dae,shapeId:_0x13531f,shapeData:_0x1d3eea}=_0x2221ad,_0x3d4fc3=_0x5f56c7[_0x89c956(0x188)](p)[_0x89c956(0x13b)](_0x19de5a,_0x2a5ed3,_0x13531f);return _0x3d4fc3&&(_0x3d4fc3[_0x89c956(0x14b)](_0x458dae),_0x1d3eea&&(_0x3d4fc3==null||_0x3d4fc3[_0x89c956(0x16b)](_0x1d3eea))),!0x0;}},w={'id':_0x11106f(0x13c),'type':t[_0x11106f(0x1b7)]['COMMAND'],'handler':(_0x29f322,_0x59daf0)=>{const _0x341b28=_0x11106f;if(!_0x59daf0)return!0x1;let _0x1bd485=_0x29f322[_0x341b28(0x188)](t['ICommandService']),_0x2caab2=_0x29f322[_0x341b28(0x188)](p),_0x30f428=_0x29f322[_0x341b28(0x188)](t['IUndoRedoService']),_0x3074ba=[],_0x36a340=[],{unitId:_0x48804e,subUnitId:_0x58f67b,shapeId:_0x5f5408,shapeType:_0x26f602,shapeData:_0x366a13}=_0x59daf0,_0x282420=_0x2caab2[_0x341b28(0x13b)](_0x48804e,_0x58f67b,_0x5f5408);if(_0x282420){let _0x479fc4=_0x282420[_0x341b28(0x15d)](),_0x371231=Object[_0x341b28(0x170)]({},_0x282420[_0x341b28(0x191)]()),_0x195237={'unitId':_0x48804e,'subUnitId':_0x58f67b,'shapeId':_0x5f5408,'shapeType':_0x26f602,'shapeData':_0x366a13},_0x55ec85={'unitId':_0x48804e,'subUnitId':_0x58f67b,'shapeId':_0x5f5408,'shapeType':_0x479fc4,'shapeData':_0x371231};return _0x3074ba[_0x341b28(0x176)]({'id':C['id'],'params':_0x195237}),_0x36a340[_0x341b28(0x176)]({'id':C['id'],'params':_0x55ec85}),_0x3074ba[_0x341b28(0x1a4)](_0x22a89d=>_0x1bd485[_0x341b28(0x1cb)](_0x22a89d['id'],_0x22a89d[_0x341b28(0x171)]))&&_0x30f428[_0x341b28(0x147)]({'unitID':_0x48804e,'redoMutations':[..._0x3074ba],'undoMutations':[..._0x36a340]}),!0x0;}return!0x1;}};function _0x25d2(_0x404923,_0x2654fa){_0x404923=_0x404923-0x11c;const _0x5bf766=_0x5bf7();let _0x25d2a1=_0x5bf766[_0x404923];return _0x25d2a1;}var T=_0x11106f(0x1d2),E=_0x11106f(0x19c);const D='sheets-shape.config';Symbol(D);const O={};let k=class extends t['Disposable']{constructor(_0x13377b,_0x48199d,_0x9f5e40,_0x9ed878,_0x3aa545){const _0x3d7b66=_0x11106f;super(),this[_0x3d7b66(0x155)]=_0x13377b,this[_0x3d7b66(0x15b)]=_0x48199d,this[_0x3d7b66(0x126)]=_0x9f5e40,this[_0x3d7b66(0x135)]=_0x9ed878,this['_drawingManagerService']=_0x3aa545,this[_0x3d7b66(0x12c)](),this['_initCommandInterceptor']();}['_initCommands'](){const _0x53a6e7=_0x11106f;[g,v,y,b,x,S,m,h,C,_]['forEach'](_0xa683c6=>this[_0x53a6e7(0x183)](this['_commandService'][_0x53a6e7(0x1af)](_0xa683c6)));}[_0x11106f(0x1da)](){const _0x33ae20=_0x11106f;this[_0x33ae20(0x183)](this[_0x33ae20(0x15b)][_0x33ae20(0x184)]({'getMutations':_0x508cb7=>{const _0x1f568d=_0x33ae20;if(_0x508cb7['id']===r['RemoveSheetDrawingCommand']['id']){let {drawings:_0x8448f7}=_0x508cb7[_0x1f568d(0x171)],_0x5bcf3a=_0x8448f7[_0x1f568d(0x1b1)](_0x5e2278=>_0x5e2278[_0x1f568d(0x1e3)]===t['DrawingTypeEnum'][_0x1f568d(0x13a)]);if(_0x5bcf3a[_0x1f568d(0x12d)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4165fd=[],_0x5df858=[];return _0x5bcf3a[_0x1f568d(0x1a8)](_0x58f05f=>{const _0x5364a2=_0x1f568d;let {unitId:_0x180b17,subUnitId:_0x323766,drawingId:_0x19d666}=_0x58f05f,_0x22fcc5=this[_0x5364a2(0x135)][_0x5364a2(0x13b)](_0x180b17,_0x323766,_0x19d666);if(!_0x22fcc5)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x22fcc5);_0x4165fd['push']({'id':h['id'],'params':{'unitId':_0x180b17,'subUnitId':_0x323766,'shapeId':_0x19d666}}),_0x5df858['push']({'id':m['id'],'params':{'unitId':_0x180b17,'subUnitId':_0x323766,'shapeId':_0x19d666,'shapeType':_0x22fcc5[_0x5364a2(0x15d)](),'shapeData':_0x22fcc5[_0x5364a2(0x191)]()}});let _0x499ad9=this[_0x5364a2(0x135)]['getBasicShapeRelation'](_0x180b17,_0x323766,_0x19d666);if(_0x499ad9)for(let _0xeaef04 of _0x499ad9){let _0x2d3c6c=_0xeaef04[_0x5364a2(0x140)],_0x157123=_0xeaef04['isFrom'],_0x484fcb=_0x157123?{'from':void 0x0}:{'to':void 0x0},_0x53360a=_0x157123?{'from':{'shapeId':_0xeaef04[_0x5364a2(0x15a)],'cxnIndex':_0xeaef04[_0x5364a2(0x11d)]}}:{'to':{'shapeId':_0xeaef04['shapeId'],'cxnIndex':_0xeaef04[_0x5364a2(0x11d)]}};_0x4165fd[_0x5364a2(0x176)]({'id':_['id'],'params':{'unitId':_0x180b17,'subUnitId':_0x323766,'shapeId':_0x2d3c6c,'shapeData':{'relation':_0x484fcb}}}),_0x5df858[_0x5364a2(0x176)]({'id':_['id'],'params':{'unitId':_0x180b17,'subUnitId':_0x323766,'shapeId':_0x2d3c6c,'shapeData':{'relation':_0x53360a}}});}}),{'preRedos':_0x4165fd,'redos':[],'preUndos':[],'undos':_0x5df858};}if(_0x508cb7['id']===r[_0x1f568d(0x19b)]['id']){let {drawings:_0x3ae549}=_0x508cb7[_0x1f568d(0x171)],_0x3cfe09=_0x3ae549[_0x1f568d(0x1b1)](_0x3510b0=>_0x3510b0[_0x1f568d(0x1e3)]===t['DrawingTypeEnum'][_0x1f568d(0x13a)]);if(_0x3cfe09[_0x1f568d(0x12d)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x51f6b1=[],_0x4f6416=[];for(let _0x52c07e of _0x3cfe09){let {unitId:_0x4bf737,subUnitId:_0x59d8a1,drawingId:_0x1b275c,transform:_0x157c6a}=_0x52c07e;if(!_0x4bf737||!_0x59d8a1||!_0x1b275c||!_0x157c6a)continue;let _0x2f6d3a=this[_0x1f568d(0x135)][_0x1f568d(0x13b)](_0x4bf737,_0x59d8a1,_0x1b275c);if(!_0x2f6d3a)throw TypeError(_0x1f568d(0x128)+_0x2f6d3a);if((0x0,e[_0x1f568d(0x145)])(_0x2f6d3a[_0x1f568d(0x15d)]())){let _0x3bd942=this['_sheetsShapeService'][_0x1f568d(0x1c7)](_0x4bf737,_0x59d8a1,_0x1b275c);_0x3bd942&&(_0x51f6b1['push']({'id':_['id'],'params':{'unitId':_0x4bf737,'subUnitId':_0x59d8a1,'shapeId':_0x1b275c,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4f6416[_0x1f568d(0x176)]({'id':_['id'],'params':{'unitId':_0x4bf737,'subUnitId':_0x59d8a1,'shapeId':_0x1b275c,'shapeData':{'relation':_0x3bd942}}}));}else{let _0x4eaeeb=this[_0x1f568d(0x135)][_0x1f568d(0x1e6)](_0x4bf737,_0x59d8a1,_0x1b275c);if(_0x4eaeeb&&_0x4eaeeb['length']>0x0)for(let _0x12d79f of _0x4eaeeb){let _0x8b33d1=_0x12d79f['lineShapeId'],_0x5a9aeb=_0x12d79f[_0x1f568d(0x16e)],_0xa1f8ad=this[_0x1f568d(0x135)]['getShapeModel'](_0x4bf737,_0x59d8a1,_0x8b33d1);if(!_0xa1f8ad)continue;let _0x3411e6=_0xa1f8ad[_0x1f568d(0x1d4)](),_0x3e9596=_0xa1f8ad[_0x1f568d(0x167)]();_0x3411e6&&_0x3e9596?this[_0x1f568d(0x1ba)](_0x4bf737,_0x59d8a1,_0x8b33d1,_0xa1f8ad,_0x3411e6,_0x3e9596,_0x51f6b1,_0x4f6416,_0x1b275c,_0x157c6a):this[_0x1f568d(0x158)](_0x4bf737,_0x59d8a1,_0x8b33d1,_0xa1f8ad,_0x5a9aeb?_0x3411e6:_0x3e9596,_0x5a9aeb,_0x51f6b1,_0x4f6416,_0x1b275c,_0x157c6a);}}}return{'preRedos':[],'redos':_0x51f6b1,'preUndos':_0x4f6416,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x11106f(0x18c)](_0x482da9,_0x1ec3f1,_0x739742,_0x2af3ad,_0x8a3477){const _0x44d9f3=_0x11106f;if(!_0x1ec3f1||!_0x739742)return null;let {shapeId:_0x4c8a9e,cxnIndex:_0x170585}=_0x482da9,_0x1ac025=this[_0x44d9f3(0x135)][_0x44d9f3(0x13b)](_0x1ec3f1,_0x739742,_0x4c8a9e);if(!_0x1ac025)return null;let _0x33195b=this[_0x44d9f3(0x141)][_0x44d9f3(0x1c2)]({'unitId':_0x1ec3f1,'subUnitId':_0x739742,'drawingId':_0x4c8a9e});if(!(_0x33195b!=null&&_0x33195b[_0x44d9f3(0x138)]))return null;let {left:_0x5e4da5=0x0,top:_0xb995b3=0x0,width:_0x307bca=0x0,height:_0x49dc24=0x0,flipX:_0xeb038=!0x1,flipY:_0x438ac8=!0x1,angle:_0x364095}=_0x33195b['transform'];if(_0x8a3477&&_0x2af3ad===_0x4c8a9e){var _0x5713ae,_0x333525,_0x39c99f,_0x585987,_0x29ea35,_0x50da4a,_0x5600b6;_0x5e4da5=(_0x5713ae=_0x8a3477['left'])==null?_0x5e4da5:_0x5713ae,_0xb995b3=(_0x333525=_0x8a3477[_0x44d9f3(0x134)])==null?_0xb995b3:_0x333525,_0x307bca=(_0x39c99f=_0x8a3477[_0x44d9f3(0x1b3)])==null?_0x307bca:_0x39c99f,_0x49dc24=(_0x585987=_0x8a3477[_0x44d9f3(0x1c0)])==null?_0x49dc24:_0x585987,_0xeb038=(_0x29ea35=_0x8a3477[_0x44d9f3(0x163)])==null?_0xeb038:_0x29ea35,_0x438ac8=(_0x50da4a=_0x8a3477[_0x44d9f3(0x186)])==null?_0x438ac8:_0x50da4a,_0x364095=(_0x5600b6=_0x8a3477[_0x44d9f3(0x18a)])==null?_0x364095:_0x5600b6;}_0x1ac025[_0x44d9f3(0x13f)]({'width':_0x307bca,'height':_0x49dc24});let _0x5a077a=_0x1ac025[_0x44d9f3(0x1d0)]()[_0x44d9f3(0x16d)](_0x434924=>_0x434924[_0x44d9f3(0x17e)]===_0x170585);if(!_0x5a077a)return null;let _0x1a9241=_0xeb038?_0x307bca-_0x5a077a['x']:_0x5a077a['x'],_0x3caf6f=_0x438ac8?_0x49dc24-_0x5a077a['y']:_0x5a077a['y'];if(_0x364095!==0x0&&_0x364095!=null){let _0x5f4e99=_0x364095*Math['PI']/0xb4,_0x225fcc=Math['cos'](_0x5f4e99),_0x1d3e46=Math[_0x44d9f3(0x1d8)](_0x5f4e99),_0x32e3c0=_0x307bca/0x2,_0x5b2b2b=_0x49dc24/0x2,_0x463b62=_0x1a9241-_0x32e3c0,_0x5afcb4=_0x3caf6f-_0x5b2b2b;_0x1a9241=_0x32e3c0+_0x463b62*_0x225fcc-_0x5afcb4*_0x1d3e46,_0x3caf6f=_0x5b2b2b+_0x463b62*_0x1d3e46+_0x5afcb4*_0x225fcc;}_0x1a9241+=_0x5e4da5,_0x3caf6f+=_0xb995b3;let _0x415978=_0x5a077a[_0x44d9f3(0x173)]/0xea60;_0xeb038&&(_0x415978=0xb4-_0x415978),_0x438ac8&&(_0x415978=-_0x415978),_0x415978+=_0x364095||0x0,_0x415978=(_0x415978%0x168+0x168)%0x168;let _0x53a17b=(0x0,e[_0x44d9f3(0x192)])({'left':_0x5e4da5,'top':_0xb995b3,'width':_0x307bca,'height':_0x49dc24},_0x364095||0x0);return{'point':{'x':_0x1a9241,'y':_0x3caf6f},'angle':_0x415978,'bounds':_0x53a17b};}[_0x11106f(0x1ba)](_0x1f30b8,_0x4110ae,_0x284aba,_0x1808a4,_0x2bbd09,_0x1bb094,_0xfb58cc,_0x4a266d,_0x491cfb,_0x1b2d88){const _0x189907=_0x11106f;let _0x2cb991=this['_sheetSkeletonService'][_0x189907(0x1b2)](_0x1f30b8,_0x4110ae);if(!_0x2cb991)return;let _0x42f154=_0x1808a4[_0x189907(0x172)](),_0x4c5bb5=_0x1808a4[_0x189907(0x1ad)](),_0x477208={},_0x328fb8={};_0x4c5bb5['forEach'](_0x4b317d=>{const _0x1e234e=_0x189907;let _0x163048=_0x1808a4[_0x1e234e(0x11f)](_0x4b317d);_0x328fb8[_0x4b317d]=_0x163048==null?0x0:_0x163048;});let _0x305dab=this[_0x189907(0x18c)](_0x2bbd09,_0x1f30b8,_0x4110ae,_0x491cfb,_0x1b2d88),_0x2720e2=this[_0x189907(0x18c)](_0x1bb094,_0x1f30b8,_0x4110ae,_0x491cfb,_0x1b2d88);if(_0x305dab&&_0x2720e2){let _0x4ddb5e=_0x1808a4[_0x189907(0x15d)](),_0xa4fcfe=(0x0,e[_0x189907(0x1a9)])(_0x305dab,_0x2720e2,_0x4ddb5e),_0x45b862=_0x4ddb5e;if(_0xa4fcfe){let _0x3fcc2b=(0x0,e[_0x189907(0x130)])(_0xa4fcfe,_0x1808a4[_0x189907(0x15d)]()),_0x371cf3=this['_drawingManagerService'][_0x189907(0x120)](_0x1f30b8,_0x4110ae);if(_0x371cf3&&_0x371cf3[_0x284aba]){let _0x31935f=_0x371cf3[_0x284aba];_0x45b862=_0x3fcc2b[_0x189907(0x196)];for(let [_0x14ddcc,_0xa91759]of Object[_0x189907(0x148)](_0x3fcc2b[_0x189907(0x177)]))_0x477208[_0x14ddcc]=_0xa91759;let _0x200c13={..._0x31935f[_0x189907(0x138)],'width':_0x3fcc2b[_0x189907(0x1b4)][_0x189907(0x1b3)],'height':_0x3fcc2b['worldRect'][_0x189907(0x1c0)],'left':_0x3fcc2b[_0x189907(0x1b4)][_0x189907(0x1db)],'top':_0x3fcc2b[_0x189907(0x1b4)][_0x189907(0x134)],'flipX':_0x3fcc2b[_0x189907(0x1b4)]['flipX'],'flipY':_0x3fcc2b['worldRect'][_0x189907(0x186)],'angle':_0x3fcc2b[_0x189907(0x129)]},_0x3261d6=(0x0,r[_0x189907(0x1d5)])(_0x200c13,_0x2cb991),_0x478ffd=(0x0,r['transformToAxisAlignPosition'])(_0x200c13,_0x2cb991),_0x510ea4={'unitId':_0x1f30b8,'subUnitId':_0x4110ae,'drawingType':t['DrawingTypeEnum'][_0x189907(0x13a)],'drawingId':_0x284aba,'transform':_0x200c13,'sheetTransform':_0x3261d6,'axisAlignSheetTransform':_0x478ffd},{unitId:_0x91cfd7,subUnitId:_0x38a8cb,undo:_0x22762a,redo:_0x49dba3,objects:_0xecf8e7}=this[_0x189907(0x141)][_0x189907(0x12b)]([_0x510ea4]);_0xfb58cc[_0x189907(0x176)]({'id':r[_0x189907(0x168)]['id'],'params':{'unitId':_0x91cfd7,'subUnitId':_0x38a8cb,'op':_0x49dba3,'objects':_0xecf8e7,'type':r['DrawingApplyType'][_0x189907(0x157)]}}),_0x4a266d['push']({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x91cfd7,'subUnitId':_0x38a8cb,'op':_0x22762a,'objects':_0xecf8e7,'type':r[_0x189907(0x1c9)][_0x189907(0x157)]}});}_0x1808a4['removeLinePoints']();}_0xfb58cc[_0x189907(0x176)]({'id':_['id'],'params':{'unitId':_0x1f30b8,'subUnitId':_0x4110ae,'shapeId':_0x284aba,'shapeType':_0x45b862,'shapeData':{'adjustValues':_0x477208,'relation':_0x42f154}}}),_0x4a266d[_0x189907(0x176)]({'id':_['id'],'params':{'unitId':_0x1f30b8,'subUnitId':_0x4110ae,'shapeId':_0x284aba,'shapeType':_0x4ddb5e,'shapeData':{'adjustValues':_0x328fb8,'relation':_0x42f154}}});}}[_0x11106f(0x158)](_0x87f9d2,_0x3bd305,_0x3213a7,_0x2ea72f,_0x4679b4,_0x2c7e4e,_0x458ff2,_0xd51094,_0xbd8175,_0x350fa5){const _0x1478b1=_0x11106f;var _0x3d4afe;if(!_0x4679b4)return;let _0x1ceeee=this[_0x1478b1(0x126)][_0x1478b1(0x1b2)](_0x87f9d2,_0x3bd305);if(!_0x1ceeee)return;let _0xd5f06=(_0x3d4afe=this['_drawingManagerService'][_0x1478b1(0x1c2)]({'unitId':_0x87f9d2,'subUnitId':_0x3bd305,'drawingId':_0xbd8175}))==null?void 0x0:_0x3d4afe[_0x1478b1(0x138)];if(!_0xd5f06)return;let _0x3c5851=_0xd5f06['left']!==_0x350fa5['left']||_0xd5f06[_0x1478b1(0x134)]!==_0x350fa5[_0x1478b1(0x134)],_0x3c1e5e=_0xd5f06['width']!==_0x350fa5[_0x1478b1(0x1b3)]||_0xd5f06['height']!==_0x350fa5['height'],_0x175f33=_0xd5f06['flipX']!==_0x350fa5[_0x1478b1(0x163)]||_0xd5f06[_0x1478b1(0x186)]!==_0x350fa5['flipY'],_0xb5f9d3=_0xd5f06[_0x1478b1(0x18a)]!==_0x350fa5[_0x1478b1(0x18a)];if(_0x3c5851&&!_0x3c1e5e&&!_0x175f33&&!_0xb5f9d3){var _0x13c8d0,_0x49e999,_0x12791b,_0x52f227;let _0x52827a=((_0x13c8d0=_0x350fa5['left'])==null?0x0:_0x13c8d0)-((_0x49e999=_0xd5f06[_0x1478b1(0x1db)])==null?0x0:_0x49e999),_0x485ee7=((_0x12791b=_0x350fa5[_0x1478b1(0x134)])==null?0x0:_0x12791b)-((_0x52f227=_0xd5f06[_0x1478b1(0x134)])==null?0x0:_0x52f227),_0x46bde9=this[_0x1478b1(0x141)][_0x1478b1(0x120)](_0x87f9d2,_0x3bd305);if(_0x46bde9&&_0x46bde9[_0x3213a7]){var _0x38d494,_0x2b4eb9,_0x536d81,_0x432138;let _0x435820=_0x46bde9[_0x3213a7],_0x181a9c={..._0x435820[_0x1478b1(0x138)],'left':((_0x38d494=(_0x2b4eb9=_0x435820[_0x1478b1(0x138)])==null?void 0x0:_0x2b4eb9[_0x1478b1(0x1db)])==null?0x0:_0x38d494)+_0x52827a,'top':((_0x536d81=(_0x432138=_0x435820['transform'])==null?void 0x0:_0x432138[_0x1478b1(0x134)])==null?0x0:_0x536d81)+_0x485ee7},_0x5c915c=(0x0,r[_0x1478b1(0x1d5)])(_0x181a9c,_0x1ceeee),_0x503820=(0x0,r[_0x1478b1(0x1ae)])(_0x181a9c,_0x1ceeee),_0x12bfe1={'unitId':_0x87f9d2,'subUnitId':_0x3bd305,'drawingType':t[_0x1478b1(0x139)][_0x1478b1(0x13a)],'drawingId':_0x3213a7,'transform':_0x181a9c,'sheetTransform':_0x5c915c,'axisAlignSheetTransform':_0x503820},{unitId:_0x5e4648,subUnitId:_0x183a57,undo:_0x4d4389,redo:_0x7da653,objects:_0x2b7aa9}=this['_drawingManagerService'][_0x1478b1(0x12b)]([_0x12bfe1]);_0x458ff2['push']({'id':r[_0x1478b1(0x168)]['id'],'params':{'unitId':_0x5e4648,'subUnitId':_0x183a57,'op':_0x7da653,'objects':_0x2b7aa9,'type':r['DrawingApplyType']['UPDATE']}}),_0xd51094['push']({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5e4648,'subUnitId':_0x183a57,'op':_0x4d4389,'objects':_0x2b7aa9,'type':r[_0x1478b1(0x1c9)]['UPDATE']}});}}else{let _0xd1ea77=_0x2ea72f[_0x1478b1(0x1d4)](),_0x25ef76=_0x2ea72f[_0x1478b1(0x167)]();this['_addLineRerouteUpdates'](_0x87f9d2,_0x3bd305,_0x3213a7,_0x2ea72f,_0xd1ea77,_0x25ef76,_0x458ff2,_0xd51094,_0xbd8175,_0x350fa5);}}};k=f([d(0x0,t[_0x11106f(0x121)]),d(0x1,(0x0,t[_0x11106f(0x146)])(n[_0x11106f(0x17f)])),d(0x2,(0x0,t[_0x11106f(0x146)])(n['SheetSkeletonService'])),d(0x3,(0x0,t[_0x11106f(0x146)])(p)),d(0x4,(0x0,t[_0x11106f(0x146)])(a[_0x11106f(0x16c)]))],k);let A=class extends t[_0x11106f(0x1bf)]{constructor(_0x3cecec=O,_0x71aef2,_0xd98233,_0x2f0038){const _0x3fdd4d=_0x11106f;super(),this['_config']=_0x3cecec,this[_0x3fdd4d(0x1c1)]=_0x71aef2,this[_0x3fdd4d(0x155)]=_0xd98233,this['_configService']=_0x2f0038;let {..._0x2f143e}=(0x0,t[_0x3fdd4d(0x12f)])({},O,this[_0x3fdd4d(0x125)]);this[_0x3fdd4d(0x1cf)][_0x3fdd4d(0x195)](D,_0x2f143e);}[_0x11106f(0x150)](){const _0x143c99=_0x11106f;let _0x4f0368=this[_0x143c99(0x1c1)];[[u],[p],[k]]['forEach'](_0x102769=>_0x4f0368[_0x143c99(0x16f)](_0x102769)),(0x0,t[_0x143c99(0x1cd)])(_0x4f0368,[[p],[k]]);}};l(A,_0x11106f(0x162),t[_0x11106f(0x1ca)][_0x11106f(0x18e)]),l(A,_0x11106f(0x1df),'SHEET_SHAPE_PLUGIN'),l(A,'packageName',T),l(A,'version',E),A=f([(0x0,t[_0x11106f(0x1e4)])(i['UniverLicensePlugin']),d(0x1,(0x0,t[_0x11106f(0x146)])(t['Injector'])),d(0x2,t[_0x11106f(0x121)]),d(0x3,t['IConfigService'])],A),exports[_0x11106f(0x12a)]=0xc8,exports[_0x11106f(0x15e)]=0xc8,exports[_0x11106f(0x1dc)]=g,exports[_0x11106f(0x156)]=m,exports[_0x11106f(0x198)]=h,exports[_0x11106f(0x136)]=v,exports[_0x11106f(0x14f)]=b,Object[_0x11106f(0x153)](exports,'SheetsShapeService',{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x11106f(0x19f)]=y,Object[_0x11106f(0x153)](exports,_0x11106f(0x1a6),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x11106f(0x185)]=x,exports['UpdateLineShapeResizeCommand']=S,exports[_0x11106f(0x1bd)]=_,exports['UpdateSheetsShapeTypeCommand']=w,exports[_0x11106f(0x165)]=C;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x56e141=_0x414d;(function(_0x2d64ae,_0x4eaa01){const _0x36034f=_0x414d,_0x53fbd9=_0x2d64ae();while(!![]){try{const _0x2867fb=-parseInt(_0x36034f(0x167))/0x1+parseInt(_0x36034f(0x17c))/0x2*(parseInt(_0x36034f(0x1d9))/0x3)+-parseInt(_0x36034f(0x1a6))/0x4+parseInt(_0x36034f(0x1b1))/0x5+-parseInt(_0x36034f(0x186))/0x6+-parseInt(_0x36034f(0x17d))/0x7+-parseInt(_0x36034f(0x1ba))/0x8*(-parseInt(_0x36034f(0x16d))/0x9);if(_0x2867fb===_0x4eaa01)break;else _0x53fbd9['push'](_0x53fbd9['shift']());}catch(_0x2e05da){_0x53fbd9['push'](_0x53fbd9['shift']());}}}(_0x239b,0xdbcaa));import{ConnectorCoordinateTransform as _0x3f24fd,ShapeArrowSizeEnum as _0x1e0b5b,ShapeArrowTypeEnum as _0x4081a7,ShapeFillEnum as _0x30b330,ShapeGradientTypeEnum as _0x52b4a9,ShapeLineCapEnum as _0x54a8ca,ShapeLineDashEnum as _0x244926,ShapeLineJoinEnum as _0x53cbee,ShapeLineTypeEnum as _0x5b2b7d,ShapeTypeEnum as _0x3a6210,computeConnectorRouteLayout as _0x17f637,getBasicShapeRotateBound as _0x249fb9,isConnectorShape as _0x4aa382,routeConnectorLineShape as _0x1cb25a}from'@univerjs-pro/engine-shape';import{FEnum as _0x4431fd}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x47cc2b,DEFAULT_SHAPE_WIDTH as _0x34518b,InsertShapeCommand as _0x418ca4,SetShapeDrawingDataCommand as _0x525277,SheetsShapeService as _0x4354de,UpdateConnectorRelationCommand as _0x5366c4}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x2b91e5,generateRandomId as _0x21dce4}from'@univerjs/core';import{IDrawingManagerService as _0x34e233}from'@univerjs/drawing';import{SheetSkeletonService as _0x5ad9f5,convertPositionCellToSheetOverGrid as _0x3bc73d}from'@univerjs/sheets';import{ISheetDrawingService as _0x484e55,RemoveSheetDrawingCommand as _0x509e0e}from'@univerjs/sheets-drawing';function _0x414d(_0x78d8de,_0x3dc2b6){_0x78d8de=_0x78d8de-0x15e;const _0x239b17=_0x239b();let _0x414d77=_0x239b17[_0x78d8de];return _0x414d77;}import{FWorksheet as _0x1af2a2}from'@univerjs/sheets/facade';var k=class extends _0x4431fd{get[_0x56e141(0x1b4)](){return _0x3a6210;}get[_0x56e141(0x1a4)](){return _0x30b330;}get[_0x56e141(0x1c0)](){return _0x52b4a9;}get[_0x56e141(0x1c8)](){return _0x5b2b7d;}get[_0x56e141(0x1b0)](){return _0x244926;}get[_0x56e141(0x1c6)](){return _0x54a8ca;}get['ShapeLineJoinEnum'](){return _0x53cbee;}get[_0x56e141(0x175)](){return _0x4081a7;}get[_0x56e141(0x191)](){return _0x1e0b5b;}};_0x4431fd['extend'](k);function _0x239b(){const _0x1d7bc7=['getEndConnectInfo','constructor','_preloadShapeProperties','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','newConnector','keys','flipX','getConnectorLinePoints','adjustValues','shape','ShapeArrowSizeEnum','type','shapeId','\x20not\x20found','default','extend','shapeType','fill','_commandService','cos','gradientStops','setShapeSolidFill','setShapeType','_resolveExistingOrFreeEndpoint','opacity','setStrokeLineJoinType','find','getUnitId','parse','ShapeFillEnum','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','5079084qunzJU','insertShape','object','shapeData','getConnectionSites','flipY','abs','getShapeModel','getSheetId','worldRect','ShapeLineDashEnum','1764630jfeuOC','setStrokeLineDashType','removeShape','ShapeTypeEnum','from','lineType','height','unitId','width','20577504pKdoJm','transform','call','setEndArrowSize','ensureSkeleton','getDrawingData','ShapeGradientTypeEnum','executeCommand','getWorkbook','iterator','string','point','ShapeLineCapEnum','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','ShapeLineTypeEnum','NoFill','top','setAbsolutePosition','getAdjustValueByName','getSize','defineProperty','length',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','setStrokeColor','ang','entries','build','toPrimitive','setStrokeWidth','push','connectionSiteIndex','1869XkuMjp','lineJoinType','get','left','drawId','getShapeData','updateContext','localToWorld','connectShapes','setStrokeLineType','color','isLineShape','923337BhHEgn','stringify','dashType','prototype','getShapeId','Skeleton\x20for\x20unitId\x20','9EYOWRa','getStartConnectInfo','\x20and\x20subUnitId\x20','stroke','size','GradientFill','subUnitId','getShapeType','ShapeArrowTypeEnum','setStrokeOpacity','setStartArrowSize','getConnectionSiteList','startArrow','getPosition','lineStrokeType','4666YybMbr','2254602KtOEvO','getAdjustNames','relation','gradientAngle','getDrawingByParam','endArrow','DRAWING_SHAPE','symbol','_injector','5778678HVkKVU'];_0x239b=function(){return _0x1d7bc7;};return _0x239b();}function A(_0x137494){'@babel/helpers - typeof';const _0x4ad3c7=_0x56e141;return A=typeof Symbol=='function'&&typeof Symbol[_0x4ad3c7(0x1c3)]=='symbol'?function(_0x59b895){return typeof _0x59b895;}:function(_0x51dec0){const _0x391371=_0x4ad3c7;return _0x51dec0&&typeof Symbol=='function'&&_0x51dec0[_0x391371(0x188)]===Symbol&&_0x51dec0!==Symbol[_0x391371(0x16a)]?_0x391371(0x184):typeof _0x51dec0;},A(_0x137494);}function j(_0x5172db,_0x27475e){const _0x543d2e=_0x56e141;if(A(_0x5172db)!=_0x543d2e(0x1a8)||!_0x5172db)return _0x5172db;var _0x8b8610=_0x5172db[Symbol[_0x543d2e(0x1d5)]];if(_0x8b8610!==void 0x0){var _0x1337e0=_0x8b8610[_0x543d2e(0x1bc)](_0x5172db,_0x27475e||_0x543d2e(0x195));if(A(_0x1337e0)!=_0x543d2e(0x1a8))return _0x1337e0;throw TypeError(_0x543d2e(0x1a5));}return(_0x27475e===_0x543d2e(0x1c4)?String:Number)(_0x5172db);}function M(_0x3f27fc){const _0x3f8692=_0x56e141;var _0x131ae0=j(_0x3f27fc,_0x3f8692(0x1c4));return A(_0x131ae0)==_0x3f8692(0x184)?_0x131ae0:_0x131ae0+'';}function N(_0x278aca,_0x40cc94,_0xb9e958){const _0x39208c=_0x56e141;return(_0x40cc94=M(_0x40cc94))in _0x278aca?Object[_0x39208c(0x1ce)](_0x278aca,_0x40cc94,{'value':_0xb9e958,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x278aca[_0x40cc94]=_0xb9e958,_0x278aca;}var P=class{constructor(_0x460e4d,_0x4331da,_0xe5ac8b,_0x243662){const _0x502a15=_0x56e141;N(this,_0x502a15(0x1b8),void 0x0),N(this,_0x502a15(0x173),void 0x0),N(this,_0x502a15(0x15f),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x502a15(0x1b9),_0x34518b),N(this,'height',_0x47cc2b),N(this,_0x502a15(0x197),void 0x0),N(this,_0x502a15(0x1a9),{}),N(this,'_injector',void 0x0),this['unitId']=_0x460e4d,this[_0x502a15(0x173)]=_0x4331da,this[_0x502a15(0x15f)]=_0xe5ac8b||_0x21dce4(),this[_0x502a15(0x185)]=_0x243662;}['setPosition'](_0x40ea4e,_0x1c5a71,_0x5a9e04,_0x2f1687){const _0x230bbf=_0x56e141;let _0x66250e=this[_0x230bbf(0x185)][_0x230bbf(0x1db)](_0x5ad9f5)[_0x230bbf(0x1be)](this['unitId'],this['subUnitId']);if(!_0x66250e)throw Error(_0x230bbf(0x16c)+this[_0x230bbf(0x1b8)]+_0x230bbf(0x16f)+this['subUnitId']+_0x230bbf(0x194));let {transform:_0x1334f1}=_0x3bc73d(this[_0x230bbf(0x1b8)],this['subUnitId'],{'row':_0x40ea4e,'column':_0x1c5a71,'rowOffset':_0x5a9e04,'columnOffset':_0x2f1687},0x1,0x1,_0x66250e);return this['x']=_0x1334f1[_0x230bbf(0x15e)],this['y']=_0x1334f1[_0x230bbf(0x1ca)],this;}[_0x56e141(0x1cb)](_0x3a121e,_0x121fb8){return this['x']=_0x3a121e,this['y']=_0x121fb8,this;}[_0x56e141(0x19d)](_0x3980e0){const _0x1058d7=_0x56e141;return this[_0x1058d7(0x197)]=_0x3980e0,this;}[_0x56e141(0x19c)](_0x108cee,_0x4b37a3){const _0x1538d1=_0x56e141;return this[_0x1538d1(0x1a9)][_0x1538d1(0x198)]||(this[_0x1538d1(0x1a9)][_0x1538d1(0x198)]={}),this['shapeData'][_0x1538d1(0x198)]['fillType']=_0x30b330['SolidFil'],_0x108cee!==void 0x0&&(this[_0x1538d1(0x1a9)][_0x1538d1(0x198)]['color']=_0x108cee),_0x4b37a3!==void 0x0&&(this[_0x1538d1(0x1a9)][_0x1538d1(0x198)][_0x1538d1(0x19f)]=_0x4b37a3),this;}['setShapeGradientFill'](_0x300a9b,_0x56996f,_0x8d0f23){const _0x272dd7=_0x56e141;if(_0x56996f===void 0x0||_0x56996f['length']===0x0)throw Error(_0x272dd7(0x18a));return this['shapeData']['fill']||(this[_0x272dd7(0x1a9)]['fill']={}),this[_0x272dd7(0x1a9)][_0x272dd7(0x198)][_0x272dd7(0x19b)]=_0x56996f,this[_0x272dd7(0x1a9)][_0x272dd7(0x198)]['fillType']=_0x30b330[_0x272dd7(0x172)],this[_0x272dd7(0x1a9)][_0x272dd7(0x198)]['gradientType']=_0x300a9b,_0x8d0f23!==void 0x0&&(this[_0x272dd7(0x1a9)][_0x272dd7(0x198)][_0x272dd7(0x180)]=_0x8d0f23),this;}['setNoneFill'](){const _0x2f46e0=_0x56e141;return this[_0x2f46e0(0x1a9)][_0x2f46e0(0x198)]={'fillType':_0x30b330[_0x2f46e0(0x1c9)]},this;}[_0x56e141(0x1d1)](_0x29283a){const _0x34b65e=_0x56e141;return this['shapeData'][_0x34b65e(0x170)]||(this[_0x34b65e(0x1a9)][_0x34b65e(0x170)]={}),this[_0x34b65e(0x1a9)][_0x34b65e(0x170)][_0x34b65e(0x165)]=_0x29283a,this;}[_0x56e141(0x1d6)](_0x118b5e){const _0x398607=_0x56e141;return this[_0x398607(0x1a9)][_0x398607(0x170)]||(this['shapeData'][_0x398607(0x170)]={}),this[_0x398607(0x1a9)][_0x398607(0x170)][_0x398607(0x1b9)]=_0x118b5e,this;}[_0x56e141(0x1b2)](_0x5b8c40){const _0x594f77=_0x56e141;return this['shapeData'][_0x594f77(0x170)]||(this['shapeData'][_0x594f77(0x170)]={}),this[_0x594f77(0x1a9)][_0x594f77(0x170)][_0x594f77(0x169)]=_0x5b8c40,this;}[_0x56e141(0x1a0)](_0x51fa65){const _0x2acbe6=_0x56e141;return this[_0x2acbe6(0x1a9)][_0x2acbe6(0x170)]||(this[_0x2acbe6(0x1a9)][_0x2acbe6(0x170)]={}),this[_0x2acbe6(0x1a9)]['stroke'][_0x2acbe6(0x1da)]=_0x51fa65,this;}['setStrokeLineCapType'](_0x4762f2){const _0x5501b8=_0x56e141;return this[_0x5501b8(0x1a9)][_0x5501b8(0x170)]||(this[_0x5501b8(0x1a9)]['stroke']={}),this[_0x5501b8(0x1a9)][_0x5501b8(0x170)]['capType']=_0x4762f2,this;}[_0x56e141(0x176)](_0x4a72d9){const _0x360b3c=_0x56e141;return this[_0x360b3c(0x1a9)][_0x360b3c(0x170)]||(this[_0x360b3c(0x1a9)][_0x360b3c(0x170)]={}),this[_0x360b3c(0x1a9)][_0x360b3c(0x170)][_0x360b3c(0x19f)]=_0x4a72d9,this;}[_0x56e141(0x164)](_0x4db52b){const _0x25cd96=_0x56e141;return this[_0x25cd96(0x1a9)][_0x25cd96(0x170)]||(this[_0x25cd96(0x1a9)][_0x25cd96(0x170)]={}),this[_0x25cd96(0x1a9)][_0x25cd96(0x170)][_0x25cd96(0x17b)]=_0x4db52b,this;}['setWidth'](_0x1a95db){const _0x1b7927=_0x56e141;return this[_0x1b7927(0x1b9)]=_0x1a95db,this;}['setHeight'](_0x1e4769){const _0x22b5e2=_0x56e141;return this[_0x22b5e2(0x1b7)]=_0x1e4769,this;}[_0x56e141(0x166)](){const _0x523d61=_0x56e141;let _0x42fdd3=this['_injector'][_0x523d61(0x1db)](_0x4354de)[_0x523d61(0x1ad)](this['unitId'],this['subUnitId'],this[_0x523d61(0x15f)]);return _0x42fdd3?_0x4aa382(_0x42fdd3[_0x523d61(0x174)]()):this[_0x523d61(0x197)]?_0x4aa382(this[_0x523d61(0x197)]):!0x1;}[_0x56e141(0x1aa)](){const _0x260a67=_0x56e141;let _0x5d1179=this[_0x260a67(0x185)][_0x260a67(0x1db)](_0x4354de)[_0x260a67(0x1ad)](this['unitId'],this[_0x260a67(0x173)],this['drawId']);if(!_0x5d1179)return[];let _0x42650e=this[_0x260a67(0x185)][_0x260a67(0x1db)](_0x34e233)[_0x260a67(0x181)]({'unitId':this[_0x260a67(0x1b8)],'subUnitId':this[_0x260a67(0x173)],'drawingId':this[_0x260a67(0x15f)]});if(!(_0x42650e!=null&&_0x42650e['transform']))return[];let {width:_0x2742aa=0x0,height:_0x1b2566=0x0}=_0x42650e[_0x260a67(0x1bb)];return _0x5d1179[_0x260a67(0x161)]({'width':_0x2742aa,'height':_0x1b2566}),_0x5d1179['getConnectionSiteList']();}['getAdjustPoints'](){const _0x224a1a=_0x56e141;let _0x2016ac=this[_0x224a1a(0x185)][_0x224a1a(0x1db)](_0x4354de)[_0x224a1a(0x1ad)](this[_0x224a1a(0x1b8)],this[_0x224a1a(0x173)],this[_0x224a1a(0x15f)]);if(!_0x2016ac)return[];let _0x3fdbcc=this[_0x224a1a(0x185)][_0x224a1a(0x1db)](_0x34e233)[_0x224a1a(0x181)]({'unitId':this[_0x224a1a(0x1b8)],'subUnitId':this[_0x224a1a(0x173)],'drawingId':this[_0x224a1a(0x15f)]});if(!(_0x3fdbcc!=null&&_0x3fdbcc[_0x224a1a(0x1bb)]))return[];let {width:_0x26b5e1=0x0,height:_0x5fb969=0x0}=_0x3fdbcc[_0x224a1a(0x1bb)];return _0x2016ac[_0x224a1a(0x161)]({'width':_0x26b5e1,'height':_0x5fb969}),_0x2016ac['getDrawingPoints']();}[_0x56e141(0x18e)](){const _0x1aacc1=_0x56e141;let _0x35d260=this[_0x1aacc1(0x185)][_0x1aacc1(0x1db)](_0x4354de)[_0x1aacc1(0x1ad)](this[_0x1aacc1(0x1b8)],this[_0x1aacc1(0x173)],this[_0x1aacc1(0x15f)]);if(!_0x35d260||!_0x4aa382(_0x35d260[_0x1aacc1(0x174)]()))return[];let _0x5701c2=this[_0x1aacc1(0x185)][_0x1aacc1(0x1db)](_0x34e233)[_0x1aacc1(0x181)]({'unitId':this[_0x1aacc1(0x1b8)],'subUnitId':this[_0x1aacc1(0x173)],'drawingId':this[_0x1aacc1(0x15f)]});if(!(_0x5701c2!=null&&_0x5701c2[_0x1aacc1(0x1bb)]))return[];let {width:_0x3e656a=0x0,height:_0x35fb91=0x0}=_0x5701c2[_0x1aacc1(0x1bb)];return _0x35d260[_0x1aacc1(0x161)]({'width':_0x3e656a,'height':_0x35fb91}),_0x35d260[_0x1aacc1(0x18e)]();}[_0x56e141(0x16e)](){const _0x8201cf=_0x56e141;var _0x47f458;let _0x2b4efe=this[_0x8201cf(0x185)][_0x8201cf(0x1db)](_0x4354de)[_0x8201cf(0x1ad)](this['unitId'],this[_0x8201cf(0x173)],this['drawId']);return _0x2b4efe?(_0x47f458=_0x2b4efe[_0x8201cf(0x16e)]())==null?null:_0x47f458:null;}[_0x56e141(0x187)](){const _0x112e63=_0x56e141;var _0x525298;let _0x962a82=this[_0x112e63(0x185)][_0x112e63(0x1db)](_0x4354de)[_0x112e63(0x1ad)](this[_0x112e63(0x1b8)],this[_0x112e63(0x173)],this[_0x112e63(0x15f)]);return _0x962a82?(_0x525298=_0x962a82[_0x112e63(0x187)]())==null?null:_0x525298:null;}[_0x56e141(0x1d4)](){const _0x4d8f41=_0x56e141;var _0x7bb32a,_0xaa69b6;if(!this['shapeType'])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x5717de=this[_0x4d8f41(0x185)][_0x4d8f41(0x1db)](_0x5ad9f5)[_0x4d8f41(0x1be)](this[_0x4d8f41(0x1b8)],this[_0x4d8f41(0x173)]);if(!_0x5717de)throw Error('Skeleton\x20for\x20unitId\x20'+this['unitId']+_0x4d8f41(0x16f)+this[_0x4d8f41(0x173)]+'\x20not\x20found');let {transform:_0xed425c}=_0x3bc73d(this[_0x4d8f41(0x1b8)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5717de);this['x']=this['x']>0x0?this['x']:_0xed425c[_0x4d8f41(0x15e)],this['y']=this['y']>0x0?this['y']:_0xed425c[_0x4d8f41(0x1ca)];}return this['width']=(_0x7bb32a=this['width'])==null?_0x34518b:_0x7bb32a,this[_0x4d8f41(0x1b7)]=(_0xaa69b6=this[_0x4d8f41(0x1b7)])==null?_0x47cc2b:_0xaa69b6,{'unitId':this[_0x4d8f41(0x1b8)],'subUnitId':this['subUnitId'],'shapeId':this[_0x4d8f41(0x15f)],'shapeType':this[_0x4d8f41(0x197)],'shapeData':Object[_0x4d8f41(0x18c)](this['shapeData'])[_0x4d8f41(0x1cf)]>0x0?this[_0x4d8f41(0x1a9)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x4d8f41(0x1b9)],'height':this[_0x4d8f41(0x1b7)]};}[_0x56e141(0x16b)](){const _0x38ebd6=_0x56e141;return this[_0x38ebd6(0x15f)];}['getShapeType'](){const _0x4c8483=_0x56e141;return this[_0x4c8483(0x197)];}[_0x56e141(0x160)](){const _0x1f7aa2=_0x56e141;return this[_0x1f7aa2(0x1a9)];}[_0x56e141(0x17a)](){return{'x':this['x'],'y':this['y']};}[_0x56e141(0x1cd)](){const _0x3e65c0=_0x56e141;return{'width':this[_0x3e65c0(0x1b9)],'height':this[_0x3e65c0(0x1b7)]};}},F=class extends P{constructor(_0x465f18,_0x5e5bc4,_0x1dbebe,_0x512866){super(_0x465f18,_0x5e5bc4,_0x1dbebe,_0x512866),N(this,'shapeData',{});}[_0x56e141(0x19d)](_0x2f58a9){const _0xc7fe4c=_0x56e141;if(!_0x4aa382(_0x2f58a9))throw Error(_0xc7fe4c(0x1c7)+_0x2f58a9+_0xc7fe4c(0x1d0));return super[_0xc7fe4c(0x19d)](_0x2f58a9),this;}['setStartArrowType'](_0x401ab2){const _0x44858c=_0x56e141;var _0xe1d7f1,_0x409ecc;return(_0xe1d7f1=this[_0x44858c(0x1a9)])!=null&&_0xe1d7f1['ln']||(this[_0x44858c(0x1a9)]['ln']={}),!((_0x409ecc=this[_0x44858c(0x1a9)])==null||(_0x409ecc=_0x409ecc['ln'])==null)&&_0x409ecc['startArrow']||(this[_0x44858c(0x1a9)]['ln']['startArrow']={}),this['shapeData']['ln'][_0x44858c(0x179)][_0x44858c(0x192)]=_0x401ab2,this;}['setEndArrowType'](_0x4a97dd){const _0x4620d0=_0x56e141;var _0x1b6163,_0x26b5e5;return(_0x1b6163=this[_0x4620d0(0x1a9)])!=null&&_0x1b6163['ln']||(this[_0x4620d0(0x1a9)]['ln']={}),!((_0x26b5e5=this['shapeData'])==null||(_0x26b5e5=_0x26b5e5['ln'])==null)&&_0x26b5e5[_0x4620d0(0x182)]||(this['shapeData']['ln'][_0x4620d0(0x182)]={}),this[_0x4620d0(0x1a9)]['ln'][_0x4620d0(0x182)][_0x4620d0(0x192)]=_0x4a97dd,this;}[_0x56e141(0x177)](_0x232976){const _0x8c6b28=_0x56e141;var _0x5d0bb7,_0x14703c;return(_0x5d0bb7=this['shapeData'])!=null&&_0x5d0bb7['ln']||(this[_0x8c6b28(0x1a9)]['ln']={}),!((_0x14703c=this[_0x8c6b28(0x1a9)])==null||(_0x14703c=_0x14703c['ln'])==null)&&_0x14703c['startArrow']||(this[_0x8c6b28(0x1a9)]['ln'][_0x8c6b28(0x179)]={}),this[_0x8c6b28(0x1a9)]['ln'][_0x8c6b28(0x179)][_0x8c6b28(0x171)]=_0x232976,this;}[_0x56e141(0x1bd)](_0x2bb220){const _0x4e68ff=_0x56e141;var _0x35bb81,_0x4f03b5;return(_0x35bb81=this['shapeData'])!=null&&_0x35bb81['ln']||(this['shapeData']['ln']={}),!((_0x4f03b5=this[_0x4e68ff(0x1a9)])==null||(_0x4f03b5=_0x4f03b5['ln'])==null)&&_0x4f03b5[_0x4e68ff(0x182)]||(this['shapeData']['ln'][_0x4e68ff(0x182)]={}),this[_0x4e68ff(0x1a9)]['ln']['endArrow'][_0x4e68ff(0x171)]=_0x2bb220,this;}['build'](){const _0x14ef95=_0x56e141;return super[_0x14ef95(0x1d4)]();}[_0x56e141(0x187)](){const _0x445155=_0x56e141;var _0x1b8089;return((_0x1b8089=this[_0x445155(0x1a9)])==null||(_0x1b8089=_0x1b8089[_0x445155(0x17f)])==null?void 0x0:_0x1b8089['to'])||null;}[_0x56e141(0x16e)](){const _0x459580=_0x56e141;var _0x42d3c7;return((_0x42d3c7=this[_0x459580(0x1a9)])==null||(_0x42d3c7=_0x42d3c7[_0x459580(0x17f)])==null?void 0x0:_0x42d3c7['from'])||null;}};function I(_0x4a248c,_0x5d9774,_0xc32ad3,_0x30439b,_0x5d4b1e,_0x1c7e63){const _0x5618fa=_0x56e141;let _0x575b47=_0x5d4b1e[_0x5618fa(0x1ad)](_0x4a248c,_0x5d9774,_0xc32ad3);if(!_0x575b47)return null;let _0x5c603b=_0x1c7e63['getDrawingByParam']({'unitId':_0x4a248c,'subUnitId':_0x5d9774,'drawingId':_0xc32ad3});if(!(_0x5c603b!=null&&_0x5c603b[_0x5618fa(0x1bb)]))return null;let {left:_0x5a30d3=0x0,top:_0x4e5e04=0x0,width:_0x4a5f26=0x0,height:_0xcf504a=0x0,flipX:_0x4f6bac=!0x1,flipY:_0x1167d4=!0x1,angle:_0x4d7b86}=_0x5c603b['transform'];_0x575b47[_0x5618fa(0x161)]({'width':_0x4a5f26,'height':_0xcf504a});let _0x1fa013=_0x575b47[_0x5618fa(0x178)]()[_0x5618fa(0x1a1)](_0x39bca8=>_0x39bca8['index']===_0x30439b);if(!_0x1fa013)return null;let _0x1f67e9=_0x4f6bac?_0x4a5f26-_0x1fa013['x']:_0x1fa013['x'],_0x4e9eb4=_0x1167d4?_0xcf504a-_0x1fa013['y']:_0x1fa013['y'];if(_0x4d7b86&&_0x4d7b86!==0x0){let _0x392f64=_0x4d7b86*Math['PI']/0xb4,_0x195689=Math[_0x5618fa(0x19a)](_0x392f64),_0x45a03f=Math['sin'](_0x392f64),_0x49a71b=_0x4a5f26/0x2,_0x1915e3=_0xcf504a/0x2,_0x15acfa=_0x1f67e9-_0x49a71b,_0x21498b=_0x4e9eb4-_0x1915e3;_0x1f67e9=_0x49a71b+_0x15acfa*_0x195689-_0x21498b*_0x45a03f,_0x4e9eb4=_0x1915e3+_0x15acfa*_0x45a03f+_0x21498b*_0x195689;}_0x1f67e9+=_0x5a30d3,_0x4e9eb4+=_0x4e5e04;let _0x24355f=_0x1fa013[_0x5618fa(0x1d2)]/0xea60;_0x4f6bac&&(_0x24355f=0xb4-_0x24355f),_0x1167d4&&(_0x24355f=-_0x24355f),_0x24355f+=_0x4d7b86||0x0,_0x24355f=(_0x24355f%0x168+0x168)%0x168;let _0x2312b6=_0x249fb9({'left':_0x5a30d3,'top':_0x4e5e04,'width':_0x4a5f26,'height':_0xcf504a},_0x4d7b86||0x0);return{'point':{'x':_0x1f67e9,'y':_0x4e9eb4},'angle':_0x24355f,'bounds':_0x2312b6};}function L(_0x418d5a,_0x597362){const _0x531555=_0x56e141;let _0x39ac5e=_0x597362['x']-_0x418d5a['x'],_0x17b9ce=_0x597362['y']-_0x418d5a['y'];return Math[_0x531555(0x1ac)](_0x39ac5e)>=Math[_0x531555(0x1ac)](_0x17b9ce)?_0x39ac5e>=0x0?0xb4:0x0:_0x17b9ce>=0x0?0x10e:0x5a;}function R(_0x15f1b1,_0xb402ad,_0x55d379,_0x38d9af,_0x1c3933,_0x5356b5,_0x41664b){const _0x1a867d=_0x56e141;let _0x51acb5=_0x5356b5[_0x1a867d(0x1ad)](_0x15f1b1,_0xb402ad,_0x55d379);if(!_0x51acb5)return null;let _0x56d7fe=_0x41664b['getDrawingByParam']({'unitId':_0x15f1b1,'subUnitId':_0xb402ad,'drawingId':_0x55d379});if(!(_0x56d7fe!=null&&_0x56d7fe[_0x1a867d(0x1bb)]))return null;let {left:_0x281d1b=0x0,top:_0x43444c=0x0,width:_0x4baf0e=0x0,height:_0x57d17d=0x0,flipX:_0x9e459=!0x1,flipY:_0x1ff782=!0x1}=_0x56d7fe[_0x1a867d(0x1bb)];_0x51acb5[_0x1a867d(0x161)]({'width':_0x4baf0e,'height':_0x57d17d});let _0x840f31=_0x51acb5[_0x1a867d(0x18e)]();if(_0x840f31[_0x1a867d(0x1cf)]<0x2)return null;let _0xaceda=_0x38d9af?_0x840f31[0x0]:_0x840f31[_0x840f31[_0x1a867d(0x1cf)]-0x1],_0x4ddad2=new _0x3f24fd({'left':_0x281d1b,'top':_0x43444c,'width':_0x4baf0e,'height':_0x57d17d,'flipX':_0x9e459,'flipY':_0x1ff782})[_0x1a867d(0x162)](_0xaceda);return{'point':_0x4ddad2,'angle':L(_0x1c3933[_0x1a867d(0x1c5)],_0x4ddad2),'bounds':{'left':_0x4ddad2['x'],'top':_0x4ddad2['y'],'width':0x0,'height':0x0}};}var z=class extends _0x1af2a2{async[_0x56e141(0x1a7)](_0x57be89){const _0x39d75f=_0x56e141;let {unitId:_0xadde76,subUnitId:_0x29204e,shapeId:_0x297548,shapeType:_0x567a38,shapeData:_0x2336dd,x:_0x4e649f,y:_0x49af4a,width:_0x4d914c,height:_0x50e45b}=_0x57be89;return this[_0x39d75f(0x199)]['executeCommand'](_0x418ca4['id'],{'unitId':_0xadde76,'subUnitId':_0x29204e,'shapeId':_0x297548,'shapeType':_0x567a38,'shapeData':_0x2336dd,'position':{'x':_0x4e649f,'y':_0x49af4a},'width':_0x4d914c,'height':_0x50e45b});}async['updateShape'](_0x254dbd){const _0x2cecad=_0x56e141;let {unitId:_0x3e0a40,subUnitId:_0x3105d3,shapeId:_0x47fa8e,shapeType:_0x55e6e6,shapeData:_0x34a2a4,x:_0x1ad89c,y:_0x4c60b5,width:_0x212385,height:_0x5db9af}=_0x254dbd;return this[_0x2cecad(0x199)][_0x2cecad(0x1c1)](_0x525277['id'],{'unitId':_0x3e0a40,'subUnitId':_0x3105d3,'shapeId':_0x47fa8e,'shapeType':_0x55e6e6,'shapeData':_0x34a2a4,'position':{'x':_0x1ad89c,'y':_0x4c60b5},'width':_0x212385,'height':_0x5db9af});}['newShape'](_0xdb0e7e){const _0x17670d=_0x56e141;let _0xd2d648=this[_0x17670d(0x1c2)]()['getUnitId'](),_0x798501=this[_0x17670d(0x1ae)]();if(_0xdb0e7e){let _0x5d014c=new P(_0xd2d648,_0x798501,_0xdb0e7e[_0x17670d(0x15f)],this['_injector']);return this[_0x17670d(0x189)](_0x5d014c,_0xd2d648,_0x798501,_0xdb0e7e['drawId']),_0x5d014c;}return new P(_0xd2d648,_0x798501,_0x21dce4(),this[_0x17670d(0x185)]);}[_0x56e141(0x18b)](_0x25ec4e){const _0x2d8184=_0x56e141;let _0xd102b=this[_0x2d8184(0x1c2)]()[_0x2d8184(0x1a2)](),_0x54c119=this['getSheetId']();if(_0x25ec4e){let _0x39678b=new F(_0xd102b,_0x54c119,_0x25ec4e[_0x2d8184(0x15f)],this['_injector']);return this[_0x2d8184(0x189)](_0x39678b,_0xd102b,_0x54c119,_0x25ec4e['drawId']),_0x39678b;}return new F(_0xd102b,_0x54c119,_0x21dce4(),this[_0x2d8184(0x185)]);}['getShapes'](){const _0x3ef356=_0x56e141;let _0x1ab23d=this['_injector'][_0x3ef356(0x1db)](_0x484e55),_0x255f35=this[_0x3ef356(0x1c2)]()[_0x3ef356(0x1a2)](),_0x2fa91d=this[_0x3ef356(0x1ae)](),_0x4d19c3=_0x1ab23d[_0x3ef356(0x1bf)](_0x255f35,_0x2fa91d);if(!_0x4d19c3)return[];let _0x120589=[];for(let [_0x50240a,_0x4666ff]of Object[_0x3ef356(0x1d3)](_0x4d19c3))if(_0x4666ff&&_0x4666ff['drawingType']===_0x2b91e5[_0x3ef356(0x183)]){let _0x1fcf4e=new P(_0x255f35,_0x2fa91d,_0x50240a,this[_0x3ef356(0x185)]);this[_0x3ef356(0x189)](_0x1fcf4e,_0x255f35,_0x2fa91d,_0x50240a),_0x120589[_0x3ef356(0x1d7)](_0x1fcf4e);}return _0x120589;}[_0x56e141(0x1b3)](_0x49aa56){const _0x2673c6=_0x56e141;let {unitId:_0x2ec5ea,subUnitId:_0x115875,drawId:_0x5cd31c}=_0x49aa56;return this['_commandService'][_0x2673c6(0x1c1)](_0x509e0e['id'],{'unitId':_0x2ec5ea,'drawings':[{'unitId':_0x2ec5ea,'subUnitId':_0x115875,'drawingId':_0x5cd31c,'drawingType':_0x2b91e5['DRAWING_SHAPE']}]});}async[_0x56e141(0x163)](_0x669900){const _0x330823=_0x56e141;let {connector:_0x1b36a3,startTarget:_0x163461,endTarget:_0x3ea612}=_0x669900;if(!_0x163461&&!_0x3ea612)return!0x1;let _0x4051d7=this[_0x330823(0x1c2)]()[_0x330823(0x1a2)](),_0x22d8e6=this[_0x330823(0x1ae)](),_0x503947=this['_injector'][_0x330823(0x1db)](_0x4354de),_0x547297=this[_0x330823(0x185)]['get'](_0x34e233),_0x1ae27a=_0x503947['getShapeModel'](_0x4051d7,_0x22d8e6,_0x1b36a3[_0x330823(0x15f)]);if(!_0x1ae27a)return!0x1;let _0x151c28=_0x1ae27a[_0x330823(0x174)](),_0x45d435=_0x1ae27a['getShapeRelation'](),_0x4742b8={};for(let _0x15ea01 of _0x1ae27a[_0x330823(0x17e)]()){let _0x3fd134=_0x1ae27a[_0x330823(0x1cc)](_0x15ea01);_0x3fd134!==void 0x0&&(_0x4742b8[_0x15ea01]=_0x3fd134);}let {startInfo:_0x26b6d8,endInfo:_0x353e79}=this['_resolveEndpoints'](_0x4051d7,_0x22d8e6,_0x1b36a3,_0x1ae27a,_0x163461,_0x3ea612,_0x503947,_0x547297,_0x45d435);if(!_0x26b6d8||!_0x353e79)return!0x1;let _0x43049a=_0x17f637(_0x1cb25a(_0x26b6d8,_0x353e79,_0x151c28),_0x151c28),_0x17972e={};return _0x163461?_0x17972e[_0x330823(0x1b5)]={'shapeId':_0x163461[_0x330823(0x190)][_0x330823(0x15f)],'cxnIndex':_0x163461[_0x330823(0x1d8)]}:_0x45d435!=null&&_0x45d435[_0x330823(0x1b5)]&&(_0x17972e[_0x330823(0x1b5)]=_0x45d435[_0x330823(0x1b5)]),_0x3ea612?_0x17972e['to']={'shapeId':_0x3ea612[_0x330823(0x190)][_0x330823(0x15f)],'cxnIndex':_0x3ea612[_0x330823(0x1d8)]}:_0x45d435!=null&&_0x45d435['to']&&(_0x17972e['to']=_0x45d435['to']),this['_commandService']['executeCommand'](_0x5366c4['id'],{'unitId':_0x4051d7,'subUnitId':_0x22d8e6,'connectorShapeId':_0x1b36a3[_0x330823(0x15f)],'width':_0x43049a['worldRect'][_0x330823(0x1b9)],'height':_0x43049a['worldRect'][_0x330823(0x1b7)],'left':_0x43049a['worldRect']['left'],'top':_0x43049a['worldRect'][_0x330823(0x1ca)],'flipX':_0x43049a['worldRect'][_0x330823(0x18d)]||!0x1,'flipY':_0x43049a[_0x330823(0x1af)][_0x330823(0x1ab)]||!0x1,'oldAdjustValues':_0x4742b8,'newAdjustValues':_0x43049a[_0x330823(0x18f)],'newLineType':_0x43049a[_0x330823(0x1b6)],'oldLineType':_0x151c28,'rotation':_0x43049a['rotation'],'oldRelation':_0x45d435,'newRelation':_0x17972e});}[_0x56e141(0x189)](_0x2f4535,_0x4b1797,_0x3fd97d,_0x3cf42c){const _0x2f572d=_0x56e141;let _0x2a2027=this[_0x2f572d(0x185)][_0x2f572d(0x1db)](_0x34e233)['getDrawingByParam']({'unitId':_0x4b1797,'subUnitId':_0x3fd97d,'drawingId':_0x3cf42c});if(_0x2a2027!=null&&_0x2a2027['transform']){var _0x353fef,_0x27ee89,_0xbf662e,_0x44ea1a;_0x2f4535['x']=(_0x353fef=_0x2a2027[_0x2f572d(0x1bb)][_0x2f572d(0x15e)])==null?0x0:_0x353fef,_0x2f4535['y']=(_0x27ee89=_0x2a2027[_0x2f572d(0x1bb)][_0x2f572d(0x1ca)])==null?0x0:_0x27ee89,_0x2f4535['width']=(_0xbf662e=_0x2a2027[_0x2f572d(0x1bb)][_0x2f572d(0x1b9)])==null?_0x2f4535[_0x2f572d(0x1b9)]:_0xbf662e,_0x2f4535[_0x2f572d(0x1b7)]=(_0x44ea1a=_0x2a2027[_0x2f572d(0x1bb)][_0x2f572d(0x1b7)])==null?_0x2f4535[_0x2f572d(0x1b7)]:_0x44ea1a;}let _0x4eb189=this[_0x2f572d(0x185)][_0x2f572d(0x1db)](_0x4354de)['getShapeModel'](_0x4b1797,_0x3fd97d,_0x3cf42c);if(_0x4eb189){_0x2f4535[_0x2f572d(0x197)]=_0x4eb189[_0x2f572d(0x174)]();let _0x249729=_0x4eb189[_0x2f572d(0x160)]();_0x249729&&(_0x2f4535[_0x2f572d(0x1a9)]=JSON[_0x2f572d(0x1a3)](JSON[_0x2f572d(0x168)](_0x249729)));}}['_resolveEndpoints'](_0x28063b,_0x256056,_0x392268,_0xda0def,_0x5132f1,_0x5e29b5,_0x25579d,_0x1fdbdc,_0x4ceb1b){const _0x3b2a82=_0x56e141;let _0x52297a=null,_0x26131c=null;return _0x5132f1&&(_0x52297a=I(_0x28063b,_0x256056,_0x5132f1[_0x3b2a82(0x190)]['drawId'],_0x5132f1[_0x3b2a82(0x1d8)],_0x25579d,_0x1fdbdc)),_0x5e29b5&&(_0x26131c=I(_0x28063b,_0x256056,_0x5e29b5[_0x3b2a82(0x190)]['drawId'],_0x5e29b5['connectionSiteIndex'],_0x25579d,_0x1fdbdc)),_0x52297a||(_0x52297a=this['_resolveExistingOrFreeEndpoint'](_0x28063b,_0x256056,_0x392268['drawId'],!0x0,_0x26131c,_0x4ceb1b==null?void 0x0:_0x4ceb1b[_0x3b2a82(0x1b5)],_0x25579d,_0x1fdbdc)),_0x26131c||(_0x26131c=this['_resolveExistingOrFreeEndpoint'](_0x28063b,_0x256056,_0x392268['drawId'],!0x1,_0x52297a,_0x4ceb1b==null?void 0x0:_0x4ceb1b['to'],_0x25579d,_0x1fdbdc)),{'startInfo':_0x52297a,'endInfo':_0x26131c};}[_0x56e141(0x19e)](_0x135a6b,_0x17b6ea,_0x42c4d4,_0x22bf3b,_0x22ecab,_0x4f538a,_0x3d3dd8,_0x36ae46){const _0x27f0d8=_0x56e141;if(_0x4f538a){let _0x334826=I(_0x135a6b,_0x17b6ea,_0x4f538a[_0x27f0d8(0x193)],_0x4f538a['cxnIndex'],_0x3d3dd8,_0x36ae46);if(_0x334826)return _0x334826;}return _0x22ecab?R(_0x135a6b,_0x17b6ea,_0x42c4d4,_0x22bf3b,_0x22ecab,_0x3d3dd8,_0x36ae46):null;}};_0x1af2a2[_0x56e141(0x196)](z);export{F as FConnectorShape,P as FShape};
1
+ const _0x2d9630=_0x539f;(function(_0x54d9e0,_0x46671b){const _0xa72ce=_0x539f,_0xdc917=_0x54d9e0();while(!![]){try{const _0x22d5e0=parseInt(_0xa72ce(0x106))/0x1+parseInt(_0xa72ce(0xaa))/0x2+parseInt(_0xa72ce(0xa4))/0x3*(parseInt(_0xa72ce(0xa2))/0x4)+parseInt(_0xa72ce(0xb0))/0x5+-parseInt(_0xa72ce(0x96))/0x6+-parseInt(_0xa72ce(0xdf))/0x7*(parseInt(_0xa72ce(0x100))/0x8)+-parseInt(_0xa72ce(0xd6))/0x9;if(_0x22d5e0===_0x46671b)break;else _0xdc917['push'](_0xdc917['shift']());}catch(_0x4c491f){_0xdc917['push'](_0xdc917['shift']());}}}(_0x5702,0xc1b2d));import{ConnectorCoordinateTransform as _0x3f5f02,ShapeArrowSizeEnum as _0x50cc04,ShapeArrowTypeEnum as _0x57158a,ShapeFillEnum as _0x5dbaee,ShapeGradientTypeEnum as _0x4aa13d,ShapeLineCapEnum as _0x81888a,ShapeLineDashEnum as _0x365de7,ShapeLineJoinEnum as _0x518da2,ShapeLineTypeEnum as _0x4153fd,ShapeTypeEnum as _0x332cf2,computeConnectorRouteLayout as _0x41ee51,getBasicShapeRotateBound as _0x31d35f,isConnectorShape as _0x147008,routeConnectorLineShape as _0x471885}from'@univerjs-pro/engine-shape';import{FEnum as _0x1cd10d}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x57cbf0,DEFAULT_SHAPE_WIDTH as _0x82d213,InsertShapeCommand as _0x2e53d3,SetShapeDrawingDataCommand as _0xc8e4fb,SheetsShapeService as _0x4cfbb0,UpdateConnectorRelationCommand as _0x20a1ba}from'@univerjs-pro/sheets-shape';function _0x539f(_0x3e93ed,_0x137e24){_0x3e93ed=_0x3e93ed-0x88;const _0x5702b8=_0x5702();let _0x539f5d=_0x5702b8[_0x3e93ed];return _0x539f5d;}function _0x5702(){const _0x437b2f=['width','ensureSkeleton','localToWorld','NoFill','abs','type','stringify','adjustValues','ShapeFillEnum','extend','setShapeType','cos','build','color','setPosition','keys','setEndArrowType','endArrow','setStrokeWidth','setStrokeLineCapType','subUnitId','getShapes','getStartConnectInfo','getShapeType','setStrokeColor','1264yldKvh','insertShape','iterator','executeCommand','capType','getAdjustNames','40658BZpZNQ','\x20not\x20found','gradientStops','DRAWING_SHAPE','getPosition','ShapeArrowSizeEnum','constructor','fill','length','default','top','getSize','getShapeModel','function','GradientFill','Skeleton\x20for\x20unitId\x20','startArrow','2174556hciJeU','relation','transform','unitId','isLineShape','prototype','index','setShapeGradientFill','getEndConnectInfo','entries','push','point','1660uMZCtt','ShapeLineJoinEnum','5937jhxEiy','opacity','string','_preloadShapeProperties','getConnectionSiteList','getAdjustValueByName','1723330KdVmHM','gradientType','getSheetId','flipX','getDrawingByParam','getShapeData','2080245flpsFi','shapeData','ShapeLineCapEnum','defineProperty','getDrawingPoints','getWorkbook','\x20and\x20subUnitId\x20','from','getShapeId','gradientAngle','_commandService','removeShape','ShapeArrowTypeEnum','worldRect','left','setStrokeLineDashType','shapeType','lineType','setStrokeOpacity','flipY','symbol','_injector',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','shapeId','object','ShapeTypeEnum','lineJoinType','setEndArrowSize','drawingType','height','getAdjustPoints','stroke','setNoneFill','setStrokeLineType','newShape','_resolveEndpoints','getConnectorLinePoints','setStartArrowType','8614260SFaGNx','cxnIndex','shape','size','get','fillType','updateContext','ShapeGradientTypeEnum','drawId','1183uRUcbw','SolidFil','dashType','connectionSiteIndex','getConnectionSites','setStartArrowSize','lineStrokeType','getUnitId'];_0x5702=function(){return _0x437b2f;};return _0x5702();}import{DrawingTypeEnum as _0x5dd802,generateRandomId as _0x4ad178}from'@univerjs/core';import{IDrawingManagerService as _0x1f0733}from'@univerjs/drawing';import{SheetSkeletonService as _0x45d511,convertPositionCellToSheetOverGrid as _0x30350e}from'@univerjs/sheets';import{ISheetDrawingService as _0x4f2a92,RemoveSheetDrawingCommand as _0x360a01}from'@univerjs/sheets-drawing';import{FWorksheet as _0x5b4d34}from'@univerjs/sheets/facade';var k=class extends _0x1cd10d{get[_0x2d9630(0xc9)](){return _0x332cf2;}get[_0x2d9630(0xef)](){return _0x5dbaee;}get[_0x2d9630(0xdd)](){return _0x4aa13d;}get['ShapeLineTypeEnum'](){return _0x4153fd;}get['ShapeLineDashEnum'](){return _0x365de7;}get[_0x2d9630(0xb2)](){return _0x81888a;}get[_0x2d9630(0xa3)](){return _0x518da2;}get[_0x2d9630(0xbc)](){return _0x57158a;}get[_0x2d9630(0x8a)](){return _0x50cc04;}};_0x1cd10d[_0x2d9630(0xf0)](k);function A(_0x4464a4){'@babel/helpers - typeof';const _0x5d0695=_0x2d9630;return A=typeof Symbol==_0x5d0695(0x92)&&typeof Symbol[_0x5d0695(0x102)]==_0x5d0695(0xc4)?function(_0x4243a6){return typeof _0x4243a6;}:function(_0xfe500){const _0x276cc7=_0x5d0695;return _0xfe500&&typeof Symbol==_0x276cc7(0x92)&&_0xfe500[_0x276cc7(0x8b)]===Symbol&&_0xfe500!==Symbol[_0x276cc7(0x9b)]?'symbol':typeof _0xfe500;},A(_0x4464a4);}function j(_0x1eba5a,_0x2a91b0){const _0x5c7229=_0x2d9630;if(A(_0x1eba5a)!='object'||!_0x1eba5a)return _0x1eba5a;var _0x17a97e=_0x1eba5a[Symbol['toPrimitive']];if(_0x17a97e!==void 0x0){var _0x3657a6=_0x17a97e['call'](_0x1eba5a,_0x2a91b0||_0x5c7229(0x8e));if(A(_0x3657a6)!=_0x5c7229(0xc8))return _0x3657a6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2a91b0==='string'?String:Number)(_0x1eba5a);}function M(_0x473586){const _0x429391=_0x2d9630;var _0x12b0a6=j(_0x473586,_0x429391(0xa6));return A(_0x12b0a6)==_0x429391(0xc4)?_0x12b0a6:_0x12b0a6+'';}function N(_0x17280a,_0xa51360,_0x3d5952){const _0x271cea=_0x2d9630;return(_0xa51360=M(_0xa51360))in _0x17280a?Object[_0x271cea(0xb3)](_0x17280a,_0xa51360,{'value':_0x3d5952,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17280a[_0xa51360]=_0x3d5952,_0x17280a;}var P=class{constructor(_0x502165,_0x4043cb,_0x28e3eb,_0x16bb50){const _0x598ded=_0x2d9630;N(this,_0x598ded(0x99),void 0x0),N(this,_0x598ded(0xfb),void 0x0),N(this,_0x598ded(0xde),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x598ded(0xe7),_0x82d213),N(this,_0x598ded(0xcd),_0x57cbf0),N(this,_0x598ded(0xc0),void 0x0),N(this,_0x598ded(0xb1),{}),N(this,_0x598ded(0xc5),void 0x0),this['unitId']=_0x502165,this[_0x598ded(0xfb)]=_0x4043cb,this['drawId']=_0x28e3eb||_0x4ad178(),this[_0x598ded(0xc5)]=_0x16bb50;}[_0x2d9630(0xf5)](_0x2077a9,_0x510570,_0x3f6ca6,_0x3d43a2){const _0x39c5a4=_0x2d9630;let _0xf2b3da=this[_0x39c5a4(0xc5)][_0x39c5a4(0xda)](_0x45d511)[_0x39c5a4(0xe8)](this['unitId'],this['subUnitId']);if(!_0xf2b3da)throw Error(_0x39c5a4(0x94)+this['unitId']+_0x39c5a4(0xb6)+this[_0x39c5a4(0xfb)]+'\x20not\x20found');let {transform:_0xd0da30}=_0x30350e(this[_0x39c5a4(0x99)],this[_0x39c5a4(0xfb)],{'row':_0x2077a9,'column':_0x510570,'rowOffset':_0x3f6ca6,'columnOffset':_0x3d43a2},0x1,0x1,_0xf2b3da);return this['x']=_0xd0da30[_0x39c5a4(0xbe)],this['y']=_0xd0da30[_0x39c5a4(0x8f)],this;}['setAbsolutePosition'](_0x18c9a8,_0x1065e3){return this['x']=_0x18c9a8,this['y']=_0x1065e3,this;}[_0x2d9630(0xf1)](_0x358584){const _0x32cbf8=_0x2d9630;return this[_0x32cbf8(0xc0)]=_0x358584,this;}['setShapeSolidFill'](_0x4af407,_0x1f5a9a){const _0x32a701=_0x2d9630;return this['shapeData']['fill']||(this['shapeData'][_0x32a701(0x8c)]={}),this['shapeData'][_0x32a701(0x8c)]['fillType']=_0x5dbaee[_0x32a701(0xe0)],_0x4af407!==void 0x0&&(this[_0x32a701(0xb1)][_0x32a701(0x8c)][_0x32a701(0xf4)]=_0x4af407),_0x1f5a9a!==void 0x0&&(this['shapeData'][_0x32a701(0x8c)][_0x32a701(0xa5)]=_0x1f5a9a),this;}[_0x2d9630(0x9d)](_0x4f76a3,_0x376fe2,_0x5b8ddc){const _0x1a8f82=_0x2d9630;if(_0x376fe2===void 0x0||_0x376fe2['length']===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this['shapeData'][_0x1a8f82(0x8c)]||(this[_0x1a8f82(0xb1)][_0x1a8f82(0x8c)]={}),this[_0x1a8f82(0xb1)][_0x1a8f82(0x8c)][_0x1a8f82(0x108)]=_0x376fe2,this[_0x1a8f82(0xb1)]['fill'][_0x1a8f82(0xdb)]=_0x5dbaee[_0x1a8f82(0x93)],this[_0x1a8f82(0xb1)][_0x1a8f82(0x8c)][_0x1a8f82(0xab)]=_0x4f76a3,_0x5b8ddc!==void 0x0&&(this[_0x1a8f82(0xb1)][_0x1a8f82(0x8c)][_0x1a8f82(0xb9)]=_0x5b8ddc),this;}[_0x2d9630(0xd0)](){const _0x1f5c72=_0x2d9630;return this[_0x1f5c72(0xb1)]['fill']={'fillType':_0x5dbaee[_0x1f5c72(0xea)]},this;}[_0x2d9630(0xff)](_0x3b7a63){const _0x2a6bc0=_0x2d9630;return this['shapeData'][_0x2a6bc0(0xcf)]||(this[_0x2a6bc0(0xb1)][_0x2a6bc0(0xcf)]={}),this[_0x2a6bc0(0xb1)][_0x2a6bc0(0xcf)][_0x2a6bc0(0xf4)]=_0x3b7a63,this;}[_0x2d9630(0xf9)](_0x3f0027){const _0x5a3594=_0x2d9630;return this[_0x5a3594(0xb1)][_0x5a3594(0xcf)]||(this[_0x5a3594(0xb1)]['stroke']={}),this[_0x5a3594(0xb1)][_0x5a3594(0xcf)][_0x5a3594(0xe7)]=_0x3f0027,this;}[_0x2d9630(0xbf)](_0x190457){const _0x2fb6e6=_0x2d9630;return this[_0x2fb6e6(0xb1)][_0x2fb6e6(0xcf)]||(this[_0x2fb6e6(0xb1)][_0x2fb6e6(0xcf)]={}),this['shapeData']['stroke'][_0x2fb6e6(0xe1)]=_0x190457,this;}['setStrokeLineJoinType'](_0x2579a5){const _0x5c40f8=_0x2d9630;return this['shapeData'][_0x5c40f8(0xcf)]||(this[_0x5c40f8(0xb1)][_0x5c40f8(0xcf)]={}),this[_0x5c40f8(0xb1)][_0x5c40f8(0xcf)][_0x5c40f8(0xca)]=_0x2579a5,this;}[_0x2d9630(0xfa)](_0x3cb084){const _0x186102=_0x2d9630;return this[_0x186102(0xb1)][_0x186102(0xcf)]||(this[_0x186102(0xb1)][_0x186102(0xcf)]={}),this[_0x186102(0xb1)][_0x186102(0xcf)][_0x186102(0x104)]=_0x3cb084,this;}[_0x2d9630(0xc2)](_0x107d72){const _0x107bb8=_0x2d9630;return this[_0x107bb8(0xb1)]['stroke']||(this[_0x107bb8(0xb1)][_0x107bb8(0xcf)]={}),this[_0x107bb8(0xb1)][_0x107bb8(0xcf)][_0x107bb8(0xa5)]=_0x107d72,this;}[_0x2d9630(0xd1)](_0x22ecb7){const _0x5dc1bf=_0x2d9630;return this['shapeData'][_0x5dc1bf(0xcf)]||(this['shapeData'][_0x5dc1bf(0xcf)]={}),this[_0x5dc1bf(0xb1)][_0x5dc1bf(0xcf)][_0x5dc1bf(0xe5)]=_0x22ecb7,this;}['setWidth'](_0x16222a){return this['width']=_0x16222a,this;}['setHeight'](_0x281759){const _0x16f77b=_0x2d9630;return this[_0x16f77b(0xcd)]=_0x281759,this;}[_0x2d9630(0x9a)](){const _0x21f7de=_0x2d9630;let _0xd7d658=this[_0x21f7de(0xc5)][_0x21f7de(0xda)](_0x4cfbb0)[_0x21f7de(0x91)](this[_0x21f7de(0x99)],this[_0x21f7de(0xfb)],this[_0x21f7de(0xde)]);return _0xd7d658?_0x147008(_0xd7d658['getShapeType']()):this[_0x21f7de(0xc0)]?_0x147008(this[_0x21f7de(0xc0)]):!0x1;}[_0x2d9630(0xe3)](){const _0x317813=_0x2d9630;let _0x4c7c77=this['_injector']['get'](_0x4cfbb0)['getShapeModel'](this[_0x317813(0x99)],this[_0x317813(0xfb)],this[_0x317813(0xde)]);if(!_0x4c7c77)return[];let _0x6f6a58=this[_0x317813(0xc5)][_0x317813(0xda)](_0x1f0733)[_0x317813(0xae)]({'unitId':this[_0x317813(0x99)],'subUnitId':this[_0x317813(0xfb)],'drawingId':this[_0x317813(0xde)]});if(!(_0x6f6a58!=null&&_0x6f6a58[_0x317813(0x98)]))return[];let {width:_0x4c981d=0x0,height:_0x5576ac=0x0}=_0x6f6a58[_0x317813(0x98)];return _0x4c7c77[_0x317813(0xdc)]({'width':_0x4c981d,'height':_0x5576ac}),_0x4c7c77['getConnectionSiteList']();}[_0x2d9630(0xce)](){const _0x48da2a=_0x2d9630;let _0x33f03c=this[_0x48da2a(0xc5)][_0x48da2a(0xda)](_0x4cfbb0)[_0x48da2a(0x91)](this[_0x48da2a(0x99)],this[_0x48da2a(0xfb)],this[_0x48da2a(0xde)]);if(!_0x33f03c)return[];let _0x4f852a=this[_0x48da2a(0xc5)][_0x48da2a(0xda)](_0x1f0733)[_0x48da2a(0xae)]({'unitId':this['unitId'],'subUnitId':this[_0x48da2a(0xfb)],'drawingId':this[_0x48da2a(0xde)]});if(!(_0x4f852a!=null&&_0x4f852a[_0x48da2a(0x98)]))return[];let {width:_0x428245=0x0,height:_0x129861=0x0}=_0x4f852a['transform'];return _0x33f03c[_0x48da2a(0xdc)]({'width':_0x428245,'height':_0x129861}),_0x33f03c[_0x48da2a(0xb4)]();}[_0x2d9630(0xd4)](){const _0x4133c6=_0x2d9630;let _0x5eef8d=this['_injector'][_0x4133c6(0xda)](_0x4cfbb0)[_0x4133c6(0x91)](this[_0x4133c6(0x99)],this[_0x4133c6(0xfb)],this['drawId']);if(!_0x5eef8d||!_0x147008(_0x5eef8d[_0x4133c6(0xfe)]()))return[];let _0x400642=this[_0x4133c6(0xc5)][_0x4133c6(0xda)](_0x1f0733)[_0x4133c6(0xae)]({'unitId':this[_0x4133c6(0x99)],'subUnitId':this[_0x4133c6(0xfb)],'drawingId':this['drawId']});if(!(_0x400642!=null&&_0x400642[_0x4133c6(0x98)]))return[];let {width:_0x3d57e0=0x0,height:_0x3c5fb1=0x0}=_0x400642[_0x4133c6(0x98)];return _0x5eef8d[_0x4133c6(0xdc)]({'width':_0x3d57e0,'height':_0x3c5fb1}),_0x5eef8d[_0x4133c6(0xd4)]();}['getStartConnectInfo'](){const _0x20b4bd=_0x2d9630;var _0x525bb2;let _0x2d56db=this[_0x20b4bd(0xc5)]['get'](_0x4cfbb0)[_0x20b4bd(0x91)](this[_0x20b4bd(0x99)],this['subUnitId'],this[_0x20b4bd(0xde)]);return _0x2d56db?(_0x525bb2=_0x2d56db[_0x20b4bd(0xfd)]())==null?null:_0x525bb2:null;}[_0x2d9630(0x9e)](){const _0x1dfe31=_0x2d9630;var _0x1ae670;let _0x245e3c=this[_0x1dfe31(0xc5)][_0x1dfe31(0xda)](_0x4cfbb0)['getShapeModel'](this[_0x1dfe31(0x99)],this[_0x1dfe31(0xfb)],this[_0x1dfe31(0xde)]);return _0x245e3c?(_0x1ae670=_0x245e3c[_0x1dfe31(0x9e)]())==null?null:_0x1ae670:null;}[_0x2d9630(0xf3)](){const _0x2522e0=_0x2d9630;var _0x59ab9f,_0x493078;if(!this['shapeType'])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0xfc9627=this[_0x2522e0(0xc5)]['get'](_0x45d511)[_0x2522e0(0xe8)](this['unitId'],this[_0x2522e0(0xfb)]);if(!_0xfc9627)throw Error(_0x2522e0(0x94)+this['unitId']+_0x2522e0(0xb6)+this[_0x2522e0(0xfb)]+_0x2522e0(0x107));let {transform:_0x240082}=_0x30350e(this[_0x2522e0(0x99)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0xfc9627);this['x']=this['x']>0x0?this['x']:_0x240082[_0x2522e0(0xbe)],this['y']=this['y']>0x0?this['y']:_0x240082['top'];}return this[_0x2522e0(0xe7)]=(_0x59ab9f=this[_0x2522e0(0xe7)])==null?_0x82d213:_0x59ab9f,this[_0x2522e0(0xcd)]=(_0x493078=this[_0x2522e0(0xcd)])==null?_0x57cbf0:_0x493078,{'unitId':this[_0x2522e0(0x99)],'subUnitId':this['subUnitId'],'shapeId':this[_0x2522e0(0xde)],'shapeType':this[_0x2522e0(0xc0)],'shapeData':Object[_0x2522e0(0xf6)](this[_0x2522e0(0xb1)])[_0x2522e0(0x8d)]>0x0?this[_0x2522e0(0xb1)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x2522e0(0xe7)],'height':this[_0x2522e0(0xcd)]};}[_0x2d9630(0xb8)](){const _0x264db0=_0x2d9630;return this[_0x264db0(0xde)];}['getShapeType'](){const _0x59f308=_0x2d9630;return this[_0x59f308(0xc0)];}[_0x2d9630(0xaf)](){return this['shapeData'];}[_0x2d9630(0x89)](){return{'x':this['x'],'y':this['y']};}[_0x2d9630(0x90)](){const _0xb6e2f8=_0x2d9630;return{'width':this[_0xb6e2f8(0xe7)],'height':this[_0xb6e2f8(0xcd)]};}},F=class extends P{constructor(_0x56182a,_0x1a40e0,_0x72f3,_0x1db2ee){const _0x4278dc=_0x2d9630;super(_0x56182a,_0x1a40e0,_0x72f3,_0x1db2ee),N(this,_0x4278dc(0xb1),{});}[_0x2d9630(0xf1)](_0x105cff){const _0x262dbf=_0x2d9630;if(!_0x147008(_0x105cff))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x105cff+_0x262dbf(0xc6));return super[_0x262dbf(0xf1)](_0x105cff),this;}[_0x2d9630(0xd5)](_0x383959){const _0x5a0fac=_0x2d9630;var _0x4a8032,_0x5bc284;return(_0x4a8032=this['shapeData'])!=null&&_0x4a8032['ln']||(this['shapeData']['ln']={}),!((_0x5bc284=this[_0x5a0fac(0xb1)])==null||(_0x5bc284=_0x5bc284['ln'])==null)&&_0x5bc284[_0x5a0fac(0x95)]||(this[_0x5a0fac(0xb1)]['ln']['startArrow']={}),this[_0x5a0fac(0xb1)]['ln'][_0x5a0fac(0x95)][_0x5a0fac(0xec)]=_0x383959,this;}[_0x2d9630(0xf7)](_0x1a11d3){const _0x5c01c0=_0x2d9630;var _0x35d163,_0x461f05;return(_0x35d163=this['shapeData'])!=null&&_0x35d163['ln']||(this[_0x5c01c0(0xb1)]['ln']={}),!((_0x461f05=this[_0x5c01c0(0xb1)])==null||(_0x461f05=_0x461f05['ln'])==null)&&_0x461f05[_0x5c01c0(0xf8)]||(this['shapeData']['ln']['endArrow']={}),this[_0x5c01c0(0xb1)]['ln']['endArrow']['type']=_0x1a11d3,this;}[_0x2d9630(0xe4)](_0x94da41){const _0x2817a1=_0x2d9630;var _0xc77a6d,_0x17e34e;return(_0xc77a6d=this[_0x2817a1(0xb1)])!=null&&_0xc77a6d['ln']||(this[_0x2817a1(0xb1)]['ln']={}),!((_0x17e34e=this['shapeData'])==null||(_0x17e34e=_0x17e34e['ln'])==null)&&_0x17e34e[_0x2817a1(0x95)]||(this[_0x2817a1(0xb1)]['ln'][_0x2817a1(0x95)]={}),this['shapeData']['ln'][_0x2817a1(0x95)][_0x2817a1(0xd9)]=_0x94da41,this;}[_0x2d9630(0xcb)](_0x227620){const _0x5c3953=_0x2d9630;var _0x262f83,_0x351859;return(_0x262f83=this[_0x5c3953(0xb1)])!=null&&_0x262f83['ln']||(this[_0x5c3953(0xb1)]['ln']={}),!((_0x351859=this['shapeData'])==null||(_0x351859=_0x351859['ln'])==null)&&_0x351859['endArrow']||(this[_0x5c3953(0xb1)]['ln'][_0x5c3953(0xf8)]={}),this['shapeData']['ln'][_0x5c3953(0xf8)][_0x5c3953(0xd9)]=_0x227620,this;}[_0x2d9630(0xf3)](){const _0x179fb1=_0x2d9630;return super[_0x179fb1(0xf3)]();}[_0x2d9630(0x9e)](){const _0x29f692=_0x2d9630;var _0x447237;return((_0x447237=this[_0x29f692(0xb1)])==null||(_0x447237=_0x447237[_0x29f692(0x97)])==null?void 0x0:_0x447237['to'])||null;}['getStartConnectInfo'](){const _0x4b08db=_0x2d9630;var _0x16926e;return((_0x16926e=this['shapeData'])==null||(_0x16926e=_0x16926e['relation'])==null?void 0x0:_0x16926e[_0x4b08db(0xb7)])||null;}};function I(_0xfcc94,_0x17b70a,_0x3a9d1b,_0x2f3963,_0x53ae43,_0x2972a4){const _0x4b8ba5=_0x2d9630;let _0x4320b1=_0x53ae43[_0x4b8ba5(0x91)](_0xfcc94,_0x17b70a,_0x3a9d1b);if(!_0x4320b1)return null;let _0x1c5036=_0x2972a4['getDrawingByParam']({'unitId':_0xfcc94,'subUnitId':_0x17b70a,'drawingId':_0x3a9d1b});if(!(_0x1c5036!=null&&_0x1c5036[_0x4b8ba5(0x98)]))return null;let {left:_0x5205ad=0x0,top:_0x4f9555=0x0,width:_0x3d394c=0x0,height:_0x578172=0x0,flipX:_0x39b6b3=!0x1,flipY:_0x2a0eae=!0x1,angle:_0x4a7257}=_0x1c5036['transform'];_0x4320b1[_0x4b8ba5(0xdc)]({'width':_0x3d394c,'height':_0x578172});let _0x52bf4f=_0x4320b1[_0x4b8ba5(0xa8)]()['find'](_0x34b649=>_0x34b649[_0x4b8ba5(0x9c)]===_0x2f3963);if(!_0x52bf4f)return null;let _0x113d28=_0x39b6b3?_0x3d394c-_0x52bf4f['x']:_0x52bf4f['x'],_0x55f900=_0x2a0eae?_0x578172-_0x52bf4f['y']:_0x52bf4f['y'];if(_0x4a7257&&_0x4a7257!==0x0){let _0x504480=_0x4a7257*Math['PI']/0xb4,_0x2fe876=Math[_0x4b8ba5(0xf2)](_0x504480),_0x59764e=Math['sin'](_0x504480),_0x138c36=_0x3d394c/0x2,_0x3e79c0=_0x578172/0x2,_0xad0601=_0x113d28-_0x138c36,_0x4f58d7=_0x55f900-_0x3e79c0;_0x113d28=_0x138c36+_0xad0601*_0x2fe876-_0x4f58d7*_0x59764e,_0x55f900=_0x3e79c0+_0xad0601*_0x59764e+_0x4f58d7*_0x2fe876;}_0x113d28+=_0x5205ad,_0x55f900+=_0x4f9555;let _0x2f6452=_0x52bf4f['ang']/0xea60;_0x39b6b3&&(_0x2f6452=0xb4-_0x2f6452),_0x2a0eae&&(_0x2f6452=-_0x2f6452),_0x2f6452+=_0x4a7257||0x0,_0x2f6452=(_0x2f6452%0x168+0x168)%0x168;let _0x4dfd9b=_0x31d35f({'left':_0x5205ad,'top':_0x4f9555,'width':_0x3d394c,'height':_0x578172},_0x4a7257||0x0);return{'point':{'x':_0x113d28,'y':_0x55f900},'angle':_0x2f6452,'bounds':_0x4dfd9b};}function L(_0x34c3c5,_0x1bef19){const _0x3dabb5=_0x2d9630;let _0x51f24a=_0x1bef19['x']-_0x34c3c5['x'],_0x96ac2b=_0x1bef19['y']-_0x34c3c5['y'];return Math[_0x3dabb5(0xeb)](_0x51f24a)>=Math['abs'](_0x96ac2b)?_0x51f24a>=0x0?0xb4:0x0:_0x96ac2b>=0x0?0x10e:0x5a;}function R(_0x419811,_0x143f44,_0xc49bb1,_0x3d97d6,_0x5855b9,_0x372180,_0x22dbc1){const _0x19ae23=_0x2d9630;let _0x62d715=_0x372180[_0x19ae23(0x91)](_0x419811,_0x143f44,_0xc49bb1);if(!_0x62d715)return null;let _0x5043d3=_0x22dbc1[_0x19ae23(0xae)]({'unitId':_0x419811,'subUnitId':_0x143f44,'drawingId':_0xc49bb1});if(!(_0x5043d3!=null&&_0x5043d3[_0x19ae23(0x98)]))return null;let {left:_0x5dec24=0x0,top:_0x343fa3=0x0,width:_0x1e58a7=0x0,height:_0x218f4b=0x0,flipX:_0x3bf364=!0x1,flipY:_0x268869=!0x1}=_0x5043d3[_0x19ae23(0x98)];_0x62d715[_0x19ae23(0xdc)]({'width':_0x1e58a7,'height':_0x218f4b});let _0x47517a=_0x62d715[_0x19ae23(0xd4)]();if(_0x47517a[_0x19ae23(0x8d)]<0x2)return null;let _0x319d2c=_0x3d97d6?_0x47517a[0x0]:_0x47517a[_0x47517a[_0x19ae23(0x8d)]-0x1],_0x2be466=new _0x3f5f02({'left':_0x5dec24,'top':_0x343fa3,'width':_0x1e58a7,'height':_0x218f4b,'flipX':_0x3bf364,'flipY':_0x268869})[_0x19ae23(0xe9)](_0x319d2c);return{'point':_0x2be466,'angle':L(_0x5855b9[_0x19ae23(0xa1)],_0x2be466),'bounds':{'left':_0x2be466['x'],'top':_0x2be466['y'],'width':0x0,'height':0x0}};}var z=class extends _0x5b4d34{async[_0x2d9630(0x101)](_0x7f3959){const _0x4fe19f=_0x2d9630;let {unitId:_0x236eee,subUnitId:_0x15dce2,shapeId:_0x34b191,shapeType:_0x117a52,shapeData:_0x33bce4,x:_0x21f79f,y:_0x592579,width:_0x102629,height:_0x2a21a9}=_0x7f3959;return this[_0x4fe19f(0xba)]['executeCommand'](_0x2e53d3['id'],{'unitId':_0x236eee,'subUnitId':_0x15dce2,'shapeId':_0x34b191,'shapeType':_0x117a52,'shapeData':_0x33bce4,'position':{'x':_0x21f79f,'y':_0x592579},'width':_0x102629,'height':_0x2a21a9});}async['updateShape'](_0x4b1e80){const _0xc9eb2f=_0x2d9630;let {unitId:_0x278b60,subUnitId:_0x25e983,shapeId:_0x15b3b1,shapeType:_0x17ac8a,shapeData:_0x4fa334,x:_0x3033b1,y:_0x5607a9,width:_0xca80c3,height:_0x8dacb1}=_0x4b1e80;return this[_0xc9eb2f(0xba)][_0xc9eb2f(0x103)](_0xc8e4fb['id'],{'unitId':_0x278b60,'subUnitId':_0x25e983,'shapeId':_0x15b3b1,'shapeType':_0x17ac8a,'shapeData':_0x4fa334,'position':{'x':_0x3033b1,'y':_0x5607a9},'width':_0xca80c3,'height':_0x8dacb1});}[_0x2d9630(0xd2)](_0x568d29){const _0x4ab824=_0x2d9630;let _0x3d3e82=this['getWorkbook']()[_0x4ab824(0xe6)](),_0x38ac0b=this[_0x4ab824(0xac)]();if(_0x568d29){let _0x3dc406=new P(_0x3d3e82,_0x38ac0b,_0x568d29[_0x4ab824(0xde)],this['_injector']);return this[_0x4ab824(0xa7)](_0x3dc406,_0x3d3e82,_0x38ac0b,_0x568d29[_0x4ab824(0xde)]),_0x3dc406;}return new P(_0x3d3e82,_0x38ac0b,_0x4ad178(),this[_0x4ab824(0xc5)]);}['newConnector'](_0x2f71c6){const _0x2170cc=_0x2d9630;let _0x235380=this[_0x2170cc(0xb5)]()[_0x2170cc(0xe6)](),_0xd1cb0c=this[_0x2170cc(0xac)]();if(_0x2f71c6){let _0x40b4d4=new F(_0x235380,_0xd1cb0c,_0x2f71c6['drawId'],this[_0x2170cc(0xc5)]);return this[_0x2170cc(0xa7)](_0x40b4d4,_0x235380,_0xd1cb0c,_0x2f71c6[_0x2170cc(0xde)]),_0x40b4d4;}return new F(_0x235380,_0xd1cb0c,_0x4ad178(),this[_0x2170cc(0xc5)]);}[_0x2d9630(0xfc)](){const _0x1419ee=_0x2d9630;let _0x17d55e=this[_0x1419ee(0xc5)]['get'](_0x4f2a92),_0x522a1b=this[_0x1419ee(0xb5)]()[_0x1419ee(0xe6)](),_0x487c91=this[_0x1419ee(0xac)](),_0x4a7db4=_0x17d55e['getDrawingData'](_0x522a1b,_0x487c91);if(!_0x4a7db4)return[];let _0x4bf64b=[];for(let [_0x267eb9,_0x5b873e]of Object[_0x1419ee(0x9f)](_0x4a7db4))if(_0x5b873e&&_0x5b873e[_0x1419ee(0xcc)]===_0x5dd802[_0x1419ee(0x88)]){let _0x5766b0=new P(_0x522a1b,_0x487c91,_0x267eb9,this[_0x1419ee(0xc5)]);this[_0x1419ee(0xa7)](_0x5766b0,_0x522a1b,_0x487c91,_0x267eb9),_0x4bf64b[_0x1419ee(0xa0)](_0x5766b0);}return _0x4bf64b;}[_0x2d9630(0xbb)](_0x349a97){const _0x227c33=_0x2d9630;let {unitId:_0x5f2515,subUnitId:_0x10c010,drawId:_0x2757e7}=_0x349a97;return this[_0x227c33(0xba)][_0x227c33(0x103)](_0x360a01['id'],{'unitId':_0x5f2515,'drawings':[{'unitId':_0x5f2515,'subUnitId':_0x10c010,'drawingId':_0x2757e7,'drawingType':_0x5dd802['DRAWING_SHAPE']}]});}async['connectShapes'](_0x1139ba){const _0x5ea05c=_0x2d9630;let {connector:_0x595443,startTarget:_0x1ec564,endTarget:_0x5875f2}=_0x1139ba;if(!_0x1ec564&&!_0x5875f2)return!0x1;let _0x110ae7=this[_0x5ea05c(0xb5)]()[_0x5ea05c(0xe6)](),_0x212d42=this['getSheetId'](),_0x2455d9=this['_injector'][_0x5ea05c(0xda)](_0x4cfbb0),_0x277b6e=this[_0x5ea05c(0xc5)][_0x5ea05c(0xda)](_0x1f0733),_0x469e4d=_0x2455d9['getShapeModel'](_0x110ae7,_0x212d42,_0x595443[_0x5ea05c(0xde)]);if(!_0x469e4d)return!0x1;let _0x2f4b05=_0x469e4d['getShapeType'](),_0x5756d5=_0x469e4d['getShapeRelation'](),_0xb8d6fe={};for(let _0x354030 of _0x469e4d[_0x5ea05c(0x105)]()){let _0x3be7c3=_0x469e4d[_0x5ea05c(0xa9)](_0x354030);_0x3be7c3!==void 0x0&&(_0xb8d6fe[_0x354030]=_0x3be7c3);}let {startInfo:_0xa5b983,endInfo:_0x42e8ca}=this[_0x5ea05c(0xd3)](_0x110ae7,_0x212d42,_0x595443,_0x469e4d,_0x1ec564,_0x5875f2,_0x2455d9,_0x277b6e,_0x5756d5);if(!_0xa5b983||!_0x42e8ca)return!0x1;let _0x109ebd=_0x41ee51(_0x471885(_0xa5b983,_0x42e8ca,_0x2f4b05),_0x2f4b05),_0x36e8d9={};return _0x1ec564?_0x36e8d9[_0x5ea05c(0xb7)]={'shapeId':_0x1ec564['shape'][_0x5ea05c(0xde)],'cxnIndex':_0x1ec564[_0x5ea05c(0xe2)]}:_0x5756d5!=null&&_0x5756d5['from']&&(_0x36e8d9[_0x5ea05c(0xb7)]=_0x5756d5[_0x5ea05c(0xb7)]),_0x5875f2?_0x36e8d9['to']={'shapeId':_0x5875f2[_0x5ea05c(0xd8)]['drawId'],'cxnIndex':_0x5875f2['connectionSiteIndex']}:_0x5756d5!=null&&_0x5756d5['to']&&(_0x36e8d9['to']=_0x5756d5['to']),this[_0x5ea05c(0xba)]['executeCommand'](_0x20a1ba['id'],{'unitId':_0x110ae7,'subUnitId':_0x212d42,'connectorShapeId':_0x595443[_0x5ea05c(0xde)],'width':_0x109ebd['worldRect'][_0x5ea05c(0xe7)],'height':_0x109ebd[_0x5ea05c(0xbd)][_0x5ea05c(0xcd)],'left':_0x109ebd[_0x5ea05c(0xbd)][_0x5ea05c(0xbe)],'top':_0x109ebd[_0x5ea05c(0xbd)]['top'],'flipX':_0x109ebd[_0x5ea05c(0xbd)][_0x5ea05c(0xad)]||!0x1,'flipY':_0x109ebd[_0x5ea05c(0xbd)][_0x5ea05c(0xc3)]||!0x1,'oldAdjustValues':_0xb8d6fe,'newAdjustValues':_0x109ebd[_0x5ea05c(0xee)],'newLineType':_0x109ebd[_0x5ea05c(0xc1)],'oldLineType':_0x2f4b05,'rotation':_0x109ebd['rotation'],'oldRelation':_0x5756d5,'newRelation':_0x36e8d9});}['_preloadShapeProperties'](_0x113366,_0x44868a,_0x497ee9,_0x27f44e){const _0x56ed2b=_0x2d9630;let _0x43538b=this['_injector'][_0x56ed2b(0xda)](_0x1f0733)[_0x56ed2b(0xae)]({'unitId':_0x44868a,'subUnitId':_0x497ee9,'drawingId':_0x27f44e});if(_0x43538b!=null&&_0x43538b[_0x56ed2b(0x98)]){var _0x50d86c,_0x2b585b,_0x56e9b0,_0x589994;_0x113366['x']=(_0x50d86c=_0x43538b['transform'][_0x56ed2b(0xbe)])==null?0x0:_0x50d86c,_0x113366['y']=(_0x2b585b=_0x43538b['transform'][_0x56ed2b(0x8f)])==null?0x0:_0x2b585b,_0x113366[_0x56ed2b(0xe7)]=(_0x56e9b0=_0x43538b['transform'][_0x56ed2b(0xe7)])==null?_0x113366['width']:_0x56e9b0,_0x113366[_0x56ed2b(0xcd)]=(_0x589994=_0x43538b['transform'][_0x56ed2b(0xcd)])==null?_0x113366['height']:_0x589994;}let _0xcacc72=this[_0x56ed2b(0xc5)][_0x56ed2b(0xda)](_0x4cfbb0)[_0x56ed2b(0x91)](_0x44868a,_0x497ee9,_0x27f44e);if(_0xcacc72){_0x113366[_0x56ed2b(0xc0)]=_0xcacc72[_0x56ed2b(0xfe)]();let _0x55748d=_0xcacc72[_0x56ed2b(0xaf)]();_0x55748d&&(_0x113366[_0x56ed2b(0xb1)]=JSON['parse'](JSON[_0x56ed2b(0xed)](_0x55748d)));}}['_resolveEndpoints'](_0x5c1e4b,_0x58a81c,_0x213f0f,_0x59c7e5,_0x564dea,_0x51c78d,_0x190707,_0x233fc5,_0x275ebb){const _0x1f41df=_0x2d9630;let _0x194c89=null,_0x4f94fc=null;return _0x564dea&&(_0x194c89=I(_0x5c1e4b,_0x58a81c,_0x564dea[_0x1f41df(0xd8)][_0x1f41df(0xde)],_0x564dea[_0x1f41df(0xe2)],_0x190707,_0x233fc5)),_0x51c78d&&(_0x4f94fc=I(_0x5c1e4b,_0x58a81c,_0x51c78d[_0x1f41df(0xd8)][_0x1f41df(0xde)],_0x51c78d[_0x1f41df(0xe2)],_0x190707,_0x233fc5)),_0x194c89||(_0x194c89=this['_resolveExistingOrFreeEndpoint'](_0x5c1e4b,_0x58a81c,_0x213f0f['drawId'],!0x0,_0x4f94fc,_0x275ebb==null?void 0x0:_0x275ebb['from'],_0x190707,_0x233fc5)),_0x4f94fc||(_0x4f94fc=this['_resolveExistingOrFreeEndpoint'](_0x5c1e4b,_0x58a81c,_0x213f0f[_0x1f41df(0xde)],!0x1,_0x194c89,_0x275ebb==null?void 0x0:_0x275ebb['to'],_0x190707,_0x233fc5)),{'startInfo':_0x194c89,'endInfo':_0x4f94fc};}['_resolveExistingOrFreeEndpoint'](_0x1af5b4,_0x312dd8,_0x3f4628,_0x4e9107,_0x267130,_0x33a232,_0x3ba77b,_0x89a93d){const _0x279d20=_0x2d9630;if(_0x33a232){let _0x375511=I(_0x1af5b4,_0x312dd8,_0x33a232[_0x279d20(0xc7)],_0x33a232[_0x279d20(0xd7)],_0x3ba77b,_0x89a93d);if(_0x375511)return _0x375511;}return _0x267130?R(_0x1af5b4,_0x312dd8,_0x3f4628,_0x4e9107,_0x267130,_0x3ba77b,_0x89a93d):null;}};_0x5b4d34[_0x2d9630(0xf0)](z);export{F as FConnectorShape,P as FShape};