@univerjs-pro/sheets-shape 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x225b1f=_0x2588;(function(_0x44f386,_0x2a9234){const _0x242c9b=_0x2588,_0x5d6669=_0x44f386();while(!![]){try{const _0x1fc419=parseInt(_0x242c9b(0x138))/0x1+parseInt(_0x242c9b(0x1e7))/0x2+parseInt(_0x242c9b(0x15e))/0x3*(parseInt(_0x242c9b(0x1c6))/0x4)+-parseInt(_0x242c9b(0x19f))/0x5+-parseInt(_0x242c9b(0x15a))/0x6*(parseInt(_0x242c9b(0x12f))/0x7)+parseInt(_0x242c9b(0x19c))/0x8+-parseInt(_0x242c9b(0x1da))/0x9;if(_0x1fc419===_0x2a9234)break;else _0x5d6669['push'](_0x5d6669['shift']());}catch(_0x14c77f){_0x5d6669['push'](_0x5d6669['shift']());}}}(_0x6e62,0xe8266));function _0x6e62(){const _0x56f02c=['axisAlignSheetTransform','sheet.command.set-shape-drawing-data','CHART','getShapeRelation','createShape','sheet.command.insert-shape','command','removeShape','every','None','redos','transferShapeTo','cxnIndex','_drawingManagerService','ensureSkeleton','getAdjustValueByName','insertShape','type','_configService','resizeEnabled','GRID','hidden','_planDeletes','result','map','onCommandExecute','find','_shapeService','6sNqMfG','createFormulaLastValueMutation','_instanceService','getBasicShapeRelation','147qtDkPE','_arrange','forward','decorate','_sheetInterceptorService','keys','_injector','pluginName','top','params','UNIVER_SHEET','listShapes','INSERT','setConfig','has','getShapeData','sheet.mutation.insert-shape','from','getDrawingByParam','transform','function','disposeWithMe','unitId','front','getShapeModel','deletes','flipX','_groupIds','getShapeDataById','getSkeleton','forEach','packageName','entries','parse','getBasicShapeType','_shapeAdapter','getBatchUpdateOp','registerCommand','rotation','shapeChanged$','rehostShape','_sheetSkeletonService','sheet.command.update-connector-relation','_resourcesManagerService','getLineShapeRelation','relation','DRAWING_SHAPE','getShapeDisplayNames','getOwnPropertyDescriptor','push','formula','drawings','getName','updateShape','_planConnector','shapeData','fill','angle','clear','setShapeType','values','sin','4228624yEPaPa','get','getShapeType','2637435vHCjUF','constructor','filter','interceptCommand','description','toJSON','_shapes','getConnectionSiteList','startX','length','prototype','hasShape','rotateEnabled','deepClone','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getSheetId','pushUndoRedo','position','mode','name','backward','height','skeleton','updates','preRedos','_getConnectPointInfo','SHEET_SHAPE_PLUGIN','_getDrawingUpdates','worldRect','isFinite','getShape','lineShapeId','setZOrder','getShapeTextData','_commandService','drawingId','UPDATE','borderEnabled','sendBackward','48876tMLhDS','REMOVE','_addLineRerouteUpdates','bringToFront','version','getUnit','width','visible','_deserializeShapeForUnit','sheet.command.set-shape-rotate','delete','register','getDrawingData','_resolveBinding','left','subUnitId','lineType','onCommandExecuted','getEndConnectInfo','getConfig','5684148voiFWF','1.5.0','ang','object','originals','set','updateContext','_initCommands','MUTATION','dispose','_toSnapshot','getId','_shapeHostAdapterRegistry','745978zCPzIV','getStartConnectInfo','kind','setShapeData','undos','_linesIds','Both','adjustValues','sheets-shape.config','drawingType','_shapeModelManagerMap','_ensureShapeModelManager','onStarting','cos','isHorizontal','fromJSON','symbol','add','sheet.mutation.remove-shape','_addLineFollowShapeUpdates','getSheets','defineProperty','_initCommandInterceptor','data','sendToBack','selectable','_sheetsShapeService','_drawingService','startY','@univerjs-pro/sheets-shape','flipY','preUndos','shapeId','3613414ccqaAd','_initSnapshot','string','getBatchAddOp','shapeType','addShape','COMMAND','syncExecuteCommand','isFrom','1125849ftCBle','formulaBinding','getAdjustNames','_applyUpdate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','range'];_0x6e62=function(){return _0x56f02c;};return _0x6e62();}import{IShapeHostAdapterRegistry as _0x26e807,ShapeModel as _0x3e1cf5,UniverShapePlugin as _0x2d662f,buildConnectorEndpointUpdate as _0x39a6f1,canApplyShapeFormulaLastValue as _0x5cebb4,computeConnectorRouteLayout as _0x20b01f,createDefaultInsertedShapeData as _0x2169ba,createFreeConnectorPointInfo as _0x21057d,createUniqueShapeName as _0x4ff467,getBasicShapeRotateBound as _0x29238b,isConnectorShape as _0x10aa10,resolveConnectorRoutePoints as _0x2536c2,resolveShapeConnectionPoint as _0x150c8e,routeConnectorLineShape as _0x19932a}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x22aed2,CommandType as _0x4e919d,DependentOn as _0x4f8586,Disposable as _0x1b1f35,DrawingTypeEnum as _0x1b1709,ICommandService as _0x1220c4,IConfigService as _0x121a34,IResourceManagerService as _0x35f035,IUndoRedoService as _0x3626df,IUniverInstanceService as _0x2543b8,Inject as _0x9e5ef9,Injector as _0x28f5b9,Plugin as _0x543854,SheetTypes as _0x52a118,Tools as _0x56bc3c,UniverInstanceType as _0x32e2b1,generateRandomId as _0x34af8c,merge as _0x13580a,sequenceExecute as _0x5c6377,touchDependencies as _0x5e640a}from'@univerjs/core';import{SheetInterceptorService as _0x4c2afb,SheetSkeletonService as _0x32f773,UniverSheetsPlugin as _0x5b96cb,getSheetCommandTarget as _0x483059}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x5bdc79,DrawingApplyType as _0x2c701a,ISheetDrawingService as _0x5f3711,InsertSheetDrawingCommand as _0x3f8f5f,RemoveSheetDrawingCommand as _0x52d128,SetDrawingApplyMutation as _0xa539c0,SetDrawingArrangeCommand as _0x51e055,SetSheetDrawingCommand as _0x57d0bf,SetSheetDrawingPlacementCommand as _0xede2d4,SheetDrawingAnchorType as _0x105b85,SheetDrawingTransformPlanService as _0x1cf727,UniverSheetsDrawingPlugin as _0x5ad029,applySheetDrawingPlacement as _0x506f27,transformToAxisAlignPosition as _0x2d2bb4,transformToDrawingPosition as _0x3b3677}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x52e3ac}from'@univerjs-pro/license';import{IDrawingManagerService as _0x410964,UniverDrawingPlugin as _0xa332b5}from'@univerjs/drawing';function _0x2588(_0x46bc4e,_0x426019){_0x46bc4e=_0x46bc4e-0x11e;const _0x6e6291=_0x6e62();let _0x2588aa=_0x6e6291[_0x46bc4e];return _0x2588aa;}const oe=0xc8,se=0xc8;function ce(_0x30e5f7){'@babel/helpers - typeof';const _0x4a6c92=_0x2588;return ce=typeof Symbol==_0x4a6c92(0x172)&&typeof Symbol['iterator']==_0x4a6c92(0x11e)?function(_0x483d1a){return typeof _0x483d1a;}:function(_0x1d18a6){const _0x5074eb=_0x4a6c92;return _0x1d18a6&&typeof Symbol==_0x5074eb(0x172)&&_0x1d18a6[_0x5074eb(0x1a0)]===Symbol&&_0x1d18a6!==Symbol[_0x5074eb(0x1a9)]?_0x5074eb(0x11e):typeof _0x1d18a6;},ce(_0x30e5f7);}function le(_0x222cf9,_0x1b5cf1){const _0x4877cd=_0x2588;if(ce(_0x222cf9)!=_0x4877cd(0x1dd)||!_0x222cf9)return _0x222cf9;var _0x5ab897;if(typeof Symbol<'u'&&(_0x5ab897=_0x222cf9[Symbol['toPrimitive']])!==void 0x0){var _0x2dea99=_0x5ab897['call'](_0x222cf9,_0x1b5cf1||'default');if(ce(_0x2dea99)!='object')return _0x2dea99;throw TypeError(_0x4877cd(0x13c));}return(_0x1b5cf1===_0x4877cd(0x131)?String:Number)(_0x222cf9);}function ue(_0x385692){const _0x2c4242=_0x2588;var _0x41eb79=le(_0x385692,'string');return ce(_0x41eb79)==_0x2c4242(0x11e)?_0x41eb79:_0x41eb79+'';}function X(_0x27e95a,_0x292c44,_0x327181){const _0x3e349f=_0x2588;return(_0x292c44=ue(_0x292c44))in _0x27e95a?Object[_0x3e349f(0x123)](_0x27e95a,_0x292c44,{'value':_0x327181,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27e95a[_0x292c44]=_0x327181,_0x27e95a;}var de=class extends _0x1b1f35{constructor(){const _0x3cbc68=_0x2588;super(),X(this,_0x3cbc68(0x1a5),new Map()),X(this,_0x3cbc68(0x1ec),new Set()),X(this,_0x3cbc68(0x179),new Set());}['addShape'](_0x3bddbd,_0x19347e,_0x1b557b,_0x3b0b2f){const _0x5261f6=_0x2588;let _0xdc4dee=new _0x3e1cf5(_0x3bddbd,_0x19347e,_0x1b557b,_0x3b0b2f);return this[_0x5261f6(0x1a5)][_0x5261f6(0x1df)](_0x19347e,_0xdc4dee),_0x10aa10(_0x3bddbd)&&this[_0x5261f6(0x1ec)][_0x5261f6(0x11f)](_0x19347e),_0xdc4dee;}[_0x225b1f(0x15d)](_0x233dd1){const _0x8b42aa=_0x225b1f;let _0x3fed1e=[];for(let _0x39dd5d of this['_linesIds']){let _0x3f63ae=this[_0x8b42aa(0x1a5)]['get'](_0x39dd5d);if(_0x3f63ae){let _0x688c39=_0x3f63ae[_0x8b42aa(0x141)]();if(_0x688c39){var _0xcd7d37,_0x2179f0;((_0xcd7d37=_0x688c39[_0x8b42aa(0x16f)])==null?void 0x0:_0xcd7d37['shapeId'])===_0x233dd1&&_0x3fed1e[_0x8b42aa(0x18f)]({..._0x688c39['from'],'lineShapeId':_0x39dd5d,'isFrom':!0x0}),((_0x2179f0=_0x688c39['to'])==null?void 0x0:_0x2179f0['shapeId'])===_0x233dd1&&_0x3fed1e[_0x8b42aa(0x18f)]({..._0x688c39['to'],'lineShapeId':_0x39dd5d,'isFrom':!0x1});}}}return _0x3fed1e;}[_0x225b1f(0x18a)](_0x549d5f){const _0x593be0=_0x225b1f;let _0x5d13a4=this[_0x593be0(0x1a5)][_0x593be0(0x19d)](_0x549d5f);if(_0x5d13a4)return _0x5d13a4[_0x593be0(0x141)]();}[_0x225b1f(0x19e)](_0x17b530){const _0x466333=_0x225b1f;let _0x2bb127=this['_shapes'][_0x466333(0x19d)](_0x17b530);if(_0x2bb127)return _0x2bb127[_0x466333(0x19e)]();}[_0x225b1f(0x1aa)](_0x384704){const _0x1e3832=_0x225b1f;return this[_0x1e3832(0x1a5)][_0x1e3832(0x16c)](_0x384704);}['getShapeDisplayNames'](){const _0x18f965=_0x225b1f;return Array[_0x18f965(0x16f)](this[_0x18f965(0x1a5)]['values']())[_0x18f965(0x156)](_0x233003=>_0x233003[_0x18f965(0x192)]()||_0x233003[_0x18f965(0x1e5)]());}[_0x225b1f(0x149)](_0x294e86,_0x20e499){const _0x39431f=_0x225b1f;let _0x5a8ef7=this[_0x39431f(0x1a5)][_0x39431f(0x19d)](_0x20e499);return!_0x5a8ef7||_0x294e86['hasShape'](_0x20e499)?!0x1:(this[_0x39431f(0x145)](_0x20e499),_0x294e86[_0x39431f(0x1a5)][_0x39431f(0x1df)](_0x20e499,_0x5a8ef7),_0x10aa10(_0x5a8ef7[_0x39431f(0x19e)]())&&_0x294e86[_0x39431f(0x1ec)][_0x39431f(0x11f)](_0x20e499),!0x0);}[_0x225b1f(0x145)](_0x276546){const _0x15a98c=_0x225b1f;let _0xf07f03=this[_0x15a98c(0x1a5)]['get'](_0x276546);_0xf07f03&&(_0x10aa10(_0xf07f03[_0x15a98c(0x19e)]())&&this[_0x15a98c(0x1ec)][_0x15a98c(0x1d0)](_0x276546),this[_0x15a98c(0x1a5)][_0x15a98c(0x1d0)](_0x276546));}[_0x225b1f(0x1a4)](){const _0x4fa41d=_0x225b1f;let _0x5be7f8=[];return this[_0x4fa41d(0x1a5)][_0x4fa41d(0x17c)](_0x4ee4e1=>{const _0x52a815=_0x4fa41d;_0x5be7f8[_0x52a815(0x18f)](_0x4ee4e1[_0x52a815(0x1a4)]());}),_0x5be7f8;}[_0x225b1f(0x1f6)](_0x4c5a42){const _0xc5379c=_0x225b1f;for(let _0x3e7ab6 of _0x4c5a42){let {id:_0x39061a,shapeType:_0x26b78c,name:_0x43ccea}=_0x3e7ab6,_0x2d49fd=this[_0xc5379c(0x134)](_0x26b78c,_0x39061a,_0x3e7ab6[_0xc5379c(0x195)],_0x43ccea);_0x2d49fd&&_0x2d49fd['isLineShape']()&&this[_0xc5379c(0x1ec)][_0xc5379c(0x11f)](_0x39061a);}}[_0x225b1f(0x1e3)](){const _0x396ab6=_0x225b1f;this['_disposed']||(this[_0x396ab6(0x1a5)]['forEach'](_0x5b7d68=>{_0x5b7d68['dispose']();}),this[_0x396ab6(0x1a5)][_0x396ab6(0x198)](),this[_0x396ab6(0x1ec)]['clear'](),this['_groupIds'][_0x396ab6(0x198)](),super[_0x396ab6(0x1e3)]());}};function Z(_0x1eabc4,_0x4e03ca){return function(_0x483c47,_0x5f0146){_0x4e03ca(_0x483c47,_0x5f0146,_0x1eabc4);};}function fe(_0x1c2c90,_0x54cec6,_0x1c9e56,_0x17fda6){const _0x222109=_0x225b1f;var _0x3ba272=arguments['length'],_0x4e66a5=_0x3ba272<0x3?_0x54cec6:_0x17fda6===null?_0x17fda6=Object[_0x222109(0x18e)](_0x54cec6,_0x1c9e56):_0x17fda6,_0x577a9e;if(typeof Reflect=='object'&&typeof Reflect[_0x222109(0x161)]==_0x222109(0x172))_0x4e66a5=Reflect['decorate'](_0x1c2c90,_0x54cec6,_0x1c9e56,_0x17fda6);else{for(var _0xe59129=_0x1c2c90[_0x222109(0x1a8)]-0x1;_0xe59129>=0x0;_0xe59129--)(_0x577a9e=_0x1c2c90[_0xe59129])&&(_0x4e66a5=(_0x3ba272<0x3?_0x577a9e(_0x4e66a5):_0x3ba272>0x3?_0x577a9e(_0x54cec6,_0x1c9e56,_0x4e66a5):_0x577a9e(_0x54cec6,_0x1c9e56))||_0x4e66a5);}return _0x3ba272>0x3&&_0x4e66a5&&Object[_0x222109(0x123)](_0x54cec6,_0x1c9e56,_0x4e66a5),_0x4e66a5;}let Q=class extends _0x1b1f35{constructor(_0x40d24e){const _0x4ccc34=_0x225b1f;super(),this['_resourcesManagerService']=_0x40d24e,X(this,_0x4ccc34(0x1f1),new Map()),this[_0x4ccc34(0x130)]();}[_0x225b1f(0x1f2)](_0x487b29,_0x2f51c0){const _0x195b7b=_0x225b1f;let _0x6c03d5=this[_0x195b7b(0x1f1)][_0x195b7b(0x19d)](_0x487b29);_0x6c03d5||(_0x6c03d5=new Map(),this[_0x195b7b(0x1f1)]['set'](_0x487b29,_0x6c03d5));let _0x396674=_0x6c03d5[_0x195b7b(0x19d)](_0x2f51c0);return _0x396674||(_0x396674=new de(),_0x6c03d5['set'](_0x2f51c0,_0x396674)),_0x396674;}[_0x225b1f(0x14e)](_0x395d85,_0x20ef20,_0x8cada7,_0x2fa691,_0x38f531,_0x20b77b){const _0x321569=_0x225b1f;this['_ensureShapeModelManager'](_0x395d85,_0x20ef20)[_0x321569(0x134)](_0x8cada7,_0x2fa691,_0x38f531,_0x20b77b);}[_0x225b1f(0x186)](_0x346024,_0x29c307,_0xdcecb4,_0x2714de){const _0x4cb31c=_0x225b1f;var _0x383acc;let _0xd285ad=(_0x383acc=this[_0x4cb31c(0x1f1)][_0x4cb31c(0x19d)](_0x346024))==null?void 0x0:_0x383acc[_0x4cb31c(0x19d)](_0x29c307);return!_0xd285ad||_0x29c307===_0xdcecb4?!0x1:_0xd285ad[_0x4cb31c(0x149)](this[_0x4cb31c(0x1f2)](_0x346024,_0xdcecb4),_0x2714de);}[_0x225b1f(0x145)](_0x2c40d8,_0x542187,_0x23e188){const _0x49a3aa=_0x225b1f;this[_0x49a3aa(0x1f2)](_0x2c40d8,_0x542187)['removeShape'](_0x23e188);}[_0x225b1f(0x180)](_0x552d27,_0x6ab3de,_0x4526d8){const _0xce189e=_0x225b1f;return this[_0xce189e(0x1f2)](_0x552d27,_0x6ab3de)['getShapeType'](_0x4526d8);}[_0x225b1f(0x19e)](_0x4c654b,_0x1a07f0,_0x4d096c){const _0x151b63=_0x225b1f;return this[_0x151b63(0x1f2)](_0x4c654b,_0x1a07f0)[_0x151b63(0x19e)](_0x4d096c);}['hasShape'](_0x1462ea,_0x161e27,_0xff720){const _0x351e17=_0x225b1f;return this['_ensureShapeModelManager'](_0x1462ea,_0x161e27)[_0x351e17(0x1aa)](_0xff720);}['getShapeTypeById'](_0x3b005e,_0x1e4cbd,_0xd75998){const _0x16fbda=_0x225b1f;return this[_0x16fbda(0x1f2)](_0x3b005e,_0x1e4cbd)[_0x16fbda(0x19e)](_0xd75998);}['getShapeDataById'](_0x4e8f19,_0x5a3c63,_0x26000f){const _0x131546=_0x225b1f;let _0x259750=this[_0x131546(0x1f2)](_0x4e8f19,_0x5a3c63);if(!_0x259750[_0x131546(0x19e)](_0x26000f))return;let _0x3bc0f1=_0x259750['_shapes'][_0x131546(0x19d)](_0x26000f);if(_0x3bc0f1)return _0x3bc0f1[_0x131546(0x16d)]();}[_0x225b1f(0x18d)](_0x487663,_0x358cdc){const _0x4eb0fc=_0x225b1f;return this[_0x4eb0fc(0x1f2)](_0x487663,_0x358cdc)[_0x4eb0fc(0x18d)]();}[_0x225b1f(0x176)](_0x1a5d3a,_0x199fd0,_0x36edd9){const _0x3cf56b=_0x225b1f;return this[_0x3cf56b(0x1f2)](_0x1a5d3a,_0x199fd0)[_0x3cf56b(0x1a5)][_0x3cf56b(0x19d)](_0x36edd9);}['getBasicShapeRelation'](_0x50ca28,_0x568155,_0x1297a9){const _0x4bba55=_0x225b1f;return this[_0x4bba55(0x1f2)](_0x50ca28,_0x568155)[_0x4bba55(0x15d)](_0x1297a9);}[_0x225b1f(0x18a)](_0x510d97,_0x58bf43,_0x5acd84){const _0x2a995b=_0x225b1f;let _0x3e846a=this[_0x2a995b(0x1f2)](_0x510d97,_0x58bf43)[_0x2a995b(0x1a5)][_0x2a995b(0x19d)](_0x5acd84);if(_0x3e846a)return _0x3e846a[_0x2a995b(0x141)]();}[_0x225b1f(0x199)](){}['_serializeShapeForUnit'](_0xc4ff54){const _0x282fa1=_0x225b1f;let _0x354ad8={},_0x260702=this[_0x282fa1(0x1f1)]['get'](_0xc4ff54);return _0x260702&&_0x260702[_0x282fa1(0x17c)]((_0x31b3e9,_0x287e9a)=>{const _0x2b9553=_0x282fa1;let _0x37b6aa=_0x31b3e9[_0x2b9553(0x1a4)]();_0x37b6aa[_0x2b9553(0x1a8)]>0x0&&(_0x354ad8[_0x287e9a]=_0x37b6aa);}),JSON['stringify'](_0x354ad8);}[_0x225b1f(0x1ce)](_0x477885,_0x71f190){const _0x531689=_0x225b1f;Object[_0x531689(0x163)](_0x71f190)['forEach'](_0x143fce=>{const _0x266c3c=_0x531689;this[_0x266c3c(0x1f2)](_0x477885,_0x143fce)[_0x266c3c(0x1f6)](_0x71f190[_0x143fce]);});}[_0x225b1f(0x1a4)](){const _0x245e30=_0x225b1f;let _0x4f57f2={};return this[_0x245e30(0x1f1)][_0x245e30(0x17c)]((_0x197e34,_0x30efa7)=>{_0x4f57f2[_0x30efa7]={},_0x197e34['forEach']((_0x1589ed,_0x542ac5)=>{_0x4f57f2[_0x30efa7][_0x542ac5]=_0x1589ed['toJSON']();});}),_0x4f57f2;}[_0x225b1f(0x1f6)](_0x5a7295){const _0x570574=_0x225b1f;Object[_0x570574(0x163)](_0x5a7295)[_0x570574(0x17c)](_0x229ecd=>{const _0x1dd67c=_0x570574;let _0x32a699=_0x5a7295[_0x229ecd];Object['keys'](_0x32a699)[_0x1dd67c(0x17c)](_0x291dc0=>{const _0x2536ee=_0x1dd67c;this[_0x2536ee(0x1f2)](_0x229ecd,_0x291dc0)[_0x2536ee(0x1f6)](_0x32a699[_0x291dc0]);});});}[_0x225b1f(0x130)](){const _0x12b52b=_0x225b1f;this[_0x12b52b(0x189)]['registerPluginResource']({'pluginName':_0x12b52b(0x1b9),'businesses':[_0x32e2b1[_0x12b52b(0x168)]],'toJson':_0x3f8e81=>this['_serializeShapeForUnit'](_0x3f8e81),'parseJson':_0x5da1e0=>JSON[_0x12b52b(0x17f)](_0x5da1e0),'onLoad':(_0x1eca70,_0x5dc85d)=>{const _0x2db846=_0x12b52b;this[_0x2db846(0x1ce)](_0x1eca70,_0x5dc85d);},'onUnLoad':_0x2b2246=>{const _0x3df784=_0x12b52b;let _0x147188=this[_0x3df784(0x1f1)][_0x3df784(0x19d)](_0x2b2246);_0x147188&&(_0x147188['forEach'](_0x87f632=>{const _0x2e08cc=_0x3df784;_0x87f632[_0x2e08cc(0x1e3)]();}),this[_0x3df784(0x1f1)][_0x3df784(0x1d0)](_0x2b2246));}});}['dispose'](){const _0x4da379=_0x225b1f;this[_0x4da379(0x1f1)][_0x4da379(0x17c)](_0x14edb4=>{const _0x1979f5=_0x4da379;_0x14edb4[_0x1979f5(0x17c)](_0x586129=>{const _0x2b9447=_0x1979f5;_0x586129[_0x2b9447(0x1e3)]();});});}};Q=fe([Z(0x0,_0x35f035)],Q);const pe={'id':_0x225b1f(0x16e),'type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0x52f2a7,_0x3534ad)=>{const _0x507dd8=_0x225b1f;let {unitId:_0x31b3cd,subUnitId:_0x1aec7c,shapeType:_0x48be5b,shapeId:_0x5b6d5e,shapeName:_0x3f7795,shapeData:_0x1a5532}=_0x3534ad;return _0x52f2a7[_0x507dd8(0x19d)](Q)['insertShape'](_0x31b3cd,_0x1aec7c,_0x48be5b,_0x5b6d5e,_0x56bc3c[_0x507dd8(0x1ac)](_0x1a5532),_0x3f7795),!0x0;}},me={'id':_0x225b1f(0x120),'type':_0x4e919d['MUTATION'],'handler':(_0x11ed09,_0x2c6379)=>{let {unitId:_0x47cc1b,subUnitId:_0x2ef336,shapeId:_0x349de1}=_0x2c6379;return _0x11ed09['get'](Q)['removeShape'](_0x47cc1b,_0x2ef336,_0x349de1),!0x0;}},he={'type':_0x4e919d['COMMAND'],'id':_0x225b1f(0x143),'handler':(_0x139bb6,_0x4e96fc)=>{const _0xef97c5=_0x225b1f;let _0x102558=_0x483059(_0x139bb6[_0xef97c5(0x19d)](_0x2543b8),_0x4e96fc);if(!_0x102558)return!0x1;let {unitId:_0x9d3b66,subUnitId:_0x48e83a,worksheet:_0x3a4bca}=_0x102558,_0x1ae62d=_0x3a4bca[_0xef97c5(0x1d9)]()[_0xef97c5(0x14f)]??_0x52a118['GRID'],_0x1193bb=_0x1ae62d===_0x52a118[_0xef97c5(0x140)];if(!_0x1193bb&&_0x1ae62d!==_0x52a118[_0xef97c5(0x152)])return!0x1;let _0x204528=_0x1193bb?void 0x0:_0x139bb6[_0xef97c5(0x19d)](_0x32f773)[_0xef97c5(0x14c)](_0x9d3b66,_0x48e83a);if(!_0x1193bb&&!_0x204528)return!0x1;let _0x42d054=_0x1193bb?_0x4e96fc[_0xef97c5(0x1cc)]??0xc8:_0x4e96fc[_0xef97c5(0x1cc)]||0xc8,_0x371758=_0x1193bb?_0x4e96fc[_0xef97c5(0x1b4)]??0xc8:_0x4e96fc[_0xef97c5(0x1b4)]||0xc8,{position:_0x3f010e}=_0x4e96fc;if(_0x1193bb&&(!Number[_0xef97c5(0x1bc)](_0x42d054)||!Number[_0xef97c5(0x1bc)](_0x371758)||_0x42d054<=0x0||_0x371758<=0x0||_0x3f010e&&(!Number[_0xef97c5(0x1bc)](_0x3f010e['x'])||!Number['isFinite'](_0x3f010e['y']))))return!0x1;let _0x553d93=_0x139bb6[_0xef97c5(0x19d)](_0x1220c4),_0x179833=_0x139bb6['get'](_0x3626df),_0x289ff7=_0x139bb6['get'](_0x4c2afb),_0x6e31ac=_0x139bb6['get'](_0x5f3711),_0x56d31e=_0x139bb6[_0xef97c5(0x19d)](Q),{shapeType:_0x31b8ac}=_0x4e96fc,_0x34d4ac=_0x4e96fc['shapeData']??_0x2169ba(_0x31b8ac),_0xc6a6eb=_0x4e96fc[_0xef97c5(0x12e)]||_0x34af8c(),_0x5052dd={'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'shapeId':_0xc6a6eb,'shapeName':_0x4e96fc['shapeName']??_0x4ff467(_0x31b8ac,_0x56d31e[_0xef97c5(0x18d)](_0x9d3b66,_0x48e83a)),'shapeType':_0x31b8ac,'shapeData':_0x34d4ac},_0x580a0b=0x0,_0x1cc07f=0x0;if(_0x4e96fc[_0xef97c5(0x1b0)]){let {x:_0x1e5e8d,y:_0x4d1b14}=_0x4e96fc[_0xef97c5(0x1b0)];_0x580a0b=_0x1e5e8d,_0x1cc07f=_0x4d1b14;}else{if(_0x4e96fc[_0xef97c5(0x13d)]&&_0x204528){let {startRow:_0x1395a7,startColumn:_0x219a02}=_0x4e96fc[_0xef97c5(0x13d)],_0x159622=_0x204528['getCellWithCoordByIndex'](_0x1395a7,_0x219a02);_0x580a0b=_0x159622[_0xef97c5(0x1a7)]+0xa,_0x1cc07f=_0x159622[_0xef97c5(0x12a)]+0xa;}}let _0x1bb09d={'left':_0x580a0b,'top':_0x1cc07f,'width':_0x42d054,'height':_0x371758,'angle':_0x4e96fc[_0xef97c5(0x184)]??0x0,'flipX':_0x4e96fc[_0xef97c5(0x178)]??!0x1,'flipY':_0x4e96fc[_0xef97c5(0x12c)]??!0x1},_0x2825a5={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x57ed61=_0x204528?_0x3b3677(_0x1bb09d,_0x204528):{'from':_0x2825a5,'to':_0x2825a5},_0x46785d=_0x204528?_0x2d2bb4(_0x1bb09d,_0x204528):_0x57ed61,_0x1c5163={'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'drawingId':_0xc6a6eb,'drawingType':_0x1b1709[_0xef97c5(0x18c)],'anchorType':_0x105b85[_0xef97c5(0x1ed)],'name':_0x4e96fc['name'],'description':_0x4e96fc[_0xef97c5(0x1a3)],'sheetTransform':_0x57ed61,'transform':_0x1bb09d,'data':{'shapeType':_0x31b8ac,'shapeData':_0x34d4ac},'axisAlignSheetTransform':_0x46785d,'allowTransform':!0x0,'hidden':_0x4e96fc[_0xef97c5(0x1cd)]===!0x1,'selectable':_0x4e96fc[_0xef97c5(0x127)]??!0x0};if(_0x1193bb){let _0x2ab7b3=_0x506f27(_0x1c5163,{'kind':_0x105b85['None'],'left':_0x580a0b,'top':_0x1cc07f,'width':_0x42d054,'height':_0x371758});_0x1c5163={..._0x1c5163,'anchorType':_0x2ab7b3['anchorType'],'transform':_0x2ab7b3[_0xef97c5(0x171)],'sheetTransform':_0x2ab7b3['sheetTransform'],'axisAlignSheetTransform':_0x2ab7b3[_0xef97c5(0x13e)]};}_0x10aa10(_0x31b8ac)&&(_0x1c5163[_0xef97c5(0x125)][_0xef97c5(0x196)]=!0x1,_0x1c5163[_0xef97c5(0x125)]['rotateEnabled']=!0x1,_0x1c5163[_0xef97c5(0x125)]['resizeEnabled']=!0x1,_0x1c5163[_0xef97c5(0x125)][_0xef97c5(0x1c4)]=!0x1,_0x1c5163[_0xef97c5(0x171)][_0xef97c5(0x1ab)]=!0x1,_0x1c5163['transform'][_0xef97c5(0x151)]=!0x1,_0x1c5163['transform'][_0xef97c5(0x1c4)]=!0x1);let {undo:_0x5b951f,redo:_0x71f608,objects:_0x33aa85}=_0x6e31ac[_0xef97c5(0x132)]([_0x1c5163]),_0x313a36=_0x289ff7[_0xef97c5(0x157)]({'id':_0x3f8f5f['id'],'params':{'unitId':_0x9d3b66,'drawings':[_0x1c5163]}}),_0x344e4a=[..._0x313a36['preRedos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'op':_0x71f608,'objects':_0x33aa85,'type':_0x2c701a[_0xef97c5(0x16a)]}},{'id':_0x5bdc79['id'],'params':[_0x9d3b66]},..._0x313a36[_0xef97c5(0x148)],{'id':pe['id'],'params':_0x5052dd}],_0x49eb48=[{'id':me['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'shapeId':_0xc6a6eb}},..._0x313a36['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'op':_0x5b951f,'objects':_0x33aa85,'type':_0x2c701a[_0xef97c5(0x1c7)]}},{'id':_0x5bdc79['id'],'params':[_0x9d3b66]},..._0x313a36[_0xef97c5(0x1eb)]];return _0x5c6377(_0x344e4a,_0x553d93)['result']?(_0x179833[_0xef97c5(0x1af)]({'unitID':_0x9d3b66,'undoMutations':_0x49eb48,'redoMutations':_0x344e4a}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0x230c66,_0x116d35)=>{const _0x51d824=_0x225b1f;let {unitId:_0x4a190f,subUnitId:_0x4e0ad2,shapeType:_0x1a416f,shapeId:_0x5be7ff,shapeData:_0x4776b9,replace:_0x29e4ff,formulaLastValueGuard:_0x24b848}=_0x116d35,_0x37e9c6=_0x230c66[_0x51d824(0x19d)](Q)['getShapeModel'](_0x4a190f,_0x4e0ad2,_0x5be7ff);if(_0x37e9c6){var _0x177bdd;if(!_0x5cebb4(_0x230c66,{'hostType':_0x32e2b1[_0x51d824(0x168)],'unitId':_0x4a190f,'subUnitId':_0x4e0ad2,'shapeId':_0x5be7ff},(_0x177bdd=_0x37e9c6[_0x51d824(0x16d)]()[_0x51d824(0x139)])==null?void 0x0:_0x177bdd[_0x51d824(0x190)],_0x24b848))return!0x0;_0x1a416f!==void 0x0&&_0x37e9c6[_0x51d824(0x199)](_0x1a416f),_0x4776b9&&(_0x37e9c6==null||_0x37e9c6[_0x51d824(0x1ea)](_0x56bc3c[_0x51d824(0x1ac)](_0x4776b9),!_0x29e4ff));}return!0x0;}},ge={'type':_0x4e919d['COMMAND'],'id':_0x225b1f(0x13f),'handler':(_0x568e52,_0x2e1efc)=>{const _0x31b086=_0x225b1f;let _0x2811a7=_0x483059(_0x568e52['get'](_0x2543b8),_0x2e1efc);if(!_0x2811a7)return!0x1;let _0x555941=_0x568e52[_0x31b086(0x19d)](_0x32f773),{unitId:_0x46bf89,subUnitId:_0x34ab79}=_0x2811a7,_0x388d42=_0x555941['ensureSkeleton'](_0x46bf89,_0x34ab79);if(!_0x388d42)return!0x1;let _0xf7a617=_0x568e52[_0x31b086(0x19d)](Q),{shapeId:_0x397f46,shapeType:_0x3401f5,shapeData:_0x47efe4,position:_0x4bb77b,width:_0x46e26d,height:_0x225a0f}=_0x2e1efc,_0x17d489=_0xf7a617[_0x31b086(0x176)](_0x46bf89,_0x34ab79,_0x397f46);if(!_0x17d489)return!0x1;let _0x14c541=_0x568e52[_0x31b086(0x19d)](_0x1220c4),_0x2e2373=_0x568e52['get'](_0x3626df),_0x5b7859=_0x568e52[_0x31b086(0x19d)](_0x4c2afb),_0x3ee74c=_0x568e52['get'](_0x5f3711),_0x53f96e={'unitId':_0x46bf89,'subUnitId':_0x34ab79,'shapeId':_0x397f46,'shapeType':_0x3401f5,'shapeData':_0x47efe4,'replace':!0x0},_0x1e7fee=_0x17d489[_0x31b086(0x19e)](),_0x426bf5=_0x17d489[_0x31b086(0x16d)](),{x:_0x174522,y:_0x443bdb}=_0x4bb77b,_0x608629={'left':_0x174522,'top':_0x443bdb,'width':_0x46e26d,'height':_0x225a0f,'angle':_0x2e1efc[_0x31b086(0x184)]??0x0,'flipX':_0x2e1efc[_0x31b086(0x178)]??!0x1,'flipY':_0x2e1efc[_0x31b086(0x12c)]??!0x1},_0x4148c4=_0x3b3677(_0x608629,_0x388d42),_0x1b090e=_0x2d2bb4(_0x608629,_0x388d42),_0x5be16d={'unitId':_0x46bf89,'subUnitId':_0x34ab79,'drawingId':_0x397f46,'drawingType':_0x1b1709[_0x31b086(0x18c)],'name':_0x2e1efc[_0x31b086(0x1b2)],'description':_0x2e1efc['description'],'sheetTransform':_0x4148c4,'transform':_0x608629,'data':{'shapeType':_0x3401f5,'shapeData':_0x47efe4},'axisAlignSheetTransform':_0x1b090e,'allowTransform':!0x0,'hidden':!_0x2e1efc[_0x31b086(0x1cd)],'selectable':_0x2e1efc['selectable']};_0x10aa10(_0x3401f5)&&(_0x5be16d[_0x31b086(0x125)][_0x31b086(0x196)]=!0x1,_0x5be16d[_0x31b086(0x125)]['rotateEnabled']=!0x1,_0x5be16d[_0x31b086(0x125)][_0x31b086(0x151)]=!0x1,_0x5be16d[_0x31b086(0x125)]['borderEnabled']=!0x1,_0x5be16d['transform'][_0x31b086(0x1ab)]=!0x1,_0x5be16d[_0x31b086(0x171)]['resizeEnabled']=!0x1,_0x5be16d['transform'][_0x31b086(0x1c4)]=!0x1);let {undo:_0x1e68cb,redo:_0x4f0590,objects:_0x15682c}=_0x3ee74c['getBatchUpdateOp']([_0x5be16d]),_0x376b4f=_0x5b7859[_0x31b086(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x46bf89,'drawings':[_0x5be16d]}}),_0x512401=[..._0x376b4f[_0x31b086(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'op':_0x4f0590,'objects':_0x15682c,'type':_0x2c701a[_0x31b086(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x46bf89]},..._0x376b4f[_0x31b086(0x148)],{'id':$['id'],'params':_0x53f96e}],_0x4c1cfc=[..._0x376b4f[_0x31b086(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'op':_0x1e68cb,'objects':_0x15682c,'type':_0x2c701a[_0x31b086(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x46bf89]},..._0x376b4f[_0x31b086(0x1eb)],{'id':$['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'shapeType':_0x1e7fee,'shapeId':_0x397f46,'shapeData':_0x426bf5,'replace':!0x0}}];return _0x5c6377(_0x512401,_0x14c541)['result']?(_0x2e2373[_0x31b086(0x1af)]({'unitID':_0x46bf89,'undoMutations':_0x4c1cfc,'redoMutations':_0x512401}),!0x0):!0x1;}},_e={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.toggle-shape-flip','handler':(_0x46a1ba,_0x2327c4)=>{const _0x50a91f=_0x225b1f;let _0x26d24d=_0x483059(_0x46a1ba[_0x50a91f(0x19d)](_0x2543b8),_0x2327c4);if(!_0x26d24d)return!0x1;let _0x5d3229=_0x46a1ba[_0x50a91f(0x19d)](_0x32f773),{unitId:_0xb269ce,subUnitId:_0xeca1b3}=_0x26d24d,_0x58c3d4=_0x5d3229[_0x50a91f(0x17b)](_0xb269ce,_0xeca1b3);if(!_0x58c3d4)return!0x1;let _0xb9a7be=_0x46a1ba['get'](_0x5f3711),{shapeId:_0x1fa7d3,flipH:_0x5ecf28,flipV:_0x57135d}=_0x2327c4,_0x36fa9b=_0xb9a7be[_0x50a91f(0x170)]({'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'drawingId':_0x1fa7d3});if(!_0x36fa9b)return!0x1;let _0x46f0b8=_0x46a1ba[_0x50a91f(0x19d)](Q)[_0x50a91f(0x176)](_0xb269ce,_0xeca1b3,_0x1fa7d3);if(!_0x46f0b8)return!0x1;let _0x355689=_0x46a1ba['get'](_0x1220c4),_0x33b380=_0x46a1ba[_0x50a91f(0x19d)](_0x3626df),_0x361d97=_0x46a1ba[_0x50a91f(0x19d)](_0x4c2afb),_0xfaef0f={..._0x36fa9b['transform']};_0x5ecf28!==void 0x0&&(_0xfaef0f[_0x50a91f(0x178)]=!_0xfaef0f[_0x50a91f(0x178)]),_0x57135d!==void 0x0&&(_0xfaef0f[_0x50a91f(0x12c)]=!_0xfaef0f[_0x50a91f(0x12c)]);let _0x27bdb3=_0x3b3677(_0xfaef0f,_0x58c3d4),_0x9c3783=_0x2d2bb4(_0xfaef0f,_0x58c3d4),_0x24585d=_0x46f0b8[_0x50a91f(0x19e)](),_0x2942dd=_0x46f0b8[_0x50a91f(0x16d)](),_0x196302={'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'drawingId':_0x1fa7d3,'drawingType':_0x1b1709[_0x50a91f(0x18c)],'sheetTransform':_0x27bdb3,'transform':_0xfaef0f,'data':{'shapeType':_0x24585d,'shapeData':_0x2942dd},'axisAlignSheetTransform':_0x9c3783,'allowTransform':!0x0},{undo:_0x20fb15,redo:_0x25237d,objects:_0x54906c}=_0xb9a7be[_0x50a91f(0x182)]([_0x196302]),_0x5d8801=_0x361d97['onCommandExecute']({'id':_0x57d0bf['id'],'params':{'unitId':_0xb269ce,'drawings':[_0x196302]}}),_0x43f64d=[..._0x5d8801[_0x50a91f(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'op':_0x25237d,'objects':_0x54906c,'type':_0x2c701a['UPDATE']}},{'id':_0x5bdc79['id'],'params':[_0xb269ce]},..._0x5d8801[_0x50a91f(0x148)]],_0x72680e=[..._0x5d8801['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'op':_0x20fb15,'objects':_0x54906c,'type':_0x2c701a[_0x50a91f(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0xb269ce]},..._0x5d8801[_0x50a91f(0x1eb)]];if(_0x10aa10(_0x24585d)){let _0x2aba0c=_0x46f0b8[_0x50a91f(0x141)]();if(_0x2aba0c){let _0x269213={..._0x2aba0c};_0x269213[_0x50a91f(0x16f)]=void 0x0,_0x269213['to']=void 0x0,_0x43f64d[_0x50a91f(0x18f)]({'id':$['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'shapeId':_0x1fa7d3,'shapeType':_0x24585d,'shapeData':{'relation':_0x269213}}}),_0x72680e[_0x50a91f(0x18f)]({'id':$['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'shapeId':_0x1fa7d3,'shapeType':_0x24585d,'shapeData':{'relation':_0x2aba0c}}});}}return _0x5c6377(_0x43f64d,_0x355689)['result']?(_0x33b380[_0x50a91f(0x1af)]({'unitID':_0xb269ce,'undoMutations':_0x72680e,'redoMutations':_0x43f64d}),!0x0):!0x1;}},ve={'type':_0x4e919d[_0x225b1f(0x135)],'id':_0x225b1f(0x1cf),'handler':(_0x4bb44c,_0x51ab9f)=>{const _0x5c8da6=_0x225b1f;let _0x2b745a=_0x483059(_0x4bb44c[_0x5c8da6(0x19d)](_0x2543b8),_0x51ab9f);if(!_0x2b745a)return!0x1;let _0x2570ae=_0x4bb44c[_0x5c8da6(0x19d)](_0x32f773),{unitId:_0x89676a,subUnitId:_0x591d65}=_0x2b745a,_0x1e576d=_0x2570ae['getSkeleton'](_0x89676a,_0x591d65);if(!_0x1e576d)return!0x1;let _0x11b7b0=_0x4bb44c['get'](_0x5f3711),{shapeId:_0x548c88,rotate:_0x206129}=_0x51ab9f,_0x1301f8=_0x11b7b0['getDrawingByParam']({'unitId':_0x89676a,'subUnitId':_0x591d65,'drawingId':_0x548c88});if(!_0x1301f8)return!0x1;let _0x10b004=_0x4bb44c[_0x5c8da6(0x19d)](Q)['getShapeModel'](_0x89676a,_0x591d65,_0x548c88);if(!_0x10b004)return!0x1;let _0x51688b=_0x4bb44c[_0x5c8da6(0x19d)](_0x1220c4),_0x1a42f6=_0x4bb44c[_0x5c8da6(0x19d)](_0x3626df),_0x45ea10=_0x4bb44c['get'](_0x4c2afb),_0x296fd8={..._0x1301f8[_0x5c8da6(0x171)]};_0x206129!==void 0x0&&(_0x296fd8[_0x5c8da6(0x197)]=(_0x296fd8['angle']||0x0)+_0x206129);let _0x475b9a=_0x3b3677(_0x296fd8,_0x1e576d),_0x455db1=_0x2d2bb4(_0x296fd8,_0x1e576d),_0x508cd1=_0x10b004['getShapeType'](),_0x56ade5=_0x10b004[_0x5c8da6(0x16d)](),_0x4f6fe4={'unitId':_0x89676a,'subUnitId':_0x591d65,'drawingId':_0x548c88,'drawingType':_0x1b1709[_0x5c8da6(0x18c)],'sheetTransform':_0x475b9a,'transform':_0x296fd8,'data':{'shapeType':_0x508cd1,'shapeData':_0x56ade5},'axisAlignSheetTransform':_0x455db1,'allowTransform':!0x0},{undo:_0x26aa79,redo:_0x16930f,objects:_0x14a2f5}=_0x11b7b0[_0x5c8da6(0x182)]([_0x4f6fe4]),_0x521c49=_0x45ea10['onCommandExecute']({'id':_0x57d0bf['id'],'params':{'unitId':_0x89676a,'drawings':[_0x4f6fe4]}}),_0x54a0bd=[..._0x521c49[_0x5c8da6(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x89676a,'subUnitId':_0x591d65,'op':_0x16930f,'objects':_0x14a2f5,'type':_0x2c701a[_0x5c8da6(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x89676a]},..._0x521c49[_0x5c8da6(0x148)]],_0x1f6eb1=[..._0x521c49[_0x5c8da6(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x89676a,'subUnitId':_0x591d65,'op':_0x26aa79,'objects':_0x14a2f5,'type':_0x2c701a[_0x5c8da6(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x89676a]},..._0x521c49[_0x5c8da6(0x1eb)]];return _0x5c6377(_0x54a0bd,_0x51688b)['result']?(_0x1a42f6[_0x5c8da6(0x1af)]({'unitID':_0x89676a,'undoMutations':_0x1f6eb1,'redoMutations':_0x54a0bd}),!0x0):!0x1;}},ye={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x25e1d5,_0x4bcc67)=>{const _0xe860f6=_0x225b1f;let _0x978063=_0x483059(_0x25e1d5[_0xe860f6(0x19d)](_0x2543b8),_0x4bcc67);if(!_0x978063)return!0x1;let {unitId:_0x3cfd41,subUnitId:_0x337780}=_0x978063,{shapeId:_0x2138a3}=_0x4bcc67,_0x6dae88=_0x25e1d5[_0xe860f6(0x19d)](Q)['getShapeModel'](_0x3cfd41,_0x337780,_0x2138a3);if(!_0x6dae88)return!0x1;let _0x43f15e=_0x6dae88[_0xe860f6(0x1c0)](),_0x3ff202=(_0x43f15e==null?void 0x0:_0x43f15e[_0xe860f6(0x1f5)])??!0x0,_0x4f3008=!_0x3ff202,_0x490733=_0x25e1d5[_0xe860f6(0x19d)](_0x1220c4),_0x4524e9=_0x25e1d5[_0xe860f6(0x19d)](_0x3626df),_0x4da293={'unitId':_0x3cfd41,'subUnitId':_0x337780,'shapeId':_0x2138a3,'shapeData':{'shapeText':{'isHorizontal':_0x4f3008}}},_0x4640d0={'unitId':_0x3cfd41,'subUnitId':_0x337780,'shapeId':_0x2138a3,'shapeData':{'shapeText':{'isHorizontal':_0x3ff202}}},_0x4ba5e5=[{'id':$['id'],'params':_0x4da293}],_0x2c7758=[{'id':$['id'],'params':_0x4640d0}];return _0x5c6377(_0x4ba5e5,_0x490733)[_0xe860f6(0x155)]?(_0x4524e9[_0xe860f6(0x1af)]({'unitID':_0x3cfd41,'undoMutations':_0x2c7758,'redoMutations':_0x4ba5e5}),!0x0):!0x1;}},be={'type':_0x4e919d[_0x225b1f(0x135)],'id':_0x225b1f(0x188),'handler':(_0x23ae85,_0x43c2b2)=>{const _0x132577=_0x225b1f;var _0x583718;let _0x5bdc69=_0x483059(_0x23ae85[_0x132577(0x19d)](_0x2543b8),_0x43c2b2);if(!_0x5bdc69)return!0x1;let _0x3a8730=_0x23ae85[_0x132577(0x19d)](_0x32f773),{unitId:_0x3201c4,subUnitId:_0x2f0b84}=_0x5bdc69,_0x3e2f30=_0x3a8730['getSkeleton'](_0x3201c4,_0x2f0b84);if(!_0x3e2f30)return!0x1;let _0xf54c57=_0x23ae85['get'](_0x5f3711),{connectorShapeId:_0xb18d6,width:_0x5b59df,height:_0x4fe893,left:_0x9a8516,top:_0x5ced4c,flipX:_0x56b6f3,flipY:_0x3518af,rotation:_0x497574,oldAdjustValues:_0x3fc188,newAdjustValues:_0x377f33,oldLineType:_0x2d2d89,newLineType:_0x3cd072,oldRelation:_0x38034e,newRelation:_0xdb4232}=_0x43c2b2,_0xe49db6=_0xf54c57['getDrawingByParam']({'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'drawingId':_0xb18d6});if(!_0xe49db6)return!0x1;let _0x383ffd=_0x23ae85[_0x132577(0x19d)](Q)[_0x132577(0x176)](_0x3201c4,_0x2f0b84,_0xb18d6);if(!_0x383ffd)return!0x1;let _0x59f3e5=_0x23ae85[_0x132577(0x19d)](_0x1220c4),_0x40d03a=_0x23ae85['get'](_0x3626df),_0xfa0c06=_0x23ae85[_0x132577(0x19d)](_0x4c2afb),_0x179955={..._0xe49db6[_0x132577(0x171)],'width':_0x5b59df,'height':_0x4fe893,'left':_0x9a8516,'top':_0x5ced4c,'flipX':_0x56b6f3,'flipY':_0x3518af,'angle':_0x497574??((_0x583718=_0xe49db6[_0x132577(0x171)])==null?void 0x0:_0x583718[_0x132577(0x197)])??0x0},_0xa62121=_0x3b3677(_0x179955,_0x3e2f30),_0x5e94b5=_0x2d2bb4(_0x179955,_0x3e2f30),_0x1fadf0=_0x383ffd['getShapeType'](),_0x10c263=_0x383ffd[_0x132577(0x16d)](),_0x4d7ab6={'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'drawingId':_0xb18d6,'drawingType':_0x1b1709[_0x132577(0x18c)],'sheetTransform':_0xa62121,'transform':_0x179955,'data':{'shapeType':_0x3cd072||_0x2d2d89||_0x1fadf0,'shapeData':{..._0x10c263,'adjustValues':_0x377f33||_0x3fc188||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x1ee)]),'relation':_0xdb4232||_0x38034e||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x18b)])}},'axisAlignSheetTransform':_0x5e94b5,'allowTransform':!0x0},{undo:_0x1bed5f,redo:_0x1afad7,objects:_0x4baaa7}=_0xf54c57[_0x132577(0x182)]([_0x4d7ab6]),_0x55da7b=_0xfa0c06[_0x132577(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x3201c4,'drawings':[_0x4d7ab6]}}),_0x23741a=[..._0x55da7b[_0x132577(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'op':_0x1afad7,'objects':_0x4baaa7,'type':_0x2c701a[_0x132577(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x3201c4]},..._0x55da7b['redos'],{'id':$['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'shapeId':_0xb18d6,'shapeType':_0x3cd072,'shapeData':{'adjustValues':_0x377f33,'relation':_0xdb4232}}}],_0x37f59d=[..._0x55da7b[_0x132577(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'op':_0x1bed5f,'objects':_0x4baaa7,'type':_0x2c701a[_0x132577(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x3201c4]},..._0x55da7b[_0x132577(0x1eb)],{'id':$['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'shapeId':_0xb18d6,'shapeType':_0x1fadf0,'shapeData':{..._0x10c263,'adjustValues':_0x3fc188||(_0x10c263==null?void 0x0:_0x10c263['adjustValues']),'relation':_0x38034e||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x18b)])}}}];return _0x5c6377(_0x23741a,_0x59f3e5)['result']?(_0x40d03a[_0x132577(0x1af)]({'unitID':_0x3201c4,'undoMutations':_0x37f59d,'redoMutations':_0x23741a}),!0x0):!0x1;}},xe={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.update-line-shape-resize','handler':(_0x53aa54,_0x4f7367)=>{const _0x446731=_0x225b1f;let _0x3d5122=_0x483059(_0x53aa54[_0x446731(0x19d)](_0x2543b8),_0x4f7367);if(!_0x3d5122)return!0x1;let _0x9a0377=_0x53aa54[_0x446731(0x19d)](_0x32f773),{unitId:_0x4e190a,subUnitId:_0x3a525f}=_0x3d5122,_0x291098=_0x9a0377[_0x446731(0x17b)](_0x4e190a,_0x3a525f);if(!_0x291098)return!0x1;let _0x458fa4=_0x53aa54[_0x446731(0x19d)](_0x5f3711),{shapeId:_0x13c2b5,width:_0x1da22e,height:_0x8a2eb3,left:_0x4cf34e,top:_0x5a774a,flipX:_0x58605d,flipY:_0x3ff1b,angle:_0x58f546,oldAdjustValues:_0x5c4b71,newAdjustValues:_0x23f74c,oldLineType:_0x39222d,newLineType:_0x570b9e}=_0x4f7367,_0x24e18d=_0x458fa4[_0x446731(0x170)]({'unitId':_0x4e190a,'subUnitId':_0x3a525f,'drawingId':_0x13c2b5});if(!_0x24e18d)return!0x1;let _0x91329=_0x53aa54[_0x446731(0x19d)](Q)[_0x446731(0x176)](_0x4e190a,_0x3a525f,_0x13c2b5);if(!_0x91329)return!0x1;let _0x5b6bb0=_0x53aa54[_0x446731(0x19d)](_0x1220c4),_0x4bb681=_0x53aa54[_0x446731(0x19d)](_0x3626df),_0x4a8460=_0x53aa54[_0x446731(0x19d)](_0x4c2afb),_0xd7122f={..._0x24e18d[_0x446731(0x171)],'width':_0x1da22e,'height':_0x8a2eb3,'left':_0x4cf34e,'top':_0x5a774a,'flipX':_0x58605d,'flipY':_0x3ff1b,'angle':_0x58f546},_0x2ff590=_0x3b3677(_0xd7122f,_0x291098),_0x145168=_0x2d2bb4(_0xd7122f,_0x291098),_0x5851ba=_0x91329[_0x446731(0x19e)](),_0x2a24fc=_0x91329['getShapeData'](),_0x29eae9={'unitId':_0x4e190a,'subUnitId':_0x3a525f,'drawingId':_0x13c2b5,'drawingType':_0x1b1709[_0x446731(0x18c)],'sheetTransform':_0x2ff590,'transform':_0xd7122f,'data':{'shapeType':_0x570b9e||_0x39222d||_0x5851ba,'shapeData':{..._0x2a24fc,'adjustValues':_0x23f74c||_0x5c4b71||(_0x2a24fc==null?void 0x0:_0x2a24fc[_0x446731(0x1ee)])}},'axisAlignSheetTransform':_0x145168,'allowTransform':!0x0},{undo:_0x33392d,redo:_0x283bb6,objects:_0x368ae8}=_0x458fa4['getBatchUpdateOp']([_0x29eae9]),_0x1bc5ac=_0x4a8460[_0x446731(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x4e190a,'drawings':[_0x29eae9]}}),_0x411ce7=[..._0x1bc5ac['preRedos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'op':_0x283bb6,'objects':_0x368ae8,'type':_0x2c701a[_0x446731(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x4e190a]},..._0x1bc5ac[_0x446731(0x148)],{'id':$['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'shapeId':_0x13c2b5,'shapeType':_0x570b9e,'shapeData':{'adjustValues':_0x23f74c}}}],_0x179f38=[..._0x1bc5ac['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'op':_0x33392d,'objects':_0x368ae8,'type':_0x2c701a[_0x446731(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x4e190a]},..._0x1bc5ac['undos'],{'id':$['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'shapeId':_0x13c2b5,'shapeType':_0x5851ba,'shapeData':{..._0x2a24fc,'adjustValues':_0x5c4b71||(_0x2a24fc==null?void 0x0:_0x2a24fc[_0x446731(0x1ee)])}}}];return _0x5c6377(_0x411ce7,_0x5b6bb0)[_0x446731(0x155)]?(_0x4bb681[_0x446731(0x1af)]({'unitID':_0x4e190a,'undoMutations':_0x179f38,'redoMutations':_0x411ce7}),!0x0):!0x1;}},Se={'id':'sheet.mutation.update-shape-type','type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0xb558d9,_0x1529bc)=>{const _0x1a1b17=_0x225b1f;let {unitId:_0x51008c,subUnitId:_0x327bc4,shapeType:_0x3ba39c,shapeId:_0x33ba06,shapeData:_0x35e23a}=_0x1529bc,_0x41f0a7=_0xb558d9['get'](Q)[_0x1a1b17(0x176)](_0x51008c,_0x327bc4,_0x33ba06);return _0x41f0a7&&(_0x41f0a7[_0x1a1b17(0x199)](_0x3ba39c),_0x35e23a&&(_0x41f0a7==null||_0x41f0a7['setShapeData'](_0x35e23a))),!0x0;}};var Ce=_0x225b1f(0x12b),we=_0x225b1f(0x1db);function Te(_0x208fc4){const _0x4597c6=_0x225b1f;var _0x2b6572,_0x4ea407,_0x377f5c,_0x2df4a1,_0x4e6296,_0xfcdd36,_0x583ae9;return{'left':((_0x2b6572=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x2b6572[_0x4597c6(0x1d4)])??0x0,'top':((_0x4ea407=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x4ea407[_0x4597c6(0x166)])??0x0,'width':((_0x377f5c=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x377f5c[_0x4597c6(0x1cc)])??0xc8,'height':((_0x2df4a1=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x2df4a1['height'])??0xc8,'rotation':((_0x4e6296=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x4e6296['rotation'])??0x0,'flipX':((_0xfcdd36=_0x208fc4['transform'])==null?void 0x0:_0xfcdd36[_0x4597c6(0x178)])??!0x1,'flipY':((_0x583ae9=_0x208fc4['transform'])==null?void 0x0:_0x583ae9[_0x4597c6(0x12c)])??!0x1};}let Ee=class{constructor(_0x28986b,_0x2aa6d5,_0x55be29,_0x44e14c){const _0x5ec1e2=_0x225b1f;this[_0x5ec1e2(0x1c1)]=_0x28986b,this[_0x5ec1e2(0x159)]=_0x2aa6d5,this[_0x5ec1e2(0x129)]=_0x55be29,this[_0x5ec1e2(0x15c)]=_0x44e14c,X(this,'hostType',_0x32e2b1[_0x5ec1e2(0x168)]);}get[_0x225b1f(0x185)](){return{'subscribe':_0x5fcb2c=>{const _0x2e78ad=_0x2588;let _0x4dfeeb=this[_0x2e78ad(0x1c1)][_0x2e78ad(0x1d7)](_0x466f34=>{(_0x466f34['id']===pe['id']||_0x466f34['id']===me['id']||_0x466f34['id']===$['id']||_0x466f34['id']===Se['id'])&&_0x5fcb2c({'unitId':_0x466f34['params']['unitId']});});return{'unsubscribe':()=>_0x4dfeeb[_0x2e78ad(0x1e3)]()};}};}[_0x225b1f(0x1bd)](_0x2ce321){const _0x3e09ed=_0x225b1f;var _0x52118c;let _0xa9f2a5=(_0x52118c=this[_0x3e09ed(0x129)][_0x3e09ed(0x1d2)](_0x2ce321['unitId'],_0x2ce321[_0x3e09ed(0x1d5)]))==null?void 0x0:_0x52118c[_0x2ce321[_0x3e09ed(0x12e)]],_0x876e93=this['_shapeService'][_0x3e09ed(0x19e)](_0x2ce321[_0x3e09ed(0x174)],_0x2ce321[_0x3e09ed(0x1d5)],_0x2ce321['shapeId']);if(!_0xa9f2a5||_0xa9f2a5['drawingType']!==_0x1b1709['DRAWING_SHAPE']||!_0x876e93)return null;let _0x355f4f=_0xa9f2a5[_0x3e09ed(0x171)];return{..._0x2ce321,'shapeType':_0x876e93,'shapeData':_0x56bc3c[_0x3e09ed(0x1ac)](this[_0x3e09ed(0x159)][_0x3e09ed(0x17a)](_0x2ce321[_0x3e09ed(0x174)],_0x2ce321['subUnitId'],_0x2ce321[_0x3e09ed(0x12e)])??{}),'name':_0xa9f2a5[_0x3e09ed(0x1b2)],'description':_0xa9f2a5[_0x3e09ed(0x1a3)],'visible':_0xa9f2a5[_0x3e09ed(0x153)]!==!0x0,'selectable':_0xa9f2a5['selectable']!==!0x1,'transform':{'left':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1d4)])??0x0,'top':(_0x355f4f==null?void 0x0:_0x355f4f['top'])??0x0,'width':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1cc)])??0xc8,'height':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1b4)])??0xc8,'rotation':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x197)])??0x0,'flipX':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x178)])??!0x1,'flipY':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x12c)])??!0x1}};}[_0x225b1f(0x169)](_0x37c33d){const _0x3ec6fd=_0x225b1f;let _0x4c6c39=this[_0x3ec6fd(0x129)][_0x3ec6fd(0x1d2)](_0x37c33d[_0x3ec6fd(0x174)],_0x37c33d[_0x3ec6fd(0x1d5)])??{};return Object[_0x3ec6fd(0x19a)](_0x4c6c39)['filter'](_0x192a79=>(_0x192a79==null?void 0x0:_0x192a79[_0x3ec6fd(0x1f0)])===_0x1b1709[_0x3ec6fd(0x18c)])['map'](_0x24c1b3=>this[_0x3ec6fd(0x1bd)]({..._0x37c33d,'shapeId':_0x24c1b3[_0x3ec6fd(0x1c2)]}))[_0x3ec6fd(0x1a1)](_0x4634ed=>!!_0x4634ed);}['listShapesInUnit'](_0x4c0f21){const _0x4eda03=_0x225b1f;let _0x331b45=this[_0x4eda03(0x15c)][_0x4eda03(0x1cb)](_0x4c0f21,_0x32e2b1[_0x4eda03(0x168)]);return(_0x331b45==null?void 0x0:_0x331b45[_0x4eda03(0x122)]()['flatMap'](_0x5d4eb6=>this['listShapes']({'hostType':this['hostType'],'unitId':_0x4c0f21,'subUnitId':_0x5d4eb6[_0x4eda03(0x1ae)]()})))??[];}[_0x225b1f(0x142)](_0x137e83,_0x2f614e){const _0x14c187=_0x225b1f;let _0x3deb8d=_0x34af8c(),_0xd0829f=Te(_0x2f614e),_0xb09078=_0x56bc3c[_0x14c187(0x1ac)](_0x2f614e[_0x14c187(0x195)]??_0x2169ba(_0x2f614e[_0x14c187(0x133)]));return this['_commandService'][_0x14c187(0x136)](he['id'],{'unitId':_0x137e83[_0x14c187(0x174)],'subUnitId':_0x137e83[_0x14c187(0x1d5)],'shapeId':_0x3deb8d,'shapeType':_0x2f614e['shapeType'],'shapeData':_0xb09078,'name':_0x2f614e['name'],'description':_0x2f614e[_0x14c187(0x1a3)],'position':{'x':_0xd0829f[_0x14c187(0x1d4)],'y':_0xd0829f[_0x14c187(0x166)]},'width':_0xd0829f['width'],'height':_0xd0829f['height'],'rotation':_0xd0829f[_0x14c187(0x184)],'flipX':_0xd0829f[_0x14c187(0x178)],'flipY':_0xd0829f[_0x14c187(0x12c)],'visible':_0x2f614e[_0x14c187(0x1cd)]??!0x0,'selectable':_0x2f614e['selectable']??!0x0})?{..._0x137e83,'shapeId':_0x3deb8d,'shapeType':_0x2f614e[_0x14c187(0x133)],'shapeData':_0xb09078,'name':_0x2f614e['name'],'description':_0x2f614e['description'],'visible':_0x2f614e[_0x14c187(0x1cd)]??!0x0,'selectable':_0x2f614e['selectable']??!0x0,'transform':_0xd0829f}:null;}[_0x225b1f(0x193)](_0x396d34,_0x29738e){const _0x283fac=_0x225b1f;var _0x27b8dd;let _0x526496=this[_0x283fac(0x1bd)](_0x396d34);if(!_0x526496)return!0x1;let _0x10c294={..._0x526496[_0x283fac(0x171)],..._0x29738e[_0x283fac(0x171)]};return this[_0x283fac(0x1c1)][_0x283fac(0x136)](ge['id'],{'unitId':_0x396d34[_0x283fac(0x174)],'subUnitId':_0x396d34[_0x283fac(0x1d5)],'shapeId':_0x396d34[_0x283fac(0x12e)],'shapeType':_0x29738e[_0x283fac(0x133)]??((_0x27b8dd=_0x29738e[_0x283fac(0x195)])==null?void 0x0:_0x27b8dd[_0x283fac(0x133)])??_0x526496[_0x283fac(0x133)],'shapeData':_0x29738e[_0x283fac(0x195)]??_0x526496[_0x283fac(0x195)],'position':{'x':_0x10c294['left'],'y':_0x10c294['top']},'width':_0x10c294[_0x283fac(0x1cc)],'height':_0x10c294[_0x283fac(0x1b4)],'rotation':_0x10c294[_0x283fac(0x184)],'flipX':_0x10c294['flipX'],'flipY':_0x10c294[_0x283fac(0x12c)],'name':'name'in _0x29738e?_0x29738e[_0x283fac(0x1b2)]:_0x526496[_0x283fac(0x1b2)],'description':_0x283fac(0x1a3)in _0x29738e?_0x29738e[_0x283fac(0x1a3)]:_0x526496[_0x283fac(0x1a3)],'visible':_0x29738e[_0x283fac(0x1cd)]??_0x526496[_0x283fac(0x1cd)],'selectable':_0x29738e[_0x283fac(0x127)]??_0x526496[_0x283fac(0x127)]});}[_0x225b1f(0x15b)](_0x294a3f,_0x3c7f63,_0x4d4222){const _0x2dd8b4=_0x225b1f;let _0xdf5f98=this['getShape'](_0x294a3f),_0x52673c=_0xdf5f98==null?void 0x0:_0xdf5f98['shapeData'][_0x2dd8b4(0x139)];return!_0xdf5f98||!_0x52673c?null:{'id':$['id'],'params':{'unitId':_0x294a3f[_0x2dd8b4(0x174)],'subUnitId':_0x294a3f['subUnitId'],'shapeId':_0x294a3f[_0x2dd8b4(0x12e)],'shapeData':{..._0xdf5f98['shapeData'],'formulaBinding':{..._0x52673c,'lastValue':_0x56bc3c[_0x2dd8b4(0x1ac)](_0x4d4222)}},'replace':!0x0,'formulaLastValueGuard':_0x3c7f63}};}[_0x225b1f(0x145)](_0x3e98ed){const _0x3bac15=_0x225b1f;return this['_commandService'][_0x3bac15(0x136)](_0x52d128['id'],{'unitId':_0x3e98ed['unitId'],'drawings':[{'unitId':_0x3e98ed[_0x3bac15(0x174)],'subUnitId':_0x3e98ed[_0x3bac15(0x1d5)],'drawingId':_0x3e98ed[_0x3bac15(0x12e)],'drawingType':_0x1b1709[_0x3bac15(0x18c)]}]});}[_0x225b1f(0x1c9)](_0x1a9069){const _0x1a201e=_0x225b1f;return this['_arrange'](_0x1a9069,_0x22aed2[_0x1a201e(0x175)]);}['bringForward'](_0x53f9ae){const _0x436cd2=_0x225b1f;return this[_0x436cd2(0x15f)](_0x53f9ae,_0x22aed2[_0x436cd2(0x160)]);}[_0x225b1f(0x1c5)](_0x1d0ac5){const _0x5a38c2=_0x225b1f;return this[_0x5a38c2(0x15f)](_0x1d0ac5,_0x22aed2[_0x5a38c2(0x1b3)]);}[_0x225b1f(0x126)](_0xa718c1){const _0x454062=_0x225b1f;return this[_0x454062(0x15f)](_0xa718c1,_0x22aed2['back']);}[_0x225b1f(0x1bf)](_0x546dcb,_0x36e5df){const _0x426f23=_0x225b1f;return this[_0x426f23(0x1c1)][_0x426f23(0x136)](_0x51e055['id'],{'unitId':_0x546dcb[_0x426f23(0x174)],'subUnitId':_0x546dcb['subUnitId'],'drawingIds':[_0x546dcb[_0x426f23(0x12e)]],'zOrder':_0x36e5df});}[_0x225b1f(0x15f)](_0x3221df,_0x304c22){const _0x21cc4f=_0x225b1f;return this[_0x21cc4f(0x1c1)][_0x21cc4f(0x136)](_0x51e055['id'],{'unitId':_0x3221df[_0x21cc4f(0x174)],'subUnitId':_0x3221df['subUnitId'],'drawingIds':[_0x3221df[_0x21cc4f(0x12e)]],'arrangeType':_0x304c22});}};Ee=fe([Z(0x0,_0x1220c4),Z(0x1,_0x9e5ef9(Q)),Z(0x2,_0x5f3711),Z(0x3,_0x2543b8)],Ee);const De={};let Oe=class extends _0x1b1f35{constructor(_0x34e7d9,_0x481588,_0x198d11,_0x3411fb,_0x17835b,_0x4d201e,_0x3f9e33,_0x1e5b59){const _0x38e2a6=_0x225b1f;super(),this['_commandService']=_0x34e7d9,this['_sheetInterceptorService']=_0x481588,this[_0x38e2a6(0x187)]=_0x198d11,this['_sheetDrawingService']=_0x3411fb,this['_sheetsShapeService']=_0x17835b,this[_0x38e2a6(0x14b)]=_0x4d201e,this[_0x38e2a6(0x1e6)]=_0x3f9e33,this[_0x38e2a6(0x1e1)](),this['_initCommandInterceptor'](),this[_0x38e2a6(0x173)](this[_0x38e2a6(0x1e6)]['register'](_0x1e5b59));}[_0x225b1f(0x1e1)](){const _0x321459=_0x225b1f;[he,ge,_e,ve,ye,be,xe,pe,me,Se,$][_0x321459(0x17c)](_0x12a8c8=>this['disposeWithMe'](this['_commandService'][_0x321459(0x183)](_0x12a8c8)));}[_0x225b1f(0x124)](){const _0x4e1939=_0x225b1f;this[_0x4e1939(0x173)](this[_0x4e1939(0x162)][_0x4e1939(0x1a2)]({'getMutations':_0x51d926=>{const _0x12f38b=_0x4e1939;if(_0x51d926['id']===_0x52d128['id']){let {drawings:_0xdd42a6}=_0x51d926['params'],_0x2373a3=_0xdd42a6[_0x12f38b(0x1a1)](_0x199677=>_0x199677['drawingType']===_0x1b1709['DRAWING_SHAPE']);if(_0x2373a3[_0x12f38b(0x1a8)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x475c7a=[],_0x4581bc=[];return _0x2373a3[_0x12f38b(0x17c)](_0x3e1411=>{const _0x15e385=_0x12f38b;let {unitId:_0x566bc5,subUnitId:_0x58aa9c,drawingId:_0x32eae0}=_0x3e1411,_0x4f5a89=this[_0x15e385(0x128)][_0x15e385(0x176)](_0x566bc5,_0x58aa9c,_0x32eae0);if(!_0x4f5a89)throw TypeError(_0x15e385(0x1ad)+_0x4f5a89);_0x475c7a[_0x15e385(0x18f)]({'id':me['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x32eae0}}),_0x4581bc[_0x15e385(0x18f)]({'id':pe['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x32eae0,'shapeType':_0x4f5a89['getShapeType'](),'shapeData':_0x4f5a89[_0x15e385(0x16d)]()}});let _0xed843c=this[_0x15e385(0x128)]['getBasicShapeRelation'](_0x566bc5,_0x58aa9c,_0x32eae0);if(_0xed843c)for(let _0x251f49 of _0xed843c){let _0x343e4a=_0x251f49[_0x15e385(0x1be)],_0x593132=_0x251f49[_0x15e385(0x137)],_0x30477c=_0x593132?{'from':void 0x0}:{'to':void 0x0},_0x1226dd=_0x593132?{'from':{'shapeId':_0x251f49[_0x15e385(0x12e)],'cxnIndex':_0x251f49[_0x15e385(0x14a)]}}:{'to':{'shapeId':_0x251f49[_0x15e385(0x12e)],'cxnIndex':_0x251f49[_0x15e385(0x14a)]}};_0x475c7a[_0x15e385(0x18f)]({'id':$['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x343e4a,'shapeData':{'relation':_0x30477c}}}),_0x4581bc[_0x15e385(0x18f)]({'id':$['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x343e4a,'shapeData':{'relation':_0x1226dd}}});}}),{'preRedos':_0x475c7a,'redos':[],'preUndos':[],'undos':_0x4581bc};}let _0x12f914=this[_0x12f38b(0x1ba)](_0x51d926);if(_0x12f914){let _0x336fdb=_0x12f914[_0x12f38b(0x1a1)](_0x1849c6=>_0x1849c6['drawingType']===_0x1b1709[_0x12f38b(0x18c)]);if(_0x336fdb['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x33c21f=[],_0x5c0750=[];for(let _0x12d24a of _0x336fdb){let {unitId:_0x1db0cc,subUnitId:_0x2641a5,drawingId:_0x119d98,transform:_0x557ece}=_0x12d24a;if(!_0x1db0cc||!_0x2641a5||!_0x119d98||!_0x557ece)continue;let _0x403ccc=this['_sheetsShapeService'][_0x12f38b(0x176)](_0x1db0cc,_0x2641a5,_0x119d98);if(!_0x403ccc)throw TypeError(_0x12f38b(0x1ad)+_0x403ccc);let _0x228f4b=_0x403ccc[_0x12f38b(0x19e)]();if(_0x10aa10(_0x228f4b)){let _0x2be318=this['_sheetsShapeService']['getLineShapeRelation'](_0x1db0cc,_0x2641a5,_0x119d98);_0x2be318&&(_0x33c21f[_0x12f38b(0x18f)]({'id':$['id'],'params':{'unitId':_0x1db0cc,'subUnitId':_0x2641a5,'shapeId':_0x119d98,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x5c0750[_0x12f38b(0x18f)]({'id':$['id'],'params':{'unitId':_0x1db0cc,'subUnitId':_0x2641a5,'shapeId':_0x119d98,'shapeData':{'relation':_0x2be318}}}));}else{let _0x43dd15=this[_0x12f38b(0x128)]['getBasicShapeRelation'](_0x1db0cc,_0x2641a5,_0x119d98);if(_0x43dd15&&_0x43dd15[_0x12f38b(0x1a8)]>0x0)for(let _0x2d16cc of _0x43dd15){let _0xfbcf0b=_0x2d16cc[_0x12f38b(0x1be)],_0x179e29=_0x2d16cc['isFrom'],_0x3153ea=this[_0x12f38b(0x128)][_0x12f38b(0x176)](_0x1db0cc,_0x2641a5,_0xfbcf0b);if(!_0x3153ea)continue;let _0x58bb47=_0x3153ea[_0x12f38b(0x1e8)](),_0x3c2451=_0x3153ea[_0x12f38b(0x1d8)]();_0x58bb47&&_0x3c2451?this[_0x12f38b(0x1c8)](_0x1db0cc,_0x2641a5,_0xfbcf0b,_0x3153ea,_0x58bb47,_0x3c2451,_0x33c21f,_0x5c0750,_0x119d98,_0x557ece):this[_0x12f38b(0x121)](_0x1db0cc,_0x2641a5,_0xfbcf0b,_0x3153ea,_0x179e29?_0x58bb47:_0x3c2451,_0x179e29,_0x33c21f,_0x5c0750,_0x119d98,_0x557ece);}}}return{'preRedos':[],'redos':_0x33c21f,'preUndos':_0x5c0750,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getDrawingUpdates'](_0x21fd4c){const _0xab39b0=_0x225b1f;if(_0x21fd4c['id']===_0x57d0bf['id'])return _0x21fd4c[_0xab39b0(0x167)][_0xab39b0(0x191)];if(_0x21fd4c['id']===_0xede2d4['id']){let _0x1ac48e=_0x21fd4c[_0xab39b0(0x167)],_0x7077bf=_0x1ac48e[_0xab39b0(0x191)][_0xab39b0(0x146)](({placement:_0x2540f4})=>_0x2540f4[_0xab39b0(0x1e9)]===_0x105b85[_0xab39b0(0x147)])?void 0x0:this[_0xab39b0(0x187)][_0xab39b0(0x14c)](_0x1ac48e[_0xab39b0(0x174)],_0x1ac48e[_0xab39b0(0x1d5)]),_0x50cc5e=[];for(let {drawingId:_0x2ec054,placement:_0x18391b}of _0x1ac48e[_0xab39b0(0x191)]){let _0x41d4d3=this['_sheetDrawingService']['getDrawingByParam']({'unitId':_0x1ac48e[_0xab39b0(0x174)],'subUnitId':_0x1ac48e[_0xab39b0(0x1d5)],'drawingId':_0x2ec054});(_0x41d4d3==null?void 0x0:_0x41d4d3['drawingType'])===_0x1b1709[_0xab39b0(0x18c)]&&_0x50cc5e[_0xab39b0(0x18f)](_0x506f27(_0x41d4d3,_0x18391b,_0x7077bf));}return _0x50cc5e;}return null;}[_0x225b1f(0x1b8)](_0x27c250,_0x4c29d6,_0x12af7c,_0x79857c,_0x243405){const _0x23976c=_0x225b1f;if(!_0x4c29d6||!_0x12af7c)return null;let {shapeId:_0x36745e,cxnIndex:_0x32a851}=_0x27c250,_0x5bea01=this[_0x23976c(0x128)][_0x23976c(0x176)](_0x4c29d6,_0x12af7c,_0x36745e);if(!_0x5bea01)return null;let _0x46fc81=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x4c29d6,'subUnitId':_0x12af7c,'drawingId':_0x36745e});if(!(_0x46fc81!=null&&_0x46fc81['transform']))return null;let {left:_0x4075d8=0x0,top:_0x30bbb6=0x0,width:_0x3c2b77=0x0,height:_0x256296=0x0,flipX:_0x308f1a=!0x1,flipY:_0x5cc99c=!0x1,angle:_0x4c8385}=_0x46fc81['transform'];_0x243405&&_0x79857c===_0x36745e&&(_0x4075d8=_0x243405[_0x23976c(0x1d4)]??_0x4075d8,_0x30bbb6=_0x243405[_0x23976c(0x166)]??_0x30bbb6,_0x3c2b77=_0x243405[_0x23976c(0x1cc)]??_0x3c2b77,_0x256296=_0x243405[_0x23976c(0x1b4)]??_0x256296,_0x308f1a=_0x243405['flipX']??_0x308f1a,_0x5cc99c=_0x243405[_0x23976c(0x12c)]??_0x5cc99c,_0x4c8385=_0x243405[_0x23976c(0x197)]??_0x4c8385),_0x5bea01[_0x23976c(0x1e0)]({'width':_0x3c2b77,'height':_0x256296});let _0x3a2c00=_0x5bea01[_0x23976c(0x1a6)]()[_0x23976c(0x158)](_0x4c14a1=>_0x4c14a1['index']===_0x32a851);if(!_0x3a2c00)return null;let _0x40741f=_0x308f1a?_0x3c2b77-_0x3a2c00['x']:_0x3a2c00['x'],_0x3b2032=_0x5cc99c?_0x256296-_0x3a2c00['y']:_0x3a2c00['y'];if(_0x4c8385!==0x0&&_0x4c8385!=null){let _0x5a5ee0=_0x4c8385*Math['PI']/0xb4,_0x2a16d2=Math[_0x23976c(0x1f4)](_0x5a5ee0),_0x1d4ce9=Math[_0x23976c(0x19b)](_0x5a5ee0),_0x3feb1c=_0x3c2b77/0x2,_0xe1b92f=_0x256296/0x2,_0x1117e4=_0x40741f-_0x3feb1c,_0x1747b8=_0x3b2032-_0xe1b92f;_0x40741f=_0x3feb1c+_0x1117e4*_0x2a16d2-_0x1747b8*_0x1d4ce9,_0x3b2032=_0xe1b92f+_0x1117e4*_0x1d4ce9+_0x1747b8*_0x2a16d2;}_0x40741f+=_0x4075d8,_0x3b2032+=_0x30bbb6;let _0xd716c1=_0x3a2c00[_0x23976c(0x1dc)]/0xea60;_0x308f1a&&(_0xd716c1=0xb4-_0xd716c1),_0x5cc99c&&(_0xd716c1=-_0xd716c1),_0xd716c1+=_0x4c8385||0x0,_0xd716c1=(_0xd716c1%0x168+0x168)%0x168;let _0x530f89=_0x29238b({'left':_0x4075d8,'top':_0x30bbb6,'width':_0x3c2b77,'height':_0x256296},_0x4c8385||0x0);return{'point':{'x':_0x40741f,'y':_0x3b2032},'angle':_0xd716c1,'bounds':_0x530f89};}[_0x225b1f(0x1c8)](_0x519e11,_0x72b99f,_0x2e65ba,_0x590140,_0x24fe9a,_0x54610a,_0x9c9537,_0x6b2f6e,_0x2c6ba2,_0x59498a){const _0x340f1a=_0x225b1f;let _0x4fedb3=this[_0x340f1a(0x187)][_0x340f1a(0x17b)](_0x519e11,_0x72b99f);if(!_0x4fedb3)return;let _0x171386=_0x590140[_0x340f1a(0x141)](),_0x3bee29=_0x590140[_0x340f1a(0x13a)](),_0x34bbd9={},_0x41dad6={};_0x3bee29[_0x340f1a(0x17c)](_0x25ac48=>{const _0x37aa42=_0x340f1a;let _0x6893c3=_0x590140[_0x37aa42(0x14d)](_0x25ac48);_0x41dad6[_0x25ac48]=_0x6893c3??0x0;});let _0x471d2e=this[_0x340f1a(0x1b8)](_0x24fe9a,_0x519e11,_0x72b99f,_0x2c6ba2,_0x59498a),_0x2d0798=this[_0x340f1a(0x1b8)](_0x54610a,_0x519e11,_0x72b99f,_0x2c6ba2,_0x59498a);if(_0x471d2e&&_0x2d0798){let _0x33611e=_0x590140[_0x340f1a(0x19e)](),_0x2f1f22=_0x19932a(_0x471d2e,_0x2d0798,_0x33611e),_0x3c98bb=_0x33611e;if(_0x2f1f22){let _0x44738b=_0x20b01f(_0x2f1f22,_0x590140[_0x340f1a(0x19e)]()),_0x27dba8=this[_0x340f1a(0x14b)][_0x340f1a(0x1d2)](_0x519e11,_0x72b99f);if(_0x27dba8&&_0x27dba8[_0x2e65ba]){let _0x4439d0=_0x27dba8[_0x2e65ba];_0x3c98bb=_0x44738b[_0x340f1a(0x1d6)];for(let [_0x39e4ca,_0x2a3207]of Object[_0x340f1a(0x17e)](_0x44738b[_0x340f1a(0x1ee)]))_0x34bbd9[_0x39e4ca]=_0x2a3207;let _0x1f499f={..._0x4439d0[_0x340f1a(0x171)],'width':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x1cc)],'height':_0x44738b['worldRect'][_0x340f1a(0x1b4)],'left':_0x44738b['worldRect'][_0x340f1a(0x1d4)],'top':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x166)],'flipX':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x178)],'flipY':_0x44738b[_0x340f1a(0x1bb)]['flipY'],'angle':_0x44738b[_0x340f1a(0x184)]},_0x1f88d0=_0x3b3677(_0x1f499f,_0x4fedb3),_0x6a9d84=_0x2d2bb4(_0x1f499f,_0x4fedb3),_0x34e125={'unitId':_0x519e11,'subUnitId':_0x72b99f,'drawingType':_0x1b1709[_0x340f1a(0x18c)],'drawingId':_0x2e65ba,'transform':_0x1f499f,'sheetTransform':_0x1f88d0,'axisAlignSheetTransform':_0x6a9d84},{unitId:_0xe0c30f,subUnitId:_0x4facba,undo:_0x2f4333,redo:_0x359532,objects:_0x553c99}=this['_drawingManagerService'][_0x340f1a(0x182)]([_0x34e125]);_0x9c9537[_0x340f1a(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xe0c30f,'subUnitId':_0x4facba,'op':_0x359532,'objects':_0x553c99,'type':_0x2c701a[_0x340f1a(0x1c3)]}}),_0x6b2f6e[_0x340f1a(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xe0c30f,'subUnitId':_0x4facba,'op':_0x2f4333,'objects':_0x553c99,'type':_0x2c701a[_0x340f1a(0x1c3)]}});}_0x590140['removeLinePoints']();}_0x9c9537[_0x340f1a(0x18f)]({'id':$['id'],'params':{'unitId':_0x519e11,'subUnitId':_0x72b99f,'shapeId':_0x2e65ba,'shapeType':_0x3c98bb,'shapeData':{'adjustValues':_0x34bbd9,'relation':_0x171386}}}),_0x6b2f6e['push']({'id':$['id'],'params':{'unitId':_0x519e11,'subUnitId':_0x72b99f,'shapeId':_0x2e65ba,'shapeType':_0x33611e,'shapeData':{'adjustValues':_0x41dad6,'relation':_0x171386}}});}}['_addLineFollowShapeUpdates'](_0x2efc84,_0x38c4be,_0x60a7e7,_0x50a9dc,_0x2535d5,_0x51ea29,_0x27401d,_0x4ff0b5,_0x3353c5,_0x1ed672){const _0x5eaa51=_0x225b1f;var _0x3f7439;if(!_0x2535d5)return;let _0x5b3b08=this['_sheetSkeletonService'][_0x5eaa51(0x17b)](_0x2efc84,_0x38c4be);if(!_0x5b3b08)return;let _0x43a3eb=(_0x3f7439=this[_0x5eaa51(0x14b)]['getDrawingByParam']({'unitId':_0x2efc84,'subUnitId':_0x38c4be,'drawingId':_0x3353c5}))==null?void 0x0:_0x3f7439[_0x5eaa51(0x171)];if(!_0x43a3eb)return;let _0x422330=_0x43a3eb[_0x5eaa51(0x1d4)]!==_0x1ed672['left']||_0x43a3eb[_0x5eaa51(0x166)]!==_0x1ed672[_0x5eaa51(0x166)],_0x506fb4=_0x43a3eb[_0x5eaa51(0x1cc)]!==_0x1ed672[_0x5eaa51(0x1cc)]||_0x43a3eb['height']!==_0x1ed672['height'],_0x32f35c=_0x43a3eb['flipX']!==_0x1ed672['flipX']||_0x43a3eb[_0x5eaa51(0x12c)]!==_0x1ed672[_0x5eaa51(0x12c)],_0x42ff8a=_0x43a3eb['angle']!==_0x1ed672[_0x5eaa51(0x197)];if(_0x422330&&!_0x506fb4&&!_0x32f35c&&!_0x42ff8a){let _0x48f34c=(_0x1ed672[_0x5eaa51(0x1d4)]??0x0)-(_0x43a3eb[_0x5eaa51(0x1d4)]??0x0),_0x2b5ea3=(_0x1ed672['top']??0x0)-(_0x43a3eb['top']??0x0),_0x22fcf6=this[_0x5eaa51(0x14b)][_0x5eaa51(0x1d2)](_0x2efc84,_0x38c4be);if(_0x22fcf6&&_0x22fcf6[_0x60a7e7]){var _0x3eb4bf,_0x4fb057;let _0x571da6=_0x22fcf6[_0x60a7e7],_0x27f4fb={..._0x571da6['transform'],'left':(((_0x3eb4bf=_0x571da6['transform'])==null?void 0x0:_0x3eb4bf['left'])??0x0)+_0x48f34c,'top':(((_0x4fb057=_0x571da6[_0x5eaa51(0x171)])==null?void 0x0:_0x4fb057[_0x5eaa51(0x166)])??0x0)+_0x2b5ea3},_0x35a904=_0x3b3677(_0x27f4fb,_0x5b3b08),_0x294aaa=_0x2d2bb4(_0x27f4fb,_0x5b3b08),_0x2f49fb={'unitId':_0x2efc84,'subUnitId':_0x38c4be,'drawingType':_0x1b1709[_0x5eaa51(0x18c)],'drawingId':_0x60a7e7,'transform':_0x27f4fb,'sheetTransform':_0x35a904,'axisAlignSheetTransform':_0x294aaa},{unitId:_0xa18e63,subUnitId:_0x19aebe,undo:_0x190a19,redo:_0x33b7fb,objects:_0x2cf3fb}=this[_0x5eaa51(0x14b)][_0x5eaa51(0x182)]([_0x2f49fb]);_0x27401d[_0x5eaa51(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xa18e63,'subUnitId':_0x19aebe,'op':_0x33b7fb,'objects':_0x2cf3fb,'type':_0x2c701a[_0x5eaa51(0x1c3)]}}),_0x4ff0b5[_0x5eaa51(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xa18e63,'subUnitId':_0x19aebe,'op':_0x190a19,'objects':_0x2cf3fb,'type':_0x2c701a[_0x5eaa51(0x1c3)]}});}}else{let _0x4dbbad=_0x50a9dc['getStartConnectInfo'](),_0x418d6b=_0x50a9dc[_0x5eaa51(0x1d8)]();this[_0x5eaa51(0x1c8)](_0x2efc84,_0x38c4be,_0x60a7e7,_0x50a9dc,_0x4dbbad,_0x418d6b,_0x27401d,_0x4ff0b5,_0x3353c5,_0x1ed672);}}};Oe=fe([Z(0x0,_0x1220c4),Z(0x1,_0x9e5ef9(_0x4c2afb)),Z(0x2,_0x9e5ef9(_0x32f773)),Z(0x3,_0x9e5ef9(_0x5f3711)),Z(0x4,_0x9e5ef9(Q)),Z(0x5,_0x9e5ef9(_0x410964)),Z(0x6,_0x9e5ef9(_0x26e807)),Z(0x7,_0x9e5ef9(Ee))],Oe);let ke=class extends _0x1b1f35{constructor(_0x870562,_0x46faf4,_0x4815b0){const _0x2461a9=_0x225b1f;super(),this[_0x2461a9(0x159)]=_0x870562,this[_0x2461a9(0x181)]=_0x46faf4,this['disposeWithMe'](_0x4815b0[_0x2461a9(0x1d1)](this));}[_0x225b1f(0x171)](_0x32b4db){const _0xfadbf1=_0x225b1f;let _0x518f7e={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0xfadbf1(0x154)](_0x32b4db,_0x518f7e);for(let [_0x65d011,_0x3a7e9b]of _0x32b4db['originals'])this[_0xfadbf1(0x194)](_0x32b4db,_0x65d011,_0x3a7e9b,_0x518f7e);return _0x518f7e;}[_0x225b1f(0x154)](_0x1b5617,_0x1b839b){const _0x487ccd=_0x225b1f;if(_0x1b5617[_0x487ccd(0x1b1)]===_0x487ccd(0x144))for(let _0x4a9c6f of _0x1b5617[_0x487ccd(0x177)]){let _0x318cf3=_0x1b5617['originals']['get'](_0x4a9c6f),_0x57051b=this[_0x487ccd(0x159)][_0x487ccd(0x176)](_0x1b5617[_0x487ccd(0x174)],_0x1b5617[_0x487ccd(0x1d5)],_0x4a9c6f);(_0x318cf3==null?void 0x0:_0x318cf3[_0x487ccd(0x1f0)])===_0x1b1709[_0x487ccd(0x18c)]&&_0x57051b&&(_0x1b839b[_0x487ccd(0x1b7)]['push']({'id':me['id'],'params':{'unitId':_0x1b5617[_0x487ccd(0x174)],'subUnitId':_0x1b5617['subUnitId'],'shapeId':_0x4a9c6f}}),_0x1b839b['undos'][_0x487ccd(0x18f)]({'id':pe['id'],'params':{'unitId':_0x1b5617['unitId'],'subUnitId':_0x1b5617[_0x487ccd(0x1d5)],'shapeId':_0x4a9c6f,'shapeName':_0x57051b[_0x487ccd(0x192)](),'shapeType':_0x57051b[_0x487ccd(0x19e)](),'shapeData':_0x56bc3c[_0x487ccd(0x1ac)](_0x57051b[_0x487ccd(0x16d)]())}}));}}[_0x225b1f(0x194)](_0x37519b,_0x1645b6,_0x1f1255,_0x1bf5d8){const _0x1adf19=_0x225b1f;if(_0x1f1255['drawingType']!==_0x1b1709[_0x1adf19(0x18c)]||_0x37519b[_0x1adf19(0x177)]['has'](_0x1645b6))return;let _0x105cf1=this[_0x1adf19(0x159)]['getShapeModel'](_0x37519b['unitId'],_0x37519b[_0x1adf19(0x1d5)],_0x1645b6);if(!_0x105cf1||!_0x10aa10(_0x105cf1[_0x1adf19(0x19e)]()))return;let _0x21bb37=_0x105cf1[_0x1adf19(0x141)]();if(!(_0x37519b[_0x1adf19(0x1b6)][_0x1adf19(0x16c)](_0x1645b6)||_0x21bb37!=null&&_0x21bb37[_0x1adf19(0x16f)]&&(_0x37519b[_0x1adf19(0x1b6)]['has'](_0x21bb37[_0x1adf19(0x16f)]['shapeId'])||_0x37519b['deletes']['has'](_0x21bb37['from']['shapeId']))||_0x21bb37!=null&&_0x21bb37['to']&&(_0x37519b[_0x1adf19(0x1b6)]['has'](_0x21bb37['to']['shapeId'])||_0x37519b[_0x1adf19(0x177)][_0x1adf19(0x16c)](_0x21bb37['to']['shapeId']))))return;let _0x17d443=_0x37519b['updates']['get'](_0x1645b6)??_0x1f1255,_0x43e604=this['_toSnapshot'](_0x37519b,_0x17d443);if(!_0x43e604)return;let _0xdfdd08=_0x2536c2(_0x43e604);if(_0xdfdd08[_0x1adf19(0x1a8)]<0x2)return;let _0x5a3bfe=_0x56bc3c[_0x1adf19(0x1ac)](_0x21bb37??{}),_0x29eb68=_0x5a3bfe[_0x1adf19(0x16f)]&&this[_0x1adf19(0x1d3)](_0x37519b,_0x5a3bfe['from'][_0x1adf19(0x12e)],_0x5a3bfe[_0x1adf19(0x16f)][_0x1adf19(0x14a)]),_0x35507a=_0x5a3bfe['to']&&this['_resolveBinding'](_0x37519b,_0x5a3bfe['to']['shapeId'],_0x5a3bfe['to'][_0x1adf19(0x14a)]);_0x5a3bfe[_0x1adf19(0x16f)]&&!_0x29eb68&&delete _0x5a3bfe[_0x1adf19(0x16f)],_0x5a3bfe['to']&&!_0x35507a&&delete _0x5a3bfe['to'];let _0x45834f=_0x29eb68||_0x21057d((_0x35507a==null?void 0x0:_0x35507a['point'])??_0xdfdd08[_0xdfdd08[_0x1adf19(0x1a8)]-0x1],_0xdfdd08[0x0]),_0x4e6817=_0x35507a||_0x21057d((_0x29eb68==null?void 0x0:_0x29eb68['point'])??_0xdfdd08[0x0],_0xdfdd08[_0xdfdd08[_0x1adf19(0x1a8)]-0x1]),_0x339bfe=_0x39a6f1(_0x43e604,_0x45834f,_0x4e6817,_0x5a3bfe);_0x339bfe!=null&&_0x339bfe[_0x1adf19(0x171)]&&_0x339bfe[_0x1adf19(0x133)]&&_0x339bfe['shapeData']&&(this['_applyUpdate'](_0x37519b,_0x17d443,_0x339bfe),_0x37519b['mode']==='refresh'?(_0x105cf1['setShapeType'](_0x339bfe[_0x1adf19(0x133)]),_0x105cf1[_0x1adf19(0x1ea)](_0x56bc3c[_0x1adf19(0x1ac)](_0x339bfe[_0x1adf19(0x195)]),!0x1)):(_0x1bf5d8[_0x1adf19(0x148)][_0x1adf19(0x18f)]({'id':$['id'],'params':{'unitId':_0x37519b[_0x1adf19(0x174)],'subUnitId':_0x37519b[_0x1adf19(0x1d5)],'shapeId':_0x1645b6,'shapeType':_0x339bfe[_0x1adf19(0x133)],'shapeData':_0x56bc3c[_0x1adf19(0x1ac)](_0x339bfe[_0x1adf19(0x195)]),'replace':!0x0}}),_0x1bf5d8[_0x1adf19(0x1eb)][_0x1adf19(0x18f)]({'id':$['id'],'params':{'unitId':_0x37519b[_0x1adf19(0x174)],'subUnitId':_0x37519b[_0x1adf19(0x1d5)],'shapeId':_0x1645b6,'shapeType':_0x105cf1['getShapeType'](),'shapeData':_0x56bc3c[_0x1adf19(0x1ac)](_0x105cf1[_0x1adf19(0x16d)]()),'replace':!0x0}})));}[_0x225b1f(0x1d3)](_0x5a8ff3,_0x1a068a,_0x5129d2){const _0x32b42c=_0x225b1f;if(_0x5a8ff3['deletes'][_0x32b42c(0x16c)](_0x1a068a))return null;let _0x1de944=_0x5a8ff3[_0x32b42c(0x1b6)][_0x32b42c(0x19d)](_0x1a068a)??_0x5a8ff3[_0x32b42c(0x1de)][_0x32b42c(0x19d)](_0x1a068a);if(!_0x1de944)return null;let _0x515f0c=this['_toSnapshot'](_0x5a8ff3,_0x1de944);return _0x515f0c?_0x150c8e(_0x515f0c,_0x5129d2):null;}[_0x225b1f(0x1e4)](_0x37dd0f,_0x20bd52){const _0xd0113b=_0x225b1f;let _0x44d152={'hostType':_0x32e2b1['UNIVER_SHEET'],'unitId':_0x37dd0f['unitId'],'subUnitId':_0x37dd0f[_0xd0113b(0x1d5)],'shapeId':_0x20bd52[_0xd0113b(0x1c2)]},_0x152bb5=this[_0xd0113b(0x181)][_0xd0113b(0x1bd)](_0x44d152);return!_0x152bb5||!_0x20bd52[_0xd0113b(0x171)]?null:{..._0x152bb5,'transform':{'left':_0x20bd52[_0xd0113b(0x171)]['left']??0x0,'top':_0x20bd52[_0xd0113b(0x171)][_0xd0113b(0x166)]??0x0,'width':_0x20bd52[_0xd0113b(0x171)]['width']??0x0,'height':_0x20bd52['transform'][_0xd0113b(0x1b4)]??0x0,'rotation':_0x20bd52[_0xd0113b(0x171)]['angle']??0x0,'flipX':_0x20bd52[_0xd0113b(0x171)]['flipX']??!0x1,'flipY':_0x20bd52[_0xd0113b(0x171)][_0xd0113b(0x12c)]??!0x1}};}[_0x225b1f(0x13b)](_0x1baba0,_0x386c1e,_0x348390){const _0x59c3c0=_0x225b1f;let _0x2bd848=_0x386c1e,_0x2f0e2c={..._0x386c1e[_0x59c3c0(0x171)],'left':_0x348390['transform'][_0x59c3c0(0x1d4)],'top':_0x348390['transform'][_0x59c3c0(0x166)],'width':_0x348390[_0x59c3c0(0x171)][_0x59c3c0(0x1cc)],'height':_0x348390['transform'][_0x59c3c0(0x1b4)],'angle':_0x348390[_0x59c3c0(0x171)]['rotation'],'flipX':_0x348390[_0x59c3c0(0x171)][_0x59c3c0(0x178)],'flipY':_0x348390['transform'][_0x59c3c0(0x12c)]},_0x384de9={..._0x2bd848,'transform':_0x2f0e2c,'sheetTransform':_0x3b3677(_0x2f0e2c,_0x1baba0['skeleton']),'axisAlignSheetTransform':_0x2d2bb4(_0x2f0e2c,_0x1baba0[_0x59c3c0(0x1b5)]),'data':{..._0x2bd848[_0x59c3c0(0x125)],'shapeType':_0x348390[_0x59c3c0(0x133)],'shapeData':_0x56bc3c['deepClone'](_0x348390[_0x59c3c0(0x195)])}};_0x1baba0['updates'][_0x59c3c0(0x1df)](_0x386c1e[_0x59c3c0(0x1c2)],_0x384de9);}};ke=fe([Z(0x0,_0x9e5ef9(Q)),Z(0x1,_0x9e5ef9(Ee)),Z(0x2,_0x9e5ef9(_0x1cf727))],ke);let Ae=class extends _0x543854{constructor(_0x1654c0=De,_0x323927,_0x5e1d9e){const _0x1ecb92=_0x225b1f;super(),this['_config']=_0x1654c0,this['_injector']=_0x323927,this[_0x1ecb92(0x150)]=_0x5e1d9e;let {..._0x3b70bb}=_0x13580a({},De,this['_config']);this[_0x1ecb92(0x150)][_0x1ecb92(0x16b)](_0x1ecb92(0x1ef),_0x3b70bb);}[_0x225b1f(0x1f3)](){const _0x47046d=_0x225b1f;let _0x223b17=this[_0x47046d(0x164)];[[de],[Q],[Ee],[ke],[Oe]][_0x47046d(0x17c)](_0x590ac5=>_0x223b17[_0x47046d(0x11f)](_0x590ac5)),_0x5e640a(_0x223b17,[[Q],[ke],[Oe]]);}};X(Ae,_0x225b1f(0x14f),_0x32e2b1['UNIVER_SHEET']),X(Ae,_0x225b1f(0x165),'SHEET_SHAPE_PLUGIN'),X(Ae,_0x225b1f(0x17d),Ce),X(Ae,_0x225b1f(0x1ca),we),Ae=fe([_0x4f8586(_0x52e3ac,_0xa332b5,_0x2d662f,_0x5b96cb,_0x5ad029),Z(0x1,_0x9e5ef9(_0x28f5b9)),Z(0x2,_0x121a34)],Ae);export{se as DEFAULT_SHAPE_HEIGHT,oe as DEFAULT_SHAPE_WIDTH,he as InsertShapeCommand,pe as InsertSheetsShapeMutation,me as RemoveSheetsShapeMutation,ge as SetShapeDrawingDataCommand,ve as SetSheetsShapeRotateCommand,ye as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,_e as ToggleSheetsShapeFlipCommand,Ae as UniverSheetsShapePlugin,be as UpdateConnectorRelationCommand,xe as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,Se as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x32504a=_0x4f9f;(function(_0x4f3bd3,_0x676fae){const _0x6fce78=_0x4f9f,_0x39f768=_0x4f3bd3();while(!![]){try{const _0x33ff18=-parseInt(_0x6fce78(0x164))/0x1+-parseInt(_0x6fce78(0x1a5))/0x2+-parseInt(_0x6fce78(0x14d))/0x3+-parseInt(_0x6fce78(0x1f9))/0x4+parseInt(_0x6fce78(0x140))/0x5*(parseInt(_0x6fce78(0x177))/0x6)+-parseInt(_0x6fce78(0x1ed))/0x7*(parseInt(_0x6fce78(0x174))/0x8)+parseInt(_0x6fce78(0x18d))/0x9;if(_0x33ff18===_0x676fae)break;else _0x39f768['push'](_0x39f768['shift']());}catch(_0x12a412){_0x39f768['push'](_0x39f768['shift']());}}}(_0x3f35,0xc0bb1));import{IShapeHostAdapterRegistry as _0x4d3422,ShapeModel as _0x188234,UniverShapePlugin as _0x340ea5,buildConnectorEndpointUpdate as _0x5ae41c,canApplyShapeFormulaLastValue as _0x5f3cd7,computeConnectorRouteLayout as _0xaedcac,createDefaultInsertedShapeData as _0x92392,createFreeConnectorPointInfo as _0x2778ae,createUniqueShapeName as _0x517f41,getBasicShapeRotateBound as _0x1a1337,isConnectorShape as _0x2ed008,resolveConnectorRoutePoints as _0xfddc21,resolveShapeConnectionPoint as _0x1dddb6,routeConnectorLineShape as _0x5c20c9}from'@univerjs-pro/engine-shape';function _0x3f35(){const _0x50ae07=['listShapesInUnit','every','_shapes','11284728juybBW','relation','sheet.mutation.remove-shape','355608irJoxU','filter','toPrimitive','_serializeShapeForUnit','packageName','fromJSON','removeShape','sheet.command.set-shape-rotate','from','front','CHART','function','flipX','_drawingManagerService','hostType','_resourcesManagerService','entries','drawingId','cxnIndex','forEach','updateShape','set','31587534eBIFgo','subUnitId','keys','drawings','shapeId','point','onCommandExecute','sheet.mutation.update-shape-type','_arrange','getSkeleton','hidden','shapeData','map','formula','_ensureShapeModelManager','_injector','_getConnectPointInfo','getCellWithCoordByIndex','delete','getLineShapeRelation','getSheets','UNIVER_SHEET','symbol','push','227070VrZZSj','adjustValues','params','getOwnPropertyDescriptor','toJSON','removeLinePoints','top','get','data','sheet.mutation.insert-shape','forward','pushUndoRedo','_addLineRerouteUpdates','hasShape','getShapeType','interceptCommand','setShapeType','addShape','pluginName','refresh','registerCommand','SHEET_SHAPE_PLUGIN','shapeChanged$','getEndConnectInfo','startY','description','getShapeDataById','rotateEnabled','height','_commandService','bringForward','sheet.command.toggle-shape-flip','_configService','axisAlignSheetTransform','width','@univerjs-pro/sheets-shape','getBatchAddOp','shapeType','originals','onCommandExecuted','flipY','preRedos','_sheetDrawingService','1.5.1','defineProperty','command','skeleton','redos','_toSnapshot','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','sheet.command.update-line-shape-resize','ang','selectable','object','getShape','sheet.command.set-shape-drawing-data','getAdjustValueByName','decorate','angle','transferShapeTo','getShapeRelation','getShapeTextData','iterator','backward','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','UPDATE','_sheetSkeletonService','result','dispose','insertShape','kind','7wTckzK','type','Both','DRAWING_SHAPE','_sheetsShapeService','createFormulaLastValueMutation','listShapes','setZOrder','GRID','mode','call','prototype','5712508vNkZtG','_shapeHostAdapterRegistry','_shapeService','sheet.command.update-connector-relation','COMMAND','shapeName','_planDeletes','_instanceService','deepClone','ensureSkeleton','visible','rehostShape','_shapeAdapter','length','disposeWithMe','getBatchUpdateOp','syncExecuteCommand','setConfig','getShapeTypeById','register','INSERT','_deserializeShapeForUnit','_initSnapshot','_initCommandInterceptor','undos','preUndos','borderEnabled','getShapeModel','None','getId','fill','getSheetId','flatMap','drawingType','left','lineShapeId','getDrawingByParam','rotation','_linesIds','onStarting','parse','constructor','position','40rdpfDK','sheet.mutation.update-shape-data','getShapeData','updates','range','add','deletes','isFinite','_sheetInterceptorService','_resolveBinding','transform','_groupIds','sin','7572ZqxOkv','_applyUpdate','sheetTransform','getName','startX','getStartConnectInfo','_disposed','sheet.command.set-shape-text-vertical-toggle','setShapeData','getBasicShapeType','worldRect','getDrawingData','cos','version','_shapeModelManagerMap','sendToBack','resizeEnabled','updateContext','getConnectionSiteList','formulaBinding','_getDrawingUpdates','_drawingService','getShapeDisplayNames','239668yuXfWX','isLineShape','getBasicShapeRelation','_initCommands','string','has','MUTATION','index','unitId','_planConnector','_addLineFollowShapeUpdates','anchorType','name'];_0x3f35=function(){return _0x50ae07;};return _0x3f35();}import{ArrangeTypeEnum as _0x457631,CommandType as _0x54ade8,DependentOn as _0x419537,Disposable as _0x2bbe37,DrawingTypeEnum as _0x44b4d3,ICommandService as _0x5975b8,IConfigService as _0x1618ed,IResourceManagerService as _0x5f483e,IUndoRedoService as _0x342cf7,IUniverInstanceService as _0x2a2fcb,Inject as _0x217e8f,Injector as _0x42e9c3,Plugin as _0x556515,SheetTypes as _0x44fc21,Tools as _0x1a87c2,UniverInstanceType as _0x3b79f5,generateRandomId as _0x1039ad,merge as _0x550d5a,sequenceExecute as _0x598341,touchDependencies as _0x5bbf07}from'@univerjs/core';import{SheetInterceptorService as _0xba6ba9,SheetSkeletonService as _0x4984ae,UniverSheetsPlugin as _0x53d426,getSheetCommandTarget as _0x382afd}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x26f620,DrawingApplyType as _0x3d2a3b,ISheetDrawingService as _0x23800c,InsertSheetDrawingCommand as _0x113035,RemoveSheetDrawingCommand as _0x3160a9,SetDrawingApplyMutation as _0x264bf6,SetDrawingArrangeCommand as _0xd0c1af,SetSheetDrawingCommand as _0x5e7a0b,SetSheetDrawingPlacementCommand as _0x313468,SheetDrawingAnchorType as _0x25b3be,SheetDrawingTransformPlanService as _0x2f6d7b,UniverSheetsDrawingPlugin as _0x29131a,applySheetDrawingPlacement as _0x570736,transformToAxisAlignPosition as _0x322cb5,transformToDrawingPosition as _0x1db059}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x250fc1}from'@univerjs-pro/license';import{IDrawingManagerService as _0x5066c1,UniverDrawingPlugin as _0x28d7a5}from'@univerjs/drawing';const oe=0xc8,se=0xc8;function ce(_0x148ea4){'@babel/helpers - typeof';const _0x8a5ebe=_0x4f9f;return ce=typeof Symbol==_0x8a5ebe(0x182)&&typeof Symbol[_0x8a5ebe(0x1e3)]=='symbol'?function(_0x682953){return typeof _0x682953;}:function(_0xe12af0){const _0x266f08=_0x8a5ebe;return _0xe12af0&&typeof Symbol==_0x266f08(0x182)&&_0xe12af0[_0x266f08(0x13e)]===Symbol&&_0xe12af0!==Symbol[_0x266f08(0x1f8)]?_0x266f08(0x1a3):typeof _0xe12af0;},ce(_0x148ea4);}function le(_0x38ae7a,_0x4f02c3){const _0x21be74=_0x4f9f;if(ce(_0x38ae7a)!='object'||!_0x38ae7a)return _0x38ae7a;var _0x3a7178;if(typeof Symbol<'u'&&(_0x3a7178=_0x38ae7a[Symbol[_0x21be74(0x179)]])!==void 0x0){var _0x31397d=_0x3a7178[_0x21be74(0x1f7)](_0x38ae7a,_0x4f02c3||'default');if(ce(_0x31397d)!=_0x21be74(0x1da))return _0x31397d;throw TypeError(_0x21be74(0x1e5));}return(_0x4f02c3==='string'?String:Number)(_0x38ae7a);}function ue(_0x5d328f){const _0x32ea10=_0x4f9f;var _0xa2d741=le(_0x5d328f,_0x32ea10(0x168));return ce(_0xa2d741)==_0x32ea10(0x1a3)?_0xa2d741:_0xa2d741+'';}function X(_0x38136d,_0x5e356c,_0x468cba){const _0x4adb2c=_0x4f9f;return(_0x5e356c=ue(_0x5e356c))in _0x38136d?Object[_0x4adb2c(0x1d1)](_0x38136d,_0x5e356c,{'value':_0x468cba,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38136d[_0x5e356c]=_0x468cba,_0x38136d;}var de=class extends _0x2bbe37{constructor(){const _0x54a505=_0x4f9f;super(),X(this,_0x54a505(0x173),new Map()),X(this,_0x54a505(0x13b),new Set()),X(this,_0x54a505(0x14b),new Set());}[_0x32504a(0x1b6)](_0x273a87,_0x1e9644,_0xfcb669,_0x259ba9){const _0x5c215e=_0x32504a;let _0x8f7147=new _0x188234(_0x273a87,_0x1e9644,_0xfcb669,_0x259ba9);return this[_0x5c215e(0x173)][_0x5c215e(0x18c)](_0x1e9644,_0x8f7147),_0x2ed008(_0x273a87)&&this[_0x5c215e(0x13b)][_0x5c215e(0x145)](_0x1e9644),_0x8f7147;}[_0x32504a(0x166)](_0x3a5bb6){const _0x39643d=_0x32504a;let _0x579e20=[];for(let _0x439abc of this[_0x39643d(0x13b)]){let _0x2042e0=this['_shapes'][_0x39643d(0x1ac)](_0x439abc);if(_0x2042e0){let _0x3a8409=_0x2042e0['getShapeRelation']();if(_0x3a8409){var _0x7c2e38,_0x302ee4;((_0x7c2e38=_0x3a8409[_0x39643d(0x17f)])==null?void 0x0:_0x7c2e38[_0x39643d(0x191)])===_0x3a5bb6&&_0x579e20[_0x39643d(0x1a4)]({..._0x3a8409[_0x39643d(0x17f)],'lineShapeId':_0x439abc,'isFrom':!0x0}),((_0x302ee4=_0x3a8409['to'])==null?void 0x0:_0x302ee4['shapeId'])===_0x3a5bb6&&_0x579e20[_0x39643d(0x1a4)]({..._0x3a8409['to'],'lineShapeId':_0x439abc,'isFrom':!0x1});}}}return _0x579e20;}[_0x32504a(0x1a0)](_0x546dd){const _0x32cf38=_0x32504a;let _0x5e5df2=this[_0x32cf38(0x173)]['get'](_0x546dd);if(_0x5e5df2)return _0x5e5df2['getShapeRelation']();}[_0x32504a(0x1b3)](_0x491456){const _0xd71e09=_0x32504a;let _0x595f8f=this[_0xd71e09(0x173)][_0xd71e09(0x1ac)](_0x491456);if(_0x595f8f)return _0x595f8f[_0xd71e09(0x1b3)]();}[_0x32504a(0x1b2)](_0xfe0ead){const _0x4d776b=_0x32504a;return this[_0x4d776b(0x173)][_0x4d776b(0x169)](_0xfe0ead);}[_0x32504a(0x163)](){const _0x2d9283=_0x32504a;return Array[_0x2d9283(0x17f)](this[_0x2d9283(0x173)]['values']())['map'](_0x34a17a=>_0x34a17a[_0x2d9283(0x150)]()||_0x34a17a[_0x2d9283(0x132)]());}[_0x32504a(0x1e0)](_0x38d49c,_0x162090){const _0x2891e0=_0x32504a;let _0x4acb7=this[_0x2891e0(0x173)][_0x2891e0(0x1ac)](_0x162090);return!_0x4acb7||_0x38d49c['hasShape'](_0x162090)?!0x1:(this['removeShape'](_0x162090),_0x38d49c['_shapes'][_0x2891e0(0x18c)](_0x162090,_0x4acb7),_0x2ed008(_0x4acb7[_0x2891e0(0x1b3)]())&&_0x38d49c['_linesIds'][_0x2891e0(0x145)](_0x162090),!0x0);}[_0x32504a(0x17d)](_0x387cb7){const _0x1a663f=_0x32504a;let _0x2ce073=this['_shapes']['get'](_0x387cb7);_0x2ce073&&(_0x2ed008(_0x2ce073[_0x1a663f(0x1b3)]())&&this[_0x1a663f(0x13b)][_0x1a663f(0x19f)](_0x387cb7),this[_0x1a663f(0x173)][_0x1a663f(0x19f)](_0x387cb7));}[_0x32504a(0x1a9)](){const _0x3adcc9=_0x32504a;let _0x2055a9=[];return this[_0x3adcc9(0x173)][_0x3adcc9(0x18a)](_0x25594c=>{const _0x20b4d0=_0x3adcc9;_0x2055a9['push'](_0x25594c[_0x20b4d0(0x1a9)]());}),_0x2055a9;}[_0x32504a(0x17c)](_0x5065e6){const _0x204fca=_0x32504a;for(let _0x641121 of _0x5065e6){let {id:_0xb45e5,shapeType:_0x4be67a,name:_0x42c1c2}=_0x641121,_0x1faba9=this[_0x204fca(0x1b6)](_0x4be67a,_0xb45e5,_0x641121[_0x204fca(0x198)],_0x42c1c2);_0x1faba9&&_0x1faba9[_0x204fca(0x165)]()&&this[_0x204fca(0x13b)][_0x204fca(0x145)](_0xb45e5);}}[_0x32504a(0x1ea)](){const _0x55511c=_0x32504a;this[_0x55511c(0x153)]||(this['_shapes'][_0x55511c(0x18a)](_0x404dbb=>{_0x404dbb['dispose']();}),this[_0x55511c(0x173)]['clear'](),this[_0x55511c(0x13b)][_0x55511c(0x1e6)](),this[_0x55511c(0x14b)][_0x55511c(0x1e6)](),super['dispose']());}};function Z(_0x3a9e89,_0x3f65c1){return function(_0x22f081,_0x4b77c1){_0x3f65c1(_0x22f081,_0x4b77c1,_0x3a9e89);};}function _0x4f9f(_0x237973,_0x326e59){_0x237973=_0x237973-0x11e;const _0x3f35f8=_0x3f35();let _0x4f9ffb=_0x3f35f8[_0x237973];return _0x4f9ffb;}function fe(_0x6b7fd5,_0x46f752,_0x11d16f,_0x4c32a8){const _0x4e9214=_0x32504a;var _0xf831f3=arguments[_0x4e9214(0x122)],_0x1bff66=_0xf831f3<0x3?_0x46f752:_0x4c32a8===null?_0x4c32a8=Object[_0x4e9214(0x1a8)](_0x46f752,_0x11d16f):_0x4c32a8,_0x46c679;if(typeof Reflect==_0x4e9214(0x1da)&&typeof Reflect['decorate']==_0x4e9214(0x182))_0x1bff66=Reflect[_0x4e9214(0x1de)](_0x6b7fd5,_0x46f752,_0x11d16f,_0x4c32a8);else{for(var _0x3ccfae=_0x6b7fd5[_0x4e9214(0x122)]-0x1;_0x3ccfae>=0x0;_0x3ccfae--)(_0x46c679=_0x6b7fd5[_0x3ccfae])&&(_0x1bff66=(_0xf831f3<0x3?_0x46c679(_0x1bff66):_0xf831f3>0x3?_0x46c679(_0x46f752,_0x11d16f,_0x1bff66):_0x46c679(_0x46f752,_0x11d16f))||_0x1bff66);}return _0xf831f3>0x3&&_0x1bff66&&Object[_0x4e9214(0x1d1)](_0x46f752,_0x11d16f,_0x1bff66),_0x1bff66;}let Q=class extends _0x2bbe37{constructor(_0x87e2ce){const _0x62ca69=_0x32504a;super(),this[_0x62ca69(0x186)]=_0x87e2ce,X(this,_0x62ca69(0x15b),new Map()),this[_0x62ca69(0x12b)]();}[_0x32504a(0x19b)](_0x3a610c,_0x27471e){const _0x171d5d=_0x32504a;let _0x35f6cd=this[_0x171d5d(0x15b)][_0x171d5d(0x1ac)](_0x3a610c);_0x35f6cd||(_0x35f6cd=new Map(),this['_shapeModelManagerMap'][_0x171d5d(0x18c)](_0x3a610c,_0x35f6cd));let _0x2c97c5=_0x35f6cd['get'](_0x27471e);return _0x2c97c5||(_0x2c97c5=new de(),_0x35f6cd['set'](_0x27471e,_0x2c97c5)),_0x2c97c5;}['insertShape'](_0x330867,_0x246928,_0x1be8ce,_0x3d6677,_0x3c7431,_0x582723){const _0x56f8a1=_0x32504a;this[_0x56f8a1(0x19b)](_0x330867,_0x246928)[_0x56f8a1(0x1b6)](_0x1be8ce,_0x3d6677,_0x3c7431,_0x582723);}[_0x32504a(0x120)](_0x464bdf,_0x104ec4,_0x181385,_0x2fa174){const _0x4e4bbf=_0x32504a;var _0x764197;let _0x426a11=(_0x764197=this[_0x4e4bbf(0x15b)][_0x4e4bbf(0x1ac)](_0x464bdf))==null?void 0x0:_0x764197[_0x4e4bbf(0x1ac)](_0x104ec4);return!_0x426a11||_0x104ec4===_0x181385?!0x1:_0x426a11[_0x4e4bbf(0x1e0)](this['_ensureShapeModelManager'](_0x464bdf,_0x181385),_0x2fa174);}[_0x32504a(0x17d)](_0x39dd8c,_0x2e747f,_0x5b83b0){const _0x26c036=_0x32504a;this['_ensureShapeModelManager'](_0x39dd8c,_0x2e747f)[_0x26c036(0x17d)](_0x5b83b0);}[_0x32504a(0x156)](_0x57fdca,_0x47075a,_0xf223a1){const _0x7c05df=_0x32504a;return this[_0x7c05df(0x19b)](_0x57fdca,_0x47075a)[_0x7c05df(0x1b3)](_0xf223a1);}[_0x32504a(0x1b3)](_0x326ca1,_0x431cf8,_0x27ba20){const _0x3494af=_0x32504a;return this[_0x3494af(0x19b)](_0x326ca1,_0x431cf8)[_0x3494af(0x1b3)](_0x27ba20);}[_0x32504a(0x1b2)](_0xc77829,_0x5a1559,_0x4032d7){const _0x271c46=_0x32504a;return this[_0x271c46(0x19b)](_0xc77829,_0x5a1559)[_0x271c46(0x1b2)](_0x4032d7);}[_0x32504a(0x127)](_0xd62481,_0x5f18b9,_0x19c8c9){const _0x16d255=_0x32504a;return this[_0x16d255(0x19b)](_0xd62481,_0x5f18b9)['getShapeType'](_0x19c8c9);}[_0x32504a(0x1bf)](_0x4bd906,_0x117802,_0x1cb4fc){const _0x4e7d7f=_0x32504a;let _0x48f85a=this['_ensureShapeModelManager'](_0x4bd906,_0x117802);if(!_0x48f85a['getShapeType'](_0x1cb4fc))return;let _0x4c1000=_0x48f85a[_0x4e7d7f(0x173)][_0x4e7d7f(0x1ac)](_0x1cb4fc);if(_0x4c1000)return _0x4c1000[_0x4e7d7f(0x142)]();}[_0x32504a(0x163)](_0x24ca0e,_0x560abc){const _0x156d5f=_0x32504a;return this[_0x156d5f(0x19b)](_0x24ca0e,_0x560abc)[_0x156d5f(0x163)]();}[_0x32504a(0x130)](_0x5f3322,_0x42a52c,_0x1a18ca){const _0x1b34d4=_0x32504a;return this[_0x1b34d4(0x19b)](_0x5f3322,_0x42a52c)[_0x1b34d4(0x173)][_0x1b34d4(0x1ac)](_0x1a18ca);}[_0x32504a(0x166)](_0x2f9285,_0x2029f9,_0x5cb026){const _0x30e125=_0x32504a;return this[_0x30e125(0x19b)](_0x2f9285,_0x2029f9)[_0x30e125(0x166)](_0x5cb026);}['getLineShapeRelation'](_0x3db9d2,_0x5d96fb,_0x5c21ec){const _0x2a41ed=_0x32504a;let _0x347466=this[_0x2a41ed(0x19b)](_0x3db9d2,_0x5d96fb)[_0x2a41ed(0x173)][_0x2a41ed(0x1ac)](_0x5c21ec);if(_0x347466)return _0x347466[_0x2a41ed(0x1e1)]();}[_0x32504a(0x1b5)](){}[_0x32504a(0x17a)](_0x1f9fd9){const _0x2a39fb=_0x32504a;let _0x28348e={},_0x532295=this[_0x2a39fb(0x15b)][_0x2a39fb(0x1ac)](_0x1f9fd9);return _0x532295&&_0x532295['forEach']((_0x483474,_0x4b89d2)=>{const _0x4f1200=_0x2a39fb;let _0x339873=_0x483474[_0x4f1200(0x1a9)]();_0x339873[_0x4f1200(0x122)]>0x0&&(_0x28348e[_0x4b89d2]=_0x339873);}),JSON['stringify'](_0x28348e);}['_deserializeShapeForUnit'](_0x503230,_0xbd830){const _0x11ec59=_0x32504a;Object[_0x11ec59(0x18f)](_0xbd830)[_0x11ec59(0x18a)](_0x169b52=>{const _0x1bf5e7=_0x11ec59;this[_0x1bf5e7(0x19b)](_0x503230,_0x169b52)[_0x1bf5e7(0x17c)](_0xbd830[_0x169b52]);});}[_0x32504a(0x1a9)](){let _0x5dd67a={};return this['_shapeModelManagerMap']['forEach']((_0x251656,_0x37cb59)=>{const _0xe41cb5=_0x4f9f;_0x5dd67a[_0x37cb59]={},_0x251656[_0xe41cb5(0x18a)]((_0x212077,_0x5c1296)=>{_0x5dd67a[_0x37cb59][_0x5c1296]=_0x212077['toJSON']();});}),_0x5dd67a;}[_0x32504a(0x17c)](_0x1ec2f){const _0x47dc0f=_0x32504a;Object[_0x47dc0f(0x18f)](_0x1ec2f)[_0x47dc0f(0x18a)](_0x25b24b=>{const _0x5a46ba=_0x47dc0f;let _0x1d8575=_0x1ec2f[_0x25b24b];Object[_0x5a46ba(0x18f)](_0x1d8575)[_0x5a46ba(0x18a)](_0x2cd633=>{const _0x264512=_0x5a46ba;this['_ensureShapeModelManager'](_0x25b24b,_0x2cd633)[_0x264512(0x17c)](_0x1d8575[_0x2cd633]);});});}['_initSnapshot'](){const _0xaa2679=_0x32504a;this[_0xaa2679(0x186)]['registerPluginResource']({'pluginName':_0xaa2679(0x1ba),'businesses':[_0x3b79f5[_0xaa2679(0x1a2)]],'toJson':_0x7cd70=>this[_0xaa2679(0x17a)](_0x7cd70),'parseJson':_0x36d916=>JSON[_0xaa2679(0x13d)](_0x36d916),'onLoad':(_0x9bfd2,_0x37815d)=>{const _0x1a62c0=_0xaa2679;this[_0x1a62c0(0x12a)](_0x9bfd2,_0x37815d);},'onUnLoad':_0x14e5fa=>{const _0x112cf8=_0xaa2679;let _0x39662c=this[_0x112cf8(0x15b)][_0x112cf8(0x1ac)](_0x14e5fa);_0x39662c&&(_0x39662c[_0x112cf8(0x18a)](_0x5d0aba=>{const _0x4556cb=_0x112cf8;_0x5d0aba[_0x4556cb(0x1ea)]();}),this['_shapeModelManagerMap'][_0x112cf8(0x19f)](_0x14e5fa));}});}[_0x32504a(0x1ea)](){const _0x284844=_0x32504a;this[_0x284844(0x15b)][_0x284844(0x18a)](_0x38a00=>{const _0x308096=_0x284844;_0x38a00[_0x308096(0x18a)](_0x3faf43=>{const _0x5830a0=_0x308096;_0x3faf43[_0x5830a0(0x1ea)]();});});}};Q=fe([Z(0x0,_0x5f483e)],Q);const pe={'id':_0x32504a(0x1ae),'type':_0x54ade8[_0x32504a(0x16a)],'handler':(_0x311f81,_0x5b8b20)=>{const _0x57f986=_0x32504a;let {unitId:_0x1b52e1,subUnitId:_0x5af282,shapeType:_0x54da4e,shapeId:_0x427e15,shapeName:_0x40097e,shapeData:_0x4b161e}=_0x5b8b20;return _0x311f81[_0x57f986(0x1ac)](Q)[_0x57f986(0x1eb)](_0x1b52e1,_0x5af282,_0x54da4e,_0x427e15,_0x1a87c2['deepClone'](_0x4b161e),_0x40097e),!0x0;}},me={'id':_0x32504a(0x176),'type':_0x54ade8[_0x32504a(0x16a)],'handler':(_0x5beb9b,_0x1e1686)=>{const _0x408e8a=_0x32504a;let {unitId:_0x42b876,subUnitId:_0x375cfa,shapeId:_0x4a4073}=_0x1e1686;return _0x5beb9b[_0x408e8a(0x1ac)](Q)[_0x408e8a(0x17d)](_0x42b876,_0x375cfa,_0x4a4073),!0x0;}},he={'type':_0x54ade8['COMMAND'],'id':'sheet.command.insert-shape','handler':(_0x137c23,_0x5ca73a)=>{const _0xc8aaf9=_0x32504a;let _0x4e8fe2=_0x382afd(_0x137c23[_0xc8aaf9(0x1ac)](_0x2a2fcb),_0x5ca73a);if(!_0x4e8fe2)return!0x1;let {unitId:_0x31e2db,subUnitId:_0x439cc1,worksheet:_0x578063}=_0x4e8fe2,_0x12f373=_0x578063['getConfig']()[_0xc8aaf9(0x1ee)]??_0x44fc21['GRID'],_0x110cd2=_0x12f373===_0x44fc21[_0xc8aaf9(0x181)];if(!_0x110cd2&&_0x12f373!==_0x44fc21[_0xc8aaf9(0x1f5)])return!0x1;let _0x5bfab4=_0x110cd2?void 0x0:_0x137c23[_0xc8aaf9(0x1ac)](_0x4984ae)[_0xc8aaf9(0x11e)](_0x31e2db,_0x439cc1);if(!_0x110cd2&&!_0x5bfab4)return!0x1;let _0x238a34=_0x110cd2?_0x5ca73a[_0xc8aaf9(0x1c7)]??0xc8:_0x5ca73a[_0xc8aaf9(0x1c7)]||0xc8,_0x23b283=_0x110cd2?_0x5ca73a[_0xc8aaf9(0x1c1)]??0xc8:_0x5ca73a[_0xc8aaf9(0x1c1)]||0xc8,{position:_0x550f35}=_0x5ca73a;if(_0x110cd2&&(!Number[_0xc8aaf9(0x147)](_0x238a34)||!Number['isFinite'](_0x23b283)||_0x238a34<=0x0||_0x23b283<=0x0||_0x550f35&&(!Number[_0xc8aaf9(0x147)](_0x550f35['x'])||!Number[_0xc8aaf9(0x147)](_0x550f35['y']))))return!0x1;let _0x8c409e=_0x137c23[_0xc8aaf9(0x1ac)](_0x5975b8),_0x16c54e=_0x137c23[_0xc8aaf9(0x1ac)](_0x342cf7),_0x26bd5c=_0x137c23['get'](_0xba6ba9),_0x360486=_0x137c23[_0xc8aaf9(0x1ac)](_0x23800c),_0x57f54f=_0x137c23[_0xc8aaf9(0x1ac)](Q),{shapeType:_0x54fcc9}=_0x5ca73a,_0x1e02d6=_0x5ca73a[_0xc8aaf9(0x198)]??_0x92392(_0x54fcc9),_0x1a68a5=_0x5ca73a[_0xc8aaf9(0x191)]||_0x1039ad(),_0x240c22={'unitId':_0x31e2db,'subUnitId':_0x439cc1,'shapeId':_0x1a68a5,'shapeName':_0x5ca73a[_0xc8aaf9(0x1fe)]??_0x517f41(_0x54fcc9,_0x57f54f['getShapeDisplayNames'](_0x31e2db,_0x439cc1)),'shapeType':_0x54fcc9,'shapeData':_0x1e02d6},_0x4bbdd4=0x0,_0x807540=0x0;if(_0x5ca73a['position']){let {x:_0x568335,y:_0x1e5c4e}=_0x5ca73a[_0xc8aaf9(0x13f)];_0x4bbdd4=_0x568335,_0x807540=_0x1e5c4e;}else{if(_0x5ca73a[_0xc8aaf9(0x144)]&&_0x5bfab4){let {startRow:_0x45a3b4,startColumn:_0x1b31a8}=_0x5ca73a[_0xc8aaf9(0x144)],_0x3a2a4e=_0x5bfab4[_0xc8aaf9(0x19e)](_0x45a3b4,_0x1b31a8);_0x4bbdd4=_0x3a2a4e[_0xc8aaf9(0x151)]+0xa,_0x807540=_0x3a2a4e[_0xc8aaf9(0x1bd)]+0xa;}}let _0x2efe4c={'left':_0x4bbdd4,'top':_0x807540,'width':_0x238a34,'height':_0x23b283,'angle':_0x5ca73a[_0xc8aaf9(0x13a)]??0x0,'flipX':_0x5ca73a[_0xc8aaf9(0x183)]??!0x1,'flipY':_0x5ca73a['flipY']??!0x1},_0x25f55b={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0xcbcd0e=_0x5bfab4?_0x1db059(_0x2efe4c,_0x5bfab4):{'from':_0x25f55b,'to':_0x25f55b},_0xcc2576=_0x5bfab4?_0x322cb5(_0x2efe4c,_0x5bfab4):_0xcbcd0e,_0x42be8c={'unitId':_0x31e2db,'subUnitId':_0x439cc1,'drawingId':_0x1a68a5,'drawingType':_0x44b4d3[_0xc8aaf9(0x1f0)],'anchorType':_0x25b3be[_0xc8aaf9(0x1ef)],'name':_0x5ca73a[_0xc8aaf9(0x170)],'description':_0x5ca73a[_0xc8aaf9(0x1be)],'sheetTransform':_0xcbcd0e,'transform':_0x2efe4c,'data':{'shapeType':_0x54fcc9,'shapeData':_0x1e02d6},'axisAlignSheetTransform':_0xcc2576,'allowTransform':!0x0,'hidden':_0x5ca73a[_0xc8aaf9(0x11f)]===!0x1,'selectable':_0x5ca73a[_0xc8aaf9(0x1d9)]??!0x0};if(_0x110cd2){let _0x535d09=_0x570736(_0x42be8c,{'kind':_0x25b3be[_0xc8aaf9(0x131)],'left':_0x4bbdd4,'top':_0x807540,'width':_0x238a34,'height':_0x23b283});_0x42be8c={..._0x42be8c,'anchorType':_0x535d09[_0xc8aaf9(0x16f)],'transform':_0x535d09[_0xc8aaf9(0x14a)],'sheetTransform':_0x535d09[_0xc8aaf9(0x14f)],'axisAlignSheetTransform':_0x535d09[_0xc8aaf9(0x1c6)]};}_0x2ed008(_0x54fcc9)&&(_0x42be8c[_0xc8aaf9(0x1ad)][_0xc8aaf9(0x133)]=!0x1,_0x42be8c[_0xc8aaf9(0x1ad)]['rotateEnabled']=!0x1,_0x42be8c['data'][_0xc8aaf9(0x15d)]=!0x1,_0x42be8c[_0xc8aaf9(0x1ad)][_0xc8aaf9(0x12f)]=!0x1,_0x42be8c[_0xc8aaf9(0x14a)][_0xc8aaf9(0x1c0)]=!0x1,_0x42be8c[_0xc8aaf9(0x14a)][_0xc8aaf9(0x15d)]=!0x1,_0x42be8c[_0xc8aaf9(0x14a)][_0xc8aaf9(0x12f)]=!0x1);let {undo:_0x24b1ac,redo:_0x28291c,objects:_0xc98122}=_0x360486[_0xc8aaf9(0x1c9)]([_0x42be8c]),_0x2712d6=_0x26bd5c['onCommandExecute']({'id':_0x113035['id'],'params':{'unitId':_0x31e2db,'drawings':[_0x42be8c]}}),_0x5822c6=[..._0x2712d6[_0xc8aaf9(0x1ce)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x31e2db,'subUnitId':_0x439cc1,'op':_0x28291c,'objects':_0xc98122,'type':_0x3d2a3b[_0xc8aaf9(0x129)]}},{'id':_0x26f620['id'],'params':[_0x31e2db]},..._0x2712d6[_0xc8aaf9(0x1d4)],{'id':pe['id'],'params':_0x240c22}],_0x3914d4=[{'id':me['id'],'params':{'unitId':_0x31e2db,'subUnitId':_0x439cc1,'shapeId':_0x1a68a5}},..._0x2712d6['preUndos']??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x31e2db,'subUnitId':_0x439cc1,'op':_0x24b1ac,'objects':_0xc98122,'type':_0x3d2a3b['REMOVE']}},{'id':_0x26f620['id'],'params':[_0x31e2db]},..._0x2712d6[_0xc8aaf9(0x12d)]];return _0x598341(_0x5822c6,_0x8c409e)[_0xc8aaf9(0x1e9)]?(_0x16c54e[_0xc8aaf9(0x1b0)]({'unitID':_0x31e2db,'undoMutations':_0x3914d4,'redoMutations':_0x5822c6}),!0x0):!0x1;}},$={'id':_0x32504a(0x141),'type':_0x54ade8[_0x32504a(0x16a)],'handler':(_0x2df28e,_0xd1cada)=>{const _0x2b1203=_0x32504a;let {unitId:_0x2ef268,subUnitId:_0x42ce0d,shapeType:_0x84a8b4,shapeId:_0x59f2d5,shapeData:_0x4f5219,replace:_0x532faf,formulaLastValueGuard:_0x44daaf}=_0xd1cada,_0x1d6527=_0x2df28e[_0x2b1203(0x1ac)](Q)[_0x2b1203(0x130)](_0x2ef268,_0x42ce0d,_0x59f2d5);if(_0x1d6527){var _0x3b7ab7;if(!_0x5f3cd7(_0x2df28e,{'hostType':_0x3b79f5[_0x2b1203(0x1a2)],'unitId':_0x2ef268,'subUnitId':_0x42ce0d,'shapeId':_0x59f2d5},(_0x3b7ab7=_0x1d6527[_0x2b1203(0x142)]()['formulaBinding'])==null?void 0x0:_0x3b7ab7[_0x2b1203(0x19a)],_0x44daaf))return!0x0;_0x84a8b4!==void 0x0&&_0x1d6527[_0x2b1203(0x1b5)](_0x84a8b4),_0x4f5219&&(_0x1d6527==null||_0x1d6527[_0x2b1203(0x155)](_0x1a87c2[_0x2b1203(0x201)](_0x4f5219),!_0x532faf));}return!0x0;}},ge={'type':_0x54ade8[_0x32504a(0x1fd)],'id':_0x32504a(0x1dc),'handler':(_0x8da785,_0x17d363)=>{const _0x2ff6f9=_0x32504a;let _0xcf5a60=_0x382afd(_0x8da785[_0x2ff6f9(0x1ac)](_0x2a2fcb),_0x17d363);if(!_0xcf5a60)return!0x1;let _0x238235=_0x8da785['get'](_0x4984ae),{unitId:_0x5c7ef0,subUnitId:_0xf0f308}=_0xcf5a60,_0x5d28b8=_0x238235[_0x2ff6f9(0x11e)](_0x5c7ef0,_0xf0f308);if(!_0x5d28b8)return!0x1;let _0x3ab01b=_0x8da785[_0x2ff6f9(0x1ac)](Q),{shapeId:_0x3c5904,shapeType:_0x42d6ad,shapeData:_0x2516f7,position:_0x339c15,width:_0x3278d1,height:_0x470653}=_0x17d363,_0x1cfb2b=_0x3ab01b['getShapeModel'](_0x5c7ef0,_0xf0f308,_0x3c5904);if(!_0x1cfb2b)return!0x1;let _0x317989=_0x8da785[_0x2ff6f9(0x1ac)](_0x5975b8),_0x2c83c5=_0x8da785['get'](_0x342cf7),_0x58fdd2=_0x8da785['get'](_0xba6ba9),_0x113f12=_0x8da785[_0x2ff6f9(0x1ac)](_0x23800c),_0x448e82={'unitId':_0x5c7ef0,'subUnitId':_0xf0f308,'shapeId':_0x3c5904,'shapeType':_0x42d6ad,'shapeData':_0x2516f7,'replace':!0x0},_0x57e044=_0x1cfb2b[_0x2ff6f9(0x1b3)](),_0x250179=_0x1cfb2b[_0x2ff6f9(0x142)](),{x:_0x19b3cb,y:_0x3e681e}=_0x339c15,_0x389bcc={'left':_0x19b3cb,'top':_0x3e681e,'width':_0x3278d1,'height':_0x470653,'angle':_0x17d363[_0x2ff6f9(0x13a)]??0x0,'flipX':_0x17d363[_0x2ff6f9(0x183)]??!0x1,'flipY':_0x17d363[_0x2ff6f9(0x1cd)]??!0x1},_0x48e919=_0x1db059(_0x389bcc,_0x5d28b8),_0x565700=_0x322cb5(_0x389bcc,_0x5d28b8),_0x15f080={'unitId':_0x5c7ef0,'subUnitId':_0xf0f308,'drawingId':_0x3c5904,'drawingType':_0x44b4d3['DRAWING_SHAPE'],'name':_0x17d363['name'],'description':_0x17d363[_0x2ff6f9(0x1be)],'sheetTransform':_0x48e919,'transform':_0x389bcc,'data':{'shapeType':_0x42d6ad,'shapeData':_0x2516f7},'axisAlignSheetTransform':_0x565700,'allowTransform':!0x0,'hidden':!_0x17d363[_0x2ff6f9(0x11f)],'selectable':_0x17d363[_0x2ff6f9(0x1d9)]};_0x2ed008(_0x42d6ad)&&(_0x15f080['data'][_0x2ff6f9(0x133)]=!0x1,_0x15f080[_0x2ff6f9(0x1ad)][_0x2ff6f9(0x1c0)]=!0x1,_0x15f080['data']['resizeEnabled']=!0x1,_0x15f080[_0x2ff6f9(0x1ad)]['borderEnabled']=!0x1,_0x15f080[_0x2ff6f9(0x14a)][_0x2ff6f9(0x1c0)]=!0x1,_0x15f080['transform'][_0x2ff6f9(0x15d)]=!0x1,_0x15f080['transform'][_0x2ff6f9(0x12f)]=!0x1);let {undo:_0x5a2f10,redo:_0x376518,objects:_0x13bc55}=_0x113f12[_0x2ff6f9(0x124)]([_0x15f080]),_0x2a02ef=_0x58fdd2['onCommandExecute']({'id':_0x5e7a0b['id'],'params':{'unitId':_0x5c7ef0,'drawings':[_0x15f080]}}),_0x4fc6d8=[..._0x2a02ef[_0x2ff6f9(0x1ce)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x5c7ef0,'subUnitId':_0xf0f308,'op':_0x376518,'objects':_0x13bc55,'type':_0x3d2a3b['UPDATE']}},{'id':_0x26f620['id'],'params':[_0x5c7ef0]},..._0x2a02ef[_0x2ff6f9(0x1d4)],{'id':$['id'],'params':_0x448e82}],_0x42f1e4=[..._0x2a02ef[_0x2ff6f9(0x12e)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x5c7ef0,'subUnitId':_0xf0f308,'op':_0x5a2f10,'objects':_0x13bc55,'type':_0x3d2a3b['UPDATE']}},{'id':_0x26f620['id'],'params':[_0x5c7ef0]},..._0x2a02ef[_0x2ff6f9(0x12d)],{'id':$['id'],'params':{'unitId':_0x5c7ef0,'subUnitId':_0xf0f308,'shapeType':_0x57e044,'shapeId':_0x3c5904,'shapeData':_0x250179,'replace':!0x0}}];return _0x598341(_0x4fc6d8,_0x317989)['result']?(_0x2c83c5['pushUndoRedo']({'unitID':_0x5c7ef0,'undoMutations':_0x42f1e4,'redoMutations':_0x4fc6d8}),!0x0):!0x1;}},_e={'type':_0x54ade8['COMMAND'],'id':_0x32504a(0x1c4),'handler':(_0x4b890b,_0x171ec2)=>{const _0x822f5d=_0x32504a;let _0x14f40f=_0x382afd(_0x4b890b[_0x822f5d(0x1ac)](_0x2a2fcb),_0x171ec2);if(!_0x14f40f)return!0x1;let _0x40cd46=_0x4b890b['get'](_0x4984ae),{unitId:_0xd268fb,subUnitId:_0x1a7eb0}=_0x14f40f,_0x3c46d1=_0x40cd46[_0x822f5d(0x196)](_0xd268fb,_0x1a7eb0);if(!_0x3c46d1)return!0x1;let _0x482d09=_0x4b890b[_0x822f5d(0x1ac)](_0x23800c),{shapeId:_0x3fd83d,flipH:_0x58b087,flipV:_0x14f75f}=_0x171ec2,_0x412c1c=_0x482d09['getDrawingByParam']({'unitId':_0xd268fb,'subUnitId':_0x1a7eb0,'drawingId':_0x3fd83d});if(!_0x412c1c)return!0x1;let _0x500ebf=_0x4b890b[_0x822f5d(0x1ac)](Q)[_0x822f5d(0x130)](_0xd268fb,_0x1a7eb0,_0x3fd83d);if(!_0x500ebf)return!0x1;let _0x1b5ae9=_0x4b890b[_0x822f5d(0x1ac)](_0x5975b8),_0x53a20a=_0x4b890b[_0x822f5d(0x1ac)](_0x342cf7),_0x358fa3=_0x4b890b[_0x822f5d(0x1ac)](_0xba6ba9),_0x3a9238={..._0x412c1c[_0x822f5d(0x14a)]};_0x58b087!==void 0x0&&(_0x3a9238[_0x822f5d(0x183)]=!_0x3a9238[_0x822f5d(0x183)]),_0x14f75f!==void 0x0&&(_0x3a9238[_0x822f5d(0x1cd)]=!_0x3a9238[_0x822f5d(0x1cd)]);let _0x15497c=_0x1db059(_0x3a9238,_0x3c46d1),_0x52bf00=_0x322cb5(_0x3a9238,_0x3c46d1),_0x2935c8=_0x500ebf[_0x822f5d(0x1b3)](),_0x3eb60b=_0x500ebf[_0x822f5d(0x142)](),_0x3064de={'unitId':_0xd268fb,'subUnitId':_0x1a7eb0,'drawingId':_0x3fd83d,'drawingType':_0x44b4d3['DRAWING_SHAPE'],'sheetTransform':_0x15497c,'transform':_0x3a9238,'data':{'shapeType':_0x2935c8,'shapeData':_0x3eb60b},'axisAlignSheetTransform':_0x52bf00,'allowTransform':!0x0},{undo:_0x169db2,redo:_0x3fd533,objects:_0x3b22a7}=_0x482d09[_0x822f5d(0x124)]([_0x3064de]),_0x254dfe=_0x358fa3[_0x822f5d(0x193)]({'id':_0x5e7a0b['id'],'params':{'unitId':_0xd268fb,'drawings':[_0x3064de]}}),_0x5d8075=[..._0x254dfe[_0x822f5d(0x1ce)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0xd268fb,'subUnitId':_0x1a7eb0,'op':_0x3fd533,'objects':_0x3b22a7,'type':_0x3d2a3b['UPDATE']}},{'id':_0x26f620['id'],'params':[_0xd268fb]},..._0x254dfe[_0x822f5d(0x1d4)]],_0x1ef88a=[..._0x254dfe['preUndos']??[],{'id':_0x264bf6['id'],'params':{'unitId':_0xd268fb,'subUnitId':_0x1a7eb0,'op':_0x169db2,'objects':_0x3b22a7,'type':_0x3d2a3b[_0x822f5d(0x1e7)]}},{'id':_0x26f620['id'],'params':[_0xd268fb]},..._0x254dfe[_0x822f5d(0x12d)]];if(_0x2ed008(_0x2935c8)){let _0x24d21d=_0x500ebf[_0x822f5d(0x1e1)]();if(_0x24d21d){let _0x594a21={..._0x24d21d};_0x594a21[_0x822f5d(0x17f)]=void 0x0,_0x594a21['to']=void 0x0,_0x5d8075['push']({'id':$['id'],'params':{'unitId':_0xd268fb,'subUnitId':_0x1a7eb0,'shapeId':_0x3fd83d,'shapeType':_0x2935c8,'shapeData':{'relation':_0x594a21}}}),_0x1ef88a[_0x822f5d(0x1a4)]({'id':$['id'],'params':{'unitId':_0xd268fb,'subUnitId':_0x1a7eb0,'shapeId':_0x3fd83d,'shapeType':_0x2935c8,'shapeData':{'relation':_0x24d21d}}});}}return _0x598341(_0x5d8075,_0x1b5ae9)['result']?(_0x53a20a['pushUndoRedo']({'unitID':_0xd268fb,'undoMutations':_0x1ef88a,'redoMutations':_0x5d8075}),!0x0):!0x1;}},ve={'type':_0x54ade8[_0x32504a(0x1fd)],'id':_0x32504a(0x17e),'handler':(_0x32fcde,_0x50368c)=>{const _0xb63e20=_0x32504a;let _0x48259d=_0x382afd(_0x32fcde[_0xb63e20(0x1ac)](_0x2a2fcb),_0x50368c);if(!_0x48259d)return!0x1;let _0x56238e=_0x32fcde[_0xb63e20(0x1ac)](_0x4984ae),{unitId:_0x98b0c2,subUnitId:_0x36eaa2}=_0x48259d,_0x224e9b=_0x56238e[_0xb63e20(0x196)](_0x98b0c2,_0x36eaa2);if(!_0x224e9b)return!0x1;let _0xbf6e0f=_0x32fcde[_0xb63e20(0x1ac)](_0x23800c),{shapeId:_0x42be45,rotate:_0x1798ee}=_0x50368c,_0x3eb8f3=_0xbf6e0f['getDrawingByParam']({'unitId':_0x98b0c2,'subUnitId':_0x36eaa2,'drawingId':_0x42be45});if(!_0x3eb8f3)return!0x1;let _0x3b1567=_0x32fcde['get'](Q)[_0xb63e20(0x130)](_0x98b0c2,_0x36eaa2,_0x42be45);if(!_0x3b1567)return!0x1;let _0x5e1329=_0x32fcde[_0xb63e20(0x1ac)](_0x5975b8),_0x3e3d79=_0x32fcde[_0xb63e20(0x1ac)](_0x342cf7),_0x16b27e=_0x32fcde[_0xb63e20(0x1ac)](_0xba6ba9),_0x438d31={..._0x3eb8f3['transform']};_0x1798ee!==void 0x0&&(_0x438d31[_0xb63e20(0x1df)]=(_0x438d31[_0xb63e20(0x1df)]||0x0)+_0x1798ee);let _0x3fd204=_0x1db059(_0x438d31,_0x224e9b),_0x1a6d0b=_0x322cb5(_0x438d31,_0x224e9b),_0x13739e=_0x3b1567[_0xb63e20(0x1b3)](),_0x3c4eaa=_0x3b1567[_0xb63e20(0x142)](),_0x198c8a={'unitId':_0x98b0c2,'subUnitId':_0x36eaa2,'drawingId':_0x42be45,'drawingType':_0x44b4d3[_0xb63e20(0x1f0)],'sheetTransform':_0x3fd204,'transform':_0x438d31,'data':{'shapeType':_0x13739e,'shapeData':_0x3c4eaa},'axisAlignSheetTransform':_0x1a6d0b,'allowTransform':!0x0},{undo:_0x478445,redo:_0xd79cb7,objects:_0x369fe9}=_0xbf6e0f[_0xb63e20(0x124)]([_0x198c8a]),_0x4175ea=_0x16b27e[_0xb63e20(0x193)]({'id':_0x5e7a0b['id'],'params':{'unitId':_0x98b0c2,'drawings':[_0x198c8a]}}),_0x227a4b=[..._0x4175ea[_0xb63e20(0x1ce)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x98b0c2,'subUnitId':_0x36eaa2,'op':_0xd79cb7,'objects':_0x369fe9,'type':_0x3d2a3b[_0xb63e20(0x1e7)]}},{'id':_0x26f620['id'],'params':[_0x98b0c2]},..._0x4175ea[_0xb63e20(0x1d4)]],_0x5d7cab=[..._0x4175ea['preUndos']??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x98b0c2,'subUnitId':_0x36eaa2,'op':_0x478445,'objects':_0x369fe9,'type':_0x3d2a3b[_0xb63e20(0x1e7)]}},{'id':_0x26f620['id'],'params':[_0x98b0c2]},..._0x4175ea[_0xb63e20(0x12d)]];return _0x598341(_0x227a4b,_0x5e1329)[_0xb63e20(0x1e9)]?(_0x3e3d79['pushUndoRedo']({'unitID':_0x98b0c2,'undoMutations':_0x5d7cab,'redoMutations':_0x227a4b}),!0x0):!0x1;}},ye={'type':_0x54ade8[_0x32504a(0x1fd)],'id':_0x32504a(0x154),'handler':(_0x39297b,_0x281786)=>{const _0x3cc70a=_0x32504a;let _0x5a632a=_0x382afd(_0x39297b[_0x3cc70a(0x1ac)](_0x2a2fcb),_0x281786);if(!_0x5a632a)return!0x1;let {unitId:_0xedcc57,subUnitId:_0xb84798}=_0x5a632a,{shapeId:_0x57c4d1}=_0x281786,_0x50b591=_0x39297b['get'](Q)['getShapeModel'](_0xedcc57,_0xb84798,_0x57c4d1);if(!_0x50b591)return!0x1;let _0x97561a=_0x50b591[_0x3cc70a(0x1e2)](),_0x4255c7=(_0x97561a==null?void 0x0:_0x97561a['isHorizontal'])??!0x0,_0x1a5b18=!_0x4255c7,_0x15c132=_0x39297b[_0x3cc70a(0x1ac)](_0x5975b8),_0x471d62=_0x39297b['get'](_0x342cf7),_0x4a35fb={'unitId':_0xedcc57,'subUnitId':_0xb84798,'shapeId':_0x57c4d1,'shapeData':{'shapeText':{'isHorizontal':_0x1a5b18}}},_0x935cbb={'unitId':_0xedcc57,'subUnitId':_0xb84798,'shapeId':_0x57c4d1,'shapeData':{'shapeText':{'isHorizontal':_0x4255c7}}},_0x486475=[{'id':$['id'],'params':_0x4a35fb}],_0x4d7d7f=[{'id':$['id'],'params':_0x935cbb}];return _0x598341(_0x486475,_0x15c132)[_0x3cc70a(0x1e9)]?(_0x471d62['pushUndoRedo']({'unitID':_0xedcc57,'undoMutations':_0x4d7d7f,'redoMutations':_0x486475}),!0x0):!0x1;}},be={'type':_0x54ade8[_0x32504a(0x1fd)],'id':_0x32504a(0x1fc),'handler':(_0x1523fe,_0x229b71)=>{const _0x536bec=_0x32504a;var _0x3d1e21;let _0x5e7d60=_0x382afd(_0x1523fe[_0x536bec(0x1ac)](_0x2a2fcb),_0x229b71);if(!_0x5e7d60)return!0x1;let _0x45fa78=_0x1523fe[_0x536bec(0x1ac)](_0x4984ae),{unitId:_0x1d72a7,subUnitId:_0x1b54d0}=_0x5e7d60,_0x587c4b=_0x45fa78[_0x536bec(0x196)](_0x1d72a7,_0x1b54d0);if(!_0x587c4b)return!0x1;let _0x17d29f=_0x1523fe['get'](_0x23800c),{connectorShapeId:_0x50e9cf,width:_0x3582d4,height:_0x1befcd,left:_0xdccac3,top:_0x559f7c,flipX:_0x13e4ad,flipY:_0x323d5d,rotation:_0x1d58b2,oldAdjustValues:_0x502fff,newAdjustValues:_0x59e643,oldLineType:_0x178778,newLineType:_0x4cad27,oldRelation:_0x350539,newRelation:_0x314ae1}=_0x229b71,_0x43fcba=_0x17d29f[_0x536bec(0x139)]({'unitId':_0x1d72a7,'subUnitId':_0x1b54d0,'drawingId':_0x50e9cf});if(!_0x43fcba)return!0x1;let _0x1d1331=_0x1523fe[_0x536bec(0x1ac)](Q)[_0x536bec(0x130)](_0x1d72a7,_0x1b54d0,_0x50e9cf);if(!_0x1d1331)return!0x1;let _0x322144=_0x1523fe['get'](_0x5975b8),_0x556882=_0x1523fe[_0x536bec(0x1ac)](_0x342cf7),_0x3f60af=_0x1523fe['get'](_0xba6ba9),_0x57bfa8={..._0x43fcba['transform'],'width':_0x3582d4,'height':_0x1befcd,'left':_0xdccac3,'top':_0x559f7c,'flipX':_0x13e4ad,'flipY':_0x323d5d,'angle':_0x1d58b2??((_0x3d1e21=_0x43fcba[_0x536bec(0x14a)])==null?void 0x0:_0x3d1e21[_0x536bec(0x1df)])??0x0},_0x3f1076=_0x1db059(_0x57bfa8,_0x587c4b),_0x2429d5=_0x322cb5(_0x57bfa8,_0x587c4b),_0x493b33=_0x1d1331['getShapeType'](),_0x4b9b3d=_0x1d1331[_0x536bec(0x142)](),_0x321cc9={'unitId':_0x1d72a7,'subUnitId':_0x1b54d0,'drawingId':_0x50e9cf,'drawingType':_0x44b4d3[_0x536bec(0x1f0)],'sheetTransform':_0x3f1076,'transform':_0x57bfa8,'data':{'shapeType':_0x4cad27||_0x178778||_0x493b33,'shapeData':{..._0x4b9b3d,'adjustValues':_0x59e643||_0x502fff||(_0x4b9b3d==null?void 0x0:_0x4b9b3d['adjustValues']),'relation':_0x314ae1||_0x350539||(_0x4b9b3d==null?void 0x0:_0x4b9b3d[_0x536bec(0x175)])}},'axisAlignSheetTransform':_0x2429d5,'allowTransform':!0x0},{undo:_0x1bb971,redo:_0x47f984,objects:_0x173a17}=_0x17d29f[_0x536bec(0x124)]([_0x321cc9]),_0x5333fb=_0x3f60af[_0x536bec(0x193)]({'id':_0x5e7a0b['id'],'params':{'unitId':_0x1d72a7,'drawings':[_0x321cc9]}}),_0x12ef0e=[..._0x5333fb[_0x536bec(0x1ce)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x1d72a7,'subUnitId':_0x1b54d0,'op':_0x47f984,'objects':_0x173a17,'type':_0x3d2a3b[_0x536bec(0x1e7)]}},{'id':_0x26f620['id'],'params':[_0x1d72a7]},..._0x5333fb[_0x536bec(0x1d4)],{'id':$['id'],'params':{'unitId':_0x1d72a7,'subUnitId':_0x1b54d0,'shapeId':_0x50e9cf,'shapeType':_0x4cad27,'shapeData':{'adjustValues':_0x59e643,'relation':_0x314ae1}}}],_0x1089af=[..._0x5333fb[_0x536bec(0x12e)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x1d72a7,'subUnitId':_0x1b54d0,'op':_0x1bb971,'objects':_0x173a17,'type':_0x3d2a3b['UPDATE']}},{'id':_0x26f620['id'],'params':[_0x1d72a7]},..._0x5333fb[_0x536bec(0x12d)],{'id':$['id'],'params':{'unitId':_0x1d72a7,'subUnitId':_0x1b54d0,'shapeId':_0x50e9cf,'shapeType':_0x493b33,'shapeData':{..._0x4b9b3d,'adjustValues':_0x502fff||(_0x4b9b3d==null?void 0x0:_0x4b9b3d['adjustValues']),'relation':_0x350539||(_0x4b9b3d==null?void 0x0:_0x4b9b3d[_0x536bec(0x175)])}}}];return _0x598341(_0x12ef0e,_0x322144)['result']?(_0x556882[_0x536bec(0x1b0)]({'unitID':_0x1d72a7,'undoMutations':_0x1089af,'redoMutations':_0x12ef0e}),!0x0):!0x1;}},xe={'type':_0x54ade8[_0x32504a(0x1fd)],'id':_0x32504a(0x1d7),'handler':(_0x25e671,_0x32bff7)=>{const _0x4b31e1=_0x32504a;let _0x517158=_0x382afd(_0x25e671[_0x4b31e1(0x1ac)](_0x2a2fcb),_0x32bff7);if(!_0x517158)return!0x1;let _0x3e5686=_0x25e671[_0x4b31e1(0x1ac)](_0x4984ae),{unitId:_0x4978a5,subUnitId:_0x4b943b}=_0x517158,_0x2ff6d8=_0x3e5686[_0x4b31e1(0x196)](_0x4978a5,_0x4b943b);if(!_0x2ff6d8)return!0x1;let _0x5cdab6=_0x25e671['get'](_0x23800c),{shapeId:_0x28a9f5,width:_0x46ef5d,height:_0x3f339f,left:_0x9840c2,top:_0x4870e4,flipX:_0x39a33f,flipY:_0x37ee41,angle:_0x365a14,oldAdjustValues:_0x4d8fab,newAdjustValues:_0x2b7b28,oldLineType:_0x406a78,newLineType:_0x5b0c9b}=_0x32bff7,_0x34de16=_0x5cdab6['getDrawingByParam']({'unitId':_0x4978a5,'subUnitId':_0x4b943b,'drawingId':_0x28a9f5});if(!_0x34de16)return!0x1;let _0xf07e6c=_0x25e671['get'](Q)['getShapeModel'](_0x4978a5,_0x4b943b,_0x28a9f5);if(!_0xf07e6c)return!0x1;let _0x2764e=_0x25e671['get'](_0x5975b8),_0x2eee17=_0x25e671[_0x4b31e1(0x1ac)](_0x342cf7),_0x408730=_0x25e671[_0x4b31e1(0x1ac)](_0xba6ba9),_0x3be130={..._0x34de16[_0x4b31e1(0x14a)],'width':_0x46ef5d,'height':_0x3f339f,'left':_0x9840c2,'top':_0x4870e4,'flipX':_0x39a33f,'flipY':_0x37ee41,'angle':_0x365a14},_0x5374b1=_0x1db059(_0x3be130,_0x2ff6d8),_0x5a6eaa=_0x322cb5(_0x3be130,_0x2ff6d8),_0x2b13be=_0xf07e6c[_0x4b31e1(0x1b3)](),_0xc2321=_0xf07e6c[_0x4b31e1(0x142)](),_0x13f5dd={'unitId':_0x4978a5,'subUnitId':_0x4b943b,'drawingId':_0x28a9f5,'drawingType':_0x44b4d3['DRAWING_SHAPE'],'sheetTransform':_0x5374b1,'transform':_0x3be130,'data':{'shapeType':_0x5b0c9b||_0x406a78||_0x2b13be,'shapeData':{..._0xc2321,'adjustValues':_0x2b7b28||_0x4d8fab||(_0xc2321==null?void 0x0:_0xc2321[_0x4b31e1(0x1a6)])}},'axisAlignSheetTransform':_0x5a6eaa,'allowTransform':!0x0},{undo:_0x4333d7,redo:_0x4d8420,objects:_0x2ffecb}=_0x5cdab6[_0x4b31e1(0x124)]([_0x13f5dd]),_0x27d390=_0x408730[_0x4b31e1(0x193)]({'id':_0x5e7a0b['id'],'params':{'unitId':_0x4978a5,'drawings':[_0x13f5dd]}}),_0x42d48b=[..._0x27d390[_0x4b31e1(0x1ce)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x4978a5,'subUnitId':_0x4b943b,'op':_0x4d8420,'objects':_0x2ffecb,'type':_0x3d2a3b[_0x4b31e1(0x1e7)]}},{'id':_0x26f620['id'],'params':[_0x4978a5]},..._0x27d390[_0x4b31e1(0x1d4)],{'id':$['id'],'params':{'unitId':_0x4978a5,'subUnitId':_0x4b943b,'shapeId':_0x28a9f5,'shapeType':_0x5b0c9b,'shapeData':{'adjustValues':_0x2b7b28}}}],_0x1b6b8c=[..._0x27d390[_0x4b31e1(0x12e)]??[],{'id':_0x264bf6['id'],'params':{'unitId':_0x4978a5,'subUnitId':_0x4b943b,'op':_0x4333d7,'objects':_0x2ffecb,'type':_0x3d2a3b[_0x4b31e1(0x1e7)]}},{'id':_0x26f620['id'],'params':[_0x4978a5]},..._0x27d390[_0x4b31e1(0x12d)],{'id':$['id'],'params':{'unitId':_0x4978a5,'subUnitId':_0x4b943b,'shapeId':_0x28a9f5,'shapeType':_0x2b13be,'shapeData':{..._0xc2321,'adjustValues':_0x4d8fab||(_0xc2321==null?void 0x0:_0xc2321['adjustValues'])}}}];return _0x598341(_0x42d48b,_0x2764e)['result']?(_0x2eee17[_0x4b31e1(0x1b0)]({'unitID':_0x4978a5,'undoMutations':_0x1b6b8c,'redoMutations':_0x42d48b}),!0x0):!0x1;}},Se={'id':_0x32504a(0x194),'type':_0x54ade8[_0x32504a(0x16a)],'handler':(_0xee038e,_0x35fafb)=>{const _0x791981=_0x32504a;let {unitId:_0x234182,subUnitId:_0xf63748,shapeType:_0x5b6564,shapeId:_0x4eb205,shapeData:_0x28b233}=_0x35fafb,_0x126814=_0xee038e[_0x791981(0x1ac)](Q)[_0x791981(0x130)](_0x234182,_0xf63748,_0x4eb205);return _0x126814&&(_0x126814['setShapeType'](_0x5b6564),_0x28b233&&(_0x126814==null||_0x126814[_0x791981(0x155)](_0x28b233))),!0x0;}};var Ce=_0x32504a(0x1c8),we=_0x32504a(0x1d0);function Te(_0xd717b){const _0x1cdfb8=_0x32504a;var _0x7b3ed5,_0x1d8ed4,_0x4b9fd8,_0x84ce9a,_0x2b2a8c,_0x39fa48,_0x359cb8;return{'left':((_0x7b3ed5=_0xd717b[_0x1cdfb8(0x14a)])==null?void 0x0:_0x7b3ed5[_0x1cdfb8(0x137)])??0x0,'top':((_0x1d8ed4=_0xd717b[_0x1cdfb8(0x14a)])==null?void 0x0:_0x1d8ed4['top'])??0x0,'width':((_0x4b9fd8=_0xd717b[_0x1cdfb8(0x14a)])==null?void 0x0:_0x4b9fd8[_0x1cdfb8(0x1c7)])??0xc8,'height':((_0x84ce9a=_0xd717b['transform'])==null?void 0x0:_0x84ce9a[_0x1cdfb8(0x1c1)])??0xc8,'rotation':((_0x2b2a8c=_0xd717b[_0x1cdfb8(0x14a)])==null?void 0x0:_0x2b2a8c[_0x1cdfb8(0x13a)])??0x0,'flipX':((_0x39fa48=_0xd717b[_0x1cdfb8(0x14a)])==null?void 0x0:_0x39fa48[_0x1cdfb8(0x183)])??!0x1,'flipY':((_0x359cb8=_0xd717b[_0x1cdfb8(0x14a)])==null?void 0x0:_0x359cb8[_0x1cdfb8(0x1cd)])??!0x1};}let Ee=class{constructor(_0x10be32,_0x1653a0,_0xb3612c,_0x220bab){const _0x2f0ac7=_0x32504a;this['_commandService']=_0x10be32,this['_shapeService']=_0x1653a0,this[_0x2f0ac7(0x162)]=_0xb3612c,this['_instanceService']=_0x220bab,X(this,_0x2f0ac7(0x185),_0x3b79f5[_0x2f0ac7(0x1a2)]);}get[_0x32504a(0x1bb)](){return{'subscribe':_0xa71ad9=>{const _0x460e31=_0x4f9f;let _0x6dbebd=this[_0x460e31(0x1c2)][_0x460e31(0x1cc)](_0x471b2b=>{const _0x504d88=_0x460e31;(_0x471b2b['id']===pe['id']||_0x471b2b['id']===me['id']||_0x471b2b['id']===$['id']||_0x471b2b['id']===Se['id'])&&_0xa71ad9({'unitId':_0x471b2b[_0x504d88(0x1a7)][_0x504d88(0x16c)]});});return{'unsubscribe':()=>_0x6dbebd['dispose']()};}};}[_0x32504a(0x1db)](_0x7e5821){const _0x62a2e=_0x32504a;var _0x19c805;let _0x553b13=(_0x19c805=this[_0x62a2e(0x162)][_0x62a2e(0x158)](_0x7e5821[_0x62a2e(0x16c)],_0x7e5821[_0x62a2e(0x18e)]))==null?void 0x0:_0x19c805[_0x7e5821[_0x62a2e(0x191)]],_0x1e6cb6=this['_shapeService']['getShapeType'](_0x7e5821[_0x62a2e(0x16c)],_0x7e5821[_0x62a2e(0x18e)],_0x7e5821[_0x62a2e(0x191)]);if(!_0x553b13||_0x553b13['drawingType']!==_0x44b4d3['DRAWING_SHAPE']||!_0x1e6cb6)return null;let _0x49f392=_0x553b13[_0x62a2e(0x14a)];return{..._0x7e5821,'shapeType':_0x1e6cb6,'shapeData':_0x1a87c2[_0x62a2e(0x201)](this['_shapeService'][_0x62a2e(0x1bf)](_0x7e5821[_0x62a2e(0x16c)],_0x7e5821[_0x62a2e(0x18e)],_0x7e5821[_0x62a2e(0x191)])??{}),'name':_0x553b13[_0x62a2e(0x170)],'description':_0x553b13[_0x62a2e(0x1be)],'visible':_0x553b13[_0x62a2e(0x197)]!==!0x0,'selectable':_0x553b13[_0x62a2e(0x1d9)]!==!0x1,'transform':{'left':(_0x49f392==null?void 0x0:_0x49f392[_0x62a2e(0x137)])??0x0,'top':(_0x49f392==null?void 0x0:_0x49f392[_0x62a2e(0x1ab)])??0x0,'width':(_0x49f392==null?void 0x0:_0x49f392[_0x62a2e(0x1c7)])??0xc8,'height':(_0x49f392==null?void 0x0:_0x49f392[_0x62a2e(0x1c1)])??0xc8,'rotation':(_0x49f392==null?void 0x0:_0x49f392['angle'])??0x0,'flipX':(_0x49f392==null?void 0x0:_0x49f392[_0x62a2e(0x183)])??!0x1,'flipY':(_0x49f392==null?void 0x0:_0x49f392[_0x62a2e(0x1cd)])??!0x1}};}[_0x32504a(0x1f3)](_0x4d76ca){const _0x1eb596=_0x32504a;let _0x39eba9=this['_drawingService'][_0x1eb596(0x158)](_0x4d76ca[_0x1eb596(0x16c)],_0x4d76ca[_0x1eb596(0x18e)])??{};return Object['values'](_0x39eba9)['filter'](_0x3eae40=>(_0x3eae40==null?void 0x0:_0x3eae40['drawingType'])===_0x44b4d3[_0x1eb596(0x1f0)])[_0x1eb596(0x199)](_0x247c8b=>this[_0x1eb596(0x1db)]({..._0x4d76ca,'shapeId':_0x247c8b[_0x1eb596(0x188)]}))[_0x1eb596(0x178)](_0x3c397f=>!!_0x3c397f);}[_0x32504a(0x171)](_0x200555){const _0x5770c4=_0x32504a;let _0x2c9f3b=this[_0x5770c4(0x200)]['getUnit'](_0x200555,_0x3b79f5[_0x5770c4(0x1a2)]);return(_0x2c9f3b==null?void 0x0:_0x2c9f3b[_0x5770c4(0x1a1)]()[_0x5770c4(0x135)](_0x129acd=>this[_0x5770c4(0x1f3)]({'hostType':this[_0x5770c4(0x185)],'unitId':_0x200555,'subUnitId':_0x129acd[_0x5770c4(0x134)]()})))??[];}['createShape'](_0x2940d8,_0x1d180b){const _0x55e969=_0x32504a;let _0x14913d=_0x1039ad(),_0x2959c4=Te(_0x1d180b),_0x497d1f=_0x1a87c2[_0x55e969(0x201)](_0x1d180b[_0x55e969(0x198)]??_0x92392(_0x1d180b[_0x55e969(0x1ca)]));return this[_0x55e969(0x1c2)][_0x55e969(0x125)](he['id'],{'unitId':_0x2940d8['unitId'],'subUnitId':_0x2940d8[_0x55e969(0x18e)],'shapeId':_0x14913d,'shapeType':_0x1d180b[_0x55e969(0x1ca)],'shapeData':_0x497d1f,'name':_0x1d180b[_0x55e969(0x170)],'description':_0x1d180b[_0x55e969(0x1be)],'position':{'x':_0x2959c4['left'],'y':_0x2959c4[_0x55e969(0x1ab)]},'width':_0x2959c4['width'],'height':_0x2959c4[_0x55e969(0x1c1)],'rotation':_0x2959c4[_0x55e969(0x13a)],'flipX':_0x2959c4['flipX'],'flipY':_0x2959c4[_0x55e969(0x1cd)],'visible':_0x1d180b['visible']??!0x0,'selectable':_0x1d180b['selectable']??!0x0})?{..._0x2940d8,'shapeId':_0x14913d,'shapeType':_0x1d180b[_0x55e969(0x1ca)],'shapeData':_0x497d1f,'name':_0x1d180b['name'],'description':_0x1d180b[_0x55e969(0x1be)],'visible':_0x1d180b['visible']??!0x0,'selectable':_0x1d180b['selectable']??!0x0,'transform':_0x2959c4}:null;}[_0x32504a(0x18b)](_0x10f4da,_0x464ef9){const _0x4be7c1=_0x32504a;var _0x16c323;let _0x1403b9=this[_0x4be7c1(0x1db)](_0x10f4da);if(!_0x1403b9)return!0x1;let _0x475b7f={..._0x1403b9['transform'],..._0x464ef9[_0x4be7c1(0x14a)]};return this[_0x4be7c1(0x1c2)]['syncExecuteCommand'](ge['id'],{'unitId':_0x10f4da[_0x4be7c1(0x16c)],'subUnitId':_0x10f4da[_0x4be7c1(0x18e)],'shapeId':_0x10f4da[_0x4be7c1(0x191)],'shapeType':_0x464ef9[_0x4be7c1(0x1ca)]??((_0x16c323=_0x464ef9[_0x4be7c1(0x198)])==null?void 0x0:_0x16c323[_0x4be7c1(0x1ca)])??_0x1403b9['shapeType'],'shapeData':_0x464ef9[_0x4be7c1(0x198)]??_0x1403b9[_0x4be7c1(0x198)],'position':{'x':_0x475b7f[_0x4be7c1(0x137)],'y':_0x475b7f['top']},'width':_0x475b7f[_0x4be7c1(0x1c7)],'height':_0x475b7f[_0x4be7c1(0x1c1)],'rotation':_0x475b7f[_0x4be7c1(0x13a)],'flipX':_0x475b7f[_0x4be7c1(0x183)],'flipY':_0x475b7f[_0x4be7c1(0x1cd)],'name':_0x4be7c1(0x170)in _0x464ef9?_0x464ef9['name']:_0x1403b9[_0x4be7c1(0x170)],'description':_0x4be7c1(0x1be)in _0x464ef9?_0x464ef9['description']:_0x1403b9[_0x4be7c1(0x1be)],'visible':_0x464ef9[_0x4be7c1(0x11f)]??_0x1403b9[_0x4be7c1(0x11f)],'selectable':_0x464ef9[_0x4be7c1(0x1d9)]??_0x1403b9[_0x4be7c1(0x1d9)]});}[_0x32504a(0x1f2)](_0x20eacb,_0x228d05,_0xabe763){const _0x215646=_0x32504a;let _0x24d986=this['getShape'](_0x20eacb),_0x23ba3d=_0x24d986==null?void 0x0:_0x24d986[_0x215646(0x198)][_0x215646(0x160)];return!_0x24d986||!_0x23ba3d?null:{'id':$['id'],'params':{'unitId':_0x20eacb[_0x215646(0x16c)],'subUnitId':_0x20eacb[_0x215646(0x18e)],'shapeId':_0x20eacb[_0x215646(0x191)],'shapeData':{..._0x24d986[_0x215646(0x198)],'formulaBinding':{..._0x23ba3d,'lastValue':_0x1a87c2[_0x215646(0x201)](_0xabe763)}},'replace':!0x0,'formulaLastValueGuard':_0x228d05}};}[_0x32504a(0x17d)](_0x48b174){const _0x427909=_0x32504a;return this[_0x427909(0x1c2)][_0x427909(0x125)](_0x3160a9['id'],{'unitId':_0x48b174['unitId'],'drawings':[{'unitId':_0x48b174['unitId'],'subUnitId':_0x48b174[_0x427909(0x18e)],'drawingId':_0x48b174[_0x427909(0x191)],'drawingType':_0x44b4d3['DRAWING_SHAPE']}]});}['bringToFront'](_0x3560d5){const _0x917d08=_0x32504a;return this['_arrange'](_0x3560d5,_0x457631[_0x917d08(0x180)]);}[_0x32504a(0x1c3)](_0x11c7a2){const _0x83cd4b=_0x32504a;return this[_0x83cd4b(0x195)](_0x11c7a2,_0x457631[_0x83cd4b(0x1af)]);}['sendBackward'](_0x2bc093){const _0x73040d=_0x32504a;return this[_0x73040d(0x195)](_0x2bc093,_0x457631[_0x73040d(0x1e4)]);}[_0x32504a(0x15c)](_0x4a3b3d){const _0x3151e1=_0x32504a;return this[_0x3151e1(0x195)](_0x4a3b3d,_0x457631['back']);}[_0x32504a(0x1f4)](_0x50e49c,_0x2ef5e5){const _0x53ed85=_0x32504a;return this[_0x53ed85(0x1c2)]['syncExecuteCommand'](_0xd0c1af['id'],{'unitId':_0x50e49c[_0x53ed85(0x16c)],'subUnitId':_0x50e49c[_0x53ed85(0x18e)],'drawingIds':[_0x50e49c[_0x53ed85(0x191)]],'zOrder':_0x2ef5e5});}[_0x32504a(0x195)](_0x52a658,_0x125950){const _0x3b524e=_0x32504a;return this[_0x3b524e(0x1c2)]['syncExecuteCommand'](_0xd0c1af['id'],{'unitId':_0x52a658[_0x3b524e(0x16c)],'subUnitId':_0x52a658[_0x3b524e(0x18e)],'drawingIds':[_0x52a658[_0x3b524e(0x191)]],'arrangeType':_0x125950});}};Ee=fe([Z(0x0,_0x5975b8),Z(0x1,_0x217e8f(Q)),Z(0x2,_0x23800c),Z(0x3,_0x2a2fcb)],Ee);const De={};let Oe=class extends _0x2bbe37{constructor(_0x301455,_0xe4a83e,_0x4a0e76,_0x16cf43,_0x4d6f57,_0x1c4e7b,_0x30785d,_0x4f5414){const _0x3b49b9=_0x32504a;super(),this[_0x3b49b9(0x1c2)]=_0x301455,this['_sheetInterceptorService']=_0xe4a83e,this['_sheetSkeletonService']=_0x4a0e76,this[_0x3b49b9(0x1cf)]=_0x16cf43,this[_0x3b49b9(0x1f1)]=_0x4d6f57,this[_0x3b49b9(0x184)]=_0x1c4e7b,this[_0x3b49b9(0x1fa)]=_0x30785d,this['_initCommands'](),this[_0x3b49b9(0x12c)](),this[_0x3b49b9(0x123)](this[_0x3b49b9(0x1fa)][_0x3b49b9(0x128)](_0x4f5414));}[_0x32504a(0x167)](){const _0x3f2665=_0x32504a;[he,ge,_e,ve,ye,be,xe,pe,me,Se,$][_0x3f2665(0x18a)](_0x14f77e=>this[_0x3f2665(0x123)](this[_0x3f2665(0x1c2)][_0x3f2665(0x1b9)](_0x14f77e)));}[_0x32504a(0x12c)](){const _0x56161d=_0x32504a;this[_0x56161d(0x123)](this[_0x56161d(0x148)][_0x56161d(0x1b4)]({'getMutations':_0x2a3753=>{const _0x4d676f=_0x56161d;if(_0x2a3753['id']===_0x3160a9['id']){let {drawings:_0x4714a2}=_0x2a3753[_0x4d676f(0x1a7)],_0x2b0f52=_0x4714a2[_0x4d676f(0x178)](_0x4110b0=>_0x4110b0[_0x4d676f(0x136)]===_0x44b4d3[_0x4d676f(0x1f0)]);if(_0x2b0f52[_0x4d676f(0x122)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2ea519=[],_0x2873a2=[];return _0x2b0f52[_0x4d676f(0x18a)](_0x427f5b=>{const _0xb6c1ba=_0x4d676f;let {unitId:_0x59b2f0,subUnitId:_0x5ac244,drawingId:_0x418d44}=_0x427f5b,_0x39d291=this[_0xb6c1ba(0x1f1)]['getShapeModel'](_0x59b2f0,_0x5ac244,_0x418d44);if(!_0x39d291)throw TypeError(_0xb6c1ba(0x1d6)+_0x39d291);_0x2ea519[_0xb6c1ba(0x1a4)]({'id':me['id'],'params':{'unitId':_0x59b2f0,'subUnitId':_0x5ac244,'shapeId':_0x418d44}}),_0x2873a2[_0xb6c1ba(0x1a4)]({'id':pe['id'],'params':{'unitId':_0x59b2f0,'subUnitId':_0x5ac244,'shapeId':_0x418d44,'shapeType':_0x39d291[_0xb6c1ba(0x1b3)](),'shapeData':_0x39d291['getShapeData']()}});let _0x423114=this[_0xb6c1ba(0x1f1)][_0xb6c1ba(0x166)](_0x59b2f0,_0x5ac244,_0x418d44);if(_0x423114)for(let _0x1bae01 of _0x423114){let _0x485967=_0x1bae01[_0xb6c1ba(0x138)],_0x143655=_0x1bae01['isFrom'],_0x26b828=_0x143655?{'from':void 0x0}:{'to':void 0x0},_0x3af37f=_0x143655?{'from':{'shapeId':_0x1bae01[_0xb6c1ba(0x191)],'cxnIndex':_0x1bae01['cxnIndex']}}:{'to':{'shapeId':_0x1bae01[_0xb6c1ba(0x191)],'cxnIndex':_0x1bae01[_0xb6c1ba(0x189)]}};_0x2ea519[_0xb6c1ba(0x1a4)]({'id':$['id'],'params':{'unitId':_0x59b2f0,'subUnitId':_0x5ac244,'shapeId':_0x485967,'shapeData':{'relation':_0x26b828}}}),_0x2873a2[_0xb6c1ba(0x1a4)]({'id':$['id'],'params':{'unitId':_0x59b2f0,'subUnitId':_0x5ac244,'shapeId':_0x485967,'shapeData':{'relation':_0x3af37f}}});}}),{'preRedos':_0x2ea519,'redos':[],'preUndos':[],'undos':_0x2873a2};}let _0xe0d1bd=this['_getDrawingUpdates'](_0x2a3753);if(_0xe0d1bd){let _0x162d4d=_0xe0d1bd[_0x4d676f(0x178)](_0x87aaa8=>_0x87aaa8['drawingType']===_0x44b4d3[_0x4d676f(0x1f0)]);if(_0x162d4d[_0x4d676f(0x122)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x44c99e=[],_0x5a718d=[];for(let _0x8090ae of _0x162d4d){let {unitId:_0x49a844,subUnitId:_0x26fa4a,drawingId:_0xf2118f,transform:_0x3bf481}=_0x8090ae;if(!_0x49a844||!_0x26fa4a||!_0xf2118f||!_0x3bf481)continue;let _0x14495f=this[_0x4d676f(0x1f1)][_0x4d676f(0x130)](_0x49a844,_0x26fa4a,_0xf2118f);if(!_0x14495f)throw TypeError(_0x4d676f(0x1d6)+_0x14495f);let _0x284705=_0x14495f['getShapeType']();if(_0x2ed008(_0x284705)){let _0x363336=this[_0x4d676f(0x1f1)]['getLineShapeRelation'](_0x49a844,_0x26fa4a,_0xf2118f);_0x363336&&(_0x44c99e[_0x4d676f(0x1a4)]({'id':$['id'],'params':{'unitId':_0x49a844,'subUnitId':_0x26fa4a,'shapeId':_0xf2118f,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x5a718d['push']({'id':$['id'],'params':{'unitId':_0x49a844,'subUnitId':_0x26fa4a,'shapeId':_0xf2118f,'shapeData':{'relation':_0x363336}}}));}else{let _0x24bd63=this['_sheetsShapeService'][_0x4d676f(0x166)](_0x49a844,_0x26fa4a,_0xf2118f);if(_0x24bd63&&_0x24bd63[_0x4d676f(0x122)]>0x0)for(let _0x5761cf of _0x24bd63){let _0x5cac8a=_0x5761cf[_0x4d676f(0x138)],_0x381505=_0x5761cf['isFrom'],_0x5eebb3=this[_0x4d676f(0x1f1)][_0x4d676f(0x130)](_0x49a844,_0x26fa4a,_0x5cac8a);if(!_0x5eebb3)continue;let _0x1a1c83=_0x5eebb3[_0x4d676f(0x152)](),_0x4b661a=_0x5eebb3[_0x4d676f(0x1bc)]();_0x1a1c83&&_0x4b661a?this[_0x4d676f(0x1b1)](_0x49a844,_0x26fa4a,_0x5cac8a,_0x5eebb3,_0x1a1c83,_0x4b661a,_0x44c99e,_0x5a718d,_0xf2118f,_0x3bf481):this[_0x4d676f(0x16e)](_0x49a844,_0x26fa4a,_0x5cac8a,_0x5eebb3,_0x381505?_0x1a1c83:_0x4b661a,_0x381505,_0x44c99e,_0x5a718d,_0xf2118f,_0x3bf481);}}}return{'preRedos':[],'redos':_0x44c99e,'preUndos':_0x5a718d,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x32504a(0x161)](_0x775721){const _0x5104a8=_0x32504a;if(_0x775721['id']===_0x5e7a0b['id'])return _0x775721[_0x5104a8(0x1a7)]['drawings'];if(_0x775721['id']===_0x313468['id']){let _0x720460=_0x775721[_0x5104a8(0x1a7)],_0x4a7ce1=_0x720460['drawings'][_0x5104a8(0x172)](({placement:_0x43a084})=>_0x43a084[_0x5104a8(0x1ec)]===_0x25b3be['None'])?void 0x0:this[_0x5104a8(0x1e8)][_0x5104a8(0x11e)](_0x720460['unitId'],_0x720460['subUnitId']),_0x1dfaf8=[];for(let {drawingId:_0x2e4775,placement:_0x4372f0}of _0x720460[_0x5104a8(0x190)]){let _0x5de4db=this[_0x5104a8(0x1cf)][_0x5104a8(0x139)]({'unitId':_0x720460[_0x5104a8(0x16c)],'subUnitId':_0x720460[_0x5104a8(0x18e)],'drawingId':_0x2e4775});(_0x5de4db==null?void 0x0:_0x5de4db[_0x5104a8(0x136)])===_0x44b4d3[_0x5104a8(0x1f0)]&&_0x1dfaf8[_0x5104a8(0x1a4)](_0x570736(_0x5de4db,_0x4372f0,_0x4a7ce1));}return _0x1dfaf8;}return null;}['_getConnectPointInfo'](_0x47be99,_0x3ab247,_0x28aa63,_0x2189dc,_0x3f47be){const _0x1dcfed=_0x32504a;if(!_0x3ab247||!_0x28aa63)return null;let {shapeId:_0x46a9b7,cxnIndex:_0x2f0175}=_0x47be99,_0x1f7e2a=this[_0x1dcfed(0x1f1)][_0x1dcfed(0x130)](_0x3ab247,_0x28aa63,_0x46a9b7);if(!_0x1f7e2a)return null;let _0x2a4cbd=this[_0x1dcfed(0x184)][_0x1dcfed(0x139)]({'unitId':_0x3ab247,'subUnitId':_0x28aa63,'drawingId':_0x46a9b7});if(!(_0x2a4cbd!=null&&_0x2a4cbd['transform']))return null;let {left:_0x5070d5=0x0,top:_0x11bcca=0x0,width:_0x13b775=0x0,height:_0x3323dd=0x0,flipX:_0x2f1092=!0x1,flipY:_0xd37eea=!0x1,angle:_0x336eb2}=_0x2a4cbd['transform'];_0x3f47be&&_0x2189dc===_0x46a9b7&&(_0x5070d5=_0x3f47be[_0x1dcfed(0x137)]??_0x5070d5,_0x11bcca=_0x3f47be[_0x1dcfed(0x1ab)]??_0x11bcca,_0x13b775=_0x3f47be[_0x1dcfed(0x1c7)]??_0x13b775,_0x3323dd=_0x3f47be[_0x1dcfed(0x1c1)]??_0x3323dd,_0x2f1092=_0x3f47be[_0x1dcfed(0x183)]??_0x2f1092,_0xd37eea=_0x3f47be['flipY']??_0xd37eea,_0x336eb2=_0x3f47be[_0x1dcfed(0x1df)]??_0x336eb2),_0x1f7e2a[_0x1dcfed(0x15e)]({'width':_0x13b775,'height':_0x3323dd});let _0x146e07=_0x1f7e2a[_0x1dcfed(0x15f)]()['find'](_0x539542=>_0x539542[_0x1dcfed(0x16b)]===_0x2f0175);if(!_0x146e07)return null;let _0x359f1c=_0x2f1092?_0x13b775-_0x146e07['x']:_0x146e07['x'],_0x5c2b8b=_0xd37eea?_0x3323dd-_0x146e07['y']:_0x146e07['y'];if(_0x336eb2!==0x0&&_0x336eb2!=null){let _0x25f53c=_0x336eb2*Math['PI']/0xb4,_0x3f36c3=Math[_0x1dcfed(0x159)](_0x25f53c),_0x12ce61=Math[_0x1dcfed(0x14c)](_0x25f53c),_0x31990c=_0x13b775/0x2,_0x2117f4=_0x3323dd/0x2,_0x3dde2c=_0x359f1c-_0x31990c,_0x193e25=_0x5c2b8b-_0x2117f4;_0x359f1c=_0x31990c+_0x3dde2c*_0x3f36c3-_0x193e25*_0x12ce61,_0x5c2b8b=_0x2117f4+_0x3dde2c*_0x12ce61+_0x193e25*_0x3f36c3;}_0x359f1c+=_0x5070d5,_0x5c2b8b+=_0x11bcca;let _0xe3895c=_0x146e07[_0x1dcfed(0x1d8)]/0xea60;_0x2f1092&&(_0xe3895c=0xb4-_0xe3895c),_0xd37eea&&(_0xe3895c=-_0xe3895c),_0xe3895c+=_0x336eb2||0x0,_0xe3895c=(_0xe3895c%0x168+0x168)%0x168;let _0x579d7a=_0x1a1337({'left':_0x5070d5,'top':_0x11bcca,'width':_0x13b775,'height':_0x3323dd},_0x336eb2||0x0);return{'point':{'x':_0x359f1c,'y':_0x5c2b8b},'angle':_0xe3895c,'bounds':_0x579d7a};}[_0x32504a(0x1b1)](_0x3743f7,_0x16aff3,_0x4b711f,_0x4b8364,_0x51c6be,_0x5f3538,_0x575548,_0xb6dc33,_0x288f17,_0x262b97){const _0x4fe4a6=_0x32504a;let _0x23cc94=this[_0x4fe4a6(0x1e8)][_0x4fe4a6(0x196)](_0x3743f7,_0x16aff3);if(!_0x23cc94)return;let _0x19bb77=_0x4b8364[_0x4fe4a6(0x1e1)](),_0xd54c32=_0x4b8364['getAdjustNames'](),_0x2781c7={},_0x2952d4={};_0xd54c32['forEach'](_0x2a54d8=>{const _0x2d6d29=_0x4fe4a6;let _0x457e7b=_0x4b8364[_0x2d6d29(0x1dd)](_0x2a54d8);_0x2952d4[_0x2a54d8]=_0x457e7b??0x0;});let _0x585921=this[_0x4fe4a6(0x19d)](_0x51c6be,_0x3743f7,_0x16aff3,_0x288f17,_0x262b97),_0xdd8a27=this['_getConnectPointInfo'](_0x5f3538,_0x3743f7,_0x16aff3,_0x288f17,_0x262b97);if(_0x585921&&_0xdd8a27){let _0x522946=_0x4b8364[_0x4fe4a6(0x1b3)](),_0x30b4bf=_0x5c20c9(_0x585921,_0xdd8a27,_0x522946),_0x3c12f4=_0x522946;if(_0x30b4bf){let _0x5d39fe=_0xaedcac(_0x30b4bf,_0x4b8364['getShapeType']()),_0x3e43c3=this[_0x4fe4a6(0x184)][_0x4fe4a6(0x158)](_0x3743f7,_0x16aff3);if(_0x3e43c3&&_0x3e43c3[_0x4b711f]){let _0x4fe3be=_0x3e43c3[_0x4b711f];_0x3c12f4=_0x5d39fe['lineType'];for(let [_0x45fd1b,_0x879310]of Object[_0x4fe4a6(0x187)](_0x5d39fe['adjustValues']))_0x2781c7[_0x45fd1b]=_0x879310;let _0xcc9291={..._0x4fe3be['transform'],'width':_0x5d39fe[_0x4fe4a6(0x157)][_0x4fe4a6(0x1c7)],'height':_0x5d39fe[_0x4fe4a6(0x157)][_0x4fe4a6(0x1c1)],'left':_0x5d39fe['worldRect']['left'],'top':_0x5d39fe['worldRect'][_0x4fe4a6(0x1ab)],'flipX':_0x5d39fe[_0x4fe4a6(0x157)][_0x4fe4a6(0x183)],'flipY':_0x5d39fe['worldRect'][_0x4fe4a6(0x1cd)],'angle':_0x5d39fe[_0x4fe4a6(0x13a)]},_0x1bfec8=_0x1db059(_0xcc9291,_0x23cc94),_0x24909c=_0x322cb5(_0xcc9291,_0x23cc94),_0x4b465a={'unitId':_0x3743f7,'subUnitId':_0x16aff3,'drawingType':_0x44b4d3['DRAWING_SHAPE'],'drawingId':_0x4b711f,'transform':_0xcc9291,'sheetTransform':_0x1bfec8,'axisAlignSheetTransform':_0x24909c},{unitId:_0x20eaa7,subUnitId:_0xe3156c,undo:_0x273c29,redo:_0x49660f,objects:_0x338d9b}=this['_drawingManagerService'][_0x4fe4a6(0x124)]([_0x4b465a]);_0x575548[_0x4fe4a6(0x1a4)]({'id':_0x264bf6['id'],'params':{'unitId':_0x20eaa7,'subUnitId':_0xe3156c,'op':_0x49660f,'objects':_0x338d9b,'type':_0x3d2a3b[_0x4fe4a6(0x1e7)]}}),_0xb6dc33[_0x4fe4a6(0x1a4)]({'id':_0x264bf6['id'],'params':{'unitId':_0x20eaa7,'subUnitId':_0xe3156c,'op':_0x273c29,'objects':_0x338d9b,'type':_0x3d2a3b[_0x4fe4a6(0x1e7)]}});}_0x4b8364[_0x4fe4a6(0x1aa)]();}_0x575548[_0x4fe4a6(0x1a4)]({'id':$['id'],'params':{'unitId':_0x3743f7,'subUnitId':_0x16aff3,'shapeId':_0x4b711f,'shapeType':_0x3c12f4,'shapeData':{'adjustValues':_0x2781c7,'relation':_0x19bb77}}}),_0xb6dc33[_0x4fe4a6(0x1a4)]({'id':$['id'],'params':{'unitId':_0x3743f7,'subUnitId':_0x16aff3,'shapeId':_0x4b711f,'shapeType':_0x522946,'shapeData':{'adjustValues':_0x2952d4,'relation':_0x19bb77}}});}}['_addLineFollowShapeUpdates'](_0x5d9ba3,_0xd6bf75,_0x3f9bb3,_0x57c83d,_0x110ea9,_0x2bd45e,_0x3d724a,_0x7fa225,_0x57756d,_0x3a42e2){const _0x10522b=_0x32504a;var _0x2bde03;if(!_0x110ea9)return;let _0x11901a=this[_0x10522b(0x1e8)][_0x10522b(0x196)](_0x5d9ba3,_0xd6bf75);if(!_0x11901a)return;let _0x1ddc0a=(_0x2bde03=this[_0x10522b(0x184)][_0x10522b(0x139)]({'unitId':_0x5d9ba3,'subUnitId':_0xd6bf75,'drawingId':_0x57756d}))==null?void 0x0:_0x2bde03[_0x10522b(0x14a)];if(!_0x1ddc0a)return;let _0x32a85e=_0x1ddc0a[_0x10522b(0x137)]!==_0x3a42e2[_0x10522b(0x137)]||_0x1ddc0a[_0x10522b(0x1ab)]!==_0x3a42e2['top'],_0xf4ffff=_0x1ddc0a[_0x10522b(0x1c7)]!==_0x3a42e2[_0x10522b(0x1c7)]||_0x1ddc0a['height']!==_0x3a42e2['height'],_0x52a116=_0x1ddc0a[_0x10522b(0x183)]!==_0x3a42e2[_0x10522b(0x183)]||_0x1ddc0a['flipY']!==_0x3a42e2[_0x10522b(0x1cd)],_0x3f9865=_0x1ddc0a['angle']!==_0x3a42e2[_0x10522b(0x1df)];if(_0x32a85e&&!_0xf4ffff&&!_0x52a116&&!_0x3f9865){let _0x585847=(_0x3a42e2[_0x10522b(0x137)]??0x0)-(_0x1ddc0a[_0x10522b(0x137)]??0x0),_0x3b2f49=(_0x3a42e2[_0x10522b(0x1ab)]??0x0)-(_0x1ddc0a['top']??0x0),_0x15a097=this[_0x10522b(0x184)][_0x10522b(0x158)](_0x5d9ba3,_0xd6bf75);if(_0x15a097&&_0x15a097[_0x3f9bb3]){var _0x2bf047,_0x1e0911;let _0x352e6d=_0x15a097[_0x3f9bb3],_0x5ea211={..._0x352e6d['transform'],'left':(((_0x2bf047=_0x352e6d[_0x10522b(0x14a)])==null?void 0x0:_0x2bf047[_0x10522b(0x137)])??0x0)+_0x585847,'top':(((_0x1e0911=_0x352e6d[_0x10522b(0x14a)])==null?void 0x0:_0x1e0911[_0x10522b(0x1ab)])??0x0)+_0x3b2f49},_0x9d19cc=_0x1db059(_0x5ea211,_0x11901a),_0x35ff5a=_0x322cb5(_0x5ea211,_0x11901a),_0x4f714a={'unitId':_0x5d9ba3,'subUnitId':_0xd6bf75,'drawingType':_0x44b4d3[_0x10522b(0x1f0)],'drawingId':_0x3f9bb3,'transform':_0x5ea211,'sheetTransform':_0x9d19cc,'axisAlignSheetTransform':_0x35ff5a},{unitId:_0x29c6a7,subUnitId:_0xf59616,undo:_0x90d551,redo:_0x25c55c,objects:_0x19e2c3}=this[_0x10522b(0x184)]['getBatchUpdateOp']([_0x4f714a]);_0x3d724a[_0x10522b(0x1a4)]({'id':_0x264bf6['id'],'params':{'unitId':_0x29c6a7,'subUnitId':_0xf59616,'op':_0x25c55c,'objects':_0x19e2c3,'type':_0x3d2a3b[_0x10522b(0x1e7)]}}),_0x7fa225['push']({'id':_0x264bf6['id'],'params':{'unitId':_0x29c6a7,'subUnitId':_0xf59616,'op':_0x90d551,'objects':_0x19e2c3,'type':_0x3d2a3b[_0x10522b(0x1e7)]}});}}else{let _0x57d354=_0x57c83d[_0x10522b(0x152)](),_0x56d201=_0x57c83d[_0x10522b(0x1bc)]();this['_addLineRerouteUpdates'](_0x5d9ba3,_0xd6bf75,_0x3f9bb3,_0x57c83d,_0x57d354,_0x56d201,_0x3d724a,_0x7fa225,_0x57756d,_0x3a42e2);}}};Oe=fe([Z(0x0,_0x5975b8),Z(0x1,_0x217e8f(_0xba6ba9)),Z(0x2,_0x217e8f(_0x4984ae)),Z(0x3,_0x217e8f(_0x23800c)),Z(0x4,_0x217e8f(Q)),Z(0x5,_0x217e8f(_0x5066c1)),Z(0x6,_0x217e8f(_0x4d3422)),Z(0x7,_0x217e8f(Ee))],Oe);let ke=class extends _0x2bbe37{constructor(_0xd2f884,_0x3bd10e,_0x4c1eaa){const _0x337003=_0x32504a;super(),this['_shapeService']=_0xd2f884,this['_shapeAdapter']=_0x3bd10e,this['disposeWithMe'](_0x4c1eaa[_0x337003(0x128)](this));}['transform'](_0x487708){const _0x40d3b4=_0x32504a;let _0x171961={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x40d3b4(0x1ff)](_0x487708,_0x171961);for(let [_0x4c94dc,_0x43f979]of _0x487708['originals'])this[_0x40d3b4(0x16d)](_0x487708,_0x4c94dc,_0x43f979,_0x171961);return _0x171961;}[_0x32504a(0x1ff)](_0x676871,_0x3d868a){const _0x3cdf9d=_0x32504a;if(_0x676871[_0x3cdf9d(0x1f6)]===_0x3cdf9d(0x1d2))for(let _0x27eb25 of _0x676871[_0x3cdf9d(0x146)]){let _0x19c28a=_0x676871[_0x3cdf9d(0x1cb)][_0x3cdf9d(0x1ac)](_0x27eb25),_0xffd18b=this[_0x3cdf9d(0x1fb)]['getShapeModel'](_0x676871['unitId'],_0x676871[_0x3cdf9d(0x18e)],_0x27eb25);(_0x19c28a==null?void 0x0:_0x19c28a['drawingType'])===_0x44b4d3['DRAWING_SHAPE']&&_0xffd18b&&(_0x3d868a[_0x3cdf9d(0x1ce)][_0x3cdf9d(0x1a4)]({'id':me['id'],'params':{'unitId':_0x676871[_0x3cdf9d(0x16c)],'subUnitId':_0x676871[_0x3cdf9d(0x18e)],'shapeId':_0x27eb25}}),_0x3d868a[_0x3cdf9d(0x12d)][_0x3cdf9d(0x1a4)]({'id':pe['id'],'params':{'unitId':_0x676871['unitId'],'subUnitId':_0x676871[_0x3cdf9d(0x18e)],'shapeId':_0x27eb25,'shapeName':_0xffd18b['getName'](),'shapeType':_0xffd18b[_0x3cdf9d(0x1b3)](),'shapeData':_0x1a87c2[_0x3cdf9d(0x201)](_0xffd18b[_0x3cdf9d(0x142)]())}}));}}[_0x32504a(0x16d)](_0x3d758d,_0x5c34a1,_0x52c4e8,_0x10e43f){const _0x4ac0dd=_0x32504a;if(_0x52c4e8['drawingType']!==_0x44b4d3['DRAWING_SHAPE']||_0x3d758d[_0x4ac0dd(0x146)]['has'](_0x5c34a1))return;let _0x5c32d0=this['_shapeService'][_0x4ac0dd(0x130)](_0x3d758d['unitId'],_0x3d758d[_0x4ac0dd(0x18e)],_0x5c34a1);if(!_0x5c32d0||!_0x2ed008(_0x5c32d0[_0x4ac0dd(0x1b3)]()))return;let _0x30cd53=_0x5c32d0[_0x4ac0dd(0x1e1)]();if(!(_0x3d758d[_0x4ac0dd(0x143)][_0x4ac0dd(0x169)](_0x5c34a1)||_0x30cd53!=null&&_0x30cd53['from']&&(_0x3d758d[_0x4ac0dd(0x143)]['has'](_0x30cd53[_0x4ac0dd(0x17f)][_0x4ac0dd(0x191)])||_0x3d758d[_0x4ac0dd(0x146)]['has'](_0x30cd53[_0x4ac0dd(0x17f)][_0x4ac0dd(0x191)]))||_0x30cd53!=null&&_0x30cd53['to']&&(_0x3d758d[_0x4ac0dd(0x143)]['has'](_0x30cd53['to'][_0x4ac0dd(0x191)])||_0x3d758d[_0x4ac0dd(0x146)][_0x4ac0dd(0x169)](_0x30cd53['to'][_0x4ac0dd(0x191)]))))return;let _0x47fe7f=_0x3d758d[_0x4ac0dd(0x143)][_0x4ac0dd(0x1ac)](_0x5c34a1)??_0x52c4e8,_0x5cc40e=this['_toSnapshot'](_0x3d758d,_0x47fe7f);if(!_0x5cc40e)return;let _0x63291=_0xfddc21(_0x5cc40e);if(_0x63291[_0x4ac0dd(0x122)]<0x2)return;let _0x1f9390=_0x1a87c2[_0x4ac0dd(0x201)](_0x30cd53??{}),_0x4d89a5=_0x1f9390[_0x4ac0dd(0x17f)]&&this['_resolveBinding'](_0x3d758d,_0x1f9390[_0x4ac0dd(0x17f)][_0x4ac0dd(0x191)],_0x1f9390[_0x4ac0dd(0x17f)][_0x4ac0dd(0x189)]),_0x3fd99e=_0x1f9390['to']&&this[_0x4ac0dd(0x149)](_0x3d758d,_0x1f9390['to'][_0x4ac0dd(0x191)],_0x1f9390['to']['cxnIndex']);_0x1f9390[_0x4ac0dd(0x17f)]&&!_0x4d89a5&&delete _0x1f9390['from'],_0x1f9390['to']&&!_0x3fd99e&&delete _0x1f9390['to'];let _0x46ae59=_0x4d89a5||_0x2778ae((_0x3fd99e==null?void 0x0:_0x3fd99e[_0x4ac0dd(0x192)])??_0x63291[_0x63291[_0x4ac0dd(0x122)]-0x1],_0x63291[0x0]),_0x675c21=_0x3fd99e||_0x2778ae((_0x4d89a5==null?void 0x0:_0x4d89a5['point'])??_0x63291[0x0],_0x63291[_0x63291['length']-0x1]),_0x271066=_0x5ae41c(_0x5cc40e,_0x46ae59,_0x675c21,_0x1f9390);_0x271066!=null&&_0x271066[_0x4ac0dd(0x14a)]&&_0x271066[_0x4ac0dd(0x1ca)]&&_0x271066['shapeData']&&(this[_0x4ac0dd(0x14e)](_0x3d758d,_0x47fe7f,_0x271066),_0x3d758d['mode']===_0x4ac0dd(0x1b8)?(_0x5c32d0[_0x4ac0dd(0x1b5)](_0x271066[_0x4ac0dd(0x1ca)]),_0x5c32d0[_0x4ac0dd(0x155)](_0x1a87c2['deepClone'](_0x271066['shapeData']),!0x1)):(_0x10e43f[_0x4ac0dd(0x1d4)]['push']({'id':$['id'],'params':{'unitId':_0x3d758d[_0x4ac0dd(0x16c)],'subUnitId':_0x3d758d['subUnitId'],'shapeId':_0x5c34a1,'shapeType':_0x271066[_0x4ac0dd(0x1ca)],'shapeData':_0x1a87c2[_0x4ac0dd(0x201)](_0x271066[_0x4ac0dd(0x198)]),'replace':!0x0}}),_0x10e43f[_0x4ac0dd(0x12d)]['push']({'id':$['id'],'params':{'unitId':_0x3d758d['unitId'],'subUnitId':_0x3d758d[_0x4ac0dd(0x18e)],'shapeId':_0x5c34a1,'shapeType':_0x5c32d0[_0x4ac0dd(0x1b3)](),'shapeData':_0x1a87c2['deepClone'](_0x5c32d0[_0x4ac0dd(0x142)]()),'replace':!0x0}})));}[_0x32504a(0x149)](_0x43114d,_0x4575e9,_0x208ad1){const _0x375f38=_0x32504a;if(_0x43114d[_0x375f38(0x146)]['has'](_0x4575e9))return null;let _0x1cc32d=_0x43114d[_0x375f38(0x143)][_0x375f38(0x1ac)](_0x4575e9)??_0x43114d[_0x375f38(0x1cb)][_0x375f38(0x1ac)](_0x4575e9);if(!_0x1cc32d)return null;let _0xcc5c32=this[_0x375f38(0x1d5)](_0x43114d,_0x1cc32d);return _0xcc5c32?_0x1dddb6(_0xcc5c32,_0x208ad1):null;}[_0x32504a(0x1d5)](_0x4a7eb7,_0x496e5f){const _0x90e2a=_0x32504a;let _0xeb6abe={'hostType':_0x3b79f5[_0x90e2a(0x1a2)],'unitId':_0x4a7eb7[_0x90e2a(0x16c)],'subUnitId':_0x4a7eb7[_0x90e2a(0x18e)],'shapeId':_0x496e5f[_0x90e2a(0x188)]},_0x4059e4=this[_0x90e2a(0x121)]['getShape'](_0xeb6abe);return!_0x4059e4||!_0x496e5f[_0x90e2a(0x14a)]?null:{..._0x4059e4,'transform':{'left':_0x496e5f['transform'][_0x90e2a(0x137)]??0x0,'top':_0x496e5f[_0x90e2a(0x14a)][_0x90e2a(0x1ab)]??0x0,'width':_0x496e5f[_0x90e2a(0x14a)][_0x90e2a(0x1c7)]??0x0,'height':_0x496e5f[_0x90e2a(0x14a)][_0x90e2a(0x1c1)]??0x0,'rotation':_0x496e5f[_0x90e2a(0x14a)][_0x90e2a(0x1df)]??0x0,'flipX':_0x496e5f[_0x90e2a(0x14a)][_0x90e2a(0x183)]??!0x1,'flipY':_0x496e5f[_0x90e2a(0x14a)][_0x90e2a(0x1cd)]??!0x1}};}['_applyUpdate'](_0x45f94b,_0x199374,_0xe0c598){const _0x5070ed=_0x32504a;let _0x745f57=_0x199374,_0x4a8d0d={..._0x199374[_0x5070ed(0x14a)],'left':_0xe0c598[_0x5070ed(0x14a)][_0x5070ed(0x137)],'top':_0xe0c598[_0x5070ed(0x14a)][_0x5070ed(0x1ab)],'width':_0xe0c598[_0x5070ed(0x14a)][_0x5070ed(0x1c7)],'height':_0xe0c598[_0x5070ed(0x14a)][_0x5070ed(0x1c1)],'angle':_0xe0c598[_0x5070ed(0x14a)][_0x5070ed(0x13a)],'flipX':_0xe0c598['transform'][_0x5070ed(0x183)],'flipY':_0xe0c598[_0x5070ed(0x14a)]['flipY']},_0x4cce2e={..._0x745f57,'transform':_0x4a8d0d,'sheetTransform':_0x1db059(_0x4a8d0d,_0x45f94b[_0x5070ed(0x1d3)]),'axisAlignSheetTransform':_0x322cb5(_0x4a8d0d,_0x45f94b[_0x5070ed(0x1d3)]),'data':{..._0x745f57[_0x5070ed(0x1ad)],'shapeType':_0xe0c598['shapeType'],'shapeData':_0x1a87c2[_0x5070ed(0x201)](_0xe0c598[_0x5070ed(0x198)])}};_0x45f94b[_0x5070ed(0x143)]['set'](_0x199374['drawingId'],_0x4cce2e);}};ke=fe([Z(0x0,_0x217e8f(Q)),Z(0x1,_0x217e8f(Ee)),Z(0x2,_0x217e8f(_0x2f6d7b))],ke);let Ae=class extends _0x556515{constructor(_0x55cffb=De,_0x17cea5,_0x396a58){const _0x6dd7cd=_0x32504a;super(),this['_config']=_0x55cffb,this[_0x6dd7cd(0x19c)]=_0x17cea5,this[_0x6dd7cd(0x1c5)]=_0x396a58;let {..._0x3c49be}=_0x550d5a({},De,this['_config']);this[_0x6dd7cd(0x1c5)][_0x6dd7cd(0x126)]('sheets-shape.config',_0x3c49be);}[_0x32504a(0x13c)](){const _0x488949=_0x32504a;let _0x130803=this[_0x488949(0x19c)];[[de],[Q],[Ee],[ke],[Oe]][_0x488949(0x18a)](_0x5d3ff0=>_0x130803[_0x488949(0x145)](_0x5d3ff0)),_0x5bbf07(_0x130803,[[Q],[ke],[Oe]]);}};X(Ae,_0x32504a(0x1ee),_0x3b79f5[_0x32504a(0x1a2)]),X(Ae,_0x32504a(0x1b7),_0x32504a(0x1ba)),X(Ae,_0x32504a(0x17b),Ce),X(Ae,_0x32504a(0x15a),we),Ae=fe([_0x419537(_0x250fc1,_0x28d7a5,_0x340ea5,_0x53d426,_0x29131a),Z(0x1,_0x217e8f(_0x42e9c3)),Z(0x2,_0x1618ed)],Ae);export{se as DEFAULT_SHAPE_HEIGHT,oe as DEFAULT_SHAPE_WIDTH,he as InsertShapeCommand,pe as InsertSheetsShapeMutation,me as RemoveSheetsShapeMutation,ge as SetShapeDrawingDataCommand,ve as SetSheetsShapeRotateCommand,ye as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,_e as ToggleSheetsShapeFlipCommand,Ae as UniverSheetsShapePlugin,be as UpdateConnectorRelationCommand,xe as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,Se as UpdateSheetsShapeTypeMutation};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3cf4d5=_0x4782;(function(_0x33e02b,_0x825477){const _0x400572=_0x4782,_0x2e5ed3=_0x33e02b();while(!![]){try{const _0x159206=-parseInt(_0x400572(0x1b3))/0x1+parseInt(_0x400572(0x1c6))/0x2+parseInt(_0x400572(0x1c0))/0x3*(-parseInt(_0x400572(0x1bb))/0x4)+parseInt(_0x400572(0x1d2))/0x5*(parseInt(_0x400572(0x1b8))/0x6)+-parseInt(_0x400572(0x1cd))/0x7+-parseInt(_0x400572(0x1ac))/0x8*(parseInt(_0x400572(0x1ce))/0x9)+parseInt(_0x400572(0x1af))/0xa*(parseInt(_0x400572(0x1b0))/0xb);if(_0x159206===_0x825477)break;else _0x2e5ed3['push'](_0x2e5ed3['shift']());}catch(_0x16d81e){_0x2e5ed3['push'](_0x2e5ed3['shift']());}}}(_0x9590,0xbb05f));import{IShapeHostAdapterRegistry as _0x3dc745,isConnectorShape as _0x673fdd}from'@univerjs-pro/engine-shape';function _0x4782(_0xa26fd5,_0x5937e2){_0xa26fd5=_0xa26fd5-0x1a2;const _0x9590fc=_0x9590();let _0x4782ce=_0x9590fc[_0xa26fd5];return _0x4782ce;}import{FConnectorShape as _0x207c4b,FShape as _0x257694}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x4e4ad9,UniverInstanceType as _0x34b806}from'@univerjs/core';import{FWorksheet as _0x2d12df}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x41c182,SetSheetDrawingPlacementCommand as _0x2d3aef,SheetDrawingAnchorType as _0x33de45,getSheetDrawingPlacement as _0x5be509}from'@univerjs/sheets-drawing';function d(_0x229c06,_0x38aff1){return function(_0x392c34,_0x48119c){_0x38aff1(_0x392c34,_0x48119c,_0x229c06);};}function f(_0x39f2af,_0x1163f2,_0x2820f7,_0x51eea1){const _0x59e01a=_0x4782;var _0x17455a=arguments[_0x59e01a(0x1be)],_0xee16c3=_0x17455a<0x3?_0x1163f2:_0x51eea1===null?_0x51eea1=Object[_0x59e01a(0x1c1)](_0x1163f2,_0x2820f7):_0x51eea1,_0x4bbd65;if(typeof Reflect==_0x59e01a(0x1bc)&&typeof Reflect[_0x59e01a(0x1d0)]==_0x59e01a(0x1bd))_0xee16c3=Reflect[_0x59e01a(0x1d0)](_0x39f2af,_0x1163f2,_0x2820f7,_0x51eea1);else{for(var _0x5e0035=_0x39f2af[_0x59e01a(0x1be)]-0x1;_0x5e0035>=0x0;_0x5e0035--)(_0x4bbd65=_0x39f2af[_0x5e0035])&&(_0xee16c3=(_0x17455a<0x3?_0x4bbd65(_0xee16c3):_0x17455a>0x3?_0x4bbd65(_0x1163f2,_0x2820f7,_0xee16c3):_0x4bbd65(_0x1163f2,_0x2820f7))||_0xee16c3);}return _0x17455a>0x3&&_0xee16c3&&Object[_0x59e01a(0x1d1)](_0x1163f2,_0x2820f7,_0xee16c3),_0xee16c3;}let p=class extends _0x257694{constructor(_0x29cb46,_0x521e0d,_0x2ff243,_0x2e3865,_0x5a0136){super(_0x29cb46,_0x521e0d,_0x2ff243,_0x2e3865),this['_sheetDrawingService']=_0x5a0136;}['getPlacement'](){const _0x294c00=_0x4782;let _0x5c33d7=this[_0x294c00(0x1b1)]['getDrawingByParam']({'unitId':this[_0x294c00(0x1a9)][_0x294c00(0x1a6)],'subUnitId':this[_0x294c00(0x1a9)]['subUnitId'],'drawingId':this[_0x294c00(0x1a9)][_0x294c00(0x1ae)]});return _0x5c33d7?_0x5be509(_0x5c33d7):null;}[_0x3cf4d5(0x1a2)](_0x83b153){const _0x5e0b63=_0x3cf4d5;return this[_0x5e0b63(0x1c9)][_0x5e0b63(0x1b6)](_0x2d3aef['id'],{'unitId':this['_shapeRef'][_0x5e0b63(0x1a6)],'subUnitId':this[_0x5e0b63(0x1a9)]['subUnitId'],'drawings':[{'drawingId':this['_shapeRef'][_0x5e0b63(0x1ae)],'placement':_0x83b153}]});}[_0x3cf4d5(0x1cc)](_0x122506,_0x549a6d,_0x2a7563,_0x37aeb7){const _0xa763aa=_0x3cf4d5;var _0x29c8ff,_0x3d216a;let _0x142c8f=this['_sheetDrawingService'][_0xa763aa(0x1b4)]({'unitId':this[_0xa763aa(0x1a9)][_0xa763aa(0x1a6)],'subUnitId':this[_0xa763aa(0x1a9)][_0xa763aa(0x1c3)],'drawingId':this[_0xa763aa(0x1a9)][_0xa763aa(0x1ae)]});if(!_0x142c8f)return console[_0xa763aa(0x1ab)](_0xa763aa(0x1a3)+this[_0xa763aa(0x1a9)]['shapeId']+_0xa763aa(0x1b9)),this;let _0x45bf9e=(_0x29c8ff=_0x142c8f[_0xa763aa(0x1c2)])==null?void 0x0:_0x29c8ff[_0xa763aa(0x1a8)],_0x2aaf1f=(_0x3d216a=_0x142c8f[_0xa763aa(0x1c2)])==null?void 0x0:_0x3d216a[_0xa763aa(0x1c8)];return _0x45bf9e==null||_0x2aaf1f==null?(console['warn'](_0xa763aa(0x1a3)+this[_0xa763aa(0x1a9)][_0xa763aa(0x1ae)]+'\x22\x20has\x20no\x20transform\x20extent.'),this):(this['_commandService'][_0xa763aa(0x1b6)](_0x2d3aef['id'],{'unitId':this[_0xa763aa(0x1a9)][_0xa763aa(0x1a6)],'subUnitId':this['_shapeRef'][_0xa763aa(0x1c3)],'drawings':[{'drawingId':this['_shapeRef'][_0xa763aa(0x1ae)],'placement':{'kind':_0x33de45[_0xa763aa(0x1b5)],'from':{'row':_0x122506,'column':_0x549a6d,'rowOffset':_0x2a7563,'columnOffset':_0x37aeb7},'width':_0x45bf9e,'height':_0x2aaf1f}}]}),this);}};p=f([d(0x2,_0x3dc745),d(0x3,_0x4e4ad9),d(0x4,_0x41c182)],p);function _0x9590(){const _0x31044e=['object','function','length','insertShape','2258481fAFMNU','getOwnPropertyDescriptor','transform','subUnitId','_createShapeHandle','_injector','612190wOtpGr','_getShapeAdapter','height','_commandService','getShapes','listShapes','setPosition','6440959hiGUCV','63NCJqnb','getSheetId','decorate','defineProperty','115vXIZja','setPlacement','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','getShape','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','unitId','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','width','_shapeRef','UNIVER_SHEET','warn','1218664fMbERK','createInstance','shapeId','6470ugPvDL','61776rcZVhT','_sheetDrawingService','_getShapeScope','761388nwrNxX','getDrawingByParam','Position','syncExecuteCommand','createShape','85326pMZnZh','\x22\x20was\x20not\x20found.','get','4fUiZwU'];_0x9590=function(){return _0x31044e;};return _0x9590();}var m=class extends _0x2d12df{[_0x3cf4d5(0x1bf)](_0x4b2754){const _0x1dd12a=_0x3cf4d5;let _0x5569aa=this[_0x1dd12a(0x1c7)]();if(!_0x5569aa)return null;try{let _0x4f2db5=_0x5569aa[_0x1dd12a(0x1b7)](this[_0x1dd12a(0x1b2)](),_0x4b2754);return _0x4f2db5?this['_createShapeHandle'](_0x4f2db5):(console['warn'](_0x1dd12a(0x1a5)),null);}catch(_0x3978a5){return console[_0x1dd12a(0x1ab)](_0x1dd12a(0x1a5),_0x3978a5),null;}}['getShape'](_0x22dcc4){const _0x50a517=_0x3cf4d5;let _0x231470=this[_0x50a517(0x1c7)]();if(!_0x231470)return null;try{let _0x10fdae={...this[_0x50a517(0x1b2)](),'shapeId':_0x22dcc4},_0x55e9e1=_0x231470[_0x50a517(0x1a4)](_0x10fdae);return _0x55e9e1?this[_0x50a517(0x1c4)](_0x55e9e1):(console[_0x50a517(0x1ab)](_0x50a517(0x1a3)+_0x22dcc4+_0x50a517(0x1b9)),null);}catch(_0x4f1b73){return console[_0x50a517(0x1ab)](_0x50a517(0x1a7)+_0x22dcc4+'\x22.',_0x4f1b73),null;}}[_0x3cf4d5(0x1ca)](){const _0x667b93=_0x3cf4d5;let _0x469ca6=this[_0x667b93(0x1c7)]();if(!_0x469ca6)return[];try{return _0x469ca6[_0x667b93(0x1cb)](this[_0x667b93(0x1b2)]())['map'](_0x5a1bea=>this[_0x667b93(0x1c4)](_0x5a1bea));}catch(_0x1f713c){return console['warn']('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.',_0x1f713c),[];}}[_0x3cf4d5(0x1b2)](){const _0x465c0b=_0x3cf4d5;return{'hostType':_0x34b806['UNIVER_SHEET'],'unitId':this['getWorkbook']()['getUnitId'](),'subUnitId':this[_0x465c0b(0x1cf)]()};}['_getShapeAdapter'](){const _0x5db787=_0x3cf4d5;return this[_0x5db787(0x1c5)]['get'](_0x3dc745)[_0x5db787(0x1ba)](_0x34b806[_0x5db787(0x1aa)]);}[_0x3cf4d5(0x1c4)](_0xab9fec){const _0x29f57a=_0x3cf4d5;let {unitId:_0x884f84,subUnitId:_0x4aafa2,shapeId:_0x2f3f7f}=_0xab9fec,_0xd20175={'unitId':_0x884f84,'subUnitId':_0x4aafa2,'shapeId':_0x2f3f7f,'hostType':_0x34b806[_0x29f57a(0x1aa)]};return _0x673fdd(_0xab9fec['shapeType'])?this[_0x29f57a(0x1c5)][_0x29f57a(0x1ad)](_0x207c4b,_0xd20175,this[_0x29f57a(0x1c5)]):this['_injector']['createInstance'](p,_0xd20175,this[_0x29f57a(0x1c5)]);}};_0x2d12df['extend'](m);export{p as FSheetShape};
|