@univerjs-pro/sheets-shape 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x151c8b=_0x1af7;(function(_0x20b385,_0x4baae8){const _0x52252b=_0x1af7,_0x4865d3=_0x20b385();while(!![]){try{const _0x4b16c7=-parseInt(_0x52252b(0x200))/0x1*(-parseInt(_0x52252b(0x29e))/0x2)+parseInt(_0x52252b(0x227))/0x3+parseInt(_0x52252b(0x239))/0x4*(-parseInt(_0x52252b(0x202))/0x5)+parseInt(_0x52252b(0x23b))/0x6*(parseInt(_0x52252b(0x252))/0x7)+parseInt(_0x52252b(0x1f8))/0x8+parseInt(_0x52252b(0x247))/0x9*(-parseInt(_0x52252b(0x248))/0xa)+parseInt(_0x52252b(0x27a))/0xb*(-parseInt(_0x52252b(0x255))/0xc);if(_0x4b16c7===_0x4baae8)break;else _0x4865d3['push'](_0x4865d3['shift']());}catch(_0x2b95b8){_0x4865d3['push'](_0x4865d3['shift']());}}}(_0x32c8,0x4f276));import{IShapeHostAdapterRegistry as _0x2fa80a,ShapeModel as _0x3c21a6,UniverShapePlugin as _0x9b4221,buildConnectorEndpointUpdate as _0x1906b0,canApplyShapeFormulaLastValue as _0x568fd9,computeConnectorRouteLayout as _0x4064df,createDefaultInsertedShapeData as _0x419dd5,createFreeConnectorPointInfo as _0x275ed3,createUniqueShapeName as _0x1fe204,getBasicShapeRotateBound as _0x3c798b,isConnectorShape as _0x2d6c01,resolveConnectorRoutePoints as _0x5ced46,resolveShapeConnectionPoint as _0x46aa4f,routeConnectorLineShape as _0xcf1d71}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x57ca34,CommandType as _0x454588,DependentOn as _0x1f6177,Disposable as _0x38c616,DrawingTypeEnum as _0x2a0192,ICommandService as _0x29da1d,IConfigService as _0xb091bb,IResourceManagerService as _0x8741cf,IUndoRedoService as _0x388be1,IUniverInstanceService as _0x11021c,Inject as _0x4d6358,Injector as _0x2ddf23,Plugin as _0x5ab01b,Tools as _0x44cf1c,UniverInstanceType as _0x543e53,generateRandomId as _0x2c6a2b,merge as _0x5ad21b,sequenceExecute as _0x3284cf,touchDependencies as _0x123ce4}from'@univerjs/core';import{SheetInterceptorService as _0x1e775a,SheetSkeletonService as _0x503013,UniverSheetsPlugin as _0x4abf60,getSheetCommandTarget as _0x4b4231}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x4f78e5,DrawingApplyType as _0x5d57ba,ISheetDrawingService as _0x208026,InsertSheetDrawingCommand as _0x149d24,RemoveSheetDrawingCommand as _0x3be4bc,SetDrawingApplyMutation as _0x2bb427,SetDrawingArrangeCommand as _0x2ba09c,SetSheetDrawingCommand as _0x24cf20,SheetDrawingAnchorType as _0x17db90,SheetDrawingTransformPlanService as _0x270690,UniverSheetsDrawingPlugin as _0x380ea5,transformToAxisAlignPosition as _0x458f48,transformToDrawingPosition as _0x18a95d}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x5bac1f}from'@univerjs-pro/license';import{IDrawingManagerService as _0x38b720,UniverDrawingPlugin as _0x302f81}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x20f36a){'@babel/helpers - typeof';const _0x122646=_0x1af7;return ae=typeof Symbol==_0x122646(0x1eb)&&typeof Symbol[_0x122646(0x21d)]==_0x122646(0x263)?function(_0x4d4ee8){return typeof _0x4d4ee8;}:function(_0x4b3217){const _0x5be9d3=_0x122646;return _0x4b3217&&typeof Symbol==_0x5be9d3(0x1eb)&&_0x4b3217[_0x5be9d3(0x1fe)]===Symbol&&_0x4b3217!==Symbol[_0x5be9d3(0x24b)]?_0x5be9d3(0x263):typeof _0x4b3217;},ae(_0x20f36a);}function oe(_0x191cae,_0x934cbe){const _0x617707=_0x1af7;if(ae(_0x191cae)!=_0x617707(0x1e1)||!_0x191cae)return _0x191cae;var _0xd801ca=_0x191cae[Symbol[_0x617707(0x287)]];if(_0xd801ca!==void 0x0){var _0x27e383=_0xd801ca[_0x617707(0x1f5)](_0x191cae,_0x934cbe||_0x617707(0x243));if(ae(_0x27e383)!=_0x617707(0x1e1))return _0x27e383;throw TypeError(_0x617707(0x205));}return(_0x934cbe===_0x617707(0x261)?String:Number)(_0x191cae);}function _0x1af7(_0x344c1e,_0x34d575){_0x344c1e=_0x344c1e-0x1d0;const _0x32c81e=_0x32c8();let _0x1af763=_0x32c81e[_0x344c1e];return _0x1af763;}function se(_0x10ede9){const _0x1d20a8=_0x1af7;var _0x2ab8f3=oe(_0x10ede9,_0x1d20a8(0x261));return ae(_0x2ab8f3)==_0x1d20a8(0x263)?_0x2ab8f3:_0x2ab8f3+'';}function X(_0x42743a,_0x237e30,_0x52d06d){const _0x21a85e=_0x1af7;return(_0x237e30=se(_0x237e30))in _0x42743a?Object[_0x21a85e(0x1d6)](_0x42743a,_0x237e30,{'value':_0x52d06d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x42743a[_0x237e30]=_0x52d06d,_0x42743a;}var ce=class extends _0x38c616{constructor(){const _0x55ca1c=_0x1af7;super(),X(this,'_shapes',new Map()),X(this,_0x55ca1c(0x271),new Set()),X(this,_0x55ca1c(0x1d1),new Set());}[_0x151c8b(0x1dd)](_0x38b3d8,_0xeba2ee,_0x5e9e4a,_0x39f9a0){const _0x311dea=_0x151c8b;let _0x3229c1=new _0x3c21a6(_0x38b3d8,_0xeba2ee,_0x5e9e4a,_0x39f9a0);return this[_0x311dea(0x1e7)][_0x311dea(0x214)](_0xeba2ee,_0x3229c1),_0x2d6c01(_0x38b3d8)&&this[_0x311dea(0x271)][_0x311dea(0x273)](_0xeba2ee),_0x3229c1;}[_0x151c8b(0x20b)](_0x289591){const _0x4bce98=_0x151c8b;let _0x2513ab=[];for(let _0x5af42d of this[_0x4bce98(0x271)]){let _0x69cb6a=this[_0x4bce98(0x1e7)]['get'](_0x5af42d);if(_0x69cb6a){let _0x594958=_0x69cb6a[_0x4bce98(0x20c)]();if(_0x594958){var _0xb3541d,_0x4d40ed;((_0xb3541d=_0x594958['from'])==null?void 0x0:_0xb3541d[_0x4bce98(0x1f3)])===_0x289591&&_0x2513ab['push']({..._0x594958[_0x4bce98(0x21b)],'lineShapeId':_0x5af42d,'isFrom':!0x0}),((_0x4d40ed=_0x594958['to'])==null?void 0x0:_0x4d40ed[_0x4bce98(0x1f3)])===_0x289591&&_0x2513ab[_0x4bce98(0x28d)]({..._0x594958['to'],'lineShapeId':_0x5af42d,'isFrom':!0x1});}}}return _0x2513ab;}[_0x151c8b(0x209)](_0x51746b){const _0x68ce87=_0x151c8b;let _0x20651=this[_0x68ce87(0x1e7)]['get'](_0x51746b);if(_0x20651)return _0x20651[_0x68ce87(0x20c)]();}[_0x151c8b(0x23f)](_0xeb80bb){const _0x5d9c0c=_0x151c8b;let _0x398867=this[_0x5d9c0c(0x1e7)]['get'](_0xeb80bb);if(_0x398867)return _0x398867['getShapeType']();}[_0x151c8b(0x288)](_0x5220d3){const _0x4bca0a=_0x151c8b;return this[_0x4bca0a(0x1e7)][_0x4bca0a(0x272)](_0x5220d3);}[_0x151c8b(0x219)](){const _0x593c95=_0x151c8b;return Array[_0x593c95(0x21b)](this['_shapes'][_0x593c95(0x23d)]())[_0x593c95(0x281)](_0x5b7b2d=>_0x5b7b2d[_0x593c95(0x292)]()||_0x5b7b2d[_0x593c95(0x229)]());}[_0x151c8b(0x246)](_0x52c7fd){const _0xab41b3=_0x151c8b;let _0x4fdcd3=this['_shapes'][_0xab41b3(0x294)](_0x52c7fd);_0x4fdcd3&&(_0x2d6c01(_0x4fdcd3['getShapeType']())&&this['_linesIds'][_0xab41b3(0x293)](_0x52c7fd),this[_0xab41b3(0x1e7)][_0xab41b3(0x293)](_0x52c7fd));}[_0x151c8b(0x22a)](){const _0x3416ff=_0x151c8b;let _0x287ed8=[];return this[_0x3416ff(0x1e7)][_0x3416ff(0x236)](_0x5fa4bd=>{_0x287ed8['push'](_0x5fa4bd['toJSON']());}),_0x287ed8;}[_0x151c8b(0x21c)](_0x30d737){const _0x10dfd6=_0x151c8b;for(let _0x32b87b of _0x30d737){let {id:_0x5534b6,shapeType:_0x3aac22,name:_0x58cc09}=_0x32b87b,_0x1857a6=this['addShape'](_0x3aac22,_0x5534b6,_0x32b87b[_0x10dfd6(0x249)],_0x58cc09);_0x1857a6&&_0x1857a6[_0x10dfd6(0x20a)]()&&this[_0x10dfd6(0x271)][_0x10dfd6(0x273)](_0x5534b6);}}[_0x151c8b(0x26d)](){const _0x23dbff=_0x151c8b;this[_0x23dbff(0x216)]||(this[_0x23dbff(0x1e7)][_0x23dbff(0x236)](_0x432b67=>{const _0x513374=_0x23dbff;_0x432b67[_0x513374(0x26d)]();}),this[_0x23dbff(0x1e7)]['clear'](),this['_linesIds'][_0x23dbff(0x24a)](),this[_0x23dbff(0x1d1)]['clear'](),super[_0x23dbff(0x26d)]());}};function Z(_0x1b8781,_0x17ef3f){return function(_0x38780e,_0xf0c775){_0x17ef3f(_0x38780e,_0xf0c775,_0x1b8781);};}function le(_0x38b5c1,_0x3b0960,_0x19aa3b,_0x4787d6){const _0x3410a1=_0x151c8b;var _0x11e6b4=arguments[_0x3410a1(0x1f1)],_0x4e3742=_0x11e6b4<0x3?_0x3b0960:_0x4787d6===null?_0x4787d6=Object[_0x3410a1(0x201)](_0x3b0960,_0x19aa3b):_0x4787d6,_0x145c5c;if(typeof Reflect==_0x3410a1(0x1e1)&&typeof Reflect['decorate']==_0x3410a1(0x1eb))_0x4e3742=Reflect[_0x3410a1(0x24f)](_0x38b5c1,_0x3b0960,_0x19aa3b,_0x4787d6);else{for(var _0x4f5cde=_0x38b5c1['length']-0x1;_0x4f5cde>=0x0;_0x4f5cde--)(_0x145c5c=_0x38b5c1[_0x4f5cde])&&(_0x4e3742=(_0x11e6b4<0x3?_0x145c5c(_0x4e3742):_0x11e6b4>0x3?_0x145c5c(_0x3b0960,_0x19aa3b,_0x4e3742):_0x145c5c(_0x3b0960,_0x19aa3b))||_0x4e3742);}return _0x11e6b4>0x3&&_0x4e3742&&Object[_0x3410a1(0x1d6)](_0x3b0960,_0x19aa3b,_0x4e3742),_0x4e3742;}let Q=class extends _0x38c616{constructor(_0x29fdc7){const _0x55ea9d=_0x151c8b;super(),this[_0x55ea9d(0x1db)]=_0x29fdc7,X(this,_0x55ea9d(0x298),new Map()),this[_0x55ea9d(0x1d5)]();}['_ensureShapeModelManager'](_0x287d68,_0x4b4b1e){const _0x5c9ae4=_0x151c8b;let _0x433344=this[_0x5c9ae4(0x298)][_0x5c9ae4(0x294)](_0x287d68);_0x433344||(_0x433344=new Map(),this[_0x5c9ae4(0x298)][_0x5c9ae4(0x214)](_0x287d68,_0x433344));let _0x36dd08=_0x433344[_0x5c9ae4(0x294)](_0x4b4b1e);return _0x36dd08||(_0x36dd08=new ce(),_0x433344[_0x5c9ae4(0x214)](_0x4b4b1e,_0x36dd08)),_0x36dd08;}[_0x151c8b(0x264)](_0x3ec5a7,_0x4ad8ee,_0x14412a,_0x3e1d3c,_0x589d6a,_0x47548d){const _0xe9c858=_0x151c8b;this[_0xe9c858(0x207)](_0x3ec5a7,_0x4ad8ee)[_0xe9c858(0x1dd)](_0x14412a,_0x3e1d3c,_0x589d6a,_0x47548d);}[_0x151c8b(0x246)](_0x5b49a0,_0xe82070,_0x584d14){const _0x55b5a0=_0x151c8b;this[_0x55b5a0(0x207)](_0x5b49a0,_0xe82070)[_0x55b5a0(0x246)](_0x584d14);}['getBasicShapeType'](_0x314cb6,_0x46e327,_0x132139){const _0x548c1e=_0x151c8b;return this[_0x548c1e(0x207)](_0x314cb6,_0x46e327)[_0x548c1e(0x23f)](_0x132139);}[_0x151c8b(0x23f)](_0x142c68,_0x19daad,_0x59f703){const _0x507e6e=_0x151c8b;return this[_0x507e6e(0x207)](_0x142c68,_0x19daad)[_0x507e6e(0x23f)](_0x59f703);}[_0x151c8b(0x288)](_0x199239,_0x5a1eed,_0x19204b){const _0x56fe4f=_0x151c8b;return this['_ensureShapeModelManager'](_0x199239,_0x5a1eed)[_0x56fe4f(0x288)](_0x19204b);}[_0x151c8b(0x233)](_0x521f2e,_0xb72eee,_0x4f8690){const _0x288acd=_0x151c8b;return this[_0x288acd(0x207)](_0x521f2e,_0xb72eee)[_0x288acd(0x23f)](_0x4f8690);}[_0x151c8b(0x289)](_0x54cdda,_0x340a45,_0x340d76){const _0x411e63=_0x151c8b;let _0x4ce727=this[_0x411e63(0x207)](_0x54cdda,_0x340a45);if(!_0x4ce727[_0x411e63(0x23f)](_0x340d76))return;let _0x468790=_0x4ce727[_0x411e63(0x1e7)]['get'](_0x340d76);if(_0x468790)return _0x468790[_0x411e63(0x1e0)]();}[_0x151c8b(0x219)](_0x3a47fd,_0x481ea5){const _0x331cc5=_0x151c8b;return this[_0x331cc5(0x207)](_0x3a47fd,_0x481ea5)[_0x331cc5(0x219)]();}[_0x151c8b(0x27d)](_0x1078a1,_0x3d97c4,_0x1afc6c){const _0x1bd6f3=_0x151c8b;return this[_0x1bd6f3(0x207)](_0x1078a1,_0x3d97c4)[_0x1bd6f3(0x1e7)][_0x1bd6f3(0x294)](_0x1afc6c);}['getBasicShapeRelation'](_0x2000a1,_0x820311,_0x1f2d2c){const _0x4b8870=_0x151c8b;return this[_0x4b8870(0x207)](_0x2000a1,_0x820311)[_0x4b8870(0x20b)](_0x1f2d2c);}['getLineShapeRelation'](_0x16f0c0,_0x38baa3,_0x4f8d76){const _0x2ad7e1=_0x151c8b;let _0x4afcbc=this[_0x2ad7e1(0x207)](_0x16f0c0,_0x38baa3)[_0x2ad7e1(0x1e7)][_0x2ad7e1(0x294)](_0x4f8d76);if(_0x4afcbc)return _0x4afcbc[_0x2ad7e1(0x20c)]();}[_0x151c8b(0x1fc)](){}[_0x151c8b(0x208)](_0xbb7c6){const _0x306a92=_0x151c8b;let _0x454e04={},_0x3dbd91=this[_0x306a92(0x298)][_0x306a92(0x294)](_0xbb7c6);return _0x3dbd91&&_0x3dbd91[_0x306a92(0x236)]((_0x11a489,_0xae1e69)=>{const _0x435038=_0x306a92;let _0x15bcdb=_0x11a489[_0x435038(0x22a)]();_0x15bcdb[_0x435038(0x1f1)]>0x0&&(_0x454e04[_0xae1e69]=_0x15bcdb);}),JSON[_0x306a92(0x274)](_0x454e04);}[_0x151c8b(0x280)](_0x53b6aa,_0x418d32){const _0x54228f=_0x151c8b;Object[_0x54228f(0x1d2)](_0x418d32)[_0x54228f(0x236)](_0x2d40e8=>{const _0x188f31=_0x54228f;this[_0x188f31(0x207)](_0x53b6aa,_0x2d40e8)['fromJSON'](_0x418d32[_0x2d40e8]);});}[_0x151c8b(0x22a)](){const _0x3bc867=_0x151c8b;let _0x48fc46={};return this[_0x3bc867(0x298)]['forEach']((_0x5d3dfe,_0x590cf3)=>{_0x48fc46[_0x590cf3]={},_0x5d3dfe['forEach']((_0x1a4fe0,_0x59f4a7)=>{const _0x267f5d=_0x1af7;_0x48fc46[_0x590cf3][_0x59f4a7]=_0x1a4fe0[_0x267f5d(0x22a)]();});}),_0x48fc46;}[_0x151c8b(0x21c)](_0x568ec5){const _0x324280=_0x151c8b;Object[_0x324280(0x1d2)](_0x568ec5)[_0x324280(0x236)](_0x3238aa=>{const _0x5c46c6=_0x324280;let _0x332fb4=_0x568ec5[_0x3238aa];Object[_0x5c46c6(0x1d2)](_0x332fb4)[_0x5c46c6(0x236)](_0x49554e=>{const _0x1db99a=_0x5c46c6;this[_0x1db99a(0x207)](_0x3238aa,_0x49554e)[_0x1db99a(0x21c)](_0x332fb4[_0x49554e]);});});}[_0x151c8b(0x1d5)](){const _0x5d649c=_0x151c8b;this['_resourcesManagerService']['registerPluginResource']({'pluginName':_0x5d649c(0x29c),'businesses':[_0x543e53[_0x5d649c(0x26e)]],'toJson':_0x4e0355=>this[_0x5d649c(0x208)](_0x4e0355),'parseJson':_0x2ba49e=>JSON['parse'](_0x2ba49e),'onLoad':(_0x5253f1,_0x416673)=>{const _0x1b811e=_0x5d649c;this[_0x1b811e(0x280)](_0x5253f1,_0x416673);},'onUnLoad':_0x2a8eaa=>{const _0x532641=_0x5d649c;let _0x590338=this[_0x532641(0x298)][_0x532641(0x294)](_0x2a8eaa);_0x590338&&(_0x590338['forEach'](_0x2245a6=>{_0x2245a6['dispose']();}),this[_0x532641(0x298)][_0x532641(0x293)](_0x2a8eaa));}});}[_0x151c8b(0x26d)](){const _0x43a88d=_0x151c8b;this['_shapeModelManagerMap'][_0x43a88d(0x236)](_0xe3e754=>{const _0x23b3f0=_0x43a88d;_0xe3e754[_0x23b3f0(0x236)](_0x104c82=>{const _0x18d5bf=_0x23b3f0;_0x104c82[_0x18d5bf(0x26d)]();});});}};Q=le([Z(0x0,_0x8741cf)],Q);const ue={'id':_0x151c8b(0x282),'type':_0x454588[_0x151c8b(0x259)],'handler':(_0x4dca9a,_0x58c0cc)=>{const _0x602e8a=_0x151c8b;let {unitId:_0x37615a,subUnitId:_0x2ddb9d,shapeType:_0x5b2d5b,shapeId:_0x2fbb34,shapeName:_0x455d97,shapeData:_0x5d802f}=_0x58c0cc;return _0x4dca9a[_0x602e8a(0x294)](Q)[_0x602e8a(0x264)](_0x37615a,_0x2ddb9d,_0x5b2d5b,_0x2fbb34,_0x44cf1c[_0x602e8a(0x266)](_0x5d802f),_0x455d97),!0x0;}},de={'id':_0x151c8b(0x262),'type':_0x454588[_0x151c8b(0x259)],'handler':(_0x25090c,_0x212fd8)=>{const _0x3306b9=_0x151c8b;let {unitId:_0x2f0deb,subUnitId:_0x45589b,shapeId:_0x58ea9d}=_0x212fd8;return _0x25090c['get'](Q)[_0x3306b9(0x246)](_0x2f0deb,_0x45589b,_0x58ea9d),!0x0;}},fe={'type':_0x454588['COMMAND'],'id':_0x151c8b(0x1d3),'handler':(_0x333f68,_0xce179)=>{const _0x348c85=_0x151c8b;let _0x35cbe0=_0x4b4231(_0x333f68[_0x348c85(0x294)](_0x11021c),_0xce179);if(!_0x35cbe0)return!0x1;let _0x4f18a1=_0x333f68[_0x348c85(0x294)](_0x503013),{unitId:_0x581b31,subUnitId:_0x250d55}=_0x35cbe0,_0x11f212=_0x4f18a1[_0x348c85(0x251)](_0x581b31,_0x250d55);if(!_0x11f212)return!0x1;let _0xa06981=_0x333f68[_0x348c85(0x294)](_0x29da1d),_0x287d8e=_0x333f68['get'](_0x388be1),_0x406532=_0x333f68[_0x348c85(0x294)](_0x1e775a),_0x55302b=_0x333f68['get'](_0x208026),_0x47dfa4=_0x333f68[_0x348c85(0x294)](Q),{shapeType:_0x561cdf}=_0xce179,_0x1998ec=_0xce179[_0x348c85(0x249)]??_0x419dd5(_0x561cdf),_0x4bd536=_0xce179[_0x348c85(0x1f3)]||_0x2c6a2b(),_0x2a2393={'unitId':_0x581b31,'subUnitId':_0x250d55,'shapeId':_0x4bd536,'shapeName':_0xce179[_0x348c85(0x20e)]??_0x1fe204(_0x561cdf,_0x47dfa4['getShapeDisplayNames'](_0x581b31,_0x250d55)),'shapeType':_0x561cdf,'shapeData':_0x1998ec},_0x534405=_0xce179[_0x348c85(0x1f9)]||0xc8,_0x40c912=_0xce179[_0x348c85(0x25d)]||0xc8,_0x582343=0x0,_0x4e8bcd=0x0;if(_0xce179[_0x348c85(0x25e)]){let {x:_0x17dae3,y:_0x318db1}=_0xce179[_0x348c85(0x25e)];_0x582343=_0x17dae3,_0x4e8bcd=_0x318db1;}else{if(_0xce179[_0x348c85(0x24e)]){let {startRow:_0x16381f,startColumn:_0x4dacb8}=_0xce179[_0x348c85(0x24e)],_0x47a8b7=_0x11f212[_0x348c85(0x260)](_0x16381f,_0x4dacb8);_0x582343=_0x47a8b7[_0x348c85(0x265)]+0xa,_0x4e8bcd=_0x47a8b7[_0x348c85(0x2a2)]+0xa;}}let _0x355425={'left':_0x582343,'top':_0x4e8bcd,'width':_0x534405,'height':_0x40c912,'angle':_0xce179['rotation']??0x0,'flipX':_0xce179[_0x348c85(0x283)]??!0x1,'flipY':_0xce179['flipY']??!0x1},_0x1d3910=_0x18a95d(_0x355425,_0x11f212),_0x5984f6=_0x458f48(_0x355425,_0x11f212),_0x29d8ed={'unitId':_0x581b31,'subUnitId':_0x250d55,'drawingId':_0x4bd536,'drawingType':_0x2a0192['DRAWING_SHAPE'],'anchorType':_0x17db90[_0x348c85(0x1d8)],'name':_0xce179['name'],'description':_0xce179[_0x348c85(0x210)],'sheetTransform':_0x1d3910,'transform':_0x355425,'data':{'shapeType':_0x561cdf,'shapeData':_0x1998ec},'axisAlignSheetTransform':_0x5984f6,'allowTransform':!0x0,'hidden':_0xce179['visible']===!0x1,'selectable':_0xce179[_0x348c85(0x22b)]??!0x0};_0x2d6c01(_0x561cdf)&&(_0x29d8ed[_0x348c85(0x296)][_0x348c85(0x1d4)]=!0x1,_0x29d8ed['data'][_0x348c85(0x1f4)]=!0x1,_0x29d8ed[_0x348c85(0x296)][_0x348c85(0x223)]=!0x1,_0x29d8ed[_0x348c85(0x296)][_0x348c85(0x26b)]=!0x1,_0x29d8ed['transform'][_0x348c85(0x1f4)]=!0x1,_0x29d8ed[_0x348c85(0x206)][_0x348c85(0x223)]=!0x1,_0x29d8ed[_0x348c85(0x206)][_0x348c85(0x26b)]=!0x1);let {undo:_0x5abf8b,redo:_0x1ee3c2,objects:_0x472544}=_0x55302b[_0x348c85(0x285)]([_0x29d8ed]),_0xcd3ae2=_0x406532[_0x348c85(0x237)]({'id':_0x149d24['id'],'params':{'unitId':_0x581b31,'drawings':[_0x29d8ed]}}),_0x450e3e=[..._0xcd3ae2[_0x348c85(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x581b31,'subUnitId':_0x250d55,'op':_0x1ee3c2,'objects':_0x472544,'type':_0x5d57ba[_0x348c85(0x23e)]}},{'id':_0x4f78e5['id'],'params':[_0x581b31]},..._0xcd3ae2[_0x348c85(0x24d)],{'id':ue['id'],'params':_0x2a2393}],_0x4ef30c=[{'id':de['id'],'params':{'unitId':_0x581b31,'subUnitId':_0x250d55,'shapeId':_0x4bd536}},..._0xcd3ae2[_0x348c85(0x297)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x581b31,'subUnitId':_0x250d55,'op':_0x5abf8b,'objects':_0x472544,'type':_0x5d57ba['REMOVE']}},{'id':_0x4f78e5['id'],'params':[_0x581b31]},..._0xcd3ae2[_0x348c85(0x20f)]];return _0x3284cf(_0x450e3e,_0xa06981)[_0x348c85(0x22c)]?(_0x287d8e[_0x348c85(0x240)]({'unitID':_0x581b31,'undoMutations':_0x4ef30c,'redoMutations':_0x450e3e}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x454588[_0x151c8b(0x259)],'handler':(_0x2009ea,_0x15340c)=>{const _0x5d63b8=_0x151c8b;let {unitId:_0x410449,subUnitId:_0x5b5f93,shapeType:_0x3af725,shapeId:_0x72bdbb,shapeData:_0x56f4df,replace:_0x34cdb1,formulaLastValueGuard:_0x51f517}=_0x15340c,_0x46a98d=_0x2009ea[_0x5d63b8(0x294)](Q)['getShapeModel'](_0x410449,_0x5b5f93,_0x72bdbb);if(_0x46a98d){var _0x4c398f;if(!_0x568fd9(_0x2009ea,{'hostType':_0x543e53[_0x5d63b8(0x26e)],'unitId':_0x410449,'subUnitId':_0x5b5f93,'shapeId':_0x72bdbb},(_0x4c398f=_0x46a98d['getShapeData']()[_0x5d63b8(0x27b)])==null?void 0x0:_0x4c398f['formula'],_0x51f517))return!0x0;_0x3af725!==void 0x0&&_0x46a98d['setShapeType'](_0x3af725),_0x56f4df&&(_0x46a98d==null||_0x46a98d[_0x5d63b8(0x1f6)](_0x44cf1c[_0x5d63b8(0x266)](_0x56f4df),!_0x34cdb1));}return!0x0;}},pe={'type':_0x454588[_0x151c8b(0x27e)],'id':_0x151c8b(0x25c),'handler':(_0x3e6d5c,_0xaa70ea)=>{const _0x276cda=_0x151c8b;let _0x5ecdbb=_0x4b4231(_0x3e6d5c[_0x276cda(0x294)](_0x11021c),_0xaa70ea);if(!_0x5ecdbb)return!0x1;let _0x3aa73a=_0x3e6d5c[_0x276cda(0x294)](_0x503013),{unitId:_0x34e927,subUnitId:_0x3ede75}=_0x5ecdbb,_0xb3d413=_0x3aa73a[_0x276cda(0x251)](_0x34e927,_0x3ede75);if(!_0xb3d413)return!0x1;let _0x328af9=_0x3e6d5c[_0x276cda(0x294)](Q),{shapeId:_0x5cbb83,shapeType:_0x37d7c8,shapeData:_0x43ac74,position:_0x536d03,width:_0x511794,height:_0x2a4cb8}=_0xaa70ea,_0x1c08af=_0x328af9[_0x276cda(0x27d)](_0x34e927,_0x3ede75,_0x5cbb83);if(!_0x1c08af)return!0x1;let _0x4a0477=_0x3e6d5c[_0x276cda(0x294)](_0x29da1d),_0x1c6327=_0x3e6d5c[_0x276cda(0x294)](_0x388be1),_0x51ba09=_0x3e6d5c['get'](_0x1e775a),_0x4eb645=_0x3e6d5c['get'](_0x208026),_0x2c9a25={'unitId':_0x34e927,'subUnitId':_0x3ede75,'shapeId':_0x5cbb83,'shapeType':_0x37d7c8,'shapeData':_0x43ac74,'replace':!0x0},_0x273cdd=_0x1c08af[_0x276cda(0x23f)](),_0x4380b2=_0x1c08af[_0x276cda(0x1e0)](),{x:_0x2896de,y:_0x25ecc4}=_0x536d03,_0x35f7db={'left':_0x2896de,'top':_0x25ecc4,'width':_0x511794,'height':_0x2a4cb8,'angle':_0xaa70ea[_0x276cda(0x258)]??0x0,'flipX':_0xaa70ea[_0x276cda(0x283)]??!0x1,'flipY':_0xaa70ea[_0x276cda(0x1ed)]??!0x1},_0x5aacd5=_0x18a95d(_0x35f7db,_0xb3d413),_0x7a1390=_0x458f48(_0x35f7db,_0xb3d413),_0x4d5e16={'unitId':_0x34e927,'subUnitId':_0x3ede75,'drawingId':_0x5cbb83,'drawingType':_0x2a0192[_0x276cda(0x215)],'name':_0xaa70ea[_0x276cda(0x1e4)],'description':_0xaa70ea[_0x276cda(0x210)],'sheetTransform':_0x5aacd5,'transform':_0x35f7db,'data':{'shapeType':_0x37d7c8,'shapeData':_0x43ac74},'axisAlignSheetTransform':_0x7a1390,'allowTransform':!0x0,'hidden':!_0xaa70ea[_0x276cda(0x279)],'selectable':_0xaa70ea['selectable']};_0x2d6c01(_0x37d7c8)&&(_0x4d5e16['data'][_0x276cda(0x1d4)]=!0x1,_0x4d5e16[_0x276cda(0x296)][_0x276cda(0x1f4)]=!0x1,_0x4d5e16['data'][_0x276cda(0x223)]=!0x1,_0x4d5e16[_0x276cda(0x296)][_0x276cda(0x26b)]=!0x1,_0x4d5e16['transform'][_0x276cda(0x1f4)]=!0x1,_0x4d5e16[_0x276cda(0x206)]['resizeEnabled']=!0x1,_0x4d5e16[_0x276cda(0x206)][_0x276cda(0x26b)]=!0x1);let {undo:_0x3af393,redo:_0x55d9d6,objects:_0x718e76}=_0x4eb645[_0x276cda(0x2a3)]([_0x4d5e16]),_0xffd05b=_0x51ba09[_0x276cda(0x237)]({'id':_0x24cf20['id'],'params':{'unitId':_0x34e927,'drawings':[_0x4d5e16]}}),_0x31c22b=[..._0xffd05b['preRedos']??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x34e927,'subUnitId':_0x3ede75,'op':_0x55d9d6,'objects':_0x718e76,'type':_0x5d57ba[_0x276cda(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x34e927]},..._0xffd05b[_0x276cda(0x24d)],{'id':$['id'],'params':_0x2c9a25}],_0x14bb60=[..._0xffd05b[_0x276cda(0x297)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x34e927,'subUnitId':_0x3ede75,'op':_0x3af393,'objects':_0x718e76,'type':_0x5d57ba[_0x276cda(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x34e927]},..._0xffd05b[_0x276cda(0x20f)],{'id':$['id'],'params':{'unitId':_0x34e927,'subUnitId':_0x3ede75,'shapeType':_0x273cdd,'shapeId':_0x5cbb83,'shapeData':_0x4380b2,'replace':!0x0}}];return _0x3284cf(_0x31c22b,_0x4a0477)[_0x276cda(0x22c)]?(_0x1c6327[_0x276cda(0x240)]({'unitID':_0x34e927,'undoMutations':_0x14bb60,'redoMutations':_0x31c22b}),!0x0):!0x1;}},me={'type':_0x454588[_0x151c8b(0x27e)],'id':'sheet.command.toggle-shape-flip','handler':(_0xd4d271,_0xb5dd5f)=>{const _0x33a9d6=_0x151c8b;let _0x13be79=_0x4b4231(_0xd4d271[_0x33a9d6(0x294)](_0x11021c),_0xb5dd5f);if(!_0x13be79)return!0x1;let _0x1dba59=_0xd4d271[_0x33a9d6(0x294)](_0x503013),{unitId:_0x3004d1,subUnitId:_0x14678f}=_0x13be79,_0x2c3bc6=_0x1dba59[_0x33a9d6(0x254)](_0x3004d1,_0x14678f);if(!_0x2c3bc6)return!0x1;let _0x2c7f64=_0xd4d271[_0x33a9d6(0x294)](_0x208026),{shapeId:_0x149cc6,flipH:_0x155c3a,flipV:_0x86aea5}=_0xb5dd5f,_0x15f5c3=_0x2c7f64[_0x33a9d6(0x291)]({'unitId':_0x3004d1,'subUnitId':_0x14678f,'drawingId':_0x149cc6});if(!_0x15f5c3)return!0x1;let _0x3559c8=_0xd4d271['get'](Q)[_0x33a9d6(0x27d)](_0x3004d1,_0x14678f,_0x149cc6);if(!_0x3559c8)return!0x1;let _0x1c107f=_0xd4d271[_0x33a9d6(0x294)](_0x29da1d),_0x3312c7=_0xd4d271[_0x33a9d6(0x294)](_0x388be1),_0x2e0e29=_0xd4d271[_0x33a9d6(0x294)](_0x1e775a),_0x132f4f={..._0x15f5c3[_0x33a9d6(0x206)]};_0x155c3a!==void 0x0&&(_0x132f4f[_0x33a9d6(0x283)]=!_0x132f4f[_0x33a9d6(0x283)]),_0x86aea5!==void 0x0&&(_0x132f4f['flipY']=!_0x132f4f['flipY']);let _0x5bfe67=_0x18a95d(_0x132f4f,_0x2c3bc6),_0x35651d=_0x458f48(_0x132f4f,_0x2c3bc6),_0x5b7c4c=_0x3559c8[_0x33a9d6(0x23f)](),_0x4173af=_0x3559c8['getShapeData'](),_0x49397c={'unitId':_0x3004d1,'subUnitId':_0x14678f,'drawingId':_0x149cc6,'drawingType':_0x2a0192[_0x33a9d6(0x215)],'sheetTransform':_0x5bfe67,'transform':_0x132f4f,'data':{'shapeType':_0x5b7c4c,'shapeData':_0x4173af},'axisAlignSheetTransform':_0x35651d,'allowTransform':!0x0},{undo:_0x105a3e,redo:_0x4151ab,objects:_0x2e3565}=_0x2c7f64[_0x33a9d6(0x2a3)]([_0x49397c]),_0x392dba=_0x2e0e29['onCommandExecute']({'id':_0x24cf20['id'],'params':{'unitId':_0x3004d1,'drawings':[_0x49397c]}}),_0x3c40ef=[..._0x392dba[_0x33a9d6(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x3004d1,'subUnitId':_0x14678f,'op':_0x4151ab,'objects':_0x2e3565,'type':_0x5d57ba[_0x33a9d6(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x3004d1]},..._0x392dba['redos']],_0x4afb41=[..._0x392dba['preUndos']??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x3004d1,'subUnitId':_0x14678f,'op':_0x105a3e,'objects':_0x2e3565,'type':_0x5d57ba[_0x33a9d6(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x3004d1]},..._0x392dba['undos']];if(_0x2d6c01(_0x5b7c4c)){let _0x28f0ab=_0x3559c8[_0x33a9d6(0x20c)]();if(_0x28f0ab){let _0x55aefb={..._0x28f0ab};_0x55aefb[_0x33a9d6(0x21b)]=void 0x0,_0x55aefb['to']=void 0x0,_0x3c40ef['push']({'id':$['id'],'params':{'unitId':_0x3004d1,'subUnitId':_0x14678f,'shapeId':_0x149cc6,'shapeType':_0x5b7c4c,'shapeData':{'relation':_0x55aefb}}}),_0x4afb41['push']({'id':$['id'],'params':{'unitId':_0x3004d1,'subUnitId':_0x14678f,'shapeId':_0x149cc6,'shapeType':_0x5b7c4c,'shapeData':{'relation':_0x28f0ab}}});}}return _0x3284cf(_0x3c40ef,_0x1c107f)['result']?(_0x3312c7[_0x33a9d6(0x240)]({'unitID':_0x3004d1,'undoMutations':_0x4afb41,'redoMutations':_0x3c40ef}),!0x0):!0x1;}},he={'type':_0x454588['COMMAND'],'id':_0x151c8b(0x21a),'handler':(_0x554da4,_0xdc2b59)=>{const _0xd1816a=_0x151c8b;let _0x1eee0d=_0x4b4231(_0x554da4[_0xd1816a(0x294)](_0x11021c),_0xdc2b59);if(!_0x1eee0d)return!0x1;let _0x48fd37=_0x554da4[_0xd1816a(0x294)](_0x503013),{unitId:_0x365a2d,subUnitId:_0x3c2e94}=_0x1eee0d,_0x37a5d2=_0x48fd37[_0xd1816a(0x254)](_0x365a2d,_0x3c2e94);if(!_0x37a5d2)return!0x1;let _0x208ddf=_0x554da4[_0xd1816a(0x294)](_0x208026),{shapeId:_0x27acd9,rotate:_0x38dfe2}=_0xdc2b59,_0x477eed=_0x208ddf['getDrawingByParam']({'unitId':_0x365a2d,'subUnitId':_0x3c2e94,'drawingId':_0x27acd9});if(!_0x477eed)return!0x1;let _0xc7c30d=_0x554da4['get'](Q)['getShapeModel'](_0x365a2d,_0x3c2e94,_0x27acd9);if(!_0xc7c30d)return!0x1;let _0x3ac292=_0x554da4['get'](_0x29da1d),_0x4baa43=_0x554da4[_0xd1816a(0x294)](_0x388be1),_0x2f470b=_0x554da4['get'](_0x1e775a),_0x18f836={..._0x477eed[_0xd1816a(0x206)]};_0x38dfe2!==void 0x0&&(_0x18f836[_0xd1816a(0x1e2)]=(_0x18f836['angle']||0x0)+_0x38dfe2);let _0x3de2bf=_0x18a95d(_0x18f836,_0x37a5d2),_0x186699=_0x458f48(_0x18f836,_0x37a5d2),_0x403996=_0xc7c30d[_0xd1816a(0x23f)](),_0x1a880f=_0xc7c30d[_0xd1816a(0x1e0)](),_0x53c49d={'unitId':_0x365a2d,'subUnitId':_0x3c2e94,'drawingId':_0x27acd9,'drawingType':_0x2a0192[_0xd1816a(0x215)],'sheetTransform':_0x3de2bf,'transform':_0x18f836,'data':{'shapeType':_0x403996,'shapeData':_0x1a880f},'axisAlignSheetTransform':_0x186699,'allowTransform':!0x0},{undo:_0x4b3284,redo:_0x2e8a32,objects:_0x43dcfc}=_0x208ddf[_0xd1816a(0x2a3)]([_0x53c49d]),_0x429a7d=_0x2f470b[_0xd1816a(0x237)]({'id':_0x24cf20['id'],'params':{'unitId':_0x365a2d,'drawings':[_0x53c49d]}}),_0x691880=[..._0x429a7d[_0xd1816a(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x365a2d,'subUnitId':_0x3c2e94,'op':_0x2e8a32,'objects':_0x43dcfc,'type':_0x5d57ba[_0xd1816a(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x365a2d]},..._0x429a7d[_0xd1816a(0x24d)]],_0x88bfbb=[..._0x429a7d[_0xd1816a(0x297)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x365a2d,'subUnitId':_0x3c2e94,'op':_0x4b3284,'objects':_0x43dcfc,'type':_0x5d57ba[_0xd1816a(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x365a2d]},..._0x429a7d[_0xd1816a(0x20f)]];return _0x3284cf(_0x691880,_0x3ac292)['result']?(_0x4baa43[_0xd1816a(0x240)]({'unitID':_0x365a2d,'undoMutations':_0x88bfbb,'redoMutations':_0x691880}),!0x0):!0x1;}},ge={'type':_0x454588[_0x151c8b(0x27e)],'id':_0x151c8b(0x1d0),'handler':(_0x2fbe30,_0x19423f)=>{const _0x385026=_0x151c8b;let _0x399c0e=_0x4b4231(_0x2fbe30[_0x385026(0x294)](_0x11021c),_0x19423f);if(!_0x399c0e)return!0x1;let {unitId:_0x1a7a44,subUnitId:_0x119267}=_0x399c0e,{shapeId:_0x51c507}=_0x19423f,_0x136aaf=_0x2fbe30[_0x385026(0x294)](Q)[_0x385026(0x27d)](_0x1a7a44,_0x119267,_0x51c507);if(!_0x136aaf)return!0x1;let _0x46e083=_0x136aaf[_0x385026(0x204)](),_0x3e448f=(_0x46e083==null?void 0x0:_0x46e083[_0x385026(0x21e)])??!0x0,_0x1a921e=!_0x3e448f,_0x4d940b=_0x2fbe30[_0x385026(0x294)](_0x29da1d),_0x3259a2=_0x2fbe30[_0x385026(0x294)](_0x388be1),_0x5ee1b0={'unitId':_0x1a7a44,'subUnitId':_0x119267,'shapeId':_0x51c507,'shapeData':{'shapeText':{'isHorizontal':_0x1a921e}}},_0x2dfc78={'unitId':_0x1a7a44,'subUnitId':_0x119267,'shapeId':_0x51c507,'shapeData':{'shapeText':{'isHorizontal':_0x3e448f}}},_0x220242=[{'id':$['id'],'params':_0x5ee1b0}],_0x5c9a5b=[{'id':$['id'],'params':_0x2dfc78}];return _0x3284cf(_0x220242,_0x4d940b)[_0x385026(0x22c)]?(_0x3259a2[_0x385026(0x240)]({'unitID':_0x1a7a44,'undoMutations':_0x5c9a5b,'redoMutations':_0x220242}),!0x0):!0x1;}},_e={'type':_0x454588[_0x151c8b(0x27e)],'id':_0x151c8b(0x211),'handler':(_0x52e2e2,_0x8f844d)=>{const _0x5169cf=_0x151c8b;var _0x58e39c;let _0x360976=_0x4b4231(_0x52e2e2[_0x5169cf(0x294)](_0x11021c),_0x8f844d);if(!_0x360976)return!0x1;let _0x3e05ca=_0x52e2e2[_0x5169cf(0x294)](_0x503013),{unitId:_0x2592d2,subUnitId:_0x2e69f5}=_0x360976,_0x2966ee=_0x3e05ca[_0x5169cf(0x254)](_0x2592d2,_0x2e69f5);if(!_0x2966ee)return!0x1;let _0xec3106=_0x52e2e2['get'](_0x208026),{connectorShapeId:_0x10664f,width:_0x4e494d,height:_0x58b98d,left:_0x15ad86,top:_0x237730,flipX:_0x54291a,flipY:_0x2defe6,rotation:_0x2f86c7,oldAdjustValues:_0x1d00ef,newAdjustValues:_0x59b8d9,oldLineType:_0x2e3bc5,newLineType:_0x978348,oldRelation:_0x4b4647,newRelation:_0x319853}=_0x8f844d,_0x540883=_0xec3106[_0x5169cf(0x291)]({'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'drawingId':_0x10664f});if(!_0x540883)return!0x1;let _0x5c8558=_0x52e2e2[_0x5169cf(0x294)](Q)[_0x5169cf(0x27d)](_0x2592d2,_0x2e69f5,_0x10664f);if(!_0x5c8558)return!0x1;let _0x5a0813=_0x52e2e2[_0x5169cf(0x294)](_0x29da1d),_0x10b4a9=_0x52e2e2['get'](_0x388be1),_0x3652bb=_0x52e2e2[_0x5169cf(0x294)](_0x1e775a),_0x102232={..._0x540883[_0x5169cf(0x206)],'width':_0x4e494d,'height':_0x58b98d,'left':_0x15ad86,'top':_0x237730,'flipX':_0x54291a,'flipY':_0x2defe6,'angle':_0x2f86c7??((_0x58e39c=_0x540883[_0x5169cf(0x206)])==null?void 0x0:_0x58e39c[_0x5169cf(0x1e2)])??0x0},_0xf9fbb9=_0x18a95d(_0x102232,_0x2966ee),_0x4e650a=_0x458f48(_0x102232,_0x2966ee),_0x5cb49b=_0x5c8558[_0x5169cf(0x23f)](),_0x5cb6c9=_0x5c8558['getShapeData'](),_0x100e5c={'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'drawingId':_0x10664f,'drawingType':_0x2a0192[_0x5169cf(0x215)],'sheetTransform':_0xf9fbb9,'transform':_0x102232,'data':{'shapeType':_0x978348||_0x2e3bc5||_0x5cb49b,'shapeData':{..._0x5cb6c9,'adjustValues':_0x59b8d9||_0x1d00ef||(_0x5cb6c9==null?void 0x0:_0x5cb6c9['adjustValues']),'relation':_0x319853||_0x4b4647||(_0x5cb6c9==null?void 0x0:_0x5cb6c9[_0x5169cf(0x1dc)])}},'axisAlignSheetTransform':_0x4e650a,'allowTransform':!0x0},{undo:_0x21ec53,redo:_0xec13fb,objects:_0x1cfae9}=_0xec3106[_0x5169cf(0x2a3)]([_0x100e5c]),_0x57cc74=_0x3652bb[_0x5169cf(0x237)]({'id':_0x24cf20['id'],'params':{'unitId':_0x2592d2,'drawings':[_0x100e5c]}}),_0x569ada=[..._0x57cc74[_0x5169cf(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'op':_0xec13fb,'objects':_0x1cfae9,'type':_0x5d57ba[_0x5169cf(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x2592d2]},..._0x57cc74[_0x5169cf(0x24d)],{'id':$['id'],'params':{'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'shapeId':_0x10664f,'shapeType':_0x978348,'shapeData':{'adjustValues':_0x59b8d9,'relation':_0x319853}}}],_0x512c0e=[..._0x57cc74['preUndos']??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'op':_0x21ec53,'objects':_0x1cfae9,'type':_0x5d57ba[_0x5169cf(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x2592d2]},..._0x57cc74[_0x5169cf(0x20f)],{'id':$['id'],'params':{'unitId':_0x2592d2,'subUnitId':_0x2e69f5,'shapeId':_0x10664f,'shapeType':_0x5cb49b,'shapeData':{..._0x5cb6c9,'adjustValues':_0x1d00ef||(_0x5cb6c9==null?void 0x0:_0x5cb6c9['adjustValues']),'relation':_0x4b4647||(_0x5cb6c9==null?void 0x0:_0x5cb6c9[_0x5169cf(0x1dc)])}}}];return _0x3284cf(_0x569ada,_0x5a0813)[_0x5169cf(0x22c)]?(_0x10b4a9[_0x5169cf(0x240)]({'unitID':_0x2592d2,'undoMutations':_0x512c0e,'redoMutations':_0x569ada}),!0x0):!0x1;}},ve={'type':_0x454588[_0x151c8b(0x27e)],'id':_0x151c8b(0x27f),'handler':(_0x1d7fbc,_0x4c9175)=>{const _0x3f9870=_0x151c8b;let _0x5e6b74=_0x4b4231(_0x1d7fbc[_0x3f9870(0x294)](_0x11021c),_0x4c9175);if(!_0x5e6b74)return!0x1;let _0x269dc9=_0x1d7fbc[_0x3f9870(0x294)](_0x503013),{unitId:_0x17bef5,subUnitId:_0x2cd20a}=_0x5e6b74,_0x2541d5=_0x269dc9['getSkeleton'](_0x17bef5,_0x2cd20a);if(!_0x2541d5)return!0x1;let _0x169dae=_0x1d7fbc[_0x3f9870(0x294)](_0x208026),{shapeId:_0x297bf2,width:_0x58187d,height:_0x30acff,left:_0x373f64,top:_0x56a276,flipX:_0x3ae60a,flipY:_0xa9cc0a,angle:_0x2e63f8,oldAdjustValues:_0x41d665,newAdjustValues:_0x4be5e8,oldLineType:_0x551faf,newLineType:_0x4751df}=_0x4c9175,_0x2bd1c2=_0x169dae[_0x3f9870(0x291)]({'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'drawingId':_0x297bf2});if(!_0x2bd1c2)return!0x1;let _0x22dc00=_0x1d7fbc[_0x3f9870(0x294)](Q)['getShapeModel'](_0x17bef5,_0x2cd20a,_0x297bf2);if(!_0x22dc00)return!0x1;let _0x53da08=_0x1d7fbc[_0x3f9870(0x294)](_0x29da1d),_0x26b29a=_0x1d7fbc[_0x3f9870(0x294)](_0x388be1),_0x210d5f=_0x1d7fbc[_0x3f9870(0x294)](_0x1e775a),_0xd38136={..._0x2bd1c2['transform'],'width':_0x58187d,'height':_0x30acff,'left':_0x373f64,'top':_0x56a276,'flipX':_0x3ae60a,'flipY':_0xa9cc0a,'angle':_0x2e63f8},_0x3f7d00=_0x18a95d(_0xd38136,_0x2541d5),_0xa8f684=_0x458f48(_0xd38136,_0x2541d5),_0x651822=_0x22dc00[_0x3f9870(0x23f)](),_0x5a4bed=_0x22dc00[_0x3f9870(0x1e0)](),_0x3db043={'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'drawingId':_0x297bf2,'drawingType':_0x2a0192[_0x3f9870(0x215)],'sheetTransform':_0x3f7d00,'transform':_0xd38136,'data':{'shapeType':_0x4751df||_0x551faf||_0x651822,'shapeData':{..._0x5a4bed,'adjustValues':_0x4be5e8||_0x41d665||(_0x5a4bed==null?void 0x0:_0x5a4bed['adjustValues'])}},'axisAlignSheetTransform':_0xa8f684,'allowTransform':!0x0},{undo:_0x119016,redo:_0x5923e8,objects:_0x3adc7f}=_0x169dae[_0x3f9870(0x2a3)]([_0x3db043]),_0x1fb4cb=_0x210d5f[_0x3f9870(0x237)]({'id':_0x24cf20['id'],'params':{'unitId':_0x17bef5,'drawings':[_0x3db043]}}),_0x5f58cc=[..._0x1fb4cb[_0x3f9870(0x1ea)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'op':_0x5923e8,'objects':_0x3adc7f,'type':_0x5d57ba[_0x3f9870(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x17bef5]},..._0x1fb4cb[_0x3f9870(0x24d)],{'id':$['id'],'params':{'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'shapeId':_0x297bf2,'shapeType':_0x4751df,'shapeData':{'adjustValues':_0x4be5e8}}}],_0x358e41=[..._0x1fb4cb[_0x3f9870(0x297)]??[],{'id':_0x2bb427['id'],'params':{'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'op':_0x119016,'objects':_0x3adc7f,'type':_0x5d57ba[_0x3f9870(0x1d7)]}},{'id':_0x4f78e5['id'],'params':[_0x17bef5]},..._0x1fb4cb[_0x3f9870(0x20f)],{'id':$['id'],'params':{'unitId':_0x17bef5,'subUnitId':_0x2cd20a,'shapeId':_0x297bf2,'shapeType':_0x651822,'shapeData':{..._0x5a4bed,'adjustValues':_0x41d665||(_0x5a4bed==null?void 0x0:_0x5a4bed[_0x3f9870(0x228)])}}}];return _0x3284cf(_0x5f58cc,_0x53da08)['result']?(_0x26b29a[_0x3f9870(0x240)]({'unitID':_0x17bef5,'undoMutations':_0x358e41,'redoMutations':_0x5f58cc}),!0x0):!0x1;}},ye={'id':_0x151c8b(0x28e),'type':_0x454588[_0x151c8b(0x259)],'handler':(_0x549e13,_0x564fb5)=>{const _0x540c68=_0x151c8b;let {unitId:_0x36b3fd,subUnitId:_0x3da036,shapeType:_0xfd8d09,shapeId:_0x3fb680,shapeData:_0x1f2532}=_0x564fb5,_0x2ed79f=_0x549e13[_0x540c68(0x294)](Q)[_0x540c68(0x27d)](_0x36b3fd,_0x3da036,_0x3fb680);return _0x2ed79f&&(_0x2ed79f[_0x540c68(0x1fc)](_0xfd8d09),_0x1f2532&&(_0x2ed79f==null||_0x2ed79f['setShapeData'](_0x1f2532))),!0x0;}};var be='@univerjs-pro/sheets-shape',xe='1.0.4';function _0x32c8(){const _0x606a09=['from','fromJSON','iterator','isHorizontal','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','index','interceptCommand','cos','resizeEnabled','setZOrder','bringForward','drawingId','914241cCmiug','adjustValues','getId','toJSON','selectable','result','skeleton','sin','_resolveBinding','_commandService','ang','drawingType','getShapeTypeById','getSheetId','_sheetsShapeService','forEach','onCommandExecute','backward','7336SYuyhm','forward','29166IzvNFs','_injector','values','INSERT','getShapeType','pushUndoRedo','_getConnectPointInfo','_drawingManagerService','default','command','worldRect','removeShape','171erpBIE','108730szPlLh','shapeData','clear','prototype','packageName','redos','range','decorate','_planConnector','ensureSkeleton','266YlJJoq','hidden','getSkeleton','54396KOEZjk','_addLineRerouteUpdates','_initCommandInterceptor','rotation','MUTATION','shapeType','getShape','sheet.command.set-shape-drawing-data','height','position','removeLinePoints','getCellWithCoordByIndex','string','sheet.mutation.remove-shape','symbol','insertShape','startX','deepClone','_configService','registerCommand','subUnitId','deletes','borderEnabled','type','dispose','UNIVER_SHEET','unitId','params','_linesIds','has','add','stringify','getStartConnectInfo','updates','_config','_shapeHostAdapterRegistry','visible','594BPGKPX','formulaBinding','listShapesInUnit','getShapeModel','COMMAND','sheet.command.update-line-shape-resize','_deserializeShapeForUnit','map','sheet.mutation.insert-shape','flipX','syncExecuteCommand','getBatchAddOp','_drawingService','toPrimitive','hasShape','getShapeDataById','sendToBack','_toSnapshot','onCommandExecuted','push','sheet.mutation.update-shape-type','createShape','hostType','getDrawingByParam','getName','delete','get','getAdjustNames','data','preUndos','_shapeModelManagerMap','_initCommands','_sheetSkeletonService','sheets-shape.config','SHEET_SHAPE_PLUGIN','register','2QJuSIe','find','getUnit','isFrom','startY','getBatchUpdateOp','_addLineFollowShapeUpdates','_sheetInterceptorService','sheet.command.set-shape-text-vertical-toggle','_groupIds','keys','sheet.command.insert-shape','fill','_initSnapshot','defineProperty','UPDATE','Both','left','_shapeAdapter','_resourcesManagerService','relation','addShape','_arrange','listShapes','getShapeData','object','angle','sendBackward','name','_instanceService','lineType','_shapes','disposeWithMe','filter','preRedos','function','_applyUpdate','flipY','cxnIndex','createFormulaLastValueMutation','_planDeletes','length','originals','shapeId','rotateEnabled','call','setShapeData','point','2282240PMzeHM','width','getEndConnectInfo','getDrawingData','setShapeType','getSheets','constructor','top','640904xJzxYO','getOwnPropertyDescriptor','1745rwQfLh','updateContext','getShapeTextData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','transform','_ensureShapeModelManager','_serializeShapeForUnit','getLineShapeRelation','isLineShape','getBasicShapeRelation','getShapeRelation','updateShape','shapeName','undos','description','sheet.command.update-connector-relation','lineShapeId','getAdjustValueByName','set','DRAWING_SHAPE','_disposed','mode','_shapeService','getShapeDisplayNames','sheet.command.set-shape-rotate'];_0x32c8=function(){return _0x606a09;};return _0x32c8();}function Se(_0x2e7bd6){const _0x1b7f00=_0x151c8b;var _0x4469c2,_0x1eafd1,_0xe5a618,_0x472644,_0x3c7199,_0x38fd83,_0x249db1;return{'left':((_0x4469c2=_0x2e7bd6[_0x1b7f00(0x206)])==null?void 0x0:_0x4469c2['left'])??0x0,'top':((_0x1eafd1=_0x2e7bd6['transform'])==null?void 0x0:_0x1eafd1[_0x1b7f00(0x1ff)])??0x0,'width':((_0xe5a618=_0x2e7bd6[_0x1b7f00(0x206)])==null?void 0x0:_0xe5a618['width'])??0xc8,'height':((_0x472644=_0x2e7bd6['transform'])==null?void 0x0:_0x472644[_0x1b7f00(0x25d)])??0xc8,'rotation':((_0x3c7199=_0x2e7bd6['transform'])==null?void 0x0:_0x3c7199['rotation'])??0x0,'flipX':((_0x38fd83=_0x2e7bd6[_0x1b7f00(0x206)])==null?void 0x0:_0x38fd83['flipX'])??!0x1,'flipY':((_0x249db1=_0x2e7bd6[_0x1b7f00(0x206)])==null?void 0x0:_0x249db1[_0x1b7f00(0x1ed)])??!0x1};}let Ce=class{constructor(_0x564854,_0x3abc91,_0x53215d,_0x5f567d){const _0x4c0788=_0x151c8b;this[_0x4c0788(0x230)]=_0x564854,this[_0x4c0788(0x218)]=_0x3abc91,this['_drawingService']=_0x53215d,this[_0x4c0788(0x1e5)]=_0x5f567d,X(this,'hostType',_0x543e53[_0x4c0788(0x26e)]);}get['shapeChanged$'](){return{'subscribe':_0x6b20b0=>{const _0x4567ad=_0x1af7;let _0x6ec1f2=this[_0x4567ad(0x230)][_0x4567ad(0x28c)](_0x5201d4=>{const _0x55133a=_0x4567ad;(_0x5201d4['id']===ue['id']||_0x5201d4['id']===de['id']||_0x5201d4['id']===$['id']||_0x5201d4['id']===ye['id'])&&_0x6b20b0({'unitId':_0x5201d4[_0x55133a(0x270)][_0x55133a(0x26f)]});});return{'unsubscribe':()=>_0x6ec1f2[_0x4567ad(0x26d)]()};}};}[_0x151c8b(0x25b)](_0x3a3641){const _0x1bd37f=_0x151c8b;var _0x2374e7;let _0x48dac3=(_0x2374e7=this[_0x1bd37f(0x286)]['getDrawingData'](_0x3a3641[_0x1bd37f(0x26f)],_0x3a3641[_0x1bd37f(0x269)]))==null?void 0x0:_0x2374e7[_0x3a3641[_0x1bd37f(0x1f3)]],_0x498072=this[_0x1bd37f(0x218)][_0x1bd37f(0x23f)](_0x3a3641[_0x1bd37f(0x26f)],_0x3a3641[_0x1bd37f(0x269)],_0x3a3641[_0x1bd37f(0x1f3)]);if(!_0x48dac3||_0x48dac3['drawingType']!==_0x2a0192['DRAWING_SHAPE']||!_0x498072)return null;let _0x2ac809=_0x48dac3[_0x1bd37f(0x206)];return{..._0x3a3641,'shapeType':_0x498072,'shapeData':_0x44cf1c['deepClone'](this[_0x1bd37f(0x218)][_0x1bd37f(0x289)](_0x3a3641['unitId'],_0x3a3641[_0x1bd37f(0x269)],_0x3a3641[_0x1bd37f(0x1f3)])??{}),'name':_0x48dac3[_0x1bd37f(0x1e4)],'description':_0x48dac3['description'],'visible':_0x48dac3[_0x1bd37f(0x253)]!==!0x0,'selectable':_0x48dac3[_0x1bd37f(0x22b)]!==!0x1,'transform':{'left':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1d9)])??0x0,'top':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1ff)])??0x0,'width':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1f9)])??0xc8,'height':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x25d)])??0xc8,'rotation':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1e2)])??0x0,'flipX':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x283)])??!0x1,'flipY':(_0x2ac809==null?void 0x0:_0x2ac809[_0x1bd37f(0x1ed)])??!0x1}};}[_0x151c8b(0x1df)](_0x51d340){const _0xe1c3=_0x151c8b;let _0x539765=this['_drawingService'][_0xe1c3(0x1fb)](_0x51d340['unitId'],_0x51d340[_0xe1c3(0x269)])??{};return Object['values'](_0x539765)[_0xe1c3(0x1e9)](_0x43f109=>(_0x43f109==null?void 0x0:_0x43f109[_0xe1c3(0x232)])===_0x2a0192[_0xe1c3(0x215)])[_0xe1c3(0x281)](_0x4d6d9e=>this[_0xe1c3(0x25b)]({..._0x51d340,'shapeId':_0x4d6d9e['drawingId']}))[_0xe1c3(0x1e9)](_0xd99895=>!!_0xd99895);}[_0x151c8b(0x27c)](_0x38c884){const _0x243e81=_0x151c8b;let _0x48f7cd=this[_0x243e81(0x1e5)][_0x243e81(0x2a0)](_0x38c884,_0x543e53[_0x243e81(0x26e)]);return(_0x48f7cd==null?void 0x0:_0x48f7cd[_0x243e81(0x1fd)]()['flatMap'](_0x3f3537=>this[_0x243e81(0x1df)]({'hostType':this[_0x243e81(0x290)],'unitId':_0x38c884,'subUnitId':_0x3f3537[_0x243e81(0x234)]()})))??[];}[_0x151c8b(0x28f)](_0x2c5854,_0x2e9ca5){const _0x1cec52=_0x151c8b;let _0x30ac3b=_0x2c6a2b(),_0x56214e=Se(_0x2e9ca5),_0x36c857=_0x44cf1c[_0x1cec52(0x266)](_0x2e9ca5[_0x1cec52(0x249)]??_0x419dd5(_0x2e9ca5['shapeType']));return this[_0x1cec52(0x230)][_0x1cec52(0x284)](fe['id'],{'unitId':_0x2c5854[_0x1cec52(0x26f)],'subUnitId':_0x2c5854[_0x1cec52(0x269)],'shapeId':_0x30ac3b,'shapeType':_0x2e9ca5[_0x1cec52(0x25a)],'shapeData':_0x36c857,'name':_0x2e9ca5[_0x1cec52(0x1e4)],'description':_0x2e9ca5[_0x1cec52(0x210)],'position':{'x':_0x56214e[_0x1cec52(0x1d9)],'y':_0x56214e[_0x1cec52(0x1ff)]},'width':_0x56214e[_0x1cec52(0x1f9)],'height':_0x56214e[_0x1cec52(0x25d)],'rotation':_0x56214e['rotation'],'flipX':_0x56214e[_0x1cec52(0x283)],'flipY':_0x56214e['flipY'],'visible':_0x2e9ca5[_0x1cec52(0x279)]??!0x0,'selectable':_0x2e9ca5[_0x1cec52(0x22b)]??!0x0})?{..._0x2c5854,'shapeId':_0x30ac3b,'shapeType':_0x2e9ca5[_0x1cec52(0x25a)],'shapeData':_0x36c857,'name':_0x2e9ca5[_0x1cec52(0x1e4)],'description':_0x2e9ca5[_0x1cec52(0x210)],'visible':_0x2e9ca5[_0x1cec52(0x279)]??!0x0,'selectable':_0x2e9ca5[_0x1cec52(0x22b)]??!0x0,'transform':_0x56214e}:null;}[_0x151c8b(0x20d)](_0x5344cc,_0x226945){const _0x317c44=_0x151c8b;var _0x146924;let _0x3d3d46=this['getShape'](_0x5344cc);if(!_0x3d3d46)return!0x1;let _0x4771a2={..._0x3d3d46[_0x317c44(0x206)],..._0x226945[_0x317c44(0x206)]};return this['_commandService']['syncExecuteCommand'](pe['id'],{'unitId':_0x5344cc[_0x317c44(0x26f)],'subUnitId':_0x5344cc[_0x317c44(0x269)],'shapeId':_0x5344cc[_0x317c44(0x1f3)],'shapeType':_0x226945[_0x317c44(0x25a)]??((_0x146924=_0x226945[_0x317c44(0x249)])==null?void 0x0:_0x146924['shapeType'])??_0x3d3d46[_0x317c44(0x25a)],'shapeData':_0x226945['shapeData']??_0x3d3d46[_0x317c44(0x249)],'position':{'x':_0x4771a2[_0x317c44(0x1d9)],'y':_0x4771a2[_0x317c44(0x1ff)]},'width':_0x4771a2['width'],'height':_0x4771a2[_0x317c44(0x25d)],'rotation':_0x4771a2[_0x317c44(0x258)],'flipX':_0x4771a2[_0x317c44(0x283)],'flipY':_0x4771a2['flipY'],'name':_0x317c44(0x1e4)in _0x226945?_0x226945[_0x317c44(0x1e4)]:_0x3d3d46[_0x317c44(0x1e4)],'description':'description'in _0x226945?_0x226945['description']:_0x3d3d46['description'],'visible':_0x226945['visible']??_0x3d3d46[_0x317c44(0x279)],'selectable':_0x226945[_0x317c44(0x22b)]??_0x3d3d46[_0x317c44(0x22b)]});}[_0x151c8b(0x1ef)](_0x3a0a3f,_0x5ad7cb,_0x1cbe32){const _0x2c4750=_0x151c8b;let _0x21bdb4=this[_0x2c4750(0x25b)](_0x3a0a3f),_0x282f0a=_0x21bdb4==null?void 0x0:_0x21bdb4[_0x2c4750(0x249)][_0x2c4750(0x27b)];return!_0x21bdb4||!_0x282f0a?null:{'id':$['id'],'params':{'unitId':_0x3a0a3f[_0x2c4750(0x26f)],'subUnitId':_0x3a0a3f[_0x2c4750(0x269)],'shapeId':_0x3a0a3f[_0x2c4750(0x1f3)],'shapeData':{..._0x21bdb4[_0x2c4750(0x249)],'formulaBinding':{..._0x282f0a,'lastValue':_0x44cf1c[_0x2c4750(0x266)](_0x1cbe32)}},'replace':!0x0,'formulaLastValueGuard':_0x5ad7cb}};}['removeShape'](_0x13e917){const _0x30f6d5=_0x151c8b;return this[_0x30f6d5(0x230)][_0x30f6d5(0x284)](_0x3be4bc['id'],{'unitId':_0x13e917[_0x30f6d5(0x26f)],'drawings':[{'unitId':_0x13e917[_0x30f6d5(0x26f)],'subUnitId':_0x13e917['subUnitId'],'drawingId':_0x13e917['shapeId'],'drawingType':_0x2a0192['DRAWING_SHAPE']}]});}['bringToFront'](_0x38de60){const _0x1a1cc2=_0x151c8b;return this[_0x1a1cc2(0x1de)](_0x38de60,_0x57ca34['front']);}[_0x151c8b(0x225)](_0x557f0e){const _0x44c449=_0x151c8b;return this[_0x44c449(0x1de)](_0x557f0e,_0x57ca34[_0x44c449(0x23a)]);}[_0x151c8b(0x1e3)](_0x51e992){const _0x5639f2=_0x151c8b;return this[_0x5639f2(0x1de)](_0x51e992,_0x57ca34[_0x5639f2(0x238)]);}[_0x151c8b(0x28a)](_0x3dd6b2){const _0x23e3d2=_0x151c8b;return this[_0x23e3d2(0x1de)](_0x3dd6b2,_0x57ca34['back']);}[_0x151c8b(0x224)](_0x441a37,_0x4b916f){const _0x5e0b06=_0x151c8b;return this['_commandService'][_0x5e0b06(0x284)](_0x2ba09c['id'],{'unitId':_0x441a37['unitId'],'subUnitId':_0x441a37['subUnitId'],'drawingIds':[_0x441a37[_0x5e0b06(0x1f3)]],'zOrder':_0x4b916f});}[_0x151c8b(0x1de)](_0x587fff,_0x215834){const _0x158e03=_0x151c8b;return this['_commandService']['syncExecuteCommand'](_0x2ba09c['id'],{'unitId':_0x587fff[_0x158e03(0x26f)],'subUnitId':_0x587fff['subUnitId'],'drawingIds':[_0x587fff[_0x158e03(0x1f3)]],'arrangeType':_0x215834});}};Ce=le([Z(0x0,_0x29da1d),Z(0x1,_0x4d6358(Q)),Z(0x2,_0x208026),Z(0x3,_0x11021c)],Ce);const we={};let Te=class extends _0x38c616{constructor(_0x27e0c5,_0x4daca3,_0x4d48ef,_0x3af795,_0xf64fdc,_0x250320,_0x1667cb){const _0x146fd3=_0x151c8b;super(),this[_0x146fd3(0x230)]=_0x27e0c5,this[_0x146fd3(0x2a5)]=_0x4daca3,this[_0x146fd3(0x29a)]=_0x4d48ef,this['_sheetsShapeService']=_0x3af795,this['_drawingManagerService']=_0xf64fdc,this['_shapeHostAdapterRegistry']=_0x250320,this[_0x146fd3(0x299)](),this[_0x146fd3(0x257)](),this[_0x146fd3(0x1e8)](this[_0x146fd3(0x278)][_0x146fd3(0x29d)](_0x1667cb));}['_initCommands'](){const _0x5c8bd9=_0x151c8b;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$]['forEach'](_0x2ff6b3=>this[_0x5c8bd9(0x1e8)](this[_0x5c8bd9(0x230)][_0x5c8bd9(0x268)](_0x2ff6b3)));}[_0x151c8b(0x257)](){const _0xfd3d9c=_0x151c8b;this[_0xfd3d9c(0x1e8)](this[_0xfd3d9c(0x2a5)][_0xfd3d9c(0x221)]({'getMutations':_0x2fdac0=>{const _0x5179c5=_0xfd3d9c;if(_0x2fdac0['id']===_0x3be4bc['id']){let {drawings:_0x287948}=_0x2fdac0[_0x5179c5(0x270)],_0xf4d639=_0x287948[_0x5179c5(0x1e9)](_0x4bf1a4=>_0x4bf1a4[_0x5179c5(0x232)]===_0x2a0192['DRAWING_SHAPE']);if(_0xf4d639[_0x5179c5(0x1f1)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x125f47=[],_0xfe11d2=[];return _0xf4d639['forEach'](_0x147db3=>{const _0x48de20=_0x5179c5;let {unitId:_0x5771db,subUnitId:_0x5d7439,drawingId:_0x524405}=_0x147db3,_0x1fa679=this[_0x48de20(0x235)][_0x48de20(0x27d)](_0x5771db,_0x5d7439,_0x524405);if(!_0x1fa679)throw TypeError(_0x48de20(0x21f)+_0x1fa679);_0x125f47['push']({'id':de['id'],'params':{'unitId':_0x5771db,'subUnitId':_0x5d7439,'shapeId':_0x524405}}),_0xfe11d2[_0x48de20(0x28d)]({'id':ue['id'],'params':{'unitId':_0x5771db,'subUnitId':_0x5d7439,'shapeId':_0x524405,'shapeType':_0x1fa679['getShapeType'](),'shapeData':_0x1fa679[_0x48de20(0x1e0)]()}});let _0x4d62de=this['_sheetsShapeService'][_0x48de20(0x20b)](_0x5771db,_0x5d7439,_0x524405);if(_0x4d62de)for(let _0x59ebf1 of _0x4d62de){let _0x586101=_0x59ebf1[_0x48de20(0x212)],_0x4d2f96=_0x59ebf1[_0x48de20(0x2a1)],_0x3136c6=_0x4d2f96?{'from':void 0x0}:{'to':void 0x0},_0x59d425=_0x4d2f96?{'from':{'shapeId':_0x59ebf1['shapeId'],'cxnIndex':_0x59ebf1[_0x48de20(0x1ee)]}}:{'to':{'shapeId':_0x59ebf1[_0x48de20(0x1f3)],'cxnIndex':_0x59ebf1[_0x48de20(0x1ee)]}};_0x125f47[_0x48de20(0x28d)]({'id':$['id'],'params':{'unitId':_0x5771db,'subUnitId':_0x5d7439,'shapeId':_0x586101,'shapeData':{'relation':_0x3136c6}}}),_0xfe11d2[_0x48de20(0x28d)]({'id':$['id'],'params':{'unitId':_0x5771db,'subUnitId':_0x5d7439,'shapeId':_0x586101,'shapeData':{'relation':_0x59d425}}});}}),{'preRedos':_0x125f47,'redos':[],'preUndos':[],'undos':_0xfe11d2};}if(_0x2fdac0['id']===_0x24cf20['id']){let {drawings:_0x5bdf89}=_0x2fdac0[_0x5179c5(0x270)],_0x33da62=_0x5bdf89[_0x5179c5(0x1e9)](_0x2cb8be=>_0x2cb8be[_0x5179c5(0x232)]===_0x2a0192[_0x5179c5(0x215)]);if(_0x33da62[_0x5179c5(0x1f1)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2ff0f4=[],_0x2e429e=[];for(let _0x5f5066 of _0x33da62){let {unitId:_0x1ca74d,subUnitId:_0x14825e,drawingId:_0x19e1ca,transform:_0x43648a}=_0x5f5066;if(!_0x1ca74d||!_0x14825e||!_0x19e1ca||!_0x43648a)continue;let _0x430153=this[_0x5179c5(0x235)][_0x5179c5(0x27d)](_0x1ca74d,_0x14825e,_0x19e1ca);if(!_0x430153)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x430153);let _0x36f0d0=_0x430153[_0x5179c5(0x23f)]();if(_0x2d6c01(_0x36f0d0)){let _0x5738f9=this[_0x5179c5(0x235)]['getLineShapeRelation'](_0x1ca74d,_0x14825e,_0x19e1ca);_0x5738f9&&(_0x2ff0f4[_0x5179c5(0x28d)]({'id':$['id'],'params':{'unitId':_0x1ca74d,'subUnitId':_0x14825e,'shapeId':_0x19e1ca,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2e429e[_0x5179c5(0x28d)]({'id':$['id'],'params':{'unitId':_0x1ca74d,'subUnitId':_0x14825e,'shapeId':_0x19e1ca,'shapeData':{'relation':_0x5738f9}}}));}else{let _0x2fbf68=this['_sheetsShapeService'][_0x5179c5(0x20b)](_0x1ca74d,_0x14825e,_0x19e1ca);if(_0x2fbf68&&_0x2fbf68[_0x5179c5(0x1f1)]>0x0)for(let _0x48acb2 of _0x2fbf68){let _0x239975=_0x48acb2['lineShapeId'],_0xbefa8d=_0x48acb2['isFrom'],_0x571dba=this[_0x5179c5(0x235)]['getShapeModel'](_0x1ca74d,_0x14825e,_0x239975);if(!_0x571dba)continue;let _0x2bf0ef=_0x571dba[_0x5179c5(0x275)](),_0x55eca4=_0x571dba[_0x5179c5(0x1fa)]();_0x2bf0ef&&_0x55eca4?this[_0x5179c5(0x256)](_0x1ca74d,_0x14825e,_0x239975,_0x571dba,_0x2bf0ef,_0x55eca4,_0x2ff0f4,_0x2e429e,_0x19e1ca,_0x43648a):this['_addLineFollowShapeUpdates'](_0x1ca74d,_0x14825e,_0x239975,_0x571dba,_0xbefa8d?_0x2bf0ef:_0x55eca4,_0xbefa8d,_0x2ff0f4,_0x2e429e,_0x19e1ca,_0x43648a);}}}return{'preRedos':[],'redos':_0x2ff0f4,'preUndos':_0x2e429e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x151c8b(0x241)](_0x13c97b,_0x3348c5,_0x5507f5,_0x2f9f97,_0x4a80b0){const _0x4f0294=_0x151c8b;if(!_0x3348c5||!_0x5507f5)return null;let {shapeId:_0x45498b,cxnIndex:_0x36a642}=_0x13c97b,_0xdada4d=this[_0x4f0294(0x235)][_0x4f0294(0x27d)](_0x3348c5,_0x5507f5,_0x45498b);if(!_0xdada4d)return null;let _0x10a46c=this['_drawingManagerService'][_0x4f0294(0x291)]({'unitId':_0x3348c5,'subUnitId':_0x5507f5,'drawingId':_0x45498b});if(!(_0x10a46c!=null&&_0x10a46c['transform']))return null;let {left:_0x47491d=0x0,top:_0x3bc7aa=0x0,width:_0x2054ad=0x0,height:_0x1bdaf9=0x0,flipX:_0x545a8a=!0x1,flipY:_0x3c3925=!0x1,angle:_0x35ed3c}=_0x10a46c[_0x4f0294(0x206)];_0x4a80b0&&_0x2f9f97===_0x45498b&&(_0x47491d=_0x4a80b0[_0x4f0294(0x1d9)]??_0x47491d,_0x3bc7aa=_0x4a80b0[_0x4f0294(0x1ff)]??_0x3bc7aa,_0x2054ad=_0x4a80b0['width']??_0x2054ad,_0x1bdaf9=_0x4a80b0['height']??_0x1bdaf9,_0x545a8a=_0x4a80b0[_0x4f0294(0x283)]??_0x545a8a,_0x3c3925=_0x4a80b0[_0x4f0294(0x1ed)]??_0x3c3925,_0x35ed3c=_0x4a80b0[_0x4f0294(0x1e2)]??_0x35ed3c),_0xdada4d[_0x4f0294(0x203)]({'width':_0x2054ad,'height':_0x1bdaf9});let _0x4c3721=_0xdada4d['getConnectionSiteList']()[_0x4f0294(0x29f)](_0xcd3592=>_0xcd3592[_0x4f0294(0x220)]===_0x36a642);if(!_0x4c3721)return null;let _0x5412a7=_0x545a8a?_0x2054ad-_0x4c3721['x']:_0x4c3721['x'],_0x42466f=_0x3c3925?_0x1bdaf9-_0x4c3721['y']:_0x4c3721['y'];if(_0x35ed3c!==0x0&&_0x35ed3c!=null){let _0x10b775=_0x35ed3c*Math['PI']/0xb4,_0x1c839e=Math[_0x4f0294(0x222)](_0x10b775),_0x53e5b5=Math[_0x4f0294(0x22e)](_0x10b775),_0x1e04b1=_0x2054ad/0x2,_0x4a0ddc=_0x1bdaf9/0x2,_0x29313e=_0x5412a7-_0x1e04b1,_0x24b3a2=_0x42466f-_0x4a0ddc;_0x5412a7=_0x1e04b1+_0x29313e*_0x1c839e-_0x24b3a2*_0x53e5b5,_0x42466f=_0x4a0ddc+_0x29313e*_0x53e5b5+_0x24b3a2*_0x1c839e;}_0x5412a7+=_0x47491d,_0x42466f+=_0x3bc7aa;let _0x5e9a07=_0x4c3721[_0x4f0294(0x231)]/0xea60;_0x545a8a&&(_0x5e9a07=0xb4-_0x5e9a07),_0x3c3925&&(_0x5e9a07=-_0x5e9a07),_0x5e9a07+=_0x35ed3c||0x0,_0x5e9a07=(_0x5e9a07%0x168+0x168)%0x168;let _0x3caab6=_0x3c798b({'left':_0x47491d,'top':_0x3bc7aa,'width':_0x2054ad,'height':_0x1bdaf9},_0x35ed3c||0x0);return{'point':{'x':_0x5412a7,'y':_0x42466f},'angle':_0x5e9a07,'bounds':_0x3caab6};}[_0x151c8b(0x256)](_0x5a796c,_0x2d22bf,_0x27ff0e,_0x10fdd0,_0x30ecc0,_0xf47ff0,_0x514929,_0x575b84,_0x770c02,_0x49b6c8){const _0x213031=_0x151c8b;let _0x53f4ce=this[_0x213031(0x29a)][_0x213031(0x254)](_0x5a796c,_0x2d22bf);if(!_0x53f4ce)return;let _0x11e4d2=_0x10fdd0[_0x213031(0x20c)](),_0x2504ca=_0x10fdd0[_0x213031(0x295)](),_0x20a6e3={},_0x2cc41d={};_0x2504ca[_0x213031(0x236)](_0x560b2c=>{const _0x5d73d0=_0x213031;let _0x26fe21=_0x10fdd0[_0x5d73d0(0x213)](_0x560b2c);_0x2cc41d[_0x560b2c]=_0x26fe21??0x0;});let _0x333ecb=this['_getConnectPointInfo'](_0x30ecc0,_0x5a796c,_0x2d22bf,_0x770c02,_0x49b6c8),_0x2b41ad=this[_0x213031(0x241)](_0xf47ff0,_0x5a796c,_0x2d22bf,_0x770c02,_0x49b6c8);if(_0x333ecb&&_0x2b41ad){let _0x51bbd8=_0x10fdd0['getShapeType'](),_0x794f40=_0xcf1d71(_0x333ecb,_0x2b41ad,_0x51bbd8),_0xe42a74=_0x51bbd8;if(_0x794f40){let _0x25c80e=_0x4064df(_0x794f40,_0x10fdd0[_0x213031(0x23f)]()),_0x146c23=this[_0x213031(0x242)][_0x213031(0x1fb)](_0x5a796c,_0x2d22bf);if(_0x146c23&&_0x146c23[_0x27ff0e]){let _0x30b16f=_0x146c23[_0x27ff0e];_0xe42a74=_0x25c80e[_0x213031(0x1e6)];for(let [_0x212ac6,_0x24667e]of Object['entries'](_0x25c80e[_0x213031(0x228)]))_0x20a6e3[_0x212ac6]=_0x24667e;let _0x400697={..._0x30b16f['transform'],'width':_0x25c80e['worldRect'][_0x213031(0x1f9)],'height':_0x25c80e['worldRect'][_0x213031(0x25d)],'left':_0x25c80e[_0x213031(0x245)]['left'],'top':_0x25c80e['worldRect'][_0x213031(0x1ff)],'flipX':_0x25c80e['worldRect'][_0x213031(0x283)],'flipY':_0x25c80e[_0x213031(0x245)][_0x213031(0x1ed)],'angle':_0x25c80e[_0x213031(0x258)]},_0x2d7dee=_0x18a95d(_0x400697,_0x53f4ce),_0x57b9e0=_0x458f48(_0x400697,_0x53f4ce),_0x5b6571={'unitId':_0x5a796c,'subUnitId':_0x2d22bf,'drawingType':_0x2a0192['DRAWING_SHAPE'],'drawingId':_0x27ff0e,'transform':_0x400697,'sheetTransform':_0x2d7dee,'axisAlignSheetTransform':_0x57b9e0},{unitId:_0x13013d,subUnitId:_0x3f26e2,undo:_0x4eb7aa,redo:_0x93173e,objects:_0x2282ce}=this[_0x213031(0x242)][_0x213031(0x2a3)]([_0x5b6571]);_0x514929[_0x213031(0x28d)]({'id':_0x2bb427['id'],'params':{'unitId':_0x13013d,'subUnitId':_0x3f26e2,'op':_0x93173e,'objects':_0x2282ce,'type':_0x5d57ba['UPDATE']}}),_0x575b84['push']({'id':_0x2bb427['id'],'params':{'unitId':_0x13013d,'subUnitId':_0x3f26e2,'op':_0x4eb7aa,'objects':_0x2282ce,'type':_0x5d57ba[_0x213031(0x1d7)]}});}_0x10fdd0[_0x213031(0x25f)]();}_0x514929[_0x213031(0x28d)]({'id':$['id'],'params':{'unitId':_0x5a796c,'subUnitId':_0x2d22bf,'shapeId':_0x27ff0e,'shapeType':_0xe42a74,'shapeData':{'adjustValues':_0x20a6e3,'relation':_0x11e4d2}}}),_0x575b84[_0x213031(0x28d)]({'id':$['id'],'params':{'unitId':_0x5a796c,'subUnitId':_0x2d22bf,'shapeId':_0x27ff0e,'shapeType':_0x51bbd8,'shapeData':{'adjustValues':_0x2cc41d,'relation':_0x11e4d2}}});}}[_0x151c8b(0x2a4)](_0x40127b,_0x3f4647,_0x3fd05b,_0xd17286,_0x60b59b,_0x3e0865,_0x54bfe6,_0xf77340,_0x4a7ae9,_0xfffc63){const _0x219eb7=_0x151c8b;var _0x2c7d17;if(!_0x60b59b)return;let _0x4ef046=this[_0x219eb7(0x29a)]['getSkeleton'](_0x40127b,_0x3f4647);if(!_0x4ef046)return;let _0x16ce1f=(_0x2c7d17=this[_0x219eb7(0x242)][_0x219eb7(0x291)]({'unitId':_0x40127b,'subUnitId':_0x3f4647,'drawingId':_0x4a7ae9}))==null?void 0x0:_0x2c7d17['transform'];if(!_0x16ce1f)return;let _0x1492d1=_0x16ce1f['left']!==_0xfffc63[_0x219eb7(0x1d9)]||_0x16ce1f[_0x219eb7(0x1ff)]!==_0xfffc63['top'],_0x21e5ba=_0x16ce1f[_0x219eb7(0x1f9)]!==_0xfffc63[_0x219eb7(0x1f9)]||_0x16ce1f[_0x219eb7(0x25d)]!==_0xfffc63[_0x219eb7(0x25d)],_0x2c0d4a=_0x16ce1f['flipX']!==_0xfffc63['flipX']||_0x16ce1f[_0x219eb7(0x1ed)]!==_0xfffc63['flipY'],_0xcefa38=_0x16ce1f['angle']!==_0xfffc63[_0x219eb7(0x1e2)];if(_0x1492d1&&!_0x21e5ba&&!_0x2c0d4a&&!_0xcefa38){let _0x31a80b=(_0xfffc63[_0x219eb7(0x1d9)]??0x0)-(_0x16ce1f[_0x219eb7(0x1d9)]??0x0),_0x178388=(_0xfffc63[_0x219eb7(0x1ff)]??0x0)-(_0x16ce1f[_0x219eb7(0x1ff)]??0x0),_0x4777a5=this[_0x219eb7(0x242)][_0x219eb7(0x1fb)](_0x40127b,_0x3f4647);if(_0x4777a5&&_0x4777a5[_0x3fd05b]){var _0x2b7d3e,_0x130b74;let _0x243e71=_0x4777a5[_0x3fd05b],_0x470ced={..._0x243e71[_0x219eb7(0x206)],'left':(((_0x2b7d3e=_0x243e71[_0x219eb7(0x206)])==null?void 0x0:_0x2b7d3e['left'])??0x0)+_0x31a80b,'top':(((_0x130b74=_0x243e71[_0x219eb7(0x206)])==null?void 0x0:_0x130b74[_0x219eb7(0x1ff)])??0x0)+_0x178388},_0x365e7b=_0x18a95d(_0x470ced,_0x4ef046),_0x42e6f9=_0x458f48(_0x470ced,_0x4ef046),_0x5781f4={'unitId':_0x40127b,'subUnitId':_0x3f4647,'drawingType':_0x2a0192[_0x219eb7(0x215)],'drawingId':_0x3fd05b,'transform':_0x470ced,'sheetTransform':_0x365e7b,'axisAlignSheetTransform':_0x42e6f9},{unitId:_0x4ea3c3,subUnitId:_0x56f688,undo:_0x4551af,redo:_0x53bba5,objects:_0x1b45ac}=this['_drawingManagerService']['getBatchUpdateOp']([_0x5781f4]);_0x54bfe6[_0x219eb7(0x28d)]({'id':_0x2bb427['id'],'params':{'unitId':_0x4ea3c3,'subUnitId':_0x56f688,'op':_0x53bba5,'objects':_0x1b45ac,'type':_0x5d57ba[_0x219eb7(0x1d7)]}}),_0xf77340['push']({'id':_0x2bb427['id'],'params':{'unitId':_0x4ea3c3,'subUnitId':_0x56f688,'op':_0x4551af,'objects':_0x1b45ac,'type':_0x5d57ba[_0x219eb7(0x1d7)]}});}}else{let _0x21123b=_0xd17286[_0x219eb7(0x275)](),_0x32af63=_0xd17286[_0x219eb7(0x1fa)]();this['_addLineRerouteUpdates'](_0x40127b,_0x3f4647,_0x3fd05b,_0xd17286,_0x21123b,_0x32af63,_0x54bfe6,_0xf77340,_0x4a7ae9,_0xfffc63);}}};Te=le([Z(0x0,_0x29da1d),Z(0x1,_0x4d6358(_0x1e775a)),Z(0x2,_0x4d6358(_0x503013)),Z(0x3,_0x4d6358(Q)),Z(0x4,_0x4d6358(_0x38b720)),Z(0x5,_0x4d6358(_0x2fa80a)),Z(0x6,_0x4d6358(Ce))],Te);let Ee=class extends _0x38c616{constructor(_0x1ec865,_0x86c5e6,_0x340336){const _0x3a3273=_0x151c8b;super(),this[_0x3a3273(0x218)]=_0x1ec865,this[_0x3a3273(0x1da)]=_0x86c5e6,this['disposeWithMe'](_0x340336['register'](this));}[_0x151c8b(0x206)](_0x22acee){const _0x196458=_0x151c8b;let _0x2759f2={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this['_planDeletes'](_0x22acee,_0x2759f2);for(let [_0x31564b,_0x55cf7b]of _0x22acee['originals'])this[_0x196458(0x250)](_0x22acee,_0x31564b,_0x55cf7b,_0x2759f2);return _0x2759f2;}[_0x151c8b(0x1f0)](_0x26c00a,_0x16e1f4){const _0x38053a=_0x151c8b;if(_0x26c00a[_0x38053a(0x217)]===_0x38053a(0x244))for(let _0x4a828d of _0x26c00a[_0x38053a(0x26a)]){let _0xbb1169=_0x26c00a[_0x38053a(0x1f2)][_0x38053a(0x294)](_0x4a828d),_0x514217=this['_shapeService'][_0x38053a(0x27d)](_0x26c00a[_0x38053a(0x26f)],_0x26c00a[_0x38053a(0x269)],_0x4a828d);(_0xbb1169==null?void 0x0:_0xbb1169[_0x38053a(0x232)])===_0x2a0192[_0x38053a(0x215)]&&_0x514217&&(_0x16e1f4[_0x38053a(0x1ea)][_0x38053a(0x28d)]({'id':de['id'],'params':{'unitId':_0x26c00a['unitId'],'subUnitId':_0x26c00a[_0x38053a(0x269)],'shapeId':_0x4a828d}}),_0x16e1f4['undos'][_0x38053a(0x28d)]({'id':ue['id'],'params':{'unitId':_0x26c00a['unitId'],'subUnitId':_0x26c00a[_0x38053a(0x269)],'shapeId':_0x4a828d,'shapeName':_0x514217[_0x38053a(0x292)](),'shapeType':_0x514217['getShapeType'](),'shapeData':_0x44cf1c[_0x38053a(0x266)](_0x514217[_0x38053a(0x1e0)]())}}));}}[_0x151c8b(0x250)](_0x3f7687,_0x1dc58a,_0x1a464e,_0x4a75a9){const _0x352716=_0x151c8b;if(_0x1a464e[_0x352716(0x232)]!==_0x2a0192['DRAWING_SHAPE']||_0x3f7687[_0x352716(0x26a)][_0x352716(0x272)](_0x1dc58a))return;let _0x16ae37=this[_0x352716(0x218)]['getShapeModel'](_0x3f7687[_0x352716(0x26f)],_0x3f7687[_0x352716(0x269)],_0x1dc58a);if(!_0x16ae37||!_0x2d6c01(_0x16ae37[_0x352716(0x23f)]()))return;let _0x45b5d7=_0x16ae37[_0x352716(0x20c)]();if(!(_0x3f7687[_0x352716(0x276)]['has'](_0x1dc58a)||_0x45b5d7!=null&&_0x45b5d7[_0x352716(0x21b)]&&(_0x3f7687[_0x352716(0x276)][_0x352716(0x272)](_0x45b5d7[_0x352716(0x21b)][_0x352716(0x1f3)])||_0x3f7687[_0x352716(0x26a)][_0x352716(0x272)](_0x45b5d7[_0x352716(0x21b)][_0x352716(0x1f3)]))||_0x45b5d7!=null&&_0x45b5d7['to']&&(_0x3f7687[_0x352716(0x276)]['has'](_0x45b5d7['to'][_0x352716(0x1f3)])||_0x3f7687['deletes']['has'](_0x45b5d7['to'][_0x352716(0x1f3)]))))return;let _0x45b285=_0x3f7687[_0x352716(0x276)]['get'](_0x1dc58a)??_0x1a464e,_0x1e7db9=this[_0x352716(0x28b)](_0x3f7687,_0x45b285);if(!_0x1e7db9)return;let _0x229963=_0x5ced46(_0x1e7db9);if(_0x229963['length']<0x2)return;let _0xf7f3e5=_0x44cf1c['deepClone'](_0x45b5d7??{}),_0xaceca2=_0xf7f3e5['from']&&this[_0x352716(0x22f)](_0x3f7687,_0xf7f3e5[_0x352716(0x21b)][_0x352716(0x1f3)],_0xf7f3e5[_0x352716(0x21b)][_0x352716(0x1ee)]),_0x44d13b=_0xf7f3e5['to']&&this[_0x352716(0x22f)](_0x3f7687,_0xf7f3e5['to'][_0x352716(0x1f3)],_0xf7f3e5['to'][_0x352716(0x1ee)]);_0xf7f3e5[_0x352716(0x21b)]&&!_0xaceca2&&delete _0xf7f3e5[_0x352716(0x21b)],_0xf7f3e5['to']&&!_0x44d13b&&delete _0xf7f3e5['to'];let _0x50596a=_0xaceca2||_0x275ed3((_0x44d13b==null?void 0x0:_0x44d13b[_0x352716(0x1f7)])??_0x229963[_0x229963[_0x352716(0x1f1)]-0x1],_0x229963[0x0]),_0x9833bf=_0x44d13b||_0x275ed3((_0xaceca2==null?void 0x0:_0xaceca2[_0x352716(0x1f7)])??_0x229963[0x0],_0x229963[_0x229963[_0x352716(0x1f1)]-0x1]),_0x4ae6b7=_0x1906b0(_0x1e7db9,_0x50596a,_0x9833bf,_0xf7f3e5);if(_0x4ae6b7!=null&&_0x4ae6b7[_0x352716(0x206)]&&_0x4ae6b7[_0x352716(0x25a)]&&_0x4ae6b7[_0x352716(0x249)]){if(this[_0x352716(0x1ec)](_0x3f7687,_0x45b285,_0x4ae6b7),_0x3f7687[_0x352716(0x217)]==='refresh'){_0x16ae37['setShapeType'](_0x4ae6b7[_0x352716(0x25a)]),_0x16ae37['setShapeData'](_0x44cf1c[_0x352716(0x266)](_0x4ae6b7['shapeData']),!0x1);return;}_0x4a75a9[_0x352716(0x24d)]['push']({'id':$['id'],'params':{'unitId':_0x3f7687[_0x352716(0x26f)],'subUnitId':_0x3f7687['subUnitId'],'shapeId':_0x1dc58a,'shapeType':_0x4ae6b7['shapeType'],'shapeData':_0x44cf1c[_0x352716(0x266)](_0x4ae6b7[_0x352716(0x249)]),'replace':!0x0}}),_0x4a75a9[_0x352716(0x20f)][_0x352716(0x28d)]({'id':$['id'],'params':{'unitId':_0x3f7687[_0x352716(0x26f)],'subUnitId':_0x3f7687[_0x352716(0x269)],'shapeId':_0x1dc58a,'shapeType':_0x16ae37[_0x352716(0x23f)](),'shapeData':_0x44cf1c[_0x352716(0x266)](_0x16ae37[_0x352716(0x1e0)]()),'replace':!0x0}});}}[_0x151c8b(0x22f)](_0x231239,_0x1df93c,_0x3ccc57){const _0x2f4235=_0x151c8b;if(_0x231239['deletes'][_0x2f4235(0x272)](_0x1df93c))return null;let _0x154b56=_0x231239[_0x2f4235(0x276)]['get'](_0x1df93c)??_0x231239[_0x2f4235(0x1f2)]['get'](_0x1df93c);if(!_0x154b56)return null;let _0x3a87a2=this[_0x2f4235(0x28b)](_0x231239,_0x154b56);return _0x3a87a2?_0x46aa4f(_0x3a87a2,_0x3ccc57):null;}[_0x151c8b(0x28b)](_0x15d10a,_0x5c025f){const _0x260fcb=_0x151c8b;let _0x33ea87={'hostType':_0x543e53[_0x260fcb(0x26e)],'unitId':_0x15d10a[_0x260fcb(0x26f)],'subUnitId':_0x15d10a[_0x260fcb(0x269)],'shapeId':_0x5c025f[_0x260fcb(0x226)]},_0x59985b=this[_0x260fcb(0x1da)][_0x260fcb(0x25b)](_0x33ea87);return!_0x59985b||!_0x5c025f[_0x260fcb(0x206)]?null:{..._0x59985b,'transform':{'left':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x1d9)]??0x0,'top':_0x5c025f['transform'][_0x260fcb(0x1ff)]??0x0,'width':_0x5c025f[_0x260fcb(0x206)]['width']??0x0,'height':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x25d)]??0x0,'rotation':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x1e2)]??0x0,'flipX':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x283)]??!0x1,'flipY':_0x5c025f[_0x260fcb(0x206)][_0x260fcb(0x1ed)]??!0x1}};}[_0x151c8b(0x1ec)](_0x2d7203,_0x24762d,_0x249ec0){const _0x3858ce=_0x151c8b;let _0x15ad94=_0x24762d,_0xe8d722={..._0x24762d[_0x3858ce(0x206)],'left':_0x249ec0['transform']['left'],'top':_0x249ec0[_0x3858ce(0x206)][_0x3858ce(0x1ff)],'width':_0x249ec0[_0x3858ce(0x206)][_0x3858ce(0x1f9)],'height':_0x249ec0[_0x3858ce(0x206)][_0x3858ce(0x25d)],'angle':_0x249ec0[_0x3858ce(0x206)]['rotation'],'flipX':_0x249ec0[_0x3858ce(0x206)]['flipX'],'flipY':_0x249ec0[_0x3858ce(0x206)][_0x3858ce(0x1ed)]},_0x420c3c={..._0x15ad94,'transform':_0xe8d722,'sheetTransform':_0x18a95d(_0xe8d722,_0x2d7203['skeleton']),'axisAlignSheetTransform':_0x458f48(_0xe8d722,_0x2d7203[_0x3858ce(0x22d)]),'data':{..._0x15ad94['data'],'shapeType':_0x249ec0[_0x3858ce(0x25a)],'shapeData':_0x44cf1c[_0x3858ce(0x266)](_0x249ec0['shapeData'])}};_0x2d7203[_0x3858ce(0x276)][_0x3858ce(0x214)](_0x24762d[_0x3858ce(0x226)],_0x420c3c);}};Ee=le([Z(0x0,_0x4d6358(Q)),Z(0x1,_0x4d6358(Ce)),Z(0x2,_0x4d6358(_0x270690))],Ee);let De=class extends _0x5ab01b{constructor(_0x18f8ea=we,_0x2a39a8,_0x347c88){const _0x5e2814=_0x151c8b;super(),this[_0x5e2814(0x277)]=_0x18f8ea,this[_0x5e2814(0x23c)]=_0x2a39a8,this[_0x5e2814(0x267)]=_0x347c88;let {..._0x9e80ae}=_0x5ad21b({},we,this[_0x5e2814(0x277)]);this[_0x5e2814(0x267)]['setConfig'](_0x5e2814(0x29b),_0x9e80ae);}['onStarting'](){const _0x39166e=_0x151c8b;let _0x986392=this[_0x39166e(0x23c)];[[ce],[Q],[Ce],[Ee],[Te]]['forEach'](_0x1d5b91=>_0x986392['add'](_0x1d5b91)),_0x123ce4(_0x986392,[[Q],[Ee],[Te]]);}};X(De,_0x151c8b(0x26c),_0x543e53[_0x151c8b(0x26e)]),X(De,'pluginName',_0x151c8b(0x29c)),X(De,_0x151c8b(0x24c),be),X(De,'version',xe),De=le([_0x1f6177(_0x5bac1f,_0x302f81,_0x9b4221,_0x4abf60,_0x380ea5),Z(0x1,_0x4d6358(_0x2ddf23)),Z(0x2,_0xb091bb)],De);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,Q as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,De as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x4e1758=_0x289a;(function(_0x3909b7,_0x366cc3){const _0x2e7baf=_0x289a,_0x4f4835=_0x3909b7();while(!![]){try{const _0x4a6d64=parseInt(_0x2e7baf(0x214))/0x1+-parseInt(_0x2e7baf(0x1f6))/0x2+parseInt(_0x2e7baf(0x1b6))/0x3*(-parseInt(_0x2e7baf(0x1a8))/0x4)+parseInt(_0x2e7baf(0x255))/0x5+parseInt(_0x2e7baf(0x1dc))/0x6*(parseInt(_0x2e7baf(0x273))/0x7)+-parseInt(_0x2e7baf(0x1bb))/0x8+parseInt(_0x2e7baf(0x267))/0x9*(parseInt(_0x2e7baf(0x259))/0xa);if(_0x4a6d64===_0x366cc3)break;else _0x4f4835['push'](_0x4f4835['shift']());}catch(_0x3f2bde){_0x4f4835['push'](_0x4f4835['shift']());}}}(_0xf86d,0x20cb8));import{IShapeHostAdapterRegistry as _0x281679,ShapeModel as _0x2d7c22,UniverShapePlugin as _0x223efa,buildConnectorEndpointUpdate as _0x150f21,canApplyShapeFormulaLastValue as _0x151daa,computeConnectorRouteLayout as _0x33778f,createDefaultInsertedShapeData as _0x1a88d3,createFreeConnectorPointInfo as _0x480a1d,createUniqueShapeName as _0x34737b,getBasicShapeRotateBound as _0x454a23,isConnectorShape as _0x178a1e,resolveConnectorRoutePoints as _0x404ba0,resolveShapeConnectionPoint as _0x37f0e6,routeConnectorLineShape as _0x4bf912}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x29f512,CommandType as _0x5ca941,DependentOn as _0x39978e,Disposable as _0x50ff4f,DrawingTypeEnum as _0x579c28,ICommandService as _0x446a3b,IConfigService as _0x29256c,IResourceManagerService as _0x2a1ffc,IUndoRedoService as _0x1e06fd,IUniverInstanceService as _0xa1550,Inject as _0x201a83,Injector as _0x3dddb4,Plugin as _0x2abf53,Tools as _0x32fcde,UniverInstanceType as _0x1e8d7b,generateRandomId as _0x7b910c,merge as _0x8713b3,sequenceExecute as _0x3c4f99,touchDependencies as _0x51e20f}from'@univerjs/core';import{SheetInterceptorService as _0x1c2c98,SheetSkeletonService as _0xb3d7e9,UniverSheetsPlugin as _0x237476,getSheetCommandTarget as _0xe34dd0}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x1b00b3,DrawingApplyType as _0x13e9cb,ISheetDrawingService as _0x16cbc8,InsertSheetDrawingCommand as _0x11f257,RemoveSheetDrawingCommand as _0x442350,SetDrawingApplyMutation as _0x553d2b,SetDrawingArrangeCommand as _0x13f510,SetSheetDrawingCommand as _0x47cba2,SheetDrawingAnchorType as _0x6b2bef,SheetDrawingTransformPlanService as _0x103301,UniverSheetsDrawingPlugin as _0x2b4b06,transformToAxisAlignPosition as _0x53a78f,transformToDrawingPosition as _0x55e9d6}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x460a76}from'@univerjs-pro/license';import{IDrawingManagerService as _0x392aaf,UniverDrawingPlugin as _0x14ff54}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0xe524c1){'@babel/helpers - typeof';return ae=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x3f9686){return typeof _0x3f9686;}:function(_0x31ee28){const _0xab8cd6=_0x289a;return _0x31ee28&&typeof Symbol==_0xab8cd6(0x1cf)&&_0x31ee28[_0xab8cd6(0x21b)]===Symbol&&_0x31ee28!==Symbol[_0xab8cd6(0x1df)]?_0xab8cd6(0x270):typeof _0x31ee28;},ae(_0xe524c1);}function oe(_0x49af9b,_0xdcd465){const _0x133c5d=_0x289a;if(ae(_0x49af9b)!='object'||!_0x49af9b)return _0x49af9b;var _0x4d7d11=_0x49af9b[Symbol['toPrimitive']];if(_0x4d7d11!==void 0x0){var _0x4916de=_0x4d7d11[_0x133c5d(0x20d)](_0x49af9b,_0xdcd465||_0x133c5d(0x26f));if(ae(_0x4916de)!=_0x133c5d(0x207))return _0x4916de;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xdcd465===_0x133c5d(0x266)?String:Number)(_0x49af9b);}function se(_0x124e53){const _0x25362b=_0x289a;var _0x494a5f=oe(_0x124e53,'string');return ae(_0x494a5f)==_0x25362b(0x270)?_0x494a5f:_0x494a5f+'';}function X(_0x43d8ed,_0x3ee3ab,_0x5843ec){const _0x823327=_0x289a;return(_0x3ee3ab=se(_0x3ee3ab))in _0x43d8ed?Object[_0x823327(0x22c)](_0x43d8ed,_0x3ee3ab,{'value':_0x5843ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43d8ed[_0x3ee3ab]=_0x5843ec,_0x43d8ed;}var ce=class extends _0x50ff4f{constructor(){const _0x226ed7=_0x289a;super(),X(this,'_shapes',new Map()),X(this,'_linesIds',new Set()),X(this,_0x226ed7(0x1aa),new Set());}['addShape'](_0x17f197,_0x376195,_0x2a4a1d,_0x46485a){const _0x4bcdf5=_0x289a;let _0x2d17bd=new _0x2d7c22(_0x17f197,_0x376195,_0x2a4a1d,_0x46485a);return this['_shapes']['set'](_0x376195,_0x2d17bd),_0x178a1e(_0x17f197)&&this[_0x4bcdf5(0x203)]['add'](_0x376195),_0x2d17bd;}[_0x4e1758(0x1d9)](_0x4a12ea){const _0x413d02=_0x4e1758;let _0xbe248a=[];for(let _0x102968 of this['_linesIds']){let _0x114681=this[_0x413d02(0x1ca)][_0x413d02(0x225)](_0x102968);if(_0x114681){let _0x18806b=_0x114681[_0x413d02(0x240)]();if(_0x18806b){var _0x32e9d0,_0x510e00;((_0x32e9d0=_0x18806b[_0x413d02(0x22e)])==null?void 0x0:_0x32e9d0[_0x413d02(0x1e2)])===_0x4a12ea&&_0xbe248a['push']({..._0x18806b[_0x413d02(0x22e)],'lineShapeId':_0x102968,'isFrom':!0x0}),((_0x510e00=_0x18806b['to'])==null?void 0x0:_0x510e00[_0x413d02(0x1e2)])===_0x4a12ea&&_0xbe248a[_0x413d02(0x20c)]({..._0x18806b['to'],'lineShapeId':_0x102968,'isFrom':!0x1});}}}return _0xbe248a;}[_0x4e1758(0x222)](_0x132949){const _0x502092=_0x4e1758;let _0x5b74c8=this[_0x502092(0x1ca)][_0x502092(0x225)](_0x132949);if(_0x5b74c8)return _0x5b74c8[_0x502092(0x240)]();}['getShapeType'](_0x27030d){const _0x5d0018=_0x4e1758;let _0x4b34e3=this[_0x5d0018(0x1ca)][_0x5d0018(0x225)](_0x27030d);if(_0x4b34e3)return _0x4b34e3[_0x5d0018(0x239)]();}[_0x4e1758(0x248)](_0x4d56e3){const _0x3e71db=_0x4e1758;return this[_0x3e71db(0x1ca)][_0x3e71db(0x1f5)](_0x4d56e3);}['getShapeDisplayNames'](){const _0x7845c1=_0x4e1758;return Array[_0x7845c1(0x22e)](this[_0x7845c1(0x1ca)][_0x7845c1(0x1fe)]())['map'](_0x183a01=>_0x183a01[_0x7845c1(0x23b)]()||_0x183a01[_0x7845c1(0x254)]());}['removeShape'](_0x12847d){const _0x2e38a3=_0x4e1758;let _0x3b14fa=this[_0x2e38a3(0x1ca)]['get'](_0x12847d);_0x3b14fa&&(_0x178a1e(_0x3b14fa[_0x2e38a3(0x239)]())&&this[_0x2e38a3(0x203)][_0x2e38a3(0x25d)](_0x12847d),this['_shapes']['delete'](_0x12847d));}['toJSON'](){const _0xcd022e=_0x4e1758;let _0x359425=[];return this[_0xcd022e(0x1ca)][_0xcd022e(0x215)](_0x39d71c=>{const _0x1717fe=_0xcd022e;_0x359425[_0x1717fe(0x20c)](_0x39d71c[_0x1717fe(0x1ef)]());}),_0x359425;}[_0x4e1758(0x1c5)](_0x31a3d2){const _0x248675=_0x4e1758;for(let _0x355464 of _0x31a3d2){let {id:_0x1e1ef8,shapeType:_0x43d1d6,name:_0xaefbff}=_0x355464,_0x35112a=this[_0x248675(0x23e)](_0x43d1d6,_0x1e1ef8,_0x355464[_0x248675(0x23f)],_0xaefbff);_0x35112a&&_0x35112a[_0x248675(0x26b)]()&&this[_0x248675(0x203)][_0x248675(0x243)](_0x1e1ef8);}}[_0x4e1758(0x242)](){const _0x4c8c5c=_0x4e1758;this[_0x4c8c5c(0x265)]||(this['_shapes'][_0x4c8c5c(0x215)](_0x254836=>{_0x254836['dispose']();}),this[_0x4c8c5c(0x1ca)]['clear'](),this['_linesIds']['clear'](),this[_0x4c8c5c(0x1aa)][_0x4c8c5c(0x271)](),super[_0x4c8c5c(0x242)]());}};function Z(_0x9e16cc,_0x38af67){return function(_0x26fd2e,_0x24d04e){_0x38af67(_0x26fd2e,_0x24d04e,_0x9e16cc);};}function le(_0x1eb6d0,_0x1fb5af,_0xf4920e,_0xac286f){const _0x3a055f=_0x4e1758;var _0x3bbedc=arguments[_0x3a055f(0x204)],_0x26bf81=_0x3bbedc<0x3?_0x1fb5af:_0xac286f===null?_0xac286f=Object[_0x3a055f(0x24e)](_0x1fb5af,_0xf4920e):_0xac286f,_0x5761f2;if(typeof Reflect=='object'&&typeof Reflect[_0x3a055f(0x26e)]==_0x3a055f(0x1cf))_0x26bf81=Reflect['decorate'](_0x1eb6d0,_0x1fb5af,_0xf4920e,_0xac286f);else{for(var _0x150e4d=_0x1eb6d0[_0x3a055f(0x204)]-0x1;_0x150e4d>=0x0;_0x150e4d--)(_0x5761f2=_0x1eb6d0[_0x150e4d])&&(_0x26bf81=(_0x3bbedc<0x3?_0x5761f2(_0x26bf81):_0x3bbedc>0x3?_0x5761f2(_0x1fb5af,_0xf4920e,_0x26bf81):_0x5761f2(_0x1fb5af,_0xf4920e))||_0x26bf81);}return _0x3bbedc>0x3&&_0x26bf81&&Object['defineProperty'](_0x1fb5af,_0xf4920e,_0x26bf81),_0x26bf81;}let Q=class extends _0x50ff4f{constructor(_0x164e90){const _0x5dd27e=_0x4e1758;super(),this[_0x5dd27e(0x1a5)]=_0x164e90,X(this,'_shapeModelManagerMap',new Map()),this[_0x5dd27e(0x1b2)]();}[_0x4e1758(0x238)](_0xbe129d,_0x50731b){const _0x492e96=_0x4e1758;let _0x457942=this[_0x492e96(0x20e)]['get'](_0xbe129d);_0x457942||(_0x457942=new Map(),this[_0x492e96(0x20e)]['set'](_0xbe129d,_0x457942));let _0x2224cf=_0x457942[_0x492e96(0x225)](_0x50731b);return _0x2224cf||(_0x2224cf=new ce(),_0x457942[_0x492e96(0x1c0)](_0x50731b,_0x2224cf)),_0x2224cf;}[_0x4e1758(0x241)](_0x389c31,_0x16e307,_0x56e436,_0x2f3393,_0xca8a13,_0x54d910){this['_ensureShapeModelManager'](_0x389c31,_0x16e307)['addShape'](_0x56e436,_0x2f3393,_0xca8a13,_0x54d910);}['removeShape'](_0x3bc56a,_0x163396,_0xeb3e96){const _0x2a0921=_0x4e1758;this[_0x2a0921(0x238)](_0x3bc56a,_0x163396)[_0x2a0921(0x263)](_0xeb3e96);}['getBasicShapeType'](_0x5766b4,_0x15db44,_0x5e35fe){const _0x434456=_0x4e1758;return this[_0x434456(0x238)](_0x5766b4,_0x15db44)[_0x434456(0x239)](_0x5e35fe);}['getShapeType'](_0x20d6ec,_0x36153c,_0x2391f1){const _0x57f6b1=_0x4e1758;return this['_ensureShapeModelManager'](_0x20d6ec,_0x36153c)[_0x57f6b1(0x239)](_0x2391f1);}[_0x4e1758(0x248)](_0x35266b,_0x1f6c7f,_0x315bd1){const _0x588023=_0x4e1758;return this[_0x588023(0x238)](_0x35266b,_0x1f6c7f)['hasShape'](_0x315bd1);}['getShapeTypeById'](_0x33ccc6,_0x6bf3d6,_0x4e5503){const _0x55f271=_0x4e1758;return this[_0x55f271(0x238)](_0x33ccc6,_0x6bf3d6)[_0x55f271(0x239)](_0x4e5503);}[_0x4e1758(0x26d)](_0x237e9a,_0x26ea52,_0x3665ab){const _0x5584cf=_0x4e1758;let _0x3c1910=this[_0x5584cf(0x238)](_0x237e9a,_0x26ea52);if(!_0x3c1910['getShapeType'](_0x3665ab))return;let _0x36413f=_0x3c1910['_shapes'][_0x5584cf(0x225)](_0x3665ab);if(_0x36413f)return _0x36413f[_0x5584cf(0x25f)]();}[_0x4e1758(0x224)](_0x1baace,_0x572ed2){const _0x1bf809=_0x4e1758;return this[_0x1bf809(0x238)](_0x1baace,_0x572ed2)[_0x1bf809(0x224)]();}[_0x4e1758(0x1f9)](_0x24f730,_0x56f36c,_0x1cb7dd){const _0x3e66c2=_0x4e1758;return this[_0x3e66c2(0x238)](_0x24f730,_0x56f36c)['_shapes'][_0x3e66c2(0x225)](_0x1cb7dd);}['getBasicShapeRelation'](_0x7418f0,_0x10c1d0,_0x5608c3){const _0x490ed4=_0x4e1758;return this[_0x490ed4(0x238)](_0x7418f0,_0x10c1d0)[_0x490ed4(0x1d9)](_0x5608c3);}[_0x4e1758(0x222)](_0x5e7030,_0x3aa39e,_0x571c25){const _0x1dd53e=_0x4e1758;let _0x398b78=this[_0x1dd53e(0x238)](_0x5e7030,_0x3aa39e)[_0x1dd53e(0x1ca)][_0x1dd53e(0x225)](_0x571c25);if(_0x398b78)return _0x398b78[_0x1dd53e(0x240)]();}[_0x4e1758(0x1fc)](){}[_0x4e1758(0x217)](_0x5a74c0){const _0x1bc5d4=_0x4e1758;let _0x3dde54={},_0xbb8cf=this[_0x1bc5d4(0x20e)]['get'](_0x5a74c0);return _0xbb8cf&&_0xbb8cf[_0x1bc5d4(0x215)]((_0x543f11,_0x3a0436)=>{const _0x3624d3=_0x1bc5d4;let _0x56af0d=_0x543f11[_0x3624d3(0x1ef)]();_0x56af0d['length']>0x0&&(_0x3dde54[_0x3a0436]=_0x56af0d);}),JSON[_0x1bc5d4(0x221)](_0x3dde54);}[_0x4e1758(0x212)](_0x48447e,_0x4dc780){const _0xf72050=_0x4e1758;Object['keys'](_0x4dc780)[_0xf72050(0x215)](_0x55f034=>{const _0x550669=_0xf72050;this[_0x550669(0x238)](_0x48447e,_0x55f034)[_0x550669(0x1c5)](_0x4dc780[_0x55f034]);});}[_0x4e1758(0x1ef)](){const _0x30942d=_0x4e1758;let _0x21c86e={};return this['_shapeModelManagerMap'][_0x30942d(0x215)]((_0x264658,_0x101290)=>{_0x21c86e[_0x101290]={},_0x264658['forEach']((_0x3209e6,_0xf5311b)=>{const _0x114ebb=_0x289a;_0x21c86e[_0x101290][_0xf5311b]=_0x3209e6[_0x114ebb(0x1ef)]();});}),_0x21c86e;}[_0x4e1758(0x1c5)](_0x421849){const _0x83672a=_0x4e1758;Object[_0x83672a(0x1af)](_0x421849)[_0x83672a(0x215)](_0x124522=>{const _0x55e391=_0x83672a;let _0x289d93=_0x421849[_0x124522];Object[_0x55e391(0x1af)](_0x289d93)[_0x55e391(0x215)](_0x504cf1=>{const _0x3be857=_0x55e391;this['_ensureShapeModelManager'](_0x124522,_0x504cf1)[_0x3be857(0x1c5)](_0x289d93[_0x504cf1]);});});}['_initSnapshot'](){const _0x599d3e=_0x4e1758;this[_0x599d3e(0x1a5)][_0x599d3e(0x25a)]({'pluginName':_0x599d3e(0x21a),'businesses':[_0x1e8d7b['UNIVER_SHEET']],'toJson':_0x36a9eb=>this[_0x599d3e(0x217)](_0x36a9eb),'parseJson':_0x5bb785=>JSON[_0x599d3e(0x1cb)](_0x5bb785),'onLoad':(_0x55fce2,_0x202439)=>{const _0x2385f3=_0x599d3e;this[_0x2385f3(0x212)](_0x55fce2,_0x202439);},'onUnLoad':_0xa05807=>{const _0x146639=_0x599d3e;let _0x405292=this[_0x146639(0x20e)][_0x146639(0x225)](_0xa05807);_0x405292&&(_0x405292[_0x146639(0x215)](_0x3f7e52=>{const _0x49ed47=_0x146639;_0x3f7e52[_0x49ed47(0x242)]();}),this['_shapeModelManagerMap'][_0x146639(0x25d)](_0xa05807));}});}[_0x4e1758(0x242)](){const _0x4bcffd=_0x4e1758;this[_0x4bcffd(0x20e)][_0x4bcffd(0x215)](_0x2d0362=>{const _0x4a52da=_0x4bcffd;_0x2d0362[_0x4a52da(0x215)](_0x55bd09=>{const _0x25bbaa=_0x4a52da;_0x55bd09[_0x25bbaa(0x242)]();});});}};Q=le([Z(0x0,_0x2a1ffc)],Q);const ue={'id':_0x4e1758(0x1c9),'type':_0x5ca941[_0x4e1758(0x1ab)],'handler':(_0x126ac0,_0x3fbecf)=>{const _0x3d416e=_0x4e1758;let {unitId:_0x37c528,subUnitId:_0x1e36d4,shapeType:_0xca7682,shapeId:_0x58d416,shapeName:_0x10cc0f,shapeData:_0x580e72}=_0x3fbecf;return _0x126ac0['get'](Q)[_0x3d416e(0x241)](_0x37c528,_0x1e36d4,_0xca7682,_0x58d416,_0x32fcde['deepClone'](_0x580e72),_0x10cc0f),!0x0;}},de={'id':_0x4e1758(0x223),'type':_0x5ca941[_0x4e1758(0x1ab)],'handler':(_0x339859,_0x24d101)=>{const _0x5e2e6d=_0x4e1758;let {unitId:_0x516438,subUnitId:_0x4e02b4,shapeId:_0x2836de}=_0x24d101;return _0x339859['get'](Q)[_0x5e2e6d(0x263)](_0x516438,_0x4e02b4,_0x2836de),!0x0;}},fe={'type':_0x5ca941['COMMAND'],'id':_0x4e1758(0x1e7),'handler':(_0x103d53,_0x1cde4d)=>{const _0x7bf734=_0x4e1758;let _0x41ce62=_0xe34dd0(_0x103d53['get'](_0xa1550),_0x1cde4d);if(!_0x41ce62)return!0x1;let _0x158b62=_0x103d53['get'](_0xb3d7e9),{unitId:_0x19983e,subUnitId:_0x54ba0a}=_0x41ce62,_0x491394=_0x158b62[_0x7bf734(0x208)](_0x19983e,_0x54ba0a);if(!_0x491394)return!0x1;let _0x3968ef=_0x103d53[_0x7bf734(0x225)](_0x446a3b),_0x44b91f=_0x103d53['get'](_0x1e06fd),_0x304588=_0x103d53[_0x7bf734(0x225)](_0x1c2c98),_0x24e823=_0x103d53['get'](_0x16cbc8),_0xdade66=_0x103d53['get'](Q),{shapeType:_0x1f5a58}=_0x1cde4d,_0x390ef1=_0x1cde4d['shapeData']??_0x1a88d3(_0x1f5a58),_0x15efe0=_0x1cde4d[_0x7bf734(0x1e2)]||_0x7b910c(),_0x5a4872={'unitId':_0x19983e,'subUnitId':_0x54ba0a,'shapeId':_0x15efe0,'shapeName':_0x1cde4d[_0x7bf734(0x1c3)]??_0x34737b(_0x1f5a58,_0xdade66[_0x7bf734(0x224)](_0x19983e,_0x54ba0a)),'shapeType':_0x1f5a58,'shapeData':_0x390ef1},_0x4c1090=_0x1cde4d[_0x7bf734(0x22b)]||0xc8,_0x14871e=_0x1cde4d[_0x7bf734(0x213)]||0xc8,_0x305c58=0x0,_0x39c91f=0x0;if(_0x1cde4d[_0x7bf734(0x226)]){let {x:_0x45a835,y:_0x16c3e1}=_0x1cde4d[_0x7bf734(0x226)];_0x305c58=_0x45a835,_0x39c91f=_0x16c3e1;}else{if(_0x1cde4d[_0x7bf734(0x256)]){let {startRow:_0x3b5406,startColumn:_0x5b4987}=_0x1cde4d[_0x7bf734(0x256)],_0x41ebc9=_0x491394['getCellWithCoordByIndex'](_0x3b5406,_0x5b4987);_0x305c58=_0x41ebc9[_0x7bf734(0x1d3)]+0xa,_0x39c91f=_0x41ebc9[_0x7bf734(0x234)]+0xa;}}let _0x3a99f4={'left':_0x305c58,'top':_0x39c91f,'width':_0x4c1090,'height':_0x14871e,'angle':_0x1cde4d['rotation']??0x0,'flipX':_0x1cde4d[_0x7bf734(0x1d1)]??!0x1,'flipY':_0x1cde4d[_0x7bf734(0x1ac)]??!0x1},_0x446da3=_0x55e9d6(_0x3a99f4,_0x491394),_0x479e9e=_0x53a78f(_0x3a99f4,_0x491394),_0x58eb1d={'unitId':_0x19983e,'subUnitId':_0x54ba0a,'drawingId':_0x15efe0,'drawingType':_0x579c28[_0x7bf734(0x261)],'anchorType':_0x6b2bef['Both'],'name':_0x1cde4d['name'],'description':_0x1cde4d[_0x7bf734(0x235)],'sheetTransform':_0x446da3,'transform':_0x3a99f4,'data':{'shapeType':_0x1f5a58,'shapeData':_0x390ef1},'axisAlignSheetTransform':_0x479e9e,'allowTransform':!0x0,'hidden':_0x1cde4d[_0x7bf734(0x1bc)]===!0x1,'selectable':_0x1cde4d[_0x7bf734(0x210)]??!0x0};_0x178a1e(_0x1f5a58)&&(_0x58eb1d[_0x7bf734(0x1f2)][_0x7bf734(0x1b4)]=!0x1,_0x58eb1d[_0x7bf734(0x1f2)][_0x7bf734(0x1da)]=!0x1,_0x58eb1d[_0x7bf734(0x1f2)][_0x7bf734(0x274)]=!0x1,_0x58eb1d[_0x7bf734(0x1f2)][_0x7bf734(0x1dd)]=!0x1,_0x58eb1d[_0x7bf734(0x216)][_0x7bf734(0x1da)]=!0x1,_0x58eb1d['transform'][_0x7bf734(0x274)]=!0x1,_0x58eb1d[_0x7bf734(0x216)][_0x7bf734(0x1dd)]=!0x1);let {undo:_0x3127bc,redo:_0x10c57e,objects:_0xdee922}=_0x24e823[_0x7bf734(0x1ea)]([_0x58eb1d]),_0xdd1795=_0x304588['onCommandExecute']({'id':_0x11f257['id'],'params':{'unitId':_0x19983e,'drawings':[_0x58eb1d]}}),_0x2eb0a3=[..._0xdd1795[_0x7bf734(0x211)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x19983e,'subUnitId':_0x54ba0a,'op':_0x10c57e,'objects':_0xdee922,'type':_0x13e9cb[_0x7bf734(0x1fb)]}},{'id':_0x1b00b3['id'],'params':[_0x19983e]},..._0xdd1795[_0x7bf734(0x1b7)],{'id':ue['id'],'params':_0x5a4872}],_0x3b0123=[{'id':de['id'],'params':{'unitId':_0x19983e,'subUnitId':_0x54ba0a,'shapeId':_0x15efe0}},..._0xdd1795[_0x7bf734(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x19983e,'subUnitId':_0x54ba0a,'op':_0x3127bc,'objects':_0xdee922,'type':_0x13e9cb['REMOVE']}},{'id':_0x1b00b3['id'],'params':[_0x19983e]},..._0xdd1795['undos']];return _0x3c4f99(_0x2eb0a3,_0x3968ef)[_0x7bf734(0x232)]?(_0x44b91f[_0x7bf734(0x260)]({'unitID':_0x19983e,'undoMutations':_0x3b0123,'redoMutations':_0x2eb0a3}),!0x0):!0x1;}},$={'id':_0x4e1758(0x24b),'type':_0x5ca941[_0x4e1758(0x1ab)],'handler':(_0x2721fa,_0x274a7a)=>{const _0x27d77d=_0x4e1758;let {unitId:_0x254c1a,subUnitId:_0xf57972,shapeType:_0x1fd50e,shapeId:_0x39a6cf,shapeData:_0x21df51,replace:_0x688c05,formulaLastValueGuard:_0x3875a7}=_0x274a7a,_0x5e18a8=_0x2721fa[_0x27d77d(0x225)](Q)['getShapeModel'](_0x254c1a,_0xf57972,_0x39a6cf);if(_0x5e18a8){var _0x3c631c;if(!_0x151daa(_0x2721fa,{'hostType':_0x1e8d7b['UNIVER_SHEET'],'unitId':_0x254c1a,'subUnitId':_0xf57972,'shapeId':_0x39a6cf},(_0x3c631c=_0x5e18a8['getShapeData']()[_0x27d77d(0x1ee)])==null?void 0x0:_0x3c631c[_0x27d77d(0x1b1)],_0x3875a7))return!0x0;_0x1fd50e!==void 0x0&&_0x5e18a8[_0x27d77d(0x1fc)](_0x1fd50e),_0x21df51&&(_0x5e18a8==null||_0x5e18a8[_0x27d77d(0x1fa)](_0x32fcde[_0x27d77d(0x1cd)](_0x21df51),!_0x688c05));}return!0x0;}},pe={'type':_0x5ca941['COMMAND'],'id':_0x4e1758(0x1e5),'handler':(_0x4a7138,_0x58619e)=>{const _0x43ddaf=_0x4e1758;let _0x4533d5=_0xe34dd0(_0x4a7138[_0x43ddaf(0x225)](_0xa1550),_0x58619e);if(!_0x4533d5)return!0x1;let _0x3b7deb=_0x4a7138[_0x43ddaf(0x225)](_0xb3d7e9),{unitId:_0x4d4187,subUnitId:_0x260741}=_0x4533d5,_0x33edec=_0x3b7deb['ensureSkeleton'](_0x4d4187,_0x260741);if(!_0x33edec)return!0x1;let _0xe95192=_0x4a7138[_0x43ddaf(0x225)](Q),{shapeId:_0x5420d0,shapeType:_0xaac139,shapeData:_0x1aac3b,position:_0x48ac51,width:_0x34983b,height:_0x41926f}=_0x58619e,_0x3aecdc=_0xe95192['getShapeModel'](_0x4d4187,_0x260741,_0x5420d0);if(!_0x3aecdc)return!0x1;let _0x50abfe=_0x4a7138[_0x43ddaf(0x225)](_0x446a3b),_0x3ec6e4=_0x4a7138['get'](_0x1e06fd),_0xe24597=_0x4a7138[_0x43ddaf(0x225)](_0x1c2c98),_0x1360c4=_0x4a7138[_0x43ddaf(0x225)](_0x16cbc8),_0x1f0254={'unitId':_0x4d4187,'subUnitId':_0x260741,'shapeId':_0x5420d0,'shapeType':_0xaac139,'shapeData':_0x1aac3b,'replace':!0x0},_0x427d0b=_0x3aecdc[_0x43ddaf(0x239)](),_0x1b2761=_0x3aecdc[_0x43ddaf(0x25f)](),{x:_0x4925cd,y:_0x4eafb9}=_0x48ac51,_0x7ff65c={'left':_0x4925cd,'top':_0x4eafb9,'width':_0x34983b,'height':_0x41926f,'angle':_0x58619e[_0x43ddaf(0x24a)]??0x0,'flipX':_0x58619e[_0x43ddaf(0x1d1)]??!0x1,'flipY':_0x58619e[_0x43ddaf(0x1ac)]??!0x1},_0x11ae05=_0x55e9d6(_0x7ff65c,_0x33edec),_0x301477=_0x53a78f(_0x7ff65c,_0x33edec),_0x4730b4={'unitId':_0x4d4187,'subUnitId':_0x260741,'drawingId':_0x5420d0,'drawingType':_0x579c28[_0x43ddaf(0x261)],'name':_0x58619e[_0x43ddaf(0x1d5)],'description':_0x58619e['description'],'sheetTransform':_0x11ae05,'transform':_0x7ff65c,'data':{'shapeType':_0xaac139,'shapeData':_0x1aac3b},'axisAlignSheetTransform':_0x301477,'allowTransform':!0x0,'hidden':!_0x58619e[_0x43ddaf(0x1bc)],'selectable':_0x58619e[_0x43ddaf(0x210)]};_0x178a1e(_0xaac139)&&(_0x4730b4[_0x43ddaf(0x1f2)][_0x43ddaf(0x1b4)]=!0x1,_0x4730b4[_0x43ddaf(0x1f2)][_0x43ddaf(0x1da)]=!0x1,_0x4730b4['data'][_0x43ddaf(0x274)]=!0x1,_0x4730b4[_0x43ddaf(0x1f2)][_0x43ddaf(0x1dd)]=!0x1,_0x4730b4[_0x43ddaf(0x216)][_0x43ddaf(0x1da)]=!0x1,_0x4730b4[_0x43ddaf(0x216)][_0x43ddaf(0x274)]=!0x1,_0x4730b4[_0x43ddaf(0x216)][_0x43ddaf(0x1dd)]=!0x1);let {undo:_0x6b9ec7,redo:_0x918ec0,objects:_0x2b32d4}=_0x1360c4[_0x43ddaf(0x1c6)]([_0x4730b4]),_0x46f887=_0xe24597[_0x43ddaf(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x4d4187,'drawings':[_0x4730b4]}}),_0x403222=[..._0x46f887['preRedos']??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x4d4187,'subUnitId':_0x260741,'op':_0x918ec0,'objects':_0x2b32d4,'type':_0x13e9cb[_0x43ddaf(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x4d4187]},..._0x46f887[_0x43ddaf(0x1b7)],{'id':$['id'],'params':_0x1f0254}],_0x1bde67=[..._0x46f887[_0x43ddaf(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x4d4187,'subUnitId':_0x260741,'op':_0x6b9ec7,'objects':_0x2b32d4,'type':_0x13e9cb[_0x43ddaf(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x4d4187]},..._0x46f887[_0x43ddaf(0x1e1)],{'id':$['id'],'params':{'unitId':_0x4d4187,'subUnitId':_0x260741,'shapeType':_0x427d0b,'shapeId':_0x5420d0,'shapeData':_0x1b2761,'replace':!0x0}}];return _0x3c4f99(_0x403222,_0x50abfe)[_0x43ddaf(0x232)]?(_0x3ec6e4['pushUndoRedo']({'unitID':_0x4d4187,'undoMutations':_0x1bde67,'redoMutations':_0x403222}),!0x0):!0x1;}},me={'type':_0x5ca941[_0x4e1758(0x25e)],'id':_0x4e1758(0x251),'handler':(_0x25282f,_0x5db5c5)=>{const _0x1ce0e1=_0x4e1758;let _0xb27f2c=_0xe34dd0(_0x25282f[_0x1ce0e1(0x225)](_0xa1550),_0x5db5c5);if(!_0xb27f2c)return!0x1;let _0x44ae1c=_0x25282f[_0x1ce0e1(0x225)](_0xb3d7e9),{unitId:_0x40b0f0,subUnitId:_0x2956ac}=_0xb27f2c,_0x53a431=_0x44ae1c[_0x1ce0e1(0x1d8)](_0x40b0f0,_0x2956ac);if(!_0x53a431)return!0x1;let _0x50a501=_0x25282f[_0x1ce0e1(0x225)](_0x16cbc8),{shapeId:_0x51ca40,flipH:_0x4624ed,flipV:_0x1f9558}=_0x5db5c5,_0x37fc68=_0x50a501[_0x1ce0e1(0x20a)]({'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'drawingId':_0x51ca40});if(!_0x37fc68)return!0x1;let _0x3975d3=_0x25282f[_0x1ce0e1(0x225)](Q)[_0x1ce0e1(0x1f9)](_0x40b0f0,_0x2956ac,_0x51ca40);if(!_0x3975d3)return!0x1;let _0x5225fd=_0x25282f[_0x1ce0e1(0x225)](_0x446a3b),_0x40013e=_0x25282f['get'](_0x1e06fd),_0x570c47=_0x25282f['get'](_0x1c2c98),_0x5cc6f6={..._0x37fc68[_0x1ce0e1(0x216)]};_0x4624ed!==void 0x0&&(_0x5cc6f6['flipX']=!_0x5cc6f6['flipX']),_0x1f9558!==void 0x0&&(_0x5cc6f6[_0x1ce0e1(0x1ac)]=!_0x5cc6f6['flipY']);let _0xc43a59=_0x55e9d6(_0x5cc6f6,_0x53a431),_0x8bb494=_0x53a78f(_0x5cc6f6,_0x53a431),_0x5a03f4=_0x3975d3[_0x1ce0e1(0x239)](),_0x5156cf=_0x3975d3[_0x1ce0e1(0x25f)](),_0x3ba4d6={'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'drawingId':_0x51ca40,'drawingType':_0x579c28[_0x1ce0e1(0x261)],'sheetTransform':_0xc43a59,'transform':_0x5cc6f6,'data':{'shapeType':_0x5a03f4,'shapeData':_0x5156cf},'axisAlignSheetTransform':_0x8bb494,'allowTransform':!0x0},{undo:_0xf6858f,redo:_0x3b3ab7,objects:_0x25ad2d}=_0x50a501[_0x1ce0e1(0x1c6)]([_0x3ba4d6]),_0x37640b=_0x570c47[_0x1ce0e1(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x40b0f0,'drawings':[_0x3ba4d6]}}),_0x16199a=[..._0x37640b['preRedos']??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'op':_0x3b3ab7,'objects':_0x25ad2d,'type':_0x13e9cb['UPDATE']}},{'id':_0x1b00b3['id'],'params':[_0x40b0f0]},..._0x37640b[_0x1ce0e1(0x1b7)]],_0x31d052=[..._0x37640b[_0x1ce0e1(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'op':_0xf6858f,'objects':_0x25ad2d,'type':_0x13e9cb[_0x1ce0e1(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x40b0f0]},..._0x37640b[_0x1ce0e1(0x1e1)]];if(_0x178a1e(_0x5a03f4)){let _0x51fe74=_0x3975d3[_0x1ce0e1(0x240)]();if(_0x51fe74){let _0x4b9e59={..._0x51fe74};_0x4b9e59['from']=void 0x0,_0x4b9e59['to']=void 0x0,_0x16199a[_0x1ce0e1(0x20c)]({'id':$['id'],'params':{'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'shapeId':_0x51ca40,'shapeType':_0x5a03f4,'shapeData':{'relation':_0x4b9e59}}}),_0x31d052[_0x1ce0e1(0x20c)]({'id':$['id'],'params':{'unitId':_0x40b0f0,'subUnitId':_0x2956ac,'shapeId':_0x51ca40,'shapeType':_0x5a03f4,'shapeData':{'relation':_0x51fe74}}});}}return _0x3c4f99(_0x16199a,_0x5225fd)[_0x1ce0e1(0x232)]?(_0x40013e[_0x1ce0e1(0x260)]({'unitID':_0x40b0f0,'undoMutations':_0x31d052,'redoMutations':_0x16199a}),!0x0):!0x1;}},he={'type':_0x5ca941[_0x4e1758(0x25e)],'id':_0x4e1758(0x1a6),'handler':(_0x209013,_0x590a9a)=>{const _0x382fa4=_0x4e1758;let _0x504231=_0xe34dd0(_0x209013[_0x382fa4(0x225)](_0xa1550),_0x590a9a);if(!_0x504231)return!0x1;let _0x10c29b=_0x209013['get'](_0xb3d7e9),{unitId:_0x3be4f0,subUnitId:_0x58f1ca}=_0x504231,_0x5b320f=_0x10c29b[_0x382fa4(0x1d8)](_0x3be4f0,_0x58f1ca);if(!_0x5b320f)return!0x1;let _0x38856=_0x209013[_0x382fa4(0x225)](_0x16cbc8),{shapeId:_0x927d9a,rotate:_0xcad1e5}=_0x590a9a,_0x447480=_0x38856[_0x382fa4(0x20a)]({'unitId':_0x3be4f0,'subUnitId':_0x58f1ca,'drawingId':_0x927d9a});if(!_0x447480)return!0x1;let _0x5cf2a1=_0x209013[_0x382fa4(0x225)](Q)[_0x382fa4(0x1f9)](_0x3be4f0,_0x58f1ca,_0x927d9a);if(!_0x5cf2a1)return!0x1;let _0x443006=_0x209013[_0x382fa4(0x225)](_0x446a3b),_0x176b45=_0x209013[_0x382fa4(0x225)](_0x1e06fd),_0x336492=_0x209013[_0x382fa4(0x225)](_0x1c2c98),_0x2cde57={..._0x447480[_0x382fa4(0x216)]};_0xcad1e5!==void 0x0&&(_0x2cde57[_0x382fa4(0x253)]=(_0x2cde57[_0x382fa4(0x253)]||0x0)+_0xcad1e5);let _0x4614fc=_0x55e9d6(_0x2cde57,_0x5b320f),_0x4e4d92=_0x53a78f(_0x2cde57,_0x5b320f),_0x102b1b=_0x5cf2a1[_0x382fa4(0x239)](),_0x5b30a9=_0x5cf2a1['getShapeData'](),_0x152c7b={'unitId':_0x3be4f0,'subUnitId':_0x58f1ca,'drawingId':_0x927d9a,'drawingType':_0x579c28[_0x382fa4(0x261)],'sheetTransform':_0x4614fc,'transform':_0x2cde57,'data':{'shapeType':_0x102b1b,'shapeData':_0x5b30a9},'axisAlignSheetTransform':_0x4e4d92,'allowTransform':!0x0},{undo:_0x49a5b4,redo:_0x5668e3,objects:_0x164d3b}=_0x38856[_0x382fa4(0x1c6)]([_0x152c7b]),_0x12be89=_0x336492[_0x382fa4(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x3be4f0,'drawings':[_0x152c7b]}}),_0xf183b8=[..._0x12be89[_0x382fa4(0x211)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x3be4f0,'subUnitId':_0x58f1ca,'op':_0x5668e3,'objects':_0x164d3b,'type':_0x13e9cb[_0x382fa4(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x3be4f0]},..._0x12be89['redos']],_0x12f052=[..._0x12be89[_0x382fa4(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x3be4f0,'subUnitId':_0x58f1ca,'op':_0x49a5b4,'objects':_0x164d3b,'type':_0x13e9cb[_0x382fa4(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x3be4f0]},..._0x12be89[_0x382fa4(0x1e1)]];return _0x3c4f99(_0xf183b8,_0x443006)[_0x382fa4(0x232)]?(_0x176b45['pushUndoRedo']({'unitID':_0x3be4f0,'undoMutations':_0x12f052,'redoMutations':_0xf183b8}),!0x0):!0x1;}},ge={'type':_0x5ca941[_0x4e1758(0x25e)],'id':_0x4e1758(0x26c),'handler':(_0x3813e0,_0x39f9b0)=>{const _0x5e464d=_0x4e1758;let _0x521e00=_0xe34dd0(_0x3813e0[_0x5e464d(0x225)](_0xa1550),_0x39f9b0);if(!_0x521e00)return!0x1;let {unitId:_0x9e935c,subUnitId:_0x166bfa}=_0x521e00,{shapeId:_0xc8279}=_0x39f9b0,_0x357a98=_0x3813e0[_0x5e464d(0x225)](Q)[_0x5e464d(0x1f9)](_0x9e935c,_0x166bfa,_0xc8279);if(!_0x357a98)return!0x1;let _0x46c63d=_0x357a98['getShapeTextData'](),_0x3a84d8=(_0x46c63d==null?void 0x0:_0x46c63d[_0x5e464d(0x1cc)])??!0x0,_0x3b9ead=!_0x3a84d8,_0x471712=_0x3813e0[_0x5e464d(0x225)](_0x446a3b),_0x5c22a5=_0x3813e0[_0x5e464d(0x225)](_0x1e06fd),_0x31728c={'unitId':_0x9e935c,'subUnitId':_0x166bfa,'shapeId':_0xc8279,'shapeData':{'shapeText':{'isHorizontal':_0x3b9ead}}},_0x5008a2={'unitId':_0x9e935c,'subUnitId':_0x166bfa,'shapeId':_0xc8279,'shapeData':{'shapeText':{'isHorizontal':_0x3a84d8}}},_0x5f16e2=[{'id':$['id'],'params':_0x31728c}],_0x2b7e80=[{'id':$['id'],'params':_0x5008a2}];return _0x3c4f99(_0x5f16e2,_0x471712)['result']?(_0x5c22a5[_0x5e464d(0x260)]({'unitID':_0x9e935c,'undoMutations':_0x2b7e80,'redoMutations':_0x5f16e2}),!0x0):!0x1;}},_e={'type':_0x5ca941[_0x4e1758(0x25e)],'id':'sheet.command.update-connector-relation','handler':(_0x59d19,_0x5a1241)=>{const _0x5d4c6b=_0x4e1758;var _0x43db78;let _0x181387=_0xe34dd0(_0x59d19[_0x5d4c6b(0x225)](_0xa1550),_0x5a1241);if(!_0x181387)return!0x1;let _0x24eebf=_0x59d19[_0x5d4c6b(0x225)](_0xb3d7e9),{unitId:_0x45fdad,subUnitId:_0x445c52}=_0x181387,_0x490c67=_0x24eebf[_0x5d4c6b(0x1d8)](_0x45fdad,_0x445c52);if(!_0x490c67)return!0x1;let _0x5d67dc=_0x59d19[_0x5d4c6b(0x225)](_0x16cbc8),{connectorShapeId:_0x2ee692,width:_0xd98b5f,height:_0x2486f4,left:_0xc6ebaf,top:_0x31d94d,flipX:_0x4e7aff,flipY:_0x1e9e52,rotation:_0x143b06,oldAdjustValues:_0x3409e7,newAdjustValues:_0x17e358,oldLineType:_0x364eaf,newLineType:_0x407122,oldRelation:_0x3e0cf2,newRelation:_0x4b7f1f}=_0x5a1241,_0x4ba288=_0x5d67dc[_0x5d4c6b(0x20a)]({'unitId':_0x45fdad,'subUnitId':_0x445c52,'drawingId':_0x2ee692});if(!_0x4ba288)return!0x1;let _0x47279c=_0x59d19['get'](Q)[_0x5d4c6b(0x1f9)](_0x45fdad,_0x445c52,_0x2ee692);if(!_0x47279c)return!0x1;let _0x1da08c=_0x59d19[_0x5d4c6b(0x225)](_0x446a3b),_0x121777=_0x59d19[_0x5d4c6b(0x225)](_0x1e06fd),_0x34824f=_0x59d19['get'](_0x1c2c98),_0x28cb4e={..._0x4ba288[_0x5d4c6b(0x216)],'width':_0xd98b5f,'height':_0x2486f4,'left':_0xc6ebaf,'top':_0x31d94d,'flipX':_0x4e7aff,'flipY':_0x1e9e52,'angle':_0x143b06??((_0x43db78=_0x4ba288['transform'])==null?void 0x0:_0x43db78[_0x5d4c6b(0x253)])??0x0},_0xbeb1d5=_0x55e9d6(_0x28cb4e,_0x490c67),_0x4312bf=_0x53a78f(_0x28cb4e,_0x490c67),_0x2e9581=_0x47279c['getShapeType'](),_0x263ee1=_0x47279c[_0x5d4c6b(0x25f)](),_0x5c9909={'unitId':_0x45fdad,'subUnitId':_0x445c52,'drawingId':_0x2ee692,'drawingType':_0x579c28[_0x5d4c6b(0x261)],'sheetTransform':_0xbeb1d5,'transform':_0x28cb4e,'data':{'shapeType':_0x407122||_0x364eaf||_0x2e9581,'shapeData':{..._0x263ee1,'adjustValues':_0x17e358||_0x3409e7||(_0x263ee1==null?void 0x0:_0x263ee1[_0x5d4c6b(0x22f)]),'relation':_0x4b7f1f||_0x3e0cf2||(_0x263ee1==null?void 0x0:_0x263ee1[_0x5d4c6b(0x249)])}},'axisAlignSheetTransform':_0x4312bf,'allowTransform':!0x0},{undo:_0x5b64e0,redo:_0x4b9c1e,objects:_0x574c97}=_0x5d67dc[_0x5d4c6b(0x1c6)]([_0x5c9909]),_0x4a7464=_0x34824f[_0x5d4c6b(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x45fdad,'drawings':[_0x5c9909]}}),_0x4d5e13=[..._0x4a7464[_0x5d4c6b(0x211)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x45fdad,'subUnitId':_0x445c52,'op':_0x4b9c1e,'objects':_0x574c97,'type':_0x13e9cb['UPDATE']}},{'id':_0x1b00b3['id'],'params':[_0x45fdad]},..._0x4a7464[_0x5d4c6b(0x1b7)],{'id':$['id'],'params':{'unitId':_0x45fdad,'subUnitId':_0x445c52,'shapeId':_0x2ee692,'shapeType':_0x407122,'shapeData':{'adjustValues':_0x17e358,'relation':_0x4b7f1f}}}],_0x5aea51=[..._0x4a7464[_0x5d4c6b(0x22d)]??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x45fdad,'subUnitId':_0x445c52,'op':_0x5b64e0,'objects':_0x574c97,'type':_0x13e9cb[_0x5d4c6b(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x45fdad]},..._0x4a7464[_0x5d4c6b(0x1e1)],{'id':$['id'],'params':{'unitId':_0x45fdad,'subUnitId':_0x445c52,'shapeId':_0x2ee692,'shapeType':_0x2e9581,'shapeData':{..._0x263ee1,'adjustValues':_0x3409e7||(_0x263ee1==null?void 0x0:_0x263ee1[_0x5d4c6b(0x22f)]),'relation':_0x3e0cf2||(_0x263ee1==null?void 0x0:_0x263ee1[_0x5d4c6b(0x249)])}}}];return _0x3c4f99(_0x4d5e13,_0x1da08c)['result']?(_0x121777[_0x5d4c6b(0x260)]({'unitID':_0x45fdad,'undoMutations':_0x5aea51,'redoMutations':_0x4d5e13}),!0x0):!0x1;}},ve={'type':_0x5ca941[_0x4e1758(0x25e)],'id':_0x4e1758(0x23a),'handler':(_0x5f44ee,_0x2568b1)=>{const _0x3ac3cf=_0x4e1758;let _0x4698ee=_0xe34dd0(_0x5f44ee['get'](_0xa1550),_0x2568b1);if(!_0x4698ee)return!0x1;let _0x1617f9=_0x5f44ee[_0x3ac3cf(0x225)](_0xb3d7e9),{unitId:_0x31e22d,subUnitId:_0x1832ef}=_0x4698ee,_0x2b8469=_0x1617f9[_0x3ac3cf(0x1d8)](_0x31e22d,_0x1832ef);if(!_0x2b8469)return!0x1;let _0x2167bd=_0x5f44ee['get'](_0x16cbc8),{shapeId:_0x54dbaf,width:_0x1682b9,height:_0x50cb5a,left:_0x255338,top:_0x14063f,flipX:_0x1877df,flipY:_0x2c9114,angle:_0x51bfea,oldAdjustValues:_0x4c35f4,newAdjustValues:_0x22290c,oldLineType:_0x2ec74a,newLineType:_0x24a0c7}=_0x2568b1,_0x2d5c0b=_0x2167bd['getDrawingByParam']({'unitId':_0x31e22d,'subUnitId':_0x1832ef,'drawingId':_0x54dbaf});if(!_0x2d5c0b)return!0x1;let _0x4dd4e6=_0x5f44ee[_0x3ac3cf(0x225)](Q)[_0x3ac3cf(0x1f9)](_0x31e22d,_0x1832ef,_0x54dbaf);if(!_0x4dd4e6)return!0x1;let _0x3a082a=_0x5f44ee[_0x3ac3cf(0x225)](_0x446a3b),_0x5b2eb9=_0x5f44ee[_0x3ac3cf(0x225)](_0x1e06fd),_0xe351d0=_0x5f44ee[_0x3ac3cf(0x225)](_0x1c2c98),_0x2c971e={..._0x2d5c0b[_0x3ac3cf(0x216)],'width':_0x1682b9,'height':_0x50cb5a,'left':_0x255338,'top':_0x14063f,'flipX':_0x1877df,'flipY':_0x2c9114,'angle':_0x51bfea},_0x50e3ec=_0x55e9d6(_0x2c971e,_0x2b8469),_0x53dd62=_0x53a78f(_0x2c971e,_0x2b8469),_0x57c7a2=_0x4dd4e6['getShapeType'](),_0x53c840=_0x4dd4e6[_0x3ac3cf(0x25f)](),_0x58e6bd={'unitId':_0x31e22d,'subUnitId':_0x1832ef,'drawingId':_0x54dbaf,'drawingType':_0x579c28['DRAWING_SHAPE'],'sheetTransform':_0x50e3ec,'transform':_0x2c971e,'data':{'shapeType':_0x24a0c7||_0x2ec74a||_0x57c7a2,'shapeData':{..._0x53c840,'adjustValues':_0x22290c||_0x4c35f4||(_0x53c840==null?void 0x0:_0x53c840['adjustValues'])}},'axisAlignSheetTransform':_0x53dd62,'allowTransform':!0x0},{undo:_0x206d55,redo:_0x3b7496,objects:_0x5d267a}=_0x2167bd[_0x3ac3cf(0x1c6)]([_0x58e6bd]),_0xc4e50=_0xe351d0[_0x3ac3cf(0x1c8)]({'id':_0x47cba2['id'],'params':{'unitId':_0x31e22d,'drawings':[_0x58e6bd]}}),_0x161c3e=[..._0xc4e50['preRedos']??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x31e22d,'subUnitId':_0x1832ef,'op':_0x3b7496,'objects':_0x5d267a,'type':_0x13e9cb[_0x3ac3cf(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x31e22d]},..._0xc4e50[_0x3ac3cf(0x1b7)],{'id':$['id'],'params':{'unitId':_0x31e22d,'subUnitId':_0x1832ef,'shapeId':_0x54dbaf,'shapeType':_0x24a0c7,'shapeData':{'adjustValues':_0x22290c}}}],_0x332ca0=[..._0xc4e50['preUndos']??[],{'id':_0x553d2b['id'],'params':{'unitId':_0x31e22d,'subUnitId':_0x1832ef,'op':_0x206d55,'objects':_0x5d267a,'type':_0x13e9cb[_0x3ac3cf(0x1ae)]}},{'id':_0x1b00b3['id'],'params':[_0x31e22d]},..._0xc4e50['undos'],{'id':$['id'],'params':{'unitId':_0x31e22d,'subUnitId':_0x1832ef,'shapeId':_0x54dbaf,'shapeType':_0x57c7a2,'shapeData':{..._0x53c840,'adjustValues':_0x4c35f4||(_0x53c840==null?void 0x0:_0x53c840[_0x3ac3cf(0x22f)])}}}];return _0x3c4f99(_0x161c3e,_0x3a082a)[_0x3ac3cf(0x232)]?(_0x5b2eb9['pushUndoRedo']({'unitID':_0x31e22d,'undoMutations':_0x332ca0,'redoMutations':_0x161c3e}),!0x0):!0x1;}},ye={'id':_0x4e1758(0x1d6),'type':_0x5ca941[_0x4e1758(0x1ab)],'handler':(_0xe1b6b,_0x12c8ae)=>{const _0x89a77f=_0x4e1758;let {unitId:_0x452f40,subUnitId:_0x345096,shapeType:_0x76a0ac,shapeId:_0x5a9386,shapeData:_0x421f57}=_0x12c8ae,_0x57e49a=_0xe1b6b['get'](Q)[_0x89a77f(0x1f9)](_0x452f40,_0x345096,_0x5a9386);return _0x57e49a&&(_0x57e49a[_0x89a77f(0x1fc)](_0x76a0ac),_0x421f57&&(_0x57e49a==null||_0x57e49a[_0x89a77f(0x1fa)](_0x421f57))),!0x0;}};function _0x289a(_0x929c3,_0x120f2c){_0x929c3=_0x929c3-0x1a2;const _0xf86d32=_0xf86d();let _0x289a3c=_0xf86d32[_0x929c3];return _0x289a3c;}var be=_0x4e1758(0x272),xe=_0x4e1758(0x218);function Se(_0x3f9f17){const _0x28a844=_0x4e1758;var _0x3073eb,_0xcefd4e,_0x2fd288,_0x3ddf86,_0x120d2e,_0x5beff9,_0x39d5a8;return{'left':((_0x3073eb=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x3073eb[_0x28a844(0x1b8)])??0x0,'top':((_0xcefd4e=_0x3f9f17['transform'])==null?void 0x0:_0xcefd4e[_0x28a844(0x26a)])??0x0,'width':((_0x2fd288=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x2fd288[_0x28a844(0x22b)])??0xc8,'height':((_0x3ddf86=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x3ddf86[_0x28a844(0x213)])??0xc8,'rotation':((_0x120d2e=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x120d2e['rotation'])??0x0,'flipX':((_0x5beff9=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x5beff9[_0x28a844(0x1d1)])??!0x1,'flipY':((_0x39d5a8=_0x3f9f17[_0x28a844(0x216)])==null?void 0x0:_0x39d5a8['flipY'])??!0x1};}let Ce=class{constructor(_0x3419fd,_0x388f45,_0x18c2c1,_0x5a266a){const _0x5c35aa=_0x4e1758;this[_0x5c35aa(0x22a)]=_0x3419fd,this[_0x5c35aa(0x231)]=_0x388f45,this['_drawingService']=_0x18c2c1,this[_0x5c35aa(0x1eb)]=_0x5a266a,X(this,_0x5c35aa(0x245),_0x1e8d7b[_0x5c35aa(0x1ba)]);}get[_0x4e1758(0x1ed)](){return{'subscribe':_0x35c36d=>{const _0x563773=_0x289a;let _0x5c5e1b=this[_0x563773(0x22a)][_0x563773(0x206)](_0x168b13=>{const _0x425334=_0x563773;(_0x168b13['id']===ue['id']||_0x168b13['id']===de['id']||_0x168b13['id']===$['id']||_0x168b13['id']===ye['id'])&&_0x35c36d({'unitId':_0x168b13['params'][_0x425334(0x1f1)]});});return{'unsubscribe':()=>_0x5c5e1b['dispose']()};}};}[_0x4e1758(0x1a9)](_0x143317){const _0xd404d5=_0x4e1758;var _0x315ecb;let _0x28d3a2=(_0x315ecb=this[_0xd404d5(0x1b9)][_0xd404d5(0x1e0)](_0x143317[_0xd404d5(0x1f1)],_0x143317['subUnitId']))==null?void 0x0:_0x315ecb[_0x143317[_0xd404d5(0x1e2)]],_0x5a0461=this[_0xd404d5(0x231)]['getShapeType'](_0x143317[_0xd404d5(0x1f1)],_0x143317[_0xd404d5(0x200)],_0x143317[_0xd404d5(0x1e2)]);if(!_0x28d3a2||_0x28d3a2[_0xd404d5(0x1e4)]!==_0x579c28['DRAWING_SHAPE']||!_0x5a0461)return null;let _0x3333b7=_0x28d3a2[_0xd404d5(0x216)];return{..._0x143317,'shapeType':_0x5a0461,'shapeData':_0x32fcde[_0xd404d5(0x1cd)](this[_0xd404d5(0x231)]['getShapeDataById'](_0x143317[_0xd404d5(0x1f1)],_0x143317[_0xd404d5(0x200)],_0x143317[_0xd404d5(0x1e2)])??{}),'name':_0x28d3a2[_0xd404d5(0x1d5)],'description':_0x28d3a2[_0xd404d5(0x235)],'visible':_0x28d3a2[_0xd404d5(0x202)]!==!0x0,'selectable':_0x28d3a2[_0xd404d5(0x210)]!==!0x1,'transform':{'left':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x1b8)])??0x0,'top':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x26a)])??0x0,'width':(_0x3333b7==null?void 0x0:_0x3333b7['width'])??0xc8,'height':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x213)])??0xc8,'rotation':(_0x3333b7==null?void 0x0:_0x3333b7['angle'])??0x0,'flipX':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x1d1)])??!0x1,'flipY':(_0x3333b7==null?void 0x0:_0x3333b7[_0xd404d5(0x1ac)])??!0x1}};}[_0x4e1758(0x247)](_0x1a82cb){const _0x1cdc97=_0x4e1758;let _0x1fe341=this['_drawingService'][_0x1cdc97(0x1e0)](_0x1a82cb[_0x1cdc97(0x1f1)],_0x1a82cb[_0x1cdc97(0x200)])??{};return Object[_0x1cdc97(0x1fe)](_0x1fe341)[_0x1cdc97(0x1b3)](_0x5da55d=>(_0x5da55d==null?void 0x0:_0x5da55d[_0x1cdc97(0x1e4)])===_0x579c28['DRAWING_SHAPE'])[_0x1cdc97(0x244)](_0x1824d4=>this[_0x1cdc97(0x1a9)]({..._0x1a82cb,'shapeId':_0x1824d4[_0x1cdc97(0x227)]}))[_0x1cdc97(0x1b3)](_0x2596d9=>!!_0x2596d9);}[_0x4e1758(0x230)](_0x8e94d2){const _0x3a1982=_0x4e1758;let _0x56906a=this[_0x3a1982(0x1eb)][_0x3a1982(0x229)](_0x8e94d2,_0x1e8d7b[_0x3a1982(0x1ba)]);return(_0x56906a==null?void 0x0:_0x56906a['getSheets']()['flatMap'](_0x3fca4e=>this[_0x3a1982(0x247)]({'hostType':this[_0x3a1982(0x245)],'unitId':_0x8e94d2,'subUnitId':_0x3fca4e[_0x3a1982(0x269)]()})))??[];}['createShape'](_0x47e45a,_0x121b0a){const _0x56affc=_0x4e1758;let _0x42a40c=_0x7b910c(),_0x3d2a00=Se(_0x121b0a),_0x54ca76=_0x32fcde['deepClone'](_0x121b0a[_0x56affc(0x23f)]??_0x1a88d3(_0x121b0a[_0x56affc(0x1bf)]));return this[_0x56affc(0x22a)][_0x56affc(0x23d)](fe['id'],{'unitId':_0x47e45a[_0x56affc(0x1f1)],'subUnitId':_0x47e45a['subUnitId'],'shapeId':_0x42a40c,'shapeType':_0x121b0a[_0x56affc(0x1bf)],'shapeData':_0x54ca76,'name':_0x121b0a[_0x56affc(0x1d5)],'description':_0x121b0a[_0x56affc(0x235)],'position':{'x':_0x3d2a00[_0x56affc(0x1b8)],'y':_0x3d2a00[_0x56affc(0x26a)]},'width':_0x3d2a00[_0x56affc(0x22b)],'height':_0x3d2a00[_0x56affc(0x213)],'rotation':_0x3d2a00[_0x56affc(0x24a)],'flipX':_0x3d2a00[_0x56affc(0x1d1)],'flipY':_0x3d2a00[_0x56affc(0x1ac)],'visible':_0x121b0a['visible']??!0x0,'selectable':_0x121b0a[_0x56affc(0x210)]??!0x0})?{..._0x47e45a,'shapeId':_0x42a40c,'shapeType':_0x121b0a[_0x56affc(0x1bf)],'shapeData':_0x54ca76,'name':_0x121b0a[_0x56affc(0x1d5)],'description':_0x121b0a[_0x56affc(0x235)],'visible':_0x121b0a[_0x56affc(0x1bc)]??!0x0,'selectable':_0x121b0a[_0x56affc(0x210)]??!0x0,'transform':_0x3d2a00}:null;}[_0x4e1758(0x1f0)](_0x3cbc59,_0x48d0e2){const _0xac4da1=_0x4e1758;var _0x5396bb;let _0xcd2c29=this[_0xac4da1(0x1a9)](_0x3cbc59);if(!_0xcd2c29)return!0x1;let _0x1be8df={..._0xcd2c29[_0xac4da1(0x216)],..._0x48d0e2[_0xac4da1(0x216)]};return this['_commandService'][_0xac4da1(0x23d)](pe['id'],{'unitId':_0x3cbc59[_0xac4da1(0x1f1)],'subUnitId':_0x3cbc59[_0xac4da1(0x200)],'shapeId':_0x3cbc59[_0xac4da1(0x1e2)],'shapeType':_0x48d0e2['shapeType']??((_0x5396bb=_0x48d0e2['shapeData'])==null?void 0x0:_0x5396bb[_0xac4da1(0x1bf)])??_0xcd2c29[_0xac4da1(0x1bf)],'shapeData':_0x48d0e2[_0xac4da1(0x23f)]??_0xcd2c29[_0xac4da1(0x23f)],'position':{'x':_0x1be8df[_0xac4da1(0x1b8)],'y':_0x1be8df[_0xac4da1(0x26a)]},'width':_0x1be8df['width'],'height':_0x1be8df['height'],'rotation':_0x1be8df[_0xac4da1(0x24a)],'flipX':_0x1be8df['flipX'],'flipY':_0x1be8df[_0xac4da1(0x1ac)],'name':'name'in _0x48d0e2?_0x48d0e2[_0xac4da1(0x1d5)]:_0xcd2c29['name'],'description':'description'in _0x48d0e2?_0x48d0e2[_0xac4da1(0x235)]:_0xcd2c29['description'],'visible':_0x48d0e2[_0xac4da1(0x1bc)]??_0xcd2c29['visible'],'selectable':_0x48d0e2[_0xac4da1(0x210)]??_0xcd2c29['selectable']});}['createFormulaLastValueMutation'](_0x1e0a56,_0x56b744,_0x434a2a){const _0x3054c2=_0x4e1758;let _0x45a89c=this[_0x3054c2(0x1a9)](_0x1e0a56),_0x52212a=_0x45a89c==null?void 0x0:_0x45a89c[_0x3054c2(0x23f)]['formulaBinding'];return!_0x45a89c||!_0x52212a?null:{'id':$['id'],'params':{'unitId':_0x1e0a56['unitId'],'subUnitId':_0x1e0a56['subUnitId'],'shapeId':_0x1e0a56[_0x3054c2(0x1e2)],'shapeData':{..._0x45a89c['shapeData'],'formulaBinding':{..._0x52212a,'lastValue':_0x32fcde['deepClone'](_0x434a2a)}},'replace':!0x0,'formulaLastValueGuard':_0x56b744}};}[_0x4e1758(0x263)](_0x21c692){const _0x4bef6a=_0x4e1758;return this[_0x4bef6a(0x22a)][_0x4bef6a(0x23d)](_0x442350['id'],{'unitId':_0x21c692[_0x4bef6a(0x1f1)],'drawings':[{'unitId':_0x21c692[_0x4bef6a(0x1f1)],'subUnitId':_0x21c692[_0x4bef6a(0x200)],'drawingId':_0x21c692[_0x4bef6a(0x1e2)],'drawingType':_0x579c28[_0x4bef6a(0x261)]}]});}[_0x4e1758(0x1be)](_0x1a49a1){const _0x5d1078=_0x4e1758;return this[_0x5d1078(0x1e6)](_0x1a49a1,_0x29f512[_0x5d1078(0x21e)]);}[_0x4e1758(0x1a3)](_0x4b2d65){const _0x132585=_0x4e1758;return this[_0x132585(0x1e6)](_0x4b2d65,_0x29f512['forward']);}[_0x4e1758(0x1ad)](_0x2791b1){const _0x137ad1=_0x4e1758;return this['_arrange'](_0x2791b1,_0x29f512[_0x137ad1(0x233)]);}[_0x4e1758(0x1e3)](_0x576c93){const _0x52d947=_0x4e1758;return this[_0x52d947(0x1e6)](_0x576c93,_0x29f512[_0x52d947(0x1c2)]);}['setZOrder'](_0x209996,_0x2593f0){const _0x3849d2=_0x4e1758;return this['_commandService'][_0x3849d2(0x23d)](_0x13f510['id'],{'unitId':_0x209996[_0x3849d2(0x1f1)],'subUnitId':_0x209996[_0x3849d2(0x200)],'drawingIds':[_0x209996['shapeId']],'zOrder':_0x2593f0});}[_0x4e1758(0x1e6)](_0x388325,_0xb93b86){const _0x538c00=_0x4e1758;return this[_0x538c00(0x22a)][_0x538c00(0x23d)](_0x13f510['id'],{'unitId':_0x388325[_0x538c00(0x1f1)],'subUnitId':_0x388325[_0x538c00(0x200)],'drawingIds':[_0x388325[_0x538c00(0x1e2)]],'arrangeType':_0xb93b86});}};Ce=le([Z(0x0,_0x446a3b),Z(0x1,_0x201a83(Q)),Z(0x2,_0x16cbc8),Z(0x3,_0xa1550)],Ce);const we={};let Te=class extends _0x50ff4f{constructor(_0x2960d3,_0x12e1bb,_0x37d4b3,_0x3b86ad,_0x368cf6,_0x5f1b12,_0x577343){const _0x5ac2d4=_0x4e1758;super(),this[_0x5ac2d4(0x22a)]=_0x2960d3,this['_sheetInterceptorService']=_0x12e1bb,this[_0x5ac2d4(0x1e8)]=_0x37d4b3,this['_sheetsShapeService']=_0x3b86ad,this['_drawingManagerService']=_0x368cf6,this['_shapeHostAdapterRegistry']=_0x5f1b12,this[_0x5ac2d4(0x236)](),this[_0x5ac2d4(0x24f)](),this[_0x5ac2d4(0x252)](this[_0x5ac2d4(0x1c4)][_0x5ac2d4(0x21c)](_0x577343));}[_0x4e1758(0x236)](){const _0x444708=_0x4e1758;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$]['forEach'](_0x17e316=>this[_0x444708(0x252)](this['_commandService'][_0x444708(0x246)](_0x17e316)));}[_0x4e1758(0x24f)](){const _0x492e2a=_0x4e1758;this[_0x492e2a(0x252)](this[_0x492e2a(0x250)]['interceptCommand']({'getMutations':_0x30fdad=>{const _0x3cb5ca=_0x492e2a;if(_0x30fdad['id']===_0x442350['id']){let {drawings:_0x442e57}=_0x30fdad[_0x3cb5ca(0x1b5)],_0xf76810=_0x442e57['filter'](_0x323d87=>_0x323d87[_0x3cb5ca(0x1e4)]===_0x579c28[_0x3cb5ca(0x261)]);if(_0xf76810['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x5c5cef=[],_0x4394b9=[];return _0xf76810[_0x3cb5ca(0x215)](_0x56f0ed=>{const _0x5446b6=_0x3cb5ca;let {unitId:_0x14fe10,subUnitId:_0x9c2dcc,drawingId:_0x11832d}=_0x56f0ed,_0x2b2ff5=this[_0x5446b6(0x25b)][_0x5446b6(0x1f9)](_0x14fe10,_0x9c2dcc,_0x11832d);if(!_0x2b2ff5)throw TypeError(_0x5446b6(0x25c)+_0x2b2ff5);_0x5c5cef[_0x5446b6(0x20c)]({'id':de['id'],'params':{'unitId':_0x14fe10,'subUnitId':_0x9c2dcc,'shapeId':_0x11832d}}),_0x4394b9['push']({'id':ue['id'],'params':{'unitId':_0x14fe10,'subUnitId':_0x9c2dcc,'shapeId':_0x11832d,'shapeType':_0x2b2ff5['getShapeType'](),'shapeData':_0x2b2ff5[_0x5446b6(0x25f)]()}});let _0x4d6711=this[_0x5446b6(0x25b)][_0x5446b6(0x1d9)](_0x14fe10,_0x9c2dcc,_0x11832d);if(_0x4d6711)for(let _0x5d6c23 of _0x4d6711){let _0x1e399c=_0x5d6c23[_0x5446b6(0x1e9)],_0x5c8762=_0x5d6c23['isFrom'],_0x58b758=_0x5c8762?{'from':void 0x0}:{'to':void 0x0},_0x49c405=_0x5c8762?{'from':{'shapeId':_0x5d6c23['shapeId'],'cxnIndex':_0x5d6c23[_0x5446b6(0x237)]}}:{'to':{'shapeId':_0x5d6c23[_0x5446b6(0x1e2)],'cxnIndex':_0x5d6c23[_0x5446b6(0x237)]}};_0x5c5cef[_0x5446b6(0x20c)]({'id':$['id'],'params':{'unitId':_0x14fe10,'subUnitId':_0x9c2dcc,'shapeId':_0x1e399c,'shapeData':{'relation':_0x58b758}}}),_0x4394b9[_0x5446b6(0x20c)]({'id':$['id'],'params':{'unitId':_0x14fe10,'subUnitId':_0x9c2dcc,'shapeId':_0x1e399c,'shapeData':{'relation':_0x49c405}}});}}),{'preRedos':_0x5c5cef,'redos':[],'preUndos':[],'undos':_0x4394b9};}if(_0x30fdad['id']===_0x47cba2['id']){let {drawings:_0x23a818}=_0x30fdad[_0x3cb5ca(0x1b5)],_0x3bfde7=_0x23a818[_0x3cb5ca(0x1b3)](_0x265813=>_0x265813['drawingType']===_0x579c28[_0x3cb5ca(0x261)]);if(_0x3bfde7[_0x3cb5ca(0x204)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x5f4047=[],_0x301be3=[];for(let _0x437dae of _0x3bfde7){let {unitId:_0x5112c9,subUnitId:_0x5b6f90,drawingId:_0x3da703,transform:_0x3d3c9c}=_0x437dae;if(!_0x5112c9||!_0x5b6f90||!_0x3da703||!_0x3d3c9c)continue;let _0x35a466=this['_sheetsShapeService'][_0x3cb5ca(0x1f9)](_0x5112c9,_0x5b6f90,_0x3da703);if(!_0x35a466)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x35a466);let _0x23b13e=_0x35a466[_0x3cb5ca(0x239)]();if(_0x178a1e(_0x23b13e)){let _0x4b7704=this[_0x3cb5ca(0x25b)]['getLineShapeRelation'](_0x5112c9,_0x5b6f90,_0x3da703);_0x4b7704&&(_0x5f4047[_0x3cb5ca(0x20c)]({'id':$['id'],'params':{'unitId':_0x5112c9,'subUnitId':_0x5b6f90,'shapeId':_0x3da703,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x301be3[_0x3cb5ca(0x20c)]({'id':$['id'],'params':{'unitId':_0x5112c9,'subUnitId':_0x5b6f90,'shapeId':_0x3da703,'shapeData':{'relation':_0x4b7704}}}));}else{let _0x337947=this[_0x3cb5ca(0x25b)][_0x3cb5ca(0x1d9)](_0x5112c9,_0x5b6f90,_0x3da703);if(_0x337947&&_0x337947[_0x3cb5ca(0x204)]>0x0)for(let _0x40d1c7 of _0x337947){let _0x3be858=_0x40d1c7[_0x3cb5ca(0x1e9)],_0x33d47c=_0x40d1c7[_0x3cb5ca(0x1de)],_0x5000eb=this[_0x3cb5ca(0x25b)][_0x3cb5ca(0x1f9)](_0x5112c9,_0x5b6f90,_0x3be858);if(!_0x5000eb)continue;let _0x1b9e3f=_0x5000eb[_0x3cb5ca(0x21f)](),_0x33c902=_0x5000eb[_0x3cb5ca(0x257)]();_0x1b9e3f&&_0x33c902?this[_0x3cb5ca(0x20f)](_0x5112c9,_0x5b6f90,_0x3be858,_0x5000eb,_0x1b9e3f,_0x33c902,_0x5f4047,_0x301be3,_0x3da703,_0x3d3c9c):this[_0x3cb5ca(0x1a7)](_0x5112c9,_0x5b6f90,_0x3be858,_0x5000eb,_0x33d47c?_0x1b9e3f:_0x33c902,_0x33d47c,_0x5f4047,_0x301be3,_0x3da703,_0x3d3c9c);}}}return{'preRedos':[],'redos':_0x5f4047,'preUndos':_0x301be3,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0xdaa852,_0x1f3143,_0x3b7a20,_0x34af97,_0x49a4de){const _0x1f4e96=_0x4e1758;if(!_0x1f3143||!_0x3b7a20)return null;let {shapeId:_0x48154e,cxnIndex:_0x551c71}=_0xdaa852,_0x38e448=this['_sheetsShapeService'][_0x1f4e96(0x1f9)](_0x1f3143,_0x3b7a20,_0x48154e);if(!_0x38e448)return null;let _0x585daa=this[_0x1f4e96(0x264)][_0x1f4e96(0x20a)]({'unitId':_0x1f3143,'subUnitId':_0x3b7a20,'drawingId':_0x48154e});if(!(_0x585daa!=null&&_0x585daa[_0x1f4e96(0x216)]))return null;let {left:_0x38797b=0x0,top:_0x4ba9da=0x0,width:_0x13c0e5=0x0,height:_0x4a0c52=0x0,flipX:_0x10c307=!0x1,flipY:_0x5656c9=!0x1,angle:_0x5b49bf}=_0x585daa[_0x1f4e96(0x216)];_0x49a4de&&_0x34af97===_0x48154e&&(_0x38797b=_0x49a4de[_0x1f4e96(0x1b8)]??_0x38797b,_0x4ba9da=_0x49a4de[_0x1f4e96(0x26a)]??_0x4ba9da,_0x13c0e5=_0x49a4de['width']??_0x13c0e5,_0x4a0c52=_0x49a4de[_0x1f4e96(0x213)]??_0x4a0c52,_0x10c307=_0x49a4de[_0x1f4e96(0x1d1)]??_0x10c307,_0x5656c9=_0x49a4de[_0x1f4e96(0x1ac)]??_0x5656c9,_0x5b49bf=_0x49a4de[_0x1f4e96(0x253)]??_0x5b49bf),_0x38e448[_0x1f4e96(0x1ce)]({'width':_0x13c0e5,'height':_0x4a0c52});let _0x7f4544=_0x38e448[_0x1f4e96(0x1f4)]()[_0x1f4e96(0x21d)](_0x247431=>_0x247431[_0x1f4e96(0x1d4)]===_0x551c71);if(!_0x7f4544)return null;let _0x5553ff=_0x10c307?_0x13c0e5-_0x7f4544['x']:_0x7f4544['x'],_0x2e96e8=_0x5656c9?_0x4a0c52-_0x7f4544['y']:_0x7f4544['y'];if(_0x5b49bf!==0x0&&_0x5b49bf!=null){let _0x12e2c9=_0x5b49bf*Math['PI']/0xb4,_0xbf7638=Math[_0x1f4e96(0x1ec)](_0x12e2c9),_0x298d3b=Math[_0x1f4e96(0x23c)](_0x12e2c9),_0xf6bfb7=_0x13c0e5/0x2,_0x3c9a6b=_0x4a0c52/0x2,_0x2a3bcf=_0x5553ff-_0xf6bfb7,_0xbf574d=_0x2e96e8-_0x3c9a6b;_0x5553ff=_0xf6bfb7+_0x2a3bcf*_0xbf7638-_0xbf574d*_0x298d3b,_0x2e96e8=_0x3c9a6b+_0x2a3bcf*_0x298d3b+_0xbf574d*_0xbf7638;}_0x5553ff+=_0x38797b,_0x2e96e8+=_0x4ba9da;let _0x40aaf7=_0x7f4544[_0x1f4e96(0x24d)]/0xea60;_0x10c307&&(_0x40aaf7=0xb4-_0x40aaf7),_0x5656c9&&(_0x40aaf7=-_0x40aaf7),_0x40aaf7+=_0x5b49bf||0x0,_0x40aaf7=(_0x40aaf7%0x168+0x168)%0x168;let _0x3f4885=_0x454a23({'left':_0x38797b,'top':_0x4ba9da,'width':_0x13c0e5,'height':_0x4a0c52},_0x5b49bf||0x0);return{'point':{'x':_0x5553ff,'y':_0x2e96e8},'angle':_0x40aaf7,'bounds':_0x3f4885};}[_0x4e1758(0x20f)](_0x2b8db5,_0x46668f,_0x53af0a,_0x5ca773,_0x1f6b10,_0x58fe69,_0x73bf75,_0x4d5f82,_0x4c8868,_0x399691){const _0x345005=_0x4e1758;let _0x197276=this[_0x345005(0x1e8)][_0x345005(0x1d8)](_0x2b8db5,_0x46668f);if(!_0x197276)return;let _0x7d85c0=_0x5ca773[_0x345005(0x240)](),_0x105b7e=_0x5ca773[_0x345005(0x205)](),_0x389b2e={},_0x9d873a={};_0x105b7e['forEach'](_0x21481f=>{const _0x596152=_0x345005;let _0x2cb8b0=_0x5ca773[_0x596152(0x1d0)](_0x21481f);_0x9d873a[_0x21481f]=_0x2cb8b0??0x0;});let _0x259a2d=this[_0x345005(0x201)](_0x1f6b10,_0x2b8db5,_0x46668f,_0x4c8868,_0x399691),_0x53aa9c=this[_0x345005(0x201)](_0x58fe69,_0x2b8db5,_0x46668f,_0x4c8868,_0x399691);if(_0x259a2d&&_0x53aa9c){let _0x4254f6=_0x5ca773[_0x345005(0x239)](),_0x25e822=_0x4bf912(_0x259a2d,_0x53aa9c,_0x4254f6),_0x170fa8=_0x4254f6;if(_0x25e822){let _0x51ac72=_0x33778f(_0x25e822,_0x5ca773[_0x345005(0x239)]()),_0x1d1a39=this['_drawingManagerService'][_0x345005(0x1e0)](_0x2b8db5,_0x46668f);if(_0x1d1a39&&_0x1d1a39[_0x53af0a]){let _0x379d3f=_0x1d1a39[_0x53af0a];_0x170fa8=_0x51ac72[_0x345005(0x1ff)];for(let [_0x3859d7,_0xe53959]of Object[_0x345005(0x1f7)](_0x51ac72[_0x345005(0x22f)]))_0x389b2e[_0x3859d7]=_0xe53959;let _0x269152={..._0x379d3f[_0x345005(0x216)],'width':_0x51ac72[_0x345005(0x1c7)][_0x345005(0x22b)],'height':_0x51ac72[_0x345005(0x1c7)]['height'],'left':_0x51ac72[_0x345005(0x1c7)]['left'],'top':_0x51ac72[_0x345005(0x1c7)][_0x345005(0x26a)],'flipX':_0x51ac72[_0x345005(0x1c7)][_0x345005(0x1d1)],'flipY':_0x51ac72[_0x345005(0x1c7)][_0x345005(0x1ac)],'angle':_0x51ac72[_0x345005(0x24a)]},_0x4d90e6=_0x55e9d6(_0x269152,_0x197276),_0x65d5c0=_0x53a78f(_0x269152,_0x197276),_0x4763b9={'unitId':_0x2b8db5,'subUnitId':_0x46668f,'drawingType':_0x579c28[_0x345005(0x261)],'drawingId':_0x53af0a,'transform':_0x269152,'sheetTransform':_0x4d90e6,'axisAlignSheetTransform':_0x65d5c0},{unitId:_0x4ba26a,subUnitId:_0x55a71a,undo:_0x51e699,redo:_0x4455f3,objects:_0x4d639c}=this['_drawingManagerService']['getBatchUpdateOp']([_0x4763b9]);_0x73bf75[_0x345005(0x20c)]({'id':_0x553d2b['id'],'params':{'unitId':_0x4ba26a,'subUnitId':_0x55a71a,'op':_0x4455f3,'objects':_0x4d639c,'type':_0x13e9cb[_0x345005(0x1ae)]}}),_0x4d5f82[_0x345005(0x20c)]({'id':_0x553d2b['id'],'params':{'unitId':_0x4ba26a,'subUnitId':_0x55a71a,'op':_0x51e699,'objects':_0x4d639c,'type':_0x13e9cb['UPDATE']}});}_0x5ca773['removeLinePoints']();}_0x73bf75['push']({'id':$['id'],'params':{'unitId':_0x2b8db5,'subUnitId':_0x46668f,'shapeId':_0x53af0a,'shapeType':_0x170fa8,'shapeData':{'adjustValues':_0x389b2e,'relation':_0x7d85c0}}}),_0x4d5f82[_0x345005(0x20c)]({'id':$['id'],'params':{'unitId':_0x2b8db5,'subUnitId':_0x46668f,'shapeId':_0x53af0a,'shapeType':_0x4254f6,'shapeData':{'adjustValues':_0x9d873a,'relation':_0x7d85c0}}});}}[_0x4e1758(0x1a7)](_0x2ea1a0,_0x171e69,_0x5579f4,_0x3496a3,_0x5a2c01,_0x1949ea,_0xe42b62,_0x17b1d4,_0x3afd27,_0x4ac1de){const _0x5142b1=_0x4e1758;var _0x57946b;if(!_0x5a2c01)return;let _0x5abf4f=this[_0x5142b1(0x1e8)][_0x5142b1(0x1d8)](_0x2ea1a0,_0x171e69);if(!_0x5abf4f)return;let _0x187e11=(_0x57946b=this[_0x5142b1(0x264)][_0x5142b1(0x20a)]({'unitId':_0x2ea1a0,'subUnitId':_0x171e69,'drawingId':_0x3afd27}))==null?void 0x0:_0x57946b[_0x5142b1(0x216)];if(!_0x187e11)return;let _0xb17ff6=_0x187e11[_0x5142b1(0x1b8)]!==_0x4ac1de['left']||_0x187e11[_0x5142b1(0x26a)]!==_0x4ac1de[_0x5142b1(0x26a)],_0x3876a0=_0x187e11[_0x5142b1(0x22b)]!==_0x4ac1de[_0x5142b1(0x22b)]||_0x187e11['height']!==_0x4ac1de[_0x5142b1(0x213)],_0x20b767=_0x187e11[_0x5142b1(0x1d1)]!==_0x4ac1de['flipX']||_0x187e11[_0x5142b1(0x1ac)]!==_0x4ac1de[_0x5142b1(0x1ac)],_0x49946a=_0x187e11[_0x5142b1(0x253)]!==_0x4ac1de[_0x5142b1(0x253)];if(_0xb17ff6&&!_0x3876a0&&!_0x20b767&&!_0x49946a){let _0x6e5da7=(_0x4ac1de[_0x5142b1(0x1b8)]??0x0)-(_0x187e11['left']??0x0),_0x3e264e=(_0x4ac1de['top']??0x0)-(_0x187e11['top']??0x0),_0x315a01=this[_0x5142b1(0x264)][_0x5142b1(0x1e0)](_0x2ea1a0,_0x171e69);if(_0x315a01&&_0x315a01[_0x5579f4]){var _0x262234,_0x4dd627;let _0x49d1ce=_0x315a01[_0x5579f4],_0x164497={..._0x49d1ce[_0x5142b1(0x216)],'left':(((_0x262234=_0x49d1ce[_0x5142b1(0x216)])==null?void 0x0:_0x262234['left'])??0x0)+_0x6e5da7,'top':(((_0x4dd627=_0x49d1ce[_0x5142b1(0x216)])==null?void 0x0:_0x4dd627[_0x5142b1(0x26a)])??0x0)+_0x3e264e},_0x30565e=_0x55e9d6(_0x164497,_0x5abf4f),_0x5f4025=_0x53a78f(_0x164497,_0x5abf4f),_0x4a57ca={'unitId':_0x2ea1a0,'subUnitId':_0x171e69,'drawingType':_0x579c28[_0x5142b1(0x261)],'drawingId':_0x5579f4,'transform':_0x164497,'sheetTransform':_0x30565e,'axisAlignSheetTransform':_0x5f4025},{unitId:_0x5185db,subUnitId:_0x23b88d,undo:_0x58c60d,redo:_0x1a97d0,objects:_0x36cc5b}=this['_drawingManagerService'][_0x5142b1(0x1c6)]([_0x4a57ca]);_0xe42b62[_0x5142b1(0x20c)]({'id':_0x553d2b['id'],'params':{'unitId':_0x5185db,'subUnitId':_0x23b88d,'op':_0x1a97d0,'objects':_0x36cc5b,'type':_0x13e9cb['UPDATE']}}),_0x17b1d4[_0x5142b1(0x20c)]({'id':_0x553d2b['id'],'params':{'unitId':_0x5185db,'subUnitId':_0x23b88d,'op':_0x58c60d,'objects':_0x36cc5b,'type':_0x13e9cb['UPDATE']}});}}else{let _0x41c0e2=_0x3496a3['getStartConnectInfo'](),_0x2dc016=_0x3496a3['getEndConnectInfo']();this[_0x5142b1(0x20f)](_0x2ea1a0,_0x171e69,_0x5579f4,_0x3496a3,_0x41c0e2,_0x2dc016,_0xe42b62,_0x17b1d4,_0x3afd27,_0x4ac1de);}}};Te=le([Z(0x0,_0x446a3b),Z(0x1,_0x201a83(_0x1c2c98)),Z(0x2,_0x201a83(_0xb3d7e9)),Z(0x3,_0x201a83(Q)),Z(0x4,_0x201a83(_0x392aaf)),Z(0x5,_0x201a83(_0x281679)),Z(0x6,_0x201a83(Ce))],Te);let Ee=class extends _0x50ff4f{constructor(_0xdbe91d,_0x22bcfa,_0x42abe3){const _0x16e1bb=_0x4e1758;super(),this[_0x16e1bb(0x231)]=_0xdbe91d,this[_0x16e1bb(0x220)]=_0x22bcfa,this['disposeWithMe'](_0x42abe3[_0x16e1bb(0x21c)](this));}[_0x4e1758(0x216)](_0x369774){const _0x56269b=_0x4e1758;let _0x49e1b3={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x56269b(0x24c)](_0x369774,_0x49e1b3);for(let [_0x577252,_0x54228f]of _0x369774[_0x56269b(0x1f3)])this[_0x56269b(0x1b0)](_0x369774,_0x577252,_0x54228f,_0x49e1b3);return _0x49e1b3;}[_0x4e1758(0x24c)](_0x2c49f2,_0xd61c20){const _0xc17cd3=_0x4e1758;if(_0x2c49f2[_0xc17cd3(0x219)]===_0xc17cd3(0x1db))for(let _0x573ca9 of _0x2c49f2[_0xc17cd3(0x1d7)]){let _0x12cd8c=_0x2c49f2[_0xc17cd3(0x1f3)][_0xc17cd3(0x225)](_0x573ca9),_0x53de25=this['_shapeService'][_0xc17cd3(0x1f9)](_0x2c49f2[_0xc17cd3(0x1f1)],_0x2c49f2['subUnitId'],_0x573ca9);(_0x12cd8c==null?void 0x0:_0x12cd8c[_0xc17cd3(0x1e4)])===_0x579c28[_0xc17cd3(0x261)]&&_0x53de25&&(_0xd61c20[_0xc17cd3(0x211)][_0xc17cd3(0x20c)]({'id':de['id'],'params':{'unitId':_0x2c49f2[_0xc17cd3(0x1f1)],'subUnitId':_0x2c49f2[_0xc17cd3(0x200)],'shapeId':_0x573ca9}}),_0xd61c20['undos'][_0xc17cd3(0x20c)]({'id':ue['id'],'params':{'unitId':_0x2c49f2[_0xc17cd3(0x1f1)],'subUnitId':_0x2c49f2[_0xc17cd3(0x200)],'shapeId':_0x573ca9,'shapeName':_0x53de25['getName'](),'shapeType':_0x53de25['getShapeType'](),'shapeData':_0x32fcde[_0xc17cd3(0x1cd)](_0x53de25[_0xc17cd3(0x25f)]())}}));}}['_planConnector'](_0x5116f3,_0x1e6786,_0x339ded,_0x238179){const _0x3d66d7=_0x4e1758;if(_0x339ded[_0x3d66d7(0x1e4)]!==_0x579c28[_0x3d66d7(0x261)]||_0x5116f3[_0x3d66d7(0x1d7)][_0x3d66d7(0x1f5)](_0x1e6786))return;let _0x242dde=this[_0x3d66d7(0x231)][_0x3d66d7(0x1f9)](_0x5116f3['unitId'],_0x5116f3[_0x3d66d7(0x200)],_0x1e6786);if(!_0x242dde||!_0x178a1e(_0x242dde[_0x3d66d7(0x239)]()))return;let _0x452eda=_0x242dde[_0x3d66d7(0x240)]();if(!(_0x5116f3[_0x3d66d7(0x1c1)][_0x3d66d7(0x1f5)](_0x1e6786)||_0x452eda!=null&&_0x452eda[_0x3d66d7(0x22e)]&&(_0x5116f3['updates'][_0x3d66d7(0x1f5)](_0x452eda[_0x3d66d7(0x22e)][_0x3d66d7(0x1e2)])||_0x5116f3[_0x3d66d7(0x1d7)][_0x3d66d7(0x1f5)](_0x452eda[_0x3d66d7(0x22e)][_0x3d66d7(0x1e2)]))||_0x452eda!=null&&_0x452eda['to']&&(_0x5116f3[_0x3d66d7(0x1c1)][_0x3d66d7(0x1f5)](_0x452eda['to']['shapeId'])||_0x5116f3[_0x3d66d7(0x1d7)][_0x3d66d7(0x1f5)](_0x452eda['to'][_0x3d66d7(0x1e2)]))))return;let _0x1802f1=_0x5116f3[_0x3d66d7(0x1c1)]['get'](_0x1e6786)??_0x339ded,_0x4502b3=this[_0x3d66d7(0x1bd)](_0x5116f3,_0x1802f1);if(!_0x4502b3)return;let _0x32265f=_0x404ba0(_0x4502b3);if(_0x32265f[_0x3d66d7(0x204)]<0x2)return;let _0x56efca=_0x32fcde['deepClone'](_0x452eda??{}),_0x5059dd=_0x56efca[_0x3d66d7(0x22e)]&&this[_0x3d66d7(0x258)](_0x5116f3,_0x56efca[_0x3d66d7(0x22e)][_0x3d66d7(0x1e2)],_0x56efca['from'][_0x3d66d7(0x237)]),_0x45ca35=_0x56efca['to']&&this[_0x3d66d7(0x258)](_0x5116f3,_0x56efca['to']['shapeId'],_0x56efca['to']['cxnIndex']);_0x56efca['from']&&!_0x5059dd&&delete _0x56efca[_0x3d66d7(0x22e)],_0x56efca['to']&&!_0x45ca35&&delete _0x56efca['to'];let _0x5f013e=_0x5059dd||_0x480a1d((_0x45ca35==null?void 0x0:_0x45ca35[_0x3d66d7(0x209)])??_0x32265f[_0x32265f[_0x3d66d7(0x204)]-0x1],_0x32265f[0x0]),_0x33c00a=_0x45ca35||_0x480a1d((_0x5059dd==null?void 0x0:_0x5059dd[_0x3d66d7(0x209)])??_0x32265f[0x0],_0x32265f[_0x32265f[_0x3d66d7(0x204)]-0x1]),_0x1a0d21=_0x150f21(_0x4502b3,_0x5f013e,_0x33c00a,_0x56efca);_0x1a0d21!=null&&_0x1a0d21[_0x3d66d7(0x216)]&&_0x1a0d21[_0x3d66d7(0x1bf)]&&_0x1a0d21[_0x3d66d7(0x23f)]&&(this[_0x3d66d7(0x1f8)](_0x5116f3,_0x1802f1,_0x1a0d21),_0x5116f3[_0x3d66d7(0x219)]===_0x3d66d7(0x1a2)?(_0x242dde[_0x3d66d7(0x1fc)](_0x1a0d21[_0x3d66d7(0x1bf)]),_0x242dde[_0x3d66d7(0x1fa)](_0x32fcde[_0x3d66d7(0x1cd)](_0x1a0d21[_0x3d66d7(0x23f)]),!0x1)):(_0x238179['redos'][_0x3d66d7(0x20c)]({'id':$['id'],'params':{'unitId':_0x5116f3[_0x3d66d7(0x1f1)],'subUnitId':_0x5116f3[_0x3d66d7(0x200)],'shapeId':_0x1e6786,'shapeType':_0x1a0d21[_0x3d66d7(0x1bf)],'shapeData':_0x32fcde['deepClone'](_0x1a0d21[_0x3d66d7(0x23f)]),'replace':!0x0}}),_0x238179[_0x3d66d7(0x1e1)][_0x3d66d7(0x20c)]({'id':$['id'],'params':{'unitId':_0x5116f3[_0x3d66d7(0x1f1)],'subUnitId':_0x5116f3['subUnitId'],'shapeId':_0x1e6786,'shapeType':_0x242dde[_0x3d66d7(0x239)](),'shapeData':_0x32fcde[_0x3d66d7(0x1cd)](_0x242dde[_0x3d66d7(0x25f)]()),'replace':!0x0}})));}['_resolveBinding'](_0x329ce8,_0x6d349,_0x45d8b0){const _0x5417aa=_0x4e1758;if(_0x329ce8['deletes'][_0x5417aa(0x1f5)](_0x6d349))return null;let _0x219cd4=_0x329ce8[_0x5417aa(0x1c1)]['get'](_0x6d349)??_0x329ce8[_0x5417aa(0x1f3)][_0x5417aa(0x225)](_0x6d349);if(!_0x219cd4)return null;let _0x15c3db=this[_0x5417aa(0x1bd)](_0x329ce8,_0x219cd4);return _0x15c3db?_0x37f0e6(_0x15c3db,_0x45d8b0):null;}[_0x4e1758(0x1bd)](_0x21d531,_0xf89466){const _0x326638=_0x4e1758;let _0x475179={'hostType':_0x1e8d7b[_0x326638(0x1ba)],'unitId':_0x21d531[_0x326638(0x1f1)],'subUnitId':_0x21d531[_0x326638(0x200)],'shapeId':_0xf89466[_0x326638(0x227)]},_0x340f05=this[_0x326638(0x220)][_0x326638(0x1a9)](_0x475179);return!_0x340f05||!_0xf89466[_0x326638(0x216)]?null:{..._0x340f05,'transform':{'left':_0xf89466[_0x326638(0x216)][_0x326638(0x1b8)]??0x0,'top':_0xf89466[_0x326638(0x216)][_0x326638(0x26a)]??0x0,'width':_0xf89466[_0x326638(0x216)][_0x326638(0x22b)]??0x0,'height':_0xf89466['transform'][_0x326638(0x213)]??0x0,'rotation':_0xf89466[_0x326638(0x216)]['angle']??0x0,'flipX':_0xf89466[_0x326638(0x216)][_0x326638(0x1d1)]??!0x1,'flipY':_0xf89466[_0x326638(0x216)]['flipY']??!0x1}};}['_applyUpdate'](_0x537e94,_0x5d29a4,_0x148979){const _0x4d2aa4=_0x4e1758;let _0x87cba3=_0x5d29a4,_0x33a06f={..._0x5d29a4[_0x4d2aa4(0x216)],'left':_0x148979['transform'][_0x4d2aa4(0x1b8)],'top':_0x148979[_0x4d2aa4(0x216)][_0x4d2aa4(0x26a)],'width':_0x148979['transform']['width'],'height':_0x148979[_0x4d2aa4(0x216)][_0x4d2aa4(0x213)],'angle':_0x148979[_0x4d2aa4(0x216)][_0x4d2aa4(0x24a)],'flipX':_0x148979[_0x4d2aa4(0x216)][_0x4d2aa4(0x1d1)],'flipY':_0x148979['transform']['flipY']},_0x2edcf8={..._0x87cba3,'transform':_0x33a06f,'sheetTransform':_0x55e9d6(_0x33a06f,_0x537e94[_0x4d2aa4(0x1a4)]),'axisAlignSheetTransform':_0x53a78f(_0x33a06f,_0x537e94[_0x4d2aa4(0x1a4)]),'data':{..._0x87cba3[_0x4d2aa4(0x1f2)],'shapeType':_0x148979[_0x4d2aa4(0x1bf)],'shapeData':_0x32fcde['deepClone'](_0x148979['shapeData'])}};_0x537e94[_0x4d2aa4(0x1c1)][_0x4d2aa4(0x1c0)](_0x5d29a4[_0x4d2aa4(0x227)],_0x2edcf8);}};Ee=le([Z(0x0,_0x201a83(Q)),Z(0x1,_0x201a83(Ce)),Z(0x2,_0x201a83(_0x103301))],Ee);let De=class extends _0x2abf53{constructor(_0x42c7f9=we,_0x293e0f,_0x2446bd){const _0x102007=_0x4e1758;super(),this[_0x102007(0x262)]=_0x42c7f9,this[_0x102007(0x1d2)]=_0x293e0f,this[_0x102007(0x20b)]=_0x2446bd;let {..._0x17cf33}=_0x8713b3({},we,this[_0x102007(0x262)]);this[_0x102007(0x20b)]['setConfig']('sheets-shape.config',_0x17cf33);}['onStarting'](){const _0x2078cf=_0x4e1758;let _0x1f016b=this['_injector'];[[ce],[Q],[Ce],[Ee],[Te]]['forEach'](_0x163155=>_0x1f016b[_0x2078cf(0x243)](_0x163155)),_0x51e20f(_0x1f016b,[[Q],[Ee],[Te]]);}};X(De,'type',_0x1e8d7b['UNIVER_SHEET']),X(De,_0x4e1758(0x228),_0x4e1758(0x21a)),X(De,_0x4e1758(0x1fd),be),X(De,_0x4e1758(0x268),xe),De=le([_0x39978e(_0x460a76,_0x14ff54,_0x223efa,_0x237476,_0x2b4b06),Z(0x1,_0x201a83(_0x3dddb4)),Z(0x2,_0x29256c)],De);function _0xf86d(){const _0x12e9f3=['_planDeletes','ang','getOwnPropertyDescriptor','_initCommandInterceptor','_sheetInterceptorService','sheet.command.toggle-shape-flip','disposeWithMe','angle','getId','1207155maahKq','range','getEndConnectInfo','_resolveBinding','4023260AbitNh','registerPluginResource','_sheetsShapeService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','delete','COMMAND','getShapeData','pushUndoRedo','DRAWING_SHAPE','_config','removeShape','_drawingManagerService','_disposed','string','9WHzdCZ','version','getSheetId','top','isLineShape','sheet.command.set-shape-text-vertical-toggle','getShapeDataById','decorate','default','symbol','clear','@univerjs-pro/sheets-shape','3227GYlLEc','resizeEnabled','refresh','bringForward','skeleton','_resourcesManagerService','sheet.command.set-shape-rotate','_addLineFollowShapeUpdates','40nlPhUR','getShape','_groupIds','MUTATION','flipY','sendBackward','UPDATE','keys','_planConnector','formula','_initSnapshot','filter','fill','params','78792rOCUUG','redos','left','_drawingService','UNIVER_SHEET','2007704hqkSyv','visible','_toSnapshot','bringToFront','shapeType','set','updates','back','shapeName','_shapeHostAdapterRegistry','fromJSON','getBatchUpdateOp','worldRect','onCommandExecute','sheet.mutation.insert-shape','_shapes','parse','isHorizontal','deepClone','updateContext','function','getAdjustValueByName','flipX','_injector','startX','index','name','sheet.mutation.update-shape-type','deletes','getSkeleton','getBasicShapeRelation','rotateEnabled','command','150XOkkcG','borderEnabled','isFrom','prototype','getDrawingData','undos','shapeId','sendToBack','drawingType','sheet.command.set-shape-drawing-data','_arrange','sheet.command.insert-shape','_sheetSkeletonService','lineShapeId','getBatchAddOp','_instanceService','cos','shapeChanged$','formulaBinding','toJSON','updateShape','unitId','data','originals','getConnectionSiteList','has','527566jZlZmg','entries','_applyUpdate','getShapeModel','setShapeData','INSERT','setShapeType','packageName','values','lineType','subUnitId','_getConnectPointInfo','hidden','_linesIds','length','getAdjustNames','onCommandExecuted','object','ensureSkeleton','point','getDrawingByParam','_configService','push','call','_shapeModelManagerMap','_addLineRerouteUpdates','selectable','preRedos','_deserializeShapeForUnit','height','256432UNbleo','forEach','transform','_serializeShapeForUnit','1.2.0','mode','SHEET_SHAPE_PLUGIN','constructor','register','find','front','getStartConnectInfo','_shapeAdapter','stringify','getLineShapeRelation','sheet.mutation.remove-shape','getShapeDisplayNames','get','position','drawingId','pluginName','getUnit','_commandService','width','defineProperty','preUndos','from','adjustValues','listShapesInUnit','_shapeService','result','backward','startY','description','_initCommands','cxnIndex','_ensureShapeModelManager','getShapeType','sheet.command.update-line-shape-resize','getName','sin','syncExecuteCommand','addShape','shapeData','getShapeRelation','insertShape','dispose','add','map','hostType','registerCommand','listShapes','hasShape','relation','rotation','sheet.mutation.update-shape-data'];_0xf86d=function(){return _0x12e9f3;};return _0xf86d();}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,Q as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,De as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x54438a=_0x1656;(function(_0x49f4ac,_0x37dab0){const _0x57d916=_0x1656,_0x376b52=_0x49f4ac();while(!![]){try{const _0x48292c=-parseInt(_0x57d916(0x1e2))/0x1*(-parseInt(_0x57d916(0x1cf))/0x2)+parseInt(_0x57d916(0x1bd))/0x3*(parseInt(_0x57d916(0x1c0))/0x4)+parseInt(_0x57d916(0x1da))/0x5+parseInt(_0x57d916(0x1c9))/0x6*(-parseInt(_0x57d916(0x1cc))/0x7)+-parseInt(_0x57d916(0x1b7))/0x8+-parseInt(_0x57d916(0x1d8))/0x9*(-parseInt(_0x57d916(0x1e4))/0xa)+-parseInt(_0x57d916(0x1be))/0xb;if(_0x48292c===_0x37dab0)break;else _0x376b52['push'](_0x376b52['shift']());}catch(_0x5ec17e){_0x376b52['push'](_0x376b52['shift']());}}}(_0x5d44,0xc584a));function _0x5d44(){const _0x177d63=['getShapes','_getShapeAdapter','3EYAwRz','12207833dwOkhX','warn','3170668EsYCPi','getDrawingByParam','listShapes','decorate','getPlacement','getWorkbook','get','_sheetDrawingService','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','34200EEiUrT','_commandService','_injector','1092INeIqx','subUnitId','getShape','2gEGxIk','length','transform','unitId','object','_getShapeScope','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','shapeId','\x22\x20has\x20no\x20transform\x20extent.','455103zzQAmx','syncExecuteCommand','5352565mmpCKn','setPosition','\x22\x20was\x20not\x20found.','UNIVER_SHEET','_shapeRef','_createShapeHandle','createInstance','getUnitId','1567306nhKbUA','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','40FsaMUT','setPlacement','createShape','6597736fgaCtm','function','map','getSheetId'];_0x5d44=function(){return _0x177d63;};return _0x5d44();}import{IShapeHostAdapterRegistry as _0x10710c,isConnectorShape as _0x3be048}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x4879c5,FShape as _0x4f0cad}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x389fff,UniverInstanceType as _0x4456e6}from'@univerjs/core';import{FWorksheet as _0x52fb30}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x38a7cd,SetSheetDrawingPlacementCommand as _0x54b839,SheetDrawingAnchorType as _0x150267,getSheetDrawingPlacement as _0x53203d}from'@univerjs/sheets-drawing';function d(_0x7c59d1,_0x21e406){return function(_0x16fe7f,_0x589fa0){_0x21e406(_0x16fe7f,_0x589fa0,_0x7c59d1);};}function f(_0x2427eb,_0x3a43d4,_0x8eaace,_0x3d9bbf){const _0x4552d6=_0x1656;var _0x29c118=arguments[_0x4552d6(0x1d0)],_0x2b0d2c=_0x29c118<0x3?_0x3a43d4:_0x3d9bbf===null?_0x3d9bbf=Object['getOwnPropertyDescriptor'](_0x3a43d4,_0x8eaace):_0x3d9bbf,_0x581fa3;if(typeof Reflect==_0x4552d6(0x1d3)&&typeof Reflect[_0x4552d6(0x1c3)]==_0x4552d6(0x1b8))_0x2b0d2c=Reflect[_0x4552d6(0x1c3)](_0x2427eb,_0x3a43d4,_0x8eaace,_0x3d9bbf);else{for(var _0x2602b9=_0x2427eb[_0x4552d6(0x1d0)]-0x1;_0x2602b9>=0x0;_0x2602b9--)(_0x581fa3=_0x2427eb[_0x2602b9])&&(_0x2b0d2c=(_0x29c118<0x3?_0x581fa3(_0x2b0d2c):_0x29c118>0x3?_0x581fa3(_0x3a43d4,_0x8eaace,_0x2b0d2c):_0x581fa3(_0x3a43d4,_0x8eaace))||_0x2b0d2c);}return _0x29c118>0x3&&_0x2b0d2c&&Object['defineProperty'](_0x3a43d4,_0x8eaace,_0x2b0d2c),_0x2b0d2c;}let p=class extends _0x4f0cad{constructor(_0x4cc15c,_0x22d318,_0x7a58cc,_0xd1b1cc,_0x318b89){const _0x44ac98=_0x1656;super(_0x4cc15c,_0x22d318,_0x7a58cc,_0xd1b1cc),this[_0x44ac98(0x1c7)]=_0x318b89;}[_0x54438a(0x1c4)](){const _0x22a403=_0x54438a;let _0x5982da=this[_0x22a403(0x1c7)][_0x22a403(0x1c1)]({'unitId':this[_0x22a403(0x1de)][_0x22a403(0x1d2)],'subUnitId':this[_0x22a403(0x1de)][_0x22a403(0x1cd)],'drawingId':this[_0x22a403(0x1de)][_0x22a403(0x1d6)]});return _0x5982da?_0x53203d(_0x5982da):null;}[_0x54438a(0x1e5)](_0x2e2f1c){const _0x542076=_0x54438a;return this[_0x542076(0x1ca)][_0x542076(0x1d9)](_0x54b839['id'],{'unitId':this[_0x542076(0x1de)]['unitId'],'subUnitId':this[_0x542076(0x1de)]['subUnitId'],'drawings':[{'drawingId':this['_shapeRef'][_0x542076(0x1d6)],'placement':_0x2e2f1c}]});}[_0x54438a(0x1db)](_0x297c5f,_0x1e9511,_0x5f0e0f,_0x4323d4){const _0x572282=_0x54438a;var _0x4e543e,_0x4e19dd;let _0x53d68d=this[_0x572282(0x1c7)]['getDrawingByParam']({'unitId':this['_shapeRef']['unitId'],'subUnitId':this[_0x572282(0x1de)][_0x572282(0x1cd)],'drawingId':this['_shapeRef'][_0x572282(0x1d6)]});if(!_0x53d68d)return console[_0x572282(0x1bf)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x572282(0x1de)][_0x572282(0x1d6)]+_0x572282(0x1dc)),this;let _0x95644d=(_0x4e543e=_0x53d68d[_0x572282(0x1d1)])==null?void 0x0:_0x4e543e['width'],_0x5bcd8a=(_0x4e19dd=_0x53d68d[_0x572282(0x1d1)])==null?void 0x0:_0x4e19dd['height'];return _0x95644d==null||_0x5bcd8a==null?(console['warn'](_0x572282(0x1d5)+this[_0x572282(0x1de)]['shapeId']+_0x572282(0x1d7)),this):(this[_0x572282(0x1ca)]['syncExecuteCommand'](_0x54b839['id'],{'unitId':this[_0x572282(0x1de)][_0x572282(0x1d2)],'subUnitId':this[_0x572282(0x1de)]['subUnitId'],'drawings':[{'drawingId':this[_0x572282(0x1de)]['shapeId'],'placement':{'kind':_0x150267['Position'],'from':{'row':_0x297c5f,'column':_0x1e9511,'rowOffset':_0x5f0e0f,'columnOffset':_0x4323d4},'width':_0x95644d,'height':_0x5bcd8a}}]}),this);}};p=f([d(0x2,_0x10710c),d(0x3,_0x389fff),d(0x4,_0x38a7cd)],p);var m=class extends _0x52fb30{['insertShape'](_0x38d256){const _0x4b717e=_0x54438a;let _0x471b79=this[_0x4b717e(0x1bc)]();if(!_0x471b79)return null;try{let _0x1e0eeb=_0x471b79[_0x4b717e(0x1e6)](this[_0x4b717e(0x1d4)](),_0x38d256);return _0x1e0eeb?this[_0x4b717e(0x1df)](_0x1e0eeb):(console[_0x4b717e(0x1bf)](_0x4b717e(0x1c8)),null);}catch(_0x3c90fa){return console[_0x4b717e(0x1bf)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.',_0x3c90fa),null;}}['getShape'](_0x5930e5){const _0x3cc0f1=_0x54438a;let _0xf0afe6=this[_0x3cc0f1(0x1bc)]();if(!_0xf0afe6)return null;try{let _0x1d15b9={...this[_0x3cc0f1(0x1d4)](),'shapeId':_0x5930e5},_0x3ef7f5=_0xf0afe6[_0x3cc0f1(0x1ce)](_0x1d15b9);return _0x3ef7f5?this[_0x3cc0f1(0x1df)](_0x3ef7f5):(console['warn'](_0x3cc0f1(0x1d5)+_0x5930e5+_0x3cc0f1(0x1dc)),null);}catch(_0x2b5fd1){return console[_0x3cc0f1(0x1bf)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22'+_0x5930e5+'\x22.',_0x2b5fd1),null;}}[_0x54438a(0x1bb)](){const _0x2d7073=_0x54438a;let _0x2825c6=this['_getShapeAdapter']();if(!_0x2825c6)return[];try{return _0x2825c6[_0x2d7073(0x1c2)](this[_0x2d7073(0x1d4)]())[_0x2d7073(0x1b9)](_0x11ecbd=>this[_0x2d7073(0x1df)](_0x11ecbd));}catch(_0x2f528d){return console[_0x2d7073(0x1bf)](_0x2d7073(0x1e3),_0x2f528d),[];}}[_0x54438a(0x1d4)](){const _0x5f1bc1=_0x54438a;return{'hostType':_0x4456e6[_0x5f1bc1(0x1dd)],'unitId':this[_0x5f1bc1(0x1c5)]()[_0x5f1bc1(0x1e1)](),'subUnitId':this[_0x5f1bc1(0x1ba)]()};}[_0x54438a(0x1bc)](){const _0x46c6b2=_0x54438a;return this[_0x46c6b2(0x1cb)]['get'](_0x10710c)[_0x46c6b2(0x1c6)](_0x4456e6[_0x46c6b2(0x1dd)]);}[_0x54438a(0x1df)](_0x44a40a){const _0xcbc9f5=_0x54438a;let {unitId:_0x38b3e2,subUnitId:_0x12784b,shapeId:_0xff8c5e}=_0x44a40a,_0x403b97={'unitId':_0x38b3e2,'subUnitId':_0x12784b,'shapeId':_0xff8c5e,'hostType':_0x4456e6[_0xcbc9f5(0x1dd)]};return _0x3be048(_0x44a40a['shapeType'])?this[_0xcbc9f5(0x1cb)][_0xcbc9f5(0x1e0)](_0x4879c5,_0x403b97,this[_0xcbc9f5(0x1cb)]):this[_0xcbc9f5(0x1cb)]['createInstance'](p,_0x403b97,this['_injector']);}};_0x52fb30['extend'](m);function _0x1656(_0x5a0760,_0x1881cc){_0x5a0760=_0x5a0760-0x1b7;const _0x5d4492=_0x5d44();let _0x1656d8=_0x5d4492[_0x5a0760];return _0x1656d8;}export{p as FSheetShape};
|