@univerjs-pro/sheets-shape-ui 0.21.1 → 0.22.0

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.
Files changed (54) hide show
  1. package/README.md +29 -15
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/sk-SK.js +1 -1
  25. package/lib/es/locale/vi-VN.js +1 -1
  26. package/lib/es/locale/zh-CN.js +1 -1
  27. package/lib/es/locale/zh-TW.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/sk-SK.js +1 -1
  38. package/lib/locale/vi-VN.js +1 -1
  39. package/lib/locale/zh-CN.js +1 -1
  40. package/lib/locale/zh-TW.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/sk-SK.js +1 -1
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +21 -22
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x48b1be=_0x1fb6;(function(_0x58cb43,_0x4e114f){const _0x1aa63c=_0x1fb6,_0x35ec3a=_0x58cb43();while(!![]){try{const _0x3cb818=parseInt(_0x1aa63c(0x233))/0x1+-parseInt(_0x1aa63c(0x504))/0x2*(-parseInt(_0x1aa63c(0x3a6))/0x3)+parseInt(_0x1aa63c(0x536))/0x4*(-parseInt(_0x1aa63c(0x3bb))/0x5)+parseInt(_0x1aa63c(0x2f0))/0x6+parseInt(_0x1aa63c(0x295))/0x7+parseInt(_0x1aa63c(0x43a))/0x8*(-parseInt(_0x1aa63c(0x3e4))/0x9)+-parseInt(_0x1aa63c(0x1fa))/0xa*(parseInt(_0x1aa63c(0x1c4))/0xb);if(_0x3cb818===_0x4e114f)break;else _0x35ec3a['push'](_0x35ec3a['shift']());}catch(_0x362507){_0x35ec3a['push'](_0x35ec3a['shift']());}}}(_0x1d37,0xe1f12),Object[_0x48b1be(0x546)](exports,Symbol[_0x48b1be(0x2cf)],{'value':_0x48b1be(0x63b)}));var __create=Object[_0x48b1be(0x46b)],__defProp=Object[_0x48b1be(0x546)],__getOwnPropDesc=Object[_0x48b1be(0x25c)],__getOwnPropNames=Object['getOwnPropertyNames'],__getProtoOf=Object[_0x48b1be(0x2ec)],__hasOwnProp=Object[_0x48b1be(0x666)][_0x48b1be(0x29f)],__copyProps=(_0x5981e5,_0x25eba3,_0x4884e8,_0x320bb6)=>{const _0xdd8a58=_0x48b1be;if(_0x25eba3&&typeof _0x25eba3==='object'||typeof _0x25eba3===_0xdd8a58(0x65d))for(var _0x39f4e4=__getOwnPropNames(_0x25eba3),_0x40a45c=0x0,_0x431b76=_0x39f4e4[_0xdd8a58(0x42d)],_0x124cdb;_0x40a45c<_0x431b76;_0x40a45c++){_0x124cdb=_0x39f4e4[_0x40a45c],!__hasOwnProp[_0xdd8a58(0x497)](_0x5981e5,_0x124cdb)&&_0x124cdb!==_0x4884e8&&__defProp(_0x5981e5,_0x124cdb,{'get':(_0x1d62b8=>_0x25eba3[_0x1d62b8])[_0xdd8a58(0x100)](null,_0x124cdb),'enumerable':!(_0x320bb6=__getOwnPropDesc(_0x25eba3,_0x124cdb))||_0x320bb6[_0xdd8a58(0x15a)]});}return _0x5981e5;},__toESM=(_0x78ec52,_0x151a99,_0x53bdff)=>(_0x53bdff=_0x78ec52!=null?__create(__getProtoOf(_0x78ec52)):{},__copyProps(_0x151a99||!_0x78ec52||!_0x78ec52[_0x48b1be(0x404)]?__defProp(_0x53bdff,'default',{'value':_0x78ec52,'enumerable':!![]}):_0x53bdff,_0x78ec52));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(_0x31b2c6){'@babel/helpers - typeof';const _0x5c46df=_0x48b1be;return _typeof=_0x5c46df(0x65d)==typeof Symbol&&'symbol'==typeof Symbol[_0x5c46df(0x23c)]?function(_0x1f0d0f){return typeof _0x1f0d0f;}:function(_0x36820c){const _0x38ecb4=_0x5c46df;return _0x36820c&&'function'==typeof Symbol&&_0x36820c['constructor']===Symbol&&_0x36820c!==Symbol[_0x38ecb4(0x666)]?_0x38ecb4(0x41b):typeof _0x36820c;},_typeof(_0x31b2c6);}function toPrimitive(_0x21ce29,_0x3df8eb){const _0x4cef08=_0x48b1be;if(_0x4cef08(0x334)!=_typeof(_0x21ce29)||!_0x21ce29)return _0x21ce29;var _0x48c66d=_0x21ce29[Symbol[_0x4cef08(0x43f)]];if(void 0x0!==_0x48c66d){var _0x8215cb=_0x48c66d[_0x4cef08(0x497)](_0x21ce29,_0x3df8eb||'default');if(_0x4cef08(0x334)!=_typeof(_0x8215cb))return _0x8215cb;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4cef08(0x57d)===_0x3df8eb?String:Number)(_0x21ce29);}function toPropertyKey(_0x10fb19){const _0x1bb7b2=_0x48b1be;var _0x245ca8=toPrimitive(_0x10fb19,_0x1bb7b2(0x57d));return _0x1bb7b2(0x41b)==_typeof(_0x245ca8)?_0x245ca8:_0x245ca8+'';}function _defineProperty(_0x2f9845,_0x1aebb2,_0x21011e){const _0x512439=_0x48b1be;return(_0x1aebb2=toPropertyKey(_0x1aebb2))in _0x2f9845?Object[_0x512439(0x546)](_0x2f9845,_0x1aebb2,{'value':_0x21011e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f9845[_0x1aebb2]=_0x21011e,_0x2f9845;}var ShapeTextEditingService=class extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(..._0x30f3d0){const _0x429eb0=_0x48b1be;super(..._0x30f3d0),_defineProperty(this,_0x429eb0(0x5b5),new rxjs['BehaviorSubject'](null)),_defineProperty(this,_0x429eb0(0x264),this[_0x429eb0(0x5b5)][_0x429eb0(0x5de)]()),_defineProperty(this,_0x429eb0(0x4ec),new rxjs[(_0x429eb0(0x42c))](![])),_defineProperty(this,'onSavingEditorData$',this['_onSavingEditorData$'][_0x429eb0(0x5de)]());}[_0x48b1be(0x570)](){const _0x3b9be9=_0x48b1be;this[_0x3b9be9(0x5b5)][_0x3b9be9(0x194)](null),this[_0x3b9be9(0x5b5)][_0x3b9be9(0x3fc)](),this['_onSavingEditorData$'][_0x3b9be9(0x194)](![]),this['_onSavingEditorData$'][_0x3b9be9(0x3fc)](),super[_0x3b9be9(0x570)]();}[_0x48b1be(0x431)](_0x3b6a6f){const _0x5747cd=_0x48b1be;this[_0x5747cd(0x5b5)][_0x5747cd(0x194)](_0x3b6a6f);if(_0x3b6a6f===null||_0x3b6a6f===void 0x0)this['_onSavingEditorData$'][_0x5747cd(0x194)](![]);}[_0x48b1be(0x4e0)](_0x4bb4ac){const _0x576cfd=_0x48b1be;this[_0x576cfd(0x4ec)]['next'](_0x4bb4ac);}[_0x48b1be(0x36b)](){const _0x4c8129=_0x48b1be;return this[_0x4c8129(0x5b5)]['getValue']();}};function getShapeDataDiff(_0x7aa781,_0x2f5761){const _0x159139=_0x48b1be,_0x1d4e58={};for(const _0x22465a of Object['keys'](_0x2f5761)){const _0x280afb=_0x2f5761[_0x22465a],_0x3e310b=_0x7aa781[_0x22465a];if(_0x280afb===void 0x0)continue;if(_0x3e310b===void 0x0){_0x1d4e58[_0x22465a]=void 0x0;continue;}if(typeof _0x280afb==='object'&&_0x280afb!==null&&!Array[_0x159139(0x5dc)](_0x280afb)&&typeof _0x3e310b===_0x159139(0x334)&&_0x3e310b!==null&&!Array['isArray'](_0x3e310b))_0x1d4e58[_0x22465a]=getShapeDataDiff(_0x3e310b,_0x280afb);else _0x1d4e58[_0x22465a]=_0x3e310b;}return _0x1d4e58;}const UpdateShapeDataCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x48b1be(0x56a),'handler':(_0xaceaa5,_0x51b086)=>{const _0x479e1b=_0x48b1be,_0x1ba8fc=_0xaceaa5[_0x479e1b(0x4fd)](_univerjs_pro_sheets_shape['SheetsShapeService']),{unitId:_0x45c284,subUnitId:_0x2b56ef,shapeType:_0x5a8fa1,shapeId:_0x393b7e,shapeData:_0x54a2e5,oldShapeJSON:_0xfcd9c9}=_0x51b086;if(!_0x1ba8fc[_0x479e1b(0x36e)](_0x45c284,_0x2b56ef,_0x393b7e))return![];const _0x1b5389=_0xaceaa5[_0x479e1b(0x4fd)](_univerjs_core['ICommandService']),_0x3277ce=_0xaceaa5[_0x479e1b(0x4fd)](_univerjs_core['IUndoRedoService']),{oldShapeType:_0x6fbee3,oldShapeData:_0x15df03={}}=_0xfcd9c9,_0x18e6b5=getShapeDataDiff(_0x15df03,_0x54a2e5||{}),_0x4edd91={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x45c284,'subUnitId':_0x2b56ef,'shapeId':_0x393b7e,'shapeType':_0x5a8fa1,'shapeData':_0x54a2e5}},_0x359a23={'id':_univerjs_pro_sheets_shape[_0x479e1b(0x565)]['id'],'params':{'unitId':_0x45c284,'subUnitId':_0x2b56ef,'shapeId':_0x393b7e,'shapeType':_0x6fbee3,'shapeData':_0x18e6b5}};if(_0x1b5389[_0x479e1b(0x449)](_0x4edd91['id'],_0x4edd91[_0x479e1b(0x37c)]))return _0x3277ce[_0x479e1b(0x2ad)]({'unitID':_0x45c284,'undoMutations':[_0x359a23],'redoMutations':[_0x4edd91]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x48b1be(0x122),'handler':async(_0x58c77a,_0x27e7f8)=>{const _0x23c4ef=_0x48b1be;var _0x213349;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x58c77a[_0x23c4ef(0x4fd)](_univerjs_core['IUniverInstanceService'])))return![];const _0x586a46=_0x58c77a[_0x23c4ef(0x4fd)](_univerjs_sheets_drawing[_0x23c4ef(0x528)])[_0x23c4ef(0x669)]()['filter'](_0x5ddfc1=>_0x5ddfc1['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x23c4ef(0x614)]);if(_0x586a46[_0x23c4ef(0x42d)]!==0x1)return![];const _0xf509f7=_0x58c77a[_0x23c4ef(0x4fd)](ShapeTextEditingService)['getEditing'](),_0x4caaa9=(_0xf509f7===null||_0xf509f7===void 0x0?void 0x0:_0xf509f7['unitId'])||_0x586a46[0x0][_0x23c4ef(0x1ab)],_0x26b6e4=(_0xf509f7===null||_0xf509f7===void 0x0?void 0x0:_0xf509f7['subUnitId'])||_0x586a46[0x0][_0x23c4ef(0x4dc)],_0x272943=(_0xf509f7===null||_0xf509f7===void 0x0?void 0x0:_0xf509f7[_0x23c4ef(0x1d8)])||_0x586a46[0x0][_0x23c4ef(0x4cb)],_0x5610e1=_0x58c77a[_0x23c4ef(0x4fd)](_univerjs_pro_sheets_shape[_0x23c4ef(0x475)])[_0x23c4ef(0x36e)](_0x4caaa9,_0x26b6e4,_0x272943);if(!_0x5610e1)return![];const _0x34faff=_0x5610e1[_0x23c4ef(0x48f)]();if(!_0x34faff||!(_0x23c4ef(0x31a)in _0x34faff))return![];const _0x543324=_0x58c77a[_0x23c4ef(0x4fd)](_univerjs_core[_0x23c4ef(0x621)]),{value:_0x3275ed}=_0x27e7f8,_0x15e286=_0x5610e1[_0x23c4ef(0x607)](),_0x4845fa=_0x5610e1['getShapeData'](),_0x5a9455={..._0x34faff['dataModel'],'ha':_0x3275ed};return await _0x543324[_0x23c4ef(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0x4caaa9,'subUnitId':_0x26b6e4,'shapeId':_0x272943,'shapeType':_0x15e286,'shapeData':{'shapeText':{'isHorizontal':(_0x213349=_0x34faff['isHorizontal'])!==null&&_0x213349!==void 0x0?_0x213349:!![],'dataModel':_0x5a9455}},'oldShapeJSON':{'oldShapeType':_0x15e286,'oldShapeData':_0x4845fa}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':'sheet.command.set-shape-text-font-size','handler':async(_0x160e4c,_0x3a1259)=>{const _0xc71865=_0x48b1be;var _0x1eef6c;if(!_0x3a1259)return![];const {value:_0x240285}=_0x3a1259,_0x141eb4=_0x160e4c['get'](_univerjs_core[_0xc71865(0x621)]),_0x47255c=_0x160e4c[_0xc71865(0x4fd)](ShapeTextEditingService),_0x5de3e1=_0x160e4c['get'](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x441cdf=_0x160e4c[_0xc71865(0x4fd)](_univerjs_engine_render['IRenderManagerService']),_0x4bc79c=_0x47255c[_0xc71865(0x36b)]();if(!_0x4bc79c)return![];const {unitId:_0xe36e7f,subUnitId:_0x183cf7,shapeId:_0x82ad01}=_0x4bc79c,_0x5decbb=_0x5de3e1['getShapeModel'](_0xe36e7f,_0x183cf7,_0x82ad01);if(!_0x5decbb)return![];const _0x5380a9=_0x5decbb['getShapeTextData']();if(!_0x5380a9||!(_0xc71865(0x31a)in _0x5380a9))return![];const _0x3d07b2=_0x5380a9['dataModel'];if(!_0x3d07b2)return![];const _0x312415={..._0x3d07b2,'fs':_0x240285},_0x374dbe=await _0x141eb4[_0xc71865(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0xe36e7f,'subUnitId':_0x183cf7,'shapeId':_0x82ad01,'shapeData':{'shapeText':{'isHorizontal':(_0x1eef6c=_0x5380a9[_0xc71865(0x1ed)])!==null&&_0x1eef6c!==void 0x0?_0x1eef6c:!![],'dataModel':_0x312415}}});if(_0x374dbe){const _0x36f56d=_0x441cdf[_0xc71865(0x11a)](_0xe36e7f);if(_0x36f56d===null||_0x36f56d===void 0x0?void 0x0:_0x36f56d[_0xc71865(0x1cf)]){const _0x2b0126=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0xe36e7f,'subUnitId':_0x183cf7,'drawingId':_0x82ad01}),_0x154f42=_0x36f56d[_0xc71865(0x1cf)][_0xc71865(0x492)](_0x2b0126);if(_0x154f42)_0x154f42[_0xc71865(0x2d4)](!![]);}}return _0x374dbe;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':_0x48b1be(0x466),'handler':async _0x13bd05=>{const _0x2b88a3=_0x48b1be;var _0x4027dd;const _0x3868ac=_0x13bd05[_0x2b88a3(0x4fd)](ShapeTextEditingService),_0x4e5273=_0x13bd05[_0x2b88a3(0x4fd)](_univerjs_pro_sheets_shape[_0x2b88a3(0x475)]),_0x5ed561=_0x13bd05[_0x2b88a3(0x4fd)](_univerjs_core['ICommandService']),_0x3f24e0=_0x3868ac['getEditing']();if(!_0x3f24e0)return![];const {unitId:_0x319221,subUnitId:_0x4916e0,shapeId:_0x783e9d}=_0x3f24e0,_0xeb59f7=_0x4e5273['getShapeModel'](_0x319221,_0x4916e0,_0x783e9d);if(!_0xeb59f7)return![];const _0x5cdb03=_0xeb59f7[_0x2b88a3(0x48f)]();if(!_0x5cdb03||!(_0x2b88a3(0x31a)in _0x5cdb03))return![];const _0x5843de=_0x5cdb03[_0x2b88a3(0x31a)],_0x409316=(_0x4027dd=_0x5843de===null||_0x5843de===void 0x0?void 0x0:_0x5843de['fs'])!==null&&_0x4027dd!==void 0x0?_0x4027dd:0xe,_0x225f26=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x50d63b=_0x409316;const _0x1e9049=_0x225f26[_0x2b88a3(0x56f)](_0x409316);if(_0x1e9049!==-0x1&&_0x1e9049<_0x225f26[_0x2b88a3(0x42d)]-0x1)_0x50d63b=_0x225f26[_0x1e9049+0x1];else{if(_0x1e9049===-0x1)_0x50d63b=Math[_0x2b88a3(0x35c)](_0x409316)+0x1;}return _0x5ed561['executeCommand'](SetShapeTextFontSizeCommand['id'],{'value':_0x50d63b});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':'sheet.command.set-shape-text-font-size-decrease','handler':async _0x1040c9=>{const _0x2f1c91=_0x48b1be;var _0x4af33f;const _0x41c63c=_0x1040c9[_0x2f1c91(0x4fd)](ShapeTextEditingService),_0x3f34d6=_0x1040c9[_0x2f1c91(0x4fd)](_univerjs_pro_sheets_shape[_0x2f1c91(0x475)]),_0x536dbd=_0x1040c9[_0x2f1c91(0x4fd)](_univerjs_core[_0x2f1c91(0x621)]),_0x307e7a=_0x41c63c['getEditing']();if(!_0x307e7a)return![];const {unitId:_0x396a9a,subUnitId:_0x38d276,shapeId:_0x10e7ec}=_0x307e7a,_0x355b48=_0x3f34d6[_0x2f1c91(0x36e)](_0x396a9a,_0x38d276,_0x10e7ec);if(!_0x355b48)return![];const _0x145a47=_0x355b48[_0x2f1c91(0x48f)]();if(!_0x145a47||!('dataModel'in _0x145a47))return![];const _0x3e9c6f=_0x145a47[_0x2f1c91(0x31a)],_0x1dceaa=(_0x4af33f=_0x3e9c6f===null||_0x3e9c6f===void 0x0?void 0x0:_0x3e9c6f['fs'])!==null&&_0x4af33f!==void 0x0?_0x4af33f:0xe,_0x401317=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x383fd3=_0x1dceaa;const _0x3b8676=_0x401317['indexOf'](_0x1dceaa);if(_0x3b8676!==-0x1&&_0x3b8676>0x0)_0x383fd3=_0x401317[_0x3b8676-0x1];else{if(_0x3b8676===-0x1)_0x383fd3=Math['floor'](_0x1dceaa)-0x1;}if(_0x383fd3<0x1)_0x383fd3=0x1;return _0x536dbd['executeCommand'](SetShapeTextFontSizeCommand['id'],{'value':_0x383fd3});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':_0x48b1be(0x30b),'handler':async(_0x371c3e,_0x5e5b4a)=>{const _0x8ecb14=_0x48b1be;var _0x1c60da;if(!(0x0,_univerjs_sheets[_0x8ecb14(0x207)])(_0x371c3e['get'](_univerjs_core[_0x8ecb14(0x1d2)])))return![];const _0x3b2397=_0x371c3e[_0x8ecb14(0x4fd)](_univerjs_sheets_drawing[_0x8ecb14(0x528)])[_0x8ecb14(0x669)]()['filter'](_0x3c29e8=>_0x3c29e8[_0x8ecb14(0x2b0)]===_univerjs_core[_0x8ecb14(0x45a)][_0x8ecb14(0x614)]);if(_0x3b2397[_0x8ecb14(0x42d)]!==0x1)return![];const _0x599b6d=_0x371c3e[_0x8ecb14(0x4fd)](ShapeTextEditingService)[_0x8ecb14(0x36b)](),_0x42ae1a=(_0x599b6d===null||_0x599b6d===void 0x0?void 0x0:_0x599b6d[_0x8ecb14(0x1ab)])||_0x3b2397[0x0][_0x8ecb14(0x1ab)],_0x51f34c=(_0x599b6d===null||_0x599b6d===void 0x0?void 0x0:_0x599b6d[_0x8ecb14(0x4dc)])||_0x3b2397[0x0]['subUnitId'],_0x3774a3=(_0x599b6d===null||_0x599b6d===void 0x0?void 0x0:_0x599b6d[_0x8ecb14(0x1d8)])||_0x3b2397[0x0][_0x8ecb14(0x4cb)],_0xe7eccd=_0x371c3e['get'](_univerjs_pro_sheets_shape[_0x8ecb14(0x475)])[_0x8ecb14(0x36e)](_0x42ae1a,_0x51f34c,_0x3774a3);if(!_0xe7eccd)return![];const _0x5d44ea=_0xe7eccd[_0x8ecb14(0x48f)]();if(!_0x5d44ea||!(_0x8ecb14(0x31a)in _0x5d44ea))return![];const _0x2f893b=_0x371c3e['get'](_univerjs_core[_0x8ecb14(0x621)]),{value:_0x5d253d}=_0x5e5b4a,_0x3f5dab=_0xe7eccd['getShapeType'](),_0x1a1fd9=_0xe7eccd[_0x8ecb14(0x260)](),_0x216179={..._0x5d44ea['dataModel'],'va':_0x5d253d};return await _0x2f893b[_0x8ecb14(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0x42ae1a,'subUnitId':_0x51f34c,'shapeId':_0x3774a3,'shapeType':_0x3f5dab,'shapeData':{'shapeText':{'isHorizontal':(_0x1c60da=_0x5d44ea[_0x8ecb14(0x1ed)])!==null&&_0x1c60da!==void 0x0?_0x1c60da:!![],'dataModel':_0x216179}},'oldShapeJSON':{'oldShapeType':_0x3f5dab,'oldShapeData':_0x1a1fd9}});}},ShapeDocAlignCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':_0x48b1be(0x5c8),'handler':(_0x359ccd,_0x309e16)=>{const _0x59f65d=_0x48b1be;if(!_0x309e16)return![];const {value:_0x5820b8}=_0x309e16;return _0x359ccd[_0x59f65d(0x4fd)](_univerjs_core[_0x59f65d(0x621)])['syncExecuteCommand'](_univerjs_docs_ui[_0x59f65d(0x1a0)]['id'],{'alignType':_0x5820b8});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType'][_0x48b1be(0x5e0)],'id':_0x48b1be(0x242),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType']['OPERATION'],'id':_0x48b1be(0x13a),'handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x48b1be(0x61a),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core['createInternalEditorID'])(_0x48b1be(0x2b3)),ShapeTextEditorContainer$1='ShapeTextEditorContainer';function updateShapeData(_0x3ac055,_0x281634,_0x5c2423,_0x2989d,_0x544dfe,_0x4feeb5){const _0x1ad3be=_0x48b1be,_0x12abfc={'unitId':_0x281634,'subUnitId':_0x5c2423,'shapeId':_0x2989d,'shapeData':_0x4feeb5,'oldShapeJSON':_0x544dfe};return _0x3ac055[_0x1ad3be(0x636)](UpdateShapeDataCommand['id'],_0x12abfc);}function updateLineShapeData(_0x17bd40,_0x509323,_0xe1e745,_0x5715ba,_0x5554df,_0x1f5200){const _0x2556a1={'unitId':_0x509323,'subUnitId':_0xe1e745,'shapeId':_0x5715ba,'shapeData':_0x1f5200,'oldShapeJSON':_0x5554df};return _0x17bd40['executeCommand'](UpdateShapeDataCommand['id'],_0x2556a1);}function prepareShapeTextDocumentData(_0xc04021,_0x332b78){const _0x1a463e=_0x48b1be;var _0xe0ffe1;const {isHorizontal:_0x519338,textRect:_0x37c8fc,verticalAlign:_0x11e096}=_0x332b78,_0x521c8f=_0x519338?_0x37c8fc['width']:_0x37c8fc[_0x1a463e(0x613)],_0x18d0de=_univerjs_core['Tools'][_0x1a463e(0x316)](_0xc04021),_0x115f05=(_0xe0ffe1=_0x18d0de[_0x1a463e(0x3f9)])!==null&&_0xe0ffe1!==void 0x0?_0xe0ffe1:{},_0x43e6b0={..._0x115f05[_0x1a463e(0x2bd)],'centerAngle':_0x519338?0x0:_univerjs_engine_render[_0x1a463e(0x3d3)],'vertexAngle':_0x519338?0x0:_univerjs_engine_render[_0x1a463e(0x3d3)],'wrapStrategy':_univerjs_core['WrapStrategy'][_0x1a463e(0x401)]};if(_0x11e096!==void 0x0)_0x43e6b0['verticalAlign']=_0x11e096;if(_0x332b78[_0x1a463e(0x1a8)]!==void 0x0){var _0x2fa575;_0x43e6b0[_0x1a463e(0x1a8)]=_0x332b78[_0x1a463e(0x1a8)];const _0x161c40=(_0x2fa575=_0x18d0de[_0x1a463e(0x3f6)])===null||_0x2fa575===void 0x0?void 0x0:_0x2fa575['paragraphs'];if(_0x161c40)for(const _0x3b05cd of _0x161c40){if(!_0x3b05cd['paragraphStyle'])_0x3b05cd[_0x1a463e(0x463)]={};_0x3b05cd[_0x1a463e(0x463)][_0x1a463e(0x1a8)]=_0x332b78[_0x1a463e(0x1a8)];}}return _0x18d0de['documentStyle']={..._0x115f05,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x521c8f,'height':Number['POSITIVE_INFINITY']},'renderConfig':_0x43e6b0},_0x18d0de;}function _0x1fb6(_0x59d634,_0x3c3d33){_0x59d634=_0x59d634-0xf7;const _0x1d37e5=_0x1d37();let _0x1fb6af=_0x1d37e5[_0x59d634];return _0x1fb6af;}function stripShapeTextDocumentLayout(_0x57fbfd){const _0x215b2f=_0x48b1be;var _0x12ab3e;const _0x337c06=_univerjs_core[_0x215b2f(0x1f7)][_0x215b2f(0x316)](_0x57fbfd),_0x2d0ab2=(_0x12ab3e=_0x337c06[_0x215b2f(0x3f9)])!==null&&_0x12ab3e!==void 0x0?_0x12ab3e:{},_0x28d033={..._0x2d0ab2[_0x215b2f(0x2bd)]};return delete _0x28d033[_0x215b2f(0x4c7)],delete _0x28d033[_0x215b2f(0x608)],delete _0x28d033[_0x215b2f(0x131)],delete _0x28d033[_0x215b2f(0x331)],_0x337c06[_0x215b2f(0x3f9)]={..._0x2d0ab2,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x215b2f(0x10a)],'height':Number['POSITIVE_INFINITY']},'renderConfig':Object['keys'](_0x28d033)[_0x215b2f(0x42d)]>0x0?_0x28d033:void 0x0},_0x337c06;}var DrawingShape=class extends _univerjs_engine_render[_0x48b1be(0x41e)]{constructor(_0x468e15,_0x4e7456){const _0x67ee72=_0x48b1be;super(_0x468e15,_0x4e7456),_defineProperty(this,_0x67ee72(0x341),void 0x0),_defineProperty(this,_0x67ee72(0x3de),!![]),_defineProperty(this,'_drawingType',_univerjs_core[_0x67ee72(0x45a)][_0x67ee72(0x614)]),_defineProperty(this,_0x67ee72(0x183),!![]),this[_0x67ee72(0x341)]={..._0x4e7456},this[_0x67ee72(0x377)]();}[_0x48b1be(0x377)](){const _0x3bedb6=_0x48b1be;this['onTransformChange$'][_0x3bedb6(0x595)](_0x47c81e=>{const _0x29edf5=_0x3bedb6;this[_0x29edf5(0x265)](_0x47c81e);});}['setPrstGeom'](_0x57ec32){const _0x431b96=_0x48b1be;this[_0x431b96(0x341)][_0x431b96(0x555)]=_0x57ec32;}[_0x48b1be(0x431)](_0x7dd7b8){const _0x3d7298=_0x48b1be;this[_0x3d7298(0x341)][_0x3d7298(0x2e7)]=_0x7dd7b8,this[_0x3d7298(0x2d4)](!![]);}get[_0x48b1be(0x1ab)](){const _0x25dfb8=_0x48b1be;return this[_0x25dfb8(0x341)][_0x25dfb8(0x1ab)];}get[_0x48b1be(0x4dc)](){const _0x2ec501=_0x48b1be;return this[_0x2ec501(0x341)][_0x2ec501(0x4dc)];}['_updateSrcRectByTransform'](_0x237c04){const _0x25e9a0=_0x48b1be;if(this[_0x25e9a0(0x341)][_0x25e9a0(0x478)]==null||!this['_transformCalculateSrcRect'])return;const {width:_0x31ccfc,height:_0x4c219d}=this,{width:_0x50780e=0x0,height:_0x3a691b=0x0}=_0x237c04[_0x25e9a0(0x5a3)],{left:_0x3cf3d7=0x0,top:_0x5b049a=0x0,right:_0xd9a7a0=0x0,bottom:_0x52cffe=0x0}=this[_0x25e9a0(0x341)]['srcRect'];let _0x111b33=_0x3cf3d7,_0x2d1060=_0x5b049a,_0x50d19c=_0xd9a7a0,_0x40f724=_0x52cffe,_0x5018be=![];if(_0x50780e!==0x0&&_0x50780e!==_0x31ccfc){const _0xf84e39=_0x3cf3d7/_0x50780e,_0x172d67=_0xd9a7a0/_0x50780e;_0x111b33=_0x31ccfc*_0xf84e39,_0x50d19c=_0x31ccfc*_0x172d67,_0x5018be=!![];}if(_0x3a691b!==0x0&&_0x3a691b!==_0x4c219d){const _0x15747=_0x5b049a/_0x3a691b,_0x374ced=_0x52cffe/_0x3a691b;_0x2d1060=_0x4c219d*_0x15747,_0x40f724=_0x4c219d*_0x374ced,_0x5018be=!![];}if(_0x5018be)this[_0x25e9a0(0x2ae)]({'left':_0x111b33,'top':_0x2d1060,'right':_0x50d19c,'bottom':_0x40f724});}[_0x48b1be(0x2ae)](_0x127904){const _0x7f666=_0x48b1be;this[_0x7f666(0x341)][_0x7f666(0x478)]=_0x127904,this[_0x7f666(0x2d4)](!![]);}[_0x48b1be(0x1c1)](_0x6278d6){const _0x49dafc=_0x48b1be;this[_0x49dafc(0x341)][_0x49dafc(0x1d5)]=_0x6278d6,this['makeDirty'](!![]);}set[_0x48b1be(0x649)](_0x1ac6b4){const _0x585844=_0x48b1be;this[_0x585844(0x48a)]=_0x1ac6b4;}get[_0x48b1be(0x649)](){const _0xffd1af=_0x48b1be;if(!this['_transform'])this[_0xffd1af(0x2a2)]();const _0x57d76e=this[_0xffd1af(0x48a)][_0xffd1af(0x26c)]();return this[_0xffd1af(0x4a1)](_0x57d76e);}get[_0x48b1be(0x263)](){return this['_props']['shapeModel'];}get['shapeId'](){const _0x5ab179=_0x48b1be;return this[_0x5ab179(0x341)][_0x5ab179(0x1d8)];}get[_0x48b1be(0x5da)](){const _0x373382=_0x48b1be;return _univerjs_engine_render[_0x373382(0x464)][_0x373382(0x1ef)];}[_0x48b1be(0x1fc)](_0x550e3c,_0x2cbf41,_0x2fb4c4,_0x39e768){const _0x45dfe0=_0x48b1be,_0x1e6c83=this[_0x45dfe0(0x341)][_0x45dfe0(0x263)];if(!_0x1e6c83||!_0x2cbf41)return;const _0x5748ec=_0x2fb4c4!==null&&_0x2fb4c4!==void 0x0?_0x2fb4c4:this[_0x45dfe0(0x3c7)],_0x14987a=_0x39e768!==null&&_0x39e768!==void 0x0?_0x39e768:this['height'],_0x3c9fc7={'shapeType':_0x1e6c83[_0x45dfe0(0x607)](),'width':_0x5748ec,'height':_0x14987a},_0xd26e1d={'renderMode':_univerjs_pro_engine_shape[_0x45dfe0(0x4ac)][_0x45dfe0(0x1e6)],'oKey':this[_0x45dfe0(0x2ff)],'image':this[_0x45dfe0(0x341)][_0x45dfe0(0x1d5)],'angle':this[_0x45dfe0(0x2ed)]};_0x1e6c83['updateContext'](_0x3c9fc7),_0x550e3c['save']();const _0x40139f={'top':0x0,'left':0x0,'width':_0x5748ec,'height':_0x14987a};_0x1e6c83['render'](_0x550e3c,_0x40139f,_0xd26e1d),_0x550e3c[_0x45dfe0(0x44f)]();const _0x21528a=_0x1e6c83['getShapeTextData'](),_0x172531=_0x1e6c83[_0x45dfe0(0x3ca)](_0x40139f),_0x70fad=_0x1e6c83[_0x45dfe0(0x1a9)]();if(_0x21528a&&_0x172531&&!_0x70fad){_0x550e3c[_0x45dfe0(0x2a3)]();if(this[_0x45dfe0(0x3e0)]()['flipX'])_0x550e3c[_0x45dfe0(0x26b)](-0x1,0x1);const _0x59ca32=_0x5748ec/0x2,_0x1052e3=_0x14987a/0x2;_0x550e3c[_0x45dfe0(0x1ad)](-_0x59ca32,-_0x1052e3),_0x550e3c[_0x45dfe0(0x23b)](),this[_0x45dfe0(0x34c)](_0x550e3c,_0x21528a,_0x172531),_0x550e3c[_0x45dfe0(0x44f)]();}}[_0x48b1be(0x170)](_0x1bf391){}['_drawShapeText'](_0x4e271d,_0x2da572,_0xc9e5fc){const _0x562e93=_0x48b1be;if(this[_0x562e93(0x341)][_0x562e93(0x2e7)])return;if(_0x562e93(0x39c)in _0x2da572&&_0x2da572[_0x562e93(0x39c)]===![])this[_0x562e93(0x542)](_0x4e271d,_0x2da572,_0xc9e5fc);else this[_0x562e93(0x23d)](_0x4e271d,_0x2da572,_0xc9e5fc);}[_0x48b1be(0x542)](_0x5897db,_0x17bd04,_0x442d93){}[_0x48b1be(0x23d)](_0x15e3d8,_0x44affe,_0x9d40ac){const _0x4c4968=_0x48b1be;var _0x35b441,_0x171e94;const _0x4c0c00=this['_props'][_0x4c4968(0x3d1)];if(!_0x44affe['dataModel']||!_0x4c0c00){if(!_0x4c0c00)console[_0x4c4968(0x4dd)]('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}const _0x2c048d=_0x44affe[_0x4c4968(0x31a)],_0x395ffa=_0x2c048d['doc'],_0x480f35=(_0x35b441=_0x2c048d['va'])!==null&&_0x35b441!==void 0x0?_0x35b441:_univerjs_core[_0x4c4968(0x226)]['TOP'],_0x161d99=(_0x171e94=_0x2c048d['ha'])!==null&&_0x171e94!==void 0x0?_0x171e94:_univerjs_core[_0x4c4968(0x400)][_0x4c4968(0x63f)];if(!_0x395ffa)return;const _0x15af00=_0x44affe['isHorizontal'],_0x430a12=prepareShapeTextDocumentData(_0x395ffa,{'isHorizontal':_0x15af00!==![],'textRect':_0x9d40ac,'verticalAlign':_0x480f35,'horizontalAlign':_0x161d99}),_0xb73b98=new _univerjs_core[(_0x4c4968(0x39d))](_0x430a12),_0x4b9e6e=new _univerjs_engine_render[(_0x4c4968(0x3d5))](_0xb73b98),_0x4553cf=_univerjs_engine_render[_0x4c4968(0x324)][_0x4c4968(0x46b)](_0x4b9e6e,_0x4c0c00);console[_0x4c4968(0x4dd)](_0x430a12,_0xb73b98,_0x4553cf),_0x4553cf['calculate']();const _0x2bb562=new _univerjs_engine_render[(_0x4c4968(0x48c))](_0x4c4968(0xf9)+this['oKey'],_0x4553cf,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x2bb562[_0x4c4968(0x34e)](_0x9d40ac['width'],_0x9d40ac['height']),_0x15e3d8['save'](),_0x15e3d8[_0x4c4968(0x380)](_0x9d40ac[_0x4c4968(0x450)],_0x9d40ac['top']),_0x15e3d8[_0x4c4968(0x23b)](),_0x15e3d8[_0x4c4968(0x2da)](0x0,0x0,_0x9d40ac[_0x4c4968(0x3c7)],_0x9d40ac[_0x4c4968(0x613)]),_0x15e3d8[_0x4c4968(0x385)](),_0x2bb562[_0x4c4968(0x4d2)](_0x15e3d8),_0x15e3d8[_0x4c4968(0x44f)](),_0x2bb562[_0x4c4968(0x570)](),_0x4553cf[_0x4c4968(0x570)](),_0x4b9e6e[_0x4c4968(0x570)](),_0xb73b98['dispose']();}[_0x48b1be(0x53b)](_0x4bdf4f,_0x58ae37,_0x2a5eee=![]){const _0x2781f2=_0x48b1be;if(!this[_0x2781f2(0x16f)])return this[_0x2781f2(0x2d4)](![]),this;let {width:_0x139070,height:_0x63a08f,left:_0x436e35,top:_0x4c35a7}=this;const _0x4e9793=this[_0x2781f2(0x4c6)]();_0x139070=_0x4e9793['width'],_0x63a08f=_0x4e9793['height'],_0x436e35=_0x4e9793[_0x2781f2(0x450)],_0x4c35a7=_0x4e9793[_0x2781f2(0x566)];if(this[_0x2781f2(0x115)](_0x58ae37)){const {top:_0x92a4ac,left:_0x55ad33,bottom:_0xbe7bf2,right:_0x77300b}=_0x58ae37[_0x2781f2(0x247)];if(_0x139070+this[_0x2781f2(0x361)]+_0x436e35<_0x55ad33||_0x77300b<_0x436e35||_0x63a08f+this['strokeWidth']+_0x4c35a7<_0x92a4ac||_0xbe7bf2<_0x4c35a7)return this;}const _0x54b2fb=_0x436e35+_0x139070/0x2,_0x49d434=_0x4c35a7+_0x63a08f/0x2;let _0x44a27d=this[_0x2781f2(0x649)]['getMatrix']();if(this[_0x2781f2(0x341)][_0x2781f2(0x2e7)]){const _0x3f5f33=this[_0x2781f2(0x3e0)](),_0x3bac55=new _univerjs_engine_render['Transform']();_0x3bac55[_0x2781f2(0x3b3)]({..._0x3f5f33}),_0x44a27d=_0x3bac55['getMatrix']();}_0x4bdf4f[_0x2781f2(0x2a3)]();if(this['_props']['shapeModel'][_0x2781f2(0x581)]===!![]){}else _0x4bdf4f['transform'](_0x44a27d[0x0],_0x44a27d[0x1],_0x44a27d[0x2],_0x44a27d[0x3],_0x54b2fb,_0x49d434);return this['_draw'](_0x4bdf4f,_0x58ae37,_0x139070,_0x63a08f),_0x4bdf4f[_0x2781f2(0x44f)](),this[_0x2781f2(0x2d4)](![]),this;}[_0x48b1be(0x108)](_0x3dbca3){const _0x5f3c5b=_0x48b1be,{left:_0x3b54d4,top:_0x222f76,width:_0x185373,height:_0x2857ef}=this[_0x5f3c5b(0x4c6)](),_0x8bdf19=this[_0x5f3c5b(0x649)][_0x5f3c5b(0x351)](),_0x5e378a=_0x3b54d4+_0x185373/0x2,_0x52ab76=_0x222f76+_0x2857ef/0x2,_0x446d24=new _univerjs_engine_render[(_0x5f3c5b(0x5ec))]([_0x8bdf19[0x0],_0x8bdf19[0x1],_0x8bdf19[0x2],_0x8bdf19[0x3],_0x5e378a,_0x52ab76]),_0x552b4c=this[_0x5f3c5b(0x412)]();return(this[_0x5f3c5b(0x32b)]&&(_0x552b4c===null||_0x552b4c===void 0x0?void 0x0:_0x552b4c['classType'])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0x5f3c5b(0x14c)]?_0x552b4c[_0x5f3c5b(0x46d)][_0x5f3c5b(0x290)](_0x446d24):_0x446d24)[_0x5f3c5b(0x171)]()[_0x5f3c5b(0x590)](_0x3dbca3);}[_0x48b1be(0x64e)](_0x1f31c5){const _0x39ff4f=_0x48b1be,{left:_0x2a8635,top:_0x39a3f5,width:_0x99645d,height:_0x3814c0}=this[_0x39ff4f(0x4c6)](),_0xe443a1=_0x2a8635+_0x99645d/0x2,_0x4e0bf9=_0x39a3f5+_0x3814c0/0x2,_0x38d09f=this[_0x39ff4f(0x649)][_0x39ff4f(0x351)](),_0x34192e=new _univerjs_engine_render['Transform']([_0x38d09f[0x0],_0x38d09f[0x1],_0x38d09f[0x2],_0x38d09f[0x3],_0xe443a1,_0x4e0bf9]),_0x2b2644=this['getParent'](),_0x2b11e2=(this[_0x39ff4f(0x32b)]&&(_0x2b2644===null||_0x2b2644===void 0x0?void 0x0:_0x2b2644[_0x39ff4f(0x5da)])===_univerjs_engine_render[_0x39ff4f(0x464)][_0x39ff4f(0x14c)]?_0x2b2644[_0x39ff4f(0x46d)][_0x39ff4f(0x290)](_0x34192e):_0x34192e)[_0x39ff4f(0x171)]()['applyPoint'](_0x1f31c5),_0x3b5888=_0x99645d/0x2,_0x2aa3a0=_0x3814c0/0x2,_0x606840=this[_0x39ff4f(0x341)][_0x39ff4f(0x263)];if(_0x606840&&_0x606840[_0x39ff4f(0x1a9)]())return _0x606840['isHitLine'](_0x2b11e2['x'],_0x2b11e2['y'],_0x99645d,_0x3814c0);if(_0x2b11e2['x']>=-_0x3b5888-this[_0x39ff4f(0x361)]/0x2&&_0x2b11e2['x']<=_0x3b5888+this['strokeWidth']/0x2&&_0x2b11e2['y']>=-_0x2aa3a0-this[_0x39ff4f(0x361)]/0x2&&_0x2b11e2['y']<=_0x2aa3a0+this['strokeWidth']/0x2)return!![];return![];}[_0x48b1be(0x570)](){const _0x571afe=_0x48b1be;this[_0x571afe(0x341)]['shapeModel']=null,super[_0x571afe(0x570)]();}};function __decorateParam(_0x199199,_0x96a411){return function(_0x13941d,_0x2a9332){_0x96a411(_0x13941d,_0x2a9332,_0x199199);};}function __decorate(_0x4abc55,_0x322197,_0x27857f,_0x54726c){const _0x1e7321=_0x48b1be;var _0x235648=arguments[_0x1e7321(0x42d)],_0x472200=_0x235648<0x3?_0x322197:_0x54726c===null?_0x54726c=Object[_0x1e7321(0x25c)](_0x322197,_0x27857f):_0x54726c,_0x377e89;if(typeof Reflect===_0x1e7321(0x334)&&typeof Reflect[_0x1e7321(0x5c3)]===_0x1e7321(0x65d))_0x472200=Reflect[_0x1e7321(0x5c3)](_0x4abc55,_0x322197,_0x27857f,_0x54726c);else{for(var _0x4615c4=_0x4abc55['length']-0x1;_0x4615c4>=0x0;_0x4615c4--)if(_0x377e89=_0x4abc55[_0x4615c4])_0x472200=(_0x235648<0x3?_0x377e89(_0x472200):_0x235648>0x3?_0x377e89(_0x322197,_0x27857f,_0x472200):_0x377e89(_0x322197,_0x27857f))||_0x472200;}return _0x235648>0x3&&_0x472200&&Object[_0x1e7321(0x546)](_0x322197,_0x27857f,_0x472200),_0x472200;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core['Disposable']{constructor(_0x494e08,_0x16af05,_0xd70b39,_0x5b5964,_0x253a47){const _0x901222=_0x48b1be;super(),this[_0x901222(0x307)]=_0x494e08,this[_0x901222(0x5d9)]=_0x16af05,this['_localeService']=_0xd70b39,this[_0x901222(0x60e)]=_0x5b5964,this['_urlImageService']=_0x253a47;}['renderDrawingShape'](_0x2e259e,_0x2dd245){const _0x499b29=_0x48b1be,{transform:_0x109c29,drawingType:_0x1779ae,srcRect:_0x137da5,prstGeom:_0x569850,groupId:_0x53b54e,unitId:_0x356f96,subUnitId:_0x3b8a3d,drawingId:_0x139b22,isMultiTransform:_0x4fed9a,transforms:_0x577919,hidden:_0x1f8823}=_0x2e259e;if(_0x1779ae!==_univerjs_core[_0x499b29(0x45a)]['DRAWING_SHAPE'])return;if(!this['_drawingManagerService'][_0x499b29(0x594)]())return;if(_0x109c29==null)return;const _0x467983=_0x4fed9a&&_0x577919?_0x577919:[_0x109c29],_0x3aa6ae=[];for(const _0x1ed2ca of _0x467983){const {left:_0x1b9a3b,top:_0x49463e,width:_0x34f56d,height:_0x76c9bf,angle:_0x35db4e,flipX:_0x60e56f,flipY:_0x8d32d4,skewX:_0x2c00b7,skewY:_0xc2c6d4}=_0x1ed2ca,_0x4e8afc=_0x467983['indexOf'](_0x1ed2ca),_0x578569=(0x0,_univerjs_drawing[_0x499b29(0x1e7)])({'unitId':_0x356f96,'subUnitId':_0x3b8a3d,'drawingId':_0x139b22},_0x4fed9a?_0x4e8afc:void 0x0),_0x3bd5ad=_0x2dd245['getObjectIncludeInGroup'](_0x578569);if(_0x3bd5ad!=null){_0x3bd5ad[_0x499b29(0x2b4)]({'left':_0x1b9a3b,'top':_0x49463e,'width':_0x34f56d,'height':_0x76c9bf,'angle':_0x35db4e,'flipX':_0x60e56f,'flipY':_0x8d32d4,'skewX':_0x2c00b7,'skewY':_0xc2c6d4});continue;}const _0x591090=this['_drawingManagerService'][_0x499b29(0x30e)](_0x356f96,_0x3b8a3d),_0x20c8ed=_0x591090[_0x499b29(0x56f)](_0x139b22);if(_0x2dd245[_0x499b29(0x492)](_0x578569))continue;if(!this[_0x499b29(0x307)][_0x499b29(0x594)]())continue;const _0x42b0d9=this[_0x499b29(0x5d9)]['getShapeModel'](_0x356f96,_0x3b8a3d,_0x139b22);if(!_0x42b0d9)continue;const _0x660ef8=new DrawingShape(_0x578569,{...(0x0,_univerjs_pro_engine_shape[_0x499b29(0x5fb)])(_0x42b0d9[_0x499b29(0x607)]())?{..._0x1ed2ca,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x1ed2ca},'zIndex':_0x20c8ed===-0x1?_0x591090[_0x499b29(0x42d)]-0x1:_0x20c8ed,'shapeModel':_0x42b0d9,'localeService':this[_0x499b29(0x502)],'shapeId':_0x139b22,'unitId':_0x356f96,'subUnitId':_0x3b8a3d,'visible':_0x1f8823!==!![]});_0x2dd245[_0x499b29(0x261)](_0x660ef8,_univerjs_engine_render[_0x499b29(0x3d4)]);if(this[_0x499b29(0x307)][_0x499b29(0x202)]())_0x2dd245[_0x499b29(0x12c)](_0x660ef8);_0x53b54e&&(0x0,_univerjs_drawing_ui[_0x499b29(0x291)])({'drawingId':_0x53b54e,'unitId':_0x356f96,'subUnitId':_0x3b8a3d},_0x660ef8,_0x2dd245,this['_drawingManagerService']);if(_0x569850!=null)_0x660ef8[_0x499b29(0x63e)](_0x569850);if(_0x137da5!=null)_0x660ef8['setSrcRect'](_0x137da5);this[_0x499b29(0x369)](_0x660ef8,_0x42b0d9[_0x499b29(0x260)]()),_0x3aa6ae[_0x499b29(0x5ed)](_0x660ef8);}return _0x3aa6ae;}[_0x48b1be(0x369)](_0x28e7fd,_0x41b39f){const _0xa4ae9=_0x48b1be;var _0x5d0c23;const _0x5cf173=_0x41b39f[_0xa4ae9(0x664)];if(!_0x5cf173||_0x5cf173['fillType']!==_univerjs_pro_engine_shape[_0xa4ae9(0x328)][_0xa4ae9(0x313)]||!_0x5cf173[_0xa4ae9(0x4df)])return;const _0x140275=_0x5cf173[_0xa4ae9(0x4df)],_0x275617=(_0x5d0c23=_0x5cf173[_0xa4ae9(0x5c6)])!==null&&_0x5d0c23!==void 0x0?_0x5d0c23:_univerjs_pro_engine_shape['ImageSourceTypeEnum'][_0xa4ae9(0x3cf)],_0x4fe258=this['_imageIoService']['getImageSourceCache'](_0x140275,_0x275617);if(_0x4fe258){_0x28e7fd[_0xa4ae9(0x1c1)](_0x4fe258);return;}this[_0xa4ae9(0x258)](_0x28e7fd,_0x140275,_0x275617);}async[_0x48b1be(0x258)](_0x164047,_0x3ace98,_0x17da20){const _0x3fcd1b=_0x48b1be;let _0x3666e4;try{if(_0x17da20===_univerjs_pro_engine_shape[_0x3fcd1b(0x3ee)]['UUID'])_0x3666e4=await this[_0x3fcd1b(0x60e)][_0x3fcd1b(0x379)](_0x3ace98);else{if(_0x17da20===_univerjs_pro_engine_shape[_0x3fcd1b(0x3ee)][_0x3fcd1b(0x3cf)])try{_0x3666e4=await this[_0x3fcd1b(0x3cb)][_0x3fcd1b(0x379)](_0x3ace98);}catch{_0x3666e4=_0x3ace98;}else _0x3666e4=_0x3ace98;}}catch(_0xa4b834){console[_0x3fcd1b(0x363)](_0x3fcd1b(0x387),_0xa4b834);return;}const _0x5999b7=new window[(_0x3fcd1b(0x32c))]();_0x5999b7[_0x3fcd1b(0x4b1)]=()=>{const _0x494506=_0x3fcd1b;this[_0x494506(0x60e)]['addImageSourceCache'](_0x3ace98,_0x17da20,_0x5999b7),_0x164047[_0x494506(0x1c1)](_0x5999b7);},_0x5999b7[_0x3fcd1b(0x507)]=()=>{const _0x80894d=_0x3fcd1b;console['error'](_0x80894d(0x629),_0x3ace98);},_0x5999b7[_0x3fcd1b(0x287)]=_0x3666e4;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing[_0x48b1be(0x618)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x3,_univerjs_drawing['IImageIoService']),__decorateParam(0x4,_univerjs_core['IURLImageService'])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x245633,_0x197ae3,_0xf4b16d,_0x29097f,_0x38db03,_0x57d3cc){const _0x40d29b=_0x48b1be;super(),this[_0x40d29b(0x1c8)]=_0x245633,this[_0x40d29b(0x1cb)]=_0x197ae3,this['_drawingManagerService']=_0xf4b16d,this[_0x40d29b(0x246)]=_0x29097f,this[_0x40d29b(0x39e)]=_0x38db03,this[_0x40d29b(0x1ac)]=_0x57d3cc,this[_0x40d29b(0x3da)]();}['_initialize'](){const _0x5d00fc=_0x48b1be;this['_drawingAddListener'](),this[_0x5d00fc(0x20b)](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x201248=_0x48b1be;this[_0x201248(0x47f)](this[_0x201248(0x307)]['add$'][_0x201248(0x22b)](_0x181303=>{const _0x483997=_0x201248;this[_0x483997(0x4a7)](_0x181303);}));}['_commandExecutedListener'](){const _0x56aa6d=_0x48b1be;this[_0x56aa6d(0x47f)](this[_0x56aa6d(0x1c8)][_0x56aa6d(0x2a8)](_0x4bfea7=>{const _0x8c7d57=_0x56aa6d;if(_0x4bfea7['id']===_univerjs_pro_sheets_shape[_0x8c7d57(0x254)]['id']){var _0x8b7f55;const {unitId:_0x44cbf1,subUnitId:_0x3bea9d,shapeId:_0x420d57}=_0x4bfea7[_0x8c7d57(0x37c)],_0x1866e7=this[_0x8c7d57(0x11f)](_0x44cbf1);if(_0x1866e7==null)return;const {scene:_0x7f7806}=_0x1866e7,_0x425200=(0x0,_univerjs_drawing[_0x8c7d57(0x1e7)])({'unitId':_0x44cbf1,'subUnitId':_0x3bea9d,'drawingId':_0x420d57}),_0x45e0bc=_0x7f7806['getObjectIncludeInGroup'](_0x425200);if(!((_0x8b7f55=this[_0x8c7d57(0x1cb)][_0x8c7d57(0x11a)](_0x44cbf1))===null||_0x8b7f55===void 0x0?void 0x0:_0x8b7f55[_0x8c7d57(0x26a)](_univerjs_sheets_ui[_0x8c7d57(0x2b2)])[_0x8c7d57(0x192)](_0x3bea9d)))return![];if(_0x45e0bc)return;this['_insertShapes']([{'unitId':_0x44cbf1,'subUnitId':_0x3bea9d,'drawingId':_0x420d57}]);}}));}[_0x48b1be(0x28f)](){const _0x57ce32=_0x48b1be;this[_0x57ce32(0x47f)](this['_drawingManagerService'][_0x57ce32(0x102)][_0x57ce32(0x22b)](_0x56c4d7=>{_0x56c4d7['forEach'](_0x27e776=>{const _0x254e87=_0x1fb6,{unitId:_0x1edc41,subUnitId:_0x595d6d,drawingId:_0x59cc5f}=_0x27e776,_0x7e8089=this[_0x254e87(0x307)]['getDrawingByParam'](_0x27e776);if(_0x7e8089==null)return;const {transform:_0xa92781,drawingType:_0x54cce9,srcRect:_0x37867f,prstGeom:_0x1efd3a}=_0x7e8089;if(_0x54cce9!==_univerjs_core[_0x254e87(0x45a)][_0x254e87(0x614)])return;const _0xd48335=this[_0x254e87(0x11f)](_0x1edc41);if(_0xd48335==null)return;const {scene:_0x2c907d,transformer:_0x2954ca}=_0xd48335;if(_0xa92781==null)return!![];const _0x4adae1=(0x0,_univerjs_drawing[_0x254e87(0x1e7)])({'unitId':_0x1edc41,'subUnitId':_0x595d6d,'drawingId':_0x59cc5f}),_0x40ce0e=_0x2c907d[_0x254e87(0x492)](_0x4adae1);if(_0x40ce0e==null)return!![];_0x40ce0e[_0x254e87(0x2ae)](_0x37867f),_0x40ce0e['setPrstGeom'](_0x1efd3a);});}));}[_0x48b1be(0x485)](_0x3edf06,_0x5aa267){const _0x12e3ff=_0x48b1be,{unitId:_0x4e6c13,subUnitId:_0x4a003a,drawingId:_0x50256a}=_0x3edf06,_0x9c5a7d=this['_getSceneAndTransformerByDrawingSearch'](_0x4e6c13);if(_0x9c5a7d==null)return;const {scene:_0x4c33a8}=_0x9c5a7d,_0xf5e062=(0x0,_univerjs_drawing[_0x12e3ff(0x1e7)])({'unitId':_0x4e6c13,'subUnitId':_0x4a003a,'drawingId':_0x50256a}),_0x4f1bf4=_0x4c33a8[_0x12e3ff(0x492)](_0xf5e062);if(_0x4f1bf4==null)return;_0x4f1bf4[_0x12e3ff(0x1c1)](_0x5aa267);}[_0x48b1be(0x4a7)](_0x357aac){_0x357aac['forEach'](async _0xf8f398=>{const _0x3d22a5=_0x1fb6;var _0x761e36;const {unitId:_0x238d2a,subUnitId:_0x3a5920}=_0xf8f398,_0x4b69fd=this[_0x3d22a5(0x11f)](_0x238d2a),_0x2322c4=(_0x761e36=(0x0,_univerjs_drawing_ui[_0x3d22a5(0x347)])(this['_currentUniverService'],_0x238d2a))===null||_0x761e36===void 0x0?void 0x0:_0x761e36['subUnitId'];if(_0x4b69fd==null||_0x2322c4!==_0x3a5920)return;const _0x14be9c=this[_0x3d22a5(0x307)][_0x3d22a5(0x251)](_0xf8f398);if(_0x14be9c==null)return;if(_0x14be9c[_0x3d22a5(0x2b0)]!==_univerjs_core[_0x3d22a5(0x45a)][_0x3d22a5(0x614)])return;if((0x0,_univerjs_pro_engine_shape[_0x3d22a5(0x5fb)])((_0x14be9c[_0x3d22a5(0x384)]||{})[_0x3d22a5(0x5bc)])){const _0x3a5ae4=_0x14be9c['transform'];if(_0x3a5ae4)_0x14be9c[_0x3d22a5(0x649)]={..._0x3a5ae4,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x3d22a5(0x307)]['refreshTransform']([_0x14be9c]),this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x14be9c,_0x4b69fd[_0x3d22a5(0x1cf)]);});}['_getSceneAndTransformerByDrawingSearch'](_0x52abf7){const _0xd751eb=_0x48b1be;if(_0x52abf7==null)return;const _0x18b435=this[_0xd751eb(0x1cb)]['getRenderById'](_0x52abf7),_0x22ab53=_0x18b435===null||_0x18b435===void 0x0?void 0x0:_0x18b435['scene'];if(_0x22ab53==null)return null;return{'scene':_0x22ab53,'transformer':_0x22ab53[_0xd751eb(0x57f)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui[_0x48b1be(0x2f4)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x48b1be(0x13d)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x105434){const _0x19f5af=_0x48b1be;var _0x511636,_0x52aa50,_0x19e079,_0x40421f,_0x3120c6,_0x4c6c05,_0x3a77fd,_0x40e5fa,_0x27203b,_0x5bc79e,_0x28cbbc,_0xf5350a,_0xb39b59;const {unitId:_0x3ce924,subUnitId:_0x21d784,shapeId:_0x4048cf,shapeData:_0x4b4943,disableShapeOption:_0x32482e}=_0x105434,_0x1f1877=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x19f5af(0x319)]),_0x6205c4=(0x0,_univerjs_ui[_0x19f5af(0x425)])(_univerjs_core[_0x19f5af(0x621)]),_0xa664e1=(0x0,_univerjs_ui[_0x19f5af(0x425)])(_univerjs_core['IContextService']),_0x1d5353=(0x0,_univerjs_ui[_0x19f5af(0x425)])(ShapeUpdateController),_0x46d7f6=(0x0,_univerjs_ui[_0x19f5af(0x425)])(_univerjs_drawing[_0x19f5af(0x4f4)]),_0xe44362=(0x0,react[_0x19f5af(0x540)])(null),_0x2f6e2f=_0x4b4943['fill'],_0x22ac43=!!(_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x4df)]),[_0x24bca7,_0x25322d]=(0x0,react[_0x19f5af(0x47b)])((_0x511636=_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x187)])!==null&&_0x511636!==void 0x0?_0x511636:0x1),[_0x30726c,_0x242150]=(0x0,react['useState'])((_0x52aa50=_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x392)])!==null&&_0x52aa50!==void 0x0?_0x52aa50:_univerjs_pro_engine_shape['ImageFillModeEnum'][_0x19f5af(0x292)]),[_0x2a350e,_0x10a607]=(0x0,react[_0x19f5af(0x47b)])((_0x19e079=_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x327)])!==null&&_0x19e079!==void 0x0?_0x19e079:![]),[_0x3bfb5e,_0x35d218]=(0x0,react['useState'])((_0x40421f=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0x3120c6=_0x2f6e2f[_0x19f5af(0x29c)])===null||_0x3120c6===void 0x0?void 0x0:_0x3120c6['offsetX'])!==null&&_0x40421f!==void 0x0?_0x40421f:0x0),[_0x19bf88,_0x4e0dd]=(0x0,react[_0x19f5af(0x47b)])((_0x4c6c05=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0x3a77fd=_0x2f6e2f[_0x19f5af(0x29c)])===null||_0x3a77fd===void 0x0?void 0x0:_0x3a77fd[_0x19f5af(0x50c)])!==null&&_0x4c6c05!==void 0x0?_0x4c6c05:0x0),[_0x34c507,_0x1b866e]=(0x0,react[_0x19f5af(0x47b)])((_0x40e5fa=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0x27203b=_0x2f6e2f['imageTile'])===null||_0x27203b===void 0x0?void 0x0:_0x27203b[_0x19f5af(0x58e)])!==null&&_0x40e5fa!==void 0x0?_0x40e5fa:0x1),[_0x501fcc,_0x2d3917]=(0x0,react[_0x19f5af(0x47b)])((_0x5bc79e=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0x28cbbc=_0x2f6e2f[_0x19f5af(0x29c)])===null||_0x28cbbc===void 0x0?void 0x0:_0x28cbbc[_0x19f5af(0x443)])!==null&&_0x5bc79e!==void 0x0?_0x5bc79e:0x1),[_0x2a71b6,_0x325d7a]=(0x0,react[_0x19f5af(0x47b)])((_0xf5350a=_0x2f6e2f===null||_0x2f6e2f===void 0x0||(_0xb39b59=_0x2f6e2f[_0x19f5af(0x29c)])===null||_0xb39b59===void 0x0?void 0x0:_0xb39b59['alignment'])!==null&&_0xf5350a!==void 0x0?_0xf5350a:'tl'),_0x575690=_0x30726c===_univerjs_pro_engine_shape[_0x19f5af(0x4cc)][_0x19f5af(0x2cb)],_0x1094f9=Math['round']((0x1-_0x24bca7)*0x64),_0x146858=Math[_0x19f5af(0x269)](_0x34c507*0x64),_0x43ec52=Math[_0x19f5af(0x269)](_0x501fcc*0x64),_0x2a5020=_0x23c983=>_0x1f1877['t'](_0x23c983),_0x1ca427=[{'label':_0x2a5020(_0x19f5af(0x64a)),'value':'tl'},{'label':_0x2a5020(_0x19f5af(0x444)),'value':'t'},{'label':_0x2a5020(_0x19f5af(0x22d)),'value':'tr'},{'label':_0x2a5020(_0x19f5af(0x317)),'value':'l'},{'label':_0x2a5020(_0x19f5af(0x4c0)),'value':'ctr'},{'label':_0x2a5020(_0x19f5af(0x639)),'value':'r'},{'label':_0x2a5020(_0x19f5af(0x1d3)),'value':'bl'},{'label':_0x2a5020(_0x19f5af(0x4a5)),'value':'b'},{'label':_0x2a5020(_0x19f5af(0x395)),'value':'br'}],_0x44ca13=_0x3b846c=>{updateShapeData(_0x6205c4,_0x3ce924,_0x21d784,_0x4048cf,{'oldShapeData':{'fill':_0x2f6e2f?{..._0x2f6e2f}:void 0x0}},{'fill':{..._0x2f6e2f,..._0x3b846c}});},_0x54b32b=_0x291efe=>{const _0x59458b=_0x19f5af;_0x44ca13({'imageTile':{..._0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x59458b(0x29c)],..._0x291efe}});},_0x19d67e=()=>{var _0xdcce70;return(_0xdcce70=_0xe44362['current'])===null||_0xdcce70===void 0x0?void 0x0:_0xdcce70['click']();},_0xa541cf=async _0x319d03=>{const _0x2c22c9=_0x19f5af;var _0x3b77a4;const _0x25f1e2=(_0x3b77a4=_0x319d03['target'][_0x2c22c9(0x185)])===null||_0x3b77a4===void 0x0?void 0x0:_0x3b77a4[0x0];if(!_0x25f1e2)return;_0x319d03[_0x2c22c9(0x423)][_0x2c22c9(0x228)]='';const _0x12facb=await _0x46d7f6[_0x2c22c9(0x3a3)](_0x25f1e2);if(_0x12facb==null)return;const {imageSourceType:_0x2b35d8,source:_0x1f900d,base64Cache:_0x18037c}=_0x12facb,{image:_0xe0738f}=await(0x0,_univerjs_drawing[_0x2c22c9(0x3af)])(_0x18037c||'');_0x46d7f6[_0x2c22c9(0x4c8)](_0x1f900d,_0x2b35d8,_0xe0738f),updateShapeData(_0x6205c4,_0x3ce924,_0x21d784,_0x4048cf,{'oldShapeData':{'fill':_0x2f6e2f?{..._0x2f6e2f}:void 0x0}},{'fill':{..._0x2f6e2f,'fillType':_univerjs_pro_engine_shape[_0x2c22c9(0x328)]['PictureFill'],'fillImageSource':_0x1f900d,'fillImageSourceType':_0x2b35d8}}),_0x1d5353[_0x2c22c9(0x485)]({'unitId':_0x3ce924,'subUnitId':_0x21d784,'drawingId':_0x4048cf},_0xe0738f);},_0x22b6c1='univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200',_0x18069f='univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3';return(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x249),'children':[(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])('div',{'className':_0x19f5af(0x448),'children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x365))}),(0x0,react_jsx_runtime['jsxs'])(_0x19f5af(0x4b3),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x1e9),{'ref':_0xe44362,'type':'file','accept':_0x19f5af(0x1b6),'className':_0x19f5af(0x4e9),'onChange':_0xa541cf}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':'group\x20univer-relative\x20univer-inline-block','children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x2e9),{'type':_0x19f5af(0x2e9),'disabled':_0x32482e,'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':_0x19d67e,'children':(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x151),{'children':[_0x2a5020(_0x19f5af(0x362)),'\x20']})}),_0x22ac43&&(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x438),'children':(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x591),{'src':_0x2f6e2f===null||_0x2f6e2f===void 0x0?void 0x0:_0x2f6e2f[_0x19f5af(0x4df)],'alt':'','className':_0x19f5af(0x1f3)})})]})]})]}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x59f))}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x1db),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':_0x19f5af(0x4d6),'value':_0x1094f9,'disabled':_0x32482e,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x47aba5=>_0x47aba5+'%','parser':_0x187dbd=>(_0x187dbd===null||_0x187dbd===void 0x0?void 0x0:_0x187dbd[_0x19f5af(0x4c3)]('%',''))||'','onChange':_0x2f5854=>{const _0x4d0bcf=_0x19f5af,_0x257241=(0x64-Math['max'](0x0,Math['min'](0x64,_0x2f5854!==null&&_0x2f5854!==void 0x0?_0x2f5854:0x0)))/0x64;_0x25322d(_0x257241),_0x44ca13({'imageOpacity':_0x257241}),_0xa664e1[_0x4d0bcf(0xfc)](_univerjs_core[_0x4d0bcf(0x62c)],![]);},'onFocus':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design[_0x19f5af(0x4d3)],{'checked':_0x575690,'disabled':_0x32482e,'onChange':_0x1f36e6=>{const _0x2194da=_0x19f5af,_0x5c4b53=_0x1f36e6?_univerjs_pro_engine_shape[_0x2194da(0x4cc)][_0x2194da(0x2cb)]:_univerjs_pro_engine_shape[_0x2194da(0x4cc)][_0x2194da(0x292)];_0x242150(_0x5c4b53),_0x44ca13({'imageFillMode':_0x5c4b53});},'children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x151),{'className':_0x19f5af(0x456),'children':_0x2a5020('sheets-shape.fill.picture.tileAsTexture')})}),_0x575690&&(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':'\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','children':[(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020('sheets-shape.fill.picture.offsetX')}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x1db),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x19f5af(0x29a)],{'className':_0x19f5af(0x4d6),'value':_0x3bfb5e,'disabled':_0x32482e,'step':0x1,'onChange':_0x52ab1b=>{_0x54b32b({'offsetX':_0x52ab1b!==null&&_0x52ab1b!==void 0x0?_0x52ab1b:0x0}),_0x35d218(_0x52ab1b!==null&&_0x52ab1b!==void 0x0?_0x52ab1b:0x0);},'onFocus':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],![])})})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x18069f,'children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])('span',{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x58a))}),(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x4b3),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design[_0x19f5af(0x29a)],{'className':_0x19f5af(0x4d6),'value':_0x19bf88,'disabled':_0x32482e,'step':0x1,'onChange':_0x86a5e7=>{_0x54b32b({'offsetY':_0x86a5e7!==null&&_0x86a5e7!==void 0x0?_0x86a5e7:0x0}),_0x4e0dd(_0x86a5e7!==null&&_0x86a5e7!==void 0x0?_0x86a5e7:0x0);},'onFocus':()=>_0xa664e1['setContextValue'](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],![])})})]}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x153))}),(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x1db),'children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design[_0x19f5af(0x29a)],{'className':_0x19f5af(0x4d6),'value':_0x146858,'disabled':_0x32482e,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0xd0dd00=>_0xd0dd00+'%','parser':_0x4511d0=>(_0x4511d0===null||_0x4511d0===void 0x0?void 0x0:_0x4511d0[_0x19f5af(0x4c3)]('%',''))||'','onChange':_0x306832=>{const _0x232a43=_0x19f5af,_0x40d792=Math[_0x232a43(0x47e)](0.01,(_0x306832!==null&&_0x306832!==void 0x0?_0x306832:0x64)/0x64);_0x1b866e(_0x40d792),_0x54b32b({'scaleX':_0x40d792}),_0xa664e1['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],![])})})]}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x162))}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x1db),'children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design['InputNumber'],{'className':_0x19f5af(0x4d6),'value':_0x43ec52,'disabled':_0x32482e,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x15f31b=>_0x15f31b+'%','parser':_0x3a9c52=>(_0x3a9c52===null||_0x3a9c52===void 0x0?void 0x0:_0x3a9c52['replace']('%',''))||'','onChange':_0x524218=>{const _0x41c7e0=_0x19f5af,_0x58765f=Math[_0x41c7e0(0x47e)](0.01,(_0x524218!==null&&_0x524218!==void 0x0?_0x524218:0x64)/0x64);_0x2d3917(_0x58765f),_0x54b32b({'scaleY':_0x58765f}),_0xa664e1[_0x41c7e0(0xfc)](_univerjs_core[_0x41c7e0(0x62c)],![]);},'onFocus':()=>_0xa664e1['setContextValue'](_univerjs_core[_0x19f5af(0x62c)],!![]),'onBlur':()=>_0xa664e1[_0x19f5af(0xfc)](_univerjs_core[_0x19f5af(0x62c)],![])})})]}),(0x0,react_jsx_runtime[_0x19f5af(0x5e7)])(_0x19f5af(0x4b3),{'className':_0x18069f,'children':[(0x0,react_jsx_runtime['jsx'])(_0x19f5af(0x151),{'className':_0x22b6c1,'children':_0x2a5020(_0x19f5af(0x33d))}),(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_0x19f5af(0x4b3),{'className':_0x19f5af(0x612),'children':(0x0,react_jsx_runtime[_0x19f5af(0x586)])(_univerjs_design[_0x19f5af(0x634)],{'className':_0x19f5af(0x4d6),'value':_0x2a71b6,'options':_0x1ca427,'disabled':_0x32482e,'onChange':_0x51355b=>{_0x325d7a(_0x51355b),_0x54b32b({'alignment':_0x51355b});}})})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x19f5af(0x4d3)],{'checked':_0x2a350e,'disabled':_0x32482e,'onChange':_0x5d969c=>{_0x10a607(_0x5d969c),_0x44ca13({'imageRotateWithShape':_0x5d969c});},'children':(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x19f5af(0x456),'children':_0x2a5020(_0x19f5af(0x407))})})]});}function ShapeFillEditor(_0x3672e9){const _0x234bec=_0x48b1be;var _0xb406b3,_0x4d5156,_0x272326;const _0x18691d=(0x0,_univerjs_ui[_0x234bec(0x425)])(_univerjs_core[_0x234bec(0x319)]),_0x122319=(0x0,_univerjs_ui[_0x234bec(0x425)])(_univerjs_core[_0x234bec(0x621)]),_0x2475a3=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['IContextService']),{shapeData:_0x2ae041,isLineShape:_0x54ea48,unitId:_0x12de33,subUnitId:_0xaed3a5,shapeId:_0x54adb0,disableShapeOption:_0x2f67d1}=_0x3672e9,[_0x45f43d,_0x2f77bc]=(0x0,react[_0x234bec(0x47b)])(((_0xb406b3=_0x2ae041[_0x234bec(0x664)])===null||_0xb406b3===void 0x0?void 0x0:_0xb406b3[_0x234bec(0x396)])||_univerjs_pro_engine_shape['ShapeFillEnum']['SolidFill']),[_0x4ceefa,_0x3a423e]=(0x0,react[_0x234bec(0x47b)])(((_0x4d5156=_0x2ae041[_0x234bec(0x664)])===null||_0x4d5156===void 0x0?void 0x0:_0x4d5156[_0x234bec(0x503)])||_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x234bec(0x664)]),[_0x4e82b1,_0x2a4012]=(0x0,react[_0x234bec(0x47b)])(((_0x272326=_0x2ae041[_0x234bec(0x664)])===null||_0x272326===void 0x0?void 0x0:_0x272326['opacity'])||0x1),[_0xc27539,_0x5b392b]=(0x0,react['useState'])(![]);if(_0x54ea48)return null;const _0x3a219c=0x64-_0x4e82b1*0x64;return(0x0,react_jsx_runtime[_0x234bec(0x5e7)])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design['RadioGroup'],{'value':_0x45f43d,'disabled':_0x2f67d1,'onChange':_0x323627=>{const _0x50bfbb=_0x234bec;var _0x27514a;updateShapeData(_0x122319,_0x12de33,_0xaed3a5,_0x54adb0,{'oldShapeData':{'fill':{'fillType':(_0x27514a=_0x2ae041[_0x50bfbb(0x664)])===null||_0x27514a===void 0x0?void 0x0:_0x27514a['fillType']}}},{'fill':{'fillType':_0x323627}}),_0x2f77bc(_0x323627);},'direction':'vertical','children':[(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x60b)],{'value':_univerjs_pro_engine_shape[_0x234bec(0x328)]['NoFill'],'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x151),{'className':_0x234bec(0x456),'children':_0x18691d['t'](_0x234bec(0x462))})}),(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x60b)],{'value':_univerjs_pro_engine_shape[_0x234bec(0x328)]['SolidFill'],'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x151),{'className':_0x234bec(0x456),'children':_0x18691d['t'](_0x234bec(0x5ba))})}),(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x60b)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x234bec(0x4f0)],'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])('span',{'className':_0x234bec(0x456),'children':_0x18691d['t'](_0x234bec(0x3a1))})}),(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x60b)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum']['PictureFill'],'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x151),{'className':_0x234bec(0x456),'children':_0x18691d['t'](_0x234bec(0x23f))})})]}),_0x45f43d===_univerjs_pro_engine_shape[_0x234bec(0x328)]['SolidFill']&&(0x0,react_jsx_runtime[_0x234bec(0x5e7)])(_0x234bec(0x4b3),{'className':_0x234bec(0x579),'children':[(0x0,react_jsx_runtime[_0x234bec(0x5e7)])(_0x234bec(0x4b3),{'className':_0x234bec(0x2e0),'children':[(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x151),{'className':_0x234bec(0x495),'children':_0x18691d['t']('sheets-shape.fill.color')}),(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x280)],{'disabled':_0x2f67d1,'overlay':(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x234bec(0x4b7),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['ColorPicker'],{'value':_0x4ceefa,'onChange':_0x828cfd=>{const _0x2a99ef=_0x234bec;var _0x77e678;updateShapeData(_0x122319,_0x12de33,_0xaed3a5,_0x54adb0,{'oldShapeData':{'fill':{'color':(_0x77e678=_0x2ae041['fill'])===null||_0x77e678===void 0x0?void 0x0:_0x77e678[_0x2a99ef(0x503)]}}},{'fill':{'color':_0x828cfd}}),_0x3a423e(_0x828cfd),_0x5b392b(![]);}})}),'open':_0xc27539,'onOpenChange':_0x5b392b,'children':(0x0,react_jsx_runtime[_0x234bec(0x5e7)])('a',{'className':_0x234bec(0x2d7),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x234bec(0x38f)],{'className':_0x234bec(0x4ef),'extend':{'colorChannel1':_0x4ceefa}}),(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x234bec(0x59e)],{'className':(0x0,_univerjs_design[_0x234bec(0x144)])(_0x234bec(0xff),{'univer-rotate-180':_0xc27539})})]})})]}),(0x0,react_jsx_runtime[_0x234bec(0x5e7)])('div',{'className':_0x234bec(0x1c0),'children':[(0x0,react_jsx_runtime['jsx'])(_0x234bec(0x151),{'className':_0x234bec(0x5c5),'children':_0x18691d['t']('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime['jsx'])(_0x234bec(0x4b3),{'className':_0x234bec(0x63a),'children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_0x234bec(0x4b3),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x234bec(0x586)])(_univerjs_design[_0x234bec(0x29a)],{'className':'univer-w-full','value':_0x3a219c,'disabled':_0x2f67d1,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x19be1e=>_0x19be1e+'%','parser':_0x53083=>(_0x53083===null||_0x53083===void 0x0?void 0x0:_0x53083[_0x234bec(0x4c3)]('%',''))||'','onChange':_0x5f0da7=>{const _0x1b4775=_0x234bec,_0x4343c4=(0x64-Math['max'](0x0,Math[_0x1b4775(0x39a)](0x64,_0x5f0da7!==null&&_0x5f0da7!==void 0x0?_0x5f0da7:0x0)))/0x64;_0x2a4012(_0x4343c4),updateShapeData(_0x122319,_0x12de33,_0xaed3a5,_0x54adb0,{'oldShapeData':{'fill':{..._0x2ae041[_0x1b4775(0x664)],'fillType':_0x45f43d}}},{'fill':{..._0x2ae041[_0x1b4775(0x664)],'fillType':_0x45f43d,'opacity':_0x4343c4}}),_0x2475a3[_0x1b4775(0xfc)](_univerjs_core[_0x1b4775(0x62c)],![]);},'onFocus':()=>_0x2475a3['setContextValue'](_univerjs_core[_0x234bec(0x62c)],!![]),'onBlur':()=>{const _0x56456c=_0x234bec;_0x2475a3[_0x56456c(0xfc)](_univerjs_core[_0x56456c(0x62c)],![]);}})})})]})]}),_0x45f43d===_univerjs_pro_engine_shape[_0x234bec(0x328)][_0x234bec(0x4f0)]&&(0x0,react_jsx_runtime[_0x234bec(0x586)])(GradientFillEditor,{'shapeData':_0x2ae041,'disableShapeOption':_0x2f67d1,'onUpdate':_0x1e7ff6=>{const _0x5f01e0=_0x234bec;updateShapeData(_0x122319,_0x12de33,_0xaed3a5,_0x54adb0,{'oldShapeData':{'fill':{..._0x2ae041[_0x5f01e0(0x664)]}}},{'fill':{..._0x2ae041[_0x5f01e0(0x664)],..._0x1e7ff6}});}}),_0x45f43d===_univerjs_pro_engine_shape[_0x234bec(0x328)][_0x234bec(0x313)]&&(0x0,react_jsx_runtime[_0x234bec(0x586)])(ShapeImageFillEditor,{'unitId':_0x12de33,'subUnitId':_0xaed3a5,'shapeId':_0x54adb0,'shapeData':_0x2ae041,'disableShapeOption':_0x2f67d1})]});}function shapeGradientTypeToPickerType(_0x13e588){const _0x6f61cf=_0x48b1be;switch(_0x13e588){case _univerjs_pro_engine_shape[_0x6f61cf(0x55d)]['Linear']:return _0x6f61cf(0x2d3);case _univerjs_pro_engine_shape[_0x6f61cf(0x55d)][_0x6f61cf(0x3b5)]:return _0x6f61cf(0x5ad);case _univerjs_pro_engine_shape[_0x6f61cf(0x55d)][_0x6f61cf(0x19a)]:return _0x6f61cf(0x4e8);case _univerjs_pro_engine_shape[_0x6f61cf(0x55d)]['Diamond']:return'diamond';default:return _0x6f61cf(0x2d3);}}function pickerTypeToShapeGradientType(_0xda97c6){const _0x28d1ac=_0x48b1be;switch(_0xda97c6){case _0x28d1ac(0x2d3):return _univerjs_pro_engine_shape[_0x28d1ac(0x55d)][_0x28d1ac(0x662)];case _0x28d1ac(0x5ad):return _univerjs_pro_engine_shape[_0x28d1ac(0x55d)][_0x28d1ac(0x3b5)];case'angular':return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x28d1ac(0x19a)];case'diamond':return _univerjs_pro_engine_shape[_0x28d1ac(0x55d)]['Diamond'];default:return _univerjs_pro_engine_shape[_0x28d1ac(0x55d)][_0x28d1ac(0x662)];}}function GradientFillEditor(_0x548fce){const _0x47831e=_0x48b1be,{shapeData:_0xbdec5f,disableShapeOption:_0x5481ad,onUpdate:_0x5d5bd8}=_0x548fce,_0x27baa2=(0x0,react['useMemo'])(()=>{const _0x38138c=_0x1fb6;var _0x6f7fae;const _0x121a61=_0xbdec5f[_0x38138c(0x664)];return{'type':shapeGradientTypeToPickerType(_0x121a61===null||_0x121a61===void 0x0?void 0x0:_0x121a61['gradientType']),'angle':(_0x6f7fae=_0x121a61===null||_0x121a61===void 0x0?void 0x0:_0x121a61[_0x38138c(0x1b0)])!==null&&_0x6f7fae!==void 0x0?_0x6f7fae:0x5a,'stops':(_0x121a61===null||_0x121a61===void 0x0?void 0x0:_0x121a61[_0x38138c(0x641)])&&_0x121a61[_0x38138c(0x641)][_0x38138c(0x42d)]>=0x2?_0x121a61[_0x38138c(0x641)][_0x38138c(0x2d0)](_0x228041=>({'color':_0x228041[_0x38138c(0x503)],'offset':_0x228041['position']*0x64})):[{'color':(_0x121a61===null||_0x121a61===void 0x0?void 0x0:_0x121a61[_0x38138c(0x503)])||'#ffffff','offset':0x0},{'color':_0x38138c(0x4b8),'offset':0x64}]};},[_0xbdec5f[_0x47831e(0x664)]]),_0x282368=_0xadc900=>{const _0x420441=_0x47831e,_0x563bdb=pickerTypeToShapeGradientType(_0xadc900[_0x420441(0x568)]),_0x547180=_0xadc900[_0x420441(0x2ed)];_0x5d5bd8({'gradientType':_0x563bdb,'gradientAngle':_0x547180,'gradientStops':_0xadc900[_0x420441(0x30f)][_0x420441(0x2d0)](_0x239a14=>({'color':_0x239a14[_0x420441(0x503)],'position':_0x239a14[_0x420441(0x132)]/0x64}))});};return(0x0,react_jsx_runtime[_0x47831e(0x586)])(_0x47831e(0x4b3),{'className':_0x47831e(0x2a9),'children':(0x0,react_jsx_runtime[_0x47831e(0x586)])(_univerjs_design['GradientColorPicker'],{'value':_0x27baa2,'onChange':_0x282368})});}function _0x1d37(){const _0x58c768=['flipX','ShapeChevronIcon','_activeAdjustPointList','SetInlineFormatTextBackgroundColorCommand','_editingParams$','_reset','FlowchartMultiDocument','opacity','shape.type.left-right-arrow-callout','sheets-shape.fill.solidFill','Disposable','shapeType','Fragment','_baseTop','_contextService','ShapeSnip2DiagRectIcon','Callout','ShapeChordIcon','decorate','_activeImageId','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','fillImageSourceType','UPDATE','sheet.command.shape-doc-align','VIEW_MAIN_LEFT','clearAdjustValue','ShapeStar24Icon','shape.type.quad-arrow','ShapeRound2DiagRectIcon','FlowchartProcess','shape.type.border-callout1','Star4','onStarting','ShapeQuadArrowCalloutIcon','normal','MathMultiply','_getZoomRatio','ShapeActionButtonInformationIcon','shape.type.bent-arrow','sheets-shape.toggleFlipH','_sheetsShapeService','classType','NonIsoscelesTrapezoid','isArray','_sheetInterceptorService','asObservable','shape.type.chevron','OPERATION','RIGHT','cxnPointRadius','Star6','shape.type.right-arrow','set','sheets-shape.line.arrowType.arrow','jsxs','UNIVER_DOC','shape.type.action-button-blank','toolbar.horizontalAlignMode.main','getViewport','Transform','push','shape.type.accent-callout1','ShapeMathDivideIcon','ShapeDownArrowCalloutIcon','ShapeStar7Icon','UniverSheetsShapeUIPlugin','Chevron','ShapeSunIcon','_showConnectionSites','getAdjustInfoByName','_generatePasteMutations','attachRangeWithCoord','UpdateShapeDataCommand','shape.type.swoosh-arrow','isConnectorShape','getContextValue','_updateImageAdjValues','ShapeRightArrowIcon','ShapeDefaultConfig','shape.type.math-not-equal','getConnectionInfo','featurePluginUpdateNotification','DrawingApplyType','Star12','getSelectionRanges','getStartConnectInfo','getShapeType','vertexAngle','SetSheetsShapeRotateCommand','ShapeLeftCircularArrowIcon','Radio','_sidebarService','FlowchartExtract','_imageIoService','domX','ActionButtonInformation','current','univer-w-28','height','DRAWING_SHAPE','ShapeCallout1Icon','sheets-shape.line.dashType.longDashDot','UniverInstanceType','IDrawingManagerService','ShapeNoSmokingIcon','sheet.shape.edit.panel','_registerComponent','offsetX','Gear6','FlowchartDisplay','ShapeArrowTypeEnum','univer-flex-1\x20univer-overflow-auto','ICommandService','SheetsSelectionsService','FlowchartManualInput','ShapeDiamondIcon','sheets-shape.line.joinType.miter','_injector','DownArrowCallout','HalfFrame','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_getOrCreateShapeModel','focusDrawing','FOCUSING_PANEL_EDITOR','SetDrawingApplyMutation','onRendered','ShapeSwooshArrowIcon','Frame','shape.type.flow-chart-internal-storage','ChartX','setShouldShowAdjust','Select','_resetState','executeCommand','_sheetDrawingService','BentArrow','sheets-shape.fill.picture.align.r','univer-flex\x20univer-items-center\x20univer-gap-3','Module','shape.type.cube','ComponentManager','setPrstGeom','LEFT','shape.type.flow-chart-manual-input','gradientStops','sheetViewStartColumn','ShapeHexagonIcon','blockArrow','shape.type.plaque','registerFeatureMenuOffset','getDrawingSearch','shape.type.smiley-face','transform','sheets-shape.fill.picture.align.tl','touchDependencies','_baseShapeHeight','shape.type.flow-chart-merge','isHit','FlowchartDecision','NotchedRightArrow','computeConnectorResizeLayout','ShapeRectTextboxVerticalIcon','LineInv','shape.type.ribbon2','ShapeUpArrowCalloutIcon','MathNotEqual','ShapeActionButtonReturnIcon','OvalArrow','shape.type.ellipse-ribbon2','pick','onDblclick$','Star16','function','Small','ToggleSheetsShapeFlipCommand','shape.type.flow-chart-summing-junction','startY','Linear','Funnel','fill','getShapeDataById','prototype','Plugin','stopPropagation','getFocusDrawings','EquationShape','_cxtHandlerPointerMove','adjustValues','PREDEFINED_HOOK_NAME','ShapeStar5Icon','ShapeFlowChartMagneticTapeIcon','shape-text-','ShapeCurvedConnector3Icon','_closeShapeEditPanel','setContextValue','TOP','_registerMoveHandler','univer-text-gray-600\x20univer-transition-transform','bind','ActionButtonReturn','update$','ShapeHeptagonIcon','DEFAULT_PASTE','ShapeTeardropIcon','doc','shape.type.flow-chart-delay','getInverseCoord','ShapeActionButtonBackPreviousIcon','POSITIVE_INFINITY','auto','CENTER','shape.type.math-divide','shape.type.pentagon','getUnit','skeleton','univer-relative\x20univer-size-full\x20univer-overflow-visible','Star7','Arc','SELECTOR','isRender','_handleFreeEndpointMove','_initSelection','ShapeFlowChartPunchedCardIcon','sheets-shape.shapeStyle','getRenderById','Ellipse','shape.type.plus','editorHeight','shape.type.bevel','_getSceneAndTransformerByDrawingSearch','endArrow','ShapeFlowChartConnectorIcon','sheet.command.set-shape-text-horizontal-align','shape.type.action-button-information','shape.type.flow-chart-manual-operation','ShapeLeftBracketIcon','ShapeEllipseRibbonIcon','VIEW_MAIN_TOP','MIDDLE','getConnectorLinePoints','AlignBottomIcon','#4285f4','attachTransformerTo','ShapeCurvedConnector3Arrow2Icon','generateRandomId','vertical','register','verticalAlign','offset','shape.type.right-bracket','PieWedge','_handleConnectedEndpointMove','shape.type.square-tabs','ShapeWaveIcon','LeftRightArrow','UturnArrow','sheet.operation.open-sheet-shape-format-panel','shape.type.callout1','BentUpArrow','Inject','ShapeRightArrowCalloutIcon','engine','SheetDrawingAnchor','UpDownArrowCallout','ShapeFlowChartPredefinedProcessIcon','_isDrawingShapePointDown','clsx','_highlightedSiteIndex','_sheetBasicShapeConnectionPointController','ShapeFlowChartCollateIcon','setCursor','FlowChartInputOutput','sheets-shape.line.arrowType.stealthArrow','ShapeMathMinusIcon','GROUP','HorizontalScroll','_activeShapeInfo','shape.type.accent-callout2','shape.type.flow-chart-document','span','onReady','sheets-shape.fill.picture.scaleX','AlignTopIcon','FlowchartMagneticTape','FOCUSING_COMMON_DRAWINGS','ShapeFlowChartProcessIcon','Donut','_createShapeAdjustControls','enumerable','_baseHeight','parse','useLeftAndRightArrow','refreshAdjustControls','FlowchartDelay','horizontal','shape.type.star10','sheets-shape.fill.picture.scaleY','Round','mainComponent','ShapeLineDashEnum','sheets-shape.line.beginArrowType','Callout2','ShapeLeftUpArrowIcon','Sun','sheets-shape.line.sketchType.curved','ShapeEditor','ShapePentagonIcon','shape.type.snip-round-rect','focus$','visible','getDrawingPoints','invert','DashDot','shape.type.ellipse','shape.type.border-callout3','Snip2DiagRect','shape.type.bent-connector3','setAdjustValueByName','_registerDrawingMoveHandler','basicShape','Freehand','getEndConnectInfo','shape.type.octagon','SHEET_VIEWPORT_KEY','ShapeMathEqualIcon','shape.type.rect-textbox-vertical','IrregularSeal2','icon','MathPlus','isDrawingObject','ShapeMathMultiplyIcon','files','getBatchAddOp','imageOpacity','shape.type.chord','_findShapeAtPoint','LeftBracket','SnipRoundRect','WedgeEllipseCallout','shape.type.left-right-circular-arrow','ISheetClipboardService','ShapeCanIcon','find','shape.type.cloud-callout','getSkeleton','_handleBasicShapeUpdateConnectorLineShape','next','ShapeModel','ShapeDoubleWaveIcon','None','_initSheetChange','sheets-shape.line.sketchType.none','Angular','ShapeBentArrowIcon','ShapeActionButtonBeginningIcon','toDisposable','BlockArrow','changeStart$','AlignOperationCommand','sheets-shape.line.dashType.longDashDotDot','Teardrop','Bevel','ShapeFlowChartManualInputIcon','sheets-shape.config','LeftCircularArrow','CUT','horizontalAlign','isLineShape','_baseLeft','unitId','_sheetDrawingShapeRenderController','translate','setDocumentData','ShapeFrameIcon','gradientAngle','shape.type.star4','ShapeFlowChartOffpageConnectorIcon','IEditorService','_addShapeAdjustControl','shape.type.uturn-arrow','image/*','getCurrentLastSelection','align.middle','computeStraightConnectorLayout','BorderCallout1','callout','UpdateConnectorRelationCommand','shape.type.rect-textbox-horizontal','worldRect','ShapeGear9Icon','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','setFillImage','_addControl','toolbar.resetColor','11yzawKC','ShapeRectIcon','sheets-shape.line.capType.flat','disableObjectsEvent','_commandService','RemoveSheetsShapeMutation','shape.type.sun','_renderManagerService','useAbsolutePosition','useKeyboardEvent','sketchType','scene','_isStartConnectorPoint','univer-absolute','IUniverInstanceService','sheets-shape.fill.picture.align.bl','getDocumentData','image','ShapeBorderCallout2Icon','sheets-shape.line.arrowSize.medium','shapeId','startArrow','ShapeLeftBraceIcon','univer-w-20','gdRefX','memo','SetShapeTextVerticalAlignCommand','IRenderManagerService','SquareTabs','_baseDrawingRect','getCurrentScrollState','ShapeCurvedDownArrowIcon','ShapeFunnelIcon','ShapeDodecagonIcon','Path','getDrawingShapeKeyByDrawingSearch','sheets-shape.deleteShape','input','Decagon','shape.type.flow-chart-magnetic-disk','_generateCopyPasteMutations','isHorizontal','StraightConnector1','SHAPE','shape.type.diag-stripe','drawWith','shape.type.plaque-tabs','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','LeftBrace','shape.type.home-plate','shape.type.pie-wedge','Tools','startConnectionDetection','shape.type.hexagon','36477400tELLSF','_clearConnectionSites','_draw','endConnectionDetection','shape.type.decagon','SetSheetsShapeTextVerticalToggleCommand','_focusedDrawings','remove$','getDrawingEditable','ShapeArrowSizeEnum','ShapeOctagonIcon','Callout3','shape.type.snip1-rect','getSheetCommandTarget','shape.type.up-arrow','values','_updateAdjustControlPositions','_commandExecutedListener','shape.type.irregular-seal2','getBasicShapeRotateBound','shape.type.wedge-round-rect-callout','ShapeArcIcon','univer-box-border\x20univer-px-4\x20univer-text-sm','permission.dialog.editErr','ShapeTrapezoidIcon','DRAWING_DOM','_baseWidth','getCurrentSkeleton','clearTimeout','ShapeFlowChartDelayIcon','ShapeUpDownArrowCalloutIcon','shape.type.snip2-same-rect','_connectorObjects','_baseShapeLeft','line','style','getSkeletonParam','ShapeTriangleIcon','ShapeCurvedRightArrowIcon','ShapeBevelIcon','ShapeMathPlusIcon','sheets-shape.line.dashType.longDash','_createCopyInfoByRange','ShapeLightningBoltIcon','VerticalAlign','EllipseRibbon','value','shape.type.corner-tabs','QuadArrow','subscribe','ShapeWedgeRoundRectCalloutIcon','sheets-shape.fill.picture.align.tr','SheetPermissionCheckController','align.right','shape.type.right-arrow-callout','sheets-shape.rotateLeft90','getShapePopupMenus','1429583YMOifK','AccentCallout3','getColorFromTheme','RemoveSheetCommand','shape.type.trapezoid','gdRefY','Solid','shape-adjust-point-','beginPath','iterator','_drawRichText','sqrt','sheets-shape.fill.pictureFill','ConnectorCoordinateTransform','ShapeFlowChartDisplayIcon','sheet.operation.close-sheet-shape-format-panel','ShapeFlowChartInputOutputIcon','COLOR_PICKER_COMPONENT','ShapePieIcon','_currentUniverService','viewBound','_context','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','_registerGroupFeaturePasteHook','AccentBorderCallout2','shape.type.math-plus','registerFeaturePasteHook','Dodecagon','_shapes','ShapeSquareTabsIcon','getDrawingByParam','blur','sheets-shape.line.dashType.squareDot','InsertSheetsShapeMutation','getTransformer','EMPTY','shape.type.wave','_loadAndSetImage','shape.type.block-arc','ShapeLineInvIcon','getZoomRatio','getOwnPropertyDescriptor','rectangle','ShapeFlowChartMergeIcon','_registerShapeMenu','getShapeData','addObject','ShapeBorderCallout3Icon','shapeModel','editingParams$','_updateSrcRectByTransform','Rectangle','WorksheetEditPermission','includes','round','with','scale','clone','undo','FOCUSING_SHAPE_TEXT_EDITOR','ShapeChartPlusIcon','Heptagon','_initPermission','_adjHandlerPointerMove','ShapeRound2SameRectIcon','some','computeConnectorRouteLayout','onPointerMove$','shape.type.flow-chart-or','ShapeStraightConnector1Icon','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','toolbar.fillColor.main','shape.type.math-equal','_handleConnectorPointerUp','shape.type.teardrop','ShapeAccentBorderCallout3Icon','ShapeBentConnector3Arrow2Icon','Dropdown','shape.type.vertical-scroll','shape.type.curved-connector3','DoubleWave','ShapeActionButtonForwardNextIcon','flipY','capType','src','FlowchartCollate','ShapeFlowChartOrIcon','FlowchartOnlineStorage','changeShapeType','abs','FlowChartOfflineStorage','ShapeActionButtonMovieIcon','_shapeUpdateListener','multiply','insertGroupObject','Stretch','cxnIndex','RoundRect','1814631WFVSAN','sheets-shape.line.capType.round','shape.type.funnel','ShapePlaqueTabsIcon','ShapeStar12Icon','InputNumber','LongDashDot','imageTile','Ribbon','_getDrawingRect','hasOwnProperty','Star32','RightArrowCallout','_setTransForm','save','Flat','BorderCallout3','ShapeStar10Icon','SetShapeTextHorizontalAlignCommand','onCommandExecuted','univer-pt-2','cxnPointFill','shape.type.star12','isFinite','pushUndoRedo','setSrcRect','UpdateLineShapeResizeCommand','drawingType','redo','SheetSkeletonManagerService','SHAPE_TEXT','transformByState','RadioGroup','ShapeMoonIcon','getActualSize','univer-text-gray-500','shape.type.parallelogram','COMMAND','filter','StealthArrow','renderConfig','ShapeActionButtonHomeIcon','shape.type.heart','shape.type.star6','shape.type.no-smoking','point','FoldedCorner','HomePlate','_draggingConnectorId','shape.type.gear6','ShapeFlowChartTerminatorIcon','_getShapeAdjustInfosById','SheetSkeletonService','RoundDot','Tile','ChartPlus','shape.type.half-frame','_getConnectionSiteAngle','toStringTag','map','FlowchartDocument','Medium','linear','makeDirty','shape.type.math-multiply','BentConnector3','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','_getScrollInfo','FlowchartPredefinedProcess','rect','_clearControls','UpArrow','_updateShapeAdjustControls','clipByShape','ShapeEllipseRibbon2Icon','univer-flex\x20univer-items-center\x20univer-justify-between','ShapeAccentBorderCallout1Icon','ActionButtonBackPrevious','ShapeParallelogramIcon','sheets-shape.toggleTextVertical','ShapeRibbonIcon','_updateTransform','isEditing','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','button','ShapeLeftArrowCalloutIcon','Line','getPrototypeOf','angle','ShapeBentUpArrowIcon','Can','10496688cTiLim','MathDivide','displayName','localToWorld','DrawingRenderService','shape.type.round1-rect','useCallback','ShapeLeftRightCircularArrowIcon','VIEW_MAIN_LEFT_TOP','removeLinePoints','ShapeCallout3Icon','worksheet','ShapeActionButtonDocumentIcon','_imageShapeClipController','ResetInlineFormatTextBackgroundColorCommand','oKey','COPY_TYPE','lineShapeId','WrapStrategy','align.center','shape.type.frame','useObservable','ShapeDonutIcon','_drawingManagerService','ShapeChartXIcon','shape.type.action-button-end','BUTTON_SELECTOR','sheet.command.set-shape-text-vertical-align','_getShapeInfo','shape.type.flow-chart-alternate-process','getDrawingOrder','stops','Dash','FlowchartPreparation','setSelectionRanges','PictureFill','ShapeStar8Icon','ShapeFlowChartOfflineStorageIcon','deepClone','sheets-shape.fill.picture.align.l','shape.type.straight-connector1','LocaleService','dataModel','ShapeLeftRightArrowIcon','SolidLine','ShapeWedgeEllipseCalloutIcon','shape.type.heptagon','connector-handler-','FlowchartTerminator','_clearShapeAdjustControls','sheets-shape.line.arrowSize.large','registerClipDelegate','DocumentSkeleton','shape.type.star8','MathEqual','imageRotateWithShape','ShapeFillEnum','flowchart','ShapeFlowChartDocumentIcon','isInGroup','Image','FlowchartManualOperation','ShapeRound1RectIcon','open','ShapeActionButtonSoundIcon','wrapStrategy','univer-size-full','ShapeDownArrowIcon','object','shape.type.donut','getAdjustValueByName','RightBracket','_shapeId','changing$','shape.type.ellipse-ribbon','shape.type.striped-right-arrow','ShapeLineCapEnum','sheets-shape.fill.picture.alignment','viewportScrollX','_sheetSkeletonService','_sheetPermissionCheckController','_props','ShapeCurvedUpArrowIcon','index','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','SquareDot','adjHandleSize','getCurrentUnitInfo','univer-flex\x20univer-flex-col\x20univer-gap-3','FORMAT','_createControls','marginTop','_drawShapeText','ShapeRightBraceIcon','resize','sheetViewStartRow','shape.type.circular-arrow','getMatrix','ShapeDecagonIcon','ShapeDiagStripeIcon','clip-adj-','sheets-shape.line.solidLine','Observable','buildClipPath','_copyInfo','FlowchartOffPageConnector','ShapeHeartIcon','BUTTON','floor','\x20px','_shapeService','FlowchartPunchedCard','ShapeBentConnector3Arrow1Icon','strokeWidth','sheets-shape.fill.picture.insert','error','ShapeLineJoinEnum','sheets-shape.fill.picture.source','shape.type.flow-chart-offpage-connector','packageName','ShapeVerticalScrollIcon','_loadShapePictureFill','_univerInstanceService','getEditing','size','_subUnitId','getShapeModel','PlaqueTabs','renderDrawingShape','Snip2SameRect','getCurrentRangeDisable$','FlowchartPunchedTape','_sheetCanvasPopManagerService','CornerTabs','getShapeTypeById','_init','ShapeStar32Icon','getImage','getSheetBySheetId','shape.type.left-arrow','params','ShapePieWedgeIcon','undefined','shape.type.straight-connector2','translateWithPrecision','sheets-shape.line.endArrowType','shape.type.left-arrow-callout','UniverSheetsDrawingUIPlugin','data','clip','enableObjectsEvent','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','drawing.operation.set-drawing-active','_adjHandlerPointerUp','shape.type.star24','_activeShapeAdjustPointList','sheetTransform','IMenuManagerService','ShapeFlowChartMagneticDiskIcon','PaintBucketDoubleIcon','getObject','adjName','imageFillMode','reduce','VIEW_MAIN','sheets-shape.fill.picture.align.br','fillType','shapeKey','sheet.command.menu-insert-shape','shape.type.flow-chart-sort','min','IContextService','isRichText','DocumentDataModel','_drawingRenderService','_addShapeConnectorHandlerObjects','MEDIA','sheets-shape.fill.gradientFill','Circle','saveImage','setHighlighted','RibbonInsertGroup','6171qgbdNp','sheets-shape-ui','sheet.shape.picker.component','shape.type.arc','Vector2','ShapeWedgeRectCalloutIcon','shape.type.rt-triangle','shape.type.wedge-rect-callout','WorkbookEditablePermission','getImageSize','shape.type.flow-chart-terminator','UniverSheetsShapePlugin','_findNearestConnectionSite','composeMatrix','group','Radial','IrregularSeal1','SetShapeTextFontSizeDecreaseCommand','_isStartAdjusting','ShapeNotchedRightArrowIcon','lineJoinType','156860dcLTUC','ThemeService','onPointerDown$','Octagon','worldPoint','gdRefAng','cxnPointStroke','LeftRightRibbon','Plaque','ShapePositionWrapper','ShapeStripedRightArrowIcon','shape.type.up-down-arrow','width','shape.type.wedge-ellipse-callout','Pie','getShapeTextRect','_urlImageService','shape.type.flow-chart-extract','CurvedLeftArrow','updateContext','URL','_attachAdjustEvent','localeService','has','VERTICAL_ROTATE_ANGLE','DRAWING_OBJECT_LAYER_INDEX','DocumentViewModel','DRAWING_IMAGE','shape.type.flow-chart-decision','IConfigService','_rerouteConnectorLine','_initialize','shape.type.accent-border-callout2','setShapeProps','shapeData','_transformCalculateSrcRect','_currentConnectionTarget','getState','relation','rotate(','ShapeChartStarIcon','55881NcQzUv','FlowchartMerge','getViewportByCell','_executeConnectionCommand','ShapeAccentCallout1Icon','ShapeQuadArrowIcon','ShapeAccentBorderCallout2Icon','name','sheets-shape.line.endArrowSize','shape.type.left-brace','ImageSourceTypeEnum','sheets-shape.hidePanel','ShapePlusIcon','univer-mb-2','section','routeConnectorLineShape','ShapeFlowChartDecisionIcon','getBoundingClientRect','body','objects','_currentScene','documentStyle','SheetInterceptorService','ShapeRoundRectIcon','complete','shape.type.star16','ShapeFlowChartSortIcon','_getConnectPointInfo','HorizontalAlign','WRAP','registerCommand','BOTTOM','__esModule','calcAdjValue','getBatchUpdateOp','sheets-shape.fill.picture.rotateWithShape','start','ShapeUpDownArrowIcon','isCurvedConnectorShape','_openShapeEditPanel','BasicShape','AccentCallout2','none','ShapePlaqueIcon','FlowchartMagneticDrum','SheetScrollManagerService','getParent','ActionButtonEnd','CurvedUpArrow','cxnPointStrokeWidth','shape.type.flow-chart-magnetic-tape','Corner','LeftUpArrow','activeSheet$','ShapeCircularArrowIcon','symbol','Miter','_calculateFreeEndpointAngle','Shape','_index','shape.type.snip2-diag-rect','_groupCopyPasteController','shape.type.curved-down-arrow','target','Other','useDependency','getAncestorScale','ShapeLeftRightRibbonIcon','_isOpenedShapeEditPanel','SetShapeTextFontSizeCommand','_executeConnectedRouteResizeCommand','shape-text-editor','BehaviorSubject','length','MenuItemType','getConnectionSiteList','ShapeGear6Icon','setEditing','sheets-shape.line.sketchType.title','ShapeBlockArcIcon','HorizontallyIcon','ShapeUturnArrowIcon','merge','CurvedRightArrow','\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','#bcbcbc','760PxhoSe','getConnectionRelation','changeEnd$','Accordion','ShapeActionButtonEndIcon','toPrimitive','ShapeCurvedConnector3Arrow1Icon','SHEET_SHAPE_UI_PLUGIN','KeyCode','scaleY','sheets-shape.fill.picture.align.t','getAdjustNames','Pentagon','_addShapeConnectorHandlerObject','univer-flex\x20univer-flex-col\x20univer-gap-2','syncExecuteCommand','blockExecuteWithoutPermission','sheets-shape.line.dashType.roundDot','SmileyFace','ShapeBentConnector3Icon','_isShouldShowDrawingShapeAdjust','restore','left','shape.type.gear9','isNaN','INSERT','#FFFFFF','image-panel.crop.shape','univer-text-sm','Curved','0.21.1','version','DrawingTypeEnum','shape.type.flow-chart-predefined-process','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','onPointerUp$','lineType','ShapeFlowChartSummingJunctionIcon','discreteRangeToRange','interceptCommand','sheets-shape.fill.noFill','paragraphStyle','RENDER_CLASS_TYPE','collapsed','sheet.command.set-shape-text-font-size-increase','StripedRightArrow','transformToDrawingPosition','ShapeAccentCallout2Icon','shape.type.cloud','create','ShapeIrregularSeal1Icon','ancestorTransform','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','shape.type.round-rect','useMemo','_moveConnectorWithShape','custom','Moon','dashType','SheetsShapeService','startX','_menuManagerService','srcRect','ShapeHorizontalScrollIcon','NoLine','useState','shape.type.star32','getDrawingData','max','disposeWithMe','ShapeEllipseIcon','textRect','_componentManager','ShapeSnip1RectIcon','CROSSHAIR','updateShapeFillImage','shape.type.lightning-bolt','ShapeRibbon2Icon','_lastEditingShapeKey','shape.type.chart-plus','_transform','CommandType','Documents','Plus','_initEvents','getShapeTextData','NoSmoking','ShapeFlowChartOnlineStorageIcon','getObjectIncludeInGroup','align.bottom','addClipboardHook','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Ribbon2','call','_sidebarDisposable','shape.type.up-arrow-callout','shape.type.chart-x','Rect','shape.type.brace-pair','switchMap','ShapeHalfFrameIcon','ShapeStar16Icon','ShapeAccentCallout3Icon','transformForAngle','RightJustifyingIcon','FlowchartSummingJunction','shape.type.curved-up-arrow','sheets-shape.fill.picture.align.b','_registerImageShapeClipDelegate','_insertShapes','Star5','stringify','updateConnectionDetection','SwooshArrow','ShapeRenderModeEnum','CURSOR_TYPE','isStartConnectorPoint','ShapeSmileyFaceIcon','ShapeFlowChartMagneticDrumIcon','onload','clip-','div','RibbonStartGroup','VerticalCenterIcon','shape.type.corner','univer-rounded-lg\x20univer-p-3','#000000','shape.type.rect','sheets-shape.openPanel','DependentOn','onTransformChange$','BracePair','shape.type.left-circular-arrow','_baseShapeWidth','sheets-shape.fill.picture.align.ctr','VerticalScroll','_isImagePointerDown','replace','ShapeRectTextboxHorizontalIcon','_initCopyPaste','getRealBound','centerAngle','addImageSourceCache','gdRefR','ShapeFlowChartPreparationIcon','drawingId','ImageFillModeEnum','Round1Rect','stroke','shape.type.callout3','Large','Heart','draw','Checkbox','_baseShapeTop','ShapeActionButtonHelpIcon','univer-w-full','onScrollAfter$','ShapeUpArrowIcon','shape.type.math-minus','ShapeHomePlateIcon','shape.type.action-button-document','subUnitId','warn','ShapeFlowChartPunchedTapeIcon','fillImageSource','setOnSavingEditorData','forEach','unsubscribe','getFreeze','setTimeout','ShapeStraightConnector2Icon','ShapeActionButtonBlankIcon','_shapeTextEditingService','angular','univer-hidden','ShapeFolderCornerIcon','ShapeCloudCalloutIcon','_onSavingEditorData$','FromArray','RibbonPosition','univer-text-xl\x20univer-text-gray-500','GradientFill','ShapeFlowChartInternalStorageIcon','_clipService','_clearShapeConnectorHandlerObjects','IImageIoService','close','setCanUseShapeClip','rowStartY','ShapeIrregularSeal2Icon','RightTriangle','SolidFill','ShapeFlowChartManualOperationIcon','_getImageDrawingInfo','get','sheets-shape.line.joinType.title','_getImagePrstGeom','Flowchart','LAYOUT','_localeService','color','1738NLMdaK','deg)\x20scaleY(','FlowchartSort','onerror','sheets-shape.line.noLine','ShapeBracePairIcon','shape.type.flow-chart-input-output','_adjName','offsetY','RichTextEditingMutation','Arrow','_connectionSiteObjects','ShapeRightBracketIcon','add','shape.type.chart-star','setShapeData','colStartX','ShapeTypeEnum','ShapeIcon','focus','shape.type.action-button-back-previous','_cxtHandlerPointerUp','ShapeCurvedLeftArrowIcon','FlowchartOr','_initMenu','shape.type.folder-corner','setConfig','setZoomRatio','_activeShapeModel','shape.type.diamond','shape.type.flow-chart-online-storage','shape.type.border-callout2','univer-w-20\x20univer-flex-1','isHighlighted','ShapeLineIcon','sheets-shape.line.dashType.solid','ISheetDrawingService','BreakLineCommand','connection-site-','_activeAdjustInfo','entries','ShapeRtTriangleIcon','_hasReset','SheetsDrawingGroupCopyPasteController','shape.type.quad-arrow-callout','onSavingEditorData$','shape.type.bent-connector3-arrow2','ActionButtonBeginning','ShapeStar4Icon','RemoveSheetDrawingCommand','8pxmCjo','InsertShapeCommand','LeftJustifyingIcon','sin','Round2DiagRect','render','shape.type.dodecagon','primary.600','_activeTargetShapeId','getUnitId','useRef','shape.type.non-isosceles-trapezoid','_drawSimpleText','shape.type.flow-chart-offline-storage','#1a73e8','clearAdjustControls','defineProperty','_config','cos','_generateCutPasteMutations','Round2SameRect','ShapeCornerIcon','_registerOperations','_handleConnectedEndpointPointerUp','from','AccentCallout1','Parallelogram','useEffect','_targetShapeId','registerRenderModule','ActionButtonSound','prstGeom','_registerFocusChangeHandler','shape.type.round2-same-rect','ShapeLineTypeEnum','_initCommands','shape.type.flow-chart-magnetic-drum','ShapeCubeIcon','_activeShapeId','ShapeGradientTypeEnum','other','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','pipe','ShapeCornerTabsIcon','adjHandleFill','shape.group.','shape.type.up-down-arrow-callout','UpdateSheetsShapeDataMutation','top','_isHighlighted','type','useEditor','sheet.command.update-shape-data','ActionButtonForwardNext','pluginName','resetCursor','ShapeLeftArrowIcon','indexOf','dispose','ShapeSketchTypeEnum','ShapeFlowChartAlternateProcessIcon','REMOVE','ShapeCloudIcon','shape.type.action-button-help','SetShapeTextFontSizeIncreaseCommand','ShapeNonIsoscelesTrapezoidIcon','ang','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','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','ShapeFlowChartExtractIcon','_executeResizeCommand','string','WedgeRoundRectCallout','getTransformerByCreate','shape.type.action-button-movie','isRenderLinePointsMode','_registerDrawingFocusChangeHandler','rotation','domY','ShapeMathNotEqualIcon','jsx','shape.type.notched-right-arrow','highlighted','sheets-shape.line.arrowType.openArrow','sheets-shape.fill.picture.offsetY','ShapeSnipRoundRectIcon','_sheetShapeAdjustController','registerFeatureMenu','scaleX','_isConnecting','applyPoint','img','LeftRightArrowCallout','ShapeFlowChartMultidocumentIcon','getDrawingVisible','subscribeEvent','_attachConnectorObjectEvent','DrawingCommonPanel','shape.type.irregular-seal1','ActionButtonBlank','viewportScrollY','StarAndBanner','ShapeLeftRightArrowCalloutIcon','ShapeBracketPairIcon','MoreDownIcon','sheets-shape.fill.transparency','FlowchartMagneticDisk','getCurrentTypeOfUnit$','_getShapeAdjustPointListById','preValue','_cxnIndex','CurvedConnector3','UNIVER_SHEET','RightArrow','_executeConnectedRouteConnectionCommand','SheetsShapeUIController','CloudCallout','subscribeContextValue$','calculate','radial','_unitId','ShapeSnip2SameRectIcon','ShapeBorderCallout1Icon'];_0x1d37=function(){return _0x58c768;};return _0x1d37();}function ShapeLineEditor(_0x39109e){const _0x3def8e=_0x48b1be;var _0x1e34ca,_0x3452f7,_0x49725d,_0x106725,_0x11506f,_0x896088,_0x358f2e,_0x5a18a4,_0x58453b,_0x52891c,_0x397353,_0x1d6ccd,_0x29e969,_0x49ac15,_0x5afdbf,_0x24a8aa;const _0x2e8a82=(0x0,_univerjs_ui[_0x3def8e(0x425)])(_univerjs_core[_0x3def8e(0x319)]),_0x550dba=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x3def8e(0x621)]),_0x4a88ff=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['IContextService']),{shapeData:_0x482c72,isLineShape:_0x408c6c,unitId:_0x579cfc,subUnitId:_0x36b99c,shapeId:_0x29d8f,disableShapeOption:_0x4f10c8}=_0x39109e,_0xa116ac=_0x482c72[_0x3def8e(0x4ce)],[_0x5c6a02,_0x1675b4]=(0x0,react[_0x3def8e(0x47b)])((_0x1e34ca=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac['lineStrokeType'])!==null&&_0x1e34ca!==void 0x0?_0x1e34ca:_univerjs_pro_engine_shape[_0x3def8e(0x558)][_0x3def8e(0x31c)]),[_0x20eef2,_0x387b25]=(0x0,react[_0x3def8e(0x47b)])((_0x3452f7=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac[_0x3def8e(0x503)])!==null&&_0x3452f7!==void 0x0?_0x3452f7:_univerjs_pro_engine_shape[_0x3def8e(0x5ff)][_0x3def8e(0x4ce)]),[_0x8ebfea,_0x5476e0]=(0x0,react[_0x3def8e(0x47b)])((_0x49725d=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac['opacity'])!==null&&_0x49725d!==void 0x0?_0x49725d:0x1),[_0x2eee8e,_0x2a393f]=(0x0,react[_0x3def8e(0x47b)])((_0x106725=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac[_0x3def8e(0x3c7)])!==null&&_0x106725!==void 0x0?_0x106725:_univerjs_pro_engine_shape['ShapeDefaultConfig']['strokeWidth']),[_0x78e578,_0x49f46e]=(0x0,react[_0x3def8e(0x47b)])((_0x11506f=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac['dashType'])!==null&&_0x11506f!==void 0x0?_0x11506f:_univerjs_pro_engine_shape[_0x3def8e(0x165)]['Solid']),[_0x50b89f,_0x28c11c]=(0x0,react[_0x3def8e(0x47b)])((_0x896088=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac['capType'])!==null&&_0x896088!==void 0x0?_0x896088:_univerjs_pro_engine_shape[_0x3def8e(0x33c)][_0x3def8e(0x2a4)]),[_0x15d4c2,_0x369f52]=(0x0,react['useState'])((_0x358f2e=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac[_0x3def8e(0x3ba)])!==null&&_0x358f2e!==void 0x0?_0x358f2e:_univerjs_pro_engine_shape[_0x3def8e(0x364)][_0x3def8e(0x41c)]),[_0x25c440,_0x4e585f]=(0x0,react[_0x3def8e(0x47b)])((_0x5a18a4=_0xa116ac===null||_0xa116ac===void 0x0?void 0x0:_0xa116ac[_0x3def8e(0x1ce)])!==null&&_0x5a18a4!==void 0x0?_0x5a18a4:_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x3def8e(0x197)]),_0x254d52=_0x482c72,[_0x12e9bd,_0x3690fa]=(0x0,react[_0x3def8e(0x47b)])((_0x58453b=(_0x52891c=_0x254d52['ln'])===null||_0x52891c===void 0x0||(_0x52891c=_0x52891c['startArrow'])===null||_0x52891c===void 0x0?void 0x0:_0x52891c[_0x3def8e(0x568)])!==null&&_0x58453b!==void 0x0?_0x58453b:_univerjs_pro_engine_shape[_0x3def8e(0x61f)][_0x3def8e(0x197)]),[_0x3de799,_0x8a99c8]=(0x0,react[_0x3def8e(0x47b)])((_0x397353=(_0x1d6ccd=_0x254d52['ln'])===null||_0x1d6ccd===void 0x0||(_0x1d6ccd=_0x1d6ccd[_0x3def8e(0x1d9)])===null||_0x1d6ccd===void 0x0?void 0x0:_0x1d6ccd[_0x3def8e(0x36c)])!==null&&_0x397353!==void 0x0?_0x397353:_univerjs_pro_engine_shape[_0x3def8e(0x203)][_0x3def8e(0x2d2)]),[_0x333598,_0x4ea1ac]=(0x0,react['useState'])((_0x29e969=(_0x49ac15=_0x254d52['ln'])===null||_0x49ac15===void 0x0||(_0x49ac15=_0x49ac15[_0x3def8e(0x120)])===null||_0x49ac15===void 0x0?void 0x0:_0x49ac15['type'])!==null&&_0x29e969!==void 0x0?_0x29e969:_univerjs_pro_engine_shape[_0x3def8e(0x61f)]['None']),[_0x2fec62,_0x3b35c3]=(0x0,react['useState'])((_0x5afdbf=(_0x24a8aa=_0x254d52['ln'])===null||_0x24a8aa===void 0x0||(_0x24a8aa=_0x24a8aa['endArrow'])===null||_0x24a8aa===void 0x0?void 0x0:_0x24a8aa[_0x3def8e(0x36c)])!==null&&_0x5afdbf!==void 0x0?_0x5afdbf:_univerjs_pro_engine_shape[_0x3def8e(0x203)][_0x3def8e(0x2d2)]),[_0x1ba16e,_0x169fa5]=(0x0,react['useState'])(![]),_0x4bb2f6=0x64-_0x8ebfea*0x64,_0x178136=[{'label':_0x2e8a82['t'](_0x3def8e(0x527)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)][_0x3def8e(0x239)])},{'label':_0x2e8a82['t'](_0x3def8e(0x44b)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x3def8e(0x2ca)])},{'label':_0x2e8a82['t'](_0x3def8e(0x253)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)][_0x3def8e(0x345)])},{'label':_0x2e8a82['t']('sheets-shape.line.dashType.dash'),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x3def8e(0x310)])},{'label':_0x2e8a82['t']('sheets-shape.line.dashType.dashDot'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)][_0x3def8e(0x172)])},{'label':_0x2e8a82['t'](_0x3def8e(0x223)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)]['LongDash'])},{'label':_0x2e8a82['t'](_0x3def8e(0x616)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x165)][_0x3def8e(0x29b)])},{'label':_0x2e8a82['t'](_0x3def8e(0x1a1)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum']['LongDashDotDot'])}],_0x5d489a=[{'label':_0x2e8a82['t'](_0x3def8e(0x1c6)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x33c)][_0x3def8e(0x2a4)])},{'label':_0x2e8a82['t'](_0x3def8e(0x296)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x33c)][_0x3def8e(0x163)])},{'label':_0x2e8a82['t']('sheets-shape.line.capType.square'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x33c)]['Square'])}],_0x47f163=[{'label':_0x2e8a82['t'](_0x3def8e(0x199)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x571)]['None'])},{'label':_0x2e8a82['t'](_0x3def8e(0x16a)),'value':String(_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x3def8e(0x457)])},{'label':_0x2e8a82['t']('sheets-shape.line.sketchType.freehand'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x571)][_0x3def8e(0x17a)])},{'label':_0x2e8a82['t']('sheets-shape.line.sketchType.handDrawn'),'value':String(_univerjs_pro_engine_shape['ShapeSketchTypeEnum']['HandDrawn'])}],_0x3e74d7=[{'label':_0x2e8a82['t'](_0x3def8e(0x625)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x364)][_0x3def8e(0x41c)])},{'label':_0x2e8a82['t']('sheets-shape.line.joinType.round'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x364)]['Round'])},{'label':_0x2e8a82['t']('sheets-shape.line.joinType.bevel'),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x3def8e(0x1a3)])}],_0x1f1821=[{'label':_0x2e8a82['t']('sheets-shape.line.arrowType.none'),'value':String(_univerjs_pro_engine_shape['ShapeArrowTypeEnum']['None'])},{'label':_0x2e8a82['t'](_0x3def8e(0x5e6)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)][_0x3def8e(0x50e)])},{'label':_0x2e8a82['t'](_0x3def8e(0x589)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)]['OpenArrow'])},{'label':_0x2e8a82['t'](_0x3def8e(0x14a)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)][_0x3def8e(0x2bc)])},{'label':_0x2e8a82['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)]['DiamondArrow'])},{'label':_0x2e8a82['t']('sheets-shape.line.arrowType.ovalArrow'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x61f)][_0x3def8e(0x658)])}],_0x48937e=[{'label':_0x2e8a82['t']('sheets-shape.line.arrowSize.small'),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x203)][_0x3def8e(0x65e)])},{'label':_0x2e8a82['t'](_0x3def8e(0x1d7)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x203)]['Medium'])},{'label':_0x2e8a82['t'](_0x3def8e(0x322)),'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x203)][_0x3def8e(0x4d0)])}];return(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x348),'children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design[_0x3def8e(0x2b5)],{'value':String(_0x5c6a02),'disabled':_0x4f10c8,'onChange':_0x394454=>{const _0x2361c5=_0x3def8e;var _0x3472dd;_0x1675b4(Number(_0x394454)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x3472dd=_0x482c72[_0x2361c5(0x4ce)])===null||_0x3472dd===void 0x0?void 0x0:_0x3472dd['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0x394454)}});},'direction':_0x3def8e(0x12f),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['Radio'],{'value':String(_univerjs_pro_engine_shape['ShapeLineTypeEnum'][_0x3def8e(0x47a)]),'children':(0x0,react_jsx_runtime['jsx'])(_0x3def8e(0x151),{'className':_0x3def8e(0x456),'children':_0x2e8a82['t'](_0x3def8e(0x508))})}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x60b)],{'value':String(_univerjs_pro_engine_shape[_0x3def8e(0x558)]['SolidLine']),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])('span',{'className':_0x3def8e(0x456),'children':_0x2e8a82['t'](_0x3def8e(0x355))})})]}),_0x5c6a02!==_univerjs_pro_engine_shape[_0x3def8e(0x558)]['NoLine']&&(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x579),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('div',{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t']('sheets-shape.line.color')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x280)],{'disabled':_0x4f10c8,'overlay':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['ColorPicker'],{'value':_0x20eef2,'onChange':_0x310ab6=>{const _0x427ec3=_0x3def8e;var _0x557933;updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'color':(_0x557933=_0x482c72['stroke'])===null||_0x557933===void 0x0?void 0x0:_0x557933[_0x427ec3(0x503)]}}},{'stroke':{'color':_0x310ab6}}),_0x387b25(_0x310ab6),_0x169fa5(![]);}})}),'open':_0x1ba16e,'onOpenChange':_0x169fa5,'children':(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('a',{'className':_0x3def8e(0x2d7),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':'univer-text-gray-500','extend':{'colorChannel1':_0x20eef2}}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design['clsx'])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x1ba16e})})]})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':'univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2e8a82['t']('sheets-shape.line.transparency')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x1c0),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])('div',{'className':_0x3def8e(0x524),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['InputNumber'],{'className':_0x3def8e(0x4d6),'value':_0x4bb2f6,'disabled':_0x4f10c8,'min':0x0,'max':0x64,'formatter':_0x23cc53=>_0x23cc53+'%','parser':_0xf1ea92=>(_0xf1ea92===null||_0xf1ea92===void 0x0?void 0x0:_0xf1ea92[_0x3def8e(0x4c3)]('%',''))||'','onChange':_0x3d22a2=>{const _0x27c54c=_0x3def8e;var _0x55210d;const _0x1d7e32=(0x64-Math[_0x27c54c(0x47e)](0x0,Math[_0x27c54c(0x39a)](0x64,_0x3d22a2!==null&&_0x3d22a2!==void 0x0?_0x3d22a2:0x0)))/0x64;_0x5476e0(_0x1d7e32),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'opacity':(_0x55210d=_0x482c72[_0x27c54c(0x4ce)])===null||_0x55210d===void 0x0?void 0x0:_0x55210d[_0x27c54c(0x5b8)]}}},{'stroke':{'opacity':_0x1d7e32}}),_0x4a88ff[_0x27c54c(0xfc)](_univerjs_core[_0x27c54c(0x62c)],![]);},'onFocus':()=>_0x4a88ff[_0x3def8e(0xfc)](_univerjs_core[_0x3def8e(0x62c)],!![]),'onBlur':_0xbf186d=>{const _0x396c0f=_0x3def8e;_0x4a88ff[_0x396c0f(0xfc)](_univerjs_core[_0x396c0f(0x62c)],![]);}})})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x1c0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t']('sheets-shape.line.width')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x1db),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x29a)],{'className':_0x3def8e(0x4d6),'disabled':_0x4f10c8,'value':_0x2eee8e,'min':0.25,'max':0x64,'step':0.25,'formatter':_0xf70b47=>_0xf70b47+_0x3def8e(0x35d),'parser':_0x9230f4=>(_0x9230f4===null||_0x9230f4===void 0x0?void 0x0:_0x9230f4['replace'](_0x3def8e(0x35d),''))||'','onChange':_0x4202e9=>{const _0x5537b2=_0x3def8e;if(!Number[_0x5537b2(0x452)](_0x4202e9)&&_0x4202e9!==null){var _0xe3972a;updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'width':(_0xe3972a=_0x482c72[_0x5537b2(0x4ce)])===null||_0xe3972a===void 0x0?void 0x0:_0xe3972a['width']}}},{'stroke':{'width':_0x4202e9}});}_0x4a88ff[_0x5537b2(0xfc)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x4a88ff['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':_0x18ee53=>{const _0x23aff8=_0x3def8e;_0x4a88ff[_0x23aff8(0xfc)](_univerjs_core[_0x23aff8(0x62c)],![]);}})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('div',{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2e8a82['t']('sheets-shape.line.dashType.title')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':'univer-w-full','value':String(_0x78e578),'options':_0x178136,'disabled':_0x4f10c8,'onChange':_0x4a2c48=>{const _0x12a7f0=_0x3def8e;var _0x2f03c1;_0x49f46e(Number(_0x4a2c48)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'dashType':(_0x2f03c1=_0x482c72['stroke'])===null||_0x2f03c1===void 0x0?void 0x0:_0x2f03c1[_0x12a7f0(0x474)]}}},{'stroke':{'dashType':Number(_0x4a2c48)}});}})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])('div',{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t']('sheets-shape.line.capType.title')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':'univer-w-full','value':String(_0x50b89f),'options':_0x5d489a,'disabled':_0x4f10c8,'onChange':_0x316d8c=>{const _0x2ee21d=_0x3def8e;var _0x852714;_0x28c11c(Number(_0x316d8c)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'capType':(_0x852714=_0x482c72[_0x2ee21d(0x4ce)])===null||_0x852714===void 0x0?void 0x0:_0x852714[_0x2ee21d(0x286)]}}},{'stroke':{'capType':Number(_0x316d8c)}});}})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2e8a82['t'](_0x3def8e(0x4fe))}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':_0x3def8e(0x4d6),'value':String(_0x15d4c2),'options':_0x3e74d7,'disabled':_0x4f10c8,'onChange':_0x33affc=>{const _0x55d5f8=_0x3def8e;var _0x2a8517;_0x369f52(Number(_0x33affc)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'lineJoinType':(_0x2a8517=_0x482c72['stroke'])===null||_0x2a8517===void 0x0?void 0x0:_0x2a8517[_0x55d5f8(0x3ba)]}}},{'stroke':{'lineJoinType':Number(_0x33affc)}});}})})]}),!_0x408c6c&&(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x3def8e(0x495),'children':_0x2e8a82['t'](_0x3def8e(0x432))}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['Select'],{'className':_0x3def8e(0x4d6),'value':String(_0x25c440),'options':_0x47f163,'disabled':_0x4f10c8,'onChange':_0x5c2e12=>{const _0x32e3a9=_0x3def8e;var _0x25aaa8;_0x4e585f(Number(_0x5c2e12)),updateShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'stroke':{'sketchType':(_0x25aaa8=_0x482c72[_0x32e3a9(0x4ce)])===null||_0x25aaa8===void 0x0?void 0x0:_0x25aaa8[_0x32e3a9(0x1ce)]}}},{'stroke':{'sketchType':Number(_0x5c2e12)}});}})})]}),_0x408c6c&&(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])(react_jsx_runtime[_0x3def8e(0x5bd)],{'children':[(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2e8a82['t'](_0x3def8e(0x166))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':_0x3def8e(0x4d6),'value':String(_0x12e9bd),'options':_0x1f1821,'onChange':_0x564ecf=>{const _0x3fa673=_0x3def8e;var _0x55a568;_0x3690fa(Number(_0x564ecf)),updateLineShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x55a568=_0x482c72['ln'])===null||_0x55a568===void 0x0||(_0x55a568=_0x55a568[_0x3fa673(0x1d9)])===null||_0x55a568===void 0x0?void 0x0:_0x55a568[_0x3fa673(0x568)]}}}},{'ln':{'startArrow':{'type':Number(_0x564ecf)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t']('sheets-shape.line.beginArrowSize')}),(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design['Select'],{'className':'univer-w-full','value':String(_0x3de799),'options':_0x48937e,'onChange':_0x125230=>{const _0x4bfd3b=_0x3def8e;var _0x570836;_0x8a99c8(Number(_0x125230)),updateLineShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x570836=_0x482c72['ln'])===null||_0x570836===void 0x0||(_0x570836=_0x570836['startArrow'])===null||_0x570836===void 0x0?void 0x0:_0x570836[_0x4bfd3b(0x36c)]}}}},{'ln':{'startArrow':{'size':Number(_0x125230)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x3def8e(0x4b3),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t'](_0x3def8e(0x381))}),(0x0,react_jsx_runtime['jsx'])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x612),'children':(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_univerjs_design[_0x3def8e(0x634)],{'className':_0x3def8e(0x4d6),'value':String(_0x333598),'options':_0x1f1821,'onChange':_0xa32a44=>{const _0x3f4765=_0x3def8e;var _0x592bb7;_0x4ea1ac(Number(_0xa32a44)),updateLineShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x592bb7=_0x482c72['ln'])===null||_0x592bb7===void 0x0||(_0x592bb7=_0x592bb7[_0x3f4765(0x120)])===null||_0x592bb7===void 0x0?void 0x0:_0x592bb7['type']}}}},{'ln':{'endArrow':{'type':Number(_0xa32a44)}}});}})})]}),(0x0,react_jsx_runtime[_0x3def8e(0x5e7)])(_0x3def8e(0x4b3),{'className':_0x3def8e(0x2e0),'children':[(0x0,react_jsx_runtime[_0x3def8e(0x586)])(_0x3def8e(0x151),{'className':_0x3def8e(0x495),'children':_0x2e8a82['t'](_0x3def8e(0x3ec))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-w-28','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':_0x3def8e(0x4d6),'value':String(_0x2fec62),'options':_0x48937e,'onChange':_0x71a899=>{const _0x3deb88=_0x3def8e;var _0x510abe;_0x3b35c3(Number(_0x71a899)),updateLineShapeData(_0x550dba,_0x579cfc,_0x36b99c,_0x29d8f,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x510abe=_0x482c72['ln'])===null||_0x510abe===void 0x0||(_0x510abe=_0x510abe[_0x3deb88(0x120)])===null||_0x510abe===void 0x0?void 0x0:_0x510abe['size']}}}},{'ln':{'endArrow':{'size':Number(_0x71a899)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x36e48f=_0x48b1be,_0x33e6b5=(0x0,_univerjs_ui[_0x36e48f(0x425)])(_univerjs_drawing[_0x36e48f(0x618)]),[_0x548235,_0x3ec5dc]=(0x0,react[_0x36e48f(0x47b)])(_0x33e6b5[_0x36e48f(0x669)]());(0x0,react['useEffect'])(()=>{const _0x5ad5f6=_0x36e48f,_0x3b0bed=_0x33e6b5[_0x5ad5f6(0x16e)]['subscribe'](_0x2ebbd0=>{_0x3ec5dc(_0x2ebbd0);});return()=>{const _0x2fa593=_0x5ad5f6;_0x3b0bed[_0x2fa593(0x4e2)]();};},[]);if(_0x548235[_0x36e48f(0x42d)]===0x0)return null;return(0x0,react_jsx_runtime['jsx'])(_0x36e48f(0x4b3),{'children':(0x0,react_jsx_runtime[_0x36e48f(0x5e7)])('div',{'className':_0x36e48f(0x210),'children':[(0x0,react_jsx_runtime[_0x36e48f(0x586)])(_univerjs_drawing_ui[_0x36e48f(0x597)],{'drawings':_0x548235,'hasCropper':![]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_sheets_drawing_ui[_0x36e48f(0x140)],{'drawings':_0x548235})]})});}function ShapeEditPanel(_0x3eb508){const _0x24623b=_0x48b1be,{shapeData:_0x2f8e89,shapeId:_0x301a25,shapeType:_0x642e2d,version:_0x1c7402,unitId:_0x1b3a0f,subUnitId:_0x30cb2c,disableShapeOption:_0x3b17ca}=_0x3eb508,_0x54a5e9=(0x0,_univerjs_ui[_0x24623b(0x425)])(_univerjs_core['LocaleService']),_0x149e5=(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x642e2d),[_0x1885e6,_0x4b79d0]=(0x0,react[_0x24623b(0x47b)])(0x0),_0x4f185c=[{'label':(0x0,react_jsx_runtime['jsx'])('div',{'children':_0x54a5e9['t']('sheets-shape.fill.title')}),'children':(0x0,react_jsx_runtime['jsx'])(_0x24623b(0x3f2),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0x24623b(0x586)])(ShapeFillEditor,{'shapeId':_0x301a25,'shapeData':_0x2f8e89,'isLineShape':_0x149e5,'subUnitId':_0x30cb2c,'unitId':_0x1b3a0f,'disableShapeOption':_0x3b17ca},_0x301a25)})},{'label':(0x0,react_jsx_runtime[_0x24623b(0x586)])('div',{'children':_0x54a5e9['t']('sheets-shape.line.title')}),'children':(0x0,react_jsx_runtime[_0x24623b(0x586)])(_0x24623b(0x3f2),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0x24623b(0x586)])(ShapeLineEditor,{'shapeId':_0x301a25,'shapeData':_0x2f8e89,'isLineShape':_0x149e5,'subUnitId':_0x30cb2c,'unitId':_0x1b3a0f,'disableShapeOption':_0x3b17ca},_0x301a25)})}];return(0x0,react_jsx_runtime[_0x24623b(0x5e7)])(_0x24623b(0x4b3),{'className':_0x24623b(0x332),'children':[(0x0,react_jsx_runtime[_0x24623b(0x5e7)])('div',{'className':_0x24623b(0x46e),'children':[(0x0,react_jsx_runtime[_0x24623b(0x5e7)])(_0x24623b(0x4b3),{'className':(0x0,_univerjs_design[_0x24623b(0x144)])(_0x24623b(0x55f),_0x1885e6===0x0?'univer-text-primary-600':_0x24623b(0x2b8)),'onClick':()=>_0x4b79d0(0x0),'children':[_0x54a5e9['t'](_0x24623b(0x119)),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x24623b(0x144)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md',{'univer-bg-primary-600':_0x1885e6===0x0,'univer-bg-transparent':_0x1885e6!==0x0})})]}),(0x0,react_jsx_runtime[_0x24623b(0x5e7)])(_0x24623b(0x4b3),{'className':(0x0,_univerjs_design[_0x24623b(0x144)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',{'univer-text-primary-600':_0x1885e6===0x1,'univer-text-gray-500':_0x1885e6!==0x1}),'onClick':()=>_0x4b79d0(0x1),'children':[_0x54a5e9['t']('sheets-shape.shapePosition'),(0x0,react_jsx_runtime['jsx'])(_0x24623b(0x4b3),{'className':(0x0,_univerjs_design[_0x24623b(0x144)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600',{'univer-bg-primary-600':_0x1885e6===0x1,'univer-bg-transparent':_0x1885e6!==0x1})})]})]}),(0x0,react_jsx_runtime[_0x24623b(0x586)])('div',{'className':_0x24623b(0x620),'children':_0x1885e6===0x0?(0x0,react_jsx_runtime[_0x24623b(0x586)])(_0x24623b(0x4b3),{'className':'','children':(0x0,react_jsx_runtime[_0x24623b(0x586)])(_univerjs_design[_0x24623b(0x43d)],{'items':_0x4f185c})},_0x1c7402):(0x0,react_jsx_runtime[_0x24623b(0x586)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x48b1be(0x41e)]{constructor(_0x104352,_0x33828d){const _0x30a65e=_0x48b1be;super(_0x104352,_0x33828d),_defineProperty(this,_0x30a65e(0x338),null),_defineProperty(this,_0x30a65e(0x50b),null),_defineProperty(this,_0x30a65e(0x5ae),null),_defineProperty(this,_0x30a65e(0x36d),null);if(_0x33828d)this[_0x30a65e(0x3dc)](_0x33828d);}['getDrawingSearch'](){const _0x243f0c=_0x48b1be;return{'unitId':this[_0x243f0c(0x5ae)],'subUnitId':this[_0x243f0c(0x36d)],'drawingId':this[_0x243f0c(0x338)]};}['setShapeProps'](_0x2abf19){const _0x59d192=_0x48b1be;if(typeof _0x2abf19['shapeId']!==_0x59d192(0x37e))this[_0x59d192(0x338)]=_0x2abf19['shapeId'];if(typeof _0x2abf19[_0x59d192(0x391)]!==_0x59d192(0x37e))this[_0x59d192(0x50b)]=_0x2abf19[_0x59d192(0x391)];if(typeof _0x2abf19[_0x59d192(0x1ab)]!==_0x59d192(0x37e))this[_0x59d192(0x5ae)]=_0x2abf19['unitId'];if(typeof _0x2abf19['subUnitId']!==_0x59d192(0x37e))this[_0x59d192(0x36d)]=_0x2abf19[_0x59d192(0x4dc)];this[_0x59d192(0x2b4)]({'width':_0x2abf19['width'],'height':_0x2abf19[_0x59d192(0x613)]});}[_0x48b1be(0x1fc)](_0x1fd447){const _0x3c1f69=_0x48b1be;_univerjs_engine_render[_0x3c1f69(0x3a2)][_0x3c1f69(0x1f1)](_0x1fd447,{'radius':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3c1f69(0x346)],'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3c1f69(0x562)],'stroke':_univerjs_pro_engine_shape[_0x3c1f69(0x5ff)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x387361,_0x307ca5,_0x5411bd,_0x11e5a9,_0x55950f,_0x3f56d8,_0x389f52,_0x1d89fe){const _0xae8786=_0x48b1be;super(),this['_context']=_0x387361,this['_contextService']=_0x307ca5,this['_drawingManagerService']=_0x5411bd,this['_sheetsShapeService']=_0x11e5a9,this[_0xae8786(0x1cb)]=_0x55950f,this[_0xae8786(0x1ac)]=_0x3f56d8,this[_0xae8786(0x36a)]=_0x389f52,this['_commandService']=_0x1d89fe,_defineProperty(this,_0xae8786(0x55c),null),_defineProperty(this,_0xae8786(0x5ae),null),_defineProperty(this,_0xae8786(0x36d),null),_defineProperty(this,_0xae8786(0x38b),void 0x0),_defineProperty(this,_0xae8786(0x24f),[]),_defineProperty(this,_0xae8786(0x21b),0x0),_defineProperty(this,_0xae8786(0x4d4),0x0),_defineProperty(this,_0xae8786(0x4bf),0x0),_defineProperty(this,_0xae8786(0x64c),0x0),_defineProperty(this,_0xae8786(0x3b8),![]),_defineProperty(this,_0xae8786(0x52b),void 0x0),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,_0xae8786(0x272),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0xae8786(0x44e),![]),this[_0xae8786(0x582)](),this[_0xae8786(0x178)]();}[_0x48b1be(0x5a2)](_0x552cd5,_0x20374a,_0x3f6a7c){const _0x7e0381=_0x48b1be,_0x121e21=this[_0x7e0381(0x5d9)][_0x7e0381(0x36e)](_0x552cd5,_0x20374a,_0x3f6a7c);if(_0x121e21)return _0x121e21[_0x7e0381(0x170)]();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!![]);}['setShouldShowAdjust'](_0xe1dc12){const _0x1a2502=_0x48b1be;this[_0x1a2502(0x44e)]=_0xe1dc12;}[_0x48b1be(0x2c8)](_0x50da05,_0x23717a,_0x275da0,_0x419015){const _0x570696=_0x48b1be,_0xbb8f98=this[_0x570696(0x5d9)][_0x570696(0x36e)](_0x50da05,_0x23717a,_0x275da0);if(_0xbb8f98)return _0xbb8f98[_0x570696(0x5f6)](_0x419015);}[_0x48b1be(0x159)](_0x2b04b0=![]){const _0x21683c=_0x48b1be;if(this[_0x21683c(0x5ae)]===null||this[_0x21683c(0x36d)]===null||this[_0x21683c(0x55c)]===null)return;const _0x5b12e0=this['_renderManagerService'][_0x21683c(0x11a)](this[_0x21683c(0x5ae)]);if(!_0x5b12e0)return;if(!_0x5b12e0[_0x21683c(0x26a)](_univerjs_sheets_ui[_0x21683c(0x2b2)])[_0x21683c(0x215)]())return;const {scene:_0x333afc}=_0x5b12e0,_0x1ed66c={'unitId':this['_unitId'],'subUnitId':this[_0x21683c(0x36d)],'drawingId':this[_0x21683c(0x55c)]},_0x331ad3=this['_drawingManagerService'][_0x21683c(0x251)](_0x1ed66c),{transform:_0x3e4e50}=_0x331ad3;if(!_0x3e4e50)return;if(_0x331ad3[_0x21683c(0x2b0)]!==_univerjs_core[_0x21683c(0x45a)][_0x21683c(0x614)])return;const {left:_0x39f8e0,top:_0x4a4242,width:_0x1e47c3,height:_0x1bb37e,flipX:_0x945650,flipY:_0x122b83,angle:angle=0x0}=_0x3e4e50;if(_0x39f8e0===void 0x0||_0x4a4242===void 0x0)return;if(_0x2b04b0)this['_activeShapeAdjustPointList']=this[_0x21683c(0x5a2)](this[_0x21683c(0x5ae)],this[_0x21683c(0x36d)],this[_0x21683c(0x55c)]);const _0x372468=this['_activeShapeAdjustPointList'];for(let _0x526529=0x0;_0x526529<_0x372468['length'];_0x526529++){const _0x2bda11=_0x372468[_0x526529];let _0x228739=_0x2bda11['x'],_0x5f303f=_0x2bda11['y'];if(_0x945650)_0x228739=(_0x1e47c3||0x0)-_0x228739;if(_0x122b83)_0x5f303f=(_0x1bb37e||0x0)-_0x5f303f;if(angle!==0x0){const _0x532224=(_0x1e47c3||0x0)/0x2,_0x1f94f2=(_0x1bb37e||0x0)/0x2,_0x49fdbb=angle*Math['PI']/0xb4,_0x32b357=Math['cos'](_0x49fdbb),_0x2e029d=Math[_0x21683c(0x539)](_0x49fdbb),_0x505d74=_0x228739-_0x532224,_0x4397de=_0x5f303f-_0x1f94f2;_0x228739=_0x532224+(_0x505d74*_0x32b357-_0x4397de*_0x2e029d),_0x5f303f=_0x1f94f2+(_0x505d74*_0x2e029d+_0x4397de*_0x32b357);}const _0x3c1b8d={'x':_0x228739,'y':_0x5f303f,'adjName':_0x2bda11['adjName']};this['_addShapeAdjustControl'](_0x333afc,_0x3c1b8d,_0x3c1b8d[_0x21683c(0x391)],_0x39f8e0,_0x4a4242,this[_0x21683c(0x5ae)],this['_subUnitId']);}}[_0x48b1be(0x2dd)](_0x4c5a3e=![]){_0x4c5a3e&&(this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls'](_0x4c5a3e));}[_0x48b1be(0x1b4)](_0xbbcce,_0x4bbfdd,_0xf92f75,_0x3ab9b7,_0x277b4f,_0x3b8933,_0x28b1ed){const _0x48409e=_0x48b1be;if(!this[_0x48409e(0x55c)])return;const _0x2168da=_0xbbcce[_0x48409e(0x492)](_0x48409e(0x23a)+this['_activeShapeId']+'-'+_0xf92f75);if(_0x2168da){_0x2168da[_0x48409e(0x2b4)]({'left':_0x4bbfdd['x']+_0x3ab9b7-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x48409e(0x346)],'top':_0x4bbfdd['y']+_0x277b4f-_univerjs_pro_engine_shape['ShapeDefaultConfig']['adjHandleSize']});return;}const _0x36eaf9={'left':_0x4bbfdd['x']+_0x3ab9b7-_univerjs_pro_engine_shape[_0x48409e(0x5ff)]['adjHandleSize'],'top':_0x4bbfdd['y']+_0x277b4f-_univerjs_pro_engine_shape[_0x48409e(0x5ff)][_0x48409e(0x346)],'adjName':_0xf92f75,'shapeId':this[_0x48409e(0x55c)],'unitId':_0x3b8933,'subUnitId':_0x28b1ed,'width':_univerjs_pro_engine_shape[_0x48409e(0x5ff)][_0x48409e(0x346)]+0x8,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x48409e(0x346)]+0x8,'zIndex':_univerjs_engine_render[_0x48409e(0x3d4)]+0x1,'evented':!![]},_0x4b7854=new SheetShapeAdjustPointObject(_0x48409e(0x23a)+this[_0x48409e(0x55c)]+'-'+_0xf92f75,_0x36eaf9);this[_0x48409e(0x24f)][_0x48409e(0x5ed)](_0x4b7854),this[_0x48409e(0x3d0)](_0x4b7854,_0xbbcce,_0xf92f75),_0xbbcce[_0x48409e(0x261)](_0x4b7854,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x48b1be(0x321)](){const _0x17be4e=_0x48b1be;if(this[_0x17be4e(0x24f)][_0x17be4e(0x42d)]===0x0)return;this[_0x17be4e(0x24f)][_0x17be4e(0x4e1)](_0x16c86d=>{const _0x277c56=_0x17be4e;_0x16c86d[_0x277c56(0x570)]();}),this[_0x17be4e(0x24f)]=[];}[_0x48b1be(0x20a)](){const _0x485772=_0x48b1be;this[_0x485772(0x159)]();}[_0x48b1be(0x2d8)](_0x3ad43f,_0x5b53b9){const _0x54e487=_0x48b1be;var _0x5669c8;const _0x4f815d={'x':0x0,'y':0x0};if(!_0x3ad43f||!_0x5b53b9)return _0x4f815d;const _0x363724=this[_0x54e487(0x1cb)][_0x54e487(0x11a)](_0x3ad43f);if(!_0x363724)return _0x4f815d;if(!_0x363724[_0x54e487(0x26a)](_univerjs_sheets_ui[_0x54e487(0x2b2)])[_0x54e487(0x192)](_0x5b53b9))return _0x4f815d;const _0x30d263=_0x363724[_0x54e487(0x26a)](_univerjs_sheets_ui[_0x54e487(0x411)]),_0x2a1bc6=_0x30d263===null||_0x30d263===void 0x0?void 0x0:_0x30d263[_0x54e487(0x1e2)]();if(!_0x2a1bc6)return _0x4f815d;const _0xea57fa=(_0x5669c8=this[_0x54e487(0x36a)][_0x54e487(0x10f)](_0x3ad43f))===null||_0x5669c8===void 0x0?void 0x0:_0x5669c8['getSheetBySheetId'](_0x5b53b9);if(!_0xea57fa)return _0x4f815d;const _0x4e277e=(0x0,_univerjs_sheets_ui[_0x54e487(0x3e6)])(_0x2a1bc6[_0x54e487(0x34f)],_0x2a1bc6[_0x54e487(0x642)],_0x363724[_0x54e487(0x1cf)],_0xea57fa);if(!_0x4e277e)return _0x4f815d;return{'x':_0x4e277e['viewportScrollX'],'y':_0x4e277e[_0x54e487(0x59a)]};}[_0x48b1be(0x5d5)](_0x475a2d,_0x53c9ad){const _0x4c968e=_0x48b1be;var _0x2df162,_0x10822f;const _0x90535c=(_0x2df162=this[_0x4c968e(0x36a)][_0x4c968e(0x10f)](_0x475a2d))===null||_0x2df162===void 0x0?void 0x0:_0x2df162[_0x4c968e(0x37a)](_0x53c9ad);return(_0x10822f=_0x90535c===null||_0x90535c===void 0x0?void 0x0:_0x90535c['getZoomRatio']())!==null&&_0x10822f!==void 0x0?_0x10822f:0x1;}[_0x48b1be(0x3d0)](_0x44345e,_0x1843fb,_0x31e20a){const _0x19c3f1=_0x48b1be;this[_0x19c3f1(0x47f)]((0x0,_univerjs_core[_0x19c3f1(0x19d)])(_0x44345e[_0x19c3f1(0x3bd)][_0x19c3f1(0x595)]((_0x17bf23,_0x5314ff)=>{const _0x143446=_0x19c3f1;var _0x7bb39,_0x247936,_0x3ecff3,_0x4e8404;const _0x5d99ed=_0x44345e[_0x143446(0x647)]();this['_activeAdjustInfo']=this[_0x143446(0x2c8)](_0x5d99ed[_0x143446(0x1ab)],_0x5d99ed[_0x143446(0x4dc)],_0x5d99ed['drawingId'],_0x31e20a),this[_0x143446(0x520)]=this['_sheetsShapeService']['getShapeModel'](_0x5d99ed['unitId'],_0x5d99ed['subUnitId'],_0x5d99ed[_0x143446(0x4cb)]);const _0x5bd29d=this[_0x143446(0x307)][_0x143446(0x251)]({'unitId':this[_0x143446(0x5ae)],'subUnitId':this[_0x143446(0x36d)],'drawingId':this['_activeShapeId']}),{transform:_0x3c2a42}=_0x5bd29d;if(_0x3c2a42){const {left:_0x36cde0,top:_0x4ce022,width:_0x81107c,height:_0x548f1c}=_0x3c2a42;this[_0x143446(0x21b)]=_0x36cde0||0x0,this['_baseShapeTop']=_0x4ce022||0x0,this[_0x143446(0x4bf)]=_0x81107c||0x0,this['_baseShapeHeight']=_0x548f1c||0x0;}const _0x5b1528=Boolean((_0x7bb39=_0x5bd29d[_0x143446(0x649)])===null||_0x7bb39===void 0x0?void 0x0:_0x7bb39[_0x143446(0x5b1)]),_0x51527f=Boolean((_0x247936=_0x5bd29d[_0x143446(0x649)])===null||_0x247936===void 0x0?void 0x0:_0x247936[_0x143446(0x285)]),_0x3cdb7b=((_0x3ecff3=_0x5bd29d[_0x143446(0x649)])===null||_0x3ecff3===void 0x0?void 0x0:_0x3ecff3[_0x143446(0x2ed)])||0x0;this[_0x143446(0x3b8)]=!![],_0x1843fb[_0x143446(0x1c7)]();const _0x5aeff4=(_0x4e8404=this['_activeShapeModel'])===null||_0x4e8404===void 0x0?void 0x0:_0x4e8404[_0x143446(0x336)](_0x31e20a),_0x5760c7={[_0x31e20a]:_0x5aeff4};this[_0x143446(0x272)]=_0x1843fb['onPointerMove$'][_0x143446(0x595)]((_0x141988,_0x53080d)=>{const _0x273a31=_0x143446;if(!this['_isStartAdjusting'])return;const {offsetX:_0x415830,offsetY:_0x5137c1}=_0x141988,_0x139d61=this[_0x273a31(0x52b)];if(this[_0x273a31(0x520)]&&_0x139d61){_0x1843fb[_0x273a31(0x1c7)](),_0x1843fb[_0x273a31(0x148)](_univerjs_engine_render[_0x273a31(0x4ad)][_0x273a31(0x484)]);const _0x18fccb={'left':0x0,'top':0x0,'width':this[_0x273a31(0x4bf)],'height':this['_baseShapeHeight']},_0x20d048=this[_0x273a31(0x2d8)](this[_0x273a31(0x5ae)],this[_0x273a31(0x36d)]),_0x4efde0=this['_getZoomRatio'](this[_0x273a31(0x5ae)],this[_0x273a31(0x36d)]);let _0x4693fc=_0x415830/_0x4efde0+_0x20d048['x']-this[_0x273a31(0x21b)],_0x135776=_0x5137c1/_0x4efde0+_0x20d048['y']-this['_baseShapeTop'];if(_0x3cdb7b!==0x0){const _0x3478f2=this['_baseShapeWidth']/0x2,_0x5a4b84=this[_0x273a31(0x64c)]/0x2,_0x51b88d=_0x3cdb7b*Math['PI']/0xb4,_0x523339=Math[_0x273a31(0x548)](_0x51b88d),_0x41a1c2=Math[_0x273a31(0x539)](_0x51b88d),_0x561205=_0x4693fc-_0x3478f2,_0x5b7c79=_0x135776-_0x5a4b84;_0x4693fc=_0x3478f2+(_0x561205*_0x523339+_0x5b7c79*_0x41a1c2),_0x135776=_0x5a4b84+(-_0x561205*_0x41a1c2+_0x5b7c79*_0x523339);}if(_0x5b1528)_0x4693fc=this['_baseShapeWidth']-_0x4693fc;if(_0x51527f)_0x135776=this[_0x273a31(0x64c)]-_0x135776;const _0x196720={'x':_0x4693fc,'y':_0x135776},_0x561bf1=this['_activeShapeModel'][_0x273a31(0x405)](_0x18fccb,_0x196720,_0x139d61,_0x5b1528,_0x51527f),_0x12859a=_0x139d61['gdRefX']||_0x139d61[_0x273a31(0x238)]||_0x139d61['gdRefAng']||_0x139d61[_0x273a31(0x4c9)];if(_0x12859a===void 0x0)return;this[_0x273a31(0x520)][_0x273a31(0x177)](_0x12859a,_0x561bf1);const _0x1786b1=this[_0x273a31(0x307)][_0x273a31(0x251)]({'unitId':_0x5d99ed[_0x273a31(0x1ab)],'subUnitId':_0x5d99ed[_0x273a31(0x4dc)],'drawingId':_0x5d99ed[_0x273a31(0x4cb)]});_0x1786b1&&(this[_0x273a31(0x1ac)][_0x273a31(0x370)](_0x1786b1,_0x1843fb),this[_0x273a31(0x38b)]=this[_0x273a31(0x5a2)](_0x5d99ed[_0x273a31(0x1ab)],_0x5d99ed[_0x273a31(0x4dc)],_0x5d99ed[_0x273a31(0x4cb)]),this['_updateAdjustControlPositions']());}_0x53080d[_0x273a31(0x668)]();}),this[_0x143446(0x389)]=_0x1843fb[_0x143446(0x45d)][_0x143446(0x595)]((_0x355551,_0x31fa22)=>{const _0x5802d3=_0x143446;this[_0x5802d3(0x272)][_0x5802d3(0x4e2)](),this[_0x5802d3(0x389)]['unsubscribe'](),_0x1843fb[_0x5802d3(0x56d)]();const _0x424601=this[_0x5802d3(0x52b)];if(_0x424601){const _0x12ba1b=_0x5d99ed[_0x5802d3(0x1ab)],_0xdc5080=_0x5d99ed[_0x5802d3(0x4dc)],_0x549cbe=_0x5d99ed[_0x5802d3(0x4cb)],_0x5f33c7=_0x424601['gdRefX']||_0x424601[_0x5802d3(0x238)]||_0x424601[_0x5802d3(0x3c0)]||_0x424601[_0x5802d3(0x4c9)];if(_0x5f33c7!==void 0x0){var _0x1b4f5a;const _0x217c12=(_0x1b4f5a=this[_0x5802d3(0x520)])===null||_0x1b4f5a===void 0x0?void 0x0:_0x1b4f5a['getAdjustValueByName'](_0x5f33c7);if(_0x217c12!==void 0x0)updateShapeData(this[_0x5802d3(0x1c8)],_0x12ba1b,_0xdc5080,_0x549cbe,{'oldShapeData':{'adjustValues':_0x5760c7}},{'adjustValues':{[_0x5f33c7]:_0x217c12}});}}this[_0x5802d3(0x52b)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x5802d3(0x3b8)]=![],_0x31fa22[_0x5802d3(0x668)](),_0x1843fb['enableObjectsEvent']();}),_0x5314ff[_0x143446(0x668)]();})));}[_0x48b1be(0x178)](){const _0xe9b186=_0x48b1be,_0x576156=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_univerjs_core['UniverInstanceType'][_0xe9b186(0x5a6)]);this[_0xe9b186(0x47f)](_0x576156['pipe']((0x0,rxjs[_0xe9b186(0x49d)])(_0x122f5a=>{const _0x20b915=_0xe9b186;if(!_0x122f5a)return rxjs[_0x20b915(0x256)];return _0x122f5a['activeSheet$'][_0x20b915(0x560)]((0x0,rxjs[_0x20b915(0x49d)])(_0x3c1b4f=>{const _0x1c9ce0=_0x20b915;if(!_0x3c1b4f)return rxjs['EMPTY'];const _0x448403=_0x122f5a[_0x1c9ce0(0x53f)](),_0x16d243=this[_0x1c9ce0(0x1cb)]['getRenderById'](_0x448403),_0x3d3249=_0x16d243===null||_0x16d243===void 0x0?void 0x0:_0x16d243['scene'];if(!_0x3d3249)return rxjs[_0x1c9ce0(0x256)];return(0x0,rxjs['of'])(_0x3d3249);}));}))['subscribe'](_0x4b3aa1=>{const _0x2a0086=_0xe9b186,_0x2bfbd7=_0x4b3aa1[_0x2a0086(0x57f)]();this['disposeWithMe'](_0x4b3aa1['onPointerMove$'][_0x2a0086(0x595)](()=>{const _0x5cda50=_0x2a0086;if(this[_0x5cda50(0x44e)]){}})),this['disposeWithMe'](_0x2bfbd7[_0x2a0086(0x19f)][_0x2a0086(0x22b)](_0x3a5e30=>{const _0x52b28a=_0x2a0086,{objects:_0x4108e6}=_0x3a5e30;this[_0x52b28a(0x159)]();if(_0x4108e6!==null&&_0x4108e6[_0x52b28a(0x36c)]===0x1){if(_0x4108e6[_0x52b28a(0x209)]()[_0x52b28a(0x194)]()[_0x52b28a(0x228)]instanceof DrawingShape)this[_0x52b28a(0x633)](!![]);}})),this[_0x2a0086(0x47f)](_0x2bfbd7[_0x2a0086(0x339)][_0x2a0086(0x22b)](()=>{const _0x361f23=_0x2a0086;if(this[_0x361f23(0x44e)])this[_0x361f23(0x321)]();})),this[_0x2a0086(0x47f)](_0x4b3aa1['onPointerUp$'][_0x2a0086(0x595)](()=>{const _0x3a9f97=_0x2a0086;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x3a9f97(0x633)](![]),this[_0x3a9f97(0x159)]());})),this[_0x2a0086(0x47f)](_0x2bfbd7['changeEnd$']['subscribe'](()=>{const _0x528999=_0x2a0086;this[_0x528999(0x5ae)]&&this[_0x528999(0x36d)]&&this['_activeShapeId']&&(this[_0x528999(0x307)][_0x528999(0x251)]({'unitId':this[_0x528999(0x5ae)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x528999(0x55c)]})&&(this[_0x528999(0x38b)]=this['_getShapeAdjustPointListById'](this['_unitId'],this['_subUnitId'],this[_0x528999(0x55c)]),this[_0x528999(0x20a)]()));}));}));}[_0x48b1be(0x582)](){const _0x3478e8=_0x48b1be;this[_0x3478e8(0x47f)](this[_0x3478e8(0x307)]['focus$']['subscribe'](_0x29fdda=>{const _0x526652=_0x3478e8;if(_0x29fdda[_0x526652(0x42d)]===0x1){const _0x4fcff3=_0x29fdda[0x0];if(_0x4fcff3[_0x526652(0x2b0)]===_univerjs_core['DrawingTypeEnum'][_0x526652(0x614)]){this[_0x526652(0x55c)]=_0x4fcff3['drawingId'];const {unitId:_0x4732ae,subUnitId:_0x18c656}=_0x4fcff3;this[_0x526652(0x38b)]=this['_getShapeAdjustPointListById'](_0x4732ae,_0x18c656,this[_0x526652(0x55c)]),this[_0x526652(0x5ae)]=_0x4732ae,this[_0x526652(0x36d)]=_0x18c656,this['_clearShapeAdjustControls'](),this[_0x526652(0x159)]();}else this[_0x526652(0x55c)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x526652(0x5ae)]=null,this['_subUnitId']=null,this[_0x526652(0x321)]();}(_0x29fdda[_0x526652(0x42d)]>0x1||_0x29fdda[_0x526652(0x42d)]===0x0)&&(this[_0x526652(0x55c)]=null,this[_0x526652(0x38b)]=void 0x0,this[_0x526652(0x5ae)]=null,this['_subUnitId']=null,this[_0x526652(0x321)]());})),this[_0x3478e8(0x47f)](this[_0x3478e8(0x307)]['update$'][_0x3478e8(0x22b)](_0x1a5bf9=>{const _0x105d04=_0x3478e8;if(_0x1a5bf9[_0x105d04(0x42d)]===0x1){var _0x1c861d;const _0x38dcf6=_0x1a5bf9[0x0];if(((_0x1c861d=this[_0x105d04(0x307)][_0x105d04(0x251)](_0x38dcf6))===null||_0x1c861d===void 0x0?void 0x0:_0x1c861d[_0x105d04(0x2b0)])===_univerjs_core[_0x105d04(0x45a)][_0x105d04(0x614)])this['_updateShapeAdjustControls'](!![]);}})),this[_0x3478e8(0x47f)](this['_drawingManagerService'][_0x3478e8(0x201)][_0x3478e8(0x22b)](_0xf21085=>{const _0x53cc92=_0x3478e8;for(const _0x372711 of _0xf21085)this[_0x53cc92(0x55c)]===_0x372711[_0x53cc92(0x4cb)]&&(this[_0x53cc92(0x55c)]=null,this[_0x53cc92(0x38b)]=void 0x0,this[_0x53cc92(0x5ae)]=null,this[_0x53cc92(0x36d)]=null,this['_clearShapeAdjustControls']());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core['IContextService']),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x4,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_engine_render[_0x48b1be(0x1df)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x48b1be(0x13d)])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x7,_univerjs_core['ICommandService'])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x48b1be(0x388),'type':_univerjs_core['CommandType'][_0x48b1be(0x5e0)],'handler':(_0x3887d8,_0x1a9437)=>{const _0xd94999=_0x48b1be,_0x39c636=_0x3887d8[_0xd94999(0x4fd)](_univerjs_drawing[_0xd94999(0x618)]),_0x5777b0=_0x3887d8[_0xd94999(0x4fd)](_univerjs_engine_render['IRenderManagerService']),_0x5a6f98=_0x3887d8[_0xd94999(0x4fd)](SheetShapeAdjustController);if(_0x1a9437==null)return!![];if(_0x1a9437['length']>0x0){var _0x395a47;const _0x2aaa98=(_0x395a47=_0x5777b0[_0xd94999(0x11a)](_0x1a9437[0x0]['unitId']))===null||_0x395a47===void 0x0?void 0x0:_0x395a47['scene'];if(_0x2aaa98){const {unitId:_0x11f8e9,subUnitId:_0x5f11c1,drawingId:_0x2a0251}=_0x1a9437[0x0],_0x1a9804=(0x0,_univerjs_drawing[_0xd94999(0x1e7)])({'unitId':_0x11f8e9,'subUnitId':_0x5f11c1,'drawingId':_0x2a0251},void 0x0),_0x296915=_0x2aaa98[_0xd94999(0x492)](_0x1a9804);if(_0x296915){var _0x200f98;(_0x200f98=_0x5777b0['getRenderById'](_0x1a9437[0x0][_0xd94999(0x1ab)]))===null||_0x200f98===void 0x0||(_0x200f98=_0x200f98[_0xd94999(0x1cf)][_0xd94999(0x255)]())===null||_0x200f98===void 0x0||_0x200f98['activeAnObject'](_0x296915);}}_0x39c636[_0xd94999(0x62b)](_0x1a9437),_0x5a6f98[_0xd94999(0x633)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x48b1be(0x48b)][_0x48b1be(0x2ba)],'id':_0x48b1be(0x398),'handler':async(_0x4f7bf9,_0x31c534)=>{const _0x583ebe=_0x48b1be,_0x1b2bfe=(0x0,_univerjs_sheets[_0x583ebe(0x207)])(_0x4f7bf9['get'](_univerjs_core[_0x583ebe(0x1d2)]));if(!_0x1b2bfe)return![];const _0x35afd3=_0x4f7bf9[_0x583ebe(0x4fd)](_univerjs_sheets[_0x583ebe(0x622)])[_0x583ebe(0x1b7)]();if(!_0x35afd3)return![];const _0x3c777b=_0x4f7bf9[_0x583ebe(0x4fd)](_univerjs_core[_0x583ebe(0x621)]),{unitId:_0x5c973f,subUnitId:_0x5a9b48}=_0x1b2bfe,{value:_0x53cc34,enhanceParams:_0x1ad351}=_0x31c534,{range:_0x359b39}=_0x35afd3,_0x344e5a={'unitId':_0x5c973f,'subUnitId':_0x5a9b48,'shapeType':_0x53cc34,'range':_0x359b39,'shapeId':(0x0,_univerjs_core[_0x583ebe(0x12e)])()};if(_0x1ad351){const _0x2fcf5b=(0x0,_univerjs_pro_engine_shape[_0x583ebe(0x5fb)])(_0x53cc34),_0xad7f86=_0x53cc34===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x583ebe(0x49b)];if(_0x2fcf5b&&(_0x1ad351[_0x583ebe(0x1d9)]||_0x1ad351[_0x583ebe(0x120)]))_0x344e5a[_0x583ebe(0x3dd)]={'ln':{'startArrow':_0x1ad351[_0x583ebe(0x1d9)]?{'type':_univerjs_pro_engine_shape[_0x583ebe(0x61f)]['Arrow'],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x583ebe(0x2d2)]}:void 0x0,'endArrow':_0x1ad351[_0x583ebe(0x120)]?{'type':_univerjs_pro_engine_shape[_0x583ebe(0x61f)][_0x583ebe(0x50e)],'size':_univerjs_pro_engine_shape[_0x583ebe(0x203)][_0x583ebe(0x4d0)]}:void 0x0}};if(_0xad7f86&&(_0x1ad351[_0x583ebe(0x160)]||_0x1ad351['vertical']))_0x344e5a['shapeData']={'fill':{'fillType':_univerjs_pro_engine_shape[_0x583ebe(0x328)][_0x583ebe(0x4fa)],'color':_0x583ebe(0x454)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x583ebe(0x558)][_0x583ebe(0x31c)],'width':0x1,'color':_0x583ebe(0x439)},'shapeText':{'isHorizontal':!!_0x1ad351['horizontal']}};}const _0x4c6369=_0x3c777b[_0x583ebe(0x449)](_univerjs_pro_sheets_shape[_0x583ebe(0x537)]['id'],_0x344e5a);return setTimeout(()=>{const _0x5456fc=_0x583ebe;_0x3c777b[_0x5456fc(0x636)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x5c973f,'subUnitId':_0x5a9b48,'drawingId':_0x344e5a[_0x5456fc(0x1d8)]}]);},0xc8),_0x4c6369;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x19047a,_0x103658){const _0x1792b9=_0x48b1be;super(),this['_clipService']=_0x19047a,this[_0x1792b9(0x307)]=_0x103658,this[_0x1792b9(0x4a6)](),this['_clipService']['setCanUseShapeClip'](!![]),this['disposeWithMe']({'dispose':()=>this[_0x1792b9(0x4f2)][_0x1792b9(0x4f6)](![])});}[_0x48b1be(0x4a6)](){const _0x13d79b=_0x48b1be,_0x1af557=this[_0x13d79b(0x4f2)],_0x56aa1b=new Map(),_0x19e64b=_0x1af557[_0x13d79b(0x323)]((_0x220c10,_0x2a2c4a,_0x97e06,_0xa3e8d6,_0x47e2e7)=>{const _0x149367=_0x13d79b,_0x13be3c=_0x2a2c4a;if(_0x13be3c===_univerjs_pro_engine_shape[_0x149367(0x515)][_0x149367(0x197)]||_0x2a2c4a===_0x149367(0x472))return![];try{let _0x143dc0=_0x56aa1b['get'](_0x2a2c4a);!_0x143dc0&&(_0x143dc0=new _univerjs_pro_engine_shape[(_0x149367(0x195))](_0x13be3c,_0x149367(0x4b2)+_0x2a2c4a),_0x56aa1b['set'](_0x2a2c4a,_0x143dc0));if(_0x47e2e7)_0x143dc0[_0x149367(0x513)]({'adjustValues':_0x47e2e7},!![]);return _0x143dc0[_0x149367(0x3ce)]({'width':_0x97e06,'height':_0xa3e8d6}),_0x143dc0[_0x149367(0x357)](_0x220c10,{'left':0x0,'top':0x0,'width':_0x97e06,'height':_0xa3e8d6});}catch{return![];}});this[_0x13d79b(0x47f)](_0x19e64b),this[_0x13d79b(0x47f)]({'dispose':()=>_0x56aa1b['clear']()});}[_0x48b1be(0x2de)](_0x23a54d,_0x31f69a,_0x1cb14f,_0x56b89f,_0x58894b){const _0xa1c843=_0x48b1be,_0x58128a=this[_0xa1c843(0x307)]['getDrawingData'](_0x23a54d,_0x31f69a);if(!_0x58128a[_0x1cb14f])return;const _0x575a88={..._0x58128a[_0x1cb14f],'prstGeom':_0x56b89f,'adjustValues':_0x58894b};this[_0xa1c843(0x307)][_0xa1c843(0x602)]([_0x575a88]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_drawing_ui['DrawingImageClipService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_drawing['IDrawingManagerService']))],ImageShapeClipController);let ShapeGroupEnum=function(_0x4c4c90){const _0xf55a4f=_0x48b1be;return _0x4c4c90[_0xf55a4f(0x2eb)]=_0xf55a4f(0x21c),_0x4c4c90[_0xf55a4f(0x266)]=_0xf55a4f(0x25d),_0x4c4c90['BasicShape']=_0xf55a4f(0x179),_0x4c4c90[_0xf55a4f(0x19e)]=_0xf55a4f(0x644),_0x4c4c90[_0xf55a4f(0x66a)]='equationShape',_0x4c4c90['Flowchart']=_0xf55a4f(0x329),_0x4c4c90[_0xf55a4f(0x59b)]='starAndBanner',_0x4c4c90['Callout']=_0xf55a4f(0x1bb),_0x4c4c90[_0xf55a4f(0x424)]=_0xf55a4f(0x55e),_0x4c4c90;}({});const shapeTypeOptions=[{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2eb)],'icon':_0x48b1be(0x526),'name':'shape.type.line'},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1ee)],'icon':_0x48b1be(0x278),'name':_0x48b1be(0x318),'endArrow':!![]},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1ee)],'icon':'ShapeStraightConnector2Icon','name':_0x48b1be(0x37f),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum['Line'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2d6)],'icon':_0x48b1be(0x44d),'name':_0x48b1be(0x176)},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x2d6)],'icon':_0x48b1be(0x360),'name':'shape.type.bent-connector3-arrow1','endArrow':!![]},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2d6)],'icon':_0x48b1be(0x27f),'name':_0x48b1be(0x532),'endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum['Line'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5a5)],'icon':_0x48b1be(0xfa),'name':_0x48b1be(0x282)},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['CurvedConnector3'],'icon':_0x48b1be(0x440),'name':'shape.type.curved-connector3-arrow1','endArrow':!![]},{'group':ShapeGroupEnum[_0x48b1be(0x2eb)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5a5)],'icon':_0x48b1be(0x12d),'name':'shape.type.curved-connector3-arrow2','endArrow':!![],'startArrow':!![]},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x49b)],'icon':_0x48b1be(0x1c5),'name':_0x48b1be(0x4b9)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x294)],'icon':_0x48b1be(0x3fb),'name':_0x48b1be(0x46f)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Snip1Rect'],'icon':'ShapeSnip1RectIcon','name':_0x48b1be(0x206)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x371)],'icon':'ShapeSnip2SameRectIcon','name':_0x48b1be(0x219)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x175)],'icon':_0x48b1be(0x5c0),'name':_0x48b1be(0x420)},{'group':ShapeGroupEnum['Rectangle'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x18b)],'icon':_0x48b1be(0x58b),'name':_0x48b1be(0x16d)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x4cd)],'icon':_0x48b1be(0x32e),'name':_0x48b1be(0x2f5)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x54a)],'icon':'ShapeRound2SameRectIcon','name':_0x48b1be(0x557)},{'group':ShapeGroupEnum[_0x48b1be(0x266)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x53a)],'icon':_0x48b1be(0x5cd),'name':'shape.type.round2-diag-rect'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x49b)],'icon':_0x48b1be(0x4c4),'name':_0x48b1be(0x1bd),'horizontal':!![]},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Rect'],'icon':_0x48b1be(0x652),'name':_0x48b1be(0x17f),'vertical':!![]},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x11b)],'icon':_0x48b1be(0x480),'name':_0x48b1be(0x173)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Triangle'],'icon':_0x48b1be(0x21f),'name':'shape.type.triangle'},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4f9)],'icon':_0x48b1be(0x52d),'name':_0x48b1be(0x3ac)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x550)],'icon':_0x48b1be(0x2e3),'name':_0x48b1be(0x2b9)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Trapezoid'],'icon':_0x48b1be(0x212),'name':_0x48b1be(0x237)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Diamond'],'icon':_0x48b1be(0x624),'name':_0x48b1be(0x521)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x446)],'icon':_0x48b1be(0x16c),'name':_0x48b1be(0x10e)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Hexagon'],'icon':'ShapeHexagonIcon','name':_0x48b1be(0x1f9)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x270)],'icon':_0x48b1be(0x103),'name':_0x48b1be(0x31e)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3be)],'icon':'ShapeOctagonIcon','name':_0x48b1be(0x17c)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1ea)],'icon':_0x48b1be(0x352),'name':_0x48b1be(0x1fe)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x24e)],'icon':_0x48b1be(0x1e5),'name':_0x48b1be(0x53c)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3c9)],'icon':_0x48b1be(0x245),'name':'shape.type.pie'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Chord'],'icon':'ShapeChordIcon','name':_0x48b1be(0x188)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1a2)],'icon':_0x48b1be(0x105),'name':_0x48b1be(0x27d)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x630)],'icon':_0x48b1be(0x1af),'name':_0x48b1be(0x304)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x628)],'icon':_0x48b1be(0x49e),'name':_0x48b1be(0x2cd)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x417)],'icon':_0x48b1be(0x54b),'name':_0x48b1be(0x4b6)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['DiagStripe'],'icon':_0x48b1be(0x353),'name':_0x48b1be(0x1f0)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x48d)],'icon':_0x48b1be(0x3f0),'name':_0x48b1be(0x11c)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3c3)],'icon':_0x48b1be(0x40f),'name':_0x48b1be(0x645)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2ef)],'icon':_0x48b1be(0x18f),'name':'shape.type.can'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Cube'],'icon':_0x48b1be(0x55b),'name':_0x48b1be(0x63c)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1a3)],'icon':'ShapeBevelIcon','name':_0x48b1be(0x11e)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x158)],'icon':_0x48b1be(0x306),'name':_0x48b1be(0x335)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x490)],'icon':_0x48b1be(0x619),'name':_0x48b1be(0x2c1)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['BlockArc'],'icon':_0x48b1be(0x433),'name':_0x48b1be(0x259)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2c3)],'icon':'ShapeFolderCornerIcon','name':_0x48b1be(0x51d)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x44c)],'icon':'ShapeSmileyFaceIcon','name':_0x48b1be(0x648)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4d1)],'icon':_0x48b1be(0x35a),'name':_0x48b1be(0x2bf)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['LightningBolt'],'icon':_0x48b1be(0x225),'name':_0x48b1be(0x486)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x169)],'icon':_0x48b1be(0x5f4),'name':_0x48b1be(0x1ca)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x473)],'icon':'ShapeMoonIcon','name':'shape.type.moon'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Cloud'],'icon':_0x48b1be(0x574),'name':_0x48b1be(0x46a)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x113)],'icon':'ShapeArcIcon','name':_0x48b1be(0x3a9)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['BracketPair'],'icon':_0x48b1be(0x59d),'name':'shape.type.bracket-pair'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4bd)],'icon':'ShapeBracePairIcon','name':_0x48b1be(0x49c)},{'group':ShapeGroupEnum[_0x48b1be(0x40c)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x18a)],'icon':_0x48b1be(0x125),'name':'shape.type.left-bracket'},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x337)],'icon':_0x48b1be(0x510),'name':_0x48b1be(0x133)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1f4)],'icon':_0x48b1be(0x1da),'name':_0x48b1be(0x3ed)},{'group':ShapeGroupEnum['BasicShape'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['RightBrace'],'icon':_0x48b1be(0x34d),'name':'shape.type.right-brace'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5a7)],'icon':_0x48b1be(0x5fe),'name':_0x48b1be(0x5e4)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftArrow'],'icon':'ShapeLeftArrowIcon','name':_0x48b1be(0x37b)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2dc)],'icon':_0x48b1be(0x4d8),'name':_0x48b1be(0x208)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['DownArrow'],'icon':'ShapeDownArrowIcon','name':'shape.type.down-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x138)],'icon':_0x48b1be(0x31b),'name':'shape.type.left-right-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['UpDownArrow'],'icon':_0x48b1be(0x409),'name':_0x48b1be(0x3c6)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x22a)],'icon':_0x48b1be(0x3e9),'name':_0x48b1be(0x5cc)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['LeftRightUpArrow'],'icon':'ShapeLeftRightUpArrowIcon','name':'shape.type.left-right-up-arrow'},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x638)],'icon':'ShapeBentArrowIcon','name':_0x48b1be(0x5d7)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x139)],'icon':_0x48b1be(0x435),'name':_0x48b1be(0x1b5)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x418)],'icon':'ShapeLeftUpArrowIcon','name':'shape.type.left-up-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x13c)],'icon':_0x48b1be(0x2ee),'name':'shape.type.bent-up-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x437)],'icon':_0x48b1be(0x220),'name':'shape.type.curved-right-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3cd)],'icon':_0x48b1be(0x51a),'name':'shape.type.curved-left-arrow'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x414)],'icon':_0x48b1be(0x342),'name':_0x48b1be(0x4a4)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['CurvedDownArrow'],'icon':'ShapeCurvedDownArrowIcon','name':_0x48b1be(0x422)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x467)],'icon':_0x48b1be(0x3c5),'name':_0x48b1be(0x33b)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x650)],'icon':_0x48b1be(0x3b9),'name':_0x48b1be(0x587)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2c4)],'icon':_0x48b1be(0x4da),'name':_0x48b1be(0x1f5)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5f3)],'icon':'ShapeChevronIcon','name':_0x48b1be(0x5df)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2a1)],'icon':_0x48b1be(0x13e),'name':_0x48b1be(0x230)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x627)],'icon':_0x48b1be(0x5f0),'name':'shape.type.down-arrow-callout'},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['LeftArrowCallout'],'icon':'ShapeLeftArrowCalloutIcon','name':_0x48b1be(0x382)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['UpArrowCallout'],'icon':'ShapeUpArrowCalloutIcon','name':_0x48b1be(0x499)},{'group':ShapeGroupEnum['BlockArrow'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x592)],'icon':_0x48b1be(0x59c),'name':_0x48b1be(0x5b9)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['QuadArrowCallout'],'icon':_0x48b1be(0x5d2),'name':_0x48b1be(0x530)},{'group':ShapeGroupEnum[_0x48b1be(0x19e)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['CircularArrow'],'icon':_0x48b1be(0x41a),'name':_0x48b1be(0x350)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x182)],'icon':'ShapeMathPlusIcon','name':_0x48b1be(0x24c)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['MathMinus'],'icon':_0x48b1be(0x14b),'name':_0x48b1be(0x4d9)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5d4)],'icon':'ShapeMathMultiplyIcon','name':_0x48b1be(0x2d5)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x2f1)],'icon':_0x48b1be(0x5ef),'name':_0x48b1be(0x10d)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x326)],'icon':_0x48b1be(0x17e),'name':_0x48b1be(0x27b)},{'group':ShapeGroupEnum[_0x48b1be(0x66a)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x656)],'icon':_0x48b1be(0x585),'name':_0x48b1be(0x600)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5ce)],'icon':_0x48b1be(0x157),'name':'shape.type.flow-chart-process'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['FlowchartAlternateProcess'],'icon':'ShapeFlowChartAlternateProcessIcon','name':_0x48b1be(0x30d)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x64f)],'icon':_0x48b1be(0x3f4),'name':_0x48b1be(0x3d7)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x149)],'icon':_0x48b1be(0x243),'name':_0x48b1be(0x50a)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2d9)],'icon':_0x48b1be(0x142),'name':_0x48b1be(0x45b)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartInternalStorage'],'icon':_0x48b1be(0x4f1),'name':_0x48b1be(0x631)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2d1)],'icon':_0x48b1be(0x32a),'name':_0x48b1be(0x150)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5b7)],'icon':_0x48b1be(0x593),'name':'shape.type.flow-chart-multidocument'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x320)],'icon':_0x48b1be(0x2c7),'name':_0x48b1be(0x3b0)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x311)],'icon':_0x48b1be(0x4ca),'name':'shape.type.flow-chart-preparation'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x623)],'icon':_0x48b1be(0x1a4),'name':_0x48b1be(0x640)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x32d)],'icon':_0x48b1be(0x4fb),'name':_0x48b1be(0x124)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['FlowchartConnector'],'icon':'ShapeFlowChartConnectorIcon','name':'shape.type.flow-chart-connector'},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x359)],'icon':_0x48b1be(0x1b2),'name':_0x48b1be(0x366)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x35f)],'icon':'ShapeFlowChartPunchedCardIcon','name':'shape.type.flow-chart-punched-card'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x373)],'icon':_0x48b1be(0x4de),'name':'shape.type.flow-chart-punched-tape'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4a3)],'icon':_0x48b1be(0x45f),'name':_0x48b1be(0x660)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x51b)],'icon':'ShapeFlowChartOrIcon','name':_0x48b1be(0x277)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x288)],'icon':_0x48b1be(0x147),'name':'shape.type.flow-chart-collate'},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x506)],'icon':_0x48b1be(0x3fe),'name':_0x48b1be(0x399)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x60d)],'icon':_0x48b1be(0x57b),'name':_0x48b1be(0x3cc)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x3e5)],'icon':_0x48b1be(0x25e),'name':_0x48b1be(0x64d)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x28a)],'icon':'ShapeFlowChartOnlineStorageIcon','name':_0x48b1be(0x522)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x15f)],'icon':'ShapeFlowChartDelayIcon','name':_0x48b1be(0x107)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x155)],'icon':_0x48b1be(0xf8),'name':_0x48b1be(0x416)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5a0)],'icon':_0x48b1be(0x38e),'name':_0x48b1be(0x1eb)},{'group':ShapeGroupEnum[_0x48b1be(0x500)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x410)],'icon':'ShapeFlowChartMagneticDrumIcon','name':_0x48b1be(0x55a)},{'group':ShapeGroupEnum['Flowchart'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x61e)],'icon':_0x48b1be(0x241),'name':'shape.type.flow-chart-display'},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3b6)],'icon':'ShapeIrregularSeal1Icon','name':_0x48b1be(0x598)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x180)],'icon':_0x48b1be(0x4f8),'name':_0x48b1be(0x20c)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x5d0)],'icon':'ShapeStar4Icon','name':_0x48b1be(0x1b1)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x4a8)],'icon':_0x48b1be(0xf7),'name':'shape.type.star5'},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5e3)],'icon':'ShapeStar6Icon','name':_0x48b1be(0x2c0)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x112)],'icon':_0x48b1be(0x5f1),'name':'shape.type.star7'},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Star8'],'icon':_0x48b1be(0x314),'name':_0x48b1be(0x325)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Star10'],'icon':_0x48b1be(0x2a6),'name':_0x48b1be(0x161)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x604)],'icon':'ShapeStar12Icon','name':_0x48b1be(0x2ab)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x65c)],'icon':_0x48b1be(0x49f),'name':_0x48b1be(0x3fd)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Star24'],'icon':_0x48b1be(0x5cb),'name':_0x48b1be(0x38a)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2a0)],'icon':_0x48b1be(0x378),'name':_0x48b1be(0x47c)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x496)],'icon':_0x48b1be(0x487),'name':_0x48b1be(0x654)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x29d)],'icon':_0x48b1be(0x2e5),'name':'shape.type.ribbon'},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['EllipseRibbon2'],'icon':'ShapeEllipseRibbon2Icon','name':_0x48b1be(0x659)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x227)],'icon':_0x48b1be(0x126),'name':_0x48b1be(0x33a)},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4c1)],'icon':_0x48b1be(0x368),'name':_0x48b1be(0x281)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x14d)],'icon':_0x48b1be(0x479),'name':'shape.type.horizontal-scroll'},{'group':ShapeGroupEnum['StarAndBanner'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Wave'],'icon':_0x48b1be(0x137),'name':_0x48b1be(0x257)},{'group':ShapeGroupEnum[_0x48b1be(0x59b)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x283)],'icon':_0x48b1be(0x196),'name':'shape.type.double-wave'},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['WedgeRectCallout'],'icon':_0x48b1be(0x3ab),'name':_0x48b1be(0x3ad)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x57e)],'icon':_0x48b1be(0x22c),'name':_0x48b1be(0x20e)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x18c)],'icon':_0x48b1be(0x31d),'name':_0x48b1be(0x3c8)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x5aa)],'icon':_0x48b1be(0x4eb),'name':_0x48b1be(0x191)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1ba)],'icon':_0x48b1be(0x5b0),'name':_0x48b1be(0x5cf)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['BorderCallout2'],'icon':_0x48b1be(0x1d6),'name':_0x48b1be(0x523)},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x2a5)],'icon':'ShapeBorderCallout3Icon','name':_0x48b1be(0x174)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x54f)],'icon':_0x48b1be(0x3e8),'name':_0x48b1be(0x5ee)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x40d)],'icon':_0x48b1be(0x469),'name':_0x48b1be(0x14f)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x234)],'icon':'ShapeAccentCallout3Icon','name':'shape.type.accent-callout3'},{'group':ShapeGroupEnum['Callout'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Callout1'],'icon':_0x48b1be(0x615),'name':_0x48b1be(0x13b)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x167)],'icon':'ShapeCallout2Icon','name':'shape.type.callout2'},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x205)],'icon':_0x48b1be(0x2fa),'name':_0x48b1be(0x4cf)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['AccentBorderCallout1'],'icon':_0x48b1be(0x2e1),'name':'shape.type.accent-border-callout1'},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x24b)],'icon':'ShapeAccentBorderCallout2Icon','name':_0x48b1be(0x3db)},{'group':ShapeGroupEnum[_0x48b1be(0x5c1)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['AccentBorderCallout3'],'icon':_0x48b1be(0x27e),'name':'shape.type.accent-border-callout3'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1a6)],'icon':_0x48b1be(0x60a),'name':_0x48b1be(0x4be)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['LeftRightCircularArrow'],'icon':'ShapeLeftRightCircularArrowIcon','name':_0x48b1be(0x18d)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x4ab)],'icon':_0x48b1be(0x62f),'name':_0x48b1be(0x5fa)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x3c2)],'icon':_0x48b1be(0x427),'name':'shape.type.left-right-ribbon'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x134)],'icon':_0x48b1be(0x37d),'name':_0x48b1be(0x1f6)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x663)],'icon':_0x48b1be(0x1e4),'name':_0x48b1be(0x297)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x61d)],'icon':_0x48b1be(0x430),'name':_0x48b1be(0x2c6)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['Gear9'],'icon':_0x48b1be(0x1bf),'name':_0x48b1be(0x451)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x375)],'icon':_0x48b1be(0x561),'name':_0x48b1be(0x229)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2e2)],'icon':_0x48b1be(0x109),'name':_0x48b1be(0x518)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x56b)],'icon':'ShapeActionButtonForwardNextIcon','name':'shape.type.action-button-forward-next'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x533)],'icon':_0x48b1be(0x19c),'name':'shape.type.action-button-beginning'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x413)],'icon':_0x48b1be(0x43e),'name':_0x48b1be(0x309)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['ActionButtonHome'],'icon':_0x48b1be(0x2be),'name':'shape.type.action-button-home'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x610)],'icon':_0x48b1be(0x5d6),'name':_0x48b1be(0x123)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x101)],'icon':'ShapeActionButtonReturnIcon','name':'shape.type.action-button-return'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonMovie'],'icon':'ShapeActionButtonMovieIcon','name':_0x48b1be(0x580)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)]['ActionButtonDocument'],'icon':'ShapeActionButtonDocumentIcon','name':_0x48b1be(0x4db)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x554)],'icon':_0x48b1be(0x330),'name':'shape.type.action-button-sound'},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonHelp'],'icon':_0x48b1be(0x4d5),'name':_0x48b1be(0x575)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x599)],'icon':_0x48b1be(0x4e6),'name':_0x48b1be(0x5e9)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x2cc)],'icon':_0x48b1be(0x26f),'name':_0x48b1be(0x489)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ChartStar'],'icon':'ShapeChartStarIcon','name':_0x48b1be(0x512)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x632)],'icon':'ShapeChartXIcon','name':_0x48b1be(0x49a)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x28d)],'icon':_0x48b1be(0x315),'name':_0x48b1be(0x543)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x653)],'icon':_0x48b1be(0x25a),'name':'shape.type.line-inv'},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x36f)],'icon':'ShapePlaqueTabsIcon','name':_0x48b1be(0x1f2)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape[_0x48b1be(0x515)][_0x48b1be(0x1e0)],'icon':_0x48b1be(0x250),'name':_0x48b1be(0x136)},{'group':ShapeGroupEnum[_0x48b1be(0x424)],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x141)],'icon':_0x48b1be(0x218),'name':_0x48b1be(0x564)},{'group':ShapeGroupEnum['Other'],'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x48b1be(0x5db)],'icon':_0x48b1be(0x577),'name':_0x48b1be(0x541)}],SHAPE_PICKER_COMPONENT=_0x48b1be(0x3a8);function ShapePickerComponent({onShapeClick:_0x41aeab,excludeGroups:_0x155865}){const _0x322dc9=_0x48b1be,_0x5abf6f=(0x0,_univerjs_ui[_0x322dc9(0x425)])(_univerjs_core[_0x322dc9(0x319)]),_0x23d85f=(0x0,_univerjs_ui[_0x322dc9(0x425)])(_univerjs_ui['ComponentManager']),_0x2cf963=(_0x155865?shapeTypeOptions[_0x322dc9(0x2bb)](_0x361289=>!_0x155865[_0x322dc9(0x268)](_0x361289[_0x322dc9(0x3b4)])):shapeTypeOptions)[_0x322dc9(0x393)]((_0x265438,_0x3762a6)=>{const _0x5bbe1e=_0x322dc9;if(!_0x265438[_0x3762a6[_0x5bbe1e(0x3b4)]])_0x265438[_0x3762a6[_0x5bbe1e(0x3b4)]]=[];return _0x265438[_0x3762a6[_0x5bbe1e(0x3b4)]][_0x5bbe1e(0x5ed)](_0x3762a6),_0x265438;},{});return(0x0,react_jsx_runtime[_0x322dc9(0x586)])(_0x322dc9(0x4b3),{'className':_0x322dc9(0x2e8),'children':Object[_0x322dc9(0x52c)](_0x2cf963)[_0x322dc9(0x2d0)](([_0x45b989,_0xc98d70])=>(0x0,react_jsx_runtime['jsxs'])(_0x322dc9(0x4b3),{'className':_0x322dc9(0x3f1),'children':[(0x0,react_jsx_runtime['jsx'])(_0x322dc9(0x4b3),{'className':_0x322dc9(0x57a),'children':_0x5abf6f['t'](_0x322dc9(0x563)+_0x45b989)}),(0x0,react_jsx_runtime[_0x322dc9(0x586)])(_0x322dc9(0x4b3),{'className':'univer-grid\x20univer-grid-cols-10\x20univer-gap-1','children':_0xc98d70[_0x322dc9(0x2d0)](_0x1c53f2=>{const _0x12c192=_0x322dc9,_0xa654ca=_0x23d85f[_0x12c192(0x4fd)](_0x1c53f2['icon']);return(0x0,react_jsx_runtime['jsx'])('div',{'title':_0x5abf6f['t'](_0x1c53f2[_0x12c192(0x3eb)]),'onClick':()=>_0x41aeab(_0x1c53f2),'className':_0x12c192(0x45c),'children':_0xa654ca&&(0x0,react_jsx_runtime[_0x12c192(0x586)])(_0xa654ca,{'className':'univer-size-full'})},_0x1c53f2[_0x12c192(0x3eb)]);})})]},_0x45b989))});}function ImageClipShapePicker(){const _0x24b1c6=_0x48b1be,_0x1aee5a=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x24b1c6(0x319)]),_0x4399fc=(0x0,_univerjs_ui[_0x24b1c6(0x425)])(_univerjs_drawing['IDrawingManagerService']),_0x1a570a=(0x0,_univerjs_ui['useDependency'])(ImageShapeClipController),[_0x184d39,_0x8aa930]=(0x0,react[_0x24b1c6(0x47b)])(![]),_0x45c3ec=_0x1a8a6f=>{const _0x3cd4b6=_0x24b1c6,_0x456472=_0x4399fc[_0x3cd4b6(0x669)]()[_0x3cd4b6(0x190)](_0x482d01=>_0x482d01[_0x3cd4b6(0x2b0)]===_univerjs_core[_0x3cd4b6(0x45a)]['DRAWING_IMAGE']);if(!_0x456472)return;const {unitId:_0xbf131e,subUnitId:_0x15a210,drawingId:_0x49de40}=_0x456472;_0x1a570a[_0x3cd4b6(0x2de)](_0xbf131e,_0x15a210,_0x49de40,_0x1a8a6f[_0x3cd4b6(0x568)]),_0x8aa930(![]);};return(0x0,react_jsx_runtime[_0x24b1c6(0x586)])(_univerjs_design[_0x24b1c6(0x280)],{'side':_0x24b1c6(0x450),'open':_0x184d39,'onOpenChange':_0x8aa930,'overlay':(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x45c3ec,'excludeGroups':[ShapeGroupEnum[_0x24b1c6(0x2eb)]]}),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Button'],{'children':_0x1aee5a['t'](_0x24b1c6(0x455))})});}function ShapePicker(){const _0x3b8cf1=_0x48b1be,_0x379507=(0x0,_univerjs_ui[_0x3b8cf1(0x425)])(_univerjs_core['ICommandService']),_0x5978c3=_0x4f9631=>{const _0x5b7490=_0x3b8cf1;_0x379507[_0x5b7490(0x636)](MenuInsertShapeCommand['id'],{'value':_0x4f9631[_0x5b7490(0x568)],'enhanceParams':{'endArrow':_0x4f9631['endArrow'],'startArrow':_0x4f9631[_0x5b7490(0x1d9)],'horizontal':_0x4f9631[_0x5b7490(0x160)],'vertical':_0x4f9631[_0x5b7490(0x12f)]}});};return(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x5978c3});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':'align.left','icon':_0x48b1be(0x538),'value':_univerjs_core[_0x48b1be(0x400)][_0x48b1be(0x63f)]},{'label':_0x48b1be(0x303),'icon':_0x48b1be(0x434),'value':_univerjs_core['HorizontalAlign'][_0x48b1be(0x10c)]},{'label':_0x48b1be(0x22f),'icon':_0x48b1be(0x4a2),'value':_univerjs_core['HorizontalAlign']['RIGHT']}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x78a0c4){const _0x5b0ec3=_0x48b1be,_0xcef015=_0x78a0c4[_0x5b0ec3(0x4fd)](_univerjs_core[_0x5b0ec3(0x39b)]),_0x39543c=_0x78a0c4[_0x5b0ec3(0x4fd)](_univerjs_core[_0x5b0ec3(0x3bc)]);return{'id':_univerjs_docs_ui['SetInlineFormatTextBackgroundColorCommand']['id'],'tooltip':_0x5b0ec3(0x27a),'type':_univerjs_ui[_0x5b0ec3(0x42e)][_0x5b0ec3(0x30a)],'icon':_0x5b0ec3(0x38f),'selections':[{'label':{'name':_univerjs_ui[_0x5b0ec3(0x244)],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x5b0ec3(0x356))](_0x2dbb48=>{const _0x6d9b0e=_0x5b0ec3;_0x2dbb48[_0x6d9b0e(0x194)](_0x39543c[_0x6d9b0e(0x235)](_0x6d9b0e(0x53d)));}),'hidden$':_0xcef015['subscribeContextValue$'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x5b0ec3(0x560)]((0x0,rxjs['startWith'])(_0xcef015['getContextValue'](_univerjs_core[_0x5b0ec3(0x156)])),(0x0,rxjs['map'])(_0x14f2b5=>!_0x14f2b5))};}function ShapeResetBackgroundColorMenuItemFactory(_0x1a9540){const _0x2a008f=_0x48b1be,_0x5b9c4e=_0x1a9540[_0x2a008f(0x4fd)](_univerjs_core[_0x2a008f(0x39b)]);return{'id':_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id'],'type':_univerjs_ui[_0x2a008f(0x42e)][_0x2a008f(0x35b)],'title':_0x2a008f(0x1c3),'hidden$':_0x5b9c4e['subscribeContextValue$'](_univerjs_core[_0x2a008f(0x156)])[_0x2a008f(0x560)]((0x0,rxjs['startWith'])(_0x5b9c4e[_0x2a008f(0x5fc)](_univerjs_core[_0x2a008f(0x156)])),(0x0,rxjs[_0x2a008f(0x2d0)])(_0x7acb1c=>!_0x7acb1c))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':'align.left','icon':_0x48b1be(0x538),'value':_univerjs_core[_0x48b1be(0x400)][_0x48b1be(0x63f)]},{'label':_0x48b1be(0x303),'icon':'HorizontallyIcon','value':_univerjs_core[_0x48b1be(0x400)][_0x48b1be(0x10c)]},{'label':_0x48b1be(0x22f),'icon':_0x48b1be(0x4a2),'value':_univerjs_core['HorizontalAlign'][_0x48b1be(0x5e1)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x359e56){const _0x55eb42=_0x48b1be;var _0x4454ef;const _0x9ddefc=_0x359e56['get'](_univerjs_core[_0x55eb42(0x621)]),_0x11642d=_0x359e56['get'](_univerjs_core['IContextService']),_0x5d4c7d=_0x359e56['get'](_univerjs_sheets_drawing[_0x55eb42(0x528)]),_0x113073=_0x359e56[_0x55eb42(0x4fd)](ShapeTextEditingService),_0x42604d=_0x359e56[_0x55eb42(0x4fd)](_univerjs_pro_sheets_shape[_0x55eb42(0x475)]),_0x22c7d6=_univerjs_core[_0x55eb42(0x400)][_0x55eb42(0x63f)],_0x577690=()=>{const _0xe77b7f=_0x55eb42;var _0x11061f;const _0x191784=_0x5d4c7d[_0xe77b7f(0x669)]()[_0xe77b7f(0x2bb)](_0x33b878=>_0x33b878['drawingType']===_univerjs_core[_0xe77b7f(0x45a)][_0xe77b7f(0x614)]);if(_0x191784['length']!==0x1)return _0x22c7d6;const _0x11aeaa=_0x113073[_0xe77b7f(0x36b)](),_0x32f281=(_0x11aeaa===null||_0x11aeaa===void 0x0?void 0x0:_0x11aeaa['unitId'])||_0x191784[0x0]['unitId'],_0x34cf71=(_0x11aeaa===null||_0x11aeaa===void 0x0?void 0x0:_0x11aeaa[_0xe77b7f(0x4dc)])||_0x191784[0x0]['subUnitId'],_0x2c3287=(_0x11aeaa===null||_0x11aeaa===void 0x0?void 0x0:_0x11aeaa['shapeId'])||_0x191784[0x0][_0xe77b7f(0x4cb)],_0x447308=_0x42604d['getShapeModel'](_0x32f281,_0x34cf71,_0x2c3287);if(!_0x447308)return _0x22c7d6;const _0xb058ba=_0x447308[_0xe77b7f(0x48f)]();if(!_0xb058ba||!(_0xe77b7f(0x31a)in _0xb058ba))return _0x22c7d6;const _0x9f200a=_0xb058ba[_0xe77b7f(0x31a)];return(_0x11061f=_0x9f200a===null||_0x9f200a===void 0x0?void 0x0:_0x9f200a['ha'])!==null&&_0x11061f!==void 0x0?_0x11061f:_0x22c7d6;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x4454ef=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x55eb42(0x190)](_0x38cbdf=>_0x38cbdf[_0x55eb42(0x228)]===_0x22c7d6))===null||_0x4454ef===void 0x0?void 0x0:_0x4454ef[_0x55eb42(0x181)],'tooltip':_0x55eb42(0x5ea),'type':_univerjs_ui[_0x55eb42(0x42e)][_0x55eb42(0x114)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x55eb42(0x356))](_0x7c287e=>{const _0x46798d=_0x55eb42,_0x4276f1=_0x9ddefc[_0x46798d(0x2a8)](_0x400246=>{const _0x53d329=_0x46798d;if(_0x400246['id']===SetShapeTextHorizontalAlignCommand['id'])_0x7c287e[_0x53d329(0x194)](_0x577690());}),_0x79b9de=_0x113073['editingParams$'][_0x46798d(0x22b)](()=>{const _0x176b1e=_0x46798d;_0x7c287e[_0x176b1e(0x194)](_0x577690());});return _0x7c287e[_0x46798d(0x194)](_0x577690()),()=>{const _0xdf37b5=_0x46798d;_0x4276f1[_0xdf37b5(0x570)](),_0x79b9de[_0xdf37b5(0x4e2)]();};}),'hidden$':_0x11642d['subscribeContextValue$'](_univerjs_core[_0x55eb42(0x156)])[_0x55eb42(0x560)]((0x0,rxjs[_0x55eb42(0x2d0)])(_0x57e89d=>!_0x57e89d))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':'align.top','icon':_0x48b1be(0x154),'value':_univerjs_core[_0x48b1be(0x226)][_0x48b1be(0xfd)]},{'label':_0x48b1be(0x1b8),'icon':_0x48b1be(0x4b5),'value':_univerjs_core[_0x48b1be(0x226)][_0x48b1be(0x128)]},{'label':_0x48b1be(0x493),'icon':_0x48b1be(0x12a),'value':_univerjs_core[_0x48b1be(0x226)][_0x48b1be(0x403)]}];function ShapeVerticalAlignMenuItemFactory(_0x367793){const _0x4086b6=_0x48b1be;var _0x329434;const _0x512d66=_0x367793['get'](_univerjs_core[_0x4086b6(0x621)]),_0x445a9d=_0x367793[_0x4086b6(0x4fd)](_univerjs_core[_0x4086b6(0x39b)]),_0x433e7c=_0x367793[_0x4086b6(0x4fd)](_univerjs_sheets_drawing[_0x4086b6(0x528)]),_0x15ce5e=_0x367793[_0x4086b6(0x4fd)](ShapeTextEditingService),_0x5da6e2=_0x367793[_0x4086b6(0x4fd)](_univerjs_pro_sheets_shape[_0x4086b6(0x475)]),_0xb901e5=_univerjs_core[_0x4086b6(0x226)][_0x4086b6(0xfd)],_0x3ccecf=()=>{const _0x2847da=_0x4086b6;var _0x12059c;const _0x27502c=_0x433e7c[_0x2847da(0x669)]()['filter'](_0x3d6de6=>_0x3d6de6[_0x2847da(0x2b0)]===_univerjs_core[_0x2847da(0x45a)][_0x2847da(0x614)]);if(_0x27502c['length']!==0x1)return _0xb901e5;const _0x5e196b=_0x15ce5e[_0x2847da(0x36b)](),_0x590ece=(_0x5e196b===null||_0x5e196b===void 0x0?void 0x0:_0x5e196b[_0x2847da(0x1ab)])||_0x27502c[0x0][_0x2847da(0x1ab)],_0x54ae80=(_0x5e196b===null||_0x5e196b===void 0x0?void 0x0:_0x5e196b[_0x2847da(0x4dc)])||_0x27502c[0x0][_0x2847da(0x4dc)],_0x351e80=(_0x5e196b===null||_0x5e196b===void 0x0?void 0x0:_0x5e196b[_0x2847da(0x1d8)])||_0x27502c[0x0][_0x2847da(0x4cb)],_0x54048a=_0x5da6e2['getShapeModel'](_0x590ece,_0x54ae80,_0x351e80);if(!_0x54048a)return _0xb901e5;const _0x61287f=_0x54048a['getShapeTextData']();if(!_0x61287f||!(_0x2847da(0x31a)in _0x61287f))return _0xb901e5;const _0x1491e9=_0x61287f[_0x2847da(0x31a)];return(_0x12059c=_0x1491e9===null||_0x1491e9===void 0x0?void 0x0:_0x1491e9['va'])!==null&&_0x12059c!==void 0x0?_0x12059c:_0xb901e5;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x329434=SHAPE_VERTICAL_ALIGN_CHILDREN['find'](_0x574625=>_0x574625['value']===_0xb901e5))===null||_0x329434===void 0x0?void 0x0:_0x329434[_0x4086b6(0x181)],'tooltip':'toolbar.verticalAlignMode.main','type':_univerjs_ui[_0x4086b6(0x42e)]['SELECTOR'],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x4086b6(0x356))](_0x3ebda6=>{const _0x3d18de=_0x4086b6,_0x2a2d71=_0x512d66['onCommandExecuted'](_0x48ee26=>{const _0x180c0d=_0x1fb6;if(_0x48ee26['id']===SetShapeTextVerticalAlignCommand['id'])_0x3ebda6[_0x180c0d(0x194)](_0x3ccecf());}),_0x2c7f36=_0x15ce5e[_0x3d18de(0x264)][_0x3d18de(0x22b)](()=>{const _0x37d6bb=_0x3d18de;_0x3ebda6[_0x37d6bb(0x194)](_0x3ccecf());});return _0x3ebda6[_0x3d18de(0x194)](_0x3ccecf()),()=>{const _0x251fdb=_0x3d18de;_0x2a2d71[_0x251fdb(0x570)](),_0x2c7f36['unsubscribe']();};}),'hidden$':_0x445a9d[_0x4086b6(0x5ab)](_univerjs_core[_0x4086b6(0x156)])['pipe']((0x0,rxjs[_0x4086b6(0x2d0)])(_0x272740=>!_0x272740))};}function ShapeMenuItemFactory(_0x5e0a6f){const _0x21d82e=_0x48b1be,_0x2f78ec=_0x5e0a6f[_0x21d82e(0x4fd)](_univerjs_core[_0x21d82e(0x1d2)]);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x21d82e(0x42e)][_0x21d82e(0x114)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x21d82e(0x516),'tooltip':'sheets-shape.insertShape','activated$':(0x0,_univerjs_sheets_ui['deriveStateFromActiveSheet$'])(_0x2f78ec,![],()=>new rxjs[(_0x21d82e(0x356))](_0x5cc30f=>{_0x5cc30f['next'](![]);})),'hidden$':(0x0,_univerjs_ui['getMenuHiddenObservable'])(_0x5e0a6f,_univerjs_core[_0x21d82e(0x617)][_0x21d82e(0x5a6)]),'disabled$':(0x0,_univerjs_sheets_ui[_0x21d82e(0x372)])(_0x5e0a6f)};}const menuSchema={[_univerjs_ui[_0x48b1be(0x4ee)]['START']]:{[_univerjs_ui[_0x48b1be(0x4b4)][_0x48b1be(0x501)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui[_0x48b1be(0x4b4)][_0x48b1be(0x349)]]:{[_univerjs_docs_ui[_0x48b1be(0x5b4)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui[_0x48b1be(0x2fe)]['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui[_0x48b1be(0x3a5)][_0x48b1be(0x3a0)]]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core['Disposable']{constructor(_0x3a4ec6,_0x49c46e,_0x72288a,_0x264db3,_0x3936a0,_0x348d85,_0xa0916f,_0x27cd84,_0x41c9f8,_0x404eb5,_0x37955f){const _0x2273c4=_0x48b1be;super(),this[_0x2273c4(0x36a)]=_0x3a4ec6,this[_0x2273c4(0x5dd)]=_0x49c46e,this[_0x2273c4(0x60c)]=_0x72288a,this[_0x2273c4(0x477)]=_0x264db3,this[_0x2273c4(0x5d9)]=_0x3936a0,this['_localeService']=_0x348d85,this[_0x2273c4(0x482)]=_0xa0916f,this[_0x2273c4(0x1c8)]=_0x27cd84,this[_0x2273c4(0x307)]=_0x41c9f8,this[_0x2273c4(0x374)]=_0x404eb5,this[_0x2273c4(0x5bf)]=_0x37955f,_defineProperty(this,_0x2273c4(0x498),null),_defineProperty(this,'_activeShapeInfo',null),_defineProperty(this,'_isOpenedShapeEditPanel',![]),this[_0x2273c4(0x61b)](),this[_0x2273c4(0x51c)](),this[_0x2273c4(0x47f)](this[_0x2273c4(0x36a)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x2273c4(0x617)][_0x2273c4(0x5a6)])['subscribe'](_0x357c5c=>{const _0x4ce013=_0x2273c4;var _0x432669;if(!_0x357c5c)(_0x432669=this[_0x4ce013(0x498)])===null||_0x432669===void 0x0||_0x432669[_0x4ce013(0x570)]();})),this[_0x2273c4(0x54c)](),this['_registerShapeMenu']();}['_initMenu'](){const _0x18707a=_0x48b1be;this[_0x18707a(0x477)]['mergeMenu'](menuSchema);}[_0x48b1be(0x25f)](){const _0x1bbe5d=_0x48b1be;this[_0x1bbe5d(0x374)][_0x1bbe5d(0x58d)](_univerjs_core[_0x1bbe5d(0x45a)][_0x1bbe5d(0x614)],this[_0x1bbe5d(0x232)]['bind'](this)),this[_0x1bbe5d(0x374)][_0x1bbe5d(0x646)](_univerjs_core[_0x1bbe5d(0x45a)][_0x1bbe5d(0x614)],0x6,0x4);}['getShapePopupMenus'](_0x187e07,_0x29244a,_0x541e9e,_0x1ad1c6){const _0x1fa2a4=_0x48b1be;return[{'label':_0x1fa2a4(0x4ba),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'drawingId':_0x541e9e},'disable':_0x1ad1c6===_univerjs_core[_0x1fa2a4(0x45a)][_0x1fa2a4(0x213)]},{'label':_0x1fa2a4(0x1e8),'index':0x1,'commandId':_univerjs_sheets_drawing[_0x1fa2a4(0x535)]['id'],'commandParams':{'unitId':_0x187e07,'drawings':[{'unitId':_0x187e07,'subUnitId':_0x29244a,'drawingId':_0x541e9e,'drawingType':_0x1ad1c6}]},'disable':![]},{'label':_0x1fa2a4(0x3ef),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'drawingId':_0x541e9e},'disable':![]},{'label':_0x1fa2a4(0x5d8),'index':0x3,'commandId':_univerjs_pro_sheets_shape[_0x1fa2a4(0x65f)]['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e,'flipH':!![]},'disable':![]},{'label':'sheets-shape.toggleFlipV','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1fa2a4(0x65f)]['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e,'flipV':!![]},'disable':![]},{'label':'sheets-shape.rotateRight90','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1fa2a4(0x609)]['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e,'rotate':0x5a},'disable':![]},{'label':_0x1fa2a4(0x231),'index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e,'rotate':-0x5a},'disable':![]},{'label':_0x1fa2a4(0x2e4),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x1fa2a4(0x1ff)]['id'],'commandParams':{'unitId':_0x187e07,'subUnitId':_0x29244a,'shapeId':_0x541e9e},'disable':![]}];}[_0x48b1be(0x30c)](_0x1c8d76,_0x70ac36,_0x2d544f){const _0x1439eb=_0x48b1be,_0x5cd865=this[_0x1439eb(0x5d9)][_0x1439eb(0x376)](_0x1c8d76,_0x70ac36,_0x2d544f),_0x429f8e=this[_0x1439eb(0x5d9)][_0x1439eb(0x665)](_0x1c8d76,_0x70ac36,_0x2d544f);if(_0x5cd865!==void 0x0&&_0x429f8e!==void 0x0)return{'shapeData':_0x429f8e,'shapeId':_0x2d544f,'shapeType':_0x5cd865,'unitId':_0x1c8d76,'subUnitId':_0x70ac36,'disableShapeOption':![]};return null;}[_0x48b1be(0x54c)](){const _0x49db20=_0x48b1be;this[_0x49db20(0x47f)](this[_0x49db20(0x1c8)][_0x49db20(0x2a8)](_0x1f47fb=>{const _0x1b96b1=_0x49db20;if(_0x1f47fb['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x1fdedc,subUnitId:_0x1eee8f,drawingId:_0x269dc5}=_0x1f47fb[_0x1b96b1(0x37c)];this[_0x1b96b1(0x14e)]=this[_0x1b96b1(0x30c)](_0x1fdedc,_0x1eee8f,_0x269dc5),this[_0x1b96b1(0x40b)]();}_0x1f47fb['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x1b96b1(0x14e)]=null,this[_0x1b96b1(0xfb)]());if(_0x1f47fb['id']===_univerjs_pro_sheets_shape[_0x1b96b1(0x565)]['id']){const {unitId:_0x50b64e,subUnitId:_0xf77543,shapeId:_0x363db8}=_0x1f47fb[_0x1b96b1(0x37c)];if(this[_0x1b96b1(0x14e)]&&this['_activeShapeInfo'][_0x1b96b1(0x1d8)]===_0x363db8){const _0x478b40=this[_0x1b96b1(0x30c)](_0x50b64e,_0xf77543,_0x363db8);if(_0x478b40)this[_0x1b96b1(0x14e)]=_0x478b40;}}})),this['disposeWithMe'](this[_0x49db20(0x307)][_0x49db20(0x16e)]['subscribe'](_0x4e84c8=>{const _0x2754e7=_0x49db20;if(this[_0x2754e7(0x428)]===![])return;if(_0x4e84c8[_0x2754e7(0x42d)]===0x0){this['_activeShapeInfo']=null,this['_closeShapeEditPanel']();return;}if(_0x4e84c8[_0x2754e7(0x42d)]===0x1&&_0x4e84c8[0x0][_0x2754e7(0x2b0)]===_univerjs_core[_0x2754e7(0x45a)]['DRAWING_SHAPE']){this[_0x2754e7(0x14e)]=this[_0x2754e7(0x30c)](_0x4e84c8[0x0][_0x2754e7(0x1ab)],_0x4e84c8[0x0][_0x2754e7(0x4dc)],_0x4e84c8[0x0]['drawingId']);if(this[_0x2754e7(0x14e)]){this[_0x2754e7(0x40b)]();return;}}const _0x18aa60=_0x4e84c8[_0x2754e7(0x2bb)](_0xa0161a=>{const _0x3f9fa2=_0x2754e7;return _0xa0161a['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x3f9fa2(0x614)];});if(_0x4e84c8[_0x2754e7(0x42d)]>0x1&&_0x18aa60[_0x2754e7(0x42d)]===_0x4e84c8['length']){this['_activeShapeInfo']=this['_getShapeInfo'](_0x4e84c8[0x0][_0x2754e7(0x1ab)],_0x4e84c8[0x0][_0x2754e7(0x4dc)],_0x4e84c8[0x0][_0x2754e7(0x4cb)]);if(this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{this[_0x2754e7(0x14e)]=this['_getShapeInfo'](_0x4e84c8[0x0][_0x2754e7(0x1ab)],_0x4e84c8[0x0][_0x2754e7(0x4dc)],_0x4e84c8[0x0][_0x2754e7(0x4cb)]);if(this[_0x2754e7(0x14e)]){this['_activeShapeInfo']['disableShapeOption']=!![],this[_0x2754e7(0x40b)]();return;}}this[_0x2754e7(0xfb)]();}));}[_0x48b1be(0x61b)](){const _0x1f97d3=_0x48b1be;[[_0x1f97d3(0x516),_univerjs_icons[_0x1f97d3(0x516)]],[_0x1f97d3(0x2e1),_univerjs_icons['ShapeAccentBorderCallout1Icon']],[_0x1f97d3(0x3ea),_univerjs_icons[_0x1f97d3(0x3ea)]],[_0x1f97d3(0x27e),_univerjs_icons['ShapeAccentBorderCallout3Icon']],['ShapeAccentCallout1Icon',_univerjs_icons[_0x1f97d3(0x3e8)]],[_0x1f97d3(0x469),_univerjs_icons[_0x1f97d3(0x469)]],['ShapeAccentCallout3Icon',_univerjs_icons[_0x1f97d3(0x4a0)]],[_0x1f97d3(0x109),_univerjs_icons[_0x1f97d3(0x109)]],[_0x1f97d3(0x19c),_univerjs_icons[_0x1f97d3(0x19c)]],[_0x1f97d3(0x4e6),_univerjs_icons['ShapeActionButtonBlankIcon']],[_0x1f97d3(0x2fc),_univerjs_icons['ShapeActionButtonDocumentIcon']],[_0x1f97d3(0x43e),_univerjs_icons['ShapeActionButtonEndIcon']],[_0x1f97d3(0x284),_univerjs_icons['ShapeActionButtonForwardNextIcon']],['ShapeActionButtonHelpIcon',_univerjs_icons[_0x1f97d3(0x4d5)]],[_0x1f97d3(0x2be),_univerjs_icons[_0x1f97d3(0x2be)]],[_0x1f97d3(0x5d6),_univerjs_icons[_0x1f97d3(0x5d6)]],[_0x1f97d3(0x28e),_univerjs_icons['ShapeActionButtonMovieIcon']],['ShapeActionButtonReturnIcon',_univerjs_icons[_0x1f97d3(0x657)]],['ShapeActionButtonSoundIcon',_univerjs_icons[_0x1f97d3(0x330)]],['ShapeArcIcon',_univerjs_icons[_0x1f97d3(0x20f)]],[_0x1f97d3(0x19b),_univerjs_icons[_0x1f97d3(0x19b)]],[_0x1f97d3(0x360),_univerjs_icons[_0x1f97d3(0x360)]],[_0x1f97d3(0x27f),_univerjs_icons[_0x1f97d3(0x27f)]],['ShapeBentConnector3Icon',_univerjs_icons['ShapeBentConnector3Icon']],[_0x1f97d3(0x2ee),_univerjs_icons[_0x1f97d3(0x2ee)]],[_0x1f97d3(0x221),_univerjs_icons['ShapeBevelIcon']],[_0x1f97d3(0x433),_univerjs_icons[_0x1f97d3(0x433)]],[_0x1f97d3(0x5b0),_univerjs_icons[_0x1f97d3(0x5b0)]],[_0x1f97d3(0x1d6),_univerjs_icons[_0x1f97d3(0x1d6)]],[_0x1f97d3(0x262),_univerjs_icons[_0x1f97d3(0x262)]],[_0x1f97d3(0x509),_univerjs_icons[_0x1f97d3(0x509)]],[_0x1f97d3(0x59d),_univerjs_icons[_0x1f97d3(0x59d)]],[_0x1f97d3(0x615),_univerjs_icons[_0x1f97d3(0x615)]],['ShapeCallout2Icon',_univerjs_icons['ShapeCallout2Icon']],['ShapeCallout3Icon',_univerjs_icons[_0x1f97d3(0x2fa)]],[_0x1f97d3(0x18f),_univerjs_icons['ShapeCanIcon']],[_0x1f97d3(0x26f),_univerjs_icons['ShapeChartPlusIcon']],[_0x1f97d3(0x3e3),_univerjs_icons[_0x1f97d3(0x3e3)]],['ShapeChartXIcon',_univerjs_icons[_0x1f97d3(0x308)]],[_0x1f97d3(0x5b2),_univerjs_icons[_0x1f97d3(0x5b2)]],[_0x1f97d3(0x5c2),_univerjs_icons[_0x1f97d3(0x5c2)]],[_0x1f97d3(0x41a),_univerjs_icons[_0x1f97d3(0x41a)]],[_0x1f97d3(0x4eb),_univerjs_icons[_0x1f97d3(0x4eb)]],[_0x1f97d3(0x574),_univerjs_icons[_0x1f97d3(0x574)]],[_0x1f97d3(0x54b),_univerjs_icons[_0x1f97d3(0x54b)]],[_0x1f97d3(0x561),_univerjs_icons[_0x1f97d3(0x561)]],[_0x1f97d3(0x55b),_univerjs_icons[_0x1f97d3(0x55b)]],['ShapeCurvedConnector3Arrow1Icon',_univerjs_icons[_0x1f97d3(0x440)]],[_0x1f97d3(0x12d),_univerjs_icons[_0x1f97d3(0x12d)]],[_0x1f97d3(0xfa),_univerjs_icons[_0x1f97d3(0xfa)]],[_0x1f97d3(0x1e3),_univerjs_icons[_0x1f97d3(0x1e3)]],[_0x1f97d3(0x51a),_univerjs_icons[_0x1f97d3(0x51a)]],[_0x1f97d3(0x220),_univerjs_icons['ShapeCurvedRightArrowIcon']],[_0x1f97d3(0x342),_univerjs_icons[_0x1f97d3(0x342)]],['ShapeDecagonIcon',_univerjs_icons['ShapeDecagonIcon']],[_0x1f97d3(0x353),_univerjs_icons[_0x1f97d3(0x353)]],[_0x1f97d3(0x624),_univerjs_icons[_0x1f97d3(0x624)]],[_0x1f97d3(0x1e5),_univerjs_icons[_0x1f97d3(0x1e5)]],['ShapeDonutIcon',_univerjs_icons[_0x1f97d3(0x306)]],[_0x1f97d3(0x196),_univerjs_icons[_0x1f97d3(0x196)]],[_0x1f97d3(0x5f0),_univerjs_icons[_0x1f97d3(0x5f0)]],['ShapeDownArrowIcon',_univerjs_icons[_0x1f97d3(0x333)]],[_0x1f97d3(0x480),_univerjs_icons[_0x1f97d3(0x480)]],[_0x1f97d3(0x2df),_univerjs_icons['ShapeEllipseRibbon2Icon']],[_0x1f97d3(0x126),_univerjs_icons[_0x1f97d3(0x126)]],[_0x1f97d3(0x572),_univerjs_icons[_0x1f97d3(0x572)]],[_0x1f97d3(0x147),_univerjs_icons[_0x1f97d3(0x147)]],[_0x1f97d3(0x121),_univerjs_icons['ShapeFlowChartConnectorIcon']],[_0x1f97d3(0x3f4),_univerjs_icons['ShapeFlowChartDecisionIcon']],[_0x1f97d3(0x217),_univerjs_icons[_0x1f97d3(0x217)]],['ShapeFlowChartDisplayIcon',_univerjs_icons['ShapeFlowChartDisplayIcon']],[_0x1f97d3(0x32a),_univerjs_icons[_0x1f97d3(0x32a)]],['ShapeFlowChartExtractIcon',_univerjs_icons['ShapeFlowChartExtractIcon']],[_0x1f97d3(0x243),_univerjs_icons[_0x1f97d3(0x243)]],[_0x1f97d3(0x4f1),_univerjs_icons[_0x1f97d3(0x4f1)]],['ShapeFlowChartMagneticDiskIcon',_univerjs_icons[_0x1f97d3(0x38e)]],[_0x1f97d3(0x4b0),_univerjs_icons[_0x1f97d3(0x4b0)]],['ShapeFlowChartMagneticTapeIcon',_univerjs_icons[_0x1f97d3(0xf8)]],[_0x1f97d3(0x1a4),_univerjs_icons['ShapeFlowChartManualInputIcon']],[_0x1f97d3(0x4fb),_univerjs_icons[_0x1f97d3(0x4fb)]],[_0x1f97d3(0x25e),_univerjs_icons['ShapeFlowChartMergeIcon']],[_0x1f97d3(0x593),_univerjs_icons['ShapeFlowChartMultidocumentIcon']],[_0x1f97d3(0x315),_univerjs_icons[_0x1f97d3(0x315)]],['ShapeFlowChartOffpageConnectorIcon',_univerjs_icons[_0x1f97d3(0x1b2)]],[_0x1f97d3(0x491),_univerjs_icons[_0x1f97d3(0x491)]],[_0x1f97d3(0x289),_univerjs_icons[_0x1f97d3(0x289)]],[_0x1f97d3(0x142),_univerjs_icons[_0x1f97d3(0x142)]],['ShapeFlowChartPreparationIcon',_univerjs_icons['ShapeFlowChartPreparationIcon']],['ShapeFlowChartProcessIcon',_univerjs_icons[_0x1f97d3(0x157)]],['ShapeFlowChartPunchedCardIcon',_univerjs_icons[_0x1f97d3(0x118)]],[_0x1f97d3(0x4de),_univerjs_icons['ShapeFlowChartPunchedTapeIcon']],['ShapeFlowChartSortIcon',_univerjs_icons[_0x1f97d3(0x3fe)]],['ShapeFlowChartSummingJunctionIcon',_univerjs_icons[_0x1f97d3(0x45f)]],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x1f97d3(0x2c7)]],['ShapeFolderCornerIcon',_univerjs_icons[_0x1f97d3(0x4ea)]],['ShapeFrameIcon',_univerjs_icons[_0x1f97d3(0x1af)]],[_0x1f97d3(0x1e4),_univerjs_icons[_0x1f97d3(0x1e4)]],[_0x1f97d3(0x430),_univerjs_icons[_0x1f97d3(0x430)]],[_0x1f97d3(0x1bf),_univerjs_icons[_0x1f97d3(0x1bf)]],[_0x1f97d3(0x49e),_univerjs_icons[_0x1f97d3(0x49e)]],[_0x1f97d3(0x35a),_univerjs_icons['ShapeHeartIcon']],[_0x1f97d3(0x103),_univerjs_icons[_0x1f97d3(0x103)]],['ShapeHexagonIcon',_univerjs_icons[_0x1f97d3(0x643)]],[_0x1f97d3(0x4da),_univerjs_icons[_0x1f97d3(0x4da)]],[_0x1f97d3(0x479),_univerjs_icons[_0x1f97d3(0x479)]],[_0x1f97d3(0x46c),_univerjs_icons['ShapeIrregularSeal1Icon']],[_0x1f97d3(0x4f8),_univerjs_icons['ShapeIrregularSeal2Icon']],[_0x1f97d3(0x2ea),_univerjs_icons[_0x1f97d3(0x2ea)]],[_0x1f97d3(0x56e),_univerjs_icons['ShapeLeftArrowIcon']],[_0x1f97d3(0x1da),_univerjs_icons[_0x1f97d3(0x1da)]],[_0x1f97d3(0x125),_univerjs_icons[_0x1f97d3(0x125)]],[_0x1f97d3(0x60a),_univerjs_icons[_0x1f97d3(0x60a)]],['ShapeLeftRightArrowCalloutIcon',_univerjs_icons['ShapeLeftRightArrowCalloutIcon']],['ShapeLeftRightArrowIcon',_univerjs_icons[_0x1f97d3(0x31b)]],['ShapeLeftRightCircularArrowIcon',_univerjs_icons[_0x1f97d3(0x2f7)]],[_0x1f97d3(0x427),_univerjs_icons[_0x1f97d3(0x427)]],['ShapeLeftRightUpArrowIcon',_univerjs_icons['ShapeLeftRightUpArrowIcon']],['ShapeLeftUpArrowIcon',_univerjs_icons[_0x1f97d3(0x168)]],[_0x1f97d3(0x225),_univerjs_icons[_0x1f97d3(0x225)]],[_0x1f97d3(0x526),_univerjs_icons[_0x1f97d3(0x526)]],[_0x1f97d3(0x25a),_univerjs_icons[_0x1f97d3(0x25a)]],[_0x1f97d3(0x5ef),_univerjs_icons['ShapeMathDivideIcon']],['ShapeMathEqualIcon',_univerjs_icons['ShapeMathEqualIcon']],[_0x1f97d3(0x14b),_univerjs_icons[_0x1f97d3(0x14b)]],[_0x1f97d3(0x184),_univerjs_icons['ShapeMathMultiplyIcon']],['ShapeMathNotEqualIcon',_univerjs_icons[_0x1f97d3(0x585)]],[_0x1f97d3(0x222),_univerjs_icons[_0x1f97d3(0x222)]],[_0x1f97d3(0x2b6),_univerjs_icons[_0x1f97d3(0x2b6)]],['ShapeNoSmokingIcon',_univerjs_icons['ShapeNoSmokingIcon']],[_0x1f97d3(0x577),_univerjs_icons['ShapeNonIsoscelesTrapezoidIcon']],['ShapeNotchedRightArrowIcon',_univerjs_icons[_0x1f97d3(0x3b9)]],['ShapeOctagonIcon',_univerjs_icons[_0x1f97d3(0x204)]],['ShapeParallelogramIcon',_univerjs_icons[_0x1f97d3(0x2e3)]],['ShapePentagonIcon',_univerjs_icons['ShapePentagonIcon']],[_0x1f97d3(0x245),_univerjs_icons[_0x1f97d3(0x245)]],[_0x1f97d3(0x37d),_univerjs_icons['ShapePieWedgeIcon']],[_0x1f97d3(0x40f),_univerjs_icons[_0x1f97d3(0x40f)]],[_0x1f97d3(0x298),_univerjs_icons[_0x1f97d3(0x298)]],[_0x1f97d3(0x3f0),_univerjs_icons[_0x1f97d3(0x3f0)]],['ShapeQuadArrowCalloutIcon',_univerjs_icons['ShapeQuadArrowCalloutIcon']],[_0x1f97d3(0x3e9),_univerjs_icons[_0x1f97d3(0x3e9)]],[_0x1f97d3(0x1c5),_univerjs_icons[_0x1f97d3(0x1c5)]],[_0x1f97d3(0x4c4),_univerjs_icons[_0x1f97d3(0x4c4)]],[_0x1f97d3(0x652),_univerjs_icons[_0x1f97d3(0x652)]],[_0x1f97d3(0x487),_univerjs_icons[_0x1f97d3(0x487)]],[_0x1f97d3(0x2e5),_univerjs_icons[_0x1f97d3(0x2e5)]],['ShapeRightArrowCalloutIcon',_univerjs_icons[_0x1f97d3(0x13e)]],[_0x1f97d3(0x5fe),_univerjs_icons[_0x1f97d3(0x5fe)]],[_0x1f97d3(0x34d),_univerjs_icons[_0x1f97d3(0x34d)]],['ShapeRightBracketIcon',_univerjs_icons[_0x1f97d3(0x510)]],[_0x1f97d3(0x32e),_univerjs_icons[_0x1f97d3(0x32e)]],[_0x1f97d3(0x5cd),_univerjs_icons['ShapeRound2DiagRectIcon']],[_0x1f97d3(0x273),_univerjs_icons[_0x1f97d3(0x273)]],[_0x1f97d3(0x3fb),_univerjs_icons[_0x1f97d3(0x3fb)]],[_0x1f97d3(0x52d),_univerjs_icons[_0x1f97d3(0x52d)]],[_0x1f97d3(0x4af),_univerjs_icons[_0x1f97d3(0x4af)]],[_0x1f97d3(0x483),_univerjs_icons[_0x1f97d3(0x483)]],[_0x1f97d3(0x5c0),_univerjs_icons[_0x1f97d3(0x5c0)]],[_0x1f97d3(0x5af),_univerjs_icons[_0x1f97d3(0x5af)]],[_0x1f97d3(0x58b),_univerjs_icons['ShapeSnipRoundRectIcon']],[_0x1f97d3(0x250),_univerjs_icons[_0x1f97d3(0x250)]],[_0x1f97d3(0x2a6),_univerjs_icons[_0x1f97d3(0x2a6)]],[_0x1f97d3(0x299),_univerjs_icons[_0x1f97d3(0x299)]],[_0x1f97d3(0x49f),_univerjs_icons[_0x1f97d3(0x49f)]],['ShapeStar24Icon',_univerjs_icons[_0x1f97d3(0x5cb)]],['ShapeStar32Icon',_univerjs_icons[_0x1f97d3(0x378)]],[_0x1f97d3(0x534),_univerjs_icons['ShapeStar4Icon']],[_0x1f97d3(0xf7),_univerjs_icons[_0x1f97d3(0xf7)]],['ShapeStar6Icon',_univerjs_icons['ShapeStar6Icon']],[_0x1f97d3(0x5f1),_univerjs_icons[_0x1f97d3(0x5f1)]],[_0x1f97d3(0x314),_univerjs_icons[_0x1f97d3(0x314)]],[_0x1f97d3(0x278),_univerjs_icons[_0x1f97d3(0x278)]],[_0x1f97d3(0x4e5),_univerjs_icons[_0x1f97d3(0x4e5)]],[_0x1f97d3(0x3c5),_univerjs_icons[_0x1f97d3(0x3c5)]],[_0x1f97d3(0x5f4),_univerjs_icons[_0x1f97d3(0x5f4)]],[_0x1f97d3(0x62f),_univerjs_icons['ShapeSwooshArrowIcon']],[_0x1f97d3(0x105),_univerjs_icons[_0x1f97d3(0x105)]],['ShapeTrapezoidIcon',_univerjs_icons[_0x1f97d3(0x212)]],[_0x1f97d3(0x21f),_univerjs_icons[_0x1f97d3(0x21f)]],[_0x1f97d3(0x655),_univerjs_icons[_0x1f97d3(0x655)]],[_0x1f97d3(0x4d8),_univerjs_icons[_0x1f97d3(0x4d8)]],[_0x1f97d3(0x218),_univerjs_icons[_0x1f97d3(0x218)]],[_0x1f97d3(0x409),_univerjs_icons[_0x1f97d3(0x409)]],[_0x1f97d3(0x435),_univerjs_icons[_0x1f97d3(0x435)]],['ShapeVerticalScrollIcon',_univerjs_icons['ShapeVerticalScrollIcon']],[_0x1f97d3(0x137),_univerjs_icons[_0x1f97d3(0x137)]],[_0x1f97d3(0x31d),_univerjs_icons[_0x1f97d3(0x31d)]],['ShapeWedgeRectCalloutIcon',_univerjs_icons['ShapeWedgeRectCalloutIcon']],[_0x1f97d3(0x22c),_univerjs_icons[_0x1f97d3(0x22c)]],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x1f97d3(0x279)],ImageClipShapePicker]]['forEach'](([_0x4e9865,_0x2a9669])=>{const _0x430d6c=_0x1f97d3;this[_0x430d6c(0x47f)](this[_0x430d6c(0x482)][_0x430d6c(0x130)](_0x4e9865,_0x2a9669));});}[_0x48b1be(0x40b)](){const _0x318b0c=_0x48b1be;this[_0x318b0c(0x498)]=this[_0x318b0c(0x60c)][_0x318b0c(0x32f)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x318b0c(0x502)]['t']('sheets-shape.formatShape')},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this['_activeShapeInfo']},'onClose':()=>{const _0x3af028=_0x318b0c;this[_0x3af028(0x307)][_0x3af028(0x62b)](null),this[_0x3af028(0x5bf)]['setContextValue'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'],![]),this[_0x3af028(0x498)]=null;}}),this['_isOpenedShapeEditPanel']=!![];}[_0x48b1be(0xfb)](){const _0x10a2b0=_0x48b1be;this['_isOpenedShapeEditPanel']=![],this['_sidebarService'][_0x10a2b0(0x4f5)](SHEET_SHAPE_EDIT_PANEL_KEY),this['_sidebarDisposable']=null,this[_0x10a2b0(0x5bf)][_0x10a2b0(0xfc)](_univerjs_core[_0x10a2b0(0x156)],![]),this[_0x10a2b0(0x307)][_0x10a2b0(0x62b)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets['SheetInterceptorService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_ui['ISidebarService'])),__decorateParam(0x3,_univerjs_ui[_0x48b1be(0x38d)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_core[_0x48b1be(0x319)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_ui[_0x48b1be(0x63d)])),__decorateParam(0x7,_univerjs_core[_0x48b1be(0x621)]),__decorateParam(0x8,_univerjs_drawing[_0x48b1be(0x618)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_sheets_ui['SheetCanvasPopManagerService'])),__decorateParam(0xa,_univerjs_core[_0x48b1be(0x39b)])],SheetsShapeUIController);var name='@univerjs-pro/sheets-shape-ui',version=_0x48b1be(0x458);const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY=_0x48b1be(0x1a5),configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x3dd567,_0x57f790,_0x27cc43,_0x24d21f,_0x277909){const _0x337463=_0x48b1be;super(),this['_context']=_0x3dd567,this['_drawingManagerService']=_0x57f790,this[_0x337463(0x1cb)]=_0x27cc43,this['_univerInstanceService']=_0x24d21f,this[_0x337463(0x2fd)]=_0x277909,_defineProperty(this,_0x337463(0x5c4),null),_defineProperty(this,_0x337463(0x5ae),null),_defineProperty(this,_0x337463(0x36d),null),_defineProperty(this,_0x337463(0x5b3),void 0x0),_defineProperty(this,_0x337463(0x24f),[]),_defineProperty(this,'_baseLeft',0x0),_defineProperty(this,_0x337463(0x5be),0x0),_defineProperty(this,'_baseWidth',0x0),_defineProperty(this,_0x337463(0x15b),0x0),_defineProperty(this,_0x337463(0x3b8),![]),_defineProperty(this,_0x337463(0x52b),void 0x0),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,'_adjHandlerPointerMove',void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0x337463(0x4c2),![]),this[_0x337463(0x556)](),this[_0x337463(0xfe)]();}[_0x48b1be(0x545)](){const _0x49e3f9=_0x48b1be;this[_0x49e3f9(0x2db)]();}[_0x48b1be(0x15e)](){const _0x3cafb8=_0x48b1be;this[_0x3cafb8(0x2db)](),this[_0x3cafb8(0x34a)](!![]);}[_0x48b1be(0x62a)](_0x3797bb,_0x120e5b,_0x4a68e6,_0x244c45){const _0x535e98=_0x48b1be,_0x512401=_0x3797bb;if(_0x512401===_univerjs_pro_engine_shape[_0x535e98(0x515)][_0x535e98(0x197)]||_0x3797bb===_0x535e98(0x472))return;try{const _0x4dc82e=new _univerjs_pro_engine_shape[(_0x535e98(0x195))](_0x512401,_0x535e98(0x354)+_0x3797bb);if(_0x244c45)_0x4dc82e[_0x535e98(0x513)]({'adjustValues':_0x244c45},!![]);return _0x4dc82e['updateContext']({'width':_0x120e5b,'height':_0x4a68e6}),_0x4dc82e;}catch{return;}}[_0x48b1be(0x4fc)](_0x393106,_0xc64735,_0x12bc58){const _0xdb1821=_0x48b1be,_0x520fef={'unitId':_0x393106,'subUnitId':_0xc64735,'drawingId':_0x12bc58},_0x130cd0=this[_0xdb1821(0x307)][_0xdb1821(0x251)](_0x520fef);if(!_0x130cd0||_0x130cd0[_0xdb1821(0x2b0)]!==_univerjs_core[_0xdb1821(0x45a)][_0xdb1821(0x3d6)])return;return _0x130cd0;}[_0x48b1be(0x4ff)](_0x2cbc10,_0x57dc64,_0xd46799){const _0x3dacbd=_0x48b1be,_0x243003=this[_0x3dacbd(0x1cb)][_0x3dacbd(0x11a)](_0x2cbc10);if(!_0x243003)return void 0x0;const {scene:_0x476f9f}=_0x243003,_0x534c99=(0x0,_univerjs_drawing[_0x3dacbd(0x1e7)])({'unitId':_0x2cbc10,'subUnitId':_0x57dc64,'drawingId':_0xd46799}),_0x3621e1=_0x476f9f[_0x3dacbd(0x390)](_0x534c99);if(_0x3621e1 instanceof _univerjs_engine_render[_0x3dacbd(0x32c)]){const _0x4bb7a2=_0x3621e1['prstGeom'];if(_0x4bb7a2)return{'prstGeom':_0x4bb7a2,'adjustValues':_0x3621e1['prstGeomAdjValues']};}}[_0x48b1be(0x34a)](_0x548cde=![]){const _0x3e7b66=_0x48b1be;if(!this[_0x3e7b66(0x5ae)]||!this[_0x3e7b66(0x36d)]||!this[_0x3e7b66(0x5c4)])return;const _0x3621b6=this[_0x3e7b66(0x1cb)]['getRenderById'](this[_0x3e7b66(0x5ae)]);if(!_0x3621b6)return;if(!_0x3621b6[_0x3e7b66(0x26a)](_univerjs_sheets_ui[_0x3e7b66(0x2b2)])['getCurrentSkeleton']())return;const {scene:_0x121e5a}=_0x3621b6,_0x348014=this['_getImageDrawingInfo'](this[_0x3e7b66(0x5ae)],this['_subUnitId'],this['_activeImageId']);if(!_0x348014)return;const {transform:_0x1fcbc7}=_0x348014;if(!_0x1fcbc7)return;const {left:_0x3f4af9,top:_0x3da019,width:_0x2d090f,height:_0x257fbb,flipX:_0x1030a9,flipY:_0x37ef40,angle:angle=0x0}=_0x1fcbc7;if(_0x3f4af9===void 0x0||_0x3da019===void 0x0)return;const _0x4cae2c=this[_0x3e7b66(0x4ff)](this[_0x3e7b66(0x5ae)],this[_0x3e7b66(0x36d)],this[_0x3e7b66(0x5c4)]);if(!_0x4cae2c)return;if(_0x548cde){const _0x19e2e9=this[_0x3e7b66(0x62a)](_0x4cae2c[_0x3e7b66(0x555)],_0x2d090f||0x0,_0x257fbb||0x0,_0x4cae2c['adjustValues']);if(!_0x19e2e9)return;this['_activeAdjustPointList']=_0x19e2e9[_0x3e7b66(0x170)]();}const _0x4e8c1c=this['_activeAdjustPointList'];if(!_0x4e8c1c||_0x4e8c1c[_0x3e7b66(0x42d)]===0x0)return;for(let _0x407195=0x0;_0x407195<_0x4e8c1c[_0x3e7b66(0x42d)];_0x407195++){const _0x56d7ea=_0x4e8c1c[_0x407195];let _0x480c1b=_0x56d7ea['x'],_0x206c21=_0x56d7ea['y'];if(_0x1030a9)_0x480c1b=(_0x2d090f||0x0)-_0x480c1b;if(_0x37ef40)_0x206c21=(_0x257fbb||0x0)-_0x206c21;if(angle!==0x0){const _0x23bac2=(_0x2d090f||0x0)/0x2,_0x27bb8f=(_0x257fbb||0x0)/0x2,_0x4d0acb=angle*Math['PI']/0xb4,_0x557ea5=Math[_0x3e7b66(0x548)](_0x4d0acb),_0x20427a=Math['sin'](_0x4d0acb),_0x143616=_0x480c1b-_0x23bac2,_0x14dd8d=_0x206c21-_0x27bb8f;_0x480c1b=_0x23bac2+(_0x143616*_0x557ea5-_0x14dd8d*_0x20427a),_0x206c21=_0x27bb8f+(_0x143616*_0x20427a+_0x14dd8d*_0x557ea5);}const _0xcab6a7={'x':_0x480c1b,'y':_0x206c21,'adjName':_0x56d7ea[_0x3e7b66(0x391)]};this[_0x3e7b66(0x1c2)](_0x121e5a,_0xcab6a7,_0xcab6a7[_0x3e7b66(0x391)],_0x3f4af9,_0x3da019,this[_0x3e7b66(0x5ae)],this[_0x3e7b66(0x36d)]);}}[_0x48b1be(0x1c2)](_0x533881,_0x2fc403,_0x58a6ec,_0x3b10e6,_0x3c2d25,_0x2de0d4,_0x168b00){const _0x303d44=_0x48b1be;if(!this[_0x303d44(0x5c4)])return;const _0x18d955='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x58a6ec,_0xac9cd6=_0x533881[_0x303d44(0x492)](_0x18d955);if(_0xac9cd6){_0xac9cd6[_0x303d44(0x2b4)]({'left':_0x2fc403['x']+_0x3b10e6-_univerjs_pro_engine_shape[_0x303d44(0x5ff)][_0x303d44(0x346)],'top':_0x2fc403['y']+_0x3c2d25-_univerjs_pro_engine_shape[_0x303d44(0x5ff)]['adjHandleSize']});return;}const _0x4c4ba7=new SheetShapeAdjustPointObject(_0x18d955,{'left':_0x2fc403['x']+_0x3b10e6-_univerjs_pro_engine_shape[_0x303d44(0x5ff)][_0x303d44(0x346)],'top':_0x2fc403['y']+_0x3c2d25-_univerjs_pro_engine_shape[_0x303d44(0x5ff)][_0x303d44(0x346)],'adjName':_0x58a6ec,'shapeId':this[_0x303d44(0x5c4)],'unitId':_0x2de0d4,'subUnitId':_0x168b00,'width':_univerjs_pro_engine_shape[_0x303d44(0x5ff)][_0x303d44(0x346)]+0x8,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x303d44(0x346)]+0x8,'zIndex':_univerjs_engine_render[_0x303d44(0x3d4)]+0x1,'evented':!![]});this[_0x303d44(0x24f)][_0x303d44(0x5ed)](_0x4c4ba7),this[_0x303d44(0x3d0)](_0x4c4ba7,_0x533881,_0x58a6ec),_0x533881[_0x303d44(0x261)](_0x4c4ba7,_univerjs_engine_render[_0x303d44(0x3d4)]+0x1);}[_0x48b1be(0x2db)](){const _0x386938=_0x48b1be;if(this[_0x386938(0x24f)][_0x386938(0x42d)]===0x0)return;this[_0x386938(0x24f)][_0x386938(0x4e1)](_0x841d73=>_0x841d73['dispose']()),this[_0x386938(0x24f)]=[];}['_getScrollInfo'](_0x4a22dd,_0x1d62e3){const _0x444504=_0x48b1be;var _0x30e35b;const _0x528fcb={'x':0x0,'y':0x0},_0x1283cc=this[_0x444504(0x1cb)][_0x444504(0x11a)](_0x4a22dd);if(!_0x1283cc)return _0x528fcb;if(!_0x1283cc['with'](_univerjs_sheets_ui[_0x444504(0x2b2)])['getSkeleton'](_0x1d62e3))return _0x528fcb;const _0x35386d=_0x1283cc[_0x444504(0x26a)](_univerjs_sheets_ui[_0x444504(0x411)]),_0x353fe6=_0x35386d===null||_0x35386d===void 0x0?void 0x0:_0x35386d['getCurrentScrollState']();if(!_0x353fe6)return _0x528fcb;const _0x457514=(_0x30e35b=this[_0x444504(0x36a)][_0x444504(0x10f)](_0x4a22dd))===null||_0x30e35b===void 0x0?void 0x0:_0x30e35b['getSheetBySheetId'](_0x1d62e3);if(!_0x457514)return _0x528fcb;const _0x13a251=(0x0,_univerjs_sheets_ui[_0x444504(0x3e6)])(_0x353fe6['sheetViewStartRow'],_0x353fe6[_0x444504(0x642)],_0x1283cc['scene'],_0x457514);if(!_0x13a251)return _0x528fcb;return{'x':_0x13a251[_0x444504(0x33e)],'y':_0x13a251['viewportScrollY']};}[_0x48b1be(0x5d5)](_0x454e0d,_0x2da77e){const _0x375bde=_0x48b1be;var _0x434712,_0x444d20;const _0x17e0f8=(_0x434712=this[_0x375bde(0x36a)][_0x375bde(0x10f)](_0x454e0d))===null||_0x434712===void 0x0?void 0x0:_0x434712[_0x375bde(0x37a)](_0x2da77e);return(_0x444d20=_0x17e0f8===null||_0x17e0f8===void 0x0?void 0x0:_0x17e0f8[_0x375bde(0x25b)]())!==null&&_0x444d20!==void 0x0?_0x444d20:0x1;}[_0x48b1be(0x3d0)](_0x1c7f5b,_0x17b4d5,_0x4d6e33){const _0x2193b2=_0x48b1be;this[_0x2193b2(0x47f)]((0x0,_univerjs_core['toDisposable'])(_0x1c7f5b[_0x2193b2(0x3bd)][_0x2193b2(0x595)]((_0x32e14f,_0xb98c77)=>{const _0x227cdd=_0x2193b2;var _0xbe1395,_0x2efc62,_0x20cd83;const {unitId:_0x227b78,subUnitId:_0x280f94,drawingId:_0x2d4db8}=_0x1c7f5b[_0x227cdd(0x647)](),_0x58f701=this['_getImageDrawingInfo'](_0x227b78,_0x280f94,_0x2d4db8);if(!(_0x58f701===null||_0x58f701===void 0x0?void 0x0:_0x58f701[_0x227cdd(0x649)]))return;const {left:_0x3b06ed,top:_0x2263bb,width:_0x5d8d23,height:_0x3d7af9}=_0x58f701[_0x227cdd(0x649)];this[_0x227cdd(0x1aa)]=_0x3b06ed||0x0,this[_0x227cdd(0x5be)]=_0x2263bb||0x0,this[_0x227cdd(0x214)]=_0x5d8d23||0x0,this[_0x227cdd(0x15b)]=_0x3d7af9||0x0;const _0x2752e0=Boolean((_0xbe1395=_0x58f701[_0x227cdd(0x649)])===null||_0xbe1395===void 0x0?void 0x0:_0xbe1395[_0x227cdd(0x5b1)]),_0x42d79a=Boolean((_0x2efc62=_0x58f701['transform'])===null||_0x2efc62===void 0x0?void 0x0:_0x2efc62[_0x227cdd(0x285)]),_0xaeb7d5=((_0x20cd83=_0x58f701['transform'])===null||_0x20cd83===void 0x0?void 0x0:_0x20cd83[_0x227cdd(0x2ed)])||0x0,_0x1c8ea8=this[_0x227cdd(0x4ff)](_0x227b78,_0x280f94,_0x2d4db8);if(!_0x1c8ea8)return;const _0x29a138=this[_0x227cdd(0x62a)](_0x1c8ea8[_0x227cdd(0x555)],this[_0x227cdd(0x214)],this[_0x227cdd(0x15b)],_0x1c8ea8['adjustValues']);if(!_0x29a138)return;this[_0x227cdd(0x520)]=_0x29a138,this[_0x227cdd(0x52b)]=_0x29a138[_0x227cdd(0x5f6)](_0x4d6e33);if(!this[_0x227cdd(0x52b)])return;this['_isStartAdjusting']=!![],_0x17b4d5[_0x227cdd(0x1c7)]();const _0x228df3=_0x1c8ea8['prstGeom'];this[_0x227cdd(0x272)]=_0x17b4d5[_0x227cdd(0x276)]['subscribeEvent']((_0x3e9a2f,_0xe014b3)=>{const _0x3558af=_0x227cdd;if(!this[_0x3558af(0x3b8)])return;const {offsetX:_0x37a176,offsetY:_0x2d8728}=_0x3e9a2f,_0x354446=this[_0x3558af(0x52b)];if(!this['_activeShapeModel']||!_0x354446)return;_0x17b4d5['disableObjectsEvent'](),_0x17b4d5[_0x3558af(0x148)](_univerjs_engine_render[_0x3558af(0x4ad)][_0x3558af(0x484)]);const _0x525dc4={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x3558af(0x15b)]},_0x591c79=this[_0x3558af(0x2d8)](_0x227b78,_0x280f94),_0x17a950=this[_0x3558af(0x5d5)](_0x227b78,_0x280f94);let _0x5bb7bc=_0x37a176/_0x17a950+_0x591c79['x']-this[_0x3558af(0x1aa)],_0x511607=_0x2d8728/_0x17a950+_0x591c79['y']-this['_baseTop'];if(_0xaeb7d5!==0x0){const _0x362402=this[_0x3558af(0x214)]/0x2,_0x5e07f5=this[_0x3558af(0x15b)]/0x2,_0x189640=_0xaeb7d5*Math['PI']/0xb4,_0x2b18e1=Math[_0x3558af(0x548)](_0x189640),_0xc1f14b=Math[_0x3558af(0x539)](_0x189640),_0x5855a1=_0x5bb7bc-_0x362402,_0x3ae3c1=_0x511607-_0x5e07f5;_0x5bb7bc=_0x362402+(_0x5855a1*_0x2b18e1+_0x3ae3c1*_0xc1f14b),_0x511607=_0x5e07f5+(-_0x5855a1*_0xc1f14b+_0x3ae3c1*_0x2b18e1);}if(_0x2752e0)_0x5bb7bc=this['_baseWidth']-_0x5bb7bc;if(_0x42d79a)_0x511607=this['_baseHeight']-_0x511607;const _0x27a097=this[_0x3558af(0x520)][_0x3558af(0x405)](_0x525dc4,{'x':_0x5bb7bc,'y':_0x511607},_0x354446,_0x2752e0,_0x42d79a),_0x303538=_0x354446[_0x3558af(0x1dc)]||_0x354446[_0x3558af(0x238)]||_0x354446[_0x3558af(0x3c0)]||_0x354446[_0x3558af(0x4c9)];if(_0x303538===void 0x0)return;this['_activeShapeModel'][_0x3558af(0x177)](_0x303538,_0x27a097),this[_0x3558af(0x520)][_0x3558af(0x3ce)]({'width':this[_0x3558af(0x214)],'height':this[_0x3558af(0x15b)]}),this[_0x3558af(0x5fd)](_0x227b78,_0x280f94,_0x2d4db8,_0x303538,_0x27a097),this[_0x3558af(0x5b3)]=this[_0x3558af(0x520)]['getDrawingPoints'](),this[_0x3558af(0x52b)]=this[_0x3558af(0x520)][_0x3558af(0x5f6)](_0x4d6e33),this[_0x3558af(0x34a)](),_0xe014b3['stopPropagation']();}),this[_0x227cdd(0x389)]=_0x17b4d5[_0x227cdd(0x45d)]['subscribeEvent']((_0x5f451a,_0x4d42a0)=>{const _0xcc52ab=_0x227cdd;this[_0xcc52ab(0x272)][_0xcc52ab(0x4e2)](),this['_adjHandlerPointerUp'][_0xcc52ab(0x4e2)](),_0x17b4d5[_0xcc52ab(0x56d)]();if(this[_0xcc52ab(0x520)]){const _0x1fffaf=this[_0xcc52ab(0x520)]['getAdjustNames'](),_0x48d98d={};for(const _0x8c7702 of _0x1fffaf){const _0x2627c7=this['_activeShapeModel'][_0xcc52ab(0x336)](_0x8c7702);if(_0x2627c7!==void 0x0)_0x48d98d[_0x8c7702]=_0x2627c7;}this['_imageShapeClipController']['clipByShape'](_0x227b78,_0x280f94,_0x2d4db8,_0x228df3,_0x48d98d);}this[_0xcc52ab(0x52b)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0xcc52ab(0x3b8)]=![],_0x4d42a0[_0xcc52ab(0x668)](),_0x17b4d5[_0xcc52ab(0x386)]();}),_0xb98c77[_0x227cdd(0x668)]();})));}[_0x48b1be(0x5fd)](_0x190d0a,_0x5cec03,_0xd9f6b,_0x2936e8,_0x4971cd){const _0x2a97df=_0x48b1be,_0x43f8af=this['_renderManagerService']['getRenderById'](_0x190d0a);if(!_0x43f8af)return;const {scene:_0x4345ce}=_0x43f8af,_0x300ae2=(0x0,_univerjs_drawing[_0x2a97df(0x1e7)])({'unitId':_0x190d0a,'subUnitId':_0x5cec03,'drawingId':_0xd9f6b}),_0x29ad5c=_0x4345ce['getObject'](_0x300ae2);if(_0x29ad5c instanceof _univerjs_engine_render[_0x2a97df(0x32c)]){var _0x5db258;const _0x44c278=(_0x5db258=_0x29ad5c['prstGeomAdjValues'])!==null&&_0x5db258!==void 0x0?_0x5db258:{};_0x29ad5c['setPrstGeomAdjValues']({..._0x44c278,[_0x2936e8]:_0x4971cd}),_0x29ad5c[_0x2a97df(0x2d4)](!![]);}}[_0x48b1be(0xfe)](){const _0x2d4733=_0x48b1be,_0x43a095=this[_0x2d4733(0x36a)][_0x2d4733(0x5a1)](_univerjs_core[_0x2d4733(0x617)][_0x2d4733(0x5a6)]);this['disposeWithMe'](_0x43a095[_0x2d4733(0x560)]((0x0,rxjs[_0x2d4733(0x49d)])(_0x13bd6c=>{const _0x4beee3=_0x2d4733;if(!_0x13bd6c)return rxjs[_0x4beee3(0x256)];return _0x13bd6c[_0x4beee3(0x419)][_0x4beee3(0x560)]((0x0,rxjs[_0x4beee3(0x49d)])(_0x490d9f=>{const _0x2eb4d9=_0x4beee3;if(!_0x490d9f)return rxjs[_0x2eb4d9(0x256)];const _0x85c525=_0x13bd6c['getUnitId'](),_0x129b0f=this['_renderManagerService'][_0x2eb4d9(0x11a)](_0x85c525),_0x1f3aab=_0x129b0f===null||_0x129b0f===void 0x0?void 0x0:_0x129b0f[_0x2eb4d9(0x1cf)];if(!_0x1f3aab)return rxjs[_0x2eb4d9(0x256)];return(0x0,rxjs['of'])(_0x1f3aab);}));}))[_0x2d4733(0x22b)](_0x29113f=>{const _0x1103f4=_0x2d4733,_0x480943=_0x29113f[_0x1103f4(0x57f)]();this[_0x1103f4(0x47f)](_0x29113f[_0x1103f4(0x276)][_0x1103f4(0x595)](()=>{const _0x5b8b23=_0x1103f4;if(this[_0x5b8b23(0x4c2)])this[_0x5b8b23(0x2db)]();})),this[_0x1103f4(0x47f)](_0x480943[_0x1103f4(0x19f)]['subscribe'](_0x124739=>{const _0x7bf4f7=_0x1103f4,{objects:_0x544bf8}=_0x124739;this[_0x7bf4f7(0x34a)]();if(_0x544bf8!==null&&_0x544bf8['size']===0x1){const _0x1ec2bd=_0x544bf8[_0x7bf4f7(0x209)]()[_0x7bf4f7(0x194)]()[_0x7bf4f7(0x228)];if(_0x1ec2bd instanceof _univerjs_engine_render[_0x7bf4f7(0x32c)]&&_0x1ec2bd['prstGeom'])this[_0x7bf4f7(0x4c2)]=!![];}})),this['disposeWithMe'](_0x480943[_0x1103f4(0x339)]['subscribe'](()=>{const _0x4593ce=_0x1103f4;if(this[_0x4593ce(0x4c2)])this[_0x4593ce(0x2db)]();})),this['disposeWithMe'](_0x29113f['onPointerUp$']['subscribeEvent'](()=>{const _0x1d48e1=_0x1103f4;this[_0x1d48e1(0x4c2)]&&(this[_0x1d48e1(0x4c2)]=![],this[_0x1d48e1(0x34a)]());})),this[_0x1103f4(0x47f)](_0x480943[_0x1103f4(0x43c)][_0x1103f4(0x22b)](()=>{const _0x185f2f=_0x1103f4;if(this[_0x185f2f(0x5ae)]&&this[_0x185f2f(0x36d)]&&this['_activeImageId']){const _0x2de427=this[_0x185f2f(0x4ff)](this['_unitId'],this[_0x185f2f(0x36d)],this[_0x185f2f(0x5c4)]);if(_0x2de427){var _0x312a3d,_0x156754;const _0x3ddd43=this[_0x185f2f(0x4fc)](this[_0x185f2f(0x5ae)],this[_0x185f2f(0x36d)],this[_0x185f2f(0x5c4)]),_0x502178=(_0x3ddd43===null||_0x3ddd43===void 0x0||(_0x312a3d=_0x3ddd43[_0x185f2f(0x649)])===null||_0x312a3d===void 0x0?void 0x0:_0x312a3d[_0x185f2f(0x3c7)])||0x0,_0x5622bc=(_0x3ddd43===null||_0x3ddd43===void 0x0||(_0x156754=_0x3ddd43[_0x185f2f(0x649)])===null||_0x156754===void 0x0?void 0x0:_0x156754[_0x185f2f(0x613)])||0x0,_0x24cd22=this[_0x185f2f(0x62a)](_0x2de427[_0x185f2f(0x555)],_0x502178,_0x5622bc,_0x2de427[_0x185f2f(0x66c)]);_0x24cd22&&(this[_0x185f2f(0x5b3)]=_0x24cd22[_0x185f2f(0x170)](),this[_0x185f2f(0x2db)](),this[_0x185f2f(0x34a)](!![]));}}}));}));}[_0x48b1be(0x556)](){const _0x1d4aec=_0x48b1be;this[_0x1d4aec(0x47f)](this[_0x1d4aec(0x307)][_0x1d4aec(0x16e)]['subscribe'](_0x6e00a9=>{const _0x18a7bf=_0x1d4aec;if(_0x6e00a9[_0x18a7bf(0x42d)]===0x1){const _0x41a7ce=_0x6e00a9[0x0];if(_0x41a7ce[_0x18a7bf(0x2b0)]===_univerjs_core['DrawingTypeEnum'][_0x18a7bf(0x3d6)]){const {unitId:_0x1e5f0b,subUnitId:_0x5be6cf,drawingId:_0x113f6f}=_0x41a7ce,_0x2c4cd3=this['_getImagePrstGeom'](_0x1e5f0b,_0x5be6cf,_0x113f6f);if(_0x2c4cd3){var _0x2a8b64,_0x179dd9;this[_0x18a7bf(0x5c4)]=_0x113f6f,this[_0x18a7bf(0x5ae)]=_0x1e5f0b,this[_0x18a7bf(0x36d)]=_0x5be6cf;const _0x2748b7=this[_0x18a7bf(0x4fc)](_0x1e5f0b,_0x5be6cf,_0x113f6f),_0x5b86f0=(_0x2748b7===null||_0x2748b7===void 0x0||(_0x2a8b64=_0x2748b7[_0x18a7bf(0x649)])===null||_0x2a8b64===void 0x0?void 0x0:_0x2a8b64[_0x18a7bf(0x3c7)])||0x0,_0x4708ad=(_0x2748b7===null||_0x2748b7===void 0x0||(_0x179dd9=_0x2748b7[_0x18a7bf(0x649)])===null||_0x179dd9===void 0x0?void 0x0:_0x179dd9['height'])||0x0,_0x4154d1=this[_0x18a7bf(0x62a)](_0x2c4cd3[_0x18a7bf(0x555)],_0x5b86f0,_0x4708ad,_0x2c4cd3[_0x18a7bf(0x66c)]);if(_0x4154d1)this[_0x18a7bf(0x5b3)]=_0x4154d1[_0x18a7bf(0x170)]();this['_clearControls'](),this[_0x18a7bf(0x34a)](!![]);}else this[_0x18a7bf(0x635)]();}else this['_resetState']();}else this[_0x18a7bf(0x635)]();})),this['disposeWithMe'](this[_0x1d4aec(0x307)][_0x1d4aec(0x102)]['subscribe'](_0x51a7cb=>{const _0x21c20d=_0x1d4aec;if(_0x51a7cb[_0x21c20d(0x42d)]===0x1){const _0xac05ab=_0x51a7cb[0x0],_0x51b27b=this[_0x21c20d(0x307)][_0x21c20d(0x251)](_0xac05ab);(_0x51b27b===null||_0x51b27b===void 0x0?void 0x0:_0x51b27b[_0x21c20d(0x2b0)])===_univerjs_core[_0x21c20d(0x45a)][_0x21c20d(0x3d6)]&&(this[_0x21c20d(0x5c4)]===_0xac05ab[_0x21c20d(0x4cb)]&&(this[_0x21c20d(0x2db)](),this[_0x21c20d(0x34a)](!![])));}})),this[_0x1d4aec(0x47f)](this[_0x1d4aec(0x307)]['remove$'][_0x1d4aec(0x22b)](_0x43fad3=>{const _0x58f41a=_0x1d4aec;for(const _0x2ee2c1 of _0x43fad3)if(this[_0x58f41a(0x5c4)]===_0x2ee2c1[_0x58f41a(0x4cb)])this[_0x58f41a(0x635)]();}));}['_resetState'](){const _0x3de8eb=_0x48b1be;this['_activeImageId']=null,this[_0x3de8eb(0x5ae)]=null,this[_0x3de8eb(0x36d)]=null,this[_0x3de8eb(0x5b3)]=void 0x0,this['_clearControls']();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x48b1be(0x618)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_engine_render[_0x48b1be(0x1df)])),__decorateParam(0x3,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x48b1be(0x13d)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core['Disposable']{constructor(_0x17ef7d,_0x5d4467,_0x2804b9,_0x41ca2b){const _0xcec9a9=_0x48b1be;super(),this[_0xcec9a9(0x36a)]=_0x17ef7d,this['_sheetInterceptorService']=_0x5d4467,this[_0xcec9a9(0x637)]=_0x2804b9,this[_0xcec9a9(0x5d9)]=_0x41ca2b,this[_0xcec9a9(0x198)]();}[_0x48b1be(0x198)](){const _0x4c6618=_0x48b1be;this[_0x4c6618(0x47f)](this[_0x4c6618(0x5dd)][_0x4c6618(0x461)]({'getMutations':_0xb279ea=>{const _0xe649cd=_0x4c6618;if(_0xb279ea['id']===_univerjs_sheets[_0xe649cd(0x236)]['id']){const _0x142a86=(0x0,_univerjs_sheets[_0xe649cd(0x207)])(this[_0xe649cd(0x36a)],_0xb279ea[_0xe649cd(0x37c)]);if(!_0x142a86)return{'redos':[],'undos':[]};const {unitId:_0x38b11,subUnitId:_0x8f3a7d}=_0x142a86,_0x3cab11=this['_sheetDrawingService']['getDrawingData'](_0x38b11,_0x8f3a7d),_0x370a10=Object['values'](_0x3cab11)['filter'](_0x23e94a=>_0x23e94a[_0xe649cd(0x2b0)]===_univerjs_core[_0xe649cd(0x45a)]['DRAWING_SHAPE']);if(_0x370a10[_0xe649cd(0x42d)]===0x0)return{'redos':[],'undos':[]};const _0x34c52d=[],_0x206311=[];for(let _0x4efc40=0x0;_0x4efc40<_0x370a10['length'];_0x4efc40++){const _0x443996=_0x370a10[_0x4efc40],_0x474d16=this['_sheetsShapeService'][_0xe649cd(0x36e)](_0x443996['unitId'],_0x443996[_0xe649cd(0x4dc)],_0x443996[_0xe649cd(0x4cb)]);if(!_0x474d16)continue;const {redo:_0xa69d5b,undo:_0x207fe3,objects:_0x5806e8}=this[_0xe649cd(0x637)]['getBatchRemoveOp']([_0x443996]);_0x34c52d[_0xe649cd(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0xe649cd(0x1c9)]['id'],'params':{'unitId':_0x38b11,'subUnitId':_0x8f3a7d,'shapeId':_0x443996[_0xe649cd(0x4cb)]}}),_0x34c52d[_0xe649cd(0x5ed)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x38b11,'subUnitId':_0x8f3a7d,'type':_univerjs_sheets_drawing[_0xe649cd(0x603)][_0xe649cd(0x573)],'op':_0xa69d5b,'objects':_0x5806e8}}),_0x206311[_0xe649cd(0x5ed)]({'id':_univerjs_sheets_drawing[_0xe649cd(0x62d)]['id'],'params':{'unitId':_0x38b11,'subUnitId':_0x8f3a7d,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0xe649cd(0x453)],'op':_0x207fe3,'objects':_0x5806e8}}),_0x206311[_0xe649cd(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0xe649cd(0x254)]['id'],'params':{'unitId':_0x38b11,'subUnitId':_0x8f3a7d,'shapeId':_0x443996[_0xe649cd(0x4cb)],'shapeType':_0x474d16[_0xe649cd(0x607)](),'shapeData':JSON[_0xe649cd(0x15c)](JSON[_0xe649cd(0x4a9)](_0x474d16[_0xe649cd(0x260)]()))}});}return{'redos':_0x34c52d,'undos':_0x206311};}else{if(_0xb279ea['id']===_univerjs_sheets['CopySheetCommand']['id']){const {unitId:_0x5e0090,subUnitId:_0x3f86ea,targetSubUnitId:_0x4f1b84}=_0xb279ea['params'];if(!_0x5e0090||!_0x3f86ea||!_0x4f1b84)return{'redos':[],'undos':[]};const _0x4c3a30=this[_0xe649cd(0x637)]['getDrawingData'](_0x5e0090,_0x3f86ea),_0x469f41=Object[_0xe649cd(0x209)](_0x4c3a30)[_0xe649cd(0x2bb)](_0x52832b=>_0x52832b[_0xe649cd(0x2b0)]===_univerjs_core[_0xe649cd(0x45a)][_0xe649cd(0x614)]);if(_0x469f41[_0xe649cd(0x42d)]===0x0)return{'redos':[],'undos':[]};const _0x274bc8=[],_0x317737=[];for(let _0x119e05=0x0;_0x119e05<_0x469f41[_0xe649cd(0x42d)];_0x119e05++){const _0x1e7b99=_0x469f41[_0x119e05],_0x4f60c6=this[_0xe649cd(0x5d9)][_0xe649cd(0x36e)](_0x1e7b99['unitId'],_0x1e7b99[_0xe649cd(0x4dc)],_0x1e7b99[_0xe649cd(0x4cb)]);if(!_0x4f60c6)continue;const _0x567beb=(0x0,_univerjs_core[_0xe649cd(0x12e)])(),_0x3fdb47={..._0x1e7b99,'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'drawingId':_0x567beb},{redo:_0x54a762,undo:_0x1efb76,objects:_0xda867}=this[_0xe649cd(0x637)][_0xe649cd(0x186)]([_0x3fdb47]);_0x274bc8['push']({'id':_univerjs_sheets_drawing[_0xe649cd(0x62d)]['id'],'params':{'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'type':_univerjs_sheets_drawing[_0xe649cd(0x603)]['INSERT'],'op':_0x54a762,'objects':_0xda867}}),_0x274bc8[_0xe649cd(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0xe649cd(0x254)]['id'],'params':{'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'shapeId':_0x567beb,'shapeType':_0x4f60c6[_0xe649cd(0x607)](),'shapeData':JSON[_0xe649cd(0x15c)](JSON[_0xe649cd(0x4a9)](_0x4f60c6[_0xe649cd(0x260)]()))}}),_0x317737[_0xe649cd(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0xe649cd(0x1c9)]['id'],'params':{'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'shapeId':_0x567beb}}),_0x317737[_0xe649cd(0x5ed)]({'id':_univerjs_sheets_drawing[_0xe649cd(0x62d)]['id'],'params':{'unitId':_0x5e0090,'subUnitId':_0x4f1b84,'type':_univerjs_sheets_drawing[_0xe649cd(0x603)][_0xe649cd(0x573)],'op':_0x1efb76,'objects':_0xda867}});}return{'redos':_0x274bc8,'undos':_0x317737};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x48b1be(0x1d2)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x48b1be(0x3fa)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape[_0x48b1be(0x475)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x1617ef,_0x57bd38,_0x235c9b,_0x3ae473,_0x171a18){const _0x170370=_0x48b1be;super(),this['_context']=_0x1617ef,this['_shapeTextEditingService']=_0x57bd38,this[_0x170370(0x307)]=_0x235c9b,this[_0x170370(0x5bf)]=_0x3ae473,this[_0x170370(0x5d9)]=_0x171a18,_defineProperty(this,_0x170370(0x488),null),this[_0x170370(0x48e)](),this[_0x170370(0x117)](),this['_initEditingParams']();}['_initEvents'](){const _0x56ff89=_0x48b1be,{scene:_0x18cac6}=this[_0x56ff89(0x248)];this[_0x56ff89(0x47f)](_0x18cac6[_0x56ff89(0x65b)][_0x56ff89(0x595)](_0x274dcd=>{const _0x4535b3=_0x56ff89,{offsetX:_0x1f5b5e,offsetY:_0x2a9976}=_0x274dcd,_0xfab238=_0x18cac6[_0x4535b3(0x65a)](_univerjs_engine_render[_0x4535b3(0x3aa)][_0x4535b3(0x4ed)]([_0x1f5b5e,_0x2a9976]));if(_0xfab238 instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x4535b3(0x5fb)])(this['_sheetsShapeService']['getShapeType'](_0xfab238['unitId'],_0xfab238[_0x4535b3(0x4dc)],_0xfab238[_0x4535b3(0x1d8)])))return;this[_0x4535b3(0x4e7)]['setEditing']({'visible':!![],'unitId':_0xfab238[_0x4535b3(0x1ab)],'subUnitId':_0xfab238[_0x4535b3(0x4dc)],'shapeId':_0xfab238['shapeId'],'shapeKey':_0xfab238[_0x4535b3(0x2ff)]});}}));}[_0x48b1be(0x117)](){const _0x476d9e=_0x48b1be;this[_0x476d9e(0x47f)](this[_0x476d9e(0x307)][_0x476d9e(0x16e)][_0x476d9e(0x22b)](_0x243023=>{const _0x56a894=_0x476d9e;if(_0x243023[_0x56a894(0x42d)]===0x1){const _0x32a838=_0x243023[0x0],_0x44df56=this[_0x56a894(0x307)][_0x56a894(0x251)](_0x32a838);if((_0x44df56===null||_0x44df56===void 0x0?void 0x0:_0x44df56[_0x56a894(0x2b0)])===_univerjs_core['DrawingTypeEnum'][_0x56a894(0x614)]){const _0x3d950f=this[_0x56a894(0x4e7)][_0x56a894(0x36b)]();if((_0x3d950f===null||_0x3d950f===void 0x0?void 0x0:_0x3d950f[_0x56a894(0x1d8)])===_0x32a838[_0x56a894(0x4cb)]&&_0x3d950f[_0x56a894(0x16f)])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x56a894(0x5d9)][_0x56a894(0x607)](_0x32a838[_0x56a894(0x1ab)],_0x32a838[_0x56a894(0x4dc)],_0x32a838[_0x56a894(0x4cb)])))this['_shapeTextEditingService']['setEditing'](null);}else this[_0x56a894(0x4e7)]['getEditing']()&&(this['_shapeTextEditingService'][_0x56a894(0x4e0)](!![]),requestAnimationFrame(()=>{const _0x182220=_0x56a894;this['_shapeTextEditingService'][_0x182220(0x431)](null);}));}else this[_0x56a894(0x4e7)][_0x56a894(0x36b)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0xf79ebe=_0x56a894;this[_0xf79ebe(0x4e7)]['setEditing'](null);}));})),this[_0x476d9e(0x47f)](this[_0x476d9e(0x307)][_0x476d9e(0x201)]['subscribe'](_0x1aa1c8=>{const _0x459ad2=_0x476d9e,_0x5373c9=this['_shapeTextEditingService'][_0x459ad2(0x36b)]();if(_0x5373c9&&_0x1aa1c8[_0x459ad2(0x274)](_0x3dfe07=>_0x3dfe07['drawingId']===_0x5373c9['shapeId']))this[_0x459ad2(0x4e7)][_0x459ad2(0x431)](null);}));}['_initEditingParams'](){const _0x3bc076=_0x48b1be;this[_0x3bc076(0x47f)](this[_0x3bc076(0x4e7)]['editingParams$'][_0x3bc076(0x22b)](_0x54a7ca=>{const _0x10b94c=_0x3bc076,{scene:_0x457b8b}=this[_0x10b94c(0x248)];if(this[_0x10b94c(0x488)]){const _0x3e7a9b=_0x457b8b[_0x10b94c(0x492)](this[_0x10b94c(0x488)]);if(_0x3e7a9b)_0x3e7a9b['setEditing'](![]);}if(_0x54a7ca){const _0x41c624=!!_0x54a7ca[_0x10b94c(0x16f)],_0x26dfa6=_0x457b8b[_0x10b94c(0x492)](_0x54a7ca[_0x10b94c(0x397)]);_0x26dfa6&&(_0x26dfa6[_0x10b94c(0x431)](_0x41c624),this[_0x10b94c(0x488)]=_0x54a7ca[_0x10b94c(0x397)]),this['_contextService'][_0x10b94c(0xfc)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],_0x41c624);}else this[_0x10b94c(0x488)]=null,this[_0x10b94c(0x5bf)]['setContextValue'](_univerjs_core[_0x10b94c(0x26e)],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x48b1be(0x618)]),__decorateParam(0x3,_univerjs_core['IContextService']),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService']))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape[_0x48b1be(0x5ff)][_0x48b1be(0x2aa)],'stroke':_univerjs_pro_engine_shape[_0x48b1be(0x5ff)][_0x48b1be(0x3c1)],'strokeWidth':_univerjs_pro_engine_shape[_0x48b1be(0x5ff)][_0x48b1be(0x415)]},'highlighted':{'fill':_0x48b1be(0x12b),'stroke':_0x48b1be(0x544),'strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0x48b1be(0x41e)]{constructor(_0x2b63c0,_0x681f07){const _0x45bf01=_0x48b1be;super(_0x2b63c0,_0x681f07),_defineProperty(this,_0x45bf01(0x552),''),_defineProperty(this,_0x45bf01(0x5a4),-0x1),_defineProperty(this,_0x45bf01(0x5ae),''),_defineProperty(this,_0x45bf01(0x36d),''),_defineProperty(this,_0x45bf01(0x567),![]);if(_0x681f07)this[_0x45bf01(0x3dc)](_0x681f07);}[_0x48b1be(0x601)](){const _0x2a75d1=_0x48b1be;return{'unitId':this[_0x2a75d1(0x5ae)],'subUnitId':this[_0x2a75d1(0x36d)],'shapeId':this[_0x2a75d1(0x552)],'cxnIndex':this[_0x2a75d1(0x5a4)]};}[_0x48b1be(0x3a4)](_0x309fc2){const _0x56beb4=_0x48b1be;this['_isHighlighted']!==_0x309fc2&&(this['_isHighlighted']=_0x309fc2,this[_0x56beb4(0x2d4)](!![]));}[_0x48b1be(0x525)](){const _0x4675de=_0x48b1be;return this[_0x4675de(0x567)];}[_0x48b1be(0x3dc)](_0x56b80b){const _0x27d4e5=_0x48b1be;var _0x5c22b2,_0x2e51b1;if(typeof _0x56b80b['targetShapeId']!=='undefined')this[_0x27d4e5(0x552)]=_0x56b80b['targetShapeId'];if(typeof _0x56b80b['cxnIndex']!==_0x27d4e5(0x37e))this['_cxnIndex']=_0x56b80b[_0x27d4e5(0x293)];if(typeof _0x56b80b['unitId']!=='undefined')this['_unitId']=_0x56b80b[_0x27d4e5(0x1ab)];if(typeof _0x56b80b[_0x27d4e5(0x4dc)]!==_0x27d4e5(0x37e))this['_subUnitId']=_0x56b80b[_0x27d4e5(0x4dc)];if(typeof _0x56b80b[_0x27d4e5(0x525)]!=='undefined')this[_0x27d4e5(0x567)]=_0x56b80b['isHighlighted'];this['transformByState']({'width':(_0x5c22b2=_0x56b80b[_0x27d4e5(0x3c7)])!==null&&_0x5c22b2!==void 0x0?_0x5c22b2:_univerjs_pro_engine_shape[_0x27d4e5(0x5ff)]['cxnPointRadius']*0x2,'height':(_0x2e51b1=_0x56b80b[_0x27d4e5(0x613)])!==null&&_0x2e51b1!==void 0x0?_0x2e51b1:_univerjs_pro_engine_shape[_0x27d4e5(0x5ff)]['cxnPointRadius']*0x2});}[_0x48b1be(0x1fc)](_0x480f37){const _0x4fbe4b=_0x48b1be,_0x381fb1=this[_0x4fbe4b(0x567)]?ConnectionSiteStyle[_0x4fbe4b(0x588)]:ConnectionSiteStyle[_0x4fbe4b(0x5d3)];_univerjs_engine_render[_0x4fbe4b(0x3a2)]['drawWith'](_0x480f37,{'radius':_univerjs_pro_engine_shape[_0x4fbe4b(0x5ff)][_0x4fbe4b(0x5e2)],'fill':_0x381fb1[_0x4fbe4b(0x664)],'stroke':_0x381fb1[_0x4fbe4b(0x4ce)],'strokeWidth':_0x381fb1[_0x4fbe4b(0x361)],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x509486,_0x254181,_0x5aba7e,_0xb7252b){const _0x4afe81=_0x48b1be;super(),this[_0x4afe81(0x248)]=_0x509486,this[_0x4afe81(0x1cb)]=_0x254181,this['_drawingManagerService']=_0x5aba7e,this[_0x4afe81(0x5d9)]=_0xb7252b,_defineProperty(this,_0x4afe81(0x50f),[]),_defineProperty(this,_0x4afe81(0x53e),null),_defineProperty(this,_0x4afe81(0x145),-0x1),_defineProperty(this,'_currentScene',null),_defineProperty(this,'_unitId',''),_defineProperty(this,_0x4afe81(0x36d),''),_defineProperty(this,_0x4afe81(0x2c5),null);}[_0x48b1be(0x1f8)](_0x290a07,_0x583090,_0x15517e,_0x56eed3){const _0x39ed5f=_0x48b1be;this[_0x39ed5f(0x3f8)]=_0x290a07,this[_0x39ed5f(0x5ae)]=_0x583090,this[_0x39ed5f(0x36d)]=_0x15517e,this[_0x39ed5f(0x2c5)]=_0x56eed3;}[_0x48b1be(0x4aa)](_0x14027a){const _0x2c62ea=_0x48b1be;if(!this[_0x2c62ea(0x3f8)])return null;const _0x4b3041=this['_findShapeAtPoint'](_0x14027a);return _0x4b3041?(this['_activeTargetShapeId']!==_0x4b3041[_0x2c62ea(0x1d8)]&&(this[_0x2c62ea(0x1fb)](),this['_showConnectionSites'](_0x4b3041[_0x2c62ea(0x1d8)],_0x4b3041[_0x2c62ea(0x263)]),this[_0x2c62ea(0x53e)]=_0x4b3041[_0x2c62ea(0x1d8)]),this['_findNearestConnectionSite'](_0x14027a)):(this['_activeTargetShapeId']!==null&&(this[_0x2c62ea(0x1fb)](),this['_activeTargetShapeId']=null),null);}[_0x48b1be(0x1fd)](){const _0x56c403=_0x48b1be;this[_0x56c403(0x1fb)](),this[_0x56c403(0x3f8)]=null,this[_0x56c403(0x53e)]=null,this[_0x56c403(0x145)]=-0x1,this['_draggingConnectorId']=null;}[_0x48b1be(0x43b)](){const _0xa6743d=_0x48b1be;if(this[_0xa6743d(0x53e)]===null||this['_highlightedSiteIndex']<0x0)return null;return{'shapeId':this[_0xa6743d(0x53e)],'cxnIndex':this[_0xa6743d(0x145)]};}[_0x48b1be(0x189)](_0x4d7f79){const _0x591770=_0x48b1be,_0x183803=this[_0x591770(0x307)][_0x591770(0x47d)](this['_unitId'],this[_0x591770(0x36d)]);for(const _0x22db7c of Object['keys'](_0x183803)){if(_0x22db7c===this[_0x591770(0x2c5)])continue;if(_0x183803[_0x22db7c][_0x591770(0x2b0)]!==_univerjs_core[_0x591770(0x45a)][_0x591770(0x614)])continue;const _0x327bac=this[_0x591770(0x5d9)][_0x591770(0x36e)](this['_unitId'],this[_0x591770(0x36d)],_0x22db7c);if(!_0x327bac)continue;if((0x0,_univerjs_pro_engine_shape[_0x591770(0x5fb)])(_0x327bac[_0x591770(0x607)]()))continue;if(_0x327bac[_0x591770(0x42f)]()['length']===0x0)continue;if(!this[_0x591770(0x3f8)])continue;const _0xc50c6=(0x0,_univerjs_drawing[_0x591770(0x1e7)])({'unitId':this[_0x591770(0x5ae)],'subUnitId':this[_0x591770(0x36d)],'drawingId':_0x22db7c}),_0x3ff23f=this['_currentScene'][_0x591770(0x492)](_0xc50c6);if(!_0x3ff23f)continue;const {left:_0xcde9a3,top:_0x3d90b3,width:_0x46796d,height:_0x281d34}=_0x3ff23f['getRealBound'](),_0x1919b0=_0xcde9a3+_0x46796d/0x2,_0x25f067=_0x3d90b3+_0x281d34/0x2,_0x37228a=_0x3ff23f[_0x591770(0x649)][_0x591770(0x351)](),_0x2fbd73=new _univerjs_engine_render['Transform']([_0x37228a[0x0],_0x37228a[0x1],_0x37228a[0x2],_0x37228a[0x3],_0x1919b0,_0x25f067]),_0x5b1fbd=_0x3ff23f[_0x591770(0x412)](),_0x4a40f6=(_0x3ff23f['isInGroup']&&(_0x5b1fbd===null||_0x5b1fbd===void 0x0?void 0x0:_0x5b1fbd[_0x591770(0x5da)])===_univerjs_engine_render[_0x591770(0x464)]['GROUP']?_0x5b1fbd[_0x591770(0x46d)][_0x591770(0x290)](_0x2fbd73):_0x2fbd73)['invert']()['applyPoint'](_0x4d7f79),_0x5c0193=_0x46796d/0x2,_0x1747b7=_0x281d34/0x2,_0x55a5c5=SHAPE_BOUNDS_PADDING;if(_0x4a40f6['x']>=-_0x5c0193-_0x55a5c5&&_0x4a40f6['x']<=_0x5c0193+_0x55a5c5&&_0x4a40f6['y']>=-_0x1747b7-_0x55a5c5&&_0x4a40f6['y']<=_0x1747b7+_0x55a5c5)return{'shapeId':_0x22db7c,'shapeModel':_0x327bac};}return null;}[_0x48b1be(0x5f5)](_0x523a53,_0x36dede){const _0x3aeb7f=_0x48b1be;if(!this[_0x3aeb7f(0x3f8)])return;const _0x3594a4=(0x0,_univerjs_drawing[_0x3aeb7f(0x1e7)])({'unitId':this[_0x3aeb7f(0x5ae)],'subUnitId':this['_subUnitId'],'drawingId':_0x523a53}),_0x55fba0=this[_0x3aeb7f(0x3f8)]['getObjectIncludeInGroup'](_0x3594a4);if(!_0x55fba0)return;const {left:_0x59eb5d,top:_0x8f0a2f,width:_0x137430,height:_0x22121d}=_0x55fba0[_0x3aeb7f(0x4c6)](),_0x33a687=_0x59eb5d+_0x137430/0x2,_0x183c3c=_0x8f0a2f+_0x22121d/0x2,_0x1137ed=_0x55fba0[_0x3aeb7f(0x649)]['getMatrix'](),_0x15cc92=new _univerjs_engine_render['Transform']([_0x1137ed[0x0],_0x1137ed[0x1],_0x1137ed[0x2],_0x1137ed[0x3],_0x33a687,_0x183c3c]),_0x1ac14c=_0x55fba0[_0x3aeb7f(0x412)](),_0x2c2e4b=_0x55fba0[_0x3aeb7f(0x32b)]&&(_0x1ac14c===null||_0x1ac14c===void 0x0?void 0x0:_0x1ac14c[_0x3aeb7f(0x5da)])===_univerjs_engine_render[_0x3aeb7f(0x464)][_0x3aeb7f(0x14c)]?_0x1ac14c[_0x3aeb7f(0x46d)][_0x3aeb7f(0x290)](_0x15cc92):_0x15cc92;_0x36dede['updateContext']({'width':_0x137430,'height':_0x22121d});const _0x4133f9=_0x36dede[_0x3aeb7f(0x42f)]();for(const _0x4f748f of _0x4133f9){const _0x48d2b5=_0x4f748f['x']-_0x137430/0x2,_0x5a0084=_0x4f748f['y']-_0x22121d/0x2,_0xe5cb4e=_0x2c2e4b[_0x3aeb7f(0x590)]({'x':_0x48d2b5,'y':_0x5a0084}),_0x5bbd6d=_0xe5cb4e['x'],_0x5b22eb=_0xe5cb4e['y'],_0x197c5e=new SheetBasicShapeConnectionSiteObject(_0x3aeb7f(0x52a)+_0x523a53+'-'+_0x4f748f[_0x3aeb7f(0x343)],{'left':_0x5bbd6d-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3aeb7f(0x5e2)],'top':_0x5b22eb-_univerjs_pro_engine_shape[_0x3aeb7f(0x5ff)][_0x3aeb7f(0x5e2)],'targetShapeId':_0x523a53,'cxnIndex':_0x4f748f[_0x3aeb7f(0x343)],'unitId':this[_0x3aeb7f(0x5ae)],'subUnitId':this[_0x3aeb7f(0x36d)],'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3aeb7f(0x5e2)]*0x2,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3aeb7f(0x5e2)]*0x2,'zIndex':_univerjs_engine_render[_0x3aeb7f(0x3d4)]+0x2,'evented':![]});this['_connectionSiteObjects'][_0x3aeb7f(0x5ed)](_0x197c5e),this['_currentScene'][_0x3aeb7f(0x261)](_0x197c5e,_univerjs_engine_render[_0x3aeb7f(0x3d4)]+0x2);}}[_0x48b1be(0x3b2)](_0xbaff6a){const _0x240c83=_0x48b1be;let _0x87fe30=null,_0x2df59b=Infinity,_0x57f53e=null;for(const _0x1ed95a of this[_0x240c83(0x50f)]){const _0x1a2eb7=_0x1ed95a['left']+_univerjs_pro_engine_shape[_0x240c83(0x5ff)][_0x240c83(0x5e2)],_0x59ea53=_0x1ed95a[_0x240c83(0x566)]+_univerjs_pro_engine_shape[_0x240c83(0x5ff)][_0x240c83(0x5e2)],_0x517e14=_0xbaff6a['x']-_0x1a2eb7,_0x5e6b85=_0xbaff6a['y']-_0x59ea53,_0x3ac8f4=Math[_0x240c83(0x23e)](_0x517e14*_0x517e14+_0x5e6b85*_0x5e6b85);_0x3ac8f4<_0x2df59b&&(_0x2df59b=_0x3ac8f4,_0x87fe30=_0x1ed95a,_0x57f53e={'x':_0x1a2eb7,'y':_0x59ea53});}const _0x533c6a=_0x2df59b<=CONNECTION_SITE_HIT_RADIUS&&_0x87fe30?_0x87fe30[_0x240c83(0x601)]()['cxnIndex']:-0x1;if(_0x533c6a!==this[_0x240c83(0x145)]){for(const _0x50dd27 of this[_0x240c83(0x50f)]){const _0x221a98=_0x50dd27[_0x240c83(0x601)]();_0x50dd27[_0x240c83(0x3a4)](_0x221a98[_0x240c83(0x293)]===_0x533c6a);}this['_highlightedSiteIndex']=_0x533c6a;}if(_0x2df59b<=CONNECTION_SITE_HIT_RADIUS&&_0x87fe30&&_0x57f53e){const _0x281d9e=_0x87fe30[_0x240c83(0x601)](),_0x39fe2c=this[_0x240c83(0x2ce)](_0x281d9e['shapeId'],_0x281d9e['cxnIndex']);return{'shapeId':_0x281d9e[_0x240c83(0x1d8)],'cxnIndex':_0x281d9e[_0x240c83(0x293)],'unitId':_0x281d9e[_0x240c83(0x1ab)],'subUnitId':_0x281d9e[_0x240c83(0x4dc)],'worldPoint':_0x57f53e,'angle':_0x39fe2c};}return null;}[_0x48b1be(0x2ce)](_0x461e33,_0x5e87c6){const _0x22bbd7=_0x48b1be,_0x25d0b0=this[_0x22bbd7(0x5d9)]['getShapeModel'](this['_unitId'],this[_0x22bbd7(0x36d)],_0x461e33);if(!_0x25d0b0)return 0x0;const _0x2808cd=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x22bbd7(0x5ae)],'subUnitId':this[_0x22bbd7(0x36d)],'drawingId':_0x461e33});if(!(_0x2808cd===null||_0x2808cd===void 0x0?void 0x0:_0x2808cd[_0x22bbd7(0x649)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x2808cd[_0x22bbd7(0x649)];_0x25d0b0[_0x22bbd7(0x3ce)]({'width':width,'height':height});const _0x3fb68a=_0x25d0b0['getConnectionSiteList']()[_0x22bbd7(0x190)](_0x6789e=>_0x6789e[_0x22bbd7(0x343)]===_0x5e87c6);if(!_0x3fb68a)return 0x0;let _0x372088=_0x3fb68a[_0x22bbd7(0x578)]/0xea60;if(flipX)_0x372088=0xb4-_0x372088;if(flipY)_0x372088=-_0x372088;return _0x372088=(_0x372088%0x168+0x168)%0x168,_0x372088;}[_0x48b1be(0x1fb)](){const _0x1a188a=_0x48b1be;for(const _0x5d1a6e of this[_0x1a188a(0x50f)])_0x5d1a6e['dispose']();this[_0x1a188a(0x50f)]=[],this[_0x1a188a(0x145)]=-0x1;}[_0x48b1be(0x570)](){const _0x42e147=_0x48b1be;this['_clearConnectionSites'](),super[_0x42e147(0x570)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x48b1be(0x1df)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_drawing['IDrawingManagerService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape[_0x48b1be(0x475)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core['Disposable']{constructor(_0x549999,_0x3399f3,_0x3dd94b,_0x17d93d,_0x538889){const _0x384f94=_0x48b1be;super(),this[_0x384f94(0x33f)]=_0x549999,this['_sheetClipboardService']=_0x3399f3,this['_sheetDrawingService']=_0x3dd94b,this[_0x384f94(0x35e)]=_0x17d93d,this[_0x384f94(0x421)]=_0x538889,_defineProperty(this,_0x384f94(0x358),void 0x0),this[_0x384f94(0x4c5)](),this['_registerGroupFeaturePasteHook']();}get['_focusedDrawings'](){const _0x4d069d=_0x48b1be;return this['_sheetDrawingService'][_0x4d069d(0x669)]();}[_0x48b1be(0x24a)](){const _0x445597=_0x48b1be;this['_groupCopyPasteController'][_0x445597(0x24d)](({fromUnitId:_0x31b5a4,fromSubUnitId:_0x2cac1c,toUnitId:_0xc136a5,toSubUnitId:_0x1c539b,idMap:_0x4f0c57})=>{const _0x3c3c49=_0x445597,_0x74d529=[],_0x2c8292=[];for(const [_0x23d2a8,_0x5b1087]of _0x4f0c57['entries']()){const _0x1365b6=this[_0x3c3c49(0x35e)][_0x3c3c49(0x36e)](_0x31b5a4,_0x2cac1c,_0x23d2a8);if(!_0x1365b6)continue;const _0x30f245=_0x1365b6[_0x3c3c49(0x607)](),_0x1ed69b=JSON[_0x3c3c49(0x15c)](JSON[_0x3c3c49(0x4a9)](_0x1365b6[_0x3c3c49(0x260)]()));if(_0x1ed69b['relation']){var _0x591bcc,_0xdffaba;const _0x2b7108=(_0x591bcc=_0x1ed69b[_0x3c3c49(0x3e1)]['from'])===null||_0x591bcc===void 0x0?void 0x0:_0x591bcc[_0x3c3c49(0x1d8)],_0x1aee3c=(_0xdffaba=_0x1ed69b['relation']['to'])===null||_0xdffaba===void 0x0?void 0x0:_0xdffaba['shapeId'],_0x19e06e=_0x2b7108?_0x4f0c57[_0x3c3c49(0x3d2)](_0x2b7108):!![],_0x4b541d=_0x1aee3c?_0x4f0c57[_0x3c3c49(0x3d2)](_0x1aee3c):!![];if(_0x19e06e&&_0x2b7108&&_0x1ed69b[_0x3c3c49(0x3e1)][_0x3c3c49(0x54e)])_0x1ed69b[_0x3c3c49(0x3e1)]['from']={..._0x1ed69b[_0x3c3c49(0x3e1)][_0x3c3c49(0x54e)],'shapeId':_0x4f0c57['get'](_0x2b7108)};else _0x1ed69b[_0x3c3c49(0x3e1)][_0x3c3c49(0x54e)]=void 0x0;if(_0x4b541d&&_0x1aee3c&&_0x1ed69b[_0x3c3c49(0x3e1)]['to'])_0x1ed69b[_0x3c3c49(0x3e1)]['to']={..._0x1ed69b['relation']['to'],'shapeId':_0x4f0c57[_0x3c3c49(0x4fd)](_0x1aee3c)};else _0x1ed69b['relation']['to']=void 0x0;}_0x74d529[_0x3c3c49(0x5ed)]({'id':_univerjs_pro_sheets_shape[_0x3c3c49(0x254)]['id'],'params':{'unitId':_0xc136a5,'subUnitId':_0x1c539b,'shapeId':_0x5b1087,'shapeType':_0x30f245,'shapeData':_0x1ed69b}}),_0x2c8292['push']({'id':_univerjs_pro_sheets_shape[_0x3c3c49(0x1c9)]['id'],'params':{'unitId':_0xc136a5,'subUnitId':_0x1c539b,'shapeId':_0x5b1087}});}return{'redos':_0x74d529,'undos':_0x2c8292};});}['_initCopyPaste'](){const _0x26f9bd=_0x48b1be;this['disposeWithMe'](this['_sheetClipboardService'][_0x26f9bd(0x494)]({'id':_0x26f9bd(0x3a7),'onBeforeCopy':(_0x3677eb,_0x33b966,_0x502611,_0x2832d6)=>{const _0x525dd1=_0x26f9bd;this['_copyInfo']=null;const _0x459843=this[_0x525dd1(0x200)];if(_0x459843[_0x525dd1(0x42d)]){const _0x36318b=_0x459843['filter'](_0x207475=>_0x207475[_0x525dd1(0x2b0)]===_univerjs_core[_0x525dd1(0x45a)][_0x525dd1(0x614)]);if(_0x36318b[_0x525dd1(0x42d)]===0x0)return;this[_0x525dd1(0x358)]={'unitId':_0x3677eb,'subUnitId':_0x33b966,'copyType':_0x2832d6,'drawings':_0x36318b};}else this[_0x525dd1(0x224)](_0x3677eb,_0x33b966,_0x502611,_0x2832d6);},'onPasteCells':(_0x2e12dd,_0x2cab87,_0x28b837,_0x4841a5)=>{const _0xb63bb=_0x26f9bd;if(!this[_0xb63bb(0x358)])return{'redos':[],'undos':[]};const {pasteType:_0x5a4e18}=_0x4841a5;if(_0x5a4e18!==_univerjs_sheets_ui[_0xb63bb(0x66d)][_0xb63bb(0x104)])return{'redos':[],'undos':[]};return this[_0xb63bb(0x5f7)](_0x2cab87,this[_0xb63bb(0x358)]['copyType']===_univerjs_sheets_ui[_0xb63bb(0x300)][_0xb63bb(0x1a7)]);},'onPasteUnrecognized':_0x32e0c7=>{const _0x833709=_0x26f9bd;if(!this[_0x833709(0x358)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x32e0c7,this[_0x833709(0x358)]['copyType']===_univerjs_sheets_ui[_0x833709(0x300)][_0x833709(0x1a7)]);}}));}[_0x48b1be(0x224)](_0xd12413,_0x38c459,_0x1a64ba,_0x2bcb6c){const _0x60ac2e=_0x48b1be,_0x4440c7=this[_0x60ac2e(0x33f)][_0x60ac2e(0x192)](_0xd12413,_0x38c459);if(!_0x4440c7)return;const _0x4e37d0=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x4440c7,_0x1a64ba);if(!_0x4e37d0)return;const {startX:_0x2fee8c,endX:_0x346f01,startY:_0x59658f,endY:_0x2498c5}=_0x4e37d0,_0x5d8d7c=this[_0x60ac2e(0x637)][_0x60ac2e(0x47d)](_0xd12413,_0x38c459),_0x55c79e=this[_0x60ac2e(0x200)]['slice']();for(const [_0x169119,_0x2531c9]of Object[_0x60ac2e(0x52c)](_0x5d8d7c)){if(_0x2531c9[_0x60ac2e(0x2b0)]!==_univerjs_core[_0x60ac2e(0x45a)]['DRAWING_SHAPE'])continue;const {transform:_0x2e4bd5}=_0x2531c9;if(!_0x2e4bd5)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x2e4bd5;if(_0x2fee8c<=left&&_0x346f01>=left+width&&_0x59658f<=top&&_0x2498c5>=top+height)_0x55c79e[_0x60ac2e(0x5ed)](_0x2531c9);}if(_0x55c79e[_0x60ac2e(0x42d)]>0x0)this['_copyInfo']={'unitId':_0xd12413,'subUnitId':_0x38c459,'copyType':_0x2bcb6c,'copyRange':_0x1a64ba,'drawings':_0x55c79e};}['_generatePasteMutations'](_0x59f30f,_0x1a7a10){const _0x52be43=_0x48b1be,{unitId:_0x28ba6f,subUnitId:_0x171321,range:_0x21e474}=_0x59f30f,_0x59a4ec=this[_0x52be43(0x33f)][_0x52be43(0x192)](_0x28ba6f,_0x171321);if(!_0x59a4ec)return{'redos':[],'undos':[]};const _0x1002f8=(0x0,_univerjs_sheets[_0x52be43(0x460)])(_0x21e474),{unitId:_0x5a13b7,subUnitId:_0xd3a2e2,copyRange:_0x415b63,drawings:_0xda1d90}=this[_0x52be43(0x358)],_0x3acb54=this[_0x52be43(0x33f)]['getSkeleton'](_0x5a13b7,_0xd3a2e2);if(!_0x3acb54)return{'redos':[],'undos':[]};let _0x2fe103;if(!_0x415b63){let _0x19440e=Infinity,_0x5739af=Infinity;for(const _0xf82eb2 of _0xda1d90){var _0x5bfa76;const {left:left=0x0,top:top=0x0}=(_0x5bfa76=_0xf82eb2[_0x52be43(0x649)])!==null&&_0x5bfa76!==void 0x0?_0x5bfa76:{};if(left<_0x19440e)_0x19440e=left;if(top<_0x5739af)_0x5739af=top;}if(_0x19440e!==Infinity&&_0x5739af!==Infinity)_0x2fe103={'left':_0x19440e,'top':_0x5739af};}const _0xb1027a=new Map();if(!_0x1a7a10){for(const _0x5bd4f7 of _0xda1d90)_0xb1027a[_0x52be43(0x5e5)](_0x5bd4f7[_0x52be43(0x4cb)],(0x0,_univerjs_core['generateRandomId'])());}const _0x3d58eb=[],_0x3a9202=[];for(const _0x4a6545 of _0xda1d90){const {drawingId:_0x416cf6,transform:_0x542724,sheetTransform:_0x5a604f}=_0x4a6545;if(!_0x542724||!_0x5a604f)continue;const _0x291eed=this[_0x52be43(0x2e6)]({'transform':_0x542724,'sheetTransform':_0x5a604f},{'skeleton':_0x3acb54,'range':_0x415b63},{'skeleton':_0x59a4ec,'range':_0x1002f8},_0x2fe103);if(_0x1a7a10){const {redos:_0x6e0346,undos:_0x489f72}=this[_0x52be43(0x549)]({'fromUnitId':_0x5a13b7,'fromSubUnitId':_0xd3a2e2,'toUnitId':_0x28ba6f,'toSubUnitId':_0x171321,'drawing':_0x4a6545,'newTransforms':_0x291eed});_0x3d58eb[_0x52be43(0x5ed)](..._0x6e0346),_0x3a9202['push'](..._0x489f72);continue;}const {redos:_0x282f45,undos:_0x41c6af}=this[_0x52be43(0x1ec)]({'toUnitId':_0x28ba6f,'toSubUnitId':_0x171321,'drawing':_0x4a6545,'newTransforms':_0x291eed,'newDrawingId':_0xb1027a['get'](_0x416cf6),'idMap':_0xb1027a});_0x3d58eb[_0x52be43(0x5ed)](..._0x282f45),_0x3a9202[_0x52be43(0x5ed)](..._0x41c6af);}return{'redos':_0x3d58eb,'undos':_0x3a9202};}[_0x48b1be(0x549)](_0x1112bc){const _0x510371=_0x48b1be,{fromUnitId:_0x563bc4,fromSubUnitId:_0x5847a7,toUnitId:_0x4afca5,toSubUnitId:_0x19ba74,drawing:_0x360766,newTransforms:_0x2ce9f4}=_0x1112bc,_0x1ac405={..._0x360766,'unitId':_0x4afca5,'subUnitId':_0x19ba74,'transform':_0x2ce9f4[_0x510371(0x649)],'sheetTransform':_0x2ce9f4['sheetTransform']};if(_0x4afca5===_0x563bc4&&_0x19ba74===_0x5847a7){const {redo:_0x40e730,undo:_0x2709cd,objects:_0x1ecf17}=this[_0x510371(0x637)][_0x510371(0x406)]([_0x1ac405]);return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'type':_univerjs_sheets_drawing['DrawingApplyType']['UPDATE'],'op':_0x40e730,'objects':_0x1ecf17}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'type':_univerjs_sheets_drawing[_0x510371(0x603)][_0x510371(0x5c7)],'op':_0x2709cd,'objects':_0x1ecf17}}]};}else{const _0x5649be=this[_0x510371(0x637)]['getBatchRemoveOp']([_0x360766]),_0x292d9a=this[_0x510371(0x637)][_0x510371(0x186)]([_0x1ac405]),_0x4e2532=this[_0x510371(0x35e)][_0x510371(0x36e)](_0x360766[_0x510371(0x1ab)],_0x360766[_0x510371(0x4dc)],_0x360766['drawingId']);if(!_0x4e2532)return{'redos':[],'undos':[]};const _0x6115e0=_0x4e2532[_0x510371(0x607)](),_0x3c4d34=JSON[_0x510371(0x15c)](JSON[_0x510371(0x4a9)](_0x4e2532[_0x510371(0x260)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x510371(0x62d)]['id'],'params':{'unitId':_0x563bc4,'subUnitId':_0x5847a7,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x510371(0x573)],'op':_0x5649be[_0x510371(0x2b1)],'objects':_0x5649be[_0x510371(0x3f7)]}},{'id':_univerjs_pro_sheets_shape[_0x510371(0x1c9)]['id'],'params':{'unitId':_0x563bc4,'subUnitId':_0x5847a7,'shapeId':_0x360766[_0x510371(0x4cb)]}},{'id':_univerjs_sheets_drawing[_0x510371(0x62d)]['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'type':_univerjs_sheets_drawing[_0x510371(0x603)][_0x510371(0x453)],'op':_0x292d9a['redo'],'objects':_0x292d9a[_0x510371(0x3f7)]}},{'id':_univerjs_pro_sheets_shape[_0x510371(0x254)]['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'shapeId':_0x360766[_0x510371(0x4cb)],'shapeType':_0x6115e0,'shapeData':_0x3c4d34}}],'undos':[{'id':_univerjs_sheets_drawing[_0x510371(0x62d)]['id'],'params':{'unitId':_0x563bc4,'subUnitId':_0x5847a7,'type':_univerjs_sheets_drawing['DrawingApplyType']['INSERT'],'op':_0x5649be[_0x510371(0x26d)],'objects':_0x5649be['objects']}},{'id':_univerjs_pro_sheets_shape[_0x510371(0x254)]['id'],'params':{'unitId':_0x563bc4,'subUnitId':_0x5847a7,'shapeId':_0x360766[_0x510371(0x4cb)],'shapeType':_0x6115e0,'shapeData':_0x3c4d34}},{'id':_univerjs_sheets_drawing[_0x510371(0x62d)]['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'type':_univerjs_sheets_drawing[_0x510371(0x603)][_0x510371(0x573)],'op':_0x292d9a[_0x510371(0x26d)],'objects':_0x292d9a[_0x510371(0x3f7)]}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4afca5,'subUnitId':_0x19ba74,'shapeId':_0x360766['drawingId']}}]};}}[_0x48b1be(0x1ec)](_0x30e207){const _0x4f54de=_0x48b1be,{toUnitId:_0x8261c9,toSubUnitId:_0x307e06,drawing:_0x3add34,newTransforms:_0x38b5ac,newDrawingId:_0x2b39a7,idMap:_0x428ac3}=_0x30e207,_0x534563={..._0x3add34,'unitId':_0x8261c9,'subUnitId':_0x307e06,'drawingId':_0x2b39a7,'transform':_0x38b5ac['transform'],'sheetTransform':_0x38b5ac[_0x4f54de(0x38c)]},{redo:_0x30e374,undo:_0x361aa0,objects:_0x5cf9b7}=this[_0x4f54de(0x637)][_0x4f54de(0x186)]([_0x534563]),_0x5565ba=this[_0x4f54de(0x35e)]['getShapeModel'](_0x3add34[_0x4f54de(0x1ab)],_0x3add34[_0x4f54de(0x4dc)],_0x3add34['drawingId']);if(!_0x5565ba)return{'redos':[],'undos':[]};const _0x45d2fc=_0x5565ba['getShapeType'](),_0x470833=JSON[_0x4f54de(0x15c)](JSON[_0x4f54de(0x4a9)](_0x5565ba[_0x4f54de(0x260)]()));if(_0x470833[_0x4f54de(0x3e1)]){var _0x4246ec,_0x5a5cb3;const _0x41fd11=(_0x4246ec=_0x470833['relation'][_0x4f54de(0x54e)])===null||_0x4246ec===void 0x0?void 0x0:_0x4246ec['shapeId'],_0x148d3e=(_0x5a5cb3=_0x470833['relation']['to'])===null||_0x5a5cb3===void 0x0?void 0x0:_0x5a5cb3[_0x4f54de(0x1d8)],_0x11f5f9=_0x41fd11?_0x428ac3['has'](_0x41fd11):!![],_0x45e546=_0x148d3e?_0x428ac3['has'](_0x148d3e):!![];if(_0x11f5f9&&_0x41fd11&&_0x470833['relation'][_0x4f54de(0x54e)])_0x470833['relation']['from']={..._0x470833[_0x4f54de(0x3e1)][_0x4f54de(0x54e)],'shapeId':_0x428ac3[_0x4f54de(0x4fd)](_0x41fd11)};else _0x470833[_0x4f54de(0x3e1)][_0x4f54de(0x54e)]=void 0x0;if(_0x45e546&&_0x148d3e&&_0x470833[_0x4f54de(0x3e1)]['to'])_0x470833['relation']['to']={..._0x470833['relation']['to'],'shapeId':_0x428ac3[_0x4f54de(0x4fd)](_0x148d3e)};else _0x470833[_0x4f54de(0x3e1)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing[_0x4f54de(0x62d)]['id'],'params':{'unitId':_0x8261c9,'subUnitId':_0x307e06,'type':_univerjs_sheets_drawing['DrawingApplyType']['INSERT'],'op':_0x30e374,'objects':_0x5cf9b7}},{'id':_univerjs_pro_sheets_shape[_0x4f54de(0x254)]['id'],'params':{'unitId':_0x8261c9,'subUnitId':_0x307e06,'shapeId':_0x2b39a7,'shapeType':_0x45d2fc,'shapeData':_0x470833}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x8261c9,'subUnitId':_0x307e06,'type':_univerjs_sheets_drawing[_0x4f54de(0x603)][_0x4f54de(0x573)],'op':_0x361aa0,'objects':_0x5cf9b7}},{'id':_univerjs_pro_sheets_shape[_0x4f54de(0x1c9)]['id'],'params':{'unitId':_0x8261c9,'subUnitId':_0x307e06,'shapeId':_0x2b39a7}}]};}[_0x48b1be(0x2e6)](_0x3a509b,_0x310adc,_0x1b4196,_0x55268b){const _0x31052a=_0x48b1be;var _0x26cd28;const {range:_0x118c88,skeleton:_0x5353c6}=_0x310adc,{range:_0x3b8a2c,skeleton:_0x1d4a2a}=_0x1b4196,{transform:_0x5c023d,sheetTransform:_0x3ace82}=_0x3a509b,_0x1e4322={..._0x5c023d};if(_0x118c88){const _0x4a66fa=(0x0,_univerjs_sheets[_0x31052a(0x5f8)])(_0x5353c6,_0x118c88),_0x270568=(0x0,_univerjs_sheets[_0x31052a(0x5f8)])(_0x1d4a2a,_0x3b8a2c);if(_0x4a66fa&&_0x270568){var _0x406551,_0x54373b;const _0x58aa74=_0x270568[_0x31052a(0x476)]-_0x4a66fa[_0x31052a(0x476)],_0x4c05eb=_0x270568[_0x31052a(0x661)]-_0x4a66fa['startY'];_0x1e4322[_0x31052a(0x450)]=((_0x406551=_0x1e4322[_0x31052a(0x450)])!==null&&_0x406551!==void 0x0?_0x406551:0x0)+_0x58aa74,_0x1e4322[_0x31052a(0x566)]=((_0x54373b=_0x1e4322[_0x31052a(0x566)])!==null&&_0x54373b!==void 0x0?_0x54373b:0x0)+_0x4c05eb;}}else{const _0x6502b3=(0x0,_univerjs_sheets[_0x31052a(0x5f8)])(_0x1d4a2a,_0x3b8a2c);if(_0x55268b&&_0x6502b3){var _0x49c9e7,_0x4c49b9;const _0x4b148f=((_0x49c9e7=_0x1e4322[_0x31052a(0x450)])!==null&&_0x49c9e7!==void 0x0?_0x49c9e7:0x0)-_0x55268b['left'],_0x43b5a8=((_0x4c49b9=_0x1e4322['top'])!==null&&_0x4c49b9!==void 0x0?_0x4c49b9:0x0)-_0x55268b[_0x31052a(0x566)];_0x1e4322[_0x31052a(0x450)]=_0x6502b3[_0x31052a(0x476)]+_0x4b148f,_0x1e4322[_0x31052a(0x566)]=_0x6502b3[_0x31052a(0x661)]+_0x43b5a8;}else _0x1e4322[_0x31052a(0x450)]=_0x6502b3===null||_0x6502b3===void 0x0?void 0x0:_0x6502b3[_0x31052a(0x476)],_0x1e4322[_0x31052a(0x566)]=_0x6502b3===null||_0x6502b3===void 0x0?void 0x0:_0x6502b3[_0x31052a(0x661)];}return{'transform':_0x1e4322,'sheetTransform':(_0x26cd28=(0x0,_univerjs_sheets_drawing[_0x31052a(0x468)])(_0x1e4322,_0x1d4a2a))!==null&&_0x26cd28!==void 0x0?_0x26cd28:_0x3ace82};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_sheets[_0x48b1be(0x2c9)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_sheets_ui[_0x48b1be(0x18e)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing[_0x48b1be(0x528)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape[_0x48b1be(0x475)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_sheets_drawing_ui[_0x48b1be(0x52f)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x48b1be(0x41e)]{constructor(_0x8f6ce7,_0x16a21e){const _0x26a48a=_0x48b1be;super(_0x8f6ce7,_0x16a21e),_defineProperty(this,'_shapeId',null),_defineProperty(this,_0x26a48a(0x41f),null),_defineProperty(this,_0x26a48a(0x5ae),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,'_isStartConnectorPoint',![]);if(_0x16a21e)this['setShapeProps'](_0x16a21e);}[_0x48b1be(0x647)](){const _0x5355a7=_0x48b1be;return{'unitId':this[_0x5355a7(0x5ae)],'subUnitId':this[_0x5355a7(0x36d)],'drawingId':this[_0x5355a7(0x338)]};}['setShapeProps'](_0x29587f){const _0x7cd8ab=_0x48b1be;if(typeof _0x29587f[_0x7cd8ab(0x1d8)]!==_0x7cd8ab(0x37e))this[_0x7cd8ab(0x338)]=_0x29587f[_0x7cd8ab(0x1d8)];if(typeof _0x29587f[_0x7cd8ab(0x1ab)]!==_0x7cd8ab(0x37e))this[_0x7cd8ab(0x5ae)]=_0x29587f['unitId'];if(typeof _0x29587f['subUnitId']!==_0x7cd8ab(0x37e))this['_subUnitId']=_0x29587f[_0x7cd8ab(0x4dc)];if(typeof _0x29587f[_0x7cd8ab(0x4ae)]!==_0x7cd8ab(0x37e))this[_0x7cd8ab(0x1d0)]=_0x29587f['isStartConnectorPoint'];this[_0x7cd8ab(0x2b4)]({'width':_0x29587f['width'],'height':_0x29587f[_0x7cd8ab(0x613)]});}['_draw'](_0x3afb21){const _0x5085e6=_0x48b1be;_univerjs_engine_render['Circle'][_0x5085e6(0x1f1)](_0x3afb21,{'radius':_univerjs_pro_engine_shape[_0x5085e6(0x5ff)]['cxnPointRadius'],'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointFill'],'stroke':_univerjs_pro_engine_shape[_0x5085e6(0x5ff)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5085e6(0x415)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core['Disposable']{constructor(_0x5e71aa,_0x34884c,_0x5a84d9,_0x11e05c,_0x5002ae,_0x308f6d,_0x58e7ce,_0x567633){const _0x19ddad=_0x48b1be;super(),this['_context']=_0x5e71aa,this['_commandService']=_0x34884c,this[_0x19ddad(0x1cb)]=_0x5a84d9,this['_drawingManagerService']=_0x11e05c,this[_0x19ddad(0x36a)]=_0x5002ae,this[_0x19ddad(0x5d9)]=_0x308f6d,this[_0x19ddad(0x58c)]=_0x58e7ce,this[_0x19ddad(0x146)]=_0x567633,_defineProperty(this,_0x19ddad(0x55c),void 0x0),_defineProperty(this,_0x19ddad(0x5ae),void 0x0),_defineProperty(this,_0x19ddad(0x36d),void 0x0),_defineProperty(this,_0x19ddad(0x21a),[]),_defineProperty(this,_0x19ddad(0x1e1),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,_0x19ddad(0x520),void 0x0),_defineProperty(this,'_isConnecting',![]),_defineProperty(this,_0x19ddad(0x143),![]),_defineProperty(this,'_hasReset',![]),_defineProperty(this,_0x19ddad(0x66b),void 0x0),_defineProperty(this,_0x19ddad(0x519),void 0x0),_defineProperty(this,_0x19ddad(0x3df),null),this[_0x19ddad(0x3da)]();}[_0x48b1be(0x3da)](){const _0x6747c2=_0x48b1be;this[_0x6747c2(0x582)](),this['_registerDrawingMoveHandler']();}[_0x48b1be(0x29e)](){const _0x258a48=_0x48b1be;if(!this[_0x258a48(0x5ae)]||!this[_0x258a48(0x36d)]||!this[_0x258a48(0x55c)])return;const _0x44963b={'unitId':this[_0x258a48(0x5ae)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']},{transform:_0xd42e2}=this[_0x258a48(0x307)][_0x258a48(0x251)](_0x44963b);if(!_0xd42e2)return;return{'left':_0xd42e2[_0x258a48(0x450)]||0x0,'top':_0xd42e2['top']||0x0,'width':_0xd42e2[_0x258a48(0x3c7)]||0x0,'height':_0xd42e2[_0x258a48(0x613)]||0x0,'flipX':_0xd42e2['flipX']||![],'flipY':_0xd42e2[_0x258a48(0x285)]||![],'angle':_0xd42e2[_0x258a48(0x2ed)]};}['_addShapeConnectorHandlerObjects'](){const _0x5bd5e4=_0x48b1be;if(this['_unitId']===void 0x0||this[_0x5bd5e4(0x36d)]===void 0x0||this[_0x5bd5e4(0x55c)]===void 0x0)return;const _0x2e2cb2=this[_0x5bd5e4(0x1cb)]['getRenderById'](this['_unitId']);if(!_0x2e2cb2)return;if(!_0x2e2cb2[_0x5bd5e4(0x26a)](_univerjs_sheets_ui[_0x5bd5e4(0x2b2)])['getCurrentSkeleton']())return;const {scene:_0x55f657}=_0x2e2cb2,_0x77b1b0=this[_0x5bd5e4(0x29e)]();if(!_0x77b1b0)return;const _0x72db91=this[_0x5bd5e4(0x5d9)][_0x5bd5e4(0x36e)](this[_0x5bd5e4(0x5ae)],this['_subUnitId'],this['_activeShapeId']);if(!_0x72db91)return;if(!(0x0,_univerjs_pro_engine_shape[_0x5bd5e4(0x5fb)])(_0x72db91[_0x5bd5e4(0x607)]()))return;const _0x5ee4ba=_0x72db91[_0x5bd5e4(0x129)]();if(_0x5ee4ba[_0x5bd5e4(0x42d)]<0x2)return;const _0x3b95b2=new _univerjs_pro_engine_shape[(_0x5bd5e4(0x240))](_0x77b1b0),_0x2f2413=_0x5ee4ba[0x0],_0x2c6f46=_0x5ee4ba[_0x5ee4ba['length']-0x1],_0x41b14e=_0x3b95b2[_0x5bd5e4(0x2f3)](_0x2f2413),_0x179543=_0x3b95b2[_0x5bd5e4(0x2f3)](_0x2c6f46);this[_0x5bd5e4(0x447)](_0x55f657,{..._0x41b14e},!![]),this[_0x5bd5e4(0x447)](_0x55f657,{..._0x179543},![]);}[_0x48b1be(0x447)](_0x198fcf,_0x39500e,_0x3a2216){const _0x2a2706=_0x48b1be;if(this[_0x2a2706(0x55c)]===void 0x0||this[_0x2a2706(0x5ae)]===void 0x0||this['_subUnitId']===void 0x0)return;const _0x1fe473=_0x2a2706(0x31f)+this['_unitId']+'-'+this[_0x2a2706(0x36d)]+'-'+this[_0x2a2706(0x55c)]+'-'+(_0x3a2216?_0x2a2706(0x408):'end'),_0x3f5aa7=_0x198fcf['getObjectIncludeInGroup'](_0x1fe473);if(_0x3f5aa7){_0x3f5aa7[_0x2a2706(0x2b4)]({'left':_0x39500e['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x2a2706(0x5e2)],'top':_0x39500e['y']-_univerjs_pro_engine_shape[_0x2a2706(0x5ff)][_0x2a2706(0x5e2)]});return;}const _0x1912c5=new SheetShapeConnectorHandlerObject(_0x1fe473,{'left':_0x39500e['x']-_univerjs_pro_engine_shape[_0x2a2706(0x5ff)][_0x2a2706(0x5e2)],'top':_0x39500e['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x2a2706(0x5e2)],'shapeId':this[_0x2a2706(0x55c)],'unitId':this[_0x2a2706(0x5ae)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x3a2216,'width':_univerjs_pro_engine_shape[_0x2a2706(0x5ff)]['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape[_0x2a2706(0x5ff)][_0x2a2706(0x5e2)]*0x2,'zIndex':_univerjs_engine_render[_0x2a2706(0x3d4)]+0x1,'evented':!![]});this[_0x2a2706(0x21a)]['push'](_0x1912c5),this[_0x2a2706(0x596)](_0x1912c5,_0x198fcf,_0x3a2216),_0x198fcf[_0x2a2706(0x261)](_0x1912c5,_univerjs_engine_render[_0x2a2706(0x3d4)]+0x1);}[_0x48b1be(0x2d8)](_0x47897e,_0xd4fc7c){const _0x40c17e=_0x48b1be;var _0x1c2936;const _0x298daf={'x':0x0,'y':0x0};if(!_0x47897e||!_0xd4fc7c)return _0x298daf;const _0x38848b=this[_0x40c17e(0x1cb)]['getRenderById'](_0x47897e);if(!_0x38848b)return _0x298daf;if(!_0x38848b['with'](_univerjs_sheets_ui[_0x40c17e(0x2b2)])[_0x40c17e(0x192)](_0xd4fc7c))return _0x298daf;const _0x212388=_0x38848b[_0x40c17e(0x26a)](_univerjs_sheets_ui[_0x40c17e(0x411)]),_0x1e0608=_0x212388===null||_0x212388===void 0x0?void 0x0:_0x212388[_0x40c17e(0x1e2)]();if(!_0x1e0608)return _0x298daf;const _0x85e148=(_0x1c2936=this['_univerInstanceService'][_0x40c17e(0x10f)](_0x47897e))===null||_0x1c2936===void 0x0?void 0x0:_0x1c2936['getSheetBySheetId'](_0xd4fc7c);if(!_0x85e148)return _0x298daf;const _0x1e363a=(0x0,_univerjs_sheets_ui[_0x40c17e(0x3e6)])(_0x1e0608[_0x40c17e(0x34f)],_0x1e0608['sheetViewStartColumn'],_0x38848b[_0x40c17e(0x1cf)],_0x85e148);if(!_0x1e363a)return _0x298daf;return{'x':_0x1e363a['viewportScrollX'],'y':_0x1e363a['viewportScrollY']};}[_0x48b1be(0x5d5)](_0x54b181,_0x28a9e7){const _0xcf1c60=_0x48b1be;var _0x59f8d0,_0x57fbd2;const _0x5c4a3f=(_0x59f8d0=this['_univerInstanceService'][_0xcf1c60(0x10f)](_0x54b181))===null||_0x59f8d0===void 0x0?void 0x0:_0x59f8d0[_0xcf1c60(0x37a)](_0x28a9e7);return(_0x57fbd2=_0x5c4a3f===null||_0x5c4a3f===void 0x0?void 0x0:_0x5c4a3f[_0xcf1c60(0x25b)]())!==null&&_0x57fbd2!==void 0x0?_0x57fbd2:0x1;}[_0x48b1be(0x27c)](_0x2cbf09,_0x2e63d3,_0x3a0f23,_0xe0a248,_0x301bbe){const _0x1ef770=_0x48b1be;this[_0x1ef770(0x66b)][_0x1ef770(0x4e2)](),this[_0x1ef770(0x519)]['unsubscribe'](),this[_0x1ef770(0x58c)][_0x1ef770(0x15e)]();const _0x516614=this[_0x1ef770(0x3df)];this[_0x1ef770(0x146)][_0x1ef770(0x1fd)]();const _0x26afd2=this[_0x1ef770(0x2d8)](this[_0x1ef770(0x5ae)],this[_0x1ef770(0x36d)]),_0x1b522c=this[_0x1ef770(0x5d5)](this['_unitId'],this[_0x1ef770(0x36d)]),_0x2fb46a={'x':_0x3a0f23[_0x1ef770(0x61c)]/_0x1b522c+_0x26afd2['x'],'y':_0x3a0f23['offsetY']/_0x1b522c+_0x26afd2['y']},_0x46c625=_0x516614?_0x516614[_0x1ef770(0x3bf)]:_0x2fb46a,_0x4484c9=_0xe0a248?this[_0x1ef770(0x520)]['getEndConnectInfo']():this[_0x1ef770(0x520)]['getStartConnectInfo'](),_0x1d060d=this['_activeShapeModel'][_0x1ef770(0x607)]();if(!_0x4484c9)this['_handleFreeEndpointPointerUp'](_0x2e63d3,_0x46c625,_0xe0a248,_0x516614,_0x301bbe,_0x1d060d);else this[_0x1ef770(0x54d)](_0x4484c9,_0x46c625,_0xe0a248,_0x516614,_0x301bbe);this['_isConnecting']=![],this[_0x1ef770(0x52e)]=![],this['_currentConnectionTarget']=null,_0x2cbf09[_0x1ef770(0x386)]();}['_handleFreeEndpointPointerUp'](_0xccfaeb,_0xa3cf4b,_0x445578,_0x3e4afb,_0x55e215,_0x1eff8d){const _0x2c38f4=_0x48b1be,_0x15113e=_0x1eff8d===_univerjs_pro_engine_shape['ShapeTypeEnum']['Line']||_0x1eff8d===_univerjs_pro_engine_shape[_0x2c38f4(0x515)][_0x2c38f4(0x1ee)],_0x3a07bd=_0x445578?_0xa3cf4b:_0xccfaeb,_0x257265=_0x445578?_0xccfaeb:_0xa3cf4b,_0x255121=this[_0x2c38f4(0x520)]['getConnectorLinePoints'](),_0x5603b2=(0x0,_univerjs_pro_engine_shape[_0x2c38f4(0x40a)])(this[_0x2c38f4(0x520)][_0x2c38f4(0x607)]()),_0x6d3c1e=_univerjs_pro_engine_shape['ConnectorCoordinateTransform']['getBentTypeFromPoints'](_0x255121,_0x5603b2),_0xe97b41=_0x15113e?_univerjs_pro_engine_shape[_0x2c38f4(0x240)][_0x2c38f4(0x1b9)](_0x3a07bd,_0x257265):_univerjs_pro_engine_shape['ConnectorCoordinateTransform'][_0x2c38f4(0x651)](_0xccfaeb,_0xa3cf4b,_0x445578,_0x6d3c1e);if(_0x3e4afb)this['_executeConnectionCommand'](_0xe97b41,_0x3e4afb,_0x445578,_0x55e215);else this[_0x2c38f4(0x57c)](_0xe97b41,_0x55e215);}[_0x48b1be(0x54d)](_0x4fe404,_0x3b47a3,_0x12d81e,_0x53b5e0,_0x82c4da){const _0x359fd8=_0x48b1be,_0x1a8195=this[_0x359fd8(0x3ff)](_0x4fe404);if(!_0x1a8195)return;const _0x1c6be6=_0x53b5e0?_0x53b5e0[_0x359fd8(0x2ed)]:this['_calculateFreeEndpointAngle'](_0x1a8195[_0x359fd8(0x2c2)],_0x3b47a3);let _0x58829c;if(_0x53b5e0){const _0x117d7a=this[_0x359fd8(0x307)]['getDrawingByParam']({'unitId':_0x53b5e0[_0x359fd8(0x1ab)],'subUnitId':_0x53b5e0[_0x359fd8(0x4dc)],'drawingId':_0x53b5e0['shapeId']});if(_0x117d7a===null||_0x117d7a===void 0x0?void 0x0:_0x117d7a[_0x359fd8(0x649)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x1960ef}=_0x117d7a[_0x359fd8(0x649)];_0x58829c=(0x0,_univerjs_pro_engine_shape[_0x359fd8(0x20d)])({'left':left,'top':top,'width':width,'height':height},_0x1960ef||0x0);}else _0x58829c={'left':_0x3b47a3['x'],'top':_0x3b47a3['y'],'width':0x0,'height':0x0};}else _0x58829c={'left':_0x3b47a3['x'],'top':_0x3b47a3['y'],'width':0x0,'height':0x0};const _0x36a7cb={'point':_0x3b47a3,'angle':_0x1c6be6,'bounds':_0x58829c},_0x26ddf5=_0x12d81e?_0x36a7cb:_0x1a8195,_0x1b0946=_0x12d81e?_0x1a8195:_0x36a7cb,_0x4a6bc1=this['_activeShapeModel'][_0x359fd8(0x607)](),_0x44edf7=(0x0,_univerjs_pro_engine_shape[_0x359fd8(0x3f3)])(_0x26ddf5,_0x1b0946,_0x4a6bc1);this[_0x359fd8(0x520)][_0x359fd8(0x2f9)]();const _0x71b08=(0x0,_univerjs_pro_engine_shape[_0x359fd8(0x275)])(_0x44edf7,_0x4a6bc1);if(_0x53b5e0)this[_0x359fd8(0x5a8)](_0x71b08,_0x53b5e0,_0x4fe404,_0x12d81e,_0x82c4da);else this[_0x359fd8(0x42a)](_0x71b08,_0x4fe404,_0x12d81e,_0x82c4da);}[_0x48b1be(0x3e7)](_0x2fba17,_0x5b779c,_0x58a634,_0x4053fb){const _0x835d80=_0x48b1be,_0x4a248b=this[_0x835d80(0x520)][_0x835d80(0x260)]()['relation'],_0xe4ca5={..._0x4a248b},_0x4faa0e={'shapeId':_0x5b779c['shapeId'],'cxnIndex':_0x5b779c['cxnIndex']};if(_0x58a634)_0xe4ca5[_0x835d80(0x54e)]=_0x4faa0e;else _0xe4ca5['to']=_0x4faa0e;const _0x488c01=this[_0x835d80(0x520)][_0x835d80(0x607)](),_0x1ca06d=(0x0,_univerjs_pro_engine_shape[_0x835d80(0x275)])(_0x2fba17['worldPoints'],_0x488c01),_0x22d239={'unitId':this[_0x835d80(0x5ae)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x835d80(0x55c)],'width':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x3c7)],'height':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x613)],'left':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x450)],'top':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x566)],'flipX':_0x2fba17[_0x835d80(0x1be)][_0x835d80(0x5b1)]||![],'flipY':_0x2fba17['worldRect'][_0x835d80(0x285)]||![],'newAdjustValues':_0x1ca06d[_0x835d80(0x66c)],'oldAdjustValues':_0x4053fb,'oldRelation':_0x4a248b,'newRelation':_0xe4ca5,'newLineType':_0x1ca06d['lineType'],'oldLineType':_0x488c01};this[_0x835d80(0x1c8)][_0x835d80(0x636)](_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id'],_0x22d239);}['_executeResizeCommand'](_0x329670,_0x4971e3){const _0x62c7a2=_0x48b1be,_0x525dfb=this[_0x62c7a2(0x520)][_0x62c7a2(0x607)](),_0x5405ee=(0x0,_univerjs_pro_engine_shape[_0x62c7a2(0x275)])(_0x329670['worldPoints'],_0x525dfb),_0x2f3395={'unitId':this[_0x62c7a2(0x5ae)],'subUnitId':this[_0x62c7a2(0x36d)],'shapeId':this[_0x62c7a2(0x55c)],'width':_0x329670['worldRect'][_0x62c7a2(0x3c7)],'height':_0x329670[_0x62c7a2(0x1be)]['height'],'left':_0x329670[_0x62c7a2(0x1be)][_0x62c7a2(0x450)],'top':_0x329670[_0x62c7a2(0x1be)][_0x62c7a2(0x566)],'flipX':_0x329670[_0x62c7a2(0x1be)][_0x62c7a2(0x5b1)]||![],'flipY':_0x329670[_0x62c7a2(0x1be)][_0x62c7a2(0x285)]||![],'angle':_0x329670['worldRect'][_0x62c7a2(0x2ed)]||0x0,'newAdjustValues':_0x5405ee[_0x62c7a2(0x66c)],'oldAdjustValues':_0x4971e3,'newLineType':_0x5405ee[_0x62c7a2(0x45e)],'oldLineType':_0x525dfb};this[_0x62c7a2(0x1c8)][_0x62c7a2(0x636)](_univerjs_pro_sheets_shape[_0x62c7a2(0x2af)]['id'],_0x2f3395);}[_0x48b1be(0x5a8)](_0x54b5c6,_0x10ca3c,_0x133b96,_0x2735d3,_0x4902fb){const _0xf900c6=_0x48b1be,_0x52501c=this['_activeShapeModel'][_0xf900c6(0x260)]()['relation'],_0x415cbf={..._0x52501c},_0x5559d7={'shapeId':_0x10ca3c['shapeId'],'cxnIndex':_0x10ca3c[_0xf900c6(0x293)]};_0x2735d3?(_0x415cbf['from']=_0x5559d7,_0x415cbf['to']=_0x133b96):(_0x415cbf['from']=_0x133b96,_0x415cbf['to']=_0x5559d7);const _0x151954={'unitId':this[_0xf900c6(0x5ae)],'subUnitId':this[_0xf900c6(0x36d)],'connectorShapeId':this[_0xf900c6(0x55c)],'width':_0x54b5c6[_0xf900c6(0x1be)][_0xf900c6(0x3c7)],'height':_0x54b5c6[_0xf900c6(0x1be)]['height'],'left':_0x54b5c6['worldRect']['left'],'top':_0x54b5c6[_0xf900c6(0x1be)][_0xf900c6(0x566)],'flipX':_0x54b5c6['worldRect']['flipX']||![],'flipY':_0x54b5c6[_0xf900c6(0x1be)][_0xf900c6(0x285)]||![],'oldAdjustValues':_0x4902fb,'newAdjustValues':_0x54b5c6[_0xf900c6(0x66c)],'newLineType':_0x54b5c6[_0xf900c6(0x45e)],'rotation':_0x54b5c6[_0xf900c6(0x583)],'oldRelation':_0x52501c,'newRelation':_0x415cbf};this['_commandService']['executeCommand'](_univerjs_pro_sheets_shape[_0xf900c6(0x1bc)]['id'],_0x151954);}[_0x48b1be(0x42a)](_0x3b06c4,_0x28ef12,_0x1ab910,_0x29f049){const _0x316992=_0x48b1be,_0x4cb9a9=this[_0x316992(0x520)][_0x316992(0x260)]()[_0x316992(0x3e1)],_0x1ae70c={};_0x1ab910?(_0x1ae70c['to']=_0x28ef12,_0x1ae70c['from']=void 0x0):(_0x1ae70c[_0x316992(0x54e)]=_0x28ef12,_0x1ae70c['to']=void 0x0);const _0x9b283a={'unitId':this[_0x316992(0x5ae)],'subUnitId':this[_0x316992(0x36d)],'connectorShapeId':this[_0x316992(0x55c)],'width':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x3c7)],'height':_0x3b06c4[_0x316992(0x1be)]['height'],'left':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x450)],'top':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x566)],'flipX':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x5b1)]||![],'flipY':_0x3b06c4[_0x316992(0x1be)][_0x316992(0x285)]||![],'oldAdjustValues':_0x29f049,'newAdjustValues':_0x3b06c4['adjustValues'],'newLineType':_0x3b06c4[_0x316992(0x45e)],'rotation':_0x3b06c4[_0x316992(0x583)],'oldRelation':_0x4cb9a9,'newRelation':_0x1ae70c};this[_0x316992(0x1c8)][_0x316992(0x636)](_univerjs_pro_sheets_shape[_0x316992(0x1bc)]['id'],_0x9b283a);}[_0x48b1be(0x596)](_0x5de049,_0xdf8173,_0x2ad0a8){const _0x5273be=_0x48b1be;this[_0x5273be(0x47f)]((0x0,_univerjs_core['toDisposable'])(_0x5de049[_0x5273be(0x3bd)][_0x5273be(0x595)]((_0x58545b,_0x2b8dc1)=>{const _0x1b7600=_0x5273be,_0x389c39=_0x5de049[_0x1b7600(0x647)]();this[_0x1b7600(0x520)]=this[_0x1b7600(0x5d9)][_0x1b7600(0x36e)](_0x389c39[_0x1b7600(0x1ab)],_0x389c39[_0x1b7600(0x4dc)],_0x389c39['drawingId']);if(!this['_activeShapeModel'])return;const _0xa81cc7={};this[_0x1b7600(0x520)][_0x1b7600(0x445)]()[_0x1b7600(0x4e1)](_0x58e524=>{const _0x5765c5=_0x1b7600,_0x152556=this['_activeShapeModel'][_0x5765c5(0x336)](_0x58e524);if(_0x152556!==void 0x0)_0xa81cc7[_0x58e524]=_0x152556;});const _0x5dddfa=this[_0x1b7600(0x29e)]();if(!_0x5dddfa)return;this['_baseDrawingRect']={..._0x5dddfa};const _0x4a4fc1=new _univerjs_pro_engine_shape[(_0x1b7600(0x240))](this[_0x1b7600(0x1e1)]),_0x25caee=(0x0,_univerjs_drawing[_0x1b7600(0x1e7)])({'unitId':this[_0x1b7600(0x5ae)],'subUnitId':this[_0x1b7600(0x36d)],'drawingId':this['_activeShapeId']}),_0x5abf0a=_0xdf8173['getObjectIncludeInGroup'](_0x25caee);this[_0x1b7600(0x58f)]=!![],_0xdf8173['disableObjectsEvent'](),this[_0x1b7600(0x146)]['startConnectionDetection'](_0xdf8173,this[_0x1b7600(0x5ae)],this[_0x1b7600(0x36d)],this['_activeShapeId']),this['_currentConnectionTarget']=null;const _0x8db01d=this['_activeShapeModel'][_0x1b7600(0x129)](),_0xaa6a8c=_0x8db01d[0x0],_0xe14ad6=_0x8db01d[_0x8db01d[_0x1b7600(0x42d)]-0x1],_0x3134a4=_0x2ad0a8?_0x4a4fc1[_0x1b7600(0x2f3)](_0xe14ad6):_0x4a4fc1[_0x1b7600(0x2f3)](_0xaa6a8c);this['_cxtHandlerPointerMove']=_0xdf8173[_0x1b7600(0x276)]['subscribeEvent']((_0x23fd17,_0x58b77b)=>{const _0x4ea65c=_0x1b7600;if(!this['_isConnecting']||!this[_0x4ea65c(0x520)])return;!this[_0x4ea65c(0x52e)]&&(this[_0x4ea65c(0x58c)][_0x4ea65c(0x545)](),this[_0x4ea65c(0x520)][_0x4ea65c(0x5ca)](),this[_0x4ea65c(0x52e)]=!![]);const _0x509c51=this[_0x4ea65c(0x2d8)](this[_0x4ea65c(0x5ae)],this[_0x4ea65c(0x36d)]),_0x1e8b99=this[_0x4ea65c(0x5d5)](this[_0x4ea65c(0x5ae)],this[_0x4ea65c(0x36d)]),_0x46d77a={'x':_0x23fd17[_0x4ea65c(0x61c)]/_0x1e8b99+_0x509c51['x'],'y':_0x23fd17[_0x4ea65c(0x50c)]/_0x1e8b99+_0x509c51['y']},_0xc1c222=this[_0x4ea65c(0x146)]['updateConnectionDetection'](_0x46d77a);if(_0xc1c222){const {shapeId:_0xac493d,unitId:_0x1b3665,subUnitId:_0x44a114}=_0xc1c222;if(_0xac493d&&_0x1b3665&&_0x44a114){const _0x399582=(0x0,_univerjs_drawing[_0x4ea65c(0x1e7)])({'unitId':_0x1b3665,'subUnitId':_0x44a114,'drawingId':_0xac493d});_0xc1c222['angle']=(_0xdf8173[_0x4ea65c(0x492)](_0x399582)[_0x4ea65c(0x2ed)]||0x0)+_0xc1c222[_0x4ea65c(0x2ed)];}}this['_currentConnectionTarget']=_0xc1c222;const _0x478b4d=_0x2ad0a8?this[_0x4ea65c(0x520)][_0x4ea65c(0x17b)]():this['_activeShapeModel'][_0x4ea65c(0x606)]();if(_0x478b4d){this[_0x4ea65c(0x135)](_0x478b4d,_0x46d77a,_0x2ad0a8,_0x5abf0a,_0x5de049);return;}this[_0x4ea65c(0x116)](_0x46d77a,_0x3134a4,_0x2ad0a8,_0x5abf0a,_0x5de049);}),this[_0x1b7600(0x519)]=_0xdf8173[_0x1b7600(0x45d)]['subscribeEvent']((_0xc31952,_0x4d6001)=>{const _0x54e190=_0x1b7600;this[_0x54e190(0x27c)](_0xdf8173,_0x3134a4,_0xc31952,_0x2ad0a8,_0xa81cc7);}),_0x2b8dc1['stopPropagation']();})));}[_0x48b1be(0x193)](_0x367038,_0x2af32f,_0x5e4517){const _0x2abadf=_0x48b1be,_0x46d885=this[_0x2abadf(0x5d9)]['getBasicShapeRelation'](_0x367038,_0x2af32f,_0x5e4517);if(!_0x46d885||_0x46d885[_0x2abadf(0x42d)]===0x0)return;const _0xc28ad8=this[_0x2abadf(0x1cb)][_0x2abadf(0x11a)](_0x367038);if(!_0xc28ad8)return;const {scene:_0x1e0094}=_0xc28ad8;for(const _0x57ba72 of _0x46d885){const _0x426807=_0x57ba72[_0x2abadf(0x301)],_0x11f73d=this[_0x2abadf(0x5d9)][_0x2abadf(0x36e)](_0x367038,_0x2af32f,_0x426807);if(!_0x11f73d)continue;const _0x27810d=_0x11f73d['getStartConnectInfo'](),_0x381109=_0x11f73d[_0x2abadf(0x17b)](),_0x38a284=(_0x27810d===null||_0x27810d===void 0x0?void 0x0:_0x27810d['shapeId'])===_0x5e4517,_0x19f249=(0x0,_univerjs_drawing[_0x2abadf(0x1e7)])({'unitId':_0x367038,'subUnitId':_0x2af32f,'drawingId':_0x426807}),_0x445e82=_0x1e0094[_0x2abadf(0x492)](_0x19f249);if(!_0x445e82)continue;const _0x206695=this[_0x2abadf(0x307)][_0x2abadf(0x251)]({'unitId':_0x367038,'subUnitId':_0x2af32f,'drawingId':_0x426807});if(!(_0x206695===null||_0x206695===void 0x0?void 0x0:_0x206695[_0x2abadf(0x649)]))continue;if(_0x27810d&&_0x381109)this[_0x2abadf(0x3d9)](_0x367038,_0x2af32f,_0x426807,_0x11f73d,_0x27810d,_0x381109,_0x445e82);else this[_0x2abadf(0x471)](_0x367038,_0x2af32f,_0x426807,_0x11f73d,_0x38a284?_0x27810d:_0x381109,_0x38a284,_0x206695,_0x445e82);}}[_0x48b1be(0x3d9)](_0x27fbe3,_0x313b77,_0x207e8e,_0x5ad7c6,_0x264009,_0x45d1ca,_0x39cca0){const _0x1b0b6b=_0x48b1be,_0x5d0c78=this[_0x1b0b6b(0x5ae)],_0x46441a=this[_0x1b0b6b(0x36d)];this[_0x1b0b6b(0x5ae)]=_0x27fbe3,this['_subUnitId']=_0x313b77;const _0x415c93=this[_0x1b0b6b(0x3ff)](_0x264009),_0x5d976c=this[_0x1b0b6b(0x3ff)](_0x45d1ca);this[_0x1b0b6b(0x5ae)]=_0x5d0c78,this[_0x1b0b6b(0x36d)]=_0x46441a;if(!_0x415c93||!_0x5d976c)return;const _0x1efdb4=_0x5ad7c6['getShapeType'](),_0x8bff04=(0x0,_univerjs_pro_engine_shape[_0x1b0b6b(0x3f3)])(_0x415c93,_0x5d976c,_0x1efdb4);if(_0x8bff04)_0x5ad7c6['updateLinePoints'](_0x8bff04);const _0x2aaca4=(0x0,_univerjs_pro_engine_shape[_0x1b0b6b(0x275)])(_0x8bff04,_0x1efdb4);if(_0x2aaca4[_0x1b0b6b(0x45e)]!==_0x1efdb4)_0x5ad7c6['changeShapeType'](_0x2aaca4[_0x1b0b6b(0x45e)]);_0x5ad7c6[_0x1b0b6b(0x5ca)]();for(const [_0x306453,_0x1008ae]of Object['entries'](_0x2aaca4['adjustValues']))_0x5ad7c6[_0x1b0b6b(0x177)](_0x306453,_0x1008ae);_0x5ad7c6['updateContext']({'width':_0x2aaca4[_0x1b0b6b(0x1be)][_0x1b0b6b(0x3c7)],'height':_0x2aaca4[_0x1b0b6b(0x1be)]['height']}),_0x39cca0['transformByState']({'flipX':_0x2aaca4['worldRect']['flipX'],'flipY':_0x2aaca4['worldRect'][_0x1b0b6b(0x285)],'left':_0x2aaca4[_0x1b0b6b(0x1be)][_0x1b0b6b(0x450)],'top':_0x2aaca4[_0x1b0b6b(0x1be)][_0x1b0b6b(0x566)],'width':_0x2aaca4[_0x1b0b6b(0x1be)][_0x1b0b6b(0x3c7)],'height':_0x2aaca4['worldRect']['height'],'angle':_0x2aaca4['rotation']}),_0x5ad7c6[_0x1b0b6b(0x2f9)]();}[_0x48b1be(0x471)](_0xe24fc7,_0x62128d,_0x590a01,_0x260de9,_0x5f7e58,_0x1e0323,_0x205ec6,_0x1d7937){const _0x421628=_0x48b1be,_0x15a4d2=this[_0x421628(0x5ae)],_0x34e14e=this[_0x421628(0x36d)];this['_unitId']=_0xe24fc7,this[_0x421628(0x36d)]=_0x62128d;const _0xe5155b=this[_0x421628(0x3ff)](_0x5f7e58);this[_0x421628(0x5ae)]=_0x15a4d2,this[_0x421628(0x36d)]=_0x34e14e;if(!_0xe5155b)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x205ec6[_0x421628(0x649)],_0x53d76a=_0x260de9['getConnectorLinePoints']();if(_0x53d76a[_0x421628(0x42d)]<0x2)return;const _0x3b707e=new _univerjs_pro_engine_shape[(_0x421628(0x240))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x4a1437=_0x1e0323?_0x53d76a[_0x53d76a[_0x421628(0x42d)]-0x1]:_0x53d76a[0x0],_0x3decaf=_0x3b707e[_0x421628(0x2f3)](_0x4a1437),_0x16a953=_univerjs_pro_engine_shape[_0x421628(0x240)][_0x421628(0x651)](_0x3decaf,_0xe5155b['point'],!_0x1e0323);_0x1d7937[_0x421628(0x2b4)]({'flipX':_0x16a953[_0x421628(0x1be)][_0x421628(0x5b1)],'flipY':_0x16a953[_0x421628(0x1be)][_0x421628(0x285)],'left':_0x16a953[_0x421628(0x1be)][_0x421628(0x450)],'top':_0x16a953['worldRect'][_0x421628(0x566)],'width':_0x16a953[_0x421628(0x1be)][_0x421628(0x3c7)],'height':_0x16a953['worldRect']['height'],'angle':_0x16a953['worldRect'][_0x421628(0x2ed)]}),_0x1d7937[_0x421628(0x2d4)](!![]);}[_0x48b1be(0x4f3)](){const _0x26f4e2=_0x48b1be;if(this[_0x26f4e2(0x21a)]['length']===0x0)return;this['_connectorObjects']['forEach'](_0x45b899=>{_0x45b899['dispose']();}),this[_0x26f4e2(0x21a)]=[];}[_0x48b1be(0x178)](){const _0x23af17=_0x48b1be,_0x146c97=this[_0x23af17(0x36a)][_0x23af17(0x5a1)](_univerjs_core['UniverInstanceType'][_0x23af17(0x5a6)]);this[_0x23af17(0x47f)](_0x146c97[_0x23af17(0x560)]((0x0,rxjs[_0x23af17(0x49d)])(_0x35455c=>{const _0x4ff951=_0x23af17;if(!_0x35455c)return rxjs[_0x4ff951(0x256)];return _0x35455c[_0x4ff951(0x419)][_0x4ff951(0x560)]((0x0,rxjs['switchMap'])(_0x239636=>{const _0x4519bd=_0x4ff951;if(!_0x239636)return rxjs[_0x4519bd(0x256)];const _0x341988=_0x35455c[_0x4519bd(0x53f)](),_0x2d926f=this[_0x4519bd(0x1cb)]['getRenderById'](_0x341988),_0x2b5d47=_0x2d926f===null||_0x2d926f===void 0x0?void 0x0:_0x2d926f[_0x4519bd(0x1cf)];if(!_0x2b5d47)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x2b5d47);}));}))[_0x23af17(0x22b)](_0x5b4598=>{const _0x3bde6d=_0x23af17,_0x2b3aa8=_0x5b4598['getTransformerByCreate']();this[_0x3bde6d(0x47f)](_0x5b4598[_0x3bde6d(0x276)]['subscribeEvent'](_0x2394b2=>{const _0x42db5d=_0x3bde6d;if(this['_isDrawingShapePointDown']&&this[_0x42db5d(0x55c)])this[_0x42db5d(0x4f3)]();})),this[_0x3bde6d(0x47f)](_0x2b3aa8[_0x3bde6d(0x19f)][_0x3bde6d(0x22b)](_0x424ea5=>{const _0x5083a1=_0x3bde6d,{objects:_0x35b33f}=_0x424ea5;this[_0x5083a1(0x4f3)]();if(_0x35b33f!==null&&_0x35b33f[_0x5083a1(0x36c)]===0x1){if(_0x35b33f[_0x5083a1(0x209)]()[_0x5083a1(0x194)]()['value']instanceof DrawingShape)this[_0x5083a1(0x143)]=!![];}})),this['disposeWithMe'](_0x2b3aa8[_0x3bde6d(0x339)]['subscribe'](_0x45ea8f=>{const _0x5b9446=_0x3bde6d;if(this[_0x5b9446(0x143)])this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x5b4598[_0x3bde6d(0x45d)][_0x3bde6d(0x595)](()=>{const _0x4ea99c=_0x3bde6d;this['_isDrawingShapePointDown']&&(this[_0x4ea99c(0x143)]=![],this[_0x4ea99c(0x39f)]());})),this[_0x3bde6d(0x47f)](_0x2b3aa8[_0x3bde6d(0x43c)][_0x3bde6d(0x22b)](()=>{const _0x33a539=_0x3bde6d;this[_0x33a539(0x5ae)]&&this[_0x33a539(0x36d)]&&this[_0x33a539(0x55c)]&&(this[_0x33a539(0x307)][_0x33a539(0x251)]({'unitId':this['_unitId'],'subUnitId':this[_0x33a539(0x36d)],'drawingId':this[_0x33a539(0x55c)]})&&(this[_0x33a539(0x4f3)](),this[_0x33a539(0x39f)]()));}));}));}[_0x48b1be(0x582)](){const _0x20895f=_0x48b1be;this[_0x20895f(0x47f)](this[_0x20895f(0x307)][_0x20895f(0x16e)][_0x20895f(0x22b)](_0x1d4193=>{const _0x4a06aa=_0x20895f;if(_0x1d4193['length']===0x1){const _0x3e9e91=_0x1d4193[0x0];if(_0x3e9e91['drawingType']===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']){const _0x434983=this[_0x4a06aa(0x5d9)][_0x4a06aa(0x36e)](_0x3e9e91[_0x4a06aa(0x1ab)],_0x3e9e91[_0x4a06aa(0x4dc)],_0x3e9e91[_0x4a06aa(0x4cb)]);if(_0x434983&&(0x0,_univerjs_pro_engine_shape[_0x4a06aa(0x5fb)])(_0x434983['getShapeType']())){this[_0x4a06aa(0x55c)]=_0x3e9e91[_0x4a06aa(0x4cb)],this['_unitId']=_0x3e9e91[_0x4a06aa(0x1ab)],this['_subUnitId']=_0x3e9e91[_0x4a06aa(0x4dc)],this[_0x4a06aa(0x4f3)](),this[_0x4a06aa(0x39f)]();return;}}}this[_0x4a06aa(0x55c)]=void 0x0,this['_unitId']=void 0x0,this[_0x4a06aa(0x36d)]=void 0x0,this[_0x4a06aa(0x4f3)]();})),this[_0x20895f(0x47f)](this[_0x20895f(0x307)]['update$'][_0x20895f(0x22b)](_0x3f8a93=>{const _0x174d54=_0x20895f;if(_0x3f8a93[_0x174d54(0x42d)]===0x1){var _0x13cb4a;const _0x55da7b=_0x3f8a93[0x0],_0x3666db=(_0x13cb4a=this['_drawingManagerService']['getDrawingByParam'](_0x55da7b))===null||_0x13cb4a===void 0x0?void 0x0:_0x13cb4a[_0x174d54(0x2b0)];if(_0x3666db===_univerjs_core['DrawingTypeEnum'][_0x174d54(0x614)]&&_0x55da7b[_0x174d54(0x4cb)]===this[_0x174d54(0x55c)])this[_0x174d54(0x4f3)](),this[_0x174d54(0x39f)]();else{if(!this[_0x174d54(0x55c)]&&_0x3666db===_univerjs_core[_0x174d54(0x45a)][_0x174d54(0x614)])this[_0x174d54(0x193)](_0x55da7b[_0x174d54(0x1ab)],_0x55da7b[_0x174d54(0x4dc)],_0x55da7b[_0x174d54(0x4cb)]);}}})),this[_0x20895f(0x47f)](this['_drawingManagerService'][_0x20895f(0x201)]['subscribe'](_0x3e32e2=>{const _0x12c887=_0x20895f;for(const _0x4d19e4 of _0x3e32e2){const {drawingId:_0x450252}=_0x4d19e4;if(this[_0x12c887(0x55c)]===_0x450252){this[_0x12c887(0x5b6)]();return;}}}));}[_0x48b1be(0x135)](_0x24666d,_0x112e96,_0x1d285b,_0x1b8d0b,_0x528508){const _0x37be41=_0x48b1be;var _0x515227,_0x49d1ed;if(!this['_activeShapeModel'])return;const _0x137327=this['_getConnectPointInfo'](_0x24666d);if(!_0x137327)return;const _0x4936a1=this[_0x37be41(0x3df)]?this['_currentConnectionTarget'][_0x37be41(0x3bf)]:_0x112e96,_0x42d9f3=this[_0x37be41(0x3df)]?this['_currentConnectionTarget'][_0x37be41(0x2ed)]:this['_calculateFreeEndpointAngle'](_0x137327[_0x37be41(0x2c2)],_0x4936a1);let _0x283975;if(this[_0x37be41(0x3df)]){const _0x30275e=this[_0x37be41(0x307)][_0x37be41(0x251)]({'unitId':this[_0x37be41(0x3df)][_0x37be41(0x1ab)],'subUnitId':this[_0x37be41(0x3df)][_0x37be41(0x4dc)],'drawingId':this[_0x37be41(0x3df)]['shapeId']});if(_0x30275e===null||_0x30275e===void 0x0?void 0x0:_0x30275e[_0x37be41(0x649)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x143f2b}=_0x30275e[_0x37be41(0x649)];_0x283975=(0x0,_univerjs_pro_engine_shape[_0x37be41(0x20d)])({'left':left,'top':top,'width':width,'height':height},_0x143f2b||0x0);}else _0x283975={'left':_0x4936a1['x'],'top':_0x4936a1['y'],'width':0x0,'height':0x0};}else _0x283975={'left':_0x4936a1['x'],'top':_0x4936a1['y'],'width':0x0,'height':0x0};const _0x5d3f54={'point':_0x4936a1,'angle':_0x42d9f3,'bounds':_0x283975},_0x5467a5=_0x1d285b?_0x5d3f54:_0x137327,_0x2622fb=_0x1d285b?_0x137327:_0x5d3f54,_0x224550=this[_0x37be41(0x520)][_0x37be41(0x607)](),_0x18135b=(0x0,_univerjs_pro_engine_shape[_0x37be41(0x3f3)])(_0x5467a5,_0x2622fb,_0x224550);console[_0x37be41(0x4dd)](_0x5467a5,_0x2622fb);if(_0x18135b)this[_0x37be41(0x520)]['updateLinePoints'](_0x18135b);const _0x1e8a85=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x18135b,_0x224550);if(_0x1e8a85[_0x37be41(0x45e)]!==_0x224550)this[_0x37be41(0x520)][_0x37be41(0x28b)](_0x1e8a85[_0x37be41(0x45e)]);for(const [_0x2308bc,_0x4b9fcc]of Object[_0x37be41(0x52c)](_0x1e8a85[_0x37be41(0x66c)]))this[_0x37be41(0x520)][_0x37be41(0x177)](_0x2308bc,_0x4b9fcc);this[_0x37be41(0x520)][_0x37be41(0x3ce)]({'width':_0x1e8a85['worldRect'][_0x37be41(0x3c7)],'height':_0x1e8a85[_0x37be41(0x1be)][_0x37be41(0x613)]}),_0x1b8d0b[_0x37be41(0x2b4)]({'flipX':_0x1e8a85[_0x37be41(0x1be)][_0x37be41(0x5b1)],'flipY':_0x1e8a85['worldRect']['flipY'],'left':_0x1e8a85[_0x37be41(0x1be)][_0x37be41(0x450)],'top':_0x1e8a85[_0x37be41(0x1be)]['top'],'width':_0x1e8a85[_0x37be41(0x1be)][_0x37be41(0x3c7)],'height':_0x1e8a85[_0x37be41(0x1be)]['height'],'angle':_0x1e8a85['rotation']}),_0x1b8d0b[_0x37be41(0x2d4)](!![]);const _0x31e838=(_0x515227=(_0x49d1ed=this[_0x37be41(0x3df)])===null||_0x49d1ed===void 0x0?void 0x0:_0x49d1ed[_0x37be41(0x3bf)])!==null&&_0x515227!==void 0x0?_0x515227:_0x112e96;_0x528508[_0x37be41(0x2b4)]({'left':_0x31e838['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x31e838['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x37be41(0x5e2)]});}['_handleFreeEndpointMove'](_0x50f93d,_0x21264f,_0x58f7da,_0x58c604,_0x2beb6d){const _0x2ac697=_0x48b1be;var _0x40efb5,_0x3da539,_0x1863bd,_0x37a88e;const _0x42479d=(_0x40efb5=(_0x3da539=this[_0x2ac697(0x3df)])===null||_0x3da539===void 0x0?void 0x0:_0x3da539[_0x2ac697(0x3bf)])!==null&&_0x40efb5!==void 0x0?_0x40efb5:_0x50f93d,_0xad4d60=_univerjs_pro_engine_shape[_0x2ac697(0x240)][_0x2ac697(0x651)](_0x21264f,_0x42479d,_0x58f7da);_0x58c604[_0x2ac697(0x2b4)]({'flipX':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x5b1)],'flipY':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x285)],'left':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x450)],'top':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x566)],'width':_0xad4d60['worldRect']['width'],'height':_0xad4d60['worldRect'][_0x2ac697(0x613)],'angle':_0xad4d60[_0x2ac697(0x1be)][_0x2ac697(0x2ed)]});const _0x1a6317=(_0x1863bd=(_0x37a88e=this[_0x2ac697(0x3df)])===null||_0x37a88e===void 0x0?void 0x0:_0x37a88e[_0x2ac697(0x3bf)])!==null&&_0x1863bd!==void 0x0?_0x1863bd:_0x50f93d;_0x2beb6d[_0x2ac697(0x2b4)]({'left':_0x1a6317['x']-_univerjs_pro_engine_shape[_0x2ac697(0x5ff)]['cxnPointRadius'],'top':_0x1a6317['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x2ac697(0x5e2)]});}[_0x48b1be(0x3ff)](_0x5283e6){const _0x5ca7df=_0x48b1be;if(!this[_0x5ca7df(0x5ae)]||!this[_0x5ca7df(0x36d)])return null;const {shapeId:_0x29a65f,cxnIndex:_0x572426}=_0x5283e6,_0x3d511a=this[_0x5ca7df(0x5d9)][_0x5ca7df(0x36e)](this['_unitId'],this[_0x5ca7df(0x36d)],_0x29a65f);if(!_0x3d511a)return null;const _0x4835f6=this[_0x5ca7df(0x307)][_0x5ca7df(0x251)]({'unitId':this[_0x5ca7df(0x5ae)],'subUnitId':this['_subUnitId'],'drawingId':_0x29a65f});if(!(_0x4835f6===null||_0x4835f6===void 0x0?void 0x0:_0x4835f6[_0x5ca7df(0x649)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x5c0493}=_0x4835f6['transform'];_0x3d511a[_0x5ca7df(0x3ce)]({'width':width,'height':height});const _0x59c56f=_0x3d511a['getConnectionSiteList']()['find'](_0x45534d=>_0x45534d[_0x5ca7df(0x343)]===_0x572426);if(!_0x59c56f)return null;let _0x38f872=flipX?width-_0x59c56f['x']:_0x59c56f['x'],_0x452a6f=flipY?height-_0x59c56f['y']:_0x59c56f['y'];if(_0x5c0493!==0x0&&_0x5c0493!==void 0x0&&_0x5c0493!==null){const _0x172778=_0x5c0493*Math['PI']/0xb4,_0xd96eb8=Math[_0x5ca7df(0x548)](_0x172778),_0x28d83e=Math[_0x5ca7df(0x539)](_0x172778),_0x4ae720=width/0x2,_0xbdb873=height/0x2,_0x101d79=_0x38f872-_0x4ae720,_0x3112ff=_0x452a6f-_0xbdb873;_0x38f872=_0x4ae720+_0x101d79*_0xd96eb8-_0x3112ff*_0x28d83e,_0x452a6f=_0xbdb873+_0x101d79*_0x28d83e+_0x3112ff*_0xd96eb8;}_0x38f872+=left,_0x452a6f+=top;let _0x415196=_0x59c56f[_0x5ca7df(0x578)]/0xea60;if(flipX)_0x415196=0xb4-_0x415196;if(flipY)_0x415196=-_0x415196;_0x415196+=_0x5c0493||0x0,_0x415196=(_0x415196%0x168+0x168)%0x168;const _0x5acb32=(0x0,_univerjs_pro_engine_shape[_0x5ca7df(0x20d)])({'left':left,'top':top,'width':width,'height':height},_0x5c0493||0x0);return{'point':{'x':_0x38f872,'y':_0x452a6f},'angle':_0x415196,'bounds':_0x5acb32};}[_0x48b1be(0x41d)](_0x4f9109,_0x390ea5){const _0x3d8bd7=_0x48b1be,_0x22b20e=_0x390ea5['x']-_0x4f9109['x'],_0x7a145b=_0x390ea5['y']-_0x4f9109['y'];if(Math[_0x3d8bd7(0x28c)](_0x22b20e)>=Math[_0x3d8bd7(0x28c)](_0x7a145b))return _0x22b20e>=0x0?0xb4:0x0;else return _0x7a145b>=0x0?0x10e:0x5a;}[_0x48b1be(0x5b6)](){const _0x320ab8=_0x48b1be;this['_activeShapeId']=void 0x0,this[_0x320ab8(0x5ae)]=void 0x0,this[_0x320ab8(0x36d)]=void 0x0,this[_0x320ab8(0x4f3)]();}[_0x48b1be(0x570)](){const _0x4d9ac8=_0x48b1be;this[_0x4d9ac8(0x4f3)](),super[_0x4d9ac8(0x570)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core['ICommandService']),__decorateParam(0x2,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x3,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x4,_univerjs_core[_0x48b1be(0x1d2)]),__decorateParam(0x5,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_pro_sheets_shape[_0x48b1be(0x475)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x48b1be(0x13d)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x48b1be(0x13d)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x48b1be(0x5bb)]{constructor(_0x503fe6,_0xf3e71f,_0x3fd566){const _0x572329=_0x48b1be;super(),this[_0x572329(0x1c8)]=_0x503fe6,this[_0x572329(0x502)]=_0xf3e71f,this[_0x572329(0x340)]=_0x3fd566,this[_0x572329(0x271)]();}[_0x48b1be(0x271)](){const _0x4b9f3f=_0x48b1be;this[_0x4b9f3f(0x47f)](this['_commandService']['beforeCommandExecuted'](_0x1128c9=>{const _0x455d1f=_0x4b9f3f;let _0x459d97,_0x5e39d4;if(_0x1128c9['id']===_univerjs_pro_sheets_shape[_0x455d1f(0x537)]['id']||_0x1128c9['id']===_univerjs_pro_sheets_shape['SetShapeDrawingDataCommand']['id']||_0x1128c9['id']===_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id']){const _0x4b8f7b=_0x1128c9[_0x455d1f(0x37c)];_0x459d97=_0x4b8f7b[_0x455d1f(0x1ab)],_0x5e39d4=_0x4b8f7b[_0x455d1f(0x4dc)];}if(!_0x459d97||!_0x5e39d4)return;if(!this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x455d1f(0x3ae)]],'worksheetTypes':[_univerjs_sheets[_0x455d1f(0x267)]]},_0x459d97,_0x5e39d4))this[_0x455d1f(0x340)][_0x455d1f(0x44a)](this[_0x455d1f(0x502)]['t'](_0x455d1f(0x211)));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_core['ICommandService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_core[_0x48b1be(0x319)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x48b1be(0x22e)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x15c9f5){const _0x37235f=_0x48b1be,{containerWidth:_0x57280c,containerHeight:_0x42b81f,scaleX:_0x8cdc13,scaleY:_0x1ba90c}=_0x15c9f5,_0x56fafb=_0x8cdc13||0x1,_0x20c122=_0x1ba90c||0x1,_0x921ee4=(0x0,_univerjs_ui[_0x37235f(0x425)])(ShapeTextEditingService),_0x386052=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_docs_ui[_0x37235f(0x1b3)]),_0x531379=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_engine_render[_0x37235f(0x1df)]),_0x18936a=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_core['IUniverInstanceService']),_0x3a32c9=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing[_0x37235f(0x618)]),_0x4ab3d4=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_pro_sheets_shape[_0x37235f(0x475)]),_0x167e33=(0x0,_univerjs_ui[_0x37235f(0x425)])(_univerjs_core[_0x37235f(0x621)]),_0x42291f=(0x0,_univerjs_ui[_0x37235f(0x305)])(_0x921ee4['editingParams$']),_0x34de67=(0x0,_univerjs_ui[_0x37235f(0x305)])(_0x921ee4[_0x37235f(0x531)]),_0x1d6f36=(0x0,react[_0x37235f(0x540)])(null),_0x22ae38=(0x0,react[_0x37235f(0x540)])(null),_0x447cb7=(0x0,react[_0x37235f(0x540)])(null),_0x2f3e74=(0x0,react['useRef'])(null),_0x466137=(0x0,react[_0x37235f(0x540)])(null),_0x13b3e2=(0x0,react['useRef'])(null),[_0x3fa36e,_0x5e90d9]=(0x0,react[_0x37235f(0x47b)])({'editorHeight':_0x42b81f,'marginTop':0x0,'useAbsolutePosition':![]}),_0x3b88dc=(0x0,react[_0x37235f(0x2f6)])(_0x23b937=>{queueMicrotask(()=>{_0x5e90d9(_0x23b937);});},[]),_0xfaa398=(0x0,react[_0x37235f(0x2f6)])(()=>{const _0x3977f7=_0x37235f;return _0x18936a['getUnit'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core[_0x3977f7(0x617)][_0x3977f7(0x5e8)]);},[_0x18936a]),_0x548ea4=(0x0,react['useCallback'])(()=>{const _0x39e289=_0x37235f;var _0x39e257;const _0x3b420e=_0x56fafb,_0x59de10=_0x20c122;if(!_0x42291f)return{'scaleAdjust':0x1,'renderScaleX':_0x3b420e,'renderScaleY':_0x59de10};const _0x26e735=_0x531379[_0x39e289(0x11a)](_0x42291f[_0x39e289(0x1ab)]),_0x291da7=_0x26e735===null||_0x26e735===void 0x0?void 0x0:_0x26e735[_0x39e289(0x1cf)]['getAncestorScale'](),_0x5a41d1=_0x26e735===null||_0x26e735===void 0x0?void 0x0:_0x26e735[_0x39e289(0x13f)]['getCanvasElement'](),_0x4f4a64=_0x5a41d1?Number['parseFloat'](_0x5a41d1[_0x39e289(0x21d)][_0x39e289(0x3c7)]||''):0x0,_0x54da72=(_0x39e257=_0x5a41d1===null||_0x5a41d1===void 0x0?void 0x0:_0x5a41d1[_0x39e289(0x3f5)]()[_0x39e289(0x3c7)])!==null&&_0x39e257!==void 0x0?_0x39e257:0x0,_0x2e6fc3=_0x4f4a64>0x0&&_0x54da72>0x0?_0x54da72/_0x4f4a64:0x1;return{'scaleAdjust':Number[_0x39e289(0x2ac)](_0x2e6fc3)&&_0x2e6fc3>0x0?_0x2e6fc3:0x1,'renderScaleX':(_0x291da7===null||_0x291da7===void 0x0?void 0x0:_0x291da7['scaleX'])||_0x3b420e,'renderScaleY':(_0x291da7===null||_0x291da7===void 0x0?void 0x0:_0x291da7[_0x39e289(0x443)])||_0x59de10};},[_0x56fafb,_0x20c122,_0x42291f,_0x531379]),_0x2b1778=(0x0,react[_0x37235f(0x2f6)])(()=>{const _0x46965b=_0x37235f;if(!_0x42291f)return{'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122};const {unitId:_0x11213e,subUnitId:_0x2ed94d,shapeId:_0x4cc625}=_0x42291f,_0x1c1f6c=_0x4ab3d4[_0x46965b(0x36e)](_0x11213e,_0x2ed94d,_0x4cc625);if(!_0x1c1f6c)return{'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122};const _0x124784={'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122};return _0x1c1f6c['getShapeTextRect'](_0x124784);},[_0x42291f,_0x57280c,_0x42b81f,_0x56fafb,_0x20c122,_0x4ab3d4]),_0x206243=(0x0,react['useCallback'])(()=>{const _0x29cece=_0x37235f;if(!_0x42291f)return null;const {unitId:_0x2fd867,subUnitId:_0x6636d7,shapeId:_0x45b5d9}=_0x42291f,_0x3e631f=_0x4ab3d4['getShapeModel'](_0x2fd867,_0x6636d7,_0x45b5d9);if(!_0x3e631f)return null;const _0x59c092=_0x3e631f[_0x29cece(0x48f)]();if(!_0x59c092)return null;const _0x5894ea={'unitId':_0x2fd867,'subUnitId':_0x6636d7,'drawingId':_0x45b5d9},_0x8c20ae=_0x3a32c9[_0x29cece(0x251)](_0x5894ea);let _0x4bb472={'angle':0x0,'flipX':![],'flipY':![]};if(_0x8c20ae&&_0x8c20ae[_0x29cece(0x649)])_0x4bb472=_0x8c20ae['transform'];const _0x2786b9={'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122},_0x4b7b3b=_0x3e631f[_0x29cece(0x3ca)](_0x2786b9);let _0x3546b4,_0x2929df=_univerjs_core[_0x29cece(0x226)][_0x29cece(0xfd)],_0x48cc23=_univerjs_core[_0x29cece(0x400)][_0x29cece(0x63f)];if(_0x29cece(0x31a)in _0x59c092&&_0x59c092[_0x29cece(0x31a)]){var _0x50367b,_0x5d9d24;const _0xe8498d=_0x59c092[_0x29cece(0x31a)];if(_0xe8498d===null||_0xe8498d===void 0x0?void 0x0:_0xe8498d[_0x29cece(0x106)])_0x3546b4=_0xe8498d['doc'];_0x2929df=(_0x50367b=_0xe8498d===null||_0xe8498d===void 0x0?void 0x0:_0xe8498d['va'])!==null&&_0x50367b!==void 0x0?_0x50367b:_univerjs_core[_0x29cece(0x226)][_0x29cece(0xfd)],_0x48cc23=(_0x5d9d24=_0xe8498d===null||_0xe8498d===void 0x0?void 0x0:_0xe8498d['ha'])!==null&&_0x5d9d24!==void 0x0?_0x5d9d24:_univerjs_core[_0x29cece(0x400)]['LEFT'];}return{'doc':_0x3546b4,'verticalAlign':_0x2929df,'horizontalAlign':_0x48cc23,'textRect':_0x4b7b3b,'transform':_0x4bb472,'isHorizontal':_0x59c092[_0x29cece(0x1ed)]};},[_0x42291f,_0x4ab3d4,_0x3a32c9,_0x57280c,_0x42b81f,_0x56fafb,_0x20c122]),_0x162b9b=(0x0,react[_0x37235f(0x470)])(()=>{const _0x39dac7=_0x37235f,_0x229f6b=_0x206243();if(_0x229f6b===null||_0x229f6b===void 0x0?void 0x0:_0x229f6b[_0x39dac7(0x106)])return prepareShapeTextDocumentData(_0x229f6b[_0x39dac7(0x106)],{'isHorizontal':!![],'textRect':_0x229f6b[_0x39dac7(0x481)],'verticalAlign':_0x229f6b[_0x39dac7(0x131)],'horizontalAlign':_0x229f6b[_0x39dac7(0x1a8)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x57280c/_0x56fafb,'height':Infinity}}};},[_0x206243,_0x57280c,_0x56fafb]),_0x5ac0bc=(0x0,_univerjs_docs_ui[_0x37235f(0x569)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x162b9b,'container':_0x22ae38,'autoFocus':![],'isSingle':![]}),_0x1fe809=(0x0,_univerjs_docs_ui['useIsFocusing'])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x37235f(0x1cd)])(_0x1fe809,{'keyCodes':[{'keyCode':_univerjs_ui[_0x37235f(0x442)]['ENTER']}],'handler':()=>{const _0x5023af=_0x37235f;_0x167e33[_0x5023af(0x636)](_univerjs_docs_ui[_0x5023af(0x529)]['id']);}},_0x5ac0bc),(0x0,_univerjs_docs_ui[_0x37235f(0x15d)])(_0x1fe809,![],_0x5ac0bc);const _0x1e1920=(0x0,react['useCallback'])((_0x47625f=!![])=>{const _0x414cf3=_0x37235f;var _0x5064de,_0x30cf0f,_0x49a920;if(!_0x5ac0bc)return;const _0x5307b5=_0x5ac0bc[_0x414cf3(0x605)]()['find'](_0x5220f2=>_0x5220f2[_0x414cf3(0x465)]),_0x2d6bf2=((_0x5064de=(_0x30cf0f=_0x5ac0bc[_0x414cf3(0x1d4)]()[_0x414cf3(0x3f6)])===null||_0x30cf0f===void 0x0?void 0x0:_0x30cf0f['dataStream'][_0x414cf3(0x42d)])!==null&&_0x5064de!==void 0x0?_0x5064de:0x2)-0x2,_0xfb0a03=(_0x49a920=_0x5307b5===null||_0x5307b5===void 0x0?void 0x0:_0x5307b5['startOffset'])!==null&&_0x49a920!==void 0x0?_0x49a920:_0x47625f?_0x2d6bf2:null;if(_0xfb0a03===null)return;_0x5ac0bc[_0x414cf3(0x312)]([{'startOffset':_0xfb0a03,'endOffset':_0xfb0a03}],![]);},[_0x5ac0bc]),_0x2dd5e2=(0x0,react[_0x37235f(0x2f6)])(()=>{const _0x211035=_0x37235f;_0x466137['current']!==null&&(cancelAnimationFrame(_0x466137[_0x211035(0x611)]),_0x466137[_0x211035(0x611)]=null),_0x13b3e2[_0x211035(0x611)]!==null&&(window[_0x211035(0x216)](_0x13b3e2[_0x211035(0x611)]),_0x13b3e2[_0x211035(0x611)]=null);},[]),_0x3609a7=(0x0,react[_0x37235f(0x2f6)])(()=>{const _0x2c651a=_0x37235f;var _0x245b88,_0x2e539f,_0x13e3a7;if(!_0x5ac0bc)return;const _0x544ffe=_0x531379[_0x2c651a(0x11a)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x504a6c=_0x544ffe===null||_0x544ffe===void 0x0?void 0x0:_0x544ffe['with'](_univerjs_docs['DocSkeletonManagerService']);if(!_0x504a6c)return;const _0x541e3e=_0x504a6c[_0x2c651a(0x192)](),_0x5cde68=_0xfaa398(),{renderScaleX:_0x2c07b2,renderScaleY:_0x5586b0,scaleAdjust:_0xbf9e4}=_0x548ea4(),_0x37f312=_0x206243(),_0x4c4df0=(_0x245b88=_0x37f312===null||_0x37f312===void 0x0?void 0x0:_0x37f312[_0x2c651a(0x131)])!==null&&_0x245b88!==void 0x0?_0x245b88:_univerjs_core[_0x2c651a(0x226)][_0x2c651a(0xfd)],_0xc5ffed=(_0x2e539f=_0x37f312===null||_0x37f312===void 0x0?void 0x0:_0x37f312[_0x2c651a(0x1a8)])!==null&&_0x2e539f!==void 0x0?_0x2e539f:_univerjs_core[_0x2c651a(0x400)][_0x2c651a(0x63f)],_0x5e5367=(_0x13e3a7=_0x2b1778())!==null&&_0x13e3a7!==void 0x0?_0x13e3a7:{'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122};_0x5cde68&&(_0x5cde68[_0x2c651a(0x51f)](Math[_0x2c651a(0x47e)](_0x2c07b2,_0x5586b0)),_0x5cde68['updateDocumentStyle']({'pageSize':{'width':_0x5e5367[_0x2c651a(0x3c7)],'height':Infinity}}),_0x5cde68['updateDocumentRenderConfig']({'verticalAlign':_0x4c4df0,'horizontalAlign':_0xc5ffed,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x2c651a(0x302)][_0x2c651a(0x401)]}));_0x541e3e[_0x2c651a(0x5ac)]();const {actualHeight:_0x332ba7}=_0x541e3e[_0x2c651a(0x2b7)](),_0x1bc8cd=_0x5e5367[_0x2c651a(0x613)];let _0x589903=_0x1bc8cd,_0x3b1d4b=0x0;if(_0x332ba7<=_0x1bc8cd){if(_0x4c4df0===_univerjs_core[_0x2c651a(0x226)][_0x2c651a(0x128)])_0x3b1d4b=(_0x1bc8cd-_0x332ba7)/0x2;else{if(_0x4c4df0===_univerjs_core[_0x2c651a(0x226)][_0x2c651a(0x403)])_0x3b1d4b=_0x1bc8cd-_0x332ba7;}_0x589903=_0x1bc8cd,_0x3b88dc({'editorHeight':_0x5e5367[_0x2c651a(0x613)]*_0x20c122,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x31fdbe=0x0;if(_0x4c4df0===_univerjs_core[_0x2c651a(0x226)]['MIDDLE'])_0x31fdbe=(_0x1bc8cd-_0x332ba7)/0x2;else{if(_0x4c4df0===_univerjs_core[_0x2c651a(0x226)][_0x2c651a(0x403)])_0x31fdbe=_0x1bc8cd-_0x332ba7;}_0x3b1d4b=0x0,_0x3b88dc({'editorHeight':_0x332ba7*_0x20c122,'marginTop':_0x31fdbe*_0x20c122,'useAbsolutePosition':!![]}),_0x589903=_0x332ba7;}_0x5cde68&&(_0x5cde68['updateDocumentStyle']({'pageSize':{'width':_0x5e5367[_0x2c651a(0x3c7)],'height':_0x589903}}),_0x5cde68['updateDocumentDataMargin']({'t':_0x3b1d4b}),_0x541e3e[_0x2c651a(0x5ac)]());if(_0x544ffe){const _0x1272df=_0x5e5367['width']*_0x56fafb,_0xe2e2b9=_0x589903*_0x20c122;_0x544ffe['scene'][_0x2c651a(0x2b4)]({'width':_0x1272df*_0xbf9e4/_0x2c07b2,'height':_0xe2e2b9*_0xbf9e4/_0x5586b0,'scaleX':_0x2c07b2*_0xbf9e4,'scaleY':_0x5586b0*_0xbf9e4});if(_0x544ffe['mainComponent'])_0x544ffe[_0x2c651a(0x164)]['resize'](_0x1272df*_0xbf9e4/_0x2c07b2,_0xe2e2b9*_0xbf9e4/_0x5586b0);}},[_0x5ac0bc,_0x531379,_0xfaa398,_0x548ea4,_0x206243,_0x2b1778,_0x57280c,_0x42b81f,_0x56fafb,_0x20c122,_0x3b88dc]),_0x57d152=(0x0,react[_0x37235f(0x2f6)])((_0x2b2812=![])=>{const _0x6a582e=_0x37235f;_0x2dd5e2(),_0x466137[_0x6a582e(0x611)]=requestAnimationFrame(()=>{const _0x490658=_0x6a582e;_0x3609a7();if(_0x2b2812)_0x1e1920(![]);_0x466137['current']=null,_0x13b3e2['current']=window[_0x490658(0x4e4)](()=>{const _0x2e3c04=_0x490658;_0x3609a7();if(_0x2b2812)_0x1e1920(![]);_0x13b3e2[_0x2e3c04(0x611)]=null;},0x14);});},[_0x3609a7,_0x2dd5e2,_0x1e1920]);(0x0,react['useEffect'])(()=>{const _0x42aa74=_0x37235f;if(!_0x5ac0bc||!_0x42291f)return;const {shapeId:_0x17b97e,unitId:_0x4e8202,subUnitId:_0xc51d05}=_0x42291f;if(_0x34de67){var _0x5ac385,_0x278f40,_0x5e4684,_0x411c22;const _0x325a88=stripShapeTextDocumentLayout(_0x5ac0bc[_0x42aa74(0x1d4)]()),_0xa8f6f0=_0x206243(),_0x2ed41b={'va':(_0x5ac385=_0xa8f6f0===null||_0xa8f6f0===void 0x0?void 0x0:_0xa8f6f0[_0x42aa74(0x131)])!==null&&_0x5ac385!==void 0x0?_0x5ac385:_univerjs_core[_0x42aa74(0x226)][_0x42aa74(0xfd)],'ha':(_0x278f40=_0xa8f6f0===null||_0xa8f6f0===void 0x0?void 0x0:_0xa8f6f0[_0x42aa74(0x1a8)])!==null&&_0x278f40!==void 0x0?_0x278f40:_univerjs_core[_0x42aa74(0x400)][_0x42aa74(0x63f)],'doc':_0x325a88};_0x167e33[_0x42aa74(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0x4e8202,'subUnitId':_0xc51d05,'shapeId':_0x17b97e,'shapeData':{'shapeText':{'isHorizontal':(_0x5e4684=_0xa8f6f0===null||_0xa8f6f0===void 0x0?void 0x0:_0xa8f6f0[_0x42aa74(0x1ed)])!==null&&_0x5e4684!==void 0x0?_0x5e4684:!![],'dataModel':_0x2ed41b}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x411c22=_0xa8f6f0===null||_0xa8f6f0===void 0x0?void 0x0:_0xa8f6f0[_0x42aa74(0x1ed)])!==null&&_0x411c22!==void 0x0?_0x411c22:!![],'dataModel':_0x447cb7[_0x42aa74(0x611)]}}}});return;}const _0x4ac49b=_0x206243();if(_0x4ac49b===null||_0x4ac49b===void 0x0?void 0x0:_0x4ac49b[_0x42aa74(0x106)]){_0x447cb7['current']={'va':_0x4ac49b[_0x42aa74(0x131)],'ha':_0x4ac49b['horizontalAlign'],'doc':_univerjs_core[_0x42aa74(0x1f7)]['deepClone'](_0x4ac49b['doc'])};const _0xf63c13=prepareShapeTextDocumentData(_0x4ac49b[_0x42aa74(0x106)],{'isHorizontal':!![],'textRect':_0x4ac49b[_0x42aa74(0x481)],'verticalAlign':_0x4ac49b[_0x42aa74(0x131)],'horizontalAlign':_0x4ac49b[_0x42aa74(0x1a8)]});return _0x5ac0bc[_0x42aa74(0x1ae)](_0xf63c13,null),()=>{const _0x2339df=_0x42aa74;var _0x1652e0,_0x48eb19,_0x319100,_0xdf957e;const _0x177397=stripShapeTextDocumentLayout(_0x5ac0bc['getDocumentData']()),_0x23af13=_0x206243(),_0x54f339={'va':(_0x1652e0=_0x23af13===null||_0x23af13===void 0x0?void 0x0:_0x23af13[_0x2339df(0x131)])!==null&&_0x1652e0!==void 0x0?_0x1652e0:_univerjs_core['VerticalAlign'][_0x2339df(0xfd)],'ha':(_0x48eb19=_0x23af13===null||_0x23af13===void 0x0?void 0x0:_0x23af13['horizontalAlign'])!==null&&_0x48eb19!==void 0x0?_0x48eb19:_univerjs_core[_0x2339df(0x400)]['LEFT'],'doc':_0x177397};_0x167e33[_0x2339df(0x636)](UpdateShapeDataCommand['id'],{'unitId':_0x4e8202,'subUnitId':_0xc51d05,'shapeId':_0x17b97e,'shapeData':{'shapeText':{'isHorizontal':(_0x319100=_0x23af13===null||_0x23af13===void 0x0?void 0x0:_0x23af13[_0x2339df(0x1ed)])!==null&&_0x319100!==void 0x0?_0x319100:!![],'dataModel':_0x54f339}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0xdf957e=_0x23af13===null||_0x23af13===void 0x0?void 0x0:_0x23af13['isHorizontal'])!==null&&_0xdf957e!==void 0x0?_0xdf957e:!![],'dataModel':_0x447cb7[_0x2339df(0x611)]}}}});};}else _0x5ac0bc[_0x42aa74(0x1ae)](_0x162b9b,null);},[_0x5ac0bc,_0x42291f,_0x34de67]),(0x0,react[_0x37235f(0x551)])(()=>{const _0x1c1117=_0x37235f;if(!_0x5ac0bc||!_0x42291f)return;return _0x386052[_0x1c1117(0x252)](!![]),_0x3609a7(),_0x2f3e74[_0x1c1117(0x611)]=requestAnimationFrame(()=>{const _0x117c4a=_0x1c1117;_0x386052[_0x117c4a(0x517)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x1e1920(),_0x57d152(),_0x2f3e74[_0x117c4a(0x611)]=null;}),()=>{const _0x384a4a=_0x1c1117;_0x2f3e74[_0x384a4a(0x611)]!==null&&(cancelAnimationFrame(_0x2f3e74['current']),_0x2f3e74[_0x384a4a(0x611)]=null),_0x2dd5e2(),_0x386052[_0x384a4a(0x252)](!![]);};},[_0x5ac0bc,_0x42291f,_0x386052,_0x3609a7,_0x1e1920,_0x57d152,_0x2dd5e2]),(0x0,react[_0x37235f(0x551)])(()=>{const _0x23d8a2=_0x37235f;if(!_0x5ac0bc)return;const _0x1bda26=_0x167e33[_0x23d8a2(0x2a8)](_0x6001ff=>{const _0x2afc72=_0x23d8a2;if(_0x6001ff['id']===_univerjs_docs[_0x2afc72(0x50d)]['id']){if(_0x6001ff[_0x2afc72(0x37c)]['unitId']===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x42291f){if(!_0x42291f[_0x2afc72(0x16f)])_0x921ee4[_0x2afc72(0x431)]({..._0x42291f,'visible':!![]});else _0x3609a7();}}}if(_0x6001ff['id']===SetShapeTextVerticalAlignCommand['id'])_0x57d152(!![]);});return()=>{_0x1bda26['dispose']();};},[_0x5ac0bc,_0x3609a7,_0x42291f,_0x57d152,_0x921ee4]),(0x0,react[_0x37235f(0x551)])(()=>{return _0x3609a7(),_0x57d152(),()=>{_0x2dd5e2();};},[_0x3609a7,_0x57d152,_0x2dd5e2]);const _0x29b940=(0x0,react[_0x37235f(0x470)])(()=>{const _0x1689b6=_0x37235f;var _0x47f0d0;const _0xfce8d1=(_0x47f0d0=_0x2b1778())!==null&&_0x47f0d0!==void 0x0?_0x47f0d0:{'left':0x0,'top':0x0,'width':_0x57280c/_0x56fafb,'height':_0x42b81f/_0x20c122},_0x3e2e40=_0xfce8d1[_0x1689b6(0x450)]*_0x56fafb,_0x531da6=_0xfce8d1['top']*_0x20c122,_0x3adb01=_0xfce8d1[_0x1689b6(0x3c7)]*_0x56fafb;if(_0x3fa36e[_0x1689b6(0x1cc)])return{'top':_0x531da6+_0x3fa36e[_0x1689b6(0x34b)],'left':_0x3e2e40,'width':_0x3adb01,'height':_0x3fa36e[_0x1689b6(0x11d)]};return{'top':_0x531da6,'left':_0x3e2e40,'width':_0x3adb01,'height':_0x3fa36e[_0x1689b6(0x11d)]};},[_0x3fa36e,_0x2b1778,_0x57280c,_0x42b81f,_0x56fafb,_0x20c122]),_0x2e5e96=(0x0,react[_0x37235f(0x470)])(()=>{const _0x23eaf=_0x37235f,_0xb05a90=_0x206243(),_0x44f40b=_0xb05a90===null||_0xb05a90===void 0x0?void 0x0:_0xb05a90[_0x23eaf(0x649)];if(_0x44f40b)return _0x44f40b||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x206243]);return(0x0,react_jsx_runtime[_0x37235f(0x586)])(_0x37235f(0x4b3),{'ref':_0x1d6f36,'data-u-comp':_0x37235f(0x42b),'className':_0x37235f(0x111),'style':{'transform':_0x37235f(0x3e2)+_0x2e5e96['angle']+_0x37235f(0x505)+(_0x2e5e96['flipY']?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x37235f(0x586)])(_0x37235f(0x4b3),{'ref':_0x22ae38,'className':_0x37235f(0x1d1),'data-u-comp':'shape-text-editor-content','style':_0x29b940,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor[_0x48b1be(0x2f2)]=_0x48b1be(0x16b);const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x587de8,_0x56b9fa,_0x2bcae4,_0x43f121){const _0x156ca7=_0x48b1be,{scaleX:_0xdc812e,scaleY:_0x86927d}=_0x2bcae4[_0x156ca7(0x426)](),{startColumn:_0x5c1ea9,startRow:_0xc307e1,xSplit:_0x4846f8,ySplit:_0x534208}=_0x43f121[_0x156ca7(0x2fb)][_0x156ca7(0x4e3)](),_0xe0ee96=_0x2bcae4['getViewport'](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x156ca7(0x394)]),_0x1a42cf=_0x2bcae4[_0x156ca7(0x5eb)](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x156ca7(0x2f8)]),_0x48316e=_0x2bcae4[_0x156ca7(0x5eb)](_univerjs_engine_render[_0x156ca7(0x17d)][_0x156ca7(0x127)]),_0x15cf4f=_0x2bcae4['getViewport'](_univerjs_engine_render[_0x156ca7(0x17d)][_0x156ca7(0x5c9)]),{rowHeaderWidth:_0x2e840b,columnHeaderHeight:_0x2f813d}=_0x43f121,_0x4b7e05=_0x43f121[_0x156ca7(0x4f7)](_0xc307e1)+_0x2f813d,_0x42eb41=_0x43f121[_0x156ca7(0x514)](_0x5c1ea9)+_0x2e840b,_0x2f7726=_0x43f121[_0x156ca7(0x4f7)](_0xc307e1-_0x534208)+_0x2f813d,_0xcb149c=_0x43f121[_0x156ca7(0x514)](_0x5c1ea9-_0x4846f8)+_0x2e840b,_0x1d25b8=[],_0xb093b6=(_0x52d1bb,_0xf7547e,_0x4bbe23)=>{if(!_0x52d1bb)return null;const {viewportScrollX:_0x3d2f8f,viewportScrollY:_0x19f3f7}=_0x52d1bb;let _0x379944,_0x253252;if(_0xf7547e)_0x379944=(_0x587de8-(_0xcb149c-_0x2e840b))*_0xdc812e;else _0x379944=(_0x587de8-_0x3d2f8f)*_0xdc812e;if(_0x4bbe23)_0x253252=(_0x56b9fa-(_0x2f7726-_0x2f813d))*_0x86927d;else _0x253252=(_0x56b9fa-_0x19f3f7)*_0x86927d;return{'domX':_0x379944,'domY':_0x253252};},_0x3b47b8=_0x587de8<_0x42eb41&&_0x4846f8>0x0,_0x40cdef=_0x56b9fa<_0x4b7e05&&_0x534208>0x0,_0x3fb76d=_0x587de8>=_0x42eb41||_0x4846f8===0x0,_0x55f368=_0x56b9fa>=_0x4b7e05||_0x534208===0x0;if(_0x3b47b8&&_0x40cdef&&_0x1a42cf){const _0xce358a=_0xb093b6(_0x1a42cf,!![],!![]);if(_0xce358a)_0x1d25b8['push'](_0xce358a);}if(_0x40cdef&&_0x3fb76d&&_0x48316e){const _0x50bd56=_0xb093b6(_0x48316e,![],!![]);if(_0x50bd56)_0x1d25b8[_0x156ca7(0x5ed)](_0x50bd56);}if(_0x3b47b8&&_0x55f368&&_0x15cf4f){const _0x504c45=_0xb093b6(_0x15cf4f,!![],![]);if(_0x504c45)_0x1d25b8['push'](_0x504c45);}if(_0x3fb76d&&_0x55f368&&_0xe0ee96){const _0x37c212=_0xb093b6(_0xe0ee96,![],![]);if(_0x37c212)_0x1d25b8[_0x156ca7(0x5ed)](_0x37c212);}if(_0x1d25b8[_0x156ca7(0x42d)]===0x0){var _0x421798,_0x4bc975;return{'domX':(_0x587de8-((_0x421798=_0xe0ee96===null||_0xe0ee96===void 0x0?void 0x0:_0xe0ee96['viewportScrollX'])!==null&&_0x421798!==void 0x0?_0x421798:0x0))*_0xdc812e,'domY':(_0x56b9fa-((_0x4bc975=_0xe0ee96===null||_0xe0ee96===void 0x0?void 0x0:_0xe0ee96[_0x156ca7(0x59a)])!==null&&_0x4bc975!==void 0x0?_0x4bc975:0x0))*_0x86927d};}let _0x3cd204=_0x1d25b8[0x0][_0x156ca7(0x60f)],_0x52d102=_0x1d25b8[0x0][_0x156ca7(0x584)];for(const _0x12a381 of _0x1d25b8){if(_0x12a381[_0x156ca7(0x60f)]>_0x3cd204)_0x3cd204=_0x12a381[_0x156ca7(0x60f)];if(_0x12a381[_0x156ca7(0x584)]>_0x52d102)_0x52d102=_0x12a381[_0x156ca7(0x584)];}return{'domX':_0x3cd204,'domY':_0x52d102};}function calcShapePosition(_0x4a357b,_0x1fc890,_0x84b43,_0x510b35,_0x5cdcd9,_0x57ce64,_0x5b81d4){const {scaleX:_0x32f3b3,scaleY:_0x74b1de}=_0x57ce64['getAncestorScale'](),{domX:_0x214932,domY:_0x47629d}=calcBestDOMPositionForFreezeZones(_0x4a357b,_0x1fc890,_0x57ce64,_0x5b81d4);return{'left':_0x214932,'top':_0x47629d,'width':_0x84b43*_0x32f3b3,'height':_0x510b35*_0x74b1de,'angle':_0x5cdcd9,'scaleX':_0x32f3b3,'scaleY':_0x74b1de};}function useShapePosition(_0x4a81db){const _0x32f569=_0x48b1be,{editingParams:_0x4c2848,scene:_0x24cd30,skeleton:_0x545e01,getShapeTransform:_0x4ba268}=_0x4a81db,[_0x2c923f,_0x36ca86]=(0x0,react[_0x32f569(0x47b)])(DEFAULT_HIDDEN_POSITION),_0x442930=(0x0,react['useRef'])(_0x2c923f);_0x442930[_0x32f569(0x611)]=_0x2c923f;const _0x77ce2b=(0x0,react[_0x32f569(0x2f6)])(()=>{const _0x978b82=_0x32f569;if(!_0x4c2848||!_0x24cd30||!_0x545e01){if(_0x442930[_0x978b82(0x611)]!==DEFAULT_HIDDEN_POSITION)_0x36ca86(DEFAULT_HIDDEN_POSITION);return;}const _0x14f976=_0x4ba268();if(!_0x14f976){if(_0x442930[_0x978b82(0x611)]!==DEFAULT_HIDDEN_POSITION)_0x36ca86(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x534835,top:_0x37455e,width:_0x5abbd2,height:_0x20b4c6,angle:_0x166645}=_0x14f976;if(!_0x4c2848['visible']){const {scaleX:_0x40686d,scaleY:_0x2502fd}=_0x24cd30[_0x978b82(0x426)]();_0x36ca86({'left':-0x270f,'top':-0x270f,'width':_0x5abbd2*_0x40686d,'height':_0x20b4c6*_0x2502fd,'angle':0x0,'scaleX':_0x40686d,'scaleY':_0x2502fd});return;}_0x36ca86(calcShapePosition(_0x534835,_0x37455e,_0x5abbd2,_0x20b4c6,_0x166645,_0x24cd30,_0x545e01));},[_0x4c2848,_0x24cd30,_0x545e01,_0x4ba268]);return(0x0,react['useEffect'])(()=>{_0x77ce2b();},[_0x4c2848,_0x77ce2b]),{'position':_0x2c923f,'updatePosition':_0x77ce2b};}const ShapePositionWrapper=(0x0,react[_0x48b1be(0x1dd)])(_0x5ede11=>{const _0x487ce6=_0x48b1be,{children:_0x5acf2a,onPositionUpdate:_0x4880ea}=_0x5ede11,_0x18dcf2=(0x0,react[_0x487ce6(0x540)])(null),_0x3ca181=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x284480=(0x0,_univerjs_ui['useDependency'])(_univerjs_engine_render[_0x487ce6(0x1df)]),_0x4b79ee=(0x0,_univerjs_ui[_0x487ce6(0x305)])(_0x3ca181[_0x487ce6(0x264)]),_0x1ae56a=(0x0,react['useMemo'])(()=>{const _0x3a8f9d=_0x487ce6;if(!_0x4b79ee)return null;return _0x284480[_0x3a8f9d(0x11a)](_0x4b79ee['unitId']);},[_0x4b79ee,_0x284480]),_0x2eea99=(0x0,react[_0x487ce6(0x470)])(()=>{const _0x311449=_0x487ce6;var _0x1cdee2;return(_0x1cdee2=_0x1ae56a===null||_0x1ae56a===void 0x0?void 0x0:_0x1ae56a[_0x311449(0x1cf)])!==null&&_0x1cdee2!==void 0x0?_0x1cdee2:null;},[_0x1ae56a]),{position:_0x3beb1d,updatePosition:_0x1b9208}=useShapePosition({'editingParams':_0x4b79ee,'scene':_0x2eea99,'skeleton':(0x0,react[_0x487ce6(0x470)])(()=>{const _0x4ebbfe=_0x487ce6;var _0x5b29af,_0x360979;if(!_0x4b79ee||!_0x1ae56a)return null;return(_0x5b29af=(_0x360979=_0x1ae56a[_0x4ebbfe(0x26a)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x4ebbfe(0x21e)](_0x4b79ee[_0x4ebbfe(0x4dc)]))===null||_0x360979===void 0x0?void 0x0:_0x360979[_0x4ebbfe(0x110)])!==null&&_0x5b29af!==void 0x0?_0x5b29af:null;},[_0x4b79ee,_0x1ae56a]),'getShapeTransform':(0x0,react[_0x487ce6(0x2f6)])(()=>{const _0x4a6c83=_0x487ce6;if(!_0x4b79ee||!_0x2eea99)return null;const _0x5b1871=_0x4b79ee[_0x4a6c83(0x397)],_0xbfbc9c=_0x2eea99['getObject'](_0x5b1871);if(_0xbfbc9c instanceof DrawingShape)return{'left':_0xbfbc9c[_0x4a6c83(0x450)],'top':_0xbfbc9c[_0x4a6c83(0x566)],'width':_0xbfbc9c[_0x4a6c83(0x3c7)],'height':_0xbfbc9c['height'],'angle':_0xbfbc9c[_0x4a6c83(0x2ed)]};return null;},[_0x4b79ee,_0x2eea99])}),_0x5200aa=(0x0,react[_0x487ce6(0x2f6)])(()=>{const _0x13f8a0=_0x487ce6,_0x84ca8=_0x18dcf2[_0x13f8a0(0x611)];if(!_0x84ca8)return;_0x84ca8[_0x13f8a0(0x21d)][_0x13f8a0(0x450)]=_0x3beb1d[_0x13f8a0(0x450)]+'px',_0x84ca8[_0x13f8a0(0x21d)][_0x13f8a0(0x566)]=_0x3beb1d[_0x13f8a0(0x566)]+'px',_0x84ca8[_0x13f8a0(0x21d)]['width']=_0x3beb1d[_0x13f8a0(0x3c7)]+'px',_0x84ca8[_0x13f8a0(0x21d)][_0x13f8a0(0x613)]=_0x3beb1d[_0x13f8a0(0x613)]+'px';},[_0x3beb1d]);return(0x0,react[_0x487ce6(0x551)])(()=>{const _0x1370e0=_0x487ce6;_0x5200aa(),_0x4880ea===null||_0x4880ea===void 0x0||_0x4880ea({'width':_0x3beb1d[_0x1370e0(0x3c7)],'height':_0x3beb1d['height'],'scaleX':_0x3beb1d[_0x1370e0(0x58e)],'scaleY':_0x3beb1d[_0x1370e0(0x443)]});},[_0x3beb1d,_0x5200aa,_0x4880ea]),(0x0,react[_0x487ce6(0x551)])(()=>{const _0x430c69=_0x487ce6;if(!_0x2eea99)return;const _0x25036c=_0x2eea99['getViewport'](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x430c69(0x394)]);if(!_0x25036c)return;const _0x3f1af7=_0x25036c[_0x430c69(0x4d7)][_0x430c69(0x595)](()=>{_0x1b9208();});return()=>{const _0x381e2b=_0x430c69;_0x3f1af7[_0x381e2b(0x4e2)]();};},[_0x2eea99,_0x1b9208]),(0x0,react[_0x487ce6(0x551)])(()=>{const _0x1df417=_0x487ce6;if(!_0x4b79ee||!_0x2eea99)return;const _0x5d6321=_0x4b79ee['shapeKey'],_0x33e60c=_0x2eea99[_0x1df417(0x390)](_0x5d6321);if(_0x33e60c instanceof DrawingShape){const _0x4ba319=_0x33e60c[_0x1df417(0x4bc)][_0x1df417(0x595)](()=>{_0x1b9208();});return()=>{const _0x326948=_0x1df417;_0x4ba319[_0x326948(0x4e2)]();};}},[_0x4b79ee,_0x2eea99,_0x1b9208]),(0x0,react_jsx_runtime['jsx'])(_0x487ce6(0x4b3),{'ref':_0x18dcf2,'data-u-comp':'shape-text-editor-position-wrapper','className':_0x487ce6(0x344),'style':(0x0,react[_0x487ce6(0x470)])(()=>({'left':_0x3beb1d[_0x487ce6(0x450)],'top':_0x3beb1d[_0x487ce6(0x566)],'width':_0x3beb1d[_0x487ce6(0x3c7)],'height':_0x3beb1d['height'],'pointerEvents':(_0x4b79ee===null||_0x4b79ee===void 0x0?void 0x0:_0x4b79ee[_0x487ce6(0x16f)])?_0x487ce6(0x10b):_0x487ce6(0x40e)}),[_0x3beb1d,_0x4b79ee===null||_0x4b79ee===void 0x0?void 0x0:_0x4b79ee[_0x487ce6(0x16f)]]),'children':_0x5acf2a});});ShapePositionWrapper['displayName']=_0x48b1be(0x3c4);const ShapeTextEditorContainer=(0x0,react['memo'])(()=>{const _0x3f70cf=_0x48b1be,_0x4361b5=(0x0,_univerjs_ui[_0x3f70cf(0x305)])((0x0,_univerjs_ui[_0x3f70cf(0x425)])(ShapeTextEditingService)[_0x3f70cf(0x264)]),[_0xe0273d,_0x4360f0]=(0x0,react[_0x3f70cf(0x47b)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x4fe85c=(0x0,react[_0x3f70cf(0x2f6)])(_0x437881=>{const _0x9ffb70=_0x3f70cf;_0x4360f0({'width':_0x437881[_0x9ffb70(0x3c7)],'height':_0x437881[_0x9ffb70(0x613)],'scaleX':_0x437881[_0x9ffb70(0x58e)],'scaleY':_0x437881['scaleY']});},[]);if(!(_0x4361b5===null||_0x4361b5===void 0x0?void 0x0:_0x4361b5[_0x3f70cf(0x16f)]))return null;return(0x0,react_jsx_runtime[_0x3f70cf(0x586)])(ShapePositionWrapper,{'onPositionUpdate':_0x4fe85c,'children':(0x0,react_jsx_runtime[_0x3f70cf(0x586)])(ShapeEditor,{'containerWidth':_0xe0273d[_0x3f70cf(0x3c7)],'containerHeight':_0xe0273d[_0x3f70cf(0x613)],'scaleX':_0xe0273d[_0x3f70cf(0x58e)],'scaleY':_0xe0273d[_0x3f70cf(0x443)]})});});ShapeTextEditorContainer[_0x48b1be(0x2f2)]='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0x48b1be(0x667)]{constructor(_0x1932a6=defaultPluginConfig,_0x4cf7fa,_0x43f79f,_0x50051a,_0x2f8fbc){const _0xc7ed99=_0x48b1be;super(),this[_0xc7ed99(0x547)]=_0x1932a6,this[_0xc7ed99(0x626)]=_0x4cf7fa,this['_commandService']=_0x43f79f,this['_configService']=_0x50051a,this[_0xc7ed99(0x1cb)]=_0x2f8fbc;const {..._0x31aa21}=(0x0,_univerjs_core[_0xc7ed99(0x436)])({},defaultPluginConfig,this[_0xc7ed99(0x547)]);this['_configService'][_0xc7ed99(0x51e)](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x31aa21),this[_0xc7ed99(0x559)]();}[_0x48b1be(0x62e)](){const _0x3004a4=_0x48b1be;(0x0,_univerjs_core[_0x3004a4(0x64b)])(this[_0x3004a4(0x626)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x48b1be(0x152)](){const _0x3e2737=_0x48b1be;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x3e2737(0x4e1)](_0x567901=>this[_0x3e2737(0x626)][_0x3e2737(0x511)](_0x567901)),(0x0,_univerjs_core['touchDependencies'])(this[_0x3e2737(0x626)],[[SheetShapeClipboardController]]),this[_0x3e2737(0x1cb)][_0x3e2737(0x553)](_univerjs_core['UniverInstanceType'][_0x3e2737(0x5a6)],[SheetBasicShapeConnectionPointController]),this[_0x3e2737(0x1cb)][_0x3e2737(0x553)](_univerjs_core[_0x3e2737(0x617)][_0x3e2737(0x5a6)],[SheetShapeAdjustController]),this[_0x3e2737(0x1cb)][_0x3e2737(0x553)](_univerjs_core[_0x3e2737(0x617)][_0x3e2737(0x5a6)],[ImageClipAdjustController]),this[_0x3e2737(0x1cb)]['registerRenderModule'](_univerjs_core[_0x3e2737(0x617)][_0x3e2737(0x5a6)],[SheetShapeConnectorController]),this[_0x3e2737(0x1cb)][_0x3e2737(0x553)](_univerjs_core[_0x3e2737(0x617)][_0x3e2737(0x5a6)],[ShapeTextEditingRenderController]);}[_0x48b1be(0x5d1)](){const _0x36fa77=_0x48b1be,_0xec942c=this[_0x36fa77(0x626)];_0xec942c['get'](_univerjs_ui[_0x36fa77(0x63d)])[_0x36fa77(0x130)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x36fa77(0x4e1)](_0xcd1522=>_0xec942c[_0x36fa77(0x511)](_0xcd1522)),(0x0,_univerjs_core[_0x36fa77(0x64b)])(this[_0x36fa77(0x626)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x48b1be(0x559)](){const _0x91da2d=_0x48b1be;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x91da2d(0x4e1)](_0x2f6d09=>this['disposeWithMe'](this[_0x91da2d(0x1c8)][_0x91da2d(0x402)](_0x2f6d09)));}};_defineProperty(UniverSheetsShapeUIPlugin,'type',_univerjs_core[_0x48b1be(0x617)][_0x48b1be(0x5a6)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x48b1be(0x56c),_0x48b1be(0x441)),_defineProperty(UniverSheetsShapeUIPlugin,_0x48b1be(0x367),name),_defineProperty(UniverSheetsShapeUIPlugin,_0x48b1be(0x459),version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x48b1be(0x4bb)])(_univerjs_sheets_drawing_ui[_0x48b1be(0x383)],_univerjs_pro_sheets_shape[_0x48b1be(0x3b1)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x48b1be(0x13d)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x48b1be(0x621)]),__decorateParam(0x3,_univerjs_core[_0x48b1be(0x3d8)]),__decorateParam(0x4,_univerjs_engine_render[_0x48b1be(0x1df)])],UniverSheetsShapeUIPlugin),exports[_0x48b1be(0x429)]=SetShapeTextFontSizeCommand,exports[_0x48b1be(0x3b7)]=SetShapeTextFontSizeDecreaseCommand,exports[_0x48b1be(0x576)]=SetShapeTextFontSizeIncreaseCommand,exports[_0x48b1be(0x2a7)]=SetShapeTextHorizontalAlignCommand,exports[_0x48b1be(0x1de)]=SetShapeTextVerticalAlignCommand,exports['ShapeDocAlignCommand']=ShapeDocAlignCommand,Object['defineProperty'](exports,_0x48b1be(0x5a9),{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object['defineProperty'](exports,_0x48b1be(0x5f2),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x48b1be(0x5f9)]=UpdateShapeDataCommand;
1
+ const _0x101898=_0x284a;(function(_0x352b73,_0x135a79){const _0x402414=_0x284a,_0x3299a8=_0x352b73();while(!![]){try{const _0x4be53a=parseInt(_0x402414(0x33b))/0x1*(parseInt(_0x402414(0x420))/0x2)+parseInt(_0x402414(0x5e2))/0x3+parseInt(_0x402414(0x63a))/0x4*(parseInt(_0x402414(0x128))/0x5)+-parseInt(_0x402414(0x1c2))/0x6*(parseInt(_0x402414(0x26e))/0x7)+parseInt(_0x402414(0x4cb))/0x8+-parseInt(_0x402414(0x38d))/0x9+-parseInt(_0x402414(0x4a2))/0xa*(parseInt(_0x402414(0x328))/0xb);if(_0x4be53a===_0x135a79)break;else _0x3299a8['push'](_0x3299a8['shift']());}catch(_0x21606c){_0x3299a8['push'](_0x3299a8['shift']());}}}(_0x458e,0x3fbf5),Object[_0x101898(0x66c)](exports,Symbol[_0x101898(0x48e)],{'value':'Module'}));var __create=Object[_0x101898(0x675)],__defProp=Object[_0x101898(0x66c)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__getOwnPropNames=Object[_0x101898(0x397)],__getProtoOf=Object['getPrototypeOf'],__hasOwnProp=Object[_0x101898(0x551)][_0x101898(0x506)],__copyProps=(_0x544bb0,_0x5ffde0,_0x546b2f,_0x3795d5)=>{const _0x43547d=_0x101898;if(_0x5ffde0&&typeof _0x5ffde0==='object'||typeof _0x5ffde0==='function')for(var _0x5cd772=__getOwnPropNames(_0x5ffde0),_0x23c605=0x0,_0x593234=_0x5cd772[_0x43547d(0x1ec)],_0x7d1d53;_0x23c605<_0x593234;_0x23c605++){_0x7d1d53=_0x5cd772[_0x23c605],!__hasOwnProp[_0x43547d(0x469)](_0x544bb0,_0x7d1d53)&&_0x7d1d53!==_0x546b2f&&__defProp(_0x544bb0,_0x7d1d53,{'get':(_0x2ba192=>_0x5ffde0[_0x2ba192])[_0x43547d(0x2d2)](null,_0x7d1d53),'enumerable':!(_0x3795d5=__getOwnPropDesc(_0x5ffde0,_0x7d1d53))||_0x3795d5[_0x43547d(0x165)]});}return _0x544bb0;},__toESM=(_0x4f358f,_0x1a7b68,_0x5bcdc9)=>(_0x5bcdc9=_0x4f358f!=null?__create(__getProtoOf(_0x4f358f)):{},__copyProps(_0x1a7b68||!_0x4f358f||!_0x4f358f[_0x101898(0x38a)]?__defProp(_0x5bcdc9,_0x101898(0x41d),{'value':_0x4f358f,'enumerable':!![]}):_0x5bcdc9,_0x4f358f));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(_0x4d16d0){'@babel/helpers - typeof';const _0x2c0b68=_0x101898;return _typeof='function'==typeof Symbol&&_0x2c0b68(0x169)==typeof Symbol[_0x2c0b68(0x412)]?function(_0x417a79){return typeof _0x417a79;}:function(_0x229ddb){const _0x48544f=_0x2c0b68;return _0x229ddb&&'function'==typeof Symbol&&_0x229ddb[_0x48544f(0x4a0)]===Symbol&&_0x229ddb!==Symbol[_0x48544f(0x551)]?_0x48544f(0x169):typeof _0x229ddb;},_typeof(_0x4d16d0);}function toPrimitive(_0x632da7,_0x53aa74){const _0x3df2e3=_0x101898;if('object'!=_typeof(_0x632da7)||!_0x632da7)return _0x632da7;var _0xf71df0=_0x632da7[Symbol['toPrimitive']];if(void 0x0!==_0xf71df0){var _0x4a2144=_0xf71df0[_0x3df2e3(0x469)](_0x632da7,_0x53aa74||_0x3df2e3(0x41d));if(_0x3df2e3(0x135)!=_typeof(_0x4a2144))return _0x4a2144;throw new TypeError(_0x3df2e3(0x1ea));}return('string'===_0x53aa74?String:Number)(_0x632da7);}function toPropertyKey(_0x3ddcea){const _0x3b074b=_0x101898;var _0x5d5cc3=toPrimitive(_0x3ddcea,_0x3b074b(0x51a));return _0x3b074b(0x169)==_typeof(_0x5d5cc3)?_0x5d5cc3:_0x5d5cc3+'';}function _defineProperty(_0x54de36,_0x3c3cba,_0x36a614){const _0x2a4865=_0x101898;return(_0x3c3cba=toPropertyKey(_0x3c3cba))in _0x54de36?Object[_0x2a4865(0x66c)](_0x54de36,_0x3c3cba,{'value':_0x36a614,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54de36[_0x3c3cba]=_0x36a614,_0x54de36;}var ShapeTextEditingService=class extends _univerjs_core['Disposable']{constructor(..._0x18f2c6){const _0x464232=_0x101898;super(..._0x18f2c6),_defineProperty(this,'_editingParams$',new rxjs['BehaviorSubject'](null)),_defineProperty(this,_0x464232(0x39d),this['_editingParams$'][_0x464232(0x56f)]()),_defineProperty(this,_0x464232(0x2f0),new rxjs[(_0x464232(0x586))](![])),_defineProperty(this,'onSavingEditorData$',this[_0x464232(0x2f0)][_0x464232(0x56f)]());}[_0x101898(0x3af)](){const _0x555ccf=_0x101898;this[_0x555ccf(0x518)][_0x555ccf(0x119)](null),this[_0x555ccf(0x518)][_0x555ccf(0x1ad)](),this[_0x555ccf(0x2f0)][_0x555ccf(0x119)](![]),this['_onSavingEditorData$'][_0x555ccf(0x1ad)](),super['dispose']();}[_0x101898(0x51b)](_0xf41e7f){const _0x11fd4f=_0x101898;this[_0x11fd4f(0x518)][_0x11fd4f(0x119)](_0xf41e7f);if(_0xf41e7f===null||_0xf41e7f===void 0x0)this['_onSavingEditorData$'][_0x11fd4f(0x119)](![]);}[_0x101898(0x298)](_0x3a1d26){const _0x3bb93e=_0x101898;this['_onSavingEditorData$'][_0x3bb93e(0x119)](_0x3a1d26);}[_0x101898(0x28d)](){const _0x18a50a=_0x101898;return this[_0x18a50a(0x518)]['getValue']();}};function getShapeDataDiff(_0x134d8d,_0x1e6091){const _0x328459=_0x101898,_0x4cff85={};for(const _0x192d73 of Object['keys'](_0x1e6091)){const _0xd2b8ad=_0x1e6091[_0x192d73],_0x2fe2c5=_0x134d8d[_0x192d73];if(_0xd2b8ad===void 0x0)continue;if(_0x2fe2c5===void 0x0){_0x4cff85[_0x192d73]=void 0x0;continue;}if(typeof _0xd2b8ad===_0x328459(0x135)&&_0xd2b8ad!==null&&!Array[_0x328459(0x3f5)](_0xd2b8ad)&&typeof _0x2fe2c5===_0x328459(0x135)&&_0x2fe2c5!==null&&!Array[_0x328459(0x3f5)](_0x2fe2c5))_0x4cff85[_0x192d73]=getShapeDataDiff(_0x2fe2c5,_0xd2b8ad);else _0x4cff85[_0x192d73]=_0x2fe2c5;}return _0x4cff85;}const UpdateShapeDataCommand={'type':_univerjs_core['CommandType'][_0x101898(0x259)],'id':'sheet.command.update-shape-data','handler':(_0x5a97bc,_0x20cc40)=>{const _0x36b40d=_0x101898,_0x241614=_0x5a97bc[_0x36b40d(0x49b)](_univerjs_pro_sheets_shape[_0x36b40d(0x232)]),{unitId:_0x2fe765,subUnitId:_0x476574,shapeType:_0xff2088,shapeId:_0x1768bc,shapeData:_0x41bd7a,oldShapeJSON:_0x596d11}=_0x20cc40;if(!_0x241614['getShapeModel'](_0x2fe765,_0x476574,_0x1768bc))return![];const _0x34f017=_0x5a97bc[_0x36b40d(0x49b)](_univerjs_core[_0x36b40d(0x55c)]),_0x1b3e87=_0x5a97bc[_0x36b40d(0x49b)](_univerjs_core[_0x36b40d(0x354)]),{oldShapeType:_0x56b92a,oldShapeData:_0x1f3db6={}}=_0x596d11,_0x3daa4a=getShapeDataDiff(_0x1f3db6,_0x41bd7a||{}),_0x399234={'id':_univerjs_pro_sheets_shape[_0x36b40d(0x620)]['id'],'params':{'unitId':_0x2fe765,'subUnitId':_0x476574,'shapeId':_0x1768bc,'shapeType':_0xff2088,'shapeData':_0x41bd7a}},_0x2de33a={'id':_univerjs_pro_sheets_shape[_0x36b40d(0x620)]['id'],'params':{'unitId':_0x2fe765,'subUnitId':_0x476574,'shapeId':_0x1768bc,'shapeType':_0x56b92a,'shapeData':_0x3daa4a}};if(_0x34f017[_0x36b40d(0x32e)](_0x399234['id'],_0x399234[_0x36b40d(0x35d)]))return _0x1b3e87[_0x36b40d(0x215)]({'unitID':_0x2fe765,'undoMutations':[_0x2de33a],'redoMutations':[_0x399234]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x259)],'id':_0x101898(0x175),'handler':async(_0x580cbc,_0x4e82a2)=>{const _0x54a33e=_0x101898;var _0xde837e;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x580cbc[_0x54a33e(0x49b)](_univerjs_core['IUniverInstanceService'])))return![];const _0x17f586=_0x580cbc[_0x54a33e(0x49b)](_univerjs_sheets_drawing[_0x54a33e(0x614)])['getFocusDrawings']()[_0x54a33e(0x1f5)](_0x42954e=>_0x42954e[_0x54a33e(0x324)]===_univerjs_core[_0x54a33e(0x229)]['DRAWING_SHAPE']);if(_0x17f586['length']!==0x1)return![];const _0x148cd5=_0x580cbc[_0x54a33e(0x49b)](ShapeTextEditingService)[_0x54a33e(0x28d)](),_0x321d8d=(_0x148cd5===null||_0x148cd5===void 0x0?void 0x0:_0x148cd5[_0x54a33e(0x3aa)])||_0x17f586[0x0][_0x54a33e(0x3aa)],_0x568932=(_0x148cd5===null||_0x148cd5===void 0x0?void 0x0:_0x148cd5[_0x54a33e(0x343)])||_0x17f586[0x0]['subUnitId'],_0x49df23=(_0x148cd5===null||_0x148cd5===void 0x0?void 0x0:_0x148cd5[_0x54a33e(0x49a)])||_0x17f586[0x0][_0x54a33e(0x16c)],_0x1d6e57=_0x580cbc['get'](_univerjs_pro_sheets_shape[_0x54a33e(0x232)])[_0x54a33e(0x148)](_0x321d8d,_0x568932,_0x49df23);if(!_0x1d6e57)return![];const _0xad5b7c=_0x1d6e57[_0x54a33e(0x592)]();if(!_0xad5b7c||!('dataModel'in _0xad5b7c))return![];const _0xf29465=_0x580cbc[_0x54a33e(0x49b)](_univerjs_core[_0x54a33e(0x55c)]),{value:_0x4d47ba}=_0x4e82a2,_0x9ea500=_0x1d6e57[_0x54a33e(0x255)](),_0x19911a=_0x1d6e57['getShapeData'](),_0x30a769={..._0xad5b7c['dataModel'],'ha':_0x4d47ba};return await _0xf29465[_0x54a33e(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x321d8d,'subUnitId':_0x568932,'shapeId':_0x49df23,'shapeType':_0x9ea500,'shapeData':{'shapeText':{'isHorizontal':(_0xde837e=_0xad5b7c[_0x54a33e(0x3ca)])!==null&&_0xde837e!==void 0x0?_0xde837e:!![],'dataModel':_0x30a769}},'oldShapeJSON':{'oldShapeType':_0x9ea500,'oldShapeData':_0x19911a}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x259)],'id':_0x101898(0x1a6),'handler':async(_0x17155a,_0x6e166)=>{const _0x91bf11=_0x101898;var _0x11d485;if(!_0x6e166)return![];const {value:_0x462aaa}=_0x6e166,_0x2ef4d2=_0x17155a['get'](_univerjs_core['ICommandService']),_0x102461=_0x17155a[_0x91bf11(0x49b)](ShapeTextEditingService),_0x18138a=_0x17155a[_0x91bf11(0x49b)](_univerjs_pro_sheets_shape[_0x91bf11(0x232)]),_0x33a0b4=_0x17155a[_0x91bf11(0x49b)](_univerjs_engine_render['IRenderManagerService']),_0x31dbcc=_0x102461[_0x91bf11(0x28d)]();if(!_0x31dbcc)return![];const {unitId:_0x1ff36c,subUnitId:_0x356c3d,shapeId:_0xda7acd}=_0x31dbcc,_0x1ec0b8=_0x18138a[_0x91bf11(0x148)](_0x1ff36c,_0x356c3d,_0xda7acd);if(!_0x1ec0b8)return![];const _0x4f0ffd=_0x1ec0b8[_0x91bf11(0x592)]();if(!_0x4f0ffd||!('dataModel'in _0x4f0ffd))return![];const _0x5db4b6=_0x4f0ffd[_0x91bf11(0x2c7)];if(!_0x5db4b6)return![];const _0x42b4f2={..._0x5db4b6,'fs':_0x462aaa},_0x195e68=await _0x2ef4d2[_0x91bf11(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x1ff36c,'subUnitId':_0x356c3d,'shapeId':_0xda7acd,'shapeData':{'shapeText':{'isHorizontal':(_0x11d485=_0x4f0ffd[_0x91bf11(0x3ca)])!==null&&_0x11d485!==void 0x0?_0x11d485:!![],'dataModel':_0x42b4f2}}});if(_0x195e68){const _0x3cab00=_0x33a0b4['getRenderById'](_0x1ff36c);if(_0x3cab00===null||_0x3cab00===void 0x0?void 0x0:_0x3cab00[_0x91bf11(0x2dc)]){const _0xdf0ac0=(0x0,_univerjs_drawing[_0x91bf11(0x38f)])({'unitId':_0x1ff36c,'subUnitId':_0x356c3d,'drawingId':_0xda7acd}),_0x94240e=_0x3cab00[_0x91bf11(0x2dc)]['getObjectIncludeInGroup'](_0xdf0ac0);if(_0x94240e)_0x94240e[_0x91bf11(0x408)](!![]);}}return _0x195e68;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x259)],'id':'sheet.command.set-shape-text-font-size-increase','handler':async _0xfff571=>{const _0x1a6f45=_0x101898;var _0x5b5a6e;const _0xf2d685=_0xfff571['get'](ShapeTextEditingService),_0x5b7700=_0xfff571[_0x1a6f45(0x49b)](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x1ba4a8=_0xfff571[_0x1a6f45(0x49b)](_univerjs_core[_0x1a6f45(0x55c)]),_0x30f19f=_0xf2d685['getEditing']();if(!_0x30f19f)return![];const {unitId:_0x2b3a35,subUnitId:_0x37c3d5,shapeId:_0x379d3a}=_0x30f19f,_0x1dd894=_0x5b7700['getShapeModel'](_0x2b3a35,_0x37c3d5,_0x379d3a);if(!_0x1dd894)return![];const _0x2efcb2=_0x1dd894[_0x1a6f45(0x592)]();if(!_0x2efcb2||!(_0x1a6f45(0x2c7)in _0x2efcb2))return![];const _0x35d44f=_0x2efcb2[_0x1a6f45(0x2c7)],_0x338e63=(_0x5b5a6e=_0x35d44f===null||_0x35d44f===void 0x0?void 0x0:_0x35d44f['fs'])!==null&&_0x5b5a6e!==void 0x0?_0x5b5a6e:0xe,_0x3341af=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x4d0ebc=_0x338e63;const _0x2cb1c2=_0x3341af[_0x1a6f45(0x47a)](_0x338e63);if(_0x2cb1c2!==-0x1&&_0x2cb1c2<_0x3341af[_0x1a6f45(0x1ec)]-0x1)_0x4d0ebc=_0x3341af[_0x2cb1c2+0x1];else{if(_0x2cb1c2===-0x1)_0x4d0ebc=Math[_0x1a6f45(0x1f7)](_0x338e63)+0x1;}return _0x1ba4a8[_0x1a6f45(0x60c)](SetShapeTextFontSizeCommand['id'],{'value':_0x4d0ebc});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x259)],'id':_0x101898(0x21b),'handler':async _0x207be6=>{const _0x3fe23f=_0x101898;var _0x29d0c5;const _0x314a6c=_0x207be6[_0x3fe23f(0x49b)](ShapeTextEditingService),_0x1db91b=_0x207be6['get'](_univerjs_pro_sheets_shape[_0x3fe23f(0x232)]),_0x30f902=_0x207be6[_0x3fe23f(0x49b)](_univerjs_core['ICommandService']),_0x48c289=_0x314a6c[_0x3fe23f(0x28d)]();if(!_0x48c289)return![];const {unitId:_0x7a9432,subUnitId:_0x461add,shapeId:_0x37c287}=_0x48c289,_0x388a58=_0x1db91b[_0x3fe23f(0x148)](_0x7a9432,_0x461add,_0x37c287);if(!_0x388a58)return![];const _0x650ba1=_0x388a58[_0x3fe23f(0x592)]();if(!_0x650ba1||!(_0x3fe23f(0x2c7)in _0x650ba1))return![];const _0x210fa9=_0x650ba1['dataModel'],_0x3efcb1=(_0x29d0c5=_0x210fa9===null||_0x210fa9===void 0x0?void 0x0:_0x210fa9['fs'])!==null&&_0x29d0c5!==void 0x0?_0x29d0c5:0xe,_0xf76da9=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x2f0146=_0x3efcb1;const _0x24a639=_0xf76da9['indexOf'](_0x3efcb1);if(_0x24a639!==-0x1&&_0x24a639>0x0)_0x2f0146=_0xf76da9[_0x24a639-0x1];else{if(_0x24a639===-0x1)_0x2f0146=Math[_0x3fe23f(0x1f7)](_0x3efcb1)-0x1;}if(_0x2f0146<0x1)_0x2f0146=0x1;return _0x30f902[_0x3fe23f(0x60c)](SetShapeTextFontSizeCommand['id'],{'value':_0x2f0146});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x101898(0x5dd),'handler':async(_0x1952a9,_0x252b6c)=>{const _0x474c21=_0x101898;var _0x402df0;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x1952a9['get'](_univerjs_core[_0x474c21(0x653)])))return![];const _0x1c13d9=_0x1952a9['get'](_univerjs_sheets_drawing['ISheetDrawingService'])[_0x474c21(0x4f6)]()['filter'](_0x2dd568=>_0x2dd568[_0x474c21(0x324)]===_univerjs_core[_0x474c21(0x229)]['DRAWING_SHAPE']);if(_0x1c13d9[_0x474c21(0x1ec)]!==0x1)return![];const _0x1aed65=_0x1952a9[_0x474c21(0x49b)](ShapeTextEditingService)[_0x474c21(0x28d)](),_0x1f9533=(_0x1aed65===null||_0x1aed65===void 0x0?void 0x0:_0x1aed65[_0x474c21(0x3aa)])||_0x1c13d9[0x0]['unitId'],_0x3cb9fd=(_0x1aed65===null||_0x1aed65===void 0x0?void 0x0:_0x1aed65[_0x474c21(0x343)])||_0x1c13d9[0x0][_0x474c21(0x343)],_0x3bf216=(_0x1aed65===null||_0x1aed65===void 0x0?void 0x0:_0x1aed65[_0x474c21(0x49a)])||_0x1c13d9[0x0][_0x474c21(0x16c)],_0x251c86=_0x1952a9[_0x474c21(0x49b)](_univerjs_pro_sheets_shape[_0x474c21(0x232)])[_0x474c21(0x148)](_0x1f9533,_0x3cb9fd,_0x3bf216);if(!_0x251c86)return![];const _0x17f8c0=_0x251c86[_0x474c21(0x592)]();if(!_0x17f8c0||!('dataModel'in _0x17f8c0))return![];const _0x392dc9=_0x1952a9[_0x474c21(0x49b)](_univerjs_core[_0x474c21(0x55c)]),{value:_0x2dfc3d}=_0x252b6c,_0x2bcc3c=_0x251c86[_0x474c21(0x255)](),_0x3f0540=_0x251c86[_0x474c21(0x365)](),_0x211275={..._0x17f8c0['dataModel'],'va':_0x2dfc3d};return await _0x392dc9[_0x474c21(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x1f9533,'subUnitId':_0x3cb9fd,'shapeId':_0x3bf216,'shapeType':_0x2bcc3c,'shapeData':{'shapeText':{'isHorizontal':(_0x402df0=_0x17f8c0['isHorizontal'])!==null&&_0x402df0!==void 0x0?_0x402df0:!![],'dataModel':_0x211275}},'oldShapeJSON':{'oldShapeType':_0x2bcc3c,'oldShapeData':_0x3f0540}});}},ShapeDocAlignCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x101898(0x2e3),'handler':(_0x40ab3a,_0x575f88)=>{const _0x3ed6ea=_0x101898;if(!_0x575f88)return![];const {value:_0x61d419}=_0x575f88;return _0x40ab3a['get'](_univerjs_core[_0x3ed6ea(0x55c)])['syncExecuteCommand'](_univerjs_docs_ui['AlignOperationCommand']['id'],{'alignType':_0x61d419});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x47b)],'id':_0x101898(0x350),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x47b)],'id':_0x101898(0x394),'handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x101898(0x4ec),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x101898(0x640)])(_0x101898(0x3b2)),ShapeTextEditorContainer$1=_0x101898(0x582);function updateShapeData(_0x825bc8,_0x1d6b7b,_0x5409c3,_0x265c19,_0x317294,_0x3bdf07){const _0x1d3f15={'unitId':_0x1d6b7b,'subUnitId':_0x5409c3,'shapeId':_0x265c19,'shapeData':_0x3bdf07,'oldShapeJSON':_0x317294};return _0x825bc8['executeCommand'](UpdateShapeDataCommand['id'],_0x1d3f15);}function updateLineShapeData(_0x4768c8,_0x3c9e30,_0x36ed65,_0x24c863,_0x344354,_0x31ccab){const _0x2adea5=_0x101898,_0x1b04a0={'unitId':_0x3c9e30,'subUnitId':_0x36ed65,'shapeId':_0x24c863,'shapeData':_0x31ccab,'oldShapeJSON':_0x344354};return _0x4768c8[_0x2adea5(0x60c)](UpdateShapeDataCommand['id'],_0x1b04a0);}function prepareShapeTextDocumentData(_0x53e04a,_0x20a244){const _0x43e3eb=_0x101898;var _0x1582cd;const {isHorizontal:_0x27cf90,textRect:_0x46317a,verticalAlign:_0x1b7a49}=_0x20a244,_0x127e49=_0x27cf90?_0x46317a[_0x43e3eb(0x604)]:_0x46317a[_0x43e3eb(0x57c)],_0x2ba4af=_univerjs_core[_0x43e3eb(0x174)]['deepClone'](_0x53e04a),_0x4abbdc=(_0x1582cd=_0x2ba4af['documentStyle'])!==null&&_0x1582cd!==void 0x0?_0x1582cd:{},_0x448a38={..._0x4abbdc[_0x43e3eb(0x40c)],'centerAngle':_0x27cf90?0x0:_univerjs_engine_render[_0x43e3eb(0x1a2)],'vertexAngle':_0x27cf90?0x0:_univerjs_engine_render['VERTICAL_ROTATE_ANGLE'],'wrapStrategy':_univerjs_core[_0x43e3eb(0x1d2)]['WRAP']};if(_0x1b7a49!==void 0x0)_0x448a38[_0x43e3eb(0x562)]=_0x1b7a49;if(_0x20a244['horizontalAlign']!==void 0x0){var _0xf95bcd;_0x448a38[_0x43e3eb(0x410)]=_0x20a244[_0x43e3eb(0x410)];const _0x31ba5f=(_0xf95bcd=_0x2ba4af[_0x43e3eb(0x667)])===null||_0xf95bcd===void 0x0?void 0x0:_0xf95bcd['paragraphs'];if(_0x31ba5f)for(const _0x86421 of _0x31ba5f){if(!_0x86421['paragraphStyle'])_0x86421[_0x43e3eb(0x3b6)]={};_0x86421[_0x43e3eb(0x3b6)][_0x43e3eb(0x410)]=_0x20a244[_0x43e3eb(0x410)];}}return _0x2ba4af[_0x43e3eb(0x358)]={..._0x4abbdc,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x127e49,'height':Number[_0x43e3eb(0x33c)]},'renderConfig':_0x448a38},_0x2ba4af;}function stripShapeTextDocumentLayout(_0x584c6e){const _0x3008b9=_0x101898;var _0x4ebc8e;const _0x4803a8=_univerjs_core['Tools'][_0x3008b9(0x1b9)](_0x584c6e),_0x3110b9=(_0x4ebc8e=_0x4803a8[_0x3008b9(0x358)])!==null&&_0x4ebc8e!==void 0x0?_0x4ebc8e:{},_0x6d884d={..._0x3110b9[_0x3008b9(0x40c)]};return delete _0x6d884d[_0x3008b9(0x5ce)],delete _0x6d884d[_0x3008b9(0x1a3)],delete _0x6d884d[_0x3008b9(0x562)],delete _0x6d884d['wrapStrategy'],_0x4803a8[_0x3008b9(0x358)]={..._0x3110b9,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x3008b9(0x33c)],'height':Number[_0x3008b9(0x33c)]},'renderConfig':Object[_0x3008b9(0x5ac)](_0x6d884d)[_0x3008b9(0x1ec)]>0x0?_0x6d884d:void 0x0},_0x4803a8;}var DrawingShape=class extends _univerjs_engine_render[_0x101898(0x1fe)]{constructor(_0x2916db,_0x174db9){const _0x3a6623=_0x101898;super(_0x2916db,_0x174db9),_defineProperty(this,'_props',void 0x0),_defineProperty(this,_0x3a6623(0x3e4),!![]),_defineProperty(this,_0x3a6623(0x4d4),_univerjs_core['DrawingTypeEnum'][_0x3a6623(0x535)]),_defineProperty(this,'isDrawingObject',!![]),this[_0x3a6623(0x488)]={..._0x174db9},this[_0x3a6623(0x1fa)]();}[_0x101898(0x1fa)](){const _0x114843=_0x101898;this[_0x114843(0x4e7)][_0x114843(0x3a5)](_0x4e2416=>{const _0x495ab7=_0x114843;this[_0x495ab7(0x2c0)](_0x4e2416);});}[_0x101898(0x5b9)](_0x5d2dc9){const _0x1eb460=_0x101898;this[_0x1eb460(0x488)][_0x1eb460(0x550)]=_0x5d2dc9;}['setEditing'](_0x422efb){const _0xb58e60=_0x101898;this[_0xb58e60(0x488)]['isEditing']=_0x422efb,this['makeDirty'](!![]);}get[_0x101898(0x3aa)](){const _0x193e41=_0x101898;return this[_0x193e41(0x488)][_0x193e41(0x3aa)];}get[_0x101898(0x343)](){const _0x2a03ac=_0x101898;return this[_0x2a03ac(0x488)][_0x2a03ac(0x343)];}[_0x101898(0x2c0)](_0x20bf9d){const _0x597b85=_0x101898;if(this[_0x597b85(0x488)][_0x597b85(0x3ed)]==null||!this[_0x597b85(0x3e4)])return;const {width:_0x53d277,height:_0x11267d}=this,{width:_0x80ffdc=0x0,height:_0x1242bc=0x0}=_0x20bf9d['preValue'],{left:_0x16cc81=0x0,top:_0x401516=0x0,right:_0x4a1f76=0x0,bottom:_0x4cd863=0x0}=this[_0x597b85(0x488)][_0x597b85(0x3ed)];let _0x206134=_0x16cc81,_0x404d2b=_0x401516,_0x22fe4f=_0x4a1f76,_0x1b4a2c=_0x4cd863,_0x239fe2=![];if(_0x80ffdc!==0x0&&_0x80ffdc!==_0x53d277){const _0x24424b=_0x16cc81/_0x80ffdc,_0x1e712b=_0x4a1f76/_0x80ffdc;_0x206134=_0x53d277*_0x24424b,_0x22fe4f=_0x53d277*_0x1e712b,_0x239fe2=!![];}if(_0x1242bc!==0x0&&_0x1242bc!==_0x11267d){const _0xdc2e1d=_0x401516/_0x1242bc,_0x46dc8d=_0x4cd863/_0x1242bc;_0x404d2b=_0x11267d*_0xdc2e1d,_0x1b4a2c=_0x11267d*_0x46dc8d,_0x239fe2=!![];}if(_0x239fe2)this[_0x597b85(0x4e2)]({'left':_0x206134,'top':_0x404d2b,'right':_0x22fe4f,'bottom':_0x1b4a2c});}[_0x101898(0x4e2)](_0x1c267f){const _0x14d22f=_0x101898;this[_0x14d22f(0x488)][_0x14d22f(0x3ed)]=_0x1c267f,this[_0x14d22f(0x408)](!![]);}[_0x101898(0x13f)](_0x45c428){const _0x549c6a=_0x101898;this['_props'][_0x549c6a(0x39b)]=_0x45c428,this[_0x549c6a(0x408)](!![]);}set[_0x101898(0x519)](_0xf7cac4){const _0x3af23a=_0x101898;this[_0x3af23a(0x206)]=_0xf7cac4;}get[_0x101898(0x519)](){const _0x2061c7=_0x101898;if(!this[_0x2061c7(0x206)])this[_0x2061c7(0x527)]();const _0x578d3a=this[_0x2061c7(0x206)][_0x2061c7(0x59e)]();return this['transformForAngle'](_0x578d3a);}get[_0x101898(0x591)](){const _0x564283=_0x101898;return this[_0x564283(0x488)][_0x564283(0x591)];}get[_0x101898(0x49a)](){const _0x4ae4e2=_0x101898;return this[_0x4ae4e2(0x488)]['shapeId'];}get['classType'](){const _0x2d3da7=_0x101898;return _univerjs_engine_render[_0x2d3da7(0x2cd)][_0x2d3da7(0x1ae)];}[_0x101898(0x18c)](_0x3f2a02,_0x47e8a6,_0x112b64,_0x95e4ba){const _0x75a2e3=_0x101898,_0x476b55=this['_props'][_0x75a2e3(0x591)];if(!_0x476b55||!_0x47e8a6)return;const _0x251133=_0x112b64!==null&&_0x112b64!==void 0x0?_0x112b64:this['width'],_0xcc50b4=_0x95e4ba!==null&&_0x95e4ba!==void 0x0?_0x95e4ba:this[_0x75a2e3(0x57c)],_0x2bef60={'shapeType':_0x476b55['getShapeType'](),'width':_0x251133,'height':_0xcc50b4},_0x5c14f4={'renderMode':_univerjs_pro_engine_shape['ShapeRenderModeEnum'][_0x75a2e3(0x361)],'oKey':this['oKey'],'image':this[_0x75a2e3(0x488)]['image'],'angle':this[_0x75a2e3(0x2f5)]};_0x476b55['updateContext'](_0x2bef60),_0x3f2a02[_0x75a2e3(0x29b)]();const _0x1fb77c={'top':0x0,'left':0x0,'width':_0x251133,'height':_0xcc50b4};_0x476b55[_0x75a2e3(0x458)](_0x3f2a02,_0x1fb77c,_0x5c14f4),_0x3f2a02[_0x75a2e3(0x2ba)]();const _0x78c246=_0x476b55[_0x75a2e3(0x592)](),_0x188a17=_0x476b55[_0x75a2e3(0x5da)](_0x1fb77c),_0x5aaf16=_0x476b55[_0x75a2e3(0x282)]();if(_0x78c246&&_0x188a17&&!_0x5aaf16){_0x3f2a02[_0x75a2e3(0x29b)]();if(this[_0x75a2e3(0x12f)]()['flipX'])_0x3f2a02[_0x75a2e3(0x3b3)](-0x1,0x1);const _0x177ef3=_0x251133/0x2,_0x1a390d=_0xcc50b4/0x2;_0x3f2a02[_0x75a2e3(0x4da)](-_0x177ef3,-_0x1a390d),_0x3f2a02[_0x75a2e3(0x1cf)](),this['_drawShapeText'](_0x3f2a02,_0x78c246,_0x188a17),_0x3f2a02['restore']();}}[_0x101898(0x23f)](_0x4e9867){}['_drawShapeText'](_0x2def4a,_0xc771d7,_0x2a828b){const _0xc5bd84=_0x101898;if(this[_0xc5bd84(0x488)][_0xc5bd84(0x4ef)])return;if('isRichText'in _0xc771d7&&_0xc771d7['isRichText']===![])this[_0xc5bd84(0x4e6)](_0x2def4a,_0xc771d7,_0x2a828b);else this[_0xc5bd84(0x30f)](_0x2def4a,_0xc771d7,_0x2a828b);}[_0x101898(0x4e6)](_0x1e21ba,_0x47c87e,_0x2e28cc){}[_0x101898(0x30f)](_0x2b8775,_0x32d510,_0x2988de){const _0x55ceda=_0x101898;var _0x41b408,_0x54d4cb;const _0x140e5c=this[_0x55ceda(0x488)]['localeService'];if(!_0x32d510[_0x55ceda(0x2c7)]||!_0x140e5c){if(!_0x140e5c)console[_0x55ceda(0x5be)]('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}const _0x228e64=_0x32d510[_0x55ceda(0x2c7)],_0x279634=_0x228e64[_0x55ceda(0x214)],_0x334914=(_0x41b408=_0x228e64['va'])!==null&&_0x41b408!==void 0x0?_0x41b408:_univerjs_core['VerticalAlign'][_0x55ceda(0x1a5)],_0x541299=(_0x54d4cb=_0x228e64['ha'])!==null&&_0x54d4cb!==void 0x0?_0x54d4cb:_univerjs_core[_0x55ceda(0x5c9)][_0x55ceda(0x183)];if(!_0x279634)return;const _0x31b3a4=_0x32d510[_0x55ceda(0x3ca)],_0x187a50=prepareShapeTextDocumentData(_0x279634,{'isHorizontal':_0x31b3a4!==![],'textRect':_0x2988de,'verticalAlign':_0x334914,'horizontalAlign':_0x541299}),_0x1739c7=new _univerjs_core[(_0x55ceda(0x28c))](_0x187a50),_0xa08310=new _univerjs_engine_render[(_0x55ceda(0x284))](_0x1739c7),_0x3f42bf=_univerjs_engine_render[_0x55ceda(0x3c4)][_0x55ceda(0x675)](_0xa08310,_0x140e5c);console[_0x55ceda(0x5be)](_0x187a50,_0x1739c7,_0x3f42bf),_0x3f42bf['calculate']();const _0xb7537=new _univerjs_engine_render[(_0x55ceda(0x3a2))](_0x55ceda(0x45c)+this['oKey'],_0x3f42bf,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0xb7537[_0x55ceda(0x65a)](_0x2988de[_0x55ceda(0x604)],_0x2988de[_0x55ceda(0x57c)]),_0x2b8775[_0x55ceda(0x29b)](),_0x2b8775[_0x55ceda(0x4ea)](_0x2988de[_0x55ceda(0x2ff)],_0x2988de[_0x55ceda(0x46c)]),_0x2b8775[_0x55ceda(0x1cf)](),_0x2b8775['rect'](0x0,0x0,_0x2988de[_0x55ceda(0x604)],_0x2988de['height']),_0x2b8775[_0x55ceda(0x569)](),_0xb7537[_0x55ceda(0x62e)](_0x2b8775),_0x2b8775['restore'](),_0xb7537['dispose'](),_0x3f42bf[_0x55ceda(0x3af)](),_0xa08310[_0x55ceda(0x3af)](),_0x1739c7[_0x55ceda(0x3af)]();}[_0x101898(0x458)](_0x2dd411,_0x57066f,_0x593289=![]){const _0x1a7d38=_0x101898;if(!this[_0x1a7d38(0x510)])return this[_0x1a7d38(0x408)](![]),this;let {width:_0xcf53f2,height:_0x50b950,left:_0x26336f,top:_0x80f5a2}=this;const _0x2f7883=this[_0x1a7d38(0x61e)]();_0xcf53f2=_0x2f7883[_0x1a7d38(0x604)],_0x50b950=_0x2f7883[_0x1a7d38(0x57c)],_0x26336f=_0x2f7883[_0x1a7d38(0x2ff)],_0x80f5a2=_0x2f7883['top'];if(this[_0x1a7d38(0x31c)](_0x57066f)){const {top:_0x5108ca,left:_0x3ba8e4,bottom:_0x26b67d,right:_0xeb64e4}=_0x57066f['viewBound'];if(_0xcf53f2+this[_0x1a7d38(0x192)]+_0x26336f<_0x3ba8e4||_0xeb64e4<_0x26336f||_0x50b950+this['strokeWidth']+_0x80f5a2<_0x5108ca||_0x26b67d<_0x80f5a2)return this;}const _0x55d554=_0x26336f+_0xcf53f2/0x2,_0x1204e9=_0x80f5a2+_0x50b950/0x2;let _0x3095bd=this[_0x1a7d38(0x519)][_0x1a7d38(0x2e2)]();if(this[_0x1a7d38(0x488)][_0x1a7d38(0x4ef)]){const _0x2d332b=this[_0x1a7d38(0x12f)](),_0x151eae=new _univerjs_engine_render[(_0x1a7d38(0x2d6))]();_0x151eae[_0x1a7d38(0x21a)]({..._0x2d332b}),_0x3095bd=_0x151eae[_0x1a7d38(0x2e2)]();}_0x2dd411[_0x1a7d38(0x29b)]();if(this['_props'][_0x1a7d38(0x591)][_0x1a7d38(0x418)]===!![]){}else _0x2dd411['transform'](_0x3095bd[0x0],_0x3095bd[0x1],_0x3095bd[0x2],_0x3095bd[0x3],_0x55d554,_0x1204e9);return this[_0x1a7d38(0x18c)](_0x2dd411,_0x57066f,_0xcf53f2,_0x50b950),_0x2dd411[_0x1a7d38(0x2ba)](),this['makeDirty'](![]),this;}['getInverseCoord'](_0x1c079e){const _0x572baf=_0x101898,{left:_0x5c6d65,top:_0x1917e4,width:_0x280479,height:_0x2bf83c}=this['getRealBound'](),_0x56c3b3=this[_0x572baf(0x519)][_0x572baf(0x2e2)](),_0x4fe8dc=_0x5c6d65+_0x280479/0x2,_0x198463=_0x1917e4+_0x2bf83c/0x2,_0x844253=new _univerjs_engine_render['Transform']([_0x56c3b3[0x0],_0x56c3b3[0x1],_0x56c3b3[0x2],_0x56c3b3[0x3],_0x4fe8dc,_0x198463]),_0x5d8d27=this[_0x572baf(0x31f)]();return(this[_0x572baf(0x1d9)]&&(_0x5d8d27===null||_0x5d8d27===void 0x0?void 0x0:_0x5d8d27[_0x572baf(0x2e1)])===_univerjs_engine_render[_0x572baf(0x2cd)]['GROUP']?_0x5d8d27['ancestorTransform'][_0x572baf(0x14d)](_0x844253):_0x844253)[_0x572baf(0x310)]()['applyPoint'](_0x1c079e);}[_0x101898(0x4a6)](_0x42b5fc){const _0x4d7ce8=_0x101898,{left:_0x30f0f8,top:_0x473406,width:_0xdc627e,height:_0x5b246d}=this['getRealBound'](),_0x4fb95e=_0x30f0f8+_0xdc627e/0x2,_0x47dc0d=_0x473406+_0x5b246d/0x2,_0x5b4dd1=this['transform'][_0x4d7ce8(0x2e2)](),_0x4abf73=new _univerjs_engine_render[(_0x4d7ce8(0x2d6))]([_0x5b4dd1[0x0],_0x5b4dd1[0x1],_0x5b4dd1[0x2],_0x5b4dd1[0x3],_0x4fb95e,_0x47dc0d]),_0x5270b4=this[_0x4d7ce8(0x31f)](),_0x5ca3f0=(this['isInGroup']&&(_0x5270b4===null||_0x5270b4===void 0x0?void 0x0:_0x5270b4[_0x4d7ce8(0x2e1)])===_univerjs_engine_render[_0x4d7ce8(0x2cd)]['GROUP']?_0x5270b4[_0x4d7ce8(0x359)][_0x4d7ce8(0x14d)](_0x4abf73):_0x4abf73)[_0x4d7ce8(0x310)]()[_0x4d7ce8(0x627)](_0x42b5fc),_0x5bffb0=_0xdc627e/0x2,_0x5b5660=_0x5b246d/0x2,_0x1f58f0=this[_0x4d7ce8(0x488)][_0x4d7ce8(0x591)];if(_0x1f58f0&&_0x1f58f0['isLineShape']())return _0x1f58f0[_0x4d7ce8(0x481)](_0x5ca3f0['x'],_0x5ca3f0['y'],_0xdc627e,_0x5b246d);if(_0x5ca3f0['x']>=-_0x5bffb0-this[_0x4d7ce8(0x192)]/0x2&&_0x5ca3f0['x']<=_0x5bffb0+this[_0x4d7ce8(0x192)]/0x2&&_0x5ca3f0['y']>=-_0x5b5660-this[_0x4d7ce8(0x192)]/0x2&&_0x5ca3f0['y']<=_0x5b5660+this[_0x4d7ce8(0x192)]/0x2)return!![];return![];}[_0x101898(0x3af)](){const _0x21050b=_0x101898;this[_0x21050b(0x488)][_0x21050b(0x591)]=null,super['dispose']();}};function __decorateParam(_0x555e75,_0x578ae8){return function(_0x369339,_0x2ae6bf){_0x578ae8(_0x369339,_0x2ae6bf,_0x555e75);};}function __decorate(_0x4552ba,_0x3a3838,_0x41af14,_0x3d0233){const _0x388faa=_0x101898;var _0x43f39d=arguments[_0x388faa(0x1ec)],_0x3836b9=_0x43f39d<0x3?_0x3a3838:_0x3d0233===null?_0x3d0233=Object['getOwnPropertyDescriptor'](_0x3a3838,_0x41af14):_0x3d0233,_0x47959f;if(typeof Reflect===_0x388faa(0x135)&&typeof Reflect[_0x388faa(0x50e)]===_0x388faa(0x44a))_0x3836b9=Reflect['decorate'](_0x4552ba,_0x3a3838,_0x41af14,_0x3d0233);else{for(var _0x140379=_0x4552ba[_0x388faa(0x1ec)]-0x1;_0x140379>=0x0;_0x140379--)if(_0x47959f=_0x4552ba[_0x140379])_0x3836b9=(_0x43f39d<0x3?_0x47959f(_0x3836b9):_0x43f39d>0x3?_0x47959f(_0x3a3838,_0x41af14,_0x3836b9):_0x47959f(_0x3a3838,_0x41af14))||_0x3836b9;}return _0x43f39d>0x3&&_0x3836b9&&Object[_0x388faa(0x66c)](_0x3a3838,_0x41af14,_0x3836b9),_0x3836b9;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x2c8c4c,_0x5dfc93,_0x2c70d4,_0x1ba551,_0x3bc54d){const _0x3a224b=_0x101898;super(),this[_0x3a224b(0x3c9)]=_0x2c8c4c,this[_0x3a224b(0x352)]=_0x5dfc93,this['_localeService']=_0x2c70d4,this[_0x3a224b(0x636)]=_0x1ba551,this[_0x3a224b(0x403)]=_0x3bc54d;}[_0x101898(0x19c)](_0xf0fae7,_0x189f7c){const _0x5b59fb=_0x101898,{transform:_0x5795dc,drawingType:_0x1c3d9f,srcRect:_0x568639,prstGeom:_0x2be6e5,groupId:_0x284fef,unitId:_0xe9d0d8,subUnitId:_0x65b1bd,drawingId:_0x5410b4,isMultiTransform:_0x27e595,transforms:_0x22bece,hidden:_0x143d4f}=_0xf0fae7;if(_0x1c3d9f!==_univerjs_core[_0x5b59fb(0x229)][_0x5b59fb(0x535)])return;if(!this[_0x5b59fb(0x3c9)][_0x5b59fb(0x5e5)]())return;if(_0x5795dc==null)return;const _0x367e8e=_0x27e595&&_0x22bece?_0x22bece:[_0x5795dc],_0x563872=[];for(const _0x420514 of _0x367e8e){const {left:_0x434ea2,top:_0x232dce,width:_0x298992,height:_0x536697,angle:_0x128105,flipX:_0x4ef709,flipY:_0x315d60,skewX:_0x372a18,skewY:_0xc10217}=_0x420514,_0x229a2c=_0x367e8e[_0x5b59fb(0x47a)](_0x420514),_0x5ae1f9=(0x0,_univerjs_drawing[_0x5b59fb(0x38f)])({'unitId':_0xe9d0d8,'subUnitId':_0x65b1bd,'drawingId':_0x5410b4},_0x27e595?_0x229a2c:void 0x0),_0x124362=_0x189f7c[_0x5b59fb(0x157)](_0x5ae1f9);if(_0x124362!=null){_0x124362[_0x5b59fb(0x46b)]({'left':_0x434ea2,'top':_0x232dce,'width':_0x298992,'height':_0x536697,'angle':_0x128105,'flipX':_0x4ef709,'flipY':_0x315d60,'skewX':_0x372a18,'skewY':_0xc10217});continue;}const _0xe2dc4b=this[_0x5b59fb(0x3c9)]['getDrawingOrder'](_0xe9d0d8,_0x65b1bd),_0x27f6c6=_0xe2dc4b[_0x5b59fb(0x47a)](_0x5410b4);if(_0x189f7c[_0x5b59fb(0x157)](_0x5ae1f9))continue;if(!this[_0x5b59fb(0x3c9)][_0x5b59fb(0x5e5)]())continue;const _0x55a73d=this[_0x5b59fb(0x352)][_0x5b59fb(0x148)](_0xe9d0d8,_0x65b1bd,_0x5410b4);if(!_0x55a73d)continue;const _0xd8e3db=new DrawingShape(_0x5ae1f9,{...(0x0,_univerjs_pro_engine_shape[_0x5b59fb(0x277)])(_0x55a73d['getShapeType']())?{..._0x420514,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x420514},'zIndex':_0x27f6c6===-0x1?_0xe2dc4b[_0x5b59fb(0x1ec)]-0x1:_0x27f6c6,'shapeModel':_0x55a73d,'localeService':this[_0x5b59fb(0x679)],'shapeId':_0x5410b4,'unitId':_0xe9d0d8,'subUnitId':_0x65b1bd,'visible':_0x143d4f!==!![]});_0x189f7c[_0x5b59fb(0x22c)](_0xd8e3db,_univerjs_engine_render[_0x5b59fb(0x11f)]);if(this[_0x5b59fb(0x3c9)][_0x5b59fb(0x50b)]())_0x189f7c['attachTransformerTo'](_0xd8e3db);_0x284fef&&(0x0,_univerjs_drawing_ui['insertGroupObject'])({'drawingId':_0x284fef,'unitId':_0xe9d0d8,'subUnitId':_0x65b1bd},_0xd8e3db,_0x189f7c,this[_0x5b59fb(0x3c9)]);if(_0x2be6e5!=null)_0xd8e3db[_0x5b59fb(0x5b9)](_0x2be6e5);if(_0x568639!=null)_0xd8e3db[_0x5b59fb(0x4e2)](_0x568639);this[_0x5b59fb(0x299)](_0xd8e3db,_0x55a73d[_0x5b59fb(0x365)]()),_0x563872[_0x5b59fb(0x2f9)](_0xd8e3db);}return _0x563872;}[_0x101898(0x299)](_0xa3741f,_0x1913da){const _0x2830f6=_0x101898;var _0x322983;const _0x1e07e1=_0x1913da['fill'];if(!_0x1e07e1||_0x1e07e1[_0x2830f6(0x419)]!==_univerjs_pro_engine_shape[_0x2830f6(0x2d3)][_0x2830f6(0x487)]||!_0x1e07e1['fillImageSource'])return;const _0x5f5318=_0x1e07e1[_0x2830f6(0x150)],_0x5bcbd7=(_0x322983=_0x1e07e1[_0x2830f6(0x590)])!==null&&_0x322983!==void 0x0?_0x322983:_univerjs_pro_engine_shape[_0x2830f6(0x262)][_0x2830f6(0x139)],_0x307263=this[_0x2830f6(0x636)][_0x2830f6(0x67e)](_0x5f5318,_0x5bcbd7);if(_0x307263){_0xa3741f['setFillImage'](_0x307263);return;}this[_0x2830f6(0x444)](_0xa3741f,_0x5f5318,_0x5bcbd7);}async[_0x101898(0x444)](_0x4871f7,_0x3bb2c9,_0x3c3c20){const _0xa0dd51=_0x101898;let _0x4401dc;try{if(_0x3c3c20===_univerjs_pro_engine_shape[_0xa0dd51(0x262)][_0xa0dd51(0x4e8)])_0x4401dc=await this[_0xa0dd51(0x636)][_0xa0dd51(0x121)](_0x3bb2c9);else{if(_0x3c3c20===_univerjs_pro_engine_shape[_0xa0dd51(0x262)][_0xa0dd51(0x139)])try{_0x4401dc=await this[_0xa0dd51(0x403)]['getImage'](_0x3bb2c9);}catch{_0x4401dc=_0x3bb2c9;}else _0x4401dc=_0x3bb2c9;}}catch(_0x3f44bf){console[_0xa0dd51(0x182)](_0xa0dd51(0x341),_0x3f44bf);return;}const _0x1efe79=new window['Image']();_0x1efe79[_0xa0dd51(0x62f)]=()=>{const _0x5a3755=_0xa0dd51;this[_0x5a3755(0x636)][_0x5a3755(0x5d2)](_0x3bb2c9,_0x3c3c20,_0x1efe79),_0x4871f7['setFillImage'](_0x1efe79);},_0x1efe79[_0xa0dd51(0x209)]=()=>{const _0x113a66=_0xa0dd51;console[_0x113a66(0x182)](_0x113a66(0x3e6),_0x3bb2c9);},_0x1efe79[_0xa0dd51(0x631)]=_0x4401dc;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape[_0x101898(0x232)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_core[_0x101898(0x334)])),__decorateParam(0x3,_univerjs_drawing[_0x101898(0x23c)]),__decorateParam(0x4,_univerjs_core[_0x101898(0x364)])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x205f2a,_0x60533c,_0x5b03db,_0x1108d7,_0x34f27d,_0x1d0cf9){const _0x3bda35=_0x101898;super(),this['_commandService']=_0x205f2a,this[_0x3bda35(0x28f)]=_0x60533c,this[_0x3bda35(0x3c9)]=_0x5b03db,this[_0x3bda35(0x5e1)]=_0x1108d7,this[_0x3bda35(0x303)]=_0x34f27d,this[_0x3bda35(0x270)]=_0x1d0cf9,this[_0x3bda35(0x503)]();}[_0x101898(0x503)](){const _0xf4322e=_0x101898;this[_0xf4322e(0x179)](),this[_0xf4322e(0x424)](),this[_0xf4322e(0x263)]();}[_0x101898(0x179)](){const _0x3b84fa=_0x101898;this[_0x3b84fa(0x1ff)](this[_0x3b84fa(0x3c9)]['add$'][_0x3b84fa(0x4fd)](_0x3fe4e3=>{const _0x124cc9=_0x3b84fa;this[_0x124cc9(0x1c7)](_0x3fe4e3);}));}['_commandExecutedListener'](){const _0x362676=_0x101898;this[_0x362676(0x1ff)](this[_0x362676(0x36d)][_0x362676(0x5e3)](_0xaf461a=>{const _0x3f3d75=_0x362676;if(_0xaf461a['id']===_univerjs_pro_sheets_shape[_0x3f3d75(0x4db)]['id']){var _0x210c1e;const {unitId:_0xffa9e7,subUnitId:_0x5c6e7b,shapeId:_0x4a94c9}=_0xaf461a[_0x3f3d75(0x35d)],_0x5563fd=this[_0x3f3d75(0x291)](_0xffa9e7);if(_0x5563fd==null)return;const {scene:_0x529200}=_0x5563fd,_0x39cf36=(0x0,_univerjs_drawing[_0x3f3d75(0x38f)])({'unitId':_0xffa9e7,'subUnitId':_0x5c6e7b,'drawingId':_0x4a94c9}),_0x1ba7a5=_0x529200[_0x3f3d75(0x157)](_0x39cf36);if(!((_0x210c1e=this[_0x3f3d75(0x28f)]['getRenderById'](_0xffa9e7))===null||_0x210c1e===void 0x0?void 0x0:_0x210c1e[_0x3f3d75(0x593)](_univerjs_sheets_ui[_0x3f3d75(0x217)])[_0x3f3d75(0x1f6)](_0x5c6e7b)))return![];if(_0x1ba7a5)return;this[_0x3f3d75(0x1c7)]([{'unitId':_0xffa9e7,'subUnitId':_0x5c6e7b,'drawingId':_0x4a94c9}]);}}));}[_0x101898(0x263)](){const _0x20112d=_0x101898;this[_0x20112d(0x1ff)](this[_0x20112d(0x3c9)][_0x20112d(0x523)][_0x20112d(0x4fd)](_0x20e1eb=>{const _0x231581=_0x20112d;_0x20e1eb[_0x231581(0x5aa)](_0x30b661=>{const _0x45a864=_0x231581,{unitId:_0x166e75,subUnitId:_0x3dcf82,drawingId:_0x2ba6a4}=_0x30b661,_0x178e66=this[_0x45a864(0x3c9)]['getDrawingByParam'](_0x30b661);if(_0x178e66==null)return;const {transform:_0x551493,drawingType:_0x404d47,srcRect:_0x2e35ae,prstGeom:_0x451d1f}=_0x178e66;if(_0x404d47!==_univerjs_core[_0x45a864(0x229)][_0x45a864(0x535)])return;const _0x333e23=this[_0x45a864(0x291)](_0x166e75);if(_0x333e23==null)return;const {scene:_0x2c4a61,transformer:_0x309b9e}=_0x333e23;if(_0x551493==null)return!![];const _0x581422=(0x0,_univerjs_drawing[_0x45a864(0x38f)])({'unitId':_0x166e75,'subUnitId':_0x3dcf82,'drawingId':_0x2ba6a4}),_0x8f67cf=_0x2c4a61[_0x45a864(0x157)](_0x581422);if(_0x8f67cf==null)return!![];_0x8f67cf['setSrcRect'](_0x2e35ae),_0x8f67cf['setPrstGeom'](_0x451d1f);});}));}['updateShapeFillImage'](_0x5a51c3,_0x4d6b16){const _0x1d5e31=_0x101898,{unitId:_0x5354f1,subUnitId:_0x1f26a4,drawingId:_0x1260a9}=_0x5a51c3,_0x438dca=this['_getSceneAndTransformerByDrawingSearch'](_0x5354f1);if(_0x438dca==null)return;const {scene:_0x26bc72}=_0x438dca,_0x4895e0=(0x0,_univerjs_drawing[_0x1d5e31(0x38f)])({'unitId':_0x5354f1,'subUnitId':_0x1f26a4,'drawingId':_0x1260a9}),_0x4e09d2=_0x26bc72[_0x1d5e31(0x157)](_0x4895e0);if(_0x4e09d2==null)return;_0x4e09d2[_0x1d5e31(0x13f)](_0x4d6b16);}['_insertShapes'](_0x48208d){const _0x5b6128=_0x101898;_0x48208d[_0x5b6128(0x5aa)](async _0x4efdf3=>{const _0x391a41=_0x5b6128;var _0x365dbb;const {unitId:_0x2ccd0c,subUnitId:_0xada28c}=_0x4efdf3,_0x3bce17=this[_0x391a41(0x291)](_0x2ccd0c),_0xb56fa8=(_0x365dbb=(0x0,_univerjs_drawing_ui['getCurrentUnitInfo'])(this['_currentUniverService'],_0x2ccd0c))===null||_0x365dbb===void 0x0?void 0x0:_0x365dbb[_0x391a41(0x343)];if(_0x3bce17==null||_0xb56fa8!==_0xada28c)return;const _0x53e66d=this[_0x391a41(0x3c9)][_0x391a41(0x52f)](_0x4efdf3);if(_0x53e66d==null)return;if(_0x53e66d['drawingType']!==_univerjs_core[_0x391a41(0x229)][_0x391a41(0x535)])return;if((0x0,_univerjs_pro_engine_shape[_0x391a41(0x277)])((_0x53e66d['data']||{})[_0x391a41(0x4c2)])){const _0xe5bc70=_0x53e66d[_0x391a41(0x519)];if(_0xe5bc70)_0x53e66d[_0x391a41(0x519)]={..._0xe5bc70,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x391a41(0x3c9)][_0x391a41(0x571)]([_0x53e66d]),this[_0x391a41(0x270)][_0x391a41(0x19c)](_0x53e66d,_0x3bce17[_0x391a41(0x2dc)]);});}[_0x101898(0x291)](_0x1dbd0e){const _0x215538=_0x101898;if(_0x1dbd0e==null)return;const _0x3a5a75=this[_0x215538(0x28f)]['getRenderById'](_0x1dbd0e),_0x5dae3a=_0x3a5a75===null||_0x3a5a75===void 0x0?void 0x0:_0x3a5a75[_0x215538(0x2dc)];if(_0x5dae3a==null)return null;return{'scene':_0x5dae3a,'transformer':_0x5dae3a[_0x215538(0x53f)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_engine_render[_0x101898(0x500)]),__decorateParam(0x2,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x3,_univerjs_core['IUniverInstanceService']),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_drawing_ui[_0x101898(0x13e)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x101898(0x463)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x3a2688){const _0x4a55f7=_0x101898;var _0x50420a,_0x33fa51,_0x20fe33,_0x4421ec,_0xbc73e5,_0x39c904,_0x3d932e,_0x411646,_0x22189b,_0x583d20,_0x3f7b8e,_0x23be92,_0x592e74;const {unitId:_0x32f82b,subUnitId:_0x431d12,shapeId:_0x17640c,shapeData:_0x3dbd22,disableShapeOption:_0x454765}=_0x3a2688,_0x2abe99=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x4a55f7(0x334)]),_0x339c7f=(0x0,_univerjs_ui[_0x4a55f7(0x14f)])(_univerjs_core['ICommandService']),_0x39f5da=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x4a55f7(0x4b3)]),_0x5de3de=(0x0,_univerjs_ui[_0x4a55f7(0x14f)])(ShapeUpdateController),_0x30c7c2=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing['IImageIoService']),_0x3ba60a=(0x0,react[_0x4a55f7(0x1da)])(null),_0x15511c=_0x3dbd22['fill'],_0xfa5462=!!(_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c[_0x4a55f7(0x150)]),[_0x414505,_0x3fba4e]=(0x0,react[_0x4a55f7(0x168)])((_0x50420a=_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c[_0x4a55f7(0x309)])!==null&&_0x50420a!==void 0x0?_0x50420a:0x1),[_0x225aa1,_0x275369]=(0x0,react[_0x4a55f7(0x168)])((_0x33fa51=_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c['imageFillMode'])!==null&&_0x33fa51!==void 0x0?_0x33fa51:_univerjs_pro_engine_shape['ImageFillModeEnum'][_0x4a55f7(0x4b9)]),[_0x68815d,_0x5354ce]=(0x0,react[_0x4a55f7(0x168)])((_0x20fe33=_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c[_0x4a55f7(0x238)])!==null&&_0x20fe33!==void 0x0?_0x20fe33:![]),[_0x1ac7d4,_0x14cf1f]=(0x0,react[_0x4a55f7(0x168)])((_0x4421ec=_0x15511c===null||_0x15511c===void 0x0||(_0xbc73e5=_0x15511c[_0x4a55f7(0x222)])===null||_0xbc73e5===void 0x0?void 0x0:_0xbc73e5['offsetX'])!==null&&_0x4421ec!==void 0x0?_0x4421ec:0x0),[_0x1373ee,_0x48fa00]=(0x0,react[_0x4a55f7(0x168)])((_0x39c904=_0x15511c===null||_0x15511c===void 0x0||(_0x3d932e=_0x15511c[_0x4a55f7(0x222)])===null||_0x3d932e===void 0x0?void 0x0:_0x3d932e[_0x4a55f7(0x544)])!==null&&_0x39c904!==void 0x0?_0x39c904:0x0),[_0x5e5a95,_0x3c1fac]=(0x0,react[_0x4a55f7(0x168)])((_0x411646=_0x15511c===null||_0x15511c===void 0x0||(_0x22189b=_0x15511c[_0x4a55f7(0x222)])===null||_0x22189b===void 0x0?void 0x0:_0x22189b[_0x4a55f7(0x43d)])!==null&&_0x411646!==void 0x0?_0x411646:0x1),[_0x5d42c1,_0x36ba3a]=(0x0,react[_0x4a55f7(0x168)])((_0x583d20=_0x15511c===null||_0x15511c===void 0x0||(_0x3f7b8e=_0x15511c[_0x4a55f7(0x222)])===null||_0x3f7b8e===void 0x0?void 0x0:_0x3f7b8e[_0x4a55f7(0x12a)])!==null&&_0x583d20!==void 0x0?_0x583d20:0x1),[_0x370373,_0x341824]=(0x0,react[_0x4a55f7(0x168)])((_0x23be92=_0x15511c===null||_0x15511c===void 0x0||(_0x592e74=_0x15511c[_0x4a55f7(0x222)])===null||_0x592e74===void 0x0?void 0x0:_0x592e74[_0x4a55f7(0x24d)])!==null&&_0x23be92!==void 0x0?_0x23be92:'tl'),_0x272ee6=_0x225aa1===_univerjs_pro_engine_shape[_0x4a55f7(0x1a1)]['Tile'],_0x23188f=Math['round']((0x1-_0x414505)*0x64),_0x137bea=Math[_0x4a55f7(0x3d0)](_0x5e5a95*0x64),_0x37f670=Math[_0x4a55f7(0x3d0)](_0x5d42c1*0x64),_0x372c86=_0x5ea727=>_0x2abe99['t'](_0x5ea727),_0x44b53f=[{'label':_0x372c86('sheets-shape.fill.picture.align.tl'),'value':'tl'},{'label':_0x372c86(_0x4a55f7(0x20f)),'value':'t'},{'label':_0x372c86(_0x4a55f7(0x5e9)),'value':'tr'},{'label':_0x372c86(_0x4a55f7(0x64c)),'value':'l'},{'label':_0x372c86(_0x4a55f7(0x3eb)),'value':'ctr'},{'label':_0x372c86(_0x4a55f7(0x1b3)),'value':'r'},{'label':_0x372c86(_0x4a55f7(0x32d)),'value':'bl'},{'label':_0x372c86('sheets-shape.fill.picture.align.b'),'value':'b'},{'label':_0x372c86('sheets-shape.fill.picture.align.br'),'value':'br'}],_0x1e016d=_0xc340e=>{updateShapeData(_0x339c7f,_0x32f82b,_0x431d12,_0x17640c,{'oldShapeData':{'fill':_0x15511c?{..._0x15511c}:void 0x0}},{'fill':{..._0x15511c,..._0xc340e}});},_0x485d34=_0x4f013b=>{_0x1e016d({'imageTile':{..._0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c['imageTile'],..._0x4f013b}});},_0x53c70c=()=>{const _0x547781=_0x4a55f7;var _0x2f7946;return(_0x2f7946=_0x3ba60a[_0x547781(0x51d)])===null||_0x2f7946===void 0x0?void 0x0:_0x2f7946['click']();},_0x4ce672=async _0xbbec47=>{const _0x384362=_0x4a55f7;var _0x394492;const _0x606e52=(_0x394492=_0xbbec47[_0x384362(0x4af)][_0x384362(0x5a7)])===null||_0x394492===void 0x0?void 0x0:_0x394492[0x0];if(!_0x606e52)return;_0xbbec47[_0x384362(0x4af)][_0x384362(0x2f1)]='';const _0x3e239b=await _0x30c7c2[_0x384362(0x1ee)](_0x606e52);if(_0x3e239b==null)return;const {imageSourceType:_0x5d49ea,source:_0x5198bb,base64Cache:_0x296f26}=_0x3e239b,{image:_0x4e1dd6}=await(0x0,_univerjs_drawing[_0x384362(0x4aa)])(_0x296f26||'');_0x30c7c2['addImageSourceCache'](_0x5198bb,_0x5d49ea,_0x4e1dd6),updateShapeData(_0x339c7f,_0x32f82b,_0x431d12,_0x17640c,{'oldShapeData':{'fill':_0x15511c?{..._0x15511c}:void 0x0}},{'fill':{..._0x15511c,'fillType':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x384362(0x487)],'fillImageSource':_0x5198bb,'fillImageSourceType':_0x5d49ea}}),_0x5de3de[_0x384362(0x43b)]({'unitId':_0x32f82b,'subUnitId':_0x431d12,'drawingId':_0x17640c},_0x4e1dd6);},_0x1519c4=_0x4a55f7(0x16f),_0x2e422a=_0x4a55f7(0x17b);return(0x0,react_jsx_runtime[_0x4a55f7(0x399)])('div',{'className':_0x4a55f7(0x433),'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x399)])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86(_0x4a55f7(0x632))}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x4a55f7(0x4f2),'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])('input',{'ref':_0x3ba60a,'type':_0x4a55f7(0x4de),'accept':_0x4a55f7(0x1f4),'className':_0x4a55f7(0x5fc),'onChange':_0x4ce672}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x4a55f7(0x1f3),'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x435),{'type':_0x4a55f7(0x435),'disabled':_0x454765,'className':_0x4a55f7(0x195),'onClick':_0x53c70c,'children':(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x273),{'children':[_0x372c86('sheets-shape.fill.picture.insert'),'\x20']})}),_0xfa5462&&(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x14c),{'className':'\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','children':(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x4ab),{'src':_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c[_0x4a55f7(0x150)],'alt':'','className':_0x4a55f7(0x35b)})})]})]})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])('div',{'className':_0x4a55f7(0x3b5),'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x5f8)],{'className':_0x4a55f7(0x623),'value':_0x23188f,'disabled':_0x454765,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x18d2a4=>_0x18d2a4+'%','parser':_0x8947e5=>(_0x8947e5===null||_0x8947e5===void 0x0?void 0x0:_0x8947e5[_0x4a55f7(0x402)]('%',''))||'','onChange':_0x2345ab=>{const _0xa027e9=_0x4a55f7,_0x21abe2=(0x64-Math[_0xa027e9(0x1db)](0x0,Math[_0xa027e9(0x267)](0x64,_0x2345ab!==null&&_0x2345ab!==void 0x0?_0x2345ab:0x0)))/0x64;_0x3fba4e(_0x21abe2),_0x1e016d({'imageOpacity':_0x21abe2}),_0x39f5da[_0xa027e9(0x32c)](_univerjs_core[_0xa027e9(0x59d)],![]);},'onFocus':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],!![]),'onBlur':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design['Checkbox'],{'checked':_0x272ee6,'disabled':_0x454765,'onChange':_0x5ef018=>{const _0x223a97=_0x4a55f7,_0x49a534=_0x5ef018?_univerjs_pro_engine_shape[_0x223a97(0x1a1)]['Tile']:_univerjs_pro_engine_shape[_0x223a97(0x1a1)][_0x223a97(0x4b9)];_0x275369(_0x49a534),_0x1e016d({'imageFillMode':_0x49a534});},'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':'univer-text-sm','children':_0x372c86(_0x4a55f7(0x1b8))})}),_0x272ee6&&(0x0,react_jsx_runtime['jsxs'])(_0x4a55f7(0x14c),{'className':'\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','children':[(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86('sheets-shape.fill.picture.offsetX')}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x14c),{'className':_0x4a55f7(0x3b5),'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x5f8)],{'className':_0x4a55f7(0x623),'value':_0x1ac7d4,'disabled':_0x454765,'step':0x1,'onChange':_0x2b9d8a=>{_0x485d34({'offsetX':_0x2b9d8a!==null&&_0x2b9d8a!==void 0x0?_0x2b9d8a:0x0}),_0x14cf1f(_0x2b9d8a!==null&&_0x2b9d8a!==void 0x0?_0x2b9d8a:0x0);},'onFocus':()=>_0x39f5da['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],![])})})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86(_0x4a55f7(0x641))}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x14c),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x5f8)],{'className':_0x4a55f7(0x623),'value':_0x1373ee,'disabled':_0x454765,'step':0x1,'onChange':_0x26d02f=>{_0x485d34({'offsetY':_0x26d02f!==null&&_0x26d02f!==void 0x0?_0x26d02f:0x0}),_0x48fa00(_0x26d02f!==null&&_0x26d02f!==void 0x0?_0x26d02f:0x0);},'onFocus':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],!![]),'onBlur':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],![])})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86(_0x4a55f7(0x5c6))}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])('div',{'className':_0x4a55f7(0x3b5),'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x5f8)],{'className':_0x4a55f7(0x623),'value':_0x137bea,'disabled':_0x454765,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x20f531=>_0x20f531+'%','parser':_0x7fcca7=>(_0x7fcca7===null||_0x7fcca7===void 0x0?void 0x0:_0x7fcca7[_0x4a55f7(0x402)]('%',''))||'','onChange':_0x1f8b22=>{const _0x7f9699=_0x4a55f7,_0x1529ba=Math[_0x7f9699(0x1db)](0.01,(_0x1f8b22!==null&&_0x1f8b22!==void 0x0?_0x1f8b22:0x64)/0x64);_0x3c1fac(_0x1529ba),_0x485d34({'scaleX':_0x1529ba}),_0x39f5da['setContextValue'](_univerjs_core[_0x7f9699(0x59d)],![]);},'onFocus':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],!![]),'onBlur':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],![])})})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86(_0x4a55f7(0x2c8))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x4a55f7(0x3b5),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':_0x4a55f7(0x623),'value':_0x37f670,'disabled':_0x454765,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x451d0c=>_0x451d0c+'%','parser':_0x917a7b=>(_0x917a7b===null||_0x917a7b===void 0x0?void 0x0:_0x917a7b['replace']('%',''))||'','onChange':_0x200f9a=>{const _0x479c52=Math['max'](0.01,(_0x200f9a!==null&&_0x200f9a!==void 0x0?_0x200f9a:0x64)/0x64);_0x36ba3a(_0x479c52),_0x485d34({'scaleY':_0x479c52}),_0x39f5da['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],!![]),'onBlur':()=>_0x39f5da['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])('div',{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])('span',{'className':_0x1519c4,'children':_0x372c86('sheets-shape.fill.picture.alignment')}),(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x14c),{'className':_0x4a55f7(0x2fb),'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x3d2)],{'className':_0x4a55f7(0x623),'value':_0x370373,'options':_0x44b53f,'disabled':_0x454765,'onChange':_0x18b255=>{_0x341824(_0x18b255),_0x485d34({'alignment':_0x18b255});}})})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4a55f7(0x185)],{'checked':_0x68815d,'disabled':_0x454765,'onChange':_0x70584=>{_0x5354ce(_0x70584),_0x1e016d({'imageRotateWithShape':_0x70584});},'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':_0x4a55f7(0x178),'children':_0x372c86(_0x4a55f7(0x2bb))})})]});}function ShapeFillEditor(_0x4191bd){const _0x2755b6=_0x101898;var _0x322054,_0x34f45e,_0x5ebbce;const _0x5034ad=(0x0,_univerjs_ui[_0x2755b6(0x14f)])(_univerjs_core['LocaleService']),_0x153c95=(0x0,_univerjs_ui[_0x2755b6(0x14f)])(_univerjs_core[_0x2755b6(0x55c)]),_0x577655=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2755b6(0x4b3)]),{shapeData:_0xc99449,isLineShape:_0x47e71f,unitId:_0x58f2e7,subUnitId:_0x25b15a,shapeId:_0x26cb7a,disableShapeOption:_0x1aa265}=_0x4191bd,[_0x319c3b,_0x3146d2]=(0x0,react[_0x2755b6(0x168)])(((_0x322054=_0xc99449[_0x2755b6(0x347)])===null||_0x322054===void 0x0?void 0x0:_0x322054[_0x2755b6(0x419)])||_univerjs_pro_engine_shape[_0x2755b6(0x2d3)]['SolidFill']),[_0x35f7ae,_0x1176b0]=(0x0,react[_0x2755b6(0x168)])(((_0x34f45e=_0xc99449[_0x2755b6(0x347)])===null||_0x34f45e===void 0x0?void 0x0:_0x34f45e[_0x2755b6(0x61a)])||_univerjs_pro_engine_shape['ShapeDefaultConfig']['fill']),[_0x3c117b,_0x1bd4d4]=(0x0,react['useState'])(((_0x5ebbce=_0xc99449[_0x2755b6(0x347)])===null||_0x5ebbce===void 0x0?void 0x0:_0x5ebbce[_0x2755b6(0x406)])||0x1),[_0x1dfa1f,_0x57a498]=(0x0,react[_0x2755b6(0x168)])(![]);if(_0x47e71f)return null;const _0x2396db=0x64-_0x3c117b*0x64;return(0x0,react_jsx_runtime['jsxs'])(_0x2755b6(0x14c),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x2755b6(0x399)])(_univerjs_design[_0x2755b6(0x1e6)],{'value':_0x319c3b,'disabled':_0x1aa265,'onChange':_0x4d1290=>{const _0x38ed2f=_0x2755b6;var _0x32426f;updateShapeData(_0x153c95,_0x58f2e7,_0x25b15a,_0x26cb7a,{'oldShapeData':{'fill':{'fillType':(_0x32426f=_0xc99449[_0x38ed2f(0x347)])===null||_0x32426f===void 0x0?void 0x0:_0x32426f['fillType']}}},{'fill':{'fillType':_0x4d1290}}),_0x3146d2(_0x4d1290);},'direction':_0x2755b6(0x59a),'children':[(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x11b)],{'value':_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x218)],'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x273),{'className':_0x2755b6(0x178),'children':_0x5034ad['t'](_0x2755b6(0x4b8))})}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x2755b6(0x15c)],'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])('span',{'className':_0x2755b6(0x178),'children':_0x5034ad['t'](_0x2755b6(0x1bf))})}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x11b)],{'value':_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x46f)],'children':(0x0,react_jsx_runtime['jsx'])(_0x2755b6(0x273),{'className':_0x2755b6(0x178),'children':_0x5034ad['t']('sheets-shape.fill.gradientFill')})}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x11b)],{'value':_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x487)],'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])('span',{'className':_0x2755b6(0x178),'children':_0x5034ad['t'](_0x2755b6(0x38c))})})]}),_0x319c3b===_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x15c)]&&(0x0,react_jsx_runtime[_0x2755b6(0x399)])(_0x2755b6(0x14c),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','children':[(0x0,react_jsx_runtime[_0x2755b6(0x399)])(_0x2755b6(0x14c),{'className':_0x2755b6(0x583),'children':[(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x273),{'className':_0x2755b6(0x2ef),'children':_0x5034ad['t'](_0x2755b6(0x42b))}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x313)],{'disabled':_0x1aa265,'overlay':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x14c),{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x3ab)],{'value':_0x35f7ae,'onChange':_0x5140de=>{const _0x2132ad=_0x2755b6;var _0x2a59d2;updateShapeData(_0x153c95,_0x58f2e7,_0x25b15a,_0x26cb7a,{'oldShapeData':{'fill':{'color':(_0x2a59d2=_0xc99449['fill'])===null||_0x2a59d2===void 0x0?void 0x0:_0x2a59d2[_0x2132ad(0x61a)]}}},{'fill':{'color':_0x5140de}}),_0x1176b0(_0x5140de),_0x57a498(![]);}})}),'open':_0x1dfa1f,'onOpenChange':_0x57a498,'children':(0x0,react_jsx_runtime[_0x2755b6(0x399)])('a',{'className':_0x2755b6(0x2dd),'children':[(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':_0x2755b6(0x3a6),'extend':{'colorChannel1':_0x35f7ae}}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_icons[_0x2755b6(0x14a)],{'className':(0x0,_univerjs_design[_0x2755b6(0x4e1)])(_0x2755b6(0x4c9),{'univer-rotate-180':_0x1dfa1f})})]})})]}),(0x0,react_jsx_runtime[_0x2755b6(0x399)])('div',{'className':_0x2755b6(0x17b),'children':[(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x273),{'className':_0x2755b6(0x16f),'children':_0x5034ad['t'](_0x2755b6(0x577))}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x14c),{'className':_0x2755b6(0x170),'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x14c),{'className':_0x2755b6(0x3b5),'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x5f8)],{'className':'univer-w-full','value':_0x2396db,'disabled':_0x1aa265,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x25bc6a=>_0x25bc6a+'%','parser':_0x433a89=>(_0x433a89===null||_0x433a89===void 0x0?void 0x0:_0x433a89['replace']('%',''))||'','onChange':_0x52e622=>{const _0x466235=_0x2755b6,_0x120da2=(0x64-Math[_0x466235(0x1db)](0x0,Math[_0x466235(0x267)](0x64,_0x52e622!==null&&_0x52e622!==void 0x0?_0x52e622:0x0)))/0x64;_0x1bd4d4(_0x120da2),updateShapeData(_0x153c95,_0x58f2e7,_0x25b15a,_0x26cb7a,{'oldShapeData':{'fill':{..._0xc99449[_0x466235(0x347)],'fillType':_0x319c3b}}},{'fill':{..._0xc99449[_0x466235(0x347)],'fillType':_0x319c3b,'opacity':_0x120da2}}),_0x577655[_0x466235(0x32c)](_univerjs_core[_0x466235(0x59d)],![]);},'onFocus':()=>_0x577655[_0x2755b6(0x32c)](_univerjs_core[_0x2755b6(0x59d)],!![]),'onBlur':()=>{const _0x2cd581=_0x2755b6;_0x577655[_0x2cd581(0x32c)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})})]})]}),_0x319c3b===_univerjs_pro_engine_shape[_0x2755b6(0x2d3)]['GradientFill']&&(0x0,react_jsx_runtime[_0x2755b6(0x326)])(GradientFillEditor,{'shapeData':_0xc99449,'disableShapeOption':_0x1aa265,'onUpdate':_0x3e2ae6=>{const _0xd87282=_0x2755b6;updateShapeData(_0x153c95,_0x58f2e7,_0x25b15a,_0x26cb7a,{'oldShapeData':{'fill':{..._0xc99449[_0xd87282(0x347)]}}},{'fill':{..._0xc99449[_0xd87282(0x347)],..._0x3e2ae6}});}}),_0x319c3b===_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x487)]&&(0x0,react_jsx_runtime['jsx'])(ShapeImageFillEditor,{'unitId':_0x58f2e7,'subUnitId':_0x25b15a,'shapeId':_0x26cb7a,'shapeData':_0xc99449,'disableShapeOption':_0x1aa265})]});}function shapeGradientTypeToPickerType(_0x223ca1){const _0x3a93e3=_0x101898;switch(_0x223ca1){case _univerjs_pro_engine_shape[_0x3a93e3(0x19d)][_0x3a93e3(0x216)]:return _0x3a93e3(0x21c);case _univerjs_pro_engine_shape[_0x3a93e3(0x19d)]['Radial']:return _0x3a93e3(0x241);case _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x3a93e3(0x379)]:return _0x3a93e3(0x421);case _univerjs_pro_engine_shape[_0x3a93e3(0x19d)][_0x3a93e3(0x37b)]:return _0x3a93e3(0x53c);default:return _0x3a93e3(0x21c);}}function pickerTypeToShapeGradientType(_0x1b7f74){const _0x40a900=_0x101898;switch(_0x1b7f74){case _0x40a900(0x21c):return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x40a900(0x216)];case'radial':return _univerjs_pro_engine_shape[_0x40a900(0x19d)]['Radial'];case _0x40a900(0x421):return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x40a900(0x379)];case'diamond':return _univerjs_pro_engine_shape[_0x40a900(0x19d)]['Diamond'];default:return _univerjs_pro_engine_shape[_0x40a900(0x19d)][_0x40a900(0x216)];}}function GradientFillEditor(_0x551ce8){const _0x4a3e27=_0x101898,{shapeData:_0x46095e,disableShapeOption:_0x5411c5,onUpdate:_0x28f7ad}=_0x551ce8,_0x355846=(0x0,react[_0x4a3e27(0x681)])(()=>{const _0x1332ab=_0x4a3e27;var _0x1e04d0;const _0x50311c=_0x46095e[_0x1332ab(0x347)];return{'type':shapeGradientTypeToPickerType(_0x50311c===null||_0x50311c===void 0x0?void 0x0:_0x50311c[_0x1332ab(0x4bd)]),'angle':(_0x1e04d0=_0x50311c===null||_0x50311c===void 0x0?void 0x0:_0x50311c['gradientAngle'])!==null&&_0x1e04d0!==void 0x0?_0x1e04d0:0x5a,'stops':(_0x50311c===null||_0x50311c===void 0x0?void 0x0:_0x50311c[_0x1332ab(0x4b6)])&&_0x50311c[_0x1332ab(0x4b6)][_0x1332ab(0x1ec)]>=0x2?_0x50311c[_0x1332ab(0x4b6)]['map'](_0x1745e5=>({'color':_0x1745e5[_0x1332ab(0x61a)],'offset':_0x1745e5[_0x1332ab(0x5d9)]*0x64})):[{'color':(_0x50311c===null||_0x50311c===void 0x0?void 0x0:_0x50311c[_0x1332ab(0x61a)])||_0x1332ab(0x475),'offset':0x0},{'color':_0x1332ab(0x2bc),'offset':0x64}]};},[_0x46095e['fill']]),_0x240fc8=_0x2c07e0=>{const _0x3beb80=_0x4a3e27,_0x189f02=pickerTypeToShapeGradientType(_0x2c07e0[_0x3beb80(0x489)]),_0x215180=_0x2c07e0[_0x3beb80(0x2f5)];_0x28f7ad({'gradientType':_0x189f02,'gradientAngle':_0x215180,'gradientStops':_0x2c07e0[_0x3beb80(0x346)]['map'](_0xe862f1=>({'color':_0xe862f1['color'],'position':_0xe862f1[_0x3beb80(0x2ca)]/0x64}))});};return(0x0,react_jsx_runtime[_0x4a3e27(0x326)])(_0x4a3e27(0x14c),{'className':_0x4a3e27(0x43f),'children':(0x0,react_jsx_runtime[_0x4a3e27(0x326)])(_univerjs_design['GradientColorPicker'],{'value':_0x355846,'onChange':_0x240fc8})});}function ShapeLineEditor(_0x3de972){const _0x2c39f8=_0x101898;var _0x4cb4c8,_0x32736c,_0x2def10,_0x579495,_0x32f412,_0x281f77,_0x2b7054,_0x5b4791,_0x713225,_0x329a73,_0x4edff5,_0xb702d,_0x3e105a,_0x5bb2df,_0x23b4a3,_0x2d7a35;const _0x4f933c=(0x0,_univerjs_ui[_0x2c39f8(0x14f)])(_univerjs_core['LocaleService']),_0x429fec=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2c39f8(0x55c)]),_0xb0b3bb=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['IContextService']),{shapeData:_0x295145,isLineShape:_0x453eb1,unitId:_0x267776,subUnitId:_0x41d803,shapeId:_0x3ce84e,disableShapeOption:_0x42ea3d}=_0x3de972,_0x290a5c=_0x295145[_0x2c39f8(0x600)],[_0x3b263f,_0x9ec8f1]=(0x0,react['useState'])((_0x4cb4c8=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x351)])!==null&&_0x4cb4c8!==void 0x0?_0x4cb4c8:_univerjs_pro_engine_shape[_0x2c39f8(0x3ce)]['SolidLine']),[_0x27853f,_0x129b19]=(0x0,react[_0x2c39f8(0x168)])((_0x32736c=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x61a)])!==null&&_0x32736c!==void 0x0?_0x32736c:_univerjs_pro_engine_shape[_0x2c39f8(0x30a)][_0x2c39f8(0x600)]),[_0xa2fc80,_0x355cb0]=(0x0,react['useState'])((_0x2def10=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x406)])!==null&&_0x2def10!==void 0x0?_0x2def10:0x1),[_0x10dc98,_0x597c4a]=(0x0,react['useState'])((_0x579495=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x604)])!==null&&_0x579495!==void 0x0?_0x579495:_univerjs_pro_engine_shape[_0x2c39f8(0x30a)][_0x2c39f8(0x192)]),[_0x142414,_0xf2f553]=(0x0,react[_0x2c39f8(0x168)])((_0x32f412=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x184)])!==null&&_0x32f412!==void 0x0?_0x32f412:_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x62b)]),[_0x3e5817,_0x5d256]=(0x0,react[_0x2c39f8(0x168)])((_0x281f77=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x162)])!==null&&_0x281f77!==void 0x0?_0x281f77:_univerjs_pro_engine_shape[_0x2c39f8(0x449)]['Flat']),[_0x2726e9,_0x56fe3d]=(0x0,react[_0x2c39f8(0x168)])((_0x2b7054=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x189)])!==null&&_0x2b7054!==void 0x0?_0x2b7054:_univerjs_pro_engine_shape[_0x2c39f8(0x5f4)]['Miter']),[_0x4c1c7a,_0xef070]=(0x0,react[_0x2c39f8(0x168)])((_0x5b4791=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c['sketchType'])!==null&&_0x5b4791!==void 0x0?_0x5b4791:_univerjs_pro_engine_shape[_0x2c39f8(0x495)]['None']),_0xcb312a=_0x295145,[_0x17ecb5,_0xe01a5e]=(0x0,react[_0x2c39f8(0x168)])((_0x713225=(_0x329a73=_0xcb312a['ln'])===null||_0x329a73===void 0x0||(_0x329a73=_0x329a73[_0x2c39f8(0x231)])===null||_0x329a73===void 0x0?void 0x0:_0x329a73[_0x2c39f8(0x489)])!==null&&_0x713225!==void 0x0?_0x713225:_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x678)]),[_0x15d897,_0x2a2226]=(0x0,react['useState'])((_0x4edff5=(_0xb702d=_0xcb312a['ln'])===null||_0xb702d===void 0x0||(_0xb702d=_0xb702d[_0x2c39f8(0x231)])===null||_0xb702d===void 0x0?void 0x0:_0xb702d[_0x2c39f8(0x2a7)])!==null&&_0x4edff5!==void 0x0?_0x4edff5:_univerjs_pro_engine_shape[_0x2c39f8(0x47e)][_0x2c39f8(0x22e)]),[_0x21a1e1,_0x1e5b5e]=(0x0,react[_0x2c39f8(0x168)])((_0x3e105a=(_0x5bb2df=_0xcb312a['ln'])===null||_0x5bb2df===void 0x0||(_0x5bb2df=_0x5bb2df[_0x2c39f8(0x3b8)])===null||_0x5bb2df===void 0x0?void 0x0:_0x5bb2df[_0x2c39f8(0x489)])!==null&&_0x3e105a!==void 0x0?_0x3e105a:_univerjs_pro_engine_shape[_0x2c39f8(0x67d)]['None']),[_0xdbbb3b,_0x508adc]=(0x0,react[_0x2c39f8(0x168)])((_0x23b4a3=(_0x2d7a35=_0xcb312a['ln'])===null||_0x2d7a35===void 0x0||(_0x2d7a35=_0x2d7a35['endArrow'])===null||_0x2d7a35===void 0x0?void 0x0:_0x2d7a35[_0x2c39f8(0x2a7)])!==null&&_0x23b4a3!==void 0x0?_0x23b4a3:_univerjs_pro_engine_shape[_0x2c39f8(0x47e)][_0x2c39f8(0x22e)]),[_0x377066,_0x39fe4a]=(0x0,react[_0x2c39f8(0x168)])(![]),_0x3d6a38=0x64-_0xa2fc80*0x64,_0x9b7000=[{'label':_0x4f933c['t'](_0x2c39f8(0x619)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x2c39f8(0x62b)])},{'label':_0x4f933c['t'](_0x2c39f8(0x287)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x5a5)])},{'label':_0x4f933c['t'](_0x2c39f8(0x3e9)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x52e)])},{'label':_0x4f933c['t'](_0x2c39f8(0x3f3)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x2b4)])},{'label':_0x4f933c['t'](_0x2c39f8(0x427)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum']['DashDot'])},{'label':_0x4f933c['t'](_0x2c39f8(0x383)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x2c39f8(0x5c0)])},{'label':_0x4f933c['t'](_0x2c39f8(0x58d)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x4f4)])},{'label':_0x4f933c['t'](_0x2c39f8(0x138)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x4a4)])}],_0x3fb23b=[{'label':_0x4f933c['t']('sheets-shape.line.capType.flat'),'value':String(_univerjs_pro_engine_shape['ShapeLineCapEnum'][_0x2c39f8(0x457)])},{'label':_0x4f933c['t'](_0x2c39f8(0x1cc)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x449)][_0x2c39f8(0x43a)])},{'label':_0x4f933c['t'](_0x2c39f8(0x1a8)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x449)][_0x2c39f8(0x4f1)])}],_0x478e95=[{'label':_0x4f933c['t'](_0x2c39f8(0x2c6)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x495)][_0x2c39f8(0x678)])},{'label':_0x4f933c['t'](_0x2c39f8(0x4cd)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x495)][_0x2c39f8(0x3ff)])},{'label':_0x4f933c['t']('sheets-shape.line.sketchType.freehand'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x495)]['Freehand'])},{'label':_0x4f933c['t'](_0x2c39f8(0x2d0)),'value':String(_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x2c39f8(0x680)])}],_0x49b9ea=[{'label':_0x4f933c['t']('sheets-shape.line.joinType.miter'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x5f4)][_0x2c39f8(0x4d2)])},{'label':_0x4f933c['t'](_0x2c39f8(0x143)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x5f4)][_0x2c39f8(0x43a)])},{'label':_0x4f933c['t'](_0x2c39f8(0x654)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x5f4)]['Bevel'])}],_0x454462=[{'label':_0x4f933c['t'](_0x2c39f8(0x3de)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x678)])},{'label':_0x4f933c['t']('sheets-shape.line.arrowType.arrow'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x177)])},{'label':_0x4f933c['t'](_0x2c39f8(0x58b)),'value':String(_univerjs_pro_engine_shape['ShapeArrowTypeEnum']['OpenArrow'])},{'label':_0x4f933c['t'](_0x2c39f8(0x220)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x543)])},{'label':_0x4f933c['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x5ab)])},{'label':_0x4f933c['t']('sheets-shape.line.arrowType.ovalArrow'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x671)])}],_0x9b600f=[{'label':_0x4f933c['t'](_0x2c39f8(0x634)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x47e)][_0x2c39f8(0x5fe)])},{'label':_0x4f933c['t'](_0x2c39f8(0x1e7)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x47e)]['Medium'])},{'label':_0x4f933c['t'](_0x2c39f8(0x2b3)),'value':String(_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x2c39f8(0x5d6)])}];return(0x0,react_jsx_runtime[_0x2c39f8(0x399)])('div',{'className':_0x2c39f8(0x4bf),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_univerjs_design[_0x2c39f8(0x1e6)],{'value':String(_0x3b263f),'disabled':_0x42ea3d,'onChange':_0x3b0c86=>{const _0x29cf7a=_0x2c39f8;var _0x4b4a1b;_0x9ec8f1(Number(_0x3b0c86)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x4b4a1b=_0x295145[_0x29cf7a(0x600)])===null||_0x4b4a1b===void 0x0?void 0x0:_0x4b4a1b[_0x29cf7a(0x351)]}}},{'stroke':{'lineStrokeType':Number(_0x3b0c86)}});},'direction':_0x2c39f8(0x59a),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x11b)],{'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x3ce)][_0x2c39f8(0x58f)]),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x178),'children':_0x4f933c['t'](_0x2c39f8(0x37a))})}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['Radio'],{'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x3ce)][_0x2c39f8(0x53a)]),'children':(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x273),{'className':'univer-text-sm','children':_0x4f933c['t'](_0x2c39f8(0x567))})})]}),_0x3b263f!==_univerjs_pro_engine_shape[_0x2c39f8(0x3ce)]['NoLine']&&(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x373),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x583),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x20e))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['Dropdown'],{'disabled':_0x42ea3d,'overlay':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x5d3),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x3ab)],{'value':_0x27853f,'onChange':_0x5aa7c0=>{const _0x2d63b9=_0x2c39f8;var _0x1c90f0;updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'color':(_0x1c90f0=_0x295145[_0x2d63b9(0x600)])===null||_0x1c90f0===void 0x0?void 0x0:_0x1c90f0['color']}}},{'stroke':{'color':_0x5aa7c0}}),_0x129b19(_0x5aa7c0),_0x39fe4a(![]);}})}),'open':_0x377066,'onOpenChange':_0x39fe4a,'children':(0x0,react_jsx_runtime[_0x2c39f8(0x399)])('a',{'className':_0x2c39f8(0x2dd),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_icons[_0x2c39f8(0x321)],{'className':_0x2c39f8(0x5fb),'extend':{'colorChannel1':_0x27853f}}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_icons[_0x2c39f8(0x14a)],{'className':(0x0,_univerjs_design[_0x2c39f8(0x4e1)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x377066})})]})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x16f),'children':_0x4f933c['t'](_0x2c39f8(0x1f0))}),(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x17b),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])('div',{'className':_0x2c39f8(0x127),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['InputNumber'],{'className':_0x2c39f8(0x623),'value':_0x3d6a38,'disabled':_0x42ea3d,'min':0x0,'max':0x64,'formatter':_0x5bf2d1=>_0x5bf2d1+'%','parser':_0x5dfed8=>(_0x5dfed8===null||_0x5dfed8===void 0x0?void 0x0:_0x5dfed8[_0x2c39f8(0x402)]('%',''))||'','onChange':_0x5ece91=>{const _0x3bbbe5=_0x2c39f8;var _0x23fbee;const _0x4d628c=(0x64-Math[_0x3bbbe5(0x1db)](0x0,Math['min'](0x64,_0x5ece91!==null&&_0x5ece91!==void 0x0?_0x5ece91:0x0)))/0x64;_0x355cb0(_0x4d628c),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'opacity':(_0x23fbee=_0x295145[_0x3bbbe5(0x600)])===null||_0x23fbee===void 0x0?void 0x0:_0x23fbee[_0x3bbbe5(0x406)]}}},{'stroke':{'opacity':_0x4d628c}}),_0xb0b3bb[_0x3bbbe5(0x32c)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0xb0b3bb[_0x2c39f8(0x32c)](_univerjs_core[_0x2c39f8(0x59d)],!![]),'onBlur':_0x3f594c=>{const _0x55df3b=_0x2c39f8;_0xb0b3bb[_0x55df3b(0x32c)](_univerjs_core[_0x55df3b(0x59d)],![]);}})})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x17b),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x4ac))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x2c39f8(0x3b5),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x5f8)],{'className':_0x2c39f8(0x623),'disabled':_0x42ea3d,'value':_0x10dc98,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x27aa03=>_0x27aa03+_0x2c39f8(0x3ac),'parser':_0x573586=>(_0x573586===null||_0x573586===void 0x0?void 0x0:_0x573586['replace'](_0x2c39f8(0x3ac),''))||'','onChange':_0x2e8739=>{const _0x4b9b53=_0x2c39f8;if(!Number[_0x4b9b53(0x630)](_0x2e8739)&&_0x2e8739!==null){var _0x5661a9;updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'width':(_0x5661a9=_0x295145['stroke'])===null||_0x5661a9===void 0x0?void 0x0:_0x5661a9['width']}}},{'stroke':{'width':_0x2e8739}});}_0xb0b3bb[_0x4b9b53(0x32c)](_univerjs_core[_0x4b9b53(0x59d)],![]);},'onFocus':()=>_0xb0b3bb['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':_0xf1ff63=>{const _0x237dc9=_0x2c39f8;_0xb0b3bb[_0x237dc9(0x32c)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x2f6))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0x142414),'options':_0x9b7000,'disabled':_0x42ea3d,'onChange':_0x72ff19=>{const _0x23343c=_0x2c39f8;var _0x4d68bc;_0xf2f553(Number(_0x72ff19)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'dashType':(_0x4d68bc=_0x295145[_0x23343c(0x600)])===null||_0x4d68bc===void 0x0?void 0x0:_0x4d68bc[_0x23343c(0x184)]}}},{'stroke':{'dashType':Number(_0x72ff19)}});}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4f933c['t']('sheets-shape.line.capType.title')}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])('div',{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0x3e5817),'options':_0x3fb23b,'disabled':_0x42ea3d,'onChange':_0x3c931a=>{const _0x389f2b=_0x2c39f8;var _0x1ade85;_0x5d256(Number(_0x3c931a)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'capType':(_0x1ade85=_0x295145[_0x389f2b(0x600)])===null||_0x1ade85===void 0x0?void 0x0:_0x1ade85[_0x389f2b(0x162)]}}},{'stroke':{'capType':Number(_0x3c931a)}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x3e1))}),(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['Select'],{'className':'univer-w-full','value':String(_0x2726e9),'options':_0x49b9ea,'disabled':_0x42ea3d,'onChange':_0xb3e15d=>{const _0x444785=_0x2c39f8;var _0x1962e1;_0x56fe3d(Number(_0xb3e15d)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'lineJoinType':(_0x1962e1=_0x295145[_0x444785(0x600)])===null||_0x1962e1===void 0x0?void 0x0:_0x1962e1[_0x444785(0x189)]}}},{'stroke':{'lineJoinType':Number(_0xb3e15d)}});}})})]}),!_0x453eb1&&(0x0,react_jsx_runtime['jsxs'])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4f933c['t'](_0x2c39f8(0x595))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0x4c1c7a),'options':_0x478e95,'disabled':_0x42ea3d,'onChange':_0x5a2154=>{const _0x2e4b5f=_0x2c39f8;var _0x2a2112;_0xef070(Number(_0x5a2154)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'sketchType':(_0x2a2112=_0x295145[_0x2e4b5f(0x600)])===null||_0x2a2112===void 0x0?void 0x0:_0x2a2112[_0x2e4b5f(0x657)]}}},{'stroke':{'sketchType':Number(_0x5a2154)}});}})})]}),_0x453eb1&&(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(react_jsx_runtime['Fragment'],{'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x583),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x273),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4f933c['t'](_0x2c39f8(0x131))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':'univer-w-28','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':_0x2c39f8(0x623),'value':String(_0x17ecb5),'options':_0x454462,'onChange':_0xd74357=>{var _0x4200d6;_0xe01a5e(Number(_0xd74357)),updateLineShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x4200d6=_0x295145['ln'])===null||_0x4200d6===void 0x0||(_0x4200d6=_0x4200d6['startArrow'])===null||_0x4200d6===void 0x0?void 0x0:_0x4200d6['type']}}}},{'ln':{'startArrow':{'type':Number(_0xd74357)}}});}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x258))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])('div',{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['Select'],{'className':_0x2c39f8(0x623),'value':String(_0x15d897),'options':_0x9b600f,'onChange':_0x5f428c=>{const _0x539df6=_0x2c39f8;var _0x3a7a2;_0x2a2226(Number(_0x5f428c)),updateLineShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x3a7a2=_0x295145['ln'])===null||_0x3a7a2===void 0x0||(_0x3a7a2=_0x3a7a2[_0x539df6(0x231)])===null||_0x3a7a2===void 0x0?void 0x0:_0x3a7a2[_0x539df6(0x2a7)]}}}},{'ln':{'startArrow':{'size':Number(_0x5f428c)}}});}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x583),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x265))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0x21a1e1),'options':_0x454462,'onChange':_0x5b5c86=>{const _0xa65583=_0x2c39f8;var _0x4cb23b;_0x1e5b5e(Number(_0x5b5c86)),updateLineShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x4cb23b=_0x295145['ln'])===null||_0x4cb23b===void 0x0||(_0x4cb23b=_0x4cb23b[_0xa65583(0x3b8)])===null||_0x4cb23b===void 0x0?void 0x0:_0x4cb23b[_0xa65583(0x489)]}}}},{'ln':{'endArrow':{'type':Number(_0x5b5c86)}}});}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x583),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x348))}),(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0xdbbb3b),'options':_0x9b600f,'onChange':_0xc54075=>{const _0x50b864=_0x2c39f8;var _0x17a0fb;_0x508adc(Number(_0xc54075)),updateLineShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x17a0fb=_0x295145['ln'])===null||_0x17a0fb===void 0x0||(_0x17a0fb=_0x17a0fb[_0x50b864(0x3b8)])===null||_0x17a0fb===void 0x0?void 0x0:_0x17a0fb[_0x50b864(0x2a7)]}}}},{'ln':{'endArrow':{'size':Number(_0xc54075)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x167f05=_0x101898,_0x4b2484=(0x0,_univerjs_ui[_0x167f05(0x14f)])(_univerjs_drawing[_0x167f05(0x415)]),[_0xb8861f,_0x58a5cd]=(0x0,react[_0x167f05(0x168)])(_0x4b2484[_0x167f05(0x4f6)]());(0x0,react['useEffect'])(()=>{const _0x2ff932=_0x167f05,_0xee4237=_0x4b2484[_0x2ff932(0x5ed)][_0x2ff932(0x4fd)](_0x3148ec=>{_0x58a5cd(_0x3148ec);});return()=>{const _0x46753e=_0x2ff932;_0xee4237[_0x46753e(0x472)]();};},[]);if(_0xb8861f[_0x167f05(0x1ec)]===0x0)return null;return(0x0,react_jsx_runtime[_0x167f05(0x326)])(_0x167f05(0x14c),{'children':(0x0,react_jsx_runtime[_0x167f05(0x399)])('div',{'className':_0x167f05(0x202),'children':[(0x0,react_jsx_runtime[_0x167f05(0x326)])(_univerjs_drawing_ui[_0x167f05(0x54d)],{'drawings':_0xb8861f,'hasCropper':![]}),(0x0,react_jsx_runtime[_0x167f05(0x326)])(_univerjs_sheets_drawing_ui[_0x167f05(0x3fc)],{'drawings':_0xb8861f})]})});}function ShapeEditPanel(_0x3e74cf){const _0xca29fb=_0x101898,{shapeData:_0x3097f9,shapeId:_0x11b41c,shapeType:_0x4f2d0d,version:_0x4b2ee6,unitId:_0x1e79c6,subUnitId:_0xc7a9bb,disableShapeOption:_0x5f0e1d}=_0x3e74cf,_0x104231=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0xca29fb(0x334)]),_0x473d90=(0x0,_univerjs_pro_engine_shape[_0xca29fb(0x277)])(_0x4f2d0d),[_0x23e910,_0x3a1eaa]=(0x0,react[_0xca29fb(0x168)])(0x0),_0x1ea57e=[{'label':(0x0,react_jsx_runtime[_0xca29fb(0x326)])('div',{'children':_0x104231['t'](_0xca29fb(0x384))}),'children':(0x0,react_jsx_runtime['jsx'])('section',{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0xca29fb(0x326)])(ShapeFillEditor,{'shapeId':_0x11b41c,'shapeData':_0x3097f9,'isLineShape':_0x473d90,'subUnitId':_0xc7a9bb,'unitId':_0x1e79c6,'disableShapeOption':_0x5f0e1d},_0x11b41c)})},{'label':(0x0,react_jsx_runtime[_0xca29fb(0x326)])(_0xca29fb(0x14c),{'children':_0x104231['t'](_0xca29fb(0x49f))}),'children':(0x0,react_jsx_runtime['jsx'])(_0xca29fb(0x31d),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0xca29fb(0x326)])(ShapeLineEditor,{'shapeId':_0x11b41c,'shapeData':_0x3097f9,'isLineShape':_0x473d90,'subUnitId':_0xc7a9bb,'unitId':_0x1e79c6,'disableShapeOption':_0x5f0e1d},_0x11b41c)})}];return(0x0,react_jsx_runtime[_0xca29fb(0x399)])(_0xca29fb(0x14c),{'className':_0xca29fb(0x275),'children':[(0x0,react_jsx_runtime['jsxs'])(_0xca29fb(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','children':[(0x0,react_jsx_runtime[_0xca29fb(0x399)])(_0xca29fb(0x14c),{'className':(0x0,_univerjs_design['clsx'])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',_0x23e910===0x0?'univer-text-primary-600':_0xca29fb(0x5fb)),'onClick':()=>_0x3a1eaa(0x0),'children':[_0x104231['t']('sheets-shape.shapeStyle'),(0x0,react_jsx_runtime['jsx'])(_0xca29fb(0x14c),{'className':(0x0,_univerjs_design[_0xca29fb(0x4e1)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md',{'univer-bg-primary-600':_0x23e910===0x0,'univer-bg-transparent':_0x23e910!==0x0})})]}),(0x0,react_jsx_runtime[_0xca29fb(0x399)])(_0xca29fb(0x14c),{'className':(0x0,_univerjs_design['clsx'])(_0xca29fb(0x243),{'univer-text-primary-600':_0x23e910===0x1,'univer-text-gray-500':_0x23e910!==0x1}),'onClick':()=>_0x3a1eaa(0x1),'children':[_0x104231['t'](_0xca29fb(0x3c6)),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0xca29fb(0x4e1)])(_0xca29fb(0x387),{'univer-bg-primary-600':_0x23e910===0x1,'univer-bg-transparent':_0x23e910!==0x1})})]})]}),(0x0,react_jsx_runtime[_0xca29fb(0x326)])(_0xca29fb(0x14c),{'className':_0xca29fb(0x507),'children':_0x23e910===0x0?(0x0,react_jsx_runtime[_0xca29fb(0x326)])(_0xca29fb(0x14c),{'className':'','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0xca29fb(0x1d3)],{'items':_0x1ea57e})},_0x4b2ee6):(0x0,react_jsx_runtime[_0xca29fb(0x326)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x101898(0x1fe)]{constructor(_0x9cdda2,_0x57931f){const _0x202dc3=_0x101898;super(_0x9cdda2,_0x57931f),_defineProperty(this,'_shapeId',null),_defineProperty(this,'_adjName',null),_defineProperty(this,'_unitId',null),_defineProperty(this,'_subUnitId',null);if(_0x57931f)this[_0x202dc3(0x188)](_0x57931f);}[_0x101898(0x54c)](){const _0x22b585=_0x101898;return{'unitId':this[_0x22b585(0x2ae)],'subUnitId':this[_0x22b585(0x1a9)],'drawingId':this[_0x22b585(0x61c)]};}[_0x101898(0x188)](_0x570d8b){const _0x39ff7e=_0x101898;if(typeof _0x570d8b[_0x39ff7e(0x49a)]!==_0x39ff7e(0x4c4))this['_shapeId']=_0x570d8b[_0x39ff7e(0x49a)];if(typeof _0x570d8b[_0x39ff7e(0x1aa)]!==_0x39ff7e(0x4c4))this[_0x39ff7e(0x32a)]=_0x570d8b['adjName'];if(typeof _0x570d8b['unitId']!==_0x39ff7e(0x4c4))this['_unitId']=_0x570d8b[_0x39ff7e(0x3aa)];if(typeof _0x570d8b[_0x39ff7e(0x343)]!==_0x39ff7e(0x4c4))this[_0x39ff7e(0x1a9)]=_0x570d8b[_0x39ff7e(0x343)];this['transformByState']({'width':_0x570d8b['width'],'height':_0x570d8b[_0x39ff7e(0x57c)]});}[_0x101898(0x18c)](_0x52105a){const _0x54a5e5=_0x101898;_univerjs_engine_render['Circle'][_0x54a5e5(0x15d)](_0x52105a,{'radius':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x54a5e5(0x564)],'fill':_univerjs_pro_engine_shape[_0x54a5e5(0x30a)][_0x54a5e5(0x1d1)],'stroke':_univerjs_pro_engine_shape[_0x54a5e5(0x30a)][_0x54a5e5(0x25d)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x48b1c6,_0x276fbe,_0x2a96d3,_0x15e196,_0x238083,_0x5c6c51,_0x1f0564,_0x944e9a){const _0x7cc641=_0x101898;super(),this[_0x7cc641(0x643)]=_0x48b1c6,this[_0x7cc641(0x5a9)]=_0x276fbe,this[_0x7cc641(0x3c9)]=_0x2a96d3,this[_0x7cc641(0x352)]=_0x15e196,this['_renderManagerService']=_0x238083,this[_0x7cc641(0x270)]=_0x5c6c51,this[_0x7cc641(0x2e4)]=_0x1f0564,this[_0x7cc641(0x36d)]=_0x944e9a,_defineProperty(this,'_activeShapeId',null),_defineProperty(this,'_unitId',null),_defineProperty(this,_0x7cc641(0x1a9),null),_defineProperty(this,_0x7cc641(0x2b5),void 0x0),_defineProperty(this,_0x7cc641(0x3d3),[]),_defineProperty(this,'_baseShapeLeft',0x0),_defineProperty(this,'_baseShapeTop',0x0),_defineProperty(this,_0x7cc641(0x370),0x0),_defineProperty(this,_0x7cc641(0x1d6),0x0),_defineProperty(this,_0x7cc641(0x353),![]),_defineProperty(this,_0x7cc641(0x2f3),void 0x0),_defineProperty(this,_0x7cc641(0x40e),void 0x0),_defineProperty(this,_0x7cc641(0x58e),void 0x0),_defineProperty(this,_0x7cc641(0x3fa),void 0x0),_defineProperty(this,_0x7cc641(0x548),![]),this['_registerDrawingFocusChangeHandler'](),this[_0x7cc641(0x490)]();}[_0x101898(0x3cd)](_0x3e0aac,_0x39586e,_0x245178){const _0x5eeafb=_0x101898,_0x1f7a6b=this[_0x5eeafb(0x352)][_0x5eeafb(0x148)](_0x3e0aac,_0x39586e,_0x245178);if(_0x1f7a6b)return _0x1f7a6b[_0x5eeafb(0x23f)]();}['clearAdjustControls'](){const _0x220ec1=_0x101898;this[_0x220ec1(0x1eb)]();}[_0x101898(0x429)](){const _0x2fac74=_0x101898;this[_0x2fac74(0x36b)](!![]);}[_0x101898(0x176)](_0x228fc8){const _0x1159ab=_0x101898;this[_0x1159ab(0x548)]=_0x228fc8;}[_0x101898(0x3ae)](_0x4c7c6e,_0xad3b35,_0x1c73b4,_0xec20e2){const _0x34916a=_0x101898,_0x22f9fc=this[_0x34916a(0x352)][_0x34916a(0x148)](_0x4c7c6e,_0xad3b35,_0x1c73b4);if(_0x22f9fc)return _0x22f9fc[_0x34916a(0x2ed)](_0xec20e2);}[_0x101898(0x22d)](_0x39be6a=![]){const _0x278ee8=_0x101898;if(this[_0x278ee8(0x2ae)]===null||this[_0x278ee8(0x1a9)]===null||this['_activeShapeId']===null)return;const _0x563430=this['_renderManagerService'][_0x278ee8(0x1f9)](this[_0x278ee8(0x2ae)]);if(!_0x563430)return;if(!_0x563430[_0x278ee8(0x593)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x278ee8(0x442)]())return;const {scene:_0x4f4b20}=_0x563430,_0x29f829={'unitId':this[_0x278ee8(0x2ae)],'subUnitId':this[_0x278ee8(0x1a9)],'drawingId':this[_0x278ee8(0x2c9)]},_0x224b44=this[_0x278ee8(0x3c9)][_0x278ee8(0x52f)](_0x29f829),{transform:_0x9b2565}=_0x224b44;if(!_0x9b2565)return;if(_0x224b44[_0x278ee8(0x324)]!==_univerjs_core[_0x278ee8(0x229)][_0x278ee8(0x535)])return;const {left:_0x2d9dce,top:_0x5cdb49,width:_0x417070,height:_0x10e19b,flipX:_0x21a170,flipY:_0xf1aca8,angle:angle=0x0}=_0x9b2565;if(_0x2d9dce===void 0x0||_0x5cdb49===void 0x0)return;if(_0x39be6a)this[_0x278ee8(0x2b5)]=this[_0x278ee8(0x3cd)](this[_0x278ee8(0x2ae)],this[_0x278ee8(0x1a9)],this[_0x278ee8(0x2c9)]);const _0x59d570=this[_0x278ee8(0x2b5)];for(let _0xd0740f=0x0;_0xd0740f<_0x59d570[_0x278ee8(0x1ec)];_0xd0740f++){const _0x2bf592=_0x59d570[_0xd0740f];let _0x160c4c=_0x2bf592['x'],_0x22e7d6=_0x2bf592['y'];if(_0x21a170)_0x160c4c=(_0x417070||0x0)-_0x160c4c;if(_0xf1aca8)_0x22e7d6=(_0x10e19b||0x0)-_0x22e7d6;if(angle!==0x0){const _0x463e46=(_0x417070||0x0)/0x2,_0x518416=(_0x10e19b||0x0)/0x2,_0x5e574c=angle*Math['PI']/0xb4,_0x322450=Math[_0x278ee8(0x409)](_0x5e574c),_0x518990=Math[_0x278ee8(0x315)](_0x5e574c),_0xc2c59f=_0x160c4c-_0x463e46,_0x30d532=_0x22e7d6-_0x518416;_0x160c4c=_0x463e46+(_0xc2c59f*_0x322450-_0x30d532*_0x518990),_0x22e7d6=_0x518416+(_0xc2c59f*_0x518990+_0x30d532*_0x322450);}const _0x2d3d72={'x':_0x160c4c,'y':_0x22e7d6,'adjName':_0x2bf592[_0x278ee8(0x1aa)]};this[_0x278ee8(0x4e4)](_0x4f4b20,_0x2d3d72,_0x2d3d72[_0x278ee8(0x1aa)],_0x2d9dce,_0x5cdb49,this[_0x278ee8(0x2ae)],this[_0x278ee8(0x1a9)]);}}[_0x101898(0x36b)](_0x9b75d4=![]){const _0x58b127=_0x101898;_0x9b75d4&&(this['_clearShapeAdjustControls'](),this[_0x58b127(0x22d)](_0x9b75d4));}[_0x101898(0x4e4)](_0x31db1e,_0x518dc8,_0x3cc982,_0x25ba59,_0x44a89b,_0x340ce5,_0x4e9434){const _0x21dbc2=_0x101898;if(!this[_0x21dbc2(0x2c9)])return;const _0x23dd75=_0x31db1e[_0x21dbc2(0x157)](_0x21dbc2(0x1cb)+this[_0x21dbc2(0x2c9)]+'-'+_0x3cc982);if(_0x23dd75){_0x23dd75[_0x21dbc2(0x46b)]({'left':_0x518dc8['x']+_0x25ba59-_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)],'top':_0x518dc8['y']+_0x44a89b-_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)]});return;}const _0x4b8493={'left':_0x518dc8['x']+_0x25ba59-_univerjs_pro_engine_shape[_0x21dbc2(0x30a)]['adjHandleSize'],'top':_0x518dc8['y']+_0x44a89b-_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)],'adjName':_0x3cc982,'shapeId':this[_0x21dbc2(0x2c9)],'unitId':_0x340ce5,'subUnitId':_0x4e9434,'width':_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)]+0x8,'height':_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)]+0x8,'zIndex':_univerjs_engine_render[_0x21dbc2(0x11f)]+0x1,'evented':!![]},_0x3c9e7f=new SheetShapeAdjustPointObject(_0x21dbc2(0x1cb)+this[_0x21dbc2(0x2c9)]+'-'+_0x3cc982,_0x4b8493);this[_0x21dbc2(0x3d3)][_0x21dbc2(0x2f9)](_0x3c9e7f),this[_0x21dbc2(0x13d)](_0x3c9e7f,_0x31db1e,_0x3cc982),_0x31db1e[_0x21dbc2(0x22c)](_0x3c9e7f,_univerjs_engine_render[_0x21dbc2(0x11f)]+0x1);}[_0x101898(0x1eb)](){const _0x4aba28=_0x101898;if(this['_shapes'][_0x4aba28(0x1ec)]===0x0)return;this[_0x4aba28(0x3d3)][_0x4aba28(0x5aa)](_0x1c14bc=>{_0x1c14bc['dispose']();}),this[_0x4aba28(0x3d3)]=[];}[_0x101898(0x390)](){const _0x348ce1=_0x101898;this[_0x348ce1(0x22d)]();}[_0x101898(0x555)](_0x2fc6d2,_0xa036ba){const _0x94d67e=_0x101898;var _0xe2a542;const _0x595cd9={'x':0x0,'y':0x0};if(!_0x2fc6d2||!_0xa036ba)return _0x595cd9;const _0x58fe48=this[_0x94d67e(0x28f)][_0x94d67e(0x1f9)](_0x2fc6d2);if(!_0x58fe48)return _0x595cd9;if(!_0x58fe48[_0x94d67e(0x593)](_univerjs_sheets_ui[_0x94d67e(0x217)])[_0x94d67e(0x1f6)](_0xa036ba))return _0x595cd9;const _0x569032=_0x58fe48[_0x94d67e(0x593)](_univerjs_sheets_ui[_0x94d67e(0x574)]),_0xd90d90=_0x569032===null||_0x569032===void 0x0?void 0x0:_0x569032[_0x94d67e(0x599)]();if(!_0xd90d90)return _0x595cd9;const _0x1c1092=(_0xe2a542=this[_0x94d67e(0x2e4)]['getUnit'](_0x2fc6d2))===null||_0xe2a542===void 0x0?void 0x0:_0xe2a542[_0x94d67e(0x5f6)](_0xa036ba);if(!_0x1c1092)return _0x595cd9;const _0x543c25=(0x0,_univerjs_sheets_ui[_0x94d67e(0x499)])(_0xd90d90[_0x94d67e(0x338)],_0xd90d90['sheetViewStartColumn'],_0x58fe48[_0x94d67e(0x2dc)],_0x1c1092);if(!_0x543c25)return _0x595cd9;return{'x':_0x543c25[_0x94d67e(0x149)],'y':_0x543c25[_0x94d67e(0x193)]};}[_0x101898(0x491)](_0x44ff2e,_0x5dfa67){const _0x2ee45b=_0x101898;var _0x2c4a4a,_0x23cdae;const _0x1f24e6=(_0x2c4a4a=this[_0x2ee45b(0x2e4)][_0x2ee45b(0x589)](_0x44ff2e))===null||_0x2c4a4a===void 0x0?void 0x0:_0x2c4a4a[_0x2ee45b(0x5f6)](_0x5dfa67);return(_0x23cdae=_0x1f24e6===null||_0x1f24e6===void 0x0?void 0x0:_0x1f24e6[_0x2ee45b(0x4ba)]())!==null&&_0x23cdae!==void 0x0?_0x23cdae:0x1;}[_0x101898(0x13d)](_0x44f8bd,_0x4cf181,_0x41299f){const _0x141174=_0x101898;this['disposeWithMe']((0x0,_univerjs_core[_0x141174(0x266)])(_0x44f8bd['onPointerDown$'][_0x141174(0x3a5)]((_0x351afa,_0xb981d1)=>{const _0x1b7d49=_0x141174;var _0x40c758,_0x5a58fa,_0x43ff44,_0x1a4743;const _0x51cfbd=_0x44f8bd['getDrawingSearch']();this[_0x1b7d49(0x2f3)]=this[_0x1b7d49(0x3ae)](_0x51cfbd['unitId'],_0x51cfbd[_0x1b7d49(0x343)],_0x51cfbd['drawingId'],_0x41299f),this[_0x1b7d49(0x40e)]=this['_sheetsShapeService'][_0x1b7d49(0x148)](_0x51cfbd[_0x1b7d49(0x3aa)],_0x51cfbd[_0x1b7d49(0x343)],_0x51cfbd[_0x1b7d49(0x16c)]);const _0xfd60a3=this[_0x1b7d49(0x3c9)][_0x1b7d49(0x52f)]({'unitId':this['_unitId'],'subUnitId':this[_0x1b7d49(0x1a9)],'drawingId':this['_activeShapeId']}),{transform:_0x395594}=_0xfd60a3;if(_0x395594){const {left:_0x4f89f8,top:_0x1e873b,width:_0x8524de,height:_0x54dec4}=_0x395594;this[_0x1b7d49(0x4d7)]=_0x4f89f8||0x0,this['_baseShapeTop']=_0x1e873b||0x0,this[_0x1b7d49(0x370)]=_0x8524de||0x0,this[_0x1b7d49(0x1d6)]=_0x54dec4||0x0;}const _0x10be96=Boolean((_0x40c758=_0xfd60a3[_0x1b7d49(0x519)])===null||_0x40c758===void 0x0?void 0x0:_0x40c758[_0x1b7d49(0x4e0)]),_0x2cf7ca=Boolean((_0x5a58fa=_0xfd60a3[_0x1b7d49(0x519)])===null||_0x5a58fa===void 0x0?void 0x0:_0x5a58fa[_0x1b7d49(0x34d)]),_0x5d6923=((_0x43ff44=_0xfd60a3[_0x1b7d49(0x519)])===null||_0x43ff44===void 0x0?void 0x0:_0x43ff44[_0x1b7d49(0x2f5)])||0x0;this[_0x1b7d49(0x353)]=!![],_0x4cf181[_0x1b7d49(0x1c5)]();const _0x5e8e3b=(_0x1a4743=this['_activeShapeModel'])===null||_0x1a4743===void 0x0?void 0x0:_0x1a4743[_0x1b7d49(0x29c)](_0x41299f),_0x36cc9d={[_0x41299f]:_0x5e8e3b};this['_adjHandlerPointerMove']=_0x4cf181['onPointerMove$'][_0x1b7d49(0x3a5)]((_0x238b11,_0x723f9f)=>{const _0x12dab5=_0x1b7d49;if(!this['_isStartAdjusting'])return;const {offsetX:_0x52eeb9,offsetY:_0x14955e}=_0x238b11,_0xf6bf20=this[_0x12dab5(0x2f3)];if(this[_0x12dab5(0x40e)]&&_0xf6bf20){_0x4cf181[_0x12dab5(0x1c5)](),_0x4cf181[_0x12dab5(0x401)](_univerjs_engine_render[_0x12dab5(0x249)][_0x12dab5(0x374)]);const _0x41b1f0={'left':0x0,'top':0x0,'width':this[_0x12dab5(0x370)],'height':this['_baseShapeHeight']},_0x2c957d=this[_0x12dab5(0x555)](this[_0x12dab5(0x2ae)],this[_0x12dab5(0x1a9)]),_0x111296=this[_0x12dab5(0x491)](this[_0x12dab5(0x2ae)],this[_0x12dab5(0x1a9)]);let _0x163880=_0x52eeb9/_0x111296+_0x2c957d['x']-this[_0x12dab5(0x4d7)],_0x581c38=_0x14955e/_0x111296+_0x2c957d['y']-this['_baseShapeTop'];if(_0x5d6923!==0x0){const _0x3e1e85=this[_0x12dab5(0x370)]/0x2,_0x494678=this[_0x12dab5(0x1d6)]/0x2,_0x52cc30=_0x5d6923*Math['PI']/0xb4,_0x173074=Math[_0x12dab5(0x409)](_0x52cc30),_0x2b34c2=Math[_0x12dab5(0x315)](_0x52cc30),_0x58c757=_0x163880-_0x3e1e85,_0x5db939=_0x581c38-_0x494678;_0x163880=_0x3e1e85+(_0x58c757*_0x173074+_0x5db939*_0x2b34c2),_0x581c38=_0x494678+(-_0x58c757*_0x2b34c2+_0x5db939*_0x173074);}if(_0x10be96)_0x163880=this[_0x12dab5(0x370)]-_0x163880;if(_0x2cf7ca)_0x581c38=this[_0x12dab5(0x1d6)]-_0x581c38;const _0x20a0bd={'x':_0x163880,'y':_0x581c38},_0x21156c=this[_0x12dab5(0x40e)]['calcAdjValue'](_0x41b1f0,_0x20a0bd,_0xf6bf20,_0x10be96,_0x2cf7ca),_0x207204=_0xf6bf20[_0x12dab5(0x3dd)]||_0xf6bf20['gdRefY']||_0xf6bf20[_0x12dab5(0x617)]||_0xf6bf20['gdRefR'];if(_0x207204===void 0x0)return;this[_0x12dab5(0x40e)][_0x12dab5(0x58a)](_0x207204,_0x21156c);const _0x57c359=this['_drawingManagerService'][_0x12dab5(0x52f)]({'unitId':_0x51cfbd['unitId'],'subUnitId':_0x51cfbd['subUnitId'],'drawingId':_0x51cfbd[_0x12dab5(0x16c)]});_0x57c359&&(this[_0x12dab5(0x270)][_0x12dab5(0x19c)](_0x57c359,_0x4cf181),this[_0x12dab5(0x2b5)]=this[_0x12dab5(0x3cd)](_0x51cfbd['unitId'],_0x51cfbd[_0x12dab5(0x343)],_0x51cfbd[_0x12dab5(0x16c)]),this[_0x12dab5(0x390)]());}_0x723f9f[_0x12dab5(0x160)]();}),this['_adjHandlerPointerUp']=_0x4cf181[_0x1b7d49(0x173)][_0x1b7d49(0x3a5)]((_0x459468,_0x1c882f)=>{const _0x5aa5a5=_0x1b7d49;this[_0x5aa5a5(0x58e)][_0x5aa5a5(0x472)](),this[_0x5aa5a5(0x3fa)]['unsubscribe'](),_0x4cf181['resetCursor']();const _0x14d19f=this[_0x5aa5a5(0x2f3)];if(_0x14d19f){const _0x56ae7f=_0x51cfbd['unitId'],_0xc70d23=_0x51cfbd['subUnitId'],_0x3c470c=_0x51cfbd[_0x5aa5a5(0x16c)],_0x47cb8f=_0x14d19f[_0x5aa5a5(0x3dd)]||_0x14d19f[_0x5aa5a5(0x306)]||_0x14d19f['gdRefAng']||_0x14d19f[_0x5aa5a5(0x2ad)];if(_0x47cb8f!==void 0x0){var _0x539034;const _0x2a5a5d=(_0x539034=this[_0x5aa5a5(0x40e)])===null||_0x539034===void 0x0?void 0x0:_0x539034[_0x5aa5a5(0x29c)](_0x47cb8f);if(_0x2a5a5d!==void 0x0)updateShapeData(this[_0x5aa5a5(0x36d)],_0x56ae7f,_0xc70d23,_0x3c470c,{'oldShapeData':{'adjustValues':_0x36cc9d}},{'adjustValues':{[_0x47cb8f]:_0x2a5a5d}});}}this[_0x5aa5a5(0x2f3)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x5aa5a5(0x353)]=![],_0x1c882f[_0x5aa5a5(0x160)](),_0x4cf181[_0x5aa5a5(0x123)]();}),_0xb981d1[_0x1b7d49(0x160)]();})));}[_0x101898(0x490)](){const _0x2f05f6=_0x101898,_0x7c5551=this[_0x2f05f6(0x2e4)][_0x2f05f6(0x566)](_univerjs_core[_0x2f05f6(0x1e3)][_0x2f05f6(0x42f)]);this['disposeWithMe'](_0x7c5551[_0x2f05f6(0x63e)]((0x0,rxjs[_0x2f05f6(0x3f8)])(_0x50382f=>{const _0x40a9b7=_0x2f05f6;if(!_0x50382f)return rxjs[_0x40a9b7(0x180)];return _0x50382f[_0x40a9b7(0x522)][_0x40a9b7(0x63e)]((0x0,rxjs['switchMap'])(_0x347b92=>{const _0xa51034=_0x40a9b7;if(!_0x347b92)return rxjs['EMPTY'];const _0x27ebd1=_0x50382f[_0xa51034(0x5b1)](),_0xc5499f=this['_renderManagerService']['getRenderById'](_0x27ebd1),_0x68b863=_0xc5499f===null||_0xc5499f===void 0x0?void 0x0:_0xc5499f[_0xa51034(0x2dc)];if(!_0x68b863)return rxjs[_0xa51034(0x180)];return(0x0,rxjs['of'])(_0x68b863);}));}))[_0x2f05f6(0x4fd)](_0x111e4f=>{const _0x3f4484=_0x2f05f6,_0x36c638=_0x111e4f[_0x3f4484(0x53f)]();this[_0x3f4484(0x1ff)](_0x111e4f[_0x3f4484(0x14b)]['subscribeEvent'](()=>{const _0x5697f4=_0x3f4484;if(this[_0x5697f4(0x548)]){}})),this[_0x3f4484(0x1ff)](_0x36c638[_0x3f4484(0x155)]['subscribe'](_0xd005f5=>{const _0x227681=_0x3f4484,{objects:_0xc28e6d}=_0xd005f5;this['_createShapeAdjustControls']();if(_0xc28e6d!==null&&_0xc28e6d[_0x227681(0x2a7)]===0x1){if(_0xc28e6d['values']()['next']()[_0x227681(0x2f1)]instanceof DrawingShape)this[_0x227681(0x176)](!![]);}})),this[_0x3f4484(0x1ff)](_0x36c638[_0x3f4484(0x54f)]['subscribe'](()=>{const _0x2b635d=_0x3f4484;if(this[_0x2b635d(0x548)])this['_clearShapeAdjustControls']();})),this[_0x3f4484(0x1ff)](_0x111e4f[_0x3f4484(0x173)]['subscribeEvent'](()=>{const _0x3c8b41=_0x3f4484;this[_0x3c8b41(0x548)]&&(this[_0x3c8b41(0x176)](![]),this[_0x3c8b41(0x22d)]());})),this['disposeWithMe'](_0x36c638['changeEnd$'][_0x3f4484(0x4fd)](()=>{const _0x284cac=_0x3f4484;this[_0x284cac(0x2ae)]&&this[_0x284cac(0x1a9)]&&this[_0x284cac(0x2c9)]&&(this[_0x284cac(0x3c9)][_0x284cac(0x52f)]({'unitId':this[_0x284cac(0x2ae)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x284cac(0x2c9)]})&&(this[_0x284cac(0x2b5)]=this['_getShapeAdjustPointListById'](this[_0x284cac(0x2ae)],this[_0x284cac(0x1a9)],this[_0x284cac(0x2c9)]),this[_0x284cac(0x390)]()));}));}));}[_0x101898(0x606)](){const _0x5efa1c=_0x101898;this[_0x5efa1c(0x1ff)](this['_drawingManagerService'][_0x5efa1c(0x5ed)][_0x5efa1c(0x4fd)](_0x40b647=>{const _0xb70694=_0x5efa1c;if(_0x40b647[_0xb70694(0x1ec)]===0x1){const _0x2dbeb2=_0x40b647[0x0];if(_0x2dbeb2[_0xb70694(0x324)]===_univerjs_core[_0xb70694(0x229)]['DRAWING_SHAPE']){this[_0xb70694(0x2c9)]=_0x2dbeb2['drawingId'];const {unitId:_0x16547c,subUnitId:_0x563059}=_0x2dbeb2;this[_0xb70694(0x2b5)]=this[_0xb70694(0x3cd)](_0x16547c,_0x563059,this[_0xb70694(0x2c9)]),this['_unitId']=_0x16547c,this['_subUnitId']=_0x563059,this['_clearShapeAdjustControls'](),this[_0xb70694(0x22d)]();}else this[_0xb70694(0x2c9)]=null,this[_0xb70694(0x2b5)]=void 0x0,this['_unitId']=null,this[_0xb70694(0x1a9)]=null,this['_clearShapeAdjustControls']();}(_0x40b647[_0xb70694(0x1ec)]>0x1||_0x40b647[_0xb70694(0x1ec)]===0x0)&&(this[_0xb70694(0x2c9)]=null,this[_0xb70694(0x2b5)]=void 0x0,this[_0xb70694(0x2ae)]=null,this[_0xb70694(0x1a9)]=null,this[_0xb70694(0x1eb)]());})),this[_0x5efa1c(0x1ff)](this['_drawingManagerService'][_0x5efa1c(0x523)][_0x5efa1c(0x4fd)](_0x33d1a2=>{const _0x10d6cf=_0x5efa1c;if(_0x33d1a2['length']===0x1){var _0x372ab1;const _0x2ce8e8=_0x33d1a2[0x0];if(((_0x372ab1=this['_drawingManagerService'][_0x10d6cf(0x52f)](_0x2ce8e8))===null||_0x372ab1===void 0x0?void 0x0:_0x372ab1['drawingType'])===_univerjs_core[_0x10d6cf(0x229)][_0x10d6cf(0x535)])this['_updateShapeAdjustControls'](!![]);}})),this[_0x5efa1c(0x1ff)](this[_0x5efa1c(0x3c9)][_0x5efa1c(0x5ad)][_0x5efa1c(0x4fd)](_0x470242=>{const _0x538b6d=_0x5efa1c;for(const _0x55b009 of _0x470242)this[_0x538b6d(0x2c9)]===_0x55b009['drawingId']&&(this[_0x538b6d(0x2c9)]=null,this[_0x538b6d(0x2b5)]=void 0x0,this['_unitId']=null,this[_0x538b6d(0x1a9)]=null,this[_0x538b6d(0x1eb)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core['IContextService']),__decorateParam(0x2,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x101898(0x232)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_engine_render[_0x101898(0x500)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core[_0x101898(0x653)]),__decorateParam(0x7,_univerjs_core[_0x101898(0x55c)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x101898(0x53d),'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x47b)],'handler':(_0x30f6e2,_0x1060cc)=>{const _0x228f26=_0x101898,_0x291ac9=_0x30f6e2['get'](_univerjs_drawing[_0x228f26(0x415)]),_0x17cca1=_0x30f6e2[_0x228f26(0x49b)](_univerjs_engine_render['IRenderManagerService']),_0x245fa2=_0x30f6e2[_0x228f26(0x49b)](SheetShapeAdjustController);if(_0x1060cc==null)return!![];if(_0x1060cc['length']>0x0){var _0x23913f;const _0x58497b=(_0x23913f=_0x17cca1[_0x228f26(0x1f9)](_0x1060cc[0x0][_0x228f26(0x3aa)]))===null||_0x23913f===void 0x0?void 0x0:_0x23913f[_0x228f26(0x2dc)];if(_0x58497b){const {unitId:_0x2e4e75,subUnitId:_0x1f5427,drawingId:_0x58ac98}=_0x1060cc[0x0],_0x82c806=(0x0,_univerjs_drawing[_0x228f26(0x38f)])({'unitId':_0x2e4e75,'subUnitId':_0x1f5427,'drawingId':_0x58ac98},void 0x0),_0x17f9eb=_0x58497b['getObjectIncludeInGroup'](_0x82c806);if(_0x17f9eb){var _0x2f2539;(_0x2f2539=_0x17cca1[_0x228f26(0x1f9)](_0x1060cc[0x0]['unitId']))===null||_0x2f2539===void 0x0||(_0x2f2539=_0x2f2539[_0x228f26(0x2dc)][_0x228f26(0x345)]())===null||_0x2f2539===void 0x0||_0x2f2539[_0x228f26(0x1e4)](_0x17f9eb);}}_0x291ac9['focusDrawing'](_0x1060cc),_0x245fa2[_0x228f26(0x176)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x101898(0x483)]['COMMAND'],'id':_0x101898(0x363),'handler':async(_0x2b75c7,_0x5837d6)=>{const _0x53f77c=_0x101898,_0x2cdfd7=(0x0,_univerjs_sheets[_0x53f77c(0x3ef)])(_0x2b75c7[_0x53f77c(0x49b)](_univerjs_core[_0x53f77c(0x653)]));if(!_0x2cdfd7)return![];const _0x5645e0=_0x2b75c7['get'](_univerjs_sheets[_0x53f77c(0x274)])[_0x53f77c(0x45f)]();if(!_0x5645e0)return![];const _0x3ac38a=_0x2b75c7[_0x53f77c(0x49b)](_univerjs_core[_0x53f77c(0x55c)]),{unitId:_0x506f83,subUnitId:_0xadc16}=_0x2cdfd7,{value:_0x28021c,enhanceParams:_0x27c41b}=_0x5837d6,{range:_0x204cd1}=_0x5645e0,_0xa73cbf={'unitId':_0x506f83,'subUnitId':_0xadc16,'shapeType':_0x28021c,'range':_0x204cd1,'shapeId':(0x0,_univerjs_core[_0x53f77c(0x558)])()};if(_0x27c41b){const _0x75ce66=(0x0,_univerjs_pro_engine_shape[_0x53f77c(0x277)])(_0x28021c),_0x1631c0=_0x28021c===_univerjs_pro_engine_shape[_0x53f77c(0x33e)][_0x53f77c(0x62a)];if(_0x75ce66&&(_0x27c41b[_0x53f77c(0x231)]||_0x27c41b[_0x53f77c(0x3b8)]))_0xa73cbf[_0x53f77c(0x5b6)]={'ln':{'startArrow':_0x27c41b[_0x53f77c(0x231)]?{'type':_univerjs_pro_engine_shape[_0x53f77c(0x67d)][_0x53f77c(0x177)],'size':_univerjs_pro_engine_shape[_0x53f77c(0x47e)][_0x53f77c(0x22e)]}:void 0x0,'endArrow':_0x27c41b[_0x53f77c(0x3b8)]?{'type':_univerjs_pro_engine_shape[_0x53f77c(0x67d)]['Arrow'],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x53f77c(0x5d6)]}:void 0x0}};if(_0x1631c0&&(_0x27c41b['horizontal']||_0x27c41b['vertical']))_0xa73cbf[_0x53f77c(0x5b6)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x53f77c(0x2d3)][_0x53f77c(0x15c)],'color':_0x53f77c(0x4f5)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x53f77c(0x3ce)]['SolidLine'],'width':0x1,'color':_0x53f77c(0x474)},'shapeText':{'isHorizontal':!!_0x27c41b['horizontal']}};}const _0x36aae7=_0x3ac38a[_0x53f77c(0x32e)](_univerjs_pro_sheets_shape[_0x53f77c(0x473)]['id'],_0xa73cbf);return setTimeout(()=>{const _0x56d20e=_0x53f77c;_0x3ac38a[_0x56d20e(0x60c)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x506f83,'subUnitId':_0xadc16,'drawingId':_0xa73cbf[_0x56d20e(0x49a)]}]);},0xc8),_0x36aae7;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0xe6b55b,_0x49dc0b){const _0x1cdd21=_0x101898;super(),this[_0x1cdd21(0x367)]=_0xe6b55b,this['_drawingManagerService']=_0x49dc0b,this[_0x1cdd21(0x557)](),this['_clipService'][_0x1cdd21(0x1bc)](!![]),this[_0x1cdd21(0x1ff)]({'dispose':()=>this[_0x1cdd21(0x367)][_0x1cdd21(0x1bc)](![])});}[_0x101898(0x557)](){const _0x476d9a=_0x101898,_0x5efd87=this['_clipService'],_0x2bad8b=new Map(),_0x379be5=_0x5efd87[_0x476d9a(0x35a)]((_0x27fac5,_0x4b0134,_0x1f555c,_0x18a0bb,_0x215f5d)=>{const _0x5f2c43=_0x476d9a,_0x2e4226=_0x4b0134;if(_0x2e4226===_univerjs_pro_engine_shape[_0x5f2c43(0x33e)][_0x5f2c43(0x678)]||_0x4b0134==='custom')return![];try{let _0x137211=_0x2bad8b[_0x5f2c43(0x49b)](_0x4b0134);!_0x137211&&(_0x137211=new _univerjs_pro_engine_shape[(_0x5f2c43(0x286))](_0x2e4226,_0x5f2c43(0x676)+_0x4b0134),_0x2bad8b[_0x5f2c43(0x65b)](_0x4b0134,_0x137211));if(_0x215f5d)_0x137211[_0x5f2c43(0x22f)]({'adjustValues':_0x215f5d},!![]);return _0x137211['updateContext']({'width':_0x1f555c,'height':_0x18a0bb}),_0x137211[_0x5f2c43(0x279)](_0x27fac5,{'left':0x0,'top':0x0,'width':_0x1f555c,'height':_0x18a0bb});}catch{return![];}});this[_0x476d9a(0x1ff)](_0x379be5),this[_0x476d9a(0x1ff)]({'dispose':()=>_0x2bad8b[_0x476d9a(0x3c5)]()});}['clipByShape'](_0x4150a9,_0x1e8cf4,_0x33970f,_0x3c0d35,_0x26594a){const _0x9c7fdf=_0x101898,_0xf037e8=this[_0x9c7fdf(0x3c9)][_0x9c7fdf(0x5c8)](_0x4150a9,_0x1e8cf4);if(!_0xf037e8[_0x33970f])return;const _0x3f90f9={..._0xf037e8[_0x33970f],'prstGeom':_0x3c0d35,'adjustValues':_0x26594a};this[_0x9c7fdf(0x3c9)]['featurePluginUpdateNotification']([_0x3f90f9]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui[_0x101898(0x3d6)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_drawing[_0x101898(0x415)]))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x237)],'icon':_0x101898(0x4f9),'name':_0x101898(0x3bc)},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x14e)],'icon':_0x101898(0x4e5),'name':_0x101898(0x204),'endArrow':!![]},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x14e)],'icon':_0x101898(0x19b),'name':_0x101898(0x4bb),'endArrow':!![],'startArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1c4)],'icon':_0x101898(0x381),'name':_0x101898(0x664)},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['BentConnector3'],'icon':_0x101898(0x2f8),'name':_0x101898(0x3c7),'endArrow':!![]},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['BentConnector3'],'icon':_0x101898(0x3c8),'name':_0x101898(0x248),'endArrow':!![],'startArrow':!![]},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['CurvedConnector3'],'icon':_0x101898(0x28b),'name':'shape.type.curved-connector3'},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['CurvedConnector3'],'icon':_0x101898(0x2a0),'name':'shape.type.curved-connector3-arrow1','endArrow':!![]},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x437)],'icon':_0x101898(0x276),'name':_0x101898(0x31e),'endArrow':!![],'startArrow':!![]},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x62a)],'icon':_0x101898(0x13a),'name':_0x101898(0x452)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['RoundRect'],'icon':_0x101898(0x3f2),'name':_0x101898(0x1ce)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Snip1Rect'],'icon':_0x101898(0x53e),'name':'shape.type.snip1-rect'},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x21f)],'icon':_0x101898(0x225),'name':_0x101898(0x25c)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4f3)],'icon':_0x101898(0x645),'name':_0x101898(0x1c3)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x464)],'icon':_0x101898(0x4a8),'name':_0x101898(0x511)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Round1Rect'],'icon':_0x101898(0x48f),'name':'shape.type.round1-rect'},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Round2SameRect'],'icon':_0x101898(0x4ee),'name':_0x101898(0x53b)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Round2DiagRect'],'icon':'ShapeRound2DiagRectIcon','name':_0x101898(0x531)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Rect'],'icon':_0x101898(0x4ae),'name':_0x101898(0x145),'horizontal':!![]},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Rect'],'icon':'ShapeRectTextboxVerticalIcon','name':'shape.type.rect-textbox-vertical','vertical':!![]},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x646)],'icon':'ShapeEllipseIcon','name':_0x101898(0x300)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x54e)],'icon':_0x101898(0x44c),'name':_0x101898(0x684)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3c0)],'icon':_0x101898(0x2e0),'name':_0x101898(0x337)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Parallelogram'],'icon':_0x101898(0x638),'name':_0x101898(0x242)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Trapezoid'],'icon':_0x101898(0x391),'name':_0x101898(0x288)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Diamond'],'icon':'ShapeDiamondIcon','name':_0x101898(0x5bd)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x512)],'icon':_0x101898(0x295),'name':_0x101898(0x505)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x57e)],'icon':_0x101898(0x51c),'name':_0x101898(0x628)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x476)],'icon':_0x101898(0x166),'name':'shape.type.heptagon'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4ce)],'icon':_0x101898(0x317),'name':'shape.type.octagon'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Decagon'],'icon':'ShapeDecagonIcon','name':_0x101898(0x1b1)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2a4)],'icon':'ShapeDodecagonIcon','name':'shape.type.dodecagon'},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x230)],'icon':_0x101898(0x24f),'name':_0x101898(0x608)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Chord'],'icon':_0x101898(0x2ea),'name':_0x101898(0x3fb)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x454)],'icon':'ShapeTeardropIcon','name':_0x101898(0x36c)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x18a)],'icon':_0x101898(0x34f),'name':_0x101898(0x5bc)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3f6)],'icon':_0x101898(0x1a4),'name':_0x101898(0x1e0)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Corner'],'icon':_0x101898(0x655),'name':_0x101898(0x4d3)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x2fe)],'icon':_0x101898(0x61b),'name':_0x101898(0x16d)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x584)],'icon':'ShapePlusIcon','name':_0x101898(0x1fd)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Plaque'],'icon':_0x101898(0x3a9),'name':'shape.type.plaque'},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x400)],'icon':_0x101898(0x2a5),'name':_0x101898(0x43e)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x125)],'icon':_0x101898(0x30d),'name':'shape.type.cube'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Bevel'],'icon':_0x101898(0x25a),'name':_0x101898(0x1ba)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x63c)],'icon':_0x101898(0x51f),'name':_0x101898(0x357)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['NoSmoking'],'icon':_0x101898(0x1fc),'name':_0x101898(0x3d7)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x375)],'icon':_0x101898(0x4a1),'name':'shape.type.block-arc'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x658)],'icon':'ShapeFolderCornerIcon','name':_0x101898(0x1c0)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x570)],'icon':_0x101898(0x129),'name':'shape.type.smiley-face'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5d4)],'icon':_0x101898(0x329),'name':'shape.type.heart'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x41b)],'icon':'ShapeLightningBoltIcon','name':'shape.type.lightning-bolt'},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x331)],'icon':_0x101898(0x4be),'name':_0x101898(0x446)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x44d)],'icon':_0x101898(0x3a3),'name':_0x101898(0x64e)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x319)],'icon':_0x101898(0x414),'name':_0x101898(0x478)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4d6)],'icon':_0x101898(0x1b7),'name':'shape.type.arc'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1b0)],'icon':_0x101898(0x5e4),'name':_0x101898(0x268)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3b9)],'icon':_0x101898(0x5b5),'name':_0x101898(0x2e8)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['LeftBracket'],'icon':'ShapeLeftBracketIcon','name':_0x101898(0x5f2)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['RightBracket'],'icon':_0x101898(0x316),'name':_0x101898(0x5b8)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['LeftBrace'],'icon':_0x101898(0x2e6),'name':_0x101898(0x356)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['RightBrace'],'icon':_0x101898(0x4c6),'name':_0x101898(0x5d5)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x136)],'icon':_0x101898(0x2e5),'name':_0x101898(0x56a)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x65c)],'icon':_0x101898(0x3da),'name':_0x101898(0x563)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1a7)],'icon':_0x101898(0x4d8),'name':_0x101898(0x67b)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x187)],'icon':_0x101898(0x5a2),'name':_0x101898(0x3e7)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x587)],'icon':'ShapeLeftRightArrowIcon','name':'shape.type.left-right-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['UpDownArrow'],'icon':_0x101898(0x11a),'name':'shape.type.up-down-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x668)],'icon':'ShapeQuadArrowIcon','name':_0x101898(0x4dc)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['LeftRightUpArrow'],'icon':_0x101898(0x385),'name':'shape.type.left-right-up-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x50a)],'icon':_0x101898(0x404),'name':_0x101898(0x20d)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x466)],'icon':_0x101898(0x3d4),'name':_0x101898(0x382)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x674)],'icon':_0x101898(0x250),'name':_0x101898(0x5f7)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x46a)],'icon':_0x101898(0x3b1),'name':'shape.type.bent-up-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4d0)],'icon':_0x101898(0x2cb),'name':'shape.type.curved-right-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4d9)],'icon':_0x101898(0x50d),'name':_0x101898(0x45e)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4ff)],'icon':'ShapeCurvedUpArrowIcon','name':_0x101898(0x45d)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3a1)],'icon':'ShapeCurvedDownArrowIcon','name':_0x101898(0x65d)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x486)],'icon':_0x101898(0x369),'name':'shape.type.striped-right-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x171)],'icon':_0x101898(0x28a),'name':_0x101898(0x2aa)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x213)],'icon':_0x101898(0x23d),'name':'shape.type.home-plate'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x57f)],'icon':_0x101898(0x553),'name':'shape.type.chevron'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x602)],'icon':'ShapeRightArrowCalloutIcon','name':'shape.type.right-arrow-callout'},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x40b)],'icon':'ShapeDownArrowCalloutIcon','name':_0x101898(0x4dd)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x447)],'icon':_0x101898(0x133),'name':_0x101898(0x45a)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x244)],'icon':_0x101898(0x312),'name':_0x101898(0x25b)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['LeftRightArrowCallout'],'icon':_0x101898(0x147),'name':_0x101898(0x208)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x32f)],'icon':_0x101898(0x416),'name':_0x101898(0x61f)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2fa)],'icon':_0x101898(0x542),'name':_0x101898(0x1c1)},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['MathPlus'],'icon':_0x101898(0x254),'name':_0x101898(0x44e)},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x219)],'icon':_0x101898(0x332),'name':'shape.type.math-minus'},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x461)],'icon':_0x101898(0x5ea),'name':_0x101898(0x455)},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['MathDivide'],'icon':_0x101898(0x5d1),'name':'shape.type.math-divide'},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2ee)],'icon':_0x101898(0x3bf),'name':_0x101898(0x198)},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['MathNotEqual'],'icon':_0x101898(0x39f),'name':'shape.type.math-not-equal'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x197)],'icon':_0x101898(0x42d),'name':_0x101898(0x172)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x468)],'icon':_0x101898(0x3d9),'name':'shape.type.flow-chart-alternate-process'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x19a)],'icon':_0x101898(0x301),'name':'shape.type.flow-chart-decision'},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['FlowChartInputOutput'],'icon':'ShapeFlowChartInputOutputIcon','name':'shape.type.flow-chart-input-output'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x68b)],'icon':_0x101898(0x335),'name':_0x101898(0x27c)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x393)],'icon':_0x101898(0x484),'name':_0x101898(0x13b)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x296)],'icon':_0x101898(0x2d4),'name':_0x101898(0x37c)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x4e3)],'icon':_0x101898(0x687),'name':_0x101898(0x35c)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x5e7)],'icon':_0x101898(0x4f0),'name':_0x101898(0x629)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x140)],'icon':_0x101898(0x4d1),'name':_0x101898(0x22b)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x285)],'icon':_0x101898(0x336),'name':_0x101898(0x55b)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x688)],'icon':_0x101898(0x436),'name':_0x101898(0x633)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x30c)],'icon':'ShapeFlowChartConnectorIcon','name':_0x101898(0x515)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x304)],'icon':'ShapeFlowChartOffpageConnectorIcon','name':_0x101898(0x320)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x610)],'icon':_0x101898(0x575),'name':_0x101898(0x5c1)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4c1)],'icon':'ShapeFlowChartPunchedTapeIcon','name':_0x101898(0x5ef)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5cf)],'icon':_0x101898(0x545),'name':'shape.type.flow-chart-summing-junction'},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartOr'],'icon':_0x101898(0x39c),'name':'shape.type.flow-chart-or'},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x294)],'icon':_0x101898(0x21e),'name':_0x101898(0x572)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x37d)],'icon':_0x101898(0x257),'name':_0x101898(0x2c5)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x16e)],'icon':_0x101898(0x1c6),'name':_0x101898(0x17f)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x3f4)],'icon':'ShapeFlowChartMergeIcon','name':_0x101898(0x2be)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x142)],'icon':_0x101898(0x372),'name':'shape.type.flow-chart-online-storage'},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1d0)],'icon':_0x101898(0x40d),'name':'shape.type.flow-chart-delay'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3b4)],'icon':_0x101898(0x4cc),'name':_0x101898(0x3e8)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x38e)],'icon':_0x101898(0x644),'name':_0x101898(0x181)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x2af)],'icon':'ShapeFlowChartMagneticDrumIcon','name':_0x101898(0x161)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5a1)],'icon':_0x101898(0x428),'name':_0x101898(0x200)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x33a)],'icon':'ShapeIrregularSeal1Icon','name':_0x101898(0x438)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['IrregularSeal2'],'icon':_0x101898(0x57b),'name':_0x101898(0x41c)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5e0)],'icon':_0x101898(0x689),'name':'shape.type.star4'},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x392)],'icon':'ShapeStar5Icon','name':_0x101898(0x470)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x661)],'icon':_0x101898(0x540),'name':'shape.type.star6'},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x3f9)],'icon':_0x101898(0x411),'name':_0x101898(0x42c)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x3f1)],'icon':'ShapeStar8Icon','name':'shape.type.star8'},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x164)],'icon':'ShapeStar10Icon','name':_0x101898(0x362)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x537)],'icon':'ShapeStar12Icon','name':_0x101898(0x290)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x431)],'icon':_0x101898(0x462),'name':_0x101898(0x3ee)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Star24'],'icon':_0x101898(0x529),'name':'shape.type.star24'},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Star32'],'icon':_0x101898(0x423),'name':'shape.type.star32'},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Ribbon2'],'icon':_0x101898(0x62d),'name':_0x101898(0x485)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x430)],'icon':'ShapeRibbonIcon','name':_0x101898(0x637)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['EllipseRibbon2'],'icon':_0x101898(0x386),'name':_0x101898(0x15b)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['EllipseRibbon'],'icon':_0x101898(0x607),'name':_0x101898(0x211)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x64d)],'icon':'ShapeVerticalScrollIcon','name':_0x101898(0x318)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x480)],'icon':_0x101898(0x4c0),'name':_0x101898(0x5cd)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x576)],'icon':'ShapeWaveIcon','name':_0x101898(0x1bd)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x547)],'icon':_0x101898(0x26c),'name':_0x101898(0x3ec)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x29f)],'icon':_0x101898(0x3e3),'name':'shape.type.wedge-rect-callout'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x210)],'icon':'ShapeWedgeRoundRectCalloutIcon','name':_0x101898(0x3ea)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x624)],'icon':'ShapeWedgeEllipseCalloutIcon','name':_0x101898(0x252)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2a8)],'icon':_0x101898(0x1c8),'name':'shape.type.cloud-callout'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x536)],'icon':'ShapeBorderCallout1Icon','name':_0x101898(0x12e)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['BorderCallout2'],'icon':_0x101898(0x54a),'name':_0x101898(0x48a)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['BorderCallout3'],'icon':'ShapeBorderCallout3Icon','name':_0x101898(0x5de)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x2b7)],'icon':_0x101898(0x528),'name':_0x101898(0x2cc)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5bb)],'icon':'ShapeAccentCallout2Icon','name':_0x101898(0x4e9)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x240)],'icon':_0x101898(0x2c4),'name':_0x101898(0x340)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x517)],'icon':'ShapeCallout1Icon','name':_0x101898(0x61d)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x524)],'icon':_0x101898(0x27f),'name':'shape.type.callout2'},{'group':'callout','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x580)],'icon':_0x101898(0x3e5),'name':_0x101898(0x56c)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x2ec)],'icon':'ShapeAccentBorderCallout1Icon','name':'shape.type.accent-border-callout1'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1b6)],'icon':'ShapeAccentBorderCallout2Icon','name':_0x101898(0x1c9)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x683)],'icon':_0x101898(0x3fd),'name':_0x101898(0x4fe)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x413)],'icon':_0x101898(0x15f),'name':'shape.type.left-circular-arrow'},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x251)],'icon':'ShapeLeftRightCircularArrowIcon','name':_0x101898(0x49c)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x62c)],'icon':_0x101898(0x3d5),'name':_0x101898(0x579)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x37f)],'icon':_0x101898(0x5c3),'name':_0x101898(0x601)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x24e)],'icon':'ShapePieWedgeIcon','name':_0x101898(0x278)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5b2)],'icon':_0x101898(0x196),'name':_0x101898(0x5b4)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x525)],'icon':'ShapeGear6Icon','name':_0x101898(0x541)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1ac)],'icon':_0x101898(0x59f),'name':_0x101898(0x5af)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x666)],'icon':_0x101898(0x18d),'name':'shape.type.corner-tabs'},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x26b)],'icon':_0x101898(0x2e7),'name':_0x101898(0x1cd)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x451)],'icon':_0x101898(0x585),'name':_0x101898(0x603)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x561)],'icon':'ShapeActionButtonBeginningIcon','name':_0x101898(0x16a)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x235)],'icon':'ShapeActionButtonEndIcon','name':_0x101898(0x191)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x156)],'icon':_0x101898(0x55f),'name':_0x101898(0x3e0)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x448)],'icon':'ShapeActionButtonInformationIcon','name':_0x101898(0x16b)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x65f)],'icon':'ShapeActionButtonReturnIcon','name':_0x101898(0x565)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x40a)],'icon':_0x101898(0x1b5),'name':_0x101898(0x52d)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5f9)],'icon':_0x101898(0x63b),'name':_0x101898(0x11e)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x344)],'icon':_0x101898(0x5c4),'name':_0x101898(0x509)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x441)],'icon':_0x101898(0x1dc),'name':_0x101898(0x19e)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3f7)],'icon':_0x101898(0x516),'name':'shape.type.action-button-blank'},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5e8)],'icon':'ShapeChartPlusIcon','name':_0x101898(0x467)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['ChartStar'],'icon':_0x101898(0x2b9),'name':'shape.type.chart-star'},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x594)],'icon':_0x101898(0x2c2),'name':'shape.type.chart-x'},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['FlowChartOfflineStorage'],'icon':_0x101898(0x305),'name':_0x101898(0x25e)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3e2)],'icon':_0x101898(0x2b2),'name':_0x101898(0x120)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['PlaqueTabs'],'icon':_0x101898(0x60a),'name':_0x101898(0x256)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2cf)],'icon':_0x101898(0x50c),'name':'shape.type.square-tabs'},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['UpDownArrowCallout'],'icon':_0x101898(0x30e),'name':_0x101898(0x19f)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5fa)],'icon':'ShapeNonIsoscelesTrapezoidIcon','name':_0x101898(0x514)}],SHAPE_PICKER_COMPONENT=_0x101898(0x5b0);function ShapePickerComponent({onShapeClick:_0x29360d,excludeGroups:_0x3f3047}){const _0x17cde2=_0x101898,_0x3edd4d=(0x0,_univerjs_ui[_0x17cde2(0x14f)])(_univerjs_core[_0x17cde2(0x334)]),_0x27a3cd=(0x0,_univerjs_ui['useDependency'])(_univerjs_ui[_0x17cde2(0x1bb)]),_0x30c6b7=(_0x3f3047?shapeTypeOptions[_0x17cde2(0x1f5)](_0x11091a=>!_0x3f3047[_0x17cde2(0x325)](_0x11091a[_0x17cde2(0x2a9)])):shapeTypeOptions)[_0x17cde2(0x3cc)]((_0xed43de,_0x25a623)=>{const _0x351af2=_0x17cde2;if(!_0xed43de[_0x25a623[_0x351af2(0x2a9)]])_0xed43de[_0x25a623['group']]=[];return _0xed43de[_0x25a623[_0x351af2(0x2a9)]]['push'](_0x25a623),_0xed43de;},{});return(0x0,react_jsx_runtime[_0x17cde2(0x326)])(_0x17cde2(0x14c),{'className':_0x17cde2(0x2f7),'children':Object['entries'](_0x30c6b7)[_0x17cde2(0x526)](([_0x279d10,_0x42ada2])=>(0x0,react_jsx_runtime[_0x17cde2(0x399)])(_0x17cde2(0x14c),{'className':'univer-mb-2','children':[(0x0,react_jsx_runtime['jsx'])(_0x17cde2(0x14c),{'className':_0x17cde2(0x366),'children':_0x3edd4d['t'](_0x17cde2(0x2ab)+_0x279d10)}),(0x0,react_jsx_runtime['jsx'])(_0x17cde2(0x14c),{'className':_0x17cde2(0x20b),'children':_0x42ada2[_0x17cde2(0x526)](_0x46d5fa=>{const _0x897009=_0x17cde2,_0x118451=_0x27a3cd[_0x897009(0x49b)](_0x46d5fa[_0x897009(0x1df)]);return(0x0,react_jsx_runtime[_0x897009(0x326)])('div',{'title':_0x3edd4d['t'](_0x46d5fa[_0x897009(0x396)]),'onClick':()=>_0x29360d(_0x46d5fa),'className':_0x897009(0x4f8),'children':_0x118451&&(0x0,react_jsx_runtime[_0x897009(0x326)])(_0x118451,{'className':_0x897009(0x275)})},_0x46d5fa['name']);})})]},_0x279d10))});}function ImageClipShapePicker(){const _0x37d45a=_0x101898,_0x38e9a7=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x37d45a(0x334)]),_0x349e6e=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing['IDrawingManagerService']),_0x2c52dc=(0x0,_univerjs_ui[_0x37d45a(0x14f)])(ImageShapeClipController),[_0x10936b,_0x168223]=(0x0,react[_0x37d45a(0x168)])(![]),_0x317204=_0x2d77d7=>{const _0x27e95c=_0x37d45a,_0x5d31f2=_0x349e6e[_0x27e95c(0x4f6)]()['find'](_0x3da1f9=>_0x3da1f9[_0x27e95c(0x324)]===_univerjs_core[_0x27e95c(0x229)][_0x27e95c(0x4fa)]);if(!_0x5d31f2)return;const {unitId:_0x4825ef,subUnitId:_0x43cf6b,drawingId:_0x439ec9}=_0x5d31f2;_0x2c52dc[_0x27e95c(0x5ff)](_0x4825ef,_0x43cf6b,_0x439ec9,_0x2d77d7[_0x27e95c(0x489)]),_0x168223(![]);};return(0x0,react_jsx_runtime[_0x37d45a(0x326)])(_univerjs_design['Dropdown'],{'side':_0x37d45a(0x2ff),'open':_0x10936b,'onOpenChange':_0x168223,'overlay':(0x0,react_jsx_runtime[_0x37d45a(0x326)])(ShapePickerComponent,{'onShapeClick':_0x317204,'excludeGroups':[_0x37d45a(0x253)]}),'children':(0x0,react_jsx_runtime[_0x37d45a(0x326)])(_univerjs_design[_0x37d45a(0x573)],{'children':_0x38e9a7['t'](_0x37d45a(0x4b5))})});}function ShapePicker(){const _0x3c8432=_0x101898,_0x5cfb77=(0x0,_univerjs_ui[_0x3c8432(0x14f)])(_univerjs_core[_0x3c8432(0x55c)]),_0x442762=_0x54ab1c=>{const _0x2e7836=_0x3c8432;_0x5cfb77['executeCommand'](MenuInsertShapeCommand['id'],{'value':_0x54ab1c[_0x2e7836(0x489)],'enhanceParams':{'endArrow':_0x54ab1c[_0x2e7836(0x3b8)],'startArrow':_0x54ab1c[_0x2e7836(0x231)],'horizontal':_0x54ab1c[_0x2e7836(0x54b)],'vertical':_0x54ab1c[_0x2e7836(0x59a)]}});};return(0x0,react_jsx_runtime[_0x3c8432(0x326)])(ShapePickerComponent,{'onShapeClick':_0x442762});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x101898(0x39e),'icon':'LeftJustifyingIcon','value':_univerjs_core['HorizontalAlign']['LEFT']},{'label':_0x101898(0x3cf),'icon':_0x101898(0x4b2),'value':_univerjs_core[_0x101898(0x5c9)]['CENTER']},{'label':_0x101898(0x460),'icon':'RightJustifyingIcon','value':_univerjs_core[_0x101898(0x5c9)][_0x101898(0x342)]}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x1c97bf){const _0x49ae5b=_0x101898,_0x362a9c=_0x1c97bf[_0x49ae5b(0x49b)](_univerjs_core[_0x49ae5b(0x4b3)]),_0x84e4a8=_0x1c97bf[_0x49ae5b(0x49b)](_univerjs_core[_0x49ae5b(0x24a)]);return{'id':_univerjs_docs_ui[_0x49ae5b(0x2c1)]['id'],'tooltip':_0x49ae5b(0x64b),'type':_univerjs_ui['MenuItemType'][_0x49ae5b(0x1f1)],'icon':_0x49ae5b(0x321),'selections':[{'label':{'name':_univerjs_ui['COLOR_PICKER_COMPONENT'],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x49ae5b(0x556))](_0xda5b20=>{const _0x1a7586=_0x49ae5b;_0xda5b20['next'](_0x84e4a8[_0x1a7586(0x30b)]('primary.600'));}),'hidden$':_0x362a9c[_0x49ae5b(0x48b)](_univerjs_core[_0x49ae5b(0x615)])[_0x49ae5b(0x63e)]((0x0,rxjs[_0x49ae5b(0x5c2)])(_0x362a9c[_0x49ae5b(0x5d8)](_univerjs_core[_0x49ae5b(0x615)])),(0x0,rxjs['map'])(_0x98b195=>!_0x98b195))};}function ShapeResetBackgroundColorMenuItemFactory(_0x443385){const _0x5ab2ac=_0x101898,_0x184109=_0x443385['get'](_univerjs_core[_0x5ab2ac(0x4b3)]);return{'id':_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id'],'type':_univerjs_ui[_0x5ab2ac(0x459)][_0x5ab2ac(0x65e)],'title':_0x5ab2ac(0x376),'hidden$':_0x184109[_0x5ab2ac(0x48b)](_univerjs_core[_0x5ab2ac(0x615)])[_0x5ab2ac(0x63e)]((0x0,rxjs[_0x5ab2ac(0x5c2)])(_0x184109[_0x5ab2ac(0x5d8)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])),(0x0,rxjs[_0x5ab2ac(0x526)])(_0xdd819d=>!_0xdd819d))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x101898(0x39e),'icon':_0x101898(0x3b0),'value':_univerjs_core[_0x101898(0x5c9)][_0x101898(0x183)]},{'label':'align.center','icon':_0x101898(0x4b2),'value':_univerjs_core[_0x101898(0x5c9)][_0x101898(0x502)]},{'label':'align.right','icon':_0x101898(0x539),'value':_univerjs_core['HorizontalAlign'][_0x101898(0x342)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x992469){const _0x5685eb=_0x101898;var _0x4d2749;const _0x3cb19e=_0x992469[_0x5685eb(0x49b)](_univerjs_core[_0x5685eb(0x55c)]),_0x16cfd1=_0x992469[_0x5685eb(0x49b)](_univerjs_core[_0x5685eb(0x4b3)]),_0x12ed34=_0x992469[_0x5685eb(0x49b)](_univerjs_sheets_drawing[_0x5685eb(0x614)]),_0x490e8f=_0x992469[_0x5685eb(0x49b)](ShapeTextEditingService),_0x535027=_0x992469['get'](_univerjs_pro_sheets_shape['SheetsShapeService']),_0xd5bbd5=_univerjs_core[_0x5685eb(0x5c9)][_0x5685eb(0x183)],_0x5ed53f=()=>{const _0x28b2b2=_0x5685eb;var _0x27ffe1;const _0x416336=_0x12ed34['getFocusDrawings']()['filter'](_0x2a5b56=>_0x2a5b56[_0x28b2b2(0x324)]===_univerjs_core[_0x28b2b2(0x229)][_0x28b2b2(0x535)]);if(_0x416336[_0x28b2b2(0x1ec)]!==0x1)return _0xd5bbd5;const _0x17f46f=_0x490e8f[_0x28b2b2(0x28d)](),_0x26e4a2=(_0x17f46f===null||_0x17f46f===void 0x0?void 0x0:_0x17f46f[_0x28b2b2(0x3aa)])||_0x416336[0x0][_0x28b2b2(0x3aa)],_0x57fb67=(_0x17f46f===null||_0x17f46f===void 0x0?void 0x0:_0x17f46f['subUnitId'])||_0x416336[0x0][_0x28b2b2(0x343)],_0x5338e7=(_0x17f46f===null||_0x17f46f===void 0x0?void 0x0:_0x17f46f['shapeId'])||_0x416336[0x0][_0x28b2b2(0x16c)],_0x137229=_0x535027['getShapeModel'](_0x26e4a2,_0x57fb67,_0x5338e7);if(!_0x137229)return _0xd5bbd5;const _0x47656d=_0x137229[_0x28b2b2(0x592)]();if(!_0x47656d||!('dataModel'in _0x47656d))return _0xd5bbd5;const _0x2a8de1=_0x47656d[_0x28b2b2(0x2c7)];return(_0x27ffe1=_0x2a8de1===null||_0x2a8de1===void 0x0?void 0x0:_0x2a8de1['ha'])!==null&&_0x27ffe1!==void 0x0?_0x27ffe1:_0xd5bbd5;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x4d2749=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x5685eb(0x13c)](_0x5cebbf=>_0x5cebbf[_0x5685eb(0x2f1)]===_0xd5bbd5))===null||_0x4d2749===void 0x0?void 0x0:_0x4d2749['icon'],'tooltip':'toolbar.horizontalAlignMode.main','type':_univerjs_ui['MenuItemType']['SELECTOR'],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x5685eb(0x556))](_0x146c82=>{const _0x49b8e7=_0x5685eb,_0x422242=_0x3cb19e[_0x49b8e7(0x5e3)](_0x41fd1d=>{const _0x4c4014=_0x49b8e7;if(_0x41fd1d['id']===SetShapeTextHorizontalAlignCommand['id'])_0x146c82[_0x4c4014(0x119)](_0x5ed53f());}),_0x27fd03=_0x490e8f[_0x49b8e7(0x39d)][_0x49b8e7(0x4fd)](()=>{const _0x438728=_0x49b8e7;_0x146c82[_0x438728(0x119)](_0x5ed53f());});return _0x146c82['next'](_0x5ed53f()),()=>{const _0x374733=_0x49b8e7;_0x422242[_0x374733(0x3af)](),_0x27fd03[_0x374733(0x472)]();};}),'hidden$':_0x16cfd1[_0x5685eb(0x48b)](_univerjs_core[_0x5685eb(0x615)])[_0x5685eb(0x63e)]((0x0,rxjs['map'])(_0x2a10ce=>!_0x2a10ce))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x101898(0x4eb),'icon':_0x101898(0x55a),'value':_univerjs_core[_0x101898(0x293)]['TOP']},{'label':'align.middle','icon':_0x101898(0x17e),'value':_univerjs_core['VerticalAlign'][_0x101898(0x2a6)]},{'label':_0x101898(0x5cc),'icon':_0x101898(0x46e),'value':_univerjs_core['VerticalAlign'][_0x101898(0x151)]}];function ShapeVerticalAlignMenuItemFactory(_0x1e524c){const _0x3c7e9b=_0x101898;var _0x59083a;const _0x3f94bc=_0x1e524c[_0x3c7e9b(0x49b)](_univerjs_core[_0x3c7e9b(0x55c)]),_0x23f3e1=_0x1e524c[_0x3c7e9b(0x49b)](_univerjs_core['IContextService']),_0x1788c7=_0x1e524c[_0x3c7e9b(0x49b)](_univerjs_sheets_drawing[_0x3c7e9b(0x614)]),_0x32c500=_0x1e524c['get'](ShapeTextEditingService),_0x3c6f35=_0x1e524c[_0x3c7e9b(0x49b)](_univerjs_pro_sheets_shape[_0x3c7e9b(0x232)]),_0x1ecebc=_univerjs_core[_0x3c7e9b(0x293)][_0x3c7e9b(0x1a5)],_0x1e5da5=()=>{const _0x5b799f=_0x3c7e9b;var _0x4e931a;const _0x3b3609=_0x1788c7[_0x5b799f(0x4f6)]()[_0x5b799f(0x1f5)](_0x4cc16f=>_0x4cc16f['drawingType']===_univerjs_core[_0x5b799f(0x229)][_0x5b799f(0x535)]);if(_0x3b3609[_0x5b799f(0x1ec)]!==0x1)return _0x1ecebc;const _0x3790bf=_0x32c500[_0x5b799f(0x28d)](),_0x297364=(_0x3790bf===null||_0x3790bf===void 0x0?void 0x0:_0x3790bf['unitId'])||_0x3b3609[0x0]['unitId'],_0x10c93c=(_0x3790bf===null||_0x3790bf===void 0x0?void 0x0:_0x3790bf[_0x5b799f(0x343)])||_0x3b3609[0x0]['subUnitId'],_0x521a33=(_0x3790bf===null||_0x3790bf===void 0x0?void 0x0:_0x3790bf[_0x5b799f(0x49a)])||_0x3b3609[0x0][_0x5b799f(0x16c)],_0x5951c2=_0x3c6f35[_0x5b799f(0x148)](_0x297364,_0x10c93c,_0x521a33);if(!_0x5951c2)return _0x1ecebc;const _0x597cd7=_0x5951c2[_0x5b799f(0x592)]();if(!_0x597cd7||!('dataModel'in _0x597cd7))return _0x1ecebc;const _0x3dbfdc=_0x597cd7['dataModel'];return(_0x4e931a=_0x3dbfdc===null||_0x3dbfdc===void 0x0?void 0x0:_0x3dbfdc['va'])!==null&&_0x4e931a!==void 0x0?_0x4e931a:_0x1ecebc;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x59083a=SHAPE_VERTICAL_ALIGN_CHILDREN[_0x3c7e9b(0x13c)](_0x39a3e4=>_0x39a3e4[_0x3c7e9b(0x2f1)]===_0x1ecebc))===null||_0x59083a===void 0x0?void 0x0:_0x59083a[_0x3c7e9b(0x1df)],'tooltip':_0x3c7e9b(0x5fd),'type':_univerjs_ui[_0x3c7e9b(0x459)][_0x3c7e9b(0x124)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x3c7e9b(0x556))](_0x229b11=>{const _0x1874c7=_0x3c7e9b,_0x567bb6=_0x3f94bc[_0x1874c7(0x5e3)](_0x2726a6=>{const _0x840523=_0x1874c7;if(_0x2726a6['id']===SetShapeTextVerticalAlignCommand['id'])_0x229b11[_0x840523(0x119)](_0x1e5da5());}),_0x5e7679=_0x32c500[_0x1874c7(0x39d)][_0x1874c7(0x4fd)](()=>{const _0x32828e=_0x1874c7;_0x229b11[_0x32828e(0x119)](_0x1e5da5());});return _0x229b11[_0x1874c7(0x119)](_0x1e5da5()),()=>{const _0x52b1a1=_0x1874c7;_0x567bb6[_0x52b1a1(0x3af)](),_0x5e7679[_0x52b1a1(0x472)]();};}),'hidden$':_0x23f3e1['subscribeContextValue$'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x3c7e9b(0x63e)]((0x0,rxjs[_0x3c7e9b(0x526)])(_0x5ecf69=>!_0x5ecf69))};}function _0x458e(){const _0x1cfa0d=['ISheetDrawingService','FOCUSING_COMMON_DRAWINGS','RibbonStartGroup','gdRefAng','ISheetClipboardService','sheets-shape.line.dashType.solid','color','ShapeDiagStripeIcon','_shapeId','shape.type.callout1','getRealBound','shape.type.quad-arrow-callout','UpdateSheetsShapeDataMutation','getShapeTypeById','_closeShapeEditPanel','univer-w-full','WedgeEllipseCallout','ShapeActionButtonBeginningIcon','BreakLineCommand','applyPoint','shape.type.hexagon','shape.type.flow-chart-terminator','Rect','Solid','SwooshArrow','ShapeRibbon2Icon','draw','onload','isNaN','src','sheets-shape.fill.picture.source','shape.type.flow-chart-manual-operation','sheets-shape.line.arrowSize.small','Circle','_imageIoService','shape.type.ribbon','ShapeParallelogramIcon','has','52tEFEod','ShapeActionButtonDocumentIcon','Donut','style','pipe','DRAWING_DOM','createInternalEditorID','sheets-shape.fill.picture.offsetY','_findNearestConnectionSite','_context','ShapeFlowChartMagneticDiskIcon','ShapeSnip2DiagRectIcon','Ellipse','touchDependencies','_generateCutPasteMutations','_clearShapeConnectorHandlerObjects','editorHeight','toolbar.fillColor.main','sheets-shape.fill.picture.align.l','VerticalScroll','shape.type.moon','UpdateConnectorRelationCommand','IConfigService','changeEnd$','ShapePieWedgeIcon','IUniverInstanceService','sheets-shape.line.joinType.bevel','ShapeCornerIcon','onStarting','sketchType','FoldedCorner','mainComponent','resize','set','LeftArrow','shape.type.curved-down-arrow','BUTTON','ActionButtonReturn','getDocumentData','Star6','FromArray','marginTop','shape.type.bent-connector3','_sidebarDisposable','CornerTabs','body','QuadArrow','end','useLeftAndRightArrow','Disposable','defineProperty','START','_sheetInterceptorService','ShapeRound2DiagRectIcon','sheets-shape.openPanel','OvalArrow','SetShapeTextVerticalAlignCommand','_highlightedSiteIndex','LeftUpArrow','create','clip-','useObservable','None','_localeService','RibbonPosition','shape.type.up-arrow','_executeConnectedRouteResizeCommand','ShapeArrowTypeEnum','getImageSourceCache','_generatePasteMutations','HandDrawn','useMemo','pluginName','AccentBorderCallout3','shape.type.triangle','ShapeIrregularSeal1Icon','ang','ShapeFlowChartMultidocumentIcon','FlowchartManualOperation','ShapeStar4Icon','worksheet','FlowchartPredefinedProcess','next','ShapeUpDownArrowIcon','Radio','domY','_baseLeft','shape.type.action-button-document','DRAWING_OBJECT_LAYER_INDEX','shape.type.line-inv','getImage','getBasicShapeRotateBound','enableObjectsEvent','SELECTOR','Cube','objects','univer-w-20\x20univer-flex-1','191405NgOopF','ShapeSmileyFaceIcon','scaleY','removeLinePoints','_registerGroupFeaturePasteHook','KeyCode','shape.type.border-callout1','getState','_updateTransform','sheets-shape.line.beginArrowType','targetShapeId','ShapeLeftArrowCalloutIcon','_baseDrawingRect','object','RightArrow','SheetsShapeUIController','sheets-shape.line.dashType.longDashDotDot','URL','ShapeRectIcon','shape.type.flow-chart-internal-storage','find','_attachAdjustEvent','DrawingRenderService','setFillImage','FlowchartPreparation','localToWorld','FlowchartOnlineStorage','sheets-shape.line.joinType.round','ShapeActionButtonInformationIcon','shape.type.rect-textbox-horizontal','equationShape','ShapeLeftRightArrowCalloutIcon','getShapeModel','viewportScrollX','MoreDownIcon','onPointerMove$','div','multiply','StraightConnector1','useDependency','fillImageSource','BOTTOM','sheets-shape.deleteShape','ShapeLineDashEnum','Image','changeStart$','ActionButtonHome','getObjectIncludeInGroup','sheets-shape.toggleFlipH','_index','setPrstGeomAdjValues','shape.type.ellipse-ribbon2','SolidFill','drawWith','_reset','ShapeLeftCircularArrowIcon','stopPropagation','shape.type.flow-chart-magnetic-drum','capType','SetShapeTextFontSizeCommand','Star10','enumerable','ShapeHeptagonIcon','SheetPermissionCheckController','useState','symbol','shape.type.action-button-beginning','shape.type.action-button-information','drawingId','shape.type.diag-stripe','FlowchartExtract','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-flex\x20univer-items-center\x20univer-gap-3','NotchedRightArrow','shape.type.flow-chart-process','onPointerUp$','Tools','sheet.command.set-shape-text-horizontal-align','setShouldShowAdjust','Arrow','univer-text-sm','_drawingAddListener','ShapeDocAlignCommand','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','_executeConnectionCommand','worldPoints','VerticalCenterIcon','shape.type.flow-chart-extract','EMPTY','shape.type.flow-chart-magnetic-disk','error','LEFT','dashType','Checkbox','_getDrawingRect','DownArrow','setShapeProps','lineJoinType','Frame','relation','_draw','ShapeCornerTabsIcon','getConnectionSiteList','ShapeGear6Icon','worldRect','shape.type.action-button-end','strokeWidth','viewportScrollY','_getConnectionSiteAngle','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','ShapeFunnelIcon','FlowchartProcess','shape.type.math-equal','_imageShapeClipController','FlowchartDecision','ShapeStraightConnector2Icon','renderDrawingShape','ShapeGradientTypeEnum','shape.type.action-button-help','shape.type.up-down-arrow-callout','_copyInfo','ImageFillModeEnum','VERTICAL_ROTATE_ANGLE','vertexAngle','ShapeHalfFrameIcon','TOP','sheet.command.set-shape-text-font-size','UpArrow','sheets-shape.line.capType.square','_subUnitId','adjName','_baseTop','Gear9','complete','SHAPE','VIEW_MAIN_LEFT_TOP','BracketPair','shape.type.decagon','setTimeout','sheets-shape.fill.picture.align.r','_connectorObjects','ShapeActionButtonMovieIcon','AccentBorderCallout2','ShapeArcIcon','sheets-shape.fill.picture.tileAsTexture','deepClone','shape.type.bevel','ComponentManager','setCanUseShapeClip','shape.type.wave','getShapeDataById','sheets-shape.fill.solidFill','shape.type.folder-corner','shape.type.circular-arrow','6EGpyjT','shape.type.snip2-diag-rect','BentConnector3','disableObjectsEvent','ShapeFlowChartExtractIcon','_insertShapes','ShapeCloudCalloutIcon','shape.type.accent-border-callout2','@univerjs-pro/sheets-shape-ui','shape-adjust-point-','sheets-shape.line.capType.round','shape.type.action-button-back-previous','shape.type.round-rect','beginPath','FlowchartDelay','adjHandleFill','WrapStrategy','Accordion','domX','_executeConnectedRouteConnectionCommand','_baseShapeHeight','dataStream','#1a73e8','isInGroup','useRef','max','ShapeActionButtonHelpIcon','RichTextEditingMutation','ShapeStar5Icon','icon','shape.type.half-frame','permission.dialog.editErr','cxnIndex','UniverInstanceType','activeAnObject','getSelectionRanges','RadioGroup','sheets-shape.line.arrowSize.medium','VIEW_MAIN_LEFT','_focusedDrawings','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_clearShapeAdjustControls','length','cxnPointStroke','saveImage','shape-text-editor-content','sheets-shape.line.transparency','BUTTON_SELECTOR','ShapeFlowChartPunchedTapeIcon','group\x20univer-relative\x20univer-inline-block','image/*','filter','getSkeleton','floor','ToggleSheetsShapeFlipCommand','getRenderById','_init','SetSheetsShapeTextVerticalToggleCommand','ShapeNoSmokingIcon','shape.type.plus','Shape','disposeWithMe','shape.type.flow-chart-display','Injector','univer-box-border\x20univer-px-4\x20univer-text-sm','ShapePlusIcon','shape.type.straight-connector1','parse','_transform','blockArrow','shape.type.left-right-arrow-callout','onerror','rectangle','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','sqrt','shape.type.bent-arrow','sheets-shape.line.color','sheets-shape.fill.picture.align.t','WedgeRoundRectCallout','shape.type.ellipse-ribbon','univer-relative\x20univer-size-full\x20univer-overflow-visible','HomePlate','doc','pushUndoRedo','Linear','SheetSkeletonManagerService','NoFill','MathMinus','composeMatrix','sheet.command.set-shape-text-font-size-decrease','linear','_handleConnectorPointerUp','ShapeFlowChartCollateIcon','Snip2SameRect','sheets-shape.line.arrowType.stealthArrow','_initCopyPaste','imageTile','ShapeFlowChartConnectorIcon','ShapeBorderCallout1Icon','ShapeSnip2SameRectIcon','registerFeatureMenuOffset','_sheetCanvasPopManagerService','_isImagePointerDown','DrawingTypeEnum','ShapeDiamondIcon','shape.type.flow-chart-preparation','addObject','_createShapeAdjustControls','Medium','setShapeData','Pie','startArrow','SheetsShapeService','DocSkeletonManagerService','ShapeActionButtonEndIcon','ActionButtonEnd','skeleton','Line','imageRotateWithShape','_baseHeight','_initSheetChange','VIEW_MAIN','IImageIoService','ShapeHomePlateIcon','ShapeRightArrowCalloutIcon','getDrawingPoints','AccentCallout3','radial','shape.type.parallelogram','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','UpArrowCallout','getFreeze','ShapeCallout1Icon','_isStartConnectorPoint','shape.type.bent-connector3-arrow2','CURSOR_TYPE','ThemeService','sheets-shape.toggleTextVertical','_cxtHandlerPointerMove','alignment','PieWedge','ShapePieIcon','ShapeLeftUpArrowIcon','LeftRightCircularArrow','shape.type.wedge-ellipse-callout','line','ShapeMathPlusIcon','getShapeType','shape.type.plaque-tabs','ShapeFlowChartSortIcon','sheets-shape.line.beginArrowSize','COMMAND','ShapeBevelIcon','shape.type.up-arrow-callout','shape.type.snip2-same-rect','adjHandleStroke','shape.type.flow-chart-offline-storage','_clearControls','DrawingApplyType','RemoveSheetCommand','ImageSourceTypeEnum','_shapeUpdateListener','_registerOperations','sheets-shape.line.endArrowType','toDisposable','min','shape.type.bracket-pair','_calculateFreeEndpointAngle','_componentManager','ActionButtonBackPrevious','ShapeDoubleWaveIcon','useEffect','2917313IJqWWW','calculate','_sheetDrawingShapeRenderController','undo','entries','span','SheetsSelectionsService','univer-size-full','ShapeCurvedConnector3Arrow2Icon','isConnectorShape','shape.type.pie-wedge','buildClipPath','SHEET_SHAPE_UI_PLUGIN','isFinite','shape.type.flow-chart-predefined-process','ShapeQuadArrowIcon','IMenuManagerService','ShapeCallout2Icon','memo','RemoveSheetsShapeMutation','isLineShape','_addShapeConnectorHandlerObjects','DocumentViewModel','FlowchartManualInput','ShapeModel','sheets-shape.line.dashType.roundDot','shape.type.trapezoid','_sheetSkeletonService','ShapeNotchedRightArrowIcon','ShapeCurvedConnector3Icon','DocumentDataModel','getEditing','_activeShapeInfo','_renderManagerService','shape.type.star12','_getSceneAndTransformerByDrawingSearch','_activeAdjustPointList','VerticalAlign','FlowchartCollate','ShapePentagonIcon','FlowchartDocument','_createControls','setOnSavingEditorData','_loadShapePictureFill','clearAdjustValue','save','getAdjustValueByName','basicShape','IEditorService','WedgeRectCallout','ShapeCurvedConnector3Arrow1Icon','ShapeTeardropIcon','_shapeTextEditingService','_initSelection','Dodecagon','ShapeCanIcon','MIDDLE','size','CloudCallout','group','shape.type.notched-right-arrow','shape.group.','redo','gdRefR','_unitId','FlowchartMagneticDrum','sheetTransform','image-clip-adjust-point-','ShapeLineInvIcon','sheets-shape.line.arrowSize.large','Dash','_activeShapeAdjustPointList','startY','AccentCallout1','stringify','ShapeChartStarIcon','restore','sheets-shape.fill.picture.rotateWithShape','#000000','_isHighlighted','shape.type.flow-chart-merge','getBatchAddOp','_updateSrcRectByTransform','SetInlineFormatTextBackgroundColorCommand','ShapeChartXIcon','REMOVE','ShapeAccentCallout3Icon','shape.type.flow-chart-sort','sheets-shape.line.sketchType.none','dataModel','sheets-shape.fill.picture.scaleY','_activeShapeId','offset','ShapeCurvedRightArrowIcon','shape.type.accent-callout1','RENDER_CLASS_TYPE','ShapeDecagonIcon','SquareTabs','sheets-shape.line.sketchType.handDrawn','INSERT','bind','ShapeFillEnum','ShapeFlowChartDocumentIcon','_registerMoveHandler','Transform','getBoundingClientRect','Vector2','_lastEditingShapeKey','deriveStateFromActiveSheet$','_targetShapeId','scene','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','_menuManagerService','_updateImageAdjValues','ShapeRtTriangleIcon','classType','getMatrix','sheet.command.shape-doc-align','_univerInstanceService','ShapeRightArrowIcon','ShapeLeftBraceIcon','ShapeActionButtonBackPreviousIcon','shape.type.brace-pair','SHEET_VIEWPORT_KEY','ShapeChordIcon','_sheetBasicShapeConnectionPointController','AccentBorderCallout1','getAdjustInfoByName','MathEqual','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_onSavingEditorData$','value','ShapeChartPlusIcon','_activeAdjustInfo','values','angle','sheets-shape.line.dashType.title','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','ShapeBentConnector3Arrow1Icon','push','CircularArrow','univer-w-28','none','getCanvasElement','DiagStripe','left','shape.type.ellipse','ShapeFlowChartDecisionIcon','ShapeLeftRightCircularArrowIcon','_drawingRenderService','FlowchartOffPageConnector','ShapeFlowChartOfflineStorageIcon','gdRefY','_registerShapeMenu','useIsFocusing','imageOpacity','ShapeDefaultConfig','getColorFromTheme','FlowchartConnector','ShapeCubeIcon','ShapeUpDownArrowCalloutIcon','_drawRichText','invert','ShapeFlowChartMergeIcon','ShapeUpArrowCalloutIcon','Dropdown','sheets-shape.rotateRight90','sin','ShapeRightBracketIcon','ShapeOctagonIcon','shape.type.vertical-scroll','Cloud','useAbsolutePosition','packageName','isRender','section','shape.type.curved-connector3-arrow2','getParent','shape.type.flow-chart-offpage-connector','PaintBucketDoubleIcon','some','isHighlighted','drawingType','includes','jsx','_attachConnectorObjectEvent','5881403UdZvZc','ShapeHeartIcon','_adjName','startConnectionDetection','setContextValue','sheets-shape.fill.picture.align.bl','syncExecuteCommand','QuadArrowCallout','shape-text-editor','Sun','ShapeMathMinusIcon','ShapeFlowChartInputOutputIcon','LocaleService','ShapeFlowChartPredefinedProcessIcon','ShapeFlowChartManualInputIcon','shape.type.rt-triangle','sheetViewStartRow','setSelectionRanges','IrregularSeal1','41OGxVse','POSITIVE_INFINITY','_isOpenedShapeEditPanel','ShapeTypeEnum','getConnectionRelation','shape.type.accent-callout3','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','RIGHT','subUnitId','ActionButtonSound','getTransformer','stops','fill','sheets-shape.line.endArrowSize','slice','isStartConnectorPoint','cxnPointStrokeWidth','sheets-shape.hidePanel','flipY','_currentConnectionTarget','ShapeFrameIcon','sheet.operation.close-sheet-shape-format-panel','lineStrokeType','_sheetsShapeService','_isStartAdjusting','IUndoRedoService','_handleConnectedEndpointPointerUp','shape.type.left-brace','shape.type.donut','documentStyle','ancestorTransform','registerClipDelegate','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','shape.type.flow-chart-multidocument','params','_getConnectPointInfo','ConnectorCoordinateTransform','offsetX','Path','shape.type.star10','sheet.command.menu-insert-shape','IURLImageService','getShapeData','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','_clipService','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','ShapeStripedRightArrowIcon','engine','_updateShapeAdjustControls','shape.type.teardrop','_commandService','sheets-shape.insertShape','useEditor','_baseShapeWidth','getEndConnectInfo','ShapeFlowChartOnlineStorageIcon','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','CROSSHAIR','BlockArc','toolbar.resetColor','prstGeomAdjValues','_generateCopyPasteMutations','Angular','sheets-shape.line.noLine','Diamond','shape.type.flow-chart-document','FlowchartSort','DependentOn','LeftRightRibbon','ENTER','ShapeBentConnector3Icon','shape.type.uturn-arrow','sheets-shape.line.dashType.longDash','sheets-shape.fill.title','ShapeLeftRightUpArrowIcon','ShapeEllipseRibbon2Icon','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','ShapeAccentCallout2Icon','_connectionSiteObjects','__esModule','_createCopyInfoByRange','sheets-shape.fill.pictureFill','3730806eBiZSu','FlowchartMagneticDisk','getDrawingShapeKeyByDrawingSearch','_updateAdjustControlPositions','ShapeTrapezoidIcon','Star5','FlowchartInternalStorage','sheet.operation.open-sheet-shape-format-panel','ShapeEditor','name','getOwnPropertyNames','discreteRangeToRange','jsxs','_hasReset','image','ShapeFlowChartOrIcon','editingParams$','align.left','ShapeMathNotEqualIcon','sheetViewStartColumn','CurvedDownArrow','Documents','ShapeMoonIcon','disableShapeOption','subscribeEvent','univer-text-xl\x20univer-text-gray-500','connector-handler-','lineType','ShapePlaqueIcon','unitId','ColorPicker','\x20px','SetSheetsShapeRotateCommand','_getShapeAdjustInfosById','dispose','LeftJustifyingIcon','ShapeBentUpArrowIcon','SHAPE_TEXT','scale','FlowchartMagneticTape','univer-w-20','paragraphStyle','_executeResizeCommand','endArrow','BracePair','blockExecuteWithoutPermission','updateDocumentDataMargin','shape.type.line','flowchart','_sheetShapeAdjustController','ShapeMathEqualIcon','RightTriangle','_sheetDrawingService','displayName','registerCommand','DocumentSkeleton','clear','sheets-shape.shapePosition','shape.type.bent-connector3-arrow1','ShapeBentConnector3Arrow2Icon','_drawingManagerService','isHorizontal','_isDrawingShapePointDown','reduce','_getShapeAdjustPointListById','ShapeLineTypeEnum','align.center','round','getBasicShapeRelation','Select','_shapes','ShapeUturnArrowIcon','ShapeSwooshArrowIcon','DrawingImageClipService','shape.type.no-smoking','register','ShapeFlowChartAlternateProcessIcon','ShapeLeftArrowIcon','GROUP','getConnectionInfo','gdRefX','sheets-shape.line.arrowType.none','SetShapeDrawingDataCommand','shape.type.action-button-home','sheets-shape.line.joinType.title','LineInv','ShapeWedgeRectCalloutIcon','_transformCalculateSrcRect','ShapeCallout3Icon','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','shape.type.down-arrow','shape.type.flow-chart-magnetic-tape','sheets-shape.line.dashType.squareDot','shape.type.wedge-round-rect-callout','sheets-shape.fill.picture.align.ctr','shape.type.double-wave','srcRect','shape.type.star16','getSheetCommandTarget','_sheetPermissionCheckController','Star8','ShapeRoundRectIcon','sheets-shape.line.dashType.dash','FlowchartMerge','isArray','HalfFrame','ActionButtonBlank','switchMap','Star7','_adjHandlerPointerUp','shape.type.chord','SheetDrawingAnchor','ShapeAccentBorderCallout3Icon','clearAdjustControls','Curved','Can','setCursor','replace','_urlImageService','ShapeBentArrowIcon','sheets-shape.formatShape','opacity','ShapeRectTextboxVerticalIcon','makeDirty','cos','ActionButtonMovie','DownArrowCallout','renderConfig','ShapeFlowChartDelayIcon','_activeShapeModel','DEFAULT_PASTE','horizontalAlign','ShapeStar7Icon','iterator','LeftCircularArrow','ShapeCloudIcon','IDrawingManagerService','ShapeQuadArrowCalloutIcon','other','isRenderLinePointsMode','fillType','SheetSkeletonService','LightningBolt','shape.type.irregular-seal2','default','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','_cxtHandlerPointerUp','17560AVsdeV','angular','ShapeFlowChartOffpageConnectorIcon','ShapeStar32Icon','_commandExecutedListener','getBatchRemoveOp','updateConnectionDetection','sheets-shape.line.dashType.dashDot','ShapeFlowChartDisplayIcon','refreshAdjustControls','_isConnecting','sheets-shape.fill.color','shape.type.star7','ShapeFlowChartProcessIcon','calcAdjValue','UNIVER_SHEET','Ribbon','Star16','addClipboardHook','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','getStartConnectInfo','button','ShapeFlowChartManualOperationIcon','CurvedConnector3','shape.type.irregular-seal1','computeConnectorResizeLayout','Round','updateShapeFillImage','starAndBanner','scaleX','shape.type.can','univer-pt-2','_showConnectionSites','ActionButtonHelp','getCurrentSkeleton','ShapeFolderCornerIcon','_loadAndSetImage','startX','shape.type.sun','LeftArrowCallout','ActionButtonInformation','ShapeLineCapEnum','function','SetShapeTextHorizontalAlignCommand','ShapeTriangleIcon','Moon','shape.type.math-plus','index','add','ActionButtonForwardNext','shape.type.rect','_handleFreeEndpointMove','Teardrop','shape.type.math-multiply','_sidebarService','Flat','render','MenuItemType','shape.type.left-arrow-callout','ShapeDodecagonIcon','shape-text-','shape.type.curved-up-arrow','shape.type.curved-left-arrow','getCurrentLastSelection','align.right','MathMultiply','ShapeStar16Icon','Inject','SnipRoundRect','_getShapeInfo','UturnArrow','shape.type.chart-plus','FlowchartAlternateProcess','call','BentUpArrow','transformByState','top','open','AlignBottomIcon','GradientFill','shape.type.star5','useCallback','unsubscribe','InsertShapeCommand','#bcbcbc','#ffffff','Heptagon','registerFeatureMenu','shape.type.cloud','ShapeStar10Icon','indexOf','OPERATION','cxnPointFill','_getImagePrstGeom','ShapeArrowSizeEnum','pick','HorizontalScroll','isHitLine','_initCommands','CommandType','ShapeFlowChartInternalStorageIcon','shape.type.ribbon2','StripedRightArrow','PictureFill','_props','type','shape.type.border-callout2','subscribeContextValue$','ShapeActionButtonReturnIcon','_rerouteConnectorLine','toStringTag','ShapeRound1RectIcon','_registerDrawingMoveHandler','_getZoomRatio','getShapePopupMenus','_injector','adjustValues','ShapeSketchTypeEnum','UPDATE','cxnPointRadius','sheets-shape-ui','getViewportByCell','shapeId','get','shape.type.left-right-circular-arrow','registerRenderModule','0.22.0','sheets-shape.line.title','constructor','ShapeBlockArcIcon','10wVLYsv','UniverSheetsShapeUIPlugin','LongDashDotDot','SheetInterceptorService','isHit','WRAP','ShapeSnipRoundRectIcon','colStartX','getImageSize','img','sheets-shape.line.width','point','ShapeRectTextboxHorizontalIcon','target','_getOrCreateShapeModel','rowStartY','HorizontallyIcon','IContextService','from','image-panel.crop.shape','gradientStops','sheets-shape.rotateLeft90','sheets-shape.fill.noFill','Stretch','getZoomRatio','shape.type.straight-connector2','WorkbookEditablePermission','gradientType','ShapeSunIcon','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeHorizontalScrollIcon','FlowchartPunchedTape','shapeType','_moveConnectorWithShape','undefined','getBatchUpdateOp','ShapeRightBraceIcon','ShapeStar12Icon','_draggingConnectorId','univer-text-gray-600\x20univer-transition-transform','UpdateLineShapeResizeCommand','2087728GnPxZn','ShapeFlowChartMagneticTapeIcon','sheets-shape.line.sketchType.curved','Octagon','ShapeWedgeRoundRectCalloutIcon','CurvedRightArrow','ShapeFlowChartPreparationIcon','Miter','shape.type.corner','_drawingType','FOCUSING_SHAPE_TEXT_EDITOR','Arc','_baseShapeLeft','ShapeUpArrowIcon','CurvedLeftArrow','translate','InsertSheetsShapeMutation','shape.type.quad-arrow','shape.type.down-arrow-callout','file','onRendered','flipX','clsx','setSrcRect','FlowchartMultiDocument','_addShapeAdjustControl','ShapeStraightConnector1Icon','_drawSimpleText','onTransformChange$','UUID','shape.type.accent-callout2','translateWithPrecision','align.top','sheet.shape.edit.panel','_clearConnectionSites','ShapeRound2SameRectIcon','isEditing','ShapeFlowChartTerminatorIcon','Square','univer-flex\x20univer-items-center\x20univer-gap-2','Snip2DiagRect','LongDashDot','#FFFFFF','getFocusDrawings','ShapeVerticalScrollIcon','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','ShapeLineIcon','DRAWING_IMAGE','ShapeWaveIcon','textRect','subscribe','shape.type.accent-border-callout3','CurvedUpArrow','IRenderManagerService','clearTimeout','CENTER','_initialize','routeConnectorLineShape','shape.type.pentagon','hasOwnProperty','univer-flex-1\x20univer-overflow-auto','updateLinePoints','shape.type.action-button-sound','BentArrow','getDrawingEditable','ShapeSquareTabsIcon','ShapeCurvedLeftArrowIcon','decorate','rotate(','visible','shape.type.snip-round-rect','Pentagon','_initPermission','shape.type.non-isosceles-trapezoid','shape.type.flow-chart-connector','ShapeActionButtonBlankIcon','Callout1','_editingParams$','transform','string','setEditing','ShapeHexagonIcon','current','abs','ShapeDonutIcon','getObject','rotation','activeSheet$','update$','Callout2','Gear6','map','_setTransForm','ShapeAccentCallout1Icon','ShapeStar24Icon','connection-site-','onPointerDown$','getConnectorLinePoints','shape.type.action-button-movie','SquareDot','getDrawingByParam','UpdateShapeDataCommand','shape.type.round2-diag-rect','computeConnectorRouteLayout','onReady','oKey','DRAWING_SHAPE','BorderCallout1','Star12','changeShapeType','RightJustifyingIcon','SolidLine','shape.type.round2-same-rect','diamond','drawing.operation.set-drawing-active','ShapeSnip1RectIcon','getTransformerByCreate','ShapeStar6Icon','shape.type.gear6','ShapeCircularArrowIcon','StealthArrow','offsetY','ShapeFlowChartSummingJunctionIcon','clip-adj-','DoubleWave','_isShouldShowDrawingShapeAdjust','ShapeLightningBoltIcon','ShapeBorderCallout2Icon','horizontal','getDrawingSearch','DrawingCommonPanel','Triangle','changing$','prstGeom','prototype','_initMenu','ShapeChevronIcon','ShapeRibbonIcon','_getScrollInfo','Observable','_registerImageShapeClipDelegate','generateRandomId','_activeImageId','AlignTopIcon','shape.type.flow-chart-manual-input','ICommandService','mergeMenu','_resetState','ShapeActionButtonHomeIcon','_getImageDrawingInfo','ActionButtonBeginning','verticalAlign','shape.type.left-arrow','adjHandleSize','shape.type.action-button-return','getCurrentTypeOfUnit$','sheets-shape.line.solidLine','blur','clip','shape.type.right-arrow','isCurvedConnectorShape','shape.type.callout3','updateContext','setHighlighted','asObservable','SmileyFace','refreshTransform','shape.type.flow-chart-collate','Button','SheetScrollManagerService','ShapeFlowChartPunchedCardIcon','Wave','sheets-shape.fill.transparency','highlighted','shape.type.swoosh-arrow','worldPoint','ShapeIrregularSeal2Icon','height','SetDrawingApplyMutation','Hexagon','Chevron','Callout3','endConnectionDetection','ShapeTextEditorContainer','univer-flex\x20univer-items-center\x20univer-justify-between','Plus','ShapeActionButtonForwardNextIcon','BehaviorSubject','LeftRightArrow','callout','getUnit','setAdjustValueByName','sheets-shape.line.arrowType.openArrow','transformToDrawingPosition','sheets-shape.line.dashType.longDashDot','_adjHandlerPointerMove','NoLine','fillImageSourceType','shapeModel','getShapeTextData','with','ChartX','sheets-shape.line.sketchType.title','ShapeStar8Icon','getAncestorScale','_configService','getCurrentScrollState','vertical','parseFloat','CopySheetCommand','FOCUSING_PANEL_EDITOR','clone','ShapeGear9Icon','ShapeIcon','FlowchartDisplay','ShapeDownArrowIcon','_sheetClipboardService','attachRangeWithCoord','RoundDot','_addShapeConnectorHandlerObject','files','beforeCommandExecuted','_contextService','forEach','DiamondArrow','keys','remove$','interceptCommand','shape.type.gear9','sheet.shape.picker.component','getUnitId','Funnel','focusDrawing','shape.type.funnel','ShapeBracePairIcon','shapeData','_currentScene','shape.type.right-bracket','setPrstGeom','LAYOUT','AccentCallout2','shape.type.frame','shape.type.diamond','warn','_registerFocusChangeHandler','LongDash','shape.type.flow-chart-punched-card','startWith','ShapeLeftRightRibbonIcon','ShapeActionButtonSoundIcon','_shapeService','sheets-shape.fill.picture.scaleX','_baseWidth','getDrawingData','HorizontalAlign','ShapeEllipseIcon','PREDEFINED_HOOK_NAME','align.bottom','shape.type.horizontal-scroll','centerAngle','FlowchartSummingJunction','normal','ShapeMathDivideIcon','addImageSourceCache','univer-rounded-lg\x20univer-p-3','Heart','shape.type.right-brace','Large','_openShapeEditPanel','getContextValue','position','getShapeTextRect','_config','setDocumentData','sheet.command.set-shape-text-vertical-align','shape.type.border-callout3','SetShapeTextFontSizeDecreaseCommand','Star4','_currentUniverService','1525428WesAxL','onCommandExecuted','ShapeBracketPairIcon','getDrawingVisible','getActualSize','FlowchartTerminator','ChartPlus','sheets-shape.fill.picture.align.tr','ShapeMathMultiplyIcon','VIEW_MAIN_TOP','COPY_TYPE','focus$','ShapeBorderCallout3Icon','shape.type.flow-chart-punched-tape','SheetsDrawingGroupCopyPasteController','CUT','shape.type.left-bracket','getViewport','ShapeLineJoinEnum','close','getSheetBySheetId','shape.type.left-up-arrow','InputNumber','ActionButtonDocument','NonIsoscelesTrapezoid','univer-text-gray-500','univer-hidden','toolbar.verticalAlignMode.main','Small','clipByShape','stroke','shape.type.left-right-ribbon','RightArrowCallout','shape.type.action-button-forward-next','width','ShapeCurvedDownArrowIcon','_registerDrawingFocusChangeHandler','ShapeEllipseRibbonIcon','shape.type.pie','getAdjustNames','ShapePlaqueTabsIcon','ShapeCurvedUpArrowIcon','executeCommand','ShapeNonIsoscelesTrapezoidIcon','ShapeAccentBorderCallout2Icon','shapeKey','FlowchartPunchedCard','ShapeFlowChartMagneticDrumIcon','_activeTargetShapeId','setZoomRatio'];_0x458e=function(){return _0x1cfa0d;};return _0x458e();}function ShapeMenuItemFactory(_0x30d88f){const _0x5a73ae=_0x101898,_0x11c285=_0x30d88f[_0x5a73ae(0x49b)](_univerjs_core[_0x5a73ae(0x653)]);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x5a73ae(0x459)][_0x5a73ae(0x124)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x5a73ae(0x5a0),'tooltip':_0x5a73ae(0x36e),'activated$':(0x0,_univerjs_sheets_ui[_0x5a73ae(0x2da)])(_0x11c285,![],()=>new rxjs[(_0x5a73ae(0x556))](_0x1f2b46=>{const _0x1c27b2=_0x5a73ae;_0x1f2b46[_0x1c27b2(0x119)](![]);})),'hidden$':(0x0,_univerjs_ui['getMenuHiddenObservable'])(_0x30d88f,_univerjs_core['UniverInstanceType'][_0x5a73ae(0x42f)]),'disabled$':(0x0,_univerjs_sheets_ui['getCurrentRangeDisable$'])(_0x30d88f)};}const menuSchema={[_univerjs_ui[_0x101898(0x67a)][_0x101898(0x66d)]]:{[_univerjs_ui[_0x101898(0x616)][_0x101898(0x5ba)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui[_0x101898(0x616)]['FORMAT']]:{[_univerjs_docs_ui[_0x101898(0x2c1)]['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[_0x101898(0x66b)]{constructor(_0x54f8a2,_0x2ce03e,_0x12fe04,_0x3538d0,_0x17ba69,_0xe9c3d0,_0x28edde,_0x245263,_0x19f79b,_0x4d1b53,_0x47db44){const _0x1f64b9=_0x101898;super(),this[_0x1f64b9(0x2e4)]=_0x54f8a2,this[_0x1f64b9(0x66e)]=_0x2ce03e,this[_0x1f64b9(0x456)]=_0x12fe04,this[_0x1f64b9(0x2de)]=_0x3538d0,this[_0x1f64b9(0x352)]=_0x17ba69,this[_0x1f64b9(0x679)]=_0xe9c3d0,this[_0x1f64b9(0x26a)]=_0x28edde,this[_0x1f64b9(0x36d)]=_0x245263,this[_0x1f64b9(0x3c9)]=_0x19f79b,this[_0x1f64b9(0x227)]=_0x4d1b53,this[_0x1f64b9(0x5a9)]=_0x47db44,_defineProperty(this,'_sidebarDisposable',null),_defineProperty(this,_0x1f64b9(0x28e),null),_defineProperty(this,_0x1f64b9(0x33d),![]),this['_registerComponent'](),this[_0x1f64b9(0x552)](),this[_0x1f64b9(0x1ff)](this[_0x1f64b9(0x2e4)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x1f64b9(0x1e3)][_0x1f64b9(0x42f)])[_0x1f64b9(0x4fd)](_0x1c3f89=>{const _0x2e68cf=_0x1f64b9;var _0x7f8063;if(!_0x1c3f89)(_0x7f8063=this[_0x2e68cf(0x665)])===null||_0x7f8063===void 0x0||_0x7f8063[_0x2e68cf(0x3af)]();})),this[_0x1f64b9(0x264)](),this['_registerShapeMenu']();}[_0x101898(0x552)](){const _0x397d1c=_0x101898;this[_0x397d1c(0x2de)][_0x397d1c(0x55d)](menuSchema);}[_0x101898(0x307)](){const _0xd74b97=_0x101898;this[_0xd74b97(0x227)][_0xd74b97(0x477)](_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE'],this[_0xd74b97(0x492)][_0xd74b97(0x2d2)](this)),this[_0xd74b97(0x227)][_0xd74b97(0x226)](_univerjs_core[_0xd74b97(0x229)][_0xd74b97(0x535)],0x6,0x4);}[_0x101898(0x492)](_0x3ebbbd,_0x3aff96,_0x31a439,_0x20fafd){const _0x3e79ea=_0x101898;return[{'label':_0x3e79ea(0x670),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'drawingId':_0x31a439},'disable':_0x20fafd===_univerjs_core['DrawingTypeEnum'][_0x3e79ea(0x63f)]},{'label':_0x3e79ea(0x152),'index':0x1,'commandId':_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x3ebbbd,'drawings':[{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'drawingId':_0x31a439,'drawingType':_0x20fafd}]},'disable':![]},{'label':_0x3e79ea(0x34c),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'drawingId':_0x31a439},'disable':![]},{'label':_0x3e79ea(0x158),'index':0x3,'commandId':_univerjs_pro_sheets_shape['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439,'flipH':!![]},'disable':![]},{'label':'sheets-shape.toggleFlipV','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x3e79ea(0x1f8)]['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439,'flipV':!![]},'disable':![]},{'label':_0x3e79ea(0x314),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x3e79ea(0x3ad)]['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439,'rotate':0x5a},'disable':![]},{'label':_0x3e79ea(0x4b7),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x3e79ea(0x3ad)]['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439,'rotate':-0x5a},'disable':![]},{'label':_0x3e79ea(0x24b),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x3e79ea(0x1fb)]['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439},'disable':![]}];}[_0x101898(0x465)](_0x4ea1dd,_0x5f31f6,_0x51f2ab){const _0x477199=_0x101898,_0x1265ea=this[_0x477199(0x352)][_0x477199(0x621)](_0x4ea1dd,_0x5f31f6,_0x51f2ab),_0x34bb2f=this['_sheetsShapeService'][_0x477199(0x1be)](_0x4ea1dd,_0x5f31f6,_0x51f2ab);if(_0x1265ea!==void 0x0&&_0x34bb2f!==void 0x0)return{'shapeData':_0x34bb2f,'shapeId':_0x51f2ab,'shapeType':_0x1265ea,'unitId':_0x4ea1dd,'subUnitId':_0x5f31f6,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x5bfe2b=_0x101898;this[_0x5bfe2b(0x1ff)](this[_0x5bfe2b(0x36d)][_0x5bfe2b(0x5e3)](_0x569d83=>{const _0x25697e=_0x5bfe2b;if(_0x569d83['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x27dfa5,subUnitId:_0x28cfba,drawingId:_0x47c829}=_0x569d83[_0x25697e(0x35d)];this['_activeShapeInfo']=this['_getShapeInfo'](_0x27dfa5,_0x28cfba,_0x47c829),this[_0x25697e(0x5d7)]();}_0x569d83['id']===CloseSheetShapeFormatPanelOperation['id']&&(this['_activeShapeInfo']=null,this[_0x25697e(0x622)]());if(_0x569d83['id']===_univerjs_pro_sheets_shape[_0x25697e(0x620)]['id']){const {unitId:_0x5ecedc,subUnitId:_0x1001e6,shapeId:_0x3ba2e3}=_0x569d83['params'];if(this[_0x25697e(0x28e)]&&this[_0x25697e(0x28e)][_0x25697e(0x49a)]===_0x3ba2e3){const _0x6c5764=this[_0x25697e(0x465)](_0x5ecedc,_0x1001e6,_0x3ba2e3);if(_0x6c5764)this[_0x25697e(0x28e)]=_0x6c5764;}}})),this[_0x5bfe2b(0x1ff)](this[_0x5bfe2b(0x3c9)]['focus$'][_0x5bfe2b(0x4fd)](_0x21e486=>{const _0x515cc9=_0x5bfe2b;if(this[_0x515cc9(0x33d)]===![])return;if(_0x21e486[_0x515cc9(0x1ec)]===0x0){this[_0x515cc9(0x28e)]=null,this[_0x515cc9(0x622)]();return;}if(_0x21e486[_0x515cc9(0x1ec)]===0x1&&_0x21e486[0x0][_0x515cc9(0x324)]===_univerjs_core[_0x515cc9(0x229)]['DRAWING_SHAPE']){this[_0x515cc9(0x28e)]=this[_0x515cc9(0x465)](_0x21e486[0x0][_0x515cc9(0x3aa)],_0x21e486[0x0][_0x515cc9(0x343)],_0x21e486[0x0][_0x515cc9(0x16c)]);if(this[_0x515cc9(0x28e)]){this['_openShapeEditPanel']();return;}}const _0x7816a=_0x21e486[_0x515cc9(0x1f5)](_0x34e1ae=>{const _0x286103=_0x515cc9;return _0x34e1ae['drawingType']===_univerjs_core[_0x286103(0x229)][_0x286103(0x535)];});if(_0x21e486[_0x515cc9(0x1ec)]>0x1&&_0x7816a['length']===_0x21e486[_0x515cc9(0x1ec)]){this[_0x515cc9(0x28e)]=this[_0x515cc9(0x465)](_0x21e486[0x0][_0x515cc9(0x3aa)],_0x21e486[0x0][_0x515cc9(0x343)],_0x21e486[0x0]['drawingId']);if(this[_0x515cc9(0x28e)]){this['_openShapeEditPanel']();return;}}else{this[_0x515cc9(0x28e)]=this['_getShapeInfo'](_0x21e486[0x0][_0x515cc9(0x3aa)],_0x21e486[0x0]['subUnitId'],_0x21e486[0x0][_0x515cc9(0x16c)]);if(this[_0x515cc9(0x28e)]){this[_0x515cc9(0x28e)][_0x515cc9(0x3a4)]=!![],this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}['_registerComponent'](){const _0x3e7313=_0x101898;[[_0x3e7313(0x5a0),_univerjs_icons[_0x3e7313(0x5a0)]],['ShapeAccentBorderCallout1Icon',_univerjs_icons['ShapeAccentBorderCallout1Icon']],[_0x3e7313(0x60e),_univerjs_icons[_0x3e7313(0x60e)]],[_0x3e7313(0x3fd),_univerjs_icons[_0x3e7313(0x3fd)]],[_0x3e7313(0x528),_univerjs_icons['ShapeAccentCallout1Icon']],[_0x3e7313(0x388),_univerjs_icons[_0x3e7313(0x388)]],[_0x3e7313(0x2c4),_univerjs_icons[_0x3e7313(0x2c4)]],[_0x3e7313(0x2e7),_univerjs_icons['ShapeActionButtonBackPreviousIcon']],[_0x3e7313(0x625),_univerjs_icons[_0x3e7313(0x625)]],[_0x3e7313(0x516),_univerjs_icons[_0x3e7313(0x516)]],[_0x3e7313(0x63b),_univerjs_icons[_0x3e7313(0x63b)]],[_0x3e7313(0x234),_univerjs_icons[_0x3e7313(0x234)]],[_0x3e7313(0x585),_univerjs_icons[_0x3e7313(0x585)]],[_0x3e7313(0x1dc),_univerjs_icons[_0x3e7313(0x1dc)]],[_0x3e7313(0x55f),_univerjs_icons['ShapeActionButtonHomeIcon']],[_0x3e7313(0x144),_univerjs_icons[_0x3e7313(0x144)]],['ShapeActionButtonMovieIcon',_univerjs_icons['ShapeActionButtonMovieIcon']],['ShapeActionButtonReturnIcon',_univerjs_icons[_0x3e7313(0x48c)]],[_0x3e7313(0x5c4),_univerjs_icons['ShapeActionButtonSoundIcon']],[_0x3e7313(0x1b7),_univerjs_icons[_0x3e7313(0x1b7)]],['ShapeBentArrowIcon',_univerjs_icons[_0x3e7313(0x404)]],['ShapeBentConnector3Arrow1Icon',_univerjs_icons[_0x3e7313(0x2f8)]],['ShapeBentConnector3Arrow2Icon',_univerjs_icons[_0x3e7313(0x3c8)]],[_0x3e7313(0x381),_univerjs_icons[_0x3e7313(0x381)]],['ShapeBentUpArrowIcon',_univerjs_icons[_0x3e7313(0x3b1)]],['ShapeBevelIcon',_univerjs_icons[_0x3e7313(0x25a)]],[_0x3e7313(0x4a1),_univerjs_icons['ShapeBlockArcIcon']],[_0x3e7313(0x224),_univerjs_icons[_0x3e7313(0x224)]],[_0x3e7313(0x54a),_univerjs_icons[_0x3e7313(0x54a)]],[_0x3e7313(0x5ee),_univerjs_icons[_0x3e7313(0x5ee)]],[_0x3e7313(0x5b5),_univerjs_icons[_0x3e7313(0x5b5)]],[_0x3e7313(0x5e4),_univerjs_icons[_0x3e7313(0x5e4)]],[_0x3e7313(0x246),_univerjs_icons[_0x3e7313(0x246)]],[_0x3e7313(0x27f),_univerjs_icons[_0x3e7313(0x27f)]],[_0x3e7313(0x3e5),_univerjs_icons['ShapeCallout3Icon']],[_0x3e7313(0x2a5),_univerjs_icons['ShapeCanIcon']],[_0x3e7313(0x2f2),_univerjs_icons[_0x3e7313(0x2f2)]],[_0x3e7313(0x2b9),_univerjs_icons[_0x3e7313(0x2b9)]],[_0x3e7313(0x2c2),_univerjs_icons[_0x3e7313(0x2c2)]],[_0x3e7313(0x553),_univerjs_icons[_0x3e7313(0x553)]],['ShapeChordIcon',_univerjs_icons[_0x3e7313(0x2ea)]],[_0x3e7313(0x542),_univerjs_icons[_0x3e7313(0x542)]],['ShapeCloudCalloutIcon',_univerjs_icons[_0x3e7313(0x1c8)]],[_0x3e7313(0x414),_univerjs_icons[_0x3e7313(0x414)]],[_0x3e7313(0x655),_univerjs_icons[_0x3e7313(0x655)]],[_0x3e7313(0x18d),_univerjs_icons[_0x3e7313(0x18d)]],[_0x3e7313(0x30d),_univerjs_icons[_0x3e7313(0x30d)]],[_0x3e7313(0x2a0),_univerjs_icons[_0x3e7313(0x2a0)]],[_0x3e7313(0x276),_univerjs_icons['ShapeCurvedConnector3Arrow2Icon']],[_0x3e7313(0x28b),_univerjs_icons[_0x3e7313(0x28b)]],[_0x3e7313(0x605),_univerjs_icons[_0x3e7313(0x605)]],[_0x3e7313(0x50d),_univerjs_icons[_0x3e7313(0x50d)]],[_0x3e7313(0x2cb),_univerjs_icons[_0x3e7313(0x2cb)]],['ShapeCurvedUpArrowIcon',_univerjs_icons[_0x3e7313(0x60b)]],[_0x3e7313(0x2ce),_univerjs_icons[_0x3e7313(0x2ce)]],[_0x3e7313(0x61b),_univerjs_icons['ShapeDiagStripeIcon']],['ShapeDiamondIcon',_univerjs_icons[_0x3e7313(0x22a)]],[_0x3e7313(0x45b),_univerjs_icons[_0x3e7313(0x45b)]],[_0x3e7313(0x51f),_univerjs_icons[_0x3e7313(0x51f)]],[_0x3e7313(0x26c),_univerjs_icons[_0x3e7313(0x26c)]],['ShapeDownArrowCalloutIcon',_univerjs_icons['ShapeDownArrowCalloutIcon']],[_0x3e7313(0x5a2),_univerjs_icons[_0x3e7313(0x5a2)]],[_0x3e7313(0x5ca),_univerjs_icons[_0x3e7313(0x5ca)]],['ShapeEllipseRibbon2Icon',_univerjs_icons[_0x3e7313(0x386)]],[_0x3e7313(0x607),_univerjs_icons[_0x3e7313(0x607)]],[_0x3e7313(0x3d9),_univerjs_icons[_0x3e7313(0x3d9)]],[_0x3e7313(0x21e),_univerjs_icons[_0x3e7313(0x21e)]],[_0x3e7313(0x223),_univerjs_icons[_0x3e7313(0x223)]],[_0x3e7313(0x301),_univerjs_icons[_0x3e7313(0x301)]],[_0x3e7313(0x40d),_univerjs_icons[_0x3e7313(0x40d)]],[_0x3e7313(0x428),_univerjs_icons['ShapeFlowChartDisplayIcon']],[_0x3e7313(0x2d4),_univerjs_icons[_0x3e7313(0x2d4)]],['ShapeFlowChartExtractIcon',_univerjs_icons[_0x3e7313(0x1c6)]],[_0x3e7313(0x333),_univerjs_icons['ShapeFlowChartInputOutputIcon']],[_0x3e7313(0x484),_univerjs_icons[_0x3e7313(0x484)]],['ShapeFlowChartMagneticDiskIcon',_univerjs_icons[_0x3e7313(0x644)]],[_0x3e7313(0x611),_univerjs_icons['ShapeFlowChartMagneticDrumIcon']],['ShapeFlowChartMagneticTapeIcon',_univerjs_icons['ShapeFlowChartMagneticTapeIcon']],['ShapeFlowChartManualInputIcon',_univerjs_icons[_0x3e7313(0x336)]],[_0x3e7313(0x436),_univerjs_icons[_0x3e7313(0x436)]],[_0x3e7313(0x311),_univerjs_icons[_0x3e7313(0x311)]],[_0x3e7313(0x687),_univerjs_icons[_0x3e7313(0x687)]],[_0x3e7313(0x305),_univerjs_icons[_0x3e7313(0x305)]],[_0x3e7313(0x422),_univerjs_icons[_0x3e7313(0x422)]],[_0x3e7313(0x372),_univerjs_icons[_0x3e7313(0x372)]],['ShapeFlowChartOrIcon',_univerjs_icons[_0x3e7313(0x39c)]],['ShapeFlowChartPredefinedProcessIcon',_univerjs_icons[_0x3e7313(0x335)]],['ShapeFlowChartPreparationIcon',_univerjs_icons['ShapeFlowChartPreparationIcon']],['ShapeFlowChartProcessIcon',_univerjs_icons[_0x3e7313(0x42d)]],[_0x3e7313(0x575),_univerjs_icons['ShapeFlowChartPunchedCardIcon']],[_0x3e7313(0x1f2),_univerjs_icons[_0x3e7313(0x1f2)]],[_0x3e7313(0x257),_univerjs_icons[_0x3e7313(0x257)]],[_0x3e7313(0x545),_univerjs_icons['ShapeFlowChartSummingJunctionIcon']],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x3e7313(0x4f0)]],[_0x3e7313(0x443),_univerjs_icons[_0x3e7313(0x443)]],[_0x3e7313(0x34f),_univerjs_icons['ShapeFrameIcon']],['ShapeFunnelIcon',_univerjs_icons[_0x3e7313(0x196)]],[_0x3e7313(0x18f),_univerjs_icons[_0x3e7313(0x18f)]],['ShapeGear9Icon',_univerjs_icons['ShapeGear9Icon']],[_0x3e7313(0x1a4),_univerjs_icons[_0x3e7313(0x1a4)]],['ShapeHeartIcon',_univerjs_icons['ShapeHeartIcon']],[_0x3e7313(0x166),_univerjs_icons['ShapeHeptagonIcon']],['ShapeHexagonIcon',_univerjs_icons['ShapeHexagonIcon']],[_0x3e7313(0x23d),_univerjs_icons[_0x3e7313(0x23d)]],[_0x3e7313(0x4c0),_univerjs_icons[_0x3e7313(0x4c0)]],['ShapeIrregularSeal1Icon',_univerjs_icons[_0x3e7313(0x685)]],[_0x3e7313(0x57b),_univerjs_icons[_0x3e7313(0x57b)]],[_0x3e7313(0x133),_univerjs_icons[_0x3e7313(0x133)]],[_0x3e7313(0x3da),_univerjs_icons[_0x3e7313(0x3da)]],['ShapeLeftBraceIcon',_univerjs_icons['ShapeLeftBraceIcon']],['ShapeLeftBracketIcon',_univerjs_icons['ShapeLeftBracketIcon']],[_0x3e7313(0x15f),_univerjs_icons[_0x3e7313(0x15f)]],[_0x3e7313(0x147),_univerjs_icons['ShapeLeftRightArrowCalloutIcon']],['ShapeLeftRightArrowIcon',_univerjs_icons['ShapeLeftRightArrowIcon']],[_0x3e7313(0x302),_univerjs_icons[_0x3e7313(0x302)]],[_0x3e7313(0x5c3),_univerjs_icons['ShapeLeftRightRibbonIcon']],[_0x3e7313(0x385),_univerjs_icons['ShapeLeftRightUpArrowIcon']],['ShapeLeftUpArrowIcon',_univerjs_icons[_0x3e7313(0x250)]],[_0x3e7313(0x549),_univerjs_icons['ShapeLightningBoltIcon']],[_0x3e7313(0x4f9),_univerjs_icons[_0x3e7313(0x4f9)]],[_0x3e7313(0x2b2),_univerjs_icons[_0x3e7313(0x2b2)]],[_0x3e7313(0x5d1),_univerjs_icons[_0x3e7313(0x5d1)]],[_0x3e7313(0x3bf),_univerjs_icons[_0x3e7313(0x3bf)]],[_0x3e7313(0x332),_univerjs_icons[_0x3e7313(0x332)]],['ShapeMathMultiplyIcon',_univerjs_icons[_0x3e7313(0x5ea)]],[_0x3e7313(0x39f),_univerjs_icons[_0x3e7313(0x39f)]],[_0x3e7313(0x254),_univerjs_icons[_0x3e7313(0x254)]],[_0x3e7313(0x3a3),_univerjs_icons[_0x3e7313(0x3a3)]],[_0x3e7313(0x1fc),_univerjs_icons['ShapeNoSmokingIcon']],[_0x3e7313(0x60d),_univerjs_icons[_0x3e7313(0x60d)]],[_0x3e7313(0x28a),_univerjs_icons[_0x3e7313(0x28a)]],['ShapeOctagonIcon',_univerjs_icons[_0x3e7313(0x317)]],['ShapeParallelogramIcon',_univerjs_icons[_0x3e7313(0x638)]],['ShapePentagonIcon',_univerjs_icons['ShapePentagonIcon']],[_0x3e7313(0x24f),_univerjs_icons[_0x3e7313(0x24f)]],['ShapePieWedgeIcon',_univerjs_icons[_0x3e7313(0x652)]],[_0x3e7313(0x3a9),_univerjs_icons[_0x3e7313(0x3a9)]],[_0x3e7313(0x60a),_univerjs_icons[_0x3e7313(0x60a)]],['ShapePlusIcon',_univerjs_icons[_0x3e7313(0x203)]],['ShapeQuadArrowCalloutIcon',_univerjs_icons['ShapeQuadArrowCalloutIcon']],[_0x3e7313(0x27d),_univerjs_icons[_0x3e7313(0x27d)]],[_0x3e7313(0x13a),_univerjs_icons[_0x3e7313(0x13a)]],[_0x3e7313(0x4ae),_univerjs_icons['ShapeRectTextboxHorizontalIcon']],['ShapeRectTextboxVerticalIcon',_univerjs_icons[_0x3e7313(0x407)]],['ShapeRibbon2Icon',_univerjs_icons[_0x3e7313(0x62d)]],[_0x3e7313(0x554),_univerjs_icons[_0x3e7313(0x554)]],['ShapeRightArrowCalloutIcon',_univerjs_icons[_0x3e7313(0x23e)]],['ShapeRightArrowIcon',_univerjs_icons[_0x3e7313(0x2e5)]],['ShapeRightBraceIcon',_univerjs_icons[_0x3e7313(0x4c6)]],[_0x3e7313(0x316),_univerjs_icons[_0x3e7313(0x316)]],[_0x3e7313(0x48f),_univerjs_icons[_0x3e7313(0x48f)]],[_0x3e7313(0x66f),_univerjs_icons[_0x3e7313(0x66f)]],[_0x3e7313(0x4ee),_univerjs_icons[_0x3e7313(0x4ee)]],[_0x3e7313(0x3f2),_univerjs_icons[_0x3e7313(0x3f2)]],[_0x3e7313(0x2e0),_univerjs_icons[_0x3e7313(0x2e0)]],[_0x3e7313(0x129),_univerjs_icons['ShapeSmileyFaceIcon']],['ShapeSnip1RectIcon',_univerjs_icons[_0x3e7313(0x53e)]],[_0x3e7313(0x645),_univerjs_icons['ShapeSnip2DiagRectIcon']],['ShapeSnip2SameRectIcon',_univerjs_icons[_0x3e7313(0x225)]],[_0x3e7313(0x4a8),_univerjs_icons[_0x3e7313(0x4a8)]],[_0x3e7313(0x50c),_univerjs_icons[_0x3e7313(0x50c)]],[_0x3e7313(0x479),_univerjs_icons[_0x3e7313(0x479)]],[_0x3e7313(0x4c7),_univerjs_icons[_0x3e7313(0x4c7)]],['ShapeStar16Icon',_univerjs_icons[_0x3e7313(0x462)]],[_0x3e7313(0x529),_univerjs_icons['ShapeStar24Icon']],[_0x3e7313(0x423),_univerjs_icons[_0x3e7313(0x423)]],[_0x3e7313(0x689),_univerjs_icons[_0x3e7313(0x689)]],[_0x3e7313(0x1de),_univerjs_icons[_0x3e7313(0x1de)]],[_0x3e7313(0x540),_univerjs_icons[_0x3e7313(0x540)]],[_0x3e7313(0x411),_univerjs_icons['ShapeStar7Icon']],['ShapeStar8Icon',_univerjs_icons[_0x3e7313(0x596)]],[_0x3e7313(0x4e5),_univerjs_icons[_0x3e7313(0x4e5)]],[_0x3e7313(0x19b),_univerjs_icons[_0x3e7313(0x19b)]],['ShapeStripedRightArrowIcon',_univerjs_icons[_0x3e7313(0x369)]],[_0x3e7313(0x4be),_univerjs_icons[_0x3e7313(0x4be)]],['ShapeSwooshArrowIcon',_univerjs_icons[_0x3e7313(0x3d5)]],[_0x3e7313(0x2a1),_univerjs_icons['ShapeTeardropIcon']],[_0x3e7313(0x391),_univerjs_icons[_0x3e7313(0x391)]],[_0x3e7313(0x44c),_univerjs_icons['ShapeTriangleIcon']],[_0x3e7313(0x312),_univerjs_icons[_0x3e7313(0x312)]],[_0x3e7313(0x4d8),_univerjs_icons[_0x3e7313(0x4d8)]],['ShapeUpDownArrowCalloutIcon',_univerjs_icons[_0x3e7313(0x30e)]],[_0x3e7313(0x11a),_univerjs_icons[_0x3e7313(0x11a)]],[_0x3e7313(0x3d4),_univerjs_icons[_0x3e7313(0x3d4)]],[_0x3e7313(0x4f7),_univerjs_icons[_0x3e7313(0x4f7)]],[_0x3e7313(0x4fb),_univerjs_icons[_0x3e7313(0x4fb)]],['ShapeWedgeEllipseCalloutIcon',_univerjs_icons['ShapeWedgeEllipseCalloutIcon']],[_0x3e7313(0x3e3),_univerjs_icons[_0x3e7313(0x3e3)]],[_0x3e7313(0x4cf),_univerjs_icons[_0x3e7313(0x4cf)]],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x3e7313(0x368)],ImageClipShapePicker]][_0x3e7313(0x5aa)](([_0x88b29f,_0x19e80f])=>{const _0x46048e=_0x3e7313;this['disposeWithMe'](this['_componentManager'][_0x46048e(0x3d8)](_0x88b29f,_0x19e80f));});}[_0x101898(0x5d7)](){const _0x14cd1e=_0x101898;this[_0x14cd1e(0x665)]=this[_0x14cd1e(0x456)][_0x14cd1e(0x46d)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x14cd1e(0x679)]['t'](_0x14cd1e(0x405))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x14cd1e(0x28e)]},'onClose':()=>{const _0x3339e8=_0x14cd1e;this['_drawingManagerService'][_0x3339e8(0x5b3)](null),this[_0x3339e8(0x5a9)]['setContextValue'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'],![]),this[_0x3339e8(0x665)]=null;}}),this[_0x14cd1e(0x33d)]=!![];}[_0x101898(0x622)](){const _0x3c1c98=_0x101898;this[_0x3c1c98(0x33d)]=![],this[_0x3c1c98(0x456)][_0x3c1c98(0x5f5)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x3c1c98(0x665)]=null,this[_0x3c1c98(0x5a9)]['setContextValue'](_univerjs_core[_0x3c1c98(0x615)],![]),this[_0x3c1c98(0x3c9)][_0x3c1c98(0x5b3)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x101898(0x653)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x101898(0x4a5)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_ui['ISidebarService'])),__decorateParam(0x3,_univerjs_ui[_0x101898(0x27e)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_core[_0x101898(0x334)])),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x101898(0x1bb)])),__decorateParam(0x7,_univerjs_core['ICommandService']),__decorateParam(0x8,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x9,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_ui['SheetCanvasPopManagerService'])),__decorateParam(0xa,_univerjs_core['IContextService'])],SheetsShapeUIController);var name=_0x101898(0x1ca),version=_0x101898(0x49e);const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY='sheets-shape.config',configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x4093ad,_0x351c6b,_0x5ed311,_0x4871f6,_0x44f096){const _0x472c09=_0x101898;super(),this[_0x472c09(0x643)]=_0x4093ad,this[_0x472c09(0x3c9)]=_0x351c6b,this[_0x472c09(0x28f)]=_0x5ed311,this['_univerInstanceService']=_0x4871f6,this[_0x472c09(0x199)]=_0x44f096,_defineProperty(this,_0x472c09(0x559),null),_defineProperty(this,_0x472c09(0x2ae),null),_defineProperty(this,_0x472c09(0x1a9),null),_defineProperty(this,_0x472c09(0x292),void 0x0),_defineProperty(this,_0x472c09(0x3d3),[]),_defineProperty(this,_0x472c09(0x11d),0x0),_defineProperty(this,_0x472c09(0x1ab),0x0),_defineProperty(this,'_baseWidth',0x0),_defineProperty(this,_0x472c09(0x239),0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,_0x472c09(0x2f3),void 0x0),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,'_adjHandlerPointerMove',void 0x0),_defineProperty(this,_0x472c09(0x3fa),void 0x0),_defineProperty(this,'_isImagePointerDown',![]),this[_0x472c09(0x5bf)](),this['_registerMoveHandler']();}[_0x101898(0x3fe)](){const _0x49aa3e=_0x101898;this[_0x49aa3e(0x25f)]();}['refreshAdjustControls'](){const _0x47e3fd=_0x101898;this[_0x47e3fd(0x25f)](),this[_0x47e3fd(0x297)](!![]);}[_0x101898(0x4b0)](_0x456de5,_0x3d621f,_0x466566,_0x4aa0aa){const _0x4888a9=_0x101898,_0x47e9e1=_0x456de5;if(_0x47e9e1===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x4888a9(0x678)]||_0x456de5==='custom')return;try{const _0x111e6b=new _univerjs_pro_engine_shape[(_0x4888a9(0x286))](_0x47e9e1,_0x4888a9(0x546)+_0x456de5);if(_0x4aa0aa)_0x111e6b[_0x4888a9(0x22f)]({'adjustValues':_0x4aa0aa},!![]);return _0x111e6b[_0x4888a9(0x56d)]({'width':_0x3d621f,'height':_0x466566}),_0x111e6b;}catch{return;}}[_0x101898(0x560)](_0x2c868a,_0x3cab1a,_0xa40dac){const _0x24543f=_0x101898,_0x30a2b5={'unitId':_0x2c868a,'subUnitId':_0x3cab1a,'drawingId':_0xa40dac},_0x309590=this[_0x24543f(0x3c9)]['getDrawingByParam'](_0x30a2b5);if(!_0x309590||_0x309590[_0x24543f(0x324)]!==_univerjs_core['DrawingTypeEnum']['DRAWING_IMAGE'])return;return _0x309590;}[_0x101898(0x47d)](_0x2cebb7,_0x3526cd,_0x48e6b5){const _0x4f79a3=_0x101898,_0x45e653=this[_0x4f79a3(0x28f)][_0x4f79a3(0x1f9)](_0x2cebb7);if(!_0x45e653)return void 0x0;const {scene:_0x111350}=_0x45e653,_0x50c3ee=(0x0,_univerjs_drawing[_0x4f79a3(0x38f)])({'unitId':_0x2cebb7,'subUnitId':_0x3526cd,'drawingId':_0x48e6b5}),_0x3e3faf=_0x111350['getObject'](_0x50c3ee);if(_0x3e3faf instanceof _univerjs_engine_render[_0x4f79a3(0x154)]){const _0x417550=_0x3e3faf[_0x4f79a3(0x550)];if(_0x417550)return{'prstGeom':_0x417550,'adjustValues':_0x3e3faf[_0x4f79a3(0x377)]};}}['_createControls'](_0x2ce3b6=![]){const _0x234de9=_0x101898;if(!this[_0x234de9(0x2ae)]||!this[_0x234de9(0x1a9)]||!this['_activeImageId'])return;const _0x17574a=this[_0x234de9(0x28f)][_0x234de9(0x1f9)](this[_0x234de9(0x2ae)]);if(!_0x17574a)return;if(!_0x17574a['with'](_univerjs_sheets_ui[_0x234de9(0x217)])[_0x234de9(0x442)]())return;const {scene:_0x54c92d}=_0x17574a,_0x4319ac=this[_0x234de9(0x560)](this[_0x234de9(0x2ae)],this[_0x234de9(0x1a9)],this[_0x234de9(0x559)]);if(!_0x4319ac)return;const {transform:_0x4294f3}=_0x4319ac;if(!_0x4294f3)return;const {left:_0x36f1ae,top:_0x3c922f,width:_0x1bf9a2,height:_0x2b0382,flipX:_0x1952e5,flipY:_0x2fbc99,angle:angle=0x0}=_0x4294f3;if(_0x36f1ae===void 0x0||_0x3c922f===void 0x0)return;const _0x5668e0=this['_getImagePrstGeom'](this[_0x234de9(0x2ae)],this['_subUnitId'],this[_0x234de9(0x559)]);if(!_0x5668e0)return;if(_0x2ce3b6){const _0x1ef57d=this['_getOrCreateShapeModel'](_0x5668e0[_0x234de9(0x550)],_0x1bf9a2||0x0,_0x2b0382||0x0,_0x5668e0[_0x234de9(0x494)]);if(!_0x1ef57d)return;this[_0x234de9(0x292)]=_0x1ef57d[_0x234de9(0x23f)]();}const _0x599269=this[_0x234de9(0x292)];if(!_0x599269||_0x599269[_0x234de9(0x1ec)]===0x0)return;for(let _0x420cab=0x0;_0x420cab<_0x599269['length'];_0x420cab++){const _0x398169=_0x599269[_0x420cab];let _0x41641f=_0x398169['x'],_0x15b1a8=_0x398169['y'];if(_0x1952e5)_0x41641f=(_0x1bf9a2||0x0)-_0x41641f;if(_0x2fbc99)_0x15b1a8=(_0x2b0382||0x0)-_0x15b1a8;if(angle!==0x0){const _0x13ac39=(_0x1bf9a2||0x0)/0x2,_0x5b00f8=(_0x2b0382||0x0)/0x2,_0x133243=angle*Math['PI']/0xb4,_0x3ca118=Math[_0x234de9(0x409)](_0x133243),_0x2bfc99=Math['sin'](_0x133243),_0x6d602=_0x41641f-_0x13ac39,_0x42b6c6=_0x15b1a8-_0x5b00f8;_0x41641f=_0x13ac39+(_0x6d602*_0x3ca118-_0x42b6c6*_0x2bfc99),_0x15b1a8=_0x5b00f8+(_0x6d602*_0x2bfc99+_0x42b6c6*_0x3ca118);}const _0x451131={'x':_0x41641f,'y':_0x15b1a8,'adjName':_0x398169[_0x234de9(0x1aa)]};this['_addControl'](_0x54c92d,_0x451131,_0x451131[_0x234de9(0x1aa)],_0x36f1ae,_0x3c922f,this[_0x234de9(0x2ae)],this[_0x234de9(0x1a9)]);}}['_addControl'](_0x50709d,_0x1bcaad,_0x1be149,_0x3692a7,_0x437357,_0x1f3302,_0x551285){const _0x16847a=_0x101898;if(!this['_activeImageId'])return;const _0x5cf990=_0x16847a(0x2b1)+this[_0x16847a(0x559)]+'-'+_0x1be149,_0x1d396d=_0x50709d['getObjectIncludeInGroup'](_0x5cf990);if(_0x1d396d){_0x1d396d['transformByState']({'left':_0x1bcaad['x']+_0x3692a7-_univerjs_pro_engine_shape[_0x16847a(0x30a)][_0x16847a(0x564)],'top':_0x1bcaad['y']+_0x437357-_univerjs_pro_engine_shape[_0x16847a(0x30a)][_0x16847a(0x564)]});return;}const _0x281c5e=new SheetShapeAdjustPointObject(_0x5cf990,{'left':_0x1bcaad['x']+_0x3692a7-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x16847a(0x564)],'top':_0x1bcaad['y']+_0x437357-_univerjs_pro_engine_shape[_0x16847a(0x30a)]['adjHandleSize'],'adjName':_0x1be149,'shapeId':this[_0x16847a(0x559)],'unitId':_0x1f3302,'subUnitId':_0x551285,'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x16847a(0x564)]+0x8,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x16847a(0x564)]+0x8,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this['_shapes']['push'](_0x281c5e),this[_0x16847a(0x13d)](_0x281c5e,_0x50709d,_0x1be149),_0x50709d[_0x16847a(0x22c)](_0x281c5e,_univerjs_engine_render[_0x16847a(0x11f)]+0x1);}['_clearControls'](){const _0xd61ad4=_0x101898;if(this[_0xd61ad4(0x3d3)]['length']===0x0)return;this[_0xd61ad4(0x3d3)][_0xd61ad4(0x5aa)](_0x1d89ec=>_0x1d89ec[_0xd61ad4(0x3af)]()),this['_shapes']=[];}[_0x101898(0x555)](_0x15a7c7,_0x513884){const _0x2429fc=_0x101898;var _0x8ed189;const _0xfce767={'x':0x0,'y':0x0},_0x2d7c08=this[_0x2429fc(0x28f)][_0x2429fc(0x1f9)](_0x15a7c7);if(!_0x2d7c08)return _0xfce767;if(!_0x2d7c08[_0x2429fc(0x593)](_univerjs_sheets_ui[_0x2429fc(0x217)])[_0x2429fc(0x1f6)](_0x513884))return _0xfce767;const _0x23f288=_0x2d7c08[_0x2429fc(0x593)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x225778=_0x23f288===null||_0x23f288===void 0x0?void 0x0:_0x23f288['getCurrentScrollState']();if(!_0x225778)return _0xfce767;const _0xc2841b=(_0x8ed189=this[_0x2429fc(0x2e4)]['getUnit'](_0x15a7c7))===null||_0x8ed189===void 0x0?void 0x0:_0x8ed189['getSheetBySheetId'](_0x513884);if(!_0xc2841b)return _0xfce767;const _0x484edf=(0x0,_univerjs_sheets_ui[_0x2429fc(0x499)])(_0x225778['sheetViewStartRow'],_0x225778[_0x2429fc(0x3a0)],_0x2d7c08[_0x2429fc(0x2dc)],_0xc2841b);if(!_0x484edf)return _0xfce767;return{'x':_0x484edf[_0x2429fc(0x149)],'y':_0x484edf[_0x2429fc(0x193)]};}['_getZoomRatio'](_0xbfb920,_0x3709a7){const _0xbf336e=_0x101898;var _0x329e82,_0xedafc7;const _0x44391d=(_0x329e82=this[_0xbf336e(0x2e4)][_0xbf336e(0x589)](_0xbfb920))===null||_0x329e82===void 0x0?void 0x0:_0x329e82[_0xbf336e(0x5f6)](_0x3709a7);return(_0xedafc7=_0x44391d===null||_0x44391d===void 0x0?void 0x0:_0x44391d[_0xbf336e(0x4ba)]())!==null&&_0xedafc7!==void 0x0?_0xedafc7:0x1;}[_0x101898(0x13d)](_0x2f1780,_0x28b1df,_0x50cc4d){const _0x17fcc9=_0x101898;this[_0x17fcc9(0x1ff)]((0x0,_univerjs_core[_0x17fcc9(0x266)])(_0x2f1780[_0x17fcc9(0x52b)]['subscribeEvent']((_0x2e9647,_0x12ae2e)=>{const _0xe2854c=_0x17fcc9;var _0x123b4d,_0x4d69c2,_0x3508e0;const {unitId:_0x5e1ade,subUnitId:_0x514ae7,drawingId:_0x19f549}=_0x2f1780[_0xe2854c(0x54c)](),_0x5d213b=this[_0xe2854c(0x560)](_0x5e1ade,_0x514ae7,_0x19f549);if(!(_0x5d213b===null||_0x5d213b===void 0x0?void 0x0:_0x5d213b['transform']))return;const {left:_0x12184c,top:_0xfc6524,width:_0x2751d5,height:_0x56889a}=_0x5d213b[_0xe2854c(0x519)];this['_baseLeft']=_0x12184c||0x0,this['_baseTop']=_0xfc6524||0x0,this[_0xe2854c(0x5c7)]=_0x2751d5||0x0,this[_0xe2854c(0x239)]=_0x56889a||0x0;const _0x2ef8d2=Boolean((_0x123b4d=_0x5d213b[_0xe2854c(0x519)])===null||_0x123b4d===void 0x0?void 0x0:_0x123b4d[_0xe2854c(0x4e0)]),_0x14be73=Boolean((_0x4d69c2=_0x5d213b[_0xe2854c(0x519)])===null||_0x4d69c2===void 0x0?void 0x0:_0x4d69c2['flipY']),_0x393064=((_0x3508e0=_0x5d213b[_0xe2854c(0x519)])===null||_0x3508e0===void 0x0?void 0x0:_0x3508e0[_0xe2854c(0x2f5)])||0x0,_0x47545a=this['_getImagePrstGeom'](_0x5e1ade,_0x514ae7,_0x19f549);if(!_0x47545a)return;const _0x4466db=this[_0xe2854c(0x4b0)](_0x47545a[_0xe2854c(0x550)],this['_baseWidth'],this['_baseHeight'],_0x47545a[_0xe2854c(0x494)]);if(!_0x4466db)return;this[_0xe2854c(0x40e)]=_0x4466db,this[_0xe2854c(0x2f3)]=_0x4466db['getAdjustInfoByName'](_0x50cc4d);if(!this[_0xe2854c(0x2f3)])return;this[_0xe2854c(0x353)]=!![],_0x28b1df['disableObjectsEvent']();const _0x88a845=_0x47545a['prstGeom'];this[_0xe2854c(0x58e)]=_0x28b1df[_0xe2854c(0x14b)][_0xe2854c(0x3a5)]((_0x5874e2,_0x437b25)=>{const _0x344c0d=_0xe2854c;if(!this[_0x344c0d(0x353)])return;const {offsetX:_0x298f80,offsetY:_0x1f14be}=_0x5874e2,_0x512e5e=this[_0x344c0d(0x2f3)];if(!this['_activeShapeModel']||!_0x512e5e)return;_0x28b1df[_0x344c0d(0x1c5)](),_0x28b1df[_0x344c0d(0x401)](_univerjs_engine_render[_0x344c0d(0x249)][_0x344c0d(0x374)]);const _0x4d2629={'left':0x0,'top':0x0,'width':this[_0x344c0d(0x5c7)],'height':this['_baseHeight']},_0x4fc841=this[_0x344c0d(0x555)](_0x5e1ade,_0x514ae7),_0x27bb84=this['_getZoomRatio'](_0x5e1ade,_0x514ae7);let _0xafd88e=_0x298f80/_0x27bb84+_0x4fc841['x']-this[_0x344c0d(0x11d)],_0x23a890=_0x1f14be/_0x27bb84+_0x4fc841['y']-this[_0x344c0d(0x1ab)];if(_0x393064!==0x0){const _0x309552=this[_0x344c0d(0x5c7)]/0x2,_0xdecca3=this[_0x344c0d(0x239)]/0x2,_0xf6acdf=_0x393064*Math['PI']/0xb4,_0x884e3a=Math[_0x344c0d(0x409)](_0xf6acdf),_0x9ba554=Math[_0x344c0d(0x315)](_0xf6acdf),_0x581ab5=_0xafd88e-_0x309552,_0x3c0d5c=_0x23a890-_0xdecca3;_0xafd88e=_0x309552+(_0x581ab5*_0x884e3a+_0x3c0d5c*_0x9ba554),_0x23a890=_0xdecca3+(-_0x581ab5*_0x9ba554+_0x3c0d5c*_0x884e3a);}if(_0x2ef8d2)_0xafd88e=this[_0x344c0d(0x5c7)]-_0xafd88e;if(_0x14be73)_0x23a890=this[_0x344c0d(0x239)]-_0x23a890;const _0x971fb9=this[_0x344c0d(0x40e)][_0x344c0d(0x42e)](_0x4d2629,{'x':_0xafd88e,'y':_0x23a890},_0x512e5e,_0x2ef8d2,_0x14be73),_0x5558da=_0x512e5e[_0x344c0d(0x3dd)]||_0x512e5e['gdRefY']||_0x512e5e[_0x344c0d(0x617)]||_0x512e5e[_0x344c0d(0x2ad)];if(_0x5558da===void 0x0)return;this[_0x344c0d(0x40e)][_0x344c0d(0x58a)](_0x5558da,_0x971fb9),this[_0x344c0d(0x40e)]['updateContext']({'width':this['_baseWidth'],'height':this[_0x344c0d(0x239)]}),this[_0x344c0d(0x2df)](_0x5e1ade,_0x514ae7,_0x19f549,_0x5558da,_0x971fb9),this[_0x344c0d(0x292)]=this[_0x344c0d(0x40e)][_0x344c0d(0x23f)](),this['_activeAdjustInfo']=this[_0x344c0d(0x40e)][_0x344c0d(0x2ed)](_0x50cc4d),this[_0x344c0d(0x297)](),_0x437b25[_0x344c0d(0x160)]();}),this[_0xe2854c(0x3fa)]=_0x28b1df[_0xe2854c(0x173)][_0xe2854c(0x3a5)]((_0x283b97,_0xc2a6e)=>{const _0x102658=_0xe2854c;this[_0x102658(0x58e)]['unsubscribe'](),this[_0x102658(0x3fa)][_0x102658(0x472)](),_0x28b1df['resetCursor']();if(this[_0x102658(0x40e)]){const _0x2345c0=this[_0x102658(0x40e)][_0x102658(0x609)](),_0x403256={};for(const _0x54af44 of _0x2345c0){const _0x404cdc=this['_activeShapeModel'][_0x102658(0x29c)](_0x54af44);if(_0x404cdc!==void 0x0)_0x403256[_0x54af44]=_0x404cdc;}this[_0x102658(0x199)][_0x102658(0x5ff)](_0x5e1ade,_0x514ae7,_0x19f549,_0x88a845,_0x403256);}this[_0x102658(0x2f3)]=void 0x0,this[_0x102658(0x40e)]=void 0x0,this['_isStartAdjusting']=![],_0xc2a6e[_0x102658(0x160)](),_0x28b1df[_0x102658(0x123)]();}),_0x12ae2e[_0xe2854c(0x160)]();})));}['_updateImageAdjValues'](_0x135808,_0x3eb4bf,_0x190428,_0x1067fb,_0x464776){const _0x27b3aa=_0x101898,_0x3c2b99=this[_0x27b3aa(0x28f)]['getRenderById'](_0x135808);if(!_0x3c2b99)return;const {scene:_0x2cb4b4}=_0x3c2b99,_0x7bbbcb=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x135808,'subUnitId':_0x3eb4bf,'drawingId':_0x190428}),_0x90f205=_0x2cb4b4[_0x27b3aa(0x520)](_0x7bbbcb);if(_0x90f205 instanceof _univerjs_engine_render[_0x27b3aa(0x154)]){var _0x2b02e9;const _0x2ed646=(_0x2b02e9=_0x90f205[_0x27b3aa(0x377)])!==null&&_0x2b02e9!==void 0x0?_0x2b02e9:{};_0x90f205[_0x27b3aa(0x15a)]({..._0x2ed646,[_0x1067fb]:_0x464776}),_0x90f205[_0x27b3aa(0x408)](!![]);}}[_0x101898(0x2d5)](){const _0x1b0ce1=_0x101898,_0x2cff88=this[_0x1b0ce1(0x2e4)][_0x1b0ce1(0x566)](_univerjs_core[_0x1b0ce1(0x1e3)][_0x1b0ce1(0x42f)]);this[_0x1b0ce1(0x1ff)](_0x2cff88['pipe']((0x0,rxjs[_0x1b0ce1(0x3f8)])(_0x474039=>{const _0x123d60=_0x1b0ce1;if(!_0x474039)return rxjs[_0x123d60(0x180)];return _0x474039[_0x123d60(0x522)][_0x123d60(0x63e)]((0x0,rxjs[_0x123d60(0x3f8)])(_0x5a30b7=>{const _0x4a70b1=_0x123d60;if(!_0x5a30b7)return rxjs[_0x4a70b1(0x180)];const _0x7a75a5=_0x474039[_0x4a70b1(0x5b1)](),_0x3d8da7=this[_0x4a70b1(0x28f)]['getRenderById'](_0x7a75a5),_0x524d08=_0x3d8da7===null||_0x3d8da7===void 0x0?void 0x0:_0x3d8da7[_0x4a70b1(0x2dc)];if(!_0x524d08)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x524d08);}));}))['subscribe'](_0x2817fe=>{const _0x14f9b5=_0x1b0ce1,_0x5d489b=_0x2817fe[_0x14f9b5(0x53f)]();this[_0x14f9b5(0x1ff)](_0x2817fe['onPointerMove$'][_0x14f9b5(0x3a5)](()=>{if(this['_isImagePointerDown'])this['_clearControls']();})),this['disposeWithMe'](_0x5d489b['changeStart$'][_0x14f9b5(0x4fd)](_0x5edd2f=>{const _0x229c3d=_0x14f9b5,{objects:_0x2d22e2}=_0x5edd2f;this[_0x229c3d(0x297)]();if(_0x2d22e2!==null&&_0x2d22e2['size']===0x1){const _0x2b1bd4=_0x2d22e2[_0x229c3d(0x2f4)]()['next']()[_0x229c3d(0x2f1)];if(_0x2b1bd4 instanceof _univerjs_engine_render[_0x229c3d(0x154)]&&_0x2b1bd4['prstGeom'])this['_isImagePointerDown']=!![];}})),this[_0x14f9b5(0x1ff)](_0x5d489b[_0x14f9b5(0x54f)][_0x14f9b5(0x4fd)](()=>{const _0x2694bd=_0x14f9b5;if(this[_0x2694bd(0x228)])this[_0x2694bd(0x25f)]();})),this[_0x14f9b5(0x1ff)](_0x2817fe[_0x14f9b5(0x173)][_0x14f9b5(0x3a5)](()=>{const _0x4dfa57=_0x14f9b5;this[_0x4dfa57(0x228)]&&(this[_0x4dfa57(0x228)]=![],this[_0x4dfa57(0x297)]());})),this[_0x14f9b5(0x1ff)](_0x5d489b[_0x14f9b5(0x651)][_0x14f9b5(0x4fd)](()=>{const _0x3a120c=_0x14f9b5;if(this[_0x3a120c(0x2ae)]&&this[_0x3a120c(0x1a9)]&&this[_0x3a120c(0x559)]){const _0x2c56b4=this[_0x3a120c(0x47d)](this['_unitId'],this[_0x3a120c(0x1a9)],this['_activeImageId']);if(_0x2c56b4){var _0x14944c,_0x2e5087;const _0x1cb3a9=this[_0x3a120c(0x560)](this[_0x3a120c(0x2ae)],this['_subUnitId'],this['_activeImageId']),_0xb46613=(_0x1cb3a9===null||_0x1cb3a9===void 0x0||(_0x14944c=_0x1cb3a9['transform'])===null||_0x14944c===void 0x0?void 0x0:_0x14944c[_0x3a120c(0x604)])||0x0,_0x206aa0=(_0x1cb3a9===null||_0x1cb3a9===void 0x0||(_0x2e5087=_0x1cb3a9[_0x3a120c(0x519)])===null||_0x2e5087===void 0x0?void 0x0:_0x2e5087[_0x3a120c(0x57c)])||0x0,_0x3df693=this['_getOrCreateShapeModel'](_0x2c56b4[_0x3a120c(0x550)],_0xb46613,_0x206aa0,_0x2c56b4['adjustValues']);_0x3df693&&(this[_0x3a120c(0x292)]=_0x3df693[_0x3a120c(0x23f)](),this[_0x3a120c(0x25f)](),this[_0x3a120c(0x297)](!![]));}}}));}));}[_0x101898(0x5bf)](){const _0x491436=_0x101898;this['disposeWithMe'](this[_0x491436(0x3c9)][_0x491436(0x5ed)][_0x491436(0x4fd)](_0x596646=>{const _0x9f3424=_0x491436;if(_0x596646[_0x9f3424(0x1ec)]===0x1){const _0x3fb531=_0x596646[0x0];if(_0x3fb531['drawingType']===_univerjs_core[_0x9f3424(0x229)][_0x9f3424(0x4fa)]){const {unitId:_0x271fa7,subUnitId:_0x1ad176,drawingId:_0x3aa898}=_0x3fb531,_0x56cbd1=this[_0x9f3424(0x47d)](_0x271fa7,_0x1ad176,_0x3aa898);if(_0x56cbd1){var _0x1ae200,_0x46f838;this[_0x9f3424(0x559)]=_0x3aa898,this[_0x9f3424(0x2ae)]=_0x271fa7,this[_0x9f3424(0x1a9)]=_0x1ad176;const _0x18552d=this[_0x9f3424(0x560)](_0x271fa7,_0x1ad176,_0x3aa898),_0x24658c=(_0x18552d===null||_0x18552d===void 0x0||(_0x1ae200=_0x18552d['transform'])===null||_0x1ae200===void 0x0?void 0x0:_0x1ae200[_0x9f3424(0x604)])||0x0,_0x5e11e0=(_0x18552d===null||_0x18552d===void 0x0||(_0x46f838=_0x18552d[_0x9f3424(0x519)])===null||_0x46f838===void 0x0?void 0x0:_0x46f838[_0x9f3424(0x57c)])||0x0,_0xa5d3eb=this[_0x9f3424(0x4b0)](_0x56cbd1['prstGeom'],_0x24658c,_0x5e11e0,_0x56cbd1[_0x9f3424(0x494)]);if(_0xa5d3eb)this['_activeAdjustPointList']=_0xa5d3eb[_0x9f3424(0x23f)]();this[_0x9f3424(0x25f)](),this[_0x9f3424(0x297)](!![]);}else this[_0x9f3424(0x55e)]();}else this[_0x9f3424(0x55e)]();}else this['_resetState']();})),this[_0x491436(0x1ff)](this[_0x491436(0x3c9)]['update$'][_0x491436(0x4fd)](_0x1b40c4=>{const _0x8e66c1=_0x491436;if(_0x1b40c4[_0x8e66c1(0x1ec)]===0x1){const _0x483173=_0x1b40c4[0x0],_0x365152=this['_drawingManagerService']['getDrawingByParam'](_0x483173);(_0x365152===null||_0x365152===void 0x0?void 0x0:_0x365152['drawingType'])===_univerjs_core['DrawingTypeEnum'][_0x8e66c1(0x4fa)]&&(this[_0x8e66c1(0x559)]===_0x483173[_0x8e66c1(0x16c)]&&(this[_0x8e66c1(0x25f)](),this[_0x8e66c1(0x297)](!![])));}})),this[_0x491436(0x1ff)](this[_0x491436(0x3c9)][_0x491436(0x5ad)][_0x491436(0x4fd)](_0x43e732=>{const _0x168e98=_0x491436;for(const _0x3184d8 of _0x43e732)if(this[_0x168e98(0x559)]===_0x3184d8[_0x168e98(0x16c)])this[_0x168e98(0x55e)]();}));}['_resetState'](){const _0x4b245e=_0x101898;this[_0x4b245e(0x559)]=null,this[_0x4b245e(0x2ae)]=null,this[_0x4b245e(0x1a9)]=null,this[_0x4b245e(0x292)]=void 0x0,this['_clearControls']();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x101898(0x500)])),__decorateParam(0x3,_univerjs_core[_0x101898(0x653)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0xea0f96,_0x208189,_0x50bd6c,_0x556c11){const _0x5064b7=_0x101898;super(),this[_0x5064b7(0x2e4)]=_0xea0f96,this['_sheetInterceptorService']=_0x208189,this['_sheetDrawingService']=_0x50bd6c,this[_0x5064b7(0x352)]=_0x556c11,this['_initSheetChange']();}[_0x101898(0x23a)](){const _0x2c284f=_0x101898;this['disposeWithMe'](this[_0x2c284f(0x66e)][_0x2c284f(0x5ae)]({'getMutations':_0x22203e=>{const _0x4e8293=_0x2c284f;if(_0x22203e['id']===_univerjs_sheets[_0x4e8293(0x261)]['id']){const _0x34b277=(0x0,_univerjs_sheets['getSheetCommandTarget'])(this[_0x4e8293(0x2e4)],_0x22203e[_0x4e8293(0x35d)]);if(!_0x34b277)return{'redos':[],'undos':[]};const {unitId:_0x5a65c3,subUnitId:_0x544823}=_0x34b277,_0x3e7d46=this[_0x4e8293(0x3c1)][_0x4e8293(0x5c8)](_0x5a65c3,_0x544823),_0x43580c=Object['values'](_0x3e7d46)[_0x4e8293(0x1f5)](_0x2d9e06=>_0x2d9e06[_0x4e8293(0x324)]===_univerjs_core[_0x4e8293(0x229)][_0x4e8293(0x535)]);if(_0x43580c['length']===0x0)return{'redos':[],'undos':[]};const _0x46bd62=[],_0x56d02d=[];for(let _0x3c1c2a=0x0;_0x3c1c2a<_0x43580c['length'];_0x3c1c2a++){const _0x1cedb1=_0x43580c[_0x3c1c2a],_0x2f6ea7=this[_0x4e8293(0x352)][_0x4e8293(0x148)](_0x1cedb1[_0x4e8293(0x3aa)],_0x1cedb1[_0x4e8293(0x343)],_0x1cedb1[_0x4e8293(0x16c)]);if(!_0x2f6ea7)continue;const {redo:_0x45d963,undo:_0x133577,objects:_0xe2c4e0}=this['_sheetDrawingService'][_0x4e8293(0x425)]([_0x1cedb1]);_0x46bd62[_0x4e8293(0x2f9)]({'id':_univerjs_pro_sheets_shape[_0x4e8293(0x281)]['id'],'params':{'unitId':_0x5a65c3,'subUnitId':_0x544823,'shapeId':_0x1cedb1['drawingId']}}),_0x46bd62[_0x4e8293(0x2f9)]({'id':_univerjs_sheets_drawing[_0x4e8293(0x57d)]['id'],'params':{'unitId':_0x5a65c3,'subUnitId':_0x544823,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4e8293(0x2c3)],'op':_0x45d963,'objects':_0xe2c4e0}}),_0x56d02d['push']({'id':_univerjs_sheets_drawing[_0x4e8293(0x57d)]['id'],'params':{'unitId':_0x5a65c3,'subUnitId':_0x544823,'type':_univerjs_sheets_drawing['DrawingApplyType']['INSERT'],'op':_0x133577,'objects':_0xe2c4e0}}),_0x56d02d['push']({'id':_univerjs_pro_sheets_shape[_0x4e8293(0x4db)]['id'],'params':{'unitId':_0x5a65c3,'subUnitId':_0x544823,'shapeId':_0x1cedb1[_0x4e8293(0x16c)],'shapeType':_0x2f6ea7[_0x4e8293(0x255)](),'shapeData':JSON[_0x4e8293(0x205)](JSON[_0x4e8293(0x2b8)](_0x2f6ea7['getShapeData']()))}});}return{'redos':_0x46bd62,'undos':_0x56d02d};}else{if(_0x22203e['id']===_univerjs_sheets[_0x4e8293(0x59c)]['id']){const {unitId:_0xf75e50,subUnitId:_0x1a0bd9,targetSubUnitId:_0x1f3290}=_0x22203e[_0x4e8293(0x35d)];if(!_0xf75e50||!_0x1a0bd9||!_0x1f3290)return{'redos':[],'undos':[]};const _0x3d762c=this[_0x4e8293(0x3c1)][_0x4e8293(0x5c8)](_0xf75e50,_0x1a0bd9),_0x14241f=Object[_0x4e8293(0x2f4)](_0x3d762c)['filter'](_0x2c9e68=>_0x2c9e68[_0x4e8293(0x324)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x14241f[_0x4e8293(0x1ec)]===0x0)return{'redos':[],'undos':[]};const _0x55fedf=[],_0x506f8a=[];for(let _0x4129ca=0x0;_0x4129ca<_0x14241f[_0x4e8293(0x1ec)];_0x4129ca++){const _0x5608e5=_0x14241f[_0x4129ca],_0x3cf24f=this[_0x4e8293(0x352)][_0x4e8293(0x148)](_0x5608e5[_0x4e8293(0x3aa)],_0x5608e5[_0x4e8293(0x343)],_0x5608e5[_0x4e8293(0x16c)]);if(!_0x3cf24f)continue;const _0x343be1=(0x0,_univerjs_core[_0x4e8293(0x558)])(),_0x403afa={..._0x5608e5,'unitId':_0xf75e50,'subUnitId':_0x1f3290,'drawingId':_0x343be1},{redo:_0x9aebdb,undo:_0x105c98,objects:_0x582841}=this['_sheetDrawingService'][_0x4e8293(0x2bf)]([_0x403afa]);_0x55fedf[_0x4e8293(0x2f9)]({'id':_univerjs_sheets_drawing[_0x4e8293(0x57d)]['id'],'params':{'unitId':_0xf75e50,'subUnitId':_0x1f3290,'type':_univerjs_sheets_drawing[_0x4e8293(0x260)][_0x4e8293(0x2d1)],'op':_0x9aebdb,'objects':_0x582841}}),_0x55fedf['push']({'id':_univerjs_pro_sheets_shape[_0x4e8293(0x4db)]['id'],'params':{'unitId':_0xf75e50,'subUnitId':_0x1f3290,'shapeId':_0x343be1,'shapeType':_0x3cf24f[_0x4e8293(0x255)](),'shapeData':JSON[_0x4e8293(0x205)](JSON[_0x4e8293(0x2b8)](_0x3cf24f['getShapeData']()))}}),_0x506f8a[_0x4e8293(0x2f9)]({'id':_univerjs_pro_sheets_shape[_0x4e8293(0x281)]['id'],'params':{'unitId':_0xf75e50,'subUnitId':_0x1f3290,'shapeId':_0x343be1}}),_0x506f8a[_0x4e8293(0x2f9)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xf75e50,'subUnitId':_0x1f3290,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4e8293(0x2c3)],'op':_0x105c98,'objects':_0x582841}});}return{'redos':_0x55fedf,'undos':_0x506f8a};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core['IUniverInstanceService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets[_0x101898(0x4a5)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_drawing[_0x101898(0x614)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape[_0x101898(0x232)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x56863e,_0x348aa8,_0x41b900,_0x35cedb,_0x21166f){const _0x157938=_0x101898;super(),this[_0x157938(0x643)]=_0x56863e,this[_0x157938(0x2a2)]=_0x348aa8,this[_0x157938(0x3c9)]=_0x41b900,this['_contextService']=_0x35cedb,this[_0x157938(0x352)]=_0x21166f,_defineProperty(this,_0x157938(0x2d9),null),this['_initEvents'](),this[_0x157938(0x2a3)](),this['_initEditingParams']();}['_initEvents'](){const _0x5062f1=_0x101898,{scene:_0x52b937}=this[_0x5062f1(0x643)];this[_0x5062f1(0x1ff)](_0x52b937['onDblclick$'][_0x5062f1(0x3a5)](_0x3a3f48=>{const _0x4b9c18=_0x5062f1,{offsetX:_0x363c56,offsetY:_0x469ef3}=_0x3a3f48,_0x3f520a=_0x52b937[_0x4b9c18(0x47f)](_univerjs_engine_render[_0x4b9c18(0x2d8)][_0x4b9c18(0x662)]([_0x363c56,_0x469ef3]));if(_0x3f520a instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x4b9c18(0x277)])(this[_0x4b9c18(0x352)]['getShapeType'](_0x3f520a['unitId'],_0x3f520a[_0x4b9c18(0x343)],_0x3f520a[_0x4b9c18(0x49a)])))return;this[_0x4b9c18(0x2a2)]['setEditing']({'visible':!![],'unitId':_0x3f520a[_0x4b9c18(0x3aa)],'subUnitId':_0x3f520a[_0x4b9c18(0x343)],'shapeId':_0x3f520a['shapeId'],'shapeKey':_0x3f520a[_0x4b9c18(0x534)]});}}));}[_0x101898(0x2a3)](){const _0x324091=_0x101898;this[_0x324091(0x1ff)](this[_0x324091(0x3c9)][_0x324091(0x5ed)][_0x324091(0x4fd)](_0x3b0ca3=>{const _0x1284ab=_0x324091;if(_0x3b0ca3[_0x1284ab(0x1ec)]===0x1){const _0x29ec4f=_0x3b0ca3[0x0],_0x23803e=this['_drawingManagerService'][_0x1284ab(0x52f)](_0x29ec4f);if((_0x23803e===null||_0x23803e===void 0x0?void 0x0:_0x23803e['drawingType'])===_univerjs_core[_0x1284ab(0x229)][_0x1284ab(0x535)]){const _0x450708=this[_0x1284ab(0x2a2)][_0x1284ab(0x28d)]();if((_0x450708===null||_0x450708===void 0x0?void 0x0:_0x450708[_0x1284ab(0x49a)])===_0x29ec4f[_0x1284ab(0x16c)]&&_0x450708[_0x1284ab(0x510)])return;if((0x0,_univerjs_pro_engine_shape[_0x1284ab(0x277)])(this[_0x1284ab(0x352)][_0x1284ab(0x255)](_0x29ec4f[_0x1284ab(0x3aa)],_0x29ec4f[_0x1284ab(0x343)],_0x29ec4f[_0x1284ab(0x16c)])))this[_0x1284ab(0x2a2)][_0x1284ab(0x51b)](null);}else this[_0x1284ab(0x2a2)][_0x1284ab(0x28d)]()&&(this[_0x1284ab(0x2a2)][_0x1284ab(0x298)](!![]),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));}else this[_0x1284ab(0x2a2)][_0x1284ab(0x28d)]()&&(this[_0x1284ab(0x2a2)][_0x1284ab(0x298)](!![]),requestAnimationFrame(()=>{const _0x52ecd2=_0x1284ab;this[_0x52ecd2(0x2a2)][_0x52ecd2(0x51b)](null);}));})),this['disposeWithMe'](this[_0x324091(0x3c9)][_0x324091(0x5ad)]['subscribe'](_0xa3a352=>{const _0x1a174c=_0x324091,_0x36bd7b=this[_0x1a174c(0x2a2)]['getEditing']();if(_0x36bd7b&&_0xa3a352[_0x1a174c(0x322)](_0x4a1a8c=>_0x4a1a8c[_0x1a174c(0x16c)]===_0x36bd7b[_0x1a174c(0x49a)]))this['_shapeTextEditingService']['setEditing'](null);}));}['_initEditingParams'](){const _0x436d96=_0x101898;this[_0x436d96(0x1ff)](this['_shapeTextEditingService'][_0x436d96(0x39d)]['subscribe'](_0x42332a=>{const _0x2bc38f=_0x436d96,{scene:_0x4d7acb}=this['_context'];if(this[_0x2bc38f(0x2d9)]){const _0x26f67a=_0x4d7acb['getObjectIncludeInGroup'](this[_0x2bc38f(0x2d9)]);if(_0x26f67a)_0x26f67a[_0x2bc38f(0x51b)](![]);}if(_0x42332a){const _0x397031=!!_0x42332a[_0x2bc38f(0x510)],_0x25e435=_0x4d7acb[_0x2bc38f(0x157)](_0x42332a['shapeKey']);_0x25e435&&(_0x25e435['setEditing'](_0x397031),this['_lastEditingShapeKey']=_0x42332a[_0x2bc38f(0x60f)]),this[_0x2bc38f(0x5a9)][_0x2bc38f(0x32c)](_univerjs_core[_0x2bc38f(0x4d5)],_0x397031);}else this['_lastEditingShapeKey']=null,this[_0x2bc38f(0x5a9)][_0x2bc38f(0x32c)](_univerjs_core[_0x2bc38f(0x4d5)],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x3,_univerjs_core[_0x101898(0x4b3)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x101898(0x232)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x101898(0x47c)],'stroke':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x101898(0x1ed)],'strokeWidth':_univerjs_pro_engine_shape[_0x101898(0x30a)][_0x101898(0x34b)]},'highlighted':{'fill':'#4285f4','stroke':_0x101898(0x1d8),'strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render['Shape']{constructor(_0x1fb43b,_0x2091ff){const _0x20bbc9=_0x101898;super(_0x1fb43b,_0x2091ff),_defineProperty(this,_0x20bbc9(0x2db),''),_defineProperty(this,'_cxnIndex',-0x1),_defineProperty(this,_0x20bbc9(0x2ae),''),_defineProperty(this,'_subUnitId',''),_defineProperty(this,'_isHighlighted',![]);if(_0x2091ff)this['setShapeProps'](_0x2091ff);}[_0x101898(0x3dc)](){const _0x234c67=_0x101898;return{'unitId':this[_0x234c67(0x2ae)],'subUnitId':this[_0x234c67(0x1a9)],'shapeId':this[_0x234c67(0x2db)],'cxnIndex':this['_cxnIndex']};}['setHighlighted'](_0x62b628){const _0x29ad15=_0x101898;this[_0x29ad15(0x2bd)]!==_0x62b628&&(this['_isHighlighted']=_0x62b628,this[_0x29ad15(0x408)](!![]));}['isHighlighted'](){const _0x349077=_0x101898;return this[_0x349077(0x2bd)];}[_0x101898(0x188)](_0x4f2305){const _0x3be471=_0x101898;var _0x536f96,_0x42c5d2;if(typeof _0x4f2305['targetShapeId']!==_0x3be471(0x4c4))this[_0x3be471(0x2db)]=_0x4f2305[_0x3be471(0x132)];if(typeof _0x4f2305[_0x3be471(0x1e2)]!==_0x3be471(0x4c4))this['_cxnIndex']=_0x4f2305['cxnIndex'];if(typeof _0x4f2305[_0x3be471(0x3aa)]!=='undefined')this[_0x3be471(0x2ae)]=_0x4f2305[_0x3be471(0x3aa)];if(typeof _0x4f2305[_0x3be471(0x343)]!=='undefined')this[_0x3be471(0x1a9)]=_0x4f2305[_0x3be471(0x343)];if(typeof _0x4f2305[_0x3be471(0x323)]!=='undefined')this[_0x3be471(0x2bd)]=_0x4f2305[_0x3be471(0x323)];this['transformByState']({'width':(_0x536f96=_0x4f2305[_0x3be471(0x604)])!==null&&_0x536f96!==void 0x0?_0x536f96:_univerjs_pro_engine_shape[_0x3be471(0x30a)]['cxnPointRadius']*0x2,'height':(_0x42c5d2=_0x4f2305[_0x3be471(0x57c)])!==null&&_0x42c5d2!==void 0x0?_0x42c5d2:_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3be471(0x497)]*0x2});}[_0x101898(0x18c)](_0x1e9918){const _0x5a5963=_0x101898,_0x4477da=this[_0x5a5963(0x2bd)]?ConnectionSiteStyle[_0x5a5963(0x578)]:ConnectionSiteStyle[_0x5a5963(0x5d0)];_univerjs_engine_render[_0x5a5963(0x635)][_0x5a5963(0x15d)](_0x1e9918,{'radius':_univerjs_pro_engine_shape[_0x5a5963(0x30a)][_0x5a5963(0x497)],'fill':_0x4477da['fill'],'stroke':_0x4477da[_0x5a5963(0x600)],'strokeWidth':_0x4477da['strokeWidth'],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x3e0191,_0x47b5a7,_0x4e1555,_0x3f8260){const _0x2c7e85=_0x101898;super(),this['_context']=_0x3e0191,this[_0x2c7e85(0x28f)]=_0x47b5a7,this[_0x2c7e85(0x3c9)]=_0x4e1555,this[_0x2c7e85(0x352)]=_0x3f8260,_defineProperty(this,_0x2c7e85(0x389),[]),_defineProperty(this,_0x2c7e85(0x612),null),_defineProperty(this,_0x2c7e85(0x673),-0x1),_defineProperty(this,'_currentScene',null),_defineProperty(this,_0x2c7e85(0x2ae),''),_defineProperty(this,_0x2c7e85(0x1a9),''),_defineProperty(this,_0x2c7e85(0x4c8),null);}[_0x101898(0x32b)](_0x3bf283,_0x3d2fe8,_0x122b21,_0x5b2edd){const _0x1d1ffe=_0x101898;this[_0x1d1ffe(0x5b7)]=_0x3bf283,this[_0x1d1ffe(0x2ae)]=_0x3d2fe8,this[_0x1d1ffe(0x1a9)]=_0x122b21,this['_draggingConnectorId']=_0x5b2edd;}[_0x101898(0x426)](_0x5e0d26){const _0x1974eb=_0x101898;if(!this[_0x1974eb(0x5b7)])return null;const _0x208c7e=this['_findShapeAtPoint'](_0x5e0d26);return _0x208c7e?(this['_activeTargetShapeId']!==_0x208c7e['shapeId']&&(this[_0x1974eb(0x4ed)](),this['_showConnectionSites'](_0x208c7e[_0x1974eb(0x49a)],_0x208c7e[_0x1974eb(0x591)]),this[_0x1974eb(0x612)]=_0x208c7e[_0x1974eb(0x49a)]),this['_findNearestConnectionSite'](_0x5e0d26)):(this[_0x1974eb(0x612)]!==null&&(this['_clearConnectionSites'](),this[_0x1974eb(0x612)]=null),null);}[_0x101898(0x581)](){const _0x2abf8d=_0x101898;this['_clearConnectionSites'](),this['_currentScene']=null,this[_0x2abf8d(0x612)]=null,this[_0x2abf8d(0x673)]=-0x1,this['_draggingConnectorId']=null;}[_0x101898(0x33f)](){const _0x520b48=_0x101898;if(this['_activeTargetShapeId']===null||this[_0x520b48(0x673)]<0x0)return null;return{'shapeId':this[_0x520b48(0x612)],'cxnIndex':this['_highlightedSiteIndex']};}['_findShapeAtPoint'](_0x8920a3){const _0x49daf3=_0x101898,_0x3a937c=this[_0x49daf3(0x3c9)][_0x49daf3(0x5c8)](this['_unitId'],this[_0x49daf3(0x1a9)]);for(const _0x495502 of Object[_0x49daf3(0x5ac)](_0x3a937c)){if(_0x495502===this['_draggingConnectorId'])continue;if(_0x3a937c[_0x495502][_0x49daf3(0x324)]!==_univerjs_core[_0x49daf3(0x229)]['DRAWING_SHAPE'])continue;const _0xd57f74=this[_0x49daf3(0x352)]['getShapeModel'](this[_0x49daf3(0x2ae)],this['_subUnitId'],_0x495502);if(!_0xd57f74)continue;if((0x0,_univerjs_pro_engine_shape[_0x49daf3(0x277)])(_0xd57f74['getShapeType']()))continue;if(_0xd57f74[_0x49daf3(0x18e)]()['length']===0x0)continue;if(!this[_0x49daf3(0x5b7)])continue;const _0x3e84ba=(0x0,_univerjs_drawing[_0x49daf3(0x38f)])({'unitId':this[_0x49daf3(0x2ae)],'subUnitId':this[_0x49daf3(0x1a9)],'drawingId':_0x495502}),_0x15e1f1=this[_0x49daf3(0x5b7)][_0x49daf3(0x157)](_0x3e84ba);if(!_0x15e1f1)continue;const {left:_0xeccfe6,top:_0x2f8ab0,width:_0x2a5df1,height:_0x4d4522}=_0x15e1f1['getRealBound'](),_0x3ca13c=_0xeccfe6+_0x2a5df1/0x2,_0x185f57=_0x2f8ab0+_0x4d4522/0x2,_0x23f4a0=_0x15e1f1[_0x49daf3(0x519)][_0x49daf3(0x2e2)](),_0x55bc70=new _univerjs_engine_render['Transform']([_0x23f4a0[0x0],_0x23f4a0[0x1],_0x23f4a0[0x2],_0x23f4a0[0x3],_0x3ca13c,_0x185f57]),_0x15816b=_0x15e1f1[_0x49daf3(0x31f)](),_0x4e1bf2=(_0x15e1f1[_0x49daf3(0x1d9)]&&(_0x15816b===null||_0x15816b===void 0x0?void 0x0:_0x15816b['classType'])===_univerjs_engine_render[_0x49daf3(0x2cd)]['GROUP']?_0x15816b[_0x49daf3(0x359)]['multiply'](_0x55bc70):_0x55bc70)['invert']()[_0x49daf3(0x627)](_0x8920a3),_0x6f1558=_0x2a5df1/0x2,_0x581dee=_0x4d4522/0x2,_0x1652e7=SHAPE_BOUNDS_PADDING;if(_0x4e1bf2['x']>=-_0x6f1558-_0x1652e7&&_0x4e1bf2['x']<=_0x6f1558+_0x1652e7&&_0x4e1bf2['y']>=-_0x581dee-_0x1652e7&&_0x4e1bf2['y']<=_0x581dee+_0x1652e7)return{'shapeId':_0x495502,'shapeModel':_0xd57f74};}return null;}[_0x101898(0x440)](_0x9bed45,_0x10a44d){const _0x3851f0=_0x101898;if(!this['_currentScene'])return;const _0x1a0fe4=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x3851f0(0x2ae)],'subUnitId':this[_0x3851f0(0x1a9)],'drawingId':_0x9bed45}),_0x7389a1=this[_0x3851f0(0x5b7)][_0x3851f0(0x157)](_0x1a0fe4);if(!_0x7389a1)return;const {left:_0x42e991,top:_0x4d6328,width:_0x4843e8,height:_0x67a11a}=_0x7389a1[_0x3851f0(0x61e)](),_0x2ca89c=_0x42e991+_0x4843e8/0x2,_0x2d2ee0=_0x4d6328+_0x67a11a/0x2,_0x56a769=_0x7389a1[_0x3851f0(0x519)]['getMatrix'](),_0x2f6aea=new _univerjs_engine_render[(_0x3851f0(0x2d6))]([_0x56a769[0x0],_0x56a769[0x1],_0x56a769[0x2],_0x56a769[0x3],_0x2ca89c,_0x2d2ee0]),_0x5d5487=_0x7389a1[_0x3851f0(0x31f)](),_0x3d407a=_0x7389a1['isInGroup']&&(_0x5d5487===null||_0x5d5487===void 0x0?void 0x0:_0x5d5487[_0x3851f0(0x2e1)])===_univerjs_engine_render[_0x3851f0(0x2cd)][_0x3851f0(0x3db)]?_0x5d5487[_0x3851f0(0x359)][_0x3851f0(0x14d)](_0x2f6aea):_0x2f6aea;_0x10a44d[_0x3851f0(0x56d)]({'width':_0x4843e8,'height':_0x67a11a});const _0x209ace=_0x10a44d[_0x3851f0(0x18e)]();for(const _0x7a20b3 of _0x209ace){const _0x2a2829=_0x7a20b3['x']-_0x4843e8/0x2,_0x11cb1c=_0x7a20b3['y']-_0x67a11a/0x2,_0x27ae46=_0x3d407a[_0x3851f0(0x627)]({'x':_0x2a2829,'y':_0x11cb1c}),_0x4e975a=_0x27ae46['x'],_0x5df80c=_0x27ae46['y'],_0x404975=new SheetBasicShapeConnectionSiteObject(_0x3851f0(0x52a)+_0x9bed45+'-'+_0x7a20b3['index'],{'left':_0x4e975a-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3851f0(0x497)],'top':_0x5df80c-_univerjs_pro_engine_shape[_0x3851f0(0x30a)][_0x3851f0(0x497)],'targetShapeId':_0x9bed45,'cxnIndex':_0x7a20b3[_0x3851f0(0x44f)],'unitId':this[_0x3851f0(0x2ae)],'subUnitId':this[_0x3851f0(0x1a9)],'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3851f0(0x497)]*0x2,'height':_univerjs_pro_engine_shape[_0x3851f0(0x30a)][_0x3851f0(0x497)]*0x2,'zIndex':_univerjs_engine_render[_0x3851f0(0x11f)]+0x2,'evented':![]});this[_0x3851f0(0x389)][_0x3851f0(0x2f9)](_0x404975),this[_0x3851f0(0x5b7)][_0x3851f0(0x22c)](_0x404975,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x101898(0x642)](_0x4e5f9c){const _0x40062c=_0x101898;let _0x12c3f8=null,_0x3118cd=Infinity,_0x36bbbd=null;for(const _0x508da7 of this[_0x40062c(0x389)]){const _0x5ea9e8=_0x508da7['left']+_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x40062c(0x497)],_0x10c124=_0x508da7[_0x40062c(0x46c)]+_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x40062c(0x497)],_0x350afd=_0x4e5f9c['x']-_0x5ea9e8,_0x51cc84=_0x4e5f9c['y']-_0x10c124,_0x12905f=Math[_0x40062c(0x20c)](_0x350afd*_0x350afd+_0x51cc84*_0x51cc84);_0x12905f<_0x3118cd&&(_0x3118cd=_0x12905f,_0x12c3f8=_0x508da7,_0x36bbbd={'x':_0x5ea9e8,'y':_0x10c124});}const _0x5a48e7=_0x3118cd<=CONNECTION_SITE_HIT_RADIUS&&_0x12c3f8?_0x12c3f8['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x5a48e7!==this['_highlightedSiteIndex']){for(const _0x44364c of this[_0x40062c(0x389)]){const _0x190231=_0x44364c[_0x40062c(0x3dc)]();_0x44364c[_0x40062c(0x56e)](_0x190231[_0x40062c(0x1e2)]===_0x5a48e7);}this[_0x40062c(0x673)]=_0x5a48e7;}if(_0x3118cd<=CONNECTION_SITE_HIT_RADIUS&&_0x12c3f8&&_0x36bbbd){const _0x17024c=_0x12c3f8['getConnectionInfo'](),_0x4ba5e8=this[_0x40062c(0x194)](_0x17024c[_0x40062c(0x49a)],_0x17024c[_0x40062c(0x1e2)]);return{'shapeId':_0x17024c[_0x40062c(0x49a)],'cxnIndex':_0x17024c[_0x40062c(0x1e2)],'unitId':_0x17024c['unitId'],'subUnitId':_0x17024c[_0x40062c(0x343)],'worldPoint':_0x36bbbd,'angle':_0x4ba5e8};}return null;}['_getConnectionSiteAngle'](_0x5ecee3,_0x2f06ca){const _0x5e59ce=_0x101898,_0x1d64f6=this['_sheetsShapeService']['getShapeModel'](this['_unitId'],this[_0x5e59ce(0x1a9)],_0x5ecee3);if(!_0x1d64f6)return 0x0;const _0x8f620d=this[_0x5e59ce(0x3c9)]['getDrawingByParam']({'unitId':this[_0x5e59ce(0x2ae)],'subUnitId':this[_0x5e59ce(0x1a9)],'drawingId':_0x5ecee3});if(!(_0x8f620d===null||_0x8f620d===void 0x0?void 0x0:_0x8f620d[_0x5e59ce(0x519)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x8f620d[_0x5e59ce(0x519)];_0x1d64f6[_0x5e59ce(0x56d)]({'width':width,'height':height});const _0x572719=_0x1d64f6['getConnectionSiteList']()['find'](_0x15efd2=>_0x15efd2[_0x5e59ce(0x44f)]===_0x2f06ca);if(!_0x572719)return 0x0;let _0x137d8e=_0x572719['ang']/0xea60;if(flipX)_0x137d8e=0xb4-_0x137d8e;if(flipY)_0x137d8e=-_0x137d8e;return _0x137d8e=(_0x137d8e%0x168+0x168)%0x168,_0x137d8e;}[_0x101898(0x4ed)](){const _0x43e956=_0x101898;for(const _0xad9ad of this[_0x43e956(0x389)])_0xad9ad[_0x43e956(0x3af)]();this[_0x43e956(0x389)]=[],this[_0x43e956(0x673)]=-0x1;}[_0x101898(0x3af)](){const _0x4bfe17=_0x101898;this[_0x4bfe17(0x4ed)](),super[_0x4bfe17(0x3af)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_engine_render['IRenderManagerService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_drawing[_0x101898(0x415)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape[_0x101898(0x232)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x1809c6,_0xd7e91b,_0x12eb1c,_0x3d9458,_0x3a652e){const _0x321e43=_0x101898;super(),this[_0x321e43(0x289)]=_0x1809c6,this[_0x321e43(0x5a3)]=_0xd7e91b,this[_0x321e43(0x3c1)]=_0x12eb1c,this[_0x321e43(0x5c5)]=_0x3d9458,this['_groupCopyPasteController']=_0x3a652e,_defineProperty(this,_0x321e43(0x1a0),void 0x0),this[_0x321e43(0x221)](),this[_0x321e43(0x12c)]();}get[_0x101898(0x1e9)](){const _0x3e0e4f=_0x101898;return this['_sheetDrawingService'][_0x3e0e4f(0x4f6)]();}[_0x101898(0x12c)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x2bd70f,fromSubUnitId:_0xaa46b2,toUnitId:_0x2b61aa,toSubUnitId:_0x1d0d6f,idMap:_0x392935})=>{const _0x246ade=_0x284a,_0x15a069=[],_0x376b04=[];for(const [_0x11b940,_0x4c4d0b]of _0x392935[_0x246ade(0x272)]()){const _0x3cea50=this[_0x246ade(0x5c5)]['getShapeModel'](_0x2bd70f,_0xaa46b2,_0x11b940);if(!_0x3cea50)continue;const _0x25609c=_0x3cea50['getShapeType'](),_0x972c24=JSON[_0x246ade(0x205)](JSON[_0x246ade(0x2b8)](_0x3cea50['getShapeData']()));if(_0x972c24[_0x246ade(0x18b)]){var _0x1c5e12,_0x553336;const _0x17b27=(_0x1c5e12=_0x972c24['relation']['from'])===null||_0x1c5e12===void 0x0?void 0x0:_0x1c5e12[_0x246ade(0x49a)],_0x3d6f58=(_0x553336=_0x972c24[_0x246ade(0x18b)]['to'])===null||_0x553336===void 0x0?void 0x0:_0x553336[_0x246ade(0x49a)],_0x27c498=_0x17b27?_0x392935['has'](_0x17b27):!![],_0x81c605=_0x3d6f58?_0x392935[_0x246ade(0x639)](_0x3d6f58):!![];if(_0x27c498&&_0x17b27&&_0x972c24[_0x246ade(0x18b)][_0x246ade(0x4b4)])_0x972c24[_0x246ade(0x18b)]['from']={..._0x972c24['relation']['from'],'shapeId':_0x392935['get'](_0x17b27)};else _0x972c24[_0x246ade(0x18b)]['from']=void 0x0;if(_0x81c605&&_0x3d6f58&&_0x972c24[_0x246ade(0x18b)]['to'])_0x972c24['relation']['to']={..._0x972c24[_0x246ade(0x18b)]['to'],'shapeId':_0x392935[_0x246ade(0x49b)](_0x3d6f58)};else _0x972c24[_0x246ade(0x18b)]['to']=void 0x0;}_0x15a069[_0x246ade(0x2f9)]({'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x2b61aa,'subUnitId':_0x1d0d6f,'shapeId':_0x4c4d0b,'shapeType':_0x25609c,'shapeData':_0x972c24}}),_0x376b04['push']({'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x2b61aa,'subUnitId':_0x1d0d6f,'shapeId':_0x4c4d0b}});}return{'redos':_0x15a069,'undos':_0x376b04};});}[_0x101898(0x221)](){const _0x13b40a=_0x101898;this[_0x13b40a(0x1ff)](this[_0x13b40a(0x5a3)][_0x13b40a(0x432)]({'id':_0x13b40a(0x498),'onBeforeCopy':(_0x1df8a3,_0x5a4ad7,_0x2224a0,_0x6f5f1)=>{const _0x27fa68=_0x13b40a;this[_0x27fa68(0x1a0)]=null;const _0x52e7af=this['_focusedDrawings'];if(_0x52e7af[_0x27fa68(0x1ec)]){const _0x28801d=_0x52e7af[_0x27fa68(0x1f5)](_0x3ea47a=>_0x3ea47a['drawingType']===_univerjs_core[_0x27fa68(0x229)][_0x27fa68(0x535)]);if(_0x28801d['length']===0x0)return;this['_copyInfo']={'unitId':_0x1df8a3,'subUnitId':_0x5a4ad7,'copyType':_0x6f5f1,'drawings':_0x28801d};}else this[_0x27fa68(0x38b)](_0x1df8a3,_0x5a4ad7,_0x2224a0,_0x6f5f1);},'onPasteCells':(_0x44c5a7,_0x2abbaa,_0x280048,_0x1419a3)=>{const _0x20070b=_0x13b40a;if(!this[_0x20070b(0x1a0)])return{'redos':[],'undos':[]};const {pasteType:_0x4c6dbd}=_0x1419a3;if(_0x4c6dbd!==_univerjs_sheets_ui[_0x20070b(0x5cb)][_0x20070b(0x40f)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x2abbaa,this['_copyInfo']['copyType']===_univerjs_sheets_ui[_0x20070b(0x5ec)][_0x20070b(0x5f1)]);},'onPasteUnrecognized':_0x55de82=>{const _0x3fef49=_0x13b40a;if(!this['_copyInfo'])return{'redos':[],'undos':[]};return this[_0x3fef49(0x67f)](_0x55de82,this[_0x3fef49(0x1a0)]['copyType']===_univerjs_sheets_ui['COPY_TYPE'][_0x3fef49(0x5f1)]);}}));}[_0x101898(0x38b)](_0x27dd1b,_0x206328,_0x238459,_0x5ef782){const _0x1004ad=_0x101898,_0x4f6c4d=this[_0x1004ad(0x289)]['getSkeleton'](_0x27dd1b,_0x206328);if(!_0x4f6c4d)return;const _0x2fa722=(0x0,_univerjs_sheets[_0x1004ad(0x5a4)])(_0x4f6c4d,_0x238459);if(!_0x2fa722)return;const {startX:_0x3b81de,endX:_0x557ed5,startY:_0x44c1d6,endY:_0x5054d7}=_0x2fa722,_0x460f5e=this[_0x1004ad(0x3c1)][_0x1004ad(0x5c8)](_0x27dd1b,_0x206328),_0x387cc2=this[_0x1004ad(0x1e9)][_0x1004ad(0x349)]();for(const [_0x1bef50,_0x3e7468]of Object[_0x1004ad(0x272)](_0x460f5e)){if(_0x3e7468[_0x1004ad(0x324)]!==_univerjs_core[_0x1004ad(0x229)]['DRAWING_SHAPE'])continue;const {transform:_0x23b463}=_0x3e7468;if(!_0x23b463)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x23b463;if(_0x3b81de<=left&&_0x557ed5>=left+width&&_0x44c1d6<=top&&_0x5054d7>=top+height)_0x387cc2[_0x1004ad(0x2f9)](_0x3e7468);}if(_0x387cc2[_0x1004ad(0x1ec)]>0x0)this[_0x1004ad(0x1a0)]={'unitId':_0x27dd1b,'subUnitId':_0x206328,'copyType':_0x5ef782,'copyRange':_0x238459,'drawings':_0x387cc2};}[_0x101898(0x67f)](_0x3570ff,_0x10cf0f){const _0x5c55cc=_0x101898,{unitId:_0x4c5f39,subUnitId:_0x4fab0c,range:_0xa918ec}=_0x3570ff,_0x169acd=this['_sheetSkeletonService']['getSkeleton'](_0x4c5f39,_0x4fab0c);if(!_0x169acd)return{'redos':[],'undos':[]};const _0x5051ed=(0x0,_univerjs_sheets[_0x5c55cc(0x398)])(_0xa918ec),{unitId:_0x1b4af1,subUnitId:_0x1ef75e,copyRange:_0xd41185,drawings:_0x5e637d}=this[_0x5c55cc(0x1a0)],_0xe84079=this[_0x5c55cc(0x289)][_0x5c55cc(0x1f6)](_0x1b4af1,_0x1ef75e);if(!_0xe84079)return{'redos':[],'undos':[]};let _0x3d5f96;if(!_0xd41185){let _0x1d9836=Infinity,_0x42c9c5=Infinity;for(const _0x43fef7 of _0x5e637d){var _0x19fc33;const {left:left=0x0,top:top=0x0}=(_0x19fc33=_0x43fef7[_0x5c55cc(0x519)])!==null&&_0x19fc33!==void 0x0?_0x19fc33:{};if(left<_0x1d9836)_0x1d9836=left;if(top<_0x42c9c5)_0x42c9c5=top;}if(_0x1d9836!==Infinity&&_0x42c9c5!==Infinity)_0x3d5f96={'left':_0x1d9836,'top':_0x42c9c5};}const _0xde4959=new Map();if(!_0x10cf0f){for(const _0x4726eb of _0x5e637d)_0xde4959[_0x5c55cc(0x65b)](_0x4726eb[_0x5c55cc(0x16c)],(0x0,_univerjs_core[_0x5c55cc(0x558)])());}const _0x128024=[],_0xcfe0bb=[];for(const _0x5cae91 of _0x5e637d){const {drawingId:_0x1734bd,transform:_0x560df3,sheetTransform:_0x504264}=_0x5cae91;if(!_0x560df3||!_0x504264)continue;const _0x39f40a=this[_0x5c55cc(0x130)]({'transform':_0x560df3,'sheetTransform':_0x504264},{'skeleton':_0xe84079,'range':_0xd41185},{'skeleton':_0x169acd,'range':_0x5051ed},_0x3d5f96);if(_0x10cf0f){const {redos:_0x13b49a,undos:_0x1ef773}=this[_0x5c55cc(0x648)]({'fromUnitId':_0x1b4af1,'fromSubUnitId':_0x1ef75e,'toUnitId':_0x4c5f39,'toSubUnitId':_0x4fab0c,'drawing':_0x5cae91,'newTransforms':_0x39f40a});_0x128024[_0x5c55cc(0x2f9)](..._0x13b49a),_0xcfe0bb[_0x5c55cc(0x2f9)](..._0x1ef773);continue;}const {redos:_0x47d6f8,undos:_0x20b5ae}=this[_0x5c55cc(0x378)]({'toUnitId':_0x4c5f39,'toSubUnitId':_0x4fab0c,'drawing':_0x5cae91,'newTransforms':_0x39f40a,'newDrawingId':_0xde4959['get'](_0x1734bd),'idMap':_0xde4959});_0x128024['push'](..._0x47d6f8),_0xcfe0bb[_0x5c55cc(0x2f9)](..._0x20b5ae);}return{'redos':_0x128024,'undos':_0xcfe0bb};}[_0x101898(0x648)](_0x1d72e2){const _0x4d3a79=_0x101898,{fromUnitId:_0x1174a2,fromSubUnitId:_0x507bb6,toUnitId:_0x260b02,toSubUnitId:_0x479ade,drawing:_0x574530,newTransforms:_0x3bd5e5}=_0x1d72e2,_0x13d800={..._0x574530,'unitId':_0x260b02,'subUnitId':_0x479ade,'transform':_0x3bd5e5['transform'],'sheetTransform':_0x3bd5e5[_0x4d3a79(0x2b0)]};if(_0x260b02===_0x1174a2&&_0x479ade===_0x507bb6){const {redo:_0x211d42,undo:_0x33cee1,objects:_0x3d3558}=this[_0x4d3a79(0x3c1)][_0x4d3a79(0x4c5)]([_0x13d800]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4d3a79(0x496)],'op':_0x211d42,'objects':_0x3d3558}}],'undos':[{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'type':_univerjs_sheets_drawing[_0x4d3a79(0x260)][_0x4d3a79(0x496)],'op':_0x33cee1,'objects':_0x3d3558}}]};}else{const _0xf7083c=this[_0x4d3a79(0x3c1)][_0x4d3a79(0x425)]([_0x574530]),_0x245046=this[_0x4d3a79(0x3c1)][_0x4d3a79(0x2bf)]([_0x13d800]),_0x5227a0=this[_0x4d3a79(0x5c5)]['getShapeModel'](_0x574530[_0x4d3a79(0x3aa)],_0x574530['subUnitId'],_0x574530[_0x4d3a79(0x16c)]);if(!_0x5227a0)return{'redos':[],'undos':[]};const _0x4f43e7=_0x5227a0[_0x4d3a79(0x255)](),_0x52ef8a=JSON[_0x4d3a79(0x205)](JSON['stringify'](_0x5227a0[_0x4d3a79(0x365)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x1174a2,'subUnitId':_0x507bb6,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4d3a79(0x2c3)],'op':_0xf7083c[_0x4d3a79(0x2ac)],'objects':_0xf7083c[_0x4d3a79(0x126)]}},{'id':_univerjs_pro_sheets_shape[_0x4d3a79(0x281)]['id'],'params':{'unitId':_0x1174a2,'subUnitId':_0x507bb6,'shapeId':_0x574530['drawingId']}},{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4d3a79(0x2d1)],'op':_0x245046[_0x4d3a79(0x2ac)],'objects':_0x245046[_0x4d3a79(0x126)]}},{'id':_univerjs_pro_sheets_shape[_0x4d3a79(0x4db)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'shapeId':_0x574530[_0x4d3a79(0x16c)],'shapeType':_0x4f43e7,'shapeData':_0x52ef8a}}],'undos':[{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x1174a2,'subUnitId':_0x507bb6,'type':_univerjs_sheets_drawing[_0x4d3a79(0x260)][_0x4d3a79(0x2d1)],'op':_0xf7083c['undo'],'objects':_0xf7083c[_0x4d3a79(0x126)]}},{'id':_univerjs_pro_sheets_shape[_0x4d3a79(0x4db)]['id'],'params':{'unitId':_0x1174a2,'subUnitId':_0x507bb6,'shapeId':_0x574530[_0x4d3a79(0x16c)],'shapeType':_0x4f43e7,'shapeData':_0x52ef8a}},{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'type':_univerjs_sheets_drawing[_0x4d3a79(0x260)][_0x4d3a79(0x2c3)],'op':_0x245046[_0x4d3a79(0x271)],'objects':_0x245046[_0x4d3a79(0x126)]}},{'id':_univerjs_pro_sheets_shape[_0x4d3a79(0x281)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'shapeId':_0x574530[_0x4d3a79(0x16c)]}}]};}}[_0x101898(0x378)](_0x478000){const _0x2451cb=_0x101898,{toUnitId:_0x42d680,toSubUnitId:_0xc19e5b,drawing:_0x1b9dd9,newTransforms:_0x2ca3c8,newDrawingId:_0x1ea2fd,idMap:_0x230cf0}=_0x478000,_0x11fb01={..._0x1b9dd9,'unitId':_0x42d680,'subUnitId':_0xc19e5b,'drawingId':_0x1ea2fd,'transform':_0x2ca3c8['transform'],'sheetTransform':_0x2ca3c8[_0x2451cb(0x2b0)]},{redo:_0x55d87b,undo:_0x572417,objects:_0x26d2ed}=this[_0x2451cb(0x3c1)][_0x2451cb(0x2bf)]([_0x11fb01]),_0xb9abeb=this[_0x2451cb(0x5c5)][_0x2451cb(0x148)](_0x1b9dd9[_0x2451cb(0x3aa)],_0x1b9dd9['subUnitId'],_0x1b9dd9[_0x2451cb(0x16c)]);if(!_0xb9abeb)return{'redos':[],'undos':[]};const _0x4b095a=_0xb9abeb[_0x2451cb(0x255)](),_0x5b728b=JSON[_0x2451cb(0x205)](JSON[_0x2451cb(0x2b8)](_0xb9abeb[_0x2451cb(0x365)]()));if(_0x5b728b[_0x2451cb(0x18b)]){var _0x3705c9,_0xed6198;const _0x188c15=(_0x3705c9=_0x5b728b[_0x2451cb(0x18b)][_0x2451cb(0x4b4)])===null||_0x3705c9===void 0x0?void 0x0:_0x3705c9[_0x2451cb(0x49a)],_0x502889=(_0xed6198=_0x5b728b[_0x2451cb(0x18b)]['to'])===null||_0xed6198===void 0x0?void 0x0:_0xed6198[_0x2451cb(0x49a)],_0x428ebd=_0x188c15?_0x230cf0[_0x2451cb(0x639)](_0x188c15):!![],_0x7bdfe2=_0x502889?_0x230cf0[_0x2451cb(0x639)](_0x502889):!![];if(_0x428ebd&&_0x188c15&&_0x5b728b['relation'][_0x2451cb(0x4b4)])_0x5b728b['relation']['from']={..._0x5b728b[_0x2451cb(0x18b)][_0x2451cb(0x4b4)],'shapeId':_0x230cf0['get'](_0x188c15)};else _0x5b728b[_0x2451cb(0x18b)][_0x2451cb(0x4b4)]=void 0x0;if(_0x7bdfe2&&_0x502889&&_0x5b728b[_0x2451cb(0x18b)]['to'])_0x5b728b['relation']['to']={..._0x5b728b['relation']['to'],'shapeId':_0x230cf0[_0x2451cb(0x49b)](_0x502889)};else _0x5b728b[_0x2451cb(0x18b)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x42d680,'subUnitId':_0xc19e5b,'type':_univerjs_sheets_drawing[_0x2451cb(0x260)]['INSERT'],'op':_0x55d87b,'objects':_0x26d2ed}},{'id':_univerjs_pro_sheets_shape[_0x2451cb(0x4db)]['id'],'params':{'unitId':_0x42d680,'subUnitId':_0xc19e5b,'shapeId':_0x1ea2fd,'shapeType':_0x4b095a,'shapeData':_0x5b728b}}],'undos':[{'id':_univerjs_sheets_drawing[_0x2451cb(0x57d)]['id'],'params':{'unitId':_0x42d680,'subUnitId':_0xc19e5b,'type':_univerjs_sheets_drawing[_0x2451cb(0x260)][_0x2451cb(0x2c3)],'op':_0x572417,'objects':_0x26d2ed}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x42d680,'subUnitId':_0xc19e5b,'shapeId':_0x1ea2fd}}]};}[_0x101898(0x130)](_0x52147d,_0x42e251,_0xe4905c,_0xb2e6f8){const _0x48bbfa=_0x101898;var _0x4a8e8c;const {range:_0x1a4f6e,skeleton:_0x8d5276}=_0x42e251,{range:_0x1c9003,skeleton:_0x2eea40}=_0xe4905c,{transform:_0x145b21,sheetTransform:_0x461e31}=_0x52147d,_0x36f795={..._0x145b21};if(_0x1a4f6e){const _0x4aa747=(0x0,_univerjs_sheets[_0x48bbfa(0x5a4)])(_0x8d5276,_0x1a4f6e),_0x3d607f=(0x0,_univerjs_sheets[_0x48bbfa(0x5a4)])(_0x2eea40,_0x1c9003);if(_0x4aa747&&_0x3d607f){var _0x52ad00,_0x1b6a76;const _0x318722=_0x3d607f[_0x48bbfa(0x445)]-_0x4aa747['startX'],_0xac32a4=_0x3d607f[_0x48bbfa(0x2b6)]-_0x4aa747[_0x48bbfa(0x2b6)];_0x36f795[_0x48bbfa(0x2ff)]=((_0x52ad00=_0x36f795[_0x48bbfa(0x2ff)])!==null&&_0x52ad00!==void 0x0?_0x52ad00:0x0)+_0x318722,_0x36f795['top']=((_0x1b6a76=_0x36f795[_0x48bbfa(0x46c)])!==null&&_0x1b6a76!==void 0x0?_0x1b6a76:0x0)+_0xac32a4;}}else{const _0x5941fd=(0x0,_univerjs_sheets[_0x48bbfa(0x5a4)])(_0x2eea40,_0x1c9003);if(_0xb2e6f8&&_0x5941fd){var _0xe91fc0,_0x549b88;const _0x1ae978=((_0xe91fc0=_0x36f795[_0x48bbfa(0x2ff)])!==null&&_0xe91fc0!==void 0x0?_0xe91fc0:0x0)-_0xb2e6f8[_0x48bbfa(0x2ff)],_0x2ca6ea=((_0x549b88=_0x36f795[_0x48bbfa(0x46c)])!==null&&_0x549b88!==void 0x0?_0x549b88:0x0)-_0xb2e6f8[_0x48bbfa(0x46c)];_0x36f795[_0x48bbfa(0x2ff)]=_0x5941fd[_0x48bbfa(0x445)]+_0x1ae978,_0x36f795[_0x48bbfa(0x46c)]=_0x5941fd[_0x48bbfa(0x2b6)]+_0x2ca6ea;}else _0x36f795[_0x48bbfa(0x2ff)]=_0x5941fd===null||_0x5941fd===void 0x0?void 0x0:_0x5941fd[_0x48bbfa(0x445)],_0x36f795[_0x48bbfa(0x46c)]=_0x5941fd===null||_0x5941fd===void 0x0?void 0x0:_0x5941fd[_0x48bbfa(0x2b6)];}return{'transform':_0x36f795,'sheetTransform':(_0x4a8e8c=(0x0,_univerjs_sheets_drawing[_0x48bbfa(0x58c)])(_0x36f795,_0x2eea40))!==null&&_0x4a8e8c!==void 0x0?_0x4a8e8c:_0x461e31};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets[_0x101898(0x41a)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_ui[_0x101898(0x618)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_drawing[_0x101898(0x614)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape[_0x101898(0x232)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_drawing_ui[_0x101898(0x5f0)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x101898(0x1fe)]{constructor(_0x309da4,_0x7f7628){const _0x46206c=_0x101898;super(_0x309da4,_0x7f7628),_defineProperty(this,_0x46206c(0x61c),null),_defineProperty(this,_0x46206c(0x159),null),_defineProperty(this,'_unitId',null),_defineProperty(this,_0x46206c(0x1a9),null),_defineProperty(this,_0x46206c(0x247),![]);if(_0x7f7628)this['setShapeProps'](_0x7f7628);}['getDrawingSearch'](){const _0x56d07d=_0x101898;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x56d07d(0x61c)]};}[_0x101898(0x188)](_0x1c8f7c){const _0x5df215=_0x101898;if(typeof _0x1c8f7c[_0x5df215(0x49a)]!==_0x5df215(0x4c4))this[_0x5df215(0x61c)]=_0x1c8f7c[_0x5df215(0x49a)];if(typeof _0x1c8f7c[_0x5df215(0x3aa)]!=='undefined')this[_0x5df215(0x2ae)]=_0x1c8f7c[_0x5df215(0x3aa)];if(typeof _0x1c8f7c[_0x5df215(0x343)]!==_0x5df215(0x4c4))this['_subUnitId']=_0x1c8f7c[_0x5df215(0x343)];if(typeof _0x1c8f7c[_0x5df215(0x34a)]!=='undefined')this[_0x5df215(0x247)]=_0x1c8f7c[_0x5df215(0x34a)];this['transformByState']({'width':_0x1c8f7c[_0x5df215(0x604)],'height':_0x1c8f7c[_0x5df215(0x57c)]});}[_0x101898(0x18c)](_0x20a48c){const _0x25cc7e=_0x101898;_univerjs_engine_render['Circle'][_0x25cc7e(0x15d)](_0x20a48c,{'radius':_univerjs_pro_engine_shape[_0x25cc7e(0x30a)][_0x25cc7e(0x497)],'fill':_univerjs_pro_engine_shape[_0x25cc7e(0x30a)][_0x25cc7e(0x47c)],'stroke':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape[_0x25cc7e(0x30a)][_0x25cc7e(0x34b)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x48ba6e,_0x4555dd,_0x336464,_0x1b6de2,_0x30410a,_0x17677e,_0x398f24,_0x2b884e){const _0x401aa8=_0x101898;super(),this[_0x401aa8(0x643)]=_0x48ba6e,this[_0x401aa8(0x36d)]=_0x4555dd,this['_renderManagerService']=_0x336464,this[_0x401aa8(0x3c9)]=_0x1b6de2,this[_0x401aa8(0x2e4)]=_0x30410a,this[_0x401aa8(0x352)]=_0x17677e,this[_0x401aa8(0x3be)]=_0x398f24,this['_sheetBasicShapeConnectionPointController']=_0x2b884e,_defineProperty(this,_0x401aa8(0x2c9),void 0x0),_defineProperty(this,_0x401aa8(0x2ae),void 0x0),_defineProperty(this,_0x401aa8(0x1a9),void 0x0),_defineProperty(this,_0x401aa8(0x1b4),[]),_defineProperty(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,_0x401aa8(0x40e),void 0x0),_defineProperty(this,_0x401aa8(0x42a),![]),_defineProperty(this,'_isDrawingShapePointDown',![]),_defineProperty(this,_0x401aa8(0x39a),![]),_defineProperty(this,_0x401aa8(0x24c),void 0x0),_defineProperty(this,_0x401aa8(0x41f),void 0x0),_defineProperty(this,_0x401aa8(0x34e),null),this[_0x401aa8(0x503)]();}[_0x101898(0x503)](){const _0x47dff4=_0x101898;this[_0x47dff4(0x606)](),this[_0x47dff4(0x490)]();}[_0x101898(0x186)](){const _0x3cf47d=_0x101898;if(!this['_unitId']||!this[_0x3cf47d(0x1a9)]||!this[_0x3cf47d(0x2c9)])return;const _0x127c6c={'unitId':this[_0x3cf47d(0x2ae)],'subUnitId':this[_0x3cf47d(0x1a9)],'drawingId':this[_0x3cf47d(0x2c9)]},{transform:_0x125bb5}=this[_0x3cf47d(0x3c9)]['getDrawingByParam'](_0x127c6c);if(!_0x125bb5)return;return{'left':_0x125bb5[_0x3cf47d(0x2ff)]||0x0,'top':_0x125bb5[_0x3cf47d(0x46c)]||0x0,'width':_0x125bb5[_0x3cf47d(0x604)]||0x0,'height':_0x125bb5[_0x3cf47d(0x57c)]||0x0,'flipX':_0x125bb5['flipX']||![],'flipY':_0x125bb5[_0x3cf47d(0x34d)]||![],'angle':_0x125bb5['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x23539d=_0x101898;if(this[_0x23539d(0x2ae)]===void 0x0||this[_0x23539d(0x1a9)]===void 0x0||this[_0x23539d(0x2c9)]===void 0x0)return;const _0x2f2b23=this[_0x23539d(0x28f)]['getRenderById'](this[_0x23539d(0x2ae)]);if(!_0x2f2b23)return;if(!_0x2f2b23['with'](_univerjs_sheets_ui[_0x23539d(0x217)])[_0x23539d(0x442)]())return;const {scene:_0x4f4812}=_0x2f2b23,_0x43b9ac=this[_0x23539d(0x186)]();if(!_0x43b9ac)return;const _0x1d79b0=this['_sheetsShapeService']['getShapeModel'](this[_0x23539d(0x2ae)],this[_0x23539d(0x1a9)],this[_0x23539d(0x2c9)]);if(!_0x1d79b0)return;if(!(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x1d79b0[_0x23539d(0x255)]()))return;const _0x207558=_0x1d79b0[_0x23539d(0x52c)]();if(_0x207558['length']<0x2)return;const _0x36497b=new _univerjs_pro_engine_shape[(_0x23539d(0x35f))](_0x43b9ac),_0x356de3=_0x207558[0x0],_0x5d9eb3=_0x207558[_0x207558[_0x23539d(0x1ec)]-0x1],_0x322b5d=_0x36497b[_0x23539d(0x141)](_0x356de3),_0x59b08e=_0x36497b[_0x23539d(0x141)](_0x5d9eb3);this['_addShapeConnectorHandlerObject'](_0x4f4812,{..._0x322b5d},!![]),this[_0x23539d(0x5a6)](_0x4f4812,{..._0x59b08e},![]);}[_0x101898(0x5a6)](_0x1ed242,_0xc2b972,_0x39431a){const _0x28613b=_0x101898;if(this[_0x28613b(0x2c9)]===void 0x0||this[_0x28613b(0x2ae)]===void 0x0||this[_0x28613b(0x1a9)]===void 0x0)return;const _0x2772db=_0x28613b(0x3a7)+this['_unitId']+'-'+this[_0x28613b(0x1a9)]+'-'+this['_activeShapeId']+'-'+(_0x39431a?'start':_0x28613b(0x669)),_0x32997e=_0x1ed242[_0x28613b(0x157)](_0x2772db);if(_0x32997e){_0x32997e[_0x28613b(0x46b)]({'left':_0xc2b972['x']-_univerjs_pro_engine_shape[_0x28613b(0x30a)][_0x28613b(0x497)],'top':_0xc2b972['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x28613b(0x497)]});return;}const _0x5eef7f=new SheetShapeConnectorHandlerObject(_0x2772db,{'left':_0xc2b972['x']-_univerjs_pro_engine_shape[_0x28613b(0x30a)][_0x28613b(0x497)],'top':_0xc2b972['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x28613b(0x497)],'shapeId':this[_0x28613b(0x2c9)],'unitId':this[_0x28613b(0x2ae)],'subUnitId':this[_0x28613b(0x1a9)],'isStartConnectorPoint':_0x39431a,'width':_univerjs_pro_engine_shape[_0x28613b(0x30a)][_0x28613b(0x497)]*0x2,'height':_univerjs_pro_engine_shape[_0x28613b(0x30a)][_0x28613b(0x497)]*0x2,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this[_0x28613b(0x1b4)][_0x28613b(0x2f9)](_0x5eef7f),this[_0x28613b(0x327)](_0x5eef7f,_0x1ed242,_0x39431a),_0x1ed242['addObject'](_0x5eef7f,_univerjs_engine_render[_0x28613b(0x11f)]+0x1);}['_getScrollInfo'](_0x2edf07,_0x3d5a29){const _0x1208b9=_0x101898;var _0x333800;const _0x5c77f6={'x':0x0,'y':0x0};if(!_0x2edf07||!_0x3d5a29)return _0x5c77f6;const _0x43dde5=this[_0x1208b9(0x28f)][_0x1208b9(0x1f9)](_0x2edf07);if(!_0x43dde5)return _0x5c77f6;if(!_0x43dde5[_0x1208b9(0x593)](_univerjs_sheets_ui['SheetSkeletonManagerService'])['getSkeleton'](_0x3d5a29))return _0x5c77f6;const _0x5274bf=_0x43dde5[_0x1208b9(0x593)](_univerjs_sheets_ui[_0x1208b9(0x574)]),_0x579286=_0x5274bf===null||_0x5274bf===void 0x0?void 0x0:_0x5274bf[_0x1208b9(0x599)]();if(!_0x579286)return _0x5c77f6;const _0x6f6049=(_0x333800=this[_0x1208b9(0x2e4)]['getUnit'](_0x2edf07))===null||_0x333800===void 0x0?void 0x0:_0x333800[_0x1208b9(0x5f6)](_0x3d5a29);if(!_0x6f6049)return _0x5c77f6;const _0x23e975=(0x0,_univerjs_sheets_ui[_0x1208b9(0x499)])(_0x579286[_0x1208b9(0x338)],_0x579286[_0x1208b9(0x3a0)],_0x43dde5[_0x1208b9(0x2dc)],_0x6f6049);if(!_0x23e975)return _0x5c77f6;return{'x':_0x23e975[_0x1208b9(0x149)],'y':_0x23e975[_0x1208b9(0x193)]};}[_0x101898(0x491)](_0x33a035,_0x26f2f7){const _0x4ae053=_0x101898;var _0x4a653a,_0x30d82a;const _0x716267=(_0x4a653a=this[_0x4ae053(0x2e4)][_0x4ae053(0x589)](_0x33a035))===null||_0x4a653a===void 0x0?void 0x0:_0x4a653a[_0x4ae053(0x5f6)](_0x26f2f7);return(_0x30d82a=_0x716267===null||_0x716267===void 0x0?void 0x0:_0x716267[_0x4ae053(0x4ba)]())!==null&&_0x30d82a!==void 0x0?_0x30d82a:0x1;}[_0x101898(0x21d)](_0x54df70,_0x40459e,_0x55bb3b,_0x376188,_0x2fdf6d){const _0x1d717f=_0x101898;this[_0x1d717f(0x24c)][_0x1d717f(0x472)](),this[_0x1d717f(0x41f)][_0x1d717f(0x472)](),this['_sheetShapeAdjustController'][_0x1d717f(0x429)]();const _0x93ae0d=this[_0x1d717f(0x34e)];this[_0x1d717f(0x2eb)][_0x1d717f(0x581)]();const _0x3047ea=this[_0x1d717f(0x555)](this['_unitId'],this[_0x1d717f(0x1a9)]),_0x1cf61b=this[_0x1d717f(0x491)](this['_unitId'],this[_0x1d717f(0x1a9)]),_0x2f01f2={'x':_0x55bb3b[_0x1d717f(0x360)]/_0x1cf61b+_0x3047ea['x'],'y':_0x55bb3b[_0x1d717f(0x544)]/_0x1cf61b+_0x3047ea['y']},_0x3d2540=_0x93ae0d?_0x93ae0d[_0x1d717f(0x57a)]:_0x2f01f2,_0x5897ca=_0x376188?this['_activeShapeModel'][_0x1d717f(0x371)]():this[_0x1d717f(0x40e)]['getStartConnectInfo'](),_0xfa4679=this[_0x1d717f(0x40e)][_0x1d717f(0x255)]();if(!_0x5897ca)this['_handleFreeEndpointPointerUp'](_0x40459e,_0x3d2540,_0x376188,_0x93ae0d,_0x2fdf6d,_0xfa4679);else this[_0x1d717f(0x355)](_0x5897ca,_0x3d2540,_0x376188,_0x93ae0d,_0x2fdf6d);this[_0x1d717f(0x42a)]=![],this[_0x1d717f(0x39a)]=![],this[_0x1d717f(0x34e)]=null,_0x54df70[_0x1d717f(0x123)]();}['_handleFreeEndpointPointerUp'](_0x12cc56,_0xd519e3,_0x6bafd3,_0x3d733f,_0x371720,_0x4cb808){const _0x2abe35=_0x101898,_0x100901=_0x4cb808===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x2abe35(0x237)]||_0x4cb808===_univerjs_pro_engine_shape[_0x2abe35(0x33e)][_0x2abe35(0x14e)],_0x5e39db=_0x6bafd3?_0xd519e3:_0x12cc56,_0x27894c=_0x6bafd3?_0x12cc56:_0xd519e3,_0x1e8ee9=this['_activeShapeModel'][_0x2abe35(0x52c)](),_0x126f3c=(0x0,_univerjs_pro_engine_shape[_0x2abe35(0x56b)])(this[_0x2abe35(0x40e)]['getShapeType']()),_0x30d9af=_univerjs_pro_engine_shape[_0x2abe35(0x35f)]['getBentTypeFromPoints'](_0x1e8ee9,_0x126f3c),_0x4d366=_0x100901?_univerjs_pro_engine_shape[_0x2abe35(0x35f)]['computeStraightConnectorLayout'](_0x5e39db,_0x27894c):_univerjs_pro_engine_shape[_0x2abe35(0x35f)][_0x2abe35(0x439)](_0x12cc56,_0xd519e3,_0x6bafd3,_0x30d9af);if(_0x3d733f)this[_0x2abe35(0x17c)](_0x4d366,_0x3d733f,_0x6bafd3,_0x371720);else this[_0x2abe35(0x3b7)](_0x4d366,_0x371720);}[_0x101898(0x355)](_0x3fed97,_0x2f96de,_0x22f526,_0x126711,_0x1829a3){const _0x1ec0ed=_0x101898,_0xbfd3cb=this[_0x1ec0ed(0x35e)](_0x3fed97);if(!_0xbfd3cb)return;const _0x429663=_0x126711?_0x126711['angle']:this[_0x1ec0ed(0x269)](_0xbfd3cb[_0x1ec0ed(0x4ad)],_0x2f96de);let _0x4d1ec7;if(_0x126711){const _0x3dce3e=this[_0x1ec0ed(0x3c9)][_0x1ec0ed(0x52f)]({'unitId':_0x126711['unitId'],'subUnitId':_0x126711[_0x1ec0ed(0x343)],'drawingId':_0x126711[_0x1ec0ed(0x49a)]});if(_0x3dce3e===null||_0x3dce3e===void 0x0?void 0x0:_0x3dce3e[_0x1ec0ed(0x519)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0xbb85c8}=_0x3dce3e[_0x1ec0ed(0x519)];_0x4d1ec7=(0x0,_univerjs_pro_engine_shape[_0x1ec0ed(0x122)])({'left':left,'top':top,'width':width,'height':height},_0xbb85c8||0x0);}else _0x4d1ec7={'left':_0x2f96de['x'],'top':_0x2f96de['y'],'width':0x0,'height':0x0};}else _0x4d1ec7={'left':_0x2f96de['x'],'top':_0x2f96de['y'],'width':0x0,'height':0x0};const _0x41d428={'point':_0x2f96de,'angle':_0x429663,'bounds':_0x4d1ec7},_0x2226d7=_0x22f526?_0x41d428:_0xbfd3cb,_0x1a22e4=_0x22f526?_0xbfd3cb:_0x41d428,_0x361567=this[_0x1ec0ed(0x40e)][_0x1ec0ed(0x255)](),_0x5a6411=(0x0,_univerjs_pro_engine_shape[_0x1ec0ed(0x504)])(_0x2226d7,_0x1a22e4,_0x361567);this[_0x1ec0ed(0x40e)][_0x1ec0ed(0x12b)]();const _0x5af500=(0x0,_univerjs_pro_engine_shape[_0x1ec0ed(0x532)])(_0x5a6411,_0x361567);if(_0x126711)this[_0x1ec0ed(0x1d5)](_0x5af500,_0x126711,_0x3fed97,_0x22f526,_0x1829a3);else this[_0x1ec0ed(0x67c)](_0x5af500,_0x3fed97,_0x22f526,_0x1829a3);}[_0x101898(0x17c)](_0x572cf5,_0x37dc6a,_0x57770f,_0x46566b){const _0x486e51=_0x101898,_0x595d3d=this[_0x486e51(0x40e)][_0x486e51(0x365)]()[_0x486e51(0x18b)],_0x2de690={..._0x595d3d},_0x4ad920={'shapeId':_0x37dc6a['shapeId'],'cxnIndex':_0x37dc6a[_0x486e51(0x1e2)]};if(_0x57770f)_0x2de690[_0x486e51(0x4b4)]=_0x4ad920;else _0x2de690['to']=_0x4ad920;const _0x1dc3f2=this[_0x486e51(0x40e)]['getShapeType'](),_0x5483e0=(0x0,_univerjs_pro_engine_shape[_0x486e51(0x532)])(_0x572cf5[_0x486e51(0x17d)],_0x1dc3f2),_0x8b4a06={'unitId':this[_0x486e51(0x2ae)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x572cf5[_0x486e51(0x190)][_0x486e51(0x604)],'height':_0x572cf5[_0x486e51(0x190)][_0x486e51(0x57c)],'left':_0x572cf5[_0x486e51(0x190)][_0x486e51(0x2ff)],'top':_0x572cf5[_0x486e51(0x190)]['top'],'flipX':_0x572cf5[_0x486e51(0x190)]['flipX']||![],'flipY':_0x572cf5[_0x486e51(0x190)][_0x486e51(0x34d)]||![],'newAdjustValues':_0x5483e0['adjustValues'],'oldAdjustValues':_0x46566b,'oldRelation':_0x595d3d,'newRelation':_0x2de690,'newLineType':_0x5483e0[_0x486e51(0x3a8)],'oldLineType':_0x1dc3f2};this[_0x486e51(0x36d)]['executeCommand'](_univerjs_pro_sheets_shape[_0x486e51(0x64f)]['id'],_0x8b4a06);}[_0x101898(0x3b7)](_0x1f2ce0,_0x166e43){const _0x590be7=_0x101898,_0x42f20d=this[_0x590be7(0x40e)][_0x590be7(0x255)](),_0x48d155=(0x0,_univerjs_pro_engine_shape[_0x590be7(0x532)])(_0x1f2ce0['worldPoints'],_0x42f20d),_0x5826b8={'unitId':this[_0x590be7(0x2ae)],'subUnitId':this[_0x590be7(0x1a9)],'shapeId':this[_0x590be7(0x2c9)],'width':_0x1f2ce0[_0x590be7(0x190)][_0x590be7(0x604)],'height':_0x1f2ce0['worldRect'][_0x590be7(0x57c)],'left':_0x1f2ce0[_0x590be7(0x190)]['left'],'top':_0x1f2ce0[_0x590be7(0x190)]['top'],'flipX':_0x1f2ce0[_0x590be7(0x190)][_0x590be7(0x4e0)]||![],'flipY':_0x1f2ce0[_0x590be7(0x190)][_0x590be7(0x34d)]||![],'angle':_0x1f2ce0[_0x590be7(0x190)]['angle']||0x0,'newAdjustValues':_0x48d155['adjustValues'],'oldAdjustValues':_0x166e43,'newLineType':_0x48d155[_0x590be7(0x3a8)],'oldLineType':_0x42f20d};this[_0x590be7(0x36d)][_0x590be7(0x60c)](_univerjs_pro_sheets_shape[_0x590be7(0x4ca)]['id'],_0x5826b8);}[_0x101898(0x1d5)](_0x5bd810,_0x42b0e3,_0x5bd422,_0x20a54e,_0x530bf5){const _0x79bab3=_0x101898,_0x381022=this[_0x79bab3(0x40e)][_0x79bab3(0x365)]()['relation'],_0x3e7ddf={..._0x381022},_0x25fd55={'shapeId':_0x42b0e3[_0x79bab3(0x49a)],'cxnIndex':_0x42b0e3['cxnIndex']};_0x20a54e?(_0x3e7ddf[_0x79bab3(0x4b4)]=_0x25fd55,_0x3e7ddf['to']=_0x5bd422):(_0x3e7ddf['from']=_0x5bd422,_0x3e7ddf['to']=_0x25fd55);const _0x12f57d={'unitId':this[_0x79bab3(0x2ae)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x79bab3(0x2c9)],'width':_0x5bd810[_0x79bab3(0x190)][_0x79bab3(0x604)],'height':_0x5bd810['worldRect']['height'],'left':_0x5bd810[_0x79bab3(0x190)][_0x79bab3(0x2ff)],'top':_0x5bd810[_0x79bab3(0x190)]['top'],'flipX':_0x5bd810[_0x79bab3(0x190)][_0x79bab3(0x4e0)]||![],'flipY':_0x5bd810[_0x79bab3(0x190)][_0x79bab3(0x34d)]||![],'oldAdjustValues':_0x530bf5,'newAdjustValues':_0x5bd810[_0x79bab3(0x494)],'newLineType':_0x5bd810[_0x79bab3(0x3a8)],'rotation':_0x5bd810[_0x79bab3(0x521)],'oldRelation':_0x381022,'newRelation':_0x3e7ddf};this['_commandService'][_0x79bab3(0x60c)](_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id'],_0x12f57d);}[_0x101898(0x67c)](_0x408108,_0xb50692,_0x3d5a35,_0x144c40){const _0x343d0c=_0x101898,_0x9b6751=this['_activeShapeModel'][_0x343d0c(0x365)]()[_0x343d0c(0x18b)],_0x51fc52={};_0x3d5a35?(_0x51fc52['to']=_0xb50692,_0x51fc52[_0x343d0c(0x4b4)]=void 0x0):(_0x51fc52[_0x343d0c(0x4b4)]=_0xb50692,_0x51fc52['to']=void 0x0);const _0x59d398={'unitId':this[_0x343d0c(0x2ae)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x408108[_0x343d0c(0x190)]['width'],'height':_0x408108[_0x343d0c(0x190)][_0x343d0c(0x57c)],'left':_0x408108[_0x343d0c(0x190)][_0x343d0c(0x2ff)],'top':_0x408108[_0x343d0c(0x190)]['top'],'flipX':_0x408108[_0x343d0c(0x190)][_0x343d0c(0x4e0)]||![],'flipY':_0x408108['worldRect'][_0x343d0c(0x34d)]||![],'oldAdjustValues':_0x144c40,'newAdjustValues':_0x408108[_0x343d0c(0x494)],'newLineType':_0x408108[_0x343d0c(0x3a8)],'rotation':_0x408108[_0x343d0c(0x521)],'oldRelation':_0x9b6751,'newRelation':_0x51fc52};this[_0x343d0c(0x36d)]['executeCommand'](_univerjs_pro_sheets_shape[_0x343d0c(0x64f)]['id'],_0x59d398);}['_attachConnectorObjectEvent'](_0xe66084,_0x1b9080,_0x26fe7e){const _0x1f541c=_0x101898;this[_0x1f541c(0x1ff)]((0x0,_univerjs_core[_0x1f541c(0x266)])(_0xe66084['onPointerDown$'][_0x1f541c(0x3a5)]((_0xa1e582,_0x50d130)=>{const _0x329e6b=_0x1f541c,_0x22419d=_0xe66084[_0x329e6b(0x54c)]();this['_activeShapeModel']=this[_0x329e6b(0x352)][_0x329e6b(0x148)](_0x22419d[_0x329e6b(0x3aa)],_0x22419d[_0x329e6b(0x343)],_0x22419d['drawingId']);if(!this['_activeShapeModel'])return;const _0x1ff705={};this['_activeShapeModel'][_0x329e6b(0x609)]()['forEach'](_0x56b058=>{const _0x45f97f=_0x329e6b,_0x2d2fc3=this['_activeShapeModel'][_0x45f97f(0x29c)](_0x56b058);if(_0x2d2fc3!==void 0x0)_0x1ff705[_0x56b058]=_0x2d2fc3;});const _0x378542=this[_0x329e6b(0x186)]();if(!_0x378542)return;this['_baseDrawingRect']={..._0x378542};const _0x84ce07=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x329e6b(0x134)]),_0x18a793=(0x0,_univerjs_drawing[_0x329e6b(0x38f)])({'unitId':this[_0x329e6b(0x2ae)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x329e6b(0x2c9)]}),_0x55bd73=_0x1b9080['getObjectIncludeInGroup'](_0x18a793);this['_isConnecting']=!![],_0x1b9080[_0x329e6b(0x1c5)](),this[_0x329e6b(0x2eb)][_0x329e6b(0x32b)](_0x1b9080,this[_0x329e6b(0x2ae)],this['_subUnitId'],this[_0x329e6b(0x2c9)]),this[_0x329e6b(0x34e)]=null;const _0x449b44=this[_0x329e6b(0x40e)]['getConnectorLinePoints'](),_0x3720d2=_0x449b44[0x0],_0x1bc40c=_0x449b44[_0x449b44[_0x329e6b(0x1ec)]-0x1],_0x337670=_0x26fe7e?_0x84ce07[_0x329e6b(0x141)](_0x1bc40c):_0x84ce07[_0x329e6b(0x141)](_0x3720d2);this['_cxtHandlerPointerMove']=_0x1b9080[_0x329e6b(0x14b)]['subscribeEvent']((_0x35d95a,_0x67e5e3)=>{const _0x2eb1c9=_0x329e6b;if(!this[_0x2eb1c9(0x42a)]||!this[_0x2eb1c9(0x40e)])return;!this['_hasReset']&&(this[_0x2eb1c9(0x3be)][_0x2eb1c9(0x3fe)](),this[_0x2eb1c9(0x40e)][_0x2eb1c9(0x29a)](),this[_0x2eb1c9(0x39a)]=!![]);const _0x2d0524=this[_0x2eb1c9(0x555)](this[_0x2eb1c9(0x2ae)],this['_subUnitId']),_0xaca97d=this[_0x2eb1c9(0x491)](this['_unitId'],this[_0x2eb1c9(0x1a9)]),_0x13dedf={'x':_0x35d95a['offsetX']/_0xaca97d+_0x2d0524['x'],'y':_0x35d95a[_0x2eb1c9(0x544)]/_0xaca97d+_0x2d0524['y']},_0x56efe3=this[_0x2eb1c9(0x2eb)][_0x2eb1c9(0x426)](_0x13dedf);if(_0x56efe3){const {shapeId:_0x51854c,unitId:_0x1cb25e,subUnitId:_0x21d5e5}=_0x56efe3;if(_0x51854c&&_0x1cb25e&&_0x21d5e5){const _0x3ce737=(0x0,_univerjs_drawing[_0x2eb1c9(0x38f)])({'unitId':_0x1cb25e,'subUnitId':_0x21d5e5,'drawingId':_0x51854c});_0x56efe3[_0x2eb1c9(0x2f5)]=(_0x1b9080[_0x2eb1c9(0x157)](_0x3ce737)['angle']||0x0)+_0x56efe3[_0x2eb1c9(0x2f5)];}}this[_0x2eb1c9(0x34e)]=_0x56efe3;const _0x26b362=_0x26fe7e?this[_0x2eb1c9(0x40e)][_0x2eb1c9(0x371)]():this['_activeShapeModel'][_0x2eb1c9(0x434)]();if(_0x26b362){this['_handleConnectedEndpointMove'](_0x26b362,_0x13dedf,_0x26fe7e,_0x55bd73,_0xe66084);return;}this[_0x2eb1c9(0x453)](_0x13dedf,_0x337670,_0x26fe7e,_0x55bd73,_0xe66084);}),this['_cxtHandlerPointerUp']=_0x1b9080[_0x329e6b(0x173)][_0x329e6b(0x3a5)]((_0x5f08ec,_0x5a2785)=>{const _0x195600=_0x329e6b;this[_0x195600(0x21d)](_0x1b9080,_0x337670,_0x5f08ec,_0x26fe7e,_0x1ff705);}),_0x50d130[_0x329e6b(0x160)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x8539b7,_0x155971,_0x1daa4e){const _0x3b361a=_0x101898,_0x3545fd=this[_0x3b361a(0x352)][_0x3b361a(0x3d1)](_0x8539b7,_0x155971,_0x1daa4e);if(!_0x3545fd||_0x3545fd[_0x3b361a(0x1ec)]===0x0)return;const _0x30d5d4=this[_0x3b361a(0x28f)][_0x3b361a(0x1f9)](_0x8539b7);if(!_0x30d5d4)return;const {scene:_0x59737a}=_0x30d5d4;for(const _0x350ed1 of _0x3545fd){const _0x47da64=_0x350ed1['lineShapeId'],_0x35fb27=this[_0x3b361a(0x352)][_0x3b361a(0x148)](_0x8539b7,_0x155971,_0x47da64);if(!_0x35fb27)continue;const _0x4d442e=_0x35fb27[_0x3b361a(0x434)](),_0x530930=_0x35fb27[_0x3b361a(0x371)](),_0x53229e=(_0x4d442e===null||_0x4d442e===void 0x0?void 0x0:_0x4d442e[_0x3b361a(0x49a)])===_0x1daa4e,_0x27373b=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x8539b7,'subUnitId':_0x155971,'drawingId':_0x47da64}),_0x37048b=_0x59737a[_0x3b361a(0x157)](_0x27373b);if(!_0x37048b)continue;const _0x547fe3=this[_0x3b361a(0x3c9)][_0x3b361a(0x52f)]({'unitId':_0x8539b7,'subUnitId':_0x155971,'drawingId':_0x47da64});if(!(_0x547fe3===null||_0x547fe3===void 0x0?void 0x0:_0x547fe3[_0x3b361a(0x519)]))continue;if(_0x4d442e&&_0x530930)this[_0x3b361a(0x48d)](_0x8539b7,_0x155971,_0x47da64,_0x35fb27,_0x4d442e,_0x530930,_0x37048b);else this['_moveConnectorWithShape'](_0x8539b7,_0x155971,_0x47da64,_0x35fb27,_0x53229e?_0x4d442e:_0x530930,_0x53229e,_0x547fe3,_0x37048b);}}[_0x101898(0x48d)](_0x5ec01f,_0x57eb39,_0x359996,_0x52f166,_0x33b3ce,_0x52ee5f,_0x367add){const _0x5014c8=_0x101898,_0x925ac3=this[_0x5014c8(0x2ae)],_0x3fb5f2=this[_0x5014c8(0x1a9)];this[_0x5014c8(0x2ae)]=_0x5ec01f,this[_0x5014c8(0x1a9)]=_0x57eb39;const _0x8a9ed3=this[_0x5014c8(0x35e)](_0x33b3ce),_0x1c97d4=this[_0x5014c8(0x35e)](_0x52ee5f);this[_0x5014c8(0x2ae)]=_0x925ac3,this[_0x5014c8(0x1a9)]=_0x3fb5f2;if(!_0x8a9ed3||!_0x1c97d4)return;const _0x503dd1=_0x52f166[_0x5014c8(0x255)](),_0x2eeb6c=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x8a9ed3,_0x1c97d4,_0x503dd1);if(_0x2eeb6c)_0x52f166[_0x5014c8(0x508)](_0x2eeb6c);const _0x1a0093=(0x0,_univerjs_pro_engine_shape[_0x5014c8(0x532)])(_0x2eeb6c,_0x503dd1);if(_0x1a0093[_0x5014c8(0x3a8)]!==_0x503dd1)_0x52f166[_0x5014c8(0x538)](_0x1a0093['lineType']);_0x52f166[_0x5014c8(0x29a)]();for(const [_0x5e7877,_0x206c37]of Object[_0x5014c8(0x272)](_0x1a0093[_0x5014c8(0x494)]))_0x52f166[_0x5014c8(0x58a)](_0x5e7877,_0x206c37);_0x52f166[_0x5014c8(0x56d)]({'width':_0x1a0093['worldRect'][_0x5014c8(0x604)],'height':_0x1a0093['worldRect'][_0x5014c8(0x57c)]}),_0x367add[_0x5014c8(0x46b)]({'flipX':_0x1a0093['worldRect'][_0x5014c8(0x4e0)],'flipY':_0x1a0093[_0x5014c8(0x190)][_0x5014c8(0x34d)],'left':_0x1a0093[_0x5014c8(0x190)][_0x5014c8(0x2ff)],'top':_0x1a0093[_0x5014c8(0x190)]['top'],'width':_0x1a0093[_0x5014c8(0x190)][_0x5014c8(0x604)],'height':_0x1a0093[_0x5014c8(0x190)][_0x5014c8(0x57c)],'angle':_0x1a0093[_0x5014c8(0x521)]}),_0x52f166[_0x5014c8(0x12b)]();}[_0x101898(0x4c3)](_0x510ae9,_0x49e1a5,_0x3ee300,_0x1e452c,_0x3b8a66,_0x4f1074,_0x5caf4d,_0x52f3c5){const _0x1b2a44=_0x101898,_0x408595=this[_0x1b2a44(0x2ae)],_0x12f1b1=this[_0x1b2a44(0x1a9)];this[_0x1b2a44(0x2ae)]=_0x510ae9,this[_0x1b2a44(0x1a9)]=_0x49e1a5;const _0x58bea3=this[_0x1b2a44(0x35e)](_0x3b8a66);this['_unitId']=_0x408595,this[_0x1b2a44(0x1a9)]=_0x12f1b1;if(!_0x58bea3)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x5caf4d[_0x1b2a44(0x519)],_0x5d302a=_0x1e452c[_0x1b2a44(0x52c)]();if(_0x5d302a['length']<0x2)return;const _0x285136=new _univerjs_pro_engine_shape[(_0x1b2a44(0x35f))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x17d501=_0x4f1074?_0x5d302a[_0x5d302a['length']-0x1]:_0x5d302a[0x0],_0x51080e=_0x285136[_0x1b2a44(0x141)](_0x17d501),_0x41fd55=_univerjs_pro_engine_shape[_0x1b2a44(0x35f)][_0x1b2a44(0x439)](_0x51080e,_0x58bea3[_0x1b2a44(0x4ad)],!_0x4f1074);_0x52f3c5[_0x1b2a44(0x46b)]({'flipX':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x4e0)],'flipY':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x34d)],'left':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x2ff)],'top':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x46c)],'width':_0x41fd55['worldRect'][_0x1b2a44(0x604)],'height':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x57c)],'angle':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x2f5)]}),_0x52f3c5[_0x1b2a44(0x408)](!![]);}['_clearShapeConnectorHandlerObjects'](){const _0x6053d1=_0x101898;if(this['_connectorObjects'][_0x6053d1(0x1ec)]===0x0)return;this[_0x6053d1(0x1b4)][_0x6053d1(0x5aa)](_0x4468f7=>{_0x4468f7['dispose']();}),this[_0x6053d1(0x1b4)]=[];}[_0x101898(0x490)](){const _0x1444b8=_0x101898,_0x13c32=this[_0x1444b8(0x2e4)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x1444b8(0x1e3)][_0x1444b8(0x42f)]);this[_0x1444b8(0x1ff)](_0x13c32[_0x1444b8(0x63e)]((0x0,rxjs[_0x1444b8(0x3f8)])(_0x579613=>{const _0x57ff52=_0x1444b8;if(!_0x579613)return rxjs['EMPTY'];return _0x579613[_0x57ff52(0x522)][_0x57ff52(0x63e)]((0x0,rxjs[_0x57ff52(0x3f8)])(_0x573f23=>{const _0x55419b=_0x57ff52;if(!_0x573f23)return rxjs[_0x55419b(0x180)];const _0x240c74=_0x579613[_0x55419b(0x5b1)](),_0x3eb8be=this[_0x55419b(0x28f)][_0x55419b(0x1f9)](_0x240c74),_0x33e45b=_0x3eb8be===null||_0x3eb8be===void 0x0?void 0x0:_0x3eb8be['scene'];if(!_0x33e45b)return rxjs[_0x55419b(0x180)];return(0x0,rxjs['of'])(_0x33e45b);}));}))[_0x1444b8(0x4fd)](_0x50755e=>{const _0x4b6b22=_0x1444b8,_0xe7e5cc=_0x50755e[_0x4b6b22(0x53f)]();this['disposeWithMe'](_0x50755e[_0x4b6b22(0x14b)]['subscribeEvent'](_0x39c3f0=>{const _0x5dc74b=_0x4b6b22;if(this['_isDrawingShapePointDown']&&this[_0x5dc74b(0x2c9)])this[_0x5dc74b(0x649)]();})),this[_0x4b6b22(0x1ff)](_0xe7e5cc['changeStart$'][_0x4b6b22(0x4fd)](_0x1deb05=>{const _0x23df5b=_0x4b6b22,{objects:_0xb298c4}=_0x1deb05;this[_0x23df5b(0x649)]();if(_0xb298c4!==null&&_0xb298c4[_0x23df5b(0x2a7)]===0x1){if(_0xb298c4[_0x23df5b(0x2f4)]()[_0x23df5b(0x119)]()[_0x23df5b(0x2f1)]instanceof DrawingShape)this[_0x23df5b(0x3cb)]=!![];}})),this[_0x4b6b22(0x1ff)](_0xe7e5cc[_0x4b6b22(0x54f)][_0x4b6b22(0x4fd)](_0x1efd5d=>{const _0x1d089e=_0x4b6b22;if(this[_0x1d089e(0x3cb)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x4b6b22(0x1ff)](_0x50755e[_0x4b6b22(0x173)][_0x4b6b22(0x3a5)](()=>{const _0x1f2b94=_0x4b6b22;this[_0x1f2b94(0x3cb)]&&(this[_0x1f2b94(0x3cb)]=![],this[_0x1f2b94(0x283)]());})),this['disposeWithMe'](_0xe7e5cc[_0x4b6b22(0x651)][_0x4b6b22(0x4fd)](()=>{const _0x232d32=_0x4b6b22;this['_unitId']&&this[_0x232d32(0x1a9)]&&this[_0x232d32(0x2c9)]&&(this[_0x232d32(0x3c9)]['getDrawingByParam']({'unitId':this[_0x232d32(0x2ae)],'subUnitId':this[_0x232d32(0x1a9)],'drawingId':this[_0x232d32(0x2c9)]})&&(this[_0x232d32(0x649)](),this[_0x232d32(0x283)]()));}));}));}[_0x101898(0x606)](){const _0x261f11=_0x101898;this[_0x261f11(0x1ff)](this[_0x261f11(0x3c9)]['focus$'][_0x261f11(0x4fd)](_0x27991c=>{const _0x4d3411=_0x261f11;if(_0x27991c[_0x4d3411(0x1ec)]===0x1){const _0x4e861c=_0x27991c[0x0];if(_0x4e861c[_0x4d3411(0x324)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']){const _0x42e5ba=this[_0x4d3411(0x352)][_0x4d3411(0x148)](_0x4e861c['unitId'],_0x4e861c[_0x4d3411(0x343)],_0x4e861c[_0x4d3411(0x16c)]);if(_0x42e5ba&&(0x0,_univerjs_pro_engine_shape[_0x4d3411(0x277)])(_0x42e5ba[_0x4d3411(0x255)]())){this[_0x4d3411(0x2c9)]=_0x4e861c[_0x4d3411(0x16c)],this[_0x4d3411(0x2ae)]=_0x4e861c[_0x4d3411(0x3aa)],this[_0x4d3411(0x1a9)]=_0x4e861c[_0x4d3411(0x343)],this[_0x4d3411(0x649)](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x4d3411(0x2ae)]=void 0x0,this[_0x4d3411(0x1a9)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](this[_0x261f11(0x3c9)][_0x261f11(0x523)]['subscribe'](_0x4e436d=>{const _0x2b8b4c=_0x261f11;if(_0x4e436d[_0x2b8b4c(0x1ec)]===0x1){var _0x1fb230;const _0x1bf3f1=_0x4e436d[0x0],_0x3629f8=(_0x1fb230=this['_drawingManagerService']['getDrawingByParam'](_0x1bf3f1))===null||_0x1fb230===void 0x0?void 0x0:_0x1fb230[_0x2b8b4c(0x324)];if(_0x3629f8===_univerjs_core['DrawingTypeEnum'][_0x2b8b4c(0x535)]&&_0x1bf3f1[_0x2b8b4c(0x16c)]===this[_0x2b8b4c(0x2c9)])this[_0x2b8b4c(0x649)](),this[_0x2b8b4c(0x283)]();else{if(!this[_0x2b8b4c(0x2c9)]&&_0x3629f8===_univerjs_core[_0x2b8b4c(0x229)][_0x2b8b4c(0x535)])this['_handleBasicShapeUpdateConnectorLineShape'](_0x1bf3f1[_0x2b8b4c(0x3aa)],_0x1bf3f1['subUnitId'],_0x1bf3f1[_0x2b8b4c(0x16c)]);}}})),this[_0x261f11(0x1ff)](this[_0x261f11(0x3c9)][_0x261f11(0x5ad)][_0x261f11(0x4fd)](_0x2e8652=>{const _0x461a54=_0x261f11;for(const _0x391f71 of _0x2e8652){const {drawingId:_0xdb3833}=_0x391f71;if(this[_0x461a54(0x2c9)]===_0xdb3833){this[_0x461a54(0x15e)]();return;}}}));}['_handleConnectedEndpointMove'](_0xe059f9,_0x3ac1a0,_0x459786,_0x361062,_0x13d0b4){const _0x5b74f5=_0x101898;var _0x189f45,_0x436615;if(!this[_0x5b74f5(0x40e)])return;const _0x322c28=this[_0x5b74f5(0x35e)](_0xe059f9);if(!_0x322c28)return;const _0x3c6fb6=this[_0x5b74f5(0x34e)]?this[_0x5b74f5(0x34e)]['worldPoint']:_0x3ac1a0,_0x56b9e3=this['_currentConnectionTarget']?this[_0x5b74f5(0x34e)][_0x5b74f5(0x2f5)]:this[_0x5b74f5(0x269)](_0x322c28[_0x5b74f5(0x4ad)],_0x3c6fb6);let _0x2efade;if(this[_0x5b74f5(0x34e)]){const _0x1860d8=this[_0x5b74f5(0x3c9)]['getDrawingByParam']({'unitId':this[_0x5b74f5(0x34e)]['unitId'],'subUnitId':this['_currentConnectionTarget'][_0x5b74f5(0x343)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x1860d8===null||_0x1860d8===void 0x0?void 0x0:_0x1860d8['transform']){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x4e7bd3}=_0x1860d8['transform'];_0x2efade=(0x0,_univerjs_pro_engine_shape[_0x5b74f5(0x122)])({'left':left,'top':top,'width':width,'height':height},_0x4e7bd3||0x0);}else _0x2efade={'left':_0x3c6fb6['x'],'top':_0x3c6fb6['y'],'width':0x0,'height':0x0};}else _0x2efade={'left':_0x3c6fb6['x'],'top':_0x3c6fb6['y'],'width':0x0,'height':0x0};const _0x34294a={'point':_0x3c6fb6,'angle':_0x56b9e3,'bounds':_0x2efade},_0x2267fb=_0x459786?_0x34294a:_0x322c28,_0x2b4f54=_0x459786?_0x322c28:_0x34294a,_0x5ec022=this[_0x5b74f5(0x40e)][_0x5b74f5(0x255)](),_0x3dd282=(0x0,_univerjs_pro_engine_shape[_0x5b74f5(0x504)])(_0x2267fb,_0x2b4f54,_0x5ec022);if(_0x3dd282)this[_0x5b74f5(0x40e)][_0x5b74f5(0x508)](_0x3dd282);const _0x14dc82=(0x0,_univerjs_pro_engine_shape[_0x5b74f5(0x532)])(_0x3dd282,_0x5ec022);if(_0x14dc82[_0x5b74f5(0x3a8)]!==_0x5ec022)this[_0x5b74f5(0x40e)][_0x5b74f5(0x538)](_0x14dc82[_0x5b74f5(0x3a8)]);for(const [_0x2eb089,_0xd05528]of Object['entries'](_0x14dc82[_0x5b74f5(0x494)]))this[_0x5b74f5(0x40e)]['setAdjustValueByName'](_0x2eb089,_0xd05528);this[_0x5b74f5(0x40e)]['updateContext']({'width':_0x14dc82['worldRect'][_0x5b74f5(0x604)],'height':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x57c)]}),_0x361062[_0x5b74f5(0x46b)]({'flipX':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x4e0)],'flipY':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x34d)],'left':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x2ff)],'top':_0x14dc82[_0x5b74f5(0x190)]['top'],'width':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x604)],'height':_0x14dc82['worldRect'][_0x5b74f5(0x57c)],'angle':_0x14dc82['rotation']}),_0x361062[_0x5b74f5(0x408)](!![]);const _0x17788e=(_0x189f45=(_0x436615=this['_currentConnectionTarget'])===null||_0x436615===void 0x0?void 0x0:_0x436615['worldPoint'])!==null&&_0x189f45!==void 0x0?_0x189f45:_0x3ac1a0;_0x13d0b4[_0x5b74f5(0x46b)]({'left':_0x17788e['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5b74f5(0x497)],'top':_0x17788e['y']-_univerjs_pro_engine_shape[_0x5b74f5(0x30a)][_0x5b74f5(0x497)]});}[_0x101898(0x453)](_0x565e95,_0x29c146,_0x64d6e8,_0x7a6d02,_0x248436){const _0x16d51a=_0x101898;var _0x36e0ca,_0x51a7f1,_0x54c4ef,_0x3d0d26;const _0x20488b=(_0x36e0ca=(_0x51a7f1=this[_0x16d51a(0x34e)])===null||_0x51a7f1===void 0x0?void 0x0:_0x51a7f1[_0x16d51a(0x57a)])!==null&&_0x36e0ca!==void 0x0?_0x36e0ca:_0x565e95,_0xf47c0=_univerjs_pro_engine_shape[_0x16d51a(0x35f)][_0x16d51a(0x439)](_0x29c146,_0x20488b,_0x64d6e8);_0x7a6d02[_0x16d51a(0x46b)]({'flipX':_0xf47c0['worldRect']['flipX'],'flipY':_0xf47c0[_0x16d51a(0x190)]['flipY'],'left':_0xf47c0[_0x16d51a(0x190)]['left'],'top':_0xf47c0[_0x16d51a(0x190)][_0x16d51a(0x46c)],'width':_0xf47c0[_0x16d51a(0x190)][_0x16d51a(0x604)],'height':_0xf47c0[_0x16d51a(0x190)][_0x16d51a(0x57c)],'angle':_0xf47c0[_0x16d51a(0x190)][_0x16d51a(0x2f5)]});const _0x5c8009=(_0x54c4ef=(_0x3d0d26=this[_0x16d51a(0x34e)])===null||_0x3d0d26===void 0x0?void 0x0:_0x3d0d26[_0x16d51a(0x57a)])!==null&&_0x54c4ef!==void 0x0?_0x54c4ef:_0x565e95;_0x248436[_0x16d51a(0x46b)]({'left':_0x5c8009['x']-_univerjs_pro_engine_shape[_0x16d51a(0x30a)]['cxnPointRadius'],'top':_0x5c8009['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x16d51a(0x497)]});}['_getConnectPointInfo'](_0x2715af){const _0x4e7936=_0x101898;if(!this[_0x4e7936(0x2ae)]||!this[_0x4e7936(0x1a9)])return null;const {shapeId:_0x24da51,cxnIndex:_0x39bfd3}=_0x2715af,_0x2ff220=this[_0x4e7936(0x352)][_0x4e7936(0x148)](this[_0x4e7936(0x2ae)],this[_0x4e7936(0x1a9)],_0x24da51);if(!_0x2ff220)return null;const _0x1ca497=this[_0x4e7936(0x3c9)][_0x4e7936(0x52f)]({'unitId':this[_0x4e7936(0x2ae)],'subUnitId':this[_0x4e7936(0x1a9)],'drawingId':_0x24da51});if(!(_0x1ca497===null||_0x1ca497===void 0x0?void 0x0:_0x1ca497[_0x4e7936(0x519)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x6afb8d}=_0x1ca497[_0x4e7936(0x519)];_0x2ff220[_0x4e7936(0x56d)]({'width':width,'height':height});const _0x589d07=_0x2ff220[_0x4e7936(0x18e)]()[_0x4e7936(0x13c)](_0x3323a4=>_0x3323a4[_0x4e7936(0x44f)]===_0x39bfd3);if(!_0x589d07)return null;let _0x1457f4=flipX?width-_0x589d07['x']:_0x589d07['x'],_0x5eba64=flipY?height-_0x589d07['y']:_0x589d07['y'];if(_0x6afb8d!==0x0&&_0x6afb8d!==void 0x0&&_0x6afb8d!==null){const _0x367b6d=_0x6afb8d*Math['PI']/0xb4,_0x31b828=Math[_0x4e7936(0x409)](_0x367b6d),_0x2a00e2=Math['sin'](_0x367b6d),_0x553deb=width/0x2,_0x4933a6=height/0x2,_0x2777df=_0x1457f4-_0x553deb,_0x39a151=_0x5eba64-_0x4933a6;_0x1457f4=_0x553deb+_0x2777df*_0x31b828-_0x39a151*_0x2a00e2,_0x5eba64=_0x4933a6+_0x2777df*_0x2a00e2+_0x39a151*_0x31b828;}_0x1457f4+=left,_0x5eba64+=top;let _0x5b3d8c=_0x589d07[_0x4e7936(0x686)]/0xea60;if(flipX)_0x5b3d8c=0xb4-_0x5b3d8c;if(flipY)_0x5b3d8c=-_0x5b3d8c;_0x5b3d8c+=_0x6afb8d||0x0,_0x5b3d8c=(_0x5b3d8c%0x168+0x168)%0x168;const _0xcabe4a=(0x0,_univerjs_pro_engine_shape[_0x4e7936(0x122)])({'left':left,'top':top,'width':width,'height':height},_0x6afb8d||0x0);return{'point':{'x':_0x1457f4,'y':_0x5eba64},'angle':_0x5b3d8c,'bounds':_0xcabe4a};}[_0x101898(0x269)](_0x4cbeb8,_0xd3c416){const _0x5880c6=_0x101898,_0x2c5806=_0xd3c416['x']-_0x4cbeb8['x'],_0x11e85d=_0xd3c416['y']-_0x4cbeb8['y'];if(Math[_0x5880c6(0x51e)](_0x2c5806)>=Math['abs'](_0x11e85d))return _0x2c5806>=0x0?0xb4:0x0;else return _0x11e85d>=0x0?0x10e:0x5a;}['_reset'](){const _0x19aa47=_0x101898;this[_0x19aa47(0x2c9)]=void 0x0,this[_0x19aa47(0x2ae)]=void 0x0,this['_subUnitId']=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x101898(0x3af)](){const _0x6f0fc0=_0x101898;this[_0x6f0fc0(0x649)](),super[_0x6f0fc0(0x3af)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0x101898(0x55c)]),__decorateParam(0x2,_univerjs_engine_render[_0x101898(0x500)]),__decorateParam(0x3,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x101898(0x232)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x101898(0x463)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x101898(0x463)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core['Disposable']{constructor(_0x4b93b6,_0x5dc095,_0xa4641a){const _0x281894=_0x101898;super(),this[_0x281894(0x36d)]=_0x4b93b6,this[_0x281894(0x679)]=_0x5dc095,this[_0x281894(0x3f0)]=_0xa4641a,this[_0x281894(0x513)]();}[_0x101898(0x513)](){const _0xd6f919=_0x101898;this['disposeWithMe'](this[_0xd6f919(0x36d)][_0xd6f919(0x5a8)](_0x145fbe=>{const _0x597778=_0xd6f919;let _0x32c51e,_0x1abcf1;if(_0x145fbe['id']===_univerjs_pro_sheets_shape[_0x597778(0x473)]['id']||_0x145fbe['id']===_univerjs_pro_sheets_shape[_0x597778(0x3df)]['id']||_0x145fbe['id']===_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id']){const _0x3a4bdf=_0x145fbe[_0x597778(0x35d)];_0x32c51e=_0x3a4bdf[_0x597778(0x3aa)],_0x1abcf1=_0x3a4bdf['subUnitId'];}if(!_0x32c51e||!_0x1abcf1)return;if(!this[_0x597778(0x3f0)]['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x597778(0x4bc)]],'worksheetTypes':[_univerjs_sheets['WorksheetEditPermission']]},_0x32c51e,_0x1abcf1))this['_sheetPermissionCheckController'][_0x597778(0x3ba)](this[_0x597778(0x679)]['t'](_0x597778(0x1e1)));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x101898(0x55c)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x101898(0x334)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets[_0x101898(0x167)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x4b85ae){const _0x4789a6=_0x101898,{containerWidth:_0x4d8c59,containerHeight:_0x3dfd56,scaleX:_0x539dd1,scaleY:_0x2936e3}=_0x4b85ae,_0x5c8c0e=_0x539dd1||0x1,_0x4cbc75=_0x2936e3||0x1,_0x4ae8a6=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(ShapeTextEditingService),_0x1b61da=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_docs_ui[_0x4789a6(0x29e)]),_0x819947=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_engine_render['IRenderManagerService']),_0x1c859c=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_core['IUniverInstanceService']),_0x4e5203=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_drawing[_0x4789a6(0x415)]),_0x5f22c9=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_pro_sheets_shape['SheetsShapeService']),_0x1d7940=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_core[_0x4789a6(0x55c)]),_0x1a99b8=(0x0,_univerjs_ui['useObservable'])(_0x4ae8a6[_0x4789a6(0x39d)]),_0x35f8d5=(0x0,_univerjs_ui[_0x4789a6(0x677)])(_0x4ae8a6['onSavingEditorData$']),_0x180bc0=(0x0,react[_0x4789a6(0x1da)])(null),_0x10ee88=(0x0,react['useRef'])(null),_0x42b254=(0x0,react[_0x4789a6(0x1da)])(null),_0x4be958=(0x0,react[_0x4789a6(0x1da)])(null),_0x2dd38a=(0x0,react[_0x4789a6(0x1da)])(null),_0xb535f0=(0x0,react['useRef'])(null),[_0x466106,_0x421e51]=(0x0,react['useState'])({'editorHeight':_0x3dfd56,'marginTop':0x0,'useAbsolutePosition':![]}),_0x4dcabd=(0x0,react[_0x4789a6(0x471)])(_0x108410=>{queueMicrotask(()=>{_0x421e51(_0x108410);});},[]),_0x31119a=(0x0,react[_0x4789a6(0x471)])(()=>{const _0x294ddf=_0x4789a6;return _0x1c859c[_0x294ddf(0x589)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core[_0x294ddf(0x1e3)]['UNIVER_DOC']);},[_0x1c859c]),_0xaf38a5=(0x0,react['useCallback'])(()=>{const _0x2fe8e3=_0x4789a6;var _0x2f6d99;const _0x13c4dd=_0x5c8c0e,_0x3cde48=_0x4cbc75;if(!_0x1a99b8)return{'scaleAdjust':0x1,'renderScaleX':_0x13c4dd,'renderScaleY':_0x3cde48};const _0xb8b8fa=_0x819947[_0x2fe8e3(0x1f9)](_0x1a99b8[_0x2fe8e3(0x3aa)]),_0x4e74b2=_0xb8b8fa===null||_0xb8b8fa===void 0x0?void 0x0:_0xb8b8fa[_0x2fe8e3(0x2dc)][_0x2fe8e3(0x597)](),_0x2c0fd1=_0xb8b8fa===null||_0xb8b8fa===void 0x0?void 0x0:_0xb8b8fa[_0x2fe8e3(0x36a)][_0x2fe8e3(0x2fd)](),_0x2dc743=_0x2c0fd1?Number[_0x2fe8e3(0x59b)](_0x2c0fd1[_0x2fe8e3(0x63d)]['width']||''):0x0,_0x56b765=(_0x2f6d99=_0x2c0fd1===null||_0x2c0fd1===void 0x0?void 0x0:_0x2c0fd1[_0x2fe8e3(0x2d7)]()['width'])!==null&&_0x2f6d99!==void 0x0?_0x2f6d99:0x0,_0x4348ab=_0x2dc743>0x0&&_0x56b765>0x0?_0x56b765/_0x2dc743:0x1;return{'scaleAdjust':Number[_0x2fe8e3(0x27b)](_0x4348ab)&&_0x4348ab>0x0?_0x4348ab:0x1,'renderScaleX':(_0x4e74b2===null||_0x4e74b2===void 0x0?void 0x0:_0x4e74b2['scaleX'])||_0x13c4dd,'renderScaleY':(_0x4e74b2===null||_0x4e74b2===void 0x0?void 0x0:_0x4e74b2[_0x2fe8e3(0x12a)])||_0x3cde48};},[_0x5c8c0e,_0x4cbc75,_0x1a99b8,_0x819947]),_0x1357bc=(0x0,react[_0x4789a6(0x471)])(()=>{const _0x4fa240=_0x4789a6;if(!_0x1a99b8)return{'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75};const {unitId:_0x3d6aa7,subUnitId:_0x4079ab,shapeId:_0xd590ef}=_0x1a99b8,_0x28bcbb=_0x5f22c9[_0x4fa240(0x148)](_0x3d6aa7,_0x4079ab,_0xd590ef);if(!_0x28bcbb)return{'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75};const _0x461eb8={'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75};return _0x28bcbb[_0x4fa240(0x5da)](_0x461eb8);},[_0x1a99b8,_0x4d8c59,_0x3dfd56,_0x5c8c0e,_0x4cbc75,_0x5f22c9]),_0x152d71=(0x0,react['useCallback'])(()=>{const _0x575d5a=_0x4789a6;if(!_0x1a99b8)return null;const {unitId:_0x12b517,subUnitId:_0x21ba24,shapeId:_0x36ae4b}=_0x1a99b8,_0x3a41d8=_0x5f22c9[_0x575d5a(0x148)](_0x12b517,_0x21ba24,_0x36ae4b);if(!_0x3a41d8)return null;const _0x11879f=_0x3a41d8[_0x575d5a(0x592)]();if(!_0x11879f)return null;const _0x427acc={'unitId':_0x12b517,'subUnitId':_0x21ba24,'drawingId':_0x36ae4b},_0x1ead05=_0x4e5203[_0x575d5a(0x52f)](_0x427acc);let _0x3fc2f2={'angle':0x0,'flipX':![],'flipY':![]};if(_0x1ead05&&_0x1ead05[_0x575d5a(0x519)])_0x3fc2f2=_0x1ead05[_0x575d5a(0x519)];const _0x420938={'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75},_0x352480=_0x3a41d8[_0x575d5a(0x5da)](_0x420938);let _0x4bdfff,_0x350a00=_univerjs_core[_0x575d5a(0x293)][_0x575d5a(0x1a5)],_0x5a026b=_univerjs_core[_0x575d5a(0x5c9)]['LEFT'];if(_0x575d5a(0x2c7)in _0x11879f&&_0x11879f[_0x575d5a(0x2c7)]){var _0x2b2c7a,_0x40bf43;const _0x1d3c61=_0x11879f[_0x575d5a(0x2c7)];if(_0x1d3c61===null||_0x1d3c61===void 0x0?void 0x0:_0x1d3c61[_0x575d5a(0x214)])_0x4bdfff=_0x1d3c61[_0x575d5a(0x214)];_0x350a00=(_0x2b2c7a=_0x1d3c61===null||_0x1d3c61===void 0x0?void 0x0:_0x1d3c61['va'])!==null&&_0x2b2c7a!==void 0x0?_0x2b2c7a:_univerjs_core['VerticalAlign'][_0x575d5a(0x1a5)],_0x5a026b=(_0x40bf43=_0x1d3c61===null||_0x1d3c61===void 0x0?void 0x0:_0x1d3c61['ha'])!==null&&_0x40bf43!==void 0x0?_0x40bf43:_univerjs_core[_0x575d5a(0x5c9)][_0x575d5a(0x183)];}return{'doc':_0x4bdfff,'verticalAlign':_0x350a00,'horizontalAlign':_0x5a026b,'textRect':_0x352480,'transform':_0x3fc2f2,'isHorizontal':_0x11879f[_0x575d5a(0x3ca)]};},[_0x1a99b8,_0x5f22c9,_0x4e5203,_0x4d8c59,_0x3dfd56,_0x5c8c0e,_0x4cbc75]),_0x5cd62c=(0x0,react[_0x4789a6(0x681)])(()=>{const _0x11fa4a=_0x4789a6,_0x219460=_0x152d71();if(_0x219460===null||_0x219460===void 0x0?void 0x0:_0x219460[_0x11fa4a(0x214)])return prepareShapeTextDocumentData(_0x219460[_0x11fa4a(0x214)],{'isHorizontal':!![],'textRect':_0x219460[_0x11fa4a(0x4fc)],'verticalAlign':_0x219460['verticalAlign'],'horizontalAlign':_0x219460['horizontalAlign']});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x4d8c59/_0x5c8c0e,'height':Infinity}}};},[_0x152d71,_0x4d8c59,_0x5c8c0e]),_0xe6fc3=(0x0,_univerjs_docs_ui[_0x4789a6(0x36f)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x5cd62c,'container':_0x10ee88,'autoFocus':![],'isSingle':![]}),_0x83179e=(0x0,_univerjs_docs_ui[_0x4789a6(0x308)])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui['useKeyboardEvent'])(_0x83179e,{'keyCodes':[{'keyCode':_univerjs_ui[_0x4789a6(0x12d)][_0x4789a6(0x380)]}],'handler':()=>{const _0x528d74=_0x4789a6;_0x1d7940['executeCommand'](_univerjs_docs_ui[_0x528d74(0x626)]['id']);}},_0xe6fc3),(0x0,_univerjs_docs_ui[_0x4789a6(0x66a)])(_0x83179e,![],_0xe6fc3);const _0x188100=(0x0,react[_0x4789a6(0x471)])((_0x2a1e3d=!![])=>{const _0x1c29ee=_0x4789a6;var _0x2c2cfc,_0x468769,_0x4198fe;if(!_0xe6fc3)return;const _0x1b27f4=_0xe6fc3[_0x1c29ee(0x1e5)]()['find'](_0x1cafc4=>_0x1cafc4['collapsed']),_0x523396=((_0x2c2cfc=(_0x468769=_0xe6fc3[_0x1c29ee(0x660)]()['body'])===null||_0x468769===void 0x0?void 0x0:_0x468769[_0x1c29ee(0x1d7)][_0x1c29ee(0x1ec)])!==null&&_0x2c2cfc!==void 0x0?_0x2c2cfc:0x2)-0x2,_0x5f0038=(_0x4198fe=_0x1b27f4===null||_0x1b27f4===void 0x0?void 0x0:_0x1b27f4['startOffset'])!==null&&_0x4198fe!==void 0x0?_0x4198fe:_0x2a1e3d?_0x523396:null;if(_0x5f0038===null)return;_0xe6fc3[_0x1c29ee(0x339)]([{'startOffset':_0x5f0038,'endOffset':_0x5f0038}],![]);},[_0xe6fc3]),_0x57677b=(0x0,react[_0x4789a6(0x471)])(()=>{const _0x51a6de=_0x4789a6;_0x2dd38a[_0x51a6de(0x51d)]!==null&&(cancelAnimationFrame(_0x2dd38a[_0x51a6de(0x51d)]),_0x2dd38a[_0x51a6de(0x51d)]=null),_0xb535f0[_0x51a6de(0x51d)]!==null&&(window[_0x51a6de(0x501)](_0xb535f0['current']),_0xb535f0[_0x51a6de(0x51d)]=null);},[]),_0x3e9b1=(0x0,react[_0x4789a6(0x471)])(()=>{const _0x47a996=_0x4789a6;var _0x3ff796,_0x36bbe8,_0x698b0d;if(!_0xe6fc3)return;const _0x17eea2=_0x819947[_0x47a996(0x1f9)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x387188=_0x17eea2===null||_0x17eea2===void 0x0?void 0x0:_0x17eea2[_0x47a996(0x593)](_univerjs_docs[_0x47a996(0x233)]);if(!_0x387188)return;const _0x3a10c4=_0x387188['getSkeleton'](),_0x345d91=_0x31119a(),{renderScaleX:_0x292312,renderScaleY:_0x319730,scaleAdjust:_0x697295}=_0xaf38a5(),_0x9607c7=_0x152d71(),_0x56f0d9=(_0x3ff796=_0x9607c7===null||_0x9607c7===void 0x0?void 0x0:_0x9607c7[_0x47a996(0x562)])!==null&&_0x3ff796!==void 0x0?_0x3ff796:_univerjs_core[_0x47a996(0x293)][_0x47a996(0x1a5)],_0x1360b9=(_0x36bbe8=_0x9607c7===null||_0x9607c7===void 0x0?void 0x0:_0x9607c7[_0x47a996(0x410)])!==null&&_0x36bbe8!==void 0x0?_0x36bbe8:_univerjs_core[_0x47a996(0x5c9)]['LEFT'],_0x29f3ee=(_0x698b0d=_0x1357bc())!==null&&_0x698b0d!==void 0x0?_0x698b0d:{'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75};_0x345d91&&(_0x345d91[_0x47a996(0x613)](Math[_0x47a996(0x1db)](_0x292312,_0x319730)),_0x345d91['updateDocumentStyle']({'pageSize':{'width':_0x29f3ee[_0x47a996(0x604)],'height':Infinity}}),_0x345d91['updateDocumentRenderConfig']({'verticalAlign':_0x56f0d9,'horizontalAlign':_0x1360b9,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core['WrapStrategy'][_0x47a996(0x4a7)]}));_0x3a10c4[_0x47a996(0x26f)]();const {actualHeight:_0x32eddb}=_0x3a10c4[_0x47a996(0x5e6)](),_0x3ef594=_0x29f3ee[_0x47a996(0x57c)];let _0x3a1002=_0x3ef594,_0x1aa54f=0x0;if(_0x32eddb<=_0x3ef594){if(_0x56f0d9===_univerjs_core[_0x47a996(0x293)][_0x47a996(0x2a6)])_0x1aa54f=(_0x3ef594-_0x32eddb)/0x2;else{if(_0x56f0d9===_univerjs_core[_0x47a996(0x293)][_0x47a996(0x151)])_0x1aa54f=_0x3ef594-_0x32eddb;}_0x3a1002=_0x3ef594,_0x4dcabd({'editorHeight':_0x29f3ee[_0x47a996(0x57c)]*_0x4cbc75,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x5394ad=0x0;if(_0x56f0d9===_univerjs_core[_0x47a996(0x293)][_0x47a996(0x2a6)])_0x5394ad=(_0x3ef594-_0x32eddb)/0x2;else{if(_0x56f0d9===_univerjs_core[_0x47a996(0x293)][_0x47a996(0x151)])_0x5394ad=_0x3ef594-_0x32eddb;}_0x1aa54f=0x0,_0x4dcabd({'editorHeight':_0x32eddb*_0x4cbc75,'marginTop':_0x5394ad*_0x4cbc75,'useAbsolutePosition':!![]}),_0x3a1002=_0x32eddb;}_0x345d91&&(_0x345d91['updateDocumentStyle']({'pageSize':{'width':_0x29f3ee['width'],'height':_0x3a1002}}),_0x345d91[_0x47a996(0x3bb)]({'t':_0x1aa54f}),_0x3a10c4[_0x47a996(0x26f)]());if(_0x17eea2){const _0x446c3b=_0x29f3ee['width']*_0x5c8c0e,_0x3c05f8=_0x3a1002*_0x4cbc75;_0x17eea2['scene'][_0x47a996(0x46b)]({'width':_0x446c3b*_0x697295/_0x292312,'height':_0x3c05f8*_0x697295/_0x319730,'scaleX':_0x292312*_0x697295,'scaleY':_0x319730*_0x697295});if(_0x17eea2['mainComponent'])_0x17eea2[_0x47a996(0x659)][_0x47a996(0x65a)](_0x446c3b*_0x697295/_0x292312,_0x3c05f8*_0x697295/_0x319730);}},[_0xe6fc3,_0x819947,_0x31119a,_0xaf38a5,_0x152d71,_0x1357bc,_0x4d8c59,_0x3dfd56,_0x5c8c0e,_0x4cbc75,_0x4dcabd]),_0x22bedf=(0x0,react[_0x4789a6(0x471)])((_0x5546a1=![])=>{const _0x4ab587=_0x4789a6;_0x57677b(),_0x2dd38a[_0x4ab587(0x51d)]=requestAnimationFrame(()=>{const _0x1b8944=_0x4ab587;_0x3e9b1();if(_0x5546a1)_0x188100(![]);_0x2dd38a[_0x1b8944(0x51d)]=null,_0xb535f0[_0x1b8944(0x51d)]=window[_0x1b8944(0x1b2)](()=>{_0x3e9b1();if(_0x5546a1)_0x188100(![]);_0xb535f0['current']=null;},0x14);});},[_0x3e9b1,_0x57677b,_0x188100]);(0x0,react[_0x4789a6(0x26d)])(()=>{const _0x335f74=_0x4789a6;if(!_0xe6fc3||!_0x1a99b8)return;const {shapeId:_0x9e524f,unitId:_0x3c23f7,subUnitId:_0x1624b7}=_0x1a99b8;if(_0x35f8d5){var _0x45c1d1,_0x1b2939,_0x357af6,_0x5a50d3;const _0x5dbe4b=stripShapeTextDocumentLayout(_0xe6fc3[_0x335f74(0x660)]()),_0x32df6e=_0x152d71(),_0x277118={'va':(_0x45c1d1=_0x32df6e===null||_0x32df6e===void 0x0?void 0x0:_0x32df6e[_0x335f74(0x562)])!==null&&_0x45c1d1!==void 0x0?_0x45c1d1:_univerjs_core[_0x335f74(0x293)][_0x335f74(0x1a5)],'ha':(_0x1b2939=_0x32df6e===null||_0x32df6e===void 0x0?void 0x0:_0x32df6e[_0x335f74(0x410)])!==null&&_0x1b2939!==void 0x0?_0x1b2939:_univerjs_core[_0x335f74(0x5c9)][_0x335f74(0x183)],'doc':_0x5dbe4b};_0x1d7940[_0x335f74(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x3c23f7,'subUnitId':_0x1624b7,'shapeId':_0x9e524f,'shapeData':{'shapeText':{'isHorizontal':(_0x357af6=_0x32df6e===null||_0x32df6e===void 0x0?void 0x0:_0x32df6e['isHorizontal'])!==null&&_0x357af6!==void 0x0?_0x357af6:!![],'dataModel':_0x277118}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x5a50d3=_0x32df6e===null||_0x32df6e===void 0x0?void 0x0:_0x32df6e[_0x335f74(0x3ca)])!==null&&_0x5a50d3!==void 0x0?_0x5a50d3:!![],'dataModel':_0x42b254[_0x335f74(0x51d)]}}}});return;}const _0x13ee6e=_0x152d71();if(_0x13ee6e===null||_0x13ee6e===void 0x0?void 0x0:_0x13ee6e['doc']){_0x42b254[_0x335f74(0x51d)]={'va':_0x13ee6e[_0x335f74(0x562)],'ha':_0x13ee6e['horizontalAlign'],'doc':_univerjs_core[_0x335f74(0x174)][_0x335f74(0x1b9)](_0x13ee6e[_0x335f74(0x214)])};const _0x670e0a=prepareShapeTextDocumentData(_0x13ee6e[_0x335f74(0x214)],{'isHorizontal':!![],'textRect':_0x13ee6e['textRect'],'verticalAlign':_0x13ee6e[_0x335f74(0x562)],'horizontalAlign':_0x13ee6e[_0x335f74(0x410)]});return _0xe6fc3[_0x335f74(0x5dc)](_0x670e0a,null),()=>{const _0x43eeca=_0x335f74;var _0x5372fd,_0x25cc74,_0x164e87,_0x57c273;const _0x2411f9=stripShapeTextDocumentLayout(_0xe6fc3[_0x43eeca(0x660)]()),_0x4e9288=_0x152d71(),_0x1eff4d={'va':(_0x5372fd=_0x4e9288===null||_0x4e9288===void 0x0?void 0x0:_0x4e9288[_0x43eeca(0x562)])!==null&&_0x5372fd!==void 0x0?_0x5372fd:_univerjs_core[_0x43eeca(0x293)][_0x43eeca(0x1a5)],'ha':(_0x25cc74=_0x4e9288===null||_0x4e9288===void 0x0?void 0x0:_0x4e9288[_0x43eeca(0x410)])!==null&&_0x25cc74!==void 0x0?_0x25cc74:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x2411f9};_0x1d7940[_0x43eeca(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x3c23f7,'subUnitId':_0x1624b7,'shapeId':_0x9e524f,'shapeData':{'shapeText':{'isHorizontal':(_0x164e87=_0x4e9288===null||_0x4e9288===void 0x0?void 0x0:_0x4e9288['isHorizontal'])!==null&&_0x164e87!==void 0x0?_0x164e87:!![],'dataModel':_0x1eff4d}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x57c273=_0x4e9288===null||_0x4e9288===void 0x0?void 0x0:_0x4e9288[_0x43eeca(0x3ca)])!==null&&_0x57c273!==void 0x0?_0x57c273:!![],'dataModel':_0x42b254['current']}}}});};}else _0xe6fc3[_0x335f74(0x5dc)](_0x5cd62c,null);},[_0xe6fc3,_0x1a99b8,_0x35f8d5]),(0x0,react[_0x4789a6(0x26d)])(()=>{const _0x3d7473=_0x4789a6;if(!_0xe6fc3||!_0x1a99b8)return;return _0x1b61da[_0x3d7473(0x568)](!![]),_0x3e9b1(),_0x4be958['current']=requestAnimationFrame(()=>{const _0x110214=_0x3d7473;_0x1b61da['focus'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x188100(),_0x22bedf(),_0x4be958[_0x110214(0x51d)]=null;}),()=>{const _0x56eeae=_0x3d7473;_0x4be958[_0x56eeae(0x51d)]!==null&&(cancelAnimationFrame(_0x4be958[_0x56eeae(0x51d)]),_0x4be958[_0x56eeae(0x51d)]=null),_0x57677b(),_0x1b61da[_0x56eeae(0x568)](!![]);};},[_0xe6fc3,_0x1a99b8,_0x1b61da,_0x3e9b1,_0x188100,_0x22bedf,_0x57677b]),(0x0,react[_0x4789a6(0x26d)])(()=>{const _0x1975c4=_0x4789a6;if(!_0xe6fc3)return;const _0x5a35cf=_0x1d7940[_0x1975c4(0x5e3)](_0xe0c23d=>{const _0x31f2a1=_0x1975c4;if(_0xe0c23d['id']===_univerjs_docs[_0x31f2a1(0x1dd)]['id']){if(_0xe0c23d[_0x31f2a1(0x35d)][_0x31f2a1(0x3aa)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x1a99b8){if(!_0x1a99b8['visible'])_0x4ae8a6[_0x31f2a1(0x51b)]({..._0x1a99b8,'visible':!![]});else _0x3e9b1();}}}if(_0xe0c23d['id']===SetShapeTextVerticalAlignCommand['id'])_0x22bedf(!![]);});return()=>{_0x5a35cf['dispose']();};},[_0xe6fc3,_0x3e9b1,_0x1a99b8,_0x22bedf,_0x4ae8a6]),(0x0,react[_0x4789a6(0x26d)])(()=>{return _0x3e9b1(),_0x22bedf(),()=>{_0x57677b();};},[_0x3e9b1,_0x22bedf,_0x57677b]);const _0x3072fc=(0x0,react[_0x4789a6(0x681)])(()=>{const _0x1665ae=_0x4789a6;var _0x312f94;const _0x319ea9=(_0x312f94=_0x1357bc())!==null&&_0x312f94!==void 0x0?_0x312f94:{'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75},_0x2e3fbb=_0x319ea9['left']*_0x5c8c0e,_0x306237=_0x319ea9[_0x1665ae(0x46c)]*_0x4cbc75,_0x1db25e=_0x319ea9[_0x1665ae(0x604)]*_0x5c8c0e;if(_0x466106[_0x1665ae(0x31a)])return{'top':_0x306237+_0x466106[_0x1665ae(0x663)],'left':_0x2e3fbb,'width':_0x1db25e,'height':_0x466106[_0x1665ae(0x64a)]};return{'top':_0x306237,'left':_0x2e3fbb,'width':_0x1db25e,'height':_0x466106[_0x1665ae(0x64a)]};},[_0x466106,_0x1357bc,_0x4d8c59,_0x3dfd56,_0x5c8c0e,_0x4cbc75]),_0x23e32b=(0x0,react['useMemo'])(()=>{const _0xd70602=_0x4789a6,_0x5530c5=_0x152d71(),_0xa021d=_0x5530c5===null||_0x5530c5===void 0x0?void 0x0:_0x5530c5[_0xd70602(0x519)];if(_0xa021d)return _0xa021d||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x152d71]);return(0x0,react_jsx_runtime[_0x4789a6(0x326)])(_0x4789a6(0x14c),{'ref':_0x180bc0,'data-u-comp':_0x4789a6(0x330),'className':_0x4789a6(0x212),'style':{'transform':_0x4789a6(0x50f)+_0x23e32b[_0x4789a6(0x2f5)]+'deg)\x20scaleY('+(_0x23e32b['flipY']?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x4789a6(0x326)])(_0x4789a6(0x14c),{'ref':_0x10ee88,'className':'univer-absolute','data-u-comp':_0x4789a6(0x1ef),'style':_0x3072fc,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor['displayName']=_0x101898(0x395);const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x4eec0d,_0x2078c9,_0x3936a1,_0x2ed3d8){const _0x247e72=_0x101898,{scaleX:_0x4bf59b,scaleY:_0x1a512a}=_0x3936a1[_0x247e72(0x597)](),{startColumn:_0x4ed468,startRow:_0x21bd20,xSplit:_0x497c2d,ySplit:_0xbcfbb7}=_0x2ed3d8[_0x247e72(0x68a)][_0x247e72(0x245)](),_0x526434=_0x3936a1['getViewport'](_univerjs_engine_render[_0x247e72(0x2e9)][_0x247e72(0x23b)]),_0x8c280b=_0x3936a1[_0x247e72(0x5f3)](_univerjs_engine_render[_0x247e72(0x2e9)][_0x247e72(0x1af)]),_0x4417d6=_0x3936a1[_0x247e72(0x5f3)](_univerjs_engine_render[_0x247e72(0x2e9)][_0x247e72(0x5eb)]),_0x4f089c=_0x3936a1[_0x247e72(0x5f3)](_univerjs_engine_render[_0x247e72(0x2e9)][_0x247e72(0x1e8)]),{rowHeaderWidth:_0x11e131,columnHeaderHeight:_0x17b87d}=_0x2ed3d8,_0x38e705=_0x2ed3d8[_0x247e72(0x4b1)](_0x21bd20)+_0x17b87d,_0x17cfd2=_0x2ed3d8['colStartX'](_0x4ed468)+_0x11e131,_0x557351=_0x2ed3d8[_0x247e72(0x4b1)](_0x21bd20-_0xbcfbb7)+_0x17b87d,_0x1d826d=_0x2ed3d8[_0x247e72(0x4a9)](_0x4ed468-_0x497c2d)+_0x11e131,_0x525e29=[],_0x3e17b3=(_0x458a99,_0x2be90c,_0x568b47)=>{if(!_0x458a99)return null;const {viewportScrollX:_0x2ea777,viewportScrollY:_0x509ecc}=_0x458a99;let _0x1d02b1,_0x26c560;if(_0x2be90c)_0x1d02b1=(_0x4eec0d-(_0x1d826d-_0x11e131))*_0x4bf59b;else _0x1d02b1=(_0x4eec0d-_0x2ea777)*_0x4bf59b;if(_0x568b47)_0x26c560=(_0x2078c9-(_0x557351-_0x17b87d))*_0x1a512a;else _0x26c560=(_0x2078c9-_0x509ecc)*_0x1a512a;return{'domX':_0x1d02b1,'domY':_0x26c560};},_0x5df697=_0x4eec0d<_0x17cfd2&&_0x497c2d>0x0,_0x5bc26e=_0x2078c9<_0x38e705&&_0xbcfbb7>0x0,_0x1c081e=_0x4eec0d>=_0x17cfd2||_0x497c2d===0x0,_0x4209bb=_0x2078c9>=_0x38e705||_0xbcfbb7===0x0;if(_0x5df697&&_0x5bc26e&&_0x8c280b){const _0x40d328=_0x3e17b3(_0x8c280b,!![],!![]);if(_0x40d328)_0x525e29[_0x247e72(0x2f9)](_0x40d328);}if(_0x5bc26e&&_0x1c081e&&_0x4417d6){const _0xd0a9b0=_0x3e17b3(_0x4417d6,![],!![]);if(_0xd0a9b0)_0x525e29[_0x247e72(0x2f9)](_0xd0a9b0);}if(_0x5df697&&_0x4209bb&&_0x4f089c){const _0x5737a1=_0x3e17b3(_0x4f089c,!![],![]);if(_0x5737a1)_0x525e29[_0x247e72(0x2f9)](_0x5737a1);}if(_0x1c081e&&_0x4209bb&&_0x526434){const _0x4aac37=_0x3e17b3(_0x526434,![],![]);if(_0x4aac37)_0x525e29['push'](_0x4aac37);}if(_0x525e29[_0x247e72(0x1ec)]===0x0){var _0x1b9227,_0x86baec;return{'domX':(_0x4eec0d-((_0x1b9227=_0x526434===null||_0x526434===void 0x0?void 0x0:_0x526434[_0x247e72(0x149)])!==null&&_0x1b9227!==void 0x0?_0x1b9227:0x0))*_0x4bf59b,'domY':(_0x2078c9-((_0x86baec=_0x526434===null||_0x526434===void 0x0?void 0x0:_0x526434[_0x247e72(0x193)])!==null&&_0x86baec!==void 0x0?_0x86baec:0x0))*_0x1a512a};}let _0x4907a2=_0x525e29[0x0][_0x247e72(0x1d4)],_0x21fe3d=_0x525e29[0x0][_0x247e72(0x11c)];for(const _0x67d465 of _0x525e29){if(_0x67d465['domX']>_0x4907a2)_0x4907a2=_0x67d465['domX'];if(_0x67d465[_0x247e72(0x11c)]>_0x21fe3d)_0x21fe3d=_0x67d465[_0x247e72(0x11c)];}return{'domX':_0x4907a2,'domY':_0x21fe3d};}function calcShapePosition(_0x23b182,_0xdf51eb,_0x58b707,_0x38211c,_0x1dfc59,_0x4b037b,_0x1e42b0){const _0x5a25e0=_0x101898,{scaleX:_0x45416b,scaleY:_0xf1ce32}=_0x4b037b[_0x5a25e0(0x597)](),{domX:_0x9264fb,domY:_0x58e8f3}=calcBestDOMPositionForFreezeZones(_0x23b182,_0xdf51eb,_0x4b037b,_0x1e42b0);return{'left':_0x9264fb,'top':_0x58e8f3,'width':_0x58b707*_0x45416b,'height':_0x38211c*_0xf1ce32,'angle':_0x1dfc59,'scaleX':_0x45416b,'scaleY':_0xf1ce32};}function useShapePosition(_0x56ce53){const _0x4b8303=_0x101898,{editingParams:_0x4bd2a7,scene:_0xd84091,skeleton:_0x2d633d,getShapeTransform:_0x34dead}=_0x56ce53,[_0x3f9e43,_0x1b9670]=(0x0,react[_0x4b8303(0x168)])(DEFAULT_HIDDEN_POSITION),_0x2c55ab=(0x0,react[_0x4b8303(0x1da)])(_0x3f9e43);_0x2c55ab[_0x4b8303(0x51d)]=_0x3f9e43;const _0x900469=(0x0,react[_0x4b8303(0x471)])(()=>{const _0x2a9027=_0x4b8303;if(!_0x4bd2a7||!_0xd84091||!_0x2d633d){if(_0x2c55ab[_0x2a9027(0x51d)]!==DEFAULT_HIDDEN_POSITION)_0x1b9670(DEFAULT_HIDDEN_POSITION);return;}const _0x174617=_0x34dead();if(!_0x174617){if(_0x2c55ab['current']!==DEFAULT_HIDDEN_POSITION)_0x1b9670(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x458277,top:_0x5b8db9,width:_0x5effe0,height:_0x5772c5,angle:_0x44435b}=_0x174617;if(!_0x4bd2a7[_0x2a9027(0x510)]){const {scaleX:_0x1ffa99,scaleY:_0x1be16f}=_0xd84091['getAncestorScale']();_0x1b9670({'left':-0x270f,'top':-0x270f,'width':_0x5effe0*_0x1ffa99,'height':_0x5772c5*_0x1be16f,'angle':0x0,'scaleX':_0x1ffa99,'scaleY':_0x1be16f});return;}_0x1b9670(calcShapePosition(_0x458277,_0x5b8db9,_0x5effe0,_0x5772c5,_0x44435b,_0xd84091,_0x2d633d));},[_0x4bd2a7,_0xd84091,_0x2d633d,_0x34dead]);return(0x0,react[_0x4b8303(0x26d)])(()=>{_0x900469();},[_0x4bd2a7,_0x900469]),{'position':_0x3f9e43,'updatePosition':_0x900469};}const ShapePositionWrapper=(0x0,react[_0x101898(0x280)])(_0x378ea6=>{const _0x4c3578=_0x101898,{children:_0x723f2,onPositionUpdate:_0x149239}=_0x378ea6,_0x38b848=(0x0,react[_0x4c3578(0x1da)])(null),_0x473ca3=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x120e95=(0x0,_univerjs_ui[_0x4c3578(0x14f)])(_univerjs_engine_render[_0x4c3578(0x500)]),_0x543fea=(0x0,_univerjs_ui['useObservable'])(_0x473ca3[_0x4c3578(0x39d)]),_0x3123bb=(0x0,react['useMemo'])(()=>{const _0x28355d=_0x4c3578;if(!_0x543fea)return null;return _0x120e95[_0x28355d(0x1f9)](_0x543fea['unitId']);},[_0x543fea,_0x120e95]),_0x3bb22e=(0x0,react[_0x4c3578(0x681)])(()=>{const _0x402028=_0x4c3578;var _0x56bf29;return(_0x56bf29=_0x3123bb===null||_0x3123bb===void 0x0?void 0x0:_0x3123bb[_0x402028(0x2dc)])!==null&&_0x56bf29!==void 0x0?_0x56bf29:null;},[_0x3123bb]),{position:_0x3cd26d,updatePosition:_0x2f465e}=useShapePosition({'editingParams':_0x543fea,'scene':_0x3bb22e,'skeleton':(0x0,react[_0x4c3578(0x681)])(()=>{const _0x311362=_0x4c3578;var _0x4c1d9d,_0x459ff1;if(!_0x543fea||!_0x3123bb)return null;return(_0x4c1d9d=(_0x459ff1=_0x3123bb['with'](_univerjs_sheets_ui[_0x311362(0x217)])['getSkeletonParam'](_0x543fea[_0x311362(0x343)]))===null||_0x459ff1===void 0x0?void 0x0:_0x459ff1[_0x311362(0x236)])!==null&&_0x4c1d9d!==void 0x0?_0x4c1d9d:null;},[_0x543fea,_0x3123bb]),'getShapeTransform':(0x0,react[_0x4c3578(0x471)])(()=>{const _0x1f99d4=_0x4c3578;if(!_0x543fea||!_0x3bb22e)return null;const _0x591d95=_0x543fea[_0x1f99d4(0x60f)],_0x32450a=_0x3bb22e[_0x1f99d4(0x520)](_0x591d95);if(_0x32450a instanceof DrawingShape)return{'left':_0x32450a[_0x1f99d4(0x2ff)],'top':_0x32450a[_0x1f99d4(0x46c)],'width':_0x32450a[_0x1f99d4(0x604)],'height':_0x32450a['height'],'angle':_0x32450a[_0x1f99d4(0x2f5)]};return null;},[_0x543fea,_0x3bb22e])}),_0x4ee95e=(0x0,react[_0x4c3578(0x471)])(()=>{const _0x2e19f1=_0x4c3578,_0x1101f0=_0x38b848[_0x2e19f1(0x51d)];if(!_0x1101f0)return;_0x1101f0[_0x2e19f1(0x63d)]['left']=_0x3cd26d[_0x2e19f1(0x2ff)]+'px',_0x1101f0[_0x2e19f1(0x63d)][_0x2e19f1(0x46c)]=_0x3cd26d['top']+'px',_0x1101f0[_0x2e19f1(0x63d)]['width']=_0x3cd26d[_0x2e19f1(0x604)]+'px',_0x1101f0['style']['height']=_0x3cd26d['height']+'px';},[_0x3cd26d]);return(0x0,react[_0x4c3578(0x26d)])(()=>{const _0x12f9a1=_0x4c3578;_0x4ee95e(),_0x149239===null||_0x149239===void 0x0||_0x149239({'width':_0x3cd26d[_0x12f9a1(0x604)],'height':_0x3cd26d[_0x12f9a1(0x57c)],'scaleX':_0x3cd26d[_0x12f9a1(0x43d)],'scaleY':_0x3cd26d['scaleY']});},[_0x3cd26d,_0x4ee95e,_0x149239]),(0x0,react[_0x4c3578(0x26d)])(()=>{const _0x35beec=_0x4c3578;if(!_0x3bb22e)return;const _0x3f16da=_0x3bb22e[_0x35beec(0x5f3)](_univerjs_engine_render[_0x35beec(0x2e9)]['VIEW_MAIN']);if(!_0x3f16da)return;const _0x5330d4=_0x3f16da['onScrollAfter$'][_0x35beec(0x3a5)](()=>{_0x2f465e();});return()=>{const _0x4f59c5=_0x35beec;_0x5330d4[_0x4f59c5(0x472)]();};},[_0x3bb22e,_0x2f465e]),(0x0,react[_0x4c3578(0x26d)])(()=>{const _0x27cbab=_0x4c3578;if(!_0x543fea||!_0x3bb22e)return;const _0x1376b3=_0x543fea[_0x27cbab(0x60f)],_0x17bed3=_0x3bb22e[_0x27cbab(0x520)](_0x1376b3);if(_0x17bed3 instanceof DrawingShape){const _0x4dde6a=_0x17bed3[_0x27cbab(0x4e7)][_0x27cbab(0x3a5)](()=>{_0x2f465e();});return()=>{_0x4dde6a['unsubscribe']();};}},[_0x543fea,_0x3bb22e,_0x2f465e]),(0x0,react_jsx_runtime[_0x4c3578(0x326)])(_0x4c3578(0x14c),{'ref':_0x38b848,'data-u-comp':'shape-text-editor-position-wrapper','className':_0x4c3578(0x41e),'style':(0x0,react[_0x4c3578(0x681)])(()=>({'left':_0x3cd26d[_0x4c3578(0x2ff)],'top':_0x3cd26d[_0x4c3578(0x46c)],'width':_0x3cd26d['width'],'height':_0x3cd26d['height'],'pointerEvents':(_0x543fea===null||_0x543fea===void 0x0?void 0x0:_0x543fea[_0x4c3578(0x510)])?'auto':_0x4c3578(0x2fc)}),[_0x3cd26d,_0x543fea===null||_0x543fea===void 0x0?void 0x0:_0x543fea['visible']]),'children':_0x723f2});});ShapePositionWrapper[_0x101898(0x3c2)]='ShapePositionWrapper';const ShapeTextEditorContainer=(0x0,react[_0x101898(0x280)])(()=>{const _0x25056c=_0x101898,_0x58f400=(0x0,_univerjs_ui[_0x25056c(0x677)])((0x0,_univerjs_ui[_0x25056c(0x14f)])(ShapeTextEditingService)[_0x25056c(0x39d)]),[_0x25aada,_0x1c26e8]=(0x0,react['useState'])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x353d0a=(0x0,react[_0x25056c(0x471)])(_0xb5f074=>{const _0x4e001a=_0x25056c;_0x1c26e8({'width':_0xb5f074['width'],'height':_0xb5f074['height'],'scaleX':_0xb5f074[_0x4e001a(0x43d)],'scaleY':_0xb5f074[_0x4e001a(0x12a)]});},[]);if(!(_0x58f400===null||_0x58f400===void 0x0?void 0x0:_0x58f400[_0x25056c(0x510)]))return null;return(0x0,react_jsx_runtime[_0x25056c(0x326)])(ShapePositionWrapper,{'onPositionUpdate':_0x353d0a,'children':(0x0,react_jsx_runtime['jsx'])(ShapeEditor,{'containerWidth':_0x25aada[_0x25056c(0x604)],'containerHeight':_0x25aada[_0x25056c(0x57c)],'scaleX':_0x25aada[_0x25056c(0x43d)],'scaleY':_0x25aada[_0x25056c(0x12a)]})});});ShapeTextEditorContainer[_0x101898(0x3c2)]='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core['Plugin']{constructor(_0x421ccd=defaultPluginConfig,_0x104f8d,_0x2a5608,_0x46e8e0,_0x377062){const _0x5d0231=_0x101898;super(),this[_0x5d0231(0x5db)]=_0x421ccd,this[_0x5d0231(0x493)]=_0x104f8d,this[_0x5d0231(0x36d)]=_0x2a5608,this['_configService']=_0x46e8e0,this['_renderManagerService']=_0x377062;const {..._0x4e1e24}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this['_config']);this[_0x5d0231(0x598)]['setConfig'](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x4e1e24),this[_0x5d0231(0x482)]();}[_0x101898(0x4df)](){const _0x22b084=_0x101898;(0x0,_univerjs_core['touchDependencies'])(this[_0x22b084(0x493)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x101898(0x533)](){const _0x1b4f82=_0x101898;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x1b4f82(0x5aa)](_0x471511=>this[_0x1b4f82(0x493)][_0x1b4f82(0x450)](_0x471511)),(0x0,_univerjs_core[_0x1b4f82(0x647)])(this[_0x1b4f82(0x493)],[[SheetShapeClipboardController]]),this['_renderManagerService'][_0x1b4f82(0x49d)](_univerjs_core[_0x1b4f82(0x1e3)][_0x1b4f82(0x42f)],[SheetBasicShapeConnectionPointController]),this[_0x1b4f82(0x28f)][_0x1b4f82(0x49d)](_univerjs_core['UniverInstanceType'][_0x1b4f82(0x42f)],[SheetShapeAdjustController]),this[_0x1b4f82(0x28f)]['registerRenderModule'](_univerjs_core[_0x1b4f82(0x1e3)][_0x1b4f82(0x42f)],[ImageClipAdjustController]),this[_0x1b4f82(0x28f)][_0x1b4f82(0x49d)](_univerjs_core[_0x1b4f82(0x1e3)][_0x1b4f82(0x42f)],[SheetShapeConnectorController]),this[_0x1b4f82(0x28f)][_0x1b4f82(0x49d)](_univerjs_core[_0x1b4f82(0x1e3)][_0x1b4f82(0x42f)],[ShapeTextEditingRenderController]);}[_0x101898(0x656)](){const _0x4ee3a6=_0x101898,_0x50900a=this[_0x4ee3a6(0x493)];_0x50900a[_0x4ee3a6(0x49b)](_univerjs_ui[_0x4ee3a6(0x1bb)])[_0x4ee3a6(0x3d8)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]['forEach'](_0x337a01=>_0x50900a[_0x4ee3a6(0x450)](_0x337a01)),(0x0,_univerjs_core[_0x4ee3a6(0x647)])(this[_0x4ee3a6(0x493)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x101898(0x482)](){const _0x40408f=_0x101898;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x40408f(0x5aa)](_0x5b9143=>this[_0x40408f(0x1ff)](this[_0x40408f(0x36d)][_0x40408f(0x3c3)](_0x5b9143)));}};function _0x284a(_0x2ff36e,_0x26244e){_0x2ff36e=_0x2ff36e-0x119;const _0x458e20=_0x458e();let _0x284a34=_0x458e20[_0x2ff36e];return _0x284a34;}_defineProperty(UniverSheetsShapeUIPlugin,_0x101898(0x489),_univerjs_core[_0x101898(0x1e3)][_0x101898(0x42f)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x101898(0x682),_0x101898(0x27a)),_defineProperty(UniverSheetsShapeUIPlugin,_0x101898(0x31b),name),_defineProperty(UniverSheetsShapeUIPlugin,'version',version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x101898(0x37e)])(_univerjs_sheets_drawing_ui['UniverSheetsDrawingUIPlugin'],_univerjs_pro_sheets_shape['UniverSheetsShapePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_core[_0x101898(0x201)])),__decorateParam(0x2,_univerjs_core[_0x101898(0x55c)]),__decorateParam(0x3,_univerjs_core[_0x101898(0x650)]),__decorateParam(0x4,_univerjs_engine_render[_0x101898(0x500)])],UniverSheetsShapeUIPlugin),exports[_0x101898(0x163)]=SetShapeTextFontSizeCommand,exports[_0x101898(0x5df)]=SetShapeTextFontSizeDecreaseCommand,exports['SetShapeTextFontSizeIncreaseCommand']=SetShapeTextFontSizeIncreaseCommand,exports[_0x101898(0x44b)]=SetShapeTextHorizontalAlignCommand,exports[_0x101898(0x672)]=SetShapeTextVerticalAlignCommand,exports[_0x101898(0x17a)]=ShapeDocAlignCommand,Object[_0x101898(0x66c)](exports,_0x101898(0x137),{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object[_0x101898(0x66c)](exports,_0x101898(0x4a3),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x101898(0x530)]=UpdateShapeDataCommand;