@univerjs-pro/sheets-shape 0.25.0 → 0.25.2

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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1a417c=_0x6126;(function(_0x1af039,_0x59c209){const _0x53dc21=_0x6126,_0x493f5c=_0x1af039();while(!![]){try{const _0x583380=parseInt(_0x53dc21(0x1f3))/0x1*(-parseInt(_0x53dc21(0x24f))/0x2)+-parseInt(_0x53dc21(0x1e7))/0x3*(parseInt(_0x53dc21(0x20b))/0x4)+parseInt(_0x53dc21(0x264))/0x5*(-parseInt(_0x53dc21(0x1df))/0x6)+-parseInt(_0x53dc21(0x20d))/0x7+parseInt(_0x53dc21(0x24c))/0x8*(-parseInt(_0x53dc21(0x267))/0x9)+parseInt(_0x53dc21(0x1e6))/0xa+-parseInt(_0x53dc21(0x208))/0xb*(-parseInt(_0x53dc21(0x216))/0xc);if(_0x583380===_0x59c209)break;else _0x493f5c['push'](_0x493f5c['shift']());}catch(_0x390e0c){_0x493f5c['push'](_0x493f5c['shift']());}}}(_0x20c3,0x5cae0));import{ShapeModel as _0x35c2ea,computeConnectorRouteLayout as _0x4d5188,getBasicShapeRotateBound as _0x4dd2cd,isConnectorShape as _0x33d47c,routeConnectorLineShape as _0x29d7a4}from'@univerjs-pro/engine-shape';import{CommandType as _0x5229c7,DependentOn as _0x4c451e,Disposable as _0x4e5f9f,DrawingTypeEnum as _0x5d2b71,ICommandService as _0x285fd2,IConfigService as _0x3c3bf5,IResourceManagerService as _0x5cf65e,IUndoRedoService as _0x2b286c,IUniverInstanceService as _0x32f2cd,Inject as _0xca6a11,Injector as _0x4e72d8,Plugin as _0x2582f4,UniverInstanceType as _0x26716f,generateRandomId as _0x26ccda,merge as _0x3c605c,sequenceExecute as _0x3ffddd,touchDependencies as _0x5c294e}from'@univerjs/core';import{SheetInterceptorService as _0x19401e,SheetSkeletonService as _0x55630f,getSheetCommandTarget as _0x4e7fb4}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0xeb678b,DrawingApplyType as _0x5af201,ISheetDrawingService as _0x3339be,InsertSheetDrawingCommand as _0x1696e3,RemoveSheetDrawingCommand as _0x56569e,SetDrawingApplyMutation as _0x2ae4cd,SetSheetDrawingCommand as _0x28e6ad,transformToAxisAlignPosition as _0x64f7c2,transformToDrawingPosition as _0x5aa0b0}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3785ee}from'@univerjs-pro/license';import{IDrawingManagerService as _0x525c29}from'@univerjs/drawing';const I=0xc8,L=0xc8;function _0x20c3(){const _0x59e26b=['drawingType','_configService','filter','removeLinePoints','flipX','212442IlXkNc','COMMAND','getShapeTypeById','getShapeData','get','_getConnectPointInfo','UPDATE','3057090SWRZXr','3dVGcCs','from','getCellWithCoordByIndex','set','length','cxnIndex','setShapeData','lineShapeId','setShapeType','interceptCommand','shapeData','isLineShape','326342pCcrEg','ensureSkeleton','delete','_resourcesManagerService','sheet.mutation.update-shape-data','left','sheet.mutation.update-shape-type','pushUndoRedo','getShapeModel','undos','has','decorate','adjustValues','_shapes','fill','preRedos','function','getDrawingByParam','_drawingManagerService','rotation','sheet.command.set-shape-drawing-data','21086725EDQeKT','_addLineFollowShapeUpdates','registerPluginResource','2628968iLlTjf','result','1771728cZeLpR','onStarting','defineProperty','getBasicShapeRelation','borderEnabled','top','SHEET_SHAPE_PLUGIN','sheet.command.update-shape-type','_initCommands','12yqPwoF','_linesIds','assign','syncExecuteCommand','_groupIds','flipY','shapeId','string','sin','getShapeType','@univerjs-pro/sheets-shape','UNIVER_SHEET','getShapeRelation','clear','sheet.command.update-connector-relation','height','sheet.command.update-line-shape-resize','forEach','data','rotateEnabled','getDrawingData','onCommandExecute','isFrom','resizeEnabled','default','getCellIndexAndOffsetByPosition','_disposed','MUTATION','getSkeleton','disposeWithMe','sheet.mutation.insert-shape','_sheetsShapeService','getStartConnectInfo','_sheetSkeletonService','REMOVE','_commandService','getLineShapeRelation','redos','params','INSERT','find','pluginName','_sheetInterceptorService','ang','preUndos','_initCommandInterceptor','_injector','removeShape','toJSON','dispose','packageName','lineType','angle','sheet.command.set-shape-rotate','8LxudKx','_deserializeShapeForUnit','worldRect','2ggRwEG','getConnectionSiteList','DRAWING_SHAPE','startX','_ensureShapeModelManager','range','getBatchUpdateOp','addShape','getEndConnectInfo','type','toPrimitive','position','getAdjustValueByName','fromJSON','add','insertShape','isHorizontal','prototype','_addLineRerouteUpdates','symbol','getAdjustNames','5hpcMcw','_shapeModelManagerMap','push','5138757bbUSbw','relation','iterator','setConfig','object','startY','hasShape','constructor','width','transform','keys','_config','getShapeTextData','sheet.command.set-shape-text-vertical-toggle'];_0x20c3=function(){return _0x59e26b;};return _0x20c3();}function R(_0x88740d){'@babel/helpers - typeof';const _0x3734b3=_0x6126;return R=typeof Symbol==_0x3734b3(0x203)&&typeof Symbol[_0x3734b3(0x269)]==_0x3734b3(0x262)?function(_0x57e190){return typeof _0x57e190;}:function(_0x1f6fc8){const _0xe52e73=_0x3734b3;return _0x1f6fc8&&typeof Symbol==_0xe52e73(0x203)&&_0x1f6fc8[_0xe52e73(0x26e)]===Symbol&&_0x1f6fc8!==Symbol[_0xe52e73(0x260)]?_0xe52e73(0x262):typeof _0x1f6fc8;},R(_0x88740d);}function z(_0x5eee0e,_0x599c1a){const _0x999ee4=_0x6126;if(R(_0x5eee0e)!=_0x999ee4(0x26b)||!_0x5eee0e)return _0x5eee0e;var _0x2762e5=_0x5eee0e[Symbol[_0x999ee4(0x259)]];if(_0x2762e5!==void 0x0){var _0x26255e=_0x2762e5['call'](_0x5eee0e,_0x599c1a||_0x999ee4(0x22e));if(R(_0x26255e)!='object')return _0x26255e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x599c1a===_0x999ee4(0x21d)?String:Number)(_0x5eee0e);}function B(_0x59eab9){const _0x301ba2=_0x6126;var _0x1df4eb=z(_0x59eab9,_0x301ba2(0x21d));return R(_0x1df4eb)=='symbol'?_0x1df4eb:_0x1df4eb+'';}function V(_0x30c52f,_0x402147,_0x2887f6){const _0x3c4aaf=_0x6126;return(_0x402147=B(_0x402147))in _0x30c52f?Object[_0x3c4aaf(0x20f)](_0x30c52f,_0x402147,{'value':_0x2887f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30c52f[_0x402147]=_0x2887f6,_0x30c52f;}var H=class extends _0x4e5f9f{constructor(){const _0x34700f=_0x6126;super(),V(this,_0x34700f(0x200),new Map()),V(this,_0x34700f(0x217),new Set()),V(this,'_groupIds',new Set());}[_0x1a417c(0x256)](_0x1076ac,_0x136093,_0x443021){const _0x103611=_0x1a417c;let _0x1b0e48=new _0x35c2ea(_0x1076ac,_0x136093,_0x443021);return this[_0x103611(0x200)]['set'](_0x136093,_0x1b0e48),_0x33d47c(_0x1076ac)&&this[_0x103611(0x217)][_0x103611(0x25d)](_0x136093),_0x1b0e48;}[_0x1a417c(0x210)](_0x5af173){const _0x1971ed=_0x1a417c;let _0x4f0144=[];for(let _0x169008 of this[_0x1971ed(0x217)]){let _0x5103b9=this['_shapes'][_0x1971ed(0x1e3)](_0x169008);if(_0x5103b9){let _0x521976=_0x5103b9[_0x1971ed(0x222)]();if(_0x521976){var _0x1ff969,_0x30d652;((_0x1ff969=_0x521976[_0x1971ed(0x1e8)])==null?void 0x0:_0x1ff969[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976[_0x1971ed(0x1e8)],'lineShapeId':_0x169008,'isFrom':!0x0}),((_0x30d652=_0x521976['to'])==null?void 0x0:_0x30d652[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976['to'],'lineShapeId':_0x169008,'isFrom':!0x1});}}}return _0x4f0144;}[_0x1a417c(0x23a)](_0x1a0607){const _0x157313=_0x1a417c;let _0x1bda51=this[_0x157313(0x200)]['get'](_0x1a0607);if(_0x1bda51)return _0x1bda51[_0x157313(0x222)]();}[_0x1a417c(0x21f)](_0x2f30c3){const _0x17ba17=_0x1a417c;let _0x491e1f=this[_0x17ba17(0x200)]['get'](_0x2f30c3);if(_0x491e1f)return _0x491e1f[_0x17ba17(0x21f)]();}['hasShape'](_0x37bbd6){const _0x512c10=_0x1a417c;return this[_0x512c10(0x200)][_0x512c10(0x1fd)](_0x37bbd6);}[_0x1a417c(0x245)](_0x32c936){const _0x3841f5=_0x1a417c;let _0x34052c=this[_0x3841f5(0x200)]['get'](_0x32c936);_0x34052c&&(_0x33d47c(_0x34052c[_0x3841f5(0x21f)]())&&this[_0x3841f5(0x217)]['delete'](_0x32c936),this[_0x3841f5(0x200)][_0x3841f5(0x1f5)](_0x32c936));}['toJSON'](){const _0x20eb57=_0x1a417c;let _0x1d234d=[];return this['_shapes'][_0x20eb57(0x227)](_0x270762=>{_0x1d234d['push'](_0x270762['toJSON']());}),_0x1d234d;}[_0x1a417c(0x25c)](_0x31e6c6){const _0x55cae0=_0x1a417c;for(let _0x49fdd1 of _0x31e6c6){let {id:_0x3fe395,shapeType:_0x515ccf}=_0x49fdd1,_0x342c36=this[_0x55cae0(0x256)](_0x515ccf,_0x3fe395,_0x49fdd1[_0x55cae0(0x1f1)]);_0x342c36&&_0x342c36[_0x55cae0(0x1f2)]()&&this[_0x55cae0(0x217)][_0x55cae0(0x25d)](_0x3fe395);}}[_0x1a417c(0x247)](){const _0x22f7fd=_0x1a417c;this[_0x22f7fd(0x230)]||(this[_0x22f7fd(0x200)][_0x22f7fd(0x227)](_0x4f57aa=>{const _0xbc8bd0=_0x22f7fd;_0x4f57aa[_0xbc8bd0(0x247)]();}),this['_shapes']['clear'](),this['_linesIds'][_0x22f7fd(0x223)](),this[_0x22f7fd(0x21a)][_0x22f7fd(0x223)](),super[_0x22f7fd(0x247)]());}};function U(_0x22c5b4,_0x1325e1){return function(_0x2e5034,_0xf56a6a){_0x1325e1(_0x2e5034,_0xf56a6a,_0x22c5b4);};}function W(_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50){const _0x17c0db=_0x1a417c;var _0x3594ee=arguments[_0x17c0db(0x1eb)],_0x283dc0=_0x3594ee<0x3?_0x32c429:_0x3f9c50===null?_0x3f9c50=Object['getOwnPropertyDescriptor'](_0x32c429,_0x439ed9):_0x3f9c50,_0x4c65de;if(typeof Reflect==_0x17c0db(0x26b)&&typeof Reflect[_0x17c0db(0x1fe)]==_0x17c0db(0x203))_0x283dc0=Reflect[_0x17c0db(0x1fe)](_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50);else{for(var _0x492eee=_0xc6bf37[_0x17c0db(0x1eb)]-0x1;_0x492eee>=0x0;_0x492eee--)(_0x4c65de=_0xc6bf37[_0x492eee])&&(_0x283dc0=(_0x3594ee<0x3?_0x4c65de(_0x283dc0):_0x3594ee>0x3?_0x4c65de(_0x32c429,_0x439ed9,_0x283dc0):_0x4c65de(_0x32c429,_0x439ed9))||_0x283dc0);}return _0x3594ee>0x3&&_0x283dc0&&Object[_0x17c0db(0x20f)](_0x32c429,_0x439ed9,_0x283dc0),_0x283dc0;}let G=class extends _0x4e5f9f{constructor(_0x36bf1f){const _0x102ff2=_0x1a417c;super(),this['_resourcesManagerService']=_0x36bf1f,V(this,_0x102ff2(0x265),new Map()),this['_initSnapshot']();}[_0x1a417c(0x253)](_0x3b87dd,_0x2cd931){const _0x1f162a=_0x1a417c;let _0x38f176=this[_0x1f162a(0x265)][_0x1f162a(0x1e3)](_0x3b87dd);_0x38f176||(_0x38f176=new Map(),this[_0x1f162a(0x265)][_0x1f162a(0x1ea)](_0x3b87dd,_0x38f176));let _0x396231=_0x38f176[_0x1f162a(0x1e3)](_0x2cd931);return _0x396231||(_0x396231=new H(),_0x38f176['set'](_0x2cd931,_0x396231)),_0x396231;}['insertShape'](_0x5f31db,_0x4a69a0,_0x18d581,_0x1b7570,_0x34394a){const _0x5a93ce=_0x1a417c;this[_0x5a93ce(0x253)](_0x5f31db,_0x4a69a0)[_0x5a93ce(0x256)](_0x18d581,_0x1b7570,_0x34394a);}[_0x1a417c(0x245)](_0x1b660b,_0x2e6b8e,_0x2d2cc3){const _0x4b7c20=_0x1a417c;this['_ensureShapeModelManager'](_0x1b660b,_0x2e6b8e)[_0x4b7c20(0x245)](_0x2d2cc3);}['getBasicShapeType'](_0x307af0,_0x2e96c6,_0xa8e032){const _0x4b8075=_0x1a417c;return this[_0x4b8075(0x253)](_0x307af0,_0x2e96c6)[_0x4b8075(0x21f)](_0xa8e032);}[_0x1a417c(0x21f)](_0x4624df,_0x3976fe,_0x339567){const _0x1cd31e=_0x1a417c;return this[_0x1cd31e(0x253)](_0x4624df,_0x3976fe)['getShapeType'](_0x339567);}[_0x1a417c(0x26d)](_0x46196d,_0x54161b,_0x9a316){const _0x21f226=_0x1a417c;return this['_ensureShapeModelManager'](_0x46196d,_0x54161b)[_0x21f226(0x26d)](_0x9a316);}[_0x1a417c(0x1e1)](_0x349bb6,_0x10dd3c,_0x37a502){const _0x4b5772=_0x1a417c;return this['_ensureShapeModelManager'](_0x349bb6,_0x10dd3c)[_0x4b5772(0x21f)](_0x37a502);}['getShapeDataById'](_0x2e461f,_0x4af949,_0x34af3e){const _0x142a5e=_0x1a417c;let _0x2ca2b5=this[_0x142a5e(0x253)](_0x2e461f,_0x4af949);if(!_0x2ca2b5[_0x142a5e(0x21f)](_0x34af3e))return;let _0x2b65a3=_0x2ca2b5[_0x142a5e(0x200)]['get'](_0x34af3e);if(_0x2b65a3)return _0x2b65a3[_0x142a5e(0x1e2)]();}[_0x1a417c(0x1fb)](_0x2a0098,_0x5a7d89,_0x4b4d23){const _0x58eb2c=_0x1a417c;return this[_0x58eb2c(0x253)](_0x2a0098,_0x5a7d89)[_0x58eb2c(0x200)][_0x58eb2c(0x1e3)](_0x4b4d23);}[_0x1a417c(0x210)](_0x1714fd,_0x2e3659,_0x3d7a97){const _0x413f9c=_0x1a417c;return this[_0x413f9c(0x253)](_0x1714fd,_0x2e3659)[_0x413f9c(0x210)](_0x3d7a97);}[_0x1a417c(0x23a)](_0x3812e9,_0x58b3b7,_0x557e6f){const _0x58bdd8=_0x1a417c;let _0x10ef65=this[_0x58bdd8(0x253)](_0x3812e9,_0x58b3b7)['_shapes'][_0x58bdd8(0x1e3)](_0x557e6f);if(_0x10ef65)return _0x10ef65['getShapeRelation']();}[_0x1a417c(0x1ef)](){}['_serializeShapeForUnit'](_0x2a0afb){const _0x2e7ce9=_0x1a417c;let _0x5e4d69={},_0x471aee=this['_shapeModelManagerMap'][_0x2e7ce9(0x1e3)](_0x2a0afb);return _0x471aee&&_0x471aee['forEach']((_0xa44e1a,_0x3e7208)=>{const _0x4b91ab=_0x2e7ce9;let _0x397582=_0xa44e1a['toJSON']();_0x397582[_0x4b91ab(0x1eb)]>0x0&&(_0x5e4d69[_0x3e7208]=_0x397582);}),JSON['stringify'](_0x5e4d69);}[_0x1a417c(0x24d)](_0x3c6889,_0x120a42){const _0x464d68=_0x1a417c;Object[_0x464d68(0x271)](_0x120a42)['forEach'](_0x2a7e4c=>{const _0x31eae3=_0x464d68;this[_0x31eae3(0x253)](_0x3c6889,_0x2a7e4c)[_0x31eae3(0x25c)](_0x120a42[_0x2a7e4c]);});}[_0x1a417c(0x246)](){const _0x162a4f=_0x1a417c;let _0x46316d={};return this[_0x162a4f(0x265)][_0x162a4f(0x227)]((_0x680fe9,_0xf683d8)=>{const _0x58c4e5=_0x162a4f;_0x46316d[_0xf683d8]={},_0x680fe9[_0x58c4e5(0x227)]((_0x51c3fb,_0x2311e7)=>{const _0x5420f8=_0x58c4e5;_0x46316d[_0xf683d8][_0x2311e7]=_0x51c3fb[_0x5420f8(0x246)]();});}),_0x46316d;}[_0x1a417c(0x25c)](_0x263172){const _0x1f9c14=_0x1a417c;Object[_0x1f9c14(0x271)](_0x263172)['forEach'](_0x42fcbb=>{const _0x3bb30b=_0x1f9c14;let _0x48077c=_0x263172[_0x42fcbb];Object[_0x3bb30b(0x271)](_0x48077c)['forEach'](_0x14675e=>{const _0x16a2ac=_0x3bb30b;this['_ensureShapeModelManager'](_0x42fcbb,_0x14675e)[_0x16a2ac(0x25c)](_0x48077c[_0x14675e]);});});}['_initSnapshot'](){const _0x4c01be=_0x1a417c;this[_0x4c01be(0x1f6)][_0x4c01be(0x20a)]({'pluginName':_0x4c01be(0x213),'businesses':[_0x26716f[_0x4c01be(0x221)]],'toJson':_0x1876f0=>this['_serializeShapeForUnit'](_0x1876f0),'parseJson':_0x302c48=>JSON['parse'](_0x302c48),'onLoad':(_0x1dcd75,_0x343f5c)=>{const _0x5b4390=_0x4c01be;this[_0x5b4390(0x24d)](_0x1dcd75,_0x343f5c);},'onUnLoad':_0x56099f=>{const _0x2e3ddb=_0x4c01be;let _0x15b681=this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1e3)](_0x56099f);_0x15b681&&(_0x15b681[_0x2e3ddb(0x227)](_0xd40976=>{_0xd40976['dispose']();}),this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1f5)](_0x56099f));}});}[_0x1a417c(0x247)](){const _0x43ca59=_0x1a417c;this[_0x43ca59(0x265)][_0x43ca59(0x227)](_0x2b4128=>{const _0x543e1e=_0x43ca59;_0x2b4128[_0x543e1e(0x227)](_0x2b4c35=>{const _0x34dd98=_0x543e1e;_0x2b4c35[_0x34dd98(0x247)]();});});}};G=W([U(0x0,_0x5cf65e)],G);const K={'id':_0x1a417c(0x234),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x304eaf,_0x4c2700)=>{const _0xc298f7=_0x1a417c;let {unitId:_0xf68612,subUnitId:_0x1c654c,shapeType:_0x3f57a3,shapeId:_0xdd5791,shapeData:_0xdfdb0e}=_0x4c2700;return _0x304eaf['get'](G)[_0xc298f7(0x25e)](_0xf68612,_0x1c654c,_0x3f57a3,_0xdd5791,_0xdfdb0e),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xe11b2d,_0x54f305)=>{const _0x276549=_0x1a417c;let {unitId:_0x19d9e1,subUnitId:_0x2aeca6,shapeId:_0x245937}=_0x54f305;return _0xe11b2d[_0x276549(0x1e3)](G)['removeShape'](_0x19d9e1,_0x2aeca6,_0x245937),!0x0;}},J={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.insert-shape','handler':(_0x2ba2fc,_0x31f9ca)=>{const _0x4fa7b5=_0x1a417c;var _0x38314d,_0x47bae3;let _0xdb837a=_0x4e7fb4(_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x32f2cd),_0x31f9ca);if(!_0xdb837a)return!0x1;let _0x1e8385=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x55630f),{unitId:_0x80cbc6,subUnitId:_0x416819}=_0xdb837a,_0xfb05ce=_0x1e8385[_0x4fa7b5(0x1f4)](_0x80cbc6,_0x416819);if(!_0xfb05ce)return!0x1;let _0x54d16b=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x285fd2),_0x43f14f=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x2b286c),_0x27ddad=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x19401e),_0x216816=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x3339be),{shapeType:_0x5a1df7,shapeData:_0x30eb61}=_0x31f9ca,_0xa9a114=_0x31f9ca[_0x4fa7b5(0x21c)]||_0x26ccda(),_0x3b571e={'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114,'shapeType':_0x5a1df7,'shapeData':_0x30eb61},_0x17ac8d=_0x31f9ca['width']||0xc8,_0x102a2f=_0x31f9ca[_0x4fa7b5(0x225)]||0xc8,_0x41c408=0x0,_0x1a12fe=0x0,_0x12d03b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x5c6648={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x31f9ca[_0x4fa7b5(0x25a)]){let {x:_0xdbc707,y:_0x4d8dc8}=_0x31f9ca[_0x4fa7b5(0x25a)];_0x41c408=_0xdbc707,_0x1a12fe=_0x4d8dc8,_0x12d03b=_0xfb05ce[_0x4fa7b5(0x22f)](_0xdbc707,_0x4d8dc8),_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0xdbc707+_0x17ac8d,_0x4d8dc8+_0x102a2f);}else{if(_0x31f9ca[_0x4fa7b5(0x254)]){let {startRow:_0x1e8f11,startColumn:_0x3d5757}=_0x31f9ca[_0x4fa7b5(0x254)];_0x12d03b={'row':_0x1e8f11,'rowOffset':0xa,'column':_0x3d5757,'columnOffset':0xa};let _0xf5a39c=_0xfb05ce[_0x4fa7b5(0x1e9)](_0x1e8f11,_0x3d5757);_0x41c408=_0xf5a39c[_0x4fa7b5(0x252)]+0xa,_0x1a12fe=_0xf5a39c[_0x4fa7b5(0x26c)]+0xa,_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0x41c408+_0x17ac8d,_0x1a12fe+_0x102a2f);}}let _0xc32fa0={'from':_0x12d03b,'to':_0x5c6648},_0x3bc7cc={'unitId':_0x80cbc6,'subUnitId':_0x416819,'drawingId':_0xa9a114,'drawingType':_0x5d2b71[_0x4fa7b5(0x251)],'sheetTransform':_0xc32fa0,'transform':{'left':_0x41c408,'top':_0x1a12fe,'width':_0x17ac8d,'height':_0x102a2f},'data':{'shapeType':_0x5a1df7,'shapeData':_0x30eb61},'axisAlignSheetTransform':_0xc32fa0,'allowTransform':!0x0};_0x33d47c(_0x5a1df7)&&(_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x201)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x211)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x211)]=!0x1);let {undo:_0x1217fe,redo:_0x432c15,objects:_0x1ceee0}=_0x216816['getBatchAddOp']([_0x3bc7cc]),_0x5c6787=_0x27ddad[_0x4fa7b5(0x22b)]({'id':_0x1696e3['id'],'params':{'unitId':_0x80cbc6,'drawings':[_0x3bc7cc]}}),_0x301b18=[...(_0x38314d=_0x5c6787['preRedos'])==null?[]:_0x38314d,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x432c15,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x23d)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x23b)],{'id':K['id'],'params':_0x3b571e}],_0x1f2d66=[{'id':q['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114}},...(_0x47bae3=_0x5c6787[_0x4fa7b5(0x242)])==null?[]:_0x47bae3,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x1217fe,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x238)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x1fc)]];return _0x3ffddd(_0x301b18,_0x54d16b)['result']?(_0x43f14f[_0x4fa7b5(0x1fa)]({'unitID':_0x80cbc6,'undoMutations':_0x1f2d66,'redoMutations':_0x301b18}),!0x0):!0x1;}},Y={'id':_0x1a417c(0x1f7),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x44c20b,_0x572229)=>{const _0x262566=_0x1a417c;let {unitId:_0x3dec78,subUnitId:_0x3a37c0,shapeType:_0x551e6e,shapeId:_0x26b26c,shapeData:_0x56b75c}=_0x572229,_0x3073c0=_0x44c20b[_0x262566(0x1e3)](G)[_0x262566(0x1fb)](_0x3dec78,_0x3a37c0,_0x26b26c);return _0x3073c0&&(_0x551e6e!==void 0x0&&_0x3073c0[_0x262566(0x1ef)](_0x551e6e),_0x56b75c&&(_0x3073c0==null||_0x3073c0[_0x262566(0x1ed)](_0x56b75c,!0x0))),!0x0;}},ee={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x207),'handler':(_0x25f3e5,_0x4fa513)=>{const _0x121781=_0x1a417c;var _0x41e207,_0x5f0fc0;let _0x3b94d9=_0x4e7fb4(_0x25f3e5[_0x121781(0x1e3)](_0x32f2cd),_0x4fa513);if(!_0x3b94d9)return!0x1;let _0x794d89=_0x25f3e5[_0x121781(0x1e3)](_0x55630f),{unitId:_0x324c08,subUnitId:_0x35d162}=_0x3b94d9,_0x3a2ea4=_0x794d89[_0x121781(0x1f4)](_0x324c08,_0x35d162);if(!_0x3a2ea4)return!0x1;let _0xd45d0=_0x25f3e5['get'](G),{shapeId:_0x4f2886,shapeType:_0x29d377,shapeData:_0x5b7a5c,position:_0x19fad0,width:_0x35139f,height:_0x227ff0}=_0x4fa513,_0xf2720f=_0xd45d0[_0x121781(0x1fb)](_0x324c08,_0x35d162,_0x4f2886);if(!_0xf2720f)return!0x1;let _0x5301e7=_0x25f3e5[_0x121781(0x1e3)](_0x285fd2),_0x41f52c=_0x25f3e5['get'](_0x2b286c),_0xac465b=_0x25f3e5[_0x121781(0x1e3)](_0x19401e),_0x34fe8b=_0x25f3e5[_0x121781(0x1e3)](_0x3339be),_0x48217f={'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeId':_0x4f2886,'shapeType':_0x29d377,'shapeData':_0x5b7a5c},_0x11f98e=_0xf2720f[_0x121781(0x21f)](),_0xf19aa=_0xf2720f[_0x121781(0x1e2)](),{x:_0x34753f,y:_0x27c09c}=_0x19fad0,_0x4dc017={'from':_0x3a2ea4[_0x121781(0x22f)](_0x34753f,_0x27c09c),'to':_0x3a2ea4[_0x121781(0x22f)](_0x34753f+_0x35139f,_0x27c09c+_0x227ff0)},_0x25e3c3={'unitId':_0x324c08,'subUnitId':_0x35d162,'drawingId':_0x4f2886,'drawingType':_0x5d2b71[_0x121781(0x251)],'sheetTransform':_0x4dc017,'transform':{'left':_0x34753f,'top':_0x27c09c,'width':_0x35139f,'height':_0x227ff0},'data':{'shapeType':_0x29d377,'shapeData':_0x5b7a5c},'axisAlignSheetTransform':_0x4dc017,'allowTransform':!0x0};_0x33d47c(_0x29d377)&&(_0x25e3c3[_0x121781(0x228)]['fill']=!0x1,_0x25e3c3[_0x121781(0x228)]['rotateEnabled']=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x211)]=!0x1,_0x25e3c3[_0x121781(0x270)]['rotateEnabled']=!0x1,_0x25e3c3['transform'][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x270)][_0x121781(0x211)]=!0x1);let {undo:_0x3011f0,redo:_0x59842b,objects:_0x408aaa}=_0x34fe8b[_0x121781(0x255)]([_0x25e3c3]),_0x2acf25=_0xac465b[_0x121781(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x324c08,'drawings':[_0x25e3c3]}}),_0x52398b=[...(_0x41e207=_0x2acf25[_0x121781(0x202)])==null?[]:_0x41e207,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x59842b,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25[_0x121781(0x23b)],{'id':Y['id'],'params':_0x48217f}],_0x4d9df7=[...(_0x5f0fc0=_0x2acf25['preUndos'])==null?[]:_0x5f0fc0,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x3011f0,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25['undos'],{'id':Y['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeType':_0x11f98e,'shapeId':_0x4f2886,'shapeData':_0xf19aa}}];return _0x3ffddd(_0x52398b,_0x5301e7)[_0x121781(0x20c)]?(_0x41f52c[_0x121781(0x1fa)]({'unitID':_0x324c08,'undoMutations':_0x4d9df7,'redoMutations':_0x52398b}),!0x0):!0x1;}},te={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.toggle-shape-flip','handler':(_0x5cb20a,_0x611ab)=>{const _0x1b76c9=_0x1a417c;var _0x5a1eab,_0x2bfa82;let _0x57379f=_0x4e7fb4(_0x5cb20a[_0x1b76c9(0x1e3)](_0x32f2cd),_0x611ab);if(!_0x57379f)return!0x1;let _0x23b108=_0x5cb20a[_0x1b76c9(0x1e3)](_0x55630f),{unitId:_0x2829ff,subUnitId:_0x121a21}=_0x57379f,_0x18cefd=_0x23b108['getSkeleton'](_0x2829ff,_0x121a21);if(!_0x18cefd)return!0x1;let _0x494f66=_0x5cb20a[_0x1b76c9(0x1e3)](_0x3339be),{shapeId:_0x30ddf0,flipH:_0x476179,flipV:_0x92049a}=_0x611ab,_0x3e9126=_0x494f66[_0x1b76c9(0x204)]({'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0});if(!_0x3e9126)return!0x1;let _0x56d84e=_0x5cb20a[_0x1b76c9(0x1e3)](G)[_0x1b76c9(0x1fb)](_0x2829ff,_0x121a21,_0x30ddf0);if(!_0x56d84e)return!0x1;let _0x2ba86b=_0x5cb20a[_0x1b76c9(0x1e3)](_0x285fd2),_0x2ee72e=_0x5cb20a[_0x1b76c9(0x1e3)](_0x2b286c),_0x3088b4=_0x5cb20a[_0x1b76c9(0x1e3)](_0x19401e),_0x370a8f={..._0x3e9126['transform']};_0x476179!==void 0x0&&(_0x370a8f[_0x1b76c9(0x1de)]=!_0x370a8f['flipX']),_0x92049a!==void 0x0&&(_0x370a8f['flipY']=!_0x370a8f['flipY']);let _0x342bb7=_0x5aa0b0(_0x370a8f,_0x18cefd),_0x4bc0dc=_0x64f7c2(_0x370a8f,_0x18cefd),_0x189819=_0x56d84e['getShapeType'](),_0x29e43b=_0x56d84e[_0x1b76c9(0x1e2)](),_0x50d6e1={'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'sheetTransform':_0x342bb7,'transform':_0x370a8f,'data':{'shapeType':_0x189819,'shapeData':_0x29e43b},'axisAlignSheetTransform':_0x4bc0dc,'allowTransform':!0x0},{undo:_0x394073,redo:_0x527173,objects:_0x140f85}=_0x494f66[_0x1b76c9(0x255)]([_0x50d6e1]),_0x9e178d=_0x3088b4['onCommandExecute']({'id':_0x28e6ad['id'],'params':{'unitId':_0x2829ff,'drawings':[_0x50d6e1]}}),_0x2de0f5=[...(_0x5a1eab=_0x9e178d[_0x1b76c9(0x202)])==null?[]:_0x5a1eab,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x527173,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d[_0x1b76c9(0x23b)]],_0x8aedea=[...(_0x2bfa82=_0x9e178d[_0x1b76c9(0x242)])==null?[]:_0x2bfa82,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x394073,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d['undos']];if(_0x33d47c(_0x189819)){let _0x320e1e=_0x56d84e[_0x1b76c9(0x222)]();if(_0x320e1e){let _0x396653={..._0x320e1e};_0x396653[_0x1b76c9(0x1e8)]=void 0x0,_0x396653['to']=void 0x0,_0x2de0f5[_0x1b76c9(0x266)]({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x396653}}}),_0x8aedea['push']({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x320e1e}}});}}return _0x3ffddd(_0x2de0f5,_0x2ba86b)['result']?(_0x2ee72e[_0x1b76c9(0x1fa)]({'unitID':_0x2829ff,'undoMutations':_0x8aedea,'redoMutations':_0x2de0f5}),!0x0):!0x1;}},X={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x24b),'handler':(_0x28644a,_0x5a2a2d)=>{const _0x554f10=_0x1a417c;var _0x41bd3c,_0x46762e;let _0x49133e=_0x4e7fb4(_0x28644a['get'](_0x32f2cd),_0x5a2a2d);if(!_0x49133e)return!0x1;let _0x2bb625=_0x28644a[_0x554f10(0x1e3)](_0x55630f),{unitId:_0x553e95,subUnitId:_0x154d85}=_0x49133e,_0xb79bcd=_0x2bb625['getSkeleton'](_0x553e95,_0x154d85);if(!_0xb79bcd)return!0x1;let _0x6b443c=_0x28644a[_0x554f10(0x1e3)](_0x3339be),{shapeId:_0x44af2e,rotate:_0x57c366}=_0x5a2a2d,_0x5f3865=_0x6b443c['getDrawingByParam']({'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e});if(!_0x5f3865)return!0x1;let _0x32f9a8=_0x28644a['get'](G)[_0x554f10(0x1fb)](_0x553e95,_0x154d85,_0x44af2e);if(!_0x32f9a8)return!0x1;let _0x30237b=_0x28644a[_0x554f10(0x1e3)](_0x285fd2),_0x1349e2=_0x28644a[_0x554f10(0x1e3)](_0x2b286c),_0x8ad80d=_0x28644a['get'](_0x19401e),_0x8580c5={..._0x5f3865['transform']};_0x57c366!==void 0x0&&(_0x8580c5[_0x554f10(0x24a)]=(_0x8580c5[_0x554f10(0x24a)]||0x0)+_0x57c366);let _0x3bfefe=_0x5aa0b0(_0x8580c5,_0xb79bcd),_0x2c5ac3=_0x64f7c2(_0x8580c5,_0xb79bcd),_0x3557bc=_0x32f9a8[_0x554f10(0x21f)](),_0x8d4750=_0x32f9a8[_0x554f10(0x1e2)](),_0x3f1806={'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e,'drawingType':_0x5d2b71[_0x554f10(0x251)],'sheetTransform':_0x3bfefe,'transform':_0x8580c5,'data':{'shapeType':_0x3557bc,'shapeData':_0x8d4750},'axisAlignSheetTransform':_0x2c5ac3,'allowTransform':!0x0},{undo:_0x4827ae,redo:_0x428c23,objects:_0x3e06be}=_0x6b443c[_0x554f10(0x255)]([_0x3f1806]),_0x5d762a=_0x8ad80d[_0x554f10(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x553e95,'drawings':[_0x3f1806]}}),_0x20a710=[...(_0x41bd3c=_0x5d762a[_0x554f10(0x202)])==null?[]:_0x41bd3c,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x428c23,'objects':_0x3e06be,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x23b)]],_0x5263df=[...(_0x46762e=_0x5d762a[_0x554f10(0x242)])==null?[]:_0x46762e,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x4827ae,'objects':_0x3e06be,'type':_0x5af201[_0x554f10(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x1fc)]];return _0x3ffddd(_0x20a710,_0x30237b)[_0x554f10(0x20c)]?(_0x1349e2[_0x554f10(0x1fa)]({'unitID':_0x553e95,'undoMutations':_0x5263df,'redoMutations':_0x20a710}),!0x0):!0x1;}},Z={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x274),'handler':(_0x40c3b1,_0xb7750b)=>{const _0x10f733=_0x1a417c;var _0x5667b1;let _0x223af0=_0x4e7fb4(_0x40c3b1['get'](_0x32f2cd),_0xb7750b);if(!_0x223af0)return!0x1;let {unitId:_0xbd1495,subUnitId:_0xde5fed}=_0x223af0,{shapeId:_0x18ddee}=_0xb7750b,_0x17393a=_0x40c3b1[_0x10f733(0x1e3)](G)[_0x10f733(0x1fb)](_0xbd1495,_0xde5fed,_0x18ddee);if(!_0x17393a)return!0x1;let _0x41fd74=_0x17393a[_0x10f733(0x273)](),_0x40723b=(_0x5667b1=_0x41fd74==null?void 0x0:_0x41fd74[_0x10f733(0x25f)])==null?!0x0:_0x5667b1,_0x50ccf9=!_0x40723b,_0x7015d6=_0x40c3b1[_0x10f733(0x1e3)](_0x285fd2),_0x53e6a4=_0x40c3b1['get'](_0x2b286c),_0x9a582a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x50ccf9}}},_0x582c5a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x40723b}}},_0x188c92=[{'id':Y['id'],'params':_0x9a582a}],_0x363d82=[{'id':Y['id'],'params':_0x582c5a}];return _0x3ffddd(_0x188c92,_0x7015d6)[_0x10f733(0x20c)]?(_0x53e6a4[_0x10f733(0x1fa)]({'unitID':_0xbd1495,'undoMutations':_0x363d82,'redoMutations':_0x188c92}),!0x0):!0x1;}},ne={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x224),'handler':(_0x281ccc,_0xd70ecf)=>{const _0x44fbb2=_0x1a417c;var _0x5b8c1a,_0x1f4e13,_0xd2ebcb,_0x43f8ad;let _0x259fcb=_0x4e7fb4(_0x281ccc['get'](_0x32f2cd),_0xd70ecf);if(!_0x259fcb)return!0x1;let _0x2e4351=_0x281ccc[_0x44fbb2(0x1e3)](_0x55630f),{unitId:_0x42b3da,subUnitId:_0x3f7cfe}=_0x259fcb,_0x346cad=_0x2e4351[_0x44fbb2(0x232)](_0x42b3da,_0x3f7cfe);if(!_0x346cad)return!0x1;let _0x153fdb=_0x281ccc['get'](_0x3339be),{connectorShapeId:_0x56f11a,width:_0x1c7fc0,height:_0x3084a0,left:_0x381635,top:_0x45ce36,flipX:_0x2d124a,flipY:_0x5119c8,rotation:_0x486b46,oldAdjustValues:_0x4a0fec,newAdjustValues:_0x305717,oldLineType:_0x348e6d,newLineType:_0x2717e4,oldRelation:_0x29efcf,newRelation:_0x559353}=_0xd70ecf,_0x530582=_0x153fdb[_0x44fbb2(0x204)]({'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a});if(!_0x530582)return!0x1;let _0x2c30e1=_0x281ccc['get'](G)[_0x44fbb2(0x1fb)](_0x42b3da,_0x3f7cfe,_0x56f11a);if(!_0x2c30e1)return!0x1;let _0x4fcafd=_0x281ccc['get'](_0x285fd2),_0x2e121d=_0x281ccc[_0x44fbb2(0x1e3)](_0x2b286c),_0x3c03cd=_0x281ccc[_0x44fbb2(0x1e3)](_0x19401e),_0x1cc722={..._0x530582[_0x44fbb2(0x270)],'width':_0x1c7fc0,'height':_0x3084a0,'left':_0x381635,'top':_0x45ce36,'flipX':_0x2d124a,'flipY':_0x5119c8,'angle':(_0x5b8c1a=_0x486b46==null?(_0x1f4e13=_0x530582['transform'])==null?void 0x0:_0x1f4e13['angle']:_0x486b46)==null?0x0:_0x5b8c1a},_0x55ba4f=_0x5aa0b0(_0x1cc722,_0x346cad),_0x438902=_0x64f7c2(_0x1cc722,_0x346cad),_0x554184=_0x2c30e1[_0x44fbb2(0x21f)](),_0x320562=_0x2c30e1['getShapeData'](),_0x1b8d70={'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a,'drawingType':_0x5d2b71[_0x44fbb2(0x251)],'sheetTransform':_0x55ba4f,'transform':_0x1cc722,'data':{'shapeType':_0x2717e4||_0x348e6d||_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x305717||_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x559353||_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}},'axisAlignSheetTransform':_0x438902,'allowTransform':!0x0},{undo:_0x2a033f,redo:_0x4eac24,objects:_0x15ac96}=_0x153fdb[_0x44fbb2(0x255)]([_0x1b8d70]),_0x17c644=_0x3c03cd[_0x44fbb2(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x42b3da,'drawings':[_0x1b8d70]}}),_0x400615=[...(_0xd2ebcb=_0x17c644[_0x44fbb2(0x202)])==null?[]:_0xd2ebcb,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x4eac24,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x23b)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x2717e4,'shapeData':{'adjustValues':_0x305717,'relation':_0x559353}}}],_0x23d56b=[...(_0x43f8ad=_0x17c644[_0x44fbb2(0x242)])==null?[]:_0x43f8ad,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x2a033f,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}}}];return _0x3ffddd(_0x400615,_0x4fcafd)[_0x44fbb2(0x20c)]?(_0x2e121d[_0x44fbb2(0x1fa)]({'unitID':_0x42b3da,'undoMutations':_0x23d56b,'redoMutations':_0x400615}),!0x0):!0x1;}},re={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x226),'handler':(_0x179eb9,_0x1d20e0)=>{const _0x1f46fc=_0x1a417c;var _0x444b38,_0x945df8;let _0x3bee41=_0x4e7fb4(_0x179eb9['get'](_0x32f2cd),_0x1d20e0);if(!_0x3bee41)return!0x1;let _0xaed240=_0x179eb9[_0x1f46fc(0x1e3)](_0x55630f),{unitId:_0x1c7458,subUnitId:_0xaf6b67}=_0x3bee41,_0x2a3353=_0xaed240[_0x1f46fc(0x232)](_0x1c7458,_0xaf6b67);if(!_0x2a3353)return!0x1;let _0x6a74d5=_0x179eb9['get'](_0x3339be),{shapeId:_0x13bf73,width:_0x551ddb,height:_0x3ba555,left:_0x58f644,top:_0x49181e,flipX:_0x3c0877,flipY:_0x5ec63f,angle:_0x9615b1,oldAdjustValues:_0x8787ef,newAdjustValues:_0x4b7309,oldLineType:_0x5f3707,newLineType:_0x56df5c}=_0x1d20e0,_0x46c9a0=_0x6a74d5[_0x1f46fc(0x204)]({'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73});if(!_0x46c9a0)return!0x1;let _0x39a1cb=_0x179eb9[_0x1f46fc(0x1e3)](G)[_0x1f46fc(0x1fb)](_0x1c7458,_0xaf6b67,_0x13bf73);if(!_0x39a1cb)return!0x1;let _0x5ea497=_0x179eb9[_0x1f46fc(0x1e3)](_0x285fd2),_0x53c996=_0x179eb9[_0x1f46fc(0x1e3)](_0x2b286c),_0x5a968e=_0x179eb9[_0x1f46fc(0x1e3)](_0x19401e),_0x32624f={..._0x46c9a0[_0x1f46fc(0x270)],'width':_0x551ddb,'height':_0x3ba555,'left':_0x58f644,'top':_0x49181e,'flipX':_0x3c0877,'flipY':_0x5ec63f,'angle':_0x9615b1},_0x422cd1=_0x5aa0b0(_0x32624f,_0x2a3353),_0x13dd7b=_0x64f7c2(_0x32624f,_0x2a3353),_0x4153a9=_0x39a1cb[_0x1f46fc(0x21f)](),_0x2b1504=_0x39a1cb['getShapeData'](),_0x451fcd={'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73,'drawingType':_0x5d2b71[_0x1f46fc(0x251)],'sheetTransform':_0x422cd1,'transform':_0x32624f,'data':{'shapeType':_0x56df5c||_0x5f3707||_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x4b7309||_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}},'axisAlignSheetTransform':_0x13dd7b,'allowTransform':!0x0},{undo:_0x3992a0,redo:_0x1afe83,objects:_0xad2196}=_0x6a74d5['getBatchUpdateOp']([_0x451fcd]),_0x321aa6=_0x5a968e[_0x1f46fc(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x1c7458,'drawings':[_0x451fcd]}}),_0x5d1f59=[...(_0x444b38=_0x321aa6[_0x1f46fc(0x202)])==null?[]:_0x444b38,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x1afe83,'objects':_0xad2196,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x23b)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x56df5c,'shapeData':{'adjustValues':_0x4b7309}}}],_0x48a918=[...(_0x945df8=_0x321aa6[_0x1f46fc(0x242)])==null?[]:_0x945df8,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x3992a0,'objects':_0xad2196,'type':_0x5af201[_0x1f46fc(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}}}];return _0x3ffddd(_0x5d1f59,_0x5ea497)[_0x1f46fc(0x20c)]?(_0x53c996[_0x1f46fc(0x1fa)]({'unitID':_0x1c7458,'undoMutations':_0x48a918,'redoMutations':_0x5d1f59}),!0x0):!0x1;}},Q={'id':_0x1a417c(0x1f9),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xcf97ef,_0x336992)=>{const _0x3de8e9=_0x1a417c;let {unitId:_0x2e014e,subUnitId:_0x2047fc,shapeType:_0x5149d3,shapeId:_0x4f91b8,shapeData:_0x4382d0}=_0x336992,_0x94378e=_0xcf97ef[_0x3de8e9(0x1e3)](G)['getShapeModel'](_0x2e014e,_0x2047fc,_0x4f91b8);return _0x94378e&&(_0x94378e[_0x3de8e9(0x1ef)](_0x5149d3),_0x4382d0&&(_0x94378e==null||_0x94378e[_0x3de8e9(0x1ed)](_0x4382d0))),!0x0;}},ie={'id':_0x1a417c(0x214),'type':_0x5229c7['COMMAND'],'handler':(_0x15121c,_0x440aa2)=>{const _0x2ef0d8=_0x1a417c;if(!_0x440aa2)return!0x1;let _0x5395c7=_0x15121c[_0x2ef0d8(0x1e3)](_0x285fd2),_0x385cd9=_0x15121c[_0x2ef0d8(0x1e3)](G),_0x401623=_0x15121c['get'](_0x2b286c),_0x402505=[],_0x5c9294=[],{unitId:_0xa4dddb,subUnitId:_0x1f93cc,shapeId:_0x30b388,shapeType:_0x3653e2,shapeData:_0x47f8bb}=_0x440aa2,_0x1d6c8a=_0x385cd9['getShapeModel'](_0xa4dddb,_0x1f93cc,_0x30b388);if(_0x1d6c8a){let _0x4f6366=_0x1d6c8a[_0x2ef0d8(0x21f)](),_0x200651=Object[_0x2ef0d8(0x218)]({},_0x1d6c8a['getShapeData']()),_0x1781a4={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x3653e2,'shapeData':_0x47f8bb},_0x15188c={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x4f6366,'shapeData':_0x200651};return _0x402505[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x1781a4}),_0x5c9294[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x15188c}),_0x402505['every'](_0x1c5831=>_0x5395c7[_0x2ef0d8(0x219)](_0x1c5831['id'],_0x1c5831[_0x2ef0d8(0x23c)]))&&_0x401623[_0x2ef0d8(0x1fa)]({'unitID':_0xa4dddb,'redoMutations':[..._0x402505],'undoMutations':[..._0x5c9294]}),!0x0;}return!0x1;}};var ae=_0x1a417c(0x220),oe='0.25.0';const se={};function _0x6126(_0x250eaf,_0x4f7ded){_0x250eaf=_0x250eaf-0x1dd;const _0x20c38f=_0x20c3();let _0x61267a=_0x20c38f[_0x250eaf];return _0x61267a;}let ce=class extends _0x4e5f9f{constructor(_0x1c34d1,_0x16fd8b,_0x5757bc,_0x2c171d,_0x354eb){const _0x5a3f8e=_0x1a417c;super(),this['_commandService']=_0x1c34d1,this['_sheetInterceptorService']=_0x16fd8b,this[_0x5a3f8e(0x237)]=_0x5757bc,this[_0x5a3f8e(0x235)]=_0x2c171d,this[_0x5a3f8e(0x205)]=_0x354eb,this[_0x5a3f8e(0x215)](),this[_0x5a3f8e(0x243)]();}[_0x1a417c(0x215)](){const _0x2a8e82=_0x1a417c;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x4291e2=>this[_0x2a8e82(0x233)](this[_0x2a8e82(0x239)]['registerCommand'](_0x4291e2)));}[_0x1a417c(0x243)](){const _0x336936=_0x1a417c;this[_0x336936(0x233)](this[_0x336936(0x240)][_0x336936(0x1f0)]({'getMutations':_0x2629dd=>{const _0x447a8b=_0x336936;if(_0x2629dd['id']===_0x56569e['id']){let {drawings:_0x324b1f}=_0x2629dd[_0x447a8b(0x23c)],_0x1ec6c5=_0x324b1f[_0x447a8b(0x277)](_0x933da2=>_0x933da2[_0x447a8b(0x275)]===_0x5d2b71['DRAWING_SHAPE']);if(_0x1ec6c5['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x210ed2=[],_0x4b4a80=[];return _0x1ec6c5[_0x447a8b(0x227)](_0xb4676c=>{const _0x3f368f=_0x447a8b;let {unitId:_0x4c5234,subUnitId:_0xf2de3b,drawingId:_0x5cc650}=_0xb4676c,_0x233796=this[_0x3f368f(0x235)][_0x3f368f(0x1fb)](_0x4c5234,_0xf2de3b,_0x5cc650);if(!_0x233796)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x233796);_0x210ed2['push']({'id':q['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650}}),_0x4b4a80[_0x3f368f(0x266)]({'id':K['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650,'shapeType':_0x233796[_0x3f368f(0x21f)](),'shapeData':_0x233796[_0x3f368f(0x1e2)]()}});let _0x49b2ef=this[_0x3f368f(0x235)]['getBasicShapeRelation'](_0x4c5234,_0xf2de3b,_0x5cc650);if(_0x49b2ef)for(let _0x1e7608 of _0x49b2ef){let _0x1627cc=_0x1e7608['lineShapeId'],_0x2c574d=_0x1e7608[_0x3f368f(0x22c)],_0x43e7b5=_0x2c574d?{'from':void 0x0}:{'to':void 0x0},_0x9d1fbd=_0x2c574d?{'from':{'shapeId':_0x1e7608[_0x3f368f(0x21c)],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}}:{'to':{'shapeId':_0x1e7608['shapeId'],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}};_0x210ed2[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x43e7b5}}}),_0x4b4a80[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x9d1fbd}}});}}),{'preRedos':_0x210ed2,'redos':[],'preUndos':[],'undos':_0x4b4a80};}if(_0x2629dd['id']===_0x28e6ad['id']){let {drawings:_0x3448a1}=_0x2629dd[_0x447a8b(0x23c)],_0x320eaa=_0x3448a1[_0x447a8b(0x277)](_0x1ca393=>_0x1ca393[_0x447a8b(0x275)]===_0x5d2b71[_0x447a8b(0x251)]);if(_0x320eaa[_0x447a8b(0x1eb)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x192802=[],_0x226f08=[];for(let _0x5c84ab of _0x320eaa){let {unitId:_0x3c697f,subUnitId:_0x72bc90,drawingId:_0x242779,transform:_0x42bbac}=_0x5c84ab;if(!_0x3c697f||!_0x72bc90||!_0x242779||!_0x42bbac)continue;let _0xab2293=this[_0x447a8b(0x235)]['getShapeModel'](_0x3c697f,_0x72bc90,_0x242779);if(!_0xab2293)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0xab2293);if(_0x33d47c(_0xab2293[_0x447a8b(0x21f)]())){let _0x17e2f7=this[_0x447a8b(0x235)]['getLineShapeRelation'](_0x3c697f,_0x72bc90,_0x242779);_0x17e2f7&&(_0x192802[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x226f08[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':_0x17e2f7}}}));}else{let _0x5b2092=this[_0x447a8b(0x235)][_0x447a8b(0x210)](_0x3c697f,_0x72bc90,_0x242779);if(_0x5b2092&&_0x5b2092[_0x447a8b(0x1eb)]>0x0)for(let _0x5b579b of _0x5b2092){let _0x36a511=_0x5b579b[_0x447a8b(0x1ee)],_0x20bf07=_0x5b579b['isFrom'],_0x254a8b=this['_sheetsShapeService'][_0x447a8b(0x1fb)](_0x3c697f,_0x72bc90,_0x36a511);if(!_0x254a8b)continue;let _0x51d917=_0x254a8b[_0x447a8b(0x236)](),_0x1250ab=_0x254a8b['getEndConnectInfo']();_0x51d917&&_0x1250ab?this['_addLineRerouteUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x51d917,_0x1250ab,_0x192802,_0x226f08,_0x242779,_0x42bbac):this['_addLineFollowShapeUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x20bf07?_0x51d917:_0x1250ab,_0x20bf07,_0x192802,_0x226f08,_0x242779,_0x42bbac);}}}return{'preRedos':[],'redos':_0x192802,'preUndos':_0x226f08,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1a417c(0x1e4)](_0x456d00,_0x2d5650,_0xc7cab,_0x10f6bd,_0x4bb40b){const _0x46459e=_0x1a417c;if(!_0x2d5650||!_0xc7cab)return null;let {shapeId:_0x31faf7,cxnIndex:_0x2bbe61}=_0x456d00,_0x319ddd=this[_0x46459e(0x235)]['getShapeModel'](_0x2d5650,_0xc7cab,_0x31faf7);if(!_0x319ddd)return null;let _0x3df61f=this['_drawingManagerService'][_0x46459e(0x204)]({'unitId':_0x2d5650,'subUnitId':_0xc7cab,'drawingId':_0x31faf7});if(!(_0x3df61f!=null&&_0x3df61f[_0x46459e(0x270)]))return null;let {left:_0x1af3c2=0x0,top:_0x3f3b12=0x0,width:_0x45fa6f=0x0,height:_0x124df6=0x0,flipX:_0x1a364c=!0x1,flipY:_0x28c5cd=!0x1,angle:_0x5b5c27}=_0x3df61f[_0x46459e(0x270)];if(_0x4bb40b&&_0x10f6bd===_0x31faf7){var _0x3e3a70,_0x55da7b,_0x165853,_0x2094e2,_0x4c3618,_0x39a84e,_0x5e9360;_0x1af3c2=(_0x3e3a70=_0x4bb40b[_0x46459e(0x1f8)])==null?_0x1af3c2:_0x3e3a70,_0x3f3b12=(_0x55da7b=_0x4bb40b[_0x46459e(0x212)])==null?_0x3f3b12:_0x55da7b,_0x45fa6f=(_0x165853=_0x4bb40b[_0x46459e(0x26f)])==null?_0x45fa6f:_0x165853,_0x124df6=(_0x2094e2=_0x4bb40b[_0x46459e(0x225)])==null?_0x124df6:_0x2094e2,_0x1a364c=(_0x4c3618=_0x4bb40b[_0x46459e(0x1de)])==null?_0x1a364c:_0x4c3618,_0x28c5cd=(_0x39a84e=_0x4bb40b[_0x46459e(0x21b)])==null?_0x28c5cd:_0x39a84e,_0x5b5c27=(_0x5e9360=_0x4bb40b['angle'])==null?_0x5b5c27:_0x5e9360;}_0x319ddd['updateContext']({'width':_0x45fa6f,'height':_0x124df6});let _0x249d85=_0x319ddd[_0x46459e(0x250)]()[_0x46459e(0x23e)](_0x413488=>_0x413488['index']===_0x2bbe61);if(!_0x249d85)return null;let _0x379d0c=_0x1a364c?_0x45fa6f-_0x249d85['x']:_0x249d85['x'],_0x2df45c=_0x28c5cd?_0x124df6-_0x249d85['y']:_0x249d85['y'];if(_0x5b5c27!==0x0&&_0x5b5c27!=null){let _0x1a3923=_0x5b5c27*Math['PI']/0xb4,_0x365ab2=Math['cos'](_0x1a3923),_0x295438=Math[_0x46459e(0x21e)](_0x1a3923),_0x3c17fa=_0x45fa6f/0x2,_0xbcf8f7=_0x124df6/0x2,_0x18ba76=_0x379d0c-_0x3c17fa,_0xa09374=_0x2df45c-_0xbcf8f7;_0x379d0c=_0x3c17fa+_0x18ba76*_0x365ab2-_0xa09374*_0x295438,_0x2df45c=_0xbcf8f7+_0x18ba76*_0x295438+_0xa09374*_0x365ab2;}_0x379d0c+=_0x1af3c2,_0x2df45c+=_0x3f3b12;let _0x2d9db4=_0x249d85[_0x46459e(0x241)]/0xea60;_0x1a364c&&(_0x2d9db4=0xb4-_0x2d9db4),_0x28c5cd&&(_0x2d9db4=-_0x2d9db4),_0x2d9db4+=_0x5b5c27||0x0,_0x2d9db4=(_0x2d9db4%0x168+0x168)%0x168;let _0x2ec983=_0x4dd2cd({'left':_0x1af3c2,'top':_0x3f3b12,'width':_0x45fa6f,'height':_0x124df6},_0x5b5c27||0x0);return{'point':{'x':_0x379d0c,'y':_0x2df45c},'angle':_0x2d9db4,'bounds':_0x2ec983};}[_0x1a417c(0x261)](_0x123318,_0x28c24f,_0x49d29e,_0x210dfa,_0x2c7f2f,_0x26fcb1,_0x382c04,_0x6a903f,_0x4f4597,_0x15da44){const _0x285b99=_0x1a417c;let _0x2b93f7=this[_0x285b99(0x237)][_0x285b99(0x232)](_0x123318,_0x28c24f);if(!_0x2b93f7)return;let _0x411791=_0x210dfa[_0x285b99(0x222)](),_0x8a3cd2=_0x210dfa[_0x285b99(0x263)](),_0x5d989e={},_0x11cff3={};_0x8a3cd2[_0x285b99(0x227)](_0x2fa32d=>{const _0x2fb358=_0x285b99;let _0x5880f4=_0x210dfa[_0x2fb358(0x25b)](_0x2fa32d);_0x11cff3[_0x2fa32d]=_0x5880f4==null?0x0:_0x5880f4;});let _0x3d6205=this[_0x285b99(0x1e4)](_0x2c7f2f,_0x123318,_0x28c24f,_0x4f4597,_0x15da44),_0x1f003e=this['_getConnectPointInfo'](_0x26fcb1,_0x123318,_0x28c24f,_0x4f4597,_0x15da44);if(_0x3d6205&&_0x1f003e){let _0x425945=_0x210dfa[_0x285b99(0x21f)](),_0x4bba85=_0x29d7a4(_0x3d6205,_0x1f003e,_0x425945),_0x11e967=_0x425945;if(_0x4bba85){let _0x55711f=_0x4d5188(_0x4bba85,_0x210dfa[_0x285b99(0x21f)]()),_0x5cd76a=this['_drawingManagerService'][_0x285b99(0x22a)](_0x123318,_0x28c24f);if(_0x5cd76a&&_0x5cd76a[_0x49d29e]){let _0x16e584=_0x5cd76a[_0x49d29e];_0x11e967=_0x55711f[_0x285b99(0x249)];for(let [_0xac3bcd,_0x2009aa]of Object['entries'](_0x55711f[_0x285b99(0x1ff)]))_0x5d989e[_0xac3bcd]=_0x2009aa;let _0x10f768={..._0x16e584['transform'],'width':_0x55711f[_0x285b99(0x24e)]['width'],'height':_0x55711f[_0x285b99(0x24e)]['height'],'left':_0x55711f['worldRect']['left'],'top':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x212)],'flipX':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x1de)],'flipY':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x21b)],'angle':_0x55711f[_0x285b99(0x206)]},_0x11ce2e=_0x5aa0b0(_0x10f768,_0x2b93f7),_0x4e7fc0=_0x64f7c2(_0x10f768,_0x2b93f7),_0x2a0437={'unitId':_0x123318,'subUnitId':_0x28c24f,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'drawingId':_0x49d29e,'transform':_0x10f768,'sheetTransform':_0x11ce2e,'axisAlignSheetTransform':_0x4e7fc0},{unitId:_0x4f61de,subUnitId:_0x28af05,undo:_0x4cc391,redo:_0xa26139,objects:_0x24621c}=this[_0x285b99(0x205)]['getBatchUpdateOp']([_0x2a0437]);_0x382c04[_0x285b99(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0xa26139,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}}),_0x6a903f['push']({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0x4cc391,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}});}_0x210dfa[_0x285b99(0x1dd)]();}_0x382c04[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x11e967,'shapeData':{'adjustValues':_0x5d989e,'relation':_0x411791}}}),_0x6a903f[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x425945,'shapeData':{'adjustValues':_0x11cff3,'relation':_0x411791}}});}}[_0x1a417c(0x209)](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x2ac881,_0x4c28f2,_0x2d17e8,_0x37747e,_0x244542,_0x40e793){const _0x3958b9=_0x1a417c;var _0x308f88;if(!_0x2ac881)return;let _0x59daa0=this[_0x3958b9(0x237)]['getSkeleton'](_0x46efac,_0x57f5da);if(!_0x59daa0)return;let _0x22b10a=(_0x308f88=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingId':_0x244542}))==null?void 0x0:_0x308f88[_0x3958b9(0x270)];if(!_0x22b10a)return;let _0x21d4e0=_0x22b10a['left']!==_0x40e793[_0x3958b9(0x1f8)]||_0x22b10a[_0x3958b9(0x212)]!==_0x40e793[_0x3958b9(0x212)],_0x22247b=_0x22b10a['width']!==_0x40e793[_0x3958b9(0x26f)]||_0x22b10a['height']!==_0x40e793[_0x3958b9(0x225)],_0x4af8c4=_0x22b10a['flipX']!==_0x40e793[_0x3958b9(0x1de)]||_0x22b10a[_0x3958b9(0x21b)]!==_0x40e793[_0x3958b9(0x21b)],_0xabf556=_0x22b10a[_0x3958b9(0x24a)]!==_0x40e793['angle'];if(_0x21d4e0&&!_0x22247b&&!_0x4af8c4&&!_0xabf556){var _0x417a2e,_0x40085e,_0x4dfa1d,_0x1d2677;let _0xc64819=((_0x417a2e=_0x40e793[_0x3958b9(0x1f8)])==null?0x0:_0x417a2e)-((_0x40085e=_0x22b10a['left'])==null?0x0:_0x40085e),_0x3a3cb6=((_0x4dfa1d=_0x40e793['top'])==null?0x0:_0x4dfa1d)-((_0x1d2677=_0x22b10a['top'])==null?0x0:_0x1d2677),_0x4e4f36=this[_0x3958b9(0x205)][_0x3958b9(0x22a)](_0x46efac,_0x57f5da);if(_0x4e4f36&&_0x4e4f36[_0x3b5998]){var _0x17bf1b,_0x46b0f4,_0x547609,_0x30d34e;let _0x27192a=_0x4e4f36[_0x3b5998],_0x18ed8a={..._0x27192a[_0x3958b9(0x270)],'left':((_0x17bf1b=(_0x46b0f4=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x46b0f4[_0x3958b9(0x1f8)])==null?0x0:_0x17bf1b)+_0xc64819,'top':((_0x547609=(_0x30d34e=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x30d34e[_0x3958b9(0x212)])==null?0x0:_0x547609)+_0x3a3cb6},_0x22913f=_0x5aa0b0(_0x18ed8a,_0x59daa0),_0xe4493d=_0x64f7c2(_0x18ed8a,_0x59daa0),_0x5df928={'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingType':_0x5d2b71[_0x3958b9(0x251)],'drawingId':_0x3b5998,'transform':_0x18ed8a,'sheetTransform':_0x22913f,'axisAlignSheetTransform':_0xe4493d},{unitId:_0x18fba4,subUnitId:_0x1ad7b6,undo:_0x1f0300,redo:_0x52345d,objects:_0x1c91c7}=this[_0x3958b9(0x205)][_0x3958b9(0x255)]([_0x5df928]);_0x2d17e8[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x52345d,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}}),_0x37747e[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x1f0300,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}});}}else{let _0x392a41=_0x388b5d['getStartConnectInfo'](),_0x301a17=_0x388b5d[_0x3958b9(0x257)]();this['_addLineRerouteUpdates'](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x392a41,_0x301a17,_0x2d17e8,_0x37747e,_0x244542,_0x40e793);}}};ce=W([U(0x0,_0x285fd2),U(0x1,_0xca6a11(_0x19401e)),U(0x2,_0xca6a11(_0x55630f)),U(0x3,_0xca6a11(G)),U(0x4,_0xca6a11(_0x525c29))],ce);let $=class extends _0x2582f4{constructor(_0x14e772=se,_0x3d9d93,_0x5de1fc,_0xe65d15){const _0x508a9d=_0x1a417c;super(),this[_0x508a9d(0x272)]=_0x14e772,this[_0x508a9d(0x244)]=_0x3d9d93,this[_0x508a9d(0x239)]=_0x5de1fc,this[_0x508a9d(0x276)]=_0xe65d15;let {..._0x1fa749}=_0x3c605c({},se,this['_config']);this['_configService'][_0x508a9d(0x26a)]('sheets-shape.config',_0x1fa749);}[_0x1a417c(0x20e)](){const _0xd1d204=_0x1a417c;let _0x334b64=this[_0xd1d204(0x244)];[[H],[G],[ce]]['forEach'](_0xa41ef5=>_0x334b64[_0xd1d204(0x25d)](_0xa41ef5)),_0x5c294e(_0x334b64,[[G],[ce]]);}};V($,_0x1a417c(0x258),_0x26716f[_0x1a417c(0x221)]),V($,_0x1a417c(0x23f),_0x1a417c(0x213)),V($,_0x1a417c(0x248),ae),V($,'version',oe),$=W([_0x4c451e(_0x3785ee),U(0x1,_0xca6a11(_0x4e72d8)),U(0x2,_0x285fd2),U(0x3,_0x3c3bf5)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
1
+ const _0x1ff262=_0x2f7a;(function(_0x434bda,_0x128bbc){const _0x945b80=_0x2f7a,_0x167fef=_0x434bda();while(!![]){try{const _0x54cdbb=-parseInt(_0x945b80(0x18c))/0x1+-parseInt(_0x945b80(0x157))/0x2+-parseInt(_0x945b80(0x135))/0x3+parseInt(_0x945b80(0x143))/0x4*(parseInt(_0x945b80(0x163))/0x5)+-parseInt(_0x945b80(0x134))/0x6*(parseInt(_0x945b80(0x128))/0x7)+parseInt(_0x945b80(0x18e))/0x8+-parseInt(_0x945b80(0x183))/0x9*(-parseInt(_0x945b80(0x1b3))/0xa);if(_0x54cdbb===_0x128bbc)break;else _0x167fef['push'](_0x167fef['shift']());}catch(_0x46b457){_0x167fef['push'](_0x167fef['shift']());}}}(_0x1c55,0x85dc8));import{ShapeModel as _0x10e020,computeConnectorRouteLayout as _0x1adc9d,getBasicShapeRotateBound as _0x1f4faa,isConnectorShape as _0x1f3e71,routeConnectorLineShape as _0x5a3de9}from'@univerjs-pro/engine-shape';import{CommandType as _0x2c633d,DependentOn as _0x13d69f,Disposable as _0xa3f2a6,DrawingTypeEnum as _0x288fdc,ICommandService as _0x388fc8,IConfigService as _0x7b487e,IResourceManagerService as _0x52dffc,IUndoRedoService as _0x10fe4b,IUniverInstanceService as _0x5db55d,Inject as _0x2530fb,Injector as _0x2f815e,Plugin as _0x23871c,UniverInstanceType as _0x4f30e9,generateRandomId as _0x54de0f,merge as _0xab60b4,sequenceExecute as _0x343173,touchDependencies as _0x1d0968}from'@univerjs/core';import{SheetInterceptorService as _0x3d8139,SheetSkeletonService as _0x23ace4,getSheetCommandTarget as _0x3f54c4}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x42fba7,DrawingApplyType as _0x48390c,ISheetDrawingService as _0x400d26,InsertSheetDrawingCommand as _0x37d3fe,RemoveSheetDrawingCommand as _0x3596f8,SetDrawingApplyMutation as _0x4839e2,SetSheetDrawingCommand as _0x374047,transformToAxisAlignPosition as _0x241ebb,transformToDrawingPosition as _0x2d3afd}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x19cd3c}from'@univerjs-pro/license';import{IDrawingManagerService as _0x11e38f}from'@univerjs/drawing';const I=0xc8,L=0xc8;function _0x2f7a(_0x218299,_0x24416a){_0x218299=_0x218299-0x127;const _0x1c5533=_0x1c55();let _0x2f7aa3=_0x1c5533[_0x218299];return _0x2f7aa3;}function R(_0x3d68cb){'@babel/helpers - typeof';const _0x3ab0d7=_0x2f7a;return R=typeof Symbol==_0x3ab0d7(0x1aa)&&typeof Symbol[_0x3ab0d7(0x132)]==_0x3ab0d7(0x177)?function(_0x6c34cc){return typeof _0x6c34cc;}:function(_0x369691){const _0x3999d6=_0x3ab0d7;return _0x369691&&typeof Symbol==_0x3999d6(0x1aa)&&_0x369691['constructor']===Symbol&&_0x369691!==Symbol[_0x3999d6(0x1bd)]?_0x3999d6(0x177):typeof _0x369691;},R(_0x3d68cb);}function z(_0x1c9291,_0x1cfcb3){const _0x2a1dfe=_0x2f7a;if(R(_0x1c9291)!=_0x2a1dfe(0x16b)||!_0x1c9291)return _0x1c9291;var _0x347340=_0x1c9291[Symbol[_0x2a1dfe(0x196)]];if(_0x347340!==void 0x0){var _0x29851d=_0x347340['call'](_0x1c9291,_0x1cfcb3||_0x2a1dfe(0x13a));if(R(_0x29851d)!=_0x2a1dfe(0x16b))return _0x29851d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1cfcb3==='string'?String:Number)(_0x1c9291);}function B(_0x1c77eb){const _0x5d94f8=_0x2f7a;var _0x10d5e0=z(_0x1c77eb,'string');return R(_0x10d5e0)==_0x5d94f8(0x177)?_0x10d5e0:_0x10d5e0+'';}function V(_0x11eef5,_0x16731d,_0x9f62b){return(_0x16731d=B(_0x16731d))in _0x11eef5?Object['defineProperty'](_0x11eef5,_0x16731d,{'value':_0x9f62b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11eef5[_0x16731d]=_0x9f62b,_0x11eef5;}var H=class extends _0xa3f2a6{constructor(){const _0x5b6100=_0x2f7a;super(),V(this,_0x5b6100(0x1be),new Map()),V(this,_0x5b6100(0x156),new Set()),V(this,_0x5b6100(0x142),new Set());}['addShape'](_0x23e146,_0x104c50,_0x2740a0){const _0x1d8d35=_0x2f7a;let _0x284ef2=new _0x10e020(_0x23e146,_0x104c50,_0x2740a0);return this[_0x1d8d35(0x1be)][_0x1d8d35(0x1b1)](_0x104c50,_0x284ef2),_0x1f3e71(_0x23e146)&&this['_linesIds'][_0x1d8d35(0x166)](_0x104c50),_0x284ef2;}[_0x1ff262(0x167)](_0x37c22a){const _0x18efe9=_0x1ff262;let _0x14d326=[];for(let _0x37e1f2 of this[_0x18efe9(0x156)]){let _0x32ca3d=this[_0x18efe9(0x1be)][_0x18efe9(0x1a9)](_0x37e1f2);if(_0x32ca3d){let _0x18fb1d=_0x32ca3d['getShapeRelation']();if(_0x18fb1d){var _0x18c8a4,_0x5d6de5;((_0x18c8a4=_0x18fb1d['from'])==null?void 0x0:_0x18c8a4['shapeId'])===_0x37c22a&&_0x14d326[_0x18efe9(0x14c)]({..._0x18fb1d[_0x18efe9(0x158)],'lineShapeId':_0x37e1f2,'isFrom':!0x0}),((_0x5d6de5=_0x18fb1d['to'])==null?void 0x0:_0x5d6de5[_0x18efe9(0x1a5)])===_0x37c22a&&_0x14d326[_0x18efe9(0x14c)]({..._0x18fb1d['to'],'lineShapeId':_0x37e1f2,'isFrom':!0x1});}}}return _0x14d326;}['getLineShapeRelation'](_0x3b80e0){const _0x231285=_0x1ff262;let _0x5b3b9c=this[_0x231285(0x1be)][_0x231285(0x1a9)](_0x3b80e0);if(_0x5b3b9c)return _0x5b3b9c[_0x231285(0x175)]();}[_0x1ff262(0x17c)](_0x46742c){const _0x1e0f6d=_0x1ff262;let _0x5b3c9f=this[_0x1e0f6d(0x1be)][_0x1e0f6d(0x1a9)](_0x46742c);if(_0x5b3c9f)return _0x5b3c9f[_0x1e0f6d(0x17c)]();}[_0x1ff262(0x1ba)](_0x3077b9){const _0x465946=_0x1ff262;return this['_shapes'][_0x465946(0x152)](_0x3077b9);}[_0x1ff262(0x15c)](_0x521dd0){const _0x310fb0=_0x1ff262;let _0x9f2c10=this[_0x310fb0(0x1be)]['get'](_0x521dd0);_0x9f2c10&&(_0x1f3e71(_0x9f2c10[_0x310fb0(0x17c)]())&&this['_linesIds'][_0x310fb0(0x18f)](_0x521dd0),this[_0x310fb0(0x1be)][_0x310fb0(0x18f)](_0x521dd0));}[_0x1ff262(0x178)](){const _0x3c43ea=_0x1ff262;let _0x38278e=[];return this[_0x3c43ea(0x1be)][_0x3c43ea(0x19b)](_0x266e91=>{const _0x5e18bf=_0x3c43ea;_0x38278e['push'](_0x266e91[_0x5e18bf(0x178)]());}),_0x38278e;}['fromJSON'](_0x259c42){const _0x3704bb=_0x1ff262;for(let _0x5beb65 of _0x259c42){let {id:_0x186d60,shapeType:_0x27612f}=_0x5beb65,_0x24470e=this[_0x3704bb(0x140)](_0x27612f,_0x186d60,_0x5beb65['shapeData']);_0x24470e&&_0x24470e[_0x3704bb(0x185)]()&&this[_0x3704bb(0x156)]['add'](_0x186d60);}}[_0x1ff262(0x19a)](){const _0x5e84db=_0x1ff262;this[_0x5e84db(0x14e)]||(this[_0x5e84db(0x1be)][_0x5e84db(0x19b)](_0x1b3231=>{_0x1b3231['dispose']();}),this[_0x5e84db(0x1be)][_0x5e84db(0x18b)](),this['_linesIds'][_0x5e84db(0x18b)](),this[_0x5e84db(0x142)][_0x5e84db(0x18b)](),super[_0x5e84db(0x19a)]());}};function U(_0x228ba1,_0xdef334){return function(_0xa5dd49,_0x55b876){_0xdef334(_0xa5dd49,_0x55b876,_0x228ba1);};}function W(_0x96f6ae,_0xd279db,_0x5aa7d,_0x3a9bd6){const _0x3ca654=_0x1ff262;var _0x29cc32=arguments['length'],_0x185112=_0x29cc32<0x3?_0xd279db:_0x3a9bd6===null?_0x3a9bd6=Object[_0x3ca654(0x19e)](_0xd279db,_0x5aa7d):_0x3a9bd6,_0x417d6f;if(typeof Reflect==_0x3ca654(0x16b)&&typeof Reflect['decorate']==_0x3ca654(0x1aa))_0x185112=Reflect['decorate'](_0x96f6ae,_0xd279db,_0x5aa7d,_0x3a9bd6);else{for(var _0x27a9d5=_0x96f6ae[_0x3ca654(0x181)]-0x1;_0x27a9d5>=0x0;_0x27a9d5--)(_0x417d6f=_0x96f6ae[_0x27a9d5])&&(_0x185112=(_0x29cc32<0x3?_0x417d6f(_0x185112):_0x29cc32>0x3?_0x417d6f(_0xd279db,_0x5aa7d,_0x185112):_0x417d6f(_0xd279db,_0x5aa7d))||_0x185112);}return _0x29cc32>0x3&&_0x185112&&Object[_0x3ca654(0x17d)](_0xd279db,_0x5aa7d,_0x185112),_0x185112;}let G=class extends _0xa3f2a6{constructor(_0x8039ce){const _0x357258=_0x1ff262;super(),this[_0x357258(0x161)]=_0x8039ce,V(this,'_shapeModelManagerMap',new Map()),this[_0x357258(0x186)]();}['_ensureShapeModelManager'](_0x14aad4,_0x22c037){const _0x56ab91=_0x1ff262;let _0x1ca3a6=this[_0x56ab91(0x1ab)]['get'](_0x14aad4);_0x1ca3a6||(_0x1ca3a6=new Map(),this['_shapeModelManagerMap']['set'](_0x14aad4,_0x1ca3a6));let _0x39cc88=_0x1ca3a6[_0x56ab91(0x1a9)](_0x22c037);return _0x39cc88||(_0x39cc88=new H(),_0x1ca3a6[_0x56ab91(0x1b1)](_0x22c037,_0x39cc88)),_0x39cc88;}[_0x1ff262(0x12f)](_0x168767,_0x429db2,_0x21dd5f,_0x521c90,_0x52547e){const _0x2466ce=_0x1ff262;this[_0x2466ce(0x1b0)](_0x168767,_0x429db2)[_0x2466ce(0x140)](_0x21dd5f,_0x521c90,_0x52547e);}[_0x1ff262(0x15c)](_0x46e87d,_0x44f647,_0x47ea46){const _0x126f95=_0x1ff262;this[_0x126f95(0x1b0)](_0x46e87d,_0x44f647)['removeShape'](_0x47ea46);}[_0x1ff262(0x168)](_0x821a11,_0xffc9fc,_0x4da96e){const _0x2e10a3=_0x1ff262;return this[_0x2e10a3(0x1b0)](_0x821a11,_0xffc9fc)[_0x2e10a3(0x17c)](_0x4da96e);}[_0x1ff262(0x17c)](_0x545671,_0x4c6ed8,_0x220003){const _0x38e96e=_0x1ff262;return this[_0x38e96e(0x1b0)](_0x545671,_0x4c6ed8)[_0x38e96e(0x17c)](_0x220003);}[_0x1ff262(0x1ba)](_0x5926cb,_0x5bd539,_0x765b41){const _0x5d6d60=_0x1ff262;return this[_0x5d6d60(0x1b0)](_0x5926cb,_0x5bd539)['hasShape'](_0x765b41);}['getShapeTypeById'](_0x3e1ae0,_0x35c445,_0x103c64){const _0x2d631c=_0x1ff262;return this[_0x2d631c(0x1b0)](_0x3e1ae0,_0x35c445)[_0x2d631c(0x17c)](_0x103c64);}[_0x1ff262(0x179)](_0x48eb00,_0x32fe80,_0x4c129e){const _0x37d3ed=_0x1ff262;let _0x26bf4d=this['_ensureShapeModelManager'](_0x48eb00,_0x32fe80);if(!_0x26bf4d[_0x37d3ed(0x17c)](_0x4c129e))return;let _0x3e883e=_0x26bf4d[_0x37d3ed(0x1be)][_0x37d3ed(0x1a9)](_0x4c129e);if(_0x3e883e)return _0x3e883e[_0x37d3ed(0x184)]();}[_0x1ff262(0x1c0)](_0x34d2c1,_0x324462,_0x25c215){const _0x4381f=_0x1ff262;return this[_0x4381f(0x1b0)](_0x34d2c1,_0x324462)[_0x4381f(0x1be)][_0x4381f(0x1a9)](_0x25c215);}[_0x1ff262(0x167)](_0x546b04,_0x38b47d,_0x2da365){const _0x4a01ac=_0x1ff262;return this['_ensureShapeModelManager'](_0x546b04,_0x38b47d)[_0x4a01ac(0x167)](_0x2da365);}[_0x1ff262(0x172)](_0x18ee91,_0xba5999,_0x1c6b8a){const _0x15a208=_0x1ff262;let _0x413f42=this[_0x15a208(0x1b0)](_0x18ee91,_0xba5999)['_shapes'][_0x15a208(0x1a9)](_0x1c6b8a);if(_0x413f42)return _0x413f42[_0x15a208(0x175)]();}[_0x1ff262(0x1b4)](){}[_0x1ff262(0x1bc)](_0x1e5057){const _0x3068a9=_0x1ff262;let _0x2149c2={},_0x315e00=this[_0x3068a9(0x1ab)]['get'](_0x1e5057);return _0x315e00&&_0x315e00['forEach']((_0x1e9523,_0x15b13d)=>{let _0x2ad5b5=_0x1e9523['toJSON']();_0x2ad5b5['length']>0x0&&(_0x2149c2[_0x15b13d]=_0x2ad5b5);}),JSON[_0x3068a9(0x1bb)](_0x2149c2);}[_0x1ff262(0x151)](_0x3cf70c,_0x267665){const _0x196a5c=_0x1ff262;Object[_0x196a5c(0x16c)](_0x267665)[_0x196a5c(0x19b)](_0x159c62=>{const _0x496033=_0x196a5c;this[_0x496033(0x1b0)](_0x3cf70c,_0x159c62)[_0x496033(0x14a)](_0x267665[_0x159c62]);});}[_0x1ff262(0x178)](){const _0x2eb3f1=_0x1ff262;let _0x28b3c8={};return this[_0x2eb3f1(0x1ab)][_0x2eb3f1(0x19b)]((_0x416a9c,_0x5ba671)=>{const _0x4ac5ef=_0x2eb3f1;_0x28b3c8[_0x5ba671]={},_0x416a9c[_0x4ac5ef(0x19b)]((_0x60425f,_0x4c8191)=>{_0x28b3c8[_0x5ba671][_0x4c8191]=_0x60425f['toJSON']();});}),_0x28b3c8;}[_0x1ff262(0x14a)](_0xc4808c){const _0x3c4e72=_0x1ff262;Object[_0x3c4e72(0x16c)](_0xc4808c)['forEach'](_0x41d487=>{const _0x3bf021=_0x3c4e72;let _0x1cf91a=_0xc4808c[_0x41d487];Object['keys'](_0x1cf91a)[_0x3bf021(0x19b)](_0x4608f9=>{const _0x415332=_0x3bf021;this[_0x415332(0x1b0)](_0x41d487,_0x4608f9)[_0x415332(0x14a)](_0x1cf91a[_0x4608f9]);});});}['_initSnapshot'](){const _0x5ebd40=_0x1ff262;this[_0x5ebd40(0x161)][_0x5ebd40(0x129)]({'pluginName':_0x5ebd40(0x19c),'businesses':[_0x4f30e9['UNIVER_SHEET']],'toJson':_0x59905f=>this[_0x5ebd40(0x1bc)](_0x59905f),'parseJson':_0x1be21a=>JSON[_0x5ebd40(0x154)](_0x1be21a),'onLoad':(_0x180a4e,_0x946837)=>{const _0x2abde1=_0x5ebd40;this[_0x2abde1(0x151)](_0x180a4e,_0x946837);},'onUnLoad':_0x2bed32=>{const _0x577641=_0x5ebd40;let _0x573af5=this[_0x577641(0x1ab)][_0x577641(0x1a9)](_0x2bed32);_0x573af5&&(_0x573af5[_0x577641(0x19b)](_0x411a43=>{const _0x5a5d1e=_0x577641;_0x411a43[_0x5a5d1e(0x19a)]();}),this[_0x577641(0x1ab)][_0x577641(0x18f)](_0x2bed32));}});}['dispose'](){const _0x3cd44d=_0x1ff262;this['_shapeModelManagerMap'][_0x3cd44d(0x19b)](_0x53825c=>{const _0x3b052d=_0x3cd44d;_0x53825c[_0x3b052d(0x19b)](_0x3ea921=>{const _0x2844ff=_0x3b052d;_0x3ea921[_0x2844ff(0x19a)]();});});}};G=W([U(0x0,_0x52dffc)],G);const K={'id':_0x1ff262(0x15a),'type':_0x2c633d['MUTATION'],'handler':(_0x4f9f6e,_0x2818ce)=>{const _0x5ae4ca=_0x1ff262;let {unitId:_0x1a8480,subUnitId:_0x9e629c,shapeType:_0x3d26bc,shapeId:_0x14b967,shapeData:_0x5725a0}=_0x2818ce;return _0x4f9f6e[_0x5ae4ca(0x1a9)](G)[_0x5ae4ca(0x12f)](_0x1a8480,_0x9e629c,_0x3d26bc,_0x14b967,_0x5725a0),!0x0;}},q={'id':_0x1ff262(0x160),'type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x26cf4d,_0x76c8)=>{const _0x428f20=_0x1ff262;let {unitId:_0x4b2687,subUnitId:_0x248336,shapeId:_0x272b50}=_0x76c8;return _0x26cf4d[_0x428f20(0x1a9)](G)['removeShape'](_0x4b2687,_0x248336,_0x272b50),!0x0;}},J={'type':_0x2c633d['COMMAND'],'id':_0x1ff262(0x138),'handler':(_0x2ecbd0,_0x4666ef)=>{const _0x48b4b9=_0x1ff262;var _0x70067f,_0x1ddbf2;let _0x4cf803=_0x3f54c4(_0x2ecbd0['get'](_0x5db55d),_0x4666ef);if(!_0x4cf803)return!0x1;let _0x5a6390=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x23ace4),{unitId:_0x182848,subUnitId:_0x2b713b}=_0x4cf803,_0x29bffd=_0x5a6390[_0x48b4b9(0x17a)](_0x182848,_0x2b713b);if(!_0x29bffd)return!0x1;let _0x417e9a=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x388fc8),_0x3c6133=_0x2ecbd0['get'](_0x10fe4b),_0x46bba9=_0x2ecbd0[_0x48b4b9(0x1a9)](_0x3d8139),_0x136a15=_0x2ecbd0['get'](_0x400d26),{shapeType:_0x3c8d78,shapeData:_0x10ef1a}=_0x4666ef,_0x1aeacc=_0x4666ef[_0x48b4b9(0x1a5)]||_0x54de0f(),_0x5e9b7a={'unitId':_0x182848,'subUnitId':_0x2b713b,'shapeId':_0x1aeacc,'shapeType':_0x3c8d78,'shapeData':_0x10ef1a},_0x44a3e8=_0x4666ef[_0x48b4b9(0x1b8)]||0xc8,_0xa485=_0x4666ef['height']||0xc8,_0x5ec82b=0x0,_0x289439=0x0,_0x549aca={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x4fed08={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x4666ef[_0x48b4b9(0x1a0)]){let {x:_0xc3f091,y:_0x4146a6}=_0x4666ef['position'];_0x5ec82b=_0xc3f091,_0x289439=_0x4146a6,_0x549aca=_0x29bffd[_0x48b4b9(0x14d)](_0xc3f091,_0x4146a6),_0x4fed08=_0x29bffd[_0x48b4b9(0x14d)](_0xc3f091+_0x44a3e8,_0x4146a6+_0xa485);}else{if(_0x4666ef['range']){let {startRow:_0xedfcdd,startColumn:_0x276757}=_0x4666ef['range'];_0x549aca={'row':_0xedfcdd,'rowOffset':0xa,'column':_0x276757,'columnOffset':0xa};let _0x1a7063=_0x29bffd[_0x48b4b9(0x15e)](_0xedfcdd,_0x276757);_0x5ec82b=_0x1a7063[_0x48b4b9(0x17e)]+0xa,_0x289439=_0x1a7063[_0x48b4b9(0x192)]+0xa,_0x4fed08=_0x29bffd[_0x48b4b9(0x14d)](_0x5ec82b+_0x44a3e8,_0x289439+_0xa485);}}let _0x3aa830={'from':_0x549aca,'to':_0x4fed08},_0x1495bb={'unitId':_0x182848,'subUnitId':_0x2b713b,'drawingId':_0x1aeacc,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x3aa830,'transform':{'left':_0x5ec82b,'top':_0x289439,'width':_0x44a3e8,'height':_0xa485},'data':{'shapeType':_0x3c8d78,'shapeData':_0x10ef1a},'axisAlignSheetTransform':_0x3aa830,'allowTransform':!0x0};_0x1f3e71(_0x3c8d78)&&(_0x1495bb[_0x48b4b9(0x15f)]['fill']=!0x1,_0x1495bb[_0x48b4b9(0x15f)]['rotateEnabled']=!0x1,_0x1495bb[_0x48b4b9(0x15f)][_0x48b4b9(0x190)]=!0x1,_0x1495bb[_0x48b4b9(0x15f)][_0x48b4b9(0x17f)]=!0x1,_0x1495bb['transform'][_0x48b4b9(0x1ad)]=!0x1,_0x1495bb[_0x48b4b9(0x195)][_0x48b4b9(0x190)]=!0x1,_0x1495bb['transform'][_0x48b4b9(0x17f)]=!0x1);let {undo:_0x4e9d66,redo:_0x5cfa5d,objects:_0x2ae82b}=_0x136a15[_0x48b4b9(0x18d)]([_0x1495bb]),_0x178a68=_0x46bba9['onCommandExecute']({'id':_0x37d3fe['id'],'params':{'unitId':_0x182848,'drawings':[_0x1495bb]}}),_0x25d549=[...(_0x70067f=_0x178a68[_0x48b4b9(0x16f)])==null?[]:_0x70067f,{'id':_0x4839e2['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'op':_0x5cfa5d,'objects':_0x2ae82b,'type':_0x48390c[_0x48b4b9(0x1c1)]}},{'id':_0x42fba7['id'],'params':[_0x182848]},..._0x178a68[_0x48b4b9(0x1a1)],{'id':K['id'],'params':_0x5e9b7a}],_0x49da88=[{'id':q['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'shapeId':_0x1aeacc}},...(_0x1ddbf2=_0x178a68[_0x48b4b9(0x12c)])==null?[]:_0x1ddbf2,{'id':_0x4839e2['id'],'params':{'unitId':_0x182848,'subUnitId':_0x2b713b,'op':_0x4e9d66,'objects':_0x2ae82b,'type':_0x48390c[_0x48b4b9(0x150)]}},{'id':_0x42fba7['id'],'params':[_0x182848]},..._0x178a68[_0x48b4b9(0x144)]];return _0x343173(_0x25d549,_0x417e9a)['result']?(_0x3c6133[_0x48b4b9(0x13f)]({'unitID':_0x182848,'undoMutations':_0x49da88,'redoMutations':_0x25d549}),!0x0):!0x1;}},Y={'id':'sheet.mutation.update-shape-data','type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x4c26f3,_0x2fc0ca)=>{const _0x7b4584=_0x1ff262;let {unitId:_0x16e48d,subUnitId:_0x2bf1d9,shapeType:_0x5f1225,shapeId:_0x4658d0,shapeData:_0x4af52a}=_0x2fc0ca,_0x4af541=_0x4c26f3[_0x7b4584(0x1a9)](G)[_0x7b4584(0x1c0)](_0x16e48d,_0x2bf1d9,_0x4658d0);return _0x4af541&&(_0x5f1225!==void 0x0&&_0x4af541['setShapeType'](_0x5f1225),_0x4af52a&&(_0x4af541==null||_0x4af541[_0x7b4584(0x13b)](_0x4af52a,!0x0))),!0x0;}},ee={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x12d),'handler':(_0x520306,_0x4d012e)=>{const _0xc37b3f=_0x1ff262;var _0x38de94,_0x473e7e;let _0x27aadd=_0x3f54c4(_0x520306[_0xc37b3f(0x1a9)](_0x5db55d),_0x4d012e);if(!_0x27aadd)return!0x1;let _0x4f96e1=_0x520306[_0xc37b3f(0x1a9)](_0x23ace4),{unitId:_0x1ec063,subUnitId:_0x5a85bc}=_0x27aadd,_0x285901=_0x4f96e1[_0xc37b3f(0x17a)](_0x1ec063,_0x5a85bc);if(!_0x285901)return!0x1;let _0x4ca262=_0x520306[_0xc37b3f(0x1a9)](G),{shapeId:_0x53ca10,shapeType:_0x360afd,shapeData:_0x57a1ae,position:_0x321415,width:_0x15bfaf,height:_0x56980e}=_0x4d012e,_0x3f9967=_0x4ca262['getShapeModel'](_0x1ec063,_0x5a85bc,_0x53ca10);if(!_0x3f9967)return!0x1;let _0x431044=_0x520306[_0xc37b3f(0x1a9)](_0x388fc8),_0x2f5c7b=_0x520306[_0xc37b3f(0x1a9)](_0x10fe4b),_0x620cee=_0x520306[_0xc37b3f(0x1a9)](_0x3d8139),_0x2e1940=_0x520306['get'](_0x400d26),_0xd33f58={'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'shapeId':_0x53ca10,'shapeType':_0x360afd,'shapeData':_0x57a1ae},_0x2d907b=_0x3f9967['getShapeType'](),_0x126fa2=_0x3f9967['getShapeData'](),{x:_0x17303c,y:_0x475153}=_0x321415,_0xf893f3={'from':_0x285901['getCellIndexAndOffsetByPosition'](_0x17303c,_0x475153),'to':_0x285901[_0xc37b3f(0x14d)](_0x17303c+_0x15bfaf,_0x475153+_0x56980e)},_0x4e1fae={'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'drawingId':_0x53ca10,'drawingType':_0x288fdc[_0xc37b3f(0x15b)],'sheetTransform':_0xf893f3,'transform':{'left':_0x17303c,'top':_0x475153,'width':_0x15bfaf,'height':_0x56980e},'data':{'shapeType':_0x360afd,'shapeData':_0x57a1ae},'axisAlignSheetTransform':_0xf893f3,'allowTransform':!0x0};_0x1f3e71(_0x360afd)&&(_0x4e1fae[_0xc37b3f(0x15f)][_0xc37b3f(0x141)]=!0x1,_0x4e1fae['data']['rotateEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x15f)][_0xc37b3f(0x190)]=!0x1,_0x4e1fae[_0xc37b3f(0x15f)]['borderEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x195)][_0xc37b3f(0x1ad)]=!0x1,_0x4e1fae[_0xc37b3f(0x195)]['resizeEnabled']=!0x1,_0x4e1fae[_0xc37b3f(0x195)][_0xc37b3f(0x17f)]=!0x1);let {undo:_0x17babd,redo:_0x2f3774,objects:_0x57540c}=_0x2e1940[_0xc37b3f(0x12e)]([_0x4e1fae]),_0x21f8ed=_0x620cee[_0xc37b3f(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x1ec063,'drawings':[_0x4e1fae]}}),_0x5ea5af=[...(_0x38de94=_0x21f8ed[_0xc37b3f(0x16f)])==null?[]:_0x38de94,{'id':_0x4839e2['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'op':_0x2f3774,'objects':_0x57540c,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x1ec063]},..._0x21f8ed[_0xc37b3f(0x1a1)],{'id':Y['id'],'params':_0xd33f58}],_0x15d1eb=[...(_0x473e7e=_0x21f8ed[_0xc37b3f(0x12c)])==null?[]:_0x473e7e,{'id':_0x4839e2['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'op':_0x17babd,'objects':_0x57540c,'type':_0x48390c[_0xc37b3f(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x1ec063]},..._0x21f8ed[_0xc37b3f(0x144)],{'id':Y['id'],'params':{'unitId':_0x1ec063,'subUnitId':_0x5a85bc,'shapeType':_0x2d907b,'shapeId':_0x53ca10,'shapeData':_0x126fa2}}];return _0x343173(_0x5ea5af,_0x431044)[_0xc37b3f(0x194)]?(_0x2f5c7b[_0xc37b3f(0x13f)]({'unitID':_0x1ec063,'undoMutations':_0x15d1eb,'redoMutations':_0x5ea5af}),!0x0):!0x1;}},te={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x12b),'handler':(_0x2f382a,_0x434dfb)=>{const _0x318400=_0x1ff262;var _0x19d451,_0x5485f0;let _0x460ad3=_0x3f54c4(_0x2f382a[_0x318400(0x1a9)](_0x5db55d),_0x434dfb);if(!_0x460ad3)return!0x1;let _0x28d90d=_0x2f382a[_0x318400(0x1a9)](_0x23ace4),{unitId:_0x37d3d0,subUnitId:_0x4fddd4}=_0x460ad3,_0x4f731c=_0x28d90d['getSkeleton'](_0x37d3d0,_0x4fddd4);if(!_0x4f731c)return!0x1;let _0xb2c2c3=_0x2f382a[_0x318400(0x1a9)](_0x400d26),{shapeId:_0xdec124,flipH:_0x38a65e,flipV:_0x38f6ab}=_0x434dfb,_0x60ea10=_0xb2c2c3['getDrawingByParam']({'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'drawingId':_0xdec124});if(!_0x60ea10)return!0x1;let _0x3fbea3=_0x2f382a[_0x318400(0x1a9)](G)[_0x318400(0x1c0)](_0x37d3d0,_0x4fddd4,_0xdec124);if(!_0x3fbea3)return!0x1;let _0x465eb6=_0x2f382a[_0x318400(0x1a9)](_0x388fc8),_0x2ad08e=_0x2f382a[_0x318400(0x1a9)](_0x10fe4b),_0x40f824=_0x2f382a[_0x318400(0x1a9)](_0x3d8139),_0x186fc0={..._0x60ea10[_0x318400(0x195)]};_0x38a65e!==void 0x0&&(_0x186fc0[_0x318400(0x1b6)]=!_0x186fc0[_0x318400(0x1b6)]),_0x38f6ab!==void 0x0&&(_0x186fc0['flipY']=!_0x186fc0['flipY']);let _0x76b4a2=_0x2d3afd(_0x186fc0,_0x4f731c),_0x2fe17e=_0x241ebb(_0x186fc0,_0x4f731c),_0x5a171d=_0x3fbea3[_0x318400(0x17c)](),_0x4546c2=_0x3fbea3[_0x318400(0x184)](),_0x17e908={'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'drawingId':_0xdec124,'drawingType':_0x288fdc[_0x318400(0x15b)],'sheetTransform':_0x76b4a2,'transform':_0x186fc0,'data':{'shapeType':_0x5a171d,'shapeData':_0x4546c2},'axisAlignSheetTransform':_0x2fe17e,'allowTransform':!0x0},{undo:_0x2787bf,redo:_0x31d916,objects:_0x217953}=_0xb2c2c3[_0x318400(0x12e)]([_0x17e908]),_0xb98552=_0x40f824['onCommandExecute']({'id':_0x374047['id'],'params':{'unitId':_0x37d3d0,'drawings':[_0x17e908]}}),_0x43afa9=[...(_0x19d451=_0xb98552['preRedos'])==null?[]:_0x19d451,{'id':_0x4839e2['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'op':_0x31d916,'objects':_0x217953,'type':_0x48390c[_0x318400(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x37d3d0]},..._0xb98552['redos']],_0x425d46=[...(_0x5485f0=_0xb98552[_0x318400(0x12c)])==null?[]:_0x5485f0,{'id':_0x4839e2['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'op':_0x2787bf,'objects':_0x217953,'type':_0x48390c[_0x318400(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x37d3d0]},..._0xb98552[_0x318400(0x144)]];if(_0x1f3e71(_0x5a171d)){let _0x3ff7cb=_0x3fbea3[_0x318400(0x175)]();if(_0x3ff7cb){let _0x11088d={..._0x3ff7cb};_0x11088d['from']=void 0x0,_0x11088d['to']=void 0x0,_0x43afa9[_0x318400(0x14c)]({'id':Y['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'shapeId':_0xdec124,'shapeType':_0x5a171d,'shapeData':{'relation':_0x11088d}}}),_0x425d46[_0x318400(0x14c)]({'id':Y['id'],'params':{'unitId':_0x37d3d0,'subUnitId':_0x4fddd4,'shapeId':_0xdec124,'shapeType':_0x5a171d,'shapeData':{'relation':_0x3ff7cb}}});}}return _0x343173(_0x43afa9,_0x465eb6)['result']?(_0x2ad08e[_0x318400(0x13f)]({'unitID':_0x37d3d0,'undoMutations':_0x425d46,'redoMutations':_0x43afa9}),!0x0):!0x1;}},X={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x173),'handler':(_0x4e1b18,_0x29e52c)=>{const _0x19ac0e=_0x1ff262;var _0x18df51,_0x306ea9;let _0x2e3e0f=_0x3f54c4(_0x4e1b18[_0x19ac0e(0x1a9)](_0x5db55d),_0x29e52c);if(!_0x2e3e0f)return!0x1;let _0x3421a0=_0x4e1b18['get'](_0x23ace4),{unitId:_0x322404,subUnitId:_0x47f153}=_0x2e3e0f,_0x2e5f4a=_0x3421a0[_0x19ac0e(0x13d)](_0x322404,_0x47f153);if(!_0x2e5f4a)return!0x1;let _0x308c66=_0x4e1b18[_0x19ac0e(0x1a9)](_0x400d26),{shapeId:_0x343ecd,rotate:_0x2bccd}=_0x29e52c,_0x57cde0=_0x308c66[_0x19ac0e(0x1a2)]({'unitId':_0x322404,'subUnitId':_0x47f153,'drawingId':_0x343ecd});if(!_0x57cde0)return!0x1;let _0x5ba516=_0x4e1b18[_0x19ac0e(0x1a9)](G)[_0x19ac0e(0x1c0)](_0x322404,_0x47f153,_0x343ecd);if(!_0x5ba516)return!0x1;let _0x564496=_0x4e1b18[_0x19ac0e(0x1a9)](_0x388fc8),_0x101f74=_0x4e1b18[_0x19ac0e(0x1a9)](_0x10fe4b),_0x42aac8=_0x4e1b18[_0x19ac0e(0x1a9)](_0x3d8139),_0x2eb16c={..._0x57cde0['transform']};_0x2bccd!==void 0x0&&(_0x2eb16c[_0x19ac0e(0x146)]=(_0x2eb16c['angle']||0x0)+_0x2bccd);let _0x3d95d3=_0x2d3afd(_0x2eb16c,_0x2e5f4a),_0x19eb4f=_0x241ebb(_0x2eb16c,_0x2e5f4a),_0x335d6f=_0x5ba516[_0x19ac0e(0x17c)](),_0x33eac3=_0x5ba516['getShapeData'](),_0x1a6876={'unitId':_0x322404,'subUnitId':_0x47f153,'drawingId':_0x343ecd,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x3d95d3,'transform':_0x2eb16c,'data':{'shapeType':_0x335d6f,'shapeData':_0x33eac3},'axisAlignSheetTransform':_0x19eb4f,'allowTransform':!0x0},{undo:_0x24dfbd,redo:_0x314cb2,objects:_0x2940f9}=_0x308c66['getBatchUpdateOp']([_0x1a6876]),_0x3e95da=_0x42aac8['onCommandExecute']({'id':_0x374047['id'],'params':{'unitId':_0x322404,'drawings':[_0x1a6876]}}),_0x5a0dca=[...(_0x18df51=_0x3e95da[_0x19ac0e(0x16f)])==null?[]:_0x18df51,{'id':_0x4839e2['id'],'params':{'unitId':_0x322404,'subUnitId':_0x47f153,'op':_0x314cb2,'objects':_0x2940f9,'type':_0x48390c[_0x19ac0e(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x322404]},..._0x3e95da[_0x19ac0e(0x1a1)]],_0x489d74=[...(_0x306ea9=_0x3e95da[_0x19ac0e(0x12c)])==null?[]:_0x306ea9,{'id':_0x4839e2['id'],'params':{'unitId':_0x322404,'subUnitId':_0x47f153,'op':_0x24dfbd,'objects':_0x2940f9,'type':_0x48390c[_0x19ac0e(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x322404]},..._0x3e95da[_0x19ac0e(0x144)]];return _0x343173(_0x5a0dca,_0x564496)['result']?(_0x101f74[_0x19ac0e(0x13f)]({'unitID':_0x322404,'undoMutations':_0x489d74,'redoMutations':_0x5a0dca}),!0x0):!0x1;}},Z={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x147),'handler':(_0x16574c,_0x254e42)=>{const _0x187fdb=_0x1ff262;var _0x4a61bf;let _0x68af8c=_0x3f54c4(_0x16574c[_0x187fdb(0x1a9)](_0x5db55d),_0x254e42);if(!_0x68af8c)return!0x1;let {unitId:_0x3d4c6d,subUnitId:_0x3534f3}=_0x68af8c,{shapeId:_0x15d9ef}=_0x254e42,_0x12f4df=_0x16574c[_0x187fdb(0x1a9)](G)[_0x187fdb(0x1c0)](_0x3d4c6d,_0x3534f3,_0x15d9ef);if(!_0x12f4df)return!0x1;let _0x34f24e=_0x12f4df[_0x187fdb(0x1b2)](),_0x35d0a1=(_0x4a61bf=_0x34f24e==null?void 0x0:_0x34f24e[_0x187fdb(0x171)])==null?!0x0:_0x4a61bf,_0x1556ce=!_0x35d0a1,_0x4f715b=_0x16574c[_0x187fdb(0x1a9)](_0x388fc8),_0x1d95f9=_0x16574c['get'](_0x10fe4b),_0x9c5cd3={'unitId':_0x3d4c6d,'subUnitId':_0x3534f3,'shapeId':_0x15d9ef,'shapeData':{'shapeText':{'isHorizontal':_0x1556ce}}},_0x848c42={'unitId':_0x3d4c6d,'subUnitId':_0x3534f3,'shapeId':_0x15d9ef,'shapeData':{'shapeText':{'isHorizontal':_0x35d0a1}}},_0x389521=[{'id':Y['id'],'params':_0x9c5cd3}],_0x279576=[{'id':Y['id'],'params':_0x848c42}];return _0x343173(_0x389521,_0x4f715b)[_0x187fdb(0x194)]?(_0x1d95f9[_0x187fdb(0x13f)]({'unitID':_0x3d4c6d,'undoMutations':_0x279576,'redoMutations':_0x389521}),!0x0):!0x1;}},ne={'type':_0x2c633d['COMMAND'],'id':_0x1ff262(0x164),'handler':(_0x96069,_0x2515dd)=>{const _0x4abddb=_0x1ff262;var _0x3b4da9,_0x3a9c2d,_0xfb12c2,_0x314f9b;let _0x29bbd0=_0x3f54c4(_0x96069['get'](_0x5db55d),_0x2515dd);if(!_0x29bbd0)return!0x1;let _0x49d66e=_0x96069[_0x4abddb(0x1a9)](_0x23ace4),{unitId:_0x5ab307,subUnitId:_0x15e30a}=_0x29bbd0,_0x408b95=_0x49d66e[_0x4abddb(0x13d)](_0x5ab307,_0x15e30a);if(!_0x408b95)return!0x1;let _0x2965b2=_0x96069[_0x4abddb(0x1a9)](_0x400d26),{connectorShapeId:_0x2c2606,width:_0x27c944,height:_0xaec04c,left:_0x361616,top:_0xda647d,flipX:_0x127bbe,flipY:_0x42bc94,rotation:_0x35a97c,oldAdjustValues:_0x23583a,newAdjustValues:_0x44dd66,oldLineType:_0x2d5988,newLineType:_0x233526,oldRelation:_0x44483d,newRelation:_0x5632aa}=_0x2515dd,_0x19bb6d=_0x2965b2[_0x4abddb(0x1a2)]({'unitId':_0x5ab307,'subUnitId':_0x15e30a,'drawingId':_0x2c2606});if(!_0x19bb6d)return!0x1;let _0x103632=_0x96069[_0x4abddb(0x1a9)](G)[_0x4abddb(0x1c0)](_0x5ab307,_0x15e30a,_0x2c2606);if(!_0x103632)return!0x1;let _0x2b44c9=_0x96069[_0x4abddb(0x1a9)](_0x388fc8),_0x9873e8=_0x96069[_0x4abddb(0x1a9)](_0x10fe4b),_0x19d558=_0x96069[_0x4abddb(0x1a9)](_0x3d8139),_0xc12dcd={..._0x19bb6d[_0x4abddb(0x195)],'width':_0x27c944,'height':_0xaec04c,'left':_0x361616,'top':_0xda647d,'flipX':_0x127bbe,'flipY':_0x42bc94,'angle':(_0x3b4da9=_0x35a97c==null?(_0x3a9c2d=_0x19bb6d['transform'])==null?void 0x0:_0x3a9c2d[_0x4abddb(0x146)]:_0x35a97c)==null?0x0:_0x3b4da9},_0x356175=_0x2d3afd(_0xc12dcd,_0x408b95),_0x341591=_0x241ebb(_0xc12dcd,_0x408b95),_0x146513=_0x103632['getShapeType'](),_0x3d8dc9=_0x103632['getShapeData'](),_0x4a36a1={'unitId':_0x5ab307,'subUnitId':_0x15e30a,'drawingId':_0x2c2606,'drawingType':_0x288fdc[_0x4abddb(0x15b)],'sheetTransform':_0x356175,'transform':_0xc12dcd,'data':{'shapeType':_0x233526||_0x2d5988||_0x146513,'shapeData':{..._0x3d8dc9,'adjustValues':_0x44dd66||_0x23583a||(_0x3d8dc9==null?void 0x0:_0x3d8dc9['adjustValues']),'relation':_0x5632aa||_0x44483d||(_0x3d8dc9==null?void 0x0:_0x3d8dc9[_0x4abddb(0x1ae)])}},'axisAlignSheetTransform':_0x341591,'allowTransform':!0x0},{undo:_0x1e3919,redo:_0x2d2ddb,objects:_0x2cda9a}=_0x2965b2[_0x4abddb(0x12e)]([_0x4a36a1]),_0x42d63c=_0x19d558[_0x4abddb(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x5ab307,'drawings':[_0x4a36a1]}}),_0x31644a=[...(_0xfb12c2=_0x42d63c[_0x4abddb(0x16f)])==null?[]:_0xfb12c2,{'id':_0x4839e2['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'op':_0x2d2ddb,'objects':_0x2cda9a,'type':_0x48390c[_0x4abddb(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x5ab307]},..._0x42d63c[_0x4abddb(0x1a1)],{'id':Y['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'shapeId':_0x2c2606,'shapeType':_0x233526,'shapeData':{'adjustValues':_0x44dd66,'relation':_0x5632aa}}}],_0x29004b=[...(_0x314f9b=_0x42d63c['preUndos'])==null?[]:_0x314f9b,{'id':_0x4839e2['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'op':_0x1e3919,'objects':_0x2cda9a,'type':_0x48390c[_0x4abddb(0x149)]}},{'id':_0x42fba7['id'],'params':[_0x5ab307]},..._0x42d63c[_0x4abddb(0x144)],{'id':Y['id'],'params':{'unitId':_0x5ab307,'subUnitId':_0x15e30a,'shapeId':_0x2c2606,'shapeType':_0x146513,'shapeData':{..._0x3d8dc9,'adjustValues':_0x23583a||(_0x3d8dc9==null?void 0x0:_0x3d8dc9['adjustValues']),'relation':_0x44483d||(_0x3d8dc9==null?void 0x0:_0x3d8dc9[_0x4abddb(0x1ae)])}}}];return _0x343173(_0x31644a,_0x2b44c9)['result']?(_0x9873e8[_0x4abddb(0x13f)]({'unitID':_0x5ab307,'undoMutations':_0x29004b,'redoMutations':_0x31644a}),!0x0):!0x1;}},re={'type':_0x2c633d[_0x1ff262(0x1a4)],'id':_0x1ff262(0x145),'handler':(_0x15e021,_0x573b60)=>{const _0x13274d=_0x1ff262;var _0xed353b,_0x684fd3;let _0x381208=_0x3f54c4(_0x15e021[_0x13274d(0x1a9)](_0x5db55d),_0x573b60);if(!_0x381208)return!0x1;let _0x723aad=_0x15e021[_0x13274d(0x1a9)](_0x23ace4),{unitId:_0x26aa6f,subUnitId:_0x5a4bd6}=_0x381208,_0x3311cd=_0x723aad[_0x13274d(0x13d)](_0x26aa6f,_0x5a4bd6);if(!_0x3311cd)return!0x1;let _0x19153b=_0x15e021['get'](_0x400d26),{shapeId:_0x199abb,width:_0x1afe0f,height:_0x177307,left:_0x381c44,top:_0x533fbe,flipX:_0x28fbb4,flipY:_0x1eea3e,angle:_0x4df47d,oldAdjustValues:_0x4a8f3e,newAdjustValues:_0x5e812d,oldLineType:_0x75b182,newLineType:_0x58a684}=_0x573b60,_0x15e134=_0x19153b['getDrawingByParam']({'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'drawingId':_0x199abb});if(!_0x15e134)return!0x1;let _0x2d9e59=_0x15e021['get'](G)['getShapeModel'](_0x26aa6f,_0x5a4bd6,_0x199abb);if(!_0x2d9e59)return!0x1;let _0x3e20a7=_0x15e021[_0x13274d(0x1a9)](_0x388fc8),_0x1beb45=_0x15e021[_0x13274d(0x1a9)](_0x10fe4b),_0x44f8d0=_0x15e021[_0x13274d(0x1a9)](_0x3d8139),_0x238af3={..._0x15e134[_0x13274d(0x195)],'width':_0x1afe0f,'height':_0x177307,'left':_0x381c44,'top':_0x533fbe,'flipX':_0x28fbb4,'flipY':_0x1eea3e,'angle':_0x4df47d},_0x4ef1df=_0x2d3afd(_0x238af3,_0x3311cd),_0x3a0bf2=_0x241ebb(_0x238af3,_0x3311cd),_0x1b66fa=_0x2d9e59[_0x13274d(0x17c)](),_0x3c3331=_0x2d9e59[_0x13274d(0x184)](),_0xdd52e7={'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'drawingId':_0x199abb,'drawingType':_0x288fdc['DRAWING_SHAPE'],'sheetTransform':_0x4ef1df,'transform':_0x238af3,'data':{'shapeType':_0x58a684||_0x75b182||_0x1b66fa,'shapeData':{..._0x3c3331,'adjustValues':_0x5e812d||_0x4a8f3e||(_0x3c3331==null?void 0x0:_0x3c3331[_0x13274d(0x1a6)])}},'axisAlignSheetTransform':_0x3a0bf2,'allowTransform':!0x0},{undo:_0x560190,redo:_0x2e8e72,objects:_0x5b5fb9}=_0x19153b[_0x13274d(0x12e)]([_0xdd52e7]),_0x58a1b0=_0x44f8d0[_0x13274d(0x182)]({'id':_0x374047['id'],'params':{'unitId':_0x26aa6f,'drawings':[_0xdd52e7]}}),_0x462ed5=[...(_0xed353b=_0x58a1b0['preRedos'])==null?[]:_0xed353b,{'id':_0x4839e2['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'op':_0x2e8e72,'objects':_0x5b5fb9,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x26aa6f]},..._0x58a1b0[_0x13274d(0x1a1)],{'id':Y['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'shapeId':_0x199abb,'shapeType':_0x58a684,'shapeData':{'adjustValues':_0x5e812d}}}],_0x5c3e53=[...(_0x684fd3=_0x58a1b0['preUndos'])==null?[]:_0x684fd3,{'id':_0x4839e2['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'op':_0x560190,'objects':_0x5b5fb9,'type':_0x48390c['UPDATE']}},{'id':_0x42fba7['id'],'params':[_0x26aa6f]},..._0x58a1b0[_0x13274d(0x144)],{'id':Y['id'],'params':{'unitId':_0x26aa6f,'subUnitId':_0x5a4bd6,'shapeId':_0x199abb,'shapeType':_0x1b66fa,'shapeData':{..._0x3c3331,'adjustValues':_0x4a8f3e||(_0x3c3331==null?void 0x0:_0x3c3331['adjustValues'])}}}];return _0x343173(_0x462ed5,_0x3e20a7)[_0x13274d(0x194)]?(_0x1beb45[_0x13274d(0x13f)]({'unitID':_0x26aa6f,'undoMutations':_0x5c3e53,'redoMutations':_0x462ed5}),!0x0):!0x1;}},Q={'id':'sheet.mutation.update-shape-type','type':_0x2c633d[_0x1ff262(0x1b7)],'handler':(_0x25b726,_0x4f0581)=>{const _0x3ab89=_0x1ff262;let {unitId:_0x34611f,subUnitId:_0x30d791,shapeType:_0x4e4d23,shapeId:_0x28bed2,shapeData:_0x3a6885}=_0x4f0581,_0x2965dd=_0x25b726[_0x3ab89(0x1a9)](G)[_0x3ab89(0x1c0)](_0x34611f,_0x30d791,_0x28bed2);return _0x2965dd&&(_0x2965dd[_0x3ab89(0x1b4)](_0x4e4d23),_0x3a6885&&(_0x2965dd==null||_0x2965dd[_0x3ab89(0x13b)](_0x3a6885))),!0x0;}},ie={'id':_0x1ff262(0x188),'type':_0x2c633d[_0x1ff262(0x1a4)],'handler':(_0x4aab12,_0x5ed3cb)=>{const _0x2b661f=_0x1ff262;if(!_0x5ed3cb)return!0x1;let _0x47dde6=_0x4aab12[_0x2b661f(0x1a9)](_0x388fc8),_0x17d990=_0x4aab12['get'](G),_0x40e793=_0x4aab12[_0x2b661f(0x1a9)](_0x10fe4b),_0x2629b8=[],_0x53f5a8=[],{unitId:_0x4fc086,subUnitId:_0x4fd945,shapeId:_0xb66837,shapeType:_0x99e6ee,shapeData:_0xca32f7}=_0x5ed3cb,_0x5afa09=_0x17d990[_0x2b661f(0x1c0)](_0x4fc086,_0x4fd945,_0xb66837);if(_0x5afa09){let _0x3dc90b=_0x5afa09[_0x2b661f(0x17c)](),_0x1bad66=Object[_0x2b661f(0x1a8)]({},_0x5afa09[_0x2b661f(0x184)]()),_0x131b84={'unitId':_0x4fc086,'subUnitId':_0x4fd945,'shapeId':_0xb66837,'shapeType':_0x99e6ee,'shapeData':_0xca32f7},_0x3b2623={'unitId':_0x4fc086,'subUnitId':_0x4fd945,'shapeId':_0xb66837,'shapeType':_0x3dc90b,'shapeData':_0x1bad66};return _0x2629b8[_0x2b661f(0x14c)]({'id':Q['id'],'params':_0x131b84}),_0x53f5a8['push']({'id':Q['id'],'params':_0x3b2623}),_0x2629b8[_0x2b661f(0x199)](_0x3bb7a8=>_0x47dde6[_0x2b661f(0x189)](_0x3bb7a8['id'],_0x3bb7a8[_0x2b661f(0x1ac)]))&&_0x40e793[_0x2b661f(0x13f)]({'unitID':_0x4fc086,'redoMutations':[..._0x2629b8],'undoMutations':[..._0x53f5a8]}),!0x0;}return!0x1;}};var ae='@univerjs-pro/sheets-shape',oe='0.25.2';const se={};let ce=class extends _0xa3f2a6{constructor(_0x3a7d44,_0x8373,_0x5b4232,_0xb2f4f7,_0x605a12){const _0x5d1f2c=_0x1ff262;super(),this[_0x5d1f2c(0x169)]=_0x3a7d44,this['_sheetInterceptorService']=_0x8373,this['_sheetSkeletonService']=_0x5b4232,this[_0x5d1f2c(0x17b)]=_0xb2f4f7,this['_drawingManagerService']=_0x605a12,this[_0x5d1f2c(0x12a)](),this[_0x5d1f2c(0x130)]();}[_0x1ff262(0x12a)](){const _0x2c6394=_0x1ff262;[J,ee,te,X,Z,ne,re,K,q,Q,Y][_0x2c6394(0x19b)](_0x484600=>this['disposeWithMe'](this[_0x2c6394(0x169)]['registerCommand'](_0x484600)));}[_0x1ff262(0x130)](){const _0x462c1c=_0x1ff262;this[_0x462c1c(0x174)](this['_sheetInterceptorService'][_0x462c1c(0x13c)]({'getMutations':_0x2c0cbc=>{const _0x1dc0b8=_0x462c1c;if(_0x2c0cbc['id']===_0x3596f8['id']){let {drawings:_0x606a62}=_0x2c0cbc['params'],_0x2a4aca=_0x606a62[_0x1dc0b8(0x131)](_0x4173c8=>_0x4173c8[_0x1dc0b8(0x1af)]===_0x288fdc[_0x1dc0b8(0x15b)]);if(_0x2a4aca[_0x1dc0b8(0x181)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2d8e5f=[],_0x3c6e43=[];return _0x2a4aca[_0x1dc0b8(0x19b)](_0x4409d9=>{const _0x4a096d=_0x1dc0b8;let {unitId:_0x798bff,subUnitId:_0x310af2,drawingId:_0x31f70a}=_0x4409d9,_0x1c9eaa=this[_0x4a096d(0x17b)][_0x4a096d(0x1c0)](_0x798bff,_0x310af2,_0x31f70a);if(!_0x1c9eaa)throw TypeError(_0x4a096d(0x13e)+_0x1c9eaa);_0x2d8e5f['push']({'id':q['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x31f70a}}),_0x3c6e43[_0x4a096d(0x14c)]({'id':K['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x31f70a,'shapeType':_0x1c9eaa[_0x4a096d(0x17c)](),'shapeData':_0x1c9eaa[_0x4a096d(0x184)]()}});let _0x531690=this[_0x4a096d(0x17b)][_0x4a096d(0x167)](_0x798bff,_0x310af2,_0x31f70a);if(_0x531690)for(let _0x2bbaea of _0x531690){let _0x21a31c=_0x2bbaea['lineShapeId'],_0x5d2180=_0x2bbaea[_0x4a096d(0x1bf)],_0x597832=_0x5d2180?{'from':void 0x0}:{'to':void 0x0},_0x479c12=_0x5d2180?{'from':{'shapeId':_0x2bbaea[_0x4a096d(0x1a5)],'cxnIndex':_0x2bbaea[_0x4a096d(0x16e)]}}:{'to':{'shapeId':_0x2bbaea[_0x4a096d(0x1a5)],'cxnIndex':_0x2bbaea['cxnIndex']}};_0x2d8e5f['push']({'id':Y['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x21a31c,'shapeData':{'relation':_0x597832}}}),_0x3c6e43[_0x4a096d(0x14c)]({'id':Y['id'],'params':{'unitId':_0x798bff,'subUnitId':_0x310af2,'shapeId':_0x21a31c,'shapeData':{'relation':_0x479c12}}});}}),{'preRedos':_0x2d8e5f,'redos':[],'preUndos':[],'undos':_0x3c6e43};}if(_0x2c0cbc['id']===_0x374047['id']){let {drawings:_0x3c6b4c}=_0x2c0cbc[_0x1dc0b8(0x1ac)],_0x4d82aa=_0x3c6b4c[_0x1dc0b8(0x131)](_0x3f6ca0=>_0x3f6ca0[_0x1dc0b8(0x1af)]===_0x288fdc['DRAWING_SHAPE']);if(_0x4d82aa[_0x1dc0b8(0x181)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x8dd29c=[],_0x50c184=[];for(let _0x170322 of _0x4d82aa){let {unitId:_0x1c6107,subUnitId:_0x5f475a,drawingId:_0x227087,transform:_0x251436}=_0x170322;if(!_0x1c6107||!_0x5f475a||!_0x227087||!_0x251436)continue;let _0x1beeb0=this[_0x1dc0b8(0x17b)][_0x1dc0b8(0x1c0)](_0x1c6107,_0x5f475a,_0x227087);if(!_0x1beeb0)throw TypeError(_0x1dc0b8(0x13e)+_0x1beeb0);if(_0x1f3e71(_0x1beeb0[_0x1dc0b8(0x17c)]())){let _0xc04341=this['_sheetsShapeService']['getLineShapeRelation'](_0x1c6107,_0x5f475a,_0x227087);_0xc04341&&(_0x8dd29c[_0x1dc0b8(0x14c)]({'id':Y['id'],'params':{'unitId':_0x1c6107,'subUnitId':_0x5f475a,'shapeId':_0x227087,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x50c184[_0x1dc0b8(0x14c)]({'id':Y['id'],'params':{'unitId':_0x1c6107,'subUnitId':_0x5f475a,'shapeId':_0x227087,'shapeData':{'relation':_0xc04341}}}));}else{let _0x390253=this[_0x1dc0b8(0x17b)]['getBasicShapeRelation'](_0x1c6107,_0x5f475a,_0x227087);if(_0x390253&&_0x390253[_0x1dc0b8(0x181)]>0x0)for(let _0x366963 of _0x390253){let _0x1c5ff5=_0x366963[_0x1dc0b8(0x19d)],_0x8e5760=_0x366963[_0x1dc0b8(0x1bf)],_0x487f6e=this['_sheetsShapeService']['getShapeModel'](_0x1c6107,_0x5f475a,_0x1c5ff5);if(!_0x487f6e)continue;let _0x537eb1=_0x487f6e[_0x1dc0b8(0x187)](),_0x19306e=_0x487f6e[_0x1dc0b8(0x148)]();_0x537eb1&&_0x19306e?this[_0x1dc0b8(0x162)](_0x1c6107,_0x5f475a,_0x1c5ff5,_0x487f6e,_0x537eb1,_0x19306e,_0x8dd29c,_0x50c184,_0x227087,_0x251436):this[_0x1dc0b8(0x14b)](_0x1c6107,_0x5f475a,_0x1c5ff5,_0x487f6e,_0x8e5760?_0x537eb1:_0x19306e,_0x8e5760,_0x8dd29c,_0x50c184,_0x227087,_0x251436);}}}return{'preRedos':[],'redos':_0x8dd29c,'preUndos':_0x50c184,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1ff262(0x137)](_0x33c650,_0x470441,_0x2131ba,_0x43098e,_0x332436){const _0x5bdbd7=_0x1ff262;if(!_0x470441||!_0x2131ba)return null;let {shapeId:_0x166c76,cxnIndex:_0x139b07}=_0x33c650,_0x406c96=this[_0x5bdbd7(0x17b)][_0x5bdbd7(0x1c0)](_0x470441,_0x2131ba,_0x166c76);if(!_0x406c96)return null;let _0x40efb0=this[_0x5bdbd7(0x1c2)][_0x5bdbd7(0x1a2)]({'unitId':_0x470441,'subUnitId':_0x2131ba,'drawingId':_0x166c76});if(!(_0x40efb0!=null&&_0x40efb0['transform']))return null;let {left:_0x21176b=0x0,top:_0x15942e=0x0,width:_0x296cf1=0x0,height:_0x3a5929=0x0,flipX:_0x410113=!0x1,flipY:_0x3abfce=!0x1,angle:_0x16fd1e}=_0x40efb0[_0x5bdbd7(0x195)];if(_0x332436&&_0x43098e===_0x166c76){var _0x5575a8,_0x395390,_0x419b15,_0x5cb55e,_0x310d38,_0x70fd42,_0x2cd057;_0x21176b=(_0x5575a8=_0x332436[_0x5bdbd7(0x15d)])==null?_0x21176b:_0x5575a8,_0x15942e=(_0x395390=_0x332436[_0x5bdbd7(0x165)])==null?_0x15942e:_0x395390,_0x296cf1=(_0x419b15=_0x332436[_0x5bdbd7(0x1b8)])==null?_0x296cf1:_0x419b15,_0x3a5929=(_0x5cb55e=_0x332436[_0x5bdbd7(0x139)])==null?_0x3a5929:_0x5cb55e,_0x410113=(_0x310d38=_0x332436[_0x5bdbd7(0x1b6)])==null?_0x410113:_0x310d38,_0x3abfce=(_0x70fd42=_0x332436[_0x5bdbd7(0x1a7)])==null?_0x3abfce:_0x70fd42,_0x16fd1e=(_0x2cd057=_0x332436[_0x5bdbd7(0x146)])==null?_0x16fd1e:_0x2cd057;}_0x406c96[_0x5bdbd7(0x159)]({'width':_0x296cf1,'height':_0x3a5929});let _0x1e18e3=_0x406c96['getConnectionSiteList']()[_0x5bdbd7(0x198)](_0x174852=>_0x174852[_0x5bdbd7(0x155)]===_0x139b07);if(!_0x1e18e3)return null;let _0x12e336=_0x410113?_0x296cf1-_0x1e18e3['x']:_0x1e18e3['x'],_0x4fe382=_0x3abfce?_0x3a5929-_0x1e18e3['y']:_0x1e18e3['y'];if(_0x16fd1e!==0x0&&_0x16fd1e!=null){let _0x1c53c0=_0x16fd1e*Math['PI']/0xb4,_0x28f262=Math[_0x5bdbd7(0x191)](_0x1c53c0),_0x18d2af=Math[_0x5bdbd7(0x127)](_0x1c53c0),_0x9ab1e2=_0x296cf1/0x2,_0x4a7673=_0x3a5929/0x2,_0x4f0c43=_0x12e336-_0x9ab1e2,_0x4ae411=_0x4fe382-_0x4a7673;_0x12e336=_0x9ab1e2+_0x4f0c43*_0x28f262-_0x4ae411*_0x18d2af,_0x4fe382=_0x4a7673+_0x4f0c43*_0x18d2af+_0x4ae411*_0x28f262;}_0x12e336+=_0x21176b,_0x4fe382+=_0x15942e;let _0x4e8e46=_0x1e18e3[_0x5bdbd7(0x16d)]/0xea60;_0x410113&&(_0x4e8e46=0xb4-_0x4e8e46),_0x3abfce&&(_0x4e8e46=-_0x4e8e46),_0x4e8e46+=_0x16fd1e||0x0,_0x4e8e46=(_0x4e8e46%0x168+0x168)%0x168;let _0xb32912=_0x1f4faa({'left':_0x21176b,'top':_0x15942e,'width':_0x296cf1,'height':_0x3a5929},_0x16fd1e||0x0);return{'point':{'x':_0x12e336,'y':_0x4fe382},'angle':_0x4e8e46,'bounds':_0xb32912};}['_addLineRerouteUpdates'](_0x502bc2,_0x25fbee,_0x26b575,_0x592ac4,_0x37e8aa,_0x3c40ca,_0x33510c,_0x381055,_0x50e4a2,_0x3ccfde){const _0x8dc1f7=_0x1ff262;let _0x20f4d8=this[_0x8dc1f7(0x136)]['getSkeleton'](_0x502bc2,_0x25fbee);if(!_0x20f4d8)return;let _0x17a9ea=_0x592ac4['getShapeRelation'](),_0x52cde3=_0x592ac4[_0x8dc1f7(0x153)](),_0x335d86={},_0x4d9444={};_0x52cde3['forEach'](_0x41a810=>{let _0x18eb85=_0x592ac4['getAdjustValueByName'](_0x41a810);_0x4d9444[_0x41a810]=_0x18eb85==null?0x0:_0x18eb85;});let _0x35f94f=this[_0x8dc1f7(0x137)](_0x37e8aa,_0x502bc2,_0x25fbee,_0x50e4a2,_0x3ccfde),_0x13a8ef=this[_0x8dc1f7(0x137)](_0x3c40ca,_0x502bc2,_0x25fbee,_0x50e4a2,_0x3ccfde);if(_0x35f94f&&_0x13a8ef){let _0x1669a9=_0x592ac4['getShapeType'](),_0x290c68=_0x5a3de9(_0x35f94f,_0x13a8ef,_0x1669a9),_0x281e8d=_0x1669a9;if(_0x290c68){let _0x3cc56e=_0x1adc9d(_0x290c68,_0x592ac4['getShapeType']()),_0x1500ac=this['_drawingManagerService'][_0x8dc1f7(0x170)](_0x502bc2,_0x25fbee);if(_0x1500ac&&_0x1500ac[_0x26b575]){let _0x5357e6=_0x1500ac[_0x26b575];_0x281e8d=_0x3cc56e[_0x8dc1f7(0x133)];for(let [_0x4a4d73,_0x361de9]of Object[_0x8dc1f7(0x197)](_0x3cc56e[_0x8dc1f7(0x1a6)]))_0x335d86[_0x4a4d73]=_0x361de9;let _0x4c6d55={..._0x5357e6[_0x8dc1f7(0x195)],'width':_0x3cc56e[_0x8dc1f7(0x14f)]['width'],'height':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x139)],'left':_0x3cc56e['worldRect']['left'],'top':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x165)],'flipX':_0x3cc56e[_0x8dc1f7(0x14f)][_0x8dc1f7(0x1b6)],'flipY':_0x3cc56e['worldRect'][_0x8dc1f7(0x1a7)],'angle':_0x3cc56e[_0x8dc1f7(0x19f)]},_0x13b2a0=_0x2d3afd(_0x4c6d55,_0x20f4d8),_0x5a4ace=_0x241ebb(_0x4c6d55,_0x20f4d8),_0x541556={'unitId':_0x502bc2,'subUnitId':_0x25fbee,'drawingType':_0x288fdc[_0x8dc1f7(0x15b)],'drawingId':_0x26b575,'transform':_0x4c6d55,'sheetTransform':_0x13b2a0,'axisAlignSheetTransform':_0x5a4ace},{unitId:_0x151f95,subUnitId:_0x5453e5,undo:_0x5641e5,redo:_0x43db26,objects:_0x53dac3}=this[_0x8dc1f7(0x1c2)][_0x8dc1f7(0x12e)]([_0x541556]);_0x33510c['push']({'id':_0x4839e2['id'],'params':{'unitId':_0x151f95,'subUnitId':_0x5453e5,'op':_0x43db26,'objects':_0x53dac3,'type':_0x48390c[_0x8dc1f7(0x149)]}}),_0x381055['push']({'id':_0x4839e2['id'],'params':{'unitId':_0x151f95,'subUnitId':_0x5453e5,'op':_0x5641e5,'objects':_0x53dac3,'type':_0x48390c['UPDATE']}});}_0x592ac4[_0x8dc1f7(0x1b9)]();}_0x33510c[_0x8dc1f7(0x14c)]({'id':Y['id'],'params':{'unitId':_0x502bc2,'subUnitId':_0x25fbee,'shapeId':_0x26b575,'shapeType':_0x281e8d,'shapeData':{'adjustValues':_0x335d86,'relation':_0x17a9ea}}}),_0x381055[_0x8dc1f7(0x14c)]({'id':Y['id'],'params':{'unitId':_0x502bc2,'subUnitId':_0x25fbee,'shapeId':_0x26b575,'shapeType':_0x1669a9,'shapeData':{'adjustValues':_0x4d9444,'relation':_0x17a9ea}}});}}[_0x1ff262(0x14b)](_0x43c31d,_0x378ce2,_0x1de7ec,_0x103633,_0x313e19,_0x13d247,_0x295998,_0x32d3ad,_0x17ffe2,_0x358271){const _0x59b7fb=_0x1ff262;var _0x218199;if(!_0x313e19)return;let _0x51e78e=this[_0x59b7fb(0x136)][_0x59b7fb(0x13d)](_0x43c31d,_0x378ce2);if(!_0x51e78e)return;let _0x10aebd=(_0x218199=this[_0x59b7fb(0x1c2)]['getDrawingByParam']({'unitId':_0x43c31d,'subUnitId':_0x378ce2,'drawingId':_0x17ffe2}))==null?void 0x0:_0x218199[_0x59b7fb(0x195)];if(!_0x10aebd)return;let _0x369aa1=_0x10aebd['left']!==_0x358271['left']||_0x10aebd[_0x59b7fb(0x165)]!==_0x358271['top'],_0x3d6857=_0x10aebd[_0x59b7fb(0x1b8)]!==_0x358271['width']||_0x10aebd['height']!==_0x358271[_0x59b7fb(0x139)],_0x2c6da5=_0x10aebd[_0x59b7fb(0x1b6)]!==_0x358271[_0x59b7fb(0x1b6)]||_0x10aebd[_0x59b7fb(0x1a7)]!==_0x358271[_0x59b7fb(0x1a7)],_0x14bed3=_0x10aebd[_0x59b7fb(0x146)]!==_0x358271[_0x59b7fb(0x146)];if(_0x369aa1&&!_0x3d6857&&!_0x2c6da5&&!_0x14bed3){var _0x283c39,_0x1abc8e,_0x29897e,_0x256476;let _0x108901=((_0x283c39=_0x358271[_0x59b7fb(0x15d)])==null?0x0:_0x283c39)-((_0x1abc8e=_0x10aebd['left'])==null?0x0:_0x1abc8e),_0x52ac4b=((_0x29897e=_0x358271[_0x59b7fb(0x165)])==null?0x0:_0x29897e)-((_0x256476=_0x10aebd[_0x59b7fb(0x165)])==null?0x0:_0x256476),_0x5d59ea=this[_0x59b7fb(0x1c2)][_0x59b7fb(0x170)](_0x43c31d,_0x378ce2);if(_0x5d59ea&&_0x5d59ea[_0x1de7ec]){var _0x31ff56,_0x559a33,_0x3fea10,_0x15284d;let _0x1d5dc8=_0x5d59ea[_0x1de7ec],_0x4a12bc={..._0x1d5dc8[_0x59b7fb(0x195)],'left':((_0x31ff56=(_0x559a33=_0x1d5dc8[_0x59b7fb(0x195)])==null?void 0x0:_0x559a33[_0x59b7fb(0x15d)])==null?0x0:_0x31ff56)+_0x108901,'top':((_0x3fea10=(_0x15284d=_0x1d5dc8['transform'])==null?void 0x0:_0x15284d[_0x59b7fb(0x165)])==null?0x0:_0x3fea10)+_0x52ac4b},_0x22e76b=_0x2d3afd(_0x4a12bc,_0x51e78e),_0x32fcab=_0x241ebb(_0x4a12bc,_0x51e78e),_0x134e04={'unitId':_0x43c31d,'subUnitId':_0x378ce2,'drawingType':_0x288fdc[_0x59b7fb(0x15b)],'drawingId':_0x1de7ec,'transform':_0x4a12bc,'sheetTransform':_0x22e76b,'axisAlignSheetTransform':_0x32fcab},{unitId:_0x266fc9,subUnitId:_0x168126,undo:_0x1add3c,redo:_0x334fce,objects:_0x5b8896}=this['_drawingManagerService'][_0x59b7fb(0x12e)]([_0x134e04]);_0x295998[_0x59b7fb(0x14c)]({'id':_0x4839e2['id'],'params':{'unitId':_0x266fc9,'subUnitId':_0x168126,'op':_0x334fce,'objects':_0x5b8896,'type':_0x48390c[_0x59b7fb(0x149)]}}),_0x32d3ad[_0x59b7fb(0x14c)]({'id':_0x4839e2['id'],'params':{'unitId':_0x266fc9,'subUnitId':_0x168126,'op':_0x1add3c,'objects':_0x5b8896,'type':_0x48390c['UPDATE']}});}}else{let _0x3a3657=_0x103633[_0x59b7fb(0x187)](),_0x4cfd90=_0x103633['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x43c31d,_0x378ce2,_0x1de7ec,_0x103633,_0x3a3657,_0x4cfd90,_0x295998,_0x32d3ad,_0x17ffe2,_0x358271);}}};ce=W([U(0x0,_0x388fc8),U(0x1,_0x2530fb(_0x3d8139)),U(0x2,_0x2530fb(_0x23ace4)),U(0x3,_0x2530fb(G)),U(0x4,_0x2530fb(_0x11e38f))],ce);let $=class extends _0x23871c{constructor(_0x887170=se,_0x17f95d,_0x18f6f1,_0x3d5ef4){const _0x56641f=_0x1ff262;super(),this[_0x56641f(0x176)]=_0x887170,this[_0x56641f(0x193)]=_0x17f95d,this[_0x56641f(0x169)]=_0x18f6f1,this['_configService']=_0x3d5ef4;let {..._0x3a03df}=_0xab60b4({},se,this['_config']);this[_0x56641f(0x1c3)][_0x56641f(0x1b5)]('sheets-shape.config',_0x3a03df);}[_0x1ff262(0x16a)](){const _0x15b221=_0x1ff262;let _0x47e928=this[_0x15b221(0x193)];[[H],[G],[ce]][_0x15b221(0x19b)](_0x52f01a=>_0x47e928['add'](_0x52f01a)),_0x1d0968(_0x47e928,[[G],[ce]]);}};function _0x1c55(){const _0x912987=['_linesIds','137586uEsstU','from','updateContext','sheet.mutation.insert-shape','DRAWING_SHAPE','removeShape','left','getCellWithCoordByIndex','data','sheet.mutation.remove-shape','_resourcesManagerService','_addLineRerouteUpdates','5lVrpBt','sheet.command.update-connector-relation','top','add','getBasicShapeRelation','getBasicShapeType','_commandService','onStarting','object','keys','ang','cxnIndex','preRedos','getDrawingData','isHorizontal','getLineShapeRelation','sheet.command.set-shape-rotate','disposeWithMe','getShapeRelation','_config','symbol','toJSON','getShapeDataById','ensureSkeleton','_sheetsShapeService','getShapeType','defineProperty','startX','borderEnabled','version','length','onCommandExecute','18RmPzcC','getShapeData','isLineShape','_initSnapshot','getStartConnectInfo','sheet.command.update-shape-type','syncExecuteCommand','packageName','clear','747912ntSNzC','getBatchAddOp','3693312npYmDa','delete','resizeEnabled','cos','startY','_injector','result','transform','toPrimitive','entries','find','every','dispose','forEach','SHEET_SHAPE_PLUGIN','lineShapeId','getOwnPropertyDescriptor','rotation','position','redos','getDrawingByParam','pluginName','COMMAND','shapeId','adjustValues','flipY','assign','get','function','_shapeModelManagerMap','params','rotateEnabled','relation','drawingType','_ensureShapeModelManager','set','getShapeTextData','9382190KKCvsd','setShapeType','setConfig','flipX','MUTATION','width','removeLinePoints','hasShape','stringify','_serializeShapeForUnit','prototype','_shapes','isFrom','getShapeModel','INSERT','_drawingManagerService','_configService','sin','49fkbBJG','registerPluginResource','_initCommands','sheet.command.toggle-shape-flip','preUndos','sheet.command.set-shape-drawing-data','getBatchUpdateOp','insertShape','_initCommandInterceptor','filter','iterator','lineType','925392OcpOKK','2807433owEKNF','_sheetSkeletonService','_getConnectPointInfo','sheet.command.insert-shape','height','default','setShapeData','interceptCommand','getSkeleton','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','pushUndoRedo','addShape','fill','_groupIds','4169336XflTvV','undos','sheet.command.update-line-shape-resize','angle','sheet.command.set-shape-text-vertical-toggle','getEndConnectInfo','UPDATE','fromJSON','_addLineFollowShapeUpdates','push','getCellIndexAndOffsetByPosition','_disposed','worldRect','REMOVE','_deserializeShapeForUnit','has','getAdjustNames','parse','index'];_0x1c55=function(){return _0x912987;};return _0x1c55();}V($,'type',_0x4f30e9['UNIVER_SHEET']),V($,_0x1ff262(0x1a3),_0x1ff262(0x19c)),V($,_0x1ff262(0x18a),ae),V($,_0x1ff262(0x180),oe),$=W([_0x13d69f(_0x19cd3c),U(0x1,_0x2530fb(_0x2f815e)),U(0x2,_0x388fc8),U(0x3,_0x7b487e)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3c3e(){const _0x1b50bf=['rotation','getShapes','toPrimitive','point','unitId','141817OxLMdK','shapeData','@univerjs-pro/engine-shape','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','UniverProSheetsShapeFacade','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dashType','stroke','startArrow','Skeleton\x20for\x20unitId\x20','abs','fill','GradientFill','getEndConnectInfo','shape','updateContext','call','setWidth','localToWorld','458qwwmoA','drawingType','52CRRvgm','flipX','getBasicShapeRotateBound','endArrow','ShapeTypeEnum','UniverSheetsDrawing','gradientType','top','14864710EvjApD','defineProperty','shapeId','14LJlynu','cos','parse','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','insertShape','8bgPVpY','Module','UniverCoreFacade','11sHlxLk','582020FzbHQV','ShapeGradientTypeEnum','SolidFill','getShapeId','opacity','DrawingTypeEnum','length','SheetsShapeService','symbol','_resolveEndpoints','keys','FWorksheet','@univerjs/sheets/facade','\x20and\x20subUnitId\x20','\x20not\x20found','getAdjustNames','FEnum','UniverProEngineShape','DRAWING_SHAPE','@univerjs/core','stringify','setStrokeLineJoinType','setShapeSolidFill','connectionSiteIndex','worldRect','size','getConnectionSiteList','entries','IDrawingManagerService','default','5357817lFfaLm','_resolveExistingOrFreeEndpoint','ShapeArrowTypeEnum','SheetSkeletonService','prototype','InsertShapeCommand','setStrokeLineType','4951zabrUq','_commandService','function','left','convertPositionCellToSheetOverGrid','ShapeLineDashEnum','transform','flipY','object','shapeType','getShapeModel','connectShapes','setShapeType','newConnector','width','getDrawingByParam','capType','build','ensureSkeleton','UniverSheets','executeCommand','ISheetDrawingService','lineType','DEFAULT_SHAPE_WIDTH','setStartArrowSize',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','@univerjs/core/facade','type','_preloadShapeProperties','cxnIndex','setNoneFill','routeConnectorLineShape','@univerjs/sheets','from','DEFAULT_SHAPE_HEIGHT','setShapeGradientFill','subUnitId','setStartArrowType','index','getAdjustPoints','UniverCore','getUnitId','2352ziLnAr','iterator','getSize','3377382MCqvpO','ShapeLineCapEnum','setStrokeOpacity','color','find','ShapeLineTypeEnum','4284690IrnYEt','ShapeFillEnum','getConnectorLinePoints','getStartConnectInfo','get','setAbsolutePosition','getSheetId','@univerjs/sheets-drawing','getDrawingData','getShapeType','@univerjs/drawing','setPosition','getShapeData','updateShape','setEndArrowType','height','FConnectorShape','_injector','UpdateConnectorRelationCommand','generateRandomId','ConnectorCoordinateTransform','ShapeLineJoinEnum','ang','drawId','getShapeRelation','getWorkbook','relation','extend','lineJoinType','toStringTag','gradientAngle','removeShape','UniverProSheetsShape','FShape','SetShapeDrawingDataCommand'];_0x3c3e=function(){return _0x1b50bf;};return _0x3c3e();}function _0xedd8(_0x5d08bf,_0x5ec1d1){_0x5d08bf=_0x5d08bf-0x163;const _0x3c3e05=_0x3c3e();let _0xedd891=_0x3c3e05[_0x5d08bf];return _0xedd891;}(function(_0x1ce54b,_0x85ccb3){const _0x14faf0=_0xedd8,_0x279317=_0x1ce54b();while(!![]){try{const _0x555f66=parseInt(_0x14faf0(0x1a5))/0x1*(parseInt(_0x14faf0(0x16a))/0x2)+parseInt(_0x14faf0(0x1d2))/0x3+parseInt(_0x14faf0(0x16c))/0x4*(-parseInt(_0x14faf0(0x180))/0x5)+-parseInt(_0x14faf0(0x1d8))/0x6*(-parseInt(_0x14faf0(0x177))/0x7)+-parseInt(_0x14faf0(0x17c))/0x8*(parseInt(_0x14faf0(0x19e))/0x9)+-parseInt(_0x14faf0(0x174))/0xa*(-parseInt(_0x14faf0(0x17f))/0xb)+-parseInt(_0x14faf0(0x1cf))/0xc*(parseInt(_0x14faf0(0x200))/0xd);if(_0x555f66===_0x85ccb3)break;else _0x279317['push'](_0x279317['shift']());}catch(_0xe1ad54){_0x279317['push'](_0x279317['shift']());}}}(_0x3c3e,0xe2739),function(_0x4f508f,_0x400413){const _0x28df6a=_0xedd8;typeof exports==_0x28df6a(0x1ad)&&typeof module<'u'?_0x400413(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x28df6a(0x1a7)&&define['amd']?define(['exports',_0x28df6a(0x202),_0x28df6a(0x1bf),'@univerjs-pro/sheets-shape',_0x28df6a(0x193),_0x28df6a(0x1e2),_0x28df6a(0x1c5),_0x28df6a(0x1df),_0x28df6a(0x18c)],_0x400413):(_0x4f508f=typeof globalThis<'u'?globalThis:_0x4f508f||self,_0x400413(_0x4f508f[_0x28df6a(0x204)]={},_0x4f508f[_0x28df6a(0x191)],_0x4f508f[_0x28df6a(0x17e)],_0x4f508f[_0x28df6a(0x1f8)],_0x4f508f[_0x28df6a(0x1cd)],_0x4f508f['UniverDrawing'],_0x4f508f[_0x28df6a(0x1b8)],_0x4f508f[_0x28df6a(0x171)],_0x4f508f['UniverSheetsFacade']));}(this,function(_0x3d3915,_0xc8edff,_0x45c64d,_0x17e23b,_0x5272a5,_0x437071,_0x589c3e,_0x482202,_0x5a18f5){const _0x1265a8=_0xedd8;Object[_0x1265a8(0x175)](_0x3d3915,Symbol[_0x1265a8(0x1f5)],{'value':_0x1265a8(0x17d)});var _0xaf1ee4=class extends _0x45c64d[_0x1265a8(0x190)]{get['ShapeTypeEnum'](){const _0x3d64e8=_0x1265a8;return _0xc8edff[_0x3d64e8(0x170)];}get[_0x1265a8(0x1d9)](){const _0x1d154c=_0x1265a8;return _0xc8edff[_0x1d154c(0x1d9)];}get[_0x1265a8(0x181)](){const _0xcbfce7=_0x1265a8;return _0xc8edff[_0xcbfce7(0x181)];}get['ShapeLineTypeEnum'](){const _0x16ad07=_0x1265a8;return _0xc8edff[_0x16ad07(0x1d7)];}get[_0x1265a8(0x1aa)](){const _0x4d9bbf=_0x1265a8;return _0xc8edff[_0x4d9bbf(0x1aa)];}get[_0x1265a8(0x1d3)](){return _0xc8edff['ShapeLineCapEnum'];}get[_0x1265a8(0x1ed)](){return _0xc8edff['ShapeLineJoinEnum'];}get['ShapeArrowTypeEnum'](){const _0x12a99e=_0x1265a8;return _0xc8edff[_0x12a99e(0x1a0)];}get['ShapeArrowSizeEnum'](){return _0xc8edff['ShapeArrowSizeEnum'];}};_0x45c64d[_0x1265a8(0x190)][_0x1265a8(0x1f3)](_0xaf1ee4);function _0x4760b5(_0x541f34){'@babel/helpers - typeof';const _0x23c8e9=_0x1265a8;return _0x4760b5=typeof Symbol==_0x23c8e9(0x1a7)&&typeof Symbol[_0x23c8e9(0x1d0)]==_0x23c8e9(0x188)?function(_0x3b78c5){return typeof _0x3b78c5;}:function(_0xa84cd9){const _0x282c51=_0x23c8e9;return _0xa84cd9&&typeof Symbol==_0x282c51(0x1a7)&&_0xa84cd9['constructor']===Symbol&&_0xa84cd9!==Symbol[_0x282c51(0x1a2)]?'symbol':typeof _0xa84cd9;},_0x4760b5(_0x541f34);}function _0x146a31(_0x185dfa,_0x38e8bd){const _0x18751e=_0x1265a8;if(_0x4760b5(_0x185dfa)!=_0x18751e(0x1ad)||!_0x185dfa)return _0x185dfa;var _0x3c26a2=_0x185dfa[Symbol[_0x18751e(0x1fd)]];if(_0x3c26a2!==void 0x0){var _0x42a7c9=_0x3c26a2[_0x18751e(0x167)](_0x185dfa,_0x38e8bd||_0x18751e(0x19d));if(_0x4760b5(_0x42a7c9)!=_0x18751e(0x1ad))return _0x42a7c9;throw TypeError(_0x18751e(0x205));}return(_0x38e8bd==='string'?String:Number)(_0x185dfa);}function _0x133d12(_0x5c8354){const _0x66c9e6=_0x1265a8;var _0x55b73f=_0x146a31(_0x5c8354,'string');return _0x4760b5(_0x55b73f)==_0x66c9e6(0x188)?_0x55b73f:_0x55b73f+'';}function _0x4ffd9b(_0x7acc76,_0x39d154,_0x2f5430){const _0xc8e05b=_0x1265a8;return(_0x39d154=_0x133d12(_0x39d154))in _0x7acc76?Object[_0xc8e05b(0x175)](_0x7acc76,_0x39d154,{'value':_0x2f5430,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x7acc76[_0x39d154]=_0x2f5430,_0x7acc76;}var _0x42aab5=class{constructor(_0x3240f4,_0xda2f71,_0x39d894,_0x225dc4){const _0x19a337=_0x1265a8;_0x4ffd9b(this,_0x19a337(0x1ff),void 0x0),_0x4ffd9b(this,_0x19a337(0x1c9),void 0x0),_0x4ffd9b(this,_0x19a337(0x1ef),void 0x0),_0x4ffd9b(this,'x',0x0),_0x4ffd9b(this,'y',0x0),_0x4ffd9b(this,_0x19a337(0x1b3),_0x17e23b[_0x19a337(0x1bc)]),_0x4ffd9b(this,'height',_0x17e23b[_0x19a337(0x1c7)]),_0x4ffd9b(this,'shapeType',void 0x0),_0x4ffd9b(this,_0x19a337(0x201),{}),_0x4ffd9b(this,_0x19a337(0x1e9),void 0x0),this['unitId']=_0x3240f4,this[_0x19a337(0x1c9)]=_0xda2f71,this[_0x19a337(0x1ef)]=_0x39d894||(0x0,_0x5272a5['generateRandomId'])(),this['_injector']=_0x225dc4;}[_0x1265a8(0x1e3)](_0x3c0407,_0x12330d,_0x476601,_0x316e9f){const _0x511afd=_0x1265a8;let _0x3405d4=this['_injector'][_0x511afd(0x1dc)](_0x589c3e[_0x511afd(0x1a1)])[_0x511afd(0x1b7)](this[_0x511afd(0x1ff)],this[_0x511afd(0x1c9)]);if(!_0x3405d4)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x511afd(0x1ff)]+'\x20and\x20subUnitId\x20'+this[_0x511afd(0x1c9)]+_0x511afd(0x18e));let {transform:_0x11a8d1}=(0x0,_0x589c3e[_0x511afd(0x1a9)])(this[_0x511afd(0x1ff)],this[_0x511afd(0x1c9)],{'row':_0x3c0407,'column':_0x12330d,'rowOffset':_0x476601,'columnOffset':_0x316e9f},0x1,0x1,_0x3405d4);return this['x']=_0x11a8d1[_0x511afd(0x1a8)],this['y']=_0x11a8d1[_0x511afd(0x173)],this;}[_0x1265a8(0x1dd)](_0x138ca9,_0x55ca6a){return this['x']=_0x138ca9,this['y']=_0x55ca6a,this;}[_0x1265a8(0x1b1)](_0x1901cc){const _0x1b0e7d=_0x1265a8;return this[_0x1b0e7d(0x1ae)]=_0x1901cc,this;}[_0x1265a8(0x196)](_0xaac51a,_0x48bff9){const _0x2cdcae=_0x1265a8;return this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)]||(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)]={}),this[_0x2cdcae(0x201)]['fill']['fillType']=_0xc8edff[_0x2cdcae(0x1d9)][_0x2cdcae(0x182)],_0xaac51a!==void 0x0&&(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)][_0x2cdcae(0x1d5)]=_0xaac51a),_0x48bff9!==void 0x0&&(this[_0x2cdcae(0x201)][_0x2cdcae(0x20b)][_0x2cdcae(0x184)]=_0x48bff9),this;}[_0x1265a8(0x1c8)](_0x266ad9,_0x2edda0,_0x5a6f77){const _0x1b3b78=_0x1265a8;if(_0x2edda0===void 0x0||_0x2edda0[_0x1b3b78(0x186)]===0x0)throw Error(_0x1b3b78(0x203));return this[_0x1b3b78(0x201)][_0x1b3b78(0x20b)]||(this['shapeData'][_0x1b3b78(0x20b)]={}),this['shapeData'][_0x1b3b78(0x20b)]['gradientStops']=_0x2edda0,this['shapeData'][_0x1b3b78(0x20b)]['fillType']=_0xc8edff['ShapeFillEnum'][_0x1b3b78(0x163)],this['shapeData']['fill'][_0x1b3b78(0x172)]=_0x266ad9,_0x5a6f77!==void 0x0&&(this['shapeData']['fill'][_0x1b3b78(0x1f6)]=_0x5a6f77),this;}[_0x1265a8(0x1c3)](){const _0x3ccb0e=_0x1265a8;return this[_0x3ccb0e(0x201)][_0x3ccb0e(0x20b)]={'fillType':_0xc8edff[_0x3ccb0e(0x1d9)]['NoFill']},this;}['setStrokeColor'](_0x1dc879){const _0x265bf8=_0x1265a8;return this[_0x265bf8(0x201)][_0x265bf8(0x207)]||(this[_0x265bf8(0x201)]['stroke']={}),this[_0x265bf8(0x201)]['stroke'][_0x265bf8(0x1d5)]=_0x1dc879,this;}['setStrokeWidth'](_0x248e8c){const _0x524d5c=_0x1265a8;return this[_0x524d5c(0x201)][_0x524d5c(0x207)]||(this['shapeData'][_0x524d5c(0x207)]={}),this['shapeData'][_0x524d5c(0x207)]['width']=_0x248e8c,this;}['setStrokeLineDashType'](_0x18aa7f){const _0x2ef2fb=_0x1265a8;return this[_0x2ef2fb(0x201)][_0x2ef2fb(0x207)]||(this['shapeData'][_0x2ef2fb(0x207)]={}),this[_0x2ef2fb(0x201)][_0x2ef2fb(0x207)][_0x2ef2fb(0x206)]=_0x18aa7f,this;}[_0x1265a8(0x195)](_0x4deaed){const _0x57f930=_0x1265a8;return this['shapeData'][_0x57f930(0x207)]||(this[_0x57f930(0x201)][_0x57f930(0x207)]={}),this[_0x57f930(0x201)][_0x57f930(0x207)][_0x57f930(0x1f4)]=_0x4deaed,this;}['setStrokeLineCapType'](_0x24ada7){const _0x24853f=_0x1265a8;return this['shapeData'][_0x24853f(0x207)]||(this[_0x24853f(0x201)][_0x24853f(0x207)]={}),this[_0x24853f(0x201)][_0x24853f(0x207)][_0x24853f(0x1b5)]=_0x24ada7,this;}[_0x1265a8(0x1d4)](_0x42aabd){const _0x1f56fa=_0x1265a8;return this[_0x1f56fa(0x201)][_0x1f56fa(0x207)]||(this[_0x1f56fa(0x201)][_0x1f56fa(0x207)]={}),this[_0x1f56fa(0x201)]['stroke'][_0x1f56fa(0x184)]=_0x42aabd,this;}[_0x1265a8(0x1a4)](_0x2b7aa4){const _0x480876=_0x1265a8;return this[_0x480876(0x201)][_0x480876(0x207)]||(this[_0x480876(0x201)][_0x480876(0x207)]={}),this[_0x480876(0x201)][_0x480876(0x207)]['lineStrokeType']=_0x2b7aa4,this;}[_0x1265a8(0x168)](_0x5cffd5){const _0x3e52e4=_0x1265a8;return this[_0x3e52e4(0x1b3)]=_0x5cffd5,this;}['setHeight'](_0x29964b){const _0x1df8c1=_0x1265a8;return this[_0x1df8c1(0x1e7)]=_0x29964b,this;}['isLineShape'](){const _0x5a8e2e=_0x1265a8;let _0x2963a5=this[_0x5a8e2e(0x1e9)]['get'](_0x17e23b[_0x5a8e2e(0x187)])[_0x5a8e2e(0x1af)](this[_0x5a8e2e(0x1ff)],this[_0x5a8e2e(0x1c9)],this[_0x5a8e2e(0x1ef)]);return _0x2963a5?(0x0,_0xc8edff['isConnectorShape'])(_0x2963a5[_0x5a8e2e(0x1e1)]()):this[_0x5a8e2e(0x1ae)]?(0x0,_0xc8edff['isConnectorShape'])(this[_0x5a8e2e(0x1ae)]):!0x1;}['getConnectionSites'](){const _0x11a1f0=_0x1265a8;let _0x1dd293=this[_0x11a1f0(0x1e9)]['get'](_0x17e23b[_0x11a1f0(0x187)])[_0x11a1f0(0x1af)](this[_0x11a1f0(0x1ff)],this['subUnitId'],this[_0x11a1f0(0x1ef)]);if(!_0x1dd293)return[];let _0x35bc22=this[_0x11a1f0(0x1e9)][_0x11a1f0(0x1dc)](_0x437071[_0x11a1f0(0x19c)])[_0x11a1f0(0x1b4)]({'unitId':this['unitId'],'subUnitId':this[_0x11a1f0(0x1c9)],'drawingId':this[_0x11a1f0(0x1ef)]});if(!(_0x35bc22!=null&&_0x35bc22[_0x11a1f0(0x1ab)]))return[];let {width:_0x56a67e=0x0,height:_0x29be80=0x0}=_0x35bc22[_0x11a1f0(0x1ab)];return _0x1dd293[_0x11a1f0(0x166)]({'width':_0x56a67e,'height':_0x29be80}),_0x1dd293[_0x11a1f0(0x19a)]();}[_0x1265a8(0x1cc)](){const _0x440756=_0x1265a8;let _0x3cfdee=this['_injector']['get'](_0x17e23b[_0x440756(0x187)])[_0x440756(0x1af)](this[_0x440756(0x1ff)],this[_0x440756(0x1c9)],this['drawId']);if(!_0x3cfdee)return[];let _0x43ab12=this['_injector'][_0x440756(0x1dc)](_0x437071[_0x440756(0x19c)])['getDrawingByParam']({'unitId':this[_0x440756(0x1ff)],'subUnitId':this[_0x440756(0x1c9)],'drawingId':this[_0x440756(0x1ef)]});if(!(_0x43ab12!=null&&_0x43ab12[_0x440756(0x1ab)]))return[];let {width:_0x48ca1f=0x0,height:_0x4ed327=0x0}=_0x43ab12[_0x440756(0x1ab)];return _0x3cfdee[_0x440756(0x166)]({'width':_0x48ca1f,'height':_0x4ed327}),_0x3cfdee['getDrawingPoints']();}['getConnectorLinePoints'](){const _0x8ce5bf=_0x1265a8;let _0x5caf48=this['_injector']['get'](_0x17e23b[_0x8ce5bf(0x187)])[_0x8ce5bf(0x1af)](this['unitId'],this[_0x8ce5bf(0x1c9)],this['drawId']);if(!_0x5caf48||!(0x0,_0xc8edff['isConnectorShape'])(_0x5caf48['getShapeType']()))return[];let _0x266abf=this[_0x8ce5bf(0x1e9)][_0x8ce5bf(0x1dc)](_0x437071[_0x8ce5bf(0x19c)])[_0x8ce5bf(0x1b4)]({'unitId':this['unitId'],'subUnitId':this[_0x8ce5bf(0x1c9)],'drawingId':this['drawId']});if(!(_0x266abf!=null&&_0x266abf[_0x8ce5bf(0x1ab)]))return[];let {width:_0x43796a=0x0,height:_0x434395=0x0}=_0x266abf[_0x8ce5bf(0x1ab)];return _0x5caf48[_0x8ce5bf(0x166)]({'width':_0x43796a,'height':_0x434395}),_0x5caf48['getConnectorLinePoints']();}[_0x1265a8(0x1db)](){const _0x1f983b=_0x1265a8;var _0x41b9fa;let _0x4fdd08=this[_0x1f983b(0x1e9)][_0x1f983b(0x1dc)](_0x17e23b[_0x1f983b(0x187)])[_0x1f983b(0x1af)](this[_0x1f983b(0x1ff)],this[_0x1f983b(0x1c9)],this[_0x1f983b(0x1ef)]);return _0x4fdd08?(_0x41b9fa=_0x4fdd08[_0x1f983b(0x1db)]())==null?null:_0x41b9fa:null;}['getEndConnectInfo'](){const _0x4718cc=_0x1265a8;var _0x7edbff;let _0x22a51c=this[_0x4718cc(0x1e9)]['get'](_0x17e23b[_0x4718cc(0x187)])[_0x4718cc(0x1af)](this[_0x4718cc(0x1ff)],this[_0x4718cc(0x1c9)],this[_0x4718cc(0x1ef)]);return _0x22a51c?(_0x7edbff=_0x22a51c[_0x4718cc(0x164)]())==null?null:_0x7edbff:null;}['build'](){const _0x9916a0=_0x1265a8;var _0x5115ed,_0x253aa0;if(!this[_0x9916a0(0x1ae)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x1345ff=this['_injector'][_0x9916a0(0x1dc)](_0x589c3e[_0x9916a0(0x1a1)])['ensureSkeleton'](this[_0x9916a0(0x1ff)],this[_0x9916a0(0x1c9)]);if(!_0x1345ff)throw Error(_0x9916a0(0x209)+this[_0x9916a0(0x1ff)]+_0x9916a0(0x18d)+this['subUnitId']+_0x9916a0(0x18e));let {transform:_0xed8a8e}=(0x0,_0x589c3e[_0x9916a0(0x1a9)])(this['unitId'],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x1345ff);this['x']=this['x']>0x0?this['x']:_0xed8a8e['left'],this['y']=this['y']>0x0?this['y']:_0xed8a8e[_0x9916a0(0x173)];}return this[_0x9916a0(0x1b3)]=(_0x5115ed=this['width'])==null?_0x17e23b['DEFAULT_SHAPE_WIDTH']:_0x5115ed,this[_0x9916a0(0x1e7)]=(_0x253aa0=this[_0x9916a0(0x1e7)])==null?_0x17e23b[_0x9916a0(0x1c7)]:_0x253aa0,{'unitId':this[_0x9916a0(0x1ff)],'subUnitId':this[_0x9916a0(0x1c9)],'shapeId':this['drawId'],'shapeType':this[_0x9916a0(0x1ae)],'shapeData':Object[_0x9916a0(0x18a)](this[_0x9916a0(0x201)])['length']>0x0?this[_0x9916a0(0x201)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x9916a0(0x1e7)]};}[_0x1265a8(0x183)](){const _0x3c851f=_0x1265a8;return this[_0x3c851f(0x1ef)];}[_0x1265a8(0x1e1)](){return this['shapeType'];}[_0x1265a8(0x1e4)](){const _0x5a05ef=_0x1265a8;return this[_0x5a05ef(0x201)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x1265a8(0x1d1)](){const _0x550ce0=_0x1265a8;return{'width':this[_0x550ce0(0x1b3)],'height':this['height']};}},_0x339591=class extends _0x42aab5{constructor(_0x21ce6a,_0x57af0b,_0x2664de,_0x3ece33){const _0x8ff295=_0x1265a8;super(_0x21ce6a,_0x57af0b,_0x2664de,_0x3ece33),_0x4ffd9b(this,_0x8ff295(0x201),{});}[_0x1265a8(0x1b1)](_0xf6835){const _0x35f377=_0x1265a8;if(!(0x0,_0xc8edff['isConnectorShape'])(_0xf6835))throw Error(_0x35f377(0x17a)+_0xf6835+_0x35f377(0x1be));return super['setShapeType'](_0xf6835),this;}[_0x1265a8(0x1ca)](_0x1826b){const _0x507c1d=_0x1265a8;var _0x56f026,_0x2b9f5c;return(_0x56f026=this[_0x507c1d(0x201)])!=null&&_0x56f026['ln']||(this[_0x507c1d(0x201)]['ln']={}),!((_0x2b9f5c=this[_0x507c1d(0x201)])==null||(_0x2b9f5c=_0x2b9f5c['ln'])==null)&&_0x2b9f5c[_0x507c1d(0x208)]||(this[_0x507c1d(0x201)]['ln']['startArrow']={}),this[_0x507c1d(0x201)]['ln'][_0x507c1d(0x208)]['type']=_0x1826b,this;}[_0x1265a8(0x1e6)](_0x57f0a4){const _0x3eb6fc=_0x1265a8;var _0x3b3d2d,_0x27b1e5;return(_0x3b3d2d=this[_0x3eb6fc(0x201)])!=null&&_0x3b3d2d['ln']||(this[_0x3eb6fc(0x201)]['ln']={}),!((_0x27b1e5=this['shapeData'])==null||(_0x27b1e5=_0x27b1e5['ln'])==null)&&_0x27b1e5['endArrow']||(this[_0x3eb6fc(0x201)]['ln']['endArrow']={}),this['shapeData']['ln']['endArrow'][_0x3eb6fc(0x1c0)]=_0x57f0a4,this;}[_0x1265a8(0x1bd)](_0xb9ceb7){const _0x46d1d3=_0x1265a8;var _0x34c2be,_0x3e5d9b;return(_0x34c2be=this[_0x46d1d3(0x201)])!=null&&_0x34c2be['ln']||(this[_0x46d1d3(0x201)]['ln']={}),!((_0x3e5d9b=this[_0x46d1d3(0x201)])==null||(_0x3e5d9b=_0x3e5d9b['ln'])==null)&&_0x3e5d9b[_0x46d1d3(0x208)]||(this[_0x46d1d3(0x201)]['ln'][_0x46d1d3(0x208)]={}),this[_0x46d1d3(0x201)]['ln'][_0x46d1d3(0x208)][_0x46d1d3(0x199)]=_0xb9ceb7,this;}['setEndArrowSize'](_0x1e6f42){const _0x3c350c=_0x1265a8;var _0x2af916,_0x187d5f;return(_0x2af916=this[_0x3c350c(0x201)])!=null&&_0x2af916['ln']||(this[_0x3c350c(0x201)]['ln']={}),!((_0x187d5f=this[_0x3c350c(0x201)])==null||(_0x187d5f=_0x187d5f['ln'])==null)&&_0x187d5f[_0x3c350c(0x16f)]||(this[_0x3c350c(0x201)]['ln'][_0x3c350c(0x16f)]={}),this[_0x3c350c(0x201)]['ln'][_0x3c350c(0x16f)][_0x3c350c(0x199)]=_0x1e6f42,this;}[_0x1265a8(0x1b6)](){const _0x3e4f20=_0x1265a8;return super[_0x3e4f20(0x1b6)]();}[_0x1265a8(0x164)](){const _0x547d8e=_0x1265a8;var _0x5b356a;return((_0x5b356a=this[_0x547d8e(0x201)])==null||(_0x5b356a=_0x5b356a[_0x547d8e(0x1f2)])==null?void 0x0:_0x5b356a['to'])||null;}[_0x1265a8(0x1db)](){const _0x58a8ed=_0x1265a8;var _0x307e48;return((_0x307e48=this[_0x58a8ed(0x201)])==null||(_0x307e48=_0x307e48[_0x58a8ed(0x1f2)])==null?void 0x0:_0x307e48[_0x58a8ed(0x1c6)])||null;}};function _0x1a3961(_0x7dc05c,_0x487759,_0x5f2e3c,_0x4d495b,_0x4862b6,_0x47d02b){const _0x2aff7d=_0x1265a8;let _0x1446cc=_0x4862b6['getShapeModel'](_0x7dc05c,_0x487759,_0x5f2e3c);if(!_0x1446cc)return null;let _0x58d506=_0x47d02b[_0x2aff7d(0x1b4)]({'unitId':_0x7dc05c,'subUnitId':_0x487759,'drawingId':_0x5f2e3c});if(!(_0x58d506!=null&&_0x58d506[_0x2aff7d(0x1ab)]))return null;let {left:_0x143224=0x0,top:_0x440e46=0x0,width:_0x985917=0x0,height:_0x4702ad=0x0,flipX:_0x529555=!0x1,flipY:_0x46489b=!0x1,angle:_0x109838}=_0x58d506[_0x2aff7d(0x1ab)];_0x1446cc[_0x2aff7d(0x166)]({'width':_0x985917,'height':_0x4702ad});let _0x334e79=_0x1446cc[_0x2aff7d(0x19a)]()[_0x2aff7d(0x1d6)](_0x3327e3=>_0x3327e3[_0x2aff7d(0x1cb)]===_0x4d495b);if(!_0x334e79)return null;let _0xe413b3=_0x529555?_0x985917-_0x334e79['x']:_0x334e79['x'],_0x352371=_0x46489b?_0x4702ad-_0x334e79['y']:_0x334e79['y'];if(_0x109838&&_0x109838!==0x0){let _0x51e24d=_0x109838*Math['PI']/0xb4,_0x5c6424=Math[_0x2aff7d(0x178)](_0x51e24d),_0x32666d=Math['sin'](_0x51e24d),_0x30c798=_0x985917/0x2,_0x5baea9=_0x4702ad/0x2,_0x17f7d9=_0xe413b3-_0x30c798,_0x40cbfc=_0x352371-_0x5baea9;_0xe413b3=_0x30c798+_0x17f7d9*_0x5c6424-_0x40cbfc*_0x32666d,_0x352371=_0x5baea9+_0x17f7d9*_0x32666d+_0x40cbfc*_0x5c6424;}_0xe413b3+=_0x143224,_0x352371+=_0x440e46;let _0x4f311d=_0x334e79[_0x2aff7d(0x1ee)]/0xea60;_0x529555&&(_0x4f311d=0xb4-_0x4f311d),_0x46489b&&(_0x4f311d=-_0x4f311d),_0x4f311d+=_0x109838||0x0,_0x4f311d=(_0x4f311d%0x168+0x168)%0x168;let _0x1d39ad=(0x0,_0xc8edff[_0x2aff7d(0x16e)])({'left':_0x143224,'top':_0x440e46,'width':_0x985917,'height':_0x4702ad},_0x109838||0x0);return{'point':{'x':_0xe413b3,'y':_0x352371},'angle':_0x4f311d,'bounds':_0x1d39ad};}function _0x1891bb(_0x4c04d7,_0x3cef5d){const _0x4f7b76=_0x1265a8;let _0x1a0f17=_0x3cef5d['x']-_0x4c04d7['x'],_0xe83d9c=_0x3cef5d['y']-_0x4c04d7['y'];return Math[_0x4f7b76(0x20a)](_0x1a0f17)>=Math[_0x4f7b76(0x20a)](_0xe83d9c)?_0x1a0f17>=0x0?0xb4:0x0:_0xe83d9c>=0x0?0x10e:0x5a;}function _0x2a33ce(_0x3c0dfd,_0xdea2a5,_0x30f815,_0x1cf0ae,_0x2b9b7d,_0x54e71c,_0x43de86){const _0x321712=_0x1265a8;let _0x142e8c=_0x54e71c['getShapeModel'](_0x3c0dfd,_0xdea2a5,_0x30f815);if(!_0x142e8c)return null;let _0x8d0d20=_0x43de86[_0x321712(0x1b4)]({'unitId':_0x3c0dfd,'subUnitId':_0xdea2a5,'drawingId':_0x30f815});if(!(_0x8d0d20!=null&&_0x8d0d20['transform']))return null;let {left:_0x3ff74c=0x0,top:_0x52dbf4=0x0,width:_0x334726=0x0,height:_0x1cbd14=0x0,flipX:_0x459017=!0x1,flipY:_0x452696=!0x1}=_0x8d0d20[_0x321712(0x1ab)];_0x142e8c[_0x321712(0x166)]({'width':_0x334726,'height':_0x1cbd14});let _0x2f3e66=_0x142e8c[_0x321712(0x1da)]();if(_0x2f3e66[_0x321712(0x186)]<0x2)return null;let _0x2e282d=_0x1cf0ae?_0x2f3e66[0x0]:_0x2f3e66[_0x2f3e66[_0x321712(0x186)]-0x1],_0x1efa0e=new _0xc8edff[(_0x321712(0x1ec))]({'left':_0x3ff74c,'top':_0x52dbf4,'width':_0x334726,'height':_0x1cbd14,'flipX':_0x459017,'flipY':_0x452696})[_0x321712(0x169)](_0x2e282d);return{'point':_0x1efa0e,'angle':_0x1891bb(_0x2b9b7d[_0x321712(0x1fe)],_0x1efa0e),'bounds':{'left':_0x1efa0e['x'],'top':_0x1efa0e['y'],'width':0x0,'height':0x0}};}var _0x1c3d8a=class extends _0x5a18f5[_0x1265a8(0x18b)]{async[_0x1265a8(0x17b)](_0x263ba2){const _0x1aa240=_0x1265a8;let {unitId:_0x47fbc1,subUnitId:_0x2f575c,shapeId:_0x5b0f1f,shapeType:_0x499bba,shapeData:_0x444fed,x:_0x220ffd,y:_0x4a028b,width:_0x3777c8,height:_0x59d76a}=_0x263ba2;return this[_0x1aa240(0x1a6)]['executeCommand'](_0x17e23b[_0x1aa240(0x1a3)]['id'],{'unitId':_0x47fbc1,'subUnitId':_0x2f575c,'shapeId':_0x5b0f1f,'shapeType':_0x499bba,'shapeData':_0x444fed,'position':{'x':_0x220ffd,'y':_0x4a028b},'width':_0x3777c8,'height':_0x59d76a});}async[_0x1265a8(0x1e5)](_0x2ff009){const _0x15204a=_0x1265a8;let {unitId:_0x3d2c8a,subUnitId:_0x1e368f,shapeId:_0x259337,shapeType:_0x3584e5,shapeData:_0x5529c8,x:_0x5a8215,y:_0x5755b3,width:_0x36ea5a,height:_0xc88dd4}=_0x2ff009;return this['_commandService']['executeCommand'](_0x17e23b[_0x15204a(0x1fa)]['id'],{'unitId':_0x3d2c8a,'subUnitId':_0x1e368f,'shapeId':_0x259337,'shapeType':_0x3584e5,'shapeData':_0x5529c8,'position':{'x':_0x5a8215,'y':_0x5755b3},'width':_0x36ea5a,'height':_0xc88dd4});}['newShape'](_0x505849){const _0x21e83a=_0x1265a8;let _0x102f96=this[_0x21e83a(0x1f1)]()[_0x21e83a(0x1ce)](),_0x181270=this[_0x21e83a(0x1de)]();if(_0x505849){let _0x50f719=new _0x42aab5(_0x102f96,_0x181270,_0x505849[_0x21e83a(0x1ef)],this[_0x21e83a(0x1e9)]);return this['_preloadShapeProperties'](_0x50f719,_0x102f96,_0x181270,_0x505849[_0x21e83a(0x1ef)]),_0x50f719;}return new _0x42aab5(_0x102f96,_0x181270,(0x0,_0x5272a5[_0x21e83a(0x1eb)])(),this[_0x21e83a(0x1e9)]);}[_0x1265a8(0x1b2)](_0x501749){const _0x200a16=_0x1265a8;let _0x5cf358=this[_0x200a16(0x1f1)]()[_0x200a16(0x1ce)](),_0x561691=this['getSheetId']();if(_0x501749){let _0x2ab52f=new _0x339591(_0x5cf358,_0x561691,_0x501749['drawId'],this[_0x200a16(0x1e9)]);return this['_preloadShapeProperties'](_0x2ab52f,_0x5cf358,_0x561691,_0x501749[_0x200a16(0x1ef)]),_0x2ab52f;}return new _0x339591(_0x5cf358,_0x561691,(0x0,_0x5272a5[_0x200a16(0x1eb)])(),this[_0x200a16(0x1e9)]);}[_0x1265a8(0x1fc)](){const _0x49fdd5=_0x1265a8;let _0x121779=this[_0x49fdd5(0x1e9)][_0x49fdd5(0x1dc)](_0x482202[_0x49fdd5(0x1ba)]),_0x4290ec=this[_0x49fdd5(0x1f1)]()[_0x49fdd5(0x1ce)](),_0x18c5a2=this[_0x49fdd5(0x1de)](),_0x1e9120=_0x121779[_0x49fdd5(0x1e0)](_0x4290ec,_0x18c5a2);if(!_0x1e9120)return[];let _0x2f2b4a=[];for(let [_0x44f8cd,_0xd1ecb]of Object[_0x49fdd5(0x19b)](_0x1e9120))if(_0xd1ecb&&_0xd1ecb[_0x49fdd5(0x16b)]===_0x5272a5[_0x49fdd5(0x185)]['DRAWING_SHAPE']){let _0x47146e=new _0x42aab5(_0x4290ec,_0x18c5a2,_0x44f8cd,this['_injector']);this[_0x49fdd5(0x1c1)](_0x47146e,_0x4290ec,_0x18c5a2,_0x44f8cd),_0x2f2b4a['push'](_0x47146e);}return _0x2f2b4a;}[_0x1265a8(0x1f7)](_0x15dded){const _0x5cee6d=_0x1265a8;let {unitId:_0x32ca70,subUnitId:_0x484d1f,drawId:_0x1f09c9}=_0x15dded;return this[_0x5cee6d(0x1a6)]['executeCommand'](_0x482202['RemoveSheetDrawingCommand']['id'],{'unitId':_0x32ca70,'drawings':[{'unitId':_0x32ca70,'subUnitId':_0x484d1f,'drawingId':_0x1f09c9,'drawingType':_0x5272a5[_0x5cee6d(0x185)][_0x5cee6d(0x192)]}]});}async[_0x1265a8(0x1b0)](_0x2609f9){const _0x248659=_0x1265a8;let {connector:_0x504d9e,startTarget:_0x2c095a,endTarget:_0x3c0f10}=_0x2609f9;if(!_0x2c095a&&!_0x3c0f10)return!0x1;let _0x1385ce=this[_0x248659(0x1f1)]()[_0x248659(0x1ce)](),_0x4e7f30=this[_0x248659(0x1de)](),_0x10cae3=this[_0x248659(0x1e9)][_0x248659(0x1dc)](_0x17e23b[_0x248659(0x187)]),_0x50dedc=this[_0x248659(0x1e9)][_0x248659(0x1dc)](_0x437071[_0x248659(0x19c)]),_0x50e287=_0x10cae3[_0x248659(0x1af)](_0x1385ce,_0x4e7f30,_0x504d9e[_0x248659(0x1ef)]);if(!_0x50e287)return!0x1;let _0x46dbb8=_0x50e287[_0x248659(0x1e1)](),_0x2deb01=_0x50e287[_0x248659(0x1f0)](),_0x2a2acf={};for(let _0x8d5494 of _0x50e287[_0x248659(0x18f)]()){let _0x3ceaed=_0x50e287['getAdjustValueByName'](_0x8d5494);_0x3ceaed!==void 0x0&&(_0x2a2acf[_0x8d5494]=_0x3ceaed);}let {startInfo:_0xa42bc0,endInfo:_0x4550ff}=this['_resolveEndpoints'](_0x1385ce,_0x4e7f30,_0x504d9e,_0x50e287,_0x2c095a,_0x3c0f10,_0x10cae3,_0x50dedc,_0x2deb01);if(!_0xa42bc0||!_0x4550ff)return!0x1;let _0x403c19=(0x0,_0xc8edff['computeConnectorRouteLayout'])((0x0,_0xc8edff[_0x248659(0x1c4)])(_0xa42bc0,_0x4550ff,_0x46dbb8),_0x46dbb8),_0x4da2bc={};return _0x2c095a?_0x4da2bc[_0x248659(0x1c6)]={'shapeId':_0x2c095a[_0x248659(0x165)][_0x248659(0x1ef)],'cxnIndex':_0x2c095a[_0x248659(0x197)]}:_0x2deb01!=null&&_0x2deb01[_0x248659(0x1c6)]&&(_0x4da2bc['from']=_0x2deb01['from']),_0x3c0f10?_0x4da2bc['to']={'shapeId':_0x3c0f10[_0x248659(0x165)][_0x248659(0x1ef)],'cxnIndex':_0x3c0f10[_0x248659(0x197)]}:_0x2deb01!=null&&_0x2deb01['to']&&(_0x4da2bc['to']=_0x2deb01['to']),this[_0x248659(0x1a6)][_0x248659(0x1b9)](_0x17e23b[_0x248659(0x1ea)]['id'],{'unitId':_0x1385ce,'subUnitId':_0x4e7f30,'connectorShapeId':_0x504d9e[_0x248659(0x1ef)],'width':_0x403c19[_0x248659(0x198)][_0x248659(0x1b3)],'height':_0x403c19['worldRect'][_0x248659(0x1e7)],'left':_0x403c19['worldRect'][_0x248659(0x1a8)],'top':_0x403c19['worldRect'][_0x248659(0x173)],'flipX':_0x403c19[_0x248659(0x198)][_0x248659(0x16d)]||!0x1,'flipY':_0x403c19[_0x248659(0x198)][_0x248659(0x1ac)]||!0x1,'oldAdjustValues':_0x2a2acf,'newAdjustValues':_0x403c19['adjustValues'],'newLineType':_0x403c19[_0x248659(0x1bb)],'oldLineType':_0x46dbb8,'rotation':_0x403c19[_0x248659(0x1fb)],'oldRelation':_0x2deb01,'newRelation':_0x4da2bc});}['_preloadShapeProperties'](_0x646d4c,_0x357e53,_0x684359,_0xe7eda1){const _0x5b1324=_0x1265a8;let _0x3ccd92=this[_0x5b1324(0x1e9)][_0x5b1324(0x1dc)](_0x437071[_0x5b1324(0x19c)])[_0x5b1324(0x1b4)]({'unitId':_0x357e53,'subUnitId':_0x684359,'drawingId':_0xe7eda1});if(_0x3ccd92!=null&&_0x3ccd92[_0x5b1324(0x1ab)]){var _0x31f74e,_0x1d2e16,_0xefbd,_0x57f072;_0x646d4c['x']=(_0x31f74e=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x1a8)])==null?0x0:_0x31f74e,_0x646d4c['y']=(_0x1d2e16=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x173)])==null?0x0:_0x1d2e16,_0x646d4c['width']=(_0xefbd=_0x3ccd92[_0x5b1324(0x1ab)][_0x5b1324(0x1b3)])==null?_0x646d4c[_0x5b1324(0x1b3)]:_0xefbd,_0x646d4c[_0x5b1324(0x1e7)]=(_0x57f072=_0x3ccd92[_0x5b1324(0x1ab)]['height'])==null?_0x646d4c[_0x5b1324(0x1e7)]:_0x57f072;}let _0x27a485=this[_0x5b1324(0x1e9)][_0x5b1324(0x1dc)](_0x17e23b[_0x5b1324(0x187)])[_0x5b1324(0x1af)](_0x357e53,_0x684359,_0xe7eda1);if(_0x27a485){_0x646d4c[_0x5b1324(0x1ae)]=_0x27a485[_0x5b1324(0x1e1)]();let _0x414352=_0x27a485[_0x5b1324(0x1e4)]();_0x414352&&(_0x646d4c[_0x5b1324(0x201)]=JSON[_0x5b1324(0x179)](JSON[_0x5b1324(0x194)](_0x414352)));}}[_0x1265a8(0x189)](_0x16dea6,_0xfbf01a,_0x2a8286,_0x511815,_0x4be68f,_0x31c308,_0x3eaf24,_0x210752,_0x319ef5){const _0x8183f=_0x1265a8;let _0x30351b=null,_0x47bab7=null;return _0x4be68f&&(_0x30351b=_0x1a3961(_0x16dea6,_0xfbf01a,_0x4be68f[_0x8183f(0x165)][_0x8183f(0x1ef)],_0x4be68f[_0x8183f(0x197)],_0x3eaf24,_0x210752)),_0x31c308&&(_0x47bab7=_0x1a3961(_0x16dea6,_0xfbf01a,_0x31c308[_0x8183f(0x165)][_0x8183f(0x1ef)],_0x31c308[_0x8183f(0x197)],_0x3eaf24,_0x210752)),_0x30351b||(_0x30351b=this[_0x8183f(0x19f)](_0x16dea6,_0xfbf01a,_0x2a8286[_0x8183f(0x1ef)],!0x0,_0x47bab7,_0x319ef5==null?void 0x0:_0x319ef5['from'],_0x3eaf24,_0x210752)),_0x47bab7||(_0x47bab7=this[_0x8183f(0x19f)](_0x16dea6,_0xfbf01a,_0x2a8286[_0x8183f(0x1ef)],!0x1,_0x30351b,_0x319ef5==null?void 0x0:_0x319ef5['to'],_0x3eaf24,_0x210752)),{'startInfo':_0x30351b,'endInfo':_0x47bab7};}[_0x1265a8(0x19f)](_0x476ea0,_0x244e4d,_0x454e74,_0x2635fc,_0x5d9de0,_0x187fde,_0x2563d4,_0x7f38bd){const _0x161c49=_0x1265a8;if(_0x187fde){let _0x4f1da1=_0x1a3961(_0x476ea0,_0x244e4d,_0x187fde[_0x161c49(0x176)],_0x187fde[_0x161c49(0x1c2)],_0x2563d4,_0x7f38bd);if(_0x4f1da1)return _0x4f1da1;}return _0x5d9de0?_0x2a33ce(_0x476ea0,_0x244e4d,_0x454e74,_0x2635fc,_0x5d9de0,_0x2563d4,_0x7f38bd):null;}};_0x5a18f5[_0x1265a8(0x18b)][_0x1265a8(0x1f3)](_0x1c3d8a),_0x3d3915[_0x1265a8(0x1e8)]=_0x339591,_0x3d3915[_0x1265a8(0x1f9)]=_0x42aab5;}));
1
+ function _0x2846(_0x2cb0da,_0x472490){_0x2cb0da=_0x2cb0da-0x113;const _0x59853a=_0x5985();let _0x2846ea=_0x59853a[_0x2cb0da];return _0x2846ea;}function _0x5985(){const _0x365a73=['getPosition','64aZnFos','relation','@univerjs/drawing','connectionSiteIndex','1085016YjQckt','221988ZkSMnR','getShapes','gradientType','SetShapeDrawingDataCommand','getBasicShapeRotateBound','stringify','SheetSkeletonService','getUnitId','setStrokeLineCapType','Skeleton\x20for\x20unitId\x20','getConnectionSiteList','constructor','gradientStops','getShapeModel','computeConnectorRouteLayout','type','ShapeArrowSizeEnum','build','opacity','amd','@univerjs/sheets-drawing','flipX','newShape','DrawingTypeEnum','600935NMcgvf','GradientFill','defineProperty','DRAWING_SHAPE','SheetsShapeService','push','ShapeLineCapEnum','exports','_injector','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','index','\x20not\x20found','UpdateConnectorRelationCommand','stroke','fill','ShapeFillEnum','updateShape','entries','1040226MxOcKj','getShapeData','setAbsolutePosition','getStartConnectInfo','sin','dashType','13057979xlwUXi','adjustValues','generateRandomId','size','insertShape','drawId','ShapeLineTypeEnum',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','flipY','transform','shapeType','setStrokeColor','from','_preloadShapeProperties','Module','parse','function','updateContext','extend','setStrokeLineDashType','left','DEFAULT_SHAPE_WIDTH','object','length','prototype','InsertShapeCommand','_commandService','setShapeType','shapeId','find','width','getDrawingData','abs','toStringTag','@univerjs/sheets','NoFill','\x20and\x20subUnitId\x20','setHeight','getSheetId','getEndConnectInfo','height','UniverSheetsFacade','getShapeRelation','_resolveExistingOrFreeEndpoint','UniverDrawing','isLineShape','shape','ConnectorCoordinateTransform','setStrokeOpacity','executeCommand','@univerjs/core','FConnectorShape','top','SolidFill','keys','getConnectorLinePoints','getAdjustNames','ShapeGradientTypeEnum','10IqenJJ','newConnector','startArrow','getWorkbook','getShapeId','setStartArrowSize','getSize','unitId','RemoveSheetDrawingCommand','cos','UniverProSheetsShapeFacade','getDrawingByParam','color','ShapeLineDashEnum','6pwvZEb','string','ShapeTypeEnum','setStrokeLineType','rotation','symbol','FShape','getShapeType','UniverCore','get','FEnum','endArrow','UniverProSheetsShape','point','isConnectorShape','UniverSheetsDrawing','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','UniverProEngineShape','653247FikjNx','_resolveEndpoints','shapeData','ShapeArrowTypeEnum','lineStrokeType','subUnitId','FWorksheet','setShapeGradientFill','setEndArrowSize','IDrawingManagerService','fillType','worldRect','convertPositionCellToSheetOverGrid','DEFAULT_SHAPE_HEIGHT','1868447hUvqnx','3WjYSsg'];_0x5985=function(){return _0x365a73;};return _0x5985();}(function(_0x181a76,_0x4412d8){const _0x19fe2c=_0x2846,_0x5ca69d=_0x181a76();while(!![]){try{const _0x443134=-parseInt(_0x19fe2c(0x16d))/0x1+parseInt(_0x19fe2c(0x197))/0x2+parseInt(_0x19fe2c(0x166))/0x3*(parseInt(_0x19fe2c(0x16c))/0x4)+parseInt(_0x19fe2c(0x185))/0x5+parseInt(_0x19fe2c(0x145))/0x6*(parseInt(_0x19fe2c(0x165))/0x7)+-parseInt(_0x19fe2c(0x168))/0x8*(-parseInt(_0x19fe2c(0x157))/0x9)+parseInt(_0x19fe2c(0x137))/0xa*(-parseInt(_0x19fe2c(0x19d))/0xb);if(_0x443134===_0x4412d8)break;else _0x5ca69d['push'](_0x5ca69d['shift']());}catch(_0xccd3b7){_0x5ca69d['push'](_0x5ca69d['shift']());}}}(_0x5985,0x5576e),function(_0x4ddbbf,_0x104fd6){const _0x289752=_0x2846;typeof exports=='object'&&typeof module<'u'?_0x104fd6(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x289752(0x1ad)&&define[_0x289752(0x180)]?define([_0x289752(0x18c),'@univerjs-pro/engine-shape','@univerjs/core/facade','@univerjs-pro/sheets-shape',_0x289752(0x12f),_0x289752(0x16a),_0x289752(0x11f),_0x289752(0x181),'@univerjs/sheets/facade'],_0x104fd6):(_0x4ddbbf=typeof globalThis<'u'?globalThis:_0x4ddbbf||self,_0x104fd6(_0x4ddbbf[_0x289752(0x141)]={},_0x4ddbbf[_0x289752(0x156)],_0x4ddbbf['UniverCoreFacade'],_0x4ddbbf[_0x289752(0x151)],_0x4ddbbf[_0x289752(0x14d)],_0x4ddbbf[_0x289752(0x129)],_0x4ddbbf['UniverSheets'],_0x4ddbbf[_0x289752(0x154)],_0x4ddbbf[_0x289752(0x126)]));}(this,function(_0x3f8ca6,_0x4ea94f,_0x37756b,_0x4e1e34,_0x356e58,_0x870f2e,_0x281587,_0x568648,_0x1a3e98){const _0x67df2d=_0x2846;Object[_0x67df2d(0x187)](_0x3f8ca6,Symbol[_0x67df2d(0x11e)],{'value':_0x67df2d(0x1ab)});var _0x474493=class extends _0x37756b[_0x67df2d(0x14f)]{get[_0x67df2d(0x147)](){return _0x4ea94f['ShapeTypeEnum'];}get[_0x67df2d(0x194)](){const _0xcb42c4=_0x67df2d;return _0x4ea94f[_0xcb42c4(0x194)];}get[_0x67df2d(0x136)](){const _0x1c4075=_0x67df2d;return _0x4ea94f[_0x1c4075(0x136)];}get['ShapeLineTypeEnum'](){const _0x25462c=_0x67df2d;return _0x4ea94f[_0x25462c(0x1a3)];}get[_0x67df2d(0x144)](){return _0x4ea94f['ShapeLineDashEnum'];}get[_0x67df2d(0x18b)](){const _0x589f9b=_0x67df2d;return _0x4ea94f[_0x589f9b(0x18b)];}get['ShapeLineJoinEnum'](){return _0x4ea94f['ShapeLineJoinEnum'];}get[_0x67df2d(0x15a)](){const _0x18da33=_0x67df2d;return _0x4ea94f[_0x18da33(0x15a)];}get[_0x67df2d(0x17d)](){const _0x519c91=_0x67df2d;return _0x4ea94f[_0x519c91(0x17d)];}};_0x37756b[_0x67df2d(0x14f)]['extend'](_0x474493);function _0x56afe8(_0x219404){'@babel/helpers - typeof';const _0x18f4b6=_0x67df2d;return _0x56afe8=typeof Symbol==_0x18f4b6(0x1ad)&&typeof Symbol['iterator']==_0x18f4b6(0x14a)?function(_0xd310af){return typeof _0xd310af;}:function(_0x26e0ca){const _0x28deab=_0x18f4b6;return _0x26e0ca&&typeof Symbol=='function'&&_0x26e0ca[_0x28deab(0x178)]===Symbol&&_0x26e0ca!==Symbol[_0x28deab(0x115)]?_0x28deab(0x14a):typeof _0x26e0ca;},_0x56afe8(_0x219404);}function _0x4d4ff0(_0x271fb6,_0x3f3bbc){const _0x2e1f2d=_0x67df2d;if(_0x56afe8(_0x271fb6)!=_0x2e1f2d(0x113)||!_0x271fb6)return _0x271fb6;var _0x417b1d=_0x271fb6[Symbol['toPrimitive']];if(_0x417b1d!==void 0x0){var _0x2585bb=_0x417b1d['call'](_0x271fb6,_0x3f3bbc||'default');if(_0x56afe8(_0x2585bb)!=_0x2e1f2d(0x113))return _0x2585bb;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3f3bbc==='string'?String:Number)(_0x271fb6);}function _0x4b47d1(_0x35f76b){const _0x2be06e=_0x67df2d;var _0x2cce61=_0x4d4ff0(_0x35f76b,_0x2be06e(0x146));return _0x56afe8(_0x2cce61)==_0x2be06e(0x14a)?_0x2cce61:_0x2cce61+'';}function _0x25c3af(_0x5775af,_0x104229,_0x430aa9){return(_0x104229=_0x4b47d1(_0x104229))in _0x5775af?Object['defineProperty'](_0x5775af,_0x104229,{'value':_0x430aa9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5775af[_0x104229]=_0x430aa9,_0x5775af;}var _0x4a2ff6=class{constructor(_0x35597c,_0x5ad5ba,_0x2e1984,_0x2351d2){const _0x1f2369=_0x67df2d;_0x25c3af(this,_0x1f2369(0x13e),void 0x0),_0x25c3af(this,_0x1f2369(0x15c),void 0x0),_0x25c3af(this,'drawId',void 0x0),_0x25c3af(this,'x',0x0),_0x25c3af(this,'y',0x0),_0x25c3af(this,_0x1f2369(0x11b),_0x4e1e34[_0x1f2369(0x1b2)]),_0x25c3af(this,_0x1f2369(0x125),_0x4e1e34['DEFAULT_SHAPE_HEIGHT']),_0x25c3af(this,_0x1f2369(0x1a7),void 0x0),_0x25c3af(this,_0x1f2369(0x159),{}),_0x25c3af(this,_0x1f2369(0x18d),void 0x0),this['unitId']=_0x35597c,this['subUnitId']=_0x5ad5ba,this[_0x1f2369(0x1a2)]=_0x2e1984||(0x0,_0x356e58['generateRandomId'])(),this[_0x1f2369(0x18d)]=_0x2351d2;}['setPosition'](_0x540982,_0x3f802f,_0xfce3b1,_0x13f9ae){const _0x35354f=_0x67df2d;let _0x4ff1db=this[_0x35354f(0x18d)][_0x35354f(0x14e)](_0x281587[_0x35354f(0x173)])['ensureSkeleton'](this['unitId'],this[_0x35354f(0x15c)]);if(!_0x4ff1db)throw Error(_0x35354f(0x176)+this[_0x35354f(0x13e)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+_0x35354f(0x190));let {transform:_0xefa40b}=(0x0,_0x281587['convertPositionCellToSheetOverGrid'])(this[_0x35354f(0x13e)],this[_0x35354f(0x15c)],{'row':_0x540982,'column':_0x3f802f,'rowOffset':_0xfce3b1,'columnOffset':_0x13f9ae},0x1,0x1,_0x4ff1db);return this['x']=_0xefa40b[_0x35354f(0x1b1)],this['y']=_0xefa40b['top'],this;}[_0x67df2d(0x199)](_0x3e3b51,_0x4b25a8){return this['x']=_0x3e3b51,this['y']=_0x4b25a8,this;}[_0x67df2d(0x118)](_0x204ae0){const _0x416c64=_0x67df2d;return this[_0x416c64(0x1a7)]=_0x204ae0,this;}['setShapeSolidFill'](_0x38f21f,_0x32905d){const _0x4a9c4f=_0x67df2d;return this[_0x4a9c4f(0x159)]['fill']||(this[_0x4a9c4f(0x159)][_0x4a9c4f(0x193)]={}),this[_0x4a9c4f(0x159)][_0x4a9c4f(0x193)][_0x4a9c4f(0x161)]=_0x4ea94f[_0x4a9c4f(0x194)][_0x4a9c4f(0x132)],_0x38f21f!==void 0x0&&(this[_0x4a9c4f(0x159)]['fill']['color']=_0x38f21f),_0x32905d!==void 0x0&&(this['shapeData'][_0x4a9c4f(0x193)][_0x4a9c4f(0x17f)]=_0x32905d),this;}[_0x67df2d(0x15e)](_0x268741,_0x3bca9c,_0x589efc){const _0xe1b953=_0x67df2d;if(_0x3bca9c===void 0x0||_0x3bca9c[_0xe1b953(0x114)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this[_0xe1b953(0x159)]['fill']||(this['shapeData']['fill']={}),this[_0xe1b953(0x159)][_0xe1b953(0x193)][_0xe1b953(0x179)]=_0x3bca9c,this['shapeData']['fill'][_0xe1b953(0x161)]=_0x4ea94f[_0xe1b953(0x194)][_0xe1b953(0x186)],this[_0xe1b953(0x159)][_0xe1b953(0x193)][_0xe1b953(0x16f)]=_0x268741,_0x589efc!==void 0x0&&(this[_0xe1b953(0x159)][_0xe1b953(0x193)]['gradientAngle']=_0x589efc),this;}['setNoneFill'](){const _0xa12151=_0x67df2d;return this[_0xa12151(0x159)][_0xa12151(0x193)]={'fillType':_0x4ea94f[_0xa12151(0x194)][_0xa12151(0x120)]},this;}[_0x67df2d(0x1a8)](_0x261b69){const _0x23d254=_0x67df2d;return this[_0x23d254(0x159)][_0x23d254(0x192)]||(this['shapeData'][_0x23d254(0x192)]={}),this[_0x23d254(0x159)]['stroke'][_0x23d254(0x143)]=_0x261b69,this;}['setStrokeWidth'](_0xcc372b){const _0x1df67b=_0x67df2d;return this[_0x1df67b(0x159)][_0x1df67b(0x192)]||(this['shapeData'][_0x1df67b(0x192)]={}),this[_0x1df67b(0x159)][_0x1df67b(0x192)][_0x1df67b(0x11b)]=_0xcc372b,this;}[_0x67df2d(0x1b0)](_0x30b08a){const _0x12b05b=_0x67df2d;return this['shapeData'][_0x12b05b(0x192)]||(this[_0x12b05b(0x159)]['stroke']={}),this[_0x12b05b(0x159)][_0x12b05b(0x192)][_0x12b05b(0x19c)]=_0x30b08a,this;}['setStrokeLineJoinType'](_0x3be875){const _0x5c665a=_0x67df2d;return this[_0x5c665a(0x159)][_0x5c665a(0x192)]||(this[_0x5c665a(0x159)][_0x5c665a(0x192)]={}),this[_0x5c665a(0x159)][_0x5c665a(0x192)]['lineJoinType']=_0x3be875,this;}[_0x67df2d(0x175)](_0x40f552){const _0x562219=_0x67df2d;return this[_0x562219(0x159)][_0x562219(0x192)]||(this[_0x562219(0x159)][_0x562219(0x192)]={}),this[_0x562219(0x159)][_0x562219(0x192)]['capType']=_0x40f552,this;}[_0x67df2d(0x12d)](_0x3a9cd9){const _0x384ea3=_0x67df2d;return this[_0x384ea3(0x159)][_0x384ea3(0x192)]||(this[_0x384ea3(0x159)][_0x384ea3(0x192)]={}),this[_0x384ea3(0x159)]['stroke'][_0x384ea3(0x17f)]=_0x3a9cd9,this;}[_0x67df2d(0x148)](_0x129296){const _0xa529c3=_0x67df2d;return this['shapeData'][_0xa529c3(0x192)]||(this[_0xa529c3(0x159)][_0xa529c3(0x192)]={}),this[_0xa529c3(0x159)][_0xa529c3(0x192)][_0xa529c3(0x15b)]=_0x129296,this;}['setWidth'](_0x131f57){const _0x34b826=_0x67df2d;return this[_0x34b826(0x11b)]=_0x131f57,this;}[_0x67df2d(0x122)](_0x27b853){const _0x22d827=_0x67df2d;return this[_0x22d827(0x125)]=_0x27b853,this;}[_0x67df2d(0x12a)](){const _0x362434=_0x67df2d;let _0x10b2d8=this[_0x362434(0x18d)][_0x362434(0x14e)](_0x4e1e34[_0x362434(0x189)])[_0x362434(0x17a)](this['unitId'],this['subUnitId'],this[_0x362434(0x1a2)]);return _0x10b2d8?(0x0,_0x4ea94f[_0x362434(0x153)])(_0x10b2d8[_0x362434(0x14c)]()):this['shapeType']?(0x0,_0x4ea94f['isConnectorShape'])(this[_0x362434(0x1a7)]):!0x1;}['getConnectionSites'](){const _0x574bb1=_0x67df2d;let _0x26ddaf=this['_injector']['get'](_0x4e1e34[_0x574bb1(0x189)])[_0x574bb1(0x17a)](this['unitId'],this[_0x574bb1(0x15c)],this[_0x574bb1(0x1a2)]);if(!_0x26ddaf)return[];let _0x47d6e7=this['_injector']['get'](_0x870f2e['IDrawingManagerService'])[_0x574bb1(0x142)]({'unitId':this[_0x574bb1(0x13e)],'subUnitId':this[_0x574bb1(0x15c)],'drawingId':this[_0x574bb1(0x1a2)]});if(!(_0x47d6e7!=null&&_0x47d6e7[_0x574bb1(0x1a6)]))return[];let {width:_0x1945bf=0x0,height:_0x46469a=0x0}=_0x47d6e7[_0x574bb1(0x1a6)];return _0x26ddaf[_0x574bb1(0x1ae)]({'width':_0x1945bf,'height':_0x46469a}),_0x26ddaf[_0x574bb1(0x177)]();}['getAdjustPoints'](){const _0x48fa3d=_0x67df2d;let _0x5f53e4=this[_0x48fa3d(0x18d)]['get'](_0x4e1e34[_0x48fa3d(0x189)])['getShapeModel'](this['unitId'],this[_0x48fa3d(0x15c)],this['drawId']);if(!_0x5f53e4)return[];let _0x2427da=this[_0x48fa3d(0x18d)][_0x48fa3d(0x14e)](_0x870f2e['IDrawingManagerService'])[_0x48fa3d(0x142)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x48fa3d(0x1a2)]});if(!(_0x2427da!=null&&_0x2427da[_0x48fa3d(0x1a6)]))return[];let {width:_0x2f95cc=0x0,height:_0x5a4dcc=0x0}=_0x2427da[_0x48fa3d(0x1a6)];return _0x5f53e4['updateContext']({'width':_0x2f95cc,'height':_0x5a4dcc}),_0x5f53e4['getDrawingPoints']();}[_0x67df2d(0x134)](){const _0x504f50=_0x67df2d;let _0x2d7ad0=this[_0x504f50(0x18d)]['get'](_0x4e1e34[_0x504f50(0x189)])[_0x504f50(0x17a)](this[_0x504f50(0x13e)],this[_0x504f50(0x15c)],this['drawId']);if(!_0x2d7ad0||!(0x0,_0x4ea94f[_0x504f50(0x153)])(_0x2d7ad0[_0x504f50(0x14c)]()))return[];let _0x2ffa93=this[_0x504f50(0x18d)]['get'](_0x870f2e[_0x504f50(0x160)])[_0x504f50(0x142)]({'unitId':this[_0x504f50(0x13e)],'subUnitId':this[_0x504f50(0x15c)],'drawingId':this[_0x504f50(0x1a2)]});if(!(_0x2ffa93!=null&&_0x2ffa93[_0x504f50(0x1a6)]))return[];let {width:_0x5bf09a=0x0,height:_0x740fe8=0x0}=_0x2ffa93[_0x504f50(0x1a6)];return _0x2d7ad0[_0x504f50(0x1ae)]({'width':_0x5bf09a,'height':_0x740fe8}),_0x2d7ad0[_0x504f50(0x134)]();}[_0x67df2d(0x19a)](){const _0xd3e6cb=_0x67df2d;var _0xaafbc1;let _0x5d800e=this['_injector'][_0xd3e6cb(0x14e)](_0x4e1e34[_0xd3e6cb(0x189)])[_0xd3e6cb(0x17a)](this['unitId'],this[_0xd3e6cb(0x15c)],this[_0xd3e6cb(0x1a2)]);return _0x5d800e?(_0xaafbc1=_0x5d800e[_0xd3e6cb(0x19a)]())==null?null:_0xaafbc1:null;}[_0x67df2d(0x124)](){const _0x2ecf41=_0x67df2d;var _0x4711f3;let _0x17c3b1=this[_0x2ecf41(0x18d)]['get'](_0x4e1e34[_0x2ecf41(0x189)])[_0x2ecf41(0x17a)](this[_0x2ecf41(0x13e)],this['subUnitId'],this[_0x2ecf41(0x1a2)]);return _0x17c3b1?(_0x4711f3=_0x17c3b1['getEndConnectInfo']())==null?null:_0x4711f3:null;}[_0x67df2d(0x17e)](){const _0x18abd8=_0x67df2d;var _0x29f558,_0x11746f;if(!this['shapeType'])throw Error(_0x18abd8(0x18e));if(this['x']===0x0||this['y']===0x0){let _0x595070=this['_injector']['get'](_0x281587[_0x18abd8(0x173)])['ensureSkeleton'](this[_0x18abd8(0x13e)],this[_0x18abd8(0x15c)]);if(!_0x595070)throw Error(_0x18abd8(0x176)+this['unitId']+_0x18abd8(0x121)+this[_0x18abd8(0x15c)]+_0x18abd8(0x190));let {transform:_0x574d9c}=(0x0,_0x281587[_0x18abd8(0x163)])(this[_0x18abd8(0x13e)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x595070);this['x']=this['x']>0x0?this['x']:_0x574d9c[_0x18abd8(0x1b1)],this['y']=this['y']>0x0?this['y']:_0x574d9c[_0x18abd8(0x131)];}return this[_0x18abd8(0x11b)]=(_0x29f558=this[_0x18abd8(0x11b)])==null?_0x4e1e34['DEFAULT_SHAPE_WIDTH']:_0x29f558,this[_0x18abd8(0x125)]=(_0x11746f=this[_0x18abd8(0x125)])==null?_0x4e1e34[_0x18abd8(0x164)]:_0x11746f,{'unitId':this['unitId'],'subUnitId':this[_0x18abd8(0x15c)],'shapeId':this[_0x18abd8(0x1a2)],'shapeType':this[_0x18abd8(0x1a7)],'shapeData':Object[_0x18abd8(0x133)](this['shapeData'])[_0x18abd8(0x114)]>0x0?this[_0x18abd8(0x159)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x18abd8(0x11b)],'height':this['height']};}[_0x67df2d(0x13b)](){const _0x105356=_0x67df2d;return this[_0x105356(0x1a2)];}['getShapeType'](){const _0x560e29=_0x67df2d;return this[_0x560e29(0x1a7)];}[_0x67df2d(0x198)](){const _0x4ed0f5=_0x67df2d;return this[_0x4ed0f5(0x159)];}[_0x67df2d(0x167)](){return{'x':this['x'],'y':this['y']};}[_0x67df2d(0x13d)](){const _0x4878e7=_0x67df2d;return{'width':this[_0x4878e7(0x11b)],'height':this['height']};}},_0x4e9bfa=class extends _0x4a2ff6{constructor(_0x468d77,_0x458d9f,_0x406e48,_0x1c20a7){const _0x427c51=_0x67df2d;super(_0x468d77,_0x458d9f,_0x406e48,_0x1c20a7),_0x25c3af(this,_0x427c51(0x159),{});}['setShapeType'](_0x4b4d50){const _0x37220b=_0x67df2d;if(!(0x0,_0x4ea94f[_0x37220b(0x153)])(_0x4b4d50))throw Error(_0x37220b(0x155)+_0x4b4d50+_0x37220b(0x1a4));return super[_0x37220b(0x118)](_0x4b4d50),this;}['setStartArrowType'](_0xcc5185){const _0x101ba4=_0x67df2d;var _0x4cc997,_0x27a1b1;return(_0x4cc997=this[_0x101ba4(0x159)])!=null&&_0x4cc997['ln']||(this[_0x101ba4(0x159)]['ln']={}),!((_0x27a1b1=this[_0x101ba4(0x159)])==null||(_0x27a1b1=_0x27a1b1['ln'])==null)&&_0x27a1b1['startArrow']||(this[_0x101ba4(0x159)]['ln'][_0x101ba4(0x139)]={}),this[_0x101ba4(0x159)]['ln'][_0x101ba4(0x139)]['type']=_0xcc5185,this;}['setEndArrowType'](_0x5c4f3b){const _0x12d8d8=_0x67df2d;var _0x437580,_0x24eb16;return(_0x437580=this[_0x12d8d8(0x159)])!=null&&_0x437580['ln']||(this[_0x12d8d8(0x159)]['ln']={}),!((_0x24eb16=this[_0x12d8d8(0x159)])==null||(_0x24eb16=_0x24eb16['ln'])==null)&&_0x24eb16['endArrow']||(this[_0x12d8d8(0x159)]['ln'][_0x12d8d8(0x150)]={}),this['shapeData']['ln'][_0x12d8d8(0x150)][_0x12d8d8(0x17c)]=_0x5c4f3b,this;}[_0x67df2d(0x13c)](_0x1c3424){const _0x5ce6f7=_0x67df2d;var _0x316b5f,_0x39a346;return(_0x316b5f=this[_0x5ce6f7(0x159)])!=null&&_0x316b5f['ln']||(this[_0x5ce6f7(0x159)]['ln']={}),!((_0x39a346=this[_0x5ce6f7(0x159)])==null||(_0x39a346=_0x39a346['ln'])==null)&&_0x39a346[_0x5ce6f7(0x139)]||(this[_0x5ce6f7(0x159)]['ln'][_0x5ce6f7(0x139)]={}),this[_0x5ce6f7(0x159)]['ln'][_0x5ce6f7(0x139)]['size']=_0x1c3424,this;}[_0x67df2d(0x15f)](_0xcb26e2){const _0x5ec29a=_0x67df2d;var _0xe53eaa,_0x37631c;return(_0xe53eaa=this[_0x5ec29a(0x159)])!=null&&_0xe53eaa['ln']||(this['shapeData']['ln']={}),!((_0x37631c=this[_0x5ec29a(0x159)])==null||(_0x37631c=_0x37631c['ln'])==null)&&_0x37631c[_0x5ec29a(0x150)]||(this[_0x5ec29a(0x159)]['ln'][_0x5ec29a(0x150)]={}),this['shapeData']['ln'][_0x5ec29a(0x150)][_0x5ec29a(0x1a0)]=_0xcb26e2,this;}[_0x67df2d(0x17e)](){return super['build']();}[_0x67df2d(0x124)](){const _0x227882=_0x67df2d;var _0x54223b;return((_0x54223b=this['shapeData'])==null||(_0x54223b=_0x54223b[_0x227882(0x169)])==null?void 0x0:_0x54223b['to'])||null;}[_0x67df2d(0x19a)](){const _0x3d4d2e=_0x67df2d;var _0x3bacaa;return((_0x3bacaa=this['shapeData'])==null||(_0x3bacaa=_0x3bacaa['relation'])==null?void 0x0:_0x3bacaa[_0x3d4d2e(0x1a9)])||null;}};function _0x4d0140(_0x520b87,_0x51f558,_0x2149c4,_0x392297,_0x5b6c6e,_0x53c5a9){const _0x3560ee=_0x67df2d;let _0x2be592=_0x5b6c6e[_0x3560ee(0x17a)](_0x520b87,_0x51f558,_0x2149c4);if(!_0x2be592)return null;let _0x590a53=_0x53c5a9['getDrawingByParam']({'unitId':_0x520b87,'subUnitId':_0x51f558,'drawingId':_0x2149c4});if(!(_0x590a53!=null&&_0x590a53['transform']))return null;let {left:_0x699213=0x0,top:_0x33f3db=0x0,width:_0x351728=0x0,height:_0x2d6948=0x0,flipX:_0x271ff5=!0x1,flipY:_0x49e0e4=!0x1,angle:_0x2352ba}=_0x590a53[_0x3560ee(0x1a6)];_0x2be592['updateContext']({'width':_0x351728,'height':_0x2d6948});let _0x3e58f0=_0x2be592[_0x3560ee(0x177)]()[_0x3560ee(0x11a)](_0x207157=>_0x207157[_0x3560ee(0x18f)]===_0x392297);if(!_0x3e58f0)return null;let _0x11fa98=_0x271ff5?_0x351728-_0x3e58f0['x']:_0x3e58f0['x'],_0x1b9756=_0x49e0e4?_0x2d6948-_0x3e58f0['y']:_0x3e58f0['y'];if(_0x2352ba&&_0x2352ba!==0x0){let _0x4c4967=_0x2352ba*Math['PI']/0xb4,_0x521041=Math[_0x3560ee(0x140)](_0x4c4967),_0x107fb3=Math[_0x3560ee(0x19b)](_0x4c4967),_0xb71e78=_0x351728/0x2,_0x229d85=_0x2d6948/0x2,_0x117471=_0x11fa98-_0xb71e78,_0x5858d2=_0x1b9756-_0x229d85;_0x11fa98=_0xb71e78+_0x117471*_0x521041-_0x5858d2*_0x107fb3,_0x1b9756=_0x229d85+_0x117471*_0x107fb3+_0x5858d2*_0x521041;}_0x11fa98+=_0x699213,_0x1b9756+=_0x33f3db;let _0x2f9fe5=_0x3e58f0['ang']/0xea60;_0x271ff5&&(_0x2f9fe5=0xb4-_0x2f9fe5),_0x49e0e4&&(_0x2f9fe5=-_0x2f9fe5),_0x2f9fe5+=_0x2352ba||0x0,_0x2f9fe5=(_0x2f9fe5%0x168+0x168)%0x168;let _0x3a254d=(0x0,_0x4ea94f[_0x3560ee(0x171)])({'left':_0x699213,'top':_0x33f3db,'width':_0x351728,'height':_0x2d6948},_0x2352ba||0x0);return{'point':{'x':_0x11fa98,'y':_0x1b9756},'angle':_0x2f9fe5,'bounds':_0x3a254d};}function _0x229e2f(_0x5eb368,_0x170b14){const _0x117019=_0x67df2d;let _0x5e168a=_0x170b14['x']-_0x5eb368['x'],_0x393bef=_0x170b14['y']-_0x5eb368['y'];return Math[_0x117019(0x11d)](_0x5e168a)>=Math[_0x117019(0x11d)](_0x393bef)?_0x5e168a>=0x0?0xb4:0x0:_0x393bef>=0x0?0x10e:0x5a;}function _0x5a1d2d(_0x413de6,_0x207632,_0x28139d,_0x583a15,_0x512b35,_0xbcc6f,_0x413a4c){const _0x10d1fd=_0x67df2d;let _0x54a791=_0xbcc6f['getShapeModel'](_0x413de6,_0x207632,_0x28139d);if(!_0x54a791)return null;let _0xd77304=_0x413a4c[_0x10d1fd(0x142)]({'unitId':_0x413de6,'subUnitId':_0x207632,'drawingId':_0x28139d});if(!(_0xd77304!=null&&_0xd77304['transform']))return null;let {left:_0x5ebb65=0x0,top:_0x249457=0x0,width:_0x3b8e04=0x0,height:_0x512294=0x0,flipX:_0x45c2ac=!0x1,flipY:_0x509842=!0x1}=_0xd77304[_0x10d1fd(0x1a6)];_0x54a791[_0x10d1fd(0x1ae)]({'width':_0x3b8e04,'height':_0x512294});let _0x5402c1=_0x54a791[_0x10d1fd(0x134)]();if(_0x5402c1[_0x10d1fd(0x114)]<0x2)return null;let _0x11a944=_0x583a15?_0x5402c1[0x0]:_0x5402c1[_0x5402c1[_0x10d1fd(0x114)]-0x1],_0x5622b4=new _0x4ea94f[(_0x10d1fd(0x12c))]({'left':_0x5ebb65,'top':_0x249457,'width':_0x3b8e04,'height':_0x512294,'flipX':_0x45c2ac,'flipY':_0x509842})['localToWorld'](_0x11a944);return{'point':_0x5622b4,'angle':_0x229e2f(_0x512b35[_0x10d1fd(0x152)],_0x5622b4),'bounds':{'left':_0x5622b4['x'],'top':_0x5622b4['y'],'width':0x0,'height':0x0}};}var _0x5d33e3=class extends _0x1a3e98[_0x67df2d(0x15d)]{async[_0x67df2d(0x1a1)](_0x24bdcd){const _0x10e9fa=_0x67df2d;let {unitId:_0x3cc14b,subUnitId:_0x39bd24,shapeId:_0x39e5ca,shapeType:_0x39f8e9,shapeData:_0x291824,x:_0xb26199,y:_0x493d7c,width:_0x1222fe,height:_0x580b90}=_0x24bdcd;return this['_commandService'][_0x10e9fa(0x12e)](_0x4e1e34[_0x10e9fa(0x116)]['id'],{'unitId':_0x3cc14b,'subUnitId':_0x39bd24,'shapeId':_0x39e5ca,'shapeType':_0x39f8e9,'shapeData':_0x291824,'position':{'x':_0xb26199,'y':_0x493d7c},'width':_0x1222fe,'height':_0x580b90});}async[_0x67df2d(0x195)](_0x4206b5){const _0x59289a=_0x67df2d;let {unitId:_0x11a3c6,subUnitId:_0x380058,shapeId:_0x46b3e0,shapeType:_0x1a2117,shapeData:_0x4c19a0,x:_0x5c6e64,y:_0xfd23bf,width:_0x173a64,height:_0x5b569e}=_0x4206b5;return this[_0x59289a(0x117)]['executeCommand'](_0x4e1e34[_0x59289a(0x170)]['id'],{'unitId':_0x11a3c6,'subUnitId':_0x380058,'shapeId':_0x46b3e0,'shapeType':_0x1a2117,'shapeData':_0x4c19a0,'position':{'x':_0x5c6e64,'y':_0xfd23bf},'width':_0x173a64,'height':_0x5b569e});}[_0x67df2d(0x183)](_0x50c5cc){const _0x1d0290=_0x67df2d;let _0x113adb=this['getWorkbook']()[_0x1d0290(0x174)](),_0x4e6dbb=this[_0x1d0290(0x123)]();if(_0x50c5cc){let _0x40cec0=new _0x4a2ff6(_0x113adb,_0x4e6dbb,_0x50c5cc[_0x1d0290(0x1a2)],this[_0x1d0290(0x18d)]);return this[_0x1d0290(0x1aa)](_0x40cec0,_0x113adb,_0x4e6dbb,_0x50c5cc[_0x1d0290(0x1a2)]),_0x40cec0;}return new _0x4a2ff6(_0x113adb,_0x4e6dbb,(0x0,_0x356e58[_0x1d0290(0x19f)])(),this[_0x1d0290(0x18d)]);}[_0x67df2d(0x138)](_0x215b4b){const _0x1605fb=_0x67df2d;let _0x3b8b2c=this[_0x1605fb(0x13a)]()['getUnitId'](),_0x935df9=this['getSheetId']();if(_0x215b4b){let _0x5a275c=new _0x4e9bfa(_0x3b8b2c,_0x935df9,_0x215b4b[_0x1605fb(0x1a2)],this['_injector']);return this['_preloadShapeProperties'](_0x5a275c,_0x3b8b2c,_0x935df9,_0x215b4b[_0x1605fb(0x1a2)]),_0x5a275c;}return new _0x4e9bfa(_0x3b8b2c,_0x935df9,(0x0,_0x356e58[_0x1605fb(0x19f)])(),this[_0x1605fb(0x18d)]);}[_0x67df2d(0x16e)](){const _0x3c612e=_0x67df2d;let _0x9b32ca=this[_0x3c612e(0x18d)][_0x3c612e(0x14e)](_0x568648['ISheetDrawingService']),_0x451862=this['getWorkbook']()[_0x3c612e(0x174)](),_0x1800c0=this[_0x3c612e(0x123)](),_0x32d7df=_0x9b32ca[_0x3c612e(0x11c)](_0x451862,_0x1800c0);if(!_0x32d7df)return[];let _0x306ad=[];for(let [_0x195b04,_0x3bf31e]of Object[_0x3c612e(0x196)](_0x32d7df))if(_0x3bf31e&&_0x3bf31e['drawingType']===_0x356e58['DrawingTypeEnum']['DRAWING_SHAPE']){let _0x5d140f=new _0x4a2ff6(_0x451862,_0x1800c0,_0x195b04,this[_0x3c612e(0x18d)]);this['_preloadShapeProperties'](_0x5d140f,_0x451862,_0x1800c0,_0x195b04),_0x306ad[_0x3c612e(0x18a)](_0x5d140f);}return _0x306ad;}['removeShape'](_0x40a972){const _0x5b413f=_0x67df2d;let {unitId:_0x31511c,subUnitId:_0x2d4b60,drawId:_0x345862}=_0x40a972;return this[_0x5b413f(0x117)][_0x5b413f(0x12e)](_0x568648[_0x5b413f(0x13f)]['id'],{'unitId':_0x31511c,'drawings':[{'unitId':_0x31511c,'subUnitId':_0x2d4b60,'drawingId':_0x345862,'drawingType':_0x356e58[_0x5b413f(0x184)][_0x5b413f(0x188)]}]});}async['connectShapes'](_0xabcd2f){const _0x42fe55=_0x67df2d;let {connector:_0x15c6c6,startTarget:_0x473a2f,endTarget:_0x1919f4}=_0xabcd2f;if(!_0x473a2f&&!_0x1919f4)return!0x1;let _0x20098b=this['getWorkbook']()[_0x42fe55(0x174)](),_0x5a0b70=this[_0x42fe55(0x123)](),_0xf1a200=this[_0x42fe55(0x18d)][_0x42fe55(0x14e)](_0x4e1e34[_0x42fe55(0x189)]),_0x3150b7=this['_injector'][_0x42fe55(0x14e)](_0x870f2e['IDrawingManagerService']),_0x5f3fdc=_0xf1a200[_0x42fe55(0x17a)](_0x20098b,_0x5a0b70,_0x15c6c6[_0x42fe55(0x1a2)]);if(!_0x5f3fdc)return!0x1;let _0x279d4e=_0x5f3fdc['getShapeType'](),_0x2bc2ff=_0x5f3fdc[_0x42fe55(0x127)](),_0x237d69={};for(let _0x40c10a of _0x5f3fdc[_0x42fe55(0x135)]()){let _0x784c72=_0x5f3fdc['getAdjustValueByName'](_0x40c10a);_0x784c72!==void 0x0&&(_0x237d69[_0x40c10a]=_0x784c72);}let {startInfo:_0x26b47b,endInfo:_0x3f6ecc}=this[_0x42fe55(0x158)](_0x20098b,_0x5a0b70,_0x15c6c6,_0x5f3fdc,_0x473a2f,_0x1919f4,_0xf1a200,_0x3150b7,_0x2bc2ff);if(!_0x26b47b||!_0x3f6ecc)return!0x1;let _0x4c6833=(0x0,_0x4ea94f[_0x42fe55(0x17b)])((0x0,_0x4ea94f['routeConnectorLineShape'])(_0x26b47b,_0x3f6ecc,_0x279d4e),_0x279d4e),_0x3c5bf1={};return _0x473a2f?_0x3c5bf1['from']={'shapeId':_0x473a2f[_0x42fe55(0x12b)]['drawId'],'cxnIndex':_0x473a2f[_0x42fe55(0x16b)]}:_0x2bc2ff!=null&&_0x2bc2ff[_0x42fe55(0x1a9)]&&(_0x3c5bf1[_0x42fe55(0x1a9)]=_0x2bc2ff[_0x42fe55(0x1a9)]),_0x1919f4?_0x3c5bf1['to']={'shapeId':_0x1919f4[_0x42fe55(0x12b)][_0x42fe55(0x1a2)],'cxnIndex':_0x1919f4['connectionSiteIndex']}:_0x2bc2ff!=null&&_0x2bc2ff['to']&&(_0x3c5bf1['to']=_0x2bc2ff['to']),this[_0x42fe55(0x117)][_0x42fe55(0x12e)](_0x4e1e34[_0x42fe55(0x191)]['id'],{'unitId':_0x20098b,'subUnitId':_0x5a0b70,'connectorShapeId':_0x15c6c6[_0x42fe55(0x1a2)],'width':_0x4c6833[_0x42fe55(0x162)][_0x42fe55(0x11b)],'height':_0x4c6833[_0x42fe55(0x162)]['height'],'left':_0x4c6833[_0x42fe55(0x162)][_0x42fe55(0x1b1)],'top':_0x4c6833['worldRect'][_0x42fe55(0x131)],'flipX':_0x4c6833[_0x42fe55(0x162)][_0x42fe55(0x182)]||!0x1,'flipY':_0x4c6833['worldRect'][_0x42fe55(0x1a5)]||!0x1,'oldAdjustValues':_0x237d69,'newAdjustValues':_0x4c6833[_0x42fe55(0x19e)],'newLineType':_0x4c6833['lineType'],'oldLineType':_0x279d4e,'rotation':_0x4c6833[_0x42fe55(0x149)],'oldRelation':_0x2bc2ff,'newRelation':_0x3c5bf1});}[_0x67df2d(0x1aa)](_0x39df09,_0x259167,_0x447868,_0x1646f0){const _0x18eab7=_0x67df2d;let _0x2fd3e2=this[_0x18eab7(0x18d)]['get'](_0x870f2e[_0x18eab7(0x160)])['getDrawingByParam']({'unitId':_0x259167,'subUnitId':_0x447868,'drawingId':_0x1646f0});if(_0x2fd3e2!=null&&_0x2fd3e2[_0x18eab7(0x1a6)]){var _0x48c1ac,_0xba3002,_0x14c64b,_0x521584;_0x39df09['x']=(_0x48c1ac=_0x2fd3e2['transform']['left'])==null?0x0:_0x48c1ac,_0x39df09['y']=(_0xba3002=_0x2fd3e2['transform'][_0x18eab7(0x131)])==null?0x0:_0xba3002,_0x39df09[_0x18eab7(0x11b)]=(_0x14c64b=_0x2fd3e2[_0x18eab7(0x1a6)][_0x18eab7(0x11b)])==null?_0x39df09[_0x18eab7(0x11b)]:_0x14c64b,_0x39df09['height']=(_0x521584=_0x2fd3e2['transform'][_0x18eab7(0x125)])==null?_0x39df09[_0x18eab7(0x125)]:_0x521584;}let _0x71741=this['_injector'][_0x18eab7(0x14e)](_0x4e1e34[_0x18eab7(0x189)])[_0x18eab7(0x17a)](_0x259167,_0x447868,_0x1646f0);if(_0x71741){_0x39df09[_0x18eab7(0x1a7)]=_0x71741[_0x18eab7(0x14c)]();let _0x5deee3=_0x71741[_0x18eab7(0x198)]();_0x5deee3&&(_0x39df09[_0x18eab7(0x159)]=JSON[_0x18eab7(0x1ac)](JSON[_0x18eab7(0x172)](_0x5deee3)));}}[_0x67df2d(0x158)](_0x41b74b,_0x1000d0,_0x69a705,_0x3b833a,_0x381c83,_0x1478a4,_0x7b6bfd,_0x37910f,_0x16f1d6){const _0x45599c=_0x67df2d;let _0x4e8a11=null,_0x193c81=null;return _0x381c83&&(_0x4e8a11=_0x4d0140(_0x41b74b,_0x1000d0,_0x381c83['shape']['drawId'],_0x381c83[_0x45599c(0x16b)],_0x7b6bfd,_0x37910f)),_0x1478a4&&(_0x193c81=_0x4d0140(_0x41b74b,_0x1000d0,_0x1478a4['shape'][_0x45599c(0x1a2)],_0x1478a4[_0x45599c(0x16b)],_0x7b6bfd,_0x37910f)),_0x4e8a11||(_0x4e8a11=this['_resolveExistingOrFreeEndpoint'](_0x41b74b,_0x1000d0,_0x69a705[_0x45599c(0x1a2)],!0x0,_0x193c81,_0x16f1d6==null?void 0x0:_0x16f1d6['from'],_0x7b6bfd,_0x37910f)),_0x193c81||(_0x193c81=this[_0x45599c(0x128)](_0x41b74b,_0x1000d0,_0x69a705[_0x45599c(0x1a2)],!0x1,_0x4e8a11,_0x16f1d6==null?void 0x0:_0x16f1d6['to'],_0x7b6bfd,_0x37910f)),{'startInfo':_0x4e8a11,'endInfo':_0x193c81};}['_resolveExistingOrFreeEndpoint'](_0x4fe793,_0x414abc,_0x3aef94,_0xfacafd,_0x299003,_0x1c8100,_0x4edeae,_0x46c4cb){const _0x45036b=_0x67df2d;if(_0x1c8100){let _0x185c19=_0x4d0140(_0x4fe793,_0x414abc,_0x1c8100[_0x45036b(0x119)],_0x1c8100['cxnIndex'],_0x4edeae,_0x46c4cb);if(_0x185c19)return _0x185c19;}return _0x299003?_0x5a1d2d(_0x4fe793,_0x414abc,_0x3aef94,_0xfacafd,_0x299003,_0x4edeae,_0x46c4cb):null;}};_0x1a3e98[_0x67df2d(0x15d)][_0x67df2d(0x1af)](_0x5d33e3),_0x3f8ca6[_0x67df2d(0x130)]=_0x4e9bfa,_0x3f8ca6[_0x67df2d(0x14b)]=_0x4a2ff6;}));