@univerjs-pro/sheets-shape 0.15.4 → 0.15.5-insiders.20260212-8882dcc

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 _0x9c8bca=_0xf2c6;(function(_0x340a73,_0x35b4dd){const _0x18c451=_0xf2c6,_0x166109=_0x340a73();while(!![]){try{const _0x1c789a=parseInt(_0x18c451(0x95))/0x1*(parseInt(_0x18c451(0xd7))/0x2)+parseInt(_0x18c451(0xb2))/0x3*(parseInt(_0x18c451(0xb6))/0x4)+parseInt(_0x18c451(0xb7))/0x5+parseInt(_0x18c451(0xbe))/0x6*(-parseInt(_0x18c451(0xc6))/0x7)+parseInt(_0x18c451(0xa7))/0x8+-parseInt(_0x18c451(0xc8))/0x9+-parseInt(_0x18c451(0x97))/0xa;if(_0x1c789a===_0x35b4dd)break;else _0x166109['push'](_0x166109['shift']());}catch(_0x2d29b4){_0x166109['push'](_0x166109['shift']());}}}(_0x1474,0x29e45));var D=Object[_0x9c8bca(0xd1)],C=(_0x422c25,_0x2006de,_0x51558d)=>_0x2006de in _0x422c25?D(_0x422c25,_0x2006de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51558d}):_0x422c25[_0x2006de]=_0x51558d,S=(_0x5425e9,_0x13fe35,_0x5513d7)=>C(_0x5425e9,typeof _0x13fe35!='symbol'?_0x13fe35+'':_0x13fe35,_0x5513d7);Object[_0x9c8bca(0xd1)](exports,Symbol['toStringTag'],{'value':_0x9c8bca(0xa2)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x9c8bca(0xbb)]{constructor(){const _0x367807=_0x9c8bca;super(),S(this,'_shapes',new Map()),S(this,_0x367807(0xaa),new Set()),S(this,_0x367807(0x9a),new Set());}[_0x9c8bca(0xa3)](_0xa2974c,_0x4985a9,_0x472481){const _0x7d688a=_0x9c8bca,_0xb2d1c3=new l['ShapeModel'](_0xa2974c,_0x4985a9,_0x472481);return this[_0x7d688a(0x94)][_0x7d688a(0xbc)](_0x4985a9,_0xb2d1c3),l['isConnectorShape'](_0xa2974c)&&this['_linesIds'][_0x7d688a(0xd5)](_0x4985a9),_0xb2d1c3;}['getBasicShapeRelation'](_0x151732){const _0x1b3621=_0x9c8bca;var _0x4275cd,_0x38fcf4;const _0x46441f=[];for(const _0x8a0c97 of this[_0x1b3621(0xaa)]){const _0x312621=this[_0x1b3621(0x94)][_0x1b3621(0x9f)](_0x8a0c97);if(_0x312621){const _0x5361c5=_0x312621['getShapeRelation']();_0x5361c5&&(((_0x4275cd=_0x5361c5[_0x1b3621(0xd3)])==null?void 0x0:_0x4275cd['shapeId'])===_0x151732&&_0x46441f['push']({..._0x5361c5[_0x1b3621(0xd3)],'lineShapeId':_0x8a0c97,'isFrom':!0x0}),((_0x38fcf4=_0x5361c5['to'])==null?void 0x0:_0x38fcf4[_0x1b3621(0x9d)])===_0x151732&&_0x46441f['push']({..._0x5361c5['to'],'lineShapeId':_0x8a0c97,'isFrom':!0x1}));}}return _0x46441f;}['getLineShapeRelation'](_0x57e2f3){const _0x288f02=_0x9c8bca,_0x102938=this[_0x288f02(0x94)]['get'](_0x57e2f3);if(_0x102938)return _0x102938[_0x288f02(0xa9)]();}[_0x9c8bca(0xb3)](_0x133301){const _0x1e5bd9=_0x9c8bca,_0xae1dcc=this[_0x1e5bd9(0x94)][_0x1e5bd9(0x9f)](_0x133301);if(_0xae1dcc)return _0xae1dcc[_0x1e5bd9(0xb3)]();}['hasShape'](_0x419fb7){const _0x58e5a5=_0x9c8bca;return this[_0x58e5a5(0x94)]['has'](_0x419fb7);}[_0x9c8bca(0x8b)](_0x1aac0a){const _0x7bc4e7=_0x9c8bca,_0x4e137d=this[_0x7bc4e7(0x94)][_0x7bc4e7(0x9f)](_0x1aac0a);_0x4e137d&&(l[_0x7bc4e7(0xda)](_0x4e137d[_0x7bc4e7(0xb3)]())&&this[_0x7bc4e7(0xaa)][_0x7bc4e7(0x88)](_0x1aac0a),this['_shapes'][_0x7bc4e7(0x88)](_0x1aac0a));}[_0x9c8bca(0x80)](){const _0x4de87e=_0x9c8bca,_0x2f55fb=[];return this[_0x4de87e(0x94)][_0x4de87e(0xd2)](_0x5879fa=>{const _0x54cc98=_0x4de87e;_0x2f55fb[_0x54cc98(0xa4)](_0x5879fa[_0x54cc98(0x80)]());}),_0x2f55fb;}[_0x9c8bca(0x98)](_0x4ecefd){const _0x52880d=_0x9c8bca;for(const _0x3a81f3 of _0x4ecefd){const {id:_0x45efe2,shapeType:_0x3b8619}=_0x3a81f3,_0x92a11d=this[_0x52880d(0xa3)](_0x3b8619,_0x45efe2,_0x3a81f3['shapeData']);_0x92a11d&&_0x92a11d[_0x52880d(0x8c)]()&&this[_0x52880d(0xaa)][_0x52880d(0xd5)](_0x45efe2);}}[_0x9c8bca(0xcc)](){const _0x234f69=_0x9c8bca;this['_disposed']||(this[_0x234f69(0x94)][_0x234f69(0xd2)](_0x24e64a=>{const _0x3f8254=_0x234f69;_0x24e64a[_0x3f8254(0xcc)]();}),this[_0x234f69(0x94)]['clear'](),this[_0x234f69(0xaa)][_0x234f69(0xae)](),this['_groupIds'][_0x234f69(0xae)](),super['dispose']());}}var R=Object['getOwnPropertyDescriptor'],J=(_0x462201,_0x462dc8,_0x2f293a,_0x5f53c2)=>{const _0x328d50=_0x9c8bca;for(var _0x3f51ae=_0x5f53c2>0x1?void 0x0:_0x5f53c2?R(_0x462dc8,_0x2f293a):_0x462dc8,_0x37eb74=_0x462201[_0x328d50(0x9c)]-0x1,_0x172a67;_0x37eb74>=0x0;_0x37eb74--)(_0x172a67=_0x462201[_0x37eb74])&&(_0x3f51ae=_0x172a67(_0x3f51ae)||_0x3f51ae);return _0x3f51ae;},j=(_0x5b7858,_0x194154)=>(_0x2d1877,_0x4d292e)=>_0x194154(_0x2d1877,_0x4d292e,_0x5b7858);function _0x1474(){const _0x26d514=['ICommandService','CommandType','delete','_configService','getShapeData','removeShape','isLineShape','_ensureShapeModelManager','DependentOn','SHEET_SHAPE_PLUGIN','stringify','IUndoRedoService','registerCommand','UpdateSheetsShapeTypeCommand','_shapes','68731MCCCys','UniverInstanceType','2636570yUswMi','fromJSON','disposeWithMe','_groupIds','Inject','length','shapeId','sheet.mutation.update-shape-type','get','COMMAND','touchDependencies','Module','addShape','push','_initSnapshot','onStarting','1893784maacDI','_config','getShapeRelation','_linesIds','setConfig','insertShape','type','clear','setShapeData','UNIVER_SHEET','RemoveSheetsShapeMutation','3YwTHXz','getShapeType','_deserializeShapeForUnit','merge','610644jUsovn','1456930grkclL','assign','getShapeModel','IConfigService','Disposable','set','params','24426lhSaHF','_resourcesManagerService','_serializeShapeForUnit','onRendered','IResourceManagerService','registerPluginResource','_initCommands','pushUndoRedo','581dYMRcY','MUTATION','405837BLnHfg','sheet.command.update-shape-type','symbol','hasShape','dispose','_injector','keys','sheets-shape.config','getShapeDataById','defineProperty','forEach','from','_shapeModelManagerMap','add','_commandService','4HeJntH','SheetsShapeServices','getBasicShapeType','isConnectorShape','getLineShapeRelation','getBasicShapeRelation','toJSON','UniverSheetsShapePlugin','UpdateSheetsShapeTypeMutation','setShapeType','getShapeTypeById','sheet.mutation.update-shape-data'];_0x1474=function(){return _0x26d514;};return _0x1474();}const w='SHEET_SHAPE_PLUGIN';exports[_0x9c8bca(0xd8)]=class extends p[_0x9c8bca(0xbb)]{constructor(_0x314c35){const _0x5f3797=_0x9c8bca;super(),S(this,_0x5f3797(0xd4),new Map()),(this[_0x5f3797(0xbf)]=_0x314c35,this[_0x5f3797(0xa5)]());}[_0x9c8bca(0x8d)](_0x2dd1fe,_0x286c4b){const _0x188393=_0x9c8bca;let _0x572a7f=this[_0x188393(0xd4)][_0x188393(0x9f)](_0x2dd1fe);_0x572a7f||(_0x572a7f=new Map(),this[_0x188393(0xd4)][_0x188393(0xbc)](_0x2dd1fe,_0x572a7f));let _0x21834e=_0x572a7f[_0x188393(0x9f)](_0x286c4b);return _0x21834e||(_0x21834e=new f(),_0x572a7f['set'](_0x286c4b,_0x21834e)),_0x21834e;}[_0x9c8bca(0xac)](_0x35b3a2,_0x4bfa19,_0x226a38,_0x4bd998,_0x3b0996){const _0x5a3bd8=_0x9c8bca;this['_ensureShapeModelManager'](_0x35b3a2,_0x4bfa19)[_0x5a3bd8(0xa3)](_0x226a38,_0x4bd998,_0x3b0996);}[_0x9c8bca(0x8b)](_0x4dad7d,_0x33a37f,_0x484e28){const _0x2f3f60=_0x9c8bca;this['_ensureShapeModelManager'](_0x4dad7d,_0x33a37f)[_0x2f3f60(0x8b)](_0x484e28);}[_0x9c8bca(0xd9)](_0x467a3e,_0x49a08d,_0x4e14ef){const _0xded75=_0x9c8bca;return this[_0xded75(0x8d)](_0x467a3e,_0x49a08d)['getShapeType'](_0x4e14ef);}['getShapeType'](_0x7421ac,_0x15f38c,_0x42e2dd){return this['_ensureShapeModelManager'](_0x7421ac,_0x15f38c)['getShapeType'](_0x42e2dd);}['hasShape'](_0x3287a9,_0x8fe0bb,_0x171555){const _0x5892b2=_0x9c8bca;return this[_0x5892b2(0x8d)](_0x3287a9,_0x8fe0bb)[_0x5892b2(0xcb)](_0x171555);}[_0x9c8bca(0x84)](_0x174cff,_0x592810,_0x420bbe){const _0x15a455=_0x9c8bca;return this[_0x15a455(0x8d)](_0x174cff,_0x592810)[_0x15a455(0xb3)](_0x420bbe);}[_0x9c8bca(0xd0)](_0x5bfddd,_0x47a95e,_0x394419){const _0x5b5182=_0x9c8bca,_0x33805c=this[_0x5b5182(0x8d)](_0x5bfddd,_0x47a95e);if(!_0x33805c['getShapeType'](_0x394419))return;const _0x1ce91c=_0x33805c[_0x5b5182(0x94)][_0x5b5182(0x9f)](_0x394419);if(_0x1ce91c)return _0x1ce91c[_0x5b5182(0x8a)]();}[_0x9c8bca(0xb9)](_0x109fea,_0x137415,_0x300810){const _0x332c11=_0x9c8bca;return this[_0x332c11(0x8d)](_0x109fea,_0x137415)[_0x332c11(0x94)]['get'](_0x300810);}[_0x9c8bca(0xdc)](_0x557c4b,_0x105316,_0x122146){const _0x8e438=_0x9c8bca;return this[_0x8e438(0x8d)](_0x557c4b,_0x105316)[_0x8e438(0xdc)](_0x122146);}[_0x9c8bca(0xdb)](_0x160851,_0x279c82,_0x154e16){const _0x5e78e8=_0x9c8bca,_0x2bfc1c=this[_0x5e78e8(0x8d)](_0x160851,_0x279c82)[_0x5e78e8(0x94)][_0x5e78e8(0x9f)](_0x154e16);if(_0x2bfc1c)return _0x2bfc1c[_0x5e78e8(0xa9)]();}[_0x9c8bca(0x83)](){}[_0x9c8bca(0xc0)](_0x591400){const _0x4bd585=_0x9c8bca,_0x3fb885={},_0x3fde30=this[_0x4bd585(0xd4)][_0x4bd585(0x9f)](_0x591400);return _0x3fde30&&_0x3fde30[_0x4bd585(0xd2)]((_0x51143d,_0x2d1177)=>{const _0xe98a1f=_0x4bd585;_0x3fb885[_0x2d1177]=_0x51143d[_0xe98a1f(0x80)]();}),JSON[_0x4bd585(0x90)](_0x3fb885);}[_0x9c8bca(0xb4)](_0x4e1e87,_0x2d219f){const _0x1d4391=_0x9c8bca;Object[_0x1d4391(0xce)](_0x2d219f)[_0x1d4391(0xd2)](_0x36050c=>{const _0x3b1483=_0x1d4391;this[_0x3b1483(0x8d)](_0x4e1e87,_0x36050c)['fromJSON'](_0x2d219f[_0x36050c]);});}[_0x9c8bca(0x80)](){const _0x35e1f8=_0x9c8bca,_0x205bd0={};return this[_0x35e1f8(0xd4)][_0x35e1f8(0xd2)]((_0x405443,_0x1a3f7d)=>{const _0x3b20ae=_0x35e1f8;_0x205bd0[_0x1a3f7d]={},_0x405443[_0x3b20ae(0xd2)]((_0x1fed5f,_0x104693)=>{const _0x2e7841=_0x3b20ae;_0x205bd0[_0x1a3f7d][_0x104693]=_0x1fed5f[_0x2e7841(0x80)]();});}),_0x205bd0;}[_0x9c8bca(0x98)](_0x59f492){const _0x222616=_0x9c8bca;Object[_0x222616(0xce)](_0x59f492)[_0x222616(0xd2)](_0x4305ef=>{const _0x2a178c=_0x222616,_0x83388a=_0x59f492[_0x4305ef];Object[_0x2a178c(0xce)](_0x83388a)['forEach'](_0x34917a=>{const _0x4fab94=_0x2a178c;this[_0x4fab94(0x8d)](_0x4305ef,_0x34917a)[_0x4fab94(0x98)](_0x83388a[_0x34917a]);});});}[_0x9c8bca(0xa5)](){const _0x2fbf3b=_0x9c8bca;this['_resourcesManagerService'][_0x2fbf3b(0xc3)]({'pluginName':w,'businesses':[p[_0x2fbf3b(0x96)][_0x2fbf3b(0xb0)]],'toJson':_0x4d998e=>this[_0x2fbf3b(0xc0)](_0x4d998e),'parseJson':_0x3476b6=>JSON['parse'](_0x3476b6),'onLoad':(_0x3c230c,_0x30389d)=>{const _0x2119da=_0x2fbf3b;this[_0x2119da(0xb4)](_0x3c230c,_0x30389d);},'onUnLoad':_0x18a893=>{const _0x5919a1=_0x2fbf3b,_0x2671bb=this[_0x5919a1(0xd4)][_0x5919a1(0x9f)](_0x18a893);_0x2671bb&&(_0x2671bb[_0x5919a1(0xd2)](_0x2bf3e3=>{const _0x49eadf=_0x5919a1;_0x2bf3e3[_0x49eadf(0xcc)]();}),this[_0x5919a1(0xd4)][_0x5919a1(0x88)](_0x18a893));}});}[_0x9c8bca(0xcc)](){const _0x539686=_0x9c8bca;this[_0x539686(0xd4)]['forEach'](_0x3edaa7=>{const _0x3604db=_0x539686;_0x3edaa7[_0x3604db(0xd2)](_0x28f053=>{_0x28f053['dispose']();});});}},exports['SheetsShapeServices']=J([j(0x0,p[_0x9c8bca(0xc2)])],exports[_0x9c8bca(0xd8)]);function _0xf2c6(_0x91ab82,_0xa15704){_0x91ab82=_0x91ab82-0x80;const _0x147483=_0x1474();let _0xf2c6ec=_0x147483[_0x91ab82];return _0xf2c6ec;}const d={'id':_0x9c8bca(0x9e),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xc7)],'handler':(_0x540943,_0x308799)=>{const _0x4a1419=_0x9c8bca,{unitId:_0x1a87bb,subUnitId:_0x1b5af6,shapeType:_0x529a68,shapeId:_0x58f2b1,shapeData:_0xb027c9}=_0x308799,_0x461cab=_0x540943[_0x4a1419(0x9f)](exports['SheetsShapeServices'])[_0x4a1419(0xb9)](_0x1a87bb,_0x1b5af6,_0x58f2b1);return _0x461cab&&(_0x461cab['setShapeType'](_0x529a68),_0xb027c9&&(_0x461cab==null||_0x461cab['setShapeData'](_0xb027c9))),!0x0;}},H={'id':_0x9c8bca(0xc9),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xa0)],'handler':(_0x2185ad,_0x25bd73)=>{const _0x40e876=_0x9c8bca;if(!_0x25bd73)return!0x1;const _0x1ce69b=_0x2185ad['get'](p[_0x40e876(0x86)]),_0xc406ef=_0x2185ad[_0x40e876(0x9f)](exports[_0x40e876(0xd8)]),_0x375bc9=_0x2185ad[_0x40e876(0x9f)](p[_0x40e876(0x91)]),_0x5e56a9=[],_0x2d354f=[],{unitId:_0x269fc6,subUnitId:_0x11dae9,shapeId:_0x196075,shapeType:_0x5aaa72,shapeData:_0x2d8095}=_0x25bd73,_0x5ee0c2=_0xc406ef[_0x40e876(0xb9)](_0x269fc6,_0x11dae9,_0x196075);if(_0x5ee0c2){const _0x118e1e=_0x5ee0c2[_0x40e876(0xb3)](),_0x27d20c=Object[_0x40e876(0xb8)]({},_0x5ee0c2[_0x40e876(0x8a)]()),_0x3f8b44={'unitId':_0x269fc6,'subUnitId':_0x11dae9,'shapeId':_0x196075,'shapeType':_0x5aaa72,'shapeData':_0x2d8095},_0x2bac91={'unitId':_0x269fc6,'subUnitId':_0x11dae9,'shapeId':_0x196075,'shapeType':_0x118e1e,'shapeData':_0x27d20c};return _0x5e56a9[_0x40e876(0xa4)]({'id':d['id'],'params':_0x3f8b44}),_0x2d354f[_0x40e876(0xa4)]({'id':d['id'],'params':_0x2bac91}),_0x5e56a9['every'](_0x633fe3=>_0x1ce69b['syncExecuteCommand'](_0x633fe3['id'],_0x633fe3[_0x40e876(0xbd)]))&&_0x375bc9[_0x40e876(0xc5)]({'unitID':_0x269fc6,'redoMutations':[..._0x5e56a9],'undoMutations':[..._0x2d354f]}),!0x0;}return!0x1;}},m={'id':'sheet.mutation.insert-shape','type':p[_0x9c8bca(0x87)]['MUTATION'],'handler':(_0x4f7fcd,_0x2ad384)=>{const _0x39a9a1=_0x9c8bca,{unitId:_0x5976d,subUnitId:_0x5fcdc9,shapeType:_0x263cf4,shapeId:_0x3f5a2f,shapeData:_0x55cac6}=_0x2ad384;return _0x4f7fcd[_0x39a9a1(0x9f)](exports[_0x39a9a1(0xd8)])[_0x39a9a1(0xac)](_0x5976d,_0x5fcdc9,_0x263cf4,_0x3f5a2f,_0x55cac6),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p['CommandType'][_0x9c8bca(0xc7)],'handler':(_0x21b94f,_0x331143)=>{const _0x17bb8c=_0x9c8bca,{unitId:_0x5bdac0,subUnitId:_0x32c06c,shapeId:_0x27f6dd}=_0x331143;return _0x21b94f[_0x17bb8c(0x9f)](exports[_0x17bb8c(0xd8)])[_0x17bb8c(0x8b)](_0x5bdac0,_0x32c06c,_0x27f6dd),!0x0;}},y={'id':_0x9c8bca(0x85),'type':p[_0x9c8bca(0x87)][_0x9c8bca(0xc7)],'handler':(_0x16a2b0,_0xa79d55)=>{const _0x27dc9d=_0x9c8bca,{unitId:_0x4dac75,subUnitId:_0x12e2c0,shapeType:_0x50193b,shapeId:_0x21b5ea,shapeData:_0x480d8a}=_0xa79d55,_0x5b92e1=_0x16a2b0[_0x27dc9d(0x9f)](exports[_0x27dc9d(0xd8)])[_0x27dc9d(0xb9)](_0x4dac75,_0x12e2c0,_0x21b5ea);return _0x5b92e1&&(_0x50193b!==void 0x0&&_0x5b92e1['setShapeType'](_0x50193b),_0x480d8a&&(_0x5b92e1==null||_0x5b92e1[_0x27dc9d(0xaf)](_0x480d8a,!0x0))),!0x0;}},A=_0x9c8bca(0xcf),_={};var L=Object[_0x9c8bca(0xd1)],F=Object['getOwnPropertyDescriptor'],B=(_0x2aafc8,_0x41ada7,_0x4e8ad4)=>_0x41ada7 in _0x2aafc8?L(_0x2aafc8,_0x41ada7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e8ad4}):_0x2aafc8[_0x41ada7]=_0x4e8ad4,G=(_0x538781,_0x3f5cc3,_0x50a63d,_0x5f133c)=>{const _0x12a4f6=_0x9c8bca;for(var _0x267fc8=_0x5f133c>0x1?void 0x0:_0x5f133c?F(_0x3f5cc3,_0x50a63d):_0x3f5cc3,_0x3e0384=_0x538781[_0x12a4f6(0x9c)]-0x1,_0x1b3684;_0x3e0384>=0x0;_0x3e0384--)(_0x1b3684=_0x538781[_0x3e0384])&&(_0x267fc8=_0x1b3684(_0x267fc8)||_0x267fc8);return _0x267fc8;},g=(_0x2f354c,_0x3b91f0)=>(_0x82276,_0x406805)=>_0x3b91f0(_0x82276,_0x406805,_0x2f354c),T=(_0x2b89a4,_0x2de6a7,_0x1f2ebd)=>B(_0x2b89a4,typeof _0x2de6a7!=_0x9c8bca(0xca)?_0x2de6a7+'':_0x2de6a7,_0x1f2ebd);const x=_0x9c8bca(0x8f);exports[_0x9c8bca(0x81)]=class extends p['Plugin']{constructor(_0x248ba0=_,_0x36c24e,_0x7cec1,_0x5a7c11){const _0x76950b=_0x9c8bca;super(),this['_config']=_0x248ba0,this[_0x76950b(0xcd)]=_0x36c24e,this[_0x76950b(0xd6)]=_0x7cec1,this[_0x76950b(0x89)]=_0x5a7c11;const {..._0x370606}=p[_0x76950b(0xb5)]({},_,this[_0x76950b(0xa8)]);this[_0x76950b(0x89)][_0x76950b(0xab)](A,_0x370606),this[_0x76950b(0xc4)]();}[_0x9c8bca(0xc1)](){const _0x4fb7fb=_0x9c8bca;p[_0x4fb7fb(0xa1)](this[_0x4fb7fb(0xcd)],[]);}[_0x9c8bca(0xa6)](){const _0x24a93a=_0x9c8bca,_0x4216a6=this[_0x24a93a(0xcd)];[[f],[exports[_0x24a93a(0xd8)]]]['forEach'](_0x15c0b3=>_0x4216a6[_0x24a93a(0xd5)](_0x15c0b3));}[_0x9c8bca(0xc4)](){const _0x21c62e=_0x9c8bca;[m,v,d,y][_0x21c62e(0xd2)](_0x3bacab=>this[_0x21c62e(0x99)](this[_0x21c62e(0xd6)][_0x21c62e(0x92)](_0x3bacab)));}},T(exports[_0x9c8bca(0x81)],_0x9c8bca(0xad),p['UniverInstanceType'][_0x9c8bca(0xb0)]),T(exports[_0x9c8bca(0x81)],'pluginName',x),exports[_0x9c8bca(0x81)]=G([p[_0x9c8bca(0x8e)](b['UniverLicensePlugin']),g(0x1,p[_0x9c8bca(0x9b)](p['Injector'])),g(0x2,p[_0x9c8bca(0x86)]),g(0x3,p[_0x9c8bca(0xba)])],exports[_0x9c8bca(0x81)]),exports['InsertSheetsShapeMutation']=m,exports[_0x9c8bca(0xb1)]=v,exports['UpdateSheetsShapeDataMutation']=y,exports[_0x9c8bca(0x93)]=H,exports[_0x9c8bca(0x82)]=d;
1
+ 'use strict';const _0x26f289=_0x1c3c;(function(_0x1063e7,_0x5303b7){const _0x36043a=_0x1c3c,_0x4aff53=_0x1063e7();while(!![]){try{const _0x13b1ef=-parseInt(_0x36043a(0x1e6))/0x1+parseInt(_0x36043a(0x226))/0x2*(parseInt(_0x36043a(0x236))/0x3)+parseInt(_0x36043a(0x24c))/0x4*(parseInt(_0x36043a(0x1f2))/0x5)+-parseInt(_0x36043a(0x1ea))/0x6*(parseInt(_0x36043a(0x1f5))/0x7)+parseInt(_0x36043a(0x202))/0x8*(-parseInt(_0x36043a(0x234))/0x9)+parseInt(_0x36043a(0x220))/0xa*(parseInt(_0x36043a(0x1e7))/0xb)+parseInt(_0x36043a(0x1ef))/0xc*(parseInt(_0x36043a(0x229))/0xd);if(_0x13b1ef===_0x5303b7)break;else _0x4aff53['push'](_0x4aff53['shift']());}catch(_0x578463){_0x4aff53['push'](_0x4aff53['shift']());}}}(_0x22e4,0x1b392));var D=Object[_0x26f289(0x22f)],C=(_0xd8ce7,_0x13494d,_0x319fa7)=>_0x13494d in _0xd8ce7?D(_0xd8ce7,_0x13494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x319fa7}):_0xd8ce7[_0x13494d]=_0x319fa7,S=(_0x18e792,_0x32acf9,_0x54e5d8)=>C(_0x18e792,typeof _0x32acf9!=_0x26f289(0x1fb)?_0x32acf9+'':_0x32acf9,_0x54e5d8);Object[_0x26f289(0x22f)](exports,Symbol[_0x26f289(0x20f)],{'value':_0x26f289(0x249)});function _0x1c3c(_0x109b2e,_0x2341e2){_0x109b2e=_0x109b2e-0x1e4;const _0x22e47d=_0x22e4();let _0x1c3c6c=_0x22e47d[_0x109b2e];return _0x1c3c6c;}const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x26f289(0x215)]{constructor(){const _0x19704b=_0x26f289;super(),S(this,'_shapes',new Map()),S(this,_0x19704b(0x205),new Set()),S(this,_0x19704b(0x1f6),new Set());}[_0x26f289(0x23c)](_0x416e5f,_0x3437c5,_0x1774f0){const _0x4172f3=_0x26f289,_0x1999cc=new l[(_0x4172f3(0x21c))](_0x416e5f,_0x3437c5,_0x1774f0);return this['_shapes']['set'](_0x3437c5,_0x1999cc),l[_0x4172f3(0x223)](_0x416e5f)&&this[_0x4172f3(0x205)][_0x4172f3(0x22c)](_0x3437c5),_0x1999cc;}[_0x26f289(0x1e5)](_0x216f71){const _0x47e4b4=_0x26f289;var _0x552082,_0x4bdea9;const _0x31d6ed=[];for(const _0x38e590 of this[_0x47e4b4(0x205)]){const _0xa55c7a=this[_0x47e4b4(0x228)][_0x47e4b4(0x235)](_0x38e590);if(_0xa55c7a){const _0x3fe2f0=_0xa55c7a['getShapeRelation']();_0x3fe2f0&&(((_0x552082=_0x3fe2f0[_0x47e4b4(0x20a)])==null?void 0x0:_0x552082[_0x47e4b4(0x1f3)])===_0x216f71&&_0x31d6ed[_0x47e4b4(0x1f7)]({..._0x3fe2f0[_0x47e4b4(0x20a)],'lineShapeId':_0x38e590,'isFrom':!0x0}),((_0x4bdea9=_0x3fe2f0['to'])==null?void 0x0:_0x4bdea9[_0x47e4b4(0x1f3)])===_0x216f71&&_0x31d6ed['push']({..._0x3fe2f0['to'],'lineShapeId':_0x38e590,'isFrom':!0x1}));}}return _0x31d6ed;}['getLineShapeRelation'](_0x1d9323){const _0x42e124=_0x26f289,_0x1d4f2e=this[_0x42e124(0x228)][_0x42e124(0x235)](_0x1d9323);if(_0x1d4f2e)return _0x1d4f2e[_0x42e124(0x246)]();}['getShapeType'](_0x255479){const _0x5a14ab=_0x26f289,_0x2bfdf6=this[_0x5a14ab(0x228)][_0x5a14ab(0x235)](_0x255479);if(_0x2bfdf6)return _0x2bfdf6[_0x5a14ab(0x22a)]();}[_0x26f289(0x1f0)](_0x2f8b7f){const _0x2c1fcf=_0x26f289;return this['_shapes'][_0x2c1fcf(0x1e8)](_0x2f8b7f);}[_0x26f289(0x1fd)](_0x29a1bb){const _0x549c08=_0x26f289,_0x28a739=this['_shapes']['get'](_0x29a1bb);_0x28a739&&(l['isConnectorShape'](_0x28a739['getShapeType']())&&this[_0x549c08(0x205)][_0x549c08(0x1fc)](_0x29a1bb),this['_shapes'][_0x549c08(0x1fc)](_0x29a1bb));}[_0x26f289(0x22b)](){const _0x1653b4=_0x26f289,_0x3a2110=[];return this[_0x1653b4(0x228)][_0x1653b4(0x247)](_0x95b116=>{const _0x2192c2=_0x1653b4;_0x3a2110['push'](_0x95b116[_0x2192c2(0x22b)]());}),_0x3a2110;}[_0x26f289(0x200)](_0x1a98e6){const _0x5db402=_0x26f289;for(const _0x83b4f2 of _0x1a98e6){const {id:_0x3016c4,shapeType:_0x627b0e}=_0x83b4f2,_0x243f7a=this['addShape'](_0x627b0e,_0x3016c4,_0x83b4f2[_0x5db402(0x232)]);_0x243f7a&&_0x243f7a['isLineShape']()&&this[_0x5db402(0x205)][_0x5db402(0x22c)](_0x3016c4);}}['dispose'](){const _0x2922e5=_0x26f289;this[_0x2922e5(0x20e)]||(this[_0x2922e5(0x228)]['forEach'](_0x9a8c14=>{const _0x551d30=_0x2922e5;_0x9a8c14[_0x551d30(0x1f8)]();}),this['_shapes'][_0x2922e5(0x1fa)](),this[_0x2922e5(0x205)][_0x2922e5(0x1fa)](),this[_0x2922e5(0x1f6)][_0x2922e5(0x1fa)](),super[_0x2922e5(0x1f8)]());}}function _0x22e4(){const _0x2a4ca1=['UpdateSheetsShapeTypeCommand','insertShape','addShape','_resourcesManagerService','getShapeTypeById','UpdateSheetsShapeDataMutation','SHEET_SHAPE_PLUGIN','SheetsShapeServices','parse','Plugin','getShapeModel','Inject','getShapeRelation','forEach','params','Module','onStarting','UpdateSheetsShapeTypeMutation','4qgAjXV','IUndoRedoService','getBasicShapeRelation','196636clETsk','14751pluZjs','has','UniverInstanceType','6yeJtuU','UNIVER_SHEET','sheet.mutation.insert-shape','type','keys','227844ypmzlW','hasShape','sheets-shape.config','914285wPvccd','shapeId','registerPluginResource','1492449GxIptk','_groupIds','push','dispose','sheet.mutation.update-shape-type','clear','symbol','delete','removeShape','CommandType','setConfig','fromJSON','_injector','7320FHoCOj','stringify','DependentOn','_linesIds','every','COMMAND','ICommandService','_shapeModelManagerMap','from','registerCommand','_deserializeShapeForUnit','sheet.command.update-shape-type','_disposed','toStringTag','UniverLicensePlugin','setShapeData','set','merge','getShapeData','Disposable','_serializeShapeForUnit','_initCommands','getLineShapeRelation','IResourceManagerService','RemoveSheetsShapeMutation','length','ShapeModel','getBasicShapeType','getOwnPropertyDescriptor','MUTATION','900hohZNK','UniverSheetsShapePlugin','getShapeDataById','isConnectorShape','assign','IConfigService','2YilIcJ','_configService','_shapes','299uUnhre','getShapeType','toJSON','add','disposeWithMe','sheet.mutation.update-shape-data','defineProperty','_initSnapshot','_commandService','shapeData','Injector','2187wsJaeQ','get','10338NzzgTB','pluginName','_ensureShapeModelManager','_config'];_0x22e4=function(){return _0x2a4ca1;};return _0x22e4();}var R=Object[_0x26f289(0x21e)],J=(_0x1e3a2d,_0x53b246,_0x5036c9,_0x47afb3)=>{const _0x4f308b=_0x26f289;for(var _0x455b22=_0x47afb3>0x1?void 0x0:_0x47afb3?R(_0x53b246,_0x5036c9):_0x53b246,_0x2b7cf0=_0x1e3a2d[_0x4f308b(0x21b)]-0x1,_0x221d46;_0x2b7cf0>=0x0;_0x2b7cf0--)(_0x221d46=_0x1e3a2d[_0x2b7cf0])&&(_0x455b22=_0x221d46(_0x455b22)||_0x455b22);return _0x455b22;},j=(_0x4b89c4,_0x591bba)=>(_0x1b11a0,_0x541024)=>_0x591bba(_0x1b11a0,_0x541024,_0x4b89c4);const w=_0x26f289(0x240);exports[_0x26f289(0x241)]=class extends p[_0x26f289(0x215)]{constructor(_0x436963){const _0x2d82a9=_0x26f289;super(),S(this,_0x2d82a9(0x209),new Map()),(this[_0x2d82a9(0x23d)]=_0x436963,this['_initSnapshot']());}[_0x26f289(0x238)](_0x1f0e6b,_0x29c8ed){const _0x16ae9a=_0x26f289;let _0x598413=this[_0x16ae9a(0x209)][_0x16ae9a(0x235)](_0x1f0e6b);_0x598413||(_0x598413=new Map(),this[_0x16ae9a(0x209)][_0x16ae9a(0x212)](_0x1f0e6b,_0x598413));let _0x44ac58=_0x598413[_0x16ae9a(0x235)](_0x29c8ed);return _0x44ac58||(_0x44ac58=new f(),_0x598413[_0x16ae9a(0x212)](_0x29c8ed,_0x44ac58)),_0x44ac58;}[_0x26f289(0x23b)](_0x397721,_0x1b9d68,_0x53f198,_0x37489b,_0x5891d3){const _0x5bc3ab=_0x26f289;this[_0x5bc3ab(0x238)](_0x397721,_0x1b9d68)['addShape'](_0x53f198,_0x37489b,_0x5891d3);}[_0x26f289(0x1fd)](_0x323118,_0x50d5fa,_0x1b4600){this['_ensureShapeModelManager'](_0x323118,_0x50d5fa)['removeShape'](_0x1b4600);}[_0x26f289(0x21d)](_0x2ab649,_0xa3f435,_0x10c031){const _0xdb7360=_0x26f289;return this[_0xdb7360(0x238)](_0x2ab649,_0xa3f435)[_0xdb7360(0x22a)](_0x10c031);}[_0x26f289(0x22a)](_0x339630,_0x315c1f,_0x1ada81){const _0x1d8c2a=_0x26f289;return this[_0x1d8c2a(0x238)](_0x339630,_0x315c1f)[_0x1d8c2a(0x22a)](_0x1ada81);}[_0x26f289(0x1f0)](_0x1dc7e0,_0x31a2ba,_0x1d78cf){const _0x455ca1=_0x26f289;return this[_0x455ca1(0x238)](_0x1dc7e0,_0x31a2ba)[_0x455ca1(0x1f0)](_0x1d78cf);}[_0x26f289(0x23e)](_0x5b33fb,_0x51fe8c,_0xd86506){const _0xabf02e=_0x26f289;return this['_ensureShapeModelManager'](_0x5b33fb,_0x51fe8c)[_0xabf02e(0x22a)](_0xd86506);}[_0x26f289(0x222)](_0x51f19c,_0x3baa9a,_0xfcdff8){const _0x500353=_0x26f289,_0x42c88e=this[_0x500353(0x238)](_0x51f19c,_0x3baa9a);if(!_0x42c88e[_0x500353(0x22a)](_0xfcdff8))return;const _0x478c1a=_0x42c88e[_0x500353(0x228)][_0x500353(0x235)](_0xfcdff8);if(_0x478c1a)return _0x478c1a[_0x500353(0x214)]();}[_0x26f289(0x244)](_0x368b8e,_0x5d8553,_0x518afa){const _0x3bba22=_0x26f289;return this[_0x3bba22(0x238)](_0x368b8e,_0x5d8553)[_0x3bba22(0x228)]['get'](_0x518afa);}[_0x26f289(0x1e5)](_0x23e1ef,_0x33d773,_0x7e393e){const _0x3a15dd=_0x26f289;return this[_0x3a15dd(0x238)](_0x23e1ef,_0x33d773)[_0x3a15dd(0x1e5)](_0x7e393e);}[_0x26f289(0x218)](_0x310c27,_0x5326a2,_0xb0635d){const _0x22b912=this['_ensureShapeModelManager'](_0x310c27,_0x5326a2)['_shapes']['get'](_0xb0635d);if(_0x22b912)return _0x22b912['getShapeRelation']();}['setShapeType'](){}[_0x26f289(0x216)](_0x18c2db){const _0x4300bc=_0x26f289,_0xe290d7={},_0x25f77a=this[_0x4300bc(0x209)][_0x4300bc(0x235)](_0x18c2db);return _0x25f77a&&_0x25f77a[_0x4300bc(0x247)]((_0x251075,_0x5c23da)=>{const _0x4d7913=_0x4300bc;_0xe290d7[_0x5c23da]=_0x251075[_0x4d7913(0x22b)]();}),JSON[_0x4300bc(0x203)](_0xe290d7);}[_0x26f289(0x20c)](_0x74bfb6,_0x2a7c4c){const _0x591939=_0x26f289;Object[_0x591939(0x1ee)](_0x2a7c4c)[_0x591939(0x247)](_0x257fc0=>{const _0x50b5b7=_0x591939;this[_0x50b5b7(0x238)](_0x74bfb6,_0x257fc0)[_0x50b5b7(0x200)](_0x2a7c4c[_0x257fc0]);});}[_0x26f289(0x22b)](){const _0x3ec542=_0x26f289,_0x22bdda={};return this[_0x3ec542(0x209)][_0x3ec542(0x247)]((_0xa85b8a,_0x37827b)=>{const _0x4881ef=_0x3ec542;_0x22bdda[_0x37827b]={},_0xa85b8a[_0x4881ef(0x247)]((_0x1d440c,_0x194691)=>{const _0x22c333=_0x4881ef;_0x22bdda[_0x37827b][_0x194691]=_0x1d440c[_0x22c333(0x22b)]();});}),_0x22bdda;}[_0x26f289(0x200)](_0x18719b){const _0x2497b7=_0x26f289;Object[_0x2497b7(0x1ee)](_0x18719b)[_0x2497b7(0x247)](_0x945b57=>{const _0x2f972f=_0x2497b7,_0x545961=_0x18719b[_0x945b57];Object['keys'](_0x545961)[_0x2f972f(0x247)](_0xdd4651=>{const _0x4128fd=_0x2f972f;this['_ensureShapeModelManager'](_0x945b57,_0xdd4651)[_0x4128fd(0x200)](_0x545961[_0xdd4651]);});});}[_0x26f289(0x230)](){const _0x5baa71=_0x26f289;this['_resourcesManagerService'][_0x5baa71(0x1f4)]({'pluginName':w,'businesses':[p[_0x5baa71(0x1e9)]['UNIVER_SHEET']],'toJson':_0x549aa9=>this[_0x5baa71(0x216)](_0x549aa9),'parseJson':_0x95d01d=>JSON[_0x5baa71(0x242)](_0x95d01d),'onLoad':(_0x49c166,_0x328cfd)=>{const _0x2a50f9=_0x5baa71;this[_0x2a50f9(0x20c)](_0x49c166,_0x328cfd);},'onUnLoad':_0x4ea409=>{const _0x256624=_0x5baa71,_0x5cf46c=this[_0x256624(0x209)][_0x256624(0x235)](_0x4ea409);_0x5cf46c&&(_0x5cf46c[_0x256624(0x247)](_0x2649b2=>{const _0x258d92=_0x256624;_0x2649b2[_0x258d92(0x1f8)]();}),this[_0x256624(0x209)][_0x256624(0x1fc)](_0x4ea409));}});}[_0x26f289(0x1f8)](){const _0x3f6021=_0x26f289;this[_0x3f6021(0x209)][_0x3f6021(0x247)](_0xde9ebf=>{const _0x17c999=_0x3f6021;_0xde9ebf[_0x17c999(0x247)](_0x4a6954=>{const _0x50ae45=_0x17c999;_0x4a6954[_0x50ae45(0x1f8)]();});});}},exports[_0x26f289(0x241)]=J([j(0x0,p[_0x26f289(0x219)])],exports[_0x26f289(0x241)]);const d={'id':_0x26f289(0x1f9),'type':p[_0x26f289(0x1fe)]['MUTATION'],'handler':(_0x55a3d9,_0x545103)=>{const _0x199943=_0x26f289,{unitId:_0x14d828,subUnitId:_0x2e8698,shapeType:_0x3291d4,shapeId:_0x347ce1,shapeData:_0x4f3b22}=_0x545103,_0x489711=_0x55a3d9[_0x199943(0x235)](exports['SheetsShapeServices'])[_0x199943(0x244)](_0x14d828,_0x2e8698,_0x347ce1);return _0x489711&&(_0x489711['setShapeType'](_0x3291d4),_0x4f3b22&&(_0x489711==null||_0x489711[_0x199943(0x211)](_0x4f3b22))),!0x0;}},H={'id':_0x26f289(0x20d),'type':p[_0x26f289(0x1fe)][_0x26f289(0x207)],'handler':(_0x121821,_0x525352)=>{const _0x44b62a=_0x26f289;if(!_0x525352)return!0x1;const _0x51d213=_0x121821[_0x44b62a(0x235)](p['ICommandService']),_0x5c8c20=_0x121821[_0x44b62a(0x235)](exports[_0x44b62a(0x241)]),_0x4fdf9e=_0x121821[_0x44b62a(0x235)](p[_0x44b62a(0x1e4)]),_0x315c52=[],_0x3b90ea=[],{unitId:_0x5e73cd,subUnitId:_0x4dcd3d,shapeId:_0x516bfe,shapeType:_0xb1016c,shapeData:_0x190203}=_0x525352,_0x400c64=_0x5c8c20[_0x44b62a(0x244)](_0x5e73cd,_0x4dcd3d,_0x516bfe);if(_0x400c64){const _0x381aff=_0x400c64[_0x44b62a(0x22a)](),_0x3256f1=Object[_0x44b62a(0x224)]({},_0x400c64[_0x44b62a(0x214)]()),_0x57dcb6={'unitId':_0x5e73cd,'subUnitId':_0x4dcd3d,'shapeId':_0x516bfe,'shapeType':_0xb1016c,'shapeData':_0x190203},_0x2cccd2={'unitId':_0x5e73cd,'subUnitId':_0x4dcd3d,'shapeId':_0x516bfe,'shapeType':_0x381aff,'shapeData':_0x3256f1};return _0x315c52[_0x44b62a(0x1f7)]({'id':d['id'],'params':_0x57dcb6}),_0x3b90ea[_0x44b62a(0x1f7)]({'id':d['id'],'params':_0x2cccd2}),_0x315c52[_0x44b62a(0x206)](_0xfd9701=>_0x51d213['syncExecuteCommand'](_0xfd9701['id'],_0xfd9701[_0x44b62a(0x248)]))&&_0x4fdf9e['pushUndoRedo']({'unitID':_0x5e73cd,'redoMutations':[..._0x315c52],'undoMutations':[..._0x3b90ea]}),!0x0;}return!0x1;}},m={'id':_0x26f289(0x1ec),'type':p[_0x26f289(0x1fe)][_0x26f289(0x21f)],'handler':(_0x11f5c0,_0x5cfe59)=>{const _0x207b82=_0x26f289,{unitId:_0x860b7a,subUnitId:_0x5ea094,shapeType:_0x160bd6,shapeId:_0xf5bb50,shapeData:_0x2361d1}=_0x5cfe59;return _0x11f5c0[_0x207b82(0x235)](exports[_0x207b82(0x241)])['insertShape'](_0x860b7a,_0x5ea094,_0x160bd6,_0xf5bb50,_0x2361d1),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p[_0x26f289(0x1fe)][_0x26f289(0x21f)],'handler':(_0x1da301,_0xdbb895)=>{const _0x5408a8=_0x26f289,{unitId:_0x2ea236,subUnitId:_0x19a417,shapeId:_0x48025f}=_0xdbb895;return _0x1da301[_0x5408a8(0x235)](exports[_0x5408a8(0x241)])[_0x5408a8(0x1fd)](_0x2ea236,_0x19a417,_0x48025f),!0x0;}},y={'id':_0x26f289(0x22e),'type':p[_0x26f289(0x1fe)][_0x26f289(0x21f)],'handler':(_0x4b1d89,_0x18f1f5)=>{const _0x4a3f53=_0x26f289,{unitId:_0x456392,subUnitId:_0x4750aa,shapeType:_0x40020e,shapeId:_0x19fdca,shapeData:_0x28a0a9}=_0x18f1f5,_0x506193=_0x4b1d89[_0x4a3f53(0x235)](exports[_0x4a3f53(0x241)])['getShapeModel'](_0x456392,_0x4750aa,_0x19fdca);return _0x506193&&(_0x40020e!==void 0x0&&_0x506193['setShapeType'](_0x40020e),_0x28a0a9&&(_0x506193==null||_0x506193['setShapeData'](_0x28a0a9,!0x0))),!0x0;}},A=_0x26f289(0x1f1),_={};var L=Object[_0x26f289(0x22f)],F=Object['getOwnPropertyDescriptor'],B=(_0x228e18,_0xdc0c60,_0x1ca4b7)=>_0xdc0c60 in _0x228e18?L(_0x228e18,_0xdc0c60,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ca4b7}):_0x228e18[_0xdc0c60]=_0x1ca4b7,G=(_0x49c1b4,_0x429bee,_0x5bcd2c,_0x59c7d0)=>{const _0x3cd0c5=_0x26f289;for(var _0x46e93a=_0x59c7d0>0x1?void 0x0:_0x59c7d0?F(_0x429bee,_0x5bcd2c):_0x429bee,_0x30eec0=_0x49c1b4[_0x3cd0c5(0x21b)]-0x1,_0x57ac5b;_0x30eec0>=0x0;_0x30eec0--)(_0x57ac5b=_0x49c1b4[_0x30eec0])&&(_0x46e93a=_0x57ac5b(_0x46e93a)||_0x46e93a);return _0x46e93a;},g=(_0x5d3f4a,_0x3751f4)=>(_0x1d9c0c,_0x5c6171)=>_0x3751f4(_0x1d9c0c,_0x5c6171,_0x5d3f4a),T=(_0x46727e,_0x37795e,_0x4189f7)=>B(_0x46727e,typeof _0x37795e!=_0x26f289(0x1fb)?_0x37795e+'':_0x37795e,_0x4189f7);const x=_0x26f289(0x240);exports['UniverSheetsShapePlugin']=class extends p[_0x26f289(0x243)]{constructor(_0x945fe0=_,_0xe6bb26,_0x169820,_0x1cde1b){const _0x463e03=_0x26f289;super(),this[_0x463e03(0x239)]=_0x945fe0,this[_0x463e03(0x201)]=_0xe6bb26,this[_0x463e03(0x231)]=_0x169820,this['_configService']=_0x1cde1b;const {..._0x9f469a}=p[_0x463e03(0x213)]({},_,this['_config']);this[_0x463e03(0x227)][_0x463e03(0x1ff)](A,_0x9f469a),this[_0x463e03(0x217)]();}['onRendered'](){p['touchDependencies'](this['_injector'],[]);}[_0x26f289(0x24a)](){const _0x338c86=_0x26f289,_0x3c78cb=this[_0x338c86(0x201)];[[f],[exports['SheetsShapeServices']]][_0x338c86(0x247)](_0x37777c=>_0x3c78cb[_0x338c86(0x22c)](_0x37777c));}[_0x26f289(0x217)](){const _0x512e09=_0x26f289;[m,v,d,y]['forEach'](_0x288ea9=>this[_0x512e09(0x22d)](this[_0x512e09(0x231)][_0x512e09(0x20b)](_0x288ea9)));}},T(exports['UniverSheetsShapePlugin'],_0x26f289(0x1ed),p[_0x26f289(0x1e9)][_0x26f289(0x1eb)]),T(exports[_0x26f289(0x221)],_0x26f289(0x237),x),exports[_0x26f289(0x221)]=G([p[_0x26f289(0x204)](b[_0x26f289(0x210)]),g(0x1,p[_0x26f289(0x245)](p[_0x26f289(0x233)])),g(0x2,p[_0x26f289(0x208)]),g(0x3,p[_0x26f289(0x225)])],exports[_0x26f289(0x221)]),exports['InsertSheetsShapeMutation']=m,exports[_0x26f289(0x21a)]=v,exports[_0x26f289(0x23f)]=y,exports[_0x26f289(0x23a)]=H,exports[_0x26f289(0x24b)]=d;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x32aef0=_0x57ee;(function(_0x8501d4,_0x4323bf){const _0x2da121=_0x57ee,_0x4bd264=_0x8501d4();while(!![]){try{const _0x429e75=parseInt(_0x2da121(0xde))/0x1+parseInt(_0x2da121(0xdc))/0x2*(parseInt(_0x2da121(0xd9))/0x3)+parseInt(_0x2da121(0xd2))/0x4+parseInt(_0x2da121(0x107))/0x5*(-parseInt(_0x2da121(0xf1))/0x6)+parseInt(_0x2da121(0xe4))/0x7*(-parseInt(_0x2da121(0xc4))/0x8)+-parseInt(_0x2da121(0xda))/0x9+parseInt(_0x2da121(0xce))/0xa;if(_0x429e75===_0x4323bf)break;else _0x4bd264['push'](_0x4bd264['shift']());}catch(_0x463e08){_0x4bd264['push'](_0x4bd264['shift']());}}}(_0x3e5c,0xad443));var R=Object[_0x32aef0(0xc2)],C=(_0x553e93,_0x2c3e58,_0xc1f51b)=>_0x2c3e58 in _0x553e93?R(_0x553e93,_0x2c3e58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc1f51b}):_0x553e93[_0x2c3e58]=_0xc1f51b,d=(_0x3092ee,_0x31d5bd,_0x2f0751)=>C(_0x3092ee,typeof _0x31d5bd!='symbol'?_0x31d5bd+'':_0x31d5bd,_0x2f0751);import{Disposable as _0x1b7929,UniverInstanceType as _0x3c491f,IResourceManagerService as _0x2d4a9e,CommandType as _0x410a5c,ICommandService as _0x551765,IUndoRedoService as _0x3f436f,DependentOn as _0x599e8b,Inject as _0x4120bf,Injector as _0x2af51e,Plugin as _0x45c26e,merge as _0x294386,touchDependencies as _0x21ab27,IConfigService as _0x262b41}from'@univerjs/core';import{ShapeModel as _0x28cf4a,isConnectorShape as _0x4c3174}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x496812}from'@univerjs-pro/license';class T extends _0x1b7929{constructor(){const _0x399c81=_0x32aef0;super(),d(this,_0x399c81(0xcd),new Map()),d(this,_0x399c81(0xc6),new Set()),d(this,_0x399c81(0xf7),new Set());}[_0x32aef0(0xd7)](_0x43b3a8,_0x469af8,_0x4c4c2c){const _0x45a353=_0x32aef0,_0x504adc=new _0x28cf4a(_0x43b3a8,_0x469af8,_0x4c4c2c);return this[_0x45a353(0xcd)]['set'](_0x469af8,_0x504adc),_0x4c3174(_0x43b3a8)&&this[_0x45a353(0xc6)][_0x45a353(0xcc)](_0x469af8),_0x504adc;}[_0x32aef0(0xe9)](_0x567f5a){const _0x1d1b4a=_0x32aef0;var _0x59a6d7,_0x14089f;const _0x3ad33e=[];for(const _0x111c2d of this[_0x1d1b4a(0xc6)]){const _0x8cee8c=this['_shapes']['get'](_0x111c2d);if(_0x8cee8c){const _0xad45c8=_0x8cee8c[_0x1d1b4a(0xcf)]();_0xad45c8&&(((_0x59a6d7=_0xad45c8['from'])==null?void 0x0:_0x59a6d7['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['from'],'lineShapeId':_0x111c2d,'isFrom':!0x0}),((_0x14089f=_0xad45c8['to'])==null?void 0x0:_0x14089f['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['to'],'lineShapeId':_0x111c2d,'isFrom':!0x1}));}}return _0x3ad33e;}[_0x32aef0(0xc7)](_0x5a8035){const _0x53c984=_0x32aef0,_0x3d4d07=this['_shapes'][_0x53c984(0xdb)](_0x5a8035);if(_0x3d4d07)return _0x3d4d07[_0x53c984(0xcf)]();}[_0x32aef0(0x101)](_0x588807){const _0x315f94=_0x32aef0,_0x29654f=this[_0x315f94(0xcd)][_0x315f94(0xdb)](_0x588807);if(_0x29654f)return _0x29654f[_0x315f94(0x101)]();}[_0x32aef0(0x108)](_0x377110){const _0x5432ad=_0x32aef0;return this[_0x5432ad(0xcd)][_0x5432ad(0xe8)](_0x377110);}[_0x32aef0(0xc8)](_0x2bb546){const _0x3ebad0=_0x32aef0,_0x17de21=this['_shapes']['get'](_0x2bb546);_0x17de21&&(_0x4c3174(_0x17de21[_0x3ebad0(0x101)]())&&this[_0x3ebad0(0xc6)][_0x3ebad0(0xf8)](_0x2bb546),this[_0x3ebad0(0xcd)][_0x3ebad0(0xf8)](_0x2bb546));}[_0x32aef0(0xe2)](){const _0x4fe235=_0x32aef0,_0x4d3db8=[];return this[_0x4fe235(0xcd)][_0x4fe235(0xca)](_0xab0f10=>{const _0x46c330=_0x4fe235;_0x4d3db8[_0x46c330(0xff)](_0xab0f10[_0x46c330(0xe2)]());}),_0x4d3db8;}['fromJSON'](_0x3db539){const _0x3404f2=_0x32aef0;for(const _0x5f3e91 of _0x3db539){const {id:_0x379eef,shapeType:_0x2747a8}=_0x5f3e91,_0x4403bc=this['addShape'](_0x2747a8,_0x379eef,_0x5f3e91['shapeData']);_0x4403bc&&_0x4403bc['isLineShape']()&&this[_0x3404f2(0xc6)][_0x3404f2(0xcc)](_0x379eef);}}[_0x32aef0(0xcb)](){const _0x235fc5=_0x32aef0;this[_0x235fc5(0xe6)]||(this[_0x235fc5(0xcd)][_0x235fc5(0xca)](_0x203d7b=>{_0x203d7b['dispose']();}),this[_0x235fc5(0xcd)][_0x235fc5(0xf6)](),this[_0x235fc5(0xc6)][_0x235fc5(0xf6)](),this[_0x235fc5(0xf7)][_0x235fc5(0xf6)](),super[_0x235fc5(0xcb)]());}}var $=Object['getOwnPropertyDescriptor'],V=(_0x384a3b,_0x45b26b,_0x4a396e,_0x24160e)=>{const _0x4b8861=_0x32aef0;for(var _0x1d704b=_0x24160e>0x1?void 0x0:_0x24160e?$(_0x45b26b,_0x4a396e):_0x45b26b,_0x8b0fc=_0x384a3b[_0x4b8861(0xf5)]-0x1,_0x555b4b;_0x8b0fc>=0x0;_0x8b0fc--)(_0x555b4b=_0x384a3b[_0x8b0fc])&&(_0x1d704b=_0x555b4b(_0x1d704b)||_0x1d704b);return _0x1d704b;},K=(_0x23b593,_0x58f14b)=>(_0x1b64c7,_0x28f4d5)=>_0x58f14b(_0x1b64c7,_0x28f4d5,_0x23b593);function _0x3e5c(){const _0x1d27ea=['8YDBklV','sheet.mutation.insert-shape','_linesIds','getLineShapeRelation','removeShape','_initSnapshot','forEach','dispose','add','_shapes','23541900fidpoa','getShapeRelation','assign','parse','2630268mcRwyh','symbol','_shapeModelManagerMap','insertShape','stringify','addShape','MUTATION','1647VWrLgW','8643582hUXiqH','get','946KZHwLe','registerPluginResource','219918ElgolZ','type','_deserializeShapeForUnit','keys','toJSON','fromJSON','6610779qxKggs','setShapeType','_disposed','COMMAND','has','getBasicShapeRelation','UNIVER_SHEET','setShapeData','_initCommands','_ensureShapeModelManager','params','getShapeData','getBasicShapeType','36DOwkaR','set','onStarting','sheet.mutation.update-shape-data','length','clear','_groupIds','delete','SHEET_SHAPE_PLUGIN','_commandService','sheet.mutation.remove-shape','setConfig','every','getShapeTypeById','push','onRendered','getShapeType','_serializeShapeForUnit','_injector','_resourcesManagerService','getShapeDataById','disposeWithMe','730715OYOBYw','hasShape','_configService','sheet.mutation.update-shape-type','getShapeModel','syncExecuteCommand','sheets-shape.config','defineProperty','_config'];_0x3e5c=function(){return _0x1d27ea;};return _0x3e5c();}const W=_0x32aef0(0xf9);let i=class extends _0x1b7929{constructor(_0x3ccba5){const _0x4ce6c2=_0x32aef0;super(),d(this,_0x4ce6c2(0xd4),new Map()),(this[_0x4ce6c2(0x104)]=_0x3ccba5,this['_initSnapshot']());}[_0x32aef0(0xed)](_0x4e898d,_0x382c6d){const _0x4a2b00=_0x32aef0;let _0x198b6a=this['_shapeModelManagerMap'][_0x4a2b00(0xdb)](_0x4e898d);_0x198b6a||(_0x198b6a=new Map(),this[_0x4a2b00(0xd4)]['set'](_0x4e898d,_0x198b6a));let _0x3e8260=_0x198b6a['get'](_0x382c6d);return _0x3e8260||(_0x3e8260=new T(),_0x198b6a[_0x4a2b00(0xf2)](_0x382c6d,_0x3e8260)),_0x3e8260;}['insertShape'](_0x16ae95,_0x1c10d7,_0x41d3bd,_0x41b08a,_0x1464b6){const _0x4edcb6=_0x32aef0;this[_0x4edcb6(0xed)](_0x16ae95,_0x1c10d7)[_0x4edcb6(0xd7)](_0x41d3bd,_0x41b08a,_0x1464b6);}[_0x32aef0(0xc8)](_0x1dc442,_0x37b7f6,_0x2c6647){const _0x8915c=_0x32aef0;this[_0x8915c(0xed)](_0x1dc442,_0x37b7f6)[_0x8915c(0xc8)](_0x2c6647);}[_0x32aef0(0xf0)](_0x5f57ca,_0x1a5805,_0x22ae27){return this['_ensureShapeModelManager'](_0x5f57ca,_0x1a5805)['getShapeType'](_0x22ae27);}[_0x32aef0(0x101)](_0x69cfb8,_0x5d415e,_0x1c40d1){const _0x3c6006=_0x32aef0;return this[_0x3c6006(0xed)](_0x69cfb8,_0x5d415e)[_0x3c6006(0x101)](_0x1c40d1);}[_0x32aef0(0x108)](_0x5d56cb,_0x113a57,_0x34bd93){const _0x155279=_0x32aef0;return this[_0x155279(0xed)](_0x5d56cb,_0x113a57)[_0x155279(0x108)](_0x34bd93);}[_0x32aef0(0xfe)](_0x466c2a,_0x27c6fd,_0xbcd9c3){return this['_ensureShapeModelManager'](_0x466c2a,_0x27c6fd)['getShapeType'](_0xbcd9c3);}[_0x32aef0(0x105)](_0x569831,_0x542d0d,_0x3247c5){const _0x8196d2=_0x32aef0,_0x32595a=this[_0x8196d2(0xed)](_0x569831,_0x542d0d);if(!_0x32595a[_0x8196d2(0x101)](_0x3247c5))return;const _0x1154ef=_0x32595a[_0x8196d2(0xcd)][_0x8196d2(0xdb)](_0x3247c5);if(_0x1154ef)return _0x1154ef[_0x8196d2(0xef)]();}[_0x32aef0(0x10b)](_0x5641fd,_0x26dcb0,_0xd8e4a8){const _0x34937f=_0x32aef0;return this['_ensureShapeModelManager'](_0x5641fd,_0x26dcb0)[_0x34937f(0xcd)][_0x34937f(0xdb)](_0xd8e4a8);}['getBasicShapeRelation'](_0x170aea,_0x3cf063,_0x3c2d57){const _0x3e8d2d=_0x32aef0;return this[_0x3e8d2d(0xed)](_0x170aea,_0x3cf063)[_0x3e8d2d(0xe9)](_0x3c2d57);}[_0x32aef0(0xc7)](_0x3f5673,_0x34c5b6,_0x21994b){const _0xe51766=_0x32aef0,_0x4668d0=this['_ensureShapeModelManager'](_0x3f5673,_0x34c5b6)[_0xe51766(0xcd)][_0xe51766(0xdb)](_0x21994b);if(_0x4668d0)return _0x4668d0[_0xe51766(0xcf)]();}['setShapeType'](){}[_0x32aef0(0x102)](_0x509e44){const _0x440670=_0x32aef0,_0x4fc88c={},_0x2d5290=this[_0x440670(0xd4)][_0x440670(0xdb)](_0x509e44);return _0x2d5290&&_0x2d5290[_0x440670(0xca)]((_0x27bba1,_0x9ccdb9)=>{const _0x36b165=_0x440670;_0x4fc88c[_0x9ccdb9]=_0x27bba1[_0x36b165(0xe2)]();}),JSON[_0x440670(0xd6)](_0x4fc88c);}[_0x32aef0(0xe0)](_0x5ea173,_0x4bb146){const _0x49feec=_0x32aef0;Object[_0x49feec(0xe1)](_0x4bb146)[_0x49feec(0xca)](_0x33e5d6=>{const _0x21b46b=_0x49feec;this['_ensureShapeModelManager'](_0x5ea173,_0x33e5d6)[_0x21b46b(0xe3)](_0x4bb146[_0x33e5d6]);});}[_0x32aef0(0xe2)](){const _0x5e8782=_0x32aef0,_0x50786c={};return this[_0x5e8782(0xd4)]['forEach']((_0x1d3999,_0x21bde4)=>{_0x50786c[_0x21bde4]={},_0x1d3999['forEach']((_0x2c5e79,_0x2138cd)=>{const _0x374e97=_0x57ee;_0x50786c[_0x21bde4][_0x2138cd]=_0x2c5e79[_0x374e97(0xe2)]();});}),_0x50786c;}[_0x32aef0(0xe3)](_0x1d28ff){const _0x250624=_0x32aef0;Object['keys'](_0x1d28ff)[_0x250624(0xca)](_0x34a2b5=>{const _0x423810=_0x250624,_0x35763f=_0x1d28ff[_0x34a2b5];Object[_0x423810(0xe1)](_0x35763f)['forEach'](_0x52d1c9=>{const _0x42e564=_0x423810;this[_0x42e564(0xed)](_0x34a2b5,_0x52d1c9)['fromJSON'](_0x35763f[_0x52d1c9]);});});}[_0x32aef0(0xc9)](){const _0x2f25ce=_0x32aef0;this[_0x2f25ce(0x104)][_0x2f25ce(0xdd)]({'pluginName':W,'businesses':[_0x3c491f['UNIVER_SHEET']],'toJson':_0xf6464d=>this[_0x2f25ce(0x102)](_0xf6464d),'parseJson':_0xc14b0b=>JSON[_0x2f25ce(0xd1)](_0xc14b0b),'onLoad':(_0x3a3a55,_0x110155)=>{const _0x377bbe=_0x2f25ce;this[_0x377bbe(0xe0)](_0x3a3a55,_0x110155);},'onUnLoad':_0x5e1cc3=>{const _0x46fdee=_0x2f25ce,_0x279c43=this[_0x46fdee(0xd4)]['get'](_0x5e1cc3);_0x279c43&&(_0x279c43['forEach'](_0x265f76=>{_0x265f76['dispose']();}),this['_shapeModelManagerMap'][_0x46fdee(0xf8)](_0x5e1cc3));}});}['dispose'](){const _0x5cf42c=_0x32aef0;this[_0x5cf42c(0xd4)][_0x5cf42c(0xca)](_0x2848fe=>{_0x2848fe['forEach'](_0x4bef1a=>{const _0x77c65f=_0x57ee;_0x4bef1a[_0x77c65f(0xcb)]();});});}};i=V([K(0x0,_0x2d4a9e)],i);const u={'id':_0x32aef0(0x10a),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x13ffb3,_0x4890f0)=>{const _0x457edd=_0x32aef0,{unitId:_0x24facf,subUnitId:_0x29fe74,shapeType:_0x3d7675,shapeId:_0x2d6892,shapeData:_0x1aecc4}=_0x4890f0,_0x533b3b=_0x13ffb3['get'](i)[_0x457edd(0x10b)](_0x24facf,_0x29fe74,_0x2d6892);return _0x533b3b&&(_0x533b3b[_0x457edd(0xe5)](_0x3d7675),_0x1aecc4&&(_0x533b3b==null||_0x533b3b[_0x457edd(0xeb)](_0x1aecc4))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x410a5c[_0x32aef0(0xe7)],'handler':(_0x25b8ba,_0x5264db)=>{const _0x2b44b7=_0x32aef0;if(!_0x5264db)return!0x1;const _0x450707=_0x25b8ba[_0x2b44b7(0xdb)](_0x551765),_0x36223c=_0x25b8ba[_0x2b44b7(0xdb)](i),_0x150224=_0x25b8ba[_0x2b44b7(0xdb)](_0x3f436f),_0x319688=[],_0x28df01=[],{unitId:_0x28a48c,subUnitId:_0xe605e1,shapeId:_0x384512,shapeType:_0x1f874f,shapeData:_0x248948}=_0x5264db,_0x28b8bd=_0x36223c[_0x2b44b7(0x10b)](_0x28a48c,_0xe605e1,_0x384512);if(_0x28b8bd){const _0x29001f=_0x28b8bd[_0x2b44b7(0x101)](),_0x524e61=Object[_0x2b44b7(0xd0)]({},_0x28b8bd['getShapeData']()),_0x26ad02={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x1f874f,'shapeData':_0x248948},_0x4993c5={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x29001f,'shapeData':_0x524e61};return _0x319688[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x26ad02}),_0x28df01[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x4993c5}),_0x319688[_0x2b44b7(0xfd)](_0x6e6549=>_0x450707[_0x2b44b7(0x10c)](_0x6e6549['id'],_0x6e6549[_0x2b44b7(0xee)]))&&_0x150224['pushUndoRedo']({'unitID':_0x28a48c,'redoMutations':[..._0x319688],'undoMutations':[..._0x28df01]}),!0x0;}return!0x1;}},Y={'id':_0x32aef0(0xc5),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x451a8e,_0x2573d1)=>{const _0x5d51be=_0x32aef0,{unitId:_0x12a98a,subUnitId:_0x399d82,shapeType:_0x2df3df,shapeId:_0x1adaed,shapeData:_0x2a69cc}=_0x2573d1;return _0x451a8e['get'](i)[_0x5d51be(0xd5)](_0x12a98a,_0x399d82,_0x2df3df,_0x1adaed,_0x2a69cc),!0x0;}},q={'id':_0x32aef0(0xfb),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x3f7067,_0x580ce4)=>{const _0x178f5d=_0x32aef0,{unitId:_0xcaec98,subUnitId:_0x39b507,shapeId:_0x3e1cfc}=_0x580ce4;return _0x3f7067[_0x178f5d(0xdb)](i)['removeShape'](_0xcaec98,_0x39b507,_0x3e1cfc),!0x0;}},Q={'id':_0x32aef0(0xf4),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x30c1d5,_0x509190)=>{const _0x18de6d=_0x32aef0,{unitId:_0x2f44cd,subUnitId:_0x1ef2d8,shapeType:_0x20ec7b,shapeId:_0x51fd96,shapeData:_0x4f1f1f}=_0x509190,_0x538c9a=_0x30c1d5[_0x18de6d(0xdb)](i)['getShapeModel'](_0x2f44cd,_0x1ef2d8,_0x51fd96);return _0x538c9a&&(_0x20ec7b!==void 0x0&&_0x538c9a['setShapeType'](_0x20ec7b),_0x4f1f1f&&(_0x538c9a==null||_0x538c9a['setShapeData'](_0x4f1f1f,!0x0))),!0x0;}},X=_0x32aef0(0x10d),m={};var Z=Object['defineProperty'],k=Object['getOwnPropertyDescriptor'],ee=(_0x3da2e4,_0x229cea,_0x51bd15)=>_0x229cea in _0x3da2e4?Z(_0x3da2e4,_0x229cea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51bd15}):_0x3da2e4[_0x229cea]=_0x51bd15,ae=(_0x474b1d,_0x520a1d,_0x4e4569,_0x21bd16)=>{const _0x226701=_0x32aef0;for(var _0x3bd911=_0x21bd16>0x1?void 0x0:_0x21bd16?k(_0x520a1d,_0x4e4569):_0x520a1d,_0x3fe082=_0x474b1d[_0x226701(0xf5)]-0x1,_0x16eeb3;_0x3fe082>=0x0;_0x3fe082--)(_0x16eeb3=_0x474b1d[_0x3fe082])&&(_0x3bd911=_0x16eeb3(_0x3bd911)||_0x3bd911);return _0x3bd911;},g=(_0x68e634,_0x54b9db)=>(_0x242723,_0x328e89)=>_0x54b9db(_0x242723,_0x328e89,_0x68e634),E=(_0x44e15b,_0x2c6f78,_0x1a9adb)=>ee(_0x44e15b,typeof _0x2c6f78!=_0x32aef0(0xd3)?_0x2c6f78+'':_0x2c6f78,_0x1a9adb);const se=_0x32aef0(0xf9);function _0x57ee(_0x529e01,_0x39af73){_0x529e01=_0x529e01-0xc2;const _0x3e5c70=_0x3e5c();let _0x57ee83=_0x3e5c70[_0x529e01];return _0x57ee83;}let S=class extends _0x45c26e{constructor(_0x13cd77=m,_0x23e8e5,_0x2d070d,_0x5469bb){const _0x5f19f3=_0x32aef0;super(),this[_0x5f19f3(0xc3)]=_0x13cd77,this['_injector']=_0x23e8e5,this['_commandService']=_0x2d070d,this[_0x5f19f3(0x109)]=_0x5469bb;const {..._0x204786}=_0x294386({},m,this[_0x5f19f3(0xc3)]);this[_0x5f19f3(0x109)][_0x5f19f3(0xfc)](X,_0x204786),this[_0x5f19f3(0xec)]();}[_0x32aef0(0x100)](){const _0x192bbc=_0x32aef0;_0x21ab27(this[_0x192bbc(0x103)],[]);}[_0x32aef0(0xf3)](){const _0x177c3c=_0x32aef0,_0x5ef7df=this[_0x177c3c(0x103)];[[T],[i]][_0x177c3c(0xca)](_0x36f25e=>_0x5ef7df['add'](_0x36f25e));}[_0x32aef0(0xec)](){const _0x6740ff=_0x32aef0;[Y,q,u,Q][_0x6740ff(0xca)](_0x4720d1=>this[_0x6740ff(0x106)](this[_0x6740ff(0xfa)]['registerCommand'](_0x4720d1)));}};E(S,_0x32aef0(0xdf),_0x3c491f[_0x32aef0(0xea)]),E(S,'pluginName',se),S=ae([_0x599e8b(_0x496812),g(0x1,_0x4120bf(_0x2af51e)),g(0x2,_0x551765),g(0x3,_0x262b41)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ const _0x35200c=_0x4bc5;(function(_0xdbc9a5,_0x3826ca){const _0x301f9e=_0x4bc5,_0x1f6f83=_0xdbc9a5();while(!![]){try{const _0x2df97e=-parseInt(_0x301f9e(0x14b))/0x1*(-parseInt(_0x301f9e(0x147))/0x2)+parseInt(_0x301f9e(0x13a))/0x3*(-parseInt(_0x301f9e(0x14a))/0x4)+parseInt(_0x301f9e(0x16b))/0x5+-parseInt(_0x301f9e(0x130))/0x6+parseInt(_0x301f9e(0x160))/0x7*(parseInt(_0x301f9e(0x13b))/0x8)+-parseInt(_0x301f9e(0x166))/0x9*(-parseInt(_0x301f9e(0x12b))/0xa)+-parseInt(_0x301f9e(0x157))/0xb*(-parseInt(_0x301f9e(0x16c))/0xc);if(_0x2df97e===_0x3826ca)break;else _0x1f6f83['push'](_0x1f6f83['shift']());}catch(_0x211233){_0x1f6f83['push'](_0x1f6f83['shift']());}}}(_0x5d3a,0xeabbf));var R=Object[_0x35200c(0x146)],C=(_0x4de33d,_0x66a2bd,_0x2acca4)=>_0x66a2bd in _0x4de33d?R(_0x4de33d,_0x66a2bd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2acca4}):_0x4de33d[_0x66a2bd]=_0x2acca4,d=(_0x300261,_0x3fdf99,_0x121637)=>C(_0x300261,typeof _0x3fdf99!=_0x35200c(0x142)?_0x3fdf99+'':_0x3fdf99,_0x121637);import{Disposable as _0x3218bf,UniverInstanceType as _0x408f11,IResourceManagerService as _0x37ef3f,CommandType as _0x2bdcc7,ICommandService as _0x2a488f,IUndoRedoService as _0x59eaf0,DependentOn as _0x2cc8da,Inject as _0x2656b2,Injector as _0x2ead97,Plugin as _0x338007,merge as _0x3bb588,touchDependencies as _0x30ccc2,IConfigService as _0x10a7a6}from'@univerjs/core';import{ShapeModel as _0x3ab0b4,isConnectorShape as _0x5d7490}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x51e998}from'@univerjs-pro/license';class T extends _0x3218bf{constructor(){const _0x2055a1=_0x35200c;super(),d(this,_0x2055a1(0x156),new Map()),d(this,_0x2055a1(0x14c),new Set()),d(this,_0x2055a1(0x133),new Set());}['addShape'](_0x13fb17,_0x2c4f25,_0x1b7cce){const _0x4e03ae=_0x35200c,_0x30030f=new _0x3ab0b4(_0x13fb17,_0x2c4f25,_0x1b7cce);return this[_0x4e03ae(0x156)][_0x4e03ae(0x13d)](_0x2c4f25,_0x30030f),_0x5d7490(_0x13fb17)&&this[_0x4e03ae(0x14c)][_0x4e03ae(0x14d)](_0x2c4f25),_0x30030f;}[_0x35200c(0x168)](_0x164b7f){const _0x1ae6f8=_0x35200c;var _0x513e97,_0x3a7ac0;const _0x392be0=[];for(const _0x3ce136 of this[_0x1ae6f8(0x14c)]){const _0x1e3ece=this[_0x1ae6f8(0x156)]['get'](_0x3ce136);if(_0x1e3ece){const _0x5d8ad8=_0x1e3ece['getShapeRelation']();_0x5d8ad8&&(((_0x513e97=_0x5d8ad8['from'])==null?void 0x0:_0x513e97[_0x1ae6f8(0x13f)])===_0x164b7f&&_0x392be0[_0x1ae6f8(0x127)]({..._0x5d8ad8[_0x1ae6f8(0x15f)],'lineShapeId':_0x3ce136,'isFrom':!0x0}),((_0x3a7ac0=_0x5d8ad8['to'])==null?void 0x0:_0x3a7ac0['shapeId'])===_0x164b7f&&_0x392be0['push']({..._0x5d8ad8['to'],'lineShapeId':_0x3ce136,'isFrom':!0x1}));}}return _0x392be0;}['getLineShapeRelation'](_0x26ceee){const _0x4dd7b9=_0x35200c,_0x773696=this['_shapes'][_0x4dd7b9(0x12f)](_0x26ceee);if(_0x773696)return _0x773696[_0x4dd7b9(0x16d)]();}[_0x35200c(0x13e)](_0x1136ba){const _0x272271=_0x35200c,_0x26b6bb=this['_shapes'][_0x272271(0x12f)](_0x1136ba);if(_0x26b6bb)return _0x26b6bb[_0x272271(0x13e)]();}[_0x35200c(0x122)](_0x60fc92){const _0x198926=_0x35200c;return this[_0x198926(0x156)][_0x198926(0x15c)](_0x60fc92);}['removeShape'](_0x25f925){const _0x41af53=_0x35200c,_0x9f77b4=this['_shapes'][_0x41af53(0x12f)](_0x25f925);_0x9f77b4&&(_0x5d7490(_0x9f77b4[_0x41af53(0x13e)]())&&this['_linesIds'][_0x41af53(0x135)](_0x25f925),this[_0x41af53(0x156)]['delete'](_0x25f925));}[_0x35200c(0x170)](){const _0x412806=_0x35200c,_0x40a011=[];return this['_shapes'][_0x412806(0x12e)](_0x504393=>{const _0x549d0b=_0x412806;_0x40a011[_0x549d0b(0x127)](_0x504393[_0x549d0b(0x170)]());}),_0x40a011;}[_0x35200c(0x152)](_0x5a578d){const _0x5b9ec2=_0x35200c;for(const _0x2998c6 of _0x5a578d){const {id:_0x4c4336,shapeType:_0x54cb49}=_0x2998c6,_0x5bcfe7=this[_0x5b9ec2(0x125)](_0x54cb49,_0x4c4336,_0x2998c6[_0x5b9ec2(0x132)]);_0x5bcfe7&&_0x5bcfe7[_0x5b9ec2(0x141)]()&&this['_linesIds'][_0x5b9ec2(0x14d)](_0x4c4336);}}[_0x35200c(0x16f)](){const _0x2e140d=_0x35200c;this[_0x2e140d(0x128)]||(this[_0x2e140d(0x156)][_0x2e140d(0x12e)](_0x5479e4=>{const _0x1fa13e=_0x2e140d;_0x5479e4[_0x1fa13e(0x16f)]();}),this[_0x2e140d(0x156)][_0x2e140d(0x139)](),this['_linesIds'][_0x2e140d(0x139)](),this[_0x2e140d(0x133)][_0x2e140d(0x139)](),super[_0x2e140d(0x16f)]());}}var $=Object[_0x35200c(0x16e)],V=(_0x4258c3,_0x5667ea,_0x5bdbbc,_0x11778f)=>{const _0x21ffd2=_0x35200c;for(var _0x3603b5=_0x11778f>0x1?void 0x0:_0x11778f?$(_0x5667ea,_0x5bdbbc):_0x5667ea,_0x3cac8c=_0x4258c3[_0x21ffd2(0x148)]-0x1,_0x1d10ae;_0x3cac8c>=0x0;_0x3cac8c--)(_0x1d10ae=_0x4258c3[_0x3cac8c])&&(_0x3603b5=_0x1d10ae(_0x3603b5)||_0x3603b5);return _0x3603b5;},K=(_0x4e621b,_0x11456e)=>(_0x464109,_0x2ab2af)=>_0x11456e(_0x464109,_0x2ab2af,_0x4e621b);const W=_0x35200c(0x169);let i=class extends _0x3218bf{constructor(_0x2559c6){const _0x37ba8a=_0x35200c;super(),d(this,'_shapeModelManagerMap',new Map()),(this[_0x37ba8a(0x145)]=_0x2559c6,this[_0x37ba8a(0x167)]());}[_0x35200c(0x143)](_0x4d311d,_0x3d61f5){const _0x1da4e0=_0x35200c;let _0x19aa7d=this[_0x1da4e0(0x15d)][_0x1da4e0(0x12f)](_0x4d311d);_0x19aa7d||(_0x19aa7d=new Map(),this['_shapeModelManagerMap'][_0x1da4e0(0x13d)](_0x4d311d,_0x19aa7d));let _0x590ed8=_0x19aa7d['get'](_0x3d61f5);return _0x590ed8||(_0x590ed8=new T(),_0x19aa7d[_0x1da4e0(0x13d)](_0x3d61f5,_0x590ed8)),_0x590ed8;}[_0x35200c(0x15e)](_0x4dfd01,_0x480c04,_0x4683a1,_0x554aac,_0x179da4){const _0x1b0dae=_0x35200c;this[_0x1b0dae(0x143)](_0x4dfd01,_0x480c04)[_0x1b0dae(0x125)](_0x4683a1,_0x554aac,_0x179da4);}['removeShape'](_0x525630,_0x82b3fc,_0x15963f){const _0x31f946=_0x35200c;this['_ensureShapeModelManager'](_0x525630,_0x82b3fc)[_0x31f946(0x15b)](_0x15963f);}[_0x35200c(0x155)](_0x425a61,_0x58d1d7,_0x111d12){const _0x5775a0=_0x35200c;return this[_0x5775a0(0x143)](_0x425a61,_0x58d1d7)[_0x5775a0(0x13e)](_0x111d12);}[_0x35200c(0x13e)](_0x44eae6,_0x2e7e10,_0x230a3d){const _0xd5c064=_0x35200c;return this['_ensureShapeModelManager'](_0x44eae6,_0x2e7e10)[_0xd5c064(0x13e)](_0x230a3d);}[_0x35200c(0x122)](_0x3b6e63,_0x130007,_0x2a3314){const _0x4870f9=_0x35200c;return this[_0x4870f9(0x143)](_0x3b6e63,_0x130007)['hasShape'](_0x2a3314);}[_0x35200c(0x151)](_0x577700,_0x1e3ca0,_0x3a5df2){const _0x36d20c=_0x35200c;return this[_0x36d20c(0x143)](_0x577700,_0x1e3ca0)['getShapeType'](_0x3a5df2);}['getShapeDataById'](_0x592084,_0x695482,_0x53183a){const _0x5c2ac2=_0x35200c,_0x27c5cc=this['_ensureShapeModelManager'](_0x592084,_0x695482);if(!_0x27c5cc[_0x5c2ac2(0x13e)](_0x53183a))return;const _0x40749c=_0x27c5cc[_0x5c2ac2(0x156)]['get'](_0x53183a);if(_0x40749c)return _0x40749c[_0x5c2ac2(0x144)]();}[_0x35200c(0x134)](_0x2b22f4,_0x4d5723,_0x137bdf){const _0x171527=_0x35200c;return this['_ensureShapeModelManager'](_0x2b22f4,_0x4d5723)[_0x171527(0x156)][_0x171527(0x12f)](_0x137bdf);}[_0x35200c(0x168)](_0x38e84d,_0x1ccde,_0x11d9d9){const _0x56f78b=_0x35200c;return this[_0x56f78b(0x143)](_0x38e84d,_0x1ccde)['getBasicShapeRelation'](_0x11d9d9);}[_0x35200c(0x131)](_0x2003d4,_0x5949d1,_0x474e98){const _0x170577=_0x35200c,_0x5afb65=this['_ensureShapeModelManager'](_0x2003d4,_0x5949d1)[_0x170577(0x156)][_0x170577(0x12f)](_0x474e98);if(_0x5afb65)return _0x5afb65['getShapeRelation']();}[_0x35200c(0x12d)](){}['_serializeShapeForUnit'](_0x2275e4){const _0x1262ed=_0x35200c,_0x3430ca={},_0x3a7857=this[_0x1262ed(0x15d)][_0x1262ed(0x12f)](_0x2275e4);return _0x3a7857&&_0x3a7857[_0x1262ed(0x12e)]((_0x47776f,_0x5d2b20)=>{const _0x27e1e1=_0x1262ed;_0x3430ca[_0x5d2b20]=_0x47776f[_0x27e1e1(0x170)]();}),JSON[_0x1262ed(0x137)](_0x3430ca);}[_0x35200c(0x162)](_0x314c5a,_0x1dde9a){const _0x5e0819=_0x35200c;Object[_0x5e0819(0x161)](_0x1dde9a)['forEach'](_0xbebf60=>{const _0x45d84a=_0x5e0819;this[_0x45d84a(0x143)](_0x314c5a,_0xbebf60)['fromJSON'](_0x1dde9a[_0xbebf60]);});}[_0x35200c(0x170)](){const _0x328a0a=_0x35200c,_0x26dcea={};return this['_shapeModelManagerMap'][_0x328a0a(0x12e)]((_0x243c17,_0x38e8bd)=>{const _0x12a1f7=_0x328a0a;_0x26dcea[_0x38e8bd]={},_0x243c17[_0x12a1f7(0x12e)]((_0x2b46a0,_0x37856f)=>{const _0x596fbb=_0x12a1f7;_0x26dcea[_0x38e8bd][_0x37856f]=_0x2b46a0[_0x596fbb(0x170)]();});}),_0x26dcea;}[_0x35200c(0x152)](_0x43ba27){const _0x4da9d9=_0x35200c;Object[_0x4da9d9(0x161)](_0x43ba27)[_0x4da9d9(0x12e)](_0x2f8665=>{const _0x1c981b=_0x4da9d9,_0x2d07eb=_0x43ba27[_0x2f8665];Object[_0x1c981b(0x161)](_0x2d07eb)[_0x1c981b(0x12e)](_0x4b91ee=>{const _0x1ae62c=_0x1c981b;this[_0x1ae62c(0x143)](_0x2f8665,_0x4b91ee)[_0x1ae62c(0x152)](_0x2d07eb[_0x4b91ee]);});});}[_0x35200c(0x167)](){const _0x48ce2c=_0x35200c;this[_0x48ce2c(0x145)][_0x48ce2c(0x12c)]({'pluginName':W,'businesses':[_0x408f11['UNIVER_SHEET']],'toJson':_0x42eb65=>this[_0x48ce2c(0x159)](_0x42eb65),'parseJson':_0x5f14aa=>JSON['parse'](_0x5f14aa),'onLoad':(_0x5a9e60,_0x3db426)=>{const _0x4df61c=_0x48ce2c;this[_0x4df61c(0x162)](_0x5a9e60,_0x3db426);},'onUnLoad':_0x57ccfa=>{const _0x2127e2=_0x48ce2c,_0x787a2=this[_0x2127e2(0x15d)][_0x2127e2(0x12f)](_0x57ccfa);_0x787a2&&(_0x787a2[_0x2127e2(0x12e)](_0x2a960a=>{_0x2a960a['dispose']();}),this[_0x2127e2(0x15d)][_0x2127e2(0x135)](_0x57ccfa));}});}[_0x35200c(0x16f)](){const _0x47b57c=_0x35200c;this[_0x47b57c(0x15d)][_0x47b57c(0x12e)](_0x531ec1=>{_0x531ec1['forEach'](_0x2b094d=>{_0x2b094d['dispose']();});});}};function _0x5d3a(){const _0x45dd80=['sheet.mutation.insert-shape','every','27ioSUQe','_initSnapshot','getBasicShapeRelation','SHEET_SHAPE_PLUGIN','pushUndoRedo','6716965LZkqEP','6040524oCwYTg','getShapeRelation','getOwnPropertyDescriptor','dispose','toJSON','hasShape','COMMAND','_initCommands','addShape','MUTATION','push','_disposed','_config','registerCommand','1510070yDsWki','registerPluginResource','setShapeType','forEach','get','10231740NGEiez','getLineShapeRelation','shapeData','_groupIds','getShapeModel','delete','setConfig','stringify','sheet.mutation.update-shape-data','clear','27nMIuRw','1202112erLuzV','params','set','getShapeType','shapeId','_commandService','isLineShape','symbol','_ensureShapeModelManager','getShapeData','_resourcesManagerService','defineProperty','12JqpTfP','length','sheets-shape.config','499892DRLUcf','14461EVajiu','_linesIds','add','pluginName','onRendered','_configService','getShapeTypeById','fromJSON','UNIVER_SHEET','setShapeData','getBasicShapeType','_shapes','22UdDVpd','assign','_serializeShapeForUnit','type','removeShape','has','_shapeModelManagerMap','insertShape','from','42VYzOzs','keys','_deserializeShapeForUnit','_injector'];_0x5d3a=function(){return _0x45dd80;};return _0x5d3a();}function _0x4bc5(_0x3c53d9,_0x275d21){_0x3c53d9=_0x3c53d9-0x122;const _0x5d3a08=_0x5d3a();let _0x4bc5df=_0x5d3a08[_0x3c53d9];return _0x4bc5df;}i=V([K(0x0,_0x37ef3f)],i);const u={'id':'sheet.mutation.update-shape-type','type':_0x2bdcc7[_0x35200c(0x126)],'handler':(_0x2254d8,_0x474169)=>{const _0x29a0eb=_0x35200c,{unitId:_0x4a660e,subUnitId:_0x22d826,shapeType:_0x1f8638,shapeId:_0x6f7e0d,shapeData:_0x38c3f8}=_0x474169,_0x371768=_0x2254d8[_0x29a0eb(0x12f)](i)[_0x29a0eb(0x134)](_0x4a660e,_0x22d826,_0x6f7e0d);return _0x371768&&(_0x371768[_0x29a0eb(0x12d)](_0x1f8638),_0x38c3f8&&(_0x371768==null||_0x371768[_0x29a0eb(0x154)](_0x38c3f8))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x2bdcc7[_0x35200c(0x123)],'handler':(_0x2849f9,_0x427b7e)=>{const _0x483216=_0x35200c;if(!_0x427b7e)return!0x1;const _0x79907a=_0x2849f9[_0x483216(0x12f)](_0x2a488f),_0x5db26b=_0x2849f9[_0x483216(0x12f)](i),_0x19fb21=_0x2849f9[_0x483216(0x12f)](_0x59eaf0),_0x18f8aa=[],_0xb5fb29=[],{unitId:_0x4f1fac,subUnitId:_0x367755,shapeId:_0x3ca4f4,shapeType:_0x15b87c,shapeData:_0xf6e277}=_0x427b7e,_0x58e20e=_0x5db26b[_0x483216(0x134)](_0x4f1fac,_0x367755,_0x3ca4f4);if(_0x58e20e){const _0x15f71f=_0x58e20e['getShapeType'](),_0x314fad=Object[_0x483216(0x158)]({},_0x58e20e['getShapeData']()),_0x4e8fcb={'unitId':_0x4f1fac,'subUnitId':_0x367755,'shapeId':_0x3ca4f4,'shapeType':_0x15b87c,'shapeData':_0xf6e277},_0x2a22db={'unitId':_0x4f1fac,'subUnitId':_0x367755,'shapeId':_0x3ca4f4,'shapeType':_0x15f71f,'shapeData':_0x314fad};return _0x18f8aa['push']({'id':u['id'],'params':_0x4e8fcb}),_0xb5fb29[_0x483216(0x127)]({'id':u['id'],'params':_0x2a22db}),_0x18f8aa[_0x483216(0x165)](_0x2a773f=>_0x79907a['syncExecuteCommand'](_0x2a773f['id'],_0x2a773f[_0x483216(0x13c)]))&&_0x19fb21[_0x483216(0x16a)]({'unitID':_0x4f1fac,'redoMutations':[..._0x18f8aa],'undoMutations':[..._0xb5fb29]}),!0x0;}return!0x1;}},Y={'id':_0x35200c(0x164),'type':_0x2bdcc7[_0x35200c(0x126)],'handler':(_0x1e16c0,_0x4ce8f8)=>{const _0x20cd51=_0x35200c,{unitId:_0x50d97c,subUnitId:_0x5c18db,shapeType:_0x5489d5,shapeId:_0x1b7db9,shapeData:_0xe2d8e1}=_0x4ce8f8;return _0x1e16c0[_0x20cd51(0x12f)](i)[_0x20cd51(0x15e)](_0x50d97c,_0x5c18db,_0x5489d5,_0x1b7db9,_0xe2d8e1),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x2bdcc7[_0x35200c(0x126)],'handler':(_0x676b33,_0x4fab3b)=>{const _0x4c02b6=_0x35200c,{unitId:_0xc2d2ac,subUnitId:_0x5b6865,shapeId:_0x1551fb}=_0x4fab3b;return _0x676b33[_0x4c02b6(0x12f)](i)[_0x4c02b6(0x15b)](_0xc2d2ac,_0x5b6865,_0x1551fb),!0x0;}},Q={'id':_0x35200c(0x138),'type':_0x2bdcc7['MUTATION'],'handler':(_0x4b44ca,_0x56c452)=>{const _0x56b5c9=_0x35200c,{unitId:_0x166f88,subUnitId:_0x29c9c2,shapeType:_0x3b947a,shapeId:_0x157143,shapeData:_0xabe73a}=_0x56c452,_0x14a5e5=_0x4b44ca[_0x56b5c9(0x12f)](i)[_0x56b5c9(0x134)](_0x166f88,_0x29c9c2,_0x157143);return _0x14a5e5&&(_0x3b947a!==void 0x0&&_0x14a5e5['setShapeType'](_0x3b947a),_0xabe73a&&(_0x14a5e5==null||_0x14a5e5[_0x56b5c9(0x154)](_0xabe73a,!0x0))),!0x0;}},X=_0x35200c(0x149),m={};var Z=Object[_0x35200c(0x146)],k=Object['getOwnPropertyDescriptor'],ee=(_0x540fac,_0x228b01,_0x3626ff)=>_0x228b01 in _0x540fac?Z(_0x540fac,_0x228b01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3626ff}):_0x540fac[_0x228b01]=_0x3626ff,ae=(_0x59ec39,_0x16aa18,_0x237a64,_0x38b2f8)=>{const _0x55acac=_0x35200c;for(var _0x956445=_0x38b2f8>0x1?void 0x0:_0x38b2f8?k(_0x16aa18,_0x237a64):_0x16aa18,_0x16f075=_0x59ec39[_0x55acac(0x148)]-0x1,_0x7ed1b6;_0x16f075>=0x0;_0x16f075--)(_0x7ed1b6=_0x59ec39[_0x16f075])&&(_0x956445=_0x7ed1b6(_0x956445)||_0x956445);return _0x956445;},g=(_0x41af88,_0x14a238)=>(_0x2b75f0,_0x5d6cf4)=>_0x14a238(_0x2b75f0,_0x5d6cf4,_0x41af88),E=(_0x3f2f11,_0xee24ac,_0x10a3a6)=>ee(_0x3f2f11,typeof _0xee24ac!='symbol'?_0xee24ac+'':_0xee24ac,_0x10a3a6);const se=_0x35200c(0x169);let S=class extends _0x338007{constructor(_0x4f6a28=m,_0x1a3719,_0x26ee8b,_0x2d1e8a){const _0x41c2af=_0x35200c;super(),this[_0x41c2af(0x129)]=_0x4f6a28,this[_0x41c2af(0x163)]=_0x1a3719,this[_0x41c2af(0x140)]=_0x26ee8b,this[_0x41c2af(0x150)]=_0x2d1e8a;const {..._0x4df21f}=_0x3bb588({},m,this[_0x41c2af(0x129)]);this['_configService'][_0x41c2af(0x136)](X,_0x4df21f),this['_initCommands']();}[_0x35200c(0x14f)](){const _0x215184=_0x35200c;_0x30ccc2(this[_0x215184(0x163)],[]);}['onStarting'](){const _0x4da854=_0x35200c,_0x489e36=this['_injector'];[[T],[i]][_0x4da854(0x12e)](_0x4f47a8=>_0x489e36[_0x4da854(0x14d)](_0x4f47a8));}[_0x35200c(0x124)](){const _0x4c5628=_0x35200c;[Y,q,u,Q]['forEach'](_0x48956e=>this['disposeWithMe'](this['_commandService'][_0x4c5628(0x12a)](_0x48956e)));}};E(S,_0x35200c(0x15a),_0x408f11[_0x35200c(0x153)]),E(S,_0x35200c(0x14e),se),S=ae([_0x2cc8da(_0x51e998),g(0x1,_0x2656b2(_0x2ead97)),g(0x2,_0x2a488f),g(0x3,_0x10a7a6)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x32aef0=_0x57ee;(function(_0x8501d4,_0x4323bf){const _0x2da121=_0x57ee,_0x4bd264=_0x8501d4();while(!![]){try{const _0x429e75=parseInt(_0x2da121(0xde))/0x1+parseInt(_0x2da121(0xdc))/0x2*(parseInt(_0x2da121(0xd9))/0x3)+parseInt(_0x2da121(0xd2))/0x4+parseInt(_0x2da121(0x107))/0x5*(-parseInt(_0x2da121(0xf1))/0x6)+parseInt(_0x2da121(0xe4))/0x7*(-parseInt(_0x2da121(0xc4))/0x8)+-parseInt(_0x2da121(0xda))/0x9+parseInt(_0x2da121(0xce))/0xa;if(_0x429e75===_0x4323bf)break;else _0x4bd264['push'](_0x4bd264['shift']());}catch(_0x463e08){_0x4bd264['push'](_0x4bd264['shift']());}}}(_0x3e5c,0xad443));var R=Object[_0x32aef0(0xc2)],C=(_0x553e93,_0x2c3e58,_0xc1f51b)=>_0x2c3e58 in _0x553e93?R(_0x553e93,_0x2c3e58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc1f51b}):_0x553e93[_0x2c3e58]=_0xc1f51b,d=(_0x3092ee,_0x31d5bd,_0x2f0751)=>C(_0x3092ee,typeof _0x31d5bd!='symbol'?_0x31d5bd+'':_0x31d5bd,_0x2f0751);import{Disposable as _0x1b7929,UniverInstanceType as _0x3c491f,IResourceManagerService as _0x2d4a9e,CommandType as _0x410a5c,ICommandService as _0x551765,IUndoRedoService as _0x3f436f,DependentOn as _0x599e8b,Inject as _0x4120bf,Injector as _0x2af51e,Plugin as _0x45c26e,merge as _0x294386,touchDependencies as _0x21ab27,IConfigService as _0x262b41}from'@univerjs/core';import{ShapeModel as _0x28cf4a,isConnectorShape as _0x4c3174}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x496812}from'@univerjs-pro/license';class T extends _0x1b7929{constructor(){const _0x399c81=_0x32aef0;super(),d(this,_0x399c81(0xcd),new Map()),d(this,_0x399c81(0xc6),new Set()),d(this,_0x399c81(0xf7),new Set());}[_0x32aef0(0xd7)](_0x43b3a8,_0x469af8,_0x4c4c2c){const _0x45a353=_0x32aef0,_0x504adc=new _0x28cf4a(_0x43b3a8,_0x469af8,_0x4c4c2c);return this[_0x45a353(0xcd)]['set'](_0x469af8,_0x504adc),_0x4c3174(_0x43b3a8)&&this[_0x45a353(0xc6)][_0x45a353(0xcc)](_0x469af8),_0x504adc;}[_0x32aef0(0xe9)](_0x567f5a){const _0x1d1b4a=_0x32aef0;var _0x59a6d7,_0x14089f;const _0x3ad33e=[];for(const _0x111c2d of this[_0x1d1b4a(0xc6)]){const _0x8cee8c=this['_shapes']['get'](_0x111c2d);if(_0x8cee8c){const _0xad45c8=_0x8cee8c[_0x1d1b4a(0xcf)]();_0xad45c8&&(((_0x59a6d7=_0xad45c8['from'])==null?void 0x0:_0x59a6d7['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['from'],'lineShapeId':_0x111c2d,'isFrom':!0x0}),((_0x14089f=_0xad45c8['to'])==null?void 0x0:_0x14089f['shapeId'])===_0x567f5a&&_0x3ad33e[_0x1d1b4a(0xff)]({..._0xad45c8['to'],'lineShapeId':_0x111c2d,'isFrom':!0x1}));}}return _0x3ad33e;}[_0x32aef0(0xc7)](_0x5a8035){const _0x53c984=_0x32aef0,_0x3d4d07=this['_shapes'][_0x53c984(0xdb)](_0x5a8035);if(_0x3d4d07)return _0x3d4d07[_0x53c984(0xcf)]();}[_0x32aef0(0x101)](_0x588807){const _0x315f94=_0x32aef0,_0x29654f=this[_0x315f94(0xcd)][_0x315f94(0xdb)](_0x588807);if(_0x29654f)return _0x29654f[_0x315f94(0x101)]();}[_0x32aef0(0x108)](_0x377110){const _0x5432ad=_0x32aef0;return this[_0x5432ad(0xcd)][_0x5432ad(0xe8)](_0x377110);}[_0x32aef0(0xc8)](_0x2bb546){const _0x3ebad0=_0x32aef0,_0x17de21=this['_shapes']['get'](_0x2bb546);_0x17de21&&(_0x4c3174(_0x17de21[_0x3ebad0(0x101)]())&&this[_0x3ebad0(0xc6)][_0x3ebad0(0xf8)](_0x2bb546),this[_0x3ebad0(0xcd)][_0x3ebad0(0xf8)](_0x2bb546));}[_0x32aef0(0xe2)](){const _0x4fe235=_0x32aef0,_0x4d3db8=[];return this[_0x4fe235(0xcd)][_0x4fe235(0xca)](_0xab0f10=>{const _0x46c330=_0x4fe235;_0x4d3db8[_0x46c330(0xff)](_0xab0f10[_0x46c330(0xe2)]());}),_0x4d3db8;}['fromJSON'](_0x3db539){const _0x3404f2=_0x32aef0;for(const _0x5f3e91 of _0x3db539){const {id:_0x379eef,shapeType:_0x2747a8}=_0x5f3e91,_0x4403bc=this['addShape'](_0x2747a8,_0x379eef,_0x5f3e91['shapeData']);_0x4403bc&&_0x4403bc['isLineShape']()&&this[_0x3404f2(0xc6)][_0x3404f2(0xcc)](_0x379eef);}}[_0x32aef0(0xcb)](){const _0x235fc5=_0x32aef0;this[_0x235fc5(0xe6)]||(this[_0x235fc5(0xcd)][_0x235fc5(0xca)](_0x203d7b=>{_0x203d7b['dispose']();}),this[_0x235fc5(0xcd)][_0x235fc5(0xf6)](),this[_0x235fc5(0xc6)][_0x235fc5(0xf6)](),this[_0x235fc5(0xf7)][_0x235fc5(0xf6)](),super[_0x235fc5(0xcb)]());}}var $=Object['getOwnPropertyDescriptor'],V=(_0x384a3b,_0x45b26b,_0x4a396e,_0x24160e)=>{const _0x4b8861=_0x32aef0;for(var _0x1d704b=_0x24160e>0x1?void 0x0:_0x24160e?$(_0x45b26b,_0x4a396e):_0x45b26b,_0x8b0fc=_0x384a3b[_0x4b8861(0xf5)]-0x1,_0x555b4b;_0x8b0fc>=0x0;_0x8b0fc--)(_0x555b4b=_0x384a3b[_0x8b0fc])&&(_0x1d704b=_0x555b4b(_0x1d704b)||_0x1d704b);return _0x1d704b;},K=(_0x23b593,_0x58f14b)=>(_0x1b64c7,_0x28f4d5)=>_0x58f14b(_0x1b64c7,_0x28f4d5,_0x23b593);function _0x3e5c(){const _0x1d27ea=['8YDBklV','sheet.mutation.insert-shape','_linesIds','getLineShapeRelation','removeShape','_initSnapshot','forEach','dispose','add','_shapes','23541900fidpoa','getShapeRelation','assign','parse','2630268mcRwyh','symbol','_shapeModelManagerMap','insertShape','stringify','addShape','MUTATION','1647VWrLgW','8643582hUXiqH','get','946KZHwLe','registerPluginResource','219918ElgolZ','type','_deserializeShapeForUnit','keys','toJSON','fromJSON','6610779qxKggs','setShapeType','_disposed','COMMAND','has','getBasicShapeRelation','UNIVER_SHEET','setShapeData','_initCommands','_ensureShapeModelManager','params','getShapeData','getBasicShapeType','36DOwkaR','set','onStarting','sheet.mutation.update-shape-data','length','clear','_groupIds','delete','SHEET_SHAPE_PLUGIN','_commandService','sheet.mutation.remove-shape','setConfig','every','getShapeTypeById','push','onRendered','getShapeType','_serializeShapeForUnit','_injector','_resourcesManagerService','getShapeDataById','disposeWithMe','730715OYOBYw','hasShape','_configService','sheet.mutation.update-shape-type','getShapeModel','syncExecuteCommand','sheets-shape.config','defineProperty','_config'];_0x3e5c=function(){return _0x1d27ea;};return _0x3e5c();}const W=_0x32aef0(0xf9);let i=class extends _0x1b7929{constructor(_0x3ccba5){const _0x4ce6c2=_0x32aef0;super(),d(this,_0x4ce6c2(0xd4),new Map()),(this[_0x4ce6c2(0x104)]=_0x3ccba5,this['_initSnapshot']());}[_0x32aef0(0xed)](_0x4e898d,_0x382c6d){const _0x4a2b00=_0x32aef0;let _0x198b6a=this['_shapeModelManagerMap'][_0x4a2b00(0xdb)](_0x4e898d);_0x198b6a||(_0x198b6a=new Map(),this[_0x4a2b00(0xd4)]['set'](_0x4e898d,_0x198b6a));let _0x3e8260=_0x198b6a['get'](_0x382c6d);return _0x3e8260||(_0x3e8260=new T(),_0x198b6a[_0x4a2b00(0xf2)](_0x382c6d,_0x3e8260)),_0x3e8260;}['insertShape'](_0x16ae95,_0x1c10d7,_0x41d3bd,_0x41b08a,_0x1464b6){const _0x4edcb6=_0x32aef0;this[_0x4edcb6(0xed)](_0x16ae95,_0x1c10d7)[_0x4edcb6(0xd7)](_0x41d3bd,_0x41b08a,_0x1464b6);}[_0x32aef0(0xc8)](_0x1dc442,_0x37b7f6,_0x2c6647){const _0x8915c=_0x32aef0;this[_0x8915c(0xed)](_0x1dc442,_0x37b7f6)[_0x8915c(0xc8)](_0x2c6647);}[_0x32aef0(0xf0)](_0x5f57ca,_0x1a5805,_0x22ae27){return this['_ensureShapeModelManager'](_0x5f57ca,_0x1a5805)['getShapeType'](_0x22ae27);}[_0x32aef0(0x101)](_0x69cfb8,_0x5d415e,_0x1c40d1){const _0x3c6006=_0x32aef0;return this[_0x3c6006(0xed)](_0x69cfb8,_0x5d415e)[_0x3c6006(0x101)](_0x1c40d1);}[_0x32aef0(0x108)](_0x5d56cb,_0x113a57,_0x34bd93){const _0x155279=_0x32aef0;return this[_0x155279(0xed)](_0x5d56cb,_0x113a57)[_0x155279(0x108)](_0x34bd93);}[_0x32aef0(0xfe)](_0x466c2a,_0x27c6fd,_0xbcd9c3){return this['_ensureShapeModelManager'](_0x466c2a,_0x27c6fd)['getShapeType'](_0xbcd9c3);}[_0x32aef0(0x105)](_0x569831,_0x542d0d,_0x3247c5){const _0x8196d2=_0x32aef0,_0x32595a=this[_0x8196d2(0xed)](_0x569831,_0x542d0d);if(!_0x32595a[_0x8196d2(0x101)](_0x3247c5))return;const _0x1154ef=_0x32595a[_0x8196d2(0xcd)][_0x8196d2(0xdb)](_0x3247c5);if(_0x1154ef)return _0x1154ef[_0x8196d2(0xef)]();}[_0x32aef0(0x10b)](_0x5641fd,_0x26dcb0,_0xd8e4a8){const _0x34937f=_0x32aef0;return this['_ensureShapeModelManager'](_0x5641fd,_0x26dcb0)[_0x34937f(0xcd)][_0x34937f(0xdb)](_0xd8e4a8);}['getBasicShapeRelation'](_0x170aea,_0x3cf063,_0x3c2d57){const _0x3e8d2d=_0x32aef0;return this[_0x3e8d2d(0xed)](_0x170aea,_0x3cf063)[_0x3e8d2d(0xe9)](_0x3c2d57);}[_0x32aef0(0xc7)](_0x3f5673,_0x34c5b6,_0x21994b){const _0xe51766=_0x32aef0,_0x4668d0=this['_ensureShapeModelManager'](_0x3f5673,_0x34c5b6)[_0xe51766(0xcd)][_0xe51766(0xdb)](_0x21994b);if(_0x4668d0)return _0x4668d0[_0xe51766(0xcf)]();}['setShapeType'](){}[_0x32aef0(0x102)](_0x509e44){const _0x440670=_0x32aef0,_0x4fc88c={},_0x2d5290=this[_0x440670(0xd4)][_0x440670(0xdb)](_0x509e44);return _0x2d5290&&_0x2d5290[_0x440670(0xca)]((_0x27bba1,_0x9ccdb9)=>{const _0x36b165=_0x440670;_0x4fc88c[_0x9ccdb9]=_0x27bba1[_0x36b165(0xe2)]();}),JSON[_0x440670(0xd6)](_0x4fc88c);}[_0x32aef0(0xe0)](_0x5ea173,_0x4bb146){const _0x49feec=_0x32aef0;Object[_0x49feec(0xe1)](_0x4bb146)[_0x49feec(0xca)](_0x33e5d6=>{const _0x21b46b=_0x49feec;this['_ensureShapeModelManager'](_0x5ea173,_0x33e5d6)[_0x21b46b(0xe3)](_0x4bb146[_0x33e5d6]);});}[_0x32aef0(0xe2)](){const _0x5e8782=_0x32aef0,_0x50786c={};return this[_0x5e8782(0xd4)]['forEach']((_0x1d3999,_0x21bde4)=>{_0x50786c[_0x21bde4]={},_0x1d3999['forEach']((_0x2c5e79,_0x2138cd)=>{const _0x374e97=_0x57ee;_0x50786c[_0x21bde4][_0x2138cd]=_0x2c5e79[_0x374e97(0xe2)]();});}),_0x50786c;}[_0x32aef0(0xe3)](_0x1d28ff){const _0x250624=_0x32aef0;Object['keys'](_0x1d28ff)[_0x250624(0xca)](_0x34a2b5=>{const _0x423810=_0x250624,_0x35763f=_0x1d28ff[_0x34a2b5];Object[_0x423810(0xe1)](_0x35763f)['forEach'](_0x52d1c9=>{const _0x42e564=_0x423810;this[_0x42e564(0xed)](_0x34a2b5,_0x52d1c9)['fromJSON'](_0x35763f[_0x52d1c9]);});});}[_0x32aef0(0xc9)](){const _0x2f25ce=_0x32aef0;this[_0x2f25ce(0x104)][_0x2f25ce(0xdd)]({'pluginName':W,'businesses':[_0x3c491f['UNIVER_SHEET']],'toJson':_0xf6464d=>this[_0x2f25ce(0x102)](_0xf6464d),'parseJson':_0xc14b0b=>JSON[_0x2f25ce(0xd1)](_0xc14b0b),'onLoad':(_0x3a3a55,_0x110155)=>{const _0x377bbe=_0x2f25ce;this[_0x377bbe(0xe0)](_0x3a3a55,_0x110155);},'onUnLoad':_0x5e1cc3=>{const _0x46fdee=_0x2f25ce,_0x279c43=this[_0x46fdee(0xd4)]['get'](_0x5e1cc3);_0x279c43&&(_0x279c43['forEach'](_0x265f76=>{_0x265f76['dispose']();}),this['_shapeModelManagerMap'][_0x46fdee(0xf8)](_0x5e1cc3));}});}['dispose'](){const _0x5cf42c=_0x32aef0;this[_0x5cf42c(0xd4)][_0x5cf42c(0xca)](_0x2848fe=>{_0x2848fe['forEach'](_0x4bef1a=>{const _0x77c65f=_0x57ee;_0x4bef1a[_0x77c65f(0xcb)]();});});}};i=V([K(0x0,_0x2d4a9e)],i);const u={'id':_0x32aef0(0x10a),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x13ffb3,_0x4890f0)=>{const _0x457edd=_0x32aef0,{unitId:_0x24facf,subUnitId:_0x29fe74,shapeType:_0x3d7675,shapeId:_0x2d6892,shapeData:_0x1aecc4}=_0x4890f0,_0x533b3b=_0x13ffb3['get'](i)[_0x457edd(0x10b)](_0x24facf,_0x29fe74,_0x2d6892);return _0x533b3b&&(_0x533b3b[_0x457edd(0xe5)](_0x3d7675),_0x1aecc4&&(_0x533b3b==null||_0x533b3b[_0x457edd(0xeb)](_0x1aecc4))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x410a5c[_0x32aef0(0xe7)],'handler':(_0x25b8ba,_0x5264db)=>{const _0x2b44b7=_0x32aef0;if(!_0x5264db)return!0x1;const _0x450707=_0x25b8ba[_0x2b44b7(0xdb)](_0x551765),_0x36223c=_0x25b8ba[_0x2b44b7(0xdb)](i),_0x150224=_0x25b8ba[_0x2b44b7(0xdb)](_0x3f436f),_0x319688=[],_0x28df01=[],{unitId:_0x28a48c,subUnitId:_0xe605e1,shapeId:_0x384512,shapeType:_0x1f874f,shapeData:_0x248948}=_0x5264db,_0x28b8bd=_0x36223c[_0x2b44b7(0x10b)](_0x28a48c,_0xe605e1,_0x384512);if(_0x28b8bd){const _0x29001f=_0x28b8bd[_0x2b44b7(0x101)](),_0x524e61=Object[_0x2b44b7(0xd0)]({},_0x28b8bd['getShapeData']()),_0x26ad02={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x1f874f,'shapeData':_0x248948},_0x4993c5={'unitId':_0x28a48c,'subUnitId':_0xe605e1,'shapeId':_0x384512,'shapeType':_0x29001f,'shapeData':_0x524e61};return _0x319688[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x26ad02}),_0x28df01[_0x2b44b7(0xff)]({'id':u['id'],'params':_0x4993c5}),_0x319688[_0x2b44b7(0xfd)](_0x6e6549=>_0x450707[_0x2b44b7(0x10c)](_0x6e6549['id'],_0x6e6549[_0x2b44b7(0xee)]))&&_0x150224['pushUndoRedo']({'unitID':_0x28a48c,'redoMutations':[..._0x319688],'undoMutations':[..._0x28df01]}),!0x0;}return!0x1;}},Y={'id':_0x32aef0(0xc5),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x451a8e,_0x2573d1)=>{const _0x5d51be=_0x32aef0,{unitId:_0x12a98a,subUnitId:_0x399d82,shapeType:_0x2df3df,shapeId:_0x1adaed,shapeData:_0x2a69cc}=_0x2573d1;return _0x451a8e['get'](i)[_0x5d51be(0xd5)](_0x12a98a,_0x399d82,_0x2df3df,_0x1adaed,_0x2a69cc),!0x0;}},q={'id':_0x32aef0(0xfb),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x3f7067,_0x580ce4)=>{const _0x178f5d=_0x32aef0,{unitId:_0xcaec98,subUnitId:_0x39b507,shapeId:_0x3e1cfc}=_0x580ce4;return _0x3f7067[_0x178f5d(0xdb)](i)['removeShape'](_0xcaec98,_0x39b507,_0x3e1cfc),!0x0;}},Q={'id':_0x32aef0(0xf4),'type':_0x410a5c[_0x32aef0(0xd8)],'handler':(_0x30c1d5,_0x509190)=>{const _0x18de6d=_0x32aef0,{unitId:_0x2f44cd,subUnitId:_0x1ef2d8,shapeType:_0x20ec7b,shapeId:_0x51fd96,shapeData:_0x4f1f1f}=_0x509190,_0x538c9a=_0x30c1d5[_0x18de6d(0xdb)](i)['getShapeModel'](_0x2f44cd,_0x1ef2d8,_0x51fd96);return _0x538c9a&&(_0x20ec7b!==void 0x0&&_0x538c9a['setShapeType'](_0x20ec7b),_0x4f1f1f&&(_0x538c9a==null||_0x538c9a['setShapeData'](_0x4f1f1f,!0x0))),!0x0;}},X=_0x32aef0(0x10d),m={};var Z=Object['defineProperty'],k=Object['getOwnPropertyDescriptor'],ee=(_0x3da2e4,_0x229cea,_0x51bd15)=>_0x229cea in _0x3da2e4?Z(_0x3da2e4,_0x229cea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51bd15}):_0x3da2e4[_0x229cea]=_0x51bd15,ae=(_0x474b1d,_0x520a1d,_0x4e4569,_0x21bd16)=>{const _0x226701=_0x32aef0;for(var _0x3bd911=_0x21bd16>0x1?void 0x0:_0x21bd16?k(_0x520a1d,_0x4e4569):_0x520a1d,_0x3fe082=_0x474b1d[_0x226701(0xf5)]-0x1,_0x16eeb3;_0x3fe082>=0x0;_0x3fe082--)(_0x16eeb3=_0x474b1d[_0x3fe082])&&(_0x3bd911=_0x16eeb3(_0x3bd911)||_0x3bd911);return _0x3bd911;},g=(_0x68e634,_0x54b9db)=>(_0x242723,_0x328e89)=>_0x54b9db(_0x242723,_0x328e89,_0x68e634),E=(_0x44e15b,_0x2c6f78,_0x1a9adb)=>ee(_0x44e15b,typeof _0x2c6f78!=_0x32aef0(0xd3)?_0x2c6f78+'':_0x2c6f78,_0x1a9adb);const se=_0x32aef0(0xf9);function _0x57ee(_0x529e01,_0x39af73){_0x529e01=_0x529e01-0xc2;const _0x3e5c70=_0x3e5c();let _0x57ee83=_0x3e5c70[_0x529e01];return _0x57ee83;}let S=class extends _0x45c26e{constructor(_0x13cd77=m,_0x23e8e5,_0x2d070d,_0x5469bb){const _0x5f19f3=_0x32aef0;super(),this[_0x5f19f3(0xc3)]=_0x13cd77,this['_injector']=_0x23e8e5,this['_commandService']=_0x2d070d,this[_0x5f19f3(0x109)]=_0x5469bb;const {..._0x204786}=_0x294386({},m,this[_0x5f19f3(0xc3)]);this[_0x5f19f3(0x109)][_0x5f19f3(0xfc)](X,_0x204786),this[_0x5f19f3(0xec)]();}[_0x32aef0(0x100)](){const _0x192bbc=_0x32aef0;_0x21ab27(this[_0x192bbc(0x103)],[]);}[_0x32aef0(0xf3)](){const _0x177c3c=_0x32aef0,_0x5ef7df=this[_0x177c3c(0x103)];[[T],[i]][_0x177c3c(0xca)](_0x36f25e=>_0x5ef7df['add'](_0x36f25e));}[_0x32aef0(0xec)](){const _0x6740ff=_0x32aef0;[Y,q,u,Q][_0x6740ff(0xca)](_0x4720d1=>this[_0x6740ff(0x106)](this[_0x6740ff(0xfa)]['registerCommand'](_0x4720d1)));}};E(S,_0x32aef0(0xdf),_0x3c491f[_0x32aef0(0xea)]),E(S,'pluginName',se),S=ae([_0x599e8b(_0x496812),g(0x1,_0x4120bf(_0x2af51e)),g(0x2,_0x551765),g(0x3,_0x262b41)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ const _0x35200c=_0x4bc5;(function(_0xdbc9a5,_0x3826ca){const _0x301f9e=_0x4bc5,_0x1f6f83=_0xdbc9a5();while(!![]){try{const _0x2df97e=-parseInt(_0x301f9e(0x14b))/0x1*(-parseInt(_0x301f9e(0x147))/0x2)+parseInt(_0x301f9e(0x13a))/0x3*(-parseInt(_0x301f9e(0x14a))/0x4)+parseInt(_0x301f9e(0x16b))/0x5+-parseInt(_0x301f9e(0x130))/0x6+parseInt(_0x301f9e(0x160))/0x7*(parseInt(_0x301f9e(0x13b))/0x8)+-parseInt(_0x301f9e(0x166))/0x9*(-parseInt(_0x301f9e(0x12b))/0xa)+-parseInt(_0x301f9e(0x157))/0xb*(-parseInt(_0x301f9e(0x16c))/0xc);if(_0x2df97e===_0x3826ca)break;else _0x1f6f83['push'](_0x1f6f83['shift']());}catch(_0x211233){_0x1f6f83['push'](_0x1f6f83['shift']());}}}(_0x5d3a,0xeabbf));var R=Object[_0x35200c(0x146)],C=(_0x4de33d,_0x66a2bd,_0x2acca4)=>_0x66a2bd in _0x4de33d?R(_0x4de33d,_0x66a2bd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2acca4}):_0x4de33d[_0x66a2bd]=_0x2acca4,d=(_0x300261,_0x3fdf99,_0x121637)=>C(_0x300261,typeof _0x3fdf99!=_0x35200c(0x142)?_0x3fdf99+'':_0x3fdf99,_0x121637);import{Disposable as _0x3218bf,UniverInstanceType as _0x408f11,IResourceManagerService as _0x37ef3f,CommandType as _0x2bdcc7,ICommandService as _0x2a488f,IUndoRedoService as _0x59eaf0,DependentOn as _0x2cc8da,Inject as _0x2656b2,Injector as _0x2ead97,Plugin as _0x338007,merge as _0x3bb588,touchDependencies as _0x30ccc2,IConfigService as _0x10a7a6}from'@univerjs/core';import{ShapeModel as _0x3ab0b4,isConnectorShape as _0x5d7490}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x51e998}from'@univerjs-pro/license';class T extends _0x3218bf{constructor(){const _0x2055a1=_0x35200c;super(),d(this,_0x2055a1(0x156),new Map()),d(this,_0x2055a1(0x14c),new Set()),d(this,_0x2055a1(0x133),new Set());}['addShape'](_0x13fb17,_0x2c4f25,_0x1b7cce){const _0x4e03ae=_0x35200c,_0x30030f=new _0x3ab0b4(_0x13fb17,_0x2c4f25,_0x1b7cce);return this[_0x4e03ae(0x156)][_0x4e03ae(0x13d)](_0x2c4f25,_0x30030f),_0x5d7490(_0x13fb17)&&this[_0x4e03ae(0x14c)][_0x4e03ae(0x14d)](_0x2c4f25),_0x30030f;}[_0x35200c(0x168)](_0x164b7f){const _0x1ae6f8=_0x35200c;var _0x513e97,_0x3a7ac0;const _0x392be0=[];for(const _0x3ce136 of this[_0x1ae6f8(0x14c)]){const _0x1e3ece=this[_0x1ae6f8(0x156)]['get'](_0x3ce136);if(_0x1e3ece){const _0x5d8ad8=_0x1e3ece['getShapeRelation']();_0x5d8ad8&&(((_0x513e97=_0x5d8ad8['from'])==null?void 0x0:_0x513e97[_0x1ae6f8(0x13f)])===_0x164b7f&&_0x392be0[_0x1ae6f8(0x127)]({..._0x5d8ad8[_0x1ae6f8(0x15f)],'lineShapeId':_0x3ce136,'isFrom':!0x0}),((_0x3a7ac0=_0x5d8ad8['to'])==null?void 0x0:_0x3a7ac0['shapeId'])===_0x164b7f&&_0x392be0['push']({..._0x5d8ad8['to'],'lineShapeId':_0x3ce136,'isFrom':!0x1}));}}return _0x392be0;}['getLineShapeRelation'](_0x26ceee){const _0x4dd7b9=_0x35200c,_0x773696=this['_shapes'][_0x4dd7b9(0x12f)](_0x26ceee);if(_0x773696)return _0x773696[_0x4dd7b9(0x16d)]();}[_0x35200c(0x13e)](_0x1136ba){const _0x272271=_0x35200c,_0x26b6bb=this['_shapes'][_0x272271(0x12f)](_0x1136ba);if(_0x26b6bb)return _0x26b6bb[_0x272271(0x13e)]();}[_0x35200c(0x122)](_0x60fc92){const _0x198926=_0x35200c;return this[_0x198926(0x156)][_0x198926(0x15c)](_0x60fc92);}['removeShape'](_0x25f925){const _0x41af53=_0x35200c,_0x9f77b4=this['_shapes'][_0x41af53(0x12f)](_0x25f925);_0x9f77b4&&(_0x5d7490(_0x9f77b4[_0x41af53(0x13e)]())&&this['_linesIds'][_0x41af53(0x135)](_0x25f925),this[_0x41af53(0x156)]['delete'](_0x25f925));}[_0x35200c(0x170)](){const _0x412806=_0x35200c,_0x40a011=[];return this['_shapes'][_0x412806(0x12e)](_0x504393=>{const _0x549d0b=_0x412806;_0x40a011[_0x549d0b(0x127)](_0x504393[_0x549d0b(0x170)]());}),_0x40a011;}[_0x35200c(0x152)](_0x5a578d){const _0x5b9ec2=_0x35200c;for(const _0x2998c6 of _0x5a578d){const {id:_0x4c4336,shapeType:_0x54cb49}=_0x2998c6,_0x5bcfe7=this[_0x5b9ec2(0x125)](_0x54cb49,_0x4c4336,_0x2998c6[_0x5b9ec2(0x132)]);_0x5bcfe7&&_0x5bcfe7[_0x5b9ec2(0x141)]()&&this['_linesIds'][_0x5b9ec2(0x14d)](_0x4c4336);}}[_0x35200c(0x16f)](){const _0x2e140d=_0x35200c;this[_0x2e140d(0x128)]||(this[_0x2e140d(0x156)][_0x2e140d(0x12e)](_0x5479e4=>{const _0x1fa13e=_0x2e140d;_0x5479e4[_0x1fa13e(0x16f)]();}),this[_0x2e140d(0x156)][_0x2e140d(0x139)](),this['_linesIds'][_0x2e140d(0x139)](),this[_0x2e140d(0x133)][_0x2e140d(0x139)](),super[_0x2e140d(0x16f)]());}}var $=Object[_0x35200c(0x16e)],V=(_0x4258c3,_0x5667ea,_0x5bdbbc,_0x11778f)=>{const _0x21ffd2=_0x35200c;for(var _0x3603b5=_0x11778f>0x1?void 0x0:_0x11778f?$(_0x5667ea,_0x5bdbbc):_0x5667ea,_0x3cac8c=_0x4258c3[_0x21ffd2(0x148)]-0x1,_0x1d10ae;_0x3cac8c>=0x0;_0x3cac8c--)(_0x1d10ae=_0x4258c3[_0x3cac8c])&&(_0x3603b5=_0x1d10ae(_0x3603b5)||_0x3603b5);return _0x3603b5;},K=(_0x4e621b,_0x11456e)=>(_0x464109,_0x2ab2af)=>_0x11456e(_0x464109,_0x2ab2af,_0x4e621b);const W=_0x35200c(0x169);let i=class extends _0x3218bf{constructor(_0x2559c6){const _0x37ba8a=_0x35200c;super(),d(this,'_shapeModelManagerMap',new Map()),(this[_0x37ba8a(0x145)]=_0x2559c6,this[_0x37ba8a(0x167)]());}[_0x35200c(0x143)](_0x4d311d,_0x3d61f5){const _0x1da4e0=_0x35200c;let _0x19aa7d=this[_0x1da4e0(0x15d)][_0x1da4e0(0x12f)](_0x4d311d);_0x19aa7d||(_0x19aa7d=new Map(),this['_shapeModelManagerMap'][_0x1da4e0(0x13d)](_0x4d311d,_0x19aa7d));let _0x590ed8=_0x19aa7d['get'](_0x3d61f5);return _0x590ed8||(_0x590ed8=new T(),_0x19aa7d[_0x1da4e0(0x13d)](_0x3d61f5,_0x590ed8)),_0x590ed8;}[_0x35200c(0x15e)](_0x4dfd01,_0x480c04,_0x4683a1,_0x554aac,_0x179da4){const _0x1b0dae=_0x35200c;this[_0x1b0dae(0x143)](_0x4dfd01,_0x480c04)[_0x1b0dae(0x125)](_0x4683a1,_0x554aac,_0x179da4);}['removeShape'](_0x525630,_0x82b3fc,_0x15963f){const _0x31f946=_0x35200c;this['_ensureShapeModelManager'](_0x525630,_0x82b3fc)[_0x31f946(0x15b)](_0x15963f);}[_0x35200c(0x155)](_0x425a61,_0x58d1d7,_0x111d12){const _0x5775a0=_0x35200c;return this[_0x5775a0(0x143)](_0x425a61,_0x58d1d7)[_0x5775a0(0x13e)](_0x111d12);}[_0x35200c(0x13e)](_0x44eae6,_0x2e7e10,_0x230a3d){const _0xd5c064=_0x35200c;return this['_ensureShapeModelManager'](_0x44eae6,_0x2e7e10)[_0xd5c064(0x13e)](_0x230a3d);}[_0x35200c(0x122)](_0x3b6e63,_0x130007,_0x2a3314){const _0x4870f9=_0x35200c;return this[_0x4870f9(0x143)](_0x3b6e63,_0x130007)['hasShape'](_0x2a3314);}[_0x35200c(0x151)](_0x577700,_0x1e3ca0,_0x3a5df2){const _0x36d20c=_0x35200c;return this[_0x36d20c(0x143)](_0x577700,_0x1e3ca0)['getShapeType'](_0x3a5df2);}['getShapeDataById'](_0x592084,_0x695482,_0x53183a){const _0x5c2ac2=_0x35200c,_0x27c5cc=this['_ensureShapeModelManager'](_0x592084,_0x695482);if(!_0x27c5cc[_0x5c2ac2(0x13e)](_0x53183a))return;const _0x40749c=_0x27c5cc[_0x5c2ac2(0x156)]['get'](_0x53183a);if(_0x40749c)return _0x40749c[_0x5c2ac2(0x144)]();}[_0x35200c(0x134)](_0x2b22f4,_0x4d5723,_0x137bdf){const _0x171527=_0x35200c;return this['_ensureShapeModelManager'](_0x2b22f4,_0x4d5723)[_0x171527(0x156)][_0x171527(0x12f)](_0x137bdf);}[_0x35200c(0x168)](_0x38e84d,_0x1ccde,_0x11d9d9){const _0x56f78b=_0x35200c;return this[_0x56f78b(0x143)](_0x38e84d,_0x1ccde)['getBasicShapeRelation'](_0x11d9d9);}[_0x35200c(0x131)](_0x2003d4,_0x5949d1,_0x474e98){const _0x170577=_0x35200c,_0x5afb65=this['_ensureShapeModelManager'](_0x2003d4,_0x5949d1)[_0x170577(0x156)][_0x170577(0x12f)](_0x474e98);if(_0x5afb65)return _0x5afb65['getShapeRelation']();}[_0x35200c(0x12d)](){}['_serializeShapeForUnit'](_0x2275e4){const _0x1262ed=_0x35200c,_0x3430ca={},_0x3a7857=this[_0x1262ed(0x15d)][_0x1262ed(0x12f)](_0x2275e4);return _0x3a7857&&_0x3a7857[_0x1262ed(0x12e)]((_0x47776f,_0x5d2b20)=>{const _0x27e1e1=_0x1262ed;_0x3430ca[_0x5d2b20]=_0x47776f[_0x27e1e1(0x170)]();}),JSON[_0x1262ed(0x137)](_0x3430ca);}[_0x35200c(0x162)](_0x314c5a,_0x1dde9a){const _0x5e0819=_0x35200c;Object[_0x5e0819(0x161)](_0x1dde9a)['forEach'](_0xbebf60=>{const _0x45d84a=_0x5e0819;this[_0x45d84a(0x143)](_0x314c5a,_0xbebf60)['fromJSON'](_0x1dde9a[_0xbebf60]);});}[_0x35200c(0x170)](){const _0x328a0a=_0x35200c,_0x26dcea={};return this['_shapeModelManagerMap'][_0x328a0a(0x12e)]((_0x243c17,_0x38e8bd)=>{const _0x12a1f7=_0x328a0a;_0x26dcea[_0x38e8bd]={},_0x243c17[_0x12a1f7(0x12e)]((_0x2b46a0,_0x37856f)=>{const _0x596fbb=_0x12a1f7;_0x26dcea[_0x38e8bd][_0x37856f]=_0x2b46a0[_0x596fbb(0x170)]();});}),_0x26dcea;}[_0x35200c(0x152)](_0x43ba27){const _0x4da9d9=_0x35200c;Object[_0x4da9d9(0x161)](_0x43ba27)[_0x4da9d9(0x12e)](_0x2f8665=>{const _0x1c981b=_0x4da9d9,_0x2d07eb=_0x43ba27[_0x2f8665];Object[_0x1c981b(0x161)](_0x2d07eb)[_0x1c981b(0x12e)](_0x4b91ee=>{const _0x1ae62c=_0x1c981b;this[_0x1ae62c(0x143)](_0x2f8665,_0x4b91ee)[_0x1ae62c(0x152)](_0x2d07eb[_0x4b91ee]);});});}[_0x35200c(0x167)](){const _0x48ce2c=_0x35200c;this[_0x48ce2c(0x145)][_0x48ce2c(0x12c)]({'pluginName':W,'businesses':[_0x408f11['UNIVER_SHEET']],'toJson':_0x42eb65=>this[_0x48ce2c(0x159)](_0x42eb65),'parseJson':_0x5f14aa=>JSON['parse'](_0x5f14aa),'onLoad':(_0x5a9e60,_0x3db426)=>{const _0x4df61c=_0x48ce2c;this[_0x4df61c(0x162)](_0x5a9e60,_0x3db426);},'onUnLoad':_0x57ccfa=>{const _0x2127e2=_0x48ce2c,_0x787a2=this[_0x2127e2(0x15d)][_0x2127e2(0x12f)](_0x57ccfa);_0x787a2&&(_0x787a2[_0x2127e2(0x12e)](_0x2a960a=>{_0x2a960a['dispose']();}),this[_0x2127e2(0x15d)][_0x2127e2(0x135)](_0x57ccfa));}});}[_0x35200c(0x16f)](){const _0x47b57c=_0x35200c;this[_0x47b57c(0x15d)][_0x47b57c(0x12e)](_0x531ec1=>{_0x531ec1['forEach'](_0x2b094d=>{_0x2b094d['dispose']();});});}};function _0x5d3a(){const _0x45dd80=['sheet.mutation.insert-shape','every','27ioSUQe','_initSnapshot','getBasicShapeRelation','SHEET_SHAPE_PLUGIN','pushUndoRedo','6716965LZkqEP','6040524oCwYTg','getShapeRelation','getOwnPropertyDescriptor','dispose','toJSON','hasShape','COMMAND','_initCommands','addShape','MUTATION','push','_disposed','_config','registerCommand','1510070yDsWki','registerPluginResource','setShapeType','forEach','get','10231740NGEiez','getLineShapeRelation','shapeData','_groupIds','getShapeModel','delete','setConfig','stringify','sheet.mutation.update-shape-data','clear','27nMIuRw','1202112erLuzV','params','set','getShapeType','shapeId','_commandService','isLineShape','symbol','_ensureShapeModelManager','getShapeData','_resourcesManagerService','defineProperty','12JqpTfP','length','sheets-shape.config','499892DRLUcf','14461EVajiu','_linesIds','add','pluginName','onRendered','_configService','getShapeTypeById','fromJSON','UNIVER_SHEET','setShapeData','getBasicShapeType','_shapes','22UdDVpd','assign','_serializeShapeForUnit','type','removeShape','has','_shapeModelManagerMap','insertShape','from','42VYzOzs','keys','_deserializeShapeForUnit','_injector'];_0x5d3a=function(){return _0x45dd80;};return _0x5d3a();}function _0x4bc5(_0x3c53d9,_0x275d21){_0x3c53d9=_0x3c53d9-0x122;const _0x5d3a08=_0x5d3a();let _0x4bc5df=_0x5d3a08[_0x3c53d9];return _0x4bc5df;}i=V([K(0x0,_0x37ef3f)],i);const u={'id':'sheet.mutation.update-shape-type','type':_0x2bdcc7[_0x35200c(0x126)],'handler':(_0x2254d8,_0x474169)=>{const _0x29a0eb=_0x35200c,{unitId:_0x4a660e,subUnitId:_0x22d826,shapeType:_0x1f8638,shapeId:_0x6f7e0d,shapeData:_0x38c3f8}=_0x474169,_0x371768=_0x2254d8[_0x29a0eb(0x12f)](i)[_0x29a0eb(0x134)](_0x4a660e,_0x22d826,_0x6f7e0d);return _0x371768&&(_0x371768[_0x29a0eb(0x12d)](_0x1f8638),_0x38c3f8&&(_0x371768==null||_0x371768[_0x29a0eb(0x154)](_0x38c3f8))),!0x0;}},pe={'id':'sheet.command.update-shape-type','type':_0x2bdcc7[_0x35200c(0x123)],'handler':(_0x2849f9,_0x427b7e)=>{const _0x483216=_0x35200c;if(!_0x427b7e)return!0x1;const _0x79907a=_0x2849f9[_0x483216(0x12f)](_0x2a488f),_0x5db26b=_0x2849f9[_0x483216(0x12f)](i),_0x19fb21=_0x2849f9[_0x483216(0x12f)](_0x59eaf0),_0x18f8aa=[],_0xb5fb29=[],{unitId:_0x4f1fac,subUnitId:_0x367755,shapeId:_0x3ca4f4,shapeType:_0x15b87c,shapeData:_0xf6e277}=_0x427b7e,_0x58e20e=_0x5db26b[_0x483216(0x134)](_0x4f1fac,_0x367755,_0x3ca4f4);if(_0x58e20e){const _0x15f71f=_0x58e20e['getShapeType'](),_0x314fad=Object[_0x483216(0x158)]({},_0x58e20e['getShapeData']()),_0x4e8fcb={'unitId':_0x4f1fac,'subUnitId':_0x367755,'shapeId':_0x3ca4f4,'shapeType':_0x15b87c,'shapeData':_0xf6e277},_0x2a22db={'unitId':_0x4f1fac,'subUnitId':_0x367755,'shapeId':_0x3ca4f4,'shapeType':_0x15f71f,'shapeData':_0x314fad};return _0x18f8aa['push']({'id':u['id'],'params':_0x4e8fcb}),_0xb5fb29[_0x483216(0x127)]({'id':u['id'],'params':_0x2a22db}),_0x18f8aa[_0x483216(0x165)](_0x2a773f=>_0x79907a['syncExecuteCommand'](_0x2a773f['id'],_0x2a773f[_0x483216(0x13c)]))&&_0x19fb21[_0x483216(0x16a)]({'unitID':_0x4f1fac,'redoMutations':[..._0x18f8aa],'undoMutations':[..._0xb5fb29]}),!0x0;}return!0x1;}},Y={'id':_0x35200c(0x164),'type':_0x2bdcc7[_0x35200c(0x126)],'handler':(_0x1e16c0,_0x4ce8f8)=>{const _0x20cd51=_0x35200c,{unitId:_0x50d97c,subUnitId:_0x5c18db,shapeType:_0x5489d5,shapeId:_0x1b7db9,shapeData:_0xe2d8e1}=_0x4ce8f8;return _0x1e16c0[_0x20cd51(0x12f)](i)[_0x20cd51(0x15e)](_0x50d97c,_0x5c18db,_0x5489d5,_0x1b7db9,_0xe2d8e1),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x2bdcc7[_0x35200c(0x126)],'handler':(_0x676b33,_0x4fab3b)=>{const _0x4c02b6=_0x35200c,{unitId:_0xc2d2ac,subUnitId:_0x5b6865,shapeId:_0x1551fb}=_0x4fab3b;return _0x676b33[_0x4c02b6(0x12f)](i)[_0x4c02b6(0x15b)](_0xc2d2ac,_0x5b6865,_0x1551fb),!0x0;}},Q={'id':_0x35200c(0x138),'type':_0x2bdcc7['MUTATION'],'handler':(_0x4b44ca,_0x56c452)=>{const _0x56b5c9=_0x35200c,{unitId:_0x166f88,subUnitId:_0x29c9c2,shapeType:_0x3b947a,shapeId:_0x157143,shapeData:_0xabe73a}=_0x56c452,_0x14a5e5=_0x4b44ca[_0x56b5c9(0x12f)](i)[_0x56b5c9(0x134)](_0x166f88,_0x29c9c2,_0x157143);return _0x14a5e5&&(_0x3b947a!==void 0x0&&_0x14a5e5['setShapeType'](_0x3b947a),_0xabe73a&&(_0x14a5e5==null||_0x14a5e5[_0x56b5c9(0x154)](_0xabe73a,!0x0))),!0x0;}},X=_0x35200c(0x149),m={};var Z=Object[_0x35200c(0x146)],k=Object['getOwnPropertyDescriptor'],ee=(_0x540fac,_0x228b01,_0x3626ff)=>_0x228b01 in _0x540fac?Z(_0x540fac,_0x228b01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3626ff}):_0x540fac[_0x228b01]=_0x3626ff,ae=(_0x59ec39,_0x16aa18,_0x237a64,_0x38b2f8)=>{const _0x55acac=_0x35200c;for(var _0x956445=_0x38b2f8>0x1?void 0x0:_0x38b2f8?k(_0x16aa18,_0x237a64):_0x16aa18,_0x16f075=_0x59ec39[_0x55acac(0x148)]-0x1,_0x7ed1b6;_0x16f075>=0x0;_0x16f075--)(_0x7ed1b6=_0x59ec39[_0x16f075])&&(_0x956445=_0x7ed1b6(_0x956445)||_0x956445);return _0x956445;},g=(_0x41af88,_0x14a238)=>(_0x2b75f0,_0x5d6cf4)=>_0x14a238(_0x2b75f0,_0x5d6cf4,_0x41af88),E=(_0x3f2f11,_0xee24ac,_0x10a3a6)=>ee(_0x3f2f11,typeof _0xee24ac!='symbol'?_0xee24ac+'':_0xee24ac,_0x10a3a6);const se=_0x35200c(0x169);let S=class extends _0x338007{constructor(_0x4f6a28=m,_0x1a3719,_0x26ee8b,_0x2d1e8a){const _0x41c2af=_0x35200c;super(),this[_0x41c2af(0x129)]=_0x4f6a28,this[_0x41c2af(0x163)]=_0x1a3719,this[_0x41c2af(0x140)]=_0x26ee8b,this[_0x41c2af(0x150)]=_0x2d1e8a;const {..._0x4df21f}=_0x3bb588({},m,this[_0x41c2af(0x129)]);this['_configService'][_0x41c2af(0x136)](X,_0x4df21f),this['_initCommands']();}[_0x35200c(0x14f)](){const _0x215184=_0x35200c;_0x30ccc2(this[_0x215184(0x163)],[]);}['onStarting'](){const _0x4da854=_0x35200c,_0x489e36=this['_injector'];[[T],[i]][_0x4da854(0x12e)](_0x4f47a8=>_0x489e36[_0x4da854(0x14d)](_0x4f47a8));}[_0x35200c(0x124)](){const _0x4c5628=_0x35200c;[Y,q,u,Q]['forEach'](_0x48956e=>this['disposeWithMe'](this['_commandService'][_0x4c5628(0x12a)](_0x48956e)));}};E(S,_0x35200c(0x15a),_0x408f11[_0x35200c(0x153)]),E(S,_0x35200c(0x14e),se),S=ae([_0x2cc8da(_0x51e998),g(0x1,_0x2656b2(_0x2ead97)),g(0x2,_0x2a488f),g(0x3,_0x10a7a6)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeServices,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5c465e,_0x27b3f2){const _0x1556c5=_0x3fb4,_0x45eb1e=_0x5c465e();while(!![]){try{const _0x2b9c39=parseInt(_0x1556c5(0x138))/0x1*(parseInt(_0x1556c5(0x105))/0x2)+parseInt(_0x1556c5(0xd5))/0x3*(-parseInt(_0x1556c5(0x12d))/0x4)+-parseInt(_0x1556c5(0x119))/0x5*(-parseInt(_0x1556c5(0xeb))/0x6)+-parseInt(_0x1556c5(0x102))/0x7+-parseInt(_0x1556c5(0x11f))/0x8+parseInt(_0x1556c5(0xf5))/0x9*(parseInt(_0x1556c5(0xd6))/0xa)+-parseInt(_0x1556c5(0x108))/0xb*(-parseInt(_0x1556c5(0xff))/0xc);if(_0x2b9c39===_0x27b3f2)break;else _0x45eb1e['push'](_0x45eb1e['shift']());}catch(_0x3e5f1e){_0x45eb1e['push'](_0x45eb1e['shift']());}}}(_0xb57f,0x3ba19),function(_0x3c66f3,_0x5a7fcc){const _0x125884=_0x3fb4;typeof exports==_0x125884(0x103)&&typeof module<'u'?_0x5a7fcc(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x125884(0xf6)&&define['amd']?define([_0x125884(0x116),_0x125884(0x118),_0x125884(0x100),'@univerjs-pro/license'],_0x5a7fcc):(_0x3c66f3=typeof globalThis<'u'?globalThis:_0x3c66f3||self,_0x5a7fcc(_0x3c66f3[_0x125884(0x121)]={},_0x3c66f3[_0x125884(0x130)],_0x3c66f3['UniverProEngineShape'],_0x3c66f3[_0x125884(0x122)]));}(this,function(_0xa50417,_0x59fc20,_0x3997a4,_0x52095c){'use strict';const _0x302741=_0x3fb4;var _0x4ad5fc=Object[_0x302741(0xe1)],_0x36b9c0=(_0x23dd5f,_0x23ef4a,_0xc93af8)=>_0x23ef4a in _0x23dd5f?_0x4ad5fc(_0x23dd5f,_0x23ef4a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc93af8}):_0x23dd5f[_0x23ef4a]=_0xc93af8,_0x2b15a5=(_0x85a2d6,_0x2fb4d0,_0x55e359)=>_0x36b9c0(_0x85a2d6,typeof _0x2fb4d0!=_0x302741(0xe6)?_0x2fb4d0+'':_0x2fb4d0,_0x55e359);class _0x49491e extends _0x59fc20[_0x302741(0x132)]{constructor(){const _0x39c8e2=_0x302741;super(),_0x2b15a5(this,_0x39c8e2(0x11d),new Map()),_0x2b15a5(this,_0x39c8e2(0xe0),new Set()),_0x2b15a5(this,'_groupIds',new Set());}[_0x302741(0x12b)](_0x4729ec,_0x1042ed,_0x3f2a59){const _0x1c073e=_0x302741,_0x5e860d=new _0x3997a4[(_0x1c073e(0x12e))](_0x4729ec,_0x1042ed,_0x3f2a59);return this['_shapes'][_0x1c073e(0x109)](_0x1042ed,_0x5e860d),_0x3997a4['isConnectorShape'](_0x4729ec)&&this[_0x1c073e(0xe0)][_0x1c073e(0x104)](_0x1042ed),_0x5e860d;}[_0x302741(0xdd)](_0x1d16be){const _0x5d6e25=_0x302741;var _0x49c206,_0x51ed09;const _0x3509d9=[];for(const _0x3204a9 of this[_0x5d6e25(0xe0)]){const _0xb06147=this[_0x5d6e25(0x11d)][_0x5d6e25(0xe3)](_0x3204a9);if(_0xb06147){const _0x360a96=_0xb06147[_0x5d6e25(0xef)]();_0x360a96&&(((_0x49c206=_0x360a96['from'])==null?void 0x0:_0x49c206[_0x5d6e25(0x10a)])===_0x1d16be&&_0x3509d9[_0x5d6e25(0x123)]({..._0x360a96[_0x5d6e25(0x136)],'lineShapeId':_0x3204a9,'isFrom':!0x0}),((_0x51ed09=_0x360a96['to'])==null?void 0x0:_0x51ed09[_0x5d6e25(0x10a)])===_0x1d16be&&_0x3509d9['push']({..._0x360a96['to'],'lineShapeId':_0x3204a9,'isFrom':!0x1}));}}return _0x3509d9;}[_0x302741(0x11c)](_0x4d27c6){const _0x34f0c7=_0x302741,_0x35c688=this['_shapes'][_0x34f0c7(0xe3)](_0x4d27c6);if(_0x35c688)return _0x35c688['getShapeRelation']();}[_0x302741(0x12a)](_0x103d9f){const _0x482e4b=_0x302741,_0x2c7e2c=this[_0x482e4b(0x11d)][_0x482e4b(0xe3)](_0x103d9f);if(_0x2c7e2c)return _0x2c7e2c[_0x482e4b(0x12a)]();}['hasShape'](_0x24e08c){const _0x5a2842=_0x302741;return this['_shapes'][_0x5a2842(0x113)](_0x24e08c);}[_0x302741(0xf0)](_0x5a1962){const _0x38f868=_0x302741,_0x32dee5=this[_0x38f868(0x11d)]['get'](_0x5a1962);_0x32dee5&&(_0x3997a4['isConnectorShape'](_0x32dee5[_0x38f868(0x12a)]())&&this[_0x38f868(0xe0)][_0x38f868(0xf4)](_0x5a1962),this[_0x38f868(0x11d)]['delete'](_0x5a1962));}[_0x302741(0x11e)](){const _0x265ef4=_0x302741,_0x566317=[];return this[_0x265ef4(0x11d)]['forEach'](_0x429103=>{const _0x2e4f1e=_0x265ef4;_0x566317[_0x2e4f1e(0x123)](_0x429103['toJSON']());}),_0x566317;}[_0x302741(0xd8)](_0x9b1518){const _0x26b656=_0x302741;for(const _0x4860ed of _0x9b1518){const {id:_0x4cb3e4,shapeType:_0x49a3be}=_0x4860ed,_0x56c29e=this[_0x26b656(0x12b)](_0x49a3be,_0x4cb3e4,_0x4860ed[_0x26b656(0xf7)]);_0x56c29e&&_0x56c29e[_0x26b656(0xd7)]()&&this[_0x26b656(0xe0)][_0x26b656(0x104)](_0x4cb3e4);}}[_0x302741(0x12c)](){const _0x40b319=_0x302741;this[_0x40b319(0xde)]||(this['_shapes'][_0x40b319(0xe9)](_0x3eaa40=>{const _0x5326dc=_0x40b319;_0x3eaa40[_0x5326dc(0x12c)]();}),this[_0x40b319(0x11d)][_0x40b319(0xd3)](),this[_0x40b319(0xe0)][_0x40b319(0xd3)](),this['_groupIds']['clear'](),super['dispose']());}}var _0x561b1a=Object['getOwnPropertyDescriptor'],_0x5675c8=(_0x385ad4,_0x4f0841,_0x2ccce4,_0x2880c3)=>{const _0x3445bf=_0x302741;for(var _0x3d63fa=_0x2880c3>0x1?void 0x0:_0x2880c3?_0x561b1a(_0x4f0841,_0x2ccce4):_0x4f0841,_0x56ef45=_0x385ad4[_0x3445bf(0x101)]-0x1,_0x694dd;_0x56ef45>=0x0;_0x56ef45--)(_0x694dd=_0x385ad4[_0x56ef45])&&(_0x3d63fa=_0x694dd(_0x3d63fa)||_0x3d63fa);return _0x3d63fa;},_0x359d87=(_0x371342,_0x547c2c)=>(_0x557e7d,_0x447171)=>_0x547c2c(_0x557e7d,_0x447171,_0x371342);const _0x590218='SHEET_SHAPE_PLUGIN';_0xa50417[_0x302741(0xe2)]=class extends _0x59fc20['Disposable']{constructor(_0x59e6f6){const _0xe66563=_0x302741;super(),_0x2b15a5(this,_0xe66563(0xe4),new Map()),(this['_resourcesManagerService']=_0x59e6f6,this[_0xe66563(0x133)]());}[_0x302741(0x115)](_0x1475df,_0x392832){const _0x4e67f6=_0x302741;let _0x2710f9=this[_0x4e67f6(0xe4)][_0x4e67f6(0xe3)](_0x1475df);_0x2710f9||(_0x2710f9=new Map(),this[_0x4e67f6(0xe4)][_0x4e67f6(0x109)](_0x1475df,_0x2710f9));let _0x5e46f7=_0x2710f9[_0x4e67f6(0xe3)](_0x392832);return _0x5e46f7||(_0x5e46f7=new _0x49491e(),_0x2710f9['set'](_0x392832,_0x5e46f7)),_0x5e46f7;}[_0x302741(0x11a)](_0x30727c,_0x24a095,_0x2c8afc,_0x1a9b5d,_0x2ba7dd){const _0x54f195=_0x302741;this[_0x54f195(0x115)](_0x30727c,_0x24a095)['addShape'](_0x2c8afc,_0x1a9b5d,_0x2ba7dd);}['removeShape'](_0x4f5fbc,_0x4719f7,_0x525b92){const _0xcf54e1=_0x302741;this[_0xcf54e1(0x115)](_0x4f5fbc,_0x4719f7)[_0xcf54e1(0xf0)](_0x525b92);}['getBasicShapeType'](_0x1f113c,_0x37a2a3,_0x5894d0){const _0x2e0446=_0x302741;return this[_0x2e0446(0x115)](_0x1f113c,_0x37a2a3)[_0x2e0446(0x12a)](_0x5894d0);}[_0x302741(0x12a)](_0x385086,_0x397a5c,_0x4abc32){const _0x2fb377=_0x302741;return this[_0x2fb377(0x115)](_0x385086,_0x397a5c)['getShapeType'](_0x4abc32);}[_0x302741(0x120)](_0x33c858,_0x116e6b,_0x1e01d0){const _0xa5091=_0x302741;return this[_0xa5091(0x115)](_0x33c858,_0x116e6b)[_0xa5091(0x120)](_0x1e01d0);}[_0x302741(0xdc)](_0x32e79a,_0x3015f5,_0x35c7c2){const _0x17ea3b=_0x302741;return this[_0x17ea3b(0x115)](_0x32e79a,_0x3015f5)[_0x17ea3b(0x12a)](_0x35c7c2);}[_0x302741(0x12f)](_0x6d187c,_0x29f525,_0x2b4284){const _0x51cf1a=_0x302741,_0x34de26=this[_0x51cf1a(0x115)](_0x6d187c,_0x29f525);if(!_0x34de26['getShapeType'](_0x2b4284))return;const _0x538235=_0x34de26[_0x51cf1a(0x11d)]['get'](_0x2b4284);if(_0x538235)return _0x538235[_0x51cf1a(0x111)]();}[_0x302741(0xda)](_0x343369,_0x274d3c,_0x502e29){const _0x4c492b=_0x302741;return this[_0x4c492b(0x115)](_0x343369,_0x274d3c)[_0x4c492b(0x11d)][_0x4c492b(0xe3)](_0x502e29);}[_0x302741(0xdd)](_0x430bc5,_0x2985bb,_0x3606d1){const _0x6919b9=_0x302741;return this[_0x6919b9(0x115)](_0x430bc5,_0x2985bb)[_0x6919b9(0xdd)](_0x3606d1);}[_0x302741(0x11c)](_0x133d4a,_0x29d4d9,_0x26954c){const _0x4b04d5=_0x302741,_0x48fa46=this[_0x4b04d5(0x115)](_0x133d4a,_0x29d4d9)[_0x4b04d5(0x11d)][_0x4b04d5(0xe3)](_0x26954c);if(_0x48fa46)return _0x48fa46[_0x4b04d5(0xef)]();}[_0x302741(0xd4)](){}[_0x302741(0x10f)](_0x1946e7){const _0x48c905=_0x302741,_0x74306d={},_0x7db3a7=this[_0x48c905(0xe4)][_0x48c905(0xe3)](_0x1946e7);return _0x7db3a7&&_0x7db3a7['forEach']((_0x3cf0a9,_0x121a17)=>{_0x74306d[_0x121a17]=_0x3cf0a9['toJSON']();}),JSON[_0x48c905(0xd9)](_0x74306d);}[_0x302741(0xfb)](_0x138fc5,_0x3ea9cc){const _0x4ff6b9=_0x302741;Object[_0x4ff6b9(0x13a)](_0x3ea9cc)[_0x4ff6b9(0xe9)](_0x3ffd06=>{const _0xaa7d27=_0x4ff6b9;this[_0xaa7d27(0x115)](_0x138fc5,_0x3ffd06)[_0xaa7d27(0xd8)](_0x3ea9cc[_0x3ffd06]);});}[_0x302741(0x11e)](){const _0x2add46=_0x302741,_0x2573c0={};return this[_0x2add46(0xe4)][_0x2add46(0xe9)]((_0xb358a6,_0x3ef6ce)=>{const _0x24e164=_0x2add46;_0x2573c0[_0x3ef6ce]={},_0xb358a6[_0x24e164(0xe9)]((_0x1d4471,_0x56b888)=>{const _0x1c5693=_0x24e164;_0x2573c0[_0x3ef6ce][_0x56b888]=_0x1d4471[_0x1c5693(0x11e)]();});}),_0x2573c0;}['fromJSON'](_0x8f0f4f){const _0x37c782=_0x302741;Object[_0x37c782(0x13a)](_0x8f0f4f)[_0x37c782(0xe9)](_0x13e672=>{const _0x21854a=_0x37c782,_0x3d8619=_0x8f0f4f[_0x13e672];Object[_0x21854a(0x13a)](_0x3d8619)[_0x21854a(0xe9)](_0x10e133=>{const _0x57c041=_0x21854a;this[_0x57c041(0x115)](_0x13e672,_0x10e133)[_0x57c041(0xd8)](_0x3d8619[_0x10e133]);});});}[_0x302741(0x133)](){const _0xf85df9=_0x302741;this[_0xf85df9(0x117)][_0xf85df9(0x126)]({'pluginName':_0x590218,'businesses':[_0x59fc20[_0xf85df9(0x125)][_0xf85df9(0x110)]],'toJson':_0x30c042=>this[_0xf85df9(0x10f)](_0x30c042),'parseJson':_0x51a78a=>JSON[_0xf85df9(0xec)](_0x51a78a),'onLoad':(_0xdba56a,_0xfa94ae)=>{this['_deserializeShapeForUnit'](_0xdba56a,_0xfa94ae);},'onUnLoad':_0x45085c=>{const _0x8eb7ca=_0xf85df9,_0x521738=this[_0x8eb7ca(0xe4)]['get'](_0x45085c);_0x521738&&(_0x521738[_0x8eb7ca(0xe9)](_0xb23b06=>{_0xb23b06['dispose']();}),this[_0x8eb7ca(0xe4)][_0x8eb7ca(0xf4)](_0x45085c));}});}['dispose'](){const _0x33a262=_0x302741;this[_0x33a262(0xe4)][_0x33a262(0xe9)](_0x1e41f2=>{const _0x476d0e=_0x33a262;_0x1e41f2[_0x476d0e(0xe9)](_0x3aa39c=>{const _0x3d7974=_0x476d0e;_0x3aa39c[_0x3d7974(0x12c)]();});});}},_0xa50417[_0x302741(0xe2)]=_0x5675c8([_0x359d87(0x0,_0x59fc20[_0x302741(0x112)])],_0xa50417[_0x302741(0xe2)]);const _0x4dba2d={'id':'sheet.mutation.update-shape-type','type':_0x59fc20[_0x302741(0xfa)]['MUTATION'],'handler':(_0x669cf6,_0xe805c7)=>{const _0x359006=_0x302741,{unitId:_0x534e16,subUnitId:_0x1d954e,shapeType:_0x179be0,shapeId:_0x426bdb,shapeData:_0x182b24}=_0xe805c7,_0x28eca6=_0x669cf6[_0x359006(0xe3)](_0xa50417[_0x359006(0xe2)])[_0x359006(0xda)](_0x534e16,_0x1d954e,_0x426bdb);return _0x28eca6&&(_0x28eca6[_0x359006(0xd4)](_0x179be0),_0x182b24&&(_0x28eca6==null||_0x28eca6['setShapeData'](_0x182b24))),!0x0;}},_0x196dbd={'id':'sheet.command.update-shape-type','type':_0x59fc20['CommandType']['COMMAND'],'handler':(_0x5aec38,_0x3ee364)=>{const _0x343350=_0x302741;if(!_0x3ee364)return!0x1;const _0x5903f7=_0x5aec38[_0x343350(0xe3)](_0x59fc20['ICommandService']),_0x29d3f6=_0x5aec38[_0x343350(0xe3)](_0xa50417[_0x343350(0xe2)]),_0x4f5208=_0x5aec38[_0x343350(0xe3)](_0x59fc20['IUndoRedoService']),_0x4bd48f=[],_0x378751=[],{unitId:_0x2b93b5,subUnitId:_0xbfb9ba,shapeId:_0x27bcb0,shapeType:_0x404ca9,shapeData:_0x3c581e}=_0x3ee364,_0x289c7c=_0x29d3f6[_0x343350(0xda)](_0x2b93b5,_0xbfb9ba,_0x27bcb0);if(_0x289c7c){const _0x38b18e=_0x289c7c[_0x343350(0x12a)](),_0x378023=Object[_0x343350(0x124)]({},_0x289c7c['getShapeData']()),_0x174969={'unitId':_0x2b93b5,'subUnitId':_0xbfb9ba,'shapeId':_0x27bcb0,'shapeType':_0x404ca9,'shapeData':_0x3c581e},_0x1ffea9={'unitId':_0x2b93b5,'subUnitId':_0xbfb9ba,'shapeId':_0x27bcb0,'shapeType':_0x38b18e,'shapeData':_0x378023};return _0x4bd48f[_0x343350(0x123)]({'id':_0x4dba2d['id'],'params':_0x174969}),_0x378751['push']({'id':_0x4dba2d['id'],'params':_0x1ffea9}),_0x4bd48f['every'](_0x448af=>_0x5903f7[_0x343350(0xe8)](_0x448af['id'],_0x448af[_0x343350(0x10c)]))&&_0x4f5208[_0x343350(0xee)]({'unitID':_0x2b93b5,'redoMutations':[..._0x4bd48f],'undoMutations':[..._0x378751]}),!0x0;}return!0x1;}},_0x58dabc={'id':_0x302741(0x131),'type':_0x59fc20['CommandType'][_0x302741(0x129)],'handler':(_0x1b1064,_0x4db31a)=>{const _0x39d709=_0x302741,{unitId:_0x3637b9,subUnitId:_0x47a4de,shapeType:_0x21d0c7,shapeId:_0x5ab307,shapeData:_0x37df74}=_0x4db31a;return _0x1b1064[_0x39d709(0xe3)](_0xa50417['SheetsShapeServices'])[_0x39d709(0x11a)](_0x3637b9,_0x47a4de,_0x21d0c7,_0x5ab307,_0x37df74),!0x0;}},_0x43509c={'id':_0x302741(0x10e),'type':_0x59fc20['CommandType'][_0x302741(0x129)],'handler':(_0x370a09,_0x3a7d1d)=>{const _0x52f6bc=_0x302741,{unitId:_0xadc44c,subUnitId:_0xdfc94d,shapeId:_0x1d5391}=_0x3a7d1d;return _0x370a09[_0x52f6bc(0xe3)](_0xa50417[_0x52f6bc(0xe2)])[_0x52f6bc(0xf0)](_0xadc44c,_0xdfc94d,_0x1d5391),!0x0;}},_0x4cee9e={'id':'sheet.mutation.update-shape-data','type':_0x59fc20[_0x302741(0xfa)]['MUTATION'],'handler':(_0x594bc5,_0x4e182b)=>{const _0x266718=_0x302741,{unitId:_0x2c1fb0,subUnitId:_0x5b34e8,shapeType:_0x44b167,shapeId:_0x48c2a7,shapeData:_0x125ce0}=_0x4e182b,_0x1303a9=_0x594bc5['get'](_0xa50417['SheetsShapeServices'])[_0x266718(0xda)](_0x2c1fb0,_0x5b34e8,_0x48c2a7);return _0x1303a9&&(_0x44b167!==void 0x0&&_0x1303a9[_0x266718(0xd4)](_0x44b167),_0x125ce0&&(_0x1303a9==null||_0x1303a9[_0x266718(0x13b)](_0x125ce0,!0x0))),!0x0;}},_0x23ecbb=_0x302741(0x139),_0x577969={};var _0x64370=Object['defineProperty'],_0x19d3f7=Object[_0x302741(0x114)],_0x20adaa=(_0x2f7251,_0x4fa94a,_0xf4f40c)=>_0x4fa94a in _0x2f7251?_0x64370(_0x2f7251,_0x4fa94a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf4f40c}):_0x2f7251[_0x4fa94a]=_0xf4f40c,_0x52b945=(_0x36dd8f,_0x5eaa11,_0x21cb86,_0x42cb52)=>{const _0x496cbe=_0x302741;for(var _0x45e4e1=_0x42cb52>0x1?void 0x0:_0x42cb52?_0x19d3f7(_0x5eaa11,_0x21cb86):_0x5eaa11,_0x3f4157=_0x36dd8f[_0x496cbe(0x101)]-0x1,_0x5e1580;_0x3f4157>=0x0;_0x3f4157--)(_0x5e1580=_0x36dd8f[_0x3f4157])&&(_0x45e4e1=_0x5e1580(_0x45e4e1)||_0x45e4e1);return _0x45e4e1;},_0x3d7e45=(_0x218751,_0x5ed25f)=>(_0x7ed982,_0x54e0f0)=>_0x5ed25f(_0x7ed982,_0x54e0f0,_0x218751),_0x4b7a2a=(_0x23b30c,_0x3a7aca,_0x331c78)=>_0x20adaa(_0x23b30c,typeof _0x3a7aca!=_0x302741(0xe6)?_0x3a7aca+'':_0x3a7aca,_0x331c78);const _0x1bb9bf=_0x302741(0x137);_0xa50417[_0x302741(0xdb)]=class extends _0x59fc20[_0x302741(0xf9)]{constructor(_0x51c342=_0x577969,_0x2c31b4,_0x1c9ce0,_0x347c3e){const _0x4889c2=_0x302741;super(),this[_0x4889c2(0x106)]=_0x51c342,this[_0x4889c2(0xfe)]=_0x2c31b4,this[_0x4889c2(0xf3)]=_0x1c9ce0,this['_configService']=_0x347c3e;const {..._0x3f245d}=_0x59fc20['merge']({},_0x577969,this[_0x4889c2(0x106)]);this[_0x4889c2(0x11b)][_0x4889c2(0x10d)](_0x23ecbb,_0x3f245d),this[_0x4889c2(0x128)]();}[_0x302741(0x10b)](){_0x59fc20['touchDependencies'](this['_injector'],[]);}[_0x302741(0xed)](){const _0x446720=_0x302741,_0x3d92e9=this[_0x446720(0xfe)];[[_0x49491e],[_0xa50417[_0x446720(0xe2)]]][_0x446720(0xe9)](_0x403ca8=>_0x3d92e9[_0x446720(0x104)](_0x403ca8));}['_initCommands'](){const _0x58b074=_0x302741;[_0x58dabc,_0x43509c,_0x4dba2d,_0x4cee9e][_0x58b074(0xe9)](_0x3c0fd7=>this[_0x58b074(0xea)](this['_commandService']['registerCommand'](_0x3c0fd7)));}},_0x4b7a2a(_0xa50417[_0x302741(0xdb)],'type',_0x59fc20['UniverInstanceType'][_0x302741(0x110)]),_0x4b7a2a(_0xa50417[_0x302741(0xdb)],_0x302741(0x135),_0x1bb9bf),_0xa50417[_0x302741(0xdb)]=_0x52b945([_0x59fc20[_0x302741(0xf1)](_0x52095c[_0x302741(0xf8)]),_0x3d7e45(0x1,_0x59fc20[_0x302741(0x127)](_0x59fc20[_0x302741(0xe5)])),_0x3d7e45(0x2,_0x59fc20[_0x302741(0xe7)]),_0x3d7e45(0x3,_0x59fc20['IConfigService'])],_0xa50417[_0x302741(0xdb)]),_0xa50417[_0x302741(0x107)]=_0x58dabc,_0xa50417[_0x302741(0x134)]=_0x43509c,_0xa50417[_0x302741(0xfd)]=_0x4cee9e,_0xa50417[_0x302741(0xfc)]=_0x196dbd,_0xa50417['UpdateSheetsShapeTypeMutation']=_0x4dba2d,Object[_0x302741(0xe1)](_0xa50417,Symbol[_0x302741(0xf2)],{'value':_0x302741(0xdf)});}));function _0x3fb4(_0x205f4e,_0x41a07b){_0x205f4e=_0x205f4e-0xd3;const _0xb57f01=_0xb57f();let _0x3fb415=_0xb57f01[_0x205f4e];return _0x3fb415;}function _0xb57f(){const _0x1d81a1=['3555YwRAwn','sheets-shape.config','keys','setShapeData','clear','setShapeType','1065027RiyWiL','30GoEAYT','isLineShape','fromJSON','stringify','getShapeModel','UniverSheetsShapePlugin','getShapeTypeById','getBasicShapeRelation','_disposed','Module','_linesIds','defineProperty','SheetsShapeServices','get','_shapeModelManagerMap','Injector','symbol','ICommandService','syncExecuteCommand','forEach','disposeWithMe','6AXlXQI','parse','onStarting','pushUndoRedo','getShapeRelation','removeShape','DependentOn','toStringTag','_commandService','delete','706032AQXSLK','function','shapeData','UniverLicensePlugin','Plugin','CommandType','_deserializeShapeForUnit','UpdateSheetsShapeTypeCommand','UpdateSheetsShapeDataMutation','_injector','720NETNaJ','@univerjs-pro/engine-shape','length','1491021lDvQJY','object','add','62vAfaLQ','_config','InsertSheetsShapeMutation','111694OFPYHX','set','shapeId','onRendered','params','setConfig','sheet.mutation.remove-shape','_serializeShapeForUnit','UNIVER_SHEET','getShapeData','IResourceManagerService','has','getOwnPropertyDescriptor','_ensureShapeModelManager','exports','_resourcesManagerService','@univerjs/core','73930dGcZum','insertShape','_configService','getLineShapeRelation','_shapes','toJSON','1258512mTZdRw','hasShape','UniverProSheetsShape','UniverProLicense','push','assign','UniverInstanceType','registerPluginResource','Inject','_initCommands','MUTATION','getShapeType','addShape','dispose','4znTWve','ShapeModel','getShapeDataById','UniverCore','sheet.mutation.insert-shape','Disposable','_initSnapshot','RemoveSheetsShapeMutation','pluginName','from','SHEET_SHAPE_PLUGIN'];_0xb57f=function(){return _0x1d81a1;};return _0xb57f();}
1
+ function _0x56ff(){const _0x479b90=['DependentOn','stringify','sheet.mutation.update-shape-data','ShapeModel','get','delete','exports','InsertSheetsShapeMutation','sheet.mutation.insert-shape','defineProperty','@univerjs-pro/license','Disposable','_ensureShapeModelManager','shapeData','11csisMZ','UpdateSheetsShapeTypeCommand','has','getShapeRelation','26015380OrqXdW','syncExecuteCommand','clear','322864dXCEbf','UniverProSheetsShape','_initCommands','_serializeShapeForUnit','from','onStarting','keys','isLineShape','type','pushUndoRedo','registerCommand','getOwnPropertyDescriptor','setShapeType','shapeId','registerPluginResource','parse','_config','Injector','sheet.command.update-shape-type','fromJSON','_injector','_commandService','_groupIds','toJSON','sheet.mutation.update-shape-type','Module','UniverProEngineShape','MUTATION','hasShape','159EJxHyG','UniverSheetsShapePlugin','forEach','UniverInstanceType','getShapeDataById','_shapes','ICommandService','push','@univerjs/core','pluginName','Inject','getBasicShapeRelation','UNIVER_SHEET','getShapeData','getShapeModel','1686192RsHIXN','insertShape','addShape','RemoveSheetsShapeMutation','dispose','_resourcesManagerService','_initSnapshot','IConfigService','every','isConnectorShape','55542gdxSNq','40856MoPYXT','setConfig','object','symbol','toStringTag','_shapeModelManagerMap','length','set','5348695RXRTjh','900OQzwdY','_linesIds','getShapeType','sheets-shape.config','_disposed','COMMAND','SHEET_SHAPE_PLUGIN','add','IUndoRedoService','_deserializeShapeForUnit','SheetsShapeServices','merge','CommandType','assign','getBasicShapeType','setShapeData','_configService','84KutYtq','39724zbMMUU','removeShape','UniverProLicense'];_0x56ff=function(){return _0x479b90;};return _0x56ff();}function _0x4669(_0x486d33,_0x3fdaa5){_0x486d33=_0x486d33-0xd3;const _0x56ffa2=_0x56ff();let _0x46692e=_0x56ffa2[_0x486d33];return _0x46692e;}(function(_0x218541,_0x2c5b70){const _0x3d4bec=_0x4669,_0x49ceb7=_0x218541();while(!![]){try{const _0x29bdb4=-parseInt(_0x3d4bec(0xec))/0x1+parseInt(_0x3d4bec(0x118))/0x2+parseInt(_0x3d4bec(0x109))/0x3*(-parseInt(_0x3d4bec(0xd4))/0x4)+-parseInt(_0x3d4bec(0x12b))/0x5+-parseInt(_0x3d4bec(0x122))/0x6*(parseInt(_0x3d4bec(0xd3))/0x7)+parseInt(_0x3d4bec(0x123))/0x8*(-parseInt(_0x3d4bec(0x12c))/0x9)+-parseInt(_0x3d4bec(0xe9))/0xa*(-parseInt(_0x3d4bec(0xe5))/0xb);if(_0x29bdb4===_0x2c5b70)break;else _0x49ceb7['push'](_0x49ceb7['shift']());}catch(_0x2801fa){_0x49ceb7['push'](_0x49ceb7['shift']());}}}(_0x56ff,0xdcae0),function(_0x5b85dc,_0x486180){const _0x404c6e=_0x4669;typeof exports==_0x404c6e(0x125)&&typeof module<'u'?_0x486180(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0x404c6e(0xdd),_0x404c6e(0x111),'@univerjs-pro/engine-shape',_0x404c6e(0xe1)],_0x486180):(_0x5b85dc=typeof globalThis<'u'?globalThis:_0x5b85dc||self,_0x486180(_0x5b85dc[_0x404c6e(0xed)]={},_0x5b85dc['UniverCore'],_0x5b85dc[_0x404c6e(0x106)],_0x5b85dc[_0x404c6e(0xd6)]));}(this,function(_0x2c90b5,_0x2f5d5f,_0x41a652,_0x1c999){'use strict';const _0x326fe7=_0x4669;var _0x457a00=Object['defineProperty'],_0x598a76=(_0x4d518b,_0xcb4ffd,_0x193d2b)=>_0xcb4ffd in _0x4d518b?_0x457a00(_0x4d518b,_0xcb4ffd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x193d2b}):_0x4d518b[_0xcb4ffd]=_0x193d2b,_0x2eabd1=(_0x58a10f,_0x583561,_0x1ea91b)=>_0x598a76(_0x58a10f,typeof _0x583561!=_0x326fe7(0x126)?_0x583561+'':_0x583561,_0x1ea91b);class _0x264acf extends _0x2f5d5f[_0x326fe7(0xe2)]{constructor(){const _0x2f2c37=_0x326fe7;super(),_0x2eabd1(this,_0x2f2c37(0x10e),new Map()),_0x2eabd1(this,_0x2f2c37(0x12d),new Set()),_0x2eabd1(this,'_groupIds',new Set());}['addShape'](_0x50e97d,_0x351586,_0x7facd7){const _0x10fbb1=_0x326fe7,_0x4e4ce3=new _0x41a652[(_0x10fbb1(0xda))](_0x50e97d,_0x351586,_0x7facd7);return this[_0x10fbb1(0x10e)][_0x10fbb1(0x12a)](_0x351586,_0x4e4ce3),_0x41a652[_0x10fbb1(0x121)](_0x50e97d)&&this['_linesIds'][_0x10fbb1(0x133)](_0x351586),_0x4e4ce3;}[_0x326fe7(0x114)](_0x40fd06){const _0x301a62=_0x326fe7;var _0x1e3a24,_0x3dfd4c;const _0x2d386a=[];for(const _0x196926 of this['_linesIds']){const _0x3fa416=this[_0x301a62(0x10e)][_0x301a62(0xdb)](_0x196926);if(_0x3fa416){const _0x3855c5=_0x3fa416[_0x301a62(0xe8)]();_0x3855c5&&(((_0x1e3a24=_0x3855c5[_0x301a62(0xf0)])==null?void 0x0:_0x1e3a24[_0x301a62(0xf9)])===_0x40fd06&&_0x2d386a[_0x301a62(0x110)]({..._0x3855c5['from'],'lineShapeId':_0x196926,'isFrom':!0x0}),((_0x3dfd4c=_0x3855c5['to'])==null?void 0x0:_0x3dfd4c[_0x301a62(0xf9)])===_0x40fd06&&_0x2d386a[_0x301a62(0x110)]({..._0x3855c5['to'],'lineShapeId':_0x196926,'isFrom':!0x1}));}}return _0x2d386a;}['getLineShapeRelation'](_0x18cb4e){const _0x25c108=_0x326fe7,_0x2fed7b=this[_0x25c108(0x10e)][_0x25c108(0xdb)](_0x18cb4e);if(_0x2fed7b)return _0x2fed7b[_0x25c108(0xe8)]();}['getShapeType'](_0x4bb0b7){const _0x59733e=_0x326fe7,_0x1ef56f=this[_0x59733e(0x10e)][_0x59733e(0xdb)](_0x4bb0b7);if(_0x1ef56f)return _0x1ef56f[_0x59733e(0x12e)]();}[_0x326fe7(0x108)](_0x3fc61f){const _0x341cb0=_0x326fe7;return this[_0x341cb0(0x10e)][_0x341cb0(0xe7)](_0x3fc61f);}[_0x326fe7(0xd5)](_0x4766c7){const _0x24f714=_0x326fe7,_0x5ee7fc=this['_shapes'][_0x24f714(0xdb)](_0x4766c7);_0x5ee7fc&&(_0x41a652[_0x24f714(0x121)](_0x5ee7fc[_0x24f714(0x12e)]())&&this[_0x24f714(0x12d)][_0x24f714(0xdc)](_0x4766c7),this[_0x24f714(0x10e)]['delete'](_0x4766c7));}[_0x326fe7(0x103)](){const _0x32ef65=_0x326fe7,_0x342712=[];return this[_0x32ef65(0x10e)][_0x32ef65(0x10b)](_0x118a1e=>{const _0x594e26=_0x32ef65;_0x342712[_0x594e26(0x110)](_0x118a1e[_0x594e26(0x103)]());}),_0x342712;}[_0x326fe7(0xff)](_0x1c1c00){const _0x5afdd1=_0x326fe7;for(const _0x539113 of _0x1c1c00){const {id:_0x2ffcf1,shapeType:_0x4f02eb}=_0x539113,_0x32970a=this[_0x5afdd1(0x11a)](_0x4f02eb,_0x2ffcf1,_0x539113[_0x5afdd1(0xe4)]);_0x32970a&&_0x32970a[_0x5afdd1(0xf3)]()&&this[_0x5afdd1(0x12d)]['add'](_0x2ffcf1);}}[_0x326fe7(0x11c)](){const _0x23a67b=_0x326fe7;this[_0x23a67b(0x130)]||(this[_0x23a67b(0x10e)][_0x23a67b(0x10b)](_0x4ebcf2=>{const _0x514b17=_0x23a67b;_0x4ebcf2[_0x514b17(0x11c)]();}),this[_0x23a67b(0x10e)][_0x23a67b(0xeb)](),this[_0x23a67b(0x12d)][_0x23a67b(0xeb)](),this[_0x23a67b(0x102)][_0x23a67b(0xeb)](),super[_0x23a67b(0x11c)]());}}var _0x5677e5=Object[_0x326fe7(0xf7)],_0x1a52db=(_0x19f283,_0x2c8cc4,_0x356996,_0x5341a1)=>{const _0x1db8ed=_0x326fe7;for(var _0x1ccec4=_0x5341a1>0x1?void 0x0:_0x5341a1?_0x5677e5(_0x2c8cc4,_0x356996):_0x2c8cc4,_0x132320=_0x19f283[_0x1db8ed(0x129)]-0x1,_0x413fa8;_0x132320>=0x0;_0x132320--)(_0x413fa8=_0x19f283[_0x132320])&&(_0x1ccec4=_0x413fa8(_0x1ccec4)||_0x1ccec4);return _0x1ccec4;},_0x3f5778=(_0x3cc2e0,_0x12d4cc)=>(_0x582184,_0x900dbb)=>_0x12d4cc(_0x582184,_0x900dbb,_0x3cc2e0);const _0x6de9de=_0x326fe7(0x132);_0x2c90b5[_0x326fe7(0x136)]=class extends _0x2f5d5f[_0x326fe7(0xe2)]{constructor(_0x17841f){const _0x526230=_0x326fe7;super(),_0x2eabd1(this,'_shapeModelManagerMap',new Map()),(this[_0x526230(0x11d)]=_0x17841f,this[_0x526230(0x11e)]());}['_ensureShapeModelManager'](_0x54a328,_0x1e5fc6){const _0x57c9f1=_0x326fe7;let _0x5c5aac=this[_0x57c9f1(0x128)]['get'](_0x54a328);_0x5c5aac||(_0x5c5aac=new Map(),this[_0x57c9f1(0x128)][_0x57c9f1(0x12a)](_0x54a328,_0x5c5aac));let _0x54c15d=_0x5c5aac['get'](_0x1e5fc6);return _0x54c15d||(_0x54c15d=new _0x264acf(),_0x5c5aac[_0x57c9f1(0x12a)](_0x1e5fc6,_0x54c15d)),_0x54c15d;}[_0x326fe7(0x119)](_0x16ab7a,_0x29f110,_0x14757d,_0x21b7c7,_0x4e04c1){const _0x2c2e96=_0x326fe7;this[_0x2c2e96(0xe3)](_0x16ab7a,_0x29f110)[_0x2c2e96(0x11a)](_0x14757d,_0x21b7c7,_0x4e04c1);}['removeShape'](_0x35253c,_0x277158,_0x4004ef){const _0x515342=_0x326fe7;this[_0x515342(0xe3)](_0x35253c,_0x277158)[_0x515342(0xd5)](_0x4004ef);}[_0x326fe7(0x13a)](_0x1eff5b,_0x4d4404,_0x2acbda){const _0x4f8d64=_0x326fe7;return this[_0x4f8d64(0xe3)](_0x1eff5b,_0x4d4404)[_0x4f8d64(0x12e)](_0x2acbda);}[_0x326fe7(0x12e)](_0x20dfe4,_0x4a85f0,_0x4d67a7){const _0x512b38=_0x326fe7;return this[_0x512b38(0xe3)](_0x20dfe4,_0x4a85f0)[_0x512b38(0x12e)](_0x4d67a7);}['hasShape'](_0x2d87cc,_0x48eb43,_0x39418f){const _0x3973b8=_0x326fe7;return this[_0x3973b8(0xe3)](_0x2d87cc,_0x48eb43)[_0x3973b8(0x108)](_0x39418f);}['getShapeTypeById'](_0x2a67cf,_0x3015d1,_0x478f90){const _0x429092=_0x326fe7;return this[_0x429092(0xe3)](_0x2a67cf,_0x3015d1)['getShapeType'](_0x478f90);}[_0x326fe7(0x10d)](_0x2e4c92,_0x2ce558,_0x4ef4ee){const _0x24ea87=_0x326fe7,_0x322327=this[_0x24ea87(0xe3)](_0x2e4c92,_0x2ce558);if(!_0x322327[_0x24ea87(0x12e)](_0x4ef4ee))return;const _0x5da793=_0x322327['_shapes'][_0x24ea87(0xdb)](_0x4ef4ee);if(_0x5da793)return _0x5da793[_0x24ea87(0x116)]();}['getShapeModel'](_0x35efe0,_0x11271b,_0x318bde){const _0x9fcfd2=_0x326fe7;return this[_0x9fcfd2(0xe3)](_0x35efe0,_0x11271b)[_0x9fcfd2(0x10e)][_0x9fcfd2(0xdb)](_0x318bde);}[_0x326fe7(0x114)](_0x2d851a,_0x1115ae,_0x18b4b8){const _0x3a9f56=_0x326fe7;return this[_0x3a9f56(0xe3)](_0x2d851a,_0x1115ae)[_0x3a9f56(0x114)](_0x18b4b8);}['getLineShapeRelation'](_0x5a3f12,_0x48fc25,_0x2c5a34){const _0x5b5944=_0x326fe7,_0x2bcbab=this[_0x5b5944(0xe3)](_0x5a3f12,_0x48fc25)['_shapes']['get'](_0x2c5a34);if(_0x2bcbab)return _0x2bcbab[_0x5b5944(0xe8)]();}[_0x326fe7(0xf8)](){}[_0x326fe7(0xef)](_0x599a08){const _0x3c8305=_0x326fe7,_0x4229d9={},_0x342881=this[_0x3c8305(0x128)][_0x3c8305(0xdb)](_0x599a08);return _0x342881&&_0x342881['forEach']((_0x541a6e,_0xc562de)=>{const _0x36c12b=_0x3c8305;_0x4229d9[_0xc562de]=_0x541a6e[_0x36c12b(0x103)]();}),JSON[_0x3c8305(0xd8)](_0x4229d9);}['_deserializeShapeForUnit'](_0x3293e3,_0x1c0e7c){const _0x2da388=_0x326fe7;Object[_0x2da388(0xf2)](_0x1c0e7c)[_0x2da388(0x10b)](_0x7c4cfd=>{const _0x380092=_0x2da388;this[_0x380092(0xe3)](_0x3293e3,_0x7c4cfd)['fromJSON'](_0x1c0e7c[_0x7c4cfd]);});}[_0x326fe7(0x103)](){const _0x1ec5e2=_0x326fe7,_0x2ca23e={};return this[_0x1ec5e2(0x128)]['forEach']((_0x4d8f5c,_0x55089c)=>{const _0x2d6ff4=_0x1ec5e2;_0x2ca23e[_0x55089c]={},_0x4d8f5c[_0x2d6ff4(0x10b)]((_0x191b41,_0x33eae1)=>{_0x2ca23e[_0x55089c][_0x33eae1]=_0x191b41['toJSON']();});}),_0x2ca23e;}[_0x326fe7(0xff)](_0x52c9f5){const _0x20dd77=_0x326fe7;Object[_0x20dd77(0xf2)](_0x52c9f5)[_0x20dd77(0x10b)](_0x5843fd=>{const _0x2d386c=_0x20dd77,_0x3cd9de=_0x52c9f5[_0x5843fd];Object[_0x2d386c(0xf2)](_0x3cd9de)[_0x2d386c(0x10b)](_0x4f92c3=>{const _0x4ac70b=_0x2d386c;this[_0x4ac70b(0xe3)](_0x5843fd,_0x4f92c3)['fromJSON'](_0x3cd9de[_0x4f92c3]);});});}[_0x326fe7(0x11e)](){const _0x3a4563=_0x326fe7;this[_0x3a4563(0x11d)][_0x3a4563(0xfa)]({'pluginName':_0x6de9de,'businesses':[_0x2f5d5f[_0x3a4563(0x10c)][_0x3a4563(0x115)]],'toJson':_0x3fa612=>this[_0x3a4563(0xef)](_0x3fa612),'parseJson':_0x1bbdae=>JSON[_0x3a4563(0xfb)](_0x1bbdae),'onLoad':(_0x5687be,_0x17030e)=>{const _0x392de3=_0x3a4563;this[_0x392de3(0x135)](_0x5687be,_0x17030e);},'onUnLoad':_0x4126bd=>{const _0x21ed7c=_0x3a4563,_0x220a6f=this[_0x21ed7c(0x128)]['get'](_0x4126bd);_0x220a6f&&(_0x220a6f[_0x21ed7c(0x10b)](_0x242e21=>{_0x242e21['dispose']();}),this[_0x21ed7c(0x128)][_0x21ed7c(0xdc)](_0x4126bd));}});}[_0x326fe7(0x11c)](){const _0xf7dcf8=_0x326fe7;this['_shapeModelManagerMap'][_0xf7dcf8(0x10b)](_0xaf2f2d=>{_0xaf2f2d['forEach'](_0x554457=>{const _0x2444b4=_0x4669;_0x554457[_0x2444b4(0x11c)]();});});}},_0x2c90b5[_0x326fe7(0x136)]=_0x1a52db([_0x3f5778(0x0,_0x2f5d5f['IResourceManagerService'])],_0x2c90b5[_0x326fe7(0x136)]);const _0x339d7b={'id':_0x326fe7(0x104),'type':_0x2f5d5f[_0x326fe7(0x138)][_0x326fe7(0x107)],'handler':(_0x4a2762,_0x2946d1)=>{const _0x1f087e=_0x326fe7,{unitId:_0x5f30ec,subUnitId:_0x1d620d,shapeType:_0x33bac0,shapeId:_0x18fc6b,shapeData:_0x284bcd}=_0x2946d1,_0x2d779b=_0x4a2762[_0x1f087e(0xdb)](_0x2c90b5['SheetsShapeServices'])[_0x1f087e(0x117)](_0x5f30ec,_0x1d620d,_0x18fc6b);return _0x2d779b&&(_0x2d779b[_0x1f087e(0xf8)](_0x33bac0),_0x284bcd&&(_0x2d779b==null||_0x2d779b[_0x1f087e(0x13b)](_0x284bcd))),!0x0;}},_0xb0e60d={'id':_0x326fe7(0xfe),'type':_0x2f5d5f['CommandType'][_0x326fe7(0x131)],'handler':(_0x34317f,_0x39e34f)=>{const _0x3d44a7=_0x326fe7;if(!_0x39e34f)return!0x1;const _0x4bf932=_0x34317f['get'](_0x2f5d5f[_0x3d44a7(0x10f)]),_0x50a001=_0x34317f['get'](_0x2c90b5[_0x3d44a7(0x136)]),_0x456d1a=_0x34317f[_0x3d44a7(0xdb)](_0x2f5d5f[_0x3d44a7(0x134)]),_0x17a1fe=[],_0x4d94b5=[],{unitId:_0x2b419c,subUnitId:_0x25590a,shapeId:_0x4954e4,shapeType:_0x9d535a,shapeData:_0x22e43b}=_0x39e34f,_0x5b3556=_0x50a001[_0x3d44a7(0x117)](_0x2b419c,_0x25590a,_0x4954e4);if(_0x5b3556){const _0x4a906f=_0x5b3556[_0x3d44a7(0x12e)](),_0x4c61b7=Object[_0x3d44a7(0x139)]({},_0x5b3556['getShapeData']()),_0x4250a9={'unitId':_0x2b419c,'subUnitId':_0x25590a,'shapeId':_0x4954e4,'shapeType':_0x9d535a,'shapeData':_0x22e43b},_0x3a18af={'unitId':_0x2b419c,'subUnitId':_0x25590a,'shapeId':_0x4954e4,'shapeType':_0x4a906f,'shapeData':_0x4c61b7};return _0x17a1fe['push']({'id':_0x339d7b['id'],'params':_0x4250a9}),_0x4d94b5['push']({'id':_0x339d7b['id'],'params':_0x3a18af}),_0x17a1fe[_0x3d44a7(0x120)](_0xe3f1d9=>_0x4bf932[_0x3d44a7(0xea)](_0xe3f1d9['id'],_0xe3f1d9['params']))&&_0x456d1a[_0x3d44a7(0xf5)]({'unitID':_0x2b419c,'redoMutations':[..._0x17a1fe],'undoMutations':[..._0x4d94b5]}),!0x0;}return!0x1;}},_0x2d9181={'id':_0x326fe7(0xdf),'type':_0x2f5d5f[_0x326fe7(0x138)]['MUTATION'],'handler':(_0xaf247c,_0x1dbffa)=>{const _0x47d47d=_0x326fe7,{unitId:_0x1cff0f,subUnitId:_0x36ffa1,shapeType:_0x115eca,shapeId:_0x432eaa,shapeData:_0x33419d}=_0x1dbffa;return _0xaf247c[_0x47d47d(0xdb)](_0x2c90b5[_0x47d47d(0x136)])[_0x47d47d(0x119)](_0x1cff0f,_0x36ffa1,_0x115eca,_0x432eaa,_0x33419d),!0x0;}},_0x38a4c4={'id':'sheet.mutation.remove-shape','type':_0x2f5d5f[_0x326fe7(0x138)][_0x326fe7(0x107)],'handler':(_0x2d1fe5,_0x461bbb)=>{const _0x4c70e4=_0x326fe7,{unitId:_0x1bdf06,subUnitId:_0x3503be,shapeId:_0x3c8c7b}=_0x461bbb;return _0x2d1fe5[_0x4c70e4(0xdb)](_0x2c90b5[_0x4c70e4(0x136)])[_0x4c70e4(0xd5)](_0x1bdf06,_0x3503be,_0x3c8c7b),!0x0;}},_0x465dc3={'id':_0x326fe7(0xd9),'type':_0x2f5d5f[_0x326fe7(0x138)][_0x326fe7(0x107)],'handler':(_0x45a6fa,_0x5a61fb)=>{const _0x3c795c=_0x326fe7,{unitId:_0x4406e0,subUnitId:_0x4131f4,shapeType:_0x1f124b,shapeId:_0x404262,shapeData:_0x21910a}=_0x5a61fb,_0x324325=_0x45a6fa[_0x3c795c(0xdb)](_0x2c90b5[_0x3c795c(0x136)])[_0x3c795c(0x117)](_0x4406e0,_0x4131f4,_0x404262);return _0x324325&&(_0x1f124b!==void 0x0&&_0x324325[_0x3c795c(0xf8)](_0x1f124b),_0x21910a&&(_0x324325==null||_0x324325[_0x3c795c(0x13b)](_0x21910a,!0x0))),!0x0;}},_0x3aca24=_0x326fe7(0x12f),_0x236c72={};var _0x69b8f5=Object[_0x326fe7(0xe0)],_0x82225e=Object['getOwnPropertyDescriptor'],_0x36a221=(_0x1b5f14,_0x2ee79e,_0x310dd1)=>_0x2ee79e in _0x1b5f14?_0x69b8f5(_0x1b5f14,_0x2ee79e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x310dd1}):_0x1b5f14[_0x2ee79e]=_0x310dd1,_0x2e2709=(_0xa7f931,_0x44aeba,_0x5ea2b4,_0x8988a7)=>{for(var _0x4dafc3=_0x8988a7>0x1?void 0x0:_0x8988a7?_0x82225e(_0x44aeba,_0x5ea2b4):_0x44aeba,_0x1d4665=_0xa7f931['length']-0x1,_0x37b5d8;_0x1d4665>=0x0;_0x1d4665--)(_0x37b5d8=_0xa7f931[_0x1d4665])&&(_0x4dafc3=_0x37b5d8(_0x4dafc3)||_0x4dafc3);return _0x4dafc3;},_0x3f96e3=(_0x43ccdf,_0xd30f6e)=>(_0x2530ae,_0x518783)=>_0xd30f6e(_0x2530ae,_0x518783,_0x43ccdf),_0x4250fb=(_0x520c7e,_0x3f2535,_0x5b0613)=>_0x36a221(_0x520c7e,typeof _0x3f2535!='symbol'?_0x3f2535+'':_0x3f2535,_0x5b0613);const _0x19c5a5=_0x326fe7(0x132);_0x2c90b5[_0x326fe7(0x10a)]=class extends _0x2f5d5f['Plugin']{constructor(_0x3eff69=_0x236c72,_0x4471c8,_0x44e532,_0x41a9d1){const _0x12295b=_0x326fe7;super(),this[_0x12295b(0xfc)]=_0x3eff69,this[_0x12295b(0x100)]=_0x4471c8,this[_0x12295b(0x101)]=_0x44e532,this[_0x12295b(0x13c)]=_0x41a9d1;const {..._0x2853b6}=_0x2f5d5f[_0x12295b(0x137)]({},_0x236c72,this['_config']);this[_0x12295b(0x13c)][_0x12295b(0x124)](_0x3aca24,_0x2853b6),this[_0x12295b(0xee)]();}['onRendered'](){const _0x5e5e33=_0x326fe7;_0x2f5d5f['touchDependencies'](this[_0x5e5e33(0x100)],[]);}[_0x326fe7(0xf1)](){const _0x2c06ab=_0x326fe7,_0xad7483=this['_injector'];[[_0x264acf],[_0x2c90b5[_0x2c06ab(0x136)]]][_0x2c06ab(0x10b)](_0x4f43ff=>_0xad7483['add'](_0x4f43ff));}['_initCommands'](){const _0x4ff446=_0x326fe7;[_0x2d9181,_0x38a4c4,_0x339d7b,_0x465dc3][_0x4ff446(0x10b)](_0x1ecc4e=>this['disposeWithMe'](this[_0x4ff446(0x101)][_0x4ff446(0xf6)](_0x1ecc4e)));}},_0x4250fb(_0x2c90b5[_0x326fe7(0x10a)],_0x326fe7(0xf4),_0x2f5d5f[_0x326fe7(0x10c)][_0x326fe7(0x115)]),_0x4250fb(_0x2c90b5['UniverSheetsShapePlugin'],_0x326fe7(0x112),_0x19c5a5),_0x2c90b5['UniverSheetsShapePlugin']=_0x2e2709([_0x2f5d5f[_0x326fe7(0xd7)](_0x1c999['UniverLicensePlugin']),_0x3f96e3(0x1,_0x2f5d5f[_0x326fe7(0x113)](_0x2f5d5f[_0x326fe7(0xfd)])),_0x3f96e3(0x2,_0x2f5d5f[_0x326fe7(0x10f)]),_0x3f96e3(0x3,_0x2f5d5f[_0x326fe7(0x11f)])],_0x2c90b5[_0x326fe7(0x10a)]),_0x2c90b5[_0x326fe7(0xde)]=_0x2d9181,_0x2c90b5[_0x326fe7(0x11b)]=_0x38a4c4,_0x2c90b5['UpdateSheetsShapeDataMutation']=_0x465dc3,_0x2c90b5[_0x326fe7(0xe6)]=_0xb0e60d,_0x2c90b5['UpdateSheetsShapeTypeMutation']=_0x339d7b,Object[_0x326fe7(0xe0)](_0x2c90b5,Symbol[_0x326fe7(0x127)],{'value':_0x326fe7(0x105)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.15.4",
3
+ "version": "0.15.5-insiders.20260212-8882dcc",
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/license": "0.15.4",
61
- "@univerjs-pro/engine-shape": "0.15.4",
62
- "@univerjs/core": "0.15.4"
60
+ "@univerjs-pro/engine-shape": "0.15.5-insiders.20260212-8882dcc",
61
+ "@univerjs-pro/license": "0.15.5-insiders.20260212-8882dcc",
62
+ "@univerjs/core": "0.15.5-insiders.20260212-8882dcc"
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.15.4",
70
- "@univerjs/sheets": "0.15.4"
69
+ "@univerjs/sheets": "0.15.5-insiders.20260212-8882dcc",
70
+ "@univerjs-infra/shared": "0.15.5"
71
71
  },
72
72
  "scripts": {
73
73
  "test": "vitest run",