@univerjs-pro/sheets-shape 1.0.0-alpha.8 → 1.0.0-beta.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/types/adapters/sheet-shape-host.adapter.d.ts +1 -0
- package/lib/types/facade/f-shape.d.ts +79 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xab0703=_0x16e7;(function(_0x3341e4,_0x3263b3){const _0x12ddf0=_0x16e7,_0xa2ba00=_0x3341e4();while(!![]){try{const _0x3c4422=-parseInt(_0x12ddf0(0x178))/0x1*(-parseInt(_0x12ddf0(0x157))/0x2)+-parseInt(_0x12ddf0(0x16c))/0x3+-parseInt(_0x12ddf0(0x19a))/0x4+parseInt(_0x12ddf0(0x1ad))/0x5+parseInt(_0x12ddf0(0x193))/0x6+-parseInt(_0x12ddf0(0x1d3))/0x7+parseInt(_0x12ddf0(0x190))/0x8*(parseInt(_0x12ddf0(0x191))/0x9);if(_0x3c4422===_0x3263b3)break;else _0xa2ba00['push'](_0xa2ba00['shift']());}catch(_0x5e41d1){_0xa2ba00['push'](_0xa2ba00['shift']());}}}(_0x38f0,0x6774b));import{IShapeHostAdapterRegistry as _0x395530,ShapeModel as _0x3e98d7,UniverShapePlugin as _0x23ebde,buildConnectorEndpointUpdate as _0x408f1a,canApplyShapeFormulaLastValue as _0xc7a868,computeConnectorRouteLayout as _0x2be7d1,createFreeConnectorPointInfo as _0x3ff701,createUniqueShapeName as _0x3a367a,getBasicShapeRotateBound as _0x392b33,isConnectorShape as _0x494a20,resolveConnectorRoutePoints as _0x544527,resolveShapeConnectionPoint as _0x482680,routeConnectorLineShape as _0x2f3676}from'@univerjs-pro/engine-shape';function _0x16e7(_0x2e104f,_0x3eda67){_0x2e104f=_0x2e104f-0x14e;const _0x38f08a=_0x38f0();let _0x16e7d5=_0x38f08a[_0x2e104f];return _0x16e7d5;}import{ArrangeTypeEnum as _0x716b69,CommandType as _0x18160b,DependentOn as _0x2527f1,Disposable as _0x2541f3,DrawingTypeEnum as _0x258cc4,ICommandService as _0x24f238,IConfigService as _0x230e63,IResourceManagerService as _0x386f5b,IUndoRedoService as _0x4378ee,IUniverInstanceService as _0x2eeaa3,Inject as _0x3fe8d2,Injector as _0x19c189,Plugin as _0x17dc30,Tools as _0x30a3e1,UniverInstanceType as _0x7970aa,generateRandomId as _0x314874,merge as _0x396304,sequenceExecute as _0xfd50fc,touchDependencies as _0x77a843}from'@univerjs/core';import{SheetInterceptorService as _0x366df6,SheetSkeletonService as _0x4f3885,UniverSheetsPlugin as _0x35fb27,getSheetCommandTarget as _0x488b55}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x395547,DrawingApplyType as _0x4f2c4e,ISheetDrawingService as _0x351531,InsertSheetDrawingCommand as _0x463701,RemoveSheetDrawingCommand as _0x47b923,SetDrawingApplyMutation as _0x551a9d,SetDrawingArrangeCommand as _0x498f41,SetSheetDrawingCommand as _0x15dfd3,SheetDrawingAnchorType as _0xb99205,SheetDrawingTransformPlanService as _0x44eabe,UniverSheetsDrawingPlugin as _0x2bfb2a,transformToAxisAlignPosition as _0xe703e5,transformToDrawingPosition as _0x5eb23d}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x39ab58}from'@univerjs-pro/license';function _0x38f0(){const _0x18b6c1=['worldRect','from','version','find','addShape','dispose','_disposed','undos','getEndConnectInfo','insertShape','get','toJSON','call','_arrange','unitId','string','getDrawingByParam','left','onStarting','_toSnapshot','symbol','Both','getCellWithCoordByIndex','formula','shapeType','getStartConnectInfo','flatMap','preRedos','_planDeletes','syncExecuteCommand','_initCommands','5505283FetEIB','onCommandExecuted','redos','_sheetInterceptorService','resizeEnabled','name','_instanceService','getShapeTypeById','_resourcesManagerService','packageName','cos','getShapeTextData','register','1.0.0-alpha.8','ang','push','selectable','_commandService','getShape','SHEET_SHAPE_PLUGIN','drawingType','ensureSkeleton','getShapeModel','UNIVER_SHEET','pushUndoRedo','fromJSON','updateShape','rotation','getAdjustValueByName','flipX','isFrom','removeLinePoints','result','range','shapeData','getShapeRelation','constructor','getShapeDisplayNames','_shapeService','deletes','front','filter','registerCommand','_sheetsShapeService','getLineShapeRelation','width','getBasicShapeType','back','_serializeShapeForUnit','top','sheet.command.set-shape-text-vertical-toggle','subUnitId','_configService','listShapes','_resolveBinding','shapeChanged$','forward','shapeName','command','flipY','disposeWithMe','delete','hostType','updates','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_drawingService','set','getName','removeShape','lineType','_groupIds','startY','REMOVE','createShape','length','getShapeData','cxnIndex','lineShapeId','iterator','params','createFormulaLastValueMutation','_ensureShapeModelManager','preUndos','clear','getAdjustNames','_shapeHostAdapterRegistry','1138eqzTbG','getDrawingData','borderEnabled','MUTATION','stringify','getConnectionSiteList','object','sin','getSheetId','map','_addLineRerouteUpdates','_linesIds','DRAWING_SHAPE','setConfig','drawingId','deepClone','_addLineFollowShapeUpdates','shapeId','function','_applyUpdate','default','2530392OtryYp','decorate','rotateEnabled','backward','@univerjs-pro/sheets-shape','getOwnPropertyDescriptor','transform','_initSnapshot','mode','has','add','interceptCommand','590vMGROn','_sheetSkeletonService','sheet.command.set-shape-drawing-data','_planConnector','getSkeleton','point','forEach','getBasicShapeRelation','bringToFront','originals','entries','_shapeModelManagerMap','index','onCommandExecute','keys','COMMAND','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','adjustValues','type','sheet.command.set-shape-rotate','values','getBatchUpdateOp','fill','sheet.command.update-connector-relation','62088TKGGKJ','1836TjAxms','setShapeType','1422792YJfSrj','UPDATE','sheet.command.toggle-shape-flip','_initCommandInterceptor','angle','getShapeType','_injector','2630912jjycao','hasShape','_getConnectPointInfo','_deserializeShapeForUnit','setShapeData','sheet.mutation.insert-shape','data','visible','position','relation','height','_config','formulaBinding','sendToBack','_shapes','updateContext','getId','_drawingManagerService','isLineShape','2776650mbfARj','sheets-shape.config','registerPluginResource','getUnit','bringForward','description','getShapeDataById'];_0x38f0=function(){return _0x18b6c1;};return _0x38f0();}import{IDrawingManagerService as _0x39c068,UniverDrawingPlugin as _0x403e13}from'@univerjs/drawing';const q=0xc8,J=0xc8;function Y(_0xead5f3){'@babel/helpers - typeof';const _0x1288dd=_0x16e7;return Y=typeof Symbol=='function'&&typeof Symbol[_0x1288dd(0x14f)]==_0x1288dd(0x1c8)?function(_0x50245c){return typeof _0x50245c;}:function(_0x162132){const _0x450788=_0x1288dd;return _0x162132&&typeof Symbol=='function'&&_0x162132[_0x450788(0x1f7)]===Symbol&&_0x162132!==Symbol['prototype']?_0x450788(0x1c8):typeof _0x162132;},Y(_0xead5f3);}function ae(_0x3bfe58,_0x593587){const _0x2da04a=_0x16e7;if(Y(_0x3bfe58)!='object'||!_0x3bfe58)return _0x3bfe58;var _0xa3b79=_0x3bfe58[Symbol['toPrimitive']];if(_0xa3b79!==void 0x0){var _0x268be5=_0xa3b79[_0x2da04a(0x1c0)](_0x3bfe58,_0x593587||_0x2da04a(0x16b));if(Y(_0x268be5)!=_0x2da04a(0x15d))return _0x268be5;throw TypeError(_0x2da04a(0x213));}return(_0x593587===_0x2da04a(0x1c3)?String:Number)(_0x3bfe58);}function oe(_0x26b6a0){const _0x34b33a=_0x16e7;var _0x48e523=ae(_0x26b6a0,_0x34b33a(0x1c3));return Y(_0x48e523)==_0x34b33a(0x1c8)?_0x48e523:_0x48e523+'';}function X(_0xc99fd5,_0x36e657,_0x3f8802){return(_0x36e657=oe(_0x36e657))in _0xc99fd5?Object['defineProperty'](_0xc99fd5,_0x36e657,{'value':_0x3f8802,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc99fd5[_0x36e657]=_0x3f8802,_0xc99fd5;}var se=class extends _0x2541f3{constructor(){const _0xacea8=_0x16e7;super(),X(this,'_shapes',new Map()),X(this,'_linesIds',new Set()),X(this,_0xacea8(0x219),new Set());}[_0xab0703(0x1b8)](_0x204b30,_0x1536ea,_0x28de95,_0x520dbe){const _0x1e6881=_0xab0703;let _0x52da4e=new _0x3e98d7(_0x204b30,_0x1536ea,_0x28de95,_0x520dbe);return this[_0x1e6881(0x1a8)][_0x1e6881(0x215)](_0x1536ea,_0x52da4e),_0x494a20(_0x204b30)&&this[_0x1e6881(0x162)]['add'](_0x1536ea),_0x52da4e;}['getBasicShapeRelation'](_0x5c9157){const _0x2794fa=_0xab0703;let _0x2d2161=[];for(let _0x48b5d7 of this[_0x2794fa(0x162)]){let _0x364208=this['_shapes'][_0x2794fa(0x1be)](_0x48b5d7);if(_0x364208){let _0x10d301=_0x364208[_0x2794fa(0x1f6)]();if(_0x10d301){var _0x245814,_0x1d0aee;((_0x245814=_0x10d301['from'])==null?void 0x0:_0x245814[_0x2794fa(0x168)])===_0x5c9157&&_0x2d2161[_0x2794fa(0x1e2)]({..._0x10d301[_0x2794fa(0x1b5)],'lineShapeId':_0x48b5d7,'isFrom':!0x0}),((_0x1d0aee=_0x10d301['to'])==null?void 0x0:_0x1d0aee[_0x2794fa(0x168)])===_0x5c9157&&_0x2d2161[_0x2794fa(0x1e2)]({..._0x10d301['to'],'lineShapeId':_0x48b5d7,'isFrom':!0x1});}}}return _0x2d2161;}['getLineShapeRelation'](_0x39a4ce){const _0x196ffa=_0xab0703;let _0x1d4b0c=this[_0x196ffa(0x1a8)]['get'](_0x39a4ce);if(_0x1d4b0c)return _0x1d4b0c['getShapeRelation']();}['getShapeType'](_0x3c8dea){const _0x24bff7=_0xab0703;let _0x528a1a=this[_0x24bff7(0x1a8)][_0x24bff7(0x1be)](_0x3c8dea);if(_0x528a1a)return _0x528a1a[_0x24bff7(0x198)]();}[_0xab0703(0x19b)](_0x59d274){const _0x334f6d=_0xab0703;return this[_0x334f6d(0x1a8)]['has'](_0x59d274);}[_0xab0703(0x1f8)](){const _0x1661c9=_0xab0703;return Array[_0x1661c9(0x1b5)](this[_0x1661c9(0x1a8)]['values']())[_0x1661c9(0x160)](_0x3c4540=>_0x3c4540[_0x1661c9(0x216)]()||_0x3c4540[_0x1661c9(0x1aa)]());}[_0xab0703(0x217)](_0x150f8d){const _0x258bf8=_0xab0703;let _0x3c0f75=this['_shapes'][_0x258bf8(0x1be)](_0x150f8d);_0x3c0f75&&(_0x494a20(_0x3c0f75[_0x258bf8(0x198)]())&&this[_0x258bf8(0x162)][_0x258bf8(0x210)](_0x150f8d),this[_0x258bf8(0x1a8)][_0x258bf8(0x210)](_0x150f8d));}['toJSON'](){const _0xa54d3e=_0xab0703;let _0x2aeb2d=[];return this[_0xa54d3e(0x1a8)]['forEach'](_0x4fdf23=>{const _0xc4d88c=_0xa54d3e;_0x2aeb2d[_0xc4d88c(0x1e2)](_0x4fdf23[_0xc4d88c(0x1bf)]());}),_0x2aeb2d;}[_0xab0703(0x1ec)](_0x4b7314){const _0x575f77=_0xab0703;for(let _0x3bb019 of _0x4b7314){let {id:_0x352f81,shapeType:_0x3a1acf,name:_0x42e705}=_0x3bb019,_0x380163=this[_0x575f77(0x1b8)](_0x3a1acf,_0x352f81,_0x3bb019[_0x575f77(0x1f5)],_0x42e705);_0x380163&&_0x380163[_0x575f77(0x1ac)]()&&this[_0x575f77(0x162)][_0x575f77(0x176)](_0x352f81);}}[_0xab0703(0x1b9)](){const _0x412075=_0xab0703;this[_0x412075(0x1ba)]||(this['_shapes']['forEach'](_0x5bc267=>{const _0x13da03=_0x412075;_0x5bc267[_0x13da03(0x1b9)]();}),this[_0x412075(0x1a8)]['clear'](),this[_0x412075(0x162)][_0x412075(0x154)](),this[_0x412075(0x219)][_0x412075(0x154)](),super[_0x412075(0x1b9)]());}};function Z(_0x4cd21f,_0x44f93b){return function(_0x4eac34,_0x1e278b){_0x44f93b(_0x4eac34,_0x1e278b,_0x4cd21f);};}function ce(_0x33b215,_0x2ea918,_0x1babda,_0x42acce){const _0x256df6=_0xab0703;var _0x45118c=arguments['length'],_0x57a301=_0x45118c<0x3?_0x2ea918:_0x42acce===null?_0x42acce=Object[_0x256df6(0x171)](_0x2ea918,_0x1babda):_0x42acce,_0x26bbec;if(typeof Reflect==_0x256df6(0x15d)&&typeof Reflect[_0x256df6(0x16d)]==_0x256df6(0x169))_0x57a301=Reflect[_0x256df6(0x16d)](_0x33b215,_0x2ea918,_0x1babda,_0x42acce);else{for(var _0x2d71fd=_0x33b215['length']-0x1;_0x2d71fd>=0x0;_0x2d71fd--)(_0x26bbec=_0x33b215[_0x2d71fd])&&(_0x57a301=(_0x45118c<0x3?_0x26bbec(_0x57a301):_0x45118c>0x3?_0x26bbec(_0x2ea918,_0x1babda,_0x57a301):_0x26bbec(_0x2ea918,_0x1babda))||_0x57a301);}return _0x45118c>0x3&&_0x57a301&&Object['defineProperty'](_0x2ea918,_0x1babda,_0x57a301),_0x57a301;}let Q=class extends _0x2541f3{constructor(_0x1920d1){const _0x3c0523=_0xab0703;super(),this[_0x3c0523(0x1db)]=_0x1920d1,X(this,_0x3c0523(0x183),new Map()),this[_0x3c0523(0x173)]();}[_0xab0703(0x152)](_0x188b23,_0x858931){const _0x390452=_0xab0703;let _0x28e59e=this[_0x390452(0x183)][_0x390452(0x1be)](_0x188b23);_0x28e59e||(_0x28e59e=new Map(),this['_shapeModelManagerMap']['set'](_0x188b23,_0x28e59e));let _0x4a9d4d=_0x28e59e[_0x390452(0x1be)](_0x858931);return _0x4a9d4d||(_0x4a9d4d=new se(),_0x28e59e[_0x390452(0x215)](_0x858931,_0x4a9d4d)),_0x4a9d4d;}[_0xab0703(0x1bd)](_0x2954cf,_0x16680c,_0x43226f,_0x215846,_0x4b7094,_0x3f6f6c){const _0x15113a=_0xab0703;this[_0x15113a(0x152)](_0x2954cf,_0x16680c)[_0x15113a(0x1b8)](_0x43226f,_0x215846,_0x4b7094,_0x3f6f6c);}['removeShape'](_0x18c954,_0x2276a3,_0x3c41d7){const _0x381fdd=_0xab0703;this['_ensureShapeModelManager'](_0x18c954,_0x2276a3)[_0x381fdd(0x217)](_0x3c41d7);}[_0xab0703(0x201)](_0xb9deba,_0x59af43,_0x3ca67f){const _0x28a49e=_0xab0703;return this[_0x28a49e(0x152)](_0xb9deba,_0x59af43)[_0x28a49e(0x198)](_0x3ca67f);}[_0xab0703(0x198)](_0x49059c,_0x394a38,_0x12a019){const _0x2d7195=_0xab0703;return this['_ensureShapeModelManager'](_0x49059c,_0x394a38)[_0x2d7195(0x198)](_0x12a019);}[_0xab0703(0x19b)](_0x1b7fcf,_0x13b315,_0x44f206){const _0x5c6050=_0xab0703;return this['_ensureShapeModelManager'](_0x1b7fcf,_0x13b315)[_0x5c6050(0x19b)](_0x44f206);}[_0xab0703(0x1da)](_0x14d1c9,_0x10b603,_0x6738a2){const _0x48421f=_0xab0703;return this[_0x48421f(0x152)](_0x14d1c9,_0x10b603)[_0x48421f(0x198)](_0x6738a2);}[_0xab0703(0x1b3)](_0x1fcd59,_0x51054f,_0x325608){const _0x15fde8=_0xab0703;let _0xb8fd62=this[_0x15fde8(0x152)](_0x1fcd59,_0x51054f);if(!_0xb8fd62[_0x15fde8(0x198)](_0x325608))return;let _0x59b9bb=_0xb8fd62[_0x15fde8(0x1a8)][_0x15fde8(0x1be)](_0x325608);if(_0x59b9bb)return _0x59b9bb[_0x15fde8(0x21e)]();}[_0xab0703(0x1f8)](_0x4d27eb,_0x521e6f){const _0x475b94=_0xab0703;return this['_ensureShapeModelManager'](_0x4d27eb,_0x521e6f)[_0x475b94(0x1f8)]();}['getShapeModel'](_0xbc4095,_0x1d9353,_0x15900b){const _0x2dc79e=_0xab0703;return this['_ensureShapeModelManager'](_0xbc4095,_0x1d9353)['_shapes'][_0x2dc79e(0x1be)](_0x15900b);}['getBasicShapeRelation'](_0x5974e8,_0x673059,_0x3a2283){const _0x2ed144=_0xab0703;return this[_0x2ed144(0x152)](_0x5974e8,_0x673059)['getBasicShapeRelation'](_0x3a2283);}[_0xab0703(0x1ff)](_0x29410f,_0x11c855,_0x351c30){const _0x44ec25=_0xab0703;let _0x2c2201=this[_0x44ec25(0x152)](_0x29410f,_0x11c855)[_0x44ec25(0x1a8)][_0x44ec25(0x1be)](_0x351c30);if(_0x2c2201)return _0x2c2201[_0x44ec25(0x1f6)]();}[_0xab0703(0x192)](){}[_0xab0703(0x203)](_0x188bbf){const _0x476520=_0xab0703;let _0x25adc9={},_0x49825f=this[_0x476520(0x183)][_0x476520(0x1be)](_0x188bbf);return _0x49825f&&_0x49825f[_0x476520(0x17e)]((_0x10fd5d,_0x4e239c)=>{const _0x3d9e0e=_0x476520;let _0x4b4aa0=_0x10fd5d[_0x3d9e0e(0x1bf)]();_0x4b4aa0[_0x3d9e0e(0x21d)]>0x0&&(_0x25adc9[_0x4e239c]=_0x4b4aa0);}),JSON[_0x476520(0x15b)](_0x25adc9);}[_0xab0703(0x19d)](_0x56b876,_0x3320a3){const _0x3ab8af=_0xab0703;Object['keys'](_0x3320a3)[_0x3ab8af(0x17e)](_0x14e8c2=>{const _0x29d4ba=_0x3ab8af;this[_0x29d4ba(0x152)](_0x56b876,_0x14e8c2)['fromJSON'](_0x3320a3[_0x14e8c2]);});}[_0xab0703(0x1bf)](){const _0x874ef4=_0xab0703;let _0x243662={};return this[_0x874ef4(0x183)][_0x874ef4(0x17e)]((_0x4bcd4b,_0x22735b)=>{const _0x12b76b=_0x874ef4;_0x243662[_0x22735b]={},_0x4bcd4b[_0x12b76b(0x17e)]((_0x5f027e,_0x2c7e4d)=>{_0x243662[_0x22735b][_0x2c7e4d]=_0x5f027e['toJSON']();});}),_0x243662;}[_0xab0703(0x1ec)](_0x397e62){const _0x184725=_0xab0703;Object[_0x184725(0x186)](_0x397e62)[_0x184725(0x17e)](_0x1e1030=>{const _0x19e4f7=_0x184725;let _0x1cc387=_0x397e62[_0x1e1030];Object[_0x19e4f7(0x186)](_0x1cc387)[_0x19e4f7(0x17e)](_0x37be0d=>{const _0x35ee3e=_0x19e4f7;this[_0x35ee3e(0x152)](_0x1e1030,_0x37be0d)['fromJSON'](_0x1cc387[_0x37be0d]);});});}[_0xab0703(0x173)](){const _0x89893e=_0xab0703;this[_0x89893e(0x1db)][_0x89893e(0x1af)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x7970aa[_0x89893e(0x1ea)]],'toJson':_0x4f1905=>this[_0x89893e(0x203)](_0x4f1905),'parseJson':_0x3aec2c=>JSON['parse'](_0x3aec2c),'onLoad':(_0x5b0b98,_0x2ee1fb)=>{const _0x303b3e=_0x89893e;this[_0x303b3e(0x19d)](_0x5b0b98,_0x2ee1fb);},'onUnLoad':_0x54a749=>{const _0x370505=_0x89893e;let _0x26d310=this['_shapeModelManagerMap'][_0x370505(0x1be)](_0x54a749);_0x26d310&&(_0x26d310[_0x370505(0x17e)](_0x227248=>{const _0x50d856=_0x370505;_0x227248[_0x50d856(0x1b9)]();}),this['_shapeModelManagerMap'][_0x370505(0x210)](_0x54a749));}});}[_0xab0703(0x1b9)](){const _0x2801b1=_0xab0703;this[_0x2801b1(0x183)][_0x2801b1(0x17e)](_0x2d6007=>{const _0x1872ca=_0x2801b1;_0x2d6007[_0x1872ca(0x17e)](_0x2a8e82=>{const _0x4afaaa=_0x1872ca;_0x2a8e82[_0x4afaaa(0x1b9)]();});});}};Q=ce([Z(0x0,_0x386f5b)],Q);const le={'id':_0xab0703(0x19f),'type':_0x18160b['MUTATION'],'handler':(_0x22ede9,_0x54d701)=>{const _0x2a1254=_0xab0703;let {unitId:_0x372e34,subUnitId:_0x5cb906,shapeType:_0x325876,shapeId:_0xae52d7,shapeName:_0x4fc177,shapeData:_0x545fcb}=_0x54d701;return _0x22ede9['get'](Q)[_0x2a1254(0x1bd)](_0x372e34,_0x5cb906,_0x325876,_0xae52d7,_0x30a3e1['deepClone'](_0x545fcb),_0x4fc177),!0x0;}},ue={'id':'sheet.mutation.remove-shape','type':_0x18160b[_0xab0703(0x15a)],'handler':(_0x4305a3,_0x4f4f41)=>{const _0x123b99=_0xab0703;let {unitId:_0x289cfe,subUnitId:_0x2c3748,shapeId:_0x2dae36}=_0x4f4f41;return _0x4305a3[_0x123b99(0x1be)](Q)[_0x123b99(0x217)](_0x289cfe,_0x2c3748,_0x2dae36),!0x0;}},de={'type':_0x18160b[_0xab0703(0x187)],'id':'sheet.command.insert-shape','handler':(_0x54e5be,_0x13d9ca)=>{const _0x1dc1dc=_0xab0703;var _0xfd1460,_0x1fa5ff,_0x38d48d,_0x19ec2a,_0x29b3e6,_0x9180,_0x17cd5a;let _0x142fa0=_0x488b55(_0x54e5be[_0x1dc1dc(0x1be)](_0x2eeaa3),_0x13d9ca);if(!_0x142fa0)return!0x1;let _0x2f79fe=_0x54e5be[_0x1dc1dc(0x1be)](_0x4f3885),{unitId:_0x379e05,subUnitId:_0x377985}=_0x142fa0,_0xa80346=_0x2f79fe[_0x1dc1dc(0x1e8)](_0x379e05,_0x377985);if(!_0xa80346)return!0x1;let _0x28e8ba=_0x54e5be[_0x1dc1dc(0x1be)](_0x24f238),_0x1c5d65=_0x54e5be['get'](_0x4378ee),_0xd1d09e=_0x54e5be[_0x1dc1dc(0x1be)](_0x366df6),_0x24feea=_0x54e5be['get'](_0x351531),_0x32c6eb=_0x54e5be[_0x1dc1dc(0x1be)](Q),{shapeType:_0x3a8776,shapeData:_0x57f1f9}=_0x13d9ca,_0x2f4729=_0x13d9ca[_0x1dc1dc(0x168)]||_0x314874(),_0x316695={'unitId':_0x379e05,'subUnitId':_0x377985,'shapeId':_0x2f4729,'shapeName':(_0xfd1460=_0x13d9ca[_0x1dc1dc(0x20c)])==null?_0x3a367a(_0x3a8776,_0x32c6eb[_0x1dc1dc(0x1f8)](_0x379e05,_0x377985)):_0xfd1460,'shapeType':_0x3a8776,'shapeData':_0x57f1f9},_0x1fe899=_0x13d9ca[_0x1dc1dc(0x200)]||0xc8,_0x3ecfa3=_0x13d9ca[_0x1dc1dc(0x1a4)]||0xc8,_0x317804=0x0,_0x44d760=0x0;if(_0x13d9ca[_0x1dc1dc(0x1a2)]){let {x:_0x242eed,y:_0x573140}=_0x13d9ca[_0x1dc1dc(0x1a2)];_0x317804=_0x242eed,_0x44d760=_0x573140;}else{if(_0x13d9ca[_0x1dc1dc(0x1f4)]){let {startRow:_0x36a627,startColumn:_0x2ac52e}=_0x13d9ca[_0x1dc1dc(0x1f4)],_0x1566de=_0xa80346[_0x1dc1dc(0x1ca)](_0x36a627,_0x2ac52e);_0x317804=_0x1566de['startX']+0xa,_0x44d760=_0x1566de[_0x1dc1dc(0x21a)]+0xa;}}let _0x1460e3={'left':_0x317804,'top':_0x44d760,'width':_0x1fe899,'height':_0x3ecfa3,'angle':(_0x1fa5ff=_0x13d9ca[_0x1dc1dc(0x1ee)])==null?0x0:_0x1fa5ff,'flipX':(_0x38d48d=_0x13d9ca[_0x1dc1dc(0x1f0)])!=null&&_0x38d48d,'flipY':(_0x19ec2a=_0x13d9ca[_0x1dc1dc(0x20e)])!=null&&_0x19ec2a},_0x36c9c2=_0x5eb23d(_0x1460e3,_0xa80346),_0x54408=_0xe703e5(_0x1460e3,_0xa80346),_0x51531b={'unitId':_0x379e05,'subUnitId':_0x377985,'drawingId':_0x2f4729,'drawingType':_0x258cc4[_0x1dc1dc(0x163)],'anchorType':_0xb99205[_0x1dc1dc(0x1c9)],'name':_0x13d9ca['name'],'description':_0x13d9ca[_0x1dc1dc(0x1b2)],'sheetTransform':_0x36c9c2,'transform':_0x1460e3,'data':{'shapeType':_0x3a8776,'shapeData':_0x57f1f9},'axisAlignSheetTransform':_0x54408,'allowTransform':!0x0,'hidden':_0x13d9ca['visible']===!0x1,'selectable':(_0x29b3e6=_0x13d9ca[_0x1dc1dc(0x1e3)])==null||_0x29b3e6};_0x494a20(_0x3a8776)&&(_0x51531b[_0x1dc1dc(0x1a0)][_0x1dc1dc(0x18e)]=!0x1,_0x51531b['data'][_0x1dc1dc(0x16e)]=!0x1,_0x51531b[_0x1dc1dc(0x1a0)][_0x1dc1dc(0x1d7)]=!0x1,_0x51531b['data']['borderEnabled']=!0x1,_0x51531b[_0x1dc1dc(0x172)][_0x1dc1dc(0x16e)]=!0x1,_0x51531b[_0x1dc1dc(0x172)][_0x1dc1dc(0x1d7)]=!0x1,_0x51531b[_0x1dc1dc(0x172)][_0x1dc1dc(0x159)]=!0x1);let {undo:_0x3de705,redo:_0x1ba112,objects:_0x5d7ed7}=_0x24feea['getBatchAddOp']([_0x51531b]),_0x5a3cd0=_0xd1d09e[_0x1dc1dc(0x185)]({'id':_0x463701['id'],'params':{'unitId':_0x379e05,'drawings':[_0x51531b]}}),_0x16f1a7=[...(_0x9180=_0x5a3cd0[_0x1dc1dc(0x1cf)])==null?[]:_0x9180,{'id':_0x551a9d['id'],'params':{'unitId':_0x379e05,'subUnitId':_0x377985,'op':_0x1ba112,'objects':_0x5d7ed7,'type':_0x4f2c4e['INSERT']}},{'id':_0x395547['id'],'params':[_0x379e05]},..._0x5a3cd0['redos'],{'id':le['id'],'params':_0x316695}],_0x37a05c=[{'id':ue['id'],'params':{'unitId':_0x379e05,'subUnitId':_0x377985,'shapeId':_0x2f4729}},...(_0x17cd5a=_0x5a3cd0[_0x1dc1dc(0x153)])==null?[]:_0x17cd5a,{'id':_0x551a9d['id'],'params':{'unitId':_0x379e05,'subUnitId':_0x377985,'op':_0x3de705,'objects':_0x5d7ed7,'type':_0x4f2c4e[_0x1dc1dc(0x21b)]}},{'id':_0x395547['id'],'params':[_0x379e05]},..._0x5a3cd0[_0x1dc1dc(0x1bb)]];return _0xfd50fc(_0x16f1a7,_0x28e8ba)[_0x1dc1dc(0x1f3)]?(_0x1c5d65['pushUndoRedo']({'unitID':_0x379e05,'undoMutations':_0x37a05c,'redoMutations':_0x16f1a7}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x18160b[_0xab0703(0x15a)],'handler':(_0x74f387,_0x137d89)=>{const _0x5c1b70=_0xab0703;let {unitId:_0x5dfcbb,subUnitId:_0x422be3,shapeType:_0x51a55a,shapeId:_0x27f16c,shapeData:_0x103373,replace:_0x1e0f8b,formulaLastValueGuard:_0x139c63}=_0x137d89,_0x42d5e0=_0x74f387['get'](Q)[_0x5c1b70(0x1e9)](_0x5dfcbb,_0x422be3,_0x27f16c);if(_0x42d5e0){var _0x4d8ff6;if(!_0xc7a868(_0x74f387,{'hostType':_0x7970aa[_0x5c1b70(0x1ea)],'unitId':_0x5dfcbb,'subUnitId':_0x422be3,'shapeId':_0x27f16c},(_0x4d8ff6=_0x42d5e0[_0x5c1b70(0x21e)]()[_0x5c1b70(0x1a6)])==null?void 0x0:_0x4d8ff6[_0x5c1b70(0x1cb)],_0x139c63))return!0x0;_0x51a55a!==void 0x0&&_0x42d5e0['setShapeType'](_0x51a55a),_0x103373&&(_0x42d5e0==null||_0x42d5e0['setShapeData'](_0x30a3e1[_0x5c1b70(0x166)](_0x103373),!_0x1e0f8b));}return!0x0;}},fe={'type':_0x18160b[_0xab0703(0x187)],'id':_0xab0703(0x17a),'handler':(_0x4355ec,_0x6c307d)=>{const _0x1c8a6c=_0xab0703;var _0x3d1c47,_0x2bee91,_0x442888,_0x28d8bb,_0x2419b0;let _0x348dd8=_0x488b55(_0x4355ec[_0x1c8a6c(0x1be)](_0x2eeaa3),_0x6c307d);if(!_0x348dd8)return!0x1;let _0x487f47=_0x4355ec['get'](_0x4f3885),{unitId:_0x497527,subUnitId:_0x36caed}=_0x348dd8,_0x122535=_0x487f47[_0x1c8a6c(0x1e8)](_0x497527,_0x36caed);if(!_0x122535)return!0x1;let _0x38b06b=_0x4355ec[_0x1c8a6c(0x1be)](Q),{shapeId:_0x311afa,shapeType:_0x54da0f,shapeData:_0x3c30f7,position:_0x572c2d,width:_0x497e79,height:_0x26d0f3}=_0x6c307d,_0x1e7230=_0x38b06b['getShapeModel'](_0x497527,_0x36caed,_0x311afa);if(!_0x1e7230)return!0x1;let _0x45926b=_0x4355ec[_0x1c8a6c(0x1be)](_0x24f238),_0x77b6b2=_0x4355ec[_0x1c8a6c(0x1be)](_0x4378ee),_0x271f6d=_0x4355ec[_0x1c8a6c(0x1be)](_0x366df6),_0x30b90f=_0x4355ec[_0x1c8a6c(0x1be)](_0x351531),_0x4da8e0={'unitId':_0x497527,'subUnitId':_0x36caed,'shapeId':_0x311afa,'shapeType':_0x54da0f,'shapeData':_0x3c30f7,'replace':!0x0},_0x3078ca=_0x1e7230[_0x1c8a6c(0x198)](),_0x5b35bb=_0x1e7230[_0x1c8a6c(0x21e)](),{x:_0x4a4073,y:_0x5230a1}=_0x572c2d,_0x10da70={'left':_0x4a4073,'top':_0x5230a1,'width':_0x497e79,'height':_0x26d0f3,'angle':(_0x3d1c47=_0x6c307d[_0x1c8a6c(0x1ee)])==null?0x0:_0x3d1c47,'flipX':(_0x2bee91=_0x6c307d[_0x1c8a6c(0x1f0)])!=null&&_0x2bee91,'flipY':(_0x442888=_0x6c307d[_0x1c8a6c(0x20e)])!=null&&_0x442888},_0x7984c6=_0x5eb23d(_0x10da70,_0x122535),_0x1d5717=_0xe703e5(_0x10da70,_0x122535),_0x3726ee={'unitId':_0x497527,'subUnitId':_0x36caed,'drawingId':_0x311afa,'drawingType':_0x258cc4['DRAWING_SHAPE'],'name':_0x6c307d['name'],'description':_0x6c307d[_0x1c8a6c(0x1b2)],'sheetTransform':_0x7984c6,'transform':_0x10da70,'data':{'shapeType':_0x54da0f,'shapeData':_0x3c30f7},'axisAlignSheetTransform':_0x1d5717,'allowTransform':!0x0,'hidden':!_0x6c307d['visible'],'selectable':_0x6c307d[_0x1c8a6c(0x1e3)]};_0x494a20(_0x54da0f)&&(_0x3726ee[_0x1c8a6c(0x1a0)][_0x1c8a6c(0x18e)]=!0x1,_0x3726ee[_0x1c8a6c(0x1a0)][_0x1c8a6c(0x16e)]=!0x1,_0x3726ee[_0x1c8a6c(0x1a0)][_0x1c8a6c(0x1d7)]=!0x1,_0x3726ee[_0x1c8a6c(0x1a0)][_0x1c8a6c(0x159)]=!0x1,_0x3726ee[_0x1c8a6c(0x172)]['rotateEnabled']=!0x1,_0x3726ee[_0x1c8a6c(0x172)][_0x1c8a6c(0x1d7)]=!0x1,_0x3726ee[_0x1c8a6c(0x172)]['borderEnabled']=!0x1);let {undo:_0x3645ef,redo:_0x142c11,objects:_0x1b7e99}=_0x30b90f[_0x1c8a6c(0x18d)]([_0x3726ee]),_0x59b440=_0x271f6d[_0x1c8a6c(0x185)]({'id':_0x15dfd3['id'],'params':{'unitId':_0x497527,'drawings':[_0x3726ee]}}),_0x4476a3=[...(_0x28d8bb=_0x59b440[_0x1c8a6c(0x1cf)])==null?[]:_0x28d8bb,{'id':_0x551a9d['id'],'params':{'unitId':_0x497527,'subUnitId':_0x36caed,'op':_0x142c11,'objects':_0x1b7e99,'type':_0x4f2c4e[_0x1c8a6c(0x194)]}},{'id':_0x395547['id'],'params':[_0x497527]},..._0x59b440['redos'],{'id':$['id'],'params':_0x4da8e0}],_0x27620a=[...(_0x2419b0=_0x59b440[_0x1c8a6c(0x153)])==null?[]:_0x2419b0,{'id':_0x551a9d['id'],'params':{'unitId':_0x497527,'subUnitId':_0x36caed,'op':_0x3645ef,'objects':_0x1b7e99,'type':_0x4f2c4e[_0x1c8a6c(0x194)]}},{'id':_0x395547['id'],'params':[_0x497527]},..._0x59b440[_0x1c8a6c(0x1bb)],{'id':$['id'],'params':{'unitId':_0x497527,'subUnitId':_0x36caed,'shapeType':_0x3078ca,'shapeId':_0x311afa,'shapeData':_0x5b35bb,'replace':!0x0}}];return _0xfd50fc(_0x4476a3,_0x45926b)[_0x1c8a6c(0x1f3)]?(_0x77b6b2[_0x1c8a6c(0x1eb)]({'unitID':_0x497527,'undoMutations':_0x27620a,'redoMutations':_0x4476a3}),!0x0):!0x1;}},pe={'type':_0x18160b[_0xab0703(0x187)],'id':_0xab0703(0x195),'handler':(_0x555b9b,_0x2e8e59)=>{const _0x5a8a98=_0xab0703;var _0x2551ba,_0x35b1f4;let _0x2d6bdb=_0x488b55(_0x555b9b[_0x5a8a98(0x1be)](_0x2eeaa3),_0x2e8e59);if(!_0x2d6bdb)return!0x1;let _0x1caeae=_0x555b9b[_0x5a8a98(0x1be)](_0x4f3885),{unitId:_0x5b317d,subUnitId:_0x31a7b9}=_0x2d6bdb,_0x389fbb=_0x1caeae[_0x5a8a98(0x17c)](_0x5b317d,_0x31a7b9);if(!_0x389fbb)return!0x1;let _0x523d80=_0x555b9b[_0x5a8a98(0x1be)](_0x351531),{shapeId:_0x33b7ff,flipH:_0x3fb6bc,flipV:_0x296690}=_0x2e8e59,_0x2ff54f=_0x523d80['getDrawingByParam']({'unitId':_0x5b317d,'subUnitId':_0x31a7b9,'drawingId':_0x33b7ff});if(!_0x2ff54f)return!0x1;let _0x1e01d4=_0x555b9b['get'](Q)[_0x5a8a98(0x1e9)](_0x5b317d,_0x31a7b9,_0x33b7ff);if(!_0x1e01d4)return!0x1;let _0x1707ef=_0x555b9b[_0x5a8a98(0x1be)](_0x24f238),_0x2ffe96=_0x555b9b[_0x5a8a98(0x1be)](_0x4378ee),_0x51dd80=_0x555b9b[_0x5a8a98(0x1be)](_0x366df6),_0x2e097e={..._0x2ff54f[_0x5a8a98(0x172)]};_0x3fb6bc!==void 0x0&&(_0x2e097e[_0x5a8a98(0x1f0)]=!_0x2e097e['flipX']),_0x296690!==void 0x0&&(_0x2e097e[_0x5a8a98(0x20e)]=!_0x2e097e[_0x5a8a98(0x20e)]);let _0xe1e6e9=_0x5eb23d(_0x2e097e,_0x389fbb),_0x372d3a=_0xe703e5(_0x2e097e,_0x389fbb),_0x25e9dd=_0x1e01d4[_0x5a8a98(0x198)](),_0x372092=_0x1e01d4[_0x5a8a98(0x21e)](),_0x3ed147={'unitId':_0x5b317d,'subUnitId':_0x31a7b9,'drawingId':_0x33b7ff,'drawingType':_0x258cc4[_0x5a8a98(0x163)],'sheetTransform':_0xe1e6e9,'transform':_0x2e097e,'data':{'shapeType':_0x25e9dd,'shapeData':_0x372092},'axisAlignSheetTransform':_0x372d3a,'allowTransform':!0x0},{undo:_0x4c10ca,redo:_0x26d2e8,objects:_0xfec068}=_0x523d80[_0x5a8a98(0x18d)]([_0x3ed147]),_0x296efb=_0x51dd80[_0x5a8a98(0x185)]({'id':_0x15dfd3['id'],'params':{'unitId':_0x5b317d,'drawings':[_0x3ed147]}}),_0x53696c=[...(_0x2551ba=_0x296efb['preRedos'])==null?[]:_0x2551ba,{'id':_0x551a9d['id'],'params':{'unitId':_0x5b317d,'subUnitId':_0x31a7b9,'op':_0x26d2e8,'objects':_0xfec068,'type':_0x4f2c4e[_0x5a8a98(0x194)]}},{'id':_0x395547['id'],'params':[_0x5b317d]},..._0x296efb[_0x5a8a98(0x1d5)]],_0x1fc774=[...(_0x35b1f4=_0x296efb['preUndos'])==null?[]:_0x35b1f4,{'id':_0x551a9d['id'],'params':{'unitId':_0x5b317d,'subUnitId':_0x31a7b9,'op':_0x4c10ca,'objects':_0xfec068,'type':_0x4f2c4e[_0x5a8a98(0x194)]}},{'id':_0x395547['id'],'params':[_0x5b317d]},..._0x296efb[_0x5a8a98(0x1bb)]];if(_0x494a20(_0x25e9dd)){let _0x254e13=_0x1e01d4[_0x5a8a98(0x1f6)]();if(_0x254e13){let _0x3ce042={..._0x254e13};_0x3ce042[_0x5a8a98(0x1b5)]=void 0x0,_0x3ce042['to']=void 0x0,_0x53696c[_0x5a8a98(0x1e2)]({'id':$['id'],'params':{'unitId':_0x5b317d,'subUnitId':_0x31a7b9,'shapeId':_0x33b7ff,'shapeType':_0x25e9dd,'shapeData':{'relation':_0x3ce042}}}),_0x1fc774[_0x5a8a98(0x1e2)]({'id':$['id'],'params':{'unitId':_0x5b317d,'subUnitId':_0x31a7b9,'shapeId':_0x33b7ff,'shapeType':_0x25e9dd,'shapeData':{'relation':_0x254e13}}});}}return _0xfd50fc(_0x53696c,_0x1707ef)['result']?(_0x2ffe96['pushUndoRedo']({'unitID':_0x5b317d,'undoMutations':_0x1fc774,'redoMutations':_0x53696c}),!0x0):!0x1;}},me={'type':_0x18160b['COMMAND'],'id':_0xab0703(0x18b),'handler':(_0x38b936,_0x37513c)=>{const _0x5831e5=_0xab0703;var _0x14add1,_0xcad101;let _0x1ed51d=_0x488b55(_0x38b936[_0x5831e5(0x1be)](_0x2eeaa3),_0x37513c);if(!_0x1ed51d)return!0x1;let _0x5378bb=_0x38b936[_0x5831e5(0x1be)](_0x4f3885),{unitId:_0x32d7a7,subUnitId:_0x416d4b}=_0x1ed51d,_0x34bc8c=_0x5378bb[_0x5831e5(0x17c)](_0x32d7a7,_0x416d4b);if(!_0x34bc8c)return!0x1;let _0x310b7c=_0x38b936['get'](_0x351531),{shapeId:_0x2cf339,rotate:_0x5abf01}=_0x37513c,_0xf00c24=_0x310b7c[_0x5831e5(0x1c4)]({'unitId':_0x32d7a7,'subUnitId':_0x416d4b,'drawingId':_0x2cf339});if(!_0xf00c24)return!0x1;let _0x36900c=_0x38b936['get'](Q)['getShapeModel'](_0x32d7a7,_0x416d4b,_0x2cf339);if(!_0x36900c)return!0x1;let _0x4a765b=_0x38b936[_0x5831e5(0x1be)](_0x24f238),_0x4970aa=_0x38b936[_0x5831e5(0x1be)](_0x4378ee),_0xb2057e=_0x38b936[_0x5831e5(0x1be)](_0x366df6),_0x3f0110={..._0xf00c24[_0x5831e5(0x172)]};_0x5abf01!==void 0x0&&(_0x3f0110['angle']=(_0x3f0110['angle']||0x0)+_0x5abf01);let _0x1f4643=_0x5eb23d(_0x3f0110,_0x34bc8c),_0x3656a7=_0xe703e5(_0x3f0110,_0x34bc8c),_0x51a0c4=_0x36900c[_0x5831e5(0x198)](),_0x4e9970=_0x36900c[_0x5831e5(0x21e)](),_0x2fe964={'unitId':_0x32d7a7,'subUnitId':_0x416d4b,'drawingId':_0x2cf339,'drawingType':_0x258cc4['DRAWING_SHAPE'],'sheetTransform':_0x1f4643,'transform':_0x3f0110,'data':{'shapeType':_0x51a0c4,'shapeData':_0x4e9970},'axisAlignSheetTransform':_0x3656a7,'allowTransform':!0x0},{undo:_0x55e518,redo:_0x468d31,objects:_0x2472d7}=_0x310b7c[_0x5831e5(0x18d)]([_0x2fe964]),_0xc82467=_0xb2057e[_0x5831e5(0x185)]({'id':_0x15dfd3['id'],'params':{'unitId':_0x32d7a7,'drawings':[_0x2fe964]}}),_0x37f302=[...(_0x14add1=_0xc82467[_0x5831e5(0x1cf)])==null?[]:_0x14add1,{'id':_0x551a9d['id'],'params':{'unitId':_0x32d7a7,'subUnitId':_0x416d4b,'op':_0x468d31,'objects':_0x2472d7,'type':_0x4f2c4e[_0x5831e5(0x194)]}},{'id':_0x395547['id'],'params':[_0x32d7a7]},..._0xc82467[_0x5831e5(0x1d5)]],_0xc7d1ee=[...(_0xcad101=_0xc82467[_0x5831e5(0x153)])==null?[]:_0xcad101,{'id':_0x551a9d['id'],'params':{'unitId':_0x32d7a7,'subUnitId':_0x416d4b,'op':_0x55e518,'objects':_0x2472d7,'type':_0x4f2c4e[_0x5831e5(0x194)]}},{'id':_0x395547['id'],'params':[_0x32d7a7]},..._0xc82467[_0x5831e5(0x1bb)]];return _0xfd50fc(_0x37f302,_0x4a765b)[_0x5831e5(0x1f3)]?(_0x4970aa[_0x5831e5(0x1eb)]({'unitID':_0x32d7a7,'undoMutations':_0xc7d1ee,'redoMutations':_0x37f302}),!0x0):!0x1;}},he={'type':_0x18160b[_0xab0703(0x187)],'id':_0xab0703(0x205),'handler':(_0x16b099,_0x151fc4)=>{const _0xe5f0bd=_0xab0703;var _0x1e2ca4;let _0x8497df=_0x488b55(_0x16b099['get'](_0x2eeaa3),_0x151fc4);if(!_0x8497df)return!0x1;let {unitId:_0x2156db,subUnitId:_0x540576}=_0x8497df,{shapeId:_0x376400}=_0x151fc4,_0x15dcff=_0x16b099[_0xe5f0bd(0x1be)](Q)['getShapeModel'](_0x2156db,_0x540576,_0x376400);if(!_0x15dcff)return!0x1;let _0x48e87a=_0x15dcff[_0xe5f0bd(0x1de)](),_0x42c794=(_0x1e2ca4=_0x48e87a==null?void 0x0:_0x48e87a['isHorizontal'])==null||_0x1e2ca4,_0x1db553=!_0x42c794,_0x219c7c=_0x16b099[_0xe5f0bd(0x1be)](_0x24f238),_0x1fef8d=_0x16b099[_0xe5f0bd(0x1be)](_0x4378ee),_0x230300={'unitId':_0x2156db,'subUnitId':_0x540576,'shapeId':_0x376400,'shapeData':{'shapeText':{'isHorizontal':_0x1db553}}},_0xe7701b={'unitId':_0x2156db,'subUnitId':_0x540576,'shapeId':_0x376400,'shapeData':{'shapeText':{'isHorizontal':_0x42c794}}},_0x45e99f=[{'id':$['id'],'params':_0x230300}],_0x388f42=[{'id':$['id'],'params':_0xe7701b}];return _0xfd50fc(_0x45e99f,_0x219c7c)[_0xe5f0bd(0x1f3)]?(_0x1fef8d[_0xe5f0bd(0x1eb)]({'unitID':_0x2156db,'undoMutations':_0x388f42,'redoMutations':_0x45e99f}),!0x0):!0x1;}},ge={'type':_0x18160b['COMMAND'],'id':_0xab0703(0x18f),'handler':(_0x244b72,_0xd73ec2)=>{const _0x1c4b09=_0xab0703;var _0x249a40,_0x56ee7f,_0x1e942e,_0x3ffeee;let _0x3b0a7f=_0x488b55(_0x244b72[_0x1c4b09(0x1be)](_0x2eeaa3),_0xd73ec2);if(!_0x3b0a7f)return!0x1;let _0x5e15d7=_0x244b72[_0x1c4b09(0x1be)](_0x4f3885),{unitId:_0x39e977,subUnitId:_0x3dae05}=_0x3b0a7f,_0x48660a=_0x5e15d7[_0x1c4b09(0x17c)](_0x39e977,_0x3dae05);if(!_0x48660a)return!0x1;let _0x116c58=_0x244b72[_0x1c4b09(0x1be)](_0x351531),{connectorShapeId:_0x4d898b,width:_0x278b7f,height:_0x2f77b0,left:_0x4914a7,top:_0x1ce27b,flipX:_0x5382ab,flipY:_0x51a13b,rotation:_0x53bc5,oldAdjustValues:_0x87780e,newAdjustValues:_0x47599a,oldLineType:_0x52ae91,newLineType:_0x3d866b,oldRelation:_0x5b37e0,newRelation:_0xe80af1}=_0xd73ec2,_0x2da643=_0x116c58['getDrawingByParam']({'unitId':_0x39e977,'subUnitId':_0x3dae05,'drawingId':_0x4d898b});if(!_0x2da643)return!0x1;let _0x217f5d=_0x244b72[_0x1c4b09(0x1be)](Q)[_0x1c4b09(0x1e9)](_0x39e977,_0x3dae05,_0x4d898b);if(!_0x217f5d)return!0x1;let _0x5a783f=_0x244b72[_0x1c4b09(0x1be)](_0x24f238),_0x484936=_0x244b72[_0x1c4b09(0x1be)](_0x4378ee),_0x337d9b=_0x244b72['get'](_0x366df6),_0x348131={..._0x2da643[_0x1c4b09(0x172)],'width':_0x278b7f,'height':_0x2f77b0,'left':_0x4914a7,'top':_0x1ce27b,'flipX':_0x5382ab,'flipY':_0x51a13b,'angle':(_0x249a40=_0x53bc5==null?(_0x56ee7f=_0x2da643[_0x1c4b09(0x172)])==null?void 0x0:_0x56ee7f['angle']:_0x53bc5)==null?0x0:_0x249a40},_0x5b6100=_0x5eb23d(_0x348131,_0x48660a),_0xffdc3c=_0xe703e5(_0x348131,_0x48660a),_0x482e59=_0x217f5d[_0x1c4b09(0x198)](),_0xec011b=_0x217f5d[_0x1c4b09(0x21e)](),_0x124f00={'unitId':_0x39e977,'subUnitId':_0x3dae05,'drawingId':_0x4d898b,'drawingType':_0x258cc4['DRAWING_SHAPE'],'sheetTransform':_0x5b6100,'transform':_0x348131,'data':{'shapeType':_0x3d866b||_0x52ae91||_0x482e59,'shapeData':{..._0xec011b,'adjustValues':_0x47599a||_0x87780e||(_0xec011b==null?void 0x0:_0xec011b[_0x1c4b09(0x189)]),'relation':_0xe80af1||_0x5b37e0||(_0xec011b==null?void 0x0:_0xec011b[_0x1c4b09(0x1a3)])}},'axisAlignSheetTransform':_0xffdc3c,'allowTransform':!0x0},{undo:_0x520a84,redo:_0x42444a,objects:_0x1b0fbf}=_0x116c58['getBatchUpdateOp']([_0x124f00]),_0x369236=_0x337d9b[_0x1c4b09(0x185)]({'id':_0x15dfd3['id'],'params':{'unitId':_0x39e977,'drawings':[_0x124f00]}}),_0x5c1df7=[...(_0x1e942e=_0x369236[_0x1c4b09(0x1cf)])==null?[]:_0x1e942e,{'id':_0x551a9d['id'],'params':{'unitId':_0x39e977,'subUnitId':_0x3dae05,'op':_0x42444a,'objects':_0x1b0fbf,'type':_0x4f2c4e[_0x1c4b09(0x194)]}},{'id':_0x395547['id'],'params':[_0x39e977]},..._0x369236[_0x1c4b09(0x1d5)],{'id':$['id'],'params':{'unitId':_0x39e977,'subUnitId':_0x3dae05,'shapeId':_0x4d898b,'shapeType':_0x3d866b,'shapeData':{'adjustValues':_0x47599a,'relation':_0xe80af1}}}],_0x217ff8=[...(_0x3ffeee=_0x369236['preUndos'])==null?[]:_0x3ffeee,{'id':_0x551a9d['id'],'params':{'unitId':_0x39e977,'subUnitId':_0x3dae05,'op':_0x520a84,'objects':_0x1b0fbf,'type':_0x4f2c4e[_0x1c4b09(0x194)]}},{'id':_0x395547['id'],'params':[_0x39e977]},..._0x369236[_0x1c4b09(0x1bb)],{'id':$['id'],'params':{'unitId':_0x39e977,'subUnitId':_0x3dae05,'shapeId':_0x4d898b,'shapeType':_0x482e59,'shapeData':{..._0xec011b,'adjustValues':_0x87780e||(_0xec011b==null?void 0x0:_0xec011b['adjustValues']),'relation':_0x5b37e0||(_0xec011b==null?void 0x0:_0xec011b[_0x1c4b09(0x1a3)])}}}];return _0xfd50fc(_0x5c1df7,_0x5a783f)[_0x1c4b09(0x1f3)]?(_0x484936[_0x1c4b09(0x1eb)]({'unitID':_0x39e977,'undoMutations':_0x217ff8,'redoMutations':_0x5c1df7}),!0x0):!0x1;}},_e={'type':_0x18160b[_0xab0703(0x187)],'id':'sheet.command.update-line-shape-resize','handler':(_0x42f934,_0x577679)=>{const _0x1703ff=_0xab0703;var _0x498ead,_0x556d69;let _0x917ba6=_0x488b55(_0x42f934[_0x1703ff(0x1be)](_0x2eeaa3),_0x577679);if(!_0x917ba6)return!0x1;let _0x263df0=_0x42f934['get'](_0x4f3885),{unitId:_0x5eb9c5,subUnitId:_0x35b3f5}=_0x917ba6,_0x10c5f4=_0x263df0['getSkeleton'](_0x5eb9c5,_0x35b3f5);if(!_0x10c5f4)return!0x1;let _0x5973fa=_0x42f934[_0x1703ff(0x1be)](_0x351531),{shapeId:_0x4eb453,width:_0x32cb0e,height:_0x4ab8c1,left:_0x2d1104,top:_0x4f4f30,flipX:_0x3e2a4c,flipY:_0xb8f894,angle:_0x2b9ec5,oldAdjustValues:_0x286250,newAdjustValues:_0x2c61a8,oldLineType:_0x376a74,newLineType:_0xb770d5}=_0x577679,_0x493b61=_0x5973fa[_0x1703ff(0x1c4)]({'unitId':_0x5eb9c5,'subUnitId':_0x35b3f5,'drawingId':_0x4eb453});if(!_0x493b61)return!0x1;let _0x2d5de2=_0x42f934[_0x1703ff(0x1be)](Q)[_0x1703ff(0x1e9)](_0x5eb9c5,_0x35b3f5,_0x4eb453);if(!_0x2d5de2)return!0x1;let _0x4f52b8=_0x42f934[_0x1703ff(0x1be)](_0x24f238),_0x2a12ba=_0x42f934['get'](_0x4378ee),_0x390e38=_0x42f934[_0x1703ff(0x1be)](_0x366df6),_0x2aff1b={..._0x493b61['transform'],'width':_0x32cb0e,'height':_0x4ab8c1,'left':_0x2d1104,'top':_0x4f4f30,'flipX':_0x3e2a4c,'flipY':_0xb8f894,'angle':_0x2b9ec5},_0x4e6a23=_0x5eb23d(_0x2aff1b,_0x10c5f4),_0x32eb51=_0xe703e5(_0x2aff1b,_0x10c5f4),_0x546b26=_0x2d5de2[_0x1703ff(0x198)](),_0x40bfcd=_0x2d5de2['getShapeData'](),_0x2387bc={'unitId':_0x5eb9c5,'subUnitId':_0x35b3f5,'drawingId':_0x4eb453,'drawingType':_0x258cc4['DRAWING_SHAPE'],'sheetTransform':_0x4e6a23,'transform':_0x2aff1b,'data':{'shapeType':_0xb770d5||_0x376a74||_0x546b26,'shapeData':{..._0x40bfcd,'adjustValues':_0x2c61a8||_0x286250||(_0x40bfcd==null?void 0x0:_0x40bfcd['adjustValues'])}},'axisAlignSheetTransform':_0x32eb51,'allowTransform':!0x0},{undo:_0xe05cc2,redo:_0x599c38,objects:_0x583c87}=_0x5973fa[_0x1703ff(0x18d)]([_0x2387bc]),_0x1b38b7=_0x390e38[_0x1703ff(0x185)]({'id':_0x15dfd3['id'],'params':{'unitId':_0x5eb9c5,'drawings':[_0x2387bc]}}),_0x55a87c=[...(_0x498ead=_0x1b38b7[_0x1703ff(0x1cf)])==null?[]:_0x498ead,{'id':_0x551a9d['id'],'params':{'unitId':_0x5eb9c5,'subUnitId':_0x35b3f5,'op':_0x599c38,'objects':_0x583c87,'type':_0x4f2c4e[_0x1703ff(0x194)]}},{'id':_0x395547['id'],'params':[_0x5eb9c5]},..._0x1b38b7[_0x1703ff(0x1d5)],{'id':$['id'],'params':{'unitId':_0x5eb9c5,'subUnitId':_0x35b3f5,'shapeId':_0x4eb453,'shapeType':_0xb770d5,'shapeData':{'adjustValues':_0x2c61a8}}}],_0x215c90=[...(_0x556d69=_0x1b38b7[_0x1703ff(0x153)])==null?[]:_0x556d69,{'id':_0x551a9d['id'],'params':{'unitId':_0x5eb9c5,'subUnitId':_0x35b3f5,'op':_0xe05cc2,'objects':_0x583c87,'type':_0x4f2c4e[_0x1703ff(0x194)]}},{'id':_0x395547['id'],'params':[_0x5eb9c5]},..._0x1b38b7['undos'],{'id':$['id'],'params':{'unitId':_0x5eb9c5,'subUnitId':_0x35b3f5,'shapeId':_0x4eb453,'shapeType':_0x546b26,'shapeData':{..._0x40bfcd,'adjustValues':_0x286250||(_0x40bfcd==null?void 0x0:_0x40bfcd[_0x1703ff(0x189)])}}}];return _0xfd50fc(_0x55a87c,_0x4f52b8)['result']?(_0x2a12ba['pushUndoRedo']({'unitID':_0x5eb9c5,'undoMutations':_0x215c90,'redoMutations':_0x55a87c}),!0x0):!0x1;}},ve={'id':'sheet.mutation.update-shape-type','type':_0x18160b['MUTATION'],'handler':(_0x22d412,_0xb0f583)=>{const _0x11cffc=_0xab0703;let {unitId:_0x7adf0d,subUnitId:_0x55186a,shapeType:_0x42522f,shapeId:_0x3162ea,shapeData:_0x56ad08}=_0xb0f583,_0x4e1be1=_0x22d412[_0x11cffc(0x1be)](Q)[_0x11cffc(0x1e9)](_0x7adf0d,_0x55186a,_0x3162ea);return _0x4e1be1&&(_0x4e1be1['setShapeType'](_0x42522f),_0x56ad08&&(_0x4e1be1==null||_0x4e1be1[_0x11cffc(0x19e)](_0x56ad08))),!0x0;}};var ye=_0xab0703(0x170),be=_0xab0703(0x1e0);function xe(_0x4a929b){const _0xa4318e=_0xab0703;var _0xb57a28,_0x997941,_0xf2d9e7,_0x23fb92,_0xe5398b,_0x5bb410,_0x2f3b6c,_0xa62245,_0x596b39,_0x1b56dc,_0x1c7b34,_0x2c07c3,_0x36e989,_0x292db5;return{'left':(_0xb57a28=(_0x997941=_0x4a929b[_0xa4318e(0x172)])==null?void 0x0:_0x997941[_0xa4318e(0x1c5)])==null?0x0:_0xb57a28,'top':(_0xf2d9e7=(_0x23fb92=_0x4a929b[_0xa4318e(0x172)])==null?void 0x0:_0x23fb92[_0xa4318e(0x204)])==null?0x0:_0xf2d9e7,'width':(_0xe5398b=(_0x5bb410=_0x4a929b[_0xa4318e(0x172)])==null?void 0x0:_0x5bb410[_0xa4318e(0x200)])==null?0xc8:_0xe5398b,'height':(_0x2f3b6c=(_0xa62245=_0x4a929b[_0xa4318e(0x172)])==null?void 0x0:_0xa62245[_0xa4318e(0x1a4)])==null?0xc8:_0x2f3b6c,'rotation':(_0x596b39=(_0x1b56dc=_0x4a929b['transform'])==null?void 0x0:_0x1b56dc['rotation'])==null?0x0:_0x596b39,'flipX':(_0x1c7b34=(_0x2c07c3=_0x4a929b[_0xa4318e(0x172)])==null?void 0x0:_0x2c07c3[_0xa4318e(0x1f0)])!=null&&_0x1c7b34,'flipY':(_0x36e989=(_0x292db5=_0x4a929b[_0xa4318e(0x172)])==null?void 0x0:_0x292db5['flipY'])!=null&&_0x36e989};}let Se=class{constructor(_0x57b01e,_0x4f6891,_0xa6b92d,_0x55f894){const _0x57c205=_0xab0703;this['_commandService']=_0x57b01e,this['_shapeService']=_0x4f6891,this[_0x57c205(0x214)]=_0xa6b92d,this[_0x57c205(0x1d9)]=_0x55f894,X(this,_0x57c205(0x211),_0x7970aa[_0x57c205(0x1ea)]);}get[_0xab0703(0x20a)](){return{'subscribe':_0x3879b6=>{const _0x185f3d=_0x16e7;let _0x40e355=this[_0x185f3d(0x1e4)][_0x185f3d(0x1d4)](_0x466d7=>{const _0x2a45c8=_0x185f3d;(_0x466d7['id']===le['id']||_0x466d7['id']===ue['id']||_0x466d7['id']===$['id']||_0x466d7['id']===ve['id'])&&_0x3879b6({'unitId':_0x466d7['params'][_0x2a45c8(0x1c2)]});});return{'unsubscribe':()=>_0x40e355[_0x185f3d(0x1b9)]()};}};}['getShape'](_0x310855){const _0x5b57ca=_0xab0703;var _0x3512b9,_0x30ad81,_0x4dd290,_0x102d24,_0x586ebe,_0x3ef370,_0x41f807,_0x55afb5,_0x467d96;let _0x395999=(_0x3512b9=this['_drawingService'][_0x5b57ca(0x158)](_0x310855[_0x5b57ca(0x1c2)],_0x310855['subUnitId']))==null?void 0x0:_0x3512b9[_0x310855[_0x5b57ca(0x168)]],_0x368534=this[_0x5b57ca(0x1f9)][_0x5b57ca(0x198)](_0x310855[_0x5b57ca(0x1c2)],_0x310855['subUnitId'],_0x310855[_0x5b57ca(0x168)]);if(!_0x395999||_0x395999[_0x5b57ca(0x1e7)]!==_0x258cc4[_0x5b57ca(0x163)]||!_0x368534)return null;let _0x31e9c9=_0x395999[_0x5b57ca(0x172)];return{..._0x310855,'shapeType':_0x368534,'shapeData':_0x30a3e1[_0x5b57ca(0x166)]((_0x30ad81=this['_shapeService'][_0x5b57ca(0x1b3)](_0x310855[_0x5b57ca(0x1c2)],_0x310855[_0x5b57ca(0x206)],_0x310855[_0x5b57ca(0x168)]))==null?{}:_0x30ad81),'name':_0x395999[_0x5b57ca(0x1d8)],'description':_0x395999[_0x5b57ca(0x1b2)],'visible':_0x395999['hidden']!==!0x0,'selectable':_0x395999[_0x5b57ca(0x1e3)]!==!0x1,'transform':{'left':(_0x4dd290=_0x31e9c9==null?void 0x0:_0x31e9c9[_0x5b57ca(0x1c5)])==null?0x0:_0x4dd290,'top':(_0x102d24=_0x31e9c9==null?void 0x0:_0x31e9c9['top'])==null?0x0:_0x102d24,'width':(_0x586ebe=_0x31e9c9==null?void 0x0:_0x31e9c9[_0x5b57ca(0x200)])==null?0xc8:_0x586ebe,'height':(_0x3ef370=_0x31e9c9==null?void 0x0:_0x31e9c9[_0x5b57ca(0x1a4)])==null?0xc8:_0x3ef370,'rotation':(_0x41f807=_0x31e9c9==null?void 0x0:_0x31e9c9[_0x5b57ca(0x197)])==null?0x0:_0x41f807,'flipX':(_0x55afb5=_0x31e9c9==null?void 0x0:_0x31e9c9[_0x5b57ca(0x1f0)])!=null&&_0x55afb5,'flipY':(_0x467d96=_0x31e9c9==null?void 0x0:_0x31e9c9[_0x5b57ca(0x20e)])!=null&&_0x467d96}};}[_0xab0703(0x208)](_0xfa1f9f){const _0x1771fa=_0xab0703;var _0x1fb463;let _0x1de22c=(_0x1fb463=this[_0x1771fa(0x214)][_0x1771fa(0x158)](_0xfa1f9f[_0x1771fa(0x1c2)],_0xfa1f9f[_0x1771fa(0x206)]))==null?{}:_0x1fb463;return Object[_0x1771fa(0x18c)](_0x1de22c)[_0x1771fa(0x1fc)](_0xee4767=>(_0xee4767==null?void 0x0:_0xee4767[_0x1771fa(0x1e7)])===_0x258cc4[_0x1771fa(0x163)])[_0x1771fa(0x160)](_0x3bd6d1=>this[_0x1771fa(0x1e5)]({..._0xfa1f9f,'shapeId':_0x3bd6d1[_0x1771fa(0x165)]}))[_0x1771fa(0x1fc)](_0x5ae304=>!!_0x5ae304);}['listShapesInUnit'](_0x446be4){const _0x2ba79d=_0xab0703;var _0x40ad3a;let _0x59c723=this['_instanceService'][_0x2ba79d(0x1b0)](_0x446be4,_0x7970aa[_0x2ba79d(0x1ea)]);return(_0x40ad3a=_0x59c723==null?void 0x0:_0x59c723['getSheets']()[_0x2ba79d(0x1ce)](_0x33058e=>this[_0x2ba79d(0x208)]({'hostType':this[_0x2ba79d(0x211)],'unitId':_0x446be4,'subUnitId':_0x33058e[_0x2ba79d(0x15f)]()})))==null?[]:_0x40ad3a;}[_0xab0703(0x21c)](_0x1d0c89,_0x5532f0){const _0x69e84a=_0xab0703;var _0x3b42c3,_0x415125,_0x3150d2,_0x2f5bee,_0x208226;let _0x1526cf=_0x314874(),_0x59856e=xe(_0x5532f0);return this[_0x69e84a(0x1e4)][_0x69e84a(0x1d1)](de['id'],{'unitId':_0x1d0c89[_0x69e84a(0x1c2)],'subUnitId':_0x1d0c89['subUnitId'],'shapeId':_0x1526cf,'shapeType':_0x5532f0['shapeType'],'shapeData':_0x5532f0[_0x69e84a(0x1f5)],'name':_0x5532f0[_0x69e84a(0x1d8)],'description':_0x5532f0[_0x69e84a(0x1b2)],'position':{'x':_0x59856e[_0x69e84a(0x1c5)],'y':_0x59856e[_0x69e84a(0x204)]},'width':_0x59856e[_0x69e84a(0x200)],'height':_0x59856e[_0x69e84a(0x1a4)],'rotation':_0x59856e[_0x69e84a(0x1ee)],'flipX':_0x59856e['flipX'],'flipY':_0x59856e['flipY'],'visible':(_0x3b42c3=_0x5532f0[_0x69e84a(0x1a1)])==null||_0x3b42c3,'selectable':(_0x415125=_0x5532f0[_0x69e84a(0x1e3)])==null||_0x415125})?{..._0x1d0c89,'shapeId':_0x1526cf,'shapeType':_0x5532f0[_0x69e84a(0x1cc)],'shapeData':_0x30a3e1[_0x69e84a(0x166)]((_0x3150d2=_0x5532f0[_0x69e84a(0x1f5)])==null?{}:_0x3150d2),'name':_0x5532f0[_0x69e84a(0x1d8)],'description':_0x5532f0[_0x69e84a(0x1b2)],'visible':(_0x2f5bee=_0x5532f0['visible'])==null||_0x2f5bee,'selectable':(_0x208226=_0x5532f0['selectable'])==null||_0x208226,'transform':_0x59856e}:null;}[_0xab0703(0x1ed)](_0x3b4e31,_0x16a524){const _0x1c0466=_0xab0703;var _0x244ebb,_0x42a10e,_0x35ec65,_0x5f4092,_0x3e633a,_0x5a220c;let _0x4e6d7c=this[_0x1c0466(0x1e5)](_0x3b4e31);if(!_0x4e6d7c)return!0x1;let _0x3b348a={..._0x4e6d7c[_0x1c0466(0x172)],..._0x16a524['transform']};return this[_0x1c0466(0x1e4)][_0x1c0466(0x1d1)](fe['id'],{'unitId':_0x3b4e31[_0x1c0466(0x1c2)],'subUnitId':_0x3b4e31['subUnitId'],'shapeId':_0x3b4e31[_0x1c0466(0x168)],'shapeType':(_0x244ebb=(_0x42a10e=_0x16a524['shapeType'])==null?(_0x35ec65=_0x16a524[_0x1c0466(0x1f5)])==null?void 0x0:_0x35ec65[_0x1c0466(0x1cc)]:_0x42a10e)==null?_0x4e6d7c['shapeType']:_0x244ebb,'shapeData':(_0x5f4092=_0x16a524['shapeData'])==null?_0x4e6d7c[_0x1c0466(0x1f5)]:_0x5f4092,'position':{'x':_0x3b348a[_0x1c0466(0x1c5)],'y':_0x3b348a[_0x1c0466(0x204)]},'width':_0x3b348a[_0x1c0466(0x200)],'height':_0x3b348a[_0x1c0466(0x1a4)],'rotation':_0x3b348a[_0x1c0466(0x1ee)],'flipX':_0x3b348a[_0x1c0466(0x1f0)],'flipY':_0x3b348a[_0x1c0466(0x20e)],'name':'name'in _0x16a524?_0x16a524[_0x1c0466(0x1d8)]:_0x4e6d7c[_0x1c0466(0x1d8)],'description':'description'in _0x16a524?_0x16a524[_0x1c0466(0x1b2)]:_0x4e6d7c[_0x1c0466(0x1b2)],'visible':(_0x3e633a=_0x16a524[_0x1c0466(0x1a1)])==null?_0x4e6d7c[_0x1c0466(0x1a1)]:_0x3e633a,'selectable':(_0x5a220c=_0x16a524[_0x1c0466(0x1e3)])==null?_0x4e6d7c[_0x1c0466(0x1e3)]:_0x5a220c});}[_0xab0703(0x151)](_0x37cb1f,_0x242d11,_0x9b9c73){const _0x3b8f67=_0xab0703;let _0x524a85=this[_0x3b8f67(0x1e5)](_0x37cb1f),_0x5a010f=_0x524a85==null?void 0x0:_0x524a85[_0x3b8f67(0x1f5)][_0x3b8f67(0x1a6)];return!_0x524a85||!_0x5a010f?null:{'id':$['id'],'params':{'unitId':_0x37cb1f[_0x3b8f67(0x1c2)],'subUnitId':_0x37cb1f[_0x3b8f67(0x206)],'shapeId':_0x37cb1f[_0x3b8f67(0x168)],'shapeData':{..._0x524a85[_0x3b8f67(0x1f5)],'formulaBinding':{..._0x5a010f,'lastValue':_0x30a3e1[_0x3b8f67(0x166)](_0x9b9c73)}},'replace':!0x0,'formulaLastValueGuard':_0x242d11}};}[_0xab0703(0x217)](_0x256678){const _0x318234=_0xab0703;return this['_commandService']['syncExecuteCommand'](_0x47b923['id'],{'unitId':_0x256678[_0x318234(0x1c2)],'drawings':[{'unitId':_0x256678['unitId'],'subUnitId':_0x256678[_0x318234(0x206)],'drawingId':_0x256678[_0x318234(0x168)],'drawingType':_0x258cc4[_0x318234(0x163)]}]});}[_0xab0703(0x180)](_0x427cf4){const _0x3eba5b=_0xab0703;return this[_0x3eba5b(0x1c1)](_0x427cf4,_0x716b69[_0x3eba5b(0x1fb)]);}[_0xab0703(0x1b1)](_0x2261ee){const _0x5b37ba=_0xab0703;return this['_arrange'](_0x2261ee,_0x716b69[_0x5b37ba(0x20b)]);}['sendBackward'](_0x2a004e){const _0x163d3d=_0xab0703;return this[_0x163d3d(0x1c1)](_0x2a004e,_0x716b69[_0x163d3d(0x16f)]);}[_0xab0703(0x1a7)](_0xe4f86a){const _0x3e0e85=_0xab0703;return this['_arrange'](_0xe4f86a,_0x716b69[_0x3e0e85(0x202)]);}['_arrange'](_0xa7ea72,_0x5ab98a){const _0x1c3a61=_0xab0703;return this[_0x1c3a61(0x1e4)][_0x1c3a61(0x1d1)](_0x498f41['id'],{'unitId':_0xa7ea72[_0x1c3a61(0x1c2)],'subUnitId':_0xa7ea72[_0x1c3a61(0x206)],'drawingIds':[_0xa7ea72['shapeId']],'arrangeType':_0x5ab98a});}};Se=ce([Z(0x0,_0x24f238),Z(0x1,_0x3fe8d2(Q)),Z(0x2,_0x351531),Z(0x3,_0x2eeaa3)],Se);const Ce={};let we=class extends _0x2541f3{constructor(_0x3e94c0,_0x2c0d0c,_0x3f1222,_0x42f90e,_0x547648,_0x2aa742,_0x366232){const _0x3b122c=_0xab0703;super(),this[_0x3b122c(0x1e4)]=_0x3e94c0,this[_0x3b122c(0x1d6)]=_0x2c0d0c,this[_0x3b122c(0x179)]=_0x3f1222,this[_0x3b122c(0x1fe)]=_0x42f90e,this[_0x3b122c(0x1ab)]=_0x547648,this['_shapeHostAdapterRegistry']=_0x2aa742,this[_0x3b122c(0x1d2)](),this[_0x3b122c(0x196)](),this[_0x3b122c(0x20f)](this[_0x3b122c(0x156)]['register'](_0x366232));}['_initCommands'](){const _0x459b28=_0xab0703;[de,fe,pe,me,he,ge,_e,le,ue,ve,$][_0x459b28(0x17e)](_0x1c22b6=>this[_0x459b28(0x20f)](this['_commandService'][_0x459b28(0x1fd)](_0x1c22b6)));}[_0xab0703(0x196)](){const _0x2ed42a=_0xab0703;this[_0x2ed42a(0x20f)](this['_sheetInterceptorService'][_0x2ed42a(0x177)]({'getMutations':_0x1024df=>{const _0x46df0b=_0x2ed42a;if(_0x1024df['id']===_0x47b923['id']){let {drawings:_0x21208b}=_0x1024df[_0x46df0b(0x150)],_0x52407d=_0x21208b['filter'](_0x185052=>_0x185052[_0x46df0b(0x1e7)]===_0x258cc4[_0x46df0b(0x163)]);if(_0x52407d[_0x46df0b(0x21d)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x44de6f=[],_0x3fc346=[];return _0x52407d[_0x46df0b(0x17e)](_0x8bacb8=>{const _0xf4cb4e=_0x46df0b;let {unitId:_0x468d81,subUnitId:_0x3adba9,drawingId:_0x40121a}=_0x8bacb8,_0x168b41=this[_0xf4cb4e(0x1fe)][_0xf4cb4e(0x1e9)](_0x468d81,_0x3adba9,_0x40121a);if(!_0x168b41)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x168b41);_0x44de6f['push']({'id':ue['id'],'params':{'unitId':_0x468d81,'subUnitId':_0x3adba9,'shapeId':_0x40121a}}),_0x3fc346[_0xf4cb4e(0x1e2)]({'id':le['id'],'params':{'unitId':_0x468d81,'subUnitId':_0x3adba9,'shapeId':_0x40121a,'shapeType':_0x168b41[_0xf4cb4e(0x198)](),'shapeData':_0x168b41[_0xf4cb4e(0x21e)]()}});let _0x502db9=this[_0xf4cb4e(0x1fe)][_0xf4cb4e(0x17f)](_0x468d81,_0x3adba9,_0x40121a);if(_0x502db9)for(let _0x58500d of _0x502db9){let _0x54d40e=_0x58500d['lineShapeId'],_0x5e252b=_0x58500d[_0xf4cb4e(0x1f1)],_0x9c96eb=_0x5e252b?{'from':void 0x0}:{'to':void 0x0},_0x264804=_0x5e252b?{'from':{'shapeId':_0x58500d[_0xf4cb4e(0x168)],'cxnIndex':_0x58500d[_0xf4cb4e(0x21f)]}}:{'to':{'shapeId':_0x58500d[_0xf4cb4e(0x168)],'cxnIndex':_0x58500d[_0xf4cb4e(0x21f)]}};_0x44de6f['push']({'id':$['id'],'params':{'unitId':_0x468d81,'subUnitId':_0x3adba9,'shapeId':_0x54d40e,'shapeData':{'relation':_0x9c96eb}}}),_0x3fc346[_0xf4cb4e(0x1e2)]({'id':$['id'],'params':{'unitId':_0x468d81,'subUnitId':_0x3adba9,'shapeId':_0x54d40e,'shapeData':{'relation':_0x264804}}});}}),{'preRedos':_0x44de6f,'redos':[],'preUndos':[],'undos':_0x3fc346};}if(_0x1024df['id']===_0x15dfd3['id']){let {drawings:_0x3c1ebb}=_0x1024df['params'],_0x3436af=_0x3c1ebb['filter'](_0x5d7a78=>_0x5d7a78[_0x46df0b(0x1e7)]===_0x258cc4[_0x46df0b(0x163)]);if(_0x3436af['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xef2ee=[],_0x530ab0=[];for(let _0x2b1127 of _0x3436af){let {unitId:_0x54ff88,subUnitId:_0x2103c9,drawingId:_0x52b51b,transform:_0x40b47a}=_0x2b1127;if(!_0x54ff88||!_0x2103c9||!_0x52b51b||!_0x40b47a)continue;let _0xdd31d5=this['_sheetsShapeService'][_0x46df0b(0x1e9)](_0x54ff88,_0x2103c9,_0x52b51b);if(!_0xdd31d5)throw TypeError(_0x46df0b(0x188)+_0xdd31d5);if(_0x494a20(_0xdd31d5['getShapeType']())){let _0x3c9faa=this['_sheetsShapeService'][_0x46df0b(0x1ff)](_0x54ff88,_0x2103c9,_0x52b51b);_0x3c9faa&&(_0xef2ee[_0x46df0b(0x1e2)]({'id':$['id'],'params':{'unitId':_0x54ff88,'subUnitId':_0x2103c9,'shapeId':_0x52b51b,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x530ab0[_0x46df0b(0x1e2)]({'id':$['id'],'params':{'unitId':_0x54ff88,'subUnitId':_0x2103c9,'shapeId':_0x52b51b,'shapeData':{'relation':_0x3c9faa}}}));}else{let _0x3b3ef8=this['_sheetsShapeService'][_0x46df0b(0x17f)](_0x54ff88,_0x2103c9,_0x52b51b);if(_0x3b3ef8&&_0x3b3ef8[_0x46df0b(0x21d)]>0x0)for(let _0x3bb816 of _0x3b3ef8){let _0x23c97e=_0x3bb816[_0x46df0b(0x14e)],_0x5d22c4=_0x3bb816[_0x46df0b(0x1f1)],_0x1f1f1d=this[_0x46df0b(0x1fe)][_0x46df0b(0x1e9)](_0x54ff88,_0x2103c9,_0x23c97e);if(!_0x1f1f1d)continue;let _0x18d93c=_0x1f1f1d['getStartConnectInfo'](),_0x3cc009=_0x1f1f1d[_0x46df0b(0x1bc)]();_0x18d93c&&_0x3cc009?this[_0x46df0b(0x161)](_0x54ff88,_0x2103c9,_0x23c97e,_0x1f1f1d,_0x18d93c,_0x3cc009,_0xef2ee,_0x530ab0,_0x52b51b,_0x40b47a):this[_0x46df0b(0x167)](_0x54ff88,_0x2103c9,_0x23c97e,_0x1f1f1d,_0x5d22c4?_0x18d93c:_0x3cc009,_0x5d22c4,_0xef2ee,_0x530ab0,_0x52b51b,_0x40b47a);}}}return{'preRedos':[],'redos':_0xef2ee,'preUndos':_0x530ab0,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0xab0703(0x19c)](_0x9795b4,_0x50d97a,_0xdf0bdf,_0x5488c9,_0x5548fa){const _0x4984da=_0xab0703;if(!_0x50d97a||!_0xdf0bdf)return null;let {shapeId:_0x547061,cxnIndex:_0x5a493a}=_0x9795b4,_0x14ed63=this[_0x4984da(0x1fe)]['getShapeModel'](_0x50d97a,_0xdf0bdf,_0x547061);if(!_0x14ed63)return null;let _0x4c3f5d=this[_0x4984da(0x1ab)]['getDrawingByParam']({'unitId':_0x50d97a,'subUnitId':_0xdf0bdf,'drawingId':_0x547061});if(!(_0x4c3f5d!=null&&_0x4c3f5d[_0x4984da(0x172)]))return null;let {left:_0x13f39b=0x0,top:_0x5f1828=0x0,width:_0x14aa02=0x0,height:_0x4b07ce=0x0,flipX:_0x144559=!0x1,flipY:_0x54a55d=!0x1,angle:_0x5ab067}=_0x4c3f5d['transform'];if(_0x5548fa&&_0x5488c9===_0x547061){var _0x30c9d0,_0x1041d3,_0x57538f,_0x2c786c,_0x419433,_0x27ec11,_0x57dd62;_0x13f39b=(_0x30c9d0=_0x5548fa['left'])==null?_0x13f39b:_0x30c9d0,_0x5f1828=(_0x1041d3=_0x5548fa[_0x4984da(0x204)])==null?_0x5f1828:_0x1041d3,_0x14aa02=(_0x57538f=_0x5548fa[_0x4984da(0x200)])==null?_0x14aa02:_0x57538f,_0x4b07ce=(_0x2c786c=_0x5548fa[_0x4984da(0x1a4)])==null?_0x4b07ce:_0x2c786c,_0x144559=(_0x419433=_0x5548fa[_0x4984da(0x1f0)])==null?_0x144559:_0x419433,_0x54a55d=(_0x27ec11=_0x5548fa[_0x4984da(0x20e)])==null?_0x54a55d:_0x27ec11,_0x5ab067=(_0x57dd62=_0x5548fa[_0x4984da(0x197)])==null?_0x5ab067:_0x57dd62;}_0x14ed63[_0x4984da(0x1a9)]({'width':_0x14aa02,'height':_0x4b07ce});let _0x4fae1c=_0x14ed63[_0x4984da(0x15c)]()[_0x4984da(0x1b7)](_0x331464=>_0x331464[_0x4984da(0x184)]===_0x5a493a);if(!_0x4fae1c)return null;let _0x515dba=_0x144559?_0x14aa02-_0x4fae1c['x']:_0x4fae1c['x'],_0x5e6412=_0x54a55d?_0x4b07ce-_0x4fae1c['y']:_0x4fae1c['y'];if(_0x5ab067!==0x0&&_0x5ab067!=null){let _0x2d790b=_0x5ab067*Math['PI']/0xb4,_0x1f0a0d=Math[_0x4984da(0x1dd)](_0x2d790b),_0x5263ae=Math[_0x4984da(0x15e)](_0x2d790b),_0x3e4323=_0x14aa02/0x2,_0x3f8be0=_0x4b07ce/0x2,_0x25dfb1=_0x515dba-_0x3e4323,_0x5792eb=_0x5e6412-_0x3f8be0;_0x515dba=_0x3e4323+_0x25dfb1*_0x1f0a0d-_0x5792eb*_0x5263ae,_0x5e6412=_0x3f8be0+_0x25dfb1*_0x5263ae+_0x5792eb*_0x1f0a0d;}_0x515dba+=_0x13f39b,_0x5e6412+=_0x5f1828;let _0x49a006=_0x4fae1c[_0x4984da(0x1e1)]/0xea60;_0x144559&&(_0x49a006=0xb4-_0x49a006),_0x54a55d&&(_0x49a006=-_0x49a006),_0x49a006+=_0x5ab067||0x0,_0x49a006=(_0x49a006%0x168+0x168)%0x168;let _0x3714b0=_0x392b33({'left':_0x13f39b,'top':_0x5f1828,'width':_0x14aa02,'height':_0x4b07ce},_0x5ab067||0x0);return{'point':{'x':_0x515dba,'y':_0x5e6412},'angle':_0x49a006,'bounds':_0x3714b0};}[_0xab0703(0x161)](_0x178351,_0x211c1a,_0x58c1ab,_0x1a0b05,_0x314f00,_0x4bf85a,_0x1595bc,_0xf9e6d4,_0x3ec634,_0x4c09e1){const _0x2a49d1=_0xab0703;let _0x108411=this[_0x2a49d1(0x179)]['getSkeleton'](_0x178351,_0x211c1a);if(!_0x108411)return;let _0x293179=_0x1a0b05['getShapeRelation'](),_0xccee01=_0x1a0b05[_0x2a49d1(0x155)](),_0x28aa2f={},_0x103317={};_0xccee01['forEach'](_0x3cc2ea=>{const _0x548707=_0x2a49d1;let _0x4274d9=_0x1a0b05[_0x548707(0x1ef)](_0x3cc2ea);_0x103317[_0x3cc2ea]=_0x4274d9==null?0x0:_0x4274d9;});let _0x38c137=this['_getConnectPointInfo'](_0x314f00,_0x178351,_0x211c1a,_0x3ec634,_0x4c09e1),_0x4fd216=this[_0x2a49d1(0x19c)](_0x4bf85a,_0x178351,_0x211c1a,_0x3ec634,_0x4c09e1);if(_0x38c137&&_0x4fd216){let _0x516531=_0x1a0b05['getShapeType'](),_0x24579c=_0x2f3676(_0x38c137,_0x4fd216,_0x516531),_0x1ed4c4=_0x516531;if(_0x24579c){let _0x438a3d=_0x2be7d1(_0x24579c,_0x1a0b05['getShapeType']()),_0x5a1384=this[_0x2a49d1(0x1ab)][_0x2a49d1(0x158)](_0x178351,_0x211c1a);if(_0x5a1384&&_0x5a1384[_0x58c1ab]){let _0x31ec20=_0x5a1384[_0x58c1ab];_0x1ed4c4=_0x438a3d[_0x2a49d1(0x218)];for(let [_0x59fa9c,_0x4f7d32]of Object[_0x2a49d1(0x182)](_0x438a3d[_0x2a49d1(0x189)]))_0x28aa2f[_0x59fa9c]=_0x4f7d32;let _0x3dbdee={..._0x31ec20['transform'],'width':_0x438a3d[_0x2a49d1(0x1b4)]['width'],'height':_0x438a3d[_0x2a49d1(0x1b4)][_0x2a49d1(0x1a4)],'left':_0x438a3d[_0x2a49d1(0x1b4)][_0x2a49d1(0x1c5)],'top':_0x438a3d['worldRect'][_0x2a49d1(0x204)],'flipX':_0x438a3d[_0x2a49d1(0x1b4)][_0x2a49d1(0x1f0)],'flipY':_0x438a3d[_0x2a49d1(0x1b4)]['flipY'],'angle':_0x438a3d['rotation']},_0x1b671a=_0x5eb23d(_0x3dbdee,_0x108411),_0x3f8e29=_0xe703e5(_0x3dbdee,_0x108411),_0x4db3e3={'unitId':_0x178351,'subUnitId':_0x211c1a,'drawingType':_0x258cc4[_0x2a49d1(0x163)],'drawingId':_0x58c1ab,'transform':_0x3dbdee,'sheetTransform':_0x1b671a,'axisAlignSheetTransform':_0x3f8e29},{unitId:_0x35df17,subUnitId:_0x575f36,undo:_0x29ae17,redo:_0xeccb9c,objects:_0x37125d}=this[_0x2a49d1(0x1ab)][_0x2a49d1(0x18d)]([_0x4db3e3]);_0x1595bc[_0x2a49d1(0x1e2)]({'id':_0x551a9d['id'],'params':{'unitId':_0x35df17,'subUnitId':_0x575f36,'op':_0xeccb9c,'objects':_0x37125d,'type':_0x4f2c4e['UPDATE']}}),_0xf9e6d4[_0x2a49d1(0x1e2)]({'id':_0x551a9d['id'],'params':{'unitId':_0x35df17,'subUnitId':_0x575f36,'op':_0x29ae17,'objects':_0x37125d,'type':_0x4f2c4e[_0x2a49d1(0x194)]}});}_0x1a0b05[_0x2a49d1(0x1f2)]();}_0x1595bc[_0x2a49d1(0x1e2)]({'id':$['id'],'params':{'unitId':_0x178351,'subUnitId':_0x211c1a,'shapeId':_0x58c1ab,'shapeType':_0x1ed4c4,'shapeData':{'adjustValues':_0x28aa2f,'relation':_0x293179}}}),_0xf9e6d4['push']({'id':$['id'],'params':{'unitId':_0x178351,'subUnitId':_0x211c1a,'shapeId':_0x58c1ab,'shapeType':_0x516531,'shapeData':{'adjustValues':_0x103317,'relation':_0x293179}}});}}['_addLineFollowShapeUpdates'](_0x4713fa,_0x540ac7,_0x45e7fb,_0x230eb4,_0x3390bc,_0x12eae6,_0x49d6b5,_0x19f230,_0x557dbc,_0x4aadf0){const _0x5a5fe3=_0xab0703;var _0x394623;if(!_0x3390bc)return;let _0x1f4d1d=this[_0x5a5fe3(0x179)][_0x5a5fe3(0x17c)](_0x4713fa,_0x540ac7);if(!_0x1f4d1d)return;let _0x1510a6=(_0x394623=this[_0x5a5fe3(0x1ab)][_0x5a5fe3(0x1c4)]({'unitId':_0x4713fa,'subUnitId':_0x540ac7,'drawingId':_0x557dbc}))==null?void 0x0:_0x394623['transform'];if(!_0x1510a6)return;let _0x10bd13=_0x1510a6[_0x5a5fe3(0x1c5)]!==_0x4aadf0[_0x5a5fe3(0x1c5)]||_0x1510a6[_0x5a5fe3(0x204)]!==_0x4aadf0[_0x5a5fe3(0x204)],_0x4de8fb=_0x1510a6[_0x5a5fe3(0x200)]!==_0x4aadf0[_0x5a5fe3(0x200)]||_0x1510a6[_0x5a5fe3(0x1a4)]!==_0x4aadf0['height'],_0x5b95cb=_0x1510a6[_0x5a5fe3(0x1f0)]!==_0x4aadf0['flipX']||_0x1510a6[_0x5a5fe3(0x20e)]!==_0x4aadf0['flipY'],_0x15f431=_0x1510a6['angle']!==_0x4aadf0[_0x5a5fe3(0x197)];if(_0x10bd13&&!_0x4de8fb&&!_0x5b95cb&&!_0x15f431){var _0x37276c,_0x57bf40,_0x10eb3c,_0x35f7b7;let _0x341d9d=((_0x37276c=_0x4aadf0[_0x5a5fe3(0x1c5)])==null?0x0:_0x37276c)-((_0x57bf40=_0x1510a6[_0x5a5fe3(0x1c5)])==null?0x0:_0x57bf40),_0x2c41f6=((_0x10eb3c=_0x4aadf0['top'])==null?0x0:_0x10eb3c)-((_0x35f7b7=_0x1510a6[_0x5a5fe3(0x204)])==null?0x0:_0x35f7b7),_0x2d07a9=this[_0x5a5fe3(0x1ab)][_0x5a5fe3(0x158)](_0x4713fa,_0x540ac7);if(_0x2d07a9&&_0x2d07a9[_0x45e7fb]){var _0x3debaa,_0x2a4232,_0x104498,_0x16fb2a;let _0x11ebb1=_0x2d07a9[_0x45e7fb],_0x16bd6a={..._0x11ebb1[_0x5a5fe3(0x172)],'left':((_0x3debaa=(_0x2a4232=_0x11ebb1[_0x5a5fe3(0x172)])==null?void 0x0:_0x2a4232['left'])==null?0x0:_0x3debaa)+_0x341d9d,'top':((_0x104498=(_0x16fb2a=_0x11ebb1[_0x5a5fe3(0x172)])==null?void 0x0:_0x16fb2a[_0x5a5fe3(0x204)])==null?0x0:_0x104498)+_0x2c41f6},_0x425abf=_0x5eb23d(_0x16bd6a,_0x1f4d1d),_0x3870fd=_0xe703e5(_0x16bd6a,_0x1f4d1d),_0x5ef360={'unitId':_0x4713fa,'subUnitId':_0x540ac7,'drawingType':_0x258cc4[_0x5a5fe3(0x163)],'drawingId':_0x45e7fb,'transform':_0x16bd6a,'sheetTransform':_0x425abf,'axisAlignSheetTransform':_0x3870fd},{unitId:_0x1dea90,subUnitId:_0x7a9f34,undo:_0x53cd5a,redo:_0x18e931,objects:_0x4ceff0}=this[_0x5a5fe3(0x1ab)][_0x5a5fe3(0x18d)]([_0x5ef360]);_0x49d6b5['push']({'id':_0x551a9d['id'],'params':{'unitId':_0x1dea90,'subUnitId':_0x7a9f34,'op':_0x18e931,'objects':_0x4ceff0,'type':_0x4f2c4e['UPDATE']}}),_0x19f230[_0x5a5fe3(0x1e2)]({'id':_0x551a9d['id'],'params':{'unitId':_0x1dea90,'subUnitId':_0x7a9f34,'op':_0x53cd5a,'objects':_0x4ceff0,'type':_0x4f2c4e['UPDATE']}});}}else{let _0x1e095c=_0x230eb4[_0x5a5fe3(0x1cd)](),_0x4b3401=_0x230eb4[_0x5a5fe3(0x1bc)]();this[_0x5a5fe3(0x161)](_0x4713fa,_0x540ac7,_0x45e7fb,_0x230eb4,_0x1e095c,_0x4b3401,_0x49d6b5,_0x19f230,_0x557dbc,_0x4aadf0);}}};we=ce([Z(0x0,_0x24f238),Z(0x1,_0x3fe8d2(_0x366df6)),Z(0x2,_0x3fe8d2(_0x4f3885)),Z(0x3,_0x3fe8d2(Q)),Z(0x4,_0x3fe8d2(_0x39c068)),Z(0x5,_0x3fe8d2(_0x395530)),Z(0x6,_0x3fe8d2(Se))],we);let Te=class extends _0x2541f3{constructor(_0x105b5d,_0x3568df,_0x15e50f){const _0x15f5e9=_0xab0703;super(),this[_0x15f5e9(0x1f9)]=_0x105b5d,this['_shapeAdapter']=_0x3568df,this[_0x15f5e9(0x20f)](_0x15e50f[_0x15f5e9(0x1df)](this));}['transform'](_0x2a93a8){const _0x432693=_0xab0703;let _0xd24e71={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x432693(0x1d0)](_0x2a93a8,_0xd24e71);for(let [_0x1fb259,_0x2f62b6]of _0x2a93a8[_0x432693(0x181)])this[_0x432693(0x17b)](_0x2a93a8,_0x1fb259,_0x2f62b6,_0xd24e71);return _0xd24e71;}[_0xab0703(0x1d0)](_0x417371,_0x4dcc6f){const _0xec7dd8=_0xab0703;if(_0x417371[_0xec7dd8(0x174)]===_0xec7dd8(0x20d))for(let _0xb4b95c of _0x417371[_0xec7dd8(0x1fa)]){let _0x5de204=_0x417371[_0xec7dd8(0x181)][_0xec7dd8(0x1be)](_0xb4b95c),_0x6c0763=this['_shapeService']['getShapeModel'](_0x417371[_0xec7dd8(0x1c2)],_0x417371[_0xec7dd8(0x206)],_0xb4b95c);(_0x5de204==null?void 0x0:_0x5de204[_0xec7dd8(0x1e7)])!==_0x258cc4[_0xec7dd8(0x163)]||!_0x6c0763||(_0x4dcc6f['preRedos'][_0xec7dd8(0x1e2)]({'id':ue['id'],'params':{'unitId':_0x417371['unitId'],'subUnitId':_0x417371[_0xec7dd8(0x206)],'shapeId':_0xb4b95c}}),_0x4dcc6f['undos'][_0xec7dd8(0x1e2)]({'id':le['id'],'params':{'unitId':_0x417371['unitId'],'subUnitId':_0x417371[_0xec7dd8(0x206)],'shapeId':_0xb4b95c,'shapeName':_0x6c0763['getName'](),'shapeType':_0x6c0763['getShapeType'](),'shapeData':_0x30a3e1['deepClone'](_0x6c0763['getShapeData']())}}));}}[_0xab0703(0x17b)](_0x3d8d68,_0x44fa24,_0x50a2cb,_0x414324){const _0x4bd1f4=_0xab0703;var _0x2ce8ef,_0x208d56,_0x3612d2;if(_0x50a2cb['drawingType']!==_0x258cc4[_0x4bd1f4(0x163)]||_0x3d8d68[_0x4bd1f4(0x1fa)]['has'](_0x44fa24))return;let _0x5267bf=this[_0x4bd1f4(0x1f9)][_0x4bd1f4(0x1e9)](_0x3d8d68[_0x4bd1f4(0x1c2)],_0x3d8d68[_0x4bd1f4(0x206)],_0x44fa24);if(!_0x5267bf||!_0x494a20(_0x5267bf[_0x4bd1f4(0x198)]()))return;let _0x20355f=_0x5267bf[_0x4bd1f4(0x1f6)]();if(!(_0x3d8d68['updates'][_0x4bd1f4(0x175)](_0x44fa24)||_0x20355f!=null&&_0x20355f[_0x4bd1f4(0x1b5)]&&(_0x3d8d68[_0x4bd1f4(0x212)][_0x4bd1f4(0x175)](_0x20355f[_0x4bd1f4(0x1b5)]['shapeId'])||_0x3d8d68['deletes']['has'](_0x20355f['from'][_0x4bd1f4(0x168)]))||_0x20355f!=null&&_0x20355f['to']&&(_0x3d8d68[_0x4bd1f4(0x212)][_0x4bd1f4(0x175)](_0x20355f['to']['shapeId'])||_0x3d8d68[_0x4bd1f4(0x1fa)]['has'](_0x20355f['to'][_0x4bd1f4(0x168)]))))return;let _0x5e151d=(_0x2ce8ef=_0x3d8d68[_0x4bd1f4(0x212)][_0x4bd1f4(0x1be)](_0x44fa24))==null?_0x50a2cb:_0x2ce8ef,_0x333b7a=this[_0x4bd1f4(0x1c7)](_0x3d8d68,_0x5e151d);if(!_0x333b7a)return;let _0x3e56a0=_0x544527(_0x333b7a);if(_0x3e56a0[_0x4bd1f4(0x21d)]<0x2)return;let _0x3e770c=_0x30a3e1[_0x4bd1f4(0x166)](_0x20355f==null?{}:_0x20355f),_0x309651=_0x3e770c[_0x4bd1f4(0x1b5)]&&this[_0x4bd1f4(0x209)](_0x3d8d68,_0x3e770c['from']['shapeId'],_0x3e770c[_0x4bd1f4(0x1b5)][_0x4bd1f4(0x21f)]),_0x932fb=_0x3e770c['to']&&this[_0x4bd1f4(0x209)](_0x3d8d68,_0x3e770c['to'][_0x4bd1f4(0x168)],_0x3e770c['to'][_0x4bd1f4(0x21f)]);_0x3e770c[_0x4bd1f4(0x1b5)]&&!_0x309651&&delete _0x3e770c[_0x4bd1f4(0x1b5)],_0x3e770c['to']&&!_0x932fb&&delete _0x3e770c['to'];let _0x173571=_0x408f1a(_0x333b7a,_0x309651||_0x3ff701((_0x208d56=_0x932fb==null?void 0x0:_0x932fb[_0x4bd1f4(0x17d)])==null?_0x3e56a0['at'](-0x1):_0x208d56,_0x3e56a0[0x0]),_0x932fb||_0x3ff701((_0x3612d2=_0x309651==null?void 0x0:_0x309651[_0x4bd1f4(0x17d)])==null?_0x3e56a0[0x0]:_0x3612d2,_0x3e56a0['at'](-0x1)),_0x3e770c);if(!(!(_0x173571!=null&&_0x173571[_0x4bd1f4(0x172)])||!_0x173571[_0x4bd1f4(0x1cc)]||!_0x173571[_0x4bd1f4(0x1f5)])){if(this[_0x4bd1f4(0x16a)](_0x3d8d68,_0x5e151d,_0x173571),_0x3d8d68[_0x4bd1f4(0x174)]==='refresh'){_0x5267bf[_0x4bd1f4(0x192)](_0x173571['shapeType']),_0x5267bf[_0x4bd1f4(0x19e)](_0x30a3e1[_0x4bd1f4(0x166)](_0x173571[_0x4bd1f4(0x1f5)]),!0x1);return;}_0x414324[_0x4bd1f4(0x1d5)][_0x4bd1f4(0x1e2)]({'id':$['id'],'params':{'unitId':_0x3d8d68[_0x4bd1f4(0x1c2)],'subUnitId':_0x3d8d68[_0x4bd1f4(0x206)],'shapeId':_0x44fa24,'shapeType':_0x173571[_0x4bd1f4(0x1cc)],'shapeData':_0x30a3e1['deepClone'](_0x173571[_0x4bd1f4(0x1f5)]),'replace':!0x0}}),_0x414324[_0x4bd1f4(0x1bb)][_0x4bd1f4(0x1e2)]({'id':$['id'],'params':{'unitId':_0x3d8d68[_0x4bd1f4(0x1c2)],'subUnitId':_0x3d8d68['subUnitId'],'shapeId':_0x44fa24,'shapeType':_0x5267bf[_0x4bd1f4(0x198)](),'shapeData':_0x30a3e1[_0x4bd1f4(0x166)](_0x5267bf[_0x4bd1f4(0x21e)]()),'replace':!0x0}});}}['_resolveBinding'](_0x55fe9f,_0x155a43,_0x3b6026){const _0x5ba58a=_0xab0703;var _0x4a59f3;if(_0x55fe9f[_0x5ba58a(0x1fa)][_0x5ba58a(0x175)](_0x155a43))return null;let _0x3fa736=(_0x4a59f3=_0x55fe9f[_0x5ba58a(0x212)][_0x5ba58a(0x1be)](_0x155a43))==null?_0x55fe9f[_0x5ba58a(0x181)][_0x5ba58a(0x1be)](_0x155a43):_0x4a59f3;if(!_0x3fa736)return null;let _0xac0f25=this[_0x5ba58a(0x1c7)](_0x55fe9f,_0x3fa736);return _0xac0f25?_0x482680(_0xac0f25,_0x3b6026):null;}[_0xab0703(0x1c7)](_0x34e7a9,_0x3d0266){const _0x5aa61f=_0xab0703;var _0x5b7bb9,_0x289edb,_0x1d43e,_0x3d07b2,_0x247ccf,_0xf489e4,_0x209cef;let _0x5ae9bc={'hostType':_0x7970aa[_0x5aa61f(0x1ea)],'unitId':_0x34e7a9['unitId'],'subUnitId':_0x34e7a9[_0x5aa61f(0x206)],'shapeId':_0x3d0266['drawingId']},_0x1aac95=this['_shapeAdapter'][_0x5aa61f(0x1e5)](_0x5ae9bc);return!_0x1aac95||!_0x3d0266[_0x5aa61f(0x172)]?null:{..._0x1aac95,'transform':{'left':(_0x5b7bb9=_0x3d0266[_0x5aa61f(0x172)][_0x5aa61f(0x1c5)])==null?0x0:_0x5b7bb9,'top':(_0x289edb=_0x3d0266[_0x5aa61f(0x172)][_0x5aa61f(0x204)])==null?0x0:_0x289edb,'width':(_0x1d43e=_0x3d0266[_0x5aa61f(0x172)][_0x5aa61f(0x200)])==null?0x0:_0x1d43e,'height':(_0x3d07b2=_0x3d0266[_0x5aa61f(0x172)][_0x5aa61f(0x1a4)])==null?0x0:_0x3d07b2,'rotation':(_0x247ccf=_0x3d0266[_0x5aa61f(0x172)][_0x5aa61f(0x197)])==null?0x0:_0x247ccf,'flipX':(_0xf489e4=_0x3d0266[_0x5aa61f(0x172)][_0x5aa61f(0x1f0)])!=null&&_0xf489e4,'flipY':(_0x209cef=_0x3d0266[_0x5aa61f(0x172)][_0x5aa61f(0x20e)])!=null&&_0x209cef}};}[_0xab0703(0x16a)](_0x29f337,_0x4777b7,_0x588900){const _0xfccffc=_0xab0703;let _0x4e9e33=_0x4777b7,_0x143552={..._0x4777b7[_0xfccffc(0x172)],'left':_0x588900[_0xfccffc(0x172)][_0xfccffc(0x1c5)],'top':_0x588900[_0xfccffc(0x172)][_0xfccffc(0x204)],'width':_0x588900[_0xfccffc(0x172)][_0xfccffc(0x200)],'height':_0x588900[_0xfccffc(0x172)][_0xfccffc(0x1a4)],'angle':_0x588900[_0xfccffc(0x172)][_0xfccffc(0x1ee)],'flipX':_0x588900[_0xfccffc(0x172)][_0xfccffc(0x1f0)],'flipY':_0x588900[_0xfccffc(0x172)]['flipY']},_0x49ef8d={..._0x4e9e33,'transform':_0x143552,'sheetTransform':_0x5eb23d(_0x143552,_0x29f337['skeleton']),'axisAlignSheetTransform':_0xe703e5(_0x143552,_0x29f337['skeleton']),'data':{..._0x4e9e33[_0xfccffc(0x1a0)],'shapeType':_0x588900[_0xfccffc(0x1cc)],'shapeData':_0x30a3e1[_0xfccffc(0x166)](_0x588900[_0xfccffc(0x1f5)])}};_0x29f337['updates'][_0xfccffc(0x215)](_0x4777b7['drawingId'],_0x49ef8d);}};Te=ce([Z(0x0,_0x3fe8d2(Q)),Z(0x1,_0x3fe8d2(Se)),Z(0x2,_0x3fe8d2(_0x44eabe))],Te);let Ee=class extends _0x17dc30{constructor(_0xd68c16=Ce,_0x3acc18,_0x50b573){const _0x50ed2c=_0xab0703;super(),this['_config']=_0xd68c16,this[_0x50ed2c(0x199)]=_0x3acc18,this['_configService']=_0x50b573;let {..._0x2c3aaf}=_0x396304({},Ce,this[_0x50ed2c(0x1a5)]);this[_0x50ed2c(0x207)][_0x50ed2c(0x164)](_0x50ed2c(0x1ae),_0x2c3aaf);}[_0xab0703(0x1c6)](){const _0x4e43ff=_0xab0703;let _0x4e9057=this[_0x4e43ff(0x199)];[[se],[Q],[Se],[Te],[we]][_0x4e43ff(0x17e)](_0x577d62=>_0x4e9057[_0x4e43ff(0x176)](_0x577d62)),_0x77a843(_0x4e9057,[[Q],[Te],[we]]);}};X(Ee,_0xab0703(0x18a),_0x7970aa[_0xab0703(0x1ea)]),X(Ee,'pluginName',_0xab0703(0x1e6)),X(Ee,_0xab0703(0x1dc),ye),X(Ee,_0xab0703(0x1b6),be),Ee=ce([_0x2527f1(_0x39ab58,_0x403e13,_0x23ebde,_0x35fb27,_0x2bfb2a),Z(0x1,_0x3fe8d2(_0x19c189)),Z(0x2,_0x230e63)],Ee);export{J as DEFAULT_SHAPE_HEIGHT,q as DEFAULT_SHAPE_WIDTH,de as InsertShapeCommand,le as InsertSheetsShapeMutation,ue as RemoveSheetsShapeMutation,fe as SetShapeDrawingDataCommand,me as SetSheetsShapeRotateCommand,he as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,pe as ToggleSheetsShapeFlipCommand,Ee as UniverSheetsShapePlugin,ge as UpdateConnectorRelationCommand,_e as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ve as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x318f8d=_0x195e;(function(_0x1e60e5,_0x3d6ab6){const _0x29f840=_0x195e,_0x51c6c5=_0x1e60e5();while(!![]){try{const _0x6fbb19=parseInt(_0x29f840(0x175))/0x1*(parseInt(_0x29f840(0x12e))/0x2)+-parseInt(_0x29f840(0xfd))/0x3+parseInt(_0x29f840(0x16b))/0x4+-parseInt(_0x29f840(0x13d))/0x5*(-parseInt(_0x29f840(0x188))/0x6)+parseInt(_0x29f840(0x11a))/0x7+parseInt(_0x29f840(0xce))/0x8*(parseInt(_0x29f840(0xd9))/0x9)+-parseInt(_0x29f840(0x120))/0xa;if(_0x6fbb19===_0x3d6ab6)break;else _0x51c6c5['push'](_0x51c6c5['shift']());}catch(_0x407c87){_0x51c6c5['push'](_0x51c6c5['shift']());}}}(_0x5222,0x5d034));import{IShapeHostAdapterRegistry as _0x2df937,ShapeModel as _0x2f0946,UniverShapePlugin as _0x2842f2,buildConnectorEndpointUpdate as _0x2ded11,canApplyShapeFormulaLastValue as _0x5ecc62,computeConnectorRouteLayout as _0x2dada7,createFreeConnectorPointInfo as _0x3840a7,createUniqueShapeName as _0x507190,getBasicShapeRotateBound as _0x3b0a2,isConnectorShape as _0x2b34a7,resolveConnectorRoutePoints as _0x3be74b,resolveShapeConnectionPoint as _0x1151d6,routeConnectorLineShape as _0x2cd747}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x44b4ab,CommandType as _0x3ca940,DependentOn as _0x1b7e82,Disposable as _0x130970,DrawingTypeEnum as _0x19746e,ICommandService as _0x284dd9,IConfigService as _0x4d6ad0,IResourceManagerService as _0x47c011,IUndoRedoService as _0x5cea01,IUniverInstanceService as _0x3841c4,Inject as _0xab1f83,Injector as _0x1c83bd,Plugin as _0xb4a149,Tools as _0x3b1473,UniverInstanceType as _0x1d598f,generateRandomId as _0x307e0b,merge as _0xffa337,sequenceExecute as _0x190c41,touchDependencies as _0x45e5ee}from'@univerjs/core';import{SheetInterceptorService as _0x5a1116,SheetSkeletonService as _0x54030d,UniverSheetsPlugin as _0x59c084,getSheetCommandTarget as _0x35b812}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x17646c,DrawingApplyType as _0x140f2f,ISheetDrawingService as _0x410389,InsertSheetDrawingCommand as _0x282f0e,RemoveSheetDrawingCommand as _0x293fe8,SetDrawingApplyMutation as _0x348df4,SetDrawingArrangeCommand as _0x29706e,SetSheetDrawingCommand as _0x3e690f,SheetDrawingAnchorType as _0x4fdfb9,SheetDrawingTransformPlanService as _0x5cc45b,UniverSheetsDrawingPlugin as _0x359a1a,transformToAxisAlignPosition as _0x2fc0e6,transformToDrawingPosition as _0x5ce281}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0xd5e84e}from'@univerjs-pro/license';import{IDrawingManagerService as _0x5f2880,UniverDrawingPlugin as _0x5d2b80}from'@univerjs/drawing';function _0x195e(_0x30514a,_0xc94b92){_0x30514a=_0x30514a-0xc4;const _0x522235=_0x5222();let _0x195ee2=_0x522235[_0x30514a];return _0x195ee2;}const re=0xc8,ie=0xc8;function ae(_0x5a066e){'@babel/helpers - typeof';const _0x310257=_0x195e;return ae=typeof Symbol==_0x310257(0x113)&&typeof Symbol['iterator']==_0x310257(0x170)?function(_0x233169){return typeof _0x233169;}:function(_0x42693a){const _0x4f172b=_0x310257;return _0x42693a&&typeof Symbol==_0x4f172b(0x113)&&_0x42693a[_0x4f172b(0xc9)]===Symbol&&_0x42693a!==Symbol[_0x4f172b(0x15d)]?'symbol':typeof _0x42693a;},ae(_0x5a066e);}function oe(_0x523d6e,_0x2f458d){const _0x5e5da7=_0x195e;if(ae(_0x523d6e)!=_0x5e5da7(0xe2)||!_0x523d6e)return _0x523d6e;var _0x54e5bf=_0x523d6e[Symbol[_0x5e5da7(0x107)]];if(_0x54e5bf!==void 0x0){var _0x4fa76b=_0x54e5bf[_0x5e5da7(0x16d)](_0x523d6e,_0x2f458d||_0x5e5da7(0xd1));if(ae(_0x4fa76b)!='object')return _0x4fa76b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2f458d===_0x5e5da7(0xfc)?String:Number)(_0x523d6e);}function se(_0x5d2a75){const _0x391012=_0x195e;var _0x3bebd0=oe(_0x5d2a75,_0x391012(0xfc));return ae(_0x3bebd0)==_0x391012(0x170)?_0x3bebd0:_0x3bebd0+'';}function Y(_0x2ed47e,_0x10a5de,_0x3d62d2){const _0x316a88=_0x195e;return(_0x10a5de=se(_0x10a5de))in _0x2ed47e?Object[_0x316a88(0xdf)](_0x2ed47e,_0x10a5de,{'value':_0x3d62d2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ed47e[_0x10a5de]=_0x3d62d2,_0x2ed47e;}var ce=class extends _0x130970{constructor(){const _0x595cb3=_0x195e;super(),Y(this,'_shapes',new Map()),Y(this,_0x595cb3(0x134),new Set()),Y(this,'_groupIds',new Set());}[_0x318f8d(0xf0)](_0x1bf994,_0x3110b0,_0x165494,_0xd0c282){const _0x55052e=_0x318f8d;let _0x334775=new _0x2f0946(_0x1bf994,_0x3110b0,_0x165494,_0xd0c282);return this[_0x55052e(0x160)][_0x55052e(0x10f)](_0x3110b0,_0x334775),_0x2b34a7(_0x1bf994)&&this[_0x55052e(0x134)][_0x55052e(0xc7)](_0x3110b0),_0x334775;}[_0x318f8d(0xe9)](_0x3a71d4){const _0xdf0545=_0x318f8d;let _0x5520fc=[];for(let _0x458664 of this[_0xdf0545(0x134)]){let _0x1867fc=this[_0xdf0545(0x160)][_0xdf0545(0xc4)](_0x458664);if(_0x1867fc){let _0x2d938b=_0x1867fc[_0xdf0545(0x150)]();if(_0x2d938b){var _0x2226bd,_0x344898;((_0x2226bd=_0x2d938b[_0xdf0545(0x17d)])==null?void 0x0:_0x2226bd[_0xdf0545(0x12f)])===_0x3a71d4&&_0x5520fc[_0xdf0545(0x13c)]({..._0x2d938b[_0xdf0545(0x17d)],'lineShapeId':_0x458664,'isFrom':!0x0}),((_0x344898=_0x2d938b['to'])==null?void 0x0:_0x344898[_0xdf0545(0x12f)])===_0x3a71d4&&_0x5520fc[_0xdf0545(0x13c)]({..._0x2d938b['to'],'lineShapeId':_0x458664,'isFrom':!0x1});}}}return _0x5520fc;}[_0x318f8d(0x168)](_0x26f85c){const _0x555031=_0x318f8d;let _0x3495c5=this[_0x555031(0x160)][_0x555031(0xc4)](_0x26f85c);if(_0x3495c5)return _0x3495c5[_0x555031(0x150)]();}[_0x318f8d(0x13a)](_0x2524f9){let _0x3bdc46=this['_shapes']['get'](_0x2524f9);if(_0x3bdc46)return _0x3bdc46['getShapeType']();}[_0x318f8d(0x136)](_0x570649){const _0x21fc3e=_0x318f8d;return this[_0x21fc3e(0x160)]['has'](_0x570649);}['getShapeDisplayNames'](){const _0x326892=_0x318f8d;return Array['from'](this[_0x326892(0x160)][_0x326892(0x127)]())[_0x326892(0x164)](_0x4b0ac4=>_0x4b0ac4[_0x326892(0x15c)]()||_0x4b0ac4[_0x326892(0x12c)]());}[_0x318f8d(0xed)](_0x3562d3){const _0x4ce73d=_0x318f8d;let _0x5842a2=this[_0x4ce73d(0x160)][_0x4ce73d(0xc4)](_0x3562d3);_0x5842a2&&(_0x2b34a7(_0x5842a2['getShapeType']())&&this[_0x4ce73d(0x134)][_0x4ce73d(0x149)](_0x3562d3),this[_0x4ce73d(0x160)][_0x4ce73d(0x149)](_0x3562d3));}[_0x318f8d(0x189)](){const _0x2b48ea=_0x318f8d;let _0x14f4c1=[];return this[_0x2b48ea(0x160)]['forEach'](_0x747113=>{const _0x1cf026=_0x2b48ea;_0x14f4c1[_0x1cf026(0x13c)](_0x747113[_0x1cf026(0x189)]());}),_0x14f4c1;}[_0x318f8d(0x133)](_0x569f02){const _0x5dbb61=_0x318f8d;for(let _0x5415f6 of _0x569f02){let {id:_0x402d5d,shapeType:_0x596065,name:_0x30b313}=_0x5415f6,_0x43b7b5=this[_0x5dbb61(0xf0)](_0x596065,_0x402d5d,_0x5415f6[_0x5dbb61(0x153)],_0x30b313);_0x43b7b5&&_0x43b7b5[_0x5dbb61(0x152)]()&&this[_0x5dbb61(0x134)]['add'](_0x402d5d);}}[_0x318f8d(0xfb)](){const _0x54eb71=_0x318f8d;this[_0x54eb71(0x145)]||(this[_0x54eb71(0x160)]['forEach'](_0x3ecd2c=>{const _0x177a4a=_0x54eb71;_0x3ecd2c[_0x177a4a(0xfb)]();}),this['_shapes'][_0x54eb71(0xd2)](),this[_0x54eb71(0x134)][_0x54eb71(0xd2)](),this[_0x54eb71(0x12d)][_0x54eb71(0xd2)](),super[_0x54eb71(0xfb)]());}};function X(_0x1cf58c,_0x4f25ec){return function(_0x487379,_0x4c4640){_0x4f25ec(_0x487379,_0x4c4640,_0x1cf58c);};}function le(_0x1bf641,_0x208283,_0x531e35,_0x5c0133){const _0x533ec1=_0x318f8d;var _0x37b4b8=arguments[_0x533ec1(0xef)],_0x2daa8c=_0x37b4b8<0x3?_0x208283:_0x5c0133===null?_0x5c0133=Object[_0x533ec1(0x14e)](_0x208283,_0x531e35):_0x5c0133,_0x44a039;if(typeof Reflect==_0x533ec1(0xe2)&&typeof Reflect[_0x533ec1(0x16f)]==_0x533ec1(0x113))_0x2daa8c=Reflect[_0x533ec1(0x16f)](_0x1bf641,_0x208283,_0x531e35,_0x5c0133);else{for(var _0x24d597=_0x1bf641[_0x533ec1(0xef)]-0x1;_0x24d597>=0x0;_0x24d597--)(_0x44a039=_0x1bf641[_0x24d597])&&(_0x2daa8c=(_0x37b4b8<0x3?_0x44a039(_0x2daa8c):_0x37b4b8>0x3?_0x44a039(_0x208283,_0x531e35,_0x2daa8c):_0x44a039(_0x208283,_0x531e35))||_0x2daa8c);}return _0x37b4b8>0x3&&_0x2daa8c&&Object[_0x533ec1(0xdf)](_0x208283,_0x531e35,_0x2daa8c),_0x2daa8c;}let Z=class extends _0x130970{constructor(_0x18e4ec){const _0x412c04=_0x318f8d;super(),this[_0x412c04(0x14f)]=_0x18e4ec,Y(this,_0x412c04(0xc8),new Map()),this[_0x412c04(0x158)]();}[_0x318f8d(0xd3)](_0x338cff,_0x17d20a){const _0x5e9235=_0x318f8d;let _0x11cb8f=this[_0x5e9235(0xc8)][_0x5e9235(0xc4)](_0x338cff);_0x11cb8f||(_0x11cb8f=new Map(),this[_0x5e9235(0xc8)]['set'](_0x338cff,_0x11cb8f));let _0x63a517=_0x11cb8f[_0x5e9235(0xc4)](_0x17d20a);return _0x63a517||(_0x63a517=new ce(),_0x11cb8f['set'](_0x17d20a,_0x63a517)),_0x63a517;}[_0x318f8d(0x172)](_0xfc15d,_0x52a2be,_0x2a585a,_0x4b4274,_0x1c883b,_0x6f5ffe){const _0x589bee=_0x318f8d;this[_0x589bee(0xd3)](_0xfc15d,_0x52a2be)[_0x589bee(0xf0)](_0x2a585a,_0x4b4274,_0x1c883b,_0x6f5ffe);}['removeShape'](_0x516474,_0x263fa1,_0x39849e){const _0x306298=_0x318f8d;this[_0x306298(0xd3)](_0x516474,_0x263fa1)[_0x306298(0xed)](_0x39849e);}[_0x318f8d(0x179)](_0x21942e,_0x4a43a6,_0x10c66f){const _0x520d0a=_0x318f8d;return this['_ensureShapeModelManager'](_0x21942e,_0x4a43a6)[_0x520d0a(0x13a)](_0x10c66f);}['getShapeType'](_0x5b6091,_0x4e4183,_0x27e046){const _0x18d7f5=_0x318f8d;return this['_ensureShapeModelManager'](_0x5b6091,_0x4e4183)[_0x18d7f5(0x13a)](_0x27e046);}[_0x318f8d(0x136)](_0x4372b7,_0x4574a2,_0x2d1ba7){const _0x85bab4=_0x318f8d;return this[_0x85bab4(0xd3)](_0x4372b7,_0x4574a2)[_0x85bab4(0x136)](_0x2d1ba7);}[_0x318f8d(0x143)](_0x5f0456,_0x2c61e0,_0x40a993){const _0x259e9c=_0x318f8d;return this['_ensureShapeModelManager'](_0x5f0456,_0x2c61e0)[_0x259e9c(0x13a)](_0x40a993);}[_0x318f8d(0xe3)](_0x448ef7,_0xe669b2,_0x406735){const _0x478605=_0x318f8d;let _0x4c1c55=this[_0x478605(0xd3)](_0x448ef7,_0xe669b2);if(!_0x4c1c55[_0x478605(0x13a)](_0x406735))return;let _0x2829e7=_0x4c1c55[_0x478605(0x160)][_0x478605(0xc4)](_0x406735);if(_0x2829e7)return _0x2829e7['getShapeData']();}[_0x318f8d(0x128)](_0x3cbcfe,_0x22a599){const _0x1f4a4f=_0x318f8d;return this[_0x1f4a4f(0xd3)](_0x3cbcfe,_0x22a599)[_0x1f4a4f(0x128)]();}[_0x318f8d(0x101)](_0x5a8d95,_0x463c06,_0x52c071){const _0x403f47=_0x318f8d;return this['_ensureShapeModelManager'](_0x5a8d95,_0x463c06)[_0x403f47(0x160)][_0x403f47(0xc4)](_0x52c071);}['getBasicShapeRelation'](_0x244522,_0x426343,_0x525730){const _0xa83b01=_0x318f8d;return this[_0xa83b01(0xd3)](_0x244522,_0x426343)[_0xa83b01(0xe9)](_0x525730);}[_0x318f8d(0x168)](_0x24fbd5,_0x3cc43e,_0x437a2e){const _0x1140bb=_0x318f8d;let _0x114062=this[_0x1140bb(0xd3)](_0x24fbd5,_0x3cc43e)[_0x1140bb(0x160)][_0x1140bb(0xc4)](_0x437a2e);if(_0x114062)return _0x114062[_0x1140bb(0x150)]();}[_0x318f8d(0x18b)](){}[_0x318f8d(0x140)](_0xb0151e){const _0x45c471=_0x318f8d;let _0x1f76cd={},_0x299063=this['_shapeModelManagerMap'][_0x45c471(0xc4)](_0xb0151e);return _0x299063&&_0x299063['forEach']((_0xb8189a,_0x39f0fa)=>{const _0x587108=_0x45c471;let _0x484442=_0xb8189a['toJSON']();_0x484442[_0x587108(0xef)]>0x0&&(_0x1f76cd[_0x39f0fa]=_0x484442);}),JSON['stringify'](_0x1f76cd);}['_deserializeShapeForUnit'](_0x4b9ea0,_0x5ae642){const _0xfe99df=_0x318f8d;Object[_0xfe99df(0x124)](_0x5ae642)[_0xfe99df(0x178)](_0x31ec4b=>{const _0x34ead9=_0xfe99df;this[_0x34ead9(0xd3)](_0x4b9ea0,_0x31ec4b)[_0x34ead9(0x133)](_0x5ae642[_0x31ec4b]);});}['toJSON'](){const _0x167d4b=_0x318f8d;let _0x3040c3={};return this[_0x167d4b(0xc8)][_0x167d4b(0x178)]((_0x576de4,_0xb76201)=>{const _0x231812=_0x167d4b;_0x3040c3[_0xb76201]={},_0x576de4[_0x231812(0x178)]((_0x2ed2b4,_0x12d431)=>{const _0x543c56=_0x231812;_0x3040c3[_0xb76201][_0x12d431]=_0x2ed2b4[_0x543c56(0x189)]();});}),_0x3040c3;}[_0x318f8d(0x133)](_0x423e00){const _0x2a7ba3=_0x318f8d;Object['keys'](_0x423e00)[_0x2a7ba3(0x178)](_0x2addcd=>{const _0x5ceba4=_0x2a7ba3;let _0x38cf49=_0x423e00[_0x2addcd];Object[_0x5ceba4(0x124)](_0x38cf49)[_0x5ceba4(0x178)](_0x48d67c=>{const _0xdf6253=_0x5ceba4;this['_ensureShapeModelManager'](_0x2addcd,_0x48d67c)[_0xdf6253(0x133)](_0x38cf49[_0x48d67c]);});});}['_initSnapshot'](){const _0x59f24f=_0x318f8d;this[_0x59f24f(0x14f)][_0x59f24f(0x11f)]({'pluginName':_0x59f24f(0x14d),'businesses':[_0x1d598f[_0x59f24f(0x105)]],'toJson':_0x3bf437=>this[_0x59f24f(0x140)](_0x3bf437),'parseJson':_0x441f18=>JSON[_0x59f24f(0xe7)](_0x441f18),'onLoad':(_0xe88cbe,_0x188418)=>{const _0xffd405=_0x59f24f;this[_0xffd405(0x192)](_0xe88cbe,_0x188418);},'onUnLoad':_0x5d925b=>{const _0x2a8420=_0x59f24f;let _0x36ff5e=this[_0x2a8420(0xc8)]['get'](_0x5d925b);_0x36ff5e&&(_0x36ff5e[_0x2a8420(0x178)](_0x49bb66=>{_0x49bb66['dispose']();}),this[_0x2a8420(0xc8)]['delete'](_0x5d925b));}});}['dispose'](){const _0x453b61=_0x318f8d;this[_0x453b61(0xc8)]['forEach'](_0x1a0828=>{_0x1a0828['forEach'](_0x480e68=>{const _0x2fc38d=_0x195e;_0x480e68[_0x2fc38d(0xfb)]();});});}};function _0x5222(){const _0x5d6d7f=['hostType','getShapeTextData','syncExecuteCommand','getShapeModel','visible','preUndos','sheet.command.toggle-shape-flip','UNIVER_SHEET','sheet.command.update-connector-relation','toPrimitive','_shapeService','lineType','@univerjs-pro/sheets-shape','pushUndoRedo','pluginName','createShape','getSkeleton','set','getDrawingData','bringForward','result','function','width','_sheetsShapeService','getConnectionSiteList','refresh','worldRect','INSERT','1597302eCZAuz','REMOVE','setConfig','top','subUnitId','registerPluginResource','13681450ItPhOI','sheet.command.insert-shape','getAdjustValueByName','position','keys','unitId','1.0.0-beta.1','values','getShapeDisplayNames','formulaBinding','getBatchAddOp','getAdjustNames','getId','_groupIds','177104pMVDjT','shapeId','point','command','preRedos','fromJSON','_linesIds','_drawingManagerService','hasShape','setShapeData','_shapeAdapter','getDrawingByParam','getShapeType','sheets-shape.config','push','1395745SXdrdA','skeleton','_sheetInterceptorService','_serializeShapeForUnit','cxnIndex','_resolveBinding','getShapeTypeById','bringToFront','_disposed','filter','drawingType','_applyUpdate','delete','range','registerCommand','DRAWING_SHAPE','SHEET_SHAPE_PLUGIN','getOwnPropertyDescriptor','_resourcesManagerService','getShapeRelation','angle','isLineShape','shapeData','sheet.command.set-shape-text-vertical-toggle','getShape','_instanceService','updates','_initSnapshot','adjustValues','_injector','_sheetSkeletonService','getName','prototype','sendBackward','getStartConnectInfo','_shapes','onCommandExecute','rotation','name','map','originals','getSheetId','shapeChanged$','getLineShapeRelation','removeLinePoints','COMMAND','1966356ChVDLH','_addLineFollowShapeUpdates','call','getBatchUpdateOp','decorate','symbol','borderEnabled','insertShape','_planConnector','cos','7vHUHjr','deepClone','MUTATION','forEach','getBasicShapeType','shapeType','_addLineRerouteUpdates','sin','from','sheet.command.set-shape-rotate','_drawingService','formula','index','packageName','entries','transform','rotateEnabled','undos','mode','6Giecan','toJSON','left','setShapeType','flipX','ensureSkeleton','has','height','data','fill','_deserializeShapeForUnit','startY','_planDeletes','lineShapeId','sheet.mutation.update-shape-data','_initCommandInterceptor','onStarting','onCommandExecuted','get','getShapeData','sheet.command.set-shape-drawing-data','add','_shapeModelManagerMap','constructor','UPDATE','updateContext','resizeEnabled','description','240TWwrNI','sendToBack','relation','default','clear','_ensureShapeModelManager','backward','disposeWithMe','getCellWithCoordByIndex','forward','_initCommands','57150BaqIYD','_shapeHostAdapterRegistry','drawingId','type','isHorizontal','redos','defineProperty','back','getEndConnectInfo','object','getShapeDataById','flipY','getUnit','updateShape','parse','flatMap','getBasicShapeRelation','selectable','shapeName','getSheets','removeShape','_arrange','length','addShape','_toSnapshot','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_commandService','params','Both','_getConnectPointInfo','listShapesInUnit','listShapes','deletes','register','dispose','string','180489GpjoMF'];_0x5222=function(){return _0x5d6d7f;};return _0x5222();}Z=le([X(0x0,_0x47c011)],Z);const ue={'id':'sheet.mutation.insert-shape','type':_0x3ca940[_0x318f8d(0x177)],'handler':(_0x45ee45,_0x2c9a1f)=>{const _0x3645bd=_0x318f8d;let {unitId:_0x4bfa9e,subUnitId:_0x274b3c,shapeType:_0x17384e,shapeId:_0x3f8eaa,shapeName:_0x32044c,shapeData:_0x2de14c}=_0x2c9a1f;return _0x45ee45['get'](Z)[_0x3645bd(0x172)](_0x4bfa9e,_0x274b3c,_0x17384e,_0x3f8eaa,_0x3b1473[_0x3645bd(0x176)](_0x2de14c),_0x32044c),!0x0;}},de={'id':'sheet.mutation.remove-shape','type':_0x3ca940[_0x318f8d(0x177)],'handler':(_0xa4fcf6,_0x234874)=>{let {unitId:_0x3c3333,subUnitId:_0x3109f3,shapeId:_0x5a4c7e}=_0x234874;return _0xa4fcf6['get'](Z)['removeShape'](_0x3c3333,_0x3109f3,_0x5a4c7e),!0x0;}},fe={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x121),'handler':(_0x1a064a,_0x1d4b05)=>{const _0x1c57c4=_0x318f8d;let _0x5b87b1=_0x35b812(_0x1a064a[_0x1c57c4(0xc4)](_0x3841c4),_0x1d4b05);if(!_0x5b87b1)return!0x1;let _0xb8a5f9=_0x1a064a[_0x1c57c4(0xc4)](_0x54030d),{unitId:_0x500ab6,subUnitId:_0x429d98}=_0x5b87b1,_0x201a60=_0xb8a5f9[_0x1c57c4(0x18d)](_0x500ab6,_0x429d98);if(!_0x201a60)return!0x1;let _0x5cb135=_0x1a064a['get'](_0x284dd9),_0x447816=_0x1a064a[_0x1c57c4(0xc4)](_0x5cea01),_0x43e32d=_0x1a064a[_0x1c57c4(0xc4)](_0x5a1116),_0x2e3d70=_0x1a064a[_0x1c57c4(0xc4)](_0x410389),_0xb333dc=_0x1a064a['get'](Z),{shapeType:_0x5da1d7,shapeData:_0x15c53f}=_0x1d4b05,_0x312448=_0x1d4b05['shapeId']||_0x307e0b(),_0x48efad={'unitId':_0x500ab6,'subUnitId':_0x429d98,'shapeId':_0x312448,'shapeName':_0x1d4b05[_0x1c57c4(0xeb)]??_0x507190(_0x5da1d7,_0xb333dc[_0x1c57c4(0x128)](_0x500ab6,_0x429d98)),'shapeType':_0x5da1d7,'shapeData':_0x15c53f},_0xef5609=_0x1d4b05[_0x1c57c4(0x114)]||0xc8,_0x36bf16=_0x1d4b05['height']||0xc8,_0x38f9b0=0x0,_0x4a9105=0x0;if(_0x1d4b05[_0x1c57c4(0x123)]){let {x:_0x5239a5,y:_0x2c378d}=_0x1d4b05[_0x1c57c4(0x123)];_0x38f9b0=_0x5239a5,_0x4a9105=_0x2c378d;}else{if(_0x1d4b05[_0x1c57c4(0x14a)]){let {startRow:_0x217d01,startColumn:_0x1a4b96}=_0x1d4b05[_0x1c57c4(0x14a)],_0x11afde=_0x201a60[_0x1c57c4(0xd6)](_0x217d01,_0x1a4b96);_0x38f9b0=_0x11afde['startX']+0xa,_0x4a9105=_0x11afde[_0x1c57c4(0x193)]+0xa;}}let _0x375c3b={'left':_0x38f9b0,'top':_0x4a9105,'width':_0xef5609,'height':_0x36bf16,'angle':_0x1d4b05['rotation']??0x0,'flipX':_0x1d4b05[_0x1c57c4(0x18c)]??!0x1,'flipY':_0x1d4b05[_0x1c57c4(0xe4)]??!0x1},_0x1940bd=_0x5ce281(_0x375c3b,_0x201a60),_0x3431f5=_0x2fc0e6(_0x375c3b,_0x201a60),_0x13fb2d={'unitId':_0x500ab6,'subUnitId':_0x429d98,'drawingId':_0x312448,'drawingType':_0x19746e[_0x1c57c4(0x14c)],'anchorType':_0x4fdfb9[_0x1c57c4(0xf5)],'name':_0x1d4b05[_0x1c57c4(0x163)],'description':_0x1d4b05[_0x1c57c4(0xcd)],'sheetTransform':_0x1940bd,'transform':_0x375c3b,'data':{'shapeType':_0x5da1d7,'shapeData':_0x15c53f},'axisAlignSheetTransform':_0x3431f5,'allowTransform':!0x0,'hidden':_0x1d4b05['visible']===!0x1,'selectable':_0x1d4b05[_0x1c57c4(0xea)]??!0x0};_0x2b34a7(_0x5da1d7)&&(_0x13fb2d[_0x1c57c4(0x190)][_0x1c57c4(0x191)]=!0x1,_0x13fb2d[_0x1c57c4(0x190)][_0x1c57c4(0x185)]=!0x1,_0x13fb2d[_0x1c57c4(0x190)]['resizeEnabled']=!0x1,_0x13fb2d[_0x1c57c4(0x190)][_0x1c57c4(0x171)]=!0x1,_0x13fb2d[_0x1c57c4(0x184)][_0x1c57c4(0x185)]=!0x1,_0x13fb2d[_0x1c57c4(0x184)][_0x1c57c4(0xcc)]=!0x1,_0x13fb2d['transform'][_0x1c57c4(0x171)]=!0x1);let {undo:_0x26d3ad,redo:_0x174d7f,objects:_0x2a767}=_0x2e3d70[_0x1c57c4(0x12a)]([_0x13fb2d]),_0x2898e5=_0x43e32d[_0x1c57c4(0x161)]({'id':_0x282f0e['id'],'params':{'unitId':_0x500ab6,'drawings':[_0x13fb2d]}}),_0xe36eff=[..._0x2898e5[_0x1c57c4(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x500ab6,'subUnitId':_0x429d98,'op':_0x174d7f,'objects':_0x2a767,'type':_0x140f2f[_0x1c57c4(0x119)]}},{'id':_0x17646c['id'],'params':[_0x500ab6]},..._0x2898e5[_0x1c57c4(0xde)],{'id':ue['id'],'params':_0x48efad}],_0x4ef44e=[{'id':de['id'],'params':{'unitId':_0x500ab6,'subUnitId':_0x429d98,'shapeId':_0x312448}},..._0x2898e5[_0x1c57c4(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x500ab6,'subUnitId':_0x429d98,'op':_0x26d3ad,'objects':_0x2a767,'type':_0x140f2f[_0x1c57c4(0x11b)]}},{'id':_0x17646c['id'],'params':[_0x500ab6]},..._0x2898e5[_0x1c57c4(0x186)]];return _0x190c41(_0xe36eff,_0x5cb135)['result']?(_0x447816[_0x1c57c4(0x10b)]({'unitID':_0x500ab6,'undoMutations':_0x4ef44e,'redoMutations':_0xe36eff}),!0x0):!0x1;}},Q={'id':_0x318f8d(0x196),'type':_0x3ca940[_0x318f8d(0x177)],'handler':(_0x4a44cf,_0x20e695)=>{const _0x164c42=_0x318f8d;let {unitId:_0x42edc9,subUnitId:_0x5b1b44,shapeType:_0x41db11,shapeId:_0x1b6250,shapeData:_0x3fe737,replace:_0x33bf14,formulaLastValueGuard:_0x5b14f1}=_0x20e695,_0x1480fe=_0x4a44cf['get'](Z)[_0x164c42(0x101)](_0x42edc9,_0x5b1b44,_0x1b6250);if(_0x1480fe){var _0x2ae2f0;if(!_0x5ecc62(_0x4a44cf,{'hostType':_0x1d598f[_0x164c42(0x105)],'unitId':_0x42edc9,'subUnitId':_0x5b1b44,'shapeId':_0x1b6250},(_0x2ae2f0=_0x1480fe[_0x164c42(0xc5)]()[_0x164c42(0x129)])==null?void 0x0:_0x2ae2f0[_0x164c42(0x180)],_0x5b14f1))return!0x0;_0x41db11!==void 0x0&&_0x1480fe[_0x164c42(0x18b)](_0x41db11),_0x3fe737&&(_0x1480fe==null||_0x1480fe['setShapeData'](_0x3b1473[_0x164c42(0x176)](_0x3fe737),!_0x33bf14));}return!0x0;}},pe={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0xc6),'handler':(_0x3a150c,_0x48eba8)=>{const _0x2982c9=_0x318f8d;let _0x8fc00f=_0x35b812(_0x3a150c['get'](_0x3841c4),_0x48eba8);if(!_0x8fc00f)return!0x1;let _0x23125b=_0x3a150c['get'](_0x54030d),{unitId:_0xfdb92d,subUnitId:_0x420dc8}=_0x8fc00f,_0x7a183f=_0x23125b['ensureSkeleton'](_0xfdb92d,_0x420dc8);if(!_0x7a183f)return!0x1;let _0xa45192=_0x3a150c['get'](Z),{shapeId:_0x3a5b71,shapeType:_0x35dcd0,shapeData:_0x335b3c,position:_0x20f310,width:_0x4a500b,height:_0x4fc9ce}=_0x48eba8,_0x23227a=_0xa45192[_0x2982c9(0x101)](_0xfdb92d,_0x420dc8,_0x3a5b71);if(!_0x23227a)return!0x1;let _0x44d311=_0x3a150c[_0x2982c9(0xc4)](_0x284dd9),_0x557ee3=_0x3a150c['get'](_0x5cea01),_0x3bc6ad=_0x3a150c[_0x2982c9(0xc4)](_0x5a1116),_0x4df7c4=_0x3a150c[_0x2982c9(0xc4)](_0x410389),_0x38869b={'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'shapeId':_0x3a5b71,'shapeType':_0x35dcd0,'shapeData':_0x335b3c,'replace':!0x0},_0x4684b2=_0x23227a['getShapeType'](),_0xe9feee=_0x23227a[_0x2982c9(0xc5)](),{x:_0xf31ab9,y:_0x3a5969}=_0x20f310,_0x383363={'left':_0xf31ab9,'top':_0x3a5969,'width':_0x4a500b,'height':_0x4fc9ce,'angle':_0x48eba8[_0x2982c9(0x162)]??0x0,'flipX':_0x48eba8[_0x2982c9(0x18c)]??!0x1,'flipY':_0x48eba8[_0x2982c9(0xe4)]??!0x1},_0xd2de49=_0x5ce281(_0x383363,_0x7a183f),_0x47f6d6=_0x2fc0e6(_0x383363,_0x7a183f),_0x3c17fd={'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'drawingId':_0x3a5b71,'drawingType':_0x19746e['DRAWING_SHAPE'],'name':_0x48eba8[_0x2982c9(0x163)],'description':_0x48eba8['description'],'sheetTransform':_0xd2de49,'transform':_0x383363,'data':{'shapeType':_0x35dcd0,'shapeData':_0x335b3c},'axisAlignSheetTransform':_0x47f6d6,'allowTransform':!0x0,'hidden':!_0x48eba8[_0x2982c9(0x102)],'selectable':_0x48eba8[_0x2982c9(0xea)]};_0x2b34a7(_0x35dcd0)&&(_0x3c17fd['data'][_0x2982c9(0x191)]=!0x1,_0x3c17fd[_0x2982c9(0x190)][_0x2982c9(0x185)]=!0x1,_0x3c17fd[_0x2982c9(0x190)][_0x2982c9(0xcc)]=!0x1,_0x3c17fd[_0x2982c9(0x190)][_0x2982c9(0x171)]=!0x1,_0x3c17fd[_0x2982c9(0x184)][_0x2982c9(0x185)]=!0x1,_0x3c17fd[_0x2982c9(0x184)][_0x2982c9(0xcc)]=!0x1,_0x3c17fd[_0x2982c9(0x184)][_0x2982c9(0x171)]=!0x1);let {undo:_0x53c9db,redo:_0x3b317e,objects:_0x35cdb2}=_0x4df7c4[_0x2982c9(0x16e)]([_0x3c17fd]),_0x256b72=_0x3bc6ad[_0x2982c9(0x161)]({'id':_0x3e690f['id'],'params':{'unitId':_0xfdb92d,'drawings':[_0x3c17fd]}}),_0x2087d6=[..._0x256b72[_0x2982c9(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'op':_0x3b317e,'objects':_0x35cdb2,'type':_0x140f2f['UPDATE']}},{'id':_0x17646c['id'],'params':[_0xfdb92d]},..._0x256b72['redos'],{'id':Q['id'],'params':_0x38869b}],_0x5dcdb7=[..._0x256b72[_0x2982c9(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'op':_0x53c9db,'objects':_0x35cdb2,'type':_0x140f2f[_0x2982c9(0xca)]}},{'id':_0x17646c['id'],'params':[_0xfdb92d]},..._0x256b72['undos'],{'id':Q['id'],'params':{'unitId':_0xfdb92d,'subUnitId':_0x420dc8,'shapeType':_0x4684b2,'shapeId':_0x3a5b71,'shapeData':_0xe9feee,'replace':!0x0}}];return _0x190c41(_0x2087d6,_0x44d311)['result']?(_0x557ee3[_0x2982c9(0x10b)]({'unitID':_0xfdb92d,'undoMutations':_0x5dcdb7,'redoMutations':_0x2087d6}),!0x0):!0x1;}},me={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x104),'handler':(_0x369d03,_0x17ac8d)=>{const _0x96028b=_0x318f8d;let _0x8f10e2=_0x35b812(_0x369d03[_0x96028b(0xc4)](_0x3841c4),_0x17ac8d);if(!_0x8f10e2)return!0x1;let _0x13faf6=_0x369d03[_0x96028b(0xc4)](_0x54030d),{unitId:_0x28e9a1,subUnitId:_0x11bb78}=_0x8f10e2,_0x56fd1a=_0x13faf6[_0x96028b(0x10e)](_0x28e9a1,_0x11bb78);if(!_0x56fd1a)return!0x1;let _0xaf513f=_0x369d03[_0x96028b(0xc4)](_0x410389),{shapeId:_0x2583a6,flipH:_0xcc9d34,flipV:_0x5f32ff}=_0x17ac8d,_0x4a2469=_0xaf513f[_0x96028b(0x139)]({'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'drawingId':_0x2583a6});if(!_0x4a2469)return!0x1;let _0x100b11=_0x369d03[_0x96028b(0xc4)](Z)[_0x96028b(0x101)](_0x28e9a1,_0x11bb78,_0x2583a6);if(!_0x100b11)return!0x1;let _0x376f3c=_0x369d03[_0x96028b(0xc4)](_0x284dd9),_0x4d97d4=_0x369d03['get'](_0x5cea01),_0x38aee2=_0x369d03['get'](_0x5a1116),_0x3d846a={..._0x4a2469[_0x96028b(0x184)]};_0xcc9d34!==void 0x0&&(_0x3d846a['flipX']=!_0x3d846a[_0x96028b(0x18c)]),_0x5f32ff!==void 0x0&&(_0x3d846a[_0x96028b(0xe4)]=!_0x3d846a['flipY']);let _0x42f109=_0x5ce281(_0x3d846a,_0x56fd1a),_0x2c7b3b=_0x2fc0e6(_0x3d846a,_0x56fd1a),_0xa2a208=_0x100b11[_0x96028b(0x13a)](),_0x1e7381=_0x100b11[_0x96028b(0xc5)](),_0x3332dc={'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'drawingId':_0x2583a6,'drawingType':_0x19746e[_0x96028b(0x14c)],'sheetTransform':_0x42f109,'transform':_0x3d846a,'data':{'shapeType':_0xa2a208,'shapeData':_0x1e7381},'axisAlignSheetTransform':_0x2c7b3b,'allowTransform':!0x0},{undo:_0x21667b,redo:_0x3cfad6,objects:_0x478525}=_0xaf513f[_0x96028b(0x16e)]([_0x3332dc]),_0x1d51d4=_0x38aee2[_0x96028b(0x161)]({'id':_0x3e690f['id'],'params':{'unitId':_0x28e9a1,'drawings':[_0x3332dc]}}),_0x264e93=[..._0x1d51d4[_0x96028b(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'op':_0x3cfad6,'objects':_0x478525,'type':_0x140f2f[_0x96028b(0xca)]}},{'id':_0x17646c['id'],'params':[_0x28e9a1]},..._0x1d51d4[_0x96028b(0xde)]],_0x21100a=[..._0x1d51d4['preUndos']??[],{'id':_0x348df4['id'],'params':{'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'op':_0x21667b,'objects':_0x478525,'type':_0x140f2f[_0x96028b(0xca)]}},{'id':_0x17646c['id'],'params':[_0x28e9a1]},..._0x1d51d4[_0x96028b(0x186)]];if(_0x2b34a7(_0xa2a208)){let _0x90788d=_0x100b11[_0x96028b(0x150)]();if(_0x90788d){let _0x31e0aa={..._0x90788d};_0x31e0aa[_0x96028b(0x17d)]=void 0x0,_0x31e0aa['to']=void 0x0,_0x264e93[_0x96028b(0x13c)]({'id':Q['id'],'params':{'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'shapeId':_0x2583a6,'shapeType':_0xa2a208,'shapeData':{'relation':_0x31e0aa}}}),_0x21100a[_0x96028b(0x13c)]({'id':Q['id'],'params':{'unitId':_0x28e9a1,'subUnitId':_0x11bb78,'shapeId':_0x2583a6,'shapeType':_0xa2a208,'shapeData':{'relation':_0x90788d}}});}}return _0x190c41(_0x264e93,_0x376f3c)[_0x96028b(0x112)]?(_0x4d97d4[_0x96028b(0x10b)]({'unitID':_0x28e9a1,'undoMutations':_0x21100a,'redoMutations':_0x264e93}),!0x0):!0x1;}},he={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x17e),'handler':(_0x858a7,_0x3e2514)=>{const _0x33fcc6=_0x318f8d;let _0x2e3bf1=_0x35b812(_0x858a7[_0x33fcc6(0xc4)](_0x3841c4),_0x3e2514);if(!_0x2e3bf1)return!0x1;let _0x3c95a7=_0x858a7[_0x33fcc6(0xc4)](_0x54030d),{unitId:_0x8c2fe2,subUnitId:_0x1689ee}=_0x2e3bf1,_0xbe68c5=_0x3c95a7[_0x33fcc6(0x10e)](_0x8c2fe2,_0x1689ee);if(!_0xbe68c5)return!0x1;let _0x9ccad2=_0x858a7[_0x33fcc6(0xc4)](_0x410389),{shapeId:_0x44b2b0,rotate:_0x5e8081}=_0x3e2514,_0x5b5225=_0x9ccad2[_0x33fcc6(0x139)]({'unitId':_0x8c2fe2,'subUnitId':_0x1689ee,'drawingId':_0x44b2b0});if(!_0x5b5225)return!0x1;let _0x25b726=_0x858a7[_0x33fcc6(0xc4)](Z)[_0x33fcc6(0x101)](_0x8c2fe2,_0x1689ee,_0x44b2b0);if(!_0x25b726)return!0x1;let _0x5066ef=_0x858a7[_0x33fcc6(0xc4)](_0x284dd9),_0x413d2c=_0x858a7[_0x33fcc6(0xc4)](_0x5cea01),_0x5a6e14=_0x858a7[_0x33fcc6(0xc4)](_0x5a1116),_0x195e4a={..._0x5b5225[_0x33fcc6(0x184)]};_0x5e8081!==void 0x0&&(_0x195e4a[_0x33fcc6(0x151)]=(_0x195e4a[_0x33fcc6(0x151)]||0x0)+_0x5e8081);let _0x5a487b=_0x5ce281(_0x195e4a,_0xbe68c5),_0x1ff52b=_0x2fc0e6(_0x195e4a,_0xbe68c5),_0x655359=_0x25b726['getShapeType'](),_0x769b5c=_0x25b726[_0x33fcc6(0xc5)](),_0x582a2e={'unitId':_0x8c2fe2,'subUnitId':_0x1689ee,'drawingId':_0x44b2b0,'drawingType':_0x19746e['DRAWING_SHAPE'],'sheetTransform':_0x5a487b,'transform':_0x195e4a,'data':{'shapeType':_0x655359,'shapeData':_0x769b5c},'axisAlignSheetTransform':_0x1ff52b,'allowTransform':!0x0},{undo:_0x155ae6,redo:_0x14230d,objects:_0x40c5f9}=_0x9ccad2[_0x33fcc6(0x16e)]([_0x582a2e]),_0x4c976c=_0x5a6e14['onCommandExecute']({'id':_0x3e690f['id'],'params':{'unitId':_0x8c2fe2,'drawings':[_0x582a2e]}}),_0x4403c1=[..._0x4c976c[_0x33fcc6(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x8c2fe2,'subUnitId':_0x1689ee,'op':_0x14230d,'objects':_0x40c5f9,'type':_0x140f2f[_0x33fcc6(0xca)]}},{'id':_0x17646c['id'],'params':[_0x8c2fe2]},..._0x4c976c[_0x33fcc6(0xde)]],_0x171a91=[..._0x4c976c[_0x33fcc6(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x8c2fe2,'subUnitId':_0x1689ee,'op':_0x155ae6,'objects':_0x40c5f9,'type':_0x140f2f[_0x33fcc6(0xca)]}},{'id':_0x17646c['id'],'params':[_0x8c2fe2]},..._0x4c976c[_0x33fcc6(0x186)]];return _0x190c41(_0x4403c1,_0x5066ef)[_0x33fcc6(0x112)]?(_0x413d2c[_0x33fcc6(0x10b)]({'unitID':_0x8c2fe2,'undoMutations':_0x171a91,'redoMutations':_0x4403c1}),!0x0):!0x1;}},ge={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x154),'handler':(_0x220ac3,_0x243739)=>{const _0x5a2e69=_0x318f8d;let _0x3faf69=_0x35b812(_0x220ac3[_0x5a2e69(0xc4)](_0x3841c4),_0x243739);if(!_0x3faf69)return!0x1;let {unitId:_0xc4a9d5,subUnitId:_0x596383}=_0x3faf69,{shapeId:_0x369fce}=_0x243739,_0x1a52b5=_0x220ac3[_0x5a2e69(0xc4)](Z)[_0x5a2e69(0x101)](_0xc4a9d5,_0x596383,_0x369fce);if(!_0x1a52b5)return!0x1;let _0x2ba047=_0x1a52b5[_0x5a2e69(0xff)](),_0xd55762=(_0x2ba047==null?void 0x0:_0x2ba047[_0x5a2e69(0xdd)])??!0x0,_0x27dba3=!_0xd55762,_0x1f3c63=_0x220ac3['get'](_0x284dd9),_0x27e4c9=_0x220ac3[_0x5a2e69(0xc4)](_0x5cea01),_0x143940={'unitId':_0xc4a9d5,'subUnitId':_0x596383,'shapeId':_0x369fce,'shapeData':{'shapeText':{'isHorizontal':_0x27dba3}}},_0x4a2459={'unitId':_0xc4a9d5,'subUnitId':_0x596383,'shapeId':_0x369fce,'shapeData':{'shapeText':{'isHorizontal':_0xd55762}}},_0x4a08d1=[{'id':Q['id'],'params':_0x143940}],_0x243904=[{'id':Q['id'],'params':_0x4a2459}];return _0x190c41(_0x4a08d1,_0x1f3c63)[_0x5a2e69(0x112)]?(_0x27e4c9['pushUndoRedo']({'unitID':_0xc4a9d5,'undoMutations':_0x243904,'redoMutations':_0x4a08d1}),!0x0):!0x1;}},_e={'type':_0x3ca940[_0x318f8d(0x16a)],'id':_0x318f8d(0x106),'handler':(_0x41c70d,_0x50415a)=>{const _0x15dcbc=_0x318f8d;var _0x58af3e;let _0xacc8c6=_0x35b812(_0x41c70d[_0x15dcbc(0xc4)](_0x3841c4),_0x50415a);if(!_0xacc8c6)return!0x1;let _0x28835f=_0x41c70d[_0x15dcbc(0xc4)](_0x54030d),{unitId:_0x5502c9,subUnitId:_0x6d25d2}=_0xacc8c6,_0x31078d=_0x28835f['getSkeleton'](_0x5502c9,_0x6d25d2);if(!_0x31078d)return!0x1;let _0x3852d9=_0x41c70d[_0x15dcbc(0xc4)](_0x410389),{connectorShapeId:_0x4bb1c2,width:_0x204973,height:_0x45d899,left:_0x4e20cb,top:_0x1bc2cd,flipX:_0x45a065,flipY:_0xb2c025,rotation:_0x56abac,oldAdjustValues:_0x57130d,newAdjustValues:_0x18b5ac,oldLineType:_0x13543c,newLineType:_0x576d53,oldRelation:_0x1529ce,newRelation:_0x172330}=_0x50415a,_0x202d6d=_0x3852d9[_0x15dcbc(0x139)]({'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'drawingId':_0x4bb1c2});if(!_0x202d6d)return!0x1;let _0x44d821=_0x41c70d[_0x15dcbc(0xc4)](Z)[_0x15dcbc(0x101)](_0x5502c9,_0x6d25d2,_0x4bb1c2);if(!_0x44d821)return!0x1;let _0x292cdf=_0x41c70d[_0x15dcbc(0xc4)](_0x284dd9),_0xbf11a8=_0x41c70d[_0x15dcbc(0xc4)](_0x5cea01),_0x5f58b1=_0x41c70d['get'](_0x5a1116),_0x2985c4={..._0x202d6d[_0x15dcbc(0x184)],'width':_0x204973,'height':_0x45d899,'left':_0x4e20cb,'top':_0x1bc2cd,'flipX':_0x45a065,'flipY':_0xb2c025,'angle':_0x56abac??((_0x58af3e=_0x202d6d[_0x15dcbc(0x184)])==null?void 0x0:_0x58af3e[_0x15dcbc(0x151)])??0x0},_0x2f5209=_0x5ce281(_0x2985c4,_0x31078d),_0x37508e=_0x2fc0e6(_0x2985c4,_0x31078d),_0x33feb5=_0x44d821[_0x15dcbc(0x13a)](),_0x40ae99=_0x44d821['getShapeData'](),_0x1e4b8d={'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'drawingId':_0x4bb1c2,'drawingType':_0x19746e['DRAWING_SHAPE'],'sheetTransform':_0x2f5209,'transform':_0x2985c4,'data':{'shapeType':_0x576d53||_0x13543c||_0x33feb5,'shapeData':{..._0x40ae99,'adjustValues':_0x18b5ac||_0x57130d||(_0x40ae99==null?void 0x0:_0x40ae99[_0x15dcbc(0x159)]),'relation':_0x172330||_0x1529ce||(_0x40ae99==null?void 0x0:_0x40ae99[_0x15dcbc(0xd0)])}},'axisAlignSheetTransform':_0x37508e,'allowTransform':!0x0},{undo:_0x3e2e63,redo:_0xe93f21,objects:_0x3abefc}=_0x3852d9['getBatchUpdateOp']([_0x1e4b8d]),_0x16f384=_0x5f58b1['onCommandExecute']({'id':_0x3e690f['id'],'params':{'unitId':_0x5502c9,'drawings':[_0x1e4b8d]}}),_0x544475=[..._0x16f384['preRedos']??[],{'id':_0x348df4['id'],'params':{'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'op':_0xe93f21,'objects':_0x3abefc,'type':_0x140f2f['UPDATE']}},{'id':_0x17646c['id'],'params':[_0x5502c9]},..._0x16f384['redos'],{'id':Q['id'],'params':{'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'shapeId':_0x4bb1c2,'shapeType':_0x576d53,'shapeData':{'adjustValues':_0x18b5ac,'relation':_0x172330}}}],_0x1e060d=[..._0x16f384[_0x15dcbc(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'op':_0x3e2e63,'objects':_0x3abefc,'type':_0x140f2f[_0x15dcbc(0xca)]}},{'id':_0x17646c['id'],'params':[_0x5502c9]},..._0x16f384[_0x15dcbc(0x186)],{'id':Q['id'],'params':{'unitId':_0x5502c9,'subUnitId':_0x6d25d2,'shapeId':_0x4bb1c2,'shapeType':_0x33feb5,'shapeData':{..._0x40ae99,'adjustValues':_0x57130d||(_0x40ae99==null?void 0x0:_0x40ae99['adjustValues']),'relation':_0x1529ce||(_0x40ae99==null?void 0x0:_0x40ae99[_0x15dcbc(0xd0)])}}}];return _0x190c41(_0x544475,_0x292cdf)[_0x15dcbc(0x112)]?(_0xbf11a8[_0x15dcbc(0x10b)]({'unitID':_0x5502c9,'undoMutations':_0x1e060d,'redoMutations':_0x544475}),!0x0):!0x1;}},ve={'type':_0x3ca940['COMMAND'],'id':'sheet.command.update-line-shape-resize','handler':(_0x34fc2a,_0x28fac8)=>{const _0x267da0=_0x318f8d;let _0x2c556d=_0x35b812(_0x34fc2a[_0x267da0(0xc4)](_0x3841c4),_0x28fac8);if(!_0x2c556d)return!0x1;let _0xb601a6=_0x34fc2a['get'](_0x54030d),{unitId:_0x579e01,subUnitId:_0x181128}=_0x2c556d,_0x4a393f=_0xb601a6['getSkeleton'](_0x579e01,_0x181128);if(!_0x4a393f)return!0x1;let _0x305388=_0x34fc2a['get'](_0x410389),{shapeId:_0x3b95a5,width:_0x21fa1f,height:_0x2637f7,left:_0x2a5eac,top:_0x57ad8e,flipX:_0x478f70,flipY:_0xc5e657,angle:_0xa5250c,oldAdjustValues:_0x2e9f94,newAdjustValues:_0x10c2eb,oldLineType:_0x231b40,newLineType:_0x343738}=_0x28fac8,_0x2a5229=_0x305388[_0x267da0(0x139)]({'unitId':_0x579e01,'subUnitId':_0x181128,'drawingId':_0x3b95a5});if(!_0x2a5229)return!0x1;let _0x1f911b=_0x34fc2a['get'](Z)[_0x267da0(0x101)](_0x579e01,_0x181128,_0x3b95a5);if(!_0x1f911b)return!0x1;let _0x5382b7=_0x34fc2a[_0x267da0(0xc4)](_0x284dd9),_0x207db2=_0x34fc2a[_0x267da0(0xc4)](_0x5cea01),_0x4b7c0c=_0x34fc2a['get'](_0x5a1116),_0x52990e={..._0x2a5229['transform'],'width':_0x21fa1f,'height':_0x2637f7,'left':_0x2a5eac,'top':_0x57ad8e,'flipX':_0x478f70,'flipY':_0xc5e657,'angle':_0xa5250c},_0x2d939f=_0x5ce281(_0x52990e,_0x4a393f),_0x594f5b=_0x2fc0e6(_0x52990e,_0x4a393f),_0x2851e6=_0x1f911b[_0x267da0(0x13a)](),_0x20582d=_0x1f911b[_0x267da0(0xc5)](),_0xd58a7a={'unitId':_0x579e01,'subUnitId':_0x181128,'drawingId':_0x3b95a5,'drawingType':_0x19746e['DRAWING_SHAPE'],'sheetTransform':_0x2d939f,'transform':_0x52990e,'data':{'shapeType':_0x343738||_0x231b40||_0x2851e6,'shapeData':{..._0x20582d,'adjustValues':_0x10c2eb||_0x2e9f94||(_0x20582d==null?void 0x0:_0x20582d['adjustValues'])}},'axisAlignSheetTransform':_0x594f5b,'allowTransform':!0x0},{undo:_0x33d887,redo:_0x373c3e,objects:_0x5cc72e}=_0x305388[_0x267da0(0x16e)]([_0xd58a7a]),_0x36923d=_0x4b7c0c[_0x267da0(0x161)]({'id':_0x3e690f['id'],'params':{'unitId':_0x579e01,'drawings':[_0xd58a7a]}}),_0x145d60=[..._0x36923d[_0x267da0(0x132)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x579e01,'subUnitId':_0x181128,'op':_0x373c3e,'objects':_0x5cc72e,'type':_0x140f2f[_0x267da0(0xca)]}},{'id':_0x17646c['id'],'params':[_0x579e01]},..._0x36923d[_0x267da0(0xde)],{'id':Q['id'],'params':{'unitId':_0x579e01,'subUnitId':_0x181128,'shapeId':_0x3b95a5,'shapeType':_0x343738,'shapeData':{'adjustValues':_0x10c2eb}}}],_0x53b125=[..._0x36923d[_0x267da0(0x103)]??[],{'id':_0x348df4['id'],'params':{'unitId':_0x579e01,'subUnitId':_0x181128,'op':_0x33d887,'objects':_0x5cc72e,'type':_0x140f2f[_0x267da0(0xca)]}},{'id':_0x17646c['id'],'params':[_0x579e01]},..._0x36923d[_0x267da0(0x186)],{'id':Q['id'],'params':{'unitId':_0x579e01,'subUnitId':_0x181128,'shapeId':_0x3b95a5,'shapeType':_0x2851e6,'shapeData':{..._0x20582d,'adjustValues':_0x2e9f94||(_0x20582d==null?void 0x0:_0x20582d[_0x267da0(0x159)])}}}];return _0x190c41(_0x145d60,_0x5382b7)[_0x267da0(0x112)]?(_0x207db2[_0x267da0(0x10b)]({'unitID':_0x579e01,'undoMutations':_0x53b125,'redoMutations':_0x145d60}),!0x0):!0x1;}},ye={'id':'sheet.mutation.update-shape-type','type':_0x3ca940[_0x318f8d(0x177)],'handler':(_0x137519,_0x5d2f64)=>{const _0x42c79e=_0x318f8d;let {unitId:_0x33e1fc,subUnitId:_0x514ea5,shapeType:_0x25aab9,shapeId:_0x4ef37c,shapeData:_0x24c6fc}=_0x5d2f64,_0x103987=_0x137519[_0x42c79e(0xc4)](Z)[_0x42c79e(0x101)](_0x33e1fc,_0x514ea5,_0x4ef37c);return _0x103987&&(_0x103987[_0x42c79e(0x18b)](_0x25aab9),_0x24c6fc&&(_0x103987==null||_0x103987[_0x42c79e(0x137)](_0x24c6fc))),!0x0;}};var be=_0x318f8d(0x10a),xe=_0x318f8d(0x126);function Se(_0x3e32df){const _0x3dbf77=_0x318f8d;var _0x233f4a,_0x53f736,_0x3a85aa,_0x2553a9,_0x16d294,_0x137f40,_0x334bec;return{'left':((_0x233f4a=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x233f4a[_0x3dbf77(0x18a)])??0x0,'top':((_0x53f736=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x53f736[_0x3dbf77(0x11d)])??0x0,'width':((_0x3a85aa=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x3a85aa[_0x3dbf77(0x114)])??0xc8,'height':((_0x2553a9=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x2553a9[_0x3dbf77(0x18f)])??0xc8,'rotation':((_0x16d294=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x16d294[_0x3dbf77(0x162)])??0x0,'flipX':((_0x137f40=_0x3e32df['transform'])==null?void 0x0:_0x137f40[_0x3dbf77(0x18c)])??!0x1,'flipY':((_0x334bec=_0x3e32df[_0x3dbf77(0x184)])==null?void 0x0:_0x334bec[_0x3dbf77(0xe4)])??!0x1};}let Ce=class{constructor(_0x1641e5,_0x15814d,_0x185329,_0x1dfc1d){const _0x29856c=_0x318f8d;this['_commandService']=_0x1641e5,this[_0x29856c(0x108)]=_0x15814d,this[_0x29856c(0x17f)]=_0x185329,this[_0x29856c(0x156)]=_0x1dfc1d,Y(this,_0x29856c(0xfe),_0x1d598f[_0x29856c(0x105)]);}get[_0x318f8d(0x167)](){return{'subscribe':_0x5c7b6e=>{const _0x41931c=_0x195e;let _0x5949e9=this[_0x41931c(0xf3)][_0x41931c(0x199)](_0x2e2368=>{const _0x554d26=_0x41931c;(_0x2e2368['id']===ue['id']||_0x2e2368['id']===de['id']||_0x2e2368['id']===Q['id']||_0x2e2368['id']===ye['id'])&&_0x5c7b6e({'unitId':_0x2e2368['params'][_0x554d26(0x125)]});});return{'unsubscribe':()=>_0x5949e9[_0x41931c(0xfb)]()};}};}['getShape'](_0x12a592){const _0x4b3fb5=_0x318f8d;var _0x4938c5;let _0x2fdb79=(_0x4938c5=this[_0x4b3fb5(0x17f)][_0x4b3fb5(0x110)](_0x12a592[_0x4b3fb5(0x125)],_0x12a592['subUnitId']))==null?void 0x0:_0x4938c5[_0x12a592['shapeId']],_0x550a85=this[_0x4b3fb5(0x108)][_0x4b3fb5(0x13a)](_0x12a592[_0x4b3fb5(0x125)],_0x12a592[_0x4b3fb5(0x11e)],_0x12a592[_0x4b3fb5(0x12f)]);if(!_0x2fdb79||_0x2fdb79[_0x4b3fb5(0x147)]!==_0x19746e[_0x4b3fb5(0x14c)]||!_0x550a85)return null;let _0xfdffdc=_0x2fdb79[_0x4b3fb5(0x184)];return{..._0x12a592,'shapeType':_0x550a85,'shapeData':_0x3b1473['deepClone'](this[_0x4b3fb5(0x108)][_0x4b3fb5(0xe3)](_0x12a592[_0x4b3fb5(0x125)],_0x12a592['subUnitId'],_0x12a592[_0x4b3fb5(0x12f)])??{}),'name':_0x2fdb79[_0x4b3fb5(0x163)],'description':_0x2fdb79[_0x4b3fb5(0xcd)],'visible':_0x2fdb79['hidden']!==!0x0,'selectable':_0x2fdb79['selectable']!==!0x1,'transform':{'left':(_0xfdffdc==null?void 0x0:_0xfdffdc['left'])??0x0,'top':(_0xfdffdc==null?void 0x0:_0xfdffdc['top'])??0x0,'width':(_0xfdffdc==null?void 0x0:_0xfdffdc[_0x4b3fb5(0x114)])??0xc8,'height':(_0xfdffdc==null?void 0x0:_0xfdffdc[_0x4b3fb5(0x18f)])??0xc8,'rotation':(_0xfdffdc==null?void 0x0:_0xfdffdc[_0x4b3fb5(0x151)])??0x0,'flipX':(_0xfdffdc==null?void 0x0:_0xfdffdc['flipX'])??!0x1,'flipY':(_0xfdffdc==null?void 0x0:_0xfdffdc[_0x4b3fb5(0xe4)])??!0x1}};}[_0x318f8d(0xf8)](_0x4bbdcc){const _0x49b412=_0x318f8d;let _0x165b70=this[_0x49b412(0x17f)][_0x49b412(0x110)](_0x4bbdcc['unitId'],_0x4bbdcc[_0x49b412(0x11e)])??{};return Object[_0x49b412(0x127)](_0x165b70)[_0x49b412(0x146)](_0x22bb6d=>(_0x22bb6d==null?void 0x0:_0x22bb6d[_0x49b412(0x147)])===_0x19746e[_0x49b412(0x14c)])['map'](_0x1bc204=>this['getShape']({..._0x4bbdcc,'shapeId':_0x1bc204[_0x49b412(0xdb)]}))[_0x49b412(0x146)](_0x489ba3=>!!_0x489ba3);}[_0x318f8d(0xf7)](_0x5d8e8e){const _0x3a9cb8=_0x318f8d;let _0x2e2317=this[_0x3a9cb8(0x156)][_0x3a9cb8(0xe5)](_0x5d8e8e,_0x1d598f[_0x3a9cb8(0x105)]);return(_0x2e2317==null?void 0x0:_0x2e2317[_0x3a9cb8(0xec)]()[_0x3a9cb8(0xe8)](_0x57a2a9=>this['listShapes']({'hostType':this['hostType'],'unitId':_0x5d8e8e,'subUnitId':_0x57a2a9[_0x3a9cb8(0x166)]()})))??[];}[_0x318f8d(0x10d)](_0x1ded25,_0x4d8afc){const _0x54ea4e=_0x318f8d;let _0x590d52=_0x307e0b(),_0x5b61e0=Se(_0x4d8afc);return this['_commandService'][_0x54ea4e(0x100)](fe['id'],{'unitId':_0x1ded25['unitId'],'subUnitId':_0x1ded25[_0x54ea4e(0x11e)],'shapeId':_0x590d52,'shapeType':_0x4d8afc[_0x54ea4e(0x17a)],'shapeData':_0x4d8afc[_0x54ea4e(0x153)],'name':_0x4d8afc['name'],'description':_0x4d8afc[_0x54ea4e(0xcd)],'position':{'x':_0x5b61e0[_0x54ea4e(0x18a)],'y':_0x5b61e0[_0x54ea4e(0x11d)]},'width':_0x5b61e0[_0x54ea4e(0x114)],'height':_0x5b61e0[_0x54ea4e(0x18f)],'rotation':_0x5b61e0[_0x54ea4e(0x162)],'flipX':_0x5b61e0[_0x54ea4e(0x18c)],'flipY':_0x5b61e0['flipY'],'visible':_0x4d8afc['visible']??!0x0,'selectable':_0x4d8afc[_0x54ea4e(0xea)]??!0x0})?{..._0x1ded25,'shapeId':_0x590d52,'shapeType':_0x4d8afc[_0x54ea4e(0x17a)],'shapeData':_0x3b1473[_0x54ea4e(0x176)](_0x4d8afc[_0x54ea4e(0x153)]??{}),'name':_0x4d8afc['name'],'description':_0x4d8afc[_0x54ea4e(0xcd)],'visible':_0x4d8afc[_0x54ea4e(0x102)]??!0x0,'selectable':_0x4d8afc[_0x54ea4e(0xea)]??!0x0,'transform':_0x5b61e0}:null;}[_0x318f8d(0xe6)](_0x41a2dd,_0x1d72ab){const _0x88840b=_0x318f8d;var _0x1ca842;let _0xf876b6=this[_0x88840b(0x155)](_0x41a2dd);if(!_0xf876b6)return!0x1;let _0x34baba={..._0xf876b6[_0x88840b(0x184)],..._0x1d72ab[_0x88840b(0x184)]};return this['_commandService'][_0x88840b(0x100)](pe['id'],{'unitId':_0x41a2dd[_0x88840b(0x125)],'subUnitId':_0x41a2dd[_0x88840b(0x11e)],'shapeId':_0x41a2dd[_0x88840b(0x12f)],'shapeType':_0x1d72ab[_0x88840b(0x17a)]??((_0x1ca842=_0x1d72ab[_0x88840b(0x153)])==null?void 0x0:_0x1ca842[_0x88840b(0x17a)])??_0xf876b6[_0x88840b(0x17a)],'shapeData':_0x1d72ab[_0x88840b(0x153)]??_0xf876b6[_0x88840b(0x153)],'position':{'x':_0x34baba['left'],'y':_0x34baba['top']},'width':_0x34baba[_0x88840b(0x114)],'height':_0x34baba['height'],'rotation':_0x34baba[_0x88840b(0x162)],'flipX':_0x34baba[_0x88840b(0x18c)],'flipY':_0x34baba[_0x88840b(0xe4)],'name':_0x88840b(0x163)in _0x1d72ab?_0x1d72ab[_0x88840b(0x163)]:_0xf876b6[_0x88840b(0x163)],'description':'description'in _0x1d72ab?_0x1d72ab[_0x88840b(0xcd)]:_0xf876b6[_0x88840b(0xcd)],'visible':_0x1d72ab['visible']??_0xf876b6[_0x88840b(0x102)],'selectable':_0x1d72ab[_0x88840b(0xea)]??_0xf876b6[_0x88840b(0xea)]});}['createFormulaLastValueMutation'](_0x137abf,_0x54e56a,_0x2ac6ea){const _0x5e1673=_0x318f8d;let _0x66b8f=this['getShape'](_0x137abf),_0x16e441=_0x66b8f==null?void 0x0:_0x66b8f[_0x5e1673(0x153)]['formulaBinding'];return!_0x66b8f||!_0x16e441?null:{'id':Q['id'],'params':{'unitId':_0x137abf[_0x5e1673(0x125)],'subUnitId':_0x137abf['subUnitId'],'shapeId':_0x137abf[_0x5e1673(0x12f)],'shapeData':{..._0x66b8f[_0x5e1673(0x153)],'formulaBinding':{..._0x16e441,'lastValue':_0x3b1473[_0x5e1673(0x176)](_0x2ac6ea)}},'replace':!0x0,'formulaLastValueGuard':_0x54e56a}};}[_0x318f8d(0xed)](_0x207329){const _0x4505f9=_0x318f8d;return this[_0x4505f9(0xf3)]['syncExecuteCommand'](_0x293fe8['id'],{'unitId':_0x207329[_0x4505f9(0x125)],'drawings':[{'unitId':_0x207329['unitId'],'subUnitId':_0x207329[_0x4505f9(0x11e)],'drawingId':_0x207329[_0x4505f9(0x12f)],'drawingType':_0x19746e[_0x4505f9(0x14c)]}]});}[_0x318f8d(0x144)](_0x138055){const _0x19d73b=_0x318f8d;return this[_0x19d73b(0xee)](_0x138055,_0x44b4ab['front']);}[_0x318f8d(0x111)](_0xa8ab6f){const _0x2c403d=_0x318f8d;return this[_0x2c403d(0xee)](_0xa8ab6f,_0x44b4ab[_0x2c403d(0xd7)]);}[_0x318f8d(0x15e)](_0x37745e){const _0x50a381=_0x318f8d;return this[_0x50a381(0xee)](_0x37745e,_0x44b4ab[_0x50a381(0xd4)]);}[_0x318f8d(0xcf)](_0x35e4e8){const _0x41de76=_0x318f8d;return this[_0x41de76(0xee)](_0x35e4e8,_0x44b4ab[_0x41de76(0xe0)]);}['setZOrder'](_0xf21bfc,_0x32caee){const _0x494324=_0x318f8d;return this[_0x494324(0xf3)][_0x494324(0x100)](_0x29706e['id'],{'unitId':_0xf21bfc[_0x494324(0x125)],'subUnitId':_0xf21bfc[_0x494324(0x11e)],'drawingIds':[_0xf21bfc[_0x494324(0x12f)]],'zOrder':_0x32caee});}[_0x318f8d(0xee)](_0x4dcba7,_0x2bbd70){const _0x157351=_0x318f8d;return this[_0x157351(0xf3)][_0x157351(0x100)](_0x29706e['id'],{'unitId':_0x4dcba7['unitId'],'subUnitId':_0x4dcba7[_0x157351(0x11e)],'drawingIds':[_0x4dcba7[_0x157351(0x12f)]],'arrangeType':_0x2bbd70});}};Ce=le([X(0x0,_0x284dd9),X(0x1,_0xab1f83(Z)),X(0x2,_0x410389),X(0x3,_0x3841c4)],Ce);const we={};let Te=class extends _0x130970{constructor(_0x5b2ceb,_0xdc3f2f,_0x13c5aa,_0x5ace62,_0x378fec,_0x2e6290,_0x40b622){const _0x318bba=_0x318f8d;super(),this['_commandService']=_0x5b2ceb,this[_0x318bba(0x13f)]=_0xdc3f2f,this[_0x318bba(0x15b)]=_0x13c5aa,this[_0x318bba(0x115)]=_0x5ace62,this['_drawingManagerService']=_0x378fec,this['_shapeHostAdapterRegistry']=_0x2e6290,this['_initCommands'](),this[_0x318bba(0x197)](),this[_0x318bba(0xd5)](this[_0x318bba(0xda)]['register'](_0x40b622));}[_0x318f8d(0xd8)](){const _0x20129d=_0x318f8d;[fe,pe,me,he,ge,_e,ve,ue,de,ye,Q][_0x20129d(0x178)](_0x385054=>this[_0x20129d(0xd5)](this[_0x20129d(0xf3)][_0x20129d(0x14b)](_0x385054)));}[_0x318f8d(0x197)](){const _0x47bec1=_0x318f8d;this[_0x47bec1(0xd5)](this[_0x47bec1(0x13f)]['interceptCommand']({'getMutations':_0x3d46d4=>{const _0x490f56=_0x47bec1;if(_0x3d46d4['id']===_0x293fe8['id']){let {drawings:_0x46114c}=_0x3d46d4[_0x490f56(0xf4)],_0x22e14f=_0x46114c['filter'](_0x28824e=>_0x28824e[_0x490f56(0x147)]===_0x19746e[_0x490f56(0x14c)]);if(_0x22e14f[_0x490f56(0xef)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3aa290=[],_0x645878=[];return _0x22e14f[_0x490f56(0x178)](_0x73f09a=>{const _0x22ff83=_0x490f56;let {unitId:_0x29f369,subUnitId:_0x563548,drawingId:_0x18933f}=_0x73f09a,_0x343a6e=this[_0x22ff83(0x115)][_0x22ff83(0x101)](_0x29f369,_0x563548,_0x18933f);if(!_0x343a6e)throw TypeError(_0x22ff83(0xf2)+_0x343a6e);_0x3aa290['push']({'id':de['id'],'params':{'unitId':_0x29f369,'subUnitId':_0x563548,'shapeId':_0x18933f}}),_0x645878['push']({'id':ue['id'],'params':{'unitId':_0x29f369,'subUnitId':_0x563548,'shapeId':_0x18933f,'shapeType':_0x343a6e['getShapeType'](),'shapeData':_0x343a6e[_0x22ff83(0xc5)]()}});let _0x211ff7=this[_0x22ff83(0x115)][_0x22ff83(0xe9)](_0x29f369,_0x563548,_0x18933f);if(_0x211ff7)for(let _0x32d5ce of _0x211ff7){let _0x3a5b02=_0x32d5ce[_0x22ff83(0x195)],_0x290789=_0x32d5ce['isFrom'],_0x2f2045=_0x290789?{'from':void 0x0}:{'to':void 0x0},_0x34e396=_0x290789?{'from':{'shapeId':_0x32d5ce[_0x22ff83(0x12f)],'cxnIndex':_0x32d5ce[_0x22ff83(0x141)]}}:{'to':{'shapeId':_0x32d5ce['shapeId'],'cxnIndex':_0x32d5ce['cxnIndex']}};_0x3aa290[_0x22ff83(0x13c)]({'id':Q['id'],'params':{'unitId':_0x29f369,'subUnitId':_0x563548,'shapeId':_0x3a5b02,'shapeData':{'relation':_0x2f2045}}}),_0x645878[_0x22ff83(0x13c)]({'id':Q['id'],'params':{'unitId':_0x29f369,'subUnitId':_0x563548,'shapeId':_0x3a5b02,'shapeData':{'relation':_0x34e396}}});}}),{'preRedos':_0x3aa290,'redos':[],'preUndos':[],'undos':_0x645878};}if(_0x3d46d4['id']===_0x3e690f['id']){let {drawings:_0x105425}=_0x3d46d4['params'],_0x2fe56e=_0x105425['filter'](_0x4ef950=>_0x4ef950['drawingType']===_0x19746e[_0x490f56(0x14c)]);if(_0x2fe56e['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x463a75=[],_0x375844=[];for(let _0x55a291 of _0x2fe56e){let {unitId:_0x79f4ce,subUnitId:_0x3a6ed3,drawingId:_0x20b81b,transform:_0x2aa006}=_0x55a291;if(!_0x79f4ce||!_0x3a6ed3||!_0x20b81b||!_0x2aa006)continue;let _0x155fe7=this[_0x490f56(0x115)][_0x490f56(0x101)](_0x79f4ce,_0x3a6ed3,_0x20b81b);if(!_0x155fe7)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x155fe7);if(_0x2b34a7(_0x155fe7[_0x490f56(0x13a)]())){let _0x494993=this['_sheetsShapeService'][_0x490f56(0x168)](_0x79f4ce,_0x3a6ed3,_0x20b81b);_0x494993&&(_0x463a75['push']({'id':Q['id'],'params':{'unitId':_0x79f4ce,'subUnitId':_0x3a6ed3,'shapeId':_0x20b81b,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x375844[_0x490f56(0x13c)]({'id':Q['id'],'params':{'unitId':_0x79f4ce,'subUnitId':_0x3a6ed3,'shapeId':_0x20b81b,'shapeData':{'relation':_0x494993}}}));}else{let _0x6fa0c1=this[_0x490f56(0x115)][_0x490f56(0xe9)](_0x79f4ce,_0x3a6ed3,_0x20b81b);if(_0x6fa0c1&&_0x6fa0c1[_0x490f56(0xef)]>0x0)for(let _0x1cd15f of _0x6fa0c1){let _0x1bafc2=_0x1cd15f[_0x490f56(0x195)],_0x3bdca4=_0x1cd15f['isFrom'],_0x2ddee4=this['_sheetsShapeService'][_0x490f56(0x101)](_0x79f4ce,_0x3a6ed3,_0x1bafc2);if(!_0x2ddee4)continue;let _0x4f1f44=_0x2ddee4[_0x490f56(0x15f)](),_0x11288e=_0x2ddee4[_0x490f56(0xe1)]();_0x4f1f44&&_0x11288e?this[_0x490f56(0x17b)](_0x79f4ce,_0x3a6ed3,_0x1bafc2,_0x2ddee4,_0x4f1f44,_0x11288e,_0x463a75,_0x375844,_0x20b81b,_0x2aa006):this[_0x490f56(0x16c)](_0x79f4ce,_0x3a6ed3,_0x1bafc2,_0x2ddee4,_0x3bdca4?_0x4f1f44:_0x11288e,_0x3bdca4,_0x463a75,_0x375844,_0x20b81b,_0x2aa006);}}}return{'preRedos':[],'redos':_0x463a75,'preUndos':_0x375844,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x318f8d(0xf6)](_0x4da9b4,_0x5e78de,_0x2c8b49,_0x2da817,_0x36b87e){const _0x1390ed=_0x318f8d;if(!_0x5e78de||!_0x2c8b49)return null;let {shapeId:_0x3d8413,cxnIndex:_0x1a8272}=_0x4da9b4,_0x1175a0=this[_0x1390ed(0x115)][_0x1390ed(0x101)](_0x5e78de,_0x2c8b49,_0x3d8413);if(!_0x1175a0)return null;let _0xf5c31a=this[_0x1390ed(0x135)][_0x1390ed(0x139)]({'unitId':_0x5e78de,'subUnitId':_0x2c8b49,'drawingId':_0x3d8413});if(!(_0xf5c31a!=null&&_0xf5c31a['transform']))return null;let {left:_0x2bbded=0x0,top:_0x44205b=0x0,width:_0x477451=0x0,height:_0x22b181=0x0,flipX:_0x29d677=!0x1,flipY:_0x13b02c=!0x1,angle:_0x3c920c}=_0xf5c31a[_0x1390ed(0x184)];_0x36b87e&&_0x2da817===_0x3d8413&&(_0x2bbded=_0x36b87e[_0x1390ed(0x18a)]??_0x2bbded,_0x44205b=_0x36b87e['top']??_0x44205b,_0x477451=_0x36b87e[_0x1390ed(0x114)]??_0x477451,_0x22b181=_0x36b87e[_0x1390ed(0x18f)]??_0x22b181,_0x29d677=_0x36b87e['flipX']??_0x29d677,_0x13b02c=_0x36b87e['flipY']??_0x13b02c,_0x3c920c=_0x36b87e[_0x1390ed(0x151)]??_0x3c920c),_0x1175a0[_0x1390ed(0xcb)]({'width':_0x477451,'height':_0x22b181});let _0x4513fb=_0x1175a0[_0x1390ed(0x116)]()['find'](_0x39311b=>_0x39311b[_0x1390ed(0x181)]===_0x1a8272);if(!_0x4513fb)return null;let _0x190efd=_0x29d677?_0x477451-_0x4513fb['x']:_0x4513fb['x'],_0x54f937=_0x13b02c?_0x22b181-_0x4513fb['y']:_0x4513fb['y'];if(_0x3c920c!==0x0&&_0x3c920c!=null){let _0x5c3db6=_0x3c920c*Math['PI']/0xb4,_0x1b042b=Math[_0x1390ed(0x174)](_0x5c3db6),_0x449090=Math[_0x1390ed(0x17c)](_0x5c3db6),_0x35eca6=_0x477451/0x2,_0x1fe1ee=_0x22b181/0x2,_0x4d3064=_0x190efd-_0x35eca6,_0x19f7d7=_0x54f937-_0x1fe1ee;_0x190efd=_0x35eca6+_0x4d3064*_0x1b042b-_0x19f7d7*_0x449090,_0x54f937=_0x1fe1ee+_0x4d3064*_0x449090+_0x19f7d7*_0x1b042b;}_0x190efd+=_0x2bbded,_0x54f937+=_0x44205b;let _0x511cf6=_0x4513fb['ang']/0xea60;_0x29d677&&(_0x511cf6=0xb4-_0x511cf6),_0x13b02c&&(_0x511cf6=-_0x511cf6),_0x511cf6+=_0x3c920c||0x0,_0x511cf6=(_0x511cf6%0x168+0x168)%0x168;let _0x40bc38=_0x3b0a2({'left':_0x2bbded,'top':_0x44205b,'width':_0x477451,'height':_0x22b181},_0x3c920c||0x0);return{'point':{'x':_0x190efd,'y':_0x54f937},'angle':_0x511cf6,'bounds':_0x40bc38};}[_0x318f8d(0x17b)](_0x46d29e,_0x317e18,_0x2cf1d5,_0x50f7a4,_0x1906a4,_0x43c46e,_0x3bd2df,_0x35663b,_0x562971,_0x5779cb){const _0x4decb7=_0x318f8d;let _0x56dd21=this['_sheetSkeletonService'][_0x4decb7(0x10e)](_0x46d29e,_0x317e18);if(!_0x56dd21)return;let _0x348a73=_0x50f7a4['getShapeRelation'](),_0x4eaa85=_0x50f7a4[_0x4decb7(0x12b)](),_0x23c010={},_0x53e9d={};_0x4eaa85[_0x4decb7(0x178)](_0x2af03a=>{const _0x17a95a=_0x4decb7;let _0xd28af1=_0x50f7a4[_0x17a95a(0x122)](_0x2af03a);_0x53e9d[_0x2af03a]=_0xd28af1??0x0;});let _0x306256=this[_0x4decb7(0xf6)](_0x1906a4,_0x46d29e,_0x317e18,_0x562971,_0x5779cb),_0x5038d1=this['_getConnectPointInfo'](_0x43c46e,_0x46d29e,_0x317e18,_0x562971,_0x5779cb);if(_0x306256&&_0x5038d1){let _0x465d2c=_0x50f7a4[_0x4decb7(0x13a)](),_0x4070bb=_0x2cd747(_0x306256,_0x5038d1,_0x465d2c),_0x356a5d=_0x465d2c;if(_0x4070bb){let _0xea0f43=_0x2dada7(_0x4070bb,_0x50f7a4[_0x4decb7(0x13a)]()),_0x3449ce=this[_0x4decb7(0x135)]['getDrawingData'](_0x46d29e,_0x317e18);if(_0x3449ce&&_0x3449ce[_0x2cf1d5]){let _0x3cd431=_0x3449ce[_0x2cf1d5];_0x356a5d=_0xea0f43[_0x4decb7(0x109)];for(let [_0x134961,_0x76a3fe]of Object[_0x4decb7(0x183)](_0xea0f43['adjustValues']))_0x23c010[_0x134961]=_0x76a3fe;let _0x1a2e1d={..._0x3cd431[_0x4decb7(0x184)],'width':_0xea0f43['worldRect'][_0x4decb7(0x114)],'height':_0xea0f43[_0x4decb7(0x118)][_0x4decb7(0x18f)],'left':_0xea0f43['worldRect'][_0x4decb7(0x18a)],'top':_0xea0f43[_0x4decb7(0x118)][_0x4decb7(0x11d)],'flipX':_0xea0f43[_0x4decb7(0x118)]['flipX'],'flipY':_0xea0f43[_0x4decb7(0x118)][_0x4decb7(0xe4)],'angle':_0xea0f43[_0x4decb7(0x162)]},_0x153b8b=_0x5ce281(_0x1a2e1d,_0x56dd21),_0x340573=_0x2fc0e6(_0x1a2e1d,_0x56dd21),_0x385287={'unitId':_0x46d29e,'subUnitId':_0x317e18,'drawingType':_0x19746e[_0x4decb7(0x14c)],'drawingId':_0x2cf1d5,'transform':_0x1a2e1d,'sheetTransform':_0x153b8b,'axisAlignSheetTransform':_0x340573},{unitId:_0x22e0f7,subUnitId:_0x1839a1,undo:_0x1c239e,redo:_0x55ee09,objects:_0x17feed}=this[_0x4decb7(0x135)][_0x4decb7(0x16e)]([_0x385287]);_0x3bd2df[_0x4decb7(0x13c)]({'id':_0x348df4['id'],'params':{'unitId':_0x22e0f7,'subUnitId':_0x1839a1,'op':_0x55ee09,'objects':_0x17feed,'type':_0x140f2f['UPDATE']}}),_0x35663b[_0x4decb7(0x13c)]({'id':_0x348df4['id'],'params':{'unitId':_0x22e0f7,'subUnitId':_0x1839a1,'op':_0x1c239e,'objects':_0x17feed,'type':_0x140f2f[_0x4decb7(0xca)]}});}_0x50f7a4[_0x4decb7(0x169)]();}_0x3bd2df[_0x4decb7(0x13c)]({'id':Q['id'],'params':{'unitId':_0x46d29e,'subUnitId':_0x317e18,'shapeId':_0x2cf1d5,'shapeType':_0x356a5d,'shapeData':{'adjustValues':_0x23c010,'relation':_0x348a73}}}),_0x35663b['push']({'id':Q['id'],'params':{'unitId':_0x46d29e,'subUnitId':_0x317e18,'shapeId':_0x2cf1d5,'shapeType':_0x465d2c,'shapeData':{'adjustValues':_0x53e9d,'relation':_0x348a73}}});}}['_addLineFollowShapeUpdates'](_0x538b1b,_0x4a877b,_0x1473a9,_0x4db2cd,_0x66ef62,_0x8b2972,_0x438276,_0x401f12,_0x55fea9,_0x313f59){const _0x62e20b=_0x318f8d;var _0x4ece6e;if(!_0x66ef62)return;let _0x51ad49=this['_sheetSkeletonService']['getSkeleton'](_0x538b1b,_0x4a877b);if(!_0x51ad49)return;let _0x2d2904=(_0x4ece6e=this[_0x62e20b(0x135)][_0x62e20b(0x139)]({'unitId':_0x538b1b,'subUnitId':_0x4a877b,'drawingId':_0x55fea9}))==null?void 0x0:_0x4ece6e[_0x62e20b(0x184)];if(!_0x2d2904)return;let _0x150ea8=_0x2d2904['left']!==_0x313f59['left']||_0x2d2904['top']!==_0x313f59[_0x62e20b(0x11d)],_0x1f358f=_0x2d2904[_0x62e20b(0x114)]!==_0x313f59[_0x62e20b(0x114)]||_0x2d2904[_0x62e20b(0x18f)]!==_0x313f59['height'],_0x34e9dd=_0x2d2904['flipX']!==_0x313f59[_0x62e20b(0x18c)]||_0x2d2904[_0x62e20b(0xe4)]!==_0x313f59['flipY'],_0x3b80b0=_0x2d2904[_0x62e20b(0x151)]!==_0x313f59[_0x62e20b(0x151)];if(_0x150ea8&&!_0x1f358f&&!_0x34e9dd&&!_0x3b80b0){let _0x121c95=(_0x313f59[_0x62e20b(0x18a)]??0x0)-(_0x2d2904['left']??0x0),_0x4311e9=(_0x313f59[_0x62e20b(0x11d)]??0x0)-(_0x2d2904[_0x62e20b(0x11d)]??0x0),_0x3070d4=this[_0x62e20b(0x135)]['getDrawingData'](_0x538b1b,_0x4a877b);if(_0x3070d4&&_0x3070d4[_0x1473a9]){var _0x43cbf2,_0x4b8117;let _0x3234b9=_0x3070d4[_0x1473a9],_0x315f1d={..._0x3234b9[_0x62e20b(0x184)],'left':(((_0x43cbf2=_0x3234b9[_0x62e20b(0x184)])==null?void 0x0:_0x43cbf2[_0x62e20b(0x18a)])??0x0)+_0x121c95,'top':(((_0x4b8117=_0x3234b9[_0x62e20b(0x184)])==null?void 0x0:_0x4b8117[_0x62e20b(0x11d)])??0x0)+_0x4311e9},_0x12466c=_0x5ce281(_0x315f1d,_0x51ad49),_0x4de1d1=_0x2fc0e6(_0x315f1d,_0x51ad49),_0x2b8de5={'unitId':_0x538b1b,'subUnitId':_0x4a877b,'drawingType':_0x19746e[_0x62e20b(0x14c)],'drawingId':_0x1473a9,'transform':_0x315f1d,'sheetTransform':_0x12466c,'axisAlignSheetTransform':_0x4de1d1},{unitId:_0x250fd7,subUnitId:_0x2da025,undo:_0x241c09,redo:_0x44d155,objects:_0x5ea9b8}=this[_0x62e20b(0x135)][_0x62e20b(0x16e)]([_0x2b8de5]);_0x438276[_0x62e20b(0x13c)]({'id':_0x348df4['id'],'params':{'unitId':_0x250fd7,'subUnitId':_0x2da025,'op':_0x44d155,'objects':_0x5ea9b8,'type':_0x140f2f[_0x62e20b(0xca)]}}),_0x401f12['push']({'id':_0x348df4['id'],'params':{'unitId':_0x250fd7,'subUnitId':_0x2da025,'op':_0x241c09,'objects':_0x5ea9b8,'type':_0x140f2f['UPDATE']}});}}else{let _0x3f865d=_0x4db2cd[_0x62e20b(0x15f)](),_0x4570f1=_0x4db2cd[_0x62e20b(0xe1)]();this[_0x62e20b(0x17b)](_0x538b1b,_0x4a877b,_0x1473a9,_0x4db2cd,_0x3f865d,_0x4570f1,_0x438276,_0x401f12,_0x55fea9,_0x313f59);}}};Te=le([X(0x0,_0x284dd9),X(0x1,_0xab1f83(_0x5a1116)),X(0x2,_0xab1f83(_0x54030d)),X(0x3,_0xab1f83(Z)),X(0x4,_0xab1f83(_0x5f2880)),X(0x5,_0xab1f83(_0x2df937)),X(0x6,_0xab1f83(Ce))],Te);let Ee=class extends _0x130970{constructor(_0x4f9ee5,_0x14e400,_0x2acffb){const _0x47632e=_0x318f8d;super(),this[_0x47632e(0x108)]=_0x4f9ee5,this[_0x47632e(0x138)]=_0x14e400,this[_0x47632e(0xd5)](_0x2acffb[_0x47632e(0xfa)](this));}[_0x318f8d(0x184)](_0x29a64f){const _0x463f4e=_0x318f8d;let _0x3511fc={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x463f4e(0x194)](_0x29a64f,_0x3511fc);for(let [_0x1a468f,_0x2b3b57]of _0x29a64f[_0x463f4e(0x165)])this[_0x463f4e(0x173)](_0x29a64f,_0x1a468f,_0x2b3b57,_0x3511fc);return _0x3511fc;}[_0x318f8d(0x194)](_0x488295,_0x1b7e46){const _0x420c9c=_0x318f8d;if(_0x488295[_0x420c9c(0x187)]===_0x420c9c(0x131))for(let _0x403df4 of _0x488295[_0x420c9c(0xf9)]){let _0x16ccc0=_0x488295[_0x420c9c(0x165)][_0x420c9c(0xc4)](_0x403df4),_0x4ccf5d=this['_shapeService'][_0x420c9c(0x101)](_0x488295['unitId'],_0x488295[_0x420c9c(0x11e)],_0x403df4);(_0x16ccc0==null?void 0x0:_0x16ccc0['drawingType'])!==_0x19746e[_0x420c9c(0x14c)]||!_0x4ccf5d||(_0x1b7e46[_0x420c9c(0x132)][_0x420c9c(0x13c)]({'id':de['id'],'params':{'unitId':_0x488295[_0x420c9c(0x125)],'subUnitId':_0x488295[_0x420c9c(0x11e)],'shapeId':_0x403df4}}),_0x1b7e46[_0x420c9c(0x186)]['push']({'id':ue['id'],'params':{'unitId':_0x488295[_0x420c9c(0x125)],'subUnitId':_0x488295[_0x420c9c(0x11e)],'shapeId':_0x403df4,'shapeName':_0x4ccf5d['getName'](),'shapeType':_0x4ccf5d['getShapeType'](),'shapeData':_0x3b1473[_0x420c9c(0x176)](_0x4ccf5d[_0x420c9c(0xc5)]())}}));}}[_0x318f8d(0x173)](_0x3c0ab8,_0x25190b,_0xa8c98f,_0x1bed12){const _0x502dc1=_0x318f8d;if(_0xa8c98f[_0x502dc1(0x147)]!==_0x19746e[_0x502dc1(0x14c)]||_0x3c0ab8[_0x502dc1(0xf9)]['has'](_0x25190b))return;let _0x347918=this[_0x502dc1(0x108)][_0x502dc1(0x101)](_0x3c0ab8[_0x502dc1(0x125)],_0x3c0ab8[_0x502dc1(0x11e)],_0x25190b);if(!_0x347918||!_0x2b34a7(_0x347918['getShapeType']()))return;let _0x2801e3=_0x347918[_0x502dc1(0x150)]();if(!(_0x3c0ab8['updates'][_0x502dc1(0x18e)](_0x25190b)||_0x2801e3!=null&&_0x2801e3[_0x502dc1(0x17d)]&&(_0x3c0ab8['updates'][_0x502dc1(0x18e)](_0x2801e3['from']['shapeId'])||_0x3c0ab8[_0x502dc1(0xf9)]['has'](_0x2801e3['from']['shapeId']))||_0x2801e3!=null&&_0x2801e3['to']&&(_0x3c0ab8[_0x502dc1(0x157)][_0x502dc1(0x18e)](_0x2801e3['to'][_0x502dc1(0x12f)])||_0x3c0ab8[_0x502dc1(0xf9)][_0x502dc1(0x18e)](_0x2801e3['to'][_0x502dc1(0x12f)]))))return;let _0x52b8ec=_0x3c0ab8[_0x502dc1(0x157)]['get'](_0x25190b)??_0xa8c98f,_0x20f7c2=this[_0x502dc1(0xf1)](_0x3c0ab8,_0x52b8ec);if(!_0x20f7c2)return;let _0x489014=_0x3be74b(_0x20f7c2);if(_0x489014[_0x502dc1(0xef)]<0x2)return;let _0x32448a=_0x3b1473[_0x502dc1(0x176)](_0x2801e3??{}),_0x2d0c57=_0x32448a[_0x502dc1(0x17d)]&&this[_0x502dc1(0x142)](_0x3c0ab8,_0x32448a['from'][_0x502dc1(0x12f)],_0x32448a[_0x502dc1(0x17d)]['cxnIndex']),_0x344c95=_0x32448a['to']&&this[_0x502dc1(0x142)](_0x3c0ab8,_0x32448a['to']['shapeId'],_0x32448a['to'][_0x502dc1(0x141)]);_0x32448a[_0x502dc1(0x17d)]&&!_0x2d0c57&&delete _0x32448a[_0x502dc1(0x17d)],_0x32448a['to']&&!_0x344c95&&delete _0x32448a['to'];let _0x4c7d67=_0x2ded11(_0x20f7c2,_0x2d0c57||_0x3840a7((_0x344c95==null?void 0x0:_0x344c95[_0x502dc1(0x130)])??_0x489014[_0x489014[_0x502dc1(0xef)]-0x1],_0x489014[0x0]),_0x344c95||_0x3840a7((_0x2d0c57==null?void 0x0:_0x2d0c57[_0x502dc1(0x130)])??_0x489014[0x0],_0x489014[_0x489014['length']-0x1]),_0x32448a);if(!(!(_0x4c7d67!=null&&_0x4c7d67[_0x502dc1(0x184)])||!_0x4c7d67['shapeType']||!_0x4c7d67[_0x502dc1(0x153)])){if(this[_0x502dc1(0x148)](_0x3c0ab8,_0x52b8ec,_0x4c7d67),_0x3c0ab8[_0x502dc1(0x187)]===_0x502dc1(0x117)){_0x347918[_0x502dc1(0x18b)](_0x4c7d67['shapeType']),_0x347918[_0x502dc1(0x137)](_0x3b1473[_0x502dc1(0x176)](_0x4c7d67[_0x502dc1(0x153)]),!0x1);return;}_0x1bed12[_0x502dc1(0xde)]['push']({'id':Q['id'],'params':{'unitId':_0x3c0ab8[_0x502dc1(0x125)],'subUnitId':_0x3c0ab8[_0x502dc1(0x11e)],'shapeId':_0x25190b,'shapeType':_0x4c7d67[_0x502dc1(0x17a)],'shapeData':_0x3b1473[_0x502dc1(0x176)](_0x4c7d67[_0x502dc1(0x153)]),'replace':!0x0}}),_0x1bed12[_0x502dc1(0x186)]['push']({'id':Q['id'],'params':{'unitId':_0x3c0ab8[_0x502dc1(0x125)],'subUnitId':_0x3c0ab8[_0x502dc1(0x11e)],'shapeId':_0x25190b,'shapeType':_0x347918[_0x502dc1(0x13a)](),'shapeData':_0x3b1473['deepClone'](_0x347918[_0x502dc1(0xc5)]()),'replace':!0x0}});}}[_0x318f8d(0x142)](_0x1d44d9,_0x23b256,_0x35b565){const _0x8c72a8=_0x318f8d;if(_0x1d44d9[_0x8c72a8(0xf9)][_0x8c72a8(0x18e)](_0x23b256))return null;let _0x2346b4=_0x1d44d9[_0x8c72a8(0x157)]['get'](_0x23b256)??_0x1d44d9[_0x8c72a8(0x165)][_0x8c72a8(0xc4)](_0x23b256);if(!_0x2346b4)return null;let _0x2fb42c=this[_0x8c72a8(0xf1)](_0x1d44d9,_0x2346b4);return _0x2fb42c?_0x1151d6(_0x2fb42c,_0x35b565):null;}[_0x318f8d(0xf1)](_0x534eb1,_0x1824c0){const _0x36e784=_0x318f8d;let _0x3f3400={'hostType':_0x1d598f[_0x36e784(0x105)],'unitId':_0x534eb1['unitId'],'subUnitId':_0x534eb1[_0x36e784(0x11e)],'shapeId':_0x1824c0[_0x36e784(0xdb)]},_0x3b0308=this[_0x36e784(0x138)][_0x36e784(0x155)](_0x3f3400);return!_0x3b0308||!_0x1824c0['transform']?null:{..._0x3b0308,'transform':{'left':_0x1824c0[_0x36e784(0x184)]['left']??0x0,'top':_0x1824c0[_0x36e784(0x184)]['top']??0x0,'width':_0x1824c0['transform'][_0x36e784(0x114)]??0x0,'height':_0x1824c0[_0x36e784(0x184)][_0x36e784(0x18f)]??0x0,'rotation':_0x1824c0[_0x36e784(0x184)]['angle']??0x0,'flipX':_0x1824c0[_0x36e784(0x184)][_0x36e784(0x18c)]??!0x1,'flipY':_0x1824c0[_0x36e784(0x184)][_0x36e784(0xe4)]??!0x1}};}['_applyUpdate'](_0x430dcb,_0x172367,_0x5163e9){const _0x37e190=_0x318f8d;let _0x29bcbf=_0x172367,_0x3838f5={..._0x172367[_0x37e190(0x184)],'left':_0x5163e9['transform'][_0x37e190(0x18a)],'top':_0x5163e9[_0x37e190(0x184)][_0x37e190(0x11d)],'width':_0x5163e9[_0x37e190(0x184)]['width'],'height':_0x5163e9[_0x37e190(0x184)][_0x37e190(0x18f)],'angle':_0x5163e9[_0x37e190(0x184)][_0x37e190(0x162)],'flipX':_0x5163e9[_0x37e190(0x184)]['flipX'],'flipY':_0x5163e9[_0x37e190(0x184)][_0x37e190(0xe4)]},_0xc5b38a={..._0x29bcbf,'transform':_0x3838f5,'sheetTransform':_0x5ce281(_0x3838f5,_0x430dcb['skeleton']),'axisAlignSheetTransform':_0x2fc0e6(_0x3838f5,_0x430dcb[_0x37e190(0x13e)]),'data':{..._0x29bcbf[_0x37e190(0x190)],'shapeType':_0x5163e9['shapeType'],'shapeData':_0x3b1473[_0x37e190(0x176)](_0x5163e9[_0x37e190(0x153)])}};_0x430dcb[_0x37e190(0x157)][_0x37e190(0x10f)](_0x172367[_0x37e190(0xdb)],_0xc5b38a);}};Ee=le([X(0x0,_0xab1f83(Z)),X(0x1,_0xab1f83(Ce)),X(0x2,_0xab1f83(_0x5cc45b))],Ee);let $=class extends _0xb4a149{constructor(_0x3c3794=we,_0x20e6ed,_0x4876b3){const _0x448c4c=_0x318f8d;super(),this['_config']=_0x3c3794,this[_0x448c4c(0x15a)]=_0x20e6ed,this['_configService']=_0x4876b3;let {..._0x16269a}=_0xffa337({},we,this['_config']);this['_configService'][_0x448c4c(0x11c)](_0x448c4c(0x13b),_0x16269a);}[_0x318f8d(0x198)](){const _0x4eca79=_0x318f8d;let _0x377c6e=this['_injector'];[[ce],[Z],[Ce],[Ee],[Te]]['forEach'](_0x9f2c94=>_0x377c6e[_0x4eca79(0xc7)](_0x9f2c94)),_0x45e5ee(_0x377c6e,[[Z],[Ee],[Te]]);}};Y($,_0x318f8d(0xdc),_0x1d598f['UNIVER_SHEET']),Y($,_0x318f8d(0x10c),_0x318f8d(0x14d)),Y($,_0x318f8d(0x182),be),Y($,'version',xe),$=le([_0x1b7e82(_0xd5e84e,_0x5d2b80,_0x2842f2,_0x59c084,_0x359a1a),X(0x1,_0xab1f83(_0x1c83bd)),X(0x2,_0x4d6ad0)],$);export{ie as DEFAULT_SHAPE_HEIGHT,re as DEFAULT_SHAPE_WIDTH,fe as InsertShapeCommand,ue as InsertSheetsShapeMutation,de as RemoveSheetsShapeMutation,pe as SetShapeDrawingDataCommand,he as SetSheetsShapeRotateCommand,ge as SetSheetsShapeTextVerticalToggleCommand,Z as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,Q as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
|
|
@@ -22,5 +22,6 @@ export declare class SheetShapeHostAdapter implements IShapeHostAdapter {
|
|
|
22
22
|
bringForward(ref: IShapeRef): boolean;
|
|
23
23
|
sendBackward(ref: IShapeRef): boolean;
|
|
24
24
|
sendToBack(ref: IShapeRef): boolean;
|
|
25
|
+
setZOrder(ref: IShapeRef, index: number): boolean;
|
|
25
26
|
private _arrange;
|
|
26
27
|
}
|
|
@@ -1,5 +1,84 @@
|
|
|
1
|
+
import type { IShapeRef } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { Injector } from '@univerjs/core';
|
|
3
|
+
import type { ISheetDrawingPlacement, ISheetDrawingPlacementInput } from '@univerjs/sheets-drawing';
|
|
4
|
+
import { IShapeHostAdapterRegistry } from '@univerjs-pro/engine-shape';
|
|
1
5
|
import { FShape } from '@univerjs-pro/engine-shape/facade';
|
|
6
|
+
import { ICommandService } from '@univerjs/core';
|
|
7
|
+
import { ISheetDrawingService } from '@univerjs/sheets-drawing';
|
|
2
8
|
export declare class FSheetShape extends FShape {
|
|
9
|
+
private readonly _sheetDrawingService;
|
|
10
|
+
constructor(shapeRef: IShapeRef, injector: Injector, shapeHostAdapterRegistry: IShapeHostAdapterRegistry, commandService: ICommandService, _sheetDrawingService: ISheetDrawingService);
|
|
11
|
+
/**
|
|
12
|
+
* Returns this Shape's current Sheet placement.
|
|
13
|
+
*
|
|
14
|
+
* Position is OneCell (`from + width + height`), Both is TwoCell
|
|
15
|
+
* (`from + to`), and None is an absolute Sheet rectangle.
|
|
16
|
+
*
|
|
17
|
+
* @returns {ISheetDrawingPlacement | null} The current placement, or `null` when the Shape no longer exists.
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const workbook = univerAPI.getActiveWorkbook();
|
|
21
|
+
* const worksheet = workbook?.getActiveSheet();
|
|
22
|
+
* const shape = worksheet?.getShapes()[0];
|
|
23
|
+
* console.log(shape?.getPlacement());
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
getPlacement(): ISheetDrawingPlacement | null;
|
|
27
|
+
/**
|
|
28
|
+
* Updates this Shape's Sheet placement through `SetSheetDrawingPlacementCommand`.
|
|
29
|
+
*
|
|
30
|
+
* Use exact markers when the caller owns the cell relationship. Use
|
|
31
|
+
* `{ kind, bounds }` when the caller owns a rectangle and wants Univer to
|
|
32
|
+
* infer the markers from the current Sheet grid. Position is appropriate
|
|
33
|
+
* for a fixed-size object that moves with its start cell; Both is
|
|
34
|
+
* appropriate when both position and size follow the grid; None is
|
|
35
|
+
* appropriate for a free absolute object.
|
|
36
|
+
*
|
|
37
|
+
* @param {ISheetDrawingPlacementInput} placement Exact markers or model-space bounds with an explicit anchor type.
|
|
38
|
+
* @returns {boolean} Whether the command succeeded.
|
|
39
|
+
* @example Position inferred from bounds
|
|
40
|
+
* ```ts
|
|
41
|
+
* shape.setPlacement({
|
|
42
|
+
* kind: univerAPI.Enum.SheetDrawingAnchorType.Position,
|
|
43
|
+
* bounds: { left: 120, top: 80, width: 240, height: 120 },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
* @example Position with exact marker
|
|
47
|
+
* ```ts
|
|
48
|
+
* shape.setPlacement({
|
|
49
|
+
* kind: univerAPI.Enum.SheetDrawingAnchorType.Position,
|
|
50
|
+
* from: { row: 2, column: 2, rowOffset: 8, columnOffset: 8 },
|
|
51
|
+
* width: 240,
|
|
52
|
+
* height: 120,
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
* @example Both inferred from bounds
|
|
56
|
+
* ```ts
|
|
57
|
+
* shape.setPlacement({
|
|
58
|
+
* kind: univerAPI.Enum.SheetDrawingAnchorType.Both,
|
|
59
|
+
* bounds: { left: 120, top: 80, width: 360, height: 180 },
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
* @example Both with exact markers
|
|
63
|
+
* ```ts
|
|
64
|
+
* shape.setPlacement({
|
|
65
|
+
* kind: univerAPI.Enum.SheetDrawingAnchorType.Both,
|
|
66
|
+
* from: { row: 2, column: 2, rowOffset: 8, columnOffset: 8 },
|
|
67
|
+
* to: { row: 8, column: 6, rowOffset: 0, columnOffset: 0 },
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
* @example Absolute
|
|
71
|
+
* ```ts
|
|
72
|
+
* shape.setPlacement({
|
|
73
|
+
* kind: univerAPI.Enum.SheetDrawingAnchorType.None,
|
|
74
|
+
* left: 640,
|
|
75
|
+
* top: 96,
|
|
76
|
+
* width: 240,
|
|
77
|
+
* height: 120,
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
setPlacement(placement: ISheetDrawingPlacementInput): boolean;
|
|
3
82
|
/**
|
|
4
83
|
* Sets the Shape position from a zero-based Sheet cell anchor and pixel offsets.
|
|
5
84
|
* @param {number} anchorRowPos Row containing the Shape's top edge.
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1b9d(){const _0x10156b=['getShape','FConnectorShape','FSheetShape','IShapeHostAdapterRegistry','_injector','\x22\x20has\x20no\x20transform\x20extent.','SetSheetDrawingPlacementCommand','length','FWorksheet','setPlacement','UniverProSheetsShapeFacade','listShapes','UNIVER_SHEET','1520906MiCmoi','_getShapeAdapter','@univerjs-pro/engine-shape/facade','68090hRZOgN','getOwnPropertyDescriptor','function','exports','object','getDrawingByParam','119EebrYY','insertShape','subUnitId','UniverInstanceType','warn','_createShapeHandle','179274JFHuVl','amd','5AWMkwQ','UniverSheetsDrawing','transform','getSheetId','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','UniverProEngineShapeFacade','isConnectorShape','createInstance','9490970wRYjNE','extend','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','\x22\x20was\x20not\x20found.','ICommandService','UniverCore','_sheetDrawingService','shapeType','523992EyHNFh','8131023rfgQrL','@univerjs/sheets-drawing','UniverSheetsFacade','3hcoEKx','FShape','_getShapeScope','@univerjs-pro/engine-shape','shapeId','6981096YuOacf','_shapeRef','syncExecuteCommand','UniverProEngineShape','getWorkbook','width','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','height','map','decorate','@univerjs/sheets/facade','_commandService','defineProperty','get','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','unitId','Position'];_0x1b9d=function(){return _0x10156b;};return _0x1b9d();}function _0x5de3(_0x544fb8,_0x513757){_0x544fb8=_0x544fb8-0x17e;const _0x1b9ded=_0x1b9d();let _0x5de3f6=_0x1b9ded[_0x544fb8];return _0x5de3f6;}(function(_0x425bb7,_0x18bb39){const _0x4f4517=_0x5de3,_0x2513a7=_0x425bb7();while(!![]){try{const _0x3c032f=-parseInt(_0x4f4517(0x190))/0x1+parseInt(_0x4f4517(0x18d))/0x2*(parseInt(_0x4f4517(0x1b2))/0x3)+parseInt(_0x4f4517(0x1ae))/0x4*(parseInt(_0x4f4517(0x19e))/0x5)+parseInt(_0x4f4517(0x19c))/0x6*(parseInt(_0x4f4517(0x196))/0x7)+-parseInt(_0x4f4517(0x1b7))/0x8+-parseInt(_0x4f4517(0x1af))/0x9+parseInt(_0x4f4517(0x1a6))/0xa;if(_0x3c032f===_0x18bb39)break;else _0x2513a7['push'](_0x2513a7['shift']());}catch(_0x19e6dc){_0x2513a7['push'](_0x2513a7['shift']());}}}(_0x1b9d,0x7b1fd),function(_0xfb0bc4,_0x60dad2){const _0x503b46=_0x5de3;typeof exports==_0x503b46(0x194)&&typeof module<'u'?_0x60dad2(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets-drawing')):typeof define==_0x503b46(0x192)&&define[_0x503b46(0x19d)]?define([_0x503b46(0x193),_0x503b46(0x1b5),_0x503b46(0x18f),'@univerjs/core',_0x503b46(0x1c1),_0x503b46(0x1b0)],_0x60dad2):(_0xfb0bc4=typeof globalThis<'u'?globalThis:_0xfb0bc4||self,_0x60dad2(_0xfb0bc4[_0x503b46(0x18a)]={},_0xfb0bc4[_0x503b46(0x1ba)],_0xfb0bc4[_0x503b46(0x1a3)],_0xfb0bc4[_0x503b46(0x1ab)],_0xfb0bc4[_0x503b46(0x1b1)],_0xfb0bc4[_0x503b46(0x19f)]));}(this,function(_0x84ef5c,_0x232f6b,_0x18c1a4,_0x510c65,_0xc1321,_0x349086){const _0x17de36=_0x5de3;Object[_0x17de36(0x1c3)](_0x84ef5c,Symbol['toStringTag'],{'value':'Module'});function _0x34a9fd(_0xaf54d1,_0x3a2158){return function(_0x221ee8,_0x510864){_0x3a2158(_0x221ee8,_0x510864,_0xaf54d1);};}function _0x2445bc(_0x4a9b91,_0x33bfa6,_0x449285,_0x2c96ee){const _0x3cf96e=_0x17de36;var _0x2f9489=arguments[_0x3cf96e(0x187)],_0x169701=_0x2f9489<0x3?_0x33bfa6:_0x2c96ee===null?_0x2c96ee=Object[_0x3cf96e(0x191)](_0x33bfa6,_0x449285):_0x2c96ee,_0xd2aaf4;if(typeof Reflect==_0x3cf96e(0x194)&&typeof Reflect[_0x3cf96e(0x1c0)]==_0x3cf96e(0x192))_0x169701=Reflect[_0x3cf96e(0x1c0)](_0x4a9b91,_0x33bfa6,_0x449285,_0x2c96ee);else{for(var _0x2eca84=_0x4a9b91[_0x3cf96e(0x187)]-0x1;_0x2eca84>=0x0;_0x2eca84--)(_0xd2aaf4=_0x4a9b91[_0x2eca84])&&(_0x169701=(_0x2f9489<0x3?_0xd2aaf4(_0x169701):_0x2f9489>0x3?_0xd2aaf4(_0x33bfa6,_0x449285,_0x169701):_0xd2aaf4(_0x33bfa6,_0x449285))||_0x169701);}return _0x2f9489>0x3&&_0x169701&&Object[_0x3cf96e(0x1c3)](_0x33bfa6,_0x449285,_0x169701),_0x169701;}let _0x59188f=class extends _0x18c1a4[_0x17de36(0x1b3)]{constructor(_0x21dc3f,_0x5a47cf,_0x3ed66c,_0x269e0e,_0x270a9d){const _0x5cdee3=_0x17de36;super(_0x21dc3f,_0x5a47cf,_0x3ed66c,_0x269e0e),this[_0x5cdee3(0x1ac)]=_0x270a9d;}['getPlacement'](){const _0x5f43d4=_0x17de36;let _0x2c0d63=this[_0x5f43d4(0x1ac)]['getDrawingByParam']({'unitId':this[_0x5f43d4(0x1b8)]['unitId'],'subUnitId':this[_0x5f43d4(0x1b8)][_0x5f43d4(0x198)],'drawingId':this[_0x5f43d4(0x1b8)]['shapeId']});return _0x2c0d63?(0x0,_0x349086['getSheetDrawingPlacement'])(_0x2c0d63):null;}[_0x17de36(0x189)](_0x1d05fc){const _0x4ea0ed=_0x17de36;return this[_0x4ea0ed(0x1c2)]['syncExecuteCommand'](_0x349086[_0x4ea0ed(0x186)]['id'],{'unitId':this[_0x4ea0ed(0x1b8)]['unitId'],'subUnitId':this['_shapeRef']['subUnitId'],'drawings':[{'drawingId':this[_0x4ea0ed(0x1b8)][_0x4ea0ed(0x1b6)],'placement':_0x1d05fc}]});}['setPosition'](_0x265c16,_0x23086f,_0x3c8e0a,_0x419252){const _0x2c7f6f=_0x17de36;var _0x1a3e80,_0xcfa74c;let _0x14f207=this[_0x2c7f6f(0x1ac)][_0x2c7f6f(0x195)]({'unitId':this[_0x2c7f6f(0x1b8)][_0x2c7f6f(0x17e)],'subUnitId':this[_0x2c7f6f(0x1b8)][_0x2c7f6f(0x198)],'drawingId':this[_0x2c7f6f(0x1b8)]['shapeId']});if(!_0x14f207)return console['warn'](_0x2c7f6f(0x1a2)+this[_0x2c7f6f(0x1b8)][_0x2c7f6f(0x1b6)]+_0x2c7f6f(0x1a9)),this;let _0xc663d5=(_0x1a3e80=_0x14f207['transform'])==null?void 0x0:_0x1a3e80[_0x2c7f6f(0x1bc)],_0x13fe01=(_0xcfa74c=_0x14f207[_0x2c7f6f(0x1a0)])==null?void 0x0:_0xcfa74c[_0x2c7f6f(0x1be)];return _0xc663d5==null||_0x13fe01==null?(console[_0x2c7f6f(0x19a)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this['_shapeRef'][_0x2c7f6f(0x1b6)]+_0x2c7f6f(0x185)),this):(this[_0x2c7f6f(0x1c2)][_0x2c7f6f(0x1b9)](_0x349086[_0x2c7f6f(0x186)]['id'],{'unitId':this['_shapeRef']['unitId'],'subUnitId':this[_0x2c7f6f(0x1b8)][_0x2c7f6f(0x198)],'drawings':[{'drawingId':this[_0x2c7f6f(0x1b8)]['shapeId'],'placement':{'kind':_0x349086['SheetDrawingAnchorType'][_0x2c7f6f(0x17f)],'from':{'row':_0x265c16,'column':_0x23086f,'rowOffset':_0x3c8e0a,'columnOffset':_0x419252},'width':_0xc663d5,'height':_0x13fe01}}]}),this);}};_0x59188f=_0x2445bc([_0x34a9fd(0x2,_0x232f6b[_0x17de36(0x183)]),_0x34a9fd(0x3,_0x510c65[_0x17de36(0x1aa)]),_0x34a9fd(0x4,_0x349086['ISheetDrawingService'])],_0x59188f);var _0x226c83=class extends _0xc1321[_0x17de36(0x188)]{[_0x17de36(0x197)](_0x507eb7){const _0x3d5ad9=_0x17de36;let _0x1461ef=this[_0x3d5ad9(0x18e)]();if(!_0x1461ef)return null;try{let _0x28014b=_0x1461ef['createShape'](this['_getShapeScope'](),_0x507eb7);return _0x28014b?this[_0x3d5ad9(0x19b)](_0x28014b):(console[_0x3d5ad9(0x19a)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.'),null);}catch(_0x45206c){return console[_0x3d5ad9(0x19a)](_0x3d5ad9(0x1a8),_0x45206c),null;}}['getShape'](_0x52afbf){const _0x4c52ee=_0x17de36;let _0x408269=this['_getShapeAdapter']();if(!_0x408269)return null;try{let _0x5c2962={...this[_0x4c52ee(0x1b4)](),'shapeId':_0x52afbf},_0x2e0934=_0x408269[_0x4c52ee(0x180)](_0x5c2962);return _0x2e0934?this[_0x4c52ee(0x19b)](_0x2e0934):(console[_0x4c52ee(0x19a)](_0x4c52ee(0x1a2)+_0x52afbf+'\x22\x20was\x20not\x20found.'),null);}catch(_0x11a391){return console['warn'](_0x4c52ee(0x1c5)+_0x52afbf+'\x22.',_0x11a391),null;}}['getShapes'](){const _0x49d98e=_0x17de36;let _0x39ee34=this['_getShapeAdapter']();if(!_0x39ee34)return[];try{return _0x39ee34[_0x49d98e(0x18b)](this[_0x49d98e(0x1b4)]())[_0x49d98e(0x1bf)](_0x37554d=>this[_0x49d98e(0x19b)](_0x37554d));}catch(_0xdc3b40){return console[_0x49d98e(0x19a)](_0x49d98e(0x1bd),_0xdc3b40),[];}}['_getShapeScope'](){const _0x529c2d=_0x17de36;return{'hostType':_0x510c65['UniverInstanceType']['UNIVER_SHEET'],'unitId':this[_0x529c2d(0x1bb)]()['getUnitId'](),'subUnitId':this[_0x529c2d(0x1a1)]()};}[_0x17de36(0x18e)](){const _0x3c727c=_0x17de36;return this['_injector'][_0x3c727c(0x1c4)](_0x232f6b[_0x3c727c(0x183)])['get'](_0x510c65[_0x3c727c(0x199)][_0x3c727c(0x18c)]);}[_0x17de36(0x19b)](_0x25f91b){const _0xb4348=_0x17de36;let {unitId:_0x106368,subUnitId:_0x38cd88,shapeId:_0x23452e}=_0x25f91b,_0x4ca933={'unitId':_0x106368,'subUnitId':_0x38cd88,'shapeId':_0x23452e,'hostType':_0x510c65[_0xb4348(0x199)]['UNIVER_SHEET']};return(0x0,_0x232f6b[_0xb4348(0x1a4)])(_0x25f91b[_0xb4348(0x1ad)])?this[_0xb4348(0x184)][_0xb4348(0x1a5)](_0x18c1a4[_0xb4348(0x181)],_0x4ca933,this['_injector']):this['_injector'][_0xb4348(0x1a5)](_0x59188f,_0x4ca933,this[_0xb4348(0x184)]);}};_0xc1321[_0x17de36(0x188)][_0x17de36(0x1a7)](_0x226c83),Object[_0x17de36(0x1c3)](_0x84ef5c,_0x17de36(0x182),{'enumerable':!0x0,'get':function(){return _0x59188f;}});}));
|