@univerjs-pro/sheets-shape 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
- package/lib/types/controllers/config.schema.d.ts +0 -5
- package/lib/types/facade/f-connector-shape.d.ts +0 -189
- package/lib/types/facade/f-enum.d.ts +0 -203
- package/lib/types/model/shape-manager.d.ts +0 -32
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2c73(){const _0x2b5236=['47946iTOddC','145GPCdWm','toStringTag','SetSheetDrawingPlacementCommand','_sheetDrawingService','18nySSAv','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','2cALDRu','Position','function','_createShapeHandle','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','width','FShape','UniverInstanceType','1395134CuJGBI','_commandService','297659MlaUZQ','61128RZOoBm','\x22\x20was\x20not\x20found.','SheetDrawingAnchorType','get','getSheetId','UNIVER_SHEET','896508DGgFue','24nTiVgN','syncExecuteCommand','transform','setPlacement','IShapeHostAdapterRegistry','196350oNSnDd','defineProperty','map','FWorksheet','shapeType','FConnectorShape','96hwEhUp','40qGdNpA','748682kdWWOX','warn','ICommandService','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','setPosition','length','getWorkbook','getDrawingByParam','shapeId','listShapes','_getShapeAdapter','subUnitId','getOwnPropertyDescriptor','height','Module','getShape','getShapes','unitId','isConnectorShape','_getShapeScope','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','_injector','_shapeRef'];_0x2c73=function(){return _0x2b5236;};return _0x2c73();}const _0x288069=_0x2f06;function _0x2f06(_0x2b578b,_0x5f35b4){_0x2b578b=_0x2b578b-0xc5;const _0x2c7359=_0x2c73();let _0x2f066b=_0x2c7359[_0x2b578b];return _0x2f066b;}(function(_0x599ffb,_0x3b06c2){const _0xd6a582=_0x2f06,_0x115838=_0x599ffb();while(!![]){try{const _0x31f7b9=parseInt(_0xd6a582(0xec))/0x1*(parseInt(_0xd6a582(0xe2))/0x2)+-parseInt(_0xd6a582(0xe0))/0x3*(parseInt(_0xd6a582(0xed))/0x4)+parseInt(_0xd6a582(0xdc))/0x5*(-parseInt(_0xd6a582(0xdb))/0x6)+-parseInt(_0xd6a582(0xf9))/0x7+-parseInt(_0xd6a582(0xf4))/0x8*(parseInt(_0xd6a582(0xf3))/0x9)+parseInt(_0xd6a582(0x100))/0xa*(-parseInt(_0xd6a582(0x101))/0xb)+parseInt(_0xd6a582(0xff))/0xc*(parseInt(_0xd6a582(0xea))/0xd);if(_0x31f7b9===_0x3b06c2)break;else _0x115838['push'](_0x115838['shift']());}catch(_0xc27756){_0x115838['push'](_0x115838['shift']());}}}(_0x2c73,0x390a6),Object[_0x288069(0xfa)](exports,Symbol[_0x288069(0xdd)],{'value':_0x288069(0xd2)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/engine-shape/facade'),n=require('@univerjs/core'),r=require('@univerjs/sheets/facade'),i=require('@univerjs/sheets-drawing');function a(_0x13840d,_0x3760b9){return function(_0xed752a,_0x17d173){_0x3760b9(_0xed752a,_0x17d173,_0x13840d);};}function o(_0x2a4093,_0x5dfcaa,_0x4dea00,_0x465c45){const _0x2beb54=_0x288069;var _0x22ade9=arguments['length'],_0x328f37=_0x22ade9<0x3?_0x5dfcaa:_0x465c45===null?_0x465c45=Object[_0x2beb54(0xd0)](_0x5dfcaa,_0x4dea00):_0x465c45,_0x441bbc;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2beb54(0xe4))_0x328f37=Reflect['decorate'](_0x2a4093,_0x5dfcaa,_0x4dea00,_0x465c45);else{for(var _0x307110=_0x2a4093[_0x2beb54(0xc9)]-0x1;_0x307110>=0x0;_0x307110--)(_0x441bbc=_0x2a4093[_0x307110])&&(_0x328f37=(_0x22ade9<0x3?_0x441bbc(_0x328f37):_0x22ade9>0x3?_0x441bbc(_0x5dfcaa,_0x4dea00,_0x328f37):_0x441bbc(_0x5dfcaa,_0x4dea00))||_0x328f37);}return _0x22ade9>0x3&&_0x328f37&&Object[_0x2beb54(0xfa)](_0x5dfcaa,_0x4dea00,_0x328f37),_0x328f37;}let s=class extends t[_0x288069(0xe8)]{constructor(_0x5c256f,_0x5dbdc5,_0x300496,_0x6978f4,_0x507f11){const _0x15db3f=_0x288069;super(_0x5c256f,_0x5dbdc5,_0x300496,_0x6978f4),this[_0x15db3f(0xdf)]=_0x507f11;}['getPlacement'](){const _0x24b98e=_0x288069;let _0x4ddc5e=this['_sheetDrawingService'][_0x24b98e(0xcb)]({'unitId':this[_0x24b98e(0xda)][_0x24b98e(0xd5)],'subUnitId':this[_0x24b98e(0xda)][_0x24b98e(0xcf)],'drawingId':this[_0x24b98e(0xda)][_0x24b98e(0xcc)]});return _0x4ddc5e?(0x0,i['getSheetDrawingPlacement'])(_0x4ddc5e):null;}[_0x288069(0xf7)](_0x12bf5e){const _0x5ba094=_0x288069;return this['_commandService'][_0x5ba094(0xf5)](i[_0x5ba094(0xde)]['id'],{'unitId':this['_shapeRef'][_0x5ba094(0xd5)],'subUnitId':this[_0x5ba094(0xda)][_0x5ba094(0xcf)],'drawings':[{'drawingId':this[_0x5ba094(0xda)][_0x5ba094(0xcc)],'placement':_0x12bf5e}]});}[_0x288069(0xc8)](_0x463ed1,_0x49ffbc,_0x48f930,_0x5978e0){const _0x568f5e=_0x288069;var _0x5d1989,_0x481711;let _0x3845e1=this['_sheetDrawingService'][_0x568f5e(0xcb)]({'unitId':this[_0x568f5e(0xda)][_0x568f5e(0xd5)],'subUnitId':this[_0x568f5e(0xda)]['subUnitId'],'drawingId':this['_shapeRef'][_0x568f5e(0xcc)]});if(!_0x3845e1)return console[_0x568f5e(0xc5)](_0x568f5e(0xd8)+this[_0x568f5e(0xda)][_0x568f5e(0xcc)]+_0x568f5e(0xee)),this;let _0x2fe1c6=(_0x5d1989=_0x3845e1[_0x568f5e(0xf6)])==null?void 0x0:_0x5d1989[_0x568f5e(0xe7)],_0x488c0b=(_0x481711=_0x3845e1[_0x568f5e(0xf6)])==null?void 0x0:_0x481711[_0x568f5e(0xd1)];return _0x2fe1c6==null||_0x488c0b==null?(console[_0x568f5e(0xc5)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x568f5e(0xda)][_0x568f5e(0xcc)]+'\x22\x20has\x20no\x20transform\x20extent.'),this):(this[_0x568f5e(0xeb)][_0x568f5e(0xf5)](i[_0x568f5e(0xde)]['id'],{'unitId':this[_0x568f5e(0xda)]['unitId'],'subUnitId':this[_0x568f5e(0xda)][_0x568f5e(0xcf)],'drawings':[{'drawingId':this[_0x568f5e(0xda)][_0x568f5e(0xcc)],'placement':{'kind':i[_0x568f5e(0xef)][_0x568f5e(0xe3)],'from':{'row':_0x463ed1,'column':_0x49ffbc,'rowOffset':_0x48f930,'columnOffset':_0x5978e0},'width':_0x2fe1c6,'height':_0x488c0b}}]}),this);}};s=o([a(0x2,e[_0x288069(0xf8)]),a(0x3,n[_0x288069(0xc6)]),a(0x4,i['ISheetDrawingService'])],s);var c=class extends r['FWorksheet']{['insertShape'](_0x5c8ba5){const _0x3614f9=_0x288069;let _0x570973=this[_0x3614f9(0xce)]();if(!_0x570973)return null;try{let _0x128142=_0x570973['createShape'](this[_0x3614f9(0xd7)](),_0x5c8ba5);return _0x128142?this[_0x3614f9(0xe5)](_0x128142):(console['warn'](_0x3614f9(0xe6)),null);}catch(_0x181f6d){return console[_0x3614f9(0xc5)](_0x3614f9(0xe6),_0x181f6d),null;}}[_0x288069(0xd3)](_0x5127c0){const _0x27a7e1=_0x288069;let _0x4d32b4=this[_0x27a7e1(0xce)]();if(!_0x4d32b4)return null;try{let _0x2f316d={...this[_0x27a7e1(0xd7)](),'shapeId':_0x5127c0},_0x58a351=_0x4d32b4[_0x27a7e1(0xd3)](_0x2f316d);return _0x58a351?this[_0x27a7e1(0xe5)](_0x58a351):(console[_0x27a7e1(0xc5)](_0x27a7e1(0xd8)+_0x5127c0+_0x27a7e1(0xee)),null);}catch(_0x4929d0){return console['warn'](_0x27a7e1(0xe1)+_0x5127c0+'\x22.',_0x4929d0),null;}}[_0x288069(0xd4)](){const _0x57d852=_0x288069;let _0x5840ce=this[_0x57d852(0xce)]();if(!_0x5840ce)return[];try{return _0x5840ce[_0x57d852(0xcd)](this[_0x57d852(0xd7)]())[_0x57d852(0xfb)](_0x3ed08c=>this['_createShapeHandle'](_0x3ed08c));}catch(_0x446a34){return console['warn'](_0x57d852(0xc7),_0x446a34),[];}}['_getShapeScope'](){const _0x520788=_0x288069;return{'hostType':n['UniverInstanceType'][_0x520788(0xf2)],'unitId':this[_0x520788(0xca)]()['getUnitId'](),'subUnitId':this[_0x520788(0xf1)]()};}[_0x288069(0xce)](){const _0x422ad6=_0x288069;return this['_injector'][_0x422ad6(0xf0)](e[_0x422ad6(0xf8)])[_0x422ad6(0xf0)](n[_0x422ad6(0xe9)][_0x422ad6(0xf2)]);}[_0x288069(0xe5)](_0x540ecd){const _0x3979da=_0x288069;let {unitId:_0x3c60b4,subUnitId:_0x4347f4,shapeId:_0x20a0e2}=_0x540ecd,_0x44f256={'unitId':_0x3c60b4,'subUnitId':_0x4347f4,'shapeId':_0x20a0e2,'hostType':n[_0x3979da(0xe9)][_0x3979da(0xf2)]};return(0x0,e[_0x3979da(0xd6)])(_0x540ecd[_0x3979da(0xfd)])?this[_0x3979da(0xd9)]['createInstance'](t[_0x3979da(0xfe)],_0x44f256,this['_injector']):this[_0x3979da(0xd9)]['createInstance'](s,_0x44f256,this[_0x3979da(0xd9)]);}};r[_0x288069(0xfc)]['extend'](c),Object[_0x288069(0xfa)](exports,'FSheetShape',{'enumerable':!0x0,'get':function(){return s;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5bc634=_0xdc13;(function(_0x1325f8,_0x183c98){const _0xa03648=_0xdc13,_0x511c17=_0x1325f8();while(!![]){try{const _0x3d07e0=parseInt(_0xa03648(0x1e3))/0x1+parseInt(_0xa03648(0x26b))/0x2*(-parseInt(_0xa03648(0x1d3))/0x3)+-parseInt(_0xa03648(0x282))/0x4*(-parseInt(_0xa03648(0x20a))/0x5)+-parseInt(_0xa03648(0x26d))/0x6*(-parseInt(_0xa03648(0x21c))/0x7)+-parseInt(_0xa03648(0x23a))/0x8*(-parseInt(_0xa03648(0x226))/0x9)+parseInt(_0xa03648(0x264))/0xa+-parseInt(_0xa03648(0x1e8))/0xb;if(_0x3d07e0===_0x183c98)break;else _0x511c17['push'](_0x511c17['shift']());}catch(_0x268e7e){_0x511c17['push'](_0x511c17['shift']());}}}(_0x4030,0xe2ee7),Object[_0x5bc634(0x19c)](exports,Symbol['toStringTag'],{'value':'Module'}));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(_0x20b392){'@babel/helpers - typeof';const _0xbe3a2b=_0x5bc634;return o=typeof Symbol==_0xbe3a2b(0x19f)&&typeof Symbol[_0xbe3a2b(0x173)]==_0xbe3a2b(0x261)?function(_0x154bed){return typeof _0x154bed;}:function(_0x1c3366){const _0x541400=_0xbe3a2b;return _0x1c3366&&typeof Symbol==_0x541400(0x19f)&&_0x1c3366[_0x541400(0x17d)]===Symbol&&_0x1c3366!==Symbol['prototype']?_0x541400(0x261):typeof _0x1c3366;},o(_0x20b392);}function s(_0x1b6000,_0x348951){const _0x5b13f3=_0x5bc634;if(o(_0x1b6000)!='object'||!_0x1b6000)return _0x1b6000;var _0x2f30fd=_0x1b6000[Symbol[_0x5b13f3(0x175)]];if(_0x2f30fd!==void 0x0){var _0x20e92d=_0x2f30fd['call'](_0x1b6000,_0x348951||_0x5b13f3(0x1da));if(o(_0x20e92d)!=_0x5b13f3(0x24f))return _0x20e92d;throw TypeError(_0x5b13f3(0x221));}return(_0x348951===_0x5b13f3(0x246)?String:Number)(_0x1b6000);}function c(_0x28132a){const _0x47e292=_0x5bc634;var _0xda6c40=s(_0x28132a,_0x47e292(0x246));return o(_0xda6c40)=='symbol'?_0xda6c40:_0xda6c40+'';}function l(_0x2afecb,_0x14a893,_0x2d283e){return(_0x14a893=c(_0x14a893))in _0x2afecb?Object['defineProperty'](_0x2afecb,_0x14a893,{'value':_0x2d283e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2afecb[_0x14a893]=_0x2d283e,_0x2afecb;}var u=class extends t[_0x5bc634(0x277)]{constructor(){const _0x4bdf63=_0x5bc634;super(),l(this,_0x4bdf63(0x23f),new Map()),l(this,_0x4bdf63(0x230),new Set()),l(this,'_groupIds',new Set());}[_0x5bc634(0x179)](_0x15c910,_0x295665,_0x40482b,_0x33c3b7){const _0x2d85f4=_0x5bc634;let _0x16d5fa=new e[(_0x2d85f4(0x275))](_0x15c910,_0x295665,_0x40482b,_0x33c3b7);return this[_0x2d85f4(0x23f)]['set'](_0x295665,_0x16d5fa),(0x0,e[_0x2d85f4(0x1ad)])(_0x15c910)&&this[_0x2d85f4(0x230)][_0x2d85f4(0x181)](_0x295665),_0x16d5fa;}[_0x5bc634(0x18d)](_0x5bf824){const _0x48fb56=_0x5bc634;let _0x8778ec=[];for(let _0x313123 of this[_0x48fb56(0x230)]){let _0x2b33bb=this[_0x48fb56(0x23f)][_0x48fb56(0x233)](_0x313123);if(_0x2b33bb){let _0x39744a=_0x2b33bb[_0x48fb56(0x1e7)]();if(_0x39744a){var _0x2b9e47,_0x35ee18;((_0x2b9e47=_0x39744a['from'])==null?void 0x0:_0x2b9e47[_0x48fb56(0x1e2)])===_0x5bf824&&_0x8778ec[_0x48fb56(0x201)]({..._0x39744a[_0x48fb56(0x24b)],'lineShapeId':_0x313123,'isFrom':!0x0}),((_0x35ee18=_0x39744a['to'])==null?void 0x0:_0x35ee18[_0x48fb56(0x1e2)])===_0x5bf824&&_0x8778ec[_0x48fb56(0x201)]({..._0x39744a['to'],'lineShapeId':_0x313123,'isFrom':!0x1});}}}return _0x8778ec;}[_0x5bc634(0x240)](_0x2a5d15){const _0x3e43a7=_0x5bc634;let _0x1528bd=this['_shapes']['get'](_0x2a5d15);if(_0x1528bd)return _0x1528bd[_0x3e43a7(0x1e7)]();}[_0x5bc634(0x1fe)](_0x12753d){const _0x4206f2=_0x5bc634;let _0x193128=this[_0x4206f2(0x23f)][_0x4206f2(0x233)](_0x12753d);if(_0x193128)return _0x193128[_0x4206f2(0x1fe)]();}[_0x5bc634(0x27f)](_0x454a5a){const _0x207612=_0x5bc634;return this[_0x207612(0x23f)][_0x207612(0x185)](_0x454a5a);}[_0x5bc634(0x1a3)](){const _0x35f5f0=_0x5bc634;return Array[_0x35f5f0(0x24b)](this[_0x35f5f0(0x23f)][_0x35f5f0(0x1ac)]())[_0x35f5f0(0x242)](_0x22f4f3=>_0x22f4f3[_0x35f5f0(0x1eb)]()||_0x22f4f3[_0x35f5f0(0x1ca)]());}[_0x5bc634(0x1ed)](_0x9b6780){const _0x5b23fa=_0x5bc634;let _0x79cb76=this[_0x5b23fa(0x23f)]['get'](_0x9b6780);_0x79cb76&&((0x0,e[_0x5b23fa(0x1ad)])(_0x79cb76[_0x5b23fa(0x1fe)]())&&this[_0x5b23fa(0x230)][_0x5b23fa(0x23b)](_0x9b6780),this[_0x5b23fa(0x23f)]['delete'](_0x9b6780));}['toJSON'](){const _0x3cff58=_0x5bc634;let _0x265759=[];return this[_0x3cff58(0x23f)]['forEach'](_0xfaa7bc=>{const _0x3b21ad=_0x3cff58;_0x265759[_0x3b21ad(0x201)](_0xfaa7bc['toJSON']());}),_0x265759;}[_0x5bc634(0x1c8)](_0x181ae2){const _0x256f4b=_0x5bc634;for(let _0x199a39 of _0x181ae2){let {id:_0x1aa893,shapeType:_0x48bf52,name:_0x10e3fe}=_0x199a39,_0x2e81ff=this[_0x256f4b(0x179)](_0x48bf52,_0x1aa893,_0x199a39[_0x256f4b(0x1c6)],_0x10e3fe);_0x2e81ff&&_0x2e81ff[_0x256f4b(0x196)]()&&this[_0x256f4b(0x230)][_0x256f4b(0x181)](_0x1aa893);}}[_0x5bc634(0x236)](){const _0x18f920=_0x5bc634;this[_0x18f920(0x189)]||(this[_0x18f920(0x23f)][_0x18f920(0x280)](_0x3d1349=>{const _0x36a59b=_0x18f920;_0x3d1349[_0x36a59b(0x236)]();}),this['_shapes'][_0x18f920(0x1fc)](),this['_linesIds'][_0x18f920(0x1fc)](),this[_0x18f920(0x1b9)]['clear'](),super[_0x18f920(0x236)]());}};function d(_0x110c1b,_0x546f65){return function(_0x5f021a,_0x2359e9){_0x546f65(_0x5f021a,_0x2359e9,_0x110c1b);};}function f(_0x4a1158,_0x47a684,_0x5e40b8,_0x312f5f){const _0x5a5926=_0x5bc634;var _0x1e39d2=arguments[_0x5a5926(0x24e)],_0x5c586b=_0x1e39d2<0x3?_0x47a684:_0x312f5f===null?_0x312f5f=Object['getOwnPropertyDescriptor'](_0x47a684,_0x5e40b8):_0x312f5f,_0x346233;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5a5926(0x19f))_0x5c586b=Reflect[_0x5a5926(0x1fb)](_0x4a1158,_0x47a684,_0x5e40b8,_0x312f5f);else{for(var _0x49ae72=_0x4a1158[_0x5a5926(0x24e)]-0x1;_0x49ae72>=0x0;_0x49ae72--)(_0x346233=_0x4a1158[_0x49ae72])&&(_0x5c586b=(_0x1e39d2<0x3?_0x346233(_0x5c586b):_0x1e39d2>0x3?_0x346233(_0x47a684,_0x5e40b8,_0x5c586b):_0x346233(_0x47a684,_0x5e40b8))||_0x5c586b);}return _0x1e39d2>0x3&&_0x5c586b&&Object[_0x5a5926(0x19c)](_0x47a684,_0x5e40b8,_0x5c586b),_0x5c586b;}let p=class extends t[_0x5bc634(0x277)]{constructor(_0x23083d){const _0x324215=_0x5bc634;super(),this['_resourcesManagerService']=_0x23083d,l(this,_0x324215(0x22f),new Map()),this['_initSnapshot']();}[_0x5bc634(0x17b)](_0x30edc4,_0xb75814){const _0x4ea065=_0x5bc634;let _0xe21350=this[_0x4ea065(0x22f)][_0x4ea065(0x233)](_0x30edc4);_0xe21350||(_0xe21350=new Map(),this[_0x4ea065(0x22f)][_0x4ea065(0x187)](_0x30edc4,_0xe21350));let _0x3e5d88=_0xe21350['get'](_0xb75814);return _0x3e5d88||(_0x3e5d88=new u(),_0xe21350['set'](_0xb75814,_0x3e5d88)),_0x3e5d88;}['insertShape'](_0x512441,_0x3d9d5f,_0x5c99d6,_0x1c6bed,_0x1d9615,_0x2d0f3d){this['_ensureShapeModelManager'](_0x512441,_0x3d9d5f)['addShape'](_0x5c99d6,_0x1c6bed,_0x1d9615,_0x2d0f3d);}['removeShape'](_0x202df4,_0x47ec8d,_0x8cc41d){const _0x48c6fc=_0x5bc634;this['_ensureShapeModelManager'](_0x202df4,_0x47ec8d)[_0x48c6fc(0x1ed)](_0x8cc41d);}[_0x5bc634(0x208)](_0x2346bb,_0x45d096,_0x2525f8){const _0x4590a2=_0x5bc634;return this[_0x4590a2(0x17b)](_0x2346bb,_0x45d096)[_0x4590a2(0x1fe)](_0x2525f8);}[_0x5bc634(0x1fe)](_0x3428d5,_0x43a63c,_0x410f80){const _0x2eccd2=_0x5bc634;return this[_0x2eccd2(0x17b)](_0x3428d5,_0x43a63c)[_0x2eccd2(0x1fe)](_0x410f80);}[_0x5bc634(0x27f)](_0x266f45,_0x381319,_0x18b647){const _0x5b2f4b=_0x5bc634;return this[_0x5b2f4b(0x17b)](_0x266f45,_0x381319)[_0x5b2f4b(0x27f)](_0x18b647);}[_0x5bc634(0x267)](_0x2d9cf3,_0x51b267,_0x32c9a5){const _0xe0bc4c=_0x5bc634;return this[_0xe0bc4c(0x17b)](_0x2d9cf3,_0x51b267)['getShapeType'](_0x32c9a5);}['getShapeDataById'](_0x35d8b9,_0x2d5967,_0xf534a5){const _0x3a39d0=_0x5bc634;let _0x43e4d1=this[_0x3a39d0(0x17b)](_0x35d8b9,_0x2d5967);if(!_0x43e4d1[_0x3a39d0(0x1fe)](_0xf534a5))return;let _0x48a088=_0x43e4d1['_shapes'][_0x3a39d0(0x233)](_0xf534a5);if(_0x48a088)return _0x48a088['getShapeData']();}[_0x5bc634(0x1a3)](_0x2abc95,_0x5c3257){const _0x52d505=_0x5bc634;return this[_0x52d505(0x17b)](_0x2abc95,_0x5c3257)[_0x52d505(0x1a3)]();}[_0x5bc634(0x27b)](_0x23dbb3,_0x5c35be,_0x1595ce){const _0x3cd594=_0x5bc634;return this[_0x3cd594(0x17b)](_0x23dbb3,_0x5c35be)[_0x3cd594(0x23f)][_0x3cd594(0x233)](_0x1595ce);}[_0x5bc634(0x18d)](_0x158ab2,_0x2d9cf6,_0x274962){const _0xf57244=_0x5bc634;return this[_0xf57244(0x17b)](_0x158ab2,_0x2d9cf6)[_0xf57244(0x18d)](_0x274962);}[_0x5bc634(0x240)](_0x1da7af,_0x3f864e,_0x2d9417){const _0xdbfa16=_0x5bc634;let _0x4ff4d2=this[_0xdbfa16(0x17b)](_0x1da7af,_0x3f864e)[_0xdbfa16(0x23f)][_0xdbfa16(0x233)](_0x2d9417);if(_0x4ff4d2)return _0x4ff4d2[_0xdbfa16(0x1e7)]();}[_0x5bc634(0x229)](){}[_0x5bc634(0x207)](_0x3caf4a){const _0x6b4e04=_0x5bc634;let _0x3ed86d={},_0x5577fb=this['_shapeModelManagerMap'][_0x6b4e04(0x233)](_0x3caf4a);return _0x5577fb&&_0x5577fb[_0x6b4e04(0x280)]((_0x4f024d,_0x5c6623)=>{const _0x51b380=_0x6b4e04;let _0x3e47df=_0x4f024d[_0x51b380(0x19b)]();_0x3e47df[_0x51b380(0x24e)]>0x0&&(_0x3ed86d[_0x5c6623]=_0x3e47df);}),JSON[_0x6b4e04(0x258)](_0x3ed86d);}[_0x5bc634(0x1bf)](_0x317409,_0x53cf94){const _0x31c9d0=_0x5bc634;Object[_0x31c9d0(0x21a)](_0x53cf94)['forEach'](_0x4bbe9b=>{const _0x2105c5=_0x31c9d0;this[_0x2105c5(0x17b)](_0x317409,_0x4bbe9b)[_0x2105c5(0x1c8)](_0x53cf94[_0x4bbe9b]);});}[_0x5bc634(0x19b)](){const _0x27758f=_0x5bc634;let _0x2c623b={};return this[_0x27758f(0x22f)][_0x27758f(0x280)]((_0x1af17f,_0x49bcdc)=>{const _0x2d5f6d=_0x27758f;_0x2c623b[_0x49bcdc]={},_0x1af17f[_0x2d5f6d(0x280)]((_0x23e548,_0x460bbd)=>{const _0x21e011=_0x2d5f6d;_0x2c623b[_0x49bcdc][_0x460bbd]=_0x23e548[_0x21e011(0x19b)]();});}),_0x2c623b;}['fromJSON'](_0xf7dc50){const _0x241e03=_0x5bc634;Object[_0x241e03(0x21a)](_0xf7dc50)[_0x241e03(0x280)](_0x581813=>{const _0x4de4e9=_0x241e03;let _0xb0cb7e=_0xf7dc50[_0x581813];Object[_0x4de4e9(0x21a)](_0xb0cb7e)[_0x4de4e9(0x280)](_0x26e50d=>{const _0x24288b=_0x4de4e9;this[_0x24288b(0x17b)](_0x581813,_0x26e50d)[_0x24288b(0x1c8)](_0xb0cb7e[_0x26e50d]);});});}[_0x5bc634(0x26f)](){const _0x1dab34=_0x5bc634;this['_resourcesManagerService']['registerPluginResource']({'pluginName':_0x1dab34(0x268),'businesses':[t[_0x1dab34(0x17e)][_0x1dab34(0x219)]],'toJson':_0x55cfe1=>this[_0x1dab34(0x207)](_0x55cfe1),'parseJson':_0x225cd4=>JSON['parse'](_0x225cd4),'onLoad':(_0x220943,_0x1693a2)=>{this['_deserializeShapeForUnit'](_0x220943,_0x1693a2);},'onUnLoad':_0x1f9e75=>{const _0x5aa4a8=_0x1dab34;let _0x2726ac=this[_0x5aa4a8(0x22f)][_0x5aa4a8(0x233)](_0x1f9e75);_0x2726ac&&(_0x2726ac[_0x5aa4a8(0x280)](_0x129d8e=>{const _0x519017=_0x5aa4a8;_0x129d8e[_0x519017(0x236)]();}),this[_0x5aa4a8(0x22f)][_0x5aa4a8(0x23b)](_0x1f9e75));}});}[_0x5bc634(0x236)](){const _0x13331d=_0x5bc634;this[_0x13331d(0x22f)][_0x13331d(0x280)](_0x324bc3=>{const _0x28090f=_0x13331d;_0x324bc3[_0x28090f(0x280)](_0x381189=>{const _0x10c060=_0x28090f;_0x381189[_0x10c060(0x236)]();});});}};p=f([d(0x0,t[_0x5bc634(0x213)])],p);const m={'id':_0x5bc634(0x269),'type':t[_0x5bc634(0x192)][_0x5bc634(0x244)],'handler':(_0x2a69e7,_0x37ab12)=>{const _0x552a67=_0x5bc634;let {unitId:_0xeb34db,subUnitId:_0x4ea4fd,shapeType:_0x352d74,shapeId:_0x1bdf7b,shapeName:_0x46b6ee,shapeData:_0x4ba976}=_0x37ab12;return _0x2a69e7[_0x552a67(0x233)](p)[_0x552a67(0x20e)](_0xeb34db,_0x4ea4fd,_0x352d74,_0x1bdf7b,t[_0x552a67(0x27e)][_0x552a67(0x1ff)](_0x4ba976),_0x46b6ee),!0x0;}},h={'id':_0x5bc634(0x1aa),'type':t[_0x5bc634(0x192)][_0x5bc634(0x244)],'handler':(_0x12cf6f,_0x3cacf8)=>{const _0x2c86e8=_0x5bc634;let {unitId:_0x4a4843,subUnitId:_0x3d1b42,shapeId:_0x55501b}=_0x3cacf8;return _0x12cf6f[_0x2c86e8(0x233)](p)[_0x2c86e8(0x1ed)](_0x4a4843,_0x3d1b42,_0x55501b),!0x0;}},g={'type':t[_0x5bc634(0x192)]['COMMAND'],'id':_0x5bc634(0x20f),'handler':(_0x54a776,_0x3b4f3e)=>{const _0xa84297=_0x5bc634;let _0x49c72d=(0x0,n[_0xa84297(0x276)])(_0x54a776[_0xa84297(0x233)](t[_0xa84297(0x1f2)]),_0x3b4f3e);if(!_0x49c72d)return!0x1;let _0x35c5c6=_0x54a776[_0xa84297(0x233)](n[_0xa84297(0x1df)]),{unitId:_0x4527cc,subUnitId:_0x16ee63}=_0x49c72d,_0x258a7f=_0x35c5c6[_0xa84297(0x25d)](_0x4527cc,_0x16ee63);if(!_0x258a7f)return!0x1;let _0x344f39=_0x54a776['get'](t[_0xa84297(0x1a8)]),_0x4ddd24=_0x54a776[_0xa84297(0x233)](t[_0xa84297(0x247)]),_0x1e3516=_0x54a776['get'](n['SheetInterceptorService']),_0x4b9259=_0x54a776['get'](r['ISheetDrawingService']),_0x4e9916=_0x54a776['get'](p),{shapeType:_0x491d30}=_0x3b4f3e,_0x14186e=_0x3b4f3e[_0xa84297(0x1c6)]??(0x0,e[_0xa84297(0x194)])(_0x491d30),_0x19a571=_0x3b4f3e[_0xa84297(0x1e2)]||(0x0,t['generateRandomId'])(),_0x3c60a2={'unitId':_0x4527cc,'subUnitId':_0x16ee63,'shapeId':_0x19a571,'shapeName':_0x3b4f3e[_0xa84297(0x188)]??(0x0,e[_0xa84297(0x260)])(_0x491d30,_0x4e9916['getShapeDisplayNames'](_0x4527cc,_0x16ee63)),'shapeType':_0x491d30,'shapeData':_0x14186e},_0x4a6acc=_0x3b4f3e['width']||0xc8,_0x5e26e2=_0x3b4f3e[_0xa84297(0x197)]||0xc8,_0x144855=0x0,_0x438357=0x0;if(_0x3b4f3e['position']){let {x:_0x29704d,y:_0x1092ea}=_0x3b4f3e[_0xa84297(0x1db)];_0x144855=_0x29704d,_0x438357=_0x1092ea;}else{if(_0x3b4f3e[_0xa84297(0x272)]){let {startRow:_0x510e18,startColumn:_0x2791d4}=_0x3b4f3e[_0xa84297(0x272)],_0x4b370b=_0x258a7f['getCellWithCoordByIndex'](_0x510e18,_0x2791d4);_0x144855=_0x4b370b[_0xa84297(0x1c5)]+0xa,_0x438357=_0x4b370b[_0xa84297(0x227)]+0xa;}}let _0x7274c7={'left':_0x144855,'top':_0x438357,'width':_0x4a6acc,'height':_0x5e26e2,'angle':_0x3b4f3e[_0xa84297(0x1f5)]??0x0,'flipX':_0x3b4f3e[_0xa84297(0x1bd)]??!0x1,'flipY':_0x3b4f3e[_0xa84297(0x174)]??!0x1},_0x4084ee=(0x0,r[_0xa84297(0x257)])(_0x7274c7,_0x258a7f),_0x477826=(0x0,r[_0xa84297(0x265)])(_0x7274c7,_0x258a7f),_0x1a597f={'unitId':_0x4527cc,'subUnitId':_0x16ee63,'drawingId':_0x19a571,'drawingType':t['DrawingTypeEnum']['DRAWING_SHAPE'],'anchorType':r[_0xa84297(0x1c9)][_0xa84297(0x26e)],'name':_0x3b4f3e[_0xa84297(0x241)],'description':_0x3b4f3e[_0xa84297(0x1e4)],'sheetTransform':_0x4084ee,'transform':_0x7274c7,'data':{'shapeType':_0x491d30,'shapeData':_0x14186e},'axisAlignSheetTransform':_0x477826,'allowTransform':!0x0,'hidden':_0x3b4f3e[_0xa84297(0x228)]===!0x1,'selectable':_0x3b4f3e[_0xa84297(0x1e5)]??!0x0};(0x0,e[_0xa84297(0x1ad)])(_0x491d30)&&(_0x1a597f[_0xa84297(0x1a0)][_0xa84297(0x250)]=!0x1,_0x1a597f['data']['rotateEnabled']=!0x1,_0x1a597f['data'][_0xa84297(0x203)]=!0x1,_0x1a597f[_0xa84297(0x1a0)][_0xa84297(0x22c)]=!0x1,_0x1a597f[_0xa84297(0x232)]['rotateEnabled']=!0x1,_0x1a597f[_0xa84297(0x232)][_0xa84297(0x203)]=!0x1,_0x1a597f[_0xa84297(0x232)][_0xa84297(0x22c)]=!0x1);let {undo:_0x427507,redo:_0x1046a0,objects:_0x20ebf0}=_0x4b9259[_0xa84297(0x209)]([_0x1a597f]),_0x9af80e=_0x1e3516[_0xa84297(0x1c3)]({'id':r[_0xa84297(0x1ce)]['id'],'params':{'unitId':_0x4527cc,'drawings':[_0x1a597f]}}),_0x451f81=[..._0x9af80e[_0xa84297(0x235)]??[],{'id':r[_0xa84297(0x18e)]['id'],'params':{'unitId':_0x4527cc,'subUnitId':_0x16ee63,'op':_0x1046a0,'objects':_0x20ebf0,'type':r[_0xa84297(0x23e)][_0xa84297(0x24c)]}},{'id':r[_0xa84297(0x1d1)]['id'],'params':[_0x4527cc]},..._0x9af80e[_0xa84297(0x1c2)],{'id':m['id'],'params':_0x3c60a2}],_0x21e863=[{'id':h['id'],'params':{'unitId':_0x4527cc,'subUnitId':_0x16ee63,'shapeId':_0x19a571}},..._0x9af80e[_0xa84297(0x183)]??[],{'id':r[_0xa84297(0x18e)]['id'],'params':{'unitId':_0x4527cc,'subUnitId':_0x16ee63,'op':_0x427507,'objects':_0x20ebf0,'type':r[_0xa84297(0x23e)]['REMOVE']}},{'id':r[_0xa84297(0x1d1)]['id'],'params':[_0x4527cc]},..._0x9af80e[_0xa84297(0x1cf)]];return(0x0,t[_0xa84297(0x215)])(_0x451f81,_0x344f39)[_0xa84297(0x26c)]?(_0x4ddd24[_0xa84297(0x248)]({'unitID':_0x4527cc,'undoMutations':_0x21e863,'redoMutations':_0x451f81}),!0x0):!0x1;}},_={'id':_0x5bc634(0x1d9),'type':t[_0x5bc634(0x192)][_0x5bc634(0x244)],'handler':(_0x49ec9a,_0x4badc1)=>{const _0xc4a24c=_0x5bc634;let {unitId:_0x5fd820,subUnitId:_0x24cd73,shapeType:_0x18e49c,shapeId:_0x5f02c0,shapeData:_0x42fb2c,replace:_0xfb1816,formulaLastValueGuard:_0x3ece99}=_0x4badc1,_0x4d3998=_0x49ec9a[_0xc4a24c(0x233)](p)[_0xc4a24c(0x27b)](_0x5fd820,_0x24cd73,_0x5f02c0);if(_0x4d3998){var _0x42945e;if(!(0x0,e[_0xc4a24c(0x1bb)])(_0x49ec9a,{'hostType':t['UniverInstanceType'][_0xc4a24c(0x219)],'unitId':_0x5fd820,'subUnitId':_0x24cd73,'shapeId':_0x5f02c0},(_0x42945e=_0x4d3998[_0xc4a24c(0x214)]()[_0xc4a24c(0x184)])==null?void 0x0:_0x42945e[_0xc4a24c(0x18c)],_0x3ece99))return!0x0;_0x18e49c!==void 0x0&&_0x4d3998['setShapeType'](_0x18e49c),_0x42fb2c&&(_0x4d3998==null||_0x4d3998[_0xc4a24c(0x1ab)](t[_0xc4a24c(0x27e)][_0xc4a24c(0x1ff)](_0x42fb2c),!_0xfb1816));}return!0x0;}},v={'type':t[_0x5bc634(0x192)][_0x5bc634(0x206)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x10b94e,_0x191cb1)=>{const _0x57f3e2=_0x5bc634;let _0x443d0f=(0x0,n[_0x57f3e2(0x276)])(_0x10b94e[_0x57f3e2(0x233)](t[_0x57f3e2(0x1f2)]),_0x191cb1);if(!_0x443d0f)return!0x1;let _0x2b9d01=_0x10b94e[_0x57f3e2(0x233)](n[_0x57f3e2(0x1df)]),{unitId:_0x2a5a44,subUnitId:_0x2f2bfa}=_0x443d0f,_0x2a4573=_0x2b9d01[_0x57f3e2(0x25d)](_0x2a5a44,_0x2f2bfa);if(!_0x2a4573)return!0x1;let _0x244e19=_0x10b94e[_0x57f3e2(0x233)](p),{shapeId:_0x345a8d,shapeType:_0x2fa373,shapeData:_0x2ef634,position:_0x1f284d,width:_0x1fb650,height:_0x3bce43}=_0x191cb1,_0x4e31c4=_0x244e19['getShapeModel'](_0x2a5a44,_0x2f2bfa,_0x345a8d);if(!_0x4e31c4)return!0x1;let _0x1ffd12=_0x10b94e[_0x57f3e2(0x233)](t['ICommandService']),_0x4364bd=_0x10b94e['get'](t['IUndoRedoService']),_0x2b29ec=_0x10b94e[_0x57f3e2(0x233)](n[_0x57f3e2(0x1ef)]),_0x22e83e=_0x10b94e[_0x57f3e2(0x233)](r[_0x57f3e2(0x283)]),_0x118ec6={'unitId':_0x2a5a44,'subUnitId':_0x2f2bfa,'shapeId':_0x345a8d,'shapeType':_0x2fa373,'shapeData':_0x2ef634,'replace':!0x0},_0x1204b1=_0x4e31c4['getShapeType'](),_0x458d8b=_0x4e31c4[_0x57f3e2(0x214)](),{x:_0x5dcf61,y:_0x30b436}=_0x1f284d,_0x54a1e7={'left':_0x5dcf61,'top':_0x30b436,'width':_0x1fb650,'height':_0x3bce43,'angle':_0x191cb1[_0x57f3e2(0x1f5)]??0x0,'flipX':_0x191cb1[_0x57f3e2(0x1bd)]??!0x1,'flipY':_0x191cb1[_0x57f3e2(0x174)]??!0x1},_0x2dbb16=(0x0,r['transformToDrawingPosition'])(_0x54a1e7,_0x2a4573),_0x57cf3=(0x0,r[_0x57f3e2(0x265)])(_0x54a1e7,_0x2a4573),_0x3f9bb1={'unitId':_0x2a5a44,'subUnitId':_0x2f2bfa,'drawingId':_0x345a8d,'drawingType':t[_0x57f3e2(0x253)][_0x57f3e2(0x223)],'name':_0x191cb1['name'],'description':_0x191cb1[_0x57f3e2(0x1e4)],'sheetTransform':_0x2dbb16,'transform':_0x54a1e7,'data':{'shapeType':_0x2fa373,'shapeData':_0x2ef634},'axisAlignSheetTransform':_0x57cf3,'allowTransform':!0x0,'hidden':!_0x191cb1['visible'],'selectable':_0x191cb1[_0x57f3e2(0x1e5)]};(0x0,e['isConnectorShape'])(_0x2fa373)&&(_0x3f9bb1[_0x57f3e2(0x1a0)][_0x57f3e2(0x250)]=!0x1,_0x3f9bb1[_0x57f3e2(0x1a0)]['rotateEnabled']=!0x1,_0x3f9bb1[_0x57f3e2(0x1a0)]['resizeEnabled']=!0x1,_0x3f9bb1['data'][_0x57f3e2(0x22c)]=!0x1,_0x3f9bb1['transform'][_0x57f3e2(0x26a)]=!0x1,_0x3f9bb1[_0x57f3e2(0x232)]['resizeEnabled']=!0x1,_0x3f9bb1['transform']['borderEnabled']=!0x1);let {undo:_0x3c71ef,redo:_0x1845b5,objects:_0x453eb3}=_0x22e83e['getBatchUpdateOp']([_0x3f9bb1]),_0x5b056b=_0x2b29ec[_0x57f3e2(0x1c3)]({'id':r[_0x57f3e2(0x191)]['id'],'params':{'unitId':_0x2a5a44,'drawings':[_0x3f9bb1]}}),_0x20da7f=[..._0x5b056b['preRedos']??[],{'id':r[_0x57f3e2(0x18e)]['id'],'params':{'unitId':_0x2a5a44,'subUnitId':_0x2f2bfa,'op':_0x1845b5,'objects':_0x453eb3,'type':r[_0x57f3e2(0x23e)]['UPDATE']}},{'id':r[_0x57f3e2(0x1d1)]['id'],'params':[_0x2a5a44]},..._0x5b056b[_0x57f3e2(0x1c2)],{'id':_['id'],'params':_0x118ec6}],_0x306e4a=[..._0x5b056b[_0x57f3e2(0x183)]??[],{'id':r[_0x57f3e2(0x18e)]['id'],'params':{'unitId':_0x2a5a44,'subUnitId':_0x2f2bfa,'op':_0x3c71ef,'objects':_0x453eb3,'type':r[_0x57f3e2(0x23e)][_0x57f3e2(0x216)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2a5a44]},..._0x5b056b['undos'],{'id':_['id'],'params':{'unitId':_0x2a5a44,'subUnitId':_0x2f2bfa,'shapeType':_0x1204b1,'shapeId':_0x345a8d,'shapeData':_0x458d8b,'replace':!0x0}}];return(0x0,t[_0x57f3e2(0x215)])(_0x20da7f,_0x1ffd12)[_0x57f3e2(0x26c)]?(_0x4364bd[_0x57f3e2(0x248)]({'unitID':_0x2a5a44,'undoMutations':_0x306e4a,'redoMutations':_0x20da7f}),!0x0):!0x1;}},y={'type':t[_0x5bc634(0x192)]['COMMAND'],'id':_0x5bc634(0x23c),'handler':(_0x1fd1ae,_0x4bdc74)=>{const _0x1ea63c=_0x5bc634;let _0x295347=(0x0,n[_0x1ea63c(0x276)])(_0x1fd1ae[_0x1ea63c(0x233)](t[_0x1ea63c(0x1f2)]),_0x4bdc74);if(!_0x295347)return!0x1;let _0x3bf9cb=_0x1fd1ae[_0x1ea63c(0x233)](n['SheetSkeletonService']),{unitId:_0x1b0f86,subUnitId:_0x56cd70}=_0x295347,_0x330d6e=_0x3bf9cb[_0x1ea63c(0x1b4)](_0x1b0f86,_0x56cd70);if(!_0x330d6e)return!0x1;let _0x5bc339=_0x1fd1ae[_0x1ea63c(0x233)](r[_0x1ea63c(0x283)]),{shapeId:_0x174071,flipH:_0x599374,flipV:_0x128c46}=_0x4bdc74,_0xdf17a5=_0x5bc339['getDrawingByParam']({'unitId':_0x1b0f86,'subUnitId':_0x56cd70,'drawingId':_0x174071});if(!_0xdf17a5)return!0x1;let _0xe6cb3b=_0x1fd1ae[_0x1ea63c(0x233)](p)[_0x1ea63c(0x27b)](_0x1b0f86,_0x56cd70,_0x174071);if(!_0xe6cb3b)return!0x1;let _0x1f9228=_0x1fd1ae['get'](t['ICommandService']),_0x1bb094=_0x1fd1ae['get'](t[_0x1ea63c(0x247)]),_0xf263f3=_0x1fd1ae[_0x1ea63c(0x233)](n[_0x1ea63c(0x1ef)]),_0x5abc07={..._0xdf17a5['transform']};_0x599374!==void 0x0&&(_0x5abc07['flipX']=!_0x5abc07['flipX']),_0x128c46!==void 0x0&&(_0x5abc07['flipY']=!_0x5abc07[_0x1ea63c(0x174)]);let _0x592318=(0x0,r[_0x1ea63c(0x257)])(_0x5abc07,_0x330d6e),_0x3e391b=(0x0,r[_0x1ea63c(0x265)])(_0x5abc07,_0x330d6e),_0x52826c=_0xe6cb3b['getShapeType'](),_0xe48789=_0xe6cb3b[_0x1ea63c(0x214)](),_0xce0718={'unitId':_0x1b0f86,'subUnitId':_0x56cd70,'drawingId':_0x174071,'drawingType':t[_0x1ea63c(0x253)][_0x1ea63c(0x223)],'sheetTransform':_0x592318,'transform':_0x5abc07,'data':{'shapeType':_0x52826c,'shapeData':_0xe48789},'axisAlignSheetTransform':_0x3e391b,'allowTransform':!0x0},{undo:_0x27d025,redo:_0x169e6,objects:_0x5f3f43}=_0x5bc339[_0x1ea63c(0x1e6)]([_0xce0718]),_0x2195e7=_0xf263f3['onCommandExecute']({'id':r[_0x1ea63c(0x191)]['id'],'params':{'unitId':_0x1b0f86,'drawings':[_0xce0718]}}),_0x1fd66d=[..._0x2195e7[_0x1ea63c(0x235)]??[],{'id':r[_0x1ea63c(0x18e)]['id'],'params':{'unitId':_0x1b0f86,'subUnitId':_0x56cd70,'op':_0x169e6,'objects':_0x5f3f43,'type':r['DrawingApplyType'][_0x1ea63c(0x216)]}},{'id':r[_0x1ea63c(0x1d1)]['id'],'params':[_0x1b0f86]},..._0x2195e7['redos']],_0x41aeba=[..._0x2195e7[_0x1ea63c(0x183)]??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1b0f86,'subUnitId':_0x56cd70,'op':_0x27d025,'objects':_0x5f3f43,'type':r['DrawingApplyType']['UPDATE']}},{'id':r[_0x1ea63c(0x1d1)]['id'],'params':[_0x1b0f86]},..._0x2195e7[_0x1ea63c(0x1cf)]];if((0x0,e[_0x1ea63c(0x1ad)])(_0x52826c)){let _0x23da71=_0xe6cb3b[_0x1ea63c(0x1e7)]();if(_0x23da71){let _0xb08c5f={..._0x23da71};_0xb08c5f[_0x1ea63c(0x24b)]=void 0x0,_0xb08c5f['to']=void 0x0,_0x1fd66d[_0x1ea63c(0x201)]({'id':_['id'],'params':{'unitId':_0x1b0f86,'subUnitId':_0x56cd70,'shapeId':_0x174071,'shapeType':_0x52826c,'shapeData':{'relation':_0xb08c5f}}}),_0x41aeba['push']({'id':_['id'],'params':{'unitId':_0x1b0f86,'subUnitId':_0x56cd70,'shapeId':_0x174071,'shapeType':_0x52826c,'shapeData':{'relation':_0x23da71}}});}}return(0x0,t[_0x1ea63c(0x215)])(_0x1fd66d,_0x1f9228)[_0x1ea63c(0x26c)]?(_0x1bb094[_0x1ea63c(0x248)]({'unitID':_0x1b0f86,'undoMutations':_0x41aeba,'redoMutations':_0x1fd66d}),!0x0):!0x1;}},b={'type':t[_0x5bc634(0x192)][_0x5bc634(0x206)],'id':'sheet.command.set-shape-rotate','handler':(_0x210686,_0x37a674)=>{const _0x37e761=_0x5bc634;let _0x4657c2=(0x0,n[_0x37e761(0x276)])(_0x210686[_0x37e761(0x233)](t['IUniverInstanceService']),_0x37a674);if(!_0x4657c2)return!0x1;let _0x4756b5=_0x210686[_0x37e761(0x233)](n[_0x37e761(0x1df)]),{unitId:_0x1f7f43,subUnitId:_0x2df732}=_0x4657c2,_0x5914e6=_0x4756b5[_0x37e761(0x1b4)](_0x1f7f43,_0x2df732);if(!_0x5914e6)return!0x1;let _0x2046fc=_0x210686[_0x37e761(0x233)](r[_0x37e761(0x283)]),{shapeId:_0x13c704,rotate:_0x2370f6}=_0x37a674,_0x264326=_0x2046fc[_0x37e761(0x19a)]({'unitId':_0x1f7f43,'subUnitId':_0x2df732,'drawingId':_0x13c704});if(!_0x264326)return!0x1;let _0x28e6ef=_0x210686[_0x37e761(0x233)](p)[_0x37e761(0x27b)](_0x1f7f43,_0x2df732,_0x13c704);if(!_0x28e6ef)return!0x1;let _0x15a5a9=_0x210686[_0x37e761(0x233)](t[_0x37e761(0x1a8)]),_0x46d16b=_0x210686[_0x37e761(0x233)](t['IUndoRedoService']),_0x4bad94=_0x210686['get'](n['SheetInterceptorService']),_0x8a0ac1={..._0x264326[_0x37e761(0x232)]};_0x2370f6!==void 0x0&&(_0x8a0ac1[_0x37e761(0x204)]=(_0x8a0ac1[_0x37e761(0x204)]||0x0)+_0x2370f6);let _0x56c049=(0x0,r[_0x37e761(0x257)])(_0x8a0ac1,_0x5914e6),_0x28c7a1=(0x0,r[_0x37e761(0x265)])(_0x8a0ac1,_0x5914e6),_0x36f9e5=_0x28e6ef[_0x37e761(0x1fe)](),_0x36be91=_0x28e6ef[_0x37e761(0x214)](),_0x19f0a6={'unitId':_0x1f7f43,'subUnitId':_0x2df732,'drawingId':_0x13c704,'drawingType':t[_0x37e761(0x253)][_0x37e761(0x223)],'sheetTransform':_0x56c049,'transform':_0x8a0ac1,'data':{'shapeType':_0x36f9e5,'shapeData':_0x36be91},'axisAlignSheetTransform':_0x28c7a1,'allowTransform':!0x0},{undo:_0x12248c,redo:_0x5f54cc,objects:_0x151057}=_0x2046fc[_0x37e761(0x1e6)]([_0x19f0a6]),_0x5f58fa=_0x4bad94[_0x37e761(0x1c3)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x1f7f43,'drawings':[_0x19f0a6]}}),_0x457dbe=[..._0x5f58fa[_0x37e761(0x235)]??[],{'id':r[_0x37e761(0x18e)]['id'],'params':{'unitId':_0x1f7f43,'subUnitId':_0x2df732,'op':_0x5f54cc,'objects':_0x151057,'type':r[_0x37e761(0x23e)][_0x37e761(0x216)]}},{'id':r[_0x37e761(0x1d1)]['id'],'params':[_0x1f7f43]},..._0x5f58fa['redos']],_0x3ce282=[..._0x5f58fa[_0x37e761(0x183)]??[],{'id':r[_0x37e761(0x18e)]['id'],'params':{'unitId':_0x1f7f43,'subUnitId':_0x2df732,'op':_0x12248c,'objects':_0x151057,'type':r[_0x37e761(0x23e)][_0x37e761(0x216)]}},{'id':r[_0x37e761(0x1d1)]['id'],'params':[_0x1f7f43]},..._0x5f58fa[_0x37e761(0x1cf)]];return(0x0,t[_0x37e761(0x215)])(_0x457dbe,_0x15a5a9)[_0x37e761(0x26c)]?(_0x46d16b[_0x37e761(0x248)]({'unitID':_0x1f7f43,'undoMutations':_0x3ce282,'redoMutations':_0x457dbe}),!0x0):!0x1;}},x={'type':t['CommandType'][_0x5bc634(0x206)],'id':_0x5bc634(0x20b),'handler':(_0x38a7fa,_0x2f6c90)=>{const _0x4b76fa=_0x5bc634;let _0x3c106a=(0x0,n[_0x4b76fa(0x276)])(_0x38a7fa[_0x4b76fa(0x233)](t[_0x4b76fa(0x1f2)]),_0x2f6c90);if(!_0x3c106a)return!0x1;let {unitId:_0x22bdb9,subUnitId:_0x27566e}=_0x3c106a,{shapeId:_0x3f751a}=_0x2f6c90,_0x2e7aa5=_0x38a7fa[_0x4b76fa(0x233)](p)[_0x4b76fa(0x27b)](_0x22bdb9,_0x27566e,_0x3f751a);if(!_0x2e7aa5)return!0x1;let _0x4333b5=_0x2e7aa5[_0x4b76fa(0x1ea)](),_0xff6eab=(_0x4333b5==null?void 0x0:_0x4333b5[_0x4b76fa(0x252)])??!0x0,_0x12b262=!_0xff6eab,_0x552b28=_0x38a7fa[_0x4b76fa(0x233)](t[_0x4b76fa(0x1a8)]),_0x284045=_0x38a7fa[_0x4b76fa(0x233)](t[_0x4b76fa(0x247)]),_0x1de1b0={'unitId':_0x22bdb9,'subUnitId':_0x27566e,'shapeId':_0x3f751a,'shapeData':{'shapeText':{'isHorizontal':_0x12b262}}},_0x25d0fb={'unitId':_0x22bdb9,'subUnitId':_0x27566e,'shapeId':_0x3f751a,'shapeData':{'shapeText':{'isHorizontal':_0xff6eab}}},_0x536e2c=[{'id':_['id'],'params':_0x1de1b0}],_0x332f9f=[{'id':_['id'],'params':_0x25d0fb}];return(0x0,t[_0x4b76fa(0x215)])(_0x536e2c,_0x552b28)[_0x4b76fa(0x26c)]?(_0x284045['pushUndoRedo']({'unitID':_0x22bdb9,'undoMutations':_0x332f9f,'redoMutations':_0x536e2c}),!0x0):!0x1;}},S={'type':t['CommandType'][_0x5bc634(0x206)],'id':'sheet.command.update-connector-relation','handler':(_0x5c5b93,_0x526679)=>{const _0x3e3a28=_0x5bc634;var _0x241f8e;let _0x534843=(0x0,n['getSheetCommandTarget'])(_0x5c5b93[_0x3e3a28(0x233)](t['IUniverInstanceService']),_0x526679);if(!_0x534843)return!0x1;let _0x258bf1=_0x5c5b93[_0x3e3a28(0x233)](n[_0x3e3a28(0x1df)]),{unitId:_0x4a99e8,subUnitId:_0x48aa87}=_0x534843,_0x558a96=_0x258bf1[_0x3e3a28(0x1b4)](_0x4a99e8,_0x48aa87);if(!_0x558a96)return!0x1;let _0x15eec1=_0x5c5b93[_0x3e3a28(0x233)](r[_0x3e3a28(0x283)]),{connectorShapeId:_0x5e8732,width:_0x1f0323,height:_0x39813e,left:_0x99d500,top:_0x1e347a,flipX:_0x2f3e24,flipY:_0x56ce43,rotation:_0x55ba00,oldAdjustValues:_0x5518ec,newAdjustValues:_0x58ad5c,oldLineType:_0x23f34a,newLineType:_0xfaee,oldRelation:_0xd3c2b7,newRelation:_0x28b6e5}=_0x526679,_0x4c6278=_0x15eec1[_0x3e3a28(0x19a)]({'unitId':_0x4a99e8,'subUnitId':_0x48aa87,'drawingId':_0x5e8732});if(!_0x4c6278)return!0x1;let _0x1cc316=_0x5c5b93[_0x3e3a28(0x233)](p)[_0x3e3a28(0x27b)](_0x4a99e8,_0x48aa87,_0x5e8732);if(!_0x1cc316)return!0x1;let _0xf434ba=_0x5c5b93[_0x3e3a28(0x233)](t[_0x3e3a28(0x1a8)]),_0x2aa30e=_0x5c5b93[_0x3e3a28(0x233)](t[_0x3e3a28(0x247)]),_0x5ad844=_0x5c5b93[_0x3e3a28(0x233)](n[_0x3e3a28(0x1ef)]),_0xbf58ab={..._0x4c6278[_0x3e3a28(0x232)],'width':_0x1f0323,'height':_0x39813e,'left':_0x99d500,'top':_0x1e347a,'flipX':_0x2f3e24,'flipY':_0x56ce43,'angle':_0x55ba00??((_0x241f8e=_0x4c6278[_0x3e3a28(0x232)])==null?void 0x0:_0x241f8e[_0x3e3a28(0x204)])??0x0},_0x552369=(0x0,r[_0x3e3a28(0x257)])(_0xbf58ab,_0x558a96),_0x178a67=(0x0,r[_0x3e3a28(0x265)])(_0xbf58ab,_0x558a96),_0x586ef6=_0x1cc316[_0x3e3a28(0x1fe)](),_0x20d10c=_0x1cc316[_0x3e3a28(0x214)](),_0x1cba75={'unitId':_0x4a99e8,'subUnitId':_0x48aa87,'drawingId':_0x5e8732,'drawingType':t[_0x3e3a28(0x253)][_0x3e3a28(0x223)],'sheetTransform':_0x552369,'transform':_0xbf58ab,'data':{'shapeType':_0xfaee||_0x23f34a||_0x586ef6,'shapeData':{..._0x20d10c,'adjustValues':_0x58ad5c||_0x5518ec||(_0x20d10c==null?void 0x0:_0x20d10c['adjustValues']),'relation':_0x28b6e5||_0xd3c2b7||(_0x20d10c==null?void 0x0:_0x20d10c[_0x3e3a28(0x1d5)])}},'axisAlignSheetTransform':_0x178a67,'allowTransform':!0x0},{undo:_0x4750c2,redo:_0x5acff8,objects:_0x464440}=_0x15eec1[_0x3e3a28(0x1e6)]([_0x1cba75]),_0x4f2287=_0x5ad844['onCommandExecute']({'id':r[_0x3e3a28(0x191)]['id'],'params':{'unitId':_0x4a99e8,'drawings':[_0x1cba75]}}),_0x548c49=[..._0x4f2287[_0x3e3a28(0x235)]??[],{'id':r[_0x3e3a28(0x18e)]['id'],'params':{'unitId':_0x4a99e8,'subUnitId':_0x48aa87,'op':_0x5acff8,'objects':_0x464440,'type':r[_0x3e3a28(0x23e)][_0x3e3a28(0x216)]}},{'id':r[_0x3e3a28(0x1d1)]['id'],'params':[_0x4a99e8]},..._0x4f2287[_0x3e3a28(0x1c2)],{'id':_['id'],'params':{'unitId':_0x4a99e8,'subUnitId':_0x48aa87,'shapeId':_0x5e8732,'shapeType':_0xfaee,'shapeData':{'adjustValues':_0x58ad5c,'relation':_0x28b6e5}}}],_0x307a7e=[..._0x4f2287['preUndos']??[],{'id':r[_0x3e3a28(0x18e)]['id'],'params':{'unitId':_0x4a99e8,'subUnitId':_0x48aa87,'op':_0x4750c2,'objects':_0x464440,'type':r[_0x3e3a28(0x23e)][_0x3e3a28(0x216)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4a99e8]},..._0x4f2287[_0x3e3a28(0x1cf)],{'id':_['id'],'params':{'unitId':_0x4a99e8,'subUnitId':_0x48aa87,'shapeId':_0x5e8732,'shapeType':_0x586ef6,'shapeData':{..._0x20d10c,'adjustValues':_0x5518ec||(_0x20d10c==null?void 0x0:_0x20d10c[_0x3e3a28(0x1d0)]),'relation':_0xd3c2b7||(_0x20d10c==null?void 0x0:_0x20d10c['relation'])}}}];return(0x0,t[_0x3e3a28(0x215)])(_0x548c49,_0xf434ba)[_0x3e3a28(0x26c)]?(_0x2aa30e[_0x3e3a28(0x248)]({'unitID':_0x4a99e8,'undoMutations':_0x307a7e,'redoMutations':_0x548c49}),!0x0):!0x1;}},C={'type':t[_0x5bc634(0x192)][_0x5bc634(0x206)],'id':_0x5bc634(0x202),'handler':(_0x593bbd,_0x1e4cd8)=>{const _0x285a17=_0x5bc634;let _0x20c7fe=(0x0,n[_0x285a17(0x276)])(_0x593bbd['get'](t['IUniverInstanceService']),_0x1e4cd8);if(!_0x20c7fe)return!0x1;let _0x2b5383=_0x593bbd[_0x285a17(0x233)](n[_0x285a17(0x1df)]),{unitId:_0x506544,subUnitId:_0x22e167}=_0x20c7fe,_0x37bb00=_0x2b5383[_0x285a17(0x1b4)](_0x506544,_0x22e167);if(!_0x37bb00)return!0x1;let _0x139ca5=_0x593bbd[_0x285a17(0x233)](r[_0x285a17(0x283)]),{shapeId:_0x9e275f,width:_0x3c034f,height:_0x2bb09b,left:_0xe696b9,top:_0x49156d,flipX:_0x5a290a,flipY:_0x189df6,angle:_0x141cef,oldAdjustValues:_0x58fce3,newAdjustValues:_0x345f05,oldLineType:_0x19acea,newLineType:_0x49d322}=_0x1e4cd8,_0x40423f=_0x139ca5[_0x285a17(0x19a)]({'unitId':_0x506544,'subUnitId':_0x22e167,'drawingId':_0x9e275f});if(!_0x40423f)return!0x1;let _0x559ceb=_0x593bbd[_0x285a17(0x233)](p)[_0x285a17(0x27b)](_0x506544,_0x22e167,_0x9e275f);if(!_0x559ceb)return!0x1;let _0x12601a=_0x593bbd['get'](t['ICommandService']),_0x3c3873=_0x593bbd['get'](t[_0x285a17(0x247)]),_0x170f8a=_0x593bbd['get'](n['SheetInterceptorService']),_0x36b38a={..._0x40423f['transform'],'width':_0x3c034f,'height':_0x2bb09b,'left':_0xe696b9,'top':_0x49156d,'flipX':_0x5a290a,'flipY':_0x189df6,'angle':_0x141cef},_0x265cf9=(0x0,r['transformToDrawingPosition'])(_0x36b38a,_0x37bb00),_0xb846b2=(0x0,r['transformToAxisAlignPosition'])(_0x36b38a,_0x37bb00),_0x5acaee=_0x559ceb[_0x285a17(0x1fe)](),_0x372107=_0x559ceb[_0x285a17(0x214)](),_0x5702d4={'unitId':_0x506544,'subUnitId':_0x22e167,'drawingId':_0x9e275f,'drawingType':t[_0x285a17(0x253)]['DRAWING_SHAPE'],'sheetTransform':_0x265cf9,'transform':_0x36b38a,'data':{'shapeType':_0x49d322||_0x19acea||_0x5acaee,'shapeData':{..._0x372107,'adjustValues':_0x345f05||_0x58fce3||(_0x372107==null?void 0x0:_0x372107[_0x285a17(0x1d0)])}},'axisAlignSheetTransform':_0xb846b2,'allowTransform':!0x0},{undo:_0x5c1f3b,redo:_0x343b6e,objects:_0x1c672b}=_0x139ca5[_0x285a17(0x1e6)]([_0x5702d4]),_0x10633=_0x170f8a[_0x285a17(0x1c3)]({'id':r[_0x285a17(0x191)]['id'],'params':{'unitId':_0x506544,'drawings':[_0x5702d4]}}),_0x1d7f8d=[..._0x10633[_0x285a17(0x235)]??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x506544,'subUnitId':_0x22e167,'op':_0x343b6e,'objects':_0x1c672b,'type':r[_0x285a17(0x23e)][_0x285a17(0x216)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x506544]},..._0x10633[_0x285a17(0x1c2)],{'id':_['id'],'params':{'unitId':_0x506544,'subUnitId':_0x22e167,'shapeId':_0x9e275f,'shapeType':_0x49d322,'shapeData':{'adjustValues':_0x345f05}}}],_0x1e441f=[..._0x10633[_0x285a17(0x183)]??[],{'id':r[_0x285a17(0x18e)]['id'],'params':{'unitId':_0x506544,'subUnitId':_0x22e167,'op':_0x5c1f3b,'objects':_0x1c672b,'type':r[_0x285a17(0x23e)][_0x285a17(0x216)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x506544]},..._0x10633[_0x285a17(0x1cf)],{'id':_['id'],'params':{'unitId':_0x506544,'subUnitId':_0x22e167,'shapeId':_0x9e275f,'shapeType':_0x5acaee,'shapeData':{..._0x372107,'adjustValues':_0x58fce3||(_0x372107==null?void 0x0:_0x372107[_0x285a17(0x1d0)])}}}];return(0x0,t[_0x285a17(0x215)])(_0x1d7f8d,_0x12601a)[_0x285a17(0x26c)]?(_0x3c3873['pushUndoRedo']({'unitID':_0x506544,'undoMutations':_0x1e441f,'redoMutations':_0x1d7f8d}),!0x0):!0x1;}},w={'id':_0x5bc634(0x17f),'type':t[_0x5bc634(0x192)]['MUTATION'],'handler':(_0x50db40,_0x3f199a)=>{const _0x205bbb=_0x5bc634;let {unitId:_0x9c9529,subUnitId:_0x192ce0,shapeType:_0x57c090,shapeId:_0x543953,shapeData:_0x53f8f1}=_0x3f199a,_0x1407dc=_0x50db40['get'](p)[_0x205bbb(0x27b)](_0x9c9529,_0x192ce0,_0x543953);return _0x1407dc&&(_0x1407dc[_0x205bbb(0x229)](_0x57c090),_0x53f8f1&&(_0x1407dc==null||_0x1407dc[_0x205bbb(0x1ab)](_0x53f8f1))),!0x0;}};var T=_0x5bc634(0x190),E='1.0.0';function _0x4030(){const _0x5d8903=['name','map','shapeChanged$','MUTATION','syncExecuteCommand','string','IUndoRedoService','pushUndoRedo','_initCommandInterceptor','setZOrder','from','INSERT','UniverSheetsShapePlugin','length','object','fill','bringToFront','isHorizontal','DrawingTypeEnum','listShapesInUnit','_getConnectPointInfo','find','transformToDrawingPosition','stringify','onCommandExecuted','unitId','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','SheetsShapeService','ensureSkeleton','cos','createShape','createUniqueShapeName','symbol','disposeWithMe','_arrange','14986670JNdvIZ','transformToAxisAlignPosition','getBasicShapeRotateBound','getShapeTypeById','SHEET_SHAPE_PLUGIN','sheet.mutation.insert-shape','rotateEnabled','15476FnyUwi','result','4296haKZBB','Both','_initSnapshot','UniverSheetsDrawingPlugin','_addLineFollowShapeUpdates','range','_initCommands','UpdateConnectorRelationCommand','ShapeModel','getSheetCommandTarget','Disposable','Injector','UniverDrawingPlugin','InsertSheetsShapeMutation','getShapeModel','deletes','version','Tools','hasShape','forEach','UniverShapePlugin','131476copzrT','ISheetDrawingService','iterator','flipY','toPrimitive','DependentOn','params','UpdateSheetsShapeDataMutation','addShape','back','_ensureShapeModelManager','getSheets','constructor','UniverInstanceType','sheet.mutation.update-shape-type','ToggleSheetsShapeFlipCommand','add','DEFAULT_SHAPE_WIDTH','preUndos','formulaBinding','has','_shapeService','set','shapeName','_disposed','_injector','originals','formula','getBasicShapeRelation','SetDrawingApplyMutation','getAdjustNames','@univerjs-pro/sheets-shape','SetSheetDrawingCommand','CommandType','cxnIndex','createDefaultInsertedShapeData','resolveShapeConnectionPoint','isLineShape','height','updateShape','subUnitId','getDrawingByParam','toJSON','defineProperty','setConfig','_sheetsShapeService','function','data','createFreeConnectorPointInfo','SetDrawingArrangeCommand','getShapeDisplayNames','getDrawingData','Inject','getShapeDataById','_planDeletes','ICommandService','shapeType','sheet.mutation.remove-shape','setShapeData','values','isConnectorShape','getAdjustValueByName','_resolveBinding','_planConnector','drawingType','mode','_configService','getSkeleton','getUnit','filter','packageName','ArrangeTypeEnum','_groupIds','point','canApplyShapeFormulaLastValue','_instanceService','flipX','index','_deserializeShapeForUnit','top','sendBackward','redos','onCommandExecute','routeConnectorLineShape','startX','shapeData','width','fromJSON','SheetDrawingAnchorType','getId','createFormulaLastValueMutation','_sheetSkeletonService','hostType','InsertSheetDrawingCommand','undos','adjustValues','ClearSheetDrawingTransformerOperation','_commandService','267Eoqohz','skeleton','relation','_config','UniverSheetsPlugin','UniverLicensePlugin','sheet.mutation.update-shape-data','default','position','left','drawingId','command','SheetSkeletonService','updates','front','shapeId','1539002wQXZxu','description','selectable','getBatchUpdateOp','getShapeRelation','48496404MJrihx','registerCommand','getShapeTextData','getName','listShapes','removeShape','UpdateLineShapeResizeCommand','SheetInterceptorService','removeLinePoints','_drawingService','IUniverInstanceService','ang','onStarting','rotation','_toSnapshot','SetSheetsShapeRotateCommand','isFrom','type','sin','decorate','clear','Plugin','getShapeType','deepClone','_shapeHostAdapterRegistry','push','sheet.command.update-line-shape-resize','resizeEnabled','angle','backward','COMMAND','_serializeShapeForUnit','getBasicShapeType','getBatchAddOp','155IVJELn','sheet.command.set-shape-text-vertical-toggle','worldRect','generateRandomId','insertShape','sheet.command.insert-shape','sendToBack','_addLineRerouteUpdates','_drawingManagerService','IResourceManagerService','getShapeData','sequenceExecute','UPDATE','IShapeHostAdapterRegistry','register','UNIVER_SHEET','keys','RemoveSheetDrawingCommand','9814IzUQhM','_shapeAdapter','_sheetInterceptorService','InsertShapeCommand','DEFAULT_SHAPE_HEIGHT','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','forward','DRAWING_SHAPE','pluginName','getStartConnectInfo','2421JqnDRo','startY','visible','setShapeType','refresh','_applyUpdate','borderEnabled','getEndConnectInfo','getConnectionSiteList','_shapeModelManagerMap','_linesIds','bringForward','transform','get','touchDependencies','preRedos','dispose','getShape','computeConnectorRouteLayout','SheetDrawingTransformPlanService','28744LnvrfP','delete','sheet.command.toggle-shape-flip','lineShapeId','DrawingApplyType','_shapes','getLineShapeRelation'];_0x4030=function(){return _0x5d8903;};return _0x4030();}function D(_0x53c0a2){const _0x1964c4=_0x5bc634;var _0x301c98,_0x16854e,_0x324b5e,_0x34bf90,_0x3488cd,_0x9e582a,_0xb02091;return{'left':((_0x301c98=_0x53c0a2[_0x1964c4(0x232)])==null?void 0x0:_0x301c98[_0x1964c4(0x1dc)])??0x0,'top':((_0x16854e=_0x53c0a2[_0x1964c4(0x232)])==null?void 0x0:_0x16854e[_0x1964c4(0x1c0)])??0x0,'width':((_0x324b5e=_0x53c0a2[_0x1964c4(0x232)])==null?void 0x0:_0x324b5e['width'])??0xc8,'height':((_0x34bf90=_0x53c0a2['transform'])==null?void 0x0:_0x34bf90[_0x1964c4(0x197)])??0xc8,'rotation':((_0x3488cd=_0x53c0a2[_0x1964c4(0x232)])==null?void 0x0:_0x3488cd[_0x1964c4(0x1f5)])??0x0,'flipX':((_0x9e582a=_0x53c0a2[_0x1964c4(0x232)])==null?void 0x0:_0x9e582a[_0x1964c4(0x1bd)])??!0x1,'flipY':((_0xb02091=_0x53c0a2[_0x1964c4(0x232)])==null?void 0x0:_0xb02091[_0x1964c4(0x174)])??!0x1};}let O=class{constructor(_0x3c1f9f,_0x2c211c,_0x19ba1a,_0x390abe){const _0x4b19a2=_0x5bc634;this['_commandService']=_0x3c1f9f,this['_shapeService']=_0x2c211c,this[_0x4b19a2(0x1f1)]=_0x19ba1a,this[_0x4b19a2(0x1bc)]=_0x390abe,l(this,'hostType',t[_0x4b19a2(0x17e)][_0x4b19a2(0x219)]);}get[_0x5bc634(0x243)](){return{'subscribe':_0xdd98a9=>{const _0x34f29d=_0xdc13;let _0x38c197=this[_0x34f29d(0x1d2)][_0x34f29d(0x259)](_0x27deee=>{const _0x39dd63=_0x34f29d;(_0x27deee['id']===m['id']||_0x27deee['id']===h['id']||_0x27deee['id']===_['id']||_0x27deee['id']===w['id'])&&_0xdd98a9({'unitId':_0x27deee[_0x39dd63(0x177)]['unitId']});});return{'unsubscribe':()=>_0x38c197[_0x34f29d(0x236)]()};}};}['getShape'](_0x19e178){const _0x7a3d34=_0x5bc634;var _0x269ad6;let _0x23db04=(_0x269ad6=this[_0x7a3d34(0x1f1)][_0x7a3d34(0x1a4)](_0x19e178[_0x7a3d34(0x25a)],_0x19e178[_0x7a3d34(0x199)]))==null?void 0x0:_0x269ad6[_0x19e178[_0x7a3d34(0x1e2)]],_0x42ef78=this[_0x7a3d34(0x186)][_0x7a3d34(0x1fe)](_0x19e178[_0x7a3d34(0x25a)],_0x19e178['subUnitId'],_0x19e178[_0x7a3d34(0x1e2)]);if(!_0x23db04||_0x23db04[_0x7a3d34(0x1b1)]!==t[_0x7a3d34(0x253)][_0x7a3d34(0x223)]||!_0x42ef78)return null;let _0x50a42c=_0x23db04[_0x7a3d34(0x232)];return{..._0x19e178,'shapeType':_0x42ef78,'shapeData':t['Tools'][_0x7a3d34(0x1ff)](this[_0x7a3d34(0x186)][_0x7a3d34(0x1a6)](_0x19e178['unitId'],_0x19e178[_0x7a3d34(0x199)],_0x19e178[_0x7a3d34(0x1e2)])??{}),'name':_0x23db04[_0x7a3d34(0x241)],'description':_0x23db04[_0x7a3d34(0x1e4)],'visible':_0x23db04['hidden']!==!0x0,'selectable':_0x23db04[_0x7a3d34(0x1e5)]!==!0x1,'transform':{'left':(_0x50a42c==null?void 0x0:_0x50a42c['left'])??0x0,'top':(_0x50a42c==null?void 0x0:_0x50a42c['top'])??0x0,'width':(_0x50a42c==null?void 0x0:_0x50a42c[_0x7a3d34(0x1c7)])??0xc8,'height':(_0x50a42c==null?void 0x0:_0x50a42c[_0x7a3d34(0x197)])??0xc8,'rotation':(_0x50a42c==null?void 0x0:_0x50a42c['angle'])??0x0,'flipX':(_0x50a42c==null?void 0x0:_0x50a42c[_0x7a3d34(0x1bd)])??!0x1,'flipY':(_0x50a42c==null?void 0x0:_0x50a42c['flipY'])??!0x1}};}['listShapes'](_0x20ee32){const _0xdb4846=_0x5bc634;let _0x2daa6a=this[_0xdb4846(0x1f1)]['getDrawingData'](_0x20ee32[_0xdb4846(0x25a)],_0x20ee32[_0xdb4846(0x199)])??{};return Object[_0xdb4846(0x1ac)](_0x2daa6a)[_0xdb4846(0x1b6)](_0x4ef38e=>(_0x4ef38e==null?void 0x0:_0x4ef38e[_0xdb4846(0x1b1)])===t[_0xdb4846(0x253)][_0xdb4846(0x223)])[_0xdb4846(0x242)](_0x226481=>this['getShape']({..._0x20ee32,'shapeId':_0x226481[_0xdb4846(0x1dd)]}))['filter'](_0x1b6dec=>!!_0x1b6dec);}[_0x5bc634(0x254)](_0x10a8ef){const _0x21c8f2=_0x5bc634;let _0x374ecf=this[_0x21c8f2(0x1bc)][_0x21c8f2(0x1b5)](_0x10a8ef,t[_0x21c8f2(0x17e)][_0x21c8f2(0x219)]);return(_0x374ecf==null?void 0x0:_0x374ecf[_0x21c8f2(0x17c)]()['flatMap'](_0x19832c=>this[_0x21c8f2(0x1ec)]({'hostType':this[_0x21c8f2(0x1cd)],'unitId':_0x10a8ef,'subUnitId':_0x19832c['getSheetId']()})))??[];}[_0x5bc634(0x25f)](_0x201231,_0x5b134d){const _0x53dc39=_0x5bc634;let _0x1f14cd=(0x0,t[_0x53dc39(0x20d)])(),_0x392456=D(_0x5b134d),_0x26eeff=t[_0x53dc39(0x27e)][_0x53dc39(0x1ff)](_0x5b134d[_0x53dc39(0x1c6)]??(0x0,e[_0x53dc39(0x194)])(_0x5b134d['shapeType']));return this[_0x53dc39(0x1d2)][_0x53dc39(0x245)](g['id'],{'unitId':_0x201231['unitId'],'subUnitId':_0x201231[_0x53dc39(0x199)],'shapeId':_0x1f14cd,'shapeType':_0x5b134d[_0x53dc39(0x1a9)],'shapeData':_0x26eeff,'name':_0x5b134d['name'],'description':_0x5b134d[_0x53dc39(0x1e4)],'position':{'x':_0x392456['left'],'y':_0x392456[_0x53dc39(0x1c0)]},'width':_0x392456[_0x53dc39(0x1c7)],'height':_0x392456[_0x53dc39(0x197)],'rotation':_0x392456[_0x53dc39(0x1f5)],'flipX':_0x392456['flipX'],'flipY':_0x392456[_0x53dc39(0x174)],'visible':_0x5b134d[_0x53dc39(0x228)]??!0x0,'selectable':_0x5b134d[_0x53dc39(0x1e5)]??!0x0})?{..._0x201231,'shapeId':_0x1f14cd,'shapeType':_0x5b134d[_0x53dc39(0x1a9)],'shapeData':_0x26eeff,'name':_0x5b134d[_0x53dc39(0x241)],'description':_0x5b134d[_0x53dc39(0x1e4)],'visible':_0x5b134d[_0x53dc39(0x228)]??!0x0,'selectable':_0x5b134d[_0x53dc39(0x1e5)]??!0x0,'transform':_0x392456}:null;}[_0x5bc634(0x198)](_0x117295,_0x270915){const _0xdd3503=_0x5bc634;var _0x56cd54;let _0x47d262=this[_0xdd3503(0x237)](_0x117295);if(!_0x47d262)return!0x1;let _0x27878f={..._0x47d262[_0xdd3503(0x232)],..._0x270915[_0xdd3503(0x232)]};return this[_0xdd3503(0x1d2)][_0xdd3503(0x245)](v['id'],{'unitId':_0x117295['unitId'],'subUnitId':_0x117295[_0xdd3503(0x199)],'shapeId':_0x117295[_0xdd3503(0x1e2)],'shapeType':_0x270915[_0xdd3503(0x1a9)]??((_0x56cd54=_0x270915['shapeData'])==null?void 0x0:_0x56cd54[_0xdd3503(0x1a9)])??_0x47d262[_0xdd3503(0x1a9)],'shapeData':_0x270915[_0xdd3503(0x1c6)]??_0x47d262[_0xdd3503(0x1c6)],'position':{'x':_0x27878f[_0xdd3503(0x1dc)],'y':_0x27878f[_0xdd3503(0x1c0)]},'width':_0x27878f[_0xdd3503(0x1c7)],'height':_0x27878f['height'],'rotation':_0x27878f[_0xdd3503(0x1f5)],'flipX':_0x27878f['flipX'],'flipY':_0x27878f[_0xdd3503(0x174)],'name':'name'in _0x270915?_0x270915['name']:_0x47d262[_0xdd3503(0x241)],'description':_0xdd3503(0x1e4)in _0x270915?_0x270915[_0xdd3503(0x1e4)]:_0x47d262[_0xdd3503(0x1e4)],'visible':_0x270915[_0xdd3503(0x228)]??_0x47d262[_0xdd3503(0x228)],'selectable':_0x270915['selectable']??_0x47d262['selectable']});}[_0x5bc634(0x1cb)](_0x2e80cd,_0x483d90,_0x4482fc){const _0x10cfdb=_0x5bc634;let _0x4a9e97=this[_0x10cfdb(0x237)](_0x2e80cd),_0x2eac41=_0x4a9e97==null?void 0x0:_0x4a9e97[_0x10cfdb(0x1c6)]['formulaBinding'];return!_0x4a9e97||!_0x2eac41?null:{'id':_['id'],'params':{'unitId':_0x2e80cd[_0x10cfdb(0x25a)],'subUnitId':_0x2e80cd['subUnitId'],'shapeId':_0x2e80cd[_0x10cfdb(0x1e2)],'shapeData':{..._0x4a9e97['shapeData'],'formulaBinding':{..._0x2eac41,'lastValue':t[_0x10cfdb(0x27e)][_0x10cfdb(0x1ff)](_0x4482fc)}},'replace':!0x0,'formulaLastValueGuard':_0x483d90}};}[_0x5bc634(0x1ed)](_0x1b4b38){const _0xb7c650=_0x5bc634;return this['_commandService'][_0xb7c650(0x245)](r[_0xb7c650(0x21b)]['id'],{'unitId':_0x1b4b38[_0xb7c650(0x25a)],'drawings':[{'unitId':_0x1b4b38[_0xb7c650(0x25a)],'subUnitId':_0x1b4b38['subUnitId'],'drawingId':_0x1b4b38[_0xb7c650(0x1e2)],'drawingType':t[_0xb7c650(0x253)][_0xb7c650(0x223)]}]});}[_0x5bc634(0x251)](_0x17d753){const _0x3a1fff=_0x5bc634;return this[_0x3a1fff(0x263)](_0x17d753,t[_0x3a1fff(0x1b8)][_0x3a1fff(0x1e1)]);}[_0x5bc634(0x231)](_0x1a0c80){const _0xd24244=_0x5bc634;return this[_0xd24244(0x263)](_0x1a0c80,t[_0xd24244(0x1b8)][_0xd24244(0x222)]);}[_0x5bc634(0x1c1)](_0x1f2c12){const _0xecc552=_0x5bc634;return this['_arrange'](_0x1f2c12,t[_0xecc552(0x1b8)][_0xecc552(0x205)]);}[_0x5bc634(0x210)](_0x35d894){const _0x2928ca=_0x5bc634;return this[_0x2928ca(0x263)](_0x35d894,t[_0x2928ca(0x1b8)][_0x2928ca(0x17a)]);}[_0x5bc634(0x24a)](_0x29a7ba,_0x4286a3){const _0x33b786=_0x5bc634;return this['_commandService']['syncExecuteCommand'](r[_0x33b786(0x1a2)]['id'],{'unitId':_0x29a7ba[_0x33b786(0x25a)],'subUnitId':_0x29a7ba['subUnitId'],'drawingIds':[_0x29a7ba[_0x33b786(0x1e2)]],'zOrder':_0x4286a3});}['_arrange'](_0x57c9ff,_0x16825f){const _0x120438=_0x5bc634;return this['_commandService']['syncExecuteCommand'](r[_0x120438(0x1a2)]['id'],{'unitId':_0x57c9ff[_0x120438(0x25a)],'subUnitId':_0x57c9ff[_0x120438(0x199)],'drawingIds':[_0x57c9ff[_0x120438(0x1e2)]],'arrangeType':_0x16825f});}};O=f([d(0x0,t[_0x5bc634(0x1a8)]),d(0x1,(0x0,t[_0x5bc634(0x1a5)])(p)),d(0x2,r[_0x5bc634(0x283)]),d(0x3,t[_0x5bc634(0x1f2)])],O);const k={};let A=class extends t[_0x5bc634(0x277)]{constructor(_0x1a4345,_0x1dc44c,_0x2245f9,_0x383c50,_0x9050c8,_0xabc7d7,_0x45fbed){const _0x16182a=_0x5bc634;super(),this[_0x16182a(0x1d2)]=_0x1a4345,this['_sheetInterceptorService']=_0x1dc44c,this['_sheetSkeletonService']=_0x2245f9,this[_0x16182a(0x19e)]=_0x383c50,this['_drawingManagerService']=_0x9050c8,this[_0x16182a(0x200)]=_0xabc7d7,this[_0x16182a(0x273)](),this[_0x16182a(0x249)](),this['disposeWithMe'](this[_0x16182a(0x200)]['register'](_0x45fbed));}[_0x5bc634(0x273)](){const _0xed2d1f=_0x5bc634;[g,v,y,b,x,S,C,m,h,w,_][_0xed2d1f(0x280)](_0x27f15a=>this[_0xed2d1f(0x262)](this[_0xed2d1f(0x1d2)][_0xed2d1f(0x1e9)](_0x27f15a)));}[_0x5bc634(0x249)](){const _0x357f33=_0x5bc634;this[_0x357f33(0x262)](this[_0x357f33(0x21e)]['interceptCommand']({'getMutations':_0x59b14e=>{const _0x2ab076=_0x357f33;if(_0x59b14e['id']===r['RemoveSheetDrawingCommand']['id']){let {drawings:_0x46d5f4}=_0x59b14e[_0x2ab076(0x177)],_0x1305e9=_0x46d5f4[_0x2ab076(0x1b6)](_0x3bc54d=>_0x3bc54d[_0x2ab076(0x1b1)]===t[_0x2ab076(0x253)][_0x2ab076(0x223)]);if(_0x1305e9[_0x2ab076(0x24e)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x5984c2=[],_0x2aadc9=[];return _0x1305e9[_0x2ab076(0x280)](_0x27b80f=>{const _0x1784c5=_0x2ab076;let {unitId:_0xd2a0ec,subUnitId:_0x4fb68,drawingId:_0x329428}=_0x27b80f,_0x3ae331=this['_sheetsShapeService'][_0x1784c5(0x27b)](_0xd2a0ec,_0x4fb68,_0x329428);if(!_0x3ae331)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x3ae331);_0x5984c2[_0x1784c5(0x201)]({'id':h['id'],'params':{'unitId':_0xd2a0ec,'subUnitId':_0x4fb68,'shapeId':_0x329428}}),_0x2aadc9[_0x1784c5(0x201)]({'id':m['id'],'params':{'unitId':_0xd2a0ec,'subUnitId':_0x4fb68,'shapeId':_0x329428,'shapeType':_0x3ae331[_0x1784c5(0x1fe)](),'shapeData':_0x3ae331[_0x1784c5(0x214)]()}});let _0x1de99a=this[_0x1784c5(0x19e)][_0x1784c5(0x18d)](_0xd2a0ec,_0x4fb68,_0x329428);if(_0x1de99a)for(let _0x202511 of _0x1de99a){let _0x343eb2=_0x202511[_0x1784c5(0x23d)],_0xfd7e3b=_0x202511[_0x1784c5(0x1f8)],_0x31e644=_0xfd7e3b?{'from':void 0x0}:{'to':void 0x0},_0x184d35=_0xfd7e3b?{'from':{'shapeId':_0x202511[_0x1784c5(0x1e2)],'cxnIndex':_0x202511[_0x1784c5(0x193)]}}:{'to':{'shapeId':_0x202511[_0x1784c5(0x1e2)],'cxnIndex':_0x202511[_0x1784c5(0x193)]}};_0x5984c2[_0x1784c5(0x201)]({'id':_['id'],'params':{'unitId':_0xd2a0ec,'subUnitId':_0x4fb68,'shapeId':_0x343eb2,'shapeData':{'relation':_0x31e644}}}),_0x2aadc9[_0x1784c5(0x201)]({'id':_['id'],'params':{'unitId':_0xd2a0ec,'subUnitId':_0x4fb68,'shapeId':_0x343eb2,'shapeData':{'relation':_0x184d35}}});}}),{'preRedos':_0x5984c2,'redos':[],'preUndos':[],'undos':_0x2aadc9};}if(_0x59b14e['id']===r[_0x2ab076(0x191)]['id']){let {drawings:_0x1d452e}=_0x59b14e[_0x2ab076(0x177)],_0x37cb3c=_0x1d452e[_0x2ab076(0x1b6)](_0x523a3d=>_0x523a3d[_0x2ab076(0x1b1)]===t['DrawingTypeEnum'][_0x2ab076(0x223)]);if(_0x37cb3c[_0x2ab076(0x24e)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1ffb3f=[],_0x374271=[];for(let _0x2a18eb of _0x37cb3c){let {unitId:_0x54fdad,subUnitId:_0x1ce053,drawingId:_0x3524d2,transform:_0x1c411e}=_0x2a18eb;if(!_0x54fdad||!_0x1ce053||!_0x3524d2||!_0x1c411e)continue;let _0x43fdd8=this['_sheetsShapeService'][_0x2ab076(0x27b)](_0x54fdad,_0x1ce053,_0x3524d2);if(!_0x43fdd8)throw TypeError(_0x2ab076(0x25b)+_0x43fdd8);let _0x4d8a6b=_0x43fdd8[_0x2ab076(0x1fe)]();if((0x0,e[_0x2ab076(0x1ad)])(_0x4d8a6b)){let _0x351d93=this[_0x2ab076(0x19e)]['getLineShapeRelation'](_0x54fdad,_0x1ce053,_0x3524d2);_0x351d93&&(_0x1ffb3f[_0x2ab076(0x201)]({'id':_['id'],'params':{'unitId':_0x54fdad,'subUnitId':_0x1ce053,'shapeId':_0x3524d2,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x374271[_0x2ab076(0x201)]({'id':_['id'],'params':{'unitId':_0x54fdad,'subUnitId':_0x1ce053,'shapeId':_0x3524d2,'shapeData':{'relation':_0x351d93}}}));}else{let _0x588acc=this[_0x2ab076(0x19e)][_0x2ab076(0x18d)](_0x54fdad,_0x1ce053,_0x3524d2);if(_0x588acc&&_0x588acc['length']>0x0)for(let _0x526e51 of _0x588acc){let _0x3894b0=_0x526e51[_0x2ab076(0x23d)],_0x5b4bac=_0x526e51['isFrom'],_0x5afbc6=this['_sheetsShapeService']['getShapeModel'](_0x54fdad,_0x1ce053,_0x3894b0);if(!_0x5afbc6)continue;let _0x3b5c9a=_0x5afbc6[_0x2ab076(0x225)](),_0x38ab60=_0x5afbc6['getEndConnectInfo']();_0x3b5c9a&&_0x38ab60?this[_0x2ab076(0x211)](_0x54fdad,_0x1ce053,_0x3894b0,_0x5afbc6,_0x3b5c9a,_0x38ab60,_0x1ffb3f,_0x374271,_0x3524d2,_0x1c411e):this['_addLineFollowShapeUpdates'](_0x54fdad,_0x1ce053,_0x3894b0,_0x5afbc6,_0x5b4bac?_0x3b5c9a:_0x38ab60,_0x5b4bac,_0x1ffb3f,_0x374271,_0x3524d2,_0x1c411e);}}}return{'preRedos':[],'redos':_0x1ffb3f,'preUndos':_0x374271,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x5bc634(0x255)](_0xb56fc2,_0x20dbf1,_0x5fdcab,_0x2bd237,_0x400eb3){const _0x3f9e6b=_0x5bc634;if(!_0x20dbf1||!_0x5fdcab)return null;let {shapeId:_0x1923f0,cxnIndex:_0x2c081b}=_0xb56fc2,_0x5602f1=this[_0x3f9e6b(0x19e)][_0x3f9e6b(0x27b)](_0x20dbf1,_0x5fdcab,_0x1923f0);if(!_0x5602f1)return null;let _0x4ca813=this[_0x3f9e6b(0x212)]['getDrawingByParam']({'unitId':_0x20dbf1,'subUnitId':_0x5fdcab,'drawingId':_0x1923f0});if(!(_0x4ca813!=null&&_0x4ca813[_0x3f9e6b(0x232)]))return null;let {left:_0x48a49b=0x0,top:_0x2f449f=0x0,width:_0x5c1de2=0x0,height:_0x867138=0x0,flipX:_0x1a2c6b=!0x1,flipY:_0x1f3a1d=!0x1,angle:_0x4fbf93}=_0x4ca813['transform'];_0x400eb3&&_0x2bd237===_0x1923f0&&(_0x48a49b=_0x400eb3['left']??_0x48a49b,_0x2f449f=_0x400eb3['top']??_0x2f449f,_0x5c1de2=_0x400eb3['width']??_0x5c1de2,_0x867138=_0x400eb3[_0x3f9e6b(0x197)]??_0x867138,_0x1a2c6b=_0x400eb3['flipX']??_0x1a2c6b,_0x1f3a1d=_0x400eb3[_0x3f9e6b(0x174)]??_0x1f3a1d,_0x4fbf93=_0x400eb3['angle']??_0x4fbf93),_0x5602f1['updateContext']({'width':_0x5c1de2,'height':_0x867138});let _0x4decfa=_0x5602f1[_0x3f9e6b(0x22e)]()[_0x3f9e6b(0x256)](_0x210163=>_0x210163[_0x3f9e6b(0x1be)]===_0x2c081b);if(!_0x4decfa)return null;let _0x357ba7=_0x1a2c6b?_0x5c1de2-_0x4decfa['x']:_0x4decfa['x'],_0x33e7d4=_0x1f3a1d?_0x867138-_0x4decfa['y']:_0x4decfa['y'];if(_0x4fbf93!==0x0&&_0x4fbf93!=null){let _0x30c2e4=_0x4fbf93*Math['PI']/0xb4,_0x4fc0b4=Math[_0x3f9e6b(0x25e)](_0x30c2e4),_0x28a666=Math[_0x3f9e6b(0x1fa)](_0x30c2e4),_0x1245e6=_0x5c1de2/0x2,_0x3296b5=_0x867138/0x2,_0xb25bbb=_0x357ba7-_0x1245e6,_0x42ebc8=_0x33e7d4-_0x3296b5;_0x357ba7=_0x1245e6+_0xb25bbb*_0x4fc0b4-_0x42ebc8*_0x28a666,_0x33e7d4=_0x3296b5+_0xb25bbb*_0x28a666+_0x42ebc8*_0x4fc0b4;}_0x357ba7+=_0x48a49b,_0x33e7d4+=_0x2f449f;let _0x5c02c9=_0x4decfa[_0x3f9e6b(0x1f3)]/0xea60;_0x1a2c6b&&(_0x5c02c9=0xb4-_0x5c02c9),_0x1f3a1d&&(_0x5c02c9=-_0x5c02c9),_0x5c02c9+=_0x4fbf93||0x0,_0x5c02c9=(_0x5c02c9%0x168+0x168)%0x168;let _0x11aa3a=(0x0,e[_0x3f9e6b(0x266)])({'left':_0x48a49b,'top':_0x2f449f,'width':_0x5c1de2,'height':_0x867138},_0x4fbf93||0x0);return{'point':{'x':_0x357ba7,'y':_0x33e7d4},'angle':_0x5c02c9,'bounds':_0x11aa3a};}[_0x5bc634(0x211)](_0x52576c,_0x163dc9,_0x47077e,_0x21eee8,_0x565084,_0x5269b8,_0x5e6491,_0x324f8d,_0xe6ab8,_0x42502f){const _0x48d4c4=_0x5bc634;let _0x7f792d=this['_sheetSkeletonService']['getSkeleton'](_0x52576c,_0x163dc9);if(!_0x7f792d)return;let _0x24aca9=_0x21eee8['getShapeRelation'](),_0x4931d6=_0x21eee8[_0x48d4c4(0x18f)](),_0x171043={},_0x1b33b0={};_0x4931d6[_0x48d4c4(0x280)](_0x15057b=>{const _0x4fac3b=_0x48d4c4;let _0x4be88b=_0x21eee8[_0x4fac3b(0x1ae)](_0x15057b);_0x1b33b0[_0x15057b]=_0x4be88b??0x0;});let _0xd494be=this[_0x48d4c4(0x255)](_0x565084,_0x52576c,_0x163dc9,_0xe6ab8,_0x42502f),_0x2603e6=this['_getConnectPointInfo'](_0x5269b8,_0x52576c,_0x163dc9,_0xe6ab8,_0x42502f);if(_0xd494be&&_0x2603e6){let _0x4b3600=_0x21eee8[_0x48d4c4(0x1fe)](),_0x95f8cf=(0x0,e[_0x48d4c4(0x1c4)])(_0xd494be,_0x2603e6,_0x4b3600),_0x54b3a2=_0x4b3600;if(_0x95f8cf){let _0x11a4ac=(0x0,e[_0x48d4c4(0x238)])(_0x95f8cf,_0x21eee8[_0x48d4c4(0x1fe)]()),_0x5e1ec0=this[_0x48d4c4(0x212)][_0x48d4c4(0x1a4)](_0x52576c,_0x163dc9);if(_0x5e1ec0&&_0x5e1ec0[_0x47077e]){let _0x49207d=_0x5e1ec0[_0x47077e];_0x54b3a2=_0x11a4ac['lineType'];for(let [_0x5ec5d3,_0x41a22e]of Object['entries'](_0x11a4ac[_0x48d4c4(0x1d0)]))_0x171043[_0x5ec5d3]=_0x41a22e;let _0x2dd9f7={..._0x49207d[_0x48d4c4(0x232)],'width':_0x11a4ac[_0x48d4c4(0x20c)][_0x48d4c4(0x1c7)],'height':_0x11a4ac[_0x48d4c4(0x20c)][_0x48d4c4(0x197)],'left':_0x11a4ac[_0x48d4c4(0x20c)][_0x48d4c4(0x1dc)],'top':_0x11a4ac[_0x48d4c4(0x20c)][_0x48d4c4(0x1c0)],'flipX':_0x11a4ac['worldRect'][_0x48d4c4(0x1bd)],'flipY':_0x11a4ac['worldRect'][_0x48d4c4(0x174)],'angle':_0x11a4ac[_0x48d4c4(0x1f5)]},_0x681e2=(0x0,r[_0x48d4c4(0x257)])(_0x2dd9f7,_0x7f792d),_0xd4043b=(0x0,r[_0x48d4c4(0x265)])(_0x2dd9f7,_0x7f792d),_0x5d73ba={'unitId':_0x52576c,'subUnitId':_0x163dc9,'drawingType':t[_0x48d4c4(0x253)]['DRAWING_SHAPE'],'drawingId':_0x47077e,'transform':_0x2dd9f7,'sheetTransform':_0x681e2,'axisAlignSheetTransform':_0xd4043b},{unitId:_0x41ed42,subUnitId:_0x4bf681,undo:_0x5b25d4,redo:_0x3ddba8,objects:_0x2b3589}=this['_drawingManagerService'][_0x48d4c4(0x1e6)]([_0x5d73ba]);_0x5e6491[_0x48d4c4(0x201)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x41ed42,'subUnitId':_0x4bf681,'op':_0x3ddba8,'objects':_0x2b3589,'type':r['DrawingApplyType'][_0x48d4c4(0x216)]}}),_0x324f8d['push']({'id':r[_0x48d4c4(0x18e)]['id'],'params':{'unitId':_0x41ed42,'subUnitId':_0x4bf681,'op':_0x5b25d4,'objects':_0x2b3589,'type':r[_0x48d4c4(0x23e)][_0x48d4c4(0x216)]}});}_0x21eee8[_0x48d4c4(0x1f0)]();}_0x5e6491[_0x48d4c4(0x201)]({'id':_['id'],'params':{'unitId':_0x52576c,'subUnitId':_0x163dc9,'shapeId':_0x47077e,'shapeType':_0x54b3a2,'shapeData':{'adjustValues':_0x171043,'relation':_0x24aca9}}}),_0x324f8d['push']({'id':_['id'],'params':{'unitId':_0x52576c,'subUnitId':_0x163dc9,'shapeId':_0x47077e,'shapeType':_0x4b3600,'shapeData':{'adjustValues':_0x1b33b0,'relation':_0x24aca9}}});}}[_0x5bc634(0x271)](_0x5c814a,_0x4804cd,_0x540db8,_0x2a4c0c,_0x54a88b,_0x349c04,_0x341cba,_0x32594b,_0xd83d5f,_0xac006){const _0xc54ce6=_0x5bc634;var _0x255cea;if(!_0x54a88b)return;let _0x2f383b=this[_0xc54ce6(0x1cc)][_0xc54ce6(0x1b4)](_0x5c814a,_0x4804cd);if(!_0x2f383b)return;let _0x3fb0e2=(_0x255cea=this['_drawingManagerService'][_0xc54ce6(0x19a)]({'unitId':_0x5c814a,'subUnitId':_0x4804cd,'drawingId':_0xd83d5f}))==null?void 0x0:_0x255cea['transform'];if(!_0x3fb0e2)return;let _0x47cef3=_0x3fb0e2[_0xc54ce6(0x1dc)]!==_0xac006['left']||_0x3fb0e2['top']!==_0xac006[_0xc54ce6(0x1c0)],_0x107492=_0x3fb0e2[_0xc54ce6(0x1c7)]!==_0xac006['width']||_0x3fb0e2['height']!==_0xac006[_0xc54ce6(0x197)],_0x1152b5=_0x3fb0e2[_0xc54ce6(0x1bd)]!==_0xac006[_0xc54ce6(0x1bd)]||_0x3fb0e2[_0xc54ce6(0x174)]!==_0xac006[_0xc54ce6(0x174)],_0x2cc52d=_0x3fb0e2[_0xc54ce6(0x204)]!==_0xac006[_0xc54ce6(0x204)];if(_0x47cef3&&!_0x107492&&!_0x1152b5&&!_0x2cc52d){let _0x1313fa=(_0xac006[_0xc54ce6(0x1dc)]??0x0)-(_0x3fb0e2[_0xc54ce6(0x1dc)]??0x0),_0x39c9ac=(_0xac006['top']??0x0)-(_0x3fb0e2[_0xc54ce6(0x1c0)]??0x0),_0x5c52b9=this['_drawingManagerService'][_0xc54ce6(0x1a4)](_0x5c814a,_0x4804cd);if(_0x5c52b9&&_0x5c52b9[_0x540db8]){var _0x242ef5,_0x1097c7;let _0x4125ac=_0x5c52b9[_0x540db8],_0x494043={..._0x4125ac[_0xc54ce6(0x232)],'left':(((_0x242ef5=_0x4125ac[_0xc54ce6(0x232)])==null?void 0x0:_0x242ef5[_0xc54ce6(0x1dc)])??0x0)+_0x1313fa,'top':(((_0x1097c7=_0x4125ac['transform'])==null?void 0x0:_0x1097c7[_0xc54ce6(0x1c0)])??0x0)+_0x39c9ac},_0x1fb134=(0x0,r[_0xc54ce6(0x257)])(_0x494043,_0x2f383b),_0x12fc37=(0x0,r[_0xc54ce6(0x265)])(_0x494043,_0x2f383b),_0x1bdc4c={'unitId':_0x5c814a,'subUnitId':_0x4804cd,'drawingType':t[_0xc54ce6(0x253)][_0xc54ce6(0x223)],'drawingId':_0x540db8,'transform':_0x494043,'sheetTransform':_0x1fb134,'axisAlignSheetTransform':_0x12fc37},{unitId:_0x6a6ab8,subUnitId:_0x126011,undo:_0x4b08df,redo:_0x569426,objects:_0x8aeca4}=this[_0xc54ce6(0x212)]['getBatchUpdateOp']([_0x1bdc4c]);_0x341cba[_0xc54ce6(0x201)]({'id':r[_0xc54ce6(0x18e)]['id'],'params':{'unitId':_0x6a6ab8,'subUnitId':_0x126011,'op':_0x569426,'objects':_0x8aeca4,'type':r['DrawingApplyType'][_0xc54ce6(0x216)]}}),_0x32594b[_0xc54ce6(0x201)]({'id':r[_0xc54ce6(0x18e)]['id'],'params':{'unitId':_0x6a6ab8,'subUnitId':_0x126011,'op':_0x4b08df,'objects':_0x8aeca4,'type':r[_0xc54ce6(0x23e)][_0xc54ce6(0x216)]}});}}else{let _0x56d023=_0x2a4c0c[_0xc54ce6(0x225)](),_0x434e82=_0x2a4c0c[_0xc54ce6(0x22d)]();this[_0xc54ce6(0x211)](_0x5c814a,_0x4804cd,_0x540db8,_0x2a4c0c,_0x56d023,_0x434e82,_0x341cba,_0x32594b,_0xd83d5f,_0xac006);}}};A=f([d(0x0,t[_0x5bc634(0x1a8)]),d(0x1,(0x0,t[_0x5bc634(0x1a5)])(n[_0x5bc634(0x1ef)])),d(0x2,(0x0,t[_0x5bc634(0x1a5)])(n['SheetSkeletonService'])),d(0x3,(0x0,t['Inject'])(p)),d(0x4,(0x0,t['Inject'])(a['IDrawingManagerService'])),d(0x5,(0x0,t[_0x5bc634(0x1a5)])(e[_0x5bc634(0x217)])),d(0x6,(0x0,t[_0x5bc634(0x1a5)])(O))],A);let j=class extends t['Disposable']{constructor(_0x60d6a4,_0x3c2b54,_0x96096){const _0x33d695=_0x5bc634;super(),this[_0x33d695(0x186)]=_0x60d6a4,this['_shapeAdapter']=_0x3c2b54,this['disposeWithMe'](_0x96096[_0x33d695(0x218)](this));}['transform'](_0x3a5bad){let _0x291fe9={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this['_planDeletes'](_0x3a5bad,_0x291fe9);for(let [_0x43b20c,_0x4b9597]of _0x3a5bad['originals'])this['_planConnector'](_0x3a5bad,_0x43b20c,_0x4b9597,_0x291fe9);return _0x291fe9;}[_0x5bc634(0x1a7)](_0x99b501,_0x2c80bf){const _0x4c29bf=_0x5bc634;if(_0x99b501[_0x4c29bf(0x1b2)]===_0x4c29bf(0x1de))for(let _0x29fe28 of _0x99b501[_0x4c29bf(0x27c)]){let _0x3ed4e2=_0x99b501[_0x4c29bf(0x18b)]['get'](_0x29fe28),_0x5b0d73=this[_0x4c29bf(0x186)]['getShapeModel'](_0x99b501[_0x4c29bf(0x25a)],_0x99b501['subUnitId'],_0x29fe28);(_0x3ed4e2==null?void 0x0:_0x3ed4e2[_0x4c29bf(0x1b1)])===t[_0x4c29bf(0x253)][_0x4c29bf(0x223)]&&_0x5b0d73&&(_0x2c80bf['preRedos'][_0x4c29bf(0x201)]({'id':h['id'],'params':{'unitId':_0x99b501[_0x4c29bf(0x25a)],'subUnitId':_0x99b501[_0x4c29bf(0x199)],'shapeId':_0x29fe28}}),_0x2c80bf[_0x4c29bf(0x1cf)]['push']({'id':m['id'],'params':{'unitId':_0x99b501['unitId'],'subUnitId':_0x99b501[_0x4c29bf(0x199)],'shapeId':_0x29fe28,'shapeName':_0x5b0d73[_0x4c29bf(0x1eb)](),'shapeType':_0x5b0d73[_0x4c29bf(0x1fe)](),'shapeData':t[_0x4c29bf(0x27e)][_0x4c29bf(0x1ff)](_0x5b0d73[_0x4c29bf(0x214)]())}}));}}[_0x5bc634(0x1b0)](_0x344d24,_0x4e11b9,_0x56978d,_0x4d29fc){const _0x358803=_0x5bc634;if(_0x56978d['drawingType']!==t['DrawingTypeEnum'][_0x358803(0x223)]||_0x344d24[_0x358803(0x27c)][_0x358803(0x185)](_0x4e11b9))return;let _0x4330bf=this[_0x358803(0x186)][_0x358803(0x27b)](_0x344d24[_0x358803(0x25a)],_0x344d24[_0x358803(0x199)],_0x4e11b9);if(!_0x4330bf||!(0x0,e[_0x358803(0x1ad)])(_0x4330bf['getShapeType']()))return;let _0xace72f=_0x4330bf[_0x358803(0x1e7)]();if(!(_0x344d24[_0x358803(0x1e0)][_0x358803(0x185)](_0x4e11b9)||_0xace72f!=null&&_0xace72f[_0x358803(0x24b)]&&(_0x344d24[_0x358803(0x1e0)][_0x358803(0x185)](_0xace72f[_0x358803(0x24b)][_0x358803(0x1e2)])||_0x344d24[_0x358803(0x27c)][_0x358803(0x185)](_0xace72f[_0x358803(0x24b)]['shapeId']))||_0xace72f!=null&&_0xace72f['to']&&(_0x344d24['updates'][_0x358803(0x185)](_0xace72f['to'][_0x358803(0x1e2)])||_0x344d24['deletes'][_0x358803(0x185)](_0xace72f['to'][_0x358803(0x1e2)]))))return;let _0x1f96ca=_0x344d24[_0x358803(0x1e0)][_0x358803(0x233)](_0x4e11b9)??_0x56978d,_0x33ffb1=this['_toSnapshot'](_0x344d24,_0x1f96ca);if(!_0x33ffb1)return;let _0x5b696c=(0x0,e['resolveConnectorRoutePoints'])(_0x33ffb1);if(_0x5b696c[_0x358803(0x24e)]<0x2)return;let _0x26f9c4=t[_0x358803(0x27e)][_0x358803(0x1ff)](_0xace72f??{}),_0x188852=_0x26f9c4[_0x358803(0x24b)]&&this[_0x358803(0x1af)](_0x344d24,_0x26f9c4['from'][_0x358803(0x1e2)],_0x26f9c4[_0x358803(0x24b)][_0x358803(0x193)]),_0x324e3e=_0x26f9c4['to']&&this['_resolveBinding'](_0x344d24,_0x26f9c4['to'][_0x358803(0x1e2)],_0x26f9c4['to'][_0x358803(0x193)]);_0x26f9c4[_0x358803(0x24b)]&&!_0x188852&&delete _0x26f9c4['from'],_0x26f9c4['to']&&!_0x324e3e&&delete _0x26f9c4['to'];let _0x4cd982=_0x188852||(0x0,e[_0x358803(0x1a1)])((_0x324e3e==null?void 0x0:_0x324e3e['point'])??_0x5b696c[_0x5b696c[_0x358803(0x24e)]-0x1],_0x5b696c[0x0]),_0x5565a9=_0x324e3e||(0x0,e[_0x358803(0x1a1)])((_0x188852==null?void 0x0:_0x188852[_0x358803(0x1ba)])??_0x5b696c[0x0],_0x5b696c[_0x5b696c[_0x358803(0x24e)]-0x1]),_0x11834e=(0x0,e['buildConnectorEndpointUpdate'])(_0x33ffb1,_0x4cd982,_0x5565a9,_0x26f9c4);if(_0x11834e!=null&&_0x11834e[_0x358803(0x232)]&&_0x11834e['shapeType']&&_0x11834e[_0x358803(0x1c6)]){if(this[_0x358803(0x22b)](_0x344d24,_0x1f96ca,_0x11834e),_0x344d24[_0x358803(0x1b2)]===_0x358803(0x22a)){_0x4330bf[_0x358803(0x229)](_0x11834e[_0x358803(0x1a9)]),_0x4330bf[_0x358803(0x1ab)](t['Tools'][_0x358803(0x1ff)](_0x11834e[_0x358803(0x1c6)]),!0x1);return;}_0x4d29fc[_0x358803(0x1c2)]['push']({'id':_['id'],'params':{'unitId':_0x344d24[_0x358803(0x25a)],'subUnitId':_0x344d24['subUnitId'],'shapeId':_0x4e11b9,'shapeType':_0x11834e[_0x358803(0x1a9)],'shapeData':t[_0x358803(0x27e)][_0x358803(0x1ff)](_0x11834e[_0x358803(0x1c6)]),'replace':!0x0}}),_0x4d29fc['undos'][_0x358803(0x201)]({'id':_['id'],'params':{'unitId':_0x344d24[_0x358803(0x25a)],'subUnitId':_0x344d24[_0x358803(0x199)],'shapeId':_0x4e11b9,'shapeType':_0x4330bf[_0x358803(0x1fe)](),'shapeData':t[_0x358803(0x27e)][_0x358803(0x1ff)](_0x4330bf[_0x358803(0x214)]()),'replace':!0x0}});}}['_resolveBinding'](_0x4c4af2,_0x28a275,_0x5123bf){const _0x52c945=_0x5bc634;if(_0x4c4af2[_0x52c945(0x27c)][_0x52c945(0x185)](_0x28a275))return null;let _0x51d3cf=_0x4c4af2[_0x52c945(0x1e0)][_0x52c945(0x233)](_0x28a275)??_0x4c4af2[_0x52c945(0x18b)][_0x52c945(0x233)](_0x28a275);if(!_0x51d3cf)return null;let _0x34e82f=this[_0x52c945(0x1f6)](_0x4c4af2,_0x51d3cf);return _0x34e82f?(0x0,e[_0x52c945(0x195)])(_0x34e82f,_0x5123bf):null;}[_0x5bc634(0x1f6)](_0x1f87e2,_0xa736e4){const _0x5b4d54=_0x5bc634;let _0x4e8889={'hostType':t[_0x5b4d54(0x17e)][_0x5b4d54(0x219)],'unitId':_0x1f87e2[_0x5b4d54(0x25a)],'subUnitId':_0x1f87e2[_0x5b4d54(0x199)],'shapeId':_0xa736e4[_0x5b4d54(0x1dd)]},_0x1bbdd3=this[_0x5b4d54(0x21d)]['getShape'](_0x4e8889);return!_0x1bbdd3||!_0xa736e4[_0x5b4d54(0x232)]?null:{..._0x1bbdd3,'transform':{'left':_0xa736e4[_0x5b4d54(0x232)]['left']??0x0,'top':_0xa736e4[_0x5b4d54(0x232)][_0x5b4d54(0x1c0)]??0x0,'width':_0xa736e4[_0x5b4d54(0x232)][_0x5b4d54(0x1c7)]??0x0,'height':_0xa736e4[_0x5b4d54(0x232)][_0x5b4d54(0x197)]??0x0,'rotation':_0xa736e4[_0x5b4d54(0x232)][_0x5b4d54(0x204)]??0x0,'flipX':_0xa736e4[_0x5b4d54(0x232)][_0x5b4d54(0x1bd)]??!0x1,'flipY':_0xa736e4[_0x5b4d54(0x232)]['flipY']??!0x1}};}[_0x5bc634(0x22b)](_0xaeaec7,_0x514efb,_0x4b1304){const _0x43df74=_0x5bc634;let _0x3a552d=_0x514efb,_0x27f7b7={..._0x514efb['transform'],'left':_0x4b1304[_0x43df74(0x232)][_0x43df74(0x1dc)],'top':_0x4b1304[_0x43df74(0x232)][_0x43df74(0x1c0)],'width':_0x4b1304[_0x43df74(0x232)][_0x43df74(0x1c7)],'height':_0x4b1304[_0x43df74(0x232)][_0x43df74(0x197)],'angle':_0x4b1304[_0x43df74(0x232)][_0x43df74(0x1f5)],'flipX':_0x4b1304[_0x43df74(0x232)][_0x43df74(0x1bd)],'flipY':_0x4b1304['transform'][_0x43df74(0x174)]},_0x58875d={..._0x3a552d,'transform':_0x27f7b7,'sheetTransform':(0x0,r[_0x43df74(0x257)])(_0x27f7b7,_0xaeaec7[_0x43df74(0x1d4)]),'axisAlignSheetTransform':(0x0,r[_0x43df74(0x265)])(_0x27f7b7,_0xaeaec7[_0x43df74(0x1d4)]),'data':{..._0x3a552d[_0x43df74(0x1a0)],'shapeType':_0x4b1304[_0x43df74(0x1a9)],'shapeData':t['Tools'][_0x43df74(0x1ff)](_0x4b1304[_0x43df74(0x1c6)])}};_0xaeaec7['updates'][_0x43df74(0x187)](_0x514efb[_0x43df74(0x1dd)],_0x58875d);}};j=f([d(0x0,(0x0,t[_0x5bc634(0x1a5)])(p)),d(0x1,(0x0,t[_0x5bc634(0x1a5)])(O)),d(0x2,(0x0,t[_0x5bc634(0x1a5)])(r[_0x5bc634(0x239)]))],j);let M=class extends t[_0x5bc634(0x1fd)]{constructor(_0x4600ed=k,_0x56d76c,_0x2a2ce4){const _0x9f1a0c=_0x5bc634;super(),this['_config']=_0x4600ed,this['_injector']=_0x56d76c,this[_0x9f1a0c(0x1b3)]=_0x2a2ce4;let {..._0x567983}=(0x0,t['merge'])({},k,this[_0x9f1a0c(0x1d6)]);this['_configService'][_0x9f1a0c(0x19d)]('sheets-shape.config',_0x567983);}[_0x5bc634(0x1f4)](){const _0x12c074=_0x5bc634;let _0x314c18=this[_0x12c074(0x18a)];[[u],[p],[O],[j],[A]][_0x12c074(0x280)](_0x1dd786=>_0x314c18['add'](_0x1dd786)),(0x0,t[_0x12c074(0x234)])(_0x314c18,[[p],[j],[A]]);}};function _0xdc13(_0xeba40b,_0x54396d){_0xeba40b=_0xeba40b-0x173;const _0x4030ac=_0x4030();let _0xdc13f4=_0x4030ac[_0xeba40b];return _0xdc13f4;}l(M,_0x5bc634(0x1f9),t[_0x5bc634(0x17e)]['UNIVER_SHEET']),l(M,_0x5bc634(0x224),_0x5bc634(0x268)),l(M,_0x5bc634(0x1b7),T),l(M,_0x5bc634(0x27d),E),M=f([(0x0,t[_0x5bc634(0x176)])(i[_0x5bc634(0x1d8)],a[_0x5bc634(0x279)],e[_0x5bc634(0x281)],n[_0x5bc634(0x1d7)],r[_0x5bc634(0x270)]),d(0x1,(0x0,t[_0x5bc634(0x1a5)])(t[_0x5bc634(0x278)])),d(0x2,t['IConfigService'])],M),exports[_0x5bc634(0x220)]=0xc8,exports[_0x5bc634(0x182)]=0xc8,exports[_0x5bc634(0x21f)]=g,exports[_0x5bc634(0x27a)]=m,exports['RemoveSheetsShapeMutation']=h,exports['SetShapeDrawingDataCommand']=v,exports[_0x5bc634(0x1f7)]=b,exports['SetSheetsShapeTextVerticalToggleCommand']=x,Object['defineProperty'](exports,_0x5bc634(0x25c),{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x5bc634(0x180)]=y,Object[_0x5bc634(0x19c)](exports,_0x5bc634(0x24d),{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x5bc634(0x274)]=S,exports[_0x5bc634(0x1ee)]=C,exports[_0x5bc634(0x178)]=_,exports['UpdateSheetsShapeTypeMutation']=w;
|
|
1
|
+
const _0x3c1ee1=_0x2192;function _0x2192(_0x15167b,_0x4979fc){_0x15167b=_0x15167b-0x17f;const _0x5214bf=_0x5214();let _0x219208=_0x5214bf[_0x15167b];return _0x219208;}(function(_0x138538,_0x170fe2){const _0xa64b91=_0x2192,_0x3674b5=_0x138538();while(!![]){try{const _0x5d1638=parseInt(_0xa64b91(0x1b2))/0x1*(parseInt(_0xa64b91(0x224))/0x2)+-parseInt(_0xa64b91(0x229))/0x3+-parseInt(_0xa64b91(0x1d9))/0x4*(parseInt(_0xa64b91(0x1de))/0x5)+parseInt(_0xa64b91(0x195))/0x6+parseInt(_0xa64b91(0x1b1))/0x7*(parseInt(_0xa64b91(0x191))/0x8)+parseInt(_0xa64b91(0x244))/0x9*(parseInt(_0xa64b91(0x1fd))/0xa)+-parseInt(_0xa64b91(0x258))/0xb*(parseInt(_0xa64b91(0x1a1))/0xc);if(_0x5d1638===_0x170fe2)break;else _0x3674b5['push'](_0x3674b5['shift']());}catch(_0x3eacb0){_0x3674b5['push'](_0x3674b5['shift']());}}}(_0x5214,0x64037),Object[_0x3c1ee1(0x189)](exports,Symbol['toStringTag'],{'value':_0x3c1ee1(0x214)}));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(_0x5e1ac3){'@babel/helpers - typeof';const _0x1d1c5f=_0x3c1ee1;return o=typeof Symbol==_0x1d1c5f(0x26d)&&typeof Symbol['iterator']==_0x1d1c5f(0x203)?function(_0x555b7c){return typeof _0x555b7c;}:function(_0x4ce319){const _0x21e349=_0x1d1c5f;return _0x4ce319&&typeof Symbol==_0x21e349(0x26d)&&_0x4ce319[_0x21e349(0x1dd)]===Symbol&&_0x4ce319!==Symbol['prototype']?_0x21e349(0x203):typeof _0x4ce319;},o(_0x5e1ac3);}function s(_0xc706eb,_0x22eb0c){const _0x3267d8=_0x3c1ee1;if(o(_0xc706eb)!=_0x3267d8(0x1a8)||!_0xc706eb)return _0xc706eb;var _0x54cace=_0xc706eb[Symbol[_0x3267d8(0x216)]];if(_0x54cace!==void 0x0){var _0x474227=_0x54cace[_0x3267d8(0x1be)](_0xc706eb,_0x22eb0c||_0x3267d8(0x265));if(o(_0x474227)!=_0x3267d8(0x1a8))return _0x474227;throw TypeError(_0x3267d8(0x1c0));}return(_0x22eb0c===_0x3267d8(0x264)?String:Number)(_0xc706eb);}function c(_0xdf2dc5){const _0x39997c=_0x3c1ee1;var _0x4196b4=s(_0xdf2dc5,_0x39997c(0x264));return o(_0x4196b4)=='symbol'?_0x4196b4:_0x4196b4+'';}function l(_0x2fc0ce,_0x491843,_0xc9f815){const _0x157981=_0x3c1ee1;return(_0x491843=c(_0x491843))in _0x2fc0ce?Object[_0x157981(0x189)](_0x2fc0ce,_0x491843,{'value':_0xc9f815,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fc0ce[_0x491843]=_0xc9f815,_0x2fc0ce;}var u=class extends t[_0x3c1ee1(0x22f)]{constructor(){const _0x44a4e1=_0x3c1ee1;super(),l(this,_0x44a4e1(0x1c8),new Map()),l(this,'_linesIds',new Set()),l(this,'_groupIds',new Set());}[_0x3c1ee1(0x1f7)](_0x340675,_0x459cec,_0x12491e,_0x14d71a){const _0x52a6b8=_0x3c1ee1;let _0x5186f3=new e[(_0x52a6b8(0x1ab))](_0x340675,_0x459cec,_0x12491e,_0x14d71a);return this[_0x52a6b8(0x1c8)][_0x52a6b8(0x23b)](_0x459cec,_0x5186f3),(0x0,e['isConnectorShape'])(_0x340675)&&this[_0x52a6b8(0x240)][_0x52a6b8(0x193)](_0x459cec),_0x5186f3;}[_0x3c1ee1(0x22b)](_0x444509){const _0x18a05b=_0x3c1ee1;let _0x4a06a3=[];for(let _0x215a25 of this['_linesIds']){let _0x3773fd=this['_shapes'][_0x18a05b(0x271)](_0x215a25);if(_0x3773fd){let _0x31684a=_0x3773fd['getShapeRelation']();if(_0x31684a){var _0x3f7f4c,_0x18d3f1;((_0x3f7f4c=_0x31684a['from'])==null?void 0x0:_0x3f7f4c['shapeId'])===_0x444509&&_0x4a06a3[_0x18a05b(0x1e0)]({..._0x31684a[_0x18a05b(0x22a)],'lineShapeId':_0x215a25,'isFrom':!0x0}),((_0x18d3f1=_0x31684a['to'])==null?void 0x0:_0x18d3f1['shapeId'])===_0x444509&&_0x4a06a3[_0x18a05b(0x1e0)]({..._0x31684a['to'],'lineShapeId':_0x215a25,'isFrom':!0x1});}}}return _0x4a06a3;}[_0x3c1ee1(0x253)](_0x14dd84){const _0x6e596a=_0x3c1ee1;let _0x65c0a9=this[_0x6e596a(0x1c8)]['get'](_0x14dd84);if(_0x65c0a9)return _0x65c0a9[_0x6e596a(0x273)]();}[_0x3c1ee1(0x261)](_0x27cfba){const _0xc2ba96=_0x3c1ee1;let _0x36b204=this[_0xc2ba96(0x1c8)][_0xc2ba96(0x271)](_0x27cfba);if(_0x36b204)return _0x36b204['getShapeType']();}['hasShape'](_0xeff76d){const _0x5b98fa=_0x3c1ee1;return this[_0x5b98fa(0x1c8)]['has'](_0xeff76d);}['getShapeDisplayNames'](){const _0x505cd5=_0x3c1ee1;return Array[_0x505cd5(0x22a)](this[_0x505cd5(0x1c8)][_0x505cd5(0x251)]())[_0x505cd5(0x263)](_0x48b3ea=>_0x48b3ea['getName']()||_0x48b3ea['getId']());}[_0x3c1ee1(0x1b7)](_0x44e20b){const _0xbb0b36=_0x3c1ee1;let _0x18bf46=this['_shapes'][_0xbb0b36(0x271)](_0x44e20b);_0x18bf46&&((0x0,e[_0xbb0b36(0x20a)])(_0x18bf46[_0xbb0b36(0x261)]())&&this[_0xbb0b36(0x240)]['delete'](_0x44e20b),this[_0xbb0b36(0x1c8)][_0xbb0b36(0x199)](_0x44e20b));}[_0x3c1ee1(0x1d3)](){const _0x733162=_0x3c1ee1;let _0x481f45=[];return this[_0x733162(0x1c8)][_0x733162(0x1a7)](_0x3e4b54=>{const _0x4bd41a=_0x733162;_0x481f45[_0x4bd41a(0x1e0)](_0x3e4b54[_0x4bd41a(0x1d3)]());}),_0x481f45;}['fromJSON'](_0x542a7f){const _0x28b7ce=_0x3c1ee1;for(let _0x5b0d16 of _0x542a7f){let {id:_0x2d7383,shapeType:_0x3a2021,name:_0x3d59b7}=_0x5b0d16,_0x33bbbf=this[_0x28b7ce(0x1f7)](_0x3a2021,_0x2d7383,_0x5b0d16[_0x28b7ce(0x1fe)],_0x3d59b7);_0x33bbbf&&_0x33bbbf[_0x28b7ce(0x1cb)]()&&this[_0x28b7ce(0x240)][_0x28b7ce(0x193)](_0x2d7383);}}['dispose'](){const _0x56a8a0=_0x3c1ee1;this[_0x56a8a0(0x281)]||(this['_shapes'][_0x56a8a0(0x1a7)](_0x1fd779=>{const _0x211e89=_0x56a8a0;_0x1fd779[_0x211e89(0x207)]();}),this[_0x56a8a0(0x1c8)][_0x56a8a0(0x1f0)](),this[_0x56a8a0(0x240)][_0x56a8a0(0x1f0)](),this['_groupIds'][_0x56a8a0(0x1f0)](),super[_0x56a8a0(0x207)]());}};function d(_0x1b0f4c,_0x2f6226){return function(_0x34fc5b,_0x791839){_0x2f6226(_0x34fc5b,_0x791839,_0x1b0f4c);};}function _0x5214(){const _0x5975f5=['params','UPDATE','Plugin','call','preRedos','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','index','result','length','getShapeModel','shapeType','RemoveSheetsShapeMutation','UniverDrawingPlugin','_shapes','buildConnectorEndpointUpdate','registerCommand','isLineShape','_resolveBinding','hostType','DRAWING_SHAPE','_initSnapshot','shapeId','hidden','getSheets','toJSON','ArrangeTypeEnum','getShapeDisplayNames','UpdateSheetsShapeTypeMutation','shapeName','interceptCommand','175788jowlvw','sheets-shape.config','UNIVER_SHEET','deepClone','constructor','5GFHkvk','visible','push','generateRandomId','originals','_config','DEFAULT_SHAPE_WIDTH','listShapesInUnit','preUndos','InsertSheetsShapeMutation','getConnectionSiteList','_injector','setShapeType','sendBackward','_sheetInterceptorService','cxnIndex','drawingType','angle','clear','type','registerPluginResource','sin','getDrawingByParam','adjustValues','_ensureShapeModelManager','addShape','DEFAULT_SHAPE_HEIGHT','_arrange','height','ISheetDrawingService','Injector','600otouTH','shapeData','rotateEnabled','decorate','sequenceExecute','UniverInstanceType','symbol','width','_resourcesManagerService','DependentOn','dispose','backward','_instanceService','isConnectorShape','sheet.mutation.update-shape-type','1.0.1','_sheetsShapeService','IConfigService','flipX','_serializeShapeForUnit','deletes','getBatchUpdateOp','getShape','Module','createShape','toPrimitive','drawingId','SheetsShapeService','getCellWithCoordByIndex','sheet.command.insert-shape','cos','skeleton','_commandService','formulaBinding','pluginName','getStartConnectInfo','fromJSON','Inject','onStarting','4rcDCwY','resolveConnectorRoutePoints','getOwnPropertyDescriptor','rotation','version','2428950aEKUgA','from','getBasicShapeRelation','SetShapeDrawingDataCommand','Both','setShapeData','Disposable','has','getAdjustNames','IResourceManagerService','sheet.command.set-shape-drawing-data','getShapeData','sheet.command.update-line-shape-resize','mode','undos','selectable','RemoveSheetDrawingCommand','forward','set','_shapeHostAdapterRegistry','position','SheetInterceptorService','packageName','_linesIds','_drawingService','SetDrawingApplyMutation','_toSnapshot','55962cqbpud','UniverSheetsDrawingPlugin','front','getDrawingData','InsertSheetDrawingCommand','flatMap','insertShape','onCommandExecute','sheet.command.update-connector-relation','point','filter','transformToDrawingPosition','getSheetCommandTarget','values','keys','getLineShapeRelation','setConfig','SetSheetDrawingCommand','UpdateSheetsShapeDataMutation','_deserializeShapeForUnit','28963MCFmiz','_applyUpdate','sheet.mutation.remove-shape','isFrom','formula','data','updateContext','startX','hasShape','getShapeType','_configService','map','string','default','UniverShapePlugin','MUTATION','sheet.mutation.update-shape-data','_shapeModelManagerMap','back','syncExecuteCommand','getShapeDataById','function','lineShapeId','SheetSkeletonService','createUniqueShapeName','get','IUniverInstanceService','getShapeRelation','transform','getAdjustValueByName','fill','entries','sheet.mutation.insert-shape','updates','getEndConnectInfo','unitId','relation','sheet.command.toggle-shape-flip','_planConnector','resizeEnabled','_getConnectPointInfo','_disposed','@univerjs-pro/sheets-shape','disposeWithMe','_drawingManagerService','routeConnectorLineShape','name','getName','DrawingTypeEnum','isHorizontal','refresh','SheetDrawingAnchorType','COMMAND','startY','UpdateConnectorRelationCommand','IUndoRedoService','register','defineProperty','SetSheetsShapeTextVerticalToggleCommand','_initCommands','ang','DrawingApplyType','_addLineFollowShapeUpdates','subUnitId','top','408RcnIlN','flipY','add','UniverSheetsShapePlugin','2787630XBOCpQ','Tools','description','pushUndoRedo','delete','left','redos','SetDrawingArrangeCommand','ClearSheetDrawingTransformerOperation','ensureSkeleton','transformToAxisAlignPosition','_planDeletes','900bBSpQt','getBatchAddOp','borderEnabled','worldRect','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_addLineRerouteUpdates','forEach','object','ICommandService','CommandType','ShapeModel','_shapeAdapter','_shapeService','createFreeConnectorPointInfo','resolveShapeConnectionPoint','sheet.command.set-shape-rotate','63280HBMmAi','81001yKyPbb','listShapes','touchDependencies','UniverLicensePlugin','createFormulaLastValueMutation','removeShape','parse','getSkeleton','SheetDrawingTransformPlanService'];_0x5214=function(){return _0x5975f5;};return _0x5214();}function f(_0x58534f,_0x2cb3fe,_0xfa8a00,_0x499be9){const _0x4400ac=_0x3c1ee1;var _0x2947a4=arguments['length'],_0x1392c5=_0x2947a4<0x3?_0x2cb3fe:_0x499be9===null?_0x499be9=Object[_0x4400ac(0x226)](_0x2cb3fe,_0xfa8a00):_0x499be9,_0x105323;if(typeof Reflect=='object'&&typeof Reflect[_0x4400ac(0x200)]==_0x4400ac(0x26d))_0x1392c5=Reflect[_0x4400ac(0x200)](_0x58534f,_0x2cb3fe,_0xfa8a00,_0x499be9);else{for(var _0x367815=_0x58534f[_0x4400ac(0x1c3)]-0x1;_0x367815>=0x0;_0x367815--)(_0x105323=_0x58534f[_0x367815])&&(_0x1392c5=(_0x2947a4<0x3?_0x105323(_0x1392c5):_0x2947a4>0x3?_0x105323(_0x2cb3fe,_0xfa8a00,_0x1392c5):_0x105323(_0x2cb3fe,_0xfa8a00))||_0x1392c5);}return _0x2947a4>0x3&&_0x1392c5&&Object[_0x4400ac(0x189)](_0x2cb3fe,_0xfa8a00,_0x1392c5),_0x1392c5;}let p=class extends t['Disposable']{constructor(_0x31e762){const _0x4cc569=_0x3c1ee1;super(),this[_0x4cc569(0x205)]=_0x31e762,l(this,'_shapeModelManagerMap',new Map()),this[_0x4cc569(0x1cf)]();}[_0x3c1ee1(0x1f6)](_0x5a9ea7,_0x5f4c7e){const _0x4a355b=_0x3c1ee1;let _0x14e390=this[_0x4a355b(0x269)]['get'](_0x5a9ea7);_0x14e390||(_0x14e390=new Map(),this['_shapeModelManagerMap']['set'](_0x5a9ea7,_0x14e390));let _0x5803c0=_0x14e390[_0x4a355b(0x271)](_0x5f4c7e);return _0x5803c0||(_0x5803c0=new u(),_0x14e390[_0x4a355b(0x23b)](_0x5f4c7e,_0x5803c0)),_0x5803c0;}[_0x3c1ee1(0x24a)](_0xfcd634,_0x581790,_0xced039,_0x3aa819,_0x1051a6,_0x4b23e5){const _0x112f30=_0x3c1ee1;this[_0x112f30(0x1f6)](_0xfcd634,_0x581790)['addShape'](_0xced039,_0x3aa819,_0x1051a6,_0x4b23e5);}[_0x3c1ee1(0x1b7)](_0x2a1231,_0x3a5e1f,_0x49d309){const _0x28bea1=_0x3c1ee1;this[_0x28bea1(0x1f6)](_0x2a1231,_0x3a5e1f)[_0x28bea1(0x1b7)](_0x49d309);}['getBasicShapeType'](_0x2077ed,_0x445156,_0x2c4aa6){return this['_ensureShapeModelManager'](_0x2077ed,_0x445156)['getShapeType'](_0x2c4aa6);}[_0x3c1ee1(0x261)](_0x2bf769,_0x492011,_0x349e8d){const _0xecb463=_0x3c1ee1;return this[_0xecb463(0x1f6)](_0x2bf769,_0x492011)[_0xecb463(0x261)](_0x349e8d);}[_0x3c1ee1(0x260)](_0x4f3c3b,_0x4935db,_0x5979c9){const _0x2162d1=_0x3c1ee1;return this[_0x2162d1(0x1f6)](_0x4f3c3b,_0x4935db)['hasShape'](_0x5979c9);}['getShapeTypeById'](_0x597937,_0x4d4ce8,_0x513ba0){const _0x5333c6=_0x3c1ee1;return this['_ensureShapeModelManager'](_0x597937,_0x4d4ce8)[_0x5333c6(0x261)](_0x513ba0);}[_0x3c1ee1(0x26c)](_0xc2e802,_0x7021c2,_0x2e55be){const _0x5c719e=_0x3c1ee1;let _0x3841ba=this[_0x5c719e(0x1f6)](_0xc2e802,_0x7021c2);if(!_0x3841ba[_0x5c719e(0x261)](_0x2e55be))return;let _0x4d8d38=_0x3841ba[_0x5c719e(0x1c8)][_0x5c719e(0x271)](_0x2e55be);if(_0x4d8d38)return _0x4d8d38[_0x5c719e(0x234)]();}[_0x3c1ee1(0x1d5)](_0x3384a5,_0x3938fe){const _0x1b0d53=_0x3c1ee1;return this['_ensureShapeModelManager'](_0x3384a5,_0x3938fe)[_0x1b0d53(0x1d5)]();}['getShapeModel'](_0x513bed,_0xd2197e,_0x57a969){const _0x34569b=_0x3c1ee1;return this[_0x34569b(0x1f6)](_0x513bed,_0xd2197e)[_0x34569b(0x1c8)][_0x34569b(0x271)](_0x57a969);}[_0x3c1ee1(0x22b)](_0x3768a7,_0x317784,_0x55c94f){const _0x401ce5=_0x3c1ee1;return this[_0x401ce5(0x1f6)](_0x3768a7,_0x317784)['getBasicShapeRelation'](_0x55c94f);}['getLineShapeRelation'](_0x3e06e9,_0x2fe318,_0x16a5d8){const _0x41c251=_0x3c1ee1;let _0xa3bd42=this['_ensureShapeModelManager'](_0x3e06e9,_0x2fe318)[_0x41c251(0x1c8)][_0x41c251(0x271)](_0x16a5d8);if(_0xa3bd42)return _0xa3bd42['getShapeRelation']();}[_0x3c1ee1(0x1ea)](){}[_0x3c1ee1(0x210)](_0x2fc1b6){const _0x41e8ce=_0x3c1ee1;let _0x63dab={},_0x3173ff=this[_0x41e8ce(0x269)]['get'](_0x2fc1b6);return _0x3173ff&&_0x3173ff['forEach']((_0x38d52d,_0x35574c)=>{const _0x594ec6=_0x41e8ce;let _0x3fdc57=_0x38d52d[_0x594ec6(0x1d3)]();_0x3fdc57[_0x594ec6(0x1c3)]>0x0&&(_0x63dab[_0x35574c]=_0x3fdc57);}),JSON['stringify'](_0x63dab);}[_0x3c1ee1(0x257)](_0x2cff36,_0x228bb0){const _0x17fe87=_0x3c1ee1;Object[_0x17fe87(0x252)](_0x228bb0)[_0x17fe87(0x1a7)](_0x35c4c8=>{const _0x2736e6=_0x17fe87;this[_0x2736e6(0x1f6)](_0x2cff36,_0x35c4c8)[_0x2736e6(0x221)](_0x228bb0[_0x35c4c8]);});}[_0x3c1ee1(0x1d3)](){let _0x119b45={};return this['_shapeModelManagerMap']['forEach']((_0xa169c3,_0x296443)=>{_0x119b45[_0x296443]={},_0xa169c3['forEach']((_0x35e191,_0x297ee3)=>{const _0x54fb50=_0x2192;_0x119b45[_0x296443][_0x297ee3]=_0x35e191[_0x54fb50(0x1d3)]();});}),_0x119b45;}['fromJSON'](_0x4ebd56){const _0x585cb0=_0x3c1ee1;Object[_0x585cb0(0x252)](_0x4ebd56)[_0x585cb0(0x1a7)](_0x4b6b14=>{const _0x55062b=_0x585cb0;let _0x422beb=_0x4ebd56[_0x4b6b14];Object['keys'](_0x422beb)[_0x55062b(0x1a7)](_0x621189=>{const _0x537006=_0x55062b;this[_0x537006(0x1f6)](_0x4b6b14,_0x621189)[_0x537006(0x221)](_0x422beb[_0x621189]);});});}[_0x3c1ee1(0x1cf)](){const _0x2f37a5=_0x3c1ee1;this[_0x2f37a5(0x205)][_0x2f37a5(0x1f2)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[t[_0x2f37a5(0x202)]['UNIVER_SHEET']],'toJson':_0x27040e=>this[_0x2f37a5(0x210)](_0x27040e),'parseJson':_0x3172ed=>JSON[_0x2f37a5(0x1b8)](_0x3172ed),'onLoad':(_0x3a72b1,_0x13b066)=>{const _0x22bb6e=_0x2f37a5;this[_0x22bb6e(0x257)](_0x3a72b1,_0x13b066);},'onUnLoad':_0x88b437=>{const _0x398205=_0x2f37a5;let _0x4bde20=this['_shapeModelManagerMap'][_0x398205(0x271)](_0x88b437);_0x4bde20&&(_0x4bde20['forEach'](_0xefb8ae=>{const _0x482fa1=_0x398205;_0xefb8ae[_0x482fa1(0x207)]();}),this[_0x398205(0x269)][_0x398205(0x199)](_0x88b437));}});}[_0x3c1ee1(0x207)](){const _0x27cf4b=_0x3c1ee1;this[_0x27cf4b(0x269)]['forEach'](_0x4c9724=>{const _0x4b9f58=_0x27cf4b;_0x4c9724[_0x4b9f58(0x1a7)](_0x18d5bf=>{const _0x174904=_0x4b9f58;_0x18d5bf[_0x174904(0x207)]();});});}};p=f([d(0x0,t[_0x3c1ee1(0x232)])],p);const m={'id':_0x3c1ee1(0x278),'type':t[_0x3c1ee1(0x1aa)]['MUTATION'],'handler':(_0x478395,_0x5537d8)=>{const _0xf255c6=_0x3c1ee1;let {unitId:_0x18ac94,subUnitId:_0x2bb0f9,shapeType:_0x295108,shapeId:_0x3b5b69,shapeName:_0x2b85c5,shapeData:_0x479a59}=_0x5537d8;return _0x478395[_0xf255c6(0x271)](p)[_0xf255c6(0x24a)](_0x18ac94,_0x2bb0f9,_0x295108,_0x3b5b69,t[_0xf255c6(0x196)][_0xf255c6(0x1dc)](_0x479a59),_0x2b85c5),!0x0;}},h={'id':_0x3c1ee1(0x25a),'type':t[_0x3c1ee1(0x1aa)][_0x3c1ee1(0x267)],'handler':(_0x5b1d86,_0x43cbd6)=>{const _0xf7fbfc=_0x3c1ee1;let {unitId:_0x52f3d5,subUnitId:_0x4e1d80,shapeId:_0x4a0bf4}=_0x43cbd6;return _0x5b1d86[_0xf7fbfc(0x271)](p)['removeShape'](_0x52f3d5,_0x4e1d80,_0x4a0bf4),!0x0;}},g={'type':t[_0x3c1ee1(0x1aa)]['COMMAND'],'id':_0x3c1ee1(0x21a),'handler':(_0x42f055,_0x4bfcc4)=>{const _0x17f47c=_0x3c1ee1;let _0x44ccbc=(0x0,n[_0x17f47c(0x250)])(_0x42f055[_0x17f47c(0x271)](t['IUniverInstanceService']),_0x4bfcc4);if(!_0x44ccbc)return!0x1;let _0x32f493=_0x42f055['get'](n['SheetSkeletonService']),{unitId:_0x4ef5f3,subUnitId:_0x160a93}=_0x44ccbc,_0x45feea=_0x32f493[_0x17f47c(0x19e)](_0x4ef5f3,_0x160a93);if(!_0x45feea)return!0x1;let _0xd1c39a=_0x42f055['get'](t[_0x17f47c(0x1a9)]),_0x7570bc=_0x42f055[_0x17f47c(0x271)](t[_0x17f47c(0x187)]),_0x44f1f4=_0x42f055[_0x17f47c(0x271)](n[_0x17f47c(0x23e)]),_0x209285=_0x42f055['get'](r[_0x17f47c(0x1fb)]),_0x384b2a=_0x42f055['get'](p),{shapeType:_0xee8e6b}=_0x4bfcc4,_0x4c96a3=_0x4bfcc4[_0x17f47c(0x1fe)]??(0x0,e['createDefaultInsertedShapeData'])(_0xee8e6b),_0x27b4c7=_0x4bfcc4['shapeId']||(0x0,t[_0x17f47c(0x1e1)])(),_0x125bca={'unitId':_0x4ef5f3,'subUnitId':_0x160a93,'shapeId':_0x27b4c7,'shapeName':_0x4bfcc4[_0x17f47c(0x1d7)]??(0x0,e[_0x17f47c(0x270)])(_0xee8e6b,_0x384b2a['getShapeDisplayNames'](_0x4ef5f3,_0x160a93)),'shapeType':_0xee8e6b,'shapeData':_0x4c96a3},_0x1bba36=_0x4bfcc4[_0x17f47c(0x204)]||0xc8,_0x347c51=_0x4bfcc4['height']||0xc8,_0x1414c7=0x0,_0x23be8f=0x0;if(_0x4bfcc4[_0x17f47c(0x23d)]){let {x:_0x2bc79e,y:_0x26b8d5}=_0x4bfcc4[_0x17f47c(0x23d)];_0x1414c7=_0x2bc79e,_0x23be8f=_0x26b8d5;}else{if(_0x4bfcc4['range']){let {startRow:_0x29373b,startColumn:_0x3c07c3}=_0x4bfcc4['range'],_0x1cb845=_0x45feea[_0x17f47c(0x219)](_0x29373b,_0x3c07c3);_0x1414c7=_0x1cb845[_0x17f47c(0x25f)]+0xa,_0x23be8f=_0x1cb845[_0x17f47c(0x185)]+0xa;}}let _0x43c043={'left':_0x1414c7,'top':_0x23be8f,'width':_0x1bba36,'height':_0x347c51,'angle':_0x4bfcc4[_0x17f47c(0x227)]??0x0,'flipX':_0x4bfcc4[_0x17f47c(0x20f)]??!0x1,'flipY':_0x4bfcc4[_0x17f47c(0x192)]??!0x1},_0x5800f3=(0x0,r[_0x17f47c(0x24f)])(_0x43c043,_0x45feea),_0x38c827=(0x0,r[_0x17f47c(0x19f)])(_0x43c043,_0x45feea),_0x465165={'unitId':_0x4ef5f3,'subUnitId':_0x160a93,'drawingId':_0x27b4c7,'drawingType':t[_0x17f47c(0x180)]['DRAWING_SHAPE'],'anchorType':r[_0x17f47c(0x183)][_0x17f47c(0x22d)],'name':_0x4bfcc4[_0x17f47c(0x286)],'description':_0x4bfcc4[_0x17f47c(0x197)],'sheetTransform':_0x5800f3,'transform':_0x43c043,'data':{'shapeType':_0xee8e6b,'shapeData':_0x4c96a3},'axisAlignSheetTransform':_0x38c827,'allowTransform':!0x0,'hidden':_0x4bfcc4['visible']===!0x1,'selectable':_0x4bfcc4[_0x17f47c(0x238)]??!0x0};(0x0,e[_0x17f47c(0x20a)])(_0xee8e6b)&&(_0x465165[_0x17f47c(0x25d)][_0x17f47c(0x276)]=!0x1,_0x465165[_0x17f47c(0x25d)][_0x17f47c(0x1ff)]=!0x1,_0x465165[_0x17f47c(0x25d)][_0x17f47c(0x27f)]=!0x1,_0x465165[_0x17f47c(0x25d)][_0x17f47c(0x1a3)]=!0x1,_0x465165[_0x17f47c(0x274)][_0x17f47c(0x1ff)]=!0x1,_0x465165[_0x17f47c(0x274)][_0x17f47c(0x27f)]=!0x1,_0x465165['transform']['borderEnabled']=!0x1);let {undo:_0x4923d2,redo:_0x326769,objects:_0x37a9fe}=_0x209285[_0x17f47c(0x1a2)]([_0x465165]),_0x398540=_0x44f1f4['onCommandExecute']({'id':r[_0x17f47c(0x248)]['id'],'params':{'unitId':_0x4ef5f3,'drawings':[_0x465165]}}),_0x912b72=[..._0x398540[_0x17f47c(0x1bf)]??[],{'id':r[_0x17f47c(0x242)]['id'],'params':{'unitId':_0x4ef5f3,'subUnitId':_0x160a93,'op':_0x326769,'objects':_0x37a9fe,'type':r[_0x17f47c(0x18d)]['INSERT']}},{'id':r[_0x17f47c(0x19d)]['id'],'params':[_0x4ef5f3]},..._0x398540[_0x17f47c(0x19b)],{'id':m['id'],'params':_0x125bca}],_0x48d884=[{'id':h['id'],'params':{'unitId':_0x4ef5f3,'subUnitId':_0x160a93,'shapeId':_0x27b4c7}},..._0x398540[_0x17f47c(0x1e6)]??[],{'id':r[_0x17f47c(0x242)]['id'],'params':{'unitId':_0x4ef5f3,'subUnitId':_0x160a93,'op':_0x4923d2,'objects':_0x37a9fe,'type':r[_0x17f47c(0x18d)]['REMOVE']}},{'id':r[_0x17f47c(0x19d)]['id'],'params':[_0x4ef5f3]},..._0x398540[_0x17f47c(0x237)]];return(0x0,t[_0x17f47c(0x201)])(_0x912b72,_0xd1c39a)[_0x17f47c(0x1c2)]?(_0x7570bc['pushUndoRedo']({'unitID':_0x4ef5f3,'undoMutations':_0x48d884,'redoMutations':_0x912b72}),!0x0):!0x1;}},_={'id':_0x3c1ee1(0x268),'type':t[_0x3c1ee1(0x1aa)][_0x3c1ee1(0x267)],'handler':(_0x2b82ee,_0x1a8693)=>{const _0x23e909=_0x3c1ee1;let {unitId:_0x5b1a1f,subUnitId:_0x4de343,shapeType:_0xe61e56,shapeId:_0x409dbe,shapeData:_0x59260e,replace:_0x37e04c,formulaLastValueGuard:_0x5a3e6d}=_0x1a8693,_0x172e4c=_0x2b82ee[_0x23e909(0x271)](p)['getShapeModel'](_0x5b1a1f,_0x4de343,_0x409dbe);if(_0x172e4c){var _0xd1842;if(!(0x0,e['canApplyShapeFormulaLastValue'])(_0x2b82ee,{'hostType':t[_0x23e909(0x202)][_0x23e909(0x1db)],'unitId':_0x5b1a1f,'subUnitId':_0x4de343,'shapeId':_0x409dbe},(_0xd1842=_0x172e4c[_0x23e909(0x234)]()[_0x23e909(0x21e)])==null?void 0x0:_0xd1842[_0x23e909(0x25c)],_0x5a3e6d))return!0x0;_0xe61e56!==void 0x0&&_0x172e4c[_0x23e909(0x1ea)](_0xe61e56),_0x59260e&&(_0x172e4c==null||_0x172e4c[_0x23e909(0x22e)](t[_0x23e909(0x196)][_0x23e909(0x1dc)](_0x59260e),!_0x37e04c));}return!0x0;}},v={'type':t['CommandType']['COMMAND'],'id':_0x3c1ee1(0x233),'handler':(_0x1201ec,_0x5da9f1)=>{const _0x232f48=_0x3c1ee1;let _0x20d1b0=(0x0,n[_0x232f48(0x250)])(_0x1201ec[_0x232f48(0x271)](t[_0x232f48(0x272)]),_0x5da9f1);if(!_0x20d1b0)return!0x1;let _0x5925f3=_0x1201ec[_0x232f48(0x271)](n['SheetSkeletonService']),{unitId:_0x336fb6,subUnitId:_0x5516fb}=_0x20d1b0,_0x36909a=_0x5925f3[_0x232f48(0x19e)](_0x336fb6,_0x5516fb);if(!_0x36909a)return!0x1;let _0x1f9e52=_0x1201ec[_0x232f48(0x271)](p),{shapeId:_0x25a093,shapeType:_0x1f655f,shapeData:_0x65a748,position:_0x5d20f8,width:_0x3e6937,height:_0x532c21}=_0x5da9f1,_0x24a130=_0x1f9e52[_0x232f48(0x1c4)](_0x336fb6,_0x5516fb,_0x25a093);if(!_0x24a130)return!0x1;let _0x107231=_0x1201ec[_0x232f48(0x271)](t[_0x232f48(0x1a9)]),_0x730fbd=_0x1201ec[_0x232f48(0x271)](t['IUndoRedoService']),_0x14a4f5=_0x1201ec['get'](n['SheetInterceptorService']),_0x2e64df=_0x1201ec[_0x232f48(0x271)](r[_0x232f48(0x1fb)]),_0x1823a4={'unitId':_0x336fb6,'subUnitId':_0x5516fb,'shapeId':_0x25a093,'shapeType':_0x1f655f,'shapeData':_0x65a748,'replace':!0x0},_0xcae44=_0x24a130[_0x232f48(0x261)](),_0x391221=_0x24a130[_0x232f48(0x234)](),{x:_0x59b33d,y:_0x510fce}=_0x5d20f8,_0x3ebc31={'left':_0x59b33d,'top':_0x510fce,'width':_0x3e6937,'height':_0x532c21,'angle':_0x5da9f1[_0x232f48(0x227)]??0x0,'flipX':_0x5da9f1[_0x232f48(0x20f)]??!0x1,'flipY':_0x5da9f1[_0x232f48(0x192)]??!0x1},_0x53b007=(0x0,r[_0x232f48(0x24f)])(_0x3ebc31,_0x36909a),_0x266024=(0x0,r[_0x232f48(0x19f)])(_0x3ebc31,_0x36909a),_0x1e04c0={'unitId':_0x336fb6,'subUnitId':_0x5516fb,'drawingId':_0x25a093,'drawingType':t[_0x232f48(0x180)][_0x232f48(0x1ce)],'name':_0x5da9f1[_0x232f48(0x286)],'description':_0x5da9f1['description'],'sheetTransform':_0x53b007,'transform':_0x3ebc31,'data':{'shapeType':_0x1f655f,'shapeData':_0x65a748},'axisAlignSheetTransform':_0x266024,'allowTransform':!0x0,'hidden':!_0x5da9f1[_0x232f48(0x1df)],'selectable':_0x5da9f1[_0x232f48(0x238)]};(0x0,e['isConnectorShape'])(_0x1f655f)&&(_0x1e04c0[_0x232f48(0x25d)][_0x232f48(0x276)]=!0x1,_0x1e04c0[_0x232f48(0x25d)][_0x232f48(0x1ff)]=!0x1,_0x1e04c0[_0x232f48(0x25d)][_0x232f48(0x27f)]=!0x1,_0x1e04c0['data'][_0x232f48(0x1a3)]=!0x1,_0x1e04c0[_0x232f48(0x274)][_0x232f48(0x1ff)]=!0x1,_0x1e04c0[_0x232f48(0x274)]['resizeEnabled']=!0x1,_0x1e04c0[_0x232f48(0x274)]['borderEnabled']=!0x1);let {undo:_0x3387ed,redo:_0x4db70c,objects:_0x54aacc}=_0x2e64df['getBatchUpdateOp']([_0x1e04c0]),_0x2be294=_0x14a4f5['onCommandExecute']({'id':r[_0x232f48(0x255)]['id'],'params':{'unitId':_0x336fb6,'drawings':[_0x1e04c0]}}),_0x328538=[..._0x2be294[_0x232f48(0x1bf)]??[],{'id':r[_0x232f48(0x242)]['id'],'params':{'unitId':_0x336fb6,'subUnitId':_0x5516fb,'op':_0x4db70c,'objects':_0x54aacc,'type':r['DrawingApplyType'][_0x232f48(0x1bc)]}},{'id':r[_0x232f48(0x19d)]['id'],'params':[_0x336fb6]},..._0x2be294[_0x232f48(0x19b)],{'id':_['id'],'params':_0x1823a4}],_0x5ea7bd=[..._0x2be294[_0x232f48(0x1e6)]??[],{'id':r[_0x232f48(0x242)]['id'],'params':{'unitId':_0x336fb6,'subUnitId':_0x5516fb,'op':_0x3387ed,'objects':_0x54aacc,'type':r[_0x232f48(0x18d)][_0x232f48(0x1bc)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x336fb6]},..._0x2be294['undos'],{'id':_['id'],'params':{'unitId':_0x336fb6,'subUnitId':_0x5516fb,'shapeType':_0xcae44,'shapeId':_0x25a093,'shapeData':_0x391221,'replace':!0x0}}];return(0x0,t[_0x232f48(0x201)])(_0x328538,_0x107231)['result']?(_0x730fbd[_0x232f48(0x198)]({'unitID':_0x336fb6,'undoMutations':_0x5ea7bd,'redoMutations':_0x328538}),!0x0):!0x1;}},y={'type':t['CommandType'][_0x3c1ee1(0x184)],'id':_0x3c1ee1(0x27d),'handler':(_0x44fcab,_0x4c74e7)=>{const _0x5d084e=_0x3c1ee1;let _0x377af4=(0x0,n[_0x5d084e(0x250)])(_0x44fcab['get'](t['IUniverInstanceService']),_0x4c74e7);if(!_0x377af4)return!0x1;let _0x358f82=_0x44fcab[_0x5d084e(0x271)](n[_0x5d084e(0x26f)]),{unitId:_0x450325,subUnitId:_0x2d7c3e}=_0x377af4,_0xaf83b8=_0x358f82[_0x5d084e(0x1b9)](_0x450325,_0x2d7c3e);if(!_0xaf83b8)return!0x1;let _0x432a4a=_0x44fcab['get'](r[_0x5d084e(0x1fb)]),{shapeId:_0x50b273,flipH:_0x2f9388,flipV:_0x407a66}=_0x4c74e7,_0x18af73=_0x432a4a['getDrawingByParam']({'unitId':_0x450325,'subUnitId':_0x2d7c3e,'drawingId':_0x50b273});if(!_0x18af73)return!0x1;let _0x1b5c19=_0x44fcab[_0x5d084e(0x271)](p)[_0x5d084e(0x1c4)](_0x450325,_0x2d7c3e,_0x50b273);if(!_0x1b5c19)return!0x1;let _0x5d5b59=_0x44fcab[_0x5d084e(0x271)](t[_0x5d084e(0x1a9)]),_0x1e4af7=_0x44fcab['get'](t[_0x5d084e(0x187)]),_0x3c4ffe=_0x44fcab[_0x5d084e(0x271)](n['SheetInterceptorService']),_0x431559={..._0x18af73['transform']};_0x2f9388!==void 0x0&&(_0x431559[_0x5d084e(0x20f)]=!_0x431559[_0x5d084e(0x20f)]),_0x407a66!==void 0x0&&(_0x431559[_0x5d084e(0x192)]=!_0x431559[_0x5d084e(0x192)]);let _0x25776c=(0x0,r['transformToDrawingPosition'])(_0x431559,_0xaf83b8),_0x113b2b=(0x0,r[_0x5d084e(0x19f)])(_0x431559,_0xaf83b8),_0x48b34a=_0x1b5c19[_0x5d084e(0x261)](),_0x46ede7=_0x1b5c19[_0x5d084e(0x234)](),_0x15f1fe={'unitId':_0x450325,'subUnitId':_0x2d7c3e,'drawingId':_0x50b273,'drawingType':t[_0x5d084e(0x180)][_0x5d084e(0x1ce)],'sheetTransform':_0x25776c,'transform':_0x431559,'data':{'shapeType':_0x48b34a,'shapeData':_0x46ede7},'axisAlignSheetTransform':_0x113b2b,'allowTransform':!0x0},{undo:_0x43bff1,redo:_0x372562,objects:_0x5b6735}=_0x432a4a[_0x5d084e(0x212)]([_0x15f1fe]),_0x25d748=_0x3c4ffe[_0x5d084e(0x24b)]({'id':r[_0x5d084e(0x255)]['id'],'params':{'unitId':_0x450325,'drawings':[_0x15f1fe]}}),_0x5a0a12=[..._0x25d748[_0x5d084e(0x1bf)]??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x450325,'subUnitId':_0x2d7c3e,'op':_0x372562,'objects':_0x5b6735,'type':r[_0x5d084e(0x18d)][_0x5d084e(0x1bc)]}},{'id':r[_0x5d084e(0x19d)]['id'],'params':[_0x450325]},..._0x25d748[_0x5d084e(0x19b)]],_0x59df89=[..._0x25d748[_0x5d084e(0x1e6)]??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x450325,'subUnitId':_0x2d7c3e,'op':_0x43bff1,'objects':_0x5b6735,'type':r[_0x5d084e(0x18d)][_0x5d084e(0x1bc)]}},{'id':r[_0x5d084e(0x19d)]['id'],'params':[_0x450325]},..._0x25d748[_0x5d084e(0x237)]];if((0x0,e['isConnectorShape'])(_0x48b34a)){let _0x3d26ba=_0x1b5c19[_0x5d084e(0x273)]();if(_0x3d26ba){let _0x57f580={..._0x3d26ba};_0x57f580[_0x5d084e(0x22a)]=void 0x0,_0x57f580['to']=void 0x0,_0x5a0a12['push']({'id':_['id'],'params':{'unitId':_0x450325,'subUnitId':_0x2d7c3e,'shapeId':_0x50b273,'shapeType':_0x48b34a,'shapeData':{'relation':_0x57f580}}}),_0x59df89[_0x5d084e(0x1e0)]({'id':_['id'],'params':{'unitId':_0x450325,'subUnitId':_0x2d7c3e,'shapeId':_0x50b273,'shapeType':_0x48b34a,'shapeData':{'relation':_0x3d26ba}}});}}return(0x0,t[_0x5d084e(0x201)])(_0x5a0a12,_0x5d5b59)[_0x5d084e(0x1c2)]?(_0x1e4af7[_0x5d084e(0x198)]({'unitID':_0x450325,'undoMutations':_0x59df89,'redoMutations':_0x5a0a12}),!0x0):!0x1;}},b={'type':t['CommandType'][_0x3c1ee1(0x184)],'id':_0x3c1ee1(0x1b0),'handler':(_0x4f9a59,_0x11d9ba)=>{const _0x3d98b7=_0x3c1ee1;let _0x428b5e=(0x0,n[_0x3d98b7(0x250)])(_0x4f9a59[_0x3d98b7(0x271)](t[_0x3d98b7(0x272)]),_0x11d9ba);if(!_0x428b5e)return!0x1;let _0x5cb2da=_0x4f9a59[_0x3d98b7(0x271)](n['SheetSkeletonService']),{unitId:_0x112f02,subUnitId:_0x5d9dc4}=_0x428b5e,_0x37e805=_0x5cb2da[_0x3d98b7(0x1b9)](_0x112f02,_0x5d9dc4);if(!_0x37e805)return!0x1;let _0x420dec=_0x4f9a59[_0x3d98b7(0x271)](r['ISheetDrawingService']),{shapeId:_0x1c00bf,rotate:_0x40b022}=_0x11d9ba,_0x277a13=_0x420dec[_0x3d98b7(0x1f4)]({'unitId':_0x112f02,'subUnitId':_0x5d9dc4,'drawingId':_0x1c00bf});if(!_0x277a13)return!0x1;let _0x86e253=_0x4f9a59['get'](p)[_0x3d98b7(0x1c4)](_0x112f02,_0x5d9dc4,_0x1c00bf);if(!_0x86e253)return!0x1;let _0xc15223=_0x4f9a59['get'](t[_0x3d98b7(0x1a9)]),_0x194c34=_0x4f9a59[_0x3d98b7(0x271)](t[_0x3d98b7(0x187)]),_0x1b6c8b=_0x4f9a59[_0x3d98b7(0x271)](n[_0x3d98b7(0x23e)]),_0x789aeb={..._0x277a13[_0x3d98b7(0x274)]};_0x40b022!==void 0x0&&(_0x789aeb[_0x3d98b7(0x1ef)]=(_0x789aeb[_0x3d98b7(0x1ef)]||0x0)+_0x40b022);let _0x245168=(0x0,r[_0x3d98b7(0x24f)])(_0x789aeb,_0x37e805),_0x345215=(0x0,r[_0x3d98b7(0x19f)])(_0x789aeb,_0x37e805),_0x284dfa=_0x86e253[_0x3d98b7(0x261)](),_0x3e0f58=_0x86e253[_0x3d98b7(0x234)](),_0x141fce={'unitId':_0x112f02,'subUnitId':_0x5d9dc4,'drawingId':_0x1c00bf,'drawingType':t[_0x3d98b7(0x180)][_0x3d98b7(0x1ce)],'sheetTransform':_0x245168,'transform':_0x789aeb,'data':{'shapeType':_0x284dfa,'shapeData':_0x3e0f58},'axisAlignSheetTransform':_0x345215,'allowTransform':!0x0},{undo:_0x4ecca5,redo:_0x578369,objects:_0x102cfa}=_0x420dec[_0x3d98b7(0x212)]([_0x141fce]),_0x1dc529=_0x1b6c8b[_0x3d98b7(0x24b)]({'id':r[_0x3d98b7(0x255)]['id'],'params':{'unitId':_0x112f02,'drawings':[_0x141fce]}}),_0xf849c4=[..._0x1dc529[_0x3d98b7(0x1bf)]??[],{'id':r[_0x3d98b7(0x242)]['id'],'params':{'unitId':_0x112f02,'subUnitId':_0x5d9dc4,'op':_0x578369,'objects':_0x102cfa,'type':r[_0x3d98b7(0x18d)][_0x3d98b7(0x1bc)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x112f02]},..._0x1dc529['redos']],_0x12515b=[..._0x1dc529['preUndos']??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x112f02,'subUnitId':_0x5d9dc4,'op':_0x4ecca5,'objects':_0x102cfa,'type':r[_0x3d98b7(0x18d)][_0x3d98b7(0x1bc)]}},{'id':r[_0x3d98b7(0x19d)]['id'],'params':[_0x112f02]},..._0x1dc529[_0x3d98b7(0x237)]];return(0x0,t[_0x3d98b7(0x201)])(_0xf849c4,_0xc15223)[_0x3d98b7(0x1c2)]?(_0x194c34[_0x3d98b7(0x198)]({'unitID':_0x112f02,'undoMutations':_0x12515b,'redoMutations':_0xf849c4}),!0x0):!0x1;}},x={'type':t[_0x3c1ee1(0x1aa)]['COMMAND'],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x13b2ff,_0x1134fc)=>{const _0x1a5e14=_0x3c1ee1;let _0x1c3362=(0x0,n[_0x1a5e14(0x250)])(_0x13b2ff['get'](t[_0x1a5e14(0x272)]),_0x1134fc);if(!_0x1c3362)return!0x1;let {unitId:_0x487fca,subUnitId:_0x31856d}=_0x1c3362,{shapeId:_0x87686e}=_0x1134fc,_0x427d74=_0x13b2ff[_0x1a5e14(0x271)](p)['getShapeModel'](_0x487fca,_0x31856d,_0x87686e);if(!_0x427d74)return!0x1;let _0x1288f1=_0x427d74['getShapeTextData'](),_0x42ac66=(_0x1288f1==null?void 0x0:_0x1288f1[_0x1a5e14(0x181)])??!0x0,_0x43dc65=!_0x42ac66,_0xefcab1=_0x13b2ff[_0x1a5e14(0x271)](t[_0x1a5e14(0x1a9)]),_0x628c1f=_0x13b2ff[_0x1a5e14(0x271)](t[_0x1a5e14(0x187)]),_0x3edf1={'unitId':_0x487fca,'subUnitId':_0x31856d,'shapeId':_0x87686e,'shapeData':{'shapeText':{'isHorizontal':_0x43dc65}}},_0x3c96ac={'unitId':_0x487fca,'subUnitId':_0x31856d,'shapeId':_0x87686e,'shapeData':{'shapeText':{'isHorizontal':_0x42ac66}}},_0x579f22=[{'id':_['id'],'params':_0x3edf1}],_0x465f72=[{'id':_['id'],'params':_0x3c96ac}];return(0x0,t[_0x1a5e14(0x201)])(_0x579f22,_0xefcab1)[_0x1a5e14(0x1c2)]?(_0x628c1f[_0x1a5e14(0x198)]({'unitID':_0x487fca,'undoMutations':_0x465f72,'redoMutations':_0x579f22}),!0x0):!0x1;}},S={'type':t[_0x3c1ee1(0x1aa)]['COMMAND'],'id':_0x3c1ee1(0x24c),'handler':(_0x2bc283,_0x50f2d1)=>{const _0x380408=_0x3c1ee1;var _0xa83fb3;let _0x32619f=(0x0,n[_0x380408(0x250)])(_0x2bc283['get'](t[_0x380408(0x272)]),_0x50f2d1);if(!_0x32619f)return!0x1;let _0x42ab4e=_0x2bc283[_0x380408(0x271)](n[_0x380408(0x26f)]),{unitId:_0x479df8,subUnitId:_0x149945}=_0x32619f,_0x276b66=_0x42ab4e['getSkeleton'](_0x479df8,_0x149945);if(!_0x276b66)return!0x1;let _0x551c60=_0x2bc283[_0x380408(0x271)](r[_0x380408(0x1fb)]),{connectorShapeId:_0x42b19c,width:_0x457bce,height:_0x44bf1f,left:_0x5b82a4,top:_0x17dcdf,flipX:_0x5284a4,flipY:_0x4a877d,rotation:_0x45d7a0,oldAdjustValues:_0x9d4c16,newAdjustValues:_0x3255fe,oldLineType:_0x5bcb28,newLineType:_0x5060e9,oldRelation:_0xcfecd7,newRelation:_0xb79b6}=_0x50f2d1,_0x32bfe0=_0x551c60[_0x380408(0x1f4)]({'unitId':_0x479df8,'subUnitId':_0x149945,'drawingId':_0x42b19c});if(!_0x32bfe0)return!0x1;let _0x268e6d=_0x2bc283[_0x380408(0x271)](p)[_0x380408(0x1c4)](_0x479df8,_0x149945,_0x42b19c);if(!_0x268e6d)return!0x1;let _0x8d39a7=_0x2bc283['get'](t[_0x380408(0x1a9)]),_0x35a23f=_0x2bc283[_0x380408(0x271)](t[_0x380408(0x187)]),_0x56182d=_0x2bc283[_0x380408(0x271)](n[_0x380408(0x23e)]),_0x4f4b04={..._0x32bfe0[_0x380408(0x274)],'width':_0x457bce,'height':_0x44bf1f,'left':_0x5b82a4,'top':_0x17dcdf,'flipX':_0x5284a4,'flipY':_0x4a877d,'angle':_0x45d7a0??((_0xa83fb3=_0x32bfe0['transform'])==null?void 0x0:_0xa83fb3[_0x380408(0x1ef)])??0x0},_0x1efb58=(0x0,r[_0x380408(0x24f)])(_0x4f4b04,_0x276b66),_0x225915=(0x0,r[_0x380408(0x19f)])(_0x4f4b04,_0x276b66),_0x408e83=_0x268e6d[_0x380408(0x261)](),_0x1263ad=_0x268e6d['getShapeData'](),_0x39a242={'unitId':_0x479df8,'subUnitId':_0x149945,'drawingId':_0x42b19c,'drawingType':t[_0x380408(0x180)][_0x380408(0x1ce)],'sheetTransform':_0x1efb58,'transform':_0x4f4b04,'data':{'shapeType':_0x5060e9||_0x5bcb28||_0x408e83,'shapeData':{..._0x1263ad,'adjustValues':_0x3255fe||_0x9d4c16||(_0x1263ad==null?void 0x0:_0x1263ad['adjustValues']),'relation':_0xb79b6||_0xcfecd7||(_0x1263ad==null?void 0x0:_0x1263ad[_0x380408(0x27c)])}},'axisAlignSheetTransform':_0x225915,'allowTransform':!0x0},{undo:_0x4a41f6,redo:_0x48e7c1,objects:_0x244c17}=_0x551c60[_0x380408(0x212)]([_0x39a242]),_0x5510a5=_0x56182d[_0x380408(0x24b)]({'id':r[_0x380408(0x255)]['id'],'params':{'unitId':_0x479df8,'drawings':[_0x39a242]}}),_0x49304e=[..._0x5510a5['preRedos']??[],{'id':r[_0x380408(0x242)]['id'],'params':{'unitId':_0x479df8,'subUnitId':_0x149945,'op':_0x48e7c1,'objects':_0x244c17,'type':r['DrawingApplyType']['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x479df8]},..._0x5510a5[_0x380408(0x19b)],{'id':_['id'],'params':{'unitId':_0x479df8,'subUnitId':_0x149945,'shapeId':_0x42b19c,'shapeType':_0x5060e9,'shapeData':{'adjustValues':_0x3255fe,'relation':_0xb79b6}}}],_0x4b30c0=[..._0x5510a5[_0x380408(0x1e6)]??[],{'id':r[_0x380408(0x242)]['id'],'params':{'unitId':_0x479df8,'subUnitId':_0x149945,'op':_0x4a41f6,'objects':_0x244c17,'type':r[_0x380408(0x18d)][_0x380408(0x1bc)]}},{'id':r[_0x380408(0x19d)]['id'],'params':[_0x479df8]},..._0x5510a5[_0x380408(0x237)],{'id':_['id'],'params':{'unitId':_0x479df8,'subUnitId':_0x149945,'shapeId':_0x42b19c,'shapeType':_0x408e83,'shapeData':{..._0x1263ad,'adjustValues':_0x9d4c16||(_0x1263ad==null?void 0x0:_0x1263ad[_0x380408(0x1f5)]),'relation':_0xcfecd7||(_0x1263ad==null?void 0x0:_0x1263ad[_0x380408(0x27c)])}}}];return(0x0,t[_0x380408(0x201)])(_0x49304e,_0x8d39a7)['result']?(_0x35a23f[_0x380408(0x198)]({'unitID':_0x479df8,'undoMutations':_0x4b30c0,'redoMutations':_0x49304e}),!0x0):!0x1;}},C={'type':t[_0x3c1ee1(0x1aa)][_0x3c1ee1(0x184)],'id':_0x3c1ee1(0x235),'handler':(_0x315563,_0x3f5c51)=>{const _0x4e150d=_0x3c1ee1;let _0xde4fdf=(0x0,n[_0x4e150d(0x250)])(_0x315563[_0x4e150d(0x271)](t['IUniverInstanceService']),_0x3f5c51);if(!_0xde4fdf)return!0x1;let _0x1587df=_0x315563[_0x4e150d(0x271)](n['SheetSkeletonService']),{unitId:_0x4d45b3,subUnitId:_0x4de9af}=_0xde4fdf,_0x1e438c=_0x1587df['getSkeleton'](_0x4d45b3,_0x4de9af);if(!_0x1e438c)return!0x1;let _0x2fc2e9=_0x315563[_0x4e150d(0x271)](r[_0x4e150d(0x1fb)]),{shapeId:_0x40f44e,width:_0x447cc2,height:_0x51923b,left:_0x221f50,top:_0x15b197,flipX:_0x8ac7a4,flipY:_0x40803e,angle:_0x4eee36,oldAdjustValues:_0x57c588,newAdjustValues:_0x4ccda2,oldLineType:_0x197d25,newLineType:_0x5b9e0b}=_0x3f5c51,_0x4502fb=_0x2fc2e9[_0x4e150d(0x1f4)]({'unitId':_0x4d45b3,'subUnitId':_0x4de9af,'drawingId':_0x40f44e});if(!_0x4502fb)return!0x1;let _0x44fcfc=_0x315563['get'](p)[_0x4e150d(0x1c4)](_0x4d45b3,_0x4de9af,_0x40f44e);if(!_0x44fcfc)return!0x1;let _0x42a9f7=_0x315563['get'](t[_0x4e150d(0x1a9)]),_0x201032=_0x315563[_0x4e150d(0x271)](t[_0x4e150d(0x187)]),_0x25fe11=_0x315563[_0x4e150d(0x271)](n[_0x4e150d(0x23e)]),_0x138cac={..._0x4502fb[_0x4e150d(0x274)],'width':_0x447cc2,'height':_0x51923b,'left':_0x221f50,'top':_0x15b197,'flipX':_0x8ac7a4,'flipY':_0x40803e,'angle':_0x4eee36},_0x3db887=(0x0,r['transformToDrawingPosition'])(_0x138cac,_0x1e438c),_0x46d765=(0x0,r[_0x4e150d(0x19f)])(_0x138cac,_0x1e438c),_0x50de45=_0x44fcfc['getShapeType'](),_0x1cdea6=_0x44fcfc[_0x4e150d(0x234)](),_0x22cf13={'unitId':_0x4d45b3,'subUnitId':_0x4de9af,'drawingId':_0x40f44e,'drawingType':t[_0x4e150d(0x180)][_0x4e150d(0x1ce)],'sheetTransform':_0x3db887,'transform':_0x138cac,'data':{'shapeType':_0x5b9e0b||_0x197d25||_0x50de45,'shapeData':{..._0x1cdea6,'adjustValues':_0x4ccda2||_0x57c588||(_0x1cdea6==null?void 0x0:_0x1cdea6['adjustValues'])}},'axisAlignSheetTransform':_0x46d765,'allowTransform':!0x0},{undo:_0x20b5ff,redo:_0x387a5f,objects:_0x5437fe}=_0x2fc2e9[_0x4e150d(0x212)]([_0x22cf13]),_0xc69eeb=_0x25fe11[_0x4e150d(0x24b)]({'id':r[_0x4e150d(0x255)]['id'],'params':{'unitId':_0x4d45b3,'drawings':[_0x22cf13]}}),_0x1eb99c=[..._0xc69eeb['preRedos']??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4d45b3,'subUnitId':_0x4de9af,'op':_0x387a5f,'objects':_0x5437fe,'type':r[_0x4e150d(0x18d)][_0x4e150d(0x1bc)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4d45b3]},..._0xc69eeb[_0x4e150d(0x19b)],{'id':_['id'],'params':{'unitId':_0x4d45b3,'subUnitId':_0x4de9af,'shapeId':_0x40f44e,'shapeType':_0x5b9e0b,'shapeData':{'adjustValues':_0x4ccda2}}}],_0x170ae7=[..._0xc69eeb[_0x4e150d(0x1e6)]??[],{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4d45b3,'subUnitId':_0x4de9af,'op':_0x20b5ff,'objects':_0x5437fe,'type':r[_0x4e150d(0x18d)][_0x4e150d(0x1bc)]}},{'id':r[_0x4e150d(0x19d)]['id'],'params':[_0x4d45b3]},..._0xc69eeb['undos'],{'id':_['id'],'params':{'unitId':_0x4d45b3,'subUnitId':_0x4de9af,'shapeId':_0x40f44e,'shapeType':_0x50de45,'shapeData':{..._0x1cdea6,'adjustValues':_0x57c588||(_0x1cdea6==null?void 0x0:_0x1cdea6[_0x4e150d(0x1f5)])}}}];return(0x0,t['sequenceExecute'])(_0x1eb99c,_0x42a9f7)[_0x4e150d(0x1c2)]?(_0x201032[_0x4e150d(0x198)]({'unitID':_0x4d45b3,'undoMutations':_0x170ae7,'redoMutations':_0x1eb99c}),!0x0):!0x1;}},w={'id':_0x3c1ee1(0x20b),'type':t[_0x3c1ee1(0x1aa)][_0x3c1ee1(0x267)],'handler':(_0x1b76e3,_0x26b405)=>{const _0x406873=_0x3c1ee1;let {unitId:_0x21b601,subUnitId:_0x4f490e,shapeType:_0x421820,shapeId:_0x3fa323,shapeData:_0x2d28d4}=_0x26b405,_0x75a777=_0x1b76e3[_0x406873(0x271)](p)[_0x406873(0x1c4)](_0x21b601,_0x4f490e,_0x3fa323);return _0x75a777&&(_0x75a777[_0x406873(0x1ea)](_0x421820),_0x2d28d4&&(_0x75a777==null||_0x75a777[_0x406873(0x22e)](_0x2d28d4))),!0x0;}};var T=_0x3c1ee1(0x282),E=_0x3c1ee1(0x20c);function D(_0x2db84c){const _0x55bc26=_0x3c1ee1;var _0x78b082,_0x148f97,_0x29d34a,_0x58f808,_0x38324d,_0xc59bef,_0x1274c9;return{'left':((_0x78b082=_0x2db84c[_0x55bc26(0x274)])==null?void 0x0:_0x78b082[_0x55bc26(0x19a)])??0x0,'top':((_0x148f97=_0x2db84c[_0x55bc26(0x274)])==null?void 0x0:_0x148f97[_0x55bc26(0x190)])??0x0,'width':((_0x29d34a=_0x2db84c[_0x55bc26(0x274)])==null?void 0x0:_0x29d34a['width'])??0xc8,'height':((_0x58f808=_0x2db84c[_0x55bc26(0x274)])==null?void 0x0:_0x58f808['height'])??0xc8,'rotation':((_0x38324d=_0x2db84c[_0x55bc26(0x274)])==null?void 0x0:_0x38324d[_0x55bc26(0x227)])??0x0,'flipX':((_0xc59bef=_0x2db84c[_0x55bc26(0x274)])==null?void 0x0:_0xc59bef['flipX'])??!0x1,'flipY':((_0x1274c9=_0x2db84c['transform'])==null?void 0x0:_0x1274c9[_0x55bc26(0x192)])??!0x1};}let O=class{constructor(_0x2c1c53,_0x103e6f,_0x4578f2,_0x2849a0){const _0x2ddc02=_0x3c1ee1;this[_0x2ddc02(0x21d)]=_0x2c1c53,this[_0x2ddc02(0x1ad)]=_0x103e6f,this['_drawingService']=_0x4578f2,this[_0x2ddc02(0x209)]=_0x2849a0,l(this,_0x2ddc02(0x1cd),t[_0x2ddc02(0x202)][_0x2ddc02(0x1db)]);}get['shapeChanged$'](){return{'subscribe':_0x1fa841=>{const _0x3b7e83=_0x2192;let _0x2168da=this[_0x3b7e83(0x21d)]['onCommandExecuted'](_0x25fa95=>{const _0x5ad643=_0x3b7e83;(_0x25fa95['id']===m['id']||_0x25fa95['id']===h['id']||_0x25fa95['id']===_['id']||_0x25fa95['id']===w['id'])&&_0x1fa841({'unitId':_0x25fa95[_0x5ad643(0x1bb)][_0x5ad643(0x27b)]});});return{'unsubscribe':()=>_0x2168da[_0x3b7e83(0x207)]()};}};}[_0x3c1ee1(0x213)](_0x5d4c4a){const _0x2d1ec6=_0x3c1ee1;var _0x125672;let _0x4fe44d=(_0x125672=this[_0x2d1ec6(0x241)]['getDrawingData'](_0x5d4c4a[_0x2d1ec6(0x27b)],_0x5d4c4a[_0x2d1ec6(0x18f)]))==null?void 0x0:_0x125672[_0x5d4c4a[_0x2d1ec6(0x1d0)]],_0xb57349=this['_shapeService'][_0x2d1ec6(0x261)](_0x5d4c4a[_0x2d1ec6(0x27b)],_0x5d4c4a['subUnitId'],_0x5d4c4a[_0x2d1ec6(0x1d0)]);if(!_0x4fe44d||_0x4fe44d[_0x2d1ec6(0x1ee)]!==t[_0x2d1ec6(0x180)][_0x2d1ec6(0x1ce)]||!_0xb57349)return null;let _0x5246d8=_0x4fe44d[_0x2d1ec6(0x274)];return{..._0x5d4c4a,'shapeType':_0xb57349,'shapeData':t[_0x2d1ec6(0x196)]['deepClone'](this[_0x2d1ec6(0x1ad)]['getShapeDataById'](_0x5d4c4a[_0x2d1ec6(0x27b)],_0x5d4c4a[_0x2d1ec6(0x18f)],_0x5d4c4a[_0x2d1ec6(0x1d0)])??{}),'name':_0x4fe44d['name'],'description':_0x4fe44d[_0x2d1ec6(0x197)],'visible':_0x4fe44d[_0x2d1ec6(0x1d1)]!==!0x0,'selectable':_0x4fe44d[_0x2d1ec6(0x238)]!==!0x1,'transform':{'left':(_0x5246d8==null?void 0x0:_0x5246d8[_0x2d1ec6(0x19a)])??0x0,'top':(_0x5246d8==null?void 0x0:_0x5246d8[_0x2d1ec6(0x190)])??0x0,'width':(_0x5246d8==null?void 0x0:_0x5246d8['width'])??0xc8,'height':(_0x5246d8==null?void 0x0:_0x5246d8[_0x2d1ec6(0x1fa)])??0xc8,'rotation':(_0x5246d8==null?void 0x0:_0x5246d8['angle'])??0x0,'flipX':(_0x5246d8==null?void 0x0:_0x5246d8[_0x2d1ec6(0x20f)])??!0x1,'flipY':(_0x5246d8==null?void 0x0:_0x5246d8['flipY'])??!0x1}};}[_0x3c1ee1(0x1b3)](_0x541ab1){const _0x29e3e7=_0x3c1ee1;let _0x407f17=this[_0x29e3e7(0x241)][_0x29e3e7(0x247)](_0x541ab1[_0x29e3e7(0x27b)],_0x541ab1[_0x29e3e7(0x18f)])??{};return Object[_0x29e3e7(0x251)](_0x407f17)[_0x29e3e7(0x24e)](_0x3f43a8=>(_0x3f43a8==null?void 0x0:_0x3f43a8[_0x29e3e7(0x1ee)])===t[_0x29e3e7(0x180)]['DRAWING_SHAPE'])[_0x29e3e7(0x263)](_0x1f1897=>this[_0x29e3e7(0x213)]({..._0x541ab1,'shapeId':_0x1f1897[_0x29e3e7(0x217)]}))['filter'](_0x4e43f7=>!!_0x4e43f7);}[_0x3c1ee1(0x1e5)](_0x14a67f){const _0x2bc67c=_0x3c1ee1;let _0x3d58ee=this['_instanceService']['getUnit'](_0x14a67f,t[_0x2bc67c(0x202)][_0x2bc67c(0x1db)]);return(_0x3d58ee==null?void 0x0:_0x3d58ee[_0x2bc67c(0x1d2)]()[_0x2bc67c(0x249)](_0x4c4773=>this[_0x2bc67c(0x1b3)]({'hostType':this[_0x2bc67c(0x1cd)],'unitId':_0x14a67f,'subUnitId':_0x4c4773['getSheetId']()})))??[];}[_0x3c1ee1(0x215)](_0x41e28d,_0x46e1a9){const _0x382659=_0x3c1ee1;let _0x107cd6=(0x0,t['generateRandomId'])(),_0x1d1cf7=D(_0x46e1a9),_0x599978=t[_0x382659(0x196)][_0x382659(0x1dc)](_0x46e1a9[_0x382659(0x1fe)]??(0x0,e['createDefaultInsertedShapeData'])(_0x46e1a9[_0x382659(0x1c5)]));return this[_0x382659(0x21d)][_0x382659(0x26b)](g['id'],{'unitId':_0x41e28d[_0x382659(0x27b)],'subUnitId':_0x41e28d[_0x382659(0x18f)],'shapeId':_0x107cd6,'shapeType':_0x46e1a9[_0x382659(0x1c5)],'shapeData':_0x599978,'name':_0x46e1a9['name'],'description':_0x46e1a9['description'],'position':{'x':_0x1d1cf7[_0x382659(0x19a)],'y':_0x1d1cf7[_0x382659(0x190)]},'width':_0x1d1cf7[_0x382659(0x204)],'height':_0x1d1cf7[_0x382659(0x1fa)],'rotation':_0x1d1cf7['rotation'],'flipX':_0x1d1cf7[_0x382659(0x20f)],'flipY':_0x1d1cf7[_0x382659(0x192)],'visible':_0x46e1a9[_0x382659(0x1df)]??!0x0,'selectable':_0x46e1a9[_0x382659(0x238)]??!0x0})?{..._0x41e28d,'shapeId':_0x107cd6,'shapeType':_0x46e1a9[_0x382659(0x1c5)],'shapeData':_0x599978,'name':_0x46e1a9[_0x382659(0x286)],'description':_0x46e1a9[_0x382659(0x197)],'visible':_0x46e1a9[_0x382659(0x1df)]??!0x0,'selectable':_0x46e1a9[_0x382659(0x238)]??!0x0,'transform':_0x1d1cf7}:null;}['updateShape'](_0x37051e,_0x5b7868){const _0x456405=_0x3c1ee1;var _0x3dcc27;let _0xf0f9a5=this[_0x456405(0x213)](_0x37051e);if(!_0xf0f9a5)return!0x1;let _0x5293c9={..._0xf0f9a5[_0x456405(0x274)],..._0x5b7868[_0x456405(0x274)]};return this[_0x456405(0x21d)][_0x456405(0x26b)](v['id'],{'unitId':_0x37051e[_0x456405(0x27b)],'subUnitId':_0x37051e['subUnitId'],'shapeId':_0x37051e[_0x456405(0x1d0)],'shapeType':_0x5b7868['shapeType']??((_0x3dcc27=_0x5b7868[_0x456405(0x1fe)])==null?void 0x0:_0x3dcc27[_0x456405(0x1c5)])??_0xf0f9a5['shapeType'],'shapeData':_0x5b7868[_0x456405(0x1fe)]??_0xf0f9a5[_0x456405(0x1fe)],'position':{'x':_0x5293c9[_0x456405(0x19a)],'y':_0x5293c9[_0x456405(0x190)]},'width':_0x5293c9['width'],'height':_0x5293c9['height'],'rotation':_0x5293c9[_0x456405(0x227)],'flipX':_0x5293c9[_0x456405(0x20f)],'flipY':_0x5293c9[_0x456405(0x192)],'name':_0x456405(0x286)in _0x5b7868?_0x5b7868[_0x456405(0x286)]:_0xf0f9a5[_0x456405(0x286)],'description':_0x456405(0x197)in _0x5b7868?_0x5b7868['description']:_0xf0f9a5[_0x456405(0x197)],'visible':_0x5b7868[_0x456405(0x1df)]??_0xf0f9a5[_0x456405(0x1df)],'selectable':_0x5b7868[_0x456405(0x238)]??_0xf0f9a5[_0x456405(0x238)]});}[_0x3c1ee1(0x1b6)](_0x920663,_0x4e5366,_0x24a305){const _0x1b7de9=_0x3c1ee1;let _0x4972f6=this['getShape'](_0x920663),_0xfc35aa=_0x4972f6==null?void 0x0:_0x4972f6[_0x1b7de9(0x1fe)]['formulaBinding'];return!_0x4972f6||!_0xfc35aa?null:{'id':_['id'],'params':{'unitId':_0x920663['unitId'],'subUnitId':_0x920663[_0x1b7de9(0x18f)],'shapeId':_0x920663['shapeId'],'shapeData':{..._0x4972f6[_0x1b7de9(0x1fe)],'formulaBinding':{..._0xfc35aa,'lastValue':t[_0x1b7de9(0x196)]['deepClone'](_0x24a305)}},'replace':!0x0,'formulaLastValueGuard':_0x4e5366}};}[_0x3c1ee1(0x1b7)](_0xecfb38){const _0x327d9b=_0x3c1ee1;return this[_0x327d9b(0x21d)][_0x327d9b(0x26b)](r[_0x327d9b(0x239)]['id'],{'unitId':_0xecfb38[_0x327d9b(0x27b)],'drawings':[{'unitId':_0xecfb38[_0x327d9b(0x27b)],'subUnitId':_0xecfb38[_0x327d9b(0x18f)],'drawingId':_0xecfb38[_0x327d9b(0x1d0)],'drawingType':t['DrawingTypeEnum'][_0x327d9b(0x1ce)]}]});}['bringToFront'](_0xef0784){const _0x19f6df=_0x3c1ee1;return this[_0x19f6df(0x1f9)](_0xef0784,t[_0x19f6df(0x1d4)][_0x19f6df(0x246)]);}['bringForward'](_0x18bb91){const _0x298b56=_0x3c1ee1;return this['_arrange'](_0x18bb91,t[_0x298b56(0x1d4)][_0x298b56(0x23a)]);}[_0x3c1ee1(0x1eb)](_0x20269e){const _0x799713=_0x3c1ee1;return this[_0x799713(0x1f9)](_0x20269e,t[_0x799713(0x1d4)][_0x799713(0x208)]);}['sendToBack'](_0x3e0e69){const _0x5ab231=_0x3c1ee1;return this['_arrange'](_0x3e0e69,t['ArrangeTypeEnum'][_0x5ab231(0x26a)]);}['setZOrder'](_0x260ba3,_0x11044a){const _0x5e6c05=_0x3c1ee1;return this[_0x5e6c05(0x21d)][_0x5e6c05(0x26b)](r[_0x5e6c05(0x19c)]['id'],{'unitId':_0x260ba3[_0x5e6c05(0x27b)],'subUnitId':_0x260ba3['subUnitId'],'drawingIds':[_0x260ba3[_0x5e6c05(0x1d0)]],'zOrder':_0x11044a});}[_0x3c1ee1(0x1f9)](_0x5976b1,_0x3668d5){const _0x5a695e=_0x3c1ee1;return this[_0x5a695e(0x21d)][_0x5a695e(0x26b)](r['SetDrawingArrangeCommand']['id'],{'unitId':_0x5976b1[_0x5a695e(0x27b)],'subUnitId':_0x5976b1[_0x5a695e(0x18f)],'drawingIds':[_0x5976b1[_0x5a695e(0x1d0)]],'arrangeType':_0x3668d5});}};O=f([d(0x0,t[_0x3c1ee1(0x1a9)]),d(0x1,(0x0,t['Inject'])(p)),d(0x2,r[_0x3c1ee1(0x1fb)]),d(0x3,t[_0x3c1ee1(0x272)])],O);const k={};let A=class extends t[_0x3c1ee1(0x22f)]{constructor(_0x35f924,_0x41fe6a,_0x4dbe97,_0x58c6a0,_0x52cc38,_0x4ce668,_0x5d49f4){const _0x1695f8=_0x3c1ee1;super(),this['_commandService']=_0x35f924,this[_0x1695f8(0x1ec)]=_0x41fe6a,this['_sheetSkeletonService']=_0x4dbe97,this['_sheetsShapeService']=_0x58c6a0,this[_0x1695f8(0x284)]=_0x52cc38,this[_0x1695f8(0x23c)]=_0x4ce668,this['_initCommands'](),this['_initCommandInterceptor'](),this[_0x1695f8(0x283)](this['_shapeHostAdapterRegistry'][_0x1695f8(0x188)](_0x5d49f4));}[_0x3c1ee1(0x18b)](){const _0x3e8a2b=_0x3c1ee1;[g,v,y,b,x,S,C,m,h,w,_]['forEach'](_0x3593ea=>this[_0x3e8a2b(0x283)](this[_0x3e8a2b(0x21d)][_0x3e8a2b(0x1ca)](_0x3593ea)));}['_initCommandInterceptor'](){const _0x3aeab8=_0x3c1ee1;this[_0x3aeab8(0x283)](this[_0x3aeab8(0x1ec)][_0x3aeab8(0x1d8)]({'getMutations':_0x5b474f=>{const _0x32a3b6=_0x3aeab8;if(_0x5b474f['id']===r[_0x32a3b6(0x239)]['id']){let {drawings:_0x5cdec5}=_0x5b474f[_0x32a3b6(0x1bb)],_0x5f1f86=_0x5cdec5[_0x32a3b6(0x24e)](_0x25d3d1=>_0x25d3d1[_0x32a3b6(0x1ee)]===t[_0x32a3b6(0x180)][_0x32a3b6(0x1ce)]);if(_0x5f1f86['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x443fbd=[],_0x37dd38=[];return _0x5f1f86[_0x32a3b6(0x1a7)](_0x4c19a4=>{const _0x539805=_0x32a3b6;let {unitId:_0x103bd9,subUnitId:_0x57aff6,drawingId:_0x14063f}=_0x4c19a4,_0x3f24db=this[_0x539805(0x20d)][_0x539805(0x1c4)](_0x103bd9,_0x57aff6,_0x14063f);if(!_0x3f24db)throw TypeError(_0x539805(0x1a5)+_0x3f24db);_0x443fbd['push']({'id':h['id'],'params':{'unitId':_0x103bd9,'subUnitId':_0x57aff6,'shapeId':_0x14063f}}),_0x37dd38['push']({'id':m['id'],'params':{'unitId':_0x103bd9,'subUnitId':_0x57aff6,'shapeId':_0x14063f,'shapeType':_0x3f24db['getShapeType'](),'shapeData':_0x3f24db[_0x539805(0x234)]()}});let _0x31166c=this[_0x539805(0x20d)]['getBasicShapeRelation'](_0x103bd9,_0x57aff6,_0x14063f);if(_0x31166c)for(let _0x382c5f of _0x31166c){let _0x332389=_0x382c5f[_0x539805(0x26e)],_0x109223=_0x382c5f[_0x539805(0x25b)],_0x265b3e=_0x109223?{'from':void 0x0}:{'to':void 0x0},_0x2fb662=_0x109223?{'from':{'shapeId':_0x382c5f['shapeId'],'cxnIndex':_0x382c5f[_0x539805(0x1ed)]}}:{'to':{'shapeId':_0x382c5f[_0x539805(0x1d0)],'cxnIndex':_0x382c5f['cxnIndex']}};_0x443fbd[_0x539805(0x1e0)]({'id':_['id'],'params':{'unitId':_0x103bd9,'subUnitId':_0x57aff6,'shapeId':_0x332389,'shapeData':{'relation':_0x265b3e}}}),_0x37dd38[_0x539805(0x1e0)]({'id':_['id'],'params':{'unitId':_0x103bd9,'subUnitId':_0x57aff6,'shapeId':_0x332389,'shapeData':{'relation':_0x2fb662}}});}}),{'preRedos':_0x443fbd,'redos':[],'preUndos':[],'undos':_0x37dd38};}if(_0x5b474f['id']===r['SetSheetDrawingCommand']['id']){let {drawings:_0x317f81}=_0x5b474f['params'],_0x3f8f3c=_0x317f81[_0x32a3b6(0x24e)](_0x32ebf5=>_0x32ebf5[_0x32a3b6(0x1ee)]===t['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x3f8f3c[_0x32a3b6(0x1c3)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x9d97df=[],_0x3f7627=[];for(let _0x5c9109 of _0x3f8f3c){let {unitId:_0x1eccc8,subUnitId:_0x5e32ac,drawingId:_0x193d06,transform:_0x3a8386}=_0x5c9109;if(!_0x1eccc8||!_0x5e32ac||!_0x193d06||!_0x3a8386)continue;let _0x5d2fe7=this[_0x32a3b6(0x20d)][_0x32a3b6(0x1c4)](_0x1eccc8,_0x5e32ac,_0x193d06);if(!_0x5d2fe7)throw TypeError(_0x32a3b6(0x1a5)+_0x5d2fe7);let _0x328bbf=_0x5d2fe7[_0x32a3b6(0x261)]();if((0x0,e[_0x32a3b6(0x20a)])(_0x328bbf)){let _0x320b77=this[_0x32a3b6(0x20d)][_0x32a3b6(0x253)](_0x1eccc8,_0x5e32ac,_0x193d06);_0x320b77&&(_0x9d97df[_0x32a3b6(0x1e0)]({'id':_['id'],'params':{'unitId':_0x1eccc8,'subUnitId':_0x5e32ac,'shapeId':_0x193d06,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x3f7627['push']({'id':_['id'],'params':{'unitId':_0x1eccc8,'subUnitId':_0x5e32ac,'shapeId':_0x193d06,'shapeData':{'relation':_0x320b77}}}));}else{let _0x49799b=this[_0x32a3b6(0x20d)][_0x32a3b6(0x22b)](_0x1eccc8,_0x5e32ac,_0x193d06);if(_0x49799b&&_0x49799b['length']>0x0)for(let _0x243473 of _0x49799b){let _0x4d5694=_0x243473[_0x32a3b6(0x26e)],_0x1fddfe=_0x243473[_0x32a3b6(0x25b)],_0x2a450a=this[_0x32a3b6(0x20d)][_0x32a3b6(0x1c4)](_0x1eccc8,_0x5e32ac,_0x4d5694);if(!_0x2a450a)continue;let _0x56c148=_0x2a450a[_0x32a3b6(0x220)](),_0x12c6a3=_0x2a450a[_0x32a3b6(0x27a)]();_0x56c148&&_0x12c6a3?this[_0x32a3b6(0x1a6)](_0x1eccc8,_0x5e32ac,_0x4d5694,_0x2a450a,_0x56c148,_0x12c6a3,_0x9d97df,_0x3f7627,_0x193d06,_0x3a8386):this[_0x32a3b6(0x18e)](_0x1eccc8,_0x5e32ac,_0x4d5694,_0x2a450a,_0x1fddfe?_0x56c148:_0x12c6a3,_0x1fddfe,_0x9d97df,_0x3f7627,_0x193d06,_0x3a8386);}}}return{'preRedos':[],'redos':_0x9d97df,'preUndos':_0x3f7627,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3c1ee1(0x280)](_0x19e9ba,_0x58f246,_0x4f196c,_0x201851,_0x4365ad){const _0x3afafc=_0x3c1ee1;if(!_0x58f246||!_0x4f196c)return null;let {shapeId:_0x7160f0,cxnIndex:_0x227281}=_0x19e9ba,_0x3aae4a=this[_0x3afafc(0x20d)][_0x3afafc(0x1c4)](_0x58f246,_0x4f196c,_0x7160f0);if(!_0x3aae4a)return null;let _0x4345dc=this[_0x3afafc(0x284)]['getDrawingByParam']({'unitId':_0x58f246,'subUnitId':_0x4f196c,'drawingId':_0x7160f0});if(!(_0x4345dc!=null&&_0x4345dc[_0x3afafc(0x274)]))return null;let {left:_0x5377f1=0x0,top:_0x5f8925=0x0,width:_0x57f536=0x0,height:_0x3a4854=0x0,flipX:_0x4523ce=!0x1,flipY:_0x5b462d=!0x1,angle:_0x30894f}=_0x4345dc[_0x3afafc(0x274)];_0x4365ad&&_0x201851===_0x7160f0&&(_0x5377f1=_0x4365ad['left']??_0x5377f1,_0x5f8925=_0x4365ad[_0x3afafc(0x190)]??_0x5f8925,_0x57f536=_0x4365ad[_0x3afafc(0x204)]??_0x57f536,_0x3a4854=_0x4365ad[_0x3afafc(0x1fa)]??_0x3a4854,_0x4523ce=_0x4365ad['flipX']??_0x4523ce,_0x5b462d=_0x4365ad[_0x3afafc(0x192)]??_0x5b462d,_0x30894f=_0x4365ad[_0x3afafc(0x1ef)]??_0x30894f),_0x3aae4a[_0x3afafc(0x25e)]({'width':_0x57f536,'height':_0x3a4854});let _0xa93ed8=_0x3aae4a[_0x3afafc(0x1e8)]()['find'](_0x2667b4=>_0x2667b4[_0x3afafc(0x1c1)]===_0x227281);if(!_0xa93ed8)return null;let _0x1171f6=_0x4523ce?_0x57f536-_0xa93ed8['x']:_0xa93ed8['x'],_0x45a4b1=_0x5b462d?_0x3a4854-_0xa93ed8['y']:_0xa93ed8['y'];if(_0x30894f!==0x0&&_0x30894f!=null){let _0x28939d=_0x30894f*Math['PI']/0xb4,_0x12f3ff=Math[_0x3afafc(0x21b)](_0x28939d),_0x190a3e=Math[_0x3afafc(0x1f3)](_0x28939d),_0x18d35b=_0x57f536/0x2,_0x48c88b=_0x3a4854/0x2,_0x21feb6=_0x1171f6-_0x18d35b,_0x249732=_0x45a4b1-_0x48c88b;_0x1171f6=_0x18d35b+_0x21feb6*_0x12f3ff-_0x249732*_0x190a3e,_0x45a4b1=_0x48c88b+_0x21feb6*_0x190a3e+_0x249732*_0x12f3ff;}_0x1171f6+=_0x5377f1,_0x45a4b1+=_0x5f8925;let _0x264ac3=_0xa93ed8[_0x3afafc(0x18c)]/0xea60;_0x4523ce&&(_0x264ac3=0xb4-_0x264ac3),_0x5b462d&&(_0x264ac3=-_0x264ac3),_0x264ac3+=_0x30894f||0x0,_0x264ac3=(_0x264ac3%0x168+0x168)%0x168;let _0x47b51a=(0x0,e['getBasicShapeRotateBound'])({'left':_0x5377f1,'top':_0x5f8925,'width':_0x57f536,'height':_0x3a4854},_0x30894f||0x0);return{'point':{'x':_0x1171f6,'y':_0x45a4b1},'angle':_0x264ac3,'bounds':_0x47b51a};}['_addLineRerouteUpdates'](_0x496787,_0x182ae9,_0x57d234,_0x48020a,_0x5f4b59,_0x2bbb0b,_0x34bf10,_0x1cbae6,_0x26cf4b,_0x10cbe2){const _0x13f50e=_0x3c1ee1;let _0x1c4ff5=this['_sheetSkeletonService'][_0x13f50e(0x1b9)](_0x496787,_0x182ae9);if(!_0x1c4ff5)return;let _0x35889e=_0x48020a[_0x13f50e(0x273)](),_0xd0d259=_0x48020a[_0x13f50e(0x231)](),_0x120758={},_0x176371={};_0xd0d259[_0x13f50e(0x1a7)](_0x22640a=>{const _0x56620e=_0x13f50e;let _0x4b56cc=_0x48020a[_0x56620e(0x275)](_0x22640a);_0x176371[_0x22640a]=_0x4b56cc??0x0;});let _0x4489bd=this[_0x13f50e(0x280)](_0x5f4b59,_0x496787,_0x182ae9,_0x26cf4b,_0x10cbe2),_0x22e217=this[_0x13f50e(0x280)](_0x2bbb0b,_0x496787,_0x182ae9,_0x26cf4b,_0x10cbe2);if(_0x4489bd&&_0x22e217){let _0x45fb6d=_0x48020a['getShapeType'](),_0x37b753=(0x0,e[_0x13f50e(0x285)])(_0x4489bd,_0x22e217,_0x45fb6d),_0x443984=_0x45fb6d;if(_0x37b753){let _0xcfef8b=(0x0,e['computeConnectorRouteLayout'])(_0x37b753,_0x48020a[_0x13f50e(0x261)]()),_0x587e2e=this[_0x13f50e(0x284)]['getDrawingData'](_0x496787,_0x182ae9);if(_0x587e2e&&_0x587e2e[_0x57d234]){let _0x1ddf15=_0x587e2e[_0x57d234];_0x443984=_0xcfef8b['lineType'];for(let [_0xf9a91f,_0x54098d]of Object[_0x13f50e(0x277)](_0xcfef8b[_0x13f50e(0x1f5)]))_0x120758[_0xf9a91f]=_0x54098d;let _0x136a1f={..._0x1ddf15['transform'],'width':_0xcfef8b[_0x13f50e(0x1a4)][_0x13f50e(0x204)],'height':_0xcfef8b[_0x13f50e(0x1a4)][_0x13f50e(0x1fa)],'left':_0xcfef8b[_0x13f50e(0x1a4)][_0x13f50e(0x19a)],'top':_0xcfef8b[_0x13f50e(0x1a4)][_0x13f50e(0x190)],'flipX':_0xcfef8b[_0x13f50e(0x1a4)][_0x13f50e(0x20f)],'flipY':_0xcfef8b[_0x13f50e(0x1a4)][_0x13f50e(0x192)],'angle':_0xcfef8b[_0x13f50e(0x227)]},_0x446c52=(0x0,r[_0x13f50e(0x24f)])(_0x136a1f,_0x1c4ff5),_0x221c8c=(0x0,r[_0x13f50e(0x19f)])(_0x136a1f,_0x1c4ff5),_0x22ddae={'unitId':_0x496787,'subUnitId':_0x182ae9,'drawingType':t[_0x13f50e(0x180)][_0x13f50e(0x1ce)],'drawingId':_0x57d234,'transform':_0x136a1f,'sheetTransform':_0x446c52,'axisAlignSheetTransform':_0x221c8c},{unitId:_0x349233,subUnitId:_0x36ef5b,undo:_0x44094a,redo:_0x33f843,objects:_0x3a9c7b}=this[_0x13f50e(0x284)][_0x13f50e(0x212)]([_0x22ddae]);_0x34bf10[_0x13f50e(0x1e0)]({'id':r[_0x13f50e(0x242)]['id'],'params':{'unitId':_0x349233,'subUnitId':_0x36ef5b,'op':_0x33f843,'objects':_0x3a9c7b,'type':r[_0x13f50e(0x18d)][_0x13f50e(0x1bc)]}}),_0x1cbae6['push']({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x349233,'subUnitId':_0x36ef5b,'op':_0x44094a,'objects':_0x3a9c7b,'type':r[_0x13f50e(0x18d)][_0x13f50e(0x1bc)]}});}_0x48020a['removeLinePoints']();}_0x34bf10[_0x13f50e(0x1e0)]({'id':_['id'],'params':{'unitId':_0x496787,'subUnitId':_0x182ae9,'shapeId':_0x57d234,'shapeType':_0x443984,'shapeData':{'adjustValues':_0x120758,'relation':_0x35889e}}}),_0x1cbae6[_0x13f50e(0x1e0)]({'id':_['id'],'params':{'unitId':_0x496787,'subUnitId':_0x182ae9,'shapeId':_0x57d234,'shapeType':_0x45fb6d,'shapeData':{'adjustValues':_0x176371,'relation':_0x35889e}}});}}['_addLineFollowShapeUpdates'](_0x3203ff,_0x1273f5,_0x778d08,_0x3af584,_0x9324d8,_0x3ba4e9,_0x1b16bd,_0x319df4,_0x16b0b4,_0x4018ac){const _0x13985b=_0x3c1ee1;var _0x1f2115;if(!_0x9324d8)return;let _0x22373b=this['_sheetSkeletonService'][_0x13985b(0x1b9)](_0x3203ff,_0x1273f5);if(!_0x22373b)return;let _0x45c9d1=(_0x1f2115=this[_0x13985b(0x284)][_0x13985b(0x1f4)]({'unitId':_0x3203ff,'subUnitId':_0x1273f5,'drawingId':_0x16b0b4}))==null?void 0x0:_0x1f2115['transform'];if(!_0x45c9d1)return;let _0x5a40dc=_0x45c9d1[_0x13985b(0x19a)]!==_0x4018ac[_0x13985b(0x19a)]||_0x45c9d1[_0x13985b(0x190)]!==_0x4018ac['top'],_0x10b62e=_0x45c9d1['width']!==_0x4018ac[_0x13985b(0x204)]||_0x45c9d1[_0x13985b(0x1fa)]!==_0x4018ac[_0x13985b(0x1fa)],_0xa0abb9=_0x45c9d1[_0x13985b(0x20f)]!==_0x4018ac[_0x13985b(0x20f)]||_0x45c9d1[_0x13985b(0x192)]!==_0x4018ac[_0x13985b(0x192)],_0x126d58=_0x45c9d1[_0x13985b(0x1ef)]!==_0x4018ac[_0x13985b(0x1ef)];if(_0x5a40dc&&!_0x10b62e&&!_0xa0abb9&&!_0x126d58){let _0x1432db=(_0x4018ac[_0x13985b(0x19a)]??0x0)-(_0x45c9d1[_0x13985b(0x19a)]??0x0),_0x9bbb5e=(_0x4018ac[_0x13985b(0x190)]??0x0)-(_0x45c9d1[_0x13985b(0x190)]??0x0),_0x2aa331=this[_0x13985b(0x284)][_0x13985b(0x247)](_0x3203ff,_0x1273f5);if(_0x2aa331&&_0x2aa331[_0x778d08]){var _0x32e1dd,_0x53aa6c;let _0xc108c9=_0x2aa331[_0x778d08],_0x281a99={..._0xc108c9[_0x13985b(0x274)],'left':(((_0x32e1dd=_0xc108c9['transform'])==null?void 0x0:_0x32e1dd[_0x13985b(0x19a)])??0x0)+_0x1432db,'top':(((_0x53aa6c=_0xc108c9[_0x13985b(0x274)])==null?void 0x0:_0x53aa6c[_0x13985b(0x190)])??0x0)+_0x9bbb5e},_0x5b2747=(0x0,r[_0x13985b(0x24f)])(_0x281a99,_0x22373b),_0xbc4878=(0x0,r[_0x13985b(0x19f)])(_0x281a99,_0x22373b),_0x4718a6={'unitId':_0x3203ff,'subUnitId':_0x1273f5,'drawingType':t[_0x13985b(0x180)][_0x13985b(0x1ce)],'drawingId':_0x778d08,'transform':_0x281a99,'sheetTransform':_0x5b2747,'axisAlignSheetTransform':_0xbc4878},{unitId:_0x4b4f48,subUnitId:_0x1de8be,undo:_0x2439b6,redo:_0x31c7c0,objects:_0x4232ac}=this[_0x13985b(0x284)][_0x13985b(0x212)]([_0x4718a6]);_0x1b16bd[_0x13985b(0x1e0)]({'id':r[_0x13985b(0x242)]['id'],'params':{'unitId':_0x4b4f48,'subUnitId':_0x1de8be,'op':_0x31c7c0,'objects':_0x4232ac,'type':r[_0x13985b(0x18d)][_0x13985b(0x1bc)]}}),_0x319df4[_0x13985b(0x1e0)]({'id':r[_0x13985b(0x242)]['id'],'params':{'unitId':_0x4b4f48,'subUnitId':_0x1de8be,'op':_0x2439b6,'objects':_0x4232ac,'type':r['DrawingApplyType'][_0x13985b(0x1bc)]}});}}else{let _0x44ca72=_0x3af584[_0x13985b(0x220)](),_0x4b5d7b=_0x3af584[_0x13985b(0x27a)]();this[_0x13985b(0x1a6)](_0x3203ff,_0x1273f5,_0x778d08,_0x3af584,_0x44ca72,_0x4b5d7b,_0x1b16bd,_0x319df4,_0x16b0b4,_0x4018ac);}}};A=f([d(0x0,t[_0x3c1ee1(0x1a9)]),d(0x1,(0x0,t[_0x3c1ee1(0x222)])(n[_0x3c1ee1(0x23e)])),d(0x2,(0x0,t['Inject'])(n[_0x3c1ee1(0x26f)])),d(0x3,(0x0,t[_0x3c1ee1(0x222)])(p)),d(0x4,(0x0,t[_0x3c1ee1(0x222)])(a['IDrawingManagerService'])),d(0x5,(0x0,t['Inject'])(e['IShapeHostAdapterRegistry'])),d(0x6,(0x0,t['Inject'])(O))],A);let j=class extends t[_0x3c1ee1(0x22f)]{constructor(_0x1b714c,_0x467cc0,_0x4bcb8a){const _0x14ab4b=_0x3c1ee1;super(),this[_0x14ab4b(0x1ad)]=_0x1b714c,this[_0x14ab4b(0x1ac)]=_0x467cc0,this[_0x14ab4b(0x283)](_0x4bcb8a[_0x14ab4b(0x188)](this));}[_0x3c1ee1(0x274)](_0x3a51e4){const _0xec789c=_0x3c1ee1;let _0xd71934={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0xec789c(0x1a0)](_0x3a51e4,_0xd71934);for(let [_0x1655bd,_0x26a01a]of _0x3a51e4[_0xec789c(0x1e2)])this[_0xec789c(0x27e)](_0x3a51e4,_0x1655bd,_0x26a01a,_0xd71934);return _0xd71934;}['_planDeletes'](_0x4aadf6,_0x45ab6e){const _0x4505e8=_0x3c1ee1;if(_0x4aadf6[_0x4505e8(0x236)]==='command')for(let _0x2f8ebd of _0x4aadf6[_0x4505e8(0x211)]){let _0x57f3a5=_0x4aadf6['originals'][_0x4505e8(0x271)](_0x2f8ebd),_0x47525c=this['_shapeService']['getShapeModel'](_0x4aadf6[_0x4505e8(0x27b)],_0x4aadf6[_0x4505e8(0x18f)],_0x2f8ebd);(_0x57f3a5==null?void 0x0:_0x57f3a5[_0x4505e8(0x1ee)])===t[_0x4505e8(0x180)][_0x4505e8(0x1ce)]&&_0x47525c&&(_0x45ab6e[_0x4505e8(0x1bf)]['push']({'id':h['id'],'params':{'unitId':_0x4aadf6[_0x4505e8(0x27b)],'subUnitId':_0x4aadf6[_0x4505e8(0x18f)],'shapeId':_0x2f8ebd}}),_0x45ab6e[_0x4505e8(0x237)][_0x4505e8(0x1e0)]({'id':m['id'],'params':{'unitId':_0x4aadf6['unitId'],'subUnitId':_0x4aadf6[_0x4505e8(0x18f)],'shapeId':_0x2f8ebd,'shapeName':_0x47525c[_0x4505e8(0x17f)](),'shapeType':_0x47525c['getShapeType'](),'shapeData':t['Tools'][_0x4505e8(0x1dc)](_0x47525c[_0x4505e8(0x234)]())}}));}}['_planConnector'](_0x2c98e0,_0x32d306,_0x25add7,_0x5bcc2d){const _0x40a374=_0x3c1ee1;if(_0x25add7[_0x40a374(0x1ee)]!==t['DrawingTypeEnum']['DRAWING_SHAPE']||_0x2c98e0[_0x40a374(0x211)][_0x40a374(0x230)](_0x32d306))return;let _0x3d4365=this[_0x40a374(0x1ad)][_0x40a374(0x1c4)](_0x2c98e0[_0x40a374(0x27b)],_0x2c98e0['subUnitId'],_0x32d306);if(!_0x3d4365||!(0x0,e[_0x40a374(0x20a)])(_0x3d4365[_0x40a374(0x261)]()))return;let _0x5aedca=_0x3d4365[_0x40a374(0x273)]();if(!(_0x2c98e0['updates'][_0x40a374(0x230)](_0x32d306)||_0x5aedca!=null&&_0x5aedca[_0x40a374(0x22a)]&&(_0x2c98e0[_0x40a374(0x279)][_0x40a374(0x230)](_0x5aedca[_0x40a374(0x22a)][_0x40a374(0x1d0)])||_0x2c98e0[_0x40a374(0x211)][_0x40a374(0x230)](_0x5aedca[_0x40a374(0x22a)]['shapeId']))||_0x5aedca!=null&&_0x5aedca['to']&&(_0x2c98e0['updates'][_0x40a374(0x230)](_0x5aedca['to'][_0x40a374(0x1d0)])||_0x2c98e0[_0x40a374(0x211)][_0x40a374(0x230)](_0x5aedca['to'][_0x40a374(0x1d0)]))))return;let _0x292665=_0x2c98e0[_0x40a374(0x279)]['get'](_0x32d306)??_0x25add7,_0x20cd20=this[_0x40a374(0x243)](_0x2c98e0,_0x292665);if(!_0x20cd20)return;let _0x2b1305=(0x0,e[_0x40a374(0x225)])(_0x20cd20);if(_0x2b1305['length']<0x2)return;let _0x293890=t[_0x40a374(0x196)][_0x40a374(0x1dc)](_0x5aedca??{}),_0x95f60f=_0x293890[_0x40a374(0x22a)]&&this[_0x40a374(0x1cc)](_0x2c98e0,_0x293890[_0x40a374(0x22a)][_0x40a374(0x1d0)],_0x293890[_0x40a374(0x22a)][_0x40a374(0x1ed)]),_0x3d6bcd=_0x293890['to']&&this['_resolveBinding'](_0x2c98e0,_0x293890['to'][_0x40a374(0x1d0)],_0x293890['to']['cxnIndex']);_0x293890['from']&&!_0x95f60f&&delete _0x293890[_0x40a374(0x22a)],_0x293890['to']&&!_0x3d6bcd&&delete _0x293890['to'];let _0x16f579=_0x95f60f||(0x0,e['createFreeConnectorPointInfo'])((_0x3d6bcd==null?void 0x0:_0x3d6bcd['point'])??_0x2b1305[_0x2b1305[_0x40a374(0x1c3)]-0x1],_0x2b1305[0x0]),_0x4ddb02=_0x3d6bcd||(0x0,e[_0x40a374(0x1ae)])((_0x95f60f==null?void 0x0:_0x95f60f[_0x40a374(0x24d)])??_0x2b1305[0x0],_0x2b1305[_0x2b1305[_0x40a374(0x1c3)]-0x1]),_0x1fe345=(0x0,e[_0x40a374(0x1c9)])(_0x20cd20,_0x16f579,_0x4ddb02,_0x293890);if(_0x1fe345!=null&&_0x1fe345[_0x40a374(0x274)]&&_0x1fe345[_0x40a374(0x1c5)]&&_0x1fe345[_0x40a374(0x1fe)]){if(this['_applyUpdate'](_0x2c98e0,_0x292665,_0x1fe345),_0x2c98e0[_0x40a374(0x236)]===_0x40a374(0x182)){_0x3d4365['setShapeType'](_0x1fe345[_0x40a374(0x1c5)]),_0x3d4365[_0x40a374(0x22e)](t[_0x40a374(0x196)]['deepClone'](_0x1fe345[_0x40a374(0x1fe)]),!0x1);return;}_0x5bcc2d[_0x40a374(0x19b)][_0x40a374(0x1e0)]({'id':_['id'],'params':{'unitId':_0x2c98e0[_0x40a374(0x27b)],'subUnitId':_0x2c98e0['subUnitId'],'shapeId':_0x32d306,'shapeType':_0x1fe345[_0x40a374(0x1c5)],'shapeData':t[_0x40a374(0x196)]['deepClone'](_0x1fe345[_0x40a374(0x1fe)]),'replace':!0x0}}),_0x5bcc2d[_0x40a374(0x237)]['push']({'id':_['id'],'params':{'unitId':_0x2c98e0[_0x40a374(0x27b)],'subUnitId':_0x2c98e0['subUnitId'],'shapeId':_0x32d306,'shapeType':_0x3d4365['getShapeType'](),'shapeData':t[_0x40a374(0x196)][_0x40a374(0x1dc)](_0x3d4365[_0x40a374(0x234)]()),'replace':!0x0}});}}[_0x3c1ee1(0x1cc)](_0x230898,_0x306fd7,_0x481a64){const _0x181ec6=_0x3c1ee1;if(_0x230898[_0x181ec6(0x211)][_0x181ec6(0x230)](_0x306fd7))return null;let _0x1fb54c=_0x230898[_0x181ec6(0x279)]['get'](_0x306fd7)??_0x230898[_0x181ec6(0x1e2)][_0x181ec6(0x271)](_0x306fd7);if(!_0x1fb54c)return null;let _0x412202=this[_0x181ec6(0x243)](_0x230898,_0x1fb54c);return _0x412202?(0x0,e[_0x181ec6(0x1af)])(_0x412202,_0x481a64):null;}['_toSnapshot'](_0x4a0eff,_0x156c0a){const _0xaf1f14=_0x3c1ee1;let _0x4e4281={'hostType':t[_0xaf1f14(0x202)]['UNIVER_SHEET'],'unitId':_0x4a0eff[_0xaf1f14(0x27b)],'subUnitId':_0x4a0eff[_0xaf1f14(0x18f)],'shapeId':_0x156c0a[_0xaf1f14(0x217)]},_0x27fe50=this[_0xaf1f14(0x1ac)][_0xaf1f14(0x213)](_0x4e4281);return!_0x27fe50||!_0x156c0a[_0xaf1f14(0x274)]?null:{..._0x27fe50,'transform':{'left':_0x156c0a[_0xaf1f14(0x274)][_0xaf1f14(0x19a)]??0x0,'top':_0x156c0a[_0xaf1f14(0x274)]['top']??0x0,'width':_0x156c0a[_0xaf1f14(0x274)][_0xaf1f14(0x204)]??0x0,'height':_0x156c0a[_0xaf1f14(0x274)][_0xaf1f14(0x1fa)]??0x0,'rotation':_0x156c0a[_0xaf1f14(0x274)][_0xaf1f14(0x1ef)]??0x0,'flipX':_0x156c0a[_0xaf1f14(0x274)]['flipX']??!0x1,'flipY':_0x156c0a[_0xaf1f14(0x274)][_0xaf1f14(0x192)]??!0x1}};}[_0x3c1ee1(0x259)](_0x210ad4,_0x96792f,_0x4582a0){const _0x1c6ef6=_0x3c1ee1;let _0x2d1248=_0x96792f,_0x42cb9d={..._0x96792f[_0x1c6ef6(0x274)],'left':_0x4582a0[_0x1c6ef6(0x274)][_0x1c6ef6(0x19a)],'top':_0x4582a0[_0x1c6ef6(0x274)][_0x1c6ef6(0x190)],'width':_0x4582a0[_0x1c6ef6(0x274)][_0x1c6ef6(0x204)],'height':_0x4582a0[_0x1c6ef6(0x274)]['height'],'angle':_0x4582a0[_0x1c6ef6(0x274)]['rotation'],'flipX':_0x4582a0[_0x1c6ef6(0x274)][_0x1c6ef6(0x20f)],'flipY':_0x4582a0[_0x1c6ef6(0x274)][_0x1c6ef6(0x192)]},_0x541236={..._0x2d1248,'transform':_0x42cb9d,'sheetTransform':(0x0,r[_0x1c6ef6(0x24f)])(_0x42cb9d,_0x210ad4[_0x1c6ef6(0x21c)]),'axisAlignSheetTransform':(0x0,r['transformToAxisAlignPosition'])(_0x42cb9d,_0x210ad4['skeleton']),'data':{..._0x2d1248[_0x1c6ef6(0x25d)],'shapeType':_0x4582a0['shapeType'],'shapeData':t[_0x1c6ef6(0x196)][_0x1c6ef6(0x1dc)](_0x4582a0['shapeData'])}};_0x210ad4[_0x1c6ef6(0x279)][_0x1c6ef6(0x23b)](_0x96792f[_0x1c6ef6(0x217)],_0x541236);}};j=f([d(0x0,(0x0,t[_0x3c1ee1(0x222)])(p)),d(0x1,(0x0,t[_0x3c1ee1(0x222)])(O)),d(0x2,(0x0,t[_0x3c1ee1(0x222)])(r[_0x3c1ee1(0x1ba)]))],j);let M=class extends t[_0x3c1ee1(0x1bd)]{constructor(_0x4ea064=k,_0x2c3106,_0x3c6bbd){const _0x2748ab=_0x3c1ee1;super(),this[_0x2748ab(0x1e3)]=_0x4ea064,this[_0x2748ab(0x1e9)]=_0x2c3106,this[_0x2748ab(0x262)]=_0x3c6bbd;let {..._0xb3f3c4}=(0x0,t['merge'])({},k,this[_0x2748ab(0x1e3)]);this[_0x2748ab(0x262)][_0x2748ab(0x254)](_0x2748ab(0x1da),_0xb3f3c4);}[_0x3c1ee1(0x223)](){const _0x4fd726=_0x3c1ee1;let _0x5b8fd2=this['_injector'];[[u],[p],[O],[j],[A]][_0x4fd726(0x1a7)](_0x362ea4=>_0x5b8fd2[_0x4fd726(0x193)](_0x362ea4)),(0x0,t[_0x4fd726(0x1b4)])(_0x5b8fd2,[[p],[j],[A]]);}};l(M,_0x3c1ee1(0x1f1),t[_0x3c1ee1(0x202)]['UNIVER_SHEET']),l(M,_0x3c1ee1(0x21f),'SHEET_SHAPE_PLUGIN'),l(M,_0x3c1ee1(0x23f),T),l(M,_0x3c1ee1(0x228),E),M=f([(0x0,t[_0x3c1ee1(0x206)])(i[_0x3c1ee1(0x1b5)],a[_0x3c1ee1(0x1c7)],e[_0x3c1ee1(0x266)],n['UniverSheetsPlugin'],r[_0x3c1ee1(0x245)]),d(0x1,(0x0,t[_0x3c1ee1(0x222)])(t[_0x3c1ee1(0x1fc)])),d(0x2,t[_0x3c1ee1(0x20e)])],M),exports[_0x3c1ee1(0x1f8)]=0xc8,exports[_0x3c1ee1(0x1e4)]=0xc8,exports['InsertShapeCommand']=g,exports[_0x3c1ee1(0x1e7)]=m,exports[_0x3c1ee1(0x1c6)]=h,exports[_0x3c1ee1(0x22c)]=v,exports['SetSheetsShapeRotateCommand']=b,exports[_0x3c1ee1(0x18a)]=x,Object[_0x3c1ee1(0x189)](exports,_0x3c1ee1(0x218),{'enumerable':!0x0,'get':function(){return p;}}),exports['ToggleSheetsShapeFlipCommand']=y,Object[_0x3c1ee1(0x189)](exports,_0x3c1ee1(0x194),{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x3c1ee1(0x186)]=S,exports['UpdateLineShapeResizeCommand']=C,exports[_0x3c1ee1(0x256)]=_,exports[_0x3c1ee1(0x1d6)]=w;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4240e1=_0x2a9d;(function(_0x4216cc,_0x470b97){const _0x8b070d=_0x2a9d,_0x30f8e7=_0x4216cc();while(!![]){try{const _0x4f6181=parseInt(_0x8b070d(0x167))/0x1*(-parseInt(_0x8b070d(0x16e))/0x2)+parseInt(_0x8b070d(0x15e))/0x3+-parseInt(_0x8b070d(0x161))/0x4+parseInt(_0x8b070d(0x159))/0x5*(-parseInt(_0x8b070d(0x175))/0x6)+-parseInt(_0x8b070d(0x157))/0x7*(parseInt(_0x8b070d(0x14b))/0x8)+parseInt(_0x8b070d(0x150))/0x9*(parseInt(_0x8b070d(0x171))/0xa)+parseInt(_0x8b070d(0x166))/0xb*(parseInt(_0x8b070d(0x15d))/0xc);if(_0x4f6181===_0x470b97)break;else _0x30f8e7['push'](_0x30f8e7['shift']());}catch(_0x16bdc3){_0x30f8e7['push'](_0x30f8e7['shift']());}}}(_0x2e13,0xc1bb8));import{IShapeHostAdapterRegistry as _0x37d171,isConnectorShape as _0x5e259e}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x257041,FShape as _0x177541}from'@univerjs-pro/engine-shape/facade';import{ICommandService as _0x171fb3,UniverInstanceType as _0x3d20fb}from'@univerjs/core';import{FWorksheet as _0x199174}from'@univerjs/sheets/facade';import{ISheetDrawingService as _0x1a13ef,SetSheetDrawingPlacementCommand as _0x134aac,SheetDrawingAnchorType as _0x491509,getSheetDrawingPlacement as _0x571f31}from'@univerjs/sheets-drawing';function _0x2e13(){const _0x4259ae=['setPlacement','extend','object','54GwZnZO','setPosition','length','2196800IDlGhc','subUnitId','\x22\x20was\x20not\x20found.','_injector','108QaWVEG','createInstance','UNIVER_SHEET','getDrawingByParam','shapeId','_createShapeHandle','listShapes','defineProperty','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','get','getShapes','_getShapeAdapter','112CiWYyR','height','_sheetDrawingService','syncExecuteCommand','getPlacement','27YpnCmW','warn','_shapeRef','getSheetId','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','function','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','515018fmZccE','shapeType','365385JQIVPm','getOwnPropertyDescriptor','getUnitId','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','744QmPzGB','1987344fNQhpH','decorate','width','1291536SpbVdz','_getShapeScope','transform','getShape','_commandService','560219RGNGVr','37676xjRhaz','createShape','unitId','Position'];_0x2e13=function(){return _0x4259ae;};return _0x2e13();}function d(_0x4fe6fc,_0xc6bced){return function(_0x2aa394,_0x3e10cc){_0xc6bced(_0x2aa394,_0x3e10cc,_0x4fe6fc);};}function f(_0x1a54ec,_0x5d3a0a,_0x265148,_0x58a0fc){const _0x11555f=_0x2a9d;var _0x49f81f=arguments['length'],_0xf0049c=_0x49f81f<0x3?_0x5d3a0a:_0x58a0fc===null?_0x58a0fc=Object[_0x11555f(0x15a)](_0x5d3a0a,_0x265148):_0x58a0fc,_0x1bb51b;if(typeof Reflect==_0x11555f(0x16d)&&typeof Reflect[_0x11555f(0x15f)]==_0x11555f(0x155))_0xf0049c=Reflect[_0x11555f(0x15f)](_0x1a54ec,_0x5d3a0a,_0x265148,_0x58a0fc);else{for(var _0xb75e50=_0x1a54ec[_0x11555f(0x170)]-0x1;_0xb75e50>=0x0;_0xb75e50--)(_0x1bb51b=_0x1a54ec[_0xb75e50])&&(_0xf0049c=(_0x49f81f<0x3?_0x1bb51b(_0xf0049c):_0x49f81f>0x3?_0x1bb51b(_0x5d3a0a,_0x265148,_0xf0049c):_0x1bb51b(_0x5d3a0a,_0x265148))||_0xf0049c);}return _0x49f81f>0x3&&_0xf0049c&&Object[_0x11555f(0x17c)](_0x5d3a0a,_0x265148,_0xf0049c),_0xf0049c;}let p=class extends _0x177541{constructor(_0x5dc5ee,_0x92c065,_0x3e64b5,_0xfa4932,_0x55094d){const _0x5f04d4=_0x2a9d;super(_0x5dc5ee,_0x92c065,_0x3e64b5,_0xfa4932),this[_0x5f04d4(0x14d)]=_0x55094d;}[_0x4240e1(0x14f)](){const _0x3ea983=_0x4240e1;let _0xd0a696=this[_0x3ea983(0x14d)]['getDrawingByParam']({'unitId':this[_0x3ea983(0x152)][_0x3ea983(0x169)],'subUnitId':this['_shapeRef'][_0x3ea983(0x172)],'drawingId':this[_0x3ea983(0x152)][_0x3ea983(0x179)]});return _0xd0a696?_0x571f31(_0xd0a696):null;}[_0x4240e1(0x16b)](_0x1cf2b3){const _0x286f98=_0x4240e1;return this[_0x286f98(0x165)][_0x286f98(0x14e)](_0x134aac['id'],{'unitId':this['_shapeRef'][_0x286f98(0x169)],'subUnitId':this['_shapeRef'][_0x286f98(0x172)],'drawings':[{'drawingId':this[_0x286f98(0x152)][_0x286f98(0x179)],'placement':_0x1cf2b3}]});}[_0x4240e1(0x16f)](_0x3326b2,_0x527d4d,_0x5be42f,_0x5efb74){const _0x14cbfe=_0x4240e1;var _0x26c6a7,_0x41500e;let _0x5a97b4=this[_0x14cbfe(0x14d)][_0x14cbfe(0x178)]({'unitId':this[_0x14cbfe(0x152)][_0x14cbfe(0x169)],'subUnitId':this[_0x14cbfe(0x152)][_0x14cbfe(0x172)],'drawingId':this[_0x14cbfe(0x152)][_0x14cbfe(0x179)]});if(!_0x5a97b4)return console[_0x14cbfe(0x151)](_0x14cbfe(0x156)+this['_shapeRef'][_0x14cbfe(0x179)]+_0x14cbfe(0x173)),this;let _0x35c65a=(_0x26c6a7=_0x5a97b4['transform'])==null?void 0x0:_0x26c6a7[_0x14cbfe(0x160)],_0x3f8330=(_0x41500e=_0x5a97b4[_0x14cbfe(0x163)])==null?void 0x0:_0x41500e[_0x14cbfe(0x14c)];return _0x35c65a==null||_0x3f8330==null?(console[_0x14cbfe(0x151)](_0x14cbfe(0x156)+this[_0x14cbfe(0x152)][_0x14cbfe(0x179)]+'\x22\x20has\x20no\x20transform\x20extent.'),this):(this[_0x14cbfe(0x165)]['syncExecuteCommand'](_0x134aac['id'],{'unitId':this[_0x14cbfe(0x152)][_0x14cbfe(0x169)],'subUnitId':this[_0x14cbfe(0x152)][_0x14cbfe(0x172)],'drawings':[{'drawingId':this[_0x14cbfe(0x152)][_0x14cbfe(0x179)],'placement':{'kind':_0x491509[_0x14cbfe(0x16a)],'from':{'row':_0x3326b2,'column':_0x527d4d,'rowOffset':_0x5be42f,'columnOffset':_0x5efb74},'width':_0x35c65a,'height':_0x3f8330}}]}),this);}};function _0x2a9d(_0x2657c5,_0x511b3a){_0x2657c5=_0x2657c5-0x14a;const _0x2e1391=_0x2e13();let _0x2a9d47=_0x2e1391[_0x2657c5];return _0x2a9d47;}p=f([d(0x2,_0x37d171),d(0x3,_0x171fb3),d(0x4,_0x1a13ef)],p);var m=class extends _0x199174{['insertShape'](_0x2e651d){const _0xc92a97=_0x4240e1;let _0x55502e=this['_getShapeAdapter']();if(!_0x55502e)return null;try{let _0x2e7c1f=_0x55502e[_0xc92a97(0x168)](this[_0xc92a97(0x162)](),_0x2e651d);return _0x2e7c1f?this[_0xc92a97(0x17a)](_0x2e7c1f):(console['warn']('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.'),null);}catch(_0x3d3393){return console[_0xc92a97(0x151)](_0xc92a97(0x17d),_0x3d3393),null;}}[_0x4240e1(0x164)](_0x3866a9){const _0x56f0d4=_0x4240e1;let _0x265706=this[_0x56f0d4(0x14a)]();if(!_0x265706)return null;try{let _0x44b3f5={...this[_0x56f0d4(0x162)](),'shapeId':_0x3866a9},_0x59994d=_0x265706[_0x56f0d4(0x164)](_0x44b3f5);return _0x59994d?this['_createShapeHandle'](_0x59994d):(console[_0x56f0d4(0x151)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+_0x3866a9+_0x56f0d4(0x173)),null);}catch(_0x5c0979){return console[_0x56f0d4(0x151)](_0x56f0d4(0x15c)+_0x3866a9+'\x22.',_0x5c0979),null;}}[_0x4240e1(0x17f)](){const _0x508916=_0x4240e1;let _0x5c8fb7=this[_0x508916(0x14a)]();if(!_0x5c8fb7)return[];try{return _0x5c8fb7[_0x508916(0x17b)](this[_0x508916(0x162)]())['map'](_0x3e00a9=>this['_createShapeHandle'](_0x3e00a9));}catch(_0x1cbd1f){return console[_0x508916(0x151)](_0x508916(0x154),_0x1cbd1f),[];}}[_0x4240e1(0x162)](){const _0x50aaca=_0x4240e1;return{'hostType':_0x3d20fb[_0x50aaca(0x177)],'unitId':this['getWorkbook']()[_0x50aaca(0x15b)](),'subUnitId':this[_0x50aaca(0x153)]()};}[_0x4240e1(0x14a)](){const _0xe8b722=_0x4240e1;return this[_0xe8b722(0x174)]['get'](_0x37d171)[_0xe8b722(0x17e)](_0x3d20fb[_0xe8b722(0x177)]);}[_0x4240e1(0x17a)](_0x55e1b9){const _0xd8454=_0x4240e1;let {unitId:_0x342773,subUnitId:_0x2c4140,shapeId:_0x2aa16b}=_0x55e1b9,_0x63c0ef={'unitId':_0x342773,'subUnitId':_0x2c4140,'shapeId':_0x2aa16b,'hostType':_0x3d20fb['UNIVER_SHEET']};return _0x5e259e(_0x55e1b9[_0xd8454(0x158)])?this[_0xd8454(0x174)][_0xd8454(0x176)](_0x257041,_0x63c0ef,this['_injector']):this[_0xd8454(0x174)][_0xd8454(0x176)](p,_0x63c0ef,this[_0xd8454(0x174)]);}};_0x199174[_0x4240e1(0x16c)](m);export{p as FSheetShape};
|