@univerjs-pro/sheets-shape 1.0.0-alpha.1 → 1.0.0-alpha.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/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1813d6=_0x3405;(function(_0x50b0aa,_0x5f0e76){const _0x4d059e=_0x3405,_0x56d358=_0x50b0aa();while(!![]){try{const _0x5e68c7=-parseInt(_0x4d059e(0x161))/0x1+parseInt(_0x4d059e(0x1e5))/0x2+parseInt(_0x4d059e(0x1b4))/0x3*(-parseInt(_0x4d059e(0x1db))/0x4)+parseInt(_0x4d059e(0x16c))/0x5*(-parseInt(_0x4d059e(0x1a0))/0x6)+parseInt(_0x4d059e(0x150))/0x7+parseInt(_0x4d059e(0x1a8))/0x8*(-parseInt(_0x4d059e(0x190))/0x9)+parseInt(_0x4d059e(0x1e9))/0xa*(parseInt(_0x4d059e(0x1ab))/0xb);if(_0x5e68c7===_0x5f0e76)break;else _0x56d358['push'](_0x56d358['shift']());}catch(_0xdd2ac7){_0x56d358['push'](_0x56d358['shift']());}}}(_0x5281,0x807d2),Object[_0x1813d6(0x187)](exports,Symbol['toStringTag'],{'value':_0x1813d6(0x173)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs-pro/sheets-shape'),r=require('@univerjs/core'),i=require('@univerjs/drawing'),a=require('@univerjs/sheets'),o=require('@univerjs/sheets-drawing'),s=require('@univerjs/sheets/facade');var c=class extends t[_0x1813d6(0x1c1)]{get['ShapeTypeEnum'](){const _0x58a70d=_0x1813d6;return e[_0x58a70d(0x17b)];}get[_0x1813d6(0x189)](){const _0x1fb46b=_0x1813d6;return e[_0x1fb46b(0x189)];}get['ShapeGradientTypeEnum'](){const _0x471ac2=_0x1813d6;return e[_0x471ac2(0x1af)];}get['ShapeLineTypeEnum'](){return e['ShapeLineTypeEnum'];}get[_0x1813d6(0x1a4)](){const _0x2d6160=_0x1813d6;return e[_0x2d6160(0x1a4)];}get[_0x1813d6(0x176)](){const _0x24f0bf=_0x1813d6;return e[_0x24f0bf(0x176)];}get[_0x1813d6(0x17f)](){const _0x5e179f=_0x1813d6;return e[_0x5e179f(0x17f)];}get[_0x1813d6(0x16a)](){const _0x3f748b=_0x1813d6;return e[_0x3f748b(0x16a)];}get[_0x1813d6(0x1e2)](){const _0x38783f=_0x1813d6;return e[_0x38783f(0x1e2)];}};t[_0x1813d6(0x1c1)]['extend'](c);function l(_0x1c7796){'@babel/helpers - typeof';const _0x1fc5dc=_0x1813d6;return l=typeof Symbol==_0x1fc5dc(0x18c)&&typeof Symbol[_0x1fc5dc(0x199)]==_0x1fc5dc(0x15a)?function(_0x418859){return typeof _0x418859;}:function(_0x1c79f7){const _0x3f9810=_0x1fc5dc;return _0x1c79f7&&typeof Symbol==_0x3f9810(0x18c)&&_0x1c79f7[_0x3f9810(0x1e6)]===Symbol&&_0x1c79f7!==Symbol[_0x3f9810(0x168)]?_0x3f9810(0x15a):typeof _0x1c79f7;},l(_0x1c7796);}function _0x3405(_0x2b6cc4,_0x3f0616){_0x2b6cc4=_0x2b6cc4-0x14d;const _0x528155=_0x5281();let _0x3405df=_0x528155[_0x2b6cc4];return _0x3405df;}function u(_0x3dbb47,_0x2f3aac){const _0x340b9d=_0x1813d6;if(l(_0x3dbb47)!=_0x340b9d(0x167)||!_0x3dbb47)return _0x3dbb47;var _0x1379ef=_0x3dbb47[Symbol[_0x340b9d(0x17a)]];if(_0x1379ef!==void 0x0){var _0x5ad59d=_0x1379ef['call'](_0x3dbb47,_0x2f3aac||_0x340b9d(0x1c5));if(l(_0x5ad59d)!='object')return _0x5ad59d;throw TypeError(_0x340b9d(0x17d));}return(_0x2f3aac==='string'?String:Number)(_0x3dbb47);}function d(_0x4704a8){const _0x19a153=_0x1813d6;var _0x1c87e8=u(_0x4704a8,_0x19a153(0x188));return l(_0x1c87e8)==_0x19a153(0x15a)?_0x1c87e8:_0x1c87e8+'';}function f(_0x20d1a6,_0x553d59,_0x4eaa3f){const _0x4bd73b=_0x1813d6;return(_0x553d59=d(_0x553d59))in _0x20d1a6?Object[_0x4bd73b(0x187)](_0x20d1a6,_0x553d59,{'value':_0x4eaa3f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20d1a6[_0x553d59]=_0x4eaa3f,_0x20d1a6;}var p=class{constructor(_0x2e573a,_0x485d89,_0x132722,_0x9b71a5){const _0x593dbc=_0x1813d6;f(this,_0x593dbc(0x1d0),void 0x0),f(this,_0x593dbc(0x1ea),void 0x0),f(this,_0x593dbc(0x177),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x593dbc(0x1b1),n[_0x593dbc(0x1c6)]),f(this,_0x593dbc(0x1be),n['DEFAULT_SHAPE_HEIGHT']),f(this,'shapeType',void 0x0),f(this,_0x593dbc(0x174),{}),f(this,'_injector',void 0x0),this['unitId']=_0x2e573a,this[_0x593dbc(0x1ea)]=_0x485d89,this[_0x593dbc(0x177)]=_0x132722||(0x0,r['generateRandomId'])(),this['_injector']=_0x9b71a5;}[_0x1813d6(0x1ae)](_0x1a983b,_0x48ea4c,_0x5e8d6b,_0x2e1e3e){const _0x1d99a8=_0x1813d6;let _0x407f01=this[_0x1d99a8(0x14f)][_0x1d99a8(0x16e)](a[_0x1d99a8(0x195)])['ensureSkeleton'](this[_0x1d99a8(0x1d0)],this[_0x1d99a8(0x1ea)]);if(!_0x407f01)throw Error(_0x1d99a8(0x1c4)+this[_0x1d99a8(0x1d0)]+_0x1d99a8(0x192)+this[_0x1d99a8(0x1ea)]+_0x1d99a8(0x1e3));let {transform:_0x42c181}=(0x0,a[_0x1d99a8(0x19d)])(this['unitId'],this[_0x1d99a8(0x1ea)],{'row':_0x1a983b,'column':_0x48ea4c,'rowOffset':_0x5e8d6b,'columnOffset':_0x2e1e3e},0x1,0x1,_0x407f01);return this['x']=_0x42c181[_0x1d99a8(0x1ca)],this['y']=_0x42c181[_0x1d99a8(0x17c)],this;}['setAbsolutePosition'](_0x27aa01,_0x4b76b7){return this['x']=_0x27aa01,this['y']=_0x4b76b7,this;}[_0x1813d6(0x184)](_0x518142){return this['shapeType']=_0x518142,this;}[_0x1813d6(0x1cf)](_0x60f142){const _0xd8d9d1=_0x1813d6;return _0x60f142['shapeType']&&this[_0xd8d9d1(0x184)](_0x60f142['shapeType']),this[_0xd8d9d1(0x174)]={..._0x60f142},this;}[_0x1813d6(0x1e0)](_0x2eb292,_0xdc0aa4){const _0x5e26b2=_0x1813d6;return this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]||(this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]={}),this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]['fillType']=e['ShapeFillEnum'][_0x5e26b2(0x166)],_0x2eb292!==void 0x0&&(this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)][_0x5e26b2(0x165)]=_0x2eb292),_0xdc0aa4!==void 0x0&&(this['shapeData']['fill']['opacity']=_0xdc0aa4),this;}[_0x1813d6(0x155)](_0x5894a4,_0x41a707,_0x4523e0){const _0x59d788=_0x1813d6;if(_0x41a707===void 0x0||_0x41a707[_0x59d788(0x19b)]===0x0)throw Error(_0x59d788(0x1a5));return this[_0x59d788(0x174)]['fill']||(this[_0x59d788(0x174)][_0x59d788(0x1da)]={}),this[_0x59d788(0x174)][_0x59d788(0x1da)][_0x59d788(0x1b5)]=_0x41a707,this['shapeData']['fill'][_0x59d788(0x182)]=e[_0x59d788(0x189)][_0x59d788(0x19e)],this[_0x59d788(0x174)][_0x59d788(0x1da)][_0x59d788(0x15d)]=_0x5894a4,_0x4523e0!==void 0x0&&(this[_0x59d788(0x174)][_0x59d788(0x1da)]['gradientAngle']=_0x4523e0),this;}[_0x1813d6(0x180)](){const _0x3157ee=_0x1813d6;return this['shapeData'][_0x3157ee(0x1da)]={'fillType':e['ShapeFillEnum'][_0x3157ee(0x1bc)]},this;}['setStrokeColor'](_0x370033){const _0x44e850=_0x1813d6;return this[_0x44e850(0x174)][_0x44e850(0x193)]||(this[_0x44e850(0x174)][_0x44e850(0x193)]={}),this['shapeData'][_0x44e850(0x193)][_0x44e850(0x165)]=_0x370033,this;}[_0x1813d6(0x153)](_0x3d8dce){const _0x114018=_0x1813d6;return this[_0x114018(0x174)]['stroke']||(this[_0x114018(0x174)]['stroke']={}),this[_0x114018(0x174)]['stroke'][_0x114018(0x1b1)]=_0x3d8dce,this;}[_0x1813d6(0x1de)](_0x220fe5){const _0x27497d=_0x1813d6;return this[_0x27497d(0x174)][_0x27497d(0x193)]||(this[_0x27497d(0x174)]['stroke']={}),this[_0x27497d(0x174)][_0x27497d(0x193)]['dashType']=_0x220fe5,this;}['setStrokeLineJoinType'](_0x48e9c1){const _0x1ab801=_0x1813d6;return this[_0x1ab801(0x174)][_0x1ab801(0x193)]||(this['shapeData']['stroke']={}),this[_0x1ab801(0x174)][_0x1ab801(0x193)][_0x1ab801(0x156)]=_0x48e9c1,this;}['setStrokeLineCapType'](_0x579727){const _0x3a8418=_0x1813d6;return this[_0x3a8418(0x174)][_0x3a8418(0x193)]||(this[_0x3a8418(0x174)]['stroke']={}),this[_0x3a8418(0x174)]['stroke'][_0x3a8418(0x1a2)]=_0x579727,this;}[_0x1813d6(0x159)](_0x2a97c6){const _0x90e0de=_0x1813d6;return this[_0x90e0de(0x174)][_0x90e0de(0x193)]||(this[_0x90e0de(0x174)][_0x90e0de(0x193)]={}),this[_0x90e0de(0x174)][_0x90e0de(0x193)][_0x90e0de(0x1b7)]=_0x2a97c6,this;}[_0x1813d6(0x196)](_0x5026f1){const _0x3383c3=_0x1813d6;return this[_0x3383c3(0x174)]['stroke']||(this['shapeData']['stroke']={}),this['shapeData'][_0x3383c3(0x193)][_0x3383c3(0x164)]=_0x5026f1,this;}[_0x1813d6(0x1e1)](_0xdbd9fe){const _0x1064eb=_0x1813d6;return this[_0x1064eb(0x1b1)]=_0xdbd9fe,this;}[_0x1813d6(0x1b3)](_0x81f77d){const _0xa54a2e=_0x1813d6;return this[_0xa54a2e(0x1be)]=_0x81f77d,this;}[_0x1813d6(0x16b)](){const _0x4217b5=_0x1813d6;let _0x40225d=this['_injector']['get'](n[_0x4217b5(0x16d)])[_0x4217b5(0x1d3)](this[_0x4217b5(0x1d0)],this[_0x4217b5(0x1ea)],this[_0x4217b5(0x177)]);return _0x40225d?(0x0,e['isConnectorShape'])(_0x40225d[_0x4217b5(0x197)]()):this[_0x4217b5(0x1cd)]?(0x0,e[_0x4217b5(0x1c2)])(this['shapeType']):!0x1;}['getConnectionSites'](){const _0xdc950d=_0x1813d6;let _0xbe29b9=this[_0xdc950d(0x14f)][_0xdc950d(0x16e)](n[_0xdc950d(0x16d)])[_0xdc950d(0x1d3)](this[_0xdc950d(0x1d0)],this[_0xdc950d(0x1ea)],this[_0xdc950d(0x177)]);if(!_0xbe29b9)return[];let _0xcebe44=this[_0xdc950d(0x14f)][_0xdc950d(0x16e)](i[_0xdc950d(0x1dd)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0xcebe44!=null&&_0xcebe44[_0xdc950d(0x154)]))return[];let {width:_0x53ba0d=0x0,height:_0x58f2a6=0x0}=_0xcebe44[_0xdc950d(0x154)];return _0xbe29b9[_0xdc950d(0x1ad)]({'width':_0x53ba0d,'height':_0x58f2a6}),_0xbe29b9['getConnectionSiteList']();}[_0x1813d6(0x171)](){const _0x288626=_0x1813d6;let _0x14b9ae=this[_0x288626(0x14f)][_0x288626(0x16e)](n[_0x288626(0x16d)])[_0x288626(0x1d3)](this[_0x288626(0x1d0)],this[_0x288626(0x1ea)],this[_0x288626(0x177)]);if(!_0x14b9ae)return[];let _0x96436b=this[_0x288626(0x14f)][_0x288626(0x16e)](i[_0x288626(0x1dd)])[_0x288626(0x1ce)]({'unitId':this[_0x288626(0x1d0)],'subUnitId':this[_0x288626(0x1ea)],'drawingId':this[_0x288626(0x177)]});if(!(_0x96436b!=null&&_0x96436b['transform']))return[];let {width:_0x26dd28=0x0,height:_0x506b43=0x0}=_0x96436b[_0x288626(0x154)];return _0x14b9ae[_0x288626(0x1ad)]({'width':_0x26dd28,'height':_0x506b43}),_0x14b9ae[_0x288626(0x179)]();}[_0x1813d6(0x1c9)](){const _0x375b4f=_0x1813d6;let _0x2b2f61=this[_0x375b4f(0x14f)]['get'](n['SheetsShapeService'])[_0x375b4f(0x1d3)](this[_0x375b4f(0x1d0)],this['subUnitId'],this['drawId']);if(!_0x2b2f61||!(0x0,e[_0x375b4f(0x1c2)])(_0x2b2f61['getShapeType']()))return[];let _0x1b2c35=this[_0x375b4f(0x14f)][_0x375b4f(0x16e)](i[_0x375b4f(0x1dd)])[_0x375b4f(0x1ce)]({'unitId':this[_0x375b4f(0x1d0)],'subUnitId':this[_0x375b4f(0x1ea)],'drawingId':this[_0x375b4f(0x177)]});if(!(_0x1b2c35!=null&&_0x1b2c35['transform']))return[];let {width:_0x3db08d=0x0,height:_0x143847=0x0}=_0x1b2c35[_0x375b4f(0x154)];return _0x2b2f61[_0x375b4f(0x1ad)]({'width':_0x3db08d,'height':_0x143847}),_0x2b2f61[_0x375b4f(0x1c9)]();}['getStartConnectInfo'](){const _0x5e9363=_0x1813d6;var _0x4f1f3e;let _0x3522be=this[_0x5e9363(0x14f)][_0x5e9363(0x16e)](n[_0x5e9363(0x16d)])[_0x5e9363(0x1d3)](this[_0x5e9363(0x1d0)],this['subUnitId'],this['drawId']);return _0x3522be?(_0x4f1f3e=_0x3522be[_0x5e9363(0x1cb)]())==null?null:_0x4f1f3e:null;}[_0x1813d6(0x1e8)](){const _0x42742d=_0x1813d6;var _0x5066c7;let _0x20d068=this[_0x42742d(0x14f)][_0x42742d(0x16e)](n[_0x42742d(0x16d)])[_0x42742d(0x1d3)](this['unitId'],this[_0x42742d(0x1ea)],this[_0x42742d(0x177)]);return _0x20d068?(_0x5066c7=_0x20d068[_0x42742d(0x1e8)]())==null?null:_0x5066c7:null;}[_0x1813d6(0x1a1)](){const _0x2353b1=_0x1813d6;var _0x6ff243,_0x95792c;if(!this[_0x2353b1(0x1cd)])throw Error(_0x2353b1(0x181));if(this['x']===0x0||this['y']===0x0){let _0x17b86c=this['_injector'][_0x2353b1(0x16e)](a[_0x2353b1(0x195)])[_0x2353b1(0x1d1)](this[_0x2353b1(0x1d0)],this[_0x2353b1(0x1ea)]);if(!_0x17b86c)throw Error(_0x2353b1(0x1c4)+this[_0x2353b1(0x1d0)]+_0x2353b1(0x192)+this['subUnitId']+_0x2353b1(0x1e3));let {transform:_0x594a87}=(0x0,a['convertPositionCellToSheetOverGrid'])(this[_0x2353b1(0x1d0)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x17b86c);this['x']=this['x']>0x0?this['x']:_0x594a87[_0x2353b1(0x1ca)],this['y']=this['y']>0x0?this['y']:_0x594a87['top'];}return this['width']=(_0x6ff243=this[_0x2353b1(0x1b1)])==null?n['DEFAULT_SHAPE_WIDTH']:_0x6ff243,this[_0x2353b1(0x1be)]=(_0x95792c=this[_0x2353b1(0x1be)])==null?n[_0x2353b1(0x151)]:_0x95792c,{'unitId':this[_0x2353b1(0x1d0)],'subUnitId':this[_0x2353b1(0x1ea)],'shapeId':this[_0x2353b1(0x177)],'shapeType':this['shapeType'],'shapeData':Object[_0x2353b1(0x172)](this[_0x2353b1(0x174)])[_0x2353b1(0x19b)]>0x0?this[_0x2353b1(0x174)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x2353b1(0x1be)]};}[_0x1813d6(0x1a7)](){const _0x39ac9d=_0x1813d6;return this[_0x39ac9d(0x177)];}[_0x1813d6(0x197)](){const _0x26d211=_0x1813d6;return this[_0x26d211(0x1cd)];}[_0x1813d6(0x169)](){const _0x54e330=_0x1813d6;return this[_0x54e330(0x174)];}[_0x1813d6(0x178)](){return{'x':this['x'],'y':this['y']};}[_0x1813d6(0x1d5)](){const _0xb088b=_0x1813d6;return{'width':this[_0xb088b(0x1b1)],'height':this[_0xb088b(0x1be)]};}},m=class extends p{constructor(_0x53a100,_0x73b03f,_0x3411ed,_0x43f88f){const _0x532dec=_0x1813d6;super(_0x53a100,_0x73b03f,_0x3411ed,_0x43f88f),f(this,_0x532dec(0x174),{});}[_0x1813d6(0x184)](_0x10871c){const _0x5ed4a2=_0x1813d6;if(!(0x0,e[_0x5ed4a2(0x1c2)])(_0x10871c))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x10871c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x5ed4a2(0x184)](_0x10871c),this;}[_0x1813d6(0x152)](_0x410598){const _0x4cbbc8=_0x1813d6;var _0x2f64b8,_0x4339fc;return(_0x2f64b8=this[_0x4cbbc8(0x174)])!=null&&_0x2f64b8['ln']||(this[_0x4cbbc8(0x174)]['ln']={}),!((_0x4339fc=this[_0x4cbbc8(0x174)])==null||(_0x4339fc=_0x4339fc['ln'])==null)&&_0x4339fc[_0x4cbbc8(0x1aa)]||(this[_0x4cbbc8(0x174)]['ln'][_0x4cbbc8(0x1aa)]={}),this[_0x4cbbc8(0x174)]['ln'][_0x4cbbc8(0x1aa)][_0x4cbbc8(0x1b6)]=_0x410598,this;}[_0x1813d6(0x15f)](_0xce7598){const _0x4cd92d=_0x1813d6;var _0x24538b,_0x116e82;return(_0x24538b=this[_0x4cd92d(0x174)])!=null&&_0x24538b['ln']||(this[_0x4cd92d(0x174)]['ln']={}),!((_0x116e82=this[_0x4cd92d(0x174)])==null||(_0x116e82=_0x116e82['ln'])==null)&&_0x116e82[_0x4cd92d(0x1bb)]||(this['shapeData']['ln']['endArrow']={}),this['shapeData']['ln']['endArrow'][_0x4cd92d(0x1b6)]=_0xce7598,this;}[_0x1813d6(0x175)](_0x376b2a){const _0x1347d6=_0x1813d6;var _0x5ebca6,_0x462a4e;return(_0x5ebca6=this['shapeData'])!=null&&_0x5ebca6['ln']||(this['shapeData']['ln']={}),!((_0x462a4e=this[_0x1347d6(0x174)])==null||(_0x462a4e=_0x462a4e['ln'])==null)&&_0x462a4e[_0x1347d6(0x1aa)]||(this[_0x1347d6(0x174)]['ln'][_0x1347d6(0x1aa)]={}),this[_0x1347d6(0x174)]['ln'][_0x1347d6(0x1aa)][_0x1347d6(0x1b2)]=_0x376b2a,this;}[_0x1813d6(0x170)](_0x4d359){const _0x549309=_0x1813d6;var _0x49d49d,_0x3e9133;return(_0x49d49d=this[_0x549309(0x174)])!=null&&_0x49d49d['ln']||(this[_0x549309(0x174)]['ln']={}),!((_0x3e9133=this[_0x549309(0x174)])==null||(_0x3e9133=_0x3e9133['ln'])==null)&&_0x3e9133['endArrow']||(this[_0x549309(0x174)]['ln'][_0x549309(0x1bb)]={}),this[_0x549309(0x174)]['ln']['endArrow'][_0x549309(0x1b2)]=_0x4d359,this;}[_0x1813d6(0x1a1)](){const _0x526e8b=_0x1813d6;return super[_0x526e8b(0x1a1)]();}[_0x1813d6(0x1e8)](){const _0x5e66e3=_0x1813d6;var _0x3d71af;return((_0x3d71af=this[_0x5e66e3(0x174)])==null||(_0x3d71af=_0x3d71af[_0x5e66e3(0x18f)])==null?void 0x0:_0x3d71af['to'])||null;}['getStartConnectInfo'](){const _0x2949f9=_0x1813d6;var _0x29c99d;return((_0x29c99d=this[_0x2949f9(0x174)])==null||(_0x29c99d=_0x29c99d['relation'])==null?void 0x0:_0x29c99d['from'])||null;}};function h(_0x39ee41,_0x40861a,_0x4cef17,_0x31d45c,_0x5127f9,_0x3b855d){const _0x44b09a=_0x1813d6;let _0x20daf1=_0x5127f9[_0x44b09a(0x1d3)](_0x39ee41,_0x40861a,_0x4cef17);if(!_0x20daf1)return null;let _0x3b3ed9=_0x3b855d['getDrawingByParam']({'unitId':_0x39ee41,'subUnitId':_0x40861a,'drawingId':_0x4cef17});if(!(_0x3b3ed9!=null&&_0x3b3ed9[_0x44b09a(0x154)]))return null;let {left:_0x4d14d4=0x0,top:_0x1b0bdc=0x0,width:_0x551cd8=0x0,height:_0x1564ff=0x0,flipX:_0x5adbb8=!0x1,flipY:_0x30f742=!0x1,angle:_0x3ef2c6}=_0x3b3ed9['transform'];_0x20daf1[_0x44b09a(0x1ad)]({'width':_0x551cd8,'height':_0x1564ff});let _0x53047b=_0x20daf1[_0x44b09a(0x186)]()[_0x44b09a(0x1ac)](_0x2a4602=>_0x2a4602[_0x44b09a(0x18b)]===_0x31d45c);if(!_0x53047b)return null;let _0x58175f=_0x5adbb8?_0x551cd8-_0x53047b['x']:_0x53047b['x'],_0x129ed5=_0x30f742?_0x1564ff-_0x53047b['y']:_0x53047b['y'];if(_0x3ef2c6&&_0x3ef2c6!==0x0){let _0x3d0806=_0x3ef2c6*Math['PI']/0xb4,_0xe2f4d1=Math[_0x44b09a(0x1d4)](_0x3d0806),_0x92c34e=Math[_0x44b09a(0x19c)](_0x3d0806),_0x22bdf9=_0x551cd8/0x2,_0xc1641d=_0x1564ff/0x2,_0x56308f=_0x58175f-_0x22bdf9,_0x29a892=_0x129ed5-_0xc1641d;_0x58175f=_0x22bdf9+_0x56308f*_0xe2f4d1-_0x29a892*_0x92c34e,_0x129ed5=_0xc1641d+_0x56308f*_0x92c34e+_0x29a892*_0xe2f4d1;}_0x58175f+=_0x4d14d4,_0x129ed5+=_0x1b0bdc;let _0x3b899f=_0x53047b[_0x44b09a(0x17e)]/0xea60;_0x5adbb8&&(_0x3b899f=0xb4-_0x3b899f),_0x30f742&&(_0x3b899f=-_0x3b899f),_0x3b899f+=_0x3ef2c6||0x0,_0x3b899f=(_0x3b899f%0x168+0x168)%0x168;let _0x152c7b=(0x0,e[_0x44b09a(0x1bf)])({'left':_0x4d14d4,'top':_0x1b0bdc,'width':_0x551cd8,'height':_0x1564ff},_0x3ef2c6||0x0);return{'point':{'x':_0x58175f,'y':_0x129ed5},'angle':_0x3b899f,'bounds':_0x152c7b};}function g(_0x3ed06e,_0x336be8){const _0x2402c7=_0x1813d6;let _0x161d90=_0x336be8['x']-_0x3ed06e['x'],_0x148963=_0x336be8['y']-_0x3ed06e['y'];return Math[_0x2402c7(0x160)](_0x161d90)>=Math[_0x2402c7(0x160)](_0x148963)?_0x161d90>=0x0?0xb4:0x0:_0x148963>=0x0?0x10e:0x5a;}function _(_0x525e96,_0x51b11e,_0x1c5055,_0x152963,_0x512913,_0x2c7f34,_0x581b69){const _0x5ea419=_0x1813d6;let _0x152ae6=_0x2c7f34['getShapeModel'](_0x525e96,_0x51b11e,_0x1c5055);if(!_0x152ae6)return null;let _0x6e4272=_0x581b69[_0x5ea419(0x1ce)]({'unitId':_0x525e96,'subUnitId':_0x51b11e,'drawingId':_0x1c5055});if(!(_0x6e4272!=null&&_0x6e4272[_0x5ea419(0x154)]))return null;let {left:_0x5019e1=0x0,top:_0x5ccf36=0x0,width:_0x5409af=0x0,height:_0x2a8919=0x0,flipX:_0x4b9b8c=!0x1,flipY:_0x4fc813=!0x1}=_0x6e4272['transform'];_0x152ae6[_0x5ea419(0x1ad)]({'width':_0x5409af,'height':_0x2a8919});let _0x367eb8=_0x152ae6[_0x5ea419(0x1c9)]();if(_0x367eb8[_0x5ea419(0x19b)]<0x2)return null;let _0x480d42=_0x152963?_0x367eb8[0x0]:_0x367eb8[_0x367eb8[_0x5ea419(0x19b)]-0x1],_0x4b3aa8=new e['ConnectorCoordinateTransform']({'left':_0x5019e1,'top':_0x5ccf36,'width':_0x5409af,'height':_0x2a8919,'flipX':_0x4b9b8c,'flipY':_0x4fc813})[_0x5ea419(0x1c7)](_0x480d42);return{'point':_0x4b3aa8,'angle':g(_0x512913[_0x5ea419(0x1ba)],_0x4b3aa8),'bounds':{'left':_0x4b3aa8['x'],'top':_0x4b3aa8['y'],'width':0x0,'height':0x0}};}var v=class extends s['FWorksheet']{async[_0x1813d6(0x18a)](_0x2ed62a){const _0x52510=_0x1813d6;let {unitId:_0x4e63d9,subUnitId:_0x478397,shapeId:_0x36edaa,shapeType:_0x1f67ac,shapeData:_0x19954a,x:_0x4d0cc9,y:_0x4a0348,width:_0x3d92d1,height:_0x216272}=_0x2ed62a;return this[_0x52510(0x15c)]['executeCommand'](n[_0x52510(0x1d9)]['id'],{'unitId':_0x4e63d9,'subUnitId':_0x478397,'shapeId':_0x36edaa,'shapeType':_0x1f67ac,'shapeData':_0x19954a,'position':{'x':_0x4d0cc9,'y':_0x4a0348},'width':_0x3d92d1,'height':_0x216272});}async[_0x1813d6(0x14e)](_0x42a1ee){const _0x113aab=_0x1813d6;let {unitId:_0x459163,subUnitId:_0x4e088e,shapeId:_0x71259f,shapeType:_0x2f158b,shapeData:_0x4400bc,x:_0xe4ca49,y:_0xf48ad9,width:_0x46546a,height:_0x3e7c21}=_0x42a1ee;return this['_commandService'][_0x113aab(0x162)](n['SetShapeDrawingDataCommand']['id'],{'unitId':_0x459163,'subUnitId':_0x4e088e,'shapeId':_0x71259f,'shapeType':_0x2f158b,'shapeData':_0x4400bc,'position':{'x':_0xe4ca49,'y':_0xf48ad9},'width':_0x46546a,'height':_0x3e7c21});}[_0x1813d6(0x158)](_0x23bded){const _0x384e97=_0x1813d6;let _0x4ff28b=this[_0x384e97(0x194)]()[_0x384e97(0x15e)](),_0x821cb7=this[_0x384e97(0x18e)]();if(_0x23bded){let _0x25ecda=new p(_0x4ff28b,_0x821cb7,_0x23bded['drawId'],this['_injector']);return this['_preloadShapeProperties'](_0x25ecda,_0x4ff28b,_0x821cb7,_0x23bded['drawId']),_0x25ecda;}return new p(_0x4ff28b,_0x821cb7,(0x0,r[_0x384e97(0x1d8)])(),this['_injector']);}['newConnector'](_0x59357c){const _0x2157ae=_0x1813d6;let _0x156628=this[_0x2157ae(0x194)]()[_0x2157ae(0x15e)](),_0x1f710f=this[_0x2157ae(0x18e)]();if(_0x59357c){let _0x3e3a18=new m(_0x156628,_0x1f710f,_0x59357c[_0x2157ae(0x177)],this['_injector']);return this[_0x2157ae(0x1e4)](_0x3e3a18,_0x156628,_0x1f710f,_0x59357c['drawId']),_0x3e3a18;}return new m(_0x156628,_0x1f710f,(0x0,r[_0x2157ae(0x1d8)])(),this['_injector']);}[_0x1813d6(0x1d2)](){const _0x482d9d=_0x1813d6;let _0x378b53=this[_0x482d9d(0x14f)][_0x482d9d(0x16e)](o['ISheetDrawingService']),_0x2eb9be=this[_0x482d9d(0x194)]()[_0x482d9d(0x15e)](),_0x657c47=this[_0x482d9d(0x18e)](),_0x402615=_0x378b53['getDrawingData'](_0x2eb9be,_0x657c47);if(!_0x402615)return[];let _0x5e4ef2=[];for(let [_0x20a41a,_0x1f2f9a]of Object[_0x482d9d(0x157)](_0x402615))if(_0x1f2f9a&&_0x1f2f9a[_0x482d9d(0x1b0)]===r['DrawingTypeEnum'][_0x482d9d(0x1a3)]){let _0x3e52c9=new p(_0x2eb9be,_0x657c47,_0x20a41a,this['_injector']);this[_0x482d9d(0x1e4)](_0x3e52c9,_0x2eb9be,_0x657c47,_0x20a41a),_0x5e4ef2[_0x482d9d(0x1c0)](_0x3e52c9);}return _0x5e4ef2;}[_0x1813d6(0x198)](_0x508862){const _0x362892=_0x1813d6;let {unitId:_0x2afed8,subUnitId:_0x6603f0,drawId:_0x203fb4}=_0x508862;return this[_0x362892(0x15c)][_0x362892(0x162)](o['RemoveSheetDrawingCommand']['id'],{'unitId':_0x2afed8,'drawings':[{'unitId':_0x2afed8,'subUnitId':_0x6603f0,'drawingId':_0x203fb4,'drawingType':r['DrawingTypeEnum'][_0x362892(0x1a3)]}]});}async[_0x1813d6(0x1d7)](_0x17fe6d){const _0x5720c9=_0x1813d6;let {connector:_0x4d627,startTarget:_0x13d7ba,endTarget:_0x4a8637}=_0x17fe6d;if(!_0x13d7ba&&!_0x4a8637)return!0x1;let _0x581a5c=this[_0x5720c9(0x194)]()['getUnitId'](),_0x5e5f89=this[_0x5720c9(0x18e)](),_0x13c816=this['_injector'][_0x5720c9(0x16e)](n[_0x5720c9(0x16d)]),_0x21eb4c=this[_0x5720c9(0x14f)][_0x5720c9(0x16e)](i[_0x5720c9(0x1dd)]),_0x43f83c=_0x13c816[_0x5720c9(0x1d3)](_0x581a5c,_0x5e5f89,_0x4d627[_0x5720c9(0x177)]);if(!_0x43f83c)return!0x1;let _0x47ab86=_0x43f83c[_0x5720c9(0x197)](),_0x570ad2=_0x43f83c[_0x5720c9(0x191)](),_0x3be2f6={};for(let _0x363488 of _0x43f83c[_0x5720c9(0x19f)]()){let _0x2ea20f=_0x43f83c[_0x5720c9(0x18d)](_0x363488);_0x2ea20f!==void 0x0&&(_0x3be2f6[_0x363488]=_0x2ea20f);}let {startInfo:_0x44de94,endInfo:_0x44db18}=this['_resolveEndpoints'](_0x581a5c,_0x5e5f89,_0x4d627,_0x43f83c,_0x13d7ba,_0x4a8637,_0x13c816,_0x21eb4c,_0x570ad2);if(!_0x44de94||!_0x44db18)return!0x1;let _0x266eff=(0x0,e[_0x5720c9(0x1cc)])((0x0,e[_0x5720c9(0x1c8)])(_0x44de94,_0x44db18,_0x47ab86),_0x47ab86),_0x191018={};return _0x13d7ba?_0x191018['from']={'shapeId':_0x13d7ba['shape'][_0x5720c9(0x177)],'cxnIndex':_0x13d7ba[_0x5720c9(0x1e7)]}:_0x570ad2!=null&&_0x570ad2['from']&&(_0x191018[_0x5720c9(0x1bd)]=_0x570ad2[_0x5720c9(0x1bd)]),_0x4a8637?_0x191018['to']={'shapeId':_0x4a8637['shape'][_0x5720c9(0x177)],'cxnIndex':_0x4a8637[_0x5720c9(0x1e7)]}:_0x570ad2!=null&&_0x570ad2['to']&&(_0x191018['to']=_0x570ad2['to']),this[_0x5720c9(0x15c)][_0x5720c9(0x162)](n[_0x5720c9(0x1a6)]['id'],{'unitId':_0x581a5c,'subUnitId':_0x5e5f89,'connectorShapeId':_0x4d627[_0x5720c9(0x177)],'width':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1b1)],'height':_0x266eff['worldRect'][_0x5720c9(0x1be)],'left':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1ca)],'top':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x17c)],'flipX':_0x266eff['worldRect'][_0x5720c9(0x1dc)]||!0x1,'flipY':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1c3)]||!0x1,'oldAdjustValues':_0x3be2f6,'newAdjustValues':_0x266eff[_0x5720c9(0x1d6)],'newLineType':_0x266eff[_0x5720c9(0x185)],'oldLineType':_0x47ab86,'rotation':_0x266eff[_0x5720c9(0x19a)],'oldRelation':_0x570ad2,'newRelation':_0x191018});}[_0x1813d6(0x1e4)](_0x5696c0,_0x8b26e0,_0x5e661a,_0x5c23a9){const _0x3c1bcb=_0x1813d6;let _0x111d47=this[_0x3c1bcb(0x14f)][_0x3c1bcb(0x16e)](i[_0x3c1bcb(0x1dd)])[_0x3c1bcb(0x1ce)]({'unitId':_0x8b26e0,'subUnitId':_0x5e661a,'drawingId':_0x5c23a9});if(_0x111d47!=null&&_0x111d47[_0x3c1bcb(0x154)]){var _0x497d41,_0xaa0b4f,_0x33b5ea,_0x287c27;_0x5696c0['x']=(_0x497d41=_0x111d47['transform'][_0x3c1bcb(0x1ca)])==null?0x0:_0x497d41,_0x5696c0['y']=(_0xaa0b4f=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x17c)])==null?0x0:_0xaa0b4f,_0x5696c0[_0x3c1bcb(0x1b1)]=(_0x33b5ea=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x1b1)])==null?_0x5696c0[_0x3c1bcb(0x1b1)]:_0x33b5ea,_0x5696c0[_0x3c1bcb(0x1be)]=(_0x287c27=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x1be)])==null?_0x5696c0['height']:_0x287c27;}let _0x13e6b5=this[_0x3c1bcb(0x14f)][_0x3c1bcb(0x16e)](n[_0x3c1bcb(0x16d)])[_0x3c1bcb(0x1d3)](_0x8b26e0,_0x5e661a,_0x5c23a9);if(_0x13e6b5){_0x5696c0[_0x3c1bcb(0x1cd)]=_0x13e6b5[_0x3c1bcb(0x197)]();let _0x2edd88=_0x13e6b5['getShapeData']();_0x2edd88&&(_0x5696c0[_0x3c1bcb(0x174)]=JSON['parse'](JSON[_0x3c1bcb(0x1a9)](_0x2edd88)));}}[_0x1813d6(0x163)](_0x225c0f,_0x505f00,_0x1365b7,_0x54470f,_0x3a3a77,_0x381f40,_0x485e8,_0x29a3f8,_0x250e13){const _0x32fd05=_0x1813d6;let _0x541a3c=null,_0xf74b8e=null;return _0x3a3a77&&(_0x541a3c=h(_0x225c0f,_0x505f00,_0x3a3a77[_0x32fd05(0x14d)]['drawId'],_0x3a3a77['connectionSiteIndex'],_0x485e8,_0x29a3f8)),_0x381f40&&(_0xf74b8e=h(_0x225c0f,_0x505f00,_0x381f40[_0x32fd05(0x14d)][_0x32fd05(0x177)],_0x381f40[_0x32fd05(0x1e7)],_0x485e8,_0x29a3f8)),_0x541a3c||(_0x541a3c=this['_resolveExistingOrFreeEndpoint'](_0x225c0f,_0x505f00,_0x1365b7[_0x32fd05(0x177)],!0x0,_0xf74b8e,_0x250e13==null?void 0x0:_0x250e13[_0x32fd05(0x1bd)],_0x485e8,_0x29a3f8)),_0xf74b8e||(_0xf74b8e=this[_0x32fd05(0x1b9)](_0x225c0f,_0x505f00,_0x1365b7[_0x32fd05(0x177)],!0x1,_0x541a3c,_0x250e13==null?void 0x0:_0x250e13['to'],_0x485e8,_0x29a3f8)),{'startInfo':_0x541a3c,'endInfo':_0xf74b8e};}[_0x1813d6(0x1b9)](_0xea0db8,_0x1ff005,_0x5cd2fa,_0x20bc32,_0x2b1264,_0x2135c7,_0x5f3984,_0x4f49da){if(_0x2135c7){let _0x41e3d9=h(_0xea0db8,_0x1ff005,_0x2135c7['shapeId'],_0x2135c7['cxnIndex'],_0x5f3984,_0x4f49da);if(_0x41e3d9)return _0x41e3d9;}return _0x2b1264?_(_0xea0db8,_0x1ff005,_0x5cd2fa,_0x20bc32,_0x2b1264,_0x5f3984,_0x4f49da):null;}};s[_0x1813d6(0x15b)][_0x1813d6(0x16f)](v),exports[_0x1813d6(0x1df)]=m,exports[_0x1813d6(0x1b8)]=p;function _0x5281(){const _0xf8bea6=['object','prototype','getShapeData','ShapeArrowTypeEnum','isLineShape','15qYOWUo','SheetsShapeService','get','extend','setEndArrowSize','getAdjustPoints','keys','Module','shapeData','setStartArrowSize','ShapeLineCapEnum','drawId','getPosition','getDrawingPoints','toPrimitive','ShapeTypeEnum','top','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ang','ShapeLineJoinEnum','setNoneFill','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','fillType','worldRect','setShapeType','lineType','getConnectionSiteList','defineProperty','string','ShapeFillEnum','insertShape','index','function','getAdjustValueByName','getSheetId','relation','7356177KbyuXm','getShapeRelation','\x20and\x20subUnitId\x20','stroke','getWorkbook','SheetSkeletonService','setStrokeLineType','getShapeType','removeShape','iterator','rotation','length','sin','convertPositionCellToSheetOverGrid','GradientFill','getAdjustNames','92382kfRaDi','build','capType','DRAWING_SHAPE','ShapeLineDashEnum','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','UpdateConnectorRelationCommand','getShapeId','8sVLUBR','stringify','startArrow','14669237uSODYn','find','updateContext','setPosition','ShapeGradientTypeEnum','drawingType','width','size','setHeight','8535CZaxUd','gradientStops','type','opacity','FShape','_resolveExistingOrFreeEndpoint','point','endArrow','NoFill','from','height','getBasicShapeRotateBound','push','FEnum','isConnectorShape','flipY','Skeleton\x20for\x20unitId\x20','default','DEFAULT_SHAPE_WIDTH','localToWorld','routeConnectorLineShape','getConnectorLinePoints','left','getStartConnectInfo','computeConnectorRouteLayout','shapeType','getDrawingByParam','setShapeData','unitId','ensureSkeleton','getShapes','getShapeModel','cos','getSize','adjustValues','connectShapes','generateRandomId','InsertShapeCommand','fill','108nagUxo','flipX','IDrawingManagerService','setStrokeLineDashType','FConnectorShape','setShapeSolidFill','setWidth','ShapeArrowSizeEnum','\x20not\x20found','_preloadShapeProperties','904662iRQmbw','constructor','connectionSiteIndex','getEndConnectInfo','10pOshzf','subUnitId','shape','updateShape','_injector','2554384pMtCdh','DEFAULT_SHAPE_HEIGHT','setStartArrowType','setStrokeWidth','transform','setShapeGradientFill','lineJoinType','entries','newShape','setStrokeOpacity','symbol','FWorksheet','_commandService','gradientType','getUnitId','setEndArrowType','abs','684161wDNNXa','executeCommand','_resolveEndpoints','lineStrokeType','color','SolidFill'];_0x5281=function(){return _0xf8bea6;};return _0x5281();}
|
|
1
|
+
const _0x46d5f6=_0x6394;(function(_0x1a510c,_0x19feb2){const _0x3a30ac=_0x6394,_0x54222b=_0x1a510c();while(!![]){try{const _0x3312fe=parseInt(_0x3a30ac(0x10c))/0x1*(parseInt(_0x3a30ac(0xe8))/0x2)+parseInt(_0x3a30ac(0xdb))/0x3*(parseInt(_0x3a30ac(0xfe))/0x4)+parseInt(_0x3a30ac(0x12f))/0x5+-parseInt(_0x3a30ac(0x11e))/0x6+-parseInt(_0x3a30ac(0xee))/0x7+parseInt(_0x3a30ac(0x118))/0x8*(-parseInt(_0x3a30ac(0x112))/0x9)+-parseInt(_0x3a30ac(0xc3))/0xa*(-parseInt(_0x3a30ac(0xb7))/0xb);if(_0x3312fe===_0x19feb2)break;else _0x54222b['push'](_0x54222b['shift']());}catch(_0x5ce064){_0x54222b['push'](_0x54222b['shift']());}}}(_0x5409,0x6bcc4),Object[_0x46d5f6(0x10b)](exports,Symbol[_0x46d5f6(0xaf)],{'value':_0x46d5f6(0xd5)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs-pro/sheets-shape'),r=require('@univerjs/core'),i=require('@univerjs/drawing'),a=require('@univerjs/sheets'),o=require('@univerjs/sheets-drawing'),s=require('@univerjs/sheets/facade');var c=class extends t['FEnum']{get['ShapeTypeEnum'](){const _0x2abdc2=_0x46d5f6;return e[_0x2abdc2(0xb8)];}get[_0x46d5f6(0x117)](){return e['ShapeFillEnum'];}get['ShapeGradientTypeEnum'](){return e['ShapeGradientTypeEnum'];}get['ShapeLineTypeEnum'](){return e['ShapeLineTypeEnum'];}get[_0x46d5f6(0xfd)](){const _0x4d4d16=_0x46d5f6;return e[_0x4d4d16(0xfd)];}get[_0x46d5f6(0xb0)](){return e['ShapeLineCapEnum'];}get[_0x46d5f6(0x11b)](){return e['ShapeLineJoinEnum'];}get['ShapeArrowTypeEnum'](){const _0x5c8fc3=_0x46d5f6;return e[_0x5c8fc3(0xf9)];}get['ShapeArrowSizeEnum'](){const _0x5b262d=_0x46d5f6;return e[_0x5b262d(0xf8)];}};function _0x6394(_0x3e3716,_0x55166b){_0x3e3716=_0x3e3716-0xa6;const _0x540968=_0x5409();let _0x63944e=_0x540968[_0x3e3716];return _0x63944e;}t[_0x46d5f6(0xbc)][_0x46d5f6(0xb3)](c);function _0x5409(){const _0x19a386=['RemoveSheetDrawingCommand','default','getConnectionSites','keys','537BvIWzg','_injector','call','relation','width','SheetsShapeService','getShapeData','_resolveExistingOrFreeEndpoint','setHeight','worldRect','computeConnectorRouteLayout','ensureSkeleton','isConnectorShape','423900CdLbQN',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','endArrow','SetShapeDrawingDataCommand','getShapes','lineStrokeType','3730811otkMRa','transform','color','unitId','opacity','setEndArrowType','startArrow','convertPositionCellToSheetOverGrid','getAdjustPoints','_resolveEndpoints','ShapeArrowSizeEnum','ShapeArrowTypeEnum','connectionSiteIndex','GradientFill','flipY','ShapeLineDashEnum','8012zSQcvF','SheetSkeletonService','setShapeGradientFill','newShape','get','ang','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','string','getShapeModel','from','length','subUnitId','symbol','defineProperty','1hTiraE','executeCommand','newConnector','isLineShape','type','height','99omqfmI','getWorkbook','fill','setStartArrowSize','setStrokeLineJoinType','ShapeFillEnum','580480NpTXeP','setStrokeLineDashType','setStrokeOpacity','ShapeLineJoinEnum','insertShape','getDrawingByParam','1610676lRTIwo','gradientStops','constructor','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','ConnectorCoordinateTransform','iterator','getDrawingPoints','setShapeSolidFill','shapeData','InsertShapeCommand','prototype','abs','build','_preloadShapeProperties','getSheetId','setAbsolutePosition','updateContext','2052130HHfCMT','\x20not\x20found','dashType','connectShapes','entries','setPosition','shape','getShapeType','size','getConnectorLinePoints','updateShape','toPrimitive','Skeleton\x20for\x20unitId\x20','getAdjustValueByName','DEFAULT_SHAPE_HEIGHT','drawingType','routeConnectorLineShape','shapeId','point','top','fillType','getStartConnectInfo','setShapeType','gradientType','setStrokeLineType','stroke','rotation','DRAWING_SHAPE','getAdjustNames','toStringTag','ShapeLineCapEnum','IDrawingManagerService','getSize','extend','getConnectionSiteList','find','DrawingTypeEnum','277673IgmUfi','ShapeTypeEnum','getUnitId','cos','setStartArrowType','FEnum','removeShape','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getPosition','UpdateConnectorRelationCommand','drawId','_commandService','420fIbVwW','object','\x20and\x20subUnitId\x20','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','generateRandomId','FWorksheet','capType','localToWorld','setNoneFill','function','FShape','left','getShapeId','adjustValues','shapeType','flipX','getBasicShapeRotateBound','stringify','Module','getEndConnectInfo'];_0x5409=function(){return _0x19a386;};return _0x5409();}function l(_0x4ba20a){'@babel/helpers - typeof';const _0x1b56f7=_0x46d5f6;return l=typeof Symbol==_0x1b56f7(0xcc)&&typeof Symbol[_0x1b56f7(0x123)]==_0x1b56f7(0x10a)?function(_0xc27fbe){return typeof _0xc27fbe;}:function(_0x320b6b){const _0x6c6695=_0x1b56f7;return _0x320b6b&&typeof Symbol=='function'&&_0x320b6b[_0x6c6695(0x120)]===Symbol&&_0x320b6b!==Symbol[_0x6c6695(0x128)]?_0x6c6695(0x10a):typeof _0x320b6b;},l(_0x4ba20a);}function u(_0x5a7313,_0x2f37ac){const _0x3e5a80=_0x46d5f6;if(l(_0x5a7313)!=_0x3e5a80(0xc4)||!_0x5a7313)return _0x5a7313;var _0x44c26e=_0x5a7313[Symbol[_0x3e5a80(0x13a)]];if(_0x44c26e!==void 0x0){var _0x13fee2=_0x44c26e[_0x3e5a80(0xdd)](_0x5a7313,_0x2f37ac||_0x3e5a80(0xd8));if(l(_0x13fee2)!=_0x3e5a80(0xc4))return _0x13fee2;throw TypeError(_0x3e5a80(0xbe));}return(_0x2f37ac===_0x3e5a80(0x105)?String:Number)(_0x5a7313);}function d(_0x3c9e04){const _0x2c7117=_0x46d5f6;var _0x5d2c55=u(_0x3c9e04,_0x2c7117(0x105));return l(_0x5d2c55)==_0x2c7117(0x10a)?_0x5d2c55:_0x5d2c55+'';}function f(_0x1a3b23,_0x107803,_0x336f14){const _0x17d2d9=_0x46d5f6;return(_0x107803=d(_0x107803))in _0x1a3b23?Object[_0x17d2d9(0x10b)](_0x1a3b23,_0x107803,{'value':_0x336f14,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1a3b23[_0x107803]=_0x336f14,_0x1a3b23;}var p=class{constructor(_0x25a249,_0x225d4b,_0x3c0fb8,_0x3c8a28){const _0x4a3011=_0x46d5f6;f(this,_0x4a3011(0xf1),void 0x0),f(this,'subUnitId',void 0x0),f(this,_0x4a3011(0xc1),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x4a3011(0xdf),n['DEFAULT_SHAPE_WIDTH']),f(this,_0x4a3011(0x111),n[_0x4a3011(0x13d)]),f(this,_0x4a3011(0xd1),void 0x0),f(this,_0x4a3011(0x126),{}),f(this,_0x4a3011(0xdc),void 0x0),this[_0x4a3011(0xf1)]=_0x25a249,this[_0x4a3011(0x109)]=_0x225d4b,this[_0x4a3011(0xc1)]=_0x3c0fb8||(0x0,r[_0x4a3011(0xc7)])(),this['_injector']=_0x3c8a28;}[_0x46d5f6(0x134)](_0x19277c,_0x2aa72e,_0xe89a67,_0x519844){const _0x5057db=_0x46d5f6;let _0x135eb1=this[_0x5057db(0xdc)][_0x5057db(0x102)](a['SheetSkeletonService'])[_0x5057db(0xe6)](this[_0x5057db(0xf1)],this[_0x5057db(0x109)]);if(!_0x135eb1)throw Error(_0x5057db(0x13b)+this['unitId']+_0x5057db(0xc5)+this[_0x5057db(0x109)]+'\x20not\x20found');let {transform:_0x20d291}=(0x0,a[_0x5057db(0xf5)])(this['unitId'],this[_0x5057db(0x109)],{'row':_0x19277c,'column':_0x2aa72e,'rowOffset':_0xe89a67,'columnOffset':_0x519844},0x1,0x1,_0x135eb1);return this['x']=_0x20d291[_0x5057db(0xce)],this['y']=_0x20d291[_0x5057db(0x142)],this;}[_0x46d5f6(0x12d)](_0x1f1472,_0x36646d){return this['x']=_0x1f1472,this['y']=_0x36646d,this;}[_0x46d5f6(0xa8)](_0x412394){const _0x53e66c=_0x46d5f6;return this[_0x53e66c(0xd1)]=_0x412394,this;}['setShapeData'](_0x49986f){const _0x1e1cc5=_0x46d5f6;return _0x49986f[_0x1e1cc5(0xd1)]&&this['setShapeType'](_0x49986f['shapeType']),this[_0x1e1cc5(0x126)]={..._0x49986f},this;}[_0x46d5f6(0x125)](_0x1ba4bb,_0x263c55){const _0xeb1a1=_0x46d5f6;return this[_0xeb1a1(0x126)][_0xeb1a1(0x114)]||(this[_0xeb1a1(0x126)][_0xeb1a1(0x114)]={}),this[_0xeb1a1(0x126)][_0xeb1a1(0x114)][_0xeb1a1(0xa6)]=e[_0xeb1a1(0x117)]['SolidFill'],_0x1ba4bb!==void 0x0&&(this[_0xeb1a1(0x126)][_0xeb1a1(0x114)][_0xeb1a1(0xf0)]=_0x1ba4bb),_0x263c55!==void 0x0&&(this[_0xeb1a1(0x126)][_0xeb1a1(0x114)][_0xeb1a1(0xf2)]=_0x263c55),this;}[_0x46d5f6(0x100)](_0x3d6c8c,_0xfb85ee,_0x41cdfc){const _0xb7b83d=_0x46d5f6;if(_0xfb85ee===void 0x0||_0xfb85ee[_0xb7b83d(0x108)]===0x0)throw Error(_0xb7b83d(0xc6));return this[_0xb7b83d(0x126)][_0xb7b83d(0x114)]||(this[_0xb7b83d(0x126)]['fill']={}),this[_0xb7b83d(0x126)][_0xb7b83d(0x114)][_0xb7b83d(0x11f)]=_0xfb85ee,this['shapeData']['fill'][_0xb7b83d(0xa6)]=e[_0xb7b83d(0x117)][_0xb7b83d(0xfb)],this[_0xb7b83d(0x126)][_0xb7b83d(0x114)][_0xb7b83d(0xa9)]=_0x3d6c8c,_0x41cdfc!==void 0x0&&(this[_0xb7b83d(0x126)][_0xb7b83d(0x114)]['gradientAngle']=_0x41cdfc),this;}[_0x46d5f6(0xcb)](){const _0x2728af=_0x46d5f6;return this['shapeData'][_0x2728af(0x114)]={'fillType':e[_0x2728af(0x117)]['NoFill']},this;}['setStrokeColor'](_0x4b1fc8){const _0x5bd25d=_0x46d5f6;return this['shapeData'][_0x5bd25d(0xab)]||(this[_0x5bd25d(0x126)][_0x5bd25d(0xab)]={}),this[_0x5bd25d(0x126)][_0x5bd25d(0xab)]['color']=_0x4b1fc8,this;}['setStrokeWidth'](_0x18bffa){const _0x3726a8=_0x46d5f6;return this[_0x3726a8(0x126)][_0x3726a8(0xab)]||(this[_0x3726a8(0x126)][_0x3726a8(0xab)]={}),this[_0x3726a8(0x126)]['stroke'][_0x3726a8(0xdf)]=_0x18bffa,this;}[_0x46d5f6(0x119)](_0x96df0e){const _0x4cc145=_0x46d5f6;return this[_0x4cc145(0x126)][_0x4cc145(0xab)]||(this[_0x4cc145(0x126)][_0x4cc145(0xab)]={}),this[_0x4cc145(0x126)][_0x4cc145(0xab)][_0x4cc145(0x131)]=_0x96df0e,this;}[_0x46d5f6(0x116)](_0x4994cc){const _0x77032=_0x46d5f6;return this[_0x77032(0x126)][_0x77032(0xab)]||(this[_0x77032(0x126)][_0x77032(0xab)]={}),this[_0x77032(0x126)][_0x77032(0xab)]['lineJoinType']=_0x4994cc,this;}['setStrokeLineCapType'](_0x151960){const _0x5e1e3a=_0x46d5f6;return this[_0x5e1e3a(0x126)][_0x5e1e3a(0xab)]||(this['shapeData'][_0x5e1e3a(0xab)]={}),this[_0x5e1e3a(0x126)][_0x5e1e3a(0xab)][_0x5e1e3a(0xc9)]=_0x151960,this;}[_0x46d5f6(0x11a)](_0x13ea2e){const _0x2f23cc=_0x46d5f6;return this['shapeData'][_0x2f23cc(0xab)]||(this[_0x2f23cc(0x126)][_0x2f23cc(0xab)]={}),this[_0x2f23cc(0x126)][_0x2f23cc(0xab)][_0x2f23cc(0xf2)]=_0x13ea2e,this;}[_0x46d5f6(0xaa)](_0x51d3f1){const _0x1105b0=_0x46d5f6;return this[_0x1105b0(0x126)][_0x1105b0(0xab)]||(this[_0x1105b0(0x126)][_0x1105b0(0xab)]={}),this['shapeData'][_0x1105b0(0xab)][_0x1105b0(0xed)]=_0x51d3f1,this;}['setWidth'](_0x4ebd95){return this['width']=_0x4ebd95,this;}[_0x46d5f6(0xe3)](_0x245099){const _0x235d8a=_0x46d5f6;return this[_0x235d8a(0x111)]=_0x245099,this;}[_0x46d5f6(0x10f)](){const _0x3c12e1=_0x46d5f6;let _0x4bf9d6=this[_0x3c12e1(0xdc)][_0x3c12e1(0x102)](n[_0x3c12e1(0xe0)])[_0x3c12e1(0x106)](this[_0x3c12e1(0xf1)],this['subUnitId'],this[_0x3c12e1(0xc1)]);return _0x4bf9d6?(0x0,e[_0x3c12e1(0xe7)])(_0x4bf9d6['getShapeType']()):this['shapeType']?(0x0,e[_0x3c12e1(0xe7)])(this[_0x3c12e1(0xd1)]):!0x1;}[_0x46d5f6(0xd9)](){const _0x2510fe=_0x46d5f6;let _0x3f16f7=this['_injector']['get'](n[_0x2510fe(0xe0)])['getShapeModel'](this[_0x2510fe(0xf1)],this['subUnitId'],this['drawId']);if(!_0x3f16f7)return[];let _0x44faf8=this[_0x2510fe(0xdc)][_0x2510fe(0x102)](i[_0x2510fe(0xb1)])['getDrawingByParam']({'unitId':this[_0x2510fe(0xf1)],'subUnitId':this[_0x2510fe(0x109)],'drawingId':this[_0x2510fe(0xc1)]});if(!(_0x44faf8!=null&&_0x44faf8[_0x2510fe(0xef)]))return[];let {width:_0x418ca2=0x0,height:_0x49d379=0x0}=_0x44faf8[_0x2510fe(0xef)];return _0x3f16f7[_0x2510fe(0x12e)]({'width':_0x418ca2,'height':_0x49d379}),_0x3f16f7[_0x2510fe(0xb4)]();}[_0x46d5f6(0xf6)](){const _0x3569e1=_0x46d5f6;let _0xa9a93b=this[_0x3569e1(0xdc)][_0x3569e1(0x102)](n['SheetsShapeService'])[_0x3569e1(0x106)](this[_0x3569e1(0xf1)],this['subUnitId'],this['drawId']);if(!_0xa9a93b)return[];let _0x47811d=this['_injector'][_0x3569e1(0x102)](i[_0x3569e1(0xb1)])[_0x3569e1(0x11d)]({'unitId':this[_0x3569e1(0xf1)],'subUnitId':this[_0x3569e1(0x109)],'drawingId':this['drawId']});if(!(_0x47811d!=null&&_0x47811d[_0x3569e1(0xef)]))return[];let {width:_0x562fa9=0x0,height:_0x575041=0x0}=_0x47811d[_0x3569e1(0xef)];return _0xa9a93b[_0x3569e1(0x12e)]({'width':_0x562fa9,'height':_0x575041}),_0xa9a93b[_0x3569e1(0x124)]();}['getConnectorLinePoints'](){const _0xe86184=_0x46d5f6;let _0x6f4383=this[_0xe86184(0xdc)][_0xe86184(0x102)](n[_0xe86184(0xe0)])['getShapeModel'](this['unitId'],this[_0xe86184(0x109)],this[_0xe86184(0xc1)]);if(!_0x6f4383||!(0x0,e[_0xe86184(0xe7)])(_0x6f4383[_0xe86184(0x136)]()))return[];let _0x581c12=this[_0xe86184(0xdc)][_0xe86184(0x102)](i[_0xe86184(0xb1)])[_0xe86184(0x11d)]({'unitId':this[_0xe86184(0xf1)],'subUnitId':this[_0xe86184(0x109)],'drawingId':this[_0xe86184(0xc1)]});if(!(_0x581c12!=null&&_0x581c12[_0xe86184(0xef)]))return[];let {width:_0x3ea1ff=0x0,height:_0xf39685=0x0}=_0x581c12[_0xe86184(0xef)];return _0x6f4383[_0xe86184(0x12e)]({'width':_0x3ea1ff,'height':_0xf39685}),_0x6f4383[_0xe86184(0x138)]();}[_0x46d5f6(0xa7)](){const _0x371854=_0x46d5f6;var _0x5a9902;let _0x30a053=this['_injector']['get'](n[_0x371854(0xe0)])[_0x371854(0x106)](this[_0x371854(0xf1)],this[_0x371854(0x109)],this['drawId']);return _0x30a053?(_0x5a9902=_0x30a053['getStartConnectInfo']())==null?null:_0x5a9902:null;}[_0x46d5f6(0xd6)](){const _0x599157=_0x46d5f6;var _0x49cdb1;let _0x33a355=this['_injector'][_0x599157(0x102)](n[_0x599157(0xe0)])[_0x599157(0x106)](this[_0x599157(0xf1)],this[_0x599157(0x109)],this['drawId']);return _0x33a355?(_0x49cdb1=_0x33a355[_0x599157(0xd6)]())==null?null:_0x49cdb1:null;}[_0x46d5f6(0x12a)](){const _0x42bfc9=_0x46d5f6;var _0x452afb,_0x15e72b;if(!this['shapeType'])throw Error(_0x42bfc9(0x121));if(this['x']===0x0||this['y']===0x0){let _0x27b903=this[_0x42bfc9(0xdc)]['get'](a[_0x42bfc9(0xff)])[_0x42bfc9(0xe6)](this[_0x42bfc9(0xf1)],this[_0x42bfc9(0x109)]);if(!_0x27b903)throw Error(_0x42bfc9(0x13b)+this[_0x42bfc9(0xf1)]+_0x42bfc9(0xc5)+this['subUnitId']+_0x42bfc9(0x130));let {transform:_0x5710c6}=(0x0,a[_0x42bfc9(0xf5)])(this['unitId'],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x27b903);this['x']=this['x']>0x0?this['x']:_0x5710c6[_0x42bfc9(0xce)],this['y']=this['y']>0x0?this['y']:_0x5710c6[_0x42bfc9(0x142)];}return this[_0x42bfc9(0xdf)]=(_0x452afb=this[_0x42bfc9(0xdf)])==null?n['DEFAULT_SHAPE_WIDTH']:_0x452afb,this[_0x42bfc9(0x111)]=(_0x15e72b=this['height'])==null?n[_0x42bfc9(0x13d)]:_0x15e72b,{'unitId':this['unitId'],'subUnitId':this[_0x42bfc9(0x109)],'shapeId':this[_0x42bfc9(0xc1)],'shapeType':this[_0x42bfc9(0xd1)],'shapeData':Object[_0x42bfc9(0xda)](this[_0x42bfc9(0x126)])['length']>0x0?this[_0x42bfc9(0x126)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x42bfc9(0xdf)],'height':this[_0x42bfc9(0x111)]};}[_0x46d5f6(0xcf)](){const _0x328878=_0x46d5f6;return this[_0x328878(0xc1)];}[_0x46d5f6(0x136)](){const _0xea7c8e=_0x46d5f6;return this[_0xea7c8e(0xd1)];}[_0x46d5f6(0xe1)](){return this['shapeData'];}[_0x46d5f6(0xbf)](){return{'x':this['x'],'y':this['y']};}[_0x46d5f6(0xb2)](){return{'width':this['width'],'height':this['height']};}},m=class extends p{constructor(_0x2aa3ef,_0x1f9f01,_0x5f1075,_0xac9f17){const _0x234578=_0x46d5f6;super(_0x2aa3ef,_0x1f9f01,_0x5f1075,_0xac9f17),f(this,_0x234578(0x126),{});}['setShapeType'](_0x146534){const _0x5d3363=_0x46d5f6;if(!(0x0,e['isConnectorShape'])(_0x146534))throw Error(_0x5d3363(0x104)+_0x146534+_0x5d3363(0xe9));return super[_0x5d3363(0xa8)](_0x146534),this;}[_0x46d5f6(0xbb)](_0x350424){const _0xa0aca7=_0x46d5f6;var _0x5a0df2,_0x26c55b;return(_0x5a0df2=this[_0xa0aca7(0x126)])!=null&&_0x5a0df2['ln']||(this[_0xa0aca7(0x126)]['ln']={}),!((_0x26c55b=this[_0xa0aca7(0x126)])==null||(_0x26c55b=_0x26c55b['ln'])==null)&&_0x26c55b[_0xa0aca7(0xf4)]||(this[_0xa0aca7(0x126)]['ln'][_0xa0aca7(0xf4)]={}),this[_0xa0aca7(0x126)]['ln'][_0xa0aca7(0xf4)]['type']=_0x350424,this;}[_0x46d5f6(0xf3)](_0x3c3ee5){const _0x648cfd=_0x46d5f6;var _0x524991,_0x21bf74;return(_0x524991=this['shapeData'])!=null&&_0x524991['ln']||(this[_0x648cfd(0x126)]['ln']={}),!((_0x21bf74=this[_0x648cfd(0x126)])==null||(_0x21bf74=_0x21bf74['ln'])==null)&&_0x21bf74[_0x648cfd(0xea)]||(this['shapeData']['ln'][_0x648cfd(0xea)]={}),this['shapeData']['ln'][_0x648cfd(0xea)][_0x648cfd(0x110)]=_0x3c3ee5,this;}[_0x46d5f6(0x115)](_0x2f904b){const _0x47d886=_0x46d5f6;var _0xd1c5ef,_0x94d293;return(_0xd1c5ef=this['shapeData'])!=null&&_0xd1c5ef['ln']||(this[_0x47d886(0x126)]['ln']={}),!((_0x94d293=this[_0x47d886(0x126)])==null||(_0x94d293=_0x94d293['ln'])==null)&&_0x94d293['startArrow']||(this[_0x47d886(0x126)]['ln'][_0x47d886(0xf4)]={}),this[_0x47d886(0x126)]['ln'][_0x47d886(0xf4)]['size']=_0x2f904b,this;}['setEndArrowSize'](_0x510df1){const _0x10c18c=_0x46d5f6;var _0x644cf,_0x3127b3;return(_0x644cf=this[_0x10c18c(0x126)])!=null&&_0x644cf['ln']||(this[_0x10c18c(0x126)]['ln']={}),!((_0x3127b3=this[_0x10c18c(0x126)])==null||(_0x3127b3=_0x3127b3['ln'])==null)&&_0x3127b3['endArrow']||(this[_0x10c18c(0x126)]['ln']['endArrow']={}),this[_0x10c18c(0x126)]['ln']['endArrow'][_0x10c18c(0x137)]=_0x510df1,this;}[_0x46d5f6(0x12a)](){const _0x56c8e8=_0x46d5f6;return super[_0x56c8e8(0x12a)]();}['getEndConnectInfo'](){const _0x55b241=_0x46d5f6;var _0xc12035;return((_0xc12035=this[_0x55b241(0x126)])==null||(_0xc12035=_0xc12035[_0x55b241(0xde)])==null?void 0x0:_0xc12035['to'])||null;}[_0x46d5f6(0xa7)](){const _0x130cb7=_0x46d5f6;var _0x2dafd3;return((_0x2dafd3=this[_0x130cb7(0x126)])==null||(_0x2dafd3=_0x2dafd3[_0x130cb7(0xde)])==null?void 0x0:_0x2dafd3[_0x130cb7(0x107)])||null;}};function h(_0x58377d,_0x1ead24,_0x4d7306,_0x2c4a7a,_0x1f7d01,_0x1ee1b9){const _0x54365a=_0x46d5f6;let _0x59a522=_0x1f7d01[_0x54365a(0x106)](_0x58377d,_0x1ead24,_0x4d7306);if(!_0x59a522)return null;let _0x2a3c41=_0x1ee1b9[_0x54365a(0x11d)]({'unitId':_0x58377d,'subUnitId':_0x1ead24,'drawingId':_0x4d7306});if(!(_0x2a3c41!=null&&_0x2a3c41[_0x54365a(0xef)]))return null;let {left:_0x308131=0x0,top:_0xdcd71d=0x0,width:_0x2a12ef=0x0,height:_0x702b55=0x0,flipX:_0x60521d=!0x1,flipY:_0x5425a7=!0x1,angle:_0x459207}=_0x2a3c41[_0x54365a(0xef)];_0x59a522[_0x54365a(0x12e)]({'width':_0x2a12ef,'height':_0x702b55});let _0x4969ab=_0x59a522[_0x54365a(0xb4)]()[_0x54365a(0xb5)](_0x27e430=>_0x27e430['index']===_0x2c4a7a);if(!_0x4969ab)return null;let _0x45ba78=_0x60521d?_0x2a12ef-_0x4969ab['x']:_0x4969ab['x'],_0x33acd3=_0x5425a7?_0x702b55-_0x4969ab['y']:_0x4969ab['y'];if(_0x459207&&_0x459207!==0x0){let _0x55ed9=_0x459207*Math['PI']/0xb4,_0xda1cbc=Math[_0x54365a(0xba)](_0x55ed9),_0x133697=Math['sin'](_0x55ed9),_0x8de538=_0x2a12ef/0x2,_0x34854b=_0x702b55/0x2,_0x1d8f01=_0x45ba78-_0x8de538,_0x102557=_0x33acd3-_0x34854b;_0x45ba78=_0x8de538+_0x1d8f01*_0xda1cbc-_0x102557*_0x133697,_0x33acd3=_0x34854b+_0x1d8f01*_0x133697+_0x102557*_0xda1cbc;}_0x45ba78+=_0x308131,_0x33acd3+=_0xdcd71d;let _0x406112=_0x4969ab[_0x54365a(0x103)]/0xea60;_0x60521d&&(_0x406112=0xb4-_0x406112),_0x5425a7&&(_0x406112=-_0x406112),_0x406112+=_0x459207||0x0,_0x406112=(_0x406112%0x168+0x168)%0x168;let _0x51e103=(0x0,e[_0x54365a(0xd3)])({'left':_0x308131,'top':_0xdcd71d,'width':_0x2a12ef,'height':_0x702b55},_0x459207||0x0);return{'point':{'x':_0x45ba78,'y':_0x33acd3},'angle':_0x406112,'bounds':_0x51e103};}function g(_0x54353d,_0x21d484){const _0x6cb2da=_0x46d5f6;let _0x331fc7=_0x21d484['x']-_0x54353d['x'],_0x4ddbae=_0x21d484['y']-_0x54353d['y'];return Math[_0x6cb2da(0x129)](_0x331fc7)>=Math[_0x6cb2da(0x129)](_0x4ddbae)?_0x331fc7>=0x0?0xb4:0x0:_0x4ddbae>=0x0?0x10e:0x5a;}function _(_0x2eb393,_0x3e1b16,_0x12facd,_0x289092,_0x266e89,_0x359611,_0x5e9e9e){const _0x4dee58=_0x46d5f6;let _0x1c72c6=_0x359611[_0x4dee58(0x106)](_0x2eb393,_0x3e1b16,_0x12facd);if(!_0x1c72c6)return null;let _0x3fb605=_0x5e9e9e['getDrawingByParam']({'unitId':_0x2eb393,'subUnitId':_0x3e1b16,'drawingId':_0x12facd});if(!(_0x3fb605!=null&&_0x3fb605[_0x4dee58(0xef)]))return null;let {left:_0x23ff7f=0x0,top:_0x69cc3b=0x0,width:_0x1c7ce8=0x0,height:_0x49e5eb=0x0,flipX:_0x348fae=!0x1,flipY:_0x3c0803=!0x1}=_0x3fb605[_0x4dee58(0xef)];_0x1c72c6[_0x4dee58(0x12e)]({'width':_0x1c7ce8,'height':_0x49e5eb});let _0x3b43a6=_0x1c72c6[_0x4dee58(0x138)]();if(_0x3b43a6['length']<0x2)return null;let _0x137cf9=_0x289092?_0x3b43a6[0x0]:_0x3b43a6[_0x3b43a6[_0x4dee58(0x108)]-0x1],_0x58a8d5=new e[(_0x4dee58(0x122))]({'left':_0x23ff7f,'top':_0x69cc3b,'width':_0x1c7ce8,'height':_0x49e5eb,'flipX':_0x348fae,'flipY':_0x3c0803})[_0x4dee58(0xca)](_0x137cf9);return{'point':_0x58a8d5,'angle':g(_0x266e89[_0x4dee58(0x141)],_0x58a8d5),'bounds':{'left':_0x58a8d5['x'],'top':_0x58a8d5['y'],'width':0x0,'height':0x0}};}var v=class extends s[_0x46d5f6(0xc8)]{async[_0x46d5f6(0x11c)](_0x1e2a5e){const _0x5c7f1e=_0x46d5f6;let {unitId:_0x5daa25,subUnitId:_0xf17302,shapeId:_0x1bfa2b,shapeType:_0x155fcf,shapeData:_0x20ff52,x:_0x50f5d1,y:_0x23b15e,width:_0x2fd939,height:_0x1e2143}=_0x1e2a5e;return this[_0x5c7f1e(0xc2)][_0x5c7f1e(0x10d)](n[_0x5c7f1e(0x127)]['id'],{'unitId':_0x5daa25,'subUnitId':_0xf17302,'shapeId':_0x1bfa2b,'shapeType':_0x155fcf,'shapeData':_0x20ff52,'position':{'x':_0x50f5d1,'y':_0x23b15e},'width':_0x2fd939,'height':_0x1e2143});}async[_0x46d5f6(0x139)](_0x1861a2){const _0x4696cb=_0x46d5f6;let {unitId:_0x19735f,subUnitId:_0x488b47,shapeId:_0x19dcc9,shapeType:_0x5f0ac9,shapeData:_0x3b5fb5,x:_0x968f30,y:_0x47aed4,width:_0x15385b,height:_0x13ce0f}=_0x1861a2;return this[_0x4696cb(0xc2)][_0x4696cb(0x10d)](n[_0x4696cb(0xeb)]['id'],{'unitId':_0x19735f,'subUnitId':_0x488b47,'shapeId':_0x19dcc9,'shapeType':_0x5f0ac9,'shapeData':_0x3b5fb5,'position':{'x':_0x968f30,'y':_0x47aed4},'width':_0x15385b,'height':_0x13ce0f});}[_0x46d5f6(0x101)](_0x3e06f3){const _0x4a8dcf=_0x46d5f6;let _0x58a7dc=this[_0x4a8dcf(0x113)]()[_0x4a8dcf(0xb9)](),_0x204f43=this['getSheetId']();if(_0x3e06f3){let _0x56352b=new p(_0x58a7dc,_0x204f43,_0x3e06f3[_0x4a8dcf(0xc1)],this['_injector']);return this[_0x4a8dcf(0x12b)](_0x56352b,_0x58a7dc,_0x204f43,_0x3e06f3['drawId']),_0x56352b;}return new p(_0x58a7dc,_0x204f43,(0x0,r[_0x4a8dcf(0xc7)])(),this[_0x4a8dcf(0xdc)]);}[_0x46d5f6(0x10e)](_0x3554bc){const _0x1204c4=_0x46d5f6;let _0x39e101=this[_0x1204c4(0x113)]()['getUnitId'](),_0x50e19b=this[_0x1204c4(0x12c)]();if(_0x3554bc){let _0x4c6125=new m(_0x39e101,_0x50e19b,_0x3554bc[_0x1204c4(0xc1)],this[_0x1204c4(0xdc)]);return this[_0x1204c4(0x12b)](_0x4c6125,_0x39e101,_0x50e19b,_0x3554bc[_0x1204c4(0xc1)]),_0x4c6125;}return new m(_0x39e101,_0x50e19b,(0x0,r['generateRandomId'])(),this[_0x1204c4(0xdc)]);}[_0x46d5f6(0xec)](){const _0x5d55f4=_0x46d5f6;let _0x272c91=this[_0x5d55f4(0xdc)]['get'](o['ISheetDrawingService']),_0x391dc6=this['getWorkbook']()[_0x5d55f4(0xb9)](),_0x301deb=this[_0x5d55f4(0x12c)](),_0x13eafd=_0x272c91['getDrawingData'](_0x391dc6,_0x301deb);if(!_0x13eafd)return[];let _0x2c8ff2=[];for(let [_0x2273d5,_0x4e32dc]of Object[_0x5d55f4(0x133)](_0x13eafd))if(_0x4e32dc&&_0x4e32dc[_0x5d55f4(0x13e)]===r[_0x5d55f4(0xb6)][_0x5d55f4(0xad)]){let _0x36ddd4=new p(_0x391dc6,_0x301deb,_0x2273d5,this[_0x5d55f4(0xdc)]);this[_0x5d55f4(0x12b)](_0x36ddd4,_0x391dc6,_0x301deb,_0x2273d5),_0x2c8ff2['push'](_0x36ddd4);}return _0x2c8ff2;}[_0x46d5f6(0xbd)](_0x1fb58b){const _0x538000=_0x46d5f6;let {unitId:_0x2c53ff,subUnitId:_0x2d13e2,drawId:_0x594071}=_0x1fb58b;return this['_commandService']['executeCommand'](o[_0x538000(0xd7)]['id'],{'unitId':_0x2c53ff,'drawings':[{'unitId':_0x2c53ff,'subUnitId':_0x2d13e2,'drawingId':_0x594071,'drawingType':r[_0x538000(0xb6)][_0x538000(0xad)]}]});}async[_0x46d5f6(0x132)](_0x28b15e){const _0x2b4be1=_0x46d5f6;let {connector:_0x507b1d,startTarget:_0x2ad18f,endTarget:_0xafe3ab}=_0x28b15e;if(!_0x2ad18f&&!_0xafe3ab)return!0x1;let _0x4101aa=this[_0x2b4be1(0x113)]()[_0x2b4be1(0xb9)](),_0x167659=this[_0x2b4be1(0x12c)](),_0x2adbbb=this[_0x2b4be1(0xdc)]['get'](n[_0x2b4be1(0xe0)]),_0x128597=this[_0x2b4be1(0xdc)][_0x2b4be1(0x102)](i['IDrawingManagerService']),_0x36ec34=_0x2adbbb['getShapeModel'](_0x4101aa,_0x167659,_0x507b1d[_0x2b4be1(0xc1)]);if(!_0x36ec34)return!0x1;let _0xfc1954=_0x36ec34['getShapeType'](),_0xd09f5a=_0x36ec34['getShapeRelation'](),_0x44bb91={};for(let _0x2856fb of _0x36ec34[_0x2b4be1(0xae)]()){let _0x10551e=_0x36ec34[_0x2b4be1(0x13c)](_0x2856fb);_0x10551e!==void 0x0&&(_0x44bb91[_0x2856fb]=_0x10551e);}let {startInfo:_0x5717e8,endInfo:_0x29f9da}=this[_0x2b4be1(0xf7)](_0x4101aa,_0x167659,_0x507b1d,_0x36ec34,_0x2ad18f,_0xafe3ab,_0x2adbbb,_0x128597,_0xd09f5a);if(!_0x5717e8||!_0x29f9da)return!0x1;let _0x2a2a71=(0x0,e[_0x2b4be1(0xe5)])((0x0,e[_0x2b4be1(0x13f)])(_0x5717e8,_0x29f9da,_0xfc1954),_0xfc1954),_0x30eb7b={};return _0x2ad18f?_0x30eb7b[_0x2b4be1(0x107)]={'shapeId':_0x2ad18f[_0x2b4be1(0x135)]['drawId'],'cxnIndex':_0x2ad18f[_0x2b4be1(0xfa)]}:_0xd09f5a!=null&&_0xd09f5a['from']&&(_0x30eb7b[_0x2b4be1(0x107)]=_0xd09f5a[_0x2b4be1(0x107)]),_0xafe3ab?_0x30eb7b['to']={'shapeId':_0xafe3ab[_0x2b4be1(0x135)][_0x2b4be1(0xc1)],'cxnIndex':_0xafe3ab[_0x2b4be1(0xfa)]}:_0xd09f5a!=null&&_0xd09f5a['to']&&(_0x30eb7b['to']=_0xd09f5a['to']),this[_0x2b4be1(0xc2)]['executeCommand'](n[_0x2b4be1(0xc0)]['id'],{'unitId':_0x4101aa,'subUnitId':_0x167659,'connectorShapeId':_0x507b1d['drawId'],'width':_0x2a2a71['worldRect'][_0x2b4be1(0xdf)],'height':_0x2a2a71[_0x2b4be1(0xe4)][_0x2b4be1(0x111)],'left':_0x2a2a71[_0x2b4be1(0xe4)][_0x2b4be1(0xce)],'top':_0x2a2a71[_0x2b4be1(0xe4)]['top'],'flipX':_0x2a2a71[_0x2b4be1(0xe4)][_0x2b4be1(0xd2)]||!0x1,'flipY':_0x2a2a71[_0x2b4be1(0xe4)][_0x2b4be1(0xfc)]||!0x1,'oldAdjustValues':_0x44bb91,'newAdjustValues':_0x2a2a71[_0x2b4be1(0xd0)],'newLineType':_0x2a2a71['lineType'],'oldLineType':_0xfc1954,'rotation':_0x2a2a71[_0x2b4be1(0xac)],'oldRelation':_0xd09f5a,'newRelation':_0x30eb7b});}[_0x46d5f6(0x12b)](_0x2b336b,_0x5ee3e4,_0x1465c5,_0x1e9851){const _0x2ab296=_0x46d5f6;let _0x46e474=this[_0x2ab296(0xdc)]['get'](i[_0x2ab296(0xb1)])[_0x2ab296(0x11d)]({'unitId':_0x5ee3e4,'subUnitId':_0x1465c5,'drawingId':_0x1e9851});if(_0x46e474!=null&&_0x46e474[_0x2ab296(0xef)]){var _0x183bef,_0x1c04d5,_0x3d621a,_0x33dbb7;_0x2b336b['x']=(_0x183bef=_0x46e474[_0x2ab296(0xef)][_0x2ab296(0xce)])==null?0x0:_0x183bef,_0x2b336b['y']=(_0x1c04d5=_0x46e474['transform'][_0x2ab296(0x142)])==null?0x0:_0x1c04d5,_0x2b336b[_0x2ab296(0xdf)]=(_0x3d621a=_0x46e474[_0x2ab296(0xef)][_0x2ab296(0xdf)])==null?_0x2b336b[_0x2ab296(0xdf)]:_0x3d621a,_0x2b336b[_0x2ab296(0x111)]=(_0x33dbb7=_0x46e474[_0x2ab296(0xef)][_0x2ab296(0x111)])==null?_0x2b336b[_0x2ab296(0x111)]:_0x33dbb7;}let _0x55f090=this[_0x2ab296(0xdc)][_0x2ab296(0x102)](n['SheetsShapeService'])['getShapeModel'](_0x5ee3e4,_0x1465c5,_0x1e9851);if(_0x55f090){_0x2b336b[_0x2ab296(0xd1)]=_0x55f090[_0x2ab296(0x136)]();let _0x3cb9a4=_0x55f090[_0x2ab296(0xe1)]();_0x3cb9a4&&(_0x2b336b[_0x2ab296(0x126)]=JSON['parse'](JSON[_0x2ab296(0xd4)](_0x3cb9a4)));}}[_0x46d5f6(0xf7)](_0x43f0a1,_0x2982fd,_0x40f691,_0x4813c2,_0x4502d3,_0x569f1a,_0x47693c,_0x5ba9f6,_0x491aa2){const _0x2cd45b=_0x46d5f6;let _0x1cdb2b=null,_0xc95a3e=null;return _0x4502d3&&(_0x1cdb2b=h(_0x43f0a1,_0x2982fd,_0x4502d3[_0x2cd45b(0x135)][_0x2cd45b(0xc1)],_0x4502d3['connectionSiteIndex'],_0x47693c,_0x5ba9f6)),_0x569f1a&&(_0xc95a3e=h(_0x43f0a1,_0x2982fd,_0x569f1a['shape'][_0x2cd45b(0xc1)],_0x569f1a[_0x2cd45b(0xfa)],_0x47693c,_0x5ba9f6)),_0x1cdb2b||(_0x1cdb2b=this[_0x2cd45b(0xe2)](_0x43f0a1,_0x2982fd,_0x40f691[_0x2cd45b(0xc1)],!0x0,_0xc95a3e,_0x491aa2==null?void 0x0:_0x491aa2['from'],_0x47693c,_0x5ba9f6)),_0xc95a3e||(_0xc95a3e=this[_0x2cd45b(0xe2)](_0x43f0a1,_0x2982fd,_0x40f691['drawId'],!0x1,_0x1cdb2b,_0x491aa2==null?void 0x0:_0x491aa2['to'],_0x47693c,_0x5ba9f6)),{'startInfo':_0x1cdb2b,'endInfo':_0xc95a3e};}[_0x46d5f6(0xe2)](_0x118ff8,_0x216584,_0x27f2b3,_0x1904e7,_0xcbf106,_0x9e9a78,_0x199ce5,_0x2c87dd){const _0x499712=_0x46d5f6;if(_0x9e9a78){let _0x55980b=h(_0x118ff8,_0x216584,_0x9e9a78[_0x499712(0x140)],_0x9e9a78['cxnIndex'],_0x199ce5,_0x2c87dd);if(_0x55980b)return _0x55980b;}return _0xcbf106?_(_0x118ff8,_0x216584,_0x27f2b3,_0x1904e7,_0xcbf106,_0x199ce5,_0x2c87dd):null;}};s['FWorksheet'][_0x46d5f6(0xb3)](v),exports['FConnectorShape']=m,exports[_0x46d5f6(0xcd)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x26e2(_0x3e9a01,_0x2e21fe){_0x3e9a01=_0x3e9a01-0xb0;const _0x41e828=_0x41e8();let _0x26e261=_0x41e828[_0x3e9a01];return _0x26e261;}const _0x34634d=_0x26e2;(function(_0x324adf,_0x2915f0){const _0xed1316=_0x26e2,_0x22e495=_0x324adf();while(!![]){try{const _0x386f76=parseInt(_0xed1316(0x11c))/0x1*(-parseInt(_0xed1316(0x10c))/0x2)+parseInt(_0xed1316(0x12c))/0x3+parseInt(_0xed1316(0x102))/0x4*(-parseInt(_0xed1316(0x115))/0x5)+-parseInt(_0xed1316(0x172))/0x6*(-parseInt(_0xed1316(0x151))/0x7)+-parseInt(_0xed1316(0x10d))/0x8+parseInt(_0xed1316(0xcb))/0x9+-parseInt(_0xed1316(0x10a))/0xa*(-parseInt(_0xed1316(0xc4))/0xb);if(_0x386f76===_0x2915f0)break;else _0x22e495['push'](_0x22e495['shift']());}catch(_0x43ec50){_0x22e495['push'](_0x22e495['shift']());}}}(_0x41e8,0x7b2b7),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'}));function _0x41e8(){const _0x5b0474=['result','2rrpuoC','4135160hSaskO','hasShape','dispose','isFrom','SheetInterceptorService','object','REMOVE','sheet.command.set-shape-text-vertical-toggle','68260NnbaBQ','RemoveSheetDrawingCommand','toPrimitive','type','width','ISheetDrawingService','onStarting','140641kOyqJr','decorate','DependentOn','isLineShape','sin','InsertSheetDrawingCommand','UPDATE','getStartConnectInfo','MUTATION','constructor','getDrawingByParam','getDrawingData','_configService','getBasicShapeType','getOwnPropertyDescriptor','fill','1891041adpCoy','ClearSheetDrawingTransformerOperation','addShape','stringify','set','_injector','symbol','setShapeData','position','push','updateContext','IUniverInstanceService','version','disposeWithMe','flipY','computeConnectorRouteLayout','_sheetsShapeService','keys','shapeData','forEach','rotation','sheet.command.toggle-shape-flip','getName','has','getShapeModel','UpdateSheetsShapeTypeCommand','_initSnapshot','string','insertShape','relation','from','InsertShapeCommand','isConnectorShape','@univerjs-pro/sheets-shape','lineType','fromJSON','interceptCommand','12796bYkmhJ','top','UniverInstanceType','getShapeDataById','shapeId','Injector','preUndos','defineProperty','SetSheetDrawingCommand','sheet.command.set-shape-rotate','_shapes','cxnIndex','getAdjustNames','get','getShapeData','left','_getConnectPointInfo','getShapeTypeById','_drawingManagerService','SheetSkeletonService','call','sheet.command.update-line-shape-resize','_resourcesManagerService','undos','height','syncExecuteCommand','SetSheetsShapeRotateCommand','params','cos','Plugin','setConfig','1.0.0-alpha.1','setShapeType','1842dYqqvl','_deserializeShapeForUnit','getEndConnectInfo','pushUndoRedo','sheet.mutation.insert-shape','sheet.mutation.remove-shape','getId','find','filter','ICommandService','transformToDrawingPosition','add','entries','preRedos','sheet.command.update-connector-relation','startY','registerPluginResource','_config','_addLineRerouteUpdates','removeShape','range','_commandService','getSkeleton','_sheetSkeletonService','SheetsShapeService','IResourceManagerService','worldRect','DrawingTypeEnum','map','transformToAxisAlignPosition','InsertSheetsShapeMutation','_initCommands','537328cdhCPr','merge','adjustValues','SetDrawingApplyMutation','IDrawingManagerService','borderEnabled','getShapeType','5664780FwVPej','shapeName','ang','getBatchAddOp','parse','_initCommandInterceptor','getConnectionSiteList','DrawingApplyType','_linesIds','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_serializeShapeForUnit','_disposed','index','IUndoRedoService','transform','data','SetSheetsShapeTextVerticalToggleCommand','SHEET_SHAPE_PLUGIN','DRAWING_SHAPE','getSheetCommandTarget','length','getBatchUpdateOp','Inject','drawingType','DEFAULT_SHAPE_WIDTH','sheet.command.insert-shape','onCommandExecute','iterator','getShapeRelation','_addLineFollowShapeUpdates','UpdateLineShapeResizeCommand','ensureSkeleton','lineShapeId','function','getBasicShapeRelation','COMMAND','default','sheet.mutation.update-shape-type','sequenceExecute','values','_ensureShapeModelManager','Disposable','rotateEnabled','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','assign','toJSON','_shapeModelManagerMap','resizeEnabled','angle','redos','CommandType','getShapeDisplayNames','SetShapeDrawingDataCommand','pluginName','delete','236FJsmSI','clear','UNIVER_SHEET','getLineShapeRelation','flipX','IConfigService','_sheetInterceptorService','getCellIndexAndOffsetByPosition','30iXWNuH'];_0x41e8=function(){return _0x5b0474;};return _0x41e8();}let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs-pro/license'),a=require('@univerjs/drawing');function o(_0x2ebcbf){'@babel/helpers - typeof';const _0x2f40c5=_0x26e2;return o=typeof Symbol==_0x2f40c5(0xec)&&typeof Symbol[_0x2f40c5(0xe6)]==_0x2f40c5(0x132)?function(_0x15e6f7){return typeof _0x15e6f7;}:function(_0x270766){const _0x24f4e9=_0x2f40c5;return _0x270766&&typeof Symbol==_0x24f4e9(0xec)&&_0x270766[_0x24f4e9(0x125)]===Symbol&&_0x270766!==Symbol['prototype']?_0x24f4e9(0x132):typeof _0x270766;},o(_0x2ebcbf);}function s(_0x281c5e,_0x3f6651){const _0x50e742=_0x26e2;if(o(_0x281c5e)!=_0x50e742(0x112)||!_0x281c5e)return _0x281c5e;var _0x250705=_0x281c5e[Symbol[_0x50e742(0x117)]];if(_0x250705!==void 0x0){var _0x546810=_0x250705[_0x50e742(0x165)](_0x281c5e,_0x3f6651||_0x50e742(0xef));if(o(_0x546810)!=_0x50e742(0x112))return _0x546810;throw TypeError(_0x50e742(0xd4));}return(_0x3f6651===_0x50e742(0x147)?String:Number)(_0x281c5e);}function c(_0x54e5ab){const _0x4c52b4=_0x26e2;var _0x3ac327=s(_0x54e5ab,_0x4c52b4(0x147));return o(_0x3ac327)==_0x4c52b4(0x132)?_0x3ac327:_0x3ac327+'';}function l(_0x17dce4,_0x1880ea,_0x459dca){const _0xebb300=_0x26e2;return(_0x1880ea=c(_0x1880ea))in _0x17dce4?Object[_0xebb300(0x158)](_0x17dce4,_0x1880ea,{'value':_0x459dca,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17dce4[_0x1880ea]=_0x459dca,_0x17dce4;}var u=class extends t[_0x34634d(0xf4)]{constructor(){const _0xee6b21=_0x34634d;super(),l(this,_0xee6b21(0x15b),new Map()),l(this,_0xee6b21(0xd3),new Set()),l(this,'_groupIds',new Set());}[_0x34634d(0x12e)](_0x99b177,_0xe8b07b,_0x2dcf85,_0x20dd81){const _0x2737ea=_0x34634d;let _0x13e2e5=new e['ShapeModel'](_0x99b177,_0xe8b07b,_0x2dcf85,_0x20dd81);return this[_0x2737ea(0x15b)][_0x2737ea(0x130)](_0xe8b07b,_0x13e2e5),(0x0,e[_0x2737ea(0x14c)])(_0x99b177)&&this['_linesIds'][_0x2737ea(0x17d)](_0xe8b07b),_0x13e2e5;}[_0x34634d(0xed)](_0x553e38){const _0x2398d2=_0x34634d;let _0x2f1e19=[];for(let _0x4fd840 of this[_0x2398d2(0xd3)]){let _0x2d440e=this['_shapes'][_0x2398d2(0x15e)](_0x4fd840);if(_0x2d440e){let _0x414e51=_0x2d440e[_0x2398d2(0xe7)]();if(_0x414e51){var _0x106ea8,_0x106f84;((_0x106ea8=_0x414e51[_0x2398d2(0x14a)])==null?void 0x0:_0x106ea8['shapeId'])===_0x553e38&&_0x2f1e19[_0x2398d2(0x135)]({..._0x414e51[_0x2398d2(0x14a)],'lineShapeId':_0x4fd840,'isFrom':!0x0}),((_0x106f84=_0x414e51['to'])==null?void 0x0:_0x106f84[_0x2398d2(0x155)])===_0x553e38&&_0x2f1e19[_0x2398d2(0x135)]({..._0x414e51['to'],'lineShapeId':_0x4fd840,'isFrom':!0x1});}}}return _0x2f1e19;}[_0x34634d(0x105)](_0x432e3c){const _0xe7b7c9=_0x34634d;let _0x30bdb5=this[_0xe7b7c9(0x15b)][_0xe7b7c9(0x15e)](_0x432e3c);if(_0x30bdb5)return _0x30bdb5['getShapeRelation']();}[_0x34634d(0xca)](_0x412c42){const _0x1590d4=_0x34634d;let _0x5c99f9=this[_0x1590d4(0x15b)][_0x1590d4(0x15e)](_0x412c42);if(_0x5c99f9)return _0x5c99f9[_0x1590d4(0xca)]();}['hasShape'](_0x16cb85){const _0x40da34=_0x34634d;return this[_0x40da34(0x15b)][_0x40da34(0x143)](_0x16cb85);}['getShapeDisplayNames'](){const _0x29354a=_0x34634d;return Array[_0x29354a(0x14a)](this[_0x29354a(0x15b)][_0x29354a(0xf2)]())[_0x29354a(0xc0)](_0x30ed40=>_0x30ed40[_0x29354a(0x142)]()||_0x30ed40[_0x29354a(0x178)]());}[_0x34634d(0xb7)](_0x1ff08f){const _0x473f64=_0x34634d;let _0x4edf3e=this['_shapes'][_0x473f64(0x15e)](_0x1ff08f);_0x4edf3e&&((0x0,e['isConnectorShape'])(_0x4edf3e[_0x473f64(0xca)]())&&this[_0x473f64(0xd3)][_0x473f64(0x101)](_0x1ff08f),this[_0x473f64(0x15b)][_0x473f64(0x101)](_0x1ff08f));}[_0x34634d(0xf8)](){const _0x42889f=_0x34634d;let _0x135f42=[];return this[_0x42889f(0x15b)][_0x42889f(0x13f)](_0x143bcc=>{_0x135f42['push'](_0x143bcc['toJSON']());}),_0x135f42;}[_0x34634d(0x14f)](_0x1546db){const _0x273f30=_0x34634d;for(let _0x542f15 of _0x1546db){let {id:_0x30bfc9,shapeType:_0x556c14,name:_0x15d806}=_0x542f15,_0x55da88=this['addShape'](_0x556c14,_0x30bfc9,_0x542f15[_0x273f30(0x13e)],_0x15d806);_0x55da88&&_0x55da88[_0x273f30(0x11f)]()&&this['_linesIds'][_0x273f30(0x17d)](_0x30bfc9);}}[_0x34634d(0x10f)](){const _0x36e3cc=_0x34634d;this[_0x36e3cc(0xd6)]||(this[_0x36e3cc(0x15b)][_0x36e3cc(0x13f)](_0x2ceb90=>{const _0x49f81d=_0x36e3cc;_0x2ceb90[_0x49f81d(0x10f)]();}),this[_0x36e3cc(0x15b)][_0x36e3cc(0x103)](),this['_linesIds'][_0x36e3cc(0x103)](),this['_groupIds'][_0x36e3cc(0x103)](),super['dispose']());}};function d(_0x18ada9,_0x2a4f07){return function(_0x3d8338,_0x13a6a8){_0x2a4f07(_0x3d8338,_0x13a6a8,_0x18ada9);};}function f(_0x3e1c1f,_0x1e8527,_0x1c3a5a,_0x323e05){const _0x3b33f5=_0x34634d;var _0xb18111=arguments['length'],_0x598d69=_0xb18111<0x3?_0x1e8527:_0x323e05===null?_0x323e05=Object[_0x3b33f5(0x12a)](_0x1e8527,_0x1c3a5a):_0x323e05,_0x329e55;if(typeof Reflect=='object'&&typeof Reflect[_0x3b33f5(0x11d)]==_0x3b33f5(0xec))_0x598d69=Reflect[_0x3b33f5(0x11d)](_0x3e1c1f,_0x1e8527,_0x1c3a5a,_0x323e05);else{for(var _0x289337=_0x3e1c1f['length']-0x1;_0x289337>=0x0;_0x289337--)(_0x329e55=_0x3e1c1f[_0x289337])&&(_0x598d69=(_0xb18111<0x3?_0x329e55(_0x598d69):_0xb18111>0x3?_0x329e55(_0x1e8527,_0x1c3a5a,_0x598d69):_0x329e55(_0x1e8527,_0x1c3a5a))||_0x598d69);}return _0xb18111>0x3&&_0x598d69&&Object[_0x3b33f5(0x158)](_0x1e8527,_0x1c3a5a,_0x598d69),_0x598d69;}let p=class extends t[_0x34634d(0xf4)]{constructor(_0x207f91){const _0x1d7f15=_0x34634d;super(),this[_0x1d7f15(0x167)]=_0x207f91,l(this,'_shapeModelManagerMap',new Map()),this[_0x1d7f15(0x146)]();}[_0x34634d(0xf3)](_0xc99089,_0x22de39){const _0x2bce6f=_0x34634d;let _0x27b8a2=this['_shapeModelManagerMap'][_0x2bce6f(0x15e)](_0xc99089);_0x27b8a2||(_0x27b8a2=new Map(),this[_0x2bce6f(0xf9)][_0x2bce6f(0x130)](_0xc99089,_0x27b8a2));let _0x55d88f=_0x27b8a2[_0x2bce6f(0x15e)](_0x22de39);return _0x55d88f||(_0x55d88f=new u(),_0x27b8a2[_0x2bce6f(0x130)](_0x22de39,_0x55d88f)),_0x55d88f;}[_0x34634d(0x148)](_0x3e7d4e,_0x239c0a,_0x3d592a,_0x36579b,_0x553d63,_0xd6a551){const _0x1a5495=_0x34634d;this[_0x1a5495(0xf3)](_0x3e7d4e,_0x239c0a)[_0x1a5495(0x12e)](_0x3d592a,_0x36579b,_0x553d63,_0xd6a551);}[_0x34634d(0xb7)](_0x3c7b34,_0x5571c7,_0x403b43){const _0x224ffd=_0x34634d;this['_ensureShapeModelManager'](_0x3c7b34,_0x5571c7)[_0x224ffd(0xb7)](_0x403b43);}[_0x34634d(0x129)](_0x2ccac7,_0x1d310e,_0x27c7fd){const _0x23d67a=_0x34634d;return this[_0x23d67a(0xf3)](_0x2ccac7,_0x1d310e)[_0x23d67a(0xca)](_0x27c7fd);}[_0x34634d(0xca)](_0xcfcca0,_0xd1860,_0x528ab9){const _0x443875=_0x34634d;return this[_0x443875(0xf3)](_0xcfcca0,_0xd1860)[_0x443875(0xca)](_0x528ab9);}['hasShape'](_0x52a8ad,_0xbd8dc8,_0x382fb8){const _0x8ddd83=_0x34634d;return this['_ensureShapeModelManager'](_0x52a8ad,_0xbd8dc8)[_0x8ddd83(0x10e)](_0x382fb8);}[_0x34634d(0x162)](_0x9e18ed,_0x13f242,_0x318a54){const _0x468d43=_0x34634d;return this[_0x468d43(0xf3)](_0x9e18ed,_0x13f242)['getShapeType'](_0x318a54);}[_0x34634d(0x154)](_0x3c150c,_0x5abe41,_0x55a8b3){const _0x5ca335=_0x34634d;let _0xb3ea0d=this[_0x5ca335(0xf3)](_0x3c150c,_0x5abe41);if(!_0xb3ea0d['getShapeType'](_0x55a8b3))return;let _0x1e8310=_0xb3ea0d[_0x5ca335(0x15b)][_0x5ca335(0x15e)](_0x55a8b3);if(_0x1e8310)return _0x1e8310[_0x5ca335(0x15f)]();}[_0x34634d(0xfe)](_0x4d3c71,_0x2d81a8){const _0x1dc7ba=_0x34634d;return this[_0x1dc7ba(0xf3)](_0x4d3c71,_0x2d81a8)[_0x1dc7ba(0xfe)]();}[_0x34634d(0x144)](_0x51ee53,_0x286553,_0x5c45d5){const _0x5900a4=_0x34634d;return this[_0x5900a4(0xf3)](_0x51ee53,_0x286553)['_shapes']['get'](_0x5c45d5);}['getBasicShapeRelation'](_0x3a7914,_0xe0153c,_0x14100b){return this['_ensureShapeModelManager'](_0x3a7914,_0xe0153c)['getBasicShapeRelation'](_0x14100b);}[_0x34634d(0x105)](_0x27cb57,_0xd6f834,_0x25f62d){const _0x10e869=_0x34634d;let _0x260cde=this['_ensureShapeModelManager'](_0x27cb57,_0xd6f834)[_0x10e869(0x15b)][_0x10e869(0x15e)](_0x25f62d);if(_0x260cde)return _0x260cde['getShapeRelation']();}[_0x34634d(0x171)](){}[_0x34634d(0xd5)](_0x272b3c){const _0x36d43d=_0x34634d;let _0x224114={},_0x5f1b22=this[_0x36d43d(0xf9)]['get'](_0x272b3c);return _0x5f1b22&&_0x5f1b22[_0x36d43d(0x13f)]((_0x35d1ab,_0x362216)=>{const _0x3eaf0a=_0x36d43d;let _0x40fc03=_0x35d1ab[_0x3eaf0a(0xf8)]();_0x40fc03['length']>0x0&&(_0x224114[_0x362216]=_0x40fc03);}),JSON[_0x36d43d(0x12f)](_0x224114);}['_deserializeShapeForUnit'](_0x1c3e47,_0x163edd){const _0x561d8c=_0x34634d;Object[_0x561d8c(0x13d)](_0x163edd)[_0x561d8c(0x13f)](_0x510ba5=>{const _0x283ee0=_0x561d8c;this[_0x283ee0(0xf3)](_0x1c3e47,_0x510ba5)['fromJSON'](_0x163edd[_0x510ba5]);});}[_0x34634d(0xf8)](){const _0x829bf5=_0x34634d;let _0x2045bd={};return this[_0x829bf5(0xf9)]['forEach']((_0xb7bbce,_0x4bd9e7)=>{_0x2045bd[_0x4bd9e7]={},_0xb7bbce['forEach']((_0x1bb1ce,_0x183dad)=>{const _0x342ffd=_0x26e2;_0x2045bd[_0x4bd9e7][_0x183dad]=_0x1bb1ce[_0x342ffd(0xf8)]();});}),_0x2045bd;}[_0x34634d(0x14f)](_0x387a38){const _0x39625a=_0x34634d;Object[_0x39625a(0x13d)](_0x387a38)[_0x39625a(0x13f)](_0x2a1abd=>{const _0x3ce658=_0x39625a;let _0x2618e8=_0x387a38[_0x2a1abd];Object[_0x3ce658(0x13d)](_0x2618e8)['forEach'](_0x9ea211=>{const _0x24a199=_0x3ce658;this[_0x24a199(0xf3)](_0x2a1abd,_0x9ea211)[_0x24a199(0x14f)](_0x2618e8[_0x9ea211]);});});}[_0x34634d(0x146)](){const _0x2d56db=_0x34634d;this[_0x2d56db(0x167)][_0x2d56db(0xb4)]({'pluginName':_0x2d56db(0xdc),'businesses':[t[_0x2d56db(0x153)][_0x2d56db(0x104)]],'toJson':_0x1bf606=>this['_serializeShapeForUnit'](_0x1bf606),'parseJson':_0x2a4dca=>JSON[_0x2d56db(0xcf)](_0x2a4dca),'onLoad':(_0x422c8e,_0x278d75)=>{const _0x497dc5=_0x2d56db;this[_0x497dc5(0x173)](_0x422c8e,_0x278d75);},'onUnLoad':_0x15311f=>{const _0x41fb72=_0x2d56db;let _0x2df13b=this[_0x41fb72(0xf9)][_0x41fb72(0x15e)](_0x15311f);_0x2df13b&&(_0x2df13b[_0x41fb72(0x13f)](_0x1d5793=>{_0x1d5793['dispose']();}),this[_0x41fb72(0xf9)]['delete'](_0x15311f));}});}['dispose'](){const _0x177c4f=_0x34634d;this[_0x177c4f(0xf9)]['forEach'](_0x440f53=>{const _0x153250=_0x177c4f;_0x440f53[_0x153250(0x13f)](_0x87ffa9=>{const _0x2d37f5=_0x153250;_0x87ffa9[_0x2d37f5(0x10f)]();});});}};p=f([d(0x0,t[_0x34634d(0xbd)])],p);const m={'id':_0x34634d(0x176),'type':t[_0x34634d(0xfd)]['MUTATION'],'handler':(_0x2e8d8b,_0x1ee116)=>{let {unitId:_0x55aa91,subUnitId:_0x258440,shapeType:_0x5d519d,shapeId:_0x45ea40,shapeName:_0x2b130c,shapeData:_0x1795e2}=_0x1ee116;return _0x2e8d8b['get'](p)['insertShape'](_0x55aa91,_0x258440,_0x5d519d,_0x45ea40,_0x1795e2,_0x2b130c),!0x0;}},h={'id':_0x34634d(0x177),'type':t[_0x34634d(0xfd)]['MUTATION'],'handler':(_0x42ab5a,_0xbd5fc3)=>{const _0x212114=_0x34634d;let {unitId:_0x578e3e,subUnitId:_0x831a73,shapeId:_0x1c2ffd}=_0xbd5fc3;return _0x42ab5a['get'](p)[_0x212114(0xb7)](_0x578e3e,_0x831a73,_0x1c2ffd),!0x0;}},g={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0xe4),'handler':(_0x42cabb,_0x3cf023)=>{const _0x53db64=_0x34634d;var _0x1795c9,_0x22c50e,_0xb565ce;let _0x271b4b=(0x0,n[_0x53db64(0xde)])(_0x42cabb['get'](t[_0x53db64(0x137)]),_0x3cf023);if(!_0x271b4b)return!0x1;let _0x3077a4=_0x42cabb[_0x53db64(0x15e)](n[_0x53db64(0x164)]),{unitId:_0xe257b,subUnitId:_0x4101ca}=_0x271b4b,_0x1dc05f=_0x3077a4['ensureSkeleton'](_0xe257b,_0x4101ca);if(!_0x1dc05f)return!0x1;let _0x858ae1=_0x42cabb['get'](t['ICommandService']),_0x4d124b=_0x42cabb[_0x53db64(0x15e)](t[_0x53db64(0xd8)]),_0x289517=_0x42cabb[_0x53db64(0x15e)](n[_0x53db64(0x111)]),_0x58086c=_0x42cabb[_0x53db64(0x15e)](r['ISheetDrawingService']),_0x4c902d=_0x42cabb[_0x53db64(0x15e)](p),{shapeType:_0x3cd739,shapeData:_0x486d0b}=_0x3cf023,_0x7abaf5=_0x3cf023[_0x53db64(0x155)]||(0x0,t['generateRandomId'])(),_0x2bd8e4={'unitId':_0xe257b,'subUnitId':_0x4101ca,'shapeId':_0x7abaf5,'shapeName':(_0x1795c9=_0x3cf023[_0x53db64(0xcc)])==null?(0x0,e['createUniqueShapeName'])(_0x3cd739,_0x4c902d['getShapeDisplayNames'](_0xe257b,_0x4101ca)):_0x1795c9,'shapeType':_0x3cd739,'shapeData':_0x486d0b},_0x19488d=_0x3cf023[_0x53db64(0x119)]||0xc8,_0x14db5c=_0x3cf023['height']||0xc8,_0x40a3ef=0x0,_0x493001=0x0,_0x59e8f5={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x550df9={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x3cf023[_0x53db64(0x134)]){let {x:_0xb9438d,y:_0x1e5343}=_0x3cf023[_0x53db64(0x134)];_0x40a3ef=_0xb9438d,_0x493001=_0x1e5343,_0x59e8f5=_0x1dc05f[_0x53db64(0x109)](_0xb9438d,_0x1e5343),_0x550df9=_0x1dc05f[_0x53db64(0x109)](_0xb9438d+_0x19488d,_0x1e5343+_0x14db5c);}else{if(_0x3cf023['range']){let {startRow:_0x5b9595,startColumn:_0x169f52}=_0x3cf023[_0x53db64(0xb8)];_0x59e8f5={'row':_0x5b9595,'rowOffset':0xa,'column':_0x169f52,'columnOffset':0xa};let _0x24a92a=_0x1dc05f['getCellWithCoordByIndex'](_0x5b9595,_0x169f52);_0x40a3ef=_0x24a92a['startX']+0xa,_0x493001=_0x24a92a[_0x53db64(0xb3)]+0xa,_0x550df9=_0x1dc05f[_0x53db64(0x109)](_0x40a3ef+_0x19488d,_0x493001+_0x14db5c);}}let _0x29ec3c={'from':_0x59e8f5,'to':_0x550df9},_0x2336e3={'unitId':_0xe257b,'subUnitId':_0x4101ca,'drawingId':_0x7abaf5,'drawingType':t['DrawingTypeEnum'][_0x53db64(0xdd)],'sheetTransform':_0x29ec3c,'transform':{'left':_0x40a3ef,'top':_0x493001,'width':_0x19488d,'height':_0x14db5c},'data':{'shapeType':_0x3cd739,'shapeData':_0x486d0b},'axisAlignSheetTransform':_0x29ec3c,'allowTransform':!0x0};(0x0,e[_0x53db64(0x14c)])(_0x3cd739)&&(_0x2336e3[_0x53db64(0xda)][_0x53db64(0x12b)]=!0x1,_0x2336e3[_0x53db64(0xda)]['rotateEnabled']=!0x1,_0x2336e3['data'][_0x53db64(0xfa)]=!0x1,_0x2336e3[_0x53db64(0xda)][_0x53db64(0xc9)]=!0x1,_0x2336e3[_0x53db64(0xd9)][_0x53db64(0xf5)]=!0x1,_0x2336e3['transform'][_0x53db64(0xfa)]=!0x1,_0x2336e3[_0x53db64(0xd9)][_0x53db64(0xc9)]=!0x1);let {undo:_0x3bb2db,redo:_0x1bb5a0,objects:_0x50bd89}=_0x58086c[_0x53db64(0xce)]([_0x2336e3]),_0x183c85=_0x289517[_0x53db64(0xe5)]({'id':r[_0x53db64(0x121)]['id'],'params':{'unitId':_0xe257b,'drawings':[_0x2336e3]}}),_0xf59470=[...(_0x22c50e=_0x183c85[_0x53db64(0xb1)])==null?[]:_0x22c50e,{'id':r[_0x53db64(0xc7)]['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'op':_0x1bb5a0,'objects':_0x50bd89,'type':r['DrawingApplyType']['INSERT']}},{'id':r[_0x53db64(0x12d)]['id'],'params':[_0xe257b]},..._0x183c85[_0x53db64(0xfc)],{'id':m['id'],'params':_0x2bd8e4}],_0x4111a8=[{'id':h['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'shapeId':_0x7abaf5}},...(_0xb565ce=_0x183c85[_0x53db64(0x157)])==null?[]:_0xb565ce,{'id':r[_0x53db64(0xc7)]['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'op':_0x3bb2db,'objects':_0x50bd89,'type':r[_0x53db64(0xd2)][_0x53db64(0x113)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xe257b]},..._0x183c85[_0x53db64(0x168)]];return(0x0,t[_0x53db64(0xf1)])(_0xf59470,_0x858ae1)[_0x53db64(0x10b)]?(_0x4d124b['pushUndoRedo']({'unitID':_0xe257b,'undoMutations':_0x4111a8,'redoMutations':_0xf59470}),!0x0):!0x1;}},_={'id':'sheet.mutation.update-shape-data','type':t[_0x34634d(0xfd)][_0x34634d(0x124)],'handler':(_0xd74d00,_0x452398)=>{const _0x47577a=_0x34634d;let {unitId:_0x2ac6cf,subUnitId:_0x5e3dcd,shapeType:_0x1a98a6,shapeId:_0x514c36,shapeData:_0x478e5e}=_0x452398,_0x575bcc=_0xd74d00['get'](p)[_0x47577a(0x144)](_0x2ac6cf,_0x5e3dcd,_0x514c36);return _0x575bcc&&(_0x1a98a6!==void 0x0&&_0x575bcc['setShapeType'](_0x1a98a6),_0x478e5e&&(_0x575bcc==null||_0x575bcc[_0x47577a(0x133)](_0x478e5e,!0x0))),!0x0;}},v={'type':t[_0x34634d(0xfd)]['COMMAND'],'id':'sheet.command.set-shape-drawing-data','handler':(_0x3b39c2,_0x3f29d2)=>{const _0x6f8e6=_0x34634d;var _0x1d1f38,_0x220455;let _0x309800=(0x0,n['getSheetCommandTarget'])(_0x3b39c2[_0x6f8e6(0x15e)](t[_0x6f8e6(0x137)]),_0x3f29d2);if(!_0x309800)return!0x1;let _0x28b8ea=_0x3b39c2[_0x6f8e6(0x15e)](n['SheetSkeletonService']),{unitId:_0x4a5c62,subUnitId:_0x1af4b4}=_0x309800,_0x4d470c=_0x28b8ea[_0x6f8e6(0xea)](_0x4a5c62,_0x1af4b4);if(!_0x4d470c)return!0x1;let _0x4aa8e1=_0x3b39c2['get'](p),{shapeId:_0x44e993,shapeType:_0x5d8adb,shapeData:_0x2f4244,position:_0x472b0a,width:_0x40f8c8,height:_0x1eb141}=_0x3f29d2,_0x5c6c0b=_0x4aa8e1[_0x6f8e6(0x144)](_0x4a5c62,_0x1af4b4,_0x44e993);if(!_0x5c6c0b)return!0x1;let _0x36437b=_0x3b39c2[_0x6f8e6(0x15e)](t[_0x6f8e6(0x17b)]),_0x398484=_0x3b39c2['get'](t[_0x6f8e6(0xd8)]),_0x1815e9=_0x3b39c2[_0x6f8e6(0x15e)](n[_0x6f8e6(0x111)]),_0x837f16=_0x3b39c2[_0x6f8e6(0x15e)](r['ISheetDrawingService']),_0x165a6e={'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'shapeId':_0x44e993,'shapeType':_0x5d8adb,'shapeData':_0x2f4244},_0x22723e=_0x5c6c0b[_0x6f8e6(0xca)](),_0x9fc35f=_0x5c6c0b[_0x6f8e6(0x15f)](),{x:_0x29cf18,y:_0x5d66f7}=_0x472b0a,_0x56b436={'from':_0x4d470c[_0x6f8e6(0x109)](_0x29cf18,_0x5d66f7),'to':_0x4d470c[_0x6f8e6(0x109)](_0x29cf18+_0x40f8c8,_0x5d66f7+_0x1eb141)},_0x41f0fc={'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'drawingId':_0x44e993,'drawingType':t[_0x6f8e6(0xbf)][_0x6f8e6(0xdd)],'sheetTransform':_0x56b436,'transform':{'left':_0x29cf18,'top':_0x5d66f7,'width':_0x40f8c8,'height':_0x1eb141},'data':{'shapeType':_0x5d8adb,'shapeData':_0x2f4244},'axisAlignSheetTransform':_0x56b436,'allowTransform':!0x0};(0x0,e[_0x6f8e6(0x14c)])(_0x5d8adb)&&(_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0x12b)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xf5)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xfa)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xc9)]=!0x1,_0x41f0fc[_0x6f8e6(0xd9)]['rotateEnabled']=!0x1,_0x41f0fc[_0x6f8e6(0xd9)]['resizeEnabled']=!0x1,_0x41f0fc[_0x6f8e6(0xd9)][_0x6f8e6(0xc9)]=!0x1);let {undo:_0x490d69,redo:_0x198893,objects:_0x19b868}=_0x837f16[_0x6f8e6(0xe0)]([_0x41f0fc]),_0x266384=_0x1815e9[_0x6f8e6(0xe5)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x4a5c62,'drawings':[_0x41f0fc]}}),_0x339fd7=[...(_0x1d1f38=_0x266384[_0x6f8e6(0xb1)])==null?[]:_0x1d1f38,{'id':r[_0x6f8e6(0xc7)]['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'op':_0x198893,'objects':_0x19b868,'type':r[_0x6f8e6(0xd2)][_0x6f8e6(0x122)]}},{'id':r[_0x6f8e6(0x12d)]['id'],'params':[_0x4a5c62]},..._0x266384[_0x6f8e6(0xfc)],{'id':_['id'],'params':_0x165a6e}],_0x579a12=[...(_0x220455=_0x266384['preUndos'])==null?[]:_0x220455,{'id':r[_0x6f8e6(0xc7)]['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'op':_0x490d69,'objects':_0x19b868,'type':r[_0x6f8e6(0xd2)][_0x6f8e6(0x122)]}},{'id':r[_0x6f8e6(0x12d)]['id'],'params':[_0x4a5c62]},..._0x266384[_0x6f8e6(0x168)],{'id':_['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'shapeType':_0x22723e,'shapeId':_0x44e993,'shapeData':_0x9fc35f}}];return(0x0,t[_0x6f8e6(0xf1)])(_0x339fd7,_0x36437b)['result']?(_0x398484[_0x6f8e6(0x175)]({'unitID':_0x4a5c62,'undoMutations':_0x579a12,'redoMutations':_0x339fd7}),!0x0):!0x1;}},y={'type':t['CommandType'][_0x34634d(0xee)],'id':_0x34634d(0x141),'handler':(_0x917fb6,_0xab9875)=>{const _0x4c9925=_0x34634d;var _0x55ecc7,_0x1f1cee;let _0x5df864=(0x0,n[_0x4c9925(0xde)])(_0x917fb6['get'](t[_0x4c9925(0x137)]),_0xab9875);if(!_0x5df864)return!0x1;let _0x54e394=_0x917fb6['get'](n['SheetSkeletonService']),{unitId:_0xf7dc90,subUnitId:_0x4fb01c}=_0x5df864,_0x10cce1=_0x54e394[_0x4c9925(0xba)](_0xf7dc90,_0x4fb01c);if(!_0x10cce1)return!0x1;let _0x5a28dd=_0x917fb6['get'](r[_0x4c9925(0x11a)]),{shapeId:_0x5af192,flipH:_0x35b42b,flipV:_0x4146c1}=_0xab9875,_0x588e14=_0x5a28dd[_0x4c9925(0x126)]({'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'drawingId':_0x5af192});if(!_0x588e14)return!0x1;let _0x58f8af=_0x917fb6[_0x4c9925(0x15e)](p)[_0x4c9925(0x144)](_0xf7dc90,_0x4fb01c,_0x5af192);if(!_0x58f8af)return!0x1;let _0x1362f9=_0x917fb6[_0x4c9925(0x15e)](t[_0x4c9925(0x17b)]),_0x23cdfb=_0x917fb6['get'](t[_0x4c9925(0xd8)]),_0x11b12e=_0x917fb6[_0x4c9925(0x15e)](n[_0x4c9925(0x111)]),_0x583abc={..._0x588e14[_0x4c9925(0xd9)]};_0x35b42b!==void 0x0&&(_0x583abc['flipX']=!_0x583abc[_0x4c9925(0x106)]),_0x4146c1!==void 0x0&&(_0x583abc[_0x4c9925(0x13a)]=!_0x583abc[_0x4c9925(0x13a)]);let _0x5e88cd=(0x0,r[_0x4c9925(0x17c)])(_0x583abc,_0x10cce1),_0x33839f=(0x0,r[_0x4c9925(0xc1)])(_0x583abc,_0x10cce1),_0x2060a4=_0x58f8af['getShapeType'](),_0x28e9f9=_0x58f8af[_0x4c9925(0x15f)](),_0x398993={'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'drawingId':_0x5af192,'drawingType':t['DrawingTypeEnum'][_0x4c9925(0xdd)],'sheetTransform':_0x5e88cd,'transform':_0x583abc,'data':{'shapeType':_0x2060a4,'shapeData':_0x28e9f9},'axisAlignSheetTransform':_0x33839f,'allowTransform':!0x0},{undo:_0x432adf,redo:_0x80f2d9,objects:_0x9a3f7f}=_0x5a28dd[_0x4c9925(0xe0)]([_0x398993]),_0x86b675=_0x11b12e[_0x4c9925(0xe5)]({'id':r[_0x4c9925(0x159)]['id'],'params':{'unitId':_0xf7dc90,'drawings':[_0x398993]}}),_0x3501a8=[...(_0x55ecc7=_0x86b675['preRedos'])==null?[]:_0x55ecc7,{'id':r[_0x4c9925(0xc7)]['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'op':_0x80f2d9,'objects':_0x9a3f7f,'type':r['DrawingApplyType'][_0x4c9925(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xf7dc90]},..._0x86b675[_0x4c9925(0xfc)]],_0x108d60=[...(_0x1f1cee=_0x86b675[_0x4c9925(0x157)])==null?[]:_0x1f1cee,{'id':r[_0x4c9925(0xc7)]['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'op':_0x432adf,'objects':_0x9a3f7f,'type':r[_0x4c9925(0xd2)][_0x4c9925(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xf7dc90]},..._0x86b675[_0x4c9925(0x168)]];if((0x0,e[_0x4c9925(0x14c)])(_0x2060a4)){let _0x5f3ef0=_0x58f8af[_0x4c9925(0xe7)]();if(_0x5f3ef0){let _0x557247={..._0x5f3ef0};_0x557247['from']=void 0x0,_0x557247['to']=void 0x0,_0x3501a8[_0x4c9925(0x135)]({'id':_['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'shapeId':_0x5af192,'shapeType':_0x2060a4,'shapeData':{'relation':_0x557247}}}),_0x108d60[_0x4c9925(0x135)]({'id':_['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'shapeId':_0x5af192,'shapeType':_0x2060a4,'shapeData':{'relation':_0x5f3ef0}}});}}return(0x0,t['sequenceExecute'])(_0x3501a8,_0x1362f9)[_0x4c9925(0x10b)]?(_0x23cdfb['pushUndoRedo']({'unitID':_0xf7dc90,'undoMutations':_0x108d60,'redoMutations':_0x3501a8}),!0x0):!0x1;}},b={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0x15a),'handler':(_0x28272e,_0x295d79)=>{const _0x358e11=_0x34634d;var _0x373a23,_0xc42fdd;let _0xd89520=(0x0,n[_0x358e11(0xde)])(_0x28272e['get'](t[_0x358e11(0x137)]),_0x295d79);if(!_0xd89520)return!0x1;let _0x182f0d=_0x28272e[_0x358e11(0x15e)](n[_0x358e11(0x164)]),{unitId:_0x3d9f7f,subUnitId:_0x30265a}=_0xd89520,_0x252d23=_0x182f0d[_0x358e11(0xba)](_0x3d9f7f,_0x30265a);if(!_0x252d23)return!0x1;let _0x25b64f=_0x28272e['get'](r[_0x358e11(0x11a)]),{shapeId:_0x4c3a58,rotate:_0x4f420d}=_0x295d79,_0x70cfcb=_0x25b64f['getDrawingByParam']({'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'drawingId':_0x4c3a58});if(!_0x70cfcb)return!0x1;let _0x46c255=_0x28272e['get'](p)[_0x358e11(0x144)](_0x3d9f7f,_0x30265a,_0x4c3a58);if(!_0x46c255)return!0x1;let _0x34701c=_0x28272e[_0x358e11(0x15e)](t[_0x358e11(0x17b)]),_0x1db858=_0x28272e[_0x358e11(0x15e)](t['IUndoRedoService']),_0x38ef12=_0x28272e['get'](n['SheetInterceptorService']),_0x5a87ab={..._0x70cfcb[_0x358e11(0xd9)]};_0x4f420d!==void 0x0&&(_0x5a87ab[_0x358e11(0xfb)]=(_0x5a87ab[_0x358e11(0xfb)]||0x0)+_0x4f420d);let _0x22856e=(0x0,r[_0x358e11(0x17c)])(_0x5a87ab,_0x252d23),_0x3a63d1=(0x0,r[_0x358e11(0xc1)])(_0x5a87ab,_0x252d23),_0x12ed7f=_0x46c255[_0x358e11(0xca)](),_0x2294ca=_0x46c255[_0x358e11(0x15f)](),_0x5cedee={'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'drawingId':_0x4c3a58,'drawingType':t[_0x358e11(0xbf)][_0x358e11(0xdd)],'sheetTransform':_0x22856e,'transform':_0x5a87ab,'data':{'shapeType':_0x12ed7f,'shapeData':_0x2294ca},'axisAlignSheetTransform':_0x3a63d1,'allowTransform':!0x0},{undo:_0x2d5aa6,redo:_0x5b5568,objects:_0xddc084}=_0x25b64f[_0x358e11(0xe0)]([_0x5cedee]),_0x31d128=_0x38ef12[_0x358e11(0xe5)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x3d9f7f,'drawings':[_0x5cedee]}}),_0x2c4650=[...(_0x373a23=_0x31d128[_0x358e11(0xb1)])==null?[]:_0x373a23,{'id':r[_0x358e11(0xc7)]['id'],'params':{'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'op':_0x5b5568,'objects':_0xddc084,'type':r[_0x358e11(0xd2)][_0x358e11(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3d9f7f]},..._0x31d128[_0x358e11(0xfc)]],_0x42326e=[...(_0xc42fdd=_0x31d128[_0x358e11(0x157)])==null?[]:_0xc42fdd,{'id':r[_0x358e11(0xc7)]['id'],'params':{'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'op':_0x2d5aa6,'objects':_0xddc084,'type':r[_0x358e11(0xd2)][_0x358e11(0x122)]}},{'id':r[_0x358e11(0x12d)]['id'],'params':[_0x3d9f7f]},..._0x31d128[_0x358e11(0x168)]];return(0x0,t[_0x358e11(0xf1)])(_0x2c4650,_0x34701c)[_0x358e11(0x10b)]?(_0x1db858['pushUndoRedo']({'unitID':_0x3d9f7f,'undoMutations':_0x42326e,'redoMutations':_0x2c4650}),!0x0):!0x1;}},x={'type':t['CommandType'][_0x34634d(0xee)],'id':_0x34634d(0x114),'handler':(_0x1142e6,_0x1100d7)=>{const _0x304fa1=_0x34634d;var _0x39986c;let _0xe45b75=(0x0,n[_0x304fa1(0xde)])(_0x1142e6['get'](t[_0x304fa1(0x137)]),_0x1100d7);if(!_0xe45b75)return!0x1;let {unitId:_0x5d3853,subUnitId:_0x3f14a6}=_0xe45b75,{shapeId:_0x1d158b}=_0x1100d7,_0xec2073=_0x1142e6[_0x304fa1(0x15e)](p)[_0x304fa1(0x144)](_0x5d3853,_0x3f14a6,_0x1d158b);if(!_0xec2073)return!0x1;let _0x2fce93=_0xec2073['getShapeTextData'](),_0x46328b=(_0x39986c=_0x2fce93==null?void 0x0:_0x2fce93['isHorizontal'])==null?!0x0:_0x39986c,_0x228730=!_0x46328b,_0x334302=_0x1142e6[_0x304fa1(0x15e)](t[_0x304fa1(0x17b)]),_0x2b4711=_0x1142e6[_0x304fa1(0x15e)](t[_0x304fa1(0xd8)]),_0x30dafb={'unitId':_0x5d3853,'subUnitId':_0x3f14a6,'shapeId':_0x1d158b,'shapeData':{'shapeText':{'isHorizontal':_0x228730}}},_0x1e9907={'unitId':_0x5d3853,'subUnitId':_0x3f14a6,'shapeId':_0x1d158b,'shapeData':{'shapeText':{'isHorizontal':_0x46328b}}},_0x650de1=[{'id':_['id'],'params':_0x30dafb}],_0x5254cd=[{'id':_['id'],'params':_0x1e9907}];return(0x0,t[_0x304fa1(0xf1)])(_0x650de1,_0x334302)[_0x304fa1(0x10b)]?(_0x2b4711['pushUndoRedo']({'unitID':_0x5d3853,'undoMutations':_0x5254cd,'redoMutations':_0x650de1}),!0x0):!0x1;}},S={'type':t[_0x34634d(0xfd)]['COMMAND'],'id':_0x34634d(0xb2),'handler':(_0x4db4b7,_0x53691c)=>{const _0x3945d1=_0x34634d;var _0x2defed,_0x27430b,_0x9b7121,_0x5afa6e;let _0x5b3358=(0x0,n['getSheetCommandTarget'])(_0x4db4b7['get'](t[_0x3945d1(0x137)]),_0x53691c);if(!_0x5b3358)return!0x1;let _0x5e88e2=_0x4db4b7[_0x3945d1(0x15e)](n['SheetSkeletonService']),{unitId:_0x5a500c,subUnitId:_0xfc70ae}=_0x5b3358,_0x238125=_0x5e88e2[_0x3945d1(0xba)](_0x5a500c,_0xfc70ae);if(!_0x238125)return!0x1;let _0xd0cca=_0x4db4b7[_0x3945d1(0x15e)](r['ISheetDrawingService']),{connectorShapeId:_0x322ed7,width:_0x3b744c,height:_0x17cc78,left:_0x2be67f,top:_0x8769bc,flipX:_0x5bffb1,flipY:_0x374a47,rotation:_0x195035,oldAdjustValues:_0x1b3ad0,newAdjustValues:_0x1f95de,oldLineType:_0x20d80d,newLineType:_0x5c806c,oldRelation:_0x278a7d,newRelation:_0x2a900c}=_0x53691c,_0x120c25=_0xd0cca[_0x3945d1(0x126)]({'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'drawingId':_0x322ed7});if(!_0x120c25)return!0x1;let _0x103eb2=_0x4db4b7[_0x3945d1(0x15e)](p)[_0x3945d1(0x144)](_0x5a500c,_0xfc70ae,_0x322ed7);if(!_0x103eb2)return!0x1;let _0x3990a1=_0x4db4b7['get'](t['ICommandService']),_0x220c51=_0x4db4b7[_0x3945d1(0x15e)](t[_0x3945d1(0xd8)]),_0x2f7f1a=_0x4db4b7[_0x3945d1(0x15e)](n[_0x3945d1(0x111)]),_0x59cf62={..._0x120c25[_0x3945d1(0xd9)],'width':_0x3b744c,'height':_0x17cc78,'left':_0x2be67f,'top':_0x8769bc,'flipX':_0x5bffb1,'flipY':_0x374a47,'angle':(_0x2defed=_0x195035==null?(_0x27430b=_0x120c25[_0x3945d1(0xd9)])==null?void 0x0:_0x27430b[_0x3945d1(0xfb)]:_0x195035)==null?0x0:_0x2defed},_0x556027=(0x0,r[_0x3945d1(0x17c)])(_0x59cf62,_0x238125),_0x1207e6=(0x0,r['transformToAxisAlignPosition'])(_0x59cf62,_0x238125),_0x47f2cb=_0x103eb2[_0x3945d1(0xca)](),_0x46d014=_0x103eb2['getShapeData'](),_0xee035d={'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'drawingId':_0x322ed7,'drawingType':t[_0x3945d1(0xbf)][_0x3945d1(0xdd)],'sheetTransform':_0x556027,'transform':_0x59cf62,'data':{'shapeType':_0x5c806c||_0x20d80d||_0x47f2cb,'shapeData':{..._0x46d014,'adjustValues':_0x1f95de||_0x1b3ad0||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0xc6)]),'relation':_0x2a900c||_0x278a7d||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0x149)])}},'axisAlignSheetTransform':_0x1207e6,'allowTransform':!0x0},{undo:_0x712035,redo:_0x492689,objects:_0x3174e6}=_0xd0cca[_0x3945d1(0xe0)]([_0xee035d]),_0x1b6bdd=_0x2f7f1a['onCommandExecute']({'id':r[_0x3945d1(0x159)]['id'],'params':{'unitId':_0x5a500c,'drawings':[_0xee035d]}}),_0x2089d7=[...(_0x9b7121=_0x1b6bdd['preRedos'])==null?[]:_0x9b7121,{'id':r[_0x3945d1(0xc7)]['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'op':_0x492689,'objects':_0x3174e6,'type':r[_0x3945d1(0xd2)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5a500c]},..._0x1b6bdd[_0x3945d1(0xfc)],{'id':_['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'shapeId':_0x322ed7,'shapeType':_0x5c806c,'shapeData':{'adjustValues':_0x1f95de,'relation':_0x2a900c}}}],_0x3835a3=[...(_0x5afa6e=_0x1b6bdd[_0x3945d1(0x157)])==null?[]:_0x5afa6e,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'op':_0x712035,'objects':_0x3174e6,'type':r[_0x3945d1(0xd2)][_0x3945d1(0x122)]}},{'id':r[_0x3945d1(0x12d)]['id'],'params':[_0x5a500c]},..._0x1b6bdd[_0x3945d1(0x168)],{'id':_['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'shapeId':_0x322ed7,'shapeType':_0x47f2cb,'shapeData':{..._0x46d014,'adjustValues':_0x1b3ad0||(_0x46d014==null?void 0x0:_0x46d014['adjustValues']),'relation':_0x278a7d||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0x149)])}}}];return(0x0,t[_0x3945d1(0xf1)])(_0x2089d7,_0x3990a1)[_0x3945d1(0x10b)]?(_0x220c51[_0x3945d1(0x175)]({'unitID':_0x5a500c,'undoMutations':_0x3835a3,'redoMutations':_0x2089d7}),!0x0):!0x1;}},C={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0x166),'handler':(_0x523243,_0x49614c)=>{const _0x1c1a49=_0x34634d;var _0x30cb95,_0x342eba;let _0x72cf93=(0x0,n[_0x1c1a49(0xde)])(_0x523243[_0x1c1a49(0x15e)](t['IUniverInstanceService']),_0x49614c);if(!_0x72cf93)return!0x1;let _0x2e55c0=_0x523243[_0x1c1a49(0x15e)](n[_0x1c1a49(0x164)]),{unitId:_0x2110d5,subUnitId:_0x53d6ef}=_0x72cf93,_0x3f35f8=_0x2e55c0['getSkeleton'](_0x2110d5,_0x53d6ef);if(!_0x3f35f8)return!0x1;let _0x11fd2e=_0x523243[_0x1c1a49(0x15e)](r['ISheetDrawingService']),{shapeId:_0x376969,width:_0x1c5e5a,height:_0x313058,left:_0x6370f,top:_0x3b8a4e,flipX:_0x133382,flipY:_0x220f3e,angle:_0x1e1237,oldAdjustValues:_0x9f7f9a,newAdjustValues:_0x48cff2,oldLineType:_0x474874,newLineType:_0x36b6db}=_0x49614c,_0x12acce=_0x11fd2e[_0x1c1a49(0x126)]({'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'drawingId':_0x376969});if(!_0x12acce)return!0x1;let _0x36b38e=_0x523243[_0x1c1a49(0x15e)](p)[_0x1c1a49(0x144)](_0x2110d5,_0x53d6ef,_0x376969);if(!_0x36b38e)return!0x1;let _0x52c832=_0x523243['get'](t['ICommandService']),_0x4cc426=_0x523243[_0x1c1a49(0x15e)](t[_0x1c1a49(0xd8)]),_0x33b046=_0x523243[_0x1c1a49(0x15e)](n[_0x1c1a49(0x111)]),_0x20459f={..._0x12acce[_0x1c1a49(0xd9)],'width':_0x1c5e5a,'height':_0x313058,'left':_0x6370f,'top':_0x3b8a4e,'flipX':_0x133382,'flipY':_0x220f3e,'angle':_0x1e1237},_0x457ca0=(0x0,r[_0x1c1a49(0x17c)])(_0x20459f,_0x3f35f8),_0xf9ad22=(0x0,r[_0x1c1a49(0xc1)])(_0x20459f,_0x3f35f8),_0x27d9a4=_0x36b38e[_0x1c1a49(0xca)](),_0x1b7a3f=_0x36b38e[_0x1c1a49(0x15f)](),_0x530416={'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'drawingId':_0x376969,'drawingType':t[_0x1c1a49(0xbf)][_0x1c1a49(0xdd)],'sheetTransform':_0x457ca0,'transform':_0x20459f,'data':{'shapeType':_0x36b6db||_0x474874||_0x27d9a4,'shapeData':{..._0x1b7a3f,'adjustValues':_0x48cff2||_0x9f7f9a||(_0x1b7a3f==null?void 0x0:_0x1b7a3f[_0x1c1a49(0xc6)])}},'axisAlignSheetTransform':_0xf9ad22,'allowTransform':!0x0},{undo:_0xd4a5dc,redo:_0x4ede00,objects:_0x282e16}=_0x11fd2e[_0x1c1a49(0xe0)]([_0x530416]),_0x5c7218=_0x33b046[_0x1c1a49(0xe5)]({'id':r[_0x1c1a49(0x159)]['id'],'params':{'unitId':_0x2110d5,'drawings':[_0x530416]}}),_0x5c0a8a=[...(_0x30cb95=_0x5c7218[_0x1c1a49(0xb1)])==null?[]:_0x30cb95,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'op':_0x4ede00,'objects':_0x282e16,'type':r[_0x1c1a49(0xd2)][_0x1c1a49(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2110d5]},..._0x5c7218['redos'],{'id':_['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'shapeId':_0x376969,'shapeType':_0x36b6db,'shapeData':{'adjustValues':_0x48cff2}}}],_0x16e814=[...(_0x342eba=_0x5c7218[_0x1c1a49(0x157)])==null?[]:_0x342eba,{'id':r[_0x1c1a49(0xc7)]['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'op':_0xd4a5dc,'objects':_0x282e16,'type':r[_0x1c1a49(0xd2)][_0x1c1a49(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2110d5]},..._0x5c7218['undos'],{'id':_['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'shapeId':_0x376969,'shapeType':_0x27d9a4,'shapeData':{..._0x1b7a3f,'adjustValues':_0x9f7f9a||(_0x1b7a3f==null?void 0x0:_0x1b7a3f[_0x1c1a49(0xc6)])}}}];return(0x0,t[_0x1c1a49(0xf1)])(_0x5c0a8a,_0x52c832)[_0x1c1a49(0x10b)]?(_0x4cc426[_0x1c1a49(0x175)]({'unitID':_0x2110d5,'undoMutations':_0x16e814,'redoMutations':_0x5c0a8a}),!0x0):!0x1;}},w={'id':_0x34634d(0xf0),'type':t[_0x34634d(0xfd)][_0x34634d(0x124)],'handler':(_0xb5dd37,_0xead57f)=>{const _0x2b57cc=_0x34634d;let {unitId:_0x1a27f6,subUnitId:_0x239e3a,shapeType:_0x35fce1,shapeId:_0x37d857,shapeData:_0x435c36}=_0xead57f,_0x13be4f=_0xb5dd37[_0x2b57cc(0x15e)](p)[_0x2b57cc(0x144)](_0x1a27f6,_0x239e3a,_0x37d857);return _0x13be4f&&(_0x13be4f[_0x2b57cc(0x171)](_0x35fce1),_0x435c36&&(_0x13be4f==null||_0x13be4f[_0x2b57cc(0x133)](_0x435c36))),!0x0;}},T={'id':'sheet.command.update-shape-type','type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'handler':(_0x260511,_0x346a6b)=>{const _0x3e26c0=_0x34634d;if(!_0x346a6b)return!0x1;let _0x3ae0d7=_0x260511[_0x3e26c0(0x15e)](t[_0x3e26c0(0x17b)]),_0x36c79a=_0x260511[_0x3e26c0(0x15e)](p),_0x4c5f78=_0x260511[_0x3e26c0(0x15e)](t[_0x3e26c0(0xd8)]),_0x64cc85=[],_0x11742a=[],{unitId:_0x34476d,subUnitId:_0x3e6543,shapeId:_0x29bf93,shapeType:_0xae63b2,shapeData:_0xe0206d}=_0x346a6b,_0x36af86=_0x36c79a[_0x3e26c0(0x144)](_0x34476d,_0x3e6543,_0x29bf93);if(_0x36af86){let _0xdfe883=_0x36af86[_0x3e26c0(0xca)](),_0x3f8241=Object[_0x3e26c0(0xf7)]({},_0x36af86[_0x3e26c0(0x15f)]()),_0x2f3292={'unitId':_0x34476d,'subUnitId':_0x3e6543,'shapeId':_0x29bf93,'shapeType':_0xae63b2,'shapeData':_0xe0206d},_0x132274={'unitId':_0x34476d,'subUnitId':_0x3e6543,'shapeId':_0x29bf93,'shapeType':_0xdfe883,'shapeData':_0x3f8241};return _0x64cc85['push']({'id':w['id'],'params':_0x2f3292}),_0x11742a[_0x3e26c0(0x135)]({'id':w['id'],'params':_0x132274}),_0x64cc85['every'](_0x21a7c5=>_0x3ae0d7[_0x3e26c0(0x16a)](_0x21a7c5['id'],_0x21a7c5[_0x3e26c0(0x16c)]))&&_0x4c5f78[_0x3e26c0(0x175)]({'unitID':_0x34476d,'redoMutations':[..._0x64cc85],'undoMutations':[..._0x11742a]}),!0x0;}return!0x1;}};var E=_0x34634d(0x14d),D=_0x34634d(0x170);const O={};let k=class extends t['Disposable']{constructor(_0x1c4e61,_0xca095a,_0x563382,_0x2ac9f1,_0x63cead){const _0x112db3=_0x34634d;super(),this[_0x112db3(0xb9)]=_0x1c4e61,this['_sheetInterceptorService']=_0xca095a,this[_0x112db3(0xbb)]=_0x563382,this[_0x112db3(0x13c)]=_0x2ac9f1,this[_0x112db3(0x163)]=_0x63cead,this[_0x112db3(0xc3)](),this[_0x112db3(0xd0)]();}[_0x34634d(0xc3)](){const _0x107f2a=_0x34634d;[g,v,y,b,x,S,C,m,h,w,_][_0x107f2a(0x13f)](_0x51a3f3=>this[_0x107f2a(0x139)](this[_0x107f2a(0xb9)]['registerCommand'](_0x51a3f3)));}[_0x34634d(0xd0)](){const _0x5ea71b=_0x34634d;this[_0x5ea71b(0x139)](this[_0x5ea71b(0x108)][_0x5ea71b(0x150)]({'getMutations':_0x469b5b=>{const _0xe1df6=_0x5ea71b;if(_0x469b5b['id']===r[_0xe1df6(0x116)]['id']){let {drawings:_0x546e4f}=_0x469b5b[_0xe1df6(0x16c)],_0x49d44c=_0x546e4f[_0xe1df6(0x17a)](_0xada922=>_0xada922[_0xe1df6(0xe2)]===t['DrawingTypeEnum'][_0xe1df6(0xdd)]);if(_0x49d44c['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4a698e=[],_0x133558=[];return _0x49d44c[_0xe1df6(0x13f)](_0x3df0d1=>{const _0x37b657=_0xe1df6;let {unitId:_0x3171f3,subUnitId:_0x37f143,drawingId:_0x40cd0}=_0x3df0d1,_0x134126=this[_0x37b657(0x13c)][_0x37b657(0x144)](_0x3171f3,_0x37f143,_0x40cd0);if(!_0x134126)throw TypeError(_0x37b657(0xf6)+_0x134126);_0x4a698e[_0x37b657(0x135)]({'id':h['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x40cd0}}),_0x133558[_0x37b657(0x135)]({'id':m['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x40cd0,'shapeType':_0x134126[_0x37b657(0xca)](),'shapeData':_0x134126['getShapeData']()}});let _0x56a6a7=this[_0x37b657(0x13c)]['getBasicShapeRelation'](_0x3171f3,_0x37f143,_0x40cd0);if(_0x56a6a7)for(let _0x471fe5 of _0x56a6a7){let _0x5ca9c6=_0x471fe5[_0x37b657(0xeb)],_0x24cfa7=_0x471fe5[_0x37b657(0x110)],_0x536397=_0x24cfa7?{'from':void 0x0}:{'to':void 0x0},_0x4db8bc=_0x24cfa7?{'from':{'shapeId':_0x471fe5['shapeId'],'cxnIndex':_0x471fe5['cxnIndex']}}:{'to':{'shapeId':_0x471fe5[_0x37b657(0x155)],'cxnIndex':_0x471fe5[_0x37b657(0x15c)]}};_0x4a698e[_0x37b657(0x135)]({'id':_['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x5ca9c6,'shapeData':{'relation':_0x536397}}}),_0x133558[_0x37b657(0x135)]({'id':_['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x5ca9c6,'shapeData':{'relation':_0x4db8bc}}});}}),{'preRedos':_0x4a698e,'redos':[],'preUndos':[],'undos':_0x133558};}if(_0x469b5b['id']===r[_0xe1df6(0x159)]['id']){let {drawings:_0xfb5d88}=_0x469b5b[_0xe1df6(0x16c)],_0x248f7e=_0xfb5d88['filter'](_0xc4b33=>_0xc4b33[_0xe1df6(0xe2)]===t[_0xe1df6(0xbf)][_0xe1df6(0xdd)]);if(_0x248f7e[_0xe1df6(0xdf)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2598e6=[],_0x17267a=[];for(let _0x37adb7 of _0x248f7e){let {unitId:_0x11eb4e,subUnitId:_0x3aa14e,drawingId:_0x1b6c39,transform:_0x5a6952}=_0x37adb7;if(!_0x11eb4e||!_0x3aa14e||!_0x1b6c39||!_0x5a6952)continue;let _0x4d0bb0=this['_sheetsShapeService'][_0xe1df6(0x144)](_0x11eb4e,_0x3aa14e,_0x1b6c39);if(!_0x4d0bb0)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x4d0bb0);if((0x0,e[_0xe1df6(0x14c)])(_0x4d0bb0[_0xe1df6(0xca)]())){let _0x2941ff=this[_0xe1df6(0x13c)][_0xe1df6(0x105)](_0x11eb4e,_0x3aa14e,_0x1b6c39);_0x2941ff&&(_0x2598e6[_0xe1df6(0x135)]({'id':_['id'],'params':{'unitId':_0x11eb4e,'subUnitId':_0x3aa14e,'shapeId':_0x1b6c39,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x17267a[_0xe1df6(0x135)]({'id':_['id'],'params':{'unitId':_0x11eb4e,'subUnitId':_0x3aa14e,'shapeId':_0x1b6c39,'shapeData':{'relation':_0x2941ff}}}));}else{let _0x46c9c7=this['_sheetsShapeService'][_0xe1df6(0xed)](_0x11eb4e,_0x3aa14e,_0x1b6c39);if(_0x46c9c7&&_0x46c9c7[_0xe1df6(0xdf)]>0x0)for(let _0x2f936b of _0x46c9c7){let _0x10b23f=_0x2f936b['lineShapeId'],_0x88e54a=_0x2f936b[_0xe1df6(0x110)],_0x38500f=this[_0xe1df6(0x13c)][_0xe1df6(0x144)](_0x11eb4e,_0x3aa14e,_0x10b23f);if(!_0x38500f)continue;let _0x1321ba=_0x38500f['getStartConnectInfo'](),_0x2b7832=_0x38500f[_0xe1df6(0x174)]();_0x1321ba&&_0x2b7832?this[_0xe1df6(0xb6)](_0x11eb4e,_0x3aa14e,_0x10b23f,_0x38500f,_0x1321ba,_0x2b7832,_0x2598e6,_0x17267a,_0x1b6c39,_0x5a6952):this[_0xe1df6(0xe8)](_0x11eb4e,_0x3aa14e,_0x10b23f,_0x38500f,_0x88e54a?_0x1321ba:_0x2b7832,_0x88e54a,_0x2598e6,_0x17267a,_0x1b6c39,_0x5a6952);}}}return{'preRedos':[],'redos':_0x2598e6,'preUndos':_0x17267a,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x32bd5a,_0x3d7f8c,_0x161e61,_0x5502bc,_0x4349ff){const _0x1f47fe=_0x34634d;if(!_0x3d7f8c||!_0x161e61)return null;let {shapeId:_0x26c8f4,cxnIndex:_0x1e0b27}=_0x32bd5a,_0x229d06=this[_0x1f47fe(0x13c)][_0x1f47fe(0x144)](_0x3d7f8c,_0x161e61,_0x26c8f4);if(!_0x229d06)return null;let _0x3adece=this[_0x1f47fe(0x163)][_0x1f47fe(0x126)]({'unitId':_0x3d7f8c,'subUnitId':_0x161e61,'drawingId':_0x26c8f4});if(!(_0x3adece!=null&&_0x3adece[_0x1f47fe(0xd9)]))return null;let {left:_0x737009=0x0,top:_0x4271b5=0x0,width:_0x5ce06c=0x0,height:_0x875194=0x0,flipX:_0x47148c=!0x1,flipY:_0x5c9bb3=!0x1,angle:_0x566a3b}=_0x3adece[_0x1f47fe(0xd9)];if(_0x4349ff&&_0x5502bc===_0x26c8f4){var _0x3a6ed0,_0x319493,_0x499a3f,_0x6708cc,_0x1d6927,_0x5ef722,_0x490853;_0x737009=(_0x3a6ed0=_0x4349ff[_0x1f47fe(0x160)])==null?_0x737009:_0x3a6ed0,_0x4271b5=(_0x319493=_0x4349ff[_0x1f47fe(0x152)])==null?_0x4271b5:_0x319493,_0x5ce06c=(_0x499a3f=_0x4349ff[_0x1f47fe(0x119)])==null?_0x5ce06c:_0x499a3f,_0x875194=(_0x6708cc=_0x4349ff[_0x1f47fe(0x169)])==null?_0x875194:_0x6708cc,_0x47148c=(_0x1d6927=_0x4349ff['flipX'])==null?_0x47148c:_0x1d6927,_0x5c9bb3=(_0x5ef722=_0x4349ff[_0x1f47fe(0x13a)])==null?_0x5c9bb3:_0x5ef722,_0x566a3b=(_0x490853=_0x4349ff['angle'])==null?_0x566a3b:_0x490853;}_0x229d06[_0x1f47fe(0x136)]({'width':_0x5ce06c,'height':_0x875194});let _0x20a0b8=_0x229d06[_0x1f47fe(0xd1)]()[_0x1f47fe(0x179)](_0x46adf3=>_0x46adf3[_0x1f47fe(0xd7)]===_0x1e0b27);if(!_0x20a0b8)return null;let _0x4419b8=_0x47148c?_0x5ce06c-_0x20a0b8['x']:_0x20a0b8['x'],_0x57143a=_0x5c9bb3?_0x875194-_0x20a0b8['y']:_0x20a0b8['y'];if(_0x566a3b!==0x0&&_0x566a3b!=null){let _0x21158b=_0x566a3b*Math['PI']/0xb4,_0x40f1cd=Math[_0x1f47fe(0x16d)](_0x21158b),_0x306003=Math[_0x1f47fe(0x120)](_0x21158b),_0x43827a=_0x5ce06c/0x2,_0x30df7a=_0x875194/0x2,_0x4da776=_0x4419b8-_0x43827a,_0x409269=_0x57143a-_0x30df7a;_0x4419b8=_0x43827a+_0x4da776*_0x40f1cd-_0x409269*_0x306003,_0x57143a=_0x30df7a+_0x4da776*_0x306003+_0x409269*_0x40f1cd;}_0x4419b8+=_0x737009,_0x57143a+=_0x4271b5;let _0x24a3bb=_0x20a0b8[_0x1f47fe(0xcd)]/0xea60;_0x47148c&&(_0x24a3bb=0xb4-_0x24a3bb),_0x5c9bb3&&(_0x24a3bb=-_0x24a3bb),_0x24a3bb+=_0x566a3b||0x0,_0x24a3bb=(_0x24a3bb%0x168+0x168)%0x168;let _0x55347c=(0x0,e['getBasicShapeRotateBound'])({'left':_0x737009,'top':_0x4271b5,'width':_0x5ce06c,'height':_0x875194},_0x566a3b||0x0);return{'point':{'x':_0x4419b8,'y':_0x57143a},'angle':_0x24a3bb,'bounds':_0x55347c};}[_0x34634d(0xb6)](_0x80165a,_0xe4395,_0x34836d,_0x41259f,_0x37bed1,_0x435ed6,_0x40586a,_0x4febbd,_0x563e3c,_0x167320){const _0x4dfffa=_0x34634d;let _0x15b8bd=this[_0x4dfffa(0xbb)][_0x4dfffa(0xba)](_0x80165a,_0xe4395);if(!_0x15b8bd)return;let _0x470524=_0x41259f[_0x4dfffa(0xe7)](),_0xda751c=_0x41259f[_0x4dfffa(0x15d)](),_0x5dbb31={},_0x4e8c24={};_0xda751c[_0x4dfffa(0x13f)](_0x9a2b0=>{let _0x4a479a=_0x41259f['getAdjustValueByName'](_0x9a2b0);_0x4e8c24[_0x9a2b0]=_0x4a479a==null?0x0:_0x4a479a;});let _0x5a23b6=this[_0x4dfffa(0x161)](_0x37bed1,_0x80165a,_0xe4395,_0x563e3c,_0x167320),_0x481dbd=this[_0x4dfffa(0x161)](_0x435ed6,_0x80165a,_0xe4395,_0x563e3c,_0x167320);if(_0x5a23b6&&_0x481dbd){let _0x3c490d=_0x41259f['getShapeType'](),_0x2cf65e=(0x0,e['routeConnectorLineShape'])(_0x5a23b6,_0x481dbd,_0x3c490d),_0x492e5e=_0x3c490d;if(_0x2cf65e){let _0x581d74=(0x0,e[_0x4dfffa(0x13b)])(_0x2cf65e,_0x41259f[_0x4dfffa(0xca)]()),_0x5533b3=this[_0x4dfffa(0x163)][_0x4dfffa(0x127)](_0x80165a,_0xe4395);if(_0x5533b3&&_0x5533b3[_0x34836d]){let _0x2a5e04=_0x5533b3[_0x34836d];_0x492e5e=_0x581d74[_0x4dfffa(0x14e)];for(let [_0x483ac6,_0x3ae797]of Object[_0x4dfffa(0xb0)](_0x581d74['adjustValues']))_0x5dbb31[_0x483ac6]=_0x3ae797;let _0x2e1aac={..._0x2a5e04[_0x4dfffa(0xd9)],'width':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x119)],'height':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x169)],'left':_0x581d74['worldRect'][_0x4dfffa(0x160)],'top':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x152)],'flipX':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x106)],'flipY':_0x581d74['worldRect'][_0x4dfffa(0x13a)],'angle':_0x581d74[_0x4dfffa(0x140)]},_0x2a8280=(0x0,r['transformToDrawingPosition'])(_0x2e1aac,_0x15b8bd),_0x58d2e0=(0x0,r['transformToAxisAlignPosition'])(_0x2e1aac,_0x15b8bd),_0x45c4f7={'unitId':_0x80165a,'subUnitId':_0xe4395,'drawingType':t[_0x4dfffa(0xbf)][_0x4dfffa(0xdd)],'drawingId':_0x34836d,'transform':_0x2e1aac,'sheetTransform':_0x2a8280,'axisAlignSheetTransform':_0x58d2e0},{unitId:_0x36a0d9,subUnitId:_0x4f32f3,undo:_0x492e96,redo:_0x145fe2,objects:_0xa6e587}=this[_0x4dfffa(0x163)][_0x4dfffa(0xe0)]([_0x45c4f7]);_0x40586a[_0x4dfffa(0x135)]({'id':r[_0x4dfffa(0xc7)]['id'],'params':{'unitId':_0x36a0d9,'subUnitId':_0x4f32f3,'op':_0x145fe2,'objects':_0xa6e587,'type':r['DrawingApplyType'][_0x4dfffa(0x122)]}}),_0x4febbd['push']({'id':r[_0x4dfffa(0xc7)]['id'],'params':{'unitId':_0x36a0d9,'subUnitId':_0x4f32f3,'op':_0x492e96,'objects':_0xa6e587,'type':r[_0x4dfffa(0xd2)]['UPDATE']}});}_0x41259f['removeLinePoints']();}_0x40586a[_0x4dfffa(0x135)]({'id':_['id'],'params':{'unitId':_0x80165a,'subUnitId':_0xe4395,'shapeId':_0x34836d,'shapeType':_0x492e5e,'shapeData':{'adjustValues':_0x5dbb31,'relation':_0x470524}}}),_0x4febbd[_0x4dfffa(0x135)]({'id':_['id'],'params':{'unitId':_0x80165a,'subUnitId':_0xe4395,'shapeId':_0x34836d,'shapeType':_0x3c490d,'shapeData':{'adjustValues':_0x4e8c24,'relation':_0x470524}}});}}[_0x34634d(0xe8)](_0x5bef6d,_0x131c04,_0x34feb3,_0x5ebbbf,_0x22cdf3,_0x39a751,_0x5d1337,_0x31ee8c,_0x598c8d,_0x41ac0b){const _0x16f864=_0x34634d;var _0x5f432e;if(!_0x22cdf3)return;let _0x5f0184=this['_sheetSkeletonService'][_0x16f864(0xba)](_0x5bef6d,_0x131c04);if(!_0x5f0184)return;let _0x557628=(_0x5f432e=this[_0x16f864(0x163)][_0x16f864(0x126)]({'unitId':_0x5bef6d,'subUnitId':_0x131c04,'drawingId':_0x598c8d}))==null?void 0x0:_0x5f432e['transform'];if(!_0x557628)return;let _0x412457=_0x557628[_0x16f864(0x160)]!==_0x41ac0b[_0x16f864(0x160)]||_0x557628[_0x16f864(0x152)]!==_0x41ac0b[_0x16f864(0x152)],_0x5a996c=_0x557628[_0x16f864(0x119)]!==_0x41ac0b[_0x16f864(0x119)]||_0x557628['height']!==_0x41ac0b[_0x16f864(0x169)],_0x4d23ea=_0x557628[_0x16f864(0x106)]!==_0x41ac0b['flipX']||_0x557628[_0x16f864(0x13a)]!==_0x41ac0b[_0x16f864(0x13a)],_0x37dd3b=_0x557628[_0x16f864(0xfb)]!==_0x41ac0b['angle'];if(_0x412457&&!_0x5a996c&&!_0x4d23ea&&!_0x37dd3b){var _0x9b6c7a,_0x11abe3,_0x4b4bc9,_0x4b7237;let _0x541995=((_0x9b6c7a=_0x41ac0b[_0x16f864(0x160)])==null?0x0:_0x9b6c7a)-((_0x11abe3=_0x557628['left'])==null?0x0:_0x11abe3),_0x1c01f6=((_0x4b4bc9=_0x41ac0b[_0x16f864(0x152)])==null?0x0:_0x4b4bc9)-((_0x4b7237=_0x557628[_0x16f864(0x152)])==null?0x0:_0x4b7237),_0xba6a81=this[_0x16f864(0x163)][_0x16f864(0x127)](_0x5bef6d,_0x131c04);if(_0xba6a81&&_0xba6a81[_0x34feb3]){var _0x14bcb5,_0x141ef9,_0x9ad33c,_0x4d941a;let _0x4cf3a8=_0xba6a81[_0x34feb3],_0x3437ae={..._0x4cf3a8[_0x16f864(0xd9)],'left':((_0x14bcb5=(_0x141ef9=_0x4cf3a8[_0x16f864(0xd9)])==null?void 0x0:_0x141ef9[_0x16f864(0x160)])==null?0x0:_0x14bcb5)+_0x541995,'top':((_0x9ad33c=(_0x4d941a=_0x4cf3a8[_0x16f864(0xd9)])==null?void 0x0:_0x4d941a[_0x16f864(0x152)])==null?0x0:_0x9ad33c)+_0x1c01f6},_0x19d9fb=(0x0,r[_0x16f864(0x17c)])(_0x3437ae,_0x5f0184),_0x177fe9=(0x0,r[_0x16f864(0xc1)])(_0x3437ae,_0x5f0184),_0x944607={'unitId':_0x5bef6d,'subUnitId':_0x131c04,'drawingType':t[_0x16f864(0xbf)][_0x16f864(0xdd)],'drawingId':_0x34feb3,'transform':_0x3437ae,'sheetTransform':_0x19d9fb,'axisAlignSheetTransform':_0x177fe9},{unitId:_0x1844e5,subUnitId:_0x44f793,undo:_0x5c148d,redo:_0x45f075,objects:_0x501ff6}=this[_0x16f864(0x163)][_0x16f864(0xe0)]([_0x944607]);_0x5d1337[_0x16f864(0x135)]({'id':r[_0x16f864(0xc7)]['id'],'params':{'unitId':_0x1844e5,'subUnitId':_0x44f793,'op':_0x45f075,'objects':_0x501ff6,'type':r[_0x16f864(0xd2)][_0x16f864(0x122)]}}),_0x31ee8c[_0x16f864(0x135)]({'id':r[_0x16f864(0xc7)]['id'],'params':{'unitId':_0x1844e5,'subUnitId':_0x44f793,'op':_0x5c148d,'objects':_0x501ff6,'type':r['DrawingApplyType'][_0x16f864(0x122)]}});}}else{let _0x4b7542=_0x5ebbbf[_0x16f864(0x123)](),_0x6d59c9=_0x5ebbbf[_0x16f864(0x174)]();this[_0x16f864(0xb6)](_0x5bef6d,_0x131c04,_0x34feb3,_0x5ebbbf,_0x4b7542,_0x6d59c9,_0x5d1337,_0x31ee8c,_0x598c8d,_0x41ac0b);}}};k=f([d(0x0,t['ICommandService']),d(0x1,(0x0,t[_0x34634d(0xe1)])(n['SheetInterceptorService'])),d(0x2,(0x0,t[_0x34634d(0xe1)])(n['SheetSkeletonService'])),d(0x3,(0x0,t[_0x34634d(0xe1)])(p)),d(0x4,(0x0,t['Inject'])(a[_0x34634d(0xc8)]))],k);let A=class extends t[_0x34634d(0x16e)]{constructor(_0x311f16=O,_0x2061fd,_0x224f40,_0x5cf343){const _0x4418c3=_0x34634d;super(),this[_0x4418c3(0xb5)]=_0x311f16,this[_0x4418c3(0x131)]=_0x2061fd,this[_0x4418c3(0xb9)]=_0x224f40,this['_configService']=_0x5cf343;let {..._0x38edbd}=(0x0,t[_0x4418c3(0xc5)])({},O,this[_0x4418c3(0xb5)]);this[_0x4418c3(0x128)][_0x4418c3(0x16f)]('sheets-shape.config',_0x38edbd);}[_0x34634d(0x11b)](){const _0x39d5ab=_0x34634d;let _0x18f6c7=this[_0x39d5ab(0x131)];[[u],[p],[k]][_0x39d5ab(0x13f)](_0x5831fe=>_0x18f6c7[_0x39d5ab(0x17d)](_0x5831fe)),(0x0,t['touchDependencies'])(_0x18f6c7,[[p],[k]]);}};l(A,_0x34634d(0x118),t['UniverInstanceType']['UNIVER_SHEET']),l(A,_0x34634d(0x100),_0x34634d(0xdc)),l(A,'packageName',E),l(A,_0x34634d(0x138),D),A=f([(0x0,t[_0x34634d(0x11e)])(i['UniverLicensePlugin']),d(0x1,(0x0,t[_0x34634d(0xe1)])(t[_0x34634d(0x156)])),d(0x2,t['ICommandService']),d(0x3,t[_0x34634d(0x107)])],A),exports['DEFAULT_SHAPE_HEIGHT']=0xc8,exports[_0x34634d(0xe3)]=0xc8,exports[_0x34634d(0x14b)]=g,exports[_0x34634d(0xc2)]=m,exports['RemoveSheetsShapeMutation']=h,exports[_0x34634d(0xff)]=v,exports[_0x34634d(0x16b)]=b,exports[_0x34634d(0xdb)]=x,Object[_0x34634d(0x158)](exports,_0x34634d(0xbc),{'enumerable':!0x0,'get':function(){return p;}}),exports['ToggleSheetsShapeFlipCommand']=y,Object[_0x34634d(0x158)](exports,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return A;}}),exports['UpdateConnectorRelationCommand']=S,exports[_0x34634d(0xe9)]=C,exports['UpdateSheetsShapeDataMutation']=_,exports[_0x34634d(0x145)]=T,exports['UpdateSheetsShapeTypeMutation']=w;
|
|
1
|
+
const _0x3c4862=_0x5842;function _0x5842(_0x378d18,_0x35c1ee){_0x378d18=_0x378d18-0x192;const _0x3213c6=_0x3213();let _0x58425b=_0x3213c6[_0x378d18];return _0x58425b;}function _0x3213(){const _0x3d0915=['sheet.command.set-shape-drawing-data','getAdjustValueByName','getLineShapeRelation','sheet.command.insert-shape','sheet.command.update-line-shape-resize','entries','IConfigService','drawingType','startX','hasShape','symbol','RemoveSheetDrawingCommand','top','sheet.mutation.remove-shape','filter','relation','DrawingApplyType','_shapeModelManagerMap','_ensureShapeModelManager','isLineShape','DRAWING_SHAPE','_configService','left','Inject','width','ClearSheetDrawingTransformerOperation','getShapeModel','toStringTag','_disposed','_drawingManagerService','CommandType','SetShapeDrawingDataCommand','_initCommands','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_linesIds','10AuiftA','SHEET_SHAPE_PLUGIN','SetSheetsShapeRotateCommand','has','3460128Rcaeun','sequenceExecute','UpdateLineShapeResizeCommand','map','length','rotation','updateContext','IUndoRedoService','266689vXUSlh','borderEnabled','INSERT','params','rotateEnabled','UpdateSheetsShapeDataMutation','SheetsShapeService','_sheetSkeletonService','5825DXEYtt','disposeWithMe','getEndConnectInfo','toJSON','data','interceptCommand','sheet.command.toggle-shape-flip','sheets-shape.config','576vHLXsj','Module','_shapes','1.0.0-alpha.2','default','UniverLicensePlugin','SheetInterceptorService','InsertSheetsShapeMutation','ICommandService','Disposable','type','925552fayIle','removeShape','IUniverInstanceService','ensureSkeleton','get','Injector','resizeEnabled','flipY','UpdateSheetsShapeTypeMutation','_injector','packageName','getDrawingData','_resourcesManagerService','every','17269YnFLEQ','object','SetSheetsShapeTextVerticalToggleCommand','getShapeData','prototype','function','forEach','adjustValues','clear','undos','getShapeType','getOwnPropertyDescriptor','setConfig','find','12pJAekG','getBasicShapeRelation','pushUndoRedo','from','getShapeTextData','getSheetCommandTarget','result','sheet.mutation.insert-shape','fromJSON','UniverInstanceType','generateRandomId','_initSnapshot','transform','sheet.command.update-connector-relation','sheet.mutation.update-shape-data','SetDrawingApplyMutation','DEFAULT_SHAPE_HEIGHT','lineType','getShapeRelation','_config','getDrawingByParam','stringify','UniverSheetsShapePlugin','UpdateSheetsShapeTypeCommand','touchDependencies','parse','ang','_sheetInterceptorService','shapeId','assign','version','addShape','delete','dispose','UPDATE','ISheetDrawingService','_sheetsShapeService','cxnIndex','getId','set','preRedos','onStarting','iterator','DEFAULT_SHAPE_WIDTH','_serializeShapeForUnit','getBasicShapeRotateBound','redos','fill','_addLineRerouteUpdates','ToggleSheetsShapeFlipCommand','Plugin','_addLineFollowShapeUpdates','lineShapeId','shapeName','push','setShapeType','COMMAND','add','string','DrawingTypeEnum','merge','keys','3752287qTVmYL','SetSheetDrawingCommand','call','defineProperty','worldRect','_getConnectPointInfo','setShapeData','isConnectorShape','RemoveSheetsShapeMutation','getName','IDrawingManagerService','4372XiwuLB','getBatchUpdateOp','getBasicShapeType','decorate','insertShape','getAdjustNames','preUndos','position','flipX','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','routeConnectorLineShape','1464Sahhdy','pluginName','onCommandExecute','getCellWithCoordByIndex','DependentOn','transformToDrawingPosition','getSkeleton','_initCommandInterceptor','9FTNsDy','sheet.command.update-shape-type','getCellIndexAndOffsetByPosition','height','MUTATION','computeConnectorRouteLayout','getShapeDisplayNames','registerCommand','SheetSkeletonService','transformToAxisAlignPosition','values','angle','_groupIds'];_0x3213=function(){return _0x3d0915;};return _0x3213();}(function(_0x48b8a0,_0x455b2c){const _0xf4b7c5=_0x5842,_0x482423=_0x48b8a0();while(!![]){try{const _0x26867c=parseInt(_0xf4b7c5(0x217))/0x1+parseInt(_0xf4b7c5(0x1c8))/0x2*(-parseInt(_0xf4b7c5(0x24e))/0x3)+-parseInt(_0xf4b7c5(0x1d3))/0x4*(-parseInt(_0xf4b7c5(0x21f))/0x5)+-parseInt(_0xf4b7c5(0x227))/0x6*(parseInt(_0xf4b7c5(0x240))/0x7)+-parseInt(_0xf4b7c5(0x232))/0x8*(parseInt(_0xf4b7c5(0x1db))/0x9)+-parseInt(_0xf4b7c5(0x20b))/0xa*(parseInt(_0xf4b7c5(0x1bd))/0xb)+parseInt(_0xf4b7c5(0x20f))/0xc;if(_0x26867c===_0x455b2c)break;else _0x482423['push'](_0x482423['shift']());}catch(_0x7368f5){_0x482423['push'](_0x482423['shift']());}}}(_0x3213,0x441fc),Object['defineProperty'](exports,Symbol[_0x3c4862(0x203)],{'value':_0x3c4862(0x228)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs-pro/license'),a=require('@univerjs/drawing');function o(_0x38cd47){'@babel/helpers - typeof';const _0x329ee9=_0x3c4862;return o=typeof Symbol==_0x329ee9(0x245)&&typeof Symbol[_0x329ee9(0x1a9)]==_0x329ee9(0x1f2)?function(_0x24d3ba){return typeof _0x24d3ba;}:function(_0x843407){const _0x4e4645=_0x329ee9;return _0x843407&&typeof Symbol==_0x4e4645(0x245)&&_0x843407['constructor']===Symbol&&_0x843407!==Symbol[_0x4e4645(0x244)]?_0x4e4645(0x1f2):typeof _0x843407;},o(_0x38cd47);}function s(_0x542aaa,_0x184874){const _0x36fb39=_0x3c4862;if(o(_0x542aaa)!='object'||!_0x542aaa)return _0x542aaa;var _0x588159=_0x542aaa[Symbol['toPrimitive']];if(_0x588159!==void 0x0){var _0x548329=_0x588159[_0x36fb39(0x1bf)](_0x542aaa,_0x184874||_0x36fb39(0x22b));if(o(_0x548329)!='object')return _0x548329;throw TypeError(_0x36fb39(0x209));}return(_0x184874===_0x36fb39(0x1b9)?String:Number)(_0x542aaa);}function c(_0x2dfb0e){const _0x29514c=_0x3c4862;var _0x589a11=s(_0x2dfb0e,_0x29514c(0x1b9));return o(_0x589a11)==_0x29514c(0x1f2)?_0x589a11:_0x589a11+'';}function l(_0x17c464,_0x5a5e86,_0xfb0f14){const _0xcf1d8f=_0x3c4862;return(_0x5a5e86=c(_0x5a5e86))in _0x17c464?Object[_0xcf1d8f(0x1c0)](_0x17c464,_0x5a5e86,{'value':_0xfb0f14,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17c464[_0x5a5e86]=_0xfb0f14,_0x17c464;}var u=class extends t[_0x3c4862(0x230)]{constructor(){const _0x5ed4d1=_0x3c4862;super(),l(this,_0x5ed4d1(0x229),new Map()),l(this,_0x5ed4d1(0x20a),new Set()),l(this,'_groupIds',new Set());}[_0x3c4862(0x19e)](_0x1bbf8e,_0x3ee051,_0x5752e5,_0x41731f){const _0x3b5b12=_0x3c4862;let _0xeb013d=new e['ShapeModel'](_0x1bbf8e,_0x3ee051,_0x5752e5,_0x41731f);return this[_0x3b5b12(0x229)][_0x3b5b12(0x1a6)](_0x3ee051,_0xeb013d),(0x0,e['isConnectorShape'])(_0x1bbf8e)&&this[_0x3b5b12(0x20a)]['add'](_0x3ee051),_0xeb013d;}['getBasicShapeRelation'](_0x702b3){const _0x4af5c8=_0x3c4862;let _0x375e7a=[];for(let _0x29cde7 of this[_0x4af5c8(0x20a)]){let _0x5dacde=this[_0x4af5c8(0x229)][_0x4af5c8(0x236)](_0x29cde7);if(_0x5dacde){let _0x6107bd=_0x5dacde['getShapeRelation']();if(_0x6107bd){var _0x290c78,_0x122595;((_0x290c78=_0x6107bd[_0x4af5c8(0x251)])==null?void 0x0:_0x290c78['shapeId'])===_0x702b3&&_0x375e7a['push']({..._0x6107bd[_0x4af5c8(0x251)],'lineShapeId':_0x29cde7,'isFrom':!0x0}),((_0x122595=_0x6107bd['to'])==null?void 0x0:_0x122595['shapeId'])===_0x702b3&&_0x375e7a[_0x4af5c8(0x1b5)]({..._0x6107bd['to'],'lineShapeId':_0x29cde7,'isFrom':!0x1});}}}return _0x375e7a;}[_0x3c4862(0x1ea)](_0x18e6cd){const _0x2f8590=_0x3c4862;let _0x1fc3a3=this[_0x2f8590(0x229)][_0x2f8590(0x236)](_0x18e6cd);if(_0x1fc3a3)return _0x1fc3a3[_0x2f8590(0x260)]();}[_0x3c4862(0x24a)](_0x55e1da){const _0x211cc9=_0x3c4862;let _0x25909c=this[_0x211cc9(0x229)][_0x211cc9(0x236)](_0x55e1da);if(_0x25909c)return _0x25909c[_0x211cc9(0x24a)]();}[_0x3c4862(0x1f1)](_0x505fa5){const _0x268744=_0x3c4862;return this[_0x268744(0x229)][_0x268744(0x20e)](_0x505fa5);}[_0x3c4862(0x1e1)](){const _0x48b2d6=_0x3c4862;return Array[_0x48b2d6(0x251)](this[_0x48b2d6(0x229)][_0x48b2d6(0x1e5)]())[_0x48b2d6(0x212)](_0x498e23=>_0x498e23[_0x48b2d6(0x1c6)]()||_0x498e23[_0x48b2d6(0x1a5)]());}[_0x3c4862(0x233)](_0x92c7ab){const _0xb1bc94=_0x3c4862;let _0x433c0d=this[_0xb1bc94(0x229)][_0xb1bc94(0x236)](_0x92c7ab);_0x433c0d&&((0x0,e[_0xb1bc94(0x1c4)])(_0x433c0d[_0xb1bc94(0x24a)]())&&this['_linesIds'][_0xb1bc94(0x19f)](_0x92c7ab),this[_0xb1bc94(0x229)][_0xb1bc94(0x19f)](_0x92c7ab));}[_0x3c4862(0x222)](){const _0x194a1c=_0x3c4862;let _0x1b1724=[];return this[_0x194a1c(0x229)][_0x194a1c(0x246)](_0x3e0b44=>{const _0x10f40f=_0x194a1c;_0x1b1724[_0x10f40f(0x1b5)](_0x3e0b44[_0x10f40f(0x222)]());}),_0x1b1724;}[_0x3c4862(0x256)](_0x5e98dc){const _0x44a874=_0x3c4862;for(let _0x882d9e of _0x5e98dc){let {id:_0x221c9c,shapeType:_0x2cce51,name:_0x30d7b2}=_0x882d9e,_0x542e1a=this[_0x44a874(0x19e)](_0x2cce51,_0x221c9c,_0x882d9e['shapeData'],_0x30d7b2);_0x542e1a&&_0x542e1a[_0x44a874(0x1fb)]()&&this[_0x44a874(0x20a)][_0x44a874(0x1b8)](_0x221c9c);}}[_0x3c4862(0x1a0)](){const _0x558030=_0x3c4862;this[_0x558030(0x204)]||(this[_0x558030(0x229)][_0x558030(0x246)](_0x3fdfac=>{const _0x331467=_0x558030;_0x3fdfac[_0x331467(0x1a0)]();}),this['_shapes'][_0x558030(0x248)](),this[_0x558030(0x20a)]['clear'](),this[_0x558030(0x1e7)][_0x558030(0x248)](),super['dispose']());}};function d(_0x1aab02,_0x4e57a5){return function(_0x3313bb,_0xe4f92f){_0x4e57a5(_0x3313bb,_0xe4f92f,_0x1aab02);};}function f(_0x4c0a0b,_0x1f9b70,_0x49998c,_0x3d3fb8){const _0x3aa127=_0x3c4862;var _0x24d1f5=arguments['length'],_0x5a439e=_0x24d1f5<0x3?_0x1f9b70:_0x3d3fb8===null?_0x3d3fb8=Object[_0x3aa127(0x24b)](_0x1f9b70,_0x49998c):_0x3d3fb8,_0x5c30ce;if(typeof Reflect==_0x3aa127(0x241)&&typeof Reflect[_0x3aa127(0x1cb)]==_0x3aa127(0x245))_0x5a439e=Reflect['decorate'](_0x4c0a0b,_0x1f9b70,_0x49998c,_0x3d3fb8);else{for(var _0xbb1c7c=_0x4c0a0b[_0x3aa127(0x213)]-0x1;_0xbb1c7c>=0x0;_0xbb1c7c--)(_0x5c30ce=_0x4c0a0b[_0xbb1c7c])&&(_0x5a439e=(_0x24d1f5<0x3?_0x5c30ce(_0x5a439e):_0x24d1f5>0x3?_0x5c30ce(_0x1f9b70,_0x49998c,_0x5a439e):_0x5c30ce(_0x1f9b70,_0x49998c))||_0x5a439e);}return _0x24d1f5>0x3&&_0x5a439e&&Object[_0x3aa127(0x1c0)](_0x1f9b70,_0x49998c,_0x5a439e),_0x5a439e;}let p=class extends t[_0x3c4862(0x230)]{constructor(_0x57b9f9){const _0x199a86=_0x3c4862;super(),this[_0x199a86(0x23e)]=_0x57b9f9,l(this,_0x199a86(0x1f9),new Map()),this['_initSnapshot']();}[_0x3c4862(0x1fa)](_0xbc4a5f,_0x5687e1){const _0x1b7de8=_0x3c4862;let _0x2c0853=this[_0x1b7de8(0x1f9)]['get'](_0xbc4a5f);_0x2c0853||(_0x2c0853=new Map(),this['_shapeModelManagerMap'][_0x1b7de8(0x1a6)](_0xbc4a5f,_0x2c0853));let _0x467ff1=_0x2c0853[_0x1b7de8(0x236)](_0x5687e1);return _0x467ff1||(_0x467ff1=new u(),_0x2c0853[_0x1b7de8(0x1a6)](_0x5687e1,_0x467ff1)),_0x467ff1;}[_0x3c4862(0x1cc)](_0x3a6482,_0x70db2d,_0x3fba71,_0x38e561,_0x221880,_0x3c6ef4){const _0x521a2b=_0x3c4862;this[_0x521a2b(0x1fa)](_0x3a6482,_0x70db2d)[_0x521a2b(0x19e)](_0x3fba71,_0x38e561,_0x221880,_0x3c6ef4);}[_0x3c4862(0x233)](_0x559a4c,_0x5ae259,_0x2acb9b){const _0x5c2217=_0x3c4862;this[_0x5c2217(0x1fa)](_0x559a4c,_0x5ae259)[_0x5c2217(0x233)](_0x2acb9b);}[_0x3c4862(0x1ca)](_0x380048,_0x423004,_0xe9c390){const _0x2a7564=_0x3c4862;return this[_0x2a7564(0x1fa)](_0x380048,_0x423004)[_0x2a7564(0x24a)](_0xe9c390);}['getShapeType'](_0x19d631,_0x5342c9,_0x585a4f){const _0x35d3f0=_0x3c4862;return this[_0x35d3f0(0x1fa)](_0x19d631,_0x5342c9)[_0x35d3f0(0x24a)](_0x585a4f);}['hasShape'](_0x4e83ee,_0x502500,_0x3968a5){const _0x15a3ec=_0x3c4862;return this[_0x15a3ec(0x1fa)](_0x4e83ee,_0x502500)[_0x15a3ec(0x1f1)](_0x3968a5);}['getShapeTypeById'](_0x11ba8e,_0x3aa476,_0x365e5c){const _0x4ffeba=_0x3c4862;return this[_0x4ffeba(0x1fa)](_0x11ba8e,_0x3aa476)[_0x4ffeba(0x24a)](_0x365e5c);}['getShapeDataById'](_0x5817aa,_0x3e18b9,_0x3545f6){const _0xcf23ca=_0x3c4862;let _0x44e5b9=this['_ensureShapeModelManager'](_0x5817aa,_0x3e18b9);if(!_0x44e5b9['getShapeType'](_0x3545f6))return;let _0x4f2ab8=_0x44e5b9[_0xcf23ca(0x229)][_0xcf23ca(0x236)](_0x3545f6);if(_0x4f2ab8)return _0x4f2ab8[_0xcf23ca(0x243)]();}['getShapeDisplayNames'](_0x571ec1,_0x1e1560){const _0x186287=_0x3c4862;return this[_0x186287(0x1fa)](_0x571ec1,_0x1e1560)[_0x186287(0x1e1)]();}['getShapeModel'](_0x45a246,_0x52e639,_0x24fe19){const _0x3384ea=_0x3c4862;return this['_ensureShapeModelManager'](_0x45a246,_0x52e639)[_0x3384ea(0x229)][_0x3384ea(0x236)](_0x24fe19);}[_0x3c4862(0x24f)](_0x27cd24,_0x2c168c,_0x2ddd54){const _0x2a78f4=_0x3c4862;return this[_0x2a78f4(0x1fa)](_0x27cd24,_0x2c168c)[_0x2a78f4(0x24f)](_0x2ddd54);}['getLineShapeRelation'](_0x1190db,_0x575bc3,_0x4a01ad){const _0x2b962f=_0x3c4862;let _0x28d214=this[_0x2b962f(0x1fa)](_0x1190db,_0x575bc3)['_shapes']['get'](_0x4a01ad);if(_0x28d214)return _0x28d214[_0x2b962f(0x260)]();}[_0x3c4862(0x1b6)](){}['_serializeShapeForUnit'](_0x2bad40){const _0x5b5525=_0x3c4862;let _0x43a8db={},_0x4b2cba=this[_0x5b5525(0x1f9)][_0x5b5525(0x236)](_0x2bad40);return _0x4b2cba&&_0x4b2cba[_0x5b5525(0x246)]((_0x318eb6,_0xbeb2d0)=>{const _0x1dfc35=_0x5b5525;let _0x2c6ad9=_0x318eb6[_0x1dfc35(0x222)]();_0x2c6ad9[_0x1dfc35(0x213)]>0x0&&(_0x43a8db[_0xbeb2d0]=_0x2c6ad9);}),JSON[_0x5b5525(0x194)](_0x43a8db);}['_deserializeShapeForUnit'](_0x285fc9,_0x4db563){const _0x2525b5=_0x3c4862;Object['keys'](_0x4db563)[_0x2525b5(0x246)](_0x32f2f2=>{const _0x1eec0e=_0x2525b5;this['_ensureShapeModelManager'](_0x285fc9,_0x32f2f2)[_0x1eec0e(0x256)](_0x4db563[_0x32f2f2]);});}[_0x3c4862(0x222)](){const _0x3c64c9=_0x3c4862;let _0x14f114={};return this[_0x3c64c9(0x1f9)][_0x3c64c9(0x246)]((_0x2f9ca3,_0x2bda1c)=>{_0x14f114[_0x2bda1c]={},_0x2f9ca3['forEach']((_0x1d2365,_0x34e8d6)=>{_0x14f114[_0x2bda1c][_0x34e8d6]=_0x1d2365['toJSON']();});}),_0x14f114;}[_0x3c4862(0x256)](_0x4b36e1){const _0x878a6c=_0x3c4862;Object[_0x878a6c(0x1bc)](_0x4b36e1)[_0x878a6c(0x246)](_0x3c39fb=>{const _0x2983b2=_0x878a6c;let _0x231faa=_0x4b36e1[_0x3c39fb];Object[_0x2983b2(0x1bc)](_0x231faa)['forEach'](_0x13832f=>{const _0x426663=_0x2983b2;this[_0x426663(0x1fa)](_0x3c39fb,_0x13832f)[_0x426663(0x256)](_0x231faa[_0x13832f]);});});}[_0x3c4862(0x259)](){const _0x2b4ad0=_0x3c4862;this['_resourcesManagerService']['registerPluginResource']({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[t[_0x2b4ad0(0x257)]['UNIVER_SHEET']],'toJson':_0x48187c=>this[_0x2b4ad0(0x1ab)](_0x48187c),'parseJson':_0x70b3ad=>JSON[_0x2b4ad0(0x198)](_0x70b3ad),'onLoad':(_0x154d1f,_0x3ebedf)=>{this['_deserializeShapeForUnit'](_0x154d1f,_0x3ebedf);},'onUnLoad':_0x601cbf=>{const _0x3a7d70=_0x2b4ad0;let _0x1dff7d=this['_shapeModelManagerMap'][_0x3a7d70(0x236)](_0x601cbf);_0x1dff7d&&(_0x1dff7d[_0x3a7d70(0x246)](_0x21bac7=>{const _0x570d3d=_0x3a7d70;_0x21bac7[_0x570d3d(0x1a0)]();}),this[_0x3a7d70(0x1f9)][_0x3a7d70(0x19f)](_0x601cbf));}});}[_0x3c4862(0x1a0)](){const _0x27ad48=_0x3c4862;this['_shapeModelManagerMap'][_0x27ad48(0x246)](_0x1c308f=>{const _0x3ee833=_0x27ad48;_0x1c308f[_0x3ee833(0x246)](_0x268bfb=>{const _0xf71f7d=_0x3ee833;_0x268bfb[_0xf71f7d(0x1a0)]();});});}};p=f([d(0x0,t['IResourceManagerService'])],p);const m={'id':_0x3c4862(0x255),'type':t['CommandType'][_0x3c4862(0x1df)],'handler':(_0x346325,_0x38776f)=>{const _0x7a2a6c=_0x3c4862;let {unitId:_0x1fd7bc,subUnitId:_0x151893,shapeType:_0x4754c3,shapeId:_0x3aaef0,shapeName:_0x2d54ac,shapeData:_0x5c7d2e}=_0x38776f;return _0x346325[_0x7a2a6c(0x236)](p)['insertShape'](_0x1fd7bc,_0x151893,_0x4754c3,_0x3aaef0,_0x5c7d2e,_0x2d54ac),!0x0;}},h={'id':_0x3c4862(0x1f5),'type':t[_0x3c4862(0x206)][_0x3c4862(0x1df)],'handler':(_0x4dd056,_0x3d5b76)=>{const _0x321045=_0x3c4862;let {unitId:_0x3df9c9,subUnitId:_0x54d2e5,shapeId:_0x25c2ad}=_0x3d5b76;return _0x4dd056['get'](p)[_0x321045(0x233)](_0x3df9c9,_0x54d2e5,_0x25c2ad),!0x0;}},g={'type':t['CommandType'][_0x3c4862(0x1b7)],'id':_0x3c4862(0x1eb),'handler':(_0x3468be,_0x248b85)=>{const _0x59f14c=_0x3c4862;var _0x409e25,_0x2e8ab5,_0x27cf43;let _0x29979e=(0x0,n[_0x59f14c(0x253)])(_0x3468be[_0x59f14c(0x236)](t[_0x59f14c(0x234)]),_0x248b85);if(!_0x29979e)return!0x1;let _0x549752=_0x3468be['get'](n['SheetSkeletonService']),{unitId:_0x3e467c,subUnitId:_0x31f127}=_0x29979e,_0x54ec21=_0x549752['ensureSkeleton'](_0x3e467c,_0x31f127);if(!_0x54ec21)return!0x1;let _0x3af41a=_0x3468be[_0x59f14c(0x236)](t[_0x59f14c(0x22f)]),_0x215910=_0x3468be[_0x59f14c(0x236)](t[_0x59f14c(0x216)]),_0x37928c=_0x3468be[_0x59f14c(0x236)](n[_0x59f14c(0x22d)]),_0x377297=_0x3468be[_0x59f14c(0x236)](r[_0x59f14c(0x1a2)]),_0x261d7a=_0x3468be[_0x59f14c(0x236)](p),{shapeType:_0x211e5b,shapeData:_0x42ec03}=_0x248b85,_0x2687da=_0x248b85[_0x59f14c(0x19b)]||(0x0,t[_0x59f14c(0x258)])(),_0x18e8f7={'unitId':_0x3e467c,'subUnitId':_0x31f127,'shapeId':_0x2687da,'shapeName':(_0x409e25=_0x248b85[_0x59f14c(0x1b4)])==null?(0x0,e['createUniqueShapeName'])(_0x211e5b,_0x261d7a['getShapeDisplayNames'](_0x3e467c,_0x31f127)):_0x409e25,'shapeType':_0x211e5b,'shapeData':_0x42ec03},_0x2a1d22=_0x248b85['width']||0xc8,_0x51b595=_0x248b85[_0x59f14c(0x1de)]||0xc8,_0x14aaf9=0x0,_0x34ef12=0x0,_0x5f661c={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x1c1bd0={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x248b85[_0x59f14c(0x1cf)]){let {x:_0x1f8c3d,y:_0x481093}=_0x248b85['position'];_0x14aaf9=_0x1f8c3d,_0x34ef12=_0x481093,_0x5f661c=_0x54ec21[_0x59f14c(0x1dd)](_0x1f8c3d,_0x481093),_0x1c1bd0=_0x54ec21[_0x59f14c(0x1dd)](_0x1f8c3d+_0x2a1d22,_0x481093+_0x51b595);}else{if(_0x248b85['range']){let {startRow:_0x5e9039,startColumn:_0x4b5d16}=_0x248b85['range'];_0x5f661c={'row':_0x5e9039,'rowOffset':0xa,'column':_0x4b5d16,'columnOffset':0xa};let _0x587a99=_0x54ec21[_0x59f14c(0x1d6)](_0x5e9039,_0x4b5d16);_0x14aaf9=_0x587a99[_0x59f14c(0x1f0)]+0xa,_0x34ef12=_0x587a99['startY']+0xa,_0x1c1bd0=_0x54ec21[_0x59f14c(0x1dd)](_0x14aaf9+_0x2a1d22,_0x34ef12+_0x51b595);}}let _0x1ad3fe={'from':_0x5f661c,'to':_0x1c1bd0},_0x453937={'unitId':_0x3e467c,'subUnitId':_0x31f127,'drawingId':_0x2687da,'drawingType':t[_0x59f14c(0x1ba)]['DRAWING_SHAPE'],'sheetTransform':_0x1ad3fe,'transform':{'left':_0x14aaf9,'top':_0x34ef12,'width':_0x2a1d22,'height':_0x51b595},'data':{'shapeType':_0x211e5b,'shapeData':_0x42ec03},'axisAlignSheetTransform':_0x1ad3fe,'allowTransform':!0x0};(0x0,e[_0x59f14c(0x1c4)])(_0x211e5b)&&(_0x453937[_0x59f14c(0x223)][_0x59f14c(0x1ae)]=!0x1,_0x453937[_0x59f14c(0x223)]['rotateEnabled']=!0x1,_0x453937[_0x59f14c(0x223)][_0x59f14c(0x238)]=!0x1,_0x453937['data'][_0x59f14c(0x218)]=!0x1,_0x453937[_0x59f14c(0x25a)]['rotateEnabled']=!0x1,_0x453937['transform'][_0x59f14c(0x238)]=!0x1,_0x453937[_0x59f14c(0x25a)][_0x59f14c(0x218)]=!0x1);let {undo:_0x4d55a5,redo:_0x38fd04,objects:_0x4ed02f}=_0x377297['getBatchAddOp']([_0x453937]),_0x1e383a=_0x37928c[_0x59f14c(0x1d5)]({'id':r['InsertSheetDrawingCommand']['id'],'params':{'unitId':_0x3e467c,'drawings':[_0x453937]}}),_0x31e654=[...(_0x2e8ab5=_0x1e383a[_0x59f14c(0x1a7)])==null?[]:_0x2e8ab5,{'id':r[_0x59f14c(0x25d)]['id'],'params':{'unitId':_0x3e467c,'subUnitId':_0x31f127,'op':_0x38fd04,'objects':_0x4ed02f,'type':r['DrawingApplyType'][_0x59f14c(0x219)]}},{'id':r[_0x59f14c(0x201)]['id'],'params':[_0x3e467c]},..._0x1e383a[_0x59f14c(0x1ad)],{'id':m['id'],'params':_0x18e8f7}],_0x5ae930=[{'id':h['id'],'params':{'unitId':_0x3e467c,'subUnitId':_0x31f127,'shapeId':_0x2687da}},...(_0x27cf43=_0x1e383a[_0x59f14c(0x1ce)])==null?[]:_0x27cf43,{'id':r[_0x59f14c(0x25d)]['id'],'params':{'unitId':_0x3e467c,'subUnitId':_0x31f127,'op':_0x4d55a5,'objects':_0x4ed02f,'type':r[_0x59f14c(0x1f8)]['REMOVE']}},{'id':r[_0x59f14c(0x201)]['id'],'params':[_0x3e467c]},..._0x1e383a[_0x59f14c(0x249)]];return(0x0,t[_0x59f14c(0x210)])(_0x31e654,_0x3af41a)[_0x59f14c(0x254)]?(_0x215910['pushUndoRedo']({'unitID':_0x3e467c,'undoMutations':_0x5ae930,'redoMutations':_0x31e654}),!0x0):!0x1;}},_={'id':_0x3c4862(0x25c),'type':t[_0x3c4862(0x206)]['MUTATION'],'handler':(_0x3a7653,_0x456aea)=>{const _0x55061c=_0x3c4862;let {unitId:_0x2192db,subUnitId:_0x4afa74,shapeType:_0x4a0dd3,shapeId:_0x5c5ac8,shapeData:_0x2543a9}=_0x456aea,_0x1d7983=_0x3a7653[_0x55061c(0x236)](p)[_0x55061c(0x202)](_0x2192db,_0x4afa74,_0x5c5ac8);return _0x1d7983&&(_0x4a0dd3!==void 0x0&&_0x1d7983[_0x55061c(0x1b6)](_0x4a0dd3),_0x2543a9&&(_0x1d7983==null||_0x1d7983[_0x55061c(0x1c3)](_0x2543a9,!0x0))),!0x0;}},v={'type':t[_0x3c4862(0x206)][_0x3c4862(0x1b7)],'id':_0x3c4862(0x1e8),'handler':(_0x53dea2,_0x5a1d52)=>{const _0x240d3f=_0x3c4862;var _0x546d03,_0x4a9aea;let _0x1cd746=(0x0,n[_0x240d3f(0x253)])(_0x53dea2[_0x240d3f(0x236)](t[_0x240d3f(0x234)]),_0x5a1d52);if(!_0x1cd746)return!0x1;let _0x3f13a5=_0x53dea2['get'](n[_0x240d3f(0x1e3)]),{unitId:_0x5e7302,subUnitId:_0x945e2e}=_0x1cd746,_0x1de326=_0x3f13a5[_0x240d3f(0x235)](_0x5e7302,_0x945e2e);if(!_0x1de326)return!0x1;let _0xfad7ba=_0x53dea2[_0x240d3f(0x236)](p),{shapeId:_0x213e68,shapeType:_0x7e7e2,shapeData:_0x20cf75,position:_0x564500,width:_0x4afae7,height:_0x5139fd}=_0x5a1d52,_0x5b436c=_0xfad7ba[_0x240d3f(0x202)](_0x5e7302,_0x945e2e,_0x213e68);if(!_0x5b436c)return!0x1;let _0x3c3fb5=_0x53dea2['get'](t['ICommandService']),_0x66d439=_0x53dea2['get'](t['IUndoRedoService']),_0xee8926=_0x53dea2['get'](n[_0x240d3f(0x22d)]),_0x1c1eae=_0x53dea2[_0x240d3f(0x236)](r[_0x240d3f(0x1a2)]),_0x1f3a5a={'unitId':_0x5e7302,'subUnitId':_0x945e2e,'shapeId':_0x213e68,'shapeType':_0x7e7e2,'shapeData':_0x20cf75},_0x5cb41a=_0x5b436c[_0x240d3f(0x24a)](),_0x1a3d2c=_0x5b436c[_0x240d3f(0x243)](),{x:_0x2f86b9,y:_0x59e63a}=_0x564500,_0x38f44a={'from':_0x1de326[_0x240d3f(0x1dd)](_0x2f86b9,_0x59e63a),'to':_0x1de326[_0x240d3f(0x1dd)](_0x2f86b9+_0x4afae7,_0x59e63a+_0x5139fd)},_0x170659={'unitId':_0x5e7302,'subUnitId':_0x945e2e,'drawingId':_0x213e68,'drawingType':t[_0x240d3f(0x1ba)]['DRAWING_SHAPE'],'sheetTransform':_0x38f44a,'transform':{'left':_0x2f86b9,'top':_0x59e63a,'width':_0x4afae7,'height':_0x5139fd},'data':{'shapeType':_0x7e7e2,'shapeData':_0x20cf75},'axisAlignSheetTransform':_0x38f44a,'allowTransform':!0x0};(0x0,e[_0x240d3f(0x1c4)])(_0x7e7e2)&&(_0x170659[_0x240d3f(0x223)][_0x240d3f(0x1ae)]=!0x1,_0x170659[_0x240d3f(0x223)][_0x240d3f(0x21b)]=!0x1,_0x170659[_0x240d3f(0x223)][_0x240d3f(0x238)]=!0x1,_0x170659['data'][_0x240d3f(0x218)]=!0x1,_0x170659[_0x240d3f(0x25a)]['rotateEnabled']=!0x1,_0x170659['transform']['resizeEnabled']=!0x1,_0x170659['transform'][_0x240d3f(0x218)]=!0x1);let {undo:_0x14c613,redo:_0x287822,objects:_0x518b71}=_0x1c1eae['getBatchUpdateOp']([_0x170659]),_0x296a2a=_0xee8926[_0x240d3f(0x1d5)]({'id':r[_0x240d3f(0x1be)]['id'],'params':{'unitId':_0x5e7302,'drawings':[_0x170659]}}),_0x2a9264=[...(_0x546d03=_0x296a2a['preRedos'])==null?[]:_0x546d03,{'id':r[_0x240d3f(0x25d)]['id'],'params':{'unitId':_0x5e7302,'subUnitId':_0x945e2e,'op':_0x287822,'objects':_0x518b71,'type':r[_0x240d3f(0x1f8)][_0x240d3f(0x1a1)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5e7302]},..._0x296a2a[_0x240d3f(0x1ad)],{'id':_['id'],'params':_0x1f3a5a}],_0x23e7e2=[...(_0x4a9aea=_0x296a2a['preUndos'])==null?[]:_0x4a9aea,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5e7302,'subUnitId':_0x945e2e,'op':_0x14c613,'objects':_0x518b71,'type':r[_0x240d3f(0x1f8)][_0x240d3f(0x1a1)]}},{'id':r[_0x240d3f(0x201)]['id'],'params':[_0x5e7302]},..._0x296a2a['undos'],{'id':_['id'],'params':{'unitId':_0x5e7302,'subUnitId':_0x945e2e,'shapeType':_0x5cb41a,'shapeId':_0x213e68,'shapeData':_0x1a3d2c}}];return(0x0,t['sequenceExecute'])(_0x2a9264,_0x3c3fb5)[_0x240d3f(0x254)]?(_0x66d439['pushUndoRedo']({'unitID':_0x5e7302,'undoMutations':_0x23e7e2,'redoMutations':_0x2a9264}),!0x0):!0x1;}},y={'type':t[_0x3c4862(0x206)][_0x3c4862(0x1b7)],'id':_0x3c4862(0x225),'handler':(_0x3b6c3b,_0x38f59d)=>{const _0x1f344b=_0x3c4862;var _0xf89224,_0x50e9ef;let _0x216f61=(0x0,n[_0x1f344b(0x253)])(_0x3b6c3b[_0x1f344b(0x236)](t[_0x1f344b(0x234)]),_0x38f59d);if(!_0x216f61)return!0x1;let _0x20e576=_0x3b6c3b[_0x1f344b(0x236)](n['SheetSkeletonService']),{unitId:_0x853053,subUnitId:_0x5844a7}=_0x216f61,_0x4e3020=_0x20e576[_0x1f344b(0x1d9)](_0x853053,_0x5844a7);if(!_0x4e3020)return!0x1;let _0x2b0430=_0x3b6c3b[_0x1f344b(0x236)](r[_0x1f344b(0x1a2)]),{shapeId:_0x510b5a,flipH:_0x59c826,flipV:_0x5d0392}=_0x38f59d,_0x1d918a=_0x2b0430[_0x1f344b(0x193)]({'unitId':_0x853053,'subUnitId':_0x5844a7,'drawingId':_0x510b5a});if(!_0x1d918a)return!0x1;let _0x19f849=_0x3b6c3b[_0x1f344b(0x236)](p)['getShapeModel'](_0x853053,_0x5844a7,_0x510b5a);if(!_0x19f849)return!0x1;let _0x3d8577=_0x3b6c3b[_0x1f344b(0x236)](t[_0x1f344b(0x22f)]),_0x5efefb=_0x3b6c3b[_0x1f344b(0x236)](t[_0x1f344b(0x216)]),_0x13dba2=_0x3b6c3b['get'](n['SheetInterceptorService']),_0x196692={..._0x1d918a[_0x1f344b(0x25a)]};_0x59c826!==void 0x0&&(_0x196692[_0x1f344b(0x1d0)]=!_0x196692['flipX']),_0x5d0392!==void 0x0&&(_0x196692[_0x1f344b(0x239)]=!_0x196692['flipY']);let _0x24418b=(0x0,r[_0x1f344b(0x1d8)])(_0x196692,_0x4e3020),_0x91bfe5=(0x0,r[_0x1f344b(0x1e4)])(_0x196692,_0x4e3020),_0x2baf56=_0x19f849[_0x1f344b(0x24a)](),_0x278125=_0x19f849[_0x1f344b(0x243)](),_0x5d0eab={'unitId':_0x853053,'subUnitId':_0x5844a7,'drawingId':_0x510b5a,'drawingType':t[_0x1f344b(0x1ba)]['DRAWING_SHAPE'],'sheetTransform':_0x24418b,'transform':_0x196692,'data':{'shapeType':_0x2baf56,'shapeData':_0x278125},'axisAlignSheetTransform':_0x91bfe5,'allowTransform':!0x0},{undo:_0xae019,redo:_0x5d4282,objects:_0x26f8c8}=_0x2b0430[_0x1f344b(0x1c9)]([_0x5d0eab]),_0x3bd948=_0x13dba2['onCommandExecute']({'id':r[_0x1f344b(0x1be)]['id'],'params':{'unitId':_0x853053,'drawings':[_0x5d0eab]}}),_0x19c87c=[...(_0xf89224=_0x3bd948[_0x1f344b(0x1a7)])==null?[]:_0xf89224,{'id':r[_0x1f344b(0x25d)]['id'],'params':{'unitId':_0x853053,'subUnitId':_0x5844a7,'op':_0x5d4282,'objects':_0x26f8c8,'type':r[_0x1f344b(0x1f8)][_0x1f344b(0x1a1)]}},{'id':r[_0x1f344b(0x201)]['id'],'params':[_0x853053]},..._0x3bd948[_0x1f344b(0x1ad)]],_0x25ed94=[...(_0x50e9ef=_0x3bd948[_0x1f344b(0x1ce)])==null?[]:_0x50e9ef,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x853053,'subUnitId':_0x5844a7,'op':_0xae019,'objects':_0x26f8c8,'type':r[_0x1f344b(0x1f8)]['UPDATE']}},{'id':r[_0x1f344b(0x201)]['id'],'params':[_0x853053]},..._0x3bd948[_0x1f344b(0x249)]];if((0x0,e[_0x1f344b(0x1c4)])(_0x2baf56)){let _0x358680=_0x19f849['getShapeRelation']();if(_0x358680){let _0x120a31={..._0x358680};_0x120a31[_0x1f344b(0x251)]=void 0x0,_0x120a31['to']=void 0x0,_0x19c87c[_0x1f344b(0x1b5)]({'id':_['id'],'params':{'unitId':_0x853053,'subUnitId':_0x5844a7,'shapeId':_0x510b5a,'shapeType':_0x2baf56,'shapeData':{'relation':_0x120a31}}}),_0x25ed94[_0x1f344b(0x1b5)]({'id':_['id'],'params':{'unitId':_0x853053,'subUnitId':_0x5844a7,'shapeId':_0x510b5a,'shapeType':_0x2baf56,'shapeData':{'relation':_0x358680}}});}}return(0x0,t[_0x1f344b(0x210)])(_0x19c87c,_0x3d8577)[_0x1f344b(0x254)]?(_0x5efefb[_0x1f344b(0x250)]({'unitID':_0x853053,'undoMutations':_0x25ed94,'redoMutations':_0x19c87c}),!0x0):!0x1;}},b={'type':t[_0x3c4862(0x206)]['COMMAND'],'id':'sheet.command.set-shape-rotate','handler':(_0x4b20da,_0x3a4343)=>{const _0x2f54a7=_0x3c4862;var _0x2bc851,_0x1cd5c6;let _0x4502c6=(0x0,n[_0x2f54a7(0x253)])(_0x4b20da[_0x2f54a7(0x236)](t[_0x2f54a7(0x234)]),_0x3a4343);if(!_0x4502c6)return!0x1;let _0x4fe6b2=_0x4b20da['get'](n[_0x2f54a7(0x1e3)]),{unitId:_0x4bb7d0,subUnitId:_0x467970}=_0x4502c6,_0x384e91=_0x4fe6b2[_0x2f54a7(0x1d9)](_0x4bb7d0,_0x467970);if(!_0x384e91)return!0x1;let _0x2c6a3e=_0x4b20da[_0x2f54a7(0x236)](r[_0x2f54a7(0x1a2)]),{shapeId:_0x42e032,rotate:_0x6f65df}=_0x3a4343,_0x2de254=_0x2c6a3e[_0x2f54a7(0x193)]({'unitId':_0x4bb7d0,'subUnitId':_0x467970,'drawingId':_0x42e032});if(!_0x2de254)return!0x1;let _0x199b01=_0x4b20da[_0x2f54a7(0x236)](p)['getShapeModel'](_0x4bb7d0,_0x467970,_0x42e032);if(!_0x199b01)return!0x1;let _0x85ffc4=_0x4b20da[_0x2f54a7(0x236)](t['ICommandService']),_0x1815eb=_0x4b20da[_0x2f54a7(0x236)](t['IUndoRedoService']),_0x4bb0e1=_0x4b20da['get'](n[_0x2f54a7(0x22d)]),_0x3bdd19={..._0x2de254['transform']};_0x6f65df!==void 0x0&&(_0x3bdd19[_0x2f54a7(0x1e6)]=(_0x3bdd19['angle']||0x0)+_0x6f65df);let _0x327aaa=(0x0,r['transformToDrawingPosition'])(_0x3bdd19,_0x384e91),_0x40f72c=(0x0,r[_0x2f54a7(0x1e4)])(_0x3bdd19,_0x384e91),_0x4d406e=_0x199b01[_0x2f54a7(0x24a)](),_0x6412c2=_0x199b01[_0x2f54a7(0x243)](),_0x4078a7={'unitId':_0x4bb7d0,'subUnitId':_0x467970,'drawingId':_0x42e032,'drawingType':t['DrawingTypeEnum'][_0x2f54a7(0x1fc)],'sheetTransform':_0x327aaa,'transform':_0x3bdd19,'data':{'shapeType':_0x4d406e,'shapeData':_0x6412c2},'axisAlignSheetTransform':_0x40f72c,'allowTransform':!0x0},{undo:_0x1d511b,redo:_0x2eecf6,objects:_0x45d1c8}=_0x2c6a3e[_0x2f54a7(0x1c9)]([_0x4078a7]),_0x5bac8d=_0x4bb0e1[_0x2f54a7(0x1d5)]({'id':r[_0x2f54a7(0x1be)]['id'],'params':{'unitId':_0x4bb7d0,'drawings':[_0x4078a7]}}),_0x39fd00=[...(_0x2bc851=_0x5bac8d[_0x2f54a7(0x1a7)])==null?[]:_0x2bc851,{'id':r[_0x2f54a7(0x25d)]['id'],'params':{'unitId':_0x4bb7d0,'subUnitId':_0x467970,'op':_0x2eecf6,'objects':_0x45d1c8,'type':r[_0x2f54a7(0x1f8)][_0x2f54a7(0x1a1)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4bb7d0]},..._0x5bac8d['redos']],_0x548e71=[...(_0x1cd5c6=_0x5bac8d['preUndos'])==null?[]:_0x1cd5c6,{'id':r[_0x2f54a7(0x25d)]['id'],'params':{'unitId':_0x4bb7d0,'subUnitId':_0x467970,'op':_0x1d511b,'objects':_0x45d1c8,'type':r[_0x2f54a7(0x1f8)][_0x2f54a7(0x1a1)]}},{'id':r[_0x2f54a7(0x201)]['id'],'params':[_0x4bb7d0]},..._0x5bac8d[_0x2f54a7(0x249)]];return(0x0,t[_0x2f54a7(0x210)])(_0x39fd00,_0x85ffc4)[_0x2f54a7(0x254)]?(_0x1815eb[_0x2f54a7(0x250)]({'unitID':_0x4bb7d0,'undoMutations':_0x548e71,'redoMutations':_0x39fd00}),!0x0):!0x1;}},x={'type':t['CommandType'][_0x3c4862(0x1b7)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x52417c,_0x5c040d)=>{const _0x58da6e=_0x3c4862;var _0x2aac3f;let _0x57aa0c=(0x0,n[_0x58da6e(0x253)])(_0x52417c[_0x58da6e(0x236)](t[_0x58da6e(0x234)]),_0x5c040d);if(!_0x57aa0c)return!0x1;let {unitId:_0x1a23c8,subUnitId:_0x24416e}=_0x57aa0c,{shapeId:_0x85caeb}=_0x5c040d,_0x225543=_0x52417c[_0x58da6e(0x236)](p)['getShapeModel'](_0x1a23c8,_0x24416e,_0x85caeb);if(!_0x225543)return!0x1;let _0x68122c=_0x225543[_0x58da6e(0x252)](),_0x144cac=(_0x2aac3f=_0x68122c==null?void 0x0:_0x68122c['isHorizontal'])==null?!0x0:_0x2aac3f,_0xcd9ffb=!_0x144cac,_0x38ad6c=_0x52417c[_0x58da6e(0x236)](t[_0x58da6e(0x22f)]),_0x3e241e=_0x52417c[_0x58da6e(0x236)](t[_0x58da6e(0x216)]),_0x34c17d={'unitId':_0x1a23c8,'subUnitId':_0x24416e,'shapeId':_0x85caeb,'shapeData':{'shapeText':{'isHorizontal':_0xcd9ffb}}},_0x54b873={'unitId':_0x1a23c8,'subUnitId':_0x24416e,'shapeId':_0x85caeb,'shapeData':{'shapeText':{'isHorizontal':_0x144cac}}},_0x3e3696=[{'id':_['id'],'params':_0x34c17d}],_0xd2ff87=[{'id':_['id'],'params':_0x54b873}];return(0x0,t['sequenceExecute'])(_0x3e3696,_0x38ad6c)['result']?(_0x3e241e[_0x58da6e(0x250)]({'unitID':_0x1a23c8,'undoMutations':_0xd2ff87,'redoMutations':_0x3e3696}),!0x0):!0x1;}},S={'type':t[_0x3c4862(0x206)][_0x3c4862(0x1b7)],'id':_0x3c4862(0x25b),'handler':(_0x52e5a9,_0x17a10c)=>{const _0x33b049=_0x3c4862;var _0x3f550f,_0x2d4249,_0x5928ed,_0x323cc9;let _0x4511d3=(0x0,n[_0x33b049(0x253)])(_0x52e5a9[_0x33b049(0x236)](t[_0x33b049(0x234)]),_0x17a10c);if(!_0x4511d3)return!0x1;let _0x426165=_0x52e5a9[_0x33b049(0x236)](n[_0x33b049(0x1e3)]),{unitId:_0x366ca1,subUnitId:_0x372864}=_0x4511d3,_0x278b38=_0x426165[_0x33b049(0x1d9)](_0x366ca1,_0x372864);if(!_0x278b38)return!0x1;let _0x2c5edf=_0x52e5a9[_0x33b049(0x236)](r[_0x33b049(0x1a2)]),{connectorShapeId:_0x700a7b,width:_0x40e849,height:_0x43faaf,left:_0x2d9174,top:_0x28114f,flipX:_0xac8dd2,flipY:_0x552c74,rotation:_0x111cda,oldAdjustValues:_0x42d481,newAdjustValues:_0x2ca933,oldLineType:_0xf4566e,newLineType:_0x49183d,oldRelation:_0x231437,newRelation:_0x27b8a9}=_0x17a10c,_0x5c13c4=_0x2c5edf[_0x33b049(0x193)]({'unitId':_0x366ca1,'subUnitId':_0x372864,'drawingId':_0x700a7b});if(!_0x5c13c4)return!0x1;let _0x3be040=_0x52e5a9[_0x33b049(0x236)](p)[_0x33b049(0x202)](_0x366ca1,_0x372864,_0x700a7b);if(!_0x3be040)return!0x1;let _0x4d0652=_0x52e5a9[_0x33b049(0x236)](t[_0x33b049(0x22f)]),_0x354fd8=_0x52e5a9['get'](t[_0x33b049(0x216)]),_0x403fd4=_0x52e5a9[_0x33b049(0x236)](n['SheetInterceptorService']),_0x35b62b={..._0x5c13c4[_0x33b049(0x25a)],'width':_0x40e849,'height':_0x43faaf,'left':_0x2d9174,'top':_0x28114f,'flipX':_0xac8dd2,'flipY':_0x552c74,'angle':(_0x3f550f=_0x111cda==null?(_0x2d4249=_0x5c13c4['transform'])==null?void 0x0:_0x2d4249[_0x33b049(0x1e6)]:_0x111cda)==null?0x0:_0x3f550f},_0x16710b=(0x0,r[_0x33b049(0x1d8)])(_0x35b62b,_0x278b38),_0x218f69=(0x0,r[_0x33b049(0x1e4)])(_0x35b62b,_0x278b38),_0x38b79a=_0x3be040[_0x33b049(0x24a)](),_0x5948fb=_0x3be040[_0x33b049(0x243)](),_0x1fbfbe={'unitId':_0x366ca1,'subUnitId':_0x372864,'drawingId':_0x700a7b,'drawingType':t[_0x33b049(0x1ba)][_0x33b049(0x1fc)],'sheetTransform':_0x16710b,'transform':_0x35b62b,'data':{'shapeType':_0x49183d||_0xf4566e||_0x38b79a,'shapeData':{..._0x5948fb,'adjustValues':_0x2ca933||_0x42d481||(_0x5948fb==null?void 0x0:_0x5948fb[_0x33b049(0x247)]),'relation':_0x27b8a9||_0x231437||(_0x5948fb==null?void 0x0:_0x5948fb[_0x33b049(0x1f7)])}},'axisAlignSheetTransform':_0x218f69,'allowTransform':!0x0},{undo:_0xb76041,redo:_0x1d651a,objects:_0x26079e}=_0x2c5edf[_0x33b049(0x1c9)]([_0x1fbfbe]),_0x9df34=_0x403fd4[_0x33b049(0x1d5)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x366ca1,'drawings':[_0x1fbfbe]}}),_0xd7479e=[...(_0x5928ed=_0x9df34[_0x33b049(0x1a7)])==null?[]:_0x5928ed,{'id':r[_0x33b049(0x25d)]['id'],'params':{'unitId':_0x366ca1,'subUnitId':_0x372864,'op':_0x1d651a,'objects':_0x26079e,'type':r['DrawingApplyType']['UPDATE']}},{'id':r[_0x33b049(0x201)]['id'],'params':[_0x366ca1]},..._0x9df34[_0x33b049(0x1ad)],{'id':_['id'],'params':{'unitId':_0x366ca1,'subUnitId':_0x372864,'shapeId':_0x700a7b,'shapeType':_0x49183d,'shapeData':{'adjustValues':_0x2ca933,'relation':_0x27b8a9}}}],_0x47b5d8=[...(_0x323cc9=_0x9df34[_0x33b049(0x1ce)])==null?[]:_0x323cc9,{'id':r[_0x33b049(0x25d)]['id'],'params':{'unitId':_0x366ca1,'subUnitId':_0x372864,'op':_0xb76041,'objects':_0x26079e,'type':r[_0x33b049(0x1f8)][_0x33b049(0x1a1)]}},{'id':r[_0x33b049(0x201)]['id'],'params':[_0x366ca1]},..._0x9df34[_0x33b049(0x249)],{'id':_['id'],'params':{'unitId':_0x366ca1,'subUnitId':_0x372864,'shapeId':_0x700a7b,'shapeType':_0x38b79a,'shapeData':{..._0x5948fb,'adjustValues':_0x42d481||(_0x5948fb==null?void 0x0:_0x5948fb[_0x33b049(0x247)]),'relation':_0x231437||(_0x5948fb==null?void 0x0:_0x5948fb[_0x33b049(0x1f7)])}}}];return(0x0,t['sequenceExecute'])(_0xd7479e,_0x4d0652)[_0x33b049(0x254)]?(_0x354fd8[_0x33b049(0x250)]({'unitID':_0x366ca1,'undoMutations':_0x47b5d8,'redoMutations':_0xd7479e}),!0x0):!0x1;}},C={'type':t['CommandType']['COMMAND'],'id':_0x3c4862(0x1ec),'handler':(_0x35ff17,_0x40e512)=>{const _0x2aef63=_0x3c4862;var _0x36d85a,_0x3d4168;let _0x1780bf=(0x0,n[_0x2aef63(0x253)])(_0x35ff17['get'](t['IUniverInstanceService']),_0x40e512);if(!_0x1780bf)return!0x1;let _0x1942d0=_0x35ff17[_0x2aef63(0x236)](n[_0x2aef63(0x1e3)]),{unitId:_0x38e594,subUnitId:_0x56b873}=_0x1780bf,_0x1d5628=_0x1942d0['getSkeleton'](_0x38e594,_0x56b873);if(!_0x1d5628)return!0x1;let _0xbed194=_0x35ff17[_0x2aef63(0x236)](r[_0x2aef63(0x1a2)]),{shapeId:_0x2d272d,width:_0x8e8fb2,height:_0x40f802,left:_0x40ea59,top:_0x53d1e4,flipX:_0x1160d1,flipY:_0x420e3d,angle:_0x58d2bf,oldAdjustValues:_0x318db1,newAdjustValues:_0x43b35f,oldLineType:_0x17383e,newLineType:_0x29bb61}=_0x40e512,_0x492371=_0xbed194[_0x2aef63(0x193)]({'unitId':_0x38e594,'subUnitId':_0x56b873,'drawingId':_0x2d272d});if(!_0x492371)return!0x1;let _0x3839f6=_0x35ff17[_0x2aef63(0x236)](p)[_0x2aef63(0x202)](_0x38e594,_0x56b873,_0x2d272d);if(!_0x3839f6)return!0x1;let _0x3d9564=_0x35ff17[_0x2aef63(0x236)](t[_0x2aef63(0x22f)]),_0x125bac=_0x35ff17[_0x2aef63(0x236)](t[_0x2aef63(0x216)]),_0x34e190=_0x35ff17[_0x2aef63(0x236)](n['SheetInterceptorService']),_0xd06d8={..._0x492371[_0x2aef63(0x25a)],'width':_0x8e8fb2,'height':_0x40f802,'left':_0x40ea59,'top':_0x53d1e4,'flipX':_0x1160d1,'flipY':_0x420e3d,'angle':_0x58d2bf},_0x5e6bdd=(0x0,r['transformToDrawingPosition'])(_0xd06d8,_0x1d5628),_0x477787=(0x0,r[_0x2aef63(0x1e4)])(_0xd06d8,_0x1d5628),_0x41e18a=_0x3839f6[_0x2aef63(0x24a)](),_0x48fb22=_0x3839f6[_0x2aef63(0x243)](),_0x5dfa27={'unitId':_0x38e594,'subUnitId':_0x56b873,'drawingId':_0x2d272d,'drawingType':t['DrawingTypeEnum'][_0x2aef63(0x1fc)],'sheetTransform':_0x5e6bdd,'transform':_0xd06d8,'data':{'shapeType':_0x29bb61||_0x17383e||_0x41e18a,'shapeData':{..._0x48fb22,'adjustValues':_0x43b35f||_0x318db1||(_0x48fb22==null?void 0x0:_0x48fb22['adjustValues'])}},'axisAlignSheetTransform':_0x477787,'allowTransform':!0x0},{undo:_0x3e89af,redo:_0x20a837,objects:_0x23bae6}=_0xbed194['getBatchUpdateOp']([_0x5dfa27]),_0x5bc862=_0x34e190[_0x2aef63(0x1d5)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x38e594,'drawings':[_0x5dfa27]}}),_0x13f3e6=[...(_0x36d85a=_0x5bc862[_0x2aef63(0x1a7)])==null?[]:_0x36d85a,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x38e594,'subUnitId':_0x56b873,'op':_0x20a837,'objects':_0x23bae6,'type':r[_0x2aef63(0x1f8)][_0x2aef63(0x1a1)]}},{'id':r[_0x2aef63(0x201)]['id'],'params':[_0x38e594]},..._0x5bc862[_0x2aef63(0x1ad)],{'id':_['id'],'params':{'unitId':_0x38e594,'subUnitId':_0x56b873,'shapeId':_0x2d272d,'shapeType':_0x29bb61,'shapeData':{'adjustValues':_0x43b35f}}}],_0x499b05=[...(_0x3d4168=_0x5bc862[_0x2aef63(0x1ce)])==null?[]:_0x3d4168,{'id':r[_0x2aef63(0x25d)]['id'],'params':{'unitId':_0x38e594,'subUnitId':_0x56b873,'op':_0x3e89af,'objects':_0x23bae6,'type':r[_0x2aef63(0x1f8)][_0x2aef63(0x1a1)]}},{'id':r[_0x2aef63(0x201)]['id'],'params':[_0x38e594]},..._0x5bc862[_0x2aef63(0x249)],{'id':_['id'],'params':{'unitId':_0x38e594,'subUnitId':_0x56b873,'shapeId':_0x2d272d,'shapeType':_0x41e18a,'shapeData':{..._0x48fb22,'adjustValues':_0x318db1||(_0x48fb22==null?void 0x0:_0x48fb22[_0x2aef63(0x247)])}}}];return(0x0,t[_0x2aef63(0x210)])(_0x13f3e6,_0x3d9564)[_0x2aef63(0x254)]?(_0x125bac[_0x2aef63(0x250)]({'unitID':_0x38e594,'undoMutations':_0x499b05,'redoMutations':_0x13f3e6}),!0x0):!0x1;}},w={'id':'sheet.mutation.update-shape-type','type':t[_0x3c4862(0x206)][_0x3c4862(0x1df)],'handler':(_0x1888be,_0x29906d)=>{const _0x3913d1=_0x3c4862;let {unitId:_0x5dc7cb,subUnitId:_0x2a42d3,shapeType:_0x4e9ec2,shapeId:_0x377831,shapeData:_0x5a5117}=_0x29906d,_0x294f84=_0x1888be[_0x3913d1(0x236)](p)[_0x3913d1(0x202)](_0x5dc7cb,_0x2a42d3,_0x377831);return _0x294f84&&(_0x294f84[_0x3913d1(0x1b6)](_0x4e9ec2),_0x5a5117&&(_0x294f84==null||_0x294f84[_0x3913d1(0x1c3)](_0x5a5117))),!0x0;}},T={'id':_0x3c4862(0x1dc),'type':t['CommandType'][_0x3c4862(0x1b7)],'handler':(_0x2319bb,_0x4c26e8)=>{const _0x4d55f9=_0x3c4862;if(!_0x4c26e8)return!0x1;let _0x234635=_0x2319bb[_0x4d55f9(0x236)](t[_0x4d55f9(0x22f)]),_0x827987=_0x2319bb[_0x4d55f9(0x236)](p),_0x325f96=_0x2319bb[_0x4d55f9(0x236)](t['IUndoRedoService']),_0x19d4a4=[],_0x166b69=[],{unitId:_0x58ee79,subUnitId:_0x2c67e6,shapeId:_0x45fd1a,shapeType:_0x1ea543,shapeData:_0x5515f8}=_0x4c26e8,_0x481d5b=_0x827987[_0x4d55f9(0x202)](_0x58ee79,_0x2c67e6,_0x45fd1a);if(_0x481d5b){let _0x3553db=_0x481d5b[_0x4d55f9(0x24a)](),_0x29e0dc=Object[_0x4d55f9(0x19c)]({},_0x481d5b['getShapeData']()),_0x1ffd30={'unitId':_0x58ee79,'subUnitId':_0x2c67e6,'shapeId':_0x45fd1a,'shapeType':_0x1ea543,'shapeData':_0x5515f8},_0x4e8fc1={'unitId':_0x58ee79,'subUnitId':_0x2c67e6,'shapeId':_0x45fd1a,'shapeType':_0x3553db,'shapeData':_0x29e0dc};return _0x19d4a4[_0x4d55f9(0x1b5)]({'id':w['id'],'params':_0x1ffd30}),_0x166b69[_0x4d55f9(0x1b5)]({'id':w['id'],'params':_0x4e8fc1}),_0x19d4a4[_0x4d55f9(0x23f)](_0x5e3332=>_0x234635['syncExecuteCommand'](_0x5e3332['id'],_0x5e3332['params']))&&_0x325f96['pushUndoRedo']({'unitID':_0x58ee79,'redoMutations':[..._0x19d4a4],'undoMutations':[..._0x166b69]}),!0x0;}return!0x1;}};var E='@univerjs-pro/sheets-shape',D=_0x3c4862(0x22a);const O={};let k=class extends t[_0x3c4862(0x230)]{constructor(_0x323ebd,_0x4f0f83,_0xfb08d4,_0x29c889,_0x35f626){const _0x137cde=_0x3c4862;super(),this['_commandService']=_0x323ebd,this[_0x137cde(0x19a)]=_0x4f0f83,this[_0x137cde(0x21e)]=_0xfb08d4,this[_0x137cde(0x1a3)]=_0x29c889,this[_0x137cde(0x205)]=_0x35f626,this[_0x137cde(0x208)](),this[_0x137cde(0x1da)]();}[_0x3c4862(0x208)](){const _0x18e5c9=_0x3c4862;[g,v,y,b,x,S,C,m,h,w,_][_0x18e5c9(0x246)](_0x4cc5b4=>this[_0x18e5c9(0x220)](this['_commandService'][_0x18e5c9(0x1e2)](_0x4cc5b4)));}['_initCommandInterceptor'](){const _0x3f334f=_0x3c4862;this[_0x3f334f(0x220)](this[_0x3f334f(0x19a)][_0x3f334f(0x224)]({'getMutations':_0x37900d=>{const _0xbf75d7=_0x3f334f;if(_0x37900d['id']===r[_0xbf75d7(0x1f3)]['id']){let {drawings:_0x5d48b1}=_0x37900d['params'],_0x5ee0ea=_0x5d48b1[_0xbf75d7(0x1f6)](_0x3b4209=>_0x3b4209[_0xbf75d7(0x1ef)]===t[_0xbf75d7(0x1ba)][_0xbf75d7(0x1fc)]);if(_0x5ee0ea[_0xbf75d7(0x213)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x29522=[],_0x1c7674=[];return _0x5ee0ea[_0xbf75d7(0x246)](_0x4c1227=>{const _0x36fcc4=_0xbf75d7;let {unitId:_0x23e91a,subUnitId:_0x1123c5,drawingId:_0x2fbcab}=_0x4c1227,_0x51322e=this[_0x36fcc4(0x1a3)]['getShapeModel'](_0x23e91a,_0x1123c5,_0x2fbcab);if(!_0x51322e)throw TypeError(_0x36fcc4(0x1d1)+_0x51322e);_0x29522[_0x36fcc4(0x1b5)]({'id':h['id'],'params':{'unitId':_0x23e91a,'subUnitId':_0x1123c5,'shapeId':_0x2fbcab}}),_0x1c7674[_0x36fcc4(0x1b5)]({'id':m['id'],'params':{'unitId':_0x23e91a,'subUnitId':_0x1123c5,'shapeId':_0x2fbcab,'shapeType':_0x51322e[_0x36fcc4(0x24a)](),'shapeData':_0x51322e[_0x36fcc4(0x243)]()}});let _0x2fd589=this['_sheetsShapeService']['getBasicShapeRelation'](_0x23e91a,_0x1123c5,_0x2fbcab);if(_0x2fd589)for(let _0x3173ab of _0x2fd589){let _0x37e9e9=_0x3173ab[_0x36fcc4(0x1b3)],_0x4e3472=_0x3173ab['isFrom'],_0x131a44=_0x4e3472?{'from':void 0x0}:{'to':void 0x0},_0x19943e=_0x4e3472?{'from':{'shapeId':_0x3173ab[_0x36fcc4(0x19b)],'cxnIndex':_0x3173ab['cxnIndex']}}:{'to':{'shapeId':_0x3173ab['shapeId'],'cxnIndex':_0x3173ab[_0x36fcc4(0x1a4)]}};_0x29522[_0x36fcc4(0x1b5)]({'id':_['id'],'params':{'unitId':_0x23e91a,'subUnitId':_0x1123c5,'shapeId':_0x37e9e9,'shapeData':{'relation':_0x131a44}}}),_0x1c7674[_0x36fcc4(0x1b5)]({'id':_['id'],'params':{'unitId':_0x23e91a,'subUnitId':_0x1123c5,'shapeId':_0x37e9e9,'shapeData':{'relation':_0x19943e}}});}}),{'preRedos':_0x29522,'redos':[],'preUndos':[],'undos':_0x1c7674};}if(_0x37900d['id']===r['SetSheetDrawingCommand']['id']){let {drawings:_0x23b419}=_0x37900d[_0xbf75d7(0x21a)],_0x427ebd=_0x23b419['filter'](_0x31ac16=>_0x31ac16[_0xbf75d7(0x1ef)]===t[_0xbf75d7(0x1ba)][_0xbf75d7(0x1fc)]);if(_0x427ebd[_0xbf75d7(0x213)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2d9473=[],_0x168f49=[];for(let _0x15ded5 of _0x427ebd){let {unitId:_0x32b116,subUnitId:_0x5d23f1,drawingId:_0x4d993c,transform:_0x4c069a}=_0x15ded5;if(!_0x32b116||!_0x5d23f1||!_0x4d993c||!_0x4c069a)continue;let _0x2faadd=this['_sheetsShapeService'][_0xbf75d7(0x202)](_0x32b116,_0x5d23f1,_0x4d993c);if(!_0x2faadd)throw TypeError(_0xbf75d7(0x1d1)+_0x2faadd);if((0x0,e[_0xbf75d7(0x1c4)])(_0x2faadd['getShapeType']())){let _0x10ea0a=this[_0xbf75d7(0x1a3)][_0xbf75d7(0x1ea)](_0x32b116,_0x5d23f1,_0x4d993c);_0x10ea0a&&(_0x2d9473['push']({'id':_['id'],'params':{'unitId':_0x32b116,'subUnitId':_0x5d23f1,'shapeId':_0x4d993c,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x168f49[_0xbf75d7(0x1b5)]({'id':_['id'],'params':{'unitId':_0x32b116,'subUnitId':_0x5d23f1,'shapeId':_0x4d993c,'shapeData':{'relation':_0x10ea0a}}}));}else{let _0xc63b0a=this[_0xbf75d7(0x1a3)][_0xbf75d7(0x24f)](_0x32b116,_0x5d23f1,_0x4d993c);if(_0xc63b0a&&_0xc63b0a[_0xbf75d7(0x213)]>0x0)for(let _0x59be87 of _0xc63b0a){let _0x36481a=_0x59be87[_0xbf75d7(0x1b3)],_0x4a1eea=_0x59be87['isFrom'],_0x4b5712=this[_0xbf75d7(0x1a3)][_0xbf75d7(0x202)](_0x32b116,_0x5d23f1,_0x36481a);if(!_0x4b5712)continue;let _0x5956fb=_0x4b5712['getStartConnectInfo'](),_0x36092d=_0x4b5712['getEndConnectInfo']();_0x5956fb&&_0x36092d?this['_addLineRerouteUpdates'](_0x32b116,_0x5d23f1,_0x36481a,_0x4b5712,_0x5956fb,_0x36092d,_0x2d9473,_0x168f49,_0x4d993c,_0x4c069a):this[_0xbf75d7(0x1b2)](_0x32b116,_0x5d23f1,_0x36481a,_0x4b5712,_0x4a1eea?_0x5956fb:_0x36092d,_0x4a1eea,_0x2d9473,_0x168f49,_0x4d993c,_0x4c069a);}}}return{'preRedos':[],'redos':_0x2d9473,'preUndos':_0x168f49,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3c4862(0x1c2)](_0xdc50a4,_0x175c5f,_0x38c3c5,_0x18c98f,_0x57fb53){const _0x441240=_0x3c4862;if(!_0x175c5f||!_0x38c3c5)return null;let {shapeId:_0x2d6e19,cxnIndex:_0x43354d}=_0xdc50a4,_0x1fe16f=this[_0x441240(0x1a3)][_0x441240(0x202)](_0x175c5f,_0x38c3c5,_0x2d6e19);if(!_0x1fe16f)return null;let _0x500227=this[_0x441240(0x205)][_0x441240(0x193)]({'unitId':_0x175c5f,'subUnitId':_0x38c3c5,'drawingId':_0x2d6e19});if(!(_0x500227!=null&&_0x500227[_0x441240(0x25a)]))return null;let {left:_0x1c7e71=0x0,top:_0x5a5f03=0x0,width:_0x528c6f=0x0,height:_0x2b4225=0x0,flipX:_0x33ffb6=!0x1,flipY:_0xb357a9=!0x1,angle:_0x184950}=_0x500227['transform'];if(_0x57fb53&&_0x18c98f===_0x2d6e19){var _0x42d953,_0x2497f,_0x1be01c,_0x53470f,_0x164deb,_0x153e92,_0x51b438;_0x1c7e71=(_0x42d953=_0x57fb53[_0x441240(0x1fe)])==null?_0x1c7e71:_0x42d953,_0x5a5f03=(_0x2497f=_0x57fb53[_0x441240(0x1f4)])==null?_0x5a5f03:_0x2497f,_0x528c6f=(_0x1be01c=_0x57fb53['width'])==null?_0x528c6f:_0x1be01c,_0x2b4225=(_0x53470f=_0x57fb53['height'])==null?_0x2b4225:_0x53470f,_0x33ffb6=(_0x164deb=_0x57fb53[_0x441240(0x1d0)])==null?_0x33ffb6:_0x164deb,_0xb357a9=(_0x153e92=_0x57fb53[_0x441240(0x239)])==null?_0xb357a9:_0x153e92,_0x184950=(_0x51b438=_0x57fb53[_0x441240(0x1e6)])==null?_0x184950:_0x51b438;}_0x1fe16f[_0x441240(0x215)]({'width':_0x528c6f,'height':_0x2b4225});let _0x10a653=_0x1fe16f['getConnectionSiteList']()[_0x441240(0x24d)](_0x169b6a=>_0x169b6a['index']===_0x43354d);if(!_0x10a653)return null;let _0x886f07=_0x33ffb6?_0x528c6f-_0x10a653['x']:_0x10a653['x'],_0x3405f2=_0xb357a9?_0x2b4225-_0x10a653['y']:_0x10a653['y'];if(_0x184950!==0x0&&_0x184950!=null){let _0x469ada=_0x184950*Math['PI']/0xb4,_0x3178a6=Math['cos'](_0x469ada),_0x5e8d25=Math['sin'](_0x469ada),_0x1caccb=_0x528c6f/0x2,_0xf49634=_0x2b4225/0x2,_0x5de5d7=_0x886f07-_0x1caccb,_0x49ebcb=_0x3405f2-_0xf49634;_0x886f07=_0x1caccb+_0x5de5d7*_0x3178a6-_0x49ebcb*_0x5e8d25,_0x3405f2=_0xf49634+_0x5de5d7*_0x5e8d25+_0x49ebcb*_0x3178a6;}_0x886f07+=_0x1c7e71,_0x3405f2+=_0x5a5f03;let _0x297b52=_0x10a653[_0x441240(0x199)]/0xea60;_0x33ffb6&&(_0x297b52=0xb4-_0x297b52),_0xb357a9&&(_0x297b52=-_0x297b52),_0x297b52+=_0x184950||0x0,_0x297b52=(_0x297b52%0x168+0x168)%0x168;let _0x5f911=(0x0,e[_0x441240(0x1ac)])({'left':_0x1c7e71,'top':_0x5a5f03,'width':_0x528c6f,'height':_0x2b4225},_0x184950||0x0);return{'point':{'x':_0x886f07,'y':_0x3405f2},'angle':_0x297b52,'bounds':_0x5f911};}[_0x3c4862(0x1af)](_0x36b870,_0x2be559,_0x4f85ae,_0x373ebd,_0x174503,_0x2c5f17,_0x2799f8,_0x57d3d0,_0x2ffbf8,_0x5f2ca9){const _0x1f25fe=_0x3c4862;let _0x5a1c47=this[_0x1f25fe(0x21e)][_0x1f25fe(0x1d9)](_0x36b870,_0x2be559);if(!_0x5a1c47)return;let _0x4d72b2=_0x373ebd['getShapeRelation'](),_0x5cd9ed=_0x373ebd[_0x1f25fe(0x1cd)](),_0x88518b={},_0x4de4af={};_0x5cd9ed[_0x1f25fe(0x246)](_0x1d3456=>{const _0x1183a0=_0x1f25fe;let _0x4d49e8=_0x373ebd[_0x1183a0(0x1e9)](_0x1d3456);_0x4de4af[_0x1d3456]=_0x4d49e8==null?0x0:_0x4d49e8;});let _0xe6717d=this['_getConnectPointInfo'](_0x174503,_0x36b870,_0x2be559,_0x2ffbf8,_0x5f2ca9),_0xdebbe1=this[_0x1f25fe(0x1c2)](_0x2c5f17,_0x36b870,_0x2be559,_0x2ffbf8,_0x5f2ca9);if(_0xe6717d&&_0xdebbe1){let _0x1b8c51=_0x373ebd['getShapeType'](),_0x3aa49e=(0x0,e[_0x1f25fe(0x1d2)])(_0xe6717d,_0xdebbe1,_0x1b8c51),_0x5e4efb=_0x1b8c51;if(_0x3aa49e){let _0x1fc97c=(0x0,e[_0x1f25fe(0x1e0)])(_0x3aa49e,_0x373ebd[_0x1f25fe(0x24a)]()),_0x43f6f8=this['_drawingManagerService'][_0x1f25fe(0x23d)](_0x36b870,_0x2be559);if(_0x43f6f8&&_0x43f6f8[_0x4f85ae]){let _0x52ff3a=_0x43f6f8[_0x4f85ae];_0x5e4efb=_0x1fc97c[_0x1f25fe(0x25f)];for(let [_0x2223fa,_0x2ba88e]of Object[_0x1f25fe(0x1ed)](_0x1fc97c['adjustValues']))_0x88518b[_0x2223fa]=_0x2ba88e;let _0x492bca={..._0x52ff3a[_0x1f25fe(0x25a)],'width':_0x1fc97c['worldRect']['width'],'height':_0x1fc97c['worldRect'][_0x1f25fe(0x1de)],'left':_0x1fc97c[_0x1f25fe(0x1c1)][_0x1f25fe(0x1fe)],'top':_0x1fc97c['worldRect'][_0x1f25fe(0x1f4)],'flipX':_0x1fc97c[_0x1f25fe(0x1c1)]['flipX'],'flipY':_0x1fc97c[_0x1f25fe(0x1c1)][_0x1f25fe(0x239)],'angle':_0x1fc97c[_0x1f25fe(0x214)]},_0x50668b=(0x0,r[_0x1f25fe(0x1d8)])(_0x492bca,_0x5a1c47),_0x3d974c=(0x0,r[_0x1f25fe(0x1e4)])(_0x492bca,_0x5a1c47),_0x4d2c54={'unitId':_0x36b870,'subUnitId':_0x2be559,'drawingType':t[_0x1f25fe(0x1ba)][_0x1f25fe(0x1fc)],'drawingId':_0x4f85ae,'transform':_0x492bca,'sheetTransform':_0x50668b,'axisAlignSheetTransform':_0x3d974c},{unitId:_0x5b2ecf,subUnitId:_0x12279e,undo:_0x2d4ff9,redo:_0x5c568c,objects:_0x22ed92}=this[_0x1f25fe(0x205)]['getBatchUpdateOp']([_0x4d2c54]);_0x2799f8[_0x1f25fe(0x1b5)]({'id':r[_0x1f25fe(0x25d)]['id'],'params':{'unitId':_0x5b2ecf,'subUnitId':_0x12279e,'op':_0x5c568c,'objects':_0x22ed92,'type':r[_0x1f25fe(0x1f8)][_0x1f25fe(0x1a1)]}}),_0x57d3d0[_0x1f25fe(0x1b5)]({'id':r[_0x1f25fe(0x25d)]['id'],'params':{'unitId':_0x5b2ecf,'subUnitId':_0x12279e,'op':_0x2d4ff9,'objects':_0x22ed92,'type':r[_0x1f25fe(0x1f8)][_0x1f25fe(0x1a1)]}});}_0x373ebd['removeLinePoints']();}_0x2799f8[_0x1f25fe(0x1b5)]({'id':_['id'],'params':{'unitId':_0x36b870,'subUnitId':_0x2be559,'shapeId':_0x4f85ae,'shapeType':_0x5e4efb,'shapeData':{'adjustValues':_0x88518b,'relation':_0x4d72b2}}}),_0x57d3d0[_0x1f25fe(0x1b5)]({'id':_['id'],'params':{'unitId':_0x36b870,'subUnitId':_0x2be559,'shapeId':_0x4f85ae,'shapeType':_0x1b8c51,'shapeData':{'adjustValues':_0x4de4af,'relation':_0x4d72b2}}});}}[_0x3c4862(0x1b2)](_0x2527b5,_0x267fd9,_0x42d5e5,_0x5358a0,_0x3d91f6,_0x5c880e,_0x1d1430,_0x5670dd,_0x220686,_0x8426e0){const _0x289420=_0x3c4862;var _0xe00d7;if(!_0x3d91f6)return;let _0x4c485e=this[_0x289420(0x21e)][_0x289420(0x1d9)](_0x2527b5,_0x267fd9);if(!_0x4c485e)return;let _0x102e8a=(_0xe00d7=this['_drawingManagerService'][_0x289420(0x193)]({'unitId':_0x2527b5,'subUnitId':_0x267fd9,'drawingId':_0x220686}))==null?void 0x0:_0xe00d7[_0x289420(0x25a)];if(!_0x102e8a)return;let _0x45a3b9=_0x102e8a[_0x289420(0x1fe)]!==_0x8426e0[_0x289420(0x1fe)]||_0x102e8a['top']!==_0x8426e0[_0x289420(0x1f4)],_0x3a6408=_0x102e8a[_0x289420(0x200)]!==_0x8426e0['width']||_0x102e8a[_0x289420(0x1de)]!==_0x8426e0[_0x289420(0x1de)],_0x54c2ea=_0x102e8a[_0x289420(0x1d0)]!==_0x8426e0[_0x289420(0x1d0)]||_0x102e8a[_0x289420(0x239)]!==_0x8426e0[_0x289420(0x239)],_0x54d13b=_0x102e8a['angle']!==_0x8426e0[_0x289420(0x1e6)];if(_0x45a3b9&&!_0x3a6408&&!_0x54c2ea&&!_0x54d13b){var _0x1b3851,_0x26e5bc,_0x4e31cc,_0x39ad29;let _0x49ac97=((_0x1b3851=_0x8426e0['left'])==null?0x0:_0x1b3851)-((_0x26e5bc=_0x102e8a[_0x289420(0x1fe)])==null?0x0:_0x26e5bc),_0x44d82c=((_0x4e31cc=_0x8426e0[_0x289420(0x1f4)])==null?0x0:_0x4e31cc)-((_0x39ad29=_0x102e8a['top'])==null?0x0:_0x39ad29),_0x43fd9c=this[_0x289420(0x205)]['getDrawingData'](_0x2527b5,_0x267fd9);if(_0x43fd9c&&_0x43fd9c[_0x42d5e5]){var _0x15604d,_0x26c99a,_0x379f74,_0x2cb631;let _0xf2aec0=_0x43fd9c[_0x42d5e5],_0x491140={..._0xf2aec0[_0x289420(0x25a)],'left':((_0x15604d=(_0x26c99a=_0xf2aec0['transform'])==null?void 0x0:_0x26c99a['left'])==null?0x0:_0x15604d)+_0x49ac97,'top':((_0x379f74=(_0x2cb631=_0xf2aec0['transform'])==null?void 0x0:_0x2cb631['top'])==null?0x0:_0x379f74)+_0x44d82c},_0x33aedd=(0x0,r['transformToDrawingPosition'])(_0x491140,_0x4c485e),_0x5cee4b=(0x0,r['transformToAxisAlignPosition'])(_0x491140,_0x4c485e),_0x43e725={'unitId':_0x2527b5,'subUnitId':_0x267fd9,'drawingType':t[_0x289420(0x1ba)][_0x289420(0x1fc)],'drawingId':_0x42d5e5,'transform':_0x491140,'sheetTransform':_0x33aedd,'axisAlignSheetTransform':_0x5cee4b},{unitId:_0x1a2af5,subUnitId:_0x3840b1,undo:_0x37472e,redo:_0x335dd7,objects:_0x209fb8}=this[_0x289420(0x205)][_0x289420(0x1c9)]([_0x43e725]);_0x1d1430['push']({'id':r[_0x289420(0x25d)]['id'],'params':{'unitId':_0x1a2af5,'subUnitId':_0x3840b1,'op':_0x335dd7,'objects':_0x209fb8,'type':r[_0x289420(0x1f8)][_0x289420(0x1a1)]}}),_0x5670dd[_0x289420(0x1b5)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1a2af5,'subUnitId':_0x3840b1,'op':_0x37472e,'objects':_0x209fb8,'type':r[_0x289420(0x1f8)][_0x289420(0x1a1)]}});}}else{let _0x49d185=_0x5358a0['getStartConnectInfo'](),_0x1ce05b=_0x5358a0[_0x289420(0x221)]();this['_addLineRerouteUpdates'](_0x2527b5,_0x267fd9,_0x42d5e5,_0x5358a0,_0x49d185,_0x1ce05b,_0x1d1430,_0x5670dd,_0x220686,_0x8426e0);}}};k=f([d(0x0,t[_0x3c4862(0x22f)]),d(0x1,(0x0,t[_0x3c4862(0x1ff)])(n[_0x3c4862(0x22d)])),d(0x2,(0x0,t[_0x3c4862(0x1ff)])(n[_0x3c4862(0x1e3)])),d(0x3,(0x0,t[_0x3c4862(0x1ff)])(p)),d(0x4,(0x0,t[_0x3c4862(0x1ff)])(a[_0x3c4862(0x1c7)]))],k);let A=class extends t[_0x3c4862(0x1b1)]{constructor(_0x1110b4=O,_0x52d1cc,_0x57422b,_0x3591c8){const _0x272f8c=_0x3c4862;super(),this['_config']=_0x1110b4,this[_0x272f8c(0x23b)]=_0x52d1cc,this['_commandService']=_0x57422b,this[_0x272f8c(0x1fd)]=_0x3591c8;let {..._0x151ccb}=(0x0,t[_0x272f8c(0x1bb)])({},O,this[_0x272f8c(0x192)]);this[_0x272f8c(0x1fd)][_0x272f8c(0x24c)](_0x272f8c(0x226),_0x151ccb);}[_0x3c4862(0x1a8)](){const _0x1ae0e2=_0x3c4862;let _0x5679d3=this[_0x1ae0e2(0x23b)];[[u],[p],[k]][_0x1ae0e2(0x246)](_0x2d6a92=>_0x5679d3[_0x1ae0e2(0x1b8)](_0x2d6a92)),(0x0,t[_0x1ae0e2(0x197)])(_0x5679d3,[[p],[k]]);}};l(A,_0x3c4862(0x231),t[_0x3c4862(0x257)]['UNIVER_SHEET']),l(A,_0x3c4862(0x1d4),_0x3c4862(0x20c)),l(A,_0x3c4862(0x23c),E),l(A,_0x3c4862(0x19d),D),A=f([(0x0,t[_0x3c4862(0x1d7)])(i[_0x3c4862(0x22c)]),d(0x1,(0x0,t['Inject'])(t[_0x3c4862(0x237)])),d(0x2,t[_0x3c4862(0x22f)]),d(0x3,t[_0x3c4862(0x1ee)])],A),exports[_0x3c4862(0x25e)]=0xc8,exports[_0x3c4862(0x1aa)]=0xc8,exports['InsertShapeCommand']=g,exports[_0x3c4862(0x22e)]=m,exports[_0x3c4862(0x1c5)]=h,exports[_0x3c4862(0x207)]=v,exports[_0x3c4862(0x20d)]=b,exports[_0x3c4862(0x242)]=x,Object['defineProperty'](exports,_0x3c4862(0x21d),{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x3c4862(0x1b0)]=y,Object[_0x3c4862(0x1c0)](exports,_0x3c4862(0x195),{'enumerable':!0x0,'get':function(){return A;}}),exports['UpdateConnectorRelationCommand']=S,exports[_0x3c4862(0x211)]=C,exports[_0x3c4862(0x21c)]=_,exports[_0x3c4862(0x196)]=T,exports[_0x3c4862(0x23a)]=w;
|