@univerjs-pro/sheets-shape 1.0.0-alpha.5 → 1.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xf009(_0x380e7f,_0x1bc7df){_0x380e7f=_0x380e7f-0x193;const _0x5212b0=_0x5212();let _0xf009e4=_0x5212b0[_0x380e7f];return _0xf009e4;}function _0x5212(){const _0x44d28d=['getDrawingByParam','Plugin','sequenceExecute','IResourceManagerService','getAdjustValueByName','isHorizontal','_sheetInterceptorService','sin','UniverLicensePlugin','SheetSkeletonService','removeLinePoints','_configService','shapeData','UniverCore','ang','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isConnectorShape','_shapeModelManagerMap','preUndos','@univerjs-pro/license','_initCommandInterceptor','object','114606XFwttB','computeConnectorRouteLayout','_deserializeShapeForUnit','pushUndoRedo','getBasicShapeType','_getConnectPointInfo','sheets-shape.config','forward','ICommandService','registerPluginResource','_drawingManagerService','removeShape','position','UniverShapePlugin','undos','3161431lfNZxZ','unitId','UniverSheets','setConfig','@univerjs/sheets-drawing','rotateEnabled','_drawingService','entries','1383692IKvnMB','getOwnPropertyDescriptor','getShapeRelation','call','data','39304IswKot','top','1813794SDJqQG','get','291719CiumdX','IUniverInstanceService','setShapeData','getConnectionSiteList','SheetsShapeService','left','parse','sheet.command.update-line-shape-resize','SetSheetsShapeTextVerticalToggleCommand','@univerjs/sheets','addShape','726810ttgtXf','back','push','function','defineProperty','range','ToggleSheetsShapeFlipCommand','dispose','map','@univerjs-pro/engine-shape','getEndConnectInfo','width','SHEET_SHAPE_PLUGIN','_groupIds','getShape','lineShapeId','visible','UniverInstanceType','toPrimitive','UPDATE','_addLineFollowShapeUpdates','SetSheetsShapeRotateCommand','getCellWithCoordByIndex','toStringTag','getShapeModel','syncExecuteCommand','packageName','ClearSheetDrawingTransformerOperation','UpdateConnectorRelationCommand','set','_linesIds','_commandService','onCommandExecute','listShapes','Tools','angle','has','UNIVER_SHEET','flipX','CommandType','UpdateSheetsShapeDataMutation','from','ArrangeTypeEnum','setShapeType','sendToBack','ensureSkeleton','description','adjustValues','transform','rotation','merge','REMOVE','sheet.mutation.insert-shape','default','hasShape','params','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','Module','Injector','171aYfmjl','sheet.command.set-shape-text-vertical-toggle','cos','disposeWithMe','sendBackward','sheet.mutation.update-shape-data','cxnIndex','result','5gTGfRL','onStarting','delete','getAdjustNames','preRedos','drawingType','getShapeData','selectable','SheetInterceptorService','startX','routeConnectorLineShape','updateContext','IDrawingManagerService','sheet.mutation.remove-shape','_shapeService','sheet.command.set-shape-drawing-data','resizeEnabled','isFrom','shapeName','height','getBatchAddOp','getShapeDisplayNames','startY','add','InsertShapeCommand','borderEnabled','_initSnapshot','DrawingTypeEnum','getShapeTextData','RemoveSheetsShapeMutation','_addLineRerouteUpdates','getShapeDataById','drawingId','toJSON','SetDrawingArrangeCommand','_initCommands','Disposable','SetShapeDrawingDataCommand','registerCommand','sheet.command.update-connector-relation','version','getDrawingData','name','bringForward','INSERT','_shapeHostAdapterRegistry','decorate','length','getBasicShapeRelation','keys','getSkeleton','find','flipY','sheet.command.toggle-shape-flip','UpdateSheetsShapeTypeMutation','_arrange','shapeId','_ensureShapeModelManager','insertShape','IShapeHostAdapterRegistry','fill','fromJSON','Inject','values','transformToDrawingPosition','subUnitId','UpdateLineShapeResizeCommand','transformToAxisAlignPosition','index','DEFAULT_SHAPE_WIDTH','MUTATION','getBatchUpdateOp','register','SetSheetDrawingCommand','InsertSheetDrawingCommand','_disposed','prototype','getShapeType','shapeType','relation','sheet.mutation.update-shape-type','bringToFront','_injector','RemoveSheetDrawingCommand','_serializeShapeForUnit','string','DRAWING_SHAPE','_config','backward','getBasicShapeRotateBound','IConfigService','ISheetDrawingService','UniverSheetsDrawing','worldRect','forEach','front','generateRandomId','getLineShapeRelation','_shapes','clear','lineType','SetDrawingApplyMutation','getSheetCommandTarget','amd','_sheetsShapeService','symbol','@univerjs-pro/sheets-shape','_resourcesManagerService','1.0.0-alpha.5','_sheetSkeletonService','filter','DrawingApplyType','COMMAND','interceptCommand','stringify','DependentOn','deepClone','getShapeTypeById','IUndoRedoService','redos'];_0x5212=function(){return _0x44d28d;};return _0x5212();}(function(_0x303b05,_0x4bd813){const _0x239ce5=_0xf009,_0x3c074b=_0x303b05();while(!![]){try{const _0x5c0dc8=parseInt(_0x239ce5(0x24f))/0x1+parseInt(_0x239ce5(0x22f))/0x2+parseInt(_0x239ce5(0x25a))/0x3+-parseInt(_0x239ce5(0x246))/0x4+parseInt(_0x239ce5(0x1a1))/0x5*(-parseInt(_0x239ce5(0x24d))/0x6)+parseInt(_0x239ce5(0x23e))/0x7+-parseInt(_0x239ce5(0x24b))/0x8*(parseInt(_0x239ce5(0x199))/0x9);if(_0x5c0dc8===_0x4bd813)break;else _0x3c074b['push'](_0x3c074b['shift']());}catch(_0x3eca75){_0x3c074b['push'](_0x3c074b['shift']());}}}(_0x5212,0x4992c),function(_0x25c4b9,_0x1217e4){const _0x390ce4=_0xf009;typeof exports==_0x390ce4(0x22e)&&typeof module<'u'?_0x1217e4(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==_0x390ce4(0x25d)&&define[_0x390ce4(0x208)]?define(['exports',_0x390ce4(0x263),'@univerjs/core',_0x390ce4(0x258),_0x390ce4(0x242),_0x390ce4(0x22c),'@univerjs/drawing'],_0x1217e4):(_0x25c4b9=typeof globalThis<'u'?globalThis:_0x25c4b9||self,_0x1217e4(_0x25c4b9['UniverProSheetsShape']={},_0x25c4b9['UniverProEngineShape'],_0x25c4b9[_0x390ce4(0x226)],_0x25c4b9[_0x390ce4(0x240)],_0x25c4b9[_0x390ce4(0x1fd)],_0x25c4b9['UniverProLicense'],_0x25c4b9['UniverDrawing']));}(this,function(_0x4d9e8b,_0x562947,_0xd66891,_0x39d4d4,_0x2060e2,_0x328626,_0x417360){const _0x33a6bb=_0xf009;Object['defineProperty'](_0x4d9e8b,Symbol[_0x33a6bb(0x271)],{'value':_0x33a6bb(0x197)});function _0x40fd85(_0x4e3c14){'@babel/helpers - typeof';const _0x55120d=_0x33a6bb;return _0x40fd85=typeof Symbol==_0x55120d(0x25d)&&typeof Symbol['iterator']==_0x55120d(0x20a)?function(_0x418f0c){return typeof _0x418f0c;}:function(_0x188735){const _0x5b7e23=_0x55120d;return _0x188735&&typeof Symbol=='function'&&_0x188735['constructor']===Symbol&&_0x188735!==Symbol[_0x5b7e23(0x1ed)]?_0x5b7e23(0x20a):typeof _0x188735;},_0x40fd85(_0x4e3c14);}function _0x46a41a(_0x35b9e8,_0x53da0f){const _0x4d4297=_0x33a6bb;if(_0x40fd85(_0x35b9e8)!=_0x4d4297(0x22e)||!_0x35b9e8)return _0x35b9e8;var _0xde5e27=_0x35b9e8[Symbol[_0x4d4297(0x26c)]];if(_0xde5e27!==void 0x0){var _0x589150=_0xde5e27[_0x4d4297(0x249)](_0x35b9e8,_0x53da0f||_0x4d4297(0x193));if(_0x40fd85(_0x589150)!=_0x4d4297(0x22e))return _0x589150;throw TypeError(_0x4d4297(0x228));}return(_0x53da0f===_0x4d4297(0x1f6)?String:Number)(_0x35b9e8);}function _0x2c3ddf(_0x478d29){const _0x5a1e83=_0x33a6bb;var _0x324887=_0x46a41a(_0x478d29,_0x5a1e83(0x1f6));return _0x40fd85(_0x324887)=='symbol'?_0x324887:_0x324887+'';}function _0x5a1628(_0x513b54,_0x122021,_0x47e1c8){const _0x55b77a=_0x33a6bb;return(_0x122021=_0x2c3ddf(_0x122021))in _0x513b54?Object[_0x55b77a(0x25e)](_0x513b54,_0x122021,{'value':_0x47e1c8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x513b54[_0x122021]=_0x47e1c8,_0x513b54;}var _0x5eb067=class extends _0xd66891[_0x33a6bb(0x1c5)]{constructor(){const _0x1847b7=_0x33a6bb;super(),_0x5a1628(this,_0x1847b7(0x203),new Map()),_0x5a1628(this,'_linesIds',new Set()),_0x5a1628(this,_0x1847b7(0x267),new Set());}[_0x33a6bb(0x259)](_0x51586b,_0x1eace7,_0x13aca4,_0x10f6c9){const _0x4799eb=_0x33a6bb;let _0x189d17=new _0x562947['ShapeModel'](_0x51586b,_0x1eace7,_0x13aca4,_0x10f6c9);return this[_0x4799eb(0x203)][_0x4799eb(0x277)](_0x1eace7,_0x189d17),(0x0,_0x562947[_0x4799eb(0x229)])(_0x51586b)&&this['_linesIds']['add'](_0x1eace7),_0x189d17;}[_0x33a6bb(0x1d1)](_0xf5ffc9){const _0x22f4f0=_0x33a6bb;let _0x4dbab7=[];for(let _0xd18179 of this[_0x22f4f0(0x278)]){let _0xebf4eb=this[_0x22f4f0(0x203)]['get'](_0xd18179);if(_0xebf4eb){let _0x3c5676=_0xebf4eb[_0x22f4f0(0x248)]();if(_0x3c5676){var _0x3721e2,_0x2159f6;((_0x3721e2=_0x3c5676[_0x22f4f0(0x283)])==null?void 0x0:_0x3721e2[_0x22f4f0(0x1d9)])===_0xf5ffc9&&_0x4dbab7[_0x22f4f0(0x25c)]({..._0x3c5676['from'],'lineShapeId':_0xd18179,'isFrom':!0x0}),((_0x2159f6=_0x3c5676['to'])==null?void 0x0:_0x2159f6['shapeId'])===_0xf5ffc9&&_0x4dbab7[_0x22f4f0(0x25c)]({..._0x3c5676['to'],'lineShapeId':_0xd18179,'isFrom':!0x1});}}}return _0x4dbab7;}[_0x33a6bb(0x202)](_0x500413){const _0x4df291=_0x33a6bb;let _0x5a2204=this[_0x4df291(0x203)]['get'](_0x500413);if(_0x5a2204)return _0x5a2204[_0x4df291(0x248)]();}[_0x33a6bb(0x1ee)](_0x513d73){const _0x123425=_0x33a6bb;let _0x390c36=this['_shapes']['get'](_0x513d73);if(_0x390c36)return _0x390c36[_0x123425(0x1ee)]();}['hasShape'](_0x2ce36f){const _0x5a9786=_0x33a6bb;return this[_0x5a9786(0x203)][_0x5a9786(0x27e)](_0x2ce36f);}[_0x33a6bb(0x1b6)](){const _0x5dc831=_0x33a6bb;return Array['from'](this[_0x5dc831(0x203)][_0x5dc831(0x1e0)]())[_0x5dc831(0x262)](_0x5489c7=>_0x5489c7['getName']()||_0x5489c7['getId']());}['removeShape'](_0x821f2a){const _0x4564da=_0x33a6bb;let _0x237793=this['_shapes']['get'](_0x821f2a);_0x237793&&((0x0,_0x562947[_0x4564da(0x229)])(_0x237793[_0x4564da(0x1ee)]())&&this['_linesIds'][_0x4564da(0x1a3)](_0x821f2a),this[_0x4564da(0x203)][_0x4564da(0x1a3)](_0x821f2a));}[_0x33a6bb(0x1c2)](){const _0x17a00e=_0x33a6bb;let _0x32cd11=[];return this[_0x17a00e(0x203)][_0x17a00e(0x1ff)](_0x37cbfe=>{const _0x5d3a73=_0x17a00e;_0x32cd11[_0x5d3a73(0x25c)](_0x37cbfe[_0x5d3a73(0x1c2)]());}),_0x32cd11;}['fromJSON'](_0x402eaf){const _0x360cb8=_0x33a6bb;for(let _0x149c56 of _0x402eaf){let {id:_0x8c558c,shapeType:_0x2f6fba,name:_0xb1f3e8}=_0x149c56,_0x340398=this[_0x360cb8(0x259)](_0x2f6fba,_0x8c558c,_0x149c56[_0x360cb8(0x225)],_0xb1f3e8);_0x340398&&_0x340398['isLineShape']()&&this[_0x360cb8(0x278)][_0x360cb8(0x1b8)](_0x8c558c);}}['dispose'](){const _0x512843=_0x33a6bb;this[_0x512843(0x1ec)]||(this[_0x512843(0x203)][_0x512843(0x1ff)](_0x414a77=>{_0x414a77['dispose']();}),this['_shapes'][_0x512843(0x204)](),this[_0x512843(0x278)][_0x512843(0x204)](),this['_groupIds'][_0x512843(0x204)](),super[_0x512843(0x261)]());}};function _0x1123ad(_0x434cf3,_0x56a42d){return function(_0x32f888,_0x45a677){_0x56a42d(_0x32f888,_0x45a677,_0x434cf3);};}function _0x12e0b9(_0xaee74f,_0x2ff461,_0x4e2f88,_0x515dfa){const _0x161e82=_0x33a6bb;var _0x334207=arguments[_0x161e82(0x1d0)],_0x39eecc=_0x334207<0x3?_0x2ff461:_0x515dfa===null?_0x515dfa=Object[_0x161e82(0x247)](_0x2ff461,_0x4e2f88):_0x515dfa,_0x9c365;if(typeof Reflect==_0x161e82(0x22e)&&typeof Reflect['decorate']==_0x161e82(0x25d))_0x39eecc=Reflect[_0x161e82(0x1cf)](_0xaee74f,_0x2ff461,_0x4e2f88,_0x515dfa);else{for(var _0x4c554f=_0xaee74f[_0x161e82(0x1d0)]-0x1;_0x4c554f>=0x0;_0x4c554f--)(_0x9c365=_0xaee74f[_0x4c554f])&&(_0x39eecc=(_0x334207<0x3?_0x9c365(_0x39eecc):_0x334207>0x3?_0x9c365(_0x2ff461,_0x4e2f88,_0x39eecc):_0x9c365(_0x2ff461,_0x4e2f88))||_0x39eecc);}return _0x334207>0x3&&_0x39eecc&&Object['defineProperty'](_0x2ff461,_0x4e2f88,_0x39eecc),_0x39eecc;}let _0x7bf5a9=class extends _0xd66891[_0x33a6bb(0x1c5)]{constructor(_0x165a09){const _0x228e38=_0x33a6bb;super(),this[_0x228e38(0x20c)]=_0x165a09,_0x5a1628(this,_0x228e38(0x22a),new Map()),this[_0x228e38(0x1bb)]();}[_0x33a6bb(0x1da)](_0x5273d9,_0x4c153a){const _0x2d477d=_0x33a6bb;let _0x2a0693=this[_0x2d477d(0x22a)][_0x2d477d(0x24e)](_0x5273d9);_0x2a0693||(_0x2a0693=new Map(),this[_0x2d477d(0x22a)][_0x2d477d(0x277)](_0x5273d9,_0x2a0693));let _0x1e0ae8=_0x2a0693[_0x2d477d(0x24e)](_0x4c153a);return _0x1e0ae8||(_0x1e0ae8=new _0x5eb067(),_0x2a0693['set'](_0x4c153a,_0x1e0ae8)),_0x1e0ae8;}[_0x33a6bb(0x1db)](_0x5b7d91,_0x1944da,_0xbccd3,_0x5c970f,_0x331490,_0x35804a){const _0x1ff863=_0x33a6bb;this['_ensureShapeModelManager'](_0x5b7d91,_0x1944da)[_0x1ff863(0x259)](_0xbccd3,_0x5c970f,_0x331490,_0x35804a);}[_0x33a6bb(0x23a)](_0x581d60,_0x49a9d9,_0x40fb65){const _0x90f2d7=_0x33a6bb;this[_0x90f2d7(0x1da)](_0x581d60,_0x49a9d9)['removeShape'](_0x40fb65);}[_0x33a6bb(0x233)](_0x524319,_0x2e89e3,_0x76e969){const _0x291d31=_0x33a6bb;return this[_0x291d31(0x1da)](_0x524319,_0x2e89e3)[_0x291d31(0x1ee)](_0x76e969);}[_0x33a6bb(0x1ee)](_0x110961,_0x514bda,_0x29703b){const _0x1b560c=_0x33a6bb;return this[_0x1b560c(0x1da)](_0x110961,_0x514bda)[_0x1b560c(0x1ee)](_0x29703b);}['hasShape'](_0x41a8fe,_0x5692f2,_0xe0ea19){const _0x3d130b=_0x33a6bb;return this[_0x3d130b(0x1da)](_0x41a8fe,_0x5692f2)[_0x3d130b(0x194)](_0xe0ea19);}[_0x33a6bb(0x216)](_0x5a5cb6,_0x432c2b,_0x252d7a){const _0x44add8=_0x33a6bb;return this[_0x44add8(0x1da)](_0x5a5cb6,_0x432c2b)['getShapeType'](_0x252d7a);}[_0x33a6bb(0x1c0)](_0x32ad3d,_0x3eb8e4,_0x34a1e5){const _0x3c3893=_0x33a6bb;let _0x30b034=this[_0x3c3893(0x1da)](_0x32ad3d,_0x3eb8e4);if(!_0x30b034['getShapeType'](_0x34a1e5))return;let _0x269a51=_0x30b034['_shapes'][_0x3c3893(0x24e)](_0x34a1e5);if(_0x269a51)return _0x269a51[_0x3c3893(0x1a7)]();}[_0x33a6bb(0x1b6)](_0x10c22a,_0x58e8eb){const _0x843fe5=_0x33a6bb;return this[_0x843fe5(0x1da)](_0x10c22a,_0x58e8eb)['getShapeDisplayNames']();}[_0x33a6bb(0x272)](_0x40ee53,_0x39fef1,_0x34d6e6){const _0x54812b=_0x33a6bb;return this['_ensureShapeModelManager'](_0x40ee53,_0x39fef1)[_0x54812b(0x203)][_0x54812b(0x24e)](_0x34d6e6);}[_0x33a6bb(0x1d1)](_0x334f84,_0x41a2b8,_0x2ac41f){const _0x56c1ec=_0x33a6bb;return this[_0x56c1ec(0x1da)](_0x334f84,_0x41a2b8)[_0x56c1ec(0x1d1)](_0x2ac41f);}[_0x33a6bb(0x202)](_0x17afff,_0x42e074,_0x3e934f){const _0x14e5e5=_0x33a6bb;let _0x4c4c34=this['_ensureShapeModelManager'](_0x17afff,_0x42e074)[_0x14e5e5(0x203)][_0x14e5e5(0x24e)](_0x3e934f);if(_0x4c4c34)return _0x4c4c34['getShapeRelation']();}[_0x33a6bb(0x285)](){}[_0x33a6bb(0x1f5)](_0x2e75d7){const _0x4e6756=_0x33a6bb;let _0x23cf7c={},_0x52ae8d=this[_0x4e6756(0x22a)][_0x4e6756(0x24e)](_0x2e75d7);return _0x52ae8d&&_0x52ae8d[_0x4e6756(0x1ff)]((_0x3f875a,_0x829a06)=>{const _0x463a57=_0x4e6756;let _0x35a9c1=_0x3f875a[_0x463a57(0x1c2)]();_0x35a9c1[_0x463a57(0x1d0)]>0x0&&(_0x23cf7c[_0x829a06]=_0x35a9c1);}),JSON[_0x4e6756(0x213)](_0x23cf7c);}[_0x33a6bb(0x231)](_0xe9efdd,_0x131025){const _0x473c63=_0x33a6bb;Object[_0x473c63(0x1d2)](_0x131025)[_0x473c63(0x1ff)](_0x20f0fc=>{const _0x170e51=_0x473c63;this[_0x170e51(0x1da)](_0xe9efdd,_0x20f0fc)['fromJSON'](_0x131025[_0x20f0fc]);});}[_0x33a6bb(0x1c2)](){const _0x2ecbec=_0x33a6bb;let _0x7e995a={};return this[_0x2ecbec(0x22a)]['forEach']((_0x46c0e0,_0x2537ae)=>{_0x7e995a[_0x2537ae]={},_0x46c0e0['forEach']((_0x1d075c,_0x5a7e79)=>{_0x7e995a[_0x2537ae][_0x5a7e79]=_0x1d075c['toJSON']();});}),_0x7e995a;}[_0x33a6bb(0x1de)](_0x449ecd){const _0x1d8bfc=_0x33a6bb;Object[_0x1d8bfc(0x1d2)](_0x449ecd)['forEach'](_0x229278=>{const _0x555bd6=_0x1d8bfc;let _0x45e995=_0x449ecd[_0x229278];Object[_0x555bd6(0x1d2)](_0x45e995)['forEach'](_0x5b123e=>{const _0x513633=_0x555bd6;this[_0x513633(0x1da)](_0x229278,_0x5b123e)[_0x513633(0x1de)](_0x45e995[_0x5b123e]);});});}[_0x33a6bb(0x1bb)](){const _0xd2d6a3=_0x33a6bb;this[_0xd2d6a3(0x20c)][_0xd2d6a3(0x238)]({'pluginName':_0xd2d6a3(0x266),'businesses':[_0xd66891[_0xd2d6a3(0x26b)][_0xd2d6a3(0x27f)]],'toJson':_0xed6139=>this[_0xd2d6a3(0x1f5)](_0xed6139),'parseJson':_0x1650e5=>JSON[_0xd2d6a3(0x255)](_0x1650e5),'onLoad':(_0x27c09c,_0x680d8c)=>{const _0x14e640=_0xd2d6a3;this[_0x14e640(0x231)](_0x27c09c,_0x680d8c);},'onUnLoad':_0x3f6710=>{const _0x4aa112=_0xd2d6a3;let _0x50d386=this[_0x4aa112(0x22a)]['get'](_0x3f6710);_0x50d386&&(_0x50d386[_0x4aa112(0x1ff)](_0x25e703=>{const _0x19cb20=_0x4aa112;_0x25e703[_0x19cb20(0x261)]();}),this[_0x4aa112(0x22a)][_0x4aa112(0x1a3)](_0x3f6710));}});}['dispose'](){const _0x209bfa=_0x33a6bb;this[_0x209bfa(0x22a)]['forEach'](_0x589aca=>{const _0x195011=_0x209bfa;_0x589aca[_0x195011(0x1ff)](_0x59eb51=>{const _0x1969dd=_0x195011;_0x59eb51[_0x1969dd(0x261)]();});});}};_0x7bf5a9=_0x12e0b9([_0x1123ad(0x0,_0xd66891[_0x33a6bb(0x21c)])],_0x7bf5a9);let _0xac8f76={'id':_0x33a6bb(0x28e),'type':_0xd66891['CommandType'][_0x33a6bb(0x1e7)],'handler':(_0x271327,_0x4a211e)=>{const _0x5a14aa=_0x33a6bb;let {unitId:_0x5e620a,subUnitId:_0xf13caf,shapeType:_0x3300d9,shapeId:_0x31e8e3,shapeName:_0x2f7dd1,shapeData:_0xb6df2d}=_0x4a211e;return _0x271327[_0x5a14aa(0x24e)](_0x7bf5a9)[_0x5a14aa(0x1db)](_0x5e620a,_0xf13caf,_0x3300d9,_0x31e8e3,_0xb6df2d,_0x2f7dd1),!0x0;}},_0x177a6b={'id':_0x33a6bb(0x1ae),'type':_0xd66891['CommandType'][_0x33a6bb(0x1e7)],'handler':(_0x5af03a,_0xe51bf1)=>{const _0x2b10e2=_0x33a6bb;let {unitId:_0x124f5b,subUnitId:_0x2489f3,shapeId:_0xf2b626}=_0xe51bf1;return _0x5af03a[_0x2b10e2(0x24e)](_0x7bf5a9)[_0x2b10e2(0x23a)](_0x124f5b,_0x2489f3,_0xf2b626),!0x0;}},_0x34b477={'type':_0xd66891[_0x33a6bb(0x281)]['COMMAND'],'id':'sheet.command.insert-shape','handler':(_0x447bd8,_0x275bb7)=>{const _0xf14932=_0x33a6bb;var _0x201e76,_0x462156,_0x42359b,_0x45cfb8,_0xb74aee,_0x381f49,_0x378f67;let _0x57bca6=(0x0,_0x39d4d4[_0xf14932(0x207)])(_0x447bd8[_0xf14932(0x24e)](_0xd66891[_0xf14932(0x250)]),_0x275bb7);if(!_0x57bca6)return!0x1;let _0x292845=_0x447bd8[_0xf14932(0x24e)](_0x39d4d4[_0xf14932(0x222)]),{unitId:_0x498630,subUnitId:_0x37fdf9}=_0x57bca6,_0x1495a7=_0x292845[_0xf14932(0x287)](_0x498630,_0x37fdf9);if(!_0x1495a7)return!0x1;let _0x44ae63=_0x447bd8[_0xf14932(0x24e)](_0xd66891[_0xf14932(0x237)]),_0x26efab=_0x447bd8['get'](_0xd66891[_0xf14932(0x217)]),_0x26a525=_0x447bd8[_0xf14932(0x24e)](_0x39d4d4[_0xf14932(0x1a9)]),_0x19bb29=_0x447bd8[_0xf14932(0x24e)](_0x2060e2[_0xf14932(0x1fc)]),_0x571642=_0x447bd8[_0xf14932(0x24e)](_0x7bf5a9),{shapeType:_0x48d731,shapeData:_0x1cb967}=_0x275bb7,_0x4f0353=_0x275bb7[_0xf14932(0x1d9)]||(0x0,_0xd66891[_0xf14932(0x201)])(),_0x56592e={'unitId':_0x498630,'subUnitId':_0x37fdf9,'shapeId':_0x4f0353,'shapeName':(_0x201e76=_0x275bb7[_0xf14932(0x1b3)])==null?(0x0,_0x562947['createUniqueShapeName'])(_0x48d731,_0x571642[_0xf14932(0x1b6)](_0x498630,_0x37fdf9)):_0x201e76,'shapeType':_0x48d731,'shapeData':_0x1cb967},_0x2fa856=_0x275bb7[_0xf14932(0x265)]||0xc8,_0xce18e4=_0x275bb7[_0xf14932(0x1b4)]||0xc8,_0x18bff1=0x0,_0x2b85b6=0x0;if(_0x275bb7[_0xf14932(0x23b)]){let {x:_0x44a656,y:_0x1be419}=_0x275bb7[_0xf14932(0x23b)];_0x18bff1=_0x44a656,_0x2b85b6=_0x1be419;}else{if(_0x275bb7[_0xf14932(0x25f)]){let {startRow:_0x344ea7,startColumn:_0x237cd0}=_0x275bb7[_0xf14932(0x25f)],_0x3bfff2=_0x1495a7[_0xf14932(0x270)](_0x344ea7,_0x237cd0);_0x18bff1=_0x3bfff2[_0xf14932(0x1aa)]+0xa,_0x2b85b6=_0x3bfff2[_0xf14932(0x1b7)]+0xa;}}let _0x3bb13f={'left':_0x18bff1,'top':_0x2b85b6,'width':_0x2fa856,'height':_0xce18e4,'angle':(_0x462156=_0x275bb7['rotation'])==null?0x0:_0x462156,'flipX':(_0x42359b=_0x275bb7[_0xf14932(0x280)])==null?!0x1:_0x42359b,'flipY':(_0x45cfb8=_0x275bb7['flipY'])==null?!0x1:_0x45cfb8},_0x1cd405=(0x0,_0x2060e2[_0xf14932(0x1e1)])(_0x3bb13f,_0x1495a7),_0x59187c=(0x0,_0x2060e2[_0xf14932(0x1e4)])(_0x3bb13f,_0x1495a7),_0x595ba8={'unitId':_0x498630,'subUnitId':_0x37fdf9,'drawingId':_0x4f0353,'drawingType':_0xd66891[_0xf14932(0x1bc)][_0xf14932(0x1f7)],'name':_0x275bb7['name'],'description':_0x275bb7[_0xf14932(0x288)],'sheetTransform':_0x1cd405,'transform':_0x3bb13f,'data':{'shapeType':_0x48d731,'shapeData':_0x1cb967},'axisAlignSheetTransform':_0x59187c,'allowTransform':!0x0,'hidden':_0x275bb7['visible']===!0x1,'selectable':(_0xb74aee=_0x275bb7[_0xf14932(0x1a8)])==null?!0x0:_0xb74aee};(0x0,_0x562947[_0xf14932(0x229)])(_0x48d731)&&(_0x595ba8['data'][_0xf14932(0x1dd)]=!0x1,_0x595ba8['data'][_0xf14932(0x243)]=!0x1,_0x595ba8[_0xf14932(0x24a)][_0xf14932(0x1b1)]=!0x1,_0x595ba8[_0xf14932(0x24a)][_0xf14932(0x1ba)]=!0x1,_0x595ba8[_0xf14932(0x28a)][_0xf14932(0x243)]=!0x1,_0x595ba8[_0xf14932(0x28a)][_0xf14932(0x1b1)]=!0x1,_0x595ba8['transform'][_0xf14932(0x1ba)]=!0x1);let {undo:_0x2c63ff,redo:_0x371ff1,objects:_0x4f11ed}=_0x19bb29[_0xf14932(0x1b5)]([_0x595ba8]),_0x36b853=_0x26a525['onCommandExecute']({'id':_0x2060e2[_0xf14932(0x1eb)]['id'],'params':{'unitId':_0x498630,'drawings':[_0x595ba8]}}),_0x328110=[...(_0x381f49=_0x36b853['preRedos'])==null?[]:_0x381f49,{'id':_0x2060e2[_0xf14932(0x206)]['id'],'params':{'unitId':_0x498630,'subUnitId':_0x37fdf9,'op':_0x371ff1,'objects':_0x4f11ed,'type':_0x2060e2[_0xf14932(0x210)][_0xf14932(0x1cd)]}},{'id':_0x2060e2['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x498630]},..._0x36b853[_0xf14932(0x218)],{'id':_0xac8f76['id'],'params':_0x56592e}],_0x1e6b3a=[{'id':_0x177a6b['id'],'params':{'unitId':_0x498630,'subUnitId':_0x37fdf9,'shapeId':_0x4f0353}},...(_0x378f67=_0x36b853[_0xf14932(0x22b)])==null?[]:_0x378f67,{'id':_0x2060e2['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x498630,'subUnitId':_0x37fdf9,'op':_0x2c63ff,'objects':_0x4f11ed,'type':_0x2060e2['DrawingApplyType'][_0xf14932(0x28d)]}},{'id':_0x2060e2['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x498630]},..._0x36b853[_0xf14932(0x23d)]];return(0x0,_0xd66891[_0xf14932(0x21b)])(_0x328110,_0x44ae63)[_0xf14932(0x1a0)]?(_0x26efab[_0xf14932(0x232)]({'unitID':_0x498630,'undoMutations':_0x1e6b3a,'redoMutations':_0x328110}),!0x0):!0x1;}},_0x213947={'id':_0x33a6bb(0x19e),'type':_0xd66891[_0x33a6bb(0x281)][_0x33a6bb(0x1e7)],'handler':(_0x25bc96,_0x54e70b)=>{const _0xed5008=_0x33a6bb;let {unitId:_0x26f5c3,subUnitId:_0x3026e0,shapeType:_0x147744,shapeId:_0x6b64a6,shapeData:_0x452c35}=_0x54e70b,_0x4367a9=_0x25bc96[_0xed5008(0x24e)](_0x7bf5a9)[_0xed5008(0x272)](_0x26f5c3,_0x3026e0,_0x6b64a6);return _0x4367a9&&(_0x147744!==void 0x0&&_0x4367a9[_0xed5008(0x285)](_0x147744),_0x452c35&&(_0x4367a9==null||_0x4367a9[_0xed5008(0x251)](_0x452c35,!0x0))),!0x0;}},_0x1568be={'type':_0xd66891[_0x33a6bb(0x281)][_0x33a6bb(0x211)],'id':_0x33a6bb(0x1b0),'handler':(_0x32372d,_0x24e130)=>{const _0x1d5119=_0x33a6bb;var _0x321631,_0x577da0,_0x15c68f,_0x2383fa,_0x4e6893;let _0x23e530=(0x0,_0x39d4d4[_0x1d5119(0x207)])(_0x32372d['get'](_0xd66891[_0x1d5119(0x250)]),_0x24e130);if(!_0x23e530)return!0x1;let _0x59749b=_0x32372d[_0x1d5119(0x24e)](_0x39d4d4[_0x1d5119(0x222)]),{unitId:_0x2d2d90,subUnitId:_0x56a946}=_0x23e530,_0x3770b0=_0x59749b['ensureSkeleton'](_0x2d2d90,_0x56a946);if(!_0x3770b0)return!0x1;let _0x5eb32a=_0x32372d[_0x1d5119(0x24e)](_0x7bf5a9),{shapeId:_0x537667,shapeType:_0x4ef446,shapeData:_0x539d6e,position:_0xf04be7,width:_0x4fe63d,height:_0x2be478}=_0x24e130,_0x17177d=_0x5eb32a[_0x1d5119(0x272)](_0x2d2d90,_0x56a946,_0x537667);if(!_0x17177d)return!0x1;let _0x22a8c6=_0x32372d[_0x1d5119(0x24e)](_0xd66891[_0x1d5119(0x237)]),_0x1db7af=_0x32372d['get'](_0xd66891[_0x1d5119(0x217)]),_0x2c973a=_0x32372d[_0x1d5119(0x24e)](_0x39d4d4[_0x1d5119(0x1a9)]),_0x29932d=_0x32372d[_0x1d5119(0x24e)](_0x2060e2['ISheetDrawingService']),_0x4c692f={'unitId':_0x2d2d90,'subUnitId':_0x56a946,'shapeId':_0x537667,'shapeType':_0x4ef446,'shapeData':_0x539d6e},_0x18e4ea=_0x17177d[_0x1d5119(0x1ee)](),_0x85a177=_0x17177d[_0x1d5119(0x1a7)](),{x:_0x1b25ca,y:_0x166ef6}=_0xf04be7,_0x5c41e4={'left':_0x1b25ca,'top':_0x166ef6,'width':_0x4fe63d,'height':_0x2be478,'angle':(_0x321631=_0x24e130[_0x1d5119(0x28b)])==null?0x0:_0x321631,'flipX':(_0x577da0=_0x24e130[_0x1d5119(0x280)])==null?!0x1:_0x577da0,'flipY':(_0x15c68f=_0x24e130[_0x1d5119(0x1d5)])==null?!0x1:_0x15c68f},_0x3a6875=(0x0,_0x2060e2['transformToDrawingPosition'])(_0x5c41e4,_0x3770b0),_0x76ef62=(0x0,_0x2060e2['transformToAxisAlignPosition'])(_0x5c41e4,_0x3770b0),_0x4f9a25={'unitId':_0x2d2d90,'subUnitId':_0x56a946,'drawingId':_0x537667,'drawingType':_0xd66891[_0x1d5119(0x1bc)][_0x1d5119(0x1f7)],'name':_0x24e130[_0x1d5119(0x1cb)],'description':_0x24e130[_0x1d5119(0x288)],'sheetTransform':_0x3a6875,'transform':_0x5c41e4,'data':{'shapeType':_0x4ef446,'shapeData':_0x539d6e},'axisAlignSheetTransform':_0x76ef62,'allowTransform':!0x0,'hidden':!_0x24e130[_0x1d5119(0x26a)],'selectable':_0x24e130[_0x1d5119(0x1a8)]};(0x0,_0x562947[_0x1d5119(0x229)])(_0x4ef446)&&(_0x4f9a25[_0x1d5119(0x24a)][_0x1d5119(0x1dd)]=!0x1,_0x4f9a25[_0x1d5119(0x24a)][_0x1d5119(0x243)]=!0x1,_0x4f9a25[_0x1d5119(0x24a)][_0x1d5119(0x1b1)]=!0x1,_0x4f9a25['data'][_0x1d5119(0x1ba)]=!0x1,_0x4f9a25['transform'][_0x1d5119(0x243)]=!0x1,_0x4f9a25[_0x1d5119(0x28a)][_0x1d5119(0x1b1)]=!0x1,_0x4f9a25['transform'][_0x1d5119(0x1ba)]=!0x1);let {undo:_0x118027,redo:_0x430da3,objects:_0x5c84c0}=_0x29932d[_0x1d5119(0x1e8)]([_0x4f9a25]),_0xf3a9e9=_0x2c973a[_0x1d5119(0x27a)]({'id':_0x2060e2[_0x1d5119(0x1ea)]['id'],'params':{'unitId':_0x2d2d90,'drawings':[_0x4f9a25]}}),_0x33d9af=[...(_0x2383fa=_0xf3a9e9[_0x1d5119(0x1a5)])==null?[]:_0x2383fa,{'id':_0x2060e2[_0x1d5119(0x206)]['id'],'params':{'unitId':_0x2d2d90,'subUnitId':_0x56a946,'op':_0x430da3,'objects':_0x5c84c0,'type':_0x2060e2[_0x1d5119(0x210)][_0x1d5119(0x26d)]}},{'id':_0x2060e2[_0x1d5119(0x275)]['id'],'params':[_0x2d2d90]},..._0xf3a9e9[_0x1d5119(0x218)],{'id':_0x213947['id'],'params':_0x4c692f}],_0x2a62fc=[...(_0x4e6893=_0xf3a9e9[_0x1d5119(0x22b)])==null?[]:_0x4e6893,{'id':_0x2060e2[_0x1d5119(0x206)]['id'],'params':{'unitId':_0x2d2d90,'subUnitId':_0x56a946,'op':_0x118027,'objects':_0x5c84c0,'type':_0x2060e2[_0x1d5119(0x210)]['UPDATE']}},{'id':_0x2060e2[_0x1d5119(0x275)]['id'],'params':[_0x2d2d90]},..._0xf3a9e9['undos'],{'id':_0x213947['id'],'params':{'unitId':_0x2d2d90,'subUnitId':_0x56a946,'shapeType':_0x18e4ea,'shapeId':_0x537667,'shapeData':_0x85a177}}];return(0x0,_0xd66891[_0x1d5119(0x21b)])(_0x33d9af,_0x22a8c6)[_0x1d5119(0x1a0)]?(_0x1db7af[_0x1d5119(0x232)]({'unitID':_0x2d2d90,'undoMutations':_0x2a62fc,'redoMutations':_0x33d9af}),!0x0):!0x1;}},_0x369e8f={'type':_0xd66891[_0x33a6bb(0x281)][_0x33a6bb(0x211)],'id':_0x33a6bb(0x1d6),'handler':(_0x591646,_0x1dc435)=>{const _0x4dc548=_0x33a6bb;var _0x59339f,_0x5a9941;let _0x20b67c=(0x0,_0x39d4d4[_0x4dc548(0x207)])(_0x591646[_0x4dc548(0x24e)](_0xd66891[_0x4dc548(0x250)]),_0x1dc435);if(!_0x20b67c)return!0x1;let _0x1b919a=_0x591646['get'](_0x39d4d4[_0x4dc548(0x222)]),{unitId:_0x1b8b42,subUnitId:_0x4d3e3b}=_0x20b67c,_0x5ea492=_0x1b919a[_0x4dc548(0x1d3)](_0x1b8b42,_0x4d3e3b);if(!_0x5ea492)return!0x1;let _0x523e45=_0x591646['get'](_0x2060e2[_0x4dc548(0x1fc)]),{shapeId:_0x247769,flipH:_0x5d8959,flipV:_0xf43c7d}=_0x1dc435,_0x242cb0=_0x523e45['getDrawingByParam']({'unitId':_0x1b8b42,'subUnitId':_0x4d3e3b,'drawingId':_0x247769});if(!_0x242cb0)return!0x1;let _0xeedcf6=_0x591646['get'](_0x7bf5a9)['getShapeModel'](_0x1b8b42,_0x4d3e3b,_0x247769);if(!_0xeedcf6)return!0x1;let _0x39cd54=_0x591646[_0x4dc548(0x24e)](_0xd66891['ICommandService']),_0x5f2f12=_0x591646['get'](_0xd66891['IUndoRedoService']),_0x566bc8=_0x591646[_0x4dc548(0x24e)](_0x39d4d4[_0x4dc548(0x1a9)]),_0x805508={..._0x242cb0[_0x4dc548(0x28a)]};_0x5d8959!==void 0x0&&(_0x805508[_0x4dc548(0x280)]=!_0x805508[_0x4dc548(0x280)]),_0xf43c7d!==void 0x0&&(_0x805508[_0x4dc548(0x1d5)]=!_0x805508['flipY']);let _0xd4c6cc=(0x0,_0x2060e2[_0x4dc548(0x1e1)])(_0x805508,_0x5ea492),_0x3f047e=(0x0,_0x2060e2['transformToAxisAlignPosition'])(_0x805508,_0x5ea492),_0x7e3450=_0xeedcf6[_0x4dc548(0x1ee)](),_0x40adab=_0xeedcf6['getShapeData'](),_0x25ef22={'unitId':_0x1b8b42,'subUnitId':_0x4d3e3b,'drawingId':_0x247769,'drawingType':_0xd66891['DrawingTypeEnum'][_0x4dc548(0x1f7)],'sheetTransform':_0xd4c6cc,'transform':_0x805508,'data':{'shapeType':_0x7e3450,'shapeData':_0x40adab},'axisAlignSheetTransform':_0x3f047e,'allowTransform':!0x0},{undo:_0x5a41e8,redo:_0x16e55d,objects:_0x4d8280}=_0x523e45[_0x4dc548(0x1e8)]([_0x25ef22]),_0x301410=_0x566bc8[_0x4dc548(0x27a)]({'id':_0x2060e2['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x1b8b42,'drawings':[_0x25ef22]}}),_0x2985d7=[...(_0x59339f=_0x301410[_0x4dc548(0x1a5)])==null?[]:_0x59339f,{'id':_0x2060e2[_0x4dc548(0x206)]['id'],'params':{'unitId':_0x1b8b42,'subUnitId':_0x4d3e3b,'op':_0x16e55d,'objects':_0x4d8280,'type':_0x2060e2[_0x4dc548(0x210)]['UPDATE']}},{'id':_0x2060e2[_0x4dc548(0x275)]['id'],'params':[_0x1b8b42]},..._0x301410['redos']],_0x81bd96=[...(_0x5a9941=_0x301410[_0x4dc548(0x22b)])==null?[]:_0x5a9941,{'id':_0x2060e2[_0x4dc548(0x206)]['id'],'params':{'unitId':_0x1b8b42,'subUnitId':_0x4d3e3b,'op':_0x5a41e8,'objects':_0x4d8280,'type':_0x2060e2['DrawingApplyType']['UPDATE']}},{'id':_0x2060e2[_0x4dc548(0x275)]['id'],'params':[_0x1b8b42]},..._0x301410[_0x4dc548(0x23d)]];if((0x0,_0x562947['isConnectorShape'])(_0x7e3450)){let _0x1d240b=_0xeedcf6['getShapeRelation']();if(_0x1d240b){let _0x349541={..._0x1d240b};_0x349541[_0x4dc548(0x283)]=void 0x0,_0x349541['to']=void 0x0,_0x2985d7[_0x4dc548(0x25c)]({'id':_0x213947['id'],'params':{'unitId':_0x1b8b42,'subUnitId':_0x4d3e3b,'shapeId':_0x247769,'shapeType':_0x7e3450,'shapeData':{'relation':_0x349541}}}),_0x81bd96[_0x4dc548(0x25c)]({'id':_0x213947['id'],'params':{'unitId':_0x1b8b42,'subUnitId':_0x4d3e3b,'shapeId':_0x247769,'shapeType':_0x7e3450,'shapeData':{'relation':_0x1d240b}}});}}return(0x0,_0xd66891[_0x4dc548(0x21b)])(_0x2985d7,_0x39cd54)[_0x4dc548(0x1a0)]?(_0x5f2f12['pushUndoRedo']({'unitID':_0x1b8b42,'undoMutations':_0x81bd96,'redoMutations':_0x2985d7}),!0x0):!0x1;}},_0x3a09d0={'type':_0xd66891[_0x33a6bb(0x281)][_0x33a6bb(0x211)],'id':'sheet.command.set-shape-rotate','handler':(_0x1efa56,_0x2fec51)=>{const _0x2e9780=_0x33a6bb;var _0x43ebc4,_0x4ad95c;let _0x34dc4e=(0x0,_0x39d4d4[_0x2e9780(0x207)])(_0x1efa56[_0x2e9780(0x24e)](_0xd66891[_0x2e9780(0x250)]),_0x2fec51);if(!_0x34dc4e)return!0x1;let _0xc77854=_0x1efa56['get'](_0x39d4d4['SheetSkeletonService']),{unitId:_0x30cff4,subUnitId:_0x23ee41}=_0x34dc4e,_0x3e735b=_0xc77854[_0x2e9780(0x1d3)](_0x30cff4,_0x23ee41);if(!_0x3e735b)return!0x1;let _0x53f139=_0x1efa56['get'](_0x2060e2[_0x2e9780(0x1fc)]),{shapeId:_0x1bae13,rotate:_0x26e15c}=_0x2fec51,_0x266e8e=_0x53f139[_0x2e9780(0x219)]({'unitId':_0x30cff4,'subUnitId':_0x23ee41,'drawingId':_0x1bae13});if(!_0x266e8e)return!0x1;let _0x438a97=_0x1efa56[_0x2e9780(0x24e)](_0x7bf5a9)['getShapeModel'](_0x30cff4,_0x23ee41,_0x1bae13);if(!_0x438a97)return!0x1;let _0x4e0957=_0x1efa56['get'](_0xd66891[_0x2e9780(0x237)]),_0x31d6cc=_0x1efa56['get'](_0xd66891[_0x2e9780(0x217)]),_0x4ea820=_0x1efa56[_0x2e9780(0x24e)](_0x39d4d4[_0x2e9780(0x1a9)]),_0x3f55f5={..._0x266e8e[_0x2e9780(0x28a)]};_0x26e15c!==void 0x0&&(_0x3f55f5[_0x2e9780(0x27d)]=(_0x3f55f5[_0x2e9780(0x27d)]||0x0)+_0x26e15c);let _0xde542a=(0x0,_0x2060e2[_0x2e9780(0x1e1)])(_0x3f55f5,_0x3e735b),_0x1a73fd=(0x0,_0x2060e2[_0x2e9780(0x1e4)])(_0x3f55f5,_0x3e735b),_0x242ad2=_0x438a97[_0x2e9780(0x1ee)](),_0x285268=_0x438a97[_0x2e9780(0x1a7)](),_0x12f9b0={'unitId':_0x30cff4,'subUnitId':_0x23ee41,'drawingId':_0x1bae13,'drawingType':_0xd66891['DrawingTypeEnum'][_0x2e9780(0x1f7)],'sheetTransform':_0xde542a,'transform':_0x3f55f5,'data':{'shapeType':_0x242ad2,'shapeData':_0x285268},'axisAlignSheetTransform':_0x1a73fd,'allowTransform':!0x0},{undo:_0x43ad2e,redo:_0x30a75f,objects:_0x5665d2}=_0x53f139[_0x2e9780(0x1e8)]([_0x12f9b0]),_0x3a6764=_0x4ea820[_0x2e9780(0x27a)]({'id':_0x2060e2[_0x2e9780(0x1ea)]['id'],'params':{'unitId':_0x30cff4,'drawings':[_0x12f9b0]}}),_0x2ec211=[...(_0x43ebc4=_0x3a6764[_0x2e9780(0x1a5)])==null?[]:_0x43ebc4,{'id':_0x2060e2[_0x2e9780(0x206)]['id'],'params':{'unitId':_0x30cff4,'subUnitId':_0x23ee41,'op':_0x30a75f,'objects':_0x5665d2,'type':_0x2060e2[_0x2e9780(0x210)][_0x2e9780(0x26d)]}},{'id':_0x2060e2[_0x2e9780(0x275)]['id'],'params':[_0x30cff4]},..._0x3a6764[_0x2e9780(0x218)]],_0x398222=[...(_0x4ad95c=_0x3a6764[_0x2e9780(0x22b)])==null?[]:_0x4ad95c,{'id':_0x2060e2[_0x2e9780(0x206)]['id'],'params':{'unitId':_0x30cff4,'subUnitId':_0x23ee41,'op':_0x43ad2e,'objects':_0x5665d2,'type':_0x2060e2[_0x2e9780(0x210)][_0x2e9780(0x26d)]}},{'id':_0x2060e2[_0x2e9780(0x275)]['id'],'params':[_0x30cff4]},..._0x3a6764['undos']];return(0x0,_0xd66891['sequenceExecute'])(_0x2ec211,_0x4e0957)[_0x2e9780(0x1a0)]?(_0x31d6cc['pushUndoRedo']({'unitID':_0x30cff4,'undoMutations':_0x398222,'redoMutations':_0x2ec211}),!0x0):!0x1;}},_0xd50c12={'type':_0xd66891[_0x33a6bb(0x281)][_0x33a6bb(0x211)],'id':_0x33a6bb(0x19a),'handler':(_0xffe244,_0x2867dd)=>{const _0x108b75=_0x33a6bb;var _0x13134d;let _0x4e0d61=(0x0,_0x39d4d4[_0x108b75(0x207)])(_0xffe244['get'](_0xd66891['IUniverInstanceService']),_0x2867dd);if(!_0x4e0d61)return!0x1;let {unitId:_0x1ec5a8,subUnitId:_0x11d3da}=_0x4e0d61,{shapeId:_0xe65afc}=_0x2867dd,_0x230c60=_0xffe244[_0x108b75(0x24e)](_0x7bf5a9)['getShapeModel'](_0x1ec5a8,_0x11d3da,_0xe65afc);if(!_0x230c60)return!0x1;let _0x186977=_0x230c60[_0x108b75(0x1bd)](),_0x167edc=(_0x13134d=_0x186977==null?void 0x0:_0x186977[_0x108b75(0x21e)])==null?!0x0:_0x13134d,_0x3ae57e=!_0x167edc,_0x2ab3eb=_0xffe244[_0x108b75(0x24e)](_0xd66891[_0x108b75(0x237)]),_0x3cec2e=_0xffe244['get'](_0xd66891[_0x108b75(0x217)]),_0x7c8807={'unitId':_0x1ec5a8,'subUnitId':_0x11d3da,'shapeId':_0xe65afc,'shapeData':{'shapeText':{'isHorizontal':_0x3ae57e}}},_0x13669a={'unitId':_0x1ec5a8,'subUnitId':_0x11d3da,'shapeId':_0xe65afc,'shapeData':{'shapeText':{'isHorizontal':_0x167edc}}},_0x3d2550=[{'id':_0x213947['id'],'params':_0x7c8807}],_0x8b77f7=[{'id':_0x213947['id'],'params':_0x13669a}];return(0x0,_0xd66891[_0x108b75(0x21b)])(_0x3d2550,_0x2ab3eb)[_0x108b75(0x1a0)]?(_0x3cec2e[_0x108b75(0x232)]({'unitID':_0x1ec5a8,'undoMutations':_0x8b77f7,'redoMutations':_0x3d2550}),!0x0):!0x1;}},_0x2c2500={'type':_0xd66891[_0x33a6bb(0x281)][_0x33a6bb(0x211)],'id':_0x33a6bb(0x1c8),'handler':(_0x4ee379,_0x25faf8)=>{const _0x52eed7=_0x33a6bb;var _0x163bbd,_0x184704,_0x318086,_0x14594e;let _0x12026f=(0x0,_0x39d4d4[_0x52eed7(0x207)])(_0x4ee379['get'](_0xd66891['IUniverInstanceService']),_0x25faf8);if(!_0x12026f)return!0x1;let _0x423097=_0x4ee379[_0x52eed7(0x24e)](_0x39d4d4[_0x52eed7(0x222)]),{unitId:_0x18a63e,subUnitId:_0x22d002}=_0x12026f,_0x394c92=_0x423097[_0x52eed7(0x1d3)](_0x18a63e,_0x22d002);if(!_0x394c92)return!0x1;let _0x4c6338=_0x4ee379[_0x52eed7(0x24e)](_0x2060e2[_0x52eed7(0x1fc)]),{connectorShapeId:_0x25a087,width:_0x314053,height:_0x55fe6d,left:_0x29ae98,top:_0x432ddc,flipX:_0x2a98f2,flipY:_0xcb23c0,rotation:_0x19363d,oldAdjustValues:_0xb0485e,newAdjustValues:_0x1ff17b,oldLineType:_0x391982,newLineType:_0x469dbe,oldRelation:_0x2ba6db,newRelation:_0x3b1f1d}=_0x25faf8,_0x37490c=_0x4c6338[_0x52eed7(0x219)]({'unitId':_0x18a63e,'subUnitId':_0x22d002,'drawingId':_0x25a087});if(!_0x37490c)return!0x1;let _0x1fa5eb=_0x4ee379['get'](_0x7bf5a9)['getShapeModel'](_0x18a63e,_0x22d002,_0x25a087);if(!_0x1fa5eb)return!0x1;let _0x51fcbc=_0x4ee379[_0x52eed7(0x24e)](_0xd66891[_0x52eed7(0x237)]),_0x547abf=_0x4ee379[_0x52eed7(0x24e)](_0xd66891[_0x52eed7(0x217)]),_0x1f1efc=_0x4ee379[_0x52eed7(0x24e)](_0x39d4d4[_0x52eed7(0x1a9)]),_0x45f521={..._0x37490c[_0x52eed7(0x28a)],'width':_0x314053,'height':_0x55fe6d,'left':_0x29ae98,'top':_0x432ddc,'flipX':_0x2a98f2,'flipY':_0xcb23c0,'angle':(_0x163bbd=_0x19363d==null?(_0x184704=_0x37490c[_0x52eed7(0x28a)])==null?void 0x0:_0x184704['angle']:_0x19363d)==null?0x0:_0x163bbd},_0x377552=(0x0,_0x2060e2['transformToDrawingPosition'])(_0x45f521,_0x394c92),_0x530456=(0x0,_0x2060e2[_0x52eed7(0x1e4)])(_0x45f521,_0x394c92),_0x43d8dc=_0x1fa5eb[_0x52eed7(0x1ee)](),_0x4919fa=_0x1fa5eb['getShapeData'](),_0x4e59d1={'unitId':_0x18a63e,'subUnitId':_0x22d002,'drawingId':_0x25a087,'drawingType':_0xd66891['DrawingTypeEnum'][_0x52eed7(0x1f7)],'sheetTransform':_0x377552,'transform':_0x45f521,'data':{'shapeType':_0x469dbe||_0x391982||_0x43d8dc,'shapeData':{..._0x4919fa,'adjustValues':_0x1ff17b||_0xb0485e||(_0x4919fa==null?void 0x0:_0x4919fa['adjustValues']),'relation':_0x3b1f1d||_0x2ba6db||(_0x4919fa==null?void 0x0:_0x4919fa[_0x52eed7(0x1f0)])}},'axisAlignSheetTransform':_0x530456,'allowTransform':!0x0},{undo:_0x1c074f,redo:_0x12cb0f,objects:_0xcc8277}=_0x4c6338[_0x52eed7(0x1e8)]([_0x4e59d1]),_0x5498c4=_0x1f1efc[_0x52eed7(0x27a)]({'id':_0x2060e2[_0x52eed7(0x1ea)]['id'],'params':{'unitId':_0x18a63e,'drawings':[_0x4e59d1]}}),_0x4b5a84=[...(_0x318086=_0x5498c4[_0x52eed7(0x1a5)])==null?[]:_0x318086,{'id':_0x2060e2[_0x52eed7(0x206)]['id'],'params':{'unitId':_0x18a63e,'subUnitId':_0x22d002,'op':_0x12cb0f,'objects':_0xcc8277,'type':_0x2060e2['DrawingApplyType']['UPDATE']}},{'id':_0x2060e2[_0x52eed7(0x275)]['id'],'params':[_0x18a63e]},..._0x5498c4[_0x52eed7(0x218)],{'id':_0x213947['id'],'params':{'unitId':_0x18a63e,'subUnitId':_0x22d002,'shapeId':_0x25a087,'shapeType':_0x469dbe,'shapeData':{'adjustValues':_0x1ff17b,'relation':_0x3b1f1d}}}],_0x534966=[...(_0x14594e=_0x5498c4['preUndos'])==null?[]:_0x14594e,{'id':_0x2060e2['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x18a63e,'subUnitId':_0x22d002,'op':_0x1c074f,'objects':_0xcc8277,'type':_0x2060e2[_0x52eed7(0x210)][_0x52eed7(0x26d)]}},{'id':_0x2060e2['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x18a63e]},..._0x5498c4[_0x52eed7(0x23d)],{'id':_0x213947['id'],'params':{'unitId':_0x18a63e,'subUnitId':_0x22d002,'shapeId':_0x25a087,'shapeType':_0x43d8dc,'shapeData':{..._0x4919fa,'adjustValues':_0xb0485e||(_0x4919fa==null?void 0x0:_0x4919fa[_0x52eed7(0x289)]),'relation':_0x2ba6db||(_0x4919fa==null?void 0x0:_0x4919fa[_0x52eed7(0x1f0)])}}}];return(0x0,_0xd66891['sequenceExecute'])(_0x4b5a84,_0x51fcbc)[_0x52eed7(0x1a0)]?(_0x547abf[_0x52eed7(0x232)]({'unitID':_0x18a63e,'undoMutations':_0x534966,'redoMutations':_0x4b5a84}),!0x0):!0x1;}},_0x26b453={'type':_0xd66891[_0x33a6bb(0x281)][_0x33a6bb(0x211)],'id':_0x33a6bb(0x256),'handler':(_0x398bd7,_0x3d8110)=>{const _0x50ebfc=_0x33a6bb;var _0x4d3278,_0x53ad57;let _0xaf8d70=(0x0,_0x39d4d4['getSheetCommandTarget'])(_0x398bd7['get'](_0xd66891[_0x50ebfc(0x250)]),_0x3d8110);if(!_0xaf8d70)return!0x1;let _0x446add=_0x398bd7['get'](_0x39d4d4[_0x50ebfc(0x222)]),{unitId:_0xda5f50,subUnitId:_0x511137}=_0xaf8d70,_0x12d14c=_0x446add[_0x50ebfc(0x1d3)](_0xda5f50,_0x511137);if(!_0x12d14c)return!0x1;let _0x2d237f=_0x398bd7[_0x50ebfc(0x24e)](_0x2060e2[_0x50ebfc(0x1fc)]),{shapeId:_0x4666b7,width:_0xce8f7a,height:_0x28859,left:_0x5b2f23,top:_0xf52a1e,flipX:_0x2b3e3e,flipY:_0x4c4163,angle:_0x27dc20,oldAdjustValues:_0x313521,newAdjustValues:_0x40021f,oldLineType:_0x1cf629,newLineType:_0x2053d9}=_0x3d8110,_0x5c71ba=_0x2d237f[_0x50ebfc(0x219)]({'unitId':_0xda5f50,'subUnitId':_0x511137,'drawingId':_0x4666b7});if(!_0x5c71ba)return!0x1;let _0x4e853b=_0x398bd7[_0x50ebfc(0x24e)](_0x7bf5a9)[_0x50ebfc(0x272)](_0xda5f50,_0x511137,_0x4666b7);if(!_0x4e853b)return!0x1;let _0x1823db=_0x398bd7[_0x50ebfc(0x24e)](_0xd66891['ICommandService']),_0x59db5b=_0x398bd7[_0x50ebfc(0x24e)](_0xd66891[_0x50ebfc(0x217)]),_0x576130=_0x398bd7['get'](_0x39d4d4[_0x50ebfc(0x1a9)]),_0x17f436={..._0x5c71ba[_0x50ebfc(0x28a)],'width':_0xce8f7a,'height':_0x28859,'left':_0x5b2f23,'top':_0xf52a1e,'flipX':_0x2b3e3e,'flipY':_0x4c4163,'angle':_0x27dc20},_0x4a3e21=(0x0,_0x2060e2['transformToDrawingPosition'])(_0x17f436,_0x12d14c),_0x2b0be7=(0x0,_0x2060e2[_0x50ebfc(0x1e4)])(_0x17f436,_0x12d14c),_0x2900d9=_0x4e853b[_0x50ebfc(0x1ee)](),_0x17c64d=_0x4e853b[_0x50ebfc(0x1a7)](),_0x1efd69={'unitId':_0xda5f50,'subUnitId':_0x511137,'drawingId':_0x4666b7,'drawingType':_0xd66891['DrawingTypeEnum'][_0x50ebfc(0x1f7)],'sheetTransform':_0x4a3e21,'transform':_0x17f436,'data':{'shapeType':_0x2053d9||_0x1cf629||_0x2900d9,'shapeData':{..._0x17c64d,'adjustValues':_0x40021f||_0x313521||(_0x17c64d==null?void 0x0:_0x17c64d[_0x50ebfc(0x289)])}},'axisAlignSheetTransform':_0x2b0be7,'allowTransform':!0x0},{undo:_0x3b01d1,redo:_0x802f13,objects:_0x5bfd61}=_0x2d237f[_0x50ebfc(0x1e8)]([_0x1efd69]),_0x6f6e34=_0x576130['onCommandExecute']({'id':_0x2060e2[_0x50ebfc(0x1ea)]['id'],'params':{'unitId':_0xda5f50,'drawings':[_0x1efd69]}}),_0x3526c2=[...(_0x4d3278=_0x6f6e34[_0x50ebfc(0x1a5)])==null?[]:_0x4d3278,{'id':_0x2060e2[_0x50ebfc(0x206)]['id'],'params':{'unitId':_0xda5f50,'subUnitId':_0x511137,'op':_0x802f13,'objects':_0x5bfd61,'type':_0x2060e2[_0x50ebfc(0x210)][_0x50ebfc(0x26d)]}},{'id':_0x2060e2[_0x50ebfc(0x275)]['id'],'params':[_0xda5f50]},..._0x6f6e34[_0x50ebfc(0x218)],{'id':_0x213947['id'],'params':{'unitId':_0xda5f50,'subUnitId':_0x511137,'shapeId':_0x4666b7,'shapeType':_0x2053d9,'shapeData':{'adjustValues':_0x40021f}}}],_0x1f23f7=[...(_0x53ad57=_0x6f6e34['preUndos'])==null?[]:_0x53ad57,{'id':_0x2060e2['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xda5f50,'subUnitId':_0x511137,'op':_0x3b01d1,'objects':_0x5bfd61,'type':_0x2060e2['DrawingApplyType']['UPDATE']}},{'id':_0x2060e2['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xda5f50]},..._0x6f6e34['undos'],{'id':_0x213947['id'],'params':{'unitId':_0xda5f50,'subUnitId':_0x511137,'shapeId':_0x4666b7,'shapeType':_0x2900d9,'shapeData':{..._0x17c64d,'adjustValues':_0x313521||(_0x17c64d==null?void 0x0:_0x17c64d[_0x50ebfc(0x289)])}}}];return(0x0,_0xd66891['sequenceExecute'])(_0x3526c2,_0x1823db)['result']?(_0x59db5b[_0x50ebfc(0x232)]({'unitID':_0xda5f50,'undoMutations':_0x1f23f7,'redoMutations':_0x3526c2}),!0x0):!0x1;}},_0x4bf935={'id':_0x33a6bb(0x1f1),'type':_0xd66891[_0x33a6bb(0x281)]['MUTATION'],'handler':(_0x7e1c94,_0x573af3)=>{const _0x8dbf52=_0x33a6bb;let {unitId:_0x3af303,subUnitId:_0x83058d,shapeType:_0x4dc8ff,shapeId:_0x575b04,shapeData:_0x37aa25}=_0x573af3,_0x32fabb=_0x7e1c94[_0x8dbf52(0x24e)](_0x7bf5a9)['getShapeModel'](_0x3af303,_0x83058d,_0x575b04);return _0x32fabb&&(_0x32fabb[_0x8dbf52(0x285)](_0x4dc8ff),_0x37aa25&&(_0x32fabb==null||_0x32fabb[_0x8dbf52(0x251)](_0x37aa25))),!0x0;}};var _0x31f9c4=_0x33a6bb(0x20b),_0x275639=_0x33a6bb(0x20d);let _0x2b540b=class{constructor(_0x5410aa,_0xcfbb38,_0x3e5e85){const _0x3affb4=_0x33a6bb;this[_0x3affb4(0x279)]=_0x5410aa,this[_0x3affb4(0x1af)]=_0xcfbb38,this[_0x3affb4(0x244)]=_0x3e5e85,_0x5a1628(this,'hostType',_0xd66891[_0x3affb4(0x26b)][_0x3affb4(0x27f)]);}['getShape'](_0x48609f){const _0x28f462=_0x33a6bb;var _0x5d3cdc,_0x35e19a,_0x1f884c,_0x5d22ab,_0x5f36f0,_0x5c0946,_0x26e37f,_0x249a70,_0x456f28;let _0x2e03bf=(_0x5d3cdc=this[_0x28f462(0x244)][_0x28f462(0x1ca)](_0x48609f['unitId'],_0x48609f[_0x28f462(0x1e2)]))==null?void 0x0:_0x5d3cdc[_0x48609f[_0x28f462(0x1d9)]],_0x3f3923=this[_0x28f462(0x1af)]['getShapeType'](_0x48609f[_0x28f462(0x23f)],_0x48609f[_0x28f462(0x1e2)],_0x48609f[_0x28f462(0x1d9)]);if(!_0x2e03bf||_0x2e03bf['drawingType']!==_0xd66891[_0x28f462(0x1bc)][_0x28f462(0x1f7)]||!_0x3f3923)return null;let _0x514e15=_0x2e03bf[_0x28f462(0x28a)];return{..._0x48609f,'shapeType':_0x3f3923,'shapeData':_0xd66891[_0x28f462(0x27c)][_0x28f462(0x215)]((_0x35e19a=this[_0x28f462(0x1af)][_0x28f462(0x1c0)](_0x48609f[_0x28f462(0x23f)],_0x48609f['subUnitId'],_0x48609f[_0x28f462(0x1d9)]))==null?{}:_0x35e19a),'name':_0x2e03bf['name'],'description':_0x2e03bf['description'],'visible':_0x2e03bf['hidden']!==!0x0,'selectable':_0x2e03bf[_0x28f462(0x1a8)]!==!0x1,'transform':{'left':(_0x1f884c=_0x514e15==null?void 0x0:_0x514e15[_0x28f462(0x254)])==null?0x0:_0x1f884c,'top':(_0x5d22ab=_0x514e15==null?void 0x0:_0x514e15['top'])==null?0x0:_0x5d22ab,'width':(_0x5f36f0=_0x514e15==null?void 0x0:_0x514e15[_0x28f462(0x265)])==null?0xc8:_0x5f36f0,'height':(_0x5c0946=_0x514e15==null?void 0x0:_0x514e15[_0x28f462(0x1b4)])==null?0xc8:_0x5c0946,'rotation':(_0x26e37f=_0x514e15==null?void 0x0:_0x514e15[_0x28f462(0x27d)])==null?0x0:_0x26e37f,'flipX':(_0x249a70=_0x514e15==null?void 0x0:_0x514e15['flipX'])==null?!0x1:_0x249a70,'flipY':(_0x456f28=_0x514e15==null?void 0x0:_0x514e15[_0x28f462(0x1d5)])==null?!0x1:_0x456f28}};}[_0x33a6bb(0x27b)](_0x304510){const _0x5929af=_0x33a6bb;var _0x546dfe;let _0x469d9d=(_0x546dfe=this[_0x5929af(0x244)][_0x5929af(0x1ca)](_0x304510[_0x5929af(0x23f)],_0x304510['subUnitId']))==null?{}:_0x546dfe;return Object[_0x5929af(0x1e0)](_0x469d9d)[_0x5929af(0x20f)](_0x3096f7=>(_0x3096f7==null?void 0x0:_0x3096f7[_0x5929af(0x1a6)])===_0xd66891[_0x5929af(0x1bc)][_0x5929af(0x1f7)])['map'](_0x5be529=>this['getShape']({..._0x304510,'shapeId':_0x5be529[_0x5929af(0x1c1)]}))[_0x5929af(0x20f)](_0x5607f9=>!!_0x5607f9);}['createShape'](_0x48da88,_0x2f2652){const _0x4bcd18=_0x33a6bb;var _0x30c671,_0x105401,_0x598ab8,_0x3722be,_0x287a3b,_0x3909ed,_0xe4a936,_0x527a2e,_0x2964a9,_0x3e707d,_0x6adcb5,_0xc2b0a4,_0x143eea,_0xec6c9b,_0x9d1b56,_0x20ca8f,_0x30650d,_0x53ee2b,_0x17516f;let _0x433c39=(0x0,_0xd66891['generateRandomId'])(),_0x22dde0={'left':(_0x30c671=(_0x105401=_0x2f2652[_0x4bcd18(0x28a)])==null?void 0x0:_0x105401['left'])==null?0x0:_0x30c671,'top':(_0x598ab8=(_0x3722be=_0x2f2652[_0x4bcd18(0x28a)])==null?void 0x0:_0x3722be[_0x4bcd18(0x24c)])==null?0x0:_0x598ab8,'width':(_0x287a3b=(_0x3909ed=_0x2f2652['transform'])==null?void 0x0:_0x3909ed[_0x4bcd18(0x265)])==null?0xc8:_0x287a3b,'height':(_0xe4a936=(_0x527a2e=_0x2f2652[_0x4bcd18(0x28a)])==null?void 0x0:_0x527a2e[_0x4bcd18(0x1b4)])==null?0xc8:_0xe4a936,'rotation':(_0x2964a9=(_0x3e707d=_0x2f2652[_0x4bcd18(0x28a)])==null?void 0x0:_0x3e707d[_0x4bcd18(0x28b)])==null?0x0:_0x2964a9,'flipX':(_0x6adcb5=(_0xc2b0a4=_0x2f2652[_0x4bcd18(0x28a)])==null?void 0x0:_0xc2b0a4[_0x4bcd18(0x280)])==null?!0x1:_0x6adcb5,'flipY':(_0x143eea=(_0xec6c9b=_0x2f2652[_0x4bcd18(0x28a)])==null?void 0x0:_0xec6c9b[_0x4bcd18(0x1d5)])==null?!0x1:_0x143eea};return this[_0x4bcd18(0x279)][_0x4bcd18(0x273)](_0x34b477['id'],{'unitId':_0x48da88[_0x4bcd18(0x23f)],'subUnitId':_0x48da88[_0x4bcd18(0x1e2)],'shapeId':_0x433c39,'shapeType':_0x2f2652[_0x4bcd18(0x1ef)],'shapeData':_0x2f2652['shapeData'],'name':_0x2f2652[_0x4bcd18(0x1cb)],'description':_0x2f2652[_0x4bcd18(0x288)],'position':{'x':_0x22dde0[_0x4bcd18(0x254)],'y':_0x22dde0[_0x4bcd18(0x24c)]},'width':_0x22dde0['width'],'height':_0x22dde0[_0x4bcd18(0x1b4)],'rotation':_0x22dde0['rotation'],'flipX':_0x22dde0[_0x4bcd18(0x280)],'flipY':_0x22dde0['flipY'],'visible':(_0x9d1b56=_0x2f2652[_0x4bcd18(0x26a)])==null?!0x0:_0x9d1b56,'selectable':(_0x20ca8f=_0x2f2652[_0x4bcd18(0x1a8)])==null?!0x0:_0x20ca8f})?{..._0x48da88,'shapeId':_0x433c39,'shapeType':_0x2f2652[_0x4bcd18(0x1ef)],'shapeData':_0xd66891['Tools']['deepClone']((_0x30650d=_0x2f2652[_0x4bcd18(0x225)])==null?{}:_0x30650d),'name':_0x2f2652[_0x4bcd18(0x1cb)],'description':_0x2f2652[_0x4bcd18(0x288)],'visible':(_0x53ee2b=_0x2f2652[_0x4bcd18(0x26a)])==null?!0x0:_0x53ee2b,'selectable':(_0x17516f=_0x2f2652[_0x4bcd18(0x1a8)])==null?!0x0:_0x17516f,'transform':_0x22dde0}:null;}['updateShape'](_0x278f7a,_0x3212ba){const _0xa43260=_0x33a6bb;var _0x469a80,_0x2d1eb9,_0x3a4963,_0x3d14dd,_0x46e51a,_0x20809b;let _0x32b9ca=this[_0xa43260(0x268)](_0x278f7a);if(!_0x32b9ca)return!0x1;let _0x4b3a16={..._0x32b9ca[_0xa43260(0x28a)],..._0x3212ba[_0xa43260(0x28a)]};return this[_0xa43260(0x279)][_0xa43260(0x273)](_0x1568be['id'],{'unitId':_0x278f7a[_0xa43260(0x23f)],'subUnitId':_0x278f7a[_0xa43260(0x1e2)],'shapeId':_0x278f7a[_0xa43260(0x1d9)],'shapeType':(_0x469a80=(_0x2d1eb9=_0x3212ba[_0xa43260(0x1ef)])==null?(_0x3a4963=_0x3212ba[_0xa43260(0x225)])==null?void 0x0:_0x3a4963[_0xa43260(0x1ef)]:_0x2d1eb9)==null?_0x32b9ca[_0xa43260(0x1ef)]:_0x469a80,'shapeData':(_0x3d14dd=_0x3212ba['shapeData'])==null?_0x32b9ca['shapeData']:_0x3d14dd,'position':{'x':_0x4b3a16[_0xa43260(0x254)],'y':_0x4b3a16['top']},'width':_0x4b3a16[_0xa43260(0x265)],'height':_0x4b3a16[_0xa43260(0x1b4)],'rotation':_0x4b3a16[_0xa43260(0x28b)],'flipX':_0x4b3a16[_0xa43260(0x280)],'flipY':_0x4b3a16[_0xa43260(0x1d5)],'name':'name'in _0x3212ba?_0x3212ba[_0xa43260(0x1cb)]:_0x32b9ca['name'],'description':_0xa43260(0x288)in _0x3212ba?_0x3212ba[_0xa43260(0x288)]:_0x32b9ca['description'],'visible':(_0x46e51a=_0x3212ba[_0xa43260(0x26a)])==null?_0x32b9ca['visible']:_0x46e51a,'selectable':(_0x20809b=_0x3212ba[_0xa43260(0x1a8)])==null?_0x32b9ca[_0xa43260(0x1a8)]:_0x20809b});}['removeShape'](_0x30dc01){const _0x5a032e=_0x33a6bb;return this[_0x5a032e(0x279)][_0x5a032e(0x273)](_0x2060e2['RemoveSheetDrawingCommand']['id'],{'unitId':_0x30dc01[_0x5a032e(0x23f)],'drawings':[{'unitId':_0x30dc01[_0x5a032e(0x23f)],'subUnitId':_0x30dc01[_0x5a032e(0x1e2)],'drawingId':_0x30dc01[_0x5a032e(0x1d9)],'drawingType':_0xd66891[_0x5a032e(0x1bc)][_0x5a032e(0x1f7)]}]});}[_0x33a6bb(0x1f2)](_0x43f31d){const _0x3f86f7=_0x33a6bb;return this['_arrange'](_0x43f31d,_0xd66891[_0x3f86f7(0x284)][_0x3f86f7(0x200)]);}[_0x33a6bb(0x1cc)](_0x54025a){const _0x2f942f=_0x33a6bb;return this[_0x2f942f(0x1d8)](_0x54025a,_0xd66891[_0x2f942f(0x284)][_0x2f942f(0x236)]);}[_0x33a6bb(0x19d)](_0x5ee9af){const _0xcedb41=_0x33a6bb;return this[_0xcedb41(0x1d8)](_0x5ee9af,_0xd66891[_0xcedb41(0x284)][_0xcedb41(0x1f9)]);}[_0x33a6bb(0x286)](_0x421b89){const _0x34e1d5=_0x33a6bb;return this[_0x34e1d5(0x1d8)](_0x421b89,_0xd66891[_0x34e1d5(0x284)][_0x34e1d5(0x25b)]);}[_0x33a6bb(0x1d8)](_0x116284,_0x4562a7){const _0x303a48=_0x33a6bb;return this['_commandService'][_0x303a48(0x273)](_0x2060e2[_0x303a48(0x1c3)]['id'],{'unitId':_0x116284[_0x303a48(0x23f)],'subUnitId':_0x116284[_0x303a48(0x1e2)],'drawingIds':[_0x116284[_0x303a48(0x1d9)]],'arrangeType':_0x4562a7});}};_0x2b540b=_0x12e0b9([_0x1123ad(0x0,_0xd66891[_0x33a6bb(0x237)]),_0x1123ad(0x1,(0x0,_0xd66891[_0x33a6bb(0x1df)])(_0x7bf5a9)),_0x1123ad(0x2,_0x2060e2[_0x33a6bb(0x1fc)])],_0x2b540b);let _0x19325c={},_0xee5443=class extends _0xd66891['Disposable']{constructor(_0x24289e,_0x3c732c,_0x814ef8,_0x5a97be,_0x550b0e,_0x4d409b,_0x1bd074){const _0x3e31c5=_0x33a6bb;super(),this[_0x3e31c5(0x279)]=_0x24289e,this[_0x3e31c5(0x21f)]=_0x3c732c,this[_0x3e31c5(0x20e)]=_0x814ef8,this['_sheetsShapeService']=_0x5a97be,this[_0x3e31c5(0x239)]=_0x550b0e,this[_0x3e31c5(0x1ce)]=_0x4d409b,this['_initCommands'](),this[_0x3e31c5(0x22d)](),this['disposeWithMe'](this['_shapeHostAdapterRegistry'][_0x3e31c5(0x1e9)](_0x1bd074));}[_0x33a6bb(0x1c4)](){const _0xea287b=_0x33a6bb;[_0x34b477,_0x1568be,_0x369e8f,_0x3a09d0,_0xd50c12,_0x2c2500,_0x26b453,_0xac8f76,_0x177a6b,_0x4bf935,_0x213947][_0xea287b(0x1ff)](_0x366707=>this[_0xea287b(0x19c)](this[_0xea287b(0x279)][_0xea287b(0x1c7)](_0x366707)));}['_initCommandInterceptor'](){const _0x12ef49=_0x33a6bb;this['disposeWithMe'](this[_0x12ef49(0x21f)][_0x12ef49(0x212)]({'getMutations':_0x1e1f13=>{const _0x206131=_0x12ef49;if(_0x1e1f13['id']===_0x2060e2[_0x206131(0x1f4)]['id']){let {drawings:_0x386c2a}=_0x1e1f13['params'],_0x59ade1=_0x386c2a[_0x206131(0x20f)](_0x57866b=>_0x57866b[_0x206131(0x1a6)]===_0xd66891[_0x206131(0x1bc)]['DRAWING_SHAPE']);if(_0x59ade1[_0x206131(0x1d0)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4d98a8=[],_0x230c69=[];return _0x59ade1['forEach'](_0x5a2b05=>{const _0x560cc6=_0x206131;let {unitId:_0x41fd08,subUnitId:_0x19d128,drawingId:_0x4b64ac}=_0x5a2b05,_0x25cbcb=this['_sheetsShapeService'][_0x560cc6(0x272)](_0x41fd08,_0x19d128,_0x4b64ac);if(!_0x25cbcb)throw TypeError(_0x560cc6(0x196)+_0x25cbcb);_0x4d98a8[_0x560cc6(0x25c)]({'id':_0x177a6b['id'],'params':{'unitId':_0x41fd08,'subUnitId':_0x19d128,'shapeId':_0x4b64ac}}),_0x230c69[_0x560cc6(0x25c)]({'id':_0xac8f76['id'],'params':{'unitId':_0x41fd08,'subUnitId':_0x19d128,'shapeId':_0x4b64ac,'shapeType':_0x25cbcb[_0x560cc6(0x1ee)](),'shapeData':_0x25cbcb[_0x560cc6(0x1a7)]()}});let _0x59e108=this[_0x560cc6(0x209)][_0x560cc6(0x1d1)](_0x41fd08,_0x19d128,_0x4b64ac);if(_0x59e108)for(let _0x1ff248 of _0x59e108){let _0xe714d2=_0x1ff248[_0x560cc6(0x269)],_0x107b32=_0x1ff248[_0x560cc6(0x1b2)],_0x409a20=_0x107b32?{'from':void 0x0}:{'to':void 0x0},_0x29092b=_0x107b32?{'from':{'shapeId':_0x1ff248[_0x560cc6(0x1d9)],'cxnIndex':_0x1ff248[_0x560cc6(0x19f)]}}:{'to':{'shapeId':_0x1ff248['shapeId'],'cxnIndex':_0x1ff248['cxnIndex']}};_0x4d98a8['push']({'id':_0x213947['id'],'params':{'unitId':_0x41fd08,'subUnitId':_0x19d128,'shapeId':_0xe714d2,'shapeData':{'relation':_0x409a20}}}),_0x230c69[_0x560cc6(0x25c)]({'id':_0x213947['id'],'params':{'unitId':_0x41fd08,'subUnitId':_0x19d128,'shapeId':_0xe714d2,'shapeData':{'relation':_0x29092b}}});}}),{'preRedos':_0x4d98a8,'redos':[],'preUndos':[],'undos':_0x230c69};}if(_0x1e1f13['id']===_0x2060e2['SetSheetDrawingCommand']['id']){let {drawings:_0x524d7a}=_0x1e1f13[_0x206131(0x195)],_0x1563a2=_0x524d7a[_0x206131(0x20f)](_0x214d06=>_0x214d06[_0x206131(0x1a6)]===_0xd66891['DrawingTypeEnum'][_0x206131(0x1f7)]);if(_0x1563a2[_0x206131(0x1d0)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x450a08=[],_0x5bddbf=[];for(let _0x54d476 of _0x1563a2){let {unitId:_0x192177,subUnitId:_0x2e20f1,drawingId:_0x3ca489,transform:_0x3e0024}=_0x54d476;if(!_0x192177||!_0x2e20f1||!_0x3ca489||!_0x3e0024)continue;let _0x1d895b=this[_0x206131(0x209)][_0x206131(0x272)](_0x192177,_0x2e20f1,_0x3ca489);if(!_0x1d895b)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x1d895b);if((0x0,_0x562947[_0x206131(0x229)])(_0x1d895b[_0x206131(0x1ee)]())){let _0x86742=this['_sheetsShapeService'][_0x206131(0x202)](_0x192177,_0x2e20f1,_0x3ca489);_0x86742&&(_0x450a08[_0x206131(0x25c)]({'id':_0x213947['id'],'params':{'unitId':_0x192177,'subUnitId':_0x2e20f1,'shapeId':_0x3ca489,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x5bddbf[_0x206131(0x25c)]({'id':_0x213947['id'],'params':{'unitId':_0x192177,'subUnitId':_0x2e20f1,'shapeId':_0x3ca489,'shapeData':{'relation':_0x86742}}}));}else{let _0x2c4528=this[_0x206131(0x209)][_0x206131(0x1d1)](_0x192177,_0x2e20f1,_0x3ca489);if(_0x2c4528&&_0x2c4528[_0x206131(0x1d0)]>0x0)for(let _0x4fd947 of _0x2c4528){let _0x589092=_0x4fd947['lineShapeId'],_0x458508=_0x4fd947[_0x206131(0x1b2)],_0x4d3aa4=this[_0x206131(0x209)]['getShapeModel'](_0x192177,_0x2e20f1,_0x589092);if(!_0x4d3aa4)continue;let _0x1e3dc4=_0x4d3aa4['getStartConnectInfo'](),_0x5f4711=_0x4d3aa4[_0x206131(0x264)]();_0x1e3dc4&&_0x5f4711?this[_0x206131(0x1bf)](_0x192177,_0x2e20f1,_0x589092,_0x4d3aa4,_0x1e3dc4,_0x5f4711,_0x450a08,_0x5bddbf,_0x3ca489,_0x3e0024):this[_0x206131(0x26e)](_0x192177,_0x2e20f1,_0x589092,_0x4d3aa4,_0x458508?_0x1e3dc4:_0x5f4711,_0x458508,_0x450a08,_0x5bddbf,_0x3ca489,_0x3e0024);}}}return{'preRedos':[],'redos':_0x450a08,'preUndos':_0x5bddbf,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x33a6bb(0x234)](_0x141c00,_0x3f4cf5,_0x4a483d,_0x2680a2,_0x23ce49){const _0x317f20=_0x33a6bb;if(!_0x3f4cf5||!_0x4a483d)return null;let {shapeId:_0x1cab76,cxnIndex:_0xfd0992}=_0x141c00,_0x7b9dce=this[_0x317f20(0x209)]['getShapeModel'](_0x3f4cf5,_0x4a483d,_0x1cab76);if(!_0x7b9dce)return null;let _0x21b0be=this[_0x317f20(0x239)][_0x317f20(0x219)]({'unitId':_0x3f4cf5,'subUnitId':_0x4a483d,'drawingId':_0x1cab76});if(!(_0x21b0be!=null&&_0x21b0be[_0x317f20(0x28a)]))return null;let {left:_0x4a69a3=0x0,top:_0x40e4b7=0x0,width:_0x1d7108=0x0,height:_0x36034e=0x0,flipX:_0x32fa1d=!0x1,flipY:_0x4b15bd=!0x1,angle:_0x76e99a}=_0x21b0be['transform'];if(_0x23ce49&&_0x2680a2===_0x1cab76){var _0x151720,_0x1c944b,_0x24ba96,_0x4cb7ed,_0x10b2fa,_0x3ca276,_0x16adbe;_0x4a69a3=(_0x151720=_0x23ce49[_0x317f20(0x254)])==null?_0x4a69a3:_0x151720,_0x40e4b7=(_0x1c944b=_0x23ce49['top'])==null?_0x40e4b7:_0x1c944b,_0x1d7108=(_0x24ba96=_0x23ce49['width'])==null?_0x1d7108:_0x24ba96,_0x36034e=(_0x4cb7ed=_0x23ce49['height'])==null?_0x36034e:_0x4cb7ed,_0x32fa1d=(_0x10b2fa=_0x23ce49['flipX'])==null?_0x32fa1d:_0x10b2fa,_0x4b15bd=(_0x3ca276=_0x23ce49['flipY'])==null?_0x4b15bd:_0x3ca276,_0x76e99a=(_0x16adbe=_0x23ce49['angle'])==null?_0x76e99a:_0x16adbe;}_0x7b9dce[_0x317f20(0x1ac)]({'width':_0x1d7108,'height':_0x36034e});let _0x1e7b17=_0x7b9dce[_0x317f20(0x252)]()[_0x317f20(0x1d4)](_0x34679f=>_0x34679f[_0x317f20(0x1e5)]===_0xfd0992);if(!_0x1e7b17)return null;let _0x580f86=_0x32fa1d?_0x1d7108-_0x1e7b17['x']:_0x1e7b17['x'],_0x25f2e0=_0x4b15bd?_0x36034e-_0x1e7b17['y']:_0x1e7b17['y'];if(_0x76e99a!==0x0&&_0x76e99a!=null){let _0x26bacb=_0x76e99a*Math['PI']/0xb4,_0x54aa73=Math[_0x317f20(0x19b)](_0x26bacb),_0x58181d=Math[_0x317f20(0x220)](_0x26bacb),_0x5768ff=_0x1d7108/0x2,_0x45a3e2=_0x36034e/0x2,_0x4b238f=_0x580f86-_0x5768ff,_0x16998d=_0x25f2e0-_0x45a3e2;_0x580f86=_0x5768ff+_0x4b238f*_0x54aa73-_0x16998d*_0x58181d,_0x25f2e0=_0x45a3e2+_0x4b238f*_0x58181d+_0x16998d*_0x54aa73;}_0x580f86+=_0x4a69a3,_0x25f2e0+=_0x40e4b7;let _0x277f8f=_0x1e7b17[_0x317f20(0x227)]/0xea60;_0x32fa1d&&(_0x277f8f=0xb4-_0x277f8f),_0x4b15bd&&(_0x277f8f=-_0x277f8f),_0x277f8f+=_0x76e99a||0x0,_0x277f8f=(_0x277f8f%0x168+0x168)%0x168;let _0x259ce7=(0x0,_0x562947[_0x317f20(0x1fa)])({'left':_0x4a69a3,'top':_0x40e4b7,'width':_0x1d7108,'height':_0x36034e},_0x76e99a||0x0);return{'point':{'x':_0x580f86,'y':_0x25f2e0},'angle':_0x277f8f,'bounds':_0x259ce7};}[_0x33a6bb(0x1bf)](_0x19fe6e,_0x3afb85,_0x2a25f8,_0x501c1d,_0x7295fb,_0x3e8413,_0x59f1e8,_0x40c1a6,_0x538f97,_0x1d4fa5){const _0x4db6f0=_0x33a6bb;let _0x416050=this[_0x4db6f0(0x20e)][_0x4db6f0(0x1d3)](_0x19fe6e,_0x3afb85);if(!_0x416050)return;let _0x694872=_0x501c1d[_0x4db6f0(0x248)](),_0x255c5a=_0x501c1d[_0x4db6f0(0x1a4)](),_0x2a7c75={},_0x508787={};_0x255c5a[_0x4db6f0(0x1ff)](_0x37c5d2=>{const _0x133b2e=_0x4db6f0;let _0x26c8ff=_0x501c1d[_0x133b2e(0x21d)](_0x37c5d2);_0x508787[_0x37c5d2]=_0x26c8ff==null?0x0:_0x26c8ff;});let _0x32b0a1=this[_0x4db6f0(0x234)](_0x7295fb,_0x19fe6e,_0x3afb85,_0x538f97,_0x1d4fa5),_0x34f750=this[_0x4db6f0(0x234)](_0x3e8413,_0x19fe6e,_0x3afb85,_0x538f97,_0x1d4fa5);if(_0x32b0a1&&_0x34f750){let _0x59496a=_0x501c1d['getShapeType'](),_0x399fef=(0x0,_0x562947[_0x4db6f0(0x1ab)])(_0x32b0a1,_0x34f750,_0x59496a),_0x3b8fb0=_0x59496a;if(_0x399fef){let _0x48713e=(0x0,_0x562947[_0x4db6f0(0x230)])(_0x399fef,_0x501c1d['getShapeType']()),_0x197e88=this[_0x4db6f0(0x239)][_0x4db6f0(0x1ca)](_0x19fe6e,_0x3afb85);if(_0x197e88&&_0x197e88[_0x2a25f8]){let _0x22581e=_0x197e88[_0x2a25f8];_0x3b8fb0=_0x48713e[_0x4db6f0(0x205)];for(let [_0x43383a,_0x45fc1a]of Object[_0x4db6f0(0x245)](_0x48713e['adjustValues']))_0x2a7c75[_0x43383a]=_0x45fc1a;let _0x4e2821={..._0x22581e['transform'],'width':_0x48713e[_0x4db6f0(0x1fe)][_0x4db6f0(0x265)],'height':_0x48713e[_0x4db6f0(0x1fe)][_0x4db6f0(0x1b4)],'left':_0x48713e[_0x4db6f0(0x1fe)][_0x4db6f0(0x254)],'top':_0x48713e['worldRect'][_0x4db6f0(0x24c)],'flipX':_0x48713e[_0x4db6f0(0x1fe)][_0x4db6f0(0x280)],'flipY':_0x48713e['worldRect'][_0x4db6f0(0x1d5)],'angle':_0x48713e[_0x4db6f0(0x28b)]},_0x2e4a51=(0x0,_0x2060e2[_0x4db6f0(0x1e1)])(_0x4e2821,_0x416050),_0x5d9b04=(0x0,_0x2060e2[_0x4db6f0(0x1e4)])(_0x4e2821,_0x416050),_0xd29a4d={'unitId':_0x19fe6e,'subUnitId':_0x3afb85,'drawingType':_0xd66891[_0x4db6f0(0x1bc)][_0x4db6f0(0x1f7)],'drawingId':_0x2a25f8,'transform':_0x4e2821,'sheetTransform':_0x2e4a51,'axisAlignSheetTransform':_0x5d9b04},{unitId:_0x38afbd,subUnitId:_0x59740a,undo:_0x35a222,redo:_0x36515c,objects:_0x39e280}=this['_drawingManagerService'][_0x4db6f0(0x1e8)]([_0xd29a4d]);_0x59f1e8['push']({'id':_0x2060e2[_0x4db6f0(0x206)]['id'],'params':{'unitId':_0x38afbd,'subUnitId':_0x59740a,'op':_0x36515c,'objects':_0x39e280,'type':_0x2060e2[_0x4db6f0(0x210)][_0x4db6f0(0x26d)]}}),_0x40c1a6['push']({'id':_0x2060e2[_0x4db6f0(0x206)]['id'],'params':{'unitId':_0x38afbd,'subUnitId':_0x59740a,'op':_0x35a222,'objects':_0x39e280,'type':_0x2060e2[_0x4db6f0(0x210)][_0x4db6f0(0x26d)]}});}_0x501c1d[_0x4db6f0(0x223)]();}_0x59f1e8[_0x4db6f0(0x25c)]({'id':_0x213947['id'],'params':{'unitId':_0x19fe6e,'subUnitId':_0x3afb85,'shapeId':_0x2a25f8,'shapeType':_0x3b8fb0,'shapeData':{'adjustValues':_0x2a7c75,'relation':_0x694872}}}),_0x40c1a6[_0x4db6f0(0x25c)]({'id':_0x213947['id'],'params':{'unitId':_0x19fe6e,'subUnitId':_0x3afb85,'shapeId':_0x2a25f8,'shapeType':_0x59496a,'shapeData':{'adjustValues':_0x508787,'relation':_0x694872}}});}}[_0x33a6bb(0x26e)](_0xc2b81f,_0x18e15c,_0x5dcba0,_0x413c0a,_0x504425,_0x1b3719,_0x2376f8,_0x449a99,_0x18da50,_0x2f94b9){const _0x37f47b=_0x33a6bb;var _0x58ce2a;if(!_0x504425)return;let _0x126fdb=this[_0x37f47b(0x20e)]['getSkeleton'](_0xc2b81f,_0x18e15c);if(!_0x126fdb)return;let _0x419400=(_0x58ce2a=this[_0x37f47b(0x239)][_0x37f47b(0x219)]({'unitId':_0xc2b81f,'subUnitId':_0x18e15c,'drawingId':_0x18da50}))==null?void 0x0:_0x58ce2a[_0x37f47b(0x28a)];if(!_0x419400)return;let _0x15a528=_0x419400[_0x37f47b(0x254)]!==_0x2f94b9['left']||_0x419400[_0x37f47b(0x24c)]!==_0x2f94b9[_0x37f47b(0x24c)],_0x1544bb=_0x419400[_0x37f47b(0x265)]!==_0x2f94b9[_0x37f47b(0x265)]||_0x419400[_0x37f47b(0x1b4)]!==_0x2f94b9[_0x37f47b(0x1b4)],_0xe20f67=_0x419400[_0x37f47b(0x280)]!==_0x2f94b9[_0x37f47b(0x280)]||_0x419400['flipY']!==_0x2f94b9[_0x37f47b(0x1d5)],_0x4d0836=_0x419400[_0x37f47b(0x27d)]!==_0x2f94b9[_0x37f47b(0x27d)];if(_0x15a528&&!_0x1544bb&&!_0xe20f67&&!_0x4d0836){var _0x499607,_0x52e9f3,_0x6ec3e3,_0x5618ef;let _0xb7a7dc=((_0x499607=_0x2f94b9[_0x37f47b(0x254)])==null?0x0:_0x499607)-((_0x52e9f3=_0x419400['left'])==null?0x0:_0x52e9f3),_0x176087=((_0x6ec3e3=_0x2f94b9['top'])==null?0x0:_0x6ec3e3)-((_0x5618ef=_0x419400[_0x37f47b(0x24c)])==null?0x0:_0x5618ef),_0x4d64b9=this[_0x37f47b(0x239)][_0x37f47b(0x1ca)](_0xc2b81f,_0x18e15c);if(_0x4d64b9&&_0x4d64b9[_0x5dcba0]){var _0x2dfa3a,_0x4900d6,_0x900c66,_0x5ac9a0;let _0x22ac40=_0x4d64b9[_0x5dcba0],_0x3cbf89={..._0x22ac40['transform'],'left':((_0x2dfa3a=(_0x4900d6=_0x22ac40[_0x37f47b(0x28a)])==null?void 0x0:_0x4900d6[_0x37f47b(0x254)])==null?0x0:_0x2dfa3a)+_0xb7a7dc,'top':((_0x900c66=(_0x5ac9a0=_0x22ac40['transform'])==null?void 0x0:_0x5ac9a0['top'])==null?0x0:_0x900c66)+_0x176087},_0x35c014=(0x0,_0x2060e2[_0x37f47b(0x1e1)])(_0x3cbf89,_0x126fdb),_0x2e3920=(0x0,_0x2060e2['transformToAxisAlignPosition'])(_0x3cbf89,_0x126fdb),_0x5d03c8={'unitId':_0xc2b81f,'subUnitId':_0x18e15c,'drawingType':_0xd66891[_0x37f47b(0x1bc)][_0x37f47b(0x1f7)],'drawingId':_0x5dcba0,'transform':_0x3cbf89,'sheetTransform':_0x35c014,'axisAlignSheetTransform':_0x2e3920},{unitId:_0x553f2a,subUnitId:_0x52738f,undo:_0x3fab78,redo:_0x566b7b,objects:_0x2fabfa}=this[_0x37f47b(0x239)][_0x37f47b(0x1e8)]([_0x5d03c8]);_0x2376f8[_0x37f47b(0x25c)]({'id':_0x2060e2[_0x37f47b(0x206)]['id'],'params':{'unitId':_0x553f2a,'subUnitId':_0x52738f,'op':_0x566b7b,'objects':_0x2fabfa,'type':_0x2060e2['DrawingApplyType'][_0x37f47b(0x26d)]}}),_0x449a99[_0x37f47b(0x25c)]({'id':_0x2060e2[_0x37f47b(0x206)]['id'],'params':{'unitId':_0x553f2a,'subUnitId':_0x52738f,'op':_0x3fab78,'objects':_0x2fabfa,'type':_0x2060e2[_0x37f47b(0x210)][_0x37f47b(0x26d)]}});}}else{let _0x2f833b=_0x413c0a['getStartConnectInfo'](),_0x57806a=_0x413c0a['getEndConnectInfo']();this[_0x37f47b(0x1bf)](_0xc2b81f,_0x18e15c,_0x5dcba0,_0x413c0a,_0x2f833b,_0x57806a,_0x2376f8,_0x449a99,_0x18da50,_0x2f94b9);}}};_0xee5443=_0x12e0b9([_0x1123ad(0x0,_0xd66891[_0x33a6bb(0x237)]),_0x1123ad(0x1,(0x0,_0xd66891[_0x33a6bb(0x1df)])(_0x39d4d4[_0x33a6bb(0x1a9)])),_0x1123ad(0x2,(0x0,_0xd66891[_0x33a6bb(0x1df)])(_0x39d4d4['SheetSkeletonService'])),_0x1123ad(0x3,(0x0,_0xd66891['Inject'])(_0x7bf5a9)),_0x1123ad(0x4,(0x0,_0xd66891[_0x33a6bb(0x1df)])(_0x417360[_0x33a6bb(0x1ad)])),_0x1123ad(0x5,(0x0,_0xd66891[_0x33a6bb(0x1df)])(_0x562947[_0x33a6bb(0x1dc)])),_0x1123ad(0x6,(0x0,_0xd66891['Inject'])(_0x2b540b))],_0xee5443);let _0xca2498=class extends _0xd66891[_0x33a6bb(0x21a)]{constructor(_0xa72eb4=_0x19325c,_0x45c9ff,_0x409b83){const _0x5b5626=_0x33a6bb;super(),this[_0x5b5626(0x1f8)]=_0xa72eb4,this[_0x5b5626(0x1f3)]=_0x45c9ff,this[_0x5b5626(0x224)]=_0x409b83;let {..._0x26acf7}=(0x0,_0xd66891[_0x5b5626(0x28c)])({},_0x19325c,this['_config']);this[_0x5b5626(0x224)][_0x5b5626(0x241)](_0x5b5626(0x235),_0x26acf7);}[_0x33a6bb(0x1a2)](){const _0x252ec8=_0x33a6bb;let _0x4bec58=this[_0x252ec8(0x1f3)];[[_0x5eb067],[_0x7bf5a9],[_0x2b540b],[_0xee5443]]['forEach'](_0x15db32=>_0x4bec58[_0x252ec8(0x1b8)](_0x15db32)),(0x0,_0xd66891['touchDependencies'])(_0x4bec58,[[_0x7bf5a9],[_0xee5443]]);}};_0x5a1628(_0xca2498,'type',_0xd66891[_0x33a6bb(0x26b)]['UNIVER_SHEET']),_0x5a1628(_0xca2498,'pluginName',_0x33a6bb(0x266)),_0x5a1628(_0xca2498,_0x33a6bb(0x274),_0x31f9c4),_0x5a1628(_0xca2498,_0x33a6bb(0x1c9),_0x275639),_0xca2498=_0x12e0b9([(0x0,_0xd66891[_0x33a6bb(0x214)])(_0x328626[_0x33a6bb(0x221)],_0x562947[_0x33a6bb(0x23c)]),_0x1123ad(0x1,(0x0,_0xd66891[_0x33a6bb(0x1df)])(_0xd66891[_0x33a6bb(0x198)])),_0x1123ad(0x2,_0xd66891[_0x33a6bb(0x1fb)])],_0xca2498),_0x4d9e8b['DEFAULT_SHAPE_HEIGHT']=0xc8,_0x4d9e8b[_0x33a6bb(0x1e6)]=0xc8,_0x4d9e8b[_0x33a6bb(0x1b9)]=_0x34b477,_0x4d9e8b['InsertSheetsShapeMutation']=_0xac8f76,_0x4d9e8b[_0x33a6bb(0x1be)]=_0x177a6b,_0x4d9e8b[_0x33a6bb(0x1c6)]=_0x1568be,_0x4d9e8b[_0x33a6bb(0x26f)]=_0x3a09d0,_0x4d9e8b[_0x33a6bb(0x257)]=_0xd50c12,Object[_0x33a6bb(0x25e)](_0x4d9e8b,_0x33a6bb(0x253),{'enumerable':!0x0,'get':function(){return _0x7bf5a9;}}),_0x4d9e8b[_0x33a6bb(0x260)]=_0x369e8f,Object['defineProperty'](_0x4d9e8b,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return _0xca2498;}}),_0x4d9e8b[_0x33a6bb(0x276)]=_0x2c2500,_0x4d9e8b[_0x33a6bb(0x1e3)]=_0x26b453,_0x4d9e8b[_0x33a6bb(0x282)]=_0x213947,_0x4d9e8b[_0x33a6bb(0x1d7)]=_0x4bf935;}));
1
+ function _0x4d05(_0x4001b6,_0x5e325d){_0x4001b6=_0x4001b6-0x1aa;const _0xa24856=_0xa248();let _0x4d05d8=_0xa24856[_0x4001b6];return _0x4d05d8;}function _0xa248(){const _0x58138d=['Disposable','cos','updateContext','getBasicShapeRelation','_addLineFollowShapeUpdates','Injector','IDrawingManagerService','sheet.command.set-shape-text-vertical-toggle','_drawingService','prototype','drawingId','exports','call','getShapeRelation','rotation','sheet.command.set-shape-rotate','_ensureShapeModelManager','packageName','ensureSkeleton','1931657mZGTTn','2397195KHTLmI','symbol','lineType','693780CqvZqd','undos','preUndos','6xSiret','toStringTag','ClearSheetDrawingTransformerOperation','borderEnabled','Tools','@univerjs/sheets-drawing','getName','ISheetDrawingService','getBasicShapeType','getDrawingData','getBasicShapeRotateBound','InsertShapeCommand','sin','SheetSkeletonService','DRAWING_SHAPE','SetSheetsShapeTextVerticalToggleCommand','removeLinePoints','shapeData','_config','@univerjs/drawing','get','_drawingManagerService','getShapeType','iterator','fill','SheetsShapeService','values','defineProperty','flipX','UniverSheetsDrawing','visible','object','_addLineRerouteUpdates','getShapeDataById','height','amd','onCommandExecute','shapeName','dispose','sheets-shape.config','decorate','1.0.0-alpha.6','_linesIds','registerCommand','sheet.command.update-connector-relation','length','sendToBack','subUnitId','disposeWithMe','forward','getSkeleton','resizeEnabled','isHorizontal','4262283aEFZbG','_serializeShapeForUnit','toJSON','setShapeType','_initSnapshot','lineShapeId','_sheetInterceptorService','_sheetSkeletonService','has','_configService','52674adnPlj','_commandService','push','isFrom','UniverProSheetsShape','clear','DrawingTypeEnum','_deserializeShapeForUnit','routeConnectorLineShape','UniverCore','getShape','string','getShapeData','transformToDrawingPosition','setShapeData','sheet.command.set-shape-drawing-data','range','getId','SetDrawingArrangeCommand','registerPluginResource','_shapeService','CommandType','transformToAxisAlignPosition','default','position','UpdateSheetsShapeTypeMutation','add','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','entries','bringForward','isLineShape','_groupIds','isConnectorShape','DEFAULT_SHAPE_WIDTH','shapeId','getAdjustValueByName','syncExecuteCommand','description','forEach','sheet.mutation.insert-shape','getConnectionSiteList','MUTATION','getSheetCommandTarget','_shapeHostAdapterRegistry','delete','width','_sheetsShapeService','flipY','getBatchUpdateOp','map','UNIVER_SHEET','back','keys','sequenceExecute','3372480kgZdnL','@univerjs/sheets','Module','_initCommandInterceptor','SetSheetDrawingCommand','ang','SHEET_SHAPE_PLUGIN','interceptCommand','@univerjs-pro/sheets-shape','IConfigService','UpdateSheetsShapeDataMutation','type','sheet.command.update-line-shape-resize','ShapeModel','_injector','top','_shapes','shapeType','UniverLicensePlugin','getDrawingByParam','name','SetSheetsShapeRotateCommand','DEFAULT_SHAPE_HEIGHT','UniverShapePlugin','@univerjs/core','adjustValues','sheet.mutation.update-shape-type','from','transform','getLineShapeRelation','set','unitId','DrawingApplyType','rotateEnabled','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','result','_shapeModelManagerMap','Inject','sheet.command.toggle-shape-flip','DependentOn','5530568wElIhm','_arrange','UniverSheetsShapePlugin','RemoveSheetDrawingCommand','toPrimitive','getEndConnectInfo','relation','SheetInterceptorService','updateShape','front','pushUndoRedo','_resourcesManagerService','selectable','UniverProLicense','createShape','getStartConnectInfo','addShape','hasShape','register','filter','removeShape','UPDATE','ArrangeTypeEnum','redos','InsertSheetsShapeMutation','IResourceManagerService','preRedos','UniverInstanceType','worldRect','getOwnPropertyDescriptor','constructor','angle','drawingType','getCellWithCoordByIndex','UniverDrawing','insertShape','INSERT','cxnIndex','IUndoRedoService','_getConnectPointInfo','sheet.command.insert-shape','getShapeModel','_disposed','ICommandService','function','sendBackward','data','parse','index','version','@univerjs-pro/engine-shape','computeConnectorRouteLayout','deepClone','fromJSON','COMMAND','SetDrawingApplyMutation','startX','left','find','InsertSheetDrawingCommand','getShapeDisplayNames','IShapeHostAdapterRegistry','_initCommands','IUniverInstanceService'];_0xa248=function(){return _0x58138d;};return _0xa248();}(function(_0x3e2681,_0x4cfb2d){const _0x3ec4ec=_0x4d05,_0x5743fb=_0x3e2681();while(!![]){try{const _0x516778=-parseInt(_0x3ec4ec(0x1d1))/0x1*(parseInt(_0x3ec4ec(0x28a))/0x2)+-parseInt(_0x3ec4ec(0x1c7))/0x3+parseInt(_0x3ec4ec(0x207))/0x4+parseInt(_0x3ec4ec(0x284))/0x5+parseInt(_0x3ec4ec(0x287))/0x6+parseInt(_0x3ec4ec(0x283))/0x7+parseInt(_0x3ec4ec(0x230))/0x8;if(_0x516778===_0x4cfb2d)break;else _0x5743fb['push'](_0x5743fb['shift']());}catch(_0x1dfe0d){_0x5743fb['push'](_0x5743fb['shift']());}}}(_0xa248,0xc9d36),function(_0x544390,_0x579ed8){const _0x455c60=_0x4d05;typeof exports==_0x455c60(0x1b1)&&typeof module<'u'?_0x579ed8(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==_0x455c60(0x25c)&&define[_0x455c60(0x1b5)]?define([_0x455c60(0x27b),_0x455c60(0x262),_0x455c60(0x21f),_0x455c60(0x208),_0x455c60(0x28f),'@univerjs-pro/license',_0x455c60(0x29d)],_0x579ed8):(_0x544390=typeof globalThis<'u'?globalThis:_0x544390||self,_0x579ed8(_0x544390[_0x455c60(0x1d5)]={},_0x544390['UniverProEngineShape'],_0x544390[_0x455c60(0x1da)],_0x544390['UniverSheets'],_0x544390[_0x455c60(0x1af)],_0x544390[_0x455c60(0x23d)],_0x544390[_0x455c60(0x252)]));}(this,function(_0x5978ad,_0x222f7d,_0x4cf569,_0x51c0bb,_0x3a908f,_0x41b454,_0x1afd82){const _0x8bc636=_0x4d05;Object[_0x8bc636(0x1ad)](_0x5978ad,Symbol[_0x8bc636(0x28b)],{'value':_0x8bc636(0x209)});function _0x348c51(_0x399a86){'@babel/helpers - typeof';const _0x55c6c3=_0x8bc636;return _0x348c51=typeof Symbol==_0x55c6c3(0x25c)&&typeof Symbol[_0x55c6c3(0x2a1)]==_0x55c6c3(0x285)?function(_0x3d0978){return typeof _0x3d0978;}:function(_0x3054cd){const _0x57909b=_0x55c6c3;return _0x3054cd&&typeof Symbol=='function'&&_0x3054cd[_0x57909b(0x24e)]===Symbol&&_0x3054cd!==Symbol[_0x57909b(0x279)]?_0x57909b(0x285):typeof _0x3054cd;},_0x348c51(_0x399a86);}function _0x3fa93c(_0x3cc8fd,_0x538267){const _0x5b6676=_0x8bc636;if(_0x348c51(_0x3cc8fd)!='object'||!_0x3cc8fd)return _0x3cc8fd;var _0x343ceb=_0x3cc8fd[Symbol[_0x5b6676(0x234)]];if(_0x343ceb!==void 0x0){var _0x392b8f=_0x343ceb[_0x5b6676(0x27c)](_0x3cc8fd,_0x538267||_0x5b6676(0x1e8));if(_0x348c51(_0x392b8f)!=_0x5b6676(0x1b1))return _0x392b8f;throw TypeError(_0x5b6676(0x22a));}return(_0x538267===_0x5b6676(0x1dc)?String:Number)(_0x3cc8fd);}function _0x2d6a4c(_0x585d0d){const _0x1cf966=_0x8bc636;var _0x41fae5=_0x3fa93c(_0x585d0d,_0x1cf966(0x1dc));return _0x348c51(_0x41fae5)==_0x1cf966(0x285)?_0x41fae5:_0x41fae5+'';}function _0x3c413b(_0x3a1712,_0x39997c,_0x2e7765){const _0x20f56e=_0x8bc636;return(_0x39997c=_0x2d6a4c(_0x39997c))in _0x3a1712?Object[_0x20f56e(0x1ad)](_0x3a1712,_0x39997c,{'value':_0x2e7765,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a1712[_0x39997c]=_0x2e7765,_0x3a1712;}var _0x40c66a=class extends _0x4cf569[_0x8bc636(0x270)]{constructor(){const _0x16a279=_0x8bc636;super(),_0x3c413b(this,_0x16a279(0x217),new Map()),_0x3c413b(this,'_linesIds',new Set()),_0x3c413b(this,_0x16a279(0x1f0),new Set());}['addShape'](_0x3c938f,_0x40e9d3,_0x365cc1,_0x310fcf){const _0x2ffdb3=_0x8bc636;let _0x1008cb=new _0x222f7d[(_0x2ffdb3(0x214))](_0x3c938f,_0x40e9d3,_0x365cc1,_0x310fcf);return this[_0x2ffdb3(0x217)]['set'](_0x40e9d3,_0x1008cb),(0x0,_0x222f7d['isConnectorShape'])(_0x3c938f)&&this[_0x2ffdb3(0x1bc)][_0x2ffdb3(0x1eb)](_0x40e9d3),_0x1008cb;}[_0x8bc636(0x273)](_0x3ccf25){const _0xf9642e=_0x8bc636;let _0x1e8b50=[];for(let _0x379101 of this['_linesIds']){let _0x128b44=this['_shapes']['get'](_0x379101);if(_0x128b44){let _0x3556b1=_0x128b44[_0xf9642e(0x27d)]();if(_0x3556b1){var _0xcab30c,_0x4de96b;((_0xcab30c=_0x3556b1[_0xf9642e(0x222)])==null?void 0x0:_0xcab30c[_0xf9642e(0x1f3)])===_0x3ccf25&&_0x1e8b50['push']({..._0x3556b1['from'],'lineShapeId':_0x379101,'isFrom':!0x0}),((_0x4de96b=_0x3556b1['to'])==null?void 0x0:_0x4de96b[_0xf9642e(0x1f3)])===_0x3ccf25&&_0x1e8b50['push']({..._0x3556b1['to'],'lineShapeId':_0x379101,'isFrom':!0x1});}}}return _0x1e8b50;}['getLineShapeRelation'](_0x1d1056){const _0x2eae4b=_0x8bc636;let _0x39b9c7=this[_0x2eae4b(0x217)]['get'](_0x1d1056);if(_0x39b9c7)return _0x39b9c7[_0x2eae4b(0x27d)]();}[_0x8bc636(0x2a0)](_0xbecfa2){const _0x1b9580=_0x8bc636;let _0x13c951=this[_0x1b9580(0x217)][_0x1b9580(0x29e)](_0xbecfa2);if(_0x13c951)return _0x13c951[_0x1b9580(0x2a0)]();}[_0x8bc636(0x241)](_0x5df7fb){const _0x108332=_0x8bc636;return this[_0x108332(0x217)][_0x108332(0x1cf)](_0x5df7fb);}['getShapeDisplayNames'](){const _0x3eec52=_0x8bc636;return Array[_0x3eec52(0x222)](this[_0x3eec52(0x217)][_0x3eec52(0x1ac)]())[_0x3eec52(0x202)](_0x38130=>_0x38130[_0x3eec52(0x290)]()||_0x38130[_0x3eec52(0x1e2)]());}[_0x8bc636(0x244)](_0x463da5){const _0x72aa02=_0x8bc636;let _0x5db2c8=this[_0x72aa02(0x217)][_0x72aa02(0x29e)](_0x463da5);_0x5db2c8&&((0x0,_0x222f7d[_0x72aa02(0x1f1)])(_0x5db2c8[_0x72aa02(0x2a0)]())&&this[_0x72aa02(0x1bc)][_0x72aa02(0x1fd)](_0x463da5),this['_shapes'][_0x72aa02(0x1fd)](_0x463da5));}[_0x8bc636(0x1c9)](){const _0x14461a=_0x8bc636;let _0x61a2c6=[];return this[_0x14461a(0x217)][_0x14461a(0x1f7)](_0x56f739=>{const _0x1ac2de=_0x14461a;_0x61a2c6[_0x1ac2de(0x1d3)](_0x56f739[_0x1ac2de(0x1c9)]());}),_0x61a2c6;}[_0x8bc636(0x265)](_0x537fb6){const _0xb7c798=_0x8bc636;for(let _0x563013 of _0x537fb6){let {id:_0x2f5d80,shapeType:_0x3049d0,name:_0x31d3be}=_0x563013,_0x122516=this['addShape'](_0x3049d0,_0x2f5d80,_0x563013['shapeData'],_0x31d3be);_0x122516&&_0x122516[_0xb7c798(0x1ef)]()&&this[_0xb7c798(0x1bc)][_0xb7c798(0x1eb)](_0x2f5d80);}}[_0x8bc636(0x1b8)](){const _0x468f56=_0x8bc636;this[_0x468f56(0x25a)]||(this['_shapes'][_0x468f56(0x1f7)](_0xf781b0=>{const _0x2f0750=_0x468f56;_0xf781b0[_0x2f0750(0x1b8)]();}),this[_0x468f56(0x217)][_0x468f56(0x1d6)](),this[_0x468f56(0x1bc)]['clear'](),this[_0x468f56(0x1f0)][_0x468f56(0x1d6)](),super[_0x468f56(0x1b8)]());}};function _0x6fcb7d(_0x5dee9d,_0x4e243d){return function(_0x5c6f7b,_0x54b829){_0x4e243d(_0x5c6f7b,_0x54b829,_0x5dee9d);};}function _0xf259c2(_0x29bc9d,_0x190a9e,_0xc71b31,_0x223676){const _0x28f02b=_0x8bc636;var _0xfd0e5d=arguments[_0x28f02b(0x1bf)],_0x32c66d=_0xfd0e5d<0x3?_0x190a9e:_0x223676===null?_0x223676=Object[_0x28f02b(0x24d)](_0x190a9e,_0xc71b31):_0x223676,_0x926bf6;if(typeof Reflect=='object'&&typeof Reflect[_0x28f02b(0x1ba)]==_0x28f02b(0x25c))_0x32c66d=Reflect[_0x28f02b(0x1ba)](_0x29bc9d,_0x190a9e,_0xc71b31,_0x223676);else{for(var _0x16f5f7=_0x29bc9d['length']-0x1;_0x16f5f7>=0x0;_0x16f5f7--)(_0x926bf6=_0x29bc9d[_0x16f5f7])&&(_0x32c66d=(_0xfd0e5d<0x3?_0x926bf6(_0x32c66d):_0xfd0e5d>0x3?_0x926bf6(_0x190a9e,_0xc71b31,_0x32c66d):_0x926bf6(_0x190a9e,_0xc71b31))||_0x32c66d);}return _0xfd0e5d>0x3&&_0x32c66d&&Object[_0x28f02b(0x1ad)](_0x190a9e,_0xc71b31,_0x32c66d),_0x32c66d;}let _0x23101f=class extends _0x4cf569[_0x8bc636(0x270)]{constructor(_0x12c4a3){const _0x3df3f3=_0x8bc636;super(),this[_0x3df3f3(0x23b)]=_0x12c4a3,_0x3c413b(this,_0x3df3f3(0x22c),new Map()),this[_0x3df3f3(0x1cb)]();}[_0x8bc636(0x280)](_0x17544b,_0x13d44c){const _0x27a534=_0x8bc636;let _0x664450=this[_0x27a534(0x22c)][_0x27a534(0x29e)](_0x17544b);_0x664450||(_0x664450=new Map(),this['_shapeModelManagerMap'][_0x27a534(0x225)](_0x17544b,_0x664450));let _0x54d7b1=_0x664450['get'](_0x13d44c);return _0x54d7b1||(_0x54d7b1=new _0x40c66a(),_0x664450[_0x27a534(0x225)](_0x13d44c,_0x54d7b1)),_0x54d7b1;}[_0x8bc636(0x253)](_0x7d4287,_0x3dc6a3,_0x3569b4,_0x1a4564,_0x3b2f5f,_0x32d5c5){const _0x17751b=_0x8bc636;this[_0x17751b(0x280)](_0x7d4287,_0x3dc6a3)[_0x17751b(0x240)](_0x3569b4,_0x1a4564,_0x3b2f5f,_0x32d5c5);}[_0x8bc636(0x244)](_0x54c639,_0x99b6be,_0x28096c){const _0x311b37=_0x8bc636;this[_0x311b37(0x280)](_0x54c639,_0x99b6be)[_0x311b37(0x244)](_0x28096c);}[_0x8bc636(0x292)](_0x5661a0,_0x23ab26,_0xc8cfdf){const _0x23cd73=_0x8bc636;return this[_0x23cd73(0x280)](_0x5661a0,_0x23ab26)[_0x23cd73(0x2a0)](_0xc8cfdf);}['getShapeType'](_0x32b227,_0x51208a,_0x363850){const _0x9c1a59=_0x8bc636;return this[_0x9c1a59(0x280)](_0x32b227,_0x51208a)[_0x9c1a59(0x2a0)](_0x363850);}[_0x8bc636(0x241)](_0x1a6b0b,_0x4426f1,_0x58d87c){const _0x4991d1=_0x8bc636;return this[_0x4991d1(0x280)](_0x1a6b0b,_0x4426f1)['hasShape'](_0x58d87c);}['getShapeTypeById'](_0x14e95b,_0x4678e2,_0x44e160){const _0x5c6a6e=_0x8bc636;return this[_0x5c6a6e(0x280)](_0x14e95b,_0x4678e2)[_0x5c6a6e(0x2a0)](_0x44e160);}[_0x8bc636(0x1b3)](_0x4d2d44,_0x18d834,_0x3e99d4){const _0x39c4a8=_0x8bc636;let _0x8a38b7=this[_0x39c4a8(0x280)](_0x4d2d44,_0x18d834);if(!_0x8a38b7[_0x39c4a8(0x2a0)](_0x3e99d4))return;let _0x52109b=_0x8a38b7[_0x39c4a8(0x217)]['get'](_0x3e99d4);if(_0x52109b)return _0x52109b[_0x39c4a8(0x1dd)]();}[_0x8bc636(0x26c)](_0x112bd0,_0x302af6){const _0x55c588=_0x8bc636;return this[_0x55c588(0x280)](_0x112bd0,_0x302af6)['getShapeDisplayNames']();}[_0x8bc636(0x259)](_0x19d240,_0xeecd1,_0x27334e){const _0x1c42a8=_0x8bc636;return this[_0x1c42a8(0x280)](_0x19d240,_0xeecd1)['_shapes'][_0x1c42a8(0x29e)](_0x27334e);}['getBasicShapeRelation'](_0x3c2992,_0xf274e3,_0x16bcf0){const _0x23c5c2=_0x8bc636;return this[_0x23c5c2(0x280)](_0x3c2992,_0xf274e3)['getBasicShapeRelation'](_0x16bcf0);}[_0x8bc636(0x224)](_0x1aaeac,_0x30ee92,_0x362ac4){const _0x490cd4=_0x8bc636;let _0x169001=this[_0x490cd4(0x280)](_0x1aaeac,_0x30ee92)[_0x490cd4(0x217)][_0x490cd4(0x29e)](_0x362ac4);if(_0x169001)return _0x169001['getShapeRelation']();}[_0x8bc636(0x1ca)](){}[_0x8bc636(0x1c8)](_0x5d1c40){const _0x2ff907=_0x8bc636;let _0x3bce36={},_0xaf6e72=this['_shapeModelManagerMap'][_0x2ff907(0x29e)](_0x5d1c40);return _0xaf6e72&&_0xaf6e72[_0x2ff907(0x1f7)]((_0x259d2e,_0x16de0a)=>{const _0x59c89c=_0x2ff907;let _0x2beea5=_0x259d2e[_0x59c89c(0x1c9)]();_0x2beea5[_0x59c89c(0x1bf)]>0x0&&(_0x3bce36[_0x16de0a]=_0x2beea5);}),JSON['stringify'](_0x3bce36);}['_deserializeShapeForUnit'](_0x4f841d,_0x1c98b8){const _0x3165cd=_0x8bc636;Object[_0x3165cd(0x205)](_0x1c98b8)[_0x3165cd(0x1f7)](_0x5d410b=>{const _0x5e469f=_0x3165cd;this[_0x5e469f(0x280)](_0x4f841d,_0x5d410b)['fromJSON'](_0x1c98b8[_0x5d410b]);});}['toJSON'](){const _0x3fa868=_0x8bc636;let _0x3a2044={};return this['_shapeModelManagerMap'][_0x3fa868(0x1f7)]((_0x2bc595,_0x2e44c7)=>{_0x3a2044[_0x2e44c7]={},_0x2bc595['forEach']((_0x495787,_0x76426f)=>{const _0x3aa8c0=_0x4d05;_0x3a2044[_0x2e44c7][_0x76426f]=_0x495787[_0x3aa8c0(0x1c9)]();});}),_0x3a2044;}[_0x8bc636(0x265)](_0x3a060e){const _0x5d0f68=_0x8bc636;Object['keys'](_0x3a060e)[_0x5d0f68(0x1f7)](_0x4d943d=>{const _0x1a5b5b=_0x5d0f68;let _0x4e7e96=_0x3a060e[_0x4d943d];Object[_0x1a5b5b(0x205)](_0x4e7e96)[_0x1a5b5b(0x1f7)](_0x5e1e35=>{const _0xa0e95=_0x1a5b5b;this[_0xa0e95(0x280)](_0x4d943d,_0x5e1e35)[_0xa0e95(0x265)](_0x4e7e96[_0x5e1e35]);});});}[_0x8bc636(0x1cb)](){const _0x4b253b=_0x8bc636;this[_0x4b253b(0x23b)][_0x4b253b(0x1e4)]({'pluginName':_0x4b253b(0x20d),'businesses':[_0x4cf569[_0x4b253b(0x24b)][_0x4b253b(0x203)]],'toJson':_0x56de49=>this['_serializeShapeForUnit'](_0x56de49),'parseJson':_0x320e87=>JSON[_0x4b253b(0x25f)](_0x320e87),'onLoad':(_0x46c022,_0x45c7cf)=>{const _0x4cf5be=_0x4b253b;this[_0x4cf5be(0x1d8)](_0x46c022,_0x45c7cf);},'onUnLoad':_0x4ed917=>{const _0x242e92=_0x4b253b;let _0x40952f=this[_0x242e92(0x22c)][_0x242e92(0x29e)](_0x4ed917);_0x40952f&&(_0x40952f[_0x242e92(0x1f7)](_0x635415=>{const _0x3afced=_0x242e92;_0x635415[_0x3afced(0x1b8)]();}),this['_shapeModelManagerMap'][_0x242e92(0x1fd)](_0x4ed917));}});}[_0x8bc636(0x1b8)](){const _0x5dd507=_0x8bc636;this[_0x5dd507(0x22c)][_0x5dd507(0x1f7)](_0x250809=>{const _0x47f18d=_0x5dd507;_0x250809[_0x47f18d(0x1f7)](_0x1c26cb=>{const _0x4f49d7=_0x47f18d;_0x1c26cb[_0x4f49d7(0x1b8)]();});});}};_0x23101f=_0xf259c2([_0x6fcb7d(0x0,_0x4cf569[_0x8bc636(0x249)])],_0x23101f);let _0x21df94={'id':_0x8bc636(0x1f8),'type':_0x4cf569[_0x8bc636(0x1e6)][_0x8bc636(0x1fa)],'handler':(_0x174635,_0xce2406)=>{const _0x3a5648=_0x8bc636;let {unitId:_0x5288d8,subUnitId:_0x20d538,shapeType:_0x1bb5b8,shapeId:_0x1faa50,shapeName:_0x4e6fd2,shapeData:_0x115577}=_0xce2406;return _0x174635[_0x3a5648(0x29e)](_0x23101f)[_0x3a5648(0x253)](_0x5288d8,_0x20d538,_0x1bb5b8,_0x1faa50,_0x115577,_0x4e6fd2),!0x0;}},_0x3e364e={'id':'sheet.mutation.remove-shape','type':_0x4cf569[_0x8bc636(0x1e6)][_0x8bc636(0x1fa)],'handler':(_0x2f0622,_0x447ef8)=>{const _0x3f85b0=_0x8bc636;let {unitId:_0x5bdbf9,subUnitId:_0x5617a9,shapeId:_0x4280c1}=_0x447ef8;return _0x2f0622[_0x3f85b0(0x29e)](_0x23101f)[_0x3f85b0(0x244)](_0x5bdbf9,_0x5617a9,_0x4280c1),!0x0;}},_0x473541={'type':_0x4cf569[_0x8bc636(0x1e6)]['COMMAND'],'id':_0x8bc636(0x258),'handler':(_0x486a0b,_0x5d8a48)=>{const _0xe4298c=_0x8bc636;var _0x6658f1,_0x58200b,_0x5f27d3,_0x21c264,_0x5d9644,_0x301b40,_0x1894c4;let _0x5b68e9=(0x0,_0x51c0bb[_0xe4298c(0x1fb)])(_0x486a0b[_0xe4298c(0x29e)](_0x4cf569[_0xe4298c(0x26f)]),_0x5d8a48);if(!_0x5b68e9)return!0x1;let _0x5cf04d=_0x486a0b[_0xe4298c(0x29e)](_0x51c0bb[_0xe4298c(0x297)]),{unitId:_0x3a2a40,subUnitId:_0x19049e}=_0x5b68e9,_0xa3392f=_0x5cf04d[_0xe4298c(0x282)](_0x3a2a40,_0x19049e);if(!_0xa3392f)return!0x1;let _0x6ba8a1=_0x486a0b[_0xe4298c(0x29e)](_0x4cf569['ICommandService']),_0x58ce03=_0x486a0b[_0xe4298c(0x29e)](_0x4cf569[_0xe4298c(0x256)]),_0x32ad3d=_0x486a0b[_0xe4298c(0x29e)](_0x51c0bb[_0xe4298c(0x237)]),_0x200523=_0x486a0b['get'](_0x3a908f[_0xe4298c(0x291)]),_0x27bb40=_0x486a0b[_0xe4298c(0x29e)](_0x23101f),{shapeType:_0x1c92a4,shapeData:_0x2b8ded}=_0x5d8a48,_0x113e1a=_0x5d8a48['shapeId']||(0x0,_0x4cf569['generateRandomId'])(),_0x52a55b={'unitId':_0x3a2a40,'subUnitId':_0x19049e,'shapeId':_0x113e1a,'shapeName':(_0x6658f1=_0x5d8a48[_0xe4298c(0x1b7)])==null?(0x0,_0x222f7d['createUniqueShapeName'])(_0x1c92a4,_0x27bb40[_0xe4298c(0x26c)](_0x3a2a40,_0x19049e)):_0x6658f1,'shapeType':_0x1c92a4,'shapeData':_0x2b8ded},_0x24a818=_0x5d8a48[_0xe4298c(0x1fe)]||0xc8,_0x5e744f=_0x5d8a48[_0xe4298c(0x1b4)]||0xc8,_0x57ddaf=0x0,_0x375c4b=0x0;if(_0x5d8a48[_0xe4298c(0x1e9)]){let {x:_0x2a5205,y:_0x1570ac}=_0x5d8a48[_0xe4298c(0x1e9)];_0x57ddaf=_0x2a5205,_0x375c4b=_0x1570ac;}else{if(_0x5d8a48[_0xe4298c(0x1e1)]){let {startRow:_0x2da5bd,startColumn:_0x31f19e}=_0x5d8a48[_0xe4298c(0x1e1)],_0x42314c=_0xa3392f[_0xe4298c(0x251)](_0x2da5bd,_0x31f19e);_0x57ddaf=_0x42314c[_0xe4298c(0x268)]+0xa,_0x375c4b=_0x42314c['startY']+0xa;}}let _0x57e726={'left':_0x57ddaf,'top':_0x375c4b,'width':_0x24a818,'height':_0x5e744f,'angle':(_0x58200b=_0x5d8a48[_0xe4298c(0x27e)])==null?0x0:_0x58200b,'flipX':(_0x5f27d3=_0x5d8a48[_0xe4298c(0x1ae)])==null?!0x1:_0x5f27d3,'flipY':(_0x21c264=_0x5d8a48['flipY'])==null?!0x1:_0x21c264},_0x58b49d=(0x0,_0x3a908f[_0xe4298c(0x1de)])(_0x57e726,_0xa3392f),_0x35ec7b=(0x0,_0x3a908f[_0xe4298c(0x1e7)])(_0x57e726,_0xa3392f),_0x234e08={'unitId':_0x3a2a40,'subUnitId':_0x19049e,'drawingId':_0x113e1a,'drawingType':_0x4cf569[_0xe4298c(0x1d7)][_0xe4298c(0x298)],'name':_0x5d8a48[_0xe4298c(0x21b)],'description':_0x5d8a48[_0xe4298c(0x1f6)],'sheetTransform':_0x58b49d,'transform':_0x57e726,'data':{'shapeType':_0x1c92a4,'shapeData':_0x2b8ded},'axisAlignSheetTransform':_0x35ec7b,'allowTransform':!0x0,'hidden':_0x5d8a48[_0xe4298c(0x1b0)]===!0x1,'selectable':(_0x5d9644=_0x5d8a48['selectable'])==null?!0x0:_0x5d9644};(0x0,_0x222f7d['isConnectorShape'])(_0x1c92a4)&&(_0x234e08['data']['fill']=!0x1,_0x234e08[_0xe4298c(0x25e)][_0xe4298c(0x228)]=!0x1,_0x234e08['data'][_0xe4298c(0x1c5)]=!0x1,_0x234e08['data'][_0xe4298c(0x28d)]=!0x1,_0x234e08[_0xe4298c(0x223)][_0xe4298c(0x228)]=!0x1,_0x234e08[_0xe4298c(0x223)]['resizeEnabled']=!0x1,_0x234e08[_0xe4298c(0x223)][_0xe4298c(0x28d)]=!0x1);let {undo:_0x4fc5d3,redo:_0x213877,objects:_0x578361}=_0x200523['getBatchAddOp']([_0x234e08]),_0x2bcfe7=_0x32ad3d['onCommandExecute']({'id':_0x3a908f[_0xe4298c(0x26b)]['id'],'params':{'unitId':_0x3a2a40,'drawings':[_0x234e08]}}),_0x3d5f43=[...(_0x301b40=_0x2bcfe7['preRedos'])==null?[]:_0x301b40,{'id':_0x3a908f[_0xe4298c(0x267)]['id'],'params':{'unitId':_0x3a2a40,'subUnitId':_0x19049e,'op':_0x213877,'objects':_0x578361,'type':_0x3a908f[_0xe4298c(0x227)][_0xe4298c(0x254)]}},{'id':_0x3a908f[_0xe4298c(0x28c)]['id'],'params':[_0x3a2a40]},..._0x2bcfe7[_0xe4298c(0x247)],{'id':_0x21df94['id'],'params':_0x52a55b}],_0x457527=[{'id':_0x3e364e['id'],'params':{'unitId':_0x3a2a40,'subUnitId':_0x19049e,'shapeId':_0x113e1a}},...(_0x1894c4=_0x2bcfe7[_0xe4298c(0x289)])==null?[]:_0x1894c4,{'id':_0x3a908f[_0xe4298c(0x267)]['id'],'params':{'unitId':_0x3a2a40,'subUnitId':_0x19049e,'op':_0x4fc5d3,'objects':_0x578361,'type':_0x3a908f[_0xe4298c(0x227)]['REMOVE']}},{'id':_0x3a908f[_0xe4298c(0x28c)]['id'],'params':[_0x3a2a40]},..._0x2bcfe7[_0xe4298c(0x288)]];return(0x0,_0x4cf569['sequenceExecute'])(_0x3d5f43,_0x6ba8a1)[_0xe4298c(0x22b)]?(_0x58ce03[_0xe4298c(0x23a)]({'unitID':_0x3a2a40,'undoMutations':_0x457527,'redoMutations':_0x3d5f43}),!0x0):!0x1;}},_0x5c1630={'id':'sheet.mutation.update-shape-data','type':_0x4cf569[_0x8bc636(0x1e6)][_0x8bc636(0x1fa)],'handler':(_0x19d2bd,_0x4ed112)=>{const _0x5738af=_0x8bc636;let {unitId:_0x25ac7d,subUnitId:_0x22da46,shapeType:_0x31be97,shapeId:_0x311bbc,shapeData:_0x162fa6}=_0x4ed112,_0x10de41=_0x19d2bd[_0x5738af(0x29e)](_0x23101f)['getShapeModel'](_0x25ac7d,_0x22da46,_0x311bbc);return _0x10de41&&(_0x31be97!==void 0x0&&_0x10de41['setShapeType'](_0x31be97),_0x162fa6&&(_0x10de41==null||_0x10de41[_0x5738af(0x1df)](_0x162fa6,!0x0))),!0x0;}},_0x10291e={'type':_0x4cf569[_0x8bc636(0x1e6)][_0x8bc636(0x266)],'id':_0x8bc636(0x1e0),'handler':(_0x5cd788,_0x1b6938)=>{const _0x4551f6=_0x8bc636;var _0x8e2081,_0x4b5670,_0xe8f8ce,_0x4a150f,_0x1d6e6c;let _0x5492f4=(0x0,_0x51c0bb[_0x4551f6(0x1fb)])(_0x5cd788[_0x4551f6(0x29e)](_0x4cf569[_0x4551f6(0x26f)]),_0x1b6938);if(!_0x5492f4)return!0x1;let _0x2eb35f=_0x5cd788[_0x4551f6(0x29e)](_0x51c0bb['SheetSkeletonService']),{unitId:_0x3d0e52,subUnitId:_0x49ea68}=_0x5492f4,_0x1cbd8e=_0x2eb35f[_0x4551f6(0x282)](_0x3d0e52,_0x49ea68);if(!_0x1cbd8e)return!0x1;let _0x46e7c9=_0x5cd788[_0x4551f6(0x29e)](_0x23101f),{shapeId:_0x3d631f,shapeType:_0x9b06fe,shapeData:_0x577cd9,position:_0x115209,width:_0x18ac3a,height:_0x379cc0}=_0x1b6938,_0x3d9e8e=_0x46e7c9[_0x4551f6(0x259)](_0x3d0e52,_0x49ea68,_0x3d631f);if(!_0x3d9e8e)return!0x1;let _0x3c5e9a=_0x5cd788['get'](_0x4cf569[_0x4551f6(0x25b)]),_0x4dce34=_0x5cd788[_0x4551f6(0x29e)](_0x4cf569['IUndoRedoService']),_0x11949e=_0x5cd788[_0x4551f6(0x29e)](_0x51c0bb['SheetInterceptorService']),_0x2f44b7=_0x5cd788['get'](_0x3a908f[_0x4551f6(0x291)]),_0x407fa2={'unitId':_0x3d0e52,'subUnitId':_0x49ea68,'shapeId':_0x3d631f,'shapeType':_0x9b06fe,'shapeData':_0x577cd9},_0x4045d0=_0x3d9e8e['getShapeType'](),_0x294da9=_0x3d9e8e[_0x4551f6(0x1dd)](),{x:_0x93961c,y:_0x48d836}=_0x115209,_0x5c7de3={'left':_0x93961c,'top':_0x48d836,'width':_0x18ac3a,'height':_0x379cc0,'angle':(_0x8e2081=_0x1b6938['rotation'])==null?0x0:_0x8e2081,'flipX':(_0x4b5670=_0x1b6938['flipX'])==null?!0x1:_0x4b5670,'flipY':(_0xe8f8ce=_0x1b6938['flipY'])==null?!0x1:_0xe8f8ce},_0x43da74=(0x0,_0x3a908f[_0x4551f6(0x1de)])(_0x5c7de3,_0x1cbd8e),_0x2b2dc6=(0x0,_0x3a908f[_0x4551f6(0x1e7)])(_0x5c7de3,_0x1cbd8e),_0x2bb88b={'unitId':_0x3d0e52,'subUnitId':_0x49ea68,'drawingId':_0x3d631f,'drawingType':_0x4cf569[_0x4551f6(0x1d7)][_0x4551f6(0x298)],'name':_0x1b6938[_0x4551f6(0x21b)],'description':_0x1b6938[_0x4551f6(0x1f6)],'sheetTransform':_0x43da74,'transform':_0x5c7de3,'data':{'shapeType':_0x9b06fe,'shapeData':_0x577cd9},'axisAlignSheetTransform':_0x2b2dc6,'allowTransform':!0x0,'hidden':!_0x1b6938[_0x4551f6(0x1b0)],'selectable':_0x1b6938[_0x4551f6(0x23c)]};(0x0,_0x222f7d[_0x4551f6(0x1f1)])(_0x9b06fe)&&(_0x2bb88b[_0x4551f6(0x25e)][_0x4551f6(0x1aa)]=!0x1,_0x2bb88b[_0x4551f6(0x25e)][_0x4551f6(0x228)]=!0x1,_0x2bb88b[_0x4551f6(0x25e)][_0x4551f6(0x1c5)]=!0x1,_0x2bb88b[_0x4551f6(0x25e)][_0x4551f6(0x28d)]=!0x1,_0x2bb88b[_0x4551f6(0x223)][_0x4551f6(0x228)]=!0x1,_0x2bb88b[_0x4551f6(0x223)]['resizeEnabled']=!0x1,_0x2bb88b[_0x4551f6(0x223)][_0x4551f6(0x28d)]=!0x1);let {undo:_0x245222,redo:_0x1de092,objects:_0x5a5173}=_0x2f44b7[_0x4551f6(0x201)]([_0x2bb88b]),_0x6361f8=_0x11949e[_0x4551f6(0x1b6)]({'id':_0x3a908f[_0x4551f6(0x20b)]['id'],'params':{'unitId':_0x3d0e52,'drawings':[_0x2bb88b]}}),_0x5e1e32=[...(_0x4a150f=_0x6361f8['preRedos'])==null?[]:_0x4a150f,{'id':_0x3a908f[_0x4551f6(0x267)]['id'],'params':{'unitId':_0x3d0e52,'subUnitId':_0x49ea68,'op':_0x1de092,'objects':_0x5a5173,'type':_0x3a908f[_0x4551f6(0x227)][_0x4551f6(0x245)]}},{'id':_0x3a908f[_0x4551f6(0x28c)]['id'],'params':[_0x3d0e52]},..._0x6361f8[_0x4551f6(0x247)],{'id':_0x5c1630['id'],'params':_0x407fa2}],_0x2d1a3e=[...(_0x1d6e6c=_0x6361f8[_0x4551f6(0x289)])==null?[]:_0x1d6e6c,{'id':_0x3a908f['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3d0e52,'subUnitId':_0x49ea68,'op':_0x245222,'objects':_0x5a5173,'type':_0x3a908f[_0x4551f6(0x227)]['UPDATE']}},{'id':_0x3a908f[_0x4551f6(0x28c)]['id'],'params':[_0x3d0e52]},..._0x6361f8['undos'],{'id':_0x5c1630['id'],'params':{'unitId':_0x3d0e52,'subUnitId':_0x49ea68,'shapeType':_0x4045d0,'shapeId':_0x3d631f,'shapeData':_0x294da9}}];return(0x0,_0x4cf569['sequenceExecute'])(_0x5e1e32,_0x3c5e9a)[_0x4551f6(0x22b)]?(_0x4dce34[_0x4551f6(0x23a)]({'unitID':_0x3d0e52,'undoMutations':_0x2d1a3e,'redoMutations':_0x5e1e32}),!0x0):!0x1;}},_0x8fdead={'type':_0x4cf569[_0x8bc636(0x1e6)][_0x8bc636(0x266)],'id':_0x8bc636(0x22e),'handler':(_0x43b2d5,_0x3da65a)=>{const _0x35e86a=_0x8bc636;var _0x5d042a,_0x411648;let _0x165b65=(0x0,_0x51c0bb[_0x35e86a(0x1fb)])(_0x43b2d5[_0x35e86a(0x29e)](_0x4cf569[_0x35e86a(0x26f)]),_0x3da65a);if(!_0x165b65)return!0x1;let _0x2c8132=_0x43b2d5[_0x35e86a(0x29e)](_0x51c0bb[_0x35e86a(0x297)]),{unitId:_0x4bf84e,subUnitId:_0x340bba}=_0x165b65,_0x31bab4=_0x2c8132[_0x35e86a(0x1c4)](_0x4bf84e,_0x340bba);if(!_0x31bab4)return!0x1;let _0xe8c9e0=_0x43b2d5[_0x35e86a(0x29e)](_0x3a908f[_0x35e86a(0x291)]),{shapeId:_0x7f62e2,flipH:_0x49f093,flipV:_0xf18295}=_0x3da65a,_0x2315eb=_0xe8c9e0['getDrawingByParam']({'unitId':_0x4bf84e,'subUnitId':_0x340bba,'drawingId':_0x7f62e2});if(!_0x2315eb)return!0x1;let _0x2d9435=_0x43b2d5[_0x35e86a(0x29e)](_0x23101f)[_0x35e86a(0x259)](_0x4bf84e,_0x340bba,_0x7f62e2);if(!_0x2d9435)return!0x1;let _0x444948=_0x43b2d5[_0x35e86a(0x29e)](_0x4cf569['ICommandService']),_0x4f72fa=_0x43b2d5[_0x35e86a(0x29e)](_0x4cf569[_0x35e86a(0x256)]),_0x36a091=_0x43b2d5[_0x35e86a(0x29e)](_0x51c0bb[_0x35e86a(0x237)]),_0x5b7dbe={..._0x2315eb[_0x35e86a(0x223)]};_0x49f093!==void 0x0&&(_0x5b7dbe[_0x35e86a(0x1ae)]=!_0x5b7dbe[_0x35e86a(0x1ae)]),_0xf18295!==void 0x0&&(_0x5b7dbe[_0x35e86a(0x200)]=!_0x5b7dbe[_0x35e86a(0x200)]);let _0x16987b=(0x0,_0x3a908f[_0x35e86a(0x1de)])(_0x5b7dbe,_0x31bab4),_0x192f92=(0x0,_0x3a908f[_0x35e86a(0x1e7)])(_0x5b7dbe,_0x31bab4),_0x19ac4e=_0x2d9435[_0x35e86a(0x2a0)](),_0x334e39=_0x2d9435['getShapeData'](),_0x5bb1ae={'unitId':_0x4bf84e,'subUnitId':_0x340bba,'drawingId':_0x7f62e2,'drawingType':_0x4cf569[_0x35e86a(0x1d7)]['DRAWING_SHAPE'],'sheetTransform':_0x16987b,'transform':_0x5b7dbe,'data':{'shapeType':_0x19ac4e,'shapeData':_0x334e39},'axisAlignSheetTransform':_0x192f92,'allowTransform':!0x0},{undo:_0x169ecd,redo:_0x2a7554,objects:_0x1df50a}=_0xe8c9e0[_0x35e86a(0x201)]([_0x5bb1ae]),_0x14bfa5=_0x36a091[_0x35e86a(0x1b6)]({'id':_0x3a908f[_0x35e86a(0x20b)]['id'],'params':{'unitId':_0x4bf84e,'drawings':[_0x5bb1ae]}}),_0x139be0=[...(_0x5d042a=_0x14bfa5[_0x35e86a(0x24a)])==null?[]:_0x5d042a,{'id':_0x3a908f['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4bf84e,'subUnitId':_0x340bba,'op':_0x2a7554,'objects':_0x1df50a,'type':_0x3a908f['DrawingApplyType'][_0x35e86a(0x245)]}},{'id':_0x3a908f[_0x35e86a(0x28c)]['id'],'params':[_0x4bf84e]},..._0x14bfa5[_0x35e86a(0x247)]],_0x103211=[...(_0x411648=_0x14bfa5[_0x35e86a(0x289)])==null?[]:_0x411648,{'id':_0x3a908f[_0x35e86a(0x267)]['id'],'params':{'unitId':_0x4bf84e,'subUnitId':_0x340bba,'op':_0x169ecd,'objects':_0x1df50a,'type':_0x3a908f['DrawingApplyType'][_0x35e86a(0x245)]}},{'id':_0x3a908f['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4bf84e]},..._0x14bfa5[_0x35e86a(0x288)]];if((0x0,_0x222f7d[_0x35e86a(0x1f1)])(_0x19ac4e)){let _0x190d5c=_0x2d9435[_0x35e86a(0x27d)]();if(_0x190d5c){let _0x327873={..._0x190d5c};_0x327873[_0x35e86a(0x222)]=void 0x0,_0x327873['to']=void 0x0,_0x139be0[_0x35e86a(0x1d3)]({'id':_0x5c1630['id'],'params':{'unitId':_0x4bf84e,'subUnitId':_0x340bba,'shapeId':_0x7f62e2,'shapeType':_0x19ac4e,'shapeData':{'relation':_0x327873}}}),_0x103211['push']({'id':_0x5c1630['id'],'params':{'unitId':_0x4bf84e,'subUnitId':_0x340bba,'shapeId':_0x7f62e2,'shapeType':_0x19ac4e,'shapeData':{'relation':_0x190d5c}}});}}return(0x0,_0x4cf569[_0x35e86a(0x206)])(_0x139be0,_0x444948)[_0x35e86a(0x22b)]?(_0x4f72fa['pushUndoRedo']({'unitID':_0x4bf84e,'undoMutations':_0x103211,'redoMutations':_0x139be0}),!0x0):!0x1;}},_0x309e8f={'type':_0x4cf569[_0x8bc636(0x1e6)][_0x8bc636(0x266)],'id':_0x8bc636(0x27f),'handler':(_0x26290f,_0x4490fd)=>{const _0x2bba47=_0x8bc636;var _0x48c989,_0xe9213e;let _0x41a221=(0x0,_0x51c0bb[_0x2bba47(0x1fb)])(_0x26290f[_0x2bba47(0x29e)](_0x4cf569[_0x2bba47(0x26f)]),_0x4490fd);if(!_0x41a221)return!0x1;let _0x24a500=_0x26290f[_0x2bba47(0x29e)](_0x51c0bb['SheetSkeletonService']),{unitId:_0x5616c3,subUnitId:_0x19c796}=_0x41a221,_0x1d0160=_0x24a500['getSkeleton'](_0x5616c3,_0x19c796);if(!_0x1d0160)return!0x1;let _0x218a2b=_0x26290f['get'](_0x3a908f['ISheetDrawingService']),{shapeId:_0x3a7fb1,rotate:_0x2aa8a2}=_0x4490fd,_0x437c3a=_0x218a2b[_0x2bba47(0x21a)]({'unitId':_0x5616c3,'subUnitId':_0x19c796,'drawingId':_0x3a7fb1});if(!_0x437c3a)return!0x1;let _0x4a87f4=_0x26290f[_0x2bba47(0x29e)](_0x23101f)[_0x2bba47(0x259)](_0x5616c3,_0x19c796,_0x3a7fb1);if(!_0x4a87f4)return!0x1;let _0x3be8cf=_0x26290f[_0x2bba47(0x29e)](_0x4cf569[_0x2bba47(0x25b)]),_0x4c1950=_0x26290f[_0x2bba47(0x29e)](_0x4cf569['IUndoRedoService']),_0x5accb3=_0x26290f['get'](_0x51c0bb['SheetInterceptorService']),_0x439a22={..._0x437c3a[_0x2bba47(0x223)]};_0x2aa8a2!==void 0x0&&(_0x439a22[_0x2bba47(0x24f)]=(_0x439a22[_0x2bba47(0x24f)]||0x0)+_0x2aa8a2);let _0x14c9b6=(0x0,_0x3a908f[_0x2bba47(0x1de)])(_0x439a22,_0x1d0160),_0x18494e=(0x0,_0x3a908f[_0x2bba47(0x1e7)])(_0x439a22,_0x1d0160),_0x21054a=_0x4a87f4[_0x2bba47(0x2a0)](),_0x3c8891=_0x4a87f4['getShapeData'](),_0x26b402={'unitId':_0x5616c3,'subUnitId':_0x19c796,'drawingId':_0x3a7fb1,'drawingType':_0x4cf569[_0x2bba47(0x1d7)]['DRAWING_SHAPE'],'sheetTransform':_0x14c9b6,'transform':_0x439a22,'data':{'shapeType':_0x21054a,'shapeData':_0x3c8891},'axisAlignSheetTransform':_0x18494e,'allowTransform':!0x0},{undo:_0x5e962b,redo:_0x219e3f,objects:_0x2741c8}=_0x218a2b['getBatchUpdateOp']([_0x26b402]),_0x3bf94e=_0x5accb3[_0x2bba47(0x1b6)]({'id':_0x3a908f['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x5616c3,'drawings':[_0x26b402]}}),_0x1b7eaa=[...(_0x48c989=_0x3bf94e[_0x2bba47(0x24a)])==null?[]:_0x48c989,{'id':_0x3a908f[_0x2bba47(0x267)]['id'],'params':{'unitId':_0x5616c3,'subUnitId':_0x19c796,'op':_0x219e3f,'objects':_0x2741c8,'type':_0x3a908f[_0x2bba47(0x227)][_0x2bba47(0x245)]}},{'id':_0x3a908f[_0x2bba47(0x28c)]['id'],'params':[_0x5616c3]},..._0x3bf94e[_0x2bba47(0x247)]],_0x3e7207=[...(_0xe9213e=_0x3bf94e[_0x2bba47(0x289)])==null?[]:_0xe9213e,{'id':_0x3a908f[_0x2bba47(0x267)]['id'],'params':{'unitId':_0x5616c3,'subUnitId':_0x19c796,'op':_0x5e962b,'objects':_0x2741c8,'type':_0x3a908f[_0x2bba47(0x227)][_0x2bba47(0x245)]}},{'id':_0x3a908f[_0x2bba47(0x28c)]['id'],'params':[_0x5616c3]},..._0x3bf94e[_0x2bba47(0x288)]];return(0x0,_0x4cf569['sequenceExecute'])(_0x1b7eaa,_0x3be8cf)['result']?(_0x4c1950['pushUndoRedo']({'unitID':_0x5616c3,'undoMutations':_0x3e7207,'redoMutations':_0x1b7eaa}),!0x0):!0x1;}},_0x153f8b={'type':_0x4cf569[_0x8bc636(0x1e6)][_0x8bc636(0x266)],'id':_0x8bc636(0x277),'handler':(_0x47077e,_0x222985)=>{const _0x41d287=_0x8bc636;var _0xe6750b;let _0x5fc1c9=(0x0,_0x51c0bb[_0x41d287(0x1fb)])(_0x47077e['get'](_0x4cf569[_0x41d287(0x26f)]),_0x222985);if(!_0x5fc1c9)return!0x1;let {unitId:_0x405d36,subUnitId:_0x1612f3}=_0x5fc1c9,{shapeId:_0x5be48a}=_0x222985,_0x55bb99=_0x47077e[_0x41d287(0x29e)](_0x23101f)[_0x41d287(0x259)](_0x405d36,_0x1612f3,_0x5be48a);if(!_0x55bb99)return!0x1;let _0x58a777=_0x55bb99['getShapeTextData'](),_0x201ba8=(_0xe6750b=_0x58a777==null?void 0x0:_0x58a777[_0x41d287(0x1c6)])==null?!0x0:_0xe6750b,_0x1efb8e=!_0x201ba8,_0x2eab8d=_0x47077e[_0x41d287(0x29e)](_0x4cf569[_0x41d287(0x25b)]),_0x4c06a3=_0x47077e[_0x41d287(0x29e)](_0x4cf569['IUndoRedoService']),_0x419f35={'unitId':_0x405d36,'subUnitId':_0x1612f3,'shapeId':_0x5be48a,'shapeData':{'shapeText':{'isHorizontal':_0x1efb8e}}},_0x5ef27e={'unitId':_0x405d36,'subUnitId':_0x1612f3,'shapeId':_0x5be48a,'shapeData':{'shapeText':{'isHorizontal':_0x201ba8}}},_0x5e929a=[{'id':_0x5c1630['id'],'params':_0x419f35}],_0x4fe60e=[{'id':_0x5c1630['id'],'params':_0x5ef27e}];return(0x0,_0x4cf569[_0x41d287(0x206)])(_0x5e929a,_0x2eab8d)[_0x41d287(0x22b)]?(_0x4c06a3[_0x41d287(0x23a)]({'unitID':_0x405d36,'undoMutations':_0x4fe60e,'redoMutations':_0x5e929a}),!0x0):!0x1;}},_0xc2c399={'type':_0x4cf569['CommandType'][_0x8bc636(0x266)],'id':_0x8bc636(0x1be),'handler':(_0x31a802,_0x256284)=>{const _0x3f16d6=_0x8bc636;var _0xb5951,_0x226316,_0x2b480c,_0x301859;let _0x152eba=(0x0,_0x51c0bb[_0x3f16d6(0x1fb)])(_0x31a802[_0x3f16d6(0x29e)](_0x4cf569[_0x3f16d6(0x26f)]),_0x256284);if(!_0x152eba)return!0x1;let _0x12afd8=_0x31a802['get'](_0x51c0bb[_0x3f16d6(0x297)]),{unitId:_0x3817e4,subUnitId:_0x5b70d2}=_0x152eba,_0x2ec8ba=_0x12afd8[_0x3f16d6(0x1c4)](_0x3817e4,_0x5b70d2);if(!_0x2ec8ba)return!0x1;let _0x245ba3=_0x31a802[_0x3f16d6(0x29e)](_0x3a908f[_0x3f16d6(0x291)]),{connectorShapeId:_0x49bf18,width:_0x510dfa,height:_0x59a9ef,left:_0x2282c3,top:_0x130b97,flipX:_0x3509c5,flipY:_0x1f3d74,rotation:_0x3326a7,oldAdjustValues:_0x45aa18,newAdjustValues:_0x2d9656,oldLineType:_0x4f5d88,newLineType:_0x49a357,oldRelation:_0x40f00e,newRelation:_0x38801f}=_0x256284,_0xc11d67=_0x245ba3[_0x3f16d6(0x21a)]({'unitId':_0x3817e4,'subUnitId':_0x5b70d2,'drawingId':_0x49bf18});if(!_0xc11d67)return!0x1;let _0x1005db=_0x31a802['get'](_0x23101f)[_0x3f16d6(0x259)](_0x3817e4,_0x5b70d2,_0x49bf18);if(!_0x1005db)return!0x1;let _0x228869=_0x31a802[_0x3f16d6(0x29e)](_0x4cf569[_0x3f16d6(0x25b)]),_0x133ca2=_0x31a802[_0x3f16d6(0x29e)](_0x4cf569[_0x3f16d6(0x256)]),_0x271ca1=_0x31a802[_0x3f16d6(0x29e)](_0x51c0bb[_0x3f16d6(0x237)]),_0x506edc={..._0xc11d67[_0x3f16d6(0x223)],'width':_0x510dfa,'height':_0x59a9ef,'left':_0x2282c3,'top':_0x130b97,'flipX':_0x3509c5,'flipY':_0x1f3d74,'angle':(_0xb5951=_0x3326a7==null?(_0x226316=_0xc11d67[_0x3f16d6(0x223)])==null?void 0x0:_0x226316[_0x3f16d6(0x24f)]:_0x3326a7)==null?0x0:_0xb5951},_0x61a40f=(0x0,_0x3a908f[_0x3f16d6(0x1de)])(_0x506edc,_0x2ec8ba),_0x47325e=(0x0,_0x3a908f[_0x3f16d6(0x1e7)])(_0x506edc,_0x2ec8ba),_0x1d50d4=_0x1005db[_0x3f16d6(0x2a0)](),_0x14afb9=_0x1005db[_0x3f16d6(0x1dd)](),_0x1519a3={'unitId':_0x3817e4,'subUnitId':_0x5b70d2,'drawingId':_0x49bf18,'drawingType':_0x4cf569['DrawingTypeEnum'][_0x3f16d6(0x298)],'sheetTransform':_0x61a40f,'transform':_0x506edc,'data':{'shapeType':_0x49a357||_0x4f5d88||_0x1d50d4,'shapeData':{..._0x14afb9,'adjustValues':_0x2d9656||_0x45aa18||(_0x14afb9==null?void 0x0:_0x14afb9[_0x3f16d6(0x220)]),'relation':_0x38801f||_0x40f00e||(_0x14afb9==null?void 0x0:_0x14afb9['relation'])}},'axisAlignSheetTransform':_0x47325e,'allowTransform':!0x0},{undo:_0x43140b,redo:_0x302ce8,objects:_0x35d486}=_0x245ba3['getBatchUpdateOp']([_0x1519a3]),_0x413825=_0x271ca1[_0x3f16d6(0x1b6)]({'id':_0x3a908f[_0x3f16d6(0x20b)]['id'],'params':{'unitId':_0x3817e4,'drawings':[_0x1519a3]}}),_0xaed5cf=[...(_0x2b480c=_0x413825[_0x3f16d6(0x24a)])==null?[]:_0x2b480c,{'id':_0x3a908f[_0x3f16d6(0x267)]['id'],'params':{'unitId':_0x3817e4,'subUnitId':_0x5b70d2,'op':_0x302ce8,'objects':_0x35d486,'type':_0x3a908f[_0x3f16d6(0x227)][_0x3f16d6(0x245)]}},{'id':_0x3a908f[_0x3f16d6(0x28c)]['id'],'params':[_0x3817e4]},..._0x413825[_0x3f16d6(0x247)],{'id':_0x5c1630['id'],'params':{'unitId':_0x3817e4,'subUnitId':_0x5b70d2,'shapeId':_0x49bf18,'shapeType':_0x49a357,'shapeData':{'adjustValues':_0x2d9656,'relation':_0x38801f}}}],_0x4ddfda=[...(_0x301859=_0x413825['preUndos'])==null?[]:_0x301859,{'id':_0x3a908f[_0x3f16d6(0x267)]['id'],'params':{'unitId':_0x3817e4,'subUnitId':_0x5b70d2,'op':_0x43140b,'objects':_0x35d486,'type':_0x3a908f[_0x3f16d6(0x227)][_0x3f16d6(0x245)]}},{'id':_0x3a908f[_0x3f16d6(0x28c)]['id'],'params':[_0x3817e4]},..._0x413825[_0x3f16d6(0x288)],{'id':_0x5c1630['id'],'params':{'unitId':_0x3817e4,'subUnitId':_0x5b70d2,'shapeId':_0x49bf18,'shapeType':_0x1d50d4,'shapeData':{..._0x14afb9,'adjustValues':_0x45aa18||(_0x14afb9==null?void 0x0:_0x14afb9[_0x3f16d6(0x220)]),'relation':_0x40f00e||(_0x14afb9==null?void 0x0:_0x14afb9[_0x3f16d6(0x236)])}}}];return(0x0,_0x4cf569[_0x3f16d6(0x206)])(_0xaed5cf,_0x228869)['result']?(_0x133ca2[_0x3f16d6(0x23a)]({'unitID':_0x3817e4,'undoMutations':_0x4ddfda,'redoMutations':_0xaed5cf}),!0x0):!0x1;}},_0x125122={'type':_0x4cf569[_0x8bc636(0x1e6)]['COMMAND'],'id':_0x8bc636(0x213),'handler':(_0x1f592d,_0x952486)=>{const _0x3bf1f1=_0x8bc636;var _0x124754,_0x28e8b3;let _0x249988=(0x0,_0x51c0bb['getSheetCommandTarget'])(_0x1f592d[_0x3bf1f1(0x29e)](_0x4cf569[_0x3bf1f1(0x26f)]),_0x952486);if(!_0x249988)return!0x1;let _0x4662c1=_0x1f592d[_0x3bf1f1(0x29e)](_0x51c0bb['SheetSkeletonService']),{unitId:_0xfa505d,subUnitId:_0x48093f}=_0x249988,_0x42094b=_0x4662c1[_0x3bf1f1(0x1c4)](_0xfa505d,_0x48093f);if(!_0x42094b)return!0x1;let _0x954971=_0x1f592d[_0x3bf1f1(0x29e)](_0x3a908f[_0x3bf1f1(0x291)]),{shapeId:_0x1dd66a,width:_0x299190,height:_0x52c62a,left:_0x1f54bc,top:_0x51e935,flipX:_0x2021a8,flipY:_0x245eb5,angle:_0x55b42f,oldAdjustValues:_0x53698c,newAdjustValues:_0x756e41,oldLineType:_0x2917d9,newLineType:_0x28c1b3}=_0x952486,_0x262510=_0x954971[_0x3bf1f1(0x21a)]({'unitId':_0xfa505d,'subUnitId':_0x48093f,'drawingId':_0x1dd66a});if(!_0x262510)return!0x1;let _0xf936c9=_0x1f592d[_0x3bf1f1(0x29e)](_0x23101f)['getShapeModel'](_0xfa505d,_0x48093f,_0x1dd66a);if(!_0xf936c9)return!0x1;let _0x1aec35=_0x1f592d['get'](_0x4cf569[_0x3bf1f1(0x25b)]),_0x2e2874=_0x1f592d[_0x3bf1f1(0x29e)](_0x4cf569[_0x3bf1f1(0x256)]),_0x59ca54=_0x1f592d[_0x3bf1f1(0x29e)](_0x51c0bb['SheetInterceptorService']),_0x2cdb02={..._0x262510['transform'],'width':_0x299190,'height':_0x52c62a,'left':_0x1f54bc,'top':_0x51e935,'flipX':_0x2021a8,'flipY':_0x245eb5,'angle':_0x55b42f},_0x425a62=(0x0,_0x3a908f['transformToDrawingPosition'])(_0x2cdb02,_0x42094b),_0x1939fa=(0x0,_0x3a908f[_0x3bf1f1(0x1e7)])(_0x2cdb02,_0x42094b),_0x349857=_0xf936c9[_0x3bf1f1(0x2a0)](),_0x3fb55f=_0xf936c9[_0x3bf1f1(0x1dd)](),_0x118dfa={'unitId':_0xfa505d,'subUnitId':_0x48093f,'drawingId':_0x1dd66a,'drawingType':_0x4cf569[_0x3bf1f1(0x1d7)][_0x3bf1f1(0x298)],'sheetTransform':_0x425a62,'transform':_0x2cdb02,'data':{'shapeType':_0x28c1b3||_0x2917d9||_0x349857,'shapeData':{..._0x3fb55f,'adjustValues':_0x756e41||_0x53698c||(_0x3fb55f==null?void 0x0:_0x3fb55f['adjustValues'])}},'axisAlignSheetTransform':_0x1939fa,'allowTransform':!0x0},{undo:_0x321e42,redo:_0x541300,objects:_0x102662}=_0x954971[_0x3bf1f1(0x201)]([_0x118dfa]),_0x5add32=_0x59ca54[_0x3bf1f1(0x1b6)]({'id':_0x3a908f[_0x3bf1f1(0x20b)]['id'],'params':{'unitId':_0xfa505d,'drawings':[_0x118dfa]}}),_0x3cf833=[...(_0x124754=_0x5add32[_0x3bf1f1(0x24a)])==null?[]:_0x124754,{'id':_0x3a908f[_0x3bf1f1(0x267)]['id'],'params':{'unitId':_0xfa505d,'subUnitId':_0x48093f,'op':_0x541300,'objects':_0x102662,'type':_0x3a908f[_0x3bf1f1(0x227)][_0x3bf1f1(0x245)]}},{'id':_0x3a908f['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xfa505d]},..._0x5add32[_0x3bf1f1(0x247)],{'id':_0x5c1630['id'],'params':{'unitId':_0xfa505d,'subUnitId':_0x48093f,'shapeId':_0x1dd66a,'shapeType':_0x28c1b3,'shapeData':{'adjustValues':_0x756e41}}}],_0x134c90=[...(_0x28e8b3=_0x5add32[_0x3bf1f1(0x289)])==null?[]:_0x28e8b3,{'id':_0x3a908f['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xfa505d,'subUnitId':_0x48093f,'op':_0x321e42,'objects':_0x102662,'type':_0x3a908f[_0x3bf1f1(0x227)][_0x3bf1f1(0x245)]}},{'id':_0x3a908f[_0x3bf1f1(0x28c)]['id'],'params':[_0xfa505d]},..._0x5add32[_0x3bf1f1(0x288)],{'id':_0x5c1630['id'],'params':{'unitId':_0xfa505d,'subUnitId':_0x48093f,'shapeId':_0x1dd66a,'shapeType':_0x349857,'shapeData':{..._0x3fb55f,'adjustValues':_0x53698c||(_0x3fb55f==null?void 0x0:_0x3fb55f[_0x3bf1f1(0x220)])}}}];return(0x0,_0x4cf569[_0x3bf1f1(0x206)])(_0x3cf833,_0x1aec35)['result']?(_0x2e2874[_0x3bf1f1(0x23a)]({'unitID':_0xfa505d,'undoMutations':_0x134c90,'redoMutations':_0x3cf833}),!0x0):!0x1;}},_0x3f90fb={'id':_0x8bc636(0x221),'type':_0x4cf569[_0x8bc636(0x1e6)][_0x8bc636(0x1fa)],'handler':(_0x588b0d,_0xfe46ef)=>{const _0x14f054=_0x8bc636;let {unitId:_0x4da941,subUnitId:_0x3ccfe3,shapeType:_0x2d77e3,shapeId:_0xfaba31,shapeData:_0x4d65d9}=_0xfe46ef,_0x34efeb=_0x588b0d[_0x14f054(0x29e)](_0x23101f)[_0x14f054(0x259)](_0x4da941,_0x3ccfe3,_0xfaba31);return _0x34efeb&&(_0x34efeb[_0x14f054(0x1ca)](_0x2d77e3),_0x4d65d9&&(_0x34efeb==null||_0x34efeb[_0x14f054(0x1df)](_0x4d65d9))),!0x0;}};var _0x437877=_0x8bc636(0x20f),_0x528797=_0x8bc636(0x1bb);let _0x2b0b5f=class{constructor(_0xb79ab0,_0x592fc5,_0xe455a5){const _0x38a890=_0x8bc636;this[_0x38a890(0x1d2)]=_0xb79ab0,this[_0x38a890(0x1e5)]=_0x592fc5,this[_0x38a890(0x278)]=_0xe455a5,_0x3c413b(this,'hostType',_0x4cf569[_0x38a890(0x24b)][_0x38a890(0x203)]);}['getShape'](_0x21338b){const _0x3f8458=_0x8bc636;var _0x2ab130,_0x277944,_0x534ab7,_0x329bcc,_0x2ef303,_0x52c794,_0x3b824e,_0x30838c,_0x51ced8;let _0x375f4e=(_0x2ab130=this[_0x3f8458(0x278)]['getDrawingData'](_0x21338b[_0x3f8458(0x226)],_0x21338b[_0x3f8458(0x1c1)]))==null?void 0x0:_0x2ab130[_0x21338b[_0x3f8458(0x1f3)]],_0x1c69f5=this[_0x3f8458(0x1e5)][_0x3f8458(0x2a0)](_0x21338b[_0x3f8458(0x226)],_0x21338b[_0x3f8458(0x1c1)],_0x21338b[_0x3f8458(0x1f3)]);if(!_0x375f4e||_0x375f4e[_0x3f8458(0x250)]!==_0x4cf569['DrawingTypeEnum'][_0x3f8458(0x298)]||!_0x1c69f5)return null;let _0x1ebdca=_0x375f4e[_0x3f8458(0x223)];return{..._0x21338b,'shapeType':_0x1c69f5,'shapeData':_0x4cf569[_0x3f8458(0x28e)][_0x3f8458(0x264)]((_0x277944=this[_0x3f8458(0x1e5)][_0x3f8458(0x1b3)](_0x21338b[_0x3f8458(0x226)],_0x21338b[_0x3f8458(0x1c1)],_0x21338b[_0x3f8458(0x1f3)]))==null?{}:_0x277944),'name':_0x375f4e[_0x3f8458(0x21b)],'description':_0x375f4e[_0x3f8458(0x1f6)],'visible':_0x375f4e['hidden']!==!0x0,'selectable':_0x375f4e['selectable']!==!0x1,'transform':{'left':(_0x534ab7=_0x1ebdca==null?void 0x0:_0x1ebdca[_0x3f8458(0x269)])==null?0x0:_0x534ab7,'top':(_0x329bcc=_0x1ebdca==null?void 0x0:_0x1ebdca[_0x3f8458(0x216)])==null?0x0:_0x329bcc,'width':(_0x2ef303=_0x1ebdca==null?void 0x0:_0x1ebdca[_0x3f8458(0x1fe)])==null?0xc8:_0x2ef303,'height':(_0x52c794=_0x1ebdca==null?void 0x0:_0x1ebdca['height'])==null?0xc8:_0x52c794,'rotation':(_0x3b824e=_0x1ebdca==null?void 0x0:_0x1ebdca['angle'])==null?0x0:_0x3b824e,'flipX':(_0x30838c=_0x1ebdca==null?void 0x0:_0x1ebdca[_0x3f8458(0x1ae)])==null?!0x1:_0x30838c,'flipY':(_0x51ced8=_0x1ebdca==null?void 0x0:_0x1ebdca[_0x3f8458(0x200)])==null?!0x1:_0x51ced8}};}['listShapes'](_0x36f33c){const _0xbce4a2=_0x8bc636;var _0x16f59a;let _0x504c05=(_0x16f59a=this[_0xbce4a2(0x278)]['getDrawingData'](_0x36f33c[_0xbce4a2(0x226)],_0x36f33c['subUnitId']))==null?{}:_0x16f59a;return Object[_0xbce4a2(0x1ac)](_0x504c05)['filter'](_0x41048a=>(_0x41048a==null?void 0x0:_0x41048a[_0xbce4a2(0x250)])===_0x4cf569[_0xbce4a2(0x1d7)][_0xbce4a2(0x298)])[_0xbce4a2(0x202)](_0x3dc9be=>this[_0xbce4a2(0x1db)]({..._0x36f33c,'shapeId':_0x3dc9be[_0xbce4a2(0x27a)]}))[_0xbce4a2(0x243)](_0x3d6319=>!!_0x3d6319);}[_0x8bc636(0x23e)](_0x238086,_0x210e26){const _0x3d4566=_0x8bc636;var _0x2ada56,_0x4e2794,_0x35917a,_0x1286b4,_0x40d564,_0x96fb8,_0x33a447,_0x26fe98,_0x51fd5a,_0x41a5f0,_0x4a1fb1,_0x5681bc,_0x40c5fe,_0x3fd30e,_0xbf18bf,_0x1838f3,_0x3e837a,_0xcc2677,_0x34e080;let _0x3b24f4=(0x0,_0x4cf569['generateRandomId'])(),_0x323c3e={'left':(_0x2ada56=(_0x4e2794=_0x210e26[_0x3d4566(0x223)])==null?void 0x0:_0x4e2794['left'])==null?0x0:_0x2ada56,'top':(_0x35917a=(_0x1286b4=_0x210e26['transform'])==null?void 0x0:_0x1286b4['top'])==null?0x0:_0x35917a,'width':(_0x40d564=(_0x96fb8=_0x210e26[_0x3d4566(0x223)])==null?void 0x0:_0x96fb8[_0x3d4566(0x1fe)])==null?0xc8:_0x40d564,'height':(_0x33a447=(_0x26fe98=_0x210e26[_0x3d4566(0x223)])==null?void 0x0:_0x26fe98[_0x3d4566(0x1b4)])==null?0xc8:_0x33a447,'rotation':(_0x51fd5a=(_0x41a5f0=_0x210e26['transform'])==null?void 0x0:_0x41a5f0[_0x3d4566(0x27e)])==null?0x0:_0x51fd5a,'flipX':(_0x4a1fb1=(_0x5681bc=_0x210e26['transform'])==null?void 0x0:_0x5681bc[_0x3d4566(0x1ae)])==null?!0x1:_0x4a1fb1,'flipY':(_0x40c5fe=(_0x3fd30e=_0x210e26['transform'])==null?void 0x0:_0x3fd30e['flipY'])==null?!0x1:_0x40c5fe};return this[_0x3d4566(0x1d2)][_0x3d4566(0x1f5)](_0x473541['id'],{'unitId':_0x238086[_0x3d4566(0x226)],'subUnitId':_0x238086[_0x3d4566(0x1c1)],'shapeId':_0x3b24f4,'shapeType':_0x210e26[_0x3d4566(0x218)],'shapeData':_0x210e26[_0x3d4566(0x29b)],'name':_0x210e26[_0x3d4566(0x21b)],'description':_0x210e26[_0x3d4566(0x1f6)],'position':{'x':_0x323c3e['left'],'y':_0x323c3e[_0x3d4566(0x216)]},'width':_0x323c3e[_0x3d4566(0x1fe)],'height':_0x323c3e['height'],'rotation':_0x323c3e[_0x3d4566(0x27e)],'flipX':_0x323c3e[_0x3d4566(0x1ae)],'flipY':_0x323c3e['flipY'],'visible':(_0xbf18bf=_0x210e26[_0x3d4566(0x1b0)])==null?!0x0:_0xbf18bf,'selectable':(_0x1838f3=_0x210e26['selectable'])==null?!0x0:_0x1838f3})?{..._0x238086,'shapeId':_0x3b24f4,'shapeType':_0x210e26[_0x3d4566(0x218)],'shapeData':_0x4cf569[_0x3d4566(0x28e)][_0x3d4566(0x264)]((_0x3e837a=_0x210e26[_0x3d4566(0x29b)])==null?{}:_0x3e837a),'name':_0x210e26['name'],'description':_0x210e26[_0x3d4566(0x1f6)],'visible':(_0xcc2677=_0x210e26['visible'])==null?!0x0:_0xcc2677,'selectable':(_0x34e080=_0x210e26[_0x3d4566(0x23c)])==null?!0x0:_0x34e080,'transform':_0x323c3e}:null;}[_0x8bc636(0x238)](_0x210f9d,_0x4633f0){const _0x52c018=_0x8bc636;var _0xe2bd60,_0x1231aa,_0x1cefc0,_0x394812,_0x4286b8,_0x457662;let _0x1b1de8=this[_0x52c018(0x1db)](_0x210f9d);if(!_0x1b1de8)return!0x1;let _0x27177a={..._0x1b1de8[_0x52c018(0x223)],..._0x4633f0['transform']};return this['_commandService'][_0x52c018(0x1f5)](_0x10291e['id'],{'unitId':_0x210f9d[_0x52c018(0x226)],'subUnitId':_0x210f9d[_0x52c018(0x1c1)],'shapeId':_0x210f9d[_0x52c018(0x1f3)],'shapeType':(_0xe2bd60=(_0x1231aa=_0x4633f0[_0x52c018(0x218)])==null?(_0x1cefc0=_0x4633f0[_0x52c018(0x29b)])==null?void 0x0:_0x1cefc0[_0x52c018(0x218)]:_0x1231aa)==null?_0x1b1de8[_0x52c018(0x218)]:_0xe2bd60,'shapeData':(_0x394812=_0x4633f0[_0x52c018(0x29b)])==null?_0x1b1de8['shapeData']:_0x394812,'position':{'x':_0x27177a[_0x52c018(0x269)],'y':_0x27177a['top']},'width':_0x27177a['width'],'height':_0x27177a[_0x52c018(0x1b4)],'rotation':_0x27177a['rotation'],'flipX':_0x27177a[_0x52c018(0x1ae)],'flipY':_0x27177a[_0x52c018(0x200)],'name':'name'in _0x4633f0?_0x4633f0[_0x52c018(0x21b)]:_0x1b1de8[_0x52c018(0x21b)],'description':_0x52c018(0x1f6)in _0x4633f0?_0x4633f0[_0x52c018(0x1f6)]:_0x1b1de8[_0x52c018(0x1f6)],'visible':(_0x4286b8=_0x4633f0[_0x52c018(0x1b0)])==null?_0x1b1de8['visible']:_0x4286b8,'selectable':(_0x457662=_0x4633f0[_0x52c018(0x23c)])==null?_0x1b1de8[_0x52c018(0x23c)]:_0x457662});}[_0x8bc636(0x244)](_0x162ff4){const _0x1729e3=_0x8bc636;return this[_0x1729e3(0x1d2)][_0x1729e3(0x1f5)](_0x3a908f[_0x1729e3(0x233)]['id'],{'unitId':_0x162ff4['unitId'],'drawings':[{'unitId':_0x162ff4[_0x1729e3(0x226)],'subUnitId':_0x162ff4[_0x1729e3(0x1c1)],'drawingId':_0x162ff4[_0x1729e3(0x1f3)],'drawingType':_0x4cf569['DrawingTypeEnum'][_0x1729e3(0x298)]}]});}['bringToFront'](_0x3cc5d1){const _0x869b62=_0x8bc636;return this[_0x869b62(0x231)](_0x3cc5d1,_0x4cf569['ArrangeTypeEnum'][_0x869b62(0x239)]);}[_0x8bc636(0x1ee)](_0x23675c){const _0x1f7969=_0x8bc636;return this[_0x1f7969(0x231)](_0x23675c,_0x4cf569[_0x1f7969(0x246)][_0x1f7969(0x1c3)]);}[_0x8bc636(0x25d)](_0x494721){const _0x169731=_0x8bc636;return this[_0x169731(0x231)](_0x494721,_0x4cf569[_0x169731(0x246)]['backward']);}[_0x8bc636(0x1c0)](_0xe77020){const _0x3b607a=_0x8bc636;return this[_0x3b607a(0x231)](_0xe77020,_0x4cf569[_0x3b607a(0x246)][_0x3b607a(0x204)]);}['_arrange'](_0x3286b9,_0x4699a8){const _0x54f692=_0x8bc636;return this[_0x54f692(0x1d2)][_0x54f692(0x1f5)](_0x3a908f[_0x54f692(0x1e3)]['id'],{'unitId':_0x3286b9[_0x54f692(0x226)],'subUnitId':_0x3286b9[_0x54f692(0x1c1)],'drawingIds':[_0x3286b9[_0x54f692(0x1f3)]],'arrangeType':_0x4699a8});}};_0x2b0b5f=_0xf259c2([_0x6fcb7d(0x0,_0x4cf569[_0x8bc636(0x25b)]),_0x6fcb7d(0x1,(0x0,_0x4cf569[_0x8bc636(0x22d)])(_0x23101f)),_0x6fcb7d(0x2,_0x3a908f['ISheetDrawingService'])],_0x2b0b5f);let _0x353b25={},_0x3e192f=class extends _0x4cf569[_0x8bc636(0x270)]{constructor(_0x1d0261,_0x283d3b,_0x22fb4e,_0x4c6e9d,_0x545637,_0x145e6b,_0x48aa7f){const _0x730224=_0x8bc636;super(),this[_0x730224(0x1d2)]=_0x1d0261,this[_0x730224(0x1cd)]=_0x283d3b,this[_0x730224(0x1ce)]=_0x22fb4e,this[_0x730224(0x1ff)]=_0x4c6e9d,this[_0x730224(0x29f)]=_0x545637,this[_0x730224(0x1fc)]=_0x145e6b,this[_0x730224(0x26e)](),this[_0x730224(0x20a)](),this[_0x730224(0x1c2)](this['_shapeHostAdapterRegistry'][_0x730224(0x242)](_0x48aa7f));}[_0x8bc636(0x26e)](){const _0x296879=_0x8bc636;[_0x473541,_0x10291e,_0x8fdead,_0x309e8f,_0x153f8b,_0xc2c399,_0x125122,_0x21df94,_0x3e364e,_0x3f90fb,_0x5c1630][_0x296879(0x1f7)](_0x614c31=>this['disposeWithMe'](this[_0x296879(0x1d2)][_0x296879(0x1bd)](_0x614c31)));}[_0x8bc636(0x20a)](){const _0x13707e=_0x8bc636;this[_0x13707e(0x1c2)](this[_0x13707e(0x1cd)][_0x13707e(0x20e)]({'getMutations':_0xf63f29=>{const _0xc45a84=_0x13707e;if(_0xf63f29['id']===_0x3a908f['RemoveSheetDrawingCommand']['id']){let {drawings:_0x598202}=_0xf63f29['params'],_0x4e3381=_0x598202[_0xc45a84(0x243)](_0x39109e=>_0x39109e[_0xc45a84(0x250)]===_0x4cf569[_0xc45a84(0x1d7)][_0xc45a84(0x298)]);if(_0x4e3381[_0xc45a84(0x1bf)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x39c547=[],_0x11118d=[];return _0x4e3381['forEach'](_0x21a588=>{const _0x4198bc=_0xc45a84;let {unitId:_0x1d1f80,subUnitId:_0xb25c4b,drawingId:_0x59c858}=_0x21a588,_0x454671=this[_0x4198bc(0x1ff)][_0x4198bc(0x259)](_0x1d1f80,_0xb25c4b,_0x59c858);if(!_0x454671)throw TypeError(_0x4198bc(0x1ec)+_0x454671);_0x39c547[_0x4198bc(0x1d3)]({'id':_0x3e364e['id'],'params':{'unitId':_0x1d1f80,'subUnitId':_0xb25c4b,'shapeId':_0x59c858}}),_0x11118d[_0x4198bc(0x1d3)]({'id':_0x21df94['id'],'params':{'unitId':_0x1d1f80,'subUnitId':_0xb25c4b,'shapeId':_0x59c858,'shapeType':_0x454671[_0x4198bc(0x2a0)](),'shapeData':_0x454671['getShapeData']()}});let _0x20d97f=this['_sheetsShapeService'][_0x4198bc(0x273)](_0x1d1f80,_0xb25c4b,_0x59c858);if(_0x20d97f)for(let _0x4e6883 of _0x20d97f){let _0xe2536b=_0x4e6883[_0x4198bc(0x1cc)],_0x54259a=_0x4e6883['isFrom'],_0xee3cfc=_0x54259a?{'from':void 0x0}:{'to':void 0x0},_0xdc3d04=_0x54259a?{'from':{'shapeId':_0x4e6883[_0x4198bc(0x1f3)],'cxnIndex':_0x4e6883[_0x4198bc(0x255)]}}:{'to':{'shapeId':_0x4e6883[_0x4198bc(0x1f3)],'cxnIndex':_0x4e6883[_0x4198bc(0x255)]}};_0x39c547[_0x4198bc(0x1d3)]({'id':_0x5c1630['id'],'params':{'unitId':_0x1d1f80,'subUnitId':_0xb25c4b,'shapeId':_0xe2536b,'shapeData':{'relation':_0xee3cfc}}}),_0x11118d['push']({'id':_0x5c1630['id'],'params':{'unitId':_0x1d1f80,'subUnitId':_0xb25c4b,'shapeId':_0xe2536b,'shapeData':{'relation':_0xdc3d04}}});}}),{'preRedos':_0x39c547,'redos':[],'preUndos':[],'undos':_0x11118d};}if(_0xf63f29['id']===_0x3a908f[_0xc45a84(0x20b)]['id']){let {drawings:_0x3475d6}=_0xf63f29['params'],_0x38256a=_0x3475d6[_0xc45a84(0x243)](_0x4db8b7=>_0x4db8b7[_0xc45a84(0x250)]===_0x4cf569[_0xc45a84(0x1d7)][_0xc45a84(0x298)]);if(_0x38256a['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x5c8767=[],_0x3e1c31=[];for(let _0x340ca8 of _0x38256a){let {unitId:_0x336432,subUnitId:_0x3a105e,drawingId:_0x5899a4,transform:_0x4f733e}=_0x340ca8;if(!_0x336432||!_0x3a105e||!_0x5899a4||!_0x4f733e)continue;let _0x4a6b03=this['_sheetsShapeService']['getShapeModel'](_0x336432,_0x3a105e,_0x5899a4);if(!_0x4a6b03)throw TypeError(_0xc45a84(0x1ec)+_0x4a6b03);if((0x0,_0x222f7d['isConnectorShape'])(_0x4a6b03['getShapeType']())){let _0x53eff8=this[_0xc45a84(0x1ff)][_0xc45a84(0x224)](_0x336432,_0x3a105e,_0x5899a4);_0x53eff8&&(_0x5c8767[_0xc45a84(0x1d3)]({'id':_0x5c1630['id'],'params':{'unitId':_0x336432,'subUnitId':_0x3a105e,'shapeId':_0x5899a4,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x3e1c31[_0xc45a84(0x1d3)]({'id':_0x5c1630['id'],'params':{'unitId':_0x336432,'subUnitId':_0x3a105e,'shapeId':_0x5899a4,'shapeData':{'relation':_0x53eff8}}}));}else{let _0x26e025=this[_0xc45a84(0x1ff)][_0xc45a84(0x273)](_0x336432,_0x3a105e,_0x5899a4);if(_0x26e025&&_0x26e025[_0xc45a84(0x1bf)]>0x0)for(let _0x167411 of _0x26e025){let _0xa35daf=_0x167411['lineShapeId'],_0x5d0d6a=_0x167411[_0xc45a84(0x1d4)],_0x3d2069=this[_0xc45a84(0x1ff)]['getShapeModel'](_0x336432,_0x3a105e,_0xa35daf);if(!_0x3d2069)continue;let _0x42928=_0x3d2069['getStartConnectInfo'](),_0x257978=_0x3d2069['getEndConnectInfo']();_0x42928&&_0x257978?this[_0xc45a84(0x1b2)](_0x336432,_0x3a105e,_0xa35daf,_0x3d2069,_0x42928,_0x257978,_0x5c8767,_0x3e1c31,_0x5899a4,_0x4f733e):this['_addLineFollowShapeUpdates'](_0x336432,_0x3a105e,_0xa35daf,_0x3d2069,_0x5d0d6a?_0x42928:_0x257978,_0x5d0d6a,_0x5c8767,_0x3e1c31,_0x5899a4,_0x4f733e);}}}return{'preRedos':[],'redos':_0x5c8767,'preUndos':_0x3e1c31,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x4a53d9,_0x25fc9f,_0x145571,_0x479c2e,_0x23bdf1){const _0x4b03ae=_0x8bc636;if(!_0x25fc9f||!_0x145571)return null;let {shapeId:_0x2e78a0,cxnIndex:_0x514de0}=_0x4a53d9,_0x1f6528=this['_sheetsShapeService']['getShapeModel'](_0x25fc9f,_0x145571,_0x2e78a0);if(!_0x1f6528)return null;let _0x42f4e9=this['_drawingManagerService'][_0x4b03ae(0x21a)]({'unitId':_0x25fc9f,'subUnitId':_0x145571,'drawingId':_0x2e78a0});if(!(_0x42f4e9!=null&&_0x42f4e9['transform']))return null;let {left:_0x23b94d=0x0,top:_0x1be3dd=0x0,width:_0x16c51b=0x0,height:_0x46e89f=0x0,flipX:_0x5b4590=!0x1,flipY:_0x158529=!0x1,angle:_0x2c45a8}=_0x42f4e9[_0x4b03ae(0x223)];if(_0x23bdf1&&_0x479c2e===_0x2e78a0){var _0x2fae76,_0x490439,_0x191d44,_0xd50601,_0x2e363d,_0x38e805,_0x3ea434;_0x23b94d=(_0x2fae76=_0x23bdf1[_0x4b03ae(0x269)])==null?_0x23b94d:_0x2fae76,_0x1be3dd=(_0x490439=_0x23bdf1[_0x4b03ae(0x216)])==null?_0x1be3dd:_0x490439,_0x16c51b=(_0x191d44=_0x23bdf1[_0x4b03ae(0x1fe)])==null?_0x16c51b:_0x191d44,_0x46e89f=(_0xd50601=_0x23bdf1[_0x4b03ae(0x1b4)])==null?_0x46e89f:_0xd50601,_0x5b4590=(_0x2e363d=_0x23bdf1[_0x4b03ae(0x1ae)])==null?_0x5b4590:_0x2e363d,_0x158529=(_0x38e805=_0x23bdf1[_0x4b03ae(0x200)])==null?_0x158529:_0x38e805,_0x2c45a8=(_0x3ea434=_0x23bdf1[_0x4b03ae(0x24f)])==null?_0x2c45a8:_0x3ea434;}_0x1f6528[_0x4b03ae(0x272)]({'width':_0x16c51b,'height':_0x46e89f});let _0x1e4337=_0x1f6528[_0x4b03ae(0x1f9)]()[_0x4b03ae(0x26a)](_0xec86ee=>_0xec86ee[_0x4b03ae(0x260)]===_0x514de0);if(!_0x1e4337)return null;let _0x2b9ee1=_0x5b4590?_0x16c51b-_0x1e4337['x']:_0x1e4337['x'],_0x24cbac=_0x158529?_0x46e89f-_0x1e4337['y']:_0x1e4337['y'];if(_0x2c45a8!==0x0&&_0x2c45a8!=null){let _0x1f65d5=_0x2c45a8*Math['PI']/0xb4,_0x9e2c5=Math[_0x4b03ae(0x271)](_0x1f65d5),_0x4b596c=Math[_0x4b03ae(0x296)](_0x1f65d5),_0x930025=_0x16c51b/0x2,_0x1a004a=_0x46e89f/0x2,_0x2ea705=_0x2b9ee1-_0x930025,_0x1008a9=_0x24cbac-_0x1a004a;_0x2b9ee1=_0x930025+_0x2ea705*_0x9e2c5-_0x1008a9*_0x4b596c,_0x24cbac=_0x1a004a+_0x2ea705*_0x4b596c+_0x1008a9*_0x9e2c5;}_0x2b9ee1+=_0x23b94d,_0x24cbac+=_0x1be3dd;let _0x3eb083=_0x1e4337[_0x4b03ae(0x20c)]/0xea60;_0x5b4590&&(_0x3eb083=0xb4-_0x3eb083),_0x158529&&(_0x3eb083=-_0x3eb083),_0x3eb083+=_0x2c45a8||0x0,_0x3eb083=(_0x3eb083%0x168+0x168)%0x168;let _0x3dc434=(0x0,_0x222f7d[_0x4b03ae(0x294)])({'left':_0x23b94d,'top':_0x1be3dd,'width':_0x16c51b,'height':_0x46e89f},_0x2c45a8||0x0);return{'point':{'x':_0x2b9ee1,'y':_0x24cbac},'angle':_0x3eb083,'bounds':_0x3dc434};}[_0x8bc636(0x1b2)](_0x33ad83,_0xd2b4d8,_0x19d314,_0x3dad5d,_0x54658b,_0xb58ce9,_0x197e98,_0x3ff716,_0x5a0e89,_0x1b7dd1){const _0x4fc1c3=_0x8bc636;let _0x515891=this[_0x4fc1c3(0x1ce)]['getSkeleton'](_0x33ad83,_0xd2b4d8);if(!_0x515891)return;let _0x3fa096=_0x3dad5d[_0x4fc1c3(0x27d)](),_0x546477=_0x3dad5d['getAdjustNames'](),_0x2f2f0c={},_0x487886={};_0x546477[_0x4fc1c3(0x1f7)](_0x598b96=>{const _0x29fe78=_0x4fc1c3;let _0x51f989=_0x3dad5d[_0x29fe78(0x1f4)](_0x598b96);_0x487886[_0x598b96]=_0x51f989==null?0x0:_0x51f989;});let _0x5439cb=this[_0x4fc1c3(0x257)](_0x54658b,_0x33ad83,_0xd2b4d8,_0x5a0e89,_0x1b7dd1),_0x5cc66e=this[_0x4fc1c3(0x257)](_0xb58ce9,_0x33ad83,_0xd2b4d8,_0x5a0e89,_0x1b7dd1);if(_0x5439cb&&_0x5cc66e){let _0x44e919=_0x3dad5d[_0x4fc1c3(0x2a0)](),_0x42902e=(0x0,_0x222f7d[_0x4fc1c3(0x1d9)])(_0x5439cb,_0x5cc66e,_0x44e919),_0x31145c=_0x44e919;if(_0x42902e){let _0x4156a7=(0x0,_0x222f7d[_0x4fc1c3(0x263)])(_0x42902e,_0x3dad5d[_0x4fc1c3(0x2a0)]()),_0x5495e2=this[_0x4fc1c3(0x29f)]['getDrawingData'](_0x33ad83,_0xd2b4d8);if(_0x5495e2&&_0x5495e2[_0x19d314]){let _0x3ce695=_0x5495e2[_0x19d314];_0x31145c=_0x4156a7[_0x4fc1c3(0x286)];for(let [_0x1ed71e,_0x2bf9e9]of Object[_0x4fc1c3(0x1ed)](_0x4156a7[_0x4fc1c3(0x220)]))_0x2f2f0c[_0x1ed71e]=_0x2bf9e9;let _0x3b8355={..._0x3ce695['transform'],'width':_0x4156a7['worldRect'][_0x4fc1c3(0x1fe)],'height':_0x4156a7[_0x4fc1c3(0x24c)][_0x4fc1c3(0x1b4)],'left':_0x4156a7[_0x4fc1c3(0x24c)][_0x4fc1c3(0x269)],'top':_0x4156a7[_0x4fc1c3(0x24c)]['top'],'flipX':_0x4156a7[_0x4fc1c3(0x24c)][_0x4fc1c3(0x1ae)],'flipY':_0x4156a7[_0x4fc1c3(0x24c)][_0x4fc1c3(0x200)],'angle':_0x4156a7['rotation']},_0x101f99=(0x0,_0x3a908f['transformToDrawingPosition'])(_0x3b8355,_0x515891),_0x5adabf=(0x0,_0x3a908f['transformToAxisAlignPosition'])(_0x3b8355,_0x515891),_0x1564ef={'unitId':_0x33ad83,'subUnitId':_0xd2b4d8,'drawingType':_0x4cf569[_0x4fc1c3(0x1d7)][_0x4fc1c3(0x298)],'drawingId':_0x19d314,'transform':_0x3b8355,'sheetTransform':_0x101f99,'axisAlignSheetTransform':_0x5adabf},{unitId:_0x117972,subUnitId:_0x4cd25d,undo:_0x2865f5,redo:_0x4e0888,objects:_0xf7129}=this[_0x4fc1c3(0x29f)]['getBatchUpdateOp']([_0x1564ef]);_0x197e98[_0x4fc1c3(0x1d3)]({'id':_0x3a908f[_0x4fc1c3(0x267)]['id'],'params':{'unitId':_0x117972,'subUnitId':_0x4cd25d,'op':_0x4e0888,'objects':_0xf7129,'type':_0x3a908f['DrawingApplyType'][_0x4fc1c3(0x245)]}}),_0x3ff716['push']({'id':_0x3a908f['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x117972,'subUnitId':_0x4cd25d,'op':_0x2865f5,'objects':_0xf7129,'type':_0x3a908f['DrawingApplyType']['UPDATE']}});}_0x3dad5d[_0x4fc1c3(0x29a)]();}_0x197e98[_0x4fc1c3(0x1d3)]({'id':_0x5c1630['id'],'params':{'unitId':_0x33ad83,'subUnitId':_0xd2b4d8,'shapeId':_0x19d314,'shapeType':_0x31145c,'shapeData':{'adjustValues':_0x2f2f0c,'relation':_0x3fa096}}}),_0x3ff716[_0x4fc1c3(0x1d3)]({'id':_0x5c1630['id'],'params':{'unitId':_0x33ad83,'subUnitId':_0xd2b4d8,'shapeId':_0x19d314,'shapeType':_0x44e919,'shapeData':{'adjustValues':_0x487886,'relation':_0x3fa096}}});}}[_0x8bc636(0x274)](_0x120517,_0x379173,_0x1e4e2e,_0x134bfa,_0x34540b,_0x122f91,_0x2cc669,_0x26dc43,_0x430fd4,_0x365f78){const _0x13a1e6=_0x8bc636;var _0x3d73f9;if(!_0x34540b)return;let _0x5b1ffc=this['_sheetSkeletonService'][_0x13a1e6(0x1c4)](_0x120517,_0x379173);if(!_0x5b1ffc)return;let _0x5418e1=(_0x3d73f9=this[_0x13a1e6(0x29f)][_0x13a1e6(0x21a)]({'unitId':_0x120517,'subUnitId':_0x379173,'drawingId':_0x430fd4}))==null?void 0x0:_0x3d73f9[_0x13a1e6(0x223)];if(!_0x5418e1)return;let _0x11bb77=_0x5418e1['left']!==_0x365f78[_0x13a1e6(0x269)]||_0x5418e1[_0x13a1e6(0x216)]!==_0x365f78[_0x13a1e6(0x216)],_0x435349=_0x5418e1[_0x13a1e6(0x1fe)]!==_0x365f78[_0x13a1e6(0x1fe)]||_0x5418e1[_0x13a1e6(0x1b4)]!==_0x365f78[_0x13a1e6(0x1b4)],_0x4e1841=_0x5418e1['flipX']!==_0x365f78[_0x13a1e6(0x1ae)]||_0x5418e1[_0x13a1e6(0x200)]!==_0x365f78[_0x13a1e6(0x200)],_0x189ddf=_0x5418e1[_0x13a1e6(0x24f)]!==_0x365f78['angle'];if(_0x11bb77&&!_0x435349&&!_0x4e1841&&!_0x189ddf){var _0x2ad1c2,_0xb63229,_0x5ece52,_0x50100e;let _0x434ff6=((_0x2ad1c2=_0x365f78[_0x13a1e6(0x269)])==null?0x0:_0x2ad1c2)-((_0xb63229=_0x5418e1[_0x13a1e6(0x269)])==null?0x0:_0xb63229),_0x482062=((_0x5ece52=_0x365f78[_0x13a1e6(0x216)])==null?0x0:_0x5ece52)-((_0x50100e=_0x5418e1['top'])==null?0x0:_0x50100e),_0x5d9e1a=this['_drawingManagerService'][_0x13a1e6(0x293)](_0x120517,_0x379173);if(_0x5d9e1a&&_0x5d9e1a[_0x1e4e2e]){var _0x38421f,_0x615b11,_0x4d94e9,_0x4e5840;let _0x4ff87c=_0x5d9e1a[_0x1e4e2e],_0x2033dd={..._0x4ff87c[_0x13a1e6(0x223)],'left':((_0x38421f=(_0x615b11=_0x4ff87c[_0x13a1e6(0x223)])==null?void 0x0:_0x615b11[_0x13a1e6(0x269)])==null?0x0:_0x38421f)+_0x434ff6,'top':((_0x4d94e9=(_0x4e5840=_0x4ff87c['transform'])==null?void 0x0:_0x4e5840['top'])==null?0x0:_0x4d94e9)+_0x482062},_0x4050dc=(0x0,_0x3a908f[_0x13a1e6(0x1de)])(_0x2033dd,_0x5b1ffc),_0x10d9ad=(0x0,_0x3a908f[_0x13a1e6(0x1e7)])(_0x2033dd,_0x5b1ffc),_0x53feca={'unitId':_0x120517,'subUnitId':_0x379173,'drawingType':_0x4cf569['DrawingTypeEnum'][_0x13a1e6(0x298)],'drawingId':_0x1e4e2e,'transform':_0x2033dd,'sheetTransform':_0x4050dc,'axisAlignSheetTransform':_0x10d9ad},{unitId:_0x5812bc,subUnitId:_0x479840,undo:_0x58e61f,redo:_0x57f131,objects:_0x57137d}=this[_0x13a1e6(0x29f)]['getBatchUpdateOp']([_0x53feca]);_0x2cc669[_0x13a1e6(0x1d3)]({'id':_0x3a908f['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5812bc,'subUnitId':_0x479840,'op':_0x57f131,'objects':_0x57137d,'type':_0x3a908f[_0x13a1e6(0x227)]['UPDATE']}}),_0x26dc43[_0x13a1e6(0x1d3)]({'id':_0x3a908f[_0x13a1e6(0x267)]['id'],'params':{'unitId':_0x5812bc,'subUnitId':_0x479840,'op':_0x58e61f,'objects':_0x57137d,'type':_0x3a908f[_0x13a1e6(0x227)][_0x13a1e6(0x245)]}});}}else{let _0x7a388d=_0x134bfa[_0x13a1e6(0x23f)](),_0x228264=_0x134bfa[_0x13a1e6(0x235)]();this[_0x13a1e6(0x1b2)](_0x120517,_0x379173,_0x1e4e2e,_0x134bfa,_0x7a388d,_0x228264,_0x2cc669,_0x26dc43,_0x430fd4,_0x365f78);}}};_0x3e192f=_0xf259c2([_0x6fcb7d(0x0,_0x4cf569[_0x8bc636(0x25b)]),_0x6fcb7d(0x1,(0x0,_0x4cf569['Inject'])(_0x51c0bb['SheetInterceptorService'])),_0x6fcb7d(0x2,(0x0,_0x4cf569[_0x8bc636(0x22d)])(_0x51c0bb[_0x8bc636(0x297)])),_0x6fcb7d(0x3,(0x0,_0x4cf569[_0x8bc636(0x22d)])(_0x23101f)),_0x6fcb7d(0x4,(0x0,_0x4cf569['Inject'])(_0x1afd82[_0x8bc636(0x276)])),_0x6fcb7d(0x5,(0x0,_0x4cf569['Inject'])(_0x222f7d[_0x8bc636(0x26d)])),_0x6fcb7d(0x6,(0x0,_0x4cf569['Inject'])(_0x2b0b5f))],_0x3e192f);let _0x460136=class extends _0x4cf569['Plugin']{constructor(_0x1b2df6=_0x353b25,_0x1866a7,_0x5114fe){const _0x33e1f0=_0x8bc636;super(),this[_0x33e1f0(0x29c)]=_0x1b2df6,this[_0x33e1f0(0x215)]=_0x1866a7,this['_configService']=_0x5114fe;let {..._0x9b69e0}=(0x0,_0x4cf569['merge'])({},_0x353b25,this['_config']);this[_0x33e1f0(0x1d0)]['setConfig'](_0x33e1f0(0x1b9),_0x9b69e0);}['onStarting'](){const _0xba4cd9=_0x8bc636;let _0x4962ad=this['_injector'];[[_0x40c66a],[_0x23101f],[_0x2b0b5f],[_0x3e192f]]['forEach'](_0xfe28c3=>_0x4962ad[_0xba4cd9(0x1eb)](_0xfe28c3)),(0x0,_0x4cf569['touchDependencies'])(_0x4962ad,[[_0x23101f],[_0x3e192f]]);}};_0x3c413b(_0x460136,_0x8bc636(0x212),_0x4cf569['UniverInstanceType'][_0x8bc636(0x203)]),_0x3c413b(_0x460136,_0x8bc636(0x229),_0x8bc636(0x20d)),_0x3c413b(_0x460136,_0x8bc636(0x281),_0x437877),_0x3c413b(_0x460136,_0x8bc636(0x261),_0x528797),_0x460136=_0xf259c2([(0x0,_0x4cf569[_0x8bc636(0x22f)])(_0x41b454[_0x8bc636(0x219)],_0x222f7d[_0x8bc636(0x21e)]),_0x6fcb7d(0x1,(0x0,_0x4cf569['Inject'])(_0x4cf569[_0x8bc636(0x275)])),_0x6fcb7d(0x2,_0x4cf569[_0x8bc636(0x210)])],_0x460136),_0x5978ad[_0x8bc636(0x21d)]=0xc8,_0x5978ad[_0x8bc636(0x1f2)]=0xc8,_0x5978ad[_0x8bc636(0x295)]=_0x473541,_0x5978ad[_0x8bc636(0x248)]=_0x21df94,_0x5978ad['RemoveSheetsShapeMutation']=_0x3e364e,_0x5978ad['SetShapeDrawingDataCommand']=_0x10291e,_0x5978ad[_0x8bc636(0x21c)]=_0x309e8f,_0x5978ad[_0x8bc636(0x299)]=_0x153f8b,Object[_0x8bc636(0x1ad)](_0x5978ad,_0x8bc636(0x1ab),{'enumerable':!0x0,'get':function(){return _0x23101f;}}),_0x5978ad['ToggleSheetsShapeFlipCommand']=_0x8fdead,Object[_0x8bc636(0x1ad)](_0x5978ad,_0x8bc636(0x232),{'enumerable':!0x0,'get':function(){return _0x460136;}}),_0x5978ad['UpdateConnectorRelationCommand']=_0xc2c399,_0x5978ad['UpdateLineShapeResizeCommand']=_0x125122,_0x5978ad[_0x8bc636(0x211)]=_0x5c1630,_0x5978ad[_0x8bc636(0x1ea)]=_0x3f90fb;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.6",
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,18 +58,18 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs-pro/engine-shape": "1.0.0-alpha.5",
62
- "@univerjs/core": "1.0.0-alpha.5",
63
- "@univerjs/drawing": "1.0.0-alpha.5",
64
- "@univerjs-pro/license": "1.0.0-alpha.5",
65
- "@univerjs/sheets": "1.0.0-alpha.5",
66
- "@univerjs/sheets-drawing": "1.0.0-alpha.5"
61
+ "@univerjs-pro/license": "1.0.0-alpha.6",
62
+ "@univerjs-pro/engine-shape": "1.0.0-alpha.6",
63
+ "@univerjs/core": "1.0.0-alpha.6",
64
+ "@univerjs/sheets": "1.0.0-alpha.6",
65
+ "@univerjs/drawing": "1.0.0-alpha.6",
66
+ "@univerjs/sheets-drawing": "1.0.0-alpha.6"
67
67
  },
68
68
  "devDependencies": {
69
69
  "typescript": "^6.0.3",
70
70
  "vitest": "^4.1.10",
71
- "@univerjs/engine-render": "1.0.0-alpha.5",
72
- "@univerjs-infra/shared": "1.0.0-alpha.5"
71
+ "@univerjs/engine-render": "1.0.0-alpha.6",
72
+ "@univerjs-infra/shared": "1.0.0-alpha.6"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",