@univerjs-pro/sheets-shape 1.0.0-alpha.2 → 1.0.0-alpha.4
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/README.md +7 -2
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/adapters/sheet-shape-host.adapter.d.ts +21 -0
- package/lib/types/commands/command/add-shape.command.d.ts +7 -0
- package/lib/types/commands/command/set-shape-drawing-data.command.d.ts +7 -0
- package/lib/types/controllers/sheets-shape.controller.d.ts +4 -1
- package/lib/types/facade/f-shape.d.ts +12 -690
- package/lib/types/facade/f-worksheet.d.ts +44 -209
- package/lib/types/facade/index.d.ts +2 -12
- package/lib/types/index.d.ts +2 -8
- package/lib/types/plugin.d.ts +2 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -9
- package/lib/types/facade/f-connector-shape.d.ts +0 -189
- package/lib/types/facade/f-enum.d.ts +0 -203
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x505d(){const _0x3feeed=['DRAWING_SHAPE','Injector','_serializeShapeForUnit','26012PZlTNu','prototype','clear','sheet.mutation.insert-shape','left','getBasicShapeRelation','call','@univerjs/drawing','params','ShapeModel','@univerjs-pro/sheets-shape','89392brCJgQ','getShapeRelation','result','version','MUTATION','disposeWithMe','DrawingApplyType','onCommandExecute','@univerjs/sheets','getLineShapeRelation','96CwBtwJ','RemoveSheetsShapeMutation','getShapeData','_initCommands','UniverSheetsDrawing','sheet.command.set-shape-drawing-data','InsertSheetsShapeMutation','set','UpdateSheetsShapeTypeMutation','_addLineFollowShapeUpdates','lineShapeId','getConnectionSiteList','ToggleSheetsShapeFlipCommand','function','has','updateContext','flipX','shapeId','_groupIds','removeShape','worldRect','getEndConnectInfo','registerPluginResource','SetDrawingApplyMutation','_shapes','sheet.command.update-shape-type','@univerjs-pro/engine-shape','INSERT','267850DKrett','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','type','getSkeleton','interceptCommand','getShapeModel','Plugin','get','addShape','preRedos','getBatchUpdateOp','_configService','pluginName','top','UniverCore','ang','REMOVE','position','_resourcesManagerService','getDrawingData','setConfig','data','_initCommandInterceptor','getShapeType','iterator','_sheetInterceptorService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_initSnapshot','453768JAVuSV','sequenceExecute','setShapeData','object','SHEET_SHAPE_PLUGIN','sin','stringify','SheetsShapeService','borderEnabled','sheet.command.insert-shape','drawingType','Inject','transformToAxisAlignPosition','IResourceManagerService','getDrawingByParam','sheet.command.set-shape-text-vertical-toggle','_disposed','sheet.mutation.remove-shape','symbol','ensureSkeleton','touchDependencies','filter','getShapeTypeById','_config','@univerjs-pro/license','_sheetSkeletonService','hasShape','range','find','length','merge','23065TzElpM','_shapeModelManagerMap','Disposable','redos','transformToDrawingPosition','values','CommandType','rotateEnabled','undos','exports','_addLineRerouteUpdates','InsertShapeCommand','_injector','43069LEsmwR','IConfigService','@univerjs/sheets-drawing','from','DrawingTypeEnum','_deserializeShapeForUnit','syncExecuteCommand','removeLinePoints','index','resizeEnabled','IUniverInstanceService','@univerjs/core','getBasicShapeRotateBound','keys','getOwnPropertyDescriptor','add','onStarting','toJSON','lineType','SetShapeDrawingDataCommand','ClearSheetDrawingTransformerOperation','push','adjustValues','_commandService','SetSheetDrawingCommand','COMMAND','_ensureShapeModelManager','forEach','DEFAULT_SHAPE_HEIGHT','defineProperty','flipY','transform','DEFAULT_SHAPE_WIDTH','startY','string','height','UniverLicensePlugin','getBatchAddOp','UniverSheetsShapePlugin','UpdateLineShapeResizeCommand','delete','registerCommand','_sheetsShapeService','getCellIndexAndOffsetByPosition','getShapeTextData','UniverProSheetsShape','IDrawingManagerService','preUndos','getShapeDisplayNames','getStartConnectInfo','decorate','getId','UniverProLicense','default','_drawingManagerService','isHorizontal','routeConnectorLineShape','computeConnectorRouteLayout','ISheetDrawingService','dispose','getSheetCommandTarget','_linesIds','_getConnectPointInfo','setShapeType','every','angle','assign','SetSheetsShapeRotateCommand','pushUndoRedo','SheetInterceptorService','UniverSheets','fill','fromJSON','IUndoRedoService','UniverProEngineShape','rotation','constructor','UniverInstanceType','isFrom','amd','map','width','isConnectorShape','UniverDrawing','shapeName','366936ZFdwcc','getAdjustValueByName','cxnIndex','UPDATE','ICommandService','SheetSkeletonService','UNIVER_SHEET','parse','UpdateSheetsShapeTypeCommand'];_0x505d=function(){return _0x3feeed;};return _0x505d();}function _0x28b0(_0x1ceae2,_0x177d5c){_0x1ceae2=_0x1ceae2-0x1d1;const _0x505de4=_0x505d();let _0x28b0d9=_0x505de4[_0x1ceae2];return _0x28b0d9;}(function(_0x1366c4,_0x4b2baf){const _0x808e22=_0x28b0,_0xb78bd6=_0x1366c4();while(!![]){try{const _0x399ce3=-parseInt(_0x808e22(0x287))/0x1+-parseInt(_0x808e22(0x202))/0x2+-parseInt(_0x808e22(0x223))/0x3*(-parseInt(_0x808e22(0x20e))/0x4)+parseInt(_0x808e22(0x23f))/0x5+parseInt(_0x808e22(0x25b))/0x6+parseInt(_0x808e22(0x27a))/0x7+parseInt(_0x808e22(0x219))/0x8;if(_0x399ce3===_0x4b2baf)break;else _0xb78bd6['push'](_0xb78bd6['shift']());}catch(_0x584f84){_0xb78bd6['push'](_0xb78bd6['shift']());}}}(_0x505d,0x1e92a),function(_0x2263c8,_0x2c39fd){const _0x63e559=_0x28b0;typeof exports==_0x63e559(0x25e)&&typeof module<'u'?_0x2c39fd(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x63e559(0x230)&&define[_0x63e559(0x1fc)]?define([_0x63e559(0x283),_0x63e559(0x23d),_0x63e559(0x292),_0x63e559(0x221),_0x63e559(0x289),_0x63e559(0x273),_0x63e559(0x215)],_0x2c39fd):(_0x2263c8=typeof globalThis<'u'?globalThis:_0x2263c8||self,_0x2c39fd(_0x2263c8[_0x63e559(0x1da)]={},_0x2263c8[_0x63e559(0x1f7)],_0x2263c8[_0x63e559(0x24d)],_0x2263c8[_0x63e559(0x1f3)],_0x2263c8[_0x63e559(0x227)],_0x2263c8[_0x63e559(0x1e1)],_0x2263c8[_0x63e559(0x200)]));}(this,function(_0x4937cb,_0x2a5118,_0x1d6eec,_0x5c5201,_0x49fa79,_0x27dcb2,_0x1c64e2){const _0x171b41=_0x28b0;Object[_0x171b41(0x2a4)](_0x4937cb,Symbol['toStringTag'],{'value':'Module'});function _0x928f21(_0x2349b7){'@babel/helpers - typeof';const _0x37cbdf=_0x171b41;return _0x928f21=typeof Symbol==_0x37cbdf(0x230)&&typeof Symbol[_0x37cbdf(0x257)]=='symbol'?function(_0x27f630){return typeof _0x27f630;}:function(_0x15cb1c){const _0x55c6c7=_0x37cbdf;return _0x15cb1c&&typeof Symbol=='function'&&_0x15cb1c[_0x55c6c7(0x1f9)]===Symbol&&_0x15cb1c!==Symbol[_0x55c6c7(0x20f)]?_0x55c6c7(0x26d):typeof _0x15cb1c;},_0x928f21(_0x2349b7);}function _0x56bfd0(_0x57047e,_0xc9e55c){const _0x37379d=_0x171b41;if(_0x928f21(_0x57047e)!=_0x37379d(0x25e)||!_0x57047e)return _0x57047e;var _0xb4664f=_0x57047e[Symbol['toPrimitive']];if(_0xb4664f!==void 0x0){var _0x2d4b14=_0xb4664f[_0x37379d(0x214)](_0x57047e,_0xc9e55c||_0x37379d(0x1e2));if(_0x928f21(_0x2d4b14)!='object')return _0x2d4b14;throw TypeError(_0x37379d(0x240));}return(_0xc9e55c===_0x37379d(0x2a9)?String:Number)(_0x57047e);}function _0x3cd237(_0x5d0f00){const _0x31c818=_0x171b41;var _0x41cf8b=_0x56bfd0(_0x5d0f00,_0x31c818(0x2a9));return _0x928f21(_0x41cf8b)=='symbol'?_0x41cf8b:_0x41cf8b+'';}function _0x238d30(_0x160e07,_0x329e31,_0x539063){const _0x3efdba=_0x171b41;return(_0x329e31=_0x3cd237(_0x329e31))in _0x160e07?Object[_0x3efdba(0x2a4)](_0x160e07,_0x329e31,{'value':_0x539063,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x160e07[_0x329e31]=_0x539063,_0x160e07;}var _0x20a5e7=class extends _0x1d6eec['Disposable']{constructor(){const _0x1cb334=_0x171b41;super(),_0x238d30(this,_0x1cb334(0x23b),new Map()),_0x238d30(this,'_linesIds',new Set()),_0x238d30(this,_0x1cb334(0x235),new Set());}[_0x171b41(0x247)](_0x1e04a3,_0x3ead01,_0x3aed1a,_0x1ce6fa){const _0x323fa8=_0x171b41;let _0x531582=new _0x2a5118[(_0x323fa8(0x217))](_0x1e04a3,_0x3ead01,_0x3aed1a,_0x1ce6fa);return this[_0x323fa8(0x23b)][_0x323fa8(0x22a)](_0x3ead01,_0x531582),(0x0,_0x2a5118[_0x323fa8(0x1ff)])(_0x1e04a3)&&this[_0x323fa8(0x1ea)][_0x323fa8(0x296)](_0x3ead01),_0x531582;}[_0x171b41(0x213)](_0x55ba2a){const _0x6eb55c=_0x171b41;let _0x15afa6=[];for(let _0x2212b2 of this[_0x6eb55c(0x1ea)]){let _0x169563=this[_0x6eb55c(0x23b)][_0x6eb55c(0x246)](_0x2212b2);if(_0x169563){let _0x45ac47=_0x169563[_0x6eb55c(0x21a)]();if(_0x45ac47){var _0x2a62bb,_0xd76f3b;((_0x2a62bb=_0x45ac47[_0x6eb55c(0x28a)])==null?void 0x0:_0x2a62bb['shapeId'])===_0x55ba2a&&_0x15afa6['push']({..._0x45ac47[_0x6eb55c(0x28a)],'lineShapeId':_0x2212b2,'isFrom':!0x0}),((_0xd76f3b=_0x45ac47['to'])==null?void 0x0:_0xd76f3b[_0x6eb55c(0x234)])===_0x55ba2a&&_0x15afa6['push']({..._0x45ac47['to'],'lineShapeId':_0x2212b2,'isFrom':!0x1});}}}return _0x15afa6;}[_0x171b41(0x222)](_0x3f6062){const _0x1479bb=_0x171b41;let _0x4bbe6d=this[_0x1479bb(0x23b)][_0x1479bb(0x246)](_0x3f6062);if(_0x4bbe6d)return _0x4bbe6d[_0x1479bb(0x21a)]();}[_0x171b41(0x256)](_0x25da9f){let _0x4f3f78=this['_shapes']['get'](_0x25da9f);if(_0x4f3f78)return _0x4f3f78['getShapeType']();}[_0x171b41(0x275)](_0x55906c){const _0x408c5a=_0x171b41;return this[_0x408c5a(0x23b)][_0x408c5a(0x231)](_0x55906c);}[_0x171b41(0x1dd)](){const _0x1b258b=_0x171b41;return Array[_0x1b258b(0x28a)](this[_0x1b258b(0x23b)][_0x1b258b(0x27f)]())[_0x1b258b(0x1fd)](_0x34235c=>_0x34235c['getName']()||_0x34235c[_0x1b258b(0x1e0)]());}['removeShape'](_0x32a0b0){const _0x37bd60=_0x171b41;let _0x8234ee=this[_0x37bd60(0x23b)][_0x37bd60(0x246)](_0x32a0b0);_0x8234ee&&((0x0,_0x2a5118[_0x37bd60(0x1ff)])(_0x8234ee[_0x37bd60(0x256)]())&&this['_linesIds']['delete'](_0x32a0b0),this[_0x37bd60(0x23b)][_0x37bd60(0x1d5)](_0x32a0b0));}[_0x171b41(0x298)](){const _0x11d519=_0x171b41;let _0x8feeca=[];return this['_shapes'][_0x11d519(0x2a2)](_0x3e419b=>{const _0x4cbe25=_0x11d519;_0x8feeca[_0x4cbe25(0x29c)](_0x3e419b[_0x4cbe25(0x298)]());}),_0x8feeca;}[_0x171b41(0x1f5)](_0x963ed4){const _0x3abc04=_0x171b41;for(let _0x1163e4 of _0x963ed4){let {id:_0x1ed53c,shapeType:_0x390ee1,name:_0x36134e}=_0x1163e4,_0x1527f3=this['addShape'](_0x390ee1,_0x1ed53c,_0x1163e4['shapeData'],_0x36134e);_0x1527f3&&_0x1527f3['isLineShape']()&&this['_linesIds'][_0x3abc04(0x296)](_0x1ed53c);}}['dispose'](){const _0x18cfe3=_0x171b41;this[_0x18cfe3(0x26b)]||(this[_0x18cfe3(0x23b)][_0x18cfe3(0x2a2)](_0x4c50a1=>{_0x4c50a1['dispose']();}),this[_0x18cfe3(0x23b)][_0x18cfe3(0x210)](),this[_0x18cfe3(0x1ea)][_0x18cfe3(0x210)](),this['_groupIds'][_0x18cfe3(0x210)](),super[_0x18cfe3(0x1e8)]());}};function _0x3b59bc(_0x3bcdd8,_0x1daf71){return function(_0x2bbda2,_0x8ba482){_0x1daf71(_0x2bbda2,_0x8ba482,_0x3bcdd8);};}function _0x3af845(_0x8acc32,_0xc4f0ed,_0x4eb3d2,_0x221c41){const _0x35f9c4=_0x171b41;var _0x141127=arguments[_0x35f9c4(0x278)],_0x14d46a=_0x141127<0x3?_0xc4f0ed:_0x221c41===null?_0x221c41=Object[_0x35f9c4(0x295)](_0xc4f0ed,_0x4eb3d2):_0x221c41,_0x38c882;if(typeof Reflect==_0x35f9c4(0x25e)&&typeof Reflect[_0x35f9c4(0x1df)]=='function')_0x14d46a=Reflect[_0x35f9c4(0x1df)](_0x8acc32,_0xc4f0ed,_0x4eb3d2,_0x221c41);else{for(var _0x5417ae=_0x8acc32[_0x35f9c4(0x278)]-0x1;_0x5417ae>=0x0;_0x5417ae--)(_0x38c882=_0x8acc32[_0x5417ae])&&(_0x14d46a=(_0x141127<0x3?_0x38c882(_0x14d46a):_0x141127>0x3?_0x38c882(_0xc4f0ed,_0x4eb3d2,_0x14d46a):_0x38c882(_0xc4f0ed,_0x4eb3d2))||_0x14d46a);}return _0x141127>0x3&&_0x14d46a&&Object[_0x35f9c4(0x2a4)](_0xc4f0ed,_0x4eb3d2,_0x14d46a),_0x14d46a;}let _0x53616c=class extends _0x1d6eec[_0x171b41(0x27c)]{constructor(_0xecba54){const _0x5517a2=_0x171b41;super(),this[_0x5517a2(0x251)]=_0xecba54,_0x238d30(this,_0x5517a2(0x27b),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0x2524f8,_0x535abf){const _0x4d9ec5=_0x171b41;let _0x57046c=this[_0x4d9ec5(0x27b)][_0x4d9ec5(0x246)](_0x2524f8);_0x57046c||(_0x57046c=new Map(),this[_0x4d9ec5(0x27b)][_0x4d9ec5(0x22a)](_0x2524f8,_0x57046c));let _0x442f8c=_0x57046c[_0x4d9ec5(0x246)](_0x535abf);return _0x442f8c||(_0x442f8c=new _0x20a5e7(),_0x57046c['set'](_0x535abf,_0x442f8c)),_0x442f8c;}['insertShape'](_0x4078b9,_0x10ea89,_0x4424d8,_0x1fdf1f,_0x55d516,_0x2da7e5){this['_ensureShapeModelManager'](_0x4078b9,_0x10ea89)['addShape'](_0x4424d8,_0x1fdf1f,_0x55d516,_0x2da7e5);}['removeShape'](_0x5291bb,_0x44929a,_0x28cb63){const _0x31f16f=_0x171b41;this[_0x31f16f(0x2a1)](_0x5291bb,_0x44929a)['removeShape'](_0x28cb63);}['getBasicShapeType'](_0xaa5997,_0x2867c5,_0x5d7de9){const _0x413c92=_0x171b41;return this[_0x413c92(0x2a1)](_0xaa5997,_0x2867c5)[_0x413c92(0x256)](_0x5d7de9);}[_0x171b41(0x256)](_0x395c87,_0x56e1d8,_0x18a395){const _0x1b47c4=_0x171b41;return this[_0x1b47c4(0x2a1)](_0x395c87,_0x56e1d8)[_0x1b47c4(0x256)](_0x18a395);}['hasShape'](_0x1f70d4,_0x36e739,_0x5b5afa){const _0xb2b956=_0x171b41;return this[_0xb2b956(0x2a1)](_0x1f70d4,_0x36e739)[_0xb2b956(0x275)](_0x5b5afa);}[_0x171b41(0x271)](_0x5e6758,_0x3b457a,_0x1c34e2){const _0x31c08b=_0x171b41;return this[_0x31c08b(0x2a1)](_0x5e6758,_0x3b457a)[_0x31c08b(0x256)](_0x1c34e2);}['getShapeDataById'](_0x242b71,_0x2eabc4,_0x107ebc){const _0xfad6d5=_0x171b41;let _0x298282=this[_0xfad6d5(0x2a1)](_0x242b71,_0x2eabc4);if(!_0x298282[_0xfad6d5(0x256)](_0x107ebc))return;let _0x5c82c3=_0x298282[_0xfad6d5(0x23b)][_0xfad6d5(0x246)](_0x107ebc);if(_0x5c82c3)return _0x5c82c3[_0xfad6d5(0x225)]();}[_0x171b41(0x1dd)](_0x1cb07d,_0x4fe0dc){const _0x546008=_0x171b41;return this[_0x546008(0x2a1)](_0x1cb07d,_0x4fe0dc)['getShapeDisplayNames']();}[_0x171b41(0x244)](_0x4a17ea,_0x2b8cea,_0xf7f980){const _0x4bc1b7=_0x171b41;return this[_0x4bc1b7(0x2a1)](_0x4a17ea,_0x2b8cea)['_shapes'][_0x4bc1b7(0x246)](_0xf7f980);}[_0x171b41(0x213)](_0x2d4501,_0x482e4a,_0x3386c4){const _0x26b1fd=_0x171b41;return this[_0x26b1fd(0x2a1)](_0x2d4501,_0x482e4a)['getBasicShapeRelation'](_0x3386c4);}[_0x171b41(0x222)](_0x25793b,_0x41c97a,_0x259cf3){const _0x512ece=_0x171b41;let _0x13e190=this[_0x512ece(0x2a1)](_0x25793b,_0x41c97a)[_0x512ece(0x23b)][_0x512ece(0x246)](_0x259cf3);if(_0x13e190)return _0x13e190[_0x512ece(0x21a)]();}[_0x171b41(0x1ec)](){}[_0x171b41(0x20d)](_0x1f49e5){const _0x3e1174=_0x171b41;let _0x1c72f7={},_0x22f432=this['_shapeModelManagerMap'][_0x3e1174(0x246)](_0x1f49e5);return _0x22f432&&_0x22f432['forEach']((_0x58160f,_0x321396)=>{const _0x2489c5=_0x3e1174;let _0x31051c=_0x58160f[_0x2489c5(0x298)]();_0x31051c[_0x2489c5(0x278)]>0x0&&(_0x1c72f7[_0x321396]=_0x31051c);}),JSON[_0x3e1174(0x261)](_0x1c72f7);}[_0x171b41(0x28c)](_0x33482f,_0x3660a5){const _0x515d32=_0x171b41;Object['keys'](_0x3660a5)[_0x515d32(0x2a2)](_0x282f01=>{const _0x57de56=_0x515d32;this[_0x57de56(0x2a1)](_0x33482f,_0x282f01)['fromJSON'](_0x3660a5[_0x282f01]);});}[_0x171b41(0x298)](){const _0x30cef6=_0x171b41;let _0x44493d={};return this[_0x30cef6(0x27b)]['forEach']((_0x1707b8,_0x313188)=>{const _0x192eb4=_0x30cef6;_0x44493d[_0x313188]={},_0x1707b8[_0x192eb4(0x2a2)]((_0x2d4ad8,_0x3419f8)=>{_0x44493d[_0x313188][_0x3419f8]=_0x2d4ad8['toJSON']();});}),_0x44493d;}[_0x171b41(0x1f5)](_0x220bd3){Object['keys'](_0x220bd3)['forEach'](_0x369d4f=>{const _0xaf3946=_0x28b0;let _0x5680a6=_0x220bd3[_0x369d4f];Object[_0xaf3946(0x294)](_0x5680a6)[_0xaf3946(0x2a2)](_0x268d71=>{const _0x50f6d2=_0xaf3946;this[_0x50f6d2(0x2a1)](_0x369d4f,_0x268d71)['fromJSON'](_0x5680a6[_0x268d71]);});});}[_0x171b41(0x25a)](){const _0x3cf35e=_0x171b41;this[_0x3cf35e(0x251)][_0x3cf35e(0x239)]({'pluginName':_0x3cf35e(0x25f),'businesses':[_0x1d6eec[_0x3cf35e(0x1fa)][_0x3cf35e(0x208)]],'toJson':_0x340580=>this['_serializeShapeForUnit'](_0x340580),'parseJson':_0x203d3b=>JSON[_0x3cf35e(0x209)](_0x203d3b),'onLoad':(_0x2860b7,_0x39d125)=>{const _0x56d1df=_0x3cf35e;this[_0x56d1df(0x28c)](_0x2860b7,_0x39d125);},'onUnLoad':_0x5009c3=>{const _0x51555c=_0x3cf35e;let _0x2fdde4=this[_0x51555c(0x27b)][_0x51555c(0x246)](_0x5009c3);_0x2fdde4&&(_0x2fdde4['forEach'](_0x25c52b=>{const _0x2e96aa=_0x51555c;_0x25c52b[_0x2e96aa(0x1e8)]();}),this['_shapeModelManagerMap'][_0x51555c(0x1d5)](_0x5009c3));}});}[_0x171b41(0x1e8)](){const _0x14f49c=_0x171b41;this[_0x14f49c(0x27b)]['forEach'](_0x9ad99b=>{_0x9ad99b['forEach'](_0x3117e1=>{const _0x40140f=_0x28b0;_0x3117e1[_0x40140f(0x1e8)]();});});}};_0x53616c=_0x3af845([_0x3b59bc(0x0,_0x1d6eec[_0x171b41(0x268)])],_0x53616c);let _0x22202d={'id':_0x171b41(0x211),'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x21d)],'handler':(_0x533560,_0x36278f)=>{let {unitId:_0x470796,subUnitId:_0x304b27,shapeType:_0x4e0356,shapeId:_0x8baa21,shapeName:_0x1a7a3b,shapeData:_0xc05734}=_0x36278f;return _0x533560['get'](_0x53616c)['insertShape'](_0x470796,_0x304b27,_0x4e0356,_0x8baa21,_0xc05734,_0x1a7a3b),!0x0;}},_0x5db064={'id':_0x171b41(0x26c),'type':_0x1d6eec['CommandType']['MUTATION'],'handler':(_0x55064d,_0x4982ba)=>{const _0xa4972c=_0x171b41;let {unitId:_0x2eb814,subUnitId:_0xa29478,shapeId:_0xd6f3e9}=_0x4982ba;return _0x55064d[_0xa4972c(0x246)](_0x53616c)[_0xa4972c(0x236)](_0x2eb814,_0xa29478,_0xd6f3e9),!0x0;}},_0x1dc333={'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x2a0)],'id':_0x171b41(0x264),'handler':(_0x5534c5,_0x2a089e)=>{const _0x46624e=_0x171b41;var _0x4858b8,_0x5643a6,_0x281a80;let _0x58f244=(0x0,_0x5c5201[_0x46624e(0x1e9)])(_0x5534c5[_0x46624e(0x246)](_0x1d6eec[_0x46624e(0x291)]),_0x2a089e);if(!_0x58f244)return!0x1;let _0x48ed7e=_0x5534c5[_0x46624e(0x246)](_0x5c5201[_0x46624e(0x207)]),{unitId:_0x295e49,subUnitId:_0x398c43}=_0x58f244,_0x27a6c8=_0x48ed7e['ensureSkeleton'](_0x295e49,_0x398c43);if(!_0x27a6c8)return!0x1;let _0x40775a=_0x5534c5['get'](_0x1d6eec[_0x46624e(0x206)]),_0x17ce30=_0x5534c5[_0x46624e(0x246)](_0x1d6eec[_0x46624e(0x1f6)]),_0xa9a527=_0x5534c5[_0x46624e(0x246)](_0x5c5201['SheetInterceptorService']),_0x5cbcc2=_0x5534c5['get'](_0x49fa79[_0x46624e(0x1e7)]),_0x451169=_0x5534c5[_0x46624e(0x246)](_0x53616c),{shapeType:_0x57f1e7,shapeData:_0x60c3}=_0x2a089e,_0x5f4432=_0x2a089e[_0x46624e(0x234)]||(0x0,_0x1d6eec['generateRandomId'])(),_0x397dd6={'unitId':_0x295e49,'subUnitId':_0x398c43,'shapeId':_0x5f4432,'shapeName':(_0x4858b8=_0x2a089e[_0x46624e(0x201)])==null?(0x0,_0x2a5118['createUniqueShapeName'])(_0x57f1e7,_0x451169[_0x46624e(0x1dd)](_0x295e49,_0x398c43)):_0x4858b8,'shapeType':_0x57f1e7,'shapeData':_0x60c3},_0x1fb6ce=_0x2a089e[_0x46624e(0x1fe)]||0xc8,_0x175b08=_0x2a089e[_0x46624e(0x2aa)]||0xc8,_0x20eaba=0x0,_0x4c20da=0x0,_0x2d010e={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3547c0={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x2a089e['position']){let {x:_0x8f4dfa,y:_0x3cf2c4}=_0x2a089e[_0x46624e(0x250)];_0x20eaba=_0x8f4dfa,_0x4c20da=_0x3cf2c4,_0x2d010e=_0x27a6c8[_0x46624e(0x1d8)](_0x8f4dfa,_0x3cf2c4),_0x3547c0=_0x27a6c8['getCellIndexAndOffsetByPosition'](_0x8f4dfa+_0x1fb6ce,_0x3cf2c4+_0x175b08);}else{if(_0x2a089e['range']){let {startRow:_0x224f4c,startColumn:_0x4dd39f}=_0x2a089e[_0x46624e(0x276)];_0x2d010e={'row':_0x224f4c,'rowOffset':0xa,'column':_0x4dd39f,'columnOffset':0xa};let _0x5e9f82=_0x27a6c8['getCellWithCoordByIndex'](_0x224f4c,_0x4dd39f);_0x20eaba=_0x5e9f82['startX']+0xa,_0x4c20da=_0x5e9f82[_0x46624e(0x2a8)]+0xa,_0x3547c0=_0x27a6c8[_0x46624e(0x1d8)](_0x20eaba+_0x1fb6ce,_0x4c20da+_0x175b08);}}let _0x236076={'from':_0x2d010e,'to':_0x3547c0},_0x3ef278={'unitId':_0x295e49,'subUnitId':_0x398c43,'drawingId':_0x5f4432,'drawingType':_0x1d6eec[_0x46624e(0x28b)][_0x46624e(0x20b)],'sheetTransform':_0x236076,'transform':{'left':_0x20eaba,'top':_0x4c20da,'width':_0x1fb6ce,'height':_0x175b08},'data':{'shapeType':_0x57f1e7,'shapeData':_0x60c3},'axisAlignSheetTransform':_0x236076,'allowTransform':!0x0};(0x0,_0x2a5118[_0x46624e(0x1ff)])(_0x57f1e7)&&(_0x3ef278[_0x46624e(0x254)][_0x46624e(0x1f4)]=!0x1,_0x3ef278['data'][_0x46624e(0x281)]=!0x1,_0x3ef278['data']['resizeEnabled']=!0x1,_0x3ef278[_0x46624e(0x254)][_0x46624e(0x263)]=!0x1,_0x3ef278[_0x46624e(0x2a6)][_0x46624e(0x281)]=!0x1,_0x3ef278[_0x46624e(0x2a6)][_0x46624e(0x290)]=!0x1,_0x3ef278['transform'][_0x46624e(0x263)]=!0x1);let {undo:_0x4e51cc,redo:_0x598beb,objects:_0x3f659c}=_0x5cbcc2[_0x46624e(0x1d2)]([_0x3ef278]),_0x3493a6=_0xa9a527['onCommandExecute']({'id':_0x49fa79['InsertSheetDrawingCommand']['id'],'params':{'unitId':_0x295e49,'drawings':[_0x3ef278]}}),_0x399780=[...(_0x5643a6=_0x3493a6[_0x46624e(0x248)])==null?[]:_0x5643a6,{'id':_0x49fa79[_0x46624e(0x23a)]['id'],'params':{'unitId':_0x295e49,'subUnitId':_0x398c43,'op':_0x598beb,'objects':_0x3f659c,'type':_0x49fa79[_0x46624e(0x21f)][_0x46624e(0x23e)]}},{'id':_0x49fa79['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x295e49]},..._0x3493a6[_0x46624e(0x27d)],{'id':_0x22202d['id'],'params':_0x397dd6}],_0x580df8=[{'id':_0x5db064['id'],'params':{'unitId':_0x295e49,'subUnitId':_0x398c43,'shapeId':_0x5f4432}},...(_0x281a80=_0x3493a6[_0x46624e(0x1dc)])==null?[]:_0x281a80,{'id':_0x49fa79['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x295e49,'subUnitId':_0x398c43,'op':_0x4e51cc,'objects':_0x3f659c,'type':_0x49fa79['DrawingApplyType'][_0x46624e(0x24f)]}},{'id':_0x49fa79[_0x46624e(0x29b)]['id'],'params':[_0x295e49]},..._0x3493a6[_0x46624e(0x282)]];return(0x0,_0x1d6eec[_0x46624e(0x25c)])(_0x399780,_0x40775a)[_0x46624e(0x21b)]?(_0x17ce30[_0x46624e(0x1f1)]({'unitID':_0x295e49,'undoMutations':_0x580df8,'redoMutations':_0x399780}),!0x0):!0x1;}},_0x593f51={'id':'sheet.mutation.update-shape-data','type':_0x1d6eec['CommandType'][_0x171b41(0x21d)],'handler':(_0xd297de,_0xf8ea9d)=>{const _0x2f7d9=_0x171b41;let {unitId:_0x2b05ea,subUnitId:_0x1eb4f3,shapeType:_0x11a3de,shapeId:_0x364677,shapeData:_0x173977}=_0xf8ea9d,_0x475ef2=_0xd297de[_0x2f7d9(0x246)](_0x53616c)[_0x2f7d9(0x244)](_0x2b05ea,_0x1eb4f3,_0x364677);return _0x475ef2&&(_0x11a3de!==void 0x0&&_0x475ef2[_0x2f7d9(0x1ec)](_0x11a3de),_0x173977&&(_0x475ef2==null||_0x475ef2['setShapeData'](_0x173977,!0x0))),!0x0;}},_0x1bfdad={'type':_0x1d6eec[_0x171b41(0x280)]['COMMAND'],'id':_0x171b41(0x228),'handler':(_0x463ee8,_0x17fcb0)=>{const _0x3fa915=_0x171b41;var _0x289888,_0x21ef2f;let _0x33837c=(0x0,_0x5c5201[_0x3fa915(0x1e9)])(_0x463ee8[_0x3fa915(0x246)](_0x1d6eec[_0x3fa915(0x291)]),_0x17fcb0);if(!_0x33837c)return!0x1;let _0x10690d=_0x463ee8[_0x3fa915(0x246)](_0x5c5201[_0x3fa915(0x207)]),{unitId:_0x19ef8a,subUnitId:_0x28673e}=_0x33837c,_0x5e934a=_0x10690d[_0x3fa915(0x26e)](_0x19ef8a,_0x28673e);if(!_0x5e934a)return!0x1;let _0x49839e=_0x463ee8['get'](_0x53616c),{shapeId:_0x3e3523,shapeType:_0x534684,shapeData:_0x311779,position:_0x768582,width:_0x5f5200,height:_0xd5ab42}=_0x17fcb0,_0x1d8f83=_0x49839e['getShapeModel'](_0x19ef8a,_0x28673e,_0x3e3523);if(!_0x1d8f83)return!0x1;let _0x5ef73d=_0x463ee8['get'](_0x1d6eec[_0x3fa915(0x206)]),_0x548899=_0x463ee8[_0x3fa915(0x246)](_0x1d6eec[_0x3fa915(0x1f6)]),_0x4d4182=_0x463ee8[_0x3fa915(0x246)](_0x5c5201[_0x3fa915(0x1f2)]),_0x2cc60e=_0x463ee8[_0x3fa915(0x246)](_0x49fa79[_0x3fa915(0x1e7)]),_0x5376f0={'unitId':_0x19ef8a,'subUnitId':_0x28673e,'shapeId':_0x3e3523,'shapeType':_0x534684,'shapeData':_0x311779},_0x1a52e5=_0x1d8f83[_0x3fa915(0x256)](),_0x9939cd=_0x1d8f83[_0x3fa915(0x225)](),{x:_0x272699,y:_0x524cf8}=_0x768582,_0x2390d7={'from':_0x5e934a[_0x3fa915(0x1d8)](_0x272699,_0x524cf8),'to':_0x5e934a[_0x3fa915(0x1d8)](_0x272699+_0x5f5200,_0x524cf8+_0xd5ab42)},_0xc306c8={'unitId':_0x19ef8a,'subUnitId':_0x28673e,'drawingId':_0x3e3523,'drawingType':_0x1d6eec['DrawingTypeEnum'][_0x3fa915(0x20b)],'sheetTransform':_0x2390d7,'transform':{'left':_0x272699,'top':_0x524cf8,'width':_0x5f5200,'height':_0xd5ab42},'data':{'shapeType':_0x534684,'shapeData':_0x311779},'axisAlignSheetTransform':_0x2390d7,'allowTransform':!0x0};(0x0,_0x2a5118[_0x3fa915(0x1ff)])(_0x534684)&&(_0xc306c8[_0x3fa915(0x254)]['fill']=!0x1,_0xc306c8[_0x3fa915(0x254)][_0x3fa915(0x281)]=!0x1,_0xc306c8[_0x3fa915(0x254)][_0x3fa915(0x290)]=!0x1,_0xc306c8[_0x3fa915(0x254)][_0x3fa915(0x263)]=!0x1,_0xc306c8[_0x3fa915(0x2a6)][_0x3fa915(0x281)]=!0x1,_0xc306c8[_0x3fa915(0x2a6)][_0x3fa915(0x290)]=!0x1,_0xc306c8[_0x3fa915(0x2a6)]['borderEnabled']=!0x1);let {undo:_0x2eb723,redo:_0x43c128,objects:_0x49f3ef}=_0x2cc60e[_0x3fa915(0x249)]([_0xc306c8]),_0x285146=_0x4d4182[_0x3fa915(0x220)]({'id':_0x49fa79[_0x3fa915(0x29f)]['id'],'params':{'unitId':_0x19ef8a,'drawings':[_0xc306c8]}}),_0x3961a4=[...(_0x289888=_0x285146[_0x3fa915(0x248)])==null?[]:_0x289888,{'id':_0x49fa79['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x19ef8a,'subUnitId':_0x28673e,'op':_0x43c128,'objects':_0x49f3ef,'type':_0x49fa79[_0x3fa915(0x21f)]['UPDATE']}},{'id':_0x49fa79[_0x3fa915(0x29b)]['id'],'params':[_0x19ef8a]},..._0x285146[_0x3fa915(0x27d)],{'id':_0x593f51['id'],'params':_0x5376f0}],_0x5e0614=[...(_0x21ef2f=_0x285146[_0x3fa915(0x1dc)])==null?[]:_0x21ef2f,{'id':_0x49fa79['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x19ef8a,'subUnitId':_0x28673e,'op':_0x2eb723,'objects':_0x49f3ef,'type':_0x49fa79[_0x3fa915(0x21f)]['UPDATE']}},{'id':_0x49fa79[_0x3fa915(0x29b)]['id'],'params':[_0x19ef8a]},..._0x285146[_0x3fa915(0x282)],{'id':_0x593f51['id'],'params':{'unitId':_0x19ef8a,'subUnitId':_0x28673e,'shapeType':_0x1a52e5,'shapeId':_0x3e3523,'shapeData':_0x9939cd}}];return(0x0,_0x1d6eec[_0x3fa915(0x25c)])(_0x3961a4,_0x5ef73d)[_0x3fa915(0x21b)]?(_0x548899[_0x3fa915(0x1f1)]({'unitID':_0x19ef8a,'undoMutations':_0x5e0614,'redoMutations':_0x3961a4}),!0x0):!0x1;}},_0x1e11f0={'type':_0x1d6eec['CommandType']['COMMAND'],'id':'sheet.command.toggle-shape-flip','handler':(_0x581541,_0x4ab215)=>{const _0x58af87=_0x171b41;var _0x1cf8c1,_0x239f0d;let _0xd9930e=(0x0,_0x5c5201[_0x58af87(0x1e9)])(_0x581541[_0x58af87(0x246)](_0x1d6eec[_0x58af87(0x291)]),_0x4ab215);if(!_0xd9930e)return!0x1;let _0x253d11=_0x581541[_0x58af87(0x246)](_0x5c5201[_0x58af87(0x207)]),{unitId:_0x489d41,subUnitId:_0x39a071}=_0xd9930e,_0x754ffb=_0x253d11[_0x58af87(0x242)](_0x489d41,_0x39a071);if(!_0x754ffb)return!0x1;let _0x1eab93=_0x581541[_0x58af87(0x246)](_0x49fa79[_0x58af87(0x1e7)]),{shapeId:_0x11fb71,flipH:_0x5f497c,flipV:_0x57fa7a}=_0x4ab215,_0x5596c3=_0x1eab93['getDrawingByParam']({'unitId':_0x489d41,'subUnitId':_0x39a071,'drawingId':_0x11fb71});if(!_0x5596c3)return!0x1;let _0x2f7326=_0x581541['get'](_0x53616c)[_0x58af87(0x244)](_0x489d41,_0x39a071,_0x11fb71);if(!_0x2f7326)return!0x1;let _0x53ae75=_0x581541[_0x58af87(0x246)](_0x1d6eec[_0x58af87(0x206)]),_0x49f13d=_0x581541['get'](_0x1d6eec[_0x58af87(0x1f6)]),_0x5e7304=_0x581541['get'](_0x5c5201['SheetInterceptorService']),_0x3217a3={..._0x5596c3[_0x58af87(0x2a6)]};_0x5f497c!==void 0x0&&(_0x3217a3[_0x58af87(0x233)]=!_0x3217a3[_0x58af87(0x233)]),_0x57fa7a!==void 0x0&&(_0x3217a3[_0x58af87(0x2a5)]=!_0x3217a3[_0x58af87(0x2a5)]);let _0xbe2e88=(0x0,_0x49fa79['transformToDrawingPosition'])(_0x3217a3,_0x754ffb),_0x587567=(0x0,_0x49fa79['transformToAxisAlignPosition'])(_0x3217a3,_0x754ffb),_0x11251a=_0x2f7326[_0x58af87(0x256)](),_0x3ad5d4=_0x2f7326[_0x58af87(0x225)](),_0x495b27={'unitId':_0x489d41,'subUnitId':_0x39a071,'drawingId':_0x11fb71,'drawingType':_0x1d6eec['DrawingTypeEnum'][_0x58af87(0x20b)],'sheetTransform':_0xbe2e88,'transform':_0x3217a3,'data':{'shapeType':_0x11251a,'shapeData':_0x3ad5d4},'axisAlignSheetTransform':_0x587567,'allowTransform':!0x0},{undo:_0x4b672f,redo:_0x254243,objects:_0x268879}=_0x1eab93[_0x58af87(0x249)]([_0x495b27]),_0x2239ec=_0x5e7304[_0x58af87(0x220)]({'id':_0x49fa79[_0x58af87(0x29f)]['id'],'params':{'unitId':_0x489d41,'drawings':[_0x495b27]}}),_0x3b302e=[...(_0x1cf8c1=_0x2239ec[_0x58af87(0x248)])==null?[]:_0x1cf8c1,{'id':_0x49fa79[_0x58af87(0x23a)]['id'],'params':{'unitId':_0x489d41,'subUnitId':_0x39a071,'op':_0x254243,'objects':_0x268879,'type':_0x49fa79[_0x58af87(0x21f)]['UPDATE']}},{'id':_0x49fa79[_0x58af87(0x29b)]['id'],'params':[_0x489d41]},..._0x2239ec[_0x58af87(0x27d)]],_0x3049e6=[...(_0x239f0d=_0x2239ec['preUndos'])==null?[]:_0x239f0d,{'id':_0x49fa79[_0x58af87(0x23a)]['id'],'params':{'unitId':_0x489d41,'subUnitId':_0x39a071,'op':_0x4b672f,'objects':_0x268879,'type':_0x49fa79['DrawingApplyType'][_0x58af87(0x205)]}},{'id':_0x49fa79[_0x58af87(0x29b)]['id'],'params':[_0x489d41]},..._0x2239ec[_0x58af87(0x282)]];if((0x0,_0x2a5118[_0x58af87(0x1ff)])(_0x11251a)){let _0x3e8fac=_0x2f7326[_0x58af87(0x21a)]();if(_0x3e8fac){let _0x5e7cf7={..._0x3e8fac};_0x5e7cf7[_0x58af87(0x28a)]=void 0x0,_0x5e7cf7['to']=void 0x0,_0x3b302e[_0x58af87(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x489d41,'subUnitId':_0x39a071,'shapeId':_0x11fb71,'shapeType':_0x11251a,'shapeData':{'relation':_0x5e7cf7}}}),_0x3049e6[_0x58af87(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x489d41,'subUnitId':_0x39a071,'shapeId':_0x11fb71,'shapeType':_0x11251a,'shapeData':{'relation':_0x3e8fac}}});}}return(0x0,_0x1d6eec[_0x58af87(0x25c)])(_0x3b302e,_0x53ae75)[_0x58af87(0x21b)]?(_0x49f13d[_0x58af87(0x1f1)]({'unitID':_0x489d41,'undoMutations':_0x3049e6,'redoMutations':_0x3b302e}),!0x0):!0x1;}},_0x420359={'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x2a0)],'id':'sheet.command.set-shape-rotate','handler':(_0x3a3e5f,_0x30c249)=>{const _0xea48fc=_0x171b41;var _0x20efba,_0x1fbec1;let _0x3891b4=(0x0,_0x5c5201[_0xea48fc(0x1e9)])(_0x3a3e5f[_0xea48fc(0x246)](_0x1d6eec[_0xea48fc(0x291)]),_0x30c249);if(!_0x3891b4)return!0x1;let _0x14eb88=_0x3a3e5f['get'](_0x5c5201['SheetSkeletonService']),{unitId:_0x4e6dcc,subUnitId:_0xb47d3a}=_0x3891b4,_0x2f32d6=_0x14eb88[_0xea48fc(0x242)](_0x4e6dcc,_0xb47d3a);if(!_0x2f32d6)return!0x1;let _0x5b966e=_0x3a3e5f[_0xea48fc(0x246)](_0x49fa79[_0xea48fc(0x1e7)]),{shapeId:_0x47b77a,rotate:_0x3a1fb1}=_0x30c249,_0x181f1f=_0x5b966e[_0xea48fc(0x269)]({'unitId':_0x4e6dcc,'subUnitId':_0xb47d3a,'drawingId':_0x47b77a});if(!_0x181f1f)return!0x1;let _0x33f349=_0x3a3e5f[_0xea48fc(0x246)](_0x53616c)[_0xea48fc(0x244)](_0x4e6dcc,_0xb47d3a,_0x47b77a);if(!_0x33f349)return!0x1;let _0x563001=_0x3a3e5f['get'](_0x1d6eec['ICommandService']),_0x47e229=_0x3a3e5f[_0xea48fc(0x246)](_0x1d6eec[_0xea48fc(0x1f6)]),_0x4ee747=_0x3a3e5f[_0xea48fc(0x246)](_0x5c5201['SheetInterceptorService']),_0x176628={..._0x181f1f['transform']};_0x3a1fb1!==void 0x0&&(_0x176628[_0xea48fc(0x1ee)]=(_0x176628[_0xea48fc(0x1ee)]||0x0)+_0x3a1fb1);let _0x6e5741=(0x0,_0x49fa79['transformToDrawingPosition'])(_0x176628,_0x2f32d6),_0x38075b=(0x0,_0x49fa79['transformToAxisAlignPosition'])(_0x176628,_0x2f32d6),_0x5b8605=_0x33f349[_0xea48fc(0x256)](),_0x119ea9=_0x33f349[_0xea48fc(0x225)](),_0x2d8425={'unitId':_0x4e6dcc,'subUnitId':_0xb47d3a,'drawingId':_0x47b77a,'drawingType':_0x1d6eec[_0xea48fc(0x28b)][_0xea48fc(0x20b)],'sheetTransform':_0x6e5741,'transform':_0x176628,'data':{'shapeType':_0x5b8605,'shapeData':_0x119ea9},'axisAlignSheetTransform':_0x38075b,'allowTransform':!0x0},{undo:_0x426f1e,redo:_0x36a11d,objects:_0x30d07f}=_0x5b966e[_0xea48fc(0x249)]([_0x2d8425]),_0x1b62f8=_0x4ee747[_0xea48fc(0x220)]({'id':_0x49fa79[_0xea48fc(0x29f)]['id'],'params':{'unitId':_0x4e6dcc,'drawings':[_0x2d8425]}}),_0x19fcda=[...(_0x20efba=_0x1b62f8['preRedos'])==null?[]:_0x20efba,{'id':_0x49fa79[_0xea48fc(0x23a)]['id'],'params':{'unitId':_0x4e6dcc,'subUnitId':_0xb47d3a,'op':_0x36a11d,'objects':_0x30d07f,'type':_0x49fa79[_0xea48fc(0x21f)][_0xea48fc(0x205)]}},{'id':_0x49fa79[_0xea48fc(0x29b)]['id'],'params':[_0x4e6dcc]},..._0x1b62f8[_0xea48fc(0x27d)]],_0x465140=[...(_0x1fbec1=_0x1b62f8[_0xea48fc(0x1dc)])==null?[]:_0x1fbec1,{'id':_0x49fa79[_0xea48fc(0x23a)]['id'],'params':{'unitId':_0x4e6dcc,'subUnitId':_0xb47d3a,'op':_0x426f1e,'objects':_0x30d07f,'type':_0x49fa79[_0xea48fc(0x21f)][_0xea48fc(0x205)]}},{'id':_0x49fa79[_0xea48fc(0x29b)]['id'],'params':[_0x4e6dcc]},..._0x1b62f8[_0xea48fc(0x282)]];return(0x0,_0x1d6eec[_0xea48fc(0x25c)])(_0x19fcda,_0x563001)['result']?(_0x47e229['pushUndoRedo']({'unitID':_0x4e6dcc,'undoMutations':_0x465140,'redoMutations':_0x19fcda}),!0x0):!0x1;}},_0x32e2da={'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x2a0)],'id':_0x171b41(0x26a),'handler':(_0x4c60e1,_0x2e9fd0)=>{const _0x1e61ce=_0x171b41;var _0x4cc1de;let _0x553297=(0x0,_0x5c5201[_0x1e61ce(0x1e9)])(_0x4c60e1[_0x1e61ce(0x246)](_0x1d6eec[_0x1e61ce(0x291)]),_0x2e9fd0);if(!_0x553297)return!0x1;let {unitId:_0x10b6a6,subUnitId:_0x366ee}=_0x553297,{shapeId:_0x1ffee1}=_0x2e9fd0,_0x3c3103=_0x4c60e1[_0x1e61ce(0x246)](_0x53616c)[_0x1e61ce(0x244)](_0x10b6a6,_0x366ee,_0x1ffee1);if(!_0x3c3103)return!0x1;let _0x482442=_0x3c3103[_0x1e61ce(0x1d9)](),_0x57d8bb=(_0x4cc1de=_0x482442==null?void 0x0:_0x482442[_0x1e61ce(0x1e4)])==null?!0x0:_0x4cc1de,_0x571e16=!_0x57d8bb,_0x59ae4c=_0x4c60e1['get'](_0x1d6eec['ICommandService']),_0x579268=_0x4c60e1[_0x1e61ce(0x246)](_0x1d6eec[_0x1e61ce(0x1f6)]),_0x159f9e={'unitId':_0x10b6a6,'subUnitId':_0x366ee,'shapeId':_0x1ffee1,'shapeData':{'shapeText':{'isHorizontal':_0x571e16}}},_0x536ad0={'unitId':_0x10b6a6,'subUnitId':_0x366ee,'shapeId':_0x1ffee1,'shapeData':{'shapeText':{'isHorizontal':_0x57d8bb}}},_0x4921c9=[{'id':_0x593f51['id'],'params':_0x159f9e}],_0x2db3b6=[{'id':_0x593f51['id'],'params':_0x536ad0}];return(0x0,_0x1d6eec[_0x1e61ce(0x25c)])(_0x4921c9,_0x59ae4c)[_0x1e61ce(0x21b)]?(_0x579268['pushUndoRedo']({'unitID':_0x10b6a6,'undoMutations':_0x2db3b6,'redoMutations':_0x4921c9}),!0x0):!0x1;}},_0x271aa8={'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x2a0)],'id':'sheet.command.update-connector-relation','handler':(_0x57e54d,_0x35c2b5)=>{const _0x2f73de=_0x171b41;var _0x56b5b1,_0x4fde85,_0x1402c3,_0x589aef;let _0xf6b2ca=(0x0,_0x5c5201['getSheetCommandTarget'])(_0x57e54d[_0x2f73de(0x246)](_0x1d6eec[_0x2f73de(0x291)]),_0x35c2b5);if(!_0xf6b2ca)return!0x1;let _0x6132d1=_0x57e54d[_0x2f73de(0x246)](_0x5c5201['SheetSkeletonService']),{unitId:_0x540d0a,subUnitId:_0x15e71a}=_0xf6b2ca,_0x4edd02=_0x6132d1['getSkeleton'](_0x540d0a,_0x15e71a);if(!_0x4edd02)return!0x1;let _0x4f0d0f=_0x57e54d[_0x2f73de(0x246)](_0x49fa79[_0x2f73de(0x1e7)]),{connectorShapeId:_0xaa6954,width:_0x5a4f9,height:_0x59fbe7,left:_0x29938c,top:_0x2c439c,flipX:_0x34dd62,flipY:_0x3746fe,rotation:_0x70e229,oldAdjustValues:_0x3a4d19,newAdjustValues:_0x2458a0,oldLineType:_0x48f13f,newLineType:_0x77fba8,oldRelation:_0x36ba12,newRelation:_0x675567}=_0x35c2b5,_0x5ca8bd=_0x4f0d0f[_0x2f73de(0x269)]({'unitId':_0x540d0a,'subUnitId':_0x15e71a,'drawingId':_0xaa6954});if(!_0x5ca8bd)return!0x1;let _0x2fc5db=_0x57e54d[_0x2f73de(0x246)](_0x53616c)[_0x2f73de(0x244)](_0x540d0a,_0x15e71a,_0xaa6954);if(!_0x2fc5db)return!0x1;let _0x5b7bc5=_0x57e54d[_0x2f73de(0x246)](_0x1d6eec[_0x2f73de(0x206)]),_0x146be2=_0x57e54d[_0x2f73de(0x246)](_0x1d6eec[_0x2f73de(0x1f6)]),_0x585dde=_0x57e54d[_0x2f73de(0x246)](_0x5c5201['SheetInterceptorService']),_0x3bedb3={..._0x5ca8bd[_0x2f73de(0x2a6)],'width':_0x5a4f9,'height':_0x59fbe7,'left':_0x29938c,'top':_0x2c439c,'flipX':_0x34dd62,'flipY':_0x3746fe,'angle':(_0x56b5b1=_0x70e229==null?(_0x4fde85=_0x5ca8bd[_0x2f73de(0x2a6)])==null?void 0x0:_0x4fde85[_0x2f73de(0x1ee)]:_0x70e229)==null?0x0:_0x56b5b1},_0x1652ba=(0x0,_0x49fa79[_0x2f73de(0x27e)])(_0x3bedb3,_0x4edd02),_0x3eff4b=(0x0,_0x49fa79[_0x2f73de(0x267)])(_0x3bedb3,_0x4edd02),_0x4fda82=_0x2fc5db[_0x2f73de(0x256)](),_0x91d4a6=_0x2fc5db[_0x2f73de(0x225)](),_0x130215={'unitId':_0x540d0a,'subUnitId':_0x15e71a,'drawingId':_0xaa6954,'drawingType':_0x1d6eec[_0x2f73de(0x28b)][_0x2f73de(0x20b)],'sheetTransform':_0x1652ba,'transform':_0x3bedb3,'data':{'shapeType':_0x77fba8||_0x48f13f||_0x4fda82,'shapeData':{..._0x91d4a6,'adjustValues':_0x2458a0||_0x3a4d19||(_0x91d4a6==null?void 0x0:_0x91d4a6[_0x2f73de(0x29d)]),'relation':_0x675567||_0x36ba12||(_0x91d4a6==null?void 0x0:_0x91d4a6['relation'])}},'axisAlignSheetTransform':_0x3eff4b,'allowTransform':!0x0},{undo:_0x24259d,redo:_0x4b2d66,objects:_0x1df71d}=_0x4f0d0f[_0x2f73de(0x249)]([_0x130215]),_0x3cc0eb=_0x585dde[_0x2f73de(0x220)]({'id':_0x49fa79[_0x2f73de(0x29f)]['id'],'params':{'unitId':_0x540d0a,'drawings':[_0x130215]}}),_0x22d70a=[...(_0x1402c3=_0x3cc0eb[_0x2f73de(0x248)])==null?[]:_0x1402c3,{'id':_0x49fa79[_0x2f73de(0x23a)]['id'],'params':{'unitId':_0x540d0a,'subUnitId':_0x15e71a,'op':_0x4b2d66,'objects':_0x1df71d,'type':_0x49fa79[_0x2f73de(0x21f)][_0x2f73de(0x205)]}},{'id':_0x49fa79[_0x2f73de(0x29b)]['id'],'params':[_0x540d0a]},..._0x3cc0eb['redos'],{'id':_0x593f51['id'],'params':{'unitId':_0x540d0a,'subUnitId':_0x15e71a,'shapeId':_0xaa6954,'shapeType':_0x77fba8,'shapeData':{'adjustValues':_0x2458a0,'relation':_0x675567}}}],_0x5f5dcd=[...(_0x589aef=_0x3cc0eb['preUndos'])==null?[]:_0x589aef,{'id':_0x49fa79[_0x2f73de(0x23a)]['id'],'params':{'unitId':_0x540d0a,'subUnitId':_0x15e71a,'op':_0x24259d,'objects':_0x1df71d,'type':_0x49fa79[_0x2f73de(0x21f)][_0x2f73de(0x205)]}},{'id':_0x49fa79['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x540d0a]},..._0x3cc0eb[_0x2f73de(0x282)],{'id':_0x593f51['id'],'params':{'unitId':_0x540d0a,'subUnitId':_0x15e71a,'shapeId':_0xaa6954,'shapeType':_0x4fda82,'shapeData':{..._0x91d4a6,'adjustValues':_0x3a4d19||(_0x91d4a6==null?void 0x0:_0x91d4a6[_0x2f73de(0x29d)]),'relation':_0x36ba12||(_0x91d4a6==null?void 0x0:_0x91d4a6['relation'])}}}];return(0x0,_0x1d6eec[_0x2f73de(0x25c)])(_0x22d70a,_0x5b7bc5)[_0x2f73de(0x21b)]?(_0x146be2[_0x2f73de(0x1f1)]({'unitID':_0x540d0a,'undoMutations':_0x5f5dcd,'redoMutations':_0x22d70a}),!0x0):!0x1;}},_0x50afbf={'type':_0x1d6eec['CommandType'][_0x171b41(0x2a0)],'id':'sheet.command.update-line-shape-resize','handler':(_0x1a5df4,_0x265403)=>{const _0x10eb14=_0x171b41;var _0x4ac53a,_0x37cc0d;let _0x15ab2a=(0x0,_0x5c5201[_0x10eb14(0x1e9)])(_0x1a5df4[_0x10eb14(0x246)](_0x1d6eec[_0x10eb14(0x291)]),_0x265403);if(!_0x15ab2a)return!0x1;let _0x2195ea=_0x1a5df4[_0x10eb14(0x246)](_0x5c5201['SheetSkeletonService']),{unitId:_0x1de9ba,subUnitId:_0x2df6bc}=_0x15ab2a,_0x4de13a=_0x2195ea[_0x10eb14(0x242)](_0x1de9ba,_0x2df6bc);if(!_0x4de13a)return!0x1;let _0xfd49a6=_0x1a5df4['get'](_0x49fa79[_0x10eb14(0x1e7)]),{shapeId:_0x1c81c3,width:_0x2c0b46,height:_0x4c2385,left:_0x459abc,top:_0x407734,flipX:_0x8e38c0,flipY:_0x174a27,angle:_0x58b593,oldAdjustValues:_0x24ffc0,newAdjustValues:_0x3b68c8,oldLineType:_0x226fa6,newLineType:_0x3436a7}=_0x265403,_0x35aaa0=_0xfd49a6[_0x10eb14(0x269)]({'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'drawingId':_0x1c81c3});if(!_0x35aaa0)return!0x1;let _0x55be2f=_0x1a5df4[_0x10eb14(0x246)](_0x53616c)[_0x10eb14(0x244)](_0x1de9ba,_0x2df6bc,_0x1c81c3);if(!_0x55be2f)return!0x1;let _0x1162a6=_0x1a5df4[_0x10eb14(0x246)](_0x1d6eec[_0x10eb14(0x206)]),_0x5cb9c4=_0x1a5df4[_0x10eb14(0x246)](_0x1d6eec[_0x10eb14(0x1f6)]),_0x42caf7=_0x1a5df4[_0x10eb14(0x246)](_0x5c5201[_0x10eb14(0x1f2)]),_0x1aad82={..._0x35aaa0[_0x10eb14(0x2a6)],'width':_0x2c0b46,'height':_0x4c2385,'left':_0x459abc,'top':_0x407734,'flipX':_0x8e38c0,'flipY':_0x174a27,'angle':_0x58b593},_0x7af93a=(0x0,_0x49fa79['transformToDrawingPosition'])(_0x1aad82,_0x4de13a),_0x165e2e=(0x0,_0x49fa79[_0x10eb14(0x267)])(_0x1aad82,_0x4de13a),_0x1d092f=_0x55be2f['getShapeType'](),_0x4c805a=_0x55be2f[_0x10eb14(0x225)](),_0x32391e={'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'drawingId':_0x1c81c3,'drawingType':_0x1d6eec[_0x10eb14(0x28b)]['DRAWING_SHAPE'],'sheetTransform':_0x7af93a,'transform':_0x1aad82,'data':{'shapeType':_0x3436a7||_0x226fa6||_0x1d092f,'shapeData':{..._0x4c805a,'adjustValues':_0x3b68c8||_0x24ffc0||(_0x4c805a==null?void 0x0:_0x4c805a[_0x10eb14(0x29d)])}},'axisAlignSheetTransform':_0x165e2e,'allowTransform':!0x0},{undo:_0x3ddabc,redo:_0x5bfda1,objects:_0x49cfaa}=_0xfd49a6[_0x10eb14(0x249)]([_0x32391e]),_0x1f6603=_0x42caf7[_0x10eb14(0x220)]({'id':_0x49fa79['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x1de9ba,'drawings':[_0x32391e]}}),_0x97caf1=[...(_0x4ac53a=_0x1f6603[_0x10eb14(0x248)])==null?[]:_0x4ac53a,{'id':_0x49fa79['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'op':_0x5bfda1,'objects':_0x49cfaa,'type':_0x49fa79[_0x10eb14(0x21f)][_0x10eb14(0x205)]}},{'id':_0x49fa79[_0x10eb14(0x29b)]['id'],'params':[_0x1de9ba]},..._0x1f6603[_0x10eb14(0x27d)],{'id':_0x593f51['id'],'params':{'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'shapeId':_0x1c81c3,'shapeType':_0x3436a7,'shapeData':{'adjustValues':_0x3b68c8}}}],_0x294ae8=[...(_0x37cc0d=_0x1f6603[_0x10eb14(0x1dc)])==null?[]:_0x37cc0d,{'id':_0x49fa79[_0x10eb14(0x23a)]['id'],'params':{'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'op':_0x3ddabc,'objects':_0x49cfaa,'type':_0x49fa79[_0x10eb14(0x21f)][_0x10eb14(0x205)]}},{'id':_0x49fa79['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1de9ba]},..._0x1f6603[_0x10eb14(0x282)],{'id':_0x593f51['id'],'params':{'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'shapeId':_0x1c81c3,'shapeType':_0x1d092f,'shapeData':{..._0x4c805a,'adjustValues':_0x24ffc0||(_0x4c805a==null?void 0x0:_0x4c805a[_0x10eb14(0x29d)])}}}];return(0x0,_0x1d6eec[_0x10eb14(0x25c)])(_0x97caf1,_0x1162a6)['result']?(_0x5cb9c4[_0x10eb14(0x1f1)]({'unitID':_0x1de9ba,'undoMutations':_0x294ae8,'redoMutations':_0x97caf1}),!0x0):!0x1;}},_0x4d077d={'id':'sheet.mutation.update-shape-type','type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x21d)],'handler':(_0x39cef5,_0x436b5b)=>{const _0x357c3f=_0x171b41;let {unitId:_0x549612,subUnitId:_0x2482be,shapeType:_0x3d1db7,shapeId:_0xfe6343,shapeData:_0x41f50f}=_0x436b5b,_0x2d71b7=_0x39cef5['get'](_0x53616c)['getShapeModel'](_0x549612,_0x2482be,_0xfe6343);return _0x2d71b7&&(_0x2d71b7['setShapeType'](_0x3d1db7),_0x41f50f&&(_0x2d71b7==null||_0x2d71b7[_0x357c3f(0x25d)](_0x41f50f))),!0x0;}},_0x27d210={'id':_0x171b41(0x23c),'type':_0x1d6eec['CommandType'][_0x171b41(0x2a0)],'handler':(_0x2a5501,_0x3c0526)=>{const _0x2f8f79=_0x171b41;if(!_0x3c0526)return!0x1;let _0x4fb7ed=_0x2a5501['get'](_0x1d6eec[_0x2f8f79(0x206)]),_0x114182=_0x2a5501['get'](_0x53616c),_0x24c16c=_0x2a5501[_0x2f8f79(0x246)](_0x1d6eec[_0x2f8f79(0x1f6)]),_0x3165e9=[],_0x4ca5dd=[],{unitId:_0x15564e,subUnitId:_0x5c16c7,shapeId:_0x5c86c9,shapeType:_0x3b61aa,shapeData:_0x2a83b2}=_0x3c0526,_0x4ee503=_0x114182[_0x2f8f79(0x244)](_0x15564e,_0x5c16c7,_0x5c86c9);if(_0x4ee503){let _0x43ddbf=_0x4ee503[_0x2f8f79(0x256)](),_0x188734=Object[_0x2f8f79(0x1ef)]({},_0x4ee503[_0x2f8f79(0x225)]()),_0x193acb={'unitId':_0x15564e,'subUnitId':_0x5c16c7,'shapeId':_0x5c86c9,'shapeType':_0x3b61aa,'shapeData':_0x2a83b2},_0x3e590a={'unitId':_0x15564e,'subUnitId':_0x5c16c7,'shapeId':_0x5c86c9,'shapeType':_0x43ddbf,'shapeData':_0x188734};return _0x3165e9[_0x2f8f79(0x29c)]({'id':_0x4d077d['id'],'params':_0x193acb}),_0x4ca5dd['push']({'id':_0x4d077d['id'],'params':_0x3e590a}),_0x3165e9[_0x2f8f79(0x1ed)](_0x1a778f=>_0x4fb7ed[_0x2f8f79(0x28d)](_0x1a778f['id'],_0x1a778f[_0x2f8f79(0x216)]))&&_0x24c16c[_0x2f8f79(0x1f1)]({'unitID':_0x15564e,'redoMutations':[..._0x3165e9],'undoMutations':[..._0x4ca5dd]}),!0x0;}return!0x1;}};var _0x5d8380=_0x171b41(0x218),_0xc6280e='1.0.0-alpha.2';let _0x4cb829={},_0x512919=class extends _0x1d6eec[_0x171b41(0x27c)]{constructor(_0x59ea16,_0x8c9823,_0x29630d,_0x4af5b2,_0x114c11){const _0x3329ba=_0x171b41;super(),this[_0x3329ba(0x29e)]=_0x59ea16,this[_0x3329ba(0x258)]=_0x8c9823,this[_0x3329ba(0x274)]=_0x29630d,this[_0x3329ba(0x1d7)]=_0x4af5b2,this['_drawingManagerService']=_0x114c11,this[_0x3329ba(0x226)](),this['_initCommandInterceptor']();}[_0x171b41(0x226)](){const _0x43f98d=_0x171b41;[_0x1dc333,_0x1bfdad,_0x1e11f0,_0x420359,_0x32e2da,_0x271aa8,_0x50afbf,_0x22202d,_0x5db064,_0x4d077d,_0x593f51][_0x43f98d(0x2a2)](_0x29e618=>this['disposeWithMe'](this[_0x43f98d(0x29e)][_0x43f98d(0x1d6)](_0x29e618)));}[_0x171b41(0x255)](){const _0x4ee763=_0x171b41;this[_0x4ee763(0x21e)](this[_0x4ee763(0x258)][_0x4ee763(0x243)]({'getMutations':_0x5cd0d2=>{const _0x51c271=_0x4ee763;if(_0x5cd0d2['id']===_0x49fa79['RemoveSheetDrawingCommand']['id']){let {drawings:_0x231039}=_0x5cd0d2[_0x51c271(0x216)],_0x202707=_0x231039[_0x51c271(0x270)](_0x15f9d6=>_0x15f9d6[_0x51c271(0x265)]===_0x1d6eec[_0x51c271(0x28b)][_0x51c271(0x20b)]);if(_0x202707['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2fccf2=[],_0x399055=[];return _0x202707[_0x51c271(0x2a2)](_0xb91080=>{const _0x2d0769=_0x51c271;let {unitId:_0x1c904e,subUnitId:_0x322124,drawingId:_0x3f3916}=_0xb91080,_0x440ae4=this[_0x2d0769(0x1d7)][_0x2d0769(0x244)](_0x1c904e,_0x322124,_0x3f3916);if(!_0x440ae4)throw TypeError(_0x2d0769(0x259)+_0x440ae4);_0x2fccf2[_0x2d0769(0x29c)]({'id':_0x5db064['id'],'params':{'unitId':_0x1c904e,'subUnitId':_0x322124,'shapeId':_0x3f3916}}),_0x399055[_0x2d0769(0x29c)]({'id':_0x22202d['id'],'params':{'unitId':_0x1c904e,'subUnitId':_0x322124,'shapeId':_0x3f3916,'shapeType':_0x440ae4[_0x2d0769(0x256)](),'shapeData':_0x440ae4[_0x2d0769(0x225)]()}});let _0x8f4b51=this[_0x2d0769(0x1d7)][_0x2d0769(0x213)](_0x1c904e,_0x322124,_0x3f3916);if(_0x8f4b51)for(let _0x1d2c0d of _0x8f4b51){let _0x44aa6f=_0x1d2c0d[_0x2d0769(0x22d)],_0x4e51ef=_0x1d2c0d['isFrom'],_0xb7ea6f=_0x4e51ef?{'from':void 0x0}:{'to':void 0x0},_0x19c8f9=_0x4e51ef?{'from':{'shapeId':_0x1d2c0d[_0x2d0769(0x234)],'cxnIndex':_0x1d2c0d[_0x2d0769(0x204)]}}:{'to':{'shapeId':_0x1d2c0d[_0x2d0769(0x234)],'cxnIndex':_0x1d2c0d['cxnIndex']}};_0x2fccf2[_0x2d0769(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x1c904e,'subUnitId':_0x322124,'shapeId':_0x44aa6f,'shapeData':{'relation':_0xb7ea6f}}}),_0x399055[_0x2d0769(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x1c904e,'subUnitId':_0x322124,'shapeId':_0x44aa6f,'shapeData':{'relation':_0x19c8f9}}});}}),{'preRedos':_0x2fccf2,'redos':[],'preUndos':[],'undos':_0x399055};}if(_0x5cd0d2['id']===_0x49fa79[_0x51c271(0x29f)]['id']){let {drawings:_0x160849}=_0x5cd0d2[_0x51c271(0x216)],_0x3b9cc5=_0x160849[_0x51c271(0x270)](_0x2fa2b9=>_0x2fa2b9[_0x51c271(0x265)]===_0x1d6eec[_0x51c271(0x28b)][_0x51c271(0x20b)]);if(_0x3b9cc5[_0x51c271(0x278)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4d001a=[],_0x386369=[];for(let _0x9c1585 of _0x3b9cc5){let {unitId:_0x3f2fc7,subUnitId:_0x537f4f,drawingId:_0x1f9098,transform:_0x3bb8b2}=_0x9c1585;if(!_0x3f2fc7||!_0x537f4f||!_0x1f9098||!_0x3bb8b2)continue;let _0x14c628=this[_0x51c271(0x1d7)][_0x51c271(0x244)](_0x3f2fc7,_0x537f4f,_0x1f9098);if(!_0x14c628)throw TypeError(_0x51c271(0x259)+_0x14c628);if((0x0,_0x2a5118[_0x51c271(0x1ff)])(_0x14c628['getShapeType']())){let _0x22c545=this[_0x51c271(0x1d7)][_0x51c271(0x222)](_0x3f2fc7,_0x537f4f,_0x1f9098);_0x22c545&&(_0x4d001a['push']({'id':_0x593f51['id'],'params':{'unitId':_0x3f2fc7,'subUnitId':_0x537f4f,'shapeId':_0x1f9098,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x386369['push']({'id':_0x593f51['id'],'params':{'unitId':_0x3f2fc7,'subUnitId':_0x537f4f,'shapeId':_0x1f9098,'shapeData':{'relation':_0x22c545}}}));}else{let _0x3fe54a=this[_0x51c271(0x1d7)][_0x51c271(0x213)](_0x3f2fc7,_0x537f4f,_0x1f9098);if(_0x3fe54a&&_0x3fe54a[_0x51c271(0x278)]>0x0)for(let _0x42b1f9 of _0x3fe54a){let _0x35c1da=_0x42b1f9[_0x51c271(0x22d)],_0x4fb51a=_0x42b1f9[_0x51c271(0x1fb)],_0x4b9164=this[_0x51c271(0x1d7)][_0x51c271(0x244)](_0x3f2fc7,_0x537f4f,_0x35c1da);if(!_0x4b9164)continue;let _0x121a73=_0x4b9164[_0x51c271(0x1de)](),_0xa35282=_0x4b9164[_0x51c271(0x238)]();_0x121a73&&_0xa35282?this['_addLineRerouteUpdates'](_0x3f2fc7,_0x537f4f,_0x35c1da,_0x4b9164,_0x121a73,_0xa35282,_0x4d001a,_0x386369,_0x1f9098,_0x3bb8b2):this[_0x51c271(0x22c)](_0x3f2fc7,_0x537f4f,_0x35c1da,_0x4b9164,_0x4fb51a?_0x121a73:_0xa35282,_0x4fb51a,_0x4d001a,_0x386369,_0x1f9098,_0x3bb8b2);}}}return{'preRedos':[],'redos':_0x4d001a,'preUndos':_0x386369,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x171b41(0x1eb)](_0x4fc7da,_0x3d60c2,_0x40b5cf,_0x67eabb,_0x4d274c){const _0x3e796f=_0x171b41;if(!_0x3d60c2||!_0x40b5cf)return null;let {shapeId:_0x474aec,cxnIndex:_0x371c3c}=_0x4fc7da,_0x3c1b22=this[_0x3e796f(0x1d7)][_0x3e796f(0x244)](_0x3d60c2,_0x40b5cf,_0x474aec);if(!_0x3c1b22)return null;let _0x353906=this[_0x3e796f(0x1e3)][_0x3e796f(0x269)]({'unitId':_0x3d60c2,'subUnitId':_0x40b5cf,'drawingId':_0x474aec});if(!(_0x353906!=null&&_0x353906[_0x3e796f(0x2a6)]))return null;let {left:_0x3222f8=0x0,top:_0xb39b20=0x0,width:_0x1adb8a=0x0,height:_0x4468fe=0x0,flipX:_0x2296a6=!0x1,flipY:_0x133224=!0x1,angle:_0x14541b}=_0x353906['transform'];if(_0x4d274c&&_0x67eabb===_0x474aec){var _0x33c808,_0x39efa0,_0xb782f4,_0x3464d2,_0x4f06e4,_0x225ea2,_0x24dc03;_0x3222f8=(_0x33c808=_0x4d274c['left'])==null?_0x3222f8:_0x33c808,_0xb39b20=(_0x39efa0=_0x4d274c[_0x3e796f(0x24c)])==null?_0xb39b20:_0x39efa0,_0x1adb8a=(_0xb782f4=_0x4d274c['width'])==null?_0x1adb8a:_0xb782f4,_0x4468fe=(_0x3464d2=_0x4d274c[_0x3e796f(0x2aa)])==null?_0x4468fe:_0x3464d2,_0x2296a6=(_0x4f06e4=_0x4d274c[_0x3e796f(0x233)])==null?_0x2296a6:_0x4f06e4,_0x133224=(_0x225ea2=_0x4d274c['flipY'])==null?_0x133224:_0x225ea2,_0x14541b=(_0x24dc03=_0x4d274c['angle'])==null?_0x14541b:_0x24dc03;}_0x3c1b22[_0x3e796f(0x232)]({'width':_0x1adb8a,'height':_0x4468fe});let _0x1250b0=_0x3c1b22[_0x3e796f(0x22e)]()[_0x3e796f(0x277)](_0x462c59=>_0x462c59[_0x3e796f(0x28f)]===_0x371c3c);if(!_0x1250b0)return null;let _0x551e05=_0x2296a6?_0x1adb8a-_0x1250b0['x']:_0x1250b0['x'],_0x28e19d=_0x133224?_0x4468fe-_0x1250b0['y']:_0x1250b0['y'];if(_0x14541b!==0x0&&_0x14541b!=null){let _0x5421a3=_0x14541b*Math['PI']/0xb4,_0x1c7b1=Math['cos'](_0x5421a3),_0x578521=Math[_0x3e796f(0x260)](_0x5421a3),_0x4dce39=_0x1adb8a/0x2,_0x3fb739=_0x4468fe/0x2,_0x1c0617=_0x551e05-_0x4dce39,_0x5b4c01=_0x28e19d-_0x3fb739;_0x551e05=_0x4dce39+_0x1c0617*_0x1c7b1-_0x5b4c01*_0x578521,_0x28e19d=_0x3fb739+_0x1c0617*_0x578521+_0x5b4c01*_0x1c7b1;}_0x551e05+=_0x3222f8,_0x28e19d+=_0xb39b20;let _0x4ead88=_0x1250b0[_0x3e796f(0x24e)]/0xea60;_0x2296a6&&(_0x4ead88=0xb4-_0x4ead88),_0x133224&&(_0x4ead88=-_0x4ead88),_0x4ead88+=_0x14541b||0x0,_0x4ead88=(_0x4ead88%0x168+0x168)%0x168;let _0x443b73=(0x0,_0x2a5118[_0x3e796f(0x293)])({'left':_0x3222f8,'top':_0xb39b20,'width':_0x1adb8a,'height':_0x4468fe},_0x14541b||0x0);return{'point':{'x':_0x551e05,'y':_0x28e19d},'angle':_0x4ead88,'bounds':_0x443b73};}[_0x171b41(0x284)](_0x38831c,_0x2c89d6,_0x585e41,_0x576ee4,_0x29262b,_0x1b9f95,_0x419602,_0x3dac90,_0x3509da,_0x41c45c){const _0x2719a9=_0x171b41;let _0x250ed0=this[_0x2719a9(0x274)]['getSkeleton'](_0x38831c,_0x2c89d6);if(!_0x250ed0)return;let _0x3fbf67=_0x576ee4['getShapeRelation'](),_0x2f8090=_0x576ee4['getAdjustNames'](),_0x32f6eb={},_0x4cdec6={};_0x2f8090[_0x2719a9(0x2a2)](_0x5b9a33=>{const _0x124f4d=_0x2719a9;let _0x5dbf6b=_0x576ee4[_0x124f4d(0x203)](_0x5b9a33);_0x4cdec6[_0x5b9a33]=_0x5dbf6b==null?0x0:_0x5dbf6b;});let _0x2b6cd5=this['_getConnectPointInfo'](_0x29262b,_0x38831c,_0x2c89d6,_0x3509da,_0x41c45c),_0xd0bfb1=this[_0x2719a9(0x1eb)](_0x1b9f95,_0x38831c,_0x2c89d6,_0x3509da,_0x41c45c);if(_0x2b6cd5&&_0xd0bfb1){let _0x5ab5db=_0x576ee4['getShapeType'](),_0x8c1259=(0x0,_0x2a5118[_0x2719a9(0x1e5)])(_0x2b6cd5,_0xd0bfb1,_0x5ab5db),_0x5507a7=_0x5ab5db;if(_0x8c1259){let _0x519c70=(0x0,_0x2a5118[_0x2719a9(0x1e6)])(_0x8c1259,_0x576ee4['getShapeType']()),_0x1770bb=this[_0x2719a9(0x1e3)][_0x2719a9(0x252)](_0x38831c,_0x2c89d6);if(_0x1770bb&&_0x1770bb[_0x585e41]){let _0x5d9e6f=_0x1770bb[_0x585e41];_0x5507a7=_0x519c70[_0x2719a9(0x299)];for(let [_0x22377a,_0x4316b5]of Object['entries'](_0x519c70[_0x2719a9(0x29d)]))_0x32f6eb[_0x22377a]=_0x4316b5;let _0x5ca92b={..._0x5d9e6f['transform'],'width':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x1fe)],'height':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x2aa)],'left':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x212)],'top':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x24c)],'flipX':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x233)],'flipY':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x2a5)],'angle':_0x519c70[_0x2719a9(0x1f8)]},_0x45a85a=(0x0,_0x49fa79['transformToDrawingPosition'])(_0x5ca92b,_0x250ed0),_0x30133e=(0x0,_0x49fa79['transformToAxisAlignPosition'])(_0x5ca92b,_0x250ed0),_0x113176={'unitId':_0x38831c,'subUnitId':_0x2c89d6,'drawingType':_0x1d6eec[_0x2719a9(0x28b)]['DRAWING_SHAPE'],'drawingId':_0x585e41,'transform':_0x5ca92b,'sheetTransform':_0x45a85a,'axisAlignSheetTransform':_0x30133e},{unitId:_0x15c2a3,subUnitId:_0x152e1a,undo:_0x5aca30,redo:_0xf00e5b,objects:_0x1ea2ba}=this[_0x2719a9(0x1e3)][_0x2719a9(0x249)]([_0x113176]);_0x419602['push']({'id':_0x49fa79[_0x2719a9(0x23a)]['id'],'params':{'unitId':_0x15c2a3,'subUnitId':_0x152e1a,'op':_0xf00e5b,'objects':_0x1ea2ba,'type':_0x49fa79[_0x2719a9(0x21f)][_0x2719a9(0x205)]}}),_0x3dac90[_0x2719a9(0x29c)]({'id':_0x49fa79[_0x2719a9(0x23a)]['id'],'params':{'unitId':_0x15c2a3,'subUnitId':_0x152e1a,'op':_0x5aca30,'objects':_0x1ea2ba,'type':_0x49fa79[_0x2719a9(0x21f)]['UPDATE']}});}_0x576ee4[_0x2719a9(0x28e)]();}_0x419602[_0x2719a9(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x38831c,'subUnitId':_0x2c89d6,'shapeId':_0x585e41,'shapeType':_0x5507a7,'shapeData':{'adjustValues':_0x32f6eb,'relation':_0x3fbf67}}}),_0x3dac90[_0x2719a9(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x38831c,'subUnitId':_0x2c89d6,'shapeId':_0x585e41,'shapeType':_0x5ab5db,'shapeData':{'adjustValues':_0x4cdec6,'relation':_0x3fbf67}}});}}[_0x171b41(0x22c)](_0x5ceee9,_0x31a137,_0x2ba6d5,_0x3e0ee8,_0x8b5836,_0x1e71bd,_0x2418f8,_0x54395e,_0x2d07b7,_0x18a00f){const _0x51188c=_0x171b41;var _0x1750b2;if(!_0x8b5836)return;let _0x4e6eb0=this[_0x51188c(0x274)][_0x51188c(0x242)](_0x5ceee9,_0x31a137);if(!_0x4e6eb0)return;let _0x293fe1=(_0x1750b2=this[_0x51188c(0x1e3)][_0x51188c(0x269)]({'unitId':_0x5ceee9,'subUnitId':_0x31a137,'drawingId':_0x2d07b7}))==null?void 0x0:_0x1750b2['transform'];if(!_0x293fe1)return;let _0x486b7a=_0x293fe1[_0x51188c(0x212)]!==_0x18a00f[_0x51188c(0x212)]||_0x293fe1[_0x51188c(0x24c)]!==_0x18a00f['top'],_0x12ae1b=_0x293fe1[_0x51188c(0x1fe)]!==_0x18a00f[_0x51188c(0x1fe)]||_0x293fe1[_0x51188c(0x2aa)]!==_0x18a00f[_0x51188c(0x2aa)],_0x4872df=_0x293fe1[_0x51188c(0x233)]!==_0x18a00f[_0x51188c(0x233)]||_0x293fe1[_0x51188c(0x2a5)]!==_0x18a00f[_0x51188c(0x2a5)],_0x3f6888=_0x293fe1[_0x51188c(0x1ee)]!==_0x18a00f[_0x51188c(0x1ee)];if(_0x486b7a&&!_0x12ae1b&&!_0x4872df&&!_0x3f6888){var _0x42ebab,_0x1ddc20,_0x400e2b,_0x278dfa;let _0x71b34d=((_0x42ebab=_0x18a00f[_0x51188c(0x212)])==null?0x0:_0x42ebab)-((_0x1ddc20=_0x293fe1[_0x51188c(0x212)])==null?0x0:_0x1ddc20),_0x100b6d=((_0x400e2b=_0x18a00f[_0x51188c(0x24c)])==null?0x0:_0x400e2b)-((_0x278dfa=_0x293fe1[_0x51188c(0x24c)])==null?0x0:_0x278dfa),_0x2130c7=this['_drawingManagerService'][_0x51188c(0x252)](_0x5ceee9,_0x31a137);if(_0x2130c7&&_0x2130c7[_0x2ba6d5]){var _0x4dfcf6,_0xf2a10f,_0x44d78d,_0x57e13c;let _0x1b6043=_0x2130c7[_0x2ba6d5],_0x5a8718={..._0x1b6043[_0x51188c(0x2a6)],'left':((_0x4dfcf6=(_0xf2a10f=_0x1b6043['transform'])==null?void 0x0:_0xf2a10f[_0x51188c(0x212)])==null?0x0:_0x4dfcf6)+_0x71b34d,'top':((_0x44d78d=(_0x57e13c=_0x1b6043['transform'])==null?void 0x0:_0x57e13c[_0x51188c(0x24c)])==null?0x0:_0x44d78d)+_0x100b6d},_0xb4ea51=(0x0,_0x49fa79[_0x51188c(0x27e)])(_0x5a8718,_0x4e6eb0),_0x13806c=(0x0,_0x49fa79[_0x51188c(0x267)])(_0x5a8718,_0x4e6eb0),_0x4f0df1={'unitId':_0x5ceee9,'subUnitId':_0x31a137,'drawingType':_0x1d6eec[_0x51188c(0x28b)]['DRAWING_SHAPE'],'drawingId':_0x2ba6d5,'transform':_0x5a8718,'sheetTransform':_0xb4ea51,'axisAlignSheetTransform':_0x13806c},{unitId:_0x126090,subUnitId:_0x79dd6d,undo:_0xa9897a,redo:_0x19aaf4,objects:_0x2a1d46}=this[_0x51188c(0x1e3)][_0x51188c(0x249)]([_0x4f0df1]);_0x2418f8[_0x51188c(0x29c)]({'id':_0x49fa79[_0x51188c(0x23a)]['id'],'params':{'unitId':_0x126090,'subUnitId':_0x79dd6d,'op':_0x19aaf4,'objects':_0x2a1d46,'type':_0x49fa79[_0x51188c(0x21f)][_0x51188c(0x205)]}}),_0x54395e[_0x51188c(0x29c)]({'id':_0x49fa79[_0x51188c(0x23a)]['id'],'params':{'unitId':_0x126090,'subUnitId':_0x79dd6d,'op':_0xa9897a,'objects':_0x2a1d46,'type':_0x49fa79['DrawingApplyType'][_0x51188c(0x205)]}});}}else{let _0x33b4aa=_0x3e0ee8[_0x51188c(0x1de)](),_0x198f14=_0x3e0ee8[_0x51188c(0x238)]();this[_0x51188c(0x284)](_0x5ceee9,_0x31a137,_0x2ba6d5,_0x3e0ee8,_0x33b4aa,_0x198f14,_0x2418f8,_0x54395e,_0x2d07b7,_0x18a00f);}}};_0x512919=_0x3af845([_0x3b59bc(0x0,_0x1d6eec[_0x171b41(0x206)]),_0x3b59bc(0x1,(0x0,_0x1d6eec['Inject'])(_0x5c5201['SheetInterceptorService'])),_0x3b59bc(0x2,(0x0,_0x1d6eec[_0x171b41(0x266)])(_0x5c5201['SheetSkeletonService'])),_0x3b59bc(0x3,(0x0,_0x1d6eec[_0x171b41(0x266)])(_0x53616c)),_0x3b59bc(0x4,(0x0,_0x1d6eec[_0x171b41(0x266)])(_0x1c64e2[_0x171b41(0x1db)]))],_0x512919);let _0x1d79a0=class extends _0x1d6eec[_0x171b41(0x245)]{constructor(_0x520fe2=_0x4cb829,_0x1d607c,_0x2a8833,_0x1a56c0){const _0x575b90=_0x171b41;super(),this[_0x575b90(0x272)]=_0x520fe2,this[_0x575b90(0x286)]=_0x1d607c,this[_0x575b90(0x29e)]=_0x2a8833,this[_0x575b90(0x24a)]=_0x1a56c0;let {..._0x4299c5}=(0x0,_0x1d6eec[_0x575b90(0x279)])({},_0x4cb829,this['_config']);this[_0x575b90(0x24a)][_0x575b90(0x253)]('sheets-shape.config',_0x4299c5);}[_0x171b41(0x297)](){const _0x3193a4=_0x171b41;let _0x26b23f=this[_0x3193a4(0x286)];[[_0x20a5e7],[_0x53616c],[_0x512919]][_0x3193a4(0x2a2)](_0x1d2d18=>_0x26b23f[_0x3193a4(0x296)](_0x1d2d18)),(0x0,_0x1d6eec[_0x3193a4(0x26f)])(_0x26b23f,[[_0x53616c],[_0x512919]]);}};_0x238d30(_0x1d79a0,_0x171b41(0x241),_0x1d6eec[_0x171b41(0x1fa)][_0x171b41(0x208)]),_0x238d30(_0x1d79a0,_0x171b41(0x24b),_0x171b41(0x25f)),_0x238d30(_0x1d79a0,'packageName',_0x5d8380),_0x238d30(_0x1d79a0,_0x171b41(0x21c),_0xc6280e),_0x1d79a0=_0x3af845([(0x0,_0x1d6eec['DependentOn'])(_0x27dcb2[_0x171b41(0x1d1)]),_0x3b59bc(0x1,(0x0,_0x1d6eec['Inject'])(_0x1d6eec[_0x171b41(0x20c)])),_0x3b59bc(0x2,_0x1d6eec[_0x171b41(0x206)]),_0x3b59bc(0x3,_0x1d6eec[_0x171b41(0x288)])],_0x1d79a0),_0x4937cb[_0x171b41(0x2a3)]=0xc8,_0x4937cb[_0x171b41(0x2a7)]=0xc8,_0x4937cb[_0x171b41(0x285)]=_0x1dc333,_0x4937cb[_0x171b41(0x229)]=_0x22202d,_0x4937cb[_0x171b41(0x224)]=_0x5db064,_0x4937cb[_0x171b41(0x29a)]=_0x1bfdad,_0x4937cb[_0x171b41(0x1f0)]=_0x420359,_0x4937cb['SetSheetsShapeTextVerticalToggleCommand']=_0x32e2da,Object[_0x171b41(0x2a4)](_0x4937cb,_0x171b41(0x262),{'enumerable':!0x0,'get':function(){return _0x53616c;}}),_0x4937cb[_0x171b41(0x22f)]=_0x1e11f0,Object[_0x171b41(0x2a4)](_0x4937cb,_0x171b41(0x1d3),{'enumerable':!0x0,'get':function(){return _0x1d79a0;}}),_0x4937cb['UpdateConnectorRelationCommand']=_0x271aa8,_0x4937cb[_0x171b41(0x1d4)]=_0x50afbf,_0x4937cb['UpdateSheetsShapeDataMutation']=_0x593f51,_0x4937cb[_0x171b41(0x20a)]=_0x27d210,_0x4937cb[_0x171b41(0x22b)]=_0x4d077d;}));
|
|
1
|
+
function _0x20f9(){const _0x4af736=['getShapeTypeById','resizeEnabled','INSERT','Disposable','UniverCore','ISheetDrawingService','getShapeModel','pushUndoRedo','params','DrawingTypeEnum','sendBackward','front','InsertSheetDrawingCommand','sequenceExecute','REMOVE','_initCommands','IShapeHostAdapterRegistry','isHorizontal','getBatchAddOp','isConnectorShape','shapeData','amd','removeShape','borderEnabled','InsertShapeCommand','version','_drawingService','getAdjustValueByName','UpdateSheetsShapeDataMutation','startY','1590517IaLbML','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawingType','from','result','subUnitId','SHEET_SHAPE_PLUGIN','setShapeType','registerPluginResource','decorate','sheet.mutation.insert-shape','@univerjs-pro/sheets-shape','forEach','DrawingApplyType','symbol','@univerjs/sheets','_commandService','ToggleSheetsShapeFlipCommand','15LneuOO','isLineShape','defineProperty','UniverProSheetsShape','dispose','back','UniverInstanceType','ICommandService','relation','UniverDrawing','visible','getBasicShapeRotateBound','setShapeData','_sheetSkeletonService','CommandType','angle','getBasicShapeRelation','function','fromJSON','UniverSheetsShapePlugin','SheetSkeletonService','registerCommand','SetShapeDrawingDataCommand','sheet.command.set-shape-text-vertical-toggle','InsertSheetsShapeMutation','ArrangeTypeEnum','deepClone','ClearSheetDrawingTransformerOperation','computeConnectorRouteLayout','hasShape','height','hostType','_configService','delete','setConfig','getSkeleton','@univerjs-pro/engine-shape','exports','657BitnNP','getStartConnectInfo','toPrimitive','_sheetsShapeService','keys','filter','_config','getShapeDataById','constructor','rotation','getShapeRelation','_drawingManagerService','_initCommandInterceptor','toJSON','hidden','getShapeData','_shapes','_deserializeShapeForUnit','transform','preUndos','_disposed','Injector','_shapeService','UniverSheetsDrawing','shapeName','map','IDrawingManagerService','prototype','interceptCommand','Tools','SetSheetsShapeTextVerticalToggleCommand','lineType','getId','ShapeModel','sin','type','onCommandExecute','_resourcesManagerService','range','DEFAULT_SHAPE_HEIGHT','MUTATION','@univerjs/core','getBatchUpdateOp','object','_addLineRerouteUpdates','1.0.0-alpha.4','generateRandomId','shapeId','onStarting','12890856KluZYR','UNIVER_SHEET','stringify','string','disposeWithMe','getShapeDisplayNames','iterator','IUndoRedoService','getShapeType','_groupIds','SheetsShapeService','add','181150GLjwMC','sheet.command.update-line-shape-resize','Module','parse','description','width','unitId','UPDATE','IConfigService','getSheetCommandTarget','entries','getDrawingData','IUniverInstanceService','removeLinePoints','toStringTag','getConnectionSiteList','UniverProLicense','getName','cos','selectable','COMMAND','_shapeModelManagerMap','_sheetInterceptorService','_linesIds','listShapes','SheetInterceptorService','addShape','14537840IxlonT','getDrawingByParam','100212LFpInO','redos','UniverShapePlugin','index','552tWKlEc','bringForward','undos','flipX','flipY','_ensureShapeModelManager','SetSheetDrawingCommand','createUniqueShapeName','fill','_injector','lineShapeId','shapeType','RemoveSheetDrawingCommand','values','adjustValues','RemoveSheetsShapeMutation','SetDrawingApplyMutation','name','63418oURoiW','UniverSheets','top','transformToDrawingPosition','cxnIndex','1378232kcJclU','_addLineFollowShapeUpdates','UpdateLineShapeResizeCommand','Inject','getLineShapeRelation','ensureSkeleton','call','_initSnapshot','sheet.command.toggle-shape-flip','left','_serializeShapeForUnit','register','@univerjs-pro/license','merge','123NQWwcX','rotateEnabled','isFrom','data','_arrange','sheet.command.set-shape-drawing-data','transformToAxisAlignPosition','SetDrawingArrangeCommand','getEndConnectInfo','get','clear','DEFAULT_SHAPE_WIDTH','forward','syncExecuteCommand','pluginName','length','DependentOn','packageName','IResourceManagerService','touchDependencies','_getConnectPointInfo','DRAWING_SHAPE','Plugin','getShapeTextData','push','bringToFront','worldRect','sendToBack','@univerjs/sheets-drawing','@univerjs/drawing','drawingId','preRedos'];_0x20f9=function(){return _0x4af736;};return _0x20f9();}function _0x2aa1(_0x59b041,_0x284807){_0x59b041=_0x59b041-0x120;const _0x20f97b=_0x20f9();let _0x2aa1ea=_0x20f97b[_0x59b041];return _0x2aa1ea;}(function(_0x2e79b3,_0x1664be){const _0x27e82a=_0x2aa1,_0x1fdd82=_0x2e79b3();while(!![]){try{const _0x1d612c=parseInt(_0x27e82a(0x1f2))/0x1+-parseInt(_0x27e82a(0x1a1))/0x2*(-parseInt(_0x27e82a(0x1b4))/0x3)+-parseInt(_0x27e82a(0x1a6))/0x4*(-parseInt(_0x27e82a(0x204))/0x5)+-parseInt(_0x27e82a(0x18f))/0x6*(parseInt(_0x27e82a(0x18b))/0x7)+-parseInt(_0x27e82a(0x189))/0x8+parseInt(_0x27e82a(0x131))/0x9*(parseInt(_0x27e82a(0x16e))/0xa)+-parseInt(_0x27e82a(0x162))/0xb;if(_0x1d612c===_0x1664be)break;else _0x1fdd82['push'](_0x1fdd82['shift']());}catch(_0x324503){_0x1fdd82['push'](_0x1fdd82['shift']());}}}(_0x20f9,0xe59a9),function(_0x5b0a36,_0x59bd49){const _0x3d99fd=_0x2aa1;typeof exports==_0x3d99fd(0x15c)&&typeof module<'u'?_0x59bd49(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x3d99fd(0x215)&&define[_0x3d99fd(0x1e9)]?define([_0x3d99fd(0x130),_0x3d99fd(0x12f),_0x3d99fd(0x15a),_0x3d99fd(0x201),_0x3d99fd(0x1d0),_0x3d99fd(0x1b2),_0x3d99fd(0x1d1)],_0x59bd49):(_0x5b0a36=typeof globalThis<'u'?globalThis:_0x5b0a36||self,_0x59bd49(_0x5b0a36[_0x3d99fd(0x207)]={},_0x5b0a36['UniverProEngineShape'],_0x5b0a36[_0x3d99fd(0x1d8)],_0x5b0a36[_0x3d99fd(0x1a2)],_0x5b0a36[_0x3d99fd(0x148)],_0x5b0a36[_0x3d99fd(0x17e)],_0x5b0a36[_0x3d99fd(0x20d)]));}(this,function(_0x42025e,_0x31e983,_0xa7f297,_0x539446,_0x25ca33,_0x1ea6d9,_0x5ec541){const _0x34066d=_0x2aa1;Object[_0x34066d(0x206)](_0x42025e,Symbol[_0x34066d(0x17c)],{'value':_0x34066d(0x170)});function _0xc16328(_0x45254c){'@babel/helpers - typeof';const _0x2f77b7=_0x34066d;return _0xc16328=typeof Symbol=='function'&&typeof Symbol[_0x2f77b7(0x168)]=='symbol'?function(_0x437040){return typeof _0x437040;}:function(_0x38425c){const _0x39cc13=_0x2f77b7;return _0x38425c&&typeof Symbol==_0x39cc13(0x215)&&_0x38425c[_0x39cc13(0x139)]===Symbol&&_0x38425c!==Symbol[_0x39cc13(0x14c)]?_0x39cc13(0x200):typeof _0x38425c;},_0xc16328(_0x45254c);}function _0x275cde(_0x12e1e2,_0x3e1143){const _0x1f1cb5=_0x34066d;if(_0xc16328(_0x12e1e2)!=_0x1f1cb5(0x15c)||!_0x12e1e2)return _0x12e1e2;var _0x4d8cd5=_0x12e1e2[Symbol[_0x1f1cb5(0x133)]];if(_0x4d8cd5!==void 0x0){var _0xbaef52=_0x4d8cd5[_0x1f1cb5(0x1ac)](_0x12e1e2,_0x3e1143||'default');if(_0xc16328(_0xbaef52)!=_0x1f1cb5(0x15c))return _0xbaef52;throw TypeError(_0x1f1cb5(0x1f3));}return(_0x3e1143==='string'?String:Number)(_0x12e1e2);}function _0x2cc314(_0x4f6416){const _0x3b6517=_0x34066d;var _0x3885b=_0x275cde(_0x4f6416,_0x3b6517(0x165));return _0xc16328(_0x3885b)==_0x3b6517(0x200)?_0x3885b:_0x3885b+'';}function _0x554fe0(_0xa22d11,_0x29736c,_0x3eac5f){const _0x1f6665=_0x34066d;return(_0x29736c=_0x2cc314(_0x29736c))in _0xa22d11?Object[_0x1f6665(0x206)](_0xa22d11,_0x29736c,{'value':_0x3eac5f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa22d11[_0x29736c]=_0x3eac5f,_0xa22d11;}var _0x2c75b3=class extends _0xa7f297[_0x34066d(0x1d7)]{constructor(){const _0x45ad6b=_0x34066d;super(),_0x554fe0(this,'_shapes',new Map()),_0x554fe0(this,_0x45ad6b(0x185),new Set()),_0x554fe0(this,_0x45ad6b(0x16b),new Set());}[_0x34066d(0x188)](_0x1b18fa,_0x2751bd,_0x8f723c,_0x5ce030){const _0x10736f=_0x34066d;let _0x3a6066=new _0x31e983[(_0x10736f(0x152))](_0x1b18fa,_0x2751bd,_0x8f723c,_0x5ce030);return this[_0x10736f(0x141)]['set'](_0x2751bd,_0x3a6066),(0x0,_0x31e983[_0x10736f(0x1e7)])(_0x1b18fa)&&this[_0x10736f(0x185)][_0x10736f(0x16d)](_0x2751bd),_0x3a6066;}['getBasicShapeRelation'](_0x360243){const _0x53248b=_0x34066d;let _0xae60d7=[];for(let _0x4d9bd1 of this[_0x53248b(0x185)]){let _0x496b75=this[_0x53248b(0x141)][_0x53248b(0x1bd)](_0x4d9bd1);if(_0x496b75){let _0x12c5b9=_0x496b75[_0x53248b(0x13b)]();if(_0x12c5b9){var _0x2a3b1d,_0x1dbbd7;((_0x2a3b1d=_0x12c5b9[_0x53248b(0x1f5)])==null?void 0x0:_0x2a3b1d['shapeId'])===_0x360243&&_0xae60d7[_0x53248b(0x1cc)]({..._0x12c5b9['from'],'lineShapeId':_0x4d9bd1,'isFrom':!0x0}),((_0x1dbbd7=_0x12c5b9['to'])==null?void 0x0:_0x1dbbd7[_0x53248b(0x160)])===_0x360243&&_0xae60d7[_0x53248b(0x1cc)]({..._0x12c5b9['to'],'lineShapeId':_0x4d9bd1,'isFrom':!0x1});}}}return _0xae60d7;}[_0x34066d(0x1aa)](_0x8af63c){const _0x3ccdd2=_0x34066d;let _0x203978=this[_0x3ccdd2(0x141)]['get'](_0x8af63c);if(_0x203978)return _0x203978[_0x3ccdd2(0x13b)]();}[_0x34066d(0x16a)](_0x6a1eae){const _0x141f28=_0x34066d;let _0x241329=this[_0x141f28(0x141)][_0x141f28(0x1bd)](_0x6a1eae);if(_0x241329)return _0x241329[_0x141f28(0x16a)]();}[_0x34066d(0x128)](_0x1cffc4){const _0x5d10d2=_0x34066d;return this[_0x5d10d2(0x141)]['has'](_0x1cffc4);}[_0x34066d(0x167)](){const _0x365254=_0x34066d;return Array[_0x365254(0x1f5)](this[_0x365254(0x141)][_0x365254(0x19c)]())[_0x365254(0x14a)](_0x46896f=>_0x46896f[_0x365254(0x17f)]()||_0x46896f[_0x365254(0x151)]());}[_0x34066d(0x1ea)](_0x189b4a){const _0x37f206=_0x34066d;let _0x19f4e3=this[_0x37f206(0x141)][_0x37f206(0x1bd)](_0x189b4a);_0x19f4e3&&((0x0,_0x31e983[_0x37f206(0x1e7)])(_0x19f4e3[_0x37f206(0x16a)]())&&this[_0x37f206(0x185)][_0x37f206(0x12c)](_0x189b4a),this['_shapes'][_0x37f206(0x12c)](_0x189b4a));}[_0x34066d(0x13e)](){const _0x49dcad=_0x34066d;let _0x2a912d=[];return this[_0x49dcad(0x141)][_0x49dcad(0x1fe)](_0x585f8b=>{const _0x9b4e9a=_0x49dcad;_0x2a912d['push'](_0x585f8b[_0x9b4e9a(0x13e)]());}),_0x2a912d;}['fromJSON'](_0x2bbd45){const _0x3bfb42=_0x34066d;for(let _0x3f4d75 of _0x2bbd45){let {id:_0x23f2a4,shapeType:_0x2ff454,name:_0x283fc1}=_0x3f4d75,_0x4686fe=this[_0x3bfb42(0x188)](_0x2ff454,_0x23f2a4,_0x3f4d75[_0x3bfb42(0x1e8)],_0x283fc1);_0x4686fe&&_0x4686fe[_0x3bfb42(0x205)]()&&this['_linesIds'][_0x3bfb42(0x16d)](_0x23f2a4);}}[_0x34066d(0x208)](){const _0x1e1b3d=_0x34066d;this[_0x1e1b3d(0x145)]||(this[_0x1e1b3d(0x141)][_0x1e1b3d(0x1fe)](_0x54a561=>{const _0x5442be=_0x1e1b3d;_0x54a561[_0x5442be(0x208)]();}),this[_0x1e1b3d(0x141)][_0x1e1b3d(0x1be)](),this[_0x1e1b3d(0x185)][_0x1e1b3d(0x1be)](),this['_groupIds']['clear'](),super['dispose']());}};function _0x359a36(_0xb5e1c4,_0x2ffce8){return function(_0xc75fe8,_0x377257){_0x2ffce8(_0xc75fe8,_0x377257,_0xb5e1c4);};}function _0xd44f06(_0x106ef4,_0x50757c,_0x1aa514,_0x58574c){const _0x454d6f=_0x34066d;var _0x223431=arguments[_0x454d6f(0x1c3)],_0x42b61c=_0x223431<0x3?_0x50757c:_0x58574c===null?_0x58574c=Object['getOwnPropertyDescriptor'](_0x50757c,_0x1aa514):_0x58574c,_0x27f96f;if(typeof Reflect==_0x454d6f(0x15c)&&typeof Reflect[_0x454d6f(0x1fb)]=='function')_0x42b61c=Reflect[_0x454d6f(0x1fb)](_0x106ef4,_0x50757c,_0x1aa514,_0x58574c);else{for(var _0x319916=_0x106ef4['length']-0x1;_0x319916>=0x0;_0x319916--)(_0x27f96f=_0x106ef4[_0x319916])&&(_0x42b61c=(_0x223431<0x3?_0x27f96f(_0x42b61c):_0x223431>0x3?_0x27f96f(_0x50757c,_0x1aa514,_0x42b61c):_0x27f96f(_0x50757c,_0x1aa514))||_0x42b61c);}return _0x223431>0x3&&_0x42b61c&&Object[_0x454d6f(0x206)](_0x50757c,_0x1aa514,_0x42b61c),_0x42b61c;}let _0xf4f77c=class extends _0xa7f297[_0x34066d(0x1d7)]{constructor(_0x38e072){const _0x318f15=_0x34066d;super(),this[_0x318f15(0x156)]=_0x38e072,_0x554fe0(this,'_shapeModelManagerMap',new Map()),this[_0x318f15(0x1ad)]();}[_0x34066d(0x194)](_0x9ec446,_0x4e4b13){const _0xa70548=_0x34066d;let _0x5381f2=this['_shapeModelManagerMap'][_0xa70548(0x1bd)](_0x9ec446);_0x5381f2||(_0x5381f2=new Map(),this['_shapeModelManagerMap']['set'](_0x9ec446,_0x5381f2));let _0x9405d4=_0x5381f2[_0xa70548(0x1bd)](_0x4e4b13);return _0x9405d4||(_0x9405d4=new _0x2c75b3(),_0x5381f2['set'](_0x4e4b13,_0x9405d4)),_0x9405d4;}['insertShape'](_0x5aa45f,_0x22d3e1,_0x40d7e8,_0x37ab02,_0x2cce43,_0x1e0602){const _0x51b515=_0x34066d;this[_0x51b515(0x194)](_0x5aa45f,_0x22d3e1)[_0x51b515(0x188)](_0x40d7e8,_0x37ab02,_0x2cce43,_0x1e0602);}[_0x34066d(0x1ea)](_0x83232c,_0xeff939,_0xdd639b){const _0x40b8d6=_0x34066d;this[_0x40b8d6(0x194)](_0x83232c,_0xeff939)['removeShape'](_0xdd639b);}['getBasicShapeType'](_0x38b656,_0x4544c5,_0x500cac){const _0x205a92=_0x34066d;return this[_0x205a92(0x194)](_0x38b656,_0x4544c5)[_0x205a92(0x16a)](_0x500cac);}['getShapeType'](_0x4607eb,_0xe53a85,_0x49b38d){const _0x38fb3b=_0x34066d;return this[_0x38fb3b(0x194)](_0x4607eb,_0xe53a85)[_0x38fb3b(0x16a)](_0x49b38d);}['hasShape'](_0x39a11b,_0x32e461,_0x5cb7eb){const _0x488db7=_0x34066d;return this[_0x488db7(0x194)](_0x39a11b,_0x32e461)[_0x488db7(0x128)](_0x5cb7eb);}[_0x34066d(0x1d4)](_0x2858c1,_0x32e8fa,_0x205db7){const _0x36089c=_0x34066d;return this[_0x36089c(0x194)](_0x2858c1,_0x32e8fa)['getShapeType'](_0x205db7);}[_0x34066d(0x138)](_0x4a7245,_0x59433a,_0x5b0013){const _0x38d9d2=_0x34066d;let _0x1cf3ac=this['_ensureShapeModelManager'](_0x4a7245,_0x59433a);if(!_0x1cf3ac[_0x38d9d2(0x16a)](_0x5b0013))return;let _0x15b643=_0x1cf3ac[_0x38d9d2(0x141)]['get'](_0x5b0013);if(_0x15b643)return _0x15b643[_0x38d9d2(0x140)]();}[_0x34066d(0x167)](_0x2237d1,_0xb54cc1){const _0x137549=_0x34066d;return this[_0x137549(0x194)](_0x2237d1,_0xb54cc1)['getShapeDisplayNames']();}[_0x34066d(0x1da)](_0x46eb7d,_0x4df90e,_0x5d0235){const _0x479d9f=_0x34066d;return this['_ensureShapeModelManager'](_0x46eb7d,_0x4df90e)['_shapes'][_0x479d9f(0x1bd)](_0x5d0235);}[_0x34066d(0x214)](_0x4ccf45,_0x38ef65,_0x4e90b1){const _0x20e994=_0x34066d;return this[_0x20e994(0x194)](_0x4ccf45,_0x38ef65)[_0x20e994(0x214)](_0x4e90b1);}[_0x34066d(0x1aa)](_0x4ac0e0,_0x399780,_0x52f9c1){const _0x2c8786=_0x34066d;let _0x2d7372=this[_0x2c8786(0x194)](_0x4ac0e0,_0x399780)[_0x2c8786(0x141)][_0x2c8786(0x1bd)](_0x52f9c1);if(_0x2d7372)return _0x2d7372['getShapeRelation']();}[_0x34066d(0x1f9)](){}['_serializeShapeForUnit'](_0x3771e1){const _0x267bc6=_0x34066d;let _0x27399b={},_0x36472c=this[_0x267bc6(0x183)][_0x267bc6(0x1bd)](_0x3771e1);return _0x36472c&&_0x36472c[_0x267bc6(0x1fe)]((_0x874798,_0x4d9a1a)=>{const _0xb7162b=_0x267bc6;let _0xf22b97=_0x874798[_0xb7162b(0x13e)]();_0xf22b97['length']>0x0&&(_0x27399b[_0x4d9a1a]=_0xf22b97);}),JSON[_0x267bc6(0x164)](_0x27399b);}[_0x34066d(0x142)](_0x402d77,_0x5e305d){const _0x1d6fda=_0x34066d;Object[_0x1d6fda(0x135)](_0x5e305d)[_0x1d6fda(0x1fe)](_0x54dcf0=>{const _0x5c0b6f=_0x1d6fda;this[_0x5c0b6f(0x194)](_0x402d77,_0x54dcf0)[_0x5c0b6f(0x216)](_0x5e305d[_0x54dcf0]);});}['toJSON'](){const _0x35f90e=_0x34066d;let _0x5a7fa0={};return this[_0x35f90e(0x183)]['forEach']((_0x1fcf1f,_0x268203)=>{const _0x16c3b7=_0x35f90e;_0x5a7fa0[_0x268203]={},_0x1fcf1f[_0x16c3b7(0x1fe)]((_0x3e0208,_0x164268)=>{_0x5a7fa0[_0x268203][_0x164268]=_0x3e0208['toJSON']();});}),_0x5a7fa0;}['fromJSON'](_0x56a7fc){const _0x88b59f=_0x34066d;Object[_0x88b59f(0x135)](_0x56a7fc)['forEach'](_0x4576dc=>{let _0x12fece=_0x56a7fc[_0x4576dc];Object['keys'](_0x12fece)['forEach'](_0x2d7d0b=>{const _0x331bdc=_0x2aa1;this[_0x331bdc(0x194)](_0x4576dc,_0x2d7d0b)[_0x331bdc(0x216)](_0x12fece[_0x2d7d0b]);});});}[_0x34066d(0x1ad)](){const _0x250ebc=_0x34066d;this[_0x250ebc(0x156)][_0x250ebc(0x1fa)]({'pluginName':_0x250ebc(0x1f8),'businesses':[_0xa7f297[_0x250ebc(0x20a)][_0x250ebc(0x163)]],'toJson':_0x290a62=>this[_0x250ebc(0x1b0)](_0x290a62),'parseJson':_0x27aa3e=>JSON[_0x250ebc(0x171)](_0x27aa3e),'onLoad':(_0x5ad7e5,_0x3b8ffa)=>{const _0x44ada5=_0x250ebc;this[_0x44ada5(0x142)](_0x5ad7e5,_0x3b8ffa);},'onUnLoad':_0xfaabb2=>{const _0x560031=_0x250ebc;let _0x17bf96=this[_0x560031(0x183)]['get'](_0xfaabb2);_0x17bf96&&(_0x17bf96[_0x560031(0x1fe)](_0x4daf98=>{const _0xa67239=_0x560031;_0x4daf98[_0xa67239(0x208)]();}),this['_shapeModelManagerMap'][_0x560031(0x12c)](_0xfaabb2));}});}[_0x34066d(0x208)](){const _0x4f02b8=_0x34066d;this['_shapeModelManagerMap'][_0x4f02b8(0x1fe)](_0x49b46e=>{const _0x479271=_0x4f02b8;_0x49b46e[_0x479271(0x1fe)](_0x207d51=>{const _0xbf1630=_0x479271;_0x207d51[_0xbf1630(0x208)]();});});}};_0xf4f77c=_0xd44f06([_0x359a36(0x0,_0xa7f297[_0x34066d(0x1c6)])],_0xf4f77c);let _0xd3002d={'id':_0x34066d(0x1fc),'type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x159)],'handler':(_0x31a2b8,_0x13f23d)=>{const _0x30fbb7=_0x34066d;let {unitId:_0x587748,subUnitId:_0x4450d1,shapeType:_0x334f49,shapeId:_0x1cb740,shapeName:_0x74c842,shapeData:_0x17fcd0}=_0x13f23d;return _0x31a2b8[_0x30fbb7(0x1bd)](_0xf4f77c)['insertShape'](_0x587748,_0x4450d1,_0x334f49,_0x1cb740,_0x17fcd0,_0x74c842),!0x0;}},_0xa468b3={'id':'sheet.mutation.remove-shape','type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x159)],'handler':(_0x225d7b,_0x35a9da)=>{const _0x276934=_0x34066d;let {unitId:_0xfef416,subUnitId:_0xafa4eb,shapeId:_0xf2aee3}=_0x35a9da;return _0x225d7b[_0x276934(0x1bd)](_0xf4f77c)[_0x276934(0x1ea)](_0xfef416,_0xafa4eb,_0xf2aee3),!0x0;}},_0x230cdc={'type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x182)],'id':'sheet.command.insert-shape','handler':(_0x3da7c3,_0x573722)=>{const _0x4492e5=_0x34066d;var _0x4bd523,_0x376b51,_0x1c1532,_0x13ad1a,_0x475949,_0x3291be,_0x519b8e;let _0x33a085=(0x0,_0x539446[_0x4492e5(0x177)])(_0x3da7c3[_0x4492e5(0x1bd)](_0xa7f297[_0x4492e5(0x17a)]),_0x573722);if(!_0x33a085)return!0x1;let _0x167d82=_0x3da7c3[_0x4492e5(0x1bd)](_0x539446[_0x4492e5(0x218)]),{unitId:_0x124b75,subUnitId:_0x40e6c1}=_0x33a085,_0xd571c4=_0x167d82[_0x4492e5(0x1ab)](_0x124b75,_0x40e6c1);if(!_0xd571c4)return!0x1;let _0x35fae4=_0x3da7c3['get'](_0xa7f297[_0x4492e5(0x20b)]),_0x5c7021=_0x3da7c3['get'](_0xa7f297[_0x4492e5(0x169)]),_0x3cc27b=_0x3da7c3[_0x4492e5(0x1bd)](_0x539446[_0x4492e5(0x187)]),_0x1e65b5=_0x3da7c3[_0x4492e5(0x1bd)](_0x25ca33[_0x4492e5(0x1d9)]),_0x1b92e9=_0x3da7c3['get'](_0xf4f77c),{shapeType:_0x297b6d,shapeData:_0x58ac49}=_0x573722,_0x3a72d3=_0x573722['shapeId']||(0x0,_0xa7f297[_0x4492e5(0x15f)])(),_0x4c30f5={'unitId':_0x124b75,'subUnitId':_0x40e6c1,'shapeId':_0x3a72d3,'shapeName':(_0x4bd523=_0x573722[_0x4492e5(0x149)])==null?(0x0,_0x31e983[_0x4492e5(0x196)])(_0x297b6d,_0x1b92e9['getShapeDisplayNames'](_0x124b75,_0x40e6c1)):_0x4bd523,'shapeType':_0x297b6d,'shapeData':_0x58ac49},_0x1e8dce=_0x573722[_0x4492e5(0x173)]||0xc8,_0x3595be=_0x573722[_0x4492e5(0x129)]||0xc8,_0x25ce8e=0x0,_0x5c6eb6=0x0;if(_0x573722['position']){let {x:_0x47f60b,y:_0x883eeb}=_0x573722['position'];_0x25ce8e=_0x47f60b,_0x5c6eb6=_0x883eeb;}else{if(_0x573722[_0x4492e5(0x157)]){let {startRow:_0xf8972d,startColumn:_0x5da432}=_0x573722[_0x4492e5(0x157)],_0x89e0ed=_0xd571c4['getCellWithCoordByIndex'](_0xf8972d,_0x5da432);_0x25ce8e=_0x89e0ed['startX']+0xa,_0x5c6eb6=_0x89e0ed[_0x4492e5(0x1f1)]+0xa;}}let _0x21cf36={'left':_0x25ce8e,'top':_0x5c6eb6,'width':_0x1e8dce,'height':_0x3595be,'angle':(_0x376b51=_0x573722[_0x4492e5(0x13a)])==null?0x0:_0x376b51,'flipX':(_0x1c1532=_0x573722['flipX'])==null?!0x1:_0x1c1532,'flipY':(_0x13ad1a=_0x573722[_0x4492e5(0x193)])==null?!0x1:_0x13ad1a},_0x51d533=(0x0,_0x25ca33[_0x4492e5(0x1a4)])(_0x21cf36,_0xd571c4),_0x204a8e=(0x0,_0x25ca33['transformToAxisAlignPosition'])(_0x21cf36,_0xd571c4),_0x5e9e09={'unitId':_0x124b75,'subUnitId':_0x40e6c1,'drawingId':_0x3a72d3,'drawingType':_0xa7f297[_0x4492e5(0x1dd)][_0x4492e5(0x1c9)],'name':_0x573722[_0x4492e5(0x1a0)],'description':_0x573722[_0x4492e5(0x172)],'sheetTransform':_0x51d533,'transform':_0x21cf36,'data':{'shapeType':_0x297b6d,'shapeData':_0x58ac49},'axisAlignSheetTransform':_0x204a8e,'allowTransform':!0x0,'hidden':_0x573722[_0x4492e5(0x20e)]===!0x1,'selectable':(_0x475949=_0x573722[_0x4492e5(0x181)])==null?!0x0:_0x475949};(0x0,_0x31e983[_0x4492e5(0x1e7)])(_0x297b6d)&&(_0x5e9e09['data'][_0x4492e5(0x197)]=!0x1,_0x5e9e09[_0x4492e5(0x1b7)][_0x4492e5(0x1b5)]=!0x1,_0x5e9e09[_0x4492e5(0x1b7)][_0x4492e5(0x1d5)]=!0x1,_0x5e9e09[_0x4492e5(0x1b7)][_0x4492e5(0x1eb)]=!0x1,_0x5e9e09[_0x4492e5(0x143)][_0x4492e5(0x1b5)]=!0x1,_0x5e9e09['transform'][_0x4492e5(0x1d5)]=!0x1,_0x5e9e09['transform'][_0x4492e5(0x1eb)]=!0x1);let {undo:_0x4ee266,redo:_0x9bd14d,objects:_0x26b222}=_0x1e65b5[_0x4492e5(0x1e6)]([_0x5e9e09]),_0x36fe8c=_0x3cc27b[_0x4492e5(0x155)]({'id':_0x25ca33[_0x4492e5(0x1e0)]['id'],'params':{'unitId':_0x124b75,'drawings':[_0x5e9e09]}}),_0x25dea4=[...(_0x3291be=_0x36fe8c[_0x4492e5(0x1d3)])==null?[]:_0x3291be,{'id':_0x25ca33[_0x4492e5(0x19f)]['id'],'params':{'unitId':_0x124b75,'subUnitId':_0x40e6c1,'op':_0x9bd14d,'objects':_0x26b222,'type':_0x25ca33[_0x4492e5(0x1ff)][_0x4492e5(0x1d6)]}},{'id':_0x25ca33[_0x4492e5(0x126)]['id'],'params':[_0x124b75]},..._0x36fe8c[_0x4492e5(0x18c)],{'id':_0xd3002d['id'],'params':_0x4c30f5}],_0x16958d=[{'id':_0xa468b3['id'],'params':{'unitId':_0x124b75,'subUnitId':_0x40e6c1,'shapeId':_0x3a72d3}},...(_0x519b8e=_0x36fe8c['preUndos'])==null?[]:_0x519b8e,{'id':_0x25ca33[_0x4492e5(0x19f)]['id'],'params':{'unitId':_0x124b75,'subUnitId':_0x40e6c1,'op':_0x4ee266,'objects':_0x26b222,'type':_0x25ca33[_0x4492e5(0x1ff)][_0x4492e5(0x1e2)]}},{'id':_0x25ca33[_0x4492e5(0x126)]['id'],'params':[_0x124b75]},..._0x36fe8c[_0x4492e5(0x191)]];return(0x0,_0xa7f297[_0x4492e5(0x1e1)])(_0x25dea4,_0x35fae4)[_0x4492e5(0x1f6)]?(_0x5c7021[_0x4492e5(0x1db)]({'unitID':_0x124b75,'undoMutations':_0x16958d,'redoMutations':_0x25dea4}),!0x0):!0x1;}},_0x56a7b5={'id':'sheet.mutation.update-shape-data','type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x159)],'handler':(_0x4dc443,_0x1db923)=>{const _0x4754a3=_0x34066d;let {unitId:_0x555811,subUnitId:_0x431d50,shapeType:_0x1465ff,shapeId:_0x5d2e98,shapeData:_0xeb412a}=_0x1db923,_0x3ba171=_0x4dc443[_0x4754a3(0x1bd)](_0xf4f77c)[_0x4754a3(0x1da)](_0x555811,_0x431d50,_0x5d2e98);return _0x3ba171&&(_0x1465ff!==void 0x0&&_0x3ba171['setShapeType'](_0x1465ff),_0xeb412a&&(_0x3ba171==null||_0x3ba171[_0x4754a3(0x210)](_0xeb412a,!0x0))),!0x0;}},_0x1fd9bb={'type':_0xa7f297['CommandType']['COMMAND'],'id':_0x34066d(0x1b9),'handler':(_0x275dae,_0x417cb4)=>{const _0x56c594=_0x34066d;var _0x34e6a8,_0x353bc6,_0xd387a5,_0x177a60,_0x3d3926;let _0x240600=(0x0,_0x539446['getSheetCommandTarget'])(_0x275dae[_0x56c594(0x1bd)](_0xa7f297[_0x56c594(0x17a)]),_0x417cb4);if(!_0x240600)return!0x1;let _0x292066=_0x275dae['get'](_0x539446[_0x56c594(0x218)]),{unitId:_0x21fecf,subUnitId:_0x406863}=_0x240600,_0x41204a=_0x292066[_0x56c594(0x1ab)](_0x21fecf,_0x406863);if(!_0x41204a)return!0x1;let _0x3432d9=_0x275dae[_0x56c594(0x1bd)](_0xf4f77c),{shapeId:_0x1623a8,shapeType:_0x5cc40c,shapeData:_0xc8439a,position:_0x333f5d,width:_0x288e6e,height:_0x1dcc60}=_0x417cb4,_0x1618c1=_0x3432d9[_0x56c594(0x1da)](_0x21fecf,_0x406863,_0x1623a8);if(!_0x1618c1)return!0x1;let _0xaa0c4=_0x275dae[_0x56c594(0x1bd)](_0xa7f297[_0x56c594(0x20b)]),_0x58f96e=_0x275dae[_0x56c594(0x1bd)](_0xa7f297['IUndoRedoService']),_0x2e57a4=_0x275dae[_0x56c594(0x1bd)](_0x539446[_0x56c594(0x187)]),_0x5903c0=_0x275dae[_0x56c594(0x1bd)](_0x25ca33[_0x56c594(0x1d9)]),_0x49ca27={'unitId':_0x21fecf,'subUnitId':_0x406863,'shapeId':_0x1623a8,'shapeType':_0x5cc40c,'shapeData':_0xc8439a},_0x4a1a67=_0x1618c1[_0x56c594(0x16a)](),_0x471aa8=_0x1618c1[_0x56c594(0x140)](),{x:_0x3c7226,y:_0x199722}=_0x333f5d,_0x1b884f={'left':_0x3c7226,'top':_0x199722,'width':_0x288e6e,'height':_0x1dcc60,'angle':(_0x34e6a8=_0x417cb4['rotation'])==null?0x0:_0x34e6a8,'flipX':(_0x353bc6=_0x417cb4[_0x56c594(0x192)])==null?!0x1:_0x353bc6,'flipY':(_0xd387a5=_0x417cb4[_0x56c594(0x193)])==null?!0x1:_0xd387a5},_0x18188e=(0x0,_0x25ca33['transformToDrawingPosition'])(_0x1b884f,_0x41204a),_0xb64a33=(0x0,_0x25ca33[_0x56c594(0x1ba)])(_0x1b884f,_0x41204a),_0x578f75={'unitId':_0x21fecf,'subUnitId':_0x406863,'drawingId':_0x1623a8,'drawingType':_0xa7f297[_0x56c594(0x1dd)]['DRAWING_SHAPE'],'name':_0x417cb4[_0x56c594(0x1a0)],'description':_0x417cb4[_0x56c594(0x172)],'sheetTransform':_0x18188e,'transform':_0x1b884f,'data':{'shapeType':_0x5cc40c,'shapeData':_0xc8439a},'axisAlignSheetTransform':_0xb64a33,'allowTransform':!0x0,'hidden':!_0x417cb4[_0x56c594(0x20e)],'selectable':_0x417cb4[_0x56c594(0x181)]};(0x0,_0x31e983[_0x56c594(0x1e7)])(_0x5cc40c)&&(_0x578f75[_0x56c594(0x1b7)][_0x56c594(0x197)]=!0x1,_0x578f75[_0x56c594(0x1b7)][_0x56c594(0x1b5)]=!0x1,_0x578f75[_0x56c594(0x1b7)][_0x56c594(0x1d5)]=!0x1,_0x578f75[_0x56c594(0x1b7)][_0x56c594(0x1eb)]=!0x1,_0x578f75['transform'][_0x56c594(0x1b5)]=!0x1,_0x578f75[_0x56c594(0x143)][_0x56c594(0x1d5)]=!0x1,_0x578f75['transform'][_0x56c594(0x1eb)]=!0x1);let {undo:_0x786eec,redo:_0x1ced60,objects:_0x17d993}=_0x5903c0['getBatchUpdateOp']([_0x578f75]),_0x22e04d=_0x2e57a4[_0x56c594(0x155)]({'id':_0x25ca33['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x21fecf,'drawings':[_0x578f75]}}),_0x28e40d=[...(_0x177a60=_0x22e04d['preRedos'])==null?[]:_0x177a60,{'id':_0x25ca33[_0x56c594(0x19f)]['id'],'params':{'unitId':_0x21fecf,'subUnitId':_0x406863,'op':_0x1ced60,'objects':_0x17d993,'type':_0x25ca33[_0x56c594(0x1ff)][_0x56c594(0x175)]}},{'id':_0x25ca33[_0x56c594(0x126)]['id'],'params':[_0x21fecf]},..._0x22e04d[_0x56c594(0x18c)],{'id':_0x56a7b5['id'],'params':_0x49ca27}],_0x2fbc6e=[...(_0x3d3926=_0x22e04d[_0x56c594(0x144)])==null?[]:_0x3d3926,{'id':_0x25ca33[_0x56c594(0x19f)]['id'],'params':{'unitId':_0x21fecf,'subUnitId':_0x406863,'op':_0x786eec,'objects':_0x17d993,'type':_0x25ca33[_0x56c594(0x1ff)][_0x56c594(0x175)]}},{'id':_0x25ca33[_0x56c594(0x126)]['id'],'params':[_0x21fecf]},..._0x22e04d[_0x56c594(0x191)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x21fecf,'subUnitId':_0x406863,'shapeType':_0x4a1a67,'shapeId':_0x1623a8,'shapeData':_0x471aa8}}];return(0x0,_0xa7f297[_0x56c594(0x1e1)])(_0x28e40d,_0xaa0c4)[_0x56c594(0x1f6)]?(_0x58f96e[_0x56c594(0x1db)]({'unitID':_0x21fecf,'undoMutations':_0x2fbc6e,'redoMutations':_0x28e40d}),!0x0):!0x1;}},_0x22b430={'type':_0xa7f297[_0x34066d(0x212)]['COMMAND'],'id':_0x34066d(0x1ae),'handler':(_0x19bda9,_0x218378)=>{const _0x3cfde4=_0x34066d;var _0x5b4887,_0x39acc0;let _0x4d2dc6=(0x0,_0x539446[_0x3cfde4(0x177)])(_0x19bda9[_0x3cfde4(0x1bd)](_0xa7f297[_0x3cfde4(0x17a)]),_0x218378);if(!_0x4d2dc6)return!0x1;let _0x344bae=_0x19bda9['get'](_0x539446['SheetSkeletonService']),{unitId:_0x5522c3,subUnitId:_0x3acf32}=_0x4d2dc6,_0x417427=_0x344bae[_0x3cfde4(0x12e)](_0x5522c3,_0x3acf32);if(!_0x417427)return!0x1;let _0x2f8e1c=_0x19bda9[_0x3cfde4(0x1bd)](_0x25ca33['ISheetDrawingService']),{shapeId:_0xe710f,flipH:_0x3fe973,flipV:_0x5b1a41}=_0x218378,_0x3292ef=_0x2f8e1c[_0x3cfde4(0x18a)]({'unitId':_0x5522c3,'subUnitId':_0x3acf32,'drawingId':_0xe710f});if(!_0x3292ef)return!0x1;let _0x37a423=_0x19bda9['get'](_0xf4f77c)[_0x3cfde4(0x1da)](_0x5522c3,_0x3acf32,_0xe710f);if(!_0x37a423)return!0x1;let _0x211afb=_0x19bda9[_0x3cfde4(0x1bd)](_0xa7f297[_0x3cfde4(0x20b)]),_0xd5b1c3=_0x19bda9[_0x3cfde4(0x1bd)](_0xa7f297['IUndoRedoService']),_0x53bf55=_0x19bda9[_0x3cfde4(0x1bd)](_0x539446[_0x3cfde4(0x187)]),_0x4a470c={..._0x3292ef[_0x3cfde4(0x143)]};_0x3fe973!==void 0x0&&(_0x4a470c[_0x3cfde4(0x192)]=!_0x4a470c['flipX']),_0x5b1a41!==void 0x0&&(_0x4a470c[_0x3cfde4(0x193)]=!_0x4a470c[_0x3cfde4(0x193)]);let _0x1dc7f6=(0x0,_0x25ca33[_0x3cfde4(0x1a4)])(_0x4a470c,_0x417427),_0x15f553=(0x0,_0x25ca33[_0x3cfde4(0x1ba)])(_0x4a470c,_0x417427),_0x4fe163=_0x37a423['getShapeType'](),_0x58d0cb=_0x37a423[_0x3cfde4(0x140)](),_0x59c616={'unitId':_0x5522c3,'subUnitId':_0x3acf32,'drawingId':_0xe710f,'drawingType':_0xa7f297[_0x3cfde4(0x1dd)][_0x3cfde4(0x1c9)],'sheetTransform':_0x1dc7f6,'transform':_0x4a470c,'data':{'shapeType':_0x4fe163,'shapeData':_0x58d0cb},'axisAlignSheetTransform':_0x15f553,'allowTransform':!0x0},{undo:_0x393f08,redo:_0x39935e,objects:_0x34ec64}=_0x2f8e1c['getBatchUpdateOp']([_0x59c616]),_0x4a03a3=_0x53bf55[_0x3cfde4(0x155)]({'id':_0x25ca33[_0x3cfde4(0x195)]['id'],'params':{'unitId':_0x5522c3,'drawings':[_0x59c616]}}),_0x23cf06=[...(_0x5b4887=_0x4a03a3['preRedos'])==null?[]:_0x5b4887,{'id':_0x25ca33[_0x3cfde4(0x19f)]['id'],'params':{'unitId':_0x5522c3,'subUnitId':_0x3acf32,'op':_0x39935e,'objects':_0x34ec64,'type':_0x25ca33[_0x3cfde4(0x1ff)][_0x3cfde4(0x175)]}},{'id':_0x25ca33[_0x3cfde4(0x126)]['id'],'params':[_0x5522c3]},..._0x4a03a3['redos']],_0x5be735=[...(_0x39acc0=_0x4a03a3['preUndos'])==null?[]:_0x39acc0,{'id':_0x25ca33[_0x3cfde4(0x19f)]['id'],'params':{'unitId':_0x5522c3,'subUnitId':_0x3acf32,'op':_0x393f08,'objects':_0x34ec64,'type':_0x25ca33[_0x3cfde4(0x1ff)]['UPDATE']}},{'id':_0x25ca33[_0x3cfde4(0x126)]['id'],'params':[_0x5522c3]},..._0x4a03a3[_0x3cfde4(0x191)]];if((0x0,_0x31e983[_0x3cfde4(0x1e7)])(_0x4fe163)){let _0x26c830=_0x37a423[_0x3cfde4(0x13b)]();if(_0x26c830){let _0x11e7de={..._0x26c830};_0x11e7de[_0x3cfde4(0x1f5)]=void 0x0,_0x11e7de['to']=void 0x0,_0x23cf06['push']({'id':_0x56a7b5['id'],'params':{'unitId':_0x5522c3,'subUnitId':_0x3acf32,'shapeId':_0xe710f,'shapeType':_0x4fe163,'shapeData':{'relation':_0x11e7de}}}),_0x5be735['push']({'id':_0x56a7b5['id'],'params':{'unitId':_0x5522c3,'subUnitId':_0x3acf32,'shapeId':_0xe710f,'shapeType':_0x4fe163,'shapeData':{'relation':_0x26c830}}});}}return(0x0,_0xa7f297[_0x3cfde4(0x1e1)])(_0x23cf06,_0x211afb)['result']?(_0xd5b1c3[_0x3cfde4(0x1db)]({'unitID':_0x5522c3,'undoMutations':_0x5be735,'redoMutations':_0x23cf06}),!0x0):!0x1;}},_0x539900={'type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x182)],'id':'sheet.command.set-shape-rotate','handler':(_0x49ec56,_0x1bbd13)=>{const _0x9645ef=_0x34066d;var _0x35968a,_0x4356f3;let _0x4cb8f9=(0x0,_0x539446[_0x9645ef(0x177)])(_0x49ec56[_0x9645ef(0x1bd)](_0xa7f297[_0x9645ef(0x17a)]),_0x1bbd13);if(!_0x4cb8f9)return!0x1;let _0x56bb8c=_0x49ec56['get'](_0x539446['SheetSkeletonService']),{unitId:_0x28a162,subUnitId:_0x224be1}=_0x4cb8f9,_0x5f47f0=_0x56bb8c[_0x9645ef(0x12e)](_0x28a162,_0x224be1);if(!_0x5f47f0)return!0x1;let _0x101b55=_0x49ec56['get'](_0x25ca33[_0x9645ef(0x1d9)]),{shapeId:_0x220676,rotate:_0x476fdd}=_0x1bbd13,_0x1413f9=_0x101b55[_0x9645ef(0x18a)]({'unitId':_0x28a162,'subUnitId':_0x224be1,'drawingId':_0x220676});if(!_0x1413f9)return!0x1;let _0x426652=_0x49ec56[_0x9645ef(0x1bd)](_0xf4f77c)[_0x9645ef(0x1da)](_0x28a162,_0x224be1,_0x220676);if(!_0x426652)return!0x1;let _0x2dcca7=_0x49ec56[_0x9645ef(0x1bd)](_0xa7f297[_0x9645ef(0x20b)]),_0x3eaa75=_0x49ec56[_0x9645ef(0x1bd)](_0xa7f297[_0x9645ef(0x169)]),_0x583253=_0x49ec56[_0x9645ef(0x1bd)](_0x539446[_0x9645ef(0x187)]),_0x42f1e5={..._0x1413f9[_0x9645ef(0x143)]};_0x476fdd!==void 0x0&&(_0x42f1e5[_0x9645ef(0x213)]=(_0x42f1e5['angle']||0x0)+_0x476fdd);let _0xca8121=(0x0,_0x25ca33[_0x9645ef(0x1a4)])(_0x42f1e5,_0x5f47f0),_0x4b15a2=(0x0,_0x25ca33[_0x9645ef(0x1ba)])(_0x42f1e5,_0x5f47f0),_0x1f4156=_0x426652[_0x9645ef(0x16a)](),_0x2be693=_0x426652[_0x9645ef(0x140)](),_0x496fcc={'unitId':_0x28a162,'subUnitId':_0x224be1,'drawingId':_0x220676,'drawingType':_0xa7f297[_0x9645ef(0x1dd)][_0x9645ef(0x1c9)],'sheetTransform':_0xca8121,'transform':_0x42f1e5,'data':{'shapeType':_0x1f4156,'shapeData':_0x2be693},'axisAlignSheetTransform':_0x4b15a2,'allowTransform':!0x0},{undo:_0x1dc8b1,redo:_0x248a63,objects:_0x12d198}=_0x101b55[_0x9645ef(0x15b)]([_0x496fcc]),_0x4bb165=_0x583253['onCommandExecute']({'id':_0x25ca33[_0x9645ef(0x195)]['id'],'params':{'unitId':_0x28a162,'drawings':[_0x496fcc]}}),_0x5437cc=[...(_0x35968a=_0x4bb165[_0x9645ef(0x1d3)])==null?[]:_0x35968a,{'id':_0x25ca33[_0x9645ef(0x19f)]['id'],'params':{'unitId':_0x28a162,'subUnitId':_0x224be1,'op':_0x248a63,'objects':_0x12d198,'type':_0x25ca33[_0x9645ef(0x1ff)]['UPDATE']}},{'id':_0x25ca33['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x28a162]},..._0x4bb165[_0x9645ef(0x18c)]],_0x18ea7e=[...(_0x4356f3=_0x4bb165[_0x9645ef(0x144)])==null?[]:_0x4356f3,{'id':_0x25ca33[_0x9645ef(0x19f)]['id'],'params':{'unitId':_0x28a162,'subUnitId':_0x224be1,'op':_0x1dc8b1,'objects':_0x12d198,'type':_0x25ca33[_0x9645ef(0x1ff)][_0x9645ef(0x175)]}},{'id':_0x25ca33[_0x9645ef(0x126)]['id'],'params':[_0x28a162]},..._0x4bb165['undos']];return(0x0,_0xa7f297[_0x9645ef(0x1e1)])(_0x5437cc,_0x2dcca7)['result']?(_0x3eaa75[_0x9645ef(0x1db)]({'unitID':_0x28a162,'undoMutations':_0x18ea7e,'redoMutations':_0x5437cc}),!0x0):!0x1;}},_0x2d5b38={'type':_0xa7f297[_0x34066d(0x212)]['COMMAND'],'id':_0x34066d(0x122),'handler':(_0x4d948f,_0x3715f6)=>{const _0x553bc9=_0x34066d;var _0x492e85;let _0x16336c=(0x0,_0x539446['getSheetCommandTarget'])(_0x4d948f['get'](_0xa7f297[_0x553bc9(0x17a)]),_0x3715f6);if(!_0x16336c)return!0x1;let {unitId:_0x3cca6c,subUnitId:_0x5b7e32}=_0x16336c,{shapeId:_0x3d3bf1}=_0x3715f6,_0x271391=_0x4d948f['get'](_0xf4f77c)[_0x553bc9(0x1da)](_0x3cca6c,_0x5b7e32,_0x3d3bf1);if(!_0x271391)return!0x1;let _0x1f5a04=_0x271391[_0x553bc9(0x1cb)](),_0x40509d=(_0x492e85=_0x1f5a04==null?void 0x0:_0x1f5a04[_0x553bc9(0x1e5)])==null?!0x0:_0x492e85,_0x39ba8f=!_0x40509d,_0x24f8e7=_0x4d948f[_0x553bc9(0x1bd)](_0xa7f297[_0x553bc9(0x20b)]),_0x181e38=_0x4d948f[_0x553bc9(0x1bd)](_0xa7f297[_0x553bc9(0x169)]),_0x41c132={'unitId':_0x3cca6c,'subUnitId':_0x5b7e32,'shapeId':_0x3d3bf1,'shapeData':{'shapeText':{'isHorizontal':_0x39ba8f}}},_0x12f6aa={'unitId':_0x3cca6c,'subUnitId':_0x5b7e32,'shapeId':_0x3d3bf1,'shapeData':{'shapeText':{'isHorizontal':_0x40509d}}},_0x142158=[{'id':_0x56a7b5['id'],'params':_0x41c132}],_0x162447=[{'id':_0x56a7b5['id'],'params':_0x12f6aa}];return(0x0,_0xa7f297[_0x553bc9(0x1e1)])(_0x142158,_0x24f8e7)[_0x553bc9(0x1f6)]?(_0x181e38[_0x553bc9(0x1db)]({'unitID':_0x3cca6c,'undoMutations':_0x162447,'redoMutations':_0x142158}),!0x0):!0x1;}},_0x430b70={'type':_0xa7f297['CommandType'][_0x34066d(0x182)],'id':'sheet.command.update-connector-relation','handler':(_0x3ff076,_0xe13d1d)=>{const _0x1425e9=_0x34066d;var _0x245fc8,_0x41f267,_0x4af69e,_0x29dd68;let _0x3927e3=(0x0,_0x539446[_0x1425e9(0x177)])(_0x3ff076['get'](_0xa7f297['IUniverInstanceService']),_0xe13d1d);if(!_0x3927e3)return!0x1;let _0x347910=_0x3ff076['get'](_0x539446['SheetSkeletonService']),{unitId:_0x11296d,subUnitId:_0x20c2be}=_0x3927e3,_0x58194c=_0x347910[_0x1425e9(0x12e)](_0x11296d,_0x20c2be);if(!_0x58194c)return!0x1;let _0xc360b=_0x3ff076[_0x1425e9(0x1bd)](_0x25ca33[_0x1425e9(0x1d9)]),{connectorShapeId:_0x42cefe,width:_0x8176f1,height:_0xf2c826,left:_0x95928f,top:_0x262f4d,flipX:_0x26df58,flipY:_0x530fab,rotation:_0xab1152,oldAdjustValues:_0x23257e,newAdjustValues:_0x1bfe62,oldLineType:_0x3fe2a4,newLineType:_0x5eded5,oldRelation:_0x3cfa04,newRelation:_0x17c347}=_0xe13d1d,_0x55fa5b=_0xc360b[_0x1425e9(0x18a)]({'unitId':_0x11296d,'subUnitId':_0x20c2be,'drawingId':_0x42cefe});if(!_0x55fa5b)return!0x1;let _0x299dd3=_0x3ff076[_0x1425e9(0x1bd)](_0xf4f77c)[_0x1425e9(0x1da)](_0x11296d,_0x20c2be,_0x42cefe);if(!_0x299dd3)return!0x1;let _0x49d4fc=_0x3ff076['get'](_0xa7f297['ICommandService']),_0x3fa951=_0x3ff076[_0x1425e9(0x1bd)](_0xa7f297[_0x1425e9(0x169)]),_0xcdba30=_0x3ff076[_0x1425e9(0x1bd)](_0x539446['SheetInterceptorService']),_0x137f1d={..._0x55fa5b[_0x1425e9(0x143)],'width':_0x8176f1,'height':_0xf2c826,'left':_0x95928f,'top':_0x262f4d,'flipX':_0x26df58,'flipY':_0x530fab,'angle':(_0x245fc8=_0xab1152==null?(_0x41f267=_0x55fa5b['transform'])==null?void 0x0:_0x41f267[_0x1425e9(0x213)]:_0xab1152)==null?0x0:_0x245fc8},_0x55d1fa=(0x0,_0x25ca33[_0x1425e9(0x1a4)])(_0x137f1d,_0x58194c),_0x2005e4=(0x0,_0x25ca33[_0x1425e9(0x1ba)])(_0x137f1d,_0x58194c),_0x430bef=_0x299dd3[_0x1425e9(0x16a)](),_0x2eb81a=_0x299dd3[_0x1425e9(0x140)](),_0xc02612={'unitId':_0x11296d,'subUnitId':_0x20c2be,'drawingId':_0x42cefe,'drawingType':_0xa7f297[_0x1425e9(0x1dd)][_0x1425e9(0x1c9)],'sheetTransform':_0x55d1fa,'transform':_0x137f1d,'data':{'shapeType':_0x5eded5||_0x3fe2a4||_0x430bef,'shapeData':{..._0x2eb81a,'adjustValues':_0x1bfe62||_0x23257e||(_0x2eb81a==null?void 0x0:_0x2eb81a['adjustValues']),'relation':_0x17c347||_0x3cfa04||(_0x2eb81a==null?void 0x0:_0x2eb81a[_0x1425e9(0x20c)])}},'axisAlignSheetTransform':_0x2005e4,'allowTransform':!0x0},{undo:_0x566963,redo:_0x3ca349,objects:_0x4156f9}=_0xc360b['getBatchUpdateOp']([_0xc02612]),_0x31b92a=_0xcdba30[_0x1425e9(0x155)]({'id':_0x25ca33[_0x1425e9(0x195)]['id'],'params':{'unitId':_0x11296d,'drawings':[_0xc02612]}}),_0x506cd4=[...(_0x4af69e=_0x31b92a['preRedos'])==null?[]:_0x4af69e,{'id':_0x25ca33[_0x1425e9(0x19f)]['id'],'params':{'unitId':_0x11296d,'subUnitId':_0x20c2be,'op':_0x3ca349,'objects':_0x4156f9,'type':_0x25ca33[_0x1425e9(0x1ff)][_0x1425e9(0x175)]}},{'id':_0x25ca33['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x11296d]},..._0x31b92a[_0x1425e9(0x18c)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x11296d,'subUnitId':_0x20c2be,'shapeId':_0x42cefe,'shapeType':_0x5eded5,'shapeData':{'adjustValues':_0x1bfe62,'relation':_0x17c347}}}],_0x3ba502=[...(_0x29dd68=_0x31b92a[_0x1425e9(0x144)])==null?[]:_0x29dd68,{'id':_0x25ca33[_0x1425e9(0x19f)]['id'],'params':{'unitId':_0x11296d,'subUnitId':_0x20c2be,'op':_0x566963,'objects':_0x4156f9,'type':_0x25ca33[_0x1425e9(0x1ff)][_0x1425e9(0x175)]}},{'id':_0x25ca33[_0x1425e9(0x126)]['id'],'params':[_0x11296d]},..._0x31b92a[_0x1425e9(0x191)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x11296d,'subUnitId':_0x20c2be,'shapeId':_0x42cefe,'shapeType':_0x430bef,'shapeData':{..._0x2eb81a,'adjustValues':_0x23257e||(_0x2eb81a==null?void 0x0:_0x2eb81a[_0x1425e9(0x19d)]),'relation':_0x3cfa04||(_0x2eb81a==null?void 0x0:_0x2eb81a['relation'])}}}];return(0x0,_0xa7f297[_0x1425e9(0x1e1)])(_0x506cd4,_0x49d4fc)['result']?(_0x3fa951[_0x1425e9(0x1db)]({'unitID':_0x11296d,'undoMutations':_0x3ba502,'redoMutations':_0x506cd4}),!0x0):!0x1;}},_0x1e2f01={'type':_0xa7f297[_0x34066d(0x212)][_0x34066d(0x182)],'id':_0x34066d(0x16f),'handler':(_0x1ce96f,_0x1e537e)=>{const _0x2732b8=_0x34066d;var _0xde8520,_0x534c82;let _0x19b34=(0x0,_0x539446['getSheetCommandTarget'])(_0x1ce96f[_0x2732b8(0x1bd)](_0xa7f297[_0x2732b8(0x17a)]),_0x1e537e);if(!_0x19b34)return!0x1;let _0x26f31d=_0x1ce96f['get'](_0x539446[_0x2732b8(0x218)]),{unitId:_0x105099,subUnitId:_0x1bf4e1}=_0x19b34,_0xd58aa2=_0x26f31d[_0x2732b8(0x12e)](_0x105099,_0x1bf4e1);if(!_0xd58aa2)return!0x1;let _0x2a71b0=_0x1ce96f[_0x2732b8(0x1bd)](_0x25ca33[_0x2732b8(0x1d9)]),{shapeId:_0x51d6da,width:_0x363eba,height:_0x42bac7,left:_0x212b70,top:_0x556682,flipX:_0x37964b,flipY:_0x57e840,angle:_0x4a559d,oldAdjustValues:_0x52bea5,newAdjustValues:_0x24e1e4,oldLineType:_0x3ad21a,newLineType:_0x632bbd}=_0x1e537e,_0x5ccfea=_0x2a71b0[_0x2732b8(0x18a)]({'unitId':_0x105099,'subUnitId':_0x1bf4e1,'drawingId':_0x51d6da});if(!_0x5ccfea)return!0x1;let _0xc5cd00=_0x1ce96f[_0x2732b8(0x1bd)](_0xf4f77c)[_0x2732b8(0x1da)](_0x105099,_0x1bf4e1,_0x51d6da);if(!_0xc5cd00)return!0x1;let _0x4365f6=_0x1ce96f[_0x2732b8(0x1bd)](_0xa7f297['ICommandService']),_0x1b8060=_0x1ce96f['get'](_0xa7f297['IUndoRedoService']),_0x397316=_0x1ce96f[_0x2732b8(0x1bd)](_0x539446[_0x2732b8(0x187)]),_0x2f4626={..._0x5ccfea['transform'],'width':_0x363eba,'height':_0x42bac7,'left':_0x212b70,'top':_0x556682,'flipX':_0x37964b,'flipY':_0x57e840,'angle':_0x4a559d},_0x14e109=(0x0,_0x25ca33[_0x2732b8(0x1a4)])(_0x2f4626,_0xd58aa2),_0x3b79ce=(0x0,_0x25ca33[_0x2732b8(0x1ba)])(_0x2f4626,_0xd58aa2),_0x402ca1=_0xc5cd00[_0x2732b8(0x16a)](),_0x488b93=_0xc5cd00[_0x2732b8(0x140)](),_0x299bc0={'unitId':_0x105099,'subUnitId':_0x1bf4e1,'drawingId':_0x51d6da,'drawingType':_0xa7f297[_0x2732b8(0x1dd)]['DRAWING_SHAPE'],'sheetTransform':_0x14e109,'transform':_0x2f4626,'data':{'shapeType':_0x632bbd||_0x3ad21a||_0x402ca1,'shapeData':{..._0x488b93,'adjustValues':_0x24e1e4||_0x52bea5||(_0x488b93==null?void 0x0:_0x488b93[_0x2732b8(0x19d)])}},'axisAlignSheetTransform':_0x3b79ce,'allowTransform':!0x0},{undo:_0x195b5a,redo:_0x3c7615,objects:_0x5d48a8}=_0x2a71b0[_0x2732b8(0x15b)]([_0x299bc0]),_0x2884c0=_0x397316[_0x2732b8(0x155)]({'id':_0x25ca33[_0x2732b8(0x195)]['id'],'params':{'unitId':_0x105099,'drawings':[_0x299bc0]}}),_0x44043b=[...(_0xde8520=_0x2884c0[_0x2732b8(0x1d3)])==null?[]:_0xde8520,{'id':_0x25ca33[_0x2732b8(0x19f)]['id'],'params':{'unitId':_0x105099,'subUnitId':_0x1bf4e1,'op':_0x3c7615,'objects':_0x5d48a8,'type':_0x25ca33[_0x2732b8(0x1ff)][_0x2732b8(0x175)]}},{'id':_0x25ca33[_0x2732b8(0x126)]['id'],'params':[_0x105099]},..._0x2884c0[_0x2732b8(0x18c)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x105099,'subUnitId':_0x1bf4e1,'shapeId':_0x51d6da,'shapeType':_0x632bbd,'shapeData':{'adjustValues':_0x24e1e4}}}],_0x84f53=[...(_0x534c82=_0x2884c0[_0x2732b8(0x144)])==null?[]:_0x534c82,{'id':_0x25ca33[_0x2732b8(0x19f)]['id'],'params':{'unitId':_0x105099,'subUnitId':_0x1bf4e1,'op':_0x195b5a,'objects':_0x5d48a8,'type':_0x25ca33[_0x2732b8(0x1ff)][_0x2732b8(0x175)]}},{'id':_0x25ca33[_0x2732b8(0x126)]['id'],'params':[_0x105099]},..._0x2884c0[_0x2732b8(0x191)],{'id':_0x56a7b5['id'],'params':{'unitId':_0x105099,'subUnitId':_0x1bf4e1,'shapeId':_0x51d6da,'shapeType':_0x402ca1,'shapeData':{..._0x488b93,'adjustValues':_0x52bea5||(_0x488b93==null?void 0x0:_0x488b93[_0x2732b8(0x19d)])}}}];return(0x0,_0xa7f297[_0x2732b8(0x1e1)])(_0x44043b,_0x4365f6)['result']?(_0x1b8060[_0x2732b8(0x1db)]({'unitID':_0x105099,'undoMutations':_0x84f53,'redoMutations':_0x44043b}),!0x0):!0x1;}},_0x1d875d={'id':'sheet.mutation.update-shape-type','type':_0xa7f297['CommandType'][_0x34066d(0x159)],'handler':(_0x2ddb13,_0x30cddf)=>{const _0x32b9a8=_0x34066d;let {unitId:_0x916325,subUnitId:_0x2762a0,shapeType:_0x3d3f64,shapeId:_0x2b26d0,shapeData:_0x2b455c}=_0x30cddf,_0x39b7c7=_0x2ddb13[_0x32b9a8(0x1bd)](_0xf4f77c)[_0x32b9a8(0x1da)](_0x916325,_0x2762a0,_0x2b26d0);return _0x39b7c7&&(_0x39b7c7[_0x32b9a8(0x1f9)](_0x3d3f64),_0x2b455c&&(_0x39b7c7==null||_0x39b7c7[_0x32b9a8(0x210)](_0x2b455c))),!0x0;}};var _0x287ee1=_0x34066d(0x1fd),_0x3021e3=_0x34066d(0x15e);let _0x49e0b4=class{constructor(_0x4043e5,_0x7958b7,_0x551a8d){const _0x29476d=_0x34066d;this['_commandService']=_0x4043e5,this[_0x29476d(0x147)]=_0x7958b7,this['_drawingService']=_0x551a8d,_0x554fe0(this,_0x29476d(0x12a),_0xa7f297[_0x29476d(0x20a)][_0x29476d(0x163)]);}['getShape'](_0x240ad1){const _0x3adadd=_0x34066d;var _0x46aba7,_0x255295,_0x4e0402,_0x19f72b,_0x5a876e,_0x21fcb7,_0x4d5e05,_0x2319bb,_0x52dc86;let _0x47b9fc=(_0x46aba7=this[_0x3adadd(0x1ee)][_0x3adadd(0x179)](_0x240ad1[_0x3adadd(0x174)],_0x240ad1[_0x3adadd(0x1f7)]))==null?void 0x0:_0x46aba7[_0x240ad1['shapeId']],_0x439bae=this['_shapeService'][_0x3adadd(0x16a)](_0x240ad1['unitId'],_0x240ad1[_0x3adadd(0x1f7)],_0x240ad1[_0x3adadd(0x160)]);if(!_0x47b9fc||_0x47b9fc[_0x3adadd(0x1f4)]!==_0xa7f297[_0x3adadd(0x1dd)][_0x3adadd(0x1c9)]||!_0x439bae)return null;let _0xdcdf3b=_0x47b9fc[_0x3adadd(0x143)];return{..._0x240ad1,'shapeType':_0x439bae,'shapeData':_0xa7f297[_0x3adadd(0x14e)][_0x3adadd(0x125)]((_0x255295=this[_0x3adadd(0x147)][_0x3adadd(0x138)](_0x240ad1['unitId'],_0x240ad1['subUnitId'],_0x240ad1[_0x3adadd(0x160)]))==null?{}:_0x255295),'name':_0x47b9fc[_0x3adadd(0x1a0)],'description':_0x47b9fc[_0x3adadd(0x172)],'visible':_0x47b9fc[_0x3adadd(0x13f)]!==!0x0,'selectable':_0x47b9fc[_0x3adadd(0x181)]!==!0x1,'transform':{'left':(_0x4e0402=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x1af)])==null?0x0:_0x4e0402,'top':(_0x19f72b=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x1a3)])==null?0x0:_0x19f72b,'width':(_0x5a876e=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x173)])==null?0xc8:_0x5a876e,'height':(_0x21fcb7=_0xdcdf3b==null?void 0x0:_0xdcdf3b['height'])==null?0xc8:_0x21fcb7,'rotation':(_0x4d5e05=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x213)])==null?0x0:_0x4d5e05,'flipX':(_0x2319bb=_0xdcdf3b==null?void 0x0:_0xdcdf3b[_0x3adadd(0x192)])==null?!0x1:_0x2319bb,'flipY':(_0x52dc86=_0xdcdf3b==null?void 0x0:_0xdcdf3b['flipY'])==null?!0x1:_0x52dc86}};}[_0x34066d(0x186)](_0x1c1f44){const _0x2595a3=_0x34066d;var _0x4d645a;let _0x44314f=(_0x4d645a=this[_0x2595a3(0x1ee)]['getDrawingData'](_0x1c1f44[_0x2595a3(0x174)],_0x1c1f44[_0x2595a3(0x1f7)]))==null?{}:_0x4d645a;return Object[_0x2595a3(0x19c)](_0x44314f)[_0x2595a3(0x136)](_0x39769a=>(_0x39769a==null?void 0x0:_0x39769a[_0x2595a3(0x1f4)])===_0xa7f297['DrawingTypeEnum'][_0x2595a3(0x1c9)])[_0x2595a3(0x14a)](_0x270dcd=>this['getShape']({..._0x1c1f44,'shapeId':_0x270dcd[_0x2595a3(0x1d2)]}))[_0x2595a3(0x136)](_0x5b6615=>!!_0x5b6615);}['createShape'](_0x406a0e,_0x516322){const _0x4c401f=_0x34066d;var _0x32ce82,_0x161c85,_0x36dabc,_0x254416,_0x1945d4,_0x108c68,_0x49352f,_0x42db86,_0x54e6b5,_0x14f967,_0x3b8f0d,_0x52af51,_0x52099d,_0x597396,_0x3e352b,_0x5c38c7,_0x5dfe1b,_0x353e65,_0x1f2fcc;let _0x1fc32e=(0x0,_0xa7f297['generateRandomId'])(),_0x389fbe={'left':(_0x32ce82=(_0x161c85=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x161c85[_0x4c401f(0x1af)])==null?0x0:_0x32ce82,'top':(_0x36dabc=(_0x254416=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x254416[_0x4c401f(0x1a3)])==null?0x0:_0x36dabc,'width':(_0x1945d4=(_0x108c68=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x108c68[_0x4c401f(0x173)])==null?0xc8:_0x1945d4,'height':(_0x49352f=(_0x42db86=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x42db86[_0x4c401f(0x129)])==null?0xc8:_0x49352f,'rotation':(_0x54e6b5=(_0x14f967=_0x516322['transform'])==null?void 0x0:_0x14f967[_0x4c401f(0x13a)])==null?0x0:_0x54e6b5,'flipX':(_0x3b8f0d=(_0x52af51=_0x516322[_0x4c401f(0x143)])==null?void 0x0:_0x52af51['flipX'])==null?!0x1:_0x3b8f0d,'flipY':(_0x52099d=(_0x597396=_0x516322['transform'])==null?void 0x0:_0x597396['flipY'])==null?!0x1:_0x52099d};return this[_0x4c401f(0x202)][_0x4c401f(0x1c1)](_0x230cdc['id'],{'unitId':_0x406a0e[_0x4c401f(0x174)],'subUnitId':_0x406a0e[_0x4c401f(0x1f7)],'shapeId':_0x1fc32e,'shapeType':_0x516322[_0x4c401f(0x19a)],'shapeData':_0x516322['shapeData'],'name':_0x516322['name'],'description':_0x516322[_0x4c401f(0x172)],'position':{'x':_0x389fbe['left'],'y':_0x389fbe[_0x4c401f(0x1a3)]},'width':_0x389fbe[_0x4c401f(0x173)],'height':_0x389fbe['height'],'rotation':_0x389fbe['rotation'],'flipX':_0x389fbe[_0x4c401f(0x192)],'flipY':_0x389fbe[_0x4c401f(0x193)],'visible':(_0x3e352b=_0x516322[_0x4c401f(0x20e)])==null?!0x0:_0x3e352b,'selectable':(_0x5c38c7=_0x516322[_0x4c401f(0x181)])==null?!0x0:_0x5c38c7})?{..._0x406a0e,'shapeId':_0x1fc32e,'shapeType':_0x516322[_0x4c401f(0x19a)],'shapeData':_0xa7f297[_0x4c401f(0x14e)][_0x4c401f(0x125)]((_0x5dfe1b=_0x516322[_0x4c401f(0x1e8)])==null?{}:_0x5dfe1b),'name':_0x516322[_0x4c401f(0x1a0)],'description':_0x516322['description'],'visible':(_0x353e65=_0x516322['visible'])==null?!0x0:_0x353e65,'selectable':(_0x1f2fcc=_0x516322[_0x4c401f(0x181)])==null?!0x0:_0x1f2fcc,'transform':_0x389fbe}:null;}['updateShape'](_0x2163c2,_0x5e4a80){const _0x492afd=_0x34066d;var _0x415a4b,_0x1b0ce4,_0x28e7da,_0x1c3889,_0x233089,_0x1f1b35;let _0x4408ed=this['getShape'](_0x2163c2);if(!_0x4408ed)return!0x1;let _0x328a66={..._0x4408ed[_0x492afd(0x143)],..._0x5e4a80['transform']};return this[_0x492afd(0x202)][_0x492afd(0x1c1)](_0x1fd9bb['id'],{'unitId':_0x2163c2[_0x492afd(0x174)],'subUnitId':_0x2163c2[_0x492afd(0x1f7)],'shapeId':_0x2163c2[_0x492afd(0x160)],'shapeType':(_0x415a4b=(_0x1b0ce4=_0x5e4a80[_0x492afd(0x19a)])==null?(_0x28e7da=_0x5e4a80[_0x492afd(0x1e8)])==null?void 0x0:_0x28e7da[_0x492afd(0x19a)]:_0x1b0ce4)==null?_0x4408ed['shapeType']:_0x415a4b,'shapeData':(_0x1c3889=_0x5e4a80[_0x492afd(0x1e8)])==null?_0x4408ed[_0x492afd(0x1e8)]:_0x1c3889,'position':{'x':_0x328a66['left'],'y':_0x328a66[_0x492afd(0x1a3)]},'width':_0x328a66[_0x492afd(0x173)],'height':_0x328a66['height'],'rotation':_0x328a66[_0x492afd(0x13a)],'flipX':_0x328a66[_0x492afd(0x192)],'flipY':_0x328a66[_0x492afd(0x193)],'name':_0x492afd(0x1a0)in _0x5e4a80?_0x5e4a80[_0x492afd(0x1a0)]:_0x4408ed['name'],'description':_0x492afd(0x172)in _0x5e4a80?_0x5e4a80['description']:_0x4408ed[_0x492afd(0x172)],'visible':(_0x233089=_0x5e4a80['visible'])==null?_0x4408ed[_0x492afd(0x20e)]:_0x233089,'selectable':(_0x1f1b35=_0x5e4a80['selectable'])==null?_0x4408ed[_0x492afd(0x181)]:_0x1f1b35});}['removeShape'](_0x50a726){const _0x3c92ef=_0x34066d;return this['_commandService'][_0x3c92ef(0x1c1)](_0x25ca33[_0x3c92ef(0x19b)]['id'],{'unitId':_0x50a726[_0x3c92ef(0x174)],'drawings':[{'unitId':_0x50a726[_0x3c92ef(0x174)],'subUnitId':_0x50a726['subUnitId'],'drawingId':_0x50a726[_0x3c92ef(0x160)],'drawingType':_0xa7f297[_0x3c92ef(0x1dd)][_0x3c92ef(0x1c9)]}]});}[_0x34066d(0x1cd)](_0x4b582b){const _0x3e54cb=_0x34066d;return this[_0x3e54cb(0x1b8)](_0x4b582b,_0xa7f297[_0x3e54cb(0x124)][_0x3e54cb(0x1df)]);}[_0x34066d(0x190)](_0x7ae61a){const _0x45b6ce=_0x34066d;return this['_arrange'](_0x7ae61a,_0xa7f297['ArrangeTypeEnum'][_0x45b6ce(0x1c0)]);}[_0x34066d(0x1de)](_0x532617){const _0x374df6=_0x34066d;return this['_arrange'](_0x532617,_0xa7f297[_0x374df6(0x124)]['backward']);}[_0x34066d(0x1cf)](_0x2b7a98){const _0x25a5f3=_0x34066d;return this[_0x25a5f3(0x1b8)](_0x2b7a98,_0xa7f297['ArrangeTypeEnum'][_0x25a5f3(0x209)]);}[_0x34066d(0x1b8)](_0x43d5ad,_0x3aad2e){const _0x83ce5e=_0x34066d;return this[_0x83ce5e(0x202)]['syncExecuteCommand'](_0x25ca33[_0x83ce5e(0x1bb)]['id'],{'unitId':_0x43d5ad[_0x83ce5e(0x174)],'subUnitId':_0x43d5ad['subUnitId'],'drawingIds':[_0x43d5ad[_0x83ce5e(0x160)]],'arrangeType':_0x3aad2e});}};_0x49e0b4=_0xd44f06([_0x359a36(0x0,_0xa7f297['ICommandService']),_0x359a36(0x1,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0xf4f77c)),_0x359a36(0x2,_0x25ca33[_0x34066d(0x1d9)])],_0x49e0b4);let _0x59092a={},_0x203020=class extends _0xa7f297[_0x34066d(0x1d7)]{constructor(_0x11d401,_0x56cc0e,_0x2b90ff,_0x341239,_0x37c52f,_0x5e1bff,_0x108f7a){const _0x2193c5=_0x34066d;super(),this['_commandService']=_0x11d401,this[_0x2193c5(0x184)]=_0x56cc0e,this['_sheetSkeletonService']=_0x2b90ff,this[_0x2193c5(0x134)]=_0x341239,this[_0x2193c5(0x13c)]=_0x37c52f,this['_shapeHostAdapterRegistry']=_0x5e1bff,this[_0x2193c5(0x1e3)](),this[_0x2193c5(0x13d)](),this[_0x2193c5(0x166)](this['_shapeHostAdapterRegistry'][_0x2193c5(0x1b1)](_0x108f7a));}[_0x34066d(0x1e3)](){const _0x29f1b1=_0x34066d;[_0x230cdc,_0x1fd9bb,_0x22b430,_0x539900,_0x2d5b38,_0x430b70,_0x1e2f01,_0xd3002d,_0xa468b3,_0x1d875d,_0x56a7b5][_0x29f1b1(0x1fe)](_0x1d6c04=>this[_0x29f1b1(0x166)](this['_commandService'][_0x29f1b1(0x120)](_0x1d6c04)));}[_0x34066d(0x13d)](){const _0x22b054=_0x34066d;this[_0x22b054(0x166)](this['_sheetInterceptorService'][_0x22b054(0x14d)]({'getMutations':_0xc029db=>{const _0x184c33=_0x22b054;if(_0xc029db['id']===_0x25ca33[_0x184c33(0x19b)]['id']){let {drawings:_0x291353}=_0xc029db[_0x184c33(0x1dc)],_0x55dd63=_0x291353[_0x184c33(0x136)](_0x15a653=>_0x15a653['drawingType']===_0xa7f297[_0x184c33(0x1dd)][_0x184c33(0x1c9)]);if(_0x55dd63[_0x184c33(0x1c3)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x401571=[],_0x520264=[];return _0x55dd63[_0x184c33(0x1fe)](_0x324f9b=>{const _0x3c28b5=_0x184c33;let {unitId:_0x3b1d20,subUnitId:_0x1d83a8,drawingId:_0x42d67d}=_0x324f9b,_0x37e1ae=this[_0x3c28b5(0x134)][_0x3c28b5(0x1da)](_0x3b1d20,_0x1d83a8,_0x42d67d);if(!_0x37e1ae)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x37e1ae);_0x401571[_0x3c28b5(0x1cc)]({'id':_0xa468b3['id'],'params':{'unitId':_0x3b1d20,'subUnitId':_0x1d83a8,'shapeId':_0x42d67d}}),_0x520264[_0x3c28b5(0x1cc)]({'id':_0xd3002d['id'],'params':{'unitId':_0x3b1d20,'subUnitId':_0x1d83a8,'shapeId':_0x42d67d,'shapeType':_0x37e1ae[_0x3c28b5(0x16a)](),'shapeData':_0x37e1ae['getShapeData']()}});let _0x57e1d1=this[_0x3c28b5(0x134)][_0x3c28b5(0x214)](_0x3b1d20,_0x1d83a8,_0x42d67d);if(_0x57e1d1)for(let _0x204bcb of _0x57e1d1){let _0x4c755=_0x204bcb[_0x3c28b5(0x199)],_0x4fef98=_0x204bcb[_0x3c28b5(0x1b6)],_0x352e65=_0x4fef98?{'from':void 0x0}:{'to':void 0x0},_0x4d519b=_0x4fef98?{'from':{'shapeId':_0x204bcb['shapeId'],'cxnIndex':_0x204bcb[_0x3c28b5(0x1a5)]}}:{'to':{'shapeId':_0x204bcb['shapeId'],'cxnIndex':_0x204bcb[_0x3c28b5(0x1a5)]}};_0x401571[_0x3c28b5(0x1cc)]({'id':_0x56a7b5['id'],'params':{'unitId':_0x3b1d20,'subUnitId':_0x1d83a8,'shapeId':_0x4c755,'shapeData':{'relation':_0x352e65}}}),_0x520264[_0x3c28b5(0x1cc)]({'id':_0x56a7b5['id'],'params':{'unitId':_0x3b1d20,'subUnitId':_0x1d83a8,'shapeId':_0x4c755,'shapeData':{'relation':_0x4d519b}}});}}),{'preRedos':_0x401571,'redos':[],'preUndos':[],'undos':_0x520264};}if(_0xc029db['id']===_0x25ca33[_0x184c33(0x195)]['id']){let {drawings:_0x36d062}=_0xc029db['params'],_0x1c17cd=_0x36d062['filter'](_0x25362d=>_0x25362d['drawingType']===_0xa7f297[_0x184c33(0x1dd)][_0x184c33(0x1c9)]);if(_0x1c17cd[_0x184c33(0x1c3)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x416239=[],_0x4bebe2=[];for(let _0x4164cd of _0x1c17cd){let {unitId:_0x15bfdf,subUnitId:_0x2a3c3a,drawingId:_0x560dda,transform:_0x38ce43}=_0x4164cd;if(!_0x15bfdf||!_0x2a3c3a||!_0x560dda||!_0x38ce43)continue;let _0x2e7c9e=this['_sheetsShapeService']['getShapeModel'](_0x15bfdf,_0x2a3c3a,_0x560dda);if(!_0x2e7c9e)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x2e7c9e);if((0x0,_0x31e983['isConnectorShape'])(_0x2e7c9e[_0x184c33(0x16a)]())){let _0x324c6f=this[_0x184c33(0x134)][_0x184c33(0x1aa)](_0x15bfdf,_0x2a3c3a,_0x560dda);_0x324c6f&&(_0x416239['push']({'id':_0x56a7b5['id'],'params':{'unitId':_0x15bfdf,'subUnitId':_0x2a3c3a,'shapeId':_0x560dda,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4bebe2['push']({'id':_0x56a7b5['id'],'params':{'unitId':_0x15bfdf,'subUnitId':_0x2a3c3a,'shapeId':_0x560dda,'shapeData':{'relation':_0x324c6f}}}));}else{let _0xd4f06b=this['_sheetsShapeService'][_0x184c33(0x214)](_0x15bfdf,_0x2a3c3a,_0x560dda);if(_0xd4f06b&&_0xd4f06b['length']>0x0)for(let _0x4ae542 of _0xd4f06b){let _0x4069bc=_0x4ae542[_0x184c33(0x199)],_0x974da3=_0x4ae542[_0x184c33(0x1b6)],_0x577ebe=this[_0x184c33(0x134)][_0x184c33(0x1da)](_0x15bfdf,_0x2a3c3a,_0x4069bc);if(!_0x577ebe)continue;let _0xcec15f=_0x577ebe[_0x184c33(0x132)](),_0x3f7ba8=_0x577ebe[_0x184c33(0x1bc)]();_0xcec15f&&_0x3f7ba8?this['_addLineRerouteUpdates'](_0x15bfdf,_0x2a3c3a,_0x4069bc,_0x577ebe,_0xcec15f,_0x3f7ba8,_0x416239,_0x4bebe2,_0x560dda,_0x38ce43):this[_0x184c33(0x1a7)](_0x15bfdf,_0x2a3c3a,_0x4069bc,_0x577ebe,_0x974da3?_0xcec15f:_0x3f7ba8,_0x974da3,_0x416239,_0x4bebe2,_0x560dda,_0x38ce43);}}}return{'preRedos':[],'redos':_0x416239,'preUndos':_0x4bebe2,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x34066d(0x1c8)](_0x3583fc,_0x5730bb,_0x36db7c,_0x448524,_0x22937a){const _0x4c0dbd=_0x34066d;if(!_0x5730bb||!_0x36db7c)return null;let {shapeId:_0x35607,cxnIndex:_0x453762}=_0x3583fc,_0x293eb1=this[_0x4c0dbd(0x134)][_0x4c0dbd(0x1da)](_0x5730bb,_0x36db7c,_0x35607);if(!_0x293eb1)return null;let _0x56e2dd=this[_0x4c0dbd(0x13c)][_0x4c0dbd(0x18a)]({'unitId':_0x5730bb,'subUnitId':_0x36db7c,'drawingId':_0x35607});if(!(_0x56e2dd!=null&&_0x56e2dd['transform']))return null;let {left:_0x26a6e3=0x0,top:_0x3944bc=0x0,width:_0x4919d8=0x0,height:_0x46f798=0x0,flipX:_0x210679=!0x1,flipY:_0x31d331=!0x1,angle:_0x4a3617}=_0x56e2dd[_0x4c0dbd(0x143)];if(_0x22937a&&_0x448524===_0x35607){var _0x2ed51d,_0x2379d4,_0xca2016,_0x5538a1,_0x2ec887,_0x46ab60,_0x576165;_0x26a6e3=(_0x2ed51d=_0x22937a[_0x4c0dbd(0x1af)])==null?_0x26a6e3:_0x2ed51d,_0x3944bc=(_0x2379d4=_0x22937a['top'])==null?_0x3944bc:_0x2379d4,_0x4919d8=(_0xca2016=_0x22937a[_0x4c0dbd(0x173)])==null?_0x4919d8:_0xca2016,_0x46f798=(_0x5538a1=_0x22937a[_0x4c0dbd(0x129)])==null?_0x46f798:_0x5538a1,_0x210679=(_0x2ec887=_0x22937a[_0x4c0dbd(0x192)])==null?_0x210679:_0x2ec887,_0x31d331=(_0x46ab60=_0x22937a[_0x4c0dbd(0x193)])==null?_0x31d331:_0x46ab60,_0x4a3617=(_0x576165=_0x22937a['angle'])==null?_0x4a3617:_0x576165;}_0x293eb1['updateContext']({'width':_0x4919d8,'height':_0x46f798});let _0x2d4104=_0x293eb1[_0x4c0dbd(0x17d)]()['find'](_0x5ae652=>_0x5ae652[_0x4c0dbd(0x18e)]===_0x453762);if(!_0x2d4104)return null;let _0x38b710=_0x210679?_0x4919d8-_0x2d4104['x']:_0x2d4104['x'],_0x1e9e10=_0x31d331?_0x46f798-_0x2d4104['y']:_0x2d4104['y'];if(_0x4a3617!==0x0&&_0x4a3617!=null){let _0x29e3c4=_0x4a3617*Math['PI']/0xb4,_0x979913=Math[_0x4c0dbd(0x180)](_0x29e3c4),_0x9d6660=Math[_0x4c0dbd(0x153)](_0x29e3c4),_0x43534a=_0x4919d8/0x2,_0x12b5b3=_0x46f798/0x2,_0x3c3739=_0x38b710-_0x43534a,_0x24bc5f=_0x1e9e10-_0x12b5b3;_0x38b710=_0x43534a+_0x3c3739*_0x979913-_0x24bc5f*_0x9d6660,_0x1e9e10=_0x12b5b3+_0x3c3739*_0x9d6660+_0x24bc5f*_0x979913;}_0x38b710+=_0x26a6e3,_0x1e9e10+=_0x3944bc;let _0x7c5b4a=_0x2d4104['ang']/0xea60;_0x210679&&(_0x7c5b4a=0xb4-_0x7c5b4a),_0x31d331&&(_0x7c5b4a=-_0x7c5b4a),_0x7c5b4a+=_0x4a3617||0x0,_0x7c5b4a=(_0x7c5b4a%0x168+0x168)%0x168;let _0x31d34a=(0x0,_0x31e983[_0x4c0dbd(0x20f)])({'left':_0x26a6e3,'top':_0x3944bc,'width':_0x4919d8,'height':_0x46f798},_0x4a3617||0x0);return{'point':{'x':_0x38b710,'y':_0x1e9e10},'angle':_0x7c5b4a,'bounds':_0x31d34a};}[_0x34066d(0x15d)](_0x293efb,_0x1ef3b5,_0x5aa44c,_0x299c79,_0x3b1714,_0x589819,_0x596264,_0x5d4e9d,_0x571ffe,_0x320811){const _0x51c5f7=_0x34066d;let _0x5999e9=this[_0x51c5f7(0x211)]['getSkeleton'](_0x293efb,_0x1ef3b5);if(!_0x5999e9)return;let _0x43f9bf=_0x299c79[_0x51c5f7(0x13b)](),_0x173597=_0x299c79['getAdjustNames'](),_0x17bd11={},_0x67827c={};_0x173597['forEach'](_0x13dce1=>{const _0x5bfdb3=_0x51c5f7;let _0x581ddd=_0x299c79[_0x5bfdb3(0x1ef)](_0x13dce1);_0x67827c[_0x13dce1]=_0x581ddd==null?0x0:_0x581ddd;});let _0x3848b1=this[_0x51c5f7(0x1c8)](_0x3b1714,_0x293efb,_0x1ef3b5,_0x571ffe,_0x320811),_0x3bc4a7=this[_0x51c5f7(0x1c8)](_0x589819,_0x293efb,_0x1ef3b5,_0x571ffe,_0x320811);if(_0x3848b1&&_0x3bc4a7){let _0x57fac4=_0x299c79['getShapeType'](),_0x10f217=(0x0,_0x31e983['routeConnectorLineShape'])(_0x3848b1,_0x3bc4a7,_0x57fac4),_0x27a2f0=_0x57fac4;if(_0x10f217){let _0x18b6a0=(0x0,_0x31e983[_0x51c5f7(0x127)])(_0x10f217,_0x299c79['getShapeType']()),_0x252f4d=this['_drawingManagerService']['getDrawingData'](_0x293efb,_0x1ef3b5);if(_0x252f4d&&_0x252f4d[_0x5aa44c]){let _0x3c78ca=_0x252f4d[_0x5aa44c];_0x27a2f0=_0x18b6a0[_0x51c5f7(0x150)];for(let [_0x49cda1,_0x211b15]of Object[_0x51c5f7(0x178)](_0x18b6a0[_0x51c5f7(0x19d)]))_0x17bd11[_0x49cda1]=_0x211b15;let _0x192353={..._0x3c78ca[_0x51c5f7(0x143)],'width':_0x18b6a0['worldRect'][_0x51c5f7(0x173)],'height':_0x18b6a0[_0x51c5f7(0x1ce)][_0x51c5f7(0x129)],'left':_0x18b6a0[_0x51c5f7(0x1ce)]['left'],'top':_0x18b6a0[_0x51c5f7(0x1ce)][_0x51c5f7(0x1a3)],'flipX':_0x18b6a0[_0x51c5f7(0x1ce)][_0x51c5f7(0x192)],'flipY':_0x18b6a0[_0x51c5f7(0x1ce)][_0x51c5f7(0x193)],'angle':_0x18b6a0[_0x51c5f7(0x13a)]},_0x5bd432=(0x0,_0x25ca33[_0x51c5f7(0x1a4)])(_0x192353,_0x5999e9),_0x4d6fa6=(0x0,_0x25ca33[_0x51c5f7(0x1ba)])(_0x192353,_0x5999e9),_0xcadc4d={'unitId':_0x293efb,'subUnitId':_0x1ef3b5,'drawingType':_0xa7f297[_0x51c5f7(0x1dd)][_0x51c5f7(0x1c9)],'drawingId':_0x5aa44c,'transform':_0x192353,'sheetTransform':_0x5bd432,'axisAlignSheetTransform':_0x4d6fa6},{unitId:_0x3aca6e,subUnitId:_0x4422ce,undo:_0x256f1a,redo:_0x51b6d2,objects:_0x48813a}=this[_0x51c5f7(0x13c)][_0x51c5f7(0x15b)]([_0xcadc4d]);_0x596264[_0x51c5f7(0x1cc)]({'id':_0x25ca33['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3aca6e,'subUnitId':_0x4422ce,'op':_0x51b6d2,'objects':_0x48813a,'type':_0x25ca33[_0x51c5f7(0x1ff)][_0x51c5f7(0x175)]}}),_0x5d4e9d[_0x51c5f7(0x1cc)]({'id':_0x25ca33[_0x51c5f7(0x19f)]['id'],'params':{'unitId':_0x3aca6e,'subUnitId':_0x4422ce,'op':_0x256f1a,'objects':_0x48813a,'type':_0x25ca33[_0x51c5f7(0x1ff)]['UPDATE']}});}_0x299c79[_0x51c5f7(0x17b)]();}_0x596264[_0x51c5f7(0x1cc)]({'id':_0x56a7b5['id'],'params':{'unitId':_0x293efb,'subUnitId':_0x1ef3b5,'shapeId':_0x5aa44c,'shapeType':_0x27a2f0,'shapeData':{'adjustValues':_0x17bd11,'relation':_0x43f9bf}}}),_0x5d4e9d[_0x51c5f7(0x1cc)]({'id':_0x56a7b5['id'],'params':{'unitId':_0x293efb,'subUnitId':_0x1ef3b5,'shapeId':_0x5aa44c,'shapeType':_0x57fac4,'shapeData':{'adjustValues':_0x67827c,'relation':_0x43f9bf}}});}}[_0x34066d(0x1a7)](_0x18f484,_0x248c63,_0x4918b1,_0x1c666e,_0x575c4f,_0x8e6a31,_0x364561,_0x42b7df,_0x566eb3,_0x2acac8){const _0x587966=_0x34066d;var _0xeb9d26;if(!_0x575c4f)return;let _0x1e818f=this[_0x587966(0x211)][_0x587966(0x12e)](_0x18f484,_0x248c63);if(!_0x1e818f)return;let _0x31b927=(_0xeb9d26=this[_0x587966(0x13c)][_0x587966(0x18a)]({'unitId':_0x18f484,'subUnitId':_0x248c63,'drawingId':_0x566eb3}))==null?void 0x0:_0xeb9d26['transform'];if(!_0x31b927)return;let _0xda1182=_0x31b927[_0x587966(0x1af)]!==_0x2acac8['left']||_0x31b927[_0x587966(0x1a3)]!==_0x2acac8[_0x587966(0x1a3)],_0x10e2b1=_0x31b927['width']!==_0x2acac8[_0x587966(0x173)]||_0x31b927[_0x587966(0x129)]!==_0x2acac8[_0x587966(0x129)],_0x82a2b3=_0x31b927[_0x587966(0x192)]!==_0x2acac8[_0x587966(0x192)]||_0x31b927[_0x587966(0x193)]!==_0x2acac8['flipY'],_0x4a20fc=_0x31b927[_0x587966(0x213)]!==_0x2acac8[_0x587966(0x213)];if(_0xda1182&&!_0x10e2b1&&!_0x82a2b3&&!_0x4a20fc){var _0x2e5bca,_0x34c149,_0x5b6a7f,_0x13fa01;let _0x5858ba=((_0x2e5bca=_0x2acac8[_0x587966(0x1af)])==null?0x0:_0x2e5bca)-((_0x34c149=_0x31b927[_0x587966(0x1af)])==null?0x0:_0x34c149),_0x35f207=((_0x5b6a7f=_0x2acac8[_0x587966(0x1a3)])==null?0x0:_0x5b6a7f)-((_0x13fa01=_0x31b927[_0x587966(0x1a3)])==null?0x0:_0x13fa01),_0x38b652=this[_0x587966(0x13c)]['getDrawingData'](_0x18f484,_0x248c63);if(_0x38b652&&_0x38b652[_0x4918b1]){var _0xd85220,_0xbcb9d4,_0x1f07b1,_0x39d121;let _0x4de183=_0x38b652[_0x4918b1],_0xeaa66e={..._0x4de183['transform'],'left':((_0xd85220=(_0xbcb9d4=_0x4de183[_0x587966(0x143)])==null?void 0x0:_0xbcb9d4[_0x587966(0x1af)])==null?0x0:_0xd85220)+_0x5858ba,'top':((_0x1f07b1=(_0x39d121=_0x4de183[_0x587966(0x143)])==null?void 0x0:_0x39d121[_0x587966(0x1a3)])==null?0x0:_0x1f07b1)+_0x35f207},_0x7a8ba6=(0x0,_0x25ca33[_0x587966(0x1a4)])(_0xeaa66e,_0x1e818f),_0x4d67df=(0x0,_0x25ca33[_0x587966(0x1ba)])(_0xeaa66e,_0x1e818f),_0x232aec={'unitId':_0x18f484,'subUnitId':_0x248c63,'drawingType':_0xa7f297[_0x587966(0x1dd)]['DRAWING_SHAPE'],'drawingId':_0x4918b1,'transform':_0xeaa66e,'sheetTransform':_0x7a8ba6,'axisAlignSheetTransform':_0x4d67df},{unitId:_0x51605a,subUnitId:_0x3f6e54,undo:_0x97b2ee,redo:_0x29da18,objects:_0x4db87f}=this[_0x587966(0x13c)][_0x587966(0x15b)]([_0x232aec]);_0x364561[_0x587966(0x1cc)]({'id':_0x25ca33[_0x587966(0x19f)]['id'],'params':{'unitId':_0x51605a,'subUnitId':_0x3f6e54,'op':_0x29da18,'objects':_0x4db87f,'type':_0x25ca33[_0x587966(0x1ff)]['UPDATE']}}),_0x42b7df[_0x587966(0x1cc)]({'id':_0x25ca33['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x51605a,'subUnitId':_0x3f6e54,'op':_0x97b2ee,'objects':_0x4db87f,'type':_0x25ca33['DrawingApplyType'][_0x587966(0x175)]}});}}else{let _0x476371=_0x1c666e['getStartConnectInfo'](),_0x112af5=_0x1c666e[_0x587966(0x1bc)]();this[_0x587966(0x15d)](_0x18f484,_0x248c63,_0x4918b1,_0x1c666e,_0x476371,_0x112af5,_0x364561,_0x42b7df,_0x566eb3,_0x2acac8);}}};_0x203020=_0xd44f06([_0x359a36(0x0,_0xa7f297['ICommandService']),_0x359a36(0x1,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0x539446[_0x34066d(0x187)])),_0x359a36(0x2,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0x539446[_0x34066d(0x218)])),_0x359a36(0x3,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0xf4f77c)),_0x359a36(0x4,(0x0,_0xa7f297['Inject'])(_0x5ec541[_0x34066d(0x14b)])),_0x359a36(0x5,(0x0,_0xa7f297['Inject'])(_0x31e983[_0x34066d(0x1e4)])),_0x359a36(0x6,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0x49e0b4))],_0x203020);let _0x190d40=class extends _0xa7f297[_0x34066d(0x1ca)]{constructor(_0x19df50=_0x59092a,_0x42b1fe,_0x56b2b2){const _0x192f4b=_0x34066d;super(),this[_0x192f4b(0x137)]=_0x19df50,this[_0x192f4b(0x198)]=_0x42b1fe,this[_0x192f4b(0x12b)]=_0x56b2b2;let {..._0x16917c}=(0x0,_0xa7f297[_0x192f4b(0x1b3)])({},_0x59092a,this['_config']);this['_configService'][_0x192f4b(0x12d)]('sheets-shape.config',_0x16917c);}[_0x34066d(0x161)](){const _0x3fccd4=_0x34066d;let _0x140888=this['_injector'];[[_0x2c75b3],[_0xf4f77c],[_0x49e0b4],[_0x203020]][_0x3fccd4(0x1fe)](_0x1a592b=>_0x140888[_0x3fccd4(0x16d)](_0x1a592b)),(0x0,_0xa7f297[_0x3fccd4(0x1c7)])(_0x140888,[[_0xf4f77c],[_0x203020]]);}};_0x554fe0(_0x190d40,_0x34066d(0x154),_0xa7f297[_0x34066d(0x20a)][_0x34066d(0x163)]),_0x554fe0(_0x190d40,_0x34066d(0x1c2),'SHEET_SHAPE_PLUGIN'),_0x554fe0(_0x190d40,_0x34066d(0x1c5),_0x287ee1),_0x554fe0(_0x190d40,_0x34066d(0x1ed),_0x3021e3),_0x190d40=_0xd44f06([(0x0,_0xa7f297[_0x34066d(0x1c4)])(_0x1ea6d9['UniverLicensePlugin'],_0x31e983[_0x34066d(0x18d)]),_0x359a36(0x1,(0x0,_0xa7f297[_0x34066d(0x1a9)])(_0xa7f297[_0x34066d(0x146)])),_0x359a36(0x2,_0xa7f297[_0x34066d(0x176)])],_0x190d40),_0x42025e[_0x34066d(0x158)]=0xc8,_0x42025e[_0x34066d(0x1bf)]=0xc8,_0x42025e[_0x34066d(0x1ec)]=_0x230cdc,_0x42025e[_0x34066d(0x123)]=_0xd3002d,_0x42025e[_0x34066d(0x19e)]=_0xa468b3,_0x42025e[_0x34066d(0x121)]=_0x1fd9bb,_0x42025e['SetSheetsShapeRotateCommand']=_0x539900,_0x42025e[_0x34066d(0x14f)]=_0x2d5b38,Object[_0x34066d(0x206)](_0x42025e,_0x34066d(0x16c),{'enumerable':!0x0,'get':function(){return _0xf4f77c;}}),_0x42025e[_0x34066d(0x203)]=_0x22b430,Object[_0x34066d(0x206)](_0x42025e,_0x34066d(0x217),{'enumerable':!0x0,'get':function(){return _0x190d40;}}),_0x42025e['UpdateConnectorRelationCommand']=_0x430b70,_0x42025e[_0x34066d(0x1a8)]=_0x1e2f01,_0x42025e[_0x34066d(0x1f0)]=_0x56a7b5,_0x42025e['UpdateSheetsShapeTypeMutation']=_0x1d875d;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shape and drawing model integration for Univer Sheets.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,17 +58,18 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/drawing": "1.0.0-alpha.
|
|
66
|
-
"@univerjs/sheets": "1.0.0-alpha.
|
|
61
|
+
"@univerjs-pro/engine-shape": "1.0.0-alpha.4",
|
|
62
|
+
"@univerjs-pro/license": "1.0.0-alpha.4",
|
|
63
|
+
"@univerjs/drawing": "1.0.0-alpha.4",
|
|
64
|
+
"@univerjs/core": "1.0.0-alpha.4",
|
|
65
|
+
"@univerjs/sheets-drawing": "1.0.0-alpha.4",
|
|
66
|
+
"@univerjs/sheets": "1.0.0-alpha.4"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"typescript": "^6.0.3",
|
|
70
|
-
"vitest": "^4.1.
|
|
71
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
70
|
+
"vitest": "^4.1.10",
|
|
71
|
+
"@univerjs-infra/shared": "1.0.0-alpha.4",
|
|
72
|
+
"@univerjs/engine-render": "1.0.0-alpha.4"
|
|
72
73
|
},
|
|
73
74
|
"scripts": {
|
|
74
75
|
"test": "vitest run",
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import type { ICxnShapeData, IShapeRelationItem, ShapeArrowSizeEnum, ShapeArrowTypeEnum, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import type { Injector } from '@univerjs/core';
|
|
3
|
-
import type { IShapeBuilderInfo } from './f-shape';
|
|
4
|
-
import { FShape } from './f-shape';
|
|
5
|
-
/**
|
|
6
|
-
* The connector shape builder. It extends `FShape` and adds connector-specific properties
|
|
7
|
-
* such as start/end arrow types and sizes. Use `fWorksheet.newConnector()` to create a new connector builder.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
12
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
13
|
-
* if (!fWorksheet) return;
|
|
14
|
-
*
|
|
15
|
-
* // Create a straight connector with arrows
|
|
16
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
17
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
18
|
-
* .setPosition(1, 1, 0, 0)
|
|
19
|
-
* .setWidth(200)
|
|
20
|
-
* .setHeight(100)
|
|
21
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
22
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
23
|
-
* .setStrokeColor('#000000')
|
|
24
|
-
* .setStrokeWidth(2)
|
|
25
|
-
* .build();
|
|
26
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare class FConnectorShape extends FShape {
|
|
30
|
-
/**
|
|
31
|
-
* @property {ICxnShapeData} shapeData The connector shape data containing line styles, arrow settings, and connection info.
|
|
32
|
-
*/
|
|
33
|
-
shapeData: ICxnShapeData;
|
|
34
|
-
constructor(unitId: string, subUnitId: string, drawingId: string, injector: Injector);
|
|
35
|
-
setShapeType(shapeType: ShapeTypeEnum): this;
|
|
36
|
-
/**
|
|
37
|
-
* Sets the start arrow type of the connector line.
|
|
38
|
-
* @param {ShapeArrowTypeEnum} arrowType The arrow type for the start point. Which can be found from `univerAPI.Enum.ShapeArrowTypeEnum`.
|
|
39
|
-
* @returns {FConnectorShape} this builder, for chaining.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
44
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
45
|
-
* if (!fWorksheet) return;
|
|
46
|
-
*
|
|
47
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
48
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
49
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
50
|
-
* .setPosition(1, 1, 0, 0)
|
|
51
|
-
* .build();
|
|
52
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
setStartArrowType(arrowType: ShapeArrowTypeEnum): this;
|
|
56
|
-
/**
|
|
57
|
-
* Sets the end arrow type of the connector line.
|
|
58
|
-
* @param {ShapeArrowTypeEnum} arrowType The arrow type for the end point. Which can be found from `univerAPI.Enum.ShapeArrowTypeEnum`.
|
|
59
|
-
* @returns {FConnectorShape} this builder, for chaining.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
64
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
65
|
-
* if (!fWorksheet) return;
|
|
66
|
-
*
|
|
67
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
68
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
69
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.StealthArrow)
|
|
70
|
-
* .setPosition(1, 1, 0, 0)
|
|
71
|
-
* .build();
|
|
72
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
setEndArrowType(arrowType: ShapeArrowTypeEnum): this;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the start arrow size of the connector line.
|
|
78
|
-
* @param {ShapeArrowSizeEnum} arrowSize The arrow size for the start point.
|
|
79
|
-
* @returns {FConnectorShape} this builder, for chaining.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
84
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
85
|
-
* if (!fWorksheet) return;
|
|
86
|
-
*
|
|
87
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
88
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
89
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.OvalArrow)
|
|
90
|
-
* .setStartArrowSize(univerAPI.Enum.ShapeArrowSizeEnum.Large)
|
|
91
|
-
* .setPosition(1, 1, 0, 0)
|
|
92
|
-
* .setWidth(200)
|
|
93
|
-
* .build();
|
|
94
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
97
|
-
setStartArrowSize(arrowSize: ShapeArrowSizeEnum): this;
|
|
98
|
-
/**
|
|
99
|
-
* Sets the end arrow size of the connector line.
|
|
100
|
-
* @param {ShapeArrowSizeEnum} arrowSize The arrow size for the end point.
|
|
101
|
-
* @returns {FConnectorShape} this builder, for chaining.
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* ```ts
|
|
105
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
106
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
107
|
-
* if (!fWorksheet) return;
|
|
108
|
-
*
|
|
109
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
110
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
111
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
112
|
-
* .setEndArrowSize(univerAPI.Enum.ShapeArrowSizeEnum.Large)
|
|
113
|
-
* .setStrokeWidth(3)
|
|
114
|
-
* .setPosition(1, 1, 0, 0)
|
|
115
|
-
* .build();
|
|
116
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
setEndArrowSize(arrowSize: ShapeArrowSizeEnum): this;
|
|
120
|
-
/**
|
|
121
|
-
* Builds the connector shape builder info. This method does not automatically draw the connector on top of the spreadsheet.
|
|
122
|
-
* A new connector must be inserted via `fWorksheet.insertShape(shapeInfo)`.
|
|
123
|
-
* @returns {IShapeBuilderInfo} The shape builder info containing all the accumulated properties.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```ts
|
|
127
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
128
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
129
|
-
* if (!fWorksheet) return;
|
|
130
|
-
*
|
|
131
|
-
* const connectorInfo = fWorksheet.newConnector()
|
|
132
|
-
* .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
|
|
133
|
-
* .setPosition(1, 1, 0, 0)
|
|
134
|
-
* .setWidth(200)
|
|
135
|
-
* .setHeight(100)
|
|
136
|
-
* .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
137
|
-
* .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
|
|
138
|
-
* .setStrokeColor('#000000')
|
|
139
|
-
* .setStrokeWidth(2)
|
|
140
|
-
* .build();
|
|
141
|
-
* await fWorksheet.insertShape(connectorInfo);
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
build(): IShapeBuilderInfo;
|
|
145
|
-
/**
|
|
146
|
-
* Returns the end connection info for this connector shape.
|
|
147
|
-
* If this connector's end point is connected to a basic shape, returns the target shape id and connection site index.
|
|
148
|
-
* @returns {IShapeRelationItem | null} The end connection info, or `null` if not connected.
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* ```ts
|
|
152
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
153
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
154
|
-
* if (!fWorksheet) return;
|
|
155
|
-
* const shapes = fWorksheet.getShapes();
|
|
156
|
-
* const connector = shapes.find((s) => s.isLineShape());
|
|
157
|
-
*
|
|
158
|
-
* if (connector) {
|
|
159
|
-
* const endInfo = connector.getEndConnectInfo();
|
|
160
|
-
* if (endInfo) {
|
|
161
|
-
* console.log(`End connected to shape ${endInfo.shapeId} at site ${endInfo.cxnIndex}`);
|
|
162
|
-
* }
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
getEndConnectInfo(): IShapeRelationItem | null;
|
|
167
|
-
/**
|
|
168
|
-
* Returns the start connection info for this connector shape.
|
|
169
|
-
* If this connector's start point is connected to a basic shape, returns the target shape id and connection site index.
|
|
170
|
-
* @returns {IShapeRelationItem | null} The start connection info, or `null` if not connected.
|
|
171
|
-
*
|
|
172
|
-
* @example
|
|
173
|
-
* ```ts
|
|
174
|
-
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
175
|
-
* const fWorksheet = fWorkbook.getSheetByName('Sheet1');
|
|
176
|
-
* if (!fWorksheet) return;
|
|
177
|
-
* const shapes = fWorksheet.getShapes();
|
|
178
|
-
* const connector = shapes.find((s) => s.isLineShape());
|
|
179
|
-
*
|
|
180
|
-
* if (connector) {
|
|
181
|
-
* const startInfo = connector.getStartConnectInfo();
|
|
182
|
-
* if (startInfo) {
|
|
183
|
-
* console.log(`Start connected to shape ${startInfo.shapeId} at site ${startInfo.cxnIndex}`);
|
|
184
|
-
* }
|
|
185
|
-
* }
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
getStartConnectInfo(): IShapeRelationItem | null;
|
|
189
|
-
}
|