@univerjs-pro/sheets-shape 1.0.0-alpha.1 → 1.0.0-insiders.20260701-0ef51b0
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 +7 -7
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 _0x2b89fc=_0xaf17;(function(_0x3dd95c,_0xe2fa77){const _0x4ba194=_0xaf17,_0x3fe04a=_0x3dd95c();while(!![]){try{const _0xcc9993=-parseInt(_0x4ba194(0x212))/0x1+parseInt(_0x4ba194(0x1dc))/0x2+-parseInt(_0x4ba194(0x17a))/0x3+parseInt(_0x4ba194(0x188))/0x4+-parseInt(_0x4ba194(0x186))/0x5+-parseInt(_0x4ba194(0x187))/0x6*(parseInt(_0x4ba194(0x1ce))/0x7)+parseInt(_0x4ba194(0x1cf))/0x8;if(_0xcc9993===_0xe2fa77)break;else _0x3fe04a['push'](_0x3fe04a['shift']());}catch(_0xf88e12){_0x3fe04a['push'](_0x3fe04a['shift']());}}}(_0x4387,0x71728),Object[_0x2b89fc(0x178)](exports,Symbol[_0x2b89fc(0x1a0)],{'value':_0x2b89fc(0x1d3)}));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');function _0xaf17(_0x227435,_0x56dbd9){_0x227435=_0x227435-0x172;const _0x43878c=_0x4387();let _0xaf179=_0x43878c[_0x227435];return _0xaf179;}var c=class extends t['FEnum']{get[_0x2b89fc(0x192)](){const _0x4ee2b0=_0x2b89fc;return e[_0x4ee2b0(0x192)];}get[_0x2b89fc(0x1d7)](){const _0x38b7ab=_0x2b89fc;return e[_0x38b7ab(0x1d7)];}get[_0x2b89fc(0x1bb)](){const _0x1f9740=_0x2b89fc;return e[_0x1f9740(0x1bb)];}get[_0x2b89fc(0x1ee)](){const _0x1dfff7=_0x2b89fc;return e[_0x1dfff7(0x1ee)];}get[_0x2b89fc(0x189)](){const _0x1928c3=_0x2b89fc;return e[_0x1928c3(0x189)];}get[_0x2b89fc(0x183)](){const _0x1db5fd=_0x2b89fc;return e[_0x1db5fd(0x183)];}get['ShapeLineJoinEnum'](){return e['ShapeLineJoinEnum'];}get['ShapeArrowTypeEnum'](){const _0x20c75a=_0x2b89fc;return e[_0x20c75a(0x1fe)];}get[_0x2b89fc(0x1ea)](){const _0x48f6f8=_0x2b89fc;return e[_0x48f6f8(0x1ea)];}};t[_0x2b89fc(0x1b7)][_0x2b89fc(0x19f)](c);function l(_0x3a32d4){'@babel/helpers - typeof';const _0x10e7e2=_0x2b89fc;return l=typeof Symbol==_0x10e7e2(0x1df)&&typeof Symbol[_0x10e7e2(0x1d4)]==_0x10e7e2(0x1ad)?function(_0x1f5a46){return typeof _0x1f5a46;}:function(_0x29a2ac){const _0xfb1335=_0x10e7e2;return _0x29a2ac&&typeof Symbol==_0xfb1335(0x1df)&&_0x29a2ac[_0xfb1335(0x1a7)]===Symbol&&_0x29a2ac!==Symbol[_0xfb1335(0x181)]?_0xfb1335(0x1ad):typeof _0x29a2ac;},l(_0x3a32d4);}function _0x4387(){const _0x257479=['getShapes','getUnitId','getAdjustNames','setStrokeLineCapType','prototype','build','ShapeLineCapEnum','getShapeData','drawingType','3819200Qwxjrm','66ynISLD','1094992FUdVQF','ShapeLineDashEnum','DEFAULT_SHAPE_HEIGHT','DrawingTypeEnum','getShapeType','gradientAngle','index','entries','executeCommand','RemoveSheetDrawingCommand','ShapeTypeEnum','isLineShape','ISheetDrawingService','_preloadShapeProperties','generateRandomId','lineJoinType','flipY','drawId','point','length','setShapeData','lineType','NoFill','extend','toStringTag','connectionSiteIndex','transform','default','setShapeGradientFill','gradientType','insertShape','constructor','type','lineStrokeType','endArrow','removeShape','isConnectorShape','symbol','convertPositionCellToSheetOverGrid','setHeight','setWidth','getDrawingByParam','getStartConnectInfo','ang','subUnitId','IDrawingManagerService','DRAWING_SHAPE','FEnum','computeConnectorRouteLayout','startArrow','sin','ShapeGradientTypeEnum','unitId','UpdateConnectorRelationCommand','setStrokeLineType','setStrokeColor','get','getSize','color','SheetSkeletonService','opacity','getConnectorLinePoints','top','cos','_injector',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','setNoneFill','_resolveExistingOrFreeEndpoint','keys','273238bcTfdv','18084248wHJTZj','SetShapeDrawingDataCommand','setPosition','setEndArrowType','Module','iterator','_resolveEndpoints','FWorksheet','ShapeFillEnum','newConnector','fill','localToWorld','newShape','845166JfChGG','getAdjustPoints','getDrawingData','function','setStartArrowSize','getSheetId','getShapeRelation','getConnectionSiteList','getShapeModel','updateContext','\x20not\x20found','\x20and\x20subUnitId\x20','width','find','ShapeArrowSizeEnum','getAdjustValueByName','capType','left','ShapeLineTypeEnum','worldRect','getEndConnectInfo','getWorkbook','fillType','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','ensureSkeleton','setStrokeOpacity','_commandService','setEndArrowSize','string','FShape','toPrimitive','flipX','from','ConnectorCoordinateTransform','ShapeArrowTypeEnum','setStartArrowType','routeConnectorLineShape','getShapeId','shape','size','InsertShapeCommand','rotation','SolidFill','cxnIndex','adjustValues','SheetsShapeService','dashType','stroke','connectShapes','stringify','updateShape','setAbsolutePosition','call','relation','647961BCiPKt','setStrokeLineDashType','object','abs','setShapeType','getConnectionSites','gradientStops','DEFAULT_SHAPE_WIDTH','height','defineProperty','shapeType','1953021zlpZAk','shapeId','shapeData'];_0x4387=function(){return _0x257479;};return _0x4387();}function u(_0x26f892,_0x3555cf){const _0x5165c7=_0x2b89fc;if(l(_0x26f892)!=_0x5165c7(0x214)||!_0x26f892)return _0x26f892;var _0x20921c=_0x26f892[Symbol[_0x5165c7(0x1fa)]];if(_0x20921c!==void 0x0){var _0x500a13=_0x20921c[_0x5165c7(0x210)](_0x26f892,_0x3555cf||_0x5165c7(0x1a3));if(l(_0x500a13)!=_0x5165c7(0x214))return _0x500a13;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3555cf===_0x5165c7(0x1f8)?String:Number)(_0x26f892);}function d(_0x59176e){const _0x23470c=_0x2b89fc;var _0x380167=u(_0x59176e,_0x23470c(0x1f8));return l(_0x380167)==_0x23470c(0x1ad)?_0x380167:_0x380167+'';}function f(_0x1638f0,_0x1c74ac,_0x4db036){const _0x3ba858=_0x2b89fc;return(_0x1c74ac=d(_0x1c74ac))in _0x1638f0?Object[_0x3ba858(0x178)](_0x1638f0,_0x1c74ac,{'value':_0x4db036,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1638f0[_0x1c74ac]=_0x4db036,_0x1638f0;}var p=class{constructor(_0x587398,_0x5418d1,_0x795ff3,_0x141b27){const _0x1bb141=_0x2b89fc;f(this,_0x1bb141(0x1bc),void 0x0),f(this,_0x1bb141(0x1b4),void 0x0),f(this,'drawId',void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x1bb141(0x1e8),n[_0x1bb141(0x176)]),f(this,'height',n['DEFAULT_SHAPE_HEIGHT']),f(this,'shapeType',void 0x0),f(this,_0x1bb141(0x17c),{}),f(this,'_injector',void 0x0),this[_0x1bb141(0x1bc)]=_0x587398,this[_0x1bb141(0x1b4)]=_0x5418d1,this[_0x1bb141(0x199)]=_0x795ff3||(0x0,r['generateRandomId'])(),this['_injector']=_0x141b27;}[_0x2b89fc(0x1d1)](_0x934e35,_0x5859ac,_0x4f72b1,_0x2c15fe){const _0x6b0c9d=_0x2b89fc;let _0x4cd5b8=this[_0x6b0c9d(0x1c8)][_0x6b0c9d(0x1c0)](a[_0x6b0c9d(0x1c3)])[_0x6b0c9d(0x1f4)](this[_0x6b0c9d(0x1bc)],this['subUnitId']);if(!_0x4cd5b8)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x6b0c9d(0x1bc)]+_0x6b0c9d(0x1e7)+this[_0x6b0c9d(0x1b4)]+_0x6b0c9d(0x1e6));let {transform:_0x2b5c48}=(0x0,a[_0x6b0c9d(0x1ae)])(this[_0x6b0c9d(0x1bc)],this[_0x6b0c9d(0x1b4)],{'row':_0x934e35,'column':_0x5859ac,'rowOffset':_0x4f72b1,'columnOffset':_0x2c15fe},0x1,0x1,_0x4cd5b8);return this['x']=_0x2b5c48['left'],this['y']=_0x2b5c48[_0x6b0c9d(0x1c6)],this;}[_0x2b89fc(0x20f)](_0x41d163,_0x42eb18){return this['x']=_0x41d163,this['y']=_0x42eb18,this;}[_0x2b89fc(0x173)](_0x13d023){const _0x3f8a8a=_0x2b89fc;return this[_0x3f8a8a(0x179)]=_0x13d023,this;}[_0x2b89fc(0x19c)](_0x298169){const _0x425080=_0x2b89fc;return _0x298169[_0x425080(0x179)]&&this['setShapeType'](_0x298169[_0x425080(0x179)]),this['shapeData']={..._0x298169},this;}['setShapeSolidFill'](_0x2a8cf8,_0x357a44){const _0x2f991e=_0x2b89fc;return this[_0x2f991e(0x17c)][_0x2f991e(0x1d9)]||(this['shapeData'][_0x2f991e(0x1d9)]={}),this['shapeData'][_0x2f991e(0x1d9)]['fillType']=e[_0x2f991e(0x1d7)][_0x2f991e(0x206)],_0x2a8cf8!==void 0x0&&(this[_0x2f991e(0x17c)][_0x2f991e(0x1d9)]['color']=_0x2a8cf8),_0x357a44!==void 0x0&&(this['shapeData'][_0x2f991e(0x1d9)]['opacity']=_0x357a44),this;}[_0x2b89fc(0x1a4)](_0x3d71a9,_0x27ae8a,_0x691c3e){const _0x295591=_0x2b89fc;if(_0x27ae8a===void 0x0||_0x27ae8a[_0x295591(0x19b)]===0x0)throw Error(_0x295591(0x1ca));return this[_0x295591(0x17c)][_0x295591(0x1d9)]||(this[_0x295591(0x17c)][_0x295591(0x1d9)]={}),this[_0x295591(0x17c)]['fill'][_0x295591(0x175)]=_0x27ae8a,this[_0x295591(0x17c)]['fill'][_0x295591(0x1f2)]=e['ShapeFillEnum']['GradientFill'],this['shapeData'][_0x295591(0x1d9)][_0x295591(0x1a5)]=_0x3d71a9,_0x691c3e!==void 0x0&&(this[_0x295591(0x17c)][_0x295591(0x1d9)][_0x295591(0x18d)]=_0x691c3e),this;}[_0x2b89fc(0x1cb)](){const _0x5b8bb3=_0x2b89fc;return this['shapeData'][_0x5b8bb3(0x1d9)]={'fillType':e['ShapeFillEnum'][_0x5b8bb3(0x19e)]},this;}[_0x2b89fc(0x1bf)](_0x5ee126){const _0x43a775=_0x2b89fc;return this['shapeData'][_0x43a775(0x20b)]||(this[_0x43a775(0x17c)]['stroke']={}),this[_0x43a775(0x17c)][_0x43a775(0x20b)][_0x43a775(0x1c2)]=_0x5ee126,this;}['setStrokeWidth'](_0x26f4c9){const _0x3a32d3=_0x2b89fc;return this[_0x3a32d3(0x17c)][_0x3a32d3(0x20b)]||(this[_0x3a32d3(0x17c)][_0x3a32d3(0x20b)]={}),this[_0x3a32d3(0x17c)][_0x3a32d3(0x20b)][_0x3a32d3(0x1e8)]=_0x26f4c9,this;}[_0x2b89fc(0x213)](_0x155624){const _0x2e4a4e=_0x2b89fc;return this[_0x2e4a4e(0x17c)][_0x2e4a4e(0x20b)]||(this[_0x2e4a4e(0x17c)]['stroke']={}),this['shapeData']['stroke'][_0x2e4a4e(0x20a)]=_0x155624,this;}['setStrokeLineJoinType'](_0x3e8b6c){const _0x52580a=_0x2b89fc;return this[_0x52580a(0x17c)]['stroke']||(this[_0x52580a(0x17c)]['stroke']={}),this[_0x52580a(0x17c)][_0x52580a(0x20b)][_0x52580a(0x197)]=_0x3e8b6c,this;}[_0x2b89fc(0x180)](_0x5c0e19){const _0xe0ec4b=_0x2b89fc;return this[_0xe0ec4b(0x17c)][_0xe0ec4b(0x20b)]||(this[_0xe0ec4b(0x17c)]['stroke']={}),this[_0xe0ec4b(0x17c)]['stroke'][_0xe0ec4b(0x1ec)]=_0x5c0e19,this;}[_0x2b89fc(0x1f5)](_0x1563e5){const _0x26fc51=_0x2b89fc;return this[_0x26fc51(0x17c)][_0x26fc51(0x20b)]||(this[_0x26fc51(0x17c)][_0x26fc51(0x20b)]={}),this[_0x26fc51(0x17c)][_0x26fc51(0x20b)][_0x26fc51(0x1c4)]=_0x1563e5,this;}[_0x2b89fc(0x1be)](_0x33082b){const _0x371cb4=_0x2b89fc;return this[_0x371cb4(0x17c)][_0x371cb4(0x20b)]||(this[_0x371cb4(0x17c)][_0x371cb4(0x20b)]={}),this[_0x371cb4(0x17c)][_0x371cb4(0x20b)][_0x371cb4(0x1a9)]=_0x33082b,this;}[_0x2b89fc(0x1b0)](_0x2837aa){const _0x2cdbd0=_0x2b89fc;return this[_0x2cdbd0(0x1e8)]=_0x2837aa,this;}[_0x2b89fc(0x1af)](_0x167fe5){const _0x4b8405=_0x2b89fc;return this[_0x4b8405(0x177)]=_0x167fe5,this;}[_0x2b89fc(0x193)](){const _0x15f66d=_0x2b89fc;let _0x577309=this['_injector'][_0x15f66d(0x1c0)](n['SheetsShapeService'])[_0x15f66d(0x1e4)](this[_0x15f66d(0x1bc)],this[_0x15f66d(0x1b4)],this['drawId']);return _0x577309?(0x0,e[_0x15f66d(0x1ac)])(_0x577309[_0x15f66d(0x18c)]()):this[_0x15f66d(0x179)]?(0x0,e[_0x15f66d(0x1ac)])(this[_0x15f66d(0x179)]):!0x1;}[_0x2b89fc(0x174)](){const _0x3e3d53=_0x2b89fc;let _0x376b66=this[_0x3e3d53(0x1c8)]['get'](n['SheetsShapeService'])[_0x3e3d53(0x1e4)](this[_0x3e3d53(0x1bc)],this[_0x3e3d53(0x1b4)],this[_0x3e3d53(0x199)]);if(!_0x376b66)return[];let _0x1c676f=this[_0x3e3d53(0x1c8)][_0x3e3d53(0x1c0)](i[_0x3e3d53(0x1b5)])[_0x3e3d53(0x1b1)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3e3d53(0x199)]});if(!(_0x1c676f!=null&&_0x1c676f['transform']))return[];let {width:_0x2f5cb3=0x0,height:_0x59ab33=0x0}=_0x1c676f[_0x3e3d53(0x1a2)];return _0x376b66['updateContext']({'width':_0x2f5cb3,'height':_0x59ab33}),_0x376b66['getConnectionSiteList']();}[_0x2b89fc(0x1dd)](){const _0x162481=_0x2b89fc;let _0x4bfe90=this[_0x162481(0x1c8)][_0x162481(0x1c0)](n['SheetsShapeService'])[_0x162481(0x1e4)](this[_0x162481(0x1bc)],this[_0x162481(0x1b4)],this['drawId']);if(!_0x4bfe90)return[];let _0x2c1d6f=this['_injector'][_0x162481(0x1c0)](i[_0x162481(0x1b5)])[_0x162481(0x1b1)]({'unitId':this['unitId'],'subUnitId':this[_0x162481(0x1b4)],'drawingId':this[_0x162481(0x199)]});if(!(_0x2c1d6f!=null&&_0x2c1d6f[_0x162481(0x1a2)]))return[];let {width:_0x1db04a=0x0,height:_0x2e4566=0x0}=_0x2c1d6f[_0x162481(0x1a2)];return _0x4bfe90[_0x162481(0x1e5)]({'width':_0x1db04a,'height':_0x2e4566}),_0x4bfe90['getDrawingPoints']();}[_0x2b89fc(0x1c5)](){const _0x1bbbe6=_0x2b89fc;let _0x99e292=this[_0x1bbbe6(0x1c8)]['get'](n[_0x1bbbe6(0x209)])[_0x1bbbe6(0x1e4)](this[_0x1bbbe6(0x1bc)],this['subUnitId'],this[_0x1bbbe6(0x199)]);if(!_0x99e292||!(0x0,e[_0x1bbbe6(0x1ac)])(_0x99e292[_0x1bbbe6(0x18c)]()))return[];let _0x248b91=this[_0x1bbbe6(0x1c8)]['get'](i[_0x1bbbe6(0x1b5)])[_0x1bbbe6(0x1b1)]({'unitId':this[_0x1bbbe6(0x1bc)],'subUnitId':this[_0x1bbbe6(0x1b4)],'drawingId':this[_0x1bbbe6(0x199)]});if(!(_0x248b91!=null&&_0x248b91[_0x1bbbe6(0x1a2)]))return[];let {width:_0x2079e6=0x0,height:_0x2d694b=0x0}=_0x248b91[_0x1bbbe6(0x1a2)];return _0x99e292['updateContext']({'width':_0x2079e6,'height':_0x2d694b}),_0x99e292[_0x1bbbe6(0x1c5)]();}[_0x2b89fc(0x1b2)](){const _0x2ed206=_0x2b89fc;var _0x20fc4c;let _0x524375=this[_0x2ed206(0x1c8)][_0x2ed206(0x1c0)](n[_0x2ed206(0x209)])[_0x2ed206(0x1e4)](this[_0x2ed206(0x1bc)],this[_0x2ed206(0x1b4)],this['drawId']);return _0x524375?(_0x20fc4c=_0x524375[_0x2ed206(0x1b2)]())==null?null:_0x20fc4c:null;}[_0x2b89fc(0x1f0)](){const _0x557635=_0x2b89fc;var _0x499113;let _0x21f564=this[_0x557635(0x1c8)]['get'](n[_0x557635(0x209)])['getShapeModel'](this[_0x557635(0x1bc)],this[_0x557635(0x1b4)],this['drawId']);return _0x21f564?(_0x499113=_0x21f564[_0x557635(0x1f0)]())==null?null:_0x499113:null;}[_0x2b89fc(0x182)](){const _0x1578c7=_0x2b89fc;var _0x2bfac6,_0x2b2e61;if(!this[_0x1578c7(0x179)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x3429b6=this[_0x1578c7(0x1c8)]['get'](a['SheetSkeletonService'])['ensureSkeleton'](this[_0x1578c7(0x1bc)],this[_0x1578c7(0x1b4)]);if(!_0x3429b6)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x1578c7(0x1bc)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+'\x20not\x20found');let {transform:_0x4963b8}=(0x0,a[_0x1578c7(0x1ae)])(this[_0x1578c7(0x1bc)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x3429b6);this['x']=this['x']>0x0?this['x']:_0x4963b8[_0x1578c7(0x1ed)],this['y']=this['y']>0x0?this['y']:_0x4963b8['top'];}return this[_0x1578c7(0x1e8)]=(_0x2bfac6=this[_0x1578c7(0x1e8)])==null?n[_0x1578c7(0x176)]:_0x2bfac6,this[_0x1578c7(0x177)]=(_0x2b2e61=this[_0x1578c7(0x177)])==null?n[_0x1578c7(0x18a)]:_0x2b2e61,{'unitId':this[_0x1578c7(0x1bc)],'subUnitId':this[_0x1578c7(0x1b4)],'shapeId':this[_0x1578c7(0x199)],'shapeType':this[_0x1578c7(0x179)],'shapeData':Object[_0x1578c7(0x1cd)](this[_0x1578c7(0x17c)])[_0x1578c7(0x19b)]>0x0?this[_0x1578c7(0x17c)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x1578c7(0x1e8)],'height':this[_0x1578c7(0x177)]};}[_0x2b89fc(0x201)](){const _0x5594ec=_0x2b89fc;return this[_0x5594ec(0x199)];}[_0x2b89fc(0x18c)](){const _0x1fbf6d=_0x2b89fc;return this[_0x1fbf6d(0x179)];}[_0x2b89fc(0x184)](){return this['shapeData'];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x2b89fc(0x1c1)](){const _0x4fcf20=_0x2b89fc;return{'width':this['width'],'height':this[_0x4fcf20(0x177)]};}},m=class extends p{constructor(_0x324ed9,_0x461739,_0x1d0fc7,_0x5c757c){const _0x280798=_0x2b89fc;super(_0x324ed9,_0x461739,_0x1d0fc7,_0x5c757c),f(this,_0x280798(0x17c),{});}[_0x2b89fc(0x173)](_0xdb4628){const _0x22a970=_0x2b89fc;if(!(0x0,e[_0x22a970(0x1ac)])(_0xdb4628))throw Error(_0x22a970(0x1f3)+_0xdb4628+_0x22a970(0x1c9));return super['setShapeType'](_0xdb4628),this;}[_0x2b89fc(0x1ff)](_0x3bd528){const _0x148dbd=_0x2b89fc;var _0x565b42,_0x4c9a4b;return(_0x565b42=this['shapeData'])!=null&&_0x565b42['ln']||(this['shapeData']['ln']={}),!((_0x4c9a4b=this['shapeData'])==null||(_0x4c9a4b=_0x4c9a4b['ln'])==null)&&_0x4c9a4b['startArrow']||(this[_0x148dbd(0x17c)]['ln'][_0x148dbd(0x1b9)]={}),this[_0x148dbd(0x17c)]['ln'][_0x148dbd(0x1b9)][_0x148dbd(0x1a8)]=_0x3bd528,this;}[_0x2b89fc(0x1d2)](_0x4392be){const _0x2acd44=_0x2b89fc;var _0x17fb49,_0x10aadb;return(_0x17fb49=this[_0x2acd44(0x17c)])!=null&&_0x17fb49['ln']||(this[_0x2acd44(0x17c)]['ln']={}),!((_0x10aadb=this[_0x2acd44(0x17c)])==null||(_0x10aadb=_0x10aadb['ln'])==null)&&_0x10aadb[_0x2acd44(0x1aa)]||(this[_0x2acd44(0x17c)]['ln'][_0x2acd44(0x1aa)]={}),this[_0x2acd44(0x17c)]['ln'][_0x2acd44(0x1aa)]['type']=_0x4392be,this;}[_0x2b89fc(0x1e0)](_0x42181b){const _0x2daba6=_0x2b89fc;var _0x1b979a,_0x1566e6;return(_0x1b979a=this[_0x2daba6(0x17c)])!=null&&_0x1b979a['ln']||(this['shapeData']['ln']={}),!((_0x1566e6=this[_0x2daba6(0x17c)])==null||(_0x1566e6=_0x1566e6['ln'])==null)&&_0x1566e6[_0x2daba6(0x1b9)]||(this[_0x2daba6(0x17c)]['ln'][_0x2daba6(0x1b9)]={}),this[_0x2daba6(0x17c)]['ln'][_0x2daba6(0x1b9)][_0x2daba6(0x203)]=_0x42181b,this;}[_0x2b89fc(0x1f7)](_0x3aa387){const _0x51ead6=_0x2b89fc;var _0x552229,_0x226294;return(_0x552229=this[_0x51ead6(0x17c)])!=null&&_0x552229['ln']||(this[_0x51ead6(0x17c)]['ln']={}),!((_0x226294=this['shapeData'])==null||(_0x226294=_0x226294['ln'])==null)&&_0x226294[_0x51ead6(0x1aa)]||(this['shapeData']['ln']['endArrow']={}),this[_0x51ead6(0x17c)]['ln'][_0x51ead6(0x1aa)]['size']=_0x3aa387,this;}[_0x2b89fc(0x182)](){const _0x457542=_0x2b89fc;return super[_0x457542(0x182)]();}[_0x2b89fc(0x1f0)](){const _0x1c0a5e=_0x2b89fc;var _0x405b03;return((_0x405b03=this['shapeData'])==null||(_0x405b03=_0x405b03[_0x1c0a5e(0x211)])==null?void 0x0:_0x405b03['to'])||null;}[_0x2b89fc(0x1b2)](){const _0x29d8a6=_0x2b89fc;var _0x59d738;return((_0x59d738=this[_0x29d8a6(0x17c)])==null||(_0x59d738=_0x59d738[_0x29d8a6(0x211)])==null?void 0x0:_0x59d738[_0x29d8a6(0x1fc)])||null;}};function h(_0x4afc6e,_0x5163c3,_0x2b365b,_0x32fed3,_0x37ea03,_0x1ce56d){const _0x3e5668=_0x2b89fc;let _0x247773=_0x37ea03[_0x3e5668(0x1e4)](_0x4afc6e,_0x5163c3,_0x2b365b);if(!_0x247773)return null;let _0x3068b1=_0x1ce56d[_0x3e5668(0x1b1)]({'unitId':_0x4afc6e,'subUnitId':_0x5163c3,'drawingId':_0x2b365b});if(!(_0x3068b1!=null&&_0x3068b1[_0x3e5668(0x1a2)]))return null;let {left:_0x2f4604=0x0,top:_0x105f7c=0x0,width:_0x43249a=0x0,height:_0x148bba=0x0,flipX:_0x305e40=!0x1,flipY:_0x1e524b=!0x1,angle:_0x56ed3e}=_0x3068b1['transform'];_0x247773[_0x3e5668(0x1e5)]({'width':_0x43249a,'height':_0x148bba});let _0x340469=_0x247773[_0x3e5668(0x1e3)]()[_0x3e5668(0x1e9)](_0x1fba94=>_0x1fba94[_0x3e5668(0x18e)]===_0x32fed3);if(!_0x340469)return null;let _0xefdf6d=_0x305e40?_0x43249a-_0x340469['x']:_0x340469['x'],_0x5dcfcd=_0x1e524b?_0x148bba-_0x340469['y']:_0x340469['y'];if(_0x56ed3e&&_0x56ed3e!==0x0){let _0x106694=_0x56ed3e*Math['PI']/0xb4,_0xe5b166=Math[_0x3e5668(0x1c7)](_0x106694),_0x47930a=Math[_0x3e5668(0x1ba)](_0x106694),_0x46f4de=_0x43249a/0x2,_0x4ae135=_0x148bba/0x2,_0x2d694c=_0xefdf6d-_0x46f4de,_0x3efc62=_0x5dcfcd-_0x4ae135;_0xefdf6d=_0x46f4de+_0x2d694c*_0xe5b166-_0x3efc62*_0x47930a,_0x5dcfcd=_0x4ae135+_0x2d694c*_0x47930a+_0x3efc62*_0xe5b166;}_0xefdf6d+=_0x2f4604,_0x5dcfcd+=_0x105f7c;let _0xd36167=_0x340469[_0x3e5668(0x1b3)]/0xea60;_0x305e40&&(_0xd36167=0xb4-_0xd36167),_0x1e524b&&(_0xd36167=-_0xd36167),_0xd36167+=_0x56ed3e||0x0,_0xd36167=(_0xd36167%0x168+0x168)%0x168;let _0x41ee55=(0x0,e['getBasicShapeRotateBound'])({'left':_0x2f4604,'top':_0x105f7c,'width':_0x43249a,'height':_0x148bba},_0x56ed3e||0x0);return{'point':{'x':_0xefdf6d,'y':_0x5dcfcd},'angle':_0xd36167,'bounds':_0x41ee55};}function g(_0x4bfd54,_0xc43886){const _0x5d765b=_0x2b89fc;let _0x2a47cf=_0xc43886['x']-_0x4bfd54['x'],_0x657e83=_0xc43886['y']-_0x4bfd54['y'];return Math[_0x5d765b(0x172)](_0x2a47cf)>=Math[_0x5d765b(0x172)](_0x657e83)?_0x2a47cf>=0x0?0xb4:0x0:_0x657e83>=0x0?0x10e:0x5a;}function _(_0xc172f9,_0x481215,_0x1e6e2e,_0x4e55b0,_0x5dbfd0,_0x1d7180,_0x1a44b6){const _0x1de995=_0x2b89fc;let _0x1a6f11=_0x1d7180[_0x1de995(0x1e4)](_0xc172f9,_0x481215,_0x1e6e2e);if(!_0x1a6f11)return null;let _0x38702a=_0x1a44b6[_0x1de995(0x1b1)]({'unitId':_0xc172f9,'subUnitId':_0x481215,'drawingId':_0x1e6e2e});if(!(_0x38702a!=null&&_0x38702a[_0x1de995(0x1a2)]))return null;let {left:_0x12179f=0x0,top:_0x1bea1a=0x0,width:_0xc6dc08=0x0,height:_0x321ad7=0x0,flipX:_0x329019=!0x1,flipY:_0x519f04=!0x1}=_0x38702a[_0x1de995(0x1a2)];_0x1a6f11[_0x1de995(0x1e5)]({'width':_0xc6dc08,'height':_0x321ad7});let _0x1b5f25=_0x1a6f11[_0x1de995(0x1c5)]();if(_0x1b5f25[_0x1de995(0x19b)]<0x2)return null;let _0xe92f65=_0x4e55b0?_0x1b5f25[0x0]:_0x1b5f25[_0x1b5f25[_0x1de995(0x19b)]-0x1],_0x228ed9=new e[(_0x1de995(0x1fd))]({'left':_0x12179f,'top':_0x1bea1a,'width':_0xc6dc08,'height':_0x321ad7,'flipX':_0x329019,'flipY':_0x519f04})[_0x1de995(0x1da)](_0xe92f65);return{'point':_0x228ed9,'angle':g(_0x5dbfd0[_0x1de995(0x19a)],_0x228ed9),'bounds':{'left':_0x228ed9['x'],'top':_0x228ed9['y'],'width':0x0,'height':0x0}};}var v=class extends s[_0x2b89fc(0x1d6)]{async[_0x2b89fc(0x1a6)](_0x8efd41){const _0x5c8a22=_0x2b89fc;let {unitId:_0x4d8015,subUnitId:_0x5e3740,shapeId:_0x32d375,shapeType:_0x10172c,shapeData:_0xb6b474,x:_0x30c33f,y:_0x9f77d9,width:_0x5e8d62,height:_0x5cdb14}=_0x8efd41;return this[_0x5c8a22(0x1f6)][_0x5c8a22(0x190)](n[_0x5c8a22(0x204)]['id'],{'unitId':_0x4d8015,'subUnitId':_0x5e3740,'shapeId':_0x32d375,'shapeType':_0x10172c,'shapeData':_0xb6b474,'position':{'x':_0x30c33f,'y':_0x9f77d9},'width':_0x5e8d62,'height':_0x5cdb14});}async[_0x2b89fc(0x20e)](_0x14ec6a){const _0x180150=_0x2b89fc;let {unitId:_0x29c424,subUnitId:_0x1a212c,shapeId:_0x3deabd,shapeType:_0x548e8f,shapeData:_0x89c9e7,x:_0x1373d1,y:_0x4ff208,width:_0xe24de9,height:_0x3395bd}=_0x14ec6a;return this['_commandService'][_0x180150(0x190)](n[_0x180150(0x1d0)]['id'],{'unitId':_0x29c424,'subUnitId':_0x1a212c,'shapeId':_0x3deabd,'shapeType':_0x548e8f,'shapeData':_0x89c9e7,'position':{'x':_0x1373d1,'y':_0x4ff208},'width':_0xe24de9,'height':_0x3395bd});}[_0x2b89fc(0x1db)](_0x221795){const _0x3246c7=_0x2b89fc;let _0x4798a3=this[_0x3246c7(0x1f1)]()[_0x3246c7(0x17e)](),_0x12682b=this['getSheetId']();if(_0x221795){let _0x30910b=new p(_0x4798a3,_0x12682b,_0x221795['drawId'],this[_0x3246c7(0x1c8)]);return this[_0x3246c7(0x195)](_0x30910b,_0x4798a3,_0x12682b,_0x221795[_0x3246c7(0x199)]),_0x30910b;}return new p(_0x4798a3,_0x12682b,(0x0,r[_0x3246c7(0x196)])(),this[_0x3246c7(0x1c8)]);}[_0x2b89fc(0x1d8)](_0xd48ab1){const _0x29b62b=_0x2b89fc;let _0x2c4eb5=this[_0x29b62b(0x1f1)]()['getUnitId'](),_0x2ce57f=this[_0x29b62b(0x1e1)]();if(_0xd48ab1){let _0x179c1a=new m(_0x2c4eb5,_0x2ce57f,_0xd48ab1[_0x29b62b(0x199)],this[_0x29b62b(0x1c8)]);return this[_0x29b62b(0x195)](_0x179c1a,_0x2c4eb5,_0x2ce57f,_0xd48ab1[_0x29b62b(0x199)]),_0x179c1a;}return new m(_0x2c4eb5,_0x2ce57f,(0x0,r[_0x29b62b(0x196)])(),this['_injector']);}[_0x2b89fc(0x17d)](){const _0x54707d=_0x2b89fc;let _0x2a1453=this['_injector']['get'](o[_0x54707d(0x194)]),_0x1d3f6=this[_0x54707d(0x1f1)]()[_0x54707d(0x17e)](),_0x2498d5=this['getSheetId'](),_0x45b9af=_0x2a1453[_0x54707d(0x1de)](_0x1d3f6,_0x2498d5);if(!_0x45b9af)return[];let _0x5913a1=[];for(let [_0x5c57c5,_0x5a9e68]of Object[_0x54707d(0x18f)](_0x45b9af))if(_0x5a9e68&&_0x5a9e68[_0x54707d(0x185)]===r[_0x54707d(0x18b)][_0x54707d(0x1b6)]){let _0x21ae4b=new p(_0x1d3f6,_0x2498d5,_0x5c57c5,this[_0x54707d(0x1c8)]);this['_preloadShapeProperties'](_0x21ae4b,_0x1d3f6,_0x2498d5,_0x5c57c5),_0x5913a1['push'](_0x21ae4b);}return _0x5913a1;}[_0x2b89fc(0x1ab)](_0x4ee306){const _0xc748b1=_0x2b89fc;let {unitId:_0x5a8699,subUnitId:_0x5a28fb,drawId:_0x4b60f4}=_0x4ee306;return this[_0xc748b1(0x1f6)][_0xc748b1(0x190)](o[_0xc748b1(0x191)]['id'],{'unitId':_0x5a8699,'drawings':[{'unitId':_0x5a8699,'subUnitId':_0x5a28fb,'drawingId':_0x4b60f4,'drawingType':r[_0xc748b1(0x18b)][_0xc748b1(0x1b6)]}]});}async[_0x2b89fc(0x20c)](_0x442ef1){const _0x34f93a=_0x2b89fc;let {connector:_0x4d675a,startTarget:_0x366226,endTarget:_0x22352a}=_0x442ef1;if(!_0x366226&&!_0x22352a)return!0x1;let _0x2e3e59=this[_0x34f93a(0x1f1)]()['getUnitId'](),_0x4df3a6=this[_0x34f93a(0x1e1)](),_0x44b680=this[_0x34f93a(0x1c8)][_0x34f93a(0x1c0)](n[_0x34f93a(0x209)]),_0x49fd96=this[_0x34f93a(0x1c8)]['get'](i[_0x34f93a(0x1b5)]),_0x37c327=_0x44b680[_0x34f93a(0x1e4)](_0x2e3e59,_0x4df3a6,_0x4d675a[_0x34f93a(0x199)]);if(!_0x37c327)return!0x1;let _0x12259b=_0x37c327['getShapeType'](),_0x4f885d=_0x37c327[_0x34f93a(0x1e2)](),_0x3a9d40={};for(let _0x5e363f of _0x37c327[_0x34f93a(0x17f)]()){let _0x3ce8ee=_0x37c327[_0x34f93a(0x1eb)](_0x5e363f);_0x3ce8ee!==void 0x0&&(_0x3a9d40[_0x5e363f]=_0x3ce8ee);}let {startInfo:_0x5678c9,endInfo:_0x3761a4}=this[_0x34f93a(0x1d5)](_0x2e3e59,_0x4df3a6,_0x4d675a,_0x37c327,_0x366226,_0x22352a,_0x44b680,_0x49fd96,_0x4f885d);if(!_0x5678c9||!_0x3761a4)return!0x1;let _0x166050=(0x0,e[_0x34f93a(0x1b8)])((0x0,e[_0x34f93a(0x200)])(_0x5678c9,_0x3761a4,_0x12259b),_0x12259b),_0xd968ec={};return _0x366226?_0xd968ec[_0x34f93a(0x1fc)]={'shapeId':_0x366226[_0x34f93a(0x202)]['drawId'],'cxnIndex':_0x366226[_0x34f93a(0x1a1)]}:_0x4f885d!=null&&_0x4f885d[_0x34f93a(0x1fc)]&&(_0xd968ec[_0x34f93a(0x1fc)]=_0x4f885d[_0x34f93a(0x1fc)]),_0x22352a?_0xd968ec['to']={'shapeId':_0x22352a[_0x34f93a(0x202)][_0x34f93a(0x199)],'cxnIndex':_0x22352a[_0x34f93a(0x1a1)]}:_0x4f885d!=null&&_0x4f885d['to']&&(_0xd968ec['to']=_0x4f885d['to']),this[_0x34f93a(0x1f6)][_0x34f93a(0x190)](n[_0x34f93a(0x1bd)]['id'],{'unitId':_0x2e3e59,'subUnitId':_0x4df3a6,'connectorShapeId':_0x4d675a[_0x34f93a(0x199)],'width':_0x166050[_0x34f93a(0x1ef)][_0x34f93a(0x1e8)],'height':_0x166050[_0x34f93a(0x1ef)]['height'],'left':_0x166050[_0x34f93a(0x1ef)]['left'],'top':_0x166050[_0x34f93a(0x1ef)][_0x34f93a(0x1c6)],'flipX':_0x166050['worldRect'][_0x34f93a(0x1fb)]||!0x1,'flipY':_0x166050[_0x34f93a(0x1ef)][_0x34f93a(0x198)]||!0x1,'oldAdjustValues':_0x3a9d40,'newAdjustValues':_0x166050[_0x34f93a(0x208)],'newLineType':_0x166050[_0x34f93a(0x19d)],'oldLineType':_0x12259b,'rotation':_0x166050[_0x34f93a(0x205)],'oldRelation':_0x4f885d,'newRelation':_0xd968ec});}[_0x2b89fc(0x195)](_0x4cece4,_0x1def6f,_0x58a9ea,_0x52a3b0){const _0x513ff1=_0x2b89fc;let _0x3709f2=this[_0x513ff1(0x1c8)]['get'](i['IDrawingManagerService'])['getDrawingByParam']({'unitId':_0x1def6f,'subUnitId':_0x58a9ea,'drawingId':_0x52a3b0});if(_0x3709f2!=null&&_0x3709f2[_0x513ff1(0x1a2)]){var _0x946e5d,_0x4dd9f0,_0x2e0521,_0x352d09;_0x4cece4['x']=(_0x946e5d=_0x3709f2[_0x513ff1(0x1a2)][_0x513ff1(0x1ed)])==null?0x0:_0x946e5d,_0x4cece4['y']=(_0x4dd9f0=_0x3709f2['transform'][_0x513ff1(0x1c6)])==null?0x0:_0x4dd9f0,_0x4cece4[_0x513ff1(0x1e8)]=(_0x2e0521=_0x3709f2[_0x513ff1(0x1a2)][_0x513ff1(0x1e8)])==null?_0x4cece4[_0x513ff1(0x1e8)]:_0x2e0521,_0x4cece4[_0x513ff1(0x177)]=(_0x352d09=_0x3709f2['transform'][_0x513ff1(0x177)])==null?_0x4cece4[_0x513ff1(0x177)]:_0x352d09;}let _0x10c309=this[_0x513ff1(0x1c8)][_0x513ff1(0x1c0)](n[_0x513ff1(0x209)])[_0x513ff1(0x1e4)](_0x1def6f,_0x58a9ea,_0x52a3b0);if(_0x10c309){_0x4cece4[_0x513ff1(0x179)]=_0x10c309[_0x513ff1(0x18c)]();let _0x478aad=_0x10c309[_0x513ff1(0x184)]();_0x478aad&&(_0x4cece4['shapeData']=JSON['parse'](JSON[_0x513ff1(0x20d)](_0x478aad)));}}[_0x2b89fc(0x1d5)](_0x35c25e,_0x1708e1,_0x481c84,_0x51a85d,_0x26683b,_0x1ae484,_0x4f7358,_0x5a9d99,_0x29358e){const _0x39a055=_0x2b89fc;let _0x5edcc0=null,_0x35601e=null;return _0x26683b&&(_0x5edcc0=h(_0x35c25e,_0x1708e1,_0x26683b[_0x39a055(0x202)]['drawId'],_0x26683b[_0x39a055(0x1a1)],_0x4f7358,_0x5a9d99)),_0x1ae484&&(_0x35601e=h(_0x35c25e,_0x1708e1,_0x1ae484[_0x39a055(0x202)][_0x39a055(0x199)],_0x1ae484['connectionSiteIndex'],_0x4f7358,_0x5a9d99)),_0x5edcc0||(_0x5edcc0=this[_0x39a055(0x1cc)](_0x35c25e,_0x1708e1,_0x481c84['drawId'],!0x0,_0x35601e,_0x29358e==null?void 0x0:_0x29358e['from'],_0x4f7358,_0x5a9d99)),_0x35601e||(_0x35601e=this[_0x39a055(0x1cc)](_0x35c25e,_0x1708e1,_0x481c84[_0x39a055(0x199)],!0x1,_0x5edcc0,_0x29358e==null?void 0x0:_0x29358e['to'],_0x4f7358,_0x5a9d99)),{'startInfo':_0x5edcc0,'endInfo':_0x35601e};}['_resolveExistingOrFreeEndpoint'](_0x7d3827,_0x5b19ad,_0x40a7a1,_0x2cf051,_0x5a7dd6,_0x3fbbbb,_0x3a792d,_0x247ff5){const _0x196658=_0x2b89fc;if(_0x3fbbbb){let _0x22cd8c=h(_0x7d3827,_0x5b19ad,_0x3fbbbb[_0x196658(0x17b)],_0x3fbbbb[_0x196658(0x207)],_0x3a792d,_0x247ff5);if(_0x22cd8c)return _0x22cd8c;}return _0x5a7dd6?_(_0x7d3827,_0x5b19ad,_0x40a7a1,_0x2cf051,_0x5a7dd6,_0x3a792d,_0x247ff5):null;}};s[_0x2b89fc(0x1d6)]['extend'](v),exports['FConnectorShape']=m,exports[_0x2b89fc(0x1f9)]=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
|
+
function _0x2758(){const _0x426505=['SheetsShapeService','DrawingTypeEnum','resizeEnabled','_sheetInterceptorService','getShapeRelation','setShapeType','UpdateConnectorRelationCommand','getShapeType','default','getOwnPropertyDescriptor','values','parse','_initCommandInterceptor','flipY','getSheetCommandTarget','MUTATION','length','_resourcesManagerService','getDrawingByParam','entries','RemoveSheetsShapeMutation','top','sequenceExecute','angle','UpdateLineShapeResizeCommand','decorate','UpdateSheetsShapeDataMutation','function','_groupIds','drawingType','796780tXxWtO','sheet.mutation.update-shape-type','UniverSheetsShapePlugin','SheetSkeletonService','borderEnabled','_commandService','toJSON','getBatchAddOp','defineProperty','sheet.command.set-shape-text-vertical-toggle','INSERT','startY','_addLineRerouteUpdates','getShapeModel','preRedos','getAdjustValueByName','Disposable','shapeId','sin','relation','syncExecuteCommand','lineShapeId','_linesIds','transformToAxisAlignPosition','getCellIndexAndOffsetByPosition','pluginName','UniverLicensePlugin','packageName','ang','getBasicShapeRelation','getSkeleton','_sheetSkeletonService','SHEET_SHAPE_PLUGIN','ClearSheetDrawingTransformerOperation','_getConnectPointInfo','Plugin','getName','10AoCFTl','transformToDrawingPosition','data','forEach','redos','add','IResourceManagerService','5287456ZhaYkf','position','cos','2387EthtAj','253251tGpMEk','sheet.command.update-shape-type','SetSheetsShapeTextVerticalToggleCommand','IUniverInstanceService','isLineShape','6650778OEOGYk','filter','generateRandomId','index','5WIquwf','width','getLineShapeRelation','sheet.command.toggle-shape-flip','10vTjTzu','string','UpdateSheetsShapeTypeCommand','transform','object','addShape','_initSnapshot','createUniqueShapeName','UPDATE','Injector','from','map','getEndConnectInfo','get','push','_configService','pushUndoRedo','getShapeData','COMMAND','UNIVER_SHEET','symbol','fill','call','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_deserializeShapeForUnit','SetDrawingApplyMutation','removeShape','CommandType','delete','has','flipX','getBasicShapeType','routeConnectorLineShape','type','sheet.mutation.insert-shape','merge','fromJSON','_shapes','@univerjs-pro/sheets-shape','_injector','isFrom','_config','dispose','SetSheetDrawingCommand','hasShape','constructor','getShapeDisplayNames','toPrimitive','SheetInterceptorService','onCommandExecute','updateContext','sheet.command.update-connector-relation','range','getConnectionSiteList','getStartConnectInfo','_disposed','interceptCommand','worldRect','undos','rotateEnabled','DependentOn','_sheetsShapeService','_shapeModelManagerMap','ShapeModel','setConfig','ICommandService','rotation','3555828zkpXjG','_drawingManagerService','registerPluginResource','getDrawingData','sheet.command.set-shape-drawing-data','sheet.command.insert-shape','InsertSheetDrawingCommand','DRAWING_SHAPE','3549615VWKhsi','touchDependencies','insertShape','height','registerCommand','params','InsertSheetsShapeMutation','isHorizontal','disposeWithMe','every','IConfigService','startX','getAdjustNames','_serializeShapeForUnit','_initCommands','isConnectorShape','DrawingApplyType','7PgiBqc','SetSheetsShapeRotateCommand','setShapeData','1.0.0-insiders.20260701-0ef51b0','IUndoRedoService','preUndos','keys','prototype','REMOVE','lineType','getBatchUpdateOp','onStarting','257976AipbNl','cxnIndex','clear','sheet.command.update-line-shape-resize','adjustValues','ensureSkeleton','computeConnectorRouteLayout','Inject','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','RemoveSheetDrawingCommand','UpdateSheetsShapeTypeMutation','toStringTag','_addLineFollowShapeUpdates','SetShapeDrawingDataCommand','_ensureShapeModelManager','result','getShapeTextData','ISheetDrawingService','version','left'];_0x2758=function(){return _0x426505;};return _0x2758();}const _0x3f0db5=_0x3ec1;(function(_0x55f2e3,_0x5a58b3){const _0x3e63e1=_0x3ec1,_0x181d11=_0x55f2e3();while(!![]){try{const _0x3a6c09=parseInt(_0x3e63e1(0x1aa))/0x1*(-parseInt(_0x3e63e1(0x1b7))/0x2)+-parseInt(_0x3e63e1(0x12b))/0x3+-parseInt(_0x3e63e1(0x17a))/0x4+-parseInt(_0x3e63e1(0x1b3))/0x5*(parseInt(_0x3e63e1(0x1af))/0x6)+-parseInt(_0x3e63e1(0x13c))/0x7*(parseInt(_0x3e63e1(0x1a6))/0x8)+parseInt(_0x3e63e1(0x123))/0x9*(parseInt(_0x3e63e1(0x19f))/0xa)+-parseInt(_0x3e63e1(0x1a9))/0xb*(-parseInt(_0x3e63e1(0x148))/0xc);if(_0x3a6c09===_0x5a58b3)break;else _0x181d11['push'](_0x181d11['shift']());}catch(_0x5d0372){_0x181d11['push'](_0x181d11['shift']());}}}(_0x2758,0x9cc3c),Object[_0x3f0db5(0x182)](exports,Symbol[_0x3f0db5(0x153)],{'value':'Module'}));function _0x3ec1(_0x3bca8e,_0x52a064){_0x3bca8e=_0x3bca8e-0xfe;const _0x27587c=_0x2758();let _0x3ec197=_0x27587c[_0x3bca8e];return _0x3ec197;}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(_0x39bc0e){'@babel/helpers - typeof';return o=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x35e6a1){return typeof _0x35e6a1;}:function(_0x46c255){const _0x445363=_0x3ec1;return _0x46c255&&typeof Symbol==_0x445363(0x177)&&_0x46c255[_0x445363(0x10d)]===Symbol&&_0x46c255!==Symbol[_0x445363(0x143)]?_0x445363(0x1cb):typeof _0x46c255;},o(_0x39bc0e);}function s(_0x3f40cf,_0x12722c){const _0x20c9c2=_0x3f0db5;if(o(_0x3f40cf)!=_0x20c9c2(0x1bb)||!_0x3f40cf)return _0x3f40cf;var _0x11f05d=_0x3f40cf[Symbol[_0x20c9c2(0x10f)]];if(_0x11f05d!==void 0x0){var _0x4480df=_0x11f05d[_0x20c9c2(0x1cd)](_0x3f40cf,_0x12722c||_0x20c9c2(0x164));if(o(_0x4480df)!=_0x20c9c2(0x1bb))return _0x4480df;throw TypeError(_0x20c9c2(0x1cf));}return(_0x12722c===_0x20c9c2(0x1b8)?String:Number)(_0x3f40cf);}function c(_0xa9cf9b){var _0x4727ba=s(_0xa9cf9b,'string');return o(_0x4727ba)=='symbol'?_0x4727ba:_0x4727ba+'';}function l(_0x40393e,_0x51aba7,_0x39c721){const _0x4c2560=_0x3f0db5;return(_0x51aba7=c(_0x51aba7))in _0x40393e?Object[_0x4c2560(0x182)](_0x40393e,_0x51aba7,{'value':_0x39c721,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40393e[_0x51aba7]=_0x39c721,_0x40393e;}var u=class extends t['Disposable']{constructor(){const _0x4478f2=_0x3f0db5;super(),l(this,_0x4478f2(0x105),new Map()),l(this,_0x4478f2(0x190),new Set()),l(this,_0x4478f2(0x178),new Set());}[_0x3f0db5(0x1bc)](_0x3b4029,_0xd54236,_0xe175b3,_0x4ea706){const _0x4e1138=_0x3f0db5;let _0x155ad1=new e[(_0x4e1138(0x11f))](_0x3b4029,_0xd54236,_0xe175b3,_0x4ea706);return this[_0x4e1138(0x105)][_0x4e1138(0x1ce)](_0xd54236,_0x155ad1),(0x0,e[_0x4e1138(0x13a)])(_0x3b4029)&&this['_linesIds']['add'](_0xd54236),_0x155ad1;}[_0x3f0db5(0x197)](_0x3fb9f3){const _0x16f461=_0x3f0db5;let _0x15149e=[];for(let _0x26fc63 of this['_linesIds']){let _0x4a6f31=this[_0x16f461(0x105)][_0x16f461(0x1c4)](_0x26fc63);if(_0x4a6f31){let _0x4d27f1=_0x4a6f31[_0x16f461(0x160)]();if(_0x4d27f1){var _0xbcf0c5,_0x513fda;((_0xbcf0c5=_0x4d27f1['from'])==null?void 0x0:_0xbcf0c5[_0x16f461(0x18b)])===_0x3fb9f3&&_0x15149e[_0x16f461(0x1c5)]({..._0x4d27f1[_0x16f461(0x1c1)],'lineShapeId':_0x26fc63,'isFrom':!0x0}),((_0x513fda=_0x4d27f1['to'])==null?void 0x0:_0x513fda[_0x16f461(0x18b)])===_0x3fb9f3&&_0x15149e[_0x16f461(0x1c5)]({..._0x4d27f1['to'],'lineShapeId':_0x26fc63,'isFrom':!0x1});}}}return _0x15149e;}[_0x3f0db5(0x1b5)](_0x47aadd){const _0x1328a7=_0x3f0db5;let _0x398545=this[_0x1328a7(0x105)]['get'](_0x47aadd);if(_0x398545)return _0x398545['getShapeRelation']();}['getShapeType'](_0x19fa44){const _0x27e80a=_0x3f0db5;let _0x3dc2f7=this[_0x27e80a(0x105)][_0x27e80a(0x1c4)](_0x19fa44);if(_0x3dc2f7)return _0x3dc2f7[_0x27e80a(0x163)]();}['hasShape'](_0x262262){const _0x501511=_0x3f0db5;return this['_shapes'][_0x501511(0x1d5)](_0x262262);}[_0x3f0db5(0x10e)](){const _0x50b32c=_0x3f0db5;return Array[_0x50b32c(0x1c1)](this['_shapes'][_0x50b32c(0x166)]())[_0x50b32c(0x1c2)](_0x3080da=>_0x3080da[_0x50b32c(0x19e)]()||_0x3080da['getId']());}[_0x3f0db5(0x1d2)](_0x32d522){const _0x288048=_0x3f0db5;let _0x445342=this[_0x288048(0x105)][_0x288048(0x1c4)](_0x32d522);_0x445342&&((0x0,e[_0x288048(0x13a)])(_0x445342[_0x288048(0x163)]())&&this[_0x288048(0x190)]['delete'](_0x32d522),this[_0x288048(0x105)][_0x288048(0x1d4)](_0x32d522));}[_0x3f0db5(0x180)](){const _0x11885b=_0x3f0db5;let _0x524a43=[];return this[_0x11885b(0x105)]['forEach'](_0x29d65f=>{const _0x40264f=_0x11885b;_0x524a43[_0x40264f(0x1c5)](_0x29d65f[_0x40264f(0x180)]());}),_0x524a43;}[_0x3f0db5(0x104)](_0xa4f958){const _0xcd1796=_0x3f0db5;for(let _0xb8a9e5 of _0xa4f958){let {id:_0x8c6a17,shapeType:_0x5a1ddb,name:_0x306691}=_0xb8a9e5,_0x5d048f=this[_0xcd1796(0x1bc)](_0x5a1ddb,_0x8c6a17,_0xb8a9e5['shapeData'],_0x306691);_0x5d048f&&_0x5d048f[_0xcd1796(0x1ae)]()&&this[_0xcd1796(0x190)][_0xcd1796(0x1a4)](_0x8c6a17);}}[_0x3f0db5(0x10a)](){const _0x5bb495=_0x3f0db5;this[_0x5bb495(0x117)]||(this[_0x5bb495(0x105)][_0x5bb495(0x1a2)](_0x2ed908=>{_0x2ed908['dispose']();}),this[_0x5bb495(0x105)][_0x5bb495(0x14a)](),this['_linesIds']['clear'](),this[_0x5bb495(0x178)]['clear'](),super[_0x5bb495(0x10a)]());}};function d(_0x17d623,_0x3b7521){return function(_0xe8e59b,_0x17ddc5){_0x3b7521(_0xe8e59b,_0x17ddc5,_0x17d623);};}function f(_0x37906c,_0x25467d,_0x2c0d11,_0x114c9e){const _0x19dbb6=_0x3f0db5;var _0x555c74=arguments[_0x19dbb6(0x16c)],_0x191175=_0x555c74<0x3?_0x25467d:_0x114c9e===null?_0x114c9e=Object[_0x19dbb6(0x165)](_0x25467d,_0x2c0d11):_0x114c9e,_0x4d8e2c;if(typeof Reflect==_0x19dbb6(0x1bb)&&typeof Reflect[_0x19dbb6(0x175)]==_0x19dbb6(0x177))_0x191175=Reflect[_0x19dbb6(0x175)](_0x37906c,_0x25467d,_0x2c0d11,_0x114c9e);else{for(var _0x52a747=_0x37906c[_0x19dbb6(0x16c)]-0x1;_0x52a747>=0x0;_0x52a747--)(_0x4d8e2c=_0x37906c[_0x52a747])&&(_0x191175=(_0x555c74<0x3?_0x4d8e2c(_0x191175):_0x555c74>0x3?_0x4d8e2c(_0x25467d,_0x2c0d11,_0x191175):_0x4d8e2c(_0x25467d,_0x2c0d11))||_0x191175);}return _0x555c74>0x3&&_0x191175&&Object[_0x19dbb6(0x182)](_0x25467d,_0x2c0d11,_0x191175),_0x191175;}let p=class extends t[_0x3f0db5(0x18a)]{constructor(_0x356fba){const _0x7ebefe=_0x3f0db5;super(),this['_resourcesManagerService']=_0x356fba,l(this,_0x7ebefe(0x11e),new Map()),this[_0x7ebefe(0x1bd)]();}[_0x3f0db5(0x156)](_0x194237,_0x51844d){const _0x14d807=_0x3f0db5;let _0x4ad894=this[_0x14d807(0x11e)][_0x14d807(0x1c4)](_0x194237);_0x4ad894||(_0x4ad894=new Map(),this[_0x14d807(0x11e)][_0x14d807(0x1ce)](_0x194237,_0x4ad894));let _0x513825=_0x4ad894['get'](_0x51844d);return _0x513825||(_0x513825=new u(),_0x4ad894['set'](_0x51844d,_0x513825)),_0x513825;}[_0x3f0db5(0x12d)](_0x4f9719,_0x452d68,_0x484cc8,_0x244fff,_0x123809,_0xb7b3e7){const _0x576645=_0x3f0db5;this['_ensureShapeModelManager'](_0x4f9719,_0x452d68)[_0x576645(0x1bc)](_0x484cc8,_0x244fff,_0x123809,_0xb7b3e7);}[_0x3f0db5(0x1d2)](_0x22f1fb,_0x55c931,_0x239a8d){const _0x1eaa42=_0x3f0db5;this['_ensureShapeModelManager'](_0x22f1fb,_0x55c931)[_0x1eaa42(0x1d2)](_0x239a8d);}[_0x3f0db5(0xff)](_0x3ce2a5,_0x2a452b,_0x72ee08){const _0x4370d1=_0x3f0db5;return this[_0x4370d1(0x156)](_0x3ce2a5,_0x2a452b)[_0x4370d1(0x163)](_0x72ee08);}['getShapeType'](_0x463ec9,_0x1f3ce3,_0x1118a3){const _0xa2725=_0x3f0db5;return this[_0xa2725(0x156)](_0x463ec9,_0x1f3ce3)[_0xa2725(0x163)](_0x1118a3);}[_0x3f0db5(0x10c)](_0x73362c,_0x892683,_0x12f9e7){const _0x207af3=_0x3f0db5;return this[_0x207af3(0x156)](_0x73362c,_0x892683)['hasShape'](_0x12f9e7);}['getShapeTypeById'](_0x489f31,_0x1f44f3,_0x145a7e){const _0x1f233c=_0x3f0db5;return this[_0x1f233c(0x156)](_0x489f31,_0x1f44f3)['getShapeType'](_0x145a7e);}['getShapeDataById'](_0x204ba5,_0x365a45,_0x2e5856){const _0x278def=_0x3f0db5;let _0x593b27=this[_0x278def(0x156)](_0x204ba5,_0x365a45);if(!_0x593b27['getShapeType'](_0x2e5856))return;let _0x1dd607=_0x593b27[_0x278def(0x105)][_0x278def(0x1c4)](_0x2e5856);if(_0x1dd607)return _0x1dd607['getShapeData']();}[_0x3f0db5(0x10e)](_0x1ca128,_0x4ac1d1){const _0x3734c6=_0x3f0db5;return this[_0x3734c6(0x156)](_0x1ca128,_0x4ac1d1)[_0x3734c6(0x10e)]();}[_0x3f0db5(0x187)](_0x2b8da0,_0x54df0d,_0x469c61){const _0x32c2f2=_0x3f0db5;return this[_0x32c2f2(0x156)](_0x2b8da0,_0x54df0d)[_0x32c2f2(0x105)][_0x32c2f2(0x1c4)](_0x469c61);}[_0x3f0db5(0x197)](_0x5ad4b7,_0xcf7c43,_0x60eeec){const _0x4c0087=_0x3f0db5;return this[_0x4c0087(0x156)](_0x5ad4b7,_0xcf7c43)['getBasicShapeRelation'](_0x60eeec);}[_0x3f0db5(0x1b5)](_0x3fe979,_0x14cc88,_0x554054){const _0x78b6e9=_0x3f0db5;let _0x3e9694=this[_0x78b6e9(0x156)](_0x3fe979,_0x14cc88)[_0x78b6e9(0x105)][_0x78b6e9(0x1c4)](_0x554054);if(_0x3e9694)return _0x3e9694[_0x78b6e9(0x160)]();}[_0x3f0db5(0x161)](){}['_serializeShapeForUnit'](_0x3b08c7){const _0x1f3fd7=_0x3f0db5;let _0x528b0c={},_0x218ee4=this[_0x1f3fd7(0x11e)]['get'](_0x3b08c7);return _0x218ee4&&_0x218ee4['forEach']((_0x426988,_0x4e4785)=>{let _0xd44fdc=_0x426988['toJSON']();_0xd44fdc['length']>0x0&&(_0x528b0c[_0x4e4785]=_0xd44fdc);}),JSON['stringify'](_0x528b0c);}[_0x3f0db5(0x1d0)](_0x126b22,_0x1fd131){const _0x55157d=_0x3f0db5;Object[_0x55157d(0x142)](_0x1fd131)[_0x55157d(0x1a2)](_0x50013e=>{const _0x347c3d=_0x55157d;this[_0x347c3d(0x156)](_0x126b22,_0x50013e)[_0x347c3d(0x104)](_0x1fd131[_0x50013e]);});}[_0x3f0db5(0x180)](){const _0xec51b8=_0x3f0db5;let _0xe701b3={};return this[_0xec51b8(0x11e)][_0xec51b8(0x1a2)]((_0x49c31a,_0x2a5a0d)=>{const _0x2df4d0=_0xec51b8;_0xe701b3[_0x2a5a0d]={},_0x49c31a[_0x2df4d0(0x1a2)]((_0x3b7e54,_0x323811)=>{_0xe701b3[_0x2a5a0d][_0x323811]=_0x3b7e54['toJSON']();});}),_0xe701b3;}[_0x3f0db5(0x104)](_0x5224f6){const _0xef41b4=_0x3f0db5;Object[_0xef41b4(0x142)](_0x5224f6)[_0xef41b4(0x1a2)](_0x304f07=>{const _0x43c95e=_0xef41b4;let _0x441f6e=_0x5224f6[_0x304f07];Object[_0x43c95e(0x142)](_0x441f6e)[_0x43c95e(0x1a2)](_0xaa70a8=>{const _0x2028b1=_0x43c95e;this['_ensureShapeModelManager'](_0x304f07,_0xaa70a8)[_0x2028b1(0x104)](_0x441f6e[_0xaa70a8]);});});}['_initSnapshot'](){const _0xfa0ecf=_0x3f0db5;this[_0xfa0ecf(0x16d)][_0xfa0ecf(0x125)]({'pluginName':_0xfa0ecf(0x19a),'businesses':[t['UniverInstanceType'][_0xfa0ecf(0x1ca)]],'toJson':_0x90d355=>this[_0xfa0ecf(0x138)](_0x90d355),'parseJson':_0x249f9c=>JSON[_0xfa0ecf(0x167)](_0x249f9c),'onLoad':(_0x276f9f,_0x5647c0)=>{const _0x58d1ce=_0xfa0ecf;this[_0x58d1ce(0x1d0)](_0x276f9f,_0x5647c0);},'onUnLoad':_0x56789=>{const _0x1486f9=_0xfa0ecf;let _0x29dd74=this['_shapeModelManagerMap']['get'](_0x56789);_0x29dd74&&(_0x29dd74['forEach'](_0x5385f2=>{const _0x4b21df=_0x3ec1;_0x5385f2[_0x4b21df(0x10a)]();}),this[_0x1486f9(0x11e)][_0x1486f9(0x1d4)](_0x56789));}});}[_0x3f0db5(0x10a)](){const _0x5d2087=_0x3f0db5;this[_0x5d2087(0x11e)][_0x5d2087(0x1a2)](_0x4d3f8f=>{const _0x594826=_0x5d2087;_0x4d3f8f[_0x594826(0x1a2)](_0x168beb=>{_0x168beb['dispose']();});});}};p=f([d(0x0,t[_0x3f0db5(0x1a5)])],p);const m={'id':_0x3f0db5(0x102),'type':t['CommandType'][_0x3f0db5(0x16b)],'handler':(_0x138be4,_0x113818)=>{const _0x3aae08=_0x3f0db5;let {unitId:_0x434629,subUnitId:_0x5c6aa2,shapeType:_0x5599f0,shapeId:_0x3f3a80,shapeName:_0x30c8b1,shapeData:_0xb6fadf}=_0x113818;return _0x138be4['get'](p)[_0x3aae08(0x12d)](_0x434629,_0x5c6aa2,_0x5599f0,_0x3f3a80,_0xb6fadf,_0x30c8b1),!0x0;}},h={'id':'sheet.mutation.remove-shape','type':t[_0x3f0db5(0x1d3)][_0x3f0db5(0x16b)],'handler':(_0x460121,_0x2f8fed)=>{const _0xc82b47=_0x3f0db5;let {unitId:_0x48bd2e,subUnitId:_0x4fe1c2,shapeId:_0x234497}=_0x2f8fed;return _0x460121['get'](p)[_0xc82b47(0x1d2)](_0x48bd2e,_0x4fe1c2,_0x234497),!0x0;}},g={'type':t[_0x3f0db5(0x1d3)][_0x3f0db5(0x1c9)],'id':_0x3f0db5(0x128),'handler':(_0x4c13dc,_0x5914d6)=>{const _0x25bb4d=_0x3f0db5;var _0x1ad789,_0x51f334,_0x30d7ec;let _0x4d13b5=(0x0,n[_0x25bb4d(0x16a)])(_0x4c13dc['get'](t['IUniverInstanceService']),_0x5914d6);if(!_0x4d13b5)return!0x1;let _0x2d8743=_0x4c13dc[_0x25bb4d(0x1c4)](n['SheetSkeletonService']),{unitId:_0x486d2c,subUnitId:_0x55998c}=_0x4d13b5,_0x6475eb=_0x2d8743['ensureSkeleton'](_0x486d2c,_0x55998c);if(!_0x6475eb)return!0x1;let _0x4fef61=_0x4c13dc['get'](t[_0x25bb4d(0x121)]),_0x22a298=_0x4c13dc[_0x25bb4d(0x1c4)](t[_0x25bb4d(0x140)]),_0x4a3abf=_0x4c13dc[_0x25bb4d(0x1c4)](n['SheetInterceptorService']),_0x5958c1=_0x4c13dc[_0x25bb4d(0x1c4)](r[_0x25bb4d(0x159)]),_0x4890f0=_0x4c13dc[_0x25bb4d(0x1c4)](p),{shapeType:_0x525bca,shapeData:_0x56f6b5}=_0x5914d6,_0x4076f8=_0x5914d6[_0x25bb4d(0x18b)]||(0x0,t[_0x25bb4d(0x1b1)])(),_0x467421={'unitId':_0x486d2c,'subUnitId':_0x55998c,'shapeId':_0x4076f8,'shapeName':(_0x1ad789=_0x5914d6['shapeName'])==null?(0x0,e[_0x25bb4d(0x1be)])(_0x525bca,_0x4890f0[_0x25bb4d(0x10e)](_0x486d2c,_0x55998c)):_0x1ad789,'shapeType':_0x525bca,'shapeData':_0x56f6b5},_0x143830=_0x5914d6[_0x25bb4d(0x1b4)]||0xc8,_0xb78085=_0x5914d6['height']||0xc8,_0x228939=0x0,_0x26591f=0x0,_0x32da95={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x5e8297={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x5914d6[_0x25bb4d(0x1a7)]){let {x:_0x13fc54,y:_0x15ce93}=_0x5914d6['position'];_0x228939=_0x13fc54,_0x26591f=_0x15ce93,_0x32da95=_0x6475eb[_0x25bb4d(0x192)](_0x13fc54,_0x15ce93),_0x5e8297=_0x6475eb[_0x25bb4d(0x192)](_0x13fc54+_0x143830,_0x15ce93+_0xb78085);}else{if(_0x5914d6[_0x25bb4d(0x114)]){let {startRow:_0x312811,startColumn:_0x557006}=_0x5914d6[_0x25bb4d(0x114)];_0x32da95={'row':_0x312811,'rowOffset':0xa,'column':_0x557006,'columnOffset':0xa};let _0x114c85=_0x6475eb['getCellWithCoordByIndex'](_0x312811,_0x557006);_0x228939=_0x114c85[_0x25bb4d(0x136)]+0xa,_0x26591f=_0x114c85[_0x25bb4d(0x185)]+0xa,_0x5e8297=_0x6475eb['getCellIndexAndOffsetByPosition'](_0x228939+_0x143830,_0x26591f+_0xb78085);}}let _0x270c7e={'from':_0x32da95,'to':_0x5e8297},_0x4362e3={'unitId':_0x486d2c,'subUnitId':_0x55998c,'drawingId':_0x4076f8,'drawingType':t[_0x25bb4d(0x15d)][_0x25bb4d(0x12a)],'sheetTransform':_0x270c7e,'transform':{'left':_0x228939,'top':_0x26591f,'width':_0x143830,'height':_0xb78085},'data':{'shapeType':_0x525bca,'shapeData':_0x56f6b5},'axisAlignSheetTransform':_0x270c7e,'allowTransform':!0x0};(0x0,e[_0x25bb4d(0x13a)])(_0x525bca)&&(_0x4362e3['data'][_0x25bb4d(0x1cc)]=!0x1,_0x4362e3[_0x25bb4d(0x1a1)][_0x25bb4d(0x11b)]=!0x1,_0x4362e3[_0x25bb4d(0x1a1)][_0x25bb4d(0x15e)]=!0x1,_0x4362e3[_0x25bb4d(0x1a1)]['borderEnabled']=!0x1,_0x4362e3[_0x25bb4d(0x1ba)][_0x25bb4d(0x11b)]=!0x1,_0x4362e3[_0x25bb4d(0x1ba)][_0x25bb4d(0x15e)]=!0x1,_0x4362e3[_0x25bb4d(0x1ba)]['borderEnabled']=!0x1);let {undo:_0x45ce5b,redo:_0x4b5125,objects:_0x35c910}=_0x5958c1[_0x25bb4d(0x181)]([_0x4362e3]),_0x20890e=_0x4a3abf[_0x25bb4d(0x111)]({'id':r[_0x25bb4d(0x129)]['id'],'params':{'unitId':_0x486d2c,'drawings':[_0x4362e3]}}),_0xdf86c=[...(_0x51f334=_0x20890e[_0x25bb4d(0x188)])==null?[]:_0x51f334,{'id':r[_0x25bb4d(0x1d1)]['id'],'params':{'unitId':_0x486d2c,'subUnitId':_0x55998c,'op':_0x4b5125,'objects':_0x35c910,'type':r[_0x25bb4d(0x13b)][_0x25bb4d(0x184)]}},{'id':r[_0x25bb4d(0x19b)]['id'],'params':[_0x486d2c]},..._0x20890e[_0x25bb4d(0x1a3)],{'id':m['id'],'params':_0x467421}],_0x1de8df=[{'id':h['id'],'params':{'unitId':_0x486d2c,'subUnitId':_0x55998c,'shapeId':_0x4076f8}},...(_0x30d7ec=_0x20890e[_0x25bb4d(0x141)])==null?[]:_0x30d7ec,{'id':r[_0x25bb4d(0x1d1)]['id'],'params':{'unitId':_0x486d2c,'subUnitId':_0x55998c,'op':_0x45ce5b,'objects':_0x35c910,'type':r['DrawingApplyType'][_0x25bb4d(0x144)]}},{'id':r[_0x25bb4d(0x19b)]['id'],'params':[_0x486d2c]},..._0x20890e[_0x25bb4d(0x11a)]];return(0x0,t['sequenceExecute'])(_0xdf86c,_0x4fef61)[_0x25bb4d(0x157)]?(_0x22a298[_0x25bb4d(0x1c7)]({'unitID':_0x486d2c,'undoMutations':_0x1de8df,'redoMutations':_0xdf86c}),!0x0):!0x1;}},_={'id':'sheet.mutation.update-shape-data','type':t[_0x3f0db5(0x1d3)]['MUTATION'],'handler':(_0x36cd40,_0x10c412)=>{const _0x4a2525=_0x3f0db5;let {unitId:_0x53b294,subUnitId:_0x1dc085,shapeType:_0x573e49,shapeId:_0x28118f,shapeData:_0x137aa4}=_0x10c412,_0x52bab8=_0x36cd40[_0x4a2525(0x1c4)](p)[_0x4a2525(0x187)](_0x53b294,_0x1dc085,_0x28118f);return _0x52bab8&&(_0x573e49!==void 0x0&&_0x52bab8[_0x4a2525(0x161)](_0x573e49),_0x137aa4&&(_0x52bab8==null||_0x52bab8[_0x4a2525(0x13e)](_0x137aa4,!0x0))),!0x0;}},v={'type':t[_0x3f0db5(0x1d3)][_0x3f0db5(0x1c9)],'id':_0x3f0db5(0x127),'handler':(_0xe44d84,_0x476131)=>{const _0x48e1db=_0x3f0db5;var _0x21fe01,_0x357fda;let _0x1ecdc3=(0x0,n[_0x48e1db(0x16a)])(_0xe44d84['get'](t[_0x48e1db(0x1ad)]),_0x476131);if(!_0x1ecdc3)return!0x1;let _0x348173=_0xe44d84[_0x48e1db(0x1c4)](n[_0x48e1db(0x17d)]),{unitId:_0x450579,subUnitId:_0x4b0425}=_0x1ecdc3,_0x1b2a99=_0x348173[_0x48e1db(0x14d)](_0x450579,_0x4b0425);if(!_0x1b2a99)return!0x1;let _0x5de782=_0xe44d84[_0x48e1db(0x1c4)](p),{shapeId:_0xee1973,shapeType:_0x181bcc,shapeData:_0x5a65d9,position:_0x550090,width:_0x185832,height:_0x40e152}=_0x476131,_0x51f29b=_0x5de782[_0x48e1db(0x187)](_0x450579,_0x4b0425,_0xee1973);if(!_0x51f29b)return!0x1;let _0x5eb486=_0xe44d84['get'](t[_0x48e1db(0x121)]),_0x2ee3b9=_0xe44d84['get'](t['IUndoRedoService']),_0x215412=_0xe44d84['get'](n[_0x48e1db(0x110)]),_0x56e170=_0xe44d84[_0x48e1db(0x1c4)](r[_0x48e1db(0x159)]),_0x386def={'unitId':_0x450579,'subUnitId':_0x4b0425,'shapeId':_0xee1973,'shapeType':_0x181bcc,'shapeData':_0x5a65d9},_0x1937f9=_0x51f29b[_0x48e1db(0x163)](),_0x4fcf21=_0x51f29b[_0x48e1db(0x1c8)](),{x:_0xdcf0da,y:_0x3a509f}=_0x550090,_0x323986={'from':_0x1b2a99[_0x48e1db(0x192)](_0xdcf0da,_0x3a509f),'to':_0x1b2a99[_0x48e1db(0x192)](_0xdcf0da+_0x185832,_0x3a509f+_0x40e152)},_0x25241c={'unitId':_0x450579,'subUnitId':_0x4b0425,'drawingId':_0xee1973,'drawingType':t[_0x48e1db(0x15d)][_0x48e1db(0x12a)],'sheetTransform':_0x323986,'transform':{'left':_0xdcf0da,'top':_0x3a509f,'width':_0x185832,'height':_0x40e152},'data':{'shapeType':_0x181bcc,'shapeData':_0x5a65d9},'axisAlignSheetTransform':_0x323986,'allowTransform':!0x0};(0x0,e[_0x48e1db(0x13a)])(_0x181bcc)&&(_0x25241c['data'][_0x48e1db(0x1cc)]=!0x1,_0x25241c[_0x48e1db(0x1a1)][_0x48e1db(0x11b)]=!0x1,_0x25241c['data']['resizeEnabled']=!0x1,_0x25241c[_0x48e1db(0x1a1)][_0x48e1db(0x17e)]=!0x1,_0x25241c[_0x48e1db(0x1ba)][_0x48e1db(0x11b)]=!0x1,_0x25241c['transform']['resizeEnabled']=!0x1,_0x25241c[_0x48e1db(0x1ba)][_0x48e1db(0x17e)]=!0x1);let {undo:_0x28b236,redo:_0x82a0e8,objects:_0x2abac5}=_0x56e170[_0x48e1db(0x146)]([_0x25241c]),_0xca347c=_0x215412['onCommandExecute']({'id':r[_0x48e1db(0x10b)]['id'],'params':{'unitId':_0x450579,'drawings':[_0x25241c]}}),_0x401470=[...(_0x21fe01=_0xca347c[_0x48e1db(0x188)])==null?[]:_0x21fe01,{'id':r[_0x48e1db(0x1d1)]['id'],'params':{'unitId':_0x450579,'subUnitId':_0x4b0425,'op':_0x82a0e8,'objects':_0x2abac5,'type':r['DrawingApplyType'][_0x48e1db(0x1bf)]}},{'id':r[_0x48e1db(0x19b)]['id'],'params':[_0x450579]},..._0xca347c[_0x48e1db(0x1a3)],{'id':_['id'],'params':_0x386def}],_0xa6e334=[...(_0x357fda=_0xca347c[_0x48e1db(0x141)])==null?[]:_0x357fda,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x450579,'subUnitId':_0x4b0425,'op':_0x28b236,'objects':_0x2abac5,'type':r[_0x48e1db(0x13b)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x450579]},..._0xca347c[_0x48e1db(0x11a)],{'id':_['id'],'params':{'unitId':_0x450579,'subUnitId':_0x4b0425,'shapeType':_0x1937f9,'shapeId':_0xee1973,'shapeData':_0x4fcf21}}];return(0x0,t[_0x48e1db(0x172)])(_0x401470,_0x5eb486)[_0x48e1db(0x157)]?(_0x2ee3b9[_0x48e1db(0x1c7)]({'unitID':_0x450579,'undoMutations':_0xa6e334,'redoMutations':_0x401470}),!0x0):!0x1;}},y={'type':t[_0x3f0db5(0x1d3)][_0x3f0db5(0x1c9)],'id':_0x3f0db5(0x1b6),'handler':(_0x593435,_0x35db88)=>{const _0x129f9f=_0x3f0db5;var _0x541714,_0x203cc5;let _0x45072d=(0x0,n[_0x129f9f(0x16a)])(_0x593435[_0x129f9f(0x1c4)](t[_0x129f9f(0x1ad)]),_0x35db88);if(!_0x45072d)return!0x1;let _0x5581c3=_0x593435[_0x129f9f(0x1c4)](n['SheetSkeletonService']),{unitId:_0x471553,subUnitId:_0x1a3f56}=_0x45072d,_0x59d3e2=_0x5581c3[_0x129f9f(0x198)](_0x471553,_0x1a3f56);if(!_0x59d3e2)return!0x1;let _0x160f19=_0x593435[_0x129f9f(0x1c4)](r[_0x129f9f(0x159)]),{shapeId:_0x327dbe,flipH:_0x514cf5,flipV:_0x215b16}=_0x35db88,_0x4c92fa=_0x160f19[_0x129f9f(0x16e)]({'unitId':_0x471553,'subUnitId':_0x1a3f56,'drawingId':_0x327dbe});if(!_0x4c92fa)return!0x1;let _0x55c1bd=_0x593435[_0x129f9f(0x1c4)](p)[_0x129f9f(0x187)](_0x471553,_0x1a3f56,_0x327dbe);if(!_0x55c1bd)return!0x1;let _0x1855e7=_0x593435[_0x129f9f(0x1c4)](t[_0x129f9f(0x121)]),_0x36db00=_0x593435[_0x129f9f(0x1c4)](t['IUndoRedoService']),_0x2dfc34=_0x593435[_0x129f9f(0x1c4)](n['SheetInterceptorService']),_0x4eedc6={..._0x4c92fa['transform']};_0x514cf5!==void 0x0&&(_0x4eedc6[_0x129f9f(0xfe)]=!_0x4eedc6['flipX']),_0x215b16!==void 0x0&&(_0x4eedc6[_0x129f9f(0x169)]=!_0x4eedc6[_0x129f9f(0x169)]);let _0x5853db=(0x0,r[_0x129f9f(0x1a0)])(_0x4eedc6,_0x59d3e2),_0x332572=(0x0,r['transformToAxisAlignPosition'])(_0x4eedc6,_0x59d3e2),_0x4a42d5=_0x55c1bd[_0x129f9f(0x163)](),_0xd271f4=_0x55c1bd[_0x129f9f(0x1c8)](),_0x84ae71={'unitId':_0x471553,'subUnitId':_0x1a3f56,'drawingId':_0x327dbe,'drawingType':t['DrawingTypeEnum'][_0x129f9f(0x12a)],'sheetTransform':_0x5853db,'transform':_0x4eedc6,'data':{'shapeType':_0x4a42d5,'shapeData':_0xd271f4},'axisAlignSheetTransform':_0x332572,'allowTransform':!0x0},{undo:_0x31c172,redo:_0x3ef961,objects:_0x3e785b}=_0x160f19['getBatchUpdateOp']([_0x84ae71]),_0x584e01=_0x2dfc34[_0x129f9f(0x111)]({'id':r[_0x129f9f(0x10b)]['id'],'params':{'unitId':_0x471553,'drawings':[_0x84ae71]}}),_0x4f1e90=[...(_0x541714=_0x584e01[_0x129f9f(0x188)])==null?[]:_0x541714,{'id':r[_0x129f9f(0x1d1)]['id'],'params':{'unitId':_0x471553,'subUnitId':_0x1a3f56,'op':_0x3ef961,'objects':_0x3e785b,'type':r['DrawingApplyType'][_0x129f9f(0x1bf)]}},{'id':r[_0x129f9f(0x19b)]['id'],'params':[_0x471553]},..._0x584e01['redos']],_0x43fd7d=[...(_0x203cc5=_0x584e01[_0x129f9f(0x141)])==null?[]:_0x203cc5,{'id':r[_0x129f9f(0x1d1)]['id'],'params':{'unitId':_0x471553,'subUnitId':_0x1a3f56,'op':_0x31c172,'objects':_0x3e785b,'type':r[_0x129f9f(0x13b)][_0x129f9f(0x1bf)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x471553]},..._0x584e01[_0x129f9f(0x11a)]];if((0x0,e[_0x129f9f(0x13a)])(_0x4a42d5)){let _0x1f7236=_0x55c1bd[_0x129f9f(0x160)]();if(_0x1f7236){let _0x2399b0={..._0x1f7236};_0x2399b0[_0x129f9f(0x1c1)]=void 0x0,_0x2399b0['to']=void 0x0,_0x4f1e90['push']({'id':_['id'],'params':{'unitId':_0x471553,'subUnitId':_0x1a3f56,'shapeId':_0x327dbe,'shapeType':_0x4a42d5,'shapeData':{'relation':_0x2399b0}}}),_0x43fd7d['push']({'id':_['id'],'params':{'unitId':_0x471553,'subUnitId':_0x1a3f56,'shapeId':_0x327dbe,'shapeType':_0x4a42d5,'shapeData':{'relation':_0x1f7236}}});}}return(0x0,t[_0x129f9f(0x172)])(_0x4f1e90,_0x1855e7)[_0x129f9f(0x157)]?(_0x36db00[_0x129f9f(0x1c7)]({'unitID':_0x471553,'undoMutations':_0x43fd7d,'redoMutations':_0x4f1e90}),!0x0):!0x1;}},b={'type':t[_0x3f0db5(0x1d3)][_0x3f0db5(0x1c9)],'id':'sheet.command.set-shape-rotate','handler':(_0x242017,_0x4470fe)=>{const _0x53b588=_0x3f0db5;var _0x161fef,_0x5e1457;let _0x547114=(0x0,n[_0x53b588(0x16a)])(_0x242017[_0x53b588(0x1c4)](t['IUniverInstanceService']),_0x4470fe);if(!_0x547114)return!0x1;let _0x37b376=_0x242017[_0x53b588(0x1c4)](n[_0x53b588(0x17d)]),{unitId:_0x4a2fbd,subUnitId:_0x19fcc9}=_0x547114,_0x247dfa=_0x37b376[_0x53b588(0x198)](_0x4a2fbd,_0x19fcc9);if(!_0x247dfa)return!0x1;let _0x544846=_0x242017[_0x53b588(0x1c4)](r[_0x53b588(0x159)]),{shapeId:_0x56b2cc,rotate:_0x304fd6}=_0x4470fe,_0x56ae2d=_0x544846[_0x53b588(0x16e)]({'unitId':_0x4a2fbd,'subUnitId':_0x19fcc9,'drawingId':_0x56b2cc});if(!_0x56ae2d)return!0x1;let _0x23ee9b=_0x242017[_0x53b588(0x1c4)](p)[_0x53b588(0x187)](_0x4a2fbd,_0x19fcc9,_0x56b2cc);if(!_0x23ee9b)return!0x1;let _0xaaeb0e=_0x242017[_0x53b588(0x1c4)](t[_0x53b588(0x121)]),_0x1114ef=_0x242017[_0x53b588(0x1c4)](t[_0x53b588(0x140)]),_0x38e9fd=_0x242017[_0x53b588(0x1c4)](n['SheetInterceptorService']),_0xf44f6f={..._0x56ae2d[_0x53b588(0x1ba)]};_0x304fd6!==void 0x0&&(_0xf44f6f[_0x53b588(0x173)]=(_0xf44f6f[_0x53b588(0x173)]||0x0)+_0x304fd6);let _0x1cf8c8=(0x0,r[_0x53b588(0x1a0)])(_0xf44f6f,_0x247dfa),_0x223083=(0x0,r[_0x53b588(0x191)])(_0xf44f6f,_0x247dfa),_0x2897bd=_0x23ee9b['getShapeType'](),_0x4fce4=_0x23ee9b[_0x53b588(0x1c8)](),_0x5e1213={'unitId':_0x4a2fbd,'subUnitId':_0x19fcc9,'drawingId':_0x56b2cc,'drawingType':t[_0x53b588(0x15d)][_0x53b588(0x12a)],'sheetTransform':_0x1cf8c8,'transform':_0xf44f6f,'data':{'shapeType':_0x2897bd,'shapeData':_0x4fce4},'axisAlignSheetTransform':_0x223083,'allowTransform':!0x0},{undo:_0x2110b0,redo:_0x42e679,objects:_0xa9ba75}=_0x544846[_0x53b588(0x146)]([_0x5e1213]),_0x4d834e=_0x38e9fd[_0x53b588(0x111)]({'id':r[_0x53b588(0x10b)]['id'],'params':{'unitId':_0x4a2fbd,'drawings':[_0x5e1213]}}),_0x17d9de=[...(_0x161fef=_0x4d834e[_0x53b588(0x188)])==null?[]:_0x161fef,{'id':r[_0x53b588(0x1d1)]['id'],'params':{'unitId':_0x4a2fbd,'subUnitId':_0x19fcc9,'op':_0x42e679,'objects':_0xa9ba75,'type':r[_0x53b588(0x13b)][_0x53b588(0x1bf)]}},{'id':r[_0x53b588(0x19b)]['id'],'params':[_0x4a2fbd]},..._0x4d834e[_0x53b588(0x1a3)]],_0xf15b03=[...(_0x5e1457=_0x4d834e[_0x53b588(0x141)])==null?[]:_0x5e1457,{'id':r[_0x53b588(0x1d1)]['id'],'params':{'unitId':_0x4a2fbd,'subUnitId':_0x19fcc9,'op':_0x2110b0,'objects':_0xa9ba75,'type':r['DrawingApplyType'][_0x53b588(0x1bf)]}},{'id':r[_0x53b588(0x19b)]['id'],'params':[_0x4a2fbd]},..._0x4d834e[_0x53b588(0x11a)]];return(0x0,t[_0x53b588(0x172)])(_0x17d9de,_0xaaeb0e)[_0x53b588(0x157)]?(_0x1114ef['pushUndoRedo']({'unitID':_0x4a2fbd,'undoMutations':_0xf15b03,'redoMutations':_0x17d9de}),!0x0):!0x1;}},x={'type':t[_0x3f0db5(0x1d3)]['COMMAND'],'id':_0x3f0db5(0x183),'handler':(_0xe331d,_0x1f92e6)=>{const _0x45bc39=_0x3f0db5;var _0x16d1a2;let _0x5eff11=(0x0,n['getSheetCommandTarget'])(_0xe331d['get'](t[_0x45bc39(0x1ad)]),_0x1f92e6);if(!_0x5eff11)return!0x1;let {unitId:_0x4ba1b5,subUnitId:_0x354042}=_0x5eff11,{shapeId:_0x1b693c}=_0x1f92e6,_0x35860f=_0xe331d[_0x45bc39(0x1c4)](p)[_0x45bc39(0x187)](_0x4ba1b5,_0x354042,_0x1b693c);if(!_0x35860f)return!0x1;let _0xacb410=_0x35860f[_0x45bc39(0x158)](),_0x1ddb00=(_0x16d1a2=_0xacb410==null?void 0x0:_0xacb410[_0x45bc39(0x132)])==null?!0x0:_0x16d1a2,_0x161659=!_0x1ddb00,_0x1534b9=_0xe331d[_0x45bc39(0x1c4)](t[_0x45bc39(0x121)]),_0x4d16ed=_0xe331d['get'](t[_0x45bc39(0x140)]),_0x55831e={'unitId':_0x4ba1b5,'subUnitId':_0x354042,'shapeId':_0x1b693c,'shapeData':{'shapeText':{'isHorizontal':_0x161659}}},_0xcdbf39={'unitId':_0x4ba1b5,'subUnitId':_0x354042,'shapeId':_0x1b693c,'shapeData':{'shapeText':{'isHorizontal':_0x1ddb00}}},_0x313eb9=[{'id':_['id'],'params':_0x55831e}],_0x58d1cf=[{'id':_['id'],'params':_0xcdbf39}];return(0x0,t[_0x45bc39(0x172)])(_0x313eb9,_0x1534b9)[_0x45bc39(0x157)]?(_0x4d16ed[_0x45bc39(0x1c7)]({'unitID':_0x4ba1b5,'undoMutations':_0x58d1cf,'redoMutations':_0x313eb9}),!0x0):!0x1;}},S={'type':t[_0x3f0db5(0x1d3)][_0x3f0db5(0x1c9)],'id':_0x3f0db5(0x113),'handler':(_0x194685,_0x262119)=>{const _0x16f884=_0x3f0db5;var _0x291276,_0x4298d9,_0x492e5c,_0x419d19;let _0x20fce5=(0x0,n[_0x16f884(0x16a)])(_0x194685[_0x16f884(0x1c4)](t[_0x16f884(0x1ad)]),_0x262119);if(!_0x20fce5)return!0x1;let _0x4102a9=_0x194685['get'](n[_0x16f884(0x17d)]),{unitId:_0x4225ff,subUnitId:_0x571540}=_0x20fce5,_0x1c96c3=_0x4102a9[_0x16f884(0x198)](_0x4225ff,_0x571540);if(!_0x1c96c3)return!0x1;let _0x1f46b4=_0x194685['get'](r[_0x16f884(0x159)]),{connectorShapeId:_0x218d62,width:_0x15b7be,height:_0x548ace,left:_0x55b8fc,top:_0x17a760,flipX:_0x18cd74,flipY:_0x14271b,rotation:_0x28088a,oldAdjustValues:_0x48b149,newAdjustValues:_0x30527b,oldLineType:_0x388920,newLineType:_0x1d30b6,oldRelation:_0x159def,newRelation:_0x340f39}=_0x262119,_0x155a9f=_0x1f46b4[_0x16f884(0x16e)]({'unitId':_0x4225ff,'subUnitId':_0x571540,'drawingId':_0x218d62});if(!_0x155a9f)return!0x1;let _0x55329c=_0x194685[_0x16f884(0x1c4)](p)[_0x16f884(0x187)](_0x4225ff,_0x571540,_0x218d62);if(!_0x55329c)return!0x1;let _0x1daa04=_0x194685[_0x16f884(0x1c4)](t['ICommandService']),_0x271ae0=_0x194685['get'](t[_0x16f884(0x140)]),_0x299f64=_0x194685[_0x16f884(0x1c4)](n['SheetInterceptorService']),_0x1c0368={..._0x155a9f[_0x16f884(0x1ba)],'width':_0x15b7be,'height':_0x548ace,'left':_0x55b8fc,'top':_0x17a760,'flipX':_0x18cd74,'flipY':_0x14271b,'angle':(_0x291276=_0x28088a==null?(_0x4298d9=_0x155a9f[_0x16f884(0x1ba)])==null?void 0x0:_0x4298d9[_0x16f884(0x173)]:_0x28088a)==null?0x0:_0x291276},_0xb6fb5c=(0x0,r[_0x16f884(0x1a0)])(_0x1c0368,_0x1c96c3),_0x1bb1cd=(0x0,r['transformToAxisAlignPosition'])(_0x1c0368,_0x1c96c3),_0x4b932=_0x55329c[_0x16f884(0x163)](),_0x5e607a=_0x55329c[_0x16f884(0x1c8)](),_0x3aed20={'unitId':_0x4225ff,'subUnitId':_0x571540,'drawingId':_0x218d62,'drawingType':t[_0x16f884(0x15d)][_0x16f884(0x12a)],'sheetTransform':_0xb6fb5c,'transform':_0x1c0368,'data':{'shapeType':_0x1d30b6||_0x388920||_0x4b932,'shapeData':{..._0x5e607a,'adjustValues':_0x30527b||_0x48b149||(_0x5e607a==null?void 0x0:_0x5e607a[_0x16f884(0x14c)]),'relation':_0x340f39||_0x159def||(_0x5e607a==null?void 0x0:_0x5e607a['relation'])}},'axisAlignSheetTransform':_0x1bb1cd,'allowTransform':!0x0},{undo:_0x19b423,redo:_0x2c6643,objects:_0x99251e}=_0x1f46b4[_0x16f884(0x146)]([_0x3aed20]),_0x57c57e=_0x299f64[_0x16f884(0x111)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x4225ff,'drawings':[_0x3aed20]}}),_0x2b5cf0=[...(_0x492e5c=_0x57c57e[_0x16f884(0x188)])==null?[]:_0x492e5c,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4225ff,'subUnitId':_0x571540,'op':_0x2c6643,'objects':_0x99251e,'type':r[_0x16f884(0x13b)][_0x16f884(0x1bf)]}},{'id':r[_0x16f884(0x19b)]['id'],'params':[_0x4225ff]},..._0x57c57e[_0x16f884(0x1a3)],{'id':_['id'],'params':{'unitId':_0x4225ff,'subUnitId':_0x571540,'shapeId':_0x218d62,'shapeType':_0x1d30b6,'shapeData':{'adjustValues':_0x30527b,'relation':_0x340f39}}}],_0x15e410=[...(_0x419d19=_0x57c57e[_0x16f884(0x141)])==null?[]:_0x419d19,{'id':r[_0x16f884(0x1d1)]['id'],'params':{'unitId':_0x4225ff,'subUnitId':_0x571540,'op':_0x19b423,'objects':_0x99251e,'type':r[_0x16f884(0x13b)]['UPDATE']}},{'id':r[_0x16f884(0x19b)]['id'],'params':[_0x4225ff]},..._0x57c57e[_0x16f884(0x11a)],{'id':_['id'],'params':{'unitId':_0x4225ff,'subUnitId':_0x571540,'shapeId':_0x218d62,'shapeType':_0x4b932,'shapeData':{..._0x5e607a,'adjustValues':_0x48b149||(_0x5e607a==null?void 0x0:_0x5e607a[_0x16f884(0x14c)]),'relation':_0x159def||(_0x5e607a==null?void 0x0:_0x5e607a[_0x16f884(0x18d)])}}}];return(0x0,t[_0x16f884(0x172)])(_0x2b5cf0,_0x1daa04)[_0x16f884(0x157)]?(_0x271ae0[_0x16f884(0x1c7)]({'unitID':_0x4225ff,'undoMutations':_0x15e410,'redoMutations':_0x2b5cf0}),!0x0):!0x1;}},C={'type':t['CommandType'][_0x3f0db5(0x1c9)],'id':_0x3f0db5(0x14b),'handler':(_0x8e6f73,_0x440101)=>{const _0xa32da4=_0x3f0db5;var _0x46ace5,_0x51d8fb;let _0x4e0425=(0x0,n[_0xa32da4(0x16a)])(_0x8e6f73[_0xa32da4(0x1c4)](t[_0xa32da4(0x1ad)]),_0x440101);if(!_0x4e0425)return!0x1;let _0x5f3afb=_0x8e6f73[_0xa32da4(0x1c4)](n[_0xa32da4(0x17d)]),{unitId:_0xaf872,subUnitId:_0x1756df}=_0x4e0425,_0x5d0b99=_0x5f3afb['getSkeleton'](_0xaf872,_0x1756df);if(!_0x5d0b99)return!0x1;let _0x5d1047=_0x8e6f73[_0xa32da4(0x1c4)](r[_0xa32da4(0x159)]),{shapeId:_0xfb20e,width:_0xe7c3b,height:_0x799c1b,left:_0x45ef75,top:_0x42abd3,flipX:_0x248c16,flipY:_0x9b9a1d,angle:_0xfdf913,oldAdjustValues:_0x25a5e7,newAdjustValues:_0x3847f5,oldLineType:_0x227f5c,newLineType:_0x3e8bba}=_0x440101,_0x5eaa64=_0x5d1047[_0xa32da4(0x16e)]({'unitId':_0xaf872,'subUnitId':_0x1756df,'drawingId':_0xfb20e});if(!_0x5eaa64)return!0x1;let _0xa368b8=_0x8e6f73[_0xa32da4(0x1c4)](p)[_0xa32da4(0x187)](_0xaf872,_0x1756df,_0xfb20e);if(!_0xa368b8)return!0x1;let _0x3e18e5=_0x8e6f73[_0xa32da4(0x1c4)](t[_0xa32da4(0x121)]),_0x28e922=_0x8e6f73[_0xa32da4(0x1c4)](t[_0xa32da4(0x140)]),_0x524dac=_0x8e6f73['get'](n[_0xa32da4(0x110)]),_0x398587={..._0x5eaa64[_0xa32da4(0x1ba)],'width':_0xe7c3b,'height':_0x799c1b,'left':_0x45ef75,'top':_0x42abd3,'flipX':_0x248c16,'flipY':_0x9b9a1d,'angle':_0xfdf913},_0x4ac1e0=(0x0,r[_0xa32da4(0x1a0)])(_0x398587,_0x5d0b99),_0xced1c=(0x0,r[_0xa32da4(0x191)])(_0x398587,_0x5d0b99),_0x1f8d43=_0xa368b8['getShapeType'](),_0x271f57=_0xa368b8[_0xa32da4(0x1c8)](),_0x5d5671={'unitId':_0xaf872,'subUnitId':_0x1756df,'drawingId':_0xfb20e,'drawingType':t['DrawingTypeEnum'][_0xa32da4(0x12a)],'sheetTransform':_0x4ac1e0,'transform':_0x398587,'data':{'shapeType':_0x3e8bba||_0x227f5c||_0x1f8d43,'shapeData':{..._0x271f57,'adjustValues':_0x3847f5||_0x25a5e7||(_0x271f57==null?void 0x0:_0x271f57['adjustValues'])}},'axisAlignSheetTransform':_0xced1c,'allowTransform':!0x0},{undo:_0x4e5492,redo:_0x229471,objects:_0x357f59}=_0x5d1047[_0xa32da4(0x146)]([_0x5d5671]),_0x38b5d5=_0x524dac['onCommandExecute']({'id':r[_0xa32da4(0x10b)]['id'],'params':{'unitId':_0xaf872,'drawings':[_0x5d5671]}}),_0x9d7a93=[...(_0x46ace5=_0x38b5d5['preRedos'])==null?[]:_0x46ace5,{'id':r[_0xa32da4(0x1d1)]['id'],'params':{'unitId':_0xaf872,'subUnitId':_0x1756df,'op':_0x229471,'objects':_0x357f59,'type':r[_0xa32da4(0x13b)][_0xa32da4(0x1bf)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xaf872]},..._0x38b5d5[_0xa32da4(0x1a3)],{'id':_['id'],'params':{'unitId':_0xaf872,'subUnitId':_0x1756df,'shapeId':_0xfb20e,'shapeType':_0x3e8bba,'shapeData':{'adjustValues':_0x3847f5}}}],_0xdd4547=[...(_0x51d8fb=_0x38b5d5['preUndos'])==null?[]:_0x51d8fb,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xaf872,'subUnitId':_0x1756df,'op':_0x4e5492,'objects':_0x357f59,'type':r[_0xa32da4(0x13b)][_0xa32da4(0x1bf)]}},{'id':r[_0xa32da4(0x19b)]['id'],'params':[_0xaf872]},..._0x38b5d5[_0xa32da4(0x11a)],{'id':_['id'],'params':{'unitId':_0xaf872,'subUnitId':_0x1756df,'shapeId':_0xfb20e,'shapeType':_0x1f8d43,'shapeData':{..._0x271f57,'adjustValues':_0x25a5e7||(_0x271f57==null?void 0x0:_0x271f57[_0xa32da4(0x14c)])}}}];return(0x0,t[_0xa32da4(0x172)])(_0x9d7a93,_0x3e18e5)['result']?(_0x28e922[_0xa32da4(0x1c7)]({'unitID':_0xaf872,'undoMutations':_0xdd4547,'redoMutations':_0x9d7a93}),!0x0):!0x1;}},w={'id':_0x3f0db5(0x17b),'type':t[_0x3f0db5(0x1d3)][_0x3f0db5(0x16b)],'handler':(_0x26a36d,_0x1d8877)=>{const _0x2fd225=_0x3f0db5;let {unitId:_0x350f55,subUnitId:_0x58f5de,shapeType:_0x17e7c8,shapeId:_0xc899ed,shapeData:_0x194686}=_0x1d8877,_0x282bd4=_0x26a36d[_0x2fd225(0x1c4)](p)['getShapeModel'](_0x350f55,_0x58f5de,_0xc899ed);return _0x282bd4&&(_0x282bd4[_0x2fd225(0x161)](_0x17e7c8),_0x194686&&(_0x282bd4==null||_0x282bd4['setShapeData'](_0x194686))),!0x0;}},T={'id':_0x3f0db5(0x1ab),'type':t[_0x3f0db5(0x1d3)]['COMMAND'],'handler':(_0xd70290,_0x4d5e06)=>{const _0x51cf05=_0x3f0db5;if(!_0x4d5e06)return!0x1;let _0x44988e=_0xd70290[_0x51cf05(0x1c4)](t['ICommandService']),_0x2bd9e4=_0xd70290[_0x51cf05(0x1c4)](p),_0x11f710=_0xd70290[_0x51cf05(0x1c4)](t[_0x51cf05(0x140)]),_0x465422=[],_0x1653de=[],{unitId:_0x1da197,subUnitId:_0x52f0e2,shapeId:_0x2d9a35,shapeType:_0xc8f6cf,shapeData:_0x19c1c6}=_0x4d5e06,_0x27a265=_0x2bd9e4[_0x51cf05(0x187)](_0x1da197,_0x52f0e2,_0x2d9a35);if(_0x27a265){let _0x28295e=_0x27a265[_0x51cf05(0x163)](),_0x382c60=Object['assign']({},_0x27a265[_0x51cf05(0x1c8)]()),_0x4a550c={'unitId':_0x1da197,'subUnitId':_0x52f0e2,'shapeId':_0x2d9a35,'shapeType':_0xc8f6cf,'shapeData':_0x19c1c6},_0x2f6748={'unitId':_0x1da197,'subUnitId':_0x52f0e2,'shapeId':_0x2d9a35,'shapeType':_0x28295e,'shapeData':_0x382c60};return _0x465422[_0x51cf05(0x1c5)]({'id':w['id'],'params':_0x4a550c}),_0x1653de[_0x51cf05(0x1c5)]({'id':w['id'],'params':_0x2f6748}),_0x465422[_0x51cf05(0x134)](_0x21b534=>_0x44988e[_0x51cf05(0x18e)](_0x21b534['id'],_0x21b534[_0x51cf05(0x130)]))&&_0x11f710[_0x51cf05(0x1c7)]({'unitID':_0x1da197,'redoMutations':[..._0x465422],'undoMutations':[..._0x1653de]}),!0x0;}return!0x1;}};var E=_0x3f0db5(0x106),D=_0x3f0db5(0x13f);const O={};let k=class extends t[_0x3f0db5(0x18a)]{constructor(_0x327bd6,_0x471e5b,_0x10b4dd,_0x3622f4,_0x529038){const _0x2fabce=_0x3f0db5;super(),this[_0x2fabce(0x17f)]=_0x327bd6,this[_0x2fabce(0x15f)]=_0x471e5b,this[_0x2fabce(0x199)]=_0x10b4dd,this[_0x2fabce(0x11d)]=_0x3622f4,this[_0x2fabce(0x124)]=_0x529038,this['_initCommands'](),this['_initCommandInterceptor']();}[_0x3f0db5(0x139)](){const _0x1efb29=_0x3f0db5;[g,v,y,b,x,S,C,m,h,w,_][_0x1efb29(0x1a2)](_0x5d49c0=>this[_0x1efb29(0x133)](this[_0x1efb29(0x17f)][_0x1efb29(0x12f)](_0x5d49c0)));}[_0x3f0db5(0x168)](){const _0x23bce0=_0x3f0db5;this[_0x23bce0(0x133)](this[_0x23bce0(0x15f)][_0x23bce0(0x118)]({'getMutations':_0xc5f8ee=>{const _0x1a2f5e=_0x23bce0;if(_0xc5f8ee['id']===r[_0x1a2f5e(0x151)]['id']){let {drawings:_0x495574}=_0xc5f8ee[_0x1a2f5e(0x130)],_0x430abb=_0x495574[_0x1a2f5e(0x1b0)](_0x417dae=>_0x417dae[_0x1a2f5e(0x179)]===t[_0x1a2f5e(0x15d)][_0x1a2f5e(0x12a)]);if(_0x430abb[_0x1a2f5e(0x16c)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x590d03=[],_0x271cb9=[];return _0x430abb[_0x1a2f5e(0x1a2)](_0x50bd73=>{const _0x44d53e=_0x1a2f5e;let {unitId:_0x2e1396,subUnitId:_0x26ac85,drawingId:_0x1a6389}=_0x50bd73,_0x322598=this[_0x44d53e(0x11d)][_0x44d53e(0x187)](_0x2e1396,_0x26ac85,_0x1a6389);if(!_0x322598)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x322598);_0x590d03[_0x44d53e(0x1c5)]({'id':h['id'],'params':{'unitId':_0x2e1396,'subUnitId':_0x26ac85,'shapeId':_0x1a6389}}),_0x271cb9['push']({'id':m['id'],'params':{'unitId':_0x2e1396,'subUnitId':_0x26ac85,'shapeId':_0x1a6389,'shapeType':_0x322598[_0x44d53e(0x163)](),'shapeData':_0x322598[_0x44d53e(0x1c8)]()}});let _0x538c04=this[_0x44d53e(0x11d)][_0x44d53e(0x197)](_0x2e1396,_0x26ac85,_0x1a6389);if(_0x538c04)for(let _0x10cb43 of _0x538c04){let _0x18680a=_0x10cb43['lineShapeId'],_0x3be28f=_0x10cb43[_0x44d53e(0x108)],_0x3c8a70=_0x3be28f?{'from':void 0x0}:{'to':void 0x0},_0x12db29=_0x3be28f?{'from':{'shapeId':_0x10cb43[_0x44d53e(0x18b)],'cxnIndex':_0x10cb43[_0x44d53e(0x149)]}}:{'to':{'shapeId':_0x10cb43[_0x44d53e(0x18b)],'cxnIndex':_0x10cb43[_0x44d53e(0x149)]}};_0x590d03[_0x44d53e(0x1c5)]({'id':_['id'],'params':{'unitId':_0x2e1396,'subUnitId':_0x26ac85,'shapeId':_0x18680a,'shapeData':{'relation':_0x3c8a70}}}),_0x271cb9[_0x44d53e(0x1c5)]({'id':_['id'],'params':{'unitId':_0x2e1396,'subUnitId':_0x26ac85,'shapeId':_0x18680a,'shapeData':{'relation':_0x12db29}}});}}),{'preRedos':_0x590d03,'redos':[],'preUndos':[],'undos':_0x271cb9};}if(_0xc5f8ee['id']===r[_0x1a2f5e(0x10b)]['id']){let {drawings:_0x370276}=_0xc5f8ee[_0x1a2f5e(0x130)],_0x294cbc=_0x370276[_0x1a2f5e(0x1b0)](_0x33e3f2=>_0x33e3f2[_0x1a2f5e(0x179)]===t[_0x1a2f5e(0x15d)]['DRAWING_SHAPE']);if(_0x294cbc['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x51b3c4=[],_0x157af9=[];for(let _0x47815d of _0x294cbc){let {unitId:_0x1649ec,subUnitId:_0x1d5555,drawingId:_0x294891,transform:_0x1044ba}=_0x47815d;if(!_0x1649ec||!_0x1d5555||!_0x294891||!_0x1044ba)continue;let _0x4a0f76=this[_0x1a2f5e(0x11d)][_0x1a2f5e(0x187)](_0x1649ec,_0x1d5555,_0x294891);if(!_0x4a0f76)throw TypeError(_0x1a2f5e(0x150)+_0x4a0f76);if((0x0,e[_0x1a2f5e(0x13a)])(_0x4a0f76[_0x1a2f5e(0x163)]())){let _0x23f71a=this[_0x1a2f5e(0x11d)]['getLineShapeRelation'](_0x1649ec,_0x1d5555,_0x294891);_0x23f71a&&(_0x51b3c4[_0x1a2f5e(0x1c5)]({'id':_['id'],'params':{'unitId':_0x1649ec,'subUnitId':_0x1d5555,'shapeId':_0x294891,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x157af9['push']({'id':_['id'],'params':{'unitId':_0x1649ec,'subUnitId':_0x1d5555,'shapeId':_0x294891,'shapeData':{'relation':_0x23f71a}}}));}else{let _0x510757=this[_0x1a2f5e(0x11d)][_0x1a2f5e(0x197)](_0x1649ec,_0x1d5555,_0x294891);if(_0x510757&&_0x510757['length']>0x0)for(let _0x352315 of _0x510757){let _0x38d355=_0x352315[_0x1a2f5e(0x18f)],_0x40309d=_0x352315[_0x1a2f5e(0x108)],_0x932d2a=this['_sheetsShapeService']['getShapeModel'](_0x1649ec,_0x1d5555,_0x38d355);if(!_0x932d2a)continue;let _0x4d20a4=_0x932d2a[_0x1a2f5e(0x116)](),_0x348832=_0x932d2a[_0x1a2f5e(0x1c3)]();_0x4d20a4&&_0x348832?this['_addLineRerouteUpdates'](_0x1649ec,_0x1d5555,_0x38d355,_0x932d2a,_0x4d20a4,_0x348832,_0x51b3c4,_0x157af9,_0x294891,_0x1044ba):this[_0x1a2f5e(0x154)](_0x1649ec,_0x1d5555,_0x38d355,_0x932d2a,_0x40309d?_0x4d20a4:_0x348832,_0x40309d,_0x51b3c4,_0x157af9,_0x294891,_0x1044ba);}}}return{'preRedos':[],'redos':_0x51b3c4,'preUndos':_0x157af9,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3f0db5(0x19c)](_0x13b7f3,_0x5f4d9b,_0x340d05,_0x3e474c,_0x1112f0){const _0x56eb03=_0x3f0db5;if(!_0x5f4d9b||!_0x340d05)return null;let {shapeId:_0x162337,cxnIndex:_0x3d475a}=_0x13b7f3,_0x7db538=this[_0x56eb03(0x11d)]['getShapeModel'](_0x5f4d9b,_0x340d05,_0x162337);if(!_0x7db538)return null;let _0x2a71d3=this[_0x56eb03(0x124)][_0x56eb03(0x16e)]({'unitId':_0x5f4d9b,'subUnitId':_0x340d05,'drawingId':_0x162337});if(!(_0x2a71d3!=null&&_0x2a71d3[_0x56eb03(0x1ba)]))return null;let {left:_0x4cb17b=0x0,top:_0x115092=0x0,width:_0x1ab147=0x0,height:_0x3f7b04=0x0,flipX:_0x907243=!0x1,flipY:_0x5739fa=!0x1,angle:_0x4063d7}=_0x2a71d3[_0x56eb03(0x1ba)];if(_0x1112f0&&_0x3e474c===_0x162337){var _0x45247a,_0x58bd2b,_0x213f11,_0x38efa0,_0x54dc26,_0x506998,_0x2087bc;_0x4cb17b=(_0x45247a=_0x1112f0['left'])==null?_0x4cb17b:_0x45247a,_0x115092=(_0x58bd2b=_0x1112f0[_0x56eb03(0x171)])==null?_0x115092:_0x58bd2b,_0x1ab147=(_0x213f11=_0x1112f0[_0x56eb03(0x1b4)])==null?_0x1ab147:_0x213f11,_0x3f7b04=(_0x38efa0=_0x1112f0[_0x56eb03(0x12e)])==null?_0x3f7b04:_0x38efa0,_0x907243=(_0x54dc26=_0x1112f0[_0x56eb03(0xfe)])==null?_0x907243:_0x54dc26,_0x5739fa=(_0x506998=_0x1112f0['flipY'])==null?_0x5739fa:_0x506998,_0x4063d7=(_0x2087bc=_0x1112f0[_0x56eb03(0x173)])==null?_0x4063d7:_0x2087bc;}_0x7db538[_0x56eb03(0x112)]({'width':_0x1ab147,'height':_0x3f7b04});let _0x182c79=_0x7db538[_0x56eb03(0x115)]()['find'](_0x1dad32=>_0x1dad32[_0x56eb03(0x1b2)]===_0x3d475a);if(!_0x182c79)return null;let _0x59e885=_0x907243?_0x1ab147-_0x182c79['x']:_0x182c79['x'],_0x134fb5=_0x5739fa?_0x3f7b04-_0x182c79['y']:_0x182c79['y'];if(_0x4063d7!==0x0&&_0x4063d7!=null){let _0x15a1c6=_0x4063d7*Math['PI']/0xb4,_0x98a364=Math[_0x56eb03(0x1a8)](_0x15a1c6),_0x51c0ae=Math[_0x56eb03(0x18c)](_0x15a1c6),_0xa3b60e=_0x1ab147/0x2,_0x1933fd=_0x3f7b04/0x2,_0x1c6928=_0x59e885-_0xa3b60e,_0x124e88=_0x134fb5-_0x1933fd;_0x59e885=_0xa3b60e+_0x1c6928*_0x98a364-_0x124e88*_0x51c0ae,_0x134fb5=_0x1933fd+_0x1c6928*_0x51c0ae+_0x124e88*_0x98a364;}_0x59e885+=_0x4cb17b,_0x134fb5+=_0x115092;let _0x3dec85=_0x182c79[_0x56eb03(0x196)]/0xea60;_0x907243&&(_0x3dec85=0xb4-_0x3dec85),_0x5739fa&&(_0x3dec85=-_0x3dec85),_0x3dec85+=_0x4063d7||0x0,_0x3dec85=(_0x3dec85%0x168+0x168)%0x168;let _0x2a16e9=(0x0,e['getBasicShapeRotateBound'])({'left':_0x4cb17b,'top':_0x115092,'width':_0x1ab147,'height':_0x3f7b04},_0x4063d7||0x0);return{'point':{'x':_0x59e885,'y':_0x134fb5},'angle':_0x3dec85,'bounds':_0x2a16e9};}[_0x3f0db5(0x186)](_0x2e4802,_0x17795b,_0xb99efc,_0x332a1b,_0x5a537a,_0x1d4af1,_0x4d02fc,_0x51004e,_0x14bc5d,_0x5dee4f){const _0x2e4dad=_0x3f0db5;let _0x162ea7=this[_0x2e4dad(0x199)][_0x2e4dad(0x198)](_0x2e4802,_0x17795b);if(!_0x162ea7)return;let _0x10193a=_0x332a1b['getShapeRelation'](),_0x23ea83=_0x332a1b[_0x2e4dad(0x137)](),_0x58ac55={},_0x3a8322={};_0x23ea83['forEach'](_0x13f221=>{const _0x16f5fe=_0x2e4dad;let _0x3ab322=_0x332a1b[_0x16f5fe(0x189)](_0x13f221);_0x3a8322[_0x13f221]=_0x3ab322==null?0x0:_0x3ab322;});let _0x1a74a1=this[_0x2e4dad(0x19c)](_0x5a537a,_0x2e4802,_0x17795b,_0x14bc5d,_0x5dee4f),_0x3235b2=this[_0x2e4dad(0x19c)](_0x1d4af1,_0x2e4802,_0x17795b,_0x14bc5d,_0x5dee4f);if(_0x1a74a1&&_0x3235b2){let _0x2f1059=_0x332a1b[_0x2e4dad(0x163)](),_0x22fafb=(0x0,e[_0x2e4dad(0x100)])(_0x1a74a1,_0x3235b2,_0x2f1059),_0x206673=_0x2f1059;if(_0x22fafb){let _0x4e10b4=(0x0,e[_0x2e4dad(0x14e)])(_0x22fafb,_0x332a1b[_0x2e4dad(0x163)]()),_0xb09f78=this[_0x2e4dad(0x124)][_0x2e4dad(0x126)](_0x2e4802,_0x17795b);if(_0xb09f78&&_0xb09f78[_0xb99efc]){let _0x304055=_0xb09f78[_0xb99efc];_0x206673=_0x4e10b4[_0x2e4dad(0x145)];for(let [_0x58aedf,_0x15103b]of Object[_0x2e4dad(0x16f)](_0x4e10b4[_0x2e4dad(0x14c)]))_0x58ac55[_0x58aedf]=_0x15103b;let _0x2bb70b={..._0x304055[_0x2e4dad(0x1ba)],'width':_0x4e10b4['worldRect'][_0x2e4dad(0x1b4)],'height':_0x4e10b4[_0x2e4dad(0x119)][_0x2e4dad(0x12e)],'left':_0x4e10b4[_0x2e4dad(0x119)][_0x2e4dad(0x15b)],'top':_0x4e10b4[_0x2e4dad(0x119)][_0x2e4dad(0x171)],'flipX':_0x4e10b4[_0x2e4dad(0x119)]['flipX'],'flipY':_0x4e10b4[_0x2e4dad(0x119)][_0x2e4dad(0x169)],'angle':_0x4e10b4[_0x2e4dad(0x122)]},_0x245131=(0x0,r[_0x2e4dad(0x1a0)])(_0x2bb70b,_0x162ea7),_0x5da843=(0x0,r['transformToAxisAlignPosition'])(_0x2bb70b,_0x162ea7),_0x2eda15={'unitId':_0x2e4802,'subUnitId':_0x17795b,'drawingType':t[_0x2e4dad(0x15d)][_0x2e4dad(0x12a)],'drawingId':_0xb99efc,'transform':_0x2bb70b,'sheetTransform':_0x245131,'axisAlignSheetTransform':_0x5da843},{unitId:_0x3825cf,subUnitId:_0x5714e7,undo:_0x516404,redo:_0x32bb4d,objects:_0x59b600}=this[_0x2e4dad(0x124)]['getBatchUpdateOp']([_0x2eda15]);_0x4d02fc[_0x2e4dad(0x1c5)]({'id':r[_0x2e4dad(0x1d1)]['id'],'params':{'unitId':_0x3825cf,'subUnitId':_0x5714e7,'op':_0x32bb4d,'objects':_0x59b600,'type':r[_0x2e4dad(0x13b)][_0x2e4dad(0x1bf)]}}),_0x51004e[_0x2e4dad(0x1c5)]({'id':r[_0x2e4dad(0x1d1)]['id'],'params':{'unitId':_0x3825cf,'subUnitId':_0x5714e7,'op':_0x516404,'objects':_0x59b600,'type':r[_0x2e4dad(0x13b)][_0x2e4dad(0x1bf)]}});}_0x332a1b['removeLinePoints']();}_0x4d02fc['push']({'id':_['id'],'params':{'unitId':_0x2e4802,'subUnitId':_0x17795b,'shapeId':_0xb99efc,'shapeType':_0x206673,'shapeData':{'adjustValues':_0x58ac55,'relation':_0x10193a}}}),_0x51004e['push']({'id':_['id'],'params':{'unitId':_0x2e4802,'subUnitId':_0x17795b,'shapeId':_0xb99efc,'shapeType':_0x2f1059,'shapeData':{'adjustValues':_0x3a8322,'relation':_0x10193a}}});}}['_addLineFollowShapeUpdates'](_0x34f0e8,_0x3123c4,_0x24c1c7,_0xa1db3b,_0x59f27b,_0x47bcb8,_0x2a7f11,_0x2cfa5c,_0x378ec7,_0x438dc7){const _0x497107=_0x3f0db5;var _0xa5e96a;if(!_0x59f27b)return;let _0x1d36ce=this[_0x497107(0x199)][_0x497107(0x198)](_0x34f0e8,_0x3123c4);if(!_0x1d36ce)return;let _0x31a759=(_0xa5e96a=this[_0x497107(0x124)][_0x497107(0x16e)]({'unitId':_0x34f0e8,'subUnitId':_0x3123c4,'drawingId':_0x378ec7}))==null?void 0x0:_0xa5e96a[_0x497107(0x1ba)];if(!_0x31a759)return;let _0x24e947=_0x31a759[_0x497107(0x15b)]!==_0x438dc7[_0x497107(0x15b)]||_0x31a759[_0x497107(0x171)]!==_0x438dc7[_0x497107(0x171)],_0x2ebb80=_0x31a759[_0x497107(0x1b4)]!==_0x438dc7[_0x497107(0x1b4)]||_0x31a759[_0x497107(0x12e)]!==_0x438dc7['height'],_0x208a2e=_0x31a759['flipX']!==_0x438dc7['flipX']||_0x31a759[_0x497107(0x169)]!==_0x438dc7[_0x497107(0x169)],_0x27f317=_0x31a759[_0x497107(0x173)]!==_0x438dc7[_0x497107(0x173)];if(_0x24e947&&!_0x2ebb80&&!_0x208a2e&&!_0x27f317){var _0xc8e459,_0x50cd9b,_0x2f603a,_0x35b5ac;let _0x43dd8e=((_0xc8e459=_0x438dc7[_0x497107(0x15b)])==null?0x0:_0xc8e459)-((_0x50cd9b=_0x31a759[_0x497107(0x15b)])==null?0x0:_0x50cd9b),_0x43a19c=((_0x2f603a=_0x438dc7[_0x497107(0x171)])==null?0x0:_0x2f603a)-((_0x35b5ac=_0x31a759[_0x497107(0x171)])==null?0x0:_0x35b5ac),_0x448070=this['_drawingManagerService'][_0x497107(0x126)](_0x34f0e8,_0x3123c4);if(_0x448070&&_0x448070[_0x24c1c7]){var _0x5d2937,_0x17ea8a,_0x2d80fa,_0x58e64b;let _0x2a7e80=_0x448070[_0x24c1c7],_0x463f59={..._0x2a7e80[_0x497107(0x1ba)],'left':((_0x5d2937=(_0x17ea8a=_0x2a7e80['transform'])==null?void 0x0:_0x17ea8a['left'])==null?0x0:_0x5d2937)+_0x43dd8e,'top':((_0x2d80fa=(_0x58e64b=_0x2a7e80[_0x497107(0x1ba)])==null?void 0x0:_0x58e64b[_0x497107(0x171)])==null?0x0:_0x2d80fa)+_0x43a19c},_0x10df68=(0x0,r[_0x497107(0x1a0)])(_0x463f59,_0x1d36ce),_0x48ff78=(0x0,r[_0x497107(0x191)])(_0x463f59,_0x1d36ce),_0xd3067c={'unitId':_0x34f0e8,'subUnitId':_0x3123c4,'drawingType':t[_0x497107(0x15d)][_0x497107(0x12a)],'drawingId':_0x24c1c7,'transform':_0x463f59,'sheetTransform':_0x10df68,'axisAlignSheetTransform':_0x48ff78},{unitId:_0x5ccdbb,subUnitId:_0xb0e65,undo:_0x3a767b,redo:_0x3907ee,objects:_0x264308}=this[_0x497107(0x124)][_0x497107(0x146)]([_0xd3067c]);_0x2a7f11[_0x497107(0x1c5)]({'id':r[_0x497107(0x1d1)]['id'],'params':{'unitId':_0x5ccdbb,'subUnitId':_0xb0e65,'op':_0x3907ee,'objects':_0x264308,'type':r[_0x497107(0x13b)]['UPDATE']}}),_0x2cfa5c['push']({'id':r[_0x497107(0x1d1)]['id'],'params':{'unitId':_0x5ccdbb,'subUnitId':_0xb0e65,'op':_0x3a767b,'objects':_0x264308,'type':r[_0x497107(0x13b)]['UPDATE']}});}}else{let _0xa5fa30=_0xa1db3b[_0x497107(0x116)](),_0x55b9be=_0xa1db3b[_0x497107(0x1c3)]();this['_addLineRerouteUpdates'](_0x34f0e8,_0x3123c4,_0x24c1c7,_0xa1db3b,_0xa5fa30,_0x55b9be,_0x2a7f11,_0x2cfa5c,_0x378ec7,_0x438dc7);}}};k=f([d(0x0,t[_0x3f0db5(0x121)]),d(0x1,(0x0,t[_0x3f0db5(0x14f)])(n[_0x3f0db5(0x110)])),d(0x2,(0x0,t[_0x3f0db5(0x14f)])(n[_0x3f0db5(0x17d)])),d(0x3,(0x0,t['Inject'])(p)),d(0x4,(0x0,t[_0x3f0db5(0x14f)])(a['IDrawingManagerService']))],k);let A=class extends t[_0x3f0db5(0x19d)]{constructor(_0x2165fa=O,_0xc9e995,_0x28703e,_0x4ce99f){const _0x5243db=_0x3f0db5;super(),this[_0x5243db(0x109)]=_0x2165fa,this[_0x5243db(0x107)]=_0xc9e995,this['_commandService']=_0x28703e,this[_0x5243db(0x1c6)]=_0x4ce99f;let {..._0x1c17bd}=(0x0,t[_0x5243db(0x103)])({},O,this[_0x5243db(0x109)]);this[_0x5243db(0x1c6)][_0x5243db(0x120)]('sheets-shape.config',_0x1c17bd);}[_0x3f0db5(0x147)](){const _0x20644c=_0x3f0db5;let _0xc2b73d=this[_0x20644c(0x107)];[[u],[p],[k]][_0x20644c(0x1a2)](_0x5bc8a7=>_0xc2b73d[_0x20644c(0x1a4)](_0x5bc8a7)),(0x0,t[_0x20644c(0x12c)])(_0xc2b73d,[[p],[k]]);}};l(A,_0x3f0db5(0x101),t['UniverInstanceType']['UNIVER_SHEET']),l(A,_0x3f0db5(0x193),'SHEET_SHAPE_PLUGIN'),l(A,_0x3f0db5(0x195),E),l(A,_0x3f0db5(0x15a),D),A=f([(0x0,t[_0x3f0db5(0x11c)])(i[_0x3f0db5(0x194)]),d(0x1,(0x0,t['Inject'])(t[_0x3f0db5(0x1c0)])),d(0x2,t[_0x3f0db5(0x121)]),d(0x3,t[_0x3f0db5(0x135)])],A),exports['DEFAULT_SHAPE_HEIGHT']=0xc8,exports['DEFAULT_SHAPE_WIDTH']=0xc8,exports['InsertShapeCommand']=g,exports[_0x3f0db5(0x131)]=m,exports[_0x3f0db5(0x170)]=h,exports[_0x3f0db5(0x155)]=v,exports[_0x3f0db5(0x13d)]=b,exports[_0x3f0db5(0x1ac)]=x,Object[_0x3f0db5(0x182)](exports,_0x3f0db5(0x15c),{'enumerable':!0x0,'get':function(){return p;}}),exports['ToggleSheetsShapeFlipCommand']=y,Object[_0x3f0db5(0x182)](exports,_0x3f0db5(0x17c),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x3f0db5(0x162)]=S,exports[_0x3f0db5(0x174)]=C,exports[_0x3f0db5(0x176)]=_,exports[_0x3f0db5(0x1b9)]=T,exports[_0x3f0db5(0x152)]=w;
|