@univerjs-pro/sheets-shape 0.20.1 → 0.21.0-insiders.20260422-d7fcb4d
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/types/commands/command/set-shape-text-vertical-toggle.command.d.ts +6 -0
- package/lib/types/common/types.d.ts +2 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3b1a(_0x135d48,_0x569f33){_0x135d48=_0x135d48-0xe4;const _0x2dc395=_0x2dc3();let _0x3b1a13=_0x2dc395[_0x135d48];return _0x3b1a13;}(function(_0x3b76ee,_0x85b584){const _0xed9998=_0x3b1a,_0x54b66f=_0x3b76ee();while(!![]){try{const _0x357017=parseInt(_0xed9998(0xf1))/0x1+parseInt(_0xed9998(0x137))/0x2*(-parseInt(_0xed9998(0x146))/0x3)+-parseInt(_0xed9998(0x118))/0x4+parseInt(_0xed9998(0x155))/0x5*(parseInt(_0xed9998(0x1a4))/0x6)+parseInt(_0xed9998(0x151))/0x7+-parseInt(_0xed9998(0x102))/0x8+-parseInt(_0xed9998(0x14d))/0x9;if(_0x357017===_0x85b584)break;else _0x54b66f['push'](_0x54b66f['shift']());}catch(_0x21fa6c){_0x54b66f['push'](_0x54b66f['shift']());}}}(_0x2dc3,0xe37c8),function(_0x4b4f23,_0x41ff25){const _0x56f1bd=_0x3b1a;typeof exports==_0x56f1bd(0x19b)&&typeof module<'u'?_0x41ff25(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define=='function'&&define[_0x56f1bd(0x1b3)]?define([_0x56f1bd(0x171),_0x56f1bd(0x135),'@univerjs/core',_0x56f1bd(0x11b),'@univerjs/sheets-drawing','@univerjs-pro/license','@univerjs/drawing'],_0x41ff25):(_0x4b4f23=typeof globalThis<'u'?globalThis:_0x4b4f23||self,_0x41ff25(_0x4b4f23[_0x56f1bd(0x16c)]={},_0x4b4f23[_0x56f1bd(0x189)],_0x4b4f23[_0x56f1bd(0x136)],_0x4b4f23[_0x56f1bd(0x10b)],_0x4b4f23[_0x56f1bd(0x129)],_0x4b4f23[_0x56f1bd(0xfb)],_0x4b4f23['UniverDrawing']));}(this,function(_0xf62811,_0x35954e,_0x6d5cfa,_0x34f13c,_0x58b074,_0x22bc7c,_0x5c4be5){const _0x1219e9=_0x3b1a;Object['defineProperty'](_0xf62811,Symbol[_0x1219e9(0x1ab)],{'value':_0x1219e9(0x177)});function _0x53dd38(_0x44576d){'@babel/helpers - typeof';const _0xd30030=_0x1219e9;return _0x53dd38=typeof Symbol=='function'&&typeof Symbol[_0xd30030(0x114)]==_0xd30030(0x19d)?function(_0x4d1bd7){return typeof _0x4d1bd7;}:function(_0x564b1c){const _0x98f664=_0xd30030;return _0x564b1c&&typeof Symbol==_0x98f664(0x18b)&&_0x564b1c[_0x98f664(0x104)]===Symbol&&_0x564b1c!==Symbol[_0x98f664(0xf3)]?_0x98f664(0x19d):typeof _0x564b1c;},_0x53dd38(_0x44576d);}function _0x46fc11(_0x27ff14,_0x12bef7){const _0x95709f=_0x1219e9;if(_0x53dd38(_0x27ff14)!='object'||!_0x27ff14)return _0x27ff14;var _0x470f91=_0x27ff14[Symbol[_0x95709f(0x15b)]];if(_0x470f91!==void 0x0){var _0x2d325a=_0x470f91[_0x95709f(0x11c)](_0x27ff14,_0x12bef7||_0x95709f(0x196));if(_0x53dd38(_0x2d325a)!='object')return _0x2d325a;throw TypeError(_0x95709f(0x115));}return(_0x12bef7===_0x95709f(0x13c)?String:Number)(_0x27ff14);}function _0x3e9b02(_0x1b1532){const _0x1b957f=_0x1219e9;var _0x23e863=_0x46fc11(_0x1b1532,_0x1b957f(0x13c));return _0x53dd38(_0x23e863)==_0x1b957f(0x19d)?_0x23e863:_0x23e863+'';}function _0x10ded4(_0x2d0c7f,_0x4f0fb3,_0x1c936d){const _0x200920=_0x1219e9;return(_0x4f0fb3=_0x3e9b02(_0x4f0fb3))in _0x2d0c7f?Object[_0x200920(0x15a)](_0x2d0c7f,_0x4f0fb3,{'value':_0x1c936d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d0c7f[_0x4f0fb3]=_0x1c936d,_0x2d0c7f;}var _0x77a927=class extends _0x6d5cfa[_0x1219e9(0x16f)]{constructor(){const _0x40bbea=_0x1219e9;super(),_0x10ded4(this,_0x40bbea(0x13e),new Map()),_0x10ded4(this,_0x40bbea(0x154),new Set()),_0x10ded4(this,'_groupIds',new Set());}['addShape'](_0x519552,_0x48faa1,_0x479d3e){const _0x570bc2=_0x1219e9;let _0xc8bf14=new _0x35954e[(_0x570bc2(0xec))](_0x519552,_0x48faa1,_0x479d3e);return this[_0x570bc2(0x13e)][_0x570bc2(0x16d)](_0x48faa1,_0xc8bf14),(0x0,_0x35954e[_0x570bc2(0x110)])(_0x519552)&&this[_0x570bc2(0x154)][_0x570bc2(0xe8)](_0x48faa1),_0xc8bf14;}[_0x1219e9(0xf6)](_0x29cc27){const _0x59c50f=_0x1219e9;let _0x2f2893=[];for(let _0x1b9804 of this[_0x59c50f(0x154)]){let _0x41b541=this['_shapes'][_0x59c50f(0x1a7)](_0x1b9804);if(_0x41b541){let _0xbdafa1=_0x41b541[_0x59c50f(0x158)]();if(_0xbdafa1){var _0x207931,_0x24cabb;((_0x207931=_0xbdafa1[_0x59c50f(0x14c)])==null?void 0x0:_0x207931['shapeId'])===_0x29cc27&&_0x2f2893[_0x59c50f(0xfe)]({..._0xbdafa1[_0x59c50f(0x14c)],'lineShapeId':_0x1b9804,'isFrom':!0x0}),((_0x24cabb=_0xbdafa1['to'])==null?void 0x0:_0x24cabb[_0x59c50f(0x162)])===_0x29cc27&&_0x2f2893[_0x59c50f(0xfe)]({..._0xbdafa1['to'],'lineShapeId':_0x1b9804,'isFrom':!0x1});}}}return _0x2f2893;}[_0x1219e9(0x17a)](_0x3ff418){const _0x69bb9b=_0x1219e9;let _0x218700=this[_0x69bb9b(0x13e)][_0x69bb9b(0x1a7)](_0x3ff418);if(_0x218700)return _0x218700[_0x69bb9b(0x158)]();}[_0x1219e9(0x128)](_0x305f38){const _0x384cd5=_0x1219e9;let _0x2b869b=this[_0x384cd5(0x13e)][_0x384cd5(0x1a7)](_0x305f38);if(_0x2b869b)return _0x2b869b[_0x384cd5(0x128)]();}[_0x1219e9(0x1b1)](_0x4850d9){const _0x2ffb45=_0x1219e9;return this['_shapes'][_0x2ffb45(0x174)](_0x4850d9);}[_0x1219e9(0x116)](_0x2e4e59){const _0x21a96c=_0x1219e9;let _0x1268f6=this[_0x21a96c(0x13e)][_0x21a96c(0x1a7)](_0x2e4e59);_0x1268f6&&((0x0,_0x35954e[_0x21a96c(0x110)])(_0x1268f6[_0x21a96c(0x128)]())&&this['_linesIds'][_0x21a96c(0xf9)](_0x2e4e59),this['_shapes'][_0x21a96c(0xf9)](_0x2e4e59));}['toJSON'](){const _0x2f929c=_0x1219e9;let _0x3c1ed7=[];return this[_0x2f929c(0x13e)][_0x2f929c(0x18a)](_0x35fb76=>{const _0x1fc6da=_0x2f929c;_0x3c1ed7[_0x1fc6da(0xfe)](_0x35fb76['toJSON']());}),_0x3c1ed7;}['fromJSON'](_0x1d08ab){const _0x22e5d9=_0x1219e9;for(let _0x5a4c1e of _0x1d08ab){let {id:_0xd079fd,shapeType:_0x94a815}=_0x5a4c1e,_0x2eeca9=this[_0x22e5d9(0xf0)](_0x94a815,_0xd079fd,_0x5a4c1e[_0x22e5d9(0xe4)]);_0x2eeca9&&_0x2eeca9[_0x22e5d9(0x1a9)]()&&this[_0x22e5d9(0x154)]['add'](_0xd079fd);}}[_0x1219e9(0x140)](){const _0x10b053=_0x1219e9;this[_0x10b053(0x107)]||(this[_0x10b053(0x13e)][_0x10b053(0x18a)](_0x4bb1cc=>{const _0x3603db=_0x10b053;_0x4bb1cc[_0x3603db(0x140)]();}),this['_shapes'][_0x10b053(0x10c)](),this[_0x10b053(0x154)][_0x10b053(0x10c)](),this[_0x10b053(0x134)][_0x10b053(0x10c)](),super[_0x10b053(0x140)]());}};function _0x77879f(_0x238dd0,_0x126f23){return function(_0x1c0945,_0x20f6bc){_0x126f23(_0x1c0945,_0x20f6bc,_0x238dd0);};}function _0x216e33(_0x28af58,_0x58fc9f,_0x179c5d,_0x4d5cdd){const _0x1211bf=_0x1219e9;var _0x10d79=arguments[_0x1211bf(0x184)],_0x5c9645=_0x10d79<0x3?_0x58fc9f:_0x4d5cdd===null?_0x4d5cdd=Object[_0x1211bf(0x165)](_0x58fc9f,_0x179c5d):_0x4d5cdd,_0x4b9b33;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1211bf(0x18b))_0x5c9645=Reflect[_0x1211bf(0x199)](_0x28af58,_0x58fc9f,_0x179c5d,_0x4d5cdd);else{for(var _0x2380e4=_0x28af58[_0x1211bf(0x184)]-0x1;_0x2380e4>=0x0;_0x2380e4--)(_0x4b9b33=_0x28af58[_0x2380e4])&&(_0x5c9645=(_0x10d79<0x3?_0x4b9b33(_0x5c9645):_0x10d79>0x3?_0x4b9b33(_0x58fc9f,_0x179c5d,_0x5c9645):_0x4b9b33(_0x58fc9f,_0x179c5d))||_0x5c9645);}return _0x10d79>0x3&&_0x5c9645&&Object[_0x1211bf(0x15a)](_0x58fc9f,_0x179c5d,_0x5c9645),_0x5c9645;}let _0xeca84=class extends _0x6d5cfa[_0x1219e9(0x16f)]{constructor(_0x3192aa){const _0x403916=_0x1219e9;super(),this[_0x403916(0x175)]=_0x3192aa,_0x10ded4(this,_0x403916(0x131),new Map()),this[_0x403916(0x159)]();}[_0x1219e9(0x157)](_0x2b7136,_0x3a484a){const _0x213715=_0x1219e9;let _0x1369e6=this['_shapeModelManagerMap'][_0x213715(0x1a7)](_0x2b7136);_0x1369e6||(_0x1369e6=new Map(),this[_0x213715(0x131)][_0x213715(0x16d)](_0x2b7136,_0x1369e6));let _0x25d90d=_0x1369e6[_0x213715(0x1a7)](_0x3a484a);return _0x25d90d||(_0x25d90d=new _0x77a927(),_0x1369e6[_0x213715(0x16d)](_0x3a484a,_0x25d90d)),_0x25d90d;}['insertShape'](_0x341ad2,_0x523efa,_0x1e4bda,_0x575baa,_0x34ffc2){const _0x51dac8=_0x1219e9;this[_0x51dac8(0x157)](_0x341ad2,_0x523efa)[_0x51dac8(0xf0)](_0x1e4bda,_0x575baa,_0x34ffc2);}['removeShape'](_0x383d74,_0x1cf909,_0x5f2ff0){const _0x30b3bc=_0x1219e9;this[_0x30b3bc(0x157)](_0x383d74,_0x1cf909)['removeShape'](_0x5f2ff0);}[_0x1219e9(0x1b4)](_0x1f3149,_0x376092,_0x51281f){const _0x193e7f=_0x1219e9;return this['_ensureShapeModelManager'](_0x1f3149,_0x376092)[_0x193e7f(0x128)](_0x51281f);}[_0x1219e9(0x128)](_0x35235f,_0x39c13b,_0x254999){const _0x107ae2=_0x1219e9;return this[_0x107ae2(0x157)](_0x35235f,_0x39c13b)[_0x107ae2(0x128)](_0x254999);}[_0x1219e9(0x1b1)](_0x59c896,_0x131d97,_0x21fb3c){const _0x296c0a=_0x1219e9;return this[_0x296c0a(0x157)](_0x59c896,_0x131d97)['hasShape'](_0x21fb3c);}[_0x1219e9(0x197)](_0x3887df,_0x5fcfdf,_0x5c023d){const _0x24a045=_0x1219e9;return this[_0x24a045(0x157)](_0x3887df,_0x5fcfdf)['getShapeType'](_0x5c023d);}[_0x1219e9(0x17d)](_0x50a729,_0x18ee7d,_0x3ed6da){const _0x5c5a25=_0x1219e9;let _0x3d80b1=this[_0x5c5a25(0x157)](_0x50a729,_0x18ee7d);if(!_0x3d80b1[_0x5c5a25(0x128)](_0x3ed6da))return;let _0x517de9=_0x3d80b1[_0x5c5a25(0x13e)][_0x5c5a25(0x1a7)](_0x3ed6da);if(_0x517de9)return _0x517de9[_0x5c5a25(0x156)]();}[_0x1219e9(0x145)](_0x4fe02a,_0x7a74ee,_0x3f6a87){const _0x1dcd35=_0x1219e9;return this[_0x1dcd35(0x157)](_0x4fe02a,_0x7a74ee)[_0x1dcd35(0x13e)][_0x1dcd35(0x1a7)](_0x3f6a87);}[_0x1219e9(0xf6)](_0x5f018e,_0x5a08db,_0x36fda7){const _0xe9bfa2=_0x1219e9;return this[_0xe9bfa2(0x157)](_0x5f018e,_0x5a08db)[_0xe9bfa2(0xf6)](_0x36fda7);}[_0x1219e9(0x17a)](_0x1d2c2f,_0x1eccea,_0x13739c){const _0x4eb9a3=_0x1219e9;let _0x3189df=this[_0x4eb9a3(0x157)](_0x1d2c2f,_0x1eccea)[_0x4eb9a3(0x13e)]['get'](_0x13739c);if(_0x3189df)return _0x3189df['getShapeRelation']();}[_0x1219e9(0x19e)](){}[_0x1219e9(0x181)](_0x28f586){const _0xbe9d0c=_0x1219e9;let _0x555799={},_0x482608=this[_0xbe9d0c(0x131)][_0xbe9d0c(0x1a7)](_0x28f586);return _0x482608&&_0x482608[_0xbe9d0c(0x18a)]((_0x544d2d,_0x44e05e)=>{const _0x12801a=_0xbe9d0c;let _0x263580=_0x544d2d[_0x12801a(0x148)]();_0x263580[_0x12801a(0x184)]>0x0&&(_0x555799[_0x44e05e]=_0x263580);}),JSON[_0xbe9d0c(0x121)](_0x555799);}['_deserializeShapeForUnit'](_0x3dda11,_0x3bfe18){const _0xfeac80=_0x1219e9;Object['keys'](_0x3bfe18)[_0xfeac80(0x18a)](_0x3074a4=>{const _0x258671=_0xfeac80;this[_0x258671(0x157)](_0x3dda11,_0x3074a4)[_0x258671(0x17e)](_0x3bfe18[_0x3074a4]);});}[_0x1219e9(0x148)](){const _0x105b1b=_0x1219e9;let _0x7e47a5={};return this[_0x105b1b(0x131)]['forEach']((_0x2aeda6,_0x560f19)=>{const _0x4d8a44=_0x105b1b;_0x7e47a5[_0x560f19]={},_0x2aeda6[_0x4d8a44(0x18a)]((_0x182945,_0x2eea6e)=>{const _0x40b02f=_0x4d8a44;_0x7e47a5[_0x560f19][_0x2eea6e]=_0x182945[_0x40b02f(0x148)]();});}),_0x7e47a5;}[_0x1219e9(0x17e)](_0x5e494f){const _0x11b6b3=_0x1219e9;Object['keys'](_0x5e494f)[_0x11b6b3(0x18a)](_0x24c9d6=>{const _0x409396=_0x11b6b3;let _0x283872=_0x5e494f[_0x24c9d6];Object[_0x409396(0x1b5)](_0x283872)[_0x409396(0x18a)](_0x2e3a58=>{const _0x460bef=_0x409396;this[_0x460bef(0x157)](_0x24c9d6,_0x2e3a58)[_0x460bef(0x17e)](_0x283872[_0x2e3a58]);});});}[_0x1219e9(0x159)](){const _0x56f710=_0x1219e9;this['_resourcesManagerService'][_0x56f710(0x10e)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x6d5cfa[_0x56f710(0x170)][_0x56f710(0xea)]],'toJson':_0x54119a=>this['_serializeShapeForUnit'](_0x54119a),'parseJson':_0x5df233=>JSON['parse'](_0x5df233),'onLoad':(_0x1b5ec5,_0x42a58b)=>{const _0x30a9ad=_0x56f710;this[_0x30a9ad(0x172)](_0x1b5ec5,_0x42a58b);},'onUnLoad':_0x32b064=>{const _0x4f7bf1=_0x56f710;let _0x36bf38=this[_0x4f7bf1(0x131)][_0x4f7bf1(0x1a7)](_0x32b064);_0x36bf38&&(_0x36bf38[_0x4f7bf1(0x18a)](_0x2799ec=>{_0x2799ec['dispose']();}),this[_0x4f7bf1(0x131)][_0x4f7bf1(0xf9)](_0x32b064));}});}[_0x1219e9(0x140)](){this['_shapeModelManagerMap']['forEach'](_0x5c9a8f=>{const _0x1f21ce=_0x3b1a;_0x5c9a8f[_0x1f21ce(0x18a)](_0xb65b17=>{const _0x1a122e=_0x1f21ce;_0xb65b17[_0x1a122e(0x140)]();});});}};_0xeca84=_0x216e33([_0x77879f(0x0,_0x6d5cfa['IResourceManagerService'])],_0xeca84);let _0x4c12a4={'id':_0x1219e9(0x18f),'type':_0x6d5cfa['CommandType'][_0x1219e9(0x191)],'handler':(_0x114071,_0x3271bd)=>{const _0x2b734c=_0x1219e9;let {unitId:_0x51b6e4,subUnitId:_0xe78f00,shapeType:_0x2f15a0,shapeId:_0x3d0f47,shapeData:_0x5d9bfb}=_0x3271bd;return _0x114071[_0x2b734c(0x1a7)](_0xeca84)[_0x2b734c(0xf7)](_0x51b6e4,_0xe78f00,_0x2f15a0,_0x3d0f47,_0x5d9bfb),!0x0;}},_0x35f76c={'id':'sheet.mutation.remove-shape','type':_0x6d5cfa[_0x1219e9(0x168)][_0x1219e9(0x191)],'handler':(_0xa4700b,_0xf2684c)=>{const _0x17dd5a=_0x1219e9;let {unitId:_0x5d7b2c,subUnitId:_0x270ad3,shapeId:_0x2c8c1c}=_0xf2684c;return _0xa4700b[_0x17dd5a(0x1a7)](_0xeca84)[_0x17dd5a(0x116)](_0x5d7b2c,_0x270ad3,_0x2c8c1c),!0x0;}},_0x566d8a={'type':_0x6d5cfa[_0x1219e9(0x168)][_0x1219e9(0x164)],'id':'sheet.command.insert-shape','handler':(_0x4bec4f,_0x2a312e)=>{const _0x1184bf=_0x1219e9;var _0x2bc294,_0x4f59d2;let _0x9ac575=(0x0,_0x34f13c[_0x1184bf(0x127)])(_0x4bec4f['get'](_0x6d5cfa['IUniverInstanceService']),_0x2a312e);if(!_0x9ac575)return!0x1;let _0xa52135=_0x4bec4f[_0x1184bf(0x1a7)](_0x34f13c['SheetSkeletonService']),{unitId:_0x5e7d5e,subUnitId:_0x2d335f}=_0x9ac575,_0x42b6e4=_0xa52135['ensureSkeleton'](_0x5e7d5e,_0x2d335f);if(!_0x42b6e4)return!0x1;let _0xa95048=_0x4bec4f['get'](_0x6d5cfa['ICommandService']),_0x4d92a8=_0x4bec4f[_0x1184bf(0x1a7)](_0x6d5cfa['IUndoRedoService']),_0x484985=_0x4bec4f[_0x1184bf(0x1a7)](_0x34f13c['SheetInterceptorService']),_0x57782b=_0x4bec4f['get'](_0x58b074[_0x1184bf(0xe5)]),{shapeType:_0x4b0364,shapeData:_0x45776c}=_0x2a312e,_0x2adfd2=_0x2a312e[_0x1184bf(0x162)]||(0x0,_0x6d5cfa['generateRandomId'])(),_0x33cf7b={'unitId':_0x5e7d5e,'subUnitId':_0x2d335f,'shapeId':_0x2adfd2,'shapeType':_0x4b0364,'shapeData':_0x45776c},_0x378640=_0x2a312e['width']||0xc8,_0x421ba8=_0x2a312e['height']||0xc8,_0x1cd03a=0x0,_0x4dd1ec=0x0,_0x294611={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x120b31={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x2a312e[_0x1184bf(0x106)]){let {x:_0x4a38c5,y:_0x57fdb8}=_0x2a312e[_0x1184bf(0x106)];_0x1cd03a=_0x4a38c5,_0x4dd1ec=_0x57fdb8,_0x294611=_0x42b6e4['getCellIndexAndOffsetByPosition'](_0x4a38c5,_0x57fdb8),_0x120b31=_0x42b6e4[_0x1184bf(0x192)](_0x4a38c5+_0x378640,_0x57fdb8+_0x421ba8);}else{if(_0x2a312e[_0x1184bf(0xf5)]){let {startRow:_0x14dbab,startColumn:_0x3e1fbe}=_0x2a312e[_0x1184bf(0xf5)];_0x294611={'row':_0x14dbab,'rowOffset':0xa,'column':_0x3e1fbe,'columnOffset':0xa};let _0x22a00c=_0x42b6e4[_0x1184bf(0x178)](_0x14dbab,_0x3e1fbe);_0x1cd03a=_0x22a00c[_0x1184bf(0x12e)]+0xa,_0x4dd1ec=_0x22a00c['startY']+0xa,_0x120b31=_0x42b6e4[_0x1184bf(0x192)](_0x1cd03a+_0x378640,_0x4dd1ec+_0x421ba8);}}let _0x6c40d5={'from':_0x294611,'to':_0x120b31},_0x143592={'unitId':_0x5e7d5e,'subUnitId':_0x2d335f,'drawingId':_0x2adfd2,'drawingType':_0x6d5cfa[_0x1184bf(0x153)][_0x1184bf(0x132)],'sheetTransform':_0x6c40d5,'transform':{'left':_0x1cd03a,'top':_0x4dd1ec,'width':_0x378640,'height':_0x421ba8},'data':{'shapeType':_0x4b0364,'shapeData':_0x45776c},'axisAlignSheetTransform':_0x6c40d5,'allowTransform':!0x0};(0x0,_0x35954e[_0x1184bf(0x110)])(_0x4b0364)&&(_0x143592[_0x1184bf(0x176)][_0x1184bf(0x18c)]=!0x1,_0x143592['data'][_0x1184bf(0x163)]=!0x1,_0x143592['data']['resizeEnabled']=!0x1,_0x143592[_0x1184bf(0x176)][_0x1184bf(0x1b0)]=!0x1,_0x143592[_0x1184bf(0x150)][_0x1184bf(0x163)]=!0x1,_0x143592[_0x1184bf(0x150)][_0x1184bf(0x130)]=!0x1,_0x143592[_0x1184bf(0x150)][_0x1184bf(0x1b0)]=!0x1);let {undo:_0x58b841,redo:_0x13f76b,objects:_0x204a55}=_0x57782b[_0x1184bf(0x195)]([_0x143592]),_0x2dde71=_0x484985[_0x1184bf(0x1a0)]({'id':_0x58b074[_0x1184bf(0x13d)]['id'],'params':{'unitId':_0x5e7d5e,'drawings':[_0x143592]}}),_0x8bd328=[...(_0x2bc294=_0x2dde71[_0x1184bf(0x15c)])==null?[]:_0x2bc294,{'id':_0x58b074[_0x1184bf(0xf8)]['id'],'params':{'unitId':_0x5e7d5e,'subUnitId':_0x2d335f,'op':_0x13f76b,'objects':_0x204a55,'type':_0x58b074[_0x1184bf(0x194)][_0x1184bf(0xfc)]}},{'id':_0x58b074[_0x1184bf(0x1a5)]['id'],'params':[_0x5e7d5e]},..._0x2dde71[_0x1184bf(0x1b6)],{'id':_0x4c12a4['id'],'params':_0x33cf7b}],_0x2ddfe1=[{'id':_0x35f76c['id'],'params':{'unitId':_0x5e7d5e,'subUnitId':_0x2d335f,'shapeId':_0x2adfd2}},...(_0x4f59d2=_0x2dde71[_0x1184bf(0x108)])==null?[]:_0x4f59d2,{'id':_0x58b074[_0x1184bf(0xf8)]['id'],'params':{'unitId':_0x5e7d5e,'subUnitId':_0x2d335f,'op':_0x58b841,'objects':_0x204a55,'type':_0x58b074[_0x1184bf(0x194)][_0x1184bf(0x18d)]}},{'id':_0x58b074['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5e7d5e]},..._0x2dde71[_0x1184bf(0xeb)]];return(0x0,_0x6d5cfa['sequenceExecute'])(_0x8bd328,_0xa95048)?(_0x4d92a8['pushUndoRedo']({'unitID':_0x5e7d5e,'undoMutations':_0x2ddfe1,'redoMutations':_0x8bd328}),!0x0):!0x1;}},_0xb457c9={'id':_0x1219e9(0x13b),'type':_0x6d5cfa[_0x1219e9(0x168)][_0x1219e9(0x191)],'handler':(_0x317c49,_0x1bc4f2)=>{const _0xbd094b=_0x1219e9;let {unitId:_0x39bf2d,subUnitId:_0x32f042,shapeType:_0x178566,shapeId:_0x34ebfa,shapeData:_0x143d0f}=_0x1bc4f2,_0x30fc1e=_0x317c49['get'](_0xeca84)[_0xbd094b(0x145)](_0x39bf2d,_0x32f042,_0x34ebfa);return _0x30fc1e&&(_0x178566!==void 0x0&&_0x30fc1e[_0xbd094b(0x19e)](_0x178566),_0x143d0f&&(_0x30fc1e==null||_0x30fc1e[_0xbd094b(0xf4)](_0x143d0f,!0x0))),!0x0;}},_0x4f68c1={'type':_0x6d5cfa['CommandType']['COMMAND'],'id':_0x1219e9(0x12f),'handler':(_0x579803,_0x552d7f)=>{const _0x17b3de=_0x1219e9;var _0x4e612e,_0x19e8d4;let _0x61887e=(0x0,_0x34f13c[_0x17b3de(0x127)])(_0x579803[_0x17b3de(0x1a7)](_0x6d5cfa['IUniverInstanceService']),_0x552d7f);if(!_0x61887e)return!0x1;let _0x150c89=_0x579803[_0x17b3de(0x1a7)](_0x34f13c[_0x17b3de(0x12b)]),{unitId:_0x1d9550,subUnitId:_0x5a3c1b}=_0x61887e,_0x3fbfb0=_0x150c89['ensureSkeleton'](_0x1d9550,_0x5a3c1b);if(!_0x3fbfb0)return!0x1;let _0x408fc0=_0x579803['get'](_0xeca84),{shapeId:_0x480fb7,shapeType:_0x277569,shapeData:_0x70f3f7,position:_0x431bdd,width:_0xf2db9f,height:_0x396948}=_0x552d7f,_0x504421=_0x408fc0['getShapeModel'](_0x1d9550,_0x5a3c1b,_0x480fb7);if(!_0x504421)return!0x1;let _0x207125=_0x579803[_0x17b3de(0x1a7)](_0x6d5cfa[_0x17b3de(0x19f)]),_0x335f21=_0x579803[_0x17b3de(0x1a7)](_0x6d5cfa[_0x17b3de(0x12d)]),_0xc9abb2=_0x579803[_0x17b3de(0x1a7)](_0x34f13c[_0x17b3de(0x141)]),_0x4130d0=_0x579803[_0x17b3de(0x1a7)](_0x58b074[_0x17b3de(0xe5)]),_0x2ab437={'unitId':_0x1d9550,'subUnitId':_0x5a3c1b,'shapeId':_0x480fb7,'shapeType':_0x277569,'shapeData':_0x70f3f7},_0x35a543=_0x504421['getShapeType'](),_0x3befc3=_0x504421[_0x17b3de(0x156)](),{x:_0x30c277,y:_0x55e03b}=_0x431bdd,_0x307c87={'from':_0x3fbfb0[_0x17b3de(0x192)](_0x30c277,_0x55e03b),'to':_0x3fbfb0['getCellIndexAndOffsetByPosition'](_0x30c277+_0xf2db9f,_0x55e03b+_0x396948)},_0x45e17a={'unitId':_0x1d9550,'subUnitId':_0x5a3c1b,'drawingId':_0x480fb7,'drawingType':_0x6d5cfa[_0x17b3de(0x153)][_0x17b3de(0x132)],'sheetTransform':_0x307c87,'transform':{'left':_0x30c277,'top':_0x55e03b,'width':_0xf2db9f,'height':_0x396948},'data':{'shapeType':_0x277569,'shapeData':_0x70f3f7},'axisAlignSheetTransform':_0x307c87,'allowTransform':!0x0};(0x0,_0x35954e['isConnectorShape'])(_0x277569)&&(_0x45e17a[_0x17b3de(0x176)][_0x17b3de(0x18c)]=!0x1,_0x45e17a[_0x17b3de(0x176)][_0x17b3de(0x163)]=!0x1,_0x45e17a[_0x17b3de(0x176)][_0x17b3de(0x130)]=!0x1,_0x45e17a[_0x17b3de(0x176)][_0x17b3de(0x1b0)]=!0x1,_0x45e17a['transform'][_0x17b3de(0x163)]=!0x1,_0x45e17a[_0x17b3de(0x150)]['resizeEnabled']=!0x1,_0x45e17a[_0x17b3de(0x150)]['borderEnabled']=!0x1);let {undo:_0x5f43af,redo:_0xa95dfd,objects:_0x3ae619}=_0x4130d0[_0x17b3de(0x11a)]([_0x45e17a]),_0x37f1b8=_0xc9abb2['onCommandExecute']({'id':_0x58b074[_0x17b3de(0x180)]['id'],'params':{'unitId':_0x1d9550,'drawings':[_0x45e17a]}}),_0x138df9=[...(_0x4e612e=_0x37f1b8[_0x17b3de(0x15c)])==null?[]:_0x4e612e,{'id':_0x58b074[_0x17b3de(0xf8)]['id'],'params':{'unitId':_0x1d9550,'subUnitId':_0x5a3c1b,'op':_0xa95dfd,'objects':_0x3ae619,'type':_0x58b074['DrawingApplyType']['UPDATE']}},{'id':_0x58b074[_0x17b3de(0x1a5)]['id'],'params':[_0x1d9550]},..._0x37f1b8[_0x17b3de(0x1b6)],{'id':_0xb457c9['id'],'params':_0x2ab437}],_0x3ef071=[...(_0x19e8d4=_0x37f1b8[_0x17b3de(0x108)])==null?[]:_0x19e8d4,{'id':_0x58b074[_0x17b3de(0xf8)]['id'],'params':{'unitId':_0x1d9550,'subUnitId':_0x5a3c1b,'op':_0x5f43af,'objects':_0x3ae619,'type':_0x58b074['DrawingApplyType'][_0x17b3de(0xf2)]}},{'id':_0x58b074[_0x17b3de(0x1a5)]['id'],'params':[_0x1d9550]},..._0x37f1b8[_0x17b3de(0xeb)],{'id':_0xb457c9['id'],'params':{'unitId':_0x1d9550,'subUnitId':_0x5a3c1b,'shapeType':_0x35a543,'shapeId':_0x480fb7,'shapeData':_0x3befc3}}];return(0x0,_0x6d5cfa[_0x17b3de(0x11d)])(_0x138df9,_0x207125)?(_0x335f21['pushUndoRedo']({'unitID':_0x1d9550,'undoMutations':_0x3ef071,'redoMutations':_0x138df9}),!0x0):!0x1;}},_0x327dcb={'type':_0x6d5cfa['CommandType'][_0x1219e9(0x164)],'id':_0x1219e9(0x16b),'handler':(_0x138124,_0x9b11f5)=>{const _0xe527ff=_0x1219e9;var _0x42123e,_0xc79bee;let _0x2da743=(0x0,_0x34f13c[_0xe527ff(0x127)])(_0x138124[_0xe527ff(0x1a7)](_0x6d5cfa[_0xe527ff(0xee)]),_0x9b11f5);if(!_0x2da743)return!0x1;let _0x2da774=_0x138124[_0xe527ff(0x1a7)](_0x34f13c['SheetSkeletonService']),{unitId:_0x1fd6f9,subUnitId:_0xccee5b}=_0x2da743,_0x4208d1=_0x2da774['getSkeleton'](_0x1fd6f9,_0xccee5b);if(!_0x4208d1)return!0x1;let _0x6fd4bd=_0x138124[_0xe527ff(0x1a7)](_0x58b074[_0xe527ff(0xe5)]),{shapeId:_0x1fae0a,flipH:_0x184c24,flipV:_0x35c11c}=_0x9b11f5,_0x3a2e67=_0x6fd4bd[_0xe527ff(0x1ae)]({'unitId':_0x1fd6f9,'subUnitId':_0xccee5b,'drawingId':_0x1fae0a});if(!_0x3a2e67)return!0x1;let _0x45c224=_0x138124['get'](_0xeca84)[_0xe527ff(0x145)](_0x1fd6f9,_0xccee5b,_0x1fae0a);if(!_0x45c224)return!0x1;let _0x3d9483=_0x138124['get'](_0x6d5cfa[_0xe527ff(0x19f)]),_0x30982b=_0x138124['get'](_0x6d5cfa['IUndoRedoService']),_0x265af9=_0x138124[_0xe527ff(0x1a7)](_0x34f13c[_0xe527ff(0x141)]),_0x459af9={..._0x3a2e67[_0xe527ff(0x150)]};_0x184c24!==void 0x0&&(_0x459af9['flipX']=!_0x459af9[_0xe527ff(0x190)]),_0x35c11c!==void 0x0&&(_0x459af9['flipY']=!_0x459af9[_0xe527ff(0x10d)]);let _0x37fef1=(0x0,_0x58b074[_0xe527ff(0x185)])(_0x459af9,_0x4208d1),_0x1e8927=(0x0,_0x58b074[_0xe527ff(0x179)])(_0x459af9,_0x4208d1),_0x5ed314=_0x45c224[_0xe527ff(0x128)](),_0x12245e=_0x45c224[_0xe527ff(0x156)](),_0x20c9ae={'unitId':_0x1fd6f9,'subUnitId':_0xccee5b,'drawingId':_0x1fae0a,'drawingType':_0x6d5cfa[_0xe527ff(0x153)][_0xe527ff(0x132)],'sheetTransform':_0x37fef1,'transform':_0x459af9,'data':{'shapeType':_0x5ed314,'shapeData':_0x12245e},'axisAlignSheetTransform':_0x1e8927,'allowTransform':!0x0},{undo:_0x3c50bb,redo:_0x17f03e,objects:_0x15f38d}=_0x6fd4bd[_0xe527ff(0x11a)]([_0x20c9ae]),_0x58c0d5=_0x265af9[_0xe527ff(0x1a0)]({'id':_0x58b074[_0xe527ff(0x180)]['id'],'params':{'unitId':_0x1fd6f9,'drawings':[_0x20c9ae]}}),_0x2c77d4=[...(_0x42123e=_0x58c0d5[_0xe527ff(0x15c)])==null?[]:_0x42123e,{'id':_0x58b074[_0xe527ff(0xf8)]['id'],'params':{'unitId':_0x1fd6f9,'subUnitId':_0xccee5b,'op':_0x17f03e,'objects':_0x15f38d,'type':_0x58b074[_0xe527ff(0x194)][_0xe527ff(0xf2)]}},{'id':_0x58b074[_0xe527ff(0x1a5)]['id'],'params':[_0x1fd6f9]},..._0x58c0d5[_0xe527ff(0x1b6)]],_0x10edca=[...(_0xc79bee=_0x58c0d5[_0xe527ff(0x108)])==null?[]:_0xc79bee,{'id':_0x58b074[_0xe527ff(0xf8)]['id'],'params':{'unitId':_0x1fd6f9,'subUnitId':_0xccee5b,'op':_0x3c50bb,'objects':_0x15f38d,'type':_0x58b074['DrawingApplyType']['UPDATE']}},{'id':_0x58b074['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1fd6f9]},..._0x58c0d5['undos']];if((0x0,_0x35954e[_0xe527ff(0x110)])(_0x5ed314)){let _0x3919bd=_0x45c224[_0xe527ff(0x158)]();if(_0x3919bd){let _0x224c73={..._0x3919bd};_0x224c73[_0xe527ff(0x14c)]=void 0x0,_0x224c73['to']=void 0x0,_0x2c77d4[_0xe527ff(0xfe)]({'id':_0xb457c9['id'],'params':{'unitId':_0x1fd6f9,'subUnitId':_0xccee5b,'shapeId':_0x1fae0a,'shapeType':_0x5ed314,'shapeData':{'relation':_0x224c73}}}),_0x10edca[_0xe527ff(0xfe)]({'id':_0xb457c9['id'],'params':{'unitId':_0x1fd6f9,'subUnitId':_0xccee5b,'shapeId':_0x1fae0a,'shapeType':_0x5ed314,'shapeData':{'relation':_0x3919bd}}});}}return(0x0,_0x6d5cfa[_0xe527ff(0x11d)])(_0x2c77d4,_0x3d9483)?(_0x30982b[_0xe527ff(0x19c)]({'unitID':_0x1fd6f9,'undoMutations':_0x10edca,'redoMutations':_0x2c77d4}),!0x0):!0x1;}},_0x18ad07={'type':_0x6d5cfa['CommandType']['COMMAND'],'id':'sheet.command.set-shape-rotate','handler':(_0x3c1c0d,_0x525bf8)=>{const _0x457386=_0x1219e9;var _0x5e8f78,_0x20e608;let _0x283af4=(0x0,_0x34f13c['getSheetCommandTarget'])(_0x3c1c0d['get'](_0x6d5cfa['IUniverInstanceService']),_0x525bf8);if(!_0x283af4)return!0x1;let _0x37c180=_0x3c1c0d[_0x457386(0x1a7)](_0x34f13c[_0x457386(0x12b)]),{unitId:_0x4ea116,subUnitId:_0x55ffee}=_0x283af4,_0xf1ba12=_0x37c180[_0x457386(0x1a1)](_0x4ea116,_0x55ffee);if(!_0xf1ba12)return!0x1;let _0x2a0f1f=_0x3c1c0d[_0x457386(0x1a7)](_0x58b074['ISheetDrawingService']),{shapeId:_0x4ad663,rotate:_0x24fd6b}=_0x525bf8,_0x2793d6=_0x2a0f1f[_0x457386(0x1ae)]({'unitId':_0x4ea116,'subUnitId':_0x55ffee,'drawingId':_0x4ad663});if(!_0x2793d6)return!0x1;let _0x3710a5=_0x3c1c0d['get'](_0xeca84)[_0x457386(0x145)](_0x4ea116,_0x55ffee,_0x4ad663);if(!_0x3710a5)return!0x1;let _0x51a785=_0x3c1c0d[_0x457386(0x1a7)](_0x6d5cfa[_0x457386(0x19f)]),_0x5c1766=_0x3c1c0d['get'](_0x6d5cfa[_0x457386(0x12d)]),_0x565fd6=_0x3c1c0d['get'](_0x34f13c[_0x457386(0x141)]),_0x44078c={..._0x2793d6[_0x457386(0x150)]};_0x24fd6b!==void 0x0&&(_0x44078c[_0x457386(0x1a8)]=(_0x44078c[_0x457386(0x1a8)]||0x0)+_0x24fd6b);let _0x42cabe=(0x0,_0x58b074[_0x457386(0x185)])(_0x44078c,_0xf1ba12),_0xa432f5=(0x0,_0x58b074['transformToAxisAlignPosition'])(_0x44078c,_0xf1ba12),_0x71791e=_0x3710a5[_0x457386(0x128)](),_0x9caac1=_0x3710a5[_0x457386(0x156)](),_0x593fef={'unitId':_0x4ea116,'subUnitId':_0x55ffee,'drawingId':_0x4ad663,'drawingType':_0x6d5cfa['DrawingTypeEnum'][_0x457386(0x132)],'sheetTransform':_0x42cabe,'transform':_0x44078c,'data':{'shapeType':_0x71791e,'shapeData':_0x9caac1},'axisAlignSheetTransform':_0xa432f5,'allowTransform':!0x0},{undo:_0x5d26fe,redo:_0x1e4ff5,objects:_0x512593}=_0x2a0f1f[_0x457386(0x11a)]([_0x593fef]),_0x31a50c=_0x565fd6[_0x457386(0x1a0)]({'id':_0x58b074['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x4ea116,'drawings':[_0x593fef]}}),_0xf457b1=[...(_0x5e8f78=_0x31a50c['preRedos'])==null?[]:_0x5e8f78,{'id':_0x58b074[_0x457386(0xf8)]['id'],'params':{'unitId':_0x4ea116,'subUnitId':_0x55ffee,'op':_0x1e4ff5,'objects':_0x512593,'type':_0x58b074[_0x457386(0x194)][_0x457386(0xf2)]}},{'id':_0x58b074['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4ea116]},..._0x31a50c[_0x457386(0x1b6)]],_0x1f6d1a=[...(_0x20e608=_0x31a50c['preUndos'])==null?[]:_0x20e608,{'id':_0x58b074[_0x457386(0xf8)]['id'],'params':{'unitId':_0x4ea116,'subUnitId':_0x55ffee,'op':_0x5d26fe,'objects':_0x512593,'type':_0x58b074[_0x457386(0x194)][_0x457386(0xf2)]}},{'id':_0x58b074[_0x457386(0x1a5)]['id'],'params':[_0x4ea116]},..._0x31a50c['undos']];return(0x0,_0x6d5cfa['sequenceExecute'])(_0xf457b1,_0x51a785)?(_0x5c1766['pushUndoRedo']({'unitID':_0x4ea116,'undoMutations':_0x1f6d1a,'redoMutations':_0xf457b1}),!0x0):!0x1;}},_0x1e4727={'type':_0x6d5cfa[_0x1219e9(0x168)]['COMMAND'],'id':_0x1219e9(0x149),'handler':(_0x24b76b,_0x157e04)=>{const _0x26c4ca=_0x1219e9;var _0x4a35c2,_0x2c3456,_0x36e679,_0x4b3709;let _0x3ad931=(0x0,_0x34f13c['getSheetCommandTarget'])(_0x24b76b[_0x26c4ca(0x1a7)](_0x6d5cfa[_0x26c4ca(0xee)]),_0x157e04);if(!_0x3ad931)return!0x1;let _0x44d18f=_0x24b76b['get'](_0x34f13c[_0x26c4ca(0x12b)]),{unitId:_0x129c4a,subUnitId:_0x34360a}=_0x3ad931,_0x341a48=_0x44d18f[_0x26c4ca(0x1a1)](_0x129c4a,_0x34360a);if(!_0x341a48)return!0x1;let _0x2d3aa2=_0x24b76b[_0x26c4ca(0x1a7)](_0x58b074[_0x26c4ca(0xe5)]),{connectorShapeId:_0x183672,width:_0x4121fe,height:_0x4495ee,left:_0xd16c1a,top:_0x599ad3,flipX:_0x483b7c,flipY:_0x901555,rotation:_0x2fb8b7,oldAdjustValues:_0x648348,newAdjustValues:_0x58206b,oldLineType:_0x1decc2,newLineType:_0x200418,oldRelation:_0x2d84f7,newRelation:_0x829f91}=_0x157e04,_0x3cd9b4=_0x2d3aa2[_0x26c4ca(0x1ae)]({'unitId':_0x129c4a,'subUnitId':_0x34360a,'drawingId':_0x183672});if(!_0x3cd9b4)return!0x1;let _0x15db54=_0x24b76b[_0x26c4ca(0x1a7)](_0xeca84)[_0x26c4ca(0x145)](_0x129c4a,_0x34360a,_0x183672);if(!_0x15db54)return!0x1;let _0x1c7600=_0x24b76b[_0x26c4ca(0x1a7)](_0x6d5cfa[_0x26c4ca(0x19f)]),_0x2df847=_0x24b76b[_0x26c4ca(0x1a7)](_0x6d5cfa[_0x26c4ca(0x12d)]),_0x3d43da=_0x24b76b[_0x26c4ca(0x1a7)](_0x34f13c[_0x26c4ca(0x141)]),_0x5e4f65={..._0x3cd9b4['transform'],'width':_0x4121fe,'height':_0x4495ee,'left':_0xd16c1a,'top':_0x599ad3,'flipX':_0x483b7c,'flipY':_0x901555,'angle':(_0x4a35c2=_0x2fb8b7==null?(_0x2c3456=_0x3cd9b4[_0x26c4ca(0x150)])==null?void 0x0:_0x2c3456['angle']:_0x2fb8b7)==null?0x0:_0x4a35c2},_0xd5de5=(0x0,_0x58b074[_0x26c4ca(0x185)])(_0x5e4f65,_0x341a48),_0x1bd3af=(0x0,_0x58b074[_0x26c4ca(0x179)])(_0x5e4f65,_0x341a48),_0x529657=_0x15db54['getShapeType'](),_0x25889d=_0x15db54['getShapeData'](),_0x14285e={'unitId':_0x129c4a,'subUnitId':_0x34360a,'drawingId':_0x183672,'drawingType':_0x6d5cfa[_0x26c4ca(0x153)][_0x26c4ca(0x132)],'sheetTransform':_0xd5de5,'transform':_0x5e4f65,'data':{'shapeType':_0x200418||_0x1decc2||_0x529657,'shapeData':{..._0x25889d,'adjustValues':_0x58206b||_0x648348||(_0x25889d==null?void 0x0:_0x25889d['adjustValues']),'relation':_0x829f91||_0x2d84f7||(_0x25889d==null?void 0x0:_0x25889d['relation'])}},'axisAlignSheetTransform':_0x1bd3af,'allowTransform':!0x0},{undo:_0x2e885d,redo:_0x1cb93a,objects:_0x23ebd0}=_0x2d3aa2[_0x26c4ca(0x11a)]([_0x14285e]),_0x132233=_0x3d43da[_0x26c4ca(0x1a0)]({'id':_0x58b074['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x129c4a,'drawings':[_0x14285e]}}),_0xfb0849=[...(_0x36e679=_0x132233[_0x26c4ca(0x15c)])==null?[]:_0x36e679,{'id':_0x58b074[_0x26c4ca(0xf8)]['id'],'params':{'unitId':_0x129c4a,'subUnitId':_0x34360a,'op':_0x1cb93a,'objects':_0x23ebd0,'type':_0x58b074[_0x26c4ca(0x194)][_0x26c4ca(0xf2)]}},{'id':_0x58b074[_0x26c4ca(0x1a5)]['id'],'params':[_0x129c4a]},..._0x132233['redos'],{'id':_0xb457c9['id'],'params':{'unitId':_0x129c4a,'subUnitId':_0x34360a,'shapeId':_0x183672,'shapeType':_0x200418,'shapeData':{'adjustValues':_0x58206b,'relation':_0x829f91}}}],_0x3db305=[...(_0x4b3709=_0x132233[_0x26c4ca(0x108)])==null?[]:_0x4b3709,{'id':_0x58b074[_0x26c4ca(0xf8)]['id'],'params':{'unitId':_0x129c4a,'subUnitId':_0x34360a,'op':_0x2e885d,'objects':_0x23ebd0,'type':_0x58b074[_0x26c4ca(0x194)][_0x26c4ca(0xf2)]}},{'id':_0x58b074['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x129c4a]},..._0x132233[_0x26c4ca(0xeb)],{'id':_0xb457c9['id'],'params':{'unitId':_0x129c4a,'subUnitId':_0x34360a,'shapeId':_0x183672,'shapeType':_0x529657,'shapeData':{..._0x25889d,'adjustValues':_0x648348||(_0x25889d==null?void 0x0:_0x25889d[_0x26c4ca(0x125)]),'relation':_0x2d84f7||(_0x25889d==null?void 0x0:_0x25889d[_0x26c4ca(0xe9)])}}}];return(0x0,_0x6d5cfa[_0x26c4ca(0x11d)])(_0xfb0849,_0x1c7600)?(_0x2df847[_0x26c4ca(0x19c)]({'unitID':_0x129c4a,'undoMutations':_0x3db305,'redoMutations':_0xfb0849}),!0x0):!0x1;}},_0x5a49e4={'type':_0x6d5cfa[_0x1219e9(0x168)][_0x1219e9(0x164)],'id':_0x1219e9(0xef),'handler':(_0x73ff4a,_0x483a12)=>{const _0x23977b=_0x1219e9;var _0xbf0ebf,_0x5c606b;let _0x3f9d97=(0x0,_0x34f13c['getSheetCommandTarget'])(_0x73ff4a[_0x23977b(0x1a7)](_0x6d5cfa[_0x23977b(0xee)]),_0x483a12);if(!_0x3f9d97)return!0x1;let _0x678d62=_0x73ff4a[_0x23977b(0x1a7)](_0x34f13c['SheetSkeletonService']),{unitId:_0xab06ad,subUnitId:_0x1afd2e}=_0x3f9d97,_0x401b90=_0x678d62[_0x23977b(0x1a1)](_0xab06ad,_0x1afd2e);if(!_0x401b90)return!0x1;let _0x421628=_0x73ff4a[_0x23977b(0x1a7)](_0x58b074[_0x23977b(0xe5)]),{shapeId:_0x4cd9b3,width:_0xd67e50,height:_0x1f56a7,left:_0x39f50e,top:_0x11a87b,flipX:_0x3e09c6,flipY:_0x24d811,angle:_0x57f647,oldAdjustValues:_0x15f1b4,newAdjustValues:_0x1bdbe8,oldLineType:_0x88185b,newLineType:_0x380fa7}=_0x483a12,_0x4556e6=_0x421628['getDrawingByParam']({'unitId':_0xab06ad,'subUnitId':_0x1afd2e,'drawingId':_0x4cd9b3});if(!_0x4556e6)return!0x1;let _0x546a95=_0x73ff4a[_0x23977b(0x1a7)](_0xeca84)[_0x23977b(0x145)](_0xab06ad,_0x1afd2e,_0x4cd9b3);if(!_0x546a95)return!0x1;let _0x2c6af6=_0x73ff4a[_0x23977b(0x1a7)](_0x6d5cfa[_0x23977b(0x19f)]),_0x46b424=_0x73ff4a[_0x23977b(0x1a7)](_0x6d5cfa[_0x23977b(0x12d)]),_0x12249b=_0x73ff4a[_0x23977b(0x1a7)](_0x34f13c['SheetInterceptorService']),_0x22c741={..._0x4556e6[_0x23977b(0x150)],'width':_0xd67e50,'height':_0x1f56a7,'left':_0x39f50e,'top':_0x11a87b,'flipX':_0x3e09c6,'flipY':_0x24d811,'angle':_0x57f647},_0x1f1d3c=(0x0,_0x58b074[_0x23977b(0x185)])(_0x22c741,_0x401b90),_0x34f42f=(0x0,_0x58b074[_0x23977b(0x179)])(_0x22c741,_0x401b90),_0x22438e=_0x546a95[_0x23977b(0x128)](),_0x6120f5=_0x546a95[_0x23977b(0x156)](),_0x381498={'unitId':_0xab06ad,'subUnitId':_0x1afd2e,'drawingId':_0x4cd9b3,'drawingType':_0x6d5cfa[_0x23977b(0x153)][_0x23977b(0x132)],'sheetTransform':_0x1f1d3c,'transform':_0x22c741,'data':{'shapeType':_0x380fa7||_0x88185b||_0x22438e,'shapeData':{..._0x6120f5,'adjustValues':_0x1bdbe8||_0x15f1b4||(_0x6120f5==null?void 0x0:_0x6120f5[_0x23977b(0x125)])}},'axisAlignSheetTransform':_0x34f42f,'allowTransform':!0x0},{undo:_0x394fcb,redo:_0x5bda8a,objects:_0x220f8c}=_0x421628['getBatchUpdateOp']([_0x381498]),_0x41b9b0=_0x12249b[_0x23977b(0x1a0)]({'id':_0x58b074[_0x23977b(0x180)]['id'],'params':{'unitId':_0xab06ad,'drawings':[_0x381498]}}),_0x1b9ef6=[...(_0xbf0ebf=_0x41b9b0[_0x23977b(0x15c)])==null?[]:_0xbf0ebf,{'id':_0x58b074[_0x23977b(0xf8)]['id'],'params':{'unitId':_0xab06ad,'subUnitId':_0x1afd2e,'op':_0x5bda8a,'objects':_0x220f8c,'type':_0x58b074[_0x23977b(0x194)][_0x23977b(0xf2)]}},{'id':_0x58b074[_0x23977b(0x1a5)]['id'],'params':[_0xab06ad]},..._0x41b9b0['redos'],{'id':_0xb457c9['id'],'params':{'unitId':_0xab06ad,'subUnitId':_0x1afd2e,'shapeId':_0x4cd9b3,'shapeType':_0x380fa7,'shapeData':{'adjustValues':_0x1bdbe8}}}],_0xfcea9f=[...(_0x5c606b=_0x41b9b0['preUndos'])==null?[]:_0x5c606b,{'id':_0x58b074[_0x23977b(0xf8)]['id'],'params':{'unitId':_0xab06ad,'subUnitId':_0x1afd2e,'op':_0x394fcb,'objects':_0x220f8c,'type':_0x58b074[_0x23977b(0x194)][_0x23977b(0xf2)]}},{'id':_0x58b074[_0x23977b(0x1a5)]['id'],'params':[_0xab06ad]},..._0x41b9b0['undos'],{'id':_0xb457c9['id'],'params':{'unitId':_0xab06ad,'subUnitId':_0x1afd2e,'shapeId':_0x4cd9b3,'shapeType':_0x22438e,'shapeData':{..._0x6120f5,'adjustValues':_0x15f1b4||(_0x6120f5==null?void 0x0:_0x6120f5[_0x23977b(0x125)])}}}];return(0x0,_0x6d5cfa['sequenceExecute'])(_0x1b9ef6,_0x2c6af6)?(_0x46b424['pushUndoRedo']({'unitID':_0xab06ad,'undoMutations':_0xfcea9f,'redoMutations':_0x1b9ef6}),!0x0):!0x1;}},_0x287359={'id':_0x1219e9(0x142),'type':_0x6d5cfa['CommandType'][_0x1219e9(0x191)],'handler':(_0x572cd3,_0x1c0e2a)=>{const _0x5f16fb=_0x1219e9;let {unitId:_0x465eaa,subUnitId:_0x497475,shapeType:_0x195f39,shapeId:_0x1cc7c2,shapeData:_0x206a17}=_0x1c0e2a,_0x133dcb=_0x572cd3[_0x5f16fb(0x1a7)](_0xeca84)[_0x5f16fb(0x145)](_0x465eaa,_0x497475,_0x1cc7c2);return _0x133dcb&&(_0x133dcb[_0x5f16fb(0x19e)](_0x195f39),_0x206a17&&(_0x133dcb==null||_0x133dcb[_0x5f16fb(0xf4)](_0x206a17))),!0x0;}},_0x1a155e={'id':'sheet.command.update-shape-type','type':_0x6d5cfa[_0x1219e9(0x168)][_0x1219e9(0x164)],'handler':(_0xc2bc63,_0x318e2b)=>{const _0x4f0ca3=_0x1219e9;if(!_0x318e2b)return!0x1;let _0x8ef2fa=_0xc2bc63[_0x4f0ca3(0x1a7)](_0x6d5cfa[_0x4f0ca3(0x19f)]),_0x28e623=_0xc2bc63[_0x4f0ca3(0x1a7)](_0xeca84),_0x598e36=_0xc2bc63[_0x4f0ca3(0x1a7)](_0x6d5cfa['IUndoRedoService']),_0x194b82=[],_0x36a60d=[],{unitId:_0xa46b25,subUnitId:_0x2299ef,shapeId:_0x4a8af6,shapeType:_0x1cc99e,shapeData:_0xcb8a3f}=_0x318e2b,_0x5f430b=_0x28e623['getShapeModel'](_0xa46b25,_0x2299ef,_0x4a8af6);if(_0x5f430b){let _0x4059b6=_0x5f430b[_0x4f0ca3(0x128)](),_0x40dc53=Object[_0x4f0ca3(0x144)]({},_0x5f430b[_0x4f0ca3(0x156)]()),_0x24b446={'unitId':_0xa46b25,'subUnitId':_0x2299ef,'shapeId':_0x4a8af6,'shapeType':_0x1cc99e,'shapeData':_0xcb8a3f},_0x3d2c8e={'unitId':_0xa46b25,'subUnitId':_0x2299ef,'shapeId':_0x4a8af6,'shapeType':_0x4059b6,'shapeData':_0x40dc53};return _0x194b82[_0x4f0ca3(0xfe)]({'id':_0x287359['id'],'params':_0x24b446}),_0x36a60d[_0x4f0ca3(0xfe)]({'id':_0x287359['id'],'params':_0x3d2c8e}),_0x194b82[_0x4f0ca3(0x143)](_0x397fea=>_0x8ef2fa[_0x4f0ca3(0x122)](_0x397fea['id'],_0x397fea[_0x4f0ca3(0x17f)]))&&_0x598e36['pushUndoRedo']({'unitID':_0xa46b25,'redoMutations':[..._0x194b82],'undoMutations':[..._0x36a60d]}),!0x0;}return!0x1;}};var _0x4a1821=_0x1219e9(0xfd),_0x5234aa=_0x1219e9(0x1a3);let _0x4b70e4=_0x1219e9(0x147);Symbol(_0x4b70e4);let _0x2abc18={},_0x59d3ae=class extends _0x6d5cfa['Disposable']{constructor(_0x2c92ea,_0xd9c49,_0x263ed6,_0x5dc6e1,_0x503f96){const _0x43d8d6=_0x1219e9;super(),this[_0x43d8d6(0x1a2)]=_0x2c92ea,this[_0x43d8d6(0x14e)]=_0xd9c49,this['_sheetSkeletonService']=_0x263ed6,this['_sheetsShapeService']=_0x5dc6e1,this[_0x43d8d6(0x188)]=_0x503f96,this['_initCommands'](),this['_initCommandInterceptor']();}[_0x1219e9(0x19a)](){const _0x3a43ed=_0x1219e9;[_0x566d8a,_0x4f68c1,_0x327dcb,_0x18ad07,_0x1e4727,_0x5a49e4,_0x4c12a4,_0x35f76c,_0x287359,_0xb457c9]['forEach'](_0x33d55e=>this[_0x3a43ed(0x166)](this[_0x3a43ed(0x1a2)][_0x3a43ed(0x126)](_0x33d55e)));}[_0x1219e9(0x133)](){const _0x28dc85=_0x1219e9;this[_0x28dc85(0x166)](this[_0x28dc85(0x14e)][_0x28dc85(0xfa)]({'getMutations':_0x2e1e30=>{const _0x26e0c5=_0x28dc85;if(_0x2e1e30['id']===_0x58b074[_0x26e0c5(0x12a)]['id']){let {drawings:_0x2749ca}=_0x2e1e30['params'],_0x1c2726=_0x2749ca[_0x26e0c5(0x167)](_0x9cfb1c=>_0x9cfb1c['drawingType']===_0x6d5cfa[_0x26e0c5(0x153)][_0x26e0c5(0x132)]);if(_0x1c2726['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xb09c53=[],_0x20155f=[];return _0x1c2726['forEach'](_0x543812=>{const _0x4d699e=_0x26e0c5;let {unitId:_0x4aa2d4,subUnitId:_0x3ba6e0,drawingId:_0xb57a5e}=_0x543812,_0x1b34b2=this[_0x4d699e(0x138)][_0x4d699e(0x145)](_0x4aa2d4,_0x3ba6e0,_0xb57a5e);if(!_0x1b34b2)throw TypeError(_0x4d699e(0x119)+_0x1b34b2);_0xb09c53[_0x4d699e(0xfe)]({'id':_0x35f76c['id'],'params':{'unitId':_0x4aa2d4,'subUnitId':_0x3ba6e0,'shapeId':_0xb57a5e}}),_0x20155f['push']({'id':_0x4c12a4['id'],'params':{'unitId':_0x4aa2d4,'subUnitId':_0x3ba6e0,'shapeId':_0xb57a5e,'shapeType':_0x1b34b2[_0x4d699e(0x128)](),'shapeData':_0x1b34b2[_0x4d699e(0x156)]()}});let _0x23c248=this[_0x4d699e(0x138)][_0x4d699e(0xf6)](_0x4aa2d4,_0x3ba6e0,_0xb57a5e);if(_0x23c248)for(let _0x361675 of _0x23c248){let _0x5b7d4f=_0x361675['lineShapeId'],_0x1392a3=_0x361675[_0x4d699e(0x1ac)],_0x213dbf=_0x1392a3?{'from':void 0x0}:{'to':void 0x0},_0x3472b1=_0x1392a3?{'from':{'shapeId':_0x361675['shapeId'],'cxnIndex':_0x361675['cxnIndex']}}:{'to':{'shapeId':_0x361675[_0x4d699e(0x162)],'cxnIndex':_0x361675[_0x4d699e(0x101)]}};_0xb09c53[_0x4d699e(0xfe)]({'id':_0xb457c9['id'],'params':{'unitId':_0x4aa2d4,'subUnitId':_0x3ba6e0,'shapeId':_0x5b7d4f,'shapeData':{'relation':_0x213dbf}}}),_0x20155f['push']({'id':_0xb457c9['id'],'params':{'unitId':_0x4aa2d4,'subUnitId':_0x3ba6e0,'shapeId':_0x5b7d4f,'shapeData':{'relation':_0x3472b1}}});}}),{'preRedos':_0xb09c53,'redos':[],'preUndos':[],'undos':_0x20155f};}if(_0x2e1e30['id']===_0x58b074[_0x26e0c5(0x180)]['id']){let {drawings:_0x390221}=_0x2e1e30[_0x26e0c5(0x17f)],_0x17a7c3=_0x390221[_0x26e0c5(0x167)](_0x368323=>_0x368323[_0x26e0c5(0x160)]===_0x6d5cfa[_0x26e0c5(0x153)][_0x26e0c5(0x132)]);if(_0x17a7c3['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x8fee95=[],_0xe3cc4d=[];for(let _0x5f4f5c of _0x17a7c3){let {unitId:_0xbd625f,subUnitId:_0x4dd39c,drawingId:_0x39a3d9,transform:_0xff804d}=_0x5f4f5c;if(!_0xbd625f||!_0x4dd39c||!_0x39a3d9||!_0xff804d)continue;let _0x4920b7=this['_sheetsShapeService'][_0x26e0c5(0x145)](_0xbd625f,_0x4dd39c,_0x39a3d9);if(!_0x4920b7)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x4920b7);if((0x0,_0x35954e[_0x26e0c5(0x110)])(_0x4920b7[_0x26e0c5(0x128)]())){let _0x39aa8e=this[_0x26e0c5(0x138)]['getLineShapeRelation'](_0xbd625f,_0x4dd39c,_0x39a3d9);_0x39aa8e&&(_0x8fee95['push']({'id':_0xb457c9['id'],'params':{'unitId':_0xbd625f,'subUnitId':_0x4dd39c,'shapeId':_0x39a3d9,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0xe3cc4d[_0x26e0c5(0xfe)]({'id':_0xb457c9['id'],'params':{'unitId':_0xbd625f,'subUnitId':_0x4dd39c,'shapeId':_0x39a3d9,'shapeData':{'relation':_0x39aa8e}}}));}else{let _0xd33a3b=this[_0x26e0c5(0x138)]['getBasicShapeRelation'](_0xbd625f,_0x4dd39c,_0x39a3d9);if(_0xd33a3b&&_0xd33a3b[_0x26e0c5(0x184)]>0x0)for(let _0x54915b of _0xd33a3b){let _0x47166e=_0x54915b[_0x26e0c5(0x11f)],_0x3981a2=_0x54915b[_0x26e0c5(0x1ac)],_0x3e0edf=this[_0x26e0c5(0x138)][_0x26e0c5(0x145)](_0xbd625f,_0x4dd39c,_0x47166e);if(!_0x3e0edf)continue;let _0x1e9926=_0x3e0edf[_0x26e0c5(0x105)](),_0x2fd3e5=_0x3e0edf[_0x26e0c5(0x169)]();_0x1e9926&&_0x2fd3e5?this[_0x26e0c5(0x100)](_0xbd625f,_0x4dd39c,_0x47166e,_0x3e0edf,_0x1e9926,_0x2fd3e5,_0x8fee95,_0xe3cc4d,_0x39a3d9,_0xff804d):this[_0x26e0c5(0x1ad)](_0xbd625f,_0x4dd39c,_0x47166e,_0x3e0edf,_0x3981a2?_0x1e9926:_0x2fd3e5,_0x3981a2,_0x8fee95,_0xe3cc4d,_0x39a3d9,_0xff804d);}}}return{'preRedos':[],'redos':_0x8fee95,'preUndos':_0xe3cc4d,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1219e9(0x13a)](_0x34d1d0,_0x4fc705,_0x5c5b28,_0x12fcdc,_0x1b0286){const _0x4797db=_0x1219e9;if(!_0x4fc705||!_0x5c5b28)return null;let {shapeId:_0x5c7bf5,cxnIndex:_0x4eebb6}=_0x34d1d0,_0x1ad82c=this[_0x4797db(0x138)]['getShapeModel'](_0x4fc705,_0x5c5b28,_0x5c7bf5);if(!_0x1ad82c)return null;let _0x407dfe=this[_0x4797db(0x188)][_0x4797db(0x1ae)]({'unitId':_0x4fc705,'subUnitId':_0x5c5b28,'drawingId':_0x5c7bf5});if(!(_0x407dfe!=null&&_0x407dfe[_0x4797db(0x150)]))return null;let {left:_0x56ddfe=0x0,top:_0x5cf4a1=0x0,width:_0xf5621b=0x0,height:_0x49b380=0x0,flipX:_0x174950=!0x1,flipY:_0x20b516=!0x1,angle:_0x2e4263}=_0x407dfe[_0x4797db(0x150)];if(_0x1b0286&&_0x12fcdc===_0x5c7bf5){var _0x29dfff,_0x456c38,_0x2c4e48,_0x1011fd,_0x41b2c3,_0x4aa05d,_0x18cb0e;_0x56ddfe=(_0x29dfff=_0x1b0286[_0x4797db(0x16e)])==null?_0x56ddfe:_0x29dfff,_0x5cf4a1=(_0x456c38=_0x1b0286[_0x4797db(0x15e)])==null?_0x5cf4a1:_0x456c38,_0xf5621b=(_0x2c4e48=_0x1b0286['width'])==null?_0xf5621b:_0x2c4e48,_0x49b380=(_0x1011fd=_0x1b0286[_0x4797db(0x15f)])==null?_0x49b380:_0x1011fd,_0x174950=(_0x41b2c3=_0x1b0286['flipX'])==null?_0x174950:_0x41b2c3,_0x20b516=(_0x4aa05d=_0x1b0286[_0x4797db(0x10d)])==null?_0x20b516:_0x4aa05d,_0x2e4263=(_0x18cb0e=_0x1b0286[_0x4797db(0x1a8)])==null?_0x2e4263:_0x18cb0e;}_0x1ad82c[_0x4797db(0x10a)]({'width':_0xf5621b,'height':_0x49b380});let _0x2194d7=_0x1ad82c[_0x4797db(0x13f)]()[_0x4797db(0x173)](_0x47dcce=>_0x47dcce['index']===_0x4eebb6);if(!_0x2194d7)return null;let _0x27ece6=_0x174950?_0xf5621b-_0x2194d7['x']:_0x2194d7['x'],_0x3a030b=_0x20b516?_0x49b380-_0x2194d7['y']:_0x2194d7['y'];if(_0x2e4263!==0x0&&_0x2e4263!=null){let _0x19ec2c=_0x2e4263*Math['PI']/0xb4,_0x145a64=Math[_0x4797db(0x183)](_0x19ec2c),_0x223c85=Math[_0x4797db(0x14b)](_0x19ec2c),_0x4fa2d3=_0xf5621b/0x2,_0x3086a6=_0x49b380/0x2,_0x5ed6ed=_0x27ece6-_0x4fa2d3,_0x2c2e0e=_0x3a030b-_0x3086a6;_0x27ece6=_0x4fa2d3+_0x5ed6ed*_0x145a64-_0x2c2e0e*_0x223c85,_0x3a030b=_0x3086a6+_0x5ed6ed*_0x223c85+_0x2c2e0e*_0x145a64;}_0x27ece6+=_0x56ddfe,_0x3a030b+=_0x5cf4a1;let _0x5e3844=_0x2194d7[_0x4797db(0x117)]/0xea60;_0x174950&&(_0x5e3844=0xb4-_0x5e3844),_0x20b516&&(_0x5e3844=-_0x5e3844),_0x5e3844+=_0x2e4263||0x0,_0x5e3844=(_0x5e3844%0x168+0x168)%0x168;let _0x4f0952=(0x0,_0x35954e[_0x4797db(0x10f)])({'left':_0x56ddfe,'top':_0x5cf4a1,'width':_0xf5621b,'height':_0x49b380},_0x2e4263||0x0);return{'point':{'x':_0x27ece6,'y':_0x3a030b},'angle':_0x5e3844,'bounds':_0x4f0952};}[_0x1219e9(0x100)](_0x4b0e66,_0x4f9005,_0x22171f,_0x4593bc,_0x2a2b9f,_0x3e3482,_0x2c45ad,_0x4af59f,_0x2ca8dd,_0x5dd43c){const _0x22b1f4=_0x1219e9;let _0xba3b5e=this['_sheetSkeletonService'][_0x22b1f4(0x1a1)](_0x4b0e66,_0x4f9005);if(!_0xba3b5e)return;let _0x5d618b=_0x4593bc[_0x22b1f4(0x158)](),_0x15e853=_0x4593bc[_0x22b1f4(0x18e)](),_0x11dbaa={},_0x17f14f={};_0x15e853[_0x22b1f4(0x18a)](_0x4b89ff=>{const _0x1054f8=_0x22b1f4;let _0x508ea9=_0x4593bc[_0x1054f8(0x187)](_0x4b89ff);_0x17f14f[_0x4b89ff]=_0x508ea9==null?0x0:_0x508ea9;});let _0x2f1dfd=this['_getConnectPointInfo'](_0x2a2b9f,_0x4b0e66,_0x4f9005,_0x2ca8dd,_0x5dd43c),_0x5117dd=this[_0x22b1f4(0x13a)](_0x3e3482,_0x4b0e66,_0x4f9005,_0x2ca8dd,_0x5dd43c);if(_0x2f1dfd&&_0x5117dd){let _0x1bdd7d=_0x4593bc[_0x22b1f4(0x128)](),_0xba87c7=(0x0,_0x35954e['routeConnectorLineShape'])(_0x2f1dfd,_0x5117dd,_0x1bdd7d),_0x4962b6=_0x1bdd7d;if(_0xba87c7){let _0x4e1999=(0x0,_0x35954e['computeConnectorRouteLayout'])(_0xba87c7,_0x4593bc[_0x22b1f4(0x128)]()),_0x4eb455=this[_0x22b1f4(0x188)][_0x22b1f4(0x16a)](_0x4b0e66,_0x4f9005);if(_0x4eb455&&_0x4eb455[_0x22171f]){let _0x4ae63e=_0x4eb455[_0x22171f];_0x4962b6=_0x4e1999[_0x22b1f4(0xe7)];for(let [_0x2d00c0,_0x29a8d1]of Object[_0x22b1f4(0x198)](_0x4e1999[_0x22b1f4(0x125)]))_0x11dbaa[_0x2d00c0]=_0x29a8d1;let _0x4640d7={..._0x4ae63e[_0x22b1f4(0x150)],'width':_0x4e1999[_0x22b1f4(0x1aa)][_0x22b1f4(0x103)],'height':_0x4e1999[_0x22b1f4(0x1aa)][_0x22b1f4(0x15f)],'left':_0x4e1999[_0x22b1f4(0x1aa)]['left'],'top':_0x4e1999[_0x22b1f4(0x1aa)][_0x22b1f4(0x15e)],'flipX':_0x4e1999['worldRect'][_0x22b1f4(0x190)],'flipY':_0x4e1999[_0x22b1f4(0x1aa)][_0x22b1f4(0x10d)],'angle':_0x4e1999[_0x22b1f4(0x139)]},_0x183bb3=(0x0,_0x58b074[_0x22b1f4(0x185)])(_0x4640d7,_0xba3b5e),_0x1b7a43=(0x0,_0x58b074[_0x22b1f4(0x179)])(_0x4640d7,_0xba3b5e),_0x490a0b={'unitId':_0x4b0e66,'subUnitId':_0x4f9005,'drawingType':_0x6d5cfa[_0x22b1f4(0x153)]['DRAWING_SHAPE'],'drawingId':_0x22171f,'transform':_0x4640d7,'sheetTransform':_0x183bb3,'axisAlignSheetTransform':_0x1b7a43},{unitId:_0x1f64bf,subUnitId:_0x5a6c18,undo:_0x4b1063,redo:_0x3fc04f,objects:_0x5ab330}=this[_0x22b1f4(0x188)][_0x22b1f4(0x11a)]([_0x490a0b]);_0x2c45ad['push']({'id':_0x58b074[_0x22b1f4(0xf8)]['id'],'params':{'unitId':_0x1f64bf,'subUnitId':_0x5a6c18,'op':_0x3fc04f,'objects':_0x5ab330,'type':_0x58b074['DrawingApplyType']['UPDATE']}}),_0x4af59f[_0x22b1f4(0xfe)]({'id':_0x58b074[_0x22b1f4(0xf8)]['id'],'params':{'unitId':_0x1f64bf,'subUnitId':_0x5a6c18,'op':_0x4b1063,'objects':_0x5ab330,'type':_0x58b074[_0x22b1f4(0x194)][_0x22b1f4(0xf2)]}});}_0x4593bc[_0x22b1f4(0x17c)]();}_0x2c45ad['push']({'id':_0xb457c9['id'],'params':{'unitId':_0x4b0e66,'subUnitId':_0x4f9005,'shapeId':_0x22171f,'shapeType':_0x4962b6,'shapeData':{'adjustValues':_0x11dbaa,'relation':_0x5d618b}}}),_0x4af59f['push']({'id':_0xb457c9['id'],'params':{'unitId':_0x4b0e66,'subUnitId':_0x4f9005,'shapeId':_0x22171f,'shapeType':_0x1bdd7d,'shapeData':{'adjustValues':_0x17f14f,'relation':_0x5d618b}}});}}[_0x1219e9(0x1ad)](_0x4c2ecb,_0x56b278,_0x1d9880,_0x47d465,_0x1c5330,_0x1691bb,_0x237af3,_0x460677,_0x14b437,_0x33f4ba){const _0x337a22=_0x1219e9;var _0x363a20;if(!_0x1c5330)return;let _0x1ae7a2=this[_0x337a22(0xe6)][_0x337a22(0x1a1)](_0x4c2ecb,_0x56b278);if(!_0x1ae7a2)return;let _0x85b638=(_0x363a20=this[_0x337a22(0x188)][_0x337a22(0x1ae)]({'unitId':_0x4c2ecb,'subUnitId':_0x56b278,'drawingId':_0x14b437}))==null?void 0x0:_0x363a20[_0x337a22(0x150)];if(!_0x85b638)return;let _0x37e984=_0x85b638['left']!==_0x33f4ba[_0x337a22(0x16e)]||_0x85b638[_0x337a22(0x15e)]!==_0x33f4ba[_0x337a22(0x15e)],_0xf129e0=_0x85b638[_0x337a22(0x103)]!==_0x33f4ba['width']||_0x85b638['height']!==_0x33f4ba[_0x337a22(0x15f)],_0x3f3bf6=_0x85b638[_0x337a22(0x190)]!==_0x33f4ba[_0x337a22(0x190)]||_0x85b638['flipY']!==_0x33f4ba[_0x337a22(0x10d)],_0x207514=_0x85b638[_0x337a22(0x1a8)]!==_0x33f4ba[_0x337a22(0x1a8)];if(_0x37e984&&!_0xf129e0&&!_0x3f3bf6&&!_0x207514){var _0x1eae73,_0x318d45,_0x377d08,_0x154a39;let _0x2b589a=((_0x1eae73=_0x33f4ba[_0x337a22(0x16e)])==null?0x0:_0x1eae73)-((_0x318d45=_0x85b638[_0x337a22(0x16e)])==null?0x0:_0x318d45),_0x16dacc=((_0x377d08=_0x33f4ba[_0x337a22(0x15e)])==null?0x0:_0x377d08)-((_0x154a39=_0x85b638[_0x337a22(0x15e)])==null?0x0:_0x154a39),_0x4eecc8=this['_drawingManagerService'][_0x337a22(0x16a)](_0x4c2ecb,_0x56b278);if(_0x4eecc8&&_0x4eecc8[_0x1d9880]){var _0x492179,_0x2938a0,_0x162cef,_0x5983e6;let _0x128ed8=_0x4eecc8[_0x1d9880],_0x139d33={..._0x128ed8[_0x337a22(0x150)],'left':((_0x492179=(_0x2938a0=_0x128ed8['transform'])==null?void 0x0:_0x2938a0['left'])==null?0x0:_0x492179)+_0x2b589a,'top':((_0x162cef=(_0x5983e6=_0x128ed8[_0x337a22(0x150)])==null?void 0x0:_0x5983e6[_0x337a22(0x15e)])==null?0x0:_0x162cef)+_0x16dacc},_0x375020=(0x0,_0x58b074[_0x337a22(0x185)])(_0x139d33,_0x1ae7a2),_0x333444=(0x0,_0x58b074[_0x337a22(0x179)])(_0x139d33,_0x1ae7a2),_0x24af01={'unitId':_0x4c2ecb,'subUnitId':_0x56b278,'drawingType':_0x6d5cfa[_0x337a22(0x153)][_0x337a22(0x132)],'drawingId':_0x1d9880,'transform':_0x139d33,'sheetTransform':_0x375020,'axisAlignSheetTransform':_0x333444},{unitId:_0x66521e,subUnitId:_0x300e72,undo:_0x4a1220,redo:_0x4e8c71,objects:_0x278343}=this[_0x337a22(0x188)]['getBatchUpdateOp']([_0x24af01]);_0x237af3[_0x337a22(0xfe)]({'id':_0x58b074[_0x337a22(0xf8)]['id'],'params':{'unitId':_0x66521e,'subUnitId':_0x300e72,'op':_0x4e8c71,'objects':_0x278343,'type':_0x58b074[_0x337a22(0x194)][_0x337a22(0xf2)]}}),_0x460677[_0x337a22(0xfe)]({'id':_0x58b074['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x66521e,'subUnitId':_0x300e72,'op':_0x4a1220,'objects':_0x278343,'type':_0x58b074[_0x337a22(0x194)][_0x337a22(0xf2)]}});}}else{let _0x1cc250=_0x47d465[_0x337a22(0x105)](),_0x5d8da9=_0x47d465[_0x337a22(0x169)]();this[_0x337a22(0x100)](_0x4c2ecb,_0x56b278,_0x1d9880,_0x47d465,_0x1cc250,_0x5d8da9,_0x237af3,_0x460677,_0x14b437,_0x33f4ba);}}};_0x59d3ae=_0x216e33([_0x77879f(0x0,_0x6d5cfa[_0x1219e9(0x19f)]),_0x77879f(0x1,(0x0,_0x6d5cfa[_0x1219e9(0x14f)])(_0x34f13c['SheetInterceptorService'])),_0x77879f(0x2,(0x0,_0x6d5cfa[_0x1219e9(0x14f)])(_0x34f13c[_0x1219e9(0x12b)])),_0x77879f(0x3,(0x0,_0x6d5cfa[_0x1219e9(0x14f)])(_0xeca84)),_0x77879f(0x4,(0x0,_0x6d5cfa['Inject'])(_0x5c4be5[_0x1219e9(0x193)]))],_0x59d3ae);let _0x393bbb=class extends _0x6d5cfa[_0x1219e9(0x1af)]{constructor(_0x449989=_0x2abc18,_0x5e5acf,_0x2d297d,_0x4c773f){const _0x448800=_0x1219e9;super(),this[_0x448800(0x109)]=_0x449989,this['_injector']=_0x5e5acf,this[_0x448800(0x1a2)]=_0x2d297d,this[_0x448800(0x111)]=_0x4c773f;let {..._0x45c420}=(0x0,_0x6d5cfa['merge'])({},_0x2abc18,this[_0x448800(0x109)]);this['_configService'][_0x448800(0x120)](_0x4b70e4,_0x45c420);}['onStarting'](){const _0x5c8690=_0x1219e9;let _0x384a0d=this['_injector'];[[_0x77a927],[_0xeca84],[_0x59d3ae]]['forEach'](_0x509416=>_0x384a0d[_0x5c8690(0xe8)](_0x509416)),(0x0,_0x6d5cfa['touchDependencies'])(_0x384a0d,[[_0xeca84],[_0x59d3ae]]);}};_0x10ded4(_0x393bbb,_0x1219e9(0x11e),_0x6d5cfa[_0x1219e9(0x170)][_0x1219e9(0xea)]),_0x10ded4(_0x393bbb,_0x1219e9(0x12c),_0x1219e9(0x113)),_0x10ded4(_0x393bbb,'packageName',_0x4a1821),_0x10ded4(_0x393bbb,'version',_0x5234aa),_0x393bbb=_0x216e33([(0x0,_0x6d5cfa[_0x1219e9(0x112)])(_0x22bc7c[_0x1219e9(0x161)]),_0x77879f(0x1,(0x0,_0x6d5cfa[_0x1219e9(0x14f)])(_0x6d5cfa[_0x1219e9(0x15d)])),_0x77879f(0x2,_0x6d5cfa[_0x1219e9(0x19f)]),_0x77879f(0x3,_0x6d5cfa[_0x1219e9(0x14a)])],_0x393bbb),_0xf62811[_0x1219e9(0x17b)]=0xc8,_0xf62811['DEFAULT_SHAPE_WIDTH']=0xc8,_0xf62811[_0x1219e9(0x1a6)]=_0x566d8a,_0xf62811[_0x1219e9(0x123)]=_0x4c12a4,_0xf62811['RemoveSheetsShapeMutation']=_0x35f76c,_0xf62811[_0x1219e9(0x152)]=_0x4f68c1,_0xf62811[_0x1219e9(0xff)]=_0x18ad07,Object[_0x1219e9(0x15a)](_0xf62811,_0x1219e9(0x186),{'enumerable':!0x0,'get':function(){return _0xeca84;}}),_0xf62811['ToggleSheetsShapeFlipCommand']=_0x327dcb,Object[_0x1219e9(0x15a)](_0xf62811,_0x1219e9(0x182),{'enumerable':!0x0,'get':function(){return _0x393bbb;}}),_0xf62811[_0x1219e9(0x124)]=_0x1e4727,_0xf62811[_0x1219e9(0x1b2)]=_0x5a49e4,_0xf62811['UpdateSheetsShapeDataMutation']=_0xb457c9,_0xf62811['UpdateSheetsShapeTypeCommand']=_0x1a155e,_0xf62811[_0x1219e9(0xed)]=_0x287359;}));function _0x2dc3(){const _0x3fafea=['@univerjs/sheets','call','sequenceExecute','type','lineShapeId','setConfig','stringify','syncExecuteCommand','InsertSheetsShapeMutation','UpdateConnectorRelationCommand','adjustValues','registerCommand','getSheetCommandTarget','getShapeType','UniverSheetsDrawing','RemoveSheetDrawingCommand','SheetSkeletonService','pluginName','IUndoRedoService','startX','sheet.command.set-shape-drawing-data','resizeEnabled','_shapeModelManagerMap','DRAWING_SHAPE','_initCommandInterceptor','_groupIds','@univerjs-pro/engine-shape','UniverCore','94148QmoLuO','_sheetsShapeService','rotation','_getConnectPointInfo','sheet.mutation.update-shape-data','string','InsertSheetDrawingCommand','_shapes','getConnectionSiteList','dispose','SheetInterceptorService','sheet.mutation.update-shape-type','every','assign','getShapeModel','54XXnRIo','sheets-shape.config','toJSON','sheet.command.update-connector-relation','IConfigService','sin','from','3443481avmpXc','_sheetInterceptorService','Inject','transform','10466680UbyNyu','SetShapeDrawingDataCommand','DrawingTypeEnum','_linesIds','235TgqWmc','getShapeData','_ensureShapeModelManager','getShapeRelation','_initSnapshot','defineProperty','toPrimitive','preRedos','Injector','top','height','drawingType','UniverLicensePlugin','shapeId','rotateEnabled','COMMAND','getOwnPropertyDescriptor','disposeWithMe','filter','CommandType','getEndConnectInfo','getDrawingData','sheet.command.toggle-shape-flip','UniverProSheetsShape','set','left','Disposable','UniverInstanceType','exports','_deserializeShapeForUnit','find','has','_resourcesManagerService','data','Module','getCellWithCoordByIndex','transformToAxisAlignPosition','getLineShapeRelation','DEFAULT_SHAPE_HEIGHT','removeLinePoints','getShapeDataById','fromJSON','params','SetSheetDrawingCommand','_serializeShapeForUnit','UniverSheetsShapePlugin','cos','length','transformToDrawingPosition','SheetsShapeService','getAdjustValueByName','_drawingManagerService','UniverProEngineShape','forEach','function','fill','REMOVE','getAdjustNames','sheet.mutation.insert-shape','flipX','MUTATION','getCellIndexAndOffsetByPosition','IDrawingManagerService','DrawingApplyType','getBatchAddOp','default','getShapeTypeById','entries','decorate','_initCommands','object','pushUndoRedo','symbol','setShapeType','ICommandService','onCommandExecute','getSkeleton','_commandService','0.20.1','228612GMpGnm','ClearSheetDrawingTransformerOperation','InsertShapeCommand','get','angle','isLineShape','worldRect','toStringTag','isFrom','_addLineFollowShapeUpdates','getDrawingByParam','Plugin','borderEnabled','hasShape','UpdateLineShapeResizeCommand','amd','getBasicShapeType','keys','redos','shapeData','ISheetDrawingService','_sheetSkeletonService','lineType','add','relation','UNIVER_SHEET','undos','ShapeModel','UpdateSheetsShapeTypeMutation','IUniverInstanceService','sheet.command.update-line-shape-resize','addShape','633716jxJPSm','UPDATE','prototype','setShapeData','range','getBasicShapeRelation','insertShape','SetDrawingApplyMutation','delete','interceptCommand','UniverProLicense','INSERT','@univerjs-pro/sheets-shape','push','SetSheetsShapeRotateCommand','_addLineRerouteUpdates','cxnIndex','12347072iEcyKH','width','constructor','getStartConnectInfo','position','_disposed','preUndos','_config','updateContext','UniverSheets','clear','flipY','registerPluginResource','getBasicShapeRotateBound','isConnectorShape','_configService','DependentOn','SHEET_SHAPE_PLUGIN','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeShape','ang','858564vvIfnJ','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getBatchUpdateOp'];_0x2dc3=function(){return _0x3fafea;};return _0x2dc3();}
|
|
1
|
+
function _0x4979(_0x26d2aa,_0x502cb9){_0x26d2aa=_0x26d2aa-0x163;const _0x275247=_0x2752();let _0x49792=_0x275247[_0x26d2aa];return _0x49792;}function _0x2752(){const _0x360686=['isHorizontal','addShape','sheet.command.insert-shape','UpdateLineShapeResizeCommand','keys','IUniverInstanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stringify','getShapeType','UpdateSheetsShapeTypeCommand','_groupIds','INSERT','9CjIwDX','get','transform','height','getSheetCommandTarget','InsertSheetsShapeMutation','set','@univerjs/sheets-drawing','5283prOWbE','type','rotation','Disposable','merge','clear','default','@univerjs/core','getLineShapeRelation','flipY','_deserializeShapeForUnit','getShapeDataById','UniverInstanceType','forEach','UniverSheetsShapePlugin','removeShape','_configService','ICommandService','borderEnabled','_sheetSkeletonService','startY','sheet.command.update-shape-type','setConfig','getShapeRelation','DRAWING_SHAPE','getOwnPropertyDescriptor','data','getSkeleton','DEFAULT_SHAPE_WIDTH','transformToAxisAlignPosition','sequenceExecute','UpdateSheetsShapeDataMutation','every','_ensureShapeModelManager','@univerjs/sheets','packageName','hasShape','transformToDrawingPosition','delete','insertShape','ToggleSheetsShapeFlipCommand','SheetInterceptorService','length','position','_injector','_serializeShapeForUnit','ensureSkeleton','defineProperty','add','ISheetDrawingService','constructor','syncExecuteCommand','dispose','SHEET_SHAPE_PLUGIN','_linesIds','angle','_addLineFollowShapeUpdates','_drawingManagerService','amd','_initCommandInterceptor','@univerjs-pro/engine-shape','touchDependencies','getStartConnectInfo','5044743SVjkWg','removeLinePoints','disposeWithMe','setShapeType','@univerjs-pro/license','REMOVE','lineType','18VPHluo','getShapeTextData','shapeData','entries','_config','fromJSON','getShapeModel','UniverSheetsDrawing','InsertSheetDrawingCommand','lineShapeId','SetSheetsShapeRotateCommand','iterator','prototype','range','getShapeData','_shapes','1527MpaYSe','onStarting','function','sheet.mutation.update-shape-type','interceptCommand','IDrawingManagerService','0.21.0-insiders.20260422-d7fcb4d','getBasicShapeRotateBound','shapeId','ClearSheetDrawingTransformerOperation','InsertShapeCommand','1072lDJGlE','filter','_getConnectPointInfo','sheets-shape.config','top','UNIVER_SHEET','SetDrawingApplyMutation','_resourcesManagerService','isConnectorShape','UniverSheets','Injector','toPrimitive','getBasicShapeRelation','getAdjustValueByName','from','MUTATION','5887PJUwvP','2879592RdMAJp','onCommandExecute','worldRect','flipX','preUndos','cxnIndex','_initCommands','getEndConnectInfo','UniverLicensePlugin','object','width','getBatchUpdateOp','_sheetsShapeService','UpdateConnectorRelationCommand','toJSON','drawingType','IUndoRedoService','exports','rotateEnabled','symbol','SetShapeDrawingDataCommand','computeConnectorRouteLayout','sheet.command.set-shape-text-vertical-toggle','sin','preRedos','IConfigService','UniverProLicense','getDrawingByParam','startX','getShapeTypeById','adjustValues','Plugin','_addLineRerouteUpdates','SetSheetDrawingCommand','routeConnectorLineShape','decorate','Module','sheet.command.set-shape-drawing-data','sheet.command.update-connector-relation','push','ang','params','5032210BSkdOY','resizeEnabled','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','isLineShape','DependentOn','SheetsShapeService','CommandType','UniverProSheetsShape','4188VhnCbP','redos','sheet.command.update-line-shape-resize','cos','registerCommand','UPDATE','getCellIndexAndOffsetByPosition','_disposed','COMMAND','DrawingTypeEnum','pushUndoRedo','getConnectionSiteList','UniverDrawing','RemoveSheetsShapeMutation','RemoveSheetDrawingCommand','sheet.mutation.update-shape-data','Inject','SheetSkeletonService','isFrom','getCellWithCoordByIndex','pluginName','getDrawingData','left','@univerjs/drawing','_sheetInterceptorService','undos','getBasicShapeType','string','DrawingApplyType','_initSnapshot','_shapeModelManagerMap','3580140HWdHoH','setShapeData','_commandService'];_0x2752=function(){return _0x360686;};return _0x2752();}(function(_0x351b13,_0xa1c57c){const _0x42f94d=_0x4979,_0x34649c=_0x351b13();while(!![]){try{const _0x313b67=-parseInt(_0x42f94d(0x1d9))/0x1*(-parseInt(_0x42f94d(0x21f))/0x2)+parseInt(_0x42f94d(0x22f))/0x3*(-parseInt(_0x42f94d(0x23a))/0x4)+-parseInt(_0x42f94d(0x1c2))/0x5+parseInt(_0x42f94d(0x1a3))/0x6*(parseInt(_0x42f94d(0x170))/0x7)+parseInt(_0x42f94d(0x171))/0x8*(-parseInt(_0x42f94d(0x1d1))/0x9)+parseInt(_0x42f94d(0x19b))/0xa+parseInt(_0x42f94d(0x218))/0xb;if(_0x313b67===_0xa1c57c)break;else _0x34649c['push'](_0x34649c['shift']());}catch(_0x3e9e29){_0x34649c['push'](_0x34649c['shift']());}}}(_0x2752,0x5dc0a),function(_0x3a1e77,_0x232670){const _0x3626af=_0x4979;typeof exports=='object'&&typeof module<'u'?_0x232670(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define=='function'&&define[_0x3626af(0x213)]?define([_0x3626af(0x182),_0x3626af(0x215),_0x3626af(0x1e0),_0x3626af(0x1fb),_0x3626af(0x1d8),_0x3626af(0x21c),_0x3626af(0x1ba)],_0x232670):(_0x3a1e77=typeof globalThis<'u'?globalThis:_0x3a1e77||self,_0x232670(_0x3a1e77[_0x3626af(0x1a2)]={},_0x3a1e77['UniverProEngineShape'],_0x3a1e77['UniverCore'],_0x3a1e77[_0x3626af(0x169)],_0x3a1e77[_0x3626af(0x226)],_0x3a1e77[_0x3626af(0x18b)],_0x3a1e77[_0x3626af(0x1af)]));}(this,function(_0xc272db,_0x4b5558,_0x6c2e17,_0x85db29,_0x345d28,_0x1dc474,_0x5bebb4){const _0x38bf7c=_0x4979;Object[_0x38bf7c(0x208)](_0xc272db,Symbol['toStringTag'],{'value':_0x38bf7c(0x195)});function _0x46fd09(_0x16ea33){'@babel/helpers - typeof';const _0x433ba8=_0x38bf7c;return _0x46fd09=typeof Symbol=='function'&&typeof Symbol[_0x433ba8(0x22a)]==_0x433ba8(0x184)?function(_0x2670f9){return typeof _0x2670f9;}:function(_0x520dac){const _0x45262d=_0x433ba8;return _0x520dac&&typeof Symbol==_0x45262d(0x231)&&_0x520dac[_0x45262d(0x20b)]===Symbol&&_0x520dac!==Symbol[_0x45262d(0x22b)]?_0x45262d(0x184):typeof _0x520dac;},_0x46fd09(_0x16ea33);}function _0x297764(_0x5834a1,_0x1fd224){const _0x51ab94=_0x38bf7c;if(_0x46fd09(_0x5834a1)!=_0x51ab94(0x17a)||!_0x5834a1)return _0x5834a1;var _0x16fe5e=_0x5834a1[Symbol[_0x51ab94(0x16b)]];if(_0x16fe5e!==void 0x0){var _0x4a5ac2=_0x16fe5e['call'](_0x5834a1,_0x1fd224||_0x51ab94(0x1df));if(_0x46fd09(_0x4a5ac2)!=_0x51ab94(0x17a))return _0x4a5ac2;throw TypeError(_0x51ab94(0x1cb));}return(_0x1fd224==='string'?String:Number)(_0x5834a1);}function _0x5444ca(_0x4f5949){const _0x34b63b=_0x38bf7c;var _0x440275=_0x297764(_0x4f5949,_0x34b63b(0x1be));return _0x46fd09(_0x440275)==_0x34b63b(0x184)?_0x440275:_0x440275+'';}function _0x40cf23(_0x242624,_0x5641a0,_0x5ee324){const _0x1c954e=_0x38bf7c;return(_0x5641a0=_0x5444ca(_0x5641a0))in _0x242624?Object[_0x1c954e(0x208)](_0x242624,_0x5641a0,{'value':_0x5ee324,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x242624[_0x5641a0]=_0x5ee324,_0x242624;}var _0x10ae47=class extends _0x6c2e17[_0x38bf7c(0x1dc)]{constructor(){const _0x934914=_0x38bf7c;super(),_0x40cf23(this,_0x934914(0x22e),new Map()),_0x40cf23(this,'_linesIds',new Set()),_0x40cf23(this,_0x934914(0x1cf),new Set());}[_0x38bf7c(0x1c6)](_0x3f9b29,_0x2b0d7b,_0x54259d){const _0x36759c=_0x38bf7c;let _0x7ac3d3=new _0x4b5558['ShapeModel'](_0x3f9b29,_0x2b0d7b,_0x54259d);return this['_shapes']['set'](_0x2b0d7b,_0x7ac3d3),(0x0,_0x4b5558[_0x36759c(0x168)])(_0x3f9b29)&&this[_0x36759c(0x20f)][_0x36759c(0x209)](_0x2b0d7b),_0x7ac3d3;}[_0x38bf7c(0x16c)](_0x510060){const _0x34e211=_0x38bf7c;let _0x590c68=[];for(let _0x59099b of this[_0x34e211(0x20f)]){let _0x473aef=this[_0x34e211(0x22e)][_0x34e211(0x1d2)](_0x59099b);if(_0x473aef){let _0x26416f=_0x473aef[_0x34e211(0x1f0)]();if(_0x26416f){var _0x2339b1,_0x52ab97;((_0x2339b1=_0x26416f[_0x34e211(0x16e)])==null?void 0x0:_0x2339b1[_0x34e211(0x237)])===_0x510060&&_0x590c68['push']({..._0x26416f[_0x34e211(0x16e)],'lineShapeId':_0x59099b,'isFrom':!0x0}),((_0x52ab97=_0x26416f['to'])==null?void 0x0:_0x52ab97['shapeId'])===_0x510060&&_0x590c68['push']({..._0x26416f['to'],'lineShapeId':_0x59099b,'isFrom':!0x1});}}}return _0x590c68;}['getLineShapeRelation'](_0x124fbe){const _0x17e7b1=_0x38bf7c;let _0xff850c=this[_0x17e7b1(0x22e)]['get'](_0x124fbe);if(_0xff850c)return _0xff850c[_0x17e7b1(0x1f0)]();}['getShapeType'](_0x5c9d2b){const _0x59138f=_0x38bf7c;let _0x4e9d2f=this[_0x59138f(0x22e)][_0x59138f(0x1d2)](_0x5c9d2b);if(_0x4e9d2f)return _0x4e9d2f[_0x59138f(0x1cd)]();}[_0x38bf7c(0x1fd)](_0x369500){return this['_shapes']['has'](_0x369500);}[_0x38bf7c(0x1e8)](_0x46219d){const _0x5ccf36=_0x38bf7c;let _0x3250fc=this[_0x5ccf36(0x22e)][_0x5ccf36(0x1d2)](_0x46219d);_0x3250fc&&((0x0,_0x4b5558[_0x5ccf36(0x168)])(_0x3250fc['getShapeType']())&&this[_0x5ccf36(0x20f)][_0x5ccf36(0x1ff)](_0x46219d),this[_0x5ccf36(0x22e)][_0x5ccf36(0x1ff)](_0x46219d));}[_0x38bf7c(0x17f)](){const _0x2fc0aa=_0x38bf7c;let _0x4d622d=[];return this[_0x2fc0aa(0x22e)]['forEach'](_0xc681de=>{const _0x3dbd88=_0x2fc0aa;_0x4d622d['push'](_0xc681de[_0x3dbd88(0x17f)]());}),_0x4d622d;}[_0x38bf7c(0x224)](_0xe705ca){const _0x48a77b=_0x38bf7c;for(let _0x2b2dbc of _0xe705ca){let {id:_0x21fc95,shapeType:_0x451a83}=_0x2b2dbc,_0x44f293=this[_0x48a77b(0x1c6)](_0x451a83,_0x21fc95,_0x2b2dbc[_0x48a77b(0x221)]);_0x44f293&&_0x44f293[_0x48a77b(0x19e)]()&&this['_linesIds'][_0x48a77b(0x209)](_0x21fc95);}}[_0x38bf7c(0x20d)](){const _0x486dc8=_0x38bf7c;this[_0x486dc8(0x1aa)]||(this['_shapes'][_0x486dc8(0x1e6)](_0x488cc7=>{const _0x100407=_0x486dc8;_0x488cc7[_0x100407(0x20d)]();}),this[_0x486dc8(0x22e)][_0x486dc8(0x1de)](),this[_0x486dc8(0x20f)][_0x486dc8(0x1de)](),this['_groupIds'][_0x486dc8(0x1de)](),super['dispose']());}};function _0x52e69d(_0x25093f,_0x1c7f54){return function(_0x1e3f24,_0x452fbd){_0x1c7f54(_0x1e3f24,_0x452fbd,_0x25093f);};}function _0x4502eb(_0x91abdf,_0x4674a6,_0x2174be,_0x5d53fa){const _0xc617b6=_0x38bf7c;var _0x25675a=arguments[_0xc617b6(0x203)],_0x4124ac=_0x25675a<0x3?_0x4674a6:_0x5d53fa===null?_0x5d53fa=Object[_0xc617b6(0x1f2)](_0x4674a6,_0x2174be):_0x5d53fa,_0x15f213;if(typeof Reflect==_0xc617b6(0x17a)&&typeof Reflect['decorate']==_0xc617b6(0x231))_0x4124ac=Reflect[_0xc617b6(0x194)](_0x91abdf,_0x4674a6,_0x2174be,_0x5d53fa);else{for(var _0x2ebb03=_0x91abdf['length']-0x1;_0x2ebb03>=0x0;_0x2ebb03--)(_0x15f213=_0x91abdf[_0x2ebb03])&&(_0x4124ac=(_0x25675a<0x3?_0x15f213(_0x4124ac):_0x25675a>0x3?_0x15f213(_0x4674a6,_0x2174be,_0x4124ac):_0x15f213(_0x4674a6,_0x2174be))||_0x4124ac);}return _0x25675a>0x3&&_0x4124ac&&Object['defineProperty'](_0x4674a6,_0x2174be,_0x4124ac),_0x4124ac;}let _0x3afbc8=class extends _0x6c2e17['Disposable']{constructor(_0x1552bd){const _0x5eaa73=_0x38bf7c;super(),this['_resourcesManagerService']=_0x1552bd,_0x40cf23(this,_0x5eaa73(0x1c1),new Map()),this[_0x5eaa73(0x1c0)]();}[_0x38bf7c(0x1fa)](_0x42b522,_0x4024e5){const _0x1ef425=_0x38bf7c;let _0x263236=this[_0x1ef425(0x1c1)][_0x1ef425(0x1d2)](_0x42b522);_0x263236||(_0x263236=new Map(),this['_shapeModelManagerMap']['set'](_0x42b522,_0x263236));let _0x5bf3f6=_0x263236[_0x1ef425(0x1d2)](_0x4024e5);return _0x5bf3f6||(_0x5bf3f6=new _0x10ae47(),_0x263236[_0x1ef425(0x1d7)](_0x4024e5,_0x5bf3f6)),_0x5bf3f6;}['insertShape'](_0x171d3a,_0x4ea86c,_0x3e749b,_0x27972d,_0x4505ac){const _0x7934d6=_0x38bf7c;this[_0x7934d6(0x1fa)](_0x171d3a,_0x4ea86c)[_0x7934d6(0x1c6)](_0x3e749b,_0x27972d,_0x4505ac);}[_0x38bf7c(0x1e8)](_0x26e59a,_0x4e936f,_0x4fc36e){const _0x49ffec=_0x38bf7c;this[_0x49ffec(0x1fa)](_0x26e59a,_0x4e936f)[_0x49ffec(0x1e8)](_0x4fc36e);}[_0x38bf7c(0x1bd)](_0x5caec2,_0x58233a,_0x1133df){const _0x52545e=_0x38bf7c;return this[_0x52545e(0x1fa)](_0x5caec2,_0x58233a)[_0x52545e(0x1cd)](_0x1133df);}[_0x38bf7c(0x1cd)](_0x5778b1,_0x49cc8d,_0x522611){const _0x1d1b98=_0x38bf7c;return this['_ensureShapeModelManager'](_0x5778b1,_0x49cc8d)[_0x1d1b98(0x1cd)](_0x522611);}[_0x38bf7c(0x1fd)](_0x3fc0d5,_0x135da4,_0x5aefc5){const _0x55e544=_0x38bf7c;return this[_0x55e544(0x1fa)](_0x3fc0d5,_0x135da4)[_0x55e544(0x1fd)](_0x5aefc5);}[_0x38bf7c(0x18e)](_0x335af6,_0x1a0851,_0x2286b4){const _0x2e5508=_0x38bf7c;return this['_ensureShapeModelManager'](_0x335af6,_0x1a0851)[_0x2e5508(0x1cd)](_0x2286b4);}[_0x38bf7c(0x1e4)](_0x5daad2,_0x5f22c0,_0x3cffa4){const _0x3e68cb=_0x38bf7c;let _0x2bb15c=this[_0x3e68cb(0x1fa)](_0x5daad2,_0x5f22c0);if(!_0x2bb15c[_0x3e68cb(0x1cd)](_0x3cffa4))return;let _0x4a290d=_0x2bb15c['_shapes'][_0x3e68cb(0x1d2)](_0x3cffa4);if(_0x4a290d)return _0x4a290d[_0x3e68cb(0x22d)]();}[_0x38bf7c(0x225)](_0x5b33b7,_0x56c6dd,_0x3d3170){const _0x39daae=_0x38bf7c;return this[_0x39daae(0x1fa)](_0x5b33b7,_0x56c6dd)[_0x39daae(0x22e)][_0x39daae(0x1d2)](_0x3d3170);}[_0x38bf7c(0x16c)](_0x40f1ef,_0x1c47d0,_0x4dd437){const _0x17e3ae=_0x38bf7c;return this[_0x17e3ae(0x1fa)](_0x40f1ef,_0x1c47d0)[_0x17e3ae(0x16c)](_0x4dd437);}[_0x38bf7c(0x1e1)](_0x3978c5,_0x31eea3,_0xd6da7c){const _0x773216=_0x38bf7c;let _0x33ccfa=this[_0x773216(0x1fa)](_0x3978c5,_0x31eea3)[_0x773216(0x22e)][_0x773216(0x1d2)](_0xd6da7c);if(_0x33ccfa)return _0x33ccfa['getShapeRelation']();}['setShapeType'](){}[_0x38bf7c(0x206)](_0x454958){const _0x5f2064=_0x38bf7c;let _0x44f0b4={},_0x4c97b7=this[_0x5f2064(0x1c1)]['get'](_0x454958);return _0x4c97b7&&_0x4c97b7[_0x5f2064(0x1e6)]((_0x2eb3c8,_0x40b66b)=>{const _0x5aed42=_0x5f2064;let _0x44eb25=_0x2eb3c8['toJSON']();_0x44eb25[_0x5aed42(0x203)]>0x0&&(_0x44f0b4[_0x40b66b]=_0x44eb25);}),JSON[_0x5f2064(0x1cc)](_0x44f0b4);}[_0x38bf7c(0x1e3)](_0x481215,_0x207a89){const _0x5abf19=_0x38bf7c;Object['keys'](_0x207a89)[_0x5abf19(0x1e6)](_0x209bfb=>{const _0x4a8254=_0x5abf19;this[_0x4a8254(0x1fa)](_0x481215,_0x209bfb)[_0x4a8254(0x224)](_0x207a89[_0x209bfb]);});}[_0x38bf7c(0x17f)](){const _0x2737ba=_0x38bf7c;let _0xdd428a={};return this['_shapeModelManagerMap'][_0x2737ba(0x1e6)]((_0x420d80,_0x8fa007)=>{_0xdd428a[_0x8fa007]={},_0x420d80['forEach']((_0x546a67,_0x282260)=>{_0xdd428a[_0x8fa007][_0x282260]=_0x546a67['toJSON']();});}),_0xdd428a;}['fromJSON'](_0x334911){const _0x2232f7=_0x38bf7c;Object[_0x2232f7(0x1c9)](_0x334911)[_0x2232f7(0x1e6)](_0x624f69=>{const _0x4703d8=_0x2232f7;let _0x3b6ffe=_0x334911[_0x624f69];Object[_0x4703d8(0x1c9)](_0x3b6ffe)[_0x4703d8(0x1e6)](_0xbe036a=>{const _0x3aa8e2=_0x4703d8;this[_0x3aa8e2(0x1fa)](_0x624f69,_0xbe036a)[_0x3aa8e2(0x224)](_0x3b6ffe[_0xbe036a]);});});}['_initSnapshot'](){const _0x566ace=_0x38bf7c;this[_0x566ace(0x167)]['registerPluginResource']({'pluginName':_0x566ace(0x20e),'businesses':[_0x6c2e17[_0x566ace(0x1e5)][_0x566ace(0x165)]],'toJson':_0x4346fb=>this[_0x566ace(0x206)](_0x4346fb),'parseJson':_0x1b79d8=>JSON['parse'](_0x1b79d8),'onLoad':(_0x39c71e,_0x3355e6)=>{const _0x42a30a=_0x566ace;this[_0x42a30a(0x1e3)](_0x39c71e,_0x3355e6);},'onUnLoad':_0x1a39fb=>{const _0x22396f=_0x566ace;let _0x17e502=this['_shapeModelManagerMap'][_0x22396f(0x1d2)](_0x1a39fb);_0x17e502&&(_0x17e502[_0x22396f(0x1e6)](_0x517d66=>{const _0x374f76=_0x22396f;_0x517d66[_0x374f76(0x20d)]();}),this[_0x22396f(0x1c1)][_0x22396f(0x1ff)](_0x1a39fb));}});}[_0x38bf7c(0x20d)](){const _0x4cf662=_0x38bf7c;this['_shapeModelManagerMap'][_0x4cf662(0x1e6)](_0x32de4a=>{const _0x1f963c=_0x4cf662;_0x32de4a[_0x1f963c(0x1e6)](_0x5db9a4=>{const _0x5b898b=_0x1f963c;_0x5db9a4[_0x5b898b(0x20d)]();});});}};_0x3afbc8=_0x4502eb([_0x52e69d(0x0,_0x6c2e17['IResourceManagerService'])],_0x3afbc8);let _0x486d6a={'id':'sheet.mutation.insert-shape','type':_0x6c2e17['CommandType'][_0x38bf7c(0x16f)],'handler':(_0x5e2040,_0x3e43f2)=>{const _0xb8160b=_0x38bf7c;let {unitId:_0x259fce,subUnitId:_0x506a45,shapeType:_0xa2ffa1,shapeId:_0x4ec590,shapeData:_0x32a1fd}=_0x3e43f2;return _0x5e2040[_0xb8160b(0x1d2)](_0x3afbc8)[_0xb8160b(0x200)](_0x259fce,_0x506a45,_0xa2ffa1,_0x4ec590,_0x32a1fd),!0x0;}},_0x67e7b4={'id':'sheet.mutation.remove-shape','type':_0x6c2e17[_0x38bf7c(0x1a1)]['MUTATION'],'handler':(_0x403bfd,_0x426134)=>{const _0x338e90=_0x38bf7c;let {unitId:_0x55209c,subUnitId:_0x1f2ecc,shapeId:_0x48dc4b}=_0x426134;return _0x403bfd['get'](_0x3afbc8)[_0x338e90(0x1e8)](_0x55209c,_0x1f2ecc,_0x48dc4b),!0x0;}},_0x135f2f={'type':_0x6c2e17[_0x38bf7c(0x1a1)]['COMMAND'],'id':_0x38bf7c(0x1c7),'handler':(_0x1a99b8,_0x4e206a)=>{const _0x5afad6=_0x38bf7c;var _0x1ad6a2,_0x40faf1;let _0x4a4e08=(0x0,_0x85db29[_0x5afad6(0x1d5)])(_0x1a99b8[_0x5afad6(0x1d2)](_0x6c2e17[_0x5afad6(0x1ca)]),_0x4e206a);if(!_0x4a4e08)return!0x1;let _0x364b5b=_0x1a99b8['get'](_0x85db29[_0x5afad6(0x1b4)]),{unitId:_0x53999e,subUnitId:_0x4b6755}=_0x4a4e08,_0x3c07a5=_0x364b5b[_0x5afad6(0x207)](_0x53999e,_0x4b6755);if(!_0x3c07a5)return!0x1;let _0x11d925=_0x1a99b8[_0x5afad6(0x1d2)](_0x6c2e17['ICommandService']),_0x59acbe=_0x1a99b8[_0x5afad6(0x1d2)](_0x6c2e17[_0x5afad6(0x181)]),_0x4ce47c=_0x1a99b8[_0x5afad6(0x1d2)](_0x85db29[_0x5afad6(0x202)]),_0x48d36a=_0x1a99b8[_0x5afad6(0x1d2)](_0x345d28[_0x5afad6(0x20a)]),{shapeType:_0x5e59e1,shapeData:_0x435a2c}=_0x4e206a,_0x5a4683=_0x4e206a[_0x5afad6(0x237)]||(0x0,_0x6c2e17['generateRandomId'])(),_0x4b78d0={'unitId':_0x53999e,'subUnitId':_0x4b6755,'shapeId':_0x5a4683,'shapeType':_0x5e59e1,'shapeData':_0x435a2c},_0x34a8ba=_0x4e206a[_0x5afad6(0x17b)]||0xc8,_0x507c42=_0x4e206a[_0x5afad6(0x1d4)]||0xc8,_0x3c1963=0x0,_0x4c06ea=0x0,_0xb32967={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0xbf3ccb={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x4e206a[_0x5afad6(0x204)]){let {x:_0x496d06,y:_0x17cbb3}=_0x4e206a[_0x5afad6(0x204)];_0x3c1963=_0x496d06,_0x4c06ea=_0x17cbb3,_0xb32967=_0x3c07a5[_0x5afad6(0x1a9)](_0x496d06,_0x17cbb3),_0xbf3ccb=_0x3c07a5[_0x5afad6(0x1a9)](_0x496d06+_0x34a8ba,_0x17cbb3+_0x507c42);}else{if(_0x4e206a[_0x5afad6(0x22c)]){let {startRow:_0x1c1420,startColumn:_0x140deb}=_0x4e206a[_0x5afad6(0x22c)];_0xb32967={'row':_0x1c1420,'rowOffset':0xa,'column':_0x140deb,'columnOffset':0xa};let _0x5cd6d7=_0x3c07a5[_0x5afad6(0x1b6)](_0x1c1420,_0x140deb);_0x3c1963=_0x5cd6d7[_0x5afad6(0x18d)]+0xa,_0x4c06ea=_0x5cd6d7[_0x5afad6(0x1ed)]+0xa,_0xbf3ccb=_0x3c07a5['getCellIndexAndOffsetByPosition'](_0x3c1963+_0x34a8ba,_0x4c06ea+_0x507c42);}}let _0x153a5e={'from':_0xb32967,'to':_0xbf3ccb},_0x376f3f={'unitId':_0x53999e,'subUnitId':_0x4b6755,'drawingId':_0x5a4683,'drawingType':_0x6c2e17[_0x5afad6(0x1ac)][_0x5afad6(0x1f1)],'sheetTransform':_0x153a5e,'transform':{'left':_0x3c1963,'top':_0x4c06ea,'width':_0x34a8ba,'height':_0x507c42},'data':{'shapeType':_0x5e59e1,'shapeData':_0x435a2c},'axisAlignSheetTransform':_0x153a5e,'allowTransform':!0x0};(0x0,_0x4b5558['isConnectorShape'])(_0x5e59e1)&&(_0x376f3f[_0x5afad6(0x1f3)]['fill']=!0x1,_0x376f3f[_0x5afad6(0x1f3)][_0x5afad6(0x183)]=!0x1,_0x376f3f[_0x5afad6(0x1f3)]['resizeEnabled']=!0x1,_0x376f3f['data'][_0x5afad6(0x1eb)]=!0x1,_0x376f3f['transform'][_0x5afad6(0x183)]=!0x1,_0x376f3f[_0x5afad6(0x1d3)][_0x5afad6(0x19c)]=!0x1,_0x376f3f[_0x5afad6(0x1d3)][_0x5afad6(0x1eb)]=!0x1);let {undo:_0x53e16e,redo:_0x43d5dd,objects:_0x1ea91f}=_0x48d36a['getBatchAddOp']([_0x376f3f]),_0x30c6c6=_0x4ce47c[_0x5afad6(0x172)]({'id':_0x345d28[_0x5afad6(0x227)]['id'],'params':{'unitId':_0x53999e,'drawings':[_0x376f3f]}}),_0x5944e9=[...(_0x1ad6a2=_0x30c6c6[_0x5afad6(0x189)])==null?[]:_0x1ad6a2,{'id':_0x345d28[_0x5afad6(0x166)]['id'],'params':{'unitId':_0x53999e,'subUnitId':_0x4b6755,'op':_0x43d5dd,'objects':_0x1ea91f,'type':_0x345d28[_0x5afad6(0x1bf)][_0x5afad6(0x1d0)]}},{'id':_0x345d28[_0x5afad6(0x238)]['id'],'params':[_0x53999e]},..._0x30c6c6[_0x5afad6(0x1a4)],{'id':_0x486d6a['id'],'params':_0x4b78d0}],_0x1ae4b9=[{'id':_0x67e7b4['id'],'params':{'unitId':_0x53999e,'subUnitId':_0x4b6755,'shapeId':_0x5a4683}},...(_0x40faf1=_0x30c6c6['preUndos'])==null?[]:_0x40faf1,{'id':_0x345d28['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x53999e,'subUnitId':_0x4b6755,'op':_0x53e16e,'objects':_0x1ea91f,'type':_0x345d28[_0x5afad6(0x1bf)][_0x5afad6(0x21d)]}},{'id':_0x345d28[_0x5afad6(0x238)]['id'],'params':[_0x53999e]},..._0x30c6c6[_0x5afad6(0x1bc)]];return(0x0,_0x6c2e17['sequenceExecute'])(_0x5944e9,_0x11d925)?(_0x59acbe[_0x5afad6(0x1ad)]({'unitID':_0x53999e,'undoMutations':_0x1ae4b9,'redoMutations':_0x5944e9}),!0x0):!0x1;}},_0x5db243={'id':_0x38bf7c(0x1b2),'type':_0x6c2e17[_0x38bf7c(0x1a1)][_0x38bf7c(0x16f)],'handler':(_0x33ce70,_0x2793dd)=>{const _0x5dcd9e=_0x38bf7c;let {unitId:_0x4ef914,subUnitId:_0x2055cc,shapeType:_0x578850,shapeId:_0x77651b,shapeData:_0x4029d3}=_0x2793dd,_0x3cd40c=_0x33ce70[_0x5dcd9e(0x1d2)](_0x3afbc8)['getShapeModel'](_0x4ef914,_0x2055cc,_0x77651b);return _0x3cd40c&&(_0x578850!==void 0x0&&_0x3cd40c[_0x5dcd9e(0x21b)](_0x578850),_0x4029d3&&(_0x3cd40c==null||_0x3cd40c[_0x5dcd9e(0x1c3)](_0x4029d3,!0x0))),!0x0;}},_0x4483a2={'type':_0x6c2e17[_0x38bf7c(0x1a1)]['COMMAND'],'id':_0x38bf7c(0x196),'handler':(_0x44ad05,_0x272433)=>{const _0xf49286=_0x38bf7c;var _0x2ff6eb,_0x185362;let _0xf4f016=(0x0,_0x85db29[_0xf49286(0x1d5)])(_0x44ad05[_0xf49286(0x1d2)](_0x6c2e17[_0xf49286(0x1ca)]),_0x272433);if(!_0xf4f016)return!0x1;let _0xfcfc87=_0x44ad05[_0xf49286(0x1d2)](_0x85db29[_0xf49286(0x1b4)]),{unitId:_0x32d852,subUnitId:_0x342632}=_0xf4f016,_0x545a5c=_0xfcfc87[_0xf49286(0x207)](_0x32d852,_0x342632);if(!_0x545a5c)return!0x1;let _0x35be05=_0x44ad05['get'](_0x3afbc8),{shapeId:_0x46b284,shapeType:_0x1fc787,shapeData:_0x1af36c,position:_0x12851b,width:_0x166f8d,height:_0xd3e1e0}=_0x272433,_0x42da14=_0x35be05[_0xf49286(0x225)](_0x32d852,_0x342632,_0x46b284);if(!_0x42da14)return!0x1;let _0x4b71dc=_0x44ad05[_0xf49286(0x1d2)](_0x6c2e17[_0xf49286(0x1ea)]),_0x5c7531=_0x44ad05[_0xf49286(0x1d2)](_0x6c2e17[_0xf49286(0x181)]),_0x5e0c28=_0x44ad05['get'](_0x85db29[_0xf49286(0x202)]),_0x279721=_0x44ad05[_0xf49286(0x1d2)](_0x345d28[_0xf49286(0x20a)]),_0x435282={'unitId':_0x32d852,'subUnitId':_0x342632,'shapeId':_0x46b284,'shapeType':_0x1fc787,'shapeData':_0x1af36c},_0x46aa54=_0x42da14[_0xf49286(0x1cd)](),_0x36b0ae=_0x42da14['getShapeData'](),{x:_0x419299,y:_0x15aff1}=_0x12851b,_0x107b28={'from':_0x545a5c[_0xf49286(0x1a9)](_0x419299,_0x15aff1),'to':_0x545a5c[_0xf49286(0x1a9)](_0x419299+_0x166f8d,_0x15aff1+_0xd3e1e0)},_0x174a7a={'unitId':_0x32d852,'subUnitId':_0x342632,'drawingId':_0x46b284,'drawingType':_0x6c2e17[_0xf49286(0x1ac)][_0xf49286(0x1f1)],'sheetTransform':_0x107b28,'transform':{'left':_0x419299,'top':_0x15aff1,'width':_0x166f8d,'height':_0xd3e1e0},'data':{'shapeType':_0x1fc787,'shapeData':_0x1af36c},'axisAlignSheetTransform':_0x107b28,'allowTransform':!0x0};(0x0,_0x4b5558[_0xf49286(0x168)])(_0x1fc787)&&(_0x174a7a[_0xf49286(0x1f3)]['fill']=!0x1,_0x174a7a[_0xf49286(0x1f3)]['rotateEnabled']=!0x1,_0x174a7a[_0xf49286(0x1f3)][_0xf49286(0x19c)]=!0x1,_0x174a7a[_0xf49286(0x1f3)][_0xf49286(0x1eb)]=!0x1,_0x174a7a[_0xf49286(0x1d3)][_0xf49286(0x183)]=!0x1,_0x174a7a[_0xf49286(0x1d3)][_0xf49286(0x19c)]=!0x1,_0x174a7a[_0xf49286(0x1d3)]['borderEnabled']=!0x1);let {undo:_0x6644ec,redo:_0x40f273,objects:_0x229245}=_0x279721[_0xf49286(0x17c)]([_0x174a7a]),_0xee6a80=_0x5e0c28[_0xf49286(0x172)]({'id':_0x345d28[_0xf49286(0x192)]['id'],'params':{'unitId':_0x32d852,'drawings':[_0x174a7a]}}),_0x37ee04=[...(_0x2ff6eb=_0xee6a80[_0xf49286(0x189)])==null?[]:_0x2ff6eb,{'id':_0x345d28[_0xf49286(0x166)]['id'],'params':{'unitId':_0x32d852,'subUnitId':_0x342632,'op':_0x40f273,'objects':_0x229245,'type':_0x345d28['DrawingApplyType'][_0xf49286(0x1a8)]}},{'id':_0x345d28[_0xf49286(0x238)]['id'],'params':[_0x32d852]},..._0xee6a80[_0xf49286(0x1a4)],{'id':_0x5db243['id'],'params':_0x435282}],_0x549041=[...(_0x185362=_0xee6a80['preUndos'])==null?[]:_0x185362,{'id':_0x345d28[_0xf49286(0x166)]['id'],'params':{'unitId':_0x32d852,'subUnitId':_0x342632,'op':_0x6644ec,'objects':_0x229245,'type':_0x345d28[_0xf49286(0x1bf)][_0xf49286(0x1a8)]}},{'id':_0x345d28[_0xf49286(0x238)]['id'],'params':[_0x32d852]},..._0xee6a80['undos'],{'id':_0x5db243['id'],'params':{'unitId':_0x32d852,'subUnitId':_0x342632,'shapeType':_0x46aa54,'shapeId':_0x46b284,'shapeData':_0x36b0ae}}];return(0x0,_0x6c2e17['sequenceExecute'])(_0x37ee04,_0x4b71dc)?(_0x5c7531[_0xf49286(0x1ad)]({'unitID':_0x32d852,'undoMutations':_0x549041,'redoMutations':_0x37ee04}),!0x0):!0x1;}},_0x2d47fd={'type':_0x6c2e17[_0x38bf7c(0x1a1)][_0x38bf7c(0x1ab)],'id':'sheet.command.toggle-shape-flip','handler':(_0x321e37,_0x1abc41)=>{const _0x901213=_0x38bf7c;var _0x431bc9,_0x52c3df;let _0x2b6894=(0x0,_0x85db29[_0x901213(0x1d5)])(_0x321e37[_0x901213(0x1d2)](_0x6c2e17[_0x901213(0x1ca)]),_0x1abc41);if(!_0x2b6894)return!0x1;let _0x24a732=_0x321e37['get'](_0x85db29[_0x901213(0x1b4)]),{unitId:_0x1f4906,subUnitId:_0x439c4d}=_0x2b6894,_0x22a1d4=_0x24a732[_0x901213(0x1f4)](_0x1f4906,_0x439c4d);if(!_0x22a1d4)return!0x1;let _0x21d708=_0x321e37[_0x901213(0x1d2)](_0x345d28[_0x901213(0x20a)]),{shapeId:_0x56c8cb,flipH:_0x5b0578,flipV:_0x1d607d}=_0x1abc41,_0x402db3=_0x21d708['getDrawingByParam']({'unitId':_0x1f4906,'subUnitId':_0x439c4d,'drawingId':_0x56c8cb});if(!_0x402db3)return!0x1;let _0x3a392b=_0x321e37[_0x901213(0x1d2)](_0x3afbc8)[_0x901213(0x225)](_0x1f4906,_0x439c4d,_0x56c8cb);if(!_0x3a392b)return!0x1;let _0x57d8e2=_0x321e37[_0x901213(0x1d2)](_0x6c2e17['ICommandService']),_0x1fae89=_0x321e37[_0x901213(0x1d2)](_0x6c2e17[_0x901213(0x181)]),_0x37daba=_0x321e37['get'](_0x85db29[_0x901213(0x202)]),_0x58abdf={..._0x402db3[_0x901213(0x1d3)]};_0x5b0578!==void 0x0&&(_0x58abdf[_0x901213(0x174)]=!_0x58abdf[_0x901213(0x174)]),_0x1d607d!==void 0x0&&(_0x58abdf['flipY']=!_0x58abdf[_0x901213(0x1e2)]);let _0x5a853c=(0x0,_0x345d28[_0x901213(0x1fe)])(_0x58abdf,_0x22a1d4),_0x38a52a=(0x0,_0x345d28[_0x901213(0x1f6)])(_0x58abdf,_0x22a1d4),_0x15cd54=_0x3a392b['getShapeType'](),_0x28e253=_0x3a392b[_0x901213(0x22d)](),_0x16564d={'unitId':_0x1f4906,'subUnitId':_0x439c4d,'drawingId':_0x56c8cb,'drawingType':_0x6c2e17[_0x901213(0x1ac)][_0x901213(0x1f1)],'sheetTransform':_0x5a853c,'transform':_0x58abdf,'data':{'shapeType':_0x15cd54,'shapeData':_0x28e253},'axisAlignSheetTransform':_0x38a52a,'allowTransform':!0x0},{undo:_0x22b8e3,redo:_0x6c920a,objects:_0x160b25}=_0x21d708[_0x901213(0x17c)]([_0x16564d]),_0x2f7da1=_0x37daba[_0x901213(0x172)]({'id':_0x345d28[_0x901213(0x192)]['id'],'params':{'unitId':_0x1f4906,'drawings':[_0x16564d]}}),_0x488bad=[...(_0x431bc9=_0x2f7da1['preRedos'])==null?[]:_0x431bc9,{'id':_0x345d28['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1f4906,'subUnitId':_0x439c4d,'op':_0x6c920a,'objects':_0x160b25,'type':_0x345d28['DrawingApplyType'][_0x901213(0x1a8)]}},{'id':_0x345d28[_0x901213(0x238)]['id'],'params':[_0x1f4906]},..._0x2f7da1['redos']],_0xbab8a=[...(_0x52c3df=_0x2f7da1[_0x901213(0x175)])==null?[]:_0x52c3df,{'id':_0x345d28[_0x901213(0x166)]['id'],'params':{'unitId':_0x1f4906,'subUnitId':_0x439c4d,'op':_0x22b8e3,'objects':_0x160b25,'type':_0x345d28['DrawingApplyType']['UPDATE']}},{'id':_0x345d28[_0x901213(0x238)]['id'],'params':[_0x1f4906]},..._0x2f7da1[_0x901213(0x1bc)]];if((0x0,_0x4b5558[_0x901213(0x168)])(_0x15cd54)){let _0x28dab4=_0x3a392b[_0x901213(0x1f0)]();if(_0x28dab4){let _0x212dea={..._0x28dab4};_0x212dea[_0x901213(0x16e)]=void 0x0,_0x212dea['to']=void 0x0,_0x488bad[_0x901213(0x198)]({'id':_0x5db243['id'],'params':{'unitId':_0x1f4906,'subUnitId':_0x439c4d,'shapeId':_0x56c8cb,'shapeType':_0x15cd54,'shapeData':{'relation':_0x212dea}}}),_0xbab8a[_0x901213(0x198)]({'id':_0x5db243['id'],'params':{'unitId':_0x1f4906,'subUnitId':_0x439c4d,'shapeId':_0x56c8cb,'shapeType':_0x15cd54,'shapeData':{'relation':_0x28dab4}}});}}return(0x0,_0x6c2e17[_0x901213(0x1f7)])(_0x488bad,_0x57d8e2)?(_0x1fae89[_0x901213(0x1ad)]({'unitID':_0x1f4906,'undoMutations':_0xbab8a,'redoMutations':_0x488bad}),!0x0):!0x1;}},_0xba3537={'type':_0x6c2e17[_0x38bf7c(0x1a1)]['COMMAND'],'id':'sheet.command.set-shape-rotate','handler':(_0x283593,_0x4fca88)=>{const _0x4933b2=_0x38bf7c;var _0x240b1b,_0x566de6;let _0x3f13ce=(0x0,_0x85db29[_0x4933b2(0x1d5)])(_0x283593[_0x4933b2(0x1d2)](_0x6c2e17[_0x4933b2(0x1ca)]),_0x4fca88);if(!_0x3f13ce)return!0x1;let _0x3e3a36=_0x283593[_0x4933b2(0x1d2)](_0x85db29[_0x4933b2(0x1b4)]),{unitId:_0x300bab,subUnitId:_0x4562ef}=_0x3f13ce,_0x3347ec=_0x3e3a36['getSkeleton'](_0x300bab,_0x4562ef);if(!_0x3347ec)return!0x1;let _0x3b89a3=_0x283593[_0x4933b2(0x1d2)](_0x345d28[_0x4933b2(0x20a)]),{shapeId:_0xedf03,rotate:_0x46245d}=_0x4fca88,_0x38bc40=_0x3b89a3[_0x4933b2(0x18c)]({'unitId':_0x300bab,'subUnitId':_0x4562ef,'drawingId':_0xedf03});if(!_0x38bc40)return!0x1;let _0x635760=_0x283593[_0x4933b2(0x1d2)](_0x3afbc8)[_0x4933b2(0x225)](_0x300bab,_0x4562ef,_0xedf03);if(!_0x635760)return!0x1;let _0x5cabf5=_0x283593[_0x4933b2(0x1d2)](_0x6c2e17[_0x4933b2(0x1ea)]),_0x45d4d1=_0x283593['get'](_0x6c2e17[_0x4933b2(0x181)]),_0x142a9a=_0x283593[_0x4933b2(0x1d2)](_0x85db29[_0x4933b2(0x202)]),_0x4c2606={..._0x38bc40[_0x4933b2(0x1d3)]};_0x46245d!==void 0x0&&(_0x4c2606['angle']=(_0x4c2606[_0x4933b2(0x210)]||0x0)+_0x46245d);let _0x46024e=(0x0,_0x345d28[_0x4933b2(0x1fe)])(_0x4c2606,_0x3347ec),_0x5e2edc=(0x0,_0x345d28[_0x4933b2(0x1f6)])(_0x4c2606,_0x3347ec),_0x33845a=_0x635760[_0x4933b2(0x1cd)](),_0x5894e7=_0x635760[_0x4933b2(0x22d)](),_0xe789e5={'unitId':_0x300bab,'subUnitId':_0x4562ef,'drawingId':_0xedf03,'drawingType':_0x6c2e17['DrawingTypeEnum'][_0x4933b2(0x1f1)],'sheetTransform':_0x46024e,'transform':_0x4c2606,'data':{'shapeType':_0x33845a,'shapeData':_0x5894e7},'axisAlignSheetTransform':_0x5e2edc,'allowTransform':!0x0},{undo:_0x446145,redo:_0x1b9951,objects:_0x28be5a}=_0x3b89a3[_0x4933b2(0x17c)]([_0xe789e5]),_0x3a637c=_0x142a9a[_0x4933b2(0x172)]({'id':_0x345d28[_0x4933b2(0x192)]['id'],'params':{'unitId':_0x300bab,'drawings':[_0xe789e5]}}),_0xb9f719=[...(_0x240b1b=_0x3a637c['preRedos'])==null?[]:_0x240b1b,{'id':_0x345d28[_0x4933b2(0x166)]['id'],'params':{'unitId':_0x300bab,'subUnitId':_0x4562ef,'op':_0x1b9951,'objects':_0x28be5a,'type':_0x345d28[_0x4933b2(0x1bf)][_0x4933b2(0x1a8)]}},{'id':_0x345d28['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x300bab]},..._0x3a637c['redos']],_0x5cc6ab=[...(_0x566de6=_0x3a637c[_0x4933b2(0x175)])==null?[]:_0x566de6,{'id':_0x345d28[_0x4933b2(0x166)]['id'],'params':{'unitId':_0x300bab,'subUnitId':_0x4562ef,'op':_0x446145,'objects':_0x28be5a,'type':_0x345d28[_0x4933b2(0x1bf)]['UPDATE']}},{'id':_0x345d28[_0x4933b2(0x238)]['id'],'params':[_0x300bab]},..._0x3a637c[_0x4933b2(0x1bc)]];return(0x0,_0x6c2e17[_0x4933b2(0x1f7)])(_0xb9f719,_0x5cabf5)?(_0x45d4d1[_0x4933b2(0x1ad)]({'unitID':_0x300bab,'undoMutations':_0x5cc6ab,'redoMutations':_0xb9f719}),!0x0):!0x1;}},_0x12fd4d={'type':_0x6c2e17['CommandType'][_0x38bf7c(0x1ab)],'id':_0x38bf7c(0x187),'handler':(_0x13f33f,_0x119c94)=>{const _0x24ffcb=_0x38bf7c;var _0x3ba5b2;let _0x4532c7=(0x0,_0x85db29[_0x24ffcb(0x1d5)])(_0x13f33f[_0x24ffcb(0x1d2)](_0x6c2e17['IUniverInstanceService']),_0x119c94);if(!_0x4532c7)return!0x1;let {unitId:_0x3806d9,subUnitId:_0x40aeb2}=_0x4532c7,{shapeId:_0x44a0ef}=_0x119c94,_0x2809b8=_0x13f33f[_0x24ffcb(0x1d2)](_0x3afbc8)[_0x24ffcb(0x225)](_0x3806d9,_0x40aeb2,_0x44a0ef);if(!_0x2809b8)return!0x1;let _0x343267=_0x2809b8[_0x24ffcb(0x220)](),_0x1ea886=(_0x3ba5b2=_0x343267==null?void 0x0:_0x343267[_0x24ffcb(0x1c5)])==null?!0x0:_0x3ba5b2,_0x14c0ce=!_0x1ea886,_0x4cb594=_0x13f33f[_0x24ffcb(0x1d2)](_0x6c2e17[_0x24ffcb(0x1ea)]),_0x24b61c=_0x13f33f[_0x24ffcb(0x1d2)](_0x6c2e17['IUndoRedoService']),_0x1c132d={'unitId':_0x3806d9,'subUnitId':_0x40aeb2,'shapeId':_0x44a0ef,'shapeData':{'shapeText':{'isHorizontal':_0x14c0ce}}},_0xe2a48d={'unitId':_0x3806d9,'subUnitId':_0x40aeb2,'shapeId':_0x44a0ef,'shapeData':{'shapeText':{'isHorizontal':_0x1ea886}}},_0x2fb204=[{'id':_0x5db243['id'],'params':_0x1c132d}],_0x22158a=[{'id':_0x5db243['id'],'params':_0xe2a48d}];return(0x0,_0x6c2e17[_0x24ffcb(0x1f7)])(_0x2fb204,_0x4cb594)?(_0x24b61c['pushUndoRedo']({'unitID':_0x3806d9,'undoMutations':_0x22158a,'redoMutations':_0x2fb204}),!0x0):!0x1;}},_0x439497={'type':_0x6c2e17[_0x38bf7c(0x1a1)][_0x38bf7c(0x1ab)],'id':_0x38bf7c(0x197),'handler':(_0x4e4b9b,_0x353f48)=>{const _0x5893f9=_0x38bf7c;var _0xba68bd,_0xd5deea,_0x31c5bc,_0xecc855;let _0x9cc1f8=(0x0,_0x85db29[_0x5893f9(0x1d5)])(_0x4e4b9b['get'](_0x6c2e17['IUniverInstanceService']),_0x353f48);if(!_0x9cc1f8)return!0x1;let _0x312b7e=_0x4e4b9b[_0x5893f9(0x1d2)](_0x85db29['SheetSkeletonService']),{unitId:_0xb9711c,subUnitId:_0x13be32}=_0x9cc1f8,_0x15e9cb=_0x312b7e[_0x5893f9(0x1f4)](_0xb9711c,_0x13be32);if(!_0x15e9cb)return!0x1;let _0x36e08a=_0x4e4b9b[_0x5893f9(0x1d2)](_0x345d28[_0x5893f9(0x20a)]),{connectorShapeId:_0x234a11,width:_0x2e5a0e,height:_0x3e48a0,left:_0xe33580,top:_0x53f846,flipX:_0x4c4e9b,flipY:_0x4b20e9,rotation:_0x5b32ac,oldAdjustValues:_0x111a5b,newAdjustValues:_0x375891,oldLineType:_0x86bfbe,newLineType:_0x22864c,oldRelation:_0x460c3f,newRelation:_0x2e2a2c}=_0x353f48,_0x3d7ada=_0x36e08a[_0x5893f9(0x18c)]({'unitId':_0xb9711c,'subUnitId':_0x13be32,'drawingId':_0x234a11});if(!_0x3d7ada)return!0x1;let _0x23e8c1=_0x4e4b9b[_0x5893f9(0x1d2)](_0x3afbc8)[_0x5893f9(0x225)](_0xb9711c,_0x13be32,_0x234a11);if(!_0x23e8c1)return!0x1;let _0x1ac2f3=_0x4e4b9b[_0x5893f9(0x1d2)](_0x6c2e17[_0x5893f9(0x1ea)]),_0x33f3af=_0x4e4b9b[_0x5893f9(0x1d2)](_0x6c2e17[_0x5893f9(0x181)]),_0x17d944=_0x4e4b9b['get'](_0x85db29[_0x5893f9(0x202)]),_0x35392e={..._0x3d7ada[_0x5893f9(0x1d3)],'width':_0x2e5a0e,'height':_0x3e48a0,'left':_0xe33580,'top':_0x53f846,'flipX':_0x4c4e9b,'flipY':_0x4b20e9,'angle':(_0xba68bd=_0x5b32ac==null?(_0xd5deea=_0x3d7ada['transform'])==null?void 0x0:_0xd5deea['angle']:_0x5b32ac)==null?0x0:_0xba68bd},_0x161d43=(0x0,_0x345d28[_0x5893f9(0x1fe)])(_0x35392e,_0x15e9cb),_0x12de01=(0x0,_0x345d28[_0x5893f9(0x1f6)])(_0x35392e,_0x15e9cb),_0x542b82=_0x23e8c1[_0x5893f9(0x1cd)](),_0x348ca6=_0x23e8c1[_0x5893f9(0x22d)](),_0x211a4c={'unitId':_0xb9711c,'subUnitId':_0x13be32,'drawingId':_0x234a11,'drawingType':_0x6c2e17[_0x5893f9(0x1ac)][_0x5893f9(0x1f1)],'sheetTransform':_0x161d43,'transform':_0x35392e,'data':{'shapeType':_0x22864c||_0x86bfbe||_0x542b82,'shapeData':{..._0x348ca6,'adjustValues':_0x375891||_0x111a5b||(_0x348ca6==null?void 0x0:_0x348ca6['adjustValues']),'relation':_0x2e2a2c||_0x460c3f||(_0x348ca6==null?void 0x0:_0x348ca6['relation'])}},'axisAlignSheetTransform':_0x12de01,'allowTransform':!0x0},{undo:_0x563eac,redo:_0x45cbd0,objects:_0x3729aa}=_0x36e08a[_0x5893f9(0x17c)]([_0x211a4c]),_0x5c60a8=_0x17d944[_0x5893f9(0x172)]({'id':_0x345d28['SetSheetDrawingCommand']['id'],'params':{'unitId':_0xb9711c,'drawings':[_0x211a4c]}}),_0x388f09=[...(_0x31c5bc=_0x5c60a8[_0x5893f9(0x189)])==null?[]:_0x31c5bc,{'id':_0x345d28[_0x5893f9(0x166)]['id'],'params':{'unitId':_0xb9711c,'subUnitId':_0x13be32,'op':_0x45cbd0,'objects':_0x3729aa,'type':_0x345d28[_0x5893f9(0x1bf)][_0x5893f9(0x1a8)]}},{'id':_0x345d28['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xb9711c]},..._0x5c60a8[_0x5893f9(0x1a4)],{'id':_0x5db243['id'],'params':{'unitId':_0xb9711c,'subUnitId':_0x13be32,'shapeId':_0x234a11,'shapeType':_0x22864c,'shapeData':{'adjustValues':_0x375891,'relation':_0x2e2a2c}}}],_0x391d5c=[...(_0xecc855=_0x5c60a8['preUndos'])==null?[]:_0xecc855,{'id':_0x345d28[_0x5893f9(0x166)]['id'],'params':{'unitId':_0xb9711c,'subUnitId':_0x13be32,'op':_0x563eac,'objects':_0x3729aa,'type':_0x345d28[_0x5893f9(0x1bf)][_0x5893f9(0x1a8)]}},{'id':_0x345d28[_0x5893f9(0x238)]['id'],'params':[_0xb9711c]},..._0x5c60a8['undos'],{'id':_0x5db243['id'],'params':{'unitId':_0xb9711c,'subUnitId':_0x13be32,'shapeId':_0x234a11,'shapeType':_0x542b82,'shapeData':{..._0x348ca6,'adjustValues':_0x111a5b||(_0x348ca6==null?void 0x0:_0x348ca6['adjustValues']),'relation':_0x460c3f||(_0x348ca6==null?void 0x0:_0x348ca6['relation'])}}}];return(0x0,_0x6c2e17[_0x5893f9(0x1f7)])(_0x388f09,_0x1ac2f3)?(_0x33f3af[_0x5893f9(0x1ad)]({'unitID':_0xb9711c,'undoMutations':_0x391d5c,'redoMutations':_0x388f09}),!0x0):!0x1;}},_0x509d9e={'type':_0x6c2e17[_0x38bf7c(0x1a1)][_0x38bf7c(0x1ab)],'id':_0x38bf7c(0x1a5),'handler':(_0x582758,_0x27dd47)=>{const _0x2bc7b7=_0x38bf7c;var _0x3f6a8b,_0x3b2343;let _0x52b131=(0x0,_0x85db29[_0x2bc7b7(0x1d5)])(_0x582758[_0x2bc7b7(0x1d2)](_0x6c2e17[_0x2bc7b7(0x1ca)]),_0x27dd47);if(!_0x52b131)return!0x1;let _0x3f9a14=_0x582758[_0x2bc7b7(0x1d2)](_0x85db29['SheetSkeletonService']),{unitId:_0x191978,subUnitId:_0x89ef80}=_0x52b131,_0x3f924e=_0x3f9a14[_0x2bc7b7(0x1f4)](_0x191978,_0x89ef80);if(!_0x3f924e)return!0x1;let _0x456de8=_0x582758[_0x2bc7b7(0x1d2)](_0x345d28['ISheetDrawingService']),{shapeId:_0x31fd8c,width:_0x123d6a,height:_0x2f230e,left:_0x5a0f28,top:_0x4fb80c,flipX:_0x5670f0,flipY:_0x40e52a,angle:_0x51c476,oldAdjustValues:_0x17d5d9,newAdjustValues:_0x23239f,oldLineType:_0x5a7ebf,newLineType:_0x28842f}=_0x27dd47,_0x475fde=_0x456de8['getDrawingByParam']({'unitId':_0x191978,'subUnitId':_0x89ef80,'drawingId':_0x31fd8c});if(!_0x475fde)return!0x1;let _0x10603e=_0x582758['get'](_0x3afbc8)['getShapeModel'](_0x191978,_0x89ef80,_0x31fd8c);if(!_0x10603e)return!0x1;let _0x31743c=_0x582758[_0x2bc7b7(0x1d2)](_0x6c2e17[_0x2bc7b7(0x1ea)]),_0x42707d=_0x582758[_0x2bc7b7(0x1d2)](_0x6c2e17['IUndoRedoService']),_0x2ae407=_0x582758[_0x2bc7b7(0x1d2)](_0x85db29['SheetInterceptorService']),_0x5e4407={..._0x475fde[_0x2bc7b7(0x1d3)],'width':_0x123d6a,'height':_0x2f230e,'left':_0x5a0f28,'top':_0x4fb80c,'flipX':_0x5670f0,'flipY':_0x40e52a,'angle':_0x51c476},_0x2cb1e4=(0x0,_0x345d28['transformToDrawingPosition'])(_0x5e4407,_0x3f924e),_0x4084b3=(0x0,_0x345d28['transformToAxisAlignPosition'])(_0x5e4407,_0x3f924e),_0x4b24ca=_0x10603e[_0x2bc7b7(0x1cd)](),_0xcecf0=_0x10603e['getShapeData'](),_0x496cd7={'unitId':_0x191978,'subUnitId':_0x89ef80,'drawingId':_0x31fd8c,'drawingType':_0x6c2e17['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x2cb1e4,'transform':_0x5e4407,'data':{'shapeType':_0x28842f||_0x5a7ebf||_0x4b24ca,'shapeData':{..._0xcecf0,'adjustValues':_0x23239f||_0x17d5d9||(_0xcecf0==null?void 0x0:_0xcecf0[_0x2bc7b7(0x18f)])}},'axisAlignSheetTransform':_0x4084b3,'allowTransform':!0x0},{undo:_0x8c4423,redo:_0x8d793b,objects:_0x2b9beb}=_0x456de8[_0x2bc7b7(0x17c)]([_0x496cd7]),_0x494e7e=_0x2ae407[_0x2bc7b7(0x172)]({'id':_0x345d28['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x191978,'drawings':[_0x496cd7]}}),_0xfd5ecd=[...(_0x3f6a8b=_0x494e7e['preRedos'])==null?[]:_0x3f6a8b,{'id':_0x345d28[_0x2bc7b7(0x166)]['id'],'params':{'unitId':_0x191978,'subUnitId':_0x89ef80,'op':_0x8d793b,'objects':_0x2b9beb,'type':_0x345d28['DrawingApplyType'][_0x2bc7b7(0x1a8)]}},{'id':_0x345d28[_0x2bc7b7(0x238)]['id'],'params':[_0x191978]},..._0x494e7e['redos'],{'id':_0x5db243['id'],'params':{'unitId':_0x191978,'subUnitId':_0x89ef80,'shapeId':_0x31fd8c,'shapeType':_0x28842f,'shapeData':{'adjustValues':_0x23239f}}}],_0x3b7055=[...(_0x3b2343=_0x494e7e[_0x2bc7b7(0x175)])==null?[]:_0x3b2343,{'id':_0x345d28['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x191978,'subUnitId':_0x89ef80,'op':_0x8c4423,'objects':_0x2b9beb,'type':_0x345d28[_0x2bc7b7(0x1bf)][_0x2bc7b7(0x1a8)]}},{'id':_0x345d28[_0x2bc7b7(0x238)]['id'],'params':[_0x191978]},..._0x494e7e[_0x2bc7b7(0x1bc)],{'id':_0x5db243['id'],'params':{'unitId':_0x191978,'subUnitId':_0x89ef80,'shapeId':_0x31fd8c,'shapeType':_0x4b24ca,'shapeData':{..._0xcecf0,'adjustValues':_0x17d5d9||(_0xcecf0==null?void 0x0:_0xcecf0[_0x2bc7b7(0x18f)])}}}];return(0x0,_0x6c2e17[_0x2bc7b7(0x1f7)])(_0xfd5ecd,_0x31743c)?(_0x42707d[_0x2bc7b7(0x1ad)]({'unitID':_0x191978,'undoMutations':_0x3b7055,'redoMutations':_0xfd5ecd}),!0x0):!0x1;}},_0x207d5d={'id':_0x38bf7c(0x232),'type':_0x6c2e17['CommandType']['MUTATION'],'handler':(_0x44b29a,_0x5225d7)=>{const _0x5be732=_0x38bf7c;let {unitId:_0x1ce433,subUnitId:_0x32a49e,shapeType:_0x2ffa00,shapeId:_0x159d9a,shapeData:_0x2b80f9}=_0x5225d7,_0x5a4daa=_0x44b29a['get'](_0x3afbc8)[_0x5be732(0x225)](_0x1ce433,_0x32a49e,_0x159d9a);return _0x5a4daa&&(_0x5a4daa[_0x5be732(0x21b)](_0x2ffa00),_0x2b80f9&&(_0x5a4daa==null||_0x5a4daa[_0x5be732(0x1c3)](_0x2b80f9))),!0x0;}},_0x577bfc={'id':_0x38bf7c(0x1ee),'type':_0x6c2e17[_0x38bf7c(0x1a1)][_0x38bf7c(0x1ab)],'handler':(_0x32276a,_0x45928a)=>{const _0x223a52=_0x38bf7c;if(!_0x45928a)return!0x1;let _0x8a5c2f=_0x32276a[_0x223a52(0x1d2)](_0x6c2e17[_0x223a52(0x1ea)]),_0xb3090b=_0x32276a['get'](_0x3afbc8),_0x19df89=_0x32276a[_0x223a52(0x1d2)](_0x6c2e17[_0x223a52(0x181)]),_0x2c7900=[],_0x3137fa=[],{unitId:_0x355d2a,subUnitId:_0x14ac8b,shapeId:_0x4a8d08,shapeType:_0x4f8877,shapeData:_0x10afb0}=_0x45928a,_0x3d80c3=_0xb3090b[_0x223a52(0x225)](_0x355d2a,_0x14ac8b,_0x4a8d08);if(_0x3d80c3){let _0x46c893=_0x3d80c3[_0x223a52(0x1cd)](),_0x246439=Object['assign']({},_0x3d80c3['getShapeData']()),_0x532314={'unitId':_0x355d2a,'subUnitId':_0x14ac8b,'shapeId':_0x4a8d08,'shapeType':_0x4f8877,'shapeData':_0x10afb0},_0x4d8d82={'unitId':_0x355d2a,'subUnitId':_0x14ac8b,'shapeId':_0x4a8d08,'shapeType':_0x46c893,'shapeData':_0x246439};return _0x2c7900[_0x223a52(0x198)]({'id':_0x207d5d['id'],'params':_0x532314}),_0x3137fa[_0x223a52(0x198)]({'id':_0x207d5d['id'],'params':_0x4d8d82}),_0x2c7900[_0x223a52(0x1f9)](_0x4f7fb5=>_0x8a5c2f[_0x223a52(0x20c)](_0x4f7fb5['id'],_0x4f7fb5[_0x223a52(0x19a)]))&&_0x19df89[_0x223a52(0x1ad)]({'unitID':_0x355d2a,'redoMutations':[..._0x2c7900],'undoMutations':[..._0x3137fa]}),!0x0;}return!0x1;}};var _0x341ec9='@univerjs-pro/sheets-shape',_0x4f2837=_0x38bf7c(0x235);let _0x12e098=_0x38bf7c(0x163);Symbol(_0x12e098);let _0x1b1bbf={},_0x143a8a=class extends _0x6c2e17[_0x38bf7c(0x1dc)]{constructor(_0x2612e9,_0x3cc9f8,_0x4ca244,_0x4bb88b,_0x521af5){const _0x50fc4a=_0x38bf7c;super(),this[_0x50fc4a(0x1c4)]=_0x2612e9,this[_0x50fc4a(0x1bb)]=_0x3cc9f8,this[_0x50fc4a(0x1ec)]=_0x4ca244,this[_0x50fc4a(0x17d)]=_0x4bb88b,this[_0x50fc4a(0x212)]=_0x521af5,this[_0x50fc4a(0x177)](),this[_0x50fc4a(0x214)]();}['_initCommands'](){const _0x49d405=_0x38bf7c;[_0x135f2f,_0x4483a2,_0x2d47fd,_0xba3537,_0x12fd4d,_0x439497,_0x509d9e,_0x486d6a,_0x67e7b4,_0x207d5d,_0x5db243][_0x49d405(0x1e6)](_0x5bd1ba=>this[_0x49d405(0x21a)](this[_0x49d405(0x1c4)][_0x49d405(0x1a7)](_0x5bd1ba)));}[_0x38bf7c(0x214)](){const _0x462dcc=_0x38bf7c;this[_0x462dcc(0x21a)](this[_0x462dcc(0x1bb)][_0x462dcc(0x233)]({'getMutations':_0x54b020=>{const _0x187f65=_0x462dcc;if(_0x54b020['id']===_0x345d28[_0x187f65(0x1b1)]['id']){let {drawings:_0xe87c96}=_0x54b020[_0x187f65(0x19a)],_0x17915b=_0xe87c96['filter'](_0x54a03b=>_0x54a03b['drawingType']===_0x6c2e17[_0x187f65(0x1ac)][_0x187f65(0x1f1)]);if(_0x17915b['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x21d94f=[],_0x4a3736=[];return _0x17915b[_0x187f65(0x1e6)](_0xa47f1=>{const _0x343d36=_0x187f65;let {unitId:_0x197358,subUnitId:_0x547a2b,drawingId:_0x5f59ab}=_0xa47f1,_0x23b360=this[_0x343d36(0x17d)][_0x343d36(0x225)](_0x197358,_0x547a2b,_0x5f59ab);if(!_0x23b360)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x23b360);_0x21d94f[_0x343d36(0x198)]({'id':_0x67e7b4['id'],'params':{'unitId':_0x197358,'subUnitId':_0x547a2b,'shapeId':_0x5f59ab}}),_0x4a3736['push']({'id':_0x486d6a['id'],'params':{'unitId':_0x197358,'subUnitId':_0x547a2b,'shapeId':_0x5f59ab,'shapeType':_0x23b360[_0x343d36(0x1cd)](),'shapeData':_0x23b360[_0x343d36(0x22d)]()}});let _0x5b5e0c=this['_sheetsShapeService']['getBasicShapeRelation'](_0x197358,_0x547a2b,_0x5f59ab);if(_0x5b5e0c)for(let _0x1e5a00 of _0x5b5e0c){let _0x59876c=_0x1e5a00[_0x343d36(0x228)],_0x30c77c=_0x1e5a00[_0x343d36(0x1b5)],_0x483871=_0x30c77c?{'from':void 0x0}:{'to':void 0x0},_0x3c01e8=_0x30c77c?{'from':{'shapeId':_0x1e5a00['shapeId'],'cxnIndex':_0x1e5a00[_0x343d36(0x176)]}}:{'to':{'shapeId':_0x1e5a00['shapeId'],'cxnIndex':_0x1e5a00['cxnIndex']}};_0x21d94f[_0x343d36(0x198)]({'id':_0x5db243['id'],'params':{'unitId':_0x197358,'subUnitId':_0x547a2b,'shapeId':_0x59876c,'shapeData':{'relation':_0x483871}}}),_0x4a3736[_0x343d36(0x198)]({'id':_0x5db243['id'],'params':{'unitId':_0x197358,'subUnitId':_0x547a2b,'shapeId':_0x59876c,'shapeData':{'relation':_0x3c01e8}}});}}),{'preRedos':_0x21d94f,'redos':[],'preUndos':[],'undos':_0x4a3736};}if(_0x54b020['id']===_0x345d28['SetSheetDrawingCommand']['id']){let {drawings:_0x5986d9}=_0x54b020[_0x187f65(0x19a)],_0x3bc3de=_0x5986d9[_0x187f65(0x23b)](_0x366506=>_0x366506[_0x187f65(0x180)]===_0x6c2e17[_0x187f65(0x1ac)][_0x187f65(0x1f1)]);if(_0x3bc3de[_0x187f65(0x203)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x237ece=[],_0xe67bf6=[];for(let _0x5676da of _0x3bc3de){let {unitId:_0x41741a,subUnitId:_0x46bbdd,drawingId:_0xdbb992,transform:_0x395700}=_0x5676da;if(!_0x41741a||!_0x46bbdd||!_0xdbb992||!_0x395700)continue;let _0x376b0b=this[_0x187f65(0x17d)][_0x187f65(0x225)](_0x41741a,_0x46bbdd,_0xdbb992);if(!_0x376b0b)throw TypeError(_0x187f65(0x19d)+_0x376b0b);if((0x0,_0x4b5558['isConnectorShape'])(_0x376b0b['getShapeType']())){let _0xb19a73=this['_sheetsShapeService'][_0x187f65(0x1e1)](_0x41741a,_0x46bbdd,_0xdbb992);_0xb19a73&&(_0x237ece[_0x187f65(0x198)]({'id':_0x5db243['id'],'params':{'unitId':_0x41741a,'subUnitId':_0x46bbdd,'shapeId':_0xdbb992,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0xe67bf6[_0x187f65(0x198)]({'id':_0x5db243['id'],'params':{'unitId':_0x41741a,'subUnitId':_0x46bbdd,'shapeId':_0xdbb992,'shapeData':{'relation':_0xb19a73}}}));}else{let _0x3e90a2=this['_sheetsShapeService'][_0x187f65(0x16c)](_0x41741a,_0x46bbdd,_0xdbb992);if(_0x3e90a2&&_0x3e90a2[_0x187f65(0x203)]>0x0)for(let _0x4997ef of _0x3e90a2){let _0x34ee9a=_0x4997ef[_0x187f65(0x228)],_0x3b0081=_0x4997ef[_0x187f65(0x1b5)],_0x357814=this['_sheetsShapeService'][_0x187f65(0x225)](_0x41741a,_0x46bbdd,_0x34ee9a);if(!_0x357814)continue;let _0x10b9e4=_0x357814[_0x187f65(0x217)](),_0x1a4d10=_0x357814[_0x187f65(0x178)]();_0x10b9e4&&_0x1a4d10?this[_0x187f65(0x191)](_0x41741a,_0x46bbdd,_0x34ee9a,_0x357814,_0x10b9e4,_0x1a4d10,_0x237ece,_0xe67bf6,_0xdbb992,_0x395700):this['_addLineFollowShapeUpdates'](_0x41741a,_0x46bbdd,_0x34ee9a,_0x357814,_0x3b0081?_0x10b9e4:_0x1a4d10,_0x3b0081,_0x237ece,_0xe67bf6,_0xdbb992,_0x395700);}}}return{'preRedos':[],'redos':_0x237ece,'preUndos':_0xe67bf6,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x38bf7c(0x23c)](_0x27165b,_0x1b2c4b,_0x54950d,_0x538dff,_0x3d08b5){const _0x1515b9=_0x38bf7c;if(!_0x1b2c4b||!_0x54950d)return null;let {shapeId:_0x3220aa,cxnIndex:_0x2f14d5}=_0x27165b,_0x2d6e7d=this[_0x1515b9(0x17d)][_0x1515b9(0x225)](_0x1b2c4b,_0x54950d,_0x3220aa);if(!_0x2d6e7d)return null;let _0x5e773c=this[_0x1515b9(0x212)][_0x1515b9(0x18c)]({'unitId':_0x1b2c4b,'subUnitId':_0x54950d,'drawingId':_0x3220aa});if(!(_0x5e773c!=null&&_0x5e773c[_0x1515b9(0x1d3)]))return null;let {left:_0x3e2773=0x0,top:_0x22fd05=0x0,width:_0x3e837d=0x0,height:_0x3d5b22=0x0,flipX:_0x2c5fdb=!0x1,flipY:_0x5d1d4c=!0x1,angle:_0x5371eb}=_0x5e773c[_0x1515b9(0x1d3)];if(_0x3d08b5&&_0x538dff===_0x3220aa){var _0x418969,_0x9a9471,_0x57105d,_0x5eb0a7,_0x41b295,_0x321fc8,_0x122a39;_0x3e2773=(_0x418969=_0x3d08b5[_0x1515b9(0x1b9)])==null?_0x3e2773:_0x418969,_0x22fd05=(_0x9a9471=_0x3d08b5['top'])==null?_0x22fd05:_0x9a9471,_0x3e837d=(_0x57105d=_0x3d08b5[_0x1515b9(0x17b)])==null?_0x3e837d:_0x57105d,_0x3d5b22=(_0x5eb0a7=_0x3d08b5['height'])==null?_0x3d5b22:_0x5eb0a7,_0x2c5fdb=(_0x41b295=_0x3d08b5[_0x1515b9(0x174)])==null?_0x2c5fdb:_0x41b295,_0x5d1d4c=(_0x321fc8=_0x3d08b5[_0x1515b9(0x1e2)])==null?_0x5d1d4c:_0x321fc8,_0x5371eb=(_0x122a39=_0x3d08b5['angle'])==null?_0x5371eb:_0x122a39;}_0x2d6e7d['updateContext']({'width':_0x3e837d,'height':_0x3d5b22});let _0x180e8a=_0x2d6e7d[_0x1515b9(0x1ae)]()['find'](_0x3d0140=>_0x3d0140['index']===_0x2f14d5);if(!_0x180e8a)return null;let _0x60db8e=_0x2c5fdb?_0x3e837d-_0x180e8a['x']:_0x180e8a['x'],_0x6aa7c9=_0x5d1d4c?_0x3d5b22-_0x180e8a['y']:_0x180e8a['y'];if(_0x5371eb!==0x0&&_0x5371eb!=null){let _0x481b5e=_0x5371eb*Math['PI']/0xb4,_0x519a58=Math[_0x1515b9(0x1a6)](_0x481b5e),_0x42cb5d=Math[_0x1515b9(0x188)](_0x481b5e),_0x255215=_0x3e837d/0x2,_0x468ec5=_0x3d5b22/0x2,_0x5edc72=_0x60db8e-_0x255215,_0x1b258a=_0x6aa7c9-_0x468ec5;_0x60db8e=_0x255215+_0x5edc72*_0x519a58-_0x1b258a*_0x42cb5d,_0x6aa7c9=_0x468ec5+_0x5edc72*_0x42cb5d+_0x1b258a*_0x519a58;}_0x60db8e+=_0x3e2773,_0x6aa7c9+=_0x22fd05;let _0x19987a=_0x180e8a[_0x1515b9(0x199)]/0xea60;_0x2c5fdb&&(_0x19987a=0xb4-_0x19987a),_0x5d1d4c&&(_0x19987a=-_0x19987a),_0x19987a+=_0x5371eb||0x0,_0x19987a=(_0x19987a%0x168+0x168)%0x168;let _0x577916=(0x0,_0x4b5558[_0x1515b9(0x236)])({'left':_0x3e2773,'top':_0x22fd05,'width':_0x3e837d,'height':_0x3d5b22},_0x5371eb||0x0);return{'point':{'x':_0x60db8e,'y':_0x6aa7c9},'angle':_0x19987a,'bounds':_0x577916};}[_0x38bf7c(0x191)](_0x311cfa,_0x4557ed,_0x5c98fa,_0x3d9940,_0x96d1a7,_0xc3946b,_0x8762e8,_0x566d04,_0x48b01f,_0x49ed81){const _0x374abb=_0x38bf7c;let _0x4c141d=this['_sheetSkeletonService']['getSkeleton'](_0x311cfa,_0x4557ed);if(!_0x4c141d)return;let _0x388639=_0x3d9940[_0x374abb(0x1f0)](),_0x2eac6c=_0x3d9940['getAdjustNames'](),_0xb25a41={},_0x6d2c6e={};_0x2eac6c[_0x374abb(0x1e6)](_0x1f96c8=>{const _0x3dbb69=_0x374abb;let _0x27ff1e=_0x3d9940[_0x3dbb69(0x16d)](_0x1f96c8);_0x6d2c6e[_0x1f96c8]=_0x27ff1e==null?0x0:_0x27ff1e;});let _0x23034f=this[_0x374abb(0x23c)](_0x96d1a7,_0x311cfa,_0x4557ed,_0x48b01f,_0x49ed81),_0x5a4501=this['_getConnectPointInfo'](_0xc3946b,_0x311cfa,_0x4557ed,_0x48b01f,_0x49ed81);if(_0x23034f&&_0x5a4501){let _0x1f62c0=_0x3d9940[_0x374abb(0x1cd)](),_0x19cc73=(0x0,_0x4b5558[_0x374abb(0x193)])(_0x23034f,_0x5a4501,_0x1f62c0),_0x1ebf63=_0x1f62c0;if(_0x19cc73){let _0x33dbcd=(0x0,_0x4b5558[_0x374abb(0x186)])(_0x19cc73,_0x3d9940[_0x374abb(0x1cd)]()),_0x5bdeeb=this[_0x374abb(0x212)]['getDrawingData'](_0x311cfa,_0x4557ed);if(_0x5bdeeb&&_0x5bdeeb[_0x5c98fa]){let _0x460e47=_0x5bdeeb[_0x5c98fa];_0x1ebf63=_0x33dbcd[_0x374abb(0x21e)];for(let [_0xcc7c83,_0x6a5fb8]of Object[_0x374abb(0x222)](_0x33dbcd[_0x374abb(0x18f)]))_0xb25a41[_0xcc7c83]=_0x6a5fb8;let _0x526c8a={..._0x460e47['transform'],'width':_0x33dbcd['worldRect'][_0x374abb(0x17b)],'height':_0x33dbcd[_0x374abb(0x173)][_0x374abb(0x1d4)],'left':_0x33dbcd['worldRect'][_0x374abb(0x1b9)],'top':_0x33dbcd['worldRect']['top'],'flipX':_0x33dbcd[_0x374abb(0x173)][_0x374abb(0x174)],'flipY':_0x33dbcd[_0x374abb(0x173)]['flipY'],'angle':_0x33dbcd[_0x374abb(0x1db)]},_0x1e3f84=(0x0,_0x345d28[_0x374abb(0x1fe)])(_0x526c8a,_0x4c141d),_0x390d11=(0x0,_0x345d28[_0x374abb(0x1f6)])(_0x526c8a,_0x4c141d),_0x436f01={'unitId':_0x311cfa,'subUnitId':_0x4557ed,'drawingType':_0x6c2e17[_0x374abb(0x1ac)][_0x374abb(0x1f1)],'drawingId':_0x5c98fa,'transform':_0x526c8a,'sheetTransform':_0x1e3f84,'axisAlignSheetTransform':_0x390d11},{unitId:_0x1f7baa,subUnitId:_0x561854,undo:_0x56272a,redo:_0x511f30,objects:_0xe5f6cb}=this[_0x374abb(0x212)][_0x374abb(0x17c)]([_0x436f01]);_0x8762e8[_0x374abb(0x198)]({'id':_0x345d28[_0x374abb(0x166)]['id'],'params':{'unitId':_0x1f7baa,'subUnitId':_0x561854,'op':_0x511f30,'objects':_0xe5f6cb,'type':_0x345d28['DrawingApplyType'][_0x374abb(0x1a8)]}}),_0x566d04[_0x374abb(0x198)]({'id':_0x345d28['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1f7baa,'subUnitId':_0x561854,'op':_0x56272a,'objects':_0xe5f6cb,'type':_0x345d28[_0x374abb(0x1bf)][_0x374abb(0x1a8)]}});}_0x3d9940[_0x374abb(0x219)]();}_0x8762e8[_0x374abb(0x198)]({'id':_0x5db243['id'],'params':{'unitId':_0x311cfa,'subUnitId':_0x4557ed,'shapeId':_0x5c98fa,'shapeType':_0x1ebf63,'shapeData':{'adjustValues':_0xb25a41,'relation':_0x388639}}}),_0x566d04[_0x374abb(0x198)]({'id':_0x5db243['id'],'params':{'unitId':_0x311cfa,'subUnitId':_0x4557ed,'shapeId':_0x5c98fa,'shapeType':_0x1f62c0,'shapeData':{'adjustValues':_0x6d2c6e,'relation':_0x388639}}});}}[_0x38bf7c(0x211)](_0x1e4e92,_0x27071e,_0x479c23,_0x18fab7,_0x2e7028,_0x1600c7,_0x141e23,_0x1a89a9,_0x6f6071,_0x4d8642){const _0x4c9c9a=_0x38bf7c;var _0x146738;if(!_0x2e7028)return;let _0x1eb656=this[_0x4c9c9a(0x1ec)][_0x4c9c9a(0x1f4)](_0x1e4e92,_0x27071e);if(!_0x1eb656)return;let _0x29abc9=(_0x146738=this['_drawingManagerService'][_0x4c9c9a(0x18c)]({'unitId':_0x1e4e92,'subUnitId':_0x27071e,'drawingId':_0x6f6071}))==null?void 0x0:_0x146738[_0x4c9c9a(0x1d3)];if(!_0x29abc9)return;let _0x2668fc=_0x29abc9[_0x4c9c9a(0x1b9)]!==_0x4d8642[_0x4c9c9a(0x1b9)]||_0x29abc9['top']!==_0x4d8642['top'],_0x3e238c=_0x29abc9[_0x4c9c9a(0x17b)]!==_0x4d8642[_0x4c9c9a(0x17b)]||_0x29abc9[_0x4c9c9a(0x1d4)]!==_0x4d8642[_0x4c9c9a(0x1d4)],_0x39b4f5=_0x29abc9['flipX']!==_0x4d8642['flipX']||_0x29abc9['flipY']!==_0x4d8642[_0x4c9c9a(0x1e2)],_0x51099d=_0x29abc9[_0x4c9c9a(0x210)]!==_0x4d8642[_0x4c9c9a(0x210)];if(_0x2668fc&&!_0x3e238c&&!_0x39b4f5&&!_0x51099d){var _0x10a077,_0xb02099,_0x22fd38,_0x23d7bd;let _0x466b14=((_0x10a077=_0x4d8642[_0x4c9c9a(0x1b9)])==null?0x0:_0x10a077)-((_0xb02099=_0x29abc9[_0x4c9c9a(0x1b9)])==null?0x0:_0xb02099),_0x69edab=((_0x22fd38=_0x4d8642['top'])==null?0x0:_0x22fd38)-((_0x23d7bd=_0x29abc9['top'])==null?0x0:_0x23d7bd),_0x1a3fa1=this[_0x4c9c9a(0x212)][_0x4c9c9a(0x1b8)](_0x1e4e92,_0x27071e);if(_0x1a3fa1&&_0x1a3fa1[_0x479c23]){var _0x2f0e5f,_0x570fb6,_0x52dfe9,_0x4cdd16;let _0x211be8=_0x1a3fa1[_0x479c23],_0xe19f8b={..._0x211be8['transform'],'left':((_0x2f0e5f=(_0x570fb6=_0x211be8[_0x4c9c9a(0x1d3)])==null?void 0x0:_0x570fb6[_0x4c9c9a(0x1b9)])==null?0x0:_0x2f0e5f)+_0x466b14,'top':((_0x52dfe9=(_0x4cdd16=_0x211be8['transform'])==null?void 0x0:_0x4cdd16[_0x4c9c9a(0x164)])==null?0x0:_0x52dfe9)+_0x69edab},_0x91d77f=(0x0,_0x345d28[_0x4c9c9a(0x1fe)])(_0xe19f8b,_0x1eb656),_0x122661=(0x0,_0x345d28[_0x4c9c9a(0x1f6)])(_0xe19f8b,_0x1eb656),_0xac920e={'unitId':_0x1e4e92,'subUnitId':_0x27071e,'drawingType':_0x6c2e17['DrawingTypeEnum']['DRAWING_SHAPE'],'drawingId':_0x479c23,'transform':_0xe19f8b,'sheetTransform':_0x91d77f,'axisAlignSheetTransform':_0x122661},{unitId:_0x44450a,subUnitId:_0x11d056,undo:_0x449928,redo:_0x462ed2,objects:_0x333eda}=this[_0x4c9c9a(0x212)][_0x4c9c9a(0x17c)]([_0xac920e]);_0x141e23[_0x4c9c9a(0x198)]({'id':_0x345d28[_0x4c9c9a(0x166)]['id'],'params':{'unitId':_0x44450a,'subUnitId':_0x11d056,'op':_0x462ed2,'objects':_0x333eda,'type':_0x345d28[_0x4c9c9a(0x1bf)]['UPDATE']}}),_0x1a89a9[_0x4c9c9a(0x198)]({'id':_0x345d28[_0x4c9c9a(0x166)]['id'],'params':{'unitId':_0x44450a,'subUnitId':_0x11d056,'op':_0x449928,'objects':_0x333eda,'type':_0x345d28[_0x4c9c9a(0x1bf)]['UPDATE']}});}}else{let _0x32fa82=_0x18fab7['getStartConnectInfo'](),_0x59e3cc=_0x18fab7[_0x4c9c9a(0x178)]();this[_0x4c9c9a(0x191)](_0x1e4e92,_0x27071e,_0x479c23,_0x18fab7,_0x32fa82,_0x59e3cc,_0x141e23,_0x1a89a9,_0x6f6071,_0x4d8642);}}};_0x143a8a=_0x4502eb([_0x52e69d(0x0,_0x6c2e17[_0x38bf7c(0x1ea)]),_0x52e69d(0x1,(0x0,_0x6c2e17[_0x38bf7c(0x1b3)])(_0x85db29[_0x38bf7c(0x202)])),_0x52e69d(0x2,(0x0,_0x6c2e17[_0x38bf7c(0x1b3)])(_0x85db29[_0x38bf7c(0x1b4)])),_0x52e69d(0x3,(0x0,_0x6c2e17[_0x38bf7c(0x1b3)])(_0x3afbc8)),_0x52e69d(0x4,(0x0,_0x6c2e17[_0x38bf7c(0x1b3)])(_0x5bebb4[_0x38bf7c(0x234)]))],_0x143a8a);let _0x4991b1=class extends _0x6c2e17[_0x38bf7c(0x190)]{constructor(_0x362026=_0x1b1bbf,_0x20f12a,_0x2ed088,_0x149927){const _0x55933d=_0x38bf7c;super(),this[_0x55933d(0x223)]=_0x362026,this['_injector']=_0x20f12a,this[_0x55933d(0x1c4)]=_0x2ed088,this[_0x55933d(0x1e9)]=_0x149927;let {..._0x4a0ddf}=(0x0,_0x6c2e17[_0x55933d(0x1dd)])({},_0x1b1bbf,this['_config']);this[_0x55933d(0x1e9)][_0x55933d(0x1ef)](_0x12e098,_0x4a0ddf);}[_0x38bf7c(0x230)](){const _0x1e2a69=_0x38bf7c;let _0x4f82a2=this[_0x1e2a69(0x205)];[[_0x10ae47],[_0x3afbc8],[_0x143a8a]][_0x1e2a69(0x1e6)](_0x275f95=>_0x4f82a2[_0x1e2a69(0x209)](_0x275f95)),(0x0,_0x6c2e17[_0x1e2a69(0x216)])(_0x4f82a2,[[_0x3afbc8],[_0x143a8a]]);}};_0x40cf23(_0x4991b1,_0x38bf7c(0x1da),_0x6c2e17[_0x38bf7c(0x1e5)]['UNIVER_SHEET']),_0x40cf23(_0x4991b1,_0x38bf7c(0x1b7),_0x38bf7c(0x20e)),_0x40cf23(_0x4991b1,_0x38bf7c(0x1fc),_0x341ec9),_0x40cf23(_0x4991b1,'version',_0x4f2837),_0x4991b1=_0x4502eb([(0x0,_0x6c2e17[_0x38bf7c(0x19f)])(_0x1dc474[_0x38bf7c(0x179)]),_0x52e69d(0x1,(0x0,_0x6c2e17[_0x38bf7c(0x1b3)])(_0x6c2e17[_0x38bf7c(0x16a)])),_0x52e69d(0x2,_0x6c2e17['ICommandService']),_0x52e69d(0x3,_0x6c2e17[_0x38bf7c(0x18a)])],_0x4991b1),_0xc272db['DEFAULT_SHAPE_HEIGHT']=0xc8,_0xc272db[_0x38bf7c(0x1f5)]=0xc8,_0xc272db[_0x38bf7c(0x239)]=_0x135f2f,_0xc272db[_0x38bf7c(0x1d6)]=_0x486d6a,_0xc272db[_0x38bf7c(0x1b0)]=_0x67e7b4,_0xc272db[_0x38bf7c(0x185)]=_0x4483a2,_0xc272db[_0x38bf7c(0x229)]=_0xba3537,_0xc272db['SetSheetsShapeTextVerticalToggleCommand']=_0x12fd4d,Object[_0x38bf7c(0x208)](_0xc272db,_0x38bf7c(0x1a0),{'enumerable':!0x0,'get':function(){return _0x3afbc8;}}),_0xc272db[_0x38bf7c(0x201)]=_0x2d47fd,Object[_0x38bf7c(0x208)](_0xc272db,_0x38bf7c(0x1e7),{'enumerable':!0x0,'get':function(){return _0x4991b1;}}),_0xc272db[_0x38bf7c(0x17e)]=_0x439497,_0xc272db[_0x38bf7c(0x1c8)]=_0x509d9e,_0xc272db[_0x38bf7c(0x1f8)]=_0x5db243,_0xc272db[_0x38bf7c(0x1ce)]=_0x577bfc,_0xc272db['UpdateSheetsShapeTypeMutation']=_0x207d5d;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0-insiders.20260422-d7fcb4d",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "shape for Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"npm": ">=8.0.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@univerjs-pro/engine-shape": "0.
|
|
67
|
-
"@univerjs-pro/license": "0.
|
|
68
|
-
"@univerjs/core": "0.
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/sheets": "0.
|
|
66
|
+
"@univerjs-pro/engine-shape": "0.21.0-insiders.20260422-d7fcb4d",
|
|
67
|
+
"@univerjs-pro/license": "0.21.0-insiders.20260422-d7fcb4d",
|
|
68
|
+
"@univerjs/core": "0.21.0-insiders.20260422-d7fcb4d",
|
|
69
|
+
"@univerjs/sheets": "0.21.0-insiders.20260422-d7fcb4d",
|
|
70
|
+
"@univerjs/drawing": "0.21.0-insiders.20260422-d7fcb4d",
|
|
71
|
+
"@univerjs/sheets-drawing": "0.21.0-insiders.20260422-d7fcb4d"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"typescript": "^6.0.
|
|
75
|
-
"vitest": "^4.1.
|
|
76
|
-
"@univerjs-infra/shared": "0.
|
|
74
|
+
"typescript": "^6.0.3",
|
|
75
|
+
"vitest": "^4.1.4",
|
|
76
|
+
"@univerjs-infra/shared": "0.21.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"test": "vitest run",
|