@univerjs-pro/sheets-shape 1.0.0-alpha.0 → 1.0.0-alpha.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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1d7d75=_0x59f6;(function(_0x595d22,_0x436b29){const _0x26bfe5=_0x59f6,_0x274e24=_0x595d22();while(!![]){try{const _0x872eee=parseInt(_0x26bfe5(0x1ab))/0x1*(-parseInt(_0x26bfe5(0x1a5))/0x2)+-parseInt(_0x26bfe5(0x1ea))/0x3*(parseInt(_0x26bfe5(0x1ef))/0x4)+parseInt(_0x26bfe5(0x170))/0x5*(parseInt(_0x26bfe5(0x1df))/0x6)+parseInt(_0x26bfe5(0x18d))/0x7+parseInt(_0x26bfe5(0x187))/0x8*(parseInt(_0x26bfe5(0x1e0))/0x9)+parseInt(_0x26bfe5(0x1b9))/0xa*(-parseInt(_0x26bfe5(0x1f0))/0xb)+parseInt(_0x26bfe5(0x17f))/0xc*(parseInt(_0x26bfe5(0x190))/0xd);if(_0x872eee===_0x436b29)break;else _0x274e24['push'](_0x274e24['shift']());}catch(_0xf17df5){_0x274e24['push'](_0x274e24['shift']());}}}(_0x3c76,0x878fd));import{ConnectorCoordinateTransform as _0x493e08,ShapeArrowSizeEnum as _0x2e9aa2,ShapeArrowTypeEnum as _0x5c3a0e,ShapeFillEnum as _0x47edb2,ShapeGradientTypeEnum as _0x424005,ShapeLineCapEnum as _0x1093eb,ShapeLineDashEnum as _0x4d9a3c,ShapeLineJoinEnum as _0x1c6191,ShapeLineTypeEnum as _0x1ae19f,ShapeTypeEnum as _0x398793,computeConnectorRouteLayout as _0x3001b1,getBasicShapeRotateBound as _0x1e3140,isConnectorShape as _0x36c8a8,routeConnectorLineShape as _0x1b19b5}from'@univerjs-pro/engine-shape';import{FEnum as _0x255646}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x5e205e,DEFAULT_SHAPE_WIDTH as _0x1968ac,InsertShapeCommand as _0x345c31,SetShapeDrawingDataCommand as _0x34acb3,SheetsShapeService as _0x268c64,UpdateConnectorRelationCommand as _0xe77cab}from'@univerjs-pro/sheets-shape';function _0x3c76(){const _0x317a0f=['executeCommand','extend','function','32YTJxQH','connectShapes','drawId','setShapeSolidFill','transform','dashType','7263060eqMDvT','getPosition','setStrokeLineDashType','1634035gexqfa','shapeData','getAdjustNames','setStartArrowType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','flipX','setStrokeLineJoinType','ShapeArrowSizeEnum','updateShape','startArrow','Skeleton\x20for\x20unitId\x20','entries','_injector','gradientStops','unitId','getEndConnectInfo','subUnitId','connectionSiteIndex','lineType','string','get','2ABqHHn','capType','size','getStartConnectInfo','left','setStrokeLineType','919991cOMRwM','ShapeFillEnum','parse','fillType','length','shape','isLineShape','adjustValues','setShapeData','rotation','find','_commandService','top','ensureSkeleton','10tcphDn','setStrokeWidth','localToWorld','getUnitId','updateContext','stroke','getDrawingPoints','flipY','shapeId','color','lineJoinType','getAdjustPoints','worldRect',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','ShapeArrowTypeEnum','ang','relation','prototype','push','getWorkbook','getShapeType','_resolveExistingOrFreeEndpoint','removeShape','\x20and\x20subUnitId\x20','DRAWING_SHAPE','setShapeType','getShapeData','setEndArrowType','NoFill','getShapeId','height','stringify','build','getDrawingByParam','call','from','insertShape','cos','2766558FdegMv','100917RVuoeM','shapeType','setStrokeColor','symbol','ShapeLineJoinEnum','ShapeTypeEnum','abs','point','fill','getAdjustValueByName','3006405AFhnfQ','keys','getShapeRelation','ShapeLineTypeEnum','gradientType','4xXDNyx','8625991EGZagj','getShapes','setWidth','object','_resolveEndpoints','ShapeLineCapEnum','10enziwt','cxnIndex','\x20not\x20found','drawingType','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','defineProperty','_preloadShapeProperties','getSheetId','getDrawingData','endArrow','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','iterator','opacity','getConnectorLinePoints','setPosition','120KgURkf','width','getShapeModel','setEndArrowSize','getConnectionSiteList'];_0x3c76=function(){return _0x317a0f;};return _0x3c76();}import{DrawingTypeEnum as _0x4cbea9,generateRandomId as _0x3103b4}from'@univerjs/core';function _0x59f6(_0x11b181,_0x3baf89){_0x11b181=_0x11b181-0x16f;const _0x3c7637=_0x3c76();let _0x59f6a8=_0x3c7637[_0x11b181];return _0x59f6a8;}import{IDrawingManagerService as _0x373af0}from'@univerjs/drawing';import{SheetSkeletonService as _0x66ec26,convertPositionCellToSheetOverGrid as _0xfb9513}from'@univerjs/sheets';import{ISheetDrawingService as _0x25ab1a,RemoveSheetDrawingCommand as _0x29e119}from'@univerjs/sheets-drawing';import{FWorksheet as _0xcea0c1}from'@univerjs/sheets/facade';var k=class extends _0x255646{get[_0x1d7d75(0x1e5)](){return _0x398793;}get[_0x1d7d75(0x1ac)](){return _0x47edb2;}get['ShapeGradientTypeEnum'](){return _0x424005;}get[_0x1d7d75(0x1ed)](){return _0x1ae19f;}get['ShapeLineDashEnum'](){return _0x4d9a3c;}get[_0x1d7d75(0x16f)](){return _0x1093eb;}get[_0x1d7d75(0x1e4)](){return _0x1c6191;}get[_0x1d7d75(0x1c7)](){return _0x5c3a0e;}get[_0x1d7d75(0x197)](){return _0x2e9aa2;}};_0x255646[_0x1d7d75(0x185)](k);function A(_0x4d88b9){'@babel/helpers - typeof';const _0x22db8f=_0x1d7d75;return A=typeof Symbol==_0x22db8f(0x186)&&typeof Symbol[_0x22db8f(0x17b)]==_0x22db8f(0x1e3)?function(_0x54fa45){return typeof _0x54fa45;}:function(_0x4080d7){const _0x348f32=_0x22db8f;return _0x4080d7&&typeof Symbol==_0x348f32(0x186)&&_0x4080d7['constructor']===Symbol&&_0x4080d7!==Symbol[_0x348f32(0x1ca)]?_0x348f32(0x1e3):typeof _0x4080d7;},A(_0x4d88b9);}function j(_0x3b7d48,_0x414297){const _0x26e391=_0x1d7d75;if(A(_0x3b7d48)!=_0x26e391(0x1f3)||!_0x3b7d48)return _0x3b7d48;var _0x966af9=_0x3b7d48[Symbol['toPrimitive']];if(_0x966af9!==void 0x0){var _0x17279f=_0x966af9[_0x26e391(0x1db)](_0x3b7d48,_0x414297||'default');if(A(_0x17279f)!=_0x26e391(0x1f3))return _0x17279f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x414297==='string'?String:Number)(_0x3b7d48);}function M(_0x23c7b1){const _0x3c47e1=_0x1d7d75;var _0x236a95=j(_0x23c7b1,_0x3c47e1(0x1a3));return A(_0x236a95)==_0x3c47e1(0x1e3)?_0x236a95:_0x236a95+'';}function N(_0x563f92,_0x4ea173,_0x36a88f){const _0x18835a=_0x1d7d75;return(_0x4ea173=M(_0x4ea173))in _0x563f92?Object[_0x18835a(0x175)](_0x563f92,_0x4ea173,{'value':_0x36a88f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x563f92[_0x4ea173]=_0x36a88f,_0x563f92;}var P=class{constructor(_0x33a62e,_0x174c15,_0x59bc8b,_0xa4d574){const _0x150a5e=_0x1d7d75;N(this,_0x150a5e(0x19e),void 0x0),N(this,_0x150a5e(0x1a0),void 0x0),N(this,_0x150a5e(0x189),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x150a5e(0x180),_0x1968ac),N(this,_0x150a5e(0x1d7),_0x5e205e),N(this,_0x150a5e(0x1e1),void 0x0),N(this,_0x150a5e(0x191),{}),N(this,'_injector',void 0x0),this[_0x150a5e(0x19e)]=_0x33a62e,this[_0x150a5e(0x1a0)]=_0x174c15,this[_0x150a5e(0x189)]=_0x59bc8b||_0x3103b4(),this[_0x150a5e(0x19c)]=_0xa4d574;}[_0x1d7d75(0x17e)](_0x35fb01,_0x1a7355,_0x35f095,_0x4a9456){const _0x35e386=_0x1d7d75;let _0x307869=this[_0x35e386(0x19c)][_0x35e386(0x1a4)](_0x66ec26)[_0x35e386(0x1b8)](this[_0x35e386(0x19e)],this[_0x35e386(0x1a0)]);if(!_0x307869)throw Error(_0x35e386(0x19a)+this[_0x35e386(0x19e)]+_0x35e386(0x1d0)+this[_0x35e386(0x1a0)]+_0x35e386(0x172));let {transform:_0x3872ea}=_0xfb9513(this[_0x35e386(0x19e)],this[_0x35e386(0x1a0)],{'row':_0x35fb01,'column':_0x1a7355,'rowOffset':_0x35f095,'columnOffset':_0x4a9456},0x1,0x1,_0x307869);return this['x']=_0x3872ea[_0x35e386(0x1a9)],this['y']=_0x3872ea['top'],this;}['setAbsolutePosition'](_0x36d005,_0x3076fc){return this['x']=_0x36d005,this['y']=_0x3076fc,this;}[_0x1d7d75(0x1d2)](_0x4b552f){return this['shapeType']=_0x4b552f,this;}[_0x1d7d75(0x1b3)](_0x37864a){const _0x989721=_0x1d7d75;return _0x37864a[_0x989721(0x1e1)]&&this[_0x989721(0x1d2)](_0x37864a['shapeType']),this[_0x989721(0x191)]={..._0x37864a},this;}[_0x1d7d75(0x18a)](_0x552646,_0x5d9986){const _0x191825=_0x1d7d75;return this[_0x191825(0x191)][_0x191825(0x1e8)]||(this[_0x191825(0x191)][_0x191825(0x1e8)]={}),this[_0x191825(0x191)]['fill'][_0x191825(0x1ae)]=_0x47edb2['SolidFill'],_0x552646!==void 0x0&&(this['shapeData'][_0x191825(0x1e8)][_0x191825(0x1c2)]=_0x552646),_0x5d9986!==void 0x0&&(this[_0x191825(0x191)][_0x191825(0x1e8)][_0x191825(0x17c)]=_0x5d9986),this;}['setShapeGradientFill'](_0x5f309c,_0x3e55de,_0x309537){const _0x1366c8=_0x1d7d75;if(_0x3e55de===void 0x0||_0x3e55de[_0x1366c8(0x1af)]===0x0)throw Error(_0x1366c8(0x17a));return this[_0x1366c8(0x191)]['fill']||(this['shapeData'][_0x1366c8(0x1e8)]={}),this[_0x1366c8(0x191)][_0x1366c8(0x1e8)][_0x1366c8(0x19d)]=_0x3e55de,this[_0x1366c8(0x191)][_0x1366c8(0x1e8)][_0x1366c8(0x1ae)]=_0x47edb2['GradientFill'],this[_0x1366c8(0x191)]['fill'][_0x1366c8(0x1ee)]=_0x5f309c,_0x309537!==void 0x0&&(this[_0x1366c8(0x191)][_0x1366c8(0x1e8)]['gradientAngle']=_0x309537),this;}['setNoneFill'](){const _0x28027f=_0x1d7d75;return this[_0x28027f(0x191)][_0x28027f(0x1e8)]={'fillType':_0x47edb2[_0x28027f(0x1d5)]},this;}[_0x1d7d75(0x1e2)](_0x293b2d){const _0x453635=_0x1d7d75;return this[_0x453635(0x191)][_0x453635(0x1be)]||(this[_0x453635(0x191)][_0x453635(0x1be)]={}),this[_0x453635(0x191)][_0x453635(0x1be)][_0x453635(0x1c2)]=_0x293b2d,this;}[_0x1d7d75(0x1ba)](_0x431459){const _0x2eb88a=_0x1d7d75;return this[_0x2eb88a(0x191)][_0x2eb88a(0x1be)]||(this[_0x2eb88a(0x191)][_0x2eb88a(0x1be)]={}),this[_0x2eb88a(0x191)]['stroke']['width']=_0x431459,this;}[_0x1d7d75(0x18f)](_0x3c5128){const _0x5d47b4=_0x1d7d75;return this[_0x5d47b4(0x191)][_0x5d47b4(0x1be)]||(this[_0x5d47b4(0x191)][_0x5d47b4(0x1be)]={}),this[_0x5d47b4(0x191)]['stroke'][_0x5d47b4(0x18c)]=_0x3c5128,this;}[_0x1d7d75(0x196)](_0x4e048f){const _0x21b438=_0x1d7d75;return this[_0x21b438(0x191)][_0x21b438(0x1be)]||(this[_0x21b438(0x191)]['stroke']={}),this[_0x21b438(0x191)][_0x21b438(0x1be)][_0x21b438(0x1c3)]=_0x4e048f,this;}['setStrokeLineCapType'](_0x268dca){const _0x3335ce=_0x1d7d75;return this[_0x3335ce(0x191)][_0x3335ce(0x1be)]||(this['shapeData'][_0x3335ce(0x1be)]={}),this['shapeData']['stroke'][_0x3335ce(0x1a6)]=_0x268dca,this;}['setStrokeOpacity'](_0x399a50){const _0x5eeedc=_0x1d7d75;return this[_0x5eeedc(0x191)][_0x5eeedc(0x1be)]||(this['shapeData'][_0x5eeedc(0x1be)]={}),this[_0x5eeedc(0x191)]['stroke'][_0x5eeedc(0x17c)]=_0x399a50,this;}[_0x1d7d75(0x1aa)](_0x460d68){const _0x4b3fc5=_0x1d7d75;return this[_0x4b3fc5(0x191)]['stroke']||(this[_0x4b3fc5(0x191)][_0x4b3fc5(0x1be)]={}),this['shapeData'][_0x4b3fc5(0x1be)]['lineStrokeType']=_0x460d68,this;}[_0x1d7d75(0x1f2)](_0xd5b74){return this['width']=_0xd5b74,this;}['setHeight'](_0x4bef96){const _0x2621ae=_0x1d7d75;return this[_0x2621ae(0x1d7)]=_0x4bef96,this;}[_0x1d7d75(0x1b1)](){const _0x152cc0=_0x1d7d75;let _0x22996f=this[_0x152cc0(0x19c)][_0x152cc0(0x1a4)](_0x268c64)['getShapeModel'](this[_0x152cc0(0x19e)],this[_0x152cc0(0x1a0)],this[_0x152cc0(0x189)]);return _0x22996f?_0x36c8a8(_0x22996f[_0x152cc0(0x1cd)]()):this[_0x152cc0(0x1e1)]?_0x36c8a8(this[_0x152cc0(0x1e1)]):!0x1;}['getConnectionSites'](){const _0x376304=_0x1d7d75;let _0x583594=this[_0x376304(0x19c)][_0x376304(0x1a4)](_0x268c64)[_0x376304(0x181)](this['unitId'],this[_0x376304(0x1a0)],this[_0x376304(0x189)]);if(!_0x583594)return[];let _0x36799f=this['_injector'][_0x376304(0x1a4)](_0x373af0)[_0x376304(0x1da)]({'unitId':this[_0x376304(0x19e)],'subUnitId':this[_0x376304(0x1a0)],'drawingId':this[_0x376304(0x189)]});if(!(_0x36799f!=null&&_0x36799f[_0x376304(0x18b)]))return[];let {width:_0x307102=0x0,height:_0x5d2446=0x0}=_0x36799f['transform'];return _0x583594[_0x376304(0x1bd)]({'width':_0x307102,'height':_0x5d2446}),_0x583594[_0x376304(0x183)]();}[_0x1d7d75(0x1c4)](){const _0x2167fd=_0x1d7d75;let _0x5b44b7=this[_0x2167fd(0x19c)][_0x2167fd(0x1a4)](_0x268c64)[_0x2167fd(0x181)](this[_0x2167fd(0x19e)],this[_0x2167fd(0x1a0)],this[_0x2167fd(0x189)]);if(!_0x5b44b7)return[];let _0x45ce91=this[_0x2167fd(0x19c)]['get'](_0x373af0)[_0x2167fd(0x1da)]({'unitId':this[_0x2167fd(0x19e)],'subUnitId':this['subUnitId'],'drawingId':this[_0x2167fd(0x189)]});if(!(_0x45ce91!=null&&_0x45ce91[_0x2167fd(0x18b)]))return[];let {width:_0x53207c=0x0,height:_0x573aca=0x0}=_0x45ce91['transform'];return _0x5b44b7['updateContext']({'width':_0x53207c,'height':_0x573aca}),_0x5b44b7[_0x2167fd(0x1bf)]();}[_0x1d7d75(0x17d)](){const _0x1a56d1=_0x1d7d75;let _0x12efd9=this['_injector'][_0x1a56d1(0x1a4)](_0x268c64)[_0x1a56d1(0x181)](this[_0x1a56d1(0x19e)],this['subUnitId'],this['drawId']);if(!_0x12efd9||!_0x36c8a8(_0x12efd9[_0x1a56d1(0x1cd)]()))return[];let _0x5c480e=this['_injector'][_0x1a56d1(0x1a4)](_0x373af0)[_0x1a56d1(0x1da)]({'unitId':this[_0x1a56d1(0x19e)],'subUnitId':this[_0x1a56d1(0x1a0)],'drawingId':this[_0x1a56d1(0x189)]});if(!(_0x5c480e!=null&&_0x5c480e[_0x1a56d1(0x18b)]))return[];let {width:_0x281765=0x0,height:_0x3bce15=0x0}=_0x5c480e[_0x1a56d1(0x18b)];return _0x12efd9[_0x1a56d1(0x1bd)]({'width':_0x281765,'height':_0x3bce15}),_0x12efd9[_0x1a56d1(0x17d)]();}[_0x1d7d75(0x1a8)](){const _0x29e491=_0x1d7d75;var _0x2fbd91;let _0x9e3853=this['_injector'][_0x29e491(0x1a4)](_0x268c64)[_0x29e491(0x181)](this['unitId'],this[_0x29e491(0x1a0)],this[_0x29e491(0x189)]);return _0x9e3853?(_0x2fbd91=_0x9e3853[_0x29e491(0x1a8)]())==null?null:_0x2fbd91:null;}[_0x1d7d75(0x19f)](){const _0xdc54aa=_0x1d7d75;var _0x3b94b7;let _0x4b774d=this[_0xdc54aa(0x19c)][_0xdc54aa(0x1a4)](_0x268c64)[_0xdc54aa(0x181)](this[_0xdc54aa(0x19e)],this['subUnitId'],this[_0xdc54aa(0x189)]);return _0x4b774d?(_0x3b94b7=_0x4b774d[_0xdc54aa(0x19f)]())==null?null:_0x3b94b7:null;}['build'](){const _0x2d4ea1=_0x1d7d75;var _0x198813,_0x8abafe;if(!this[_0x2d4ea1(0x1e1)])throw Error(_0x2d4ea1(0x194));if(this['x']===0x0||this['y']===0x0){let _0x48be7b=this[_0x2d4ea1(0x19c)][_0x2d4ea1(0x1a4)](_0x66ec26)[_0x2d4ea1(0x1b8)](this[_0x2d4ea1(0x19e)],this[_0x2d4ea1(0x1a0)]);if(!_0x48be7b)throw Error(_0x2d4ea1(0x19a)+this['unitId']+_0x2d4ea1(0x1d0)+this['subUnitId']+_0x2d4ea1(0x172));let {transform:_0x1dc746}=_0xfb9513(this[_0x2d4ea1(0x19e)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x48be7b);this['x']=this['x']>0x0?this['x']:_0x1dc746['left'],this['y']=this['y']>0x0?this['y']:_0x1dc746[_0x2d4ea1(0x1b7)];}return this[_0x2d4ea1(0x180)]=(_0x198813=this[_0x2d4ea1(0x180)])==null?_0x1968ac:_0x198813,this[_0x2d4ea1(0x1d7)]=(_0x8abafe=this[_0x2d4ea1(0x1d7)])==null?_0x5e205e:_0x8abafe,{'unitId':this[_0x2d4ea1(0x19e)],'subUnitId':this[_0x2d4ea1(0x1a0)],'shapeId':this[_0x2d4ea1(0x189)],'shapeType':this[_0x2d4ea1(0x1e1)],'shapeData':Object[_0x2d4ea1(0x1eb)](this[_0x2d4ea1(0x191)])[_0x2d4ea1(0x1af)]>0x0?this[_0x2d4ea1(0x191)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x2d4ea1(0x180)],'height':this['height']};}[_0x1d7d75(0x1d6)](){const _0x2e1cdf=_0x1d7d75;return this[_0x2e1cdf(0x189)];}['getShapeType'](){const _0x182867=_0x1d7d75;return this[_0x182867(0x1e1)];}[_0x1d7d75(0x1d3)](){const _0x5ec51b=_0x1d7d75;return this[_0x5ec51b(0x191)];}[_0x1d7d75(0x18e)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x247952=_0x1d7d75;return{'width':this[_0x247952(0x180)],'height':this[_0x247952(0x1d7)]};}},F=class extends P{constructor(_0x14967e,_0x6a33a4,_0x526355,_0x32819e){const _0x3c3148=_0x1d7d75;super(_0x14967e,_0x6a33a4,_0x526355,_0x32819e),N(this,_0x3c3148(0x191),{});}[_0x1d7d75(0x1d2)](_0x3b91ea){const _0x49d287=_0x1d7d75;if(!_0x36c8a8(_0x3b91ea))throw Error(_0x49d287(0x174)+_0x3b91ea+_0x49d287(0x1c6));return super[_0x49d287(0x1d2)](_0x3b91ea),this;}[_0x1d7d75(0x193)](_0x109f88){const _0x22fd35=_0x1d7d75;var _0x4174de,_0x8d3a8c;return(_0x4174de=this[_0x22fd35(0x191)])!=null&&_0x4174de['ln']||(this[_0x22fd35(0x191)]['ln']={}),!((_0x8d3a8c=this['shapeData'])==null||(_0x8d3a8c=_0x8d3a8c['ln'])==null)&&_0x8d3a8c[_0x22fd35(0x199)]||(this[_0x22fd35(0x191)]['ln'][_0x22fd35(0x199)]={}),this[_0x22fd35(0x191)]['ln'][_0x22fd35(0x199)]['type']=_0x109f88,this;}[_0x1d7d75(0x1d4)](_0x2bb525){const _0x4747e4=_0x1d7d75;var _0x3ce2e3,_0x2aface;return(_0x3ce2e3=this[_0x4747e4(0x191)])!=null&&_0x3ce2e3['ln']||(this[_0x4747e4(0x191)]['ln']={}),!((_0x2aface=this[_0x4747e4(0x191)])==null||(_0x2aface=_0x2aface['ln'])==null)&&_0x2aface[_0x4747e4(0x179)]||(this[_0x4747e4(0x191)]['ln']['endArrow']={}),this[_0x4747e4(0x191)]['ln'][_0x4747e4(0x179)]['type']=_0x2bb525,this;}['setStartArrowSize'](_0x3e770b){const _0x18354f=_0x1d7d75;var _0x2754a9,_0x21207b;return(_0x2754a9=this[_0x18354f(0x191)])!=null&&_0x2754a9['ln']||(this[_0x18354f(0x191)]['ln']={}),!((_0x21207b=this[_0x18354f(0x191)])==null||(_0x21207b=_0x21207b['ln'])==null)&&_0x21207b[_0x18354f(0x199)]||(this['shapeData']['ln'][_0x18354f(0x199)]={}),this[_0x18354f(0x191)]['ln'][_0x18354f(0x199)][_0x18354f(0x1a7)]=_0x3e770b,this;}[_0x1d7d75(0x182)](_0x240a98){const _0x1fdf37=_0x1d7d75;var _0x37ac4f,_0x17b5b9;return(_0x37ac4f=this[_0x1fdf37(0x191)])!=null&&_0x37ac4f['ln']||(this[_0x1fdf37(0x191)]['ln']={}),!((_0x17b5b9=this[_0x1fdf37(0x191)])==null||(_0x17b5b9=_0x17b5b9['ln'])==null)&&_0x17b5b9[_0x1fdf37(0x179)]||(this[_0x1fdf37(0x191)]['ln'][_0x1fdf37(0x179)]={}),this['shapeData']['ln'][_0x1fdf37(0x179)][_0x1fdf37(0x1a7)]=_0x240a98,this;}[_0x1d7d75(0x1d9)](){const _0x3656f2=_0x1d7d75;return super[_0x3656f2(0x1d9)]();}[_0x1d7d75(0x19f)](){const _0x26bef5=_0x1d7d75;var _0x4791d3;return((_0x4791d3=this['shapeData'])==null||(_0x4791d3=_0x4791d3[_0x26bef5(0x1c9)])==null?void 0x0:_0x4791d3['to'])||null;}['getStartConnectInfo'](){const _0x1b5d1f=_0x1d7d75;var _0x53598e;return((_0x53598e=this['shapeData'])==null||(_0x53598e=_0x53598e['relation'])==null?void 0x0:_0x53598e[_0x1b5d1f(0x1dc)])||null;}};function I(_0x28da3d,_0x278de1,_0x5631ef,_0x5925a0,_0x405e8b,_0x4af408){const _0x536eab=_0x1d7d75;let _0x1a5936=_0x405e8b[_0x536eab(0x181)](_0x28da3d,_0x278de1,_0x5631ef);if(!_0x1a5936)return null;let _0xf77488=_0x4af408[_0x536eab(0x1da)]({'unitId':_0x28da3d,'subUnitId':_0x278de1,'drawingId':_0x5631ef});if(!(_0xf77488!=null&&_0xf77488[_0x536eab(0x18b)]))return null;let {left:_0x1b63c1=0x0,top:_0x2db45d=0x0,width:_0x445e31=0x0,height:_0x5c3c4a=0x0,flipX:_0x179b60=!0x1,flipY:_0x44ca3c=!0x1,angle:_0x12529d}=_0xf77488[_0x536eab(0x18b)];_0x1a5936[_0x536eab(0x1bd)]({'width':_0x445e31,'height':_0x5c3c4a});let _0x323d95=_0x1a5936['getConnectionSiteList']()[_0x536eab(0x1b5)](_0x5bf457=>_0x5bf457['index']===_0x5925a0);if(!_0x323d95)return null;let _0x409528=_0x179b60?_0x445e31-_0x323d95['x']:_0x323d95['x'],_0x45c067=_0x44ca3c?_0x5c3c4a-_0x323d95['y']:_0x323d95['y'];if(_0x12529d&&_0x12529d!==0x0){let _0xfd8ee6=_0x12529d*Math['PI']/0xb4,_0x22b656=Math[_0x536eab(0x1de)](_0xfd8ee6),_0x1607ec=Math['sin'](_0xfd8ee6),_0x57ad61=_0x445e31/0x2,_0x15cde6=_0x5c3c4a/0x2,_0x2d28ee=_0x409528-_0x57ad61,_0x474ff5=_0x45c067-_0x15cde6;_0x409528=_0x57ad61+_0x2d28ee*_0x22b656-_0x474ff5*_0x1607ec,_0x45c067=_0x15cde6+_0x2d28ee*_0x1607ec+_0x474ff5*_0x22b656;}_0x409528+=_0x1b63c1,_0x45c067+=_0x2db45d;let _0x347c2c=_0x323d95[_0x536eab(0x1c8)]/0xea60;_0x179b60&&(_0x347c2c=0xb4-_0x347c2c),_0x44ca3c&&(_0x347c2c=-_0x347c2c),_0x347c2c+=_0x12529d||0x0,_0x347c2c=(_0x347c2c%0x168+0x168)%0x168;let _0x48941b=_0x1e3140({'left':_0x1b63c1,'top':_0x2db45d,'width':_0x445e31,'height':_0x5c3c4a},_0x12529d||0x0);return{'point':{'x':_0x409528,'y':_0x45c067},'angle':_0x347c2c,'bounds':_0x48941b};}function L(_0x475c17,_0x5b1509){const _0x59fcea=_0x1d7d75;let _0x34a4ae=_0x5b1509['x']-_0x475c17['x'],_0x4cd997=_0x5b1509['y']-_0x475c17['y'];return Math[_0x59fcea(0x1e6)](_0x34a4ae)>=Math[_0x59fcea(0x1e6)](_0x4cd997)?_0x34a4ae>=0x0?0xb4:0x0:_0x4cd997>=0x0?0x10e:0x5a;}function R(_0x506378,_0x425e30,_0xc85737,_0xb3cc07,_0x338cc9,_0xa6be32,_0x4e92f1){const _0x53f95b=_0x1d7d75;let _0x145d43=_0xa6be32[_0x53f95b(0x181)](_0x506378,_0x425e30,_0xc85737);if(!_0x145d43)return null;let _0xb5398f=_0x4e92f1[_0x53f95b(0x1da)]({'unitId':_0x506378,'subUnitId':_0x425e30,'drawingId':_0xc85737});if(!(_0xb5398f!=null&&_0xb5398f['transform']))return null;let {left:_0x1bfe01=0x0,top:_0x58b7d2=0x0,width:_0x14668d=0x0,height:_0x2dbe26=0x0,flipX:_0x5c70a5=!0x1,flipY:_0x291932=!0x1}=_0xb5398f[_0x53f95b(0x18b)];_0x145d43[_0x53f95b(0x1bd)]({'width':_0x14668d,'height':_0x2dbe26});let _0x57d4e6=_0x145d43['getConnectorLinePoints']();if(_0x57d4e6[_0x53f95b(0x1af)]<0x2)return null;let _0x1f3873=_0xb3cc07?_0x57d4e6[0x0]:_0x57d4e6[_0x57d4e6[_0x53f95b(0x1af)]-0x1],_0x128dad=new _0x493e08({'left':_0x1bfe01,'top':_0x58b7d2,'width':_0x14668d,'height':_0x2dbe26,'flipX':_0x5c70a5,'flipY':_0x291932})[_0x53f95b(0x1bb)](_0x1f3873);return{'point':_0x128dad,'angle':L(_0x338cc9[_0x53f95b(0x1e7)],_0x128dad),'bounds':{'left':_0x128dad['x'],'top':_0x128dad['y'],'width':0x0,'height':0x0}};}var z=class extends _0xcea0c1{async[_0x1d7d75(0x1dd)](_0x42b928){const _0xb12b9c=_0x1d7d75;let {unitId:_0x4a6cc5,subUnitId:_0x40b1a0,shapeId:_0x3d9471,shapeType:_0x24c3f8,shapeData:_0x4e19c1,x:_0x5b0dfc,y:_0x2a1e21,width:_0x4475a0,height:_0x44a2d0}=_0x42b928;return this[_0xb12b9c(0x1b6)]['executeCommand'](_0x345c31['id'],{'unitId':_0x4a6cc5,'subUnitId':_0x40b1a0,'shapeId':_0x3d9471,'shapeType':_0x24c3f8,'shapeData':_0x4e19c1,'position':{'x':_0x5b0dfc,'y':_0x2a1e21},'width':_0x4475a0,'height':_0x44a2d0});}async[_0x1d7d75(0x198)](_0x3f646a){let {unitId:_0x5eba37,subUnitId:_0x11eaef,shapeId:_0x510a0d,shapeType:_0x4c1c0b,shapeData:_0x28e44c,x:_0xad30ff,y:_0x4212e2,width:_0x38107e,height:_0x1c6006}=_0x3f646a;return this['_commandService']['executeCommand'](_0x34acb3['id'],{'unitId':_0x5eba37,'subUnitId':_0x11eaef,'shapeId':_0x510a0d,'shapeType':_0x4c1c0b,'shapeData':_0x28e44c,'position':{'x':_0xad30ff,'y':_0x4212e2},'width':_0x38107e,'height':_0x1c6006});}['newShape'](_0x5cf099){const _0x2cb0cb=_0x1d7d75;let _0x52713d=this[_0x2cb0cb(0x1cc)]()[_0x2cb0cb(0x1bc)](),_0x4d71c6=this[_0x2cb0cb(0x177)]();if(_0x5cf099){let _0xc2ea4c=new P(_0x52713d,_0x4d71c6,_0x5cf099[_0x2cb0cb(0x189)],this[_0x2cb0cb(0x19c)]);return this[_0x2cb0cb(0x176)](_0xc2ea4c,_0x52713d,_0x4d71c6,_0x5cf099['drawId']),_0xc2ea4c;}return new P(_0x52713d,_0x4d71c6,_0x3103b4(),this[_0x2cb0cb(0x19c)]);}['newConnector'](_0x43ca41){const _0x2deb82=_0x1d7d75;let _0x3bd337=this[_0x2deb82(0x1cc)]()[_0x2deb82(0x1bc)](),_0x54e643=this['getSheetId']();if(_0x43ca41){let _0x3663ab=new F(_0x3bd337,_0x54e643,_0x43ca41['drawId'],this[_0x2deb82(0x19c)]);return this[_0x2deb82(0x176)](_0x3663ab,_0x3bd337,_0x54e643,_0x43ca41[_0x2deb82(0x189)]),_0x3663ab;}return new F(_0x3bd337,_0x54e643,_0x3103b4(),this[_0x2deb82(0x19c)]);}[_0x1d7d75(0x1f1)](){const _0x5af318=_0x1d7d75;let _0x3ebaa4=this[_0x5af318(0x19c)][_0x5af318(0x1a4)](_0x25ab1a),_0x2b9635=this[_0x5af318(0x1cc)]()[_0x5af318(0x1bc)](),_0x465fd5=this['getSheetId'](),_0x30f84d=_0x3ebaa4[_0x5af318(0x178)](_0x2b9635,_0x465fd5);if(!_0x30f84d)return[];let _0x16595d=[];for(let [_0xaa95d6,_0x2be99d]of Object[_0x5af318(0x19b)](_0x30f84d))if(_0x2be99d&&_0x2be99d[_0x5af318(0x173)]===_0x4cbea9['DRAWING_SHAPE']){let _0x35dff9=new P(_0x2b9635,_0x465fd5,_0xaa95d6,this['_injector']);this[_0x5af318(0x176)](_0x35dff9,_0x2b9635,_0x465fd5,_0xaa95d6),_0x16595d[_0x5af318(0x1cb)](_0x35dff9);}return _0x16595d;}[_0x1d7d75(0x1cf)](_0x1300b4){const _0x3bf34f=_0x1d7d75;let {unitId:_0x41c5b0,subUnitId:_0x5ca9ab,drawId:_0x10e109}=_0x1300b4;return this[_0x3bf34f(0x1b6)][_0x3bf34f(0x184)](_0x29e119['id'],{'unitId':_0x41c5b0,'drawings':[{'unitId':_0x41c5b0,'subUnitId':_0x5ca9ab,'drawingId':_0x10e109,'drawingType':_0x4cbea9[_0x3bf34f(0x1d1)]}]});}async[_0x1d7d75(0x188)](_0x141482){const _0xf005bf=_0x1d7d75;let {connector:_0x50eb3c,startTarget:_0xf7dfa,endTarget:_0x230eb3}=_0x141482;if(!_0xf7dfa&&!_0x230eb3)return!0x1;let _0x569174=this[_0xf005bf(0x1cc)]()[_0xf005bf(0x1bc)](),_0x481882=this['getSheetId'](),_0x3377b4=this[_0xf005bf(0x19c)]['get'](_0x268c64),_0x448dee=this[_0xf005bf(0x19c)]['get'](_0x373af0),_0x35407f=_0x3377b4[_0xf005bf(0x181)](_0x569174,_0x481882,_0x50eb3c[_0xf005bf(0x189)]);if(!_0x35407f)return!0x1;let _0x68be9c=_0x35407f[_0xf005bf(0x1cd)](),_0x54af29=_0x35407f[_0xf005bf(0x1ec)](),_0x4471b0={};for(let _0x1d15a1 of _0x35407f[_0xf005bf(0x192)]()){let _0x7c9bac=_0x35407f[_0xf005bf(0x1e9)](_0x1d15a1);_0x7c9bac!==void 0x0&&(_0x4471b0[_0x1d15a1]=_0x7c9bac);}let {startInfo:_0xb6e35d,endInfo:_0x4714a2}=this[_0xf005bf(0x1f4)](_0x569174,_0x481882,_0x50eb3c,_0x35407f,_0xf7dfa,_0x230eb3,_0x3377b4,_0x448dee,_0x54af29);if(!_0xb6e35d||!_0x4714a2)return!0x1;let _0x3a31a9=_0x3001b1(_0x1b19b5(_0xb6e35d,_0x4714a2,_0x68be9c),_0x68be9c),_0x3f7284={};return _0xf7dfa?_0x3f7284['from']={'shapeId':_0xf7dfa['shape'][_0xf005bf(0x189)],'cxnIndex':_0xf7dfa[_0xf005bf(0x1a1)]}:_0x54af29!=null&&_0x54af29[_0xf005bf(0x1dc)]&&(_0x3f7284['from']=_0x54af29['from']),_0x230eb3?_0x3f7284['to']={'shapeId':_0x230eb3[_0xf005bf(0x1b0)][_0xf005bf(0x189)],'cxnIndex':_0x230eb3[_0xf005bf(0x1a1)]}:_0x54af29!=null&&_0x54af29['to']&&(_0x3f7284['to']=_0x54af29['to']),this['_commandService'][_0xf005bf(0x184)](_0xe77cab['id'],{'unitId':_0x569174,'subUnitId':_0x481882,'connectorShapeId':_0x50eb3c['drawId'],'width':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x180)],'height':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x1d7)],'left':_0x3a31a9[_0xf005bf(0x1c5)]['left'],'top':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x1b7)],'flipX':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x195)]||!0x1,'flipY':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x1c0)]||!0x1,'oldAdjustValues':_0x4471b0,'newAdjustValues':_0x3a31a9[_0xf005bf(0x1b2)],'newLineType':_0x3a31a9[_0xf005bf(0x1a2)],'oldLineType':_0x68be9c,'rotation':_0x3a31a9[_0xf005bf(0x1b4)],'oldRelation':_0x54af29,'newRelation':_0x3f7284});}[_0x1d7d75(0x176)](_0x326075,_0x4e04a2,_0x10cbe6,_0x34d479){const _0x4ae5ff=_0x1d7d75;let _0x325e3b=this[_0x4ae5ff(0x19c)][_0x4ae5ff(0x1a4)](_0x373af0)[_0x4ae5ff(0x1da)]({'unitId':_0x4e04a2,'subUnitId':_0x10cbe6,'drawingId':_0x34d479});if(_0x325e3b!=null&&_0x325e3b['transform']){var _0x4d1da8,_0x102c8a,_0x1da4de,_0x530afa;_0x326075['x']=(_0x4d1da8=_0x325e3b[_0x4ae5ff(0x18b)][_0x4ae5ff(0x1a9)])==null?0x0:_0x4d1da8,_0x326075['y']=(_0x102c8a=_0x325e3b[_0x4ae5ff(0x18b)][_0x4ae5ff(0x1b7)])==null?0x0:_0x102c8a,_0x326075[_0x4ae5ff(0x180)]=(_0x1da4de=_0x325e3b['transform']['width'])==null?_0x326075[_0x4ae5ff(0x180)]:_0x1da4de,_0x326075[_0x4ae5ff(0x1d7)]=(_0x530afa=_0x325e3b[_0x4ae5ff(0x18b)][_0x4ae5ff(0x1d7)])==null?_0x326075[_0x4ae5ff(0x1d7)]:_0x530afa;}let _0x566ea8=this[_0x4ae5ff(0x19c)]['get'](_0x268c64)[_0x4ae5ff(0x181)](_0x4e04a2,_0x10cbe6,_0x34d479);if(_0x566ea8){_0x326075[_0x4ae5ff(0x1e1)]=_0x566ea8[_0x4ae5ff(0x1cd)]();let _0x3dcb1e=_0x566ea8[_0x4ae5ff(0x1d3)]();_0x3dcb1e&&(_0x326075[_0x4ae5ff(0x191)]=JSON[_0x4ae5ff(0x1ad)](JSON[_0x4ae5ff(0x1d8)](_0x3dcb1e)));}}['_resolveEndpoints'](_0x325023,_0x595db4,_0xccd354,_0x1a220e,_0x1d305d,_0x136d94,_0x324ff8,_0x28447e,_0x5084c9){const _0x37bc46=_0x1d7d75;let _0x44f738=null,_0x4fb864=null;return _0x1d305d&&(_0x44f738=I(_0x325023,_0x595db4,_0x1d305d['shape'][_0x37bc46(0x189)],_0x1d305d[_0x37bc46(0x1a1)],_0x324ff8,_0x28447e)),_0x136d94&&(_0x4fb864=I(_0x325023,_0x595db4,_0x136d94[_0x37bc46(0x1b0)]['drawId'],_0x136d94['connectionSiteIndex'],_0x324ff8,_0x28447e)),_0x44f738||(_0x44f738=this[_0x37bc46(0x1ce)](_0x325023,_0x595db4,_0xccd354[_0x37bc46(0x189)],!0x0,_0x4fb864,_0x5084c9==null?void 0x0:_0x5084c9[_0x37bc46(0x1dc)],_0x324ff8,_0x28447e)),_0x4fb864||(_0x4fb864=this[_0x37bc46(0x1ce)](_0x325023,_0x595db4,_0xccd354['drawId'],!0x1,_0x44f738,_0x5084c9==null?void 0x0:_0x5084c9['to'],_0x324ff8,_0x28447e)),{'startInfo':_0x44f738,'endInfo':_0x4fb864};}['_resolveExistingOrFreeEndpoint'](_0xa23ab4,_0x22debe,_0x3b26e9,_0x377a63,_0x2b8ea4,_0x2513a3,_0x5b3670,_0x3394d2){const _0x233d84=_0x1d7d75;if(_0x2513a3){let _0x12912c=I(_0xa23ab4,_0x22debe,_0x2513a3[_0x233d84(0x1c1)],_0x2513a3[_0x233d84(0x171)],_0x5b3670,_0x3394d2);if(_0x12912c)return _0x12912c;}return _0x2b8ea4?R(_0xa23ab4,_0x22debe,_0x3b26e9,_0x377a63,_0x2b8ea4,_0x5b3670,_0x3394d2):null;}};_0xcea0c1[_0x1d7d75(0x185)](z);export{F as FConnectorShape,P as FShape};
1
+ const _0x2294c8=_0x10e5;(function(_0x4d9f1d,_0x3815bc){const _0x4f039b=_0x10e5,_0x47dd03=_0x4d9f1d();while(!![]){try{const _0x5b786c=parseInt(_0x4f039b(0x20c))/0x1*(parseInt(_0x4f039b(0x1d6))/0x2)+-parseInt(_0x4f039b(0x1dc))/0x3+parseInt(_0x4f039b(0x1fe))/0x4*(parseInt(_0x4f039b(0x1c6))/0x5)+parseInt(_0x4f039b(0x23e))/0x6+-parseInt(_0x4f039b(0x24a))/0x7+parseInt(_0x4f039b(0x1e6))/0x8+parseInt(_0x4f039b(0x201))/0x9;if(_0x5b786c===_0x3815bc)break;else _0x47dd03['push'](_0x47dd03['shift']());}catch(_0x1e04c8){_0x47dd03['push'](_0x47dd03['shift']());}}}(_0x2ff6,0xd870b));import{ConnectorCoordinateTransform as _0x226b98,ShapeArrowSizeEnum as _0x1a009f,ShapeArrowTypeEnum as _0x1b13c3,ShapeFillEnum as _0x17ad7b,ShapeGradientTypeEnum as _0xc86cba,ShapeLineCapEnum as _0x21b06d,ShapeLineDashEnum as _0x51187e,ShapeLineJoinEnum as _0x45dc6f,ShapeLineTypeEnum as _0x2121d7,ShapeTypeEnum as _0x4f25b2,computeConnectorRouteLayout as _0x8012ef,getBasicShapeRotateBound as _0x5350e5,isConnectorShape as _0xe1c987,routeConnectorLineShape as _0x1966ac}from'@univerjs-pro/engine-shape';import{FEnum as _0x468a15}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x11c2a4,DEFAULT_SHAPE_WIDTH as _0xdabd8b,InsertShapeCommand as _0x2b5f84,SetShapeDrawingDataCommand as _0x4bd9a0,SheetsShapeService as _0x5c3722,UpdateConnectorRelationCommand as _0x3ac70a}from'@univerjs-pro/sheets-shape';function _0x2ff6(){const _0x4aa9d5=['executeCommand','getShapeModel','build','stroke','setAbsolutePosition','1875964jeiWQX','constructor','abs','15225786xAednD','setStrokeLineDashType','getWorkbook','ShapeTypeEnum','getConnectionSiteList','SolidFill','drawingType','_resolveEndpoints','setEndArrowSize','ang','defineProperty','7PSNceE','drawId','capType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','worldRect','GradientFill','getDrawingData','Skeleton\x20for\x20unitId\x20','setNoneFill','_commandService','getAdjustValueByName','height','subUnitId','ShapeLineJoinEnum','adjustValues','localToWorld','top','ShapeArrowSizeEnum','type','NoFill','fillType','shapeType','string','prototype','getConnectionSites','cxnIndex','lineJoinType','transform','object','getDrawingByParam','insertShape','rotation','length','_injector','setStrokeColor','ShapeArrowTypeEnum','\x20and\x20subUnitId\x20','symbol','getStartConnectInfo','shapeId','cos','connectShapes','DRAWING_SHAPE','getSheetId','call','function','ShapeLineCapEnum','gradientType','setEndArrowType','2709090pIvfIz','connectionSiteIndex','relation','getDrawingPoints','setStrokeLineType','size','find','getSize','setWidth','fill','isLineShape','getConnectorLinePoints','11366705cvCvsZ','width','15plLmKY','getShapeRelation','ShapeFillEnum','flipX','unitId','ShapeLineTypeEnum','ensureSkeleton','setStartArrowSize','updateShape','getShapeId','stringify','opacity','updateContext','shapeData','getAdjustPoints','getAdjustNames','108326TSsoHM','setStrokeWidth','endArrow','setShapeGradientFill','removeShape','setHeight','4286337SAgFHD','left','ShapeLineDashEnum','_resolveExistingOrFreeEndpoint','default','getShapeData','flipY','get','getShapes','keys','78000tfLxHq','_preloadShapeProperties',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getEndConnectInfo','\x20not\x20found','gradientAngle','getUnitId','ShapeGradientTypeEnum','setStartArrowType','startArrow','setShapeType','shape','setStrokeOpacity','from','point','gradientStops','getShapeType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend'];_0x2ff6=function(){return _0x4aa9d5;};return _0x2ff6();}import{DrawingTypeEnum as _0x285b45,generateRandomId as _0x4e4bad}from'@univerjs/core';import{IDrawingManagerService as _0x4e860d}from'@univerjs/drawing';import{SheetSkeletonService as _0xe5b182,convertPositionCellToSheetOverGrid as _0x439023}from'@univerjs/sheets';import{ISheetDrawingService as _0xa71416,RemoveSheetDrawingCommand as _0x1b2369}from'@univerjs/sheets-drawing';import{FWorksheet as _0x4f6f37}from'@univerjs/sheets/facade';var k=class extends _0x468a15{get[_0x2294c8(0x204)](){return _0x4f25b2;}get[_0x2294c8(0x1c8)](){return _0x17ad7b;}get[_0x2294c8(0x1ed)](){return _0xc86cba;}get[_0x2294c8(0x1cb)](){return _0x2121d7;}get[_0x2294c8(0x1de)](){return _0x51187e;}get[_0x2294c8(0x23b)](){return _0x21b06d;}get[_0x2294c8(0x21a)](){return _0x45dc6f;}get[_0x2294c8(0x230)](){return _0x1b13c3;}get[_0x2294c8(0x21e)](){return _0x1a009f;}};_0x468a15[_0x2294c8(0x1f8)](k);function A(_0xf329cf){'@babel/helpers - typeof';const _0x27b098=_0x2294c8;return A=typeof Symbol==_0x27b098(0x23a)&&typeof Symbol['iterator']==_0x27b098(0x232)?function(_0x13f09d){return typeof _0x13f09d;}:function(_0x30c5f2){const _0x10ed6f=_0x27b098;return _0x30c5f2&&typeof Symbol==_0x10ed6f(0x23a)&&_0x30c5f2[_0x10ed6f(0x1ff)]===Symbol&&_0x30c5f2!==Symbol[_0x10ed6f(0x224)]?_0x10ed6f(0x232):typeof _0x30c5f2;},A(_0xf329cf);}function j(_0x179464,_0x20af1c){const _0x4f28d2=_0x2294c8;if(A(_0x179464)!=_0x4f28d2(0x229)||!_0x179464)return _0x179464;var _0x3d5b3e=_0x179464[Symbol['toPrimitive']];if(_0x3d5b3e!==void 0x0){var _0x5aa1ec=_0x3d5b3e[_0x4f28d2(0x239)](_0x179464,_0x20af1c||_0x4f28d2(0x1e0));if(A(_0x5aa1ec)!=_0x4f28d2(0x229))return _0x5aa1ec;throw TypeError(_0x4f28d2(0x20f));}return(_0x20af1c===_0x4f28d2(0x223)?String:Number)(_0x179464);}function M(_0x14370d){const _0x5381fe=_0x2294c8;var _0x4df15d=j(_0x14370d,_0x5381fe(0x223));return A(_0x4df15d)=='symbol'?_0x4df15d:_0x4df15d+'';}function N(_0x359362,_0x144c50,_0x430d56){const _0x12cec9=_0x2294c8;return(_0x144c50=M(_0x144c50))in _0x359362?Object[_0x12cec9(0x20b)](_0x359362,_0x144c50,{'value':_0x430d56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x359362[_0x144c50]=_0x430d56,_0x359362;}var P=class{constructor(_0x5de167,_0x23939b,_0x1f7e1a,_0x986594){const _0xf485ad=_0x2294c8;N(this,_0xf485ad(0x1ca),void 0x0),N(this,_0xf485ad(0x219),void 0x0),N(this,_0xf485ad(0x20d),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0xf485ad(0x1c5),_0xdabd8b),N(this,_0xf485ad(0x218),_0x11c2a4),N(this,_0xf485ad(0x222),void 0x0),N(this,_0xf485ad(0x1d3),{}),N(this,_0xf485ad(0x22e),void 0x0),this[_0xf485ad(0x1ca)]=_0x5de167,this[_0xf485ad(0x219)]=_0x23939b,this[_0xf485ad(0x20d)]=_0x1f7e1a||_0x4e4bad(),this[_0xf485ad(0x22e)]=_0x986594;}['setPosition'](_0x1bcaa6,_0x5bef2a,_0x1c221b,_0x90f467){const _0x3697a8=_0x2294c8;let _0x4dd757=this['_injector'][_0x3697a8(0x1e3)](_0xe5b182)[_0x3697a8(0x1cc)](this[_0x3697a8(0x1ca)],this['subUnitId']);if(!_0x4dd757)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x3697a8(0x1ca)]+'\x20and\x20subUnitId\x20'+this[_0x3697a8(0x219)]+_0x3697a8(0x1ea));let {transform:_0x4eb9cd}=_0x439023(this[_0x3697a8(0x1ca)],this[_0x3697a8(0x219)],{'row':_0x1bcaa6,'column':_0x5bef2a,'rowOffset':_0x1c221b,'columnOffset':_0x90f467},0x1,0x1,_0x4dd757);return this['x']=_0x4eb9cd[_0x3697a8(0x1dd)],this['y']=_0x4eb9cd[_0x3697a8(0x21d)],this;}[_0x2294c8(0x1fd)](_0x50bac6,_0x3914c7){return this['x']=_0x50bac6,this['y']=_0x3914c7,this;}[_0x2294c8(0x1f0)](_0x236164){const _0x30e354=_0x2294c8;return this[_0x30e354(0x222)]=_0x236164,this;}['setShapeData'](_0x5b82f9){const _0x1a3f48=_0x2294c8;return _0x5b82f9['shapeType']&&this[_0x1a3f48(0x1f0)](_0x5b82f9[_0x1a3f48(0x222)]),this['shapeData']={..._0x5b82f9},this;}['setShapeSolidFill'](_0x313fdf,_0x5b570d){const _0x2c93fa=_0x2294c8;return this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)]||(this[_0x2c93fa(0x1d3)]['fill']={}),this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)][_0x2c93fa(0x221)]=_0x17ad7b[_0x2c93fa(0x206)],_0x313fdf!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill']['color']=_0x313fdf),_0x5b570d!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill'][_0x2c93fa(0x1d1)]=_0x5b570d),this;}[_0x2294c8(0x1d9)](_0x55d2fe,_0x385c53,_0x664497){const _0x361935=_0x2294c8;if(_0x385c53===void 0x0||_0x385c53[_0x361935(0x22d)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this['shapeData'][_0x361935(0x247)]||(this['shapeData'][_0x361935(0x247)]={}),this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1f5)]=_0x385c53,this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x221)]=_0x17ad7b[_0x361935(0x212)],this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x23c)]=_0x55d2fe,_0x664497!==void 0x0&&(this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1eb)]=_0x664497),this;}[_0x2294c8(0x215)](){const _0x1ff339=_0x2294c8;return this[_0x1ff339(0x1d3)][_0x1ff339(0x247)]={'fillType':_0x17ad7b[_0x1ff339(0x220)]},this;}[_0x2294c8(0x22f)](_0x2fa00e){const _0xaffb99=_0x2294c8;return this[_0xaffb99(0x1d3)][_0xaffb99(0x1fc)]||(this[_0xaffb99(0x1d3)]['stroke']={}),this[_0xaffb99(0x1d3)]['stroke']['color']=_0x2fa00e,this;}[_0x2294c8(0x1d7)](_0xbf4748){const _0x125361=_0x2294c8;return this[_0x125361(0x1d3)]['stroke']||(this['shapeData'][_0x125361(0x1fc)]={}),this[_0x125361(0x1d3)][_0x125361(0x1fc)][_0x125361(0x1c5)]=_0xbf4748,this;}[_0x2294c8(0x202)](_0x29ca2a){const _0x41785a=_0x2294c8;return this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]||(this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]={}),this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]['dashType']=_0x29ca2a,this;}['setStrokeLineJoinType'](_0x45b777){const _0x1cc131=_0x2294c8;return this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]||(this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]={}),this[_0x1cc131(0x1d3)]['stroke'][_0x1cc131(0x227)]=_0x45b777,this;}['setStrokeLineCapType'](_0x33ba9d){const _0x375a73=_0x2294c8;return this[_0x375a73(0x1d3)][_0x375a73(0x1fc)]||(this['shapeData']['stroke']={}),this[_0x375a73(0x1d3)][_0x375a73(0x1fc)][_0x375a73(0x20e)]=_0x33ba9d,this;}[_0x2294c8(0x1f2)](_0x23590f){const _0x3696cf=_0x2294c8;return this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]||(this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]={}),this['shapeData']['stroke']['opacity']=_0x23590f,this;}[_0x2294c8(0x242)](_0x4874cd){const _0x13eb83=_0x2294c8;return this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]||(this['shapeData'][_0x13eb83(0x1fc)]={}),this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]['lineStrokeType']=_0x4874cd,this;}[_0x2294c8(0x246)](_0x4ea888){return this['width']=_0x4ea888,this;}[_0x2294c8(0x1db)](_0x12a528){const _0x5f910d=_0x2294c8;return this[_0x5f910d(0x218)]=_0x12a528,this;}[_0x2294c8(0x248)](){const _0x1f090f=_0x2294c8;let _0x4715c3=this['_injector'][_0x1f090f(0x1e3)](_0x5c3722)['getShapeModel'](this[_0x1f090f(0x1ca)],this['subUnitId'],this[_0x1f090f(0x20d)]);return _0x4715c3?_0xe1c987(_0x4715c3[_0x1f090f(0x1f6)]()):this[_0x1f090f(0x222)]?_0xe1c987(this[_0x1f090f(0x222)]):!0x1;}[_0x2294c8(0x225)](){const _0x3260f3=_0x2294c8;let _0x411a55=this[_0x3260f3(0x22e)]['get'](_0x5c3722)['getShapeModel'](this[_0x3260f3(0x1ca)],this[_0x3260f3(0x219)],this['drawId']);if(!_0x411a55)return[];let _0x3d5dfa=this[_0x3260f3(0x22e)]['get'](_0x4e860d)[_0x3260f3(0x22a)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3260f3(0x20d)]});if(!(_0x3d5dfa!=null&&_0x3d5dfa['transform']))return[];let {width:_0x3e7e55=0x0,height:_0x47b691=0x0}=_0x3d5dfa[_0x3260f3(0x228)];return _0x411a55['updateContext']({'width':_0x3e7e55,'height':_0x47b691}),_0x411a55[_0x3260f3(0x205)]();}[_0x2294c8(0x1d4)](){const _0x514a6d=_0x2294c8;let _0x16fdf4=this[_0x514a6d(0x22e)]['get'](_0x5c3722)[_0x514a6d(0x1fa)](this[_0x514a6d(0x1ca)],this['subUnitId'],this[_0x514a6d(0x20d)]);if(!_0x16fdf4)return[];let _0x1706b3=this[_0x514a6d(0x22e)][_0x514a6d(0x1e3)](_0x4e860d)[_0x514a6d(0x22a)]({'unitId':this['unitId'],'subUnitId':this[_0x514a6d(0x219)],'drawingId':this[_0x514a6d(0x20d)]});if(!(_0x1706b3!=null&&_0x1706b3[_0x514a6d(0x228)]))return[];let {width:_0x41dce9=0x0,height:_0x33e58c=0x0}=_0x1706b3[_0x514a6d(0x228)];return _0x16fdf4['updateContext']({'width':_0x41dce9,'height':_0x33e58c}),_0x16fdf4[_0x514a6d(0x241)]();}[_0x2294c8(0x249)](){const _0x411be5=_0x2294c8;let _0x132594=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x5c3722)[_0x411be5(0x1fa)](this[_0x411be5(0x1ca)],this['subUnitId'],this[_0x411be5(0x20d)]);if(!_0x132594||!_0xe1c987(_0x132594[_0x411be5(0x1f6)]()))return[];let _0x2b025b=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x4e860d)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x411be5(0x219)],'drawingId':this[_0x411be5(0x20d)]});if(!(_0x2b025b!=null&&_0x2b025b[_0x411be5(0x228)]))return[];let {width:_0x476173=0x0,height:_0xd1f238=0x0}=_0x2b025b[_0x411be5(0x228)];return _0x132594[_0x411be5(0x1d2)]({'width':_0x476173,'height':_0xd1f238}),_0x132594[_0x411be5(0x249)]();}[_0x2294c8(0x233)](){const _0x486827=_0x2294c8;var _0x438855;let _0x8ed768=this[_0x486827(0x22e)][_0x486827(0x1e3)](_0x5c3722)[_0x486827(0x1fa)](this[_0x486827(0x1ca)],this[_0x486827(0x219)],this[_0x486827(0x20d)]);return _0x8ed768?(_0x438855=_0x8ed768[_0x486827(0x233)]())==null?null:_0x438855:null;}[_0x2294c8(0x1e9)](){const _0x1b2317=_0x2294c8;var _0x1724a0;let _0x48e208=this['_injector'][_0x1b2317(0x1e3)](_0x5c3722)[_0x1b2317(0x1fa)](this[_0x1b2317(0x1ca)],this[_0x1b2317(0x219)],this['drawId']);return _0x48e208?(_0x1724a0=_0x48e208[_0x1b2317(0x1e9)]())==null?null:_0x1724a0:null;}[_0x2294c8(0x1fb)](){const _0x5cc4ee=_0x2294c8;var _0x153fbb,_0x4e7bde;if(!this[_0x5cc4ee(0x222)])throw Error(_0x5cc4ee(0x1f7));if(this['x']===0x0||this['y']===0x0){let _0x5aaea5=this['_injector'][_0x5cc4ee(0x1e3)](_0xe5b182)['ensureSkeleton'](this['unitId'],this['subUnitId']);if(!_0x5aaea5)throw Error(_0x5cc4ee(0x214)+this[_0x5cc4ee(0x1ca)]+_0x5cc4ee(0x231)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3312e3}=_0x439023(this[_0x5cc4ee(0x1ca)],this[_0x5cc4ee(0x219)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5aaea5);this['x']=this['x']>0x0?this['x']:_0x3312e3[_0x5cc4ee(0x1dd)],this['y']=this['y']>0x0?this['y']:_0x3312e3[_0x5cc4ee(0x21d)];}return this['width']=(_0x153fbb=this[_0x5cc4ee(0x1c5)])==null?_0xdabd8b:_0x153fbb,this['height']=(_0x4e7bde=this[_0x5cc4ee(0x218)])==null?_0x11c2a4:_0x4e7bde,{'unitId':this[_0x5cc4ee(0x1ca)],'subUnitId':this[_0x5cc4ee(0x219)],'shapeId':this[_0x5cc4ee(0x20d)],'shapeType':this[_0x5cc4ee(0x222)],'shapeData':Object[_0x5cc4ee(0x1e5)](this[_0x5cc4ee(0x1d3)])[_0x5cc4ee(0x22d)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x5cc4ee(0x218)]};}[_0x2294c8(0x1cf)](){const _0x299801=_0x2294c8;return this[_0x299801(0x20d)];}[_0x2294c8(0x1f6)](){const _0x2bbab4=_0x2294c8;return this[_0x2bbab4(0x222)];}[_0x2294c8(0x1e1)](){const _0x3e91c9=_0x2294c8;return this[_0x3e91c9(0x1d3)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x2294c8(0x245)](){const _0x18b848=_0x2294c8;return{'width':this['width'],'height':this[_0x18b848(0x218)]};}},F=class extends P{constructor(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813){const _0x37e36c=_0x2294c8;super(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813),N(this,_0x37e36c(0x1d3),{});}[_0x2294c8(0x1f0)](_0x13a1a3){const _0x2c6723=_0x2294c8;if(!_0xe1c987(_0x13a1a3))throw Error(_0x2c6723(0x210)+_0x13a1a3+_0x2c6723(0x1e8));return super['setShapeType'](_0x13a1a3),this;}[_0x2294c8(0x1ee)](_0x599217){const _0x1d3eea=_0x2294c8;var _0x2609be,_0x39a67e;return(_0x2609be=this[_0x1d3eea(0x1d3)])!=null&&_0x2609be['ln']||(this['shapeData']['ln']={}),!((_0x39a67e=this[_0x1d3eea(0x1d3)])==null||(_0x39a67e=_0x39a67e['ln'])==null)&&_0x39a67e['startArrow']||(this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)]={}),this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)][_0x1d3eea(0x21f)]=_0x599217,this;}[_0x2294c8(0x23d)](_0x3dd134){const _0x5aa569=_0x2294c8;var _0xfa308,_0x351dd6;return(_0xfa308=this[_0x5aa569(0x1d3)])!=null&&_0xfa308['ln']||(this[_0x5aa569(0x1d3)]['ln']={}),!((_0x351dd6=this[_0x5aa569(0x1d3)])==null||(_0x351dd6=_0x351dd6['ln'])==null)&&_0x351dd6[_0x5aa569(0x1d8)]||(this[_0x5aa569(0x1d3)]['ln'][_0x5aa569(0x1d8)]={}),this['shapeData']['ln']['endArrow'][_0x5aa569(0x21f)]=_0x3dd134,this;}[_0x2294c8(0x1cd)](_0x31eab9){const _0xf4d18e=_0x2294c8;var _0x40bd11,_0x134d29;return(_0x40bd11=this[_0xf4d18e(0x1d3)])!=null&&_0x40bd11['ln']||(this[_0xf4d18e(0x1d3)]['ln']={}),!((_0x134d29=this['shapeData'])==null||(_0x134d29=_0x134d29['ln'])==null)&&_0x134d29[_0xf4d18e(0x1ef)]||(this[_0xf4d18e(0x1d3)]['ln']['startArrow']={}),this[_0xf4d18e(0x1d3)]['ln']['startArrow'][_0xf4d18e(0x243)]=_0x31eab9,this;}[_0x2294c8(0x209)](_0x5179ba){const _0x3a6800=_0x2294c8;var _0x4f9409,_0x250ee5;return(_0x4f9409=this[_0x3a6800(0x1d3)])!=null&&_0x4f9409['ln']||(this[_0x3a6800(0x1d3)]['ln']={}),!((_0x250ee5=this[_0x3a6800(0x1d3)])==null||(_0x250ee5=_0x250ee5['ln'])==null)&&_0x250ee5[_0x3a6800(0x1d8)]||(this[_0x3a6800(0x1d3)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x3a6800(0x1d8)][_0x3a6800(0x243)]=_0x5179ba,this;}[_0x2294c8(0x1fb)](){return super['build']();}[_0x2294c8(0x1e9)](){const _0x271a70=_0x2294c8;var _0x3b5a6e;return((_0x3b5a6e=this[_0x271a70(0x1d3)])==null||(_0x3b5a6e=_0x3b5a6e[_0x271a70(0x240)])==null?void 0x0:_0x3b5a6e['to'])||null;}[_0x2294c8(0x233)](){const _0x7f272e=_0x2294c8;var _0x19b794;return((_0x19b794=this['shapeData'])==null||(_0x19b794=_0x19b794[_0x7f272e(0x240)])==null?void 0x0:_0x19b794[_0x7f272e(0x1f3)])||null;}};function I(_0x20336c,_0x1dfd7b,_0x14df5a,_0x36efcb,_0x4a590e,_0x25c7a7){const _0x331a96=_0x2294c8;let _0x45800d=_0x4a590e[_0x331a96(0x1fa)](_0x20336c,_0x1dfd7b,_0x14df5a);if(!_0x45800d)return null;let _0x3d7c50=_0x25c7a7['getDrawingByParam']({'unitId':_0x20336c,'subUnitId':_0x1dfd7b,'drawingId':_0x14df5a});if(!(_0x3d7c50!=null&&_0x3d7c50[_0x331a96(0x228)]))return null;let {left:_0x310935=0x0,top:_0x519fae=0x0,width:_0x201003=0x0,height:_0x525de1=0x0,flipX:_0x2ed3e6=!0x1,flipY:_0x2b6667=!0x1,angle:_0x134923}=_0x3d7c50[_0x331a96(0x228)];_0x45800d[_0x331a96(0x1d2)]({'width':_0x201003,'height':_0x525de1});let _0x1ac5ed=_0x45800d[_0x331a96(0x205)]()[_0x331a96(0x244)](_0x58cc8e=>_0x58cc8e['index']===_0x36efcb);if(!_0x1ac5ed)return null;let _0x15ec78=_0x2ed3e6?_0x201003-_0x1ac5ed['x']:_0x1ac5ed['x'],_0x438821=_0x2b6667?_0x525de1-_0x1ac5ed['y']:_0x1ac5ed['y'];if(_0x134923&&_0x134923!==0x0){let _0x3f203a=_0x134923*Math['PI']/0xb4,_0x283e8d=Math[_0x331a96(0x235)](_0x3f203a),_0x2d1844=Math['sin'](_0x3f203a),_0x3820d9=_0x201003/0x2,_0x3f63bf=_0x525de1/0x2,_0x36e6f8=_0x15ec78-_0x3820d9,_0xbb0eb9=_0x438821-_0x3f63bf;_0x15ec78=_0x3820d9+_0x36e6f8*_0x283e8d-_0xbb0eb9*_0x2d1844,_0x438821=_0x3f63bf+_0x36e6f8*_0x2d1844+_0xbb0eb9*_0x283e8d;}_0x15ec78+=_0x310935,_0x438821+=_0x519fae;let _0x527b10=_0x1ac5ed[_0x331a96(0x20a)]/0xea60;_0x2ed3e6&&(_0x527b10=0xb4-_0x527b10),_0x2b6667&&(_0x527b10=-_0x527b10),_0x527b10+=_0x134923||0x0,_0x527b10=(_0x527b10%0x168+0x168)%0x168;let _0x1104a8=_0x5350e5({'left':_0x310935,'top':_0x519fae,'width':_0x201003,'height':_0x525de1},_0x134923||0x0);return{'point':{'x':_0x15ec78,'y':_0x438821},'angle':_0x527b10,'bounds':_0x1104a8};}function L(_0x457973,_0x467354){const _0x2b083d=_0x2294c8;let _0x4c5881=_0x467354['x']-_0x457973['x'],_0x268f7e=_0x467354['y']-_0x457973['y'];return Math[_0x2b083d(0x200)](_0x4c5881)>=Math['abs'](_0x268f7e)?_0x4c5881>=0x0?0xb4:0x0:_0x268f7e>=0x0?0x10e:0x5a;}function R(_0x42ebd4,_0x41045c,_0x346f0d,_0x42f598,_0x49e4fa,_0x5868c6,_0x69a39d){const _0xb7570f=_0x2294c8;let _0x1de5ea=_0x5868c6[_0xb7570f(0x1fa)](_0x42ebd4,_0x41045c,_0x346f0d);if(!_0x1de5ea)return null;let _0xf9636d=_0x69a39d['getDrawingByParam']({'unitId':_0x42ebd4,'subUnitId':_0x41045c,'drawingId':_0x346f0d});if(!(_0xf9636d!=null&&_0xf9636d[_0xb7570f(0x228)]))return null;let {left:_0x1d932a=0x0,top:_0x654a09=0x0,width:_0x17721b=0x0,height:_0x5db118=0x0,flipX:_0x374390=!0x1,flipY:_0x529e77=!0x1}=_0xf9636d['transform'];_0x1de5ea['updateContext']({'width':_0x17721b,'height':_0x5db118});let _0xdfeaa6=_0x1de5ea[_0xb7570f(0x249)]();if(_0xdfeaa6['length']<0x2)return null;let _0x311ead=_0x42f598?_0xdfeaa6[0x0]:_0xdfeaa6[_0xdfeaa6['length']-0x1],_0x5efb79=new _0x226b98({'left':_0x1d932a,'top':_0x654a09,'width':_0x17721b,'height':_0x5db118,'flipX':_0x374390,'flipY':_0x529e77})[_0xb7570f(0x21c)](_0x311ead);return{'point':_0x5efb79,'angle':L(_0x49e4fa[_0xb7570f(0x1f4)],_0x5efb79),'bounds':{'left':_0x5efb79['x'],'top':_0x5efb79['y'],'width':0x0,'height':0x0}};}function _0x10e5(_0x2a12c3,_0x79ac5a){_0x2a12c3=_0x2a12c3-0x1c5;const _0x2ff63f=_0x2ff6();let _0x10e548=_0x2ff63f[_0x2a12c3];return _0x10e548;}var z=class extends _0x4f6f37{async[_0x2294c8(0x22b)](_0x518ede){const _0x2687ee=_0x2294c8;let {unitId:_0x13c442,subUnitId:_0x590a86,shapeId:_0x499271,shapeType:_0x459c80,shapeData:_0x2e719a,x:_0x317d35,y:_0x4583c4,width:_0x2650aa,height:_0x5b6add}=_0x518ede;return this[_0x2687ee(0x216)][_0x2687ee(0x1f9)](_0x2b5f84['id'],{'unitId':_0x13c442,'subUnitId':_0x590a86,'shapeId':_0x499271,'shapeType':_0x459c80,'shapeData':_0x2e719a,'position':{'x':_0x317d35,'y':_0x4583c4},'width':_0x2650aa,'height':_0x5b6add});}async[_0x2294c8(0x1ce)](_0x534acf){const _0x3e9c87=_0x2294c8;let {unitId:_0x3cd1c5,subUnitId:_0x42e559,shapeId:_0x33282e,shapeType:_0x57fd12,shapeData:_0x12c1db,x:_0x3b4908,y:_0xf60132,width:_0x1887e3,height:_0x203ae6}=_0x534acf;return this[_0x3e9c87(0x216)][_0x3e9c87(0x1f9)](_0x4bd9a0['id'],{'unitId':_0x3cd1c5,'subUnitId':_0x42e559,'shapeId':_0x33282e,'shapeType':_0x57fd12,'shapeData':_0x12c1db,'position':{'x':_0x3b4908,'y':_0xf60132},'width':_0x1887e3,'height':_0x203ae6});}['newShape'](_0x339dd0){const _0x5de9c2=_0x2294c8;let _0x1489bb=this[_0x5de9c2(0x203)]()[_0x5de9c2(0x1ec)](),_0x472bb4=this[_0x5de9c2(0x238)]();if(_0x339dd0){let _0x4e3568=new P(_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)],this['_injector']);return this[_0x5de9c2(0x1e7)](_0x4e3568,_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)]),_0x4e3568;}return new P(_0x1489bb,_0x472bb4,_0x4e4bad(),this['_injector']);}['newConnector'](_0x43fc0d){const _0x47823c=_0x2294c8;let _0x3f05c9=this[_0x47823c(0x203)]()[_0x47823c(0x1ec)](),_0x4f1ee3=this['getSheetId']();if(_0x43fc0d){let _0x220291=new F(_0x3f05c9,_0x4f1ee3,_0x43fc0d['drawId'],this[_0x47823c(0x22e)]);return this['_preloadShapeProperties'](_0x220291,_0x3f05c9,_0x4f1ee3,_0x43fc0d[_0x47823c(0x20d)]),_0x220291;}return new F(_0x3f05c9,_0x4f1ee3,_0x4e4bad(),this[_0x47823c(0x22e)]);}[_0x2294c8(0x1e4)](){const _0x7390e2=_0x2294c8;let _0x120489=this[_0x7390e2(0x22e)][_0x7390e2(0x1e3)](_0xa71416),_0x3d597f=this[_0x7390e2(0x203)]()['getUnitId'](),_0x2a2e0f=this[_0x7390e2(0x238)](),_0x509c9f=_0x120489[_0x7390e2(0x213)](_0x3d597f,_0x2a2e0f);if(!_0x509c9f)return[];let _0xc15c52=[];for(let [_0x253011,_0x1d4231]of Object['entries'](_0x509c9f))if(_0x1d4231&&_0x1d4231[_0x7390e2(0x207)]===_0x285b45[_0x7390e2(0x237)]){let _0x57cf5c=new P(_0x3d597f,_0x2a2e0f,_0x253011,this[_0x7390e2(0x22e)]);this[_0x7390e2(0x1e7)](_0x57cf5c,_0x3d597f,_0x2a2e0f,_0x253011),_0xc15c52['push'](_0x57cf5c);}return _0xc15c52;}[_0x2294c8(0x1da)](_0x5dcdfe){const _0x2c691b=_0x2294c8;let {unitId:_0x3bb5ec,subUnitId:_0xbcc1d0,drawId:_0x1004d8}=_0x5dcdfe;return this[_0x2c691b(0x216)][_0x2c691b(0x1f9)](_0x1b2369['id'],{'unitId':_0x3bb5ec,'drawings':[{'unitId':_0x3bb5ec,'subUnitId':_0xbcc1d0,'drawingId':_0x1004d8,'drawingType':_0x285b45[_0x2c691b(0x237)]}]});}async[_0x2294c8(0x236)](_0x10c630){const _0x4e2616=_0x2294c8;let {connector:_0x90d6cd,startTarget:_0x410607,endTarget:_0x49f4f8}=_0x10c630;if(!_0x410607&&!_0x49f4f8)return!0x1;let _0x4fe5f4=this['getWorkbook']()[_0x4e2616(0x1ec)](),_0x1d5dca=this[_0x4e2616(0x238)](),_0x5b30a5=this[_0x4e2616(0x22e)][_0x4e2616(0x1e3)](_0x5c3722),_0x42ea4c=this[_0x4e2616(0x22e)]['get'](_0x4e860d),_0x3f9b57=_0x5b30a5[_0x4e2616(0x1fa)](_0x4fe5f4,_0x1d5dca,_0x90d6cd[_0x4e2616(0x20d)]);if(!_0x3f9b57)return!0x1;let _0x1e639e=_0x3f9b57['getShapeType'](),_0x3fbcad=_0x3f9b57[_0x4e2616(0x1c7)](),_0x32b2f6={};for(let _0x14f71e of _0x3f9b57[_0x4e2616(0x1d5)]()){let _0x23047e=_0x3f9b57[_0x4e2616(0x217)](_0x14f71e);_0x23047e!==void 0x0&&(_0x32b2f6[_0x14f71e]=_0x23047e);}let {startInfo:_0x3ca704,endInfo:_0x33e99c}=this[_0x4e2616(0x208)](_0x4fe5f4,_0x1d5dca,_0x90d6cd,_0x3f9b57,_0x410607,_0x49f4f8,_0x5b30a5,_0x42ea4c,_0x3fbcad);if(!_0x3ca704||!_0x33e99c)return!0x1;let _0xe9ee61=_0x8012ef(_0x1966ac(_0x3ca704,_0x33e99c,_0x1e639e),_0x1e639e),_0x3834d4={};return _0x410607?_0x3834d4[_0x4e2616(0x1f3)]={'shapeId':_0x410607['shape'][_0x4e2616(0x20d)],'cxnIndex':_0x410607['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['from']&&(_0x3834d4[_0x4e2616(0x1f3)]=_0x3fbcad[_0x4e2616(0x1f3)]),_0x49f4f8?_0x3834d4['to']={'shapeId':_0x49f4f8[_0x4e2616(0x1f1)]['drawId'],'cxnIndex':_0x49f4f8['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['to']&&(_0x3834d4['to']=_0x3fbcad['to']),this[_0x4e2616(0x216)][_0x4e2616(0x1f9)](_0x3ac70a['id'],{'unitId':_0x4fe5f4,'subUnitId':_0x1d5dca,'connectorShapeId':_0x90d6cd[_0x4e2616(0x20d)],'width':_0xe9ee61[_0x4e2616(0x211)]['width'],'height':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x218)],'left':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1dd)],'top':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x21d)],'flipX':_0xe9ee61['worldRect'][_0x4e2616(0x1c9)]||!0x1,'flipY':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1e2)]||!0x1,'oldAdjustValues':_0x32b2f6,'newAdjustValues':_0xe9ee61[_0x4e2616(0x21b)],'newLineType':_0xe9ee61['lineType'],'oldLineType':_0x1e639e,'rotation':_0xe9ee61[_0x4e2616(0x22c)],'oldRelation':_0x3fbcad,'newRelation':_0x3834d4});}[_0x2294c8(0x1e7)](_0x143ada,_0x5976d4,_0xffcd87,_0x5be5dd){const _0x3d4c33=_0x2294c8;let _0x2e2d92=this[_0x3d4c33(0x22e)]['get'](_0x4e860d)[_0x3d4c33(0x22a)]({'unitId':_0x5976d4,'subUnitId':_0xffcd87,'drawingId':_0x5be5dd});if(_0x2e2d92!=null&&_0x2e2d92[_0x3d4c33(0x228)]){var _0x1ccff4,_0x5bd70f,_0x19c628,_0x50ccaf;_0x143ada['x']=(_0x1ccff4=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1dd)])==null?0x0:_0x1ccff4,_0x143ada['y']=(_0x5bd70f=_0x2e2d92[_0x3d4c33(0x228)]['top'])==null?0x0:_0x5bd70f,_0x143ada[_0x3d4c33(0x1c5)]=(_0x19c628=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1c5)])==null?_0x143ada[_0x3d4c33(0x1c5)]:_0x19c628,_0x143ada[_0x3d4c33(0x218)]=(_0x50ccaf=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x218)])==null?_0x143ada[_0x3d4c33(0x218)]:_0x50ccaf;}let _0x112727=this[_0x3d4c33(0x22e)][_0x3d4c33(0x1e3)](_0x5c3722)[_0x3d4c33(0x1fa)](_0x5976d4,_0xffcd87,_0x5be5dd);if(_0x112727){_0x143ada[_0x3d4c33(0x222)]=_0x112727[_0x3d4c33(0x1f6)]();let _0x3bd835=_0x112727[_0x3d4c33(0x1e1)]();_0x3bd835&&(_0x143ada[_0x3d4c33(0x1d3)]=JSON['parse'](JSON[_0x3d4c33(0x1d0)](_0x3bd835)));}}[_0x2294c8(0x208)](_0x1dacb4,_0x59248c,_0x17164b,_0x70a6a,_0x5708c8,_0x21c049,_0x1ce575,_0x3fb1bd,_0x2e2563){const _0x1493bd=_0x2294c8;let _0x15ffa2=null,_0x57025e=null;return _0x5708c8&&(_0x15ffa2=I(_0x1dacb4,_0x59248c,_0x5708c8[_0x1493bd(0x1f1)][_0x1493bd(0x20d)],_0x5708c8[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x21c049&&(_0x57025e=I(_0x1dacb4,_0x59248c,_0x21c049[_0x1493bd(0x1f1)]['drawId'],_0x21c049[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x15ffa2||(_0x15ffa2=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b['drawId'],!0x0,_0x57025e,_0x2e2563==null?void 0x0:_0x2e2563[_0x1493bd(0x1f3)],_0x1ce575,_0x3fb1bd)),_0x57025e||(_0x57025e=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b[_0x1493bd(0x20d)],!0x1,_0x15ffa2,_0x2e2563==null?void 0x0:_0x2e2563['to'],_0x1ce575,_0x3fb1bd)),{'startInfo':_0x15ffa2,'endInfo':_0x57025e};}['_resolveExistingOrFreeEndpoint'](_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x5d0a85,_0x67d839,_0x39c03d){const _0x59461b=_0x2294c8;if(_0x5d0a85){let _0x5d38ef=I(_0xc5558a,_0x98c206,_0x5d0a85[_0x59461b(0x234)],_0x5d0a85[_0x59461b(0x226)],_0x67d839,_0x39c03d);if(_0x5d38ef)return _0x5d38ef;}return _0x3c06ec?R(_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x67d839,_0x39c03d):null;}};_0x4f6f37[_0x2294c8(0x1f8)](z);export{F as FConnectorShape,P as FShape};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x59fa14=_0x5da5;(function(_0x2a82bb,_0x4fc7ce){const _0x17a6d8=_0x5da5,_0x52f73f=_0x2a82bb();while(!![]){try{const _0x12b990=parseInt(_0x17a6d8(0x13d))/0x1*(parseInt(_0x17a6d8(0xe7))/0x2)+parseInt(_0x17a6d8(0x128))/0x3*(parseInt(_0x17a6d8(0xed))/0x4)+-parseInt(_0x17a6d8(0x138))/0x5*(-parseInt(_0x17a6d8(0x15b))/0x6)+-parseInt(_0x17a6d8(0x124))/0x7*(parseInt(_0x17a6d8(0x100))/0x8)+-parseInt(_0x17a6d8(0x12f))/0x9*(parseInt(_0x17a6d8(0x122))/0xa)+parseInt(_0x17a6d8(0x151))/0xb+-parseInt(_0x17a6d8(0x173))/0xc*(parseInt(_0x17a6d8(0x10e))/0xd);if(_0x12b990===_0x4fc7ce)break;else _0x52f73f['push'](_0x52f73f['shift']());}catch(_0x1da32c){_0x52f73f['push'](_0x52f73f['shift']());}}}(_0x12da,0x1c159));import{ShapeModel as _0x5173db,computeConnectorRouteLayout as _0x1e57a6,createUniqueShapeName as _0x80e9ad,getBasicShapeRotateBound as _0x23c33d,isConnectorShape as _0xf81d44,routeConnectorLineShape as _0x2a847c}from'@univerjs-pro/engine-shape';import{CommandType as _0x2bf4ff,DependentOn as _0x4b3f23,Disposable as _0x1b87a1,DrawingTypeEnum as _0x34bc84,ICommandService as _0x5448b6,IConfigService as _0x3dfdf2,IResourceManagerService as _0x42568c,IUndoRedoService as _0x2e3ab6,IUniverInstanceService as _0xa3f088,Inject as _0x4e1507,Injector as _0x213482,Plugin as _0x43f10e,UniverInstanceType as _0x4f7fa0,generateRandomId as _0x1c7b18,merge as _0x375fc4,sequenceExecute as _0x20d2b6,touchDependencies as _0x38b51a}from'@univerjs/core';import{SheetInterceptorService as _0x1b2525,SheetSkeletonService as _0x44b292,getSheetCommandTarget as _0x58348b}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x1d1aa4,DrawingApplyType as _0x1e39cb,ISheetDrawingService as _0x2a5b18,InsertSheetDrawingCommand as _0x5f1f6d,RemoveSheetDrawingCommand as _0x56657d,SetDrawingApplyMutation as _0x4f132c,SetSheetDrawingCommand as _0x3319d6,transformToAxisAlignPosition as _0x2b6c1d,transformToDrawingPosition as _0x383801}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x10db9b}from'@univerjs-pro/license';import{IDrawingManagerService as _0x1b9e92}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x589a13){'@babel/helpers - typeof';const _0x3d1b6e=_0x5da5;return z=typeof Symbol==_0x3d1b6e(0x132)&&typeof Symbol[_0x3d1b6e(0x139)]==_0x3d1b6e(0x175)?function(_0x1c6bfa){return typeof _0x1c6bfa;}:function(_0x530b54){const _0x516de9=_0x3d1b6e;return _0x530b54&&typeof Symbol=='function'&&_0x530b54[_0x516de9(0xd3)]===Symbol&&_0x530b54!==Symbol['prototype']?_0x516de9(0x175):typeof _0x530b54;},z(_0x589a13);}function B(_0x529faf,_0x473d47){const _0x2d531f=_0x5da5;if(z(_0x529faf)!=_0x2d531f(0x116)||!_0x529faf)return _0x529faf;var _0x38c5f4=_0x529faf[Symbol[_0x2d531f(0x10a)]];if(_0x38c5f4!==void 0x0){var _0x543cbc=_0x38c5f4[_0x2d531f(0x103)](_0x529faf,_0x473d47||_0x2d531f(0x129));if(z(_0x543cbc)!='object')return _0x543cbc;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x473d47===_0x2d531f(0xd9)?String:Number)(_0x529faf);}function _0x12da(){const _0x5bf92d=['sin','stringify','version','getId','pushUndoRedo','getBasicShapeType','_sheetsShapeService','21078XhWntU','hasShape','left','cxnIndex','getBasicShapeRelation','redos','getBatchAddOp','COMMAND','addShape','MUTATION','getShapeModel','position','_serializeShapeForUnit','getEndConnectInfo','getShapeType','_initCommandInterceptor','fromJSON','undos','defineProperty','top','_initSnapshot','from','sheet.command.update-connector-relation','getShapeTextData','624mGPvsl','isLineShape','symbol','flipX','fill','transform','_sheetInterceptorService','_deserializeShapeForUnit','constructor','_shapeModelManagerMap','_config','data','getDrawingData','entries','string','sheet.mutation.update-shape-data','updateContext','push','startX','_initCommands','drawingType','width','getAdjustValueByName','_linesIds','getShapeTypeById','1.0.0-alpha.0','angle','registerCommand','4CosnIv','getBatchUpdateOp','borderEnabled','registerPluginResource','removeLinePoints','_commandService','8kglpFH','sheet.mutation.update-shape-type','delete','pluginName','@univerjs-pro/sheets-shape','packageName','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','onCommandExecute','_sheetSkeletonService','resizeEnabled','getName','range','relation','sheet.command.set-shape-text-vertical-toggle','_groupIds','lineShapeId','shapeId','set','cos','23032FWeVpj','sheet.command.update-shape-type','INSERT','call','sheet.command.insert-shape','getShapeRelation','result','DRAWING_SHAPE','forEach','preUndos','toPrimitive','getCellWithCoordByIndex','_addLineRerouteUpdates','flipY','87022OwEklM','_shapes','_disposed','UNIVER_SHEET','rotateEnabled','add','getOwnPropertyDescriptor','SHEET_SHAPE_PLUGIN','object','shapeName','getShapeData','_ensureShapeModelManager','isHorizontal','_configService','params','get','filter','_getConnectPointInfo','onStarting','keys','10kLykie','_addLineFollowShapeUpdates','392ZWsDQy','isFrom','index','removeShape','340635mpFTIl','default','adjustValues','syncExecuteCommand','clear','getDrawingByParam','dispose','421956chYznU','REMOVE','_injector','function','_drawingManagerService','sheet.command.set-shape-drawing-data','parse','values','setShapeData','265qTAniv','iterator','ensureSkeleton','length','getShapeDisplayNames','45829NVzEHw','setConfig','sheet.command.set-shape-rotate','getAdjustNames','startY','toJSON','decorate','assign','interceptCommand','UPDATE','getSkeleton','sheet.command.update-line-shape-resize','getLineShapeRelation','getStartConnectInfo','height','getConnectionSiteList','worldRect','disposeWithMe','getCellIndexAndOffsetByPosition','preRedos','1829212VzlITu','insertShape','setShapeType'];_0x12da=function(){return _0x5bf92d;};return _0x12da();}function V(_0x4baf2f){const _0xaa8a72=_0x5da5;var _0xa3ef51=B(_0x4baf2f,_0xaa8a72(0xd9));return z(_0xa3ef51)==_0xaa8a72(0x175)?_0xa3ef51:_0xa3ef51+'';}function H(_0x46620b,_0x454051,_0x3fac31){const _0xe328=_0x5da5;return(_0x454051=V(_0x454051))in _0x46620b?Object[_0xe328(0x16d)](_0x46620b,_0x454051,{'value':_0x3fac31,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46620b[_0x454051]=_0x3fac31,_0x46620b;}var U=class extends _0x1b87a1{constructor(){const _0x2ba043=_0x5da5;super(),H(this,'_shapes',new Map()),H(this,_0x2ba043(0xe2),new Set()),H(this,_0x2ba043(0xfb),new Set());}[_0x59fa14(0x163)](_0x2fbd16,_0x39f490,_0x27c640,_0x3d4c65){const _0xa6a7e4=_0x59fa14;let _0x113abe=new _0x5173db(_0x2fbd16,_0x39f490,_0x27c640,_0x3d4c65);return this['_shapes'][_0xa6a7e4(0xfe)](_0x39f490,_0x113abe),_0xf81d44(_0x2fbd16)&&this['_linesIds'][_0xa6a7e4(0x113)](_0x39f490),_0x113abe;}[_0x59fa14(0x15f)](_0x81cb40){const _0xaaf059=_0x59fa14;let _0x5bb80b=[];for(let _0x31f47b of this[_0xaaf059(0xe2)]){let _0x3c287d=this[_0xaaf059(0x10f)]['get'](_0x31f47b);if(_0x3c287d){let _0x13902f=_0x3c287d['getShapeRelation']();if(_0x13902f){var _0x127848,_0x28411f;((_0x127848=_0x13902f['from'])==null?void 0x0:_0x127848['shapeId'])===_0x81cb40&&_0x5bb80b['push']({..._0x13902f[_0xaaf059(0x170)],'lineShapeId':_0x31f47b,'isFrom':!0x0}),((_0x28411f=_0x13902f['to'])==null?void 0x0:_0x28411f[_0xaaf059(0xfd)])===_0x81cb40&&_0x5bb80b['push']({..._0x13902f['to'],'lineShapeId':_0x31f47b,'isFrom':!0x1});}}}return _0x5bb80b;}['getLineShapeRelation'](_0x2afe8c){const _0xe9ac78=_0x59fa14;let _0x5bbbaf=this[_0xe9ac78(0x10f)][_0xe9ac78(0x11d)](_0x2afe8c);if(_0x5bbbaf)return _0x5bbbaf[_0xe9ac78(0x105)]();}[_0x59fa14(0x169)](_0x31616b){const _0x57b7ab=_0x59fa14;let _0x19e58b=this[_0x57b7ab(0x10f)][_0x57b7ab(0x11d)](_0x31616b);if(_0x19e58b)return _0x19e58b[_0x57b7ab(0x169)]();}['hasShape'](_0x4d152b){return this['_shapes']['has'](_0x4d152b);}[_0x59fa14(0x13c)](){const _0x5067b2=_0x59fa14;return Array[_0x5067b2(0x170)](this[_0x5067b2(0x10f)][_0x5067b2(0x136)]())['map'](_0x524546=>_0x524546[_0x5067b2(0xf7)]()||_0x524546[_0x5067b2(0x157)]());}[_0x59fa14(0x127)](_0x15d81e){const _0x26adad=_0x59fa14;let _0x1cceac=this[_0x26adad(0x10f)][_0x26adad(0x11d)](_0x15d81e);_0x1cceac&&(_0xf81d44(_0x1cceac[_0x26adad(0x169)]())&&this['_linesIds']['delete'](_0x15d81e),this['_shapes'][_0x26adad(0xef)](_0x15d81e));}['toJSON'](){const _0x3e614b=_0x59fa14;let _0x382218=[];return this['_shapes'][_0x3e614b(0x108)](_0xe1e039=>{const _0x283d63=_0x3e614b;_0x382218[_0x283d63(0xdc)](_0xe1e039[_0x283d63(0x142)]());}),_0x382218;}[_0x59fa14(0x16b)](_0x12ced7){const _0x2cabde=_0x59fa14;for(let _0x162f3b of _0x12ced7){let {id:_0x3f53f1,shapeType:_0x3b0f39,name:_0x37d5f1}=_0x162f3b,_0x23c3d7=this[_0x2cabde(0x163)](_0x3b0f39,_0x3f53f1,_0x162f3b['shapeData'],_0x37d5f1);_0x23c3d7&&_0x23c3d7[_0x2cabde(0x174)]()&&this[_0x2cabde(0xe2)][_0x2cabde(0x113)](_0x3f53f1);}}[_0x59fa14(0x12e)](){const _0x482673=_0x59fa14;this[_0x482673(0x110)]||(this[_0x482673(0x10f)][_0x482673(0x108)](_0x1ec3c2=>{_0x1ec3c2['dispose']();}),this[_0x482673(0x10f)][_0x482673(0x12c)](),this[_0x482673(0xe2)][_0x482673(0x12c)](),this[_0x482673(0xfb)][_0x482673(0x12c)](),super['dispose']());}};function W(_0xf51404,_0x4c7eac){return function(_0x36764e,_0x3c0a30){_0x4c7eac(_0x36764e,_0x3c0a30,_0xf51404);};}function G(_0x359faf,_0x87e38c,_0xe0461,_0x1c6682){const _0x37afee=_0x59fa14;var _0x1bf62d=arguments[_0x37afee(0x13b)],_0x2d3a11=_0x1bf62d<0x3?_0x87e38c:_0x1c6682===null?_0x1c6682=Object[_0x37afee(0x114)](_0x87e38c,_0xe0461):_0x1c6682,_0x3d1c07;if(typeof Reflect==_0x37afee(0x116)&&typeof Reflect[_0x37afee(0x143)]==_0x37afee(0x132))_0x2d3a11=Reflect['decorate'](_0x359faf,_0x87e38c,_0xe0461,_0x1c6682);else{for(var _0x1174db=_0x359faf[_0x37afee(0x13b)]-0x1;_0x1174db>=0x0;_0x1174db--)(_0x3d1c07=_0x359faf[_0x1174db])&&(_0x2d3a11=(_0x1bf62d<0x3?_0x3d1c07(_0x2d3a11):_0x1bf62d>0x3?_0x3d1c07(_0x87e38c,_0xe0461,_0x2d3a11):_0x3d1c07(_0x87e38c,_0xe0461))||_0x2d3a11);}return _0x1bf62d>0x3&&_0x2d3a11&&Object[_0x37afee(0x16d)](_0x87e38c,_0xe0461,_0x2d3a11),_0x2d3a11;}let K=class extends _0x1b87a1{constructor(_0x1d7e9e){const _0x26a325=_0x59fa14;super(),this['_resourcesManagerService']=_0x1d7e9e,H(this,_0x26a325(0xd4),new Map()),this['_initSnapshot']();}[_0x59fa14(0x119)](_0x3df9f9,_0x108b97){const _0x3030a4=_0x59fa14;let _0xc3730b=this[_0x3030a4(0xd4)][_0x3030a4(0x11d)](_0x3df9f9);_0xc3730b||(_0xc3730b=new Map(),this[_0x3030a4(0xd4)][_0x3030a4(0xfe)](_0x3df9f9,_0xc3730b));let _0x405e91=_0xc3730b[_0x3030a4(0x11d)](_0x108b97);return _0x405e91||(_0x405e91=new U(),_0xc3730b[_0x3030a4(0xfe)](_0x108b97,_0x405e91)),_0x405e91;}[_0x59fa14(0x152)](_0x1ccfef,_0x2d10e3,_0x2238f8,_0x1bf0b8,_0x2bce59,_0xd5609c){const _0xc6154f=_0x59fa14;this[_0xc6154f(0x119)](_0x1ccfef,_0x2d10e3)[_0xc6154f(0x163)](_0x2238f8,_0x1bf0b8,_0x2bce59,_0xd5609c);}[_0x59fa14(0x127)](_0x19a9a4,_0x45379b,_0xcc2061){const _0x496cc4=_0x59fa14;this['_ensureShapeModelManager'](_0x19a9a4,_0x45379b)[_0x496cc4(0x127)](_0xcc2061);}[_0x59fa14(0x159)](_0x401593,_0xcdba09,_0x43925b){const _0x51bdfe=_0x59fa14;return this[_0x51bdfe(0x119)](_0x401593,_0xcdba09)['getShapeType'](_0x43925b);}['getShapeType'](_0x8e943d,_0x4f4b32,_0xba1d2e){const _0x350bd7=_0x59fa14;return this[_0x350bd7(0x119)](_0x8e943d,_0x4f4b32)['getShapeType'](_0xba1d2e);}['hasShape'](_0x1ac7dd,_0x18c631,_0x2e04a3){const _0x333b8b=_0x59fa14;return this[_0x333b8b(0x119)](_0x1ac7dd,_0x18c631)[_0x333b8b(0x15c)](_0x2e04a3);}[_0x59fa14(0xe3)](_0xd1d6bd,_0x16535c,_0x27e829){const _0x3dd738=_0x59fa14;return this[_0x3dd738(0x119)](_0xd1d6bd,_0x16535c)['getShapeType'](_0x27e829);}['getShapeDataById'](_0x1bf469,_0x11882c,_0x5b08a7){const _0x523835=_0x59fa14;let _0x588346=this[_0x523835(0x119)](_0x1bf469,_0x11882c);if(!_0x588346['getShapeType'](_0x5b08a7))return;let _0x4e96a8=_0x588346['_shapes']['get'](_0x5b08a7);if(_0x4e96a8)return _0x4e96a8[_0x523835(0x118)]();}['getShapeDisplayNames'](_0x161068,_0x503b03){const _0x3ff91f=_0x59fa14;return this[_0x3ff91f(0x119)](_0x161068,_0x503b03)[_0x3ff91f(0x13c)]();}[_0x59fa14(0x165)](_0x179c24,_0x577f5b,_0x3a5def){const _0x3fd471=_0x59fa14;return this[_0x3fd471(0x119)](_0x179c24,_0x577f5b)[_0x3fd471(0x10f)]['get'](_0x3a5def);}[_0x59fa14(0x15f)](_0x48232b,_0x3f31ec,_0x2238ac){const _0x24ca9b=_0x59fa14;return this['_ensureShapeModelManager'](_0x48232b,_0x3f31ec)[_0x24ca9b(0x15f)](_0x2238ac);}[_0x59fa14(0x149)](_0x553437,_0x4decff,_0x65ba34){const _0x3be558=_0x59fa14;let _0x2ee0a5=this[_0x3be558(0x119)](_0x553437,_0x4decff)[_0x3be558(0x10f)]['get'](_0x65ba34);if(_0x2ee0a5)return _0x2ee0a5['getShapeRelation']();}[_0x59fa14(0x153)](){}[_0x59fa14(0x167)](_0x9fce08){const _0x1b5681=_0x59fa14;let _0x473fa4={},_0x421d1b=this['_shapeModelManagerMap']['get'](_0x9fce08);return _0x421d1b&&_0x421d1b[_0x1b5681(0x108)]((_0x1f084c,_0x482307)=>{const _0x2c7c78=_0x1b5681;let _0x1f77f9=_0x1f084c[_0x2c7c78(0x142)]();_0x1f77f9[_0x2c7c78(0x13b)]>0x0&&(_0x473fa4[_0x482307]=_0x1f77f9);}),JSON[_0x1b5681(0x155)](_0x473fa4);}['_deserializeShapeForUnit'](_0x73560c,_0x531a5c){const _0x11e9c1=_0x59fa14;Object[_0x11e9c1(0x121)](_0x531a5c)[_0x11e9c1(0x108)](_0x454794=>{const _0x319d77=_0x11e9c1;this[_0x319d77(0x119)](_0x73560c,_0x454794)[_0x319d77(0x16b)](_0x531a5c[_0x454794]);});}['toJSON'](){const _0x19a317=_0x59fa14;let _0x33badc={};return this[_0x19a317(0xd4)][_0x19a317(0x108)]((_0x2bd1e4,_0x5a8bd1)=>{const _0x26c4f0=_0x19a317;_0x33badc[_0x5a8bd1]={},_0x2bd1e4[_0x26c4f0(0x108)]((_0x5b3381,_0x1b0fc3)=>{const _0x3d052d=_0x26c4f0;_0x33badc[_0x5a8bd1][_0x1b0fc3]=_0x5b3381[_0x3d052d(0x142)]();});}),_0x33badc;}[_0x59fa14(0x16b)](_0x5c51ad){Object['keys'](_0x5c51ad)['forEach'](_0x3e468f=>{const _0x2f0ffd=_0x5da5;let _0x6f878c=_0x5c51ad[_0x3e468f];Object[_0x2f0ffd(0x121)](_0x6f878c)[_0x2f0ffd(0x108)](_0x453bd1=>{const _0x2346f3=_0x2f0ffd;this['_ensureShapeModelManager'](_0x3e468f,_0x453bd1)[_0x2346f3(0x16b)](_0x6f878c[_0x453bd1]);});});}[_0x59fa14(0x16f)](){const _0x6ac398=_0x59fa14;this['_resourcesManagerService'][_0x6ac398(0xea)]({'pluginName':_0x6ac398(0x115),'businesses':[_0x4f7fa0[_0x6ac398(0x111)]],'toJson':_0x5d59cc=>this[_0x6ac398(0x167)](_0x5d59cc),'parseJson':_0xd8601b=>JSON[_0x6ac398(0x135)](_0xd8601b),'onLoad':(_0x445b45,_0x2964c4)=>{const _0x4742c6=_0x6ac398;this[_0x4742c6(0xd2)](_0x445b45,_0x2964c4);},'onUnLoad':_0x161747=>{const _0x3f175e=_0x6ac398;let _0x100f1f=this[_0x3f175e(0xd4)]['get'](_0x161747);_0x100f1f&&(_0x100f1f[_0x3f175e(0x108)](_0x94ec0f=>{const _0x4d38ce=_0x3f175e;_0x94ec0f[_0x4d38ce(0x12e)]();}),this[_0x3f175e(0xd4)][_0x3f175e(0xef)](_0x161747));}});}[_0x59fa14(0x12e)](){this['_shapeModelManagerMap']['forEach'](_0x440e29=>{const _0x2b435c=_0x5da5;_0x440e29[_0x2b435c(0x108)](_0x461309=>{const _0x4b26ba=_0x2b435c;_0x461309[_0x4b26ba(0x12e)]();});});}};K=G([W(0x0,_0x42568c)],K);const q={'id':'sheet.mutation.insert-shape','type':_0x2bf4ff[_0x59fa14(0x164)],'handler':(_0x1c6335,_0x244e9d)=>{const _0x422874=_0x59fa14;let {unitId:_0x596cdb,subUnitId:_0x312d38,shapeType:_0x571115,shapeId:_0x4b76e9,shapeName:_0xde643f,shapeData:_0x1ba273}=_0x244e9d;return _0x1c6335['get'](K)[_0x422874(0x152)](_0x596cdb,_0x312d38,_0x571115,_0x4b76e9,_0x1ba273,_0xde643f),!0x0;}},J={'id':'sheet.mutation.remove-shape','type':_0x2bf4ff[_0x59fa14(0x164)],'handler':(_0x1c99c7,_0x154aa7)=>{const _0x87554b=_0x59fa14;let {unitId:_0x2615be,subUnitId:_0x58db55,shapeId:_0x5bcea9}=_0x154aa7;return _0x1c99c7[_0x87554b(0x11d)](K)[_0x87554b(0x127)](_0x2615be,_0x58db55,_0x5bcea9),!0x0;}},Y={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x104),'handler':(_0x369be6,_0x3dd3ee)=>{const _0xa93bf3=_0x59fa14;var _0x191f08,_0xc066a5,_0x480517;let _0x2cd679=_0x58348b(_0x369be6[_0xa93bf3(0x11d)](_0xa3f088),_0x3dd3ee);if(!_0x2cd679)return!0x1;let _0x5bb598=_0x369be6['get'](_0x44b292),{unitId:_0xd22f4a,subUnitId:_0x211b57}=_0x2cd679,_0x738ec9=_0x5bb598[_0xa93bf3(0x13a)](_0xd22f4a,_0x211b57);if(!_0x738ec9)return!0x1;let _0x1082bf=_0x369be6[_0xa93bf3(0x11d)](_0x5448b6),_0x1913b0=_0x369be6[_0xa93bf3(0x11d)](_0x2e3ab6),_0x3ff03f=_0x369be6[_0xa93bf3(0x11d)](_0x1b2525),_0x1fd3f2=_0x369be6['get'](_0x2a5b18),_0x19f018=_0x369be6[_0xa93bf3(0x11d)](K),{shapeType:_0x428bc8,shapeData:_0x1c5421}=_0x3dd3ee,_0x5c9724=_0x3dd3ee[_0xa93bf3(0xfd)]||_0x1c7b18(),_0x330e2d={'unitId':_0xd22f4a,'subUnitId':_0x211b57,'shapeId':_0x5c9724,'shapeName':(_0x191f08=_0x3dd3ee[_0xa93bf3(0x117)])==null?_0x80e9ad(_0x428bc8,_0x19f018[_0xa93bf3(0x13c)](_0xd22f4a,_0x211b57)):_0x191f08,'shapeType':_0x428bc8,'shapeData':_0x1c5421},_0x563498=_0x3dd3ee[_0xa93bf3(0xe0)]||0xc8,_0x3dea64=_0x3dd3ee[_0xa93bf3(0x14b)]||0xc8,_0x13e227=0x0,_0x444e7=0x0,_0x17e3d3={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3e81f9={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x3dd3ee[_0xa93bf3(0x166)]){let {x:_0x1cb8a3,y:_0x27b109}=_0x3dd3ee[_0xa93bf3(0x166)];_0x13e227=_0x1cb8a3,_0x444e7=_0x27b109,_0x17e3d3=_0x738ec9[_0xa93bf3(0x14f)](_0x1cb8a3,_0x27b109),_0x3e81f9=_0x738ec9['getCellIndexAndOffsetByPosition'](_0x1cb8a3+_0x563498,_0x27b109+_0x3dea64);}else{if(_0x3dd3ee[_0xa93bf3(0xf8)]){let {startRow:_0x39e057,startColumn:_0x3e5bf4}=_0x3dd3ee[_0xa93bf3(0xf8)];_0x17e3d3={'row':_0x39e057,'rowOffset':0xa,'column':_0x3e5bf4,'columnOffset':0xa};let _0x891f7=_0x738ec9[_0xa93bf3(0x10b)](_0x39e057,_0x3e5bf4);_0x13e227=_0x891f7[_0xa93bf3(0xdd)]+0xa,_0x444e7=_0x891f7[_0xa93bf3(0x141)]+0xa,_0x3e81f9=_0x738ec9['getCellIndexAndOffsetByPosition'](_0x13e227+_0x563498,_0x444e7+_0x3dea64);}}let _0x4f56ca={'from':_0x17e3d3,'to':_0x3e81f9},_0x46587f={'unitId':_0xd22f4a,'subUnitId':_0x211b57,'drawingId':_0x5c9724,'drawingType':_0x34bc84[_0xa93bf3(0x107)],'sheetTransform':_0x4f56ca,'transform':{'left':_0x13e227,'top':_0x444e7,'width':_0x563498,'height':_0x3dea64},'data':{'shapeType':_0x428bc8,'shapeData':_0x1c5421},'axisAlignSheetTransform':_0x4f56ca,'allowTransform':!0x0};_0xf81d44(_0x428bc8)&&(_0x46587f[_0xa93bf3(0xd6)]['fill']=!0x1,_0x46587f[_0xa93bf3(0xd6)][_0xa93bf3(0x112)]=!0x1,_0x46587f['data'][_0xa93bf3(0xf6)]=!0x1,_0x46587f[_0xa93bf3(0xd6)][_0xa93bf3(0xe9)]=!0x1,_0x46587f[_0xa93bf3(0x178)][_0xa93bf3(0x112)]=!0x1,_0x46587f[_0xa93bf3(0x178)][_0xa93bf3(0xf6)]=!0x1,_0x46587f[_0xa93bf3(0x178)]['borderEnabled']=!0x1);let {undo:_0xc2cb6a,redo:_0x348512,objects:_0x154101}=_0x1fd3f2[_0xa93bf3(0x161)]([_0x46587f]),_0x521f55=_0x3ff03f[_0xa93bf3(0xf4)]({'id':_0x5f1f6d['id'],'params':{'unitId':_0xd22f4a,'drawings':[_0x46587f]}}),_0x2d31dc=[...(_0xc066a5=_0x521f55[_0xa93bf3(0x150)])==null?[]:_0xc066a5,{'id':_0x4f132c['id'],'params':{'unitId':_0xd22f4a,'subUnitId':_0x211b57,'op':_0x348512,'objects':_0x154101,'type':_0x1e39cb[_0xa93bf3(0x102)]}},{'id':_0x1d1aa4['id'],'params':[_0xd22f4a]},..._0x521f55[_0xa93bf3(0x160)],{'id':q['id'],'params':_0x330e2d}],_0x5c5863=[{'id':J['id'],'params':{'unitId':_0xd22f4a,'subUnitId':_0x211b57,'shapeId':_0x5c9724}},...(_0x480517=_0x521f55[_0xa93bf3(0x109)])==null?[]:_0x480517,{'id':_0x4f132c['id'],'params':{'unitId':_0xd22f4a,'subUnitId':_0x211b57,'op':_0xc2cb6a,'objects':_0x154101,'type':_0x1e39cb[_0xa93bf3(0x130)]}},{'id':_0x1d1aa4['id'],'params':[_0xd22f4a]},..._0x521f55[_0xa93bf3(0x16c)]];return _0x20d2b6(_0x2d31dc,_0x1082bf)[_0xa93bf3(0x106)]?(_0x1913b0[_0xa93bf3(0x158)]({'unitID':_0xd22f4a,'undoMutations':_0x5c5863,'redoMutations':_0x2d31dc}),!0x0):!0x1;}},X={'id':_0x59fa14(0xda),'type':_0x2bf4ff[_0x59fa14(0x164)],'handler':(_0x55bba9,_0x4c5b1b)=>{const _0x259afa=_0x59fa14;let {unitId:_0x11a010,subUnitId:_0x628b5b,shapeType:_0x2c73c7,shapeId:_0x45ddf4,shapeData:_0x4e5db4}=_0x4c5b1b,_0x4ff8aa=_0x55bba9[_0x259afa(0x11d)](K)[_0x259afa(0x165)](_0x11a010,_0x628b5b,_0x45ddf4);return _0x4ff8aa&&(_0x2c73c7!==void 0x0&&_0x4ff8aa[_0x259afa(0x153)](_0x2c73c7),_0x4e5db4&&(_0x4ff8aa==null||_0x4ff8aa[_0x259afa(0x137)](_0x4e5db4,!0x0))),!0x0;}},ee={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x134),'handler':(_0x1e0f26,_0x5cd1b0)=>{const _0x4782c7=_0x59fa14;var _0x76f09e,_0x2c5edf;let _0x52440b=_0x58348b(_0x1e0f26[_0x4782c7(0x11d)](_0xa3f088),_0x5cd1b0);if(!_0x52440b)return!0x1;let _0xc4ca90=_0x1e0f26[_0x4782c7(0x11d)](_0x44b292),{unitId:_0x1f6865,subUnitId:_0x5e0377}=_0x52440b,_0x1f69fb=_0xc4ca90[_0x4782c7(0x13a)](_0x1f6865,_0x5e0377);if(!_0x1f69fb)return!0x1;let _0x12ff64=_0x1e0f26[_0x4782c7(0x11d)](K),{shapeId:_0x46c217,shapeType:_0x23611b,shapeData:_0xb93b66,position:_0x4408f1,width:_0x393d5d,height:_0x717ec4}=_0x5cd1b0,_0x305772=_0x12ff64[_0x4782c7(0x165)](_0x1f6865,_0x5e0377,_0x46c217);if(!_0x305772)return!0x1;let _0x571905=_0x1e0f26[_0x4782c7(0x11d)](_0x5448b6),_0x15676b=_0x1e0f26[_0x4782c7(0x11d)](_0x2e3ab6),_0x5396cd=_0x1e0f26['get'](_0x1b2525),_0x1d2fda=_0x1e0f26['get'](_0x2a5b18),_0x5eef24={'unitId':_0x1f6865,'subUnitId':_0x5e0377,'shapeId':_0x46c217,'shapeType':_0x23611b,'shapeData':_0xb93b66},_0x38a3a0=_0x305772[_0x4782c7(0x169)](),_0x2ba991=_0x305772[_0x4782c7(0x118)](),{x:_0x29bc30,y:_0x4486a2}=_0x4408f1,_0x3517ba={'from':_0x1f69fb[_0x4782c7(0x14f)](_0x29bc30,_0x4486a2),'to':_0x1f69fb[_0x4782c7(0x14f)](_0x29bc30+_0x393d5d,_0x4486a2+_0x717ec4)},_0x4dc0bd={'unitId':_0x1f6865,'subUnitId':_0x5e0377,'drawingId':_0x46c217,'drawingType':_0x34bc84[_0x4782c7(0x107)],'sheetTransform':_0x3517ba,'transform':{'left':_0x29bc30,'top':_0x4486a2,'width':_0x393d5d,'height':_0x717ec4},'data':{'shapeType':_0x23611b,'shapeData':_0xb93b66},'axisAlignSheetTransform':_0x3517ba,'allowTransform':!0x0};_0xf81d44(_0x23611b)&&(_0x4dc0bd[_0x4782c7(0xd6)][_0x4782c7(0x177)]=!0x1,_0x4dc0bd[_0x4782c7(0xd6)][_0x4782c7(0x112)]=!0x1,_0x4dc0bd[_0x4782c7(0xd6)][_0x4782c7(0xf6)]=!0x1,_0x4dc0bd[_0x4782c7(0xd6)][_0x4782c7(0xe9)]=!0x1,_0x4dc0bd[_0x4782c7(0x178)][_0x4782c7(0x112)]=!0x1,_0x4dc0bd[_0x4782c7(0x178)][_0x4782c7(0xf6)]=!0x1,_0x4dc0bd[_0x4782c7(0x178)][_0x4782c7(0xe9)]=!0x1);let {undo:_0x582f38,redo:_0x280910,objects:_0x22efa1}=_0x1d2fda[_0x4782c7(0xe8)]([_0x4dc0bd]),_0x371070=_0x5396cd['onCommandExecute']({'id':_0x3319d6['id'],'params':{'unitId':_0x1f6865,'drawings':[_0x4dc0bd]}}),_0x4b90f4=[...(_0x76f09e=_0x371070[_0x4782c7(0x150)])==null?[]:_0x76f09e,{'id':_0x4f132c['id'],'params':{'unitId':_0x1f6865,'subUnitId':_0x5e0377,'op':_0x280910,'objects':_0x22efa1,'type':_0x1e39cb[_0x4782c7(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x1f6865]},..._0x371070[_0x4782c7(0x160)],{'id':X['id'],'params':_0x5eef24}],_0x2251a9=[...(_0x2c5edf=_0x371070[_0x4782c7(0x109)])==null?[]:_0x2c5edf,{'id':_0x4f132c['id'],'params':{'unitId':_0x1f6865,'subUnitId':_0x5e0377,'op':_0x582f38,'objects':_0x22efa1,'type':_0x1e39cb[_0x4782c7(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x1f6865]},..._0x371070[_0x4782c7(0x16c)],{'id':X['id'],'params':{'unitId':_0x1f6865,'subUnitId':_0x5e0377,'shapeType':_0x38a3a0,'shapeId':_0x46c217,'shapeData':_0x2ba991}}];return _0x20d2b6(_0x4b90f4,_0x571905)[_0x4782c7(0x106)]?(_0x15676b[_0x4782c7(0x158)]({'unitID':_0x1f6865,'undoMutations':_0x2251a9,'redoMutations':_0x4b90f4}),!0x0):!0x1;}},Z={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':'sheet.command.toggle-shape-flip','handler':(_0x4a9884,_0x113077)=>{const _0x57de88=_0x59fa14;var _0x5d66cc,_0x499500;let _0x1b057e=_0x58348b(_0x4a9884[_0x57de88(0x11d)](_0xa3f088),_0x113077);if(!_0x1b057e)return!0x1;let _0x286ab2=_0x4a9884[_0x57de88(0x11d)](_0x44b292),{unitId:_0x1f2823,subUnitId:_0x3b52a1}=_0x1b057e,_0x1fa012=_0x286ab2['getSkeleton'](_0x1f2823,_0x3b52a1);if(!_0x1fa012)return!0x1;let _0xa2339b=_0x4a9884[_0x57de88(0x11d)](_0x2a5b18),{shapeId:_0x4d3525,flipH:_0x38181d,flipV:_0x50b212}=_0x113077,_0x3af48d=_0xa2339b[_0x57de88(0x12d)]({'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'drawingId':_0x4d3525});if(!_0x3af48d)return!0x1;let _0x3beb2b=_0x4a9884[_0x57de88(0x11d)](K)[_0x57de88(0x165)](_0x1f2823,_0x3b52a1,_0x4d3525);if(!_0x3beb2b)return!0x1;let _0x2a7d87=_0x4a9884[_0x57de88(0x11d)](_0x5448b6),_0x52d23a=_0x4a9884[_0x57de88(0x11d)](_0x2e3ab6),_0x3f819c=_0x4a9884['get'](_0x1b2525),_0x38fdeb={..._0x3af48d[_0x57de88(0x178)]};_0x38181d!==void 0x0&&(_0x38fdeb[_0x57de88(0x176)]=!_0x38fdeb['flipX']),_0x50b212!==void 0x0&&(_0x38fdeb[_0x57de88(0x10d)]=!_0x38fdeb[_0x57de88(0x10d)]);let _0x41d2c7=_0x383801(_0x38fdeb,_0x1fa012),_0x492643=_0x2b6c1d(_0x38fdeb,_0x1fa012),_0x40cf61=_0x3beb2b[_0x57de88(0x169)](),_0x1ae3c1=_0x3beb2b[_0x57de88(0x118)](),_0x40b249={'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'drawingId':_0x4d3525,'drawingType':_0x34bc84[_0x57de88(0x107)],'sheetTransform':_0x41d2c7,'transform':_0x38fdeb,'data':{'shapeType':_0x40cf61,'shapeData':_0x1ae3c1},'axisAlignSheetTransform':_0x492643,'allowTransform':!0x0},{undo:_0x5bec44,redo:_0xa831a8,objects:_0x56f527}=_0xa2339b[_0x57de88(0xe8)]([_0x40b249]),_0x4627a9=_0x3f819c[_0x57de88(0xf4)]({'id':_0x3319d6['id'],'params':{'unitId':_0x1f2823,'drawings':[_0x40b249]}}),_0x4b0848=[...(_0x5d66cc=_0x4627a9[_0x57de88(0x150)])==null?[]:_0x5d66cc,{'id':_0x4f132c['id'],'params':{'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'op':_0xa831a8,'objects':_0x56f527,'type':_0x1e39cb[_0x57de88(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x1f2823]},..._0x4627a9[_0x57de88(0x160)]],_0x55799e=[...(_0x499500=_0x4627a9[_0x57de88(0x109)])==null?[]:_0x499500,{'id':_0x4f132c['id'],'params':{'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'op':_0x5bec44,'objects':_0x56f527,'type':_0x1e39cb['UPDATE']}},{'id':_0x1d1aa4['id'],'params':[_0x1f2823]},..._0x4627a9[_0x57de88(0x16c)]];if(_0xf81d44(_0x40cf61)){let _0x2d5580=_0x3beb2b[_0x57de88(0x105)]();if(_0x2d5580){let _0x23c6c4={..._0x2d5580};_0x23c6c4['from']=void 0x0,_0x23c6c4['to']=void 0x0,_0x4b0848[_0x57de88(0xdc)]({'id':X['id'],'params':{'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'shapeId':_0x4d3525,'shapeType':_0x40cf61,'shapeData':{'relation':_0x23c6c4}}}),_0x55799e['push']({'id':X['id'],'params':{'unitId':_0x1f2823,'subUnitId':_0x3b52a1,'shapeId':_0x4d3525,'shapeType':_0x40cf61,'shapeData':{'relation':_0x2d5580}}});}}return _0x20d2b6(_0x4b0848,_0x2a7d87)[_0x57de88(0x106)]?(_0x52d23a[_0x57de88(0x158)]({'unitID':_0x1f2823,'undoMutations':_0x55799e,'redoMutations':_0x4b0848}),!0x0):!0x1;}},Q={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x13f),'handler':(_0x238a22,_0xc9e27f)=>{const _0x4daaab=_0x59fa14;var _0x51517a,_0x3780d0;let _0x11cadf=_0x58348b(_0x238a22[_0x4daaab(0x11d)](_0xa3f088),_0xc9e27f);if(!_0x11cadf)return!0x1;let _0x38ce04=_0x238a22[_0x4daaab(0x11d)](_0x44b292),{unitId:_0x17f450,subUnitId:_0x5d4a1f}=_0x11cadf,_0x2eb0d4=_0x38ce04[_0x4daaab(0x147)](_0x17f450,_0x5d4a1f);if(!_0x2eb0d4)return!0x1;let _0x591b33=_0x238a22[_0x4daaab(0x11d)](_0x2a5b18),{shapeId:_0x3e1e4b,rotate:_0x441b85}=_0xc9e27f,_0x208f84=_0x591b33['getDrawingByParam']({'unitId':_0x17f450,'subUnitId':_0x5d4a1f,'drawingId':_0x3e1e4b});if(!_0x208f84)return!0x1;let _0x5aebfd=_0x238a22['get'](K)[_0x4daaab(0x165)](_0x17f450,_0x5d4a1f,_0x3e1e4b);if(!_0x5aebfd)return!0x1;let _0x6f88b7=_0x238a22['get'](_0x5448b6),_0x4eecd1=_0x238a22[_0x4daaab(0x11d)](_0x2e3ab6),_0x3ca63e=_0x238a22[_0x4daaab(0x11d)](_0x1b2525),_0x4e5a23={..._0x208f84['transform']};_0x441b85!==void 0x0&&(_0x4e5a23[_0x4daaab(0xe5)]=(_0x4e5a23[_0x4daaab(0xe5)]||0x0)+_0x441b85);let _0x54f64a=_0x383801(_0x4e5a23,_0x2eb0d4),_0x183b5b=_0x2b6c1d(_0x4e5a23,_0x2eb0d4),_0x442835=_0x5aebfd[_0x4daaab(0x169)](),_0x829da7=_0x5aebfd[_0x4daaab(0x118)](),_0x17ca20={'unitId':_0x17f450,'subUnitId':_0x5d4a1f,'drawingId':_0x3e1e4b,'drawingType':_0x34bc84[_0x4daaab(0x107)],'sheetTransform':_0x54f64a,'transform':_0x4e5a23,'data':{'shapeType':_0x442835,'shapeData':_0x829da7},'axisAlignSheetTransform':_0x183b5b,'allowTransform':!0x0},{undo:_0x48b12e,redo:_0x214c91,objects:_0x22346d}=_0x591b33[_0x4daaab(0xe8)]([_0x17ca20]),_0x42a418=_0x3ca63e[_0x4daaab(0xf4)]({'id':_0x3319d6['id'],'params':{'unitId':_0x17f450,'drawings':[_0x17ca20]}}),_0x25aa48=[...(_0x51517a=_0x42a418[_0x4daaab(0x150)])==null?[]:_0x51517a,{'id':_0x4f132c['id'],'params':{'unitId':_0x17f450,'subUnitId':_0x5d4a1f,'op':_0x214c91,'objects':_0x22346d,'type':_0x1e39cb[_0x4daaab(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x17f450]},..._0x42a418[_0x4daaab(0x160)]],_0x6abe09=[...(_0x3780d0=_0x42a418[_0x4daaab(0x109)])==null?[]:_0x3780d0,{'id':_0x4f132c['id'],'params':{'unitId':_0x17f450,'subUnitId':_0x5d4a1f,'op':_0x48b12e,'objects':_0x22346d,'type':_0x1e39cb[_0x4daaab(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x17f450]},..._0x42a418[_0x4daaab(0x16c)]];return _0x20d2b6(_0x25aa48,_0x6f88b7)[_0x4daaab(0x106)]?(_0x4eecd1['pushUndoRedo']({'unitID':_0x17f450,'undoMutations':_0x6abe09,'redoMutations':_0x25aa48}),!0x0):!0x1;}},te={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0xfa),'handler':(_0x2404d0,_0x4efc7a)=>{const _0x43529c=_0x59fa14;var _0x1f26b4;let _0x19cab0=_0x58348b(_0x2404d0['get'](_0xa3f088),_0x4efc7a);if(!_0x19cab0)return!0x1;let {unitId:_0x475c05,subUnitId:_0x53846d}=_0x19cab0,{shapeId:_0x20f14e}=_0x4efc7a,_0x5c3de0=_0x2404d0[_0x43529c(0x11d)](K)['getShapeModel'](_0x475c05,_0x53846d,_0x20f14e);if(!_0x5c3de0)return!0x1;let _0x1b3c4c=_0x5c3de0[_0x43529c(0x172)](),_0x309542=(_0x1f26b4=_0x1b3c4c==null?void 0x0:_0x1b3c4c[_0x43529c(0x11a)])==null?!0x0:_0x1f26b4,_0x41040d=!_0x309542,_0x48ee22=_0x2404d0[_0x43529c(0x11d)](_0x5448b6),_0x13fa03=_0x2404d0[_0x43529c(0x11d)](_0x2e3ab6),_0x163342={'unitId':_0x475c05,'subUnitId':_0x53846d,'shapeId':_0x20f14e,'shapeData':{'shapeText':{'isHorizontal':_0x41040d}}},_0x189e75={'unitId':_0x475c05,'subUnitId':_0x53846d,'shapeId':_0x20f14e,'shapeData':{'shapeText':{'isHorizontal':_0x309542}}},_0x4d7e6c=[{'id':X['id'],'params':_0x163342}],_0x2827c2=[{'id':X['id'],'params':_0x189e75}];return _0x20d2b6(_0x4d7e6c,_0x48ee22)[_0x43529c(0x106)]?(_0x13fa03['pushUndoRedo']({'unitID':_0x475c05,'undoMutations':_0x2827c2,'redoMutations':_0x4d7e6c}),!0x0):!0x1;}},ne={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x171),'handler':(_0x2f1526,_0x5cfe79)=>{const _0x1034bd=_0x59fa14;var _0x1fff29,_0xdf9a7b,_0x3c8b9e,_0x5eb5b1;let _0x19d46d=_0x58348b(_0x2f1526[_0x1034bd(0x11d)](_0xa3f088),_0x5cfe79);if(!_0x19d46d)return!0x1;let _0x17d692=_0x2f1526[_0x1034bd(0x11d)](_0x44b292),{unitId:_0x14862b,subUnitId:_0x5e534d}=_0x19d46d,_0x1d1807=_0x17d692[_0x1034bd(0x147)](_0x14862b,_0x5e534d);if(!_0x1d1807)return!0x1;let _0x10f65a=_0x2f1526[_0x1034bd(0x11d)](_0x2a5b18),{connectorShapeId:_0x57a136,width:_0x4bb71c,height:_0x51a710,left:_0xead19a,top:_0x5e0420,flipX:_0x3cb747,flipY:_0x56e357,rotation:_0xbbaaa5,oldAdjustValues:_0x1184aa,newAdjustValues:_0x50c185,oldLineType:_0x419c8d,newLineType:_0x5e2a83,oldRelation:_0x5eb4ae,newRelation:_0x593b2a}=_0x5cfe79,_0x217de7=_0x10f65a['getDrawingByParam']({'unitId':_0x14862b,'subUnitId':_0x5e534d,'drawingId':_0x57a136});if(!_0x217de7)return!0x1;let _0x389062=_0x2f1526[_0x1034bd(0x11d)](K)[_0x1034bd(0x165)](_0x14862b,_0x5e534d,_0x57a136);if(!_0x389062)return!0x1;let _0x152323=_0x2f1526[_0x1034bd(0x11d)](_0x5448b6),_0x403a76=_0x2f1526[_0x1034bd(0x11d)](_0x2e3ab6),_0x10e9a0=_0x2f1526[_0x1034bd(0x11d)](_0x1b2525),_0x4f64fd={..._0x217de7[_0x1034bd(0x178)],'width':_0x4bb71c,'height':_0x51a710,'left':_0xead19a,'top':_0x5e0420,'flipX':_0x3cb747,'flipY':_0x56e357,'angle':(_0x1fff29=_0xbbaaa5==null?(_0xdf9a7b=_0x217de7[_0x1034bd(0x178)])==null?void 0x0:_0xdf9a7b[_0x1034bd(0xe5)]:_0xbbaaa5)==null?0x0:_0x1fff29},_0x160780=_0x383801(_0x4f64fd,_0x1d1807),_0x5f5d56=_0x2b6c1d(_0x4f64fd,_0x1d1807),_0x333e71=_0x389062[_0x1034bd(0x169)](),_0x5833c4=_0x389062[_0x1034bd(0x118)](),_0x5068e2={'unitId':_0x14862b,'subUnitId':_0x5e534d,'drawingId':_0x57a136,'drawingType':_0x34bc84[_0x1034bd(0x107)],'sheetTransform':_0x160780,'transform':_0x4f64fd,'data':{'shapeType':_0x5e2a83||_0x419c8d||_0x333e71,'shapeData':{..._0x5833c4,'adjustValues':_0x50c185||_0x1184aa||(_0x5833c4==null?void 0x0:_0x5833c4[_0x1034bd(0x12a)]),'relation':_0x593b2a||_0x5eb4ae||(_0x5833c4==null?void 0x0:_0x5833c4[_0x1034bd(0xf9)])}},'axisAlignSheetTransform':_0x5f5d56,'allowTransform':!0x0},{undo:_0x1b4613,redo:_0x1b3260,objects:_0x544611}=_0x10f65a[_0x1034bd(0xe8)]([_0x5068e2]),_0x2a891b=_0x10e9a0[_0x1034bd(0xf4)]({'id':_0x3319d6['id'],'params':{'unitId':_0x14862b,'drawings':[_0x5068e2]}}),_0x3ea867=[...(_0x3c8b9e=_0x2a891b[_0x1034bd(0x150)])==null?[]:_0x3c8b9e,{'id':_0x4f132c['id'],'params':{'unitId':_0x14862b,'subUnitId':_0x5e534d,'op':_0x1b3260,'objects':_0x544611,'type':_0x1e39cb[_0x1034bd(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x14862b]},..._0x2a891b['redos'],{'id':X['id'],'params':{'unitId':_0x14862b,'subUnitId':_0x5e534d,'shapeId':_0x57a136,'shapeType':_0x5e2a83,'shapeData':{'adjustValues':_0x50c185,'relation':_0x593b2a}}}],_0xc64d36=[...(_0x5eb5b1=_0x2a891b[_0x1034bd(0x109)])==null?[]:_0x5eb5b1,{'id':_0x4f132c['id'],'params':{'unitId':_0x14862b,'subUnitId':_0x5e534d,'op':_0x1b4613,'objects':_0x544611,'type':_0x1e39cb[_0x1034bd(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x14862b]},..._0x2a891b[_0x1034bd(0x16c)],{'id':X['id'],'params':{'unitId':_0x14862b,'subUnitId':_0x5e534d,'shapeId':_0x57a136,'shapeType':_0x333e71,'shapeData':{..._0x5833c4,'adjustValues':_0x1184aa||(_0x5833c4==null?void 0x0:_0x5833c4['adjustValues']),'relation':_0x5eb4ae||(_0x5833c4==null?void 0x0:_0x5833c4[_0x1034bd(0xf9)])}}}];return _0x20d2b6(_0x3ea867,_0x152323)[_0x1034bd(0x106)]?(_0x403a76[_0x1034bd(0x158)]({'unitID':_0x14862b,'undoMutations':_0xc64d36,'redoMutations':_0x3ea867}),!0x0):!0x1;}},re={'type':_0x2bf4ff[_0x59fa14(0x162)],'id':_0x59fa14(0x148),'handler':(_0x578848,_0x33ba67)=>{const _0x389a65=_0x59fa14;var _0xfa1114,_0xd45582;let _0x135042=_0x58348b(_0x578848[_0x389a65(0x11d)](_0xa3f088),_0x33ba67);if(!_0x135042)return!0x1;let _0xe28fdf=_0x578848[_0x389a65(0x11d)](_0x44b292),{unitId:_0x260490,subUnitId:_0x27c2a4}=_0x135042,_0x273f5f=_0xe28fdf[_0x389a65(0x147)](_0x260490,_0x27c2a4);if(!_0x273f5f)return!0x1;let _0x2bb157=_0x578848[_0x389a65(0x11d)](_0x2a5b18),{shapeId:_0x2307bb,width:_0xe12d5,height:_0x4cdaa4,left:_0x5b0fea,top:_0x2a3f0a,flipX:_0x24cec6,flipY:_0x119e66,angle:_0x484586,oldAdjustValues:_0x57dc4b,newAdjustValues:_0x1a5c88,oldLineType:_0x406952,newLineType:_0x50d2cf}=_0x33ba67,_0x247982=_0x2bb157[_0x389a65(0x12d)]({'unitId':_0x260490,'subUnitId':_0x27c2a4,'drawingId':_0x2307bb});if(!_0x247982)return!0x1;let _0xe30a14=_0x578848[_0x389a65(0x11d)](K)['getShapeModel'](_0x260490,_0x27c2a4,_0x2307bb);if(!_0xe30a14)return!0x1;let _0x2edbfc=_0x578848[_0x389a65(0x11d)](_0x5448b6),_0x41f1cc=_0x578848[_0x389a65(0x11d)](_0x2e3ab6),_0x3b55de=_0x578848[_0x389a65(0x11d)](_0x1b2525),_0x64830e={..._0x247982[_0x389a65(0x178)],'width':_0xe12d5,'height':_0x4cdaa4,'left':_0x5b0fea,'top':_0x2a3f0a,'flipX':_0x24cec6,'flipY':_0x119e66,'angle':_0x484586},_0x32408f=_0x383801(_0x64830e,_0x273f5f),_0x2eec74=_0x2b6c1d(_0x64830e,_0x273f5f),_0x4295bc=_0xe30a14[_0x389a65(0x169)](),_0x5b667a=_0xe30a14[_0x389a65(0x118)](),_0xeb8449={'unitId':_0x260490,'subUnitId':_0x27c2a4,'drawingId':_0x2307bb,'drawingType':_0x34bc84[_0x389a65(0x107)],'sheetTransform':_0x32408f,'transform':_0x64830e,'data':{'shapeType':_0x50d2cf||_0x406952||_0x4295bc,'shapeData':{..._0x5b667a,'adjustValues':_0x1a5c88||_0x57dc4b||(_0x5b667a==null?void 0x0:_0x5b667a[_0x389a65(0x12a)])}},'axisAlignSheetTransform':_0x2eec74,'allowTransform':!0x0},{undo:_0x18fad8,redo:_0x2f21fe,objects:_0xdc8951}=_0x2bb157['getBatchUpdateOp']([_0xeb8449]),_0x3436d5=_0x3b55de[_0x389a65(0xf4)]({'id':_0x3319d6['id'],'params':{'unitId':_0x260490,'drawings':[_0xeb8449]}}),_0x1fcac4=[...(_0xfa1114=_0x3436d5[_0x389a65(0x150)])==null?[]:_0xfa1114,{'id':_0x4f132c['id'],'params':{'unitId':_0x260490,'subUnitId':_0x27c2a4,'op':_0x2f21fe,'objects':_0xdc8951,'type':_0x1e39cb[_0x389a65(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x260490]},..._0x3436d5[_0x389a65(0x160)],{'id':X['id'],'params':{'unitId':_0x260490,'subUnitId':_0x27c2a4,'shapeId':_0x2307bb,'shapeType':_0x50d2cf,'shapeData':{'adjustValues':_0x1a5c88}}}],_0x37c39a=[...(_0xd45582=_0x3436d5[_0x389a65(0x109)])==null?[]:_0xd45582,{'id':_0x4f132c['id'],'params':{'unitId':_0x260490,'subUnitId':_0x27c2a4,'op':_0x18fad8,'objects':_0xdc8951,'type':_0x1e39cb[_0x389a65(0x146)]}},{'id':_0x1d1aa4['id'],'params':[_0x260490]},..._0x3436d5[_0x389a65(0x16c)],{'id':X['id'],'params':{'unitId':_0x260490,'subUnitId':_0x27c2a4,'shapeId':_0x2307bb,'shapeType':_0x4295bc,'shapeData':{..._0x5b667a,'adjustValues':_0x57dc4b||(_0x5b667a==null?void 0x0:_0x5b667a['adjustValues'])}}}];return _0x20d2b6(_0x1fcac4,_0x2edbfc)[_0x389a65(0x106)]?(_0x41f1cc[_0x389a65(0x158)]({'unitID':_0x260490,'undoMutations':_0x37c39a,'redoMutations':_0x1fcac4}),!0x0):!0x1;}},$={'id':_0x59fa14(0xee),'type':_0x2bf4ff['MUTATION'],'handler':(_0x57aff2,_0x400b80)=>{const _0x31e041=_0x59fa14;let {unitId:_0x4b9e21,subUnitId:_0x224e67,shapeType:_0xd690d3,shapeId:_0x5ddf09,shapeData:_0x7c0029}=_0x400b80,_0x5df0fb=_0x57aff2[_0x31e041(0x11d)](K)[_0x31e041(0x165)](_0x4b9e21,_0x224e67,_0x5ddf09);return _0x5df0fb&&(_0x5df0fb[_0x31e041(0x153)](_0xd690d3),_0x7c0029&&(_0x5df0fb==null||_0x5df0fb[_0x31e041(0x137)](_0x7c0029))),!0x0;}},ie={'id':_0x59fa14(0x101),'type':_0x2bf4ff['COMMAND'],'handler':(_0x25631e,_0x16a8bf)=>{const _0x3b1fa0=_0x59fa14;if(!_0x16a8bf)return!0x1;let _0x2589cb=_0x25631e[_0x3b1fa0(0x11d)](_0x5448b6),_0x2298db=_0x25631e[_0x3b1fa0(0x11d)](K),_0x589e0b=_0x25631e[_0x3b1fa0(0x11d)](_0x2e3ab6),_0x30b337=[],_0x21384b=[],{unitId:_0x1cfaa3,subUnitId:_0x19fcf7,shapeId:_0x50c9d8,shapeType:_0x4765fd,shapeData:_0x561854}=_0x16a8bf,_0x4eec4d=_0x2298db[_0x3b1fa0(0x165)](_0x1cfaa3,_0x19fcf7,_0x50c9d8);if(_0x4eec4d){let _0x1249b2=_0x4eec4d[_0x3b1fa0(0x169)](),_0x32f845=Object[_0x3b1fa0(0x144)]({},_0x4eec4d[_0x3b1fa0(0x118)]()),_0x95b5c6={'unitId':_0x1cfaa3,'subUnitId':_0x19fcf7,'shapeId':_0x50c9d8,'shapeType':_0x4765fd,'shapeData':_0x561854},_0x2b8a3e={'unitId':_0x1cfaa3,'subUnitId':_0x19fcf7,'shapeId':_0x50c9d8,'shapeType':_0x1249b2,'shapeData':_0x32f845};return _0x30b337[_0x3b1fa0(0xdc)]({'id':$['id'],'params':_0x95b5c6}),_0x21384b['push']({'id':$['id'],'params':_0x2b8a3e}),_0x30b337['every'](_0x4a914e=>_0x2589cb[_0x3b1fa0(0x12b)](_0x4a914e['id'],_0x4a914e['params']))&&_0x589e0b[_0x3b1fa0(0x158)]({'unitID':_0x1cfaa3,'redoMutations':[..._0x30b337],'undoMutations':[..._0x21384b]}),!0x0;}return!0x1;}};var ae=_0x59fa14(0xf1),oe=_0x59fa14(0xe4);const se={};let ce=class extends _0x1b87a1{constructor(_0x3ec498,_0x2137a1,_0x4f53b2,_0x3b6005,_0x4355cd){const _0x423ba0=_0x59fa14;super(),this[_0x423ba0(0xec)]=_0x3ec498,this['_sheetInterceptorService']=_0x2137a1,this[_0x423ba0(0xf5)]=_0x4f53b2,this[_0x423ba0(0x15a)]=_0x3b6005,this[_0x423ba0(0x133)]=_0x4355cd,this['_initCommands'](),this[_0x423ba0(0x16a)]();}[_0x59fa14(0xde)](){const _0x482234=_0x59fa14;[Y,ee,Z,Q,te,ne,re,q,J,$,X]['forEach'](_0x23e94d=>this[_0x482234(0x14e)](this[_0x482234(0xec)][_0x482234(0xe6)](_0x23e94d)));}[_0x59fa14(0x16a)](){const _0x26b335=_0x59fa14;this[_0x26b335(0x14e)](this[_0x26b335(0x179)][_0x26b335(0x145)]({'getMutations':_0x1066b2=>{const _0x1db18b=_0x26b335;if(_0x1066b2['id']===_0x56657d['id']){let {drawings:_0x10150d}=_0x1066b2[_0x1db18b(0x11c)],_0x3cc534=_0x10150d[_0x1db18b(0x11e)](_0x3ee899=>_0x3ee899[_0x1db18b(0xdf)]===_0x34bc84[_0x1db18b(0x107)]);if(_0x3cc534[_0x1db18b(0x13b)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3c628e=[],_0x2efe0c=[];return _0x3cc534[_0x1db18b(0x108)](_0x2e49b2=>{const _0x25e81e=_0x1db18b;let {unitId:_0x114189,subUnitId:_0x3c9e9a,drawingId:_0x4fffc5}=_0x2e49b2,_0x56e68c=this[_0x25e81e(0x15a)]['getShapeModel'](_0x114189,_0x3c9e9a,_0x4fffc5);if(!_0x56e68c)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x56e68c);_0x3c628e[_0x25e81e(0xdc)]({'id':J['id'],'params':{'unitId':_0x114189,'subUnitId':_0x3c9e9a,'shapeId':_0x4fffc5}}),_0x2efe0c[_0x25e81e(0xdc)]({'id':q['id'],'params':{'unitId':_0x114189,'subUnitId':_0x3c9e9a,'shapeId':_0x4fffc5,'shapeType':_0x56e68c[_0x25e81e(0x169)](),'shapeData':_0x56e68c[_0x25e81e(0x118)]()}});let _0x18e361=this['_sheetsShapeService'][_0x25e81e(0x15f)](_0x114189,_0x3c9e9a,_0x4fffc5);if(_0x18e361)for(let _0x22c319 of _0x18e361){let _0xa39591=_0x22c319['lineShapeId'],_0x34254d=_0x22c319[_0x25e81e(0x125)],_0x5349ca=_0x34254d?{'from':void 0x0}:{'to':void 0x0},_0x721ad3=_0x34254d?{'from':{'shapeId':_0x22c319[_0x25e81e(0xfd)],'cxnIndex':_0x22c319['cxnIndex']}}:{'to':{'shapeId':_0x22c319[_0x25e81e(0xfd)],'cxnIndex':_0x22c319[_0x25e81e(0x15e)]}};_0x3c628e[_0x25e81e(0xdc)]({'id':X['id'],'params':{'unitId':_0x114189,'subUnitId':_0x3c9e9a,'shapeId':_0xa39591,'shapeData':{'relation':_0x5349ca}}}),_0x2efe0c[_0x25e81e(0xdc)]({'id':X['id'],'params':{'unitId':_0x114189,'subUnitId':_0x3c9e9a,'shapeId':_0xa39591,'shapeData':{'relation':_0x721ad3}}});}}),{'preRedos':_0x3c628e,'redos':[],'preUndos':[],'undos':_0x2efe0c};}if(_0x1066b2['id']===_0x3319d6['id']){let {drawings:_0x10e4c1}=_0x1066b2['params'],_0x23e91a=_0x10e4c1[_0x1db18b(0x11e)](_0x5bdfdd=>_0x5bdfdd['drawingType']===_0x34bc84[_0x1db18b(0x107)]);if(_0x23e91a[_0x1db18b(0x13b)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x567104=[],_0x1836c2=[];for(let _0x325222 of _0x23e91a){let {unitId:_0x477f95,subUnitId:_0x2bd887,drawingId:_0x4e56a2,transform:_0x5a5914}=_0x325222;if(!_0x477f95||!_0x2bd887||!_0x4e56a2||!_0x5a5914)continue;let _0x164c3c=this[_0x1db18b(0x15a)][_0x1db18b(0x165)](_0x477f95,_0x2bd887,_0x4e56a2);if(!_0x164c3c)throw TypeError(_0x1db18b(0xf3)+_0x164c3c);if(_0xf81d44(_0x164c3c[_0x1db18b(0x169)]())){let _0x45ab25=this[_0x1db18b(0x15a)]['getLineShapeRelation'](_0x477f95,_0x2bd887,_0x4e56a2);_0x45ab25&&(_0x567104[_0x1db18b(0xdc)]({'id':X['id'],'params':{'unitId':_0x477f95,'subUnitId':_0x2bd887,'shapeId':_0x4e56a2,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x1836c2[_0x1db18b(0xdc)]({'id':X['id'],'params':{'unitId':_0x477f95,'subUnitId':_0x2bd887,'shapeId':_0x4e56a2,'shapeData':{'relation':_0x45ab25}}}));}else{let _0x4aee66=this[_0x1db18b(0x15a)][_0x1db18b(0x15f)](_0x477f95,_0x2bd887,_0x4e56a2);if(_0x4aee66&&_0x4aee66[_0x1db18b(0x13b)]>0x0)for(let _0x5dbb1c of _0x4aee66){let _0x258d55=_0x5dbb1c[_0x1db18b(0xfc)],_0x4de61b=_0x5dbb1c[_0x1db18b(0x125)],_0x488106=this[_0x1db18b(0x15a)][_0x1db18b(0x165)](_0x477f95,_0x2bd887,_0x258d55);if(!_0x488106)continue;let _0x4dab86=_0x488106[_0x1db18b(0x14a)](),_0x3f48ea=_0x488106[_0x1db18b(0x168)]();_0x4dab86&&_0x3f48ea?this[_0x1db18b(0x10c)](_0x477f95,_0x2bd887,_0x258d55,_0x488106,_0x4dab86,_0x3f48ea,_0x567104,_0x1836c2,_0x4e56a2,_0x5a5914):this[_0x1db18b(0x123)](_0x477f95,_0x2bd887,_0x258d55,_0x488106,_0x4de61b?_0x4dab86:_0x3f48ea,_0x4de61b,_0x567104,_0x1836c2,_0x4e56a2,_0x5a5914);}}}return{'preRedos':[],'redos':_0x567104,'preUndos':_0x1836c2,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x3191bb,_0x3fec81,_0x1d5832,_0x147519,_0x5431d6){const _0x398405=_0x59fa14;if(!_0x3fec81||!_0x1d5832)return null;let {shapeId:_0x3de6d8,cxnIndex:_0x4c17ce}=_0x3191bb,_0x5740b9=this[_0x398405(0x15a)][_0x398405(0x165)](_0x3fec81,_0x1d5832,_0x3de6d8);if(!_0x5740b9)return null;let _0x48cf09=this[_0x398405(0x133)][_0x398405(0x12d)]({'unitId':_0x3fec81,'subUnitId':_0x1d5832,'drawingId':_0x3de6d8});if(!(_0x48cf09!=null&&_0x48cf09[_0x398405(0x178)]))return null;let {left:_0x51c024=0x0,top:_0x54cde9=0x0,width:_0x3b9c21=0x0,height:_0xd36fae=0x0,flipX:_0x57565c=!0x1,flipY:_0x15fa5b=!0x1,angle:_0x23f2f0}=_0x48cf09[_0x398405(0x178)];if(_0x5431d6&&_0x147519===_0x3de6d8){var _0x31c1e8,_0x3db845,_0x3e6ea7,_0x5ee76d,_0x5e19ce,_0x5e382e,_0x392a0c;_0x51c024=(_0x31c1e8=_0x5431d6[_0x398405(0x15d)])==null?_0x51c024:_0x31c1e8,_0x54cde9=(_0x3db845=_0x5431d6[_0x398405(0x16e)])==null?_0x54cde9:_0x3db845,_0x3b9c21=(_0x3e6ea7=_0x5431d6[_0x398405(0xe0)])==null?_0x3b9c21:_0x3e6ea7,_0xd36fae=(_0x5ee76d=_0x5431d6['height'])==null?_0xd36fae:_0x5ee76d,_0x57565c=(_0x5e19ce=_0x5431d6['flipX'])==null?_0x57565c:_0x5e19ce,_0x15fa5b=(_0x5e382e=_0x5431d6[_0x398405(0x10d)])==null?_0x15fa5b:_0x5e382e,_0x23f2f0=(_0x392a0c=_0x5431d6['angle'])==null?_0x23f2f0:_0x392a0c;}_0x5740b9[_0x398405(0xdb)]({'width':_0x3b9c21,'height':_0xd36fae});let _0x2be9eb=_0x5740b9[_0x398405(0x14c)]()['find'](_0xc11a17=>_0xc11a17[_0x398405(0x126)]===_0x4c17ce);if(!_0x2be9eb)return null;let _0x392c4e=_0x57565c?_0x3b9c21-_0x2be9eb['x']:_0x2be9eb['x'],_0x196d34=_0x15fa5b?_0xd36fae-_0x2be9eb['y']:_0x2be9eb['y'];if(_0x23f2f0!==0x0&&_0x23f2f0!=null){let _0x3cee41=_0x23f2f0*Math['PI']/0xb4,_0x6294b4=Math[_0x398405(0xff)](_0x3cee41),_0x411c1b=Math[_0x398405(0x154)](_0x3cee41),_0x10c528=_0x3b9c21/0x2,_0x524f3d=_0xd36fae/0x2,_0x472bbc=_0x392c4e-_0x10c528,_0x34d3c1=_0x196d34-_0x524f3d;_0x392c4e=_0x10c528+_0x472bbc*_0x6294b4-_0x34d3c1*_0x411c1b,_0x196d34=_0x524f3d+_0x472bbc*_0x411c1b+_0x34d3c1*_0x6294b4;}_0x392c4e+=_0x51c024,_0x196d34+=_0x54cde9;let _0x6ef22c=_0x2be9eb['ang']/0xea60;_0x57565c&&(_0x6ef22c=0xb4-_0x6ef22c),_0x15fa5b&&(_0x6ef22c=-_0x6ef22c),_0x6ef22c+=_0x23f2f0||0x0,_0x6ef22c=(_0x6ef22c%0x168+0x168)%0x168;let _0x3db4b0=_0x23c33d({'left':_0x51c024,'top':_0x54cde9,'width':_0x3b9c21,'height':_0xd36fae},_0x23f2f0||0x0);return{'point':{'x':_0x392c4e,'y':_0x196d34},'angle':_0x6ef22c,'bounds':_0x3db4b0};}[_0x59fa14(0x10c)](_0x118ca1,_0x19ec9d,_0x5bef29,_0x246341,_0x56bf4f,_0x2b7fd1,_0x8699e0,_0x7cea18,_0xc2c7e9,_0x1d5ac2){const _0x51a498=_0x59fa14;let _0x171321=this[_0x51a498(0xf5)][_0x51a498(0x147)](_0x118ca1,_0x19ec9d);if(!_0x171321)return;let _0x1f7347=_0x246341[_0x51a498(0x105)](),_0x1bb68e=_0x246341[_0x51a498(0x140)](),_0x1d159c={},_0x1cb32b={};_0x1bb68e[_0x51a498(0x108)](_0x35df21=>{const _0x1fd485=_0x51a498;let _0x11bd29=_0x246341[_0x1fd485(0xe1)](_0x35df21);_0x1cb32b[_0x35df21]=_0x11bd29==null?0x0:_0x11bd29;});let _0x3c97ae=this[_0x51a498(0x11f)](_0x56bf4f,_0x118ca1,_0x19ec9d,_0xc2c7e9,_0x1d5ac2),_0x3741d0=this['_getConnectPointInfo'](_0x2b7fd1,_0x118ca1,_0x19ec9d,_0xc2c7e9,_0x1d5ac2);if(_0x3c97ae&&_0x3741d0){let _0x3cbf9c=_0x246341[_0x51a498(0x169)](),_0x2c96d3=_0x2a847c(_0x3c97ae,_0x3741d0,_0x3cbf9c),_0x3b9dab=_0x3cbf9c;if(_0x2c96d3){let _0x505d3b=_0x1e57a6(_0x2c96d3,_0x246341['getShapeType']()),_0x1668a8=this['_drawingManagerService'][_0x51a498(0xd7)](_0x118ca1,_0x19ec9d);if(_0x1668a8&&_0x1668a8[_0x5bef29]){let _0x220ba6=_0x1668a8[_0x5bef29];_0x3b9dab=_0x505d3b['lineType'];for(let [_0x10a3ee,_0x356947]of Object[_0x51a498(0xd8)](_0x505d3b[_0x51a498(0x12a)]))_0x1d159c[_0x10a3ee]=_0x356947;let _0x239250={..._0x220ba6[_0x51a498(0x178)],'width':_0x505d3b[_0x51a498(0x14d)][_0x51a498(0xe0)],'height':_0x505d3b['worldRect']['height'],'left':_0x505d3b['worldRect']['left'],'top':_0x505d3b[_0x51a498(0x14d)][_0x51a498(0x16e)],'flipX':_0x505d3b[_0x51a498(0x14d)][_0x51a498(0x176)],'flipY':_0x505d3b[_0x51a498(0x14d)][_0x51a498(0x10d)],'angle':_0x505d3b['rotation']},_0x566d9a=_0x383801(_0x239250,_0x171321),_0x2d6edc=_0x2b6c1d(_0x239250,_0x171321),_0x33d557={'unitId':_0x118ca1,'subUnitId':_0x19ec9d,'drawingType':_0x34bc84['DRAWING_SHAPE'],'drawingId':_0x5bef29,'transform':_0x239250,'sheetTransform':_0x566d9a,'axisAlignSheetTransform':_0x2d6edc},{unitId:_0x68129f,subUnitId:_0x434194,undo:_0x43e5c1,redo:_0x2fe350,objects:_0xd00923}=this[_0x51a498(0x133)][_0x51a498(0xe8)]([_0x33d557]);_0x8699e0[_0x51a498(0xdc)]({'id':_0x4f132c['id'],'params':{'unitId':_0x68129f,'subUnitId':_0x434194,'op':_0x2fe350,'objects':_0xd00923,'type':_0x1e39cb[_0x51a498(0x146)]}}),_0x7cea18[_0x51a498(0xdc)]({'id':_0x4f132c['id'],'params':{'unitId':_0x68129f,'subUnitId':_0x434194,'op':_0x43e5c1,'objects':_0xd00923,'type':_0x1e39cb[_0x51a498(0x146)]}});}_0x246341[_0x51a498(0xeb)]();}_0x8699e0['push']({'id':X['id'],'params':{'unitId':_0x118ca1,'subUnitId':_0x19ec9d,'shapeId':_0x5bef29,'shapeType':_0x3b9dab,'shapeData':{'adjustValues':_0x1d159c,'relation':_0x1f7347}}}),_0x7cea18[_0x51a498(0xdc)]({'id':X['id'],'params':{'unitId':_0x118ca1,'subUnitId':_0x19ec9d,'shapeId':_0x5bef29,'shapeType':_0x3cbf9c,'shapeData':{'adjustValues':_0x1cb32b,'relation':_0x1f7347}}});}}[_0x59fa14(0x123)](_0x4fc646,_0x113448,_0x3bc2ee,_0x54093f,_0x45bd31,_0x4a9160,_0x19ef44,_0x210223,_0x3c1cda,_0x2618df){const _0x44971f=_0x59fa14;var _0xd8c81;if(!_0x45bd31)return;let _0x5e873e=this['_sheetSkeletonService'][_0x44971f(0x147)](_0x4fc646,_0x113448);if(!_0x5e873e)return;let _0x1dbe55=(_0xd8c81=this[_0x44971f(0x133)][_0x44971f(0x12d)]({'unitId':_0x4fc646,'subUnitId':_0x113448,'drawingId':_0x3c1cda}))==null?void 0x0:_0xd8c81[_0x44971f(0x178)];if(!_0x1dbe55)return;let _0x3c61b8=_0x1dbe55[_0x44971f(0x15d)]!==_0x2618df[_0x44971f(0x15d)]||_0x1dbe55[_0x44971f(0x16e)]!==_0x2618df['top'],_0x31b08e=_0x1dbe55[_0x44971f(0xe0)]!==_0x2618df[_0x44971f(0xe0)]||_0x1dbe55['height']!==_0x2618df['height'],_0x59fec3=_0x1dbe55[_0x44971f(0x176)]!==_0x2618df[_0x44971f(0x176)]||_0x1dbe55[_0x44971f(0x10d)]!==_0x2618df['flipY'],_0x461b1f=_0x1dbe55[_0x44971f(0xe5)]!==_0x2618df[_0x44971f(0xe5)];if(_0x3c61b8&&!_0x31b08e&&!_0x59fec3&&!_0x461b1f){var _0x1e1e07,_0x23e901,_0x552e68,_0x31e995;let _0x2850ef=((_0x1e1e07=_0x2618df['left'])==null?0x0:_0x1e1e07)-((_0x23e901=_0x1dbe55[_0x44971f(0x15d)])==null?0x0:_0x23e901),_0x320b68=((_0x552e68=_0x2618df[_0x44971f(0x16e)])==null?0x0:_0x552e68)-((_0x31e995=_0x1dbe55['top'])==null?0x0:_0x31e995),_0x595b9f=this[_0x44971f(0x133)][_0x44971f(0xd7)](_0x4fc646,_0x113448);if(_0x595b9f&&_0x595b9f[_0x3bc2ee]){var _0x50fce6,_0x4a8b8b,_0x262391,_0x9b8f29;let _0x4c34ba=_0x595b9f[_0x3bc2ee],_0x14069c={..._0x4c34ba[_0x44971f(0x178)],'left':((_0x50fce6=(_0x4a8b8b=_0x4c34ba[_0x44971f(0x178)])==null?void 0x0:_0x4a8b8b['left'])==null?0x0:_0x50fce6)+_0x2850ef,'top':((_0x262391=(_0x9b8f29=_0x4c34ba[_0x44971f(0x178)])==null?void 0x0:_0x9b8f29[_0x44971f(0x16e)])==null?0x0:_0x262391)+_0x320b68},_0x47f073=_0x383801(_0x14069c,_0x5e873e),_0x276f96=_0x2b6c1d(_0x14069c,_0x5e873e),_0x2eec14={'unitId':_0x4fc646,'subUnitId':_0x113448,'drawingType':_0x34bc84[_0x44971f(0x107)],'drawingId':_0x3bc2ee,'transform':_0x14069c,'sheetTransform':_0x47f073,'axisAlignSheetTransform':_0x276f96},{unitId:_0x4b1169,subUnitId:_0x6b0d3,undo:_0x23de87,redo:_0x2e93ea,objects:_0x3f696c}=this['_drawingManagerService'][_0x44971f(0xe8)]([_0x2eec14]);_0x19ef44['push']({'id':_0x4f132c['id'],'params':{'unitId':_0x4b1169,'subUnitId':_0x6b0d3,'op':_0x2e93ea,'objects':_0x3f696c,'type':_0x1e39cb['UPDATE']}}),_0x210223[_0x44971f(0xdc)]({'id':_0x4f132c['id'],'params':{'unitId':_0x4b1169,'subUnitId':_0x6b0d3,'op':_0x23de87,'objects':_0x3f696c,'type':_0x1e39cb[_0x44971f(0x146)]}});}}else{let _0x13a36c=_0x54093f[_0x44971f(0x14a)](),_0x33941b=_0x54093f[_0x44971f(0x168)]();this[_0x44971f(0x10c)](_0x4fc646,_0x113448,_0x3bc2ee,_0x54093f,_0x13a36c,_0x33941b,_0x19ef44,_0x210223,_0x3c1cda,_0x2618df);}}};function _0x5da5(_0x353fbe,_0x412ffd){_0x353fbe=_0x353fbe-0xd2;const _0x12daf1=_0x12da();let _0x5da5e9=_0x12daf1[_0x353fbe];return _0x5da5e9;}ce=G([W(0x0,_0x5448b6),W(0x1,_0x4e1507(_0x1b2525)),W(0x2,_0x4e1507(_0x44b292)),W(0x3,_0x4e1507(K)),W(0x4,_0x4e1507(_0x1b9e92))],ce);let le=class extends _0x43f10e{constructor(_0x33673e=se,_0x51f76f,_0x1dffa5,_0xbd46ea){const _0x33ed5b=_0x59fa14;super(),this[_0x33ed5b(0xd5)]=_0x33673e,this[_0x33ed5b(0x131)]=_0x51f76f,this[_0x33ed5b(0xec)]=_0x1dffa5,this[_0x33ed5b(0x11b)]=_0xbd46ea;let {..._0x275b43}=_0x375fc4({},se,this[_0x33ed5b(0xd5)]);this[_0x33ed5b(0x11b)][_0x33ed5b(0x13e)]('sheets-shape.config',_0x275b43);}[_0x59fa14(0x120)](){const _0x327c1e=_0x59fa14;let _0x16c7e1=this[_0x327c1e(0x131)];[[U],[K],[ce]][_0x327c1e(0x108)](_0x2d7af5=>_0x16c7e1['add'](_0x2d7af5)),_0x38b51a(_0x16c7e1,[[K],[ce]]);}};H(le,'type',_0x4f7fa0['UNIVER_SHEET']),H(le,_0x59fa14(0xf0),_0x59fa14(0x115)),H(le,_0x59fa14(0xf2),ae),H(le,_0x59fa14(0x156),oe),le=G([_0x4b3f23(_0x10db9b),W(0x1,_0x4e1507(_0x213482)),W(0x2,_0x5448b6),W(0x3,_0x3dfdf2)],le);export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
1
+ const _0x1b2777=_0x55ca;(function(_0x274e08,_0x1363c2){const _0x4d9193=_0x55ca,_0x25b4dd=_0x274e08();while(!![]){try{const _0x1eec06=parseInt(_0x4d9193(0x103))/0x1*(-parseInt(_0x4d9193(0x123))/0x2)+-parseInt(_0x4d9193(0xb9))/0x3*(parseInt(_0x4d9193(0xf8))/0x4)+-parseInt(_0x4d9193(0x100))/0x5+parseInt(_0x4d9193(0xc0))/0x6*(parseInt(_0x4d9193(0x9b))/0x7)+-parseInt(_0x4d9193(0x12a))/0x8+-parseInt(_0x4d9193(0xf7))/0x9*(-parseInt(_0x4d9193(0x110))/0xa)+parseInt(_0x4d9193(0x9c))/0xb;if(_0x1eec06===_0x1363c2)break;else _0x25b4dd['push'](_0x25b4dd['shift']());}catch(_0x3bd7dd){_0x25b4dd['push'](_0x25b4dd['shift']());}}}(_0x5220,0xca2ae));import{ShapeModel as _0x4b5768,computeConnectorRouteLayout as _0xc69524,createUniqueShapeName as _0x35cb9a,getBasicShapeRotateBound as _0x40b288,isConnectorShape as _0xc963bc,routeConnectorLineShape as _0x4cc214}from'@univerjs-pro/engine-shape';import{CommandType as _0x2d4ac4,DependentOn as _0x2c7cf6,Disposable as _0x543ffa,DrawingTypeEnum as _0x4d3e69,ICommandService as _0xa3208c,IConfigService as _0x1802b3,IResourceManagerService as _0x1fce46,IUndoRedoService as _0x17d14d,IUniverInstanceService as _0x38fcfb,Inject as _0x19216a,Injector as _0x180637,Plugin as _0x11a17d,UniverInstanceType as _0x37476a,generateRandomId as _0x3ef264,merge as _0x14640d,sequenceExecute as _0x16df04,touchDependencies as _0x29f0fc}from'@univerjs/core';function _0x55ca(_0x400b15,_0x441b0d){_0x400b15=_0x400b15-0x99;const _0x522044=_0x5220();let _0x55cae2=_0x522044[_0x400b15];return _0x55cae2;}import{SheetInterceptorService as _0x51d1bf,SheetSkeletonService as _0x2fc9c5,getSheetCommandTarget as _0x1fda72}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x5ec59a,DrawingApplyType as _0x534eeb,ISheetDrawingService as _0x3f2b28,InsertSheetDrawingCommand as _0xff1699,RemoveSheetDrawingCommand as _0x36289e,SetDrawingApplyMutation as _0x2703c3,SetSheetDrawingCommand as _0x6aec62,transformToAxisAlignPosition as _0x45aabc,transformToDrawingPosition as _0x2d6220}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x17d981}from'@univerjs-pro/license';import{IDrawingManagerService as _0x5b1dc7}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x406b3c){'@babel/helpers - typeof';return z=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x49fdc8){return typeof _0x49fdc8;}:function(_0x5b30e7){const _0x494149=_0x55ca;return _0x5b30e7&&typeof Symbol==_0x494149(0x13b)&&_0x5b30e7[_0x494149(0x11c)]===Symbol&&_0x5b30e7!==Symbol[_0x494149(0xa3)]?_0x494149(0xad):typeof _0x5b30e7;},z(_0x406b3c);}function B(_0x4da072,_0x4db97f){const _0x1cc262=_0x55ca;if(z(_0x4da072)!='object'||!_0x4da072)return _0x4da072;var _0x264778=_0x4da072[Symbol['toPrimitive']];if(_0x264778!==void 0x0){var _0x4e734c=_0x264778[_0x1cc262(0xbe)](_0x4da072,_0x4db97f||'default');if(z(_0x4e734c)!=_0x1cc262(0x118))return _0x4e734c;throw TypeError(_0x1cc262(0xf3));}return(_0x4db97f===_0x1cc262(0xdd)?String:Number)(_0x4da072);}function V(_0x1c5dba){const _0x13323c=_0x55ca;var _0x424ccd=B(_0x1c5dba,_0x13323c(0xdd));return z(_0x424ccd)==_0x13323c(0xad)?_0x424ccd:_0x424ccd+'';}function H(_0x5c3816,_0x5b111f,_0x9f001d){const _0x14169b=_0x55ca;return(_0x5b111f=V(_0x5b111f))in _0x5c3816?Object[_0x14169b(0xb0)](_0x5c3816,_0x5b111f,{'value':_0x9f001d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c3816[_0x5b111f]=_0x9f001d,_0x5c3816;}var U=class extends _0x543ffa{constructor(){const _0x25433b=_0x55ca;super(),H(this,_0x25433b(0x113),new Map()),H(this,_0x25433b(0xe3),new Set()),H(this,'_groupIds',new Set());}[_0x1b2777(0xc2)](_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3){const _0xbf33cf=_0x1b2777;let _0x3bccdf=new _0x4b5768(_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3);return this[_0xbf33cf(0x113)][_0xbf33cf(0xba)](_0xddb1a5,_0x3bccdf),_0xc963bc(_0xda0a65)&&this[_0xbf33cf(0xe3)]['add'](_0xddb1a5),_0x3bccdf;}['getBasicShapeRelation'](_0x550e21){const _0x5b4808=_0x1b2777;let _0x42144a=[];for(let _0x3304dd of this['_linesIds']){let _0x4f1c5a=this[_0x5b4808(0x113)]['get'](_0x3304dd);if(_0x4f1c5a){let _0x3f90e3=_0x4f1c5a[_0x5b4808(0xb4)]();if(_0x3f90e3){var _0x10e2e5,_0xdadc62;((_0x10e2e5=_0x3f90e3[_0x5b4808(0xa0)])==null?void 0x0:_0x10e2e5['shapeId'])===_0x550e21&&_0x42144a['push']({..._0x3f90e3[_0x5b4808(0xa0)],'lineShapeId':_0x3304dd,'isFrom':!0x0}),((_0xdadc62=_0x3f90e3['to'])==null?void 0x0:_0xdadc62[_0x5b4808(0x102)])===_0x550e21&&_0x42144a['push']({..._0x3f90e3['to'],'lineShapeId':_0x3304dd,'isFrom':!0x1});}}}return _0x42144a;}[_0x1b2777(0xff)](_0x2869e2){const _0x219345=_0x1b2777;let _0x32e2bc=this[_0x219345(0x113)]['get'](_0x2869e2);if(_0x32e2bc)return _0x32e2bc['getShapeRelation']();}[_0x1b2777(0x10b)](_0x2f5100){const _0x2ca4fc=_0x1b2777;let _0x22e160=this[_0x2ca4fc(0x113)]['get'](_0x2f5100);if(_0x22e160)return _0x22e160[_0x2ca4fc(0x10b)]();}[_0x1b2777(0xdc)](_0x5e5935){const _0x21760b=_0x1b2777;return this[_0x21760b(0x113)][_0x21760b(0x134)](_0x5e5935);}[_0x1b2777(0xcc)](){const _0x4c4b6e=_0x1b2777;return Array[_0x4c4b6e(0xa0)](this[_0x4c4b6e(0x113)][_0x4c4b6e(0xdf)]())[_0x4c4b6e(0x130)](_0xc4514d=>_0xc4514d[_0x4c4b6e(0x117)]()||_0xc4514d[_0x4c4b6e(0xbf)]());}[_0x1b2777(0xb3)](_0x498814){const _0x21451d=_0x1b2777;let _0x22db25=this[_0x21451d(0x113)]['get'](_0x498814);_0x22db25&&(_0xc963bc(_0x22db25['getShapeType']())&&this[_0x21451d(0xe3)][_0x21451d(0x10f)](_0x498814),this[_0x21451d(0x113)][_0x21451d(0x10f)](_0x498814));}[_0x1b2777(0xeb)](){const _0x15b9c4=_0x1b2777;let _0x409e80=[];return this[_0x15b9c4(0x113)][_0x15b9c4(0xa4)](_0x4a9294=>{const _0x145899=_0x15b9c4;_0x409e80['push'](_0x4a9294[_0x145899(0xeb)]());}),_0x409e80;}[_0x1b2777(0xed)](_0x431fdd){const _0x2ffa21=_0x1b2777;for(let _0x2f3b0a of _0x431fdd){let {id:_0x4471f2,shapeType:_0x53c6c5,name:_0x3f0215}=_0x2f3b0a,_0x16b95d=this['addShape'](_0x53c6c5,_0x4471f2,_0x2f3b0a[_0x2ffa21(0xf1)],_0x3f0215);_0x16b95d&&_0x16b95d[_0x2ffa21(0xe0)]()&&this[_0x2ffa21(0xe3)]['add'](_0x4471f2);}}[_0x1b2777(0x122)](){const _0x421825=_0x1b2777;this[_0x421825(0xef)]||(this['_shapes'][_0x421825(0xa4)](_0x16becf=>{const _0x4f8a66=_0x421825;_0x16becf[_0x4f8a66(0x122)]();}),this[_0x421825(0x113)][_0x421825(0x114)](),this[_0x421825(0xe3)][_0x421825(0x114)](),this['_groupIds'][_0x421825(0x114)](),super[_0x421825(0x122)]());}};function W(_0x5a7aa5,_0x2d4550){return function(_0x219768,_0x3f7676){_0x2d4550(_0x219768,_0x3f7676,_0x5a7aa5);};}function G(_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e){const _0x1e5050=_0x1b2777;var _0x3ca514=arguments[_0x1e5050(0xec)],_0x20c0f4=_0x3ca514<0x3?_0x47fcfb:_0x52b22e===null?_0x52b22e=Object[_0x1e5050(0xee)](_0x47fcfb,_0x31ed06):_0x52b22e,_0xdb86fb;if(typeof Reflect==_0x1e5050(0x118)&&typeof Reflect[_0x1e5050(0xfc)]=='function')_0x20c0f4=Reflect[_0x1e5050(0xfc)](_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e);else{for(var _0x2c8f04=_0x3b2e62[_0x1e5050(0xec)]-0x1;_0x2c8f04>=0x0;_0x2c8f04--)(_0xdb86fb=_0x3b2e62[_0x2c8f04])&&(_0x20c0f4=(_0x3ca514<0x3?_0xdb86fb(_0x20c0f4):_0x3ca514>0x3?_0xdb86fb(_0x47fcfb,_0x31ed06,_0x20c0f4):_0xdb86fb(_0x47fcfb,_0x31ed06))||_0x20c0f4);}return _0x3ca514>0x3&&_0x20c0f4&&Object[_0x1e5050(0xb0)](_0x47fcfb,_0x31ed06,_0x20c0f4),_0x20c0f4;}let K=class extends _0x543ffa{constructor(_0x5b1a1d){const _0x48700b=_0x1b2777;super(),this[_0x48700b(0x112)]=_0x5b1a1d,H(this,_0x48700b(0xa9),new Map()),this['_initSnapshot']();}[_0x1b2777(0xb6)](_0x13bf01,_0x165f3f){const _0x2112ac=_0x1b2777;let _0x3c0a10=this[_0x2112ac(0xa9)][_0x2112ac(0x10e)](_0x13bf01);_0x3c0a10||(_0x3c0a10=new Map(),this['_shapeModelManagerMap'][_0x2112ac(0xba)](_0x13bf01,_0x3c0a10));let _0x10b2d2=_0x3c0a10[_0x2112ac(0x10e)](_0x165f3f);return _0x10b2d2||(_0x10b2d2=new U(),_0x3c0a10[_0x2112ac(0xba)](_0x165f3f,_0x10b2d2)),_0x10b2d2;}['insertShape'](_0x41098d,_0x3b218c,_0x35d2d8,_0x114122,_0x31d540,_0x148064){const _0x12f527=_0x1b2777;this['_ensureShapeModelManager'](_0x41098d,_0x3b218c)[_0x12f527(0xc2)](_0x35d2d8,_0x114122,_0x31d540,_0x148064);}[_0x1b2777(0xb3)](_0x9f4c2f,_0x10aaad,_0xcc0751){const _0x231647=_0x1b2777;this[_0x231647(0xb6)](_0x9f4c2f,_0x10aaad)[_0x231647(0xb3)](_0xcc0751);}['getBasicShapeType'](_0x4a20e0,_0x507199,_0x599a0a){const _0x195c52=_0x1b2777;return this[_0x195c52(0xb6)](_0x4a20e0,_0x507199)[_0x195c52(0x10b)](_0x599a0a);}[_0x1b2777(0x10b)](_0x334d4c,_0x2ceec5,_0x4a0881){const _0x123be9=_0x1b2777;return this[_0x123be9(0xb6)](_0x334d4c,_0x2ceec5)[_0x123be9(0x10b)](_0x4a0881);}[_0x1b2777(0xdc)](_0x523c96,_0x120efe,_0x23def1){const _0x4f4a0f=_0x1b2777;return this[_0x4f4a0f(0xb6)](_0x523c96,_0x120efe)[_0x4f4a0f(0xdc)](_0x23def1);}[_0x1b2777(0x126)](_0x133eda,_0x43167a,_0x2d80e3){const _0x338d76=_0x1b2777;return this[_0x338d76(0xb6)](_0x133eda,_0x43167a)['getShapeType'](_0x2d80e3);}[_0x1b2777(0x12c)](_0x2e91b4,_0x48fb61,_0x3e89e4){const _0xf4a329=_0x1b2777;let _0x741a2=this[_0xf4a329(0xb6)](_0x2e91b4,_0x48fb61);if(!_0x741a2[_0xf4a329(0x10b)](_0x3e89e4))return;let _0x207a83=_0x741a2[_0xf4a329(0x113)][_0xf4a329(0x10e)](_0x3e89e4);if(_0x207a83)return _0x207a83[_0xf4a329(0xa2)]();}[_0x1b2777(0xcc)](_0xd26554,_0x2d65ce){const _0x1edde1=_0x1b2777;return this[_0x1edde1(0xb6)](_0xd26554,_0x2d65ce)[_0x1edde1(0xcc)]();}['getShapeModel'](_0x1c224d,_0x324c44,_0x2bfc86){const _0x4f77db=_0x1b2777;return this[_0x4f77db(0xb6)](_0x1c224d,_0x324c44)['_shapes'][_0x4f77db(0x10e)](_0x2bfc86);}[_0x1b2777(0x119)](_0x1a1882,_0x200c36,_0x2a5bcd){const _0x5d3258=_0x1b2777;return this[_0x5d3258(0xb6)](_0x1a1882,_0x200c36)[_0x5d3258(0x119)](_0x2a5bcd);}['getLineShapeRelation'](_0x56e0a9,_0x3579b5,_0xec2178){const _0x4fa56e=_0x1b2777;let _0x22ab84=this['_ensureShapeModelManager'](_0x56e0a9,_0x3579b5)[_0x4fa56e(0x113)][_0x4fa56e(0x10e)](_0xec2178);if(_0x22ab84)return _0x22ab84[_0x4fa56e(0xb4)]();}[_0x1b2777(0x105)](){}[_0x1b2777(0x9d)](_0x24e78c){const _0x2247b1=_0x1b2777;let _0x503002={},_0x3b420c=this[_0x2247b1(0xa9)][_0x2247b1(0x10e)](_0x24e78c);return _0x3b420c&&_0x3b420c[_0x2247b1(0xa4)]((_0x31d710,_0x5930a5)=>{const _0x3f2a5c=_0x2247b1;let _0x2b4b20=_0x31d710['toJSON']();_0x2b4b20[_0x3f2a5c(0xec)]>0x0&&(_0x503002[_0x5930a5]=_0x2b4b20);}),JSON['stringify'](_0x503002);}[_0x1b2777(0x139)](_0x3e9023,_0x5ad212){const _0x209237=_0x1b2777;Object[_0x209237(0x9f)](_0x5ad212)[_0x209237(0xa4)](_0x272d8f=>{const _0x2bfe5a=_0x209237;this[_0x2bfe5a(0xb6)](_0x3e9023,_0x272d8f)[_0x2bfe5a(0xed)](_0x5ad212[_0x272d8f]);});}['toJSON'](){const _0x372fab=_0x1b2777;let _0x930d={};return this[_0x372fab(0xa9)][_0x372fab(0xa4)]((_0x214802,_0x169147)=>{const _0x5ac8c3=_0x372fab;_0x930d[_0x169147]={},_0x214802[_0x5ac8c3(0xa4)]((_0x5e68f3,_0xc8d4ae)=>{const _0x57f301=_0x5ac8c3;_0x930d[_0x169147][_0xc8d4ae]=_0x5e68f3[_0x57f301(0xeb)]();});}),_0x930d;}['fromJSON'](_0x2bf9a6){Object['keys'](_0x2bf9a6)['forEach'](_0x2f3dd5=>{const _0x501e8d=_0x55ca;let _0x3b77aa=_0x2bf9a6[_0x2f3dd5];Object[_0x501e8d(0x9f)](_0x3b77aa)[_0x501e8d(0xa4)](_0x1baf71=>{const _0x33567e=_0x501e8d;this[_0x33567e(0xb6)](_0x2f3dd5,_0x1baf71)[_0x33567e(0xed)](_0x3b77aa[_0x1baf71]);});});}[_0x1b2777(0x101)](){const _0xbc9278=_0x1b2777;this[_0xbc9278(0x112)][_0xbc9278(0xaa)]({'pluginName':_0xbc9278(0xfa),'businesses':[_0x37476a[_0xbc9278(0x11b)]],'toJson':_0xb9192f=>this[_0xbc9278(0x9d)](_0xb9192f),'parseJson':_0x4fea57=>JSON[_0xbc9278(0xa5)](_0x4fea57),'onLoad':(_0x4d5bbe,_0x106b80)=>{const _0x14afc0=_0xbc9278;this[_0x14afc0(0x139)](_0x4d5bbe,_0x106b80);},'onUnLoad':_0x1d625e=>{const _0x51e8d0=_0xbc9278;let _0xe22bab=this[_0x51e8d0(0xa9)][_0x51e8d0(0x10e)](_0x1d625e);_0xe22bab&&(_0xe22bab[_0x51e8d0(0xa4)](_0x549dd2=>{const _0x3af62d=_0x51e8d0;_0x549dd2[_0x3af62d(0x122)]();}),this['_shapeModelManagerMap']['delete'](_0x1d625e));}});}[_0x1b2777(0x122)](){const _0x501602=_0x1b2777;this[_0x501602(0xa9)][_0x501602(0xa4)](_0x3cf640=>{const _0x4a0467=_0x501602;_0x3cf640[_0x4a0467(0xa4)](_0x1a2dd6=>{_0x1a2dd6['dispose']();});});}};K=G([W(0x0,_0x1fce46)],K);const q={'id':'sheet.mutation.insert-shape','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x56a6eb,_0x3cf7a7)=>{const _0x56004f=_0x1b2777;let {unitId:_0x4980d5,subUnitId:_0x5bf1db,shapeType:_0x1358b1,shapeId:_0x524b60,shapeName:_0x454e78,shapeData:_0x552638}=_0x3cf7a7;return _0x56a6eb[_0x56004f(0x10e)](K)[_0x56004f(0x12f)](_0x4980d5,_0x5bf1db,_0x1358b1,_0x524b60,_0x552638,_0x454e78),!0x0;}},J={'id':_0x1b2777(0xe9),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x195ddf,_0x2805a4)=>{const _0x2d8398=_0x1b2777;let {unitId:_0x24bb16,subUnitId:_0x182991,shapeId:_0x2547d1}=_0x2805a4;return _0x195ddf[_0x2d8398(0x10e)](K)['removeShape'](_0x24bb16,_0x182991,_0x2547d1),!0x0;}},Y={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x9a),'handler':(_0x5b9660,_0x468d47)=>{const _0x4c7424=_0x1b2777;var _0x147934,_0xfb3acb,_0x56fe63;let _0x3dcce5=_0x1fda72(_0x5b9660[_0x4c7424(0x10e)](_0x38fcfb),_0x468d47);if(!_0x3dcce5)return!0x1;let _0x1cf566=_0x5b9660[_0x4c7424(0x10e)](_0x2fc9c5),{unitId:_0x3269ef,subUnitId:_0xf103c9}=_0x3dcce5,_0x1e93c3=_0x1cf566[_0x4c7424(0x11a)](_0x3269ef,_0xf103c9);if(!_0x1e93c3)return!0x1;let _0x5845af=_0x5b9660[_0x4c7424(0x10e)](_0xa3208c),_0x32570c=_0x5b9660[_0x4c7424(0x10e)](_0x17d14d),_0x8c089a=_0x5b9660['get'](_0x51d1bf),_0x1d02e1=_0x5b9660[_0x4c7424(0x10e)](_0x3f2b28),_0x570449=_0x5b9660[_0x4c7424(0x10e)](K),{shapeType:_0x234e63,shapeData:_0x1d6c7a}=_0x468d47,_0x332c8b=_0x468d47[_0x4c7424(0x102)]||_0x3ef264(),_0x48ddc9={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b,'shapeName':(_0x147934=_0x468d47[_0x4c7424(0xc1)])==null?_0x35cb9a(_0x234e63,_0x570449[_0x4c7424(0xcc)](_0x3269ef,_0xf103c9)):_0x147934,'shapeType':_0x234e63,'shapeData':_0x1d6c7a},_0x44a293=_0x468d47['width']||0xc8,_0x49311b=_0x468d47[_0x4c7424(0x135)]||0xc8,_0x3124c0=0x0,_0x128d10=0x0,_0x3d28cf={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x38e155={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x468d47['position']){let {x:_0xefaab0,y:_0x3c6182}=_0x468d47[_0x4c7424(0xb5)];_0x3124c0=_0xefaab0,_0x128d10=_0x3c6182,_0x3d28cf=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0,_0x3c6182),_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0+_0x44a293,_0x3c6182+_0x49311b);}else{if(_0x468d47['range']){let {startRow:_0x513d6c,startColumn:_0x205e45}=_0x468d47[_0x4c7424(0xfb)];_0x3d28cf={'row':_0x513d6c,'rowOffset':0xa,'column':_0x205e45,'columnOffset':0xa};let _0x11d9cf=_0x1e93c3[_0x4c7424(0xea)](_0x513d6c,_0x205e45);_0x3124c0=_0x11d9cf[_0x4c7424(0xa7)]+0xa,_0x128d10=_0x11d9cf[_0x4c7424(0xf9)]+0xa,_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0x3124c0+_0x44a293,_0x128d10+_0x49311b);}}let _0x1ce045={'from':_0x3d28cf,'to':_0x38e155},_0x5d1e57={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'drawingId':_0x332c8b,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x1ce045,'transform':{'left':_0x3124c0,'top':_0x128d10,'width':_0x44a293,'height':_0x49311b},'data':{'shapeType':_0x234e63,'shapeData':_0x1d6c7a},'axisAlignSheetTransform':_0x1ce045,'allowTransform':!0x0};_0xc963bc(_0x234e63)&&(_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xf5)]=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['rotateEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['resizeEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xde)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xcd)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xbb)]=!0x1,_0x5d1e57['transform']['borderEnabled']=!0x1);let {undo:_0x40bd9b,redo:_0x22dfb0,objects:_0x11d2e5}=_0x1d02e1['getBatchAddOp']([_0x5d1e57]),_0x5427c6=_0x8c089a[_0x4c7424(0x10d)]({'id':_0xff1699['id'],'params':{'unitId':_0x3269ef,'drawings':[_0x5d1e57]}}),_0x239935=[...(_0xfb3acb=_0x5427c6[_0x4c7424(0xd5)])==null?[]:_0xfb3acb,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x22dfb0,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xd6)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6[_0x4c7424(0xd7)],{'id':q['id'],'params':_0x48ddc9}],_0x507e46=[{'id':J['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b}},...(_0x56fe63=_0x5427c6['preUndos'])==null?[]:_0x56fe63,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x40bd9b,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xaf)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6['undos']];return _0x16df04(_0x239935,_0x5845af)[_0x4c7424(0xb2)]?(_0x32570c[_0x4c7424(0x125)]({'unitID':_0x3269ef,'undoMutations':_0x507e46,'redoMutations':_0x239935}),!0x0):!0x1;}},X={'id':_0x1b2777(0xcf),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x2b7823,_0x561614)=>{const _0x352e89=_0x1b2777;let {unitId:_0x3d754f,subUnitId:_0x5e5a7a,shapeType:_0x47825f,shapeId:_0x18d440,shapeData:_0x3ad095}=_0x561614,_0x584b72=_0x2b7823['get'](K)[_0x352e89(0xb8)](_0x3d754f,_0x5e5a7a,_0x18d440);return _0x584b72&&(_0x47825f!==void 0x0&&_0x584b72[_0x352e89(0x105)](_0x47825f),_0x3ad095&&(_0x584b72==null||_0x584b72['setShapeData'](_0x3ad095,!0x0))),!0x0;}},ee={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xc8),'handler':(_0x3a27c9,_0x35b3bf)=>{const _0x3aebeb=_0x1b2777;var _0x462f99,_0x550383;let _0x453046=_0x1fda72(_0x3a27c9[_0x3aebeb(0x10e)](_0x38fcfb),_0x35b3bf);if(!_0x453046)return!0x1;let _0x4e9f99=_0x3a27c9[_0x3aebeb(0x10e)](_0x2fc9c5),{unitId:_0x5e19b3,subUnitId:_0x43fb46}=_0x453046,_0x2d656e=_0x4e9f99[_0x3aebeb(0x11a)](_0x5e19b3,_0x43fb46);if(!_0x2d656e)return!0x1;let _0x3cf08d=_0x3a27c9[_0x3aebeb(0x10e)](K),{shapeId:_0x39ffc1,shapeType:_0x238a33,shapeData:_0x5904b9,position:_0x31d818,width:_0x1e2a8a,height:_0x4d456f}=_0x35b3bf,_0x1a8e44=_0x3cf08d[_0x3aebeb(0xb8)](_0x5e19b3,_0x43fb46,_0x39ffc1);if(!_0x1a8e44)return!0x1;let _0x555443=_0x3a27c9[_0x3aebeb(0x10e)](_0xa3208c),_0x5e36d7=_0x3a27c9[_0x3aebeb(0x10e)](_0x17d14d),_0xed37da=_0x3a27c9[_0x3aebeb(0x10e)](_0x51d1bf),_0x226163=_0x3a27c9[_0x3aebeb(0x10e)](_0x3f2b28),_0x342e34={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeId':_0x39ffc1,'shapeType':_0x238a33,'shapeData':_0x5904b9},_0x4bfa7d=_0x1a8e44[_0x3aebeb(0x10b)](),_0x4096c8=_0x1a8e44['getShapeData'](),{x:_0x501798,y:_0x5758a1}=_0x31d818,_0x3dee2d={'from':_0x2d656e['getCellIndexAndOffsetByPosition'](_0x501798,_0x5758a1),'to':_0x2d656e[_0x3aebeb(0x124)](_0x501798+_0x1e2a8a,_0x5758a1+_0x4d456f)},_0x43079e={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'drawingId':_0x39ffc1,'drawingType':_0x4d3e69[_0x3aebeb(0x11e)],'sheetTransform':_0x3dee2d,'transform':{'left':_0x501798,'top':_0x5758a1,'width':_0x1e2a8a,'height':_0x4d456f},'data':{'shapeType':_0x238a33,'shapeData':_0x5904b9},'axisAlignSheetTransform':_0x3dee2d,'allowTransform':!0x0};_0xc963bc(_0x238a33)&&(_0x43079e['data'][_0x3aebeb(0xf5)]=!0x1,_0x43079e[_0x3aebeb(0xf2)][_0x3aebeb(0xcd)]=!0x1,_0x43079e[_0x3aebeb(0xf2)]['resizeEnabled']=!0x1,_0x43079e[_0x3aebeb(0xf2)]['borderEnabled']=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xcd)]=!0x1,_0x43079e['transform'][_0x3aebeb(0xbb)]=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xde)]=!0x1);let {undo:_0xf01f82,redo:_0x570e66,objects:_0x1e2eb2}=_0x226163[_0x3aebeb(0x99)]([_0x43079e]),_0x59ce19=_0xed37da['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x5e19b3,'drawings':[_0x43079e]}}),_0x15daf4=[...(_0x462f99=_0x59ce19[_0x3aebeb(0xd5)])==null?[]:_0x462f99,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0x570e66,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xd7)],{'id':X['id'],'params':_0x342e34}],_0x116dd2=[...(_0x550383=_0x59ce19[_0x3aebeb(0xe1)])==null?[]:_0x550383,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0xf01f82,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xce)],{'id':X['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeType':_0x4bfa7d,'shapeId':_0x39ffc1,'shapeData':_0x4096c8}}];return _0x16df04(_0x15daf4,_0x555443)[_0x3aebeb(0xb2)]?(_0x5e36d7[_0x3aebeb(0x125)]({'unitID':_0x5e19b3,'undoMutations':_0x116dd2,'redoMutations':_0x15daf4}),!0x0):!0x1;}},Z={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x129),'handler':(_0x48e061,_0xf599e8)=>{const _0x30e9c8=_0x1b2777;var _0x264938,_0x171074;let _0x34ba24=_0x1fda72(_0x48e061['get'](_0x38fcfb),_0xf599e8);if(!_0x34ba24)return!0x1;let _0x5bfbc9=_0x48e061[_0x30e9c8(0x10e)](_0x2fc9c5),{unitId:_0x2ca4fb,subUnitId:_0x52fe7e}=_0x34ba24,_0x5c370a=_0x5bfbc9[_0x30e9c8(0x115)](_0x2ca4fb,_0x52fe7e);if(!_0x5c370a)return!0x1;let _0xae6f32=_0x48e061[_0x30e9c8(0x10e)](_0x3f2b28),{shapeId:_0x3a8cd0,flipH:_0x1a0e57,flipV:_0x38f6a6}=_0xf599e8,_0x3c2534=_0xae6f32[_0x30e9c8(0x10a)]({'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0});if(!_0x3c2534)return!0x1;let _0x533831=_0x48e061[_0x30e9c8(0x10e)](K)['getShapeModel'](_0x2ca4fb,_0x52fe7e,_0x3a8cd0);if(!_0x533831)return!0x1;let _0x34beb9=_0x48e061[_0x30e9c8(0x10e)](_0xa3208c),_0x29869d=_0x48e061['get'](_0x17d14d),_0x239276=_0x48e061[_0x30e9c8(0x10e)](_0x51d1bf),_0x4d2a66={..._0x3c2534[_0x30e9c8(0xc6)]};_0x1a0e57!==void 0x0&&(_0x4d2a66[_0x30e9c8(0x10c)]=!_0x4d2a66[_0x30e9c8(0x10c)]),_0x38f6a6!==void 0x0&&(_0x4d2a66[_0x30e9c8(0xd0)]=!_0x4d2a66['flipY']);let _0x4f02a1=_0x2d6220(_0x4d2a66,_0x5c370a),_0x21b8ad=_0x45aabc(_0x4d2a66,_0x5c370a),_0x26c64a=_0x533831[_0x30e9c8(0x10b)](),_0xfdf682=_0x533831[_0x30e9c8(0xa2)](),_0x867b43={'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x4f02a1,'transform':_0x4d2a66,'data':{'shapeType':_0x26c64a,'shapeData':_0xfdf682},'axisAlignSheetTransform':_0x21b8ad,'allowTransform':!0x0},{undo:_0x2743e2,redo:_0x467de5,objects:_0x18e6c9}=_0xae6f32[_0x30e9c8(0x99)]([_0x867b43]),_0x286679=_0x239276[_0x30e9c8(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x2ca4fb,'drawings':[_0x867b43]}}),_0x4a4a7c=[...(_0x264938=_0x286679[_0x30e9c8(0xd5)])==null?[]:_0x264938,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x467de5,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679['redos']],_0x3d4f42=[...(_0x171074=_0x286679['preUndos'])==null?[]:_0x171074,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x2743e2,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679[_0x30e9c8(0xce)]];if(_0xc963bc(_0x26c64a)){let _0x32dd5e=_0x533831[_0x30e9c8(0xb4)]();if(_0x32dd5e){let _0x5a7b3a={..._0x32dd5e};_0x5a7b3a[_0x30e9c8(0xa0)]=void 0x0,_0x5a7b3a['to']=void 0x0,_0x4a4a7c[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x5a7b3a}}}),_0x3d4f42[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x32dd5e}}});}}return _0x16df04(_0x4a4a7c,_0x34beb9)['result']?(_0x29869d[_0x30e9c8(0x125)]({'unitID':_0x2ca4fb,'undoMutations':_0x3d4f42,'redoMutations':_0x4a4a7c}),!0x0):!0x1;}},Q={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xa1),'handler':(_0x4ee665,_0x1d2249)=>{const _0x24c5bf=_0x1b2777;var _0x3aa8c2,_0x26eec3;let _0x182c7d=_0x1fda72(_0x4ee665[_0x24c5bf(0x10e)](_0x38fcfb),_0x1d2249);if(!_0x182c7d)return!0x1;let _0x215e90=_0x4ee665[_0x24c5bf(0x10e)](_0x2fc9c5),{unitId:_0x167f6f,subUnitId:_0x3b9010}=_0x182c7d,_0x528dfd=_0x215e90[_0x24c5bf(0x115)](_0x167f6f,_0x3b9010);if(!_0x528dfd)return!0x1;let _0x4aceed=_0x4ee665[_0x24c5bf(0x10e)](_0x3f2b28),{shapeId:_0x3bf16c,rotate:_0x1d4fc6}=_0x1d2249,_0x3980aa=_0x4aceed[_0x24c5bf(0x10a)]({'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c});if(!_0x3980aa)return!0x1;let _0x4c497c=_0x4ee665[_0x24c5bf(0x10e)](K)[_0x24c5bf(0xb8)](_0x167f6f,_0x3b9010,_0x3bf16c);if(!_0x4c497c)return!0x1;let _0x22a473=_0x4ee665['get'](_0xa3208c),_0x21cfac=_0x4ee665[_0x24c5bf(0x10e)](_0x17d14d),_0x4bfe8f=_0x4ee665['get'](_0x51d1bf),_0x6c7996={..._0x3980aa[_0x24c5bf(0xc6)]};_0x1d4fc6!==void 0x0&&(_0x6c7996['angle']=(_0x6c7996[_0x24c5bf(0xe8)]||0x0)+_0x1d4fc6);let _0x45de82=_0x2d6220(_0x6c7996,_0x528dfd),_0x16888a=_0x45aabc(_0x6c7996,_0x528dfd),_0x384be5=_0x4c497c['getShapeType'](),_0x37868b=_0x4c497c['getShapeData'](),_0xa45a1c={'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c,'drawingType':_0x4d3e69[_0x24c5bf(0x11e)],'sheetTransform':_0x45de82,'transform':_0x6c7996,'data':{'shapeType':_0x384be5,'shapeData':_0x37868b},'axisAlignSheetTransform':_0x16888a,'allowTransform':!0x0},{undo:_0x2b7507,redo:_0x1cb603,objects:_0x1a9b5d}=_0x4aceed[_0x24c5bf(0x99)]([_0xa45a1c]),_0x489e65=_0x4bfe8f[_0x24c5bf(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x167f6f,'drawings':[_0xa45a1c]}}),_0x456693=[...(_0x3aa8c2=_0x489e65[_0x24c5bf(0xd5)])==null?[]:_0x3aa8c2,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x1cb603,'objects':_0x1a9b5d,'type':_0x534eeb[_0x24c5bf(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xd7)]],_0x46358c=[...(_0x26eec3=_0x489e65[_0x24c5bf(0xe1)])==null?[]:_0x26eec3,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x2b7507,'objects':_0x1a9b5d,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xce)]];return _0x16df04(_0x456693,_0x22a473)[_0x24c5bf(0xb2)]?(_0x21cfac[_0x24c5bf(0x125)]({'unitID':_0x167f6f,'undoMutations':_0x46358c,'redoMutations':_0x456693}),!0x0):!0x1;}},te={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x3e0ca0,_0x5ac4b2)=>{const _0x2fbda7=_0x1b2777;var _0x42b59b;let _0x2a5e71=_0x1fda72(_0x3e0ca0['get'](_0x38fcfb),_0x5ac4b2);if(!_0x2a5e71)return!0x1;let {unitId:_0x3bf8a0,subUnitId:_0x467450}=_0x2a5e71,{shapeId:_0x17978c}=_0x5ac4b2,_0x1c2769=_0x3e0ca0[_0x2fbda7(0x10e)](K)[_0x2fbda7(0xb8)](_0x3bf8a0,_0x467450,_0x17978c);if(!_0x1c2769)return!0x1;let _0x16ec8b=_0x1c2769[_0x2fbda7(0x12b)](),_0x54a32a=(_0x42b59b=_0x16ec8b==null?void 0x0:_0x16ec8b['isHorizontal'])==null?!0x0:_0x42b59b,_0x5c4340=!_0x54a32a,_0x2758fa=_0x3e0ca0[_0x2fbda7(0x10e)](_0xa3208c),_0x1899f9=_0x3e0ca0[_0x2fbda7(0x10e)](_0x17d14d),_0x2deddc={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x5c4340}}},_0x82fec3={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x54a32a}}},_0x27e504=[{'id':X['id'],'params':_0x2deddc}],_0x16597c=[{'id':X['id'],'params':_0x82fec3}];return _0x16df04(_0x27e504,_0x2758fa)[_0x2fbda7(0xb2)]?(_0x1899f9['pushUndoRedo']({'unitID':_0x3bf8a0,'undoMutations':_0x16597c,'redoMutations':_0x27e504}),!0x0):!0x1;}},ne={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x128),'handler':(_0x5344ba,_0x246558)=>{const _0x30192c=_0x1b2777;var _0x3a3d48,_0x328601,_0x12121b,_0x4a321f;let _0x1c75d3=_0x1fda72(_0x5344ba[_0x30192c(0x10e)](_0x38fcfb),_0x246558);if(!_0x1c75d3)return!0x1;let _0x15709a=_0x5344ba[_0x30192c(0x10e)](_0x2fc9c5),{unitId:_0x3309bb,subUnitId:_0x1945e1}=_0x1c75d3,_0x18ee9f=_0x15709a[_0x30192c(0x115)](_0x3309bb,_0x1945e1);if(!_0x18ee9f)return!0x1;let _0x87fa3c=_0x5344ba[_0x30192c(0x10e)](_0x3f2b28),{connectorShapeId:_0x240910,width:_0x50fcd7,height:_0x9c1af2,left:_0x4198a0,top:_0x5043af,flipX:_0x22df10,flipY:_0x2d657b,rotation:_0xb858bd,oldAdjustValues:_0x43c30b,newAdjustValues:_0x21f304,oldLineType:_0xb66e6,newLineType:_0x5d3dad,oldRelation:_0x7132be,newRelation:_0x5fb073}=_0x246558,_0x2c4646=_0x87fa3c['getDrawingByParam']({'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910});if(!_0x2c4646)return!0x1;let _0x5591ee=_0x5344ba[_0x30192c(0x10e)](K)[_0x30192c(0xb8)](_0x3309bb,_0x1945e1,_0x240910);if(!_0x5591ee)return!0x1;let _0x521fa3=_0x5344ba[_0x30192c(0x10e)](_0xa3208c),_0x480f7f=_0x5344ba[_0x30192c(0x10e)](_0x17d14d),_0x5085c7=_0x5344ba['get'](_0x51d1bf),_0x4adcee={..._0x2c4646[_0x30192c(0xc6)],'width':_0x50fcd7,'height':_0x9c1af2,'left':_0x4198a0,'top':_0x5043af,'flipX':_0x22df10,'flipY':_0x2d657b,'angle':(_0x3a3d48=_0xb858bd==null?(_0x328601=_0x2c4646[_0x30192c(0xc6)])==null?void 0x0:_0x328601[_0x30192c(0xe8)]:_0xb858bd)==null?0x0:_0x3a3d48},_0x38e6ef=_0x2d6220(_0x4adcee,_0x18ee9f),_0x37787c=_0x45aabc(_0x4adcee,_0x18ee9f),_0x172127=_0x5591ee['getShapeType'](),_0x185478=_0x5591ee[_0x30192c(0xa2)](),_0x2a5b4d={'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x38e6ef,'transform':_0x4adcee,'data':{'shapeType':_0x5d3dad||_0xb66e6||_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x21f304||_0x43c30b||(_0x185478==null?void 0x0:_0x185478['adjustValues']),'relation':_0x5fb073||_0x7132be||(_0x185478==null?void 0x0:_0x185478['relation'])}},'axisAlignSheetTransform':_0x37787c,'allowTransform':!0x0},{undo:_0x266eb1,redo:_0x22cda4,objects:_0x2d79d6}=_0x87fa3c[_0x30192c(0x99)]([_0x2a5b4d]),_0xe78cdb=_0x5085c7['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x3309bb,'drawings':[_0x2a5b4d]}}),_0x55fed2=[...(_0x12121b=_0xe78cdb[_0x30192c(0xd5)])==null?[]:_0x12121b,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x22cda4,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb[_0x30192c(0xd7)],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x5d3dad,'shapeData':{'adjustValues':_0x21f304,'relation':_0x5fb073}}}],_0x15f412=[...(_0x4a321f=_0xe78cdb[_0x30192c(0xe1)])==null?[]:_0x4a321f,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x266eb1,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb['undos'],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x43c30b||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x11f)]),'relation':_0x7132be||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x13a)])}}}];return _0x16df04(_0x55fed2,_0x521fa3)[_0x30192c(0xb2)]?(_0x480f7f[_0x30192c(0x125)]({'unitID':_0x3309bb,'undoMutations':_0x15f412,'redoMutations':_0x55fed2}),!0x0):!0x1;}},re={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xe4),'handler':(_0x13a5e6,_0x50146b)=>{const _0x1fcd11=_0x1b2777;var _0x229e79,_0x2a2be8;let _0x213a4e=_0x1fda72(_0x13a5e6[_0x1fcd11(0x10e)](_0x38fcfb),_0x50146b);if(!_0x213a4e)return!0x1;let _0x2d5074=_0x13a5e6[_0x1fcd11(0x10e)](_0x2fc9c5),{unitId:_0x27196b,subUnitId:_0x3abcb8}=_0x213a4e,_0x467457=_0x2d5074['getSkeleton'](_0x27196b,_0x3abcb8);if(!_0x467457)return!0x1;let _0x43876a=_0x13a5e6[_0x1fcd11(0x10e)](_0x3f2b28),{shapeId:_0x4375dc,width:_0x280057,height:_0xeb5e0e,left:_0xf9503d,top:_0x41249b,flipX:_0x332bb6,flipY:_0x3b11c6,angle:_0x1f0a28,oldAdjustValues:_0x181092,newAdjustValues:_0x594e61,oldLineType:_0x5a8a01,newLineType:_0x2be886}=_0x50146b,_0x42f2f3=_0x43876a[_0x1fcd11(0x10a)]({'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc});if(!_0x42f2f3)return!0x1;let _0x42f827=_0x13a5e6[_0x1fcd11(0x10e)](K)[_0x1fcd11(0xb8)](_0x27196b,_0x3abcb8,_0x4375dc);if(!_0x42f827)return!0x1;let _0x2bbb79=_0x13a5e6[_0x1fcd11(0x10e)](_0xa3208c),_0x4aafee=_0x13a5e6[_0x1fcd11(0x10e)](_0x17d14d),_0x147444=_0x13a5e6[_0x1fcd11(0x10e)](_0x51d1bf),_0x4a8b68={..._0x42f2f3[_0x1fcd11(0xc6)],'width':_0x280057,'height':_0xeb5e0e,'left':_0xf9503d,'top':_0x41249b,'flipX':_0x332bb6,'flipY':_0x3b11c6,'angle':_0x1f0a28},_0xc544d3=_0x2d6220(_0x4a8b68,_0x467457),_0x199394=_0x45aabc(_0x4a8b68,_0x467457),_0x62abc3=_0x42f827[_0x1fcd11(0x10b)](),_0x12129d=_0x42f827['getShapeData'](),_0xd98f5d={'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc,'drawingType':_0x4d3e69[_0x1fcd11(0x11e)],'sheetTransform':_0xc544d3,'transform':_0x4a8b68,'data':{'shapeType':_0x2be886||_0x5a8a01||_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x594e61||_0x181092||(_0x12129d==null?void 0x0:_0x12129d[_0x1fcd11(0x11f)])}},'axisAlignSheetTransform':_0x199394,'allowTransform':!0x0},{undo:_0x2d42cc,redo:_0x394950,objects:_0x37adc1}=_0x43876a[_0x1fcd11(0x99)]([_0xd98f5d]),_0x552d28=_0x147444[_0x1fcd11(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x27196b,'drawings':[_0xd98f5d]}}),_0x2557fe=[...(_0x229e79=_0x552d28['preRedos'])==null?[]:_0x229e79,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x394950,'objects':_0x37adc1,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xd7)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x2be886,'shapeData':{'adjustValues':_0x594e61}}}],_0x2a9c33=[...(_0x2a2be8=_0x552d28[_0x1fcd11(0xe1)])==null?[]:_0x2a2be8,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x2d42cc,'objects':_0x37adc1,'type':_0x534eeb[_0x1fcd11(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xce)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x181092||(_0x12129d==null?void 0x0:_0x12129d['adjustValues'])}}}];return _0x16df04(_0x2557fe,_0x2bbb79)[_0x1fcd11(0xb2)]?(_0x4aafee[_0x1fcd11(0x125)]({'unitID':_0x27196b,'undoMutations':_0x2a9c33,'redoMutations':_0x2557fe}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x20977a,_0x3973ef)=>{const _0x401cb6=_0x1b2777;let {unitId:_0x2c9ef0,subUnitId:_0x434f3f,shapeType:_0x48ff2c,shapeId:_0x42bbe7,shapeData:_0x5d9185}=_0x3973ef,_0x155f2e=_0x20977a['get'](K)[_0x401cb6(0xb8)](_0x2c9ef0,_0x434f3f,_0x42bbe7);return _0x155f2e&&(_0x155f2e[_0x401cb6(0x105)](_0x48ff2c),_0x5d9185&&(_0x155f2e==null||_0x155f2e[_0x401cb6(0x11d)](_0x5d9185))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xc4)],'handler':(_0x47c15e,_0x16a230)=>{const _0x3efacb=_0x1b2777;if(!_0x16a230)return!0x1;let _0xd51bea=_0x47c15e['get'](_0xa3208c),_0x5f19ec=_0x47c15e['get'](K),_0x3b4f0a=_0x47c15e['get'](_0x17d14d),_0x16a1a4=[],_0x5d5bc9=[],{unitId:_0x1e8b93,subUnitId:_0x31a359,shapeId:_0xddb8de,shapeType:_0x544bbd,shapeData:_0x39eb48}=_0x16a230,_0x34e07b=_0x5f19ec[_0x3efacb(0xb8)](_0x1e8b93,_0x31a359,_0xddb8de);if(_0x34e07b){let _0x41c422=_0x34e07b[_0x3efacb(0x10b)](),_0x22a1d3=Object[_0x3efacb(0xc9)]({},_0x34e07b[_0x3efacb(0xa2)]()),_0x418a5b={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x544bbd,'shapeData':_0x39eb48},_0x4d6efa={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x41c422,'shapeData':_0x22a1d3};return _0x16a1a4['push']({'id':$['id'],'params':_0x418a5b}),_0x5d5bc9['push']({'id':$['id'],'params':_0x4d6efa}),_0x16a1a4['every'](_0x1713f9=>_0xd51bea[_0x3efacb(0x106)](_0x1713f9['id'],_0x1713f9[_0x3efacb(0xf6)]))&&_0x3b4f0a[_0x3efacb(0x125)]({'unitID':_0x1e8b93,'redoMutations':[..._0x16a1a4],'undoMutations':[..._0x5d5bc9]}),!0x0;}return!0x1;}};var ae=_0x1b2777(0x121),oe=_0x1b2777(0xab);const se={};let ce=class extends _0x543ffa{constructor(_0x511283,_0x5c10d6,_0x3489a2,_0x404e4b,_0x4fff45){const _0x122cf4=_0x1b2777;super(),this[_0x122cf4(0xd3)]=_0x511283,this['_sheetInterceptorService']=_0x5c10d6,this[_0x122cf4(0x107)]=_0x3489a2,this[_0x122cf4(0x12e)]=_0x404e4b,this[_0x122cf4(0xa6)]=_0x4fff45,this[_0x122cf4(0x136)](),this[_0x122cf4(0xd9)]();}[_0x1b2777(0x136)](){const _0x3e760e=_0x1b2777;[Y,ee,Z,Q,te,ne,re,q,J,$,X]['forEach'](_0x2c8b59=>this[_0x3e760e(0xae)](this['_commandService'][_0x3e760e(0xbc)](_0x2c8b59)));}[_0x1b2777(0xd9)](){const _0x3a0b28=_0x1b2777;this['disposeWithMe'](this[_0x3a0b28(0xa8)][_0x3a0b28(0x120)]({'getMutations':_0x1cd38b=>{const _0x515113=_0x3a0b28;if(_0x1cd38b['id']===_0x36289e['id']){let {drawings:_0x345653}=_0x1cd38b[_0x515113(0xf6)],_0x2bf523=_0x345653[_0x515113(0xc7)](_0x38638e=>_0x38638e[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x2bf523[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4d6cf5=[],_0x2571e1=[];return _0x2bf523[_0x515113(0xa4)](_0x2a908d=>{const _0x30770b=_0x515113;let {unitId:_0x4cb35d,subUnitId:_0x23ad55,drawingId:_0x229661}=_0x2a908d,_0x1f5098=this['_sheetsShapeService'][_0x30770b(0xb8)](_0x4cb35d,_0x23ad55,_0x229661);if(!_0x1f5098)throw TypeError(_0x30770b(0xd4)+_0x1f5098);_0x4d6cf5['push']({'id':J['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661}}),_0x2571e1[_0x30770b(0xb7)]({'id':q['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661,'shapeType':_0x1f5098[_0x30770b(0x10b)](),'shapeData':_0x1f5098[_0x30770b(0xa2)]()}});let _0x10dd64=this[_0x30770b(0x12e)]['getBasicShapeRelation'](_0x4cb35d,_0x23ad55,_0x229661);if(_0x10dd64)for(let _0x373799 of _0x10dd64){let _0x464049=_0x373799[_0x30770b(0x12d)],_0x49a385=_0x373799[_0x30770b(0xbd)],_0x339cb0=_0x49a385?{'from':void 0x0}:{'to':void 0x0},_0x25a640=_0x49a385?{'from':{'shapeId':_0x373799['shapeId'],'cxnIndex':_0x373799[_0x30770b(0x116)]}}:{'to':{'shapeId':_0x373799[_0x30770b(0x102)],'cxnIndex':_0x373799[_0x30770b(0x116)]}};_0x4d6cf5['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x339cb0}}}),_0x2571e1['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x25a640}}});}}),{'preRedos':_0x4d6cf5,'redos':[],'preUndos':[],'undos':_0x2571e1};}if(_0x1cd38b['id']===_0x6aec62['id']){let {drawings:_0x52c0a6}=_0x1cd38b[_0x515113(0xf6)],_0x220de4=_0x52c0a6[_0x515113(0xc7)](_0x2a7185=>_0x2a7185[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x220de4[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3866ee=[],_0x19db35=[];for(let _0x30aad0 of _0x220de4){let {unitId:_0x37823b,subUnitId:_0x1bbdc8,drawingId:_0x360609,transform:_0x139aa8}=_0x30aad0;if(!_0x37823b||!_0x1bbdc8||!_0x360609||!_0x139aa8)continue;let _0x25a2a0=this[_0x515113(0x12e)][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x360609);if(!_0x25a2a0)throw TypeError(_0x515113(0xd4)+_0x25a2a0);if(_0xc963bc(_0x25a2a0[_0x515113(0x10b)]())){let _0x5e00fe=this[_0x515113(0x12e)][_0x515113(0xff)](_0x37823b,_0x1bbdc8,_0x360609);_0x5e00fe&&(_0x3866ee[_0x515113(0xb7)]({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x19db35['push']({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':_0x5e00fe}}}));}else{let _0x137bdf=this['_sheetsShapeService'][_0x515113(0x119)](_0x37823b,_0x1bbdc8,_0x360609);if(_0x137bdf&&_0x137bdf[_0x515113(0xec)]>0x0)for(let _0x106617 of _0x137bdf){let _0x5af678=_0x106617[_0x515113(0x12d)],_0x251609=_0x106617[_0x515113(0xbd)],_0x1f995c=this['_sheetsShapeService'][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x5af678);if(!_0x1f995c)continue;let _0x258b59=_0x1f995c[_0x515113(0xda)](),_0x24d385=_0x1f995c[_0x515113(0x138)]();_0x258b59&&_0x24d385?this[_0x515113(0xcb)](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x258b59,_0x24d385,_0x3866ee,_0x19db35,_0x360609,_0x139aa8):this['_addLineFollowShapeUpdates'](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x251609?_0x258b59:_0x24d385,_0x251609,_0x3866ee,_0x19db35,_0x360609,_0x139aa8);}}}return{'preRedos':[],'redos':_0x3866ee,'preUndos':_0x19db35,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1b2777(0x111)](_0x110c37,_0x36f00f,_0x33e67b,_0x4c63e3,_0x3832f3){const _0x1ad18b=_0x1b2777;if(!_0x36f00f||!_0x33e67b)return null;let {shapeId:_0x5453af,cxnIndex:_0x3d58b1}=_0x110c37,_0x3e50af=this[_0x1ad18b(0x12e)][_0x1ad18b(0xb8)](_0x36f00f,_0x33e67b,_0x5453af);if(!_0x3e50af)return null;let _0x32f17a=this['_drawingManagerService'][_0x1ad18b(0x10a)]({'unitId':_0x36f00f,'subUnitId':_0x33e67b,'drawingId':_0x5453af});if(!(_0x32f17a!=null&&_0x32f17a['transform']))return null;let {left:_0x3442a=0x0,top:_0x427335=0x0,width:_0x59faab=0x0,height:_0x408d6e=0x0,flipX:_0x53e966=!0x1,flipY:_0x476111=!0x1,angle:_0x54f57a}=_0x32f17a[_0x1ad18b(0xc6)];if(_0x3832f3&&_0x4c63e3===_0x5453af){var _0x1f0cd2,_0x451a25,_0x40ce47,_0x5ac989,_0x23140a,_0x17fb87,_0x466ad1;_0x3442a=(_0x1f0cd2=_0x3832f3['left'])==null?_0x3442a:_0x1f0cd2,_0x427335=(_0x451a25=_0x3832f3[_0x1ad18b(0xd8)])==null?_0x427335:_0x451a25,_0x59faab=(_0x40ce47=_0x3832f3[_0x1ad18b(0x104)])==null?_0x59faab:_0x40ce47,_0x408d6e=(_0x5ac989=_0x3832f3[_0x1ad18b(0x135)])==null?_0x408d6e:_0x5ac989,_0x53e966=(_0x23140a=_0x3832f3[_0x1ad18b(0x10c)])==null?_0x53e966:_0x23140a,_0x476111=(_0x17fb87=_0x3832f3[_0x1ad18b(0xd0)])==null?_0x476111:_0x17fb87,_0x54f57a=(_0x466ad1=_0x3832f3['angle'])==null?_0x54f57a:_0x466ad1;}_0x3e50af[_0x1ad18b(0xe5)]({'width':_0x59faab,'height':_0x408d6e});let _0x4b9367=_0x3e50af['getConnectionSiteList']()[_0x1ad18b(0xd2)](_0x5f5702=>_0x5f5702['index']===_0x3d58b1);if(!_0x4b9367)return null;let _0x3d1d0c=_0x53e966?_0x59faab-_0x4b9367['x']:_0x4b9367['x'],_0x3f1d56=_0x476111?_0x408d6e-_0x4b9367['y']:_0x4b9367['y'];if(_0x54f57a!==0x0&&_0x54f57a!=null){let _0x276b5e=_0x54f57a*Math['PI']/0xb4,_0x26b722=Math[_0x1ad18b(0x9e)](_0x276b5e),_0x2e3305=Math[_0x1ad18b(0x109)](_0x276b5e),_0x270bd4=_0x59faab/0x2,_0x1b6710=_0x408d6e/0x2,_0x3af8da=_0x3d1d0c-_0x270bd4,_0x2faf0d=_0x3f1d56-_0x1b6710;_0x3d1d0c=_0x270bd4+_0x3af8da*_0x26b722-_0x2faf0d*_0x2e3305,_0x3f1d56=_0x1b6710+_0x3af8da*_0x2e3305+_0x2faf0d*_0x26b722;}_0x3d1d0c+=_0x3442a,_0x3f1d56+=_0x427335;let _0x3c4914=_0x4b9367['ang']/0xea60;_0x53e966&&(_0x3c4914=0xb4-_0x3c4914),_0x476111&&(_0x3c4914=-_0x3c4914),_0x3c4914+=_0x54f57a||0x0,_0x3c4914=(_0x3c4914%0x168+0x168)%0x168;let _0x4df82a=_0x40b288({'left':_0x3442a,'top':_0x427335,'width':_0x59faab,'height':_0x408d6e},_0x54f57a||0x0);return{'point':{'x':_0x3d1d0c,'y':_0x3f1d56},'angle':_0x3c4914,'bounds':_0x4df82a};}[_0x1b2777(0xcb)](_0x12a202,_0x198e92,_0x586d87,_0x38579f,_0x49141c,_0x5c8c89,_0x185dd1,_0x15e697,_0x5b8a24,_0xd74126){const _0x5edce5=_0x1b2777;let _0x594a81=this[_0x5edce5(0x107)][_0x5edce5(0x115)](_0x12a202,_0x198e92);if(!_0x594a81)return;let _0x4612a5=_0x38579f[_0x5edce5(0xb4)](),_0x4f7d3c=_0x38579f[_0x5edce5(0xfe)](),_0x1f8659={},_0x365c5e={};_0x4f7d3c[_0x5edce5(0xa4)](_0x2ad86d=>{const _0x4ef58b=_0x5edce5;let _0xe1cb2e=_0x38579f[_0x4ef58b(0xd1)](_0x2ad86d);_0x365c5e[_0x2ad86d]=_0xe1cb2e==null?0x0:_0xe1cb2e;});let _0x5aa757=this[_0x5edce5(0x111)](_0x49141c,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126),_0x297962=this['_getConnectPointInfo'](_0x5c8c89,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126);if(_0x5aa757&&_0x297962){let _0x384a55=_0x38579f[_0x5edce5(0x10b)](),_0x289467=_0x4cc214(_0x5aa757,_0x297962,_0x384a55),_0x4059cf=_0x384a55;if(_0x289467){let _0xe5e3af=_0xc69524(_0x289467,_0x38579f[_0x5edce5(0x10b)]()),_0x3c0888=this[_0x5edce5(0xa6)][_0x5edce5(0x127)](_0x12a202,_0x198e92);if(_0x3c0888&&_0x3c0888[_0x586d87]){let _0x65ccf6=_0x3c0888[_0x586d87];_0x4059cf=_0xe5e3af[_0x5edce5(0xdb)];for(let [_0x3a9e12,_0x5b5301]of Object[_0x5edce5(0xc3)](_0xe5e3af[_0x5edce5(0x11f)]))_0x1f8659[_0x3a9e12]=_0x5b5301;let _0x283c23={..._0x65ccf6[_0x5edce5(0xc6)],'width':_0xe5e3af['worldRect'][_0x5edce5(0x104)],'height':_0xe5e3af['worldRect'][_0x5edce5(0x135)],'left':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0x132)],'top':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0xd8)],'flipX':_0xe5e3af['worldRect'][_0x5edce5(0x10c)],'flipY':_0xe5e3af['worldRect'][_0x5edce5(0xd0)],'angle':_0xe5e3af[_0x5edce5(0xe2)]},_0x39a2c0=_0x2d6220(_0x283c23,_0x594a81),_0x5bde46=_0x45aabc(_0x283c23,_0x594a81),_0x296621={'unitId':_0x12a202,'subUnitId':_0x198e92,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'drawingId':_0x586d87,'transform':_0x283c23,'sheetTransform':_0x39a2c0,'axisAlignSheetTransform':_0x5bde46},{unitId:_0x4c9316,subUnitId:_0x3d4148,undo:_0x2b9d07,redo:_0x112041,objects:_0x292cfa}=this[_0x5edce5(0xa6)]['getBatchUpdateOp']([_0x296621]);_0x185dd1[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x112041,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}}),_0x15e697[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x2b9d07,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}});}_0x38579f[_0x5edce5(0xf4)]();}_0x185dd1[_0x5edce5(0xb7)]({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x4059cf,'shapeData':{'adjustValues':_0x1f8659,'relation':_0x4612a5}}}),_0x15e697['push']({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x384a55,'shapeData':{'adjustValues':_0x365c5e,'relation':_0x4612a5}}});}}[_0x1b2777(0x137)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x4c6ed9,_0x4452aa,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da){const _0x2d7ba0=_0x1b2777;var _0x3f10a4;if(!_0x4c6ed9)return;let _0x1ceda0=this['_sheetSkeletonService'][_0x2d7ba0(0x115)](_0x3aa200,_0x587d7e);if(!_0x1ceda0)return;let _0x325687=(_0x3f10a4=this['_drawingManagerService'][_0x2d7ba0(0x10a)]({'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingId':_0x538ad8}))==null?void 0x0:_0x3f10a4[_0x2d7ba0(0xc6)];if(!_0x325687)return;let _0x3340b6=_0x325687[_0x2d7ba0(0x132)]!==_0x5340da['left']||_0x325687[_0x2d7ba0(0xd8)]!==_0x5340da['top'],_0x10dddc=_0x325687[_0x2d7ba0(0x104)]!==_0x5340da[_0x2d7ba0(0x104)]||_0x325687[_0x2d7ba0(0x135)]!==_0x5340da[_0x2d7ba0(0x135)],_0x19573b=_0x325687[_0x2d7ba0(0x10c)]!==_0x5340da[_0x2d7ba0(0x10c)]||_0x325687['flipY']!==_0x5340da[_0x2d7ba0(0xd0)],_0x1b856e=_0x325687[_0x2d7ba0(0xe8)]!==_0x5340da['angle'];if(_0x3340b6&&!_0x10dddc&&!_0x19573b&&!_0x1b856e){var _0x493f59,_0x2306d6,_0x3b96e9,_0x49ce6d;let _0x2d847c=((_0x493f59=_0x5340da[_0x2d7ba0(0x132)])==null?0x0:_0x493f59)-((_0x2306d6=_0x325687[_0x2d7ba0(0x132)])==null?0x0:_0x2306d6),_0x401d65=((_0x3b96e9=_0x5340da[_0x2d7ba0(0xd8)])==null?0x0:_0x3b96e9)-((_0x49ce6d=_0x325687[_0x2d7ba0(0xd8)])==null?0x0:_0x49ce6d),_0xcf994e=this[_0x2d7ba0(0xa6)][_0x2d7ba0(0x127)](_0x3aa200,_0x587d7e);if(_0xcf994e&&_0xcf994e[_0x4144f7]){var _0x38b077,_0x4e0711,_0x556193,_0x2a9f3a;let _0x4c4b43=_0xcf994e[_0x4144f7],_0x5e7afc={..._0x4c4b43['transform'],'left':((_0x38b077=(_0x4e0711=_0x4c4b43['transform'])==null?void 0x0:_0x4e0711['left'])==null?0x0:_0x38b077)+_0x2d847c,'top':((_0x556193=(_0x2a9f3a=_0x4c4b43[_0x2d7ba0(0xc6)])==null?void 0x0:_0x2a9f3a['top'])==null?0x0:_0x556193)+_0x401d65},_0x2ea5f8=_0x2d6220(_0x5e7afc,_0x1ceda0),_0x48c653=_0x45aabc(_0x5e7afc,_0x1ceda0),_0x285aa0={'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingType':_0x4d3e69[_0x2d7ba0(0x11e)],'drawingId':_0x4144f7,'transform':_0x5e7afc,'sheetTransform':_0x2ea5f8,'axisAlignSheetTransform':_0x48c653},{unitId:_0x30c7b3,subUnitId:_0x948afe,undo:_0x17153e,redo:_0x20264b,objects:_0x59dbf6}=this['_drawingManagerService'][_0x2d7ba0(0x99)]([_0x285aa0]);_0x34c43b['push']({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x20264b,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}}),_0x5232bf[_0x2d7ba0(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x17153e,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}});}}else{let _0x2b0d6f=_0x1c0dff[_0x2d7ba0(0xda)](),_0x493218=_0x1c0dff[_0x2d7ba0(0x138)]();this[_0x2d7ba0(0xcb)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x2b0d6f,_0x493218,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da);}}};ce=G([W(0x0,_0xa3208c),W(0x1,_0x19216a(_0x51d1bf)),W(0x2,_0x19216a(_0x2fc9c5)),W(0x3,_0x19216a(K)),W(0x4,_0x19216a(_0x5b1dc7))],ce);let le=class extends _0x11a17d{constructor(_0x139a9b=se,_0x52b822,_0x18f9fb,_0xffa4e0){const _0x49c0ef=_0x1b2777;super(),this['_config']=_0x139a9b,this[_0x49c0ef(0x133)]=_0x52b822,this[_0x49c0ef(0xd3)]=_0x18f9fb,this['_configService']=_0xffa4e0;let {..._0x37d887}=_0x14640d({},se,this['_config']);this[_0x49c0ef(0xf0)][_0x49c0ef(0xe6)]('sheets-shape.config',_0x37d887);}[_0x1b2777(0xca)](){const _0x5e6648=_0x1b2777;let _0x11dc81=this[_0x5e6648(0x133)];[[U],[K],[ce]][_0x5e6648(0xa4)](_0x110116=>_0x11dc81['add'](_0x110116)),_0x29f0fc(_0x11dc81,[[K],[ce]]);}};H(le,_0x1b2777(0xfd),_0x37476a[_0x1b2777(0x11b)]),H(le,'pluginName',_0x1b2777(0xfa)),H(le,_0x1b2777(0x131),ae),H(le,_0x1b2777(0xac),oe),le=G([_0x2c7cf6(_0x17d981),W(0x1,_0x19216a(_0x180637)),W(0x2,_0xa3208c),W(0x3,_0x1802b3)],le);function _0x5220(){const _0x4fb7a2=['removeShape','getShapeRelation','position','_ensureShapeModelManager','push','getShapeModel','3iJNeah','set','resizeEnabled','registerCommand','isFrom','call','getId','204uZQgjg','shapeName','addShape','entries','COMMAND','worldRect','transform','filter','sheet.command.set-shape-drawing-data','assign','onStarting','_addLineRerouteUpdates','getShapeDisplayNames','rotateEnabled','undos','sheet.mutation.update-shape-data','flipY','getAdjustValueByName','find','_commandService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','preRedos','INSERT','redos','top','_initCommandInterceptor','getStartConnectInfo','lineType','hasShape','string','borderEnabled','values','isLineShape','preUndos','rotation','_linesIds','sheet.command.update-line-shape-resize','updateContext','setConfig','UPDATE','angle','sheet.mutation.remove-shape','getCellWithCoordByIndex','toJSON','length','fromJSON','getOwnPropertyDescriptor','_disposed','_configService','shapeData','data','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeLinePoints','fill','params','11845287OGCLlc','4756316sfbUym','startY','SHEET_SHAPE_PLUGIN','range','decorate','type','getAdjustNames','getLineShapeRelation','5694540zqocwC','_initSnapshot','shapeId','562FpraEj','width','setShapeType','syncExecuteCommand','_sheetSkeletonService','drawingType','sin','getDrawingByParam','getShapeType','flipX','onCommandExecute','get','delete','10nAzoIZ','_getConnectPointInfo','_resourcesManagerService','_shapes','clear','getSkeleton','cxnIndex','getName','object','getBasicShapeRelation','ensureSkeleton','UNIVER_SHEET','constructor','setShapeData','DRAWING_SHAPE','adjustValues','interceptCommand','@univerjs-pro/sheets-shape','dispose','5358WGvjLE','getCellIndexAndOffsetByPosition','pushUndoRedo','getShapeTypeById','getDrawingData','sheet.command.update-connector-relation','sheet.command.toggle-shape-flip','8023112UAnvuW','getShapeTextData','getShapeDataById','lineShapeId','_sheetsShapeService','insertShape','map','packageName','left','_injector','has','height','_initCommands','_addLineFollowShapeUpdates','getEndConnectInfo','_deserializeShapeForUnit','relation','function','getBatchUpdateOp','sheet.command.insert-shape','3017ItWVgg','47671305XTFKFT','_serializeShapeForUnit','cos','keys','from','sheet.command.set-shape-rotate','getShapeData','prototype','forEach','parse','_drawingManagerService','startX','_sheetInterceptorService','_shapeModelManagerMap','registerPluginResource','1.0.0-alpha.1','version','symbol','disposeWithMe','REMOVE','defineProperty','MUTATION','result'];_0x5220=function(){return _0x4fb7a2;};return _0x5220();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1d7d75=_0x59f6;(function(_0x595d22,_0x436b29){const _0x26bfe5=_0x59f6,_0x274e24=_0x595d22();while(!![]){try{const _0x872eee=parseInt(_0x26bfe5(0x1ab))/0x1*(-parseInt(_0x26bfe5(0x1a5))/0x2)+-parseInt(_0x26bfe5(0x1ea))/0x3*(parseInt(_0x26bfe5(0x1ef))/0x4)+parseInt(_0x26bfe5(0x170))/0x5*(parseInt(_0x26bfe5(0x1df))/0x6)+parseInt(_0x26bfe5(0x18d))/0x7+parseInt(_0x26bfe5(0x187))/0x8*(parseInt(_0x26bfe5(0x1e0))/0x9)+parseInt(_0x26bfe5(0x1b9))/0xa*(-parseInt(_0x26bfe5(0x1f0))/0xb)+parseInt(_0x26bfe5(0x17f))/0xc*(parseInt(_0x26bfe5(0x190))/0xd);if(_0x872eee===_0x436b29)break;else _0x274e24['push'](_0x274e24['shift']());}catch(_0xf17df5){_0x274e24['push'](_0x274e24['shift']());}}}(_0x3c76,0x878fd));import{ConnectorCoordinateTransform as _0x493e08,ShapeArrowSizeEnum as _0x2e9aa2,ShapeArrowTypeEnum as _0x5c3a0e,ShapeFillEnum as _0x47edb2,ShapeGradientTypeEnum as _0x424005,ShapeLineCapEnum as _0x1093eb,ShapeLineDashEnum as _0x4d9a3c,ShapeLineJoinEnum as _0x1c6191,ShapeLineTypeEnum as _0x1ae19f,ShapeTypeEnum as _0x398793,computeConnectorRouteLayout as _0x3001b1,getBasicShapeRotateBound as _0x1e3140,isConnectorShape as _0x36c8a8,routeConnectorLineShape as _0x1b19b5}from'@univerjs-pro/engine-shape';import{FEnum as _0x255646}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x5e205e,DEFAULT_SHAPE_WIDTH as _0x1968ac,InsertShapeCommand as _0x345c31,SetShapeDrawingDataCommand as _0x34acb3,SheetsShapeService as _0x268c64,UpdateConnectorRelationCommand as _0xe77cab}from'@univerjs-pro/sheets-shape';function _0x3c76(){const _0x317a0f=['executeCommand','extend','function','32YTJxQH','connectShapes','drawId','setShapeSolidFill','transform','dashType','7263060eqMDvT','getPosition','setStrokeLineDashType','1634035gexqfa','shapeData','getAdjustNames','setStartArrowType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','flipX','setStrokeLineJoinType','ShapeArrowSizeEnum','updateShape','startArrow','Skeleton\x20for\x20unitId\x20','entries','_injector','gradientStops','unitId','getEndConnectInfo','subUnitId','connectionSiteIndex','lineType','string','get','2ABqHHn','capType','size','getStartConnectInfo','left','setStrokeLineType','919991cOMRwM','ShapeFillEnum','parse','fillType','length','shape','isLineShape','adjustValues','setShapeData','rotation','find','_commandService','top','ensureSkeleton','10tcphDn','setStrokeWidth','localToWorld','getUnitId','updateContext','stroke','getDrawingPoints','flipY','shapeId','color','lineJoinType','getAdjustPoints','worldRect',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','ShapeArrowTypeEnum','ang','relation','prototype','push','getWorkbook','getShapeType','_resolveExistingOrFreeEndpoint','removeShape','\x20and\x20subUnitId\x20','DRAWING_SHAPE','setShapeType','getShapeData','setEndArrowType','NoFill','getShapeId','height','stringify','build','getDrawingByParam','call','from','insertShape','cos','2766558FdegMv','100917RVuoeM','shapeType','setStrokeColor','symbol','ShapeLineJoinEnum','ShapeTypeEnum','abs','point','fill','getAdjustValueByName','3006405AFhnfQ','keys','getShapeRelation','ShapeLineTypeEnum','gradientType','4xXDNyx','8625991EGZagj','getShapes','setWidth','object','_resolveEndpoints','ShapeLineCapEnum','10enziwt','cxnIndex','\x20not\x20found','drawingType','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','defineProperty','_preloadShapeProperties','getSheetId','getDrawingData','endArrow','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','iterator','opacity','getConnectorLinePoints','setPosition','120KgURkf','width','getShapeModel','setEndArrowSize','getConnectionSiteList'];_0x3c76=function(){return _0x317a0f;};return _0x3c76();}import{DrawingTypeEnum as _0x4cbea9,generateRandomId as _0x3103b4}from'@univerjs/core';function _0x59f6(_0x11b181,_0x3baf89){_0x11b181=_0x11b181-0x16f;const _0x3c7637=_0x3c76();let _0x59f6a8=_0x3c7637[_0x11b181];return _0x59f6a8;}import{IDrawingManagerService as _0x373af0}from'@univerjs/drawing';import{SheetSkeletonService as _0x66ec26,convertPositionCellToSheetOverGrid as _0xfb9513}from'@univerjs/sheets';import{ISheetDrawingService as _0x25ab1a,RemoveSheetDrawingCommand as _0x29e119}from'@univerjs/sheets-drawing';import{FWorksheet as _0xcea0c1}from'@univerjs/sheets/facade';var k=class extends _0x255646{get[_0x1d7d75(0x1e5)](){return _0x398793;}get[_0x1d7d75(0x1ac)](){return _0x47edb2;}get['ShapeGradientTypeEnum'](){return _0x424005;}get[_0x1d7d75(0x1ed)](){return _0x1ae19f;}get['ShapeLineDashEnum'](){return _0x4d9a3c;}get[_0x1d7d75(0x16f)](){return _0x1093eb;}get[_0x1d7d75(0x1e4)](){return _0x1c6191;}get[_0x1d7d75(0x1c7)](){return _0x5c3a0e;}get[_0x1d7d75(0x197)](){return _0x2e9aa2;}};_0x255646[_0x1d7d75(0x185)](k);function A(_0x4d88b9){'@babel/helpers - typeof';const _0x22db8f=_0x1d7d75;return A=typeof Symbol==_0x22db8f(0x186)&&typeof Symbol[_0x22db8f(0x17b)]==_0x22db8f(0x1e3)?function(_0x54fa45){return typeof _0x54fa45;}:function(_0x4080d7){const _0x348f32=_0x22db8f;return _0x4080d7&&typeof Symbol==_0x348f32(0x186)&&_0x4080d7['constructor']===Symbol&&_0x4080d7!==Symbol[_0x348f32(0x1ca)]?_0x348f32(0x1e3):typeof _0x4080d7;},A(_0x4d88b9);}function j(_0x3b7d48,_0x414297){const _0x26e391=_0x1d7d75;if(A(_0x3b7d48)!=_0x26e391(0x1f3)||!_0x3b7d48)return _0x3b7d48;var _0x966af9=_0x3b7d48[Symbol['toPrimitive']];if(_0x966af9!==void 0x0){var _0x17279f=_0x966af9[_0x26e391(0x1db)](_0x3b7d48,_0x414297||'default');if(A(_0x17279f)!=_0x26e391(0x1f3))return _0x17279f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x414297==='string'?String:Number)(_0x3b7d48);}function M(_0x23c7b1){const _0x3c47e1=_0x1d7d75;var _0x236a95=j(_0x23c7b1,_0x3c47e1(0x1a3));return A(_0x236a95)==_0x3c47e1(0x1e3)?_0x236a95:_0x236a95+'';}function N(_0x563f92,_0x4ea173,_0x36a88f){const _0x18835a=_0x1d7d75;return(_0x4ea173=M(_0x4ea173))in _0x563f92?Object[_0x18835a(0x175)](_0x563f92,_0x4ea173,{'value':_0x36a88f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x563f92[_0x4ea173]=_0x36a88f,_0x563f92;}var P=class{constructor(_0x33a62e,_0x174c15,_0x59bc8b,_0xa4d574){const _0x150a5e=_0x1d7d75;N(this,_0x150a5e(0x19e),void 0x0),N(this,_0x150a5e(0x1a0),void 0x0),N(this,_0x150a5e(0x189),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x150a5e(0x180),_0x1968ac),N(this,_0x150a5e(0x1d7),_0x5e205e),N(this,_0x150a5e(0x1e1),void 0x0),N(this,_0x150a5e(0x191),{}),N(this,'_injector',void 0x0),this[_0x150a5e(0x19e)]=_0x33a62e,this[_0x150a5e(0x1a0)]=_0x174c15,this[_0x150a5e(0x189)]=_0x59bc8b||_0x3103b4(),this[_0x150a5e(0x19c)]=_0xa4d574;}[_0x1d7d75(0x17e)](_0x35fb01,_0x1a7355,_0x35f095,_0x4a9456){const _0x35e386=_0x1d7d75;let _0x307869=this[_0x35e386(0x19c)][_0x35e386(0x1a4)](_0x66ec26)[_0x35e386(0x1b8)](this[_0x35e386(0x19e)],this[_0x35e386(0x1a0)]);if(!_0x307869)throw Error(_0x35e386(0x19a)+this[_0x35e386(0x19e)]+_0x35e386(0x1d0)+this[_0x35e386(0x1a0)]+_0x35e386(0x172));let {transform:_0x3872ea}=_0xfb9513(this[_0x35e386(0x19e)],this[_0x35e386(0x1a0)],{'row':_0x35fb01,'column':_0x1a7355,'rowOffset':_0x35f095,'columnOffset':_0x4a9456},0x1,0x1,_0x307869);return this['x']=_0x3872ea[_0x35e386(0x1a9)],this['y']=_0x3872ea['top'],this;}['setAbsolutePosition'](_0x36d005,_0x3076fc){return this['x']=_0x36d005,this['y']=_0x3076fc,this;}[_0x1d7d75(0x1d2)](_0x4b552f){return this['shapeType']=_0x4b552f,this;}[_0x1d7d75(0x1b3)](_0x37864a){const _0x989721=_0x1d7d75;return _0x37864a[_0x989721(0x1e1)]&&this[_0x989721(0x1d2)](_0x37864a['shapeType']),this[_0x989721(0x191)]={..._0x37864a},this;}[_0x1d7d75(0x18a)](_0x552646,_0x5d9986){const _0x191825=_0x1d7d75;return this[_0x191825(0x191)][_0x191825(0x1e8)]||(this[_0x191825(0x191)][_0x191825(0x1e8)]={}),this[_0x191825(0x191)]['fill'][_0x191825(0x1ae)]=_0x47edb2['SolidFill'],_0x552646!==void 0x0&&(this['shapeData'][_0x191825(0x1e8)][_0x191825(0x1c2)]=_0x552646),_0x5d9986!==void 0x0&&(this[_0x191825(0x191)][_0x191825(0x1e8)][_0x191825(0x17c)]=_0x5d9986),this;}['setShapeGradientFill'](_0x5f309c,_0x3e55de,_0x309537){const _0x1366c8=_0x1d7d75;if(_0x3e55de===void 0x0||_0x3e55de[_0x1366c8(0x1af)]===0x0)throw Error(_0x1366c8(0x17a));return this[_0x1366c8(0x191)]['fill']||(this['shapeData'][_0x1366c8(0x1e8)]={}),this[_0x1366c8(0x191)][_0x1366c8(0x1e8)][_0x1366c8(0x19d)]=_0x3e55de,this[_0x1366c8(0x191)][_0x1366c8(0x1e8)][_0x1366c8(0x1ae)]=_0x47edb2['GradientFill'],this[_0x1366c8(0x191)]['fill'][_0x1366c8(0x1ee)]=_0x5f309c,_0x309537!==void 0x0&&(this[_0x1366c8(0x191)][_0x1366c8(0x1e8)]['gradientAngle']=_0x309537),this;}['setNoneFill'](){const _0x28027f=_0x1d7d75;return this[_0x28027f(0x191)][_0x28027f(0x1e8)]={'fillType':_0x47edb2[_0x28027f(0x1d5)]},this;}[_0x1d7d75(0x1e2)](_0x293b2d){const _0x453635=_0x1d7d75;return this[_0x453635(0x191)][_0x453635(0x1be)]||(this[_0x453635(0x191)][_0x453635(0x1be)]={}),this[_0x453635(0x191)][_0x453635(0x1be)][_0x453635(0x1c2)]=_0x293b2d,this;}[_0x1d7d75(0x1ba)](_0x431459){const _0x2eb88a=_0x1d7d75;return this[_0x2eb88a(0x191)][_0x2eb88a(0x1be)]||(this[_0x2eb88a(0x191)][_0x2eb88a(0x1be)]={}),this[_0x2eb88a(0x191)]['stroke']['width']=_0x431459,this;}[_0x1d7d75(0x18f)](_0x3c5128){const _0x5d47b4=_0x1d7d75;return this[_0x5d47b4(0x191)][_0x5d47b4(0x1be)]||(this[_0x5d47b4(0x191)][_0x5d47b4(0x1be)]={}),this[_0x5d47b4(0x191)]['stroke'][_0x5d47b4(0x18c)]=_0x3c5128,this;}[_0x1d7d75(0x196)](_0x4e048f){const _0x21b438=_0x1d7d75;return this[_0x21b438(0x191)][_0x21b438(0x1be)]||(this[_0x21b438(0x191)]['stroke']={}),this[_0x21b438(0x191)][_0x21b438(0x1be)][_0x21b438(0x1c3)]=_0x4e048f,this;}['setStrokeLineCapType'](_0x268dca){const _0x3335ce=_0x1d7d75;return this[_0x3335ce(0x191)][_0x3335ce(0x1be)]||(this['shapeData'][_0x3335ce(0x1be)]={}),this['shapeData']['stroke'][_0x3335ce(0x1a6)]=_0x268dca,this;}['setStrokeOpacity'](_0x399a50){const _0x5eeedc=_0x1d7d75;return this[_0x5eeedc(0x191)][_0x5eeedc(0x1be)]||(this['shapeData'][_0x5eeedc(0x1be)]={}),this[_0x5eeedc(0x191)]['stroke'][_0x5eeedc(0x17c)]=_0x399a50,this;}[_0x1d7d75(0x1aa)](_0x460d68){const _0x4b3fc5=_0x1d7d75;return this[_0x4b3fc5(0x191)]['stroke']||(this[_0x4b3fc5(0x191)][_0x4b3fc5(0x1be)]={}),this['shapeData'][_0x4b3fc5(0x1be)]['lineStrokeType']=_0x460d68,this;}[_0x1d7d75(0x1f2)](_0xd5b74){return this['width']=_0xd5b74,this;}['setHeight'](_0x4bef96){const _0x2621ae=_0x1d7d75;return this[_0x2621ae(0x1d7)]=_0x4bef96,this;}[_0x1d7d75(0x1b1)](){const _0x152cc0=_0x1d7d75;let _0x22996f=this[_0x152cc0(0x19c)][_0x152cc0(0x1a4)](_0x268c64)['getShapeModel'](this[_0x152cc0(0x19e)],this[_0x152cc0(0x1a0)],this[_0x152cc0(0x189)]);return _0x22996f?_0x36c8a8(_0x22996f[_0x152cc0(0x1cd)]()):this[_0x152cc0(0x1e1)]?_0x36c8a8(this[_0x152cc0(0x1e1)]):!0x1;}['getConnectionSites'](){const _0x376304=_0x1d7d75;let _0x583594=this[_0x376304(0x19c)][_0x376304(0x1a4)](_0x268c64)[_0x376304(0x181)](this['unitId'],this[_0x376304(0x1a0)],this[_0x376304(0x189)]);if(!_0x583594)return[];let _0x36799f=this['_injector'][_0x376304(0x1a4)](_0x373af0)[_0x376304(0x1da)]({'unitId':this[_0x376304(0x19e)],'subUnitId':this[_0x376304(0x1a0)],'drawingId':this[_0x376304(0x189)]});if(!(_0x36799f!=null&&_0x36799f[_0x376304(0x18b)]))return[];let {width:_0x307102=0x0,height:_0x5d2446=0x0}=_0x36799f['transform'];return _0x583594[_0x376304(0x1bd)]({'width':_0x307102,'height':_0x5d2446}),_0x583594[_0x376304(0x183)]();}[_0x1d7d75(0x1c4)](){const _0x2167fd=_0x1d7d75;let _0x5b44b7=this[_0x2167fd(0x19c)][_0x2167fd(0x1a4)](_0x268c64)[_0x2167fd(0x181)](this[_0x2167fd(0x19e)],this[_0x2167fd(0x1a0)],this[_0x2167fd(0x189)]);if(!_0x5b44b7)return[];let _0x45ce91=this[_0x2167fd(0x19c)]['get'](_0x373af0)[_0x2167fd(0x1da)]({'unitId':this[_0x2167fd(0x19e)],'subUnitId':this['subUnitId'],'drawingId':this[_0x2167fd(0x189)]});if(!(_0x45ce91!=null&&_0x45ce91[_0x2167fd(0x18b)]))return[];let {width:_0x53207c=0x0,height:_0x573aca=0x0}=_0x45ce91['transform'];return _0x5b44b7['updateContext']({'width':_0x53207c,'height':_0x573aca}),_0x5b44b7[_0x2167fd(0x1bf)]();}[_0x1d7d75(0x17d)](){const _0x1a56d1=_0x1d7d75;let _0x12efd9=this['_injector'][_0x1a56d1(0x1a4)](_0x268c64)[_0x1a56d1(0x181)](this[_0x1a56d1(0x19e)],this['subUnitId'],this['drawId']);if(!_0x12efd9||!_0x36c8a8(_0x12efd9[_0x1a56d1(0x1cd)]()))return[];let _0x5c480e=this['_injector'][_0x1a56d1(0x1a4)](_0x373af0)[_0x1a56d1(0x1da)]({'unitId':this[_0x1a56d1(0x19e)],'subUnitId':this[_0x1a56d1(0x1a0)],'drawingId':this[_0x1a56d1(0x189)]});if(!(_0x5c480e!=null&&_0x5c480e[_0x1a56d1(0x18b)]))return[];let {width:_0x281765=0x0,height:_0x3bce15=0x0}=_0x5c480e[_0x1a56d1(0x18b)];return _0x12efd9[_0x1a56d1(0x1bd)]({'width':_0x281765,'height':_0x3bce15}),_0x12efd9[_0x1a56d1(0x17d)]();}[_0x1d7d75(0x1a8)](){const _0x29e491=_0x1d7d75;var _0x2fbd91;let _0x9e3853=this['_injector'][_0x29e491(0x1a4)](_0x268c64)[_0x29e491(0x181)](this['unitId'],this[_0x29e491(0x1a0)],this[_0x29e491(0x189)]);return _0x9e3853?(_0x2fbd91=_0x9e3853[_0x29e491(0x1a8)]())==null?null:_0x2fbd91:null;}[_0x1d7d75(0x19f)](){const _0xdc54aa=_0x1d7d75;var _0x3b94b7;let _0x4b774d=this[_0xdc54aa(0x19c)][_0xdc54aa(0x1a4)](_0x268c64)[_0xdc54aa(0x181)](this[_0xdc54aa(0x19e)],this['subUnitId'],this[_0xdc54aa(0x189)]);return _0x4b774d?(_0x3b94b7=_0x4b774d[_0xdc54aa(0x19f)]())==null?null:_0x3b94b7:null;}['build'](){const _0x2d4ea1=_0x1d7d75;var _0x198813,_0x8abafe;if(!this[_0x2d4ea1(0x1e1)])throw Error(_0x2d4ea1(0x194));if(this['x']===0x0||this['y']===0x0){let _0x48be7b=this[_0x2d4ea1(0x19c)][_0x2d4ea1(0x1a4)](_0x66ec26)[_0x2d4ea1(0x1b8)](this[_0x2d4ea1(0x19e)],this[_0x2d4ea1(0x1a0)]);if(!_0x48be7b)throw Error(_0x2d4ea1(0x19a)+this['unitId']+_0x2d4ea1(0x1d0)+this['subUnitId']+_0x2d4ea1(0x172));let {transform:_0x1dc746}=_0xfb9513(this[_0x2d4ea1(0x19e)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x48be7b);this['x']=this['x']>0x0?this['x']:_0x1dc746['left'],this['y']=this['y']>0x0?this['y']:_0x1dc746[_0x2d4ea1(0x1b7)];}return this[_0x2d4ea1(0x180)]=(_0x198813=this[_0x2d4ea1(0x180)])==null?_0x1968ac:_0x198813,this[_0x2d4ea1(0x1d7)]=(_0x8abafe=this[_0x2d4ea1(0x1d7)])==null?_0x5e205e:_0x8abafe,{'unitId':this[_0x2d4ea1(0x19e)],'subUnitId':this[_0x2d4ea1(0x1a0)],'shapeId':this[_0x2d4ea1(0x189)],'shapeType':this[_0x2d4ea1(0x1e1)],'shapeData':Object[_0x2d4ea1(0x1eb)](this[_0x2d4ea1(0x191)])[_0x2d4ea1(0x1af)]>0x0?this[_0x2d4ea1(0x191)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x2d4ea1(0x180)],'height':this['height']};}[_0x1d7d75(0x1d6)](){const _0x2e1cdf=_0x1d7d75;return this[_0x2e1cdf(0x189)];}['getShapeType'](){const _0x182867=_0x1d7d75;return this[_0x182867(0x1e1)];}[_0x1d7d75(0x1d3)](){const _0x5ec51b=_0x1d7d75;return this[_0x5ec51b(0x191)];}[_0x1d7d75(0x18e)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x247952=_0x1d7d75;return{'width':this[_0x247952(0x180)],'height':this[_0x247952(0x1d7)]};}},F=class extends P{constructor(_0x14967e,_0x6a33a4,_0x526355,_0x32819e){const _0x3c3148=_0x1d7d75;super(_0x14967e,_0x6a33a4,_0x526355,_0x32819e),N(this,_0x3c3148(0x191),{});}[_0x1d7d75(0x1d2)](_0x3b91ea){const _0x49d287=_0x1d7d75;if(!_0x36c8a8(_0x3b91ea))throw Error(_0x49d287(0x174)+_0x3b91ea+_0x49d287(0x1c6));return super[_0x49d287(0x1d2)](_0x3b91ea),this;}[_0x1d7d75(0x193)](_0x109f88){const _0x22fd35=_0x1d7d75;var _0x4174de,_0x8d3a8c;return(_0x4174de=this[_0x22fd35(0x191)])!=null&&_0x4174de['ln']||(this[_0x22fd35(0x191)]['ln']={}),!((_0x8d3a8c=this['shapeData'])==null||(_0x8d3a8c=_0x8d3a8c['ln'])==null)&&_0x8d3a8c[_0x22fd35(0x199)]||(this[_0x22fd35(0x191)]['ln'][_0x22fd35(0x199)]={}),this[_0x22fd35(0x191)]['ln'][_0x22fd35(0x199)]['type']=_0x109f88,this;}[_0x1d7d75(0x1d4)](_0x2bb525){const _0x4747e4=_0x1d7d75;var _0x3ce2e3,_0x2aface;return(_0x3ce2e3=this[_0x4747e4(0x191)])!=null&&_0x3ce2e3['ln']||(this[_0x4747e4(0x191)]['ln']={}),!((_0x2aface=this[_0x4747e4(0x191)])==null||(_0x2aface=_0x2aface['ln'])==null)&&_0x2aface[_0x4747e4(0x179)]||(this[_0x4747e4(0x191)]['ln']['endArrow']={}),this[_0x4747e4(0x191)]['ln'][_0x4747e4(0x179)]['type']=_0x2bb525,this;}['setStartArrowSize'](_0x3e770b){const _0x18354f=_0x1d7d75;var _0x2754a9,_0x21207b;return(_0x2754a9=this[_0x18354f(0x191)])!=null&&_0x2754a9['ln']||(this[_0x18354f(0x191)]['ln']={}),!((_0x21207b=this[_0x18354f(0x191)])==null||(_0x21207b=_0x21207b['ln'])==null)&&_0x21207b[_0x18354f(0x199)]||(this['shapeData']['ln'][_0x18354f(0x199)]={}),this[_0x18354f(0x191)]['ln'][_0x18354f(0x199)][_0x18354f(0x1a7)]=_0x3e770b,this;}[_0x1d7d75(0x182)](_0x240a98){const _0x1fdf37=_0x1d7d75;var _0x37ac4f,_0x17b5b9;return(_0x37ac4f=this[_0x1fdf37(0x191)])!=null&&_0x37ac4f['ln']||(this[_0x1fdf37(0x191)]['ln']={}),!((_0x17b5b9=this[_0x1fdf37(0x191)])==null||(_0x17b5b9=_0x17b5b9['ln'])==null)&&_0x17b5b9[_0x1fdf37(0x179)]||(this[_0x1fdf37(0x191)]['ln'][_0x1fdf37(0x179)]={}),this['shapeData']['ln'][_0x1fdf37(0x179)][_0x1fdf37(0x1a7)]=_0x240a98,this;}[_0x1d7d75(0x1d9)](){const _0x3656f2=_0x1d7d75;return super[_0x3656f2(0x1d9)]();}[_0x1d7d75(0x19f)](){const _0x26bef5=_0x1d7d75;var _0x4791d3;return((_0x4791d3=this['shapeData'])==null||(_0x4791d3=_0x4791d3[_0x26bef5(0x1c9)])==null?void 0x0:_0x4791d3['to'])||null;}['getStartConnectInfo'](){const _0x1b5d1f=_0x1d7d75;var _0x53598e;return((_0x53598e=this['shapeData'])==null||(_0x53598e=_0x53598e['relation'])==null?void 0x0:_0x53598e[_0x1b5d1f(0x1dc)])||null;}};function I(_0x28da3d,_0x278de1,_0x5631ef,_0x5925a0,_0x405e8b,_0x4af408){const _0x536eab=_0x1d7d75;let _0x1a5936=_0x405e8b[_0x536eab(0x181)](_0x28da3d,_0x278de1,_0x5631ef);if(!_0x1a5936)return null;let _0xf77488=_0x4af408[_0x536eab(0x1da)]({'unitId':_0x28da3d,'subUnitId':_0x278de1,'drawingId':_0x5631ef});if(!(_0xf77488!=null&&_0xf77488[_0x536eab(0x18b)]))return null;let {left:_0x1b63c1=0x0,top:_0x2db45d=0x0,width:_0x445e31=0x0,height:_0x5c3c4a=0x0,flipX:_0x179b60=!0x1,flipY:_0x44ca3c=!0x1,angle:_0x12529d}=_0xf77488[_0x536eab(0x18b)];_0x1a5936[_0x536eab(0x1bd)]({'width':_0x445e31,'height':_0x5c3c4a});let _0x323d95=_0x1a5936['getConnectionSiteList']()[_0x536eab(0x1b5)](_0x5bf457=>_0x5bf457['index']===_0x5925a0);if(!_0x323d95)return null;let _0x409528=_0x179b60?_0x445e31-_0x323d95['x']:_0x323d95['x'],_0x45c067=_0x44ca3c?_0x5c3c4a-_0x323d95['y']:_0x323d95['y'];if(_0x12529d&&_0x12529d!==0x0){let _0xfd8ee6=_0x12529d*Math['PI']/0xb4,_0x22b656=Math[_0x536eab(0x1de)](_0xfd8ee6),_0x1607ec=Math['sin'](_0xfd8ee6),_0x57ad61=_0x445e31/0x2,_0x15cde6=_0x5c3c4a/0x2,_0x2d28ee=_0x409528-_0x57ad61,_0x474ff5=_0x45c067-_0x15cde6;_0x409528=_0x57ad61+_0x2d28ee*_0x22b656-_0x474ff5*_0x1607ec,_0x45c067=_0x15cde6+_0x2d28ee*_0x1607ec+_0x474ff5*_0x22b656;}_0x409528+=_0x1b63c1,_0x45c067+=_0x2db45d;let _0x347c2c=_0x323d95[_0x536eab(0x1c8)]/0xea60;_0x179b60&&(_0x347c2c=0xb4-_0x347c2c),_0x44ca3c&&(_0x347c2c=-_0x347c2c),_0x347c2c+=_0x12529d||0x0,_0x347c2c=(_0x347c2c%0x168+0x168)%0x168;let _0x48941b=_0x1e3140({'left':_0x1b63c1,'top':_0x2db45d,'width':_0x445e31,'height':_0x5c3c4a},_0x12529d||0x0);return{'point':{'x':_0x409528,'y':_0x45c067},'angle':_0x347c2c,'bounds':_0x48941b};}function L(_0x475c17,_0x5b1509){const _0x59fcea=_0x1d7d75;let _0x34a4ae=_0x5b1509['x']-_0x475c17['x'],_0x4cd997=_0x5b1509['y']-_0x475c17['y'];return Math[_0x59fcea(0x1e6)](_0x34a4ae)>=Math[_0x59fcea(0x1e6)](_0x4cd997)?_0x34a4ae>=0x0?0xb4:0x0:_0x4cd997>=0x0?0x10e:0x5a;}function R(_0x506378,_0x425e30,_0xc85737,_0xb3cc07,_0x338cc9,_0xa6be32,_0x4e92f1){const _0x53f95b=_0x1d7d75;let _0x145d43=_0xa6be32[_0x53f95b(0x181)](_0x506378,_0x425e30,_0xc85737);if(!_0x145d43)return null;let _0xb5398f=_0x4e92f1[_0x53f95b(0x1da)]({'unitId':_0x506378,'subUnitId':_0x425e30,'drawingId':_0xc85737});if(!(_0xb5398f!=null&&_0xb5398f['transform']))return null;let {left:_0x1bfe01=0x0,top:_0x58b7d2=0x0,width:_0x14668d=0x0,height:_0x2dbe26=0x0,flipX:_0x5c70a5=!0x1,flipY:_0x291932=!0x1}=_0xb5398f[_0x53f95b(0x18b)];_0x145d43[_0x53f95b(0x1bd)]({'width':_0x14668d,'height':_0x2dbe26});let _0x57d4e6=_0x145d43['getConnectorLinePoints']();if(_0x57d4e6[_0x53f95b(0x1af)]<0x2)return null;let _0x1f3873=_0xb3cc07?_0x57d4e6[0x0]:_0x57d4e6[_0x57d4e6[_0x53f95b(0x1af)]-0x1],_0x128dad=new _0x493e08({'left':_0x1bfe01,'top':_0x58b7d2,'width':_0x14668d,'height':_0x2dbe26,'flipX':_0x5c70a5,'flipY':_0x291932})[_0x53f95b(0x1bb)](_0x1f3873);return{'point':_0x128dad,'angle':L(_0x338cc9[_0x53f95b(0x1e7)],_0x128dad),'bounds':{'left':_0x128dad['x'],'top':_0x128dad['y'],'width':0x0,'height':0x0}};}var z=class extends _0xcea0c1{async[_0x1d7d75(0x1dd)](_0x42b928){const _0xb12b9c=_0x1d7d75;let {unitId:_0x4a6cc5,subUnitId:_0x40b1a0,shapeId:_0x3d9471,shapeType:_0x24c3f8,shapeData:_0x4e19c1,x:_0x5b0dfc,y:_0x2a1e21,width:_0x4475a0,height:_0x44a2d0}=_0x42b928;return this[_0xb12b9c(0x1b6)]['executeCommand'](_0x345c31['id'],{'unitId':_0x4a6cc5,'subUnitId':_0x40b1a0,'shapeId':_0x3d9471,'shapeType':_0x24c3f8,'shapeData':_0x4e19c1,'position':{'x':_0x5b0dfc,'y':_0x2a1e21},'width':_0x4475a0,'height':_0x44a2d0});}async[_0x1d7d75(0x198)](_0x3f646a){let {unitId:_0x5eba37,subUnitId:_0x11eaef,shapeId:_0x510a0d,shapeType:_0x4c1c0b,shapeData:_0x28e44c,x:_0xad30ff,y:_0x4212e2,width:_0x38107e,height:_0x1c6006}=_0x3f646a;return this['_commandService']['executeCommand'](_0x34acb3['id'],{'unitId':_0x5eba37,'subUnitId':_0x11eaef,'shapeId':_0x510a0d,'shapeType':_0x4c1c0b,'shapeData':_0x28e44c,'position':{'x':_0xad30ff,'y':_0x4212e2},'width':_0x38107e,'height':_0x1c6006});}['newShape'](_0x5cf099){const _0x2cb0cb=_0x1d7d75;let _0x52713d=this[_0x2cb0cb(0x1cc)]()[_0x2cb0cb(0x1bc)](),_0x4d71c6=this[_0x2cb0cb(0x177)]();if(_0x5cf099){let _0xc2ea4c=new P(_0x52713d,_0x4d71c6,_0x5cf099[_0x2cb0cb(0x189)],this[_0x2cb0cb(0x19c)]);return this[_0x2cb0cb(0x176)](_0xc2ea4c,_0x52713d,_0x4d71c6,_0x5cf099['drawId']),_0xc2ea4c;}return new P(_0x52713d,_0x4d71c6,_0x3103b4(),this[_0x2cb0cb(0x19c)]);}['newConnector'](_0x43ca41){const _0x2deb82=_0x1d7d75;let _0x3bd337=this[_0x2deb82(0x1cc)]()[_0x2deb82(0x1bc)](),_0x54e643=this['getSheetId']();if(_0x43ca41){let _0x3663ab=new F(_0x3bd337,_0x54e643,_0x43ca41['drawId'],this[_0x2deb82(0x19c)]);return this[_0x2deb82(0x176)](_0x3663ab,_0x3bd337,_0x54e643,_0x43ca41[_0x2deb82(0x189)]),_0x3663ab;}return new F(_0x3bd337,_0x54e643,_0x3103b4(),this[_0x2deb82(0x19c)]);}[_0x1d7d75(0x1f1)](){const _0x5af318=_0x1d7d75;let _0x3ebaa4=this[_0x5af318(0x19c)][_0x5af318(0x1a4)](_0x25ab1a),_0x2b9635=this[_0x5af318(0x1cc)]()[_0x5af318(0x1bc)](),_0x465fd5=this['getSheetId'](),_0x30f84d=_0x3ebaa4[_0x5af318(0x178)](_0x2b9635,_0x465fd5);if(!_0x30f84d)return[];let _0x16595d=[];for(let [_0xaa95d6,_0x2be99d]of Object[_0x5af318(0x19b)](_0x30f84d))if(_0x2be99d&&_0x2be99d[_0x5af318(0x173)]===_0x4cbea9['DRAWING_SHAPE']){let _0x35dff9=new P(_0x2b9635,_0x465fd5,_0xaa95d6,this['_injector']);this[_0x5af318(0x176)](_0x35dff9,_0x2b9635,_0x465fd5,_0xaa95d6),_0x16595d[_0x5af318(0x1cb)](_0x35dff9);}return _0x16595d;}[_0x1d7d75(0x1cf)](_0x1300b4){const _0x3bf34f=_0x1d7d75;let {unitId:_0x41c5b0,subUnitId:_0x5ca9ab,drawId:_0x10e109}=_0x1300b4;return this[_0x3bf34f(0x1b6)][_0x3bf34f(0x184)](_0x29e119['id'],{'unitId':_0x41c5b0,'drawings':[{'unitId':_0x41c5b0,'subUnitId':_0x5ca9ab,'drawingId':_0x10e109,'drawingType':_0x4cbea9[_0x3bf34f(0x1d1)]}]});}async[_0x1d7d75(0x188)](_0x141482){const _0xf005bf=_0x1d7d75;let {connector:_0x50eb3c,startTarget:_0xf7dfa,endTarget:_0x230eb3}=_0x141482;if(!_0xf7dfa&&!_0x230eb3)return!0x1;let _0x569174=this[_0xf005bf(0x1cc)]()[_0xf005bf(0x1bc)](),_0x481882=this['getSheetId'](),_0x3377b4=this[_0xf005bf(0x19c)]['get'](_0x268c64),_0x448dee=this[_0xf005bf(0x19c)]['get'](_0x373af0),_0x35407f=_0x3377b4[_0xf005bf(0x181)](_0x569174,_0x481882,_0x50eb3c[_0xf005bf(0x189)]);if(!_0x35407f)return!0x1;let _0x68be9c=_0x35407f[_0xf005bf(0x1cd)](),_0x54af29=_0x35407f[_0xf005bf(0x1ec)](),_0x4471b0={};for(let _0x1d15a1 of _0x35407f[_0xf005bf(0x192)]()){let _0x7c9bac=_0x35407f[_0xf005bf(0x1e9)](_0x1d15a1);_0x7c9bac!==void 0x0&&(_0x4471b0[_0x1d15a1]=_0x7c9bac);}let {startInfo:_0xb6e35d,endInfo:_0x4714a2}=this[_0xf005bf(0x1f4)](_0x569174,_0x481882,_0x50eb3c,_0x35407f,_0xf7dfa,_0x230eb3,_0x3377b4,_0x448dee,_0x54af29);if(!_0xb6e35d||!_0x4714a2)return!0x1;let _0x3a31a9=_0x3001b1(_0x1b19b5(_0xb6e35d,_0x4714a2,_0x68be9c),_0x68be9c),_0x3f7284={};return _0xf7dfa?_0x3f7284['from']={'shapeId':_0xf7dfa['shape'][_0xf005bf(0x189)],'cxnIndex':_0xf7dfa[_0xf005bf(0x1a1)]}:_0x54af29!=null&&_0x54af29[_0xf005bf(0x1dc)]&&(_0x3f7284['from']=_0x54af29['from']),_0x230eb3?_0x3f7284['to']={'shapeId':_0x230eb3[_0xf005bf(0x1b0)][_0xf005bf(0x189)],'cxnIndex':_0x230eb3[_0xf005bf(0x1a1)]}:_0x54af29!=null&&_0x54af29['to']&&(_0x3f7284['to']=_0x54af29['to']),this['_commandService'][_0xf005bf(0x184)](_0xe77cab['id'],{'unitId':_0x569174,'subUnitId':_0x481882,'connectorShapeId':_0x50eb3c['drawId'],'width':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x180)],'height':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x1d7)],'left':_0x3a31a9[_0xf005bf(0x1c5)]['left'],'top':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x1b7)],'flipX':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x195)]||!0x1,'flipY':_0x3a31a9[_0xf005bf(0x1c5)][_0xf005bf(0x1c0)]||!0x1,'oldAdjustValues':_0x4471b0,'newAdjustValues':_0x3a31a9[_0xf005bf(0x1b2)],'newLineType':_0x3a31a9[_0xf005bf(0x1a2)],'oldLineType':_0x68be9c,'rotation':_0x3a31a9[_0xf005bf(0x1b4)],'oldRelation':_0x54af29,'newRelation':_0x3f7284});}[_0x1d7d75(0x176)](_0x326075,_0x4e04a2,_0x10cbe6,_0x34d479){const _0x4ae5ff=_0x1d7d75;let _0x325e3b=this[_0x4ae5ff(0x19c)][_0x4ae5ff(0x1a4)](_0x373af0)[_0x4ae5ff(0x1da)]({'unitId':_0x4e04a2,'subUnitId':_0x10cbe6,'drawingId':_0x34d479});if(_0x325e3b!=null&&_0x325e3b['transform']){var _0x4d1da8,_0x102c8a,_0x1da4de,_0x530afa;_0x326075['x']=(_0x4d1da8=_0x325e3b[_0x4ae5ff(0x18b)][_0x4ae5ff(0x1a9)])==null?0x0:_0x4d1da8,_0x326075['y']=(_0x102c8a=_0x325e3b[_0x4ae5ff(0x18b)][_0x4ae5ff(0x1b7)])==null?0x0:_0x102c8a,_0x326075[_0x4ae5ff(0x180)]=(_0x1da4de=_0x325e3b['transform']['width'])==null?_0x326075[_0x4ae5ff(0x180)]:_0x1da4de,_0x326075[_0x4ae5ff(0x1d7)]=(_0x530afa=_0x325e3b[_0x4ae5ff(0x18b)][_0x4ae5ff(0x1d7)])==null?_0x326075[_0x4ae5ff(0x1d7)]:_0x530afa;}let _0x566ea8=this[_0x4ae5ff(0x19c)]['get'](_0x268c64)[_0x4ae5ff(0x181)](_0x4e04a2,_0x10cbe6,_0x34d479);if(_0x566ea8){_0x326075[_0x4ae5ff(0x1e1)]=_0x566ea8[_0x4ae5ff(0x1cd)]();let _0x3dcb1e=_0x566ea8[_0x4ae5ff(0x1d3)]();_0x3dcb1e&&(_0x326075[_0x4ae5ff(0x191)]=JSON[_0x4ae5ff(0x1ad)](JSON[_0x4ae5ff(0x1d8)](_0x3dcb1e)));}}['_resolveEndpoints'](_0x325023,_0x595db4,_0xccd354,_0x1a220e,_0x1d305d,_0x136d94,_0x324ff8,_0x28447e,_0x5084c9){const _0x37bc46=_0x1d7d75;let _0x44f738=null,_0x4fb864=null;return _0x1d305d&&(_0x44f738=I(_0x325023,_0x595db4,_0x1d305d['shape'][_0x37bc46(0x189)],_0x1d305d[_0x37bc46(0x1a1)],_0x324ff8,_0x28447e)),_0x136d94&&(_0x4fb864=I(_0x325023,_0x595db4,_0x136d94[_0x37bc46(0x1b0)]['drawId'],_0x136d94['connectionSiteIndex'],_0x324ff8,_0x28447e)),_0x44f738||(_0x44f738=this[_0x37bc46(0x1ce)](_0x325023,_0x595db4,_0xccd354[_0x37bc46(0x189)],!0x0,_0x4fb864,_0x5084c9==null?void 0x0:_0x5084c9[_0x37bc46(0x1dc)],_0x324ff8,_0x28447e)),_0x4fb864||(_0x4fb864=this[_0x37bc46(0x1ce)](_0x325023,_0x595db4,_0xccd354['drawId'],!0x1,_0x44f738,_0x5084c9==null?void 0x0:_0x5084c9['to'],_0x324ff8,_0x28447e)),{'startInfo':_0x44f738,'endInfo':_0x4fb864};}['_resolveExistingOrFreeEndpoint'](_0xa23ab4,_0x22debe,_0x3b26e9,_0x377a63,_0x2b8ea4,_0x2513a3,_0x5b3670,_0x3394d2){const _0x233d84=_0x1d7d75;if(_0x2513a3){let _0x12912c=I(_0xa23ab4,_0x22debe,_0x2513a3[_0x233d84(0x1c1)],_0x2513a3[_0x233d84(0x171)],_0x5b3670,_0x3394d2);if(_0x12912c)return _0x12912c;}return _0x2b8ea4?R(_0xa23ab4,_0x22debe,_0x3b26e9,_0x377a63,_0x2b8ea4,_0x5b3670,_0x3394d2):null;}};_0xcea0c1[_0x1d7d75(0x185)](z);export{F as FConnectorShape,P as FShape};
1
+ const _0x2294c8=_0x10e5;(function(_0x4d9f1d,_0x3815bc){const _0x4f039b=_0x10e5,_0x47dd03=_0x4d9f1d();while(!![]){try{const _0x5b786c=parseInt(_0x4f039b(0x20c))/0x1*(parseInt(_0x4f039b(0x1d6))/0x2)+-parseInt(_0x4f039b(0x1dc))/0x3+parseInt(_0x4f039b(0x1fe))/0x4*(parseInt(_0x4f039b(0x1c6))/0x5)+parseInt(_0x4f039b(0x23e))/0x6+-parseInt(_0x4f039b(0x24a))/0x7+parseInt(_0x4f039b(0x1e6))/0x8+parseInt(_0x4f039b(0x201))/0x9;if(_0x5b786c===_0x3815bc)break;else _0x47dd03['push'](_0x47dd03['shift']());}catch(_0x1e04c8){_0x47dd03['push'](_0x47dd03['shift']());}}}(_0x2ff6,0xd870b));import{ConnectorCoordinateTransform as _0x226b98,ShapeArrowSizeEnum as _0x1a009f,ShapeArrowTypeEnum as _0x1b13c3,ShapeFillEnum as _0x17ad7b,ShapeGradientTypeEnum as _0xc86cba,ShapeLineCapEnum as _0x21b06d,ShapeLineDashEnum as _0x51187e,ShapeLineJoinEnum as _0x45dc6f,ShapeLineTypeEnum as _0x2121d7,ShapeTypeEnum as _0x4f25b2,computeConnectorRouteLayout as _0x8012ef,getBasicShapeRotateBound as _0x5350e5,isConnectorShape as _0xe1c987,routeConnectorLineShape as _0x1966ac}from'@univerjs-pro/engine-shape';import{FEnum as _0x468a15}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x11c2a4,DEFAULT_SHAPE_WIDTH as _0xdabd8b,InsertShapeCommand as _0x2b5f84,SetShapeDrawingDataCommand as _0x4bd9a0,SheetsShapeService as _0x5c3722,UpdateConnectorRelationCommand as _0x3ac70a}from'@univerjs-pro/sheets-shape';function _0x2ff6(){const _0x4aa9d5=['executeCommand','getShapeModel','build','stroke','setAbsolutePosition','1875964jeiWQX','constructor','abs','15225786xAednD','setStrokeLineDashType','getWorkbook','ShapeTypeEnum','getConnectionSiteList','SolidFill','drawingType','_resolveEndpoints','setEndArrowSize','ang','defineProperty','7PSNceE','drawId','capType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','worldRect','GradientFill','getDrawingData','Skeleton\x20for\x20unitId\x20','setNoneFill','_commandService','getAdjustValueByName','height','subUnitId','ShapeLineJoinEnum','adjustValues','localToWorld','top','ShapeArrowSizeEnum','type','NoFill','fillType','shapeType','string','prototype','getConnectionSites','cxnIndex','lineJoinType','transform','object','getDrawingByParam','insertShape','rotation','length','_injector','setStrokeColor','ShapeArrowTypeEnum','\x20and\x20subUnitId\x20','symbol','getStartConnectInfo','shapeId','cos','connectShapes','DRAWING_SHAPE','getSheetId','call','function','ShapeLineCapEnum','gradientType','setEndArrowType','2709090pIvfIz','connectionSiteIndex','relation','getDrawingPoints','setStrokeLineType','size','find','getSize','setWidth','fill','isLineShape','getConnectorLinePoints','11366705cvCvsZ','width','15plLmKY','getShapeRelation','ShapeFillEnum','flipX','unitId','ShapeLineTypeEnum','ensureSkeleton','setStartArrowSize','updateShape','getShapeId','stringify','opacity','updateContext','shapeData','getAdjustPoints','getAdjustNames','108326TSsoHM','setStrokeWidth','endArrow','setShapeGradientFill','removeShape','setHeight','4286337SAgFHD','left','ShapeLineDashEnum','_resolveExistingOrFreeEndpoint','default','getShapeData','flipY','get','getShapes','keys','78000tfLxHq','_preloadShapeProperties',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getEndConnectInfo','\x20not\x20found','gradientAngle','getUnitId','ShapeGradientTypeEnum','setStartArrowType','startArrow','setShapeType','shape','setStrokeOpacity','from','point','gradientStops','getShapeType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend'];_0x2ff6=function(){return _0x4aa9d5;};return _0x2ff6();}import{DrawingTypeEnum as _0x285b45,generateRandomId as _0x4e4bad}from'@univerjs/core';import{IDrawingManagerService as _0x4e860d}from'@univerjs/drawing';import{SheetSkeletonService as _0xe5b182,convertPositionCellToSheetOverGrid as _0x439023}from'@univerjs/sheets';import{ISheetDrawingService as _0xa71416,RemoveSheetDrawingCommand as _0x1b2369}from'@univerjs/sheets-drawing';import{FWorksheet as _0x4f6f37}from'@univerjs/sheets/facade';var k=class extends _0x468a15{get[_0x2294c8(0x204)](){return _0x4f25b2;}get[_0x2294c8(0x1c8)](){return _0x17ad7b;}get[_0x2294c8(0x1ed)](){return _0xc86cba;}get[_0x2294c8(0x1cb)](){return _0x2121d7;}get[_0x2294c8(0x1de)](){return _0x51187e;}get[_0x2294c8(0x23b)](){return _0x21b06d;}get[_0x2294c8(0x21a)](){return _0x45dc6f;}get[_0x2294c8(0x230)](){return _0x1b13c3;}get[_0x2294c8(0x21e)](){return _0x1a009f;}};_0x468a15[_0x2294c8(0x1f8)](k);function A(_0xf329cf){'@babel/helpers - typeof';const _0x27b098=_0x2294c8;return A=typeof Symbol==_0x27b098(0x23a)&&typeof Symbol['iterator']==_0x27b098(0x232)?function(_0x13f09d){return typeof _0x13f09d;}:function(_0x30c5f2){const _0x10ed6f=_0x27b098;return _0x30c5f2&&typeof Symbol==_0x10ed6f(0x23a)&&_0x30c5f2[_0x10ed6f(0x1ff)]===Symbol&&_0x30c5f2!==Symbol[_0x10ed6f(0x224)]?_0x10ed6f(0x232):typeof _0x30c5f2;},A(_0xf329cf);}function j(_0x179464,_0x20af1c){const _0x4f28d2=_0x2294c8;if(A(_0x179464)!=_0x4f28d2(0x229)||!_0x179464)return _0x179464;var _0x3d5b3e=_0x179464[Symbol['toPrimitive']];if(_0x3d5b3e!==void 0x0){var _0x5aa1ec=_0x3d5b3e[_0x4f28d2(0x239)](_0x179464,_0x20af1c||_0x4f28d2(0x1e0));if(A(_0x5aa1ec)!=_0x4f28d2(0x229))return _0x5aa1ec;throw TypeError(_0x4f28d2(0x20f));}return(_0x20af1c===_0x4f28d2(0x223)?String:Number)(_0x179464);}function M(_0x14370d){const _0x5381fe=_0x2294c8;var _0x4df15d=j(_0x14370d,_0x5381fe(0x223));return A(_0x4df15d)=='symbol'?_0x4df15d:_0x4df15d+'';}function N(_0x359362,_0x144c50,_0x430d56){const _0x12cec9=_0x2294c8;return(_0x144c50=M(_0x144c50))in _0x359362?Object[_0x12cec9(0x20b)](_0x359362,_0x144c50,{'value':_0x430d56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x359362[_0x144c50]=_0x430d56,_0x359362;}var P=class{constructor(_0x5de167,_0x23939b,_0x1f7e1a,_0x986594){const _0xf485ad=_0x2294c8;N(this,_0xf485ad(0x1ca),void 0x0),N(this,_0xf485ad(0x219),void 0x0),N(this,_0xf485ad(0x20d),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0xf485ad(0x1c5),_0xdabd8b),N(this,_0xf485ad(0x218),_0x11c2a4),N(this,_0xf485ad(0x222),void 0x0),N(this,_0xf485ad(0x1d3),{}),N(this,_0xf485ad(0x22e),void 0x0),this[_0xf485ad(0x1ca)]=_0x5de167,this[_0xf485ad(0x219)]=_0x23939b,this[_0xf485ad(0x20d)]=_0x1f7e1a||_0x4e4bad(),this[_0xf485ad(0x22e)]=_0x986594;}['setPosition'](_0x1bcaa6,_0x5bef2a,_0x1c221b,_0x90f467){const _0x3697a8=_0x2294c8;let _0x4dd757=this['_injector'][_0x3697a8(0x1e3)](_0xe5b182)[_0x3697a8(0x1cc)](this[_0x3697a8(0x1ca)],this['subUnitId']);if(!_0x4dd757)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x3697a8(0x1ca)]+'\x20and\x20subUnitId\x20'+this[_0x3697a8(0x219)]+_0x3697a8(0x1ea));let {transform:_0x4eb9cd}=_0x439023(this[_0x3697a8(0x1ca)],this[_0x3697a8(0x219)],{'row':_0x1bcaa6,'column':_0x5bef2a,'rowOffset':_0x1c221b,'columnOffset':_0x90f467},0x1,0x1,_0x4dd757);return this['x']=_0x4eb9cd[_0x3697a8(0x1dd)],this['y']=_0x4eb9cd[_0x3697a8(0x21d)],this;}[_0x2294c8(0x1fd)](_0x50bac6,_0x3914c7){return this['x']=_0x50bac6,this['y']=_0x3914c7,this;}[_0x2294c8(0x1f0)](_0x236164){const _0x30e354=_0x2294c8;return this[_0x30e354(0x222)]=_0x236164,this;}['setShapeData'](_0x5b82f9){const _0x1a3f48=_0x2294c8;return _0x5b82f9['shapeType']&&this[_0x1a3f48(0x1f0)](_0x5b82f9[_0x1a3f48(0x222)]),this['shapeData']={..._0x5b82f9},this;}['setShapeSolidFill'](_0x313fdf,_0x5b570d){const _0x2c93fa=_0x2294c8;return this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)]||(this[_0x2c93fa(0x1d3)]['fill']={}),this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)][_0x2c93fa(0x221)]=_0x17ad7b[_0x2c93fa(0x206)],_0x313fdf!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill']['color']=_0x313fdf),_0x5b570d!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill'][_0x2c93fa(0x1d1)]=_0x5b570d),this;}[_0x2294c8(0x1d9)](_0x55d2fe,_0x385c53,_0x664497){const _0x361935=_0x2294c8;if(_0x385c53===void 0x0||_0x385c53[_0x361935(0x22d)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this['shapeData'][_0x361935(0x247)]||(this['shapeData'][_0x361935(0x247)]={}),this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1f5)]=_0x385c53,this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x221)]=_0x17ad7b[_0x361935(0x212)],this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x23c)]=_0x55d2fe,_0x664497!==void 0x0&&(this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1eb)]=_0x664497),this;}[_0x2294c8(0x215)](){const _0x1ff339=_0x2294c8;return this[_0x1ff339(0x1d3)][_0x1ff339(0x247)]={'fillType':_0x17ad7b[_0x1ff339(0x220)]},this;}[_0x2294c8(0x22f)](_0x2fa00e){const _0xaffb99=_0x2294c8;return this[_0xaffb99(0x1d3)][_0xaffb99(0x1fc)]||(this[_0xaffb99(0x1d3)]['stroke']={}),this[_0xaffb99(0x1d3)]['stroke']['color']=_0x2fa00e,this;}[_0x2294c8(0x1d7)](_0xbf4748){const _0x125361=_0x2294c8;return this[_0x125361(0x1d3)]['stroke']||(this['shapeData'][_0x125361(0x1fc)]={}),this[_0x125361(0x1d3)][_0x125361(0x1fc)][_0x125361(0x1c5)]=_0xbf4748,this;}[_0x2294c8(0x202)](_0x29ca2a){const _0x41785a=_0x2294c8;return this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]||(this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]={}),this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]['dashType']=_0x29ca2a,this;}['setStrokeLineJoinType'](_0x45b777){const _0x1cc131=_0x2294c8;return this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]||(this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]={}),this[_0x1cc131(0x1d3)]['stroke'][_0x1cc131(0x227)]=_0x45b777,this;}['setStrokeLineCapType'](_0x33ba9d){const _0x375a73=_0x2294c8;return this[_0x375a73(0x1d3)][_0x375a73(0x1fc)]||(this['shapeData']['stroke']={}),this[_0x375a73(0x1d3)][_0x375a73(0x1fc)][_0x375a73(0x20e)]=_0x33ba9d,this;}[_0x2294c8(0x1f2)](_0x23590f){const _0x3696cf=_0x2294c8;return this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]||(this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]={}),this['shapeData']['stroke']['opacity']=_0x23590f,this;}[_0x2294c8(0x242)](_0x4874cd){const _0x13eb83=_0x2294c8;return this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]||(this['shapeData'][_0x13eb83(0x1fc)]={}),this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]['lineStrokeType']=_0x4874cd,this;}[_0x2294c8(0x246)](_0x4ea888){return this['width']=_0x4ea888,this;}[_0x2294c8(0x1db)](_0x12a528){const _0x5f910d=_0x2294c8;return this[_0x5f910d(0x218)]=_0x12a528,this;}[_0x2294c8(0x248)](){const _0x1f090f=_0x2294c8;let _0x4715c3=this['_injector'][_0x1f090f(0x1e3)](_0x5c3722)['getShapeModel'](this[_0x1f090f(0x1ca)],this['subUnitId'],this[_0x1f090f(0x20d)]);return _0x4715c3?_0xe1c987(_0x4715c3[_0x1f090f(0x1f6)]()):this[_0x1f090f(0x222)]?_0xe1c987(this[_0x1f090f(0x222)]):!0x1;}[_0x2294c8(0x225)](){const _0x3260f3=_0x2294c8;let _0x411a55=this[_0x3260f3(0x22e)]['get'](_0x5c3722)['getShapeModel'](this[_0x3260f3(0x1ca)],this[_0x3260f3(0x219)],this['drawId']);if(!_0x411a55)return[];let _0x3d5dfa=this[_0x3260f3(0x22e)]['get'](_0x4e860d)[_0x3260f3(0x22a)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3260f3(0x20d)]});if(!(_0x3d5dfa!=null&&_0x3d5dfa['transform']))return[];let {width:_0x3e7e55=0x0,height:_0x47b691=0x0}=_0x3d5dfa[_0x3260f3(0x228)];return _0x411a55['updateContext']({'width':_0x3e7e55,'height':_0x47b691}),_0x411a55[_0x3260f3(0x205)]();}[_0x2294c8(0x1d4)](){const _0x514a6d=_0x2294c8;let _0x16fdf4=this[_0x514a6d(0x22e)]['get'](_0x5c3722)[_0x514a6d(0x1fa)](this[_0x514a6d(0x1ca)],this['subUnitId'],this[_0x514a6d(0x20d)]);if(!_0x16fdf4)return[];let _0x1706b3=this[_0x514a6d(0x22e)][_0x514a6d(0x1e3)](_0x4e860d)[_0x514a6d(0x22a)]({'unitId':this['unitId'],'subUnitId':this[_0x514a6d(0x219)],'drawingId':this[_0x514a6d(0x20d)]});if(!(_0x1706b3!=null&&_0x1706b3[_0x514a6d(0x228)]))return[];let {width:_0x41dce9=0x0,height:_0x33e58c=0x0}=_0x1706b3[_0x514a6d(0x228)];return _0x16fdf4['updateContext']({'width':_0x41dce9,'height':_0x33e58c}),_0x16fdf4[_0x514a6d(0x241)]();}[_0x2294c8(0x249)](){const _0x411be5=_0x2294c8;let _0x132594=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x5c3722)[_0x411be5(0x1fa)](this[_0x411be5(0x1ca)],this['subUnitId'],this[_0x411be5(0x20d)]);if(!_0x132594||!_0xe1c987(_0x132594[_0x411be5(0x1f6)]()))return[];let _0x2b025b=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x4e860d)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x411be5(0x219)],'drawingId':this[_0x411be5(0x20d)]});if(!(_0x2b025b!=null&&_0x2b025b[_0x411be5(0x228)]))return[];let {width:_0x476173=0x0,height:_0xd1f238=0x0}=_0x2b025b[_0x411be5(0x228)];return _0x132594[_0x411be5(0x1d2)]({'width':_0x476173,'height':_0xd1f238}),_0x132594[_0x411be5(0x249)]();}[_0x2294c8(0x233)](){const _0x486827=_0x2294c8;var _0x438855;let _0x8ed768=this[_0x486827(0x22e)][_0x486827(0x1e3)](_0x5c3722)[_0x486827(0x1fa)](this[_0x486827(0x1ca)],this[_0x486827(0x219)],this[_0x486827(0x20d)]);return _0x8ed768?(_0x438855=_0x8ed768[_0x486827(0x233)]())==null?null:_0x438855:null;}[_0x2294c8(0x1e9)](){const _0x1b2317=_0x2294c8;var _0x1724a0;let _0x48e208=this['_injector'][_0x1b2317(0x1e3)](_0x5c3722)[_0x1b2317(0x1fa)](this[_0x1b2317(0x1ca)],this[_0x1b2317(0x219)],this['drawId']);return _0x48e208?(_0x1724a0=_0x48e208[_0x1b2317(0x1e9)]())==null?null:_0x1724a0:null;}[_0x2294c8(0x1fb)](){const _0x5cc4ee=_0x2294c8;var _0x153fbb,_0x4e7bde;if(!this[_0x5cc4ee(0x222)])throw Error(_0x5cc4ee(0x1f7));if(this['x']===0x0||this['y']===0x0){let _0x5aaea5=this['_injector'][_0x5cc4ee(0x1e3)](_0xe5b182)['ensureSkeleton'](this['unitId'],this['subUnitId']);if(!_0x5aaea5)throw Error(_0x5cc4ee(0x214)+this[_0x5cc4ee(0x1ca)]+_0x5cc4ee(0x231)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3312e3}=_0x439023(this[_0x5cc4ee(0x1ca)],this[_0x5cc4ee(0x219)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5aaea5);this['x']=this['x']>0x0?this['x']:_0x3312e3[_0x5cc4ee(0x1dd)],this['y']=this['y']>0x0?this['y']:_0x3312e3[_0x5cc4ee(0x21d)];}return this['width']=(_0x153fbb=this[_0x5cc4ee(0x1c5)])==null?_0xdabd8b:_0x153fbb,this['height']=(_0x4e7bde=this[_0x5cc4ee(0x218)])==null?_0x11c2a4:_0x4e7bde,{'unitId':this[_0x5cc4ee(0x1ca)],'subUnitId':this[_0x5cc4ee(0x219)],'shapeId':this[_0x5cc4ee(0x20d)],'shapeType':this[_0x5cc4ee(0x222)],'shapeData':Object[_0x5cc4ee(0x1e5)](this[_0x5cc4ee(0x1d3)])[_0x5cc4ee(0x22d)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x5cc4ee(0x218)]};}[_0x2294c8(0x1cf)](){const _0x299801=_0x2294c8;return this[_0x299801(0x20d)];}[_0x2294c8(0x1f6)](){const _0x2bbab4=_0x2294c8;return this[_0x2bbab4(0x222)];}[_0x2294c8(0x1e1)](){const _0x3e91c9=_0x2294c8;return this[_0x3e91c9(0x1d3)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x2294c8(0x245)](){const _0x18b848=_0x2294c8;return{'width':this['width'],'height':this[_0x18b848(0x218)]};}},F=class extends P{constructor(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813){const _0x37e36c=_0x2294c8;super(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813),N(this,_0x37e36c(0x1d3),{});}[_0x2294c8(0x1f0)](_0x13a1a3){const _0x2c6723=_0x2294c8;if(!_0xe1c987(_0x13a1a3))throw Error(_0x2c6723(0x210)+_0x13a1a3+_0x2c6723(0x1e8));return super['setShapeType'](_0x13a1a3),this;}[_0x2294c8(0x1ee)](_0x599217){const _0x1d3eea=_0x2294c8;var _0x2609be,_0x39a67e;return(_0x2609be=this[_0x1d3eea(0x1d3)])!=null&&_0x2609be['ln']||(this['shapeData']['ln']={}),!((_0x39a67e=this[_0x1d3eea(0x1d3)])==null||(_0x39a67e=_0x39a67e['ln'])==null)&&_0x39a67e['startArrow']||(this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)]={}),this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)][_0x1d3eea(0x21f)]=_0x599217,this;}[_0x2294c8(0x23d)](_0x3dd134){const _0x5aa569=_0x2294c8;var _0xfa308,_0x351dd6;return(_0xfa308=this[_0x5aa569(0x1d3)])!=null&&_0xfa308['ln']||(this[_0x5aa569(0x1d3)]['ln']={}),!((_0x351dd6=this[_0x5aa569(0x1d3)])==null||(_0x351dd6=_0x351dd6['ln'])==null)&&_0x351dd6[_0x5aa569(0x1d8)]||(this[_0x5aa569(0x1d3)]['ln'][_0x5aa569(0x1d8)]={}),this['shapeData']['ln']['endArrow'][_0x5aa569(0x21f)]=_0x3dd134,this;}[_0x2294c8(0x1cd)](_0x31eab9){const _0xf4d18e=_0x2294c8;var _0x40bd11,_0x134d29;return(_0x40bd11=this[_0xf4d18e(0x1d3)])!=null&&_0x40bd11['ln']||(this[_0xf4d18e(0x1d3)]['ln']={}),!((_0x134d29=this['shapeData'])==null||(_0x134d29=_0x134d29['ln'])==null)&&_0x134d29[_0xf4d18e(0x1ef)]||(this[_0xf4d18e(0x1d3)]['ln']['startArrow']={}),this[_0xf4d18e(0x1d3)]['ln']['startArrow'][_0xf4d18e(0x243)]=_0x31eab9,this;}[_0x2294c8(0x209)](_0x5179ba){const _0x3a6800=_0x2294c8;var _0x4f9409,_0x250ee5;return(_0x4f9409=this[_0x3a6800(0x1d3)])!=null&&_0x4f9409['ln']||(this[_0x3a6800(0x1d3)]['ln']={}),!((_0x250ee5=this[_0x3a6800(0x1d3)])==null||(_0x250ee5=_0x250ee5['ln'])==null)&&_0x250ee5[_0x3a6800(0x1d8)]||(this[_0x3a6800(0x1d3)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x3a6800(0x1d8)][_0x3a6800(0x243)]=_0x5179ba,this;}[_0x2294c8(0x1fb)](){return super['build']();}[_0x2294c8(0x1e9)](){const _0x271a70=_0x2294c8;var _0x3b5a6e;return((_0x3b5a6e=this[_0x271a70(0x1d3)])==null||(_0x3b5a6e=_0x3b5a6e[_0x271a70(0x240)])==null?void 0x0:_0x3b5a6e['to'])||null;}[_0x2294c8(0x233)](){const _0x7f272e=_0x2294c8;var _0x19b794;return((_0x19b794=this['shapeData'])==null||(_0x19b794=_0x19b794[_0x7f272e(0x240)])==null?void 0x0:_0x19b794[_0x7f272e(0x1f3)])||null;}};function I(_0x20336c,_0x1dfd7b,_0x14df5a,_0x36efcb,_0x4a590e,_0x25c7a7){const _0x331a96=_0x2294c8;let _0x45800d=_0x4a590e[_0x331a96(0x1fa)](_0x20336c,_0x1dfd7b,_0x14df5a);if(!_0x45800d)return null;let _0x3d7c50=_0x25c7a7['getDrawingByParam']({'unitId':_0x20336c,'subUnitId':_0x1dfd7b,'drawingId':_0x14df5a});if(!(_0x3d7c50!=null&&_0x3d7c50[_0x331a96(0x228)]))return null;let {left:_0x310935=0x0,top:_0x519fae=0x0,width:_0x201003=0x0,height:_0x525de1=0x0,flipX:_0x2ed3e6=!0x1,flipY:_0x2b6667=!0x1,angle:_0x134923}=_0x3d7c50[_0x331a96(0x228)];_0x45800d[_0x331a96(0x1d2)]({'width':_0x201003,'height':_0x525de1});let _0x1ac5ed=_0x45800d[_0x331a96(0x205)]()[_0x331a96(0x244)](_0x58cc8e=>_0x58cc8e['index']===_0x36efcb);if(!_0x1ac5ed)return null;let _0x15ec78=_0x2ed3e6?_0x201003-_0x1ac5ed['x']:_0x1ac5ed['x'],_0x438821=_0x2b6667?_0x525de1-_0x1ac5ed['y']:_0x1ac5ed['y'];if(_0x134923&&_0x134923!==0x0){let _0x3f203a=_0x134923*Math['PI']/0xb4,_0x283e8d=Math[_0x331a96(0x235)](_0x3f203a),_0x2d1844=Math['sin'](_0x3f203a),_0x3820d9=_0x201003/0x2,_0x3f63bf=_0x525de1/0x2,_0x36e6f8=_0x15ec78-_0x3820d9,_0xbb0eb9=_0x438821-_0x3f63bf;_0x15ec78=_0x3820d9+_0x36e6f8*_0x283e8d-_0xbb0eb9*_0x2d1844,_0x438821=_0x3f63bf+_0x36e6f8*_0x2d1844+_0xbb0eb9*_0x283e8d;}_0x15ec78+=_0x310935,_0x438821+=_0x519fae;let _0x527b10=_0x1ac5ed[_0x331a96(0x20a)]/0xea60;_0x2ed3e6&&(_0x527b10=0xb4-_0x527b10),_0x2b6667&&(_0x527b10=-_0x527b10),_0x527b10+=_0x134923||0x0,_0x527b10=(_0x527b10%0x168+0x168)%0x168;let _0x1104a8=_0x5350e5({'left':_0x310935,'top':_0x519fae,'width':_0x201003,'height':_0x525de1},_0x134923||0x0);return{'point':{'x':_0x15ec78,'y':_0x438821},'angle':_0x527b10,'bounds':_0x1104a8};}function L(_0x457973,_0x467354){const _0x2b083d=_0x2294c8;let _0x4c5881=_0x467354['x']-_0x457973['x'],_0x268f7e=_0x467354['y']-_0x457973['y'];return Math[_0x2b083d(0x200)](_0x4c5881)>=Math['abs'](_0x268f7e)?_0x4c5881>=0x0?0xb4:0x0:_0x268f7e>=0x0?0x10e:0x5a;}function R(_0x42ebd4,_0x41045c,_0x346f0d,_0x42f598,_0x49e4fa,_0x5868c6,_0x69a39d){const _0xb7570f=_0x2294c8;let _0x1de5ea=_0x5868c6[_0xb7570f(0x1fa)](_0x42ebd4,_0x41045c,_0x346f0d);if(!_0x1de5ea)return null;let _0xf9636d=_0x69a39d['getDrawingByParam']({'unitId':_0x42ebd4,'subUnitId':_0x41045c,'drawingId':_0x346f0d});if(!(_0xf9636d!=null&&_0xf9636d[_0xb7570f(0x228)]))return null;let {left:_0x1d932a=0x0,top:_0x654a09=0x0,width:_0x17721b=0x0,height:_0x5db118=0x0,flipX:_0x374390=!0x1,flipY:_0x529e77=!0x1}=_0xf9636d['transform'];_0x1de5ea['updateContext']({'width':_0x17721b,'height':_0x5db118});let _0xdfeaa6=_0x1de5ea[_0xb7570f(0x249)]();if(_0xdfeaa6['length']<0x2)return null;let _0x311ead=_0x42f598?_0xdfeaa6[0x0]:_0xdfeaa6[_0xdfeaa6['length']-0x1],_0x5efb79=new _0x226b98({'left':_0x1d932a,'top':_0x654a09,'width':_0x17721b,'height':_0x5db118,'flipX':_0x374390,'flipY':_0x529e77})[_0xb7570f(0x21c)](_0x311ead);return{'point':_0x5efb79,'angle':L(_0x49e4fa[_0xb7570f(0x1f4)],_0x5efb79),'bounds':{'left':_0x5efb79['x'],'top':_0x5efb79['y'],'width':0x0,'height':0x0}};}function _0x10e5(_0x2a12c3,_0x79ac5a){_0x2a12c3=_0x2a12c3-0x1c5;const _0x2ff63f=_0x2ff6();let _0x10e548=_0x2ff63f[_0x2a12c3];return _0x10e548;}var z=class extends _0x4f6f37{async[_0x2294c8(0x22b)](_0x518ede){const _0x2687ee=_0x2294c8;let {unitId:_0x13c442,subUnitId:_0x590a86,shapeId:_0x499271,shapeType:_0x459c80,shapeData:_0x2e719a,x:_0x317d35,y:_0x4583c4,width:_0x2650aa,height:_0x5b6add}=_0x518ede;return this[_0x2687ee(0x216)][_0x2687ee(0x1f9)](_0x2b5f84['id'],{'unitId':_0x13c442,'subUnitId':_0x590a86,'shapeId':_0x499271,'shapeType':_0x459c80,'shapeData':_0x2e719a,'position':{'x':_0x317d35,'y':_0x4583c4},'width':_0x2650aa,'height':_0x5b6add});}async[_0x2294c8(0x1ce)](_0x534acf){const _0x3e9c87=_0x2294c8;let {unitId:_0x3cd1c5,subUnitId:_0x42e559,shapeId:_0x33282e,shapeType:_0x57fd12,shapeData:_0x12c1db,x:_0x3b4908,y:_0xf60132,width:_0x1887e3,height:_0x203ae6}=_0x534acf;return this[_0x3e9c87(0x216)][_0x3e9c87(0x1f9)](_0x4bd9a0['id'],{'unitId':_0x3cd1c5,'subUnitId':_0x42e559,'shapeId':_0x33282e,'shapeType':_0x57fd12,'shapeData':_0x12c1db,'position':{'x':_0x3b4908,'y':_0xf60132},'width':_0x1887e3,'height':_0x203ae6});}['newShape'](_0x339dd0){const _0x5de9c2=_0x2294c8;let _0x1489bb=this[_0x5de9c2(0x203)]()[_0x5de9c2(0x1ec)](),_0x472bb4=this[_0x5de9c2(0x238)]();if(_0x339dd0){let _0x4e3568=new P(_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)],this['_injector']);return this[_0x5de9c2(0x1e7)](_0x4e3568,_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)]),_0x4e3568;}return new P(_0x1489bb,_0x472bb4,_0x4e4bad(),this['_injector']);}['newConnector'](_0x43fc0d){const _0x47823c=_0x2294c8;let _0x3f05c9=this[_0x47823c(0x203)]()[_0x47823c(0x1ec)](),_0x4f1ee3=this['getSheetId']();if(_0x43fc0d){let _0x220291=new F(_0x3f05c9,_0x4f1ee3,_0x43fc0d['drawId'],this[_0x47823c(0x22e)]);return this['_preloadShapeProperties'](_0x220291,_0x3f05c9,_0x4f1ee3,_0x43fc0d[_0x47823c(0x20d)]),_0x220291;}return new F(_0x3f05c9,_0x4f1ee3,_0x4e4bad(),this[_0x47823c(0x22e)]);}[_0x2294c8(0x1e4)](){const _0x7390e2=_0x2294c8;let _0x120489=this[_0x7390e2(0x22e)][_0x7390e2(0x1e3)](_0xa71416),_0x3d597f=this[_0x7390e2(0x203)]()['getUnitId'](),_0x2a2e0f=this[_0x7390e2(0x238)](),_0x509c9f=_0x120489[_0x7390e2(0x213)](_0x3d597f,_0x2a2e0f);if(!_0x509c9f)return[];let _0xc15c52=[];for(let [_0x253011,_0x1d4231]of Object['entries'](_0x509c9f))if(_0x1d4231&&_0x1d4231[_0x7390e2(0x207)]===_0x285b45[_0x7390e2(0x237)]){let _0x57cf5c=new P(_0x3d597f,_0x2a2e0f,_0x253011,this[_0x7390e2(0x22e)]);this[_0x7390e2(0x1e7)](_0x57cf5c,_0x3d597f,_0x2a2e0f,_0x253011),_0xc15c52['push'](_0x57cf5c);}return _0xc15c52;}[_0x2294c8(0x1da)](_0x5dcdfe){const _0x2c691b=_0x2294c8;let {unitId:_0x3bb5ec,subUnitId:_0xbcc1d0,drawId:_0x1004d8}=_0x5dcdfe;return this[_0x2c691b(0x216)][_0x2c691b(0x1f9)](_0x1b2369['id'],{'unitId':_0x3bb5ec,'drawings':[{'unitId':_0x3bb5ec,'subUnitId':_0xbcc1d0,'drawingId':_0x1004d8,'drawingType':_0x285b45[_0x2c691b(0x237)]}]});}async[_0x2294c8(0x236)](_0x10c630){const _0x4e2616=_0x2294c8;let {connector:_0x90d6cd,startTarget:_0x410607,endTarget:_0x49f4f8}=_0x10c630;if(!_0x410607&&!_0x49f4f8)return!0x1;let _0x4fe5f4=this['getWorkbook']()[_0x4e2616(0x1ec)](),_0x1d5dca=this[_0x4e2616(0x238)](),_0x5b30a5=this[_0x4e2616(0x22e)][_0x4e2616(0x1e3)](_0x5c3722),_0x42ea4c=this[_0x4e2616(0x22e)]['get'](_0x4e860d),_0x3f9b57=_0x5b30a5[_0x4e2616(0x1fa)](_0x4fe5f4,_0x1d5dca,_0x90d6cd[_0x4e2616(0x20d)]);if(!_0x3f9b57)return!0x1;let _0x1e639e=_0x3f9b57['getShapeType'](),_0x3fbcad=_0x3f9b57[_0x4e2616(0x1c7)](),_0x32b2f6={};for(let _0x14f71e of _0x3f9b57[_0x4e2616(0x1d5)]()){let _0x23047e=_0x3f9b57[_0x4e2616(0x217)](_0x14f71e);_0x23047e!==void 0x0&&(_0x32b2f6[_0x14f71e]=_0x23047e);}let {startInfo:_0x3ca704,endInfo:_0x33e99c}=this[_0x4e2616(0x208)](_0x4fe5f4,_0x1d5dca,_0x90d6cd,_0x3f9b57,_0x410607,_0x49f4f8,_0x5b30a5,_0x42ea4c,_0x3fbcad);if(!_0x3ca704||!_0x33e99c)return!0x1;let _0xe9ee61=_0x8012ef(_0x1966ac(_0x3ca704,_0x33e99c,_0x1e639e),_0x1e639e),_0x3834d4={};return _0x410607?_0x3834d4[_0x4e2616(0x1f3)]={'shapeId':_0x410607['shape'][_0x4e2616(0x20d)],'cxnIndex':_0x410607['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['from']&&(_0x3834d4[_0x4e2616(0x1f3)]=_0x3fbcad[_0x4e2616(0x1f3)]),_0x49f4f8?_0x3834d4['to']={'shapeId':_0x49f4f8[_0x4e2616(0x1f1)]['drawId'],'cxnIndex':_0x49f4f8['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['to']&&(_0x3834d4['to']=_0x3fbcad['to']),this[_0x4e2616(0x216)][_0x4e2616(0x1f9)](_0x3ac70a['id'],{'unitId':_0x4fe5f4,'subUnitId':_0x1d5dca,'connectorShapeId':_0x90d6cd[_0x4e2616(0x20d)],'width':_0xe9ee61[_0x4e2616(0x211)]['width'],'height':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x218)],'left':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1dd)],'top':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x21d)],'flipX':_0xe9ee61['worldRect'][_0x4e2616(0x1c9)]||!0x1,'flipY':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1e2)]||!0x1,'oldAdjustValues':_0x32b2f6,'newAdjustValues':_0xe9ee61[_0x4e2616(0x21b)],'newLineType':_0xe9ee61['lineType'],'oldLineType':_0x1e639e,'rotation':_0xe9ee61[_0x4e2616(0x22c)],'oldRelation':_0x3fbcad,'newRelation':_0x3834d4});}[_0x2294c8(0x1e7)](_0x143ada,_0x5976d4,_0xffcd87,_0x5be5dd){const _0x3d4c33=_0x2294c8;let _0x2e2d92=this[_0x3d4c33(0x22e)]['get'](_0x4e860d)[_0x3d4c33(0x22a)]({'unitId':_0x5976d4,'subUnitId':_0xffcd87,'drawingId':_0x5be5dd});if(_0x2e2d92!=null&&_0x2e2d92[_0x3d4c33(0x228)]){var _0x1ccff4,_0x5bd70f,_0x19c628,_0x50ccaf;_0x143ada['x']=(_0x1ccff4=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1dd)])==null?0x0:_0x1ccff4,_0x143ada['y']=(_0x5bd70f=_0x2e2d92[_0x3d4c33(0x228)]['top'])==null?0x0:_0x5bd70f,_0x143ada[_0x3d4c33(0x1c5)]=(_0x19c628=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1c5)])==null?_0x143ada[_0x3d4c33(0x1c5)]:_0x19c628,_0x143ada[_0x3d4c33(0x218)]=(_0x50ccaf=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x218)])==null?_0x143ada[_0x3d4c33(0x218)]:_0x50ccaf;}let _0x112727=this[_0x3d4c33(0x22e)][_0x3d4c33(0x1e3)](_0x5c3722)[_0x3d4c33(0x1fa)](_0x5976d4,_0xffcd87,_0x5be5dd);if(_0x112727){_0x143ada[_0x3d4c33(0x222)]=_0x112727[_0x3d4c33(0x1f6)]();let _0x3bd835=_0x112727[_0x3d4c33(0x1e1)]();_0x3bd835&&(_0x143ada[_0x3d4c33(0x1d3)]=JSON['parse'](JSON[_0x3d4c33(0x1d0)](_0x3bd835)));}}[_0x2294c8(0x208)](_0x1dacb4,_0x59248c,_0x17164b,_0x70a6a,_0x5708c8,_0x21c049,_0x1ce575,_0x3fb1bd,_0x2e2563){const _0x1493bd=_0x2294c8;let _0x15ffa2=null,_0x57025e=null;return _0x5708c8&&(_0x15ffa2=I(_0x1dacb4,_0x59248c,_0x5708c8[_0x1493bd(0x1f1)][_0x1493bd(0x20d)],_0x5708c8[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x21c049&&(_0x57025e=I(_0x1dacb4,_0x59248c,_0x21c049[_0x1493bd(0x1f1)]['drawId'],_0x21c049[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x15ffa2||(_0x15ffa2=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b['drawId'],!0x0,_0x57025e,_0x2e2563==null?void 0x0:_0x2e2563[_0x1493bd(0x1f3)],_0x1ce575,_0x3fb1bd)),_0x57025e||(_0x57025e=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b[_0x1493bd(0x20d)],!0x1,_0x15ffa2,_0x2e2563==null?void 0x0:_0x2e2563['to'],_0x1ce575,_0x3fb1bd)),{'startInfo':_0x15ffa2,'endInfo':_0x57025e};}['_resolveExistingOrFreeEndpoint'](_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x5d0a85,_0x67d839,_0x39c03d){const _0x59461b=_0x2294c8;if(_0x5d0a85){let _0x5d38ef=I(_0xc5558a,_0x98c206,_0x5d0a85[_0x59461b(0x234)],_0x5d0a85[_0x59461b(0x226)],_0x67d839,_0x39c03d);if(_0x5d38ef)return _0x5d38ef;}return _0x3c06ec?R(_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x67d839,_0x39c03d):null;}};_0x4f6f37[_0x2294c8(0x1f8)](z);export{F as FConnectorShape,P as FShape};