@univerjs-pro/sheets-shape-ui 0.20.0 → 0.20.1-insiders.20260418-3a69981
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 +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/operations/actvie-drawing-operation.d.ts +17 -0
- package/lib/types/controllers/sheet-shape-adjust-controller.d.ts +2 -1
- package/lib/types/controllers/sheets-shape-ui-permission.controller.d.ts +9 -0
- package/lib/types/controllers/sheets-shape-ui.controller.d.ts +15 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +1 -0
- package/lib/types/utils/shape-text-document.d.ts +11 -0
- package/lib/types/view-model/shape-data-model.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4c1bdf=_0x1642;(function(_0x1caccd,_0x40d23c){const _0x51f268=_0x1642,_0x6ea9ca=_0x1caccd();while(!![]){try{const _0x3dfa78=-parseInt(_0x51f268(0x3e5))/0x1+parseInt(_0x51f268(0x4ac))/0x2+parseInt(_0x51f268(0x3d0))/0x3+parseInt(_0x51f268(0x1fc))/0x4+parseInt(_0x51f268(0x28e))/0x5+parseInt(_0x51f268(0x13b))/0x6*(-parseInt(_0x51f268(0x264))/0x7)+parseInt(_0x51f268(0x609))/0x8*(parseInt(_0x51f268(0x19f))/0x9);if(_0x3dfa78===_0x40d23c)break;else _0x6ea9ca['push'](_0x6ea9ca['shift']());}catch(_0x18b6bb){_0x6ea9ca['push'](_0x6ea9ca['shift']());}}}(_0x5a33,0xb38d2),Object[_0x4c1bdf(0x1e7)](exports,Symbol['toStringTag'],{'value':_0x4c1bdf(0x29d)}));var e=Object[_0x4c1bdf(0x422)],t=Object[_0x4c1bdf(0x1e7)],n=Object[_0x4c1bdf(0x51f)],r=Object[_0x4c1bdf(0x52d)],i=Object[_0x4c1bdf(0x40a)],a=Object[_0x4c1bdf(0x3a0)][_0x4c1bdf(0x37b)],o=(_0x1536e2,_0x2facce,_0x35f24c,_0x2d906b)=>{const _0x24f9fd=_0x4c1bdf;if(_0x2facce&&typeof _0x2facce==_0x24f9fd(0x29a)||typeof _0x2facce=='function'){for(var _0x35bbfd=r(_0x2facce),_0x23682b=0x0,_0x14dd3c=_0x35bbfd[_0x24f9fd(0x4b4)],_0x409c6d;_0x23682b<_0x14dd3c;_0x23682b++)_0x409c6d=_0x35bbfd[_0x23682b],!a['call'](_0x1536e2,_0x409c6d)&&_0x409c6d!==_0x35f24c&&t(_0x1536e2,_0x409c6d,{'get':(_0x492bc1=>_0x2facce[_0x492bc1])[_0x24f9fd(0x17c)](null,_0x409c6d),'enumerable':!(_0x2d906b=n(_0x2facce,_0x409c6d))||_0x2d906b[_0x24f9fd(0x4d8)]});}return _0x1536e2;},s=(_0x3c829f,_0x3e126c,_0x2d5f1a)=>(_0x2d5f1a=_0x3c829f==null?{}:e(i(_0x3c829f)),o(_0x3e126c||!_0x3c829f||!_0x3c829f[_0x4c1bdf(0x18f)]?t(_0x2d5f1a,_0x4c1bdf(0x322),{'value':_0x3c829f,'enumerable':!0x0}):_0x2d5f1a,_0x3c829f));let c=require(`@univerjs-pro/sheets-shape`),l=require(`@univerjs/core`),u=require(`@univerjs/drawing`),d=require(`@univerjs/engine-render`),f=require(`rxjs`),p=require(`@univerjs/sheets`),m=require(`@univerjs/sheets-drawing`),h=require(`@univerjs/docs-ui`),g=require(`@univerjs/icons`),_=require(`@univerjs/sheets-ui`),v=require(`@univerjs/ui`),y=require(`@univerjs-pro/engine-shape`),b=require(`@univerjs/design`),x=require(`react`);x=s(x);let S=require(`@univerjs/drawing-ui`),C=require(`react/jsx-runtime`),w=require(`@univerjs/sheets-drawing-ui`),T=require(`@univerjs/docs`);function E(_0x30b254){'@babel/helpers - typeof';const _0x35f3d0=_0x4c1bdf;return E=typeof Symbol==_0x35f3d0(0x465)&&typeof Symbol[_0x35f3d0(0x23d)]=='symbol'?function(_0x395d8c){return typeof _0x395d8c;}:function(_0x4b97f4){const _0x43e284=_0x35f3d0;return _0x4b97f4&&typeof Symbol=='function'&&_0x4b97f4[_0x43e284(0x3c4)]===Symbol&&_0x4b97f4!==Symbol[_0x43e284(0x3a0)]?_0x43e284(0x1ed):typeof _0x4b97f4;},E(_0x30b254);}function D(_0xdd1e3,_0xa08217){const _0x3eb5de=_0x4c1bdf;if(E(_0xdd1e3)!=_0x3eb5de(0x29a)||!_0xdd1e3)return _0xdd1e3;var _0x2cbb0e=_0xdd1e3[Symbol[_0x3eb5de(0x121)]];if(_0x2cbb0e!==void 0x0){var _0x1c817c=_0x2cbb0e['call'](_0xdd1e3,_0xa08217||_0x3eb5de(0x322));if(E(_0x1c817c)!='object')return _0x1c817c;throw TypeError(_0x3eb5de(0x4f7));}return(_0xa08217===_0x3eb5de(0x2c7)?String:Number)(_0xdd1e3);}function O(_0x49dc37){const _0xd5901=_0x4c1bdf;var _0x353d9f=D(_0x49dc37,_0xd5901(0x2c7));return E(_0x353d9f)==_0xd5901(0x1ed)?_0x353d9f:_0x353d9f+'';}function k(_0x2f3eee,_0x4bc476,_0x452ebd){const _0x30cc89=_0x4c1bdf;return(_0x4bc476=O(_0x4bc476))in _0x2f3eee?Object[_0x30cc89(0x1e7)](_0x2f3eee,_0x4bc476,{'value':_0x452ebd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f3eee[_0x4bc476]=_0x452ebd,_0x2f3eee;}var A=class extends l[_0x4c1bdf(0x279)]{constructor(..._0x47aaee){const _0x38d22b=_0x4c1bdf;super(..._0x47aaee),k(this,_0x38d22b(0x336),new f[(_0x38d22b(0x24f))](null)),k(this,_0x38d22b(0x2b6),this['_editingParams$'][_0x38d22b(0x309)]()),k(this,'_onSavingEditorData$',new f[(_0x38d22b(0x24f))](!0x1)),k(this,_0x38d22b(0x595),this['_onSavingEditorData$']['asObservable']());}[_0x4c1bdf(0x212)](){const _0x58cce6=_0x4c1bdf;this[_0x58cce6(0x336)]['next'](null),this[_0x58cce6(0x336)][_0x58cce6(0x3f4)](),this[_0x58cce6(0x113)][_0x58cce6(0x304)](!0x1),this[_0x58cce6(0x113)][_0x58cce6(0x3f4)](),super['dispose']();}[_0x4c1bdf(0x47e)](_0x48193f){const _0x1013ff=_0x4c1bdf;this['_editingParams$'][_0x1013ff(0x304)](_0x48193f),_0x48193f==null&&this[_0x1013ff(0x113)]['next'](!0x1);}[_0x4c1bdf(0x2e8)](_0x34e7d5){const _0x1e17ca=_0x4c1bdf;this[_0x1e17ca(0x113)][_0x1e17ca(0x304)](_0x34e7d5);}[_0x4c1bdf(0x49a)](){const _0x4877fa=_0x4c1bdf;return this['_editingParams$'][_0x4877fa(0x1ac)]();}};function j(_0x1c0bfb,_0x2ead14){const _0x29c2a4=_0x4c1bdf;let _0x470a30={};for(let _0x31eb7f of Object[_0x29c2a4(0x3f7)](_0x2ead14)){let _0x5fef3e=_0x2ead14[_0x31eb7f],_0xc09e04=_0x1c0bfb[_0x31eb7f];if(_0x5fef3e!==void 0x0){if(_0xc09e04===void 0x0){_0x470a30[_0x31eb7f]=void 0x0;continue;}typeof _0x5fef3e=='object'&&_0x5fef3e&&!Array[_0x29c2a4(0x540)](_0x5fef3e)&&typeof _0xc09e04==_0x29c2a4(0x29a)&&_0xc09e04&&!Array[_0x29c2a4(0x540)](_0xc09e04)?_0x470a30[_0x31eb7f]=j(_0xc09e04,_0x5fef3e):_0x470a30[_0x31eb7f]=_0xc09e04;}}return _0x470a30;}const M={'type':l['CommandType']['COMMAND'],'id':_0x4c1bdf(0x451),'handler':(_0x56fa04,_0x4a6119)=>{const _0x573326=_0x4c1bdf;let _0x5c3937=_0x56fa04[_0x573326(0x100)](c[_0x573326(0x114)]),{unitId:_0x483e94,subUnitId:_0x7b8eb1,shapeType:_0x7652b1,shapeId:_0x3626e0,shapeData:_0x3b7f32,oldShapeJSON:_0x59955c}=_0x4a6119;if(!_0x5c3937[_0x573326(0x4ba)](_0x483e94,_0x7b8eb1,_0x3626e0))return!0x1;let _0x547abc=_0x56fa04['get'](l['ICommandService']),_0x474f9d=_0x56fa04[_0x573326(0x100)](l[_0x573326(0x3cc)]),{oldShapeType:_0x1d0634,oldShapeData:_0x44e93e={}}=_0x59955c,_0xcc51ef=j(_0x44e93e,_0x3b7f32||{}),_0x43d604={'id':c['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x483e94,'subUnitId':_0x7b8eb1,'shapeId':_0x3626e0,'shapeType':_0x7652b1,'shapeData':_0x3b7f32}},_0x2fc9d9={'id':c[_0x573326(0x307)]['id'],'params':{'unitId':_0x483e94,'subUnitId':_0x7b8eb1,'shapeId':_0x3626e0,'shapeType':_0x1d0634,'shapeData':_0xcc51ef}};return _0x547abc[_0x573326(0x305)](_0x43d604['id'],_0x43d604[_0x573326(0x3b3)])?(_0x474f9d[_0x573326(0x22f)]({'unitID':_0x483e94,'undoMutations':[_0x2fc9d9],'redoMutations':[_0x43d604]}),!0x0):!0x1;}},N={'type':l[_0x4c1bdf(0x1b7)]['COMMAND'],'id':_0x4c1bdf(0x219),'handler':async(_0x3a1b33,_0x3d2483)=>{const _0x11bb09=_0x4c1bdf;if(!_0x3d2483)return!0x1;let {value:_0x32286c}=_0x3d2483,_0x269eda=_0x3a1b33[_0x11bb09(0x100)](l['ICommandService']),_0xc12ddb=_0x3a1b33[_0x11bb09(0x100)](A),_0x8be048=_0x3a1b33[_0x11bb09(0x100)](c[_0x11bb09(0x114)]),_0xad15e6=_0x3a1b33[_0x11bb09(0x100)](d[_0x11bb09(0x560)]),_0xa1d081=_0xc12ddb[_0x11bb09(0x49a)]();if(!_0xa1d081)return!0x1;let {unitId:_0x39d686,subUnitId:_0x4abb25,shapeId:_0x6f4739}=_0xa1d081,_0x561f85=_0x8be048['getShapeModel'](_0x39d686,_0x4abb25,_0x6f4739);if(!_0x561f85)return!0x1;let _0x5694a9=_0x561f85[_0x11bb09(0x556)]();if(!_0x5694a9||!('dataModel'in _0x5694a9))return!0x1;let _0x588979=_0x5694a9['dataModel'];if(!_0x588979)return!0x1;let _0x3977cd={..._0x588979,'fs':_0x32286c},_0x5efbb3=await _0x269eda[_0x11bb09(0x453)](M['id'],{'unitId':_0x39d686,'subUnitId':_0x4abb25,'shapeId':_0x6f4739,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x3977cd}}});if(_0x5efbb3){let _0x50054a=_0xad15e6[_0x11bb09(0x13d)](_0x39d686);if(_0x50054a!=null&&_0x50054a['scene']){let _0x41f8d9=(0x0,u[_0x11bb09(0x1e5)])({'unitId':_0x39d686,'subUnitId':_0x4abb25,'drawingId':_0x6f4739}),_0x46f880=_0x50054a[_0x11bb09(0x22c)]['getObjectIncludeInGroup'](_0x41f8d9);_0x46f880&&_0x46f880[_0x11bb09(0x4e9)](!0x0);}}return _0x5efbb3;}},P={'type':l[_0x4c1bdf(0x1b7)][_0x4c1bdf(0x59b)],'id':_0x4c1bdf(0x554),'handler':async _0x37482a=>{const _0x5c90a7=_0x4c1bdf;var _0x3f2fcc;let _0xbbb8e7=_0x37482a[_0x5c90a7(0x100)](A),_0x2ca59b=_0x37482a[_0x5c90a7(0x100)](c[_0x5c90a7(0x114)]),_0xd4b981=_0x37482a[_0x5c90a7(0x100)](l[_0x5c90a7(0x1dd)]),_0x33c895=_0xbbb8e7['getEditing']();if(!_0x33c895)return!0x1;let {unitId:_0x4819ed,subUnitId:_0x6d2aab,shapeId:_0x27da3a}=_0x33c895,_0x342ccc=_0x2ca59b['getShapeModel'](_0x4819ed,_0x6d2aab,_0x27da3a);if(!_0x342ccc)return!0x1;let _0x12b47b=_0x342ccc['getShapeTextData']();if(!_0x12b47b||!('dataModel'in _0x12b47b))return!0x1;let _0x39ea37=_0x12b47b[_0x5c90a7(0x2c0)],_0x21b2cc=(_0x3f2fcc=_0x39ea37==null?void 0x0:_0x39ea37['fs'])==null?0xe:_0x3f2fcc,_0x5b9a03=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x43fb1c=_0x21b2cc,_0x7685e3=_0x5b9a03[_0x5c90a7(0x120)](_0x21b2cc);return _0x7685e3!==-0x1&&_0x7685e3<_0x5b9a03[_0x5c90a7(0x4b4)]-0x1?_0x43fb1c=_0x5b9a03[_0x7685e3+0x1]:_0x7685e3===-0x1&&(_0x43fb1c=Math[_0x5c90a7(0x5a0)](_0x21b2cc)+0x1),_0xd4b981[_0x5c90a7(0x453)](N['id'],{'value':_0x43fb1c});}},F={'type':l[_0x4c1bdf(0x1b7)][_0x4c1bdf(0x59b)],'id':_0x4c1bdf(0x252),'handler':async _0x57ef24=>{const _0x38f50a=_0x4c1bdf;var _0x162d1d;let _0x831748=_0x57ef24[_0x38f50a(0x100)](A),_0x3129ac=_0x57ef24[_0x38f50a(0x100)](c[_0x38f50a(0x114)]),_0x1f9654=_0x57ef24['get'](l[_0x38f50a(0x1dd)]),_0x2eba26=_0x831748['getEditing']();if(!_0x2eba26)return!0x1;let {unitId:_0x33e43d,subUnitId:_0x569f2a,shapeId:_0x453f6f}=_0x2eba26,_0x76d7ea=_0x3129ac[_0x38f50a(0x4ba)](_0x33e43d,_0x569f2a,_0x453f6f);if(!_0x76d7ea)return!0x1;let _0x55836c=_0x76d7ea['getShapeTextData']();if(!_0x55836c||!(_0x38f50a(0x2c0)in _0x55836c))return!0x1;let _0x60e66e=_0x55836c[_0x38f50a(0x2c0)],_0x8b8a37=(_0x162d1d=_0x60e66e==null?void 0x0:_0x60e66e['fs'])==null?0xe:_0x162d1d,_0x49dbeb=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x532985=_0x8b8a37,_0x2a5d0f=_0x49dbeb['indexOf'](_0x8b8a37);return _0x2a5d0f!==-0x1&&_0x2a5d0f>0x0?_0x532985=_0x49dbeb[_0x2a5d0f-0x1]:_0x2a5d0f===-0x1&&(_0x532985=Math[_0x38f50a(0x5a0)](_0x8b8a37)-0x1),_0x532985<0x1&&(_0x532985=0x1),_0x1f9654[_0x38f50a(0x453)](N['id'],{'value':_0x532985});}},I={'type':l[_0x4c1bdf(0x1b7)]['COMMAND'],'id':_0x4c1bdf(0x308),'handler':async(_0x4b7296,_0x59ec97)=>{const _0x5235e2=_0x4c1bdf;if(!(0x0,p[_0x5235e2(0x445)])(_0x4b7296[_0x5235e2(0x100)](l[_0x5235e2(0x17a)])))return!0x1;let _0xca8247=_0x4b7296[_0x5235e2(0x100)](m['ISheetDrawingService'])[_0x5235e2(0x577)]()[_0x5235e2(0xdd)](_0x18ff82=>_0x18ff82[_0x5235e2(0x3c3)]===l[_0x5235e2(0x237)]['DRAWING_SHAPE']);if(_0xca8247[_0x5235e2(0x4b4)]!==0x1)return!0x1;let _0x2bda4d=_0x4b7296[_0x5235e2(0x100)](A)['getEditing'](),_0x5c68c5=(_0x2bda4d==null?void 0x0:_0x2bda4d[_0x5235e2(0x372)])||_0xca8247[0x0]['unitId'],_0x32aa19=(_0x2bda4d==null?void 0x0:_0x2bda4d['subUnitId'])||_0xca8247[0x0][_0x5235e2(0x4b8)],_0x2e65f4=(_0x2bda4d==null?void 0x0:_0x2bda4d[_0x5235e2(0x3fc)])||_0xca8247[0x0][_0x5235e2(0x1f0)],_0x1fbc2c=_0x4b7296[_0x5235e2(0x100)](c[_0x5235e2(0x114)])['getShapeModel'](_0x5c68c5,_0x32aa19,_0x2e65f4);if(!_0x1fbc2c)return!0x1;let _0x6b427a=_0x1fbc2c[_0x5235e2(0x556)]();if(!_0x6b427a||!('dataModel'in _0x6b427a))return!0x1;let _0x3d4e80=_0x4b7296['get'](l[_0x5235e2(0x1dd)]),{value:_0x463cd6}=_0x59ec97,_0x41f6d8=_0x1fbc2c['getShapeType'](),_0x418ce0=_0x1fbc2c['getShapeData'](),_0x4efcd4={..._0x6b427a[_0x5235e2(0x2c0)],'va':_0x463cd6};return await _0x3d4e80[_0x5235e2(0x453)](M['id'],{'unitId':_0x5c68c5,'subUnitId':_0x32aa19,'shapeId':_0x2e65f4,'shapeType':_0x41f6d8,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x4efcd4}},'oldShapeJSON':{'oldShapeType':_0x41f6d8,'oldShapeData':_0x418ce0}});}},L={'type':l['CommandType'][_0x4c1bdf(0x59b)],'id':_0x4c1bdf(0x334),'handler':(_0xfe1e39,_0x2a12b7)=>{const _0x4fbf2c=_0x4c1bdf;if(!_0x2a12b7)return!0x1;let {value:_0x989782}=_0x2a12b7;return _0xfe1e39[_0x4fbf2c(0x100)](l[_0x4fbf2c(0x1dd)])[_0x4fbf2c(0x305)](h[_0x4fbf2c(0x3f8)]['id'],{'alignType':_0x989782});}},R={'type':l[_0x4c1bdf(0x1b7)][_0x4c1bdf(0x189)],'id':_0x4c1bdf(0x1a3),'handler'(){return!0x0;}},ee={'type':l[_0x4c1bdf(0x1b7)][_0x4c1bdf(0x189)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}},te='sheet.shape.edit.panel',z=(0x0,l[_0x4c1bdf(0x579)])(_0x4c1bdf(0x51c));function B(_0x54233a,_0x415512,_0x448c97,_0x4dcbc7,_0x6827f7,_0x4e362e){let _0x413e42={'unitId':_0x415512,'subUnitId':_0x448c97,'shapeId':_0x4dcbc7,'shapeData':_0x4e362e,'oldShapeJSON':_0x6827f7};return _0x54233a['executeCommand'](M['id'],_0x413e42);}function _0x5a33(){const _0xa6c499=['univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','shape.type.cube','ShapeCornerTabsIcon','makeDirty','strokeWidth','min','_registerDrawingFocusChangeHandler','AccentCallout3','_componentManager','localeService','LocaleService','toolbar.resetColor','ShapeFlowChartPredefinedProcessIcon','ShapeUpArrowCalloutIcon','ShapeFlowChartMagneticTapeIcon','ShapeDoubleWaveIcon','transformByState','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sheets-shape.fill.picture.source','_menuManagerService','sheets-shape.line.dashType.roundDot','shape.type.lightning-bolt','UpDownArrow','LeftBrace','packageName','ShapeCloudCalloutIcon','_sidebarDisposable','univer-text-gray-600\x20univer-transition-transform','_isDrawingShapePointDown','shape.type.bent-connector3','ShapeBevelIcon','setCanUseShapeClip','ShapeDiagStripeIcon','ShapeActionButtonInformationIcon','TOP','startX','Image','_getScrollInfo','StealthArrow','_isHighlighted','type','FlowchartDelay','decorate','rowStartY','getImageSourceCache','Accordion','univer-flex\x20univer-items-center\x20univer-gap-3','ActionButtonEnd','Large','ShapeActionButtonBeginningIcon','getDrawingOrder','shapeKey','RemoveSheetCommand','ShapeUturnArrowIcon','SHAPE_TEXT','ShapeCurvedLeftArrowIcon','ShapePieIcon','getOwnPropertyDescriptor','subscribe','ShapeFunnelIcon','section','REMOVE','GradientFill','ShapeStripedRightArrowIcon','sheets-shape.fill.picture.align.b','fill','univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','LeftRightUpArrow','ShapeDefaultConfig','AccentBorderCallout3','getZoomRatio','getOwnPropertyNames','generateRandomId','Teardrop','univer-mb-2','getViewport','SetShapeTextFontSizeCommand','getBasicShapeRotateBound','ShapeBorderCallout1Icon','WedgeEllipseCallout','shape.type.flow-chart-delay','SetShapeTextVerticalAlignCommand','computeConnectorResizeLayout','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','shape.type.action-button-blank','_baseShapeWidth','_sidebarService','sheets-shape.fill.noFill','ShapeRtTriangleIcon','LAYOUT','isArray','RibbonStartGroup','ShapeEllipseRibbon2Icon','ShapeStar5Icon','shape.type.bent-arrow','ShapeActionButtonHelpIcon','shape.type.straight-connector1','_generatePasteMutations','Trapezoid','_clearShapeAdjustControls','shape.type.star7','ShapeRectTextboxVerticalIcon','IrregularSeal1','_updateSrcRectByTransform','ShapeStar12Icon','UniverSheetsShapePlugin','Round1Rect','ShapeStar16Icon','_updateAdjustControlPositions','shape.type.accent-callout1','sheet.command.set-shape-text-font-size-increase','target','getShapeTextData','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Chord','unsubscribe','entries','prstGeom','ShapeDocAlignCommand','ShapeHalfFrameIcon','SetInlineFormatTextBackgroundColorCommand','ShapeBorderCallout3Icon','IRenderManagerService','ShapeRectTextboxHorizontalIcon','lineShapeId','_draw','_registerGroupFeaturePasteHook','univer-w-20\x20univer-flex-1','getAdjustValueByName','shape.type.diamond','Ribbon','getSkeleton','Rectangle','shape.type.curved-connector3-arrow1','ThemeService','_sheetsShapeService','univer-text-primary-600','UpdateLineShapeResizeCommand','onTransformChange$','DocumentDataModel','ShapeAccentCallout1Icon','_initEvents','shape.type.block-arc','ang','SetShapeTextFontSizeIncreaseCommand','getFocusDrawings','BasicShape','createInternalEditorID','BreakLineCommand','ShapeChartStarIcon','ShapeSnipRoundRectIcon','ancestorTransform','find','shape.type.right-arrow-callout','_findNearestConnectionSite','_addShapeAdjustControl','_currentConnectionTarget','ShapeTeardropIcon','shape.type.action-button-forward-next','Dash','DownArrow','_createCopyInfoByRange','ShapeSwooshArrowIcon','_cxtHandlerPointerMove','_univerInstanceService','FlowchartConnector','gdRefR','shape.type.accent-border-callout1','ShapeWedgeEllipseCalloutIcon','resetCursor','_addShapeConnectorHandlerObjects','AlignTopIcon','shape.type.curved-up-arrow','subscribeEvent','univer-pt-2','onSavingEditorData$','univer-absolute','sheets-shape.line.capType.title','parse','VIEW_MAIN','univer-size-full','COMMAND','setPrstGeom','shape.type.pie-wedge','_registerMoveHandler','_getZoomRatio','floor','_baseTop','shape.type.flow-chart-online-storage','ShapeHexagonIcon','sheets-shape.rotateLeft90','CloudCallout','getDocumentData','getColorFromTheme','univer-relative\x20univer-size-full\x20univer-overflow-visible','ShapeActionButtonForwardNextIcon','Flat','_moveConnectorWithShape','_getSceneAndTransformerByDrawingSearch','FlowchartProcess','shape.type.flow-chart-preparation','shape.type.action-button-back-previous','getMenuHiddenObservable','ShapeNotchedRightArrowIcon','SheetsDrawingGroupCopyPasteController','ShapeIcon','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','WedgeRectCallout','ShapeDonutIcon','RightBracket','StripedRightArrow','onPointerDown$','ShapeLineCapEnum','ShapeLeftRightUpArrowIcon','shape.type.accent-border-callout2','toolbar.horizontalAlignMode.main','cxnPointRadius','ShapeLeftBracketIcon','_shapeService','shape.type.cloud-callout','_imageShapeClipController','shape.type.quad-arrow','LightningBolt','ShapeMathMultiplyIcon','_commandService','imageTile','ActionButtonInformation','_registerDrawingMoveHandler','FlowchartMerge','sheets-shape.line.arrowType.ovalArrow','shape.type.action-button-return','shape.type.curved-left-arrow','ShapeGear9Icon','KeyCode','COPY_TYPE','ShapeFlowChartSummingJunctionIcon','LeftJustifyingIcon','SmileyFace','stroke','getShapeTextRect','getDrawingPoints','ShapeAccentCallout2Icon','ShapeCanIcon','applyPoint','DocumentViewModel','_draggingConnectorId','FlowchartPunchedCard','icon','shape.type.plaque-tabs','ShapeCurvedRightArrowIcon','radial','adjustValues','getDrawingSearch','Plus','ImageSourceTypeEnum','ShapePositionWrapper','shape.type.flow-chart-collate','_createShapeAdjustControls','add$','_attachAdjustEvent','lineType','MathMinus','shape.type.ellipse-ribbon2','IConfigService','ShapeBentArrowIcon','sheets-shape.line.joinType.bevel','shape.type.dodecagon','_drawShapeText','ShapeLeftRightArrowCalloutIcon','_injector','shape.type.flow-chart-offpage-connector','getDrawingData','_index','DashDot','_drawingAddListener','ShapeIrregularSeal2Icon','height','setSrcRect','_commandExecutedListener','_executeResizeCommand','ShapeQuadArrowCalloutIcon','line','refreshAdjustControls','IDrawingManagerService','getDrawingVisible','Dropdown','updateDocumentStyle','getCurrentScrollState','ShapeAccentCallout3Icon','FlowchartOr','getConnectionSiteList','8xBDxGu','ShapeWaveIcon','left','enableObjectsEvent','clear','featurePluginUpdateNotification','_sheetDrawingService','useRef','sheets-shape.line.dashType.squareDot','shape.type.rect-textbox-horizontal','_isStartConnectorPoint','shape.type.flow-chart-extract','ShapeDodecagonIcon','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','DRAWING_DOM','shape.type.curved-connector3','deg)\x20scaleY(','composeMatrix','FoldedCorner','div','relation','OvalArrow','COLOR_PICKER_COMPONENT','Solid','_baseShapeTop','shape.type.bent-connector3-arrow1','_currentUniverService','ShapeLineInvIcon','Line','ShapeChordIcon','shape.type.pie','_baseHeight','sheets-shape.fill.picture.align.bl','getShapeData','NoSmoking','end','IImageIoService','Heart','SquareDot','ShapeFlowChartDecisionIcon','getActualSize','refreshTransform','FlowchartTerminator','ActionButtonSound','shape.type.action-button-movie','IrregularSeal2','ShapeRectIcon','abs','_createControls','SwooshArrow','ShapeLeftRightArrowIcon','localToWorld','_isConnecting','InputNumber','shape.type.curved-connector3-arrow2','ShapePlusIcon','filter','_registerOperations','CopySheetCommand','Snip2DiagRect','shape.type.flow-chart-magnetic-drum','ToggleSheetsShapeFlipCommand','sheets-shape.formatShape','version','offsetY','DEFAULT_PASTE','ShapeFlowChartMagneticDiskIcon','Radio','PaintBucketDoubleIcon','shape.type.up-down-arrow-callout','ShapeModel','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','Moon','sheets-shape.line.beginArrowType','startConnectionDetection','undo','transformForAngle','resize','stopPropagation','shape.type.flow-chart-connector','shape.type.math-plus','skeleton','SquareTabs','ShapeCallout1Icon','worldRect','shape.type.pentagon','onReady','_attachConnectorObjectEvent','_activeShapeAdjustPointList','useLeftAndRightArrow','get','SheetsShapeUIController','data','getMatrix','ShapeFrameIcon','MathMultiply','_baseShapeLeft','FlowchartMagneticDrum','invert','SHAPE','shape.type.star4','sheets-shape.line.dashType.longDashDot','adjHandleSize','ShapeCurvedUpArrowIcon','_transformCalculateSrcRect','blockArrow','_baseWidth','ShapeEditor','shape-adjust-point-','_onSavingEditorData$','SheetsShapeService','ComponentManager','sheets-shape.fill.pictureFill','ShapeMoonIcon','DRAWING_SHAPE','max','ShapeActionButtonEndIcon','opacity','getDrawingEditable','Select','reduce','_executeConnectedRouteResizeCommand','indexOf','toPrimitive','_updateTransform','fillImageSource','ISheetDrawingService','IContextService','ShapeFlowChartInputOutputIcon','getState','addClipboardHook','useKeyboardEvent','classType','worldPoints','CUT','Shape','current','ShapeFlowChartOfflineStorageIcon','Inject','_init','getSkeletonParam','ShapeFlowChartPreparationIcon','ShapeBentConnector3Arrow2Icon','activeSheet$','ShapeCircularArrowIcon','shapeType','LeftArrowCallout','registerFeaturePasteHook','SHEET_SHAPE_UI_PLUGIN','3954936EFQROB','_sheetBasicShapeConnectionPointController','getRenderById','MenuItemType','FromArray','IMenuManagerService','PictureFill','align.left','Arrow','ShapeDownArrowCalloutIcon','FlowchartPreparation','_baseShapeHeight','AlignJustifyCommand','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','ShapeCurvedConnector3Arrow1Icon','sheets-shape.fill.picture.align.tr','sheets-shape.fill.picture.align.br','Transform','clone','getAdjustNames','ShapeCurvedConnector3Arrow2Icon','Star32','getUnit','span','Bevel','Snip2SameRect','CircularArrow','calcAdjValue','ShapeParallelogramIcon','ActionButtonBlank','shape.type.donut','BentArrow','getBentTypeFromPoints','AlignLeftCommand','ShapeLeftArrowCalloutIcon','SheetInterceptorService','UpdateShapeDataCommand','_targetShapeId','disableShapeOption','marginTop','CurvedConnector3','cxnPointFill','#1a73e8','preValue','beginPath','ShapeStraightConnector1Icon','calculate','prstGeomAdjValues','DRAWING_OBJECT_LAYER_INDEX','sheets-shape.line.beginArrowSize','_handleConnectorPointerUp','_reset','RENDER_CLASS_TYPE','_sheetCanvasPopManagerService','univer-text-sm','ActionButtonForwardNext','BorderCallout1','_getShapeInfo','shape.type.ellipse','equationShape','shape.type.left-bracket','ShapeDiamondIcon','shape.type.star24','IUniverInstanceService','DRAWING_IMAGE','bind','_baseLeft','Documents','ShapeFlowChartOnlineStorageIcon','changeShapeType','disableObjectsEvent','shape.type.left-right-ribbon','univer-flex\x20univer-items-center\x20univer-justify-between','colStartX','sheets-shape.fill.picture.offsetX','sheets-shape.toggleFlipV','button','shape.type.snip2-diag-rect','OPERATION','_connectionSiteObjects','Tools','ShapeActionButtonReturnIcon','getBasicShapeRelation','CROSSHAIR','__esModule','shape.type.wave','add','_registerShapeMenu','_transform','ShapeLeftRightRibbonIcon','UniverSheetsShapeUIPlugin','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','shape.type.double-wave','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','changeStart$','shape.type.math-divide','RightArrow','touchDependencies','ShapeMathPlusIcon','5928291JuKoQJ','sheetViewStartColumn','_sheetDrawingShapeRenderController','body','sheet.operation.close-sheet-shape-format-panel','sheets-shape.line.endArrowType','setDocumentData','ShapeArcIcon','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','shape.type.corner','shape.type.sun','shape.type.left-right-up-arrow','SolidFil','getValue','isInGroup','shape.type.round2-same-rect','dashType','_props','sheets-shape.fill.solidFill','shape.type.arc','save','_registerImageShapeClipDelegate','SheetDrawingAnchor','image','CommandType','ShapeRibbon2Icon','univer-w-20','ShapeFolderCornerIcon','shape.type.left-right-arrow','univer-flex\x20univer-flex-col\x20univer-gap-2','shape.type.flow-chart-document','clip-adj-','shape.type.flow-chart-decision','worksheet','sheets-shape.fill.picture.alignment','Curved','FlowchartDocument','_connectorObjects','shape.type.diag-stripe','clearAdjustControls','shape.type.cloud','isHighlighted','sketchType','Fragment','Diamond','sheets-shape.hidePanel','attachTransformerTo','_registerComponent','toDisposable','_handleBasicShapeUpdateConnectorLineShape','useObservable','sheets-shape.shapeStyle','getTransformerByCreate','_getConnectionSiteAngle','FlowchartSummingJunction','getUnitId','clip','FlowchartCollate','RemoveSheetsShapeMutation','shape.type.ellipse-ribbon','doc','Octagon','ICommandService','Callout2','insertGroupObject','setHighlighted','_sheetSkeletonService','getDocRanges','lineStrokeType','shape.type.chart-star','getDrawingShapeKeyByDrawingSearch','updateConnectionDetection','defineProperty','BentUpArrow','ShapeFlowChartMagneticDrumIcon','index','shape.type.up-arrow-callout','restore','symbol','Star24','shape.type.square-tabs','drawingId','shape-text-editor-position-wrapper','sheets-shape.line.arrowSize.small','0.20.0','open','shape.type.star6','ShapeCloudIcon','DocumentSkeleton','SELECTOR','Checkbox','cxnIndex','ctr','3145860RGWRPV','ISidebarService','remove$','ShapeFlowChartManualOperationIcon','ShapeCornerIcon','getImageSize','ShapeFlowChartExtractIcon','ShapeIrregularSeal1Icon','DocSelectionManagerService','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_activeShapeModel','ShapeStraightConnector2Icon','FlowChartOfflineStorage','ShapeSnip2DiagRectIcon','ActionButtonReturn','shape.type.plaque','shape.type.math-equal','displayName','viewportScrollY','_findShapeAtPoint','_initSheetChange','_activeShapeId','dispose','_adjHandlerPointerMove','ShapeFlowChartTerminatorIcon','shape.type.bevel','subscribeContextValue$','ShapeFlowChartDelayIcon','FlowchartExtract','sheet.command.set-shape-text-font-size','DoubleWave','UpArrowCallout','isActive','imageOpacity','ShapeLineJoinEnum','objects','srcRect','shape.type.up-down-arrow','shape.type.left-arrow','_isImagePointerDown','gradientStops','FlowchartOffPageConnector','ShapeDownArrowIcon','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getFreeze','_generateCopyPasteMutations','MathDivide','LongDashDot','scene','angle','shape.type.left-right-circular-arrow','pushUndoRedo','shape.type.left-up-arrow','_renderManagerService','other','shape.type.action-button-help','RightBrace','ShapeSnip1RectIcon','shape.type.callout1','DrawingTypeEnum','position','CurvedDownArrow','START','getBatchRemoveOp','univer-w-28','iterator','update$','shape-text-','CENTER','forEach','getObject','shape.type.left-circular-arrow','ShapeLeftBraceIcon','align.top','useState','getCurrentTypeOfUnit$','Callout3','_context','ShapeBorderCallout2Icon','Angular','flipY','shape.type.up-arrow','setPrstGeomAdjValues','BehaviorSubject','Radial','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheet.command.set-shape-text-font-size-decrease','ShapeFlowChartConnectorIcon','Stretch','_initialize','replace','ShapePieWedgeIcon','slice','ShapeFlowChartSortIcon','adjHandleStroke','RoundRect','Rect','getConnectorLinePoints','src','univer-rounded-lg\x20univer-p-3','None','ColorPicker','Callout','FOCUSING_SHAPE_TEXT_EDITOR','14YhhQIz','ShapeHorizontalScrollIcon','ENTER','clearAdjustValue','pluginName','ShapeStar32Icon','click','BUTTON_SELECTOR','shape.type.trapezoid','_unitId','ShapeNoSmokingIcon','shape.type.gear9','linear','#4285f4','HorizontallyIcon','shape.type.vertical-scroll','sheets-shape.line.capType.round','ShapeBentConnector3Arrow1Icon','switchMap','getObjectIncludeInGroup','Dodecagon','Disposable','gdRefX','DownArrowCallout','_getConnectPointInfo','Star4','horizontalAlign','_initEditingParams','Frame','ShapeSunIcon','_getImageDrawingInfo','BOTTOM','translate','_getOrCreateShapeModel','_loadAndSetImage','useEffect','_initCopyPaste','DrawingApplyType','GradientColorPicker','BentConnector3','ImageFillModeEnum','AlignCenterCommand','1276520Bybins','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','getShapePopupMenus','ShapeWedgeRectCalloutIcon','_clearShapeConnectorHandlerObjects','align.middle','AccentBorderCallout1','_sheetShapeAdjustController','map','INSERT','domX','ShapeLineTypeEnum','object','saveImage','_imageIoService','Module','IEditorService','ShapeFlowChartDisplayIcon','shape.type.half-frame','setFillImage','mergeMenu','_isOpenedShapeEditPanel','shape.type.flow-chart-display','set','shape.type.irregular-seal2','ShapeMathMinusIcon','size','getAdjustInfoByName','ShapeBentUpArrowIcon','ShapeDecagonIcon','_executeConnectionCommand','ShapeQuadArrowIcon','ShapeChartPlusIcon','_clearControls','NonIsoscelesTrapezoid','clipByShape','computeStraightConnectorLayout','startArrow','sheets-shape.insertShape','MIDDLE','editingParams$','ShapeCallout3Icon','sheets-shape.fill.color','StarAndBanner','Miter','sheets-shape.line.title','Plaque','SheetScrollManagerService','values','ResetInlineFormatTextBackgroundColorCommand','dataModel','shape.type.flow-chart-process','setShapeData','BUTTON','onload','shape.type.teardrop','_drawingRenderService','string','_rerouteConnectorLine','shape.type.uturn-arrow','from','useIsFocusing','useEditor','ShapeSquareTabsIcon','ShapePlaqueIcon','useAbsolutePosition','align.center','ChartPlus','BorderCallout2','point','Cloud','#000000','getAncestorScale','Star10','_activeAdjustInfo','ShapeRound1RectIcon','scaleY','ShapeWedgeRoundRectCalloutIcon','_getShapeAdjustPointListById','isEditing','ShapeGradientTypeEnum','_copyInfo','shape.type.curved-down-arrow','sheets-shape.line.joinType.round','_getDrawingRect','getEndConnectInfo','endArrow','ShapeActionButtonHomeIcon','fillType','EquationShape','setOnSavingEditorData','ShapeRightArrowIcon','file','setShapeProps','EllipseRibbon2','stringify','horizontal','_contextService','_calculateFreeEndpointAngle','pipe','ShapeArrowTypeEnum','NotchedRightArrow','angular','ShapeLeftCircularArrowIcon','sheets-shape.line.sketchType.freehand','_clearConnectionSites','ShapeSnip2SameRectIcon','UNIVER_SHEET','UUID','includes','_showConnectionSites','ShapeHeartIcon','ShapeLineDashEnum','Wave','Other','ShapeStar10Icon','ShapeBracePairIcon','shape.type.wedge-rect-callout','next','syncExecuteCommand','ShapeLineIcon','UpdateSheetsShapeDataMutation','sheet.command.set-shape-text-vertical-align','asObservable','sheets-shape.fill.picture.tileAsTexture','shape.type.brace-pair','ShapeStar4Icon','getCurrentSkeleton','isHit','ShapeSmileyFaceIcon','group\x20univer-relative\x20univer-inline-block','ShapeFlowChartMergeIcon','Star7','QuadArrowCallout','Corner','SheetSkeletonManagerService','flipX','addObject','setCursor','ShapeBlockArcIcon','SHEET_VIEWPORT_KEY','group','ShapeActionButtonBackPreviousIcon','VIEW_MAIN_LEFT','deepClone','computeConnectorRouteLayout','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','univer-flex\x20univer-flex-col\x20univer-gap-3','default','ShapeFlowChartDocumentIcon','RightJustifyingIcon','VerticalAlign','shape-text-editor-content','RemoveSheetDrawingCommand','transformToDrawingPosition','Button','_initSelection','onScrollAfter$','ShapeLeftArrowIcon','sheets-shape.openPanel','memo','cxnPointStrokeWidth','color','clsx','Gear9','getBatchUpdateOp','sheet.command.shape-doc-align','sheets-shape.line.sketchType.none','_editingParams$','useMemo','_cxnIndex','FlowchartDisplay','Parallelogram','Star6','getRealBound','_updateShapeAdjustControls','_activeTargetShapeId','verticalAlign','ChartStar','univer-flex-1\x20univer-overflow-auto','pick','ShapeCurvedConnector3Icon','width','ShapeLeftRightCircularArrowIcon','ShapeUpDownArrowIcon','LongDashDotDot','shape.type.heart','ShapeLightningBoltIcon','shapeData','shape.type.snip-round-rect','useCallback','shape.type.flow-chart-multidocument','ShapeTypeEnum','DiagStripe','shape.type.can','top','shape.type.star8','shape.type.rect-textbox-vertical','_handleFreeEndpointMove','isRender','ShapeOctagonIcon','sheets-shape.line.sketchType.handDrawn','shape.type.no-smoking','attachRangeWithCoord','FlowchartManualOperation','shape.type.corner-tabs','disposeWithMe','SheetCanvasPopManagerService','sheets-shape.fill.picture.align.t','sqrt','useDependency','ShapeActionButtonMovieIcon','onPointerUp$','Star12','FOCUSING_PANEL_EDITOR','viewBound','getStartConnectInfo','getShapeType','SolidLine','multiply','Medium','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','_cxtHandlerPointerUp','ShapeRightBracketIcon','auto','sheets-shape.line.dashType.longDash','capType','getParent','unitId','imageRotateWithShape','Hexagon','sheets-shape.fill.title','getSheetBySheetId','clip-','ShapeActionButtonDocumentIcon','Square','_shapeUpdateListener','hasOwnProperty','DependentOn','ActionButtonHome','_shapeTextEditingService','URL','getShapeTypeById','LeftCircularArrow','ShapeStar6Icon','_adjName','shape.type.math-not-equal','_insertShapes','vertical','ShapeCallout2Icon','sheets-shape.line.arrowType.stealthArrow','ShapeCubeIcon','ShapeRibbonIcon','ShapeBentConnector3Icon','SetDrawingApplyMutation','Flowchart','gdRefY','_handleConnectedEndpointMove','MEDIA','renderDrawingShape','ShapeUpDownArrowCalloutIcon','sheets-shape.fill.transparency','registerClipDelegate','close','imageFillMode','ConnectorCoordinateTransform','Tile','_getImagePrstGeom','domY','shape.type.border-callout1','ShapeStar8Icon','InsertSheetsShapeMutation','textRect','ShapeAccentBorderCallout3Icon','prototype','ShapeFlowChartPunchedCardIcon','image-panel.crop.shape','ShapeChevronIcon','adjHandleFill','worldPoint','_drawRichText','SheetSkeletonService','shape.type.flow-chart-punched-tape','isConnectorShape','UPDATE','shape.type.right-arrow','ShapeFlowChartCollateIcon','Arc','shape.type.parallelogram','editorHeight','LeftRightArrowCallout','focus','LEFT','params','getConnectionRelation','drawWith','Round2SameRect','cos','routeConnectorLineShape','FOCUSING_COMMON_DRAWINGS','updateLinePoints','HorizontalScroll','ShapeFlowChartInternalStorageIcon','_openShapeEditPanel','visible','ShapeAccentBorderCallout1Icon','SetSheetsShapeRotateCommand','FlowchartPunchedTape','ShapeMathEqualIcon','drawingType','constructor','shape.type.flow-chart-manual-input','shape.type.left-arrow-callout','ShapePentagonIcon','sheets-shape.fill.picture.rotateWithShape','shape-text-editor','Snip1Rect','normal','IUndoRedoService','shape.group.','shape.type.round2-diag-rect','shape.type.right-bracket','2108127nWcLPT','jsx','sheets-shape.fill.picture.align.r','custom','getConnectionInfo','@univerjs-pro/sheets-shape-ui','sheets-shape.shapePosition','Funnel','ShapeNonIsoscelesTrapezoidIcon','ShapeHomePlateIcon','shape.type.hexagon','PieWedge','UpdateConnectorRelationCommand','ShapeFlowChartManualInputIcon','_handleConnectedEndpointPointerUp','ShapeUpArrowIcon','sheets-shape.line.width','_isStartAdjusting','BlockArc','cxnPointStroke','EMPTY','1374496zkRndK','shape.type.bent-up-arrow','_registerFocusChangeHandler','onPointerMove$','gdRefAng','_currentScene','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','shape.type.line-inv','getDrawingByParam','updateContext','AccentCallout2','gradientAngle','connection-site-','_addControl','ShapeStar7Icon','complete','BlockArrow','isCurvedConnectorShape','keys','AlignOperationCommand','shape.type.decagon','img','getBody','shapeId','sheetViewStartRow','ShapeChartXIcon','sheets-shape.line.dashType.dash','Circle','Round','ShapeMathDivideIcon','DrawingCommonPanel','callout','shape.type.action-button-sound','Sun','isHitLine','shape.type.border-callout3','_lastEditingShapeKey','getPrototypeOf','image/*','shape.type.plus','MathPlus','shape.type.star16','sheets-shape.deleteShape','_shapes','_urlImageService','_highlightedSiteIndex','WedgeRoundRectCallout','IURLImageService','ShapeStar24Icon','_activeAdjustPointList','redo','_subUnitId','NoFill','_focusedDrawings','viewportScrollX','getCurrentUnitInfo','shape.type.action-button-end','shape.type.snip2-same-rect','_configService','_generateCutPasteMutations','setAdjustValueByName','create','Heptagon','ShapeFlowChartAlternateProcessIcon','startY','shape.type.rt-triangle','flowchart','rotation','oKey','HomePlate','focus$','shape.type.bracket-pair','Star16','ShapeEllipseRibbonIcon','registerRenderModule','_sheetInterceptorService','dataStream','ShapeHeptagonIcon','isRichText','focusDrawing','CurvedUpArrow','error','shape.type.rect','some','univer-flex\x20univer-items-center\x20univer-gap-2','FlowchartPredefinedProcess','ShapeArrowSizeEnum','paragraphs','PREDEFINED_HOOK_NAME','onCommandExecuted','documentStyle','sheets-shape.line.transparency','offsetX','Linear','ShapeRenderModeEnum','registerCommand','getSheetCommandTarget','translateWithPrecision','gradientType','shape.type.action-button-document','value','Triangle','sheets-shape.fill.picture.align.l','shape.type.accent-callout2','Donut','Gear6','_resetState','sheets-shape.line.joinType.miter','sheet.command.update-shape-data','CURSOR_TYPE','executeCommand','ShapeEllipseIcon','Plugin','ShapeRoundRectIcon','registerFeatureMenuOffset','RadioGroup','getSelfOrHeaderFooterModel','ShapeGear6Icon','shape.type.right-brace','VerticalScroll','FlowChartInputOutput','ShapeFlowChartPunchedTapeIcon','AccentBorderCallout2','FORMAT','_localeService','name','univer-text-gray-500','getViewportByCell','function','ShapeRightArrowCalloutIcon','_drawSimpleText','sheets-shape.line.dashType.dashDot','paragraphStyle','shape.type.flow-chart-magnetic-disk','copyType','univer-w-full','FlowchartManualInput','ActionButtonDocument','PlaqueTabs','ShapeBracketPairIcon','with','input','ShapeTriangleIcon','EllipseRibbon','ShapeSketchTypeEnum','AlignBottomIcon','ShapeTrapezoidIcon','sheets-shape.line.solidLine','DocSkeletonManagerService','UniverInstanceType','buildClipPath','HandDrawn','_drawingManagerService','setEditing','ShapeLeftUpArrowIcon','_setTransForm','ShapeFlowChartOrIcon','UturnArrow','_hasReset','Observable','has','ShapeVerticalScrollIcon','shape.type.frame','SnipRoundRect','shape.type.math-multiply','Freehand','_loadShapePictureFill','_clipService','shape.type.action-button-information','_initCommands','ShapeActionButtonBlankIcon','shape.type.smiley-face','ShapeFlowChartProcessIcon','Star8','ShapeCurvedDownArrowIcon','StraightConnector1','jsxs','_activeImageId','removeLinePoints','ShapeFlowChartOffpageConnectorIcon','render','getEditing','ShapeActionButtonSoundIcon','merge','shapeModel','CurvedRightArrow','targetShapeId','UNIVER_DOC','changeEnd$','isDrawingObject','shape.type.round1-rect','style','onStarting','pageSize','_config','_activeShapeInfo','RibbonInsertGroup','ShapePlaqueTabsIcon','VerticalCenterIcon','2050146xXLwAV','push','getBatchAddOp','HorizontalAlign','shape.type.left-right-arrow-callout','transform','BracketPair','shape.type.flow-chart-merge','length','_addShapeConnectorHandlerObject','ShapeAccentBorderCallout2Icon','sin','subUnitId','mainComponent','getShapeModel','sheetTransform','MoreDownIcon','UniverSheetsDrawingUIPlugin','ShapeRound2SameRectIcon','shape.type.moon','endConnectionDetection','shape.type.callout2','_executeConnectedRouteConnectionCommand','LeftUpArrow','\x20px','_shapeId','GROUP','sheets-shape.line.arrowSize.medium','updateShapeFillImage','shape.type.flow-chart-alternate-process','adjName','isLineShape','ShapeTextEditorContainer','_initMenu','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','NoLine','round','_adjHandlerPointerUp','scaleX','ShapeRightBraceIcon','_closeShapeEditPanel','shape.type.border-callout2','setContextValue','Pentagon','enumerable','ShapeFillEnum','ShapeRound2DiagRectIcon','_updateImageAdjValues','_handleFreeEndpointPointerUp','draw','diamond','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','changing$','onerror','Small','ShapeFlowChartMultidocumentIcon','_baseDrawingRect','LeftRightRibbon'];_0x5a33=function(){return _0xa6c499;};return _0x5a33();}function ne(_0x42f54d,_0x2a8d4b,_0x9c54ef,_0x4813e3,_0x167a52,_0x38c594){const _0xd22002=_0x4c1bdf;let _0x1c82e8={'unitId':_0x2a8d4b,'subUnitId':_0x9c54ef,'shapeId':_0x4813e3,'shapeData':_0x38c594,'oldShapeJSON':_0x167a52};return _0x42f54d[_0xd22002(0x453)](M['id'],_0x1c82e8);}var V=class extends d[_0x4c1bdf(0x12d)]{constructor(_0x1d52d9,_0x341f2c){const _0x385f76=_0x4c1bdf;super(_0x1d52d9,_0x341f2c),k(this,_0x385f76(0x1b0),void 0x0),k(this,_0x385f76(0x10e),!0x0),k(this,'_drawingType',l[_0x385f76(0x237)][_0x385f76(0x118)]),k(this,_0x385f76(0x4a2),!0x0),this[_0x385f76(0x1b0)]={..._0x341f2c},this[_0x385f76(0x131)]();}[_0x4c1bdf(0x131)](){const _0x291823=_0x4c1bdf;this[_0x291823(0x570)][_0x291823(0x593)](_0x9742c9=>{const _0x46b3fe=_0x291823;this[_0x46b3fe(0x54d)](_0x9742c9);});}[_0x4c1bdf(0x59c)](_0x1ebbe6){const _0x1661cd=_0x4c1bdf;this[_0x1661cd(0x1b0)][_0x1661cd(0x55b)]=_0x1ebbe6;}[_0x4c1bdf(0x47e)](_0x3d8ae4){const _0xb385cd=_0x4c1bdf;this[_0xb385cd(0x1b0)][_0xb385cd(0x2dd)]=_0x3d8ae4,this[_0xb385cd(0x4e9)](!0x0);}get[_0x4c1bdf(0x372)](){const _0x2a2d60=_0x4c1bdf;return this[_0x2a2d60(0x1b0)][_0x2a2d60(0x372)];}get['subUnitId'](){return this['_props']['subUnitId'];}[_0x4c1bdf(0x54d)](_0x5c97ca){const _0x5b83ed=_0x4c1bdf;if(this[_0x5b83ed(0x1b0)][_0x5b83ed(0x220)]==null||!this[_0x5b83ed(0x10e)])return;let {width:_0x18588f,height:_0x4985c9}=this,{width:_0x568c80=0x0,height:_0xee96f5=0x0}=_0x5c97ca[_0x5b83ed(0x166)],{left:_0x1bc068=0x0,top:_0x44750e=0x0,right:_0x1ea4ae=0x0,bottom:_0x36d12b=0x0}=this[_0x5b83ed(0x1b0)]['srcRect'],_0x3396c0=_0x1bc068,_0x334b9f=_0x44750e,_0x20ff21=_0x1ea4ae,_0x287b25=_0x36d12b,_0x3d9c16=!0x1;if(_0x568c80!==0x0&&_0x568c80!==_0x18588f){let _0x5e7ca7=_0x1bc068/_0x568c80,_0x53698e=_0x1ea4ae/_0x568c80;_0x3396c0=_0x18588f*_0x5e7ca7,_0x20ff21=_0x18588f*_0x53698e,_0x3d9c16=!0x0;}if(_0xee96f5!==0x0&&_0xee96f5!==_0x4985c9){let _0x39aa67=_0x44750e/_0xee96f5,_0x1f5c29=_0x36d12b/_0xee96f5;_0x334b9f=_0x4985c9*_0x39aa67,_0x287b25=_0x4985c9*_0x1f5c29,_0x3d9c16=!0x0;}_0x3d9c16&&this[_0x5b83ed(0x5fb)]({'left':_0x3396c0,'top':_0x334b9f,'right':_0x20ff21,'bottom':_0x287b25});}[_0x4c1bdf(0x5fb)](_0x49b327){const _0x5673de=_0x4c1bdf;this[_0x5673de(0x1b0)][_0x5673de(0x220)]=_0x49b327,this[_0x5673de(0x4e9)](!0x0);}[_0x4c1bdf(0x2a1)](_0x451211){const _0x5b92c0=_0x4c1bdf;this[_0x5b92c0(0x1b0)][_0x5b92c0(0x1b6)]=_0x451211,this[_0x5b92c0(0x4e9)](!0x0);}set[_0x4c1bdf(0x4b1)](_0x244e6c){this['_transform']=_0x244e6c;}get[_0x4c1bdf(0x4b1)](){const _0x532b71=_0x4c1bdf;this[_0x532b71(0x193)]||this[_0x532b71(0x480)]();let _0x89fb28=this[_0x532b71(0x193)][_0x532b71(0x14d)]();return this[_0x532b71(0xf2)](_0x89fb28);}get[_0x4c1bdf(0x49d)](){const _0x402b7d=_0x4c1bdf;return this[_0x402b7d(0x1b0)][_0x402b7d(0x49d)];}get[_0x4c1bdf(0x3fc)](){const _0x4541f6=_0x4c1bdf;return this[_0x4541f6(0x1b0)][_0x4541f6(0x3fc)];}get['classType'](){const _0x5bc6e8=_0x4c1bdf;return d[_0x5bc6e8(0x16f)][_0x5bc6e8(0x109)];}['_draw'](_0x323767,_0x1720f6,_0x167614,_0x3ebdce){const _0x5cde4b=_0x4c1bdf;let _0xf56566=this[_0x5cde4b(0x1b0)][_0x5cde4b(0x49d)];if(!_0xf56566||!_0x1720f6)return;let _0x5ff6e2=_0x167614==null?this[_0x5cde4b(0x344)]:_0x167614,_0x75f1e5=_0x3ebdce==null?this['height']:_0x3ebdce,_0x5b9690={'shapeType':_0xf56566[_0x5cde4b(0x367)](),'width':_0x5ff6e2,'height':_0x75f1e5},_0x5a82e7={'renderMode':y[_0x5cde4b(0x443)]['Path'],'oKey':this['oKey'],'image':this[_0x5cde4b(0x1b0)][_0x5cde4b(0x1b6)],'angle':this[_0x5cde4b(0x22d)]};_0xf56566[_0x5cde4b(0x3ee)](_0x5b9690),_0x323767[_0x5cde4b(0x1b3)]();let _0x2a4f66={'top':0x0,'left':0x0,'width':_0x5ff6e2,'height':_0x75f1e5};_0xf56566[_0x5cde4b(0x499)](_0x323767,_0x2a4f66,_0x5a82e7),_0x323767[_0x5cde4b(0x1ec)]();let _0x2147be=_0xf56566[_0x5cde4b(0x556)](),_0x4db720=_0xf56566[_0x5cde4b(0x5d5)](_0x2a4f66),_0x43a663=_0xf56566[_0x5cde4b(0x4cb)]();if(_0x2147be&&_0x4db720&&!_0x43a663){_0x323767[_0x5cde4b(0x1b3)](),this[_0x5cde4b(0x127)]()[_0x5cde4b(0x316)]&&_0x323767['scale'](-0x1,0x1);let _0x30c158=_0x5ff6e2/0x2,_0x5ca814=_0x75f1e5/0x2;_0x323767[_0x5cde4b(0x284)](-_0x30c158,-_0x5ca814),_0x323767[_0x5cde4b(0x167)](),this[_0x5cde4b(0x5f1)](_0x323767,_0x2147be,_0x4db720),_0x323767[_0x5cde4b(0x1ec)]();}}['getDrawingPoints'](_0x18e3ac){}[_0x4c1bdf(0x5f1)](_0x567dcc,_0x35eaa3,_0x30811d){const _0x11400d=_0x4c1bdf;this[_0x11400d(0x1b0)][_0x11400d(0x2dd)]||(_0x11400d(0x433)in _0x35eaa3&&_0x35eaa3['isRichText']===!0x1?this[_0x11400d(0x467)](_0x567dcc,_0x35eaa3,_0x30811d):this[_0x11400d(0x3a6)](_0x567dcc,_0x35eaa3,_0x30811d));}['_drawSimpleText'](_0x51dd90,_0x2b8610,_0x17418f){}['_drawRichText'](_0x1f80f4,_0x13fde4,_0x2c677e){const _0xb897d5=_0x4c1bdf;var _0x4b700e;let _0x18864c=this[_0xb897d5(0x1b0)][_0xb897d5(0x4ef)];if(!_0x13fde4['dataModel']||!_0x18864c){_0x18864c||console['warn'](_0xb897d5(0x5b4));return;}let _0x3f6857=_0x13fde4[_0xb897d5(0x2c0)],_0x3f3a01=_0x3f6857['doc'],_0x122dae=(_0x4b700e=_0x3f6857['va'])==null?l[_0xb897d5(0x325)][_0xb897d5(0x508)]:_0x4b700e;if(!_0x3f3a01)return;_0x3f3a01[_0xb897d5(0x43f)]?_0x3f3a01['documentStyle'][_0xb897d5(0x4a6)]={'width':_0x2c677e['width'],'height':0x1/0x0}:_0x3f3a01[_0xb897d5(0x43f)]={'pageSize':{'width':_0x2c677e[_0xb897d5(0x344)],'height':0x1/0x0}};let _0x596501=new l[(_0xb897d5(0x571))](_0x3f3a01),_0x5b4d1f=new d[(_0xb897d5(0x5da))](_0x596501),_0x5d1ae2=d[_0xb897d5(0x1f7)][_0xb897d5(0x422)](_0x5b4d1f,_0x18864c);_0x5d1ae2[_0xb897d5(0x169)]();let {actualHeight:_0x18e0cd}=_0x5d1ae2[_0xb897d5(0xcd)](),_0x32a9ff=0x0;_0x122dae===l[_0xb897d5(0x325)][_0xb897d5(0x2b5)]?_0x32a9ff=Math[_0xb897d5(0x119)](0x0,(_0x2c677e['height']-_0x18e0cd)/0x2):_0x122dae===l[_0xb897d5(0x325)][_0xb897d5(0x283)]&&(_0x32a9ff=Math[_0xb897d5(0x119)](0x0,_0x2c677e['height']-_0x18e0cd)),_0x596501['updateDocumentDataMargin']({'t':_0x32a9ff}),_0x5d1ae2[_0xb897d5(0x169)]();let _0x3aa7df=new d[(_0xb897d5(0x17e))](_0xb897d5(0x23f)+this[_0xb897d5(0x429)],_0x5d1ae2,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x1f80f4['save'](),_0x1f80f4[_0xb897d5(0x446)](_0x2c677e['left'],_0x2c677e[_0xb897d5(0x351)]),_0x1f80f4[_0xb897d5(0x167)](),_0x1f80f4['rect'](0x0,0x0,_0x2c677e[_0xb897d5(0x344)],_0x2c677e[_0xb897d5(0x5fa)]),_0x1f80f4[_0xb897d5(0x1d7)](),_0x3aa7df[_0xb897d5(0x4dd)](_0x1f80f4),_0x1f80f4[_0xb897d5(0x1ec)](),_0x3aa7df[_0xb897d5(0x212)](),_0x5d1ae2[_0xb897d5(0x212)](),_0x5b4d1f[_0xb897d5(0x212)](),_0x596501[_0xb897d5(0x212)]();}['render'](_0x16ec4d,_0x4798f3,_0x23a31f=!0x1){const _0x295832=_0x4c1bdf;if(!this['visible'])return this['makeDirty'](!0x1),this;let {width:_0x21f2ee,height:_0x452da5,left:_0x196c89,top:_0x37b8c7}=this,_0x1d682b=this[_0x295832(0x33c)]();if(_0x21f2ee=_0x1d682b[_0x295832(0x344)],_0x452da5=_0x1d682b[_0x295832(0x5fa)],_0x196c89=_0x1d682b[_0x295832(0xa7)],_0x37b8c7=_0x1d682b['top'],this[_0x295832(0x355)](_0x4798f3)){let {top:_0xd2f0a,left:_0x38f642,bottom:_0x3f5823,right:_0xd3ac03}=_0x4798f3[_0x295832(0x365)];if(_0x21f2ee+this[_0x295832(0x4ea)]+_0x196c89<_0x38f642||_0xd3ac03<_0x196c89||_0x452da5+this[_0x295832(0x4ea)]+_0x37b8c7<_0xd2f0a||_0x3f5823<_0x37b8c7)return this;}let _0x4ae86b=_0x196c89+_0x21f2ee/0x2,_0x36c016=_0x37b8c7+_0x452da5/0x2,_0x3ebad9=this[_0x295832(0x4b1)]['getMatrix']();if(this[_0x295832(0x1b0)][_0x295832(0x2dd)]){let _0x17ef5a=this['getState'](),_0x130525=new d[(_0x295832(0x14c))]();_0x130525[_0x295832(0xb6)]({..._0x17ef5a}),_0x3ebad9=_0x130525[_0x295832(0x103)]();}return _0x16ec4d['save'](),this[_0x295832(0x1b0)]['shapeModel']['isRenderLinePointsMode']===!0x0||_0x16ec4d[_0x295832(0x4b1)](_0x3ebad9[0x0],_0x3ebad9[0x1],_0x3ebad9[0x2],_0x3ebad9[0x3],_0x4ae86b,_0x36c016),this[_0x295832(0x563)](_0x16ec4d,_0x4798f3,_0x21f2ee,_0x452da5),_0x16ec4d[_0x295832(0x1ec)](),this[_0x295832(0x4e9)](!0x1),this;}['getInverseCoord'](_0x3a17e2){const _0x752eed=_0x4c1bdf;let {left:_0x54df82,top:_0x49cde3,width:_0x40ef1a,height:_0x23e082}=this['getRealBound'](),_0x12d32d=this[_0x752eed(0x4b1)][_0x752eed(0x103)](),_0x2e40c=_0x54df82+_0x40ef1a/0x2,_0xca9271=_0x49cde3+_0x23e082/0x2,_0xee9f20=new d[(_0x752eed(0x14c))]([_0x12d32d[0x0],_0x12d32d[0x1],_0x12d32d[0x2],_0x12d32d[0x3],_0x2e40c,_0xca9271]),_0x64b1b0=this[_0x752eed(0x371)]();return(this[_0x752eed(0x1ad)]&&(_0x64b1b0==null?void 0x0:_0x64b1b0[_0x752eed(0x12a)])===d[_0x752eed(0x16f)][_0x752eed(0x4c6)]?_0x64b1b0[_0x752eed(0x57d)][_0x752eed(0x369)](_0xee9f20):_0xee9f20)[_0x752eed(0x108)]()['applyPoint'](_0x3a17e2);}[_0x4c1bdf(0x30e)](_0x12a52d){const _0x5ca284=_0x4c1bdf;let {left:_0x40f1e4,top:_0x354887,width:_0x1decec,height:_0x1460c0}=this['getRealBound'](),_0xe0f5f=_0x40f1e4+_0x1decec/0x2,_0x521acb=_0x354887+_0x1460c0/0x2,_0x4e4b2d=this[_0x5ca284(0x4b1)][_0x5ca284(0x103)](),_0x2d6563=new d['Transform']([_0x4e4b2d[0x0],_0x4e4b2d[0x1],_0x4e4b2d[0x2],_0x4e4b2d[0x3],_0xe0f5f,_0x521acb]),_0x33062d=this[_0x5ca284(0x371)](),_0x28d4be=(this[_0x5ca284(0x1ad)]&&(_0x33062d==null?void 0x0:_0x33062d[_0x5ca284(0x12a)])===d[_0x5ca284(0x16f)][_0x5ca284(0x4c6)]?_0x33062d[_0x5ca284(0x57d)][_0x5ca284(0x369)](_0x2d6563):_0x2d6563)[_0x5ca284(0x108)]()[_0x5ca284(0x5d9)](_0x12a52d),_0x1778c7=_0x1decec/0x2,_0x4ac348=_0x1460c0/0x2,_0xe15373=this['_props'][_0x5ca284(0x49d)];return _0xe15373&&_0xe15373['isLineShape']()?_0xe15373[_0x5ca284(0x407)](_0x28d4be['x'],_0x28d4be['y'],_0x1decec,_0x1460c0):_0x28d4be['x']>=-_0x1778c7-this['strokeWidth']/0x2&&_0x28d4be['x']<=_0x1778c7+this[_0x5ca284(0x4ea)]/0x2&&_0x28d4be['y']>=-_0x4ac348-this[_0x5ca284(0x4ea)]/0x2&&_0x28d4be['y']<=_0x4ac348+this['strokeWidth']/0x2;}[_0x4c1bdf(0x212)](){const _0xde7ba1=_0x4c1bdf;this['_props'][_0xde7ba1(0x49d)]=null,super[_0xde7ba1(0x212)]();}};function H(_0x211ff5,_0x56f3b7){return function(_0x355b25,_0x4159f1){_0x56f3b7(_0x355b25,_0x4159f1,_0x211ff5);};}function U(_0x332081,_0x3f13a8,_0x43af94,_0x404134){const _0x33dbe7=_0x4c1bdf;var _0x99255=arguments[_0x33dbe7(0x4b4)],_0xa2ca1d=_0x99255<0x3?_0x3f13a8:_0x404134===null?_0x404134=Object[_0x33dbe7(0x51f)](_0x3f13a8,_0x43af94):_0x404134,_0x5a275a;if(typeof Reflect==_0x33dbe7(0x29a)&&typeof Reflect[_0x33dbe7(0x510)]==_0x33dbe7(0x465))_0xa2ca1d=Reflect['decorate'](_0x332081,_0x3f13a8,_0x43af94,_0x404134);else{for(var _0x1ae508=_0x332081[_0x33dbe7(0x4b4)]-0x1;_0x1ae508>=0x0;_0x1ae508--)(_0x5a275a=_0x332081[_0x1ae508])&&(_0xa2ca1d=(_0x99255<0x3?_0x5a275a(_0xa2ca1d):_0x99255>0x3?_0x5a275a(_0x3f13a8,_0x43af94,_0xa2ca1d):_0x5a275a(_0x3f13a8,_0x43af94))||_0xa2ca1d);}return _0x99255>0x3&&_0xa2ca1d&&Object['defineProperty'](_0x3f13a8,_0x43af94,_0xa2ca1d),_0xa2ca1d;}let W=class extends l[_0x4c1bdf(0x279)]{constructor(_0x109378,_0x2f355c,_0x26262c,_0x20da91,_0x55a598){const _0x13bdb7=_0x4c1bdf;super(),this[_0x13bdb7(0x47d)]=_0x109378,this[_0x13bdb7(0x56d)]=_0x2f355c,this[_0x13bdb7(0x461)]=_0x26262c,this[_0x13bdb7(0x29c)]=_0x20da91,this[_0x13bdb7(0x411)]=_0x55a598;}[_0x4c1bdf(0x391)](_0x1c9ea2,_0x355eaa){const _0x3ee2b4=_0x4c1bdf;let {transform:_0x554795,drawingType:_0x2ddc7f,srcRect:_0x215de5,prstGeom:_0x2a8ddf,groupId:_0x163bc3,unitId:_0x2a4236,subUnitId:_0x38136f,drawingId:_0x8b2fb7,isMultiTransform:_0x3a80d5,transforms:_0x4a4bef}=_0x1c9ea2;if(_0x2ddc7f!==l[_0x3ee2b4(0x237)]['DRAWING_SHAPE']||!this[_0x3ee2b4(0x47d)]['getDrawingVisible']()||_0x554795==null)return;let _0x51ab45=_0x3a80d5&&_0x4a4bef?_0x4a4bef:[_0x554795],_0x4f5b7c=[];for(let _0x28123a of _0x51ab45){let {left:_0x26a9a3,top:_0x22cccb,width:_0x2a9aac,height:_0x3d00ce,angle:_0x27f7f0,flipX:_0x5f2f9d,flipY:_0x151970,skewX:_0x2ee24c,skewY:_0x916571}=_0x28123a,_0x32089e=_0x51ab45['indexOf'](_0x28123a),_0x431e47=(0x0,u[_0x3ee2b4(0x1e5)])({'unitId':_0x2a4236,'subUnitId':_0x38136f,'drawingId':_0x8b2fb7},_0x3a80d5?_0x32089e:void 0x0),_0x48e850=_0x355eaa['getObjectIncludeInGroup'](_0x431e47);if(_0x48e850!=null){_0x48e850['transformByState']({'left':_0x26a9a3,'top':_0x22cccb,'width':_0x2a9aac,'height':_0x3d00ce,'angle':_0x27f7f0,'flipX':_0x5f2f9d,'flipY':_0x151970,'skewX':_0x2ee24c,'skewY':_0x916571});continue;}let _0x490d7a=this[_0x3ee2b4(0x47d)][_0x3ee2b4(0x518)](_0x2a4236,_0x38136f),_0x474fda=_0x490d7a[_0x3ee2b4(0x120)](_0x8b2fb7);if(_0x355eaa[_0x3ee2b4(0x277)](_0x431e47)||!this['_drawingManagerService'][_0x3ee2b4(0x602)]())continue;let _0x376c6d=this[_0x3ee2b4(0x56d)]['getShapeModel'](_0x2a4236,_0x38136f,_0x8b2fb7);if(!_0x376c6d)continue;let _0x52ce4a=new V(_0x431e47,{...(0x0,y[_0x3ee2b4(0x3a9)])(_0x376c6d[_0x3ee2b4(0x367)]())?{..._0x28123a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x28123a},'zIndex':_0x474fda===-0x1?_0x490d7a[_0x3ee2b4(0x4b4)]-0x1:_0x474fda,'shapeModel':_0x376c6d,'localeService':this[_0x3ee2b4(0x461)],'shapeId':_0x8b2fb7,'unitId':_0x2a4236,'subUnitId':_0x38136f});_0x355eaa[_0x3ee2b4(0x317)](_0x52ce4a,d[_0x3ee2b4(0x16b)]),this['_drawingManagerService'][_0x3ee2b4(0x11c)]()&&_0x355eaa[_0x3ee2b4(0x1cd)](_0x52ce4a),_0x163bc3&&(0x0,S[_0x3ee2b4(0x1df)])({'drawingId':_0x163bc3,'unitId':_0x2a4236,'subUnitId':_0x38136f},_0x52ce4a,_0x355eaa,this[_0x3ee2b4(0x47d)]),_0x2a8ddf!=null&&_0x52ce4a[_0x3ee2b4(0x59c)](_0x2a8ddf),_0x215de5!=null&&_0x52ce4a[_0x3ee2b4(0x5fb)](_0x215de5),this['_loadShapePictureFill'](_0x52ce4a,_0x376c6d[_0x3ee2b4(0xc6)]()),_0x4f5b7c[_0x3ee2b4(0x4ad)](_0x52ce4a);}return _0x4f5b7c;}[_0x4c1bdf(0x48b)](_0x55f29e,_0x39137e){const _0x4e89a4=_0x4c1bdf;var _0x2e7424;let _0x4ad09c=_0x39137e[_0x4e89a4(0x527)];if(!_0x4ad09c||_0x4ad09c['fillType']!==y[_0x4e89a4(0x4d9)][_0x4e89a4(0x141)]||!_0x4ad09c[_0x4e89a4(0x123)])return;let _0x271f49=_0x4ad09c[_0x4e89a4(0x123)],_0x2fbb83=(_0x2e7424=_0x4ad09c['fillImageSourceType'])==null?y[_0x4e89a4(0x5e4)]['URL']:_0x2e7424,_0x42992f=this[_0x4e89a4(0x29c)][_0x4e89a4(0x512)](_0x271f49,_0x2fbb83);if(_0x42992f){_0x55f29e['setFillImage'](_0x42992f);return;}this[_0x4e89a4(0x286)](_0x55f29e,_0x271f49,_0x2fbb83);}async['_loadAndSetImage'](_0x4f837a,_0x2bcebe,_0x2e9ea0){const _0x9a1f6=_0x4c1bdf;let _0x5be8f2;try{if(_0x2e9ea0===y[_0x9a1f6(0x5e4)][_0x9a1f6(0x2fa)])_0x5be8f2=await this[_0x9a1f6(0x29c)]['getImage'](_0x2bcebe);else{if(_0x2e9ea0===y['ImageSourceTypeEnum'][_0x9a1f6(0x37f)])try{_0x5be8f2=await this[_0x9a1f6(0x411)]['getImage'](_0x2bcebe);}catch{_0x5be8f2=_0x2bcebe;}else _0x5be8f2=_0x2bcebe;}}catch(_0x192a2a){console[_0x9a1f6(0x436)](_0x9a1f6(0x196),_0x192a2a);return;}let _0x486e6a=new window[(_0x9a1f6(0x50a))]();_0x486e6a[_0x9a1f6(0x2c4)]=()=>{const _0x5ba73b=_0x9a1f6;this[_0x5ba73b(0x29c)]['addImageSourceCache'](_0x2bcebe,_0x2e9ea0,_0x486e6a),_0x4f837a[_0x5ba73b(0x2a1)](_0x486e6a);},_0x486e6a[_0x9a1f6(0x4e1)]=()=>{const _0x36da2b=_0x9a1f6;console[_0x36da2b(0x436)](_0x36da2b(0x197),_0x2bcebe);},_0x486e6a[_0x9a1f6(0x25e)]=_0x5be8f2;}};W=U([H(0x0,u[_0x4c1bdf(0x601)]),H(0x1,(0x0,l[_0x4c1bdf(0x130)])(c[_0x4c1bdf(0x114)])),H(0x2,(0x0,l[_0x4c1bdf(0x130)])(l['LocaleService'])),H(0x3,u[_0x4c1bdf(0xc9)]),H(0x4,l[_0x4c1bdf(0x414)])],W);let G=class extends l[_0x4c1bdf(0x279)]{constructor(_0x4dd3ea,_0x4453cb,_0x1bb365,_0x139074,_0x52bb9a,_0x1f98a2){const _0x3ebe78=_0x4c1bdf;super(),this[_0x3ebe78(0x5c6)]=_0x4dd3ea,this[_0x3ebe78(0x231)]=_0x4453cb,this[_0x3ebe78(0x47d)]=_0x1bb365,this[_0x3ebe78(0xbf)]=_0x139074,this[_0x3ebe78(0x2c6)]=_0x52bb9a,this[_0x3ebe78(0x1a1)]=_0x1f98a2,this['_initialize']();}[_0x4c1bdf(0x255)](){const _0xa5132b=_0x4c1bdf;this[_0xa5132b(0x5f8)](),this[_0xa5132b(0x5fc)](),this[_0xa5132b(0x37a)]();}[_0x4c1bdf(0x5f8)](){const _0xa2ce66=_0x4c1bdf;this[_0xa2ce66(0x35c)](this[_0xa2ce66(0x47d)][_0xa2ce66(0x5e8)][_0xa2ce66(0x520)](_0x32a4d3=>{const _0x171bfd=_0xa2ce66;this[_0x171bfd(0x385)](_0x32a4d3);}));}[_0x4c1bdf(0x5fc)](){const _0x379639=_0x4c1bdf;this[_0x379639(0x35c)](this[_0x379639(0x5c6)][_0x379639(0x43e)](_0x1dcb7b=>{const _0x1544fc=_0x379639;if(_0x1dcb7b['id']===c[_0x1544fc(0x39d)]['id']){var _0x36ab38;let {unitId:_0x426aae,subUnitId:_0x55652d,shapeId:_0x188043}=_0x1dcb7b[_0x1544fc(0x3b3)],_0x4a05ac=this[_0x1544fc(0x5ac)](_0x426aae);if(_0x4a05ac==null)return;let {scene:_0x2d2401}=_0x4a05ac,_0x117610=(0x0,u[_0x1544fc(0x1e5)])({'unitId':_0x426aae,'subUnitId':_0x55652d,'drawingId':_0x188043}),_0x297fac=_0x2d2401[_0x1544fc(0x277)](_0x117610);if(!((_0x36ab38=this[_0x1544fc(0x231)][_0x1544fc(0x13d)](_0x426aae))!=null&&_0x36ab38['with'](_[_0x1544fc(0x315)])['getSkeleton'](_0x55652d)))return!0x1;if(_0x297fac)return;this[_0x1544fc(0x385)]([{'unitId':_0x426aae,'subUnitId':_0x55652d,'drawingId':_0x188043}]);}}));}[_0x4c1bdf(0x37a)](){const _0x39a37d=_0x4c1bdf;this[_0x39a37d(0x35c)](this[_0x39a37d(0x47d)][_0x39a37d(0x23e)]['subscribe'](_0x10bab0=>{const _0x6238de=_0x39a37d;_0x10bab0[_0x6238de(0x241)](_0x33edc5=>{const _0x308497=_0x6238de;let {unitId:_0x4d49f1,subUnitId:_0x1f9da7,drawingId:_0x5789b8}=_0x33edc5,_0x1d1f7c=this[_0x308497(0x47d)][_0x308497(0x3ed)](_0x33edc5);if(_0x1d1f7c==null)return;let {transform:_0x45068e,drawingType:_0x4a91c5,srcRect:_0x58713a,prstGeom:_0x145a37}=_0x1d1f7c;if(_0x4a91c5!==l['DrawingTypeEnum'][_0x308497(0x118)])return;let _0x564522=this[_0x308497(0x5ac)](_0x4d49f1);if(_0x564522==null)return;let {scene:_0x516176,transformer:_0x53d2f2}=_0x564522;if(_0x45068e==null)return!0x0;let _0x595cc0=(0x0,u[_0x308497(0x1e5)])({'unitId':_0x4d49f1,'subUnitId':_0x1f9da7,'drawingId':_0x5789b8}),_0x141c65=_0x516176[_0x308497(0x277)](_0x595cc0);if(_0x141c65==null)return!0x0;_0x141c65[_0x308497(0x5fb)](_0x58713a),_0x141c65['setPrstGeom'](_0x145a37);});}));}[_0x4c1bdf(0x4c8)](_0x535542,_0x29a798){const _0x1e9511=_0x4c1bdf;let {unitId:_0x3ed7b3,subUnitId:_0x8c0369,drawingId:_0x1e9c38}=_0x535542,_0x221cdb=this[_0x1e9511(0x5ac)](_0x3ed7b3);if(_0x221cdb==null)return;let {scene:_0x32a1ee}=_0x221cdb,_0x50bc8a=(0x0,u[_0x1e9511(0x1e5)])({'unitId':_0x3ed7b3,'subUnitId':_0x8c0369,'drawingId':_0x1e9c38}),_0x5325b9=_0x32a1ee[_0x1e9511(0x277)](_0x50bc8a);_0x5325b9!=null&&_0x5325b9[_0x1e9511(0x2a1)](_0x29a798);}[_0x4c1bdf(0x385)](_0x64d581){const _0x180c1f=_0x4c1bdf;_0x64d581[_0x180c1f(0x241)](async _0x361ed7=>{const _0x15f049=_0x180c1f;var _0x2ed7e1;let {unitId:_0x3c5fa3,subUnitId:_0x3e47af}=_0x361ed7,_0x257c1d=this[_0x15f049(0x5ac)](_0x3c5fa3),_0x5c7f81=(_0x2ed7e1=(0x0,S[_0x15f049(0x41c)])(this[_0x15f049(0xbf)],_0x3c5fa3))==null?void 0x0:_0x2ed7e1[_0x15f049(0x4b8)];if(_0x257c1d==null||_0x5c7f81!==_0x3e47af)return;let _0x3887e1=this['_drawingManagerService']['getDrawingByParam'](_0x361ed7);if(_0x3887e1!=null&&_0x3887e1['drawingType']===l['DrawingTypeEnum'][_0x15f049(0x118)]){if((0x0,y[_0x15f049(0x3a9)])((_0x3887e1[_0x15f049(0x102)]||{})[_0x15f049(0x137)])){let _0x354594=_0x3887e1[_0x15f049(0x4b1)];_0x354594&&(_0x3887e1['transform']={..._0x354594,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x15f049(0x47d)][_0x15f049(0xce)]([_0x3887e1]),this[_0x15f049(0x1a1)][_0x15f049(0x391)](_0x3887e1,_0x257c1d[_0x15f049(0x22c)]);}});}[_0x4c1bdf(0x5ac)](_0x153593){const _0x23d0c8=_0x4c1bdf;if(_0x153593==null)return;let _0x5e19d8=this[_0x23d0c8(0x231)][_0x23d0c8(0x13d)](_0x153593),_0x27c6ea=_0x5e19d8==null?void 0x0:_0x5e19d8['scene'];return _0x27c6ea==null?null:{'scene':_0x27c6ea,'transformer':_0x27c6ea[_0x23d0c8(0x1d3)]()};}};G=U([H(0x0,l[_0x4c1bdf(0x1dd)]),H(0x1,d[_0x4c1bdf(0x560)]),H(0x2,u[_0x4c1bdf(0x601)]),H(0x3,l['IUniverInstanceService']),H(0x4,(0x0,l['Inject'])(S['DrawingRenderService'])),H(0x5,(0x0,l[_0x4c1bdf(0x130)])(W))],G);function re(_0x15059d){const _0x2cd20b=_0x4c1bdf;var _0x3ff48b,_0x42315f,_0x50013d,_0x215609,_0x3fa3af,_0x3a6b26,_0x13fee3,_0x1cf884,_0x4562b4,_0x4ae83d,_0x3f1fcd,_0x29884f,_0x1fe76f;let {unitId:_0x23764a,subUnitId:_0x3abf9b,shapeId:_0x3487ab,shapeData:_0x579c2c,disableShapeOption:_0x20849d}=_0x15059d,_0xb190c6=(0x0,v[_0x2cd20b(0x360)])(l[_0x2cd20b(0x4f0)]),_0x2ea196=(0x0,v['useDependency'])(l[_0x2cd20b(0x1dd)]),_0xe6314b=(0x0,v[_0x2cd20b(0x360)])(l[_0x2cd20b(0x125)]),_0x246205=(0x0,v[_0x2cd20b(0x360)])(G),_0x12d761=(0x0,v[_0x2cd20b(0x360)])(u[_0x2cd20b(0xc9)]),_0x5f47fb=(0x0,x[_0x2cd20b(0xac)])(null),_0x2c134a=_0x579c2c[_0x2cd20b(0x527)],_0x32840e=!!(_0x2c134a!=null&&_0x2c134a[_0x2cd20b(0x123)]),[_0xcdbcd7,_0x56489b]=(0x0,x[_0x2cd20b(0x246)])((_0x3ff48b=_0x2c134a==null?void 0x0:_0x2c134a[_0x2cd20b(0x21d)])==null?0x1:_0x3ff48b),[_0x3c85a0,_0x19ad88]=(0x0,x[_0x2cd20b(0x246)])((_0x42315f=_0x2c134a==null?void 0x0:_0x2c134a[_0x2cd20b(0x396)])==null?y[_0x2cd20b(0x28c)][_0x2cd20b(0x254)]:_0x42315f),[_0x222200,_0x2cb7dc]=(0x0,x[_0x2cd20b(0x246)])((_0x50013d=_0x2c134a==null?void 0x0:_0x2c134a[_0x2cd20b(0x373)])==null?!0x1:_0x50013d),[_0x4d212b,_0x42f386]=(0x0,x['useState'])((_0x215609=_0x2c134a==null||(_0x3fa3af=_0x2c134a['imageTile'])==null?void 0x0:_0x3fa3af[_0x2cd20b(0x441)])==null?0x0:_0x215609),[_0x2fb295,_0xe2e909]=(0x0,x['useState'])((_0x3a6b26=_0x2c134a==null||(_0x13fee3=_0x2c134a[_0x2cd20b(0x5c7)])==null?void 0x0:_0x13fee3[_0x2cd20b(0xe5)])==null?0x0:_0x3a6b26),[_0x49ba86,_0x3223ae]=(0x0,x[_0x2cd20b(0x246)])((_0x1cf884=_0x2c134a==null||(_0x4562b4=_0x2c134a[_0x2cd20b(0x5c7)])==null?void 0x0:_0x4562b4[_0x2cd20b(0x4d2)])==null?0x1:_0x1cf884),[_0x9cbd57,_0x11f987]=(0x0,x['useState'])((_0x4ae83d=_0x2c134a==null||(_0x3f1fcd=_0x2c134a[_0x2cd20b(0x5c7)])==null?void 0x0:_0x3f1fcd['scaleY'])==null?0x1:_0x4ae83d),[_0x5802a9,_0x4a40ee]=(0x0,x[_0x2cd20b(0x246)])((_0x29884f=_0x2c134a==null||(_0x1fe76f=_0x2c134a[_0x2cd20b(0x5c7)])==null?void 0x0:_0x1fe76f['alignment'])==null?'tl':_0x29884f),_0x2442e7=_0x3c85a0===y[_0x2cd20b(0x28c)][_0x2cd20b(0x398)],_0xd9ba34=Math[_0x2cd20b(0x4d0)]((0x1-_0xcdbcd7)*0x64),_0x24fdbc=Math[_0x2cd20b(0x4d0)](_0x49ba86*0x64),_0x3f7c0a=Math[_0x2cd20b(0x4d0)](_0x9cbd57*0x64),_0x77f998=_0x5d5aac=>_0xb190c6['t'](_0x5d5aac),_0xee619f=[{'label':_0x77f998('sheets-shape.fill.picture.align.tl'),'value':'tl'},{'label':_0x77f998(_0x2cd20b(0x35e)),'value':'t'},{'label':_0x77f998(_0x2cd20b(0x14a)),'value':'tr'},{'label':_0x77f998(_0x2cd20b(0x44b)),'value':'l'},{'label':_0x77f998('sheets-shape.fill.picture.align.ctr'),'value':_0x2cd20b(0x1fb)},{'label':_0x77f998(_0x2cd20b(0x3d2)),'value':'r'},{'label':_0x77f998(_0x2cd20b(0xc5)),'value':'bl'},{'label':_0x77f998(_0x2cd20b(0x526)),'value':'b'},{'label':_0x77f998(_0x2cd20b(0x14b)),'value':'br'}],_0x17b8fd=_0x470669=>{B(_0x2ea196,_0x23764a,_0x3abf9b,_0x3487ab,{'oldShapeData':{'fill':_0x2c134a?{..._0x2c134a}:void 0x0}},{'fill':{..._0x2c134a,..._0x470669}});},_0x136ffe=_0x15d196=>{_0x17b8fd({'imageTile':{..._0x2c134a==null?void 0x0:_0x2c134a['imageTile'],..._0x15d196}});},_0x52f4bf=()=>{const _0x88490c=_0x2cd20b;var _0x42cd2e;return(_0x42cd2e=_0x5f47fb[_0x88490c(0x12e)])==null?void 0x0:_0x42cd2e[_0x88490c(0x26a)]();},_0x50c906=async _0x4a8fb2=>{const _0x2c1744=_0x2cd20b;var _0x27a73c;let _0x39ed0c=(_0x27a73c=_0x4a8fb2[_0x2c1744(0x555)]['files'])==null?void 0x0:_0x27a73c[0x0];if(!_0x39ed0c)return;_0x4a8fb2[_0x2c1744(0x555)]['value']='';let _0x43bbff=await _0x12d761[_0x2c1744(0x29b)](_0x39ed0c);if(_0x43bbff==null)return;let {imageSourceType:_0x17a9f1,source:_0x34aa0b,base64Cache:_0x4f515f}=_0x43bbff,{image:_0x47234a}=await(0x0,u[_0x2c1744(0x201)])(_0x4f515f||'');_0x12d761['addImageSourceCache'](_0x34aa0b,_0x17a9f1,_0x47234a),B(_0x2ea196,_0x23764a,_0x3abf9b,_0x3487ab,{'oldShapeData':{'fill':_0x2c134a?{..._0x2c134a}:void 0x0}},{'fill':{..._0x2c134a,'fillType':y[_0x2c1744(0x4d9)][_0x2c1744(0x141)],'fillImageSource':_0x34aa0b,'fillImageSourceType':_0x17a9f1}}),_0x246205[_0x2c1744(0x4c8)]({'unitId':_0x23764a,'subUnitId':_0x3abf9b,'drawingId':_0x3487ab},_0x47234a);},_0x3abe9a=_0x2cd20b(0x557),_0x16adab=_0x2cd20b(0xb2);return(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0x36b),'children':[(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0x1bc),'children':[(0x0,C['jsx'])('span',{'className':_0x3abe9a,'children':_0x77f998(_0x2cd20b(0x4f8))}),(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0x439),'children':[(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0x472),{'ref':_0x5f47fb,'type':_0x2cd20b(0x2ea),'accept':_0x2cd20b(0x40b),'className':'univer-hidden','onChange':_0x50c906}),(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0x310),'children':[(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0x187),{'type':'button','disabled':_0x20849d,'className':'univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','onClick':_0x52f4bf,'children':(0x0,C['jsxs'])(_0x2cd20b(0x152),{'children':[_0x77f998('sheets-shape.fill.picture.insert'),'\x20']})}),_0x32840e&&(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0xec),'children':(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0x3fa),{'src':_0x2c134a==null?void 0x0:_0x2c134a[_0x2cd20b(0x123)],'alt':'','className':_0x2cd20b(0x1a7)})})]})]})]}),(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x16adab,'children':[(0x0,C['jsx'])('span',{'className':_0x3abe9a,'children':_0x77f998(_0x2cd20b(0x393))}),(0x0,C['jsx'])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0x1b9),'children':(0x0,C['jsx'])(b[_0x2cd20b(0xda)],{'className':_0x2cd20b(0x46c),'value':_0xd9ba34,'disabled':_0x20849d,'min':0x0,'max':0x64,'step':0xa,'formatter':_0xd33ec5=>_0xd33ec5+'%','parser':_0x1f9767=>(_0x1f9767==null?void 0x0:_0x1f9767['replace']('%',''))||'','onChange':_0x537bb2=>{const _0x3ff44a=_0x2cd20b;let _0x5ec41c=_0x537bb2==null?0x0:_0x537bb2,_0x294d1f=(0x64-Math[_0x3ff44a(0x119)](0x0,Math['min'](0x64,_0x5ec41c)))/0x64;_0x56489b(_0x294d1f),_0x17b8fd({'imageOpacity':_0x294d1f}),_0xe6314b[_0x3ff44a(0x4d6)](l[_0x3ff44a(0x364)],!0x1);},'onFocus':()=>_0xe6314b[_0x2cd20b(0x4d6)](l[_0x2cd20b(0x364)],!0x0),'onBlur':()=>_0xe6314b[_0x2cd20b(0x4d6)](l[_0x2cd20b(0x364)],!0x1)})})]}),(0x0,C[_0x2cd20b(0x3d1)])(b['Checkbox'],{'checked':_0x2442e7,'disabled':_0x20849d,'onChange':_0x407efe=>{const _0x113d7f=_0x2cd20b;let _0x95beef=_0x407efe?y[_0x113d7f(0x28c)]['Tile']:y['ImageFillModeEnum'][_0x113d7f(0x254)];_0x19ad88(_0x95beef),_0x17b8fd({'imageFillMode':_0x95beef});},'children':(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0x152),{'className':_0x2cd20b(0x171),'children':_0x77f998(_0x2cd20b(0x30a))})}),_0x2442e7&&(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0x3eb),'children':[(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x16adab,'children':[(0x0,C[_0x2cd20b(0x3d1)])('span',{'className':_0x3abe9a,'children':_0x77f998(_0x2cd20b(0x185))}),(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0x1b9),'children':(0x0,C['jsx'])(b[_0x2cd20b(0xda)],{'className':_0x2cd20b(0x46c),'value':_0x4d212b,'disabled':_0x20849d,'step':0x1,'onChange':_0x4d776d=>{_0x136ffe({'offsetX':_0x4d776d==null?0x0:_0x4d776d}),_0x42f386(_0x4d776d==null?0x0:_0x4d776d);},'onFocus':()=>_0xe6314b[_0x2cd20b(0x4d6)](l[_0x2cd20b(0x364)],!0x0),'onBlur':()=>_0xe6314b[_0x2cd20b(0x4d6)](l[_0x2cd20b(0x364)],!0x1)})})]}),(0x0,C[_0x2cd20b(0x495)])('div',{'className':_0x16adab,'children':[(0x0,C['jsx'])(_0x2cd20b(0x152),{'className':_0x3abe9a,'children':_0x77f998('sheets-shape.fill.picture.offsetY')}),(0x0,C[_0x2cd20b(0x3d1)])('div',{'className':'univer-w-20','children':(0x0,C[_0x2cd20b(0x3d1)])(b[_0x2cd20b(0xda)],{'className':_0x2cd20b(0x46c),'value':_0x2fb295,'disabled':_0x20849d,'step':0x1,'onChange':_0x342731=>{_0x136ffe({'offsetY':_0x342731==null?0x0:_0x342731}),_0xe2e909(_0x342731==null?0x0:_0x342731);},'onFocus':()=>_0xe6314b[_0x2cd20b(0x4d6)](l['FOCUSING_PANEL_EDITOR'],!0x0),'onBlur':()=>_0xe6314b['setContextValue'](l[_0x2cd20b(0x364)],!0x1)})})]}),(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x16adab,'children':[(0x0,C['jsx'])(_0x2cd20b(0x152),{'className':_0x3abe9a,'children':_0x77f998('sheets-shape.fill.picture.scaleX')}),(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0xb8),{'className':'univer-w-20','children':(0x0,C['jsx'])(b[_0x2cd20b(0xda)],{'className':_0x2cd20b(0x46c),'value':_0x24fdbc,'disabled':_0x20849d,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x19afa5=>_0x19afa5+'%','parser':_0x3bbba1=>(_0x3bbba1==null?void 0x0:_0x3bbba1[_0x2cd20b(0x256)]('%',''))||'','onChange':_0x2c8054=>{const _0xf733f5=_0x2cd20b;let _0x5585c7=Math['max'](0.01,(_0x2c8054==null?0x64:_0x2c8054)/0x64);_0x3223ae(_0x5585c7),_0x136ffe({'scaleX':_0x5585c7}),_0xe6314b[_0xf733f5(0x4d6)](l[_0xf733f5(0x364)],!0x1);},'onFocus':()=>_0xe6314b[_0x2cd20b(0x4d6)](l[_0x2cd20b(0x364)],!0x0),'onBlur':()=>_0xe6314b['setContextValue'](l[_0x2cd20b(0x364)],!0x1)})})]}),(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x16adab,'children':[(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0x152),{'className':_0x3abe9a,'children':_0x77f998('sheets-shape.fill.picture.scaleY')}),(0x0,C['jsx'])(_0x2cd20b(0xb8),{'className':_0x2cd20b(0x1b9),'children':(0x0,C['jsx'])(b[_0x2cd20b(0xda)],{'className':'univer-w-full','value':_0x3f7c0a,'disabled':_0x20849d,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x1d0912=>_0x1d0912+'%','parser':_0x276f81=>(_0x276f81==null?void 0x0:_0x276f81[_0x2cd20b(0x256)]('%',''))||'','onChange':_0xbd933b=>{const _0x5b0bc6=_0x2cd20b;let _0x3d3587=Math[_0x5b0bc6(0x119)](0.01,(_0xbd933b==null?0x64:_0xbd933b)/0x64);_0x11f987(_0x3d3587),_0x136ffe({'scaleY':_0x3d3587}),_0xe6314b[_0x5b0bc6(0x4d6)](l[_0x5b0bc6(0x364)],!0x1);},'onFocus':()=>_0xe6314b[_0x2cd20b(0x4d6)](l[_0x2cd20b(0x364)],!0x0),'onBlur':()=>_0xe6314b['setContextValue'](l[_0x2cd20b(0x364)],!0x1)})})]}),(0x0,C[_0x2cd20b(0x495)])(_0x2cd20b(0xb8),{'className':_0x16adab,'children':[(0x0,C['jsx'])('span',{'className':_0x3abe9a,'children':_0x77f998(_0x2cd20b(0x1c1))}),(0x0,C[_0x2cd20b(0x3d1)])(_0x2cd20b(0xb8),{'className':'univer-w-28','children':(0x0,C['jsx'])(b[_0x2cd20b(0x11d)],{'className':'univer-w-full','value':_0x5802a9,'options':_0xee619f,'disabled':_0x20849d,'onChange':_0x59af2c=>{_0x4a40ee(_0x59af2c),_0x136ffe({'alignment':_0x59af2c});}})})]})]}),(0x0,C['jsx'])(b[_0x2cd20b(0x1f9)],{'checked':_0x222200,'disabled':_0x20849d,'onChange':_0x3dbcb7=>{_0x2cb7dc(_0x3dbcb7),_0x17b8fd({'imageRotateWithShape':_0x3dbcb7});},'children':(0x0,C[_0x2cd20b(0x3d1)])('span',{'className':_0x2cd20b(0x171),'children':_0x77f998(_0x2cd20b(0x3c8))})})]});}function ie(_0x2346cf){const _0xe5741a=_0x4c1bdf;var _0x11d243,_0x49b85f,_0x3830c3;let _0xb2063b=(0x0,v[_0xe5741a(0x360)])(l[_0xe5741a(0x4f0)]),_0x307187=(0x0,v['useDependency'])(l[_0xe5741a(0x1dd)]),_0x42b9f4=(0x0,v[_0xe5741a(0x360)])(l['IContextService']),{shapeData:_0x74b3b2,isLineShape:_0x33b1fa,unitId:_0x19fa10,subUnitId:_0x65f158,shapeId:_0x200ec3,disableShapeOption:_0x258022}=_0x2346cf,[_0x4a21f9,_0x3d8cfc]=(0x0,x[_0xe5741a(0x246)])(((_0x11d243=_0x74b3b2['fill'])==null?void 0x0:_0x11d243[_0xe5741a(0x2e6)])||y[_0xe5741a(0x4d9)][_0xe5741a(0x1ab)]),[_0x21e55b,_0x2b4f8b]=(0x0,x[_0xe5741a(0x246)])(((_0x49b85f=_0x74b3b2['fill'])==null?void 0x0:_0x49b85f['color'])||y[_0xe5741a(0x52a)][_0xe5741a(0x527)]),[_0x44d302,_0x13a149]=(0x0,x[_0xe5741a(0x246)])(((_0x3830c3=_0x74b3b2[_0xe5741a(0x527)])==null?void 0x0:_0x3830c3[_0xe5741a(0x11b)])||0x1),[_0x10aada,_0x4c7e17]=(0x0,x[_0xe5741a(0x246)])(!0x1);if(_0x33b1fa)return null;let _0x310757=0x64-_0x44d302*0x64;return(0x0,C[_0xe5741a(0x495)])('div',{'className':_0xe5741a(0x321),'children':[(0x0,C[_0xe5741a(0x495)])(b[_0xe5741a(0x458)],{'value':_0x4a21f9,'disabled':_0x258022,'onChange':_0x353e6f=>{const _0x2c63a5=_0xe5741a;var _0x4df829;B(_0x307187,_0x19fa10,_0x65f158,_0x200ec3,{'oldShapeData':{'fill':{'fillType':(_0x4df829=_0x74b3b2[_0x2c63a5(0x527)])==null?void 0x0:_0x4df829[_0x2c63a5(0x2e6)]}}},{'fill':{'fillType':_0x353e6f}}),_0x3d8cfc(_0x353e6f);},'direction':_0xe5741a(0x386),'children':[(0x0,C[_0xe5741a(0x3d1)])(b[_0xe5741a(0xe8)],{'value':y[_0xe5741a(0x4d9)]['NoFill'],'children':(0x0,C[_0xe5741a(0x3d1)])(_0xe5741a(0x152),{'className':_0xe5741a(0x171),'children':_0xb2063b['t'](_0xe5741a(0x53d))})}),(0x0,C[_0xe5741a(0x3d1)])(b['Radio'],{'value':y[_0xe5741a(0x4d9)]['SolidFil'],'children':(0x0,C['jsx'])(_0xe5741a(0x152),{'className':_0xe5741a(0x171),'children':_0xb2063b['t'](_0xe5741a(0x1b1))})}),(0x0,C['jsx'])(b['Radio'],{'value':y[_0xe5741a(0x4d9)][_0xe5741a(0x524)],'children':(0x0,C['jsx'])('span',{'className':'univer-text-sm','children':_0xb2063b['t']('sheets-shape.fill.gradientFill')})}),(0x0,C[_0xe5741a(0x3d1)])(b[_0xe5741a(0xe8)],{'value':y['ShapeFillEnum'][_0xe5741a(0x141)],'children':(0x0,C[_0xe5741a(0x3d1)])(_0xe5741a(0x152),{'className':_0xe5741a(0x171),'children':_0xb2063b['t'](_0xe5741a(0x116))})})]}),_0x4a21f9===y[_0xe5741a(0x4d9)][_0xe5741a(0x1ab)]&&(0x0,C['jsxs'])(_0xe5741a(0xb8),{'className':_0xe5741a(0xed),'children':[(0x0,C[_0xe5741a(0x495)])('div',{'className':_0xe5741a(0x183),'children':[(0x0,C[_0xe5741a(0x3d1)])(_0xe5741a(0x152),{'className':_0xe5741a(0x251),'children':_0xb2063b['t'](_0xe5741a(0x2b8))}),(0x0,C[_0xe5741a(0x3d1)])(b[_0xe5741a(0x603)],{'disabled':_0x258022,'overlay':(0x0,C[_0xe5741a(0x3d1)])(_0xe5741a(0xb8),{'className':_0xe5741a(0x25f),'children':(0x0,C[_0xe5741a(0x3d1)])(b['ColorPicker'],{'value':_0x21e55b,'onChange':_0x5cc12b=>{const _0x14237b=_0xe5741a;var _0x45f850;B(_0x307187,_0x19fa10,_0x65f158,_0x200ec3,{'oldShapeData':{'fill':{'color':(_0x45f850=_0x74b3b2[_0x14237b(0x527)])==null?void 0x0:_0x45f850['color']}}},{'fill':{'color':_0x5cc12b}}),_0x2b4f8b(_0x5cc12b),_0x4c7e17(!0x1);}})}),'open':_0x10aada,'onOpenChange':_0x4c7e17,'children':(0x0,C[_0xe5741a(0x495)])('a',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','children':[(0x0,C[_0xe5741a(0x3d1)])(g[_0xe5741a(0xe9)],{'className':'univer-text-xl\x20univer-text-gray-500','extend':{'colorChannel1':_0x21e55b}}),(0x0,C[_0xe5741a(0x3d1)])(g[_0xe5741a(0x4bc)],{'className':(0x0,b[_0xe5741a(0x331)])(_0xe5741a(0x501),{'univer-rotate-180':_0x10aada})})]})})]}),(0x0,C[_0xe5741a(0x495)])('div',{'className':_0xe5741a(0xb2),'children':[(0x0,C[_0xe5741a(0x3d1)])(_0xe5741a(0x152),{'className':_0xe5741a(0x557),'children':_0xb2063b['t'](_0xe5741a(0x393))}),(0x0,C[_0xe5741a(0x3d1)])(_0xe5741a(0xb8),{'className':_0xe5741a(0x514),'children':(0x0,C['jsx'])(_0xe5741a(0xb8),{'className':_0xe5741a(0x1b9),'children':(0x0,C['jsx'])(b[_0xe5741a(0xda)],{'className':_0xe5741a(0x46c),'value':_0x310757,'disabled':_0x258022,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x142584=>_0x142584+'%','parser':_0x5d678d=>(_0x5d678d==null?void 0x0:_0x5d678d[_0xe5741a(0x256)]('%',''))||'','onChange':_0x1b7b63=>{const _0xbdd385=_0xe5741a;let _0x1a572b=_0x1b7b63==null?0x0:_0x1b7b63,_0x37cec3=(0x64-Math[_0xbdd385(0x119)](0x0,Math['min'](0x64,_0x1a572b)))/0x64;_0x13a149(_0x37cec3),B(_0x307187,_0x19fa10,_0x65f158,_0x200ec3,{'oldShapeData':{'fill':{..._0x74b3b2[_0xbdd385(0x527)],'fillType':_0x4a21f9}}},{'fill':{..._0x74b3b2[_0xbdd385(0x527)],'fillType':_0x4a21f9,'opacity':_0x37cec3}}),_0x42b9f4['setContextValue'](l['FOCUSING_PANEL_EDITOR'],!0x1);},'onFocus':()=>_0x42b9f4[_0xe5741a(0x4d6)](l[_0xe5741a(0x364)],!0x0),'onBlur':()=>{const _0x3a7b7b=_0xe5741a;_0x42b9f4['setContextValue'](l[_0x3a7b7b(0x364)],!0x1);}})})})]})]}),_0x4a21f9===y[_0xe5741a(0x4d9)][_0xe5741a(0x524)]&&(0x0,C[_0xe5741a(0x3d1)])(oe,{'shapeData':_0x74b3b2,'disableShapeOption':_0x258022,'onUpdate':_0x5084aa=>{const _0x29d50d=_0xe5741a;B(_0x307187,_0x19fa10,_0x65f158,_0x200ec3,{'oldShapeData':{'fill':{..._0x74b3b2[_0x29d50d(0x527)]}}},{'fill':{..._0x74b3b2[_0x29d50d(0x527)],..._0x5084aa}});}}),_0x4a21f9===y[_0xe5741a(0x4d9)][_0xe5741a(0x141)]&&(0x0,C['jsx'])(re,{'unitId':_0x19fa10,'subUnitId':_0x65f158,'shapeId':_0x200ec3,'shapeData':_0x74b3b2,'disableShapeOption':_0x258022})]});}function ae(_0x51f006){const _0x4854c2=_0x4c1bdf;switch(_0x51f006){case y[_0x4854c2(0x2de)][_0x4854c2(0x442)]:return _0x4854c2(0x270);case y[_0x4854c2(0x2de)][_0x4854c2(0x250)]:return'radial';case y[_0x4854c2(0x2de)][_0x4854c2(0x24b)]:return _0x4854c2(0x2f4);case y['ShapeGradientTypeEnum'][_0x4854c2(0x1cb)]:return _0x4854c2(0x4de);default:return _0x4854c2(0x270);}}function K(_0x183f24){const _0x227ea3=_0x4c1bdf;switch(_0x183f24){case'linear':return y[_0x227ea3(0x2de)]['Linear'];case _0x227ea3(0x5e0):return y[_0x227ea3(0x2de)][_0x227ea3(0x250)];case'angular':return y[_0x227ea3(0x2de)][_0x227ea3(0x24b)];case _0x227ea3(0x4de):return y[_0x227ea3(0x2de)][_0x227ea3(0x1cb)];default:return y[_0x227ea3(0x2de)][_0x227ea3(0x442)];}}function oe(_0x5d4a6b){const _0xe77be3=_0x4c1bdf;let {shapeData:_0x57d770,disableShapeOption:_0x401dd5,onUpdate:_0x153871}=_0x5d4a6b,_0x1f49fd=(0x0,x[_0xe77be3(0x337)])(()=>{const _0x2465fd=_0xe77be3;var _0x592f3c;let _0x2ba742=_0x57d770[_0x2465fd(0x527)];return{'type':ae(_0x2ba742==null?void 0x0:_0x2ba742[_0x2465fd(0x447)]),'angle':(_0x592f3c=_0x2ba742==null?void 0x0:_0x2ba742[_0x2465fd(0x3f0)])==null?0x5a:_0x592f3c,'stops':_0x2ba742!=null&&_0x2ba742[_0x2465fd(0x224)]&&_0x2ba742[_0x2465fd(0x224)]['length']>=0x2?_0x2ba742[_0x2465fd(0x224)][_0x2465fd(0x296)](_0x5f0d87=>({'color':_0x5f0d87[_0x2465fd(0x330)],'offset':_0x5f0d87[_0x2465fd(0x238)]*0x64})):[{'color':(_0x2ba742==null?void 0x0:_0x2ba742[_0x2465fd(0x330)])||'#ffffff','offset':0x0},{'color':_0x2465fd(0x2d5),'offset':0x64}]};},[_0x57d770[_0xe77be3(0x527)]]);return(0x0,C[_0xe77be3(0x3d1)])('div',{'className':_0xe77be3(0x594),'children':(0x0,C[_0xe77be3(0x3d1)])(b[_0xe77be3(0x28a)],{'value':_0x1f49fd,'onChange':_0x4e8e72=>{const _0x4eae2d=_0xe77be3;let _0x5725b0=K(_0x4e8e72['type']),_0x512834=_0x4e8e72['angle'];_0x153871({'gradientType':_0x5725b0,'gradientAngle':_0x512834,'gradientStops':_0x4e8e72['stops'][_0x4eae2d(0x296)](_0x1eb3b1=>({'color':_0x1eb3b1['color'],'position':_0x1eb3b1['offset']/0x64}))});}})});}function se(_0x1c35c0){const _0x1e7115=_0x4c1bdf;var _0x512e03,_0x29333b,_0x5d0e9e,_0x3de0cd,_0x12d76d,_0x46ca2b,_0x577a2e,_0x121316,_0x2f0964,_0x4a651f,_0x4f5c56,_0x595586,_0x34daf0,_0x481b75,_0xeb4b8b,_0x18765f;let _0x3cbf4e=(0x0,v[_0x1e7115(0x360)])(l['LocaleService']),_0x191cc2=(0x0,v['useDependency'])(l[_0x1e7115(0x1dd)]),_0x4dce00=(0x0,v[_0x1e7115(0x360)])(l[_0x1e7115(0x125)]),{shapeData:_0x3cfc2a,isLineShape:_0x3d2913,unitId:_0x46dcfa,subUnitId:_0x5a95b2,shapeId:_0x468dca,disableShapeOption:_0x1cc597}=_0x1c35c0,_0x3e4d2e=_0x3cfc2a[_0x1e7115(0x5d4)],[_0x9b6f31,_0x5e1957]=(0x0,x['useState'])((_0x512e03=_0x3e4d2e==null?void 0x0:_0x3e4d2e[_0x1e7115(0x1e3)])==null?y[_0x1e7115(0x299)][_0x1e7115(0x368)]:_0x512e03),[_0xe2edca,_0x4c9486]=(0x0,x['useState'])((_0x29333b=_0x3e4d2e==null?void 0x0:_0x3e4d2e[_0x1e7115(0x330)])==null?y['ShapeDefaultConfig'][_0x1e7115(0x5d4)]:_0x29333b),[_0x51b872,_0x15eb8c]=(0x0,x['useState'])((_0x5d0e9e=_0x3e4d2e==null?void 0x0:_0x3e4d2e[_0x1e7115(0x11b)])==null?0x1:_0x5d0e9e),[_0x37d0b5,_0x436e71]=(0x0,x[_0x1e7115(0x246)])((_0x3de0cd=_0x3e4d2e==null?void 0x0:_0x3e4d2e[_0x1e7115(0x344)])==null?y[_0x1e7115(0x52a)][_0x1e7115(0x4ea)]:_0x3de0cd),[_0x52d213,_0x5f1c89]=(0x0,x[_0x1e7115(0x246)])((_0x12d76d=_0x3e4d2e==null?void 0x0:_0x3e4d2e[_0x1e7115(0x1af)])==null?y[_0x1e7115(0x2fe)][_0x1e7115(0xbc)]:_0x12d76d),[_0x2d25dc,_0x2c569e]=(0x0,x[_0x1e7115(0x246)])((_0x46ca2b=_0x3e4d2e==null?void 0x0:_0x3e4d2e['capType'])==null?y[_0x1e7115(0x5ba)][_0x1e7115(0x5aa)]:_0x46ca2b),[_0x476b3b,_0x556ac9]=(0x0,x[_0x1e7115(0x246)])((_0x577a2e=_0x3e4d2e==null?void 0x0:_0x3e4d2e['lineJoinType'])==null?y[_0x1e7115(0x21e)][_0x1e7115(0x2ba)]:_0x577a2e),[_0x58d161,_0x24703d]=(0x0,x['useState'])((_0x121316=_0x3e4d2e==null?void 0x0:_0x3e4d2e[_0x1e7115(0x1c9)])==null?y[_0x1e7115(0x475)][_0x1e7115(0x260)]:_0x121316),_0x4c4e64=_0x3cfc2a,[_0x3fc2ac,_0x35584e]=(0x0,x[_0x1e7115(0x246)])((_0x2f0964=(_0x4a651f=_0x4c4e64['ln'])==null||(_0x4a651f=_0x4a651f['startArrow'])==null?void 0x0:_0x4a651f[_0x1e7115(0x50e)])==null?y['ShapeArrowTypeEnum'][_0x1e7115(0x260)]:_0x2f0964),[_0x13a837,_0x604474]=(0x0,x[_0x1e7115(0x246)])((_0x4f5c56=(_0x595586=_0x4c4e64['ln'])==null||(_0x595586=_0x595586[_0x1e7115(0x2b3)])==null?void 0x0:_0x595586[_0x1e7115(0x2a8)])==null?y[_0x1e7115(0x43b)][_0x1e7115(0x36a)]:_0x4f5c56),[_0x1437e1,_0x2a272f]=(0x0,x[_0x1e7115(0x246)])((_0x34daf0=(_0x481b75=_0x4c4e64['ln'])==null||(_0x481b75=_0x481b75['endArrow'])==null?void 0x0:_0x481b75['type'])==null?y[_0x1e7115(0x2f2)]['None']:_0x34daf0),[_0x431185,_0x4d5d7d]=(0x0,x['useState'])((_0xeb4b8b=(_0x18765f=_0x4c4e64['ln'])==null||(_0x18765f=_0x18765f['endArrow'])==null?void 0x0:_0x18765f[_0x1e7115(0x2a8)])==null?y[_0x1e7115(0x43b)][_0x1e7115(0x36a)]:_0xeb4b8b),[_0x5eaf32,_0x16636e]=(0x0,x[_0x1e7115(0x246)])(!0x1),_0x3ad9ac=0x64-_0x51b872*0x64,_0x53b3a1=[{'label':_0x3cbf4e['t']('sheets-shape.line.dashType.solid'),'value':String(y[_0x1e7115(0x2fe)][_0x1e7115(0xbc)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x4fa)),'value':String(y[_0x1e7115(0x2fe)]['RoundDot'])},{'label':_0x3cbf4e['t'](_0x1e7115(0xad)),'value':String(y['ShapeLineDashEnum'][_0x1e7115(0xcb)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x3ff)),'value':String(y['ShapeLineDashEnum'][_0x1e7115(0x585)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x468)),'value':String(y['ShapeLineDashEnum'][_0x1e7115(0x5f7)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x36f)),'value':String(y[_0x1e7115(0x2fe)]['LongDash'])},{'label':_0x3cbf4e['t'](_0x1e7115(0x10b)),'value':String(y[_0x1e7115(0x2fe)][_0x1e7115(0x22b)])},{'label':_0x3cbf4e['t']('sheets-shape.line.dashType.longDashDotDot'),'value':String(y[_0x1e7115(0x2fe)][_0x1e7115(0x347)])}],_0x1d46ac=[{'label':_0x3cbf4e['t']('sheets-shape.line.capType.flat'),'value':String(y[_0x1e7115(0x5ba)][_0x1e7115(0x5aa)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x274)),'value':String(y[_0x1e7115(0x5ba)][_0x1e7115(0x401)])},{'label':_0x3cbf4e['t']('sheets-shape.line.capType.square'),'value':String(y[_0x1e7115(0x5ba)][_0x1e7115(0x379)])}],_0x1a5e9a=[{'label':_0x3cbf4e['t'](_0x1e7115(0x335)),'value':String(y['ShapeSketchTypeEnum']['None'])},{'label':_0x3cbf4e['t']('sheets-shape.line.sketchType.curved'),'value':String(y[_0x1e7115(0x475)][_0x1e7115(0x1c2)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x2f6)),'value':String(y[_0x1e7115(0x475)][_0x1e7115(0x48a)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x357)),'value':String(y['ShapeSketchTypeEnum'][_0x1e7115(0x47c)])}],_0x39ca0c=[{'label':_0x3cbf4e['t'](_0x1e7115(0x450)),'value':String(y[_0x1e7115(0x21e)][_0x1e7115(0x2ba)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x2e1)),'value':String(y[_0x1e7115(0x21e)][_0x1e7115(0x401)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x5ef)),'value':String(y[_0x1e7115(0x21e)][_0x1e7115(0x153)])}],_0x992841=[{'label':_0x3cbf4e['t']('sheets-shape.line.arrowType.none'),'value':String(y[_0x1e7115(0x2f2)][_0x1e7115(0x260)])},{'label':_0x3cbf4e['t']('sheets-shape.line.arrowType.arrow'),'value':String(y[_0x1e7115(0x2f2)][_0x1e7115(0x143)])},{'label':_0x3cbf4e['t']('sheets-shape.line.arrowType.openArrow'),'value':String(y[_0x1e7115(0x2f2)]['OpenArrow'])},{'label':_0x3cbf4e['t'](_0x1e7115(0x388)),'value':String(y[_0x1e7115(0x2f2)][_0x1e7115(0x50c)])},{'label':_0x3cbf4e['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(y[_0x1e7115(0x2f2)]['DiamondArrow'])},{'label':_0x3cbf4e['t'](_0x1e7115(0x5cb)),'value':String(y[_0x1e7115(0x2f2)][_0x1e7115(0xba)])}],_0x105ede=[{'label':_0x3cbf4e['t'](_0x1e7115(0x1f2)),'value':String(y['ShapeArrowSizeEnum'][_0x1e7115(0x4e2)])},{'label':_0x3cbf4e['t'](_0x1e7115(0x4c7)),'value':String(y[_0x1e7115(0x43b)][_0x1e7115(0x36a)])},{'label':_0x3cbf4e['t']('sheets-shape.line.arrowSize.large'),'value':String(y[_0x1e7115(0x43b)][_0x1e7115(0x516)])}];return(0x0,C[_0x1e7115(0x495)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x321),'children':[(0x0,C[_0x1e7115(0x495)])(b['RadioGroup'],{'value':String(_0x9b6f31),'disabled':_0x1cc597,'onChange':_0x19745a=>{const _0x1b939d=_0x1e7115;var _0x405be2;_0x5e1957(Number(_0x19745a)),B(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x405be2=_0x3cfc2a['stroke'])==null?void 0x0:_0x405be2[_0x1b939d(0x1e3)]}}},{'stroke':{'lineStrokeType':Number(_0x19745a)}});},'direction':'vertical','children':[(0x0,C['jsx'])(b[_0x1e7115(0xe8)],{'value':String(y[_0x1e7115(0x299)][_0x1e7115(0x4cf)]),'children':(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0x152),{'className':'univer-text-sm','children':_0x3cbf4e['t']('sheets-shape.line.noLine')})}),(0x0,C[_0x1e7115(0x3d1)])(b['Radio'],{'value':String(y[_0x1e7115(0x299)][_0x1e7115(0x368)]),'children':(0x0,C[_0x1e7115(0x3d1)])('span',{'className':_0x1e7115(0x171),'children':_0x3cbf4e['t'](_0x1e7115(0x478))})})]}),_0x9b6f31!==y[_0x1e7115(0x299)]['NoLine']&&(0x0,C[_0x1e7115(0x495)])(_0x1e7115(0xb8),{'className':_0x1e7115(0xed),'children':[(0x0,C['jsxs'])(_0x1e7115(0xb8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0x152),{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t']('sheets-shape.line.color')}),(0x0,C[_0x1e7115(0x3d1)])(b[_0x1e7115(0x603)],{'disabled':_0x1cc597,'overlay':(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0xb8),{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,C[_0x1e7115(0x3d1)])(b[_0x1e7115(0x261)],{'value':_0xe2edca,'onChange':_0x513c84=>{const _0x482192=_0x1e7115;var _0x1f8b11;B(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'stroke':{'color':(_0x1f8b11=_0x3cfc2a[_0x482192(0x5d4)])==null?void 0x0:_0x1f8b11['color']}}},{'stroke':{'color':_0x513c84}}),_0x4c9486(_0x513c84),_0x16636e(!0x1);}})}),'open':_0x5eaf32,'onOpenChange':_0x16636e,'children':(0x0,C[_0x1e7115(0x495)])('a',{'className':_0x1e7115(0x4e6),'children':[(0x0,C[_0x1e7115(0x3d1)])(g[_0x1e7115(0xe9)],{'className':_0x1e7115(0x463),'extend':{'colorChannel1':_0xe2edca}}),(0x0,C[_0x1e7115(0x3d1)])(g[_0x1e7115(0x4bc)],{'className':(0x0,b[_0x1e7115(0x331)])(_0x1e7115(0x501),{'univer-rotate-180':_0x5eaf32})})]})})]}),(0x0,C[_0x1e7115(0x495)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0x152),{'className':_0x1e7115(0x557),'children':_0x3cbf4e['t'](_0x1e7115(0x440))}),(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0xb8),{'className':_0x1e7115(0xb2),'children':(0x0,C[_0x1e7115(0x3d1)])('div',{'className':_0x1e7115(0x565),'children':(0x0,C[_0x1e7115(0x3d1)])(b['InputNumber'],{'className':_0x1e7115(0x46c),'value':_0x3ad9ac,'disabled':_0x1cc597,'min':0x0,'max':0x64,'formatter':_0x854f4a=>_0x854f4a+'%','parser':_0x48791e=>(_0x48791e==null?void 0x0:_0x48791e['replace']('%',''))||'','onChange':_0x4d98b1=>{const _0x13c6ac=_0x1e7115;var _0x1b4a73;let _0x242f39=_0x4d98b1==null?0x0:_0x4d98b1,_0x16f855=(0x64-Math[_0x13c6ac(0x119)](0x0,Math[_0x13c6ac(0x4eb)](0x64,_0x242f39)))/0x64;_0x15eb8c(_0x16f855),B(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'stroke':{'opacity':(_0x1b4a73=_0x3cfc2a[_0x13c6ac(0x5d4)])==null?void 0x0:_0x1b4a73[_0x13c6ac(0x11b)]}}},{'stroke':{'opacity':_0x16f855}}),_0x4dce00[_0x13c6ac(0x4d6)](l[_0x13c6ac(0x364)],!0x1);},'onFocus':()=>_0x4dce00[_0x1e7115(0x4d6)](l[_0x1e7115(0x364)],!0x0),'onBlur':_0x55448a=>{const _0x32b3f1=_0x1e7115;_0x4dce00[_0x32b3f1(0x4d6)](l['FOCUSING_PANEL_EDITOR'],!0x1);}})})})]}),(0x0,C[_0x1e7115(0x495)])(_0x1e7115(0xb8),{'className':_0x1e7115(0xb2),'children':[(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0x152),{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t'](_0x1e7115(0x3e0))}),(0x0,C[_0x1e7115(0x3d1)])('div',{'className':_0x1e7115(0x1b9),'children':(0x0,C['jsx'])(b[_0x1e7115(0xda)],{'className':_0x1e7115(0x46c),'disabled':_0x1cc597,'value':_0x37d0b5,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x5f5d25=>_0x5f5d25+_0x1e7115(0x4c4),'parser':_0x27ec4f=>(_0x27ec4f==null?void 0x0:_0x27ec4f[_0x1e7115(0x256)](_0x1e7115(0x4c4),''))||'','onChange':_0x114908=>{const _0x395c54=_0x1e7115;if(!Number['isNaN'](_0x114908)&&_0x114908!==null){var _0x546e31;B(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'stroke':{'width':(_0x546e31=_0x3cfc2a[_0x395c54(0x5d4)])==null?void 0x0:_0x546e31[_0x395c54(0x344)]}}},{'stroke':{'width':_0x114908}});}_0x4dce00[_0x395c54(0x4d6)](l[_0x395c54(0x364)],!0x1);},'onFocus':()=>_0x4dce00[_0x1e7115(0x4d6)](l[_0x1e7115(0x364)],!0x0),'onBlur':_0xc20ecd=>{const _0x78b776=_0x1e7115;_0x4dce00[_0x78b776(0x4d6)](l[_0x78b776(0x364)],!0x1);}})})]}),(0x0,C[_0x1e7115(0x495)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,C['jsx'])(_0x1e7115(0x152),{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t']('sheets-shape.line.dashType.title')}),(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x23c),'children':(0x0,C[_0x1e7115(0x3d1)])(b[_0x1e7115(0x11d)],{'className':'univer-w-full','value':String(_0x52d213),'options':_0x53b3a1,'disabled':_0x1cc597,'onChange':_0x16d4b7=>{const _0x6b0e17=_0x1e7115;var _0x37b346;_0x5f1c89(Number(_0x16d4b7)),B(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'stroke':{'dashType':(_0x37b346=_0x3cfc2a['stroke'])==null?void 0x0:_0x37b346[_0x6b0e17(0x1af)]}}},{'stroke':{'dashType':Number(_0x16d4b7)}});}})})]}),(0x0,C['jsxs'])(_0x1e7115(0xb8),{'className':_0x1e7115(0x183),'children':[(0x0,C[_0x1e7115(0x3d1)])('span',{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t'](_0x1e7115(0x597))}),(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x23c),'children':(0x0,C[_0x1e7115(0x3d1)])(b[_0x1e7115(0x11d)],{'className':_0x1e7115(0x46c),'value':String(_0x2d25dc),'options':_0x1d46ac,'disabled':_0x1cc597,'onChange':_0x45121a=>{const _0x4058c1=_0x1e7115;var _0x259dda;_0x2c569e(Number(_0x45121a)),B(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'stroke':{'capType':(_0x259dda=_0x3cfc2a[_0x4058c1(0x5d4)])==null?void 0x0:_0x259dda[_0x4058c1(0x370)]}}},{'stroke':{'capType':Number(_0x45121a)}});}})})]}),(0x0,C[_0x1e7115(0x495)])(_0x1e7115(0xb8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0x152),{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t']('sheets-shape.line.joinType.title')}),(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x23c),'children':(0x0,C[_0x1e7115(0x3d1)])(b[_0x1e7115(0x11d)],{'className':_0x1e7115(0x46c),'value':String(_0x476b3b),'options':_0x39ca0c,'disabled':_0x1cc597,'onChange':_0xba9bf5=>{const _0x3e42b5=_0x1e7115;var _0x21edbe;_0x556ac9(Number(_0xba9bf5)),B(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'stroke':{'lineJoinType':(_0x21edbe=_0x3cfc2a[_0x3e42b5(0x5d4)])==null?void 0x0:_0x21edbe['lineJoinType']}}},{'stroke':{'lineJoinType':Number(_0xba9bf5)}});}})})]}),!_0x3d2913&&(0x0,C[_0x1e7115(0x495)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x183),'children':[(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0x152),{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t']('sheets-shape.line.sketchType.title')}),(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x23c),'children':(0x0,C[_0x1e7115(0x3d1)])(b['Select'],{'className':_0x1e7115(0x46c),'value':String(_0x58d161),'options':_0x1a5e9a,'disabled':_0x1cc597,'onChange':_0x538b14=>{const _0xdd5abb=_0x1e7115;var _0xd32a10;_0x24703d(Number(_0x538b14)),B(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'stroke':{'sketchType':(_0xd32a10=_0x3cfc2a['stroke'])==null?void 0x0:_0xd32a10[_0xdd5abb(0x1c9)]}}},{'stroke':{'sketchType':Number(_0x538b14)}});}})})]}),_0x3d2913&&(0x0,C['jsxs'])(C[_0x1e7115(0x1ca)],{'children':[(0x0,C[_0x1e7115(0x495)])('div',{'className':_0x1e7115(0x183),'children':[(0x0,C['jsx'])(_0x1e7115(0x152),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3cbf4e['t'](_0x1e7115(0xef))}),(0x0,C['jsx'])('div',{'className':_0x1e7115(0x23c),'children':(0x0,C[_0x1e7115(0x3d1)])(b[_0x1e7115(0x11d)],{'className':_0x1e7115(0x46c),'value':String(_0x3fc2ac),'options':_0x992841,'onChange':_0x54ba76=>{const _0x57f9da=_0x1e7115;var _0x39242e;_0x35584e(Number(_0x54ba76)),ne(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x39242e=_0x3cfc2a['ln'])==null||(_0x39242e=_0x39242e[_0x57f9da(0x2b3)])==null?void 0x0:_0x39242e[_0x57f9da(0x50e)]}}}},{'ln':{'startArrow':{'type':Number(_0x54ba76)}}});}})})]}),(0x0,C['jsxs'])('div',{'className':_0x1e7115(0x183),'children':[(0x0,C['jsx'])(_0x1e7115(0x152),{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t'](_0x1e7115(0x16c))}),(0x0,C[_0x1e7115(0x3d1)])('div',{'className':_0x1e7115(0x23c),'children':(0x0,C[_0x1e7115(0x3d1)])(b[_0x1e7115(0x11d)],{'className':'univer-w-full','value':String(_0x13a837),'options':_0x105ede,'onChange':_0x38e744=>{const _0xd83a9=_0x1e7115;var _0x3ad03c;_0x604474(Number(_0x38e744)),ne(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x3ad03c=_0x3cfc2a['ln'])==null||(_0x3ad03c=_0x3ad03c[_0xd83a9(0x2b3)])==null?void 0x0:_0x3ad03c[_0xd83a9(0x2a8)]}}}},{'ln':{'startArrow':{'size':Number(_0x38e744)}}});}})})]}),(0x0,C[_0x1e7115(0x495)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x183),'children':[(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0x152),{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t'](_0x1e7115(0x1a4))}),(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x23c),'children':(0x0,C['jsx'])(b[_0x1e7115(0x11d)],{'className':_0x1e7115(0x46c),'value':String(_0x1437e1),'options':_0x992841,'onChange':_0x2b310c=>{const _0x1203d0=_0x1e7115;var _0x3a2b11;_0x2a272f(Number(_0x2b310c)),ne(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x3a2b11=_0x3cfc2a['ln'])==null||(_0x3a2b11=_0x3a2b11[_0x1203d0(0x2e4)])==null?void 0x0:_0x3a2b11[_0x1203d0(0x50e)]}}}},{'ln':{'endArrow':{'type':Number(_0x2b310c)}}});}})})]}),(0x0,C[_0x1e7115(0x495)])(_0x1e7115(0xb8),{'className':_0x1e7115(0x183),'children':[(0x0,C[_0x1e7115(0x3d1)])(_0x1e7115(0x152),{'className':_0x1e7115(0x251),'children':_0x3cbf4e['t']('sheets-shape.line.endArrowSize')}),(0x0,C['jsx'])(_0x1e7115(0xb8),{'className':'univer-w-28','children':(0x0,C[_0x1e7115(0x3d1)])(b[_0x1e7115(0x11d)],{'className':'univer-w-full','value':String(_0x431185),'options':_0x105ede,'onChange':_0xf2d9e3=>{const _0x329aff=_0x1e7115;var _0xb17339;_0x4d5d7d(Number(_0xf2d9e3)),ne(_0x191cc2,_0x46dcfa,_0x5a95b2,_0x468dca,{'oldShapeData':{'ln':{'endArrow':{'size':(_0xb17339=_0x3cfc2a['ln'])==null||(_0xb17339=_0xb17339[_0x329aff(0x2e4)])==null?void 0x0:_0xb17339[_0x329aff(0x2a8)]}}}},{'ln':{'endArrow':{'size':Number(_0xf2d9e3)}}});}})})]})]})]})]});}function ce(){const _0x471dc8=_0x4c1bdf;let _0x54d236=(0x0,v[_0x471dc8(0x360)])(u['IDrawingManagerService']),[_0x52ad3b,_0x1686ae]=(0x0,x[_0x471dc8(0x246)])(_0x54d236[_0x471dc8(0x577)]());return(0x0,x['useEffect'])(()=>{const _0x646154=_0x471dc8;let _0x15815c=_0x54d236[_0x646154(0x42b)][_0x646154(0x520)](_0x585fd0=>{_0x1686ae(_0x585fd0);});return()=>{_0x15815c['unsubscribe']();};},[]),_0x52ad3b[_0x471dc8(0x4b4)]===0x0?null:(0x0,C[_0x471dc8(0x3d1)])(_0x471dc8(0xb8),{'children':(0x0,C[_0x471dc8(0x495)])('div',{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,C[_0x471dc8(0x3d1)])(S[_0x471dc8(0x403)],{'drawings':_0x52ad3b,'hasCropper':!0x1}),(0x0,C[_0x471dc8(0x3d1)])(w[_0x471dc8(0x1b5)],{'drawings':_0x52ad3b})]})});}function q(_0x2971ce){const _0x4bc07b=_0x4c1bdf;let {shapeData:_0x15b8f0,shapeId:_0x34de22,shapeType:_0x21644e,version:_0xc22f77,unitId:_0x254532,subUnitId:_0x46505e,disableShapeOption:_0xf11939}=_0x2971ce,_0x4c0616=(0x0,v['useDependency'])(l[_0x4bc07b(0x4f0)]),_0x2f3dbd=(0x0,y['isConnectorShape'])(_0x21644e),[_0x3ba5ee,_0x31e573]=(0x0,x[_0x4bc07b(0x246)])(0x0),_0x1d2bdd=[{'label':(0x0,C[_0x4bc07b(0x3d1)])(_0x4bc07b(0xb8),{'children':_0x4c0616['t'](_0x4bc07b(0x375))}),'children':(0x0,C[_0x4bc07b(0x3d1)])('section',{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,C[_0x4bc07b(0x3d1)])(ie,{'shapeId':_0x34de22,'shapeData':_0x15b8f0,'isLineShape':_0x2f3dbd,'subUnitId':_0x46505e,'unitId':_0x254532,'disableShapeOption':_0xf11939},_0x34de22)})},{'label':(0x0,C[_0x4bc07b(0x3d1)])(_0x4bc07b(0xb8),{'children':_0x4c0616['t'](_0x4bc07b(0x2bb))}),'children':(0x0,C[_0x4bc07b(0x3d1)])(_0x4bc07b(0x522),{'className':_0x4bc07b(0x227),'children':(0x0,C[_0x4bc07b(0x3d1)])(se,{'shapeId':_0x34de22,'shapeData':_0x15b8f0,'isLineShape':_0x2f3dbd,'subUnitId':_0x46505e,'unitId':_0x254532,'disableShapeOption':_0xf11939},_0x34de22)})}];return(0x0,C[_0x4bc07b(0x495)])('div',{'className':'univer-size-full','children':[(0x0,C[_0x4bc07b(0x495)])(_0x4bc07b(0xb8),{'className':_0x4bc07b(0x320),'children':[(0x0,C[_0x4bc07b(0x495)])('div',{'className':(0x0,b[_0x4bc07b(0x331)])(_0x4bc07b(0x4df),_0x3ba5ee===0x0?_0x4bc07b(0x56e):_0x4bc07b(0x463)),'onClick':()=>_0x31e573(0x0),'children':[_0x4c0616['t'](_0x4bc07b(0x1d2)),(0x0,C[_0x4bc07b(0x3d1)])(_0x4bc07b(0xb8),{'className':(0x0,b['clsx'])(_0x4bc07b(0x199),{'univer-bg-primary-600':_0x3ba5ee===0x0,'univer-bg-transparent':_0x3ba5ee!==0x0})})]}),(0x0,C[_0x4bc07b(0x495)])(_0x4bc07b(0xb8),{'className':(0x0,b['clsx'])(_0x4bc07b(0x4df),{'univer-text-primary-600':_0x3ba5ee===0x1,'univer-text-gray-500':_0x3ba5ee!==0x1}),'onClick':()=>_0x31e573(0x1),'children':[_0x4c0616['t'](_0x4bc07b(0x3d6)),(0x0,C[_0x4bc07b(0x3d1)])('div',{'className':(0x0,b[_0x4bc07b(0x331)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600',{'univer-bg-primary-600':_0x3ba5ee===0x1,'univer-bg-transparent':_0x3ba5ee!==0x1})})]})]}),(0x0,C[_0x4bc07b(0x3d1)])('div',{'className':_0x4bc07b(0x341),'children':_0x3ba5ee===0x0?(0x0,C['jsx'])(_0x4bc07b(0xb8),{'className':'','children':(0x0,C['jsx'])(b[_0x4bc07b(0x513)],{'items':_0x1d2bdd})},_0xc22f77):(0x0,C[_0x4bc07b(0x3d1)])(ce,{})})]});}const J={'type':l[_0x4c1bdf(0x1b7)][_0x4c1bdf(0x59b)],'id':'sheet.command.menu-insert-shape','handler':async(_0x194e18,_0x5997e7)=>{const _0x5e0346=_0x4c1bdf;let _0x49d119=(0x0,p['getSheetCommandTarget'])(_0x194e18[_0x5e0346(0x100)](l['IUniverInstanceService']));if(!_0x49d119)return!0x1;let _0x14176e=_0x194e18[_0x5e0346(0x100)](p['SheetsSelectionsService'])['getCurrentLastSelection']();if(!_0x14176e)return!0x1;let _0x2a250e=_0x194e18[_0x5e0346(0x100)](l[_0x5e0346(0x1dd)]),{unitId:_0x2afd5b,subUnitId:_0x4bc187}=_0x49d119,{value:_0xdacbcf,enhanceParams:_0xffbf8d}=_0x5997e7,{range:_0x308d7b}=_0x14176e,_0x4b485d={'unitId':_0x2afd5b,'subUnitId':_0x4bc187,'shapeType':_0xdacbcf,'range':_0x308d7b};if(_0xffbf8d){let _0x377142=(0x0,y[_0x5e0346(0x3a9)])(_0xdacbcf),_0x1ca922=_0xdacbcf===y[_0x5e0346(0x34e)]['Rect'];_0x377142&&(_0xffbf8d[_0x5e0346(0x2b3)]||_0xffbf8d[_0x5e0346(0x2e4)])&&(_0x4b485d[_0x5e0346(0x34a)]={'ln':{'startArrow':_0xffbf8d[_0x5e0346(0x2b3)]?{'type':y[_0x5e0346(0x2f2)][_0x5e0346(0x143)],'size':y[_0x5e0346(0x43b)][_0x5e0346(0x36a)]}:void 0x0,'endArrow':_0xffbf8d[_0x5e0346(0x2e4)]?{'type':y[_0x5e0346(0x2f2)][_0x5e0346(0x143)],'size':y['ShapeArrowSizeEnum'][_0x5e0346(0x516)]}:void 0x0}}),_0x1ca922&&(_0xffbf8d[_0x5e0346(0x2ee)]||_0xffbf8d[_0x5e0346(0x386)])&&(_0x4b485d[_0x5e0346(0x34a)]={'fill':{'fillType':y[_0x5e0346(0x4d9)][_0x5e0346(0x419)]},'stroke':{'lineStrokeType':y[_0x5e0346(0x299)]['NoLine']},'shapeText':{'isHorizontal':!!_0xffbf8d[_0x5e0346(0x2ee)]}});}return _0x2a250e[_0x5e0346(0x453)](c['InsertShapeCommand']['id'],_0x4b485d);}};let Y=class extends l[_0x4c1bdf(0x279)]{constructor(_0x25c3a6,_0x489cc4){const _0xfbd169=_0x4c1bdf;super(),this[_0xfbd169(0x48c)]=_0x25c3a6,this[_0xfbd169(0x47d)]=_0x489cc4,this[_0xfbd169(0x1b4)](),this['_clipService'][_0xfbd169(0x505)](!0x0),this[_0xfbd169(0x35c)]({'dispose':()=>this[_0xfbd169(0x48c)][_0xfbd169(0x505)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0xf30f43=_0x4c1bdf;let _0x3eac51=this[_0xf30f43(0x48c)],_0x470977=new Map(),_0x1e1537=_0x3eac51[_0xf30f43(0x394)]((_0x2c2990,_0x33b45d,_0x59f8bc,_0x3a2c64,_0x4cb7d0)=>{const _0x1a8013=_0xf30f43;let _0x134953=_0x33b45d;if(_0x134953===y[_0x1a8013(0x34e)][_0x1a8013(0x260)]||_0x33b45d===_0x1a8013(0x3d3))return!0x1;try{let _0x4757d9=_0x470977[_0x1a8013(0x100)](_0x33b45d);return _0x4757d9||(_0x4757d9=new y[(_0x1a8013(0xeb))](_0x134953,_0x1a8013(0x377)+_0x33b45d),_0x470977[_0x1a8013(0x2a5)](_0x33b45d,_0x4757d9)),_0x4cb7d0&&_0x4757d9[_0x1a8013(0x2c2)]({'adjustValues':_0x4cb7d0},!0x0),_0x4757d9[_0x1a8013(0x3ee)]({'width':_0x59f8bc,'height':_0x3a2c64}),_0x4757d9[_0x1a8013(0x47b)](_0x2c2990,{'left':0x0,'top':0x0,'width':_0x59f8bc,'height':_0x3a2c64});}catch{return!0x1;}});this[_0xf30f43(0x35c)](_0x1e1537),this[_0xf30f43(0x35c)]({'dispose':()=>_0x470977[_0xf30f43(0xa9)]()});}['clipByShape'](_0x10396a,_0x58cd0d,_0x4f6404,_0x157f5c,_0x1b356c){const _0x34cc4e=_0x4c1bdf;let _0x2ccf47=this[_0x34cc4e(0x47d)][_0x34cc4e(0x5f5)](_0x10396a,_0x58cd0d);if(!_0x2ccf47[_0x4f6404])return;let _0x5be7cc={..._0x2ccf47[_0x4f6404],'prstGeom':_0x157f5c,'adjustValues':_0x1b356c};this['_drawingManagerService'][_0x34cc4e(0xaa)]([_0x5be7cc]);}};Y=U([H(0x0,(0x0,l[_0x4c1bdf(0x130)])(S['DrawingImageClipService'])),H(0x1,(0x0,l[_0x4c1bdf(0x130)])(u[_0x4c1bdf(0x601)]))],Y);let X=function(_0xecf63d){const _0x3e239b=_0x4c1bdf;return _0xecf63d[_0x3e239b(0xc1)]=_0x3e239b(0x5ff),_0xecf63d[_0x3e239b(0x56a)]='rectangle',_0xecf63d['BasicShape']='basicShape',_0xecf63d['BlockArrow']=_0x3e239b(0x10f),_0xecf63d['EquationShape']=_0x3e239b(0x176),_0xecf63d['Flowchart']=_0x3e239b(0x427),_0xecf63d[_0x3e239b(0x2b9)]='starAndBanner',_0xecf63d[_0x3e239b(0x262)]=_0x3e239b(0x404),_0xecf63d[_0x3e239b(0x300)]=_0x3e239b(0x232),_0xecf63d;}({});const le=[{'group':X['Line'],'type':y[_0x4c1bdf(0x34e)]['Line'],'icon':_0x4c1bdf(0x306),'name':'shape.type.line'},{'group':X['Line'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x494)],'icon':_0x4c1bdf(0x168),'name':_0x4c1bdf(0x546),'endArrow':!0x0},{'group':X[_0x4c1bdf(0xc1)],'type':y['ShapeTypeEnum']['StraightConnector1'],'icon':_0x4c1bdf(0x207),'name':'shape.type.straight-connector2','endArrow':!0x0,'startArrow':!0x0},{'group':X[_0x4c1bdf(0xc1)],'type':y[_0x4c1bdf(0x34e)]['BentConnector3'],'icon':_0x4c1bdf(0x38b),'name':_0x4c1bdf(0x503)},{'group':X[_0x4c1bdf(0xc1)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x28b)],'icon':_0x4c1bdf(0x275),'name':_0x4c1bdf(0xbe),'endArrow':!0x0},{'group':X['Line'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x28b)],'icon':'ShapeBentConnector3Arrow2Icon','name':'shape.type.bent-connector3-arrow2','endArrow':!0x0,'startArrow':!0x0},{'group':X[_0x4c1bdf(0xc1)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x163)],'icon':_0x4c1bdf(0x343),'name':_0x4c1bdf(0xb4)},{'group':X[_0x4c1bdf(0xc1)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x163)],'icon':_0x4c1bdf(0x149),'name':_0x4c1bdf(0x56b),'endArrow':!0x0},{'group':X[_0x4c1bdf(0xc1)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x163)],'icon':_0x4c1bdf(0x14f),'name':_0x4c1bdf(0xdb),'endArrow':!0x0,'startArrow':!0x0},{'group':X['Rectangle'],'type':y[_0x4c1bdf(0x34e)]['Rect'],'icon':_0x4c1bdf(0xd3),'name':_0x4c1bdf(0x437)},{'group':X['Rectangle'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x25b)],'icon':_0x4c1bdf(0x456),'name':'shape.type.round-rect'},{'group':X[_0x4c1bdf(0x56a)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x3ca)],'icon':_0x4c1bdf(0x235),'name':'shape.type.snip1-rect'},{'group':X[_0x4c1bdf(0x56a)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x154)],'icon':_0x4c1bdf(0x2f8),'name':_0x4c1bdf(0x41e)},{'group':X[_0x4c1bdf(0x56a)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0xe0)],'icon':_0x4c1bdf(0x209),'name':_0x4c1bdf(0x188)},{'group':X['Rectangle'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x488)],'icon':_0x4c1bdf(0x57c),'name':_0x4c1bdf(0x34b)},{'group':X['Rectangle'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x550)],'icon':'ShapeRound1RectIcon','name':_0x4c1bdf(0x4a3)},{'group':X[_0x4c1bdf(0x56a)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x3b6)],'icon':_0x4c1bdf(0x4be),'name':_0x4c1bdf(0x1ae)},{'group':X[_0x4c1bdf(0x56a)],'type':y[_0x4c1bdf(0x34e)]['Round2DiagRect'],'icon':_0x4c1bdf(0x4da),'name':_0x4c1bdf(0x3ce)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x25c)],'icon':_0x4c1bdf(0x561),'name':_0x4c1bdf(0xae),'horizontal':!0x0},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x25c)],'icon':_0x4c1bdf(0x54b),'name':_0x4c1bdf(0x353),'vertical':!0x0},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)]['Ellipse'],'icon':'ShapeEllipseIcon','name':_0x4c1bdf(0x175)},{'group':X['BasicShape'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x44a)],'icon':_0x4c1bdf(0x473),'name':'shape.type.triangle'},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)]['RightTriangle'],'icon':_0x4c1bdf(0x53e),'name':_0x4c1bdf(0x426)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x33a)],'icon':_0x4c1bdf(0x157),'name':_0x4c1bdf(0x3ae)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x548)],'icon':_0x4c1bdf(0x477),'name':_0x4c1bdf(0x26c)},{'group':X['BasicShape'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x1cb)],'icon':'ShapeDiamondIcon','name':_0x4c1bdf(0x567)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x4d7)],'icon':_0x4c1bdf(0x3c7),'name':_0x4c1bdf(0xfb)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x374)],'icon':_0x4c1bdf(0x5a3),'name':_0x4c1bdf(0x3da)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x423)],'icon':'ShapeHeptagonIcon','name':'shape.type.heptagon'},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x1dc)],'icon':'ShapeOctagonIcon','name':'shape.type.octagon'},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum']['Decagon'],'icon':_0x4c1bdf(0x2ab),'name':_0x4c1bdf(0x3f9)},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x278)],'icon':'ShapeDodecagonIcon','name':_0x4c1bdf(0x5f0)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)]['Pie'],'icon':_0x4c1bdf(0x51e),'name':_0x4c1bdf(0xc3)},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x558)],'icon':_0x4c1bdf(0xc2),'name':'shape.type.chord'},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x52f)],'icon':_0x4c1bdf(0x583),'name':_0x4c1bdf(0x2c5)},{'group':X['BasicShape'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x280)],'icon':_0x4c1bdf(0x104),'name':_0x4c1bdf(0x487)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)]['HalfFrame'],'icon':_0x4c1bdf(0x55d),'name':_0x4c1bdf(0x2a0)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x314)],'icon':_0x4c1bdf(0x200),'name':_0x4c1bdf(0x1a8)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x34f)],'icon':_0x4c1bdf(0x506),'name':_0x4c1bdf(0x1c5)},{'group':X['BasicShape'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5e3)],'icon':'ShapePlusIcon','name':_0x4c1bdf(0x40c)},{'group':X['BasicShape'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x2bc)],'icon':_0x4c1bdf(0x2ce),'name':_0x4c1bdf(0x20b)},{'group':X['BasicShape'],'type':y[_0x4c1bdf(0x34e)]['Can'],'icon':_0x4c1bdf(0x5d8),'name':_0x4c1bdf(0x350)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)]['Cube'],'icon':_0x4c1bdf(0x389),'name':_0x4c1bdf(0x4e7)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x153)],'icon':_0x4c1bdf(0x504),'name':_0x4c1bdf(0x215)},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x44d)],'icon':'ShapeDonutIcon','name':_0x4c1bdf(0x159)},{'group':X['BasicShape'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0xc7)],'icon':_0x4c1bdf(0x26e),'name':_0x4c1bdf(0x358)},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x3e2)],'icon':_0x4c1bdf(0x319),'name':_0x4c1bdf(0x574)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0xb7)],'icon':_0x4c1bdf(0x1ba),'name':'shape.type.folder-corner'},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x5d3)],'icon':_0x4c1bdf(0x30f),'name':_0x4c1bdf(0x490)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0xca)],'icon':_0x4c1bdf(0x2fd),'name':_0x4c1bdf(0x348)},{'group':X['BasicShape'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x5c4)],'icon':_0x4c1bdf(0x349),'name':_0x4c1bdf(0x4fb)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x406)],'icon':_0x4c1bdf(0x281),'name':_0x4c1bdf(0x1a9)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0xee)],'icon':_0x4c1bdf(0x117),'name':_0x4c1bdf(0x4bf)},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x2d4)],'icon':'ShapeCloudIcon','name':_0x4c1bdf(0x1c7)},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x3ad)],'icon':_0x4c1bdf(0x1a6),'name':_0x4c1bdf(0x1b2)},{'group':X['BasicShape'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x4b2)],'icon':_0x4c1bdf(0x470),'name':_0x4c1bdf(0x42c)},{'group':X['BasicShape'],'type':y[_0x4c1bdf(0x34e)]['BracePair'],'icon':_0x4c1bdf(0x302),'name':_0x4c1bdf(0x30b)},{'group':X['BasicShape'],'type':y[_0x4c1bdf(0x34e)]['LeftBracket'],'icon':_0x4c1bdf(0x5bf),'name':_0x4c1bdf(0x177)},{'group':X[_0x4c1bdf(0x578)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5b7)],'icon':_0x4c1bdf(0x36d),'name':_0x4c1bdf(0x3cf)},{'group':X[_0x4c1bdf(0x578)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x4fd)],'icon':_0x4c1bdf(0x244),'name':'shape.type.left-brace'},{'group':X['BasicShape'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x234)],'icon':'ShapeRightBraceIcon','name':_0x4c1bdf(0x45b)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x19c)],'icon':_0x4c1bdf(0x2e9),'name':_0x4c1bdf(0x3ab)},{'group':X['BlockArrow'],'type':y[_0x4c1bdf(0x34e)]['LeftArrow'],'icon':_0x4c1bdf(0x32c),'name':_0x4c1bdf(0x222)},{'group':X[_0x4c1bdf(0x3f5)],'type':y['ShapeTypeEnum']['UpArrow'],'icon':_0x4c1bdf(0x3df),'name':_0x4c1bdf(0x24d)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x586)],'icon':_0x4c1bdf(0x226),'name':'shape.type.down-arrow'},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)]['LeftRightArrow'],'icon':'ShapeLeftRightArrowIcon','name':_0x4c1bdf(0x1bb)},{'group':X['BlockArrow'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x4fc)],'icon':_0x4c1bdf(0x346),'name':_0x4c1bdf(0x221)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)]['QuadArrow'],'icon':_0x4c1bdf(0x2ad),'name':_0x4c1bdf(0x5c3)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x529)],'icon':_0x4c1bdf(0x5bb),'name':_0x4c1bdf(0x1aa)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x15a)],'icon':_0x4c1bdf(0x5ee),'name':_0x4c1bdf(0x544)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x482)],'icon':_0x4c1bdf(0x51b),'name':_0x4c1bdf(0x2c9)},{'group':X[_0x4c1bdf(0x3f5)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x4c3)],'icon':_0x4c1bdf(0x47f),'name':_0x4c1bdf(0x230)},{'group':X['BlockArrow'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x1e8)],'icon':_0x4c1bdf(0x2aa),'name':_0x4c1bdf(0x3e6)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x49e)],'icon':'ShapeCurvedRightArrowIcon','name':'shape.type.curved-right-arrow'},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)]['CurvedLeftArrow'],'icon':_0x4c1bdf(0x51d),'name':_0x4c1bdf(0x5cd)},{'group':X['BlockArrow'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x435)],'icon':'ShapeCurvedUpArrowIcon','name':_0x4c1bdf(0x592)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x239)],'icon':_0x4c1bdf(0x493),'name':_0x4c1bdf(0x2e0)},{'group':X[_0x4c1bdf(0x3f5)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x5b8)],'icon':_0x4c1bdf(0x525),'name':'shape.type.striped-right-arrow'},{'group':X['BlockArrow'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x2f3)],'icon':'ShapeNotchedRightArrowIcon','name':'shape.type.notched-right-arrow'},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x42a)],'icon':_0x4c1bdf(0x3d9),'name':'shape.type.home-plate'},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)]['Chevron'],'icon':'ShapeChevronIcon','name':'shape.type.chevron'},{'group':X['BlockArrow'],'type':y['ShapeTypeEnum']['RightArrowCallout'],'icon':_0x4c1bdf(0x466),'name':_0x4c1bdf(0x57f)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x27b)],'icon':'ShapeDownArrowCalloutIcon','name':'shape.type.down-arrow-callout'},{'group':X[_0x4c1bdf(0x3f5)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x138)],'icon':_0x4c1bdf(0x15d),'name':_0x4c1bdf(0x3c6)},{'group':X[_0x4c1bdf(0x3f5)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x21b)],'icon':_0x4c1bdf(0x4f3),'name':_0x4c1bdf(0x1eb)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x3b0)],'icon':_0x4c1bdf(0x5f2),'name':_0x4c1bdf(0x4b0)},{'group':X[_0x4c1bdf(0x3f5)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x313)],'icon':'ShapeQuadArrowCalloutIcon','name':'shape.type.quad-arrow-callout'},{'group':X['BlockArrow'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x155)],'icon':_0x4c1bdf(0x136),'name':'shape.type.circular-arrow'},{'group':X[_0x4c1bdf(0x2e7)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x40d)],'icon':_0x4c1bdf(0x19e),'name':_0x4c1bdf(0xf6)},{'group':X['EquationShape'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5eb)],'icon':'ShapeMathMinusIcon','name':'shape.type.math-minus'},{'group':X['EquationShape'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x105)],'icon':_0x4c1bdf(0x5c5),'name':_0x4c1bdf(0x489)},{'group':X[_0x4c1bdf(0x2e7)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x22a)],'icon':_0x4c1bdf(0x402),'name':_0x4c1bdf(0x19b)},{'group':X[_0x4c1bdf(0x2e7)],'type':y[_0x4c1bdf(0x34e)]['MathEqual'],'icon':_0x4c1bdf(0x3c2),'name':_0x4c1bdf(0x20c)},{'group':X[_0x4c1bdf(0x2e7)],'type':y[_0x4c1bdf(0x34e)]['MathNotEqual'],'icon':'ShapeMathNotEqualIcon','name':_0x4c1bdf(0x384)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5ad)],'icon':_0x4c1bdf(0x491),'name':_0x4c1bdf(0x2c1)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)]['FlowchartAlternateProcess'],'icon':'ShapeFlowChartAlternateProcessIcon','name':_0x4c1bdf(0x4c9)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)]['FlowchartDecision'],'icon':_0x4c1bdf(0xcc),'name':_0x4c1bdf(0x1bf)},{'group':X[_0x4c1bdf(0x38d)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x45d)],'icon':_0x4c1bdf(0x126),'name':'shape.type.flow-chart-input-output'},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x43a)],'icon':_0x4c1bdf(0x4f2),'name':'shape.type.flow-chart-predefined-process'},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)]['FlowchartInternalStorage'],'icon':_0x4c1bdf(0x3bc),'name':'shape.type.flow-chart-internal-storage'},{'group':X[_0x4c1bdf(0x38d)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x1c3)],'icon':'ShapeFlowChartDocumentIcon','name':_0x4c1bdf(0x1bd)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)]['FlowchartMultiDocument'],'icon':_0x4c1bdf(0x4e3),'name':_0x4c1bdf(0x34d)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0xcf)],'icon':_0x4c1bdf(0x214),'name':'shape.type.flow-chart-terminator'},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x145)],'icon':_0x4c1bdf(0x133),'name':_0x4c1bdf(0x5ae)},{'group':X[_0x4c1bdf(0x38d)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x46d)],'icon':_0x4c1bdf(0x3dd),'name':_0x4c1bdf(0x3c5)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x35a)],'icon':_0x4c1bdf(0x1ff),'name':'shape.type.flow-chart-manual-operation'},{'group':X[_0x4c1bdf(0x38d)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x58b)],'icon':_0x4c1bdf(0x253),'name':_0x4c1bdf(0xf5)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x225)],'icon':_0x4c1bdf(0x498),'name':_0x4c1bdf(0x5f4)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5dc)],'icon':'ShapeFlowChartPunchedCardIcon','name':'shape.type.flow-chart-punched-card'},{'group':X[_0x4c1bdf(0x38d)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x3c1)],'icon':_0x4c1bdf(0x45e),'name':_0x4c1bdf(0x3a8)},{'group':X[_0x4c1bdf(0x38d)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x1d5)],'icon':_0x4c1bdf(0x5d1),'name':'shape.type.flow-chart-summing-junction'},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x607)],'icon':_0x4c1bdf(0x481),'name':'shape.type.flow-chart-or'},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x1d8)],'icon':_0x4c1bdf(0x3ac),'name':_0x4c1bdf(0x5e6)},{'group':X['Flowchart'],'type':y[_0x4c1bdf(0x34e)]['FlowchartSort'],'icon':_0x4c1bdf(0x259),'name':'shape.type.flow-chart-sort'},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x218)],'icon':_0x4c1bdf(0x202),'name':_0x4c1bdf(0xb0)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5ca)],'icon':_0x4c1bdf(0x311),'name':_0x4c1bdf(0x4b3)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)]['FlowchartOnlineStorage'],'icon':'ShapeFlowChartOnlineStorageIcon','name':_0x4c1bdf(0x5a2)},{'group':X['Flowchart'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x50f)],'icon':_0x4c1bdf(0x217),'name':_0x4c1bdf(0x536)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)]['FlowchartMagneticTape'],'icon':_0x4c1bdf(0x4f4),'name':'shape.type.flow-chart-magnetic-tape'},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)]['FlowchartMagneticDisk'],'icon':_0x4c1bdf(0xe7),'name':_0x4c1bdf(0x46a)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x107)],'icon':_0x4c1bdf(0x1e9),'name':_0x4c1bdf(0xe1)},{'group':X[_0x4c1bdf(0x38d)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x339)],'icon':_0x4c1bdf(0x29f),'name':_0x4c1bdf(0x2a4)},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x54c)],'icon':_0x4c1bdf(0x203),'name':'shape.type.irregular-seal1'},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0xd2)],'icon':_0x4c1bdf(0x5f9),'name':_0x4c1bdf(0x2a6)},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x27d)],'icon':_0x4c1bdf(0x30c),'name':_0x4c1bdf(0x10a)},{'group':X[_0x4c1bdf(0x2b9)],'type':y['ShapeTypeEnum']['Star5'],'icon':_0x4c1bdf(0x543),'name':'shape.type.star5'},{'group':X['StarAndBanner'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x33b)],'icon':_0x4c1bdf(0x382),'name':_0x4c1bdf(0x1f5)},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x312)],'icon':_0x4c1bdf(0x3f3),'name':_0x4c1bdf(0x54a)},{'group':X[_0x4c1bdf(0x2b9)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x492)],'icon':_0x4c1bdf(0x39c),'name':_0x4c1bdf(0x352)},{'group':X['StarAndBanner'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x2d7)],'icon':_0x4c1bdf(0x301),'name':'shape.type.star10'},{'group':X[_0x4c1bdf(0x2b9)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x363)],'icon':_0x4c1bdf(0x54e),'name':'shape.type.star12'},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x42d)],'icon':_0x4c1bdf(0x551),'name':_0x4c1bdf(0x40e)},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x1ee)],'icon':_0x4c1bdf(0x415),'name':_0x4c1bdf(0x179)},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x150)],'icon':_0x4c1bdf(0x269),'name':'shape.type.star32'},{'group':X[_0x4c1bdf(0x2b9)],'type':y['ShapeTypeEnum']['Ribbon2'],'icon':_0x4c1bdf(0x1b8),'name':'shape.type.ribbon2'},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x568)],'icon':_0x4c1bdf(0x38a),'name':'shape.type.ribbon'},{'group':X[_0x4c1bdf(0x2b9)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x2ec)],'icon':'ShapeEllipseRibbon2Icon','name':_0x4c1bdf(0x5ec)},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x474)],'icon':_0x4c1bdf(0x42e),'name':_0x4c1bdf(0x1da)},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x45c)],'icon':_0x4c1bdf(0x486),'name':_0x4c1bdf(0x273)},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x3bb)],'icon':_0x4c1bdf(0x265),'name':'shape.type.horizontal-scroll'},{'group':X[_0x4c1bdf(0x2b9)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x2ff)],'icon':'ShapeWaveIcon','name':_0x4c1bdf(0x190)},{'group':X['StarAndBanner'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x21a)],'icon':_0x4c1bdf(0x4f5),'name':_0x4c1bdf(0x198)},{'group':X['Callout'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5b5)],'icon':'ShapeWedgeRectCalloutIcon','name':_0x4c1bdf(0x303)},{'group':X['Callout'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x413)],'icon':_0x4c1bdf(0x2db),'name':'shape.type.wedge-round-rect-callout'},{'group':X[_0x4c1bdf(0x262)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x535)],'icon':_0x4c1bdf(0x58e),'name':'shape.type.wedge-ellipse-callout'},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5a5)],'icon':_0x4c1bdf(0x4ff),'name':_0x4c1bdf(0x5c1)},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x173)],'icon':_0x4c1bdf(0x534),'name':_0x4c1bdf(0x39b)},{'group':X['Callout'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x2d2)],'icon':_0x4c1bdf(0x24a),'name':_0x4c1bdf(0x4d5)},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)]['BorderCallout3'],'icon':_0x4c1bdf(0x55f),'name':_0x4c1bdf(0x408)},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)]['AccentCallout1'],'icon':'ShapeAccentCallout1Icon','name':_0x4c1bdf(0x553)},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x3ef)],'icon':_0x4c1bdf(0x5d7),'name':_0x4c1bdf(0x44c)},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x4ed)],'icon':_0x4c1bdf(0x606),'name':'shape.type.accent-callout3'},{'group':X['Callout'],'type':y[_0x4c1bdf(0x34e)]['Callout1'],'icon':_0x4c1bdf(0xf9),'name':_0x4c1bdf(0x236)},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x1de)],'icon':'ShapeCallout2Icon','name':_0x4c1bdf(0x4c1)},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x248)],'icon':'ShapeCallout3Icon','name':'shape.type.callout3'},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x294)],'icon':_0x4c1bdf(0x3bf),'name':_0x4c1bdf(0x58d)},{'group':X[_0x4c1bdf(0x262)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x45f)],'icon':_0x4c1bdf(0x4b6),'name':_0x4c1bdf(0x5bc)},{'group':X[_0x4c1bdf(0x262)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x52b)],'icon':_0x4c1bdf(0x39f),'name':'shape.type.accent-border-callout3'},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x381)],'icon':'ShapeLeftCircularArrowIcon','name':_0x4c1bdf(0x243)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)]['LeftRightCircularArrow'],'icon':_0x4c1bdf(0x345),'name':_0x4c1bdf(0x22e)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0xd6)],'icon':'ShapeSwooshArrowIcon','name':'shape.type.swoosh-arrow'},{'group':X['Other'],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x4e5)],'icon':'ShapeLeftRightRibbonIcon','name':_0x4c1bdf(0x182)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x3db)],'icon':'ShapePieWedgeIcon','name':_0x4c1bdf(0x59d)},{'group':X['Other'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x3d7)],'icon':_0x4c1bdf(0x521),'name':'shape.type.funnel'},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x44e)],'icon':_0x4c1bdf(0x45a),'name':'shape.type.gear6'},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x332)],'icon':'ShapeGear9Icon','name':_0x4c1bdf(0x26f)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)]['CornerTabs'],'icon':'ShapeCornerTabsIcon','name':_0x4c1bdf(0x35b)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)]['ActionButtonBackPrevious'],'icon':_0x4c1bdf(0x31c),'name':_0x4c1bdf(0x5af)},{'group':X[_0x4c1bdf(0x300)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x172)],'icon':_0x4c1bdf(0x5a9),'name':_0x4c1bdf(0x584)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)]['ActionButtonBeginning'],'icon':_0x4c1bdf(0x517),'name':'shape.type.action-button-beginning'},{'group':X['Other'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x515)],'icon':_0x4c1bdf(0x11a),'name':_0x4c1bdf(0x41d)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x37d)],'icon':_0x4c1bdf(0x2e5),'name':'shape.type.action-button-home'},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x5c8)],'icon':_0x4c1bdf(0x507),'name':_0x4c1bdf(0x48d)},{'group':X['Other'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x20a)],'icon':_0x4c1bdf(0x18c),'name':_0x4c1bdf(0x5cc)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)]['ActionButtonMovie'],'icon':_0x4c1bdf(0x361),'name':_0x4c1bdf(0xd1)},{'group':X['Other'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x46e)],'icon':_0x4c1bdf(0x378),'name':_0x4c1bdf(0x448)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0xd0)],'icon':_0x4c1bdf(0x49b),'name':_0x4c1bdf(0x405)},{'group':X[_0x4c1bdf(0x300)],'type':y['ShapeTypeEnum']['ActionButtonHelp'],'icon':_0x4c1bdf(0x545),'name':_0x4c1bdf(0x233)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x158)],'icon':_0x4c1bdf(0x48f),'name':_0x4c1bdf(0x53a)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x2d1)],'icon':_0x4c1bdf(0x2ae),'name':'shape.type.chart-plus'},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x340)],'icon':_0x4c1bdf(0x57b),'name':_0x4c1bdf(0x1e4)},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)]['ChartX'],'icon':_0x4c1bdf(0x3fe),'name':'shape.type.chart-x'},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x208)],'icon':'ShapeFlowChartOfflineStorageIcon','name':'shape.type.flow-chart-offline-storage'},{'group':X[_0x4c1bdf(0x300)],'type':y[_0x4c1bdf(0x34e)]['LineInv'],'icon':_0x4c1bdf(0xc0),'name':_0x4c1bdf(0x3ec)},{'group':X['Other'],'type':y[_0x4c1bdf(0x34e)][_0x4c1bdf(0x46f)],'icon':_0x4c1bdf(0x4aa),'name':_0x4c1bdf(0x5de)},{'group':X[_0x4c1bdf(0x300)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0xf8)],'icon':_0x4c1bdf(0x2cd),'name':_0x4c1bdf(0x1ef)},{'group':X['Other'],'type':y[_0x4c1bdf(0x34e)]['UpDownArrowCallout'],'icon':_0x4c1bdf(0x392),'name':_0x4c1bdf(0xea)},{'group':X[_0x4c1bdf(0x300)],'type':y['ShapeTypeEnum'][_0x4c1bdf(0x2b0)],'icon':_0x4c1bdf(0x3d8),'name':'shape.type.non-isosceles-trapezoid'}],ue='sheet.shape.picker.component';function Z({onShapeClick:_0x371cb5,excludeGroups:_0x3a1fd9}){const _0x178dcd=_0x4c1bdf;let _0x479111=(0x0,v[_0x178dcd(0x360)])(l['LocaleService']),_0x23a4ba=(0x0,v[_0x178dcd(0x360)])(v[_0x178dcd(0x115)]),_0x586c4e=(_0x3a1fd9?le[_0x178dcd(0xdd)](_0x2420ee=>!_0x3a1fd9[_0x178dcd(0x2fb)](_0x2420ee[_0x178dcd(0x31b)])):le)[_0x178dcd(0x11e)]((_0x454357,_0xc83474)=>(_0x454357[_0xc83474[_0x178dcd(0x31b)]]||(_0x454357[_0xc83474[_0x178dcd(0x31b)]]=[]),_0x454357[_0xc83474[_0x178dcd(0x31b)]][_0x178dcd(0x4ad)](_0xc83474),_0x454357),{});return(0x0,C['jsx'])('div',{'className':_0x178dcd(0x539),'children':Object[_0x178dcd(0x55a)](_0x586c4e)['map'](([_0x402165,_0x1bc9a2])=>(0x0,C[_0x178dcd(0x495)])(_0x178dcd(0xb8),{'className':_0x178dcd(0x530),'children':[(0x0,C[_0x178dcd(0x3d1)])(_0x178dcd(0xb8),{'className':_0x178dcd(0x148),'children':_0x479111['t'](_0x178dcd(0x3cd)+_0x402165)}),(0x0,C['jsx'])(_0x178dcd(0xb8),{'className':_0x178dcd(0x28f),'children':_0x1bc9a2['map'](_0x2a956e=>{const _0x2934d7=_0x178dcd;let _0x413a92=_0x23a4ba['get'](_0x2a956e[_0x2934d7(0x5dd)]);return(0x0,C[_0x2934d7(0x3d1)])('div',{'title':_0x479111['t'](_0x2a956e[_0x2934d7(0x462)]),'onClick':()=>_0x371cb5(_0x2a956e),'className':_0x2934d7(0x528),'children':_0x413a92&&(0x0,C[_0x2934d7(0x3d1)])(_0x413a92,{'className':_0x2934d7(0x59a)})},_0x2a956e['type']);})})]},_0x402165))});}function Q(){const _0x57bfb4=_0x4c1bdf;let _0x656fb0=(0x0,v['useDependency'])(l[_0x57bfb4(0x4f0)]),_0x2ef61e=(0x0,v[_0x57bfb4(0x360)])(u[_0x57bfb4(0x601)]),_0x16bce0=(0x0,v[_0x57bfb4(0x360)])(Y),[_0x14a60d,_0x2ecf47]=(0x0,x['useState'])(!0x1);return(0x0,C[_0x57bfb4(0x3d1)])(b[_0x57bfb4(0x603)],{'side':_0x57bfb4(0xa7),'open':_0x14a60d,'onOpenChange':_0x2ecf47,'overlay':(0x0,C[_0x57bfb4(0x3d1)])(Z,{'onShapeClick':_0x5f2dfc=>{const _0x36d945=_0x57bfb4;let _0x504dfa=_0x2ef61e[_0x36d945(0x577)]()[_0x36d945(0x57e)](_0x274a3=>_0x274a3['drawingType']===l['DrawingTypeEnum']['DRAWING_IMAGE']);if(!_0x504dfa)return;let {unitId:_0x2e0242,subUnitId:_0x38d034,drawingId:_0xf2f5f0}=_0x504dfa;_0x16bce0[_0x36d945(0x2b1)](_0x2e0242,_0x38d034,_0xf2f5f0,_0x5f2dfc['type']),_0x2ecf47(!0x1);},'excludeGroups':[X[_0x57bfb4(0xc1)]]}),'children':(0x0,C[_0x57bfb4(0x3d1)])(b[_0x57bfb4(0x329)],{'children':_0x656fb0['t'](_0x57bfb4(0x3a2))})});}function de(){const _0x137e2d=_0x4c1bdf;let _0x494030=(0x0,v[_0x137e2d(0x360)])(l[_0x137e2d(0x1dd)]);return(0x0,C[_0x137e2d(0x3d1)])(Z,{'onShapeClick':_0x3a44c7=>{const _0x4e773e=_0x137e2d;_0x494030[_0x4e773e(0x453)](J['id'],{'value':_0x3a44c7['type'],'enhanceParams':{'endArrow':_0x3a44c7['endArrow'],'startArrow':_0x3a44c7['startArrow'],'horizontal':_0x3a44c7['horizontal'],'vertical':_0x3a44c7[_0x4e773e(0x386)]}});}});}const fe=[{'label':_0x4c1bdf(0x142),'icon':_0x4c1bdf(0x5d2),'value':l[_0x4c1bdf(0x4af)][_0x4c1bdf(0x3b2)]},{'label':_0x4c1bdf(0x2d0),'icon':_0x4c1bdf(0x272),'value':l['HorizontalAlign'][_0x4c1bdf(0x240)]},{'label':'align.right','icon':_0x4c1bdf(0x324),'value':l['HorizontalAlign']['RIGHT']}];function pe(_0x50b7c0){const _0x19c0e7=_0x4c1bdf;var _0x552488;let _0x15293a=_0x50b7c0[_0x19c0e7(0x100)](l[_0x19c0e7(0x1dd)]),_0x2157b4=_0x50b7c0['get'](l[_0x19c0e7(0x125)]),_0xf73068=_0x50b7c0[_0x19c0e7(0x100)](l[_0x19c0e7(0x17a)]),_0x2c223e=_0x50b7c0['get'](T[_0x19c0e7(0x204)]),_0x4d6869=l[_0x19c0e7(0x4af)][_0x19c0e7(0x3b2)],_0x20e12a=()=>{const _0x4f3514=_0x19c0e7;try{var _0x44dfaf;let _0x5b73c7=_0xf73068[_0x4f3514(0x151)](z,l[_0x4f3514(0x47a)][_0x4f3514(0x4a0)]);if(!_0x5b73c7)return _0x4d6869;let _0x3dfefe=_0x2c223e[_0x4f3514(0x1e2)](),_0xc5598c=(_0x44dfaf=_0x3dfefe[_0x4f3514(0x57e)](_0x24b43f=>_0x24b43f[_0x4f3514(0x21c)]))==null?_0x3dfefe[0x0]:_0x44dfaf;if(!_0xc5598c)return _0x4d6869;let {startOffset:_0x3ae52,segmentId:_0x10b91d}=_0xc5598c,_0x3baf69=_0x5b73c7[_0x4f3514(0x459)](_0x10b91d)[_0x4f3514(0x3fb)](),_0x5c1623=_0x3baf69==null?void 0x0:_0x3baf69[_0x4f3514(0x43c)];if(!_0x5c1623)return _0x4d6869;let _0x2b1b0c=-0x1;for(let _0x2cc3c1 of _0x5c1623){let {startIndex:_0x343dff}=_0x2cc3c1;if(_0x3ae52>_0x2b1b0c&&_0x3ae52<=_0x343dff){var _0x47869f,_0x582f2b;return(_0x47869f=(_0x582f2b=_0x2cc3c1[_0x4f3514(0x469)])==null?void 0x0:_0x582f2b[_0x4f3514(0x27e)])==null?_0x4d6869:_0x47869f;}_0x2b1b0c=_0x343dff;}}catch{}return _0x4d6869;};return{'id':L['id'],'icon':(_0x552488=fe[_0x19c0e7(0x57e)](_0x28c74f=>_0x28c74f[_0x19c0e7(0x449)]===_0x4d6869))==null?void 0x0:_0x552488[_0x19c0e7(0x5dd)],'tooltip':_0x19c0e7(0x5bd),'type':v[_0x19c0e7(0x13e)][_0x19c0e7(0x1f8)],'selections':fe,'value$':new f[(_0x19c0e7(0x484))](_0x233ba7=>{const _0x2845b2=_0x19c0e7;let _0x4a40fc=_0x15293a[_0x2845b2(0x43e)](_0xa81ef=>{const _0x3e031a=_0x2845b2;let _0x34518a=_0xa81ef['id'];(_0x34518a===h[_0x3e031a(0x15c)]['id']||_0x34518a===h[_0x3e031a(0x28d)]['id']||_0x34518a===h['AlignRightCommand']['id']||_0x34518a===h[_0x3e031a(0x147)]['id']||_0x34518a===h[_0x3e031a(0x3f8)]['id']||_0x34518a===L['id'])&&_0x233ba7['next'](_0x20e12a());}),_0x5724e5=_0x2157b4[_0x2845b2(0x216)](l[_0x2845b2(0x3b9)])[_0x2845b2(0x520)](()=>{_0x233ba7['next'](_0x20e12a());});return _0x233ba7[_0x2845b2(0x304)](_0x20e12a()),()=>{const _0x3c02b1=_0x2845b2;_0x4a40fc[_0x3c02b1(0x212)](),_0x5724e5['unsubscribe']();};}),'hidden$':_0x2157b4[_0x19c0e7(0x216)](l[_0x19c0e7(0x3b9)])[_0x19c0e7(0x2f1)]((0x0,f[_0x19c0e7(0x296)])(_0xd300c7=>!_0xd300c7))};}function me(_0x2b6a5a){const _0x29ea34=_0x4c1bdf;let _0x2ae630=_0x2b6a5a[_0x29ea34(0x100)](l['IContextService']),_0x45f1c7=_0x2b6a5a[_0x29ea34(0x100)](l[_0x29ea34(0x56c)]);return{'id':h[_0x29ea34(0x55e)]['id'],'tooltip':'toolbar.fillColor.main','type':v[_0x29ea34(0x13e)][_0x29ea34(0x26b)],'icon':_0x29ea34(0xe9),'selections':[{'label':{'name':v[_0x29ea34(0xbb)],'hoverable':!0x1,'selectable':!0x1}}],'value$':new f[(_0x29ea34(0x484))](_0x272eac=>{const _0x22c7f3=_0x29ea34;_0x272eac[_0x22c7f3(0x304)](_0x45f1c7[_0x22c7f3(0x5a7)]('primary.600'));}),'hidden$':_0x2ae630[_0x29ea34(0x216)](l[_0x29ea34(0x3b9)])[_0x29ea34(0x2f1)]((0x0,f[_0x29ea34(0x296)])(_0x3355b9=>!_0x3355b9))};}function he(_0x1051d8){const _0x58fc58=_0x4c1bdf;let _0x44f895=_0x1051d8[_0x58fc58(0x100)](l[_0x58fc58(0x125)]);return{'id':h[_0x58fc58(0x2bf)]['id'],'type':v[_0x58fc58(0x13e)][_0x58fc58(0x2c3)],'title':_0x58fc58(0x4f1),'hidden$':_0x44f895[_0x58fc58(0x216)](l[_0x58fc58(0x3b9)])[_0x58fc58(0x2f1)]((0x0,f['map'])(_0x454912=>!_0x454912))};}const ge=[{'label':_0x4c1bdf(0x245),'icon':_0x4c1bdf(0x591),'value':l[_0x4c1bdf(0x325)]['TOP']},{'label':_0x4c1bdf(0x293),'icon':_0x4c1bdf(0x4ab),'value':l['VerticalAlign'][_0x4c1bdf(0x2b5)]},{'label':'align.bottom','icon':_0x4c1bdf(0x476),'value':l[_0x4c1bdf(0x325)][_0x4c1bdf(0x283)]}];function _e(_0x451aee){const _0x18399f=_0x4c1bdf;var _0xd88edf;let _0x469274=_0x451aee[_0x18399f(0x100)](l[_0x18399f(0x1dd)]),_0x172d14=_0x451aee['get'](l[_0x18399f(0x125)]),_0x75f835=_0x451aee[_0x18399f(0x100)](m[_0x18399f(0x124)]),_0x2371b0=_0x451aee[_0x18399f(0x100)](A),_0x34b169=_0x451aee[_0x18399f(0x100)](c[_0x18399f(0x114)]),_0x89040b=l['VerticalAlign'][_0x18399f(0x508)],_0x24542a=()=>{const _0xd99616=_0x18399f;var _0x5163ac;let _0x29e92b=_0x75f835[_0xd99616(0x577)]()['filter'](_0x50bfc1=>_0x50bfc1[_0xd99616(0x3c3)]===l['DrawingTypeEnum'][_0xd99616(0x118)]);if(_0x29e92b[_0xd99616(0x4b4)]!==0x1)return _0x89040b;let _0x3ed64a=_0x2371b0['getEditing'](),_0x35d54a=(_0x3ed64a==null?void 0x0:_0x3ed64a[_0xd99616(0x372)])||_0x29e92b[0x0]['unitId'],_0x58d8d3=(_0x3ed64a==null?void 0x0:_0x3ed64a['subUnitId'])||_0x29e92b[0x0][_0xd99616(0x4b8)],_0x180ccb=(_0x3ed64a==null?void 0x0:_0x3ed64a[_0xd99616(0x3fc)])||_0x29e92b[0x0][_0xd99616(0x1f0)],_0x1309ad=_0x34b169['getShapeModel'](_0x35d54a,_0x58d8d3,_0x180ccb);if(!_0x1309ad)return _0x89040b;let _0x227ac2=_0x1309ad[_0xd99616(0x556)]();if(!_0x227ac2||!('dataModel'in _0x227ac2))return _0x89040b;let _0x12c43c=_0x227ac2[_0xd99616(0x2c0)];return(_0x5163ac=_0x12c43c==null?void 0x0:_0x12c43c['va'])==null?_0x89040b:_0x5163ac;};return{'id':I['id'],'icon':(_0xd88edf=ge[_0x18399f(0x57e)](_0x3672ae=>_0x3672ae[_0x18399f(0x449)]===_0x89040b))==null?void 0x0:_0xd88edf[_0x18399f(0x5dd)],'tooltip':'toolbar.verticalAlignMode.main','type':v[_0x18399f(0x13e)]['SELECTOR'],'selections':ge,'value$':new f['Observable'](_0x57fa1b=>{const _0x2a1397=_0x18399f;let _0x4c5fc6=_0x469274[_0x2a1397(0x43e)](_0x5ad0da=>{const _0x177624=_0x2a1397;_0x5ad0da['id']===I['id']&&_0x57fa1b[_0x177624(0x304)](_0x24542a());}),_0x4b32ec=_0x2371b0[_0x2a1397(0x2b6)][_0x2a1397(0x520)](()=>{const _0x45b0ea=_0x2a1397;_0x57fa1b[_0x45b0ea(0x304)](_0x24542a());});return _0x57fa1b[_0x2a1397(0x304)](_0x24542a()),()=>{const _0xa3af78=_0x2a1397;_0x4c5fc6['dispose'](),_0x4b32ec[_0xa3af78(0x559)]();};}),'hidden$':_0x172d14[_0x18399f(0x216)](l['FOCUSING_COMMON_DRAWINGS'])[_0x18399f(0x2f1)]((0x0,f[_0x18399f(0x296)])(_0x443420=>!_0x443420))};}function ve(_0x58a319){const _0xb08ece=_0x4c1bdf;let _0x16ebdd=_0x58a319[_0xb08ece(0x100)](l[_0xb08ece(0x17a)]);return{'id':J['id'],'type':v[_0xb08ece(0x13e)]['SELECTOR'],'selections':[{'label':{'name':ue,'hoverable':!0x1,'selectable':!0x1,'props':{'id':J['id']}}}],'icon':_0xb08ece(0x5b3),'tooltip':_0xb08ece(0x2b4),'activated$':(0x0,_['deriveStateFromActiveSheet$'])(_0x16ebdd,!0x1,()=>new f['Observable'](_0x198e78=>{_0x198e78['next'](!0x1);})),'hidden$':(0x0,v[_0xb08ece(0x5b0)])(_0x58a319,l[_0xb08ece(0x47a)][_0xb08ece(0x2f9)]),'disabled$':(0x0,_['getCurrentRangeDisable$'])(_0x58a319)};}const ye={[v['RibbonPosition'][_0x4c1bdf(0x23a)]]:{[v[_0x4c1bdf(0x541)][_0x4c1bdf(0x53f)]]:{[I['id']]:{'order':3.5,'menuItemFactory':_e},[L['id']]:{'order':3.4,'menuItemFactory':pe}},[v[_0x4c1bdf(0x541)][_0x4c1bdf(0x460)]]:{[h[_0x4c1bdf(0x55e)]['id']]:{'order':0x1,'menuItemFactory':me,[h[_0x4c1bdf(0x2bf)]['id']]:{'order':0x0,'menuItemFactory':he}}}},[v[_0x4c1bdf(0x4a9)][_0x4c1bdf(0x390)]]:{[J['id']]:{'order':0x4,'menuItemFactory':ve}}};let be=class extends l[_0x4c1bdf(0x279)]{constructor(_0x409a87,_0x5b7ca9,_0x3e6983,_0xf28fe6,_0x39c526,_0x31f2fb,_0x3f3d86,_0x5761bc,_0x3bd060,_0xfdc151,_0xa499a1){const _0x2720bd=_0x4c1bdf;super(),this[_0x2720bd(0x58a)]=_0x409a87,this['_sheetInterceptorService']=_0x5b7ca9,this[_0x2720bd(0x53c)]=_0x3e6983,this['_menuManagerService']=_0xf28fe6,this[_0x2720bd(0x56d)]=_0x39c526,this['_localeService']=_0x31f2fb,this[_0x2720bd(0x4ee)]=_0x3f3d86,this[_0x2720bd(0x5c6)]=_0x5761bc,this['_drawingManagerService']=_0x3bd060,this[_0x2720bd(0x170)]=_0xfdc151,this['_contextService']=_0xa499a1,k(this,_0x2720bd(0x500),null),k(this,_0x2720bd(0x4a8),null),k(this,_0x2720bd(0x2a3),!0x1),this[_0x2720bd(0x1ce)](),this[_0x2720bd(0x4cd)](),this['disposeWithMe'](this[_0x2720bd(0x58a)][_0x2720bd(0x247)](l[_0x2720bd(0x47a)][_0x2720bd(0x2f9)])[_0x2720bd(0x520)](_0x102735=>{const _0x46419e=_0x2720bd;var _0x49bdda;_0x102735||(_0x49bdda=this[_0x46419e(0x500)])==null||_0x49bdda[_0x46419e(0x212)]();})),this[_0x2720bd(0xde)](),this[_0x2720bd(0x192)]();}[_0x4c1bdf(0x4cd)](){const _0x60129=_0x4c1bdf;this[_0x60129(0x4f9)][_0x60129(0x2a2)](ye);}[_0x4c1bdf(0x192)](){const _0x1a2a2b=_0x4c1bdf;this[_0x1a2a2b(0x170)]['registerFeatureMenu'](l[_0x1a2a2b(0x237)][_0x1a2a2b(0x118)],this[_0x1a2a2b(0x290)][_0x1a2a2b(0x17c)](this)),this['_sheetCanvasPopManagerService'][_0x1a2a2b(0x457)](l['DrawingTypeEnum'][_0x1a2a2b(0x118)],0x6,0x4);}[_0x4c1bdf(0x290)](_0x58d01c,_0x27c8b8,_0x6ba05e,_0x325550){const _0x44772c=_0x4c1bdf;return[{'label':_0x44772c(0x32d),'index':0x0,'commandId':ee['id'],'commandParams':{'unitId':_0x58d01c,'subUnitId':_0x27c8b8,'drawingId':_0x6ba05e},'disable':_0x325550===l[_0x44772c(0x237)][_0x44772c(0xb3)]},{'label':_0x44772c(0x40f),'index':0x1,'commandId':m[_0x44772c(0x327)]['id'],'commandParams':{'unitId':_0x58d01c,'drawings':[{'unitId':_0x58d01c,'subUnitId':_0x27c8b8,'drawingId':_0x6ba05e,'drawingType':_0x325550}]},'disable':!0x1},{'label':_0x44772c(0x1cc),'index':0x2,'commandId':R['id'],'commandParams':{'unitId':_0x58d01c,'subUnitId':_0x27c8b8,'drawingId':_0x6ba05e},'disable':!0x1},{'label':'sheets-shape.toggleFlipH','index':0x3,'commandId':c['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x58d01c,'subUnitId':_0x27c8b8,'shapeId':_0x6ba05e,'flipH':!0x0},'disable':!0x1},{'label':_0x44772c(0x186),'index':0x4,'commandId':c[_0x44772c(0xe2)]['id'],'commandParams':{'unitId':_0x58d01c,'subUnitId':_0x27c8b8,'shapeId':_0x6ba05e,'flipV':!0x0},'disable':!0x1},{'label':'sheets-shape.rotateRight90','index':0x4,'commandId':c[_0x44772c(0x3c0)]['id'],'commandParams':{'unitId':_0x58d01c,'subUnitId':_0x27c8b8,'shapeId':_0x6ba05e,'rotate':0x5a},'disable':!0x1},{'label':_0x44772c(0x5a4),'index':0x4,'commandId':c['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x58d01c,'subUnitId':_0x27c8b8,'shapeId':_0x6ba05e,'rotate':-0x5a},'disable':!0x1}];}[_0x4c1bdf(0x174)](_0x5d7684,_0x1646b0,_0x2d0621){const _0x5f3fb5=_0x4c1bdf;let _0x5ecf53=this[_0x5f3fb5(0x56d)][_0x5f3fb5(0x380)](_0x5d7684,_0x1646b0,_0x2d0621),_0x158b2d=this[_0x5f3fb5(0x56d)]['getShapeDataById'](_0x5d7684,_0x1646b0,_0x2d0621);return _0x5ecf53!==void 0x0&&_0x158b2d!==void 0x0?{'shapeData':_0x158b2d,'shapeId':_0x2d0621,'shapeType':_0x5ecf53,'unitId':_0x5d7684,'subUnitId':_0x1646b0,'disableShapeOption':!0x1}:null;}['_registerOperations'](){const _0x276d77=_0x4c1bdf;this['disposeWithMe'](this[_0x276d77(0x5c6)][_0x276d77(0x43e)](_0x46347a=>{const _0xd84471=_0x276d77;if(_0x46347a['id']===ee['id']){let {unitId:_0x17681e,subUnitId:_0x4ae7ff,drawingId:_0x41e404}=_0x46347a[_0xd84471(0x3b3)];this[_0xd84471(0x4a8)]=this[_0xd84471(0x174)](_0x17681e,_0x4ae7ff,_0x41e404),this[_0xd84471(0x3bd)]();}if(_0x46347a['id']===R['id']&&(this[_0xd84471(0x4a8)]=null,this[_0xd84471(0x4d4)]()),_0x46347a['id']===c[_0xd84471(0x307)]['id']){let {unitId:_0x13c880,subUnitId:_0x449347,shapeId:_0x51e33e}=_0x46347a[_0xd84471(0x3b3)];if(this['_activeShapeInfo']&&this[_0xd84471(0x4a8)][_0xd84471(0x3fc)]===_0x51e33e){let _0x10f3cb=this['_getShapeInfo'](_0x13c880,_0x449347,_0x51e33e);_0x10f3cb&&(this['_activeShapeInfo']=_0x10f3cb);}}})),this[_0x276d77(0x35c)](this[_0x276d77(0x47d)]['focus$'][_0x276d77(0x520)](_0x4eb51c=>{const _0x146d62=_0x276d77;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x4eb51c['length']===0x0){this[_0x146d62(0x4a8)]=null,this[_0x146d62(0x4d4)]();return;}if(_0x4eb51c[_0x146d62(0x4b4)]===0x1&&_0x4eb51c[0x0][_0x146d62(0x3c3)]===l[_0x146d62(0x237)][_0x146d62(0x118)]&&(this[_0x146d62(0x4a8)]=this[_0x146d62(0x174)](_0x4eb51c[0x0][_0x146d62(0x372)],_0x4eb51c[0x0][_0x146d62(0x4b8)],_0x4eb51c[0x0][_0x146d62(0x1f0)]),this[_0x146d62(0x4a8)])){this['_openShapeEditPanel']();return;}let _0x3981a8=_0x4eb51c['filter'](_0x4f2113=>_0x4f2113[_0x146d62(0x3c3)]===l[_0x146d62(0x237)][_0x146d62(0x118)]);if(_0x4eb51c[_0x146d62(0x4b4)]>0x1&&_0x3981a8[_0x146d62(0x4b4)]===_0x4eb51c[_0x146d62(0x4b4)]){if(this['_activeShapeInfo']=this[_0x146d62(0x174)](_0x4eb51c[0x0][_0x146d62(0x372)],_0x4eb51c[0x0][_0x146d62(0x4b8)],_0x4eb51c[0x0][_0x146d62(0x1f0)]),this[_0x146d62(0x4a8)]){this[_0x146d62(0x3bd)]();return;}}else{if(this[_0x146d62(0x4a8)]=this['_getShapeInfo'](_0x4eb51c[0x0][_0x146d62(0x372)],_0x4eb51c[0x0][_0x146d62(0x4b8)],_0x4eb51c[0x0][_0x146d62(0x1f0)]),this[_0x146d62(0x4a8)]){this[_0x146d62(0x4a8)][_0x146d62(0x161)]=!0x0,this[_0x146d62(0x3bd)]();return;}}this['_closeShapeEditPanel']();}));}[_0x4c1bdf(0x1ce)](){const _0x479457=_0x4c1bdf;[[_0x479457(0x5b3),g[_0x479457(0x5b3)]],[_0x479457(0x3bf),g[_0x479457(0x3bf)]],[_0x479457(0x4b6),g[_0x479457(0x4b6)]],[_0x479457(0x39f),g[_0x479457(0x39f)]],[_0x479457(0x572),g[_0x479457(0x572)]],[_0x479457(0x5d7),g[_0x479457(0x5d7)]],[_0x479457(0x606),g[_0x479457(0x606)]],[_0x479457(0x31c),g[_0x479457(0x31c)]],['ShapeActionButtonBeginningIcon',g['ShapeActionButtonBeginningIcon']],[_0x479457(0x48f),g[_0x479457(0x48f)]],[_0x479457(0x378),g[_0x479457(0x378)]],[_0x479457(0x11a),g[_0x479457(0x11a)]],[_0x479457(0x5a9),g[_0x479457(0x5a9)]],[_0x479457(0x545),g[_0x479457(0x545)]],['ShapeActionButtonHomeIcon',g[_0x479457(0x2e5)]],[_0x479457(0x507),g[_0x479457(0x507)]],[_0x479457(0x361),g['ShapeActionButtonMovieIcon']],[_0x479457(0x18c),g[_0x479457(0x18c)]],[_0x479457(0x49b),g[_0x479457(0x49b)]],[_0x479457(0x1a6),g[_0x479457(0x1a6)]],[_0x479457(0x5ee),g['ShapeBentArrowIcon']],['ShapeBentConnector3Arrow1Icon',g[_0x479457(0x275)]],[_0x479457(0x134),g['ShapeBentConnector3Arrow2Icon']],[_0x479457(0x38b),g[_0x479457(0x38b)]],[_0x479457(0x2aa),g[_0x479457(0x2aa)]],['ShapeBevelIcon',g[_0x479457(0x504)]],['ShapeBlockArcIcon',g['ShapeBlockArcIcon']],['ShapeBorderCallout1Icon',g[_0x479457(0x534)]],[_0x479457(0x24a),g[_0x479457(0x24a)]],[_0x479457(0x55f),g[_0x479457(0x55f)]],[_0x479457(0x302),g[_0x479457(0x302)]],[_0x479457(0x470),g[_0x479457(0x470)]],[_0x479457(0xf9),g[_0x479457(0xf9)]],[_0x479457(0x387),g[_0x479457(0x387)]],[_0x479457(0x2b7),g[_0x479457(0x2b7)]],['ShapeCanIcon',g[_0x479457(0x5d8)]],[_0x479457(0x2ae),g[_0x479457(0x2ae)]],['ShapeChartStarIcon',g['ShapeChartStarIcon']],[_0x479457(0x3fe),g[_0x479457(0x3fe)]],[_0x479457(0x3a3),g['ShapeChevronIcon']],[_0x479457(0xc2),g[_0x479457(0xc2)]],[_0x479457(0x136),g[_0x479457(0x136)]],[_0x479457(0x4ff),g[_0x479457(0x4ff)]],[_0x479457(0x1f6),g[_0x479457(0x1f6)]],[_0x479457(0x200),g[_0x479457(0x200)]],[_0x479457(0x4e8),g[_0x479457(0x4e8)]],['ShapeCubeIcon',g[_0x479457(0x389)]],[_0x479457(0x149),g[_0x479457(0x149)]],[_0x479457(0x14f),g['ShapeCurvedConnector3Arrow2Icon']],[_0x479457(0x343),g['ShapeCurvedConnector3Icon']],[_0x479457(0x493),g[_0x479457(0x493)]],[_0x479457(0x51d),g[_0x479457(0x51d)]],['ShapeCurvedRightArrowIcon',g[_0x479457(0x5df)]],[_0x479457(0x10d),g['ShapeCurvedUpArrowIcon']],[_0x479457(0x2ab),g[_0x479457(0x2ab)]],['ShapeDiagStripeIcon',g['ShapeDiagStripeIcon']],['ShapeDiamondIcon',g[_0x479457(0x178)]],[_0x479457(0xb1),g[_0x479457(0xb1)]],[_0x479457(0x5b6),g[_0x479457(0x5b6)]],[_0x479457(0x4f5),g[_0x479457(0x4f5)]],[_0x479457(0x144),g['ShapeDownArrowCalloutIcon']],[_0x479457(0x226),g[_0x479457(0x226)]],[_0x479457(0x454),g[_0x479457(0x454)]],[_0x479457(0x542),g[_0x479457(0x542)]],[_0x479457(0x42e),g['ShapeEllipseRibbonIcon']],[_0x479457(0x424),g['ShapeFlowChartAlternateProcessIcon']],[_0x479457(0x3ac),g[_0x479457(0x3ac)]],['ShapeFlowChartConnectorIcon',g['ShapeFlowChartConnectorIcon']],[_0x479457(0xcc),g[_0x479457(0xcc)]],['ShapeFlowChartDelayIcon',g['ShapeFlowChartDelayIcon']],['ShapeFlowChartDisplayIcon',g[_0x479457(0x29f)]],[_0x479457(0x323),g[_0x479457(0x323)]],[_0x479457(0x202),g['ShapeFlowChartExtractIcon']],[_0x479457(0x126),g['ShapeFlowChartInputOutputIcon']],[_0x479457(0x3bc),g[_0x479457(0x3bc)]],[_0x479457(0xe7),g['ShapeFlowChartMagneticDiskIcon']],[_0x479457(0x1e9),g[_0x479457(0x1e9)]],[_0x479457(0x4f4),g['ShapeFlowChartMagneticTapeIcon']],[_0x479457(0x3dd),g[_0x479457(0x3dd)]],[_0x479457(0x1ff),g[_0x479457(0x1ff)]],[_0x479457(0x311),g['ShapeFlowChartMergeIcon']],[_0x479457(0x4e3),g['ShapeFlowChartMultidocumentIcon']],[_0x479457(0x12f),g[_0x479457(0x12f)]],[_0x479457(0x498),g[_0x479457(0x498)]],['ShapeFlowChartOnlineStorageIcon',g[_0x479457(0x17f)]],[_0x479457(0x481),g[_0x479457(0x481)]],[_0x479457(0x4f2),g[_0x479457(0x4f2)]],[_0x479457(0x133),g[_0x479457(0x133)]],['ShapeFlowChartProcessIcon',g[_0x479457(0x491)]],[_0x479457(0x3a1),g[_0x479457(0x3a1)]],[_0x479457(0x45e),g['ShapeFlowChartPunchedTapeIcon']],[_0x479457(0x259),g[_0x479457(0x259)]],['ShapeFlowChartSummingJunctionIcon',g['ShapeFlowChartSummingJunctionIcon']],[_0x479457(0x214),g[_0x479457(0x214)]],[_0x479457(0x1ba),g[_0x479457(0x1ba)]],[_0x479457(0x104),g[_0x479457(0x104)]],['ShapeFunnelIcon',g[_0x479457(0x521)]],[_0x479457(0x45a),g[_0x479457(0x45a)]],[_0x479457(0x5ce),g[_0x479457(0x5ce)]],[_0x479457(0x55d),g['ShapeHalfFrameIcon']],['ShapeHeartIcon',g[_0x479457(0x2fd)]],['ShapeHeptagonIcon',g[_0x479457(0x432)]],[_0x479457(0x5a3),g[_0x479457(0x5a3)]],[_0x479457(0x3d9),g[_0x479457(0x3d9)]],[_0x479457(0x265),g[_0x479457(0x265)]],['ShapeIrregularSeal1Icon',g[_0x479457(0x203)]],[_0x479457(0x5f9),g[_0x479457(0x5f9)]],[_0x479457(0x15d),g['ShapeLeftArrowCalloutIcon']],[_0x479457(0x32c),g[_0x479457(0x32c)]],[_0x479457(0x244),g[_0x479457(0x244)]],[_0x479457(0x5bf),g[_0x479457(0x5bf)]],[_0x479457(0x2f5),g[_0x479457(0x2f5)]],[_0x479457(0x5f2),g[_0x479457(0x5f2)]],[_0x479457(0xd7),g[_0x479457(0xd7)]],[_0x479457(0x345),g['ShapeLeftRightCircularArrowIcon']],[_0x479457(0x194),g[_0x479457(0x194)]],['ShapeLeftRightUpArrowIcon',g[_0x479457(0x5bb)]],[_0x479457(0x47f),g[_0x479457(0x47f)]],[_0x479457(0x349),g[_0x479457(0x349)]],['ShapeLineIcon',g['ShapeLineIcon']],[_0x479457(0xc0),g['ShapeLineInvIcon']],[_0x479457(0x402),g[_0x479457(0x402)]],[_0x479457(0x3c2),g['ShapeMathEqualIcon']],['ShapeMathMinusIcon',g[_0x479457(0x2a7)]],['ShapeMathMultiplyIcon',g[_0x479457(0x5c5)]],['ShapeMathNotEqualIcon',g['ShapeMathNotEqualIcon']],['ShapeMathPlusIcon',g[_0x479457(0x19e)]],[_0x479457(0x117),g[_0x479457(0x117)]],['ShapeNoSmokingIcon',g[_0x479457(0x26e)]],['ShapeNonIsoscelesTrapezoidIcon',g[_0x479457(0x3d8)]],[_0x479457(0x5b1),g[_0x479457(0x5b1)]],[_0x479457(0x356),g[_0x479457(0x356)]],[_0x479457(0x157),g[_0x479457(0x157)]],[_0x479457(0x3c7),g[_0x479457(0x3c7)]],[_0x479457(0x51e),g[_0x479457(0x51e)]],[_0x479457(0x257),g['ShapePieWedgeIcon']],['ShapePlaqueIcon',g[_0x479457(0x2ce)]],[_0x479457(0x4aa),g[_0x479457(0x4aa)]],['ShapePlusIcon',g[_0x479457(0xdc)]],[_0x479457(0x5fe),g['ShapeQuadArrowCalloutIcon']],[_0x479457(0x2ad),g[_0x479457(0x2ad)]],['ShapeRectIcon',g['ShapeRectIcon']],[_0x479457(0x561),g['ShapeRectTextboxHorizontalIcon']],[_0x479457(0x54b),g['ShapeRectTextboxVerticalIcon']],[_0x479457(0x1b8),g['ShapeRibbon2Icon']],['ShapeRibbonIcon',g['ShapeRibbonIcon']],[_0x479457(0x466),g['ShapeRightArrowCalloutIcon']],[_0x479457(0x2e9),g[_0x479457(0x2e9)]],['ShapeRightBraceIcon',g[_0x479457(0x4d3)]],['ShapeRightBracketIcon',g['ShapeRightBracketIcon']],[_0x479457(0x2d9),g['ShapeRound1RectIcon']],[_0x479457(0x4da),g[_0x479457(0x4da)]],[_0x479457(0x4be),g[_0x479457(0x4be)]],[_0x479457(0x456),g[_0x479457(0x456)]],[_0x479457(0x53e),g['ShapeRtTriangleIcon']],[_0x479457(0x30f),g[_0x479457(0x30f)]],[_0x479457(0x235),g['ShapeSnip1RectIcon']],[_0x479457(0x209),g[_0x479457(0x209)]],[_0x479457(0x2f8),g[_0x479457(0x2f8)]],[_0x479457(0x57c),g[_0x479457(0x57c)]],[_0x479457(0x2cd),g[_0x479457(0x2cd)]],[_0x479457(0x301),g[_0x479457(0x301)]],[_0x479457(0x54e),g[_0x479457(0x54e)]],[_0x479457(0x551),g[_0x479457(0x551)]],['ShapeStar24Icon',g[_0x479457(0x415)]],[_0x479457(0x269),g[_0x479457(0x269)]],[_0x479457(0x30c),g['ShapeStar4Icon']],['ShapeStar5Icon',g['ShapeStar5Icon']],[_0x479457(0x382),g[_0x479457(0x382)]],[_0x479457(0x3f3),g['ShapeStar7Icon']],['ShapeStar8Icon',g['ShapeStar8Icon']],[_0x479457(0x168),g[_0x479457(0x168)]],['ShapeStraightConnector2Icon',g[_0x479457(0x207)]],[_0x479457(0x525),g[_0x479457(0x525)]],[_0x479457(0x281),g[_0x479457(0x281)]],[_0x479457(0x588),g[_0x479457(0x588)]],[_0x479457(0x583),g['ShapeTeardropIcon']],[_0x479457(0x477),g[_0x479457(0x477)]],[_0x479457(0x473),g[_0x479457(0x473)]],['ShapeUpArrowCalloutIcon',g['ShapeUpArrowCalloutIcon']],['ShapeUpArrowIcon',g[_0x479457(0x3df)]],[_0x479457(0x392),g['ShapeUpDownArrowCalloutIcon']],[_0x479457(0x346),g[_0x479457(0x346)]],[_0x479457(0x51b),g[_0x479457(0x51b)]],[_0x479457(0x486),g['ShapeVerticalScrollIcon']],['ShapeWaveIcon',g[_0x479457(0x60a)]],[_0x479457(0x58e),g[_0x479457(0x58e)]],[_0x479457(0x291),g['ShapeWedgeRectCalloutIcon']],[_0x479457(0x2db),g[_0x479457(0x2db)]],[te,q],[ue,de],[S[_0x479457(0x205)],Q]][_0x479457(0x241)](([_0x5608cd,_0x41bc53])=>{const _0x5cdbc5=_0x479457;this[_0x5cdbc5(0x35c)](this[_0x5cdbc5(0x4ee)]['register'](_0x5608cd,_0x41bc53));});}[_0x4c1bdf(0x3bd)](){const _0x1a43d2=_0x4c1bdf;this[_0x1a43d2(0x500)]=this[_0x1a43d2(0x53c)][_0x1a43d2(0x1f4)]({'id':te,'header':{'title':this[_0x1a43d2(0x461)]['t'](_0x1a43d2(0xe3))},'width':0x184,'children':{'label':te,...this[_0x1a43d2(0x4a8)]},'onClose':()=>{const _0x54c9e6=_0x1a43d2;this['_drawingManagerService'][_0x54c9e6(0x434)](null),this[_0x54c9e6(0x2ef)][_0x54c9e6(0x4d6)](l['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x54c9e6(0x500)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0;}[_0x4c1bdf(0x4d4)](){const _0x46bdfe=_0x4c1bdf;this['_isOpenedShapeEditPanel']=!0x1,this[_0x46bdfe(0x53c)][_0x46bdfe(0x395)](te),this[_0x46bdfe(0x500)]=null,this[_0x46bdfe(0x2ef)][_0x46bdfe(0x4d6)](l[_0x46bdfe(0x3b9)],!0x1),this[_0x46bdfe(0x47d)]['focusDrawing'](null);}};be=U([H(0x0,l['IUniverInstanceService']),H(0x1,(0x0,l['Inject'])(p[_0x4c1bdf(0x15e)])),H(0x2,(0x0,l[_0x4c1bdf(0x130)])(v[_0x4c1bdf(0x1fd)])),H(0x3,v[_0x4c1bdf(0x140)]),H(0x4,(0x0,l[_0x4c1bdf(0x130)])(c[_0x4c1bdf(0x114)])),H(0x5,(0x0,l['Inject'])(l[_0x4c1bdf(0x4f0)])),H(0x6,(0x0,l[_0x4c1bdf(0x130)])(v[_0x4c1bdf(0x115)])),H(0x7,l[_0x4c1bdf(0x1dd)]),H(0x8,u[_0x4c1bdf(0x601)]),H(0x9,(0x0,l[_0x4c1bdf(0x130)])(_[_0x4c1bdf(0x35d)])),H(0xa,l[_0x4c1bdf(0x125)])],be);var xe=_0x4c1bdf(0x3d5),Se=_0x4c1bdf(0x1f3);const Ce='sheets-shape.config';Symbol(Ce);const we={};var Te=class extends d[_0x4c1bdf(0x12d)]{constructor(_0x302f31,_0x1cf86d){const _0x3df80d=_0x4c1bdf;super(_0x302f31,_0x1cf86d),k(this,_0x3df80d(0x4c5),null),k(this,_0x3df80d(0x383),null),k(this,_0x3df80d(0x26d),null),k(this,_0x3df80d(0x418),null),_0x1cf86d&&this[_0x3df80d(0x2eb)](_0x1cf86d);}[_0x4c1bdf(0x5e2)](){const _0x375414=_0x4c1bdf;return{'unitId':this[_0x375414(0x26d)],'subUnitId':this[_0x375414(0x418)],'drawingId':this['_shapeId']};}[_0x4c1bdf(0x2eb)](_0x420986){const _0x1726e9=_0x4c1bdf;_0x420986['shapeId']!==void 0x0&&(this[_0x1726e9(0x4c5)]=_0x420986[_0x1726e9(0x3fc)]),_0x420986[_0x1726e9(0x4ca)]!==void 0x0&&(this[_0x1726e9(0x383)]=_0x420986[_0x1726e9(0x4ca)]),_0x420986['unitId']!==void 0x0&&(this[_0x1726e9(0x26d)]=_0x420986[_0x1726e9(0x372)]),_0x420986[_0x1726e9(0x4b8)]!==void 0x0&&(this[_0x1726e9(0x418)]=_0x420986[_0x1726e9(0x4b8)]),this[_0x1726e9(0x4f6)]({'width':_0x420986[_0x1726e9(0x344)],'height':_0x420986['height']});}[_0x4c1bdf(0x563)](_0x9576c0){const _0x38045a=_0x4c1bdf;d[_0x38045a(0x400)][_0x38045a(0x3b5)](_0x9576c0,{'radius':y[_0x38045a(0x52a)][_0x38045a(0x10c)],'fill':y[_0x38045a(0x52a)][_0x38045a(0x3a4)],'stroke':y['ShapeDefaultConfig'][_0x38045a(0x25a)],'strokeWidth':0x1,'evented':!0x0});}};let Ee=class extends l[_0x4c1bdf(0x279)]{constructor(_0x4616c1,_0x23e6de,_0x388db9,_0x195b53,_0x4c3e57){const _0x3f995d=_0x4c1bdf;super(),this[_0x3f995d(0x249)]=_0x4616c1,this[_0x3f995d(0x47d)]=_0x23e6de,this['_renderManagerService']=_0x388db9,this['_univerInstanceService']=_0x195b53,this[_0x3f995d(0x5c2)]=_0x4c3e57,k(this,_0x3f995d(0x496),null),k(this,_0x3f995d(0x26d),null),k(this,_0x3f995d(0x418),null),k(this,_0x3f995d(0x416),void 0x0),k(this,_0x3f995d(0x410),[]),k(this,'_baseLeft',0x0),k(this,_0x3f995d(0x5a1),0x0),k(this,'_baseWidth',0x0),k(this,_0x3f995d(0xc4),0x0),k(this,_0x3f995d(0x3e1),!0x1),k(this,_0x3f995d(0x2d8),void 0x0),k(this,_0x3f995d(0x206),void 0x0),k(this,_0x3f995d(0x213),void 0x0),k(this,_0x3f995d(0x4d1),void 0x0),k(this,'_isImagePointerDown',!0x1),this[_0x3f995d(0x3e7)](),this['_registerMoveHandler']();}[_0x4c1bdf(0x1c6)](){this['_clearControls']();}[_0x4c1bdf(0x600)](){const _0x3b1d78=_0x4c1bdf;this[_0x3b1d78(0x2af)](),this[_0x3b1d78(0xd5)](!0x0);}[_0x4c1bdf(0x285)](_0x58e52b,_0x94e27a,_0x499630,_0xbabdca){const _0x5c290b=_0x4c1bdf;let _0x7796a0=_0x58e52b;if(!(_0x7796a0===y[_0x5c290b(0x34e)][_0x5c290b(0x260)]||_0x58e52b===_0x5c290b(0x3d3)))try{let _0x48c33a=new y['ShapeModel'](_0x7796a0,_0x5c290b(0x1be)+_0x58e52b);return _0xbabdca&&_0x48c33a[_0x5c290b(0x2c2)]({'adjustValues':_0xbabdca},!0x0),_0x48c33a[_0x5c290b(0x3ee)]({'width':_0x94e27a,'height':_0x499630}),_0x48c33a;}catch{return;}}[_0x4c1bdf(0x282)](_0x539449,_0x5bd44b,_0x58eaad){const _0x5aa463=_0x4c1bdf;let _0x18334f={'unitId':_0x539449,'subUnitId':_0x5bd44b,'drawingId':_0x58eaad},_0x26b5b8=this[_0x5aa463(0x47d)][_0x5aa463(0x3ed)](_0x18334f);if(!(!_0x26b5b8||_0x26b5b8[_0x5aa463(0x3c3)]!==l[_0x5aa463(0x237)][_0x5aa463(0x17b)]))return _0x26b5b8;}[_0x4c1bdf(0x399)](_0x1195db,_0x36b24a,_0xf01913){const _0x79bb8b=_0x4c1bdf;let _0x35a681=this[_0x79bb8b(0x231)][_0x79bb8b(0x13d)](_0x1195db);if(!_0x35a681)return;let {scene:_0x59268a}=_0x35a681,_0x537006=(0x0,u[_0x79bb8b(0x1e5)])({'unitId':_0x1195db,'subUnitId':_0x36b24a,'drawingId':_0xf01913}),_0x441337=_0x59268a[_0x79bb8b(0x242)](_0x537006);if(_0x441337 instanceof d[_0x79bb8b(0x50a)]){let _0x3bc76c=_0x441337[_0x79bb8b(0x55b)];if(_0x3bc76c)return{'prstGeom':_0x3bc76c,'adjustValues':_0x441337['prstGeomAdjValues']};}}[_0x4c1bdf(0xd5)](_0x3bbd05=!0x1){const _0x21dba6=_0x4c1bdf;if(!this[_0x21dba6(0x26d)]||!this[_0x21dba6(0x418)]||!this[_0x21dba6(0x496)])return;let _0x21a6ad=this['_renderManagerService']['getRenderById'](this[_0x21dba6(0x26d)]);if(!_0x21a6ad||!_0x21a6ad[_0x21dba6(0x471)](_[_0x21dba6(0x315)])[_0x21dba6(0x30d)]())return;let {scene:_0xf19c42}=_0x21a6ad,_0x334f7b=this[_0x21dba6(0x282)](this[_0x21dba6(0x26d)],this[_0x21dba6(0x418)],this[_0x21dba6(0x496)]);if(!_0x334f7b)return;let {transform:_0x5a1072}=_0x334f7b;if(!_0x5a1072)return;let {left:_0x5aa57e,top:_0x2cd5b8,width:_0x12c4e8,height:_0x42725c,flipX:_0x3008e2,flipY:_0x3a5edd,angle:_0x4625d6=0x0}=_0x5a1072;if(_0x5aa57e===void 0x0||_0x2cd5b8===void 0x0)return;let _0x29a64c=this[_0x21dba6(0x399)](this[_0x21dba6(0x26d)],this[_0x21dba6(0x418)],this[_0x21dba6(0x496)]);if(!_0x29a64c)return;if(_0x3bbd05){let _0x571781=this[_0x21dba6(0x285)](_0x29a64c[_0x21dba6(0x55b)],_0x12c4e8||0x0,_0x42725c||0x0,_0x29a64c['adjustValues']);if(!_0x571781)return;this['_activeAdjustPointList']=_0x571781[_0x21dba6(0x5d6)]();}let _0x2f8432=this['_activeAdjustPointList'];if(!(!_0x2f8432||_0x2f8432[_0x21dba6(0x4b4)]===0x0))for(let _0xd0bc72=0x0;_0xd0bc72<_0x2f8432['length'];_0xd0bc72++){let _0x23f0f1=_0x2f8432[_0xd0bc72],_0x30b7d8=_0x23f0f1['x'],_0x1ca145=_0x23f0f1['y'];if(_0x3008e2&&(_0x30b7d8=(_0x12c4e8||0x0)-_0x30b7d8),_0x3a5edd&&(_0x1ca145=(_0x42725c||0x0)-_0x1ca145),_0x4625d6!==0x0){let _0x506987=(_0x12c4e8||0x0)/0x2,_0xe77df4=(_0x42725c||0x0)/0x2,_0x3aab8d=_0x4625d6*Math['PI']/0xb4,_0x6407bf=Math['cos'](_0x3aab8d),_0x1ba836=Math[_0x21dba6(0x4b7)](_0x3aab8d),_0x5e724e=_0x30b7d8-_0x506987,_0x16a273=_0x1ca145-_0xe77df4;_0x30b7d8=_0x506987+(_0x5e724e*_0x6407bf-_0x16a273*_0x1ba836),_0x1ca145=_0xe77df4+(_0x5e724e*_0x1ba836+_0x16a273*_0x6407bf);}let _0x2f8f59={'x':_0x30b7d8,'y':_0x1ca145,'adjName':_0x23f0f1[_0x21dba6(0x4ca)]};this[_0x21dba6(0x3f2)](_0xf19c42,_0x2f8f59,_0x2f8f59[_0x21dba6(0x4ca)],_0x5aa57e,_0x2cd5b8,this['_unitId'],this[_0x21dba6(0x418)]);}}[_0x4c1bdf(0x3f2)](_0x2c661b,_0x4b8078,_0x2bdb7d,_0x543718,_0x5df07a,_0x34236d,_0x3170b7){const _0x7b75ce=_0x4c1bdf;if(!this[_0x7b75ce(0x496)])return;let _0x50e3ff='image-clip-adjust-point-'+this[_0x7b75ce(0x496)]+'-'+_0x2bdb7d,_0xc0efa0=_0x2c661b[_0x7b75ce(0x277)](_0x50e3ff);if(_0xc0efa0){_0xc0efa0[_0x7b75ce(0x4f6)]({'left':_0x4b8078['x']+_0x543718-y['ShapeDefaultConfig'][_0x7b75ce(0x10c)],'top':_0x4b8078['y']+_0x5df07a-y[_0x7b75ce(0x52a)]['adjHandleSize']});return;}let _0x59999f=new Te(_0x50e3ff,{'left':_0x4b8078['x']+_0x543718-y['ShapeDefaultConfig']['adjHandleSize'],'top':_0x4b8078['y']+_0x5df07a-y[_0x7b75ce(0x52a)][_0x7b75ce(0x10c)],'adjName':_0x2bdb7d,'shapeId':this[_0x7b75ce(0x496)],'unitId':_0x34236d,'subUnitId':_0x3170b7,'width':y['ShapeDefaultConfig'][_0x7b75ce(0x10c)]+0x8,'height':y[_0x7b75ce(0x52a)][_0x7b75ce(0x10c)]+0x8,'zIndex':d[_0x7b75ce(0x16b)]+0x1,'evented':!0x0});this[_0x7b75ce(0x410)][_0x7b75ce(0x4ad)](_0x59999f),this[_0x7b75ce(0x5e9)](_0x59999f,_0x2c661b,_0x2bdb7d),_0x2c661b[_0x7b75ce(0x317)](_0x59999f,d[_0x7b75ce(0x16b)]+0x1);}[_0x4c1bdf(0x2af)](){const _0x59df71=_0x4c1bdf;this['_shapes'][_0x59df71(0x4b4)]!==0x0&&(this[_0x59df71(0x410)][_0x59df71(0x241)](_0x1cfcbd=>_0x1cfcbd[_0x59df71(0x212)]()),this[_0x59df71(0x410)]=[]);}[_0x4c1bdf(0x50b)](_0x4a97b2,_0x3cd418){const _0x27f53d=_0x4c1bdf;var _0x219673;let _0x332f11={'x':0x0,'y':0x0},_0x237920=this[_0x27f53d(0x231)][_0x27f53d(0x13d)](_0x4a97b2);if(!_0x237920||!_0x237920[_0x27f53d(0x471)](_[_0x27f53d(0x315)])[_0x27f53d(0x569)](_0x3cd418))return _0x332f11;let _0x1da7e3=_0x237920['with'](_[_0x27f53d(0x2bd)]),_0x52d6ad=_0x1da7e3==null?void 0x0:_0x1da7e3[_0x27f53d(0x605)]();if(!_0x52d6ad)return _0x332f11;let _0x1a3bbd=(_0x219673=this['_univerInstanceService'][_0x27f53d(0x151)](_0x4a97b2))==null?void 0x0:_0x219673[_0x27f53d(0x376)](_0x3cd418);if(!_0x1a3bbd)return _0x332f11;let _0x59a916=(0x0,_[_0x27f53d(0x464)])(_0x52d6ad[_0x27f53d(0x3fd)],_0x52d6ad[_0x27f53d(0x1a0)],_0x237920[_0x27f53d(0x22c)],_0x1a3bbd);return _0x59a916?{'x':_0x59a916[_0x27f53d(0x41b)],'y':_0x59a916[_0x27f53d(0x20e)]}:_0x332f11;}[_0x4c1bdf(0x59f)](_0x527bfb,_0x13e9d7){const _0x3e13fb=_0x4c1bdf;var _0x6593b6,_0x28a511;let _0x526bb4=(_0x6593b6=this[_0x3e13fb(0x58a)][_0x3e13fb(0x151)](_0x527bfb))==null?void 0x0:_0x6593b6['getSheetBySheetId'](_0x13e9d7);return(_0x28a511=_0x526bb4==null?void 0x0:_0x526bb4[_0x3e13fb(0x52c)]())==null?0x1:_0x28a511;}[_0x4c1bdf(0x5e9)](_0x4f980a,_0x4efa58,_0x436a5f){const _0x245bc3=_0x4c1bdf;this[_0x245bc3(0x35c)]((0x0,l[_0x245bc3(0x1cf)])(_0x4f980a[_0x245bc3(0x5b9)][_0x245bc3(0x593)]((_0x294a8a,_0x15c952)=>{const _0x558d7d=_0x245bc3;var _0x674478,_0xb82f59,_0x238167;let {unitId:_0x2f62af,subUnitId:_0x11d474,drawingId:_0x37b299}=_0x4f980a[_0x558d7d(0x5e2)](),_0x234b66=this['_getImageDrawingInfo'](_0x2f62af,_0x11d474,_0x37b299);if(!(_0x234b66!=null&&_0x234b66[_0x558d7d(0x4b1)]))return;let {left:_0x5a9db9,top:_0x42c23c,width:_0x172012,height:_0x3f08ba}=_0x234b66[_0x558d7d(0x4b1)];this[_0x558d7d(0x17d)]=_0x5a9db9||0x0,this[_0x558d7d(0x5a1)]=_0x42c23c||0x0,this[_0x558d7d(0x110)]=_0x172012||0x0,this[_0x558d7d(0xc4)]=_0x3f08ba||0x0;let _0x29d0c8=!!((_0x674478=_0x234b66[_0x558d7d(0x4b1)])!=null&&_0x674478[_0x558d7d(0x316)]),_0x22e177=!!((_0xb82f59=_0x234b66[_0x558d7d(0x4b1)])!=null&&_0xb82f59[_0x558d7d(0x24c)]),_0x346ae1=((_0x238167=_0x234b66[_0x558d7d(0x4b1)])==null?void 0x0:_0x238167[_0x558d7d(0x22d)])||0x0,_0x3c1cfb=this[_0x558d7d(0x399)](_0x2f62af,_0x11d474,_0x37b299);if(!_0x3c1cfb)return;let _0x5c91f6=this['_getOrCreateShapeModel'](_0x3c1cfb[_0x558d7d(0x55b)],this['_baseWidth'],this[_0x558d7d(0xc4)],_0x3c1cfb[_0x558d7d(0x5e1)]);if(!_0x5c91f6||(this[_0x558d7d(0x206)]=_0x5c91f6,this[_0x558d7d(0x2d8)]=_0x5c91f6[_0x558d7d(0x2a9)](_0x436a5f),!this[_0x558d7d(0x2d8)]))return;this[_0x558d7d(0x3e1)]=!0x0,_0x4efa58[_0x558d7d(0x181)]();let _0x4cbdaf=_0x3c1cfb[_0x558d7d(0x55b)];this['_adjHandlerPointerMove']=_0x4efa58[_0x558d7d(0x3e8)][_0x558d7d(0x593)]((_0x46bf17,_0x7e3d9f)=>{const _0x100fa9=_0x558d7d;if(!this[_0x100fa9(0x3e1)])return;let {offsetX:_0x368675,offsetY:_0x3a686f}=_0x46bf17,_0x377f09=this[_0x100fa9(0x2d8)];if(!this[_0x100fa9(0x206)]||!_0x377f09)return;_0x4efa58['disableObjectsEvent'](),_0x4efa58[_0x100fa9(0x318)](d[_0x100fa9(0x452)][_0x100fa9(0x18e)]);let _0x53bcc7={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this['_baseHeight']},_0x1b0548=this[_0x100fa9(0x50b)](_0x2f62af,_0x11d474),_0x4356fb=this['_getZoomRatio'](_0x2f62af,_0x11d474),_0x62a0c6=_0x368675/_0x4356fb+_0x1b0548['x']-this[_0x100fa9(0x17d)],_0x29c407=_0x3a686f/_0x4356fb+_0x1b0548['y']-this[_0x100fa9(0x5a1)];if(_0x346ae1!==0x0){let _0x584c5e=this[_0x100fa9(0x110)]/0x2,_0x5eaa82=this[_0x100fa9(0xc4)]/0x2,_0x560191=_0x346ae1*Math['PI']/0xb4,_0x2c7ed1=Math[_0x100fa9(0x3b7)](_0x560191),_0x59ebc8=Math[_0x100fa9(0x4b7)](_0x560191),_0x311644=_0x62a0c6-_0x584c5e,_0x1451c9=_0x29c407-_0x5eaa82;_0x62a0c6=_0x584c5e+(_0x311644*_0x2c7ed1+_0x1451c9*_0x59ebc8),_0x29c407=_0x5eaa82+(-_0x311644*_0x59ebc8+_0x1451c9*_0x2c7ed1);}_0x29d0c8&&(_0x62a0c6=this['_baseWidth']-_0x62a0c6),_0x22e177&&(_0x29c407=this[_0x100fa9(0xc4)]-_0x29c407);let _0x4ae429=this['_activeShapeModel'][_0x100fa9(0x156)](_0x53bcc7,{'x':_0x62a0c6,'y':_0x29c407},_0x377f09,_0x29d0c8,_0x22e177),_0x36ed69=_0x377f09[_0x100fa9(0x27a)]||_0x377f09[_0x100fa9(0x38e)]||_0x377f09[_0x100fa9(0x3e9)]||_0x377f09[_0x100fa9(0x58c)];_0x36ed69!==void 0x0&&(this[_0x100fa9(0x206)]['setAdjustValueByName'](_0x36ed69,_0x4ae429),this['_activeShapeModel']['updateContext']({'width':this[_0x100fa9(0x110)],'height':this['_baseHeight']}),this[_0x100fa9(0x4db)](_0x2f62af,_0x11d474,_0x37b299,_0x36ed69,_0x4ae429),this[_0x100fa9(0x416)]=this[_0x100fa9(0x206)]['getDrawingPoints'](),this[_0x100fa9(0x2d8)]=this['_activeShapeModel'][_0x100fa9(0x2a9)](_0x436a5f),this[_0x100fa9(0xd5)](),_0x7e3d9f['stopPropagation']());}),this[_0x558d7d(0x4d1)]=_0x4efa58[_0x558d7d(0x362)][_0x558d7d(0x593)]((_0x48e296,_0x1c59c3)=>{const _0x4e3e57=_0x558d7d;if(this['_adjHandlerPointerMove']['unsubscribe'](),this[_0x4e3e57(0x4d1)]['unsubscribe'](),_0x4efa58['resetCursor'](),this['_activeShapeModel']){let _0x13b333=this[_0x4e3e57(0x206)][_0x4e3e57(0x14e)](),_0x291b5d={};for(let _0x5af450 of _0x13b333){let _0x3be0aa=this[_0x4e3e57(0x206)][_0x4e3e57(0x566)](_0x5af450);_0x3be0aa!==void 0x0&&(_0x291b5d[_0x5af450]=_0x3be0aa);}this[_0x4e3e57(0x5c2)][_0x4e3e57(0x2b1)](_0x2f62af,_0x11d474,_0x37b299,_0x4cbdaf,_0x291b5d);}this[_0x4e3e57(0x2d8)]=void 0x0,this[_0x4e3e57(0x206)]=void 0x0,this[_0x4e3e57(0x3e1)]=!0x1,_0x1c59c3['stopPropagation'](),_0x4efa58[_0x4e3e57(0xa8)]();}),_0x15c952[_0x558d7d(0xf4)]();})));}[_0x4c1bdf(0x4db)](_0x3821e6,_0x198452,_0x2ba98,_0x7db42c,_0x5f0f43){const _0x2d2e23=_0x4c1bdf;let _0x465e18=this[_0x2d2e23(0x231)]['getRenderById'](_0x3821e6);if(!_0x465e18)return;let {scene:_0x2d20b5}=_0x465e18,_0x2e2954=(0x0,u[_0x2d2e23(0x1e5)])({'unitId':_0x3821e6,'subUnitId':_0x198452,'drawingId':_0x2ba98}),_0xdf8ca2=_0x2d20b5[_0x2d2e23(0x242)](_0x2e2954);if(_0xdf8ca2 instanceof d['Image']){var _0x1b578a;let _0x273d26=(_0x1b578a=_0xdf8ca2[_0x2d2e23(0x16a)])==null?{}:_0x1b578a;_0xdf8ca2[_0x2d2e23(0x24e)]({..._0x273d26,[_0x7db42c]:_0x5f0f43}),_0xdf8ca2[_0x2d2e23(0x4e9)](!0x0);}}[_0x4c1bdf(0x59e)](){const _0x5217e4=_0x4c1bdf;let _0x498115=this[_0x5217e4(0x58a)]['getCurrentTypeOfUnit$'](l[_0x5217e4(0x47a)][_0x5217e4(0x2f9)]);this[_0x5217e4(0x35c)](_0x498115['pipe']((0x0,f[_0x5217e4(0x276)])(_0x4ea9d8=>_0x4ea9d8?_0x4ea9d8[_0x5217e4(0x135)]['pipe']((0x0,f[_0x5217e4(0x276)])(_0x140b03=>{const _0x5f33ce=_0x5217e4;if(!_0x140b03)return f[_0x5f33ce(0x3e4)];let _0x524f58=_0x4ea9d8[_0x5f33ce(0x1d6)](),_0x7d10d8=this[_0x5f33ce(0x231)][_0x5f33ce(0x13d)](_0x524f58),_0xb19679=_0x7d10d8==null?void 0x0:_0x7d10d8['scene'];return _0xb19679?(0x0,f['of'])(_0xb19679):f[_0x5f33ce(0x3e4)];})):f[_0x5217e4(0x3e4)]))[_0x5217e4(0x520)](_0xd840e6=>{const _0xa59a92=_0x5217e4;let _0x4650cd=_0xd840e6[_0xa59a92(0x1d3)]();this[_0xa59a92(0x35c)](_0xd840e6[_0xa59a92(0x3e8)]['subscribeEvent'](()=>{const _0x4d1fa2=_0xa59a92;this['_isImagePointerDown']&&this[_0x4d1fa2(0x2af)]();})),this['disposeWithMe'](_0x4650cd[_0xa59a92(0x19a)][_0xa59a92(0x520)](_0x3082b5=>{const _0x295130=_0xa59a92;let {objects:_0x102da4}=_0x3082b5;if(this[_0x295130(0xd5)](),_0x102da4!==null&&_0x102da4[_0x295130(0x2a8)]===0x1){let _0xe0eb47=_0x102da4[_0x295130(0x2be)]()[_0x295130(0x304)]()[_0x295130(0x449)];_0xe0eb47 instanceof d['Image']&&_0xe0eb47[_0x295130(0x55b)]&&(this[_0x295130(0x223)]=!0x0);}})),this[_0xa59a92(0x35c)](_0x4650cd[_0xa59a92(0x4e0)][_0xa59a92(0x520)](()=>{const _0x10fa46=_0xa59a92;this['_isImagePointerDown']&&this[_0x10fa46(0x2af)]();})),this[_0xa59a92(0x35c)](_0xd840e6[_0xa59a92(0x362)][_0xa59a92(0x593)](()=>{const _0xc8b8bd=_0xa59a92;this[_0xc8b8bd(0x223)]&&(this[_0xc8b8bd(0x223)]=!0x1,this['_createControls']());})),this[_0xa59a92(0x35c)](_0x4650cd['changeEnd$'][_0xa59a92(0x520)](()=>{const _0xe820ea=_0xa59a92;if(this[_0xe820ea(0x26d)]&&this[_0xe820ea(0x418)]&&this[_0xe820ea(0x496)]){let _0x478b3f=this[_0xe820ea(0x399)](this[_0xe820ea(0x26d)],this['_subUnitId'],this[_0xe820ea(0x496)]);if(_0x478b3f){var _0x2ec2c6,_0x5b5fbb;let _0x6e1485=this[_0xe820ea(0x282)](this[_0xe820ea(0x26d)],this['_subUnitId'],this[_0xe820ea(0x496)]),_0x582474=(_0x6e1485==null||(_0x2ec2c6=_0x6e1485[_0xe820ea(0x4b1)])==null?void 0x0:_0x2ec2c6['width'])||0x0,_0x1ff2c1=(_0x6e1485==null||(_0x5b5fbb=_0x6e1485[_0xe820ea(0x4b1)])==null?void 0x0:_0x5b5fbb[_0xe820ea(0x5fa)])||0x0,_0x148923=this['_getOrCreateShapeModel'](_0x478b3f[_0xe820ea(0x55b)],_0x582474,_0x1ff2c1,_0x478b3f[_0xe820ea(0x5e1)]);_0x148923&&(this['_activeAdjustPointList']=_0x148923[_0xe820ea(0x5d6)](),this[_0xe820ea(0x2af)](),this[_0xe820ea(0xd5)](!0x0));}}}));}));}[_0x4c1bdf(0x3e7)](){const _0x1e15f3=_0x4c1bdf;this['disposeWithMe'](this[_0x1e15f3(0x47d)][_0x1e15f3(0x42b)]['subscribe'](_0x1e4e8e=>{const _0x10e000=_0x1e15f3;if(_0x1e4e8e['length']===0x1){let _0x2bbf89=_0x1e4e8e[0x0];if(_0x2bbf89[_0x10e000(0x3c3)]===l[_0x10e000(0x237)]['DRAWING_IMAGE']){let {unitId:_0x129192,subUnitId:_0x33b923,drawingId:_0x56bbe2}=_0x2bbf89,_0x2098cd=this['_getImagePrstGeom'](_0x129192,_0x33b923,_0x56bbe2);if(_0x2098cd){var _0x346fcf,_0xf34dc2;this[_0x10e000(0x496)]=_0x56bbe2,this[_0x10e000(0x26d)]=_0x129192,this[_0x10e000(0x418)]=_0x33b923;let _0x425145=this[_0x10e000(0x282)](_0x129192,_0x33b923,_0x56bbe2),_0x401b07=(_0x425145==null||(_0x346fcf=_0x425145[_0x10e000(0x4b1)])==null?void 0x0:_0x346fcf[_0x10e000(0x344)])||0x0,_0x6f84aa=(_0x425145==null||(_0xf34dc2=_0x425145[_0x10e000(0x4b1)])==null?void 0x0:_0xf34dc2['height'])||0x0,_0x22e09f=this[_0x10e000(0x285)](_0x2098cd['prstGeom'],_0x401b07,_0x6f84aa,_0x2098cd['adjustValues']);_0x22e09f&&(this[_0x10e000(0x416)]=_0x22e09f[_0x10e000(0x5d6)]()),this[_0x10e000(0x2af)](),this['_createControls'](!0x0);}else this[_0x10e000(0x44f)]();}else this[_0x10e000(0x44f)]();}else this[_0x10e000(0x44f)]();})),this[_0x1e15f3(0x35c)](this['_drawingManagerService'][_0x1e15f3(0x23e)][_0x1e15f3(0x520)](_0x3c997c=>{const _0x17b950=_0x1e15f3;if(_0x3c997c[_0x17b950(0x4b4)]===0x1){let _0x3f68c6=_0x3c997c[0x0],_0x4f5490=this[_0x17b950(0x47d)][_0x17b950(0x3ed)](_0x3f68c6);(_0x4f5490==null?void 0x0:_0x4f5490[_0x17b950(0x3c3)])===l[_0x17b950(0x237)][_0x17b950(0x17b)]&&this['_activeImageId']===_0x3f68c6[_0x17b950(0x1f0)]&&(this[_0x17b950(0x2af)](),this[_0x17b950(0xd5)](!0x0));}})),this[_0x1e15f3(0x35c)](this[_0x1e15f3(0x47d)]['remove$'][_0x1e15f3(0x520)](_0xe2951a=>{const _0x119379=_0x1e15f3;for(let _0x28585d of _0xe2951a)this[_0x119379(0x496)]===_0x28585d[_0x119379(0x1f0)]&&this['_resetState']();}));}[_0x4c1bdf(0x44f)](){const _0x6a4240=_0x4c1bdf;this[_0x6a4240(0x496)]=null,this['_unitId']=null,this[_0x6a4240(0x418)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x6a4240(0x2af)]();}};Ee=U([H(0x1,u['IDrawingManagerService']),H(0x2,(0x0,l[_0x4c1bdf(0x130)])(d['IRenderManagerService'])),H(0x3,l[_0x4c1bdf(0x17a)]),H(0x4,(0x0,l['Inject'])(Y))],Ee);let De=class extends l[_0x4c1bdf(0x279)]{constructor(_0x377ea0,_0x3e7193,_0x3fc61d,_0x5282e6){const _0x3a1391=_0x4c1bdf;super(),this[_0x3a1391(0x58a)]=_0x377ea0,this[_0x3a1391(0x430)]=_0x3e7193,this[_0x3a1391(0xab)]=_0x3fc61d,this['_sheetsShapeService']=_0x5282e6,this[_0x3a1391(0x210)]();}[_0x4c1bdf(0x210)](){const _0x53fc20=_0x4c1bdf;this[_0x53fc20(0x35c)](this[_0x53fc20(0x430)]['interceptCommand']({'getMutations':_0x14ccbc=>{const _0x4f18db=_0x53fc20;if(_0x14ccbc['id']===p[_0x4f18db(0x51a)]['id']){let _0x42819f=(0x0,p[_0x4f18db(0x445)])(this[_0x4f18db(0x58a)],_0x14ccbc[_0x4f18db(0x3b3)]);if(!_0x42819f)return{'redos':[],'undos':[]};let {unitId:_0x25b0a5,subUnitId:_0x1f3d1b}=_0x42819f,_0x239200=this[_0x4f18db(0xab)][_0x4f18db(0x5f5)](_0x25b0a5,_0x1f3d1b),_0x1b2076=Object['values'](_0x239200)[_0x4f18db(0xdd)](_0x3e2982=>_0x3e2982[_0x4f18db(0x3c3)]===l['DrawingTypeEnum'][_0x4f18db(0x118)]);if(_0x1b2076[_0x4f18db(0x4b4)]===0x0)return{'redos':[],'undos':[]};let _0x21c0cd=[],_0x439c20=[];for(let _0x3e48b0=0x0;_0x3e48b0<_0x1b2076[_0x4f18db(0x4b4)];_0x3e48b0++){let _0x5205f3=_0x1b2076[_0x3e48b0],_0x492e40=this['_sheetsShapeService']['getShapeModel'](_0x5205f3[_0x4f18db(0x372)],_0x5205f3[_0x4f18db(0x4b8)],_0x5205f3[_0x4f18db(0x1f0)]);if(!_0x492e40)continue;let {redo:_0x3f52fe,undo:_0x949c0c,objects:_0x4e8d00}=this[_0x4f18db(0xab)]['getBatchRemoveOp']([_0x5205f3]);_0x21c0cd[_0x4f18db(0x4ad)]({'id':c['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x25b0a5,'subUnitId':_0x1f3d1b,'shapeId':_0x5205f3[_0x4f18db(0x1f0)]}}),_0x21c0cd[_0x4f18db(0x4ad)]({'id':m[_0x4f18db(0x38c)]['id'],'params':{'unitId':_0x25b0a5,'subUnitId':_0x1f3d1b,'type':m[_0x4f18db(0x289)][_0x4f18db(0x523)],'op':_0x3f52fe,'objects':_0x4e8d00}}),_0x439c20['push']({'id':m[_0x4f18db(0x38c)]['id'],'params':{'unitId':_0x25b0a5,'subUnitId':_0x1f3d1b,'type':m[_0x4f18db(0x289)][_0x4f18db(0x297)],'op':_0x949c0c,'objects':_0x4e8d00}}),_0x439c20[_0x4f18db(0x4ad)]({'id':c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x25b0a5,'subUnitId':_0x1f3d1b,'shapeId':_0x5205f3[_0x4f18db(0x1f0)],'shapeType':_0x492e40[_0x4f18db(0x367)](),'shapeData':JSON[_0x4f18db(0x598)](JSON[_0x4f18db(0x2ed)](_0x492e40[_0x4f18db(0xc6)]()))}});}return{'redos':_0x21c0cd,'undos':_0x439c20};}else{if(_0x14ccbc['id']===p[_0x4f18db(0xdf)]['id']){let {unitId:_0x48341d,subUnitId:_0x156dd5,targetSubUnitId:_0x168c39}=_0x14ccbc[_0x4f18db(0x3b3)];if(!_0x48341d||!_0x156dd5||!_0x168c39)return{'redos':[],'undos':[]};let _0x31c870=this[_0x4f18db(0xab)][_0x4f18db(0x5f5)](_0x48341d,_0x156dd5),_0x141602=Object[_0x4f18db(0x2be)](_0x31c870)[_0x4f18db(0xdd)](_0x334bd7=>_0x334bd7[_0x4f18db(0x3c3)]===l[_0x4f18db(0x237)][_0x4f18db(0x118)]);if(_0x141602[_0x4f18db(0x4b4)]===0x0)return{'redos':[],'undos':[]};let _0x312d10=[],_0x19a58d=[];for(let _0x16fdd7=0x0;_0x16fdd7<_0x141602[_0x4f18db(0x4b4)];_0x16fdd7++){let _0x45e5bc=_0x141602[_0x16fdd7],_0xd25b63=this[_0x4f18db(0x56d)]['getShapeModel'](_0x45e5bc[_0x4f18db(0x372)],_0x45e5bc[_0x4f18db(0x4b8)],_0x45e5bc[_0x4f18db(0x1f0)]);if(!_0xd25b63)continue;let _0x482836=(0x0,l['generateRandomId'])(),_0x359926={..._0x45e5bc,'unitId':_0x48341d,'subUnitId':_0x168c39,'drawingId':_0x482836},{redo:_0x10f7f6,undo:_0x126fe7,objects:_0x1f96cc}=this[_0x4f18db(0xab)][_0x4f18db(0x4ae)]([_0x359926]);_0x312d10[_0x4f18db(0x4ad)]({'id':m[_0x4f18db(0x38c)]['id'],'params':{'unitId':_0x48341d,'subUnitId':_0x168c39,'type':m['DrawingApplyType']['INSERT'],'op':_0x10f7f6,'objects':_0x1f96cc}}),_0x312d10[_0x4f18db(0x4ad)]({'id':c[_0x4f18db(0x39d)]['id'],'params':{'unitId':_0x48341d,'subUnitId':_0x168c39,'shapeId':_0x482836,'shapeType':_0xd25b63[_0x4f18db(0x367)](),'shapeData':JSON[_0x4f18db(0x598)](JSON[_0x4f18db(0x2ed)](_0xd25b63[_0x4f18db(0xc6)]()))}}),_0x19a58d[_0x4f18db(0x4ad)]({'id':c[_0x4f18db(0x1d9)]['id'],'params':{'unitId':_0x48341d,'subUnitId':_0x168c39,'shapeId':_0x482836}}),_0x19a58d['push']({'id':m[_0x4f18db(0x38c)]['id'],'params':{'unitId':_0x48341d,'subUnitId':_0x168c39,'type':m[_0x4f18db(0x289)][_0x4f18db(0x523)],'op':_0x126fe7,'objects':_0x1f96cc}});}return{'redos':_0x312d10,'undos':_0x19a58d};}}return{'redos':[],'undos':[]};}}));}};De=U([H(0x0,(0x0,l[_0x4c1bdf(0x130)])(l[_0x4c1bdf(0x17a)])),H(0x1,(0x0,l[_0x4c1bdf(0x130)])(p[_0x4c1bdf(0x15e)])),H(0x2,(0x0,l[_0x4c1bdf(0x130)])(m[_0x4c1bdf(0x124)])),H(0x3,(0x0,l[_0x4c1bdf(0x130)])(c[_0x4c1bdf(0x114)]))],De);let Oe=class extends l['Disposable']{constructor(_0x5a2765,_0x40630c,_0x5ca901,_0x1caab1,_0x344e77){const _0x4ad37e=_0x4c1bdf;super(),this[_0x4ad37e(0x249)]=_0x5a2765,this[_0x4ad37e(0x37e)]=_0x40630c,this[_0x4ad37e(0x47d)]=_0x5ca901,this[_0x4ad37e(0x2ef)]=_0x1caab1,this[_0x4ad37e(0x56d)]=_0x344e77,k(this,_0x4ad37e(0x409),null),this[_0x4ad37e(0x573)](),this['_initSelection'](),this[_0x4ad37e(0x27f)]();}[_0x4c1bdf(0x573)](){const _0x2974d7=_0x4c1bdf;let {scene:_0x19009f}=this[_0x2974d7(0x249)];this[_0x2974d7(0x35c)](_0x19009f['onDblclick$'][_0x2974d7(0x593)](_0x25baaf=>{const _0x592ac9=_0x2974d7;let {offsetX:_0x17bf0f,offsetY:_0x72c2a9}=_0x25baaf,_0x2bd72c=_0x19009f[_0x592ac9(0x342)](d['Vector2'][_0x592ac9(0x13f)]([_0x17bf0f,_0x72c2a9]));if(_0x2bd72c instanceof V){if((0x0,y[_0x592ac9(0x3a9)])(this['_sheetsShapeService'][_0x592ac9(0x367)](_0x2bd72c[_0x592ac9(0x372)],_0x2bd72c[_0x592ac9(0x4b8)],_0x2bd72c[_0x592ac9(0x3fc)])))return;this[_0x592ac9(0x37e)][_0x592ac9(0x47e)]({'visible':!0x0,'unitId':_0x2bd72c[_0x592ac9(0x372)],'subUnitId':_0x2bd72c[_0x592ac9(0x4b8)],'shapeId':_0x2bd72c[_0x592ac9(0x3fc)],'shapeKey':_0x2bd72c[_0x592ac9(0x429)]});}}));}[_0x4c1bdf(0x32a)](){const _0x5694d9=_0x4c1bdf;this[_0x5694d9(0x35c)](this[_0x5694d9(0x47d)][_0x5694d9(0x42b)]['subscribe'](_0x676903=>{const _0x13d56b=_0x5694d9;if(_0x676903[_0x13d56b(0x4b4)]===0x1){let _0x5eb8cc=_0x676903[0x0],_0x307e9a=this[_0x13d56b(0x47d)][_0x13d56b(0x3ed)](_0x5eb8cc);if((_0x307e9a==null?void 0x0:_0x307e9a['drawingType'])===l['DrawingTypeEnum'][_0x13d56b(0x118)]){let _0x2fede0=this['_shapeTextEditingService'][_0x13d56b(0x49a)]();if((_0x2fede0==null?void 0x0:_0x2fede0[_0x13d56b(0x3fc)])===_0x5eb8cc[_0x13d56b(0x1f0)]&&_0x2fede0['visible'])return;(0x0,y['isConnectorShape'])(this['_sheetsShapeService'][_0x13d56b(0x367)](_0x5eb8cc[_0x13d56b(0x372)],_0x5eb8cc[_0x13d56b(0x4b8)],_0x5eb8cc[_0x13d56b(0x1f0)]))&&this[_0x13d56b(0x37e)][_0x13d56b(0x47e)](null);}else this[_0x13d56b(0x37e)][_0x13d56b(0x49a)]()&&(this[_0x13d56b(0x37e)][_0x13d56b(0x2e8)](!0x0),requestAnimationFrame(()=>{const _0x3115d8=_0x13d56b;this[_0x3115d8(0x37e)][_0x3115d8(0x47e)](null);}));}else this[_0x13d56b(0x37e)][_0x13d56b(0x49a)]()&&(this[_0x13d56b(0x37e)][_0x13d56b(0x2e8)](!0x0),requestAnimationFrame(()=>{const _0x238293=_0x13d56b;this[_0x238293(0x37e)][_0x238293(0x47e)](null);}));})),this['disposeWithMe'](this[_0x5694d9(0x47d)][_0x5694d9(0x1fe)][_0x5694d9(0x520)](_0x1b280b=>{const _0x4f1a2e=_0x5694d9;let _0x3b341f=this[_0x4f1a2e(0x37e)][_0x4f1a2e(0x49a)]();_0x3b341f&&_0x1b280b[_0x4f1a2e(0x438)](_0x133240=>_0x133240['drawingId']===_0x3b341f[_0x4f1a2e(0x3fc)])&&this[_0x4f1a2e(0x37e)]['setEditing'](null);}));}[_0x4c1bdf(0x27f)](){const _0x5ec0e9=_0x4c1bdf;this[_0x5ec0e9(0x35c)](this['_shapeTextEditingService'][_0x5ec0e9(0x2b6)]['subscribe'](_0x5c2b31=>{const _0x54fa78=_0x5ec0e9;let {scene:_0x27a33e}=this[_0x54fa78(0x249)];if(this[_0x54fa78(0x409)]){let _0x2abc90=_0x27a33e['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);_0x2abc90&&_0x2abc90[_0x54fa78(0x47e)](!0x1);}if(_0x5c2b31){let _0x5f12b7=!!_0x5c2b31[_0x54fa78(0x3be)],_0x3afcfb=_0x27a33e[_0x54fa78(0x277)](_0x5c2b31[_0x54fa78(0x519)]);_0x3afcfb&&(_0x3afcfb[_0x54fa78(0x47e)](_0x5f12b7),this[_0x54fa78(0x409)]=_0x5c2b31[_0x54fa78(0x519)]),this[_0x54fa78(0x2ef)][_0x54fa78(0x4d6)](l[_0x54fa78(0x263)],_0x5f12b7);}else this[_0x54fa78(0x409)]=null,this[_0x54fa78(0x2ef)][_0x54fa78(0x4d6)](l[_0x54fa78(0x263)],!0x1);}));}};Oe=U([H(0x1,(0x0,l[_0x4c1bdf(0x130)])(A)),H(0x2,u[_0x4c1bdf(0x601)]),H(0x3,l[_0x4c1bdf(0x125)]),H(0x4,(0x0,l[_0x4c1bdf(0x130)])(c[_0x4c1bdf(0x114)]))],Oe);const ke={'normal':{'fill':y[_0x4c1bdf(0x52a)][_0x4c1bdf(0x164)],'stroke':y[_0x4c1bdf(0x52a)][_0x4c1bdf(0x3e3)],'strokeWidth':y[_0x4c1bdf(0x52a)][_0x4c1bdf(0x32f)]},'highlighted':{'fill':_0x4c1bdf(0x271),'stroke':_0x4c1bdf(0x165),'strokeWidth':0x2}};var Ae=class extends d[_0x4c1bdf(0x12d)]{constructor(_0x8d93bc,_0x182a46){const _0xcdbe4f=_0x4c1bdf;super(_0x8d93bc,_0x182a46),k(this,'_targetShapeId',''),k(this,_0xcdbe4f(0x338),-0x1),k(this,'_unitId',''),k(this,_0xcdbe4f(0x418),''),k(this,_0xcdbe4f(0x50d),!0x1),_0x182a46&&this[_0xcdbe4f(0x2eb)](_0x182a46);}[_0x4c1bdf(0x3d4)](){const _0x44421b=_0x4c1bdf;return{'unitId':this[_0x44421b(0x26d)],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x44421b(0x338)]};}[_0x4c1bdf(0x1e0)](_0x25d82f){const _0x273f09=_0x4c1bdf;this[_0x273f09(0x50d)]!==_0x25d82f&&(this['_isHighlighted']=_0x25d82f,this[_0x273f09(0x4e9)](!0x0));}['isHighlighted'](){const _0x38f4d9=_0x4c1bdf;return this[_0x38f4d9(0x50d)];}[_0x4c1bdf(0x2eb)](_0x35ca33){const _0x166082=_0x4c1bdf;var _0x319e7e,_0x51a74d;_0x35ca33[_0x166082(0x49f)]!==void 0x0&&(this[_0x166082(0x160)]=_0x35ca33[_0x166082(0x49f)]),_0x35ca33[_0x166082(0x1fa)]!==void 0x0&&(this[_0x166082(0x338)]=_0x35ca33[_0x166082(0x1fa)]),_0x35ca33[_0x166082(0x372)]!==void 0x0&&(this[_0x166082(0x26d)]=_0x35ca33[_0x166082(0x372)]),_0x35ca33[_0x166082(0x4b8)]!==void 0x0&&(this[_0x166082(0x418)]=_0x35ca33[_0x166082(0x4b8)]),_0x35ca33[_0x166082(0x1c8)]!==void 0x0&&(this[_0x166082(0x50d)]=_0x35ca33['isHighlighted']),this[_0x166082(0x4f6)]({'width':(_0x319e7e=_0x35ca33[_0x166082(0x344)])==null?y[_0x166082(0x52a)]['cxnPointRadius']*0x2:_0x319e7e,'height':(_0x51a74d=_0x35ca33[_0x166082(0x5fa)])==null?y[_0x166082(0x52a)][_0x166082(0x5be)]*0x2:_0x51a74d});}['_draw'](_0x5abfa2){const _0x355bc8=_0x4c1bdf;let _0x4a02e6=this['_isHighlighted']?ke['highlighted']:ke[_0x355bc8(0x3cb)];d[_0x355bc8(0x400)][_0x355bc8(0x3b5)](_0x5abfa2,{'radius':y[_0x355bc8(0x52a)]['cxnPointRadius'],'fill':_0x4a02e6[_0x355bc8(0x527)],'stroke':_0x4a02e6['stroke'],'strokeWidth':_0x4a02e6[_0x355bc8(0x4ea)],'evented':!0x0});}};function _0x1642(_0x3e97b3,_0x6dcac1){_0x3e97b3=_0x3e97b3-0xa7;const _0x5a33b5=_0x5a33();let _0x1642a7=_0x5a33b5[_0x3e97b3];return _0x1642a7;}let je=class extends l[_0x4c1bdf(0x279)]{constructor(_0x485305,_0x496f10,_0x33e4d6,_0x410f52){const _0x4c4c7a=_0x4c1bdf;super(),this['_context']=_0x485305,this[_0x4c4c7a(0x231)]=_0x496f10,this[_0x4c4c7a(0x47d)]=_0x33e4d6,this[_0x4c4c7a(0x56d)]=_0x410f52,k(this,_0x4c4c7a(0x18a),[]),k(this,_0x4c4c7a(0x33e),null),k(this,'_highlightedSiteIndex',-0x1),k(this,_0x4c4c7a(0x3ea),null),k(this,'_unitId',''),k(this,_0x4c4c7a(0x418),''),k(this,'_draggingConnectorId',null);}[_0x4c1bdf(0xf0)](_0x1e8c49,_0x5dc8c3,_0x4a5824,_0x2cbe9f){const _0x1096b1=_0x4c1bdf;this[_0x1096b1(0x3ea)]=_0x1e8c49,this[_0x1096b1(0x26d)]=_0x5dc8c3,this[_0x1096b1(0x418)]=_0x4a5824,this['_draggingConnectorId']=_0x2cbe9f;}[_0x4c1bdf(0x1e6)](_0x1ad8ee){const _0x32152d=_0x4c1bdf;if(!this[_0x32152d(0x3ea)])return null;let _0x584606=this[_0x32152d(0x20f)](_0x1ad8ee);return _0x584606?(this[_0x32152d(0x33e)]!==_0x584606[_0x32152d(0x3fc)]&&(this[_0x32152d(0x2f7)](),this[_0x32152d(0x2fc)](_0x584606[_0x32152d(0x3fc)],_0x584606[_0x32152d(0x49d)]),this[_0x32152d(0x33e)]=_0x584606['shapeId']),this[_0x32152d(0x580)](_0x1ad8ee)):(this[_0x32152d(0x33e)]!==null&&(this[_0x32152d(0x2f7)](),this[_0x32152d(0x33e)]=null),null);}[_0x4c1bdf(0x4c0)](){const _0x54c597=_0x4c1bdf;this[_0x54c597(0x2f7)](),this[_0x54c597(0x3ea)]=null,this[_0x54c597(0x33e)]=null,this[_0x54c597(0x412)]=-0x1,this[_0x54c597(0x5db)]=null;}[_0x4c1bdf(0x3b4)](){const _0xf2b0f5=_0x4c1bdf;return this['_activeTargetShapeId']===null||this[_0xf2b0f5(0x412)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0xf2b0f5(0x412)]};}[_0x4c1bdf(0x20f)](_0x3b8dd7){const _0x5833d8=_0x4c1bdf;let _0x4b1afa=this[_0x5833d8(0x47d)]['getDrawingData'](this['_unitId'],this['_subUnitId']);for(let _0x21e064 of Object[_0x5833d8(0x3f7)](_0x4b1afa)){if(_0x21e064===this[_0x5833d8(0x5db)]||_0x4b1afa[_0x21e064]['drawingType']!==l[_0x5833d8(0x237)][_0x5833d8(0x118)])continue;let _0x2ee3a9=this[_0x5833d8(0x56d)][_0x5833d8(0x4ba)](this[_0x5833d8(0x26d)],this[_0x5833d8(0x418)],_0x21e064);if(!_0x2ee3a9||(0x0,y[_0x5833d8(0x3a9)])(_0x2ee3a9[_0x5833d8(0x367)]())||_0x2ee3a9[_0x5833d8(0x608)]()['length']===0x0||!this[_0x5833d8(0x3ea)])continue;let _0x1781ca=(0x0,u[_0x5833d8(0x1e5)])({'unitId':this[_0x5833d8(0x26d)],'subUnitId':this[_0x5833d8(0x418)],'drawingId':_0x21e064}),_0x150a6b=this['_currentScene']['getObjectIncludeInGroup'](_0x1781ca);if(!_0x150a6b)continue;let {left:_0x48fbb9,top:_0x18037c,width:_0x3438eb,height:_0x10f463}=_0x150a6b[_0x5833d8(0x33c)](),_0x15295c=_0x48fbb9+_0x3438eb/0x2,_0xa47489=_0x18037c+_0x10f463/0x2,_0x25496d=_0x150a6b[_0x5833d8(0x4b1)]['getMatrix'](),_0x3fb31e=new d['Transform']([_0x25496d[0x0],_0x25496d[0x1],_0x25496d[0x2],_0x25496d[0x3],_0x15295c,_0xa47489]),_0x399c42=_0x150a6b[_0x5833d8(0x371)](),_0x1ee6de=(_0x150a6b[_0x5833d8(0x1ad)]&&(_0x399c42==null?void 0x0:_0x399c42['classType'])===d[_0x5833d8(0x16f)][_0x5833d8(0x4c6)]?_0x399c42[_0x5833d8(0x57d)]['multiply'](_0x3fb31e):_0x3fb31e)[_0x5833d8(0x108)]()[_0x5833d8(0x5d9)](_0x3b8dd7),_0x1c6cdd=_0x3438eb/0x2,_0x4af936=_0x10f463/0x2;if(_0x1ee6de['x']>=-_0x1c6cdd-0x5&&_0x1ee6de['x']<=_0x1c6cdd+0x5&&_0x1ee6de['y']>=-_0x4af936-0x5&&_0x1ee6de['y']<=_0x4af936+0x5)return{'shapeId':_0x21e064,'shapeModel':_0x2ee3a9};}return null;}[_0x4c1bdf(0x2fc)](_0x1e15fb,_0x2937c4){const _0x1bd2ec=_0x4c1bdf;if(!this[_0x1bd2ec(0x3ea)])return;let _0x4623d0=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x1bd2ec(0x26d)],'subUnitId':this[_0x1bd2ec(0x418)],'drawingId':_0x1e15fb}),_0x13ad49=this[_0x1bd2ec(0x3ea)][_0x1bd2ec(0x277)](_0x4623d0);if(!_0x13ad49)return;let {left:_0x1e9df2,top:_0x1344cc,width:_0x28df13,height:_0x1fe420}=_0x13ad49[_0x1bd2ec(0x33c)](),_0x50eb7f=_0x1e9df2+_0x28df13/0x2,_0x2cf780=_0x1344cc+_0x1fe420/0x2,_0x3246c8=_0x13ad49[_0x1bd2ec(0x4b1)][_0x1bd2ec(0x103)](),_0x8a2379=new d[(_0x1bd2ec(0x14c))]([_0x3246c8[0x0],_0x3246c8[0x1],_0x3246c8[0x2],_0x3246c8[0x3],_0x50eb7f,_0x2cf780]),_0x12e3df=_0x13ad49[_0x1bd2ec(0x371)](),_0x4bf61b=_0x13ad49[_0x1bd2ec(0x1ad)]&&(_0x12e3df==null?void 0x0:_0x12e3df[_0x1bd2ec(0x12a)])===d[_0x1bd2ec(0x16f)]['GROUP']?_0x12e3df[_0x1bd2ec(0x57d)][_0x1bd2ec(0x369)](_0x8a2379):_0x8a2379;_0x2937c4[_0x1bd2ec(0x3ee)]({'width':_0x28df13,'height':_0x1fe420});let _0x5a6007=_0x2937c4[_0x1bd2ec(0x608)]();for(let _0x1ad5f0 of _0x5a6007){let _0x11374a=_0x1ad5f0['x']-_0x28df13/0x2,_0x27bd25=_0x1ad5f0['y']-_0x1fe420/0x2,_0x51e4dd=_0x4bf61b[_0x1bd2ec(0x5d9)]({'x':_0x11374a,'y':_0x27bd25}),_0xf68f2=_0x51e4dd['x'],_0x198e2c=_0x51e4dd['y'],_0x37210f=new Ae(_0x1bd2ec(0x3f1)+_0x1e15fb+'-'+_0x1ad5f0[_0x1bd2ec(0x1ea)],{'left':_0xf68f2-y[_0x1bd2ec(0x52a)][_0x1bd2ec(0x5be)],'top':_0x198e2c-y['ShapeDefaultConfig'][_0x1bd2ec(0x5be)],'targetShapeId':_0x1e15fb,'cxnIndex':_0x1ad5f0[_0x1bd2ec(0x1ea)],'unitId':this[_0x1bd2ec(0x26d)],'subUnitId':this[_0x1bd2ec(0x418)],'width':y['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':y[_0x1bd2ec(0x52a)][_0x1bd2ec(0x5be)]*0x2,'zIndex':d[_0x1bd2ec(0x16b)]+0x2,'evented':!0x1});this[_0x1bd2ec(0x18a)][_0x1bd2ec(0x4ad)](_0x37210f),this[_0x1bd2ec(0x3ea)][_0x1bd2ec(0x317)](_0x37210f,d[_0x1bd2ec(0x16b)]+0x2);}}[_0x4c1bdf(0x580)](_0x49aafb){const _0x372b96=_0x4c1bdf;let _0x8df2e6=null,_0x55cb79=0x1/0x0,_0x14305c=null;for(let _0x2d6481 of this[_0x372b96(0x18a)]){let _0x386044=_0x2d6481[_0x372b96(0xa7)]+y[_0x372b96(0x52a)][_0x372b96(0x5be)],_0x4116b4=_0x2d6481[_0x372b96(0x351)]+y[_0x372b96(0x52a)][_0x372b96(0x5be)],_0x129b1e=_0x49aafb['x']-_0x386044,_0x331b48=_0x49aafb['y']-_0x4116b4,_0x3d01e0=Math[_0x372b96(0x35f)](_0x129b1e*_0x129b1e+_0x331b48*_0x331b48);_0x3d01e0<_0x55cb79&&(_0x55cb79=_0x3d01e0,_0x8df2e6=_0x2d6481,_0x14305c={'x':_0x386044,'y':_0x4116b4});}let _0x56ef2a=_0x55cb79<=0xa&&_0x8df2e6?_0x8df2e6['getConnectionInfo']()[_0x372b96(0x1fa)]:-0x1;if(_0x56ef2a!==this[_0x372b96(0x412)]){for(let _0x3a05b7 of this['_connectionSiteObjects']){let _0x4fc6a6=_0x3a05b7['getConnectionInfo']();_0x3a05b7[_0x372b96(0x1e0)](_0x4fc6a6[_0x372b96(0x1fa)]===_0x56ef2a);}this[_0x372b96(0x412)]=_0x56ef2a;}if(_0x55cb79<=0xa&&_0x8df2e6&&_0x14305c){let _0x2a9906=_0x8df2e6[_0x372b96(0x3d4)](),_0x3e8f67=this['_getConnectionSiteAngle'](_0x2a9906[_0x372b96(0x3fc)],_0x2a9906[_0x372b96(0x1fa)]);return{'shapeId':_0x2a9906[_0x372b96(0x3fc)],'cxnIndex':_0x2a9906['cxnIndex'],'unitId':_0x2a9906[_0x372b96(0x372)],'subUnitId':_0x2a9906[_0x372b96(0x4b8)],'worldPoint':_0x14305c,'angle':_0x3e8f67};}return null;}[_0x4c1bdf(0x1d4)](_0x27f87d,_0x29d7bf){const _0x56efd8=_0x4c1bdf;let _0x60aa82=this[_0x56efd8(0x56d)][_0x56efd8(0x4ba)](this['_unitId'],this[_0x56efd8(0x418)],_0x27f87d);if(!_0x60aa82)return 0x0;let _0x1d7128=this[_0x56efd8(0x47d)]['getDrawingByParam']({'unitId':this[_0x56efd8(0x26d)],'subUnitId':this[_0x56efd8(0x418)],'drawingId':_0x27f87d});if(!(_0x1d7128!=null&&_0x1d7128['transform']))return 0x0;let {width:_0xae0b78=0x0,height:_0x44247f=0x0,flipX:_0x3edc15=!0x1,flipY:_0x61259=!0x1}=_0x1d7128[_0x56efd8(0x4b1)];_0x60aa82[_0x56efd8(0x3ee)]({'width':_0xae0b78,'height':_0x44247f});let _0x3afe93=_0x60aa82[_0x56efd8(0x608)]()['find'](_0x31eaf1=>_0x31eaf1[_0x56efd8(0x1ea)]===_0x29d7bf);if(!_0x3afe93)return 0x0;let _0x268ed6=_0x3afe93[_0x56efd8(0x575)]/0xea60;return _0x3edc15&&(_0x268ed6=0xb4-_0x268ed6),_0x61259&&(_0x268ed6=-_0x268ed6),_0x268ed6=(_0x268ed6%0x168+0x168)%0x168,_0x268ed6;}[_0x4c1bdf(0x2f7)](){const _0x46b48f=_0x4c1bdf;for(let _0x4ed701 of this[_0x46b48f(0x18a)])_0x4ed701[_0x46b48f(0x212)]();this[_0x46b48f(0x18a)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0x4c54f7=_0x4c1bdf;this['_clearConnectionSites'](),super[_0x4c54f7(0x212)]();}};je=U([H(0x1,(0x0,l['Inject'])(d[_0x4c1bdf(0x560)])),H(0x2,(0x0,l[_0x4c1bdf(0x130)])(u[_0x4c1bdf(0x601)])),H(0x3,(0x0,l['Inject'])(c[_0x4c1bdf(0x114)]))],je);let Me=class extends l[_0x4c1bdf(0x279)]{constructor(_0xd6a77,_0x3e1648,_0x378d05,_0x56a4e4,_0x51fc02,_0x1d4f4e,_0x3d1d62,_0x20f7a0){const _0x43f113=_0x4c1bdf;super(),this[_0x43f113(0x249)]=_0xd6a77,this[_0x43f113(0x2ef)]=_0x3e1648,this['_drawingManagerService']=_0x378d05,this['_sheetsShapeService']=_0x56a4e4,this[_0x43f113(0x231)]=_0x51fc02,this[_0x43f113(0x1a1)]=_0x1d4f4e,this[_0x43f113(0x58a)]=_0x3d1d62,this[_0x43f113(0x5c6)]=_0x20f7a0,k(this,'_activeShapeId',null),k(this,_0x43f113(0x26d),null),k(this,_0x43f113(0x418),null),k(this,_0x43f113(0xfe),void 0x0),k(this,_0x43f113(0x410),[]),k(this,'_baseShapeLeft',0x0),k(this,_0x43f113(0xbd),0x0),k(this,_0x43f113(0x53b),0x0),k(this,_0x43f113(0x146),0x0),k(this,_0x43f113(0x3e1),!0x1),k(this,_0x43f113(0x2d8),void 0x0),k(this,_0x43f113(0x206),void 0x0),k(this,'_adjHandlerPointerMove',void 0x0),k(this,_0x43f113(0x4d1),void 0x0),k(this,_0x43f113(0x502),!0x1),this[_0x43f113(0x4ec)](),this['_registerDrawingMoveHandler']();}['_getShapeAdjustPointListById'](_0x1e7669,_0x5cbc75,_0x3048f3){const _0x31ace4=_0x4c1bdf;let _0x14a888=this['_sheetsShapeService']['getShapeModel'](_0x1e7669,_0x5cbc75,_0x3048f3);if(_0x14a888)return _0x14a888[_0x31ace4(0x5d6)]();}['clearAdjustControls'](){const _0x292888=_0x4c1bdf;this[_0x292888(0x549)]();}['refreshAdjustControls'](){const _0x4aa943=_0x4c1bdf;this[_0x4aa943(0x33d)](!0x0);}['_getShapeAdjustInfosById'](_0x482543,_0x195c91,_0x40ed53,_0x1c82c0){const _0x5dec9d=_0x4c1bdf;let _0x495216=this[_0x5dec9d(0x56d)][_0x5dec9d(0x4ba)](_0x482543,_0x195c91,_0x40ed53);if(_0x495216)return _0x495216[_0x5dec9d(0x2a9)](_0x1c82c0);}[_0x4c1bdf(0x5e7)](_0x5a5966=!0x1){const _0x3aa578=_0x4c1bdf;if(this[_0x3aa578(0x26d)]===null||this[_0x3aa578(0x418)]===null||this[_0x3aa578(0x211)]===null)return;let _0x34eb7d=this[_0x3aa578(0x231)][_0x3aa578(0x13d)](this['_unitId']);if(!_0x34eb7d||!_0x34eb7d[_0x3aa578(0x471)](_['SheetSkeletonManagerService'])[_0x3aa578(0x30d)]())return;let {scene:_0x4fd073}=_0x34eb7d,_0x366106={'unitId':this[_0x3aa578(0x26d)],'subUnitId':this[_0x3aa578(0x418)],'drawingId':this[_0x3aa578(0x211)]},_0x5a327b=this[_0x3aa578(0x47d)][_0x3aa578(0x3ed)](_0x366106),{transform:_0x5d249e}=_0x5a327b;if(!_0x5d249e||_0x5a327b[_0x3aa578(0x3c3)]!==l[_0x3aa578(0x237)][_0x3aa578(0x118)])return;let {left:_0x2e409d,top:_0x5eb119,width:_0x365ed6,height:_0x2ca2e6,flipX:_0x58fbb7,flipY:_0x3496e9,angle:_0x3a383d=0x0}=_0x5d249e;if(_0x2e409d===void 0x0||_0x5eb119===void 0x0)return;_0x5a5966&&(this[_0x3aa578(0xfe)]=this[_0x3aa578(0x2dc)](this[_0x3aa578(0x26d)],this['_subUnitId'],this[_0x3aa578(0x211)]));let _0xae5902=this['_activeShapeAdjustPointList'];for(let _0x5ec0c4=0x0;_0x5ec0c4<_0xae5902['length'];_0x5ec0c4++){let _0x5cd990=_0xae5902[_0x5ec0c4],_0x497522=_0x5cd990['x'],_0x3f24e0=_0x5cd990['y'];if(_0x58fbb7&&(_0x497522=(_0x365ed6||0x0)-_0x497522),_0x3496e9&&(_0x3f24e0=(_0x2ca2e6||0x0)-_0x3f24e0),_0x3a383d!==0x0){let _0x1b52ce=(_0x365ed6||0x0)/0x2,_0x3e98e3=(_0x2ca2e6||0x0)/0x2,_0x6df4ad=_0x3a383d*Math['PI']/0xb4,_0x4d3ea7=Math[_0x3aa578(0x3b7)](_0x6df4ad),_0x3be450=Math['sin'](_0x6df4ad),_0x3ba679=_0x497522-_0x1b52ce,_0x50d5d3=_0x3f24e0-_0x3e98e3;_0x497522=_0x1b52ce+(_0x3ba679*_0x4d3ea7-_0x50d5d3*_0x3be450),_0x3f24e0=_0x3e98e3+(_0x3ba679*_0x3be450+_0x50d5d3*_0x4d3ea7);}let _0xadbfe2={'x':_0x497522,'y':_0x3f24e0,'adjName':_0x5cd990[_0x3aa578(0x4ca)]};this[_0x3aa578(0x581)](_0x4fd073,_0xadbfe2,_0xadbfe2[_0x3aa578(0x4ca)],_0x2e409d,_0x5eb119,this[_0x3aa578(0x26d)],this[_0x3aa578(0x418)]);}}[_0x4c1bdf(0x33d)](_0x41d359=!0x1){const _0x268183=_0x4c1bdf;_0x41d359&&(this[_0x268183(0x549)](),this[_0x268183(0x5e7)](_0x41d359));}['_addShapeAdjustControl'](_0x86eba8,_0x486533,_0x2e3baf,_0x7c27b7,_0x34a664,_0x56fc94,_0xe43f4a){const _0x2250c0=_0x4c1bdf;if(!this['_activeShapeId'])return;let _0x28e696=_0x86eba8[_0x2250c0(0x277)](_0x2250c0(0x112)+this[_0x2250c0(0x211)]+'-'+_0x2e3baf);if(_0x28e696){_0x28e696['transformByState']({'left':_0x486533['x']+_0x7c27b7-y[_0x2250c0(0x52a)][_0x2250c0(0x10c)],'top':_0x486533['y']+_0x34a664-y['ShapeDefaultConfig']['adjHandleSize']});return;}let _0x10056a={'left':_0x486533['x']+_0x7c27b7-y['ShapeDefaultConfig'][_0x2250c0(0x10c)],'top':_0x486533['y']+_0x34a664-y[_0x2250c0(0x52a)]['adjHandleSize'],'adjName':_0x2e3baf,'shapeId':this[_0x2250c0(0x211)],'unitId':_0x56fc94,'subUnitId':_0xe43f4a,'width':y[_0x2250c0(0x52a)]['adjHandleSize']+0x8,'height':y['ShapeDefaultConfig']['adjHandleSize']+0x8,'zIndex':d['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0},_0x46c404=new Te('shape-adjust-point-'+this[_0x2250c0(0x211)]+'-'+_0x2e3baf,_0x10056a);this[_0x2250c0(0x410)]['push'](_0x46c404),this[_0x2250c0(0x5e9)](_0x46c404,_0x86eba8,_0x2e3baf),_0x86eba8[_0x2250c0(0x317)](_0x46c404,d[_0x2250c0(0x16b)]+0x1);}[_0x4c1bdf(0x549)](){const _0x6c8f73=_0x4c1bdf;this[_0x6c8f73(0x410)]['length']!==0x0&&(this[_0x6c8f73(0x410)][_0x6c8f73(0x241)](_0x1a3322=>{const _0x4fb2ce=_0x6c8f73;_0x1a3322[_0x4fb2ce(0x212)]();}),this['_shapes']=[]);}[_0x4c1bdf(0x552)](){const _0x19080=_0x4c1bdf;this[_0x19080(0x5e7)]();}[_0x4c1bdf(0x50b)](_0x43927b,_0x19c770){const _0x8c9691=_0x4c1bdf;var _0x31e51f;let _0x93a883={'x':0x0,'y':0x0};if(!_0x43927b||!_0x19c770)return _0x93a883;let _0x418dfb=this[_0x8c9691(0x231)]['getRenderById'](_0x43927b);if(!_0x418dfb||!_0x418dfb['with'](_[_0x8c9691(0x315)])[_0x8c9691(0x569)](_0x19c770))return _0x93a883;let _0x428652=_0x418dfb[_0x8c9691(0x471)](_[_0x8c9691(0x2bd)]),_0x2f43ab=_0x428652==null?void 0x0:_0x428652[_0x8c9691(0x605)]();if(!_0x2f43ab)return _0x93a883;let _0x27f424=(_0x31e51f=this['_univerInstanceService'][_0x8c9691(0x151)](_0x43927b))==null?void 0x0:_0x31e51f[_0x8c9691(0x376)](_0x19c770);if(!_0x27f424)return _0x93a883;let _0x394944=(0x0,_['getViewportByCell'])(_0x2f43ab[_0x8c9691(0x3fd)],_0x2f43ab[_0x8c9691(0x1a0)],_0x418dfb['scene'],_0x27f424);return _0x394944?{'x':_0x394944['viewportScrollX'],'y':_0x394944[_0x8c9691(0x20e)]}:_0x93a883;}['_getZoomRatio'](_0x5381a9,_0x2103dc){const _0x48e682=_0x4c1bdf;var _0x360925,_0x36f0b1;let _0x2a2cf4=(_0x360925=this[_0x48e682(0x58a)][_0x48e682(0x151)](_0x5381a9))==null?void 0x0:_0x360925[_0x48e682(0x376)](_0x2103dc);return(_0x36f0b1=_0x2a2cf4==null?void 0x0:_0x2a2cf4[_0x48e682(0x52c)]())==null?0x1:_0x36f0b1;}[_0x4c1bdf(0x5e9)](_0x587830,_0x5344a0,_0x148601){const _0x5a0f9c=_0x4c1bdf;this[_0x5a0f9c(0x35c)]((0x0,l[_0x5a0f9c(0x1cf)])(_0x587830[_0x5a0f9c(0x5b9)][_0x5a0f9c(0x593)]((_0x42f580,_0x2ac923)=>{const _0xbeee21=_0x5a0f9c;var _0x34af34,_0xaa8a68,_0x52757c,_0x284a7b;let _0x542082=_0x587830[_0xbeee21(0x5e2)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x542082[_0xbeee21(0x372)],_0x542082['subUnitId'],_0x542082[_0xbeee21(0x1f0)],_0x148601),this['_activeShapeModel']=this['_sheetsShapeService'][_0xbeee21(0x4ba)](_0x542082['unitId'],_0x542082[_0xbeee21(0x4b8)],_0x542082[_0xbeee21(0x1f0)]);let _0x57081d=this['_drawingManagerService'][_0xbeee21(0x3ed)]({'unitId':this['_unitId'],'subUnitId':this[_0xbeee21(0x418)],'drawingId':this[_0xbeee21(0x211)]}),{transform:_0x5a58a9}=_0x57081d;if(_0x5a58a9){let {left:_0x4d1238,top:_0x27d053,width:_0xe28ed7,height:_0x139490}=_0x5a58a9;this[_0xbeee21(0x106)]=_0x4d1238||0x0,this[_0xbeee21(0xbd)]=_0x27d053||0x0,this[_0xbeee21(0x53b)]=_0xe28ed7||0x0,this[_0xbeee21(0x146)]=_0x139490||0x0;}let _0x3c7630=!!((_0x34af34=_0x57081d[_0xbeee21(0x4b1)])!=null&&_0x34af34[_0xbeee21(0x316)]),_0x511fdd=!!((_0xaa8a68=_0x57081d[_0xbeee21(0x4b1)])!=null&&_0xaa8a68[_0xbeee21(0x24c)]),_0x33f02f=((_0x52757c=_0x57081d[_0xbeee21(0x4b1)])==null?void 0x0:_0x52757c[_0xbeee21(0x22d)])||0x0;this[_0xbeee21(0x3e1)]=!0x0,_0x5344a0['disableObjectsEvent']();let _0x4c2df5=(_0x284a7b=this[_0xbeee21(0x206)])==null?void 0x0:_0x284a7b[_0xbeee21(0x566)](_0x148601),_0x1bdfa3={[_0x148601]:_0x4c2df5};this[_0xbeee21(0x213)]=_0x5344a0[_0xbeee21(0x3e8)]['subscribeEvent']((_0x31c434,_0x3d1643)=>{const _0x2b5b75=_0xbeee21;if(!this[_0x2b5b75(0x3e1)])return;let {offsetX:_0x4a15d7,offsetY:_0x39f3b0}=_0x31c434,_0x17fcf8=this[_0x2b5b75(0x2d8)];if(this[_0x2b5b75(0x206)]&&_0x17fcf8){_0x5344a0[_0x2b5b75(0x181)](),_0x5344a0[_0x2b5b75(0x318)](d[_0x2b5b75(0x452)][_0x2b5b75(0x18e)]);let _0x4a608b={'left':0x0,'top':0x0,'width':this[_0x2b5b75(0x53b)],'height':this['_baseShapeHeight']},_0x48f404=this[_0x2b5b75(0x50b)](this[_0x2b5b75(0x26d)],this[_0x2b5b75(0x418)]),_0xd7081d=this[_0x2b5b75(0x59f)](this[_0x2b5b75(0x26d)],this[_0x2b5b75(0x418)]),_0x3cf9c7=_0x4a15d7/_0xd7081d+_0x48f404['x']-this['_baseShapeLeft'],_0x36a703=_0x39f3b0/_0xd7081d+_0x48f404['y']-this[_0x2b5b75(0xbd)];if(_0x33f02f!==0x0){let _0x29d6be=this[_0x2b5b75(0x53b)]/0x2,_0x2fd969=this[_0x2b5b75(0x146)]/0x2,_0x4559e6=_0x33f02f*Math['PI']/0xb4,_0x1feae0=Math['cos'](_0x4559e6),_0xf06ba2=Math['sin'](_0x4559e6),_0x4f6420=_0x3cf9c7-_0x29d6be,_0x525562=_0x36a703-_0x2fd969;_0x3cf9c7=_0x29d6be+(_0x4f6420*_0x1feae0+_0x525562*_0xf06ba2),_0x36a703=_0x2fd969+(-_0x4f6420*_0xf06ba2+_0x525562*_0x1feae0);}_0x3c7630&&(_0x3cf9c7=this[_0x2b5b75(0x53b)]-_0x3cf9c7),_0x511fdd&&(_0x36a703=this[_0x2b5b75(0x146)]-_0x36a703);let _0x545aa8={'x':_0x3cf9c7,'y':_0x36a703},_0x31b7a9=this[_0x2b5b75(0x206)][_0x2b5b75(0x156)](_0x4a608b,_0x545aa8,_0x17fcf8,_0x3c7630,_0x511fdd),_0x4e67fa=_0x17fcf8[_0x2b5b75(0x27a)]||_0x17fcf8[_0x2b5b75(0x38e)]||_0x17fcf8[_0x2b5b75(0x3e9)]||_0x17fcf8[_0x2b5b75(0x58c)];if(_0x4e67fa===void 0x0)return;this['_activeShapeModel'][_0x2b5b75(0x421)](_0x4e67fa,_0x31b7a9);let _0x42f219=this[_0x2b5b75(0x47d)][_0x2b5b75(0x3ed)]({'unitId':_0x542082[_0x2b5b75(0x372)],'subUnitId':_0x542082[_0x2b5b75(0x4b8)],'drawingId':_0x542082[_0x2b5b75(0x1f0)]});_0x42f219&&(this[_0x2b5b75(0x1a1)][_0x2b5b75(0x391)](_0x42f219,_0x5344a0),this[_0x2b5b75(0xfe)]=this['_getShapeAdjustPointListById'](_0x542082['unitId'],_0x542082[_0x2b5b75(0x4b8)],_0x542082[_0x2b5b75(0x1f0)]),this['_updateAdjustControlPositions']());}_0x3d1643['stopPropagation']();}),this[_0xbeee21(0x4d1)]=_0x5344a0[_0xbeee21(0x362)]['subscribeEvent']((_0x3aa6d2,_0x2f92a1)=>{const _0x3e8b19=_0xbeee21;this[_0x3e8b19(0x213)][_0x3e8b19(0x559)](),this[_0x3e8b19(0x4d1)]['unsubscribe'](),_0x5344a0[_0x3e8b19(0x58f)]();let _0x33fa24=this[_0x3e8b19(0x2d8)];if(_0x33fa24){let _0x5a8a8c=_0x542082['unitId'],_0x183447=_0x542082[_0x3e8b19(0x4b8)],_0x36cb67=_0x542082['drawingId'],_0x14878a=_0x33fa24['gdRefX']||_0x33fa24[_0x3e8b19(0x38e)]||_0x33fa24[_0x3e8b19(0x3e9)]||_0x33fa24[_0x3e8b19(0x58c)];if(_0x14878a!==void 0x0){var _0x14df57;let _0x500ff2=(_0x14df57=this[_0x3e8b19(0x206)])==null?void 0x0:_0x14df57[_0x3e8b19(0x566)](_0x14878a);_0x500ff2!==void 0x0&&B(this[_0x3e8b19(0x5c6)],_0x5a8a8c,_0x183447,_0x36cb67,{'oldShapeData':{'adjustValues':_0x1bdfa3}},{'adjustValues':{[_0x14878a]:_0x500ff2}});}}this[_0x3e8b19(0x2d8)]=void 0x0,this[_0x3e8b19(0x206)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x2f92a1[_0x3e8b19(0xf4)](),_0x5344a0[_0x3e8b19(0xa8)]();}),_0x2ac923['stopPropagation']();})));}[_0x4c1bdf(0x5c9)](){const _0x1e52a8=_0x4c1bdf;let _0x46b1e7=this[_0x1e52a8(0x58a)][_0x1e52a8(0x247)](l[_0x1e52a8(0x47a)]['UNIVER_SHEET']);this['disposeWithMe'](_0x46b1e7[_0x1e52a8(0x2f1)]((0x0,f[_0x1e52a8(0x276)])(_0x5cf6a7=>_0x5cf6a7?_0x5cf6a7[_0x1e52a8(0x135)]['pipe']((0x0,f[_0x1e52a8(0x276)])(_0x654bf1=>{const _0x18fadc=_0x1e52a8;if(!_0x654bf1)return f[_0x18fadc(0x3e4)];let _0x2a3879=_0x5cf6a7[_0x18fadc(0x1d6)](),_0x2fd649=this[_0x18fadc(0x231)][_0x18fadc(0x13d)](_0x2a3879),_0x3a8b2e=_0x2fd649==null?void 0x0:_0x2fd649[_0x18fadc(0x22c)];return _0x3a8b2e?(0x0,f['of'])(_0x3a8b2e):f[_0x18fadc(0x3e4)];})):f[_0x1e52a8(0x3e4)]))['subscribe'](_0x44dda1=>{const _0x1ea030=_0x1e52a8;let _0x42a0a7=_0x44dda1[_0x1ea030(0x1d3)]();this[_0x1ea030(0x35c)](_0x44dda1[_0x1ea030(0x3e8)]['subscribeEvent'](()=>{const _0x209c2d=_0x1ea030;this[_0x209c2d(0x502)]&&this[_0x209c2d(0x549)]();})),this[_0x1ea030(0x35c)](_0x42a0a7['changeStart$']['subscribe'](_0x24168d=>{const _0xd58b06=_0x1ea030;let {objects:_0x2a1671}=_0x24168d;this[_0xd58b06(0x5e7)](),_0x2a1671!==null&&_0x2a1671['size']===0x1&&_0x2a1671['values']()['next']()[_0xd58b06(0x449)]instanceof V&&(this[_0xd58b06(0x502)]=!0x0);})),this[_0x1ea030(0x35c)](_0x42a0a7['changing$'][_0x1ea030(0x520)](()=>{const _0x4bd597=_0x1ea030;this[_0x4bd597(0x502)]&&this[_0x4bd597(0x549)]();})),this[_0x1ea030(0x35c)](_0x44dda1[_0x1ea030(0x362)][_0x1ea030(0x593)](()=>{const _0x41c932=_0x1ea030;this[_0x41c932(0x502)]&&(this[_0x41c932(0x502)]=!0x1,this['_createShapeAdjustControls']());})),this['disposeWithMe'](_0x42a0a7[_0x1ea030(0x4a1)][_0x1ea030(0x520)](()=>{const _0x5ddd92=_0x1ea030;this[_0x5ddd92(0x26d)]&&this[_0x5ddd92(0x418)]&&this[_0x5ddd92(0x211)]&&this[_0x5ddd92(0x47d)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x5ddd92(0x418)],'drawingId':this[_0x5ddd92(0x211)]})&&(this[_0x5ddd92(0xfe)]=this['_getShapeAdjustPointListById'](this[_0x5ddd92(0x26d)],this[_0x5ddd92(0x418)],this['_activeShapeId']),this[_0x5ddd92(0x552)]());}));}));}[_0x4c1bdf(0x4ec)](){const _0x4af25a=_0x4c1bdf;this[_0x4af25a(0x35c)](this[_0x4af25a(0x47d)][_0x4af25a(0x42b)][_0x4af25a(0x520)](_0x393674=>{const _0xe27648=_0x4af25a;if(_0x393674[_0xe27648(0x4b4)]===0x1){let _0xf0a8e1=_0x393674[0x0];if(_0xf0a8e1[_0xe27648(0x3c3)]===l[_0xe27648(0x237)][_0xe27648(0x118)]){this['_activeShapeId']=_0xf0a8e1[_0xe27648(0x1f0)];let {unitId:_0x301376,subUnitId:_0x331343}=_0xf0a8e1;this[_0xe27648(0xfe)]=this[_0xe27648(0x2dc)](_0x301376,_0x331343,this[_0xe27648(0x211)]),this[_0xe27648(0x26d)]=_0x301376,this[_0xe27648(0x418)]=_0x331343,this[_0xe27648(0x549)](),this[_0xe27648(0x5e7)]();}else this[_0xe27648(0x211)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0xe27648(0x26d)]=null,this[_0xe27648(0x418)]=null,this['_clearShapeAdjustControls']();}(_0x393674[_0xe27648(0x4b4)]>0x1||_0x393674['length']===0x0)&&(this[_0xe27648(0x211)]=null,this[_0xe27648(0xfe)]=void 0x0,this[_0xe27648(0x26d)]=null,this[_0xe27648(0x418)]=null,this[_0xe27648(0x549)]());})),this['disposeWithMe'](this['_drawingManagerService'][_0x4af25a(0x23e)][_0x4af25a(0x520)](_0x1f742a=>{const _0x258414=_0x4af25a;if(_0x1f742a[_0x258414(0x4b4)]===0x1){var _0x35dca4;let _0x3980cb=_0x1f742a[0x0];((_0x35dca4=this['_drawingManagerService'][_0x258414(0x3ed)](_0x3980cb))==null?void 0x0:_0x35dca4[_0x258414(0x3c3)])===l['DrawingTypeEnum']['DRAWING_SHAPE']&&this[_0x258414(0x33d)](!0x0);}})),this['disposeWithMe'](this[_0x4af25a(0x47d)][_0x4af25a(0x1fe)][_0x4af25a(0x520)](_0x573649=>{const _0x250e85=_0x4af25a;for(let _0x528883 of _0x573649)this[_0x250e85(0x211)]===_0x528883[_0x250e85(0x1f0)]&&(this[_0x250e85(0x211)]=null,this[_0x250e85(0xfe)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());}));}};Me=U([H(0x1,l['IContextService']),H(0x2,u[_0x4c1bdf(0x601)]),H(0x3,(0x0,l['Inject'])(c[_0x4c1bdf(0x114)])),H(0x4,(0x0,l[_0x4c1bdf(0x130)])(d['IRenderManagerService'])),H(0x5,(0x0,l[_0x4c1bdf(0x130)])(W)),H(0x6,l[_0x4c1bdf(0x17a)]),H(0x7,l['ICommandService'])],Me);let Ne=class extends l['Disposable']{constructor(_0x514ade,_0x122a89,_0x1c46d6,_0xff718b,_0x9c862){const _0x3687d8=_0x4c1bdf;super(),this[_0x3687d8(0x1e1)]=_0x514ade,this['_sheetClipboardService']=_0x122a89,this[_0x3687d8(0xab)]=_0x1c46d6,this[_0x3687d8(0x5c0)]=_0xff718b,this['_groupCopyPasteController']=_0x9c862,k(this,_0x3687d8(0x2df),void 0x0),this['_initCopyPaste'](),this[_0x3687d8(0x564)]();}get[_0x4c1bdf(0x41a)](){const _0x47a014=_0x4c1bdf;return this[_0x47a014(0xab)][_0x47a014(0x577)]();}['_registerGroupFeaturePasteHook'](){const _0x56046a=_0x4c1bdf;this['_groupCopyPasteController'][_0x56046a(0x139)](({fromUnitId:_0x4e337f,fromSubUnitId:_0x4d95e4,toUnitId:_0x470897,toSubUnitId:_0x276986,idMap:_0x37b17b})=>{const _0x41b3b2=_0x56046a;let _0x4a06c5=[],_0x391b4f=[];for(let [_0x350bc4,_0xcedbb0]of _0x37b17b[_0x41b3b2(0x55a)]()){let _0x505ddf=this[_0x41b3b2(0x5c0)][_0x41b3b2(0x4ba)](_0x4e337f,_0x4d95e4,_0x350bc4);if(!_0x505ddf)continue;let _0x28a0b5=_0x505ddf[_0x41b3b2(0x367)](),_0x6699f=JSON[_0x41b3b2(0x598)](JSON[_0x41b3b2(0x2ed)](_0x505ddf[_0x41b3b2(0xc6)]()));if(_0x6699f[_0x41b3b2(0xb9)]){var _0x4d45c0,_0x37a7ef;let _0x4f24f3=(_0x4d45c0=_0x6699f[_0x41b3b2(0xb9)]['from'])==null?void 0x0:_0x4d45c0[_0x41b3b2(0x3fc)],_0x23c99b=(_0x37a7ef=_0x6699f[_0x41b3b2(0xb9)]['to'])==null?void 0x0:_0x37a7ef[_0x41b3b2(0x3fc)],_0x1d81a1=_0x4f24f3?_0x37b17b['has'](_0x4f24f3):!0x0,_0x14f8f3=_0x23c99b?_0x37b17b[_0x41b3b2(0x485)](_0x23c99b):!0x0;_0x1d81a1&&_0x4f24f3&&_0x6699f['relation'][_0x41b3b2(0x2ca)]?_0x6699f[_0x41b3b2(0xb9)]['from']={..._0x6699f[_0x41b3b2(0xb9)][_0x41b3b2(0x2ca)],'shapeId':_0x37b17b[_0x41b3b2(0x100)](_0x4f24f3)}:_0x6699f[_0x41b3b2(0xb9)][_0x41b3b2(0x2ca)]=void 0x0,_0x14f8f3&&_0x23c99b&&_0x6699f[_0x41b3b2(0xb9)]['to']?_0x6699f['relation']['to']={..._0x6699f[_0x41b3b2(0xb9)]['to'],'shapeId':_0x37b17b[_0x41b3b2(0x100)](_0x23c99b)}:_0x6699f[_0x41b3b2(0xb9)]['to']=void 0x0;}_0x4a06c5[_0x41b3b2(0x4ad)]({'id':c[_0x41b3b2(0x39d)]['id'],'params':{'unitId':_0x470897,'subUnitId':_0x276986,'shapeId':_0xcedbb0,'shapeType':_0x28a0b5,'shapeData':_0x6699f}}),_0x391b4f[_0x41b3b2(0x4ad)]({'id':c[_0x41b3b2(0x1d9)]['id'],'params':{'unitId':_0x470897,'subUnitId':_0x276986,'shapeId':_0xcedbb0}});}return{'redos':_0x4a06c5,'undos':_0x391b4f};});}[_0x4c1bdf(0x288)](){const _0x19e8f6=_0x4c1bdf;this['disposeWithMe'](this['_sheetClipboardService'][_0x19e8f6(0x128)]({'id':'sheets-shape-ui','onBeforeCopy':(_0x139bb1,_0x4ac10e,_0x3e9877,_0x53f5e7)=>{const _0x23bb4a=_0x19e8f6;this[_0x23bb4a(0x2df)]=null;let _0x4d4fca=this[_0x23bb4a(0x41a)];if(_0x4d4fca[_0x23bb4a(0x4b4)]){let _0x32ab3c=_0x4d4fca['filter'](_0xada961=>_0xada961['drawingType']===l[_0x23bb4a(0x237)][_0x23bb4a(0x118)]);if(_0x32ab3c['length']===0x0)return;this[_0x23bb4a(0x2df)]={'unitId':_0x139bb1,'subUnitId':_0x4ac10e,'copyType':_0x53f5e7,'drawings':_0x32ab3c};}else this[_0x23bb4a(0x587)](_0x139bb1,_0x4ac10e,_0x3e9877,_0x53f5e7);},'onPasteCells':(_0x4da093,_0x1ff6ae,_0x18358d,_0x2dfc2d)=>{const _0x5df16e=_0x19e8f6;if(!this[_0x5df16e(0x2df)])return{'redos':[],'undos':[]};let {pasteType:_0x430d77}=_0x2dfc2d;return _0x430d77===_[_0x5df16e(0x43d)][_0x5df16e(0xe6)]?this[_0x5df16e(0x547)](_0x1ff6ae,this[_0x5df16e(0x2df)][_0x5df16e(0x46b)]===_[_0x5df16e(0x5d0)][_0x5df16e(0x12c)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x394529=>this[_0x19e8f6(0x2df)]?this[_0x19e8f6(0x547)](_0x394529,this['_copyInfo'][_0x19e8f6(0x46b)]===_[_0x19e8f6(0x5d0)][_0x19e8f6(0x12c)]):{'redos':[],'undos':[]}}));}[_0x4c1bdf(0x587)](_0x3ef4ab,_0x36fc3d,_0x333c5d,_0x2c7b70){const _0x3efa4a=_0x4c1bdf;let _0x333cd3=this[_0x3efa4a(0x1e1)][_0x3efa4a(0x569)](_0x3ef4ab,_0x36fc3d);if(!_0x333cd3)return;let _0x5a053e=(0x0,p['attachRangeWithCoord'])(_0x333cd3,_0x333c5d);if(!_0x5a053e)return;let {startX:_0x55a78a,endX:_0x218852,startY:_0x544542,endY:_0x1bab25}=_0x5a053e,_0x4a1b15=this['_sheetDrawingService'][_0x3efa4a(0x5f5)](_0x3ef4ab,_0x36fc3d),_0x41d5b3=this[_0x3efa4a(0x41a)][_0x3efa4a(0x258)]();for(let [_0x40625f,_0x3044c8]of Object[_0x3efa4a(0x55a)](_0x4a1b15)){if(_0x3044c8[_0x3efa4a(0x3c3)]!==l['DrawingTypeEnum']['DRAWING_SHAPE'])continue;let {transform:_0x346ef3}=_0x3044c8;if(!_0x346ef3)continue;let {left:_0x21091e=0x0,top:_0xfc09ab=0x0,width:_0x2311d2=0x0,height:_0x416149=0x0}=_0x346ef3;_0x55a78a<=_0x21091e&&_0x218852>=_0x21091e+_0x2311d2&&_0x544542<=_0xfc09ab&&_0x1bab25>=_0xfc09ab+_0x416149&&_0x41d5b3[_0x3efa4a(0x4ad)](_0x3044c8);}_0x41d5b3[_0x3efa4a(0x4b4)]>0x0&&(this[_0x3efa4a(0x2df)]={'unitId':_0x3ef4ab,'subUnitId':_0x36fc3d,'copyType':_0x2c7b70,'copyRange':_0x333c5d,'drawings':_0x41d5b3});}[_0x4c1bdf(0x547)](_0x152cfa,_0x5608ff){const _0xe0e38b=_0x4c1bdf;let {unitId:_0x2d38b3,subUnitId:_0x56d44a,range:_0x185498}=_0x152cfa,_0x36c92c=this[_0xe0e38b(0x1e1)][_0xe0e38b(0x569)](_0x2d38b3,_0x56d44a);if(!_0x36c92c)return{'redos':[],'undos':[]};let _0x30bee6=(0x0,p['discreteRangeToRange'])(_0x185498),{unitId:_0x29604f,subUnitId:_0x3bd1f2,copyRange:_0x266dea,drawings:_0x3545f7}=this[_0xe0e38b(0x2df)],_0x39a219=this[_0xe0e38b(0x1e1)]['getSkeleton'](_0x29604f,_0x3bd1f2);if(!_0x39a219)return{'redos':[],'undos':[]};let _0x59842c;if(!_0x266dea){let _0x153958=0x1/0x0,_0x4ceba2=0x1/0x0;for(let _0x2ddf87 of _0x3545f7){var _0x4ff373;let {left:_0x5c5969=0x0,top:_0x461568=0x0}=(_0x4ff373=_0x2ddf87[_0xe0e38b(0x4b1)])==null?{}:_0x4ff373;_0x5c5969<_0x153958&&(_0x153958=_0x5c5969),_0x461568<_0x4ceba2&&(_0x4ceba2=_0x461568);}_0x153958!==0x1/0x0&&_0x4ceba2!==0x1/0x0&&(_0x59842c={'left':_0x153958,'top':_0x4ceba2});}let _0x510957=new Map();if(!_0x5608ff){for(let _0x24bd70 of _0x3545f7)_0x510957[_0xe0e38b(0x2a5)](_0x24bd70[_0xe0e38b(0x1f0)],(0x0,l[_0xe0e38b(0x52e)])());}let _0x405a5c=[],_0x3901d7=[];for(let _0x6dfda3 of _0x3545f7){let {drawingId:_0x4ad21f,transform:_0x6acb75,sheetTransform:_0x1caf06}=_0x6dfda3;if(!_0x6acb75||!_0x1caf06)continue;let _0x433a7e=this[_0xe0e38b(0x122)]({'transform':_0x6acb75,'sheetTransform':_0x1caf06},{'skeleton':_0x39a219,'range':_0x266dea},{'skeleton':_0x36c92c,'range':_0x30bee6},_0x59842c);if(_0x5608ff){let {redos:_0x575ee9,undos:_0xab8dc0}=this[_0xe0e38b(0x420)]({'fromUnitId':_0x29604f,'fromSubUnitId':_0x3bd1f2,'toUnitId':_0x2d38b3,'toSubUnitId':_0x56d44a,'drawing':_0x6dfda3,'newTransforms':_0x433a7e});_0x405a5c[_0xe0e38b(0x4ad)](..._0x575ee9),_0x3901d7[_0xe0e38b(0x4ad)](..._0xab8dc0);continue;}let {redos:_0x1160ee,undos:_0x207d28}=this[_0xe0e38b(0x229)]({'toUnitId':_0x2d38b3,'toSubUnitId':_0x56d44a,'drawing':_0x6dfda3,'newTransforms':_0x433a7e,'newDrawingId':_0x510957[_0xe0e38b(0x100)](_0x4ad21f),'idMap':_0x510957});_0x405a5c[_0xe0e38b(0x4ad)](..._0x1160ee),_0x3901d7[_0xe0e38b(0x4ad)](..._0x207d28);}return{'redos':_0x405a5c,'undos':_0x3901d7};}[_0x4c1bdf(0x420)](_0x2eb518){const _0x40e787=_0x4c1bdf;let {fromUnitId:_0x39a3eb,fromSubUnitId:_0x17b789,toUnitId:_0xcc5a23,toSubUnitId:_0x16960e,drawing:_0x3bd90a,newTransforms:_0x43bec7}=_0x2eb518,_0x206261={..._0x3bd90a,'unitId':_0xcc5a23,'subUnitId':_0x16960e,'transform':_0x43bec7[_0x40e787(0x4b1)],'sheetTransform':_0x43bec7[_0x40e787(0x4bb)]};if(_0xcc5a23===_0x39a3eb&&_0x16960e===_0x17b789){let {redo:_0x356de7,undo:_0x432d25,objects:_0x416cb1}=this[_0x40e787(0xab)][_0x40e787(0x333)]([_0x206261]);return{'redos':[{'id':m[_0x40e787(0x38c)]['id'],'params':{'unitId':_0xcc5a23,'subUnitId':_0x16960e,'type':m[_0x40e787(0x289)]['UPDATE'],'op':_0x356de7,'objects':_0x416cb1}}],'undos':[{'id':m[_0x40e787(0x38c)]['id'],'params':{'unitId':_0xcc5a23,'subUnitId':_0x16960e,'type':m[_0x40e787(0x289)][_0x40e787(0x3aa)],'op':_0x432d25,'objects':_0x416cb1}}]};}else{let _0x4fdf10=this[_0x40e787(0xab)][_0x40e787(0x23b)]([_0x3bd90a]),_0x40e485=this['_sheetDrawingService'][_0x40e787(0x4ae)]([_0x206261]),_0x43fdee=this[_0x40e787(0x5c0)][_0x40e787(0x4ba)](_0x3bd90a[_0x40e787(0x372)],_0x3bd90a[_0x40e787(0x4b8)],_0x3bd90a[_0x40e787(0x1f0)]);if(!_0x43fdee)return{'redos':[],'undos':[]};let _0x3c2bf2=_0x43fdee[_0x40e787(0x367)](),_0x1cd478=JSON[_0x40e787(0x598)](JSON[_0x40e787(0x2ed)](_0x43fdee[_0x40e787(0xc6)]()));return{'redos':[{'id':m[_0x40e787(0x38c)]['id'],'params':{'unitId':_0x39a3eb,'subUnitId':_0x17b789,'type':m[_0x40e787(0x289)]['REMOVE'],'op':_0x4fdf10[_0x40e787(0x417)],'objects':_0x4fdf10[_0x40e787(0x21f)]}},{'id':c[_0x40e787(0x1d9)]['id'],'params':{'unitId':_0x39a3eb,'subUnitId':_0x17b789,'shapeId':_0x3bd90a[_0x40e787(0x1f0)]}},{'id':m[_0x40e787(0x38c)]['id'],'params':{'unitId':_0xcc5a23,'subUnitId':_0x16960e,'type':m[_0x40e787(0x289)][_0x40e787(0x297)],'op':_0x40e485['redo'],'objects':_0x40e485[_0x40e787(0x21f)]}},{'id':c[_0x40e787(0x39d)]['id'],'params':{'unitId':_0xcc5a23,'subUnitId':_0x16960e,'shapeId':_0x3bd90a[_0x40e787(0x1f0)],'shapeType':_0x3c2bf2,'shapeData':_0x1cd478}}],'undos':[{'id':m[_0x40e787(0x38c)]['id'],'params':{'unitId':_0x39a3eb,'subUnitId':_0x17b789,'type':m[_0x40e787(0x289)][_0x40e787(0x297)],'op':_0x4fdf10[_0x40e787(0xf1)],'objects':_0x4fdf10['objects']}},{'id':c[_0x40e787(0x39d)]['id'],'params':{'unitId':_0x39a3eb,'subUnitId':_0x17b789,'shapeId':_0x3bd90a[_0x40e787(0x1f0)],'shapeType':_0x3c2bf2,'shapeData':_0x1cd478}},{'id':m[_0x40e787(0x38c)]['id'],'params':{'unitId':_0xcc5a23,'subUnitId':_0x16960e,'type':m[_0x40e787(0x289)][_0x40e787(0x523)],'op':_0x40e485[_0x40e787(0xf1)],'objects':_0x40e485['objects']}},{'id':c[_0x40e787(0x1d9)]['id'],'params':{'unitId':_0xcc5a23,'subUnitId':_0x16960e,'shapeId':_0x3bd90a['drawingId']}}]};}}['_generateCopyPasteMutations'](_0x5d4c0c){const _0x412104=_0x4c1bdf;let {toUnitId:_0x14e514,toSubUnitId:_0xdf7bb4,drawing:_0x425022,newTransforms:_0x4c4f55,newDrawingId:_0x4824f7,idMap:_0x26725c}=_0x5d4c0c,_0x41086a={..._0x425022,'unitId':_0x14e514,'subUnitId':_0xdf7bb4,'drawingId':_0x4824f7,'transform':_0x4c4f55[_0x412104(0x4b1)],'sheetTransform':_0x4c4f55['sheetTransform']},{redo:_0x280f59,undo:_0x218ce5,objects:_0x162e61}=this[_0x412104(0xab)][_0x412104(0x4ae)]([_0x41086a]),_0x86676e=this[_0x412104(0x5c0)][_0x412104(0x4ba)](_0x425022[_0x412104(0x372)],_0x425022[_0x412104(0x4b8)],_0x425022['drawingId']);if(!_0x86676e)return{'redos':[],'undos':[]};let _0x4b620d=_0x86676e[_0x412104(0x367)](),_0x2094ee=JSON[_0x412104(0x598)](JSON[_0x412104(0x2ed)](_0x86676e[_0x412104(0xc6)]()));if(_0x2094ee['relation']){var _0x1a21a1,_0x3864e3;let _0x112cc0=(_0x1a21a1=_0x2094ee['relation'][_0x412104(0x2ca)])==null?void 0x0:_0x1a21a1[_0x412104(0x3fc)],_0x4eb09a=(_0x3864e3=_0x2094ee[_0x412104(0xb9)]['to'])==null?void 0x0:_0x3864e3[_0x412104(0x3fc)],_0x219cc8=_0x112cc0?_0x26725c[_0x412104(0x485)](_0x112cc0):!0x0,_0x3c0974=_0x4eb09a?_0x26725c[_0x412104(0x485)](_0x4eb09a):!0x0;_0x219cc8&&_0x112cc0&&_0x2094ee[_0x412104(0xb9)][_0x412104(0x2ca)]?_0x2094ee[_0x412104(0xb9)][_0x412104(0x2ca)]={..._0x2094ee['relation']['from'],'shapeId':_0x26725c[_0x412104(0x100)](_0x112cc0)}:_0x2094ee['relation']['from']=void 0x0,_0x3c0974&&_0x4eb09a&&_0x2094ee[_0x412104(0xb9)]['to']?_0x2094ee[_0x412104(0xb9)]['to']={..._0x2094ee[_0x412104(0xb9)]['to'],'shapeId':_0x26725c[_0x412104(0x100)](_0x4eb09a)}:_0x2094ee[_0x412104(0xb9)]['to']=void 0x0;}return{'redos':[{'id':m[_0x412104(0x38c)]['id'],'params':{'unitId':_0x14e514,'subUnitId':_0xdf7bb4,'type':m[_0x412104(0x289)][_0x412104(0x297)],'op':_0x280f59,'objects':_0x162e61}},{'id':c[_0x412104(0x39d)]['id'],'params':{'unitId':_0x14e514,'subUnitId':_0xdf7bb4,'shapeId':_0x4824f7,'shapeType':_0x4b620d,'shapeData':_0x2094ee}}],'undos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x14e514,'subUnitId':_0xdf7bb4,'type':m[_0x412104(0x289)][_0x412104(0x523)],'op':_0x218ce5,'objects':_0x162e61}},{'id':c[_0x412104(0x1d9)]['id'],'params':{'unitId':_0x14e514,'subUnitId':_0xdf7bb4,'shapeId':_0x4824f7}}]};}[_0x4c1bdf(0x122)](_0x376f0b,_0x758092,_0x1f6851,_0x1c448a){const _0x4ce459=_0x4c1bdf;var _0x378af3;let {range:_0x41b497,skeleton:_0x50d5d4}=_0x758092,{range:_0x5330de,skeleton:_0x38370a}=_0x1f6851,{transform:_0x2c0bfd,sheetTransform:_0x4549b1}=_0x376f0b,_0x593f77={..._0x2c0bfd};if(_0x41b497){let _0x44fff2=(0x0,p[_0x4ce459(0x359)])(_0x50d5d4,_0x41b497),_0x166efd=(0x0,p['attachRangeWithCoord'])(_0x38370a,_0x5330de);if(_0x44fff2&&_0x166efd){var _0x57c810,_0x2e55e2;let _0x225215=_0x166efd[_0x4ce459(0x509)]-_0x44fff2[_0x4ce459(0x509)],_0x50aaf7=_0x166efd[_0x4ce459(0x425)]-_0x44fff2[_0x4ce459(0x425)];_0x593f77[_0x4ce459(0xa7)]=((_0x57c810=_0x593f77[_0x4ce459(0xa7)])==null?0x0:_0x57c810)+_0x225215,_0x593f77[_0x4ce459(0x351)]=((_0x2e55e2=_0x593f77[_0x4ce459(0x351)])==null?0x0:_0x2e55e2)+_0x50aaf7;}}else{let _0x387f04=(0x0,p[_0x4ce459(0x359)])(_0x38370a,_0x5330de);if(_0x1c448a&&_0x387f04){var _0x1b8304,_0xbbb452;let _0x12349f=((_0x1b8304=_0x593f77['left'])==null?0x0:_0x1b8304)-_0x1c448a[_0x4ce459(0xa7)],_0x5e9635=((_0xbbb452=_0x593f77[_0x4ce459(0x351)])==null?0x0:_0xbbb452)-_0x1c448a[_0x4ce459(0x351)];_0x593f77['left']=_0x387f04[_0x4ce459(0x509)]+_0x12349f,_0x593f77[_0x4ce459(0x351)]=_0x387f04['startY']+_0x5e9635;}else _0x593f77[_0x4ce459(0xa7)]=_0x387f04==null?void 0x0:_0x387f04[_0x4ce459(0x509)],_0x593f77[_0x4ce459(0x351)]=_0x387f04==null?void 0x0:_0x387f04[_0x4ce459(0x425)];}return{'transform':_0x593f77,'sheetTransform':(_0x378af3=(0x0,m[_0x4ce459(0x328)])(_0x593f77,_0x38370a))==null?_0x4549b1:_0x378af3};}};Ne=U([H(0x0,(0x0,l['Inject'])(p[_0x4c1bdf(0x3a7)])),H(0x1,(0x0,l[_0x4c1bdf(0x130)])(_['ISheetClipboardService'])),H(0x2,(0x0,l[_0x4c1bdf(0x130)])(m['ISheetDrawingService'])),H(0x3,(0x0,l[_0x4c1bdf(0x130)])(c[_0x4c1bdf(0x114)])),H(0x4,(0x0,l[_0x4c1bdf(0x130)])(w[_0x4c1bdf(0x5b2)]))],Ne);var Pe=class extends d['Shape']{constructor(_0x1055c7,_0x564598){const _0x5a4f66=_0x4c1bdf;super(_0x1055c7,_0x564598),k(this,_0x5a4f66(0x4c5),null),k(this,_0x5a4f66(0x5f6),null),k(this,_0x5a4f66(0x26d),null),k(this,_0x5a4f66(0x418),null),k(this,_0x5a4f66(0xaf),!0x1),_0x564598&&this[_0x5a4f66(0x2eb)](_0x564598);}[_0x4c1bdf(0x5e2)](){const _0x5b7127=_0x4c1bdf;return{'unitId':this[_0x5b7127(0x26d)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}[_0x4c1bdf(0x2eb)](_0x2cd7f6){const _0x5a9f3e=_0x4c1bdf;_0x2cd7f6['shapeId']!==void 0x0&&(this[_0x5a9f3e(0x4c5)]=_0x2cd7f6['shapeId']),_0x2cd7f6[_0x5a9f3e(0x372)]!==void 0x0&&(this[_0x5a9f3e(0x26d)]=_0x2cd7f6[_0x5a9f3e(0x372)]),_0x2cd7f6[_0x5a9f3e(0x4b8)]!==void 0x0&&(this[_0x5a9f3e(0x418)]=_0x2cd7f6[_0x5a9f3e(0x4b8)]),_0x2cd7f6['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x2cd7f6['isStartConnectorPoint']),this[_0x5a9f3e(0x4f6)]({'width':_0x2cd7f6['width'],'height':_0x2cd7f6[_0x5a9f3e(0x5fa)]});}[_0x4c1bdf(0x563)](_0x5aed93){const _0x2f2da7=_0x4c1bdf;d[_0x2f2da7(0x400)]['drawWith'](_0x5aed93,{'radius':y[_0x2f2da7(0x52a)]['cxnPointRadius'],'fill':y['ShapeDefaultConfig'][_0x2f2da7(0x164)],'stroke':y[_0x2f2da7(0x52a)][_0x2f2da7(0x3e3)],'strokeWidth':y['ShapeDefaultConfig'][_0x2f2da7(0x32f)],'evented':!0x0});}};let Fe=class extends l[_0x4c1bdf(0x279)]{constructor(_0x582137,_0x5cabe6,_0xd84f06,_0xff1322,_0x5911a6,_0x179de1,_0x369d67,_0x328e52){const _0x49fafe=_0x4c1bdf;super(),this[_0x49fafe(0x249)]=_0x582137,this[_0x49fafe(0x5c6)]=_0x5cabe6,this['_renderManagerService']=_0xd84f06,this[_0x49fafe(0x47d)]=_0xff1322,this['_univerInstanceService']=_0x5911a6,this[_0x49fafe(0x56d)]=_0x179de1,this[_0x49fafe(0x295)]=_0x369d67,this[_0x49fafe(0x13c)]=_0x328e52,k(this,_0x49fafe(0x211),void 0x0),k(this,_0x49fafe(0x26d),void 0x0),k(this,'_subUnitId',void 0x0),k(this,_0x49fafe(0x1c4),[]),k(this,_0x49fafe(0x4e4),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),k(this,_0x49fafe(0x206),void 0x0),k(this,_0x49fafe(0xd9),!0x1),k(this,'_isDrawingShapePointDown',!0x1),k(this,_0x49fafe(0x483),!0x1),k(this,_0x49fafe(0x589),void 0x0),k(this,_0x49fafe(0x36c),void 0x0),k(this,'_currentConnectionTarget',null),this[_0x49fafe(0x255)]();}['_initialize'](){const _0x23c54c=_0x4c1bdf;this[_0x23c54c(0x4ec)](),this['_registerDrawingMoveHandler']();}['_getDrawingRect'](){const _0x58a5eb=_0x4c1bdf;if(!this[_0x58a5eb(0x26d)]||!this[_0x58a5eb(0x418)]||!this[_0x58a5eb(0x211)])return;let _0x1c89bf={'unitId':this['_unitId'],'subUnitId':this[_0x58a5eb(0x418)],'drawingId':this[_0x58a5eb(0x211)]},{transform:_0x44e922}=this[_0x58a5eb(0x47d)][_0x58a5eb(0x3ed)](_0x1c89bf);if(_0x44e922)return{'left':_0x44e922[_0x58a5eb(0xa7)]||0x0,'top':_0x44e922[_0x58a5eb(0x351)]||0x0,'width':_0x44e922['width']||0x0,'height':_0x44e922[_0x58a5eb(0x5fa)]||0x0,'flipX':_0x44e922[_0x58a5eb(0x316)]||!0x1,'flipY':_0x44e922[_0x58a5eb(0x24c)]||!0x1,'angle':_0x44e922['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x2cfb0b=_0x4c1bdf;if(this[_0x2cfb0b(0x26d)]===void 0x0||this[_0x2cfb0b(0x418)]===void 0x0||this[_0x2cfb0b(0x211)]===void 0x0)return;let _0x1049bf=this[_0x2cfb0b(0x231)][_0x2cfb0b(0x13d)](this[_0x2cfb0b(0x26d)]);if(!_0x1049bf||!_0x1049bf[_0x2cfb0b(0x471)](_[_0x2cfb0b(0x315)])['getCurrentSkeleton']())return;let {scene:_0x35baf6}=_0x1049bf,_0x59ea80=this[_0x2cfb0b(0x2e2)]();if(!_0x59ea80)return;let _0x5c2e26=this[_0x2cfb0b(0x56d)]['getShapeModel'](this[_0x2cfb0b(0x26d)],this[_0x2cfb0b(0x418)],this[_0x2cfb0b(0x211)]);if(!_0x5c2e26||!(0x0,y[_0x2cfb0b(0x3a9)])(_0x5c2e26['getShapeType']()))return;let _0x6baad3=_0x5c2e26['getConnectorLinePoints']();if(_0x6baad3[_0x2cfb0b(0x4b4)]<0x2)return;let _0x19a1d3=new y[(_0x2cfb0b(0x397))](_0x59ea80),_0x4b7534=_0x6baad3[0x0],_0x317e0e=_0x6baad3[_0x6baad3['length']-0x1],_0x38cd87=_0x19a1d3[_0x2cfb0b(0xd8)](_0x4b7534),_0x1b0fa2=_0x19a1d3[_0x2cfb0b(0xd8)](_0x317e0e);this[_0x2cfb0b(0x4b5)](_0x35baf6,{..._0x38cd87},!0x0),this[_0x2cfb0b(0x4b5)](_0x35baf6,{..._0x1b0fa2},!0x1);}[_0x4c1bdf(0x4b5)](_0x4abe5c,_0x44f2a2,_0x3741d2){const _0x12c9c7=_0x4c1bdf;if(this[_0x12c9c7(0x211)]===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;let _0x1c60bf='connector-handler-'+this[_0x12c9c7(0x26d)]+'-'+this[_0x12c9c7(0x418)]+'-'+this['_activeShapeId']+'-'+(_0x3741d2?'start':_0x12c9c7(0xc8)),_0x309c83=_0x4abe5c[_0x12c9c7(0x277)](_0x1c60bf);if(_0x309c83){_0x309c83['transformByState']({'left':_0x44f2a2['x']-y['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x44f2a2['y']-y[_0x12c9c7(0x52a)]['cxnPointRadius']});return;}let _0x29da1e=new Pe(_0x1c60bf,{'left':_0x44f2a2['x']-y[_0x12c9c7(0x52a)]['cxnPointRadius'],'top':_0x44f2a2['y']-y[_0x12c9c7(0x52a)][_0x12c9c7(0x5be)],'shapeId':this[_0x12c9c7(0x211)],'unitId':this[_0x12c9c7(0x26d)],'subUnitId':this[_0x12c9c7(0x418)],'isStartConnectorPoint':_0x3741d2,'width':y[_0x12c9c7(0x52a)]['cxnPointRadius']*0x2,'height':y['ShapeDefaultConfig'][_0x12c9c7(0x5be)]*0x2,'zIndex':d[_0x12c9c7(0x16b)]+0x1,'evented':!0x0});this['_connectorObjects'][_0x12c9c7(0x4ad)](_0x29da1e),this[_0x12c9c7(0xfd)](_0x29da1e,_0x4abe5c,_0x3741d2),_0x4abe5c['addObject'](_0x29da1e,d['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x4c1bdf(0x50b)](_0x1bb481,_0x417186){const _0x45cc4d=_0x4c1bdf;var _0x2946db;let _0x184aed={'x':0x0,'y':0x0};if(!_0x1bb481||!_0x417186)return _0x184aed;let _0x3abd99=this[_0x45cc4d(0x231)][_0x45cc4d(0x13d)](_0x1bb481);if(!_0x3abd99||!_0x3abd99[_0x45cc4d(0x471)](_[_0x45cc4d(0x315)])[_0x45cc4d(0x569)](_0x417186))return _0x184aed;let _0x5657c4=_0x3abd99[_0x45cc4d(0x471)](_[_0x45cc4d(0x2bd)]),_0x26855a=_0x5657c4==null?void 0x0:_0x5657c4[_0x45cc4d(0x605)]();if(!_0x26855a)return _0x184aed;let _0x265c80=(_0x2946db=this['_univerInstanceService'][_0x45cc4d(0x151)](_0x1bb481))==null?void 0x0:_0x2946db[_0x45cc4d(0x376)](_0x417186);if(!_0x265c80)return _0x184aed;let _0x1896aa=(0x0,_[_0x45cc4d(0x464)])(_0x26855a[_0x45cc4d(0x3fd)],_0x26855a[_0x45cc4d(0x1a0)],_0x3abd99[_0x45cc4d(0x22c)],_0x265c80);return _0x1896aa?{'x':_0x1896aa['viewportScrollX'],'y':_0x1896aa['viewportScrollY']}:_0x184aed;}[_0x4c1bdf(0x59f)](_0x3309d5,_0x1bcb35){const _0x5e04a7=_0x4c1bdf;var _0x2c6813,_0x121f54;let _0x31efb9=(_0x2c6813=this['_univerInstanceService'][_0x5e04a7(0x151)](_0x3309d5))==null?void 0x0:_0x2c6813[_0x5e04a7(0x376)](_0x1bcb35);return(_0x121f54=_0x31efb9==null?void 0x0:_0x31efb9['getZoomRatio']())==null?0x1:_0x121f54;}[_0x4c1bdf(0x16d)](_0x2b33db,_0x201a11,_0x2c0433,_0x19deec,_0x877ddf){const _0x5e5572=_0x4c1bdf;this[_0x5e5572(0x589)]['unsubscribe'](),this['_cxtHandlerPointerUp'][_0x5e5572(0x559)](),this[_0x5e5572(0x295)][_0x5e5572(0x600)]();let _0x7f87f9=this['_currentConnectionTarget'];this[_0x5e5572(0x13c)]['endConnectionDetection']();let _0x370d20=this[_0x5e5572(0x50b)](this[_0x5e5572(0x26d)],this[_0x5e5572(0x418)]),_0x1bdc5f=this[_0x5e5572(0x59f)](this[_0x5e5572(0x26d)],this['_subUnitId']),_0x5435cf={'x':_0x2c0433[_0x5e5572(0x441)]/_0x1bdc5f+_0x370d20['x'],'y':_0x2c0433[_0x5e5572(0xe5)]/_0x1bdc5f+_0x370d20['y']},_0x1c44b7=_0x7f87f9?_0x7f87f9[_0x5e5572(0x3a5)]:_0x5435cf,_0x3140a2=_0x19deec?this[_0x5e5572(0x206)][_0x5e5572(0x2e3)]():this[_0x5e5572(0x206)][_0x5e5572(0x366)](),_0x145ec2=this['_activeShapeModel']['getShapeType']();_0x3140a2?this[_0x5e5572(0x3de)](_0x3140a2,_0x1c44b7,_0x19deec,_0x7f87f9,_0x877ddf):this['_handleFreeEndpointPointerUp'](_0x201a11,_0x1c44b7,_0x19deec,_0x7f87f9,_0x877ddf,_0x145ec2),this[_0x5e5572(0xd9)]=!0x1,this['_hasReset']=!0x1,this['_currentConnectionTarget']=null,_0x2b33db[_0x5e5572(0xa8)]();}[_0x4c1bdf(0x4dc)](_0x88e917,_0x4e1cf5,_0x530950,_0xb1538a,_0x3fea31,_0x4c41ef){const _0x581eb4=_0x4c1bdf;let _0x551beb=_0x4c41ef===y[_0x581eb4(0x34e)][_0x581eb4(0xc1)]||_0x4c41ef===y[_0x581eb4(0x34e)]['StraightConnector1'],_0x1a1ead=_0x530950?_0x4e1cf5:_0x88e917,_0x8e5274=_0x530950?_0x88e917:_0x4e1cf5,_0xee5340=this[_0x581eb4(0x206)][_0x581eb4(0x25d)](),_0x18b700=(0x0,y[_0x581eb4(0x3f6)])(this[_0x581eb4(0x206)][_0x581eb4(0x367)]()),_0x4bef3d=y['ConnectorCoordinateTransform'][_0x581eb4(0x15b)](_0xee5340,_0x18b700),_0x486348=_0x551beb?y[_0x581eb4(0x397)][_0x581eb4(0x2b2)](_0x1a1ead,_0x8e5274):y['ConnectorCoordinateTransform'][_0x581eb4(0x538)](_0x88e917,_0x4e1cf5,_0x530950,_0x4bef3d);_0xb1538a?this[_0x581eb4(0x2ac)](_0x486348,_0xb1538a,_0x530950,_0x3fea31):this[_0x581eb4(0x5fd)](_0x486348,_0x3fea31);}['_handleConnectedEndpointPointerUp'](_0x553479,_0x9edf50,_0x35d556,_0x3e4bb7,_0x5b6776){const _0x5956ae=_0x4c1bdf;let _0x2dda07=this['_getConnectPointInfo'](_0x553479);if(!_0x2dda07)return;let _0x26db49=_0x3e4bb7?_0x3e4bb7[_0x5956ae(0x22d)]:this[_0x5956ae(0x2f0)](_0x2dda07[_0x5956ae(0x2d3)],_0x9edf50),_0x46ac9a;if(_0x3e4bb7){let _0x310802=this['_drawingManagerService'][_0x5956ae(0x3ed)]({'unitId':_0x3e4bb7[_0x5956ae(0x372)],'subUnitId':_0x3e4bb7[_0x5956ae(0x4b8)],'drawingId':_0x3e4bb7[_0x5956ae(0x3fc)]});if(_0x310802!=null&&_0x310802[_0x5956ae(0x4b1)]){let {left:_0xfecf32=0x0,top:_0x3a6e3a=0x0,width:_0x3f0160=0x0,height:_0x554bbf=0x0,angle:_0x25ba5a}=_0x310802[_0x5956ae(0x4b1)];_0x46ac9a=(0x0,y['getBasicShapeRotateBound'])({'left':_0xfecf32,'top':_0x3a6e3a,'width':_0x3f0160,'height':_0x554bbf},_0x25ba5a||0x0);}else _0x46ac9a={'left':_0x9edf50['x'],'top':_0x9edf50['y'],'width':0x0,'height':0x0};}else _0x46ac9a={'left':_0x9edf50['x'],'top':_0x9edf50['y'],'width':0x0,'height':0x0};let _0x2c22dd={'point':_0x9edf50,'angle':_0x26db49,'bounds':_0x46ac9a},_0x94928=_0x35d556?_0x2c22dd:_0x2dda07,_0x4874d3=_0x35d556?_0x2dda07:_0x2c22dd,_0x4344cc=this['_activeShapeModel'][_0x5956ae(0x367)](),_0xa8e283=(0x0,y[_0x5956ae(0x3b8)])(_0x94928,_0x4874d3,_0x4344cc);this['_activeShapeModel'][_0x5956ae(0x497)]();let _0x1d4f87=(0x0,y['computeConnectorRouteLayout'])(_0xa8e283,_0x4344cc);_0x3e4bb7?this[_0x5956ae(0x4c2)](_0x1d4f87,_0x3e4bb7,_0x553479,_0x35d556,_0x5b6776):this[_0x5956ae(0x11f)](_0x1d4f87,_0x553479,_0x35d556,_0x5b6776);}[_0x4c1bdf(0x2ac)](_0x1841af,_0x7af328,_0x381191,_0x5359d2){const _0x14c483=_0x4c1bdf;let _0x5b1e48=this[_0x14c483(0x206)][_0x14c483(0xc6)]()['relation'],_0x5e2a0f={..._0x5b1e48},_0x5b91ef={'shapeId':_0x7af328[_0x14c483(0x3fc)],'cxnIndex':_0x7af328['cxnIndex']};_0x381191?_0x5e2a0f[_0x14c483(0x2ca)]=_0x5b91ef:_0x5e2a0f['to']=_0x5b91ef;let _0xca84f2=this[_0x14c483(0x206)][_0x14c483(0x367)](),_0x59f83f=(0x0,y[_0x14c483(0x31f)])(_0x1841af[_0x14c483(0x12b)],_0xca84f2),_0x41441b={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x14c483(0x211)],'width':_0x1841af[_0x14c483(0xfa)][_0x14c483(0x344)],'height':_0x1841af[_0x14c483(0xfa)][_0x14c483(0x5fa)],'left':_0x1841af[_0x14c483(0xfa)]['left'],'top':_0x1841af[_0x14c483(0xfa)][_0x14c483(0x351)],'flipX':_0x1841af[_0x14c483(0xfa)][_0x14c483(0x316)]||!0x1,'flipY':_0x1841af[_0x14c483(0xfa)]['flipY']||!0x1,'newAdjustValues':_0x59f83f[_0x14c483(0x5e1)],'oldAdjustValues':_0x5359d2,'oldRelation':_0x5b1e48,'newRelation':_0x5e2a0f,'newLineType':_0x59f83f[_0x14c483(0x5ea)],'oldLineType':_0xca84f2};this['_commandService']['executeCommand'](c[_0x14c483(0x3dc)]['id'],_0x41441b);}[_0x4c1bdf(0x5fd)](_0x436402,_0x149576){const _0x37063c=_0x4c1bdf;let _0x37205c=this[_0x37063c(0x206)][_0x37063c(0x367)](),_0x197b6b=(0x0,y['computeConnectorRouteLayout'])(_0x436402['worldPoints'],_0x37205c),_0x5004bb={'unitId':this[_0x37063c(0x26d)],'subUnitId':this[_0x37063c(0x418)],'shapeId':this[_0x37063c(0x211)],'width':_0x436402[_0x37063c(0xfa)][_0x37063c(0x344)],'height':_0x436402[_0x37063c(0xfa)][_0x37063c(0x5fa)],'left':_0x436402['worldRect'][_0x37063c(0xa7)],'top':_0x436402[_0x37063c(0xfa)][_0x37063c(0x351)],'flipX':_0x436402['worldRect'][_0x37063c(0x316)]||!0x1,'flipY':_0x436402[_0x37063c(0xfa)][_0x37063c(0x24c)]||!0x1,'angle':_0x436402['worldRect'][_0x37063c(0x22d)]||0x0,'newAdjustValues':_0x197b6b[_0x37063c(0x5e1)],'oldAdjustValues':_0x149576,'newLineType':_0x197b6b[_0x37063c(0x5ea)],'oldLineType':_0x37205c};this[_0x37063c(0x5c6)][_0x37063c(0x453)](c[_0x37063c(0x56f)]['id'],_0x5004bb);}[_0x4c1bdf(0x4c2)](_0xb80294,_0x44f809,_0x7b4c9f,_0x3b1125,_0x15cb79){const _0x50cb9f=_0x4c1bdf;let _0x30d3a0=this['_activeShapeModel'][_0x50cb9f(0xc6)]()[_0x50cb9f(0xb9)],_0x1d371b={..._0x30d3a0},_0x3bceb3={'shapeId':_0x44f809[_0x50cb9f(0x3fc)],'cxnIndex':_0x44f809[_0x50cb9f(0x1fa)]};_0x3b1125?(_0x1d371b[_0x50cb9f(0x2ca)]=_0x3bceb3,_0x1d371b['to']=_0x7b4c9f):(_0x1d371b[_0x50cb9f(0x2ca)]=_0x7b4c9f,_0x1d371b['to']=_0x3bceb3);let _0x53c85c={'unitId':this[_0x50cb9f(0x26d)],'subUnitId':this[_0x50cb9f(0x418)],'connectorShapeId':this[_0x50cb9f(0x211)],'width':_0xb80294[_0x50cb9f(0xfa)][_0x50cb9f(0x344)],'height':_0xb80294[_0x50cb9f(0xfa)][_0x50cb9f(0x5fa)],'left':_0xb80294[_0x50cb9f(0xfa)][_0x50cb9f(0xa7)],'top':_0xb80294['worldRect']['top'],'flipX':_0xb80294['worldRect'][_0x50cb9f(0x316)]||!0x1,'flipY':_0xb80294['worldRect'][_0x50cb9f(0x24c)]||!0x1,'oldAdjustValues':_0x15cb79,'newAdjustValues':_0xb80294['adjustValues'],'newLineType':_0xb80294[_0x50cb9f(0x5ea)],'rotation':_0xb80294[_0x50cb9f(0x428)],'oldRelation':_0x30d3a0,'newRelation':_0x1d371b};this['_commandService'][_0x50cb9f(0x453)](c[_0x50cb9f(0x3dc)]['id'],_0x53c85c);}[_0x4c1bdf(0x11f)](_0x1f9f45,_0x3c1140,_0x7dd689,_0x20d550){const _0x1dcef9=_0x4c1bdf;let _0x390a29=this[_0x1dcef9(0x206)][_0x1dcef9(0xc6)]()[_0x1dcef9(0xb9)],_0x2f67b0={};_0x7dd689?(_0x2f67b0['to']=_0x3c1140,_0x2f67b0['from']=void 0x0):(_0x2f67b0['from']=_0x3c1140,_0x2f67b0['to']=void 0x0);let _0x435223={'unitId':this['_unitId'],'subUnitId':this[_0x1dcef9(0x418)],'connectorShapeId':this[_0x1dcef9(0x211)],'width':_0x1f9f45[_0x1dcef9(0xfa)][_0x1dcef9(0x344)],'height':_0x1f9f45['worldRect'][_0x1dcef9(0x5fa)],'left':_0x1f9f45[_0x1dcef9(0xfa)]['left'],'top':_0x1f9f45[_0x1dcef9(0xfa)][_0x1dcef9(0x351)],'flipX':_0x1f9f45[_0x1dcef9(0xfa)][_0x1dcef9(0x316)]||!0x1,'flipY':_0x1f9f45[_0x1dcef9(0xfa)][_0x1dcef9(0x24c)]||!0x1,'oldAdjustValues':_0x20d550,'newAdjustValues':_0x1f9f45[_0x1dcef9(0x5e1)],'newLineType':_0x1f9f45[_0x1dcef9(0x5ea)],'rotation':_0x1f9f45[_0x1dcef9(0x428)],'oldRelation':_0x390a29,'newRelation':_0x2f67b0};this[_0x1dcef9(0x5c6)][_0x1dcef9(0x453)](c[_0x1dcef9(0x3dc)]['id'],_0x435223);}['_attachConnectorObjectEvent'](_0x45cfc7,_0x4229b8,_0x4e01fc){const _0x1bba14=_0x4c1bdf;this[_0x1bba14(0x35c)]((0x0,l['toDisposable'])(_0x45cfc7['onPointerDown$']['subscribeEvent']((_0x322a55,_0x5c92de)=>{const _0x185fa7=_0x1bba14;let _0x254b7d=_0x45cfc7[_0x185fa7(0x5e2)]();if(this['_activeShapeModel']=this[_0x185fa7(0x56d)]['getShapeModel'](_0x254b7d[_0x185fa7(0x372)],_0x254b7d[_0x185fa7(0x4b8)],_0x254b7d[_0x185fa7(0x1f0)]),!this[_0x185fa7(0x206)])return;let _0x2a8d2f={};this[_0x185fa7(0x206)][_0x185fa7(0x14e)]()[_0x185fa7(0x241)](_0x1cd017=>{let _0x50297c=this['_activeShapeModel']['getAdjustValueByName'](_0x1cd017);_0x50297c!==void 0x0&&(_0x2a8d2f[_0x1cd017]=_0x50297c);});let _0xa5534=this[_0x185fa7(0x2e2)]();if(!_0xa5534)return;this['_baseDrawingRect']={..._0xa5534};let _0x447a94=new y['ConnectorCoordinateTransform'](this['_baseDrawingRect']),_0x5af044=(0x0,u[_0x185fa7(0x1e5)])({'unitId':this[_0x185fa7(0x26d)],'subUnitId':this[_0x185fa7(0x418)],'drawingId':this[_0x185fa7(0x211)]}),_0x149e84=_0x4229b8[_0x185fa7(0x277)](_0x5af044);this[_0x185fa7(0xd9)]=!0x0,_0x4229b8[_0x185fa7(0x181)](),this[_0x185fa7(0x13c)]['startConnectionDetection'](_0x4229b8,this[_0x185fa7(0x26d)],this[_0x185fa7(0x418)],this[_0x185fa7(0x211)]),this[_0x185fa7(0x582)]=null;let _0x469265=this[_0x185fa7(0x206)][_0x185fa7(0x25d)](),_0x2854c1=_0x469265[0x0],_0x54ccb4=_0x469265[_0x469265['length']-0x1],_0x1b6613=_0x4e01fc?_0x447a94[_0x185fa7(0xd8)](_0x54ccb4):_0x447a94[_0x185fa7(0xd8)](_0x2854c1);this[_0x185fa7(0x589)]=_0x4229b8['onPointerMove$']['subscribeEvent']((_0x8139e5,_0xae8225)=>{const _0x559d86=_0x185fa7;if(!this[_0x559d86(0xd9)]||!this[_0x559d86(0x206)])return;this[_0x559d86(0x483)]||(this[_0x559d86(0x295)]['clearAdjustControls'](),this[_0x559d86(0x206)][_0x559d86(0x267)](),this[_0x559d86(0x483)]=!0x0);let _0x5384d9=this[_0x559d86(0x50b)](this[_0x559d86(0x26d)],this[_0x559d86(0x418)]),_0x3d8e6e=this[_0x559d86(0x59f)](this[_0x559d86(0x26d)],this[_0x559d86(0x418)]),_0x5031cc={'x':_0x8139e5['offsetX']/_0x3d8e6e+_0x5384d9['x'],'y':_0x8139e5['offsetY']/_0x3d8e6e+_0x5384d9['y']},_0x489e59=this[_0x559d86(0x13c)][_0x559d86(0x1e6)](_0x5031cc);if(_0x489e59){let {shapeId:_0x4ab3bd,unitId:_0xf5763f,subUnitId:_0x3b119b}=_0x489e59;if(_0x4ab3bd&&_0xf5763f&&_0x3b119b){let _0x3b5a29=(0x0,u[_0x559d86(0x1e5)])({'unitId':_0xf5763f,'subUnitId':_0x3b119b,'drawingId':_0x4ab3bd});_0x489e59[_0x559d86(0x22d)]=(_0x4229b8['getObjectIncludeInGroup'](_0x3b5a29)[_0x559d86(0x22d)]||0x0)+_0x489e59[_0x559d86(0x22d)];}}this[_0x559d86(0x582)]=_0x489e59;let _0x313dbf=_0x4e01fc?this[_0x559d86(0x206)]['getEndConnectInfo']():this[_0x559d86(0x206)][_0x559d86(0x366)]();if(_0x313dbf){this[_0x559d86(0x38f)](_0x313dbf,_0x5031cc,_0x4e01fc,_0x149e84,_0x45cfc7);return;}this['_handleFreeEndpointMove'](_0x5031cc,_0x1b6613,_0x4e01fc,_0x149e84,_0x45cfc7);}),this[_0x185fa7(0x36c)]=_0x4229b8[_0x185fa7(0x362)][_0x185fa7(0x593)]((_0x29ad9d,_0x104218)=>{const _0x3a33e6=_0x185fa7;this[_0x3a33e6(0x16d)](_0x4229b8,_0x1b6613,_0x29ad9d,_0x4e01fc,_0x2a8d2f);}),_0x5c92de[_0x185fa7(0xf4)]();})));}[_0x4c1bdf(0x1d0)](_0xb7585b,_0x37f2e1,_0x539d76){const _0x4ff54e=_0x4c1bdf;let _0x4d3e97=this[_0x4ff54e(0x56d)][_0x4ff54e(0x18d)](_0xb7585b,_0x37f2e1,_0x539d76);if(!_0x4d3e97||_0x4d3e97[_0x4ff54e(0x4b4)]===0x0)return;let _0x1b8968=this[_0x4ff54e(0x231)][_0x4ff54e(0x13d)](_0xb7585b);if(!_0x1b8968)return;let {scene:_0x4d9d86}=_0x1b8968;for(let _0x2ad388 of _0x4d3e97){let _0x2f3a05=_0x2ad388[_0x4ff54e(0x562)],_0x15d477=this[_0x4ff54e(0x56d)][_0x4ff54e(0x4ba)](_0xb7585b,_0x37f2e1,_0x2f3a05);if(!_0x15d477)continue;let _0xa5ac95=_0x15d477['getStartConnectInfo'](),_0x3cc716=_0x15d477[_0x4ff54e(0x2e3)](),_0x32dfee=(_0xa5ac95==null?void 0x0:_0xa5ac95['shapeId'])===_0x539d76,_0x781b6a=(0x0,u[_0x4ff54e(0x1e5)])({'unitId':_0xb7585b,'subUnitId':_0x37f2e1,'drawingId':_0x2f3a05}),_0x436855=_0x4d9d86[_0x4ff54e(0x277)](_0x781b6a);if(!_0x436855)continue;let _0x5cc168=this[_0x4ff54e(0x47d)][_0x4ff54e(0x3ed)]({'unitId':_0xb7585b,'subUnitId':_0x37f2e1,'drawingId':_0x2f3a05});_0x5cc168!=null&&_0x5cc168[_0x4ff54e(0x4b1)]&&(_0xa5ac95&&_0x3cc716?this[_0x4ff54e(0x2c8)](_0xb7585b,_0x37f2e1,_0x2f3a05,_0x15d477,_0xa5ac95,_0x3cc716,_0x436855):this[_0x4ff54e(0x5ab)](_0xb7585b,_0x37f2e1,_0x2f3a05,_0x15d477,_0x32dfee?_0xa5ac95:_0x3cc716,_0x32dfee,_0x5cc168,_0x436855));}}[_0x4c1bdf(0x2c8)](_0x2f7465,_0x29f462,_0x33bb65,_0x10a1ba,_0x4f50a5,_0x11eed7,_0x348fc3){const _0x513640=_0x4c1bdf;let _0x2ba1a5=this[_0x513640(0x26d)],_0x4daedd=this[_0x513640(0x418)];this[_0x513640(0x26d)]=_0x2f7465,this[_0x513640(0x418)]=_0x29f462;let _0x43d8d9=this[_0x513640(0x27c)](_0x4f50a5),_0x513eeb=this[_0x513640(0x27c)](_0x11eed7);if(this[_0x513640(0x26d)]=_0x2ba1a5,this[_0x513640(0x418)]=_0x4daedd,!_0x43d8d9||!_0x513eeb)return;let _0x1d316f=_0x10a1ba[_0x513640(0x367)](),_0x3855c8=(0x0,y['routeConnectorLineShape'])(_0x43d8d9,_0x513eeb,_0x1d316f);_0x3855c8&&_0x10a1ba[_0x513640(0x3ba)](_0x3855c8);let _0x31ad0f=(0x0,y[_0x513640(0x31f)])(_0x3855c8,_0x1d316f);_0x31ad0f[_0x513640(0x5ea)]!==_0x1d316f&&_0x10a1ba[_0x513640(0x180)](_0x31ad0f[_0x513640(0x5ea)]),_0x10a1ba['clearAdjustValue']();for(let [_0x279be0,_0x5de38f]of Object[_0x513640(0x55a)](_0x31ad0f['adjustValues']))_0x10a1ba['setAdjustValueByName'](_0x279be0,_0x5de38f);_0x10a1ba[_0x513640(0x3ee)]({'width':_0x31ad0f[_0x513640(0xfa)][_0x513640(0x344)],'height':_0x31ad0f[_0x513640(0xfa)]['height']}),_0x348fc3['transformByState']({'flipX':_0x31ad0f['worldRect'][_0x513640(0x316)],'flipY':_0x31ad0f['worldRect']['flipY'],'left':_0x31ad0f['worldRect']['left'],'top':_0x31ad0f[_0x513640(0xfa)][_0x513640(0x351)],'width':_0x31ad0f['worldRect']['width'],'height':_0x31ad0f[_0x513640(0xfa)][_0x513640(0x5fa)],'angle':_0x31ad0f['rotation']}),_0x10a1ba[_0x513640(0x497)]();}[_0x4c1bdf(0x5ab)](_0x12759e,_0x16d213,_0x545ecd,_0x400c1a,_0x3653da,_0x37bafe,_0x573cb0,_0x179437){const _0x1a7d60=_0x4c1bdf;let _0x1214fc=this[_0x1a7d60(0x26d)],_0x1b3c21=this[_0x1a7d60(0x418)];this[_0x1a7d60(0x26d)]=_0x12759e,this[_0x1a7d60(0x418)]=_0x16d213;let _0x22d9e2=this[_0x1a7d60(0x27c)](_0x3653da);if(this[_0x1a7d60(0x26d)]=_0x1214fc,this['_subUnitId']=_0x1b3c21,!_0x22d9e2)return;let {left:_0x4e5f53=0x0,top:_0x22e3db=0x0,width:_0x26958a=0x0,height:_0x5c0656=0x0,flipX:_0x2f5e07=!0x1,flipY:_0x4acd38=!0x1}=_0x573cb0[_0x1a7d60(0x4b1)],_0x157267=_0x400c1a[_0x1a7d60(0x25d)]();if(_0x157267[_0x1a7d60(0x4b4)]<0x2)return;let _0x517d67=new y[(_0x1a7d60(0x397))]({'left':_0x4e5f53,'top':_0x22e3db,'width':_0x26958a,'height':_0x5c0656,'flipX':_0x2f5e07,'flipY':_0x4acd38}),_0x32e14d=_0x37bafe?_0x157267[_0x157267[_0x1a7d60(0x4b4)]-0x1]:_0x157267[0x0],_0x183c1c=_0x517d67[_0x1a7d60(0xd8)](_0x32e14d),_0x41b3ee=y[_0x1a7d60(0x397)][_0x1a7d60(0x538)](_0x183c1c,_0x22d9e2[_0x1a7d60(0x2d3)],!_0x37bafe);_0x179437[_0x1a7d60(0x4f6)]({'flipX':_0x41b3ee[_0x1a7d60(0xfa)][_0x1a7d60(0x316)],'flipY':_0x41b3ee[_0x1a7d60(0xfa)]['flipY'],'left':_0x41b3ee[_0x1a7d60(0xfa)]['left'],'top':_0x41b3ee[_0x1a7d60(0xfa)][_0x1a7d60(0x351)],'width':_0x41b3ee['worldRect'][_0x1a7d60(0x344)],'height':_0x41b3ee[_0x1a7d60(0xfa)][_0x1a7d60(0x5fa)],'angle':_0x41b3ee[_0x1a7d60(0xfa)][_0x1a7d60(0x22d)]}),_0x179437[_0x1a7d60(0x4e9)](!0x0);}[_0x4c1bdf(0x292)](){const _0x233314=_0x4c1bdf;this[_0x233314(0x1c4)]['length']!==0x0&&(this[_0x233314(0x1c4)][_0x233314(0x241)](_0x5cadbe=>{const _0x170115=_0x233314;_0x5cadbe[_0x170115(0x212)]();}),this['_connectorObjects']=[]);}[_0x4c1bdf(0x5c9)](){const _0x2260bf=_0x4c1bdf;let _0x5d3c7d=this['_univerInstanceService'][_0x2260bf(0x247)](l[_0x2260bf(0x47a)][_0x2260bf(0x2f9)]);this[_0x2260bf(0x35c)](_0x5d3c7d[_0x2260bf(0x2f1)]((0x0,f[_0x2260bf(0x276)])(_0x42230b=>_0x42230b?_0x42230b[_0x2260bf(0x135)]['pipe']((0x0,f[_0x2260bf(0x276)])(_0x1b45e3=>{const _0x4e5653=_0x2260bf;if(!_0x1b45e3)return f[_0x4e5653(0x3e4)];let _0x202121=_0x42230b[_0x4e5653(0x1d6)](),_0x5150e8=this[_0x4e5653(0x231)][_0x4e5653(0x13d)](_0x202121),_0xc0d9fa=_0x5150e8==null?void 0x0:_0x5150e8[_0x4e5653(0x22c)];return _0xc0d9fa?(0x0,f['of'])(_0xc0d9fa):f[_0x4e5653(0x3e4)];})):f[_0x2260bf(0x3e4)]))[_0x2260bf(0x520)](_0x1fa787=>{const _0x2da036=_0x2260bf;let _0xd7024b=_0x1fa787[_0x2da036(0x1d3)]();this[_0x2da036(0x35c)](_0x1fa787[_0x2da036(0x3e8)][_0x2da036(0x593)](_0x3c4ab8=>{const _0x29b87c=_0x2da036;this[_0x29b87c(0x502)]&&this[_0x29b87c(0x211)]&&this[_0x29b87c(0x292)]();})),this[_0x2da036(0x35c)](_0xd7024b[_0x2da036(0x19a)][_0x2da036(0x520)](_0x5142c9=>{const _0x22b9cc=_0x2da036;let {objects:_0x4a3855}=_0x5142c9;this[_0x22b9cc(0x292)](),_0x4a3855!==null&&_0x4a3855['size']===0x1&&_0x4a3855['values']()[_0x22b9cc(0x304)]()[_0x22b9cc(0x449)]instanceof V&&(this[_0x22b9cc(0x502)]=!0x0);})),this[_0x2da036(0x35c)](_0xd7024b[_0x2da036(0x4e0)]['subscribe'](_0x2bd919=>{const _0x22d1c9=_0x2da036;this[_0x22d1c9(0x502)]&&this[_0x22d1c9(0x292)]();})),this[_0x2da036(0x35c)](_0x1fa787[_0x2da036(0x362)]['subscribeEvent'](()=>{const _0x138910=_0x2da036;this['_isDrawingShapePointDown']&&(this['_isDrawingShapePointDown']=!0x1,this[_0x138910(0x590)]());})),this[_0x2da036(0x35c)](_0xd7024b[_0x2da036(0x4a1)][_0x2da036(0x520)](()=>{const _0x21d1d5=_0x2da036;this[_0x21d1d5(0x26d)]&&this['_subUnitId']&&this[_0x21d1d5(0x211)]&&this[_0x21d1d5(0x47d)][_0x21d1d5(0x3ed)]({'unitId':this[_0x21d1d5(0x26d)],'subUnitId':this[_0x21d1d5(0x418)],'drawingId':this[_0x21d1d5(0x211)]})&&(this[_0x21d1d5(0x292)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x4c1bdf(0x4ec)](){const _0x2e80cb=_0x4c1bdf;this[_0x2e80cb(0x35c)](this[_0x2e80cb(0x47d)][_0x2e80cb(0x42b)]['subscribe'](_0x24c1fe=>{const _0x14a850=_0x2e80cb;if(_0x24c1fe[_0x14a850(0x4b4)]===0x1){let _0x2909e5=_0x24c1fe[0x0];if(_0x2909e5[_0x14a850(0x3c3)]===l[_0x14a850(0x237)][_0x14a850(0x118)]){let _0x2ca306=this[_0x14a850(0x56d)][_0x14a850(0x4ba)](_0x2909e5[_0x14a850(0x372)],_0x2909e5[_0x14a850(0x4b8)],_0x2909e5['drawingId']);if(_0x2ca306&&(0x0,y[_0x14a850(0x3a9)])(_0x2ca306[_0x14a850(0x367)]())){this[_0x14a850(0x211)]=_0x2909e5[_0x14a850(0x1f0)],this[_0x14a850(0x26d)]=_0x2909e5['unitId'],this['_subUnitId']=_0x2909e5[_0x14a850(0x4b8)],this[_0x14a850(0x292)](),this[_0x14a850(0x590)]();return;}}}this[_0x14a850(0x211)]=void 0x0,this['_unitId']=void 0x0,this[_0x14a850(0x418)]=void 0x0,this[_0x14a850(0x292)]();})),this['disposeWithMe'](this[_0x2e80cb(0x47d)]['update$'][_0x2e80cb(0x520)](_0x580327=>{const _0x6f278a=_0x2e80cb;if(_0x580327[_0x6f278a(0x4b4)]===0x1){var _0x396122;let _0x1be9eb=_0x580327[0x0],_0x4d44e4=(_0x396122=this[_0x6f278a(0x47d)][_0x6f278a(0x3ed)](_0x1be9eb))==null?void 0x0:_0x396122['drawingType'];_0x4d44e4===l['DrawingTypeEnum'][_0x6f278a(0x118)]&&_0x1be9eb[_0x6f278a(0x1f0)]===this[_0x6f278a(0x211)]?(this[_0x6f278a(0x292)](),this[_0x6f278a(0x590)]()):!this[_0x6f278a(0x211)]&&_0x4d44e4===l[_0x6f278a(0x237)]['DRAWING_SHAPE']&&this[_0x6f278a(0x1d0)](_0x1be9eb[_0x6f278a(0x372)],_0x1be9eb['subUnitId'],_0x1be9eb[_0x6f278a(0x1f0)]);}})),this['disposeWithMe'](this[_0x2e80cb(0x47d)][_0x2e80cb(0x1fe)][_0x2e80cb(0x520)](_0x531a63=>{const _0x37195d=_0x2e80cb;for(let _0x1f4ed2 of _0x531a63){let {drawingId:_0x5ee2dd}=_0x1f4ed2;if(this[_0x37195d(0x211)]===_0x5ee2dd){this[_0x37195d(0x16e)]();return;}}}));}[_0x4c1bdf(0x38f)](_0x267bf2,_0x1c8aed,_0x2296b7,_0x3ede91,_0x397da4){const _0x43060f=_0x4c1bdf;var _0x1ed8dc,_0x50f237;if(!this[_0x43060f(0x206)])return;let _0x21f14f=this[_0x43060f(0x27c)](_0x267bf2);if(!_0x21f14f)return;let _0x379297=this['_currentConnectionTarget']?this[_0x43060f(0x582)]['worldPoint']:_0x1c8aed,_0x18a393=this[_0x43060f(0x582)]?this[_0x43060f(0x582)][_0x43060f(0x22d)]:this[_0x43060f(0x2f0)](_0x21f14f[_0x43060f(0x2d3)],_0x379297),_0x162f5a;if(this[_0x43060f(0x582)]){let _0x4ddb70=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x43060f(0x582)][_0x43060f(0x372)],'subUnitId':this[_0x43060f(0x582)][_0x43060f(0x4b8)],'drawingId':this['_currentConnectionTarget'][_0x43060f(0x3fc)]});if(_0x4ddb70!=null&&_0x4ddb70['transform']){let {left:_0x4285c2=0x0,top:_0x4481d8=0x0,width:_0x333482=0x0,height:_0x3730f3=0x0,angle:_0x54cd49}=_0x4ddb70[_0x43060f(0x4b1)];_0x162f5a=(0x0,y[_0x43060f(0x533)])({'left':_0x4285c2,'top':_0x4481d8,'width':_0x333482,'height':_0x3730f3},_0x54cd49||0x0);}else _0x162f5a={'left':_0x379297['x'],'top':_0x379297['y'],'width':0x0,'height':0x0};}else _0x162f5a={'left':_0x379297['x'],'top':_0x379297['y'],'width':0x0,'height':0x0};let _0x4d9a52={'point':_0x379297,'angle':_0x18a393,'bounds':_0x162f5a},_0x65e482=_0x2296b7?_0x4d9a52:_0x21f14f,_0x2b5567=_0x2296b7?_0x21f14f:_0x4d9a52,_0x459f8a=this['_activeShapeModel']['getShapeType'](),_0x2c0154=(0x0,y[_0x43060f(0x3b8)])(_0x65e482,_0x2b5567,_0x459f8a);console['warn'](_0x65e482,_0x2b5567),_0x2c0154&&this[_0x43060f(0x206)][_0x43060f(0x3ba)](_0x2c0154);let _0x33bc52=(0x0,y[_0x43060f(0x31f)])(_0x2c0154,_0x459f8a);_0x33bc52[_0x43060f(0x5ea)]!==_0x459f8a&&this[_0x43060f(0x206)][_0x43060f(0x180)](_0x33bc52[_0x43060f(0x5ea)]);for(let [_0x44a6d9,_0xaf9d6]of Object['entries'](_0x33bc52[_0x43060f(0x5e1)]))this[_0x43060f(0x206)][_0x43060f(0x421)](_0x44a6d9,_0xaf9d6);this[_0x43060f(0x206)]['updateContext']({'width':_0x33bc52[_0x43060f(0xfa)][_0x43060f(0x344)],'height':_0x33bc52[_0x43060f(0xfa)][_0x43060f(0x5fa)]}),_0x3ede91[_0x43060f(0x4f6)]({'flipX':_0x33bc52[_0x43060f(0xfa)]['flipX'],'flipY':_0x33bc52[_0x43060f(0xfa)][_0x43060f(0x24c)],'left':_0x33bc52['worldRect'][_0x43060f(0xa7)],'top':_0x33bc52[_0x43060f(0xfa)][_0x43060f(0x351)],'width':_0x33bc52['worldRect']['width'],'height':_0x33bc52[_0x43060f(0xfa)]['height'],'angle':_0x33bc52['rotation']}),_0x3ede91['makeDirty'](!0x0);let _0x98e880=(_0x1ed8dc=(_0x50f237=this['_currentConnectionTarget'])==null?void 0x0:_0x50f237[_0x43060f(0x3a5)])==null?_0x1c8aed:_0x1ed8dc;_0x397da4[_0x43060f(0x4f6)]({'left':_0x98e880['x']-y[_0x43060f(0x52a)][_0x43060f(0x5be)],'top':_0x98e880['y']-y[_0x43060f(0x52a)][_0x43060f(0x5be)]});}[_0x4c1bdf(0x354)](_0x2df1af,_0x9a05b1,_0x2664ce,_0x1732e0,_0xf65a81){const _0x1e4fec=_0x4c1bdf;var _0x3c999c,_0x28380e,_0x107e62,_0x24f827;let _0x3c34fd=(_0x3c999c=(_0x28380e=this['_currentConnectionTarget'])==null?void 0x0:_0x28380e['worldPoint'])==null?_0x2df1af:_0x3c999c,_0x341e0d=y[_0x1e4fec(0x397)][_0x1e4fec(0x538)](_0x9a05b1,_0x3c34fd,_0x2664ce);_0x1732e0['transformByState']({'flipX':_0x341e0d['worldRect']['flipX'],'flipY':_0x341e0d[_0x1e4fec(0xfa)]['flipY'],'left':_0x341e0d['worldRect']['left'],'top':_0x341e0d[_0x1e4fec(0xfa)][_0x1e4fec(0x351)],'width':_0x341e0d[_0x1e4fec(0xfa)][_0x1e4fec(0x344)],'height':_0x341e0d['worldRect'][_0x1e4fec(0x5fa)],'angle':_0x341e0d[_0x1e4fec(0xfa)][_0x1e4fec(0x22d)]});let _0x1b672a=(_0x107e62=(_0x24f827=this['_currentConnectionTarget'])==null?void 0x0:_0x24f827[_0x1e4fec(0x3a5)])==null?_0x2df1af:_0x107e62;_0xf65a81[_0x1e4fec(0x4f6)]({'left':_0x1b672a['x']-y[_0x1e4fec(0x52a)][_0x1e4fec(0x5be)],'top':_0x1b672a['y']-y[_0x1e4fec(0x52a)][_0x1e4fec(0x5be)]});}['_getConnectPointInfo'](_0x4b6e7c){const _0x52ca02=_0x4c1bdf;if(!this[_0x52ca02(0x26d)]||!this[_0x52ca02(0x418)])return null;let {shapeId:_0x1c501c,cxnIndex:_0x4ebcfe}=_0x4b6e7c,_0x54977b=this[_0x52ca02(0x56d)][_0x52ca02(0x4ba)](this[_0x52ca02(0x26d)],this[_0x52ca02(0x418)],_0x1c501c);if(!_0x54977b)return null;let _0x2b2efc=this[_0x52ca02(0x47d)]['getDrawingByParam']({'unitId':this[_0x52ca02(0x26d)],'subUnitId':this['_subUnitId'],'drawingId':_0x1c501c});if(!(_0x2b2efc!=null&&_0x2b2efc[_0x52ca02(0x4b1)]))return null;let {left:_0x1079b3=0x0,top:_0x3d7e48=0x0,width:_0x2227a4=0x0,height:_0x4312d4=0x0,flipX:_0x4a08d2=!0x1,flipY:_0x2adef2=!0x1,angle:_0xb39df}=_0x2b2efc[_0x52ca02(0x4b1)];_0x54977b[_0x52ca02(0x3ee)]({'width':_0x2227a4,'height':_0x4312d4});let _0x56d5c0=_0x54977b['getConnectionSiteList']()[_0x52ca02(0x57e)](_0xa00b0e=>_0xa00b0e['index']===_0x4ebcfe);if(!_0x56d5c0)return null;let _0x5cce3b=_0x4a08d2?_0x2227a4-_0x56d5c0['x']:_0x56d5c0['x'],_0x1713c7=_0x2adef2?_0x4312d4-_0x56d5c0['y']:_0x56d5c0['y'];if(_0xb39df!==0x0&&_0xb39df!=null){let _0x3d528d=_0xb39df*Math['PI']/0xb4,_0x4f6dac=Math[_0x52ca02(0x3b7)](_0x3d528d),_0x18080c=Math[_0x52ca02(0x4b7)](_0x3d528d),_0x64585b=_0x2227a4/0x2,_0xb46223=_0x4312d4/0x2,_0x4a7284=_0x5cce3b-_0x64585b,_0x4e105d=_0x1713c7-_0xb46223;_0x5cce3b=_0x64585b+_0x4a7284*_0x4f6dac-_0x4e105d*_0x18080c,_0x1713c7=_0xb46223+_0x4a7284*_0x18080c+_0x4e105d*_0x4f6dac;}_0x5cce3b+=_0x1079b3,_0x1713c7+=_0x3d7e48;let _0x4ed8a9=_0x56d5c0[_0x52ca02(0x575)]/0xea60;_0x4a08d2&&(_0x4ed8a9=0xb4-_0x4ed8a9),_0x2adef2&&(_0x4ed8a9=-_0x4ed8a9),_0x4ed8a9+=_0xb39df||0x0,_0x4ed8a9=(_0x4ed8a9%0x168+0x168)%0x168;let _0x35d57d=(0x0,y[_0x52ca02(0x533)])({'left':_0x1079b3,'top':_0x3d7e48,'width':_0x2227a4,'height':_0x4312d4},_0xb39df||0x0);return{'point':{'x':_0x5cce3b,'y':_0x1713c7},'angle':_0x4ed8a9,'bounds':_0x35d57d};}[_0x4c1bdf(0x2f0)](_0x8155a1,_0x379d6f){const _0xf18536=_0x4c1bdf;let _0x4f097d=_0x379d6f['x']-_0x8155a1['x'],_0x459715=_0x379d6f['y']-_0x8155a1['y'];return Math[_0xf18536(0xd4)](_0x4f097d)>=Math[_0xf18536(0xd4)](_0x459715)?_0x4f097d>=0x0?0xb4:0x0:_0x459715>=0x0?0x10e:0x5a;}[_0x4c1bdf(0x16e)](){const _0x14ace2=_0x4c1bdf;this[_0x14ace2(0x211)]=void 0x0,this[_0x14ace2(0x26d)]=void 0x0,this[_0x14ace2(0x418)]=void 0x0,this[_0x14ace2(0x292)]();}['dispose'](){const _0x4e56fc=_0x4c1bdf;this[_0x4e56fc(0x292)](),super['dispose']();}};Fe=U([H(0x1,l[_0x4c1bdf(0x1dd)]),H(0x2,d['IRenderManagerService']),H(0x3,u[_0x4c1bdf(0x601)]),H(0x4,l[_0x4c1bdf(0x17a)]),H(0x5,(0x0,l['Inject'])(c[_0x4c1bdf(0x114)])),H(0x6,(0x0,l[_0x4c1bdf(0x130)])(Me)),H(0x7,(0x0,l[_0x4c1bdf(0x130)])(je))],Fe);const Ie=function(_0x207cf7){const _0x5492e2=_0x4c1bdf;let {containerWidth:_0x5d204b,containerHeight:_0x284be0,scaleX:_0x58c1cf,scaleY:_0x473498}=_0x207cf7,_0x214705=(0x0,v[_0x5492e2(0x360)])(A),_0x3f02ef=(0x0,v[_0x5492e2(0x360)])(h[_0x5492e2(0x29e)]),_0x2b57e0=(0x0,v['useDependency'])(d[_0x5492e2(0x560)]),_0x110d99=(0x0,v[_0x5492e2(0x360)])(l[_0x5492e2(0x17a)]),_0x35b44b=(0x0,v[_0x5492e2(0x360)])(u[_0x5492e2(0x601)]),_0x492427=(0x0,v[_0x5492e2(0x360)])(c[_0x5492e2(0x114)]),_0x18eb3d=(0x0,v[_0x5492e2(0x360)])(l['ICommandService']),_0x932552=(0x0,v[_0x5492e2(0x1d1)])(_0x214705[_0x5492e2(0x2b6)]),_0x5e467e=(0x0,v['useObservable'])(_0x214705[_0x5492e2(0x595)]),_0x23d4a4=(0x0,x['useRef'])(null),_0x1b5960=(0x0,x[_0x5492e2(0xac)])(null),_0x2fa9de=(0x0,x['useRef'])(null),[_0x4ea3ab,_0x454bc6]=(0x0,x[_0x5492e2(0x246)])({'editorHeight':_0x284be0,'marginTop':0x0,'useAbsolutePosition':!0x1}),_0x5b3f01=(0x0,x['useCallback'])(()=>_0x110d99[_0x5492e2(0x151)](z,l[_0x5492e2(0x47a)][_0x5492e2(0x4a0)]),[_0x110d99]),_0x180b7c=(0x0,x[_0x5492e2(0x34c)])(()=>{const _0x1dfb04=_0x5492e2;var _0x228589;if(!_0x932552)return null;let {unitId:_0x5b55af,subUnitId:_0x458114,shapeId:_0x3b93e9}=_0x932552,_0x943092=_0x492427[_0x1dfb04(0x4ba)](_0x5b55af,_0x458114,_0x3b93e9);if(!_0x943092)return null;let _0x4f3d79=_0x943092[_0x1dfb04(0x556)]();if(!_0x4f3d79||!(_0x1dfb04(0x2c0)in _0x4f3d79))return null;let _0xc118b9=_0x4f3d79[_0x1dfb04(0x2c0)];if(!(_0xc118b9!=null&&_0xc118b9[_0x1dfb04(0x1db)]))return null;let _0x2286fb={'unitId':_0x5b55af,'subUnitId':_0x458114,'drawingId':_0x3b93e9},_0x137219=_0x35b44b['getDrawingByParam'](_0x2286fb),_0x430a76={'angle':0x0,'flipX':!0x1,'flipY':!0x1};_0x137219&&_0x137219[_0x1dfb04(0x4b1)]&&(_0x430a76=_0x137219[_0x1dfb04(0x4b1)]);let _0x3efd55={'left':0x0,'top':0x0,'width':_0x5d204b/_0x58c1cf,'height':_0x284be0/_0x473498},_0x568916=_0x943092['getShapeTextRect'](_0x3efd55);return{'doc':_0xc118b9[_0x1dfb04(0x1db)],'verticalAlign':(_0x228589=_0xc118b9['va'])==null?l[_0x1dfb04(0x325)]['TOP']:_0x228589,'textRect':_0x568916,'transform':_0x430a76};},[_0x932552,_0x492427,_0x5d204b,_0x284be0,_0x58c1cf,_0x473498]),_0x17c4f8=(0x0,x[_0x5492e2(0x337)])(()=>{const _0x18398a=_0x5492e2;let _0x470a2a=_0x180b7c();if(_0x470a2a!=null&&_0x470a2a['doc']){let _0x18dbe1=l[_0x18398a(0x18b)]['deepClone'](_0x470a2a[_0x18398a(0x1db)]);return _0x18dbe1['documentStyle']||(_0x18dbe1[_0x18398a(0x43f)]={}),_0x18dbe1[_0x18398a(0x43f)][_0x18398a(0x4a6)]={'width':_0x470a2a[_0x18398a(0x39e)][_0x18398a(0x344)],'height':0x1/0x0},_0x18dbe1;}return{'id':z,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x5d204b/_0x58c1cf,'height':0x1/0x0}}};},[]),_0x168b7c=(0x0,h[_0x5492e2(0x2cc)])({'editorId':z,'initialValue':_0x17c4f8,'container':_0x1b5960,'autoFocus':!0x1,'isSingle':!0x1}),_0x44261e=(0x0,h[_0x5492e2(0x2cb)])(z);(0x0,h[_0x5492e2(0x129)])(_0x44261e,{'keyCodes':[{'keyCode':v[_0x5492e2(0x5cf)][_0x5492e2(0x266)]}],'handler':()=>{const _0x38f928=_0x5492e2;_0x18eb3d[_0x38f928(0x453)](h[_0x38f928(0x57a)]['id']);}},_0x168b7c),(0x0,h[_0x5492e2(0xff)])(_0x44261e,!0x1,_0x168b7c);let _0x17953e=(0x0,x[_0x5492e2(0x34c)])(()=>{const _0x30ef25=_0x5492e2;var _0xe145b7,_0x2120be;if(!_0x168b7c)return;let _0x25dce9=_0x2b57e0[_0x30ef25(0x13d)](z),_0x314dda=_0x25dce9==null?void 0x0:_0x25dce9['with'](T[_0x30ef25(0x479)]);if(!_0x314dda)return;let _0x4f048f=_0x314dda['getSkeleton'](),_0x335c16=_0x5b3f01(),_0x14ed2e=_0x180b7c(),_0x58abbe=(_0xe145b7=_0x14ed2e==null?void 0x0:_0x14ed2e[_0x30ef25(0x33f)])==null?l['VerticalAlign'][_0x30ef25(0x508)]:_0xe145b7,_0x405e64=(_0x2120be=_0x14ed2e==null?void 0x0:_0x14ed2e[_0x30ef25(0x39e)])==null?{'left':0x0,'top':0x0,'width':_0x5d204b/_0x58c1cf,'height':_0x284be0/_0x473498}:_0x2120be;_0x335c16&&_0x335c16[_0x30ef25(0x604)]({'pageSize':{'width':_0x405e64['width'],'height':0x1/0x0}}),_0x4f048f[_0x30ef25(0x169)]();let {actualHeight:_0x80a9bd}=_0x4f048f[_0x30ef25(0xcd)](),_0x1c3556=_0x405e64[_0x30ef25(0x5fa)],_0x146819=_0x1c3556,_0x202146=0x0;if(_0x80a9bd<=_0x1c3556)_0x58abbe===l[_0x30ef25(0x325)][_0x30ef25(0x2b5)]?_0x202146=(_0x1c3556-_0x80a9bd)/0x2:_0x58abbe===l[_0x30ef25(0x325)][_0x30ef25(0x283)]&&(_0x202146=_0x1c3556-_0x80a9bd),_0x146819=_0x1c3556,_0x454bc6({'editorHeight':_0x405e64[_0x30ef25(0x5fa)]*_0x473498,'marginTop':0x0,'useAbsolutePosition':!0x1});else{let _0x13df1f=0x0;_0x58abbe===l[_0x30ef25(0x325)][_0x30ef25(0x2b5)]?_0x13df1f=(_0x1c3556-_0x80a9bd)/0x2:_0x58abbe===l[_0x30ef25(0x325)][_0x30ef25(0x283)]&&(_0x13df1f=_0x1c3556-_0x80a9bd),_0x202146=0x0,_0x454bc6({'editorHeight':_0x80a9bd*_0x473498,'marginTop':_0x13df1f*_0x473498,'useAbsolutePosition':!0x0}),_0x146819=_0x80a9bd;}_0x335c16&&(_0x335c16[_0x30ef25(0x604)]({'pageSize':{'width':_0x405e64[_0x30ef25(0x344)],'height':_0x146819}}),_0x335c16['updateDocumentDataMargin']({'t':_0x202146}),_0x4f048f['calculate']()),_0x25dce9&&(_0x25dce9[_0x30ef25(0x22c)][_0x30ef25(0xf3)](_0x405e64['width'],_0x146819),_0x25dce9[_0x30ef25(0x4b9)]&&_0x25dce9[_0x30ef25(0x4b9)][_0x30ef25(0xf3)](_0x405e64[_0x30ef25(0x344)],_0x146819));},[_0x168b7c,_0x2b57e0,_0x180b7c,_0x5b3f01,_0x5d204b,_0x284be0,_0x58c1cf,_0x473498]);(0x0,x[_0x5492e2(0x287)])(()=>{const _0x5a38df=_0x5492e2;if(!_0x168b7c||!_0x932552)return;let {shapeId:_0x3177be,unitId:_0x171e8c,subUnitId:_0xa7d270}=_0x932552;if(_0x5e467e){var _0xd0277c;let _0x2bf4d0=_0x168b7c['getDocumentData'](),_0x1bfb75=_0x180b7c(),_0x22de63={'va':(_0xd0277c=_0x1bfb75==null?void 0x0:_0x1bfb75['verticalAlign'])==null?l[_0x5a38df(0x325)][_0x5a38df(0x508)]:_0xd0277c,'doc':_0x2bf4d0};_0x18eb3d[_0x5a38df(0x453)](M['id'],{'unitId':_0x171e8c,'subUnitId':_0xa7d270,'shapeId':_0x3177be,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x22de63}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x2fa9de[_0x5a38df(0x12e)]}}}});return;}let _0x2b30cd=_0x180b7c();if(_0x2b30cd!=null&&_0x2b30cd[_0x5a38df(0x1db)]){_0x2fa9de['current']={'va':_0x2b30cd['verticalAlign'],'doc':l[_0x5a38df(0x18b)]['deepClone'](_0x2b30cd['doc'])};let _0x25197b=l[_0x5a38df(0x18b)][_0x5a38df(0x31e)](_0x2b30cd['doc']);return _0x25197b['documentStyle']||(_0x25197b[_0x5a38df(0x43f)]={}),_0x25197b['documentStyle'][_0x5a38df(0x4a6)]={'width':_0x2b30cd[_0x5a38df(0x39e)]['width'],'height':0x1/0x0},_0x168b7c['setDocumentData'](_0x25197b,null),()=>{const _0x46133e=_0x5a38df;var _0x157240;let _0x58f89d=_0x168b7c[_0x46133e(0x5a6)](),_0x502b7d=_0x180b7c(),_0x3957c3={'va':(_0x157240=_0x502b7d==null?void 0x0:_0x502b7d[_0x46133e(0x33f)])==null?l['VerticalAlign'][_0x46133e(0x508)]:_0x157240,'doc':_0x58f89d};_0x18eb3d[_0x46133e(0x453)](M['id'],{'unitId':_0x171e8c,'subUnitId':_0xa7d270,'shapeId':_0x3177be,'shapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x3957c3}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':!0x0,'dataModel':_0x2fa9de[_0x46133e(0x12e)]}}}});};}else _0x168b7c[_0x5a38df(0x1a5)](_0x17c4f8,null);},[_0x168b7c,_0x932552,_0x5e467e]),(0x0,x[_0x5492e2(0x287)])(()=>{const _0x2bf926=_0x5492e2;var _0x36e825,_0xd35539;if(!_0x168b7c||!_0x932552)return;_0x3f02ef['blur'](!0x0),_0x3f02ef[_0x2bf926(0x3b1)](z);let _0x4d77a4=((_0x36e825=(_0xd35539=_0x168b7c['getDocumentData']()[_0x2bf926(0x1a2)])==null?void 0x0:_0xd35539[_0x2bf926(0x431)][_0x2bf926(0x4b4)])==null?0x2:_0x36e825)-0x2;return _0x168b7c['setSelectionRanges']([{'startOffset':_0x4d77a4,'endOffset':_0x4d77a4}]),()=>{_0x3f02ef['blur'](!0x0);};},[_0x168b7c,_0x932552,_0x3f02ef]),(0x0,x[_0x5492e2(0x287)])(()=>{if(!_0x168b7c)return;let _0x2dc8b7=_0x18eb3d['onCommandExecuted'](_0x3ae5f0=>{const _0x30b2e7=_0x1642;_0x3ae5f0['id']===T['RichTextEditingMutation']['id']&&_0x3ae5f0['params'][_0x30b2e7(0x372)]===z&&_0x932552&&(_0x932552[_0x30b2e7(0x3be)]?_0x17953e():_0x214705[_0x30b2e7(0x47e)]({..._0x932552,'visible':!0x0})),_0x3ae5f0['id']===I['id']&&_0x17953e();});return()=>{const _0x5a8421=_0x1642;_0x2dc8b7[_0x5a8421(0x212)]();};},[_0x168b7c,_0x17953e,_0x932552]),(0x0,x[_0x5492e2(0x287)])(()=>{_0x17953e();},[_0x17953e]);let _0x1289df=(0x0,x[_0x5492e2(0x337)])(()=>{const _0x72d98f=_0x5492e2;var _0x192872;let _0x17a126=_0x180b7c(),_0x193c94=(_0x192872=_0x17a126==null?void 0x0:_0x17a126[_0x72d98f(0x39e)])==null?{'left':0x0,'top':0x0,'width':_0x5d204b/_0x58c1cf,'height':_0x284be0/_0x473498}:_0x192872,_0xdd6323=_0x193c94[_0x72d98f(0xa7)]*_0x58c1cf,_0x21cd12=_0x193c94[_0x72d98f(0x351)]*_0x473498,_0x472497=_0x193c94[_0x72d98f(0x344)]*_0x58c1cf;return _0x4ea3ab[_0x72d98f(0x2cf)]?{'top':_0x21cd12+_0x4ea3ab[_0x72d98f(0x162)],'left':_0xdd6323,'width':_0x472497,'height':_0x4ea3ab['editorHeight']}:{'top':_0x21cd12,'left':_0xdd6323,'width':_0x472497,'height':_0x4ea3ab[_0x72d98f(0x3af)]};},[_0x4ea3ab,_0x180b7c,_0x5d204b,_0x284be0,_0x58c1cf,_0x473498]),_0x16edea=(0x0,x[_0x5492e2(0x337)])(()=>{const _0x53d2a2=_0x5492e2;let _0x1ad523=_0x180b7c(),_0x1e05b=_0x1ad523==null?void 0x0:_0x1ad523[_0x53d2a2(0x4b1)];return _0x1e05b&&_0x1e05b||{'angle':0x0,'flipX':!0x1,'flipY':!0x1};},[_0x180b7c]);return(0x0,C[_0x5492e2(0x3d1)])('div',{'ref':_0x23d4a4,'data-u-comp':_0x5492e2(0x3c9),'className':_0x5492e2(0x5a8),'style':{'transform':'rotate('+_0x16edea['angle']+_0x5492e2(0xb5)+(_0x16edea[_0x5492e2(0x24c)]?-0x1:0x1)+')'},'children':(0x0,C[_0x5492e2(0x3d1)])('div',{'ref':_0x1b5960,'className':_0x5492e2(0x596),'data-u-comp':_0x5492e2(0x326),'style':_0x1289df,'data-editorid':z})});};Ie[_0x4c1bdf(0x20d)]=_0x4c1bdf(0x111);const Le={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function Re(_0x4c3403,_0x5ddf72,_0x1271c2,_0x541450){const _0x50c31c=_0x4c1bdf;let {scaleX:_0xedd29d,scaleY:_0x41a0e2}=_0x1271c2[_0x50c31c(0x2d6)](),{startColumn:_0x59abc4,startRow:_0x415a9b,xSplit:_0x134287,ySplit:_0x54e364}=_0x541450[_0x50c31c(0x1c0)][_0x50c31c(0x228)](),_0x1413ab=_0x1271c2['getViewport'](d[_0x50c31c(0x31a)][_0x50c31c(0x599)]),_0x4a29c8=_0x1271c2[_0x50c31c(0x531)](d[_0x50c31c(0x31a)]['VIEW_MAIN_LEFT_TOP']),_0x4f64dc=_0x1271c2[_0x50c31c(0x531)](d[_0x50c31c(0x31a)]['VIEW_MAIN_TOP']),_0x437227=_0x1271c2[_0x50c31c(0x531)](d['SHEET_VIEWPORT_KEY'][_0x50c31c(0x31d)]),{rowHeaderWidth:_0x4ee10,columnHeaderHeight:_0x3437a0}=_0x541450,_0x4ba305=_0x541450[_0x50c31c(0x511)](_0x415a9b)+_0x3437a0,_0x29db42=_0x541450[_0x50c31c(0x184)](_0x59abc4)+_0x4ee10,_0x2b903a=_0x541450['rowStartY'](_0x415a9b-_0x54e364)+_0x3437a0,_0x48154e=_0x541450[_0x50c31c(0x184)](_0x59abc4-_0x134287)+_0x4ee10,_0x1d5287=[],_0x327c90=(_0x271589,_0x29e5ea,_0x45ab1c)=>{if(!_0x271589)return null;let {viewportScrollX:_0x29dc7d,viewportScrollY:_0x1025b2}=_0x271589,_0x306e37,_0x152c7e;return _0x306e37=_0x29e5ea?(_0x4c3403-(_0x48154e-_0x4ee10))*_0xedd29d:(_0x4c3403-_0x29dc7d)*_0xedd29d,_0x152c7e=_0x45ab1c?(_0x5ddf72-(_0x2b903a-_0x3437a0))*_0x41a0e2:(_0x5ddf72-_0x1025b2)*_0x41a0e2,{'domX':_0x306e37,'domY':_0x152c7e};},_0x1fa108=_0x4c3403<_0x29db42&&_0x134287>0x0,_0x1174f9=_0x5ddf72<_0x4ba305&&_0x54e364>0x0,_0x2bcd10=_0x4c3403>=_0x29db42||_0x134287===0x0,_0xe43944=_0x5ddf72>=_0x4ba305||_0x54e364===0x0;if(_0x1fa108&&_0x1174f9&&_0x4a29c8){let _0x5cc566=_0x327c90(_0x4a29c8,!0x0,!0x0);_0x5cc566&&_0x1d5287[_0x50c31c(0x4ad)](_0x5cc566);}if(_0x1174f9&&_0x2bcd10&&_0x4f64dc){let _0x1c4f48=_0x327c90(_0x4f64dc,!0x1,!0x0);_0x1c4f48&&_0x1d5287[_0x50c31c(0x4ad)](_0x1c4f48);}if(_0x1fa108&&_0xe43944&&_0x437227){let _0x40a86c=_0x327c90(_0x437227,!0x0,!0x1);_0x40a86c&&_0x1d5287['push'](_0x40a86c);}if(_0x2bcd10&&_0xe43944&&_0x1413ab){let _0x28b20f=_0x327c90(_0x1413ab,!0x1,!0x1);_0x28b20f&&_0x1d5287[_0x50c31c(0x4ad)](_0x28b20f);}if(_0x1d5287['length']===0x0){var _0x1c300d,_0x407d01;return{'domX':(_0x4c3403-((_0x1c300d=_0x1413ab==null?void 0x0:_0x1413ab[_0x50c31c(0x41b)])==null?0x0:_0x1c300d))*_0xedd29d,'domY':(_0x5ddf72-((_0x407d01=_0x1413ab==null?void 0x0:_0x1413ab[_0x50c31c(0x20e)])==null?0x0:_0x407d01))*_0x41a0e2};}let _0x468c4b=_0x1d5287[0x0][_0x50c31c(0x298)],_0x4c7da9=_0x1d5287[0x0][_0x50c31c(0x39a)];for(let _0x25f261 of _0x1d5287)_0x25f261[_0x50c31c(0x298)]>_0x468c4b&&(_0x468c4b=_0x25f261['domX']),_0x25f261[_0x50c31c(0x39a)]>_0x4c7da9&&(_0x4c7da9=_0x25f261[_0x50c31c(0x39a)]);return{'domX':_0x468c4b,'domY':_0x4c7da9};}function ze(_0x33f99b,_0x851c3e,_0x231df8,_0x37cd1c,_0x595d07,_0x1093a3,_0x36c98d){const _0x5cab20=_0x4c1bdf;let {scaleX:_0x1067fb,scaleY:_0x32ae14}=_0x1093a3[_0x5cab20(0x2d6)](),{domX:_0x59164f,domY:_0x3ce303}=Re(_0x33f99b,_0x851c3e,_0x1093a3,_0x36c98d);return{'left':_0x59164f,'top':_0x3ce303,'width':_0x231df8*_0x1067fb,'height':_0x37cd1c*_0x32ae14,'angle':_0x595d07,'scaleX':_0x1067fb,'scaleY':_0x32ae14};}function Be(_0x3f36f9){const _0x12a7a4=_0x4c1bdf;let {editingParams:_0x2b36ee,scene:_0x567197,skeleton:_0x4427fe,getShapeTransform:_0x3a8536}=_0x3f36f9,[_0x1cac5c,_0x2bef70]=(0x0,x[_0x12a7a4(0x246)])(Le),_0x5a7f3a=(0x0,x[_0x12a7a4(0xac)])(_0x1cac5c);_0x5a7f3a[_0x12a7a4(0x12e)]=_0x1cac5c;let _0x743668=(0x0,x[_0x12a7a4(0x34c)])(()=>{const _0x219d5a=_0x12a7a4;if(!_0x2b36ee||!_0x567197||!_0x4427fe){_0x5a7f3a[_0x219d5a(0x12e)]!==Le&&_0x2bef70(Le);return;}let _0x3a73a5=_0x3a8536();if(!_0x3a73a5){_0x5a7f3a['current']!==Le&&_0x2bef70(Le);return;}let {left:_0x308f80,top:_0xa20d40,width:_0x66df5f,height:_0x3a9714,angle:_0x52243a}=_0x3a73a5;if(!_0x2b36ee[_0x219d5a(0x3be)]){let {scaleX:_0x53bd5c,scaleY:_0x1dac7f}=_0x567197['getAncestorScale']();_0x2bef70({'left':-0x270f,'top':-0x270f,'width':_0x66df5f*_0x53bd5c,'height':_0x3a9714*_0x1dac7f,'angle':0x0,'scaleX':_0x53bd5c,'scaleY':_0x1dac7f});return;}_0x2bef70(ze(_0x308f80,_0xa20d40,_0x66df5f,_0x3a9714,_0x52243a,_0x567197,_0x4427fe));},[_0x2b36ee,_0x567197,_0x4427fe,_0x3a8536]);return(0x0,x['useEffect'])(()=>{_0x743668();},[_0x2b36ee,_0x743668]),{'position':_0x1cac5c,'updatePosition':_0x743668};}const Ve=(0x0,x[_0x4c1bdf(0x32e)])(_0x1a9dc4=>{const _0x3a559c=_0x4c1bdf;let {children:_0x2b9be1,onPositionUpdate:_0xe26346}=_0x1a9dc4,_0x2e59d4=(0x0,x[_0x3a559c(0xac)])(null),_0x250dbb=(0x0,v[_0x3a559c(0x360)])(A),_0x275aa5=(0x0,v[_0x3a559c(0x360)])(d[_0x3a559c(0x560)]),_0x17dad5=(0x0,v[_0x3a559c(0x1d1)])(_0x250dbb['editingParams$']),_0x295eda=(0x0,x['useMemo'])(()=>_0x17dad5?_0x275aa5[_0x3a559c(0x13d)](_0x17dad5[_0x3a559c(0x372)]):null,[_0x17dad5,_0x275aa5]),_0x5d06a5=(0x0,x[_0x3a559c(0x337)])(()=>{const _0x710721=_0x3a559c;var _0x2b9078;return(_0x2b9078=_0x295eda==null?void 0x0:_0x295eda[_0x710721(0x22c)])==null?null:_0x2b9078;},[_0x295eda]),{position:_0x4e88e4,updatePosition:_0x44a9db}=Be({'editingParams':_0x17dad5,'scene':_0x5d06a5,'skeleton':(0x0,x[_0x3a559c(0x337)])(()=>{const _0x610dd0=_0x3a559c;var _0x41a2dd,_0x1974af;return!_0x17dad5||!_0x295eda||(_0x41a2dd=(_0x1974af=_0x295eda[_0x610dd0(0x471)](_[_0x610dd0(0x315)])[_0x610dd0(0x132)](_0x17dad5['subUnitId']))==null?void 0x0:_0x1974af[_0x610dd0(0xf7)])==null?null:_0x41a2dd;},[_0x17dad5,_0x295eda]),'getShapeTransform':(0x0,x['useCallback'])(()=>{const _0x55af97=_0x3a559c;if(!_0x17dad5||!_0x5d06a5)return null;let _0x15aa96=_0x17dad5[_0x55af97(0x519)],_0x1f097f=_0x5d06a5[_0x55af97(0x242)](_0x15aa96);return _0x1f097f instanceof V?{'left':_0x1f097f[_0x55af97(0xa7)],'top':_0x1f097f[_0x55af97(0x351)],'width':_0x1f097f[_0x55af97(0x344)],'height':_0x1f097f['height'],'angle':_0x1f097f[_0x55af97(0x22d)]}:null;},[_0x17dad5,_0x5d06a5])}),_0x389428=(0x0,x['useCallback'])(()=>{const _0x1cd3f5=_0x3a559c;let _0x1191be=_0x2e59d4['current'];_0x1191be&&(_0x1191be[_0x1cd3f5(0x4a4)][_0x1cd3f5(0xa7)]=_0x4e88e4[_0x1cd3f5(0xa7)]+'px',_0x1191be['style'][_0x1cd3f5(0x351)]=_0x4e88e4[_0x1cd3f5(0x351)]+'px',_0x1191be[_0x1cd3f5(0x4a4)][_0x1cd3f5(0x344)]=_0x4e88e4['width']+'px',_0x1191be[_0x1cd3f5(0x4a4)][_0x1cd3f5(0x5fa)]=_0x4e88e4[_0x1cd3f5(0x5fa)]+'px');},[_0x4e88e4]);(0x0,x['useEffect'])(()=>{const _0x408e97=_0x3a559c;_0x389428(),_0xe26346==null||_0xe26346({'width':_0x4e88e4[_0x408e97(0x344)],'height':_0x4e88e4[_0x408e97(0x5fa)],'scaleX':_0x4e88e4['scaleX'],'scaleY':_0x4e88e4['scaleY']});},[_0x4e88e4,_0x389428,_0xe26346]),(0x0,x[_0x3a559c(0x287)])(()=>{const _0x52b1fe=_0x3a559c;if(!_0x5d06a5)return;let _0x2cc29c=_0x5d06a5[_0x52b1fe(0x531)](d[_0x52b1fe(0x31a)]['VIEW_MAIN']);if(!_0x2cc29c)return;let _0x902289=_0x2cc29c[_0x52b1fe(0x32b)][_0x52b1fe(0x593)](()=>{_0x44a9db();});return()=>{const _0xf3e77c=_0x52b1fe;_0x902289[_0xf3e77c(0x559)]();};},[_0x5d06a5,_0x44a9db]),(0x0,x['useEffect'])(()=>{const _0x4ffc3e=_0x3a559c;if(!_0x17dad5||!_0x5d06a5)return;let _0x72caac=_0x17dad5[_0x4ffc3e(0x519)],_0x4ae16a=_0x5d06a5[_0x4ffc3e(0x242)](_0x72caac);if(_0x4ae16a instanceof V){let _0x7b2b27=_0x4ae16a[_0x4ffc3e(0x570)]['subscribeEvent'](()=>{_0x44a9db();});return()=>{_0x7b2b27['unsubscribe']();};}},[_0x17dad5,_0x5d06a5,_0x44a9db]);let _0x48f75b=(0x0,x[_0x3a559c(0x337)])(()=>({'left':_0x4e88e4[_0x3a559c(0xa7)],'top':_0x4e88e4[_0x3a559c(0x351)],'width':_0x4e88e4[_0x3a559c(0x344)],'height':_0x4e88e4[_0x3a559c(0x5fa)],'pointerEvents':_0x17dad5!=null&&_0x17dad5[_0x3a559c(0x3be)]?_0x3a559c(0x36e):'none'}),[_0x4e88e4,_0x17dad5==null?void 0x0:_0x17dad5['visible']]);return(0x0,C[_0x3a559c(0x3d1)])('div',{'ref':_0x2e59d4,'data-u-comp':_0x3a559c(0x1f1),'className':_0x3a559c(0x4ce),'style':_0x48f75b,'children':_0x2b9be1});});Ve[_0x4c1bdf(0x20d)]=_0x4c1bdf(0x5e5);const He=(0x0,x[_0x4c1bdf(0x32e)])(()=>{const _0x2b7ee7=_0x4c1bdf;let _0x3bd1e6=(0x0,v[_0x2b7ee7(0x1d1)])((0x0,v[_0x2b7ee7(0x360)])(A)['editingParams$']),[_0x30fdfa,_0x38cd7e]=(0x0,x[_0x2b7ee7(0x246)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x5e51c8=(0x0,x['useCallback'])(_0x22c2b5=>{const _0x4051f9=_0x2b7ee7;_0x38cd7e({'width':_0x22c2b5[_0x4051f9(0x344)],'height':_0x22c2b5[_0x4051f9(0x5fa)],'scaleX':_0x22c2b5[_0x4051f9(0x4d2)],'scaleY':_0x22c2b5[_0x4051f9(0x2da)]});},[]);return _0x3bd1e6!=null&&_0x3bd1e6[_0x2b7ee7(0x3be)]?(0x0,C[_0x2b7ee7(0x3d1)])(Ve,{'onPositionUpdate':_0x5e51c8,'children':(0x0,C['jsx'])(Ie,{'containerWidth':_0x30fdfa[_0x2b7ee7(0x344)],'containerHeight':_0x30fdfa['height'],'scaleX':_0x30fdfa[_0x2b7ee7(0x4d2)],'scaleY':_0x30fdfa[_0x2b7ee7(0x2da)]})}):null;});He[_0x4c1bdf(0x20d)]=_0x4c1bdf(0x4cc);let $=class extends l[_0x4c1bdf(0x455)]{constructor(_0x3bba73=we,_0x3a27f4,_0x43dac8,_0x1e39e2,_0x2dfef5){const _0x54db37=_0x4c1bdf;super(),this[_0x54db37(0x4a7)]=_0x3bba73,this[_0x54db37(0x5f3)]=_0x3a27f4,this[_0x54db37(0x5c6)]=_0x43dac8,this[_0x54db37(0x41f)]=_0x1e39e2,this['_renderManagerService']=_0x2dfef5;let {..._0x28ddaa}=(0x0,l[_0x54db37(0x49c)])({},we,this[_0x54db37(0x4a7)]);this['_configService']['setConfig'](Ce,_0x28ddaa),this[_0x54db37(0x48e)]();}['onRendered'](){const _0x3e166e=_0x4c1bdf;(0x0,l[_0x3e166e(0x19d)])(this[_0x3e166e(0x5f3)],[[be],[G],[W]]);}[_0x4c1bdf(0xfc)](){const _0x210eb7=_0x4c1bdf;[[je],[Me],[Ne]]['forEach'](_0x507690=>this['_injector'][_0x210eb7(0x191)](_0x507690)),(0x0,l[_0x210eb7(0x19d)])(this['_injector'],[[Ne]]),this['_renderManagerService'][_0x210eb7(0x42f)](l[_0x210eb7(0x47a)][_0x210eb7(0x2f9)],[je]),this[_0x210eb7(0x231)][_0x210eb7(0x42f)](l[_0x210eb7(0x47a)][_0x210eb7(0x2f9)],[Me]),this[_0x210eb7(0x231)][_0x210eb7(0x42f)](l[_0x210eb7(0x47a)]['UNIVER_SHEET'],[Ee]),this[_0x210eb7(0x231)][_0x210eb7(0x42f)](l[_0x210eb7(0x47a)]['UNIVER_SHEET'],[Fe]),this[_0x210eb7(0x231)][_0x210eb7(0x42f)](l['UniverInstanceType'][_0x210eb7(0x2f9)],[Oe]);}[_0x4c1bdf(0x4a5)](){const _0x195ce1=_0x4c1bdf;let _0x8702be=this[_0x195ce1(0x5f3)];_0x8702be[_0x195ce1(0x100)](v['ComponentManager'])['register'](_0x195ce1(0x4cc),He),[[be],[G],[W],[A],[De],[Y]][_0x195ce1(0x241)](_0x5a96ed=>_0x8702be[_0x195ce1(0x191)](_0x5a96ed)),(0x0,l[_0x195ce1(0x19d)])(this[_0x195ce1(0x5f3)],[[be],[G],[W],[A],[De],[Y]]);}[_0x4c1bdf(0x48e)](){const _0x2c6861=_0x4c1bdf;[J,M,I,N,F,P,R,ee,L]['forEach'](_0x3f208b=>this['disposeWithMe'](this[_0x2c6861(0x5c6)][_0x2c6861(0x444)](_0x3f208b)));}};k($,'type',l[_0x4c1bdf(0x47a)]['UNIVER_SHEET']),k($,_0x4c1bdf(0x268),_0x4c1bdf(0x13a)),k($,_0x4c1bdf(0x4fe),xe),k($,_0x4c1bdf(0xe4),Se),$=U([(0x0,l[_0x4c1bdf(0x37c)])(w[_0x4c1bdf(0x4bd)],c[_0x4c1bdf(0x54f)]),H(0x1,(0x0,l[_0x4c1bdf(0x130)])(l['Injector'])),H(0x2,l[_0x4c1bdf(0x1dd)]),H(0x3,l[_0x4c1bdf(0x5ed)]),H(0x4,d['IRenderManagerService'])],$),exports[_0x4c1bdf(0x532)]=N,exports['SetShapeTextFontSizeDecreaseCommand']=F,exports[_0x4c1bdf(0x576)]=P,exports[_0x4c1bdf(0x537)]=I,exports[_0x4c1bdf(0x55c)]=L,Object[_0x4c1bdf(0x1e7)](exports,_0x4c1bdf(0x101),{'enumerable':!0x0,'get':function(){return be;}}),Object['defineProperty'](exports,_0x4c1bdf(0x195),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4c1bdf(0x15f)]=M;
|
|
1
|
+
const _0x3cbade=_0x1b00;(function(_0x7cdfaf,_0x55738a){const _0x5840e0=_0x1b00,_0x4c5979=_0x7cdfaf();while(!![]){try{const _0x45c383=parseInt(_0x5840e0(0x29b))/0x1*(-parseInt(_0x5840e0(0x509))/0x2)+-parseInt(_0x5840e0(0x57d))/0x3+-parseInt(_0x5840e0(0x628))/0x4+-parseInt(_0x5840e0(0x6a3))/0x5*(parseInt(_0x5840e0(0x1ba))/0x6)+-parseInt(_0x5840e0(0x4e2))/0x7+-parseInt(_0x5840e0(0x463))/0x8+parseInt(_0x5840e0(0x609))/0x9;if(_0x45c383===_0x55738a)break;else _0x4c5979['push'](_0x4c5979['shift']());}catch(_0x2df51a){_0x4c5979['push'](_0x4c5979['shift']());}}}(_0x3a35,0x51984),Object[_0x3cbade(0x621)](exports,Symbol[_0x3cbade(0x55a)],{'value':_0x3cbade(0x5f8)}));var __create=Object[_0x3cbade(0x650)],__defProp=Object[_0x3cbade(0x621)],__getOwnPropDesc=Object[_0x3cbade(0x605)],__getOwnPropNames=Object[_0x3cbade(0x54d)],__getProtoOf=Object[_0x3cbade(0x21a)],__hasOwnProp=Object[_0x3cbade(0x3c1)][_0x3cbade(0x203)],__copyProps=(_0x6fb31d,_0x1ef3a9,_0x1d3e66,_0x432944)=>{const _0x4550dc=_0x3cbade;if(_0x1ef3a9&&typeof _0x1ef3a9===_0x4550dc(0x196)||typeof _0x1ef3a9===_0x4550dc(0x3da))for(var _0x1747fe=__getOwnPropNames(_0x1ef3a9),_0x3b90e3=0x0,_0x232861=_0x1747fe['length'],_0x35e512;_0x3b90e3<_0x232861;_0x3b90e3++){_0x35e512=_0x1747fe[_0x3b90e3],!__hasOwnProp[_0x4550dc(0x4cb)](_0x6fb31d,_0x35e512)&&_0x35e512!==_0x1d3e66&&__defProp(_0x6fb31d,_0x35e512,{'get':(_0x2b34ab=>_0x1ef3a9[_0x2b34ab])[_0x4550dc(0x574)](null,_0x35e512),'enumerable':!(_0x432944=__getOwnPropDesc(_0x1ef3a9,_0x35e512))||_0x432944[_0x4550dc(0x498)]});}return _0x6fb31d;},__toESM=(_0x592f67,_0x23e3d4,_0x2ec388)=>(_0x2ec388=_0x592f67!=null?__create(__getProtoOf(_0x592f67)):{},__copyProps(_0x23e3d4||!_0x592f67||!_0x592f67[_0x3cbade(0x3e6)]?__defProp(_0x2ec388,_0x3cbade(0x239),{'value':_0x592f67,'enumerable':!![]}):_0x2ec388,_0x592f67));let _univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),rxjs=require('rxjs'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_design=require('@univerjs/design'),react=require('react');react=__toESM(react);let _univerjs_drawing_ui=require('@univerjs/drawing-ui'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_sheets_drawing_ui=require('@univerjs/sheets-drawing-ui'),_univerjs_docs=require('@univerjs/docs');function _typeof(_0x4c2ee5){'@babel/helpers - typeof';const _0x5b1751=_0x3cbade;return _typeof=_0x5b1751(0x3da)==typeof Symbol&&'symbol'==typeof Symbol[_0x5b1751(0x2cf)]?function(_0x2f252d){return typeof _0x2f252d;}:function(_0x35222e){const _0x1263dc=_0x5b1751;return _0x35222e&&_0x1263dc(0x3da)==typeof Symbol&&_0x35222e[_0x1263dc(0x421)]===Symbol&&_0x35222e!==Symbol[_0x1263dc(0x3c1)]?'symbol':typeof _0x35222e;},_typeof(_0x4c2ee5);}function toPrimitive(_0x13a0c2,_0x58b760){const _0x57578d=_0x3cbade;if(_0x57578d(0x196)!=_typeof(_0x13a0c2)||!_0x13a0c2)return _0x13a0c2;var _0x268a0d=_0x13a0c2[Symbol['toPrimitive']];if(void 0x0!==_0x268a0d){var _0xf4841a=_0x268a0d[_0x57578d(0x4cb)](_0x13a0c2,_0x58b760||'default');if('object'!=_typeof(_0xf4841a))return _0xf4841a;throw new TypeError(_0x57578d(0x4cc));}return(_0x57578d(0x4fd)===_0x58b760?String:Number)(_0x13a0c2);}function toPropertyKey(_0x184f64){const _0x3c6eed=_0x3cbade;var _0x13c382=toPrimitive(_0x184f64,'string');return _0x3c6eed(0x538)==_typeof(_0x13c382)?_0x13c382:_0x13c382+'';}function _defineProperty(_0x3f8cb2,_0x5aad8d,_0x24ccd8){return(_0x5aad8d=toPropertyKey(_0x5aad8d))in _0x3f8cb2?Object['defineProperty'](_0x3f8cb2,_0x5aad8d,{'value':_0x24ccd8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f8cb2[_0x5aad8d]=_0x24ccd8,_0x3f8cb2;}var ShapeTextEditingService=class extends _univerjs_core[_0x3cbade(0x224)]{constructor(..._0x35c32b){const _0x5d5bea=_0x3cbade;super(..._0x35c32b),_defineProperty(this,'_editingParams$',new rxjs[(_0x5d5bea(0x1d6))](null)),_defineProperty(this,'editingParams$',this[_0x5d5bea(0x69e)][_0x5d5bea(0x222)]()),_defineProperty(this,'_onSavingEditorData$',new rxjs['BehaviorSubject'](![])),_defineProperty(this,_0x5d5bea(0x1d9),this[_0x5d5bea(0x4c9)][_0x5d5bea(0x222)]());}[_0x3cbade(0x258)](){const _0x56ecec=_0x3cbade;this[_0x56ecec(0x69e)][_0x56ecec(0x452)](null),this[_0x56ecec(0x69e)][_0x56ecec(0x1aa)](),this['_onSavingEditorData$'][_0x56ecec(0x452)](![]),this['_onSavingEditorData$'][_0x56ecec(0x1aa)](),super[_0x56ecec(0x258)]();}[_0x3cbade(0x400)](_0x3d81c5){const _0x1c54bd=_0x3cbade;this[_0x1c54bd(0x69e)][_0x1c54bd(0x452)](_0x3d81c5);if(_0x3d81c5===null||_0x3d81c5===void 0x0)this['_onSavingEditorData$'][_0x1c54bd(0x452)](![]);}[_0x3cbade(0x39a)](_0x4e8a58){const _0x4d54f0=_0x3cbade;this[_0x4d54f0(0x4c9)][_0x4d54f0(0x452)](_0x4e8a58);}[_0x3cbade(0x5c3)](){return this['_editingParams$']['getValue']();}};function getShapeDataDiff(_0x4f051c,_0x1a132e){const _0x1662a2=_0x3cbade,_0x2b927d={};for(const _0x3cac5a of Object['keys'](_0x1a132e)){const _0x5d4585=_0x1a132e[_0x3cac5a],_0x55dfea=_0x4f051c[_0x3cac5a];if(_0x5d4585===void 0x0)continue;if(_0x55dfea===void 0x0){_0x2b927d[_0x3cac5a]=void 0x0;continue;}if(typeof _0x5d4585===_0x1662a2(0x196)&&_0x5d4585!==null&&!Array[_0x1662a2(0x51d)](_0x5d4585)&&typeof _0x55dfea==='object'&&_0x55dfea!==null&&!Array[_0x1662a2(0x51d)](_0x55dfea))_0x2b927d[_0x3cac5a]=getShapeDataDiff(_0x55dfea,_0x5d4585);else _0x2b927d[_0x3cac5a]=_0x55dfea;}return _0x2b927d;}const UpdateShapeDataCommand={'type':_univerjs_core[_0x3cbade(0x1fa)][_0x3cbade(0x617)],'id':_0x3cbade(0x38d),'handler':(_0x3e65fe,_0x4c551b)=>{const _0x507fb2=_0x3cbade,_0x4aed47=_0x3e65fe[_0x507fb2(0x293)](_univerjs_pro_sheets_shape[_0x507fb2(0x39e)]),{unitId:_0x4ca00c,subUnitId:_0x52c258,shapeType:_0x376572,shapeId:_0x7c5140,shapeData:_0x20b18f,oldShapeJSON:_0x5b7507}=_0x4c551b;if(!_0x4aed47[_0x507fb2(0x58c)](_0x4ca00c,_0x52c258,_0x7c5140))return![];const _0x3b24e3=_0x3e65fe['get'](_univerjs_core[_0x507fb2(0x447)]),_0x15a7c8=_0x3e65fe['get'](_univerjs_core[_0x507fb2(0x3fd)]),{oldShapeType:_0x1d7b4f,oldShapeData:_0x1b1a33={}}=_0x5b7507,_0x431d85=getShapeDataDiff(_0x1b1a33,_0x20b18f||{}),_0x27bf16={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x4ca00c,'subUnitId':_0x52c258,'shapeId':_0x7c5140,'shapeType':_0x376572,'shapeData':_0x20b18f}},_0x1987d3={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x4ca00c,'subUnitId':_0x52c258,'shapeId':_0x7c5140,'shapeType':_0x1d7b4f,'shapeData':_0x431d85}};if(_0x3b24e3[_0x507fb2(0x548)](_0x27bf16['id'],_0x27bf16[_0x507fb2(0x250)]))return _0x15a7c8['pushUndoRedo']({'unitID':_0x4ca00c,'undoMutations':[_0x1987d3],'redoMutations':[_0x27bf16]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x3cbade(0x6f1),'handler':async(_0x532609,_0x582faa)=>{const _0x562a2b=_0x3cbade;var _0x52c737;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x532609[_0x562a2b(0x293)](_univerjs_core[_0x562a2b(0x3ea)])))return![];const _0x1e1b50=_0x532609[_0x562a2b(0x293)](_univerjs_sheets_drawing[_0x562a2b(0x56a)])[_0x562a2b(0x34c)]()[_0x562a2b(0x52f)](_0x4bdb2f=>_0x4bdb2f[_0x562a2b(0x27c)]===_univerjs_core[_0x562a2b(0x625)]['DRAWING_SHAPE']);if(_0x1e1b50[_0x562a2b(0x4ba)]!==0x1)return![];const _0x365fd3=_0x532609['get'](ShapeTextEditingService)[_0x562a2b(0x5c3)](),_0x20670b=(_0x365fd3===null||_0x365fd3===void 0x0?void 0x0:_0x365fd3['unitId'])||_0x1e1b50[0x0][_0x562a2b(0x444)],_0x562df6=(_0x365fd3===null||_0x365fd3===void 0x0?void 0x0:_0x365fd3[_0x562a2b(0x3f1)])||_0x1e1b50[0x0][_0x562a2b(0x3f1)],_0x5ca678=(_0x365fd3===null||_0x365fd3===void 0x0?void 0x0:_0x365fd3[_0x562a2b(0x190)])||_0x1e1b50[0x0][_0x562a2b(0x291)],_0x30950=_0x532609[_0x562a2b(0x293)](_univerjs_pro_sheets_shape[_0x562a2b(0x39e)])['getShapeModel'](_0x20670b,_0x562df6,_0x5ca678);if(!_0x30950)return![];const _0x212a00=_0x30950[_0x562a2b(0x4be)]();if(!_0x212a00||!(_0x562a2b(0x2aa)in _0x212a00))return![];const _0x133495=_0x532609[_0x562a2b(0x293)](_univerjs_core[_0x562a2b(0x447)]),{value:_0x392456}=_0x582faa,_0x19eedb=_0x30950[_0x562a2b(0x68f)](),_0x265ffd=_0x30950[_0x562a2b(0x50f)](),_0x455ac8={..._0x212a00[_0x562a2b(0x2aa)],'ha':_0x392456};return await _0x133495['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x20670b,'subUnitId':_0x562df6,'shapeId':_0x5ca678,'shapeType':_0x19eedb,'shapeData':{'shapeText':{'isHorizontal':(_0x52c737=_0x212a00[_0x562a2b(0x3e4)])!==null&&_0x52c737!==void 0x0?_0x52c737:!![],'dataModel':_0x455ac8}},'oldShapeJSON':{'oldShapeType':_0x19eedb,'oldShapeData':_0x265ffd}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x3cbade(0x1fa)][_0x3cbade(0x617)],'id':_0x3cbade(0x599),'handler':async(_0x5ee69f,_0x2931b0)=>{const _0x40007e=_0x3cbade;var _0xf1d72d;if(!_0x2931b0)return![];const {value:_0xd63145}=_0x2931b0,_0x3279f2=_0x5ee69f[_0x40007e(0x293)](_univerjs_core[_0x40007e(0x447)]),_0x3729dd=_0x5ee69f[_0x40007e(0x293)](ShapeTextEditingService),_0x41347e=_0x5ee69f[_0x40007e(0x293)](_univerjs_pro_sheets_shape[_0x40007e(0x39e)]),_0x2d2a32=_0x5ee69f[_0x40007e(0x293)](_univerjs_engine_render[_0x40007e(0x2fa)]),_0x3c2544=_0x3729dd[_0x40007e(0x5c3)]();if(!_0x3c2544)return![];const {unitId:_0x44e2fa,subUnitId:_0x202f63,shapeId:_0xb39d4b}=_0x3c2544,_0x4b00f7=_0x41347e[_0x40007e(0x58c)](_0x44e2fa,_0x202f63,_0xb39d4b);if(!_0x4b00f7)return![];const _0x184d31=_0x4b00f7[_0x40007e(0x4be)]();if(!_0x184d31||!(_0x40007e(0x2aa)in _0x184d31))return![];const _0x302890=_0x184d31[_0x40007e(0x2aa)];if(!_0x302890)return![];const _0x964211={..._0x302890,'fs':_0xd63145},_0x1b681d=await _0x3279f2[_0x40007e(0x522)](UpdateShapeDataCommand['id'],{'unitId':_0x44e2fa,'subUnitId':_0x202f63,'shapeId':_0xb39d4b,'shapeData':{'shapeText':{'isHorizontal':(_0xf1d72d=_0x184d31[_0x40007e(0x3e4)])!==null&&_0xf1d72d!==void 0x0?_0xf1d72d:!![],'dataModel':_0x964211}}});if(_0x1b681d){const _0x54fa57=_0x2d2a32[_0x40007e(0x412)](_0x44e2fa);if(_0x54fa57===null||_0x54fa57===void 0x0?void 0x0:_0x54fa57[_0x40007e(0x53c)]){const _0x360038=(0x0,_univerjs_drawing[_0x40007e(0x564)])({'unitId':_0x44e2fa,'subUnitId':_0x202f63,'drawingId':_0xb39d4b}),_0x4abb04=_0x54fa57[_0x40007e(0x53c)]['getObjectIncludeInGroup'](_0x360038);if(_0x4abb04)_0x4abb04['makeDirty'](!![]);}}return _0x1b681d;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core['CommandType'][_0x3cbade(0x617)],'id':'sheet.command.set-shape-text-font-size-increase','handler':async _0x251f16=>{const _0x554295=_0x3cbade;var _0x1a9c36;const _0xace72c=_0x251f16['get'](ShapeTextEditingService),_0xc5db84=_0x251f16[_0x554295(0x293)](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x46bb22=_0x251f16[_0x554295(0x293)](_univerjs_core[_0x554295(0x447)]),_0x1b6094=_0xace72c[_0x554295(0x5c3)]();if(!_0x1b6094)return![];const {unitId:_0x114823,subUnitId:_0x362709,shapeId:_0x21b58c}=_0x1b6094,_0x5b9fce=_0xc5db84[_0x554295(0x58c)](_0x114823,_0x362709,_0x21b58c);if(!_0x5b9fce)return![];const _0x2db28c=_0x5b9fce[_0x554295(0x4be)]();if(!_0x2db28c||!(_0x554295(0x2aa)in _0x2db28c))return![];const _0x5e648e=_0x2db28c[_0x554295(0x2aa)],_0x5062c1=(_0x1a9c36=_0x5e648e===null||_0x5e648e===void 0x0?void 0x0:_0x5e648e['fs'])!==null&&_0x1a9c36!==void 0x0?_0x1a9c36:0xe,_0x3391a0=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x1d747c=_0x5062c1;const _0x94fcb4=_0x3391a0[_0x554295(0x1fd)](_0x5062c1);if(_0x94fcb4!==-0x1&&_0x94fcb4<_0x3391a0[_0x554295(0x4ba)]-0x1)_0x1d747c=_0x3391a0[_0x94fcb4+0x1];else{if(_0x94fcb4===-0x1)_0x1d747c=Math['floor'](_0x5062c1)+0x1;}return _0x46bb22[_0x554295(0x522)](SetShapeTextFontSizeCommand['id'],{'value':_0x1d747c});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0x3cbade(0x1fa)][_0x3cbade(0x617)],'id':_0x3cbade(0x4bb),'handler':async _0xd05c56=>{const _0x25fe40=_0x3cbade;var _0x82f2b3;const _0xd4deb9=_0xd05c56[_0x25fe40(0x293)](ShapeTextEditingService),_0x5aa450=_0xd05c56['get'](_univerjs_pro_sheets_shape[_0x25fe40(0x39e)]),_0x715706=_0xd05c56[_0x25fe40(0x293)](_univerjs_core[_0x25fe40(0x447)]),_0x287751=_0xd4deb9['getEditing']();if(!_0x287751)return![];const {unitId:_0x5c8d61,subUnitId:_0x573c99,shapeId:_0x16a3b4}=_0x287751,_0x35cf69=_0x5aa450[_0x25fe40(0x58c)](_0x5c8d61,_0x573c99,_0x16a3b4);if(!_0x35cf69)return![];const _0x2328d3=_0x35cf69[_0x25fe40(0x4be)]();if(!_0x2328d3||!(_0x25fe40(0x2aa)in _0x2328d3))return![];const _0x311c4b=_0x2328d3['dataModel'],_0x177ee2=(_0x82f2b3=_0x311c4b===null||_0x311c4b===void 0x0?void 0x0:_0x311c4b['fs'])!==null&&_0x82f2b3!==void 0x0?_0x82f2b3:0xe,_0x231c80=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x2fd6f0=_0x177ee2;const _0xd31d97=_0x231c80[_0x25fe40(0x1fd)](_0x177ee2);if(_0xd31d97!==-0x1&&_0xd31d97>0x0)_0x2fd6f0=_0x231c80[_0xd31d97-0x1];else{if(_0xd31d97===-0x1)_0x2fd6f0=Math['floor'](_0x177ee2)-0x1;}if(_0x2fd6f0<0x1)_0x2fd6f0=0x1;return _0x715706[_0x25fe40(0x522)](SetShapeTextFontSizeCommand['id'],{'value':_0x2fd6f0});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x3cbade(0x1fa)][_0x3cbade(0x617)],'id':_0x3cbade(0x32e),'handler':async(_0x35bcbe,_0x41d04e)=>{const _0x5de825=_0x3cbade;var _0x432a36;if(!(0x0,_univerjs_sheets[_0x5de825(0x56f)])(_0x35bcbe[_0x5de825(0x293)](_univerjs_core[_0x5de825(0x3ea)])))return![];const _0x37cf79=_0x35bcbe[_0x5de825(0x293)](_univerjs_sheets_drawing[_0x5de825(0x56a)])[_0x5de825(0x34c)]()['filter'](_0x38189f=>_0x38189f[_0x5de825(0x27c)]===_univerjs_core[_0x5de825(0x625)][_0x5de825(0x4a0)]);if(_0x37cf79['length']!==0x1)return![];const _0x2b491e=_0x35bcbe[_0x5de825(0x293)](ShapeTextEditingService)[_0x5de825(0x5c3)](),_0x40bd1e=(_0x2b491e===null||_0x2b491e===void 0x0?void 0x0:_0x2b491e[_0x5de825(0x444)])||_0x37cf79[0x0][_0x5de825(0x444)],_0x1ac470=(_0x2b491e===null||_0x2b491e===void 0x0?void 0x0:_0x2b491e[_0x5de825(0x3f1)])||_0x37cf79[0x0][_0x5de825(0x3f1)],_0x4ae910=(_0x2b491e===null||_0x2b491e===void 0x0?void 0x0:_0x2b491e[_0x5de825(0x190)])||_0x37cf79[0x0][_0x5de825(0x291)],_0x4cd98e=_0x35bcbe['get'](_univerjs_pro_sheets_shape['SheetsShapeService'])['getShapeModel'](_0x40bd1e,_0x1ac470,_0x4ae910);if(!_0x4cd98e)return![];const _0x496666=_0x4cd98e[_0x5de825(0x4be)]();if(!_0x496666||!(_0x5de825(0x2aa)in _0x496666))return![];const _0x17727b=_0x35bcbe[_0x5de825(0x293)](_univerjs_core[_0x5de825(0x447)]),{value:_0x5b2dac}=_0x41d04e,_0x1c8631=_0x4cd98e['getShapeType'](),_0x55e5b1=_0x4cd98e[_0x5de825(0x50f)](),_0xa350d1={..._0x496666['dataModel'],'va':_0x5b2dac};return await _0x17727b[_0x5de825(0x522)](UpdateShapeDataCommand['id'],{'unitId':_0x40bd1e,'subUnitId':_0x1ac470,'shapeId':_0x4ae910,'shapeType':_0x1c8631,'shapeData':{'shapeText':{'isHorizontal':(_0x432a36=_0x496666['isHorizontal'])!==null&&_0x432a36!==void 0x0?_0x432a36:!![],'dataModel':_0xa350d1}},'oldShapeJSON':{'oldShapeType':_0x1c8631,'oldShapeData':_0x55e5b1}});}},ShapeDocAlignCommand={'type':_univerjs_core[_0x3cbade(0x1fa)][_0x3cbade(0x617)],'id':_0x3cbade(0x512),'handler':(_0x3eb512,_0x17a683)=>{const _0x5ee76c=_0x3cbade;if(!_0x17a683)return![];const {value:_0x4a5c05}=_0x17a683;return _0x3eb512[_0x5ee76c(0x293)](_univerjs_core[_0x5ee76c(0x447)])['syncExecuteCommand'](_univerjs_docs_ui[_0x5ee76c(0x624)]['id'],{'alignType':_0x4a5c05});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType']['OPERATION'],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x3cbade(0x1fa)][_0x3cbade(0x62d)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x3cbade(0x36d),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x3cbade(0x4b0)])('SHAPE_TEXT'),ShapeTextEditorContainer$1=_0x3cbade(0x46b);function updateShapeData(_0x5146f7,_0x11b951,_0x166a2d,_0x424cf2,_0x511133,_0x1fec34){const _0xd27be7=_0x3cbade,_0x93ead9={'unitId':_0x11b951,'subUnitId':_0x166a2d,'shapeId':_0x424cf2,'shapeData':_0x1fec34,'oldShapeJSON':_0x511133};return _0x5146f7[_0xd27be7(0x522)](UpdateShapeDataCommand['id'],_0x93ead9);}function updateLineShapeData(_0x450ce8,_0x4b56f7,_0x349f9b,_0xcce1f1,_0x2b4164,_0x47e8a0){const _0x4b8a31={'unitId':_0x4b56f7,'subUnitId':_0x349f9b,'shapeId':_0xcce1f1,'shapeData':_0x47e8a0,'oldShapeJSON':_0x2b4164};return _0x450ce8['executeCommand'](UpdateShapeDataCommand['id'],_0x4b8a31);}function prepareShapeTextDocumentData(_0x5d725f,_0x49a947){const _0x4ffbe9=_0x3cbade;var _0x22bdf8;const {isHorizontal:_0x5bddf2,textRect:_0x1d0538,verticalAlign:_0x234ed8}=_0x49a947,_0x4de93f=_0x5bddf2?_0x1d0538[_0x4ffbe9(0x354)]:_0x1d0538[_0x4ffbe9(0x396)],_0x25ba65=_univerjs_core[_0x4ffbe9(0x320)][_0x4ffbe9(0x202)](_0x5d725f),_0x27f594=(_0x22bdf8=_0x25ba65[_0x4ffbe9(0x47a)])!==null&&_0x22bdf8!==void 0x0?_0x22bdf8:{},_0x45bb12={..._0x27f594['renderConfig'],'centerAngle':_0x5bddf2?0x0:_univerjs_engine_render[_0x4ffbe9(0x4fc)],'vertexAngle':_0x5bddf2?0x0:_univerjs_engine_render[_0x4ffbe9(0x4fc)],'wrapStrategy':_univerjs_core['WrapStrategy'][_0x4ffbe9(0x68c)]};if(_0x234ed8!==void 0x0)_0x45bb12['verticalAlign']=_0x234ed8;if(_0x49a947[_0x4ffbe9(0x43c)]!==void 0x0){var _0x46e47b;_0x45bb12[_0x4ffbe9(0x43c)]=_0x49a947[_0x4ffbe9(0x43c)];const _0xf14841=(_0x46e47b=_0x25ba65[_0x4ffbe9(0x434)])===null||_0x46e47b===void 0x0?void 0x0:_0x46e47b[_0x4ffbe9(0x35e)];if(_0xf14841)for(const _0x160b94 of _0xf14841){if(!_0x160b94[_0x4ffbe9(0x4e7)])_0x160b94[_0x4ffbe9(0x4e7)]={};_0x160b94[_0x4ffbe9(0x4e7)][_0x4ffbe9(0x43c)]=_0x49a947[_0x4ffbe9(0x43c)];}}return _0x25ba65[_0x4ffbe9(0x47a)]={..._0x27f594,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x4de93f,'height':Number[_0x4ffbe9(0x2a8)]},'renderConfig':_0x45bb12},_0x25ba65;}function stripShapeTextDocumentLayout(_0xc433a9){const _0x3527df=_0x3cbade;var _0x4bb75c;const _0x3dbce8=_univerjs_core[_0x3527df(0x320)][_0x3527df(0x202)](_0xc433a9),_0x5dc4c4=(_0x4bb75c=_0x3dbce8[_0x3527df(0x47a)])!==null&&_0x4bb75c!==void 0x0?_0x4bb75c:{},_0x351df2={..._0x5dc4c4[_0x3527df(0x26c)]};return delete _0x351df2[_0x3527df(0x5e7)],delete _0x351df2['vertexAngle'],delete _0x351df2[_0x3527df(0x60a)],delete _0x351df2[_0x3527df(0x4a6)],_0x3dbce8[_0x3527df(0x47a)]={..._0x5dc4c4,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x3527df(0x2a8)],'height':Number[_0x3527df(0x2a8)]},'renderConfig':Object[_0x3527df(0x34b)](_0x351df2)[_0x3527df(0x4ba)]>0x0?_0x351df2:void 0x0},_0x3dbce8;}var DrawingShape=class extends _univerjs_engine_render[_0x3cbade(0x3ac)]{constructor(_0x564d85,_0x42b051){const _0x19ec4b=_0x3cbade;super(_0x564d85,_0x42b051),_defineProperty(this,_0x19ec4b(0x347),void 0x0),_defineProperty(this,_0x19ec4b(0x3e5),!![]),_defineProperty(this,_0x19ec4b(0x1c4),_univerjs_core['DrawingTypeEnum'][_0x19ec4b(0x4a0)]),_defineProperty(this,_0x19ec4b(0x5e1),!![]),this[_0x19ec4b(0x347)]={..._0x42b051},this[_0x19ec4b(0x43e)]();}['_init'](){const _0x55f2c6=_0x3cbade;this[_0x55f2c6(0x587)][_0x55f2c6(0x5a4)](_0x3d97c8=>{this['_updateSrcRectByTransform'](_0x3d97c8);});}['setPrstGeom'](_0x4c0077){const _0x29b9c1=_0x3cbade;this[_0x29b9c1(0x347)][_0x29b9c1(0x6c5)]=_0x4c0077;}[_0x3cbade(0x400)](_0x4fbf78){this['_props']['isEditing']=_0x4fbf78,this['makeDirty'](!![]);}get[_0x3cbade(0x444)](){const _0x5d207a=_0x3cbade;return this[_0x5d207a(0x347)][_0x5d207a(0x444)];}get['subUnitId'](){const _0xc33cc=_0x3cbade;return this[_0xc33cc(0x347)][_0xc33cc(0x3f1)];}['_updateSrcRectByTransform'](_0x48edef){const _0x56692e=_0x3cbade;if(this['_props']['srcRect']==null||!this[_0x56692e(0x3e5)])return;const {width:_0x23f489,height:_0x3a23b6}=this,{width:_0x198cf7=0x0,height:_0x3cd56d=0x0}=_0x48edef[_0x56692e(0x3ff)],{left:_0x374f35=0x0,top:_0x5b8764=0x0,right:_0x4bd56f=0x0,bottom:_0x1fcf3f=0x0}=this[_0x56692e(0x347)][_0x56692e(0x613)];let _0x5e436a=_0x374f35,_0x175a60=_0x5b8764,_0x5cfdf3=_0x4bd56f,_0x295c7e=_0x1fcf3f,_0x2ca3a0=![];if(_0x198cf7!==0x0&&_0x198cf7!==_0x23f489){const _0x7bcac9=_0x374f35/_0x198cf7,_0x565a7a=_0x4bd56f/_0x198cf7;_0x5e436a=_0x23f489*_0x7bcac9,_0x5cfdf3=_0x23f489*_0x565a7a,_0x2ca3a0=!![];}if(_0x3cd56d!==0x0&&_0x3cd56d!==_0x3a23b6){const _0xa567be=_0x5b8764/_0x3cd56d,_0x30cf3a=_0x1fcf3f/_0x3cd56d;_0x175a60=_0x3a23b6*_0xa567be,_0x295c7e=_0x3a23b6*_0x30cf3a,_0x2ca3a0=!![];}if(_0x2ca3a0)this[_0x56692e(0x3fe)]({'left':_0x5e436a,'top':_0x175a60,'right':_0x5cfdf3,'bottom':_0x295c7e});}[_0x3cbade(0x3fe)](_0x5b4000){const _0x294af9=_0x3cbade;this[_0x294af9(0x347)][_0x294af9(0x613)]=_0x5b4000,this[_0x294af9(0x67d)](!![]);}[_0x3cbade(0x3e7)](_0x4460f0){const _0x187405=_0x3cbade;this[_0x187405(0x347)]['image']=_0x4460f0,this['makeDirty'](!![]);}set[_0x3cbade(0x277)](_0xca915f){const _0x167f6f=_0x3cbade;this[_0x167f6f(0x495)]=_0xca915f;}get[_0x3cbade(0x277)](){const _0x1ee567=_0x3cbade;if(!this['_transform'])this[_0x1ee567(0x63e)]();const _0x2d3a38=this['_transform']['clone']();return this['transformForAngle'](_0x2d3a38);}get[_0x3cbade(0x6b9)](){const _0x30c7a7=_0x3cbade;return this[_0x30c7a7(0x347)][_0x30c7a7(0x6b9)];}get['shapeId'](){const _0x27ae5e=_0x3cbade;return this[_0x27ae5e(0x347)]['shapeId'];}get[_0x3cbade(0x45f)](){const _0x28ead5=_0x3cbade;return _univerjs_engine_render['RENDER_CLASS_TYPE'][_0x28ead5(0x361)];}[_0x3cbade(0x65b)](_0x103b89,_0x23041d,_0x3af4c3,_0xfca086){const _0xd904ea=_0x3cbade,_0x3bf076=this['_props']['shapeModel'];if(!_0x3bf076||!_0x23041d)return;const _0x2ebe8f=_0x3af4c3!==null&&_0x3af4c3!==void 0x0?_0x3af4c3:this[_0xd904ea(0x354)],_0x430cfa=_0xfca086!==null&&_0xfca086!==void 0x0?_0xfca086:this[_0xd904ea(0x396)],_0x31db11={'shapeType':_0x3bf076['getShapeType'](),'width':_0x2ebe8f,'height':_0x430cfa},_0x459c0e={'renderMode':_univerjs_pro_engine_shape['ShapeRenderModeEnum']['Path'],'oKey':this[_0xd904ea(0x1e7)],'image':this[_0xd904ea(0x347)]['image'],'angle':this[_0xd904ea(0x3ee)]};_0x3bf076[_0xd904ea(0x4dc)](_0x31db11),_0x103b89[_0xd904ea(0x63b)]();const _0x2cb802={'top':0x0,'left':0x0,'width':_0x2ebe8f,'height':_0x430cfa};_0x3bf076[_0xd904ea(0x545)](_0x103b89,_0x2cb802,_0x459c0e),_0x103b89[_0xd904ea(0x1c9)]();const _0x50c56f=_0x3bf076[_0xd904ea(0x4be)](),_0x3876e6=_0x3bf076[_0xd904ea(0x537)](_0x2cb802),_0x147a49=_0x3bf076[_0xd904ea(0x635)]();if(_0x50c56f&&_0x3876e6&&!_0x147a49){_0x103b89['save']();if(this['getState']()['flipX'])_0x103b89['scale'](-0x1,0x1);const _0x1c5d8d=_0x2ebe8f/0x2,_0x1cc8b9=_0x430cfa/0x2;_0x103b89[_0xd904ea(0x439)](-_0x1c5d8d,-_0x1cc8b9),_0x103b89[_0xd904ea(0x199)](),this['_drawShapeText'](_0x103b89,_0x50c56f,_0x3876e6),_0x103b89[_0xd904ea(0x1c9)]();}}['getDrawingPoints'](_0xb9b233){}['_drawShapeText'](_0x362fc6,_0xd98cd7,_0xa08d90){const _0x4670b2=_0x3cbade;if(this[_0x4670b2(0x347)][_0x4670b2(0x2be)])return;if(_0x4670b2(0x20d)in _0xd98cd7&&_0xd98cd7[_0x4670b2(0x20d)]===![])this[_0x4670b2(0x387)](_0x362fc6,_0xd98cd7,_0xa08d90);else this['_drawRichText'](_0x362fc6,_0xd98cd7,_0xa08d90);}[_0x3cbade(0x387)](_0x38384b,_0x188ef2,_0xfda3e9){}['_drawRichText'](_0x30affd,_0x22cf64,_0x4a6f7d){const _0x344d61=_0x3cbade;var _0x34ec5b,_0x2726b5;const _0x4f15cf=this[_0x344d61(0x347)][_0x344d61(0x5a5)];if(!_0x22cf64['dataModel']||!_0x4f15cf){if(!_0x4f15cf)console[_0x344d61(0x5c7)]('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}const _0x3b1f10=_0x22cf64[_0x344d61(0x2aa)],_0x3cd37b=_0x3b1f10[_0x344d61(0x2dd)],_0x2a036a=(_0x34ec5b=_0x3b1f10['va'])!==null&&_0x34ec5b!==void 0x0?_0x34ec5b:_univerjs_core[_0x344d61(0x37e)][_0x344d61(0x344)],_0x5247ea=(_0x2726b5=_0x3b1f10['ha'])!==null&&_0x2726b5!==void 0x0?_0x2726b5:_univerjs_core['HorizontalAlign'][_0x344d61(0x58b)];if(!_0x3cd37b)return;const _0x109e19=_0x22cf64[_0x344d61(0x3e4)],_0x38049a=prepareShapeTextDocumentData(_0x3cd37b,{'isHorizontal':_0x109e19!==![],'textRect':_0x4a6f7d,'verticalAlign':_0x2a036a,'horizontalAlign':_0x5247ea}),_0xfb9cdc=new _univerjs_core['DocumentDataModel'](_0x38049a),_0x306293=new _univerjs_engine_render[(_0x344d61(0x1e6))](_0xfb9cdc),_0xfbd4f1=_univerjs_engine_render['DocumentSkeleton']['create'](_0x306293,_0x4f15cf);console[_0x344d61(0x5c7)](_0x38049a,_0xfb9cdc,_0xfbd4f1),_0xfbd4f1[_0x344d61(0x246)]();const _0xbc9182=new _univerjs_engine_render[(_0x344d61(0x1a3))](_0x344d61(0x53a)+this['oKey'],_0xfbd4f1,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0xbc9182[_0x344d61(0x4fb)](_0x4a6f7d[_0x344d61(0x354)],_0x4a6f7d['height']),_0x30affd[_0x344d61(0x63b)](),_0x30affd[_0x344d61(0x336)](_0x4a6f7d[_0x344d61(0x6d2)],_0x4a6f7d[_0x344d61(0x523)]),_0x30affd[_0x344d61(0x199)](),_0x30affd[_0x344d61(0x39c)](0x0,0x0,_0x4a6f7d['width'],_0x4a6f7d[_0x344d61(0x396)]),_0x30affd[_0x344d61(0x56d)](),_0xbc9182[_0x344d61(0x5d6)](_0x30affd),_0x30affd[_0x344d61(0x1c9)](),_0xbc9182[_0x344d61(0x258)](),_0xfbd4f1['dispose'](),_0x306293[_0x344d61(0x258)](),_0xfb9cdc['dispose']();}[_0x3cbade(0x545)](_0x1e99a5,_0x18372d,_0x5706b1=![]){const _0x4ea293=_0x3cbade;if(!this[_0x4ea293(0x634)])return this[_0x4ea293(0x67d)](![]),this;let {width:_0x12dedd,height:_0x13296b,left:_0x3933d0,top:_0x552f52}=this;const _0x5a87d6=this[_0x4ea293(0x3f5)]();_0x12dedd=_0x5a87d6[_0x4ea293(0x354)],_0x13296b=_0x5a87d6[_0x4ea293(0x396)],_0x3933d0=_0x5a87d6[_0x4ea293(0x6d2)],_0x552f52=_0x5a87d6[_0x4ea293(0x523)];if(this[_0x4ea293(0x2cb)](_0x18372d)){const {top:_0x3ca37c,left:_0x4a0a93,bottom:_0xcdf34d,right:_0x3ad49d}=_0x18372d[_0x4ea293(0x3b3)];if(_0x12dedd+this[_0x4ea293(0x5a1)]+_0x3933d0<_0x4a0a93||_0x3ad49d<_0x3933d0||_0x13296b+this[_0x4ea293(0x5a1)]+_0x552f52<_0x3ca37c||_0xcdf34d<_0x552f52)return this;}const _0x5bf080=_0x3933d0+_0x12dedd/0x2,_0x11152b=_0x552f52+_0x13296b/0x2;let _0x391b3d=this['transform'][_0x4ea293(0x665)]();if(this['_props'][_0x4ea293(0x2be)]){const _0x7a155d=this[_0x4ea293(0x269)](),_0x556e60=new _univerjs_engine_render[(_0x4ea293(0x476))]();_0x556e60['composeMatrix']({..._0x7a155d}),_0x391b3d=_0x556e60['getMatrix']();}_0x1e99a5['save']();if(this[_0x4ea293(0x347)][_0x4ea293(0x6b9)][_0x4ea293(0x4d5)]===!![]){}else _0x1e99a5[_0x4ea293(0x277)](_0x391b3d[0x0],_0x391b3d[0x1],_0x391b3d[0x2],_0x391b3d[0x3],_0x5bf080,_0x11152b);return this[_0x4ea293(0x65b)](_0x1e99a5,_0x18372d,_0x12dedd,_0x13296b),_0x1e99a5[_0x4ea293(0x1c9)](),this[_0x4ea293(0x67d)](![]),this;}[_0x3cbade(0x494)](_0x135511){const _0x95c891=_0x3cbade,{left:_0x5762ad,top:_0x5b2551,width:_0x363d6f,height:_0x476bc7}=this[_0x95c891(0x3f5)](),_0x16ac2b=this[_0x95c891(0x277)][_0x95c891(0x665)](),_0x4d4d48=_0x5762ad+_0x363d6f/0x2,_0x3e2e53=_0x5b2551+_0x476bc7/0x2,_0x128c56=new _univerjs_engine_render[(_0x95c891(0x476))]([_0x16ac2b[0x0],_0x16ac2b[0x1],_0x16ac2b[0x2],_0x16ac2b[0x3],_0x4d4d48,_0x3e2e53]),_0x3043fb=this[_0x95c891(0x3aa)]();return(this[_0x95c891(0x25d)]&&(_0x3043fb===null||_0x3043fb===void 0x0?void 0x0:_0x3043fb['classType'])===_univerjs_engine_render[_0x95c891(0x612)][_0x95c891(0x20e)]?_0x3043fb[_0x95c891(0x197)][_0x95c891(0x339)](_0x128c56):_0x128c56)['invert']()[_0x95c891(0x278)](_0x135511);}[_0x3cbade(0x640)](_0x449120){const _0x46da86=_0x3cbade,{left:_0x5c4296,top:_0x167e1b,width:_0x523e93,height:_0x2f228b}=this[_0x46da86(0x3f5)](),_0x3244db=_0x5c4296+_0x523e93/0x2,_0x91b9e=_0x167e1b+_0x2f228b/0x2,_0x2e1bbd=this[_0x46da86(0x277)][_0x46da86(0x665)](),_0x47ef4c=new _univerjs_engine_render['Transform']([_0x2e1bbd[0x0],_0x2e1bbd[0x1],_0x2e1bbd[0x2],_0x2e1bbd[0x3],_0x3244db,_0x91b9e]),_0x469a85=this['getParent'](),_0x31dc7f=(this[_0x46da86(0x25d)]&&(_0x469a85===null||_0x469a85===void 0x0?void 0x0:_0x469a85['classType'])===_univerjs_engine_render[_0x46da86(0x612)]['GROUP']?_0x469a85[_0x46da86(0x197)][_0x46da86(0x339)](_0x47ef4c):_0x47ef4c)[_0x46da86(0x28b)]()[_0x46da86(0x278)](_0x449120),_0x45306b=_0x523e93/0x2,_0x2305bc=_0x2f228b/0x2,_0x322825=this[_0x46da86(0x347)][_0x46da86(0x6b9)];if(_0x322825&&_0x322825['isLineShape']())return _0x322825[_0x46da86(0x395)](_0x31dc7f['x'],_0x31dc7f['y'],_0x523e93,_0x2f228b);if(_0x31dc7f['x']>=-_0x45306b-this[_0x46da86(0x5a1)]/0x2&&_0x31dc7f['x']<=_0x45306b+this[_0x46da86(0x5a1)]/0x2&&_0x31dc7f['y']>=-_0x2305bc-this['strokeWidth']/0x2&&_0x31dc7f['y']<=_0x2305bc+this[_0x46da86(0x5a1)]/0x2)return!![];return![];}['dispose'](){const _0x592dbb=_0x3cbade;this[_0x592dbb(0x347)][_0x592dbb(0x6b9)]=null,super[_0x592dbb(0x258)]();}};function __decorateParam(_0x15acfc,_0x2efdbc){return function(_0x5f3656,_0x5bb95d){_0x2efdbc(_0x5f3656,_0x5bb95d,_0x15acfc);};}function __decorate(_0x24293f,_0xadbe4d,_0x4cb991,_0x35dcb6){const _0x2b1615=_0x3cbade;var _0x5ba06a=arguments[_0x2b1615(0x4ba)],_0x1996ba=_0x5ba06a<0x3?_0xadbe4d:_0x35dcb6===null?_0x35dcb6=Object[_0x2b1615(0x605)](_0xadbe4d,_0x4cb991):_0x35dcb6,_0x5192b0;if(typeof Reflect==='object'&&typeof Reflect[_0x2b1615(0x1d4)]===_0x2b1615(0x3da))_0x1996ba=Reflect[_0x2b1615(0x1d4)](_0x24293f,_0xadbe4d,_0x4cb991,_0x35dcb6);else{for(var _0x354a2e=_0x24293f[_0x2b1615(0x4ba)]-0x1;_0x354a2e>=0x0;_0x354a2e--)if(_0x5192b0=_0x24293f[_0x354a2e])_0x1996ba=(_0x5ba06a<0x3?_0x5192b0(_0x1996ba):_0x5ba06a>0x3?_0x5192b0(_0xadbe4d,_0x4cb991,_0x1996ba):_0x5192b0(_0xadbe4d,_0x4cb991))||_0x1996ba;}return _0x5ba06a>0x3&&_0x1996ba&&Object[_0x2b1615(0x621)](_0xadbe4d,_0x4cb991,_0x1996ba),_0x1996ba;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core['Disposable']{constructor(_0x5240d2,_0x4c09b6,_0x1e6c56,_0x537372,_0x44ad17){const _0x13423b=_0x3cbade;super(),this[_0x13423b(0x648)]=_0x5240d2,this[_0x13423b(0x1f4)]=_0x4c09b6,this[_0x13423b(0x3e0)]=_0x1e6c56,this[_0x13423b(0x3e9)]=_0x537372,this[_0x13423b(0x1a1)]=_0x44ad17;}[_0x3cbade(0x296)](_0xd68963,_0x5a391){const _0x558d9c=_0x3cbade,{transform:_0x4ce84d,drawingType:_0x43a19f,srcRect:_0x581f57,prstGeom:_0x16c454,groupId:_0x50a305,unitId:_0x16406e,subUnitId:_0x240eea,drawingId:_0x2e18c0,isMultiTransform:_0x1db6f0,transforms:_0x3990b3}=_0xd68963;if(_0x43a19f!==_univerjs_core['DrawingTypeEnum'][_0x558d9c(0x4a0)])return;if(!this[_0x558d9c(0x648)][_0x558d9c(0x4d0)]())return;if(_0x4ce84d==null)return;const _0x2b8361=_0x1db6f0&&_0x3990b3?_0x3990b3:[_0x4ce84d],_0x2d566f=[];for(const _0x59201d of _0x2b8361){const {left:_0x1db185,top:_0x529b04,width:_0x236351,height:_0x2ffe27,angle:_0x16ef1d,flipX:_0x337a4a,flipY:_0xab66c6,skewX:_0x55d377,skewY:_0x4500f1}=_0x59201d,_0x430e98=_0x2b8361[_0x558d9c(0x1fd)](_0x59201d),_0x2d446f=(0x0,_univerjs_drawing[_0x558d9c(0x564)])({'unitId':_0x16406e,'subUnitId':_0x240eea,'drawingId':_0x2e18c0},_0x1db6f0?_0x430e98:void 0x0),_0x1e95af=_0x5a391[_0x558d9c(0x231)](_0x2d446f);if(_0x1e95af!=null){_0x1e95af['transformByState']({'left':_0x1db185,'top':_0x529b04,'width':_0x236351,'height':_0x2ffe27,'angle':_0x16ef1d,'flipX':_0x337a4a,'flipY':_0xab66c6,'skewX':_0x55d377,'skewY':_0x4500f1});continue;}const _0x5aac7d=this['_drawingManagerService'][_0x558d9c(0x342)](_0x16406e,_0x240eea),_0x294722=_0x5aac7d['indexOf'](_0x2e18c0);if(_0x5a391[_0x558d9c(0x231)](_0x2d446f))continue;if(!this[_0x558d9c(0x648)][_0x558d9c(0x4d0)]())continue;const _0x39041d=this['_sheetsShapeService'][_0x558d9c(0x58c)](_0x16406e,_0x240eea,_0x2e18c0);if(!_0x39041d)continue;const _0x23e3d5=new DrawingShape(_0x2d446f,{...(0x0,_univerjs_pro_engine_shape[_0x558d9c(0x5c0)])(_0x39041d[_0x558d9c(0x68f)]())?{..._0x59201d,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x59201d},'zIndex':_0x294722===-0x1?_0x5aac7d[_0x558d9c(0x4ba)]-0x1:_0x294722,'shapeModel':_0x39041d,'localeService':this['_localeService'],'shapeId':_0x2e18c0,'unitId':_0x16406e,'subUnitId':_0x240eea});_0x5a391[_0x558d9c(0x3c4)](_0x23e3d5,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']);if(this[_0x558d9c(0x648)]['getDrawingEditable']())_0x5a391[_0x558d9c(0x307)](_0x23e3d5);_0x50a305&&(0x0,_univerjs_drawing_ui[_0x558d9c(0x2f6)])({'drawingId':_0x50a305,'unitId':_0x16406e,'subUnitId':_0x240eea},_0x23e3d5,_0x5a391,this['_drawingManagerService']);if(_0x16c454!=null)_0x23e3d5[_0x558d9c(0x517)](_0x16c454);if(_0x581f57!=null)_0x23e3d5['setSrcRect'](_0x581f57);this[_0x558d9c(0x23d)](_0x23e3d5,_0x39041d[_0x558d9c(0x50f)]()),_0x2d566f[_0x558d9c(0x4b4)](_0x23e3d5);}return _0x2d566f;}['_loadShapePictureFill'](_0x420e19,_0x5400db){const _0x1aca32=_0x3cbade;var _0x53a821;const _0x501ea2=_0x5400db[_0x1aca32(0x2ce)];if(!_0x501ea2||_0x501ea2[_0x1aca32(0x2ca)]!==_univerjs_pro_engine_shape[_0x1aca32(0x192)][_0x1aca32(0x280)]||!_0x501ea2[_0x1aca32(0x304)])return;const _0x2b7fa7=_0x501ea2[_0x1aca32(0x304)],_0x9b407e=(_0x53a821=_0x501ea2[_0x1aca32(0x519)])!==null&&_0x53a821!==void 0x0?_0x53a821:_univerjs_pro_engine_shape[_0x1aca32(0x5dd)][_0x1aca32(0x2f7)],_0x58d631=this[_0x1aca32(0x3e9)][_0x1aca32(0x6b2)](_0x2b7fa7,_0x9b407e);if(_0x58d631){_0x420e19[_0x1aca32(0x3e7)](_0x58d631);return;}this[_0x1aca32(0x653)](_0x420e19,_0x2b7fa7,_0x9b407e);}async['_loadAndSetImage'](_0x3e034c,_0x380534,_0x4e077b){const _0x12d1fe=_0x3cbade;let _0x2c9a27;try{if(_0x4e077b===_univerjs_pro_engine_shape[_0x12d1fe(0x5dd)][_0x12d1fe(0x529)])_0x2c9a27=await this[_0x12d1fe(0x3e9)][_0x12d1fe(0x3a1)](_0x380534);else{if(_0x4e077b===_univerjs_pro_engine_shape[_0x12d1fe(0x5dd)]['URL'])try{_0x2c9a27=await this[_0x12d1fe(0x1a1)][_0x12d1fe(0x3a1)](_0x380534);}catch{_0x2c9a27=_0x380534;}else _0x2c9a27=_0x380534;}}catch(_0x3264d2){console[_0x12d1fe(0x348)](_0x12d1fe(0x643),_0x3264d2);return;}const _0x3e48d9=new window[(_0x12d1fe(0x3f4))]();_0x3e48d9[_0x12d1fe(0x410)]=()=>{const _0x19fa4a=_0x12d1fe;this[_0x19fa4a(0x3e9)]['addImageSourceCache'](_0x380534,_0x4e077b,_0x3e48d9),_0x3e034c[_0x19fa4a(0x3e7)](_0x3e48d9);},_0x3e48d9['onerror']=()=>{const _0x5cf781=_0x12d1fe;console[_0x5cf781(0x348)](_0x5cf781(0x4b7),_0x380534);},_0x3e48d9[_0x12d1fe(0x403)]=_0x2c9a27;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_pro_sheets_shape[_0x3cbade(0x39e)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x3cbade(0x2bb)])),__decorateParam(0x3,_univerjs_drawing[_0x3cbade(0x698)]),__decorateParam(0x4,_univerjs_core[_0x3cbade(0x2a5)])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0x4a793b,_0xee4624,_0x17c1bb,_0x2f6cf0,_0x433cb0,_0x5c6203){const _0xb01d3e=_0x3cbade;super(),this['_commandService']=_0x4a793b,this[_0xb01d3e(0x1c7)]=_0xee4624,this[_0xb01d3e(0x648)]=_0x17c1bb,this[_0xb01d3e(0x368)]=_0x2f6cf0,this[_0xb01d3e(0x328)]=_0x433cb0,this[_0xb01d3e(0x680)]=_0x5c6203,this[_0xb01d3e(0x257)]();}[_0x3cbade(0x257)](){const _0x17ded7=_0x3cbade;this[_0x17ded7(0x408)](),this[_0x17ded7(0x4c4)](),this[_0x17ded7(0x4ed)]();}[_0x3cbade(0x408)](){const _0x6310aa=_0x3cbade;this[_0x6310aa(0x46e)](this[_0x6310aa(0x648)][_0x6310aa(0x21f)][_0x6310aa(0x61f)](_0x305bc5=>{this['_insertShapes'](_0x305bc5);}));}[_0x3cbade(0x4c4)](){const _0x287669=_0x3cbade;this[_0x287669(0x46e)](this[_0x287669(0x30d)][_0x287669(0x2bd)](_0x1ecc3b=>{const _0x3d2601=_0x287669;if(_0x1ecc3b['id']===_univerjs_pro_sheets_shape[_0x3d2601(0x1bc)]['id']){var _0x22a92e;const {unitId:_0x3e878a,subUnitId:_0x415783,shapeId:_0x4130b4}=_0x1ecc3b[_0x3d2601(0x250)],_0x5c7c07=this[_0x3d2601(0x5da)](_0x3e878a);if(_0x5c7c07==null)return;const {scene:_0x22cf02}=_0x5c7c07,_0x2a8299=(0x0,_univerjs_drawing[_0x3d2601(0x564)])({'unitId':_0x3e878a,'subUnitId':_0x415783,'drawingId':_0x4130b4}),_0x19eb0e=_0x22cf02[_0x3d2601(0x231)](_0x2a8299);if(!((_0x22a92e=this[_0x3d2601(0x1c7)][_0x3d2601(0x412)](_0x3e878a))===null||_0x22a92e===void 0x0?void 0x0:_0x22a92e[_0x3d2601(0x4ce)](_univerjs_sheets_ui[_0x3d2601(0x49d)])[_0x3d2601(0x41e)](_0x415783)))return![];if(_0x19eb0e)return;this[_0x3d2601(0x5a2)]([{'unitId':_0x3e878a,'subUnitId':_0x415783,'drawingId':_0x4130b4}]);}}));}[_0x3cbade(0x4ed)](){const _0x5b022d=_0x3cbade;this[_0x5b022d(0x46e)](this[_0x5b022d(0x648)][_0x5b022d(0x3a7)][_0x5b022d(0x61f)](_0x42f8fb=>{_0x42f8fb['forEach'](_0x348576=>{const _0x40ca79=_0x1b00,{unitId:_0x10524c,subUnitId:_0x544dfb,drawingId:_0x5715ce}=_0x348576,_0x47cc90=this[_0x40ca79(0x648)]['getDrawingByParam'](_0x348576);if(_0x47cc90==null)return;const {transform:_0x36c687,drawingType:_0x3db83a,srcRect:_0x47044c,prstGeom:_0x1d15c2}=_0x47cc90;if(_0x3db83a!==_univerjs_core['DrawingTypeEnum'][_0x40ca79(0x4a0)])return;const _0x181e0c=this[_0x40ca79(0x5da)](_0x10524c);if(_0x181e0c==null)return;const {scene:_0x28cd3e,transformer:_0x556486}=_0x181e0c;if(_0x36c687==null)return!![];const _0x5ab500=(0x0,_univerjs_drawing[_0x40ca79(0x564)])({'unitId':_0x10524c,'subUnitId':_0x544dfb,'drawingId':_0x5715ce}),_0x37f61b=_0x28cd3e[_0x40ca79(0x231)](_0x5ab500);if(_0x37f61b==null)return!![];_0x37f61b['setSrcRect'](_0x47044c),_0x37f61b[_0x40ca79(0x517)](_0x1d15c2);});}));}[_0x3cbade(0x525)](_0x14aa6c,_0x383e1d){const _0x3e40b2=_0x3cbade,{unitId:_0x49e94b,subUnitId:_0x391f6b,drawingId:_0x381421}=_0x14aa6c,_0x1e3928=this[_0x3e40b2(0x5da)](_0x49e94b);if(_0x1e3928==null)return;const {scene:_0x351e2f}=_0x1e3928,_0x42a53f=(0x0,_univerjs_drawing[_0x3e40b2(0x564)])({'unitId':_0x49e94b,'subUnitId':_0x391f6b,'drawingId':_0x381421}),_0x4a666b=_0x351e2f[_0x3e40b2(0x231)](_0x42a53f);if(_0x4a666b==null)return;_0x4a666b[_0x3e40b2(0x3e7)](_0x383e1d);}[_0x3cbade(0x5a2)](_0x244b3b){const _0x4a12c6=_0x3cbade;_0x244b3b[_0x4a12c6(0x237)](async _0x5964f2=>{const _0x276463=_0x4a12c6;var _0x311126;const {unitId:_0x32388c,subUnitId:_0x538ed1}=_0x5964f2,_0x4d415c=this[_0x276463(0x5da)](_0x32388c),_0x3ef9aa=(_0x311126=(0x0,_univerjs_drawing_ui[_0x276463(0x63c)])(this[_0x276463(0x368)],_0x32388c))===null||_0x311126===void 0x0?void 0x0:_0x311126[_0x276463(0x3f1)];if(_0x4d415c==null||_0x3ef9aa!==_0x538ed1)return;const _0x117c81=this[_0x276463(0x648)][_0x276463(0x511)](_0x5964f2);if(_0x117c81==null)return;if(_0x117c81[_0x276463(0x27c)]!==_univerjs_core[_0x276463(0x625)][_0x276463(0x4a0)])return;if((0x0,_univerjs_pro_engine_shape[_0x276463(0x5c0)])((_0x117c81['data']||{})[_0x276463(0x62a)])){const _0x4f7192=_0x117c81[_0x276463(0x277)];if(_0x4f7192)_0x117c81['transform']={..._0x4f7192,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x276463(0x648)][_0x276463(0x329)]([_0x117c81]),this['_sheetDrawingShapeRenderController'][_0x276463(0x296)](_0x117c81,_0x4d415c[_0x276463(0x53c)]);});}['_getSceneAndTransformerByDrawingSearch'](_0xf6160a){const _0x181230=_0x3cbade;if(_0xf6160a==null)return;const _0x34e784=this[_0x181230(0x1c7)]['getRenderById'](_0xf6160a),_0x425568=_0x34e784===null||_0x34e784===void 0x0?void 0x0:_0x34e784[_0x181230(0x53c)];if(_0x425568==null)return null;return{'scene':_0x425568,'transformer':_0x425568[_0x181230(0x586)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_engine_render[_0x3cbade(0x2fa)]),__decorateParam(0x2,_univerjs_drawing[_0x3cbade(0x3a9)]),__decorateParam(0x3,_univerjs_core[_0x3cbade(0x3ea)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_drawing_ui[_0x3cbade(0x204)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3cbade(0x319)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x917d2c){const _0x388d09=_0x3cbade;var _0x29b829,_0x1e5cc2,_0x2b016e,_0x578094,_0x3332e9,_0x2ae6c4,_0x2a9c9b,_0x49e6b9,_0x48f206,_0xf69bb6,_0x2fb410,_0x1e3329,_0x390d07;const {unitId:_0x576593,subUnitId:_0x3063fb,shapeId:_0x28afaf,shapeData:_0x2ce930,disableShapeOption:_0x373537}=_0x917d2c,_0x13103d=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x388d09(0x2bb)]),_0x2f7fa9=(0x0,_univerjs_ui[_0x388d09(0x287)])(_univerjs_core[_0x388d09(0x447)]),_0x43fe3=(0x0,_univerjs_ui[_0x388d09(0x287)])(_univerjs_core[_0x388d09(0x6d7)]),_0x36b8b8=(0x0,_univerjs_ui[_0x388d09(0x287)])(ShapeUpdateController),_0x54d369=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing[_0x388d09(0x698)]),_0x43fca0=(0x0,react[_0x388d09(0x5d9)])(null),_0x17d158=_0x2ce930[_0x388d09(0x2ce)],_0x1e856f=!!(_0x17d158===null||_0x17d158===void 0x0?void 0x0:_0x17d158[_0x388d09(0x304)]),[_0x43618f,_0x298cf7]=(0x0,react[_0x388d09(0x5bc)])((_0x29b829=_0x17d158===null||_0x17d158===void 0x0?void 0x0:_0x17d158[_0x388d09(0x305)])!==null&&_0x29b829!==void 0x0?_0x29b829:0x1),[_0x25d7b6,_0x4926ab]=(0x0,react[_0x388d09(0x5bc)])((_0x1e5cc2=_0x17d158===null||_0x17d158===void 0x0?void 0x0:_0x17d158[_0x388d09(0x6ae)])!==null&&_0x1e5cc2!==void 0x0?_0x1e5cc2:_univerjs_pro_engine_shape[_0x388d09(0x4bf)][_0x388d09(0x5d0)]),[_0x136cde,_0x3c565d]=(0x0,react[_0x388d09(0x5bc)])((_0x2b016e=_0x17d158===null||_0x17d158===void 0x0?void 0x0:_0x17d158[_0x388d09(0x254)])!==null&&_0x2b016e!==void 0x0?_0x2b016e:![]),[_0x1bffb1,_0x405ceb]=(0x0,react[_0x388d09(0x5bc)])((_0x578094=_0x17d158===null||_0x17d158===void 0x0||(_0x3332e9=_0x17d158[_0x388d09(0x310)])===null||_0x3332e9===void 0x0?void 0x0:_0x3332e9[_0x388d09(0x63d)])!==null&&_0x578094!==void 0x0?_0x578094:0x0),[_0x4dcec0,_0x5b00dd]=(0x0,react['useState'])((_0x2ae6c4=_0x17d158===null||_0x17d158===void 0x0||(_0x2a9c9b=_0x17d158[_0x388d09(0x310)])===null||_0x2a9c9b===void 0x0?void 0x0:_0x2a9c9b[_0x388d09(0x584)])!==null&&_0x2ae6c4!==void 0x0?_0x2ae6c4:0x0),[_0x108a2e,_0x5058fc]=(0x0,react[_0x388d09(0x5bc)])((_0x49e6b9=_0x17d158===null||_0x17d158===void 0x0||(_0x48f206=_0x17d158[_0x388d09(0x310)])===null||_0x48f206===void 0x0?void 0x0:_0x48f206[_0x388d09(0x520)])!==null&&_0x49e6b9!==void 0x0?_0x49e6b9:0x1),[_0x31f80e,_0x45b777]=(0x0,react['useState'])((_0xf69bb6=_0x17d158===null||_0x17d158===void 0x0||(_0x2fb410=_0x17d158[_0x388d09(0x310)])===null||_0x2fb410===void 0x0?void 0x0:_0x2fb410['scaleY'])!==null&&_0xf69bb6!==void 0x0?_0xf69bb6:0x1),[_0x55cb23,_0x4c90ea]=(0x0,react[_0x388d09(0x5bc)])((_0x1e3329=_0x17d158===null||_0x17d158===void 0x0||(_0x390d07=_0x17d158['imageTile'])===null||_0x390d07===void 0x0?void 0x0:_0x390d07[_0x388d09(0x24c)])!==null&&_0x1e3329!==void 0x0?_0x1e3329:'tl'),_0x56bb8d=_0x25d7b6===_univerjs_pro_engine_shape[_0x388d09(0x4bf)]['Tile'],_0x2d5e02=Math[_0x388d09(0x59c)]((0x1-_0x43618f)*0x64),_0x213d40=Math['round'](_0x108a2e*0x64),_0x73f60d=Math[_0x388d09(0x59c)](_0x31f80e*0x64),_0x35ee95=_0xb5b74=>_0x13103d['t'](_0xb5b74),_0x5401c5=[{'label':_0x35ee95(_0x388d09(0x639)),'value':'tl'},{'label':_0x35ee95('sheets-shape.fill.picture.align.t'),'value':'t'},{'label':_0x35ee95(_0x388d09(0x496)),'value':'tr'},{'label':_0x35ee95(_0x388d09(0x601)),'value':'l'},{'label':_0x35ee95(_0x388d09(0x43b)),'value':_0x388d09(0x620)},{'label':_0x35ee95(_0x388d09(0x492)),'value':'r'},{'label':_0x35ee95(_0x388d09(0x533)),'value':'bl'},{'label':_0x35ee95('sheets-shape.fill.picture.align.b'),'value':'b'},{'label':_0x35ee95(_0x388d09(0x221)),'value':'br'}],_0x475629=_0x430cad=>{updateShapeData(_0x2f7fa9,_0x576593,_0x3063fb,_0x28afaf,{'oldShapeData':{'fill':_0x17d158?{..._0x17d158}:void 0x0}},{'fill':{..._0x17d158,..._0x430cad}});},_0x2220cb=_0x1869e1=>{const _0x345b1e=_0x388d09;_0x475629({'imageTile':{..._0x17d158===null||_0x17d158===void 0x0?void 0x0:_0x17d158[_0x345b1e(0x310)],..._0x1869e1}});},_0x4aee08=()=>{const _0x2f9178=_0x388d09;var _0x37d8f3;return(_0x37d8f3=_0x43fca0['current'])===null||_0x37d8f3===void 0x0?void 0x0:_0x37d8f3[_0x2f9178(0x2e6)]();},_0x6332a7=async _0x5a8816=>{const _0x5c180c=_0x388d09;var _0x378be0;const _0x5a6b7c=(_0x378be0=_0x5a8816[_0x5c180c(0x21d)]['files'])===null||_0x378be0===void 0x0?void 0x0:_0x378be0[0x0];if(!_0x5a6b7c)return;_0x5a8816['target'][_0x5c180c(0x325)]='';const _0x3796ba=await _0x54d369[_0x5c180c(0x455)](_0x5a6b7c);if(_0x3796ba==null)return;const {imageSourceType:_0x159c6a,source:_0x2604d7,base64Cache:_0x144995}=_0x3796ba,{image:_0x4eb53f}=await(0x0,_univerjs_drawing['getImageSize'])(_0x144995||'');_0x54d369['addImageSourceCache'](_0x2604d7,_0x159c6a,_0x4eb53f),updateShapeData(_0x2f7fa9,_0x576593,_0x3063fb,_0x28afaf,{'oldShapeData':{'fill':_0x17d158?{..._0x17d158}:void 0x0}},{'fill':{..._0x17d158,'fillType':_univerjs_pro_engine_shape[_0x5c180c(0x192)][_0x5c180c(0x280)],'fillImageSource':_0x2604d7,'fillImageSourceType':_0x159c6a}}),_0x36b8b8['updateShapeFillImage']({'unitId':_0x576593,'subUnitId':_0x3063fb,'drawingId':_0x28afaf},_0x4eb53f);},_0x79445b=_0x388d09(0x5df),_0x2ec165=_0x388d09(0x55b);return(0x0,react_jsx_runtime[_0x388d09(0x5b8)])(_0x388d09(0x477),{'className':_0x388d09(0x626),'children':[(0x0,react_jsx_runtime[_0x388d09(0x5b8)])(_0x388d09(0x477),{'className':_0x388d09(0x3a5),'children':[(0x0,react_jsx_runtime['jsx'])(_0x388d09(0x627),{'className':_0x79445b,'children':_0x35ee95('sheets-shape.fill.picture.source')}),(0x0,react_jsx_runtime[_0x388d09(0x5b8)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_0x388d09(0x1da),{'ref':_0x43fca0,'type':_0x388d09(0x2a2),'accept':_0x388d09(0x4fe),'className':'univer-hidden','onChange':_0x6332a7}),(0x0,react_jsx_runtime[_0x388d09(0x5b8)])('div',{'className':_0x388d09(0x4e4),'children':[(0x0,react_jsx_runtime['jsx'])(_0x388d09(0x460),{'type':_0x388d09(0x460),'disabled':_0x373537,'className':_0x388d09(0x5fe),'onClick':_0x4aee08,'children':(0x0,react_jsx_runtime['jsxs'])(_0x388d09(0x627),{'children':[_0x35ee95(_0x388d09(0x31f)),'\x20']})}),_0x1e856f&&(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_0x388d09(0x477),{'className':_0x388d09(0x363),'children':(0x0,react_jsx_runtime[_0x388d09(0x65c)])('img',{'src':_0x17d158===null||_0x17d158===void 0x0?void 0x0:_0x17d158[_0x388d09(0x304)],'alt':'','className':'univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover'})})]})]})]}),(0x0,react_jsx_runtime[_0x388d09(0x5b8)])('div',{'className':_0x2ec165,'children':[(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_0x388d09(0x627),{'className':_0x79445b,'children':_0x35ee95('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_0x388d09(0x477),{'className':_0x388d09(0x583),'children':(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_univerjs_design[_0x388d09(0x235)],{'className':_0x388d09(0x510),'value':_0x2d5e02,'disabled':_0x373537,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x17f204=>_0x17f204+'%','parser':_0x11cccb=>(_0x11cccb===null||_0x11cccb===void 0x0?void 0x0:_0x11cccb['replace']('%',''))||'','onChange':_0x1fff5e=>{const _0x30fc20=_0x388d09,_0xd802d6=(0x64-Math[_0x30fc20(0x19a)](0x0,Math['min'](0x64,_0x1fff5e!==null&&_0x1fff5e!==void 0x0?_0x1fff5e:0x0)))/0x64;_0x298cf7(_0xd802d6),_0x475629({'imageOpacity':_0xd802d6}),_0x43fe3[_0x30fc20(0x44a)](_univerjs_core[_0x30fc20(0x3d7)],![]);},'onFocus':()=>_0x43fe3[_0x388d09(0x44a)](_univerjs_core[_0x388d09(0x3d7)],!![]),'onBlur':()=>_0x43fe3['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_univerjs_design[_0x388d09(0x524)],{'checked':_0x56bb8d,'disabled':_0x373537,'onChange':_0x4c1126=>{const _0x4c2b05=_0x388d09,_0x40e99a=_0x4c1126?_univerjs_pro_engine_shape[_0x4c2b05(0x4bf)][_0x4c2b05(0x658)]:_univerjs_pro_engine_shape[_0x4c2b05(0x4bf)][_0x4c2b05(0x5d0)];_0x4926ab(_0x40e99a),_0x475629({'imageFillMode':_0x40e99a});},'children':(0x0,react_jsx_runtime['jsx'])(_0x388d09(0x627),{'className':_0x388d09(0x375),'children':_0x35ee95(_0x388d09(0x558))})}),_0x56bb8d&&(0x0,react_jsx_runtime['jsxs'])(_0x388d09(0x477),{'className':_0x388d09(0x4c8),'children':[(0x0,react_jsx_runtime[_0x388d09(0x5b8)])(_0x388d09(0x477),{'className':_0x2ec165,'children':[(0x0,react_jsx_runtime['jsx'])(_0x388d09(0x627),{'className':_0x79445b,'children':_0x35ee95('sheets-shape.fill.picture.offsetX')}),(0x0,react_jsx_runtime['jsx'])(_0x388d09(0x477),{'className':_0x388d09(0x583),'children':(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_univerjs_design[_0x388d09(0x235)],{'className':_0x388d09(0x510),'value':_0x1bffb1,'disabled':_0x373537,'step':0x1,'onChange':_0x41cb62=>{_0x2220cb({'offsetX':_0x41cb62!==null&&_0x41cb62!==void 0x0?_0x41cb62:0x0}),_0x405ceb(_0x41cb62!==null&&_0x41cb62!==void 0x0?_0x41cb62:0x0);},'onFocus':()=>_0x43fe3[_0x388d09(0x44a)](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0x43fe3[_0x388d09(0x44a)](_univerjs_core[_0x388d09(0x3d7)],![])})})]}),(0x0,react_jsx_runtime[_0x388d09(0x5b8)])(_0x388d09(0x477),{'className':_0x2ec165,'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x79445b,'children':_0x35ee95('sheets-shape.fill.picture.offsetY')}),(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_0x388d09(0x477),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_univerjs_design['InputNumber'],{'className':_0x388d09(0x510),'value':_0x4dcec0,'disabled':_0x373537,'step':0x1,'onChange':_0x28b767=>{_0x2220cb({'offsetY':_0x28b767!==null&&_0x28b767!==void 0x0?_0x28b767:0x0}),_0x5b00dd(_0x28b767!==null&&_0x28b767!==void 0x0?_0x28b767:0x0);},'onFocus':()=>_0x43fe3[_0x388d09(0x44a)](_univerjs_core[_0x388d09(0x3d7)],!![]),'onBlur':()=>_0x43fe3[_0x388d09(0x44a)](_univerjs_core[_0x388d09(0x3d7)],![])})})]}),(0x0,react_jsx_runtime[_0x388d09(0x5b8)])(_0x388d09(0x477),{'className':_0x2ec165,'children':[(0x0,react_jsx_runtime[_0x388d09(0x65c)])('span',{'className':_0x79445b,'children':_0x35ee95(_0x388d09(0x514))}),(0x0,react_jsx_runtime['jsx'])(_0x388d09(0x477),{'className':_0x388d09(0x583),'children':(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_univerjs_design[_0x388d09(0x235)],{'className':_0x388d09(0x510),'value':_0x213d40,'disabled':_0x373537,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x492a79=>_0x492a79+'%','parser':_0x1f221b=>(_0x1f221b===null||_0x1f221b===void 0x0?void 0x0:_0x1f221b['replace']('%',''))||'','onChange':_0x46e3e2=>{const _0x3d6d4b=_0x388d09,_0x7f54f9=Math[_0x3d6d4b(0x19a)](0.01,(_0x46e3e2!==null&&_0x46e3e2!==void 0x0?_0x46e3e2:0x64)/0x64);_0x5058fc(_0x7f54f9),_0x2220cb({'scaleX':_0x7f54f9}),_0x43fe3[_0x3d6d4b(0x44a)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x43fe3[_0x388d09(0x44a)](_univerjs_core[_0x388d09(0x3d7)],!![]),'onBlur':()=>_0x43fe3[_0x388d09(0x44a)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x388d09(0x5b8)])('div',{'className':_0x2ec165,'children':[(0x0,react_jsx_runtime[_0x388d09(0x65c)])('span',{'className':_0x79445b,'children':_0x35ee95('sheets-shape.fill.picture.scaleY')}),(0x0,react_jsx_runtime['jsx'])(_0x388d09(0x477),{'className':_0x388d09(0x583),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':_0x388d09(0x510),'value':_0x73f60d,'disabled':_0x373537,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x3cab7a=>_0x3cab7a+'%','parser':_0x36f6f9=>(_0x36f6f9===null||_0x36f6f9===void 0x0?void 0x0:_0x36f6f9[_0x388d09(0x4a9)]('%',''))||'','onChange':_0x58595f=>{const _0x34f733=_0x388d09,_0x253922=Math[_0x34f733(0x19a)](0.01,(_0x58595f!==null&&_0x58595f!==void 0x0?_0x58595f:0x64)/0x64);_0x45b777(_0x253922),_0x2220cb({'scaleY':_0x253922}),_0x43fe3['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x43fe3[_0x388d09(0x44a)](_univerjs_core[_0x388d09(0x3d7)],!![]),'onBlur':()=>_0x43fe3['setContextValue'](_univerjs_core[_0x388d09(0x3d7)],![])})})]}),(0x0,react_jsx_runtime[_0x388d09(0x5b8)])(_0x388d09(0x477),{'className':_0x2ec165,'children':[(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_0x388d09(0x627),{'className':_0x79445b,'children':_0x35ee95(_0x388d09(0x4d1))}),(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_0x388d09(0x477),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_univerjs_design['Select'],{'className':_0x388d09(0x510),'value':_0x55cb23,'options':_0x5401c5,'disabled':_0x373537,'onChange':_0x366ea0=>{_0x4c90ea(_0x366ea0),_0x2220cb({'alignment':_0x366ea0});}})})]})]}),(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_univerjs_design[_0x388d09(0x524)],{'checked':_0x136cde,'disabled':_0x373537,'onChange':_0x2eb91a=>{_0x3c565d(_0x2eb91a),_0x475629({'imageRotateWithShape':_0x2eb91a});},'children':(0x0,react_jsx_runtime[_0x388d09(0x65c)])(_0x388d09(0x627),{'className':_0x388d09(0x375),'children':_0x35ee95('sheets-shape.fill.picture.rotateWithShape')})})]});}function ShapeFillEditor(_0x35e45f){const _0x27fc48=_0x3cbade;var _0x5969d1,_0x3aa14d,_0x1b6ea2;const _0x303a7e=(0x0,_univerjs_ui[_0x27fc48(0x287)])(_univerjs_core[_0x27fc48(0x2bb)]),_0x174563=(0x0,_univerjs_ui[_0x27fc48(0x287)])(_univerjs_core[_0x27fc48(0x447)]),_0x59f092=(0x0,_univerjs_ui[_0x27fc48(0x287)])(_univerjs_core['IContextService']),{shapeData:_0x4b5aaf,isLineShape:_0x59ff0c,unitId:_0x4ddc39,subUnitId:_0x5960c1,shapeId:_0x39157b,disableShapeOption:_0x11066b}=_0x35e45f,[_0x553295,_0x2c31fd]=(0x0,react[_0x27fc48(0x5bc)])(((_0x5969d1=_0x4b5aaf[_0x27fc48(0x2ce)])===null||_0x5969d1===void 0x0?void 0x0:_0x5969d1[_0x27fc48(0x2ca)])||_univerjs_pro_engine_shape[_0x27fc48(0x192)][_0x27fc48(0x542)]),[_0x4d0dd6,_0x40e1c6]=(0x0,react[_0x27fc48(0x5bc)])(((_0x3aa14d=_0x4b5aaf[_0x27fc48(0x2ce)])===null||_0x3aa14d===void 0x0?void 0x0:_0x3aa14d[_0x27fc48(0x23a)])||_univerjs_pro_engine_shape[_0x27fc48(0x46a)][_0x27fc48(0x2ce)]),[_0x3a1816,_0x41ce48]=(0x0,react[_0x27fc48(0x5bc)])(((_0x1b6ea2=_0x4b5aaf[_0x27fc48(0x2ce)])===null||_0x1b6ea2===void 0x0?void 0x0:_0x1b6ea2[_0x27fc48(0x59b)])||0x1),[_0x1aab3a,_0x24f137]=(0x0,react['useState'])(![]);if(_0x59ff0c)return null;const _0x4e47df=0x64-_0x3a1816*0x64;return(0x0,react_jsx_runtime[_0x27fc48(0x5b8)])(_0x27fc48(0x477),{'className':_0x27fc48(0x4ee),'children':[(0x0,react_jsx_runtime[_0x27fc48(0x5b8)])(_univerjs_design['RadioGroup'],{'value':_0x553295,'disabled':_0x11066b,'onChange':_0x325f3a=>{const _0x29c7ac=_0x27fc48;var _0x88b91b;updateShapeData(_0x174563,_0x4ddc39,_0x5960c1,_0x39157b,{'oldShapeData':{'fill':{'fillType':(_0x88b91b=_0x4b5aaf[_0x29c7ac(0x2ce)])===null||_0x88b91b===void 0x0?void 0x0:_0x88b91b[_0x29c7ac(0x2ca)]}}},{'fill':{'fillType':_0x325f3a}}),_0x2c31fd(_0x325f3a);},'direction':_0x27fc48(0x47c),'children':[(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_univerjs_design[_0x27fc48(0x2d0)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x27fc48(0x6be)],'children':(0x0,react_jsx_runtime[_0x27fc48(0x65c)])('span',{'className':_0x27fc48(0x375),'children':_0x303a7e['t'](_0x27fc48(0x3b8))})}),(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_univerjs_design[_0x27fc48(0x2d0)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x27fc48(0x542)],'children':(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_0x27fc48(0x627),{'className':_0x27fc48(0x375),'children':_0x303a7e['t']('sheets-shape.fill.solidFill')})}),(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x27fc48(0x5a3)],'children':(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_0x27fc48(0x627),{'className':_0x27fc48(0x375),'children':_0x303a7e['t'](_0x27fc48(0x67f))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x27fc48(0x2d0)],{'value':_univerjs_pro_engine_shape[_0x27fc48(0x192)]['PictureFill'],'children':(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_0x27fc48(0x627),{'className':_0x27fc48(0x375),'children':_0x303a7e['t'](_0x27fc48(0x686))})})]}),_0x553295===_univerjs_pro_engine_shape[_0x27fc48(0x192)]['SolidFill']&&(0x0,react_jsx_runtime[_0x27fc48(0x5b8)])('div',{'className':_0x27fc48(0x674),'children':[(0x0,react_jsx_runtime[_0x27fc48(0x5b8)])(_0x27fc48(0x477),{'className':_0x27fc48(0x373),'children':[(0x0,react_jsx_runtime['jsx'])(_0x27fc48(0x627),{'className':_0x27fc48(0x2a6),'children':_0x303a7e['t'](_0x27fc48(0x483))}),(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_univerjs_design['Dropdown'],{'disabled':_0x11066b,'overlay':(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_0x27fc48(0x477),{'className':_0x27fc48(0x555),'children':(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_univerjs_design['ColorPicker'],{'value':_0x4d0dd6,'onChange':_0x330a5d=>{const _0x12accc=_0x27fc48;var _0x18384e;updateShapeData(_0x174563,_0x4ddc39,_0x5960c1,_0x39157b,{'oldShapeData':{'fill':{'color':(_0x18384e=_0x4b5aaf['fill'])===null||_0x18384e===void 0x0?void 0x0:_0x18384e[_0x12accc(0x23a)]}}},{'fill':{'color':_0x330a5d}}),_0x40e1c6(_0x330a5d),_0x24f137(![]);}})}),'open':_0x1aab3a,'onOpenChange':_0x24f137,'children':(0x0,react_jsx_runtime[_0x27fc48(0x5b8)])('a',{'className':_0x27fc48(0x55d),'children':[(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_univerjs_icons[_0x27fc48(0x2b1)],{'className':'univer-text-xl\x20univer-text-gray-500','extend':{'colorChannel1':_0x4d0dd6}}),(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design[_0x27fc48(0x1eb)])(_0x27fc48(0x59f),{'univer-rotate-180':_0x1aab3a})})]})})]}),(0x0,react_jsx_runtime[_0x27fc48(0x5b8)])(_0x27fc48(0x477),{'className':_0x27fc48(0x55b),'children':[(0x0,react_jsx_runtime['jsx'])(_0x27fc48(0x627),{'className':_0x27fc48(0x5df),'children':_0x303a7e['t'](_0x27fc48(0x440))}),(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(_0x27fc48(0x477),{'className':_0x27fc48(0x5f4),'children':(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x27fc48(0x583),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':'univer-w-full','value':_0x4e47df,'disabled':_0x11066b,'min':0x0,'max':0x64,'step':0xa,'formatter':_0xe86de3=>_0xe86de3+'%','parser':_0x2fa650=>(_0x2fa650===null||_0x2fa650===void 0x0?void 0x0:_0x2fa650[_0x27fc48(0x4a9)]('%',''))||'','onChange':_0x14f02b=>{const _0x42bd9e=_0x27fc48,_0x22a805=(0x64-Math[_0x42bd9e(0x19a)](0x0,Math['min'](0x64,_0x14f02b!==null&&_0x14f02b!==void 0x0?_0x14f02b:0x0)))/0x64;_0x41ce48(_0x22a805),updateShapeData(_0x174563,_0x4ddc39,_0x5960c1,_0x39157b,{'oldShapeData':{'fill':{..._0x4b5aaf['fill'],'fillType':_0x553295}}},{'fill':{..._0x4b5aaf[_0x42bd9e(0x2ce)],'fillType':_0x553295,'opacity':_0x22a805}}),_0x59f092['setContextValue'](_univerjs_core[_0x42bd9e(0x3d7)],![]);},'onFocus':()=>_0x59f092[_0x27fc48(0x44a)](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>{const _0x5effad=_0x27fc48;_0x59f092[_0x5effad(0x44a)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})})]})]}),_0x553295===_univerjs_pro_engine_shape[_0x27fc48(0x192)]['GradientFill']&&(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(GradientFillEditor,{'shapeData':_0x4b5aaf,'disableShapeOption':_0x11066b,'onUpdate':_0x4b699a=>{const _0x545c7c=_0x27fc48;updateShapeData(_0x174563,_0x4ddc39,_0x5960c1,_0x39157b,{'oldShapeData':{'fill':{..._0x4b5aaf[_0x545c7c(0x2ce)]}}},{'fill':{..._0x4b5aaf[_0x545c7c(0x2ce)],..._0x4b699a}});}}),_0x553295===_univerjs_pro_engine_shape[_0x27fc48(0x192)][_0x27fc48(0x280)]&&(0x0,react_jsx_runtime[_0x27fc48(0x65c)])(ShapeImageFillEditor,{'unitId':_0x4ddc39,'subUnitId':_0x5960c1,'shapeId':_0x39157b,'shapeData':_0x4b5aaf,'disableShapeOption':_0x11066b})]});}function shapeGradientTypeToPickerType(_0x789268){const _0x55823a=_0x3cbade;switch(_0x789268){case _univerjs_pro_engine_shape['ShapeGradientTypeEnum']['Linear']:return _0x55823a(0x405);case _univerjs_pro_engine_shape[_0x55823a(0x3c8)][_0x55823a(0x2b7)]:return _0x55823a(0x608);case _univerjs_pro_engine_shape[_0x55823a(0x3c8)][_0x55823a(0x5b1)]:return'angular';case _univerjs_pro_engine_shape[_0x55823a(0x3c8)]['Diamond']:return _0x55823a(0x563);default:return _0x55823a(0x405);}}function pickerTypeToShapeGradientType(_0x380c15){const _0x1a887e=_0x3cbade;switch(_0x380c15){case _0x1a887e(0x405):return _univerjs_pro_engine_shape[_0x1a887e(0x3c8)][_0x1a887e(0x51a)];case _0x1a887e(0x608):return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x1a887e(0x2b7)];case _0x1a887e(0x5a7):return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x1a887e(0x5b1)];case _0x1a887e(0x563):return _univerjs_pro_engine_shape[_0x1a887e(0x3c8)]['Diamond'];default:return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x1a887e(0x51a)];}}function GradientFillEditor(_0x8ade1c){const _0x2a59f8=_0x3cbade,{shapeData:_0x4fe25d,disableShapeOption:_0x300ff6,onUpdate:_0x1e9dbc}=_0x8ade1c,_0x1c3067=(0x0,react[_0x2a59f8(0x5c5)])(()=>{const _0x1a9708=_0x2a59f8;var _0x5068db;const _0x3a0aa9=_0x4fe25d[_0x1a9708(0x2ce)];return{'type':shapeGradientTypeToPickerType(_0x3a0aa9===null||_0x3a0aa9===void 0x0?void 0x0:_0x3a0aa9[_0x1a9708(0x2b4)]),'angle':(_0x5068db=_0x3a0aa9===null||_0x3a0aa9===void 0x0?void 0x0:_0x3a0aa9[_0x1a9708(0x54a)])!==null&&_0x5068db!==void 0x0?_0x5068db:0x5a,'stops':(_0x3a0aa9===null||_0x3a0aa9===void 0x0?void 0x0:_0x3a0aa9[_0x1a9708(0x5d3)])&&_0x3a0aa9[_0x1a9708(0x5d3)]['length']>=0x2?_0x3a0aa9['gradientStops'][_0x1a9708(0x2bc)](_0x5368e7=>({'color':_0x5368e7[_0x1a9708(0x23a)],'offset':_0x5368e7[_0x1a9708(0x1c2)]*0x64})):[{'color':(_0x3a0aa9===null||_0x3a0aa9===void 0x0?void 0x0:_0x3a0aa9[_0x1a9708(0x23a)])||_0x1a9708(0x2ac),'offset':0x0},{'color':_0x1a9708(0x41a),'offset':0x64}]};},[_0x4fe25d['fill']]),_0x57e3bf=_0x2eb625=>{const _0x58f446=_0x2a59f8,_0x233e85=pickerTypeToShapeGradientType(_0x2eb625[_0x58f446(0x6bf)]),_0x313614=_0x2eb625['angle'];_0x1e9dbc({'gradientType':_0x233e85,'gradientAngle':_0x313614,'gradientStops':_0x2eb625[_0x58f446(0x565)]['map'](_0x36b6dd=>({'color':_0x36b6dd['color'],'position':_0x36b6dd[_0x58f446(0x48c)]/0x64}))});};return(0x0,react_jsx_runtime[_0x2a59f8(0x65c)])(_0x2a59f8(0x477),{'className':_0x2a59f8(0x4a2),'children':(0x0,react_jsx_runtime[_0x2a59f8(0x65c)])(_univerjs_design[_0x2a59f8(0x2ea)],{'value':_0x1c3067,'onChange':_0x57e3bf})});}function ShapeLineEditor(_0x25c32b){const _0x24f609=_0x3cbade;var _0x5618e4,_0x3cdbfc,_0x32a6ec,_0x3f2863,_0x4c6a71,_0x16b673,_0x415441,_0x293b6c,_0x62ba79,_0x4922e6,_0x233490,_0x1f9cd7,_0x41d3cf,_0x5aeff0,_0x31dc7a,_0x219c9b;const _0x25faa4=(0x0,_univerjs_ui[_0x24f609(0x287)])(_univerjs_core['LocaleService']),_0x48e0a2=(0x0,_univerjs_ui[_0x24f609(0x287)])(_univerjs_core[_0x24f609(0x447)]),_0x453687=(0x0,_univerjs_ui[_0x24f609(0x287)])(_univerjs_core[_0x24f609(0x6d7)]),{shapeData:_0x46dbed,isLineShape:_0x56e1b8,unitId:_0x3aa5dc,subUnitId:_0x52588c,shapeId:_0x4f3fc7,disableShapeOption:_0xfa06ca}=_0x25c32b,_0x1ddd91=_0x46dbed[_0x24f609(0x388)],[_0x29042d,_0x373155]=(0x0,react[_0x24f609(0x5bc)])((_0x5618e4=_0x1ddd91===null||_0x1ddd91===void 0x0?void 0x0:_0x1ddd91[_0x24f609(0x3ce)])!==null&&_0x5618e4!==void 0x0?_0x5618e4:_univerjs_pro_engine_shape['ShapeLineTypeEnum'][_0x24f609(0x3cc)]),[_0x51d442,_0x511d93]=(0x0,react[_0x24f609(0x5bc)])((_0x3cdbfc=_0x1ddd91===null||_0x1ddd91===void 0x0?void 0x0:_0x1ddd91[_0x24f609(0x23a)])!==null&&_0x3cdbfc!==void 0x0?_0x3cdbfc:_univerjs_pro_engine_shape['ShapeDefaultConfig']['stroke']),[_0x3fb47a,_0x1c8d16]=(0x0,react['useState'])((_0x32a6ec=_0x1ddd91===null||_0x1ddd91===void 0x0?void 0x0:_0x1ddd91[_0x24f609(0x59b)])!==null&&_0x32a6ec!==void 0x0?_0x32a6ec:0x1),[_0x5b444e,_0x217ec2]=(0x0,react[_0x24f609(0x5bc)])((_0x3f2863=_0x1ddd91===null||_0x1ddd91===void 0x0?void 0x0:_0x1ddd91[_0x24f609(0x354)])!==null&&_0x3f2863!==void 0x0?_0x3f2863:_univerjs_pro_engine_shape[_0x24f609(0x46a)]['strokeWidth']),[_0x243acc,_0x4953c8]=(0x0,react[_0x24f609(0x5bc)])((_0x4c6a71=_0x1ddd91===null||_0x1ddd91===void 0x0?void 0x0:_0x1ddd91[_0x24f609(0x229)])!==null&&_0x4c6a71!==void 0x0?_0x4c6a71:_univerjs_pro_engine_shape[_0x24f609(0x480)][_0x24f609(0x38f)]),[_0x36e946,_0x4429e8]=(0x0,react['useState'])((_0x16b673=_0x1ddd91===null||_0x1ddd91===void 0x0?void 0x0:_0x1ddd91[_0x24f609(0x633)])!==null&&_0x16b673!==void 0x0?_0x16b673:_univerjs_pro_engine_shape[_0x24f609(0x585)][_0x24f609(0x1a6)]),[_0x58af54,_0x2aba2b]=(0x0,react[_0x24f609(0x5bc)])((_0x415441=_0x1ddd91===null||_0x1ddd91===void 0x0?void 0x0:_0x1ddd91['lineJoinType'])!==null&&_0x415441!==void 0x0?_0x415441:_univerjs_pro_engine_shape[_0x24f609(0x2c0)][_0x24f609(0x33a)]),[_0x5a8fdd,_0x348553]=(0x0,react[_0x24f609(0x5bc)])((_0x293b6c=_0x1ddd91===null||_0x1ddd91===void 0x0?void 0x0:_0x1ddd91[_0x24f609(0x536)])!==null&&_0x293b6c!==void 0x0?_0x293b6c:_univerjs_pro_engine_shape['ShapeSketchTypeEnum']['None']),_0x57d28c=_0x46dbed,[_0x3a6ebf,_0x33e1cd]=(0x0,react[_0x24f609(0x5bc)])((_0x62ba79=(_0x4922e6=_0x57d28c['ln'])===null||_0x4922e6===void 0x0||(_0x4922e6=_0x4922e6['startArrow'])===null||_0x4922e6===void 0x0?void 0x0:_0x4922e6[_0x24f609(0x6bf)])!==null&&_0x62ba79!==void 0x0?_0x62ba79:_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0x24f609(0x5f1)]),[_0x21baa8,_0x34c85b]=(0x0,react['useState'])((_0x233490=(_0x1f9cd7=_0x57d28c['ln'])===null||_0x1f9cd7===void 0x0||(_0x1f9cd7=_0x1f9cd7[_0x24f609(0x3cd)])===null||_0x1f9cd7===void 0x0?void 0x0:_0x1f9cd7[_0x24f609(0x3d4)])!==null&&_0x233490!==void 0x0?_0x233490:_univerjs_pro_engine_shape[_0x24f609(0x5af)][_0x24f609(0x3dc)]),[_0x28dc1c,_0x1ef054]=(0x0,react['useState'])((_0x41d3cf=(_0x5aeff0=_0x57d28c['ln'])===null||_0x5aeff0===void 0x0||(_0x5aeff0=_0x5aeff0[_0x24f609(0x327)])===null||_0x5aeff0===void 0x0?void 0x0:_0x5aeff0[_0x24f609(0x6bf)])!==null&&_0x41d3cf!==void 0x0?_0x41d3cf:_univerjs_pro_engine_shape[_0x24f609(0x374)]['None']),[_0x394e56,_0x20ee8d]=(0x0,react[_0x24f609(0x5bc)])((_0x31dc7a=(_0x219c9b=_0x57d28c['ln'])===null||_0x219c9b===void 0x0||(_0x219c9b=_0x219c9b[_0x24f609(0x327)])===null||_0x219c9b===void 0x0?void 0x0:_0x219c9b[_0x24f609(0x3d4)])!==null&&_0x31dc7a!==void 0x0?_0x31dc7a:_univerjs_pro_engine_shape[_0x24f609(0x5af)][_0x24f609(0x3dc)]),[_0x40a70b,_0xd1993e]=(0x0,react[_0x24f609(0x5bc)])(![]),_0x1a72ec=0x64-_0x3fb47a*0x64,_0x3c2c97=[{'label':_0x25faa4['t']('sheets-shape.line.dashType.solid'),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x480)][_0x24f609(0x38f)])},{'label':_0x25faa4['t']('sheets-shape.line.dashType.roundDot'),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x480)][_0x24f609(0x25e)])},{'label':_0x25faa4['t'](_0x24f609(0x5b4)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x24f609(0x6e3)])},{'label':_0x25faa4['t']('sheets-shape.line.dashType.dash'),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum']['Dash'])},{'label':_0x25faa4['t']('sheets-shape.line.dashType.dashDot'),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x480)]['DashDot'])},{'label':_0x25faa4['t'](_0x24f609(0x2e1)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x480)][_0x24f609(0x5f7)])},{'label':_0x25faa4['t'](_0x24f609(0x314)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x24f609(0x6cb)])},{'label':_0x25faa4['t'](_0x24f609(0x1e8)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x480)][_0x24f609(0x3ab)])}],_0x9156af=[{'label':_0x25faa4['t'](_0x24f609(0x5bb)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x585)][_0x24f609(0x1a6)])},{'label':_0x25faa4['t'](_0x24f609(0x54b)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x585)]['Round'])},{'label':_0x25faa4['t'](_0x24f609(0x20f)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x585)][_0x24f609(0x4e3)])}],_0x52f1ed=[{'label':_0x25faa4['t']('sheets-shape.line.sketchType.none'),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x306)][_0x24f609(0x5f1)])},{'label':_0x25faa4['t'](_0x24f609(0x693)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x306)]['Curved'])},{'label':_0x25faa4['t']('sheets-shape.line.sketchType.freehand'),'value':String(_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x24f609(0x4e9)])},{'label':_0x25faa4['t'](_0x24f609(0x5b2)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x306)][_0x24f609(0x695)])}],_0x20b112=[{'label':_0x25faa4['t'](_0x24f609(0x47e)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x2c0)]['Miter'])},{'label':_0x25faa4['t'](_0x24f609(0x527)),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x24f609(0x3b9)])},{'label':_0x25faa4['t'](_0x24f609(0x32a)),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x24f609(0x2a0)])}],_0x5c9d41=[{'label':_0x25faa4['t'](_0x24f609(0x37d)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x374)][_0x24f609(0x5f1)])},{'label':_0x25faa4['t'](_0x24f609(0x219)),'value':String(_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0x24f609(0x2ec)])},{'label':_0x25faa4['t'](_0x24f609(0x6a1)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x374)][_0x24f609(0x381)])},{'label':_0x25faa4['t'](_0x24f609(0x6e4)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x374)]['StealthArrow'])},{'label':_0x25faa4['t'](_0x24f609(0x52e)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x374)][_0x24f609(0x661)])},{'label':_0x25faa4['t']('sheets-shape.line.arrowType.ovalArrow'),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x374)][_0x24f609(0x1b6)])}],_0x261cf8=[{'label':_0x25faa4['t'](_0x24f609(0x697)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x5af)][_0x24f609(0x274)])},{'label':_0x25faa4['t'](_0x24f609(0x25a)),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x5af)][_0x24f609(0x3dc)])},{'label':_0x25faa4['t']('sheets-shape.line.arrowSize.large'),'value':String(_univerjs_pro_engine_shape[_0x24f609(0x5af)]['Large'])}];return(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':_0x24f609(0x4ee),'children':[(0x0,react_jsx_runtime[_0x24f609(0x5b8)])(_univerjs_design[_0x24f609(0x549)],{'value':String(_0x29042d),'disabled':_0xfa06ca,'onChange':_0x5912d0=>{const _0x5429b1=_0x24f609;var _0x57c3f8;_0x373155(Number(_0x5912d0)),updateShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x57c3f8=_0x46dbed[_0x5429b1(0x388)])===null||_0x57c3f8===void 0x0?void 0x0:_0x57c3f8[_0x5429b1(0x3ce)]}}},{'stroke':{'lineStrokeType':Number(_0x5912d0)}});},'direction':'vertical','children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design['Radio'],{'value':String(_univerjs_pro_engine_shape[_0x24f609(0x3d9)][_0x24f609(0x1ad)]),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x627),{'className':_0x24f609(0x375),'children':_0x25faa4['t']('sheets-shape.line.noLine')})}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design['Radio'],{'value':String(_univerjs_pro_engine_shape[_0x24f609(0x3d9)][_0x24f609(0x3cc)]),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x627),{'className':_0x24f609(0x375),'children':_0x25faa4['t'](_0x24f609(0x6d6))})})]}),_0x29042d!==_univerjs_pro_engine_shape[_0x24f609(0x3d9)]['NoLine']&&(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':_0x24f609(0x674),'children':[(0x0,react_jsx_runtime[_0x24f609(0x5b8)])(_0x24f609(0x477),{'className':_0x24f609(0x373),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x25faa4['t'](_0x24f609(0x34e))}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design[_0x24f609(0x65e)],{'disabled':_0xfa06ca,'overlay':(0x0,react_jsx_runtime['jsx'])(_0x24f609(0x477),{'className':_0x24f609(0x555),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design[_0x24f609(0x1ec)],{'value':_0x51d442,'onChange':_0x465c0e=>{const _0x36df6c=_0x24f609;var _0x368db9;updateShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'stroke':{'color':(_0x368db9=_0x46dbed[_0x36df6c(0x388)])===null||_0x368db9===void 0x0?void 0x0:_0x368db9[_0x36df6c(0x23a)]}}},{'stroke':{'color':_0x465c0e}}),_0x511d93(_0x465c0e),_0xd1993e(![]);}})}),'open':_0x40a70b,'onOpenChange':_0xd1993e,'children':(0x0,react_jsx_runtime[_0x24f609(0x5b8)])('a',{'className':_0x24f609(0x55d),'children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_icons[_0x24f609(0x2b1)],{'className':_0x24f609(0x2dc),'extend':{'colorChannel1':_0x51d442}}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_icons[_0x24f609(0x40a)],{'className':(0x0,_univerjs_design[_0x24f609(0x1eb)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x40a70b})})]})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x24f609(0x627),{'className':_0x24f609(0x5df),'children':_0x25faa4['t'](_0x24f609(0x47b))}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x477),{'className':_0x24f609(0x55b),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])('div',{'className':_0x24f609(0x3ef),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x24f609(0x235)],{'className':_0x24f609(0x510),'value':_0x1a72ec,'disabled':_0xfa06ca,'min':0x0,'max':0x64,'formatter':_0xd73011=>_0xd73011+'%','parser':_0x25a73c=>(_0x25a73c===null||_0x25a73c===void 0x0?void 0x0:_0x25a73c[_0x24f609(0x4a9)]('%',''))||'','onChange':_0x211f00=>{const _0x37a7ef=_0x24f609;var _0x107e3c;const _0x2c554f=(0x64-Math[_0x37a7ef(0x19a)](0x0,Math[_0x37a7ef(0x6c2)](0x64,_0x211f00!==null&&_0x211f00!==void 0x0?_0x211f00:0x0)))/0x64;_0x1c8d16(_0x2c554f),updateShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'stroke':{'opacity':(_0x107e3c=_0x46dbed['stroke'])===null||_0x107e3c===void 0x0?void 0x0:_0x107e3c['opacity']}}},{'stroke':{'opacity':_0x2c554f}}),_0x453687[_0x37a7ef(0x44a)](_univerjs_core[_0x37a7ef(0x3d7)],![]);},'onFocus':()=>_0x453687[_0x24f609(0x44a)](_univerjs_core[_0x24f609(0x3d7)],!![]),'onBlur':_0x4de978=>{const _0x56b2b3=_0x24f609;_0x453687[_0x56b2b3(0x44a)](_univerjs_core[_0x56b2b3(0x3d7)],![]);}})})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':_0x24f609(0x55b),'children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])('span',{'className':_0x24f609(0x2a6),'children':_0x25faa4['t'](_0x24f609(0x683))}),(0x0,react_jsx_runtime['jsx'])(_0x24f609(0x477),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design[_0x24f609(0x235)],{'className':_0x24f609(0x510),'disabled':_0xfa06ca,'value':_0x5b444e,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x4b0238=>_0x4b0238+_0x24f609(0x1b9),'parser':_0x3d6bfa=>(_0x3d6bfa===null||_0x3d6bfa===void 0x0?void 0x0:_0x3d6bfa['replace'](_0x24f609(0x1b9),''))||'','onChange':_0x447649=>{const _0x2ec6fa=_0x24f609;if(!Number[_0x2ec6fa(0x63a)](_0x447649)&&_0x447649!==null){var _0x3f2218;updateShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'stroke':{'width':(_0x3f2218=_0x46dbed[_0x2ec6fa(0x388)])===null||_0x3f2218===void 0x0?void 0x0:_0x3f2218[_0x2ec6fa(0x354)]}}},{'stroke':{'width':_0x447649}});}_0x453687['setContextValue'](_univerjs_core[_0x2ec6fa(0x3d7)],![]);},'onFocus':()=>_0x453687['setContextValue'](_univerjs_core[_0x24f609(0x3d7)],!![]),'onBlur':_0x2b6937=>{const _0x3bfc61=_0x24f609;_0x453687[_0x3bfc61(0x44a)](_univerjs_core[_0x3bfc61(0x3d7)],![]);}})})]}),(0x0,react_jsx_runtime[_0x24f609(0x5b8)])(_0x24f609(0x477),{'className':_0x24f609(0x373),'children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x627),{'className':_0x24f609(0x2a6),'children':_0x25faa4['t']('sheets-shape.line.dashType.title')}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])('div',{'className':_0x24f609(0x2e4),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design['Select'],{'className':_0x24f609(0x510),'value':String(_0x243acc),'options':_0x3c2c97,'disabled':_0xfa06ca,'onChange':_0x7b2c3f=>{const _0x2695a5=_0x24f609;var _0x42b46d;_0x4953c8(Number(_0x7b2c3f)),updateShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'stroke':{'dashType':(_0x42b46d=_0x46dbed[_0x2695a5(0x388)])===null||_0x42b46d===void 0x0?void 0x0:_0x42b46d[_0x2695a5(0x229)]}}},{'stroke':{'dashType':Number(_0x7b2c3f)}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])('span',{'className':_0x24f609(0x2a6),'children':_0x25faa4['t'](_0x24f609(0x1e3))}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])('div',{'className':_0x24f609(0x2e4),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design['Select'],{'className':_0x24f609(0x510),'value':String(_0x36e946),'options':_0x9156af,'disabled':_0xfa06ca,'onChange':_0x457a88=>{const _0x4bde35=_0x24f609;var _0x4e8801;_0x4429e8(Number(_0x457a88)),updateShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'stroke':{'capType':(_0x4e8801=_0x46dbed[_0x4bde35(0x388)])===null||_0x4e8801===void 0x0?void 0x0:_0x4e8801[_0x4bde35(0x633)]}}},{'stroke':{'capType':Number(_0x457a88)}});}})})]}),(0x0,react_jsx_runtime[_0x24f609(0x5b8)])(_0x24f609(0x477),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x627),{'className':_0x24f609(0x2a6),'children':_0x25faa4['t'](_0x24f609(0x6b3))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x24f609(0x2e4),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design[_0x24f609(0x493)],{'className':'univer-w-full','value':String(_0x58af54),'options':_0x20b112,'disabled':_0xfa06ca,'onChange':_0x462aa4=>{const _0x479bc6=_0x24f609;var _0x421273;_0x2aba2b(Number(_0x462aa4)),updateShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'stroke':{'lineJoinType':(_0x421273=_0x46dbed[_0x479bc6(0x388)])===null||_0x421273===void 0x0?void 0x0:_0x421273[_0x479bc6(0x298)]}}},{'stroke':{'lineJoinType':Number(_0x462aa4)}});}})})]}),!_0x56e1b8&&(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])('span',{'className':_0x24f609(0x2a6),'children':_0x25faa4['t'](_0x24f609(0x50d))}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])('div',{'className':_0x24f609(0x2e4),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x24f609(0x493)],{'className':'univer-w-full','value':String(_0x5a8fdd),'options':_0x52f1ed,'disabled':_0xfa06ca,'onChange':_0x55ae59=>{const _0x4f7e29=_0x24f609;var _0x367cf1;_0x348553(Number(_0x55ae59)),updateShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'stroke':{'sketchType':(_0x367cf1=_0x46dbed[_0x4f7e29(0x388)])===null||_0x367cf1===void 0x0?void 0x0:_0x367cf1[_0x4f7e29(0x536)]}}},{'stroke':{'sketchType':Number(_0x55ae59)}});}})})]}),_0x56e1b8&&(0x0,react_jsx_runtime[_0x24f609(0x5b8)])(react_jsx_runtime[_0x24f609(0x684)],{'children':[(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x627),{'className':_0x24f609(0x2a6),'children':_0x25faa4['t'](_0x24f609(0x481))}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x477),{'className':_0x24f609(0x2e4),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x24f609(0x493)],{'className':'univer-w-full','value':String(_0x3a6ebf),'options':_0x5c9d41,'onChange':_0x3ceb6f=>{const _0x1de436=_0x24f609;var _0x50880a;_0x33e1cd(Number(_0x3ceb6f)),updateLineShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x50880a=_0x46dbed['ln'])===null||_0x50880a===void 0x0||(_0x50880a=_0x50880a[_0x1de436(0x3cd)])===null||_0x50880a===void 0x0?void 0x0:_0x50880a[_0x1de436(0x6bf)]}}}},{'ln':{'startArrow':{'type':Number(_0x3ceb6f)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x627),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x25faa4['t'](_0x24f609(0x2b3))}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])('div',{'className':_0x24f609(0x2e4),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design['Select'],{'className':_0x24f609(0x510),'value':String(_0x21baa8),'options':_0x261cf8,'onChange':_0x30196=>{const _0x3f6887=_0x24f609;var _0x55e3a7;_0x34c85b(Number(_0x30196)),updateLineShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x55e3a7=_0x46dbed['ln'])===null||_0x55e3a7===void 0x0||(_0x55e3a7=_0x55e3a7[_0x3f6887(0x3cd)])===null||_0x55e3a7===void 0x0?void 0x0:_0x55e3a7['size']}}}},{'ln':{'startArrow':{'size':Number(_0x30196)}}});}})})]}),(0x0,react_jsx_runtime[_0x24f609(0x5b8)])('div',{'className':_0x24f609(0x373),'children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x627),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x25faa4['t'](_0x24f609(0x43f))}),(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_0x24f609(0x477),{'className':_0x24f609(0x2e4),'children':(0x0,react_jsx_runtime[_0x24f609(0x65c)])(_univerjs_design[_0x24f609(0x493)],{'className':_0x24f609(0x510),'value':String(_0x28dc1c),'options':_0x5c9d41,'onChange':_0x5b951b=>{const _0x44b5a3=_0x24f609;var _0x220f82;_0x1ef054(Number(_0x5b951b)),updateLineShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x220f82=_0x46dbed['ln'])===null||_0x220f82===void 0x0||(_0x220f82=_0x220f82[_0x44b5a3(0x327)])===null||_0x220f82===void 0x0?void 0x0:_0x220f82[_0x44b5a3(0x6bf)]}}}},{'ln':{'endArrow':{'type':Number(_0x5b951b)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x24f609(0x477),{'className':_0x24f609(0x373),'children':[(0x0,react_jsx_runtime[_0x24f609(0x65c)])('span',{'className':_0x24f609(0x2a6),'children':_0x25faa4['t'](_0x24f609(0x4b3))}),(0x0,react_jsx_runtime['jsx'])(_0x24f609(0x477),{'className':'univer-w-28','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':'univer-w-full','value':String(_0x394e56),'options':_0x261cf8,'onChange':_0x40654c=>{const _0x49b1f0=_0x24f609;var _0xf5ed83;_0x20ee8d(Number(_0x40654c)),updateLineShapeData(_0x48e0a2,_0x3aa5dc,_0x52588c,_0x4f3fc7,{'oldShapeData':{'ln':{'endArrow':{'size':(_0xf5ed83=_0x46dbed['ln'])===null||_0xf5ed83===void 0x0||(_0xf5ed83=_0xf5ed83[_0x49b1f0(0x327)])===null||_0xf5ed83===void 0x0?void 0x0:_0xf5ed83['size']}}}},{'ln':{'endArrow':{'size':Number(_0x40654c)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x43fd7f=_0x3cbade,_0xd16232=(0x0,_univerjs_ui[_0x43fd7f(0x287)])(_univerjs_drawing[_0x43fd7f(0x3a9)]),[_0x59ee13,_0x422e52]=(0x0,react[_0x43fd7f(0x5bc)])(_0xd16232['getFocusDrawings']());(0x0,react[_0x43fd7f(0x6cf)])(()=>{const _0xd3c9b5=_0x43fd7f,_0x383bb5=_0xd16232['focus$'][_0xd3c9b5(0x61f)](_0x5e68f5=>{_0x422e52(_0x5e68f5);});return()=>{_0x383bb5['unsubscribe']();};},[]);if(_0x59ee13['length']===0x0)return null;return(0x0,react_jsx_runtime[_0x43fd7f(0x65c)])('div',{'children':(0x0,react_jsx_runtime[_0x43fd7f(0x5b8)])(_0x43fd7f(0x477),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,react_jsx_runtime[_0x43fd7f(0x65c)])(_univerjs_drawing_ui[_0x43fd7f(0x191)],{'drawings':_0x59ee13,'hasCropper':![]}),(0x0,react_jsx_runtime[_0x43fd7f(0x65c)])(_univerjs_sheets_drawing_ui[_0x43fd7f(0x33c)],{'drawings':_0x59ee13})]})});}function ShapeEditPanel(_0x11e6c1){const _0x240674=_0x3cbade,{shapeData:_0x1417a6,shapeId:_0x538034,shapeType:_0x3df910,version:_0x5c4916,unitId:_0x4db280,subUnitId:_0x189e12,disableShapeOption:_0x53f9f8}=_0x11e6c1,_0x1d8418=(0x0,_univerjs_ui[_0x240674(0x287)])(_univerjs_core[_0x240674(0x2bb)]),_0x1b3aac=(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x3df910),[_0x1837ca,_0x298615]=(0x0,react[_0x240674(0x5bc)])(0x0),_0x32e0c4=[{'label':(0x0,react_jsx_runtime[_0x240674(0x65c)])(_0x240674(0x477),{'children':_0x1d8418['t'](_0x240674(0x6ac))}),'children':(0x0,react_jsx_runtime[_0x240674(0x65c)])('section',{'className':_0x240674(0x26e),'children':(0x0,react_jsx_runtime['jsx'])(ShapeFillEditor,{'shapeId':_0x538034,'shapeData':_0x1417a6,'isLineShape':_0x1b3aac,'subUnitId':_0x189e12,'unitId':_0x4db280,'disableShapeOption':_0x53f9f8},_0x538034)})},{'label':(0x0,react_jsx_runtime[_0x240674(0x65c)])(_0x240674(0x477),{'children':_0x1d8418['t']('sheets-shape.line.title')}),'children':(0x0,react_jsx_runtime[_0x240674(0x65c)])(_0x240674(0x577),{'className':_0x240674(0x26e),'children':(0x0,react_jsx_runtime[_0x240674(0x65c)])(ShapeLineEditor,{'shapeId':_0x538034,'shapeData':_0x1417a6,'isLineShape':_0x1b3aac,'subUnitId':_0x189e12,'unitId':_0x4db280,'disableShapeOption':_0x53f9f8},_0x538034)})}];return(0x0,react_jsx_runtime['jsxs'])(_0x240674(0x477),{'className':_0x240674(0x61a),'children':[(0x0,react_jsx_runtime[_0x240674(0x5b8)])(_0x240674(0x477),{'className':'univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','children':[(0x0,react_jsx_runtime[_0x240674(0x5b8)])(_0x240674(0x477),{'className':(0x0,_univerjs_design[_0x240674(0x1eb)])(_0x240674(0x244),_0x1837ca===0x0?'univer-text-primary-600':_0x240674(0x2dc)),'onClick':()=>_0x298615(0x0),'children':[_0x1d8418['t']('sheets-shape.shapeStyle'),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design['clsx'])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md',{'univer-bg-primary-600':_0x1837ca===0x0,'univer-bg-transparent':_0x1837ca!==0x0})})]}),(0x0,react_jsx_runtime[_0x240674(0x5b8)])('div',{'className':(0x0,_univerjs_design[_0x240674(0x1eb)])(_0x240674(0x244),{'univer-text-primary-600':_0x1837ca===0x1,'univer-text-gray-500':_0x1837ca!==0x1}),'onClick':()=>_0x298615(0x1),'children':[_0x1d8418['t'](_0x240674(0x3b5)),(0x0,react_jsx_runtime[_0x240674(0x65c)])(_0x240674(0x477),{'className':(0x0,_univerjs_design['clsx'])(_0x240674(0x218),{'univer-bg-primary-600':_0x1837ca===0x1,'univer-bg-transparent':_0x1837ca!==0x1})})]})]}),(0x0,react_jsx_runtime[_0x240674(0x65c)])('div',{'className':_0x240674(0x326),'children':_0x1837ca===0x0?(0x0,react_jsx_runtime['jsx'])('div',{'className':'','children':(0x0,react_jsx_runtime[_0x240674(0x65c)])(_univerjs_design['Accordion'],{'items':_0x32e0c4})},_0x5c4916):(0x0,react_jsx_runtime['jsx'])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x3cbade(0x3ac)]{constructor(_0x1965df,_0x2c2fdd){const _0x7131b0=_0x3cbade;super(_0x1965df,_0x2c2fdd),_defineProperty(this,'_shapeId',null),_defineProperty(this,'_adjName',null),_defineProperty(this,_0x7131b0(0x407),null),_defineProperty(this,_0x7131b0(0x44d),null);if(_0x2c2fdd)this[_0x7131b0(0x207)](_0x2c2fdd);}[_0x3cbade(0x614)](){const _0x4acca4=_0x3cbade;return{'unitId':this[_0x4acca4(0x407)],'subUnitId':this[_0x4acca4(0x44d)],'drawingId':this[_0x4acca4(0x41f)]};}[_0x3cbade(0x207)](_0x4582b4){const _0x34b6e7=_0x3cbade;if(typeof _0x4582b4[_0x34b6e7(0x190)]!==_0x34b6e7(0x456))this[_0x34b6e7(0x41f)]=_0x4582b4[_0x34b6e7(0x190)];if(typeof _0x4582b4[_0x34b6e7(0x6ed)]!==_0x34b6e7(0x456))this['_adjName']=_0x4582b4[_0x34b6e7(0x6ed)];if(typeof _0x4582b4[_0x34b6e7(0x444)]!==_0x34b6e7(0x456))this[_0x34b6e7(0x407)]=_0x4582b4[_0x34b6e7(0x444)];if(typeof _0x4582b4['subUnitId']!=='undefined')this['_subUnitId']=_0x4582b4['subUnitId'];this[_0x34b6e7(0x2db)]({'width':_0x4582b4['width'],'height':_0x4582b4[_0x34b6e7(0x396)]});}[_0x3cbade(0x65b)](_0x294820){const _0x298eed=_0x3cbade;_univerjs_engine_render['Circle'][_0x298eed(0x2ad)](_0x294820,{'radius':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x298eed(0x560)],'fill':_univerjs_pro_engine_shape[_0x298eed(0x46a)][_0x298eed(0x582)],'stroke':_univerjs_pro_engine_shape[_0x298eed(0x46a)][_0x298eed(0x526)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0x2e7459,_0x31780e,_0x4e321c,_0x70325b,_0x3a51a3,_0x35a73b,_0x283248,_0x343dda){const _0xfcd57d=_0x3cbade;super(),this[_0xfcd57d(0x3c5)]=_0x2e7459,this[_0xfcd57d(0x3c9)]=_0x31780e,this[_0xfcd57d(0x648)]=_0x4e321c,this[_0xfcd57d(0x1f4)]=_0x70325b,this[_0xfcd57d(0x1c7)]=_0x3a51a3,this['_sheetDrawingShapeRenderController']=_0x35a73b,this[_0xfcd57d(0x5a0)]=_0x283248,this[_0xfcd57d(0x30d)]=_0x343dda,_defineProperty(this,_0xfcd57d(0x24f),null),_defineProperty(this,'_unitId',null),_defineProperty(this,_0xfcd57d(0x44d),null),_defineProperty(this,'_activeShapeAdjustPointList',void 0x0),_defineProperty(this,'_shapes',[]),_defineProperty(this,_0xfcd57d(0x24a),0x0),_defineProperty(this,_0xfcd57d(0x688),0x0),_defineProperty(this,_0xfcd57d(0x5b5),0x0),_defineProperty(this,_0xfcd57d(0x5fc),0x0),_defineProperty(this,_0xfcd57d(0x454),![]),_defineProperty(this,_0xfcd57d(0x568),void 0x0),_defineProperty(this,_0xfcd57d(0x51c),void 0x0),_defineProperty(this,_0xfcd57d(0x3cb),void 0x0),_defineProperty(this,_0xfcd57d(0x513),void 0x0),_defineProperty(this,_0xfcd57d(0x38c),![]),this[_0xfcd57d(0x46d)](),this[_0xfcd57d(0x376)]();}[_0x3cbade(0x5e0)](_0x2816ca,_0x61976f,_0x20b539){const _0x5255f4=_0x3cbade,_0x285bbd=this['_sheetsShapeService'][_0x5255f4(0x58c)](_0x2816ca,_0x61976f,_0x20b539);if(_0x285bbd)return _0x285bbd['getDrawingPoints']();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}[_0x3cbade(0x6a4)](){this['_updateShapeAdjustControls'](!![]);}[_0x3cbade(0x575)](_0x1ae855){const _0x37b169=_0x3cbade;this[_0x37b169(0x38c)]=_0x1ae855;}['_getShapeAdjustInfosById'](_0x10bb4b,_0x437689,_0x4ebbdd,_0xc1eba8){const _0x137314=_0x3cbade,_0xeab744=this[_0x137314(0x1f4)][_0x137314(0x58c)](_0x10bb4b,_0x437689,_0x4ebbdd);if(_0xeab744)return _0xeab744[_0x137314(0x39d)](_0xc1eba8);}[_0x3cbade(0x5ed)](_0x5fcf0d=![]){const _0x2d75f4=_0x3cbade;if(this[_0x2d75f4(0x407)]===null||this[_0x2d75f4(0x44d)]===null||this[_0x2d75f4(0x24f)]===null)return;const _0x2c05fd=this[_0x2d75f4(0x1c7)][_0x2d75f4(0x412)](this[_0x2d75f4(0x407)]);if(!_0x2c05fd)return;if(!_0x2c05fd[_0x2d75f4(0x4ce)](_univerjs_sheets_ui[_0x2d75f4(0x49d)])[_0x2d75f4(0x1b0)]())return;const {scene:_0x30ba45}=_0x2c05fd,_0x4e1106={'unitId':this[_0x2d75f4(0x407)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2d75f4(0x24f)]},_0xdf2140=this[_0x2d75f4(0x648)][_0x2d75f4(0x511)](_0x4e1106),{transform:_0x4ac1ac}=_0xdf2140;if(!_0x4ac1ac)return;if(_0xdf2140[_0x2d75f4(0x27c)]!==_univerjs_core[_0x2d75f4(0x625)][_0x2d75f4(0x4a0)])return;const {left:_0x410915,top:_0x1ecbc8,width:_0x495f48,height:_0x4c9f33,flipX:_0x3f1fe4,flipY:_0x1c06bf,angle:angle=0x0}=_0x4ac1ac;if(_0x410915===void 0x0||_0x1ecbc8===void 0x0)return;if(_0x5fcf0d)this[_0x2d75f4(0x33b)]=this['_getShapeAdjustPointListById'](this[_0x2d75f4(0x407)],this[_0x2d75f4(0x44d)],this[_0x2d75f4(0x24f)]);const _0x401dca=this[_0x2d75f4(0x33b)];for(let _0x5dfade=0x0;_0x5dfade<_0x401dca[_0x2d75f4(0x4ba)];_0x5dfade++){const _0x1a6764=_0x401dca[_0x5dfade];let _0x131fec=_0x1a6764['x'],_0x5c4d46=_0x1a6764['y'];if(_0x3f1fe4)_0x131fec=(_0x495f48||0x0)-_0x131fec;if(_0x1c06bf)_0x5c4d46=(_0x4c9f33||0x0)-_0x5c4d46;if(angle!==0x0){const _0xbec1d5=(_0x495f48||0x0)/0x2,_0x4eb436=(_0x4c9f33||0x0)/0x2,_0x23eadf=angle*Math['PI']/0xb4,_0xfe20fc=Math[_0x2d75f4(0x5f9)](_0x23eadf),_0x3d975e=Math['sin'](_0x23eadf),_0x1eaf47=_0x131fec-_0xbec1d5,_0x463dc4=_0x5c4d46-_0x4eb436;_0x131fec=_0xbec1d5+(_0x1eaf47*_0xfe20fc-_0x463dc4*_0x3d975e),_0x5c4d46=_0x4eb436+(_0x1eaf47*_0x3d975e+_0x463dc4*_0xfe20fc);}const _0x17ebc9={'x':_0x131fec,'y':_0x5c4d46,'adjName':_0x1a6764[_0x2d75f4(0x6ed)]};this[_0x2d75f4(0x641)](_0x30ba45,_0x17ebc9,_0x17ebc9[_0x2d75f4(0x6ed)],_0x410915,_0x1ecbc8,this[_0x2d75f4(0x407)],this[_0x2d75f4(0x44d)]);}}['_updateShapeAdjustControls'](_0xc4cbb6=![]){const _0x2b638d=_0x3cbade;_0xc4cbb6&&(this[_0x2b638d(0x2c5)](),this['_createShapeAdjustControls'](_0xc4cbb6));}['_addShapeAdjustControl'](_0x5224d0,_0x36a822,_0x1b6691,_0x4ecdd1,_0x41a027,_0xb85f6e,_0x56025a){const _0x1a0db5=_0x3cbade;if(!this[_0x1a0db5(0x24f)])return;const _0xc38a71=_0x5224d0[_0x1a0db5(0x231)]('shape-adjust-point-'+this[_0x1a0db5(0x24f)]+'-'+_0x1b6691);if(_0xc38a71){_0xc38a71['transformByState']({'left':_0x36a822['x']+_0x4ecdd1-_univerjs_pro_engine_shape[_0x1a0db5(0x46a)][_0x1a0db5(0x560)],'top':_0x36a822['y']+_0x41a027-_univerjs_pro_engine_shape[_0x1a0db5(0x46a)][_0x1a0db5(0x560)]});return;}const _0x5de406={'left':_0x36a822['x']+_0x4ecdd1-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x1a0db5(0x560)],'top':_0x36a822['y']+_0x41a027-_univerjs_pro_engine_shape[_0x1a0db5(0x46a)][_0x1a0db5(0x560)],'adjName':_0x1b6691,'shapeId':this[_0x1a0db5(0x24f)],'unitId':_0xb85f6e,'subUnitId':_0x56025a,'width':_univerjs_pro_engine_shape[_0x1a0db5(0x46a)][_0x1a0db5(0x560)]+0x8,'height':_univerjs_pro_engine_shape[_0x1a0db5(0x46a)][_0x1a0db5(0x560)]+0x8,'zIndex':_univerjs_engine_render[_0x1a0db5(0x516)]+0x1,'evented':!![]},_0x384203=new SheetShapeAdjustPointObject('shape-adjust-point-'+this[_0x1a0db5(0x24f)]+'-'+_0x1b6691,_0x5de406);this[_0x1a0db5(0x66e)][_0x1a0db5(0x4b4)](_0x384203),this[_0x1a0db5(0x5bf)](_0x384203,_0x5224d0,_0x1b6691),_0x5224d0[_0x1a0db5(0x3c4)](_0x384203,_univerjs_engine_render[_0x1a0db5(0x516)]+0x1);}[_0x3cbade(0x2c5)](){const _0x41ad=_0x3cbade;if(this[_0x41ad(0x66e)][_0x41ad(0x4ba)]===0x0)return;this['_shapes']['forEach'](_0x1566ca=>{_0x1566ca['dispose']();}),this[_0x41ad(0x66e)]=[];}[_0x3cbade(0x28f)](){const _0xc0026b=_0x3cbade;this[_0xc0026b(0x5ed)]();}[_0x3cbade(0x1ff)](_0x4c1242,_0xcf81bc){const _0x5a77fc=_0x3cbade;var _0x3a026a;const _0x5d327a={'x':0x0,'y':0x0};if(!_0x4c1242||!_0xcf81bc)return _0x5d327a;const _0xda4116=this[_0x5a77fc(0x1c7)]['getRenderById'](_0x4c1242);if(!_0xda4116)return _0x5d327a;if(!_0xda4116['with'](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x5a77fc(0x41e)](_0xcf81bc))return _0x5d327a;const _0xd2de91=_0xda4116[_0x5a77fc(0x4ce)](_univerjs_sheets_ui[_0x5a77fc(0x4d2)]),_0x251fff=_0xd2de91===null||_0xd2de91===void 0x0?void 0x0:_0xd2de91['getCurrentScrollState']();if(!_0x251fff)return _0x5d327a;const _0x131590=(_0x3a026a=this[_0x5a77fc(0x5a0)]['getUnit'](_0x4c1242))===null||_0x3a026a===void 0x0?void 0x0:_0x3a026a[_0x5a77fc(0x5de)](_0xcf81bc);if(!_0x131590)return _0x5d327a;const _0x2f76bf=(0x0,_univerjs_sheets_ui['getViewportByCell'])(_0x251fff[_0x5a77fc(0x5fd)],_0x251fff['sheetViewStartColumn'],_0xda4116[_0x5a77fc(0x53c)],_0x131590);if(!_0x2f76bf)return _0x5d327a;return{'x':_0x2f76bf[_0x5a77fc(0x37b)],'y':_0x2f76bf[_0x5a77fc(0x240)]};}['_getZoomRatio'](_0x546c04,_0x2ef21f){const _0x52f29d=_0x3cbade;var _0x144d56,_0x29cc79;const _0x1ea489=(_0x144d56=this[_0x52f29d(0x5a0)][_0x52f29d(0x2f3)](_0x546c04))===null||_0x144d56===void 0x0?void 0x0:_0x144d56['getSheetBySheetId'](_0x2ef21f);return(_0x29cc79=_0x1ea489===null||_0x1ea489===void 0x0?void 0x0:_0x1ea489[_0x52f29d(0x6cd)]())!==null&&_0x29cc79!==void 0x0?_0x29cc79:0x1;}[_0x3cbade(0x5bf)](_0x1b3a70,_0x2689a8,_0x79a1){const _0x33a46b=_0x3cbade;this[_0x33a46b(0x46e)]((0x0,_univerjs_core[_0x33a46b(0x61e)])(_0x1b3a70[_0x33a46b(0x30f)][_0x33a46b(0x5a4)]((_0xba7cdc,_0x47d87c)=>{const _0x56f901=_0x33a46b;var _0xa87fb8,_0x409420,_0x2d2646,_0x2e9203;const _0x57d656=_0x1b3a70['getDrawingSearch']();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x57d656['unitId'],_0x57d656[_0x56f901(0x3f1)],_0x57d656[_0x56f901(0x291)],_0x79a1),this[_0x56f901(0x51c)]=this['_sheetsShapeService'][_0x56f901(0x58c)](_0x57d656[_0x56f901(0x444)],_0x57d656[_0x56f901(0x3f1)],_0x57d656[_0x56f901(0x291)]);const _0x475c24=this[_0x56f901(0x648)][_0x56f901(0x511)]({'unitId':this[_0x56f901(0x407)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x56f901(0x24f)]}),{transform:_0x2802d8}=_0x475c24;if(_0x2802d8){const {left:_0x3018b8,top:_0x58cef1,width:_0x3ccccf,height:_0x540920}=_0x2802d8;this[_0x56f901(0x24a)]=_0x3018b8||0x0,this[_0x56f901(0x688)]=_0x58cef1||0x0,this[_0x56f901(0x5b5)]=_0x3ccccf||0x0,this[_0x56f901(0x5fc)]=_0x540920||0x0;}const _0x418203=Boolean((_0xa87fb8=_0x475c24[_0x56f901(0x277)])===null||_0xa87fb8===void 0x0?void 0x0:_0xa87fb8['flipX']),_0x48b04e=Boolean((_0x409420=_0x475c24[_0x56f901(0x277)])===null||_0x409420===void 0x0?void 0x0:_0x409420[_0x56f901(0x681)]),_0x276557=((_0x2d2646=_0x475c24[_0x56f901(0x277)])===null||_0x2d2646===void 0x0?void 0x0:_0x2d2646[_0x56f901(0x3ee)])||0x0;this['_isStartAdjusting']=!![],_0x2689a8['disableObjectsEvent']();const _0x1e7bb6=(_0x2e9203=this[_0x56f901(0x51c)])===null||_0x2e9203===void 0x0?void 0x0:_0x2e9203[_0x56f901(0x200)](_0x79a1),_0x536b81={[_0x79a1]:_0x1e7bb6};this['_adjHandlerPointerMove']=_0x2689a8[_0x56f901(0x4c5)][_0x56f901(0x5a4)]((_0x41bae7,_0x45b754)=>{const _0x48877d=_0x56f901;if(!this[_0x48877d(0x454)])return;const {offsetX:_0x1f449a,offsetY:_0x484ab5}=_0x41bae7,_0x3fc9d7=this[_0x48877d(0x568)];if(this[_0x48877d(0x51c)]&&_0x3fc9d7){_0x2689a8[_0x48877d(0x2e7)](),_0x2689a8[_0x48877d(0x205)](_univerjs_engine_render[_0x48877d(0x19d)][_0x48877d(0x216)]);const _0x172f33={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x48877d(0x5fc)]},_0x40a623=this[_0x48877d(0x1ff)](this[_0x48877d(0x407)],this[_0x48877d(0x44d)]),_0x392085=this[_0x48877d(0x489)](this[_0x48877d(0x407)],this[_0x48877d(0x44d)]);let _0x595aa7=_0x1f449a/_0x392085+_0x40a623['x']-this[_0x48877d(0x24a)],_0x417e18=_0x484ab5/_0x392085+_0x40a623['y']-this[_0x48877d(0x688)];if(_0x276557!==0x0){const _0x271946=this[_0x48877d(0x5b5)]/0x2,_0x1cce38=this[_0x48877d(0x5fc)]/0x2,_0x430d08=_0x276557*Math['PI']/0xb4,_0x4006c5=Math[_0x48877d(0x5f9)](_0x430d08),_0x1b7fb7=Math['sin'](_0x430d08),_0x526db6=_0x595aa7-_0x271946,_0x5496f0=_0x417e18-_0x1cce38;_0x595aa7=_0x271946+(_0x526db6*_0x4006c5+_0x5496f0*_0x1b7fb7),_0x417e18=_0x1cce38+(-_0x526db6*_0x1b7fb7+_0x5496f0*_0x4006c5);}if(_0x418203)_0x595aa7=this[_0x48877d(0x5b5)]-_0x595aa7;if(_0x48b04e)_0x417e18=this[_0x48877d(0x5fc)]-_0x417e18;const _0x45a644={'x':_0x595aa7,'y':_0x417e18},_0x17d5a4=this[_0x48877d(0x51c)][_0x48877d(0x356)](_0x172f33,_0x45a644,_0x3fc9d7,_0x418203,_0x48b04e),_0x198b30=_0x3fc9d7['gdRefX']||_0x3fc9d7[_0x48877d(0x4af)]||_0x3fc9d7[_0x48877d(0x41d)]||_0x3fc9d7[_0x48877d(0x497)];if(_0x198b30===void 0x0)return;this[_0x48877d(0x51c)][_0x48877d(0x276)](_0x198b30,_0x17d5a4);const _0x27d2f5=this[_0x48877d(0x648)][_0x48877d(0x511)]({'unitId':_0x57d656['unitId'],'subUnitId':_0x57d656[_0x48877d(0x3f1)],'drawingId':_0x57d656['drawingId']});_0x27d2f5&&(this[_0x48877d(0x680)][_0x48877d(0x296)](_0x27d2f5,_0x2689a8),this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x57d656[_0x48877d(0x444)],_0x57d656['subUnitId'],_0x57d656[_0x48877d(0x291)]),this['_updateAdjustControlPositions']());}_0x45b754['stopPropagation']();}),this[_0x56f901(0x513)]=_0x2689a8[_0x56f901(0x630)]['subscribeEvent']((_0x5ca11f,_0xe4c83d)=>{const _0x34c32a=_0x56f901;this[_0x34c32a(0x3cb)][_0x34c32a(0x5b9)](),this['_adjHandlerPointerUp'][_0x34c32a(0x5b9)](),_0x2689a8[_0x34c32a(0x43a)]();const _0x45b094=this[_0x34c32a(0x568)];if(_0x45b094){const _0x49c263=_0x57d656[_0x34c32a(0x444)],_0xd80614=_0x57d656[_0x34c32a(0x3f1)],_0x312648=_0x57d656[_0x34c32a(0x291)],_0x490518=_0x45b094[_0x34c32a(0x6d0)]||_0x45b094[_0x34c32a(0x4af)]||_0x45b094[_0x34c32a(0x41d)]||_0x45b094[_0x34c32a(0x497)];if(_0x490518!==void 0x0){var _0x38f864;const _0x2f6d9c=(_0x38f864=this['_activeShapeModel'])===null||_0x38f864===void 0x0?void 0x0:_0x38f864[_0x34c32a(0x200)](_0x490518);if(_0x2f6d9c!==void 0x0)updateShapeData(this['_commandService'],_0x49c263,_0xd80614,_0x312648,{'oldShapeData':{'adjustValues':_0x536b81}},{'adjustValues':{[_0x490518]:_0x2f6d9c}});}}this[_0x34c32a(0x568)]=void 0x0,this[_0x34c32a(0x51c)]=void 0x0,this[_0x34c32a(0x454)]=![],_0xe4c83d[_0x34c32a(0x615)](),_0x2689a8[_0x34c32a(0x299)]();}),_0x47d87c['stopPropagation']();})));}[_0x3cbade(0x376)](){const _0x996f2=_0x3cbade,_0x235743=this[_0x996f2(0x5a0)][_0x996f2(0x44f)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET']);this[_0x996f2(0x46e)](_0x235743[_0x996f2(0x6bc)]((0x0,rxjs[_0x996f2(0x592)])(_0x541fb5=>{const _0x49d710=_0x996f2;if(!_0x541fb5)return rxjs[_0x49d710(0x5ea)];return _0x541fb5[_0x49d710(0x3b1)][_0x49d710(0x6bc)]((0x0,rxjs[_0x49d710(0x592)])(_0x31edaa=>{const _0x461c4d=_0x49d710;if(!_0x31edaa)return rxjs[_0x461c4d(0x5ea)];const _0x4762bb=_0x541fb5[_0x461c4d(0x488)](),_0xcd2bf8=this[_0x461c4d(0x1c7)][_0x461c4d(0x412)](_0x4762bb),_0x36f96c=_0xcd2bf8===null||_0xcd2bf8===void 0x0?void 0x0:_0xcd2bf8[_0x461c4d(0x53c)];if(!_0x36f96c)return rxjs[_0x461c4d(0x5ea)];return(0x0,rxjs['of'])(_0x36f96c);}));}))[_0x996f2(0x61f)](_0x1233c8=>{const _0x50ef4c=_0x996f2,_0x32676e=_0x1233c8[_0x50ef4c(0x586)]();this[_0x50ef4c(0x46e)](_0x1233c8[_0x50ef4c(0x4c5)][_0x50ef4c(0x5a4)](()=>{if(this['_isShouldShowDrawingShapeAdjust']){}})),this[_0x50ef4c(0x46e)](_0x32676e[_0x50ef4c(0x23b)]['subscribe'](_0x3cea9f=>{const _0x56ef0e=_0x50ef4c,{objects:_0x455009}=_0x3cea9f;this[_0x56ef0e(0x5ed)]();if(_0x455009!==null&&_0x455009[_0x56ef0e(0x3d4)]===0x1){if(_0x455009[_0x56ef0e(0x54e)]()[_0x56ef0e(0x452)]()['value']instanceof DrawingShape)this[_0x56ef0e(0x575)](!![]);}})),this[_0x50ef4c(0x46e)](_0x32676e[_0x50ef4c(0x5f6)]['subscribe'](()=>{const _0x41ed90=_0x50ef4c;if(this[_0x41ed90(0x38c)])this[_0x41ed90(0x2c5)]();})),this[_0x50ef4c(0x46e)](_0x1233c8['onPointerUp$'][_0x50ef4c(0x5a4)](()=>{const _0x39d96f=_0x50ef4c;this[_0x39d96f(0x38c)]&&(this[_0x39d96f(0x575)](![]),this[_0x39d96f(0x5ed)]());})),this[_0x50ef4c(0x46e)](_0x32676e[_0x50ef4c(0x6e9)][_0x50ef4c(0x61f)](()=>{const _0x4ebf23=_0x50ef4c;this['_unitId']&&this[_0x4ebf23(0x44d)]&&this[_0x4ebf23(0x24f)]&&(this['_drawingManagerService'][_0x4ebf23(0x511)]({'unitId':this['_unitId'],'subUnitId':this[_0x4ebf23(0x44d)],'drawingId':this[_0x4ebf23(0x24f)]})&&(this[_0x4ebf23(0x33b)]=this[_0x4ebf23(0x5e0)](this['_unitId'],this[_0x4ebf23(0x44d)],this[_0x4ebf23(0x24f)]),this[_0x4ebf23(0x28f)]()));}));}));}['_registerDrawingFocusChangeHandler'](){const _0x5786a1=_0x3cbade;this[_0x5786a1(0x46e)](this[_0x5786a1(0x648)][_0x5786a1(0x6bd)]['subscribe'](_0x4c8254=>{const _0x5367ec=_0x5786a1;if(_0x4c8254[_0x5367ec(0x4ba)]===0x1){const _0x2752af=_0x4c8254[0x0];if(_0x2752af[_0x5367ec(0x27c)]===_univerjs_core[_0x5367ec(0x625)][_0x5367ec(0x4a0)]){this['_activeShapeId']=_0x2752af[_0x5367ec(0x291)];const {unitId:_0x3a46ae,subUnitId:_0x23533b}=_0x2752af;this[_0x5367ec(0x33b)]=this[_0x5367ec(0x5e0)](_0x3a46ae,_0x23533b,this['_activeShapeId']),this['_unitId']=_0x3a46ae,this[_0x5367ec(0x44d)]=_0x23533b,this['_clearShapeAdjustControls'](),this[_0x5367ec(0x5ed)]();}else this[_0x5367ec(0x24f)]=null,this[_0x5367ec(0x33b)]=void 0x0,this[_0x5367ec(0x407)]=null,this['_subUnitId']=null,this[_0x5367ec(0x2c5)]();}(_0x4c8254[_0x5367ec(0x4ba)]>0x1||_0x4c8254[_0x5367ec(0x4ba)]===0x0)&&(this['_activeShapeId']=null,this[_0x5367ec(0x33b)]=void 0x0,this[_0x5367ec(0x407)]=null,this[_0x5367ec(0x44d)]=null,this[_0x5367ec(0x2c5)]());})),this[_0x5786a1(0x46e)](this[_0x5786a1(0x648)][_0x5786a1(0x3a7)][_0x5786a1(0x61f)](_0x541898=>{const _0x490408=_0x5786a1;if(_0x541898[_0x490408(0x4ba)]===0x1){var _0x1853f5;const _0x46c8ef=_0x541898[0x0];if(((_0x1853f5=this[_0x490408(0x648)][_0x490408(0x511)](_0x46c8ef))===null||_0x1853f5===void 0x0?void 0x0:_0x1853f5['drawingType'])===_univerjs_core['DrawingTypeEnum'][_0x490408(0x4a0)])this[_0x490408(0x201)](!![]);}})),this[_0x5786a1(0x46e)](this[_0x5786a1(0x648)][_0x5786a1(0x5f3)]['subscribe'](_0x34ec8f=>{const _0x550f48=_0x5786a1;for(const _0x3125c0 of _0x34ec8f)this[_0x550f48(0x24f)]===_0x3125c0[_0x550f48(0x291)]&&(this[_0x550f48(0x24f)]=null,this[_0x550f48(0x33b)]=void 0x0,this[_0x550f48(0x407)]=null,this[_0x550f48(0x44d)]=null,this[_0x550f48(0x2c5)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core[_0x3cbade(0x6d7)]),__decorateParam(0x2,_univerjs_drawing[_0x3cbade(0x3a9)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_pro_sheets_shape[_0x3cbade(0x39e)])),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x3cbade(0x2fa)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3cbade(0x319)])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core['IUniverInstanceService']),__decorateParam(0x7,_univerjs_core[_0x3cbade(0x447)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x3cbade(0x351),'type':_univerjs_core[_0x3cbade(0x1fa)][_0x3cbade(0x62d)],'handler':(_0x1c3cc3,_0x37941f)=>{const _0x30e6fb=_0x3cbade,_0x324805=_0x1c3cc3[_0x30e6fb(0x293)](_univerjs_drawing['IDrawingManagerService']),_0x3da5a5=_0x1c3cc3[_0x30e6fb(0x293)](_univerjs_engine_render[_0x30e6fb(0x2fa)]),_0x309078=_0x1c3cc3[_0x30e6fb(0x293)](SheetShapeAdjustController);if(_0x37941f==null)return!![];if(_0x37941f[_0x30e6fb(0x4ba)]>0x0){var _0x58824b;const _0x275a6f=(_0x58824b=_0x3da5a5[_0x30e6fb(0x412)](_0x37941f[0x0][_0x30e6fb(0x444)]))===null||_0x58824b===void 0x0?void 0x0:_0x58824b[_0x30e6fb(0x53c)];if(_0x275a6f){const {unitId:_0x28d463,subUnitId:_0x5738cb,drawingId:_0x15fd86}=_0x37941f[0x0],_0x4c4e85=(0x0,_univerjs_drawing[_0x30e6fb(0x564)])({'unitId':_0x28d463,'subUnitId':_0x5738cb,'drawingId':_0x15fd86},void 0x0),_0x484e7b=_0x275a6f[_0x30e6fb(0x231)](_0x4c4e85);if(_0x484e7b){var _0x482d28;(_0x482d28=_0x3da5a5[_0x30e6fb(0x412)](_0x37941f[0x0][_0x30e6fb(0x444)]))===null||_0x482d28===void 0x0||(_0x482d28=_0x482d28[_0x30e6fb(0x53c)][_0x30e6fb(0x49c)]())===null||_0x482d28===void 0x0||_0x482d28[_0x30e6fb(0x491)](_0x484e7b);}}_0x324805['focusDrawing'](_0x37941f),_0x309078[_0x30e6fb(0x575)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x3cbade(0x1fa)][_0x3cbade(0x617)],'id':'sheet.command.menu-insert-shape','handler':async(_0x1c1352,_0x4b2ce1)=>{const _0x451b13=_0x3cbade,_0x2f99b3=(0x0,_univerjs_sheets[_0x451b13(0x56f)])(_0x1c1352[_0x451b13(0x293)](_univerjs_core[_0x451b13(0x3ea)]));if(!_0x2f99b3)return![];const _0x2b3445=_0x1c1352[_0x451b13(0x293)](_univerjs_sheets[_0x451b13(0x4f5)])[_0x451b13(0x6de)]();if(!_0x2b3445)return![];const _0x5664a4=_0x1c1352[_0x451b13(0x293)](_univerjs_core[_0x451b13(0x447)]),{unitId:_0x1c13b9,subUnitId:_0x2a70c2}=_0x2f99b3,{value:_0x6111ab,enhanceParams:_0x4635bc}=_0x4b2ce1,{range:_0x155abd}=_0x2b3445,_0x5d7e39={'unitId':_0x1c13b9,'subUnitId':_0x2a70c2,'shapeType':_0x6111ab,'range':_0x155abd,'shapeId':(0x0,_univerjs_core[_0x451b13(0x1f8)])()};if(_0x4635bc){const _0x2102cf=(0x0,_univerjs_pro_engine_shape[_0x451b13(0x5c0)])(_0x6111ab),_0xf2efc6=_0x6111ab===_univerjs_pro_engine_shape[_0x451b13(0x40e)][_0x451b13(0x6d5)];if(_0x2102cf&&(_0x4635bc[_0x451b13(0x3cd)]||_0x4635bc[_0x451b13(0x327)]))_0x5d7e39['shapeData']={'ln':{'startArrow':_0x4635bc['startArrow']?{'type':_univerjs_pro_engine_shape[_0x451b13(0x374)][_0x451b13(0x2ec)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum']['Medium']}:void 0x0,'endArrow':_0x4635bc[_0x451b13(0x327)]?{'type':_univerjs_pro_engine_shape[_0x451b13(0x374)][_0x451b13(0x2ec)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x451b13(0x300)]}:void 0x0}};if(_0xf2efc6&&(_0x4635bc[_0x451b13(0x521)]||_0x4635bc[_0x451b13(0x47c)]))_0x5d7e39[_0x451b13(0x38a)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x451b13(0x192)][_0x451b13(0x542)],'color':_0x451b13(0x1e4)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x451b13(0x3d9)][_0x451b13(0x3cc)],'width':0x1,'color':_0x451b13(0x259)},'shapeText':{'isHorizontal':!!_0x4635bc[_0x451b13(0x521)]}};}const _0x1aa048=_0x5664a4['syncExecuteCommand'](_univerjs_pro_sheets_shape[_0x451b13(0x226)]['id'],_0x5d7e39);return setTimeout(()=>{const _0x31c2fd=_0x451b13;_0x5664a4[_0x31c2fd(0x522)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x1c13b9,'subUnitId':_0x2a70c2,'drawingId':_0x5d7e39['shapeId']}]);},0xc8),_0x1aa048;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0x3c0f5b,_0x23f11b){const _0x1aa1c4=_0x3cbade;super(),this[_0x1aa1c4(0x3a0)]=_0x3c0f5b,this[_0x1aa1c4(0x648)]=_0x23f11b,this['_registerImageShapeClipDelegate'](),this[_0x1aa1c4(0x3a0)]['setCanUseShapeClip'](!![]),this['disposeWithMe']({'dispose':()=>this[_0x1aa1c4(0x3a0)][_0x1aa1c4(0x6c7)](![])});}[_0x3cbade(0x424)](){const _0x50cbd3=_0x3cbade,_0x2e8227=this[_0x50cbd3(0x3a0)],_0x45bf25=new Map(),_0x30f9c2=_0x2e8227[_0x50cbd3(0x2d6)]((_0x4027d6,_0x500668,_0x3542c3,_0x4f31a4,_0x31eacf)=>{const _0x2e6462=_0x50cbd3,_0x21f5f8=_0x500668;if(_0x21f5f8===_univerjs_pro_engine_shape[_0x2e6462(0x40e)][_0x2e6462(0x5f1)]||_0x500668===_0x2e6462(0x29c))return![];try{let _0x357f56=_0x45bf25[_0x2e6462(0x293)](_0x500668);!_0x357f56&&(_0x357f56=new _univerjs_pro_engine_shape[(_0x2e6462(0x56e))](_0x21f5f8,_0x2e6462(0x3ba)+_0x500668),_0x45bf25[_0x2e6462(0x2a7)](_0x500668,_0x357f56));if(_0x31eacf)_0x357f56['setShapeData']({'adjustValues':_0x31eacf},!![]);return _0x357f56[_0x2e6462(0x4dc)]({'width':_0x3542c3,'height':_0x4f31a4}),_0x357f56[_0x2e6462(0x61d)](_0x4027d6,{'left':0x0,'top':0x0,'width':_0x3542c3,'height':_0x4f31a4});}catch{return![];}});this[_0x50cbd3(0x46e)](_0x30f9c2),this['disposeWithMe']({'dispose':()=>_0x45bf25[_0x50cbd3(0x2f4)]()});}['clipByShape'](_0x30807b,_0x4f2e47,_0x3c751f,_0x1d3827,_0x569ce7){const _0x3ab478=_0x3cbade,_0x57ec07=this['_drawingManagerService'][_0x3ab478(0x22e)](_0x30807b,_0x4f2e47);if(!_0x57ec07[_0x3c751f])return;const _0x452487={..._0x57ec07[_0x3c751f],'prstGeom':_0x1d3827,'adjustValues':_0x569ce7};this[_0x3ab478(0x648)][_0x3ab478(0x313)]([_0x452487]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_drawing_ui[_0x3cbade(0x5db)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_drawing['IDrawingManagerService']))],ImageShapeClipController);let ShapeGroupEnum=function(_0x3dbfff){const _0x56398e=_0x3cbade;return _0x3dbfff[_0x56398e(0x263)]=_0x56398e(0x369),_0x3dbfff[_0x56398e(0x6a0)]=_0x56398e(0x2b2),_0x3dbfff[_0x56398e(0x1be)]='basicShape',_0x3dbfff[_0x56398e(0x372)]=_0x56398e(0x4c2),_0x3dbfff['EquationShape']=_0x56398e(0x317),_0x3dbfff[_0x56398e(0x655)]=_0x56398e(0x62b),_0x3dbfff[_0x56398e(0x5cf)]=_0x56398e(0x471),_0x3dbfff['Callout']=_0x56398e(0x420),_0x3dbfff[_0x56398e(0x2ed)]=_0x56398e(0x541),_0x3dbfff;}({});const shapeTypeOptions=[{'group':ShapeGroupEnum[_0x3cbade(0x263)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x263)],'icon':'ShapeLineIcon','name':_0x3cbade(0x644)},{'group':ShapeGroupEnum[_0x3cbade(0x263)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x552)],'icon':_0x3cbade(0x682),'name':'shape.type.straight-connector1','endArrow':!![]},{'group':ShapeGroupEnum[_0x3cbade(0x263)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['StraightConnector1'],'icon':_0x3cbade(0x1b7),'name':_0x3cbade(0x6a2),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum[_0x3cbade(0x263)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x473)],'icon':_0x3cbade(0x30e),'name':_0x3cbade(0x1a9)},{'group':ShapeGroupEnum[_0x3cbade(0x263)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['BentConnector3'],'icon':_0x3cbade(0x503),'name':_0x3cbade(0x5b3),'endArrow':!![]},{'group':ShapeGroupEnum[_0x3cbade(0x263)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x473)],'icon':_0x3cbade(0x241),'name':'shape.type.bent-connector3-arrow2','endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum['Line'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x3f8)],'icon':_0x3cbade(0x5cc),'name':_0x3cbade(0x5e3)},{'group':ShapeGroupEnum[_0x3cbade(0x263)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x3f8)],'icon':_0x3cbade(0x3ae),'name':_0x3cbade(0x69b),'endArrow':!![]},{'group':ShapeGroupEnum[_0x3cbade(0x263)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x3f8)],'icon':_0x3cbade(0x401),'name':_0x3cbade(0x6b0),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum[_0x3cbade(0x6a0)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x6d5)],'icon':_0x3cbade(0x50c),'name':_0x3cbade(0x69a)},{'group':ShapeGroupEnum[_0x3cbade(0x6a0)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x266)],'icon':_0x3cbade(0x270),'name':_0x3cbade(0x500)},{'group':ShapeGroupEnum[_0x3cbade(0x6a0)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x243)],'icon':'ShapeSnip1RectIcon','name':'shape.type.snip1-rect'},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x273)],'icon':_0x3cbade(0x6da),'name':_0x3cbade(0x267)},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x423)],'icon':'ShapeSnip2DiagRectIcon','name':'shape.type.snip2-diag-rect'},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2f2)],'icon':'ShapeSnipRoundRectIcon','name':_0x3cbade(0x3b2)},{'group':ShapeGroupEnum[_0x3cbade(0x6a0)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x47f)],'icon':_0x3cbade(0x5f5),'name':'shape.type.round1-rect'},{'group':ShapeGroupEnum[_0x3cbade(0x6a0)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x571)],'icon':'ShapeRound2SameRectIcon','name':_0x3cbade(0x544)},{'group':ShapeGroupEnum[_0x3cbade(0x6a0)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x31a)],'icon':'ShapeRound2DiagRectIcon','name':'shape.type.round2-diag-rect'},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x6d5)],'icon':_0x3cbade(0x60c),'name':_0x3cbade(0x1ea),'horizontal':!![]},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x6d5)],'icon':_0x3cbade(0x46f),'name':_0x3cbade(0x458),'vertical':!![]},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x5f0)],'icon':_0x3cbade(0x5ec),'name':_0x3cbade(0x68d)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x380)],'icon':_0x3cbade(0x411),'name':_0x3cbade(0x4df)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x248)],'icon':_0x3cbade(0x3be),'name':_0x3cbade(0x3fc)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['Parallelogram'],'icon':_0x3cbade(0x27e),'name':_0x3cbade(0x6df)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x283)],'icon':_0x3cbade(0x309),'name':'shape.type.trapezoid'},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x570)],'icon':'ShapeDiamondIcon','name':_0x3cbade(0x212)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x662)],'icon':_0x3cbade(0x3b6),'name':_0x3cbade(0x67c)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x5e5)],'icon':_0x3cbade(0x2f9),'name':_0x3cbade(0x3db)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1f1)],'icon':_0x3cbade(0x402),'name':'shape.type.heptagon'},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Octagon'],'icon':_0x3cbade(0x433),'name':_0x3cbade(0x5ac)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x4d8)],'icon':_0x3cbade(0x2d7),'name':_0x3cbade(0x22c)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x23e)],'icon':_0x3cbade(0x3cf),'name':'shape.type.dodecagon'},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x69c)],'icon':'ShapePieIcon','name':_0x3cbade(0x3d2)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x622)],'icon':_0x3cbade(0x49e),'name':'shape.type.chord'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x1f0)],'icon':_0x3cbade(0x3fb),'name':_0x3cbade(0x33d)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2d5)],'icon':_0x3cbade(0x346),'name':_0x3cbade(0x604)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x360)],'icon':_0x3cbade(0x557),'name':_0x3cbade(0x25f)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Corner'],'icon':_0x3cbade(0x429),'name':_0x3cbade(0x2ff)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x4ff)],'icon':_0x3cbade(0x49b),'name':_0x3cbade(0x6e5)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2c3)],'icon':_0x3cbade(0x5fa),'name':_0x3cbade(0x3e2)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['Plaque'],'icon':_0x3cbade(0x1bd),'name':_0x3cbade(0x5c8)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x3f3)],'icon':'ShapeCanIcon','name':'shape.type.can'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x41c)],'icon':'ShapeCubeIcon','name':_0x3cbade(0x4d7)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2a0)],'icon':_0x3cbade(0x2a4),'name':_0x3cbade(0x449)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x44b)],'icon':'ShapeDonutIcon','name':_0x3cbade(0x4e1)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NoSmoking'],'icon':'ShapeNoSmokingIcon','name':_0x3cbade(0x321)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['BlockArc'],'icon':'ShapeBlockArcIcon','name':'shape.type.block-arc'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x48b)],'icon':_0x3cbade(0x362),'name':_0x3cbade(0x253)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x49a)],'icon':_0x3cbade(0x4c6),'name':_0x3cbade(0x685)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x6ad)],'icon':'ShapeHeartIcon','name':_0x3cbade(0x1dc)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x247)],'icon':_0x3cbade(0x4e5),'name':'shape.type.lightning-bolt'},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Sun'],'icon':_0x3cbade(0x453),'name':_0x3cbade(0x195)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x3c2)],'icon':_0x3cbade(0x42c),'name':'shape.type.moon'},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['Cloud'],'icon':_0x3cbade(0x6c9),'name':_0x3cbade(0x425)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x64f)],'icon':_0x3cbade(0x1f9),'name':_0x3cbade(0x1d0)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x45e)],'icon':_0x3cbade(0x4d3),'name':_0x3cbade(0x256)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x31c)],'icon':_0x3cbade(0x418),'name':_0x3cbade(0x64c)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['LeftBracket'],'icon':_0x3cbade(0x2d2),'name':_0x3cbade(0x472)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x33e)],'icon':_0x3cbade(0x206),'name':_0x3cbade(0x2c9)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x534)],'icon':_0x3cbade(0x581),'name':_0x3cbade(0x4c7)},{'group':ShapeGroupEnum[_0x3cbade(0x1be)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['RightBrace'],'icon':_0x3cbade(0x40f),'name':'shape.type.right-brace'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x666)],'icon':_0x3cbade(0x419),'name':_0x3cbade(0x4a8)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1a2)],'icon':_0x3cbade(0x468),'name':'shape.type.left-arrow'},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['UpArrow'],'icon':_0x3cbade(0x28a),'name':_0x3cbade(0x30b)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x1df)],'icon':_0x3cbade(0x1d5),'name':_0x3cbade(0x618)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2df)],'icon':'ShapeLeftRightArrowIcon','name':'shape.type.left-right-arrow'},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x5d7)],'icon':_0x3cbade(0x22a),'name':_0x3cbade(0x35b)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1d2)],'icon':'ShapeQuadArrowIcon','name':_0x3cbade(0x2eb)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x55e)],'icon':_0x3cbade(0x2b8),'name':'shape.type.left-right-up-arrow'},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['BentArrow'],'icon':_0x3cbade(0x4ab),'name':_0x3cbade(0x62e)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1fb)],'icon':'ShapeUturnArrowIcon','name':_0x3cbade(0x2f0)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftUpArrow'],'icon':'ShapeLeftUpArrowIcon','name':_0x3cbade(0x4eb)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['BentUpArrow'],'icon':_0x3cbade(0x4db),'name':_0x3cbade(0x60f)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x38e)],'icon':_0x3cbade(0x45b),'name':_0x3cbade(0x1f5)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x3c7)],'icon':'ShapeCurvedLeftArrowIcon','name':_0x3cbade(0x67a)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['CurvedUpArrow'],'icon':_0x3cbade(0x6cc),'name':_0x3cbade(0x32b)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['CurvedDownArrow'],'icon':_0x3cbade(0x5be),'name':'shape.type.curved-down-arrow'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x335)],'icon':'ShapeStripedRightArrowIcon','name':'shape.type.striped-right-arrow'},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2fb)],'icon':_0x3cbade(0x42a),'name':_0x3cbade(0x5d8)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['HomePlate'],'icon':_0x3cbade(0x25b),'name':_0x3cbade(0x255)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Chevron'],'icon':_0x3cbade(0x1a7),'name':_0x3cbade(0x6e6)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['RightArrowCallout'],'icon':'ShapeRightArrowCalloutIcon','name':'shape.type.right-arrow-callout'},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x26f)],'icon':_0x3cbade(0x330),'name':'shape.type.down-arrow-callout'},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['LeftArrowCallout'],'icon':_0x3cbade(0x2c2),'name':_0x3cbade(0x384)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x3b7)],'icon':_0x3cbade(0x623),'name':_0x3cbade(0x540)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['LeftRightArrowCallout'],'icon':_0x3cbade(0x32d),'name':_0x3cbade(0x1c0)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x5ef)],'icon':_0x3cbade(0x295),'name':_0x3cbade(0x3c0)},{'group':ShapeGroupEnum[_0x3cbade(0x372)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1ce)],'icon':_0x3cbade(0x286),'name':'shape.type.circular-arrow'},{'group':ShapeGroupEnum[_0x3cbade(0x62c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['MathPlus'],'icon':'ShapeMathPlusIcon','name':_0x3cbade(0x3d6)},{'group':ShapeGroupEnum[_0x3cbade(0x62c)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['MathMinus'],'icon':_0x3cbade(0x260),'name':_0x3cbade(0x432)},{'group':ShapeGroupEnum[_0x3cbade(0x62c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['MathMultiply'],'icon':_0x3cbade(0x332),'name':_0x3cbade(0x68a)},{'group':ShapeGroupEnum[_0x3cbade(0x62c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x6b4)],'icon':_0x3cbade(0x459),'name':'shape.type.math-divide'},{'group':ShapeGroupEnum[_0x3cbade(0x62c)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x198)],'icon':_0x3cbade(0x1e0),'name':_0x3cbade(0x4d4)},{'group':ShapeGroupEnum['EquationShape'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x663)],'icon':'ShapeMathNotEqualIcon','name':'shape.type.math-not-equal'},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['FlowchartProcess'],'icon':_0x3cbade(0x2ae),'name':_0x3cbade(0x338)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x602)],'icon':'ShapeFlowChartAlternateProcessIcon','name':_0x3cbade(0x214)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x59e)],'icon':_0x3cbade(0x528),'name':'shape.type.flow-chart-decision'},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x66a)],'icon':_0x3cbade(0x67b),'name':_0x3cbade(0x333)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x5b0)],'icon':_0x3cbade(0x4a5),'name':_0x3cbade(0x385)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['FlowchartInternalStorage'],'icon':'ShapeFlowChartInternalStorageIcon','name':_0x3cbade(0x318)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x4b2)],'icon':_0x3cbade(0x56c),'name':'shape.type.flow-chart-document'},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x6bb)],'icon':_0x3cbade(0x687),'name':_0x3cbade(0x2d4)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x36b)],'icon':'ShapeFlowChartTerminatorIcon','name':_0x3cbade(0x4f4)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2de)],'icon':_0x3cbade(0x20a),'name':_0x3cbade(0x42b)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x3ed)],'icon':'ShapeFlowChartManualInputIcon','name':_0x3cbade(0x2d8)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartManualOperation'],'icon':_0x3cbade(0x532),'name':'shape.type.flow-chart-manual-operation'},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x413)],'icon':_0x3cbade(0x3de),'name':'shape.type.flow-chart-connector'},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x311)],'icon':_0x3cbade(0x616),'name':_0x3cbade(0x57c)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['FlowchartPunchedCard'],'icon':_0x3cbade(0x590),'name':_0x3cbade(0x562)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartPunchedTape'],'icon':_0x3cbade(0x692),'name':_0x3cbade(0x39b)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x659)],'icon':'ShapeFlowChartSummingJunctionIcon','name':_0x3cbade(0x5d2)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['FlowchartOr'],'icon':_0x3cbade(0x334),'name':_0x3cbade(0x45c)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['FlowchartCollate'],'icon':_0x3cbade(0x3f2),'name':_0x3cbade(0x210)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x59d)],'icon':_0x3cbade(0x4f2),'name':_0x3cbade(0x607)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x450)],'icon':_0x3cbade(0x194),'name':_0x3cbade(0x5a6)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x435)],'icon':_0x3cbade(0x6ab),'name':_0x3cbade(0x315)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x2a1)],'icon':'ShapeFlowChartOnlineStorageIcon','name':_0x3cbade(0x56b)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x5d4)],'icon':_0x3cbade(0x6dd),'name':'shape.type.flow-chart-delay'},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2ba)],'icon':_0x3cbade(0x679),'name':_0x3cbade(0x4fa)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x566)],'icon':'ShapeFlowChartMagneticDiskIcon','name':_0x3cbade(0x2e5)},{'group':ShapeGroupEnum[_0x3cbade(0x655)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x409)],'icon':_0x3cbade(0x308),'name':_0x3cbade(0x657)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x42d)],'icon':_0x3cbade(0x272),'name':'shape.type.flow-chart-display'},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['IrregularSeal1'],'icon':_0x3cbade(0x3f0),'name':_0x3cbade(0x63f)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['IrregularSeal2'],'icon':'ShapeIrregularSeal2Icon','name':'shape.type.irregular-seal2'},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x52b)],'icon':'ShapeStar4Icon','name':_0x3cbade(0x353)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x651)],'icon':'ShapeStar5Icon','name':_0x3cbade(0x6af)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x4da)],'icon':_0x3cbade(0x4d9),'name':'shape.type.star6'},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x416)],'icon':'ShapeStar7Icon','name':_0x3cbade(0x530)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x645)],'icon':_0x3cbade(0x6db),'name':_0x3cbade(0x475)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x3dd)],'icon':_0x3cbade(0x228),'name':_0x3cbade(0x505)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['Star12'],'icon':'ShapeStar12Icon','name':_0x3cbade(0x691)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x275)],'icon':_0x3cbade(0x690),'name':_0x3cbade(0x52d)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x31b)],'icon':_0x3cbade(0x671),'name':_0x3cbade(0x349)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x32f)],'icon':_0x3cbade(0x55f),'name':_0x3cbade(0x294)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1a5)],'icon':_0x3cbade(0x649),'name':_0x3cbade(0x499)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x27f)],'icon':_0x3cbade(0x667),'name':_0x3cbade(0x68e)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2d3)],'icon':_0x3cbade(0x6b1),'name':_0x3cbade(0x399)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x3df)],'icon':_0x3cbade(0x580),'name':_0x3cbade(0x2da)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x357)],'icon':_0x3cbade(0x595),'name':'shape.type.vertical-scroll'},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1cd)],'icon':_0x3cbade(0x208),'name':_0x3cbade(0x588)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x441)],'icon':_0x3cbade(0x302),'name':_0x3cbade(0x5ad)},{'group':ShapeGroupEnum[_0x3cbade(0x5cf)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['DoubleWave'],'icon':_0x3cbade(0x62f),'name':'shape.type.double-wave'},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x597)],'icon':'ShapeWedgeRectCalloutIcon','name':_0x3cbade(0x5fb)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x3e3)],'icon':'ShapeWedgeRoundRectCalloutIcon','name':_0x3cbade(0x619)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x461)],'icon':_0x3cbade(0x3a2),'name':_0x3cbade(0x656)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x236)],'icon':_0x3cbade(0x3af),'name':_0x3cbade(0x3d8)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['BorderCallout1'],'icon':_0x3cbade(0x1f6),'name':'shape.type.border-callout1'},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x5c9)],'icon':_0x3cbade(0x4b1),'name':_0x3cbade(0x26a)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x531)],'icon':_0x3cbade(0x4f1),'name':_0x3cbade(0x44c)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['AccentCallout1'],'icon':'ShapeAccentCallout1Icon','name':'shape.type.accent-callout1'},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1f3)],'icon':'ShapeAccentCallout2Icon','name':'shape.type.accent-callout2'},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x58a)],'icon':_0x3cbade(0x234),'name':_0x3cbade(0x30c)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x23c)],'icon':_0x3cbade(0x3e1),'name':_0x3cbade(0x1cc)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x209)],'icon':'ShapeCallout2Icon','name':_0x3cbade(0x5e9)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x436)],'icon':'ShapeCallout3Icon','name':_0x3cbade(0x29f)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2ee)],'icon':_0x3cbade(0x355),'name':_0x3cbade(0x696)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x573)],'icon':'ShapeAccentBorderCallout2Icon','name':_0x3cbade(0x4a3)},{'group':ShapeGroupEnum[_0x3cbade(0x606)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['AccentBorderCallout3'],'icon':_0x3cbade(0x6c4),'name':'shape.type.accent-border-callout3'},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['LeftCircularArrow'],'icon':_0x3cbade(0x4ef),'name':'shape.type.left-circular-arrow'},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x34f)],'icon':_0x3cbade(0x58e),'name':'shape.type.left-right-circular-arrow'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['SwooshArrow'],'icon':_0x3cbade(0x5aa),'name':_0x3cbade(0x4b8)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x393)],'icon':_0x3cbade(0x69f),'name':_0x3cbade(0x2a9)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['PieWedge'],'icon':_0x3cbade(0x2f1),'name':_0x3cbade(0x36c)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x29e)],'icon':_0x3cbade(0x281),'name':_0x3cbade(0x629)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['Gear6'],'icon':_0x3cbade(0x4c0),'name':'shape.type.gear6'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Gear9'],'icon':_0x3cbade(0x636),'name':_0x3cbade(0x1a0)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x57f)],'icon':_0x3cbade(0x591),'name':'shape.type.corner-tabs'},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x29d)],'icon':'ShapeActionButtonBackPreviousIcon','name':_0x3cbade(0x45d)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x26b)],'icon':'ShapeActionButtonForwardNextIcon','name':'shape.type.action-button-forward-next'},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x422)],'icon':_0x3cbade(0x225),'name':_0x3cbade(0x561)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x2c8)],'icon':_0x3cbade(0x4a7),'name':_0x3cbade(0x3eb)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x678)],'icon':'ShapeActionButtonHomeIcon','name':_0x3cbade(0x2ef)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x230)],'icon':'ShapeActionButtonInformationIcon','name':_0x3cbade(0x670)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonReturn'],'icon':_0x3cbade(0x482),'name':_0x3cbade(0x6a8)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x4e0)],'icon':_0x3cbade(0x589),'name':'shape.type.action-button-movie'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonDocument'],'icon':_0x3cbade(0x27a),'name':_0x3cbade(0x6ea)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x484)],'icon':_0x3cbade(0x288),'name':_0x3cbade(0x20b)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x443)],'icon':_0x3cbade(0x28c),'name':_0x3cbade(0x2cc)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x6d1)],'icon':'ShapeActionButtonBlankIcon','name':_0x3cbade(0x52c)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x398)],'icon':'ShapeChartPlusIcon','name':_0x3cbade(0x389)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)][_0x3cbade(0x1cb)],'icon':_0x3cbade(0x59a),'name':_0x3cbade(0x464)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x2fc)],'icon':_0x3cbade(0x2b9),'name':'shape.type.chart-x'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowChartOfflineStorage'],'icon':_0x3cbade(0x428),'name':_0x3cbade(0x5eb)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x57a)],'icon':_0x3cbade(0x465),'name':_0x3cbade(0x31e)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['PlaqueTabs'],'icon':_0x3cbade(0x5cd),'name':_0x3cbade(0x6d3)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape[_0x3cbade(0x40e)]['SquareTabs'],'icon':_0x3cbade(0x53f),'name':_0x3cbade(0x406)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x6c0)],'icon':_0x3cbade(0x642),'name':_0x3cbade(0x6ba)},{'group':ShapeGroupEnum[_0x3cbade(0x2ed)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3cbade(0x3bf)],'icon':_0x3cbade(0x4e8),'name':_0x3cbade(0x414)}],SHAPE_PICKER_COMPONENT='sheet.shape.picker.component';function ShapePickerComponent({onShapeClick:_0x5589db,excludeGroups:_0x225f24}){const _0x1df38c=_0x3cbade,_0x56b828=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x1df38c(0x2bb)]),_0x55945d=(0x0,_univerjs_ui[_0x1df38c(0x287)])(_univerjs_ui[_0x1df38c(0x279)]),_0x202508=(_0x225f24?shapeTypeOptions[_0x1df38c(0x52f)](_0x1533b1=>!_0x225f24[_0x1df38c(0x474)](_0x1533b1[_0x1df38c(0x323)])):shapeTypeOptions)['reduce']((_0x3e82e9,_0x39d849)=>{const _0x529ef0=_0x1df38c;if(!_0x3e82e9[_0x39d849[_0x529ef0(0x323)]])_0x3e82e9[_0x39d849[_0x529ef0(0x323)]]=[];return _0x3e82e9[_0x39d849[_0x529ef0(0x323)]][_0x529ef0(0x4b4)](_0x39d849),_0x3e82e9;},{});return(0x0,react_jsx_runtime[_0x1df38c(0x65c)])('div',{'className':'univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','children':Object[_0x1df38c(0x1bf)](_0x202508)[_0x1df38c(0x2bc)](([_0x1ef3d9,_0xcac1b1])=>(0x0,react_jsx_runtime[_0x1df38c(0x5b8)])(_0x1df38c(0x477),{'className':'univer-mb-2','children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x1df38c(0x33f),'children':_0x56b828['t'](_0x1df38c(0x322)+_0x1ef3d9)}),(0x0,react_jsx_runtime[_0x1df38c(0x65c)])(_0x1df38c(0x477),{'className':_0x1df38c(0x594),'children':_0xcac1b1[_0x1df38c(0x2bc)](_0x1cd229=>{const _0x4823cf=_0x1df38c,_0x55c2cc=_0x55945d[_0x4823cf(0x293)](_0x1cd229[_0x4823cf(0x1ee)]);return(0x0,react_jsx_runtime[_0x4823cf(0x65c)])(_0x4823cf(0x477),{'title':_0x56b828['t'](_0x1cd229[_0x4823cf(0x54f)]),'onClick':()=>_0x5589db(_0x1cd229),'className':'univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','children':_0x55c2cc&&(0x0,react_jsx_runtime['jsx'])(_0x55c2cc,{'className':_0x4823cf(0x61a)})},_0x1cd229['name']);})})]},_0x1ef3d9))});}function ImageClipShapePicker(){const _0x21a30e=_0x3cbade,_0xd73d8c=(0x0,_univerjs_ui[_0x21a30e(0x287)])(_univerjs_core[_0x21a30e(0x2bb)]),_0x31e7a4=(0x0,_univerjs_ui[_0x21a30e(0x287)])(_univerjs_drawing[_0x21a30e(0x3a9)]),_0x3dd519=(0x0,_univerjs_ui[_0x21a30e(0x287)])(ImageShapeClipController),[_0x5d7f06,_0xdf4dd5]=(0x0,react['useState'])(![]),_0x532e7c=_0x531855=>{const _0x2023f6=_0x21a30e,_0x2d5f90=_0x31e7a4[_0x2023f6(0x34c)]()[_0x2023f6(0x6d4)](_0x9ad69d=>_0x9ad69d[_0x2023f6(0x27c)]===_univerjs_core['DrawingTypeEnum'][_0x2023f6(0x6c8)]);if(!_0x2d5f90)return;const {unitId:_0x36434a,subUnitId:_0x43d7e5,drawingId:_0x43ee7a}=_0x2d5f90;_0x3dd519[_0x2023f6(0x6aa)](_0x36434a,_0x43d7e5,_0x43ee7a,_0x531855[_0x2023f6(0x6bf)]),_0xdf4dd5(![]);};return(0x0,react_jsx_runtime[_0x21a30e(0x65c)])(_univerjs_design[_0x21a30e(0x65e)],{'side':'left','open':_0x5d7f06,'onOpenChange':_0xdf4dd5,'overlay':(0x0,react_jsx_runtime[_0x21a30e(0x65c)])(ShapePickerComponent,{'onShapeClick':_0x532e7c,'excludeGroups':[ShapeGroupEnum['Line']]}),'children':(0x0,react_jsx_runtime[_0x21a30e(0x65c)])(_univerjs_design['Button'],{'children':_0xd73d8c['t']('image-panel.crop.shape')})});}function ShapePicker(){const _0x403f62=_0x3cbade,_0x209c70=(0x0,_univerjs_ui[_0x403f62(0x287)])(_univerjs_core[_0x403f62(0x447)]),_0x5be00d=_0xeac814=>{const _0x22c3c3=_0x403f62;_0x209c70[_0x22c3c3(0x522)](MenuInsertShapeCommand['id'],{'value':_0xeac814[_0x22c3c3(0x6bf)],'enhanceParams':{'endArrow':_0xeac814[_0x22c3c3(0x327)],'startArrow':_0xeac814['startArrow'],'horizontal':_0xeac814[_0x22c3c3(0x521)],'vertical':_0xeac814[_0x22c3c3(0x47c)]}});};return(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x5be00d});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x3cbade(0x431),'icon':_0x3cbade(0x66b),'value':_univerjs_core[_0x3cbade(0x193)][_0x3cbade(0x58b)]},{'label':_0x3cbade(0x3f9),'icon':_0x3cbade(0x331),'value':_univerjs_core[_0x3cbade(0x193)]['CENTER']},{'label':_0x3cbade(0x4ac),'icon':_0x3cbade(0x5e6),'value':_univerjs_core[_0x3cbade(0x193)][_0x3cbade(0x48a)]}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x516ff5){const _0x2a2996=_0x3cbade,_0x5855c9=_0x516ff5['get'](_univerjs_core['IContextService']),_0x477401=_0x516ff5['get'](_univerjs_core['ThemeService']);return{'id':_univerjs_docs_ui[_0x2a2996(0x303)]['id'],'tooltip':_0x2a2996(0x1b2),'type':_univerjs_ui['MenuItemType'][_0x2a2996(0x261)],'icon':_0x2a2996(0x2b1),'selections':[{'label':{'name':_univerjs_ui['COLOR_PICKER_COMPONENT'],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x2a2996(0x21b))](_0x34806b=>{const _0x26a037=_0x2a2996;_0x34806b['next'](_0x477401[_0x26a037(0x426)]('primary.600'));}),'hidden$':_0x5855c9[_0x2a2996(0x1b5)](_univerjs_core[_0x2a2996(0x64b)])[_0x2a2996(0x6bc)]((0x0,rxjs[_0x2a2996(0x6a9)])(_0x5855c9[_0x2a2996(0x3bc)](_univerjs_core[_0x2a2996(0x64b)])),(0x0,rxjs[_0x2a2996(0x2bc)])(_0x31f188=>!_0x31f188))};}function ShapeResetBackgroundColorMenuItemFactory(_0x7f6863){const _0x1fdd46=_0x3cbade,_0x159781=_0x7f6863['get'](_univerjs_core[_0x1fdd46(0x6d7)]);return{'id':_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id'],'type':_univerjs_ui[_0x1fdd46(0x1d7)][_0x1fdd46(0x668)],'title':'toolbar.resetColor','hidden$':_0x159781[_0x1fdd46(0x1b5)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x1fdd46(0x6bc)]((0x0,rxjs[_0x1fdd46(0x6a9)])(_0x159781[_0x1fdd46(0x3bc)](_univerjs_core[_0x1fdd46(0x64b)])),(0x0,rxjs[_0x1fdd46(0x2bc)])(_0x341a68=>!_0x341a68))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x3cbade(0x431),'icon':_0x3cbade(0x66b),'value':_univerjs_core[_0x3cbade(0x193)][_0x3cbade(0x58b)]},{'label':_0x3cbade(0x3f9),'icon':'HorizontallyIcon','value':_univerjs_core[_0x3cbade(0x193)][_0x3cbade(0x448)]},{'label':_0x3cbade(0x4ac),'icon':'RightJustifyingIcon','value':_univerjs_core['HorizontalAlign'][_0x3cbade(0x48a)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x26082b){const _0x1b2d5e=_0x3cbade;var _0x58ab23;const _0x52c47c=_0x26082b[_0x1b2d5e(0x293)](_univerjs_core[_0x1b2d5e(0x447)]),_0x2344f3=_0x26082b[_0x1b2d5e(0x293)](_univerjs_core['IContextService']),_0x39d6db=_0x26082b[_0x1b2d5e(0x293)](_univerjs_sheets_drawing[_0x1b2d5e(0x56a)]),_0x12c41d=_0x26082b[_0x1b2d5e(0x293)](ShapeTextEditingService),_0x1b2d68=_0x26082b[_0x1b2d5e(0x293)](_univerjs_pro_sheets_shape[_0x1b2d5e(0x39e)]),_0x159c3=_univerjs_core[_0x1b2d5e(0x193)][_0x1b2d5e(0x58b)],_0x6c7610=()=>{const _0x2fb67d=_0x1b2d5e;var _0x5aee0e;const _0xf9fe24=_0x39d6db[_0x2fb67d(0x34c)]()[_0x2fb67d(0x52f)](_0x413910=>_0x413910['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x2fb67d(0x4a0)]);if(_0xf9fe24[_0x2fb67d(0x4ba)]!==0x1)return _0x159c3;const _0xdba8a=_0x12c41d[_0x2fb67d(0x5c3)](),_0x5927f9=(_0xdba8a===null||_0xdba8a===void 0x0?void 0x0:_0xdba8a['unitId'])||_0xf9fe24[0x0][_0x2fb67d(0x444)],_0x4b68f6=(_0xdba8a===null||_0xdba8a===void 0x0?void 0x0:_0xdba8a[_0x2fb67d(0x3f1)])||_0xf9fe24[0x0][_0x2fb67d(0x3f1)],_0x2098b3=(_0xdba8a===null||_0xdba8a===void 0x0?void 0x0:_0xdba8a[_0x2fb67d(0x190)])||_0xf9fe24[0x0]['drawingId'],_0x165ee4=_0x1b2d68[_0x2fb67d(0x58c)](_0x5927f9,_0x4b68f6,_0x2098b3);if(!_0x165ee4)return _0x159c3;const _0x5345a0=_0x165ee4[_0x2fb67d(0x4be)]();if(!_0x5345a0||!(_0x2fb67d(0x2aa)in _0x5345a0))return _0x159c3;const _0x1833d1=_0x5345a0['dataModel'];return(_0x5aee0e=_0x1833d1===null||_0x1833d1===void 0x0?void 0x0:_0x1833d1['ha'])!==null&&_0x5aee0e!==void 0x0?_0x5aee0e:_0x159c3;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x58ab23=SHAPE_HORIZONTAL_ALIGN_CHILDREN['find'](_0x40cc8e=>_0x40cc8e['value']===_0x159c3))===null||_0x58ab23===void 0x0?void 0x0:_0x58ab23['icon'],'tooltip':_0x1b2d5e(0x515),'type':_univerjs_ui[_0x1b2d5e(0x1d7)][_0x1b2d5e(0x652)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x1b2d5e(0x21b))](_0x4ec14f=>{const _0x6da1d7=_0x1b2d5e,_0x300897=_0x52c47c['onCommandExecuted'](_0x240f88=>{const _0x44d067=_0x1b00;if(_0x240f88['id']===SetShapeTextHorizontalAlignCommand['id'])_0x4ec14f[_0x44d067(0x452)](_0x6c7610());}),_0x591020=_0x12c41d['editingParams$']['subscribe'](()=>{const _0x190657=_0x1b00;_0x4ec14f[_0x190657(0x452)](_0x6c7610());});return _0x4ec14f[_0x6da1d7(0x452)](_0x6c7610()),()=>{const _0x59317c=_0x6da1d7;_0x300897[_0x59317c(0x258)](),_0x591020[_0x59317c(0x5b9)]();};}),'hidden$':_0x2344f3[_0x1b2d5e(0x1b5)](_univerjs_core[_0x1b2d5e(0x64b)])[_0x1b2d5e(0x6bc)]((0x0,rxjs[_0x1b2d5e(0x2bc)])(_0x56ff42=>!_0x56ff42))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x3cbade(0x457),'icon':_0x3cbade(0x699),'value':_univerjs_core['VerticalAlign'][_0x3cbade(0x344)]},{'label':_0x3cbade(0x20c),'icon':_0x3cbade(0x55c),'value':_univerjs_core[_0x3cbade(0x37e)][_0x3cbade(0x60e)]},{'label':'align.bottom','icon':_0x3cbade(0x282),'value':_univerjs_core[_0x3cbade(0x37e)][_0x3cbade(0x2fe)]}];function ShapeVerticalAlignMenuItemFactory(_0x3d8b35){const _0x509529=_0x3cbade;var _0x15c397;const _0xe1da91=_0x3d8b35[_0x509529(0x293)](_univerjs_core[_0x509529(0x447)]),_0xddd56c=_0x3d8b35[_0x509529(0x293)](_univerjs_core[_0x509529(0x6d7)]),_0x29b986=_0x3d8b35[_0x509529(0x293)](_univerjs_sheets_drawing['ISheetDrawingService']),_0x359754=_0x3d8b35[_0x509529(0x293)](ShapeTextEditingService),_0x303065=_0x3d8b35[_0x509529(0x293)](_univerjs_pro_sheets_shape[_0x509529(0x39e)]),_0x6918b=_univerjs_core[_0x509529(0x37e)][_0x509529(0x344)],_0x55ec56=()=>{const _0x160865=_0x509529;var _0x5aaee6;const _0xb5a1c5=_0x29b986[_0x160865(0x34c)]()[_0x160865(0x52f)](_0x2950d1=>_0x2950d1[_0x160865(0x27c)]===_univerjs_core[_0x160865(0x625)]['DRAWING_SHAPE']);if(_0xb5a1c5['length']!==0x1)return _0x6918b;const _0xd4c730=_0x359754[_0x160865(0x5c3)](),_0x4e1537=(_0xd4c730===null||_0xd4c730===void 0x0?void 0x0:_0xd4c730[_0x160865(0x444)])||_0xb5a1c5[0x0][_0x160865(0x444)],_0x411638=(_0xd4c730===null||_0xd4c730===void 0x0?void 0x0:_0xd4c730[_0x160865(0x3f1)])||_0xb5a1c5[0x0]['subUnitId'],_0x5acf91=(_0xd4c730===null||_0xd4c730===void 0x0?void 0x0:_0xd4c730['shapeId'])||_0xb5a1c5[0x0][_0x160865(0x291)],_0x29d17b=_0x303065[_0x160865(0x58c)](_0x4e1537,_0x411638,_0x5acf91);if(!_0x29d17b)return _0x6918b;const _0xb86c77=_0x29d17b['getShapeTextData']();if(!_0xb86c77||!(_0x160865(0x2aa)in _0xb86c77))return _0x6918b;const _0x5da03c=_0xb86c77[_0x160865(0x2aa)];return(_0x5aaee6=_0x5da03c===null||_0x5da03c===void 0x0?void 0x0:_0x5da03c['va'])!==null&&_0x5aaee6!==void 0x0?_0x5aaee6:_0x6918b;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x15c397=SHAPE_VERTICAL_ALIGN_CHILDREN['find'](_0x470171=>_0x470171[_0x509529(0x325)]===_0x6918b))===null||_0x15c397===void 0x0?void 0x0:_0x15c397[_0x509529(0x1ee)],'tooltip':'toolbar.verticalAlignMode.main','type':_univerjs_ui[_0x509529(0x1d7)][_0x509529(0x652)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x509529(0x21b))](_0xddc290=>{const _0x274a3b=_0x509529,_0x73a10=_0xe1da91[_0x274a3b(0x2bd)](_0x5dda7e=>{const _0x974d4c=_0x274a3b;if(_0x5dda7e['id']===SetShapeTextVerticalAlignCommand['id'])_0xddc290[_0x974d4c(0x452)](_0x55ec56());}),_0x58a6bd=_0x359754[_0x274a3b(0x2cd)]['subscribe'](()=>{const _0x9bd16f=_0x274a3b;_0xddc290[_0x9bd16f(0x452)](_0x55ec56());});return _0xddc290[_0x274a3b(0x452)](_0x55ec56()),()=>{const _0x4b6370=_0x274a3b;_0x73a10['dispose'](),_0x58a6bd[_0x4b6370(0x5b9)]();};}),'hidden$':_0xddd56c[_0x509529(0x1b5)](_univerjs_core[_0x509529(0x64b)])['pipe']((0x0,rxjs[_0x509529(0x2bc)])(_0x1f96ce=>!_0x1f96ce))};}function _0x3a35(){const _0x30b736=['SetShapeTextVerticalAlignCommand','ShapeRectIcon','sheets-shape.line.sketchType.title','sheets-shape.deleteShape','getShapeData','univer-w-full','getDrawingByParam','sheet.command.shape-doc-align','_adjHandlerPointerUp','sheets-shape.fill.picture.scaleX','toolbar.horizontalAlignMode.main','DRAWING_OBJECT_LAYER_INDEX','setPrstGeom','_cxtHandlerPointerMove','fillImageSourceType','Linear','onRendered','_activeShapeModel','isArray','ShapeDiamondIcon','end','scaleX','horizontal','executeCommand','top','Checkbox','updateShapeFillImage','adjHandleStroke','sheets-shape.line.joinType.round','ShapeFlowChartDecisionIcon','UUID','_handleConnectedEndpointPointerUp','Star4','shape.type.action-button-blank','shape.type.star16','sheets-shape.line.arrowType.diamondArrow','filter','shape.type.star7','BorderCallout3','ShapeFlowChartManualOperationIcon','sheets-shape.fill.picture.align.bl','LeftBrace','getConnectionSiteList','sketchType','getShapeTextRect','symbol','RibbonStartGroup','shape-text-','objects','scene','ShapeRound2SameRectIcon','UniverSheetsDrawingUIPlugin','ShapeSquareTabsIcon','shape.type.up-arrow-callout','other','SolidFill','SheetPermissionCheckController','shape.type.round2-same-rect','render','ShapeEditor','_getImageDrawingInfo','syncExecuteCommand','RadioGroup','gradientAngle','sheets-shape.line.capType.round','version','getOwnPropertyNames','values','name','ShapeQuadArrowIcon','_handleConnectedEndpointMove','StraightConnector1','_isDrawingShapePointDown','_generatePasteMutations','univer-rounded-lg\x20univer-p-3','getCanvasElement','ShapeHalfFrameIcon','sheets-shape.fill.picture.tileAsTexture','_clearControls','toStringTag','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','VerticalCenterIcon','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','LeftRightUpArrow','ShapeStar32Icon','adjHandleSize','shape.type.action-button-beginning','shape.type.flow-chart-punched-card','diamond','getDrawingShapeKeyByDrawingSearch','stops','FlowchartMagneticDisk','sheets-shape.formatShape','_activeAdjustInfo','_calculateFreeEndpointAngle','ISheetDrawingService','shape.type.flow-chart-online-storage','ShapeFlowChartDocumentIcon','clip','ShapeModel','getSheetCommandTarget','Diamond','Round2SameRect','ShapeBlockArcIcon','AccentBorderCallout2','bind','setShouldShowAdjust','REMOVE','section','BreakLineCommand','_findShapeAtPoint','LineInv','_cxtHandlerPointerUp','shape.type.flow-chart-offpage-connector','570924tZpXmA','_createControls','CornerTabs','ShapeEllipseRibbonIcon','ShapeLeftBraceIcon','adjHandleFill','univer-w-20','offsetY','ShapeLineCapEnum','getTransformerByCreate','onTransformChange$','shape.type.horizontal-scroll','ShapeActionButtonMovieIcon','AccentCallout3','LEFT','getShapeModel','_connectorObjects','ShapeLeftRightCircularArrowIcon','ShapeFlowChartSummingJunctionIcon','ShapeFlowChartPunchedCardIcon','ShapeCornerTabsIcon','switchMap','useIsFocusing','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','ShapeVerticalScrollIcon','_getConnectionSiteAngle','WedgeRectCallout','UpdateShapeDataCommand','sheet.command.set-shape-text-font-size','ShapeChartStarIcon','opacity','round','FlowchartSort','FlowchartDecision','univer-text-gray-600\x20univer-transition-transform','_univerInstanceService','strokeWidth','_insertShapes','GradientFill','subscribeEvent','localeService','shape.type.flow-chart-extract','angular','DependentOn','UniverSheetsShapeUIPlugin','ShapeSwooshArrowIcon','_generateCutPasteMutations','shape.type.octagon','shape.type.wave','ShapeCallout3Icon','ShapeArrowSizeEnum','FlowchartPredefinedProcess','Angular','sheets-shape.line.sketchType.handDrawn','shape.type.bent-connector3-arrow1','sheets-shape.line.dashType.squareDot','_baseShapeWidth','parse','_initPermission','jsxs','unsubscribe','rotation','sheets-shape.line.capType.flat','useState','isCurvedConnectorShape','ShapeCurvedDownArrowIcon','_attachAdjustEvent','isConnectorShape','lineType','worldPoints','getEditing','addClipboardHook','useMemo','abs','warn','shape.type.plaque','BorderCallout2','textRect','_activeTargetShapeId','ShapeCurvedConnector3Icon','ShapePlaqueTabsIcon','_handleConnectorPointerUp','StarAndBanner','Stretch','RemoveSheetCommand','shape.type.flow-chart-summing-junction','gradientStops','FlowchartDelay','FromArray','draw','UpDownArrow','shape.type.notched-right-arrow','useRef','_getSceneAndTransformerByDrawingSearch','DrawingImageClipService','index','ImageSourceTypeEnum','getSheetBySheetId','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_getShapeAdjustPointListById','isDrawingObject','getSkeletonParam','shape.type.curved-connector3','discreteRangeToRange','Hexagon','RightJustifyingIcon','centerAngle','domY','shape.type.callout2','EMPTY','shape.type.flow-chart-offline-storage','ShapeEllipseIcon','_createShapeAdjustControls','stringify','QuadArrowCallout','Ellipse','None','RichTextEditingMutation','remove$','univer-flex\x20univer-items-center\x20univer-gap-3','ShapeRound1RectIcon','changing$','LongDash','Module','cos','ShapePlusIcon','shape.type.wedge-rect-callout','_baseShapeHeight','sheetViewStartRow','univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','_addShapeConnectorHandlerObjects','getConnectionRelation','sheets-shape.fill.picture.align.l','FlowchartAlternateProcess','UpdateSheetsShapeDataMutation','shape.type.frame','getOwnPropertyDescriptor','Callout','shape.type.flow-chart-sort','radial','21316608VMzfQE','verticalAlign','none','ShapeRectTextboxHorizontalIcon','getBasicShapeRelation','MIDDLE','shape.type.bent-up-arrow','focusDrawing','SheetsShapeUIController','RENDER_CLASS_TYPE','srcRect','getDrawingSearch','stopPropagation','ShapeFlowChartOffpageConnectorIcon','COMMAND','shape.type.down-arrow','shape.type.wedge-round-rect-callout','univer-size-full','cxnPointStrokeWidth','_closeShapeEditPanel','buildClipPath','toDisposable','subscribe','ctr','defineProperty','Chord','ShapeUpArrowCalloutIcon','AlignOperationCommand','DrawingTypeEnum','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','span','1602740Qorqoz','shape.type.funnel','shapeType','flowchart','EquationShape','OPERATION','shape.type.bent-arrow','ShapeDoubleWaveIcon','onPointerUp$','highlighted','DrawingApplyType','capType','visible','isLineShape','ShapeGear9Icon','ToggleSheetsShapeFlipCommand','add','sheets-shape.fill.picture.align.tl','isNaN','save','getCurrentUnitInfo','offsetX','_setTransForm','shape.type.irregular-seal1','isHit','_addShapeAdjustControl','ShapeUpDownArrowCalloutIcon','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','shape.type.line','Star8','_executeConnectionCommand','ShapeStripedRightArrowIcon','_drawingManagerService','ShapeRibbon2Icon','ShapeActionButtonInformationIcon','FOCUSING_COMMON_DRAWINGS','shape.type.brace-pair','ShapeIcon','_openShapeEditPanel','Arc','create','Star5','SELECTOR','_loadAndSetImage','updateConnectionDetection','Flowchart','shape.type.wedge-ellipse-callout','shape.type.flow-chart-magnetic-drum','Tile','FlowchartSummingJunction','getActualSize','_draw','jsx','point','Dropdown','getDrawingPoints','_registerGroupFeaturePasteHook','DiamondArrow','Pentagon','MathNotEqual','cxnPointRadius','getMatrix','RightArrow','ShapeRibbonIcon','BUTTON','slice','FlowChartInputOutput','LeftJustifyingIcon','clearTimeout','ShapeIrregularSeal2Icon','_shapes','useEditor','shape.type.action-button-information','ShapeStar24Icon','ShapeWedgeRoundRectCalloutIcon','setHighlighted','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','shape-text-editor','_componentManager','_currentScene','ActionButtonHome','ShapeFlowChartMagneticTapeIcon','shape.type.curved-left-arrow','ShapeFlowChartInputOutputIcon','shape.type.pentagon','makeDirty','_shapeService','sheets-shape.fill.gradientFill','_sheetDrawingShapeRenderController','flipY','ShapeStraightConnector1Icon','sheets-shape.line.width','Fragment','shape.type.smiley-face','sheets-shape.fill.pictureFill','ShapeFlowChartMultidocumentIcon','_baseShapeTop','FORMAT','shape.type.math-multiply','sheets-shape.rotateLeft90','WRAP','shape.type.ellipse','shape.type.ribbon','getShapeType','ShapeStar16Icon','shape.type.star12','ShapeFlowChartPunchedTapeIcon','sheets-shape.line.sketchType.curved','INSERT','HandDrawn','shape.type.accent-border-callout1','sheets-shape.line.arrowSize.small','IImageIoService','AlignTopIcon','shape.type.rect','shape.type.curved-connector3-arrow1','Pie','onDblclick$','_editingParams$','ShapeLeftRightRibbonIcon','Rectangle','sheets-shape.line.arrowType.openArrow','shape.type.straight-connector2','5oGBjsu','refreshAdjustControls','_initCopyPaste','_registerOperations','start','shape.type.action-button-return','startWith','clipByShape','ShapeFlowChartMergeIcon','sheets-shape.fill.title','Heart','imageFillMode','shape.type.star5','shape.type.curved-connector3-arrow2','ShapeEllipseRibbon2Icon','getImageSourceCache','sheets-shape.line.joinType.title','MathDivide','redo','_getConnectPointInfo','colStartX','getBatchAddOp','shapeModel','shape.type.up-down-arrow-callout','FlowchartMultiDocument','pipe','focus$','NoFill','type','UpDownArrowCallout','cxnPointFill','min','SetShapeTextFontSizeCommand','ShapeAccentBorderCallout3Icon','prstGeom','_sheetDrawingService','setCanUseShapeClip','DRAWING_IMAGE','ShapeCloudIcon','registerRenderModule','LongDashDot','ShapeCurvedUpArrowIcon','getZoomRatio','ShapeAccentCallout2Icon','useEffect','gdRefX','ActionButtonBlank','left','shape.type.plaque-tabs','find','Rect','sheets-shape.line.solidLine','IContextService','useCallback','CUT','ShapeSnip2SameRectIcon','ShapeStar8Icon','_initEvents','ShapeFlowChartDelayIcon','getCurrentLastSelection','shape.type.parallelogram','_updateTransform','_focusedDrawings','style','SquareDot','sheets-shape.line.arrowType.stealthArrow','shape.type.diag-stripe','shape.type.chevron','updateDocumentDataMargin','domX','changeEnd$','shape.type.action-button-document','SheetCanvasPopManagerService','startOffset','adjName','connector-handler-','ShapeRound2DiagRectIcon','UPDATE','sheet.command.set-shape-text-horizontal-align','START','_getDrawingRect','shapeId','DrawingCommonPanel','ShapeFillEnum','HorizontalAlign','ShapeFlowChartExtractIcon','shape.type.sun','object','ancestorTransform','MathEqual','beginPath','max','endConnectionDetection','_showConnectionSites','CURSOR_TYPE','setDocumentData','ShapeCallout2Icon','shape.type.gear9','_urlImageService','LeftArrow','Documents','SHEET_SHAPE_UI_PLUGIN','Ribbon2','Flat','ShapeChevronIcon','setShapeData','shape.type.bent-connector3','complete','IConfigService','_moveConnectorWithShape','NoLine','UniverInstanceType','_sidebarService','getCurrentSkeleton','sqrt','toolbar.fillColor.main','_sheetSkeletonService','_sheetShapeAdjustController','subscribeContextValue$','OvalArrow','ShapeStraightConnector2Icon','setSelectionRanges','\x20px','3925338qwBpAZ','_handleFreeEndpointMove','InsertSheetsShapeMutation','ShapePlaqueIcon','BasicShape','entries','shape.type.left-right-arrow-callout','UpdateConnectorRelationCommand','position','registerFeaturePasteHook','_drawingType','ShapeLineIcon','setConfig','_renderManagerService','ShapeActionButtonBackPreviousIcon','restore','_clearConnectionSites','ChartStar','shape.type.callout1','HorizontalScroll','CircularArrow','current','shape.type.arc','blockExecuteWithoutPermission','QuadArrow','attachRangeWithCoord','decorate','ShapeDownArrowIcon','BehaviorSubject','MenuItemType','IMenuManagerService','onSavingEditorData$','input','SHEET_VIEWPORT_KEY','shape.type.heart','ShapeStar4Icon','_targetShapeId','DownArrow','ShapeMathEqualIcon','clearAdjustControls','shape-text-editor-content','sheets-shape.line.capType.title','#FFFFFF','_initSheetChange','DocumentViewModel','oKey','sheets-shape.line.dashType.longDashDotDot','engine','shape.type.rect-textbox-horizontal','clsx','ColorPicker','worldRect','icon','useKeyboardEvent','Teardrop','Heptagon','_updateImageAdjValues','AccentCallout2','_sheetsShapeService','shape.type.curved-right-arrow','ShapeBorderCallout1Icon','IEditorService','generateRandomId','ShapeArcIcon','CommandType','UturnArrow','WorksheetEditPermission','indexOf','RibbonPosition','_getScrollInfo','getAdjustValueByName','_updateShapeAdjustControls','deepClone','hasOwnProperty','DrawingRenderService','setCursor','ShapeRightBracketIcon','setShapeProps','ShapeHorizontalScrollIcon','Callout2','ShapeFlowChartPreparationIcon','shape.type.action-button-sound','align.middle','isRichText','GROUP','sheets-shape.line.capType.square','shape.type.flow-chart-collate','_executeConnectedRouteResizeCommand','shape.type.diamond','RemoveSheetDrawingCommand','shape.type.flow-chart-alternate-process','rowStartY','CROSSHAIR','skeleton','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','sheets-shape.line.arrowType.arrow','getPrototypeOf','Observable','_lastEditingShapeKey','target','ShapeFlowChartManualInputIcon','add$','pick','sheets-shape.fill.picture.align.br','asObservable','updateDocumentRenderConfig','Disposable','ShapeActionButtonBeginningIcon','InsertShapeCommand','updateLinePoints','ShapeStar10Icon','dashType','ShapeUpDownArrowIcon','_getOrCreateShapeModel','shape.type.decagon','_hasReset','getDrawingData','clearAdjustValue','ActionButtonInformation','getObjectIncludeInGroup','ShapeMathNotEqualIcon','ShapeSnipRoundRectIcon','ShapeAccentCallout3Icon','InputNumber','CloudCallout','forEach','ConnectorCoordinateTransform','default','color','changeStart$','Callout1','_loadShapePictureFill','Dodecagon','sheets-shape.toggleFlipH','viewportScrollY','ShapeBentConnector3Arrow2Icon','blur','Snip1Rect','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','adjustValues','calculate','LightningBolt','RightTriangle','_cxnIndex','_baseShapeLeft','lineShapeId','alignment','mergeMenu','_getShapeInfo','_activeShapeId','params','ShapeCubeIcon','_initEditingParams','shape.type.folder-corner','imageRotateWithShape','shape.type.home-plate','shape.type.bracket-pair','_initialize','dispose','#bcbcbc','sheets-shape.line.arrowSize.medium','ShapeHomePlateIcon','DRAWING_DOM','isInGroup','RoundDot','shape.type.half-frame','ShapeMathMinusIcon','BUTTON_SELECTOR','_baseDrawingRect','Line','sheets-shape.rotateRight90','copyType','RoundRect','shape.type.snip2-same-rect','_createCopyInfoByRange','getState','shape.type.border-callout2','ActionButtonForwardNext','renderConfig','_executeConnectedRouteConnectionCommand','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','DownArrowCallout','ShapeRoundRectIcon','isStartConnectorPoint','ShapeFlowChartDisplayIcon','Snip2SameRect','Small','Star16','setAdjustValueByName','transform','applyPoint','ComponentManager','ShapeActionButtonDocumentIcon','_baseHeight','drawingType','_isConnecting','ShapeParallelogramIcon','Ribbon','PictureFill','ShapeFunnelIcon','AlignBottomIcon','Trapezoid','computeConnectorRouteLayout','ShapeFlowChartInternalStorageIcon','ShapeCircularArrowIcon','useDependency','ShapeActionButtonSoundIcon','onReady','ShapeUpArrowIcon','invert','ShapeActionButtonHelpIcon','univer-absolute','_registerMoveHandler','_updateAdjustControlPositions','_reset','drawingId','ShapeFlowChartOnlineStorageIcon','get','shape.type.star32','ShapeQuadArrowCalloutIcon','renderDrawingShape','memo','lineJoinType','enableObjectsEvent','DocSkeletonManagerService','1QkLjNr','custom','ActionButtonBackPrevious','Funnel','shape.type.callout3','Bevel','FlowchartOnlineStorage','file','shapeKey','ShapeBevelIcon','IURLImageService','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','set','POSITIVE_INFINITY','shape.type.left-right-ribbon','dataModel','onScrollAfter$','#ffffff','drawWith','ShapeFlowChartProcessIcon','SetShapeTextFontSizeDecreaseCommand','registerFeatureMenu','PaintBucketDoubleIcon','rectangle','sheets-shape.line.beginArrowSize','gradientType','_config','sheets-shape.config','Radial','ShapeLeftRightUpArrowIcon','ShapeChartXIcon','FlowchartMagneticTape','LocaleService','map','onCommandExecuted','isEditing','_injector','ShapeLineJoinEnum','ShapeLeftRightArrowIcon','ShapeLeftArrowCalloutIcon','Plus','_sheetBasicShapeConnectionPointController','_clearShapeAdjustControls','has','worldPoint','ActionButtonEnd','shape.type.right-bracket','fillType','isRender','shape.type.action-button-help','editingParams$','fill','iterator','Radio','ShapeStar5Icon','ShapeLeftBracketIcon','EllipseRibbon2','shape.type.flow-chart-multidocument','Frame','registerClipDelegate','ShapeDecagonIcon','shape.type.flow-chart-manual-input','_copyInfo','shape.type.ellipse-ribbon','transformByState','univer-text-gray-500','doc','FlowchartPreparation','LeftRightArrow','_highlightedSiteIndex','sheets-shape.line.dashType.longDash','@univerjs-pro/sheets-shape-ui','getAdjustNames','univer-w-28','shape.type.flow-chart-magnetic-disk','click','disableObjectsEvent','getAncestorScale','_isImagePointerDown','GradientColorPicker','shape.type.quad-arrow','Arrow','Other','AccentBorderCallout1','shape.type.action-button-home','shape.type.uturn-arrow','ShapePieWedgeIcon','SnipRoundRect','getUnit','clear','_imageShapeClipController','insertGroupObject','URL','_sheetClipboardService','ShapeHexagonIcon','IRenderManagerService','NotchedRightArrow','ChartX','startConnectionDetection','BOTTOM','shape.type.corner','Large','_isHighlighted','ShapeWaveIcon','SetInlineFormatTextBackgroundColorCommand','fillImageSource','imageOpacity','ShapeSketchTypeEnum','attachTransformerTo','ShapeFlowChartMagneticDrumIcon','ShapeTrapezoidIcon','from','shape.type.up-arrow','shape.type.accent-callout3','_commandService','ShapeBentConnector3Icon','onPointerDown$','imageTile','FlowchartOffPageConnector','targetShapeId','featurePluginUpdateNotification','sheets-shape.line.dashType.longDashDot','shape.type.flow-chart-merge','_connectionSiteObjects','equationShape','shape.type.flow-chart-internal-storage','Inject','Round2DiagRect','Star24','BracePair','ShapeCanIcon','shape.type.line-inv','sheets-shape.fill.picture.insert','Tools','shape.type.no-smoking','shape.group.','group','_baseLeft','value','univer-flex-1\x20univer-overflow-auto','endArrow','_drawingRenderService','refreshTransform','sheets-shape.line.joinType.bevel','shape.type.curved-up-arrow','ShapeMathPlusIcon','ShapeLeftRightArrowCalloutIcon','sheet.command.set-shape-text-vertical-align','Star32','ShapeDownArrowCalloutIcon','HorizontallyIcon','ShapeMathMultiplyIcon','shape.type.flow-chart-input-output','ShapeFlowChartOrIcon','StripedRightArrow','translateWithPrecision','ShapeAccentBorderCallout2Icon','shape.type.flow-chart-process','multiply','Miter','_activeShapeAdjustPointList','SheetDrawingAnchor','shape.type.teardrop','RightBracket','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','_draggingConnectorId','_sheetPermissionCheckController','getDrawingOrder','localToWorld','TOP','prstGeomAdjValues','ShapeFrameIcon','_props','error','shape.type.star24','SetShapeDrawingDataCommand','keys','getFocusDrawings','ShapeFlowChartAlternateProcessIcon','sheets-shape.line.color','LeftRightCircularArrow','ang','drawing.operation.set-drawing-active','getShapeTypeById','shape.type.star4','width','ShapeAccentBorderCallout1Icon','calcAdjValue','VerticalScroll','relation','ShapeRightArrowCalloutIcon','_handleFreeEndpointPointerUp','shape.type.up-down-arrow','normal','rotate(','paragraphs','sheetTransform','HalfFrame','SHAPE','ShapeFolderCornerIcon','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','useObservable','sheetViewStartColumn','ShapeChartPlusIcon','ShapeStar7Icon','_currentUniverService','line','getFreeze','FlowchartTerminator','shape.type.pie-wedge','sheet.shape.edit.panel','getViewport','_registerFocusChangeHandler','_activeImageId','SetShapeTextHorizontalAlignCommand','BlockArrow','univer-flex\x20univer-items-center\x20univer-justify-between','ShapeArrowTypeEnum','univer-text-sm','_registerDrawingMoveHandler','updateDocumentStyle','_resetState','computeStraightConnectorLayout','getCurrentScrollState','viewportScrollX','auto','sheets-shape.line.arrowType.none','VerticalAlign','_groupCopyPasteController','Triangle','OpenArrow','_getImagePrstGeom','_initCommands','shape.type.left-arrow-callout','shape.type.flow-chart-predefined-process','getViewportByCell','_drawSimpleText','stroke','shape.type.chart-plus','shapeData','ShapeCurvedLeftArrowIcon','_isShouldShowDrawingShapeAdjust','sheet.command.update-shape-data','CurvedRightArrow','Solid','ShapeWedgeRectCalloutIcon','_registerShapeMenu','VIEW_MAIN_LEFT_TOP','LeftRightRibbon','UNIVER_SHEET','isHitLine','height','deriveStateFromActiveSheet$','ChartPlus','shape.type.ellipse-ribbon2','setOnSavingEditorData','shape.type.flow-chart-punched-tape','rect','getAdjustInfoByName','SheetsShapeService','startY','_clipService','getImage','ShapeWedgeEllipseCalloutIcon','_shapeTextEditingService','WorkbookEditablePermission','univer-flex\x20univer-flex-col\x20univer-gap-2','_handleBasicShapeUpdateConnectorLineShape','update$','_currentConnectionTarget','IDrawingManagerService','getParent','LongDashDotDot','Shape','getStartConnectInfo','ShapeCurvedConnector3Arrow1Icon','ShapeCloudCalloutIcon','getDocumentData','activeSheet$','shape.type.snip-round-rect','viewBound','sheets-shape-ui','sheets-shape.shapePosition','ShapePentagonIcon','UpArrowCallout','sheets-shape.fill.noFill','Round','clip-','merge','getContextValue','ShapeDocAlignCommand','ShapeRtTriangleIcon','NonIsoscelesTrapezoid','shape.type.quad-arrow-callout','prototype','Moon','_findNearestConnectionSite','addObject','_context','ShapeUturnArrowIcon','CurvedLeftArrow','ShapeGradientTypeEnum','_contextService','_sheetInterceptorService','_adjHandlerPointerMove','SolidLine','startArrow','lineStrokeType','ShapeDodecagonIcon','Circle','pluginName','shape.type.pie','_attachConnectorObjectEvent','size','getObject','shape.type.math-plus','FOCUSING_PANEL_EDITOR','shape.type.cloud-callout','ShapeLineTypeEnum','function','shape.type.hexagon','Medium','Star10','ShapeFlowChartConnectorIcon','EllipseRibbon','_localeService','ShapeCallout1Icon','shape.type.plus','WedgeRoundRectCallout','isHorizontal','_transformCalculateSrcRect','__esModule','setFillImage','Vector2','_imageIoService','IUniverInstanceService','shape.type.action-button-end','isFinite','FlowchartManualInput','angle','univer-w-20\x20univer-flex-1','ShapeIrregularSeal1Icon','subUnitId','ShapeFlowChartCollateIcon','Can','Image','getRealBound','getConnectorLinePoints','_isStartConnectorPoint','CurvedConnector3','align.center','_sheetCanvasPopManagerService','ShapeTeardropIcon','shape.type.rt-triangle','IUndoRedoService','setSrcRect','preValue','setEditing','ShapeCurvedConnector3Arrow2Icon','ShapeHeptagonIcon','src','routeConnectorLineShape','linear','shape.type.square-tabs','_unitId','_drawingAddListener','FlowchartMagneticDrum','MoreDownIcon','cxnPointStroke','UpdateLineShapeResizeCommand','getBatchRemoveOp','ShapeTypeEnum','ShapeRightBraceIcon','onload','ShapeTriangleIcon','getRenderById','FlowchartConnector','shape.type.non-isosceles-trapezoid','getShapePopupMenus','Star7','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','ShapeBracePairIcon','ShapeRightArrowIcon','#000000','removeLinePoints','Cube','gdRefAng','getSkeleton','_shapeId','callout','constructor','ActionButtonBeginning','Snip2DiagRect','_registerImageShapeClipDelegate','shape.type.cloud','getColorFromTheme','ShapeActionButtonForwardNextIcon','ShapeFlowChartOfflineStorageIcon','ShapeCornerIcon','ShapeNotchedRightArrowIcon','shape.type.flow-chart-preparation','ShapeMoonIcon','FlowchartDisplay','scaleY','touchDependencies','ShapePieIcon','align.left','shape.type.math-minus','ShapeOctagonIcon','body','FlowchartMerge','Callout3','ShapeSnip1RectIcon','_activeAdjustPointList','translate','resetCursor','sheets-shape.fill.picture.align.ctr','horizontalAlign','connection-site-','_init','sheets-shape.line.endArrowType','sheets-shape.fill.transparency','Wave','image-clip-adjust-point-','ActionButtonHelp','unitId','flipX','_rerouteConnectorLine','ICommandService','CENTER','shape.type.bevel','setContextValue','Donut','shape.type.border-callout3','_subUnitId','RemoveSheetsShapeMutation','getCurrentTypeOfUnit$','FlowchartExtract','VIEW_MAIN_TOP','next','ShapeSunIcon','_isStartAdjusting','saveImage','undefined','align.top','shape.type.rect-textbox-vertical','ShapeMathDivideIcon','_baseTop','ShapeCurvedRightArrowIcon','shape.type.flow-chart-or','shape.type.action-button-back-previous','BracketPair','classType','button','WedgeEllipseCallout','_configService','2244168AtFwtz','shape.type.chart-star','ShapeLineInvIcon','_clearShapeConnectorHandlerObjects','Injector','ShapeLeftArrowIcon','getEndConnectInfo','ShapeDefaultConfig','ShapeTextEditorContainer','_menuManagerService','_registerDrawingFocusChangeHandler','disposeWithMe','ShapeRectTextboxVerticalIcon','_initMenu','starAndBanner','shape.type.left-bracket','BentConnector3','includes','shape.type.star8','Transform','div','SheetsDrawingGroupCopyPasteController','_activeShapeInfo','documentStyle','sheets-shape.line.transparency','vertical','ISheetClipboardService','sheets-shape.line.joinType.miter','Round1Rect','ShapeLineDashEnum','sheets-shape.line.beginArrowType','ShapeActionButtonReturnIcon','sheets-shape.fill.color','ActionButtonSound','marginTop','COPY_TYPE','SheetInterceptorService','getUnitId','_getZoomRatio','RIGHT','FoldedCorner','offset','ShapeFlowChartTerminatorIcon','ShapeLeftUpArrowIcon','getConnectionInfo','setTimeout','activeAnObject','sheets-shape.fill.picture.align.r','Select','getInverseCoord','_transform','sheets-shape.fill.picture.align.tr','gdRefR','enumerable','shape.type.ribbon2','SmileyFace','ShapeDiagStripeIcon','getTransformer','SheetSkeletonManagerService','ShapeChordIcon','disableShapeOption','DRAWING_SHAPE','KeyCode','univer-pt-2','shape.type.accent-border-callout2','ShapePositionWrapper','ShapeFlowChartPredefinedProcessIcon','wrapStrategy','ShapeActionButtonEndIcon','shape.type.right-arrow','replace','FOCUSING_SHAPE_TEXT_EDITOR','ShapeBentArrowIcon','align.right','ShapeFlowChartMagneticDiskIcon','getMenuHiddenObservable','gdRefY','createInternalEditorID','ShapeBorderCallout2Icon','FlowchartDocument','sheets-shape.line.endArrowSize','push','ShapeActionButtonHomeIcon','collapsed','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','shape.type.swoosh-arrow','ShapeDonutIcon','length','sheet.command.set-shape-text-font-size-decrease','startX','getCurrentRangeDisable$','getShapeTextData','ImageFillModeEnum','ShapeGear6Icon','_addShapeConnectorHandlerObject','blockArrow','CopySheetCommand','_commandExecutedListener','onPointerMove$','ShapeSmileyFaceIcon','shape.type.left-brace','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_onSavingEditorData$','cxnIndex','call','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','mainComponent','with','WrapStrategy','getDrawingVisible','sheets-shape.fill.picture.alignment','SheetScrollManagerService','ShapeBracketPairIcon','shape.type.math-equal','isRenderLinePointsMode','_addControl','shape.type.cube','Decagon','ShapeStar6Icon','Star6','ShapeBentUpArrowIcon','updateContext','univer-relative\x20univer-size-full\x20univer-overflow-visible','getBoundingClientRect','shape.type.triangle','ActionButtonMovie','shape.type.donut','3065818cPynNk','Square','group\x20univer-relative\x20univer-inline-block','ShapeLightningBoltIcon','_baseWidth','paragraphStyle','ShapeNonIsoscelesTrapezoidIcon','Freehand','computeConnectorResizeLayout','shape.type.left-up-arrow','ShapeNoSmokingIcon','_shapeUpdateListener','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeLeftCircularArrowIcon','focus','ShapeBorderCallout3Icon','ShapeFlowChartSortIcon','_sidebarDisposable','shape.type.flow-chart-terminator','SheetsSelectionsService','isHighlighted','_executeResizeCommand','SetDrawingApplyMutation','sin','shape.type.flow-chart-magnetic-tape','resize','VERTICAL_ROTATE_ANGLE','string','image/*','DiagStripe','shape.type.round-rect','_isOpenedShapeEditPanel','displayName','ShapeBentConnector3Arrow1Icon','sheets-shape.insertShape','shape.type.star10','ShapeAccentCallout1Icon','changeShapeType','deg)\x20scaleY(','141178IqHHJL','ShapeActionButtonBlankIcon'];_0x3a35=function(){return _0x30b736;};return _0x3a35();}function ShapeMenuItemFactory(_0x15467b){const _0x66fe2f=_0x3cbade,_0x126f03=_0x15467b[_0x66fe2f(0x293)](_univerjs_core['IUniverInstanceService']);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x66fe2f(0x1d7)][_0x66fe2f(0x652)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x66fe2f(0x64d),'tooltip':_0x66fe2f(0x504),'activated$':(0x0,_univerjs_sheets_ui[_0x66fe2f(0x397)])(_0x126f03,![],()=>new rxjs[(_0x66fe2f(0x21b))](_0x8ef855=>{_0x8ef855['next'](![]);})),'hidden$':(0x0,_univerjs_ui[_0x66fe2f(0x4ae)])(_0x15467b,_univerjs_core[_0x66fe2f(0x1ae)][_0x66fe2f(0x394)]),'disabled$':(0x0,_univerjs_sheets_ui[_0x66fe2f(0x4bd)])(_0x15467b)};}const menuSchema={[_univerjs_ui[_0x3cbade(0x1fe)][_0x3cbade(0x18e)]]:{[_univerjs_ui[_0x3cbade(0x539)]['LAYOUT']]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui['RibbonStartGroup'][_0x3cbade(0x689)]]:{[_univerjs_docs_ui['SetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui['RibbonInsertGroup']['MEDIA']]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core['Disposable']{constructor(_0x58e5ea,_0x5487cc,_0x26f89c,_0x3ea90a,_0xbd2495,_0x10795c,_0x2076e7,_0x5da3df,_0xf9f026,_0x52d393,_0x3a1ec8){const _0x377ac4=_0x3cbade;super(),this[_0x377ac4(0x5a0)]=_0x58e5ea,this['_sheetInterceptorService']=_0x5487cc,this[_0x377ac4(0x1af)]=_0x26f89c,this[_0x377ac4(0x46c)]=_0x3ea90a,this[_0x377ac4(0x1f4)]=_0xbd2495,this[_0x377ac4(0x3e0)]=_0x10795c,this[_0x377ac4(0x676)]=_0x2076e7,this[_0x377ac4(0x30d)]=_0x5da3df,this['_drawingManagerService']=_0xf9f026,this['_sheetCanvasPopManagerService']=_0x52d393,this[_0x377ac4(0x3c9)]=_0x3a1ec8,_defineProperty(this,'_sidebarDisposable',null),_defineProperty(this,'_activeShapeInfo',null),_defineProperty(this,'_isOpenedShapeEditPanel',![]),this['_registerComponent'](),this[_0x377ac4(0x470)](),this[_0x377ac4(0x46e)](this[_0x377ac4(0x5a0)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x377ac4(0x1ae)][_0x377ac4(0x394)])[_0x377ac4(0x61f)](_0xf2c71a=>{const _0x116431=_0x377ac4;var _0x9efddc;if(!_0xf2c71a)(_0x9efddc=this[_0x116431(0x4f3)])===null||_0x9efddc===void 0x0||_0x9efddc['dispose']();})),this[_0x377ac4(0x6a6)](),this[_0x377ac4(0x391)]();}[_0x3cbade(0x470)](){const _0x3a85d7=_0x3cbade;this['_menuManagerService'][_0x3a85d7(0x24d)](menuSchema);}[_0x3cbade(0x391)](){const _0x181602=_0x3cbade;this[_0x181602(0x3fa)][_0x181602(0x2b0)](_univerjs_core['DrawingTypeEnum'][_0x181602(0x4a0)],this[_0x181602(0x415)][_0x181602(0x574)](this)),this[_0x181602(0x3fa)]['registerFeatureMenuOffset'](_univerjs_core[_0x181602(0x625)]['DRAWING_SHAPE'],0x6,0x4);}[_0x3cbade(0x415)](_0x41b207,_0x3654c2,_0x3fca00,_0x52d94b){const _0x206138=_0x3cbade;return[{'label':'sheets-shape.openPanel','index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x41b207,'subUnitId':_0x3654c2,'drawingId':_0x3fca00},'disable':_0x52d94b===_univerjs_core[_0x206138(0x625)][_0x206138(0x25c)]},{'label':_0x206138(0x50e),'index':0x1,'commandId':_univerjs_sheets_drawing[_0x206138(0x213)]['id'],'commandParams':{'unitId':_0x41b207,'drawings':[{'unitId':_0x41b207,'subUnitId':_0x3654c2,'drawingId':_0x3fca00,'drawingType':_0x52d94b}]},'disable':![]},{'label':'sheets-shape.hidePanel','index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x41b207,'subUnitId':_0x3654c2,'drawingId':_0x3fca00},'disable':![]},{'label':_0x206138(0x23f),'index':0x3,'commandId':_univerjs_pro_sheets_shape['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x41b207,'subUnitId':_0x3654c2,'shapeId':_0x3fca00,'flipH':!![]},'disable':![]},{'label':'sheets-shape.toggleFlipV','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x206138(0x637)]['id'],'commandParams':{'unitId':_0x41b207,'subUnitId':_0x3654c2,'shapeId':_0x3fca00,'flipV':!![]},'disable':![]},{'label':_0x206138(0x264),'index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x41b207,'subUnitId':_0x3654c2,'shapeId':_0x3fca00,'rotate':0x5a},'disable':![]},{'label':_0x206138(0x68b),'index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x41b207,'subUnitId':_0x3654c2,'shapeId':_0x3fca00,'rotate':-0x5a},'disable':![]},{'label':'sheets-shape.toggleTextVertical','index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeTextVerticalToggleCommand']['id'],'commandParams':{'unitId':_0x41b207,'subUnitId':_0x3654c2,'shapeId':_0x3fca00},'disable':![]}];}[_0x3cbade(0x24e)](_0xd8e24d,_0x1f5513,_0x486d29){const _0x17c569=_0x3cbade,_0x214b04=this['_sheetsShapeService'][_0x17c569(0x352)](_0xd8e24d,_0x1f5513,_0x486d29),_0x5f060b=this['_sheetsShapeService']['getShapeDataById'](_0xd8e24d,_0x1f5513,_0x486d29);if(_0x214b04!==void 0x0&&_0x5f060b!==void 0x0)return{'shapeData':_0x5f060b,'shapeId':_0x486d29,'shapeType':_0x214b04,'unitId':_0xd8e24d,'subUnitId':_0x1f5513,'disableShapeOption':![]};return null;}[_0x3cbade(0x6a6)](){const _0x34363=_0x3cbade;this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x547a4f=>{const _0x4b2277=_0x1b00;if(_0x547a4f['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x29680d,subUnitId:_0x41975d,drawingId:_0x2630f4}=_0x547a4f[_0x4b2277(0x250)];this[_0x4b2277(0x479)]=this[_0x4b2277(0x24e)](_0x29680d,_0x41975d,_0x2630f4),this[_0x4b2277(0x64e)]();}_0x547a4f['id']===CloseSheetShapeFormatPanelOperation['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']());if(_0x547a4f['id']===_univerjs_pro_sheets_shape[_0x4b2277(0x603)]['id']){const {unitId:_0x7545d6,subUnitId:_0x36c29c,shapeId:_0x55af1e}=_0x547a4f[_0x4b2277(0x250)];if(this['_activeShapeInfo']&&this['_activeShapeInfo']['shapeId']===_0x55af1e){const _0x331852=this['_getShapeInfo'](_0x7545d6,_0x36c29c,_0x55af1e);if(_0x331852)this['_activeShapeInfo']=_0x331852;}}})),this[_0x34363(0x46e)](this[_0x34363(0x648)][_0x34363(0x6bd)][_0x34363(0x61f)](_0x4fadd9=>{const _0x371661=_0x34363;if(this['_isOpenedShapeEditPanel']===![])return;if(_0x4fadd9[_0x371661(0x4ba)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x4fadd9[_0x371661(0x4ba)]===0x1&&_0x4fadd9[0x0][_0x371661(0x27c)]===_univerjs_core['DrawingTypeEnum'][_0x371661(0x4a0)]){this[_0x371661(0x479)]=this['_getShapeInfo'](_0x4fadd9[0x0][_0x371661(0x444)],_0x4fadd9[0x0][_0x371661(0x3f1)],_0x4fadd9[0x0][_0x371661(0x291)]);if(this['_activeShapeInfo']){this[_0x371661(0x64e)]();return;}}const _0x5ea5d0=_0x4fadd9['filter'](_0xee3fa0=>{const _0x637861=_0x371661;return _0xee3fa0['drawingType']===_univerjs_core[_0x637861(0x625)][_0x637861(0x4a0)];});if(_0x4fadd9[_0x371661(0x4ba)]>0x1&&_0x5ea5d0[_0x371661(0x4ba)]===_0x4fadd9[_0x371661(0x4ba)]){this[_0x371661(0x479)]=this[_0x371661(0x24e)](_0x4fadd9[0x0][_0x371661(0x444)],_0x4fadd9[0x0][_0x371661(0x3f1)],_0x4fadd9[0x0][_0x371661(0x291)]);if(this[_0x371661(0x479)]){this[_0x371661(0x64e)]();return;}}else{this[_0x371661(0x479)]=this['_getShapeInfo'](_0x4fadd9[0x0]['unitId'],_0x4fadd9[0x0]['subUnitId'],_0x4fadd9[0x0]['drawingId']);if(this[_0x371661(0x479)]){this[_0x371661(0x479)][_0x371661(0x49f)]=!![],this[_0x371661(0x64e)]();return;}}this['_closeShapeEditPanel']();}));}['_registerComponent'](){const _0x29e03a=_0x3cbade;[[_0x29e03a(0x64d),_univerjs_icons['ShapeIcon']],[_0x29e03a(0x355),_univerjs_icons[_0x29e03a(0x355)]],[_0x29e03a(0x337),_univerjs_icons['ShapeAccentBorderCallout2Icon']],[_0x29e03a(0x6c4),_univerjs_icons['ShapeAccentBorderCallout3Icon']],[_0x29e03a(0x506),_univerjs_icons[_0x29e03a(0x506)]],[_0x29e03a(0x6ce),_univerjs_icons[_0x29e03a(0x6ce)]],['ShapeAccentCallout3Icon',_univerjs_icons[_0x29e03a(0x234)]],[_0x29e03a(0x1c8),_univerjs_icons['ShapeActionButtonBackPreviousIcon']],[_0x29e03a(0x225),_univerjs_icons[_0x29e03a(0x225)]],[_0x29e03a(0x50a),_univerjs_icons[_0x29e03a(0x50a)]],[_0x29e03a(0x27a),_univerjs_icons['ShapeActionButtonDocumentIcon']],[_0x29e03a(0x4a7),_univerjs_icons[_0x29e03a(0x4a7)]],[_0x29e03a(0x427),_univerjs_icons[_0x29e03a(0x427)]],['ShapeActionButtonHelpIcon',_univerjs_icons[_0x29e03a(0x28c)]],[_0x29e03a(0x4b5),_univerjs_icons[_0x29e03a(0x4b5)]],['ShapeActionButtonInformationIcon',_univerjs_icons[_0x29e03a(0x64a)]],[_0x29e03a(0x589),_univerjs_icons[_0x29e03a(0x589)]],[_0x29e03a(0x482),_univerjs_icons[_0x29e03a(0x482)]],[_0x29e03a(0x288),_univerjs_icons[_0x29e03a(0x288)]],['ShapeArcIcon',_univerjs_icons['ShapeArcIcon']],[_0x29e03a(0x4ab),_univerjs_icons[_0x29e03a(0x4ab)]],[_0x29e03a(0x503),_univerjs_icons[_0x29e03a(0x503)]],[_0x29e03a(0x241),_univerjs_icons[_0x29e03a(0x241)]],['ShapeBentConnector3Icon',_univerjs_icons['ShapeBentConnector3Icon']],[_0x29e03a(0x4db),_univerjs_icons[_0x29e03a(0x4db)]],[_0x29e03a(0x2a4),_univerjs_icons[_0x29e03a(0x2a4)]],[_0x29e03a(0x572),_univerjs_icons[_0x29e03a(0x572)]],['ShapeBorderCallout1Icon',_univerjs_icons['ShapeBorderCallout1Icon']],['ShapeBorderCallout2Icon',_univerjs_icons[_0x29e03a(0x4b1)]],['ShapeBorderCallout3Icon',_univerjs_icons[_0x29e03a(0x4f1)]],[_0x29e03a(0x418),_univerjs_icons[_0x29e03a(0x418)]],[_0x29e03a(0x4d3),_univerjs_icons[_0x29e03a(0x4d3)]],[_0x29e03a(0x3e1),_univerjs_icons['ShapeCallout1Icon']],[_0x29e03a(0x19f),_univerjs_icons['ShapeCallout2Icon']],[_0x29e03a(0x5ae),_univerjs_icons[_0x29e03a(0x5ae)]],[_0x29e03a(0x31d),_univerjs_icons[_0x29e03a(0x31d)]],[_0x29e03a(0x366),_univerjs_icons[_0x29e03a(0x366)]],[_0x29e03a(0x59a),_univerjs_icons[_0x29e03a(0x59a)]],[_0x29e03a(0x2b9),_univerjs_icons[_0x29e03a(0x2b9)]],[_0x29e03a(0x1a7),_univerjs_icons[_0x29e03a(0x1a7)]],[_0x29e03a(0x49e),_univerjs_icons[_0x29e03a(0x49e)]],['ShapeCircularArrowIcon',_univerjs_icons['ShapeCircularArrowIcon']],[_0x29e03a(0x3af),_univerjs_icons['ShapeCloudCalloutIcon']],['ShapeCloudIcon',_univerjs_icons['ShapeCloudIcon']],[_0x29e03a(0x429),_univerjs_icons[_0x29e03a(0x429)]],[_0x29e03a(0x591),_univerjs_icons[_0x29e03a(0x591)]],['ShapeCubeIcon',_univerjs_icons[_0x29e03a(0x251)]],[_0x29e03a(0x3ae),_univerjs_icons['ShapeCurvedConnector3Arrow1Icon']],['ShapeCurvedConnector3Arrow2Icon',_univerjs_icons[_0x29e03a(0x401)]],['ShapeCurvedConnector3Icon',_univerjs_icons[_0x29e03a(0x5cc)]],[_0x29e03a(0x5be),_univerjs_icons[_0x29e03a(0x5be)]],[_0x29e03a(0x38b),_univerjs_icons[_0x29e03a(0x38b)]],[_0x29e03a(0x45b),_univerjs_icons[_0x29e03a(0x45b)]],[_0x29e03a(0x6cc),_univerjs_icons[_0x29e03a(0x6cc)]],[_0x29e03a(0x2d7),_univerjs_icons[_0x29e03a(0x2d7)]],['ShapeDiagStripeIcon',_univerjs_icons[_0x29e03a(0x49b)]],['ShapeDiamondIcon',_univerjs_icons[_0x29e03a(0x51e)]],['ShapeDodecagonIcon',_univerjs_icons[_0x29e03a(0x3cf)]],[_0x29e03a(0x4b9),_univerjs_icons[_0x29e03a(0x4b9)]],[_0x29e03a(0x62f),_univerjs_icons['ShapeDoubleWaveIcon']],[_0x29e03a(0x330),_univerjs_icons['ShapeDownArrowCalloutIcon']],[_0x29e03a(0x1d5),_univerjs_icons[_0x29e03a(0x1d5)]],[_0x29e03a(0x5ec),_univerjs_icons[_0x29e03a(0x5ec)]],[_0x29e03a(0x6b1),_univerjs_icons['ShapeEllipseRibbon2Icon']],[_0x29e03a(0x580),_univerjs_icons[_0x29e03a(0x580)]],[_0x29e03a(0x34d),_univerjs_icons[_0x29e03a(0x34d)]],['ShapeFlowChartCollateIcon',_univerjs_icons[_0x29e03a(0x3f2)]],[_0x29e03a(0x3de),_univerjs_icons[_0x29e03a(0x3de)]],[_0x29e03a(0x528),_univerjs_icons['ShapeFlowChartDecisionIcon']],[_0x29e03a(0x6dd),_univerjs_icons[_0x29e03a(0x6dd)]],[_0x29e03a(0x272),_univerjs_icons['ShapeFlowChartDisplayIcon']],['ShapeFlowChartDocumentIcon',_univerjs_icons['ShapeFlowChartDocumentIcon']],[_0x29e03a(0x194),_univerjs_icons[_0x29e03a(0x194)]],[_0x29e03a(0x67b),_univerjs_icons[_0x29e03a(0x67b)]],['ShapeFlowChartInternalStorageIcon',_univerjs_icons[_0x29e03a(0x285)]],[_0x29e03a(0x4ad),_univerjs_icons['ShapeFlowChartMagneticDiskIcon']],[_0x29e03a(0x308),_univerjs_icons[_0x29e03a(0x308)]],[_0x29e03a(0x679),_univerjs_icons[_0x29e03a(0x679)]],[_0x29e03a(0x21e),_univerjs_icons[_0x29e03a(0x21e)]],[_0x29e03a(0x532),_univerjs_icons[_0x29e03a(0x532)]],[_0x29e03a(0x6ab),_univerjs_icons['ShapeFlowChartMergeIcon']],[_0x29e03a(0x687),_univerjs_icons[_0x29e03a(0x687)]],['ShapeFlowChartOfflineStorageIcon',_univerjs_icons[_0x29e03a(0x428)]],[_0x29e03a(0x616),_univerjs_icons[_0x29e03a(0x616)]],['ShapeFlowChartOnlineStorageIcon',_univerjs_icons[_0x29e03a(0x292)]],['ShapeFlowChartOrIcon',_univerjs_icons[_0x29e03a(0x334)]],[_0x29e03a(0x4a5),_univerjs_icons[_0x29e03a(0x4a5)]],[_0x29e03a(0x20a),_univerjs_icons[_0x29e03a(0x20a)]],[_0x29e03a(0x2ae),_univerjs_icons[_0x29e03a(0x2ae)]],[_0x29e03a(0x590),_univerjs_icons[_0x29e03a(0x590)]],[_0x29e03a(0x692),_univerjs_icons['ShapeFlowChartPunchedTapeIcon']],[_0x29e03a(0x4f2),_univerjs_icons[_0x29e03a(0x4f2)]],[_0x29e03a(0x58f),_univerjs_icons[_0x29e03a(0x58f)]],[_0x29e03a(0x48d),_univerjs_icons[_0x29e03a(0x48d)]],['ShapeFolderCornerIcon',_univerjs_icons['ShapeFolderCornerIcon']],[_0x29e03a(0x346),_univerjs_icons['ShapeFrameIcon']],[_0x29e03a(0x281),_univerjs_icons[_0x29e03a(0x281)]],[_0x29e03a(0x4c0),_univerjs_icons[_0x29e03a(0x4c0)]],[_0x29e03a(0x636),_univerjs_icons[_0x29e03a(0x636)]],['ShapeHalfFrameIcon',_univerjs_icons['ShapeHalfFrameIcon']],['ShapeHeartIcon',_univerjs_icons['ShapeHeartIcon']],[_0x29e03a(0x402),_univerjs_icons[_0x29e03a(0x402)]],[_0x29e03a(0x2f9),_univerjs_icons[_0x29e03a(0x2f9)]],[_0x29e03a(0x25b),_univerjs_icons[_0x29e03a(0x25b)]],[_0x29e03a(0x208),_univerjs_icons['ShapeHorizontalScrollIcon']],[_0x29e03a(0x3f0),_univerjs_icons[_0x29e03a(0x3f0)]],['ShapeIrregularSeal2Icon',_univerjs_icons[_0x29e03a(0x66d)]],[_0x29e03a(0x2c2),_univerjs_icons['ShapeLeftArrowCalloutIcon']],[_0x29e03a(0x468),_univerjs_icons['ShapeLeftArrowIcon']],[_0x29e03a(0x581),_univerjs_icons[_0x29e03a(0x581)]],[_0x29e03a(0x2d2),_univerjs_icons[_0x29e03a(0x2d2)]],[_0x29e03a(0x4ef),_univerjs_icons[_0x29e03a(0x4ef)]],['ShapeLeftRightArrowCalloutIcon',_univerjs_icons[_0x29e03a(0x32d)]],['ShapeLeftRightArrowIcon',_univerjs_icons[_0x29e03a(0x2c1)]],['ShapeLeftRightCircularArrowIcon',_univerjs_icons[_0x29e03a(0x58e)]],[_0x29e03a(0x69f),_univerjs_icons[_0x29e03a(0x69f)]],[_0x29e03a(0x2b8),_univerjs_icons[_0x29e03a(0x2b8)]],['ShapeLeftUpArrowIcon',_univerjs_icons[_0x29e03a(0x48e)]],['ShapeLightningBoltIcon',_univerjs_icons[_0x29e03a(0x4e5)]],[_0x29e03a(0x1c5),_univerjs_icons['ShapeLineIcon']],[_0x29e03a(0x465),_univerjs_icons[_0x29e03a(0x465)]],['ShapeMathDivideIcon',_univerjs_icons[_0x29e03a(0x459)]],[_0x29e03a(0x1e0),_univerjs_icons[_0x29e03a(0x1e0)]],[_0x29e03a(0x260),_univerjs_icons[_0x29e03a(0x260)]],[_0x29e03a(0x332),_univerjs_icons['ShapeMathMultiplyIcon']],['ShapeMathNotEqualIcon',_univerjs_icons[_0x29e03a(0x232)]],[_0x29e03a(0x32c),_univerjs_icons[_0x29e03a(0x32c)]],[_0x29e03a(0x42c),_univerjs_icons[_0x29e03a(0x42c)]],[_0x29e03a(0x4ec),_univerjs_icons[_0x29e03a(0x4ec)]],[_0x29e03a(0x4e8),_univerjs_icons[_0x29e03a(0x4e8)]],['ShapeNotchedRightArrowIcon',_univerjs_icons[_0x29e03a(0x42a)]],[_0x29e03a(0x433),_univerjs_icons[_0x29e03a(0x433)]],[_0x29e03a(0x27e),_univerjs_icons[_0x29e03a(0x27e)]],[_0x29e03a(0x3b6),_univerjs_icons[_0x29e03a(0x3b6)]],[_0x29e03a(0x430),_univerjs_icons[_0x29e03a(0x430)]],[_0x29e03a(0x2f1),_univerjs_icons[_0x29e03a(0x2f1)]],['ShapePlaqueIcon',_univerjs_icons[_0x29e03a(0x1bd)]],['ShapePlaqueTabsIcon',_univerjs_icons[_0x29e03a(0x5cd)]],[_0x29e03a(0x5fa),_univerjs_icons[_0x29e03a(0x5fa)]],[_0x29e03a(0x295),_univerjs_icons[_0x29e03a(0x295)]],[_0x29e03a(0x550),_univerjs_icons[_0x29e03a(0x550)]],[_0x29e03a(0x50c),_univerjs_icons[_0x29e03a(0x50c)]],[_0x29e03a(0x60c),_univerjs_icons[_0x29e03a(0x60c)]],[_0x29e03a(0x46f),_univerjs_icons[_0x29e03a(0x46f)]],['ShapeRibbon2Icon',_univerjs_icons[_0x29e03a(0x649)]],['ShapeRibbonIcon',_univerjs_icons['ShapeRibbonIcon']],[_0x29e03a(0x359),_univerjs_icons[_0x29e03a(0x359)]],[_0x29e03a(0x419),_univerjs_icons[_0x29e03a(0x419)]],[_0x29e03a(0x40f),_univerjs_icons[_0x29e03a(0x40f)]],[_0x29e03a(0x206),_univerjs_icons[_0x29e03a(0x206)]],['ShapeRound1RectIcon',_univerjs_icons[_0x29e03a(0x5f5)]],['ShapeRound2DiagRectIcon',_univerjs_icons[_0x29e03a(0x6ef)]],[_0x29e03a(0x53d),_univerjs_icons[_0x29e03a(0x53d)]],[_0x29e03a(0x270),_univerjs_icons[_0x29e03a(0x270)]],[_0x29e03a(0x3be),_univerjs_icons[_0x29e03a(0x3be)]],[_0x29e03a(0x4c6),_univerjs_icons[_0x29e03a(0x4c6)]],[_0x29e03a(0x437),_univerjs_icons[_0x29e03a(0x437)]],['ShapeSnip2DiagRectIcon',_univerjs_icons['ShapeSnip2DiagRectIcon']],[_0x29e03a(0x6da),_univerjs_icons['ShapeSnip2SameRectIcon']],[_0x29e03a(0x233),_univerjs_icons[_0x29e03a(0x233)]],['ShapeSquareTabsIcon',_univerjs_icons[_0x29e03a(0x53f)]],['ShapeStar10Icon',_univerjs_icons[_0x29e03a(0x228)]],['ShapeStar12Icon',_univerjs_icons['ShapeStar12Icon']],[_0x29e03a(0x690),_univerjs_icons[_0x29e03a(0x690)]],['ShapeStar24Icon',_univerjs_icons['ShapeStar24Icon']],[_0x29e03a(0x55f),_univerjs_icons[_0x29e03a(0x55f)]],[_0x29e03a(0x1dd),_univerjs_icons[_0x29e03a(0x1dd)]],[_0x29e03a(0x2d1),_univerjs_icons[_0x29e03a(0x2d1)]],[_0x29e03a(0x4d9),_univerjs_icons['ShapeStar6Icon']],[_0x29e03a(0x367),_univerjs_icons[_0x29e03a(0x367)]],[_0x29e03a(0x6db),_univerjs_icons[_0x29e03a(0x6db)]],[_0x29e03a(0x682),_univerjs_icons[_0x29e03a(0x682)]],[_0x29e03a(0x1b7),_univerjs_icons['ShapeStraightConnector2Icon']],[_0x29e03a(0x647),_univerjs_icons[_0x29e03a(0x647)]],[_0x29e03a(0x453),_univerjs_icons[_0x29e03a(0x453)]],[_0x29e03a(0x5aa),_univerjs_icons[_0x29e03a(0x5aa)]],[_0x29e03a(0x3fb),_univerjs_icons[_0x29e03a(0x3fb)]],[_0x29e03a(0x309),_univerjs_icons[_0x29e03a(0x309)]],['ShapeTriangleIcon',_univerjs_icons[_0x29e03a(0x411)]],[_0x29e03a(0x623),_univerjs_icons[_0x29e03a(0x623)]],[_0x29e03a(0x28a),_univerjs_icons['ShapeUpArrowIcon']],[_0x29e03a(0x642),_univerjs_icons['ShapeUpDownArrowCalloutIcon']],['ShapeUpDownArrowIcon',_univerjs_icons[_0x29e03a(0x22a)]],['ShapeUturnArrowIcon',_univerjs_icons[_0x29e03a(0x3c6)]],[_0x29e03a(0x595),_univerjs_icons[_0x29e03a(0x595)]],[_0x29e03a(0x302),_univerjs_icons[_0x29e03a(0x302)]],['ShapeWedgeEllipseCalloutIcon',_univerjs_icons[_0x29e03a(0x3a2)]],[_0x29e03a(0x390),_univerjs_icons[_0x29e03a(0x390)]],[_0x29e03a(0x672),_univerjs_icons[_0x29e03a(0x672)]],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x29e03a(0x417)],ImageClipShapePicker]][_0x29e03a(0x237)](([_0x676841,_0x1da3f8])=>{const _0x2ab5f9=_0x29e03a;this[_0x2ab5f9(0x46e)](this[_0x2ab5f9(0x676)]['register'](_0x676841,_0x1da3f8));});}[_0x3cbade(0x64e)](){const _0x4009d0=_0x3cbade;this[_0x4009d0(0x4f3)]=this['_sidebarService']['open']({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x4009d0(0x3e0)]['t'](_0x4009d0(0x567))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x4009d0(0x479)]},'onClose':()=>{const _0x519d6c=_0x4009d0;this[_0x519d6c(0x648)]['focusDrawing'](null),this[_0x519d6c(0x3c9)][_0x519d6c(0x44a)](_univerjs_core[_0x519d6c(0x64b)],![]),this[_0x519d6c(0x4f3)]=null;}}),this[_0x4009d0(0x501)]=!![];}[_0x3cbade(0x61c)](){const _0x4fbc5b=_0x3cbade;this[_0x4fbc5b(0x501)]=![],this[_0x4fbc5b(0x1af)]['close'](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x4fbc5b(0x4f3)]=null,this['_contextService']['setContextValue'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'],![]),this[_0x4fbc5b(0x648)][_0x4fbc5b(0x610)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core['IUniverInstanceService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_sheets[_0x3cbade(0x487)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_ui['ISidebarService'])),__decorateParam(0x3,_univerjs_ui[_0x3cbade(0x1d8)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x3cbade(0x39e)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_core['LocaleService'])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_ui[_0x3cbade(0x279)])),__decorateParam(0x7,_univerjs_core[_0x3cbade(0x447)]),__decorateParam(0x8,_univerjs_drawing[_0x3cbade(0x3a9)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_sheets_ui[_0x3cbade(0x6eb)])),__decorateParam(0xa,_univerjs_core[_0x3cbade(0x6d7)])],SheetsShapeUIController);var name=_0x3cbade(0x2e2),version='0.20.1-insiders.20260418-3a69981';const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY=_0x3cbade(0x2b6),configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0x41faaf,_0x1684c6,_0x517454,_0x57268e,_0x325228){const _0x6981a1=_0x3cbade;super(),this[_0x6981a1(0x3c5)]=_0x41faaf,this['_drawingManagerService']=_0x1684c6,this['_renderManagerService']=_0x517454,this[_0x6981a1(0x5a0)]=_0x57268e,this[_0x6981a1(0x2f5)]=_0x325228,_defineProperty(this,_0x6981a1(0x370),null),_defineProperty(this,_0x6981a1(0x407),null),_defineProperty(this,_0x6981a1(0x44d),null),_defineProperty(this,'_activeAdjustPointList',void 0x0),_defineProperty(this,_0x6981a1(0x66e),[]),_defineProperty(this,_0x6981a1(0x324),0x0),_defineProperty(this,_0x6981a1(0x45a),0x0),_defineProperty(this,_0x6981a1(0x4e6),0x0),_defineProperty(this,'_baseHeight',0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,'_activeAdjustInfo',void 0x0),_defineProperty(this,_0x6981a1(0x51c),void 0x0),_defineProperty(this,_0x6981a1(0x3cb),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0x6981a1(0x2e9),![]),this[_0x6981a1(0x36f)](),this[_0x6981a1(0x28e)]();}[_0x3cbade(0x1e1)](){this['_clearControls']();}[_0x3cbade(0x6a4)](){this['_clearControls'](),this['_createControls'](!![]);}[_0x3cbade(0x22b)](_0x126b8a,_0x48ac16,_0x5b9cc1,_0x20b444){const _0x5e6678=_0x3cbade,_0x2920cb=_0x126b8a;if(_0x2920cb===_univerjs_pro_engine_shape[_0x5e6678(0x40e)][_0x5e6678(0x5f1)]||_0x126b8a===_0x5e6678(0x29c))return;try{const _0x458025=new _univerjs_pro_engine_shape[(_0x5e6678(0x56e))](_0x2920cb,'clip-adj-'+_0x126b8a);if(_0x20b444)_0x458025[_0x5e6678(0x1a8)]({'adjustValues':_0x20b444},!![]);return _0x458025[_0x5e6678(0x4dc)]({'width':_0x48ac16,'height':_0x5b9cc1}),_0x458025;}catch{return;}}[_0x3cbade(0x547)](_0x52c960,_0x1832f4,_0x4301b4){const _0x2b552d=_0x3cbade,_0x205d96={'unitId':_0x52c960,'subUnitId':_0x1832f4,'drawingId':_0x4301b4},_0xd3737d=this['_drawingManagerService']['getDrawingByParam'](_0x205d96);if(!_0xd3737d||_0xd3737d[_0x2b552d(0x27c)]!==_univerjs_core['DrawingTypeEnum'][_0x2b552d(0x6c8)])return;return _0xd3737d;}[_0x3cbade(0x382)](_0x291962,_0xc80402,_0xe2968f){const _0x309b0b=_0x3cbade,_0x347ca2=this['_renderManagerService'][_0x309b0b(0x412)](_0x291962);if(!_0x347ca2)return void 0x0;const {scene:_0x2e8954}=_0x347ca2,_0x2bc31f=(0x0,_univerjs_drawing[_0x309b0b(0x564)])({'unitId':_0x291962,'subUnitId':_0xc80402,'drawingId':_0xe2968f}),_0x2c44ed=_0x2e8954[_0x309b0b(0x3d5)](_0x2bc31f);if(_0x2c44ed instanceof _univerjs_engine_render['Image']){const _0x1645fc=_0x2c44ed[_0x309b0b(0x6c5)];if(_0x1645fc)return{'prstGeom':_0x1645fc,'adjustValues':_0x2c44ed[_0x309b0b(0x345)]};}}[_0x3cbade(0x57e)](_0x196667=![]){const _0x35fff6=_0x3cbade;if(!this[_0x35fff6(0x407)]||!this[_0x35fff6(0x44d)]||!this[_0x35fff6(0x370)])return;const _0x1b3214=this[_0x35fff6(0x1c7)][_0x35fff6(0x412)](this[_0x35fff6(0x407)]);if(!_0x1b3214)return;if(!_0x1b3214['with'](_univerjs_sheets_ui[_0x35fff6(0x49d)])[_0x35fff6(0x1b0)]())return;const {scene:_0x1427ba}=_0x1b3214,_0x56d86e=this[_0x35fff6(0x547)](this[_0x35fff6(0x407)],this[_0x35fff6(0x44d)],this[_0x35fff6(0x370)]);if(!_0x56d86e)return;const {transform:_0x4cdc3d}=_0x56d86e;if(!_0x4cdc3d)return;const {left:_0x2974e0,top:_0x4c2e16,width:_0x269e13,height:_0x31fcc8,flipX:_0x82ddb4,flipY:_0x12d779,angle:angle=0x0}=_0x4cdc3d;if(_0x2974e0===void 0x0||_0x4c2e16===void 0x0)return;const _0x49b18a=this[_0x35fff6(0x382)](this[_0x35fff6(0x407)],this['_subUnitId'],this[_0x35fff6(0x370)]);if(!_0x49b18a)return;if(_0x196667){const _0x23ebd7=this[_0x35fff6(0x22b)](_0x49b18a[_0x35fff6(0x6c5)],_0x269e13||0x0,_0x31fcc8||0x0,_0x49b18a[_0x35fff6(0x245)]);if(!_0x23ebd7)return;this[_0x35fff6(0x438)]=_0x23ebd7[_0x35fff6(0x65f)]();}const _0x3d65bd=this[_0x35fff6(0x438)];if(!_0x3d65bd||_0x3d65bd[_0x35fff6(0x4ba)]===0x0)return;for(let _0xdd0f27=0x0;_0xdd0f27<_0x3d65bd[_0x35fff6(0x4ba)];_0xdd0f27++){const _0x4518d2=_0x3d65bd[_0xdd0f27];let _0x3320cc=_0x4518d2['x'],_0x4d02be=_0x4518d2['y'];if(_0x82ddb4)_0x3320cc=(_0x269e13||0x0)-_0x3320cc;if(_0x12d779)_0x4d02be=(_0x31fcc8||0x0)-_0x4d02be;if(angle!==0x0){const _0x216c9d=(_0x269e13||0x0)/0x2,_0x2c377e=(_0x31fcc8||0x0)/0x2,_0xa8ae44=angle*Math['PI']/0xb4,_0x3625a3=Math[_0x35fff6(0x5f9)](_0xa8ae44),_0x509e1a=Math['sin'](_0xa8ae44),_0x55d1fb=_0x3320cc-_0x216c9d,_0x30edce=_0x4d02be-_0x2c377e;_0x3320cc=_0x216c9d+(_0x55d1fb*_0x3625a3-_0x30edce*_0x509e1a),_0x4d02be=_0x2c377e+(_0x55d1fb*_0x509e1a+_0x30edce*_0x3625a3);}const _0x1e6c71={'x':_0x3320cc,'y':_0x4d02be,'adjName':_0x4518d2['adjName']};this[_0x35fff6(0x4d6)](_0x1427ba,_0x1e6c71,_0x1e6c71[_0x35fff6(0x6ed)],_0x2974e0,_0x4c2e16,this['_unitId'],this[_0x35fff6(0x44d)]);}}['_addControl'](_0x16cacd,_0x5e2b02,_0x18bf78,_0x441f96,_0x1a5032,_0x188c57,_0x5d77f4){const _0x4f098f=_0x3cbade;if(!this[_0x4f098f(0x370)])return;const _0x225cc4=_0x4f098f(0x442)+this[_0x4f098f(0x370)]+'-'+_0x18bf78,_0x5e9fef=_0x16cacd[_0x4f098f(0x231)](_0x225cc4);if(_0x5e9fef){_0x5e9fef['transformByState']({'left':_0x5e2b02['x']+_0x441f96-_univerjs_pro_engine_shape[_0x4f098f(0x46a)][_0x4f098f(0x560)],'top':_0x5e2b02['y']+_0x1a5032-_univerjs_pro_engine_shape[_0x4f098f(0x46a)][_0x4f098f(0x560)]});return;}const _0x575bc0=new SheetShapeAdjustPointObject(_0x225cc4,{'left':_0x5e2b02['x']+_0x441f96-_univerjs_pro_engine_shape[_0x4f098f(0x46a)][_0x4f098f(0x560)],'top':_0x5e2b02['y']+_0x1a5032-_univerjs_pro_engine_shape[_0x4f098f(0x46a)][_0x4f098f(0x560)],'adjName':_0x18bf78,'shapeId':this[_0x4f098f(0x370)],'unitId':_0x188c57,'subUnitId':_0x5d77f4,'width':_univerjs_pro_engine_shape[_0x4f098f(0x46a)][_0x4f098f(0x560)]+0x8,'height':_univerjs_pro_engine_shape[_0x4f098f(0x46a)]['adjHandleSize']+0x8,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this[_0x4f098f(0x66e)][_0x4f098f(0x4b4)](_0x575bc0),this['_attachAdjustEvent'](_0x575bc0,_0x16cacd,_0x18bf78),_0x16cacd[_0x4f098f(0x3c4)](_0x575bc0,_univerjs_engine_render[_0x4f098f(0x516)]+0x1);}[_0x3cbade(0x559)](){const _0x57bc4b=_0x3cbade;if(this[_0x57bc4b(0x66e)][_0x57bc4b(0x4ba)]===0x0)return;this[_0x57bc4b(0x66e)][_0x57bc4b(0x237)](_0x104904=>_0x104904[_0x57bc4b(0x258)]()),this[_0x57bc4b(0x66e)]=[];}['_getScrollInfo'](_0x8f5ecf,_0x5c3d18){const _0x365911=_0x3cbade;var _0x57c4e7;const _0x26c3ea={'x':0x0,'y':0x0},_0x3bbe19=this[_0x365911(0x1c7)][_0x365911(0x412)](_0x8f5ecf);if(!_0x3bbe19)return _0x26c3ea;if(!_0x3bbe19[_0x365911(0x4ce)](_univerjs_sheets_ui['SheetSkeletonManagerService'])['getSkeleton'](_0x5c3d18))return _0x26c3ea;const _0x445958=_0x3bbe19[_0x365911(0x4ce)](_univerjs_sheets_ui[_0x365911(0x4d2)]),_0x6e54ec=_0x445958===null||_0x445958===void 0x0?void 0x0:_0x445958[_0x365911(0x37a)]();if(!_0x6e54ec)return _0x26c3ea;const _0xb937d2=(_0x57c4e7=this[_0x365911(0x5a0)][_0x365911(0x2f3)](_0x8f5ecf))===null||_0x57c4e7===void 0x0?void 0x0:_0x57c4e7[_0x365911(0x5de)](_0x5c3d18);if(!_0xb937d2)return _0x26c3ea;const _0x4d086e=(0x0,_univerjs_sheets_ui[_0x365911(0x386)])(_0x6e54ec[_0x365911(0x5fd)],_0x6e54ec['sheetViewStartColumn'],_0x3bbe19['scene'],_0xb937d2);if(!_0x4d086e)return _0x26c3ea;return{'x':_0x4d086e[_0x365911(0x37b)],'y':_0x4d086e[_0x365911(0x240)]};}[_0x3cbade(0x489)](_0x2dd545,_0x4c3ac9){const _0x59cd3a=_0x3cbade;var _0x135604,_0x374e59;const _0x13b278=(_0x135604=this[_0x59cd3a(0x5a0)][_0x59cd3a(0x2f3)](_0x2dd545))===null||_0x135604===void 0x0?void 0x0:_0x135604['getSheetBySheetId'](_0x4c3ac9);return(_0x374e59=_0x13b278===null||_0x13b278===void 0x0?void 0x0:_0x13b278['getZoomRatio']())!==null&&_0x374e59!==void 0x0?_0x374e59:0x1;}[_0x3cbade(0x5bf)](_0x14a161,_0x5ef9b3,_0x2c2f67){const _0x574741=_0x3cbade;this[_0x574741(0x46e)]((0x0,_univerjs_core[_0x574741(0x61e)])(_0x14a161['onPointerDown$'][_0x574741(0x5a4)]((_0x40497f,_0x367765)=>{const _0x20ce11=_0x574741;var _0x7a7f4c,_0x30e03b,_0x20b46f;const {unitId:_0x51c762,subUnitId:_0x4eed40,drawingId:_0x53c304}=_0x14a161[_0x20ce11(0x614)](),_0x16ccd0=this[_0x20ce11(0x547)](_0x51c762,_0x4eed40,_0x53c304);if(!(_0x16ccd0===null||_0x16ccd0===void 0x0?void 0x0:_0x16ccd0[_0x20ce11(0x277)]))return;const {left:_0x55bcce,top:_0x27f9a1,width:_0x3cb662,height:_0x3baec0}=_0x16ccd0[_0x20ce11(0x277)];this[_0x20ce11(0x324)]=_0x55bcce||0x0,this[_0x20ce11(0x45a)]=_0x27f9a1||0x0,this['_baseWidth']=_0x3cb662||0x0,this['_baseHeight']=_0x3baec0||0x0;const _0x194a87=Boolean((_0x7a7f4c=_0x16ccd0[_0x20ce11(0x277)])===null||_0x7a7f4c===void 0x0?void 0x0:_0x7a7f4c[_0x20ce11(0x445)]),_0x52b233=Boolean((_0x30e03b=_0x16ccd0[_0x20ce11(0x277)])===null||_0x30e03b===void 0x0?void 0x0:_0x30e03b[_0x20ce11(0x681)]),_0x2909e2=((_0x20b46f=_0x16ccd0[_0x20ce11(0x277)])===null||_0x20b46f===void 0x0?void 0x0:_0x20b46f[_0x20ce11(0x3ee)])||0x0,_0x124813=this[_0x20ce11(0x382)](_0x51c762,_0x4eed40,_0x53c304);if(!_0x124813)return;const _0x15e290=this[_0x20ce11(0x22b)](_0x124813['prstGeom'],this[_0x20ce11(0x4e6)],this['_baseHeight'],_0x124813['adjustValues']);if(!_0x15e290)return;this[_0x20ce11(0x51c)]=_0x15e290,this['_activeAdjustInfo']=_0x15e290[_0x20ce11(0x39d)](_0x2c2f67);if(!this[_0x20ce11(0x568)])return;this[_0x20ce11(0x454)]=!![],_0x5ef9b3[_0x20ce11(0x2e7)]();const _0xebed68=_0x124813[_0x20ce11(0x6c5)];this[_0x20ce11(0x3cb)]=_0x5ef9b3[_0x20ce11(0x4c5)][_0x20ce11(0x5a4)]((_0x95c77a,_0x14033b)=>{const _0x18387b=_0x20ce11;if(!this[_0x18387b(0x454)])return;const {offsetX:_0x23dc90,offsetY:_0x42da07}=_0x95c77a,_0x11a6bf=this[_0x18387b(0x568)];if(!this[_0x18387b(0x51c)]||!_0x11a6bf)return;_0x5ef9b3[_0x18387b(0x2e7)](),_0x5ef9b3['setCursor'](_univerjs_engine_render[_0x18387b(0x19d)][_0x18387b(0x216)]);const _0x406cbe={'left':0x0,'top':0x0,'width':this[_0x18387b(0x4e6)],'height':this[_0x18387b(0x27b)]},_0x3f4db4=this[_0x18387b(0x1ff)](_0x51c762,_0x4eed40),_0x34c41d=this[_0x18387b(0x489)](_0x51c762,_0x4eed40);let _0x15873f=_0x23dc90/_0x34c41d+_0x3f4db4['x']-this[_0x18387b(0x324)],_0x1bbbf4=_0x42da07/_0x34c41d+_0x3f4db4['y']-this['_baseTop'];if(_0x2909e2!==0x0){const _0x283687=this[_0x18387b(0x4e6)]/0x2,_0x554e63=this[_0x18387b(0x27b)]/0x2,_0x49c418=_0x2909e2*Math['PI']/0xb4,_0x474016=Math[_0x18387b(0x5f9)](_0x49c418),_0x35a833=Math[_0x18387b(0x4f9)](_0x49c418),_0x1e541e=_0x15873f-_0x283687,_0xf15910=_0x1bbbf4-_0x554e63;_0x15873f=_0x283687+(_0x1e541e*_0x474016+_0xf15910*_0x35a833),_0x1bbbf4=_0x554e63+(-_0x1e541e*_0x35a833+_0xf15910*_0x474016);}if(_0x194a87)_0x15873f=this['_baseWidth']-_0x15873f;if(_0x52b233)_0x1bbbf4=this[_0x18387b(0x27b)]-_0x1bbbf4;const _0x538b30=this[_0x18387b(0x51c)]['calcAdjValue'](_0x406cbe,{'x':_0x15873f,'y':_0x1bbbf4},_0x11a6bf,_0x194a87,_0x52b233),_0x5ea1fd=_0x11a6bf[_0x18387b(0x6d0)]||_0x11a6bf[_0x18387b(0x4af)]||_0x11a6bf[_0x18387b(0x41d)]||_0x11a6bf[_0x18387b(0x497)];if(_0x5ea1fd===void 0x0)return;this[_0x18387b(0x51c)][_0x18387b(0x276)](_0x5ea1fd,_0x538b30),this[_0x18387b(0x51c)][_0x18387b(0x4dc)]({'width':this[_0x18387b(0x4e6)],'height':this[_0x18387b(0x27b)]}),this[_0x18387b(0x1f2)](_0x51c762,_0x4eed40,_0x53c304,_0x5ea1fd,_0x538b30),this[_0x18387b(0x438)]=this['_activeShapeModel'][_0x18387b(0x65f)](),this[_0x18387b(0x568)]=this[_0x18387b(0x51c)]['getAdjustInfoByName'](_0x2c2f67),this[_0x18387b(0x57e)](),_0x14033b[_0x18387b(0x615)]();}),this[_0x20ce11(0x513)]=_0x5ef9b3[_0x20ce11(0x630)]['subscribeEvent']((_0x325a68,_0x5c21b3)=>{const _0x4d55d0=_0x20ce11;this[_0x4d55d0(0x3cb)]['unsubscribe'](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x5ef9b3[_0x4d55d0(0x43a)]();if(this[_0x4d55d0(0x51c)]){const _0x24be72=this[_0x4d55d0(0x51c)][_0x4d55d0(0x2e3)](),_0x5c40a1={};for(const _0x4556fc of _0x24be72){const _0x2698ae=this['_activeShapeModel'][_0x4d55d0(0x200)](_0x4556fc);if(_0x2698ae!==void 0x0)_0x5c40a1[_0x4556fc]=_0x2698ae;}this['_imageShapeClipController'][_0x4d55d0(0x6aa)](_0x51c762,_0x4eed40,_0x53c304,_0xebed68,_0x5c40a1);}this[_0x4d55d0(0x568)]=void 0x0,this[_0x4d55d0(0x51c)]=void 0x0,this['_isStartAdjusting']=![],_0x5c21b3[_0x4d55d0(0x615)](),_0x5ef9b3[_0x4d55d0(0x299)]();}),_0x367765[_0x20ce11(0x615)]();})));}['_updateImageAdjValues'](_0x1760a2,_0x4b8cec,_0x3272db,_0x3d93f0,_0x2c3196){const _0xadfaf9=_0x3cbade,_0x2e026c=this[_0xadfaf9(0x1c7)][_0xadfaf9(0x412)](_0x1760a2);if(!_0x2e026c)return;const {scene:_0x3bc89f}=_0x2e026c,_0x4ecc37=(0x0,_univerjs_drawing[_0xadfaf9(0x564)])({'unitId':_0x1760a2,'subUnitId':_0x4b8cec,'drawingId':_0x3272db}),_0x159b8e=_0x3bc89f[_0xadfaf9(0x3d5)](_0x4ecc37);if(_0x159b8e instanceof _univerjs_engine_render['Image']){var _0x30d180;const _0x4b470c=(_0x30d180=_0x159b8e[_0xadfaf9(0x345)])!==null&&_0x30d180!==void 0x0?_0x30d180:{};_0x159b8e['setPrstGeomAdjValues']({..._0x4b470c,[_0x3d93f0]:_0x2c3196}),_0x159b8e[_0xadfaf9(0x67d)](!![]);}}[_0x3cbade(0x28e)](){const _0x1b593a=_0x3cbade,_0x3577dc=this[_0x1b593a(0x5a0)][_0x1b593a(0x44f)](_univerjs_core[_0x1b593a(0x1ae)][_0x1b593a(0x394)]);this[_0x1b593a(0x46e)](_0x3577dc[_0x1b593a(0x6bc)]((0x0,rxjs[_0x1b593a(0x592)])(_0x3c23d3=>{const _0x2b6a89=_0x1b593a;if(!_0x3c23d3)return rxjs[_0x2b6a89(0x5ea)];return _0x3c23d3[_0x2b6a89(0x3b1)][_0x2b6a89(0x6bc)]((0x0,rxjs[_0x2b6a89(0x592)])(_0x327991=>{const _0x58706a=_0x2b6a89;if(!_0x327991)return rxjs[_0x58706a(0x5ea)];const _0x24dcee=_0x3c23d3[_0x58706a(0x488)](),_0x12bfea=this[_0x58706a(0x1c7)]['getRenderById'](_0x24dcee),_0x4afc50=_0x12bfea===null||_0x12bfea===void 0x0?void 0x0:_0x12bfea[_0x58706a(0x53c)];if(!_0x4afc50)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x4afc50);}));}))[_0x1b593a(0x61f)](_0x3a6f12=>{const _0x31a97f=_0x1b593a,_0x7a0f0e=_0x3a6f12['getTransformerByCreate']();this['disposeWithMe'](_0x3a6f12[_0x31a97f(0x4c5)][_0x31a97f(0x5a4)](()=>{const _0x3ec07d=_0x31a97f;if(this['_isImagePointerDown'])this[_0x3ec07d(0x559)]();})),this[_0x31a97f(0x46e)](_0x7a0f0e[_0x31a97f(0x23b)][_0x31a97f(0x61f)](_0x1c989f=>{const _0x3c9cdf=_0x31a97f,{objects:_0x50433b}=_0x1c989f;this[_0x3c9cdf(0x57e)]();if(_0x50433b!==null&&_0x50433b[_0x3c9cdf(0x3d4)]===0x1){const _0x1101ae=_0x50433b[_0x3c9cdf(0x54e)]()[_0x3c9cdf(0x452)]()['value'];if(_0x1101ae instanceof _univerjs_engine_render[_0x3c9cdf(0x3f4)]&&_0x1101ae[_0x3c9cdf(0x6c5)])this[_0x3c9cdf(0x2e9)]=!![];}})),this[_0x31a97f(0x46e)](_0x7a0f0e[_0x31a97f(0x5f6)]['subscribe'](()=>{const _0x46e858=_0x31a97f;if(this[_0x46e858(0x2e9)])this[_0x46e858(0x559)]();})),this[_0x31a97f(0x46e)](_0x3a6f12['onPointerUp$'][_0x31a97f(0x5a4)](()=>{const _0x2ee984=_0x31a97f;this[_0x2ee984(0x2e9)]&&(this['_isImagePointerDown']=![],this[_0x2ee984(0x57e)]());})),this[_0x31a97f(0x46e)](_0x7a0f0e[_0x31a97f(0x6e9)]['subscribe'](()=>{const _0x48f24c=_0x31a97f;if(this[_0x48f24c(0x407)]&&this['_subUnitId']&&this[_0x48f24c(0x370)]){const _0x5258e2=this[_0x48f24c(0x382)](this[_0x48f24c(0x407)],this[_0x48f24c(0x44d)],this[_0x48f24c(0x370)]);if(_0x5258e2){var _0x14d26f,_0x4dcb91;const _0x510555=this[_0x48f24c(0x547)](this[_0x48f24c(0x407)],this['_subUnitId'],this['_activeImageId']),_0x217d45=(_0x510555===null||_0x510555===void 0x0||(_0x14d26f=_0x510555[_0x48f24c(0x277)])===null||_0x14d26f===void 0x0?void 0x0:_0x14d26f[_0x48f24c(0x354)])||0x0,_0x106a45=(_0x510555===null||_0x510555===void 0x0||(_0x4dcb91=_0x510555[_0x48f24c(0x277)])===null||_0x4dcb91===void 0x0?void 0x0:_0x4dcb91[_0x48f24c(0x396)])||0x0,_0x11cdc5=this[_0x48f24c(0x22b)](_0x5258e2[_0x48f24c(0x6c5)],_0x217d45,_0x106a45,_0x5258e2[_0x48f24c(0x245)]);_0x11cdc5&&(this[_0x48f24c(0x438)]=_0x11cdc5[_0x48f24c(0x65f)](),this[_0x48f24c(0x559)](),this[_0x48f24c(0x57e)](!![]));}}}));}));}['_registerFocusChangeHandler'](){const _0x1c677d=_0x3cbade;this[_0x1c677d(0x46e)](this[_0x1c677d(0x648)]['focus$'][_0x1c677d(0x61f)](_0x54ac7b=>{const _0x3988e1=_0x1c677d;if(_0x54ac7b[_0x3988e1(0x4ba)]===0x1){const _0x1e4d44=_0x54ac7b[0x0];if(_0x1e4d44[_0x3988e1(0x27c)]===_univerjs_core['DrawingTypeEnum'][_0x3988e1(0x6c8)]){const {unitId:_0x1db1a7,subUnitId:_0x3b8e57,drawingId:_0x579f3c}=_0x1e4d44,_0x320627=this[_0x3988e1(0x382)](_0x1db1a7,_0x3b8e57,_0x579f3c);if(_0x320627){var _0x3a3ec4,_0x1b0433;this[_0x3988e1(0x370)]=_0x579f3c,this[_0x3988e1(0x407)]=_0x1db1a7,this[_0x3988e1(0x44d)]=_0x3b8e57;const _0x2026ba=this[_0x3988e1(0x547)](_0x1db1a7,_0x3b8e57,_0x579f3c),_0x43e6d8=(_0x2026ba===null||_0x2026ba===void 0x0||(_0x3a3ec4=_0x2026ba[_0x3988e1(0x277)])===null||_0x3a3ec4===void 0x0?void 0x0:_0x3a3ec4[_0x3988e1(0x354)])||0x0,_0x1f4b90=(_0x2026ba===null||_0x2026ba===void 0x0||(_0x1b0433=_0x2026ba[_0x3988e1(0x277)])===null||_0x1b0433===void 0x0?void 0x0:_0x1b0433['height'])||0x0,_0x130efb=this[_0x3988e1(0x22b)](_0x320627[_0x3988e1(0x6c5)],_0x43e6d8,_0x1f4b90,_0x320627[_0x3988e1(0x245)]);if(_0x130efb)this[_0x3988e1(0x438)]=_0x130efb[_0x3988e1(0x65f)]();this[_0x3988e1(0x559)](),this[_0x3988e1(0x57e)](!![]);}else this[_0x3988e1(0x378)]();}else this[_0x3988e1(0x378)]();}else this['_resetState']();})),this['disposeWithMe'](this['_drawingManagerService'][_0x1c677d(0x3a7)]['subscribe'](_0x4c59fe=>{const _0xa5c9a3=_0x1c677d;if(_0x4c59fe[_0xa5c9a3(0x4ba)]===0x1){const _0x3a2019=_0x4c59fe[0x0],_0x3cac45=this[_0xa5c9a3(0x648)][_0xa5c9a3(0x511)](_0x3a2019);(_0x3cac45===null||_0x3cac45===void 0x0?void 0x0:_0x3cac45['drawingType'])===_univerjs_core[_0xa5c9a3(0x625)][_0xa5c9a3(0x6c8)]&&(this[_0xa5c9a3(0x370)]===_0x3a2019[_0xa5c9a3(0x291)]&&(this[_0xa5c9a3(0x559)](),this['_createControls'](!![])));}})),this[_0x1c677d(0x46e)](this[_0x1c677d(0x648)][_0x1c677d(0x5f3)][_0x1c677d(0x61f)](_0x47db3d=>{const _0x2939d3=_0x1c677d;for(const _0xd76b7c of _0x47db3d)if(this['_activeImageId']===_0xd76b7c[_0x2939d3(0x291)])this['_resetState']();}));}[_0x3cbade(0x378)](){const _0xf64b88=_0x3cbade;this[_0xf64b88(0x370)]=null,this[_0xf64b88(0x407)]=null,this[_0xf64b88(0x44d)]=null,this['_activeAdjustPointList']=void 0x0,this[_0xf64b88(0x559)]();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x3cbade(0x3a9)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x3cbade(0x2fa)])),__decorateParam(0x3,_univerjs_core[_0x3cbade(0x3ea)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0x19759f,_0x20ae65,_0xe3d1c,_0xf1e023){const _0x20e92c=_0x3cbade;super(),this[_0x20e92c(0x5a0)]=_0x19759f,this[_0x20e92c(0x3ca)]=_0x20ae65,this['_sheetDrawingService']=_0xe3d1c,this['_sheetsShapeService']=_0xf1e023,this[_0x20e92c(0x1e5)]();}['_initSheetChange'](){const _0x463adb=_0x3cbade;this[_0x463adb(0x46e)](this[_0x463adb(0x3ca)]['interceptCommand']({'getMutations':_0x2dd83e=>{const _0x390e1a=_0x463adb;if(_0x2dd83e['id']===_univerjs_sheets[_0x390e1a(0x5d1)]['id']){const _0x487854=(0x0,_univerjs_sheets[_0x390e1a(0x56f)])(this['_univerInstanceService'],_0x2dd83e[_0x390e1a(0x250)]);if(!_0x487854)return{'redos':[],'undos':[]};const {unitId:_0x369422,subUnitId:_0x5d5616}=_0x487854,_0x504fb2=this[_0x390e1a(0x6c6)]['getDrawingData'](_0x369422,_0x5d5616),_0xb8fc06=Object[_0x390e1a(0x54e)](_0x504fb2)[_0x390e1a(0x52f)](_0x293f96=>_0x293f96[_0x390e1a(0x27c)]===_univerjs_core[_0x390e1a(0x625)][_0x390e1a(0x4a0)]);if(_0xb8fc06[_0x390e1a(0x4ba)]===0x0)return{'redos':[],'undos':[]};const _0x381259=[],_0x2a5ea0=[];for(let _0x1dcd0b=0x0;_0x1dcd0b<_0xb8fc06[_0x390e1a(0x4ba)];_0x1dcd0b++){const _0x45c4b4=_0xb8fc06[_0x1dcd0b],_0x52bce1=this[_0x390e1a(0x1f4)][_0x390e1a(0x58c)](_0x45c4b4[_0x390e1a(0x444)],_0x45c4b4[_0x390e1a(0x3f1)],_0x45c4b4[_0x390e1a(0x291)]);if(!_0x52bce1)continue;const {redo:_0x34dcaf,undo:_0x291aef,objects:_0x54805a}=this[_0x390e1a(0x6c6)][_0x390e1a(0x40d)]([_0x45c4b4]);_0x381259[_0x390e1a(0x4b4)]({'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x369422,'subUnitId':_0x5d5616,'shapeId':_0x45c4b4[_0x390e1a(0x291)]}}),_0x381259[_0x390e1a(0x4b4)]({'id':_univerjs_sheets_drawing[_0x390e1a(0x4f8)]['id'],'params':{'unitId':_0x369422,'subUnitId':_0x5d5616,'type':_univerjs_sheets_drawing[_0x390e1a(0x632)]['REMOVE'],'op':_0x34dcaf,'objects':_0x54805a}}),_0x2a5ea0[_0x390e1a(0x4b4)]({'id':_univerjs_sheets_drawing[_0x390e1a(0x4f8)]['id'],'params':{'unitId':_0x369422,'subUnitId':_0x5d5616,'type':_univerjs_sheets_drawing[_0x390e1a(0x632)][_0x390e1a(0x694)],'op':_0x291aef,'objects':_0x54805a}}),_0x2a5ea0[_0x390e1a(0x4b4)]({'id':_univerjs_pro_sheets_shape[_0x390e1a(0x1bc)]['id'],'params':{'unitId':_0x369422,'subUnitId':_0x5d5616,'shapeId':_0x45c4b4[_0x390e1a(0x291)],'shapeType':_0x52bce1[_0x390e1a(0x68f)](),'shapeData':JSON[_0x390e1a(0x5b6)](JSON[_0x390e1a(0x5ee)](_0x52bce1['getShapeData']()))}});}return{'redos':_0x381259,'undos':_0x2a5ea0};}else{if(_0x2dd83e['id']===_univerjs_sheets[_0x390e1a(0x4c3)]['id']){const {unitId:_0x14f540,subUnitId:_0x21f2a0,targetSubUnitId:_0x4c9e2f}=_0x2dd83e[_0x390e1a(0x250)];if(!_0x14f540||!_0x21f2a0||!_0x4c9e2f)return{'redos':[],'undos':[]};const _0x3ca4ee=this[_0x390e1a(0x6c6)]['getDrawingData'](_0x14f540,_0x21f2a0),_0x1c2ca8=Object['values'](_0x3ca4ee)['filter'](_0x414d8e=>_0x414d8e[_0x390e1a(0x27c)]===_univerjs_core[_0x390e1a(0x625)]['DRAWING_SHAPE']);if(_0x1c2ca8['length']===0x0)return{'redos':[],'undos':[]};const _0xdb05a7=[],_0x381f6b=[];for(let _0x4132b1=0x0;_0x4132b1<_0x1c2ca8[_0x390e1a(0x4ba)];_0x4132b1++){const _0x451bc6=_0x1c2ca8[_0x4132b1],_0x46c2c5=this[_0x390e1a(0x1f4)][_0x390e1a(0x58c)](_0x451bc6[_0x390e1a(0x444)],_0x451bc6['subUnitId'],_0x451bc6[_0x390e1a(0x291)]);if(!_0x46c2c5)continue;const _0x3df6a3=(0x0,_univerjs_core[_0x390e1a(0x1f8)])(),_0x1df086={..._0x451bc6,'unitId':_0x14f540,'subUnitId':_0x4c9e2f,'drawingId':_0x3df6a3},{redo:_0x1c60e5,undo:_0x2b5035,objects:_0x5cb2a5}=this[_0x390e1a(0x6c6)][_0x390e1a(0x6b8)]([_0x1df086]);_0xdb05a7[_0x390e1a(0x4b4)]({'id':_univerjs_sheets_drawing[_0x390e1a(0x4f8)]['id'],'params':{'unitId':_0x14f540,'subUnitId':_0x4c9e2f,'type':_univerjs_sheets_drawing[_0x390e1a(0x632)][_0x390e1a(0x694)],'op':_0x1c60e5,'objects':_0x5cb2a5}}),_0xdb05a7['push']({'id':_univerjs_pro_sheets_shape[_0x390e1a(0x1bc)]['id'],'params':{'unitId':_0x14f540,'subUnitId':_0x4c9e2f,'shapeId':_0x3df6a3,'shapeType':_0x46c2c5[_0x390e1a(0x68f)](),'shapeData':JSON[_0x390e1a(0x5b6)](JSON[_0x390e1a(0x5ee)](_0x46c2c5['getShapeData']()))}}),_0x381f6b[_0x390e1a(0x4b4)]({'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x14f540,'subUnitId':_0x4c9e2f,'shapeId':_0x3df6a3}}),_0x381f6b[_0x390e1a(0x4b4)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x14f540,'subUnitId':_0x4c9e2f,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x390e1a(0x576)],'op':_0x2b5035,'objects':_0x5cb2a5}});}return{'redos':_0xdb05a7,'undos':_0x381f6b};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_core[_0x3cbade(0x3ea)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_sheets[_0x3cbade(0x487)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing[_0x3cbade(0x56a)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_pro_sheets_shape[_0x3cbade(0x39e)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0xce0dc0,_0x3d2c69,_0x53146b,_0x32c982,_0xbc1bc4){const _0x294b23=_0x3cbade;super(),this[_0x294b23(0x3c5)]=_0xce0dc0,this[_0x294b23(0x3a3)]=_0x3d2c69,this[_0x294b23(0x648)]=_0x53146b,this['_contextService']=_0x32c982,this[_0x294b23(0x1f4)]=_0xbc1bc4,_defineProperty(this,_0x294b23(0x21c),null),this['_initEvents'](),this['_initSelection'](),this[_0x294b23(0x252)]();}[_0x3cbade(0x6dc)](){const _0x1b4999=_0x3cbade,{scene:_0x32cc33}=this[_0x1b4999(0x3c5)];this[_0x1b4999(0x46e)](_0x32cc33[_0x1b4999(0x69d)]['subscribeEvent'](_0x46e0f7=>{const _0x81362f=_0x1b4999,{offsetX:_0x34242d,offsetY:_0x1ba085}=_0x46e0f7,_0x2cc02b=_0x32cc33[_0x81362f(0x220)](_univerjs_engine_render[_0x81362f(0x3e8)][_0x81362f(0x5d5)]([_0x34242d,_0x1ba085]));if(_0x2cc02b instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x81362f(0x5c0)])(this[_0x81362f(0x1f4)][_0x81362f(0x68f)](_0x2cc02b['unitId'],_0x2cc02b[_0x81362f(0x3f1)],_0x2cc02b[_0x81362f(0x190)])))return;this[_0x81362f(0x3a3)][_0x81362f(0x400)]({'visible':!![],'unitId':_0x2cc02b['unitId'],'subUnitId':_0x2cc02b[_0x81362f(0x3f1)],'shapeId':_0x2cc02b[_0x81362f(0x190)],'shapeKey':_0x2cc02b['oKey']});}}));}['_initSelection'](){const _0x65f9b7=_0x3cbade;this['disposeWithMe'](this['_drawingManagerService'][_0x65f9b7(0x6bd)][_0x65f9b7(0x61f)](_0x4331ee=>{const _0x3be345=_0x65f9b7;if(_0x4331ee[_0x3be345(0x4ba)]===0x1){const _0x1f9d46=_0x4331ee[0x0],_0x264b76=this['_drawingManagerService'][_0x3be345(0x511)](_0x1f9d46);if((_0x264b76===null||_0x264b76===void 0x0?void 0x0:_0x264b76[_0x3be345(0x27c)])===_univerjs_core[_0x3be345(0x625)][_0x3be345(0x4a0)]){const _0x2f1fd9=this[_0x3be345(0x3a3)]['getEditing']();if((_0x2f1fd9===null||_0x2f1fd9===void 0x0?void 0x0:_0x2f1fd9[_0x3be345(0x190)])===_0x1f9d46['drawingId']&&_0x2f1fd9[_0x3be345(0x634)])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x3be345(0x1f4)]['getShapeType'](_0x1f9d46[_0x3be345(0x444)],_0x1f9d46['subUnitId'],_0x1f9d46[_0x3be345(0x291)])))this[_0x3be345(0x3a3)]['setEditing'](null);}else this[_0x3be345(0x3a3)][_0x3be345(0x5c3)]()&&(this['_shapeTextEditingService'][_0x3be345(0x39a)](!![]),requestAnimationFrame(()=>{const _0x5b6695=_0x3be345;this[_0x5b6695(0x3a3)]['setEditing'](null);}));}else this['_shapeTextEditingService']['getEditing']()&&(this[_0x3be345(0x3a3)][_0x3be345(0x39a)](!![]),requestAnimationFrame(()=>{const _0x5f6ce4=_0x3be345;this['_shapeTextEditingService'][_0x5f6ce4(0x400)](null);}));})),this[_0x65f9b7(0x46e)](this[_0x65f9b7(0x648)][_0x65f9b7(0x5f3)][_0x65f9b7(0x61f)](_0x1d5396=>{const _0x3fd9e3=_0x65f9b7,_0x5c873f=this[_0x3fd9e3(0x3a3)]['getEditing']();if(_0x5c873f&&_0x1d5396['some'](_0x297173=>_0x297173['drawingId']===_0x5c873f[_0x3fd9e3(0x190)]))this['_shapeTextEditingService'][_0x3fd9e3(0x400)](null);}));}[_0x3cbade(0x252)](){const _0x4efcbc=_0x3cbade;this[_0x4efcbc(0x46e)](this[_0x4efcbc(0x3a3)][_0x4efcbc(0x2cd)][_0x4efcbc(0x61f)](_0x403bc9=>{const _0x2b672b=_0x4efcbc,{scene:_0xa163af}=this[_0x2b672b(0x3c5)];if(this[_0x2b672b(0x21c)]){const _0x4235f7=_0xa163af[_0x2b672b(0x231)](this[_0x2b672b(0x21c)]);if(_0x4235f7)_0x4235f7[_0x2b672b(0x400)](![]);}if(_0x403bc9){const _0x4c8480=!!_0x403bc9[_0x2b672b(0x634)],_0x3dd1e0=_0xa163af[_0x2b672b(0x231)](_0x403bc9[_0x2b672b(0x2a3)]);_0x3dd1e0&&(_0x3dd1e0[_0x2b672b(0x400)](_0x4c8480),this[_0x2b672b(0x21c)]=_0x403bc9['shapeKey']),this['_contextService'][_0x2b672b(0x44a)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],_0x4c8480);}else this[_0x2b672b(0x21c)]=null,this[_0x2b672b(0x3c9)][_0x2b672b(0x44a)](_univerjs_core[_0x2b672b(0x4aa)],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x3cbade(0x3a9)]),__decorateParam(0x3,_univerjs_core[_0x3cbade(0x6d7)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_pro_sheets_shape[_0x3cbade(0x39e)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape[_0x3cbade(0x46a)][_0x3cbade(0x6c1)],'stroke':_univerjs_pro_engine_shape[_0x3cbade(0x46a)][_0x3cbade(0x40b)],'strokeWidth':_univerjs_pro_engine_shape[_0x3cbade(0x46a)][_0x3cbade(0x61b)]},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render['Shape']{constructor(_0x3c8ca7,_0xc10944){const _0xd76fbd=_0x3cbade;super(_0x3c8ca7,_0xc10944),_defineProperty(this,_0xd76fbd(0x1de),''),_defineProperty(this,'_cxnIndex',-0x1),_defineProperty(this,'_unitId',''),_defineProperty(this,_0xd76fbd(0x44d),''),_defineProperty(this,_0xd76fbd(0x301),![]);if(_0xc10944)this['setShapeProps'](_0xc10944);}[_0x3cbade(0x48f)](){const _0x5436b0=_0x3cbade;return{'unitId':this['_unitId'],'subUnitId':this[_0x5436b0(0x44d)],'shapeId':this[_0x5436b0(0x1de)],'cxnIndex':this[_0x5436b0(0x249)]};}[_0x3cbade(0x673)](_0x4ae769){const _0x2a116b=_0x3cbade;this[_0x2a116b(0x301)]!==_0x4ae769&&(this[_0x2a116b(0x301)]=_0x4ae769,this[_0x2a116b(0x67d)](!![]));}[_0x3cbade(0x4f6)](){const _0xe040a2=_0x3cbade;return this[_0xe040a2(0x301)];}[_0x3cbade(0x207)](_0xc049f0){const _0x416f42=_0x3cbade;var _0x1f97f7,_0xb8e750;if(typeof _0xc049f0[_0x416f42(0x312)]!=='undefined')this[_0x416f42(0x1de)]=_0xc049f0[_0x416f42(0x312)];if(typeof _0xc049f0[_0x416f42(0x4ca)]!=='undefined')this[_0x416f42(0x249)]=_0xc049f0[_0x416f42(0x4ca)];if(typeof _0xc049f0[_0x416f42(0x444)]!=='undefined')this[_0x416f42(0x407)]=_0xc049f0[_0x416f42(0x444)];if(typeof _0xc049f0[_0x416f42(0x3f1)]!==_0x416f42(0x456))this[_0x416f42(0x44d)]=_0xc049f0[_0x416f42(0x3f1)];if(typeof _0xc049f0[_0x416f42(0x4f6)]!=='undefined')this[_0x416f42(0x301)]=_0xc049f0[_0x416f42(0x4f6)];this[_0x416f42(0x2db)]({'width':(_0x1f97f7=_0xc049f0[_0x416f42(0x354)])!==null&&_0x1f97f7!==void 0x0?_0x1f97f7:_univerjs_pro_engine_shape[_0x416f42(0x46a)][_0x416f42(0x664)]*0x2,'height':(_0xb8e750=_0xc049f0[_0x416f42(0x396)])!==null&&_0xb8e750!==void 0x0?_0xb8e750:_univerjs_pro_engine_shape[_0x416f42(0x46a)]['cxnPointRadius']*0x2});}[_0x3cbade(0x65b)](_0x2208e7){const _0xdc27ba=_0x3cbade,_0x3de7c0=this['_isHighlighted']?ConnectionSiteStyle[_0xdc27ba(0x631)]:ConnectionSiteStyle[_0xdc27ba(0x35c)];_univerjs_engine_render[_0xdc27ba(0x3d0)][_0xdc27ba(0x2ad)](_0x2208e7,{'radius':_univerjs_pro_engine_shape[_0xdc27ba(0x46a)]['cxnPointRadius'],'fill':_0x3de7c0['fill'],'stroke':_0x3de7c0[_0xdc27ba(0x388)],'strokeWidth':_0x3de7c0[_0xdc27ba(0x5a1)],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0x5406e5,_0x20e873,_0x4675f8,_0x4009e3){const _0xec8901=_0x3cbade;super(),this[_0xec8901(0x3c5)]=_0x5406e5,this[_0xec8901(0x1c7)]=_0x20e873,this[_0xec8901(0x648)]=_0x4675f8,this[_0xec8901(0x1f4)]=_0x4009e3,_defineProperty(this,_0xec8901(0x316),[]),_defineProperty(this,_0xec8901(0x5cb),null),_defineProperty(this,_0xec8901(0x2e0),-0x1),_defineProperty(this,'_currentScene',null),_defineProperty(this,_0xec8901(0x407),''),_defineProperty(this,_0xec8901(0x44d),''),_defineProperty(this,_0xec8901(0x340),null);}[_0x3cbade(0x2fd)](_0x59a7b6,_0x724641,_0x282f2f,_0x5eca2e){const _0x859d8c=_0x3cbade;this[_0x859d8c(0x677)]=_0x59a7b6,this[_0x859d8c(0x407)]=_0x724641,this[_0x859d8c(0x44d)]=_0x282f2f,this['_draggingConnectorId']=_0x5eca2e;}['updateConnectionDetection'](_0x17992b){const _0x34db8c=_0x3cbade;if(!this[_0x34db8c(0x677)])return null;const _0x5217c1=this[_0x34db8c(0x579)](_0x17992b);return _0x5217c1?(this[_0x34db8c(0x5cb)]!==_0x5217c1[_0x34db8c(0x190)]&&(this[_0x34db8c(0x1ca)](),this[_0x34db8c(0x19c)](_0x5217c1[_0x34db8c(0x190)],_0x5217c1['shapeModel']),this[_0x34db8c(0x5cb)]=_0x5217c1[_0x34db8c(0x190)]),this[_0x34db8c(0x3c3)](_0x17992b)):(this['_activeTargetShapeId']!==null&&(this[_0x34db8c(0x1ca)](),this[_0x34db8c(0x5cb)]=null),null);}[_0x3cbade(0x19b)](){const _0x16b54f=_0x3cbade;this[_0x16b54f(0x1ca)](),this['_currentScene']=null,this[_0x16b54f(0x5cb)]=null,this[_0x16b54f(0x2e0)]=-0x1,this['_draggingConnectorId']=null;}[_0x3cbade(0x600)](){const _0x6080ac=_0x3cbade;if(this[_0x6080ac(0x5cb)]===null||this[_0x6080ac(0x2e0)]<0x0)return null;return{'shapeId':this[_0x6080ac(0x5cb)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x3cbade(0x579)](_0x3cd7b1){const _0x397b49=_0x3cbade,_0x3b9297=this['_drawingManagerService']['getDrawingData'](this[_0x397b49(0x407)],this[_0x397b49(0x44d)]);for(const _0x45ce7e of Object['keys'](_0x3b9297)){if(_0x45ce7e===this[_0x397b49(0x340)])continue;if(_0x3b9297[_0x45ce7e]['drawingType']!==_univerjs_core[_0x397b49(0x625)][_0x397b49(0x4a0)])continue;const _0x53fedb=this[_0x397b49(0x1f4)]['getShapeModel'](this[_0x397b49(0x407)],this[_0x397b49(0x44d)],_0x45ce7e);if(!_0x53fedb)continue;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x53fedb['getShapeType']()))continue;if(_0x53fedb['getConnectionSiteList']()[_0x397b49(0x4ba)]===0x0)continue;if(!this[_0x397b49(0x677)])continue;const _0x4f664f=(0x0,_univerjs_drawing[_0x397b49(0x564)])({'unitId':this[_0x397b49(0x407)],'subUnitId':this[_0x397b49(0x44d)],'drawingId':_0x45ce7e}),_0x18cc61=this['_currentScene'][_0x397b49(0x231)](_0x4f664f);if(!_0x18cc61)continue;const {left:_0x14a5f1,top:_0x381e85,width:_0x188189,height:_0xacf366}=_0x18cc61[_0x397b49(0x3f5)](),_0x33b4f6=_0x14a5f1+_0x188189/0x2,_0x541a4d=_0x381e85+_0xacf366/0x2,_0x221da1=_0x18cc61[_0x397b49(0x277)]['getMatrix'](),_0x198b41=new _univerjs_engine_render[(_0x397b49(0x476))]([_0x221da1[0x0],_0x221da1[0x1],_0x221da1[0x2],_0x221da1[0x3],_0x33b4f6,_0x541a4d]),_0x1bc091=_0x18cc61[_0x397b49(0x3aa)](),_0x4cb714=(_0x18cc61['isInGroup']&&(_0x1bc091===null||_0x1bc091===void 0x0?void 0x0:_0x1bc091[_0x397b49(0x45f)])===_univerjs_engine_render[_0x397b49(0x612)][_0x397b49(0x20e)]?_0x1bc091[_0x397b49(0x197)]['multiply'](_0x198b41):_0x198b41)[_0x397b49(0x28b)]()['applyPoint'](_0x3cd7b1),_0x36e707=_0x188189/0x2,_0x111528=_0xacf366/0x2,_0x59922b=SHAPE_BOUNDS_PADDING;if(_0x4cb714['x']>=-_0x36e707-_0x59922b&&_0x4cb714['x']<=_0x36e707+_0x59922b&&_0x4cb714['y']>=-_0x111528-_0x59922b&&_0x4cb714['y']<=_0x111528+_0x59922b)return{'shapeId':_0x45ce7e,'shapeModel':_0x53fedb};}return null;}[_0x3cbade(0x19c)](_0x5db926,_0x31e105){const _0x3b38ea=_0x3cbade;if(!this[_0x3b38ea(0x677)])return;const _0x1328ef=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this[_0x3b38ea(0x44d)],'drawingId':_0x5db926}),_0x4a7da7=this[_0x3b38ea(0x677)]['getObjectIncludeInGroup'](_0x1328ef);if(!_0x4a7da7)return;const {left:_0x5efab1,top:_0x45fcd8,width:_0x2f02ee,height:_0x44a5ee}=_0x4a7da7['getRealBound'](),_0xffe9a2=_0x5efab1+_0x2f02ee/0x2,_0xb3e741=_0x45fcd8+_0x44a5ee/0x2,_0x41e45c=_0x4a7da7['transform']['getMatrix'](),_0x23877c=new _univerjs_engine_render['Transform']([_0x41e45c[0x0],_0x41e45c[0x1],_0x41e45c[0x2],_0x41e45c[0x3],_0xffe9a2,_0xb3e741]),_0x13eb31=_0x4a7da7['getParent'](),_0x36ef8b=_0x4a7da7[_0x3b38ea(0x25d)]&&(_0x13eb31===null||_0x13eb31===void 0x0?void 0x0:_0x13eb31[_0x3b38ea(0x45f)])===_univerjs_engine_render[_0x3b38ea(0x612)]['GROUP']?_0x13eb31['ancestorTransform']['multiply'](_0x23877c):_0x23877c;_0x31e105[_0x3b38ea(0x4dc)]({'width':_0x2f02ee,'height':_0x44a5ee});const _0x34eb2d=_0x31e105[_0x3b38ea(0x535)]();for(const _0x36f0b4 of _0x34eb2d){const _0x46c2c3=_0x36f0b4['x']-_0x2f02ee/0x2,_0x24f364=_0x36f0b4['y']-_0x44a5ee/0x2,_0x56fca5=_0x36ef8b[_0x3b38ea(0x278)]({'x':_0x46c2c3,'y':_0x24f364}),_0x4ad2c0=_0x56fca5['x'],_0x4d66c0=_0x56fca5['y'],_0x559a13=new SheetBasicShapeConnectionSiteObject(_0x3b38ea(0x43d)+_0x5db926+'-'+_0x36f0b4['index'],{'left':_0x4ad2c0-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3b38ea(0x664)],'top':_0x4d66c0-_univerjs_pro_engine_shape[_0x3b38ea(0x46a)]['cxnPointRadius'],'targetShapeId':_0x5db926,'cxnIndex':_0x36f0b4[_0x3b38ea(0x5dc)],'unitId':this[_0x3b38ea(0x407)],'subUnitId':this[_0x3b38ea(0x44d)],'width':_univerjs_pro_engine_shape[_0x3b38ea(0x46a)][_0x3b38ea(0x664)]*0x2,'height':_univerjs_pro_engine_shape[_0x3b38ea(0x46a)]['cxnPointRadius']*0x2,'zIndex':_univerjs_engine_render[_0x3b38ea(0x516)]+0x2,'evented':![]});this[_0x3b38ea(0x316)][_0x3b38ea(0x4b4)](_0x559a13),this[_0x3b38ea(0x677)][_0x3b38ea(0x3c4)](_0x559a13,_univerjs_engine_render[_0x3b38ea(0x516)]+0x2);}}[_0x3cbade(0x3c3)](_0x3ce92c){const _0x589223=_0x3cbade;let _0x3f8aa2=null,_0xc9ecef=Infinity,_0x4c540a=null;for(const _0xaf69ca of this['_connectionSiteObjects']){const _0x5084fe=_0xaf69ca[_0x589223(0x6d2)]+_univerjs_pro_engine_shape[_0x589223(0x46a)][_0x589223(0x664)],_0x40ef87=_0xaf69ca[_0x589223(0x523)]+_univerjs_pro_engine_shape[_0x589223(0x46a)][_0x589223(0x664)],_0x5260b7=_0x3ce92c['x']-_0x5084fe,_0x23d8e6=_0x3ce92c['y']-_0x40ef87,_0x170ab6=Math[_0x589223(0x1b1)](_0x5260b7*_0x5260b7+_0x23d8e6*_0x23d8e6);_0x170ab6<_0xc9ecef&&(_0xc9ecef=_0x170ab6,_0x3f8aa2=_0xaf69ca,_0x4c540a={'x':_0x5084fe,'y':_0x40ef87});}const _0x519c72=_0xc9ecef<=CONNECTION_SITE_HIT_RADIUS&&_0x3f8aa2?_0x3f8aa2['getConnectionInfo']()[_0x589223(0x4ca)]:-0x1;if(_0x519c72!==this[_0x589223(0x2e0)]){for(const _0xcc9b90 of this['_connectionSiteObjects']){const _0x1584a5=_0xcc9b90['getConnectionInfo']();_0xcc9b90[_0x589223(0x673)](_0x1584a5[_0x589223(0x4ca)]===_0x519c72);}this['_highlightedSiteIndex']=_0x519c72;}if(_0xc9ecef<=CONNECTION_SITE_HIT_RADIUS&&_0x3f8aa2&&_0x4c540a){const _0x40c218=_0x3f8aa2['getConnectionInfo'](),_0x471059=this[_0x589223(0x596)](_0x40c218[_0x589223(0x190)],_0x40c218[_0x589223(0x4ca)]);return{'shapeId':_0x40c218['shapeId'],'cxnIndex':_0x40c218[_0x589223(0x4ca)],'unitId':_0x40c218[_0x589223(0x444)],'subUnitId':_0x40c218[_0x589223(0x3f1)],'worldPoint':_0x4c540a,'angle':_0x471059};}return null;}[_0x3cbade(0x596)](_0xfcd17d,_0x3fff2e){const _0x25f1a3=_0x3cbade,_0x1c521c=this[_0x25f1a3(0x1f4)][_0x25f1a3(0x58c)](this['_unitId'],this[_0x25f1a3(0x44d)],_0xfcd17d);if(!_0x1c521c)return 0x0;const _0x5e761a=this[_0x25f1a3(0x648)][_0x25f1a3(0x511)]({'unitId':this[_0x25f1a3(0x407)],'subUnitId':this[_0x25f1a3(0x44d)],'drawingId':_0xfcd17d});if(!(_0x5e761a===null||_0x5e761a===void 0x0?void 0x0:_0x5e761a[_0x25f1a3(0x277)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x5e761a[_0x25f1a3(0x277)];_0x1c521c[_0x25f1a3(0x4dc)]({'width':width,'height':height});const _0x52ba4f=_0x1c521c[_0x25f1a3(0x535)]()[_0x25f1a3(0x6d4)](_0x371233=>_0x371233[_0x25f1a3(0x5dc)]===_0x3fff2e);if(!_0x52ba4f)return 0x0;let _0x2c2d4f=_0x52ba4f[_0x25f1a3(0x350)]/0xea60;if(flipX)_0x2c2d4f=0xb4-_0x2c2d4f;if(flipY)_0x2c2d4f=-_0x2c2d4f;return _0x2c2d4f=(_0x2c2d4f%0x168+0x168)%0x168,_0x2c2d4f;}['_clearConnectionSites'](){const _0x4ac315=_0x3cbade;for(const _0x189491 of this[_0x4ac315(0x316)])_0x189491[_0x4ac315(0x258)]();this[_0x4ac315(0x316)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){this['_clearConnectionSites'](),super['dispose']();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_engine_render[_0x3cbade(0x2fa)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_drawing[_0x3cbade(0x3a9)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_pro_sheets_shape['SheetsShapeService']))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0x591c85,_0x4964fa,_0x36d76b,_0x14199b,_0x1ad336){const _0x1ac5d1=_0x3cbade;super(),this[_0x1ac5d1(0x1b3)]=_0x591c85,this['_sheetClipboardService']=_0x4964fa,this[_0x1ac5d1(0x6c6)]=_0x36d76b,this[_0x1ac5d1(0x67e)]=_0x14199b,this['_groupCopyPasteController']=_0x1ad336,_defineProperty(this,_0x1ac5d1(0x2d9),void 0x0),this[_0x1ac5d1(0x6a5)](),this[_0x1ac5d1(0x660)]();}get[_0x3cbade(0x6e1)](){const _0x4058aa=_0x3cbade;return this[_0x4058aa(0x6c6)]['getFocusDrawings']();}[_0x3cbade(0x660)](){const _0x5db5f0=_0x3cbade;this[_0x5db5f0(0x37f)][_0x5db5f0(0x1c3)](({fromUnitId:_0x4c27fc,fromSubUnitId:_0x54bb8c,toUnitId:_0x294721,toSubUnitId:_0x2339a2,idMap:_0x1aab18})=>{const _0x3d5e98=_0x5db5f0,_0x337217=[],_0x7d7a45=[];for(const [_0x152f3e,_0x14437b]of _0x1aab18['entries']()){const _0x393138=this[_0x3d5e98(0x67e)][_0x3d5e98(0x58c)](_0x4c27fc,_0x54bb8c,_0x152f3e);if(!_0x393138)continue;const _0x3f403d=_0x393138['getShapeType'](),_0x3d8723=JSON[_0x3d5e98(0x5b6)](JSON[_0x3d5e98(0x5ee)](_0x393138[_0x3d5e98(0x50f)]()));if(_0x3d8723[_0x3d5e98(0x358)]){var _0x30a5d4,_0x91e77d;const _0x30d28b=(_0x30a5d4=_0x3d8723[_0x3d5e98(0x358)][_0x3d5e98(0x30a)])===null||_0x30a5d4===void 0x0?void 0x0:_0x30a5d4[_0x3d5e98(0x190)],_0x58c297=(_0x91e77d=_0x3d8723[_0x3d5e98(0x358)]['to'])===null||_0x91e77d===void 0x0?void 0x0:_0x91e77d['shapeId'],_0x3aa98e=_0x30d28b?_0x1aab18['has'](_0x30d28b):!![],_0x3b2fed=_0x58c297?_0x1aab18[_0x3d5e98(0x2c6)](_0x58c297):!![];if(_0x3aa98e&&_0x30d28b&&_0x3d8723['relation'][_0x3d5e98(0x30a)])_0x3d8723[_0x3d5e98(0x358)][_0x3d5e98(0x30a)]={..._0x3d8723[_0x3d5e98(0x358)][_0x3d5e98(0x30a)],'shapeId':_0x1aab18[_0x3d5e98(0x293)](_0x30d28b)};else _0x3d8723['relation'][_0x3d5e98(0x30a)]=void 0x0;if(_0x3b2fed&&_0x58c297&&_0x3d8723[_0x3d5e98(0x358)]['to'])_0x3d8723[_0x3d5e98(0x358)]['to']={..._0x3d8723[_0x3d5e98(0x358)]['to'],'shapeId':_0x1aab18[_0x3d5e98(0x293)](_0x58c297)};else _0x3d8723[_0x3d5e98(0x358)]['to']=void 0x0;}_0x337217[_0x3d5e98(0x4b4)]({'id':_univerjs_pro_sheets_shape[_0x3d5e98(0x1bc)]['id'],'params':{'unitId':_0x294721,'subUnitId':_0x2339a2,'shapeId':_0x14437b,'shapeType':_0x3f403d,'shapeData':_0x3d8723}}),_0x7d7a45['push']({'id':_univerjs_pro_sheets_shape[_0x3d5e98(0x44e)]['id'],'params':{'unitId':_0x294721,'subUnitId':_0x2339a2,'shapeId':_0x14437b}});}return{'redos':_0x337217,'undos':_0x7d7a45};});}[_0x3cbade(0x6a5)](){const _0x42e580=_0x3cbade;this['disposeWithMe'](this[_0x42e580(0x2f8)][_0x42e580(0x5c4)]({'id':_0x42e580(0x3b4),'onBeforeCopy':(_0x194b31,_0x5cf2c7,_0x110afd,_0x29d23e)=>{const _0x236648=_0x42e580;this[_0x236648(0x2d9)]=null;const _0xd56630=this['_focusedDrawings'];if(_0xd56630['length']){const _0x1dba8e=_0xd56630[_0x236648(0x52f)](_0x23ef09=>_0x23ef09[_0x236648(0x27c)]===_univerjs_core[_0x236648(0x625)][_0x236648(0x4a0)]);if(_0x1dba8e[_0x236648(0x4ba)]===0x0)return;this[_0x236648(0x2d9)]={'unitId':_0x194b31,'subUnitId':_0x5cf2c7,'copyType':_0x29d23e,'drawings':_0x1dba8e};}else this[_0x236648(0x268)](_0x194b31,_0x5cf2c7,_0x110afd,_0x29d23e);},'onPasteCells':(_0x4744f6,_0x376401,_0x25f106,_0xbab0dd)=>{const _0x56714f=_0x42e580;if(!this['_copyInfo'])return{'redos':[],'undos':[]};const {pasteType:_0x5c4f69}=_0xbab0dd;if(_0x5c4f69!==_univerjs_sheets_ui['PREDEFINED_HOOK_NAME']['DEFAULT_PASTE'])return{'redos':[],'undos':[]};return this[_0x56714f(0x554)](_0x376401,this['_copyInfo'][_0x56714f(0x265)]===_univerjs_sheets_ui[_0x56714f(0x486)][_0x56714f(0x6d9)]);},'onPasteUnrecognized':_0x114820=>{const _0x2908d4=_0x42e580;if(!this[_0x2908d4(0x2d9)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x114820,this[_0x2908d4(0x2d9)]['copyType']===_univerjs_sheets_ui[_0x2908d4(0x486)][_0x2908d4(0x6d9)]);}}));}[_0x3cbade(0x268)](_0x4b717a,_0x44b408,_0x962692,_0x2bc445){const _0x139b5f=_0x3cbade,_0x279941=this['_sheetSkeletonService'][_0x139b5f(0x41e)](_0x4b717a,_0x44b408);if(!_0x279941)return;const _0x211021=(0x0,_univerjs_sheets[_0x139b5f(0x1d3)])(_0x279941,_0x962692);if(!_0x211021)return;const {startX:_0x28a01c,endX:_0x31c4f3,startY:_0x11ed5c,endY:_0x231925}=_0x211021,_0x3b6c5d=this[_0x139b5f(0x6c6)][_0x139b5f(0x22e)](_0x4b717a,_0x44b408),_0x6abec5=this[_0x139b5f(0x6e1)][_0x139b5f(0x669)]();for(const [_0x15340f,_0x4812c3]of Object[_0x139b5f(0x1bf)](_0x3b6c5d)){if(_0x4812c3[_0x139b5f(0x27c)]!==_univerjs_core[_0x139b5f(0x625)][_0x139b5f(0x4a0)])continue;const {transform:_0x633689}=_0x4812c3;if(!_0x633689)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x633689;if(_0x28a01c<=left&&_0x31c4f3>=left+width&&_0x11ed5c<=top&&_0x231925>=top+height)_0x6abec5[_0x139b5f(0x4b4)](_0x4812c3);}if(_0x6abec5[_0x139b5f(0x4ba)]>0x0)this['_copyInfo']={'unitId':_0x4b717a,'subUnitId':_0x44b408,'copyType':_0x2bc445,'copyRange':_0x962692,'drawings':_0x6abec5};}[_0x3cbade(0x554)](_0x3e5f0b,_0x166dde){const _0x33089c=_0x3cbade,{unitId:_0x1816b4,subUnitId:_0x5ef9f4,range:_0x592a17}=_0x3e5f0b,_0x5b7ba3=this['_sheetSkeletonService'][_0x33089c(0x41e)](_0x1816b4,_0x5ef9f4);if(!_0x5b7ba3)return{'redos':[],'undos':[]};const _0x1b7aa2=(0x0,_univerjs_sheets[_0x33089c(0x5e4)])(_0x592a17),{unitId:_0x3e13cb,subUnitId:_0x132270,copyRange:_0x25e47b,drawings:_0x558dcb}=this[_0x33089c(0x2d9)],_0x5db0fa=this[_0x33089c(0x1b3)]['getSkeleton'](_0x3e13cb,_0x132270);if(!_0x5db0fa)return{'redos':[],'undos':[]};let _0x159a14;if(!_0x25e47b){let _0x1ad65a=Infinity,_0x7f246b=Infinity;for(const _0x3c7894 of _0x558dcb){var _0x3e8496;const {left:left=0x0,top:top=0x0}=(_0x3e8496=_0x3c7894[_0x33089c(0x277)])!==null&&_0x3e8496!==void 0x0?_0x3e8496:{};if(left<_0x1ad65a)_0x1ad65a=left;if(top<_0x7f246b)_0x7f246b=top;}if(_0x1ad65a!==Infinity&&_0x7f246b!==Infinity)_0x159a14={'left':_0x1ad65a,'top':_0x7f246b};}const _0x497d8f=new Map();if(!_0x166dde){for(const _0x25249e of _0x558dcb)_0x497d8f[_0x33089c(0x2a7)](_0x25249e[_0x33089c(0x291)],(0x0,_univerjs_core[_0x33089c(0x1f8)])());}const _0x3d84c0=[],_0x5b46f1=[];for(const _0xe9a256 of _0x558dcb){const {drawingId:_0x406903,transform:_0x17a04b,sheetTransform:_0x40ef08}=_0xe9a256;if(!_0x17a04b||!_0x40ef08)continue;const _0xa158dd=this[_0x33089c(0x6e0)]({'transform':_0x17a04b,'sheetTransform':_0x40ef08},{'skeleton':_0x5db0fa,'range':_0x25e47b},{'skeleton':_0x5b7ba3,'range':_0x1b7aa2},_0x159a14);if(_0x166dde){const {redos:_0x37e291,undos:_0x57bf2a}=this[_0x33089c(0x5ab)]({'fromUnitId':_0x3e13cb,'fromSubUnitId':_0x132270,'toUnitId':_0x1816b4,'toSubUnitId':_0x5ef9f4,'drawing':_0xe9a256,'newTransforms':_0xa158dd});_0x3d84c0['push'](..._0x37e291),_0x5b46f1['push'](..._0x57bf2a);continue;}const {redos:_0x3c392b,undos:_0x2e086b}=this['_generateCopyPasteMutations']({'toUnitId':_0x1816b4,'toSubUnitId':_0x5ef9f4,'drawing':_0xe9a256,'newTransforms':_0xa158dd,'newDrawingId':_0x497d8f[_0x33089c(0x293)](_0x406903),'idMap':_0x497d8f});_0x3d84c0[_0x33089c(0x4b4)](..._0x3c392b),_0x5b46f1['push'](..._0x2e086b);}return{'redos':_0x3d84c0,'undos':_0x5b46f1};}[_0x3cbade(0x5ab)](_0x49a2ab){const _0x4e404d=_0x3cbade,{fromUnitId:_0x184692,fromSubUnitId:_0x1abe36,toUnitId:_0x526544,toSubUnitId:_0x49d93c,drawing:_0x33a358,newTransforms:_0x4a2746}=_0x49a2ab,_0x257138={..._0x33a358,'unitId':_0x526544,'subUnitId':_0x49d93c,'transform':_0x4a2746[_0x4e404d(0x277)],'sheetTransform':_0x4a2746[_0x4e404d(0x35f)]};if(_0x526544===_0x184692&&_0x49d93c===_0x1abe36){const {redo:_0x5d9ba8,undo:_0x387c5c,objects:_0x597a6b}=this[_0x4e404d(0x6c6)]['getBatchUpdateOp']([_0x257138]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x4e404d(0x4f8)]['id'],'params':{'unitId':_0x526544,'subUnitId':_0x49d93c,'type':_univerjs_sheets_drawing[_0x4e404d(0x632)][_0x4e404d(0x6f0)],'op':_0x5d9ba8,'objects':_0x597a6b}}],'undos':[{'id':_univerjs_sheets_drawing[_0x4e404d(0x4f8)]['id'],'params':{'unitId':_0x526544,'subUnitId':_0x49d93c,'type':_univerjs_sheets_drawing[_0x4e404d(0x632)][_0x4e404d(0x6f0)],'op':_0x387c5c,'objects':_0x597a6b}}]};}else{const _0x32eb68=this[_0x4e404d(0x6c6)][_0x4e404d(0x40d)]([_0x33a358]),_0x65ebee=this['_sheetDrawingService'][_0x4e404d(0x6b8)]([_0x257138]),_0x1d5001=this['_shapeService']['getShapeModel'](_0x33a358[_0x4e404d(0x444)],_0x33a358['subUnitId'],_0x33a358['drawingId']);if(!_0x1d5001)return{'redos':[],'undos':[]};const _0x54fbff=_0x1d5001[_0x4e404d(0x68f)](),_0x580f9e=JSON[_0x4e404d(0x5b6)](JSON[_0x4e404d(0x5ee)](_0x1d5001[_0x4e404d(0x50f)]()));return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x184692,'subUnitId':_0x1abe36,'type':_univerjs_sheets_drawing[_0x4e404d(0x632)]['REMOVE'],'op':_0x32eb68[_0x4e404d(0x6b5)],'objects':_0x32eb68[_0x4e404d(0x53b)]}},{'id':_univerjs_pro_sheets_shape[_0x4e404d(0x44e)]['id'],'params':{'unitId':_0x184692,'subUnitId':_0x1abe36,'shapeId':_0x33a358[_0x4e404d(0x291)]}},{'id':_univerjs_sheets_drawing[_0x4e404d(0x4f8)]['id'],'params':{'unitId':_0x526544,'subUnitId':_0x49d93c,'type':_univerjs_sheets_drawing[_0x4e404d(0x632)][_0x4e404d(0x694)],'op':_0x65ebee[_0x4e404d(0x6b5)],'objects':_0x65ebee[_0x4e404d(0x53b)]}},{'id':_univerjs_pro_sheets_shape[_0x4e404d(0x1bc)]['id'],'params':{'unitId':_0x526544,'subUnitId':_0x49d93c,'shapeId':_0x33a358['drawingId'],'shapeType':_0x54fbff,'shapeData':_0x580f9e}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x184692,'subUnitId':_0x1abe36,'type':_univerjs_sheets_drawing[_0x4e404d(0x632)][_0x4e404d(0x694)],'op':_0x32eb68['undo'],'objects':_0x32eb68[_0x4e404d(0x53b)]}},{'id':_univerjs_pro_sheets_shape[_0x4e404d(0x1bc)]['id'],'params':{'unitId':_0x184692,'subUnitId':_0x1abe36,'shapeId':_0x33a358[_0x4e404d(0x291)],'shapeType':_0x54fbff,'shapeData':_0x580f9e}},{'id':_univerjs_sheets_drawing[_0x4e404d(0x4f8)]['id'],'params':{'unitId':_0x526544,'subUnitId':_0x49d93c,'type':_univerjs_sheets_drawing[_0x4e404d(0x632)][_0x4e404d(0x576)],'op':_0x65ebee['undo'],'objects':_0x65ebee[_0x4e404d(0x53b)]}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x526544,'subUnitId':_0x49d93c,'shapeId':_0x33a358['drawingId']}}]};}}['_generateCopyPasteMutations'](_0x45bd68){const _0x56f437=_0x3cbade,{toUnitId:_0x3e4731,toSubUnitId:_0xab61a8,drawing:_0x300cda,newTransforms:_0x492370,newDrawingId:_0x1f9304,idMap:_0x5f478c}=_0x45bd68,_0x1dc381={..._0x300cda,'unitId':_0x3e4731,'subUnitId':_0xab61a8,'drawingId':_0x1f9304,'transform':_0x492370[_0x56f437(0x277)],'sheetTransform':_0x492370['sheetTransform']},{redo:_0x39a993,undo:_0x5a2501,objects:_0x3778f5}=this[_0x56f437(0x6c6)][_0x56f437(0x6b8)]([_0x1dc381]),_0x223634=this[_0x56f437(0x67e)]['getShapeModel'](_0x300cda[_0x56f437(0x444)],_0x300cda[_0x56f437(0x3f1)],_0x300cda[_0x56f437(0x291)]);if(!_0x223634)return{'redos':[],'undos':[]};const _0x1e8f29=_0x223634[_0x56f437(0x68f)](),_0x36e7a5=JSON[_0x56f437(0x5b6)](JSON[_0x56f437(0x5ee)](_0x223634['getShapeData']()));if(_0x36e7a5[_0x56f437(0x358)]){var _0x249107,_0xcc09f4;const _0x10ab9f=(_0x249107=_0x36e7a5[_0x56f437(0x358)][_0x56f437(0x30a)])===null||_0x249107===void 0x0?void 0x0:_0x249107[_0x56f437(0x190)],_0x2d17d9=(_0xcc09f4=_0x36e7a5[_0x56f437(0x358)]['to'])===null||_0xcc09f4===void 0x0?void 0x0:_0xcc09f4[_0x56f437(0x190)],_0x2e0e4b=_0x10ab9f?_0x5f478c[_0x56f437(0x2c6)](_0x10ab9f):!![],_0x444387=_0x2d17d9?_0x5f478c['has'](_0x2d17d9):!![];if(_0x2e0e4b&&_0x10ab9f&&_0x36e7a5[_0x56f437(0x358)][_0x56f437(0x30a)])_0x36e7a5[_0x56f437(0x358)][_0x56f437(0x30a)]={..._0x36e7a5[_0x56f437(0x358)]['from'],'shapeId':_0x5f478c[_0x56f437(0x293)](_0x10ab9f)};else _0x36e7a5[_0x56f437(0x358)]['from']=void 0x0;if(_0x444387&&_0x2d17d9&&_0x36e7a5[_0x56f437(0x358)]['to'])_0x36e7a5[_0x56f437(0x358)]['to']={..._0x36e7a5[_0x56f437(0x358)]['to'],'shapeId':_0x5f478c[_0x56f437(0x293)](_0x2d17d9)};else _0x36e7a5[_0x56f437(0x358)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3e4731,'subUnitId':_0xab61a8,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x56f437(0x694)],'op':_0x39a993,'objects':_0x3778f5}},{'id':_univerjs_pro_sheets_shape[_0x56f437(0x1bc)]['id'],'params':{'unitId':_0x3e4731,'subUnitId':_0xab61a8,'shapeId':_0x1f9304,'shapeType':_0x1e8f29,'shapeData':_0x36e7a5}}],'undos':[{'id':_univerjs_sheets_drawing[_0x56f437(0x4f8)]['id'],'params':{'unitId':_0x3e4731,'subUnitId':_0xab61a8,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x56f437(0x576)],'op':_0x5a2501,'objects':_0x3778f5}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x3e4731,'subUnitId':_0xab61a8,'shapeId':_0x1f9304}}]};}[_0x3cbade(0x6e0)](_0x5dda0b,_0x2bb725,_0x158753,_0x10e317){const _0x42933d=_0x3cbade;var _0x4be798;const {range:_0x46b35f,skeleton:_0x3841d4}=_0x2bb725,{range:_0x19fce2,skeleton:_0xea5e9b}=_0x158753,{transform:_0x48daab,sheetTransform:_0x43decc}=_0x5dda0b,_0x5272d9={..._0x48daab};if(_0x46b35f){const _0x48d21a=(0x0,_univerjs_sheets[_0x42933d(0x1d3)])(_0x3841d4,_0x46b35f),_0x2b97b8=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0xea5e9b,_0x19fce2);if(_0x48d21a&&_0x2b97b8){var _0x47d810,_0x1b1bd5;const _0x46f23a=_0x2b97b8[_0x42933d(0x4bc)]-_0x48d21a[_0x42933d(0x4bc)],_0x5bc25a=_0x2b97b8[_0x42933d(0x39f)]-_0x48d21a['startY'];_0x5272d9[_0x42933d(0x6d2)]=((_0x47d810=_0x5272d9[_0x42933d(0x6d2)])!==null&&_0x47d810!==void 0x0?_0x47d810:0x0)+_0x46f23a,_0x5272d9[_0x42933d(0x523)]=((_0x1b1bd5=_0x5272d9['top'])!==null&&_0x1b1bd5!==void 0x0?_0x1b1bd5:0x0)+_0x5bc25a;}}else{const _0x5627b2=(0x0,_univerjs_sheets[_0x42933d(0x1d3)])(_0xea5e9b,_0x19fce2);if(_0x10e317&&_0x5627b2){var _0x3a460d,_0x42627f;const _0x340f3e=((_0x3a460d=_0x5272d9[_0x42933d(0x6d2)])!==null&&_0x3a460d!==void 0x0?_0x3a460d:0x0)-_0x10e317[_0x42933d(0x6d2)],_0x48c5dd=((_0x42627f=_0x5272d9[_0x42933d(0x523)])!==null&&_0x42627f!==void 0x0?_0x42627f:0x0)-_0x10e317[_0x42933d(0x523)];_0x5272d9['left']=_0x5627b2['startX']+_0x340f3e,_0x5272d9['top']=_0x5627b2[_0x42933d(0x39f)]+_0x48c5dd;}else _0x5272d9[_0x42933d(0x6d2)]=_0x5627b2===null||_0x5627b2===void 0x0?void 0x0:_0x5627b2[_0x42933d(0x4bc)],_0x5272d9['top']=_0x5627b2===null||_0x5627b2===void 0x0?void 0x0:_0x5627b2['startY'];}return{'transform':_0x5272d9,'sheetTransform':(_0x4be798=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x5272d9,_0xea5e9b))!==null&&_0x4be798!==void 0x0?_0x4be798:_0x43decc};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_sheets['SheetSkeletonService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_sheets_ui[_0x3cbade(0x47d)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_pro_sheets_shape[_0x3cbade(0x39e)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_sheets_drawing_ui[_0x3cbade(0x478)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render['Shape']{constructor(_0x183a7e,_0x2e0e5b){const _0x23f094=_0x3cbade;super(_0x183a7e,_0x2e0e5b),_defineProperty(this,_0x23f094(0x41f),null),_defineProperty(this,'_index',null),_defineProperty(this,'_unitId',null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,'_isStartConnectorPoint',![]);if(_0x2e0e5b)this[_0x23f094(0x207)](_0x2e0e5b);}[_0x3cbade(0x614)](){const _0x4573b7=_0x3cbade;return{'unitId':this[_0x4573b7(0x407)],'subUnitId':this[_0x4573b7(0x44d)],'drawingId':this[_0x4573b7(0x41f)]};}[_0x3cbade(0x207)](_0x5855fd){const _0x27d9d9=_0x3cbade;if(typeof _0x5855fd[_0x27d9d9(0x190)]!==_0x27d9d9(0x456))this[_0x27d9d9(0x41f)]=_0x5855fd[_0x27d9d9(0x190)];if(typeof _0x5855fd[_0x27d9d9(0x444)]!==_0x27d9d9(0x456))this[_0x27d9d9(0x407)]=_0x5855fd['unitId'];if(typeof _0x5855fd[_0x27d9d9(0x3f1)]!==_0x27d9d9(0x456))this[_0x27d9d9(0x44d)]=_0x5855fd[_0x27d9d9(0x3f1)];if(typeof _0x5855fd[_0x27d9d9(0x271)]!==_0x27d9d9(0x456))this[_0x27d9d9(0x3f7)]=_0x5855fd['isStartConnectorPoint'];this[_0x27d9d9(0x2db)]({'width':_0x5855fd[_0x27d9d9(0x354)],'height':_0x5855fd[_0x27d9d9(0x396)]});}[_0x3cbade(0x65b)](_0x1861de){const _0x340d7e=_0x3cbade;_univerjs_engine_render[_0x340d7e(0x3d0)]['drawWith'](_0x1861de,{'radius':_univerjs_pro_engine_shape[_0x340d7e(0x46a)][_0x340d7e(0x664)],'fill':_univerjs_pro_engine_shape[_0x340d7e(0x46a)][_0x340d7e(0x6c1)],'stroke':_univerjs_pro_engine_shape[_0x340d7e(0x46a)][_0x340d7e(0x40b)],'strokeWidth':_univerjs_pro_engine_shape[_0x340d7e(0x46a)][_0x340d7e(0x61b)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0xf9791c,_0x4f0950,_0xf65c7c,_0x130ae4,_0x33e023,_0x408c70,_0x4b7910,_0x3c45e4){const _0x33117a=_0x3cbade;super(),this[_0x33117a(0x3c5)]=_0xf9791c,this[_0x33117a(0x30d)]=_0x4f0950,this[_0x33117a(0x1c7)]=_0xf65c7c,this['_drawingManagerService']=_0x130ae4,this[_0x33117a(0x5a0)]=_0x33e023,this['_sheetsShapeService']=_0x408c70,this[_0x33117a(0x1b4)]=_0x4b7910,this[_0x33117a(0x2c4)]=_0x3c45e4,_defineProperty(this,_0x33117a(0x24f),void 0x0),_defineProperty(this,_0x33117a(0x407),void 0x0),_defineProperty(this,_0x33117a(0x44d),void 0x0),_defineProperty(this,_0x33117a(0x58d),[]),_defineProperty(this,_0x33117a(0x262),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,_0x33117a(0x27d),![]),_defineProperty(this,_0x33117a(0x553),![]),_defineProperty(this,_0x33117a(0x22d),![]),_defineProperty(this,'_cxtHandlerPointerMove',void 0x0),_defineProperty(this,'_cxtHandlerPointerUp',void 0x0),_defineProperty(this,'_currentConnectionTarget',null),this[_0x33117a(0x257)]();}[_0x3cbade(0x257)](){const _0x4927a1=_0x3cbade;this[_0x4927a1(0x46d)](),this[_0x4927a1(0x376)]();}['_getDrawingRect'](){const _0x3e6128=_0x3cbade;if(!this[_0x3e6128(0x407)]||!this[_0x3e6128(0x44d)]||!this[_0x3e6128(0x24f)])return;const _0x3ad796={'unitId':this[_0x3e6128(0x407)],'subUnitId':this[_0x3e6128(0x44d)],'drawingId':this[_0x3e6128(0x24f)]},{transform:_0x4ffeaa}=this[_0x3e6128(0x648)][_0x3e6128(0x511)](_0x3ad796);if(!_0x4ffeaa)return;return{'left':_0x4ffeaa[_0x3e6128(0x6d2)]||0x0,'top':_0x4ffeaa[_0x3e6128(0x523)]||0x0,'width':_0x4ffeaa[_0x3e6128(0x354)]||0x0,'height':_0x4ffeaa[_0x3e6128(0x396)]||0x0,'flipX':_0x4ffeaa['flipX']||![],'flipY':_0x4ffeaa[_0x3e6128(0x681)]||![],'angle':_0x4ffeaa[_0x3e6128(0x3ee)]};}[_0x3cbade(0x5ff)](){const _0x131b95=_0x3cbade;if(this[_0x131b95(0x407)]===void 0x0||this[_0x131b95(0x44d)]===void 0x0||this[_0x131b95(0x24f)]===void 0x0)return;const _0x401131=this['_renderManagerService']['getRenderById'](this[_0x131b95(0x407)]);if(!_0x401131)return;if(!_0x401131[_0x131b95(0x4ce)](_univerjs_sheets_ui[_0x131b95(0x49d)])[_0x131b95(0x1b0)]())return;const {scene:_0x3e6270}=_0x401131,_0x99f17d=this[_0x131b95(0x18f)]();if(!_0x99f17d)return;const _0x2cdd3d=this[_0x131b95(0x1f4)][_0x131b95(0x58c)](this['_unitId'],this['_subUnitId'],this[_0x131b95(0x24f)]);if(!_0x2cdd3d)return;if(!(0x0,_univerjs_pro_engine_shape[_0x131b95(0x5c0)])(_0x2cdd3d[_0x131b95(0x68f)]()))return;const _0x6fbd44=_0x2cdd3d['getConnectorLinePoints']();if(_0x6fbd44['length']<0x2)return;const _0x54a213=new _univerjs_pro_engine_shape[(_0x131b95(0x238))](_0x99f17d),_0x8ebe95=_0x6fbd44[0x0],_0x495069=_0x6fbd44[_0x6fbd44[_0x131b95(0x4ba)]-0x1],_0x386c2e=_0x54a213[_0x131b95(0x343)](_0x8ebe95),_0x6b7ee2=_0x54a213[_0x131b95(0x343)](_0x495069);this['_addShapeConnectorHandlerObject'](_0x3e6270,{..._0x386c2e},!![]),this[_0x131b95(0x4c1)](_0x3e6270,{..._0x6b7ee2},![]);}[_0x3cbade(0x4c1)](_0x22b4f5,_0x116506,_0x21fd9f){const _0x32d4f1=_0x3cbade;if(this[_0x32d4f1(0x24f)]===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;const _0x1903ac=_0x32d4f1(0x6ee)+this[_0x32d4f1(0x407)]+'-'+this[_0x32d4f1(0x44d)]+'-'+this[_0x32d4f1(0x24f)]+'-'+(_0x21fd9f?_0x32d4f1(0x6a7):_0x32d4f1(0x51f)),_0x48006b=_0x22b4f5['getObjectIncludeInGroup'](_0x1903ac);if(_0x48006b){_0x48006b[_0x32d4f1(0x2db)]({'left':_0x116506['x']-_univerjs_pro_engine_shape[_0x32d4f1(0x46a)][_0x32d4f1(0x664)],'top':_0x116506['y']-_univerjs_pro_engine_shape[_0x32d4f1(0x46a)][_0x32d4f1(0x664)]});return;}const _0x1128b5=new SheetShapeConnectorHandlerObject(_0x1903ac,{'left':_0x116506['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x32d4f1(0x664)],'top':_0x116506['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'shapeId':this['_activeShapeId'],'unitId':this[_0x32d4f1(0x407)],'subUnitId':this[_0x32d4f1(0x44d)],'isStartConnectorPoint':_0x21fd9f,'width':_univerjs_pro_engine_shape[_0x32d4f1(0x46a)][_0x32d4f1(0x664)]*0x2,'height':_univerjs_pro_engine_shape[_0x32d4f1(0x46a)][_0x32d4f1(0x664)]*0x2,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this['_connectorObjects'][_0x32d4f1(0x4b4)](_0x1128b5),this[_0x32d4f1(0x3d3)](_0x1128b5,_0x22b4f5,_0x21fd9f),_0x22b4f5[_0x32d4f1(0x3c4)](_0x1128b5,_univerjs_engine_render[_0x32d4f1(0x516)]+0x1);}['_getScrollInfo'](_0x481e3d,_0x1b9240){const _0x58858e=_0x3cbade;var _0x5e9869;const _0xaa0479={'x':0x0,'y':0x0};if(!_0x481e3d||!_0x1b9240)return _0xaa0479;const _0x25d1db=this[_0x58858e(0x1c7)]['getRenderById'](_0x481e3d);if(!_0x25d1db)return _0xaa0479;if(!_0x25d1db[_0x58858e(0x4ce)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x58858e(0x41e)](_0x1b9240))return _0xaa0479;const _0x5258ca=_0x25d1db[_0x58858e(0x4ce)](_univerjs_sheets_ui[_0x58858e(0x4d2)]),_0x106b05=_0x5258ca===null||_0x5258ca===void 0x0?void 0x0:_0x5258ca[_0x58858e(0x37a)]();if(!_0x106b05)return _0xaa0479;const _0xff139b=(_0x5e9869=this['_univerInstanceService'][_0x58858e(0x2f3)](_0x481e3d))===null||_0x5e9869===void 0x0?void 0x0:_0x5e9869['getSheetBySheetId'](_0x1b9240);if(!_0xff139b)return _0xaa0479;const _0x415e2b=(0x0,_univerjs_sheets_ui[_0x58858e(0x386)])(_0x106b05[_0x58858e(0x5fd)],_0x106b05[_0x58858e(0x365)],_0x25d1db[_0x58858e(0x53c)],_0xff139b);if(!_0x415e2b)return _0xaa0479;return{'x':_0x415e2b[_0x58858e(0x37b)],'y':_0x415e2b['viewportScrollY']};}[_0x3cbade(0x489)](_0x4b0e03,_0x3c63a6){const _0x55a193=_0x3cbade;var _0x99077c,_0x4d2a40;const _0x54193d=(_0x99077c=this[_0x55a193(0x5a0)][_0x55a193(0x2f3)](_0x4b0e03))===null||_0x99077c===void 0x0?void 0x0:_0x99077c[_0x55a193(0x5de)](_0x3c63a6);return(_0x4d2a40=_0x54193d===null||_0x54193d===void 0x0?void 0x0:_0x54193d[_0x55a193(0x6cd)]())!==null&&_0x4d2a40!==void 0x0?_0x4d2a40:0x1;}[_0x3cbade(0x5ce)](_0x12b545,_0x4684d9,_0x1e1369,_0x5b2348,_0x6d005d){const _0x29396b=_0x3cbade;this[_0x29396b(0x518)]['unsubscribe'](),this[_0x29396b(0x57b)][_0x29396b(0x5b9)](),this[_0x29396b(0x1b4)][_0x29396b(0x6a4)]();const _0x1dfc4c=this[_0x29396b(0x3a8)];this[_0x29396b(0x2c4)][_0x29396b(0x19b)]();const _0x3aaa1e=this[_0x29396b(0x1ff)](this[_0x29396b(0x407)],this[_0x29396b(0x44d)]),_0x4f5672=this[_0x29396b(0x489)](this[_0x29396b(0x407)],this[_0x29396b(0x44d)]),_0x147588={'x':_0x1e1369[_0x29396b(0x63d)]/_0x4f5672+_0x3aaa1e['x'],'y':_0x1e1369[_0x29396b(0x584)]/_0x4f5672+_0x3aaa1e['y']},_0x5d2b17=_0x1dfc4c?_0x1dfc4c['worldPoint']:_0x147588,_0x553f84=_0x5b2348?this[_0x29396b(0x51c)]['getEndConnectInfo']():this[_0x29396b(0x51c)][_0x29396b(0x3ad)](),_0x12317e=this[_0x29396b(0x51c)][_0x29396b(0x68f)]();if(!_0x553f84)this[_0x29396b(0x35a)](_0x4684d9,_0x5d2b17,_0x5b2348,_0x1dfc4c,_0x6d005d,_0x12317e);else this['_handleConnectedEndpointPointerUp'](_0x553f84,_0x5d2b17,_0x5b2348,_0x1dfc4c,_0x6d005d);this[_0x29396b(0x27d)]=![],this[_0x29396b(0x22d)]=![],this[_0x29396b(0x3a8)]=null,_0x12b545[_0x29396b(0x299)]();}[_0x3cbade(0x35a)](_0x19349d,_0x351a85,_0x5dd25b,_0x35bb6a,_0x393142,_0x40ceef){const _0x5ed7a8=_0x3cbade,_0x8c61c=_0x40ceef===_univerjs_pro_engine_shape[_0x5ed7a8(0x40e)][_0x5ed7a8(0x263)]||_0x40ceef===_univerjs_pro_engine_shape[_0x5ed7a8(0x40e)]['StraightConnector1'],_0x43fc55=_0x5dd25b?_0x351a85:_0x19349d,_0x43ea7a=_0x5dd25b?_0x19349d:_0x351a85,_0x12f61e=this[_0x5ed7a8(0x51c)][_0x5ed7a8(0x3f6)](),_0x2ab67d=(0x0,_univerjs_pro_engine_shape[_0x5ed7a8(0x5bd)])(this[_0x5ed7a8(0x51c)][_0x5ed7a8(0x68f)]()),_0x47af2a=_univerjs_pro_engine_shape[_0x5ed7a8(0x238)]['getBentTypeFromPoints'](_0x12f61e,_0x2ab67d),_0xc348d1=_0x8c61c?_univerjs_pro_engine_shape[_0x5ed7a8(0x238)][_0x5ed7a8(0x379)](_0x43fc55,_0x43ea7a):_univerjs_pro_engine_shape[_0x5ed7a8(0x238)][_0x5ed7a8(0x4ea)](_0x19349d,_0x351a85,_0x5dd25b,_0x47af2a);if(_0x35bb6a)this['_executeConnectionCommand'](_0xc348d1,_0x35bb6a,_0x5dd25b,_0x393142);else this[_0x5ed7a8(0x4f7)](_0xc348d1,_0x393142);}[_0x3cbade(0x52a)](_0x584f9d,_0x4438b1,_0x5f0ace,_0x1186ad,_0x306de4){const _0x27c9d7=_0x3cbade,_0x2b512c=this[_0x27c9d7(0x6b6)](_0x584f9d);if(!_0x2b512c)return;const _0x121f1f=_0x1186ad?_0x1186ad[_0x27c9d7(0x3ee)]:this['_calculateFreeEndpointAngle'](_0x2b512c[_0x27c9d7(0x65d)],_0x4438b1);let _0x18c725;if(_0x1186ad){const _0x551200=this[_0x27c9d7(0x648)][_0x27c9d7(0x511)]({'unitId':_0x1186ad[_0x27c9d7(0x444)],'subUnitId':_0x1186ad['subUnitId'],'drawingId':_0x1186ad['shapeId']});if(_0x551200===null||_0x551200===void 0x0?void 0x0:_0x551200[_0x27c9d7(0x277)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x299b5d}=_0x551200['transform'];_0x18c725=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x299b5d||0x0);}else _0x18c725={'left':_0x4438b1['x'],'top':_0x4438b1['y'],'width':0x0,'height':0x0};}else _0x18c725={'left':_0x4438b1['x'],'top':_0x4438b1['y'],'width':0x0,'height':0x0};const _0x597cca={'point':_0x4438b1,'angle':_0x121f1f,'bounds':_0x18c725},_0x5dac59=_0x5f0ace?_0x597cca:_0x2b512c,_0x47edde=_0x5f0ace?_0x2b512c:_0x597cca,_0x32df80=this[_0x27c9d7(0x51c)][_0x27c9d7(0x68f)](),_0x487f39=(0x0,_univerjs_pro_engine_shape[_0x27c9d7(0x404)])(_0x5dac59,_0x47edde,_0x32df80);this[_0x27c9d7(0x51c)][_0x27c9d7(0x41b)]();const _0x200829=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x487f39,_0x32df80);if(_0x1186ad)this['_executeConnectedRouteConnectionCommand'](_0x200829,_0x1186ad,_0x584f9d,_0x5f0ace,_0x306de4);else this['_executeConnectedRouteResizeCommand'](_0x200829,_0x584f9d,_0x5f0ace,_0x306de4);}[_0x3cbade(0x646)](_0x1b16df,_0x480c79,_0x37dcc3,_0x5eb84c){const _0x582a1e=_0x3cbade,_0x3f1f31=this['_activeShapeModel'][_0x582a1e(0x50f)]()[_0x582a1e(0x358)],_0x1eb3af={..._0x3f1f31},_0x181c89={'shapeId':_0x480c79[_0x582a1e(0x190)],'cxnIndex':_0x480c79[_0x582a1e(0x4ca)]};if(_0x37dcc3)_0x1eb3af['from']=_0x181c89;else _0x1eb3af['to']=_0x181c89;const _0x218aff=this[_0x582a1e(0x51c)][_0x582a1e(0x68f)](),_0x3650a7=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x1b16df[_0x582a1e(0x5c2)],_0x218aff),_0x25297c={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x582a1e(0x24f)],'width':_0x1b16df[_0x582a1e(0x1ed)][_0x582a1e(0x354)],'height':_0x1b16df[_0x582a1e(0x1ed)][_0x582a1e(0x396)],'left':_0x1b16df[_0x582a1e(0x1ed)]['left'],'top':_0x1b16df[_0x582a1e(0x1ed)]['top'],'flipX':_0x1b16df['worldRect'][_0x582a1e(0x445)]||![],'flipY':_0x1b16df[_0x582a1e(0x1ed)][_0x582a1e(0x681)]||![],'newAdjustValues':_0x3650a7[_0x582a1e(0x245)],'oldAdjustValues':_0x5eb84c,'oldRelation':_0x3f1f31,'newRelation':_0x1eb3af,'newLineType':_0x3650a7[_0x582a1e(0x5c1)],'oldLineType':_0x218aff};this[_0x582a1e(0x30d)]['executeCommand'](_univerjs_pro_sheets_shape[_0x582a1e(0x1c1)]['id'],_0x25297c);}[_0x3cbade(0x4f7)](_0x325151,_0x528766){const _0x5e6741=_0x3cbade,_0x54ca7f=this[_0x5e6741(0x51c)][_0x5e6741(0x68f)](),_0x3d676f=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x325151['worldPoints'],_0x54ca7f),_0x457262={'unitId':this[_0x5e6741(0x407)],'subUnitId':this[_0x5e6741(0x44d)],'shapeId':this[_0x5e6741(0x24f)],'width':_0x325151[_0x5e6741(0x1ed)][_0x5e6741(0x354)],'height':_0x325151[_0x5e6741(0x1ed)][_0x5e6741(0x396)],'left':_0x325151[_0x5e6741(0x1ed)][_0x5e6741(0x6d2)],'top':_0x325151[_0x5e6741(0x1ed)]['top'],'flipX':_0x325151[_0x5e6741(0x1ed)][_0x5e6741(0x445)]||![],'flipY':_0x325151['worldRect'][_0x5e6741(0x681)]||![],'angle':_0x325151[_0x5e6741(0x1ed)][_0x5e6741(0x3ee)]||0x0,'newAdjustValues':_0x3d676f[_0x5e6741(0x245)],'oldAdjustValues':_0x528766,'newLineType':_0x3d676f['lineType'],'oldLineType':_0x54ca7f};this['_commandService']['executeCommand'](_univerjs_pro_sheets_shape[_0x5e6741(0x40c)]['id'],_0x457262);}[_0x3cbade(0x26d)](_0x216cac,_0x3ee7bd,_0x4ccae0,_0x4aec5b,_0x1b2194){const _0x57c3be=_0x3cbade,_0x48f4bd=this[_0x57c3be(0x51c)][_0x57c3be(0x50f)]()[_0x57c3be(0x358)],_0x2db0c1={..._0x48f4bd},_0x20d8c1={'shapeId':_0x3ee7bd[_0x57c3be(0x190)],'cxnIndex':_0x3ee7bd['cxnIndex']};_0x4aec5b?(_0x2db0c1[_0x57c3be(0x30a)]=_0x20d8c1,_0x2db0c1['to']=_0x4ccae0):(_0x2db0c1[_0x57c3be(0x30a)]=_0x4ccae0,_0x2db0c1['to']=_0x20d8c1);const _0x3f90e9={'unitId':this[_0x57c3be(0x407)],'subUnitId':this[_0x57c3be(0x44d)],'connectorShapeId':this['_activeShapeId'],'width':_0x216cac[_0x57c3be(0x1ed)][_0x57c3be(0x354)],'height':_0x216cac[_0x57c3be(0x1ed)][_0x57c3be(0x396)],'left':_0x216cac[_0x57c3be(0x1ed)][_0x57c3be(0x6d2)],'top':_0x216cac[_0x57c3be(0x1ed)][_0x57c3be(0x523)],'flipX':_0x216cac[_0x57c3be(0x1ed)][_0x57c3be(0x445)]||![],'flipY':_0x216cac[_0x57c3be(0x1ed)]['flipY']||![],'oldAdjustValues':_0x1b2194,'newAdjustValues':_0x216cac['adjustValues'],'newLineType':_0x216cac[_0x57c3be(0x5c1)],'rotation':_0x216cac[_0x57c3be(0x5ba)],'oldRelation':_0x48f4bd,'newRelation':_0x2db0c1};this[_0x57c3be(0x30d)][_0x57c3be(0x522)](_univerjs_pro_sheets_shape[_0x57c3be(0x1c1)]['id'],_0x3f90e9);}[_0x3cbade(0x211)](_0x2df2dc,_0x5c5942,_0x35e64f,_0x16abdd){const _0x1a45ff=_0x3cbade,_0x1a8356=this[_0x1a45ff(0x51c)]['getShapeData']()[_0x1a45ff(0x358)],_0x4ced2d={};_0x35e64f?(_0x4ced2d['to']=_0x5c5942,_0x4ced2d['from']=void 0x0):(_0x4ced2d[_0x1a45ff(0x30a)]=_0x5c5942,_0x4ced2d['to']=void 0x0);const _0x5690f6={'unitId':this[_0x1a45ff(0x407)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1a45ff(0x24f)],'width':_0x2df2dc['worldRect']['width'],'height':_0x2df2dc[_0x1a45ff(0x1ed)][_0x1a45ff(0x396)],'left':_0x2df2dc[_0x1a45ff(0x1ed)]['left'],'top':_0x2df2dc[_0x1a45ff(0x1ed)][_0x1a45ff(0x523)],'flipX':_0x2df2dc[_0x1a45ff(0x1ed)][_0x1a45ff(0x445)]||![],'flipY':_0x2df2dc[_0x1a45ff(0x1ed)][_0x1a45ff(0x681)]||![],'oldAdjustValues':_0x16abdd,'newAdjustValues':_0x2df2dc[_0x1a45ff(0x245)],'newLineType':_0x2df2dc[_0x1a45ff(0x5c1)],'rotation':_0x2df2dc[_0x1a45ff(0x5ba)],'oldRelation':_0x1a8356,'newRelation':_0x4ced2d};this['_commandService'][_0x1a45ff(0x522)](_univerjs_pro_sheets_shape[_0x1a45ff(0x1c1)]['id'],_0x5690f6);}['_attachConnectorObjectEvent'](_0x5599eb,_0xe4a799,_0x3a81d2){const _0x3385e8=_0x3cbade;this[_0x3385e8(0x46e)]((0x0,_univerjs_core[_0x3385e8(0x61e)])(_0x5599eb['onPointerDown$']['subscribeEvent']((_0x2b6d21,_0x346530)=>{const _0x5d833e=_0x3385e8,_0x428d75=_0x5599eb[_0x5d833e(0x614)]();this[_0x5d833e(0x51c)]=this['_sheetsShapeService'][_0x5d833e(0x58c)](_0x428d75[_0x5d833e(0x444)],_0x428d75['subUnitId'],_0x428d75[_0x5d833e(0x291)]);if(!this[_0x5d833e(0x51c)])return;const _0x46e34b={};this[_0x5d833e(0x51c)][_0x5d833e(0x2e3)]()['forEach'](_0x19f66d=>{const _0x3e4a51=_0x5d833e,_0x5e43b2=this['_activeShapeModel'][_0x3e4a51(0x200)](_0x19f66d);if(_0x5e43b2!==void 0x0)_0x46e34b[_0x19f66d]=_0x5e43b2;});const _0x4c2b81=this[_0x5d833e(0x18f)]();if(!_0x4c2b81)return;this[_0x5d833e(0x262)]={..._0x4c2b81};const _0x427b31=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x5d833e(0x262)]),_0x230447=(0x0,_univerjs_drawing[_0x5d833e(0x564)])({'unitId':this[_0x5d833e(0x407)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5d833e(0x24f)]}),_0x137d0c=_0xe4a799['getObjectIncludeInGroup'](_0x230447);this[_0x5d833e(0x27d)]=!![],_0xe4a799['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController'][_0x5d833e(0x2fd)](_0xe4a799,this[_0x5d833e(0x407)],this[_0x5d833e(0x44d)],this[_0x5d833e(0x24f)]),this[_0x5d833e(0x3a8)]=null;const _0x5de922=this[_0x5d833e(0x51c)]['getConnectorLinePoints'](),_0xe7993c=_0x5de922[0x0],_0xfd4866=_0x5de922[_0x5de922[_0x5d833e(0x4ba)]-0x1],_0xee8d96=_0x3a81d2?_0x427b31[_0x5d833e(0x343)](_0xfd4866):_0x427b31[_0x5d833e(0x343)](_0xe7993c);this[_0x5d833e(0x518)]=_0xe4a799['onPointerMove$'][_0x5d833e(0x5a4)]((_0x54b498,_0x129f03)=>{const _0x106f1f=_0x5d833e;if(!this[_0x106f1f(0x27d)]||!this[_0x106f1f(0x51c)])return;!this[_0x106f1f(0x22d)]&&(this['_sheetShapeAdjustController'][_0x106f1f(0x1e1)](),this[_0x106f1f(0x51c)]['clearAdjustValue'](),this['_hasReset']=!![]);const _0x322b5e=this[_0x106f1f(0x1ff)](this[_0x106f1f(0x407)],this[_0x106f1f(0x44d)]),_0xa2cd95=this[_0x106f1f(0x489)](this[_0x106f1f(0x407)],this[_0x106f1f(0x44d)]),_0x87eee9={'x':_0x54b498['offsetX']/_0xa2cd95+_0x322b5e['x'],'y':_0x54b498[_0x106f1f(0x584)]/_0xa2cd95+_0x322b5e['y']},_0x2c441a=this[_0x106f1f(0x2c4)][_0x106f1f(0x654)](_0x87eee9);if(_0x2c441a){const {shapeId:_0x1f4497,unitId:_0x2f6765,subUnitId:_0xfdc145}=_0x2c441a;if(_0x1f4497&&_0x2f6765&&_0xfdc145){const _0x4f3be5=(0x0,_univerjs_drawing[_0x106f1f(0x564)])({'unitId':_0x2f6765,'subUnitId':_0xfdc145,'drawingId':_0x1f4497});_0x2c441a['angle']=(_0xe4a799[_0x106f1f(0x231)](_0x4f3be5)[_0x106f1f(0x3ee)]||0x0)+_0x2c441a[_0x106f1f(0x3ee)];}}this[_0x106f1f(0x3a8)]=_0x2c441a;const _0x4b8e86=_0x3a81d2?this[_0x106f1f(0x51c)]['getEndConnectInfo']():this[_0x106f1f(0x51c)]['getStartConnectInfo']();if(_0x4b8e86){this[_0x106f1f(0x551)](_0x4b8e86,_0x87eee9,_0x3a81d2,_0x137d0c,_0x5599eb);return;}this[_0x106f1f(0x1bb)](_0x87eee9,_0xee8d96,_0x3a81d2,_0x137d0c,_0x5599eb);}),this[_0x5d833e(0x57b)]=_0xe4a799[_0x5d833e(0x630)][_0x5d833e(0x5a4)]((_0x2bafb0,_0x464a09)=>{const _0x43e539=_0x5d833e;this[_0x43e539(0x5ce)](_0xe4a799,_0xee8d96,_0x2bafb0,_0x3a81d2,_0x46e34b);}),_0x346530['stopPropagation']();})));}[_0x3cbade(0x3a6)](_0x175481,_0x2344ee,_0x386e25){const _0x2e6ceb=_0x3cbade,_0x2fd9f5=this[_0x2e6ceb(0x1f4)][_0x2e6ceb(0x60d)](_0x175481,_0x2344ee,_0x386e25);if(!_0x2fd9f5||_0x2fd9f5['length']===0x0)return;const _0x4dfdaa=this['_renderManagerService'][_0x2e6ceb(0x412)](_0x175481);if(!_0x4dfdaa)return;const {scene:_0x434523}=_0x4dfdaa;for(const _0x59b43c of _0x2fd9f5){const _0x5db545=_0x59b43c[_0x2e6ceb(0x24b)],_0x2314f2=this[_0x2e6ceb(0x1f4)][_0x2e6ceb(0x58c)](_0x175481,_0x2344ee,_0x5db545);if(!_0x2314f2)continue;const _0x187ba3=_0x2314f2['getStartConnectInfo'](),_0x283750=_0x2314f2[_0x2e6ceb(0x469)](),_0x27f1b8=(_0x187ba3===null||_0x187ba3===void 0x0?void 0x0:_0x187ba3[_0x2e6ceb(0x190)])===_0x386e25,_0x5b210f=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x175481,'subUnitId':_0x2344ee,'drawingId':_0x5db545}),_0xd0e09f=_0x434523[_0x2e6ceb(0x231)](_0x5b210f);if(!_0xd0e09f)continue;const _0x5cb80a=this[_0x2e6ceb(0x648)][_0x2e6ceb(0x511)]({'unitId':_0x175481,'subUnitId':_0x2344ee,'drawingId':_0x5db545});if(!(_0x5cb80a===null||_0x5cb80a===void 0x0?void 0x0:_0x5cb80a['transform']))continue;if(_0x187ba3&&_0x283750)this[_0x2e6ceb(0x446)](_0x175481,_0x2344ee,_0x5db545,_0x2314f2,_0x187ba3,_0x283750,_0xd0e09f);else this[_0x2e6ceb(0x1ac)](_0x175481,_0x2344ee,_0x5db545,_0x2314f2,_0x27f1b8?_0x187ba3:_0x283750,_0x27f1b8,_0x5cb80a,_0xd0e09f);}}[_0x3cbade(0x446)](_0x3d9f97,_0x17f9b2,_0x4b2cbb,_0x5a94a1,_0x32b32f,_0x201b41,_0x5a9f7c){const _0x236820=_0x3cbade,_0x1acc90=this[_0x236820(0x407)],_0x283838=this[_0x236820(0x44d)];this[_0x236820(0x407)]=_0x3d9f97,this[_0x236820(0x44d)]=_0x17f9b2;const _0x538eff=this[_0x236820(0x6b6)](_0x32b32f),_0x100ed1=this['_getConnectPointInfo'](_0x201b41);this[_0x236820(0x407)]=_0x1acc90,this[_0x236820(0x44d)]=_0x283838;if(!_0x538eff||!_0x100ed1)return;const _0x6ab883=_0x5a94a1[_0x236820(0x68f)](),_0x6e3b58=(0x0,_univerjs_pro_engine_shape[_0x236820(0x404)])(_0x538eff,_0x100ed1,_0x6ab883);if(_0x6e3b58)_0x5a94a1[_0x236820(0x227)](_0x6e3b58);const _0x289a3c=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x6e3b58,_0x6ab883);if(_0x289a3c['lineType']!==_0x6ab883)_0x5a94a1[_0x236820(0x507)](_0x289a3c[_0x236820(0x5c1)]);_0x5a94a1[_0x236820(0x22f)]();for(const [_0x4a87c6,_0x3f6c43]of Object[_0x236820(0x1bf)](_0x289a3c['adjustValues']))_0x5a94a1['setAdjustValueByName'](_0x4a87c6,_0x3f6c43);_0x5a94a1['updateContext']({'width':_0x289a3c[_0x236820(0x1ed)]['width'],'height':_0x289a3c['worldRect'][_0x236820(0x396)]}),_0x5a9f7c['transformByState']({'flipX':_0x289a3c[_0x236820(0x1ed)][_0x236820(0x445)],'flipY':_0x289a3c[_0x236820(0x1ed)][_0x236820(0x681)],'left':_0x289a3c[_0x236820(0x1ed)][_0x236820(0x6d2)],'top':_0x289a3c[_0x236820(0x1ed)]['top'],'width':_0x289a3c['worldRect']['width'],'height':_0x289a3c['worldRect'][_0x236820(0x396)],'angle':_0x289a3c[_0x236820(0x5ba)]}),_0x5a94a1[_0x236820(0x41b)]();}[_0x3cbade(0x1ac)](_0xcb11df,_0x519ab6,_0x1ddf4e,_0x40789e,_0x6295ae,_0x42fab4,_0x4d09ff,_0x34fbe6){const _0x1d006d=_0x3cbade,_0x5ef279=this[_0x1d006d(0x407)],_0x5ab92c=this[_0x1d006d(0x44d)];this[_0x1d006d(0x407)]=_0xcb11df,this['_subUnitId']=_0x519ab6;const _0x59c421=this[_0x1d006d(0x6b6)](_0x6295ae);this[_0x1d006d(0x407)]=_0x5ef279,this['_subUnitId']=_0x5ab92c;if(!_0x59c421)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x4d09ff[_0x1d006d(0x277)],_0x50fa75=_0x40789e[_0x1d006d(0x3f6)]();if(_0x50fa75[_0x1d006d(0x4ba)]<0x2)return;const _0x4520e0=new _univerjs_pro_engine_shape[(_0x1d006d(0x238))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x1b1326=_0x42fab4?_0x50fa75[_0x50fa75['length']-0x1]:_0x50fa75[0x0],_0x564d14=_0x4520e0[_0x1d006d(0x343)](_0x1b1326),_0x5d63b8=_univerjs_pro_engine_shape[_0x1d006d(0x238)][_0x1d006d(0x4ea)](_0x564d14,_0x59c421['point'],!_0x42fab4);_0x34fbe6['transformByState']({'flipX':_0x5d63b8[_0x1d006d(0x1ed)]['flipX'],'flipY':_0x5d63b8[_0x1d006d(0x1ed)]['flipY'],'left':_0x5d63b8[_0x1d006d(0x1ed)][_0x1d006d(0x6d2)],'top':_0x5d63b8[_0x1d006d(0x1ed)][_0x1d006d(0x523)],'width':_0x5d63b8[_0x1d006d(0x1ed)][_0x1d006d(0x354)],'height':_0x5d63b8[_0x1d006d(0x1ed)]['height'],'angle':_0x5d63b8[_0x1d006d(0x1ed)][_0x1d006d(0x3ee)]}),_0x34fbe6[_0x1d006d(0x67d)](!![]);}[_0x3cbade(0x466)](){const _0x505369=_0x3cbade;if(this[_0x505369(0x58d)]['length']===0x0)return;this[_0x505369(0x58d)]['forEach'](_0x212aa3=>{const _0xff8565=_0x505369;_0x212aa3[_0xff8565(0x258)]();}),this['_connectorObjects']=[];}[_0x3cbade(0x376)](){const _0xe78b=_0x3cbade,_0x503931=this[_0xe78b(0x5a0)]['getCurrentTypeOfUnit$'](_univerjs_core[_0xe78b(0x1ae)][_0xe78b(0x394)]);this[_0xe78b(0x46e)](_0x503931[_0xe78b(0x6bc)]((0x0,rxjs[_0xe78b(0x592)])(_0x5cc4c1=>{const _0x409678=_0xe78b;if(!_0x5cc4c1)return rxjs['EMPTY'];return _0x5cc4c1[_0x409678(0x3b1)][_0x409678(0x6bc)]((0x0,rxjs['switchMap'])(_0x538b71=>{const _0x1df50f=_0x409678;if(!_0x538b71)return rxjs[_0x1df50f(0x5ea)];const _0x50430d=_0x5cc4c1[_0x1df50f(0x488)](),_0x11ccef=this['_renderManagerService']['getRenderById'](_0x50430d),_0x7696b=_0x11ccef===null||_0x11ccef===void 0x0?void 0x0:_0x11ccef[_0x1df50f(0x53c)];if(!_0x7696b)return rxjs[_0x1df50f(0x5ea)];return(0x0,rxjs['of'])(_0x7696b);}));}))['subscribe'](_0x5806be=>{const _0x4e70fd=_0xe78b,_0x50dccf=_0x5806be[_0x4e70fd(0x586)]();this[_0x4e70fd(0x46e)](_0x5806be[_0x4e70fd(0x4c5)]['subscribeEvent'](_0x4c4284=>{const _0x1b76a8=_0x4e70fd;if(this[_0x1b76a8(0x553)]&&this[_0x1b76a8(0x24f)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x4e70fd(0x46e)](_0x50dccf[_0x4e70fd(0x23b)]['subscribe'](_0x254eb2=>{const _0x3a7451=_0x4e70fd,{objects:_0x29b3a0}=_0x254eb2;this[_0x3a7451(0x466)]();if(_0x29b3a0!==null&&_0x29b3a0[_0x3a7451(0x3d4)]===0x1){if(_0x29b3a0[_0x3a7451(0x54e)]()[_0x3a7451(0x452)]()[_0x3a7451(0x325)]instanceof DrawingShape)this['_isDrawingShapePointDown']=!![];}})),this[_0x4e70fd(0x46e)](_0x50dccf[_0x4e70fd(0x5f6)][_0x4e70fd(0x61f)](_0x322a8d=>{const _0x9f93ed=_0x4e70fd;if(this[_0x9f93ed(0x553)])this[_0x9f93ed(0x466)]();})),this['disposeWithMe'](_0x5806be[_0x4e70fd(0x630)][_0x4e70fd(0x5a4)](()=>{const _0x1ec16b=_0x4e70fd;this[_0x1ec16b(0x553)]&&(this[_0x1ec16b(0x553)]=![],this['_addShapeConnectorHandlerObjects']());})),this[_0x4e70fd(0x46e)](_0x50dccf[_0x4e70fd(0x6e9)][_0x4e70fd(0x61f)](()=>{const _0x1ded54=_0x4e70fd;this[_0x1ded54(0x407)]&&this[_0x1ded54(0x44d)]&&this['_activeShapeId']&&(this['_drawingManagerService'][_0x1ded54(0x511)]({'unitId':this['_unitId'],'subUnitId':this[_0x1ded54(0x44d)],'drawingId':this[_0x1ded54(0x24f)]})&&(this[_0x1ded54(0x466)](),this[_0x1ded54(0x5ff)]()));}));}));}[_0x3cbade(0x46d)](){const _0x905fa4=_0x3cbade;this[_0x905fa4(0x46e)](this[_0x905fa4(0x648)][_0x905fa4(0x6bd)][_0x905fa4(0x61f)](_0x4d12a8=>{const _0x524c1b=_0x905fa4;if(_0x4d12a8[_0x524c1b(0x4ba)]===0x1){const _0x516031=_0x4d12a8[0x0];if(_0x516031[_0x524c1b(0x27c)]===_univerjs_core[_0x524c1b(0x625)][_0x524c1b(0x4a0)]){const _0x419493=this[_0x524c1b(0x1f4)][_0x524c1b(0x58c)](_0x516031[_0x524c1b(0x444)],_0x516031[_0x524c1b(0x3f1)],_0x516031[_0x524c1b(0x291)]);if(_0x419493&&(0x0,_univerjs_pro_engine_shape[_0x524c1b(0x5c0)])(_0x419493[_0x524c1b(0x68f)]())){this[_0x524c1b(0x24f)]=_0x516031[_0x524c1b(0x291)],this[_0x524c1b(0x407)]=_0x516031[_0x524c1b(0x444)],this[_0x524c1b(0x44d)]=_0x516031[_0x524c1b(0x3f1)],this[_0x524c1b(0x466)](),this[_0x524c1b(0x5ff)]();return;}}}this[_0x524c1b(0x24f)]=void 0x0,this[_0x524c1b(0x407)]=void 0x0,this[_0x524c1b(0x44d)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x905fa4(0x46e)](this[_0x905fa4(0x648)][_0x905fa4(0x3a7)][_0x905fa4(0x61f)](_0x1f6f79=>{const _0x5be0a9=_0x905fa4;if(_0x1f6f79['length']===0x1){var _0x3638ff;const _0x3dc43b=_0x1f6f79[0x0],_0x33d4c6=(_0x3638ff=this[_0x5be0a9(0x648)]['getDrawingByParam'](_0x3dc43b))===null||_0x3638ff===void 0x0?void 0x0:_0x3638ff['drawingType'];if(_0x33d4c6===_univerjs_core[_0x5be0a9(0x625)]['DRAWING_SHAPE']&&_0x3dc43b['drawingId']===this[_0x5be0a9(0x24f)])this['_clearShapeConnectorHandlerObjects'](),this[_0x5be0a9(0x5ff)]();else{if(!this[_0x5be0a9(0x24f)]&&_0x33d4c6===_univerjs_core['DrawingTypeEnum'][_0x5be0a9(0x4a0)])this[_0x5be0a9(0x3a6)](_0x3dc43b[_0x5be0a9(0x444)],_0x3dc43b['subUnitId'],_0x3dc43b[_0x5be0a9(0x291)]);}}})),this['disposeWithMe'](this[_0x905fa4(0x648)][_0x905fa4(0x5f3)][_0x905fa4(0x61f)](_0x590ed1=>{const _0x56b938=_0x905fa4;for(const _0x46317d of _0x590ed1){const {drawingId:_0x4c21e6}=_0x46317d;if(this[_0x56b938(0x24f)]===_0x4c21e6){this[_0x56b938(0x290)]();return;}}}));}[_0x3cbade(0x551)](_0x1d4656,_0x1c1b14,_0xcbff24,_0x4d5419,_0x2df555){const _0x5846f1=_0x3cbade;var _0x2076bf,_0x26ccb2;if(!this[_0x5846f1(0x51c)])return;const _0x50c730=this[_0x5846f1(0x6b6)](_0x1d4656);if(!_0x50c730)return;const _0x3b6e45=this['_currentConnectionTarget']?this[_0x5846f1(0x3a8)][_0x5846f1(0x2c7)]:_0x1c1b14,_0x5219d3=this[_0x5846f1(0x3a8)]?this[_0x5846f1(0x3a8)]['angle']:this[_0x5846f1(0x569)](_0x50c730[_0x5846f1(0x65d)],_0x3b6e45);let _0x5ce2cd;if(this[_0x5846f1(0x3a8)]){const _0x157e2e=this[_0x5846f1(0x648)][_0x5846f1(0x511)]({'unitId':this['_currentConnectionTarget']['unitId'],'subUnitId':this[_0x5846f1(0x3a8)][_0x5846f1(0x3f1)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x157e2e===null||_0x157e2e===void 0x0?void 0x0:_0x157e2e[_0x5846f1(0x277)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x580553}=_0x157e2e['transform'];_0x5ce2cd=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x580553||0x0);}else _0x5ce2cd={'left':_0x3b6e45['x'],'top':_0x3b6e45['y'],'width':0x0,'height':0x0};}else _0x5ce2cd={'left':_0x3b6e45['x'],'top':_0x3b6e45['y'],'width':0x0,'height':0x0};const _0xd81e26={'point':_0x3b6e45,'angle':_0x5219d3,'bounds':_0x5ce2cd},_0x242ddc=_0xcbff24?_0xd81e26:_0x50c730,_0x57193a=_0xcbff24?_0x50c730:_0xd81e26,_0x2ca725=this[_0x5846f1(0x51c)][_0x5846f1(0x68f)](),_0x231f11=(0x0,_univerjs_pro_engine_shape[_0x5846f1(0x404)])(_0x242ddc,_0x57193a,_0x2ca725);console['warn'](_0x242ddc,_0x57193a);if(_0x231f11)this[_0x5846f1(0x51c)][_0x5846f1(0x227)](_0x231f11);const _0x580acf=(0x0,_univerjs_pro_engine_shape[_0x5846f1(0x284)])(_0x231f11,_0x2ca725);if(_0x580acf[_0x5846f1(0x5c1)]!==_0x2ca725)this[_0x5846f1(0x51c)]['changeShapeType'](_0x580acf[_0x5846f1(0x5c1)]);for(const [_0x58d53f,_0x2d981c]of Object[_0x5846f1(0x1bf)](_0x580acf[_0x5846f1(0x245)]))this['_activeShapeModel'][_0x5846f1(0x276)](_0x58d53f,_0x2d981c);this['_activeShapeModel'][_0x5846f1(0x4dc)]({'width':_0x580acf[_0x5846f1(0x1ed)][_0x5846f1(0x354)],'height':_0x580acf['worldRect'][_0x5846f1(0x396)]}),_0x4d5419[_0x5846f1(0x2db)]({'flipX':_0x580acf['worldRect'][_0x5846f1(0x445)],'flipY':_0x580acf[_0x5846f1(0x1ed)][_0x5846f1(0x681)],'left':_0x580acf['worldRect'][_0x5846f1(0x6d2)],'top':_0x580acf[_0x5846f1(0x1ed)][_0x5846f1(0x523)],'width':_0x580acf[_0x5846f1(0x1ed)][_0x5846f1(0x354)],'height':_0x580acf['worldRect'][_0x5846f1(0x396)],'angle':_0x580acf[_0x5846f1(0x5ba)]}),_0x4d5419['makeDirty'](!![]);const _0x35fcfa=(_0x2076bf=(_0x26ccb2=this[_0x5846f1(0x3a8)])===null||_0x26ccb2===void 0x0?void 0x0:_0x26ccb2[_0x5846f1(0x2c7)])!==null&&_0x2076bf!==void 0x0?_0x2076bf:_0x1c1b14;_0x2df555['transformByState']({'left':_0x35fcfa['x']-_univerjs_pro_engine_shape[_0x5846f1(0x46a)]['cxnPointRadius'],'top':_0x35fcfa['y']-_univerjs_pro_engine_shape[_0x5846f1(0x46a)][_0x5846f1(0x664)]});}[_0x3cbade(0x1bb)](_0x28f925,_0x33b422,_0x2db3e2,_0x4a61a8,_0x114405){const _0x31dbbc=_0x3cbade;var _0x3f3e8e,_0xaf6cac,_0x4eda6f,_0x600dbf;const _0x14393d=(_0x3f3e8e=(_0xaf6cac=this[_0x31dbbc(0x3a8)])===null||_0xaf6cac===void 0x0?void 0x0:_0xaf6cac[_0x31dbbc(0x2c7)])!==null&&_0x3f3e8e!==void 0x0?_0x3f3e8e:_0x28f925,_0x2708f9=_univerjs_pro_engine_shape[_0x31dbbc(0x238)][_0x31dbbc(0x4ea)](_0x33b422,_0x14393d,_0x2db3e2);_0x4a61a8[_0x31dbbc(0x2db)]({'flipX':_0x2708f9[_0x31dbbc(0x1ed)][_0x31dbbc(0x445)],'flipY':_0x2708f9[_0x31dbbc(0x1ed)][_0x31dbbc(0x681)],'left':_0x2708f9['worldRect'][_0x31dbbc(0x6d2)],'top':_0x2708f9[_0x31dbbc(0x1ed)][_0x31dbbc(0x523)],'width':_0x2708f9['worldRect']['width'],'height':_0x2708f9[_0x31dbbc(0x1ed)][_0x31dbbc(0x396)],'angle':_0x2708f9['worldRect'][_0x31dbbc(0x3ee)]});const _0x594879=(_0x4eda6f=(_0x600dbf=this['_currentConnectionTarget'])===null||_0x600dbf===void 0x0?void 0x0:_0x600dbf[_0x31dbbc(0x2c7)])!==null&&_0x4eda6f!==void 0x0?_0x4eda6f:_0x28f925;_0x114405['transformByState']({'left':_0x594879['x']-_univerjs_pro_engine_shape[_0x31dbbc(0x46a)][_0x31dbbc(0x664)],'top':_0x594879['y']-_univerjs_pro_engine_shape[_0x31dbbc(0x46a)][_0x31dbbc(0x664)]});}['_getConnectPointInfo'](_0x5d5550){const _0x3ce53c=_0x3cbade;if(!this[_0x3ce53c(0x407)]||!this['_subUnitId'])return null;const {shapeId:_0x52bc69,cxnIndex:_0x5c6a4b}=_0x5d5550,_0x5862e4=this[_0x3ce53c(0x1f4)][_0x3ce53c(0x58c)](this[_0x3ce53c(0x407)],this[_0x3ce53c(0x44d)],_0x52bc69);if(!_0x5862e4)return null;const _0x446076=this[_0x3ce53c(0x648)][_0x3ce53c(0x511)]({'unitId':this[_0x3ce53c(0x407)],'subUnitId':this[_0x3ce53c(0x44d)],'drawingId':_0x52bc69});if(!(_0x446076===null||_0x446076===void 0x0?void 0x0:_0x446076[_0x3ce53c(0x277)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x51d1bd}=_0x446076['transform'];_0x5862e4[_0x3ce53c(0x4dc)]({'width':width,'height':height});const _0x47d36d=_0x5862e4[_0x3ce53c(0x535)]()[_0x3ce53c(0x6d4)](_0x56b58e=>_0x56b58e[_0x3ce53c(0x5dc)]===_0x5c6a4b);if(!_0x47d36d)return null;let _0x3d3440=flipX?width-_0x47d36d['x']:_0x47d36d['x'],_0x3a3d2b=flipY?height-_0x47d36d['y']:_0x47d36d['y'];if(_0x51d1bd!==0x0&&_0x51d1bd!==void 0x0&&_0x51d1bd!==null){const _0x4adc48=_0x51d1bd*Math['PI']/0xb4,_0x367286=Math[_0x3ce53c(0x5f9)](_0x4adc48),_0x1df10f=Math['sin'](_0x4adc48),_0x97c8ac=width/0x2,_0x3e63c0=height/0x2,_0x438be4=_0x3d3440-_0x97c8ac,_0x158c82=_0x3a3d2b-_0x3e63c0;_0x3d3440=_0x97c8ac+_0x438be4*_0x367286-_0x158c82*_0x1df10f,_0x3a3d2b=_0x3e63c0+_0x438be4*_0x1df10f+_0x158c82*_0x367286;}_0x3d3440+=left,_0x3a3d2b+=top;let _0x232299=_0x47d36d[_0x3ce53c(0x350)]/0xea60;if(flipX)_0x232299=0xb4-_0x232299;if(flipY)_0x232299=-_0x232299;_0x232299+=_0x51d1bd||0x0,_0x232299=(_0x232299%0x168+0x168)%0x168;const _0x383c9f=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x51d1bd||0x0);return{'point':{'x':_0x3d3440,'y':_0x3a3d2b},'angle':_0x232299,'bounds':_0x383c9f};}[_0x3cbade(0x569)](_0x46d809,_0x3af890){const _0x14fde2=_0x3cbade,_0x4e4ae8=_0x3af890['x']-_0x46d809['x'],_0x89d77=_0x3af890['y']-_0x46d809['y'];if(Math[_0x14fde2(0x5c6)](_0x4e4ae8)>=Math[_0x14fde2(0x5c6)](_0x89d77))return _0x4e4ae8>=0x0?0xb4:0x0;else return _0x89d77>=0x0?0x10e:0x5a;}['_reset'](){const _0x19b8a4=_0x3cbade;this[_0x19b8a4(0x24f)]=void 0x0,this[_0x19b8a4(0x407)]=void 0x0,this[_0x19b8a4(0x44d)]=void 0x0,this[_0x19b8a4(0x466)]();}[_0x3cbade(0x258)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core['ICommandService']),__decorateParam(0x2,_univerjs_engine_render[_0x3cbade(0x2fa)]),__decorateParam(0x3,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x3cbade(0x39e)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3cbade(0x319)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core['Inject'])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x3cbade(0x224)]{constructor(_0x2d15ef,_0x505e66,_0x3a99a9){const _0x5af1a0=_0x3cbade;super(),this[_0x5af1a0(0x30d)]=_0x2d15ef,this[_0x5af1a0(0x3e0)]=_0x505e66,this[_0x5af1a0(0x341)]=_0x3a99a9,this[_0x5af1a0(0x5b7)]();}[_0x3cbade(0x5b7)](){const _0x527ab5=_0x3cbade;this[_0x527ab5(0x46e)](this[_0x527ab5(0x30d)]['beforeCommandExecuted'](_0x2a8118=>{const _0x44e2da=_0x527ab5;let _0x5aec02,_0x5072da;if(_0x2a8118['id']===_univerjs_pro_sheets_shape[_0x44e2da(0x226)]['id']||_0x2a8118['id']===_univerjs_pro_sheets_shape[_0x44e2da(0x34a)]['id']||_0x2a8118['id']===_univerjs_pro_sheets_shape[_0x44e2da(0x1c1)]['id']){const _0x5c84ba=_0x2a8118[_0x44e2da(0x250)];_0x5aec02=_0x5c84ba[_0x44e2da(0x444)],_0x5072da=_0x5c84ba[_0x44e2da(0x3f1)];}if(!_0x5aec02||!_0x5072da)return;if(!this[_0x44e2da(0x341)]['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x44e2da(0x3a4)]],'worksheetTypes':[_univerjs_sheets[_0x44e2da(0x1fc)]]},_0x5aec02,_0x5072da))this['_sheetPermissionCheckController'][_0x44e2da(0x1d1)](this[_0x44e2da(0x3e0)]['t']('permission.dialog.editErr'));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_core[_0x3cbade(0x447)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_core[_0x3cbade(0x2bb)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3cbade(0x319)])(_univerjs_sheets[_0x3cbade(0x543)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x327bdb){const _0x3fb59b=_0x3cbade,{containerWidth:_0x587746,containerHeight:_0x1d008b,scaleX:_0x3254e0,scaleY:_0x2803ce}=_0x327bdb,_0x1816a0=_0x3254e0||0x1,_0x2a5d24=_0x2803ce||0x1,_0x3d0ce4=(0x0,_univerjs_ui[_0x3fb59b(0x287)])(ShapeTextEditingService),_0xe49ec=(0x0,_univerjs_ui['useDependency'])(_univerjs_docs_ui[_0x3fb59b(0x1f7)]),_0x4bcacf=(0x0,_univerjs_ui[_0x3fb59b(0x287)])(_univerjs_engine_render[_0x3fb59b(0x2fa)]),_0x47b739=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x3fb59b(0x3ea)]),_0x542398=(0x0,_univerjs_ui[_0x3fb59b(0x287)])(_univerjs_drawing[_0x3fb59b(0x3a9)]),_0x58c518=(0x0,_univerjs_ui['useDependency'])(_univerjs_pro_sheets_shape[_0x3fb59b(0x39e)]),_0x5f596b=(0x0,_univerjs_ui[_0x3fb59b(0x287)])(_univerjs_core[_0x3fb59b(0x447)]),_0x2d5a33=(0x0,_univerjs_ui['useObservable'])(_0x3d0ce4[_0x3fb59b(0x2cd)]),_0x3aff7a=(0x0,_univerjs_ui[_0x3fb59b(0x364)])(_0x3d0ce4['onSavingEditorData$']),_0x587186=(0x0,react[_0x3fb59b(0x5d9)])(null),_0x23db50=(0x0,react[_0x3fb59b(0x5d9)])(null),_0x4d16bb=(0x0,react[_0x3fb59b(0x5d9)])(null),_0x321561=(0x0,react[_0x3fb59b(0x5d9)])(null),_0x5c1310=(0x0,react[_0x3fb59b(0x5d9)])(null),_0x3ca038=(0x0,react[_0x3fb59b(0x5d9)])(null),[_0x28a61a,_0x2c3e80]=(0x0,react['useState'])({'editorHeight':_0x1d008b,'marginTop':0x0,'useAbsolutePosition':![]}),_0x2d6011=(0x0,react[_0x3fb59b(0x6d8)])(_0xb42431=>{queueMicrotask(()=>{_0x2c3e80(_0xb42431);});},[]),_0x2d0bca=(0x0,react[_0x3fb59b(0x6d8)])(()=>{const _0xed582=_0x3fb59b;return _0x47b739[_0xed582(0x2f3)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core[_0xed582(0x1ae)]['UNIVER_DOC']);},[_0x47b739]),_0x5f349f=(0x0,react[_0x3fb59b(0x6d8)])(()=>{const _0xc8a79a=_0x3fb59b;var _0x18313d;const _0x5b5c4d=_0x1816a0,_0x12daa5=_0x2a5d24;if(!_0x2d5a33)return{'scaleAdjust':0x1,'renderScaleX':_0x5b5c4d,'renderScaleY':_0x12daa5};const _0x1761fa=_0x4bcacf[_0xc8a79a(0x412)](_0x2d5a33[_0xc8a79a(0x444)]),_0x28d4e3=_0x1761fa===null||_0x1761fa===void 0x0?void 0x0:_0x1761fa[_0xc8a79a(0x53c)][_0xc8a79a(0x2e8)](),_0x39b302=_0x1761fa===null||_0x1761fa===void 0x0?void 0x0:_0x1761fa[_0xc8a79a(0x1e9)][_0xc8a79a(0x556)](),_0x2794db=_0x39b302?Number['parseFloat'](_0x39b302['style']['width']||''):0x0,_0x5158b0=(_0x18313d=_0x39b302===null||_0x39b302===void 0x0?void 0x0:_0x39b302[_0xc8a79a(0x4de)]()['width'])!==null&&_0x18313d!==void 0x0?_0x18313d:0x0,_0x323f64=_0x2794db>0x0&&_0x5158b0>0x0?_0x5158b0/_0x2794db:0x1;return{'scaleAdjust':Number[_0xc8a79a(0x3ec)](_0x323f64)&&_0x323f64>0x0?_0x323f64:0x1,'renderScaleX':(_0x28d4e3===null||_0x28d4e3===void 0x0?void 0x0:_0x28d4e3[_0xc8a79a(0x520)])||_0x5b5c4d,'renderScaleY':(_0x28d4e3===null||_0x28d4e3===void 0x0?void 0x0:_0x28d4e3['scaleY'])||_0x12daa5};},[_0x1816a0,_0x2a5d24,_0x2d5a33,_0x4bcacf]),_0x4ccbf2=(0x0,react[_0x3fb59b(0x6d8)])(()=>{const _0x4544e7=_0x3fb59b;if(!_0x2d5a33)return{'left':0x0,'top':0x0,'width':_0x587746/_0x1816a0,'height':_0x1d008b/_0x2a5d24};const {unitId:_0x176dae,subUnitId:_0x109537,shapeId:_0x353e0b}=_0x2d5a33,_0x1901a1=_0x58c518[_0x4544e7(0x58c)](_0x176dae,_0x109537,_0x353e0b);if(!_0x1901a1)return{'left':0x0,'top':0x0,'width':_0x587746/_0x1816a0,'height':_0x1d008b/_0x2a5d24};const _0x3c3d95={'left':0x0,'top':0x0,'width':_0x587746/_0x1816a0,'height':_0x1d008b/_0x2a5d24};return _0x1901a1['getShapeTextRect'](_0x3c3d95);},[_0x2d5a33,_0x587746,_0x1d008b,_0x1816a0,_0x2a5d24,_0x58c518]),_0x42a6c4=(0x0,react[_0x3fb59b(0x6d8)])(()=>{const _0xbed931=_0x3fb59b;if(!_0x2d5a33)return null;const {unitId:_0x3d070f,subUnitId:_0x196044,shapeId:_0x29568c}=_0x2d5a33,_0x2c0bcb=_0x58c518[_0xbed931(0x58c)](_0x3d070f,_0x196044,_0x29568c);if(!_0x2c0bcb)return null;const _0x1de8b9=_0x2c0bcb['getShapeTextData']();if(!_0x1de8b9)return null;const _0xf53023={'unitId':_0x3d070f,'subUnitId':_0x196044,'drawingId':_0x29568c},_0x42f841=_0x542398[_0xbed931(0x511)](_0xf53023);let _0x3573f4={'angle':0x0,'flipX':![],'flipY':![]};if(_0x42f841&&_0x42f841['transform'])_0x3573f4=_0x42f841['transform'];const _0x4deb48={'left':0x0,'top':0x0,'width':_0x587746/_0x1816a0,'height':_0x1d008b/_0x2a5d24},_0x2c0ee2=_0x2c0bcb[_0xbed931(0x537)](_0x4deb48);let _0x543c44,_0x49f376=_univerjs_core[_0xbed931(0x37e)][_0xbed931(0x344)],_0x43141b=_univerjs_core['HorizontalAlign'][_0xbed931(0x58b)];if(_0xbed931(0x2aa)in _0x1de8b9&&_0x1de8b9['dataModel']){var _0x29ef84,_0x4b36c0;const _0x39fd49=_0x1de8b9[_0xbed931(0x2aa)];if(_0x39fd49===null||_0x39fd49===void 0x0?void 0x0:_0x39fd49['doc'])_0x543c44=_0x39fd49['doc'];_0x49f376=(_0x29ef84=_0x39fd49===null||_0x39fd49===void 0x0?void 0x0:_0x39fd49['va'])!==null&&_0x29ef84!==void 0x0?_0x29ef84:_univerjs_core[_0xbed931(0x37e)][_0xbed931(0x344)],_0x43141b=(_0x4b36c0=_0x39fd49===null||_0x39fd49===void 0x0?void 0x0:_0x39fd49['ha'])!==null&&_0x4b36c0!==void 0x0?_0x4b36c0:_univerjs_core[_0xbed931(0x193)][_0xbed931(0x58b)];}return{'doc':_0x543c44,'verticalAlign':_0x49f376,'horizontalAlign':_0x43141b,'textRect':_0x2c0ee2,'transform':_0x3573f4,'isHorizontal':_0x1de8b9[_0xbed931(0x3e4)]};},[_0x2d5a33,_0x58c518,_0x542398,_0x587746,_0x1d008b,_0x1816a0,_0x2a5d24]),_0x37bca3=(0x0,react[_0x3fb59b(0x5c5)])(()=>{const _0x4a3d98=_0x3fb59b,_0x5ce4ec=_0x42a6c4();if(_0x5ce4ec===null||_0x5ce4ec===void 0x0?void 0x0:_0x5ce4ec[_0x4a3d98(0x2dd)])return prepareShapeTextDocumentData(_0x5ce4ec[_0x4a3d98(0x2dd)],{'isHorizontal':!![],'textRect':_0x5ce4ec['textRect'],'verticalAlign':_0x5ce4ec[_0x4a3d98(0x60a)],'horizontalAlign':_0x5ce4ec[_0x4a3d98(0x43c)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x587746/_0x1816a0,'height':Infinity}}};},[_0x42a6c4,_0x587746,_0x1816a0]),_0x309ab6=(0x0,_univerjs_docs_ui[_0x3fb59b(0x66f)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x37bca3,'container':_0x23db50,'autoFocus':![],'isSingle':![]}),_0xadf629=(0x0,_univerjs_docs_ui[_0x3fb59b(0x593)])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x3fb59b(0x1ef)])(_0xadf629,{'keyCodes':[{'keyCode':_univerjs_ui[_0x3fb59b(0x4a1)]['ENTER']}],'handler':()=>{const _0x482b48=_0x3fb59b;_0x5f596b[_0x482b48(0x522)](_univerjs_docs_ui[_0x482b48(0x578)]['id']);}},_0x309ab6),(0x0,_univerjs_docs_ui['useLeftAndRightArrow'])(_0xadf629,![],_0x309ab6);const _0x4dfbe7=(0x0,react['useCallback'])((_0x2e32a9=!![])=>{const _0x4f13d8=_0x3fb59b;var _0x12aa7f,_0x4e3777,_0x1a7265;if(!_0x309ab6)return;const _0x5def50=_0x309ab6['getSelectionRanges']()[_0x4f13d8(0x6d4)](_0x1665ab=>_0x1665ab[_0x4f13d8(0x4b6)]),_0x2aa20a=((_0x12aa7f=(_0x4e3777=_0x309ab6[_0x4f13d8(0x3b0)]()[_0x4f13d8(0x434)])===null||_0x4e3777===void 0x0?void 0x0:_0x4e3777['dataStream'][_0x4f13d8(0x4ba)])!==null&&_0x12aa7f!==void 0x0?_0x12aa7f:0x2)-0x2,_0x18d49f=(_0x1a7265=_0x5def50===null||_0x5def50===void 0x0?void 0x0:_0x5def50[_0x4f13d8(0x6ec)])!==null&&_0x1a7265!==void 0x0?_0x1a7265:_0x2e32a9?_0x2aa20a:null;if(_0x18d49f===null)return;_0x309ab6[_0x4f13d8(0x1b8)]([{'startOffset':_0x18d49f,'endOffset':_0x18d49f}],![]);},[_0x309ab6]),_0x243dc0=(0x0,react[_0x3fb59b(0x6d8)])(()=>{const _0x33394f=_0x3fb59b;_0x5c1310['current']!==null&&(cancelAnimationFrame(_0x5c1310[_0x33394f(0x1cf)]),_0x5c1310[_0x33394f(0x1cf)]=null),_0x3ca038[_0x33394f(0x1cf)]!==null&&(window[_0x33394f(0x66c)](_0x3ca038['current']),_0x3ca038[_0x33394f(0x1cf)]=null);},[]),_0x197d6f=(0x0,react[_0x3fb59b(0x6d8)])(()=>{const _0x906646=_0x3fb59b;var _0x13104d,_0x48d629,_0x306922;if(!_0x309ab6)return;const _0x364d08=_0x4bcacf[_0x906646(0x412)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x59c58a=_0x364d08===null||_0x364d08===void 0x0?void 0x0:_0x364d08[_0x906646(0x4ce)](_univerjs_docs[_0x906646(0x29a)]);if(!_0x59c58a)return;const _0x3f9262=_0x59c58a[_0x906646(0x41e)](),_0xf40a74=_0x2d0bca(),{renderScaleX:_0x57aad7,renderScaleY:_0x4fede5,scaleAdjust:_0x545a2b}=_0x5f349f(),_0x570d6a=_0x42a6c4(),_0x55ec5d=(_0x13104d=_0x570d6a===null||_0x570d6a===void 0x0?void 0x0:_0x570d6a[_0x906646(0x60a)])!==null&&_0x13104d!==void 0x0?_0x13104d:_univerjs_core[_0x906646(0x37e)][_0x906646(0x344)],_0x5a3097=(_0x48d629=_0x570d6a===null||_0x570d6a===void 0x0?void 0x0:_0x570d6a[_0x906646(0x43c)])!==null&&_0x48d629!==void 0x0?_0x48d629:_univerjs_core[_0x906646(0x193)][_0x906646(0x58b)],_0x50a997=(_0x306922=_0x4ccbf2())!==null&&_0x306922!==void 0x0?_0x306922:{'left':0x0,'top':0x0,'width':_0x587746/_0x1816a0,'height':_0x1d008b/_0x2a5d24};_0xf40a74&&(_0xf40a74['setZoomRatio'](Math['max'](_0x57aad7,_0x4fede5)),_0xf40a74[_0x906646(0x377)]({'pageSize':{'width':_0x50a997['width'],'height':Infinity}}),_0xf40a74[_0x906646(0x223)]({'verticalAlign':_0x55ec5d,'horizontalAlign':_0x5a3097,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x906646(0x4cf)][_0x906646(0x68c)]}));_0x3f9262['calculate']();const {actualHeight:_0xcd71f4}=_0x3f9262[_0x906646(0x65a)](),_0x494a34=_0x50a997['height'];let _0x1c6a97=_0x494a34,_0x489df6=0x0;if(_0xcd71f4<=_0x494a34){if(_0x55ec5d===_univerjs_core[_0x906646(0x37e)][_0x906646(0x60e)])_0x489df6=(_0x494a34-_0xcd71f4)/0x2;else{if(_0x55ec5d===_univerjs_core[_0x906646(0x37e)][_0x906646(0x2fe)])_0x489df6=_0x494a34-_0xcd71f4;}_0x1c6a97=_0x494a34,_0x2d6011({'editorHeight':_0x50a997['height']*_0x2a5d24,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x59cb9d=0x0;if(_0x55ec5d===_univerjs_core[_0x906646(0x37e)][_0x906646(0x60e)])_0x59cb9d=(_0x494a34-_0xcd71f4)/0x2;else{if(_0x55ec5d===_univerjs_core[_0x906646(0x37e)][_0x906646(0x2fe)])_0x59cb9d=_0x494a34-_0xcd71f4;}_0x489df6=0x0,_0x2d6011({'editorHeight':_0xcd71f4*_0x2a5d24,'marginTop':_0x59cb9d*_0x2a5d24,'useAbsolutePosition':!![]}),_0x1c6a97=_0xcd71f4;}_0xf40a74&&(_0xf40a74[_0x906646(0x377)]({'pageSize':{'width':_0x50a997[_0x906646(0x354)],'height':_0x1c6a97}}),_0xf40a74[_0x906646(0x6e7)]({'t':_0x489df6}),_0x3f9262['calculate']());if(_0x364d08){const _0x24d843=_0x50a997[_0x906646(0x354)]*_0x1816a0,_0x3fb4c0=_0x1c6a97*_0x2a5d24;_0x364d08[_0x906646(0x53c)][_0x906646(0x2db)]({'width':_0x24d843*_0x545a2b/_0x57aad7,'height':_0x3fb4c0*_0x545a2b/_0x4fede5,'scaleX':_0x57aad7*_0x545a2b,'scaleY':_0x4fede5*_0x545a2b});if(_0x364d08[_0x906646(0x4cd)])_0x364d08[_0x906646(0x4cd)][_0x906646(0x4fb)](_0x24d843*_0x545a2b/_0x57aad7,_0x3fb4c0*_0x545a2b/_0x4fede5);}},[_0x309ab6,_0x4bcacf,_0x2d0bca,_0x5f349f,_0x42a6c4,_0x4ccbf2,_0x587746,_0x1d008b,_0x1816a0,_0x2a5d24,_0x2d6011]),_0x11277a=(0x0,react[_0x3fb59b(0x6d8)])((_0x2c1a89=![])=>{const _0x280351=_0x3fb59b;_0x243dc0(),_0x5c1310[_0x280351(0x1cf)]=requestAnimationFrame(()=>{const _0x459c71=_0x280351;_0x197d6f();if(_0x2c1a89)_0x4dfbe7(![]);_0x5c1310[_0x459c71(0x1cf)]=null,_0x3ca038['current']=window[_0x459c71(0x490)](()=>{_0x197d6f();if(_0x2c1a89)_0x4dfbe7(![]);_0x3ca038['current']=null;},0x14);});},[_0x197d6f,_0x243dc0,_0x4dfbe7]);(0x0,react[_0x3fb59b(0x6cf)])(()=>{const _0x54fd3a=_0x3fb59b;if(!_0x309ab6||!_0x2d5a33)return;const {shapeId:_0x5528fd,unitId:_0xc44ffa,subUnitId:_0x94cf83}=_0x2d5a33;if(_0x3aff7a){var _0xf4b699,_0x5e5f94,_0x3285bf,_0x44b60f;const _0x57e1b0=stripShapeTextDocumentLayout(_0x309ab6['getDocumentData']()),_0x51ab2b=_0x42a6c4(),_0x43c273={'va':(_0xf4b699=_0x51ab2b===null||_0x51ab2b===void 0x0?void 0x0:_0x51ab2b[_0x54fd3a(0x60a)])!==null&&_0xf4b699!==void 0x0?_0xf4b699:_univerjs_core[_0x54fd3a(0x37e)][_0x54fd3a(0x344)],'ha':(_0x5e5f94=_0x51ab2b===null||_0x51ab2b===void 0x0?void 0x0:_0x51ab2b[_0x54fd3a(0x43c)])!==null&&_0x5e5f94!==void 0x0?_0x5e5f94:_univerjs_core[_0x54fd3a(0x193)][_0x54fd3a(0x58b)],'doc':_0x57e1b0};_0x5f596b[_0x54fd3a(0x522)](UpdateShapeDataCommand['id'],{'unitId':_0xc44ffa,'subUnitId':_0x94cf83,'shapeId':_0x5528fd,'shapeData':{'shapeText':{'isHorizontal':(_0x3285bf=_0x51ab2b===null||_0x51ab2b===void 0x0?void 0x0:_0x51ab2b[_0x54fd3a(0x3e4)])!==null&&_0x3285bf!==void 0x0?_0x3285bf:!![],'dataModel':_0x43c273}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x44b60f=_0x51ab2b===null||_0x51ab2b===void 0x0?void 0x0:_0x51ab2b['isHorizontal'])!==null&&_0x44b60f!==void 0x0?_0x44b60f:!![],'dataModel':_0x4d16bb[_0x54fd3a(0x1cf)]}}}});return;}const _0x43a6ab=_0x42a6c4();if(_0x43a6ab===null||_0x43a6ab===void 0x0?void 0x0:_0x43a6ab[_0x54fd3a(0x2dd)]){_0x4d16bb[_0x54fd3a(0x1cf)]={'va':_0x43a6ab[_0x54fd3a(0x60a)],'ha':_0x43a6ab['horizontalAlign'],'doc':_univerjs_core[_0x54fd3a(0x320)][_0x54fd3a(0x202)](_0x43a6ab[_0x54fd3a(0x2dd)])};const _0x21e71e=prepareShapeTextDocumentData(_0x43a6ab['doc'],{'isHorizontal':!![],'textRect':_0x43a6ab[_0x54fd3a(0x5ca)],'verticalAlign':_0x43a6ab[_0x54fd3a(0x60a)],'horizontalAlign':_0x43a6ab['horizontalAlign']});return _0x309ab6[_0x54fd3a(0x19e)](_0x21e71e,null),()=>{const _0x11ba66=_0x54fd3a;var _0x5a177e,_0x8b5b0b,_0x326ecc,_0x7dbc73;const _0x56c801=stripShapeTextDocumentLayout(_0x309ab6[_0x11ba66(0x3b0)]()),_0x14644e=_0x42a6c4(),_0x30c086={'va':(_0x5a177e=_0x14644e===null||_0x14644e===void 0x0?void 0x0:_0x14644e['verticalAlign'])!==null&&_0x5a177e!==void 0x0?_0x5a177e:_univerjs_core[_0x11ba66(0x37e)][_0x11ba66(0x344)],'ha':(_0x8b5b0b=_0x14644e===null||_0x14644e===void 0x0?void 0x0:_0x14644e['horizontalAlign'])!==null&&_0x8b5b0b!==void 0x0?_0x8b5b0b:_univerjs_core[_0x11ba66(0x193)][_0x11ba66(0x58b)],'doc':_0x56c801};_0x5f596b['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0xc44ffa,'subUnitId':_0x94cf83,'shapeId':_0x5528fd,'shapeData':{'shapeText':{'isHorizontal':(_0x326ecc=_0x14644e===null||_0x14644e===void 0x0?void 0x0:_0x14644e['isHorizontal'])!==null&&_0x326ecc!==void 0x0?_0x326ecc:!![],'dataModel':_0x30c086}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x7dbc73=_0x14644e===null||_0x14644e===void 0x0?void 0x0:_0x14644e[_0x11ba66(0x3e4)])!==null&&_0x7dbc73!==void 0x0?_0x7dbc73:!![],'dataModel':_0x4d16bb[_0x11ba66(0x1cf)]}}}});};}else _0x309ab6[_0x54fd3a(0x19e)](_0x37bca3,null);},[_0x309ab6,_0x2d5a33,_0x3aff7a]),(0x0,react[_0x3fb59b(0x6cf)])(()=>{const _0x43c6be=_0x3fb59b;if(!_0x309ab6||!_0x2d5a33)return;return _0xe49ec['blur'](!![]),_0x197d6f(),_0x321561[_0x43c6be(0x1cf)]=requestAnimationFrame(()=>{const _0x4e994e=_0x43c6be;_0xe49ec[_0x4e994e(0x4f0)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x4dfbe7(),_0x11277a(),_0x321561[_0x4e994e(0x1cf)]=null;}),()=>{const _0x5b5b57=_0x43c6be;_0x321561[_0x5b5b57(0x1cf)]!==null&&(cancelAnimationFrame(_0x321561[_0x5b5b57(0x1cf)]),_0x321561[_0x5b5b57(0x1cf)]=null),_0x243dc0(),_0xe49ec[_0x5b5b57(0x242)](!![]);};},[_0x309ab6,_0x2d5a33,_0xe49ec,_0x197d6f,_0x4dfbe7,_0x11277a,_0x243dc0]),(0x0,react[_0x3fb59b(0x6cf)])(()=>{const _0x1c51f4=_0x3fb59b;if(!_0x309ab6)return;const _0x49c1c3=_0x5f596b[_0x1c51f4(0x2bd)](_0x510db0=>{const _0x522bdb=_0x1c51f4;if(_0x510db0['id']===_univerjs_docs[_0x522bdb(0x5f2)]['id']){if(_0x510db0[_0x522bdb(0x250)][_0x522bdb(0x444)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x2d5a33){if(!_0x2d5a33[_0x522bdb(0x634)])_0x3d0ce4[_0x522bdb(0x400)]({..._0x2d5a33,'visible':!![]});else _0x197d6f();}}}if(_0x510db0['id']===SetShapeTextVerticalAlignCommand['id'])_0x11277a(!![]);});return()=>{const _0x2b45c0=_0x1c51f4;_0x49c1c3[_0x2b45c0(0x258)]();};},[_0x309ab6,_0x197d6f,_0x2d5a33,_0x11277a,_0x3d0ce4]),(0x0,react[_0x3fb59b(0x6cf)])(()=>{return _0x197d6f(),_0x11277a(),()=>{_0x243dc0();};},[_0x197d6f,_0x11277a,_0x243dc0]);const _0x51c8df=(0x0,react['useMemo'])(()=>{const _0x5d559c=_0x3fb59b;var _0x275f03;const _0x4cf7b2=(_0x275f03=_0x4ccbf2())!==null&&_0x275f03!==void 0x0?_0x275f03:{'left':0x0,'top':0x0,'width':_0x587746/_0x1816a0,'height':_0x1d008b/_0x2a5d24},_0x32ca13=_0x4cf7b2['left']*_0x1816a0,_0x90fafd=_0x4cf7b2[_0x5d559c(0x523)]*_0x2a5d24,_0x38622a=_0x4cf7b2[_0x5d559c(0x354)]*_0x1816a0;if(_0x28a61a['useAbsolutePosition'])return{'top':_0x90fafd+_0x28a61a[_0x5d559c(0x485)],'left':_0x32ca13,'width':_0x38622a,'height':_0x28a61a['editorHeight']};return{'top':_0x90fafd,'left':_0x32ca13,'width':_0x38622a,'height':_0x28a61a['editorHeight']};},[_0x28a61a,_0x4ccbf2,_0x587746,_0x1d008b,_0x1816a0,_0x2a5d24]),_0x56e8e1=(0x0,react['useMemo'])(()=>{const _0x3b4fe0=_0x3fb59b,_0x523321=_0x42a6c4(),_0x235398=_0x523321===null||_0x523321===void 0x0?void 0x0:_0x523321[_0x3b4fe0(0x277)];if(_0x235398)return _0x235398||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x42a6c4]);return(0x0,react_jsx_runtime[_0x3fb59b(0x65c)])(_0x3fb59b(0x477),{'ref':_0x587186,'data-u-comp':_0x3fb59b(0x675),'className':_0x3fb59b(0x4dd),'style':{'transform':_0x3fb59b(0x35d)+_0x56e8e1[_0x3fb59b(0x3ee)]+_0x3fb59b(0x508)+(_0x56e8e1[_0x3fb59b(0x681)]?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x3fb59b(0x65c)])(_0x3fb59b(0x477),{'ref':_0x23db50,'className':_0x3fb59b(0x28d),'data-u-comp':_0x3fb59b(0x1e2),'style':_0x51c8df,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor['displayName']=_0x3cbade(0x546);const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x12e4e4,_0x22e35b,_0xd5e56,_0x355655){const _0x4ab9c8=_0x3cbade,{scaleX:_0xee2c4b,scaleY:_0x18915b}=_0xd5e56[_0x4ab9c8(0x2e8)](),{startColumn:_0x5bcc92,startRow:_0x321607,xSplit:_0x401e85,ySplit:_0x100bfd}=_0x355655['worksheet'][_0x4ab9c8(0x36a)](),_0x170815=_0xd5e56[_0x4ab9c8(0x36e)](_univerjs_engine_render[_0x4ab9c8(0x1db)]['VIEW_MAIN']),_0x5306b2=_0xd5e56[_0x4ab9c8(0x36e)](_univerjs_engine_render[_0x4ab9c8(0x1db)][_0x4ab9c8(0x392)]),_0x1a5c3f=_0xd5e56[_0x4ab9c8(0x36e)](_univerjs_engine_render[_0x4ab9c8(0x1db)][_0x4ab9c8(0x451)]),_0x3cc890=_0xd5e56['getViewport'](_univerjs_engine_render[_0x4ab9c8(0x1db)]['VIEW_MAIN_LEFT']),{rowHeaderWidth:_0x5e56d0,columnHeaderHeight:_0x279614}=_0x355655,_0x3cddcb=_0x355655[_0x4ab9c8(0x215)](_0x321607)+_0x279614,_0x4cb0b0=_0x355655[_0x4ab9c8(0x6b7)](_0x5bcc92)+_0x5e56d0,_0xb0203a=_0x355655[_0x4ab9c8(0x215)](_0x321607-_0x100bfd)+_0x279614,_0x2634de=_0x355655[_0x4ab9c8(0x6b7)](_0x5bcc92-_0x401e85)+_0x5e56d0,_0x303700=[],_0x728e1f=(_0x2fb9dc,_0x50a00a,_0x56bda2)=>{if(!_0x2fb9dc)return null;const {viewportScrollX:_0x44036d,viewportScrollY:_0x1ba5ba}=_0x2fb9dc;let _0x260004,_0x53cad0;if(_0x50a00a)_0x260004=(_0x12e4e4-(_0x2634de-_0x5e56d0))*_0xee2c4b;else _0x260004=(_0x12e4e4-_0x44036d)*_0xee2c4b;if(_0x56bda2)_0x53cad0=(_0x22e35b-(_0xb0203a-_0x279614))*_0x18915b;else _0x53cad0=(_0x22e35b-_0x1ba5ba)*_0x18915b;return{'domX':_0x260004,'domY':_0x53cad0};},_0x226c63=_0x12e4e4<_0x4cb0b0&&_0x401e85>0x0,_0x39b168=_0x22e35b<_0x3cddcb&&_0x100bfd>0x0,_0x4620d4=_0x12e4e4>=_0x4cb0b0||_0x401e85===0x0,_0x3253e6=_0x22e35b>=_0x3cddcb||_0x100bfd===0x0;if(_0x226c63&&_0x39b168&&_0x5306b2){const _0x55d869=_0x728e1f(_0x5306b2,!![],!![]);if(_0x55d869)_0x303700[_0x4ab9c8(0x4b4)](_0x55d869);}if(_0x39b168&&_0x4620d4&&_0x1a5c3f){const _0x586730=_0x728e1f(_0x1a5c3f,![],!![]);if(_0x586730)_0x303700[_0x4ab9c8(0x4b4)](_0x586730);}if(_0x226c63&&_0x3253e6&&_0x3cc890){const _0xcf628=_0x728e1f(_0x3cc890,!![],![]);if(_0xcf628)_0x303700[_0x4ab9c8(0x4b4)](_0xcf628);}if(_0x4620d4&&_0x3253e6&&_0x170815){const _0x2f5204=_0x728e1f(_0x170815,![],![]);if(_0x2f5204)_0x303700['push'](_0x2f5204);}if(_0x303700[_0x4ab9c8(0x4ba)]===0x0){var _0x542299,_0x272094;return{'domX':(_0x12e4e4-((_0x542299=_0x170815===null||_0x170815===void 0x0?void 0x0:_0x170815[_0x4ab9c8(0x37b)])!==null&&_0x542299!==void 0x0?_0x542299:0x0))*_0xee2c4b,'domY':(_0x22e35b-((_0x272094=_0x170815===null||_0x170815===void 0x0?void 0x0:_0x170815[_0x4ab9c8(0x240)])!==null&&_0x272094!==void 0x0?_0x272094:0x0))*_0x18915b};}let _0x54d026=_0x303700[0x0][_0x4ab9c8(0x6e8)],_0x3a464c=_0x303700[0x0][_0x4ab9c8(0x5e8)];for(const _0x13b136 of _0x303700){if(_0x13b136[_0x4ab9c8(0x6e8)]>_0x54d026)_0x54d026=_0x13b136['domX'];if(_0x13b136[_0x4ab9c8(0x5e8)]>_0x3a464c)_0x3a464c=_0x13b136['domY'];}return{'domX':_0x54d026,'domY':_0x3a464c};}function calcShapePosition(_0x8cfbaf,_0x4435e5,_0x25a1f0,_0x5940c5,_0x4309f3,_0x5f1d9b,_0x2aa66c){const _0x3a313a=_0x3cbade,{scaleX:_0x6b3c2e,scaleY:_0xce7452}=_0x5f1d9b[_0x3a313a(0x2e8)](),{domX:_0x2e9c02,domY:_0x784be6}=calcBestDOMPositionForFreezeZones(_0x8cfbaf,_0x4435e5,_0x5f1d9b,_0x2aa66c);return{'left':_0x2e9c02,'top':_0x784be6,'width':_0x25a1f0*_0x6b3c2e,'height':_0x5940c5*_0xce7452,'angle':_0x4309f3,'scaleX':_0x6b3c2e,'scaleY':_0xce7452};}function useShapePosition(_0x4b1462){const _0x2b1ef6=_0x3cbade,{editingParams:_0x513167,scene:_0x29b546,skeleton:_0x348b45,getShapeTransform:_0x294a25}=_0x4b1462,[_0x14ea46,_0x41db55]=(0x0,react[_0x2b1ef6(0x5bc)])(DEFAULT_HIDDEN_POSITION),_0x164e71=(0x0,react[_0x2b1ef6(0x5d9)])(_0x14ea46);_0x164e71['current']=_0x14ea46;const _0x1e6d59=(0x0,react[_0x2b1ef6(0x6d8)])(()=>{const _0x5499a9=_0x2b1ef6;if(!_0x513167||!_0x29b546||!_0x348b45){if(_0x164e71[_0x5499a9(0x1cf)]!==DEFAULT_HIDDEN_POSITION)_0x41db55(DEFAULT_HIDDEN_POSITION);return;}const _0x5e6a92=_0x294a25();if(!_0x5e6a92){if(_0x164e71[_0x5499a9(0x1cf)]!==DEFAULT_HIDDEN_POSITION)_0x41db55(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x187d20,top:_0x369539,width:_0x1d2a90,height:_0x3d6068,angle:_0x484165}=_0x5e6a92;if(!_0x513167[_0x5499a9(0x634)]){const {scaleX:_0x4d6255,scaleY:_0x2fe7e4}=_0x29b546[_0x5499a9(0x2e8)]();_0x41db55({'left':-0x270f,'top':-0x270f,'width':_0x1d2a90*_0x4d6255,'height':_0x3d6068*_0x2fe7e4,'angle':0x0,'scaleX':_0x4d6255,'scaleY':_0x2fe7e4});return;}_0x41db55(calcShapePosition(_0x187d20,_0x369539,_0x1d2a90,_0x3d6068,_0x484165,_0x29b546,_0x348b45));},[_0x513167,_0x29b546,_0x348b45,_0x294a25]);return(0x0,react['useEffect'])(()=>{_0x1e6d59();},[_0x513167,_0x1e6d59]),{'position':_0x14ea46,'updatePosition':_0x1e6d59};}const ShapePositionWrapper=(0x0,react['memo'])(_0x8a859b=>{const _0x415e96=_0x3cbade,{children:_0x3b3609,onPositionUpdate:_0x569652}=_0x8a859b,_0x298810=(0x0,react[_0x415e96(0x5d9)])(null),_0x215f49=(0x0,_univerjs_ui[_0x415e96(0x287)])(ShapeTextEditingService),_0x2ca934=(0x0,_univerjs_ui[_0x415e96(0x287)])(_univerjs_engine_render[_0x415e96(0x2fa)]),_0x5eee0c=(0x0,_univerjs_ui[_0x415e96(0x364)])(_0x215f49['editingParams$']),_0x3d4d3a=(0x0,react['useMemo'])(()=>{const _0x3befad=_0x415e96;if(!_0x5eee0c)return null;return _0x2ca934[_0x3befad(0x412)](_0x5eee0c['unitId']);},[_0x5eee0c,_0x2ca934]),_0x1133f4=(0x0,react[_0x415e96(0x5c5)])(()=>{const _0xed716a=_0x415e96;var _0x1acaaa;return(_0x1acaaa=_0x3d4d3a===null||_0x3d4d3a===void 0x0?void 0x0:_0x3d4d3a[_0xed716a(0x53c)])!==null&&_0x1acaaa!==void 0x0?_0x1acaaa:null;},[_0x3d4d3a]),{position:_0x2ace20,updatePosition:_0x1f47a9}=useShapePosition({'editingParams':_0x5eee0c,'scene':_0x1133f4,'skeleton':(0x0,react[_0x415e96(0x5c5)])(()=>{const _0x3500d1=_0x415e96;var _0x4cb446,_0x2238bd;if(!_0x5eee0c||!_0x3d4d3a)return null;return(_0x4cb446=(_0x2238bd=_0x3d4d3a[_0x3500d1(0x4ce)](_univerjs_sheets_ui[_0x3500d1(0x49d)])[_0x3500d1(0x5e2)](_0x5eee0c[_0x3500d1(0x3f1)]))===null||_0x2238bd===void 0x0?void 0x0:_0x2238bd[_0x3500d1(0x217)])!==null&&_0x4cb446!==void 0x0?_0x4cb446:null;},[_0x5eee0c,_0x3d4d3a]),'getShapeTransform':(0x0,react[_0x415e96(0x6d8)])(()=>{const _0x166e75=_0x415e96;if(!_0x5eee0c||!_0x1133f4)return null;const _0x4a6135=_0x5eee0c[_0x166e75(0x2a3)],_0x2d771d=_0x1133f4[_0x166e75(0x3d5)](_0x4a6135);if(_0x2d771d instanceof DrawingShape)return{'left':_0x2d771d['left'],'top':_0x2d771d['top'],'width':_0x2d771d['width'],'height':_0x2d771d['height'],'angle':_0x2d771d[_0x166e75(0x3ee)]};return null;},[_0x5eee0c,_0x1133f4])}),_0x53a2f6=(0x0,react[_0x415e96(0x6d8)])(()=>{const _0x186c7c=_0x415e96,_0x6818d=_0x298810[_0x186c7c(0x1cf)];if(!_0x6818d)return;_0x6818d['style'][_0x186c7c(0x6d2)]=_0x2ace20[_0x186c7c(0x6d2)]+'px',_0x6818d[_0x186c7c(0x6e2)]['top']=_0x2ace20['top']+'px',_0x6818d[_0x186c7c(0x6e2)][_0x186c7c(0x354)]=_0x2ace20[_0x186c7c(0x354)]+'px',_0x6818d['style']['height']=_0x2ace20[_0x186c7c(0x396)]+'px';},[_0x2ace20]);return(0x0,react[_0x415e96(0x6cf)])(()=>{const _0x344319=_0x415e96;_0x53a2f6(),_0x569652===null||_0x569652===void 0x0||_0x569652({'width':_0x2ace20[_0x344319(0x354)],'height':_0x2ace20[_0x344319(0x396)],'scaleX':_0x2ace20[_0x344319(0x520)],'scaleY':_0x2ace20[_0x344319(0x42e)]});},[_0x2ace20,_0x53a2f6,_0x569652]),(0x0,react[_0x415e96(0x6cf)])(()=>{const _0x1d4ef0=_0x415e96;if(!_0x1133f4)return;const _0x5e480b=_0x1133f4[_0x1d4ef0(0x36e)](_univerjs_engine_render[_0x1d4ef0(0x1db)]['VIEW_MAIN']);if(!_0x5e480b)return;const _0x5414bf=_0x5e480b[_0x1d4ef0(0x2ab)][_0x1d4ef0(0x5a4)](()=>{_0x1f47a9();});return()=>{_0x5414bf['unsubscribe']();};},[_0x1133f4,_0x1f47a9]),(0x0,react[_0x415e96(0x6cf)])(()=>{const _0x54c778=_0x415e96;if(!_0x5eee0c||!_0x1133f4)return;const _0x2e6d28=_0x5eee0c[_0x54c778(0x2a3)],_0x5a1964=_0x1133f4[_0x54c778(0x3d5)](_0x2e6d28);if(_0x5a1964 instanceof DrawingShape){const _0x3c0e47=_0x5a1964[_0x54c778(0x587)][_0x54c778(0x5a4)](()=>{_0x1f47a9();});return()=>{const _0xb7bb7b=_0x54c778;_0x3c0e47[_0xb7bb7b(0x5b9)]();};}},[_0x5eee0c,_0x1133f4,_0x1f47a9]),(0x0,react_jsx_runtime[_0x415e96(0x65c)])('div',{'ref':_0x298810,'data-u-comp':'shape-text-editor-position-wrapper','className':'univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','style':(0x0,react['useMemo'])(()=>({'left':_0x2ace20[_0x415e96(0x6d2)],'top':_0x2ace20[_0x415e96(0x523)],'width':_0x2ace20[_0x415e96(0x354)],'height':_0x2ace20[_0x415e96(0x396)],'pointerEvents':(_0x5eee0c===null||_0x5eee0c===void 0x0?void 0x0:_0x5eee0c[_0x415e96(0x634)])?_0x415e96(0x37c):_0x415e96(0x60b)}),[_0x2ace20,_0x5eee0c===null||_0x5eee0c===void 0x0?void 0x0:_0x5eee0c['visible']]),'children':_0x3b3609});});ShapePositionWrapper[_0x3cbade(0x502)]=_0x3cbade(0x4a4);const ShapeTextEditorContainer=(0x0,react[_0x3cbade(0x297)])(()=>{const _0x3b62ce=_0x3cbade,_0x31876d=(0x0,_univerjs_ui[_0x3b62ce(0x364)])((0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService)[_0x3b62ce(0x2cd)]),[_0xa6390e,_0x56fd2e]=(0x0,react[_0x3b62ce(0x5bc)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x12311e=(0x0,react[_0x3b62ce(0x6d8)])(_0x3c0f80=>{const _0x4908db=_0x3b62ce;_0x56fd2e({'width':_0x3c0f80[_0x4908db(0x354)],'height':_0x3c0f80[_0x4908db(0x396)],'scaleX':_0x3c0f80['scaleX'],'scaleY':_0x3c0f80[_0x4908db(0x42e)]});},[]);if(!(_0x31876d===null||_0x31876d===void 0x0?void 0x0:_0x31876d[_0x3b62ce(0x634)]))return null;return(0x0,react_jsx_runtime[_0x3b62ce(0x65c)])(ShapePositionWrapper,{'onPositionUpdate':_0x12311e,'children':(0x0,react_jsx_runtime[_0x3b62ce(0x65c)])(ShapeEditor,{'containerWidth':_0xa6390e[_0x3b62ce(0x354)],'containerHeight':_0xa6390e[_0x3b62ce(0x396)],'scaleX':_0xa6390e[_0x3b62ce(0x520)],'scaleY':_0xa6390e[_0x3b62ce(0x42e)]})});});function _0x1b00(_0x852900,_0x3e3cad){_0x852900=_0x852900-0x18e;const _0x3a35cf=_0x3a35();let _0x1b0078=_0x3a35cf[_0x852900];return _0x1b0078;}ShapeTextEditorContainer[_0x3cbade(0x502)]=_0x3cbade(0x46b);let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core['Plugin']{constructor(_0xfab0d5=defaultPluginConfig,_0x3eb143,_0x35ac93,_0x6c86a6,_0x1f1f0f){const _0x4b2986=_0x3cbade;super(),this[_0x4b2986(0x2b5)]=_0xfab0d5,this[_0x4b2986(0x2bf)]=_0x3eb143,this['_commandService']=_0x35ac93,this[_0x4b2986(0x462)]=_0x6c86a6,this[_0x4b2986(0x1c7)]=_0x1f1f0f;const {..._0x2ab1dd}=(0x0,_univerjs_core[_0x4b2986(0x3bb)])({},defaultPluginConfig,this['_config']);this[_0x4b2986(0x462)][_0x4b2986(0x1c6)](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x2ab1dd),this['_initCommands']();}[_0x3cbade(0x51b)](){const _0x48296d=_0x3cbade;(0x0,_univerjs_core[_0x48296d(0x42f)])(this[_0x48296d(0x2bf)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x3cbade(0x289)](){const _0x4e698f=_0x3cbade;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x4e698f(0x237)](_0x5a5f28=>this['_injector'][_0x4e698f(0x638)](_0x5a5f28)),(0x0,_univerjs_core[_0x4e698f(0x42f)])(this['_injector'],[[SheetShapeClipboardController]]),this[_0x4e698f(0x1c7)][_0x4e698f(0x6ca)](_univerjs_core[_0x4e698f(0x1ae)]['UNIVER_SHEET'],[SheetBasicShapeConnectionPointController]),this[_0x4e698f(0x1c7)]['registerRenderModule'](_univerjs_core['UniverInstanceType'][_0x4e698f(0x394)],[SheetShapeAdjustController]),this['_renderManagerService'][_0x4e698f(0x6ca)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[ImageClipAdjustController]),this['_renderManagerService'][_0x4e698f(0x6ca)](_univerjs_core[_0x4e698f(0x1ae)][_0x4e698f(0x394)],[SheetShapeConnectorController]),this[_0x4e698f(0x1c7)][_0x4e698f(0x6ca)](_univerjs_core[_0x4e698f(0x1ae)]['UNIVER_SHEET'],[ShapeTextEditingRenderController]);}['onStarting'](){const _0x48177e=_0x3cbade,_0xdbb43e=this[_0x48177e(0x2bf)];_0xdbb43e['get'](_univerjs_ui[_0x48177e(0x279)])['register'](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]['forEach'](_0x456ec5=>_0xdbb43e[_0x48177e(0x638)](_0x456ec5)),(0x0,_univerjs_core[_0x48177e(0x42f)])(this[_0x48177e(0x2bf)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x3cbade(0x383)](){const _0xca2e61=_0x3cbade;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0xca2e61(0x237)](_0x18c0d1=>this[_0xca2e61(0x46e)](this[_0xca2e61(0x30d)]['registerCommand'](_0x18c0d1)));}};_defineProperty(UniverSheetsShapeUIPlugin,'type',_univerjs_core['UniverInstanceType'][_0x3cbade(0x394)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x3cbade(0x3d1),_0x3cbade(0x1a4)),_defineProperty(UniverSheetsShapeUIPlugin,'packageName',name),_defineProperty(UniverSheetsShapeUIPlugin,_0x3cbade(0x54c),version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x3cbade(0x5a8)])(_univerjs_sheets_drawing_ui[_0x3cbade(0x53e)],_univerjs_pro_sheets_shape['UniverSheetsShapePlugin']),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x3cbade(0x467)])),__decorateParam(0x2,_univerjs_core[_0x3cbade(0x447)]),__decorateParam(0x3,_univerjs_core[_0x3cbade(0x1ab)]),__decorateParam(0x4,_univerjs_engine_render['IRenderManagerService'])],UniverSheetsShapeUIPlugin),exports[_0x3cbade(0x6c3)]=SetShapeTextFontSizeCommand,exports[_0x3cbade(0x2af)]=SetShapeTextFontSizeDecreaseCommand,exports['SetShapeTextFontSizeIncreaseCommand']=SetShapeTextFontSizeIncreaseCommand,exports[_0x3cbade(0x371)]=SetShapeTextHorizontalAlignCommand,exports[_0x3cbade(0x50b)]=SetShapeTextVerticalAlignCommand,exports[_0x3cbade(0x3bd)]=ShapeDocAlignCommand,Object['defineProperty'](exports,_0x3cbade(0x611),{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object['defineProperty'](exports,_0x3cbade(0x5a9),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x3cbade(0x598)]=UpdateShapeDataCommand;
|