@univerjs-pro/sheets-shape 0.16.0 → 0.16.1-insiders.20260311-074e8ca

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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x23824f=_0x4c8e;(function(_0x2745a8,_0x2f304c){const _0x525436=_0x4c8e,_0x3479e1=_0x2745a8();while(!![]){try{const _0x2beda9=-parseInt(_0x525436(0xd3))/0x1*(-parseInt(_0x525436(0xf3))/0x2)+-parseInt(_0x525436(0xe1))/0x3+-parseInt(_0x525436(0xc7))/0x4+-parseInt(_0x525436(0xcc))/0x5+parseInt(_0x525436(0xd9))/0x6*(parseInt(_0x525436(0xcd))/0x7)+-parseInt(_0x525436(0xfe))/0x8*(parseInt(_0x525436(0xd6))/0x9)+parseInt(_0x525436(0xbb))/0xa;if(_0x2beda9===_0x2f304c)break;else _0x3479e1['push'](_0x3479e1['shift']());}catch(_0x4a95d0){_0x3479e1['push'](_0x3479e1['shift']());}}}(_0x14cf,0xe29da));var D=Object[_0x23824f(0xe9)],C=(_0x5a8902,_0x1e7b78,_0x471d54)=>_0x1e7b78 in _0x5a8902?D(_0x5a8902,_0x1e7b78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x471d54}):_0x5a8902[_0x1e7b78]=_0x471d54,S=(_0x14c1f7,_0x7e9171,_0x25f15e)=>C(_0x14c1f7,typeof _0x7e9171!=_0x23824f(0xc3)?_0x7e9171+'':_0x7e9171,_0x25f15e);Object[_0x23824f(0xe9)](exports,Symbol[_0x23824f(0xe7)],{'value':_0x23824f(0xae)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x23824f(0xd5)]{constructor(){const _0x4f8f2a=_0x23824f;super(),S(this,_0x4f8f2a(0xce),new Map()),S(this,'_linesIds',new Set()),S(this,_0x4f8f2a(0xbf),new Set());}[_0x23824f(0xc2)](_0x101b70,_0x527467,_0x19bb6f){const _0x4074f6=_0x23824f,_0x14d68c=new l[(_0x4074f6(0xe5))](_0x101b70,_0x527467,_0x19bb6f);return this['_shapes'][_0x4074f6(0xaf)](_0x527467,_0x14d68c),l[_0x4074f6(0x100)](_0x101b70)&&this[_0x4074f6(0xb9)][_0x4074f6(0xbc)](_0x527467),_0x14d68c;}[_0x23824f(0xa7)](_0x580222){const _0x1aa8d9=_0x23824f;var _0x5c5947,_0x331968;const _0x2ae2fd=[];for(const _0x2ee907 of this[_0x1aa8d9(0xb9)]){const _0x59eefa=this[_0x1aa8d9(0xce)][_0x1aa8d9(0xb7)](_0x2ee907);if(_0x59eefa){const _0x4bc9c4=_0x59eefa[_0x1aa8d9(0xa9)]();_0x4bc9c4&&(((_0x5c5947=_0x4bc9c4['from'])==null?void 0x0:_0x5c5947['shapeId'])===_0x580222&&_0x2ae2fd[_0x1aa8d9(0xff)]({..._0x4bc9c4[_0x1aa8d9(0xfb)],'lineShapeId':_0x2ee907,'isFrom':!0x0}),((_0x331968=_0x4bc9c4['to'])==null?void 0x0:_0x331968['shapeId'])===_0x580222&&_0x2ae2fd[_0x1aa8d9(0xff)]({..._0x4bc9c4['to'],'lineShapeId':_0x2ee907,'isFrom':!0x1}));}}return _0x2ae2fd;}[_0x23824f(0xec)](_0x31f949){const _0x543d0a=_0x23824f,_0x53abaa=this[_0x543d0a(0xce)]['get'](_0x31f949);if(_0x53abaa)return _0x53abaa[_0x543d0a(0xa9)]();}[_0x23824f(0xf8)](_0x182e27){const _0x22aec1=_0x23824f,_0x97a98f=this['_shapes'][_0x22aec1(0xb7)](_0x182e27);if(_0x97a98f)return _0x97a98f[_0x22aec1(0xf8)]();}['hasShape'](_0x49558d){const _0x42f697=_0x23824f;return this[_0x42f697(0xce)][_0x42f697(0xda)](_0x49558d);}[_0x23824f(0xca)](_0x59011d){const _0x407083=_0x23824f,_0x590b56=this[_0x407083(0xce)][_0x407083(0xb7)](_0x59011d);_0x590b56&&(l[_0x407083(0x100)](_0x590b56[_0x407083(0xf8)]())&&this['_linesIds'][_0x407083(0xc9)](_0x59011d),this[_0x407083(0xce)][_0x407083(0xc9)](_0x59011d));}['toJSON'](){const _0x28768d=_0x23824f,_0x34535e=[];return this[_0x28768d(0xce)][_0x28768d(0xdd)](_0xb3c2f6=>{_0x34535e['push'](_0xb3c2f6['toJSON']());}),_0x34535e;}[_0x23824f(0xa5)](_0x370606){const _0x2f889c=_0x23824f;for(const _0x8a9383 of _0x370606){const {id:_0x28cfd7,shapeType:_0x573687}=_0x8a9383,_0x6ad9f2=this[_0x2f889c(0xc2)](_0x573687,_0x28cfd7,_0x8a9383[_0x2f889c(0xaa)]);_0x6ad9f2&&_0x6ad9f2[_0x2f889c(0xc1)]()&&this[_0x2f889c(0xb9)][_0x2f889c(0xbc)](_0x28cfd7);}}[_0x23824f(0xde)](){const _0x1cfa02=_0x23824f;this['_disposed']||(this['_shapes']['forEach'](_0x5e8317=>{const _0xe6154b=_0x4c8e;_0x5e8317[_0xe6154b(0xde)]();}),this['_shapes'][_0x1cfa02(0xb1)](),this[_0x1cfa02(0xb9)]['clear'](),this[_0x1cfa02(0xbf)][_0x1cfa02(0xb1)](),super[_0x1cfa02(0xde)]());}}var R=Object[_0x23824f(0xbd)],j=(_0x3d2b21,_0x2e133d,_0x5bf1be,_0xc4910f)=>{const _0x27cb19=_0x23824f;for(var _0x3dc4e6=_0xc4910f>0x1?void 0x0:_0xc4910f?R(_0x2e133d,_0x5bf1be):_0x2e133d,_0x1d2198=_0x3d2b21[_0x27cb19(0x104)]-0x1,_0x579b1b;_0x1d2198>=0x0;_0x1d2198--)(_0x579b1b=_0x3d2b21[_0x1d2198])&&(_0x3dc4e6=_0x579b1b(_0x3dc4e6)||_0x3dc4e6);return _0x3dc4e6;},J=(_0x669207,_0x5deec0)=>(_0x3ce567,_0xd6abd5)=>_0x5deec0(_0x3ce567,_0xd6abd5,_0x669207);const w=_0x23824f(0xe6);exports[_0x23824f(0xe0)]=class extends p[_0x23824f(0xd5)]{constructor(_0x57f791){const _0x2529bd=_0x23824f;super(),S(this,'_shapeModelManagerMap',new Map()),(this[_0x2529bd(0xa3)]=_0x57f791,this[_0x2529bd(0xe3)]());}[_0x23824f(0xed)](_0x100a5e,_0x4cdfc3){const _0x58a9fb=_0x23824f;let _0x3d78a3=this['_shapeModelManagerMap']['get'](_0x100a5e);_0x3d78a3||(_0x3d78a3=new Map(),this[_0x58a9fb(0xa2)][_0x58a9fb(0xaf)](_0x100a5e,_0x3d78a3));let _0x401b9f=_0x3d78a3[_0x58a9fb(0xb7)](_0x4cdfc3);return _0x401b9f||(_0x401b9f=new f(),_0x3d78a3[_0x58a9fb(0xaf)](_0x4cdfc3,_0x401b9f)),_0x401b9f;}[_0x23824f(0xdf)](_0x2a85d7,_0x1e8526,_0xd7f3b5,_0x1d23cd,_0x1a94c8){const _0x1bd0ab=_0x23824f;this[_0x1bd0ab(0xed)](_0x2a85d7,_0x1e8526)['addShape'](_0xd7f3b5,_0x1d23cd,_0x1a94c8);}['removeShape'](_0x52d6ea,_0x3119f9,_0x26032b){const _0x28db3d=_0x23824f;this[_0x28db3d(0xed)](_0x52d6ea,_0x3119f9)[_0x28db3d(0xca)](_0x26032b);}[_0x23824f(0xfc)](_0x1103ad,_0x153d28,_0xd57b2d){const _0x2dc214=_0x23824f;return this[_0x2dc214(0xed)](_0x1103ad,_0x153d28)[_0x2dc214(0xf8)](_0xd57b2d);}[_0x23824f(0xf8)](_0x387c5,_0x1c49df,_0x45257e){const _0x3f8100=_0x23824f;return this['_ensureShapeModelManager'](_0x387c5,_0x1c49df)[_0x3f8100(0xf8)](_0x45257e);}[_0x23824f(0xf4)](_0x97434e,_0x43c651,_0xba40a){const _0x33a4b7=_0x23824f;return this[_0x33a4b7(0xed)](_0x97434e,_0x43c651)['hasShape'](_0xba40a);}[_0x23824f(0xb4)](_0x2329d3,_0x1e629e,_0x14d3bf){const _0x50dff6=_0x23824f;return this[_0x50dff6(0xed)](_0x2329d3,_0x1e629e)[_0x50dff6(0xf8)](_0x14d3bf);}[_0x23824f(0xb2)](_0x2c4081,_0x4b155e,_0x5111b0){const _0x3e261f=_0x23824f,_0x107522=this[_0x3e261f(0xed)](_0x2c4081,_0x4b155e);if(!_0x107522[_0x3e261f(0xf8)](_0x5111b0))return;const _0x4fd1e0=_0x107522[_0x3e261f(0xce)]['get'](_0x5111b0);if(_0x4fd1e0)return _0x4fd1e0[_0x3e261f(0xa4)]();}['getShapeModel'](_0x4836d5,_0x193a3c,_0x185557){const _0x445319=_0x23824f;return this[_0x445319(0xed)](_0x4836d5,_0x193a3c)[_0x445319(0xce)]['get'](_0x185557);}[_0x23824f(0xa7)](_0x1df8ad,_0x620357,_0x5b683e){const _0x522940=_0x23824f;return this[_0x522940(0xed)](_0x1df8ad,_0x620357)[_0x522940(0xa7)](_0x5b683e);}[_0x23824f(0xec)](_0x2a7afb,_0x54a32f,_0x3af423){const _0x222e2c=_0x23824f,_0x3bf4b1=this[_0x222e2c(0xed)](_0x2a7afb,_0x54a32f)['_shapes'][_0x222e2c(0xb7)](_0x3af423);if(_0x3bf4b1)return _0x3bf4b1['getShapeRelation']();}[_0x23824f(0xbe)](){}[_0x23824f(0xad)](_0x476efb){const _0x37bb37=_0x23824f,_0x4c4d3d={},_0xad3ad1=this[_0x37bb37(0xa2)]['get'](_0x476efb);return _0xad3ad1&&_0xad3ad1['forEach']((_0x4fb1ec,_0x2c9cc6)=>{const _0x5a8cde=_0x37bb37,_0x16fdff=_0x4fb1ec[_0x5a8cde(0xfd)]();_0x16fdff[_0x5a8cde(0x104)]>0x0&&(_0x4c4d3d[_0x2c9cc6]=_0x16fdff);}),JSON['stringify'](_0x4c4d3d);}[_0x23824f(0xe2)](_0x297f7c,_0x3ea413){const _0x2d318e=_0x23824f;Object[_0x2d318e(0xcf)](_0x3ea413)[_0x2d318e(0xdd)](_0xf771b0=>{const _0x2bb9b5=_0x2d318e;this[_0x2bb9b5(0xed)](_0x297f7c,_0xf771b0)[_0x2bb9b5(0xa5)](_0x3ea413[_0xf771b0]);});}[_0x23824f(0xfd)](){const _0x19508d=_0x23824f,_0x5e61b5={};return this[_0x19508d(0xa2)][_0x19508d(0xdd)]((_0x5068ac,_0x1f99dd)=>{const _0x1db0e2=_0x19508d;_0x5e61b5[_0x1f99dd]={},_0x5068ac[_0x1db0e2(0xdd)]((_0x3f0642,_0x21d637)=>{const _0x280e7a=_0x1db0e2;_0x5e61b5[_0x1f99dd][_0x21d637]=_0x3f0642[_0x280e7a(0xfd)]();});}),_0x5e61b5;}[_0x23824f(0xa5)](_0x122a8a){const _0xb5acb6=_0x23824f;Object[_0xb5acb6(0xcf)](_0x122a8a)[_0xb5acb6(0xdd)](_0x475321=>{const _0x10706e=_0xb5acb6,_0x219c65=_0x122a8a[_0x475321];Object[_0x10706e(0xcf)](_0x219c65)[_0x10706e(0xdd)](_0x3d7fc5=>{const _0x29be84=_0x10706e;this['_ensureShapeModelManager'](_0x475321,_0x3d7fc5)[_0x29be84(0xa5)](_0x219c65[_0x3d7fc5]);});});}[_0x23824f(0xe3)](){const _0x58312c=_0x23824f;this[_0x58312c(0xa3)][_0x58312c(0xab)]({'pluginName':w,'businesses':[p[_0x58312c(0xf5)][_0x58312c(0xb0)]],'toJson':_0x48bc2c=>this[_0x58312c(0xad)](_0x48bc2c),'parseJson':_0x3eaa0f=>JSON[_0x58312c(0xd8)](_0x3eaa0f),'onLoad':(_0x1a6a83,_0x89ad07)=>{const _0x7a70bc=_0x58312c;this[_0x7a70bc(0xe2)](_0x1a6a83,_0x89ad07);},'onUnLoad':_0x4806f9=>{const _0x2712b1=_0x58312c,_0x14b38c=this[_0x2712b1(0xa2)]['get'](_0x4806f9);_0x14b38c&&(_0x14b38c[_0x2712b1(0xdd)](_0x3205bf=>{_0x3205bf['dispose']();}),this[_0x2712b1(0xa2)][_0x2712b1(0xc9)](_0x4806f9));}});}[_0x23824f(0xde)](){const _0x150966=_0x23824f;this[_0x150966(0xa2)][_0x150966(0xdd)](_0x174cdc=>{_0x174cdc['forEach'](_0x538734=>{const _0x191af7=_0x4c8e;_0x538734[_0x191af7(0xde)]();});});}},exports[_0x23824f(0xe0)]=j([J(0x0,p[_0x23824f(0xf6)])],exports['SheetsShapeService']);const d={'id':_0x23824f(0xc0),'type':p[_0x23824f(0xc6)][_0x23824f(0xfa)],'handler':(_0x36325f,_0x1e579b)=>{const _0x144d37=_0x23824f,{unitId:_0x14489e,subUnitId:_0x2e3723,shapeType:_0x2ba74e,shapeId:_0x1147b6,shapeData:_0x435a9c}=_0x1e579b,_0x149f84=_0x36325f[_0x144d37(0xb7)](exports[_0x144d37(0xe0)])[_0x144d37(0xf2)](_0x14489e,_0x2e3723,_0x1147b6);return _0x149f84&&(_0x149f84[_0x144d37(0xbe)](_0x2ba74e),_0x435a9c&&(_0x149f84==null||_0x149f84[_0x144d37(0xcb)](_0x435a9c))),!0x0;}},H={'id':_0x23824f(0xd1),'type':p[_0x23824f(0xc6)][_0x23824f(0x102)],'handler':(_0x4d8132,_0x420457)=>{const _0x1e77b4=_0x23824f;if(!_0x420457)return!0x1;const _0x48030f=_0x4d8132['get'](p[_0x1e77b4(0xd2)]),_0x390611=_0x4d8132[_0x1e77b4(0xb7)](exports[_0x1e77b4(0xe0)]),_0x470729=_0x4d8132[_0x1e77b4(0xb7)](p[_0x1e77b4(0xb3)]),_0x5126f3=[],_0x144a8f=[],{unitId:_0x2ad21c,subUnitId:_0x5c4132,shapeId:_0x5d4f9b,shapeType:_0x56fa3c,shapeData:_0x2697fd}=_0x420457,_0x2b0165=_0x390611[_0x1e77b4(0xf2)](_0x2ad21c,_0x5c4132,_0x5d4f9b);if(_0x2b0165){const _0x1dc798=_0x2b0165['getShapeType'](),_0x58ab83=Object[_0x1e77b4(0x101)]({},_0x2b0165[_0x1e77b4(0xa4)]()),_0x46f1d6={'unitId':_0x2ad21c,'subUnitId':_0x5c4132,'shapeId':_0x5d4f9b,'shapeType':_0x56fa3c,'shapeData':_0x2697fd},_0x5a62a6={'unitId':_0x2ad21c,'subUnitId':_0x5c4132,'shapeId':_0x5d4f9b,'shapeType':_0x1dc798,'shapeData':_0x58ab83};return _0x5126f3['push']({'id':d['id'],'params':_0x46f1d6}),_0x144a8f[_0x1e77b4(0xff)]({'id':d['id'],'params':_0x5a62a6}),_0x5126f3[_0x1e77b4(0xdc)](_0x54d37b=>_0x48030f[_0x1e77b4(0xd7)](_0x54d37b['id'],_0x54d37b['params']))&&_0x470729[_0x1e77b4(0xf1)]({'unitID':_0x2ad21c,'redoMutations':[..._0x5126f3],'undoMutations':[..._0x144a8f]}),!0x0;}return!0x1;}},m={'id':'sheet.mutation.insert-shape','type':p[_0x23824f(0xc6)][_0x23824f(0xfa)],'handler':(_0xb0283e,_0x5d381a)=>{const _0x3a86fb=_0x23824f,{unitId:_0x20a333,subUnitId:_0x3d6173,shapeType:_0x5e1e5e,shapeId:_0x48d51b,shapeData:_0x53c6ba}=_0x5d381a;return _0xb0283e[_0x3a86fb(0xb7)](exports[_0x3a86fb(0xe0)])[_0x3a86fb(0xdf)](_0x20a333,_0x3d6173,_0x5e1e5e,_0x48d51b,_0x53c6ba),!0x0;}},v={'id':_0x23824f(0x103),'type':p[_0x23824f(0xc6)][_0x23824f(0xfa)],'handler':(_0xb1b80,_0x5615f8)=>{const _0x22ef64=_0x23824f,{unitId:_0x2f794e,subUnitId:_0xebae4a,shapeId:_0x4a281c}=_0x5615f8;return _0xb1b80[_0x22ef64(0xb7)](exports['SheetsShapeService'])[_0x22ef64(0xca)](_0x2f794e,_0xebae4a,_0x4a281c),!0x0;}},y={'id':'sheet.mutation.update-shape-data','type':p[_0x23824f(0xc6)]['MUTATION'],'handler':(_0x4f0af8,_0x367dab)=>{const _0x2193f0=_0x23824f,{unitId:_0x1c8837,subUnitId:_0x1f0c60,shapeType:_0x12dc12,shapeId:_0xd4cfc5,shapeData:_0x3e2da7}=_0x367dab,_0xf25110=_0x4f0af8[_0x2193f0(0xb7)](exports[_0x2193f0(0xe0)])[_0x2193f0(0xf2)](_0x1c8837,_0x1f0c60,_0xd4cfc5);return _0xf25110&&(_0x12dc12!==void 0x0&&_0xf25110[_0x2193f0(0xbe)](_0x12dc12),_0x3e2da7&&(_0xf25110==null||_0xf25110[_0x2193f0(0xcb)](_0x3e2da7,!0x0))),!0x0;}},A=_0x23824f(0xc8),_={};var L=Object[_0x23824f(0xe9)],F=Object[_0x23824f(0xbd)],B=(_0x2679bf,_0x3d002e,_0x17f3f9)=>_0x3d002e in _0x2679bf?L(_0x2679bf,_0x3d002e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17f3f9}):_0x2679bf[_0x3d002e]=_0x17f3f9,G=(_0x516466,_0x387bfa,_0x47566e,_0x382e18)=>{const _0x3af532=_0x23824f;for(var _0x377dc6=_0x382e18>0x1?void 0x0:_0x382e18?F(_0x387bfa,_0x47566e):_0x387bfa,_0x53aba8=_0x516466[_0x3af532(0x104)]-0x1,_0x2a0075;_0x53aba8>=0x0;_0x53aba8--)(_0x2a0075=_0x516466[_0x53aba8])&&(_0x377dc6=_0x2a0075(_0x377dc6)||_0x377dc6);return _0x377dc6;},g=(_0x258d22,_0x12c75a)=>(_0x4e4b78,_0x168f0c)=>_0x12c75a(_0x4e4b78,_0x168f0c,_0x258d22),T=(_0x524dea,_0x30694c,_0x3ad88e)=>B(_0x524dea,typeof _0x30694c!=_0x23824f(0xc3)?_0x30694c+'':_0x30694c,_0x3ad88e);const x=_0x23824f(0xe6);function _0x4c8e(_0x507e46,_0x120cae){_0x507e46=_0x507e46-0xa2;const _0x14cff3=_0x14cf();let _0x4c8eba=_0x14cff3[_0x507e46];return _0x4c8eba;}function _0x14cf(){const _0x16babd=['fromJSON','UpdateSheetsShapeTypeMutation','getBasicShapeRelation','UniverLicensePlugin','getShapeRelation','shapeData','registerPluginResource','RemoveSheetsShapeMutation','_serializeShapeForUnit','Module','set','UNIVER_SHEET','clear','getShapeDataById','IUndoRedoService','getShapeTypeById','type','disposeWithMe','get','pluginName','_linesIds','_initCommands','9480260MATQrA','add','getOwnPropertyDescriptor','setShapeType','_groupIds','sheet.mutation.update-shape-type','isLineShape','addShape','symbol','merge','UpdateSheetsShapeTypeCommand','CommandType','950112nVzQcx','sheets-shape.config','delete','removeShape','setShapeData','305495teDKkb','77DgPuJB','_shapes','keys','DependentOn','sheet.command.update-shape-type','ICommandService','1FKUPgk','onRendered','Disposable','9AHfOIY','syncExecuteCommand','parse','147618yXjjYp','has','IConfigService','every','forEach','dispose','insertShape','SheetsShapeService','3169110wrrhrk','_deserializeShapeForUnit','_initSnapshot','_config','ShapeModel','SHEET_SHAPE_PLUGIN','toStringTag','touchDependencies','defineProperty','_injector','_commandService','getLineShapeRelation','_ensureShapeModelManager','_configService','InsertSheetsShapeMutation','registerCommand','pushUndoRedo','getShapeModel','2129506oHmxAW','hasShape','UniverInstanceType','IResourceManagerService','UniverSheetsShapePlugin','getShapeType','UpdateSheetsShapeDataMutation','MUTATION','from','getBasicShapeType','toJSON','1576ScfStN','push','isConnectorShape','assign','COMMAND','sheet.mutation.remove-shape','length','_shapeModelManagerMap','_resourcesManagerService','getShapeData'];_0x14cf=function(){return _0x16babd;};return _0x14cf();}exports[_0x23824f(0xf7)]=class extends p['Plugin']{constructor(_0x2e7bba=_,_0x12c867,_0x388da2,_0x5211c0){const _0x30a25e=_0x23824f;super(),this[_0x30a25e(0xe4)]=_0x2e7bba,this[_0x30a25e(0xea)]=_0x12c867,this[_0x30a25e(0xeb)]=_0x388da2,this[_0x30a25e(0xee)]=_0x5211c0;const {..._0x5c639e}=p[_0x30a25e(0xc4)]({},_,this[_0x30a25e(0xe4)]);this[_0x30a25e(0xee)]['setConfig'](A,_0x5c639e),this[_0x30a25e(0xba)]();}[_0x23824f(0xd4)](){const _0xb317be=_0x23824f;p[_0xb317be(0xe8)](this[_0xb317be(0xea)],[]);}['onStarting'](){const _0x40f605=_0x23824f,_0x3178fc=this[_0x40f605(0xea)];[[f],[exports[_0x40f605(0xe0)]]][_0x40f605(0xdd)](_0x52222a=>_0x3178fc[_0x40f605(0xbc)](_0x52222a));}[_0x23824f(0xba)](){const _0x1772b9=_0x23824f;[m,v,d,y][_0x1772b9(0xdd)](_0x4fca22=>this[_0x1772b9(0xb6)](this[_0x1772b9(0xeb)][_0x1772b9(0xf0)](_0x4fca22)));}},T(exports['UniverSheetsShapePlugin'],_0x23824f(0xb5),p[_0x23824f(0xf5)]['UNIVER_SHEET']),T(exports[_0x23824f(0xf7)],_0x23824f(0xb8),x),exports[_0x23824f(0xf7)]=G([p[_0x23824f(0xd0)](b[_0x23824f(0xa8)]),g(0x1,p['Inject'](p['Injector'])),g(0x2,p[_0x23824f(0xd2)]),g(0x3,p[_0x23824f(0xdb)])],exports[_0x23824f(0xf7)]),exports[_0x23824f(0xef)]=m,exports[_0x23824f(0xac)]=v,exports[_0x23824f(0xf9)]=y,exports[_0x23824f(0xc5)]=H,exports[_0x23824f(0xa6)]=d;
1
+ 'use strict';const _0x57fb67=_0x311a;function _0x1070(){const _0x5ac941=['symbol','ShapeModel','IConfigService','CommandType','getShapeDataById','_disposed','_deserializeShapeForUnit','forEach','11535976YHUDph','type','8184690XEdewW','Disposable','params','COMMAND','570AmosWR','isLineShape','8451156fnLImz','IUndoRedoService','getOwnPropertyDescriptor','hasShape','_serializeShapeForUnit','setShapeType','UpdateSheetsShapeTypeMutation','_ensureShapeModelManager','_commandService','stringify','syncExecuteCommand','_initSnapshot','_config','dispose','UNIVER_SHEET','UpdateSheetsShapeDataMutation','Plugin','@univerjs-pro/sheets-shape','sheet.mutation.insert-shape','sheets-shape.config','shapeData','registerCommand','sheet.command.update-shape-type','_shapeModelManagerMap','229193EQxAdn','version','MUTATION','getShapeType','parse','insertShape','DependentOn','getShapeData','IResourceManagerService','touchDependencies','addShape','getShapeRelation','defineProperty','SheetsShapeService','_configService','getShapeModel','_linesIds','registerPluginResource','904fPepZR','_shapes','_resourcesManagerService','_initCommands','_injector','get','has','push','length','onStarting','from','_groupIds','isConnectorShape','Injector','keys','UniverLicensePlugin','Inject','UniverInstanceType','pluginName','getBasicShapeRelation','14268drDsZg','assign','sheet.mutation.update-shape-data','InsertSheetsShapeMutation','every','merge','5346hrFPtw','fromJSON','set','getShapeTypeById','packageName','56828rdNuHW','RemoveSheetsShapeMutation','sheet.mutation.update-shape-type','add','SHEET_SHAPE_PLUGIN','setShapeData','shapeId','delete','UniverSheetsShapePlugin','onRendered','UpdateSheetsShapeTypeCommand','removeShape','0.16.1-insiders.20260311-074e8ca','toJSON','toStringTag','getLineShapeRelation','ICommandService','clear','sheet.mutation.remove-shape'];_0x1070=function(){return _0x5ac941;};return _0x1070();}(function(_0x548d15,_0x57f2c7){const _0x438e9a=_0x311a,_0xcb6c47=_0x548d15();while(!![]){try{const _0x27c221=parseInt(_0x438e9a(0x162))/0x1+parseInt(_0x438e9a(0x127))/0x2+parseInt(_0x438e9a(0x122))/0x3*(-parseInt(_0x438e9a(0x174))/0x4)+parseInt(_0x438e9a(0x148))/0x5*(parseInt(_0x438e9a(0x188))/0x6)+parseInt(_0x438e9a(0x14a))/0x7+-parseInt(_0x438e9a(0x142))/0x8+parseInt(_0x438e9a(0x144))/0x9;if(_0x27c221===_0x57f2c7)break;else _0xcb6c47['push'](_0xcb6c47['shift']());}catch(_0x34305d){_0xcb6c47['push'](_0xcb6c47['shift']());}}}(_0x1070,0xc37b0));var C=Object[_0x57fb67(0x16e)],b=(_0x556c94,_0x33c625,_0x22f8a1)=>_0x33c625 in _0x556c94?C(_0x556c94,_0x33c625,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22f8a1}):_0x556c94[_0x33c625]=_0x22f8a1,S=(_0x7913fc,_0x4e9df8,_0x27810f)=>b(_0x7913fc,typeof _0x4e9df8!=_0x57fb67(0x13a)?_0x4e9df8+'':_0x4e9df8,_0x27810f);Object[_0x57fb67(0x16e)](exports,Symbol[_0x57fb67(0x135)],{'value':'Module'});const p=require('@univerjs/core'),g=require('@univerjs-pro/engine-shape'),R=require('@univerjs-pro/license');function _0x311a(_0x17f5b6,_0x230ee3){_0x17f5b6=_0x17f5b6-0x121;const _0x107080=_0x1070();let _0x311a32=_0x107080[_0x17f5b6];return _0x311a32;}class m extends p[_0x57fb67(0x145)]{constructor(){const _0x5967fc=_0x57fb67;super(),S(this,_0x5967fc(0x175),new Map()),S(this,_0x5967fc(0x172),new Set()),S(this,_0x5967fc(0x17f),new Set());}[_0x57fb67(0x16c)](_0x41517f,_0x424cac,_0x284db9){const _0x427ac2=_0x57fb67,_0x5d2f0f=new g[(_0x427ac2(0x13b))](_0x41517f,_0x424cac,_0x284db9);return this[_0x427ac2(0x175)][_0x427ac2(0x124)](_0x424cac,_0x5d2f0f),g[_0x427ac2(0x180)](_0x41517f)&&this[_0x427ac2(0x172)][_0x427ac2(0x12a)](_0x424cac),_0x5d2f0f;}[_0x57fb67(0x187)](_0x3e352a){const _0x98dc3c=_0x57fb67;var _0x3236a7,_0x315d3c;const _0x225586=[];for(const _0x1ef042 of this[_0x98dc3c(0x172)]){const _0xe3158c=this[_0x98dc3c(0x175)][_0x98dc3c(0x179)](_0x1ef042);if(_0xe3158c){const _0x31280e=_0xe3158c['getShapeRelation']();_0x31280e&&(((_0x3236a7=_0x31280e[_0x98dc3c(0x17e)])==null?void 0x0:_0x3236a7[_0x98dc3c(0x12d)])===_0x3e352a&&_0x225586[_0x98dc3c(0x17b)]({..._0x31280e['from'],'lineShapeId':_0x1ef042,'isFrom':!0x0}),((_0x315d3c=_0x31280e['to'])==null?void 0x0:_0x315d3c[_0x98dc3c(0x12d)])===_0x3e352a&&_0x225586['push']({..._0x31280e['to'],'lineShapeId':_0x1ef042,'isFrom':!0x1}));}}return _0x225586;}[_0x57fb67(0x136)](_0x4cd3d7){const _0x507811=_0x57fb67,_0xe4a6ae=this[_0x507811(0x175)][_0x507811(0x179)](_0x4cd3d7);if(_0xe4a6ae)return _0xe4a6ae['getShapeRelation']();}[_0x57fb67(0x165)](_0x71eb13){const _0x4297f7=_0x57fb67,_0xb24100=this[_0x4297f7(0x175)][_0x4297f7(0x179)](_0x71eb13);if(_0xb24100)return _0xb24100[_0x4297f7(0x165)]();}[_0x57fb67(0x14d)](_0x2a0728){const _0x5bfa41=_0x57fb67;return this[_0x5bfa41(0x175)][_0x5bfa41(0x17a)](_0x2a0728);}[_0x57fb67(0x132)](_0x59e302){const _0x48c209=_0x57fb67,_0x221d79=this[_0x48c209(0x175)][_0x48c209(0x179)](_0x59e302);_0x221d79&&(g['isConnectorShape'](_0x221d79[_0x48c209(0x165)]())&&this[_0x48c209(0x172)][_0x48c209(0x12e)](_0x59e302),this[_0x48c209(0x175)][_0x48c209(0x12e)](_0x59e302));}[_0x57fb67(0x134)](){const _0x1c3e97=[];return this['_shapes']['forEach'](_0x12fa94=>{const _0x1d1290=_0x311a;_0x1c3e97['push'](_0x12fa94[_0x1d1290(0x134)]());}),_0x1c3e97;}[_0x57fb67(0x123)](_0x216b45){const _0x40e091=_0x57fb67;for(const _0x294103 of _0x216b45){const {id:_0x453afa,shapeType:_0x45e006}=_0x294103,_0x3ba288=this['addShape'](_0x45e006,_0x453afa,_0x294103[_0x40e091(0x15e)]);_0x3ba288&&_0x3ba288[_0x40e091(0x149)]()&&this['_linesIds']['add'](_0x453afa);}}['dispose'](){const _0x4ec581=_0x57fb67;this[_0x4ec581(0x13f)]||(this['_shapes'][_0x4ec581(0x141)](_0x214aaa=>{_0x214aaa['dispose']();}),this[_0x4ec581(0x175)]['clear'](),this[_0x4ec581(0x172)]['clear'](),this[_0x4ec581(0x17f)][_0x4ec581(0x138)](),super['dispose']());}}var j=Object[_0x57fb67(0x14c)],J=(_0x122673,_0x1ae443,_0xf604a0,_0x4efde8)=>{const _0x30b453=_0x57fb67;for(var _0x45b346=_0x4efde8>0x1?void 0x0:_0x4efde8?j(_0x1ae443,_0xf604a0):_0x1ae443,_0x2f8a63=_0x122673[_0x30b453(0x17c)]-0x1,_0x491ed2;_0x2f8a63>=0x0;_0x2f8a63--)(_0x491ed2=_0x122673[_0x2f8a63])&&(_0x45b346=_0x491ed2(_0x45b346)||_0x45b346);return _0x45b346;},w=(_0x5b9e01,_0x7eba0)=>(_0x5d187d,_0x46001c)=>_0x7eba0(_0x5d187d,_0x46001c,_0x5b9e01);const H='SHEET_SHAPE_PLUGIN';exports[_0x57fb67(0x16f)]=class extends p[_0x57fb67(0x145)]{constructor(_0x3d35d3){const _0x4b07bb=_0x57fb67;super(),S(this,_0x4b07bb(0x161),new Map()),(this['_resourcesManagerService']=_0x3d35d3,this['_initSnapshot']());}[_0x57fb67(0x151)](_0x47fa55,_0x240935){const _0x511ca9=_0x57fb67;let _0x25bc79=this[_0x511ca9(0x161)][_0x511ca9(0x179)](_0x47fa55);_0x25bc79||(_0x25bc79=new Map(),this[_0x511ca9(0x161)][_0x511ca9(0x124)](_0x47fa55,_0x25bc79));let _0x4d0c10=_0x25bc79[_0x511ca9(0x179)](_0x240935);return _0x4d0c10||(_0x4d0c10=new m(),_0x25bc79['set'](_0x240935,_0x4d0c10)),_0x4d0c10;}['insertShape'](_0x10dd8d,_0xc57165,_0x2f7b35,_0x2d7048,_0x2cdd2e){const _0x4fc73d=_0x57fb67;this['_ensureShapeModelManager'](_0x10dd8d,_0xc57165)[_0x4fc73d(0x16c)](_0x2f7b35,_0x2d7048,_0x2cdd2e);}[_0x57fb67(0x132)](_0x37171a,_0x29718c,_0x47bd67){const _0x200408=_0x57fb67;this['_ensureShapeModelManager'](_0x37171a,_0x29718c)[_0x200408(0x132)](_0x47bd67);}['getBasicShapeType'](_0x211cb7,_0x362e10,_0x2a861e){const _0x1d3ef5=_0x57fb67;return this['_ensureShapeModelManager'](_0x211cb7,_0x362e10)[_0x1d3ef5(0x165)](_0x2a861e);}[_0x57fb67(0x165)](_0x250e5b,_0x34b3c1,_0x5b8d94){const _0x562c34=_0x57fb67;return this[_0x562c34(0x151)](_0x250e5b,_0x34b3c1)[_0x562c34(0x165)](_0x5b8d94);}[_0x57fb67(0x14d)](_0x271231,_0x1e2657,_0x2e45cd){const _0x19a9c4=_0x57fb67;return this[_0x19a9c4(0x151)](_0x271231,_0x1e2657)[_0x19a9c4(0x14d)](_0x2e45cd);}[_0x57fb67(0x125)](_0xae1dea,_0x37b98d,_0x494994){const _0x174ea6=_0x57fb67;return this[_0x174ea6(0x151)](_0xae1dea,_0x37b98d)[_0x174ea6(0x165)](_0x494994);}[_0x57fb67(0x13e)](_0x4b1f61,_0x45b929,_0x52bf10){const _0x1ee7de=_0x57fb67,_0x452da6=this[_0x1ee7de(0x151)](_0x4b1f61,_0x45b929);if(!_0x452da6[_0x1ee7de(0x165)](_0x52bf10))return;const _0x2fb00b=_0x452da6[_0x1ee7de(0x175)]['get'](_0x52bf10);if(_0x2fb00b)return _0x2fb00b[_0x1ee7de(0x169)]();}[_0x57fb67(0x171)](_0x46586f,_0x969c01,_0x1aada7){const _0xcb55f5=_0x57fb67;return this[_0xcb55f5(0x151)](_0x46586f,_0x969c01)['_shapes'][_0xcb55f5(0x179)](_0x1aada7);}[_0x57fb67(0x187)](_0xce9fd7,_0x2886cd,_0x53fc67){return this['_ensureShapeModelManager'](_0xce9fd7,_0x2886cd)['getBasicShapeRelation'](_0x53fc67);}[_0x57fb67(0x136)](_0xeb3410,_0x53e951,_0x54d88e){const _0x246dd8=_0x57fb67,_0x5c828c=this[_0x246dd8(0x151)](_0xeb3410,_0x53e951)[_0x246dd8(0x175)][_0x246dd8(0x179)](_0x54d88e);if(_0x5c828c)return _0x5c828c[_0x246dd8(0x16d)]();}[_0x57fb67(0x14f)](){}[_0x57fb67(0x14e)](_0x18f510){const _0x74d5d0=_0x57fb67,_0x4467e8={},_0x482b6f=this['_shapeModelManagerMap'][_0x74d5d0(0x179)](_0x18f510);return _0x482b6f&&_0x482b6f['forEach']((_0x32d691,_0x496994)=>{const _0x50b33c=_0x74d5d0,_0x449505=_0x32d691[_0x50b33c(0x134)]();_0x449505[_0x50b33c(0x17c)]>0x0&&(_0x4467e8[_0x496994]=_0x449505);}),JSON[_0x74d5d0(0x153)](_0x4467e8);}[_0x57fb67(0x140)](_0x2cffbc,_0x532f42){const _0x378cde=_0x57fb67;Object[_0x378cde(0x182)](_0x532f42)[_0x378cde(0x141)](_0x42bbb4=>{const _0x3abb44=_0x378cde;this[_0x3abb44(0x151)](_0x2cffbc,_0x42bbb4)[_0x3abb44(0x123)](_0x532f42[_0x42bbb4]);});}[_0x57fb67(0x134)](){const _0x21af2e=_0x57fb67,_0x37141a={};return this['_shapeModelManagerMap'][_0x21af2e(0x141)]((_0x24a680,_0x27f160)=>{const _0x400daa=_0x21af2e;_0x37141a[_0x27f160]={},_0x24a680[_0x400daa(0x141)]((_0x365309,_0x118e03)=>{const _0x37bc8f=_0x400daa;_0x37141a[_0x27f160][_0x118e03]=_0x365309[_0x37bc8f(0x134)]();});}),_0x37141a;}[_0x57fb67(0x123)](_0x24696f){const _0x3d6c66=_0x57fb67;Object['keys'](_0x24696f)[_0x3d6c66(0x141)](_0x5c3eb0=>{const _0x17c118=_0x3d6c66,_0x4756f3=_0x24696f[_0x5c3eb0];Object[_0x17c118(0x182)](_0x4756f3)['forEach'](_0x3bf404=>{const _0x31aa8c=_0x17c118;this[_0x31aa8c(0x151)](_0x5c3eb0,_0x3bf404)[_0x31aa8c(0x123)](_0x4756f3[_0x3bf404]);});});}[_0x57fb67(0x155)](){const _0x421eb5=_0x57fb67;this[_0x421eb5(0x176)][_0x421eb5(0x173)]({'pluginName':H,'businesses':[p['UniverInstanceType'][_0x421eb5(0x158)]],'toJson':_0x1cda1f=>this[_0x421eb5(0x14e)](_0x1cda1f),'parseJson':_0x2f843f=>JSON[_0x421eb5(0x166)](_0x2f843f),'onLoad':(_0x3198e6,_0x56ef3e)=>{const _0x477cdf=_0x421eb5;this[_0x477cdf(0x140)](_0x3198e6,_0x56ef3e);},'onUnLoad':_0x532a16=>{const _0x518fae=_0x421eb5,_0x3ae213=this[_0x518fae(0x161)][_0x518fae(0x179)](_0x532a16);_0x3ae213&&(_0x3ae213['forEach'](_0x2e967d=>{const _0x278499=_0x518fae;_0x2e967d[_0x278499(0x157)]();}),this['_shapeModelManagerMap'][_0x518fae(0x12e)](_0x532a16));}});}[_0x57fb67(0x157)](){this['_shapeModelManagerMap']['forEach'](_0x454d58=>{const _0x34f4c8=_0x311a;_0x454d58[_0x34f4c8(0x141)](_0x1343e2=>{_0x1343e2['dispose']();});});}},exports[_0x57fb67(0x16f)]=J([w(0x0,p[_0x57fb67(0x16a)])],exports[_0x57fb67(0x16f)]);const d={'id':_0x57fb67(0x129),'type':p[_0x57fb67(0x13d)][_0x57fb67(0x164)],'handler':(_0x862cfa,_0x4da57a)=>{const _0x1ecbc9=_0x57fb67,{unitId:_0x419539,subUnitId:_0x60370b,shapeType:_0x27a294,shapeId:_0x5d0125,shapeData:_0x1b5015}=_0x4da57a,_0x35b955=_0x862cfa[_0x1ecbc9(0x179)](exports[_0x1ecbc9(0x16f)])[_0x1ecbc9(0x171)](_0x419539,_0x60370b,_0x5d0125);return _0x35b955&&(_0x35b955[_0x1ecbc9(0x14f)](_0x27a294),_0x1b5015&&(_0x35b955==null||_0x35b955[_0x1ecbc9(0x12c)](_0x1b5015))),!0x0;}},L={'id':_0x57fb67(0x160),'type':p[_0x57fb67(0x13d)][_0x57fb67(0x147)],'handler':(_0x155186,_0x366dfd)=>{const _0x723abc=_0x57fb67;if(!_0x366dfd)return!0x1;const _0xc0d5ef=_0x155186[_0x723abc(0x179)](p[_0x723abc(0x137)]),_0x25a2f2=_0x155186[_0x723abc(0x179)](exports['SheetsShapeService']),_0x2ecd06=_0x155186[_0x723abc(0x179)](p[_0x723abc(0x14b)]),_0x2e79ba=[],_0x102e21=[],{unitId:_0x237e10,subUnitId:_0xda8972,shapeId:_0x1b86e9,shapeType:_0x58a86f,shapeData:_0x4bcbb4}=_0x366dfd,_0xc4b307=_0x25a2f2[_0x723abc(0x171)](_0x237e10,_0xda8972,_0x1b86e9);if(_0xc4b307){const _0x50e4f1=_0xc4b307[_0x723abc(0x165)](),_0x277435=Object[_0x723abc(0x189)]({},_0xc4b307[_0x723abc(0x169)]()),_0x499df3={'unitId':_0x237e10,'subUnitId':_0xda8972,'shapeId':_0x1b86e9,'shapeType':_0x58a86f,'shapeData':_0x4bcbb4},_0x385830={'unitId':_0x237e10,'subUnitId':_0xda8972,'shapeId':_0x1b86e9,'shapeType':_0x50e4f1,'shapeData':_0x277435};return _0x2e79ba[_0x723abc(0x17b)]({'id':d['id'],'params':_0x499df3}),_0x102e21[_0x723abc(0x17b)]({'id':d['id'],'params':_0x385830}),_0x2e79ba[_0x723abc(0x18c)](_0x37b74f=>_0xc0d5ef[_0x723abc(0x154)](_0x37b74f['id'],_0x37b74f[_0x723abc(0x146)]))&&_0x2ecd06['pushUndoRedo']({'unitID':_0x237e10,'redoMutations':[..._0x2e79ba],'undoMutations':[..._0x102e21]}),!0x0;}return!0x1;}},v={'id':_0x57fb67(0x15c),'type':p[_0x57fb67(0x13d)][_0x57fb67(0x164)],'handler':(_0x59eed2,_0x4ea647)=>{const _0x1cb229=_0x57fb67,{unitId:_0x546050,subUnitId:_0x15520d,shapeType:_0x471b74,shapeId:_0x4a67ba,shapeData:_0x3a1dd8}=_0x4ea647;return _0x59eed2['get'](exports[_0x1cb229(0x16f)])[_0x1cb229(0x167)](_0x546050,_0x15520d,_0x471b74,_0x4a67ba,_0x3a1dd8),!0x0;}},y={'id':_0x57fb67(0x139),'type':p[_0x57fb67(0x13d)][_0x57fb67(0x164)],'handler':(_0x508ed0,_0x175357)=>{const _0x48f096=_0x57fb67,{unitId:_0x20ea0d,subUnitId:_0x33e30b,shapeId:_0x30524c}=_0x175357;return _0x508ed0[_0x48f096(0x179)](exports[_0x48f096(0x16f)])['removeShape'](_0x20ea0d,_0x33e30b,_0x30524c),!0x0;}},T={'id':_0x57fb67(0x18a),'type':p[_0x57fb67(0x13d)]['MUTATION'],'handler':(_0x1d8192,_0x134e54)=>{const _0x333eef=_0x57fb67,{unitId:_0x4fabbd,subUnitId:_0x2c696e,shapeType:_0x126fee,shapeId:_0x3cf8bb,shapeData:_0xf564a0}=_0x134e54,_0xc9b867=_0x1d8192[_0x333eef(0x179)](exports[_0x333eef(0x16f)])['getShapeModel'](_0x4fabbd,_0x2c696e,_0x3cf8bb);return _0xc9b867&&(_0x126fee!==void 0x0&&_0xc9b867[_0x333eef(0x14f)](_0x126fee),_0xf564a0&&(_0xc9b867==null||_0xc9b867[_0x333eef(0x12c)](_0xf564a0,!0x0))),!0x0;}},A=_0x57fb67(0x15b),F=_0x57fb67(0x133),I={'name':A,'version':F},B=_0x57fb67(0x15d),f={};var G=Object[_0x57fb67(0x16e)],x=Object[_0x57fb67(0x14c)],z=(_0x2ff69b,_0x3853ee,_0x53b40a)=>_0x3853ee in _0x2ff69b?G(_0x2ff69b,_0x3853ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53b40a}):_0x2ff69b[_0x3853ee]=_0x53b40a,q=(_0x694615,_0x497454,_0x42c69a,_0x585e89)=>{const _0x414840=_0x57fb67;for(var _0x528538=_0x585e89>0x1?void 0x0:_0x585e89?x(_0x497454,_0x42c69a):_0x497454,_0x2b79b=_0x694615[_0x414840(0x17c)]-0x1,_0x2aebb5;_0x2b79b>=0x0;_0x2b79b--)(_0x2aebb5=_0x694615[_0x2b79b])&&(_0x528538=_0x2aebb5(_0x528538)||_0x528538);return _0x528538;},u=(_0x342148,_0xf238c8)=>(_0x4dbf79,_0xee1922)=>_0xf238c8(_0x4dbf79,_0xee1922,_0x342148),c=(_0x14cc3c,_0x5bd59f,_0x50df9a)=>z(_0x14cc3c,typeof _0x5bd59f!=_0x57fb67(0x13a)?_0x5bd59f+'':_0x5bd59f,_0x50df9a);exports['UniverSheetsShapePlugin']=class extends p[_0x57fb67(0x15a)]{constructor(_0x1e6b55=f,_0x10cf30,_0x17b3b4,_0x5b655b){const _0x373346=_0x57fb67;super(),this['_config']=_0x1e6b55,this['_injector']=_0x10cf30,this[_0x373346(0x152)]=_0x17b3b4,this['_configService']=_0x5b655b;const {..._0x26b6ff}=p[_0x373346(0x121)]({},f,this[_0x373346(0x156)]);this[_0x373346(0x170)]['setConfig'](B,_0x26b6ff),this[_0x373346(0x177)]();}[_0x57fb67(0x130)](){const _0x15ade1=_0x57fb67;p[_0x15ade1(0x16b)](this[_0x15ade1(0x178)],[]);}[_0x57fb67(0x17d)](){const _0x2a01fc=_0x57fb67,_0x30d23b=this[_0x2a01fc(0x178)];[[m],[exports['SheetsShapeService']]]['forEach'](_0x1e4ec5=>_0x30d23b[_0x2a01fc(0x12a)](_0x1e4ec5));}[_0x57fb67(0x177)](){const _0x5485b2=_0x57fb67;[v,y,d,T][_0x5485b2(0x141)](_0x2e7ccc=>this['disposeWithMe'](this[_0x5485b2(0x152)][_0x5485b2(0x15f)](_0x2e7ccc)));}},c(exports[_0x57fb67(0x12f)],_0x57fb67(0x143),p[_0x57fb67(0x185)][_0x57fb67(0x158)]),c(exports[_0x57fb67(0x12f)],_0x57fb67(0x186),_0x57fb67(0x12b)),c(exports[_0x57fb67(0x12f)],_0x57fb67(0x126),I['name']),c(exports[_0x57fb67(0x12f)],_0x57fb67(0x163),I[_0x57fb67(0x163)]),exports[_0x57fb67(0x12f)]=q([p[_0x57fb67(0x168)](R[_0x57fb67(0x183)]),u(0x1,p[_0x57fb67(0x184)](p[_0x57fb67(0x181)])),u(0x2,p['ICommandService']),u(0x3,p[_0x57fb67(0x13c)])],exports[_0x57fb67(0x12f)]),exports[_0x57fb67(0x18b)]=v,exports[_0x57fb67(0x128)]=y,exports[_0x57fb67(0x159)]=T,exports[_0x57fb67(0x131)]=L,exports[_0x57fb67(0x150)]=d;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x43a6f2=_0x421c;(function(_0x4ae34e,_0x1c02ae){const _0x41a7b7=_0x421c,_0x558949=_0x4ae34e();while(!![]){try{const _0x1c8c37=-parseInt(_0x41a7b7(0xad))/0x1*(-parseInt(_0x41a7b7(0xe8))/0x2)+parseInt(_0x41a7b7(0xcb))/0x3+-parseInt(_0x41a7b7(0xe2))/0x4*(parseInt(_0x41a7b7(0xb8))/0x5)+-parseInt(_0x41a7b7(0xd5))/0x6*(parseInt(_0x41a7b7(0xd1))/0x7)+-parseInt(_0x41a7b7(0xe7))/0x8+-parseInt(_0x41a7b7(0xb4))/0x9+parseInt(_0x41a7b7(0xae))/0xa*(parseInt(_0x41a7b7(0xce))/0xb);if(_0x1c8c37===_0x1c02ae)break;else _0x558949['push'](_0x558949['shift']());}catch(_0x4b7533){_0x558949['push'](_0x558949['shift']());}}}(_0x14cf,0x6fa18));var R=Object[_0x43a6f2(0xc1)],C=(_0x2a89db,_0x2f5e71,_0x5c03fc)=>_0x2f5e71 in _0x2a89db?R(_0x2a89db,_0x2f5e71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c03fc}):_0x2a89db[_0x2f5e71]=_0x5c03fc,d=(_0x773689,_0x392702,_0x100533)=>C(_0x773689,typeof _0x392702!=_0x43a6f2(0xbe)?_0x392702+'':_0x392702,_0x100533);import{Disposable as _0x4b7b4d,UniverInstanceType as _0x26dd27,IResourceManagerService as _0x203dfb,CommandType as _0x49e1d5,ICommandService as _0x65add9,IUndoRedoService as _0x5b7d85,DependentOn as _0x26fc7e,Inject as _0x196b66,Injector as _0xf77523,Plugin as _0x4cf84e,merge as _0x41e183,touchDependencies as _0x55073d,IConfigService as _0x3ebb98}from'@univerjs/core';import{ShapeModel as _0x464ca3,isConnectorShape as _0x453e60}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x69e81b}from'@univerjs-pro/license';class T extends _0x4b7b4d{constructor(){const _0x5d5555=_0x43a6f2;super(),d(this,_0x5d5555(0xcd),new Map()),d(this,_0x5d5555(0xc4),new Set()),d(this,_0x5d5555(0xee),new Set());}[_0x43a6f2(0xcf)](_0x1d8001,_0x585ac6,_0x5cd8ef){const _0x59b7f3=_0x43a6f2,_0x59ab0a=new _0x464ca3(_0x1d8001,_0x585ac6,_0x5cd8ef);return this[_0x59b7f3(0xcd)][_0x59b7f3(0xb1)](_0x585ac6,_0x59ab0a),_0x453e60(_0x1d8001)&&this[_0x59b7f3(0xc4)]['add'](_0x585ac6),_0x59ab0a;}[_0x43a6f2(0xeb)](_0x2d8661){const _0x7b6934=_0x43a6f2;var _0x20a8a2,_0x1aad62;const _0x1b559b=[];for(const _0x924f74 of this['_linesIds']){const _0x39eecb=this[_0x7b6934(0xcd)][_0x7b6934(0xda)](_0x924f74);if(_0x39eecb){const _0x35314d=_0x39eecb['getShapeRelation']();_0x35314d&&(((_0x20a8a2=_0x35314d[_0x7b6934(0xa9)])==null?void 0x0:_0x20a8a2[_0x7b6934(0xa7)])===_0x2d8661&&_0x1b559b['push']({..._0x35314d['from'],'lineShapeId':_0x924f74,'isFrom':!0x0}),((_0x1aad62=_0x35314d['to'])==null?void 0x0:_0x1aad62[_0x7b6934(0xa7)])===_0x2d8661&&_0x1b559b[_0x7b6934(0xef)]({..._0x35314d['to'],'lineShapeId':_0x924f74,'isFrom':!0x1}));}}return _0x1b559b;}[_0x43a6f2(0xf0)](_0x11c47f){const _0x5a6db0=_0x43a6f2,_0x13675b=this['_shapes']['get'](_0x11c47f);if(_0x13675b)return _0x13675b[_0x5a6db0(0xa8)]();}[_0x43a6f2(0xb3)](_0x5861e9){const _0x398238=_0x43a6f2,_0x3163ba=this[_0x398238(0xcd)]['get'](_0x5861e9);if(_0x3163ba)return _0x3163ba[_0x398238(0xb3)]();}[_0x43a6f2(0xe1)](_0x2ece54){const _0x51297a=_0x43a6f2;return this[_0x51297a(0xcd)]['has'](_0x2ece54);}[_0x43a6f2(0xd2)](_0x354e4b){const _0x5b7a7f=_0x43a6f2,_0x3ccd33=this['_shapes'][_0x5b7a7f(0xda)](_0x354e4b);_0x3ccd33&&(_0x453e60(_0x3ccd33[_0x5b7a7f(0xb3)]())&&this[_0x5b7a7f(0xc4)]['delete'](_0x354e4b),this[_0x5b7a7f(0xcd)][_0x5b7a7f(0xaf)](_0x354e4b));}[_0x43a6f2(0xb2)](){const _0x45916a=_0x43a6f2,_0x3ac80e=[];return this[_0x45916a(0xcd)][_0x45916a(0xba)](_0x406120=>{const _0x43546e=_0x45916a;_0x3ac80e[_0x43546e(0xef)](_0x406120[_0x43546e(0xb2)]());}),_0x3ac80e;}['fromJSON'](_0x38bb4d){const _0x46147a=_0x43a6f2;for(const _0x2ee55b of _0x38bb4d){const {id:_0x1ce412,shapeType:_0x135f41}=_0x2ee55b,_0x22130f=this[_0x46147a(0xcf)](_0x135f41,_0x1ce412,_0x2ee55b[_0x46147a(0xc3)]);_0x22130f&&_0x22130f[_0x46147a(0xea)]()&&this['_linesIds'][_0x46147a(0xd0)](_0x1ce412);}}[_0x43a6f2(0xc6)](){const _0x559412=_0x43a6f2;this[_0x559412(0xa6)]||(this[_0x559412(0xcd)]['forEach'](_0x55948f=>{const _0xa1cd4f=_0x559412;_0x55948f[_0xa1cd4f(0xc6)]();}),this[_0x559412(0xcd)]['clear'](),this['_linesIds']['clear'](),this[_0x559412(0xee)][_0x559412(0xe6)](),super['dispose']());}}var $=Object[_0x43a6f2(0xd7)],V=(_0x3b2d48,_0x1101da,_0x5b1927,_0x1be1e5)=>{const _0x3d0f82=_0x43a6f2;for(var _0x1f1281=_0x1be1e5>0x1?void 0x0:_0x1be1e5?$(_0x1101da,_0x5b1927):_0x1101da,_0x44a118=_0x3b2d48[_0x3d0f82(0xe5)]-0x1,_0x4f530c;_0x44a118>=0x0;_0x44a118--)(_0x4f530c=_0x3b2d48[_0x44a118])&&(_0x1f1281=_0x4f530c(_0x1f1281)||_0x1f1281);return _0x1f1281;},K=(_0x207a13,_0x6bb06a)=>(_0x4a4fd4,_0x59fcd4)=>_0x6bb06a(_0x4a4fd4,_0x59fcd4,_0x207a13);const W=_0x43a6f2(0xd3);let i=class extends _0x4b7b4d{constructor(_0x4a443f){const _0x40c745=_0x43a6f2;super(),d(this,_0x40c745(0xd8),new Map()),(this['_resourcesManagerService']=_0x4a443f,this[_0x40c745(0xd6)]());}[_0x43a6f2(0xe9)](_0x43f03d,_0x16e722){const _0x1609b0=_0x43a6f2;let _0xb0cb56=this['_shapeModelManagerMap'][_0x1609b0(0xda)](_0x43f03d);_0xb0cb56||(_0xb0cb56=new Map(),this[_0x1609b0(0xd8)][_0x1609b0(0xb1)](_0x43f03d,_0xb0cb56));let _0x4fa5c6=_0xb0cb56[_0x1609b0(0xda)](_0x16e722);return _0x4fa5c6||(_0x4fa5c6=new T(),_0xb0cb56[_0x1609b0(0xb1)](_0x16e722,_0x4fa5c6)),_0x4fa5c6;}[_0x43a6f2(0xc5)](_0x2b128a,_0x4653c0,_0x497e8a,_0x1dfecd,_0x210f56){const _0x398954=_0x43a6f2;this[_0x398954(0xe9)](_0x2b128a,_0x4653c0)[_0x398954(0xcf)](_0x497e8a,_0x1dfecd,_0x210f56);}['removeShape'](_0x54b567,_0x49279d,_0x22a61c){const _0x135d2a=_0x43a6f2;this[_0x135d2a(0xe9)](_0x54b567,_0x49279d)[_0x135d2a(0xd2)](_0x22a61c);}['getBasicShapeType'](_0x893c94,_0x263843,_0xffdcb6){const _0x4917b3=_0x43a6f2;return this[_0x4917b3(0xe9)](_0x893c94,_0x263843)[_0x4917b3(0xb3)](_0xffdcb6);}[_0x43a6f2(0xb3)](_0xd9a4f8,_0x41b910,_0x39d752){const _0x329ee1=_0x43a6f2;return this[_0x329ee1(0xe9)](_0xd9a4f8,_0x41b910)[_0x329ee1(0xb3)](_0x39d752);}['hasShape'](_0x56e5f0,_0x9d8c59,_0x1922d8){const _0x28d24c=_0x43a6f2;return this[_0x28d24c(0xe9)](_0x56e5f0,_0x9d8c59)[_0x28d24c(0xe1)](_0x1922d8);}['getShapeTypeById'](_0x4432c7,_0x5b2696,_0x36ef67){const _0x4cbacb=_0x43a6f2;return this[_0x4cbacb(0xe9)](_0x4432c7,_0x5b2696)['getShapeType'](_0x36ef67);}[_0x43a6f2(0xb0)](_0x32113a,_0x438962,_0x369f02){const _0x132b5e=_0x43a6f2,_0x40847f=this['_ensureShapeModelManager'](_0x32113a,_0x438962);if(!_0x40847f['getShapeType'](_0x369f02))return;const _0x48abf7=_0x40847f[_0x132b5e(0xcd)][_0x132b5e(0xda)](_0x369f02);if(_0x48abf7)return _0x48abf7[_0x132b5e(0xdc)]();}[_0x43a6f2(0xdb)](_0x3647b6,_0x13751a,_0x3afdb2){const _0x27ec61=_0x43a6f2;return this[_0x27ec61(0xe9)](_0x3647b6,_0x13751a)[_0x27ec61(0xcd)][_0x27ec61(0xda)](_0x3afdb2);}['getBasicShapeRelation'](_0x275f85,_0x13ee72,_0x155922){const _0x199e96=_0x43a6f2;return this[_0x199e96(0xe9)](_0x275f85,_0x13ee72)['getBasicShapeRelation'](_0x155922);}['getLineShapeRelation'](_0x1b10a3,_0x42d94d,_0x487c92){const _0x2b11cc=_0x43a6f2,_0x596b76=this['_ensureShapeModelManager'](_0x1b10a3,_0x42d94d)[_0x2b11cc(0xcd)][_0x2b11cc(0xda)](_0x487c92);if(_0x596b76)return _0x596b76[_0x2b11cc(0xa8)]();}[_0x43a6f2(0xdd)](){}[_0x43a6f2(0xbf)](_0x4e4052){const _0x560e86=_0x43a6f2,_0x582638={},_0x5db59c=this['_shapeModelManagerMap'][_0x560e86(0xda)](_0x4e4052);return _0x5db59c&&_0x5db59c['forEach']((_0x37e9aa,_0x4d0e4d)=>{const _0x149ea6=_0x560e86,_0x2bbf6a=_0x37e9aa[_0x149ea6(0xb2)]();_0x2bbf6a['length']>0x0&&(_0x582638[_0x4d0e4d]=_0x2bbf6a);}),JSON[_0x560e86(0xcc)](_0x582638);}['_deserializeShapeForUnit'](_0x14c70f,_0x46bc8f){const _0x57d86a=_0x43a6f2;Object[_0x57d86a(0xed)](_0x46bc8f)['forEach'](_0x29888d=>{this['_ensureShapeModelManager'](_0x14c70f,_0x29888d)['fromJSON'](_0x46bc8f[_0x29888d]);});}[_0x43a6f2(0xb2)](){const _0x5df47c=_0x43a6f2,_0x1090fa={};return this[_0x5df47c(0xd8)][_0x5df47c(0xba)]((_0x40dff7,_0x11b75)=>{const _0x130317=_0x5df47c;_0x1090fa[_0x11b75]={},_0x40dff7[_0x130317(0xba)]((_0x2b7ae2,_0x431f19)=>{_0x1090fa[_0x11b75][_0x431f19]=_0x2b7ae2['toJSON']();});}),_0x1090fa;}[_0x43a6f2(0xec)](_0xe73ca6){const _0x406ac0=_0x43a6f2;Object[_0x406ac0(0xed)](_0xe73ca6)[_0x406ac0(0xba)](_0x5defbc=>{const _0x552c11=_0x406ac0,_0x31ffc2=_0xe73ca6[_0x5defbc];Object[_0x552c11(0xed)](_0x31ffc2)['forEach'](_0x37a41c=>{const _0x412e5f=_0x552c11;this[_0x412e5f(0xe9)](_0x5defbc,_0x37a41c)['fromJSON'](_0x31ffc2[_0x37a41c]);});});}[_0x43a6f2(0xd6)](){const _0x3f1f4c=_0x43a6f2;this['_resourcesManagerService']['registerPluginResource']({'pluginName':W,'businesses':[_0x26dd27[_0x3f1f4c(0xa5)]],'toJson':_0x135b0f=>this[_0x3f1f4c(0xbf)](_0x135b0f),'parseJson':_0x77431a=>JSON[_0x3f1f4c(0xaa)](_0x77431a),'onLoad':(_0x1fb15d,_0x46aa18)=>{const _0x397169=_0x3f1f4c;this[_0x397169(0xb9)](_0x1fb15d,_0x46aa18);},'onUnLoad':_0x2bc5be=>{const _0x24ccb1=_0x3f1f4c,_0x14c061=this['_shapeModelManagerMap'][_0x24ccb1(0xda)](_0x2bc5be);_0x14c061&&(_0x14c061[_0x24ccb1(0xba)](_0x3ff9d5=>{_0x3ff9d5['dispose']();}),this[_0x24ccb1(0xd8)][_0x24ccb1(0xaf)](_0x2bc5be));}});}['dispose'](){const _0x2a4526=_0x43a6f2;this[_0x2a4526(0xd8)][_0x2a4526(0xba)](_0xeff72e=>{_0xeff72e['forEach'](_0x12e8e4=>{const _0x1058a5=_0x421c;_0x12e8e4[_0x1058a5(0xc6)]();});});}};i=V([K(0x0,_0x203dfb)],i);const u={'id':'sheet.mutation.update-shape-type','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x3c19d7,_0x188894)=>{const _0x21d03a=_0x43a6f2,{unitId:_0x1aebf1,subUnitId:_0x314803,shapeType:_0x4faacd,shapeId:_0x27bb28,shapeData:_0x5c4ca8}=_0x188894,_0x28c798=_0x3c19d7[_0x21d03a(0xda)](i)[_0x21d03a(0xdb)](_0x1aebf1,_0x314803,_0x27bb28);return _0x28c798&&(_0x28c798[_0x21d03a(0xdd)](_0x4faacd),_0x5c4ca8&&(_0x28c798==null||_0x28c798[_0x21d03a(0xde)](_0x5c4ca8))),!0x0;}},pe={'id':_0x43a6f2(0xc8),'type':_0x49e1d5[_0x43a6f2(0xbc)],'handler':(_0x4218ee,_0x3c223c)=>{const _0x3a5281=_0x43a6f2;if(!_0x3c223c)return!0x1;const _0x26fc2c=_0x4218ee[_0x3a5281(0xda)](_0x65add9),_0x589419=_0x4218ee['get'](i),_0x314748=_0x4218ee[_0x3a5281(0xda)](_0x5b7d85),_0x9e32be=[],_0x267a0f=[],{unitId:_0x24bfe6,subUnitId:_0xb884d7,shapeId:_0x3dcefa,shapeType:_0x21f3c0,shapeData:_0x47d470}=_0x3c223c,_0x5b8c68=_0x589419[_0x3a5281(0xdb)](_0x24bfe6,_0xb884d7,_0x3dcefa);if(_0x5b8c68){const _0x23fb57=_0x5b8c68[_0x3a5281(0xb3)](),_0x4ca1cc=Object[_0x3a5281(0xc2)]({},_0x5b8c68[_0x3a5281(0xdc)]()),_0x577a72={'unitId':_0x24bfe6,'subUnitId':_0xb884d7,'shapeId':_0x3dcefa,'shapeType':_0x21f3c0,'shapeData':_0x47d470},_0x341c1d={'unitId':_0x24bfe6,'subUnitId':_0xb884d7,'shapeId':_0x3dcefa,'shapeType':_0x23fb57,'shapeData':_0x4ca1cc};return _0x9e32be[_0x3a5281(0xef)]({'id':u['id'],'params':_0x577a72}),_0x267a0f[_0x3a5281(0xef)]({'id':u['id'],'params':_0x341c1d}),_0x9e32be[_0x3a5281(0xb7)](_0x437d3c=>_0x26fc2c[_0x3a5281(0xab)](_0x437d3c['id'],_0x437d3c[_0x3a5281(0xe0)]))&&_0x314748[_0x3a5281(0xac)]({'unitID':_0x24bfe6,'redoMutations':[..._0x9e32be],'undoMutations':[..._0x267a0f]}),!0x0;}return!0x1;}},Y={'id':_0x43a6f2(0xdf),'type':_0x49e1d5['MUTATION'],'handler':(_0x4ab54f,_0x35dfd5)=>{const _0x460ef1=_0x43a6f2,{unitId:_0x139b7e,subUnitId:_0x3e2378,shapeType:_0x5b3de1,shapeId:_0x3167f4,shapeData:_0x2f1bf2}=_0x35dfd5;return _0x4ab54f['get'](i)[_0x460ef1(0xc5)](_0x139b7e,_0x3e2378,_0x5b3de1,_0x3167f4,_0x2f1bf2),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x1fad37,_0x44fc02)=>{const _0x55e4d6=_0x43a6f2,{unitId:_0x1d4c3,subUnitId:_0x3ce7d5,shapeId:_0x159aa5}=_0x44fc02;return _0x1fad37[_0x55e4d6(0xda)](i)['removeShape'](_0x1d4c3,_0x3ce7d5,_0x159aa5),!0x0;}},Q={'id':'sheet.mutation.update-shape-data','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x38d43d,_0x37d0af)=>{const _0x59c3d6=_0x43a6f2,{unitId:_0x3ba78e,subUnitId:_0x44b7ca,shapeType:_0x546535,shapeId:_0x383919,shapeData:_0x2a1b11}=_0x37d0af,_0x307f12=_0x38d43d[_0x59c3d6(0xda)](i)[_0x59c3d6(0xdb)](_0x3ba78e,_0x44b7ca,_0x383919);return _0x307f12&&(_0x546535!==void 0x0&&_0x307f12['setShapeType'](_0x546535),_0x2a1b11&&(_0x307f12==null||_0x307f12[_0x59c3d6(0xde)](_0x2a1b11,!0x0))),!0x0;}},X='sheets-shape.config',m={};function _0x421c(_0x19686e,_0x50be41){_0x19686e=_0x19686e-0xa5;const _0x14cf33=_0x14cf();let _0x421cda=_0x14cf33[_0x19686e];return _0x421cda;}var Z=Object[_0x43a6f2(0xc1)],k=Object[_0x43a6f2(0xd7)],ee=(_0x557a80,_0x3186c4,_0x80e7d7)=>_0x3186c4 in _0x557a80?Z(_0x557a80,_0x3186c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x80e7d7}):_0x557a80[_0x3186c4]=_0x80e7d7,ae=(_0x2e843e,_0xcef521,_0x311b8d,_0x344f1b)=>{const _0xc92546=_0x43a6f2;for(var _0x1333be=_0x344f1b>0x1?void 0x0:_0x344f1b?k(_0xcef521,_0x311b8d):_0xcef521,_0x383bb6=_0x2e843e[_0xc92546(0xe5)]-0x1,_0x2e3302;_0x383bb6>=0x0;_0x383bb6--)(_0x2e3302=_0x2e843e[_0x383bb6])&&(_0x1333be=_0x2e3302(_0x1333be)||_0x1333be);return _0x1333be;},g=(_0x3ff799,_0x69fafd)=>(_0x33eb9d,_0x3d7711)=>_0x69fafd(_0x33eb9d,_0x3d7711,_0x3ff799),E=(_0xa345fc,_0x3bcc12,_0x239c62)=>ee(_0xa345fc,typeof _0x3bcc12!=_0x43a6f2(0xbe)?_0x3bcc12+'':_0x3bcc12,_0x239c62);const se=_0x43a6f2(0xd3);let S=class extends _0x4cf84e{constructor(_0x143000=m,_0x114294,_0x1f05f3,_0xbfa95){const _0x4d0c73=_0x43a6f2;super(),this['_config']=_0x143000,this['_injector']=_0x114294,this[_0x4d0c73(0xe4)]=_0x1f05f3,this['_configService']=_0xbfa95;const {..._0x5ad44a}=_0x41e183({},m,this[_0x4d0c73(0xb5)]);this[_0x4d0c73(0xd9)]['setConfig'](X,_0x5ad44a),this['_initCommands']();}[_0x43a6f2(0xe3)](){const _0x3450ef=_0x43a6f2;_0x55073d(this[_0x3450ef(0xd4)],[]);}[_0x43a6f2(0xbb)](){const _0x3232fa=_0x43a6f2,_0x590c89=this['_injector'];[[T],[i]]['forEach'](_0x339708=>_0x590c89[_0x3232fa(0xd0)](_0x339708));}[_0x43a6f2(0xc7)](){const _0x1f01d8=_0x43a6f2;[Y,q,u,Q][_0x1f01d8(0xba)](_0x516021=>this[_0x1f01d8(0xb6)](this[_0x1f01d8(0xe4)][_0x1f01d8(0xc9)](_0x516021)));}};E(S,_0x43a6f2(0xbd),_0x26dd27['UNIVER_SHEET']),E(S,_0x43a6f2(0xca),se),S=ae([_0x26fc7e(_0x69e81b),g(0x1,_0x196b66(_0xf77523)),g(0x2,_0x65add9),g(0x3,_0x3ebb98)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};function _0x14cf(){const _0x595cf1=['443315WIlOiN','_deserializeShapeForUnit','forEach','onStarting','COMMAND','type','symbol','_serializeShapeForUnit','MUTATION','defineProperty','assign','shapeData','_linesIds','insertShape','dispose','_initCommands','sheet.command.update-shape-type','registerCommand','pluginName','1137750odJFmU','stringify','_shapes','587103MiAzZu','addShape','add','35enerlF','removeShape','SHEET_SHAPE_PLUGIN','_injector','764670GPObEp','_initSnapshot','getOwnPropertyDescriptor','_shapeModelManagerMap','_configService','get','getShapeModel','getShapeData','setShapeType','setShapeData','sheet.mutation.insert-shape','params','hasShape','24jiSMvf','onRendered','_commandService','length','clear','2161632OlRLlr','2gZirpw','_ensureShapeModelManager','isLineShape','getBasicShapeRelation','fromJSON','keys','_groupIds','push','getLineShapeRelation','UNIVER_SHEET','_disposed','shapeId','getShapeRelation','from','parse','syncExecuteCommand','pushUndoRedo','412073ynxJIB','260jWTktA','delete','getShapeDataById','set','toJSON','getShapeType','2541366zkoWRC','_config','disposeWithMe','every'];_0x14cf=function(){return _0x595cf1;};return _0x14cf();}
1
+ const _0x2b24b5=_0x48d2;(function(_0x44fccc,_0x105c5a){const _0x487e85=_0x48d2,_0x48cbca=_0x44fccc();while(!![]){try{const _0x2b6ddb=-parseInt(_0x487e85(0xd1))/0x1+parseInt(_0x487e85(0x105))/0x2+parseInt(_0x487e85(0xfc))/0x3+parseInt(_0x487e85(0xcd))/0x4+parseInt(_0x487e85(0xf2))/0x5+parseInt(_0x487e85(0xc1))/0x6*(-parseInt(_0x487e85(0xe4))/0x7)+-parseInt(_0x487e85(0xda))/0x8;if(_0x2b6ddb===_0x105c5a)break;else _0x48cbca['push'](_0x48cbca['shift']());}catch(_0x6d9a1e){_0x48cbca['push'](_0x48cbca['shift']());}}}(_0x5756,0xf417b));var C=Object[_0x2b24b5(0xec)],j=(_0x4a108a,_0x34395d,_0x399d22)=>_0x34395d in _0x4a108a?C(_0x4a108a,_0x34395d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x399d22}):_0x4a108a[_0x34395d]=_0x399d22,c=(_0x5a642b,_0x523c04,_0x2f61b1)=>j(_0x5a642b,typeof _0x523c04!=_0x2b24b5(0xfd)?_0x523c04+'':_0x523c04,_0x2f61b1);function _0x5756(){const _0x2ce1c7=['sheet.mutation.update-shape-data','sheet.mutation.remove-shape','getShapeType','packageName','clear','14iZvrKB','getOwnPropertyDescriptor','_injector','_linesIds','hasShape','setShapeType','stringify','disposeWithMe','defineProperty','add','@univerjs-pro/sheets-shape','_shapeModelManagerMap','SHEET_SHAPE_PLUGIN','push','6619395RQHYib','_groupIds','syncExecuteCommand','registerPluginResource','sheet.command.update-shape-type','from','keys','0.16.1-insiders.20260311-074e8ca','insertShape','onRendered','1147392CCyFEW','symbol','toJSON','_deserializeShapeForUnit','MUTATION','get','setConfig','getShapeRelation','has','1524244yYlsAG','_configService','parse','forEach','getShapeData','type','length','pushUndoRedo','3178218xDIZel','getShapeDataById','dispose','getLineShapeRelation','getBasicShapeType','_disposed','_serializeShapeForUnit','sheet.mutation.insert-shape','_shapes','onStarting','getShapeModel','removeShape','1579748emukrE','_ensureShapeModelManager','addShape','fromJSON','441062gSaKVn','set','_config','version','_initCommands','_resourcesManagerService','pluginName','shapeId','_initSnapshot','2905048ACYUbG','UNIVER_SHEET','getBasicShapeRelation','sheet.mutation.update-shape-type','setShapeData'];_0x5756=function(){return _0x2ce1c7;};return _0x5756();}import{Disposable as _0x383099,UniverInstanceType as _0x114115,IResourceManagerService as _0x552e44,CommandType as _0x45073a,ICommandService as _0x118ed6,IUndoRedoService as _0x3eb46b,DependentOn as _0x47b730,Inject as _0x4b433e,Injector as _0x868f12,Plugin as _0x3579e0,merge as _0x2a4dbf,touchDependencies as _0x376691,IConfigService as _0x2814c9}from'@univerjs/core';import{ShapeModel as _0x2fa66e,isConnectorShape as _0x330d46}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3083fc}from'@univerjs-pro/license';class E extends _0x383099{constructor(){const _0x1ee1ed=_0x2b24b5;super(),c(this,'_shapes',new Map()),c(this,'_linesIds',new Set()),c(this,_0x1ee1ed(0xf3),new Set());}['addShape'](_0x5a360e,_0x570aff,_0x2eaf7f){const _0x550371=_0x2b24b5,_0x26f528=new _0x2fa66e(_0x5a360e,_0x570aff,_0x2eaf7f);return this['_shapes'][_0x550371(0xd2)](_0x570aff,_0x26f528),_0x330d46(_0x5a360e)&&this[_0x550371(0xe7)][_0x550371(0xed)](_0x570aff),_0x26f528;}[_0x2b24b5(0xdc)](_0x25abc6){const _0x2dc053=_0x2b24b5;var _0xd2ee72,_0x3cade7;const _0xdcc8e5=[];for(const _0x2f593c of this['_linesIds']){const _0x2a70ee=this[_0x2dc053(0xc9)][_0x2dc053(0x101)](_0x2f593c);if(_0x2a70ee){const _0x2109d0=_0x2a70ee['getShapeRelation']();_0x2109d0&&(((_0xd2ee72=_0x2109d0[_0x2dc053(0xf7)])==null?void 0x0:_0xd2ee72['shapeId'])===_0x25abc6&&_0xdcc8e5[_0x2dc053(0xf1)]({..._0x2109d0[_0x2dc053(0xf7)],'lineShapeId':_0x2f593c,'isFrom':!0x0}),((_0x3cade7=_0x2109d0['to'])==null?void 0x0:_0x3cade7[_0x2dc053(0xd8)])===_0x25abc6&&_0xdcc8e5['push']({..._0x2109d0['to'],'lineShapeId':_0x2f593c,'isFrom':!0x1}));}}return _0xdcc8e5;}[_0x2b24b5(0xc4)](_0x2c408f){const _0xfe4332=_0x2b24b5,_0x2a4811=this[_0xfe4332(0xc9)][_0xfe4332(0x101)](_0x2c408f);if(_0x2a4811)return _0x2a4811['getShapeRelation']();}['getShapeType'](_0x22397b){const _0x55d72c=_0x2b24b5,_0x2be3e2=this[_0x55d72c(0xc9)][_0x55d72c(0x101)](_0x22397b);if(_0x2be3e2)return _0x2be3e2[_0x55d72c(0xe1)]();}['hasShape'](_0x4fbabe){const _0x9832f1=_0x2b24b5;return this[_0x9832f1(0xc9)][_0x9832f1(0x104)](_0x4fbabe);}[_0x2b24b5(0xcc)](_0x5a6ead){const _0x2c0e1e=_0x2b24b5,_0x63d790=this[_0x2c0e1e(0xc9)][_0x2c0e1e(0x101)](_0x5a6ead);_0x63d790&&(_0x330d46(_0x63d790[_0x2c0e1e(0xe1)]())&&this[_0x2c0e1e(0xe7)]['delete'](_0x5a6ead),this[_0x2c0e1e(0xc9)]['delete'](_0x5a6ead));}[_0x2b24b5(0xfe)](){const _0x5032c2=_0x2b24b5,_0x476595=[];return this['_shapes'][_0x5032c2(0x108)](_0x32c511=>{const _0x37c70b=_0x5032c2;_0x476595['push'](_0x32c511[_0x37c70b(0xfe)]());}),_0x476595;}[_0x2b24b5(0xd0)](_0x2184be){const _0x2342da=_0x2b24b5;for(const _0x5e2d93 of _0x2184be){const {id:_0x90b837,shapeType:_0x4d6629}=_0x5e2d93,_0x500f63=this[_0x2342da(0xcf)](_0x4d6629,_0x90b837,_0x5e2d93['shapeData']);_0x500f63&&_0x500f63['isLineShape']()&&this['_linesIds']['add'](_0x90b837);}}[_0x2b24b5(0xc3)](){const _0xa707ee=_0x2b24b5;this[_0xa707ee(0xc6)]||(this[_0xa707ee(0xc9)][_0xa707ee(0x108)](_0x59f410=>{const _0x55fe9c=_0xa707ee;_0x59f410[_0x55fe9c(0xc3)]();}),this[_0xa707ee(0xc9)]['clear'](),this[_0xa707ee(0xe7)]['clear'](),this['_groupIds'][_0xa707ee(0xe3)](),super[_0xa707ee(0xc3)]());}}var V=Object[_0x2b24b5(0xe5)],K=(_0xc43608,_0x321ede,_0x3dba1c,_0x14091a)=>{const _0x2d441f=_0x2b24b5;for(var _0x505160=_0x14091a>0x1?void 0x0:_0x14091a?V(_0x321ede,_0x3dba1c):_0x321ede,_0x2d75f4=_0xc43608[_0x2d441f(0xbf)]-0x1,_0x5770b0;_0x2d75f4>=0x0;_0x2d75f4--)(_0x5770b0=_0xc43608[_0x2d75f4])&&(_0x505160=_0x5770b0(_0x505160)||_0x505160);return _0x505160;},W=(_0x5d595d,_0x3b8942)=>(_0x5dc66f,_0x575ca0)=>_0x3b8942(_0x5dc66f,_0x575ca0,_0x5d595d);const Y='SHEET_SHAPE_PLUGIN';function _0x48d2(_0x9b4ece,_0xb36fd9){_0x9b4ece=_0x9b4ece-0xbf;const _0x5756c9=_0x5756();let _0x48d22c=_0x5756c9[_0x9b4ece];return _0x48d22c;}let i=class extends _0x383099{constructor(_0x298b66){const _0x515158=_0x2b24b5;super(),c(this,'_shapeModelManagerMap',new Map()),(this[_0x515158(0xd6)]=_0x298b66,this[_0x515158(0xd9)]());}[_0x2b24b5(0xce)](_0x261d0c,_0x2f4078){const _0x59b84f=_0x2b24b5;let _0x440ad3=this[_0x59b84f(0xef)]['get'](_0x261d0c);_0x440ad3||(_0x440ad3=new Map(),this['_shapeModelManagerMap'][_0x59b84f(0xd2)](_0x261d0c,_0x440ad3));let _0x33c730=_0x440ad3[_0x59b84f(0x101)](_0x2f4078);return _0x33c730||(_0x33c730=new E(),_0x440ad3[_0x59b84f(0xd2)](_0x2f4078,_0x33c730)),_0x33c730;}[_0x2b24b5(0xfa)](_0x273e39,_0x3a2a15,_0x70e983,_0x1a7eb6,_0x102633){const _0x36ab3a=_0x2b24b5;this[_0x36ab3a(0xce)](_0x273e39,_0x3a2a15)[_0x36ab3a(0xcf)](_0x70e983,_0x1a7eb6,_0x102633);}[_0x2b24b5(0xcc)](_0x3ec110,_0x369dfe,_0x41a511){const _0x3dac3d=_0x2b24b5;this['_ensureShapeModelManager'](_0x3ec110,_0x369dfe)[_0x3dac3d(0xcc)](_0x41a511);}[_0x2b24b5(0xc5)](_0x468238,_0x35ecb6,_0x387a0c){const _0x5bdfc7=_0x2b24b5;return this[_0x5bdfc7(0xce)](_0x468238,_0x35ecb6)['getShapeType'](_0x387a0c);}[_0x2b24b5(0xe1)](_0x193032,_0xd4df3e,_0x400574){const _0x491581=_0x2b24b5;return this[_0x491581(0xce)](_0x193032,_0xd4df3e)[_0x491581(0xe1)](_0x400574);}[_0x2b24b5(0xe8)](_0x100d1e,_0x2de1bd,_0x3c4580){const _0x435b8b=_0x2b24b5;return this['_ensureShapeModelManager'](_0x100d1e,_0x2de1bd)[_0x435b8b(0xe8)](_0x3c4580);}['getShapeTypeById'](_0xd27604,_0x843189,_0x1bb01f){const _0x1b6970=_0x2b24b5;return this['_ensureShapeModelManager'](_0xd27604,_0x843189)[_0x1b6970(0xe1)](_0x1bb01f);}[_0x2b24b5(0xc2)](_0x3aafc4,_0x4aa3c7,_0x465f70){const _0x156f5b=_0x2b24b5,_0x2e4e56=this[_0x156f5b(0xce)](_0x3aafc4,_0x4aa3c7);if(!_0x2e4e56[_0x156f5b(0xe1)](_0x465f70))return;const _0x4813e3=_0x2e4e56['_shapes']['get'](_0x465f70);if(_0x4813e3)return _0x4813e3['getShapeData']();}[_0x2b24b5(0xcb)](_0x358789,_0xc3bf00,_0x539a56){const _0x4ad24b=_0x2b24b5;return this['_ensureShapeModelManager'](_0x358789,_0xc3bf00)[_0x4ad24b(0xc9)][_0x4ad24b(0x101)](_0x539a56);}[_0x2b24b5(0xdc)](_0xde1d60,_0x5b0b36,_0x4c2875){const _0xe7616b=_0x2b24b5;return this['_ensureShapeModelManager'](_0xde1d60,_0x5b0b36)[_0xe7616b(0xdc)](_0x4c2875);}['getLineShapeRelation'](_0x3d6f78,_0x528fd6,_0x3028ea){const _0x3e211a=_0x2b24b5,_0x20d61f=this['_ensureShapeModelManager'](_0x3d6f78,_0x528fd6)['_shapes'][_0x3e211a(0x101)](_0x3028ea);if(_0x20d61f)return _0x20d61f[_0x3e211a(0x103)]();}[_0x2b24b5(0xe9)](){}[_0x2b24b5(0xc7)](_0x21c6de){const _0x456dbd=_0x2b24b5,_0x11242f={},_0x75a301=this[_0x456dbd(0xef)][_0x456dbd(0x101)](_0x21c6de);return _0x75a301&&_0x75a301[_0x456dbd(0x108)]((_0x3b85ab,_0x16129a)=>{const _0xed2fd8=_0x456dbd,_0x186504=_0x3b85ab[_0xed2fd8(0xfe)]();_0x186504[_0xed2fd8(0xbf)]>0x0&&(_0x11242f[_0x16129a]=_0x186504);}),JSON[_0x456dbd(0xea)](_0x11242f);}[_0x2b24b5(0xff)](_0x5245c5,_0x2a0c07){const _0x5e8971=_0x2b24b5;Object[_0x5e8971(0xf8)](_0x2a0c07)[_0x5e8971(0x108)](_0xcd7a02=>{const _0x27ec48=_0x5e8971;this[_0x27ec48(0xce)](_0x5245c5,_0xcd7a02)[_0x27ec48(0xd0)](_0x2a0c07[_0xcd7a02]);});}[_0x2b24b5(0xfe)](){const _0x1508de=_0x2b24b5,_0x2b0871={};return this[_0x1508de(0xef)][_0x1508de(0x108)]((_0x4d67b4,_0x45c465)=>{_0x2b0871[_0x45c465]={},_0x4d67b4['forEach']((_0x37c2af,_0x38b7ec)=>{_0x2b0871[_0x45c465][_0x38b7ec]=_0x37c2af['toJSON']();});}),_0x2b0871;}['fromJSON'](_0x383247){const _0x2dba58=_0x2b24b5;Object[_0x2dba58(0xf8)](_0x383247)[_0x2dba58(0x108)](_0x320b6a=>{const _0x22e990=_0x2dba58,_0x53618d=_0x383247[_0x320b6a];Object[_0x22e990(0xf8)](_0x53618d)[_0x22e990(0x108)](_0x17ae1e=>{const _0x2d8c0f=_0x22e990;this[_0x2d8c0f(0xce)](_0x320b6a,_0x17ae1e)['fromJSON'](_0x53618d[_0x17ae1e]);});});}['_initSnapshot'](){const _0x3582c5=_0x2b24b5;this[_0x3582c5(0xd6)][_0x3582c5(0xf5)]({'pluginName':Y,'businesses':[_0x114115[_0x3582c5(0xdb)]],'toJson':_0x1d9ab0=>this[_0x3582c5(0xc7)](_0x1d9ab0),'parseJson':_0x270637=>JSON[_0x3582c5(0x107)](_0x270637),'onLoad':(_0x4fa84b,_0x220828)=>{const _0xcee71c=_0x3582c5;this[_0xcee71c(0xff)](_0x4fa84b,_0x220828);},'onUnLoad':_0x55d5d7=>{const _0x53b4d8=_0x3582c5,_0x43c2dd=this[_0x53b4d8(0xef)][_0x53b4d8(0x101)](_0x55d5d7);_0x43c2dd&&(_0x43c2dd[_0x53b4d8(0x108)](_0xe56ab6=>{const _0x534c71=_0x53b4d8;_0xe56ab6[_0x534c71(0xc3)]();}),this[_0x53b4d8(0xef)]['delete'](_0x55d5d7));}});}[_0x2b24b5(0xc3)](){const _0x4f9ed2=_0x2b24b5;this[_0x4f9ed2(0xef)]['forEach'](_0x33a21d=>{const _0x53bb4f=_0x4f9ed2;_0x33a21d[_0x53bb4f(0x108)](_0x555a0a=>{const _0x357afc=_0x53bb4f;_0x555a0a[_0x357afc(0xc3)]();});});}};i=K([W(0x0,_0x552e44)],i);const _={'id':_0x2b24b5(0xdd),'type':_0x45073a[_0x2b24b5(0x100)],'handler':(_0x24734b,_0x45bec3)=>{const _0x5d686f=_0x2b24b5,{unitId:_0x380532,subUnitId:_0x1d4e48,shapeType:_0xa9c63b,shapeId:_0xccaa08,shapeData:_0x53c55e}=_0x45bec3,_0x41d033=_0x24734b[_0x5d686f(0x101)](i)['getShapeModel'](_0x380532,_0x1d4e48,_0xccaa08);return _0x41d033&&(_0x41d033[_0x5d686f(0xe9)](_0xa9c63b),_0x53c55e&&(_0x41d033==null||_0x41d033[_0x5d686f(0xde)](_0x53c55e))),!0x0;}},de={'id':_0x2b24b5(0xf6),'type':_0x45073a['COMMAND'],'handler':(_0x24d6f2,_0xdbbbfa)=>{const _0xf49d06=_0x2b24b5;if(!_0xdbbbfa)return!0x1;const _0x4815c9=_0x24d6f2['get'](_0x118ed6),_0x5badaf=_0x24d6f2['get'](i),_0x5276f8=_0x24d6f2[_0xf49d06(0x101)](_0x3eb46b),_0x5e4e0a=[],_0x2f3e66=[],{unitId:_0x260bcd,subUnitId:_0x4bc3d0,shapeId:_0x51de96,shapeType:_0x2ea417,shapeData:_0xe755c0}=_0xdbbbfa,_0x1b0c58=_0x5badaf[_0xf49d06(0xcb)](_0x260bcd,_0x4bc3d0,_0x51de96);if(_0x1b0c58){const _0x52943a=_0x1b0c58['getShapeType'](),_0x4b2bc3=Object['assign']({},_0x1b0c58[_0xf49d06(0x109)]()),_0x5de06c={'unitId':_0x260bcd,'subUnitId':_0x4bc3d0,'shapeId':_0x51de96,'shapeType':_0x2ea417,'shapeData':_0xe755c0},_0x24c1e3={'unitId':_0x260bcd,'subUnitId':_0x4bc3d0,'shapeId':_0x51de96,'shapeType':_0x52943a,'shapeData':_0x4b2bc3};return _0x5e4e0a[_0xf49d06(0xf1)]({'id':_['id'],'params':_0x5de06c}),_0x2f3e66[_0xf49d06(0xf1)]({'id':_['id'],'params':_0x24c1e3}),_0x5e4e0a['every'](_0x221550=>_0x4815c9[_0xf49d06(0xf4)](_0x221550['id'],_0x221550['params']))&&_0x5276f8[_0xf49d06(0xc0)]({'unitID':_0x260bcd,'redoMutations':[..._0x5e4e0a],'undoMutations':[..._0x2f3e66]}),!0x0;}return!0x1;}},q={'id':_0x2b24b5(0xc8),'type':_0x45073a['MUTATION'],'handler':(_0x3ab55e,_0x2a64cf)=>{const _0xc3e6da=_0x2b24b5,{unitId:_0x4a254f,subUnitId:_0x2f7a18,shapeType:_0x33ad3a,shapeId:_0x115a80,shapeData:_0x296211}=_0x2a64cf;return _0x3ab55e[_0xc3e6da(0x101)](i)[_0xc3e6da(0xfa)](_0x4a254f,_0x2f7a18,_0x33ad3a,_0x115a80,_0x296211),!0x0;}},Q={'id':_0x2b24b5(0xe0),'type':_0x45073a[_0x2b24b5(0x100)],'handler':(_0x3bb0cc,_0xb8473b)=>{const _0x294f7b=_0x2b24b5,{unitId:_0x2592c3,subUnitId:_0x506dab,shapeId:_0x2a816b}=_0xb8473b;return _0x3bb0cc[_0x294f7b(0x101)](i)[_0x294f7b(0xcc)](_0x2592c3,_0x506dab,_0x2a816b),!0x0;}},X={'id':_0x2b24b5(0xdf),'type':_0x45073a[_0x2b24b5(0x100)],'handler':(_0x363365,_0x247199)=>{const _0x238883=_0x2b24b5,{unitId:_0x1ef4a6,subUnitId:_0x1b8cc5,shapeType:_0x206076,shapeId:_0x4c21ea,shapeData:_0x4ddf6a}=_0x247199,_0x348326=_0x363365[_0x238883(0x101)](i)[_0x238883(0xcb)](_0x1ef4a6,_0x1b8cc5,_0x4c21ea);return _0x348326&&(_0x206076!==void 0x0&&_0x348326['setShapeType'](_0x206076),_0x4ddf6a&&(_0x348326==null||_0x348326[_0x238883(0xde)](_0x4ddf6a,!0x0))),!0x0;}},Z=_0x2b24b5(0xee),k=_0x2b24b5(0xf9),O={'name':Z,'version':k},ee='sheets-shape.config',v={};var ae=Object[_0x2b24b5(0xec)],se=Object[_0x2b24b5(0xe5)],te=(_0x187c49,_0x6ed85e,_0x867361)=>_0x6ed85e in _0x187c49?ae(_0x187c49,_0x6ed85e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x867361}):_0x187c49[_0x6ed85e]=_0x867361,ne=(_0x509f09,_0x60b19d,_0xf8a693,_0x154666)=>{const _0x588fee=_0x2b24b5;for(var _0x114895=_0x154666>0x1?void 0x0:_0x154666?se(_0x60b19d,_0xf8a693):_0x60b19d,_0x154724=_0x509f09[_0x588fee(0xbf)]-0x1,_0x68a3ee;_0x154724>=0x0;_0x154724--)(_0x68a3ee=_0x509f09[_0x154724])&&(_0x114895=_0x68a3ee(_0x114895)||_0x114895);return _0x114895;},u=(_0x407881,_0x15200a)=>(_0x5701dd,_0x4335bd)=>_0x15200a(_0x5701dd,_0x4335bd,_0x407881),M=(_0x5c4edc,_0xc6727,_0x3ced27)=>te(_0x5c4edc,typeof _0xc6727!='symbol'?_0xc6727+'':_0xc6727,_0x3ced27);let d=class extends _0x3579e0{constructor(_0x361a52=v,_0xaf83ed,_0x220530,_0xf18bd0){const _0x47bf1b=_0x2b24b5;super(),this[_0x47bf1b(0xd3)]=_0x361a52,this[_0x47bf1b(0xe6)]=_0xaf83ed,this['_commandService']=_0x220530,this[_0x47bf1b(0x106)]=_0xf18bd0;const {..._0x1f874e}=_0x2a4dbf({},v,this[_0x47bf1b(0xd3)]);this[_0x47bf1b(0x106)][_0x47bf1b(0x102)](ee,_0x1f874e),this['_initCommands']();}[_0x2b24b5(0xfb)](){const _0x1e6cc0=_0x2b24b5;_0x376691(this[_0x1e6cc0(0xe6)],[]);}[_0x2b24b5(0xca)](){const _0x29189c=_0x2b24b5,_0x14b4d6=this[_0x29189c(0xe6)];[[E],[i]][_0x29189c(0x108)](_0x11b460=>_0x14b4d6[_0x29189c(0xed)](_0x11b460));}[_0x2b24b5(0xd5)](){const _0x496ff6=_0x2b24b5;[q,Q,_,X][_0x496ff6(0x108)](_0x4367f3=>this[_0x496ff6(0xeb)](this['_commandService']['registerCommand'](_0x4367f3)));}};M(d,_0x2b24b5(0x10a),_0x114115[_0x2b24b5(0xdb)]),M(d,_0x2b24b5(0xd7),_0x2b24b5(0xf0)),M(d,_0x2b24b5(0xe2),O['name']),M(d,_0x2b24b5(0xd4),O['version']),d=ne([_0x47b730(_0x3083fc),u(0x1,_0x4b433e(_0x868f12)),u(0x2,_0x118ed6),u(0x3,_0x2814c9)],d);export{q as InsertSheetsShapeMutation,Q as RemoveSheetsShapeMutation,i as SheetsShapeService,d as UniverSheetsShapePlugin,X as UpdateSheetsShapeDataMutation,de as UpdateSheetsShapeTypeCommand,_ as UpdateSheetsShapeTypeMutation};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x43a6f2=_0x421c;(function(_0x4ae34e,_0x1c02ae){const _0x41a7b7=_0x421c,_0x558949=_0x4ae34e();while(!![]){try{const _0x1c8c37=-parseInt(_0x41a7b7(0xad))/0x1*(-parseInt(_0x41a7b7(0xe8))/0x2)+parseInt(_0x41a7b7(0xcb))/0x3+-parseInt(_0x41a7b7(0xe2))/0x4*(parseInt(_0x41a7b7(0xb8))/0x5)+-parseInt(_0x41a7b7(0xd5))/0x6*(parseInt(_0x41a7b7(0xd1))/0x7)+-parseInt(_0x41a7b7(0xe7))/0x8+-parseInt(_0x41a7b7(0xb4))/0x9+parseInt(_0x41a7b7(0xae))/0xa*(parseInt(_0x41a7b7(0xce))/0xb);if(_0x1c8c37===_0x1c02ae)break;else _0x558949['push'](_0x558949['shift']());}catch(_0x4b7533){_0x558949['push'](_0x558949['shift']());}}}(_0x14cf,0x6fa18));var R=Object[_0x43a6f2(0xc1)],C=(_0x2a89db,_0x2f5e71,_0x5c03fc)=>_0x2f5e71 in _0x2a89db?R(_0x2a89db,_0x2f5e71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c03fc}):_0x2a89db[_0x2f5e71]=_0x5c03fc,d=(_0x773689,_0x392702,_0x100533)=>C(_0x773689,typeof _0x392702!=_0x43a6f2(0xbe)?_0x392702+'':_0x392702,_0x100533);import{Disposable as _0x4b7b4d,UniverInstanceType as _0x26dd27,IResourceManagerService as _0x203dfb,CommandType as _0x49e1d5,ICommandService as _0x65add9,IUndoRedoService as _0x5b7d85,DependentOn as _0x26fc7e,Inject as _0x196b66,Injector as _0xf77523,Plugin as _0x4cf84e,merge as _0x41e183,touchDependencies as _0x55073d,IConfigService as _0x3ebb98}from'@univerjs/core';import{ShapeModel as _0x464ca3,isConnectorShape as _0x453e60}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x69e81b}from'@univerjs-pro/license';class T extends _0x4b7b4d{constructor(){const _0x5d5555=_0x43a6f2;super(),d(this,_0x5d5555(0xcd),new Map()),d(this,_0x5d5555(0xc4),new Set()),d(this,_0x5d5555(0xee),new Set());}[_0x43a6f2(0xcf)](_0x1d8001,_0x585ac6,_0x5cd8ef){const _0x59b7f3=_0x43a6f2,_0x59ab0a=new _0x464ca3(_0x1d8001,_0x585ac6,_0x5cd8ef);return this[_0x59b7f3(0xcd)][_0x59b7f3(0xb1)](_0x585ac6,_0x59ab0a),_0x453e60(_0x1d8001)&&this[_0x59b7f3(0xc4)]['add'](_0x585ac6),_0x59ab0a;}[_0x43a6f2(0xeb)](_0x2d8661){const _0x7b6934=_0x43a6f2;var _0x20a8a2,_0x1aad62;const _0x1b559b=[];for(const _0x924f74 of this['_linesIds']){const _0x39eecb=this[_0x7b6934(0xcd)][_0x7b6934(0xda)](_0x924f74);if(_0x39eecb){const _0x35314d=_0x39eecb['getShapeRelation']();_0x35314d&&(((_0x20a8a2=_0x35314d[_0x7b6934(0xa9)])==null?void 0x0:_0x20a8a2[_0x7b6934(0xa7)])===_0x2d8661&&_0x1b559b['push']({..._0x35314d['from'],'lineShapeId':_0x924f74,'isFrom':!0x0}),((_0x1aad62=_0x35314d['to'])==null?void 0x0:_0x1aad62[_0x7b6934(0xa7)])===_0x2d8661&&_0x1b559b[_0x7b6934(0xef)]({..._0x35314d['to'],'lineShapeId':_0x924f74,'isFrom':!0x1}));}}return _0x1b559b;}[_0x43a6f2(0xf0)](_0x11c47f){const _0x5a6db0=_0x43a6f2,_0x13675b=this['_shapes']['get'](_0x11c47f);if(_0x13675b)return _0x13675b[_0x5a6db0(0xa8)]();}[_0x43a6f2(0xb3)](_0x5861e9){const _0x398238=_0x43a6f2,_0x3163ba=this[_0x398238(0xcd)]['get'](_0x5861e9);if(_0x3163ba)return _0x3163ba[_0x398238(0xb3)]();}[_0x43a6f2(0xe1)](_0x2ece54){const _0x51297a=_0x43a6f2;return this[_0x51297a(0xcd)]['has'](_0x2ece54);}[_0x43a6f2(0xd2)](_0x354e4b){const _0x5b7a7f=_0x43a6f2,_0x3ccd33=this['_shapes'][_0x5b7a7f(0xda)](_0x354e4b);_0x3ccd33&&(_0x453e60(_0x3ccd33[_0x5b7a7f(0xb3)]())&&this[_0x5b7a7f(0xc4)]['delete'](_0x354e4b),this[_0x5b7a7f(0xcd)][_0x5b7a7f(0xaf)](_0x354e4b));}[_0x43a6f2(0xb2)](){const _0x45916a=_0x43a6f2,_0x3ac80e=[];return this[_0x45916a(0xcd)][_0x45916a(0xba)](_0x406120=>{const _0x43546e=_0x45916a;_0x3ac80e[_0x43546e(0xef)](_0x406120[_0x43546e(0xb2)]());}),_0x3ac80e;}['fromJSON'](_0x38bb4d){const _0x46147a=_0x43a6f2;for(const _0x2ee55b of _0x38bb4d){const {id:_0x1ce412,shapeType:_0x135f41}=_0x2ee55b,_0x22130f=this[_0x46147a(0xcf)](_0x135f41,_0x1ce412,_0x2ee55b[_0x46147a(0xc3)]);_0x22130f&&_0x22130f[_0x46147a(0xea)]()&&this['_linesIds'][_0x46147a(0xd0)](_0x1ce412);}}[_0x43a6f2(0xc6)](){const _0x559412=_0x43a6f2;this[_0x559412(0xa6)]||(this[_0x559412(0xcd)]['forEach'](_0x55948f=>{const _0xa1cd4f=_0x559412;_0x55948f[_0xa1cd4f(0xc6)]();}),this[_0x559412(0xcd)]['clear'](),this['_linesIds']['clear'](),this[_0x559412(0xee)][_0x559412(0xe6)](),super['dispose']());}}var $=Object[_0x43a6f2(0xd7)],V=(_0x3b2d48,_0x1101da,_0x5b1927,_0x1be1e5)=>{const _0x3d0f82=_0x43a6f2;for(var _0x1f1281=_0x1be1e5>0x1?void 0x0:_0x1be1e5?$(_0x1101da,_0x5b1927):_0x1101da,_0x44a118=_0x3b2d48[_0x3d0f82(0xe5)]-0x1,_0x4f530c;_0x44a118>=0x0;_0x44a118--)(_0x4f530c=_0x3b2d48[_0x44a118])&&(_0x1f1281=_0x4f530c(_0x1f1281)||_0x1f1281);return _0x1f1281;},K=(_0x207a13,_0x6bb06a)=>(_0x4a4fd4,_0x59fcd4)=>_0x6bb06a(_0x4a4fd4,_0x59fcd4,_0x207a13);const W=_0x43a6f2(0xd3);let i=class extends _0x4b7b4d{constructor(_0x4a443f){const _0x40c745=_0x43a6f2;super(),d(this,_0x40c745(0xd8),new Map()),(this['_resourcesManagerService']=_0x4a443f,this[_0x40c745(0xd6)]());}[_0x43a6f2(0xe9)](_0x43f03d,_0x16e722){const _0x1609b0=_0x43a6f2;let _0xb0cb56=this['_shapeModelManagerMap'][_0x1609b0(0xda)](_0x43f03d);_0xb0cb56||(_0xb0cb56=new Map(),this[_0x1609b0(0xd8)][_0x1609b0(0xb1)](_0x43f03d,_0xb0cb56));let _0x4fa5c6=_0xb0cb56[_0x1609b0(0xda)](_0x16e722);return _0x4fa5c6||(_0x4fa5c6=new T(),_0xb0cb56[_0x1609b0(0xb1)](_0x16e722,_0x4fa5c6)),_0x4fa5c6;}[_0x43a6f2(0xc5)](_0x2b128a,_0x4653c0,_0x497e8a,_0x1dfecd,_0x210f56){const _0x398954=_0x43a6f2;this[_0x398954(0xe9)](_0x2b128a,_0x4653c0)[_0x398954(0xcf)](_0x497e8a,_0x1dfecd,_0x210f56);}['removeShape'](_0x54b567,_0x49279d,_0x22a61c){const _0x135d2a=_0x43a6f2;this[_0x135d2a(0xe9)](_0x54b567,_0x49279d)[_0x135d2a(0xd2)](_0x22a61c);}['getBasicShapeType'](_0x893c94,_0x263843,_0xffdcb6){const _0x4917b3=_0x43a6f2;return this[_0x4917b3(0xe9)](_0x893c94,_0x263843)[_0x4917b3(0xb3)](_0xffdcb6);}[_0x43a6f2(0xb3)](_0xd9a4f8,_0x41b910,_0x39d752){const _0x329ee1=_0x43a6f2;return this[_0x329ee1(0xe9)](_0xd9a4f8,_0x41b910)[_0x329ee1(0xb3)](_0x39d752);}['hasShape'](_0x56e5f0,_0x9d8c59,_0x1922d8){const _0x28d24c=_0x43a6f2;return this[_0x28d24c(0xe9)](_0x56e5f0,_0x9d8c59)[_0x28d24c(0xe1)](_0x1922d8);}['getShapeTypeById'](_0x4432c7,_0x5b2696,_0x36ef67){const _0x4cbacb=_0x43a6f2;return this[_0x4cbacb(0xe9)](_0x4432c7,_0x5b2696)['getShapeType'](_0x36ef67);}[_0x43a6f2(0xb0)](_0x32113a,_0x438962,_0x369f02){const _0x132b5e=_0x43a6f2,_0x40847f=this['_ensureShapeModelManager'](_0x32113a,_0x438962);if(!_0x40847f['getShapeType'](_0x369f02))return;const _0x48abf7=_0x40847f[_0x132b5e(0xcd)][_0x132b5e(0xda)](_0x369f02);if(_0x48abf7)return _0x48abf7[_0x132b5e(0xdc)]();}[_0x43a6f2(0xdb)](_0x3647b6,_0x13751a,_0x3afdb2){const _0x27ec61=_0x43a6f2;return this[_0x27ec61(0xe9)](_0x3647b6,_0x13751a)[_0x27ec61(0xcd)][_0x27ec61(0xda)](_0x3afdb2);}['getBasicShapeRelation'](_0x275f85,_0x13ee72,_0x155922){const _0x199e96=_0x43a6f2;return this[_0x199e96(0xe9)](_0x275f85,_0x13ee72)['getBasicShapeRelation'](_0x155922);}['getLineShapeRelation'](_0x1b10a3,_0x42d94d,_0x487c92){const _0x2b11cc=_0x43a6f2,_0x596b76=this['_ensureShapeModelManager'](_0x1b10a3,_0x42d94d)[_0x2b11cc(0xcd)][_0x2b11cc(0xda)](_0x487c92);if(_0x596b76)return _0x596b76[_0x2b11cc(0xa8)]();}[_0x43a6f2(0xdd)](){}[_0x43a6f2(0xbf)](_0x4e4052){const _0x560e86=_0x43a6f2,_0x582638={},_0x5db59c=this['_shapeModelManagerMap'][_0x560e86(0xda)](_0x4e4052);return _0x5db59c&&_0x5db59c['forEach']((_0x37e9aa,_0x4d0e4d)=>{const _0x149ea6=_0x560e86,_0x2bbf6a=_0x37e9aa[_0x149ea6(0xb2)]();_0x2bbf6a['length']>0x0&&(_0x582638[_0x4d0e4d]=_0x2bbf6a);}),JSON[_0x560e86(0xcc)](_0x582638);}['_deserializeShapeForUnit'](_0x14c70f,_0x46bc8f){const _0x57d86a=_0x43a6f2;Object[_0x57d86a(0xed)](_0x46bc8f)['forEach'](_0x29888d=>{this['_ensureShapeModelManager'](_0x14c70f,_0x29888d)['fromJSON'](_0x46bc8f[_0x29888d]);});}[_0x43a6f2(0xb2)](){const _0x5df47c=_0x43a6f2,_0x1090fa={};return this[_0x5df47c(0xd8)][_0x5df47c(0xba)]((_0x40dff7,_0x11b75)=>{const _0x130317=_0x5df47c;_0x1090fa[_0x11b75]={},_0x40dff7[_0x130317(0xba)]((_0x2b7ae2,_0x431f19)=>{_0x1090fa[_0x11b75][_0x431f19]=_0x2b7ae2['toJSON']();});}),_0x1090fa;}[_0x43a6f2(0xec)](_0xe73ca6){const _0x406ac0=_0x43a6f2;Object[_0x406ac0(0xed)](_0xe73ca6)[_0x406ac0(0xba)](_0x5defbc=>{const _0x552c11=_0x406ac0,_0x31ffc2=_0xe73ca6[_0x5defbc];Object[_0x552c11(0xed)](_0x31ffc2)['forEach'](_0x37a41c=>{const _0x412e5f=_0x552c11;this[_0x412e5f(0xe9)](_0x5defbc,_0x37a41c)['fromJSON'](_0x31ffc2[_0x37a41c]);});});}[_0x43a6f2(0xd6)](){const _0x3f1f4c=_0x43a6f2;this['_resourcesManagerService']['registerPluginResource']({'pluginName':W,'businesses':[_0x26dd27[_0x3f1f4c(0xa5)]],'toJson':_0x135b0f=>this[_0x3f1f4c(0xbf)](_0x135b0f),'parseJson':_0x77431a=>JSON[_0x3f1f4c(0xaa)](_0x77431a),'onLoad':(_0x1fb15d,_0x46aa18)=>{const _0x397169=_0x3f1f4c;this[_0x397169(0xb9)](_0x1fb15d,_0x46aa18);},'onUnLoad':_0x2bc5be=>{const _0x24ccb1=_0x3f1f4c,_0x14c061=this['_shapeModelManagerMap'][_0x24ccb1(0xda)](_0x2bc5be);_0x14c061&&(_0x14c061[_0x24ccb1(0xba)](_0x3ff9d5=>{_0x3ff9d5['dispose']();}),this[_0x24ccb1(0xd8)][_0x24ccb1(0xaf)](_0x2bc5be));}});}['dispose'](){const _0x2a4526=_0x43a6f2;this[_0x2a4526(0xd8)][_0x2a4526(0xba)](_0xeff72e=>{_0xeff72e['forEach'](_0x12e8e4=>{const _0x1058a5=_0x421c;_0x12e8e4[_0x1058a5(0xc6)]();});});}};i=V([K(0x0,_0x203dfb)],i);const u={'id':'sheet.mutation.update-shape-type','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x3c19d7,_0x188894)=>{const _0x21d03a=_0x43a6f2,{unitId:_0x1aebf1,subUnitId:_0x314803,shapeType:_0x4faacd,shapeId:_0x27bb28,shapeData:_0x5c4ca8}=_0x188894,_0x28c798=_0x3c19d7[_0x21d03a(0xda)](i)[_0x21d03a(0xdb)](_0x1aebf1,_0x314803,_0x27bb28);return _0x28c798&&(_0x28c798[_0x21d03a(0xdd)](_0x4faacd),_0x5c4ca8&&(_0x28c798==null||_0x28c798[_0x21d03a(0xde)](_0x5c4ca8))),!0x0;}},pe={'id':_0x43a6f2(0xc8),'type':_0x49e1d5[_0x43a6f2(0xbc)],'handler':(_0x4218ee,_0x3c223c)=>{const _0x3a5281=_0x43a6f2;if(!_0x3c223c)return!0x1;const _0x26fc2c=_0x4218ee[_0x3a5281(0xda)](_0x65add9),_0x589419=_0x4218ee['get'](i),_0x314748=_0x4218ee[_0x3a5281(0xda)](_0x5b7d85),_0x9e32be=[],_0x267a0f=[],{unitId:_0x24bfe6,subUnitId:_0xb884d7,shapeId:_0x3dcefa,shapeType:_0x21f3c0,shapeData:_0x47d470}=_0x3c223c,_0x5b8c68=_0x589419[_0x3a5281(0xdb)](_0x24bfe6,_0xb884d7,_0x3dcefa);if(_0x5b8c68){const _0x23fb57=_0x5b8c68[_0x3a5281(0xb3)](),_0x4ca1cc=Object[_0x3a5281(0xc2)]({},_0x5b8c68[_0x3a5281(0xdc)]()),_0x577a72={'unitId':_0x24bfe6,'subUnitId':_0xb884d7,'shapeId':_0x3dcefa,'shapeType':_0x21f3c0,'shapeData':_0x47d470},_0x341c1d={'unitId':_0x24bfe6,'subUnitId':_0xb884d7,'shapeId':_0x3dcefa,'shapeType':_0x23fb57,'shapeData':_0x4ca1cc};return _0x9e32be[_0x3a5281(0xef)]({'id':u['id'],'params':_0x577a72}),_0x267a0f[_0x3a5281(0xef)]({'id':u['id'],'params':_0x341c1d}),_0x9e32be[_0x3a5281(0xb7)](_0x437d3c=>_0x26fc2c[_0x3a5281(0xab)](_0x437d3c['id'],_0x437d3c[_0x3a5281(0xe0)]))&&_0x314748[_0x3a5281(0xac)]({'unitID':_0x24bfe6,'redoMutations':[..._0x9e32be],'undoMutations':[..._0x267a0f]}),!0x0;}return!0x1;}},Y={'id':_0x43a6f2(0xdf),'type':_0x49e1d5['MUTATION'],'handler':(_0x4ab54f,_0x35dfd5)=>{const _0x460ef1=_0x43a6f2,{unitId:_0x139b7e,subUnitId:_0x3e2378,shapeType:_0x5b3de1,shapeId:_0x3167f4,shapeData:_0x2f1bf2}=_0x35dfd5;return _0x4ab54f['get'](i)[_0x460ef1(0xc5)](_0x139b7e,_0x3e2378,_0x5b3de1,_0x3167f4,_0x2f1bf2),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x1fad37,_0x44fc02)=>{const _0x55e4d6=_0x43a6f2,{unitId:_0x1d4c3,subUnitId:_0x3ce7d5,shapeId:_0x159aa5}=_0x44fc02;return _0x1fad37[_0x55e4d6(0xda)](i)['removeShape'](_0x1d4c3,_0x3ce7d5,_0x159aa5),!0x0;}},Q={'id':'sheet.mutation.update-shape-data','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x38d43d,_0x37d0af)=>{const _0x59c3d6=_0x43a6f2,{unitId:_0x3ba78e,subUnitId:_0x44b7ca,shapeType:_0x546535,shapeId:_0x383919,shapeData:_0x2a1b11}=_0x37d0af,_0x307f12=_0x38d43d[_0x59c3d6(0xda)](i)[_0x59c3d6(0xdb)](_0x3ba78e,_0x44b7ca,_0x383919);return _0x307f12&&(_0x546535!==void 0x0&&_0x307f12['setShapeType'](_0x546535),_0x2a1b11&&(_0x307f12==null||_0x307f12[_0x59c3d6(0xde)](_0x2a1b11,!0x0))),!0x0;}},X='sheets-shape.config',m={};function _0x421c(_0x19686e,_0x50be41){_0x19686e=_0x19686e-0xa5;const _0x14cf33=_0x14cf();let _0x421cda=_0x14cf33[_0x19686e];return _0x421cda;}var Z=Object[_0x43a6f2(0xc1)],k=Object[_0x43a6f2(0xd7)],ee=(_0x557a80,_0x3186c4,_0x80e7d7)=>_0x3186c4 in _0x557a80?Z(_0x557a80,_0x3186c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x80e7d7}):_0x557a80[_0x3186c4]=_0x80e7d7,ae=(_0x2e843e,_0xcef521,_0x311b8d,_0x344f1b)=>{const _0xc92546=_0x43a6f2;for(var _0x1333be=_0x344f1b>0x1?void 0x0:_0x344f1b?k(_0xcef521,_0x311b8d):_0xcef521,_0x383bb6=_0x2e843e[_0xc92546(0xe5)]-0x1,_0x2e3302;_0x383bb6>=0x0;_0x383bb6--)(_0x2e3302=_0x2e843e[_0x383bb6])&&(_0x1333be=_0x2e3302(_0x1333be)||_0x1333be);return _0x1333be;},g=(_0x3ff799,_0x69fafd)=>(_0x33eb9d,_0x3d7711)=>_0x69fafd(_0x33eb9d,_0x3d7711,_0x3ff799),E=(_0xa345fc,_0x3bcc12,_0x239c62)=>ee(_0xa345fc,typeof _0x3bcc12!=_0x43a6f2(0xbe)?_0x3bcc12+'':_0x3bcc12,_0x239c62);const se=_0x43a6f2(0xd3);let S=class extends _0x4cf84e{constructor(_0x143000=m,_0x114294,_0x1f05f3,_0xbfa95){const _0x4d0c73=_0x43a6f2;super(),this['_config']=_0x143000,this['_injector']=_0x114294,this[_0x4d0c73(0xe4)]=_0x1f05f3,this['_configService']=_0xbfa95;const {..._0x5ad44a}=_0x41e183({},m,this[_0x4d0c73(0xb5)]);this[_0x4d0c73(0xd9)]['setConfig'](X,_0x5ad44a),this['_initCommands']();}[_0x43a6f2(0xe3)](){const _0x3450ef=_0x43a6f2;_0x55073d(this[_0x3450ef(0xd4)],[]);}[_0x43a6f2(0xbb)](){const _0x3232fa=_0x43a6f2,_0x590c89=this['_injector'];[[T],[i]]['forEach'](_0x339708=>_0x590c89[_0x3232fa(0xd0)](_0x339708));}[_0x43a6f2(0xc7)](){const _0x1f01d8=_0x43a6f2;[Y,q,u,Q][_0x1f01d8(0xba)](_0x516021=>this[_0x1f01d8(0xb6)](this[_0x1f01d8(0xe4)][_0x1f01d8(0xc9)](_0x516021)));}};E(S,_0x43a6f2(0xbd),_0x26dd27['UNIVER_SHEET']),E(S,_0x43a6f2(0xca),se),S=ae([_0x26fc7e(_0x69e81b),g(0x1,_0x196b66(_0xf77523)),g(0x2,_0x65add9),g(0x3,_0x3ebb98)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};function _0x14cf(){const _0x595cf1=['443315WIlOiN','_deserializeShapeForUnit','forEach','onStarting','COMMAND','type','symbol','_serializeShapeForUnit','MUTATION','defineProperty','assign','shapeData','_linesIds','insertShape','dispose','_initCommands','sheet.command.update-shape-type','registerCommand','pluginName','1137750odJFmU','stringify','_shapes','587103MiAzZu','addShape','add','35enerlF','removeShape','SHEET_SHAPE_PLUGIN','_injector','764670GPObEp','_initSnapshot','getOwnPropertyDescriptor','_shapeModelManagerMap','_configService','get','getShapeModel','getShapeData','setShapeType','setShapeData','sheet.mutation.insert-shape','params','hasShape','24jiSMvf','onRendered','_commandService','length','clear','2161632OlRLlr','2gZirpw','_ensureShapeModelManager','isLineShape','getBasicShapeRelation','fromJSON','keys','_groupIds','push','getLineShapeRelation','UNIVER_SHEET','_disposed','shapeId','getShapeRelation','from','parse','syncExecuteCommand','pushUndoRedo','412073ynxJIB','260jWTktA','delete','getShapeDataById','set','toJSON','getShapeType','2541366zkoWRC','_config','disposeWithMe','every'];_0x14cf=function(){return _0x595cf1;};return _0x14cf();}
1
+ const _0x2b24b5=_0x48d2;(function(_0x44fccc,_0x105c5a){const _0x487e85=_0x48d2,_0x48cbca=_0x44fccc();while(!![]){try{const _0x2b6ddb=-parseInt(_0x487e85(0xd1))/0x1+parseInt(_0x487e85(0x105))/0x2+parseInt(_0x487e85(0xfc))/0x3+parseInt(_0x487e85(0xcd))/0x4+parseInt(_0x487e85(0xf2))/0x5+parseInt(_0x487e85(0xc1))/0x6*(-parseInt(_0x487e85(0xe4))/0x7)+-parseInt(_0x487e85(0xda))/0x8;if(_0x2b6ddb===_0x105c5a)break;else _0x48cbca['push'](_0x48cbca['shift']());}catch(_0x6d9a1e){_0x48cbca['push'](_0x48cbca['shift']());}}}(_0x5756,0xf417b));var C=Object[_0x2b24b5(0xec)],j=(_0x4a108a,_0x34395d,_0x399d22)=>_0x34395d in _0x4a108a?C(_0x4a108a,_0x34395d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x399d22}):_0x4a108a[_0x34395d]=_0x399d22,c=(_0x5a642b,_0x523c04,_0x2f61b1)=>j(_0x5a642b,typeof _0x523c04!=_0x2b24b5(0xfd)?_0x523c04+'':_0x523c04,_0x2f61b1);function _0x5756(){const _0x2ce1c7=['sheet.mutation.update-shape-data','sheet.mutation.remove-shape','getShapeType','packageName','clear','14iZvrKB','getOwnPropertyDescriptor','_injector','_linesIds','hasShape','setShapeType','stringify','disposeWithMe','defineProperty','add','@univerjs-pro/sheets-shape','_shapeModelManagerMap','SHEET_SHAPE_PLUGIN','push','6619395RQHYib','_groupIds','syncExecuteCommand','registerPluginResource','sheet.command.update-shape-type','from','keys','0.16.1-insiders.20260311-074e8ca','insertShape','onRendered','1147392CCyFEW','symbol','toJSON','_deserializeShapeForUnit','MUTATION','get','setConfig','getShapeRelation','has','1524244yYlsAG','_configService','parse','forEach','getShapeData','type','length','pushUndoRedo','3178218xDIZel','getShapeDataById','dispose','getLineShapeRelation','getBasicShapeType','_disposed','_serializeShapeForUnit','sheet.mutation.insert-shape','_shapes','onStarting','getShapeModel','removeShape','1579748emukrE','_ensureShapeModelManager','addShape','fromJSON','441062gSaKVn','set','_config','version','_initCommands','_resourcesManagerService','pluginName','shapeId','_initSnapshot','2905048ACYUbG','UNIVER_SHEET','getBasicShapeRelation','sheet.mutation.update-shape-type','setShapeData'];_0x5756=function(){return _0x2ce1c7;};return _0x5756();}import{Disposable as _0x383099,UniverInstanceType as _0x114115,IResourceManagerService as _0x552e44,CommandType as _0x45073a,ICommandService as _0x118ed6,IUndoRedoService as _0x3eb46b,DependentOn as _0x47b730,Inject as _0x4b433e,Injector as _0x868f12,Plugin as _0x3579e0,merge as _0x2a4dbf,touchDependencies as _0x376691,IConfigService as _0x2814c9}from'@univerjs/core';import{ShapeModel as _0x2fa66e,isConnectorShape as _0x330d46}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3083fc}from'@univerjs-pro/license';class E extends _0x383099{constructor(){const _0x1ee1ed=_0x2b24b5;super(),c(this,'_shapes',new Map()),c(this,'_linesIds',new Set()),c(this,_0x1ee1ed(0xf3),new Set());}['addShape'](_0x5a360e,_0x570aff,_0x2eaf7f){const _0x550371=_0x2b24b5,_0x26f528=new _0x2fa66e(_0x5a360e,_0x570aff,_0x2eaf7f);return this['_shapes'][_0x550371(0xd2)](_0x570aff,_0x26f528),_0x330d46(_0x5a360e)&&this[_0x550371(0xe7)][_0x550371(0xed)](_0x570aff),_0x26f528;}[_0x2b24b5(0xdc)](_0x25abc6){const _0x2dc053=_0x2b24b5;var _0xd2ee72,_0x3cade7;const _0xdcc8e5=[];for(const _0x2f593c of this['_linesIds']){const _0x2a70ee=this[_0x2dc053(0xc9)][_0x2dc053(0x101)](_0x2f593c);if(_0x2a70ee){const _0x2109d0=_0x2a70ee['getShapeRelation']();_0x2109d0&&(((_0xd2ee72=_0x2109d0[_0x2dc053(0xf7)])==null?void 0x0:_0xd2ee72['shapeId'])===_0x25abc6&&_0xdcc8e5[_0x2dc053(0xf1)]({..._0x2109d0[_0x2dc053(0xf7)],'lineShapeId':_0x2f593c,'isFrom':!0x0}),((_0x3cade7=_0x2109d0['to'])==null?void 0x0:_0x3cade7[_0x2dc053(0xd8)])===_0x25abc6&&_0xdcc8e5['push']({..._0x2109d0['to'],'lineShapeId':_0x2f593c,'isFrom':!0x1}));}}return _0xdcc8e5;}[_0x2b24b5(0xc4)](_0x2c408f){const _0xfe4332=_0x2b24b5,_0x2a4811=this[_0xfe4332(0xc9)][_0xfe4332(0x101)](_0x2c408f);if(_0x2a4811)return _0x2a4811['getShapeRelation']();}['getShapeType'](_0x22397b){const _0x55d72c=_0x2b24b5,_0x2be3e2=this[_0x55d72c(0xc9)][_0x55d72c(0x101)](_0x22397b);if(_0x2be3e2)return _0x2be3e2[_0x55d72c(0xe1)]();}['hasShape'](_0x4fbabe){const _0x9832f1=_0x2b24b5;return this[_0x9832f1(0xc9)][_0x9832f1(0x104)](_0x4fbabe);}[_0x2b24b5(0xcc)](_0x5a6ead){const _0x2c0e1e=_0x2b24b5,_0x63d790=this[_0x2c0e1e(0xc9)][_0x2c0e1e(0x101)](_0x5a6ead);_0x63d790&&(_0x330d46(_0x63d790[_0x2c0e1e(0xe1)]())&&this[_0x2c0e1e(0xe7)]['delete'](_0x5a6ead),this[_0x2c0e1e(0xc9)]['delete'](_0x5a6ead));}[_0x2b24b5(0xfe)](){const _0x5032c2=_0x2b24b5,_0x476595=[];return this['_shapes'][_0x5032c2(0x108)](_0x32c511=>{const _0x37c70b=_0x5032c2;_0x476595['push'](_0x32c511[_0x37c70b(0xfe)]());}),_0x476595;}[_0x2b24b5(0xd0)](_0x2184be){const _0x2342da=_0x2b24b5;for(const _0x5e2d93 of _0x2184be){const {id:_0x90b837,shapeType:_0x4d6629}=_0x5e2d93,_0x500f63=this[_0x2342da(0xcf)](_0x4d6629,_0x90b837,_0x5e2d93['shapeData']);_0x500f63&&_0x500f63['isLineShape']()&&this['_linesIds']['add'](_0x90b837);}}[_0x2b24b5(0xc3)](){const _0xa707ee=_0x2b24b5;this[_0xa707ee(0xc6)]||(this[_0xa707ee(0xc9)][_0xa707ee(0x108)](_0x59f410=>{const _0x55fe9c=_0xa707ee;_0x59f410[_0x55fe9c(0xc3)]();}),this[_0xa707ee(0xc9)]['clear'](),this[_0xa707ee(0xe7)]['clear'](),this['_groupIds'][_0xa707ee(0xe3)](),super[_0xa707ee(0xc3)]());}}var V=Object[_0x2b24b5(0xe5)],K=(_0xc43608,_0x321ede,_0x3dba1c,_0x14091a)=>{const _0x2d441f=_0x2b24b5;for(var _0x505160=_0x14091a>0x1?void 0x0:_0x14091a?V(_0x321ede,_0x3dba1c):_0x321ede,_0x2d75f4=_0xc43608[_0x2d441f(0xbf)]-0x1,_0x5770b0;_0x2d75f4>=0x0;_0x2d75f4--)(_0x5770b0=_0xc43608[_0x2d75f4])&&(_0x505160=_0x5770b0(_0x505160)||_0x505160);return _0x505160;},W=(_0x5d595d,_0x3b8942)=>(_0x5dc66f,_0x575ca0)=>_0x3b8942(_0x5dc66f,_0x575ca0,_0x5d595d);const Y='SHEET_SHAPE_PLUGIN';function _0x48d2(_0x9b4ece,_0xb36fd9){_0x9b4ece=_0x9b4ece-0xbf;const _0x5756c9=_0x5756();let _0x48d22c=_0x5756c9[_0x9b4ece];return _0x48d22c;}let i=class extends _0x383099{constructor(_0x298b66){const _0x515158=_0x2b24b5;super(),c(this,'_shapeModelManagerMap',new Map()),(this[_0x515158(0xd6)]=_0x298b66,this[_0x515158(0xd9)]());}[_0x2b24b5(0xce)](_0x261d0c,_0x2f4078){const _0x59b84f=_0x2b24b5;let _0x440ad3=this[_0x59b84f(0xef)]['get'](_0x261d0c);_0x440ad3||(_0x440ad3=new Map(),this['_shapeModelManagerMap'][_0x59b84f(0xd2)](_0x261d0c,_0x440ad3));let _0x33c730=_0x440ad3[_0x59b84f(0x101)](_0x2f4078);return _0x33c730||(_0x33c730=new E(),_0x440ad3[_0x59b84f(0xd2)](_0x2f4078,_0x33c730)),_0x33c730;}[_0x2b24b5(0xfa)](_0x273e39,_0x3a2a15,_0x70e983,_0x1a7eb6,_0x102633){const _0x36ab3a=_0x2b24b5;this[_0x36ab3a(0xce)](_0x273e39,_0x3a2a15)[_0x36ab3a(0xcf)](_0x70e983,_0x1a7eb6,_0x102633);}[_0x2b24b5(0xcc)](_0x3ec110,_0x369dfe,_0x41a511){const _0x3dac3d=_0x2b24b5;this['_ensureShapeModelManager'](_0x3ec110,_0x369dfe)[_0x3dac3d(0xcc)](_0x41a511);}[_0x2b24b5(0xc5)](_0x468238,_0x35ecb6,_0x387a0c){const _0x5bdfc7=_0x2b24b5;return this[_0x5bdfc7(0xce)](_0x468238,_0x35ecb6)['getShapeType'](_0x387a0c);}[_0x2b24b5(0xe1)](_0x193032,_0xd4df3e,_0x400574){const _0x491581=_0x2b24b5;return this[_0x491581(0xce)](_0x193032,_0xd4df3e)[_0x491581(0xe1)](_0x400574);}[_0x2b24b5(0xe8)](_0x100d1e,_0x2de1bd,_0x3c4580){const _0x435b8b=_0x2b24b5;return this['_ensureShapeModelManager'](_0x100d1e,_0x2de1bd)[_0x435b8b(0xe8)](_0x3c4580);}['getShapeTypeById'](_0xd27604,_0x843189,_0x1bb01f){const _0x1b6970=_0x2b24b5;return this['_ensureShapeModelManager'](_0xd27604,_0x843189)[_0x1b6970(0xe1)](_0x1bb01f);}[_0x2b24b5(0xc2)](_0x3aafc4,_0x4aa3c7,_0x465f70){const _0x156f5b=_0x2b24b5,_0x2e4e56=this[_0x156f5b(0xce)](_0x3aafc4,_0x4aa3c7);if(!_0x2e4e56[_0x156f5b(0xe1)](_0x465f70))return;const _0x4813e3=_0x2e4e56['_shapes']['get'](_0x465f70);if(_0x4813e3)return _0x4813e3['getShapeData']();}[_0x2b24b5(0xcb)](_0x358789,_0xc3bf00,_0x539a56){const _0x4ad24b=_0x2b24b5;return this['_ensureShapeModelManager'](_0x358789,_0xc3bf00)[_0x4ad24b(0xc9)][_0x4ad24b(0x101)](_0x539a56);}[_0x2b24b5(0xdc)](_0xde1d60,_0x5b0b36,_0x4c2875){const _0xe7616b=_0x2b24b5;return this['_ensureShapeModelManager'](_0xde1d60,_0x5b0b36)[_0xe7616b(0xdc)](_0x4c2875);}['getLineShapeRelation'](_0x3d6f78,_0x528fd6,_0x3028ea){const _0x3e211a=_0x2b24b5,_0x20d61f=this['_ensureShapeModelManager'](_0x3d6f78,_0x528fd6)['_shapes'][_0x3e211a(0x101)](_0x3028ea);if(_0x20d61f)return _0x20d61f[_0x3e211a(0x103)]();}[_0x2b24b5(0xe9)](){}[_0x2b24b5(0xc7)](_0x21c6de){const _0x456dbd=_0x2b24b5,_0x11242f={},_0x75a301=this[_0x456dbd(0xef)][_0x456dbd(0x101)](_0x21c6de);return _0x75a301&&_0x75a301[_0x456dbd(0x108)]((_0x3b85ab,_0x16129a)=>{const _0xed2fd8=_0x456dbd,_0x186504=_0x3b85ab[_0xed2fd8(0xfe)]();_0x186504[_0xed2fd8(0xbf)]>0x0&&(_0x11242f[_0x16129a]=_0x186504);}),JSON[_0x456dbd(0xea)](_0x11242f);}[_0x2b24b5(0xff)](_0x5245c5,_0x2a0c07){const _0x5e8971=_0x2b24b5;Object[_0x5e8971(0xf8)](_0x2a0c07)[_0x5e8971(0x108)](_0xcd7a02=>{const _0x27ec48=_0x5e8971;this[_0x27ec48(0xce)](_0x5245c5,_0xcd7a02)[_0x27ec48(0xd0)](_0x2a0c07[_0xcd7a02]);});}[_0x2b24b5(0xfe)](){const _0x1508de=_0x2b24b5,_0x2b0871={};return this[_0x1508de(0xef)][_0x1508de(0x108)]((_0x4d67b4,_0x45c465)=>{_0x2b0871[_0x45c465]={},_0x4d67b4['forEach']((_0x37c2af,_0x38b7ec)=>{_0x2b0871[_0x45c465][_0x38b7ec]=_0x37c2af['toJSON']();});}),_0x2b0871;}['fromJSON'](_0x383247){const _0x2dba58=_0x2b24b5;Object[_0x2dba58(0xf8)](_0x383247)[_0x2dba58(0x108)](_0x320b6a=>{const _0x22e990=_0x2dba58,_0x53618d=_0x383247[_0x320b6a];Object[_0x22e990(0xf8)](_0x53618d)[_0x22e990(0x108)](_0x17ae1e=>{const _0x2d8c0f=_0x22e990;this[_0x2d8c0f(0xce)](_0x320b6a,_0x17ae1e)['fromJSON'](_0x53618d[_0x17ae1e]);});});}['_initSnapshot'](){const _0x3582c5=_0x2b24b5;this[_0x3582c5(0xd6)][_0x3582c5(0xf5)]({'pluginName':Y,'businesses':[_0x114115[_0x3582c5(0xdb)]],'toJson':_0x1d9ab0=>this[_0x3582c5(0xc7)](_0x1d9ab0),'parseJson':_0x270637=>JSON[_0x3582c5(0x107)](_0x270637),'onLoad':(_0x4fa84b,_0x220828)=>{const _0xcee71c=_0x3582c5;this[_0xcee71c(0xff)](_0x4fa84b,_0x220828);},'onUnLoad':_0x55d5d7=>{const _0x53b4d8=_0x3582c5,_0x43c2dd=this[_0x53b4d8(0xef)][_0x53b4d8(0x101)](_0x55d5d7);_0x43c2dd&&(_0x43c2dd[_0x53b4d8(0x108)](_0xe56ab6=>{const _0x534c71=_0x53b4d8;_0xe56ab6[_0x534c71(0xc3)]();}),this[_0x53b4d8(0xef)]['delete'](_0x55d5d7));}});}[_0x2b24b5(0xc3)](){const _0x4f9ed2=_0x2b24b5;this[_0x4f9ed2(0xef)]['forEach'](_0x33a21d=>{const _0x53bb4f=_0x4f9ed2;_0x33a21d[_0x53bb4f(0x108)](_0x555a0a=>{const _0x357afc=_0x53bb4f;_0x555a0a[_0x357afc(0xc3)]();});});}};i=K([W(0x0,_0x552e44)],i);const _={'id':_0x2b24b5(0xdd),'type':_0x45073a[_0x2b24b5(0x100)],'handler':(_0x24734b,_0x45bec3)=>{const _0x5d686f=_0x2b24b5,{unitId:_0x380532,subUnitId:_0x1d4e48,shapeType:_0xa9c63b,shapeId:_0xccaa08,shapeData:_0x53c55e}=_0x45bec3,_0x41d033=_0x24734b[_0x5d686f(0x101)](i)['getShapeModel'](_0x380532,_0x1d4e48,_0xccaa08);return _0x41d033&&(_0x41d033[_0x5d686f(0xe9)](_0xa9c63b),_0x53c55e&&(_0x41d033==null||_0x41d033[_0x5d686f(0xde)](_0x53c55e))),!0x0;}},de={'id':_0x2b24b5(0xf6),'type':_0x45073a['COMMAND'],'handler':(_0x24d6f2,_0xdbbbfa)=>{const _0xf49d06=_0x2b24b5;if(!_0xdbbbfa)return!0x1;const _0x4815c9=_0x24d6f2['get'](_0x118ed6),_0x5badaf=_0x24d6f2['get'](i),_0x5276f8=_0x24d6f2[_0xf49d06(0x101)](_0x3eb46b),_0x5e4e0a=[],_0x2f3e66=[],{unitId:_0x260bcd,subUnitId:_0x4bc3d0,shapeId:_0x51de96,shapeType:_0x2ea417,shapeData:_0xe755c0}=_0xdbbbfa,_0x1b0c58=_0x5badaf[_0xf49d06(0xcb)](_0x260bcd,_0x4bc3d0,_0x51de96);if(_0x1b0c58){const _0x52943a=_0x1b0c58['getShapeType'](),_0x4b2bc3=Object['assign']({},_0x1b0c58[_0xf49d06(0x109)]()),_0x5de06c={'unitId':_0x260bcd,'subUnitId':_0x4bc3d0,'shapeId':_0x51de96,'shapeType':_0x2ea417,'shapeData':_0xe755c0},_0x24c1e3={'unitId':_0x260bcd,'subUnitId':_0x4bc3d0,'shapeId':_0x51de96,'shapeType':_0x52943a,'shapeData':_0x4b2bc3};return _0x5e4e0a[_0xf49d06(0xf1)]({'id':_['id'],'params':_0x5de06c}),_0x2f3e66[_0xf49d06(0xf1)]({'id':_['id'],'params':_0x24c1e3}),_0x5e4e0a['every'](_0x221550=>_0x4815c9[_0xf49d06(0xf4)](_0x221550['id'],_0x221550['params']))&&_0x5276f8[_0xf49d06(0xc0)]({'unitID':_0x260bcd,'redoMutations':[..._0x5e4e0a],'undoMutations':[..._0x2f3e66]}),!0x0;}return!0x1;}},q={'id':_0x2b24b5(0xc8),'type':_0x45073a['MUTATION'],'handler':(_0x3ab55e,_0x2a64cf)=>{const _0xc3e6da=_0x2b24b5,{unitId:_0x4a254f,subUnitId:_0x2f7a18,shapeType:_0x33ad3a,shapeId:_0x115a80,shapeData:_0x296211}=_0x2a64cf;return _0x3ab55e[_0xc3e6da(0x101)](i)[_0xc3e6da(0xfa)](_0x4a254f,_0x2f7a18,_0x33ad3a,_0x115a80,_0x296211),!0x0;}},Q={'id':_0x2b24b5(0xe0),'type':_0x45073a[_0x2b24b5(0x100)],'handler':(_0x3bb0cc,_0xb8473b)=>{const _0x294f7b=_0x2b24b5,{unitId:_0x2592c3,subUnitId:_0x506dab,shapeId:_0x2a816b}=_0xb8473b;return _0x3bb0cc[_0x294f7b(0x101)](i)[_0x294f7b(0xcc)](_0x2592c3,_0x506dab,_0x2a816b),!0x0;}},X={'id':_0x2b24b5(0xdf),'type':_0x45073a[_0x2b24b5(0x100)],'handler':(_0x363365,_0x247199)=>{const _0x238883=_0x2b24b5,{unitId:_0x1ef4a6,subUnitId:_0x1b8cc5,shapeType:_0x206076,shapeId:_0x4c21ea,shapeData:_0x4ddf6a}=_0x247199,_0x348326=_0x363365[_0x238883(0x101)](i)[_0x238883(0xcb)](_0x1ef4a6,_0x1b8cc5,_0x4c21ea);return _0x348326&&(_0x206076!==void 0x0&&_0x348326['setShapeType'](_0x206076),_0x4ddf6a&&(_0x348326==null||_0x348326[_0x238883(0xde)](_0x4ddf6a,!0x0))),!0x0;}},Z=_0x2b24b5(0xee),k=_0x2b24b5(0xf9),O={'name':Z,'version':k},ee='sheets-shape.config',v={};var ae=Object[_0x2b24b5(0xec)],se=Object[_0x2b24b5(0xe5)],te=(_0x187c49,_0x6ed85e,_0x867361)=>_0x6ed85e in _0x187c49?ae(_0x187c49,_0x6ed85e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x867361}):_0x187c49[_0x6ed85e]=_0x867361,ne=(_0x509f09,_0x60b19d,_0xf8a693,_0x154666)=>{const _0x588fee=_0x2b24b5;for(var _0x114895=_0x154666>0x1?void 0x0:_0x154666?se(_0x60b19d,_0xf8a693):_0x60b19d,_0x154724=_0x509f09[_0x588fee(0xbf)]-0x1,_0x68a3ee;_0x154724>=0x0;_0x154724--)(_0x68a3ee=_0x509f09[_0x154724])&&(_0x114895=_0x68a3ee(_0x114895)||_0x114895);return _0x114895;},u=(_0x407881,_0x15200a)=>(_0x5701dd,_0x4335bd)=>_0x15200a(_0x5701dd,_0x4335bd,_0x407881),M=(_0x5c4edc,_0xc6727,_0x3ced27)=>te(_0x5c4edc,typeof _0xc6727!='symbol'?_0xc6727+'':_0xc6727,_0x3ced27);let d=class extends _0x3579e0{constructor(_0x361a52=v,_0xaf83ed,_0x220530,_0xf18bd0){const _0x47bf1b=_0x2b24b5;super(),this[_0x47bf1b(0xd3)]=_0x361a52,this[_0x47bf1b(0xe6)]=_0xaf83ed,this['_commandService']=_0x220530,this[_0x47bf1b(0x106)]=_0xf18bd0;const {..._0x1f874e}=_0x2a4dbf({},v,this[_0x47bf1b(0xd3)]);this[_0x47bf1b(0x106)][_0x47bf1b(0x102)](ee,_0x1f874e),this['_initCommands']();}[_0x2b24b5(0xfb)](){const _0x1e6cc0=_0x2b24b5;_0x376691(this[_0x1e6cc0(0xe6)],[]);}[_0x2b24b5(0xca)](){const _0x29189c=_0x2b24b5,_0x14b4d6=this[_0x29189c(0xe6)];[[E],[i]][_0x29189c(0x108)](_0x11b460=>_0x14b4d6[_0x29189c(0xed)](_0x11b460));}[_0x2b24b5(0xd5)](){const _0x496ff6=_0x2b24b5;[q,Q,_,X][_0x496ff6(0x108)](_0x4367f3=>this[_0x496ff6(0xeb)](this['_commandService']['registerCommand'](_0x4367f3)));}};M(d,_0x2b24b5(0x10a),_0x114115[_0x2b24b5(0xdb)]),M(d,_0x2b24b5(0xd7),_0x2b24b5(0xf0)),M(d,_0x2b24b5(0xe2),O['name']),M(d,_0x2b24b5(0xd4),O['version']),d=ne([_0x47b730(_0x3083fc),u(0x1,_0x4b433e(_0x868f12)),u(0x2,_0x118ed6),u(0x3,_0x2814c9)],d);export{q as InsertSheetsShapeMutation,Q as RemoveSheetsShapeMutation,i as SheetsShapeService,d as UniverSheetsShapePlugin,X as UpdateSheetsShapeDataMutation,de as UpdateSheetsShapeTypeCommand,_ as UpdateSheetsShapeTypeMutation};
@@ -1,6 +1,5 @@
1
1
  import { IUniverSheetsShapeConfig } from './controllers/config.schema';
2
2
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
- export declare const SHEET_SHAPE_PLUGIN_NAME = "SHEET_SHAPE_PLUGIN";
4
3
  export declare class UniverSheetsShapePlugin extends Plugin {
5
4
  private readonly _config;
6
5
  protected readonly _injector: Injector;
@@ -8,6 +7,8 @@ export declare class UniverSheetsShapePlugin extends Plugin {
8
7
  private readonly _configService;
9
8
  static type: UniverInstanceType;
10
9
  static pluginName: string;
10
+ static packageName: string;
11
+ static version: string;
11
12
  constructor(_config: IUniverSheetsShapeConfig | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
12
13
  onRendered(): void;
13
14
  onStarting(): void;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x47b0e9,_0x24d308){const _0x5a1b3=_0xcdc3,_0x58beb1=_0x47b0e9();while(!![]){try{const _0x12b61f=parseInt(_0x5a1b3(0xcc))/0x1*(parseInt(_0x5a1b3(0xc7))/0x2)+parseInt(_0x5a1b3(0xca))/0x3+parseInt(_0x5a1b3(0xdf))/0x4*(parseInt(_0x5a1b3(0xbb))/0x5)+parseInt(_0x5a1b3(0xf6))/0x6*(parseInt(_0x5a1b3(0x118))/0x7)+parseInt(_0x5a1b3(0xce))/0x8+-parseInt(_0x5a1b3(0xc1))/0x9*(parseInt(_0x5a1b3(0x106))/0xa)+-parseInt(_0x5a1b3(0x105))/0xb;if(_0x12b61f===_0x24d308)break;else _0x58beb1['push'](_0x58beb1['shift']());}catch(_0x575b81){_0x58beb1['push'](_0x58beb1['shift']());}}}(_0x2e5d,0x3a03f),function(_0x4cab9e,_0x5efb44){const _0x2e36bd=_0xcdc3;typeof exports==_0x2e36bd(0xe9)&&typeof module<'u'?_0x5efb44(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x2e36bd(0xcf)&&define[_0x2e36bd(0xd6)]?define([_0x2e36bd(0xf1),_0x2e36bd(0xd3),'@univerjs-pro/engine-shape',_0x2e36bd(0x10b)],_0x5efb44):(_0x4cab9e=typeof globalThis<'u'?globalThis:_0x4cab9e||self,_0x5efb44(_0x4cab9e[_0x2e36bd(0x10e)]={},_0x4cab9e[_0x2e36bd(0xf0)],_0x4cab9e[_0x2e36bd(0xeb)],_0x4cab9e[_0x2e36bd(0xd7)]));}(this,function(_0xf1826b,_0x24aa40,_0xa66e61,_0x3dc2a3){'use strict';const _0x4e9450=_0xcdc3;var _0x5b4f17=Object[_0x4e9450(0xfb)],_0x39fae7=(_0x1faea6,_0x4f5e08,_0x265a8b)=>_0x4f5e08 in _0x1faea6?_0x5b4f17(_0x1faea6,_0x4f5e08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x265a8b}):_0x1faea6[_0x4f5e08]=_0x265a8b,_0x5b059d=(_0x31f3a2,_0x58483d,_0x3c44e2)=>_0x39fae7(_0x31f3a2,typeof _0x58483d!=_0x4e9450(0xfe)?_0x58483d+'':_0x58483d,_0x3c44e2);class _0x5dd780 extends _0x24aa40['Disposable']{constructor(){const _0x3b92a8=_0x4e9450;super(),_0x5b059d(this,_0x3b92a8(0xd0),new Map()),_0x5b059d(this,_0x3b92a8(0xc9),new Set()),_0x5b059d(this,_0x3b92a8(0x107),new Set());}['addShape'](_0x41210e,_0x1e59cd,_0x24ac79){const _0xbedccd=_0x4e9450,_0x4c5eed=new _0xa66e61['ShapeModel'](_0x41210e,_0x1e59cd,_0x24ac79);return this[_0xbedccd(0xd0)]['set'](_0x1e59cd,_0x4c5eed),_0xa66e61[_0xbedccd(0xbf)](_0x41210e)&&this[_0xbedccd(0xc9)][_0xbedccd(0xff)](_0x1e59cd),_0x4c5eed;}[_0x4e9450(0xf2)](_0x4e0a5f){const _0x1f9f16=_0x4e9450;var _0x213b00,_0x5927f8;const _0x22376b=[];for(const _0x1c2247 of this[_0x1f9f16(0xc9)]){const _0x4dd240=this['_shapes'][_0x1f9f16(0xbc)](_0x1c2247);if(_0x4dd240){const _0x44c6e6=_0x4dd240['getShapeRelation']();_0x44c6e6&&(((_0x213b00=_0x44c6e6[_0x1f9f16(0x101)])==null?void 0x0:_0x213b00[_0x1f9f16(0xd9)])===_0x4e0a5f&&_0x22376b[_0x1f9f16(0xcd)]({..._0x44c6e6[_0x1f9f16(0x101)],'lineShapeId':_0x1c2247,'isFrom':!0x0}),((_0x5927f8=_0x44c6e6['to'])==null?void 0x0:_0x5927f8[_0x1f9f16(0xd9)])===_0x4e0a5f&&_0x22376b[_0x1f9f16(0xcd)]({..._0x44c6e6['to'],'lineShapeId':_0x1c2247,'isFrom':!0x1}));}}return _0x22376b;}['getLineShapeRelation'](_0x3b75c4){const _0x2b516f=_0x4e9450,_0x4488ec=this['_shapes']['get'](_0x3b75c4);if(_0x4488ec)return _0x4488ec[_0x2b516f(0xed)]();}['getShapeType'](_0x164d20){const _0x13eaff=_0x4e9450,_0x5e729d=this[_0x13eaff(0xd0)]['get'](_0x164d20);if(_0x5e729d)return _0x5e729d[_0x13eaff(0xc4)]();}[_0x4e9450(0xc3)](_0x4c120e){const _0x36c3fb=_0x4e9450;return this[_0x36c3fb(0xd0)]['has'](_0x4c120e);}[_0x4e9450(0xec)](_0x1616e5){const _0x323baa=_0x4e9450,_0x17ba67=this[_0x323baa(0xd0)][_0x323baa(0xbc)](_0x1616e5);_0x17ba67&&(_0xa66e61['isConnectorShape'](_0x17ba67[_0x323baa(0xc4)]())&&this['_linesIds'][_0x323baa(0xc5)](_0x1616e5),this['_shapes']['delete'](_0x1616e5));}[_0x4e9450(0xd5)](){const _0xe2d13c=_0x4e9450,_0x2ace9e=[];return this['_shapes'][_0xe2d13c(0xe7)](_0x2d2d1f=>{const _0x36b45c=_0xe2d13c;_0x2ace9e['push'](_0x2d2d1f[_0x36b45c(0xd5)]());}),_0x2ace9e;}[_0x4e9450(0xdc)](_0x98817e){const _0x59280b=_0x4e9450;for(const _0x5f01c8 of _0x98817e){const {id:_0x91c90a,shapeType:_0x41d499}=_0x5f01c8,_0x31ea13=this[_0x59280b(0x113)](_0x41d499,_0x91c90a,_0x5f01c8[_0x59280b(0x102)]);_0x31ea13&&_0x31ea13[_0x59280b(0x114)]()&&this[_0x59280b(0xc9)][_0x59280b(0xff)](_0x91c90a);}}['dispose'](){const _0x71d61a=_0x4e9450;this[_0x71d61a(0x111)]||(this[_0x71d61a(0xd0)][_0x71d61a(0xe7)](_0x133021=>{_0x133021['dispose']();}),this['_shapes'][_0x71d61a(0x115)](),this[_0x71d61a(0xc9)]['clear'](),this[_0x71d61a(0x107)]['clear'](),super[_0x71d61a(0x109)]());}}var _0x1ad1a6=Object[_0x4e9450(0xdd)],_0x4b48a9=(_0xe0f487,_0x3179ca,_0x4e092a,_0x21a7d9)=>{const _0x374c38=_0x4e9450;for(var _0x45bf8a=_0x21a7d9>0x1?void 0x0:_0x21a7d9?_0x1ad1a6(_0x3179ca,_0x4e092a):_0x3179ca,_0x2133c7=_0xe0f487[_0x374c38(0xd8)]-0x1,_0x513696;_0x2133c7>=0x0;_0x2133c7--)(_0x513696=_0xe0f487[_0x2133c7])&&(_0x45bf8a=_0x513696(_0x45bf8a)||_0x45bf8a);return _0x45bf8a;},_0x10fcd8=(_0x560428,_0x52aaf9)=>(_0x56cc12,_0x3093e8)=>_0x52aaf9(_0x56cc12,_0x3093e8,_0x560428);const _0x14ff6f=_0x4e9450(0xe0);_0xf1826b[_0x4e9450(0x11c)]=class extends _0x24aa40[_0x4e9450(0xf7)]{constructor(_0x12c01e){const _0x2d34ce=_0x4e9450;super(),_0x5b059d(this,_0x2d34ce(0xc6),new Map()),(this[_0x2d34ce(0x100)]=_0x12c01e,this['_initSnapshot']());}[_0x4e9450(0xe2)](_0x14951a,_0x93b02f){const _0x185d9c=_0x4e9450;let _0x3d9bde=this[_0x185d9c(0xc6)][_0x185d9c(0xbc)](_0x14951a);_0x3d9bde||(_0x3d9bde=new Map(),this['_shapeModelManagerMap'][_0x185d9c(0xbe)](_0x14951a,_0x3d9bde));let _0xc8a5ed=_0x3d9bde[_0x185d9c(0xbc)](_0x93b02f);return _0xc8a5ed||(_0xc8a5ed=new _0x5dd780(),_0x3d9bde[_0x185d9c(0xbe)](_0x93b02f,_0xc8a5ed)),_0xc8a5ed;}[_0x4e9450(0xe8)](_0x451111,_0x534a31,_0x262016,_0x81a567,_0x4064bd){const _0x3488ed=_0x4e9450;this[_0x3488ed(0xe2)](_0x451111,_0x534a31)['addShape'](_0x262016,_0x81a567,_0x4064bd);}[_0x4e9450(0xec)](_0x71d0c5,_0x197ec6,_0x44d999){const _0xd06eb6=_0x4e9450;this[_0xd06eb6(0xe2)](_0x71d0c5,_0x197ec6)[_0xd06eb6(0xec)](_0x44d999);}[_0x4e9450(0x10d)](_0x1d6eab,_0x22085b,_0x1dc1c3){const _0x5dcdba=_0x4e9450;return this[_0x5dcdba(0xe2)](_0x1d6eab,_0x22085b)[_0x5dcdba(0xc4)](_0x1dc1c3);}[_0x4e9450(0xc4)](_0x226e84,_0x542c9a,_0x9e001e){const _0x4f8fea=_0x4e9450;return this[_0x4f8fea(0xe2)](_0x226e84,_0x542c9a)[_0x4f8fea(0xc4)](_0x9e001e);}['hasShape'](_0x50922c,_0x2d64d2,_0x3555b4){const _0x28e980=_0x4e9450;return this[_0x28e980(0xe2)](_0x50922c,_0x2d64d2)[_0x28e980(0xc3)](_0x3555b4);}['getShapeTypeById'](_0x1fd0cc,_0x33e835,_0x5985c7){const _0x15d07f=_0x4e9450;return this[_0x15d07f(0xe2)](_0x1fd0cc,_0x33e835)['getShapeType'](_0x5985c7);}[_0x4e9450(0xf4)](_0x194c47,_0x4adce3,_0x5bd8b4){const _0x3abce6=_0x4e9450,_0x22c1ae=this[_0x3abce6(0xe2)](_0x194c47,_0x4adce3);if(!_0x22c1ae[_0x3abce6(0xc4)](_0x5bd8b4))return;const _0x346cb3=_0x22c1ae[_0x3abce6(0xd0)][_0x3abce6(0xbc)](_0x5bd8b4);if(_0x346cb3)return _0x346cb3['getShapeData']();}[_0x4e9450(0xd4)](_0x380ba5,_0x43d2d8,_0x250bbf){const _0x5c6da5=_0x4e9450;return this[_0x5c6da5(0xe2)](_0x380ba5,_0x43d2d8)[_0x5c6da5(0xd0)][_0x5c6da5(0xbc)](_0x250bbf);}[_0x4e9450(0xf2)](_0x5be41f,_0x256ba9,_0x139b5c){const _0x9e686b=_0x4e9450;return this[_0x9e686b(0xe2)](_0x5be41f,_0x256ba9)[_0x9e686b(0xf2)](_0x139b5c);}[_0x4e9450(0xe1)](_0x5584e1,_0x3f3491,_0x2eecab){const _0x2651cf=_0x4e9450,_0xada7b6=this['_ensureShapeModelManager'](_0x5584e1,_0x3f3491)['_shapes']['get'](_0x2eecab);if(_0xada7b6)return _0xada7b6[_0x2651cf(0xed)]();}[_0x4e9450(0x117)](){}['_serializeShapeForUnit'](_0x360552){const _0x23d1a7=_0x4e9450,_0x5bb796={},_0x3a4036=this[_0x23d1a7(0xc6)][_0x23d1a7(0xbc)](_0x360552);return _0x3a4036&&_0x3a4036[_0x23d1a7(0xe7)]((_0x3105d4,_0x415199)=>{const _0x507331=_0x23d1a7,_0x3707ca=_0x3105d4[_0x507331(0xd5)]();_0x3707ca[_0x507331(0xd8)]>0x0&&(_0x5bb796[_0x415199]=_0x3707ca);}),JSON['stringify'](_0x5bb796);}['_deserializeShapeForUnit'](_0x4cd4c4,_0x2873b2){const _0x45af9a=_0x4e9450;Object[_0x45af9a(0xda)](_0x2873b2)['forEach'](_0x2df950=>{const _0x3ba869=_0x45af9a;this[_0x3ba869(0xe2)](_0x4cd4c4,_0x2df950)[_0x3ba869(0xdc)](_0x2873b2[_0x2df950]);});}['toJSON'](){const _0x370057={};return this['_shapeModelManagerMap']['forEach']((_0x255b46,_0x394038)=>{_0x370057[_0x394038]={},_0x255b46['forEach']((_0x1463b7,_0xce49a3)=>{const _0x158ffd=_0xcdc3;_0x370057[_0x394038][_0xce49a3]=_0x1463b7[_0x158ffd(0xd5)]();});}),_0x370057;}[_0x4e9450(0xdc)](_0x5b3e4e){const _0x4f7a49=_0x4e9450;Object[_0x4f7a49(0xda)](_0x5b3e4e)[_0x4f7a49(0xe7)](_0x4d366e=>{const _0x3cd270=_0x4f7a49,_0x4c03e8=_0x5b3e4e[_0x4d366e];Object[_0x3cd270(0xda)](_0x4c03e8)[_0x3cd270(0xe7)](_0x36e3b7=>{const _0x2ccad7=_0x3cd270;this[_0x2ccad7(0xe2)](_0x4d366e,_0x36e3b7)[_0x2ccad7(0xdc)](_0x4c03e8[_0x36e3b7]);});});}['_initSnapshot'](){const _0x465671=_0x4e9450;this[_0x465671(0x100)][_0x465671(0xf8)]({'pluginName':_0x14ff6f,'businesses':[_0x24aa40['UniverInstanceType'][_0x465671(0x116)]],'toJson':_0x2df201=>this[_0x465671(0xf9)](_0x2df201),'parseJson':_0x13dcc9=>JSON['parse'](_0x13dcc9),'onLoad':(_0x578663,_0xb96c4b)=>{this['_deserializeShapeForUnit'](_0x578663,_0xb96c4b);},'onUnLoad':_0x20aa50=>{const _0x2dea66=_0x465671,_0x326850=this['_shapeModelManagerMap'][_0x2dea66(0xbc)](_0x20aa50);_0x326850&&(_0x326850[_0x2dea66(0xe7)](_0x1d4804=>{const _0x483d07=_0x2dea66;_0x1d4804[_0x483d07(0x109)]();}),this['_shapeModelManagerMap'][_0x2dea66(0xc5)](_0x20aa50));}});}[_0x4e9450(0x109)](){const _0x384aff=_0x4e9450;this[_0x384aff(0xc6)][_0x384aff(0xe7)](_0x105ba9=>{_0x105ba9['forEach'](_0x231cad=>{const _0x2e66f2=_0xcdc3;_0x231cad[_0x2e66f2(0x109)]();});});}},_0xf1826b['SheetsShapeService']=_0x4b48a9([_0x10fcd8(0x0,_0x24aa40['IResourceManagerService'])],_0xf1826b['SheetsShapeService']);const _0xaddb7d={'id':_0x4e9450(0xc2),'type':_0x24aa40[_0x4e9450(0x11a)][_0x4e9450(0xd1)],'handler':(_0x22ea88,_0x242cf9)=>{const _0xc40811=_0x4e9450,{unitId:_0x18578d,subUnitId:_0x117246,shapeType:_0xe978f4,shapeId:_0x134913,shapeData:_0x3fc36c}=_0x242cf9,_0x211fef=_0x22ea88[_0xc40811(0xbc)](_0xf1826b[_0xc40811(0x11c)])[_0xc40811(0xd4)](_0x18578d,_0x117246,_0x134913);return _0x211fef&&(_0x211fef[_0xc40811(0x117)](_0xe978f4),_0x3fc36c&&(_0x211fef==null||_0x211fef[_0xc40811(0xdb)](_0x3fc36c))),!0x0;}},_0xc31978={'id':_0x4e9450(0xe3),'type':_0x24aa40[_0x4e9450(0x11a)][_0x4e9450(0x11b)],'handler':(_0xcfdde4,_0x4bbe6e)=>{const _0xd4f14d=_0x4e9450;if(!_0x4bbe6e)return!0x1;const _0x4cde58=_0xcfdde4[_0xd4f14d(0xbc)](_0x24aa40['ICommandService']),_0x513936=_0xcfdde4[_0xd4f14d(0xbc)](_0xf1826b[_0xd4f14d(0x11c)]),_0x460435=_0xcfdde4['get'](_0x24aa40[_0xd4f14d(0xc8)]),_0x165394=[],_0x302b2e=[],{unitId:_0x329586,subUnitId:_0x45a801,shapeId:_0x1c0115,shapeType:_0x548860,shapeData:_0x27c10f}=_0x4bbe6e,_0x1e4028=_0x513936['getShapeModel'](_0x329586,_0x45a801,_0x1c0115);if(_0x1e4028){const _0x4b54da=_0x1e4028[_0xd4f14d(0xc4)](),_0x2bf42f=Object[_0xd4f14d(0xe5)]({},_0x1e4028[_0xd4f14d(0x10f)]()),_0x18d012={'unitId':_0x329586,'subUnitId':_0x45a801,'shapeId':_0x1c0115,'shapeType':_0x548860,'shapeData':_0x27c10f},_0xb6e789={'unitId':_0x329586,'subUnitId':_0x45a801,'shapeId':_0x1c0115,'shapeType':_0x4b54da,'shapeData':_0x2bf42f};return _0x165394['push']({'id':_0xaddb7d['id'],'params':_0x18d012}),_0x302b2e[_0xd4f14d(0xcd)]({'id':_0xaddb7d['id'],'params':_0xb6e789}),_0x165394[_0xd4f14d(0xe6)](_0x1b8afa=>_0x4cde58['syncExecuteCommand'](_0x1b8afa['id'],_0x1b8afa['params']))&&_0x460435[_0xd4f14d(0x112)]({'unitID':_0x329586,'redoMutations':[..._0x165394],'undoMutations':[..._0x302b2e]}),!0x0;}return!0x1;}},_0x446377={'id':'sheet.mutation.insert-shape','type':_0x24aa40[_0x4e9450(0x11a)]['MUTATION'],'handler':(_0x5591bb,_0xc2ae62)=>{const _0x3801a4=_0x4e9450,{unitId:_0x20ec48,subUnitId:_0x4a411b,shapeType:_0x4c927f,shapeId:_0x59e421,shapeData:_0xcb105f}=_0xc2ae62;return _0x5591bb[_0x3801a4(0xbc)](_0xf1826b['SheetsShapeService'])[_0x3801a4(0xe8)](_0x20ec48,_0x4a411b,_0x4c927f,_0x59e421,_0xcb105f),!0x0;}},_0x42b5e3={'id':'sheet.mutation.remove-shape','type':_0x24aa40[_0x4e9450(0x11a)][_0x4e9450(0xd1)],'handler':(_0x3d6017,_0x30a677)=>{const _0x455a2d=_0x4e9450,{unitId:_0x56eacf,subUnitId:_0x237207,shapeId:_0x3641ab}=_0x30a677;return _0x3d6017[_0x455a2d(0xbc)](_0xf1826b['SheetsShapeService'])[_0x455a2d(0xec)](_0x56eacf,_0x237207,_0x3641ab),!0x0;}},_0x85a31a={'id':_0x4e9450(0xef),'type':_0x24aa40[_0x4e9450(0x11a)]['MUTATION'],'handler':(_0x7dea4f,_0x282d46)=>{const _0x14eef6=_0x4e9450,{unitId:_0x3c6dbc,subUnitId:_0x5cfb31,shapeType:_0x2c26a2,shapeId:_0xab76a3,shapeData:_0xc37e9e}=_0x282d46,_0x463b7c=_0x7dea4f[_0x14eef6(0xbc)](_0xf1826b[_0x14eef6(0x11c)])[_0x14eef6(0xd4)](_0x3c6dbc,_0x5cfb31,_0xab76a3);return _0x463b7c&&(_0x2c26a2!==void 0x0&&_0x463b7c[_0x14eef6(0x117)](_0x2c26a2),_0xc37e9e&&(_0x463b7c==null||_0x463b7c[_0x14eef6(0xdb)](_0xc37e9e,!0x0))),!0x0;}},_0x3f87e1='sheets-shape.config',_0x2ae075={};var _0x7f9b34=Object[_0x4e9450(0xfb)],_0x1c2c88=Object[_0x4e9450(0xdd)],_0x2c3818=(_0x38617b,_0x33c28d,_0x500bd4)=>_0x33c28d in _0x38617b?_0x7f9b34(_0x38617b,_0x33c28d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x500bd4}):_0x38617b[_0x33c28d]=_0x500bd4,_0x3e28c8=(_0x5c97bb,_0x41e9e5,_0x237b37,_0x3ff651)=>{const _0x52fc31=_0x4e9450;for(var _0x57afa2=_0x3ff651>0x1?void 0x0:_0x3ff651?_0x1c2c88(_0x41e9e5,_0x237b37):_0x41e9e5,_0x45542f=_0x5c97bb[_0x52fc31(0xd8)]-0x1,_0x5027a0;_0x45542f>=0x0;_0x45542f--)(_0x5027a0=_0x5c97bb[_0x45542f])&&(_0x57afa2=_0x5027a0(_0x57afa2)||_0x57afa2);return _0x57afa2;},_0x5d6855=(_0x4d655b,_0x358d50)=>(_0x10f098,_0x4cad10)=>_0x358d50(_0x10f098,_0x4cad10,_0x4d655b),_0x302986=(_0x2f1ff3,_0x48f32f,_0x253d33)=>_0x2c3818(_0x2f1ff3,typeof _0x48f32f!=_0x4e9450(0xfe)?_0x48f32f+'':_0x48f32f,_0x253d33);const _0xc9b457=_0x4e9450(0xe0);_0xf1826b[_0x4e9450(0xde)]=class extends _0x24aa40[_0x4e9450(0x10c)]{constructor(_0xcee4c5=_0x2ae075,_0xb8e4b6,_0x28e725,_0x40e8a3){const _0x4fe6dc=_0x4e9450;super(),this[_0x4fe6dc(0x108)]=_0xcee4c5,this[_0x4fe6dc(0x10a)]=_0xb8e4b6,this[_0x4fe6dc(0xea)]=_0x28e725,this[_0x4fe6dc(0xc0)]=_0x40e8a3;const {..._0x30d473}=_0x24aa40['merge']({},_0x2ae075,this[_0x4fe6dc(0x108)]);this[_0x4fe6dc(0xc0)][_0x4fe6dc(0x110)](_0x3f87e1,_0x30d473),this[_0x4fe6dc(0xd2)]();}['onRendered'](){_0x24aa40['touchDependencies'](this['_injector'],[]);}[_0x4e9450(0xfd)](){const _0xfb17e1=_0x4e9450,_0x2133ea=this[_0xfb17e1(0x10a)];[[_0x5dd780],[_0xf1826b[_0xfb17e1(0x11c)]]][_0xfb17e1(0xe7)](_0x4d614c=>_0x2133ea[_0xfb17e1(0xff)](_0x4d614c));}['_initCommands'](){const _0x5cb229=_0x4e9450;[_0x446377,_0x42b5e3,_0xaddb7d,_0x85a31a][_0x5cb229(0xe7)](_0x8f7290=>this['disposeWithMe'](this[_0x5cb229(0xea)][_0x5cb229(0xfa)](_0x8f7290)));}},_0x302986(_0xf1826b[_0x4e9450(0xde)],'type',_0x24aa40['UniverInstanceType'][_0x4e9450(0x116)]),_0x302986(_0xf1826b['UniverSheetsShapePlugin'],_0x4e9450(0x119),_0xc9b457),_0xf1826b['UniverSheetsShapePlugin']=_0x3e28c8([_0x24aa40[_0x4e9450(0xf3)](_0x3dc2a3[_0x4e9450(0xf5)]),_0x5d6855(0x1,_0x24aa40['Inject'](_0x24aa40[_0x4e9450(0xfc)])),_0x5d6855(0x2,_0x24aa40[_0x4e9450(0x104)]),_0x5d6855(0x3,_0x24aa40[_0x4e9450(0xcb)])],_0xf1826b[_0x4e9450(0xde)]),_0xf1826b[_0x4e9450(0xe4)]=_0x446377,_0xf1826b['RemoveSheetsShapeMutation']=_0x42b5e3,_0xf1826b[_0x4e9450(0x103)]=_0x85a31a,_0xf1826b['UpdateSheetsShapeTypeCommand']=_0xc31978,_0xf1826b[_0x4e9450(0xbd)]=_0xaddb7d,Object[_0x4e9450(0xfb)](_0xf1826b,Symbol['toStringTag'],{'value':_0x4e9450(0xee)});}));function _0xcdc3(_0x299850,_0x3ef417){_0x299850=_0x299850-0xbb;const _0x2e5db3=_0x2e5d();let _0xcdc31e=_0x2e5db3[_0x299850];return _0xcdc31e;}function _0x2e5d(){const _0x257fea=['_initCommands','@univerjs/core','getShapeModel','toJSON','amd','UniverProLicense','length','shapeId','keys','setShapeData','fromJSON','getOwnPropertyDescriptor','UniverSheetsShapePlugin','8qrHryj','SHEET_SHAPE_PLUGIN','getLineShapeRelation','_ensureShapeModelManager','sheet.command.update-shape-type','InsertSheetsShapeMutation','assign','every','forEach','insertShape','object','_commandService','UniverProEngineShape','removeShape','getShapeRelation','Module','sheet.mutation.update-shape-data','UniverCore','exports','getBasicShapeRelation','DependentOn','getShapeDataById','UniverLicensePlugin','2298LkqduI','Disposable','registerPluginResource','_serializeShapeForUnit','registerCommand','defineProperty','Injector','onStarting','symbol','add','_resourcesManagerService','from','shapeData','UpdateSheetsShapeDataMutation','ICommandService','11899272vrOxmD','543990KsJLXX','_groupIds','_config','dispose','_injector','@univerjs-pro/license','Plugin','getBasicShapeType','UniverProSheetsShape','getShapeData','setConfig','_disposed','pushUndoRedo','addShape','isLineShape','clear','UNIVER_SHEET','setShapeType','8603WKdgyK','pluginName','CommandType','COMMAND','SheetsShapeService','699370RLHqjG','get','UpdateSheetsShapeTypeMutation','set','isConnectorShape','_configService','18fxUDJB','sheet.mutation.update-shape-type','hasShape','getShapeType','delete','_shapeModelManagerMap','6AFJppT','IUndoRedoService','_linesIds','1054812xUKLnP','IConfigService','59394blgEHr','push','1183520jtCfaU','function','_shapes','MUTATION'];_0x2e5d=function(){return _0x257fea;};return _0x2e5d();}
1
+ function _0x3e3c(_0x2903bc,_0x76ee22){_0x2903bc=_0x2903bc-0x13a;const _0x7fa3d9=_0x7fa3();let _0x3e3ccf=_0x7fa3d9[_0x2903bc];return _0x3e3ccf;}(function(_0xf2ef3a,_0x918db8){const _0x3d22af=_0x3e3c,_0x21af19=_0xf2ef3a();while(!![]){try{const _0x27a3b3=parseInt(_0x3d22af(0x158))/0x1+-parseInt(_0x3d22af(0x189))/0x2+-parseInt(_0x3d22af(0x192))/0x3+parseInt(_0x3d22af(0x19a))/0x4+-parseInt(_0x3d22af(0x17c))/0x5+-parseInt(_0x3d22af(0x187))/0x6+-parseInt(_0x3d22af(0x1a0))/0x7*(-parseInt(_0x3d22af(0x197))/0x8);if(_0x27a3b3===_0x918db8)break;else _0x21af19['push'](_0x21af19['shift']());}catch(_0x81bda7){_0x21af19['push'](_0x21af19['shift']());}}}(_0x7fa3,0xe22eb),function(_0x3a3562,_0x4ad3f6){const _0x10cf2a=_0x3e3c;typeof exports=='object'&&typeof module<'u'?_0x4ad3f6(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x10cf2a(0x171)&&define['amd']?define([_0x10cf2a(0x184),_0x10cf2a(0x159),'@univerjs-pro/engine-shape',_0x10cf2a(0x13e)],_0x4ad3f6):(_0x3a3562=typeof globalThis<'u'?globalThis:_0x3a3562||self,_0x4ad3f6(_0x3a3562['UniverProSheetsShape']={},_0x3a3562[_0x10cf2a(0x182)],_0x3a3562[_0x10cf2a(0x165)],_0x3a3562[_0x10cf2a(0x183)]));}(this,function(_0x313265,_0x393091,_0x4bfac6,_0x5f0d66){'use strict';const _0x42d561=_0x3e3c;var _0x3f443b=Object[_0x42d561(0x15e)],_0x4687a8=(_0xe8d91e,_0x211a5d,_0x465fb7)=>_0x211a5d in _0xe8d91e?_0x3f443b(_0xe8d91e,_0x211a5d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x465fb7}):_0xe8d91e[_0x211a5d]=_0x465fb7,_0x14c29c=(_0x9628b0,_0x276959,_0x3fea8c)=>_0x4687a8(_0x9628b0,typeof _0x276959!=_0x42d561(0x169)?_0x276959+'':_0x276959,_0x3fea8c);class _0x214894 extends _0x393091[_0x42d561(0x150)]{constructor(){const _0x2b1e2f=_0x42d561;super(),_0x14c29c(this,_0x2b1e2f(0x179),new Map()),_0x14c29c(this,_0x2b1e2f(0x14c),new Set()),_0x14c29c(this,'_groupIds',new Set());}[_0x42d561(0x17d)](_0x2904ae,_0x4ee6ef,_0x10a926){const _0x3098eb=_0x42d561,_0x466ac2=new _0x4bfac6[(_0x3098eb(0x185))](_0x2904ae,_0x4ee6ef,_0x10a926);return this[_0x3098eb(0x179)][_0x3098eb(0x155)](_0x4ee6ef,_0x466ac2),_0x4bfac6[_0x3098eb(0x13c)](_0x2904ae)&&this[_0x3098eb(0x14c)][_0x3098eb(0x181)](_0x4ee6ef),_0x466ac2;}[_0x42d561(0x140)](_0x47b55c){const _0x118608=_0x42d561;var _0x5e33d2,_0x28f03a;const _0x2e2f1b=[];for(const _0x31eb44 of this[_0x118608(0x14c)]){const _0x323ae0=this['_shapes'][_0x118608(0x1a5)](_0x31eb44);if(_0x323ae0){const _0x422473=_0x323ae0[_0x118608(0x17a)]();_0x422473&&(((_0x5e33d2=_0x422473[_0x118608(0x176)])==null?void 0x0:_0x5e33d2[_0x118608(0x152)])===_0x47b55c&&_0x2e2f1b['push']({..._0x422473[_0x118608(0x176)],'lineShapeId':_0x31eb44,'isFrom':!0x0}),((_0x28f03a=_0x422473['to'])==null?void 0x0:_0x28f03a[_0x118608(0x152)])===_0x47b55c&&_0x2e2f1b[_0x118608(0x144)]({..._0x422473['to'],'lineShapeId':_0x31eb44,'isFrom':!0x1}));}}return _0x2e2f1b;}['getLineShapeRelation'](_0x23cf63){const _0x1bb049=_0x42d561,_0x20cdb0=this[_0x1bb049(0x179)]['get'](_0x23cf63);if(_0x20cdb0)return _0x20cdb0[_0x1bb049(0x17a)]();}[_0x42d561(0x16d)](_0x505890){const _0x1861ad=_0x42d561,_0x3e561c=this[_0x1861ad(0x179)][_0x1861ad(0x1a5)](_0x505890);if(_0x3e561c)return _0x3e561c[_0x1861ad(0x16d)]();}['hasShape'](_0x8f4f65){const _0xfb68ac=_0x42d561;return this[_0xfb68ac(0x179)][_0xfb68ac(0x194)](_0x8f4f65);}[_0x42d561(0x199)](_0x43601d){const _0x2fa8a6=_0x42d561,_0x32dc31=this[_0x2fa8a6(0x179)][_0x2fa8a6(0x1a5)](_0x43601d);_0x32dc31&&(_0x4bfac6['isConnectorShape'](_0x32dc31[_0x2fa8a6(0x16d)]())&&this[_0x2fa8a6(0x14c)][_0x2fa8a6(0x195)](_0x43601d),this[_0x2fa8a6(0x179)][_0x2fa8a6(0x195)](_0x43601d));}['toJSON'](){const _0x1c8762=_0x42d561,_0x3bec0c=[];return this[_0x1c8762(0x179)][_0x1c8762(0x14d)](_0x49de01=>{const _0x244a51=_0x1c8762;_0x3bec0c[_0x244a51(0x144)](_0x49de01[_0x244a51(0x18f)]());}),_0x3bec0c;}['fromJSON'](_0x338b04){const _0x5f3808=_0x42d561;for(const _0x294cb0 of _0x338b04){const {id:_0x2b93b0,shapeType:_0x1bb7ae}=_0x294cb0,_0xff101b=this[_0x5f3808(0x17d)](_0x1bb7ae,_0x2b93b0,_0x294cb0[_0x5f3808(0x18e)]);_0xff101b&&_0xff101b['isLineShape']()&&this['_linesIds'][_0x5f3808(0x181)](_0x2b93b0);}}[_0x42d561(0x173)](){const _0x564f5e=_0x42d561;this[_0x564f5e(0x157)]||(this['_shapes'][_0x564f5e(0x14d)](_0x43189c=>{const _0x1b4388=_0x564f5e;_0x43189c[_0x1b4388(0x173)]();}),this[_0x564f5e(0x179)]['clear'](),this[_0x564f5e(0x14c)]['clear'](),this[_0x564f5e(0x147)]['clear'](),super[_0x564f5e(0x173)]());}}var _0x272ae5=Object['getOwnPropertyDescriptor'],_0x59dc06=(_0x5dca94,_0x449d12,_0x15dc80,_0x3fc3f7)=>{const _0x592cc5=_0x42d561;for(var _0x5b9770=_0x3fc3f7>0x1?void 0x0:_0x3fc3f7?_0x272ae5(_0x449d12,_0x15dc80):_0x449d12,_0x49e357=_0x5dca94[_0x592cc5(0x198)]-0x1,_0x1ad728;_0x49e357>=0x0;_0x49e357--)(_0x1ad728=_0x5dca94[_0x49e357])&&(_0x5b9770=_0x1ad728(_0x5b9770)||_0x5b9770);return _0x5b9770;},_0x46402d=(_0x4cc5d6,_0x330f26)=>(_0x2d8b88,_0x265fab)=>_0x330f26(_0x2d8b88,_0x265fab,_0x4cc5d6);const _0x22b0ca=_0x42d561(0x1a6);_0x313265['SheetsShapeService']=class extends _0x393091['Disposable']{constructor(_0x16f491){const _0x2d0277=_0x42d561;super(),_0x14c29c(this,_0x2d0277(0x13a),new Map()),(this[_0x2d0277(0x160)]=_0x16f491,this[_0x2d0277(0x175)]());}[_0x42d561(0x14a)](_0x53462e,_0x206692){const _0x296bee=_0x42d561;let _0x208cdb=this[_0x296bee(0x13a)]['get'](_0x53462e);_0x208cdb||(_0x208cdb=new Map(),this[_0x296bee(0x13a)][_0x296bee(0x155)](_0x53462e,_0x208cdb));let _0x377562=_0x208cdb['get'](_0x206692);return _0x377562||(_0x377562=new _0x214894(),_0x208cdb[_0x296bee(0x155)](_0x206692,_0x377562)),_0x377562;}[_0x42d561(0x142)](_0x21838b,_0x9a7946,_0x2d7fb1,_0x1e390f,_0x3076d7){const _0x51c182=_0x42d561;this['_ensureShapeModelManager'](_0x21838b,_0x9a7946)[_0x51c182(0x17d)](_0x2d7fb1,_0x1e390f,_0x3076d7);}['removeShape'](_0x49e4a9,_0x419d2d,_0x34c2a3){const _0x2fa7aa=_0x42d561;this['_ensureShapeModelManager'](_0x49e4a9,_0x419d2d)[_0x2fa7aa(0x199)](_0x34c2a3);}[_0x42d561(0x196)](_0x1845f2,_0x5f3dac,_0x338212){const _0x1d83fb=_0x42d561;return this[_0x1d83fb(0x14a)](_0x1845f2,_0x5f3dac)[_0x1d83fb(0x16d)](_0x338212);}[_0x42d561(0x16d)](_0x23d4a2,_0x54ab0d,_0x472718){const _0x2a6559=_0x42d561;return this['_ensureShapeModelManager'](_0x23d4a2,_0x54ab0d)[_0x2a6559(0x16d)](_0x472718);}[_0x42d561(0x13f)](_0x185f64,_0x126fa3,_0x1e12f7){const _0x550465=_0x42d561;return this[_0x550465(0x14a)](_0x185f64,_0x126fa3)['hasShape'](_0x1e12f7);}[_0x42d561(0x186)](_0x558534,_0x2c22a7,_0x5ac73f){const _0x43ffe4=_0x42d561;return this[_0x43ffe4(0x14a)](_0x558534,_0x2c22a7)[_0x43ffe4(0x16d)](_0x5ac73f);}[_0x42d561(0x168)](_0x1a1a55,_0x12293d,_0x89599){const _0x5a96a5=_0x42d561,_0xe7b5f6=this[_0x5a96a5(0x14a)](_0x1a1a55,_0x12293d);if(!_0xe7b5f6[_0x5a96a5(0x16d)](_0x89599))return;const _0xa6352b=_0xe7b5f6[_0x5a96a5(0x179)][_0x5a96a5(0x1a5)](_0x89599);if(_0xa6352b)return _0xa6352b[_0x5a96a5(0x13b)]();}[_0x42d561(0x19e)](_0x1d4353,_0x503b4f,_0x2fd811){return this['_ensureShapeModelManager'](_0x1d4353,_0x503b4f)['_shapes']['get'](_0x2fd811);}[_0x42d561(0x140)](_0x583acd,_0x3f8428,_0x1f5959){const _0x43d595=_0x42d561;return this['_ensureShapeModelManager'](_0x583acd,_0x3f8428)[_0x43d595(0x140)](_0x1f5959);}[_0x42d561(0x17b)](_0x3ee40d,_0xd731b3,_0x562d4d){const _0x406780=_0x42d561,_0x7a453f=this[_0x406780(0x14a)](_0x3ee40d,_0xd731b3)[_0x406780(0x179)][_0x406780(0x1a5)](_0x562d4d);if(_0x7a453f)return _0x7a453f[_0x406780(0x17a)]();}['setShapeType'](){}[_0x42d561(0x16e)](_0x15bf49){const _0x3222ff=_0x42d561,_0x507652={},_0x35d4cd=this[_0x3222ff(0x13a)][_0x3222ff(0x1a5)](_0x15bf49);return _0x35d4cd&&_0x35d4cd['forEach']((_0x5bb1c2,_0x24509d)=>{const _0x131c58=_0x3222ff,_0x3cec5d=_0x5bb1c2[_0x131c58(0x18f)]();_0x3cec5d['length']>0x0&&(_0x507652[_0x24509d]=_0x3cec5d);}),JSON[_0x3222ff(0x143)](_0x507652);}[_0x42d561(0x167)](_0x4f815c,_0x3c65c7){const _0x131e59=_0x42d561;Object[_0x131e59(0x163)](_0x3c65c7)[_0x131e59(0x14d)](_0x598fb3=>{const _0x68234=_0x131e59;this[_0x68234(0x14a)](_0x4f815c,_0x598fb3)[_0x68234(0x18a)](_0x3c65c7[_0x598fb3]);});}['toJSON'](){const _0x353b89=_0x42d561,_0x1b1957={};return this['_shapeModelManagerMap'][_0x353b89(0x14d)]((_0x37748d,_0x3e8e3c)=>{const _0x5de2e3=_0x353b89;_0x1b1957[_0x3e8e3c]={},_0x37748d[_0x5de2e3(0x14d)]((_0x282aee,_0x1b5bdb)=>{const _0x4b5709=_0x5de2e3;_0x1b1957[_0x3e8e3c][_0x1b5bdb]=_0x282aee[_0x4b5709(0x18f)]();});}),_0x1b1957;}[_0x42d561(0x18a)](_0x4f92c1){const _0x24b087=_0x42d561;Object[_0x24b087(0x163)](_0x4f92c1)[_0x24b087(0x14d)](_0x5f3c6b=>{const _0x507b48=_0x24b087,_0x86fceb=_0x4f92c1[_0x5f3c6b];Object[_0x507b48(0x163)](_0x86fceb)[_0x507b48(0x14d)](_0x524fb2=>{const _0x1245e0=_0x507b48;this[_0x1245e0(0x14a)](_0x5f3c6b,_0x524fb2)[_0x1245e0(0x18a)](_0x86fceb[_0x524fb2]);});});}[_0x42d561(0x175)](){const _0x4fda2b=_0x42d561;this[_0x4fda2b(0x160)]['registerPluginResource']({'pluginName':_0x22b0ca,'businesses':[_0x393091[_0x4fda2b(0x1a3)][_0x4fda2b(0x14b)]],'toJson':_0x24774d=>this[_0x4fda2b(0x16e)](_0x24774d),'parseJson':_0x3c15b0=>JSON['parse'](_0x3c15b0),'onLoad':(_0x327928,_0x12d060)=>{const _0x3c167c=_0x4fda2b;this[_0x3c167c(0x167)](_0x327928,_0x12d060);},'onUnLoad':_0x140d0e=>{const _0x38872b=_0x4fda2b,_0x270b01=this[_0x38872b(0x13a)]['get'](_0x140d0e);_0x270b01&&(_0x270b01[_0x38872b(0x14d)](_0x121912=>{const _0xe17de4=_0x38872b;_0x121912[_0xe17de4(0x173)]();}),this[_0x38872b(0x13a)][_0x38872b(0x195)](_0x140d0e));}});}[_0x42d561(0x173)](){const _0x36e42b=_0x42d561;this[_0x36e42b(0x13a)][_0x36e42b(0x14d)](_0x45222f=>{const _0x211d6d=_0x36e42b;_0x45222f[_0x211d6d(0x14d)](_0x362381=>{const _0x1befde=_0x211d6d;_0x362381[_0x1befde(0x173)]();});});}},_0x313265[_0x42d561(0x161)]=_0x59dc06([_0x46402d(0x0,_0x393091[_0x42d561(0x16f)])],_0x313265[_0x42d561(0x161)]);const _0x2d5569={'id':_0x42d561(0x148),'type':_0x393091[_0x42d561(0x18c)][_0x42d561(0x188)],'handler':(_0x4ea471,_0x7b0221)=>{const _0x5691a1=_0x42d561,{unitId:_0xbd6565,subUnitId:_0x333de4,shapeType:_0x3e9c90,shapeId:_0xbf02c,shapeData:_0x1c812c}=_0x7b0221,_0x4e434b=_0x4ea471['get'](_0x313265[_0x5691a1(0x161)])['getShapeModel'](_0xbd6565,_0x333de4,_0xbf02c);return _0x4e434b&&(_0x4e434b[_0x5691a1(0x193)](_0x3e9c90),_0x1c812c&&(_0x4e434b==null||_0x4e434b[_0x5691a1(0x164)](_0x1c812c))),!0x0;}},_0x4da855={'id':_0x42d561(0x174),'type':_0x393091['CommandType'][_0x42d561(0x15b)],'handler':(_0x289872,_0x5056ef)=>{const _0x1c9a35=_0x42d561;if(!_0x5056ef)return!0x1;const _0x19c0ff=_0x289872['get'](_0x393091[_0x1c9a35(0x191)]),_0x3bac6b=_0x289872['get'](_0x313265[_0x1c9a35(0x161)]),_0x4e0e91=_0x289872['get'](_0x393091[_0x1c9a35(0x19f)]),_0x4ba621=[],_0x40aa58=[],{unitId:_0x257cd2,subUnitId:_0x184e01,shapeId:_0x10d7a5,shapeType:_0x4ad9cc,shapeData:_0x38ba14}=_0x5056ef,_0x52496d=_0x3bac6b[_0x1c9a35(0x19e)](_0x257cd2,_0x184e01,_0x10d7a5);if(_0x52496d){const _0x338163=_0x52496d[_0x1c9a35(0x16d)](),_0x56013c=Object[_0x1c9a35(0x19c)]({},_0x52496d[_0x1c9a35(0x13b)]()),_0x1a90ef={'unitId':_0x257cd2,'subUnitId':_0x184e01,'shapeId':_0x10d7a5,'shapeType':_0x4ad9cc,'shapeData':_0x38ba14},_0x2a7a7f={'unitId':_0x257cd2,'subUnitId':_0x184e01,'shapeId':_0x10d7a5,'shapeType':_0x338163,'shapeData':_0x56013c};return _0x4ba621[_0x1c9a35(0x144)]({'id':_0x2d5569['id'],'params':_0x1a90ef}),_0x40aa58['push']({'id':_0x2d5569['id'],'params':_0x2a7a7f}),_0x4ba621[_0x1c9a35(0x162)](_0xaedf8a=>_0x19c0ff[_0x1c9a35(0x151)](_0xaedf8a['id'],_0xaedf8a[_0x1c9a35(0x154)]))&&_0x4e0e91[_0x1c9a35(0x16c)]({'unitID':_0x257cd2,'redoMutations':[..._0x4ba621],'undoMutations':[..._0x40aa58]}),!0x0;}return!0x1;}},_0x24534e={'id':_0x42d561(0x156),'type':_0x393091[_0x42d561(0x18c)]['MUTATION'],'handler':(_0x1cbccb,_0x3b48bb)=>{const _0x109a63=_0x42d561,{unitId:_0x50525f,subUnitId:_0x58ef94,shapeType:_0x274aa7,shapeId:_0x3a83a6,shapeData:_0x4f4aab}=_0x3b48bb;return _0x1cbccb[_0x109a63(0x1a5)](_0x313265[_0x109a63(0x161)])[_0x109a63(0x142)](_0x50525f,_0x58ef94,_0x274aa7,_0x3a83a6,_0x4f4aab),!0x0;}},_0x36af74={'id':_0x42d561(0x13d),'type':_0x393091[_0x42d561(0x18c)][_0x42d561(0x188)],'handler':(_0x59932e,_0x2297d5)=>{const _0x1af666=_0x42d561,{unitId:_0x12eeac,subUnitId:_0x999ec6,shapeId:_0x72940a}=_0x2297d5;return _0x59932e[_0x1af666(0x1a5)](_0x313265[_0x1af666(0x161)])[_0x1af666(0x199)](_0x12eeac,_0x999ec6,_0x72940a),!0x0;}},_0x1a1f7b={'id':_0x42d561(0x177),'type':_0x393091[_0x42d561(0x18c)]['MUTATION'],'handler':(_0x18b528,_0x22a4d4)=>{const _0x138a46=_0x42d561,{unitId:_0x1072a5,subUnitId:_0x17fff2,shapeType:_0x2af29f,shapeId:_0x174001,shapeData:_0x52d3dc}=_0x22a4d4,_0x114d05=_0x18b528[_0x138a46(0x1a5)](_0x313265[_0x138a46(0x161)])[_0x138a46(0x19e)](_0x1072a5,_0x17fff2,_0x174001);return _0x114d05&&(_0x2af29f!==void 0x0&&_0x114d05[_0x138a46(0x193)](_0x2af29f),_0x52d3dc&&(_0x114d05==null||_0x114d05['setShapeData'](_0x52d3dc,!0x0))),!0x0;}},_0x42f637={'name':_0x42d561(0x190),'version':_0x42d561(0x18d)},_0x47341e=_0x42d561(0x153),_0x534322={};var _0x3a58bb=Object[_0x42d561(0x15e)],_0x3261a1=Object['getOwnPropertyDescriptor'],_0x2dbf5d=(_0x3bff2d,_0x4b6aab,_0x38ad91)=>_0x4b6aab in _0x3bff2d?_0x3a58bb(_0x3bff2d,_0x4b6aab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38ad91}):_0x3bff2d[_0x4b6aab]=_0x38ad91,_0x596549=(_0x3365d6,_0x3efed5,_0x2699c0,_0x552a04)=>{const _0x2aeaec=_0x42d561;for(var _0x26235c=_0x552a04>0x1?void 0x0:_0x552a04?_0x3261a1(_0x3efed5,_0x2699c0):_0x3efed5,_0x535ace=_0x3365d6[_0x2aeaec(0x198)]-0x1,_0x32e613;_0x535ace>=0x0;_0x535ace--)(_0x32e613=_0x3365d6[_0x535ace])&&(_0x26235c=_0x32e613(_0x26235c)||_0x26235c);return _0x26235c;},_0x290e9a=(_0x126846,_0x2d7c02)=>(_0xeee5f0,_0x2c66af)=>_0x2d7c02(_0xeee5f0,_0x2c66af,_0x126846),_0x4bcca9=(_0x3ba822,_0x4e82dc,_0x33f04b)=>_0x2dbf5d(_0x3ba822,typeof _0x4e82dc!=_0x42d561(0x169)?_0x4e82dc+'':_0x4e82dc,_0x33f04b);_0x313265[_0x42d561(0x146)]=class extends _0x393091[_0x42d561(0x141)]{constructor(_0xfdd5bb=_0x534322,_0x37219b,_0x215ff8,_0x15cb97){const _0x4baea3=_0x42d561;super(),this[_0x4baea3(0x149)]=_0xfdd5bb,this[_0x4baea3(0x15c)]=_0x37219b,this['_commandService']=_0x215ff8,this[_0x4baea3(0x172)]=_0x15cb97;const {..._0x1e049b}=_0x393091[_0x4baea3(0x17f)]({},_0x534322,this[_0x4baea3(0x149)]);this[_0x4baea3(0x172)][_0x4baea3(0x166)](_0x47341e,_0x1e049b),this['_initCommands']();}[_0x42d561(0x178)](){const _0x2a3a36=_0x42d561;_0x393091[_0x2a3a36(0x1a1)](this[_0x2a3a36(0x15c)],[]);}['onStarting'](){const _0x53acb0=_0x42d561,_0x1ed689=this[_0x53acb0(0x15c)];[[_0x214894],[_0x313265['SheetsShapeService']]]['forEach'](_0x40a4d3=>_0x1ed689[_0x53acb0(0x181)](_0x40a4d3));}[_0x42d561(0x14e)](){const _0x34b86f=_0x42d561;[_0x24534e,_0x36af74,_0x2d5569,_0x1a1f7b][_0x34b86f(0x14d)](_0x3cfea2=>this[_0x34b86f(0x16b)](this[_0x34b86f(0x145)]['registerCommand'](_0x3cfea2)));}},_0x4bcca9(_0x313265['UniverSheetsShapePlugin'],_0x42d561(0x18b),_0x393091[_0x42d561(0x1a3)]['UNIVER_SHEET']),_0x4bcca9(_0x313265[_0x42d561(0x146)],'pluginName',_0x42d561(0x1a6)),_0x4bcca9(_0x313265[_0x42d561(0x146)],_0x42d561(0x170),_0x42f637[_0x42d561(0x15a)]),_0x4bcca9(_0x313265[_0x42d561(0x146)],_0x42d561(0x15f),_0x42f637[_0x42d561(0x15f)]),_0x313265[_0x42d561(0x146)]=_0x596549([_0x393091[_0x42d561(0x1a7)](_0x5f0d66[_0x42d561(0x180)]),_0x290e9a(0x1,_0x393091[_0x42d561(0x19b)](_0x393091[_0x42d561(0x1a2)])),_0x290e9a(0x2,_0x393091[_0x42d561(0x191)]),_0x290e9a(0x3,_0x393091['IConfigService'])],_0x313265[_0x42d561(0x146)]),_0x313265[_0x42d561(0x15d)]=_0x24534e,_0x313265[_0x42d561(0x19d)]=_0x36af74,_0x313265[_0x42d561(0x16a)]=_0x1a1f7b,_0x313265[_0x42d561(0x14f)]=_0x4da855,_0x313265['UpdateSheetsShapeTypeMutation']=_0x2d5569,Object[_0x42d561(0x15e)](_0x313265,Symbol[_0x42d561(0x1a4)],{'value':_0x42d561(0x17e)});}));function _0x7fa3(){const _0x6dbe69=['sheet.mutation.insert-shape','_disposed','178133JenFxP','@univerjs/core','name','COMMAND','_injector','InsertSheetsShapeMutation','defineProperty','version','_resourcesManagerService','SheetsShapeService','every','keys','setShapeData','UniverProEngineShape','setConfig','_deserializeShapeForUnit','getShapeDataById','symbol','UpdateSheetsShapeDataMutation','disposeWithMe','pushUndoRedo','getShapeType','_serializeShapeForUnit','IResourceManagerService','packageName','function','_configService','dispose','sheet.command.update-shape-type','_initSnapshot','from','sheet.mutation.update-shape-data','onRendered','_shapes','getShapeRelation','getLineShapeRelation','2007025EdCTrC','addShape','Module','merge','UniverLicensePlugin','add','UniverCore','UniverProLicense','exports','ShapeModel','getShapeTypeById','6198138gUJxVC','MUTATION','173960ibrTjq','fromJSON','type','CommandType','0.16.1-insiders.20260311-074e8ca','shapeData','toJSON','@univerjs-pro/sheets-shape','ICommandService','92343gTBrCU','setShapeType','has','delete','getBasicShapeType','8sOljwR','length','removeShape','35648nlQqfu','Inject','assign','RemoveSheetsShapeMutation','getShapeModel','IUndoRedoService','16041109puVTlC','touchDependencies','Injector','UniverInstanceType','toStringTag','get','SHEET_SHAPE_PLUGIN','DependentOn','_shapeModelManagerMap','getShapeData','isConnectorShape','sheet.mutation.remove-shape','@univerjs-pro/license','hasShape','getBasicShapeRelation','Plugin','insertShape','stringify','push','_commandService','UniverSheetsShapePlugin','_groupIds','sheet.mutation.update-shape-type','_config','_ensureShapeModelManager','UNIVER_SHEET','_linesIds','forEach','_initCommands','UpdateSheetsShapeTypeCommand','Disposable','syncExecuteCommand','shapeId','sheets-shape.config','params','set'];_0x7fa3=function(){return _0x6dbe69;};return _0x7fa3();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.16.0",
3
+ "version": "0.16.1-insiders.20260311-074e8ca",
4
4
  "private": false,
5
5
  "description": "shape for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,17 +57,17 @@
57
57
  "rxjs": ">=7.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "@univerjs-pro/engine-shape": "0.16.0",
61
- "@univerjs-pro/license": "0.16.0",
62
- "@univerjs/core": "0.16.0"
60
+ "@univerjs-pro/engine-shape": "0.16.1-insiders.20260311-074e8ca",
61
+ "@univerjs/core": "0.16.1-insiders.20260311-074e8ca",
62
+ "@univerjs-pro/license": "0.16.1-insiders.20260311-074e8ca"
63
63
  },
64
64
  "devDependencies": {
65
65
  "rxjs": "7.8.2",
66
66
  "typescript": "^5.9.3",
67
67
  "vite": "^7.3.1",
68
68
  "vitest": "^4.0.18",
69
- "@univerjs-infra/shared": "0.16.0",
70
- "@univerjs/sheets": "0.16.0"
69
+ "@univerjs-infra/shared": "0.16.1",
70
+ "@univerjs/sheets": "0.16.1-insiders.20260311-074e8ca"
71
71
  },
72
72
  "scripts": {
73
73
  "test": "vitest run",