@univerjs-pro/sheets-shape-ui 0.22.0 → 0.22.1-insiders.20260515-225d350
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const _0x5a3cc9=_0x4507;(function(_0x50d664,_0xc4c74f){const _0x39c9d3=_0x4507,_0x15ea39=_0x50d664();while(!![]){try{const _0x15e2c0=-parseInt(_0x39c9d3(0x326))/0x1+parseInt(_0x39c9d3(0x49c))/0x2*(-parseInt(_0x39c9d3(0x3d0))/0x3)+-parseInt(_0x39c9d3(0x57d))/0x4*(parseInt(_0x39c9d3(0x41a))/0x5)+-parseInt(_0x39c9d3(0x48b))/0x6+-parseInt(_0x39c9d3(0x2fc))/0x7*(parseInt(_0x39c9d3(0x4c1))/0x8)+parseInt(_0x39c9d3(0x37d))/0x9*(parseInt(_0x39c9d3(0x51d))/0xa)+parseInt(_0x39c9d3(0x5f4))/0xb;if(_0x15e2c0===_0xc4c74f)break;else _0x15ea39['push'](_0x15ea39['shift']());}catch(_0x550a21){_0x15ea39['push'](_0x15ea39['shift']());}}}(_0x50ce,0xa50b1),Object['defineProperty'](exports,Symbol[_0x5a3cc9(0x5fa)],{'value':_0x5a3cc9(0x52f)}));var __create=Object[_0x5a3cc9(0x27a)],__defProp=Object['defineProperty'],__getOwnPropDesc=Object[_0x5a3cc9(0x495)],__getOwnPropNames=Object[_0x5a3cc9(0x3db)],__getProtoOf=Object[_0x5a3cc9(0x5e7)],__hasOwnProp=Object[_0x5a3cc9(0x2f4)][_0x5a3cc9(0x389)],__copyProps=(_0x3dd32b,_0x567b84,_0x5517bb,_0x21e0cc)=>{const _0x5a18ae=_0x5a3cc9;if(_0x567b84&&typeof _0x567b84===_0x5a18ae(0x5bd)||typeof _0x567b84===_0x5a18ae(0x616))for(var _0x281db4=__getOwnPropNames(_0x567b84),_0x8394b7=0x0,_0x28d3c0=_0x281db4['length'],_0x361719;_0x8394b7<_0x28d3c0;_0x8394b7++){_0x361719=_0x281db4[_0x8394b7],!__hasOwnProp[_0x5a18ae(0x575)](_0x3dd32b,_0x361719)&&_0x361719!==_0x5517bb&&__defProp(_0x3dd32b,_0x361719,{'get':(_0x1fdc6f=>_0x567b84[_0x1fdc6f])[_0x5a18ae(0x5e4)](null,_0x361719),'enumerable':!(_0x21e0cc=__getOwnPropDesc(_0x567b84,_0x361719))||_0x21e0cc[_0x5a18ae(0x443)]});}return _0x3dd32b;},__toESM=(_0x363b33,_0x6cda33,_0x5abba0)=>(_0x5abba0=_0x363b33!=null?__create(__getProtoOf(_0x363b33)):{},__copyProps(_0x6cda33||!_0x363b33||!_0x363b33[_0x5a3cc9(0x621)]?__defProp(_0x5abba0,'default',{'value':_0x363b33,'enumerable':!![]}):_0x5abba0,_0x363b33));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(_0x79b900){'@babel/helpers - typeof';const _0x152d7d=_0x5a3cc9;return _typeof=_0x152d7d(0x616)==typeof Symbol&&_0x152d7d(0x36d)==typeof Symbol[_0x152d7d(0x39e)]?function(_0x2a9c3f){return typeof _0x2a9c3f;}:function(_0x44636b){const _0x4c2879=_0x152d7d;return _0x44636b&&_0x4c2879(0x616)==typeof Symbol&&_0x44636b[_0x4c2879(0x5d8)]===Symbol&&_0x44636b!==Symbol[_0x4c2879(0x2f4)]?'symbol':typeof _0x44636b;},_typeof(_0x79b900);}function toPrimitive(_0x5da4a3,_0x5c1ada){const _0x3e58c0=_0x5a3cc9;if(_0x3e58c0(0x5bd)!=_typeof(_0x5da4a3)||!_0x5da4a3)return _0x5da4a3;var _0x4c9ada=_0x5da4a3[Symbol['toPrimitive']];if(void 0x0!==_0x4c9ada){var _0x5dcd27=_0x4c9ada[_0x3e58c0(0x575)](_0x5da4a3,_0x5c1ada||_0x3e58c0(0x27b));if(_0x3e58c0(0x5bd)!=_typeof(_0x5dcd27))return _0x5dcd27;throw new TypeError(_0x3e58c0(0x5aa));}return('string'===_0x5c1ada?String:Number)(_0x5da4a3);}function toPropertyKey(_0x12ee29){const _0x18ef0a=_0x5a3cc9;var _0xb1fc2b=toPrimitive(_0x12ee29,'string');return _0x18ef0a(0x36d)==_typeof(_0xb1fc2b)?_0xb1fc2b:_0xb1fc2b+'';}function _defineProperty(_0x46cff3,_0x238fa9,_0x391901){return(_0x238fa9=toPropertyKey(_0x238fa9))in _0x46cff3?Object['defineProperty'](_0x46cff3,_0x238fa9,{'value':_0x391901,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46cff3[_0x238fa9]=_0x391901,_0x46cff3;}var ShapeTextEditingService=class extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(..._0x2ecb75){const _0x169710=_0x5a3cc9;super(..._0x2ecb75),_defineProperty(this,_0x169710(0x316),new rxjs[(_0x169710(0x28d))](null)),_defineProperty(this,_0x169710(0x1b4),this[_0x169710(0x316)][_0x169710(0x665)]()),_defineProperty(this,_0x169710(0x521),new rxjs[(_0x169710(0x28d))](![])),_defineProperty(this,_0x169710(0x1e8),this['_onSavingEditorData$'][_0x169710(0x665)]());}[_0x5a3cc9(0x46b)](){const _0x3db23b=_0x5a3cc9;this[_0x3db23b(0x316)][_0x3db23b(0x627)](null),this['_editingParams$'][_0x3db23b(0x1c5)](),this['_onSavingEditorData$']['next'](![]),this[_0x3db23b(0x521)][_0x3db23b(0x1c5)](),super[_0x3db23b(0x46b)]();}[_0x5a3cc9(0x3cb)](_0x256dbd){const _0x43402a=_0x5a3cc9;this[_0x43402a(0x316)]['next'](_0x256dbd);if(_0x256dbd===null||_0x256dbd===void 0x0)this[_0x43402a(0x521)][_0x43402a(0x627)](![]);}[_0x5a3cc9(0x45d)](_0xb3829f){const _0x1cfa29=_0x5a3cc9;this['_onSavingEditorData$'][_0x1cfa29(0x627)](_0xb3829f);}[_0x5a3cc9(0x275)](){const _0x135b9f=_0x5a3cc9;return this[_0x135b9f(0x316)][_0x135b9f(0x536)]();}};function getShapeDataDiff(_0xa7a9c5,_0x4d1eb0){const _0x3d7d9b=_0x5a3cc9,_0xb0006e={};for(const _0x3c35fc of Object['keys'](_0x4d1eb0)){const _0x35e0b0=_0x4d1eb0[_0x3c35fc],_0x29c623=_0xa7a9c5[_0x3c35fc];if(_0x35e0b0===void 0x0)continue;if(_0x29c623===void 0x0){_0xb0006e[_0x3c35fc]=void 0x0;continue;}if(typeof _0x35e0b0==='object'&&_0x35e0b0!==null&&!Array[_0x3d7d9b(0x49f)](_0x35e0b0)&&typeof _0x29c623==='object'&&_0x29c623!==null&&!Array[_0x3d7d9b(0x49f)](_0x29c623))_0xb0006e[_0x3c35fc]=getShapeDataDiff(_0x29c623,_0x35e0b0);else _0xb0006e[_0x3c35fc]=_0x29c623;}return _0xb0006e;}const UpdateShapeDataCommand={'type':_univerjs_core['CommandType'][_0x5a3cc9(0x35a)],'id':_0x5a3cc9(0x5b4),'handler':(_0x2dc7a6,_0x5e983d)=>{const _0x11ec12=_0x5a3cc9,_0x3c85a8=_0x2dc7a6[_0x11ec12(0x62d)](_univerjs_pro_sheets_shape['SheetsShapeService']),{unitId:_0x1edbe6,subUnitId:_0x28f6b1,shapeType:_0x441647,shapeId:_0x171896,shapeData:_0x556c0a,oldShapeJSON:_0x3c0b82}=_0x5e983d;if(!_0x3c85a8['getShapeModel'](_0x1edbe6,_0x28f6b1,_0x171896))return![];const _0x1ca6b8=_0x2dc7a6[_0x11ec12(0x62d)](_univerjs_core[_0x11ec12(0x4bb)]),_0x1ba586=_0x2dc7a6[_0x11ec12(0x62d)](_univerjs_core[_0x11ec12(0x337)]),{oldShapeType:_0x55c874,oldShapeData:_0x54e807={}}=_0x3c0b82,_0x3f9de2=getShapeDataDiff(_0x54e807,_0x556c0a||{}),_0x46291a={'id':_univerjs_pro_sheets_shape[_0x11ec12(0x18b)]['id'],'params':{'unitId':_0x1edbe6,'subUnitId':_0x28f6b1,'shapeId':_0x171896,'shapeType':_0x441647,'shapeData':_0x556c0a}},_0x233373={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x1edbe6,'subUnitId':_0x28f6b1,'shapeId':_0x171896,'shapeType':_0x55c874,'shapeData':_0x3f9de2}};if(_0x1ca6b8[_0x11ec12(0x2bc)](_0x46291a['id'],_0x46291a[_0x11ec12(0x3c3)]))return _0x1ba586[_0x11ec12(0x55e)]({'unitID':_0x1edbe6,'undoMutations':[_0x233373],'redoMutations':[_0x46291a]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0x5a3cc9(0x5f7)][_0x5a3cc9(0x35a)],'id':'sheet.command.set-shape-text-horizontal-align','handler':async(_0x36b514,_0x5b9045)=>{const _0x5da558=_0x5a3cc9;var _0x214939;if(!(0x0,_univerjs_sheets[_0x5da558(0x5cc)])(_0x36b514[_0x5da558(0x62d)](_univerjs_core[_0x5da558(0x1bc)])))return![];const _0x750d13=_0x36b514['get'](_univerjs_sheets_drawing[_0x5da558(0x69d)])['getFocusDrawings']()[_0x5da558(0x1c0)](_0x495e34=>_0x495e34[_0x5da558(0x2a7)]===_univerjs_core[_0x5da558(0x4d6)][_0x5da558(0x224)]);if(_0x750d13[_0x5da558(0x38e)]!==0x1)return![];const _0x473b91=_0x36b514[_0x5da558(0x62d)](ShapeTextEditingService)[_0x5da558(0x275)](),_0x41212c=(_0x473b91===null||_0x473b91===void 0x0?void 0x0:_0x473b91[_0x5da558(0x4c0)])||_0x750d13[0x0][_0x5da558(0x4c0)],_0x2511f2=(_0x473b91===null||_0x473b91===void 0x0?void 0x0:_0x473b91[_0x5da558(0x2c2)])||_0x750d13[0x0][_0x5da558(0x2c2)],_0x1248a4=(_0x473b91===null||_0x473b91===void 0x0?void 0x0:_0x473b91[_0x5da558(0x525)])||_0x750d13[0x0][_0x5da558(0x3bf)],_0x4bfce8=_0x36b514[_0x5da558(0x62d)](_univerjs_pro_sheets_shape['SheetsShapeService'])['getShapeModel'](_0x41212c,_0x2511f2,_0x1248a4);if(!_0x4bfce8)return![];const _0x55f78e=_0x4bfce8['getShapeTextData']();if(!_0x55f78e||!('dataModel'in _0x55f78e))return![];const _0x2ac3cf=_0x36b514[_0x5da558(0x62d)](_univerjs_core[_0x5da558(0x4bb)]),{value:_0x3f5d88}=_0x5b9045,_0x208399=_0x4bfce8[_0x5da558(0x373)](),_0x4c6a15=_0x4bfce8[_0x5da558(0x166)](),_0x3ef4d2={..._0x55f78e[_0x5da558(0x2c6)],'ha':_0x3f5d88};return await _0x2ac3cf[_0x5da558(0x343)](UpdateShapeDataCommand['id'],{'unitId':_0x41212c,'subUnitId':_0x2511f2,'shapeId':_0x1248a4,'shapeType':_0x208399,'shapeData':{'shapeText':{'isHorizontal':(_0x214939=_0x55f78e['isHorizontal'])!==null&&_0x214939!==void 0x0?_0x214939:!![],'dataModel':_0x3ef4d2}},'oldShapeJSON':{'oldShapeType':_0x208399,'oldShapeData':_0x4c6a15}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x5a3cc9(0x5f7)][_0x5a3cc9(0x35a)],'id':_0x5a3cc9(0x24e),'handler':async(_0x2bb1bd,_0x1339d2)=>{const _0x459e9f=_0x5a3cc9;var _0x3195b0;if(!_0x1339d2)return![];const {value:_0x534d6c}=_0x1339d2,_0x119529=_0x2bb1bd['get'](_univerjs_core[_0x459e9f(0x4bb)]),_0x445b1b=_0x2bb1bd[_0x459e9f(0x62d)](ShapeTextEditingService),_0x3185fe=_0x2bb1bd['get'](_univerjs_pro_sheets_shape['SheetsShapeService']),_0xed0351=_0x2bb1bd[_0x459e9f(0x62d)](_univerjs_engine_render['IRenderManagerService']),_0x57d045=_0x445b1b[_0x459e9f(0x275)]();if(!_0x57d045)return![];const {unitId:_0x41a8a6,subUnitId:_0x6087de,shapeId:_0x316647}=_0x57d045,_0x5193a7=_0x3185fe['getShapeModel'](_0x41a8a6,_0x6087de,_0x316647);if(!_0x5193a7)return![];const _0x47eb98=_0x5193a7[_0x459e9f(0x372)]();if(!_0x47eb98||!(_0x459e9f(0x2c6)in _0x47eb98))return![];const _0x98b70e=_0x47eb98[_0x459e9f(0x2c6)];if(!_0x98b70e)return![];const _0x34ab7e={..._0x98b70e,'fs':_0x534d6c},_0x226cbd=await _0x119529[_0x459e9f(0x343)](UpdateShapeDataCommand['id'],{'unitId':_0x41a8a6,'subUnitId':_0x6087de,'shapeId':_0x316647,'shapeData':{'shapeText':{'isHorizontal':(_0x3195b0=_0x47eb98['isHorizontal'])!==null&&_0x3195b0!==void 0x0?_0x3195b0:!![],'dataModel':_0x34ab7e}}});if(_0x226cbd){const _0x2945ee=_0xed0351['getRenderById'](_0x41a8a6);if(_0x2945ee===null||_0x2945ee===void 0x0?void 0x0:_0x2945ee['scene']){const _0x123641=(0x0,_univerjs_drawing[_0x459e9f(0x550)])({'unitId':_0x41a8a6,'subUnitId':_0x6087de,'drawingId':_0x316647}),_0x3c1417=_0x2945ee[_0x459e9f(0x1ea)][_0x459e9f(0x479)](_0x123641);if(_0x3c1417)_0x3c1417[_0x459e9f(0x2d3)](!![]);}}return _0x226cbd;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x5a3cc9(0x5f7)][_0x5a3cc9(0x35a)],'id':'sheet.command.set-shape-text-font-size-increase','handler':async _0x2d2ffe=>{const _0x36889f=_0x5a3cc9;var _0x345100;const _0x292ad6=_0x2d2ffe[_0x36889f(0x62d)](ShapeTextEditingService),_0x40e21f=_0x2d2ffe[_0x36889f(0x62d)](_univerjs_pro_sheets_shape[_0x36889f(0x142)]),_0xf7c271=_0x2d2ffe[_0x36889f(0x62d)](_univerjs_core[_0x36889f(0x4bb)]),_0x522287=_0x292ad6['getEditing']();if(!_0x522287)return![];const {unitId:_0x46aaed,subUnitId:_0x540b65,shapeId:_0x3be9c2}=_0x522287,_0x3c2a7e=_0x40e21f[_0x36889f(0x2ea)](_0x46aaed,_0x540b65,_0x3be9c2);if(!_0x3c2a7e)return![];const _0x37bbd9=_0x3c2a7e[_0x36889f(0x372)]();if(!_0x37bbd9||!('dataModel'in _0x37bbd9))return![];const _0xb75fb3=_0x37bbd9[_0x36889f(0x2c6)],_0x5ba0d1=(_0x345100=_0xb75fb3===null||_0xb75fb3===void 0x0?void 0x0:_0xb75fb3['fs'])!==null&&_0x345100!==void 0x0?_0x345100:0xe,_0xad1a5=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x22b751=_0x5ba0d1;const _0x2e0aa1=_0xad1a5[_0x36889f(0x514)](_0x5ba0d1);if(_0x2e0aa1!==-0x1&&_0x2e0aa1<_0xad1a5[_0x36889f(0x38e)]-0x1)_0x22b751=_0xad1a5[_0x2e0aa1+0x1];else{if(_0x2e0aa1===-0x1)_0x22b751=Math[_0x36889f(0x47b)](_0x5ba0d1)+0x1;}return _0xf7c271[_0x36889f(0x343)](SetShapeTextFontSizeCommand['id'],{'value':_0x22b751});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x5a3cc9(0x4b4),'handler':async _0x5f4216=>{const _0x3a03f7=_0x5a3cc9;var _0x3f3e1d;const _0x47c4b1=_0x5f4216[_0x3a03f7(0x62d)](ShapeTextEditingService),_0xf14ac7=_0x5f4216[_0x3a03f7(0x62d)](_univerjs_pro_sheets_shape[_0x3a03f7(0x142)]),_0x38a79=_0x5f4216[_0x3a03f7(0x62d)](_univerjs_core[_0x3a03f7(0x4bb)]),_0x33e405=_0x47c4b1[_0x3a03f7(0x275)]();if(!_0x33e405)return![];const {unitId:_0x1fe026,subUnitId:_0x120016,shapeId:_0x1c8b1a}=_0x33e405,_0x110b59=_0xf14ac7[_0x3a03f7(0x2ea)](_0x1fe026,_0x120016,_0x1c8b1a);if(!_0x110b59)return![];const _0x27bf5e=_0x110b59['getShapeTextData']();if(!_0x27bf5e||!(_0x3a03f7(0x2c6)in _0x27bf5e))return![];const _0x5c4d74=_0x27bf5e[_0x3a03f7(0x2c6)],_0x39a947=(_0x3f3e1d=_0x5c4d74===null||_0x5c4d74===void 0x0?void 0x0:_0x5c4d74['fs'])!==null&&_0x3f3e1d!==void 0x0?_0x3f3e1d:0xe,_0x3ea2e8=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x3684e8=_0x39a947;const _0x5d6cfb=_0x3ea2e8[_0x3a03f7(0x514)](_0x39a947);if(_0x5d6cfb!==-0x1&&_0x5d6cfb>0x0)_0x3684e8=_0x3ea2e8[_0x5d6cfb-0x1];else{if(_0x5d6cfb===-0x1)_0x3684e8=Math[_0x3a03f7(0x47b)](_0x39a947)-0x1;}if(_0x3684e8<0x1)_0x3684e8=0x1;return _0x38a79[_0x3a03f7(0x343)](SetShapeTextFontSizeCommand['id'],{'value':_0x3684e8});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x5a3cc9(0x5f7)][_0x5a3cc9(0x35a)],'id':'sheet.command.set-shape-text-vertical-align','handler':async(_0x5bc4ee,_0x117f8f)=>{const _0xaaa899=_0x5a3cc9;var _0x4304db;if(!(0x0,_univerjs_sheets[_0xaaa899(0x5cc)])(_0x5bc4ee['get'](_univerjs_core[_0xaaa899(0x1bc)])))return![];const _0x3e2fd7=_0x5bc4ee['get'](_univerjs_sheets_drawing[_0xaaa899(0x69d)])[_0xaaa899(0x5f5)]()[_0xaaa899(0x1c0)](_0x1c87ab=>_0x1c87ab[_0xaaa899(0x2a7)]===_univerjs_core[_0xaaa899(0x4d6)][_0xaaa899(0x224)]);if(_0x3e2fd7['length']!==0x1)return![];const _0x2f045d=_0x5bc4ee[_0xaaa899(0x62d)](ShapeTextEditingService)['getEditing'](),_0xe80e1a=(_0x2f045d===null||_0x2f045d===void 0x0?void 0x0:_0x2f045d[_0xaaa899(0x4c0)])||_0x3e2fd7[0x0][_0xaaa899(0x4c0)],_0x1409d9=(_0x2f045d===null||_0x2f045d===void 0x0?void 0x0:_0x2f045d[_0xaaa899(0x2c2)])||_0x3e2fd7[0x0]['subUnitId'],_0x3cb205=(_0x2f045d===null||_0x2f045d===void 0x0?void 0x0:_0x2f045d[_0xaaa899(0x525)])||_0x3e2fd7[0x0][_0xaaa899(0x3bf)],_0x14116c=_0x5bc4ee[_0xaaa899(0x62d)](_univerjs_pro_sheets_shape[_0xaaa899(0x142)])[_0xaaa899(0x2ea)](_0xe80e1a,_0x1409d9,_0x3cb205);if(!_0x14116c)return![];const _0x2f37f9=_0x14116c[_0xaaa899(0x372)]();if(!_0x2f37f9||!(_0xaaa899(0x2c6)in _0x2f37f9))return![];const _0x2f468c=_0x5bc4ee[_0xaaa899(0x62d)](_univerjs_core['ICommandService']),{value:_0x916103}=_0x117f8f,_0x3b61a7=_0x14116c[_0xaaa899(0x373)](),_0x831a4b=_0x14116c['getShapeData'](),_0x49efdc={..._0x2f37f9[_0xaaa899(0x2c6)],'va':_0x916103};return await _0x2f468c[_0xaaa899(0x343)](UpdateShapeDataCommand['id'],{'unitId':_0xe80e1a,'subUnitId':_0x1409d9,'shapeId':_0x3cb205,'shapeType':_0x3b61a7,'shapeData':{'shapeText':{'isHorizontal':(_0x4304db=_0x2f37f9[_0xaaa899(0x1c4)])!==null&&_0x4304db!==void 0x0?_0x4304db:!![],'dataModel':_0x49efdc}},'oldShapeJSON':{'oldShapeType':_0x3b61a7,'oldShapeData':_0x831a4b}});}},ShapeDocAlignCommand={'type':_univerjs_core[_0x5a3cc9(0x5f7)]['COMMAND'],'id':_0x5a3cc9(0x28e),'handler':(_0x1033ef,_0x44c037)=>{if(!_0x44c037)return![];const {value:_0x2e0112}=_0x44c037;return _0x1033ef['get'](_univerjs_core['ICommandService'])['syncExecuteCommand'](_univerjs_docs_ui['AlignOperationCommand']['id'],{'alignType':_0x2e0112});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType'][_0x5a3cc9(0x3b7)],'id':_0x5a3cc9(0x30a),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x5a3cc9(0x5f7)]['OPERATION'],'id':_0x5a3cc9(0x628),'handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY='sheet.shape.edit.panel',DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x5a3cc9(0x3d2)])(_0x5a3cc9(0x310)),ShapeTextEditorContainer$1=_0x5a3cc9(0x190);function updateShapeData(_0x26f09a,_0x56fb7a,_0xd0180a,_0x1be887,_0xba35ed,_0x3713f0){const _0x18676b=_0x5a3cc9,_0x319f4a={'unitId':_0x56fb7a,'subUnitId':_0xd0180a,'shapeId':_0x1be887,'shapeData':_0x3713f0,'oldShapeJSON':_0xba35ed};return _0x26f09a[_0x18676b(0x343)](UpdateShapeDataCommand['id'],_0x319f4a);}function updateLineShapeData(_0x4ee65c,_0x3fe7f3,_0x561672,_0x109368,_0x463d05,_0x3f533a){const _0x334b6c=_0x5a3cc9,_0x23fd29={'unitId':_0x3fe7f3,'subUnitId':_0x561672,'shapeId':_0x109368,'shapeData':_0x3f533a,'oldShapeJSON':_0x463d05};return _0x4ee65c[_0x334b6c(0x343)](UpdateShapeDataCommand['id'],_0x23fd29);}function prepareShapeTextDocumentData(_0x423086,_0x28cf6b){const _0x1d6492=_0x5a3cc9;var _0x2c49e0;const {isHorizontal:_0x5129e3,textRect:_0x30cbf3,verticalAlign:_0x377b6a}=_0x28cf6b,_0x253605=_0x5129e3?_0x30cbf3[_0x1d6492(0x47c)]:_0x30cbf3[_0x1d6492(0x36a)],_0x56febc=_univerjs_core['Tools'][_0x1d6492(0x2cc)](_0x423086),_0x2afdd6=(_0x2c49e0=_0x56febc[_0x1d6492(0x271)])!==null&&_0x2c49e0!==void 0x0?_0x2c49e0:{},_0x34460e={..._0x2afdd6['renderConfig'],'centerAngle':_0x5129e3?0x0:_univerjs_engine_render[_0x1d6492(0x435)],'vertexAngle':_0x5129e3?0x0:_univerjs_engine_render[_0x1d6492(0x435)],'wrapStrategy':_univerjs_core[_0x1d6492(0x67d)][_0x1d6492(0x44e)]};if(_0x377b6a!==void 0x0)_0x34460e[_0x1d6492(0x540)]=_0x377b6a;if(_0x28cf6b[_0x1d6492(0x69c)]!==void 0x0){var _0x539cdf;_0x34460e[_0x1d6492(0x69c)]=_0x28cf6b[_0x1d6492(0x69c)];const _0x510c0d=(_0x539cdf=_0x56febc[_0x1d6492(0x53b)])===null||_0x539cdf===void 0x0?void 0x0:_0x539cdf[_0x1d6492(0x4e2)];if(_0x510c0d)for(const _0x9f1364 of _0x510c0d){if(!_0x9f1364['paragraphStyle'])_0x9f1364[_0x1d6492(0x365)]={};_0x9f1364['paragraphStyle'][_0x1d6492(0x69c)]=_0x28cf6b[_0x1d6492(0x69c)];}}return _0x56febc[_0x1d6492(0x271)]={..._0x2afdd6,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x253605,'height':Number[_0x1d6492(0x299)]},'renderConfig':_0x34460e},_0x56febc;}function stripShapeTextDocumentLayout(_0x12515f){const _0x42e06a=_0x5a3cc9;var _0x18727e;const _0x2d5f96=_univerjs_core['Tools'][_0x42e06a(0x2cc)](_0x12515f),_0x23719e=(_0x18727e=_0x2d5f96[_0x42e06a(0x271)])!==null&&_0x18727e!==void 0x0?_0x18727e:{},_0x505e14={..._0x23719e[_0x42e06a(0x2df)]};return delete _0x505e14[_0x42e06a(0x46f)],delete _0x505e14[_0x42e06a(0x657)],delete _0x505e14[_0x42e06a(0x540)],delete _0x505e14[_0x42e06a(0x576)],_0x2d5f96[_0x42e06a(0x271)]={..._0x23719e,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number['POSITIVE_INFINITY'],'height':Number[_0x42e06a(0x299)]},'renderConfig':Object['keys'](_0x505e14)[_0x42e06a(0x38e)]>0x0?_0x505e14:void 0x0},_0x2d5f96;}var DrawingShape=class extends _univerjs_engine_render[_0x5a3cc9(0x522)]{constructor(_0x31e83f,_0x5bb638){const _0x5d27e6=_0x5a3cc9;super(_0x31e83f,_0x5bb638),_defineProperty(this,_0x5d27e6(0x488),void 0x0),_defineProperty(this,_0x5d27e6(0x32b),!![]),_defineProperty(this,_0x5d27e6(0x5a4),_univerjs_core[_0x5d27e6(0x4d6)][_0x5d27e6(0x224)]),_defineProperty(this,_0x5d27e6(0x577),!![]),this['_props']={..._0x5bb638},this[_0x5d27e6(0x1dd)]();}[_0x5a3cc9(0x1dd)](){this['onTransformChange$']['subscribeEvent'](_0xcc49e6=>{const _0x3e4624=_0x4507;this[_0x3e4624(0x30c)](_0xcc49e6);});}[_0x5a3cc9(0x3c2)](_0x41bfe9){const _0x1b5c09=_0x5a3cc9;this[_0x1b5c09(0x488)][_0x1b5c09(0x262)]=_0x41bfe9;}[_0x5a3cc9(0x3cb)](_0x1805fb){const _0x315382=_0x5a3cc9;this['_props'][_0x315382(0x14c)]=_0x1805fb,this[_0x315382(0x2d3)](!![]);}get[_0x5a3cc9(0x4c0)](){const _0x242bdb=_0x5a3cc9;return this[_0x242bdb(0x488)][_0x242bdb(0x4c0)];}get['subUnitId'](){const _0x63d528=_0x5a3cc9;return this[_0x63d528(0x488)][_0x63d528(0x2c2)];}['_updateSrcRectByTransform'](_0x43dfc5){const _0x571a32=_0x5a3cc9;if(this['_props'][_0x571a32(0x603)]==null||!this[_0x571a32(0x32b)])return;const {width:_0x13f08d,height:_0x29f745}=this,{width:_0x44c7ea=0x0,height:_0x28feae=0x0}=_0x43dfc5[_0x571a32(0x233)],{left:_0xd44e47=0x0,top:_0x1d5eeb=0x0,right:_0x530f2a=0x0,bottom:_0xf1c54b=0x0}=this[_0x571a32(0x488)][_0x571a32(0x603)];let _0xe64632=_0xd44e47,_0x3f97ae=_0x1d5eeb,_0x22c9da=_0x530f2a,_0x1e3925=_0xf1c54b,_0x4d28e9=![];if(_0x44c7ea!==0x0&&_0x44c7ea!==_0x13f08d){const _0x2eb589=_0xd44e47/_0x44c7ea,_0x53a339=_0x530f2a/_0x44c7ea;_0xe64632=_0x13f08d*_0x2eb589,_0x22c9da=_0x13f08d*_0x53a339,_0x4d28e9=!![];}if(_0x28feae!==0x0&&_0x28feae!==_0x29f745){const _0x4cbe93=_0x1d5eeb/_0x28feae,_0x58135a=_0xf1c54b/_0x28feae;_0x3f97ae=_0x29f745*_0x4cbe93,_0x1e3925=_0x29f745*_0x58135a,_0x4d28e9=!![];}if(_0x4d28e9)this[_0x571a32(0x593)]({'left':_0xe64632,'top':_0x3f97ae,'right':_0x22c9da,'bottom':_0x1e3925});}[_0x5a3cc9(0x593)](_0x293381){const _0x245082=_0x5a3cc9;this[_0x245082(0x488)][_0x245082(0x603)]=_0x293381,this[_0x245082(0x2d3)](!![]);}[_0x5a3cc9(0x231)](_0x2338a1){const _0x23b4ba=_0x5a3cc9;this[_0x23b4ba(0x488)]['image']=_0x2338a1,this[_0x23b4ba(0x2d3)](!![]);}set[_0x5a3cc9(0x4db)](_0x1973ad){const _0x4b13c1=_0x5a3cc9;this[_0x4b13c1(0x453)]=_0x1973ad;}get['transform'](){const _0x370feb=_0x5a3cc9;if(!this['_transform'])this['_setTransForm']();const _0x400434=this[_0x370feb(0x453)]['clone']();return this[_0x370feb(0x3ad)](_0x400434);}get[_0x5a3cc9(0x225)](){const _0x56eb6e=_0x5a3cc9;return this[_0x56eb6e(0x488)][_0x56eb6e(0x225)];}get[_0x5a3cc9(0x525)](){const _0x405e10=_0x5a3cc9;return this[_0x405e10(0x488)][_0x405e10(0x525)];}get[_0x5a3cc9(0x317)](){const _0x16a2e8=_0x5a3cc9;return _univerjs_engine_render[_0x16a2e8(0x222)][_0x16a2e8(0x5fb)];}[_0x5a3cc9(0x49e)](_0x439a7d,_0x38d59a,_0x4354b9,_0x4771b4){const _0x5e5e1d=_0x5a3cc9,_0x54fc2f=this[_0x5e5e1d(0x488)]['shapeModel'];if(!_0x54fc2f||!_0x38d59a)return;const _0x16db20=_0x4354b9!==null&&_0x4354b9!==void 0x0?_0x4354b9:this['width'],_0x1be7d1=_0x4771b4!==null&&_0x4771b4!==void 0x0?_0x4771b4:this[_0x5e5e1d(0x36a)],_0x111ffd={'shapeType':_0x54fc2f[_0x5e5e1d(0x373)](),'width':_0x16db20,'height':_0x1be7d1},_0x977f52={'renderMode':_univerjs_pro_engine_shape[_0x5e5e1d(0x46d)][_0x5e5e1d(0x192)],'oKey':this[_0x5e5e1d(0x5a1)],'image':this[_0x5e5e1d(0x488)][_0x5e5e1d(0x544)],'angle':this['angle']};_0x54fc2f[_0x5e5e1d(0x4d3)](_0x111ffd),_0x439a7d[_0x5e5e1d(0x406)]();const _0x55ee09={'top':0x0,'left':0x0,'width':_0x16db20,'height':_0x1be7d1};_0x54fc2f[_0x5e5e1d(0x695)](_0x439a7d,_0x55ee09,_0x977f52),_0x439a7d[_0x5e5e1d(0x3f3)]();const _0x5415ae=_0x54fc2f['getShapeTextData'](),_0x116386=_0x54fc2f[_0x5e5e1d(0x290)](_0x55ee09),_0x2ab61c=_0x54fc2f[_0x5e5e1d(0x3a5)]();if(_0x5415ae&&_0x116386&&!_0x2ab61c){_0x439a7d[_0x5e5e1d(0x406)]();if(this[_0x5e5e1d(0x5cd)]()[_0x5e5e1d(0x1cd)])_0x439a7d[_0x5e5e1d(0x2fd)](-0x1,0x1);const _0x16363c=_0x16db20/0x2,_0x3c006e=_0x1be7d1/0x2;_0x439a7d[_0x5e5e1d(0x134)](-_0x16363c,-_0x3c006e),_0x439a7d[_0x5e5e1d(0x5e5)](),this[_0x5e5e1d(0x22d)](_0x439a7d,_0x5415ae,_0x116386),_0x439a7d[_0x5e5e1d(0x3f3)]();}}['getDrawingPoints'](_0x436cfa){}[_0x5a3cc9(0x22d)](_0x4b69a1,_0x22e6df,_0x469560){const _0x4cfba7=_0x5a3cc9;if(this[_0x4cfba7(0x488)][_0x4cfba7(0x14c)])return;if(_0x4cfba7(0x604)in _0x22e6df&&_0x22e6df[_0x4cfba7(0x604)]===![])this[_0x4cfba7(0x21d)](_0x4b69a1,_0x22e6df,_0x469560);else this[_0x4cfba7(0x210)](_0x4b69a1,_0x22e6df,_0x469560);}[_0x5a3cc9(0x21d)](_0x50458b,_0x63712d,_0x4c9f2b){}['_drawRichText'](_0x4d29be,_0x4b619e,_0x4f9cf7){const _0x100cf0=_0x5a3cc9;var _0x2b3b23,_0x2bf52d;const _0x563e84=this[_0x100cf0(0x488)][_0x100cf0(0x3c8)];if(!_0x4b619e[_0x100cf0(0x2c6)]||!_0x563e84){if(!_0x563e84)console[_0x100cf0(0x24f)](_0x100cf0(0x157));return;}const _0x5a8833=_0x4b619e['dataModel'],_0x170a61=_0x5a8833[_0x100cf0(0x506)],_0x3b4cf6=(_0x2b3b23=_0x5a8833['va'])!==null&&_0x2b3b23!==void 0x0?_0x2b3b23:_univerjs_core[_0x100cf0(0x58d)][_0x100cf0(0x29e)],_0x4a25a8=(_0x2bf52d=_0x5a8833['ha'])!==null&&_0x2bf52d!==void 0x0?_0x2bf52d:_univerjs_core[_0x100cf0(0x3f9)][_0x100cf0(0x1b0)];if(!_0x170a61)return;const _0x498397=_0x4b619e[_0x100cf0(0x1c4)],_0x46d203=prepareShapeTextDocumentData(_0x170a61,{'isHorizontal':_0x498397!==![],'textRect':_0x4f9cf7,'verticalAlign':_0x3b4cf6,'horizontalAlign':_0x4a25a8}),_0x5135d2=new _univerjs_core['DocumentDataModel'](_0x46d203),_0x4b7cf8=new _univerjs_engine_render['DocumentViewModel'](_0x5135d2),_0x285929=_univerjs_engine_render[_0x100cf0(0x4e4)][_0x100cf0(0x27a)](_0x4b7cf8,_0x563e84);console[_0x100cf0(0x24f)](_0x46d203,_0x5135d2,_0x285929),_0x285929['calculate']();const _0x581a43=new _univerjs_engine_render[(_0x100cf0(0x659))](_0x100cf0(0x211)+this[_0x100cf0(0x5a1)],_0x285929,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x581a43['resize'](_0x4f9cf7[_0x100cf0(0x47c)],_0x4f9cf7['height']),_0x4d29be['save'](),_0x4d29be[_0x100cf0(0x38d)](_0x4f9cf7[_0x100cf0(0x19d)],_0x4f9cf7[_0x100cf0(0x3e5)]),_0x4d29be['beginPath'](),_0x4d29be[_0x100cf0(0x1df)](0x0,0x0,_0x4f9cf7['width'],_0x4f9cf7['height']),_0x4d29be[_0x100cf0(0x4f3)](),_0x581a43[_0x100cf0(0x3c6)](_0x4d29be),_0x4d29be[_0x100cf0(0x3f3)](),_0x581a43[_0x100cf0(0x46b)](),_0x285929[_0x100cf0(0x46b)](),_0x4b7cf8[_0x100cf0(0x46b)](),_0x5135d2[_0x100cf0(0x46b)]();}['render'](_0xba0af4,_0xdd9860,_0x13711b=![]){const _0x7d877a=_0x5a3cc9;if(!this[_0x7d877a(0x675)])return this[_0x7d877a(0x2d3)](![]),this;let {width:_0x2a0ad0,height:_0xe50c42,left:_0x5a386a,top:_0x2952eb}=this;const _0xcadb8b=this[_0x7d877a(0x329)]();_0x2a0ad0=_0xcadb8b['width'],_0xe50c42=_0xcadb8b[_0x7d877a(0x36a)],_0x5a386a=_0xcadb8b[_0x7d877a(0x19d)],_0x2952eb=_0xcadb8b[_0x7d877a(0x3e5)];if(this[_0x7d877a(0x16f)](_0xdd9860)){const {top:_0x297538,left:_0x2ef8b3,bottom:_0x3a7a87,right:_0x42f998}=_0xdd9860[_0x7d877a(0x417)];if(_0x2a0ad0+this['strokeWidth']+_0x5a386a<_0x2ef8b3||_0x42f998<_0x5a386a||_0xe50c42+this[_0x7d877a(0x238)]+_0x2952eb<_0x297538||_0x3a7a87<_0x2952eb)return this;}const _0x4fe138=_0x5a386a+_0x2a0ad0/0x2,_0x283e07=_0x2952eb+_0xe50c42/0x2;let _0x4b22dc=this[_0x7d877a(0x4db)][_0x7d877a(0x4cb)]();if(this[_0x7d877a(0x488)][_0x7d877a(0x14c)]){const _0x2a3391=this[_0x7d877a(0x5cd)](),_0x5edcf8=new _univerjs_engine_render[(_0x7d877a(0x605))]();_0x5edcf8[_0x7d877a(0x2e8)]({..._0x2a3391}),_0x4b22dc=_0x5edcf8[_0x7d877a(0x4cb)]();}_0xba0af4[_0x7d877a(0x406)]();if(this['_props'][_0x7d877a(0x225)][_0x7d877a(0x13d)]===!![]){}else _0xba0af4[_0x7d877a(0x4db)](_0x4b22dc[0x0],_0x4b22dc[0x1],_0x4b22dc[0x2],_0x4b22dc[0x3],_0x4fe138,_0x283e07);return this[_0x7d877a(0x49e)](_0xba0af4,_0xdd9860,_0x2a0ad0,_0xe50c42),_0xba0af4[_0x7d877a(0x3f3)](),this[_0x7d877a(0x2d3)](![]),this;}['getInverseCoord'](_0x56447d){const _0x36b722=_0x5a3cc9,{left:_0x47ffb9,top:_0x418cb1,width:_0x209085,height:_0x1d0fc4}=this[_0x36b722(0x329)](),_0x4b0494=this['transform'][_0x36b722(0x4cb)](),_0x2d88e5=_0x47ffb9+_0x209085/0x2,_0x4835ee=_0x418cb1+_0x1d0fc4/0x2,_0x53b03d=new _univerjs_engine_render[(_0x36b722(0x605))]([_0x4b0494[0x0],_0x4b0494[0x1],_0x4b0494[0x2],_0x4b0494[0x3],_0x2d88e5,_0x4835ee]),_0x483d1f=this[_0x36b722(0x5ca)]();return(this[_0x36b722(0x600)]&&(_0x483d1f===null||_0x483d1f===void 0x0?void 0x0:_0x483d1f[_0x36b722(0x317)])===_univerjs_engine_render[_0x36b722(0x222)]['GROUP']?_0x483d1f[_0x36b722(0x510)]['multiply'](_0x53b03d):_0x53b03d)[_0x36b722(0x320)]()['applyPoint'](_0x56447d);}['isHit'](_0x3e269d){const _0x315955=_0x5a3cc9,{left:_0x1e9026,top:_0x2c93d4,width:_0x280b0c,height:_0x5bccac}=this['getRealBound'](),_0x1aad12=_0x1e9026+_0x280b0c/0x2,_0xf5083f=_0x2c93d4+_0x5bccac/0x2,_0x857e22=this[_0x315955(0x4db)][_0x315955(0x4cb)](),_0x4956e2=new _univerjs_engine_render[(_0x315955(0x605))]([_0x857e22[0x0],_0x857e22[0x1],_0x857e22[0x2],_0x857e22[0x3],_0x1aad12,_0xf5083f]),_0x2db4e7=this[_0x315955(0x5ca)](),_0x1bb42e=(this[_0x315955(0x600)]&&(_0x2db4e7===null||_0x2db4e7===void 0x0?void 0x0:_0x2db4e7[_0x315955(0x317)])===_univerjs_engine_render[_0x315955(0x222)][_0x315955(0x39a)]?_0x2db4e7[_0x315955(0x510)]['multiply'](_0x4956e2):_0x4956e2)[_0x315955(0x320)]()['applyPoint'](_0x3e269d),_0x739a=_0x280b0c/0x2,_0x2c29db=_0x5bccac/0x2,_0x472d8b=this[_0x315955(0x488)][_0x315955(0x225)];if(_0x472d8b&&_0x472d8b['isLineShape']())return _0x472d8b[_0x315955(0x552)](_0x1bb42e['x'],_0x1bb42e['y'],_0x280b0c,_0x5bccac);if(_0x1bb42e['x']>=-_0x739a-this[_0x315955(0x238)]/0x2&&_0x1bb42e['x']<=_0x739a+this['strokeWidth']/0x2&&_0x1bb42e['y']>=-_0x2c29db-this[_0x315955(0x238)]/0x2&&_0x1bb42e['y']<=_0x2c29db+this[_0x315955(0x238)]/0x2)return!![];return![];}['dispose'](){const _0x27cde1=_0x5a3cc9;this[_0x27cde1(0x488)][_0x27cde1(0x225)]=null,super[_0x27cde1(0x46b)]();}};function __decorateParam(_0x299fbf,_0x1d75c4){return function(_0x423a47,_0x4983b9){_0x1d75c4(_0x423a47,_0x4983b9,_0x299fbf);};}function __decorate(_0x426b45,_0x1e30c1,_0x1225f1,_0xe81fed){const _0x3e8209=_0x5a3cc9;var _0x1a07b8=arguments['length'],_0x50fec2=_0x1a07b8<0x3?_0x1e30c1:_0xe81fed===null?_0xe81fed=Object[_0x3e8209(0x495)](_0x1e30c1,_0x1225f1):_0xe81fed,_0x1e29d2;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3e8209(0x616))_0x50fec2=Reflect[_0x3e8209(0x3ac)](_0x426b45,_0x1e30c1,_0x1225f1,_0xe81fed);else{for(var _0x8211bd=_0x426b45['length']-0x1;_0x8211bd>=0x0;_0x8211bd--)if(_0x1e29d2=_0x426b45[_0x8211bd])_0x50fec2=(_0x1a07b8<0x3?_0x1e29d2(_0x50fec2):_0x1a07b8>0x3?_0x1e29d2(_0x1e30c1,_0x1225f1,_0x50fec2):_0x1e29d2(_0x1e30c1,_0x1225f1))||_0x50fec2;}return _0x1a07b8>0x3&&_0x50fec2&&Object[_0x3e8209(0x56c)](_0x1e30c1,_0x1225f1,_0x50fec2),_0x50fec2;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x572ec5,_0x181c91,_0x2cccd4,_0x161c04,_0x5f1c30){const _0x222ebc=_0x5a3cc9;super(),this[_0x222ebc(0x2f7)]=_0x572ec5,this[_0x222ebc(0x526)]=_0x181c91,this['_localeService']=_0x2cccd4,this[_0x222ebc(0x5c5)]=_0x161c04,this['_urlImageService']=_0x5f1c30;}['renderDrawingShape'](_0x32f229,_0x4f9f50){const _0x343d32=_0x5a3cc9,{transform:_0xc9b717,drawingType:_0x60dbae,srcRect:_0x10533a,prstGeom:_0x119b0e,groupId:_0x23b773,unitId:_0x39ced7,subUnitId:_0xb1fb2,drawingId:_0x3dd1b7,isMultiTransform:_0x235a79,transforms:_0x5297fb,hidden:_0x5ae0a0}=_0x32f229;if(_0x60dbae!==_univerjs_core[_0x343d32(0x4d6)][_0x343d32(0x224)])return;if(!this['_drawingManagerService'][_0x343d32(0x14d)]())return;if(_0xc9b717==null)return;const _0x37c52=_0x235a79&&_0x5297fb?_0x5297fb:[_0xc9b717],_0x56265e=[];for(const _0x314b1b of _0x37c52){const {left:_0x71e45,top:_0x24432e,width:_0x4c8146,height:_0x499981,angle:_0x226996,flipX:_0x3e9b25,flipY:_0xee9a11,skewX:_0x12bafe,skewY:_0x12ea6f}=_0x314b1b,_0x3fb0fd=_0x37c52[_0x343d32(0x514)](_0x314b1b),_0x212daa=(0x0,_univerjs_drawing[_0x343d32(0x550)])({'unitId':_0x39ced7,'subUnitId':_0xb1fb2,'drawingId':_0x3dd1b7},_0x235a79?_0x3fb0fd:void 0x0),_0x5e0884=_0x4f9f50['getObjectIncludeInGroup'](_0x212daa);if(_0x5e0884!=null){_0x5e0884[_0x343d32(0x53c)]({'left':_0x71e45,'top':_0x24432e,'width':_0x4c8146,'height':_0x499981,'angle':_0x226996,'flipX':_0x3e9b25,'flipY':_0xee9a11,'skewX':_0x12bafe,'skewY':_0x12ea6f});continue;}const _0x4e903d=this[_0x343d32(0x2f7)][_0x343d32(0x48a)](_0x39ced7,_0xb1fb2),_0x215069=_0x4e903d[_0x343d32(0x514)](_0x3dd1b7);if(_0x4f9f50[_0x343d32(0x479)](_0x212daa))continue;if(!this[_0x343d32(0x2f7)][_0x343d32(0x14d)]())continue;const _0x4ed877=this['_sheetsShapeService'][_0x343d32(0x2ea)](_0x39ced7,_0xb1fb2,_0x3dd1b7);if(!_0x4ed877)continue;const _0x287ca3=new DrawingShape(_0x212daa,{...(0x0,_univerjs_pro_engine_shape[_0x343d32(0x3b6)])(_0x4ed877[_0x343d32(0x373)]())?{..._0x314b1b,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x314b1b},'zIndex':_0x215069===-0x1?_0x4e903d['length']-0x1:_0x215069,'shapeModel':_0x4ed877,'localeService':this[_0x343d32(0x1c9)],'shapeId':_0x3dd1b7,'unitId':_0x39ced7,'subUnitId':_0xb1fb2,'visible':_0x5ae0a0!==!![]});_0x4f9f50[_0x343d32(0x1bf)](_0x287ca3,_univerjs_engine_render[_0x343d32(0x49a)]);if(this[_0x343d32(0x2f7)][_0x343d32(0x65c)]())_0x4f9f50['attachTransformerTo'](_0x287ca3);_0x23b773&&(0x0,_univerjs_drawing_ui[_0x343d32(0x473)])({'drawingId':_0x23b773,'unitId':_0x39ced7,'subUnitId':_0xb1fb2},_0x287ca3,_0x4f9f50,this[_0x343d32(0x2f7)]);if(_0x119b0e!=null)_0x287ca3['setPrstGeom'](_0x119b0e);if(_0x10533a!=null)_0x287ca3[_0x343d32(0x593)](_0x10533a);this[_0x343d32(0x425)](_0x287ca3,_0x4ed877[_0x343d32(0x166)]()),_0x56265e['push'](_0x287ca3);}return _0x56265e;}[_0x5a3cc9(0x425)](_0x535a72,_0x51ffa4){const _0x21c94e=_0x5a3cc9;var _0x485b86;const _0x1c4d64=_0x51ffa4[_0x21c94e(0x169)];if(!_0x1c4d64||_0x1c4d64['fillType']!==_univerjs_pro_engine_shape[_0x21c94e(0x47d)]['PictureFill']||!_0x1c4d64[_0x21c94e(0x23c)])return;const _0x50403f=_0x1c4d64['fillImageSource'],_0x3e15ae=(_0x485b86=_0x1c4d64[_0x21c94e(0x172)])!==null&&_0x485b86!==void 0x0?_0x485b86:_univerjs_pro_engine_shape['ImageSourceTypeEnum']['URL'],_0x568e7c=this['_imageIoService'][_0x21c94e(0x430)](_0x50403f,_0x3e15ae);if(_0x568e7c){_0x535a72['setFillImage'](_0x568e7c);return;}this['_loadAndSetImage'](_0x535a72,_0x50403f,_0x3e15ae);}async[_0x5a3cc9(0x4e8)](_0x22abbb,_0x41e719,_0x51fb28){const _0x2727be=_0x5a3cc9;let _0x19896b;try{if(_0x51fb28===_univerjs_pro_engine_shape[_0x2727be(0x324)][_0x2727be(0x58e)])_0x19896b=await this['_imageIoService']['getImage'](_0x41e719);else{if(_0x51fb28===_univerjs_pro_engine_shape[_0x2727be(0x324)][_0x2727be(0x4de)])try{_0x19896b=await this[_0x2727be(0x355)][_0x2727be(0x31e)](_0x41e719);}catch{_0x19896b=_0x41e719;}else _0x19896b=_0x41e719;}}catch(_0x24b974){console['error'](_0x2727be(0x4b6),_0x24b974);return;}const _0xf597db=new window[(_0x2727be(0x68e))]();_0xf597db[_0x2727be(0x3ea)]=()=>{const _0x51383f=_0x2727be;this[_0x51383f(0x5c5)][_0x51383f(0x5ea)](_0x41e719,_0x51fb28,_0xf597db),_0x22abbb[_0x51383f(0x231)](_0xf597db);},_0xf597db[_0x2727be(0x2bf)]=()=>{const _0x4eaf26=_0x2727be;console[_0x4eaf26(0x612)](_0x4eaf26(0x3fd),_0x41e719);},_0xf597db[_0x2727be(0x561)]=_0x19896b;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing[_0x5a3cc9(0x622)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_core['LocaleService'])),__decorateParam(0x3,_univerjs_drawing['IImageIoService']),__decorateParam(0x4,_univerjs_core[_0x5a3cc9(0x477)])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x18c8fe,_0x21b33b,_0x1b8394,_0x3303c1,_0x568a00,_0x3d2569){const _0x3fd3f8=_0x5a3cc9;super(),this['_commandService']=_0x18c8fe,this['_renderManagerService']=_0x21b33b,this[_0x3fd3f8(0x2f7)]=_0x1b8394,this[_0x3fd3f8(0x428)]=_0x3303c1,this['_drawingRenderService']=_0x568a00,this[_0x3fd3f8(0x4a6)]=_0x3d2569,this[_0x3fd3f8(0x182)]();}[_0x5a3cc9(0x182)](){const _0x51ad6a=_0x5a3cc9;this[_0x51ad6a(0x61b)](),this[_0x51ad6a(0x601)](),this[_0x51ad6a(0x245)]();}[_0x5a3cc9(0x61b)](){const _0xeedc28=_0x5a3cc9;this[_0xeedc28(0x5b8)](this[_0xeedc28(0x2f7)]['add$'][_0xeedc28(0x579)](_0x51f2a1=>{const _0x33f338=_0xeedc28;this[_0x33f338(0x1b8)](_0x51f2a1);}));}[_0x5a3cc9(0x601)](){const _0xed950e=_0x5a3cc9;this[_0xed950e(0x5b8)](this[_0xed950e(0x187)][_0xed950e(0x15e)](_0x479ce4=>{const _0x5cfd2e=_0xed950e;if(_0x479ce4['id']===_univerjs_pro_sheets_shape[_0x5cfd2e(0x400)]['id']){var _0xa32fae;const {unitId:_0x26aaa2,subUnitId:_0x4d91c1,shapeId:_0xc095e4}=_0x479ce4[_0x5cfd2e(0x3c3)],_0x54bd3b=this[_0x5cfd2e(0x4d8)](_0x26aaa2);if(_0x54bd3b==null)return;const {scene:_0x3a5a4f}=_0x54bd3b,_0x2cc1af=(0x0,_univerjs_drawing[_0x5cfd2e(0x550)])({'unitId':_0x26aaa2,'subUnitId':_0x4d91c1,'drawingId':_0xc095e4}),_0x56d65e=_0x3a5a4f['getObjectIncludeInGroup'](_0x2cc1af);if(!((_0xa32fae=this['_renderManagerService'][_0x5cfd2e(0x1bb)](_0x26aaa2))===null||_0xa32fae===void 0x0?void 0x0:_0xa32fae[_0x5cfd2e(0x463)](_univerjs_sheets_ui[_0x5cfd2e(0x3f5)])[_0x5cfd2e(0x51c)](_0x4d91c1)))return![];if(_0x56d65e)return;this[_0x5cfd2e(0x1b8)]([{'unitId':_0x26aaa2,'subUnitId':_0x4d91c1,'drawingId':_0xc095e4}]);}}));}[_0x5a3cc9(0x245)](){const _0x478d87=_0x5a3cc9;this[_0x478d87(0x5b8)](this[_0x478d87(0x2f7)][_0x478d87(0x60e)][_0x478d87(0x579)](_0x53edd6=>{const _0x558a31=_0x478d87;_0x53edd6[_0x558a31(0x67e)](_0x3db6d0=>{const _0x37e9d8=_0x558a31,{unitId:_0x4054b2,subUnitId:_0x5dd034,drawingId:_0x441ba9}=_0x3db6d0,_0x4b5805=this[_0x37e9d8(0x2f7)][_0x37e9d8(0x4ca)](_0x3db6d0);if(_0x4b5805==null)return;const {transform:_0x2fc3eb,drawingType:_0x28bf68,srcRect:_0x5387b6,prstGeom:_0x4d046d}=_0x4b5805;if(_0x28bf68!==_univerjs_core[_0x37e9d8(0x4d6)][_0x37e9d8(0x224)])return;const _0x8243e2=this[_0x37e9d8(0x4d8)](_0x4054b2);if(_0x8243e2==null)return;const {scene:_0xd183fe,transformer:_0x18b87a}=_0x8243e2;if(_0x2fc3eb==null)return!![];const _0x4275a6=(0x0,_univerjs_drawing[_0x37e9d8(0x550)])({'unitId':_0x4054b2,'subUnitId':_0x5dd034,'drawingId':_0x441ba9}),_0x2af6c5=_0xd183fe[_0x37e9d8(0x479)](_0x4275a6);if(_0x2af6c5==null)return!![];_0x2af6c5[_0x37e9d8(0x593)](_0x5387b6),_0x2af6c5['setPrstGeom'](_0x4d046d);});}));}[_0x5a3cc9(0x663)](_0x4e55a6,_0x2d0a05){const _0x10ae89=_0x5a3cc9,{unitId:_0x37f59a,subUnitId:_0x39e10e,drawingId:_0x3acc35}=_0x4e55a6,_0x59dbc4=this[_0x10ae89(0x4d8)](_0x37f59a);if(_0x59dbc4==null)return;const {scene:_0x162908}=_0x59dbc4,_0x4bcbc4=(0x0,_univerjs_drawing[_0x10ae89(0x550)])({'unitId':_0x37f59a,'subUnitId':_0x39e10e,'drawingId':_0x3acc35}),_0xe47f7d=_0x162908['getObjectIncludeInGroup'](_0x4bcbc4);if(_0xe47f7d==null)return;_0xe47f7d[_0x10ae89(0x231)](_0x2d0a05);}[_0x5a3cc9(0x1b8)](_0x1c8260){const _0x212415=_0x5a3cc9;_0x1c8260[_0x212415(0x67e)](async _0x9440a6=>{const _0x4be413=_0x212415;var _0x1bcb6b;const {unitId:_0x822c9a,subUnitId:_0x2d3250}=_0x9440a6,_0x56a18b=this[_0x4be413(0x4d8)](_0x822c9a),_0x1124dc=(_0x1bcb6b=(0x0,_univerjs_drawing_ui[_0x4be413(0x5d5)])(this[_0x4be413(0x428)],_0x822c9a))===null||_0x1bcb6b===void 0x0?void 0x0:_0x1bcb6b['subUnitId'];if(_0x56a18b==null||_0x1124dc!==_0x2d3250)return;const _0x5f428e=this[_0x4be413(0x2f7)][_0x4be413(0x4ca)](_0x9440a6);if(_0x5f428e==null)return;if(_0x5f428e[_0x4be413(0x2a7)]!==_univerjs_core['DrawingTypeEnum'][_0x4be413(0x224)])return;if((0x0,_univerjs_pro_engine_shape[_0x4be413(0x3b6)])((_0x5f428e['data']||{})[_0x4be413(0x629)])){const _0x497acf=_0x5f428e[_0x4be413(0x4db)];if(_0x497acf)_0x5f428e[_0x4be413(0x4db)]={..._0x497acf,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x4be413(0x2f7)][_0x4be413(0x3cf)]([_0x5f428e]),this[_0x4be413(0x4a6)][_0x4be413(0x284)](_0x5f428e,_0x56a18b[_0x4be413(0x1ea)]);});}[_0x5a3cc9(0x4d8)](_0x31e52b){const _0x423920=_0x5a3cc9;if(_0x31e52b==null)return;const _0x27a172=this[_0x423920(0x5ac)][_0x423920(0x1bb)](_0x31e52b),_0x195361=_0x27a172===null||_0x27a172===void 0x0?void 0x0:_0x27a172[_0x423920(0x1ea)];if(_0x195361==null)return null;return{'scene':_0x195361,'transformer':_0x195361['getTransformerByCreate']()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core[_0x5a3cc9(0x4bb)]),__decorateParam(0x1,_univerjs_engine_render[_0x5a3cc9(0x5af)]),__decorateParam(0x2,_univerjs_drawing[_0x5a3cc9(0x622)]),__decorateParam(0x3,_univerjs_core[_0x5a3cc9(0x1bc)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui['DrawingRenderService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x16eaad){const _0x2f3f46=_0x5a3cc9;var _0x45af2e,_0x336371,_0x4e111e,_0x2b4b1c,_0x315ce2,_0x17f139,_0x15618b,_0x1140d3,_0x490bc1,_0xfabef,_0x51d9fd,_0x4f3933,_0x174290;const {unitId:_0x1e7250,subUnitId:_0x38cf21,shapeId:_0x166057,shapeData:_0x7d852a,disableShapeOption:_0x4bbbea}=_0x16eaad,_0x4483f8=(0x0,_univerjs_ui[_0x2f3f46(0x297)])(_univerjs_core[_0x2f3f46(0x5d6)]),_0x19b91c=(0x0,_univerjs_ui[_0x2f3f46(0x297)])(_univerjs_core[_0x2f3f46(0x4bb)]),_0x3c4597=(0x0,_univerjs_ui[_0x2f3f46(0x297)])(_univerjs_core[_0x2f3f46(0x460)]),_0x5c8a83=(0x0,_univerjs_ui[_0x2f3f46(0x297)])(ShapeUpdateController),_0x5c8431=(0x0,_univerjs_ui[_0x2f3f46(0x297)])(_univerjs_drawing[_0x2f3f46(0x50e)]),_0x44cf49=(0x0,react['useRef'])(null),_0x493511=_0x7d852a['fill'],_0x20f4bd=!!(_0x493511===null||_0x493511===void 0x0?void 0x0:_0x493511[_0x2f3f46(0x23c)]),[_0x2aee3e,_0x516b97]=(0x0,react[_0x2f3f46(0x5e2)])((_0x45af2e=_0x493511===null||_0x493511===void 0x0?void 0x0:_0x493511['imageOpacity'])!==null&&_0x45af2e!==void 0x0?_0x45af2e:0x1),[_0x46476e,_0x1464d9]=(0x0,react[_0x2f3f46(0x5e2)])((_0x336371=_0x493511===null||_0x493511===void 0x0?void 0x0:_0x493511['imageFillMode'])!==null&&_0x336371!==void 0x0?_0x336371:_univerjs_pro_engine_shape[_0x2f3f46(0x586)][_0x2f3f46(0x20e)]),[_0x502ca8,_0x3aaad3]=(0x0,react[_0x2f3f46(0x5e2)])((_0x4e111e=_0x493511===null||_0x493511===void 0x0?void 0x0:_0x493511[_0x2f3f46(0x4ed)])!==null&&_0x4e111e!==void 0x0?_0x4e111e:![]),[_0x1ba587,_0x1f632d]=(0x0,react[_0x2f3f46(0x5e2)])((_0x2b4b1c=_0x493511===null||_0x493511===void 0x0||(_0x315ce2=_0x493511[_0x2f3f46(0x5db)])===null||_0x315ce2===void 0x0?void 0x0:_0x315ce2[_0x2f3f46(0x2e6)])!==null&&_0x2b4b1c!==void 0x0?_0x2b4b1c:0x0),[_0x23669a,_0x2d5bc8]=(0x0,react[_0x2f3f46(0x5e2)])((_0x17f139=_0x493511===null||_0x493511===void 0x0||(_0x15618b=_0x493511[_0x2f3f46(0x5db)])===null||_0x15618b===void 0x0?void 0x0:_0x15618b[_0x2f3f46(0x4dc)])!==null&&_0x17f139!==void 0x0?_0x17f139:0x0),[_0x9bef35,_0x3f47da]=(0x0,react['useState'])((_0x1140d3=_0x493511===null||_0x493511===void 0x0||(_0x490bc1=_0x493511['imageTile'])===null||_0x490bc1===void 0x0?void 0x0:_0x490bc1[_0x2f3f46(0x151)])!==null&&_0x1140d3!==void 0x0?_0x1140d3:0x1),[_0x1a683f,_0x2478b2]=(0x0,react[_0x2f3f46(0x5e2)])((_0xfabef=_0x493511===null||_0x493511===void 0x0||(_0x51d9fd=_0x493511[_0x2f3f46(0x5db)])===null||_0x51d9fd===void 0x0?void 0x0:_0x51d9fd[_0x2f3f46(0x2ec)])!==null&&_0xfabef!==void 0x0?_0xfabef:0x1),[_0x36fac2,_0x50ad35]=(0x0,react[_0x2f3f46(0x5e2)])((_0x4f3933=_0x493511===null||_0x493511===void 0x0||(_0x174290=_0x493511[_0x2f3f46(0x5db)])===null||_0x174290===void 0x0?void 0x0:_0x174290[_0x2f3f46(0x2a3)])!==null&&_0x4f3933!==void 0x0?_0x4f3933:'tl'),_0x4e0201=_0x46476e===_univerjs_pro_engine_shape['ImageFillModeEnum'][_0x2f3f46(0x1af)],_0x471c20=Math[_0x2f3f46(0x2b6)]((0x1-_0x2aee3e)*0x64),_0xc2f2b5=Math[_0x2f3f46(0x2b6)](_0x9bef35*0x64),_0x3a316e=Math[_0x2f3f46(0x2b6)](_0x1a683f*0x64),_0x10831e=_0x517e0d=>_0x4483f8['t'](_0x517e0d),_0x532dd3=[{'label':_0x10831e(_0x2f3f46(0x191)),'value':'tl'},{'label':_0x10831e(_0x2f3f46(0x20a)),'value':'t'},{'label':_0x10831e('sheets-shape.fill.picture.align.tr'),'value':'tr'},{'label':_0x10831e(_0x2f3f46(0x265)),'value':'l'},{'label':_0x10831e(_0x2f3f46(0x458)),'value':_0x2f3f46(0x546)},{'label':_0x10831e(_0x2f3f46(0x56f)),'value':'r'},{'label':_0x10831e(_0x2f3f46(0x64b)),'value':'bl'},{'label':_0x10831e(_0x2f3f46(0x41d)),'value':'b'},{'label':_0x10831e(_0x2f3f46(0x686)),'value':'br'}],_0x21eadb=_0x396e7e=>{updateShapeData(_0x19b91c,_0x1e7250,_0x38cf21,_0x166057,{'oldShapeData':{'fill':_0x493511?{..._0x493511}:void 0x0}},{'fill':{..._0x493511,..._0x396e7e}});},_0x459473=_0x4bbb3d=>{const _0x1746d9=_0x2f3f46;_0x21eadb({'imageTile':{..._0x493511===null||_0x493511===void 0x0?void 0x0:_0x493511[_0x1746d9(0x5db)],..._0x4bbb3d}});},_0x3fcf13=()=>{const _0x6b53f=_0x2f3f46;var _0x481299;return(_0x481299=_0x44cf49[_0x6b53f(0x5e0)])===null||_0x481299===void 0x0?void 0x0:_0x481299[_0x6b53f(0x426)]();},_0x195389=async _0xa6772f=>{const _0x3da50b=_0x2f3f46;var _0x35e1b8;const _0x3d6af2=(_0x35e1b8=_0xa6772f[_0x3da50b(0x4f4)][_0x3da50b(0x4f0)])===null||_0x35e1b8===void 0x0?void 0x0:_0x35e1b8[0x0];if(!_0x3d6af2)return;_0xa6772f[_0x3da50b(0x4f4)][_0x3da50b(0x38c)]='';const _0x5e7fbf=await _0x5c8431[_0x3da50b(0x677)](_0x3d6af2);if(_0x5e7fbf==null)return;const {imageSourceType:_0x222136,source:_0x58262b,base64Cache:_0x49553e}=_0x5e7fbf,{image:_0x1e832d}=await(0x0,_univerjs_drawing[_0x3da50b(0x246)])(_0x49553e||'');_0x5c8431[_0x3da50b(0x5ea)](_0x58262b,_0x222136,_0x1e832d),updateShapeData(_0x19b91c,_0x1e7250,_0x38cf21,_0x166057,{'oldShapeData':{'fill':_0x493511?{..._0x493511}:void 0x0}},{'fill':{..._0x493511,'fillType':_univerjs_pro_engine_shape[_0x3da50b(0x47d)][_0x3da50b(0x560)],'fillImageSource':_0x58262b,'fillImageSourceType':_0x222136}}),_0x5c8a83[_0x3da50b(0x663)]({'unitId':_0x1e7250,'subUnitId':_0x38cf21,'drawingId':_0x166057},_0x1e832d);},_0x5d5f32=_0x2f3f46(0x647),_0x5c9a25='univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3';return(0x0,react_jsx_runtime['jsxs'])(_0x2f3f46(0x3aa),{'className':_0x2f3f46(0x666),'children':[(0x0,react_jsx_runtime[_0x2f3f46(0x203)])(_0x2f3f46(0x3aa),{'className':_0x2f3f46(0x2da),'children':[(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x53f),{'className':_0x5d5f32,'children':_0x10831e(_0x2f3f46(0x145))}),(0x0,react_jsx_runtime[_0x2f3f46(0x203)])(_0x2f3f46(0x3aa),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x565),{'ref':_0x44cf49,'type':'file','accept':_0x2f3f46(0x645),'className':'univer-hidden','onChange':_0x195389}),(0x0,react_jsx_runtime['jsxs'])(_0x2f3f46(0x3aa),{'className':'group\x20univer-relative\x20univer-inline-block','children':[(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x2cf),{'type':'button','disabled':_0x4bbbea,'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':_0x3fcf13,'children':(0x0,react_jsx_runtime['jsxs'])(_0x2f3f46(0x53f),{'children':[_0x10831e(_0x2f3f46(0x48f)),'\x20']})}),_0x20f4bd&&(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x3aa),{'className':_0x2f3f46(0x261),'children':(0x0,react_jsx_runtime[_0x2f3f46(0x507)])('img',{'src':_0x493511===null||_0x493511===void 0x0?void 0x0:_0x493511[_0x2f3f46(0x23c)],'alt':'','className':'univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover'})})]})]})]}),(0x0,react_jsx_runtime['jsxs'])(_0x2f3f46(0x3aa),{'className':_0x5c9a25,'children':[(0x0,react_jsx_runtime['jsx'])(_0x2f3f46(0x53f),{'className':_0x5d5f32,'children':_0x10831e(_0x2f3f46(0x3b4))}),(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x3aa),{'className':_0x2f3f46(0x41f),'children':(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_univerjs_design[_0x2f3f46(0x2ce)],{'className':'univer-w-full','value':_0x471c20,'disabled':_0x4bbbea,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x559b7c=>_0x559b7c+'%','parser':_0x5be4e3=>(_0x5be4e3===null||_0x5be4e3===void 0x0?void 0x0:_0x5be4e3[_0x2f3f46(0x315)]('%',''))||'','onChange':_0x1fad11=>{const _0x5654af=_0x2f3f46,_0x110f7a=(0x64-Math[_0x5654af(0x2c5)](0x0,Math[_0x5654af(0x3b8)](0x64,_0x1fad11!==null&&_0x1fad11!==void 0x0?_0x1fad11:0x0)))/0x64;_0x516b97(_0x110f7a),_0x21eadb({'imageOpacity':_0x110f7a}),_0x3c4597[_0x5654af(0x1a0)](_univerjs_core[_0x5654af(0x4ce)],![]);},'onFocus':()=>_0x3c4597['setContextValue'](_univerjs_core[_0x2f3f46(0x4ce)],!![]),'onBlur':()=>_0x3c4597[_0x2f3f46(0x1a0)](_univerjs_core[_0x2f3f46(0x4ce)],![])})})]}),(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_univerjs_design[_0x2f3f46(0x591)],{'checked':_0x4e0201,'disabled':_0x4bbbea,'onChange':_0x4a2aa2=>{const _0x416fc7=_0x2f3f46,_0x5b2955=_0x4a2aa2?_univerjs_pro_engine_shape[_0x416fc7(0x586)][_0x416fc7(0x1af)]:_univerjs_pro_engine_shape[_0x416fc7(0x586)][_0x416fc7(0x20e)];_0x1464d9(_0x5b2955),_0x21eadb({'imageFillMode':_0x5b2955});},'children':(0x0,react_jsx_runtime['jsx'])(_0x2f3f46(0x53f),{'className':_0x2f3f46(0x46c),'children':_0x10831e(_0x2f3f46(0x37a))})}),_0x4e0201&&(0x0,react_jsx_runtime[_0x2f3f46(0x203)])(_0x2f3f46(0x3aa),{'className':_0x2f3f46(0x18f),'children':[(0x0,react_jsx_runtime[_0x2f3f46(0x203)])(_0x2f3f46(0x3aa),{'className':_0x5c9a25,'children':[(0x0,react_jsx_runtime['jsx'])(_0x2f3f46(0x53f),{'className':_0x5d5f32,'children':_0x10831e(_0x2f3f46(0x2fb))}),(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x3aa),{'className':_0x2f3f46(0x41f),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2f3f46(0x2ce)],{'className':_0x2f3f46(0x1aa),'value':_0x1ba587,'disabled':_0x4bbbea,'step':0x1,'onChange':_0x1a7157=>{_0x459473({'offsetX':_0x1a7157!==null&&_0x1a7157!==void 0x0?_0x1a7157:0x0}),_0x1f632d(_0x1a7157!==null&&_0x1a7157!==void 0x0?_0x1a7157:0x0);},'onFocus':()=>_0x3c4597[_0x2f3f46(0x1a0)](_univerjs_core[_0x2f3f46(0x4ce)],!![]),'onBlur':()=>_0x3c4597['setContextValue'](_univerjs_core[_0x2f3f46(0x4ce)],![])})})]}),(0x0,react_jsx_runtime[_0x2f3f46(0x203)])(_0x2f3f46(0x3aa),{'className':_0x5c9a25,'children':[(0x0,react_jsx_runtime[_0x2f3f46(0x507)])('span',{'className':_0x5d5f32,'children':_0x10831e('sheets-shape.fill.picture.offsetY')}),(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x3aa),{'className':'univer-w-20','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2f3f46(0x2ce)],{'className':'univer-w-full','value':_0x23669a,'disabled':_0x4bbbea,'step':0x1,'onChange':_0x1cd08e=>{_0x459473({'offsetY':_0x1cd08e!==null&&_0x1cd08e!==void 0x0?_0x1cd08e:0x0}),_0x2d5bc8(_0x1cd08e!==null&&_0x1cd08e!==void 0x0?_0x1cd08e:0x0);},'onFocus':()=>_0x3c4597['setContextValue'](_univerjs_core[_0x2f3f46(0x4ce)],!![]),'onBlur':()=>_0x3c4597[_0x2f3f46(0x1a0)](_univerjs_core[_0x2f3f46(0x4ce)],![])})})]}),(0x0,react_jsx_runtime[_0x2f3f46(0x203)])(_0x2f3f46(0x3aa),{'className':_0x5c9a25,'children':[(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x53f),{'className':_0x5d5f32,'children':_0x10831e(_0x2f3f46(0x1de))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x2f3f46(0x41f),'children':(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_univerjs_design[_0x2f3f46(0x2ce)],{'className':_0x2f3f46(0x1aa),'value':_0xc2f2b5,'disabled':_0x4bbbea,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x9144da=>_0x9144da+'%','parser':_0x48d1f2=>(_0x48d1f2===null||_0x48d1f2===void 0x0?void 0x0:_0x48d1f2['replace']('%',''))||'','onChange':_0x1d9f46=>{const _0x5414d8=_0x2f3f46,_0x4cc7bd=Math[_0x5414d8(0x2c5)](0.01,(_0x1d9f46!==null&&_0x1d9f46!==void 0x0?_0x1d9f46:0x64)/0x64);_0x3f47da(_0x4cc7bd),_0x459473({'scaleX':_0x4cc7bd}),_0x3c4597['setContextValue'](_univerjs_core[_0x5414d8(0x4ce)],![]);},'onFocus':()=>_0x3c4597[_0x2f3f46(0x1a0)](_univerjs_core[_0x2f3f46(0x4ce)],!![]),'onBlur':()=>_0x3c4597[_0x2f3f46(0x1a0)](_univerjs_core[_0x2f3f46(0x4ce)],![])})})]}),(0x0,react_jsx_runtime[_0x2f3f46(0x203)])(_0x2f3f46(0x3aa),{'className':_0x5c9a25,'children':[(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x53f),{'className':_0x5d5f32,'children':_0x10831e(_0x2f3f46(0x2aa))}),(0x0,react_jsx_runtime['jsx'])(_0x2f3f46(0x3aa),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_univerjs_design[_0x2f3f46(0x2ce)],{'className':'univer-w-full','value':_0x3a316e,'disabled':_0x4bbbea,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x48e3b9=>_0x48e3b9+'%','parser':_0x189756=>(_0x189756===null||_0x189756===void 0x0?void 0x0:_0x189756[_0x2f3f46(0x315)]('%',''))||'','onChange':_0x155f24=>{const _0x2115d0=_0x2f3f46,_0x467508=Math[_0x2115d0(0x2c5)](0.01,(_0x155f24!==null&&_0x155f24!==void 0x0?_0x155f24:0x64)/0x64);_0x2478b2(_0x467508),_0x459473({'scaleY':_0x467508}),_0x3c4597['setContextValue'](_univerjs_core[_0x2115d0(0x4ce)],![]);},'onFocus':()=>_0x3c4597[_0x2f3f46(0x1a0)](_univerjs_core[_0x2f3f46(0x4ce)],!![]),'onBlur':()=>_0x3c4597[_0x2f3f46(0x1a0)](_univerjs_core[_0x2f3f46(0x4ce)],![])})})]}),(0x0,react_jsx_runtime[_0x2f3f46(0x203)])('div',{'className':_0x5c9a25,'children':[(0x0,react_jsx_runtime['jsx'])(_0x2f3f46(0x53f),{'className':_0x5d5f32,'children':_0x10831e(_0x2f3f46(0x630))}),(0x0,react_jsx_runtime['jsx'])(_0x2f3f46(0x3aa),{'className':_0x2f3f46(0x20c),'children':(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_univerjs_design['Select'],{'className':_0x2f3f46(0x1aa),'value':_0x36fac2,'options':_0x532dd3,'disabled':_0x4bbbea,'onChange':_0x57870c=>{_0x50ad35(_0x57870c),_0x459473({'alignment':_0x57870c});}})})]})]}),(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_univerjs_design[_0x2f3f46(0x591)],{'checked':_0x502ca8,'disabled':_0x4bbbea,'onChange':_0x166a8b=>{_0x3aaad3(_0x166a8b),_0x21eadb({'imageRotateWithShape':_0x166a8b});},'children':(0x0,react_jsx_runtime[_0x2f3f46(0x507)])(_0x2f3f46(0x53f),{'className':_0x2f3f46(0x46c),'children':_0x10831e('sheets-shape.fill.picture.rotateWithShape')})})]});}function ShapeFillEditor(_0x21dd06){const _0x23b572=_0x5a3cc9;var _0x734d3c,_0x185648,_0x22d443;const _0x548bd3=(0x0,_univerjs_ui[_0x23b572(0x297)])(_univerjs_core[_0x23b572(0x5d6)]),_0x2fb144=(0x0,_univerjs_ui[_0x23b572(0x297)])(_univerjs_core[_0x23b572(0x4bb)]),_0x3e8127=(0x0,_univerjs_ui[_0x23b572(0x297)])(_univerjs_core[_0x23b572(0x460)]),{shapeData:_0x5a72e8,isLineShape:_0x277787,unitId:_0x1d62b5,subUnitId:_0x4825a6,shapeId:_0x2ec51f,disableShapeOption:_0x458596}=_0x21dd06,[_0x1b56c7,_0x10c75d]=(0x0,react[_0x23b572(0x5e2)])(((_0x734d3c=_0x5a72e8[_0x23b572(0x169)])===null||_0x734d3c===void 0x0?void 0x0:_0x734d3c[_0x23b572(0x520)])||_univerjs_pro_engine_shape[_0x23b572(0x47d)]['SolidFill']),[_0x247088,_0x839581]=(0x0,react[_0x23b572(0x5e2)])(((_0x185648=_0x5a72e8[_0x23b572(0x169)])===null||_0x185648===void 0x0?void 0x0:_0x185648[_0x23b572(0x45a)])||_univerjs_pro_engine_shape[_0x23b572(0x1d0)][_0x23b572(0x169)]),[_0x37b3eb,_0x4d6f30]=(0x0,react['useState'])(((_0x22d443=_0x5a72e8[_0x23b572(0x169)])===null||_0x22d443===void 0x0?void 0x0:_0x22d443['opacity'])||0x1),[_0xc5f538,_0x9e4fe8]=(0x0,react[_0x23b572(0x5e2)])(![]);if(_0x277787)return null;const _0x110a4e=0x64-_0x37b3eb*0x64;return(0x0,react_jsx_runtime[_0x23b572(0x203)])(_0x23b572(0x3aa),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design[_0x23b572(0x2ae)],{'value':_0x1b56c7,'disabled':_0x458596,'onChange':_0x128c30=>{const _0x393ba1=_0x23b572;var _0x5e7d8f;updateShapeData(_0x2fb144,_0x1d62b5,_0x4825a6,_0x2ec51f,{'oldShapeData':{'fill':{'fillType':(_0x5e7d8f=_0x5a72e8[_0x393ba1(0x169)])===null||_0x5e7d8f===void 0x0?void 0x0:_0x5e7d8f[_0x393ba1(0x520)]}}},{'fill':{'fillType':_0x128c30}}),_0x10c75d(_0x128c30);},'direction':_0x23b572(0x1b1),'children':[(0x0,react_jsx_runtime[_0x23b572(0x507)])(_univerjs_design[_0x23b572(0x3d1)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x23b572(0x4a9)],'children':(0x0,react_jsx_runtime[_0x23b572(0x507)])(_0x23b572(0x53f),{'className':_0x23b572(0x46c),'children':_0x548bd3['t'](_0x23b572(0x229))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x23b572(0x3d1)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum']['SolidFill'],'children':(0x0,react_jsx_runtime['jsx'])(_0x23b572(0x53f),{'className':_0x23b572(0x46c),'children':_0x548bd3['t'](_0x23b572(0x364))})}),(0x0,react_jsx_runtime[_0x23b572(0x507)])(_univerjs_design[_0x23b572(0x3d1)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x23b572(0x607)],'children':(0x0,react_jsx_runtime[_0x23b572(0x507)])('span',{'className':_0x23b572(0x46c),'children':_0x548bd3['t'](_0x23b572(0x2cb))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x23b572(0x3d1)],{'value':_univerjs_pro_engine_shape[_0x23b572(0x47d)][_0x23b572(0x560)],'children':(0x0,react_jsx_runtime['jsx'])(_0x23b572(0x53f),{'className':'univer-text-sm','children':_0x548bd3['t']('sheets-shape.fill.pictureFill')})})]}),_0x1b56c7===_univerjs_pro_engine_shape[_0x23b572(0x47d)]['SolidFill']&&(0x0,react_jsx_runtime['jsxs'])(_0x23b572(0x3aa),{'className':_0x23b572(0x2dc),'children':[(0x0,react_jsx_runtime[_0x23b572(0x203)])('div',{'className':_0x23b572(0x551),'children':[(0x0,react_jsx_runtime[_0x23b572(0x507)])(_0x23b572(0x53f),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x548bd3['t'](_0x23b572(0x3a1))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x23b572(0x325)],{'disabled':_0x458596,'overlay':(0x0,react_jsx_runtime[_0x23b572(0x507)])(_0x23b572(0x3aa),{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x23b572(0x507)])(_univerjs_design[_0x23b572(0x5a7)],{'value':_0x247088,'onChange':_0x2ec56c=>{const _0x4846e4=_0x23b572;var _0x513d03;updateShapeData(_0x2fb144,_0x1d62b5,_0x4825a6,_0x2ec51f,{'oldShapeData':{'fill':{'color':(_0x513d03=_0x5a72e8[_0x4846e4(0x169)])===null||_0x513d03===void 0x0?void 0x0:_0x513d03[_0x4846e4(0x45a)]}}},{'fill':{'color':_0x2ec56c}}),_0x839581(_0x2ec56c),_0x9e4fe8(![]);}})}),'open':_0xc5f538,'onOpenChange':_0x9e4fe8,'children':(0x0,react_jsx_runtime[_0x23b572(0x203)])('a',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':_0x23b572(0x446),'extend':{'colorChannel1':_0x247088}}),(0x0,react_jsx_runtime[_0x23b572(0x507)])(_univerjs_icons[_0x23b572(0x643)],{'className':(0x0,_univerjs_design[_0x23b572(0x41b)])(_0x23b572(0x25f),{'univer-rotate-180':_0xc5f538})})]})})]}),(0x0,react_jsx_runtime[_0x23b572(0x203)])(_0x23b572(0x3aa),{'className':_0x23b572(0x69e),'children':[(0x0,react_jsx_runtime[_0x23b572(0x507)])(_0x23b572(0x53f),{'className':_0x23b572(0x647),'children':_0x548bd3['t'](_0x23b572(0x3b4))}),(0x0,react_jsx_runtime[_0x23b572(0x507)])(_0x23b572(0x3aa),{'className':_0x23b572(0x491),'children':(0x0,react_jsx_runtime['jsx'])(_0x23b572(0x3aa),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x23b572(0x507)])(_univerjs_design[_0x23b572(0x2ce)],{'className':'univer-w-full','value':_0x110a4e,'disabled':_0x458596,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x2a8fd9=>_0x2a8fd9+'%','parser':_0x7fb45=>(_0x7fb45===null||_0x7fb45===void 0x0?void 0x0:_0x7fb45[_0x23b572(0x315)]('%',''))||'','onChange':_0x2e79a8=>{const _0x2f400e=_0x23b572,_0x3be23e=(0x64-Math[_0x2f400e(0x2c5)](0x0,Math['min'](0x64,_0x2e79a8!==null&&_0x2e79a8!==void 0x0?_0x2e79a8:0x0)))/0x64;_0x4d6f30(_0x3be23e),updateShapeData(_0x2fb144,_0x1d62b5,_0x4825a6,_0x2ec51f,{'oldShapeData':{'fill':{..._0x5a72e8[_0x2f400e(0x169)],'fillType':_0x1b56c7}}},{'fill':{..._0x5a72e8[_0x2f400e(0x169)],'fillType':_0x1b56c7,'opacity':_0x3be23e}}),_0x3e8127[_0x2f400e(0x1a0)](_univerjs_core[_0x2f400e(0x4ce)],![]);},'onFocus':()=>_0x3e8127[_0x23b572(0x1a0)](_univerjs_core[_0x23b572(0x4ce)],!![]),'onBlur':()=>{const _0x441e34=_0x23b572;_0x3e8127[_0x441e34(0x1a0)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})})]})]}),_0x1b56c7===_univerjs_pro_engine_shape[_0x23b572(0x47d)]['GradientFill']&&(0x0,react_jsx_runtime[_0x23b572(0x507)])(GradientFillEditor,{'shapeData':_0x5a72e8,'disableShapeOption':_0x458596,'onUpdate':_0x55d808=>{const _0x3e0c7a=_0x23b572;updateShapeData(_0x2fb144,_0x1d62b5,_0x4825a6,_0x2ec51f,{'oldShapeData':{'fill':{..._0x5a72e8['fill']}}},{'fill':{..._0x5a72e8[_0x3e0c7a(0x169)],..._0x55d808}});}}),_0x1b56c7===_univerjs_pro_engine_shape[_0x23b572(0x47d)][_0x23b572(0x560)]&&(0x0,react_jsx_runtime['jsx'])(ShapeImageFillEditor,{'unitId':_0x1d62b5,'subUnitId':_0x4825a6,'shapeId':_0x2ec51f,'shapeData':_0x5a72e8,'disableShapeOption':_0x458596})]});}function shapeGradientTypeToPickerType(_0x3ca030){const _0x51485e=_0x5a3cc9;switch(_0x3ca030){case _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x51485e(0x502)]:return _0x51485e(0x611);case _univerjs_pro_engine_shape[_0x51485e(0x296)][_0x51485e(0x39c)]:return'radial';case _univerjs_pro_engine_shape[_0x51485e(0x296)][_0x51485e(0x25a)]:return'angular';case _univerjs_pro_engine_shape[_0x51485e(0x296)][_0x51485e(0x5c6)]:return _0x51485e(0x369);default:return _0x51485e(0x611);}}function pickerTypeToShapeGradientType(_0x2facd5){const _0x4b8820=_0x5a3cc9;switch(_0x2facd5){case'linear':return _univerjs_pro_engine_shape[_0x4b8820(0x296)][_0x4b8820(0x502)];case _0x4b8820(0x335):return _univerjs_pro_engine_shape[_0x4b8820(0x296)]['Radial'];case _0x4b8820(0x4cd):return _univerjs_pro_engine_shape[_0x4b8820(0x296)]['Angular'];case'diamond':return _univerjs_pro_engine_shape['ShapeGradientTypeEnum']['Diamond'];default:return _univerjs_pro_engine_shape[_0x4b8820(0x296)]['Linear'];}}function GradientFillEditor(_0xc4747e){const _0x59f98d=_0x5a3cc9,{shapeData:_0x4b4d38,disableShapeOption:_0x55e8a2,onUpdate:_0x2d9169}=_0xc4747e,_0x2ad0cd=(0x0,react[_0x59f98d(0x379)])(()=>{const _0x4fcd2d=_0x59f98d;var _0x17d7db;const _0x45d3a6=_0x4b4d38[_0x4fcd2d(0x169)];return{'type':shapeGradientTypeToPickerType(_0x45d3a6===null||_0x45d3a6===void 0x0?void 0x0:_0x45d3a6[_0x4fcd2d(0x168)]),'angle':(_0x17d7db=_0x45d3a6===null||_0x45d3a6===void 0x0?void 0x0:_0x45d3a6[_0x4fcd2d(0x640)])!==null&&_0x17d7db!==void 0x0?_0x17d7db:0x5a,'stops':(_0x45d3a6===null||_0x45d3a6===void 0x0?void 0x0:_0x45d3a6['gradientStops'])&&_0x45d3a6[_0x4fcd2d(0x3a9)]['length']>=0x2?_0x45d3a6[_0x4fcd2d(0x3a9)][_0x4fcd2d(0x40e)](_0x878e9=>({'color':_0x878e9['color'],'offset':_0x878e9[_0x4fcd2d(0x549)]*0x64})):[{'color':(_0x45d3a6===null||_0x45d3a6===void 0x0?void 0x0:_0x45d3a6['color'])||_0x4fcd2d(0x4ae),'offset':0x0},{'color':'#000000','offset':0x64}]};},[_0x4b4d38[_0x59f98d(0x169)]]),_0x1328e1=_0x2a9226=>{const _0x224503=_0x59f98d,_0x22e771=pickerTypeToShapeGradientType(_0x2a9226[_0x224503(0x361)]),_0x4231dd=_0x2a9226[_0x224503(0x54c)];_0x2d9169({'gradientType':_0x22e771,'gradientAngle':_0x4231dd,'gradientStops':_0x2a9226[_0x224503(0x687)][_0x224503(0x40e)](_0x33a84d=>({'color':_0x33a84d['color'],'position':_0x33a84d[_0x224503(0x4e6)]/0x64}))});};return(0x0,react_jsx_runtime[_0x59f98d(0x507)])(_0x59f98d(0x3aa),{'className':_0x59f98d(0x5c3),'children':(0x0,react_jsx_runtime[_0x59f98d(0x507)])(_univerjs_design[_0x59f98d(0x457)],{'value':_0x2ad0cd,'onChange':_0x1328e1})});}function ShapeLineEditor(_0x62bfff){const _0xc2969c=_0x5a3cc9;var _0xf4cdd7,_0x23aee4,_0x24f1c7,_0xaa6870,_0x993130,_0x27cacb,_0x584108,_0x4105b5,_0x3db7e7,_0x50a309,_0x1dcb22,_0x1a4a08,_0x27623d,_0x8e4912,_0xb9530,_0x3a59ba;const _0x1b4ed2=(0x0,_univerjs_ui[_0xc2969c(0x297)])(_univerjs_core['LocaleService']),_0x52c009=(0x0,_univerjs_ui[_0xc2969c(0x297)])(_univerjs_core[_0xc2969c(0x4bb)]),_0x463286=(0x0,_univerjs_ui[_0xc2969c(0x297)])(_univerjs_core[_0xc2969c(0x460)]),{shapeData:_0x47caef,isLineShape:_0x323a68,unitId:_0x7c1979,subUnitId:_0x448c16,shapeId:_0x4aec77,disableShapeOption:_0x17ee37}=_0x62bfff,_0x102d8f=_0x47caef['stroke'],[_0x440184,_0x584db0]=(0x0,react[_0xc2969c(0x5e2)])((_0xf4cdd7=_0x102d8f===null||_0x102d8f===void 0x0?void 0x0:_0x102d8f[_0xc2969c(0x500)])!==null&&_0xf4cdd7!==void 0x0?_0xf4cdd7:_univerjs_pro_engine_shape[_0xc2969c(0x212)][_0xc2969c(0x2d6)]),[_0x19ff2c,_0x2a6844]=(0x0,react[_0xc2969c(0x5e2)])((_0x23aee4=_0x102d8f===null||_0x102d8f===void 0x0?void 0x0:_0x102d8f[_0xc2969c(0x45a)])!==null&&_0x23aee4!==void 0x0?_0x23aee4:_univerjs_pro_engine_shape[_0xc2969c(0x1d0)]['stroke']),[_0x1681ee,_0x481f20]=(0x0,react[_0xc2969c(0x5e2)])((_0x24f1c7=_0x102d8f===null||_0x102d8f===void 0x0?void 0x0:_0x102d8f[_0xc2969c(0x1e1)])!==null&&_0x24f1c7!==void 0x0?_0x24f1c7:0x1),[_0x2b2e3b,_0x102acb]=(0x0,react['useState'])((_0xaa6870=_0x102d8f===null||_0x102d8f===void 0x0?void 0x0:_0x102d8f['width'])!==null&&_0xaa6870!==void 0x0?_0xaa6870:_univerjs_pro_engine_shape[_0xc2969c(0x1d0)]['strokeWidth']),[_0xac9933,_0x21a95f]=(0x0,react[_0xc2969c(0x5e2)])((_0x993130=_0x102d8f===null||_0x102d8f===void 0x0?void 0x0:_0x102d8f[_0xc2969c(0x2dd)])!==null&&_0x993130!==void 0x0?_0x993130:_univerjs_pro_engine_shape[_0xc2969c(0x672)][_0xc2969c(0x31b)]),[_0x270c51,_0x5eb583]=(0x0,react[_0xc2969c(0x5e2)])((_0x27cacb=_0x102d8f===null||_0x102d8f===void 0x0?void 0x0:_0x102d8f[_0xc2969c(0x3de)])!==null&&_0x27cacb!==void 0x0?_0x27cacb:_univerjs_pro_engine_shape[_0xc2969c(0x5b6)]['Flat']),[_0x322fea,_0xdb7469]=(0x0,react[_0xc2969c(0x5e2)])((_0x584108=_0x102d8f===null||_0x102d8f===void 0x0?void 0x0:_0x102d8f[_0xc2969c(0x3a7)])!==null&&_0x584108!==void 0x0?_0x584108:_univerjs_pro_engine_shape[_0xc2969c(0x286)][_0xc2969c(0x3be)]),[_0x3920ab,_0x5df633]=(0x0,react[_0xc2969c(0x5e2)])((_0x4105b5=_0x102d8f===null||_0x102d8f===void 0x0?void 0x0:_0x102d8f[_0xc2969c(0x464)])!==null&&_0x4105b5!==void 0x0?_0x4105b5:_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0xc2969c(0x5fd)]),_0xcb8ee0=_0x47caef,[_0x179e55,_0x543374]=(0x0,react['useState'])((_0x3db7e7=(_0x50a309=_0xcb8ee0['ln'])===null||_0x50a309===void 0x0||(_0x50a309=_0x50a309[_0xc2969c(0x5d4)])===null||_0x50a309===void 0x0?void 0x0:_0x50a309[_0xc2969c(0x361)])!==null&&_0x3db7e7!==void 0x0?_0x3db7e7:_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0xc2969c(0x5fd)]),[_0x328968,_0x4d7260]=(0x0,react[_0xc2969c(0x5e2)])((_0x1dcb22=(_0x1a4a08=_0xcb8ee0['ln'])===null||_0x1a4a08===void 0x0||(_0x1a4a08=_0x1a4a08[_0xc2969c(0x5d4)])===null||_0x1a4a08===void 0x0?void 0x0:_0x1a4a08[_0xc2969c(0x4d4)])!==null&&_0x1dcb22!==void 0x0?_0x1dcb22:_univerjs_pro_engine_shape[_0xc2969c(0x188)]['Medium']),[_0x33c668,_0x1cad72]=(0x0,react['useState'])((_0x27623d=(_0x8e4912=_0xcb8ee0['ln'])===null||_0x8e4912===void 0x0||(_0x8e4912=_0x8e4912['endArrow'])===null||_0x8e4912===void 0x0?void 0x0:_0x8e4912[_0xc2969c(0x361)])!==null&&_0x27623d!==void 0x0?_0x27623d:_univerjs_pro_engine_shape['ShapeArrowTypeEnum']['None']),[_0x15a391,_0x5ab888]=(0x0,react[_0xc2969c(0x5e2)])((_0xb9530=(_0x3a59ba=_0xcb8ee0['ln'])===null||_0x3a59ba===void 0x0||(_0x3a59ba=_0x3a59ba[_0xc2969c(0x31d)])===null||_0x3a59ba===void 0x0?void 0x0:_0x3a59ba[_0xc2969c(0x4d4)])!==null&&_0xb9530!==void 0x0?_0xb9530:_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0xc2969c(0x29f)]),[_0x1c4df2,_0xc61d7a]=(0x0,react[_0xc2969c(0x5e2)])(![]),_0x2149e8=0x64-_0x1681ee*0x64,_0x1900c1=[{'label':_0x1b4ed2['t'](_0xc2969c(0x539)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x672)][_0xc2969c(0x31b)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x260)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0xc2969c(0x4af)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x681)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x672)][_0xc2969c(0x4a5)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x5cf)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum']['Dash'])},{'label':_0x1b4ed2['t'](_0xc2969c(0x3f7)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x672)][_0xc2969c(0x5f1)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x186)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0xc2969c(0x21a)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x2c9)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x672)][_0xc2969c(0x493)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x353)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x672)][_0xc2969c(0x2b1)])}],_0x3a060e=[{'label':_0x1b4ed2['t'](_0xc2969c(0x5e8)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x5b6)][_0xc2969c(0x3a6)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x5ee)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x5b6)][_0xc2969c(0x613)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x548)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x5b6)][_0xc2969c(0x253)])}],_0x589585=[{'label':_0x1b4ed2['t']('sheets-shape.line.sketchType.none'),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x535)]['None'])},{'label':_0x1b4ed2['t'](_0xc2969c(0x50d)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x535)][_0xc2969c(0x5bc)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x529)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x535)][_0xc2969c(0x1e3)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x2af)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x535)]['HandDrawn'])}],_0x19250c=[{'label':_0x1b4ed2['t'](_0xc2969c(0x2e9)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x286)][_0xc2969c(0x3be)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x198)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x286)]['Round'])},{'label':_0x1b4ed2['t']('sheets-shape.line.joinType.bevel'),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0xc2969c(0x267)])}],_0x4336ee=[{'label':_0x1b4ed2['t'](_0xc2969c(0x578)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x43e)][_0xc2969c(0x5fd)])},{'label':_0x1b4ed2['t']('sheets-shape.line.arrowType.arrow'),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x43e)]['Arrow'])},{'label':_0x1b4ed2['t']('sheets-shape.line.arrowType.openArrow'),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x43e)][_0xc2969c(0x471)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x467)),'value':String(_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0xc2969c(0x30d)])},{'label':_0x1b4ed2['t'](_0xc2969c(0x1eb)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x43e)][_0xc2969c(0x281)])},{'label':_0x1b4ed2['t']('sheets-shape.line.arrowType.ovalArrow'),'value':String(_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0xc2969c(0x5dd)])}],_0x4ef3cc=[{'label':_0x1b4ed2['t'](_0xc2969c(0x1d7)),'value':String(_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0xc2969c(0x196)])},{'label':_0x1b4ed2['t']('sheets-shape.line.arrowSize.medium'),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x188)]['Medium'])},{'label':_0x1b4ed2['t'](_0xc2969c(0x23f)),'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x188)]['Large'])}];return(0x0,react_jsx_runtime[_0xc2969c(0x203)])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x254),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x203)])(_univerjs_design[_0xc2969c(0x2ae)],{'value':String(_0x440184),'disabled':_0x17ee37,'onChange':_0x25e0f4=>{const _0x165ce7=_0xc2969c;var _0x4e3ab2;_0x584db0(Number(_0x25e0f4)),updateShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x4e3ab2=_0x47caef[_0x165ce7(0x3ca)])===null||_0x4e3ab2===void 0x0?void 0x0:_0x4e3ab2[_0x165ce7(0x500)]}}},{'stroke':{'lineStrokeType':Number(_0x25e0f4)}});},'direction':_0xc2969c(0x1b1),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design['Radio'],{'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x212)][_0xc2969c(0x2b4)]),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x53f),{'className':_0xc2969c(0x46c),'children':_0x1b4ed2['t']('sheets-shape.line.noLine')})}),(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x3d1)],{'value':String(_univerjs_pro_engine_shape[_0xc2969c(0x212)][_0xc2969c(0x2d6)]),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x53f),{'className':_0xc2969c(0x46c),'children':_0x1b4ed2['t']('sheets-shape.line.solidLine')})})]}),_0x440184!==_univerjs_pro_engine_shape[_0xc2969c(0x212)][_0xc2969c(0x2b4)]&&(0x0,react_jsx_runtime[_0xc2969c(0x203)])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x2dc),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x203)])('div',{'className':_0xc2969c(0x551),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x53f),{'className':_0xc2969c(0x671),'children':_0x1b4ed2['t'](_0xc2969c(0x69a))}),(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x325)],{'disabled':_0x17ee37,'overlay':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x48c),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x5a7)],{'value':_0x19ff2c,'onChange':_0x2a73f6=>{const _0x111f01=_0xc2969c;var _0x2f8d21;updateShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'stroke':{'color':(_0x2f8d21=_0x47caef['stroke'])===null||_0x2f8d21===void 0x0?void 0x0:_0x2f8d21[_0x111f01(0x45a)]}}},{'stroke':{'color':_0x2a73f6}}),_0x2a6844(_0x2a73f6),_0xc61d7a(![]);}})}),'open':_0x1c4df2,'onOpenChange':_0xc61d7a,'children':(0x0,react_jsx_runtime[_0xc2969c(0x203)])('a',{'className':_0xc2969c(0x395),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':'univer-text-gray-500','extend':{'colorChannel1':_0x19ff2c}}),(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_icons[_0xc2969c(0x643)],{'className':(0x0,_univerjs_design[_0xc2969c(0x41b)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x1c4df2})})]})})]}),(0x0,react_jsx_runtime[_0xc2969c(0x203)])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x69e),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])('span',{'className':_0xc2969c(0x647),'children':_0x1b4ed2['t'](_0xc2969c(0x27f))}),(0x0,react_jsx_runtime[_0xc2969c(0x507)])('div',{'className':_0xc2969c(0x69e),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])('div',{'className':_0xc2969c(0x1bd),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x2ce)],{'className':_0xc2969c(0x1aa),'value':_0x2149e8,'disabled':_0x17ee37,'min':0x0,'max':0x64,'formatter':_0x3b1b69=>_0x3b1b69+'%','parser':_0x59b0e0=>(_0x59b0e0===null||_0x59b0e0===void 0x0?void 0x0:_0x59b0e0[_0xc2969c(0x315)]('%',''))||'','onChange':_0x675bef=>{const _0xc8c0e0=_0xc2969c;var _0x23899e;const _0x253adf=(0x64-Math[_0xc8c0e0(0x2c5)](0x0,Math[_0xc8c0e0(0x3b8)](0x64,_0x675bef!==null&&_0x675bef!==void 0x0?_0x675bef:0x0)))/0x64;_0x481f20(_0x253adf),updateShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'stroke':{'opacity':(_0x23899e=_0x47caef[_0xc8c0e0(0x3ca)])===null||_0x23899e===void 0x0?void 0x0:_0x23899e[_0xc8c0e0(0x1e1)]}}},{'stroke':{'opacity':_0x253adf}}),_0x463286['setContextValue'](_univerjs_core[_0xc8c0e0(0x4ce)],![]);},'onFocus':()=>_0x463286[_0xc2969c(0x1a0)](_univerjs_core[_0xc2969c(0x4ce)],!![]),'onBlur':_0x192593=>{const _0x2b6440=_0xc2969c;_0x463286[_0x2b6440(0x1a0)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})})]}),(0x0,react_jsx_runtime[_0xc2969c(0x203)])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x69e),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x53f),{'className':_0xc2969c(0x671),'children':_0x1b4ed2['t'](_0xc2969c(0x44c))}),(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x3aa),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x2ce)],{'className':_0xc2969c(0x1aa),'disabled':_0x17ee37,'value':_0x2b2e3b,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x110777=>_0x110777+_0xc2969c(0x592),'parser':_0x573991=>(_0x573991===null||_0x573991===void 0x0?void 0x0:_0x573991[_0xc2969c(0x315)](_0xc2969c(0x592),''))||'','onChange':_0xd05772=>{const _0x13440e=_0xc2969c;if(!Number[_0x13440e(0x31a)](_0xd05772)&&_0xd05772!==null){var _0x2ee3ee;updateShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'stroke':{'width':(_0x2ee3ee=_0x47caef[_0x13440e(0x3ca)])===null||_0x2ee3ee===void 0x0?void 0x0:_0x2ee3ee[_0x13440e(0x47c)]}}},{'stroke':{'width':_0xd05772}});}_0x463286[_0x13440e(0x1a0)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x463286['setContextValue'](_univerjs_core[_0xc2969c(0x4ce)],!![]),'onBlur':_0x1caeb7=>{const _0x1b07fc=_0xc2969c;_0x463286[_0x1b07fc(0x1a0)](_univerjs_core[_0x1b07fc(0x4ce)],![]);}})})]}),(0x0,react_jsx_runtime[_0xc2969c(0x203)])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x551),'children':[(0x0,react_jsx_runtime['jsx'])(_0xc2969c(0x53f),{'className':_0xc2969c(0x671),'children':_0x1b4ed2['t'](_0xc2969c(0x250))}),(0x0,react_jsx_runtime['jsx'])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x20c),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x68f)],{'className':_0xc2969c(0x1aa),'value':String(_0xac9933),'options':_0x1900c1,'disabled':_0x17ee37,'onChange':_0x1ad939=>{const _0x1320c0=_0xc2969c;var _0x3c6a50;_0x21a95f(Number(_0x1ad939)),updateShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'stroke':{'dashType':(_0x3c6a50=_0x47caef['stroke'])===null||_0x3c6a50===void 0x0?void 0x0:_0x3c6a50[_0x1320c0(0x2dd)]}}},{'stroke':{'dashType':Number(_0x1ad939)}});}})})]}),(0x0,react_jsx_runtime[_0xc2969c(0x203)])('div',{'className':_0xc2969c(0x551),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x53f),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1b4ed2['t'](_0xc2969c(0x251))}),(0x0,react_jsx_runtime['jsx'])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x20c),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x68f)],{'className':'univer-w-full','value':String(_0x270c51),'options':_0x3a060e,'disabled':_0x17ee37,'onChange':_0x3c7504=>{const _0x713b4a=_0xc2969c;var _0x5abee7;_0x5eb583(Number(_0x3c7504)),updateShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'stroke':{'capType':(_0x5abee7=_0x47caef[_0x713b4a(0x3ca)])===null||_0x5abee7===void 0x0?void 0x0:_0x5abee7[_0x713b4a(0x3de)]}}},{'stroke':{'capType':Number(_0x3c7504)}});}})})]}),(0x0,react_jsx_runtime[_0xc2969c(0x203)])(_0xc2969c(0x3aa),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x53f),{'className':_0xc2969c(0x671),'children':_0x1b4ed2['t']('sheets-shape.line.joinType.title')}),(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x20c),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0xc2969c(0x68f)],{'className':_0xc2969c(0x1aa),'value':String(_0x322fea),'options':_0x19250c,'disabled':_0x17ee37,'onChange':_0x2f5a2f=>{const _0x44b7a7=_0xc2969c;var _0xfb258;_0xdb7469(Number(_0x2f5a2f)),updateShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'stroke':{'lineJoinType':(_0xfb258=_0x47caef[_0x44b7a7(0x3ca)])===null||_0xfb258===void 0x0?void 0x0:_0xfb258[_0x44b7a7(0x3a7)]}}},{'stroke':{'lineJoinType':Number(_0x2f5a2f)}});}})})]}),!_0x323a68&&(0x0,react_jsx_runtime['jsxs'])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x551),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1b4ed2['t'](_0xc2969c(0x60c))}),(0x0,react_jsx_runtime['jsx'])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x20c),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':_0xc2969c(0x1aa),'value':String(_0x3920ab),'options':_0x589585,'disabled':_0x17ee37,'onChange':_0x4dd8ab=>{const _0x39f54f=_0xc2969c;var _0x3f1bd1;_0x5df633(Number(_0x4dd8ab)),updateShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'stroke':{'sketchType':(_0x3f1bd1=_0x47caef[_0x39f54f(0x3ca)])===null||_0x3f1bd1===void 0x0?void 0x0:_0x3f1bd1[_0x39f54f(0x464)]}}},{'stroke':{'sketchType':Number(_0x4dd8ab)}});}})})]}),_0x323a68&&(0x0,react_jsx_runtime[_0xc2969c(0x203)])(react_jsx_runtime[_0xc2969c(0x4ab)],{'children':[(0x0,react_jsx_runtime[_0xc2969c(0x203)])(_0xc2969c(0x3aa),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime['jsx'])(_0xc2969c(0x53f),{'className':_0xc2969c(0x671),'children':_0x1b4ed2['t'](_0xc2969c(0x14e))}),(0x0,react_jsx_runtime['jsx'])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x20c),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design['Select'],{'className':_0xc2969c(0x1aa),'value':String(_0x179e55),'options':_0x4336ee,'onChange':_0x4adc2e=>{const _0x34027d=_0xc2969c;var _0xad3061;_0x543374(Number(_0x4adc2e)),updateLineShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'ln':{'startArrow':{'type':(_0xad3061=_0x47caef['ln'])===null||_0xad3061===void 0x0||(_0xad3061=_0xad3061[_0x34027d(0x5d4)])===null||_0xad3061===void 0x0?void 0x0:_0xad3061[_0x34027d(0x361)]}}}},{'ln':{'startArrow':{'type':Number(_0x4adc2e)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0xc2969c(0x3aa),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x53f),{'className':_0xc2969c(0x671),'children':_0x1b4ed2['t']('sheets-shape.line.beginArrowSize')}),(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x3aa),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x68f)],{'className':_0xc2969c(0x1aa),'value':String(_0x328968),'options':_0x4ef3cc,'onChange':_0x3b9311=>{const _0x6acf0a=_0xc2969c;var _0x1ca372;_0x4d7260(Number(_0x3b9311)),updateLineShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x1ca372=_0x47caef['ln'])===null||_0x1ca372===void 0x0||(_0x1ca372=_0x1ca372[_0x6acf0a(0x5d4)])===null||_0x1ca372===void 0x0?void 0x0:_0x1ca372[_0x6acf0a(0x4d4)]}}}},{'ln':{'startArrow':{'size':Number(_0x3b9311)}}});}})})]}),(0x0,react_jsx_runtime[_0xc2969c(0x203)])('div',{'className':_0xc2969c(0x551),'children':[(0x0,react_jsx_runtime[_0xc2969c(0x507)])('span',{'className':_0xc2969c(0x671),'children':_0x1b4ed2['t'](_0xc2969c(0x4c6))}),(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_0xc2969c(0x3aa),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x68f)],{'className':_0xc2969c(0x1aa),'value':String(_0x33c668),'options':_0x4336ee,'onChange':_0xf8fcef=>{var _0x46848d;_0x1cad72(Number(_0xf8fcef)),updateLineShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x46848d=_0x47caef['ln'])===null||_0x46848d===void 0x0||(_0x46848d=_0x46848d['endArrow'])===null||_0x46848d===void 0x0?void 0x0:_0x46848d['type']}}}},{'ln':{'endArrow':{'type':Number(_0xf8fcef)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xc2969c(0x551),'children':[(0x0,react_jsx_runtime['jsx'])(_0xc2969c(0x53f),{'className':_0xc2969c(0x671),'children':_0x1b4ed2['t']('sheets-shape.line.endArrowSize')}),(0x0,react_jsx_runtime['jsx'])(_0xc2969c(0x3aa),{'className':_0xc2969c(0x20c),'children':(0x0,react_jsx_runtime[_0xc2969c(0x507)])(_univerjs_design[_0xc2969c(0x68f)],{'className':_0xc2969c(0x1aa),'value':String(_0x15a391),'options':_0x4ef3cc,'onChange':_0x2ce5b8=>{const _0x5b1a20=_0xc2969c;var _0x177421;_0x5ab888(Number(_0x2ce5b8)),updateLineShapeData(_0x52c009,_0x7c1979,_0x448c16,_0x4aec77,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x177421=_0x47caef['ln'])===null||_0x177421===void 0x0||(_0x177421=_0x177421['endArrow'])===null||_0x177421===void 0x0?void 0x0:_0x177421[_0x5b1a20(0x4d4)]}}}},{'ln':{'endArrow':{'size':Number(_0x2ce5b8)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x54ed97=_0x5a3cc9,_0xb98ab4=(0x0,_univerjs_ui[_0x54ed97(0x297)])(_univerjs_drawing[_0x54ed97(0x622)]),[_0xb94281,_0x3e7e8f]=(0x0,react[_0x54ed97(0x5e2)])(_0xb98ab4['getFocusDrawings']());(0x0,react[_0x54ed97(0x1ce)])(()=>{const _0xfe0ba7=_0x54ed97,_0x8be605=_0xb98ab4[_0xfe0ba7(0x533)]['subscribe'](_0x2a61c4=>{_0x3e7e8f(_0x2a61c4);});return()=>{_0x8be605['unsubscribe']();};},[]);if(_0xb94281[_0x54ed97(0x38e)]===0x0)return null;return(0x0,react_jsx_runtime[_0x54ed97(0x507)])('div',{'children':(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x54ed97(0x690),'children':[(0x0,react_jsx_runtime[_0x54ed97(0x507)])(_univerjs_drawing_ui['DrawingCommonPanel'],{'drawings':_0xb94281,'hasCropper':![]}),(0x0,react_jsx_runtime[_0x54ed97(0x507)])(_univerjs_sheets_drawing_ui[_0x54ed97(0x202)],{'drawings':_0xb94281})]})});}function ShapeEditPanel(_0x16b7f5){const _0x992a4d=_0x5a3cc9,{shapeData:_0xe1e752,shapeId:_0x3dc24a,shapeType:_0x4eec39,version:_0x1b7416,unitId:_0x1feb21,subUnitId:_0x2ef76d,disableShapeOption:_0x27fcd0}=_0x16b7f5,_0x4c4589=(0x0,_univerjs_ui[_0x992a4d(0x297)])(_univerjs_core['LocaleService']),_0x2dfeaa=(0x0,_univerjs_pro_engine_shape[_0x992a4d(0x3b6)])(_0x4eec39),[_0x86d579,_0x368869]=(0x0,react[_0x992a4d(0x5e2)])(0x0),_0x3c4306=[{'label':(0x0,react_jsx_runtime['jsx'])(_0x992a4d(0x3aa),{'children':_0x4c4589['t']('sheets-shape.fill.title')}),'children':(0x0,react_jsx_runtime[_0x992a4d(0x507)])('section',{'className':_0x992a4d(0x45c),'children':(0x0,react_jsx_runtime[_0x992a4d(0x507)])(ShapeFillEditor,{'shapeId':_0x3dc24a,'shapeData':_0xe1e752,'isLineShape':_0x2dfeaa,'subUnitId':_0x2ef76d,'unitId':_0x1feb21,'disableShapeOption':_0x27fcd0},_0x3dc24a)})},{'label':(0x0,react_jsx_runtime[_0x992a4d(0x507)])(_0x992a4d(0x3aa),{'children':_0x4c4589['t'](_0x992a4d(0x2ca))}),'children':(0x0,react_jsx_runtime[_0x992a4d(0x507)])('section',{'className':_0x992a4d(0x45c),'children':(0x0,react_jsx_runtime[_0x992a4d(0x507)])(ShapeLineEditor,{'shapeId':_0x3dc24a,'shapeData':_0xe1e752,'isLineShape':_0x2dfeaa,'subUnitId':_0x2ef76d,'unitId':_0x1feb21,'disableShapeOption':_0x27fcd0},_0x3dc24a)})}];return(0x0,react_jsx_runtime['jsxs'])(_0x992a4d(0x3aa),{'className':'univer-size-full','children':[(0x0,react_jsx_runtime[_0x992a4d(0x203)])('div',{'className':_0x992a4d(0x658),'children':[(0x0,react_jsx_runtime[_0x992a4d(0x203)])('div',{'className':(0x0,_univerjs_design['clsx'])(_0x992a4d(0x58a),_0x86d579===0x0?_0x992a4d(0x14a):'univer-text-gray-500'),'onClick':()=>_0x368869(0x0),'children':[_0x4c4589['t'](_0x992a4d(0x468)),(0x0,react_jsx_runtime[_0x992a4d(0x507)])(_0x992a4d(0x3aa),{'className':(0x0,_univerjs_design[_0x992a4d(0x41b)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md',{'univer-bg-primary-600':_0x86d579===0x0,'univer-bg-transparent':_0x86d579!==0x0})})]}),(0x0,react_jsx_runtime[_0x992a4d(0x203)])('div',{'className':(0x0,_univerjs_design[_0x992a4d(0x41b)])(_0x992a4d(0x58a),{'univer-text-primary-600':_0x86d579===0x1,'univer-text-gray-500':_0x86d579!==0x1}),'onClick':()=>_0x368869(0x1),'children':[_0x4c4589['t'](_0x992a4d(0x670)),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x992a4d(0x41b)])(_0x992a4d(0x25d),{'univer-bg-primary-600':_0x86d579===0x1,'univer-bg-transparent':_0x86d579!==0x1})})]})]}),(0x0,react_jsx_runtime[_0x992a4d(0x507)])(_0x992a4d(0x3aa),{'className':_0x992a4d(0x2a2),'children':_0x86d579===0x0?(0x0,react_jsx_runtime['jsx'])(_0x992a4d(0x3aa),{'className':'','children':(0x0,react_jsx_runtime[_0x992a4d(0x507)])(_univerjs_design[_0x992a4d(0x61c)],{'items':_0x3c4306})},_0x1b7416):(0x0,react_jsx_runtime[_0x992a4d(0x507)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x5a3cc9(0x522)]{constructor(_0x2b5ea5,_0x71b28){const _0xa0bd38=_0x5a3cc9;super(_0x2b5ea5,_0x71b28),_defineProperty(this,_0xa0bd38(0x2f5),null),_defineProperty(this,_0xa0bd38(0x450),null),_defineProperty(this,_0xa0bd38(0x486),null),_defineProperty(this,'_subUnitId',null);if(_0x71b28)this[_0xa0bd38(0x3e9)](_0x71b28);}[_0x5a3cc9(0x344)](){const _0x4f0068=_0x5a3cc9;return{'unitId':this[_0x4f0068(0x486)],'subUnitId':this[_0x4f0068(0x283)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x145a50){const _0x5201d5=_0x5a3cc9;if(typeof _0x145a50[_0x5201d5(0x525)]!==_0x5201d5(0x18e))this[_0x5201d5(0x2f5)]=_0x145a50[_0x5201d5(0x525)];if(typeof _0x145a50[_0x5201d5(0x13c)]!==_0x5201d5(0x18e))this[_0x5201d5(0x450)]=_0x145a50[_0x5201d5(0x13c)];if(typeof _0x145a50[_0x5201d5(0x4c0)]!=='undefined')this[_0x5201d5(0x486)]=_0x145a50[_0x5201d5(0x4c0)];if(typeof _0x145a50[_0x5201d5(0x2c2)]!==_0x5201d5(0x18e))this[_0x5201d5(0x283)]=_0x145a50['subUnitId'];this[_0x5201d5(0x53c)]({'width':_0x145a50[_0x5201d5(0x47c)],'height':_0x145a50[_0x5201d5(0x36a)]});}[_0x5a3cc9(0x49e)](_0x37a583){const _0x340117=_0x5a3cc9;_univerjs_engine_render['Circle'][_0x340117(0x1e4)](_0x37a583,{'radius':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x340117(0x47a)],'fill':_univerjs_pro_engine_shape[_0x340117(0x1d0)][_0x340117(0x13a)],'stroke':_univerjs_pro_engine_shape[_0x340117(0x1d0)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x4f35c2,_0x1e1e03,_0x5d4873,_0x386564,_0x36ebd8,_0x3a2f03,_0x879dd3,_0x4242c8){const _0xba9446=_0x5a3cc9;super(),this[_0xba9446(0x4c4)]=_0x4f35c2,this['_contextService']=_0x1e1e03,this[_0xba9446(0x2f7)]=_0x5d4873,this[_0xba9446(0x526)]=_0x386564,this[_0xba9446(0x5ac)]=_0x36ebd8,this[_0xba9446(0x4a6)]=_0x3a2f03,this[_0xba9446(0x382)]=_0x879dd3,this['_commandService']=_0x4242c8,_defineProperty(this,_0xba9446(0x4ba),null),_defineProperty(this,_0xba9446(0x486),null),_defineProperty(this,_0xba9446(0x283),null),_defineProperty(this,_0xba9446(0x484),void 0x0),_defineProperty(this,'_shapes',[]),_defineProperty(this,_0xba9446(0x167),0x0),_defineProperty(this,'_baseShapeTop',0x0),_defineProperty(this,_0xba9446(0x554),0x0),_defineProperty(this,_0xba9446(0x354),0x0),_defineProperty(this,_0xba9446(0x2cd),![]),_defineProperty(this,_0xba9446(0x4c9),void 0x0),_defineProperty(this,_0xba9446(0x23e),void 0x0),_defineProperty(this,_0xba9446(0x3fc),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,'_isShouldShowDrawingShapeAdjust',![]),this[_0xba9446(0x346)](),this[_0xba9446(0x459)]();}[_0x5a3cc9(0x3d4)](_0x5b7eb9,_0xd303b2,_0x298f2c){const _0x178c49=_0x5a3cc9,_0x29532d=this['_sheetsShapeService'][_0x178c49(0x2ea)](_0x5b7eb9,_0xd303b2,_0x298f2c);if(_0x29532d)return _0x29532d[_0x178c49(0x282)]();}['clearAdjustControls'](){const _0x37af42=_0x5a3cc9;this[_0x37af42(0x5f3)]();}[_0x5a3cc9(0x140)](){this['_updateShapeAdjustControls'](!![]);}[_0x5a3cc9(0x455)](_0x4e3e9c){const _0x65ff77=_0x5a3cc9;this[_0x65ff77(0x3e7)]=_0x4e3e9c;}[_0x5a3cc9(0x1e9)](_0x1618ac,_0xe71151,_0x28fccf,_0x2ec53c){const _0x2d004a=_0x5a3cc9,_0x201e3f=this[_0x2d004a(0x526)][_0x2d004a(0x2ea)](_0x1618ac,_0xe71151,_0x28fccf);if(_0x201e3f)return _0x201e3f[_0x2d004a(0x4a1)](_0x2ec53c);}['_createShapeAdjustControls'](_0x4ef64d=![]){const _0xca1f7=_0x5a3cc9;if(this[_0xca1f7(0x486)]===null||this[_0xca1f7(0x283)]===null||this[_0xca1f7(0x4ba)]===null)return;const _0x5b1901=this[_0xca1f7(0x5ac)][_0xca1f7(0x1bb)](this[_0xca1f7(0x486)]);if(!_0x5b1901)return;if(!_0x5b1901[_0xca1f7(0x463)](_univerjs_sheets_ui[_0xca1f7(0x3f5)])[_0xca1f7(0x21b)]())return;const {scene:_0x4d8db8}=_0x5b1901,_0x1acc53={'unitId':this[_0xca1f7(0x486)],'subUnitId':this[_0xca1f7(0x283)],'drawingId':this[_0xca1f7(0x4ba)]},_0x116173=this[_0xca1f7(0x2f7)][_0xca1f7(0x4ca)](_0x1acc53),{transform:_0x30e7b5}=_0x116173;if(!_0x30e7b5)return;if(_0x116173['drawingType']!==_univerjs_core[_0xca1f7(0x4d6)][_0xca1f7(0x224)])return;const {left:_0x47b60b,top:_0x25cd2f,width:_0x398a5f,height:_0x4ae552,flipX:_0x24e345,flipY:_0xd65d73,angle:angle=0x0}=_0x30e7b5;if(_0x47b60b===void 0x0||_0x25cd2f===void 0x0)return;if(_0x4ef64d)this[_0xca1f7(0x484)]=this[_0xca1f7(0x3d4)](this[_0xca1f7(0x486)],this[_0xca1f7(0x283)],this[_0xca1f7(0x4ba)]);const _0x44e858=this[_0xca1f7(0x484)];for(let _0x26265f=0x0;_0x26265f<_0x44e858[_0xca1f7(0x38e)];_0x26265f++){const _0x402628=_0x44e858[_0x26265f];let _0x52814a=_0x402628['x'],_0x317fd1=_0x402628['y'];if(_0x24e345)_0x52814a=(_0x398a5f||0x0)-_0x52814a;if(_0xd65d73)_0x317fd1=(_0x4ae552||0x0)-_0x317fd1;if(angle!==0x0){const _0x52062c=(_0x398a5f||0x0)/0x2,_0x4cd836=(_0x4ae552||0x0)/0x2,_0x2eda3b=angle*Math['PI']/0xb4,_0x315d3f=Math[_0xca1f7(0x501)](_0x2eda3b),_0x4510eb=Math['sin'](_0x2eda3b),_0x4937ef=_0x52814a-_0x52062c,_0x42f2a3=_0x317fd1-_0x4cd836;_0x52814a=_0x52062c+(_0x4937ef*_0x315d3f-_0x42f2a3*_0x4510eb),_0x317fd1=_0x4cd836+(_0x4937ef*_0x4510eb+_0x42f2a3*_0x315d3f);}const _0xaeec80={'x':_0x52814a,'y':_0x317fd1,'adjName':_0x402628[_0xca1f7(0x13c)]};this[_0xca1f7(0x32c)](_0x4d8db8,_0xaeec80,_0xaeec80['adjName'],_0x47b60b,_0x25cd2f,this[_0xca1f7(0x486)],this[_0xca1f7(0x283)]);}}['_updateShapeAdjustControls'](_0x4b17bf=![]){const _0x54d7cf=_0x5a3cc9;_0x4b17bf&&(this['_clearShapeAdjustControls'](),this[_0x54d7cf(0x65a)](_0x4b17bf));}[_0x5a3cc9(0x32c)](_0x111bf6,_0x4b38e7,_0x450fcf,_0x133490,_0x156735,_0x1978a7,_0x3b9986){const _0x5a7b17=_0x5a3cc9;if(!this['_activeShapeId'])return;const _0x46626e=_0x111bf6[_0x5a7b17(0x479)](_0x5a7b17(0x3dd)+this['_activeShapeId']+'-'+_0x450fcf);if(_0x46626e){_0x46626e[_0x5a7b17(0x53c)]({'left':_0x4b38e7['x']+_0x133490-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5a7b17(0x47a)],'top':_0x4b38e7['y']+_0x156735-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5a7b17(0x47a)]});return;}const _0x2645e2={'left':_0x4b38e7['x']+_0x133490-_univerjs_pro_engine_shape[_0x5a7b17(0x1d0)][_0x5a7b17(0x47a)],'top':_0x4b38e7['y']+_0x156735-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5a7b17(0x47a)],'adjName':_0x450fcf,'shapeId':this['_activeShapeId'],'unitId':_0x1978a7,'subUnitId':_0x3b9986,'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5a7b17(0x47a)]+0x8,'height':_univerjs_pro_engine_shape[_0x5a7b17(0x1d0)][_0x5a7b17(0x47a)]+0x8,'zIndex':_univerjs_engine_render[_0x5a7b17(0x49a)]+0x1,'evented':!![]},_0x3571c1=new SheetShapeAdjustPointObject(_0x5a7b17(0x3dd)+this['_activeShapeId']+'-'+_0x450fcf,_0x2645e2);this['_shapes'][_0x5a7b17(0x1d9)](_0x3571c1),this[_0x5a7b17(0x2e2)](_0x3571c1,_0x111bf6,_0x450fcf),_0x111bf6[_0x5a7b17(0x1bf)](_0x3571c1,_univerjs_engine_render[_0x5a7b17(0x49a)]+0x1);}[_0x5a3cc9(0x5f3)](){const _0x29441a=_0x5a3cc9;if(this[_0x29441a(0x55d)]['length']===0x0)return;this[_0x29441a(0x55d)][_0x29441a(0x67e)](_0x25fb7f=>{const _0x46a909=_0x29441a;_0x25fb7f[_0x46a909(0x46b)]();}),this['_shapes']=[];}[_0x5a3cc9(0x289)](){this['_createShapeAdjustControls']();}[_0x5a3cc9(0x696)](_0xef5266,_0x1b7717){const _0x3c6726=_0x5a3cc9;var _0x188959;const _0x16c893={'x':0x0,'y':0x0};if(!_0xef5266||!_0x1b7717)return _0x16c893;const _0x2da0c6=this['_renderManagerService']['getRenderById'](_0xef5266);if(!_0x2da0c6)return _0x16c893;if(!_0x2da0c6[_0x3c6726(0x463)](_univerjs_sheets_ui[_0x3c6726(0x3f5)])[_0x3c6726(0x51c)](_0x1b7717))return _0x16c893;const _0x51b7d4=_0x2da0c6['with'](_univerjs_sheets_ui[_0x3c6726(0x582)]),_0x41870c=_0x51b7d4===null||_0x51b7d4===void 0x0?void 0x0:_0x51b7d4['getCurrentScrollState']();if(!_0x41870c)return _0x16c893;const _0x382653=(_0x188959=this[_0x3c6726(0x382)][_0x3c6726(0x1ff)](_0xef5266))===null||_0x188959===void 0x0?void 0x0:_0x188959[_0x3c6726(0x4df)](_0x1b7717);if(!_0x382653)return _0x16c893;const _0x3f753b=(0x0,_univerjs_sheets_ui[_0x3c6726(0x61a)])(_0x41870c[_0x3c6726(0x30b)],_0x41870c[_0x3c6726(0x4d5)],_0x2da0c6[_0x3c6726(0x1ea)],_0x382653);if(!_0x3f753b)return _0x16c893;return{'x':_0x3f753b[_0x3c6726(0x366)],'y':_0x3f753b[_0x3c6726(0x313)]};}[_0x5a3cc9(0x2c4)](_0x50791,_0x277010){const _0x203734=_0x5a3cc9;var _0x498830,_0x21582a;const _0x11527f=(_0x498830=this['_univerInstanceService'][_0x203734(0x1ff)](_0x50791))===null||_0x498830===void 0x0?void 0x0:_0x498830[_0x203734(0x4df)](_0x277010);return(_0x21582a=_0x11527f===null||_0x11527f===void 0x0?void 0x0:_0x11527f[_0x203734(0x357)]())!==null&&_0x21582a!==void 0x0?_0x21582a:0x1;}['_attachAdjustEvent'](_0x357197,_0x48f33b,_0x271eee){const _0x95a010=_0x5a3cc9;this[_0x95a010(0x5b8)]((0x0,_univerjs_core[_0x95a010(0x2de)])(_0x357197[_0x95a010(0x60d)][_0x95a010(0x33e)]((_0x201852,_0xedffe6)=>{const _0x503adc=_0x95a010;var _0x5896b1,_0xdc0f92,_0x69f8df,_0x3155ed;const _0x15d067=_0x357197['getDrawingSearch']();this[_0x503adc(0x4c9)]=this[_0x503adc(0x1e9)](_0x15d067[_0x503adc(0x4c0)],_0x15d067[_0x503adc(0x2c2)],_0x15d067[_0x503adc(0x3bf)],_0x271eee),this[_0x503adc(0x23e)]=this[_0x503adc(0x526)]['getShapeModel'](_0x15d067[_0x503adc(0x4c0)],_0x15d067['subUnitId'],_0x15d067[_0x503adc(0x3bf)]);const _0xbd716f=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x503adc(0x486)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x503adc(0x4ba)]}),{transform:_0x2ffd95}=_0xbd716f;if(_0x2ffd95){const {left:_0x869e2b,top:_0x40a45b,width:_0x363dea,height:_0x19508b}=_0x2ffd95;this[_0x503adc(0x167)]=_0x869e2b||0x0,this[_0x503adc(0x508)]=_0x40a45b||0x0,this[_0x503adc(0x554)]=_0x363dea||0x0,this[_0x503adc(0x354)]=_0x19508b||0x0;}const _0x53f331=Boolean((_0x5896b1=_0xbd716f[_0x503adc(0x4db)])===null||_0x5896b1===void 0x0?void 0x0:_0x5896b1[_0x503adc(0x1cd)]),_0x63fbb7=Boolean((_0xdc0f92=_0xbd716f['transform'])===null||_0xdc0f92===void 0x0?void 0x0:_0xdc0f92[_0x503adc(0x1f4)]),_0x245c3f=((_0x69f8df=_0xbd716f[_0x503adc(0x4db)])===null||_0x69f8df===void 0x0?void 0x0:_0x69f8df[_0x503adc(0x54c)])||0x0;this[_0x503adc(0x2cd)]=!![],_0x48f33b[_0x503adc(0x2ba)]();const _0x396bd1=(_0x3155ed=this[_0x503adc(0x23e)])===null||_0x3155ed===void 0x0?void 0x0:_0x3155ed[_0x503adc(0x387)](_0x271eee),_0x3f5775={[_0x271eee]:_0x396bd1};this[_0x503adc(0x3fc)]=_0x48f33b[_0x503adc(0x63c)]['subscribeEvent']((_0x3668ea,_0x4e727d)=>{const _0x703da5=_0x503adc;if(!this['_isStartAdjusting'])return;const {offsetX:_0x5e3e89,offsetY:_0x16ecc1}=_0x3668ea,_0x21315b=this[_0x703da5(0x4c9)];if(this['_activeShapeModel']&&_0x21315b){_0x48f33b[_0x703da5(0x2ba)](),_0x48f33b[_0x703da5(0x490)](_univerjs_engine_render[_0x703da5(0x4fe)][_0x703da5(0x298)]);const _0x521a13={'left':0x0,'top':0x0,'width':this[_0x703da5(0x554)],'height':this['_baseShapeHeight']},_0x19ec4=this[_0x703da5(0x696)](this[_0x703da5(0x486)],this[_0x703da5(0x283)]),_0x33f9ea=this[_0x703da5(0x2c4)](this[_0x703da5(0x486)],this['_subUnitId']);let _0x4c0d16=_0x5e3e89/_0x33f9ea+_0x19ec4['x']-this[_0x703da5(0x167)],_0x31c235=_0x16ecc1/_0x33f9ea+_0x19ec4['y']-this[_0x703da5(0x508)];if(_0x245c3f!==0x0){const _0x2198c8=this[_0x703da5(0x554)]/0x2,_0x3be227=this[_0x703da5(0x354)]/0x2,_0x4814d4=_0x245c3f*Math['PI']/0xb4,_0x132c6b=Math[_0x703da5(0x501)](_0x4814d4),_0x5e65b3=Math[_0x703da5(0x2ac)](_0x4814d4),_0x30fb3e=_0x4c0d16-_0x2198c8,_0x19f724=_0x31c235-_0x3be227;_0x4c0d16=_0x2198c8+(_0x30fb3e*_0x132c6b+_0x19f724*_0x5e65b3),_0x31c235=_0x3be227+(-_0x30fb3e*_0x5e65b3+_0x19f724*_0x132c6b);}if(_0x53f331)_0x4c0d16=this['_baseShapeWidth']-_0x4c0d16;if(_0x63fbb7)_0x31c235=this[_0x703da5(0x354)]-_0x31c235;const _0x158bd9={'x':_0x4c0d16,'y':_0x31c235},_0x30e93e=this[_0x703da5(0x23e)]['calcAdjValue'](_0x521a13,_0x158bd9,_0x21315b,_0x53f331,_0x63fbb7),_0x5cf321=_0x21315b[_0x703da5(0x269)]||_0x21315b[_0x703da5(0x4ef)]||_0x21315b[_0x703da5(0x179)]||_0x21315b['gdRefR'];if(_0x5cf321===void 0x0)return;this[_0x703da5(0x23e)][_0x703da5(0x697)](_0x5cf321,_0x30e93e);const _0x3a9f95=this[_0x703da5(0x2f7)][_0x703da5(0x4ca)]({'unitId':_0x15d067[_0x703da5(0x4c0)],'subUnitId':_0x15d067[_0x703da5(0x2c2)],'drawingId':_0x15d067[_0x703da5(0x3bf)]});_0x3a9f95&&(this[_0x703da5(0x4a6)][_0x703da5(0x284)](_0x3a9f95,_0x48f33b),this[_0x703da5(0x484)]=this[_0x703da5(0x3d4)](_0x15d067[_0x703da5(0x4c0)],_0x15d067[_0x703da5(0x2c2)],_0x15d067[_0x703da5(0x3bf)]),this[_0x703da5(0x289)]());}_0x4e727d[_0x703da5(0x51a)]();}),this['_adjHandlerPointerUp']=_0x48f33b[_0x503adc(0x633)]['subscribeEvent']((_0x5a6190,_0x4c1247)=>{const _0x3cc1b5=_0x503adc;this[_0x3cc1b5(0x3fc)][_0x3cc1b5(0x34e)](),this[_0x3cc1b5(0x532)][_0x3cc1b5(0x34e)](),_0x48f33b[_0x3cc1b5(0x13b)]();const _0x4e604b=this[_0x3cc1b5(0x4c9)];if(_0x4e604b){const _0x25ed4f=_0x15d067[_0x3cc1b5(0x4c0)],_0x490bf0=_0x15d067[_0x3cc1b5(0x2c2)],_0x5dc51e=_0x15d067[_0x3cc1b5(0x3bf)],_0x6de3fb=_0x4e604b[_0x3cc1b5(0x269)]||_0x4e604b['gdRefY']||_0x4e604b[_0x3cc1b5(0x179)]||_0x4e604b[_0x3cc1b5(0x5b3)];if(_0x6de3fb!==void 0x0){var _0x1b73ba;const _0x3bb63a=(_0x1b73ba=this[_0x3cc1b5(0x23e)])===null||_0x1b73ba===void 0x0?void 0x0:_0x1b73ba[_0x3cc1b5(0x387)](_0x6de3fb);if(_0x3bb63a!==void 0x0)updateShapeData(this[_0x3cc1b5(0x187)],_0x25ed4f,_0x490bf0,_0x5dc51e,{'oldShapeData':{'adjustValues':_0x3f5775}},{'adjustValues':{[_0x6de3fb]:_0x3bb63a}});}}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x3cc1b5(0x2cd)]=![],_0x4c1247[_0x3cc1b5(0x51a)](),_0x48f33b['enableObjectsEvent']();}),_0xedffe6[_0x503adc(0x51a)]();})));}[_0x5a3cc9(0x459)](){const _0x4cb868=_0x5a3cc9,_0x33a2ac=this[_0x4cb868(0x382)][_0x4cb868(0x595)](_univerjs_core[_0x4cb868(0x374)][_0x4cb868(0x147)]);this[_0x4cb868(0x5b8)](_0x33a2ac[_0x4cb868(0x2d9)]((0x0,rxjs[_0x4cb868(0x309)])(_0x5d42e0=>{const _0x490bce=_0x4cb868;if(!_0x5d42e0)return rxjs[_0x490bce(0x3d5)];return _0x5d42e0['activeSheet$'][_0x490bce(0x2d9)]((0x0,rxjs['switchMap'])(_0x144db8=>{const _0x5cb532=_0x490bce;if(!_0x144db8)return rxjs['EMPTY'];const _0x52558a=_0x5d42e0[_0x5cb532(0x5dc)](),_0x586014=this[_0x5cb532(0x5ac)][_0x5cb532(0x1bb)](_0x52558a),_0x54a88a=_0x586014===null||_0x586014===void 0x0?void 0x0:_0x586014[_0x5cb532(0x1ea)];if(!_0x54a88a)return rxjs[_0x5cb532(0x3d5)];return(0x0,rxjs['of'])(_0x54a88a);}));}))[_0x4cb868(0x579)](_0x1bfb2e=>{const _0x456ae9=_0x4cb868,_0x3af2f5=_0x1bfb2e[_0x456ae9(0x3ab)]();this['disposeWithMe'](_0x1bfb2e['onPointerMove$'][_0x456ae9(0x33e)](()=>{const _0x178e45=_0x456ae9;if(this[_0x178e45(0x3e7)]){}})),this[_0x456ae9(0x5b8)](_0x3af2f5[_0x456ae9(0x381)]['subscribe'](_0x3065de=>{const _0x4739cf=_0x456ae9,{objects:_0x49be88}=_0x3065de;this[_0x4739cf(0x65a)]();if(_0x49be88!==null&&_0x49be88[_0x4739cf(0x4d4)]===0x1){if(_0x49be88[_0x4739cf(0x17c)]()[_0x4739cf(0x627)]()[_0x4739cf(0x38c)]instanceof DrawingShape)this['setShouldShowAdjust'](!![]);}})),this['disposeWithMe'](_0x3af2f5[_0x456ae9(0x68c)][_0x456ae9(0x579)](()=>{const _0x2ec40b=_0x456ae9;if(this['_isShouldShowDrawingShapeAdjust'])this[_0x2ec40b(0x5f3)]();})),this[_0x456ae9(0x5b8)](_0x1bfb2e[_0x456ae9(0x633)][_0x456ae9(0x33e)](()=>{const _0x557c6d=_0x456ae9;this[_0x557c6d(0x3e7)]&&(this[_0x557c6d(0x455)](![]),this['_createShapeAdjustControls']());})),this['disposeWithMe'](_0x3af2f5[_0x456ae9(0x638)][_0x456ae9(0x579)](()=>{const _0x3fce13=_0x456ae9;this['_unitId']&&this[_0x3fce13(0x283)]&&this[_0x3fce13(0x4ba)]&&(this[_0x3fce13(0x2f7)][_0x3fce13(0x4ca)]({'unitId':this['_unitId'],'subUnitId':this[_0x3fce13(0x283)],'drawingId':this[_0x3fce13(0x4ba)]})&&(this[_0x3fce13(0x484)]=this[_0x3fce13(0x3d4)](this['_unitId'],this[_0x3fce13(0x283)],this['_activeShapeId']),this['_updateAdjustControlPositions']()));}));}));}['_registerDrawingFocusChangeHandler'](){const _0x442275=_0x5a3cc9;this[_0x442275(0x5b8)](this[_0x442275(0x2f7)][_0x442275(0x533)][_0x442275(0x579)](_0x5b5793=>{const _0x4e73af=_0x442275;if(_0x5b5793[_0x4e73af(0x38e)]===0x1){const _0x207123=_0x5b5793[0x0];if(_0x207123[_0x4e73af(0x2a7)]===_univerjs_core[_0x4e73af(0x4d6)][_0x4e73af(0x224)]){this[_0x4e73af(0x4ba)]=_0x207123['drawingId'];const {unitId:_0x281657,subUnitId:_0x5513f1}=_0x207123;this[_0x4e73af(0x484)]=this[_0x4e73af(0x3d4)](_0x281657,_0x5513f1,this['_activeShapeId']),this['_unitId']=_0x281657,this[_0x4e73af(0x283)]=_0x5513f1,this[_0x4e73af(0x5f3)](),this[_0x4e73af(0x65a)]();}else this[_0x4e73af(0x4ba)]=null,this[_0x4e73af(0x484)]=void 0x0,this[_0x4e73af(0x486)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();}(_0x5b5793['length']>0x1||_0x5b5793[_0x4e73af(0x38e)]===0x0)&&(this[_0x4e73af(0x4ba)]=null,this[_0x4e73af(0x484)]=void 0x0,this[_0x4e73af(0x486)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());})),this[_0x442275(0x5b8)](this['_drawingManagerService'][_0x442275(0x60e)]['subscribe'](_0x373767=>{const _0x1eae6f=_0x442275;if(_0x373767[_0x1eae6f(0x38e)]===0x1){var _0xf4fc8a;const _0x8e2bd=_0x373767[0x0];if(((_0xf4fc8a=this[_0x1eae6f(0x2f7)][_0x1eae6f(0x4ca)](_0x8e2bd))===null||_0xf4fc8a===void 0x0?void 0x0:_0xf4fc8a[_0x1eae6f(0x2a7)])===_univerjs_core[_0x1eae6f(0x4d6)][_0x1eae6f(0x224)])this['_updateShapeAdjustControls'](!![]);}})),this[_0x442275(0x5b8)](this['_drawingManagerService'][_0x442275(0x3e3)][_0x442275(0x579)](_0x316cd9=>{const _0x166497=_0x442275;for(const _0x2b126 of _0x316cd9)this['_activeShapeId']===_0x2b126[_0x166497(0x3bf)]&&(this[_0x166497(0x4ba)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x166497(0x486)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core[_0x5a3cc9(0x460)]),__decorateParam(0x2,_univerjs_drawing[_0x5a3cc9(0x622)]),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x4,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_engine_render[_0x5a3cc9(0x5af)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core[_0x5a3cc9(0x1bc)]),__decorateParam(0x7,_univerjs_core[_0x5a3cc9(0x4bb)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x5a3cc9(0x62a),'type':_univerjs_core[_0x5a3cc9(0x5f7)][_0x5a3cc9(0x3b7)],'handler':(_0x2c8bb2,_0x569bc3)=>{const _0x409552=_0x5a3cc9,_0x4d5a6c=_0x2c8bb2[_0x409552(0x62d)](_univerjs_drawing[_0x409552(0x622)]),_0x447778=_0x2c8bb2['get'](_univerjs_engine_render[_0x409552(0x5af)]),_0x43489f=_0x2c8bb2['get'](SheetShapeAdjustController);if(_0x569bc3==null)return!![];if(_0x569bc3[_0x409552(0x38e)]>0x0){var _0x1e2dbe;const _0x4b63b1=(_0x1e2dbe=_0x447778[_0x409552(0x1bb)](_0x569bc3[0x0][_0x409552(0x4c0)]))===null||_0x1e2dbe===void 0x0?void 0x0:_0x1e2dbe[_0x409552(0x1ea)];if(_0x4b63b1){const {unitId:_0x429458,subUnitId:_0x10c405,drawingId:_0x3187fe}=_0x569bc3[0x0],_0x477dde=(0x0,_univerjs_drawing[_0x409552(0x550)])({'unitId':_0x429458,'subUnitId':_0x10c405,'drawingId':_0x3187fe},void 0x0),_0x440481=_0x4b63b1[_0x409552(0x479)](_0x477dde);if(_0x440481){var _0x374b67;(_0x374b67=_0x447778[_0x409552(0x1bb)](_0x569bc3[0x0][_0x409552(0x4c0)]))===null||_0x374b67===void 0x0||(_0x374b67=_0x374b67[_0x409552(0x1ea)][_0x409552(0x5e3)]())===null||_0x374b67===void 0x0||_0x374b67[_0x409552(0x5ae)](_0x440481);}}_0x4d5a6c[_0x409552(0x3eb)](_0x569bc3),_0x43489f['setShouldShowAdjust'](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x5a3cc9(0x5f7)][_0x5a3cc9(0x35a)],'id':_0x5a3cc9(0x242),'handler':async(_0x36fc9a,_0x4bc6f4)=>{const _0x3c1321=_0x5a3cc9,_0x2518ee=(0x0,_univerjs_sheets[_0x3c1321(0x5cc)])(_0x36fc9a['get'](_univerjs_core[_0x3c1321(0x1bc)]));if(!_0x2518ee)return![];const _0x5f3e3e=_0x36fc9a[_0x3c1321(0x62d)](_univerjs_sheets['SheetsSelectionsService'])[_0x3c1321(0x1e6)]();if(!_0x5f3e3e)return![];const _0x495538=_0x36fc9a['get'](_univerjs_core[_0x3c1321(0x4bb)]),{unitId:_0x5a588c,subUnitId:_0x5c081b}=_0x2518ee,{value:_0x1def86,enhanceParams:_0x285bb3}=_0x4bc6f4,{range:_0x4c4db0}=_0x5f3e3e,_0xdfe7cd={'unitId':_0x5a588c,'subUnitId':_0x5c081b,'shapeType':_0x1def86,'range':_0x4c4db0,'shapeId':(0x0,_univerjs_core[_0x3c1321(0x528)])()};if(_0x285bb3){const _0xa2860=(0x0,_univerjs_pro_engine_shape[_0x3c1321(0x3b6)])(_0x1def86),_0x47a1dd=_0x1def86===_univerjs_pro_engine_shape[_0x3c1321(0x3e8)]['Rect'];if(_0xa2860&&(_0x285bb3['startArrow']||_0x285bb3['endArrow']))_0xdfe7cd[_0x3c1321(0x150)]={'ln':{'startArrow':_0x285bb3[_0x3c1321(0x5d4)]?{'type':_univerjs_pro_engine_shape[_0x3c1321(0x43e)][_0x3c1321(0x4a8)],'size':_univerjs_pro_engine_shape[_0x3c1321(0x188)][_0x3c1321(0x29f)]}:void 0x0,'endArrow':_0x285bb3[_0x3c1321(0x31d)]?{'type':_univerjs_pro_engine_shape['ShapeArrowTypeEnum']['Arrow'],'size':_univerjs_pro_engine_shape[_0x3c1321(0x188)]['Large']}:void 0x0}};if(_0x47a1dd&&(_0x285bb3[_0x3c1321(0x15f)]||_0x285bb3[_0x3c1321(0x1b1)]))_0xdfe7cd[_0x3c1321(0x150)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x3c1321(0x47d)][_0x3c1321(0x226)],'color':_0x3c1321(0x18a)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x3c1321(0x212)][_0x3c1321(0x2d6)],'width':0x1,'color':_0x3c1321(0x4d0)},'shapeText':{'isHorizontal':!!_0x285bb3[_0x3c1321(0x15f)]}};}const _0x18b0a9=_0x495538[_0x3c1321(0x2bc)](_univerjs_pro_sheets_shape[_0x3c1321(0x2ef)]['id'],_0xdfe7cd);return setTimeout(()=>{const _0x50b880=_0x3c1321;_0x495538['executeCommand'](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x5a588c,'subUnitId':_0x5c081b,'drawingId':_0xdfe7cd[_0x50b880(0x525)]}]);},0xc8),_0x18b0a9;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x3fd1da,_0x9bca1e){const _0x4a5486=_0x5a3cc9;super(),this['_clipService']=_0x3fd1da,this[_0x4a5486(0x2f7)]=_0x9bca1e,this[_0x4a5486(0x47f)](),this[_0x4a5486(0x3c7)]['setCanUseShapeClip'](!![]),this[_0x4a5486(0x5b8)]({'dispose':()=>this[_0x4a5486(0x3c7)][_0x4a5486(0x2eb)](![])});}[_0x5a3cc9(0x47f)](){const _0x26ae1e=_0x5a3cc9,_0x50c680=this[_0x26ae1e(0x3c7)],_0x50aa31=new Map(),_0x48ffd8=_0x50c680[_0x26ae1e(0x52b)]((_0x3acb3a,_0x5eb3d4,_0x4f6d9f,_0x3fa6f8,_0x22b576)=>{const _0x508089=_0x26ae1e,_0x1a6fdd=_0x5eb3d4;if(_0x1a6fdd===_univerjs_pro_engine_shape[_0x508089(0x3e8)]['None']||_0x5eb3d4==='custom')return![];try{let _0x3984fd=_0x50aa31['get'](_0x5eb3d4);!_0x3984fd&&(_0x3984fd=new _univerjs_pro_engine_shape[(_0x508089(0x16a))](_0x1a6fdd,_0x508089(0x5d1)+_0x5eb3d4),_0x50aa31[_0x508089(0x2f2)](_0x5eb3d4,_0x3984fd));if(_0x22b576)_0x3984fd['setShapeData']({'adjustValues':_0x22b576},!![]);return _0x3984fd[_0x508089(0x4d3)]({'width':_0x4f6d9f,'height':_0x3fa6f8}),_0x3984fd[_0x508089(0x2a9)](_0x3acb3a,{'left':0x0,'top':0x0,'width':_0x4f6d9f,'height':_0x3fa6f8});}catch{return![];}});this[_0x26ae1e(0x5b8)](_0x48ffd8),this['disposeWithMe']({'dispose':()=>_0x50aa31[_0x26ae1e(0x1fd)]()});}[_0x5a3cc9(0x35e)](_0x32cc86,_0x4c2018,_0xf7d52d,_0x2108b3,_0x5613e5){const _0x3faa25=_0x5a3cc9,_0x2777f1=this[_0x3faa25(0x2f7)][_0x3faa25(0x51b)](_0x32cc86,_0x4c2018);if(!_0x2777f1[_0xf7d52d])return;const _0x56db0c={..._0x2777f1[_0xf7d52d],'prstGeom':_0x2108b3,'adjustValues':_0x5613e5};this[_0x3faa25(0x2f7)][_0x3faa25(0x5da)]([_0x56db0c]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_drawing_ui[_0x5a3cc9(0x531)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_drawing['IDrawingManagerService']))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x66b)],'icon':_0x5a3cc9(0x17e),'name':_0x5a3cc9(0x3ff)},{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x3ae)],'icon':_0x5a3cc9(0x639),'name':_0x5a3cc9(0x4e7),'endArrow':!![]},{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x3ae)],'icon':_0x5a3cc9(0x648),'name':'shape.type.straight-connector2','endArrow':!![],'startArrow':!![]},{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['BentConnector3'],'icon':_0x5a3cc9(0x5b0),'name':_0x5a3cc9(0x1b6)},{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x52e)],'icon':_0x5a3cc9(0x2e3),'name':_0x5a3cc9(0x235),'endArrow':!![]},{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x52e)],'icon':'ShapeBentConnector3Arrow2Icon','name':_0x5a3cc9(0x669),'endArrow':!![],'startArrow':!![]},{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x653)],'icon':'ShapeCurvedConnector3Icon','name':_0x5a3cc9(0x5b9)},{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x653)],'icon':_0x5a3cc9(0x523),'name':_0x5a3cc9(0x37e),'endArrow':!![]},{'group':_0x5a3cc9(0x2ab),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['CurvedConnector3'],'icon':_0x5a3cc9(0x302),'name':_0x5a3cc9(0x1a5),'endArrow':!![],'startArrow':!![]},{'group':_0x5a3cc9(0x384),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x207)],'icon':_0x5a3cc9(0x386),'name':'shape.type.rect'},{'group':_0x5a3cc9(0x384),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x4ad)],'icon':_0x5a3cc9(0x517),'name':'shape.type.round-rect'},{'group':_0x5a3cc9(0x384),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Snip1Rect'],'icon':_0x5a3cc9(0x68a),'name':_0x5a3cc9(0x223)},{'group':_0x5a3cc9(0x384),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x47e)],'icon':_0x5a3cc9(0x345),'name':'shape.type.snip2-same-rect'},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x161)],'icon':_0x5a3cc9(0x596),'name':_0x5a3cc9(0x1e5)},{'group':_0x5a3cc9(0x384),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x14b)],'icon':_0x5a3cc9(0x29b),'name':'shape.type.snip-round-rect'},{'group':_0x5a3cc9(0x384),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Round1Rect'],'icon':_0x5a3cc9(0x4b0),'name':_0x5a3cc9(0x434)},{'group':'rectangle','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x227)],'icon':'ShapeRound2SameRectIcon','name':_0x5a3cc9(0x33c)},{'group':_0x5a3cc9(0x384),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x3d8)],'icon':_0x5a3cc9(0x259),'name':_0x5a3cc9(0x327)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x207)],'icon':'ShapeRectTextboxHorizontalIcon','name':_0x5a3cc9(0x53e),'horizontal':!![]},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x207)],'icon':_0x5a3cc9(0x51e),'name':_0x5a3cc9(0x478),'vertical':!![]},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x148)],'icon':_0x5a3cc9(0x45b),'name':'shape.type.ellipse'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x63a)],'icon':_0x5a3cc9(0x41e),'name':_0x5a3cc9(0x362)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x2d0)],'icon':_0x5a3cc9(0x26e),'name':_0x5a3cc9(0x376)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Parallelogram'],'icon':_0x5a3cc9(0x67f),'name':_0x5a3cc9(0x3c9)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Trapezoid'],'icon':_0x5a3cc9(0x3b0),'name':_0x5a3cc9(0x266)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Diamond'],'icon':_0x5a3cc9(0x21f),'name':'shape.type.diamond'},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x15d)],'icon':_0x5a3cc9(0x5d9),'name':_0x5a3cc9(0x1ec)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x534)],'icon':'ShapeHexagonIcon','name':'shape.type.hexagon'},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Heptagon'],'icon':_0x5a3cc9(0x558),'name':_0x5a3cc9(0x2a1)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x4f2)],'icon':_0x5a3cc9(0x1ac),'name':_0x5a3cc9(0x1a3)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Decagon'],'icon':_0x5a3cc9(0x1a9),'name':_0x5a3cc9(0x698)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x4b8)],'icon':'ShapeDodecagonIcon','name':_0x5a3cc9(0x472)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x422)],'icon':_0x5a3cc9(0x42e),'name':_0x5a3cc9(0x2fa)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x152)],'icon':'ShapeChordIcon','name':'shape.type.chord'},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Teardrop'],'icon':'ShapeTeardropIcon','name':_0x5a3cc9(0x59f)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x574)],'icon':_0x5a3cc9(0x195),'name':'shape.type.frame'},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['HalfFrame'],'icon':_0x5a3cc9(0x3ba),'name':_0x5a3cc9(0x438)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x158)],'icon':_0x5a3cc9(0x367),'name':_0x5a3cc9(0x25c)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x437)],'icon':'ShapeDiagStripeIcon','name':_0x5a3cc9(0x276)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Plus'],'icon':_0x5a3cc9(0x64f),'name':_0x5a3cc9(0x348)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Plaque'],'icon':_0x5a3cc9(0x321),'name':_0x5a3cc9(0x2f1)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1fb)],'icon':_0x5a3cc9(0x5d0),'name':_0x5a3cc9(0x4b9)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Cube'],'icon':_0x5a3cc9(0x403),'name':_0x5a3cc9(0x43b)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x267)],'icon':_0x5a3cc9(0x43a),'name':_0x5a3cc9(0x3e4)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x4bc)],'icon':_0x5a3cc9(0x4ff),'name':_0x5a3cc9(0x264)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x22f)],'icon':'ShapeNoSmokingIcon','name':_0x5a3cc9(0x1e7)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x3a8)],'icon':_0x5a3cc9(0x183),'name':_0x5a3cc9(0x5a8)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x54f)],'icon':_0x5a3cc9(0x52d),'name':'shape.type.folder-corner'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x2d2)],'icon':'ShapeSmileyFaceIcon','name':'shape.type.smiley-face'},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x194)],'icon':_0x5a3cc9(0x3c1),'name':_0x5a3cc9(0x181)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LightningBolt'],'icon':_0x5a3cc9(0x444),'name':_0x5a3cc9(0x2e5)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x61d)],'icon':_0x5a3cc9(0x5c2),'name':'shape.type.sun'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Moon'],'icon':_0x5a3cc9(0x40d),'name':_0x5a3cc9(0x5b5)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x3e6)],'icon':'ShapeCloudIcon','name':'shape.type.cloud'},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Arc'],'icon':_0x5a3cc9(0x159),'name':'shape.type.arc'},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1a7)],'icon':'ShapeBracketPairIcon','name':_0x5a3cc9(0x56b)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x4ee)],'icon':'ShapeBracePairIcon','name':_0x5a3cc9(0x1cc)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['LeftBracket'],'icon':_0x5a3cc9(0x40c),'name':_0x5a3cc9(0x432)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['RightBracket'],'icon':_0x5a3cc9(0x42f),'name':'shape.type.right-bracket'},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x20b)],'icon':_0x5a3cc9(0x469),'name':_0x5a3cc9(0x439)},{'group':_0x5a3cc9(0x448),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x61f)],'icon':_0x5a3cc9(0x537),'name':_0x5a3cc9(0x617)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x404)],'icon':_0x5a3cc9(0x66a),'name':_0x5a3cc9(0x17a)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['LeftArrow'],'icon':_0x5a3cc9(0x50a),'name':_0x5a3cc9(0x4be)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x14f)],'icon':'ShapeUpArrowIcon','name':_0x5a3cc9(0x572)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x4b5)],'icon':'ShapeDownArrowIcon','name':_0x5a3cc9(0x4f7)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x2b5)],'icon':_0x5a3cc9(0x415),'name':'shape.type.left-right-arrow'},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['UpDownArrow'],'icon':_0x5a3cc9(0x37f),'name':_0x5a3cc9(0x2ee)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['QuadArrow'],'icon':_0x5a3cc9(0x615),'name':_0x5a3cc9(0x52c)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x36f)],'icon':_0x5a3cc9(0x154),'name':_0x5a3cc9(0x37c)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x214)],'icon':_0x5a3cc9(0x504),'name':_0x5a3cc9(0x655)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x249)],'icon':_0x5a3cc9(0x32a),'name':_0x5a3cc9(0x44f)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x5c8)],'icon':_0x5a3cc9(0x63d),'name':_0x5a3cc9(0x541)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x608)],'icon':_0x5a3cc9(0x67b),'name':'shape.type.bent-up-arrow'},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x557)],'icon':_0x5a3cc9(0x660),'name':_0x5a3cc9(0x424)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x497)],'icon':_0x5a3cc9(0x138),'name':_0x5a3cc9(0x50f)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x475)],'icon':_0x5a3cc9(0x3dc),'name':_0x5a3cc9(0x65d)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x295)],'icon':_0x5a3cc9(0x5bf),'name':_0x5a3cc9(0x42a)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['StripedRightArrow'],'icon':'ShapeStripedRightArrowIcon','name':_0x5a3cc9(0x2b9)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NotchedRightArrow'],'icon':_0x5a3cc9(0x52a),'name':_0x5a3cc9(0x4aa)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x2e0)],'icon':_0x5a3cc9(0x205),'name':_0x5a3cc9(0x273)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Chevron'],'icon':_0x5a3cc9(0x642),'name':_0x5a3cc9(0x2d8)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1ef)],'icon':_0x5a3cc9(0x234),'name':'shape.type.right-arrow-callout'},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x492)],'icon':'ShapeDownArrowCalloutIcon','name':_0x5a3cc9(0x618)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['LeftArrowCallout'],'icon':'ShapeLeftArrowCalloutIcon','name':'shape.type.left-arrow-callout'},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['UpArrowCallout'],'icon':_0x5a3cc9(0x4cf),'name':_0x5a3cc9(0x285)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x220)],'icon':_0x5a3cc9(0x1d6),'name':_0x5a3cc9(0x36b)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['QuadArrowCallout'],'icon':_0x5a3cc9(0x1a6),'name':_0x5a3cc9(0x599)},{'group':_0x5a3cc9(0x23b),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x22e)],'icon':_0x5a3cc9(0x411),'name':'shape.type.circular-arrow'},{'group':_0x5a3cc9(0x2f6),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['MathPlus'],'icon':_0x5a3cc9(0x50c),'name':_0x5a3cc9(0x1ab)},{'group':_0x5a3cc9(0x2f6),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x5a0)],'icon':_0x5a3cc9(0x4c8),'name':'shape.type.math-minus'},{'group':_0x5a3cc9(0x2f6),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x489)],'icon':'ShapeMathMultiplyIcon','name':_0x5a3cc9(0x38b)},{'group':_0x5a3cc9(0x2f6),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x3d3)],'icon':'ShapeMathDivideIcon','name':'shape.type.math-divide'},{'group':'equationShape','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['MathEqual'],'icon':_0x5a3cc9(0x174),'name':_0x5a3cc9(0x1c8)},{'group':_0x5a3cc9(0x2f6),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1c1)],'icon':'ShapeMathNotEqualIcon','name':'shape.type.math-not-equal'},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x4ec)],'icon':'ShapeFlowChartProcessIcon','name':'shape.type.flow-chart-process'},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['FlowchartAlternateProcess'],'icon':_0x5a3cc9(0x22a),'name':'shape.type.flow-chart-alternate-process'},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1ae)],'icon':'ShapeFlowChartDecisionIcon','name':_0x5a3cc9(0x402)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x27d)],'icon':'ShapeFlowChartInputOutputIcon','name':'shape.type.flow-chart-input-output'},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['FlowchartPredefinedProcess'],'icon':_0x5a3cc9(0x240),'name':_0x5a3cc9(0x58f)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x48d)],'icon':_0x5a3cc9(0x59d),'name':_0x5a3cc9(0x368)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartDocument'],'icon':_0x5a3cc9(0x5c7),'name':'shape.type.flow-chart-document'},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['FlowchartMultiDocument'],'icon':_0x5a3cc9(0x258),'name':_0x5a3cc9(0x3fa)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x392)],'icon':_0x5a3cc9(0x498),'name':_0x5a3cc9(0x375)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartPreparation'],'icon':_0x5a3cc9(0x390),'name':_0x5a3cc9(0x4bd)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x43c)],'icon':_0x5a3cc9(0x442),'name':_0x5a3cc9(0x312)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x232)],'icon':'ShapeFlowChartManualOperationIcon','name':_0x5a3cc9(0x306)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1a4)],'icon':'ShapeFlowChartConnectorIcon','name':'shape.type.flow-chart-connector'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x496)],'icon':_0x5a3cc9(0x556),'name':_0x5a3cc9(0x63b)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['FlowchartPunchedCard'],'icon':'ShapeFlowChartPunchedCardIcon','name':'shape.type.flow-chart-punched-card'},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x5fe)],'icon':_0x5a3cc9(0x4d1),'name':'shape.type.flow-chart-punched-tape'},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartSummingJunction'],'icon':_0x5a3cc9(0x41c),'name':_0x5a3cc9(0x632)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x18d)],'icon':_0x5a3cc9(0x301),'name':_0x5a3cc9(0x2c8)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x221)],'icon':_0x5a3cc9(0x391),'name':_0x5a3cc9(0x239)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x54e)],'icon':_0x5a3cc9(0x4d2),'name':_0x5a3cc9(0x270)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x3ed)],'icon':'ShapeFlowChartExtractIcon','name':_0x5a3cc9(0x626)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x62f)],'icon':_0x5a3cc9(0x2c7),'name':_0x5a3cc9(0x177)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x69b)],'icon':'ShapeFlowChartOnlineStorageIcon','name':'shape.type.flow-chart-online-storage'},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartDelay'],'icon':_0x5a3cc9(0x1a8),'name':_0x5a3cc9(0x1be)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x39b)],'icon':_0x5a3cc9(0x287),'name':'shape.type.flow-chart-magnetic-tape'},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x206)],'icon':_0x5a3cc9(0x53d),'name':_0x5a3cc9(0x33b)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x3a3)],'icon':_0x5a3cc9(0x646),'name':_0x5a3cc9(0x451)},{'group':_0x5a3cc9(0x359),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x4e9)],'icon':_0x5a3cc9(0x5ab),'name':_0x5a3cc9(0x65f)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x62e)],'icon':_0x5a3cc9(0x15a),'name':_0x5a3cc9(0x330)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x3a2)],'icon':_0x5a3cc9(0x351),'name':_0x5a3cc9(0x566)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x40a)],'icon':_0x5a3cc9(0x563),'name':_0x5a3cc9(0x31f)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x5de)],'icon':'ShapeStar5Icon','name':'shape.type.star5'},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1a1)],'icon':_0x5a3cc9(0x356),'name':'shape.type.star6'},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x19c)],'icon':_0x5a3cc9(0x676),'name':'shape.type.star7'},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x36c)],'icon':_0x5a3cc9(0x1db),'name':'shape.type.star8'},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1a2)],'icon':_0x5a3cc9(0x160),'name':'shape.type.star10'},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x135)],'icon':_0x5a3cc9(0x2c3),'name':_0x5a3cc9(0x4b3)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x3b9)],'icon':_0x5a3cc9(0x414),'name':_0x5a3cc9(0x19e)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x538)],'icon':_0x5a3cc9(0x3c4),'name':_0x5a3cc9(0x1c6)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Star32'],'icon':_0x5a3cc9(0x4fd),'name':'shape.type.star32'},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x230)],'icon':_0x5a3cc9(0x2be),'name':_0x5a3cc9(0x35b)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['Ribbon'],'icon':_0x5a3cc9(0x2b0),'name':_0x5a3cc9(0x650)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x65e)],'icon':_0x5a3cc9(0x401),'name':'shape.type.ellipse-ribbon2'},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x4c7)],'icon':_0x5a3cc9(0x5e6),'name':_0x5a3cc9(0x584)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x2c1)],'icon':_0x5a3cc9(0x3b1),'name':_0x5a3cc9(0x3e2)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x480)],'icon':_0x5a3cc9(0x5ef),'name':'shape.type.horizontal-scroll'},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x341)],'icon':_0x5a3cc9(0x339),'name':_0x5a3cc9(0x58b)},{'group':_0x5a3cc9(0x1b5),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['DoubleWave'],'icon':'ShapeDoubleWaveIcon','name':_0x5a3cc9(0x200)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x2e4)],'icon':_0x5a3cc9(0x62c),'name':'shape.type.wedge-rect-callout'},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['WedgeRoundRectCallout'],'icon':_0x5a3cc9(0x413),'name':_0x5a3cc9(0x64d)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['WedgeEllipseCallout'],'icon':_0x5a3cc9(0x42d),'name':_0x5a3cc9(0x542)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x693)],'icon':'ShapeCloudCalloutIcon','name':_0x5a3cc9(0x323)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['BorderCallout1'],'icon':_0x5a3cc9(0x50b),'name':_0x5a3cc9(0x423)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1d2)],'icon':_0x5a3cc9(0x5e1),'name':_0x5a3cc9(0x481)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1f7)],'icon':'ShapeBorderCallout3Icon','name':_0x5a3cc9(0x652)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x189)],'icon':'ShapeAccentCallout1Icon','name':'shape.type.accent-callout1'},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x4e1)],'icon':_0x5a3cc9(0x5a2),'name':_0x5a3cc9(0x674)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x1c3)],'icon':_0x5a3cc9(0x57b),'name':_0x5a3cc9(0x3df)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x2b8)],'icon':_0x5a3cc9(0x5a9),'name':_0x5a3cc9(0x170)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x470)],'icon':'ShapeCallout2Icon','name':_0x5a3cc9(0x26f)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x3b5)],'icon':'ShapeCallout3Icon','name':_0x5a3cc9(0x1f2)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['AccentBorderCallout1'],'icon':_0x5a3cc9(0x383),'name':_0x5a3cc9(0x28b)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['AccentBorderCallout2'],'icon':'ShapeAccentBorderCallout2Icon','name':_0x5a3cc9(0x29a)},{'group':_0x5a3cc9(0x178),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['AccentBorderCallout3'],'icon':_0x5a3cc9(0x505),'name':'shape.type.accent-border-callout3'},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x26a)],'icon':_0x5a3cc9(0x308),'name':'shape.type.left-circular-arrow'},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1f5)],'icon':_0x5a3cc9(0x512),'name':_0x5a3cc9(0x5d3)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x22c)],'icon':'ShapeSwooshArrowIcon','name':_0x5a3cc9(0x184)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x201)],'icon':_0x5a3cc9(0x682),'name':_0x5a3cc9(0x5c4)},{'group':'other','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['PieWedge'],'icon':_0x5a3cc9(0x610),'name':_0x5a3cc9(0x318)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1b7)],'icon':_0x5a3cc9(0x5be),'name':_0x5a3cc9(0x55c)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x662)],'icon':'ShapeGear6Icon','name':_0x5a3cc9(0x4c3)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x3b3)],'icon':'ShapeGear9Icon','name':_0x5a3cc9(0x63e)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['CornerTabs'],'icon':'ShapeCornerTabsIcon','name':_0x5a3cc9(0x3af)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x4b1)],'icon':_0x5a3cc9(0x5cb),'name':'shape.type.action-button-back-previous'},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x385)],'icon':'ShapeActionButtonForwardNextIcon','name':_0x5a3cc9(0x24b)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['ActionButtonBeginning'],'icon':'ShapeActionButtonBeginningIcon','name':_0x5a3cc9(0x378)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x279)],'icon':_0x5a3cc9(0x1c7),'name':'shape.type.action-button-end'},{'group':'other','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['ActionButtonHome'],'icon':_0x5a3cc9(0x3fe),'name':_0x5a3cc9(0x553)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x1f8)],'icon':'ShapeActionButtonInformationIcon','name':_0x5a3cc9(0x163)},{'group':'other','type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x32e)],'icon':_0x5a3cc9(0x57f),'name':'shape.type.action-button-return'},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x483)],'icon':_0x5a3cc9(0x57e),'name':'shape.type.action-button-movie'},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonDocument'],'icon':_0x5a3cc9(0x1fa),'name':_0x5a3cc9(0x56e)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x350)],'icon':_0x5a3cc9(0x292),'name':_0x5a3cc9(0x465)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x587)],'icon':_0x5a3cc9(0x149),'name':_0x5a3cc9(0x176)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonBlank'],'icon':'ShapeActionButtonBlankIcon','name':_0x5a3cc9(0x445)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1b9)],'icon':_0x5a3cc9(0x5b7),'name':'shape.type.chart-plus'},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x456)],'icon':'ShapeChartStarIcon','name':_0x5a3cc9(0x19a)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x28c)],'icon':_0x5a3cc9(0x45f),'name':'shape.type.chart-x'},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['FlowChartOfflineStorage'],'icon':_0x5a3cc9(0x165),'name':'shape.type.flow-chart-offline-storage'},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['LineInv'],'icon':_0x5a3cc9(0x17f),'name':'shape.type.line-inv'},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x1ed)],'icon':_0x5a3cc9(0x462),'name':_0x5a3cc9(0x654)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)]['SquareTabs'],'icon':_0x5a3cc9(0x418),'name':_0x5a3cc9(0x667)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x5a3cc9(0x35c)],'icon':'ShapeUpDownArrowCalloutIcon','name':_0x5a3cc9(0x3f0)},{'group':_0x5a3cc9(0x568),'type':_univerjs_pro_engine_shape[_0x5a3cc9(0x3e8)][_0x5a3cc9(0x24c)],'icon':_0x5a3cc9(0x66f),'name':_0x5a3cc9(0x204)}],SHAPE_PICKER_COMPONENT=_0x5a3cc9(0x3f4);function ShapePickerComponent({onShapeClick:_0x215533,excludeGroups:_0x258cd6}){const _0x322e95=_0x5a3cc9,_0x5894cf=(0x0,_univerjs_ui[_0x322e95(0x297)])(_univerjs_core['LocaleService']),_0x4574c0=(0x0,_univerjs_ui['useDependency'])(_univerjs_ui[_0x322e95(0x2d7)]),_0x1a59f3=(_0x258cd6?shapeTypeOptions[_0x322e95(0x1c0)](_0x1ad47a=>!_0x258cd6[_0x322e95(0x570)](_0x1ad47a[_0x322e95(0x441)])):shapeTypeOptions)[_0x322e95(0x4ea)]((_0x1c0735,_0x1d2135)=>{const _0x2db126=_0x322e95;if(!_0x1c0735[_0x1d2135[_0x2db126(0x441)]])_0x1c0735[_0x1d2135[_0x2db126(0x441)]]=[];return _0x1c0735[_0x1d2135['group']][_0x2db126(0x1d9)](_0x1d2135),_0x1c0735;},{});return(0x0,react_jsx_runtime[_0x322e95(0x507)])('div',{'className':_0x322e95(0x673),'children':Object[_0x322e95(0x1dc)](_0x1a59f3)[_0x322e95(0x40e)](([_0x3b83f6,_0x576b41])=>(0x0,react_jsx_runtime[_0x322e95(0x203)])(_0x322e95(0x3aa),{'className':_0x322e95(0x466),'children':[(0x0,react_jsx_runtime[_0x322e95(0x507)])('div',{'className':'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','children':_0x5894cf['t']('shape.group.'+_0x3b83f6)}),(0x0,react_jsx_runtime['jsx'])(_0x322e95(0x3aa),{'className':_0x322e95(0x66d),'children':_0x576b41[_0x322e95(0x40e)](_0x19461f=>{const _0x4605f5=_0x322e95,_0x34edf5=_0x4574c0['get'](_0x19461f[_0x4605f5(0x64e)]);return(0x0,react_jsx_runtime[_0x4605f5(0x507)])(_0x4605f5(0x3aa),{'title':_0x5894cf['t'](_0x19461f[_0x4605f5(0x164)]),'onClick':()=>_0x215533(_0x19461f),'className':_0x4605f5(0x305),'children':_0x34edf5&&(0x0,react_jsx_runtime[_0x4605f5(0x507)])(_0x34edf5,{'className':_0x4605f5(0x67a)})},_0x19461f['name']);})})]},_0x3b83f6))});}function ImageClipShapePicker(){const _0x11ea6e=_0x5a3cc9,_0x3b5b39=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x11ea6e(0x5d6)]),_0x2847cd=(0x0,_univerjs_ui[_0x11ea6e(0x297)])(_univerjs_drawing[_0x11ea6e(0x622)]),_0x5e0173=(0x0,_univerjs_ui['useDependency'])(ImageShapeClipController),[_0x27b73b,_0x4ccad8]=(0x0,react['useState'])(![]),_0x53f03d=_0x441d80=>{const _0x593c6a=_0x11ea6e,_0xfc1c38=_0x2847cd[_0x593c6a(0x5f5)]()[_0x593c6a(0x482)](_0x13143c=>_0x13143c['drawingType']===_univerjs_core[_0x593c6a(0x4d6)][_0x593c6a(0x589)]);if(!_0xfc1c38)return;const {unitId:_0x577eb9,subUnitId:_0x354980,drawingId:_0x35330c}=_0xfc1c38;_0x5e0173[_0x593c6a(0x35e)](_0x577eb9,_0x354980,_0x35330c,_0x441d80[_0x593c6a(0x361)]),_0x4ccad8(![]);};return(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x11ea6e(0x325)],{'side':'left','open':_0x27b73b,'onOpenChange':_0x4ccad8,'overlay':(0x0,react_jsx_runtime[_0x11ea6e(0x507)])(ShapePickerComponent,{'onShapeClick':_0x53f03d,'excludeGroups':[_0x11ea6e(0x2ab)]}),'children':(0x0,react_jsx_runtime[_0x11ea6e(0x507)])(_univerjs_design['Button'],{'children':_0x3b5b39['t'](_0x11ea6e(0x62b))})});}function ShapePicker(){const _0x54241a=_0x5a3cc9,_0x3b61d8=(0x0,_univerjs_ui[_0x54241a(0x297)])(_univerjs_core[_0x54241a(0x4bb)]),_0x34b997=_0x4ebe94=>{const _0x1bb9eb=_0x54241a;_0x3b61d8[_0x1bb9eb(0x343)](MenuInsertShapeCommand['id'],{'value':_0x4ebe94['type'],'enhanceParams':{'endArrow':_0x4ebe94[_0x1bb9eb(0x31d)],'startArrow':_0x4ebe94[_0x1bb9eb(0x5d4)],'horizontal':_0x4ebe94['horizontal'],'vertical':_0x4ebe94[_0x1bb9eb(0x1b1)]}});};return(0x0,react_jsx_runtime[_0x54241a(0x507)])(ShapePickerComponent,{'onShapeClick':_0x34b997});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':'align.left','icon':_0x5a3cc9(0x581),'value':_univerjs_core[_0x5a3cc9(0x3f9)][_0x5a3cc9(0x1b0)]},{'label':'align.center','icon':_0x5a3cc9(0x388),'value':_univerjs_core[_0x5a3cc9(0x3f9)][_0x5a3cc9(0x5ed)]},{'label':_0x5a3cc9(0x4dd),'icon':_0x5a3cc9(0x679),'value':_univerjs_core['HorizontalAlign'][_0x5a3cc9(0x26b)]}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x4249e4){const _0x57ee35=_0x5a3cc9,_0x976381=_0x4249e4[_0x57ee35(0x62d)](_univerjs_core['IContextService']),_0x12f183=_0x4249e4[_0x57ee35(0x62d)](_univerjs_core['ThemeService']);return{'id':_univerjs_docs_ui['SetInlineFormatTextBackgroundColorCommand']['id'],'tooltip':_0x57ee35(0x5d2),'type':_univerjs_ui[_0x57ee35(0x619)]['BUTTON_SELECTOR'],'icon':_0x57ee35(0x60b),'selections':[{'label':{'name':_univerjs_ui[_0x57ee35(0x56d)],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x57ee35(0x144))](_0x5dda1b=>{const _0x11fd2b=_0x57ee35;_0x5dda1b[_0x11fd2b(0x627)](_0x12f183[_0x11fd2b(0x33d)](_0x11fd2b(0x59a)));}),'hidden$':_0x976381[_0x57ee35(0x4eb)](_univerjs_core[_0x57ee35(0x277)])['pipe']((0x0,rxjs[_0x57ee35(0x236)])(_0x976381['getContextValue'](_univerjs_core[_0x57ee35(0x277)])),(0x0,rxjs['map'])(_0x2c1118=>!_0x2c1118))};}function ShapeResetBackgroundColorMenuItemFactory(_0x141e6d){const _0x1c76d3=_0x5a3cc9,_0x50ab76=_0x141e6d[_0x1c76d3(0x62d)](_univerjs_core[_0x1c76d3(0x460)]);return{'id':_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id'],'type':_univerjs_ui[_0x1c76d3(0x619)][_0x1c76d3(0x2a4)],'title':_0x1c76d3(0x1c2),'hidden$':_0x50ab76['subscribeContextValue$'](_univerjs_core[_0x1c76d3(0x277)])[_0x1c76d3(0x2d9)]((0x0,rxjs['startWith'])(_0x50ab76['getContextValue'](_univerjs_core[_0x1c76d3(0x277)])),(0x0,rxjs[_0x1c76d3(0x40e)])(_0x3d50a7=>!_0x3d50a7))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x5a3cc9(0x2db),'icon':_0x5a3cc9(0x581),'value':_univerjs_core[_0x5a3cc9(0x3f9)]['LEFT']},{'label':_0x5a3cc9(0x16b),'icon':_0x5a3cc9(0x388),'value':_univerjs_core[_0x5a3cc9(0x3f9)]['CENTER']},{'label':_0x5a3cc9(0x4dd),'icon':_0x5a3cc9(0x679),'value':_univerjs_core['HorizontalAlign'][_0x5a3cc9(0x26b)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x19a05c){const _0x96ffe6=_0x5a3cc9;var _0x8840ce;const _0x198290=_0x19a05c[_0x96ffe6(0x62d)](_univerjs_core['ICommandService']),_0x283fbb=_0x19a05c[_0x96ffe6(0x62d)](_univerjs_core[_0x96ffe6(0x460)]),_0x4d0011=_0x19a05c[_0x96ffe6(0x62d)](_univerjs_sheets_drawing['ISheetDrawingService']),_0x422329=_0x19a05c[_0x96ffe6(0x62d)](ShapeTextEditingService),_0x5f26f7=_0x19a05c[_0x96ffe6(0x62d)](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x17a8f5=_univerjs_core[_0x96ffe6(0x3f9)][_0x96ffe6(0x1b0)],_0x4fafe3=()=>{const _0xd2da51=_0x96ffe6;var _0x21caab;const _0x39eae2=_0x4d0011['getFocusDrawings']()[_0xd2da51(0x1c0)](_0x1a5a80=>_0x1a5a80[_0xd2da51(0x2a7)]===_univerjs_core[_0xd2da51(0x4d6)]['DRAWING_SHAPE']);if(_0x39eae2[_0xd2da51(0x38e)]!==0x1)return _0x17a8f5;const _0x470f41=_0x422329[_0xd2da51(0x275)](),_0x4e1ed9=(_0x470f41===null||_0x470f41===void 0x0?void 0x0:_0x470f41[_0xd2da51(0x4c0)])||_0x39eae2[0x0][_0xd2da51(0x4c0)],_0x5113dc=(_0x470f41===null||_0x470f41===void 0x0?void 0x0:_0x470f41[_0xd2da51(0x2c2)])||_0x39eae2[0x0][_0xd2da51(0x2c2)],_0x3b898b=(_0x470f41===null||_0x470f41===void 0x0?void 0x0:_0x470f41['shapeId'])||_0x39eae2[0x0][_0xd2da51(0x3bf)],_0x3f9786=_0x5f26f7[_0xd2da51(0x2ea)](_0x4e1ed9,_0x5113dc,_0x3b898b);if(!_0x3f9786)return _0x17a8f5;const _0x403a79=_0x3f9786[_0xd2da51(0x372)]();if(!_0x403a79||!(_0xd2da51(0x2c6)in _0x403a79))return _0x17a8f5;const _0x542742=_0x403a79[_0xd2da51(0x2c6)];return(_0x21caab=_0x542742===null||_0x542742===void 0x0?void 0x0:_0x542742['ha'])!==null&&_0x21caab!==void 0x0?_0x21caab:_0x17a8f5;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x8840ce=SHAPE_HORIZONTAL_ALIGN_CHILDREN['find'](_0x3f628e=>_0x3f628e[_0x96ffe6(0x38c)]===_0x17a8f5))===null||_0x8840ce===void 0x0?void 0x0:_0x8840ce['icon'],'tooltip':_0x96ffe6(0x209),'type':_univerjs_ui[_0x96ffe6(0x619)][_0x96ffe6(0x4f6)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x96ffe6(0x144))](_0xc83ee0=>{const _0x5a34f7=_0x96ffe6,_0x22d43b=_0x198290[_0x5a34f7(0x15e)](_0x59514a=>{const _0x1681d5=_0x5a34f7;if(_0x59514a['id']===SetShapeTextHorizontalAlignCommand['id'])_0xc83ee0[_0x1681d5(0x627)](_0x4fafe3());}),_0x277a82=_0x422329['editingParams$']['subscribe'](()=>{_0xc83ee0['next'](_0x4fafe3());});return _0xc83ee0[_0x5a34f7(0x627)](_0x4fafe3()),()=>{const _0x2ccad5=_0x5a34f7;_0x22d43b[_0x2ccad5(0x46b)](),_0x277a82[_0x2ccad5(0x34e)]();};}),'hidden$':_0x283fbb[_0x96ffe6(0x4eb)](_univerjs_core[_0x96ffe6(0x277)])['pipe']((0x0,rxjs[_0x96ffe6(0x40e)])(_0x4b2f30=>!_0x4b2f30))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x5a3cc9(0x257),'icon':'AlignTopIcon','value':_univerjs_core[_0x5a3cc9(0x58d)][_0x5a3cc9(0x29e)]},{'label':_0x5a3cc9(0x3f1),'icon':_0x5a3cc9(0x28f),'value':_univerjs_core[_0x5a3cc9(0x58d)][_0x5a3cc9(0x5ce)]},{'label':_0x5a3cc9(0x58c),'icon':'AlignBottomIcon','value':_univerjs_core[_0x5a3cc9(0x58d)][_0x5a3cc9(0x28a)]}];function ShapeVerticalAlignMenuItemFactory(_0x57a595){const _0x528ddb=_0x5a3cc9;var _0x490491;const _0x33f4f3=_0x57a595['get'](_univerjs_core['ICommandService']),_0x2824fb=_0x57a595[_0x528ddb(0x62d)](_univerjs_core[_0x528ddb(0x460)]),_0x550c2b=_0x57a595[_0x528ddb(0x62d)](_univerjs_sheets_drawing[_0x528ddb(0x69d)]),_0x52d0c5=_0x57a595[_0x528ddb(0x62d)](ShapeTextEditingService),_0x26860b=_0x57a595[_0x528ddb(0x62d)](_univerjs_pro_sheets_shape[_0x528ddb(0x142)]),_0x513f8e=_univerjs_core[_0x528ddb(0x58d)][_0x528ddb(0x29e)],_0x33f0fb=()=>{const _0x509ecc=_0x528ddb;var _0x18d3b0;const _0x150f89=_0x550c2b[_0x509ecc(0x5f5)]()[_0x509ecc(0x1c0)](_0x393612=>_0x393612['drawingType']===_univerjs_core[_0x509ecc(0x4d6)][_0x509ecc(0x224)]);if(_0x150f89[_0x509ecc(0x38e)]!==0x1)return _0x513f8e;const _0x6ed5fa=_0x52d0c5['getEditing'](),_0x56fc8e=(_0x6ed5fa===null||_0x6ed5fa===void 0x0?void 0x0:_0x6ed5fa[_0x509ecc(0x4c0)])||_0x150f89[0x0]['unitId'],_0x5642da=(_0x6ed5fa===null||_0x6ed5fa===void 0x0?void 0x0:_0x6ed5fa[_0x509ecc(0x2c2)])||_0x150f89[0x0][_0x509ecc(0x2c2)],_0x4a04c4=(_0x6ed5fa===null||_0x6ed5fa===void 0x0?void 0x0:_0x6ed5fa[_0x509ecc(0x525)])||_0x150f89[0x0][_0x509ecc(0x3bf)],_0x2dde78=_0x26860b[_0x509ecc(0x2ea)](_0x56fc8e,_0x5642da,_0x4a04c4);if(!_0x2dde78)return _0x513f8e;const _0x519677=_0x2dde78['getShapeTextData']();if(!_0x519677||!('dataModel'in _0x519677))return _0x513f8e;const _0x307eef=_0x519677[_0x509ecc(0x2c6)];return(_0x18d3b0=_0x307eef===null||_0x307eef===void 0x0?void 0x0:_0x307eef['va'])!==null&&_0x18d3b0!==void 0x0?_0x18d3b0:_0x513f8e;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x490491=SHAPE_VERTICAL_ALIGN_CHILDREN[_0x528ddb(0x482)](_0x224036=>_0x224036[_0x528ddb(0x38c)]===_0x513f8e))===null||_0x490491===void 0x0?void 0x0:_0x490491[_0x528ddb(0x64e)],'tooltip':'toolbar.verticalAlignMode.main','type':_univerjs_ui[_0x528ddb(0x619)][_0x528ddb(0x4f6)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x528ddb(0x144))](_0x50b99e=>{const _0x3e103e=_0x528ddb,_0x250228=_0x33f4f3['onCommandExecuted'](_0x20b8ff=>{const _0x9502af=_0x4507;if(_0x20b8ff['id']===SetShapeTextVerticalAlignCommand['id'])_0x50b99e[_0x9502af(0x627)](_0x33f0fb());}),_0x86d290=_0x52d0c5[_0x3e103e(0x1b4)][_0x3e103e(0x579)](()=>{const _0x15c1e5=_0x3e103e;_0x50b99e[_0x15c1e5(0x627)](_0x33f0fb());});return _0x50b99e[_0x3e103e(0x627)](_0x33f0fb()),()=>{const _0x19ee94=_0x3e103e;_0x250228[_0x19ee94(0x46b)](),_0x86d290[_0x19ee94(0x34e)]();};}),'hidden$':_0x2824fb['subscribeContextValue$'](_univerjs_core[_0x528ddb(0x277)])[_0x528ddb(0x2d9)]((0x0,rxjs[_0x528ddb(0x40e)])(_0x5a8904=>!_0x5a8904))};}function ShapeMenuItemFactory(_0x83617c){const _0x55c1a6=_0x5a3cc9,_0x411a96=_0x83617c['get'](_univerjs_core[_0x55c1a6(0x1bc)]);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x55c1a6(0x619)]['SELECTOR'],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x55c1a6(0x637),'tooltip':_0x55c1a6(0x25e),'activated$':(0x0,_univerjs_sheets_ui['deriveStateFromActiveSheet$'])(_0x411a96,![],()=>new rxjs[(_0x55c1a6(0x144))](_0x478f39=>{const _0x1299a7=_0x55c1a6;_0x478f39[_0x1299a7(0x627)](![]);})),'hidden$':(0x0,_univerjs_ui[_0x55c1a6(0x30e)])(_0x83617c,_univerjs_core[_0x55c1a6(0x374)]['UNIVER_SHEET']),'disabled$':(0x0,_univerjs_sheets_ui[_0x55c1a6(0x256)])(_0x83617c)};}const menuSchema={[_univerjs_ui[_0x5a3cc9(0x333)][_0x5a3cc9(0x43f)]]:{[_univerjs_ui[_0x5a3cc9(0x5f9)][_0x5a3cc9(0x634)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui[_0x5a3cc9(0x5f9)][_0x5a3cc9(0x16c)]]:{[_univerjs_docs_ui[_0x5a3cc9(0x215)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui['RibbonInsertGroup'][_0x5a3cc9(0x476)]]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x55cc8c,_0x5bd261,_0x3d3546,_0x29f309,_0x2cee15,_0x4869c3,_0x64ca85,_0x4b2330,_0x1e84de,_0x3abe0a,_0xb66041){const _0x3b6c14=_0x5a3cc9;super(),this['_univerInstanceService']=_0x55cc8c,this[_0x3b6c14(0x399)]=_0x5bd261,this[_0x3b6c14(0x56a)]=_0x3d3546,this[_0x3b6c14(0x139)]=_0x29f309,this['_sheetsShapeService']=_0x2cee15,this['_localeService']=_0x4869c3,this['_componentManager']=_0x64ca85,this[_0x3b6c14(0x187)]=_0x4b2330,this[_0x3b6c14(0x2f7)]=_0x1e84de,this[_0x3b6c14(0x2e7)]=_0x3abe0a,this[_0x3b6c14(0x15b)]=_0xb66041,_defineProperty(this,_0x3b6c14(0x45e),null),_defineProperty(this,'_activeShapeInfo',null),_defineProperty(this,_0x3b6c14(0x2bd),![]),this[_0x3b6c14(0x631)](),this[_0x3b6c14(0x2ed)](),this['disposeWithMe'](this[_0x3b6c14(0x382)]['getCurrentTypeOfUnit$'](_univerjs_core['UniverInstanceType'][_0x3b6c14(0x147)])[_0x3b6c14(0x579)](_0x5c5f0e=>{const _0x3949f5=_0x3b6c14;var _0x5dbbcf;if(!_0x5c5f0e)(_0x5dbbcf=this[_0x3949f5(0x45e)])===null||_0x5dbbcf===void 0x0||_0x5dbbcf[_0x3949f5(0x46b)]();})),this[_0x3b6c14(0x668)](),this['_registerShapeMenu']();}[_0x5a3cc9(0x2ed)](){const _0x34b234=_0x5a3cc9;this[_0x34b234(0x139)][_0x34b234(0x1f6)](menuSchema);}[_0x5a3cc9(0x19b)](){const _0x104f0a=_0x5a3cc9;this['_sheetCanvasPopManagerService'][_0x104f0a(0x625)](_univerjs_core[_0x104f0a(0x4d6)][_0x104f0a(0x224)],this[_0x104f0a(0x571)][_0x104f0a(0x5e4)](this)),this[_0x104f0a(0x2e7)][_0x104f0a(0x4a3)](_univerjs_core['DrawingTypeEnum'][_0x104f0a(0x224)],0x6,0x4);}[_0x5a3cc9(0x571)](_0x27050c,_0x43fc7d,_0x62b446,_0xd12cd2){const _0x5b4ebb=_0x5a3cc9;return[{'label':_0x5b4ebb(0x208),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x27050c,'subUnitId':_0x43fc7d,'drawingId':_0x62b446},'disable':_0xd12cd2===_univerjs_core[_0x5b4ebb(0x4d6)][_0x5b4ebb(0x60f)]},{'label':_0x5b4ebb(0x487),'index':0x1,'commandId':_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x27050c,'drawings':[{'unitId':_0x27050c,'subUnitId':_0x43fc7d,'drawingId':_0x62b446,'drawingType':_0xd12cd2}]},'disable':![]},{'label':_0x5b4ebb(0x691),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x27050c,'subUnitId':_0x43fc7d,'drawingId':_0x62b446},'disable':![]},{'label':_0x5b4ebb(0x5fc),'index':0x3,'commandId':_univerjs_pro_sheets_shape[_0x5b4ebb(0x300)]['id'],'commandParams':{'unitId':_0x27050c,'subUnitId':_0x43fc7d,'shapeId':_0x62b446,'flipH':!![]},'disable':![]},{'label':_0x5b4ebb(0x431),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x5b4ebb(0x300)]['id'],'commandParams':{'unitId':_0x27050c,'subUnitId':_0x43fc7d,'shapeId':_0x62b446,'flipV':!![]},'disable':![]},{'label':_0x5b4ebb(0x370),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x5b4ebb(0x590)]['id'],'commandParams':{'unitId':_0x27050c,'subUnitId':_0x43fc7d,'shapeId':_0x62b446,'rotate':0x5a},'disable':![]},{'label':'sheets-shape.rotateLeft90','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x5b4ebb(0x590)]['id'],'commandParams':{'unitId':_0x27050c,'subUnitId':_0x43fc7d,'shapeId':_0x62b446,'rotate':-0x5a},'disable':![]},{'label':_0x5b4ebb(0x35d),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x5b4ebb(0x516)]['id'],'commandParams':{'unitId':_0x27050c,'subUnitId':_0x43fc7d,'shapeId':_0x62b446},'disable':![]}];}['_getShapeInfo'](_0x33eb3f,_0x1a3ba8,_0x2488de){const _0x33061d=_0x5a3cc9,_0x21c2f8=this['_sheetsShapeService'][_0x33061d(0x24a)](_0x33eb3f,_0x1a3ba8,_0x2488de),_0x437234=this[_0x33061d(0x526)][_0x33061d(0x651)](_0x33eb3f,_0x1a3ba8,_0x2488de);if(_0x21c2f8!==void 0x0&&_0x437234!==void 0x0)return{'shapeData':_0x437234,'shapeId':_0x2488de,'shapeType':_0x21c2f8,'unitId':_0x33eb3f,'subUnitId':_0x1a3ba8,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x14252f=_0x5a3cc9;this['disposeWithMe'](this[_0x14252f(0x187)][_0x14252f(0x15e)](_0x23bce8=>{const _0x124c21=_0x14252f;if(_0x23bce8['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x132aa1,subUnitId:_0x485600,drawingId:_0x5e9397}=_0x23bce8[_0x124c21(0x3c3)];this['_activeShapeInfo']=this[_0x124c21(0x692)](_0x132aa1,_0x485600,_0x5e9397),this['_openShapeEditPanel']();}_0x23bce8['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x124c21(0x13f)]=null,this[_0x124c21(0x307)]());if(_0x23bce8['id']===_univerjs_pro_sheets_shape[_0x124c21(0x18b)]['id']){const {unitId:_0x126dcc,subUnitId:_0x1b148e,shapeId:_0x4465fd}=_0x23bce8[_0x124c21(0x3c3)];if(this[_0x124c21(0x13f)]&&this['_activeShapeInfo'][_0x124c21(0x525)]===_0x4465fd){const _0x57919e=this[_0x124c21(0x692)](_0x126dcc,_0x1b148e,_0x4465fd);if(_0x57919e)this['_activeShapeInfo']=_0x57919e;}}})),this[_0x14252f(0x5b8)](this[_0x14252f(0x2f7)][_0x14252f(0x533)]['subscribe'](_0x213bb3=>{const _0x596e6b=_0x14252f;if(this[_0x596e6b(0x2bd)]===![])return;if(_0x213bb3['length']===0x0){this[_0x596e6b(0x13f)]=null,this[_0x596e6b(0x307)]();return;}if(_0x213bb3[_0x596e6b(0x38e)]===0x1&&_0x213bb3[0x0][_0x596e6b(0x2a7)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']){this['_activeShapeInfo']=this[_0x596e6b(0x692)](_0x213bb3[0x0][_0x596e6b(0x4c0)],_0x213bb3[0x0][_0x596e6b(0x2c2)],_0x213bb3[0x0][_0x596e6b(0x3bf)]);if(this[_0x596e6b(0x13f)]){this[_0x596e6b(0x1f1)]();return;}}const _0x17fdaa=_0x213bb3[_0x596e6b(0x1c0)](_0x459eda=>{const _0x221b22=_0x596e6b;return _0x459eda['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x221b22(0x224)];});if(_0x213bb3[_0x596e6b(0x38e)]>0x1&&_0x17fdaa[_0x596e6b(0x38e)]===_0x213bb3[_0x596e6b(0x38e)]){this[_0x596e6b(0x13f)]=this[_0x596e6b(0x692)](_0x213bb3[0x0]['unitId'],_0x213bb3[0x0]['subUnitId'],_0x213bb3[0x0][_0x596e6b(0x3bf)]);if(this[_0x596e6b(0x13f)]){this[_0x596e6b(0x1f1)]();return;}}else{this[_0x596e6b(0x13f)]=this[_0x596e6b(0x692)](_0x213bb3[0x0][_0x596e6b(0x4c0)],_0x213bb3[0x0][_0x596e6b(0x2c2)],_0x213bb3[0x0]['drawingId']);if(this[_0x596e6b(0x13f)]){this[_0x596e6b(0x13f)][_0x596e6b(0x6a0)]=!![],this[_0x596e6b(0x1f1)]();return;}}this[_0x596e6b(0x307)]();}));}[_0x5a3cc9(0x631)](){const _0xcf925d=_0x5a3cc9;[[_0xcf925d(0x637),_univerjs_icons[_0xcf925d(0x637)]],['ShapeAccentBorderCallout1Icon',_univerjs_icons['ShapeAccentBorderCallout1Icon']],[_0xcf925d(0x25b),_univerjs_icons['ShapeAccentBorderCallout2Icon']],[_0xcf925d(0x505),_univerjs_icons[_0xcf925d(0x505)]],['ShapeAccentCallout1Icon',_univerjs_icons[_0xcf925d(0x31c)]],[_0xcf925d(0x5a2),_univerjs_icons['ShapeAccentCallout2Icon']],['ShapeAccentCallout3Icon',_univerjs_icons[_0xcf925d(0x57b)]],[_0xcf925d(0x5cb),_univerjs_icons['ShapeActionButtonBackPreviousIcon']],[_0xcf925d(0x319),_univerjs_icons['ShapeActionButtonBeginningIcon']],[_0xcf925d(0x20f),_univerjs_icons[_0xcf925d(0x20f)]],[_0xcf925d(0x1fa),_univerjs_icons[_0xcf925d(0x1fa)]],[_0xcf925d(0x1c7),_univerjs_icons[_0xcf925d(0x1c7)]],[_0xcf925d(0x263),_univerjs_icons[_0xcf925d(0x263)]],[_0xcf925d(0x149),_univerjs_icons[_0xcf925d(0x149)]],[_0xcf925d(0x3fe),_univerjs_icons[_0xcf925d(0x3fe)]],[_0xcf925d(0x42c),_univerjs_icons[_0xcf925d(0x42c)]],[_0xcf925d(0x57e),_univerjs_icons[_0xcf925d(0x57e)]],[_0xcf925d(0x57f),_univerjs_icons[_0xcf925d(0x57f)]],[_0xcf925d(0x292),_univerjs_icons[_0xcf925d(0x292)]],[_0xcf925d(0x159),_univerjs_icons['ShapeArcIcon']],[_0xcf925d(0x504),_univerjs_icons['ShapeBentArrowIcon']],[_0xcf925d(0x2e3),_univerjs_icons[_0xcf925d(0x2e3)]],[_0xcf925d(0x567),_univerjs_icons[_0xcf925d(0x567)]],[_0xcf925d(0x5b0),_univerjs_icons[_0xcf925d(0x5b0)]],['ShapeBentUpArrowIcon',_univerjs_icons[_0xcf925d(0x67b)]],[_0xcf925d(0x43a),_univerjs_icons[_0xcf925d(0x43a)]],[_0xcf925d(0x183),_univerjs_icons['ShapeBlockArcIcon']],[_0xcf925d(0x50b),_univerjs_icons[_0xcf925d(0x50b)]],[_0xcf925d(0x5e1),_univerjs_icons['ShapeBorderCallout2Icon']],[_0xcf925d(0x17b),_univerjs_icons[_0xcf925d(0x17b)]],[_0xcf925d(0x5ba),_univerjs_icons[_0xcf925d(0x5ba)]],[_0xcf925d(0x518),_univerjs_icons['ShapeBracketPairIcon']],['ShapeCallout1Icon',_univerjs_icons['ShapeCallout1Icon']],[_0xcf925d(0x2f3),_univerjs_icons[_0xcf925d(0x2f3)]],[_0xcf925d(0x699),_univerjs_icons[_0xcf925d(0x699)]],[_0xcf925d(0x5d0),_univerjs_icons[_0xcf925d(0x5d0)]],[_0xcf925d(0x5b7),_univerjs_icons['ShapeChartPlusIcon']],[_0xcf925d(0x340),_univerjs_icons[_0xcf925d(0x340)]],[_0xcf925d(0x45f),_univerjs_icons['ShapeChartXIcon']],[_0xcf925d(0x642),_univerjs_icons['ShapeChevronIcon']],['ShapeChordIcon',_univerjs_icons['ShapeChordIcon']],[_0xcf925d(0x411),_univerjs_icons[_0xcf925d(0x411)]],[_0xcf925d(0x377),_univerjs_icons[_0xcf925d(0x377)]],[_0xcf925d(0x4a4),_univerjs_icons[_0xcf925d(0x4a4)]],[_0xcf925d(0x367),_univerjs_icons[_0xcf925d(0x367)]],[_0xcf925d(0x4e5),_univerjs_icons[_0xcf925d(0x4e5)]],[_0xcf925d(0x403),_univerjs_icons['ShapeCubeIcon']],[_0xcf925d(0x523),_univerjs_icons[_0xcf925d(0x523)]],['ShapeCurvedConnector3Arrow2Icon',_univerjs_icons['ShapeCurvedConnector3Arrow2Icon']],[_0xcf925d(0x3bd),_univerjs_icons[_0xcf925d(0x3bd)]],[_0xcf925d(0x5bf),_univerjs_icons[_0xcf925d(0x5bf)]],['ShapeCurvedLeftArrowIcon',_univerjs_icons['ShapeCurvedLeftArrowIcon']],['ShapeCurvedRightArrowIcon',_univerjs_icons[_0xcf925d(0x660)]],['ShapeCurvedUpArrowIcon',_univerjs_icons[_0xcf925d(0x3dc)]],[_0xcf925d(0x1a9),_univerjs_icons[_0xcf925d(0x1a9)]],['ShapeDiagStripeIcon',_univerjs_icons[_0xcf925d(0x197)]],[_0xcf925d(0x21f),_univerjs_icons['ShapeDiamondIcon']],[_0xcf925d(0x68b),_univerjs_icons[_0xcf925d(0x68b)]],['ShapeDonutIcon',_univerjs_icons[_0xcf925d(0x4ff)]],[_0xcf925d(0x61e),_univerjs_icons[_0xcf925d(0x61e)]],[_0xcf925d(0x454),_univerjs_icons[_0xcf925d(0x454)]],['ShapeDownArrowIcon',_univerjs_icons[_0xcf925d(0x43d)]],[_0xcf925d(0x45b),_univerjs_icons['ShapeEllipseIcon']],[_0xcf925d(0x401),_univerjs_icons['ShapeEllipseRibbon2Icon']],[_0xcf925d(0x5e6),_univerjs_icons['ShapeEllipseRibbonIcon']],[_0xcf925d(0x22a),_univerjs_icons[_0xcf925d(0x22a)]],[_0xcf925d(0x391),_univerjs_icons[_0xcf925d(0x391)]],[_0xcf925d(0x509),_univerjs_icons[_0xcf925d(0x509)]],[_0xcf925d(0x5a6),_univerjs_icons[_0xcf925d(0x5a6)]],[_0xcf925d(0x1a8),_univerjs_icons[_0xcf925d(0x1a8)]],[_0xcf925d(0x5ab),_univerjs_icons['ShapeFlowChartDisplayIcon']],[_0xcf925d(0x5c7),_univerjs_icons[_0xcf925d(0x5c7)]],['ShapeFlowChartExtractIcon',_univerjs_icons[_0xcf925d(0x405)]],[_0xcf925d(0x569),_univerjs_icons['ShapeFlowChartInputOutputIcon']],[_0xcf925d(0x59d),_univerjs_icons[_0xcf925d(0x59d)]],[_0xcf925d(0x53d),_univerjs_icons['ShapeFlowChartMagneticDiskIcon']],[_0xcf925d(0x646),_univerjs_icons[_0xcf925d(0x646)]],[_0xcf925d(0x287),_univerjs_icons[_0xcf925d(0x287)]],[_0xcf925d(0x442),_univerjs_icons[_0xcf925d(0x442)]],[_0xcf925d(0x55a),_univerjs_icons[_0xcf925d(0x55a)]],[_0xcf925d(0x2c7),_univerjs_icons[_0xcf925d(0x2c7)]],['ShapeFlowChartMultidocumentIcon',_univerjs_icons[_0xcf925d(0x258)]],['ShapeFlowChartOfflineStorageIcon',_univerjs_icons[_0xcf925d(0x165)]],[_0xcf925d(0x556),_univerjs_icons[_0xcf925d(0x556)]],[_0xcf925d(0x636),_univerjs_icons[_0xcf925d(0x636)]],[_0xcf925d(0x301),_univerjs_icons[_0xcf925d(0x301)]],[_0xcf925d(0x240),_univerjs_icons[_0xcf925d(0x240)]],[_0xcf925d(0x390),_univerjs_icons['ShapeFlowChartPreparationIcon']],[_0xcf925d(0x40f),_univerjs_icons[_0xcf925d(0x40f)]],['ShapeFlowChartPunchedCardIcon',_univerjs_icons[_0xcf925d(0x2ad)]],[_0xcf925d(0x4d1),_univerjs_icons[_0xcf925d(0x4d1)]],[_0xcf925d(0x4d2),_univerjs_icons['ShapeFlowChartSortIcon']],['ShapeFlowChartSummingJunctionIcon',_univerjs_icons[_0xcf925d(0x41c)]],[_0xcf925d(0x498),_univerjs_icons[_0xcf925d(0x498)]],[_0xcf925d(0x52d),_univerjs_icons[_0xcf925d(0x52d)]],[_0xcf925d(0x195),_univerjs_icons[_0xcf925d(0x195)]],[_0xcf925d(0x5be),_univerjs_icons[_0xcf925d(0x5be)]],[_0xcf925d(0x1ad),_univerjs_icons[_0xcf925d(0x1ad)]],[_0xcf925d(0x137),_univerjs_icons['ShapeGear9Icon']],[_0xcf925d(0x3ba),_univerjs_icons['ShapeHalfFrameIcon']],[_0xcf925d(0x3c1),_univerjs_icons['ShapeHeartIcon']],['ShapeHeptagonIcon',_univerjs_icons['ShapeHeptagonIcon']],[_0xcf925d(0x34a),_univerjs_icons[_0xcf925d(0x34a)]],[_0xcf925d(0x205),_univerjs_icons[_0xcf925d(0x205)]],[_0xcf925d(0x5ef),_univerjs_icons[_0xcf925d(0x5ef)]],[_0xcf925d(0x15a),_univerjs_icons[_0xcf925d(0x15a)]],['ShapeIrregularSeal2Icon',_univerjs_icons[_0xcf925d(0x351)]],[_0xcf925d(0x3d9),_univerjs_icons[_0xcf925d(0x3d9)]],[_0xcf925d(0x50a),_univerjs_icons[_0xcf925d(0x50a)]],[_0xcf925d(0x469),_univerjs_icons['ShapeLeftBraceIcon']],[_0xcf925d(0x40c),_univerjs_icons[_0xcf925d(0x40c)]],[_0xcf925d(0x308),_univerjs_icons[_0xcf925d(0x308)]],[_0xcf925d(0x1d6),_univerjs_icons[_0xcf925d(0x1d6)]],['ShapeLeftRightArrowIcon',_univerjs_icons[_0xcf925d(0x415)]],['ShapeLeftRightCircularArrowIcon',_univerjs_icons['ShapeLeftRightCircularArrowIcon']],['ShapeLeftRightRibbonIcon',_univerjs_icons[_0xcf925d(0x682)]],[_0xcf925d(0x154),_univerjs_icons[_0xcf925d(0x154)]],['ShapeLeftUpArrowIcon',_univerjs_icons[_0xcf925d(0x63d)]],[_0xcf925d(0x444),_univerjs_icons[_0xcf925d(0x444)]],[_0xcf925d(0x17e),_univerjs_icons[_0xcf925d(0x17e)]],[_0xcf925d(0x17f),_univerjs_icons[_0xcf925d(0x17f)]],[_0xcf925d(0x336),_univerjs_icons[_0xcf925d(0x336)]],['ShapeMathEqualIcon',_univerjs_icons['ShapeMathEqualIcon']],[_0xcf925d(0x4c8),_univerjs_icons[_0xcf925d(0x4c8)]],['ShapeMathMultiplyIcon',_univerjs_icons[_0xcf925d(0x69f)]],[_0xcf925d(0x38f),_univerjs_icons['ShapeMathNotEqualIcon']],[_0xcf925d(0x50c),_univerjs_icons['ShapeMathPlusIcon']],[_0xcf925d(0x40d),_univerjs_icons[_0xcf925d(0x40d)]],[_0xcf925d(0x34c),_univerjs_icons['ShapeNoSmokingIcon']],['ShapeNonIsoscelesTrapezoidIcon',_univerjs_icons[_0xcf925d(0x66f)]],['ShapeNotchedRightArrowIcon',_univerjs_icons[_0xcf925d(0x52a)]],[_0xcf925d(0x1ac),_univerjs_icons[_0xcf925d(0x1ac)]],[_0xcf925d(0x67f),_univerjs_icons[_0xcf925d(0x67f)]],[_0xcf925d(0x5d9),_univerjs_icons[_0xcf925d(0x5d9)]],['ShapePieIcon',_univerjs_icons['ShapePieIcon']],[_0xcf925d(0x610),_univerjs_icons['ShapePieWedgeIcon']],[_0xcf925d(0x321),_univerjs_icons[_0xcf925d(0x321)]],[_0xcf925d(0x462),_univerjs_icons[_0xcf925d(0x462)]],[_0xcf925d(0x64f),_univerjs_icons[_0xcf925d(0x64f)]],['ShapeQuadArrowCalloutIcon',_univerjs_icons[_0xcf925d(0x1a6)]],[_0xcf925d(0x615),_univerjs_icons[_0xcf925d(0x615)]],[_0xcf925d(0x386),_univerjs_icons[_0xcf925d(0x386)]],['ShapeRectTextboxHorizontalIcon',_univerjs_icons[_0xcf925d(0x511)]],[_0xcf925d(0x51e),_univerjs_icons[_0xcf925d(0x51e)]],[_0xcf925d(0x2be),_univerjs_icons['ShapeRibbon2Icon']],[_0xcf925d(0x2b0),_univerjs_icons[_0xcf925d(0x2b0)]],['ShapeRightArrowCalloutIcon',_univerjs_icons['ShapeRightArrowCalloutIcon']],[_0xcf925d(0x66a),_univerjs_icons['ShapeRightArrowIcon']],[_0xcf925d(0x537),_univerjs_icons[_0xcf925d(0x537)]],[_0xcf925d(0x42f),_univerjs_icons[_0xcf925d(0x42f)]],['ShapeRound1RectIcon',_univerjs_icons[_0xcf925d(0x4b0)]],[_0xcf925d(0x259),_univerjs_icons[_0xcf925d(0x259)]],[_0xcf925d(0x1da),_univerjs_icons['ShapeRound2SameRectIcon']],[_0xcf925d(0x517),_univerjs_icons[_0xcf925d(0x517)]],[_0xcf925d(0x26e),_univerjs_icons[_0xcf925d(0x26e)]],[_0xcf925d(0x36e),_univerjs_icons[_0xcf925d(0x36e)]],['ShapeSnip1RectIcon',_univerjs_icons[_0xcf925d(0x68a)]],[_0xcf925d(0x596),_univerjs_icons['ShapeSnip2DiagRectIcon']],[_0xcf925d(0x345),_univerjs_icons['ShapeSnip2SameRectIcon']],[_0xcf925d(0x29b),_univerjs_icons['ShapeSnipRoundRectIcon']],[_0xcf925d(0x418),_univerjs_icons[_0xcf925d(0x418)]],['ShapeStar10Icon',_univerjs_icons[_0xcf925d(0x160)]],[_0xcf925d(0x2c3),_univerjs_icons[_0xcf925d(0x2c3)]],['ShapeStar16Icon',_univerjs_icons[_0xcf925d(0x414)]],['ShapeStar24Icon',_univerjs_icons['ShapeStar24Icon']],[_0xcf925d(0x4fd),_univerjs_icons[_0xcf925d(0x4fd)]],[_0xcf925d(0x563),_univerjs_icons[_0xcf925d(0x563)]],[_0xcf925d(0x322),_univerjs_icons['ShapeStar5Icon']],[_0xcf925d(0x356),_univerjs_icons['ShapeStar6Icon']],[_0xcf925d(0x676),_univerjs_icons[_0xcf925d(0x676)]],[_0xcf925d(0x1db),_univerjs_icons[_0xcf925d(0x1db)]],[_0xcf925d(0x639),_univerjs_icons[_0xcf925d(0x639)]],['ShapeStraightConnector2Icon',_univerjs_icons[_0xcf925d(0x648)]],['ShapeStripedRightArrowIcon',_univerjs_icons['ShapeStripedRightArrowIcon']],[_0xcf925d(0x5c2),_univerjs_icons[_0xcf925d(0x5c2)]],['ShapeSwooshArrowIcon',_univerjs_icons[_0xcf925d(0x3a0)]],['ShapeTeardropIcon',_univerjs_icons['ShapeTeardropIcon']],[_0xcf925d(0x3b0),_univerjs_icons[_0xcf925d(0x3b0)]],[_0xcf925d(0x41e),_univerjs_icons[_0xcf925d(0x41e)]],[_0xcf925d(0x4cf),_univerjs_icons['ShapeUpArrowCalloutIcon']],[_0xcf925d(0x4e0),_univerjs_icons['ShapeUpArrowIcon']],[_0xcf925d(0x598),_univerjs_icons[_0xcf925d(0x598)]],['ShapeUpDownArrowIcon',_univerjs_icons[_0xcf925d(0x37f)]],[_0xcf925d(0x32a),_univerjs_icons[_0xcf925d(0x32a)]],['ShapeVerticalScrollIcon',_univerjs_icons[_0xcf925d(0x3b1)]],[_0xcf925d(0x339),_univerjs_icons[_0xcf925d(0x339)]],[_0xcf925d(0x42d),_univerjs_icons[_0xcf925d(0x42d)]],[_0xcf925d(0x62c),_univerjs_icons[_0xcf925d(0x62c)]],['ShapeWedgeRoundRectCalloutIcon',_univerjs_icons[_0xcf925d(0x413)]],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0xcf925d(0x1d5)],ImageClipShapePicker]][_0xcf925d(0x67e)](([_0x168b6e,_0x494933])=>{const _0x1219a6=_0xcf925d;this['disposeWithMe'](this[_0x1219a6(0x2e1)][_0x1219a6(0x4a2)](_0x168b6e,_0x494933));});}[_0x5a3cc9(0x1f1)](){const _0x27917f=_0x5a3cc9;this[_0x27917f(0x45e)]=this['_sidebarService'][_0x27917f(0x3e1)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x27917f(0x1c9)]['t'](_0x27917f(0x684))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x27917f(0x13f)]},'onClose':()=>{const _0x358a5b=_0x27917f;this[_0x358a5b(0x2f7)]['focusDrawing'](null),this[_0x358a5b(0x15b)][_0x358a5b(0x1a0)](_univerjs_core[_0x358a5b(0x277)],![]),this['_sidebarDisposable']=null;}}),this[_0x27917f(0x2bd)]=!![];}[_0x5a3cc9(0x307)](){const _0x2b4761=_0x5a3cc9;this[_0x2b4761(0x2bd)]=![],this['_sidebarService']['close'](SHEET_SHAPE_EDIT_PANEL_KEY),this['_sidebarDisposable']=null,this[_0x2b4761(0x15b)][_0x2b4761(0x1a0)](_univerjs_core[_0x2b4761(0x277)],![]),this['_drawingManagerService'][_0x2b4761(0x3eb)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x5a3cc9(0x1bc)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_sheets[_0x5a3cc9(0x6a2)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x5a3cc9(0x27c)])),__decorateParam(0x3,_univerjs_ui[_0x5a3cc9(0x272)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_pro_sheets_shape[_0x5a3cc9(0x142)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x6,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_ui[_0x5a3cc9(0x2d7)])),__decorateParam(0x7,_univerjs_core[_0x5a3cc9(0x4bb)]),__decorateParam(0x8,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x9,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_sheets_ui[_0x5a3cc9(0x59c)])),__decorateParam(0xa,_univerjs_core[_0x5a3cc9(0x460)])],SheetsShapeUIController);var name='@univerjs-pro/sheets-shape-ui',version=_0x5a3cc9(0x63f);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[_0x5a3cc9(0x602)]{constructor(_0x14a48e,_0x5a2478,_0xc571f6,_0x563b20,_0x333fa4){const _0x597b9b=_0x5a3cc9;super(),this[_0x597b9b(0x4c4)]=_0x14a48e,this[_0x597b9b(0x2f7)]=_0x5a2478,this[_0x597b9b(0x5ac)]=_0xc571f6,this[_0x597b9b(0x382)]=_0x563b20,this[_0x597b9b(0x4ac)]=_0x333fa4,_defineProperty(this,_0x597b9b(0x54b),null),_defineProperty(this,'_unitId',null),_defineProperty(this,_0x597b9b(0x283),null),_defineProperty(this,'_activeAdjustPointList',void 0x0),_defineProperty(this,_0x597b9b(0x55d),[]),_defineProperty(this,_0x597b9b(0x15c),0x0),_defineProperty(this,_0x597b9b(0x4da),0x0),_defineProperty(this,_0x597b9b(0x683),0x0),_defineProperty(this,_0x597b9b(0x57c),0x0),_defineProperty(this,_0x597b9b(0x2cd),![]),_defineProperty(this,_0x597b9b(0x4c9),void 0x0),_defineProperty(this,_0x597b9b(0x23e),void 0x0),_defineProperty(this,'_adjHandlerPointerMove',void 0x0),_defineProperty(this,_0x597b9b(0x532),void 0x0),_defineProperty(this,_0x597b9b(0x59b),![]),this[_0x597b9b(0x32f)](),this['_registerMoveHandler']();}[_0x5a3cc9(0x237)](){const _0x16440e=_0x5a3cc9;this[_0x16440e(0x55f)]();}[_0x5a3cc9(0x140)](){const _0x624c04=_0x5a3cc9;this[_0x624c04(0x55f)](),this[_0x624c04(0x1ee)](!![]);}[_0x5a3cc9(0x17d)](_0x3d1651,_0x18bf93,_0x4ea5fd,_0x1c348b){const _0xcd284f=_0x5a3cc9,_0x5d82b8=_0x3d1651;if(_0x5d82b8===_univerjs_pro_engine_shape[_0xcd284f(0x3e8)][_0xcd284f(0x5fd)]||_0x3d1651===_0xcd284f(0x5bb))return;try{const _0x4002dd=new _univerjs_pro_engine_shape[(_0xcd284f(0x16a))](_0x5d82b8,_0xcd284f(0x398)+_0x3d1651);if(_0x1c348b)_0x4002dd[_0xcd284f(0x2f0)]({'adjustValues':_0x1c348b},!![]);return _0x4002dd[_0xcd284f(0x4d3)]({'width':_0x18bf93,'height':_0x4ea5fd}),_0x4002dd;}catch{return;}}[_0x5a3cc9(0x380)](_0x16d9a3,_0xb7d52f,_0x381523){const _0x59e2db=_0x5a3cc9,_0x116a6d={'unitId':_0x16d9a3,'subUnitId':_0xb7d52f,'drawingId':_0x381523},_0x5ec75b=this['_drawingManagerService'][_0x59e2db(0x4ca)](_0x116a6d);if(!_0x5ec75b||_0x5ec75b[_0x59e2db(0x2a7)]!==_univerjs_core[_0x59e2db(0x4d6)]['DRAWING_IMAGE'])return;return _0x5ec75b;}['_getImagePrstGeom'](_0x3d6219,_0x1b1ebf,_0x56336e){const _0x225a17=_0x5a3cc9,_0x9e93aa=this['_renderManagerService'][_0x225a17(0x1bb)](_0x3d6219);if(!_0x9e93aa)return void 0x0;const {scene:_0x1ffbee}=_0x9e93aa,_0x2156e4=(0x0,_univerjs_drawing[_0x225a17(0x550)])({'unitId':_0x3d6219,'subUnitId':_0x1b1ebf,'drawingId':_0x56336e}),_0x134875=_0x1ffbee['getObject'](_0x2156e4);if(_0x134875 instanceof _univerjs_engine_render[_0x225a17(0x68e)]){const _0x1d8673=_0x134875[_0x225a17(0x262)];if(_0x1d8673)return{'prstGeom':_0x1d8673,'adjustValues':_0x134875[_0x225a17(0x689)]};}}['_createControls'](_0x236963=![]){const _0xb061e0=_0x5a3cc9;if(!this[_0xb061e0(0x486)]||!this[_0xb061e0(0x283)]||!this[_0xb061e0(0x54b)])return;const _0x232177=this['_renderManagerService'][_0xb061e0(0x1bb)](this[_0xb061e0(0x486)]);if(!_0x232177)return;if(!_0x232177[_0xb061e0(0x463)](_univerjs_sheets_ui[_0xb061e0(0x3f5)])['getCurrentSkeleton']())return;const {scene:_0x152c19}=_0x232177,_0x1d7729=this[_0xb061e0(0x380)](this['_unitId'],this['_subUnitId'],this[_0xb061e0(0x54b)]);if(!_0x1d7729)return;const {transform:_0xb2ae18}=_0x1d7729;if(!_0xb2ae18)return;const {left:_0x36015b,top:_0x17a42a,width:_0x10f434,height:_0x3c43e3,flipX:_0x3593c7,flipY:_0x358a21,angle:angle=0x0}=_0xb2ae18;if(_0x36015b===void 0x0||_0x17a42a===void 0x0)return;const _0x5058ea=this[_0xb061e0(0x33f)](this[_0xb061e0(0x486)],this[_0xb061e0(0x283)],this[_0xb061e0(0x54b)]);if(!_0x5058ea)return;if(_0x236963){const _0x5359de=this[_0xb061e0(0x17d)](_0x5058ea[_0xb061e0(0x262)],_0x10f434||0x0,_0x3c43e3||0x0,_0x5058ea[_0xb061e0(0x3bb)]);if(!_0x5359de)return;this[_0xb061e0(0x311)]=_0x5359de[_0xb061e0(0x282)]();}const _0x132176=this[_0xb061e0(0x311)];if(!_0x132176||_0x132176[_0xb061e0(0x38e)]===0x0)return;for(let _0x5a39ff=0x0;_0x5a39ff<_0x132176[_0xb061e0(0x38e)];_0x5a39ff++){const _0xe4ee0f=_0x132176[_0x5a39ff];let _0x4e3411=_0xe4ee0f['x'],_0x1db5b1=_0xe4ee0f['y'];if(_0x3593c7)_0x4e3411=(_0x10f434||0x0)-_0x4e3411;if(_0x358a21)_0x1db5b1=(_0x3c43e3||0x0)-_0x1db5b1;if(angle!==0x0){const _0x29a04e=(_0x10f434||0x0)/0x2,_0x8c2a28=(_0x3c43e3||0x0)/0x2,_0x44a1a9=angle*Math['PI']/0xb4,_0x44a53f=Math[_0xb061e0(0x501)](_0x44a1a9),_0x33496b=Math['sin'](_0x44a1a9),_0x7ada89=_0x4e3411-_0x29a04e,_0x14ef46=_0x1db5b1-_0x8c2a28;_0x4e3411=_0x29a04e+(_0x7ada89*_0x44a53f-_0x14ef46*_0x33496b),_0x1db5b1=_0x8c2a28+(_0x7ada89*_0x33496b+_0x14ef46*_0x44a53f);}const _0x954217={'x':_0x4e3411,'y':_0x1db5b1,'adjName':_0xe4ee0f[_0xb061e0(0x13c)]};this[_0xb061e0(0x436)](_0x152c19,_0x954217,_0x954217[_0xb061e0(0x13c)],_0x36015b,_0x17a42a,this['_unitId'],this[_0xb061e0(0x283)]);}}[_0x5a3cc9(0x436)](_0x114c42,_0x191125,_0x53ec51,_0x36d829,_0x36948d,_0x442a79,_0x51e3aa){const _0x4e213d=_0x5a3cc9;if(!this['_activeImageId'])return;const _0x357295='image-clip-adjust-point-'+this[_0x4e213d(0x54b)]+'-'+_0x53ec51,_0x2d317f=_0x114c42[_0x4e213d(0x479)](_0x357295);if(_0x2d317f){_0x2d317f[_0x4e213d(0x53c)]({'left':_0x191125['x']+_0x36d829-_univerjs_pro_engine_shape[_0x4e213d(0x1d0)][_0x4e213d(0x47a)],'top':_0x191125['y']+_0x36948d-_univerjs_pro_engine_shape[_0x4e213d(0x1d0)]['adjHandleSize']});return;}const _0x43a2dc=new SheetShapeAdjustPointObject(_0x357295,{'left':_0x191125['x']+_0x36d829-_univerjs_pro_engine_shape[_0x4e213d(0x1d0)]['adjHandleSize'],'top':_0x191125['y']+_0x36948d-_univerjs_pro_engine_shape[_0x4e213d(0x1d0)][_0x4e213d(0x47a)],'adjName':_0x53ec51,'shapeId':this[_0x4e213d(0x54b)],'unitId':_0x442a79,'subUnitId':_0x51e3aa,'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x4e213d(0x47a)]+0x8,'height':_univerjs_pro_engine_shape[_0x4e213d(0x1d0)]['adjHandleSize']+0x8,'zIndex':_univerjs_engine_render[_0x4e213d(0x49a)]+0x1,'evented':!![]});this[_0x4e213d(0x55d)][_0x4e213d(0x1d9)](_0x43a2dc),this[_0x4e213d(0x2e2)](_0x43a2dc,_0x114c42,_0x53ec51),_0x114c42[_0x4e213d(0x1bf)](_0x43a2dc,_univerjs_engine_render[_0x4e213d(0x49a)]+0x1);}['_clearControls'](){const _0xc75bd5=_0x5a3cc9;if(this[_0xc75bd5(0x55d)][_0xc75bd5(0x38e)]===0x0)return;this['_shapes'][_0xc75bd5(0x67e)](_0x3f50de=>_0x3f50de['dispose']()),this['_shapes']=[];}['_getScrollInfo'](_0xe5f388,_0x4d88cf){const _0x284e70=_0x5a3cc9;var _0x200f24;const _0x1e4baf={'x':0x0,'y':0x0},_0x23d8da=this[_0x284e70(0x5ac)]['getRenderById'](_0xe5f388);if(!_0x23d8da)return _0x1e4baf;if(!_0x23d8da[_0x284e70(0x463)](_univerjs_sheets_ui[_0x284e70(0x3f5)])[_0x284e70(0x51c)](_0x4d88cf))return _0x1e4baf;const _0xd5bdde=_0x23d8da[_0x284e70(0x463)](_univerjs_sheets_ui[_0x284e70(0x582)]),_0x12f98f=_0xd5bdde===null||_0xd5bdde===void 0x0?void 0x0:_0xd5bdde['getCurrentScrollState']();if(!_0x12f98f)return _0x1e4baf;const _0x381c71=(_0x200f24=this[_0x284e70(0x382)]['getUnit'](_0xe5f388))===null||_0x200f24===void 0x0?void 0x0:_0x200f24[_0x284e70(0x4df)](_0x4d88cf);if(!_0x381c71)return _0x1e4baf;const _0x574385=(0x0,_univerjs_sheets_ui[_0x284e70(0x61a)])(_0x12f98f[_0x284e70(0x30b)],_0x12f98f[_0x284e70(0x4d5)],_0x23d8da[_0x284e70(0x1ea)],_0x381c71);if(!_0x574385)return _0x1e4baf;return{'x':_0x574385['viewportScrollX'],'y':_0x574385[_0x284e70(0x313)]};}[_0x5a3cc9(0x2c4)](_0x3a712e,_0x5c8aa6){const _0x4e3ce6=_0x5a3cc9;var _0x2a1bda,_0x277759;const _0x4ea217=(_0x2a1bda=this[_0x4e3ce6(0x382)]['getUnit'](_0x3a712e))===null||_0x2a1bda===void 0x0?void 0x0:_0x2a1bda[_0x4e3ce6(0x4df)](_0x5c8aa6);return(_0x277759=_0x4ea217===null||_0x4ea217===void 0x0?void 0x0:_0x4ea217[_0x4e3ce6(0x357)]())!==null&&_0x277759!==void 0x0?_0x277759:0x1;}[_0x5a3cc9(0x2e2)](_0x589b70,_0x9c2abd,_0x5ec35f){const _0x3a0cba=_0x5a3cc9;this[_0x3a0cba(0x5b8)]((0x0,_univerjs_core['toDisposable'])(_0x589b70[_0x3a0cba(0x60d)][_0x3a0cba(0x33e)]((_0x3c8a2c,_0x585888)=>{const _0x300052=_0x3a0cba;var _0x42f1e6,_0x41b192,_0x474deb;const {unitId:_0x3a00cd,subUnitId:_0x34282d,drawingId:_0x36280b}=_0x589b70['getDrawingSearch'](),_0x20ad39=this[_0x300052(0x380)](_0x3a00cd,_0x34282d,_0x36280b);if(!(_0x20ad39===null||_0x20ad39===void 0x0?void 0x0:_0x20ad39[_0x300052(0x4db)]))return;const {left:_0x559935,top:_0x4a99f1,width:_0x52e2f7,height:_0x279feb}=_0x20ad39[_0x300052(0x4db)];this[_0x300052(0x15c)]=_0x559935||0x0,this['_baseTop']=_0x4a99f1||0x0,this[_0x300052(0x683)]=_0x52e2f7||0x0,this[_0x300052(0x57c)]=_0x279feb||0x0;const _0x5209b5=Boolean((_0x42f1e6=_0x20ad39['transform'])===null||_0x42f1e6===void 0x0?void 0x0:_0x42f1e6[_0x300052(0x1cd)]),_0x485952=Boolean((_0x41b192=_0x20ad39[_0x300052(0x4db)])===null||_0x41b192===void 0x0?void 0x0:_0x41b192[_0x300052(0x1f4)]),_0x268f8b=((_0x474deb=_0x20ad39[_0x300052(0x4db)])===null||_0x474deb===void 0x0?void 0x0:_0x474deb[_0x300052(0x54c)])||0x0,_0x29c828=this[_0x300052(0x33f)](_0x3a00cd,_0x34282d,_0x36280b);if(!_0x29c828)return;const _0x14c29a=this[_0x300052(0x17d)](_0x29c828[_0x300052(0x262)],this[_0x300052(0x683)],this[_0x300052(0x57c)],_0x29c828[_0x300052(0x3bb)]);if(!_0x14c29a)return;this['_activeShapeModel']=_0x14c29a,this[_0x300052(0x4c9)]=_0x14c29a['getAdjustInfoByName'](_0x5ec35f);if(!this[_0x300052(0x4c9)])return;this[_0x300052(0x2cd)]=!![],_0x9c2abd[_0x300052(0x2ba)]();const _0x2d3063=_0x29c828[_0x300052(0x262)];this['_adjHandlerPointerMove']=_0x9c2abd[_0x300052(0x63c)][_0x300052(0x33e)]((_0x3cea9a,_0x532942)=>{const _0xe4de4b=_0x300052;if(!this['_isStartAdjusting'])return;const {offsetX:_0x38bc5d,offsetY:_0x4a59ac}=_0x3cea9a,_0x12891c=this[_0xe4de4b(0x4c9)];if(!this['_activeShapeModel']||!_0x12891c)return;_0x9c2abd[_0xe4de4b(0x2ba)](),_0x9c2abd[_0xe4de4b(0x490)](_univerjs_engine_render[_0xe4de4b(0x4fe)][_0xe4de4b(0x298)]);const _0x365386={'left':0x0,'top':0x0,'width':this[_0xe4de4b(0x683)],'height':this[_0xe4de4b(0x57c)]},_0x3496bd=this[_0xe4de4b(0x696)](_0x3a00cd,_0x34282d),_0x47a258=this[_0xe4de4b(0x2c4)](_0x3a00cd,_0x34282d);let _0x32fe1c=_0x38bc5d/_0x47a258+_0x3496bd['x']-this['_baseLeft'],_0x343271=_0x4a59ac/_0x47a258+_0x3496bd['y']-this['_baseTop'];if(_0x268f8b!==0x0){const _0x41953a=this[_0xe4de4b(0x683)]/0x2,_0x1553f4=this[_0xe4de4b(0x57c)]/0x2,_0x4795cd=_0x268f8b*Math['PI']/0xb4,_0x518128=Math['cos'](_0x4795cd),_0x48283b=Math[_0xe4de4b(0x2ac)](_0x4795cd),_0x27318d=_0x32fe1c-_0x41953a,_0x49de72=_0x343271-_0x1553f4;_0x32fe1c=_0x41953a+(_0x27318d*_0x518128+_0x49de72*_0x48283b),_0x343271=_0x1553f4+(-_0x27318d*_0x48283b+_0x49de72*_0x518128);}if(_0x5209b5)_0x32fe1c=this[_0xe4de4b(0x683)]-_0x32fe1c;if(_0x485952)_0x343271=this[_0xe4de4b(0x57c)]-_0x343271;const _0x1f04c2=this['_activeShapeModel'][_0xe4de4b(0x64a)](_0x365386,{'x':_0x32fe1c,'y':_0x343271},_0x12891c,_0x5209b5,_0x485952),_0x35a87c=_0x12891c['gdRefX']||_0x12891c[_0xe4de4b(0x4ef)]||_0x12891c[_0xe4de4b(0x179)]||_0x12891c['gdRefR'];if(_0x35a87c===void 0x0)return;this[_0xe4de4b(0x23e)][_0xe4de4b(0x697)](_0x35a87c,_0x1f04c2),this['_activeShapeModel']['updateContext']({'width':this[_0xe4de4b(0x683)],'height':this[_0xe4de4b(0x57c)]}),this[_0xe4de4b(0x5f0)](_0x3a00cd,_0x34282d,_0x36280b,_0x35a87c,_0x1f04c2),this[_0xe4de4b(0x311)]=this[_0xe4de4b(0x23e)][_0xe4de4b(0x282)](),this[_0xe4de4b(0x4c9)]=this[_0xe4de4b(0x23e)][_0xe4de4b(0x4a1)](_0x5ec35f),this[_0xe4de4b(0x1ee)](),_0x532942[_0xe4de4b(0x51a)]();}),this[_0x300052(0x532)]=_0x9c2abd[_0x300052(0x633)][_0x300052(0x33e)]((_0x5a8a59,_0x5a9518)=>{const _0x447159=_0x300052;this[_0x447159(0x3fc)][_0x447159(0x34e)](),this[_0x447159(0x532)]['unsubscribe'](),_0x9c2abd[_0x447159(0x13b)]();if(this[_0x447159(0x23e)]){const _0x62d7c2=this[_0x447159(0x23e)]['getAdjustNames'](),_0x23cfcb={};for(const _0xd51c97 of _0x62d7c2){const _0xb72e65=this[_0x447159(0x23e)][_0x447159(0x387)](_0xd51c97);if(_0xb72e65!==void 0x0)_0x23cfcb[_0xd51c97]=_0xb72e65;}this[_0x447159(0x4ac)][_0x447159(0x35e)](_0x3a00cd,_0x34282d,_0x36280b,_0x2d3063,_0x23cfcb);}this[_0x447159(0x4c9)]=void 0x0,this[_0x447159(0x23e)]=void 0x0,this['_isStartAdjusting']=![],_0x5a9518['stopPropagation'](),_0x9c2abd[_0x447159(0x656)]();}),_0x585888[_0x300052(0x51a)]();})));}[_0x5a3cc9(0x5f0)](_0x3f4c81,_0xd2533d,_0x355f06,_0xb666ac,_0x40fad3){const _0x2f1311=_0x5a3cc9,_0x1cd8c2=this[_0x2f1311(0x5ac)][_0x2f1311(0x1bb)](_0x3f4c81);if(!_0x1cd8c2)return;const {scene:_0x40e050}=_0x1cd8c2,_0x385e9b=(0x0,_univerjs_drawing[_0x2f1311(0x550)])({'unitId':_0x3f4c81,'subUnitId':_0xd2533d,'drawingId':_0x355f06}),_0x45d524=_0x40e050[_0x2f1311(0x447)](_0x385e9b);if(_0x45d524 instanceof _univerjs_engine_render[_0x2f1311(0x68e)]){var _0x4128da;const _0x591e10=(_0x4128da=_0x45d524[_0x2f1311(0x689)])!==null&&_0x4128da!==void 0x0?_0x4128da:{};_0x45d524[_0x2f1311(0x433)]({..._0x591e10,[_0xb666ac]:_0x40fad3}),_0x45d524[_0x2f1311(0x2d3)](!![]);}}[_0x5a3cc9(0x171)](){const _0x38df89=_0x5a3cc9,_0x4fba93=this[_0x38df89(0x382)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x38df89(0x374)][_0x38df89(0x147)]);this[_0x38df89(0x5b8)](_0x4fba93[_0x38df89(0x2d9)]((0x0,rxjs['switchMap'])(_0xc731a8=>{const _0x30588b=_0x38df89;if(!_0xc731a8)return rxjs['EMPTY'];return _0xc731a8[_0x30588b(0x680)]['pipe']((0x0,rxjs['switchMap'])(_0x5b5f3a=>{const _0x3bfd63=_0x30588b;if(!_0x5b5f3a)return rxjs[_0x3bfd63(0x3d5)];const _0xa3c013=_0xc731a8['getUnitId'](),_0x1f2f21=this[_0x3bfd63(0x5ac)]['getRenderById'](_0xa3c013),_0x30d3e5=_0x1f2f21===null||_0x1f2f21===void 0x0?void 0x0:_0x1f2f21[_0x3bfd63(0x1ea)];if(!_0x30d3e5)return rxjs[_0x3bfd63(0x3d5)];return(0x0,rxjs['of'])(_0x30d3e5);}));}))[_0x38df89(0x579)](_0x3dc83a=>{const _0x5ec71a=_0x38df89,_0x1568ab=_0x3dc83a[_0x5ec71a(0x3ab)]();this[_0x5ec71a(0x5b8)](_0x3dc83a[_0x5ec71a(0x63c)][_0x5ec71a(0x33e)](()=>{const _0x3c9fb2=_0x5ec71a;if(this[_0x3c9fb2(0x59b)])this[_0x3c9fb2(0x55f)]();})),this['disposeWithMe'](_0x1568ab[_0x5ec71a(0x381)][_0x5ec71a(0x579)](_0x1cd6ee=>{const _0x1f7d50=_0x5ec71a,{objects:_0x40578d}=_0x1cd6ee;this[_0x1f7d50(0x1ee)]();if(_0x40578d!==null&&_0x40578d[_0x1f7d50(0x4d4)]===0x1){const _0x23196a=_0x40578d[_0x1f7d50(0x17c)]()[_0x1f7d50(0x627)]()[_0x1f7d50(0x38c)];if(_0x23196a instanceof _univerjs_engine_render[_0x1f7d50(0x68e)]&&_0x23196a[_0x1f7d50(0x262)])this[_0x1f7d50(0x59b)]=!![];}})),this[_0x5ec71a(0x5b8)](_0x1568ab['changing$'][_0x5ec71a(0x579)](()=>{const _0x3545cf=_0x5ec71a;if(this[_0x3545cf(0x59b)])this[_0x3545cf(0x55f)]();})),this[_0x5ec71a(0x5b8)](_0x3dc83a[_0x5ec71a(0x633)][_0x5ec71a(0x33e)](()=>{const _0x4ec6f9=_0x5ec71a;this[_0x4ec6f9(0x59b)]&&(this['_isImagePointerDown']=![],this[_0x4ec6f9(0x1ee)]());})),this['disposeWithMe'](_0x1568ab[_0x5ec71a(0x638)][_0x5ec71a(0x579)](()=>{const _0x3ee277=_0x5ec71a;if(this['_unitId']&&this['_subUnitId']&&this['_activeImageId']){const _0x367ef5=this['_getImagePrstGeom'](this[_0x3ee277(0x486)],this[_0x3ee277(0x283)],this[_0x3ee277(0x54b)]);if(_0x367ef5){var _0x20f5b2,_0x28a89a;const _0x256198=this[_0x3ee277(0x380)](this['_unitId'],this[_0x3ee277(0x283)],this[_0x3ee277(0x54b)]),_0x158ba5=(_0x256198===null||_0x256198===void 0x0||(_0x20f5b2=_0x256198[_0x3ee277(0x4db)])===null||_0x20f5b2===void 0x0?void 0x0:_0x20f5b2[_0x3ee277(0x47c)])||0x0,_0x121aaa=(_0x256198===null||_0x256198===void 0x0||(_0x28a89a=_0x256198[_0x3ee277(0x4db)])===null||_0x28a89a===void 0x0?void 0x0:_0x28a89a[_0x3ee277(0x36a)])||0x0,_0x6348f8=this[_0x3ee277(0x17d)](_0x367ef5[_0x3ee277(0x262)],_0x158ba5,_0x121aaa,_0x367ef5[_0x3ee277(0x3bb)]);_0x6348f8&&(this[_0x3ee277(0x311)]=_0x6348f8[_0x3ee277(0x282)](),this['_clearControls'](),this[_0x3ee277(0x1ee)](!![]));}}}));}));}[_0x5a3cc9(0x32f)](){const _0x4afa62=_0x5a3cc9;this[_0x4afa62(0x5b8)](this[_0x4afa62(0x2f7)][_0x4afa62(0x533)][_0x4afa62(0x579)](_0xde763c=>{const _0x302888=_0x4afa62;if(_0xde763c['length']===0x1){const _0x186954=_0xde763c[0x0];if(_0x186954[_0x302888(0x2a7)]===_univerjs_core[_0x302888(0x4d6)][_0x302888(0x589)]){const {unitId:_0x2a1350,subUnitId:_0x2715a8,drawingId:_0x148060}=_0x186954,_0x1c20ae=this[_0x302888(0x33f)](_0x2a1350,_0x2715a8,_0x148060);if(_0x1c20ae){var _0x321788,_0x64a3ea;this[_0x302888(0x54b)]=_0x148060,this[_0x302888(0x486)]=_0x2a1350,this[_0x302888(0x283)]=_0x2715a8;const _0x390840=this[_0x302888(0x380)](_0x2a1350,_0x2715a8,_0x148060),_0x2689c0=(_0x390840===null||_0x390840===void 0x0||(_0x321788=_0x390840[_0x302888(0x4db)])===null||_0x321788===void 0x0?void 0x0:_0x321788[_0x302888(0x47c)])||0x0,_0x2645c6=(_0x390840===null||_0x390840===void 0x0||(_0x64a3ea=_0x390840[_0x302888(0x4db)])===null||_0x64a3ea===void 0x0?void 0x0:_0x64a3ea['height'])||0x0,_0x67e92d=this[_0x302888(0x17d)](_0x1c20ae[_0x302888(0x262)],_0x2689c0,_0x2645c6,_0x1c20ae['adjustValues']);if(_0x67e92d)this['_activeAdjustPointList']=_0x67e92d[_0x302888(0x282)]();this[_0x302888(0x55f)](),this[_0x302888(0x1ee)](!![]);}else this['_resetState']();}else this[_0x302888(0x694)]();}else this[_0x302888(0x694)]();})),this[_0x4afa62(0x5b8)](this[_0x4afa62(0x2f7)][_0x4afa62(0x60e)][_0x4afa62(0x579)](_0x48b0e6=>{const _0x3a1680=_0x4afa62;if(_0x48b0e6[_0x3a1680(0x38e)]===0x1){const _0x5729d4=_0x48b0e6[0x0],_0x56cff7=this['_drawingManagerService'][_0x3a1680(0x4ca)](_0x5729d4);(_0x56cff7===null||_0x56cff7===void 0x0?void 0x0:_0x56cff7[_0x3a1680(0x2a7)])===_univerjs_core[_0x3a1680(0x4d6)][_0x3a1680(0x589)]&&(this[_0x3a1680(0x54b)]===_0x5729d4['drawingId']&&(this[_0x3a1680(0x55f)](),this[_0x3a1680(0x1ee)](!![])));}})),this['disposeWithMe'](this[_0x4afa62(0x2f7)][_0x4afa62(0x3e3)][_0x4afa62(0x579)](_0x245c69=>{const _0x56c944=_0x4afa62;for(const _0x398949 of _0x245c69)if(this['_activeImageId']===_0x398949[_0x56c944(0x3bf)])this['_resetState']();}));}[_0x5a3cc9(0x694)](){const _0xf60c9a=_0x5a3cc9;this['_activeImageId']=null,this[_0xf60c9a(0x486)]=null,this[_0xf60c9a(0x283)]=null,this[_0xf60c9a(0x311)]=void 0x0,this[_0xf60c9a(0x55f)]();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x5a3cc9(0x5af)])),__decorateParam(0x3,_univerjs_core[_0x5a3cc9(0x1bc)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x5698f5,_0x188948,_0x2534b7,_0x50b1e2){const _0x33ee3c=_0x5a3cc9;super(),this[_0x33ee3c(0x382)]=_0x5698f5,this['_sheetInterceptorService']=_0x188948,this[_0x33ee3c(0x6a1)]=_0x2534b7,this[_0x33ee3c(0x526)]=_0x50b1e2,this['_initSheetChange']();}[_0x5a3cc9(0x334)](){const _0x9a364b=_0x5a3cc9;this[_0x9a364b(0x5b8)](this[_0x9a364b(0x399)]['interceptCommand']({'getMutations':_0x3f470e=>{const _0x1199bf=_0x9a364b;if(_0x3f470e['id']===_univerjs_sheets[_0x1199bf(0x248)]['id']){const _0x51be27=(0x0,_univerjs_sheets[_0x1199bf(0x5cc)])(this[_0x1199bf(0x382)],_0x3f470e[_0x1199bf(0x3c3)]);if(!_0x51be27)return{'redos':[],'undos':[]};const {unitId:_0x96d70b,subUnitId:_0x2305ef}=_0x51be27,_0x40d3f4=this[_0x1199bf(0x6a1)]['getDrawingData'](_0x96d70b,_0x2305ef),_0x1de6ba=Object[_0x1199bf(0x17c)](_0x40d3f4)['filter'](_0x30cfdc=>_0x30cfdc[_0x1199bf(0x2a7)]===_univerjs_core[_0x1199bf(0x4d6)][_0x1199bf(0x224)]);if(_0x1de6ba[_0x1199bf(0x38e)]===0x0)return{'redos':[],'undos':[]};const _0x50580e=[],_0x66422a=[];for(let _0x40226a=0x0;_0x40226a<_0x1de6ba[_0x1199bf(0x38e)];_0x40226a++){const _0x4652df=_0x1de6ba[_0x40226a],_0x2fffa1=this[_0x1199bf(0x526)][_0x1199bf(0x2ea)](_0x4652df[_0x1199bf(0x4c0)],_0x4652df[_0x1199bf(0x2c2)],_0x4652df[_0x1199bf(0x3bf)]);if(!_0x2fffa1)continue;const {redo:_0x40e41b,undo:_0x515b08,objects:_0x520004}=this[_0x1199bf(0x6a1)][_0x1199bf(0x1cf)]([_0x4652df]);_0x50580e['push']({'id':_univerjs_pro_sheets_shape[_0x1199bf(0x68d)]['id'],'params':{'unitId':_0x96d70b,'subUnitId':_0x2305ef,'shapeId':_0x4652df[_0x1199bf(0x3bf)]}}),_0x50580e['push']({'id':_univerjs_sheets_drawing[_0x1199bf(0x29d)]['id'],'params':{'unitId':_0x96d70b,'subUnitId':_0x2305ef,'type':_univerjs_sheets_drawing[_0x1199bf(0x2a5)][_0x1199bf(0x35f)],'op':_0x40e41b,'objects':_0x520004}}),_0x66422a[_0x1199bf(0x1d9)]({'id':_univerjs_sheets_drawing[_0x1199bf(0x29d)]['id'],'params':{'unitId':_0x96d70b,'subUnitId':_0x2305ef,'type':_univerjs_sheets_drawing[_0x1199bf(0x2a5)]['INSERT'],'op':_0x515b08,'objects':_0x520004}}),_0x66422a[_0x1199bf(0x1d9)]({'id':_univerjs_pro_sheets_shape[_0x1199bf(0x400)]['id'],'params':{'unitId':_0x96d70b,'subUnitId':_0x2305ef,'shapeId':_0x4652df[_0x1199bf(0x3bf)],'shapeType':_0x2fffa1[_0x1199bf(0x373)](),'shapeData':JSON[_0x1199bf(0x4a7)](JSON[_0x1199bf(0x4d9)](_0x2fffa1[_0x1199bf(0x166)]()))}});}return{'redos':_0x50580e,'undos':_0x66422a};}else{if(_0x3f470e['id']===_univerjs_sheets[_0x1199bf(0x54a)]['id']){const {unitId:_0x39dea8,subUnitId:_0x23fad9,targetSubUnitId:_0x42fe4a}=_0x3f470e['params'];if(!_0x39dea8||!_0x23fad9||!_0x42fe4a)return{'redos':[],'undos':[]};const _0x1445c6=this[_0x1199bf(0x6a1)][_0x1199bf(0x51b)](_0x39dea8,_0x23fad9),_0x38ba41=Object[_0x1199bf(0x17c)](_0x1445c6)['filter'](_0x3aa95b=>_0x3aa95b['drawingType']===_univerjs_core[_0x1199bf(0x4d6)][_0x1199bf(0x224)]);if(_0x38ba41[_0x1199bf(0x38e)]===0x0)return{'redos':[],'undos':[]};const _0x5c3e63=[],_0x558b3f=[];for(let _0x476f4a=0x0;_0x476f4a<_0x38ba41['length'];_0x476f4a++){const _0x3cb90e=_0x38ba41[_0x476f4a],_0x537fe5=this[_0x1199bf(0x526)][_0x1199bf(0x2ea)](_0x3cb90e['unitId'],_0x3cb90e[_0x1199bf(0x2c2)],_0x3cb90e[_0x1199bf(0x3bf)]);if(!_0x537fe5)continue;const _0x5a03ed=(0x0,_univerjs_core[_0x1199bf(0x528)])(),_0x45d7df={..._0x3cb90e,'unitId':_0x39dea8,'subUnitId':_0x42fe4a,'drawingId':_0x5a03ed},{redo:_0x1273b6,undo:_0x4ec060,objects:_0x319851}=this[_0x1199bf(0x6a1)][_0x1199bf(0x66c)]([_0x45d7df]);_0x5c3e63[_0x1199bf(0x1d9)]({'id':_univerjs_sheets_drawing[_0x1199bf(0x29d)]['id'],'params':{'unitId':_0x39dea8,'subUnitId':_0x42fe4a,'type':_univerjs_sheets_drawing['DrawingApplyType']['INSERT'],'op':_0x1273b6,'objects':_0x319851}}),_0x5c3e63[_0x1199bf(0x1d9)]({'id':_univerjs_pro_sheets_shape[_0x1199bf(0x400)]['id'],'params':{'unitId':_0x39dea8,'subUnitId':_0x42fe4a,'shapeId':_0x5a03ed,'shapeType':_0x537fe5['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x1199bf(0x4d9)](_0x537fe5[_0x1199bf(0x166)]()))}}),_0x558b3f[_0x1199bf(0x1d9)]({'id':_univerjs_pro_sheets_shape[_0x1199bf(0x68d)]['id'],'params':{'unitId':_0x39dea8,'subUnitId':_0x42fe4a,'shapeId':_0x5a03ed}}),_0x558b3f['push']({'id':_univerjs_sheets_drawing[_0x1199bf(0x29d)]['id'],'params':{'unitId':_0x39dea8,'subUnitId':_0x42fe4a,'type':_univerjs_sheets_drawing['DrawingApplyType']['REMOVE'],'op':_0x4ec060,'objects':_0x319851}});}return{'redos':_0x5c3e63,'undos':_0x558b3f};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_core[_0x5a3cc9(0x1bc)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x5a3cc9(0x6a2)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_sheets_drawing[_0x5a3cc9(0x69d)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_pro_sheets_shape['SheetsShapeService']))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core['Disposable']{constructor(_0x15eea9,_0xc6c509,_0x6f1f4e,_0x2d07c5,_0x2086a3){const _0x973568=_0x5a3cc9;super(),this[_0x973568(0x4c4)]=_0x15eea9,this['_shapeTextEditingService']=_0xc6c509,this[_0x973568(0x2f7)]=_0x6f1f4e,this['_contextService']=_0x2d07c5,this[_0x973568(0x526)]=_0x2086a3,_defineProperty(this,_0x973568(0x180),null),this[_0x973568(0x274)](),this['_initSelection'](),this[_0x973568(0x3ee)]();}['_initEvents'](){const _0x572810=_0x5a3cc9,{scene:_0x114374}=this[_0x572810(0x4c4)];this[_0x572810(0x5b8)](_0x114374[_0x572810(0x1ba)][_0x572810(0x33e)](_0x57c713=>{const _0x47d50e=_0x572810,{offsetX:_0x58c9a7,offsetY:_0x163450}=_0x57c713,_0x58ee09=_0x114374[_0x47d50e(0x2fe)](_univerjs_engine_render['Vector2'][_0x47d50e(0x1fc)]([_0x58c9a7,_0x163450]));if(_0x58ee09 instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x47d50e(0x3b6)])(this[_0x47d50e(0x526)][_0x47d50e(0x373)](_0x58ee09[_0x47d50e(0x4c0)],_0x58ee09[_0x47d50e(0x2c2)],_0x58ee09[_0x47d50e(0x525)])))return;this[_0x47d50e(0x4c5)][_0x47d50e(0x3cb)]({'visible':!![],'unitId':_0x58ee09[_0x47d50e(0x4c0)],'subUnitId':_0x58ee09[_0x47d50e(0x2c2)],'shapeId':_0x58ee09[_0x47d50e(0x525)],'shapeKey':_0x58ee09[_0x47d50e(0x5a1)]});}}));}[_0x5a3cc9(0x32d)](){const _0x20caa3=_0x5a3cc9;this['disposeWithMe'](this[_0x20caa3(0x2f7)][_0x20caa3(0x533)][_0x20caa3(0x579)](_0x49b20a=>{const _0x7d36ea=_0x20caa3;if(_0x49b20a[_0x7d36ea(0x38e)]===0x1){const _0x20277f=_0x49b20a[0x0],_0x378306=this['_drawingManagerService'][_0x7d36ea(0x4ca)](_0x20277f);if((_0x378306===null||_0x378306===void 0x0?void 0x0:_0x378306[_0x7d36ea(0x2a7)])===_univerjs_core[_0x7d36ea(0x4d6)][_0x7d36ea(0x224)]){const _0x24b445=this[_0x7d36ea(0x4c5)]['getEditing']();if((_0x24b445===null||_0x24b445===void 0x0?void 0x0:_0x24b445['shapeId'])===_0x20277f[_0x7d36ea(0x3bf)]&&_0x24b445['visible'])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x7d36ea(0x526)][_0x7d36ea(0x373)](_0x20277f['unitId'],_0x20277f[_0x7d36ea(0x2c2)],_0x20277f[_0x7d36ea(0x3bf)])))this[_0x7d36ea(0x4c5)][_0x7d36ea(0x3cb)](null);}else this['_shapeTextEditingService'][_0x7d36ea(0x275)]()&&(this[_0x7d36ea(0x4c5)][_0x7d36ea(0x45d)](!![]),requestAnimationFrame(()=>{const _0x391118=_0x7d36ea;this[_0x391118(0x4c5)]['setEditing'](null);}));}else this[_0x7d36ea(0x4c5)][_0x7d36ea(0x275)]()&&(this[_0x7d36ea(0x4c5)]['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0x3d56cd=_0x7d36ea;this[_0x3d56cd(0x4c5)][_0x3d56cd(0x3cb)](null);}));})),this[_0x20caa3(0x5b8)](this[_0x20caa3(0x2f7)][_0x20caa3(0x3e3)][_0x20caa3(0x579)](_0x1eaf4e=>{const _0xa32747=_0x20caa3,_0x30e4a9=this[_0xa32747(0x4c5)][_0xa32747(0x275)]();if(_0x30e4a9&&_0x1eaf4e['some'](_0x49b14f=>_0x49b14f[_0xa32747(0x3bf)]===_0x30e4a9['shapeId']))this[_0xa32747(0x4c5)]['setEditing'](null);}));}[_0x5a3cc9(0x3ee)](){const _0x1c89eb=_0x5a3cc9;this['disposeWithMe'](this[_0x1c89eb(0x4c5)][_0x1c89eb(0x1b4)][_0x1c89eb(0x579)](_0x4ea802=>{const _0xabde3f=_0x1c89eb,{scene:_0x5571a6}=this[_0xabde3f(0x4c4)];if(this['_lastEditingShapeKey']){const _0x35430b=_0x5571a6[_0xabde3f(0x479)](this[_0xabde3f(0x180)]);if(_0x35430b)_0x35430b[_0xabde3f(0x3cb)](![]);}if(_0x4ea802){const _0x3966d8=!!_0x4ea802[_0xabde3f(0x675)],_0x411f50=_0x5571a6[_0xabde3f(0x479)](_0x4ea802[_0xabde3f(0x4f5)]);_0x411f50&&(_0x411f50[_0xabde3f(0x3cb)](_0x3966d8),this[_0xabde3f(0x180)]=_0x4ea802[_0xabde3f(0x4f5)]),this[_0xabde3f(0x15b)][_0xabde3f(0x1a0)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],_0x3966d8);}else this[_0xabde3f(0x180)]=null,this[_0xabde3f(0x15b)][_0xabde3f(0x1a0)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x5a3cc9(0x622)]),__decorateParam(0x3,_univerjs_core[_0x5a3cc9(0x460)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x5a3cc9(0x142)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape[_0x5a3cc9(0x1d0)][_0x5a3cc9(0x688)],'stroke':_univerjs_pro_engine_shape[_0x5a3cc9(0x1d0)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape[_0x5a3cc9(0x1d0)][_0x5a3cc9(0x3a4)]},'highlighted':{'fill':'#4285f4','stroke':_0x5a3cc9(0x5c9),'strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0x5a3cc9(0x522)]{constructor(_0x55c081,_0x1d31cd){const _0x272685=_0x5a3cc9;super(_0x55c081,_0x1d31cd),_defineProperty(this,_0x272685(0x2bb),''),_defineProperty(this,_0x272685(0x155),-0x1),_defineProperty(this,_0x272685(0x486),''),_defineProperty(this,_0x272685(0x283),''),_defineProperty(this,_0x272685(0x559),![]);if(_0x1d31cd)this[_0x272685(0x3e9)](_0x1d31cd);}[_0x5a3cc9(0x393)](){const _0x4bbc82=_0x5a3cc9;return{'unitId':this[_0x4bbc82(0x486)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x4bbc82(0x2bb)],'cxnIndex':this[_0x4bbc82(0x155)]};}['setHighlighted'](_0x3b202d){const _0x51f063=_0x5a3cc9;this['_isHighlighted']!==_0x3b202d&&(this[_0x51f063(0x559)]=_0x3b202d,this[_0x51f063(0x2d3)](!![]));}[_0x5a3cc9(0x44b)](){return this['_isHighlighted'];}[_0x5a3cc9(0x3e9)](_0x38349e){const _0x133f6e=_0x5a3cc9;var _0x15298b,_0x37b504;if(typeof _0x38349e[_0x133f6e(0x580)]!=='undefined')this[_0x133f6e(0x2bb)]=_0x38349e['targetShapeId'];if(typeof _0x38349e[_0x133f6e(0x65b)]!==_0x133f6e(0x18e))this['_cxnIndex']=_0x38349e[_0x133f6e(0x65b)];if(typeof _0x38349e[_0x133f6e(0x4c0)]!==_0x133f6e(0x18e))this[_0x133f6e(0x486)]=_0x38349e[_0x133f6e(0x4c0)];if(typeof _0x38349e[_0x133f6e(0x2c2)]!=='undefined')this[_0x133f6e(0x283)]=_0x38349e[_0x133f6e(0x2c2)];if(typeof _0x38349e[_0x133f6e(0x44b)]!==_0x133f6e(0x18e))this[_0x133f6e(0x559)]=_0x38349e[_0x133f6e(0x44b)];this[_0x133f6e(0x53c)]({'width':(_0x15298b=_0x38349e['width'])!==null&&_0x15298b!==void 0x0?_0x15298b:_univerjs_pro_engine_shape[_0x133f6e(0x1d0)][_0x133f6e(0x503)]*0x2,'height':(_0x37b504=_0x38349e['height'])!==null&&_0x37b504!==void 0x0?_0x37b504:_univerjs_pro_engine_shape[_0x133f6e(0x1d0)][_0x133f6e(0x503)]*0x2});}['_draw'](_0x480a5f){const _0x103d37=_0x5a3cc9,_0x2ccd06=this['_isHighlighted']?ConnectionSiteStyle[_0x103d37(0x527)]:ConnectionSiteStyle[_0x103d37(0x34d)];_univerjs_engine_render['Circle'][_0x103d37(0x1e4)](_0x480a5f,{'radius':_univerjs_pro_engine_shape[_0x103d37(0x1d0)][_0x103d37(0x503)],'fill':_0x2ccd06['fill'],'stroke':_0x2ccd06[_0x103d37(0x3ca)],'strokeWidth':_0x2ccd06[_0x103d37(0x238)],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x12f767,_0x11af11,_0x18c671,_0x42ea87){const _0x117d15=_0x5a3cc9;super(),this[_0x117d15(0x4c4)]=_0x12f767,this[_0x117d15(0x5ac)]=_0x11af11,this['_drawingManagerService']=_0x18c671,this[_0x117d15(0x526)]=_0x42ea87,_defineProperty(this,_0x117d15(0x606),[]),_defineProperty(this,_0x117d15(0x54d),null),_defineProperty(this,_0x117d15(0x530),-0x1),_defineProperty(this,_0x117d15(0x21c),null),_defineProperty(this,_0x117d15(0x486),''),_defineProperty(this,_0x117d15(0x283),''),_defineProperty(this,_0x117d15(0x1e2),null);}[_0x5a3cc9(0x644)](_0x4a2604,_0x43002f,_0x3d4816,_0x1eff02){const _0x5eac35=_0x5a3cc9;this['_currentScene']=_0x4a2604,this[_0x5eac35(0x486)]=_0x43002f,this['_subUnitId']=_0x3d4816,this['_draggingConnectorId']=_0x1eff02;}[_0x5a3cc9(0x407)](_0x62db29){const _0x17bfa6=_0x5a3cc9;if(!this[_0x17bfa6(0x21c)])return null;const _0x53ee3b=this['_findShapeAtPoint'](_0x62db29);return _0x53ee3b?(this['_activeTargetShapeId']!==_0x53ee3b[_0x17bfa6(0x525)]&&(this['_clearConnectionSites'](),this[_0x17bfa6(0x5d7)](_0x53ee3b[_0x17bfa6(0x525)],_0x53ee3b[_0x17bfa6(0x225)]),this[_0x17bfa6(0x54d)]=_0x53ee3b['shapeId']),this[_0x17bfa6(0x562)](_0x62db29)):(this['_activeTargetShapeId']!==null&&(this[_0x17bfa6(0x397)](),this[_0x17bfa6(0x54d)]=null),null);}[_0x5a3cc9(0x304)](){const _0x117e18=_0x5a3cc9;this[_0x117e18(0x397)](),this[_0x117e18(0x21c)]=null,this['_activeTargetShapeId']=null,this[_0x117e18(0x530)]=-0x1,this[_0x117e18(0x1e2)]=null;}[_0x5a3cc9(0x146)](){const _0x2aef47=_0x5a3cc9;if(this[_0x2aef47(0x54d)]===null||this[_0x2aef47(0x530)]<0x0)return null;return{'shapeId':this[_0x2aef47(0x54d)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x5a3cc9(0x360)](_0x2a6428){const _0x4713b2=_0x5a3cc9,_0x572153=this[_0x4713b2(0x2f7)]['getDrawingData'](this[_0x4713b2(0x486)],this['_subUnitId']);for(const _0x297a9a of Object[_0x4713b2(0x1f0)](_0x572153)){if(_0x297a9a===this['_draggingConnectorId'])continue;if(_0x572153[_0x297a9a]['drawingType']!==_univerjs_core[_0x4713b2(0x4d6)][_0x4713b2(0x224)])continue;const _0x1a55af=this[_0x4713b2(0x526)][_0x4713b2(0x2ea)](this['_unitId'],this[_0x4713b2(0x283)],_0x297a9a);if(!_0x1a55af)continue;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x1a55af[_0x4713b2(0x373)]()))continue;if(_0x1a55af[_0x4713b2(0x474)]()[_0x4713b2(0x38e)]===0x0)continue;if(!this[_0x4713b2(0x21c)])continue;const _0xd65494=(0x0,_univerjs_drawing[_0x4713b2(0x550)])({'unitId':this[_0x4713b2(0x486)],'subUnitId':this[_0x4713b2(0x283)],'drawingId':_0x297a9a}),_0x5bcff7=this[_0x4713b2(0x21c)]['getObjectIncludeInGroup'](_0xd65494);if(!_0x5bcff7)continue;const {left:_0x34eac4,top:_0xe5ef33,width:_0x2a8900,height:_0xb6f4eb}=_0x5bcff7['getRealBound'](),_0x270266=_0x34eac4+_0x2a8900/0x2,_0x3c158b=_0xe5ef33+_0xb6f4eb/0x2,_0x2f207f=_0x5bcff7['transform'][_0x4713b2(0x4cb)](),_0x5bdc80=new _univerjs_engine_render[(_0x4713b2(0x605))]([_0x2f207f[0x0],_0x2f207f[0x1],_0x2f207f[0x2],_0x2f207f[0x3],_0x270266,_0x3c158b]),_0x2e1de6=_0x5bcff7[_0x4713b2(0x5ca)](),_0x412725=(_0x5bcff7[_0x4713b2(0x600)]&&(_0x2e1de6===null||_0x2e1de6===void 0x0?void 0x0:_0x2e1de6[_0x4713b2(0x317)])===_univerjs_engine_render[_0x4713b2(0x222)][_0x4713b2(0x39a)]?_0x2e1de6[_0x4713b2(0x510)]['multiply'](_0x5bdc80):_0x5bdc80)[_0x4713b2(0x320)]()[_0x4713b2(0x4a0)](_0x2a6428),_0x25399c=_0x2a8900/0x2,_0x2c8354=_0xb6f4eb/0x2,_0x25f4c6=SHAPE_BOUNDS_PADDING;if(_0x412725['x']>=-_0x25399c-_0x25f4c6&&_0x412725['x']<=_0x25399c+_0x25f4c6&&_0x412725['y']>=-_0x2c8354-_0x25f4c6&&_0x412725['y']<=_0x2c8354+_0x25f4c6)return{'shapeId':_0x297a9a,'shapeModel':_0x1a55af};}return null;}[_0x5a3cc9(0x5d7)](_0x2d2c74,_0x3f48e7){const _0x45313f=_0x5a3cc9;if(!this[_0x45313f(0x21c)])return;const _0x50d630=(0x0,_univerjs_drawing[_0x45313f(0x550)])({'unitId':this[_0x45313f(0x486)],'subUnitId':this[_0x45313f(0x283)],'drawingId':_0x2d2c74}),_0x2301a8=this[_0x45313f(0x21c)][_0x45313f(0x479)](_0x50d630);if(!_0x2301a8)return;const {left:_0x3a29c8,top:_0x4fe5b9,width:_0x42b2f4,height:_0x1a6a8d}=_0x2301a8[_0x45313f(0x329)](),_0x35a1b1=_0x3a29c8+_0x42b2f4/0x2,_0xfed390=_0x4fe5b9+_0x1a6a8d/0x2,_0x3dcfa9=_0x2301a8['transform']['getMatrix'](),_0x43e740=new _univerjs_engine_render['Transform']([_0x3dcfa9[0x0],_0x3dcfa9[0x1],_0x3dcfa9[0x2],_0x3dcfa9[0x3],_0x35a1b1,_0xfed390]),_0x482e7d=_0x2301a8['getParent'](),_0x33af54=_0x2301a8['isInGroup']&&(_0x482e7d===null||_0x482e7d===void 0x0?void 0x0:_0x482e7d['classType'])===_univerjs_engine_render[_0x45313f(0x222)][_0x45313f(0x39a)]?_0x482e7d[_0x45313f(0x510)]['multiply'](_0x43e740):_0x43e740;_0x3f48e7[_0x45313f(0x4d3)]({'width':_0x42b2f4,'height':_0x1a6a8d});const _0x68bc54=_0x3f48e7[_0x45313f(0x474)]();for(const _0x1db601 of _0x68bc54){const _0x577b99=_0x1db601['x']-_0x42b2f4/0x2,_0x123890=_0x1db601['y']-_0x1a6a8d/0x2,_0xe86ac6=_0x33af54[_0x45313f(0x4a0)]({'x':_0x577b99,'y':_0x123890}),_0x489c99=_0xe86ac6['x'],_0x587bda=_0xe86ac6['y'],_0x580dd4=new SheetBasicShapeConnectionSiteObject(_0x45313f(0x4f1)+_0x2d2c74+'-'+_0x1db601[_0x45313f(0x5eb)],{'left':_0x489c99-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x45313f(0x503)],'top':_0x587bda-_univerjs_pro_engine_shape[_0x45313f(0x1d0)][_0x45313f(0x503)],'targetShapeId':_0x2d2c74,'cxnIndex':_0x1db601[_0x45313f(0x5eb)],'unitId':this['_unitId'],'subUnitId':this[_0x45313f(0x283)],'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x45313f(0x503)]*0x2,'height':_univerjs_pro_engine_shape[_0x45313f(0x1d0)][_0x45313f(0x503)]*0x2,'zIndex':_univerjs_engine_render[_0x45313f(0x49a)]+0x2,'evented':![]});this['_connectionSiteObjects'][_0x45313f(0x1d9)](_0x580dd4),this[_0x45313f(0x21c)]['addObject'](_0x580dd4,_univerjs_engine_render[_0x45313f(0x49a)]+0x2);}}[_0x5a3cc9(0x562)](_0x528f02){const _0x2c2e66=_0x5a3cc9;let _0x110b5e=null,_0x23cbe7=Infinity,_0x1f8e4b=null;for(const _0x5c809b of this[_0x2c2e66(0x606)]){const _0x590424=_0x5c809b[_0x2c2e66(0x19d)]+_univerjs_pro_engine_shape[_0x2c2e66(0x1d0)]['cxnPointRadius'],_0x6dc82f=_0x5c809b[_0x2c2e66(0x3e5)]+_univerjs_pro_engine_shape[_0x2c2e66(0x1d0)][_0x2c2e66(0x503)],_0x2d1069=_0x528f02['x']-_0x590424,_0x915551=_0x528f02['y']-_0x6dc82f,_0x21de10=Math[_0x2c2e66(0x349)](_0x2d1069*_0x2d1069+_0x915551*_0x915551);_0x21de10<_0x23cbe7&&(_0x23cbe7=_0x21de10,_0x110b5e=_0x5c809b,_0x1f8e4b={'x':_0x590424,'y':_0x6dc82f});}const _0x716a2a=_0x23cbe7<=CONNECTION_SITE_HIT_RADIUS&&_0x110b5e?_0x110b5e['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x716a2a!==this[_0x2c2e66(0x530)]){for(const _0x19509a of this[_0x2c2e66(0x606)]){const _0x2035f0=_0x19509a[_0x2c2e66(0x393)]();_0x19509a[_0x2c2e66(0x328)](_0x2035f0[_0x2c2e66(0x65b)]===_0x716a2a);}this[_0x2c2e66(0x530)]=_0x716a2a;}if(_0x23cbe7<=CONNECTION_SITE_HIT_RADIUS&&_0x110b5e&&_0x1f8e4b){const _0x23e828=_0x110b5e['getConnectionInfo'](),_0x1bfb6e=this['_getConnectionSiteAngle'](_0x23e828[_0x2c2e66(0x525)],_0x23e828[_0x2c2e66(0x65b)]);return{'shapeId':_0x23e828[_0x2c2e66(0x525)],'cxnIndex':_0x23e828['cxnIndex'],'unitId':_0x23e828[_0x2c2e66(0x4c0)],'subUnitId':_0x23e828[_0x2c2e66(0x2c2)],'worldPoint':_0x1f8e4b,'angle':_0x1bfb6e};}return null;}[_0x5a3cc9(0x394)](_0xd924ba,_0x120625){const _0x13efae=_0x5a3cc9,_0x1e8fc9=this[_0x13efae(0x526)]['getShapeModel'](this[_0x13efae(0x486)],this[_0x13efae(0x283)],_0xd924ba);if(!_0x1e8fc9)return 0x0;const _0x45debe=this['_drawingManagerService'][_0x13efae(0x4ca)]({'unitId':this[_0x13efae(0x486)],'subUnitId':this[_0x13efae(0x283)],'drawingId':_0xd924ba});if(!(_0x45debe===null||_0x45debe===void 0x0?void 0x0:_0x45debe[_0x13efae(0x4db)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x45debe[_0x13efae(0x4db)];_0x1e8fc9['updateContext']({'width':width,'height':height});const _0xf5d03f=_0x1e8fc9[_0x13efae(0x474)]()['find'](_0x6708f5=>_0x6708f5[_0x13efae(0x5eb)]===_0x120625);if(!_0xf5d03f)return 0x0;let _0x39f5ca=_0xf5d03f['ang']/0xea60;if(flipX)_0x39f5ca=0xb4-_0x39f5ca;if(flipY)_0x39f5ca=-_0x39f5ca;return _0x39f5ca=(_0x39f5ca%0x168+0x168)%0x168,_0x39f5ca;}[_0x5a3cc9(0x397)](){const _0x2cfd11=_0x5a3cc9;for(const _0x3e7130 of this[_0x2cfd11(0x606)])_0x3e7130['dispose']();this['_connectionSiteObjects']=[],this[_0x2cfd11(0x530)]=-0x1;}[_0x5a3cc9(0x46b)](){const _0x495511=_0x5a3cc9;this['_clearConnectionSites'](),super[_0x495511(0x46b)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_engine_render['IRenderManagerService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_drawing[_0x5a3cc9(0x622)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_pro_sheets_shape[_0x5a3cc9(0x142)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x180477,_0xebbdea,_0x466056,_0x2d4c16,_0x4feb67){const _0xbb95ba=_0x5a3cc9;super(),this[_0xbb95ba(0x641)]=_0x180477,this['_sheetClipboardService']=_0xebbdea,this[_0xbb95ba(0x6a1)]=_0x466056,this[_0xbb95ba(0x5b1)]=_0x2d4c16,this[_0xbb95ba(0x543)]=_0x4feb67,_defineProperty(this,_0xbb95ba(0x5c0),void 0x0),this[_0xbb95ba(0x3ec)](),this[_0xbb95ba(0x39f)]();}get[_0x5a3cc9(0x16d)](){const _0x4f7f9f=_0x5a3cc9;return this[_0x4f7f9f(0x6a1)][_0x4f7f9f(0x5f5)]();}[_0x5a3cc9(0x39f)](){const _0x5fb33e=_0x5a3cc9;this[_0x5fb33e(0x543)]['registerFeaturePasteHook'](({fromUnitId:_0x8a84f3,fromSubUnitId:_0x459cfe,toUnitId:_0x9735d,toSubUnitId:_0x1e2e28,idMap:_0x358fe8})=>{const _0x193eed=_0x5fb33e,_0x167d29=[],_0x162d88=[];for(const [_0x118ff6,_0x1d1d82]of _0x358fe8[_0x193eed(0x1dc)]()){const _0x414965=this[_0x193eed(0x5b1)][_0x193eed(0x2ea)](_0x8a84f3,_0x459cfe,_0x118ff6);if(!_0x414965)continue;const _0x561503=_0x414965[_0x193eed(0x373)](),_0x338d68=JSON[_0x193eed(0x4a7)](JSON['stringify'](_0x414965[_0x193eed(0x166)]()));if(_0x338d68[_0x193eed(0x358)]){var _0x1bf8d7,_0x3e12cb;const _0x498183=(_0x1bf8d7=_0x338d68[_0x193eed(0x358)][_0x193eed(0x26c)])===null||_0x1bf8d7===void 0x0?void 0x0:_0x1bf8d7['shapeId'],_0x3d2db4=(_0x3e12cb=_0x338d68[_0x193eed(0x358)]['to'])===null||_0x3e12cb===void 0x0?void 0x0:_0x3e12cb[_0x193eed(0x525)],_0x470bd4=_0x498183?_0x358fe8[_0x193eed(0x416)](_0x498183):!![],_0x4668e3=_0x3d2db4?_0x358fe8['has'](_0x3d2db4):!![];if(_0x470bd4&&_0x498183&&_0x338d68['relation'][_0x193eed(0x26c)])_0x338d68[_0x193eed(0x358)][_0x193eed(0x26c)]={..._0x338d68[_0x193eed(0x358)][_0x193eed(0x26c)],'shapeId':_0x358fe8['get'](_0x498183)};else _0x338d68[_0x193eed(0x358)][_0x193eed(0x26c)]=void 0x0;if(_0x4668e3&&_0x3d2db4&&_0x338d68[_0x193eed(0x358)]['to'])_0x338d68[_0x193eed(0x358)]['to']={..._0x338d68[_0x193eed(0x358)]['to'],'shapeId':_0x358fe8[_0x193eed(0x62d)](_0x3d2db4)};else _0x338d68['relation']['to']=void 0x0;}_0x167d29[_0x193eed(0x1d9)]({'id':_univerjs_pro_sheets_shape[_0x193eed(0x400)]['id'],'params':{'unitId':_0x9735d,'subUnitId':_0x1e2e28,'shapeId':_0x1d1d82,'shapeType':_0x561503,'shapeData':_0x338d68}}),_0x162d88[_0x193eed(0x1d9)]({'id':_univerjs_pro_sheets_shape[_0x193eed(0x68d)]['id'],'params':{'unitId':_0x9735d,'subUnitId':_0x1e2e28,'shapeId':_0x1d1d82}});}return{'redos':_0x167d29,'undos':_0x162d88};});}['_initCopyPaste'](){const _0x58ec8b=_0x5a3cc9;this[_0x58ec8b(0x5b8)](this[_0x58ec8b(0x585)]['addClipboardHook']({'id':'sheets-shape-ui','onBeforeCopy':(_0x2e60b4,_0x4b48d1,_0x560466,_0x5de263)=>{const _0x1b3d31=_0x58ec8b;this['_copyInfo']=null;const _0x29627e=this[_0x1b3d31(0x16d)];if(_0x29627e[_0x1b3d31(0x38e)]){const _0xfd1396=_0x29627e['filter'](_0x4d8836=>_0x4d8836[_0x1b3d31(0x2a7)]===_univerjs_core[_0x1b3d31(0x4d6)][_0x1b3d31(0x224)]);if(_0xfd1396[_0x1b3d31(0x38e)]===0x0)return;this[_0x1b3d31(0x5c0)]={'unitId':_0x2e60b4,'subUnitId':_0x4b48d1,'copyType':_0x5de263,'drawings':_0xfd1396};}else this[_0x1b3d31(0x342)](_0x2e60b4,_0x4b48d1,_0x560466,_0x5de263);},'onPasteCells':(_0x34f859,_0x2de94f,_0x3cb625,_0xfaee26)=>{const _0x208fdb=_0x58ec8b;if(!this[_0x208fdb(0x5c0)])return{'redos':[],'undos':[]};const {pasteType:_0x1b4cb3}=_0xfaee26;if(_0x1b4cb3!==_univerjs_sheets_ui[_0x208fdb(0x3cd)][_0x208fdb(0x347)])return{'redos':[],'undos':[]};return this[_0x208fdb(0x219)](_0x2de94f,this[_0x208fdb(0x5c0)]['copyType']===_univerjs_sheets_ui[_0x208fdb(0x513)][_0x208fdb(0x53a)]);},'onPasteUnrecognized':_0x45894c=>{const _0x95567e=_0x58ec8b;if(!this[_0x95567e(0x5c0)])return{'redos':[],'undos':[]};return this[_0x95567e(0x219)](_0x45894c,this[_0x95567e(0x5c0)][_0x95567e(0x5f2)]===_univerjs_sheets_ui[_0x95567e(0x513)][_0x95567e(0x53a)]);}}));}['_createCopyInfoByRange'](_0x124196,_0x4bc808,_0x41c91d,_0x104295){const _0x2d03da=_0x5a3cc9,_0x39b499=this[_0x2d03da(0x641)]['getSkeleton'](_0x124196,_0x4bc808);if(!_0x39b499)return;const _0x300a71=(0x0,_univerjs_sheets[_0x2d03da(0x16e)])(_0x39b499,_0x41c91d);if(!_0x300a71)return;const {startX:_0x109d78,endX:_0x3d708c,startY:_0x7f4905,endY:_0x22ae4f}=_0x300a71,_0xdaee5d=this[_0x2d03da(0x6a1)][_0x2d03da(0x51b)](_0x124196,_0x4bc808),_0xd98d1c=this[_0x2d03da(0x16d)][_0x2d03da(0x427)]();for(const [_0xc5db48,_0x1b1fe1]of Object['entries'](_0xdaee5d)){if(_0x1b1fe1[_0x2d03da(0x2a7)]!==_univerjs_core[_0x2d03da(0x4d6)][_0x2d03da(0x224)])continue;const {transform:_0x2f5e0e}=_0x1b1fe1;if(!_0x2f5e0e)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x2f5e0e;if(_0x109d78<=left&&_0x3d708c>=left+width&&_0x7f4905<=top&&_0x22ae4f>=top+height)_0xd98d1c[_0x2d03da(0x1d9)](_0x1b1fe1);}if(_0xd98d1c[_0x2d03da(0x38e)]>0x0)this[_0x2d03da(0x5c0)]={'unitId':_0x124196,'subUnitId':_0x4bc808,'copyType':_0x104295,'copyRange':_0x41c91d,'drawings':_0xd98d1c};}[_0x5a3cc9(0x219)](_0xcc4615,_0x42fabc){const _0x51c694=_0x5a3cc9,{unitId:_0x218b56,subUnitId:_0x28171f,range:_0x2ab3d4}=_0xcc4615,_0x21855c=this[_0x51c694(0x641)]['getSkeleton'](_0x218b56,_0x28171f);if(!_0x21855c)return{'redos':[],'undos':[]};const _0x3af358=(0x0,_univerjs_sheets[_0x51c694(0x244)])(_0x2ab3d4),{unitId:_0x443ea1,subUnitId:_0x1476c6,copyRange:_0x54003d,drawings:_0x2a119b}=this[_0x51c694(0x5c0)],_0x18d257=this[_0x51c694(0x641)][_0x51c694(0x51c)](_0x443ea1,_0x1476c6);if(!_0x18d257)return{'redos':[],'undos':[]};let _0x46d641;if(!_0x54003d){let _0x346136=Infinity,_0x134dd7=Infinity;for(const _0x398f9d of _0x2a119b){var _0x1e4358;const {left:left=0x0,top:top=0x0}=(_0x1e4358=_0x398f9d[_0x51c694(0x4db)])!==null&&_0x1e4358!==void 0x0?_0x1e4358:{};if(left<_0x346136)_0x346136=left;if(top<_0x134dd7)_0x134dd7=top;}if(_0x346136!==Infinity&&_0x134dd7!==Infinity)_0x46d641={'left':_0x346136,'top':_0x134dd7};}const _0x8528a2=new Map();if(!_0x42fabc){for(const _0x3a1d93 of _0x2a119b)_0x8528a2[_0x51c694(0x2f2)](_0x3a1d93[_0x51c694(0x3bf)],(0x0,_univerjs_core[_0x51c694(0x528)])());}const _0x1e46c0=[],_0x39cafc=[];for(const _0x1d30a1 of _0x2a119b){const {drawingId:_0x256e60,transform:_0x4938b3,sheetTransform:_0x18da6a}=_0x1d30a1;if(!_0x4938b3||!_0x18da6a)continue;const _0x1dd0cf=this[_0x51c694(0x5df)]({'transform':_0x4938b3,'sheetTransform':_0x18da6a},{'skeleton':_0x18d257,'range':_0x54003d},{'skeleton':_0x21855c,'range':_0x3af358},_0x46d641);if(_0x42fabc){const {redos:_0x9c9b5d,undos:_0xd6d902}=this[_0x51c694(0x38a)]({'fromUnitId':_0x443ea1,'fromSubUnitId':_0x1476c6,'toUnitId':_0x218b56,'toSubUnitId':_0x28171f,'drawing':_0x1d30a1,'newTransforms':_0x1dd0cf});_0x1e46c0['push'](..._0x9c9b5d),_0x39cafc[_0x51c694(0x1d9)](..._0xd6d902);continue;}const {redos:_0x33bf8d,undos:_0x3f8a34}=this['_generateCopyPasteMutations']({'toUnitId':_0x218b56,'toSubUnitId':_0x28171f,'drawing':_0x1d30a1,'newTransforms':_0x1dd0cf,'newDrawingId':_0x8528a2[_0x51c694(0x62d)](_0x256e60),'idMap':_0x8528a2});_0x1e46c0[_0x51c694(0x1d9)](..._0x33bf8d),_0x39cafc[_0x51c694(0x1d9)](..._0x3f8a34);}return{'redos':_0x1e46c0,'undos':_0x39cafc};}[_0x5a3cc9(0x38a)](_0x52ad36){const _0x5bc3a9=_0x5a3cc9,{fromUnitId:_0x4a00d4,fromSubUnitId:_0x4ad0cf,toUnitId:_0x45bbac,toSubUnitId:_0x3c261e,drawing:_0x499d49,newTransforms:_0x48b027}=_0x52ad36,_0x3ece3b={..._0x499d49,'unitId':_0x45bbac,'subUnitId':_0x3c261e,'transform':_0x48b027[_0x5bc3a9(0x4db)],'sheetTransform':_0x48b027[_0x5bc3a9(0x440)]};if(_0x45bbac===_0x4a00d4&&_0x3c261e===_0x4ad0cf){const {redo:_0x1aa400,undo:_0x14a28a,objects:_0xa9830f}=this[_0x5bc3a9(0x6a1)][_0x5bc3a9(0x494)]([_0x3ece3b]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x5bc3a9(0x29d)]['id'],'params':{'unitId':_0x45bbac,'subUnitId':_0x3c261e,'type':_univerjs_sheets_drawing[_0x5bc3a9(0x2a5)][_0x5bc3a9(0x4fb)],'op':_0x1aa400,'objects':_0xa9830f}}],'undos':[{'id':_univerjs_sheets_drawing[_0x5bc3a9(0x29d)]['id'],'params':{'unitId':_0x45bbac,'subUnitId':_0x3c261e,'type':_univerjs_sheets_drawing[_0x5bc3a9(0x2a5)][_0x5bc3a9(0x4fb)],'op':_0x14a28a,'objects':_0xa9830f}}]};}else{const _0x4a10b8=this['_sheetDrawingService'][_0x5bc3a9(0x1cf)]([_0x499d49]),_0xad6b2=this['_sheetDrawingService'][_0x5bc3a9(0x66c)]([_0x3ece3b]),_0x4facda=this[_0x5bc3a9(0x5b1)][_0x5bc3a9(0x2ea)](_0x499d49[_0x5bc3a9(0x4c0)],_0x499d49[_0x5bc3a9(0x2c2)],_0x499d49['drawingId']);if(!_0x4facda)return{'redos':[],'undos':[]};const _0x1718c7=_0x4facda[_0x5bc3a9(0x373)](),_0xdd0dd9=JSON[_0x5bc3a9(0x4a7)](JSON[_0x5bc3a9(0x4d9)](_0x4facda[_0x5bc3a9(0x166)]()));return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a00d4,'subUnitId':_0x4ad0cf,'type':_univerjs_sheets_drawing[_0x5bc3a9(0x2a5)]['REMOVE'],'op':_0x4a10b8['redo'],'objects':_0x4a10b8[_0x5bc3a9(0x59e)]}},{'id':_univerjs_pro_sheets_shape[_0x5bc3a9(0x68d)]['id'],'params':{'unitId':_0x4a00d4,'subUnitId':_0x4ad0cf,'shapeId':_0x499d49[_0x5bc3a9(0x3bf)]}},{'id':_univerjs_sheets_drawing[_0x5bc3a9(0x29d)]['id'],'params':{'unitId':_0x45bbac,'subUnitId':_0x3c261e,'type':_univerjs_sheets_drawing[_0x5bc3a9(0x2a5)][_0x5bc3a9(0x649)],'op':_0xad6b2[_0x5bc3a9(0x1e0)],'objects':_0xad6b2['objects']}},{'id':_univerjs_pro_sheets_shape[_0x5bc3a9(0x400)]['id'],'params':{'unitId':_0x45bbac,'subUnitId':_0x3c261e,'shapeId':_0x499d49['drawingId'],'shapeType':_0x1718c7,'shapeData':_0xdd0dd9}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4a00d4,'subUnitId':_0x4ad0cf,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x5bc3a9(0x649)],'op':_0x4a10b8[_0x5bc3a9(0x3e0)],'objects':_0x4a10b8[_0x5bc3a9(0x59e)]}},{'id':_univerjs_pro_sheets_shape[_0x5bc3a9(0x400)]['id'],'params':{'unitId':_0x4a00d4,'subUnitId':_0x4ad0cf,'shapeId':_0x499d49['drawingId'],'shapeType':_0x1718c7,'shapeData':_0xdd0dd9}},{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x45bbac,'subUnitId':_0x3c261e,'type':_univerjs_sheets_drawing[_0x5bc3a9(0x2a5)][_0x5bc3a9(0x35f)],'op':_0xad6b2[_0x5bc3a9(0x3e0)],'objects':_0xad6b2['objects']}},{'id':_univerjs_pro_sheets_shape[_0x5bc3a9(0x68d)]['id'],'params':{'unitId':_0x45bbac,'subUnitId':_0x3c261e,'shapeId':_0x499d49[_0x5bc3a9(0x3bf)]}}]};}}[_0x5a3cc9(0x623)](_0x41f25d){const _0x18afa4=_0x5a3cc9,{toUnitId:_0x3e854d,toSubUnitId:_0x5ec4e0,drawing:_0x4798c4,newTransforms:_0x3f1e65,newDrawingId:_0x330015,idMap:_0x28ffc8}=_0x41f25d,_0x4fa682={..._0x4798c4,'unitId':_0x3e854d,'subUnitId':_0x5ec4e0,'drawingId':_0x330015,'transform':_0x3f1e65['transform'],'sheetTransform':_0x3f1e65['sheetTransform']},{redo:_0x35b913,undo:_0x650aab,objects:_0x5780ff}=this[_0x18afa4(0x6a1)][_0x18afa4(0x66c)]([_0x4fa682]),_0x308d80=this[_0x18afa4(0x5b1)][_0x18afa4(0x2ea)](_0x4798c4[_0x18afa4(0x4c0)],_0x4798c4[_0x18afa4(0x2c2)],_0x4798c4['drawingId']);if(!_0x308d80)return{'redos':[],'undos':[]};const _0x2a6ac2=_0x308d80[_0x18afa4(0x373)](),_0x1a0d8c=JSON[_0x18afa4(0x4a7)](JSON[_0x18afa4(0x4d9)](_0x308d80[_0x18afa4(0x166)]()));if(_0x1a0d8c[_0x18afa4(0x358)]){var _0x31b9f7,_0x4c19c5;const _0x57b04e=(_0x31b9f7=_0x1a0d8c[_0x18afa4(0x358)][_0x18afa4(0x26c)])===null||_0x31b9f7===void 0x0?void 0x0:_0x31b9f7['shapeId'],_0x5123ea=(_0x4c19c5=_0x1a0d8c[_0x18afa4(0x358)]['to'])===null||_0x4c19c5===void 0x0?void 0x0:_0x4c19c5['shapeId'],_0x29bfd0=_0x57b04e?_0x28ffc8[_0x18afa4(0x416)](_0x57b04e):!![],_0x305665=_0x5123ea?_0x28ffc8[_0x18afa4(0x416)](_0x5123ea):!![];if(_0x29bfd0&&_0x57b04e&&_0x1a0d8c[_0x18afa4(0x358)][_0x18afa4(0x26c)])_0x1a0d8c['relation']['from']={..._0x1a0d8c['relation'][_0x18afa4(0x26c)],'shapeId':_0x28ffc8[_0x18afa4(0x62d)](_0x57b04e)};else _0x1a0d8c[_0x18afa4(0x358)][_0x18afa4(0x26c)]=void 0x0;if(_0x305665&&_0x5123ea&&_0x1a0d8c[_0x18afa4(0x358)]['to'])_0x1a0d8c[_0x18afa4(0x358)]['to']={..._0x1a0d8c['relation']['to'],'shapeId':_0x28ffc8[_0x18afa4(0x62d)](_0x5123ea)};else _0x1a0d8c[_0x18afa4(0x358)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing[_0x18afa4(0x29d)]['id'],'params':{'unitId':_0x3e854d,'subUnitId':_0x5ec4e0,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x18afa4(0x649)],'op':_0x35b913,'objects':_0x5780ff}},{'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3e854d,'subUnitId':_0x5ec4e0,'shapeId':_0x330015,'shapeType':_0x2a6ac2,'shapeData':_0x1a0d8c}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3e854d,'subUnitId':_0x5ec4e0,'type':_univerjs_sheets_drawing[_0x18afa4(0x2a5)][_0x18afa4(0x35f)],'op':_0x650aab,'objects':_0x5780ff}},{'id':_univerjs_pro_sheets_shape[_0x18afa4(0x68d)]['id'],'params':{'unitId':_0x3e854d,'subUnitId':_0x5ec4e0,'shapeId':_0x330015}}]};}[_0x5a3cc9(0x5df)](_0x1c8254,_0x4e73d2,_0x2d9002,_0x4e8746){const _0x2b1fc6=_0x5a3cc9;var _0x201a08;const {range:_0x53e903,skeleton:_0x57f191}=_0x4e73d2,{range:_0x5dcc7a,skeleton:_0x5b0407}=_0x2d9002,{transform:_0x4c26a5,sheetTransform:_0x149883}=_0x1c8254,_0x454e17={..._0x4c26a5};if(_0x53e903){const _0x21de16=(0x0,_univerjs_sheets[_0x2b1fc6(0x16e)])(_0x57f191,_0x53e903),_0x5d9f25=(0x0,_univerjs_sheets[_0x2b1fc6(0x16e)])(_0x5b0407,_0x5dcc7a);if(_0x21de16&&_0x5d9f25){var _0x1176bf,_0xeba158;const _0x1eb92e=_0x5d9f25['startX']-_0x21de16[_0x2b1fc6(0x1f3)],_0x1b88a0=_0x5d9f25['startY']-_0x21de16[_0x2b1fc6(0x49b)];_0x454e17[_0x2b1fc6(0x19d)]=((_0x1176bf=_0x454e17[_0x2b1fc6(0x19d)])!==null&&_0x1176bf!==void 0x0?_0x1176bf:0x0)+_0x1eb92e,_0x454e17[_0x2b1fc6(0x3e5)]=((_0xeba158=_0x454e17[_0x2b1fc6(0x3e5)])!==null&&_0xeba158!==void 0x0?_0xeba158:0x0)+_0x1b88a0;}}else{const _0x25912f=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x5b0407,_0x5dcc7a);if(_0x4e8746&&_0x25912f){var _0x15478c,_0x138e81;const _0x58ea7e=((_0x15478c=_0x454e17[_0x2b1fc6(0x19d)])!==null&&_0x15478c!==void 0x0?_0x15478c:0x0)-_0x4e8746[_0x2b1fc6(0x19d)],_0x37eb1c=((_0x138e81=_0x454e17[_0x2b1fc6(0x3e5)])!==null&&_0x138e81!==void 0x0?_0x138e81:0x0)-_0x4e8746[_0x2b1fc6(0x3e5)];_0x454e17['left']=_0x25912f[_0x2b1fc6(0x1f3)]+_0x58ea7e,_0x454e17[_0x2b1fc6(0x3e5)]=_0x25912f[_0x2b1fc6(0x49b)]+_0x37eb1c;}else _0x454e17['left']=_0x25912f===null||_0x25912f===void 0x0?void 0x0:_0x25912f['startX'],_0x454e17[_0x2b1fc6(0x3e5)]=_0x25912f===null||_0x25912f===void 0x0?void 0x0:_0x25912f[_0x2b1fc6(0x49b)];}return{'transform':_0x454e17,'sheetTransform':(_0x201a08=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x454e17,_0x5b0407))!==null&&_0x201a08!==void 0x0?_0x201a08:_0x149883};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_sheets['SheetSkeletonService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_sheets_ui[_0x5a3cc9(0x199)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x4,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_sheets_drawing_ui[_0x5a3cc9(0x421)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x5a3cc9(0x522)]{constructor(_0x51511f,_0xba0c9b){const _0x49e203=_0x5a3cc9;super(_0x51511f,_0xba0c9b),_defineProperty(this,_0x49e203(0x2f5),null),_defineProperty(this,_0x49e203(0x193),null),_defineProperty(this,_0x49e203(0x486),null),_defineProperty(this,_0x49e203(0x283),null),_defineProperty(this,_0x49e203(0x5ec),![]);if(_0xba0c9b)this[_0x49e203(0x3e9)](_0xba0c9b);}[_0x5a3cc9(0x344)](){const _0x50f539=_0x5a3cc9;return{'unitId':this[_0x50f539(0x486)],'subUnitId':this[_0x50f539(0x283)],'drawingId':this[_0x50f539(0x2f5)]};}[_0x5a3cc9(0x3e9)](_0x438dab){const _0x3c5416=_0x5a3cc9;if(typeof _0x438dab[_0x3c5416(0x525)]!==_0x3c5416(0x18e))this[_0x3c5416(0x2f5)]=_0x438dab['shapeId'];if(typeof _0x438dab[_0x3c5416(0x4c0)]!==_0x3c5416(0x18e))this['_unitId']=_0x438dab[_0x3c5416(0x4c0)];if(typeof _0x438dab[_0x3c5416(0x2c2)]!==_0x3c5416(0x18e))this[_0x3c5416(0x283)]=_0x438dab[_0x3c5416(0x2c2)];if(typeof _0x438dab['isStartConnectorPoint']!=='undefined')this[_0x3c5416(0x5ec)]=_0x438dab['isStartConnectorPoint'];this['transformByState']({'width':_0x438dab[_0x3c5416(0x47c)],'height':_0x438dab[_0x3c5416(0x36a)]});}[_0x5a3cc9(0x49e)](_0x4d5a32){const _0x6da43d=_0x5a3cc9;_univerjs_engine_render['Circle'][_0x6da43d(0x1e4)](_0x4d5a32,{'radius':_univerjs_pro_engine_shape[_0x6da43d(0x1d0)][_0x6da43d(0x503)],'fill':_univerjs_pro_engine_shape[_0x6da43d(0x1d0)]['cxnPointFill'],'stroke':_univerjs_pro_engine_shape[_0x6da43d(0x1d0)][_0x6da43d(0x461)],'strokeWidth':_univerjs_pro_engine_shape[_0x6da43d(0x1d0)]['cxnPointStrokeWidth'],'evented':!![]});}};function _0x4507(_0x5626a0,_0x1f9dd4){_0x5626a0=_0x5626a0-0x134;const _0x50ce7e=_0x50ce();let _0x45072b=_0x50ce7e[_0x5626a0];return _0x45072b;}let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core['Disposable']{constructor(_0x109144,_0x4a7ca4,_0x50b0b1,_0x9b2f04,_0x1dc993,_0x5f5a83,_0x3e30eb,_0x14dfa0){const _0x90250e=_0x5a3cc9;super(),this['_context']=_0x109144,this[_0x90250e(0x187)]=_0x4a7ca4,this[_0x90250e(0x5ac)]=_0x50b0b1,this[_0x90250e(0x2f7)]=_0x9b2f04,this[_0x90250e(0x382)]=_0x1dc993,this[_0x90250e(0x526)]=_0x5f5a83,this[_0x90250e(0x1d1)]=_0x3e30eb,this[_0x90250e(0x241)]=_0x14dfa0,_defineProperty(this,'_activeShapeId',void 0x0),_defineProperty(this,_0x90250e(0x486),void 0x0),_defineProperty(this,_0x90250e(0x283),void 0x0),_defineProperty(this,_0x90250e(0x449),[]),_defineProperty(this,_0x90250e(0x3b2),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,_0x90250e(0x23e),void 0x0),_defineProperty(this,_0x90250e(0x40b),![]),_defineProperty(this,_0x90250e(0x19f),![]),_defineProperty(this,_0x90250e(0x678),![]),_defineProperty(this,_0x90250e(0x1cb),void 0x0),_defineProperty(this,_0x90250e(0x3bc),void 0x0),_defineProperty(this,_0x90250e(0x547),null),this['_initialize']();}['_initialize'](){const _0x1cb794=_0x5a3cc9;this[_0x1cb794(0x346)](),this[_0x1cb794(0x459)]();}[_0x5a3cc9(0x216)](){const _0x3403e7=_0x5a3cc9;if(!this[_0x3403e7(0x486)]||!this[_0x3403e7(0x283)]||!this[_0x3403e7(0x4ba)])return;const _0x1eae8c={'unitId':this['_unitId'],'subUnitId':this[_0x3403e7(0x283)],'drawingId':this[_0x3403e7(0x4ba)]},{transform:_0x4df86b}=this[_0x3403e7(0x2f7)]['getDrawingByParam'](_0x1eae8c);if(!_0x4df86b)return;return{'left':_0x4df86b[_0x3403e7(0x19d)]||0x0,'top':_0x4df86b[_0x3403e7(0x3e5)]||0x0,'width':_0x4df86b[_0x3403e7(0x47c)]||0x0,'height':_0x4df86b[_0x3403e7(0x36a)]||0x0,'flipX':_0x4df86b[_0x3403e7(0x1cd)]||![],'flipY':_0x4df86b[_0x3403e7(0x1f4)]||![],'angle':_0x4df86b['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x2d17c1=_0x5a3cc9;if(this[_0x2d17c1(0x486)]===void 0x0||this[_0x2d17c1(0x283)]===void 0x0||this[_0x2d17c1(0x4ba)]===void 0x0)return;const _0x3be387=this['_renderManagerService'][_0x2d17c1(0x1bb)](this['_unitId']);if(!_0x3be387)return;if(!_0x3be387[_0x2d17c1(0x463)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x2d17c1(0x21b)]())return;const {scene:_0x5e4b7d}=_0x3be387,_0xdc233a=this[_0x2d17c1(0x216)]();if(!_0xdc233a)return;const _0xb437b6=this['_sheetsShapeService'][_0x2d17c1(0x2ea)](this[_0x2d17c1(0x486)],this[_0x2d17c1(0x283)],this['_activeShapeId']);if(!_0xb437b6)return;if(!(0x0,_univerjs_pro_engine_shape[_0x2d17c1(0x3b6)])(_0xb437b6[_0x2d17c1(0x373)]()))return;const _0x3b5847=_0xb437b6[_0x2d17c1(0x429)]();if(_0x3b5847['length']<0x2)return;const _0x5911a2=new _univerjs_pro_engine_shape[(_0x2d17c1(0x408))](_0xdc233a),_0x511c40=_0x3b5847[0x0],_0x6f11f1=_0x3b5847[_0x3b5847[_0x2d17c1(0x38e)]-0x1],_0x1ea111=_0x5911a2['localToWorld'](_0x511c40),_0x289663=_0x5911a2[_0x2d17c1(0x217)](_0x6f11f1);this[_0x2d17c1(0x1d4)](_0x5e4b7d,{..._0x1ea111},!![]),this[_0x2d17c1(0x1d4)](_0x5e4b7d,{..._0x289663},![]);}['_addShapeConnectorHandlerObject'](_0x4f7850,_0x347bda,_0x241ac3){const _0x3bc719=_0x5a3cc9;if(this[_0x3bc719(0x4ba)]===void 0x0||this[_0x3bc719(0x486)]===void 0x0||this['_subUnitId']===void 0x0)return;const _0xf98045=_0x3bc719(0x46a)+this[_0x3bc719(0x486)]+'-'+this[_0x3bc719(0x283)]+'-'+this[_0x3bc719(0x4ba)]+'-'+(_0x241ac3?_0x3bc719(0x4b2):_0x3bc719(0x185)),_0x469c6d=_0x4f7850[_0x3bc719(0x479)](_0xf98045);if(_0x469c6d){_0x469c6d[_0x3bc719(0x53c)]({'left':_0x347bda['x']-_univerjs_pro_engine_shape[_0x3bc719(0x1d0)][_0x3bc719(0x503)],'top':_0x347bda['y']-_univerjs_pro_engine_shape[_0x3bc719(0x1d0)][_0x3bc719(0x503)]});return;}const _0x586098=new SheetShapeConnectorHandlerObject(_0xf98045,{'left':_0x347bda['x']-_univerjs_pro_engine_shape[_0x3bc719(0x1d0)][_0x3bc719(0x503)],'top':_0x347bda['y']-_univerjs_pro_engine_shape[_0x3bc719(0x1d0)][_0x3bc719(0x503)],'shapeId':this['_activeShapeId'],'unitId':this[_0x3bc719(0x486)],'subUnitId':this[_0x3bc719(0x283)],'isStartConnectorPoint':_0x241ac3,'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3bc719(0x503)]*0x2,'height':_univerjs_pro_engine_shape[_0x3bc719(0x1d0)][_0x3bc719(0x503)]*0x2,'zIndex':_univerjs_engine_render[_0x3bc719(0x49a)]+0x1,'evented':!![]});this['_connectorObjects'][_0x3bc719(0x1d9)](_0x586098),this[_0x3bc719(0x419)](_0x586098,_0x4f7850,_0x241ac3),_0x4f7850[_0x3bc719(0x1bf)](_0x586098,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x5a3cc9(0x696)](_0x46594b,_0x3215a9){const _0x298e79=_0x5a3cc9;var _0x4e05ec;const _0x350c22={'x':0x0,'y':0x0};if(!_0x46594b||!_0x3215a9)return _0x350c22;const _0x5ce6ba=this[_0x298e79(0x5ac)][_0x298e79(0x1bb)](_0x46594b);if(!_0x5ce6ba)return _0x350c22;if(!_0x5ce6ba['with'](_univerjs_sheets_ui[_0x298e79(0x3f5)])['getSkeleton'](_0x3215a9))return _0x350c22;const _0x1851a7=_0x5ce6ba['with'](_univerjs_sheets_ui[_0x298e79(0x582)]),_0x2c89d9=_0x1851a7===null||_0x1851a7===void 0x0?void 0x0:_0x1851a7[_0x298e79(0x332)]();if(!_0x2c89d9)return _0x350c22;const _0x784397=(_0x4e05ec=this[_0x298e79(0x382)][_0x298e79(0x1ff)](_0x46594b))===null||_0x4e05ec===void 0x0?void 0x0:_0x4e05ec[_0x298e79(0x4df)](_0x3215a9);if(!_0x784397)return _0x350c22;const _0x6099f1=(0x0,_univerjs_sheets_ui['getViewportByCell'])(_0x2c89d9[_0x298e79(0x30b)],_0x2c89d9[_0x298e79(0x4d5)],_0x5ce6ba[_0x298e79(0x1ea)],_0x784397);if(!_0x6099f1)return _0x350c22;return{'x':_0x6099f1[_0x298e79(0x366)],'y':_0x6099f1['viewportScrollY']};}[_0x5a3cc9(0x2c4)](_0x406b45,_0x2706b1){const _0x3c48fe=_0x5a3cc9;var _0x5af13d,_0x45b392;const _0x346607=(_0x5af13d=this['_univerInstanceService'][_0x3c48fe(0x1ff)](_0x406b45))===null||_0x5af13d===void 0x0?void 0x0:_0x5af13d[_0x3c48fe(0x4df)](_0x2706b1);return(_0x45b392=_0x346607===null||_0x346607===void 0x0?void 0x0:_0x346607['getZoomRatio']())!==null&&_0x45b392!==void 0x0?_0x45b392:0x1;}['_handleConnectorPointerUp'](_0x42f017,_0x22b9eb,_0x595fc3,_0x38749f,_0x4b2519){const _0x2fbe6f=_0x5a3cc9;this[_0x2fbe6f(0x1cb)][_0x2fbe6f(0x34e)](),this['_cxtHandlerPointerUp'][_0x2fbe6f(0x34e)](),this['_sheetShapeAdjustController'][_0x2fbe6f(0x140)]();const _0x202a79=this[_0x2fbe6f(0x547)];this['_sheetBasicShapeConnectionPointController'][_0x2fbe6f(0x304)]();const _0x162e34=this[_0x2fbe6f(0x696)](this[_0x2fbe6f(0x486)],this[_0x2fbe6f(0x283)]),_0x41cbaa=this[_0x2fbe6f(0x2c4)](this['_unitId'],this['_subUnitId']),_0x2ca78c={'x':_0x595fc3[_0x2fbe6f(0x2e6)]/_0x41cbaa+_0x162e34['x'],'y':_0x595fc3[_0x2fbe6f(0x4dc)]/_0x41cbaa+_0x162e34['y']},_0x553035=_0x202a79?_0x202a79['worldPoint']:_0x2ca78c,_0x11942b=_0x38749f?this[_0x2fbe6f(0x23e)][_0x2fbe6f(0x3c0)]():this['_activeShapeModel'][_0x2fbe6f(0x46e)](),_0x44df10=this[_0x2fbe6f(0x23e)]['getShapeType']();if(!_0x11942b)this[_0x2fbe6f(0x2b7)](_0x22b9eb,_0x553035,_0x38749f,_0x202a79,_0x4b2519,_0x44df10);else this[_0x2fbe6f(0x288)](_0x11942b,_0x553035,_0x38749f,_0x202a79,_0x4b2519);this[_0x2fbe6f(0x40b)]=![],this[_0x2fbe6f(0x678)]=![],this[_0x2fbe6f(0x547)]=null,_0x42f017[_0x2fbe6f(0x656)]();}[_0x5a3cc9(0x2b7)](_0x22eaa5,_0x450db2,_0x1962b2,_0x484704,_0x52e06a,_0x6941f7){const _0x1cbf03=_0x5a3cc9,_0x59bdf1=_0x6941f7===_univerjs_pro_engine_shape[_0x1cbf03(0x3e8)][_0x1cbf03(0x66b)]||_0x6941f7===_univerjs_pro_engine_shape[_0x1cbf03(0x3e8)]['StraightConnector1'],_0x2dcb23=_0x1962b2?_0x450db2:_0x22eaa5,_0x43f7fc=_0x1962b2?_0x22eaa5:_0x450db2,_0x5728de=this[_0x1cbf03(0x23e)][_0x1cbf03(0x429)](),_0x303267=(0x0,_univerjs_pro_engine_shape[_0x1cbf03(0x2f9)])(this[_0x1cbf03(0x23e)]['getShapeType']()),_0x32ac02=_univerjs_pro_engine_shape[_0x1cbf03(0x408)][_0x1cbf03(0x213)](_0x5728de,_0x303267),_0x138435=_0x59bdf1?_univerjs_pro_engine_shape[_0x1cbf03(0x408)][_0x1cbf03(0x2b3)](_0x2dcb23,_0x43f7fc):_univerjs_pro_engine_shape['ConnectorCoordinateTransform'][_0x1cbf03(0x2d5)](_0x22eaa5,_0x450db2,_0x1962b2,_0x32ac02);if(_0x484704)this['_executeConnectionCommand'](_0x138435,_0x484704,_0x1962b2,_0x52e06a);else this[_0x1cbf03(0x420)](_0x138435,_0x52e06a);}[_0x5a3cc9(0x288)](_0x4a26e8,_0x11ff1c,_0x2c9c9e,_0x5b6f45,_0x5b6823){const _0x17355d=_0x5a3cc9,_0x21589e=this[_0x17355d(0x3f2)](_0x4a26e8);if(!_0x21589e)return;const _0x39abb0=_0x5b6f45?_0x5b6f45[_0x17355d(0x54c)]:this[_0x17355d(0x4e3)](_0x21589e[_0x17355d(0x268)],_0x11ff1c);let _0x2fc92b;if(_0x5b6f45){const _0x3b3d28=this[_0x17355d(0x2f7)][_0x17355d(0x4ca)]({'unitId':_0x5b6f45[_0x17355d(0x4c0)],'subUnitId':_0x5b6f45[_0x17355d(0x2c2)],'drawingId':_0x5b6f45[_0x17355d(0x525)]});if(_0x3b3d28===null||_0x3b3d28===void 0x0?void 0x0:_0x3b3d28[_0x17355d(0x4db)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x235dba}=_0x3b3d28[_0x17355d(0x4db)];_0x2fc92b=(0x0,_univerjs_pro_engine_shape[_0x17355d(0x30f)])({'left':left,'top':top,'width':width,'height':height},_0x235dba||0x0);}else _0x2fc92b={'left':_0x11ff1c['x'],'top':_0x11ff1c['y'],'width':0x0,'height':0x0};}else _0x2fc92b={'left':_0x11ff1c['x'],'top':_0x11ff1c['y'],'width':0x0,'height':0x0};const _0x35b564={'point':_0x11ff1c,'angle':_0x39abb0,'bounds':_0x2fc92b},_0x42fadb=_0x2c9c9e?_0x35b564:_0x21589e,_0x54fa22=_0x2c9c9e?_0x21589e:_0x35b564,_0x4f44c7=this[_0x17355d(0x23e)][_0x17355d(0x373)](),_0x1e7796=(0x0,_univerjs_pro_engine_shape[_0x17355d(0x409)])(_0x42fadb,_0x54fa22,_0x4f44c7);this['_activeShapeModel'][_0x17355d(0x280)]();const _0x1de49e=(0x0,_univerjs_pro_engine_shape[_0x17355d(0x44a)])(_0x1e7796,_0x4f44c7);if(_0x5b6f45)this[_0x17355d(0x67c)](_0x1de49e,_0x5b6f45,_0x4a26e8,_0x2c9c9e,_0x5b6823);else this[_0x17355d(0x303)](_0x1de49e,_0x4a26e8,_0x2c9c9e,_0x5b6823);}[_0x5a3cc9(0x2d4)](_0x431e0c,_0x599875,_0x3a16d7,_0x2f7527){const _0x427486=_0x5a3cc9,_0x2ba4fd=this[_0x427486(0x23e)]['getShapeData']()[_0x427486(0x358)],_0x14e2d1={..._0x2ba4fd},_0xfeaefa={'shapeId':_0x599875['shapeId'],'cxnIndex':_0x599875['cxnIndex']};if(_0x3a16d7)_0x14e2d1[_0x427486(0x26c)]=_0xfeaefa;else _0x14e2d1['to']=_0xfeaefa;const _0x5af691=this['_activeShapeModel']['getShapeType'](),_0x5cf86a=(0x0,_univerjs_pro_engine_shape[_0x427486(0x44a)])(_0x431e0c[_0x427486(0x4f8)],_0x5af691),_0x66148c={'unitId':this[_0x427486(0x486)],'subUnitId':this[_0x427486(0x283)],'connectorShapeId':this[_0x427486(0x4ba)],'width':_0x431e0c[_0x427486(0x3fb)][_0x427486(0x47c)],'height':_0x431e0c[_0x427486(0x3fb)][_0x427486(0x36a)],'left':_0x431e0c[_0x427486(0x3fb)][_0x427486(0x19d)],'top':_0x431e0c[_0x427486(0x3fb)][_0x427486(0x3e5)],'flipX':_0x431e0c[_0x427486(0x3fb)][_0x427486(0x1cd)]||![],'flipY':_0x431e0c[_0x427486(0x3fb)][_0x427486(0x1f4)]||![],'newAdjustValues':_0x5cf86a[_0x427486(0x3bb)],'oldAdjustValues':_0x2f7527,'oldRelation':_0x2ba4fd,'newRelation':_0x14e2d1,'newLineType':_0x5cf86a[_0x427486(0x4cc)],'oldLineType':_0x5af691};this[_0x427486(0x187)][_0x427486(0x343)](_univerjs_pro_sheets_shape[_0x427486(0x66e)]['id'],_0x66148c);}['_executeResizeCommand'](_0x224497,_0x2c4572){const _0x541fbb=_0x5a3cc9,_0x4ebea8=this[_0x541fbb(0x23e)][_0x541fbb(0x373)](),_0x4c27ec=(0x0,_univerjs_pro_engine_shape[_0x541fbb(0x44a)])(_0x224497['worldPoints'],_0x4ebea8),_0x5f1243={'unitId':this['_unitId'],'subUnitId':this[_0x541fbb(0x283)],'shapeId':this[_0x541fbb(0x4ba)],'width':_0x224497[_0x541fbb(0x3fb)][_0x541fbb(0x47c)],'height':_0x224497[_0x541fbb(0x3fb)][_0x541fbb(0x36a)],'left':_0x224497[_0x541fbb(0x3fb)][_0x541fbb(0x19d)],'top':_0x224497[_0x541fbb(0x3fb)][_0x541fbb(0x3e5)],'flipX':_0x224497[_0x541fbb(0x3fb)]['flipX']||![],'flipY':_0x224497[_0x541fbb(0x3fb)][_0x541fbb(0x1f4)]||![],'angle':_0x224497[_0x541fbb(0x3fb)]['angle']||0x0,'newAdjustValues':_0x4c27ec[_0x541fbb(0x3bb)],'oldAdjustValues':_0x2c4572,'newLineType':_0x4c27ec[_0x541fbb(0x4cc)],'oldLineType':_0x4ebea8};this[_0x541fbb(0x187)]['executeCommand'](_univerjs_pro_sheets_shape[_0x541fbb(0x48e)]['id'],_0x5f1243);}[_0x5a3cc9(0x67c)](_0x46cc1d,_0xbc874d,_0x23c6df,_0x580454,_0x1a02a3){const _0x101a69=_0x5a3cc9,_0x3e97d8=this[_0x101a69(0x23e)][_0x101a69(0x166)]()[_0x101a69(0x358)],_0x143d8e={..._0x3e97d8},_0x2a2cfd={'shapeId':_0xbc874d['shapeId'],'cxnIndex':_0xbc874d[_0x101a69(0x65b)]};_0x580454?(_0x143d8e[_0x101a69(0x26c)]=_0x2a2cfd,_0x143d8e['to']=_0x23c6df):(_0x143d8e['from']=_0x23c6df,_0x143d8e['to']=_0x2a2cfd);const _0x2aac83={'unitId':this[_0x101a69(0x486)],'subUnitId':this[_0x101a69(0x283)],'connectorShapeId':this[_0x101a69(0x4ba)],'width':_0x46cc1d['worldRect'][_0x101a69(0x47c)],'height':_0x46cc1d[_0x101a69(0x3fb)][_0x101a69(0x36a)],'left':_0x46cc1d['worldRect']['left'],'top':_0x46cc1d[_0x101a69(0x3fb)][_0x101a69(0x3e5)],'flipX':_0x46cc1d[_0x101a69(0x3fb)]['flipX']||![],'flipY':_0x46cc1d[_0x101a69(0x3fb)]['flipY']||![],'oldAdjustValues':_0x1a02a3,'newAdjustValues':_0x46cc1d[_0x101a69(0x3bb)],'newLineType':_0x46cc1d['lineType'],'rotation':_0x46cc1d['rotation'],'oldRelation':_0x3e97d8,'newRelation':_0x143d8e};this[_0x101a69(0x187)][_0x101a69(0x343)](_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id'],_0x2aac83);}[_0x5a3cc9(0x303)](_0x114ae3,_0x2734ae,_0x4b3373,_0x4dc3f){const _0xf13e9e=_0x5a3cc9,_0x378ffb=this[_0xf13e9e(0x23e)][_0xf13e9e(0x166)]()[_0xf13e9e(0x358)],_0x41c276={};_0x4b3373?(_0x41c276['to']=_0x2734ae,_0x41c276[_0xf13e9e(0x26c)]=void 0x0):(_0x41c276['from']=_0x2734ae,_0x41c276['to']=void 0x0);const _0x3ec477={'unitId':this[_0xf13e9e(0x486)],'subUnitId':this[_0xf13e9e(0x283)],'connectorShapeId':this[_0xf13e9e(0x4ba)],'width':_0x114ae3[_0xf13e9e(0x3fb)][_0xf13e9e(0x47c)],'height':_0x114ae3[_0xf13e9e(0x3fb)][_0xf13e9e(0x36a)],'left':_0x114ae3['worldRect']['left'],'top':_0x114ae3[_0xf13e9e(0x3fb)]['top'],'flipX':_0x114ae3['worldRect']['flipX']||![],'flipY':_0x114ae3['worldRect']['flipY']||![],'oldAdjustValues':_0x4dc3f,'newAdjustValues':_0x114ae3['adjustValues'],'newLineType':_0x114ae3[_0xf13e9e(0x4cc)],'rotation':_0x114ae3['rotation'],'oldRelation':_0x378ffb,'newRelation':_0x41c276};this[_0xf13e9e(0x187)]['executeCommand'](_univerjs_pro_sheets_shape[_0xf13e9e(0x66e)]['id'],_0x3ec477);}['_attachConnectorObjectEvent'](_0x3a9aef,_0x30ab6b,_0x2225e4){const _0x139261=_0x5a3cc9;this[_0x139261(0x5b8)]((0x0,_univerjs_core['toDisposable'])(_0x3a9aef[_0x139261(0x60d)][_0x139261(0x33e)]((_0xc3fe5a,_0x28b06e)=>{const _0x1a24d9=_0x139261,_0x20379d=_0x3a9aef[_0x1a24d9(0x344)]();this['_activeShapeModel']=this[_0x1a24d9(0x526)][_0x1a24d9(0x2ea)](_0x20379d[_0x1a24d9(0x4c0)],_0x20379d[_0x1a24d9(0x2c2)],_0x20379d[_0x1a24d9(0x3bf)]);if(!this[_0x1a24d9(0x23e)])return;const _0x47da4f={};this[_0x1a24d9(0x23e)][_0x1a24d9(0x175)]()[_0x1a24d9(0x67e)](_0x5334cc=>{const _0x357efd=_0x1a24d9,_0xd8a129=this['_activeShapeModel'][_0x357efd(0x387)](_0x5334cc);if(_0xd8a129!==void 0x0)_0x47da4f[_0x5334cc]=_0xd8a129;});const _0x36af5e=this[_0x1a24d9(0x216)]();if(!_0x36af5e)return;this['_baseDrawingRect']={..._0x36af5e};const _0x236ae6=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x1a24d9(0x3b2)]),_0x37ac3b=(0x0,_univerjs_drawing[_0x1a24d9(0x550)])({'unitId':this[_0x1a24d9(0x486)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1a24d9(0x4ba)]}),_0x1f48d4=_0x30ab6b[_0x1a24d9(0x479)](_0x37ac3b);this[_0x1a24d9(0x40b)]=!![],_0x30ab6b[_0x1a24d9(0x2ba)](),this[_0x1a24d9(0x241)]['startConnectionDetection'](_0x30ab6b,this[_0x1a24d9(0x486)],this[_0x1a24d9(0x283)],this[_0x1a24d9(0x4ba)]),this['_currentConnectionTarget']=null;const _0x2449f8=this[_0x1a24d9(0x23e)][_0x1a24d9(0x429)](),_0x521819=_0x2449f8[0x0],_0x47685c=_0x2449f8[_0x2449f8[_0x1a24d9(0x38e)]-0x1],_0x14c4ed=_0x2225e4?_0x236ae6[_0x1a24d9(0x217)](_0x47685c):_0x236ae6[_0x1a24d9(0x217)](_0x521819);this[_0x1a24d9(0x1cb)]=_0x30ab6b[_0x1a24d9(0x63c)][_0x1a24d9(0x33e)]((_0x32a6b9,_0x417711)=>{const _0x35201e=_0x1a24d9;if(!this[_0x35201e(0x40b)]||!this['_activeShapeModel'])return;!this[_0x35201e(0x678)]&&(this['_sheetShapeAdjustController'][_0x35201e(0x237)](),this[_0x35201e(0x23e)][_0x35201e(0x1b2)](),this[_0x35201e(0x678)]=!![]);const _0x4f4b55=this['_getScrollInfo'](this[_0x35201e(0x486)],this['_subUnitId']),_0x260a3c=this[_0x35201e(0x2c4)](this['_unitId'],this[_0x35201e(0x283)]),_0x2e99c4={'x':_0x32a6b9['offsetX']/_0x260a3c+_0x4f4b55['x'],'y':_0x32a6b9[_0x35201e(0x4dc)]/_0x260a3c+_0x4f4b55['y']},_0x13c223=this[_0x35201e(0x241)][_0x35201e(0x407)](_0x2e99c4);if(_0x13c223){const {shapeId:_0x3a91fd,unitId:_0x3fee08,subUnitId:_0x5c12a0}=_0x13c223;if(_0x3a91fd&&_0x3fee08&&_0x5c12a0){const _0x6e8950=(0x0,_univerjs_drawing[_0x35201e(0x550)])({'unitId':_0x3fee08,'subUnitId':_0x5c12a0,'drawingId':_0x3a91fd});_0x13c223[_0x35201e(0x54c)]=(_0x30ab6b[_0x35201e(0x479)](_0x6e8950)[_0x35201e(0x54c)]||0x0)+_0x13c223[_0x35201e(0x54c)];}}this[_0x35201e(0x547)]=_0x13c223;const _0x47d785=_0x2225e4?this['_activeShapeModel']['getEndConnectInfo']():this[_0x35201e(0x23e)][_0x35201e(0x46e)]();if(_0x47d785){this[_0x35201e(0x452)](_0x47d785,_0x2e99c4,_0x2225e4,_0x1f48d4,_0x3a9aef);return;}this['_handleFreeEndpointMove'](_0x2e99c4,_0x14c4ed,_0x2225e4,_0x1f48d4,_0x3a9aef);}),this[_0x1a24d9(0x3bc)]=_0x30ab6b[_0x1a24d9(0x633)]['subscribeEvent']((_0x5b3c8d,_0x349a67)=>{const _0x2e2848=_0x1a24d9;this[_0x2e2848(0x573)](_0x30ab6b,_0x14c4ed,_0x5b3c8d,_0x2225e4,_0x47da4f);}),_0x28b06e[_0x1a24d9(0x51a)]();})));}[_0x5a3cc9(0x13e)](_0xde71cf,_0x355fc5,_0x5c5ac8){const _0x167aa9=_0x5a3cc9,_0x45472f=this[_0x167aa9(0x526)][_0x167aa9(0x64c)](_0xde71cf,_0x355fc5,_0x5c5ac8);if(!_0x45472f||_0x45472f['length']===0x0)return;const _0x1ae76c=this[_0x167aa9(0x5ac)]['getRenderById'](_0xde71cf);if(!_0x1ae76c)return;const {scene:_0x2674eb}=_0x1ae76c;for(const _0x2bd95a of _0x45472f){const _0x2fe7f1=_0x2bd95a['lineShapeId'],_0x3f234c=this[_0x167aa9(0x526)][_0x167aa9(0x2ea)](_0xde71cf,_0x355fc5,_0x2fe7f1);if(!_0x3f234c)continue;const _0x40ea7=_0x3f234c[_0x167aa9(0x46e)](),_0x37f5e6=_0x3f234c[_0x167aa9(0x3c0)](),_0x57940d=(_0x40ea7===null||_0x40ea7===void 0x0?void 0x0:_0x40ea7[_0x167aa9(0x525)])===_0x5c5ac8,_0xfe842d=(0x0,_univerjs_drawing[_0x167aa9(0x550)])({'unitId':_0xde71cf,'subUnitId':_0x355fc5,'drawingId':_0x2fe7f1}),_0x293aa2=_0x2674eb[_0x167aa9(0x479)](_0xfe842d);if(!_0x293aa2)continue;const _0x1740bc=this[_0x167aa9(0x2f7)][_0x167aa9(0x4ca)]({'unitId':_0xde71cf,'subUnitId':_0x355fc5,'drawingId':_0x2fe7f1});if(!(_0x1740bc===null||_0x1740bc===void 0x0?void 0x0:_0x1740bc[_0x167aa9(0x4db)]))continue;if(_0x40ea7&&_0x37f5e6)this['_rerouteConnectorLine'](_0xde71cf,_0x355fc5,_0x2fe7f1,_0x3f234c,_0x40ea7,_0x37f5e6,_0x293aa2);else this[_0x167aa9(0x564)](_0xde71cf,_0x355fc5,_0x2fe7f1,_0x3f234c,_0x57940d?_0x40ea7:_0x37f5e6,_0x57940d,_0x1740bc,_0x293aa2);}}['_rerouteConnectorLine'](_0xe34dc7,_0x38136f,_0x594458,_0x597715,_0x2876ed,_0x3585f7,_0x498c32){const _0x554099=_0x5a3cc9,_0x474c3b=this[_0x554099(0x486)],_0x24dad9=this['_subUnitId'];this[_0x554099(0x486)]=_0xe34dc7,this[_0x554099(0x283)]=_0x38136f;const _0x4150a8=this[_0x554099(0x3f2)](_0x2876ed),_0x2c39d1=this['_getConnectPointInfo'](_0x3585f7);this[_0x554099(0x486)]=_0x474c3b,this['_subUnitId']=_0x24dad9;if(!_0x4150a8||!_0x2c39d1)return;const _0xff633e=_0x597715[_0x554099(0x373)](),_0x5f22ad=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x4150a8,_0x2c39d1,_0xff633e);if(_0x5f22ad)_0x597715[_0x554099(0x278)](_0x5f22ad);const _0x53e5d1=(0x0,_univerjs_pro_engine_shape[_0x554099(0x44a)])(_0x5f22ad,_0xff633e);if(_0x53e5d1[_0x554099(0x4cc)]!==_0xff633e)_0x597715[_0x554099(0x1d3)](_0x53e5d1[_0x554099(0x4cc)]);_0x597715[_0x554099(0x1b2)]();for(const [_0x551698,_0x369502]of Object[_0x554099(0x1dc)](_0x53e5d1[_0x554099(0x3bb)]))_0x597715[_0x554099(0x697)](_0x551698,_0x369502);_0x597715[_0x554099(0x4d3)]({'width':_0x53e5d1[_0x554099(0x3fb)][_0x554099(0x47c)],'height':_0x53e5d1[_0x554099(0x3fb)][_0x554099(0x36a)]}),_0x498c32['transformByState']({'flipX':_0x53e5d1[_0x554099(0x3fb)][_0x554099(0x1cd)],'flipY':_0x53e5d1[_0x554099(0x3fb)][_0x554099(0x1f4)],'left':_0x53e5d1[_0x554099(0x3fb)]['left'],'top':_0x53e5d1[_0x554099(0x3fb)][_0x554099(0x3e5)],'width':_0x53e5d1[_0x554099(0x3fb)]['width'],'height':_0x53e5d1['worldRect']['height'],'angle':_0x53e5d1['rotation']}),_0x597715[_0x554099(0x280)]();}[_0x5a3cc9(0x564)](_0x21ed4a,_0x39b006,_0x54c2ff,_0x4c6874,_0x3f9d69,_0x57d1ec,_0x4c9a81,_0x204e25){const _0x3b9099=_0x5a3cc9,_0x52a648=this[_0x3b9099(0x486)],_0x52e826=this[_0x3b9099(0x283)];this[_0x3b9099(0x486)]=_0x21ed4a,this[_0x3b9099(0x283)]=_0x39b006;const _0x283181=this['_getConnectPointInfo'](_0x3f9d69);this[_0x3b9099(0x486)]=_0x52a648,this['_subUnitId']=_0x52e826;if(!_0x283181)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x4c9a81[_0x3b9099(0x4db)],_0x103a43=_0x4c6874[_0x3b9099(0x429)]();if(_0x103a43[_0x3b9099(0x38e)]<0x2)return;const _0x407bc0=new _univerjs_pro_engine_shape[(_0x3b9099(0x408))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x5d8578=_0x57d1ec?_0x103a43[_0x103a43['length']-0x1]:_0x103a43[0x0],_0x261450=_0x407bc0[_0x3b9099(0x217)](_0x5d8578),_0x2b696d=_univerjs_pro_engine_shape['ConnectorCoordinateTransform']['computeConnectorResizeLayout'](_0x261450,_0x283181[_0x3b9099(0x268)],!_0x57d1ec);_0x204e25['transformByState']({'flipX':_0x2b696d[_0x3b9099(0x3fb)]['flipX'],'flipY':_0x2b696d[_0x3b9099(0x3fb)]['flipY'],'left':_0x2b696d[_0x3b9099(0x3fb)][_0x3b9099(0x19d)],'top':_0x2b696d[_0x3b9099(0x3fb)][_0x3b9099(0x3e5)],'width':_0x2b696d[_0x3b9099(0x3fb)]['width'],'height':_0x2b696d[_0x3b9099(0x3fb)][_0x3b9099(0x36a)],'angle':_0x2b696d[_0x3b9099(0x3fb)][_0x3b9099(0x54c)]}),_0x204e25['makeDirty'](!![]);}[_0x5a3cc9(0x2a8)](){const _0x296b4d=_0x5a3cc9;if(this[_0x296b4d(0x449)][_0x296b4d(0x38e)]===0x0)return;this[_0x296b4d(0x449)][_0x296b4d(0x67e)](_0x390bca=>{const _0xbc41cb=_0x296b4d;_0x390bca[_0xbc41cb(0x46b)]();}),this[_0x296b4d(0x449)]=[];}['_registerDrawingMoveHandler'](){const _0x5945a7=_0x5a3cc9,_0x76000e=this[_0x5945a7(0x382)][_0x5945a7(0x595)](_univerjs_core[_0x5945a7(0x374)]['UNIVER_SHEET']);this['disposeWithMe'](_0x76000e['pipe']((0x0,rxjs[_0x5945a7(0x309)])(_0x51e0c1=>{const _0x2e61ee=_0x5945a7;if(!_0x51e0c1)return rxjs['EMPTY'];return _0x51e0c1['activeSheet$'][_0x2e61ee(0x2d9)]((0x0,rxjs[_0x2e61ee(0x309)])(_0x63383b=>{const _0x5efa47=_0x2e61ee;if(!_0x63383b)return rxjs[_0x5efa47(0x3d5)];const _0x2a3469=_0x51e0c1[_0x5efa47(0x5dc)](),_0x462ab8=this['_renderManagerService'][_0x5efa47(0x1bb)](_0x2a3469),_0x15411c=_0x462ab8===null||_0x462ab8===void 0x0?void 0x0:_0x462ab8[_0x5efa47(0x1ea)];if(!_0x15411c)return rxjs[_0x5efa47(0x3d5)];return(0x0,rxjs['of'])(_0x15411c);}));}))[_0x5945a7(0x579)](_0x33516b=>{const _0x408bf9=_0x5945a7,_0x16c458=_0x33516b[_0x408bf9(0x3ab)]();this[_0x408bf9(0x5b8)](_0x33516b[_0x408bf9(0x63c)][_0x408bf9(0x33e)](_0x3152ad=>{const _0x54e8e8=_0x408bf9;if(this[_0x54e8e8(0x19f)]&&this[_0x54e8e8(0x4ba)])this[_0x54e8e8(0x2a8)]();})),this[_0x408bf9(0x5b8)](_0x16c458[_0x408bf9(0x381)][_0x408bf9(0x579)](_0x2f061e=>{const _0xafe62b=_0x408bf9,{objects:_0x3463d9}=_0x2f061e;this[_0xafe62b(0x2a8)]();if(_0x3463d9!==null&&_0x3463d9[_0xafe62b(0x4d4)]===0x1){if(_0x3463d9[_0xafe62b(0x17c)]()[_0xafe62b(0x627)]()[_0xafe62b(0x38c)]instanceof DrawingShape)this[_0xafe62b(0x19f)]=!![];}})),this['disposeWithMe'](_0x16c458[_0x408bf9(0x68c)]['subscribe'](_0x456723=>{const _0x4938d0=_0x408bf9;if(this[_0x4938d0(0x19f)])this[_0x4938d0(0x2a8)]();})),this[_0x408bf9(0x5b8)](_0x33516b[_0x408bf9(0x633)][_0x408bf9(0x33e)](()=>{const _0x546e96=_0x408bf9;this['_isDrawingShapePointDown']&&(this[_0x546e96(0x19f)]=![],this[_0x546e96(0x39d)]());})),this['disposeWithMe'](_0x16c458[_0x408bf9(0x638)]['subscribe'](()=>{const _0x36e383=_0x408bf9;this['_unitId']&&this['_subUnitId']&&this['_activeShapeId']&&(this[_0x36e383(0x2f7)][_0x36e383(0x4ca)]({'unitId':this[_0x36e383(0x486)],'subUnitId':this[_0x36e383(0x283)],'drawingId':this[_0x36e383(0x4ba)]})&&(this[_0x36e383(0x2a8)](),this[_0x36e383(0x39d)]()));}));}));}[_0x5a3cc9(0x346)](){const _0x17b46e=_0x5a3cc9;this[_0x17b46e(0x5b8)](this['_drawingManagerService']['focus$'][_0x17b46e(0x579)](_0x1ba098=>{const _0x391b4a=_0x17b46e;if(_0x1ba098['length']===0x1){const _0x4304f9=_0x1ba098[0x0];if(_0x4304f9['drawingType']===_univerjs_core[_0x391b4a(0x4d6)][_0x391b4a(0x224)]){const _0x27e135=this[_0x391b4a(0x526)][_0x391b4a(0x2ea)](_0x4304f9['unitId'],_0x4304f9[_0x391b4a(0x2c2)],_0x4304f9[_0x391b4a(0x3bf)]);if(_0x27e135&&(0x0,_univerjs_pro_engine_shape[_0x391b4a(0x3b6)])(_0x27e135[_0x391b4a(0x373)]())){this[_0x391b4a(0x4ba)]=_0x4304f9[_0x391b4a(0x3bf)],this['_unitId']=_0x4304f9[_0x391b4a(0x4c0)],this[_0x391b4a(0x283)]=_0x4304f9[_0x391b4a(0x2c2)],this[_0x391b4a(0x2a8)](),this[_0x391b4a(0x39d)]();return;}}}this[_0x391b4a(0x4ba)]=void 0x0,this[_0x391b4a(0x486)]=void 0x0,this[_0x391b4a(0x283)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x17b46e(0x5b8)](this[_0x17b46e(0x2f7)]['update$'][_0x17b46e(0x579)](_0x5a2978=>{const _0x2f32d7=_0x17b46e;if(_0x5a2978['length']===0x1){var _0x4015aa;const _0x14f7e0=_0x5a2978[0x0],_0x4036a6=(_0x4015aa=this[_0x2f32d7(0x2f7)][_0x2f32d7(0x4ca)](_0x14f7e0))===null||_0x4015aa===void 0x0?void 0x0:_0x4015aa[_0x2f32d7(0x2a7)];if(_0x4036a6===_univerjs_core['DrawingTypeEnum'][_0x2f32d7(0x224)]&&_0x14f7e0['drawingId']===this['_activeShapeId'])this['_clearShapeConnectorHandlerObjects'](),this[_0x2f32d7(0x39d)]();else{if(!this[_0x2f32d7(0x4ba)]&&_0x4036a6===_univerjs_core[_0x2f32d7(0x4d6)][_0x2f32d7(0x224)])this[_0x2f32d7(0x13e)](_0x14f7e0[_0x2f32d7(0x4c0)],_0x14f7e0[_0x2f32d7(0x2c2)],_0x14f7e0['drawingId']);}}})),this[_0x17b46e(0x5b8)](this['_drawingManagerService'][_0x17b46e(0x3e3)][_0x17b46e(0x579)](_0x20ad7a=>{const _0xb23701=_0x17b46e;for(const _0x5cc383 of _0x20ad7a){const {drawingId:_0x5b61a4}=_0x5cc383;if(this[_0xb23701(0x4ba)]===_0x5b61a4){this[_0xb23701(0x51f)]();return;}}}));}[_0x5a3cc9(0x452)](_0x3ad78f,_0x5b5ab0,_0x3f0708,_0xd58c43,_0x235dc7){const _0x11c1b4=_0x5a3cc9;var _0x1e75b4,_0x2deadd;if(!this[_0x11c1b4(0x23e)])return;const _0x2af79d=this['_getConnectPointInfo'](_0x3ad78f);if(!_0x2af79d)return;const _0x2df736=this[_0x11c1b4(0x547)]?this['_currentConnectionTarget'][_0x11c1b4(0x1ca)]:_0x5b5ab0,_0x5174fa=this[_0x11c1b4(0x547)]?this[_0x11c1b4(0x547)][_0x11c1b4(0x54c)]:this[_0x11c1b4(0x4e3)](_0x2af79d[_0x11c1b4(0x268)],_0x2df736);let _0x3353a1;if(this['_currentConnectionTarget']){const _0xfd25f5=this[_0x11c1b4(0x2f7)][_0x11c1b4(0x4ca)]({'unitId':this[_0x11c1b4(0x547)][_0x11c1b4(0x4c0)],'subUnitId':this['_currentConnectionTarget']['subUnitId'],'drawingId':this[_0x11c1b4(0x547)]['shapeId']});if(_0xfd25f5===null||_0xfd25f5===void 0x0?void 0x0:_0xfd25f5[_0x11c1b4(0x4db)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0xc8836f}=_0xfd25f5[_0x11c1b4(0x4db)];_0x3353a1=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0xc8836f||0x0);}else _0x3353a1={'left':_0x2df736['x'],'top':_0x2df736['y'],'width':0x0,'height':0x0};}else _0x3353a1={'left':_0x2df736['x'],'top':_0x2df736['y'],'width':0x0,'height':0x0};const _0x4b47c2={'point':_0x2df736,'angle':_0x5174fa,'bounds':_0x3353a1},_0x4bdbcc=_0x3f0708?_0x4b47c2:_0x2af79d,_0x30cf8f=_0x3f0708?_0x2af79d:_0x4b47c2,_0x46c13e=this[_0x11c1b4(0x23e)][_0x11c1b4(0x373)](),_0x2d1c93=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x4bdbcc,_0x30cf8f,_0x46c13e);if(_0x2d1c93)this['_activeShapeModel'][_0x11c1b4(0x278)](_0x2d1c93);const _0xbffb0d=(0x0,_univerjs_pro_engine_shape[_0x11c1b4(0x44a)])(_0x2d1c93,_0x46c13e);if(_0xbffb0d[_0x11c1b4(0x4cc)]!==_0x46c13e)this['_activeShapeModel'][_0x11c1b4(0x1d3)](_0xbffb0d[_0x11c1b4(0x4cc)]);for(const [_0x298b34,_0x37ac24]of Object['entries'](_0xbffb0d['adjustValues']))this[_0x11c1b4(0x23e)][_0x11c1b4(0x697)](_0x298b34,_0x37ac24);this[_0x11c1b4(0x23e)][_0x11c1b4(0x4d3)]({'width':_0xbffb0d['worldRect'][_0x11c1b4(0x47c)],'height':_0xbffb0d['worldRect'][_0x11c1b4(0x36a)]}),_0xd58c43[_0x11c1b4(0x53c)]({'flipX':_0xbffb0d['worldRect'][_0x11c1b4(0x1cd)],'flipY':_0xbffb0d[_0x11c1b4(0x3fb)][_0x11c1b4(0x1f4)],'left':_0xbffb0d['worldRect']['left'],'top':_0xbffb0d[_0x11c1b4(0x3fb)][_0x11c1b4(0x3e5)],'width':_0xbffb0d[_0x11c1b4(0x3fb)][_0x11c1b4(0x47c)],'height':_0xbffb0d[_0x11c1b4(0x3fb)]['height'],'angle':_0xbffb0d[_0x11c1b4(0x156)]}),_0xd58c43['makeDirty'](!![]);const _0x183f2c=(_0x1e75b4=(_0x2deadd=this[_0x11c1b4(0x547)])===null||_0x2deadd===void 0x0?void 0x0:_0x2deadd[_0x11c1b4(0x1ca)])!==null&&_0x1e75b4!==void 0x0?_0x1e75b4:_0x5b5ab0;_0x235dc7['transformByState']({'left':_0x183f2c['x']-_univerjs_pro_engine_shape[_0x11c1b4(0x1d0)][_0x11c1b4(0x503)],'top':_0x183f2c['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x11c1b4(0x503)]});}[_0x5a3cc9(0x293)](_0x1a6691,_0x366b31,_0x2f7a88,_0x2b723a,_0x1a3fcf){const _0x4391ae=_0x5a3cc9;var _0x1f78fb,_0x388440,_0x377f9b,_0x194e49;const _0x3fd07c=(_0x1f78fb=(_0x388440=this['_currentConnectionTarget'])===null||_0x388440===void 0x0?void 0x0:_0x388440[_0x4391ae(0x1ca)])!==null&&_0x1f78fb!==void 0x0?_0x1f78fb:_0x1a6691,_0x26329d=_univerjs_pro_engine_shape['ConnectorCoordinateTransform'][_0x4391ae(0x2d5)](_0x366b31,_0x3fd07c,_0x2f7a88);_0x2b723a[_0x4391ae(0x53c)]({'flipX':_0x26329d[_0x4391ae(0x3fb)][_0x4391ae(0x1cd)],'flipY':_0x26329d[_0x4391ae(0x3fb)][_0x4391ae(0x1f4)],'left':_0x26329d['worldRect']['left'],'top':_0x26329d[_0x4391ae(0x3fb)][_0x4391ae(0x3e5)],'width':_0x26329d[_0x4391ae(0x3fb)][_0x4391ae(0x47c)],'height':_0x26329d[_0x4391ae(0x3fb)][_0x4391ae(0x36a)],'angle':_0x26329d[_0x4391ae(0x3fb)]['angle']});const _0x4f6a42=(_0x377f9b=(_0x194e49=this[_0x4391ae(0x547)])===null||_0x194e49===void 0x0?void 0x0:_0x194e49[_0x4391ae(0x1ca)])!==null&&_0x377f9b!==void 0x0?_0x377f9b:_0x1a6691;_0x1a3fcf[_0x4391ae(0x53c)]({'left':_0x4f6a42['x']-_univerjs_pro_engine_shape[_0x4391ae(0x1d0)][_0x4391ae(0x503)],'top':_0x4f6a42['y']-_univerjs_pro_engine_shape[_0x4391ae(0x1d0)][_0x4391ae(0x503)]});}['_getConnectPointInfo'](_0x203011){const _0x4196d0=_0x5a3cc9;if(!this[_0x4196d0(0x486)]||!this[_0x4196d0(0x283)])return null;const {shapeId:_0x71f4ed,cxnIndex:_0x18fb08}=_0x203011,_0x3c01df=this[_0x4196d0(0x526)][_0x4196d0(0x2ea)](this[_0x4196d0(0x486)],this[_0x4196d0(0x283)],_0x71f4ed);if(!_0x3c01df)return null;const _0x9e51fb=this['_drawingManagerService'][_0x4196d0(0x4ca)]({'unitId':this[_0x4196d0(0x486)],'subUnitId':this[_0x4196d0(0x283)],'drawingId':_0x71f4ed});if(!(_0x9e51fb===null||_0x9e51fb===void 0x0?void 0x0:_0x9e51fb['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x4c5577}=_0x9e51fb[_0x4196d0(0x4db)];_0x3c01df[_0x4196d0(0x4d3)]({'width':width,'height':height});const _0x1b062e=_0x3c01df[_0x4196d0(0x474)]()[_0x4196d0(0x482)](_0x4dbc23=>_0x4dbc23['index']===_0x18fb08);if(!_0x1b062e)return null;let _0x529abd=flipX?width-_0x1b062e['x']:_0x1b062e['x'],_0x3e6a48=flipY?height-_0x1b062e['y']:_0x1b062e['y'];if(_0x4c5577!==0x0&&_0x4c5577!==void 0x0&&_0x4c5577!==null){const _0x1e8e6b=_0x4c5577*Math['PI']/0xb4,_0x587b37=Math['cos'](_0x1e8e6b),_0x461a11=Math[_0x4196d0(0x2ac)](_0x1e8e6b),_0x17a61d=width/0x2,_0x15d495=height/0x2,_0x1d3ad2=_0x529abd-_0x17a61d,_0x553b34=_0x3e6a48-_0x15d495;_0x529abd=_0x17a61d+_0x1d3ad2*_0x587b37-_0x553b34*_0x461a11,_0x3e6a48=_0x15d495+_0x1d3ad2*_0x461a11+_0x553b34*_0x587b37;}_0x529abd+=left,_0x3e6a48+=top;let _0x397f3b=_0x1b062e[_0x4196d0(0x3f8)]/0xea60;if(flipX)_0x397f3b=0xb4-_0x397f3b;if(flipY)_0x397f3b=-_0x397f3b;_0x397f3b+=_0x4c5577||0x0,_0x397f3b=(_0x397f3b%0x168+0x168)%0x168;const _0x10031=(0x0,_univerjs_pro_engine_shape[_0x4196d0(0x30f)])({'left':left,'top':top,'width':width,'height':height},_0x4c5577||0x0);return{'point':{'x':_0x529abd,'y':_0x3e6a48},'angle':_0x397f3b,'bounds':_0x10031};}['_calculateFreeEndpointAngle'](_0x365712,_0x1f0413){const _0x3eb518=_0x5a3cc9,_0x4251f3=_0x1f0413['x']-_0x365712['x'],_0x3ac14b=_0x1f0413['y']-_0x365712['y'];if(Math[_0x3eb518(0x4d7)](_0x4251f3)>=Math['abs'](_0x3ac14b))return _0x4251f3>=0x0?0xb4:0x0;else return _0x3ac14b>=0x0?0x10e:0x5a;}[_0x5a3cc9(0x51f)](){const _0x4eaa65=_0x5a3cc9;this[_0x4eaa65(0x4ba)]=void 0x0,this[_0x4eaa65(0x486)]=void 0x0,this[_0x4eaa65(0x283)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x5a3cc9(0x46b)](){const _0x249928=_0x5a3cc9;this[_0x249928(0x2a8)](),super[_0x249928(0x46b)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0x5a3cc9(0x4bb)]),__decorateParam(0x2,_univerjs_engine_render[_0x5a3cc9(0x5af)]),__decorateParam(0x3,_univerjs_drawing[_0x5a3cc9(0x622)]),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x5a3cc9(0x142)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core['Inject'])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x5a3cc9(0x602)]{constructor(_0x736225,_0x3d7753,_0x363369){const _0x337990=_0x5a3cc9;super(),this[_0x337990(0x187)]=_0x736225,this['_localeService']=_0x3d7753,this[_0x337990(0x371)]=_0x363369,this[_0x337990(0x352)]();}[_0x5a3cc9(0x352)](){const _0x3cbf74=_0x5a3cc9;this[_0x3cbf74(0x5b8)](this[_0x3cbf74(0x187)][_0x3cbf74(0x57a)](_0x9415bd=>{const _0x538996=_0x3cbf74;let _0x117853,_0x2d5be6;if(_0x9415bd['id']===_univerjs_pro_sheets_shape[_0x538996(0x2ef)]['id']||_0x9415bd['id']===_univerjs_pro_sheets_shape['SetShapeDrawingDataCommand']['id']||_0x9415bd['id']===_univerjs_pro_sheets_shape[_0x538996(0x66e)]['id']){const _0x10ff83=_0x9415bd['params'];_0x117853=_0x10ff83[_0x538996(0x4c0)],_0x2d5be6=_0x10ff83[_0x538996(0x2c2)];}if(!_0x117853||!_0x2d5be6)return;if(!this[_0x538996(0x371)]['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets['WorkbookEditablePermission']],'worksheetTypes':[_univerjs_sheets[_0x538996(0x664)]]},_0x117853,_0x2d5be6))this[_0x538996(0x371)][_0x538996(0x26d)](this[_0x538996(0x1c9)]['t'](_0x538996(0x42b)));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_core[_0x5a3cc9(0x4bb)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_core[_0x5a3cc9(0x5d6)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_sheets[_0x5a3cc9(0x661)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0xba520e){const _0x344f10=_0x5a3cc9,{containerWidth:_0x207749,containerHeight:_0x297d2e,scaleX:_0x3448a9,scaleY:_0x40202e}=_0xba520e,_0x1a6db0=_0x3448a9||0x1,_0x5ee8db=_0x40202e||0x1,_0x1ec689=(0x0,_univerjs_ui[_0x344f10(0x297)])(ShapeTextEditingService),_0x53055b=(0x0,_univerjs_ui[_0x344f10(0x297)])(_univerjs_docs_ui[_0x344f10(0x4f9)]),_0x5c49f5=(0x0,_univerjs_ui[_0x344f10(0x297)])(_univerjs_engine_render[_0x344f10(0x5af)]),_0x2f08c7=(0x0,_univerjs_ui[_0x344f10(0x297)])(_univerjs_core[_0x344f10(0x1bc)]),_0x3d7ca0=(0x0,_univerjs_ui[_0x344f10(0x297)])(_univerjs_drawing[_0x344f10(0x622)]),_0x36767c=(0x0,_univerjs_ui[_0x344f10(0x297)])(_univerjs_pro_sheets_shape[_0x344f10(0x142)]),_0x5d512c=(0x0,_univerjs_ui[_0x344f10(0x297)])(_univerjs_core[_0x344f10(0x4bb)]),_0x569f40=(0x0,_univerjs_ui[_0x344f10(0x4fa)])(_0x1ec689['editingParams$']),_0x487891=(0x0,_univerjs_ui[_0x344f10(0x4fa)])(_0x1ec689['onSavingEditorData$']),_0x3a31fa=(0x0,react[_0x344f10(0x3ef)])(null),_0x662142=(0x0,react[_0x344f10(0x3ef)])(null),_0x31e356=(0x0,react[_0x344f10(0x3ef)])(null),_0x2f5ea7=(0x0,react[_0x344f10(0x3ef)])(null),_0x29468d=(0x0,react[_0x344f10(0x3ef)])(null),_0x25496e=(0x0,react[_0x344f10(0x3ef)])(null),[_0x5a43a6,_0x1e8ad8]=(0x0,react[_0x344f10(0x5e2)])({'editorHeight':_0x297d2e,'marginTop':0x0,'useAbsolutePosition':![]}),_0x3e96b0=(0x0,react['useCallback'])(_0x379648=>{queueMicrotask(()=>{_0x1e8ad8(_0x379648);});},[]),_0x13f103=(0x0,react[_0x344f10(0x5a5)])(()=>{const _0x565bed=_0x344f10;return _0x2f08c7['getUnit'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core['UniverInstanceType'][_0x565bed(0x4bf)]);},[_0x2f08c7]),_0x408861=(0x0,react['useCallback'])(()=>{const _0x115fd2=_0x344f10;var _0x38f49c;const _0xbc84ea=_0x1a6db0,_0x2de96f=_0x5ee8db;if(!_0x569f40)return{'scaleAdjust':0x1,'renderScaleX':_0xbc84ea,'renderScaleY':_0x2de96f};const _0x5f0d09=_0x5c49f5[_0x115fd2(0x1bb)](_0x569f40[_0x115fd2(0x4c0)]),_0x53fbf5=_0x5f0d09===null||_0x5f0d09===void 0x0?void 0x0:_0x5f0d09[_0x115fd2(0x1ea)][_0x115fd2(0x396)](),_0x49d179=_0x5f0d09===null||_0x5f0d09===void 0x0?void 0x0:_0x5f0d09['engine'][_0x115fd2(0x3cc)](),_0x11d15f=_0x49d179?Number[_0x115fd2(0x34b)](_0x49d179['style']['width']||''):0x0,_0x286762=(_0x38f49c=_0x49d179===null||_0x49d179===void 0x0?void 0x0:_0x49d179[_0x115fd2(0x594)]()[_0x115fd2(0x47c)])!==null&&_0x38f49c!==void 0x0?_0x38f49c:0x0,_0x32e448=_0x11d15f>0x0&&_0x286762>0x0?_0x286762/_0x11d15f:0x1;return{'scaleAdjust':Number[_0x115fd2(0x412)](_0x32e448)&&_0x32e448>0x0?_0x32e448:0x1,'renderScaleX':(_0x53fbf5===null||_0x53fbf5===void 0x0?void 0x0:_0x53fbf5[_0x115fd2(0x151)])||_0xbc84ea,'renderScaleY':(_0x53fbf5===null||_0x53fbf5===void 0x0?void 0x0:_0x53fbf5[_0x115fd2(0x2ec)])||_0x2de96f};},[_0x1a6db0,_0x5ee8db,_0x569f40,_0x5c49f5]),_0x3ca52e=(0x0,react[_0x344f10(0x5a5)])(()=>{const _0x4b1de0=_0x344f10;if(!_0x569f40)return{'left':0x0,'top':0x0,'width':_0x207749/_0x1a6db0,'height':_0x297d2e/_0x5ee8db};const {unitId:_0x19f533,subUnitId:_0x173ba5,shapeId:_0x2ad65a}=_0x569f40,_0x371344=_0x36767c[_0x4b1de0(0x2ea)](_0x19f533,_0x173ba5,_0x2ad65a);if(!_0x371344)return{'left':0x0,'top':0x0,'width':_0x207749/_0x1a6db0,'height':_0x297d2e/_0x5ee8db};const _0x107097={'left':0x0,'top':0x0,'width':_0x207749/_0x1a6db0,'height':_0x297d2e/_0x5ee8db};return _0x371344[_0x4b1de0(0x290)](_0x107097);},[_0x569f40,_0x207749,_0x297d2e,_0x1a6db0,_0x5ee8db,_0x36767c]),_0x55fd38=(0x0,react[_0x344f10(0x5a5)])(()=>{const _0x2fdec2=_0x344f10;if(!_0x569f40)return null;const {unitId:_0x4a998a,subUnitId:_0x299981,shapeId:_0x43027f}=_0x569f40,_0x54dc27=_0x36767c[_0x2fdec2(0x2ea)](_0x4a998a,_0x299981,_0x43027f);if(!_0x54dc27)return null;const _0x38ecd3=_0x54dc27['getShapeTextData']();if(!_0x38ecd3)return null;const _0x35e989={'unitId':_0x4a998a,'subUnitId':_0x299981,'drawingId':_0x43027f},_0xd8d4ef=_0x3d7ca0[_0x2fdec2(0x4ca)](_0x35e989);let _0xae7c60={'angle':0x0,'flipX':![],'flipY':![]};if(_0xd8d4ef&&_0xd8d4ef['transform'])_0xae7c60=_0xd8d4ef[_0x2fdec2(0x4db)];const _0x50e277={'left':0x0,'top':0x0,'width':_0x207749/_0x1a6db0,'height':_0x297d2e/_0x5ee8db},_0x277fd5=_0x54dc27['getShapeTextRect'](_0x50e277);let _0x2c4d36,_0x398fcb=_univerjs_core[_0x2fdec2(0x58d)]['TOP'],_0x5e9706=_univerjs_core['HorizontalAlign'][_0x2fdec2(0x1b0)];if(_0x2fdec2(0x2c6)in _0x38ecd3&&_0x38ecd3['dataModel']){var _0x5ba83b,_0x216ae2;const _0x380f5e=_0x38ecd3[_0x2fdec2(0x2c6)];if(_0x380f5e===null||_0x380f5e===void 0x0?void 0x0:_0x380f5e[_0x2fdec2(0x506)])_0x2c4d36=_0x380f5e['doc'];_0x398fcb=(_0x5ba83b=_0x380f5e===null||_0x380f5e===void 0x0?void 0x0:_0x380f5e['va'])!==null&&_0x5ba83b!==void 0x0?_0x5ba83b:_univerjs_core['VerticalAlign']['TOP'],_0x5e9706=(_0x216ae2=_0x380f5e===null||_0x380f5e===void 0x0?void 0x0:_0x380f5e['ha'])!==null&&_0x216ae2!==void 0x0?_0x216ae2:_univerjs_core[_0x2fdec2(0x3f9)]['LEFT'];}return{'doc':_0x2c4d36,'verticalAlign':_0x398fcb,'horizontalAlign':_0x5e9706,'textRect':_0x277fd5,'transform':_0xae7c60,'isHorizontal':_0x38ecd3[_0x2fdec2(0x1c4)]};},[_0x569f40,_0x36767c,_0x3d7ca0,_0x207749,_0x297d2e,_0x1a6db0,_0x5ee8db]),_0x60e014=(0x0,react[_0x344f10(0x379)])(()=>{const _0x4d14b2=_0x344f10,_0x532e3f=_0x55fd38();if(_0x532e3f===null||_0x532e3f===void 0x0?void 0x0:_0x532e3f[_0x4d14b2(0x506)])return prepareShapeTextDocumentData(_0x532e3f['doc'],{'isHorizontal':!![],'textRect':_0x532e3f['textRect'],'verticalAlign':_0x532e3f[_0x4d14b2(0x540)],'horizontalAlign':_0x532e3f[_0x4d14b2(0x69c)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x207749/_0x1a6db0,'height':Infinity}}};},[_0x55fd38,_0x207749,_0x1a6db0]),_0x592202=(0x0,_univerjs_docs_ui[_0x344f10(0x499)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x60e014,'container':_0x662142,'autoFocus':![],'isSingle':![]}),_0x31c9d7=(0x0,_univerjs_docs_ui[_0x344f10(0x5b2)])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x344f10(0x153)])(_0x31c9d7,{'keyCodes':[{'keyCode':_univerjs_ui['KeyCode'][_0x344f10(0x3d6)]}],'handler':()=>{const _0x1fa592=_0x344f10;_0x5d512c[_0x1fa592(0x343)](_univerjs_docs_ui[_0x1fa592(0x2b2)]['id']);}},_0x592202),(0x0,_univerjs_docs_ui[_0x344f10(0x5f8)])(_0x31c9d7,![],_0x592202);const _0x5e3170=(0x0,react[_0x344f10(0x5a5)])((_0x87f6ea=!![])=>{const _0x4e6a8f=_0x344f10;var _0x4eb212,_0x59a71d,_0x8e9b9a;if(!_0x592202)return;const _0x3539b6=_0x592202[_0x4e6a8f(0x4fc)]()[_0x4e6a8f(0x482)](_0x29a307=>_0x29a307[_0x4e6a8f(0x485)]),_0x437ecc=((_0x4eb212=(_0x59a71d=_0x592202[_0x4e6a8f(0x685)]()[_0x4e6a8f(0x53b)])===null||_0x59a71d===void 0x0?void 0x0:_0x59a71d[_0x4e6a8f(0x3f6)]['length'])!==null&&_0x4eb212!==void 0x0?_0x4eb212:0x2)-0x2,_0x6a299c=(_0x8e9b9a=_0x3539b6===null||_0x3539b6===void 0x0?void 0x0:_0x3539b6[_0x4e6a8f(0x4c2)])!==null&&_0x8e9b9a!==void 0x0?_0x8e9b9a:_0x87f6ea?_0x437ecc:null;if(_0x6a299c===null)return;_0x592202[_0x4e6a8f(0x2c0)]([{'startOffset':_0x6a299c,'endOffset':_0x6a299c}],![]);},[_0x592202]),_0x50decc=(0x0,react[_0x344f10(0x5a5)])(()=>{const _0x171ac8=_0x344f10;_0x29468d[_0x171ac8(0x5e0)]!==null&&(cancelAnimationFrame(_0x29468d['current']),_0x29468d['current']=null),_0x25496e[_0x171ac8(0x5e0)]!==null&&(window['clearTimeout'](_0x25496e[_0x171ac8(0x5e0)]),_0x25496e['current']=null);},[]),_0x1a9f52=(0x0,react[_0x344f10(0x5a5)])(()=>{const _0x4dbacc=_0x344f10;var _0x567c2d,_0x3e562e,_0xd9d22a;if(!_0x592202)return;const _0x544299=_0x5c49f5[_0x4dbacc(0x1bb)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x16262b=_0x544299===null||_0x544299===void 0x0?void 0x0:_0x544299['with'](_univerjs_docs[_0x4dbacc(0x3d7)]);if(!_0x16262b)return;const _0x488fb5=_0x16262b['getSkeleton'](),_0x2f7c59=_0x13f103(),{renderScaleX:_0x2eac6a,renderScaleY:_0x15f10b,scaleAdjust:_0x392b4b}=_0x408861(),_0x6fc312=_0x55fd38(),_0x3a01f6=(_0x567c2d=_0x6fc312===null||_0x6fc312===void 0x0?void 0x0:_0x6fc312[_0x4dbacc(0x540)])!==null&&_0x567c2d!==void 0x0?_0x567c2d:_univerjs_core['VerticalAlign'][_0x4dbacc(0x29e)],_0x367c79=(_0x3e562e=_0x6fc312===null||_0x6fc312===void 0x0?void 0x0:_0x6fc312[_0x4dbacc(0x69c)])!==null&&_0x3e562e!==void 0x0?_0x3e562e:_univerjs_core[_0x4dbacc(0x3f9)][_0x4dbacc(0x1b0)],_0x3b654c=(_0xd9d22a=_0x3ca52e())!==null&&_0xd9d22a!==void 0x0?_0xd9d22a:{'left':0x0,'top':0x0,'width':_0x207749/_0x1a6db0,'height':_0x297d2e/_0x5ee8db};_0x2f7c59&&(_0x2f7c59['setZoomRatio'](Math['max'](_0x2eac6a,_0x15f10b)),_0x2f7c59[_0x4dbacc(0x29c)]({'pageSize':{'width':_0x3b654c[_0x4dbacc(0x47c)],'height':Infinity}}),_0x2f7c59[_0x4dbacc(0x33a)]({'verticalAlign':_0x3a01f6,'horizontalAlign':_0x367c79,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x4dbacc(0x67d)][_0x4dbacc(0x44e)]}));_0x488fb5[_0x4dbacc(0x24d)]();const {actualHeight:_0x29d520}=_0x488fb5['getActualSize'](),_0x3200ea=_0x3b654c[_0x4dbacc(0x36a)];let _0x5930c1=_0x3200ea,_0x4d5c7f=0x0;if(_0x29d520<=_0x3200ea){if(_0x3a01f6===_univerjs_core[_0x4dbacc(0x58d)][_0x4dbacc(0x5ce)])_0x4d5c7f=(_0x3200ea-_0x29d520)/0x2;else{if(_0x3a01f6===_univerjs_core[_0x4dbacc(0x58d)][_0x4dbacc(0x28a)])_0x4d5c7f=_0x3200ea-_0x29d520;}_0x5930c1=_0x3200ea,_0x3e96b0({'editorHeight':_0x3b654c[_0x4dbacc(0x36a)]*_0x5ee8db,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x18dd8a=0x0;if(_0x3a01f6===_univerjs_core[_0x4dbacc(0x58d)][_0x4dbacc(0x5ce)])_0x18dd8a=(_0x3200ea-_0x29d520)/0x2;else{if(_0x3a01f6===_univerjs_core['VerticalAlign'][_0x4dbacc(0x28a)])_0x18dd8a=_0x3200ea-_0x29d520;}_0x4d5c7f=0x0,_0x3e96b0({'editorHeight':_0x29d520*_0x5ee8db,'marginTop':_0x18dd8a*_0x5ee8db,'useAbsolutePosition':!![]}),_0x5930c1=_0x29d520;}_0x2f7c59&&(_0x2f7c59[_0x4dbacc(0x29c)]({'pageSize':{'width':_0x3b654c[_0x4dbacc(0x47c)],'height':_0x5930c1}}),_0x2f7c59[_0x4dbacc(0x597)]({'t':_0x4d5c7f}),_0x488fb5['calculate']());if(_0x544299){const _0x355543=_0x3b654c[_0x4dbacc(0x47c)]*_0x1a6db0,_0x310fbf=_0x5930c1*_0x5ee8db;_0x544299[_0x4dbacc(0x1ea)][_0x4dbacc(0x53c)]({'width':_0x355543*_0x392b4b/_0x2eac6a,'height':_0x310fbf*_0x392b4b/_0x15f10b,'scaleX':_0x2eac6a*_0x392b4b,'scaleY':_0x15f10b*_0x392b4b});if(_0x544299[_0x4dbacc(0x2d1)])_0x544299[_0x4dbacc(0x2d1)][_0x4dbacc(0x609)](_0x355543*_0x392b4b/_0x2eac6a,_0x310fbf*_0x392b4b/_0x15f10b);}},[_0x592202,_0x5c49f5,_0x13f103,_0x408861,_0x55fd38,_0x3ca52e,_0x207749,_0x297d2e,_0x1a6db0,_0x5ee8db,_0x3e96b0]),_0x58027e=(0x0,react[_0x344f10(0x5a5)])((_0x18dbd5=![])=>{_0x50decc(),_0x29468d['current']=requestAnimationFrame(()=>{const _0x2629e6=_0x4507;_0x1a9f52();if(_0x18dbd5)_0x5e3170(![]);_0x29468d['current']=null,_0x25496e[_0x2629e6(0x5e0)]=window[_0x2629e6(0x614)](()=>{const _0x14c1d4=_0x2629e6;_0x1a9f52();if(_0x18dbd5)_0x5e3170(![]);_0x25496e[_0x14c1d4(0x5e0)]=null;},0x14);});},[_0x1a9f52,_0x50decc,_0x5e3170]);(0x0,react[_0x344f10(0x1ce)])(()=>{const _0x4b0496=_0x344f10;if(!_0x592202||!_0x569f40)return;const {shapeId:_0x3aba10,unitId:_0x36cba4,subUnitId:_0x2ba147}=_0x569f40;if(_0x487891){var _0x545e3f,_0x1048b8,_0x2e87ea,_0x3f5717;const _0x3ced6f=stripShapeTextDocumentLayout(_0x592202[_0x4b0496(0x685)]()),_0x2c251f=_0x55fd38(),_0xde757a={'va':(_0x545e3f=_0x2c251f===null||_0x2c251f===void 0x0?void 0x0:_0x2c251f['verticalAlign'])!==null&&_0x545e3f!==void 0x0?_0x545e3f:_univerjs_core[_0x4b0496(0x58d)][_0x4b0496(0x29e)],'ha':(_0x1048b8=_0x2c251f===null||_0x2c251f===void 0x0?void 0x0:_0x2c251f['horizontalAlign'])!==null&&_0x1048b8!==void 0x0?_0x1048b8:_univerjs_core[_0x4b0496(0x3f9)][_0x4b0496(0x1b0)],'doc':_0x3ced6f};_0x5d512c[_0x4b0496(0x343)](UpdateShapeDataCommand['id'],{'unitId':_0x36cba4,'subUnitId':_0x2ba147,'shapeId':_0x3aba10,'shapeData':{'shapeText':{'isHorizontal':(_0x2e87ea=_0x2c251f===null||_0x2c251f===void 0x0?void 0x0:_0x2c251f[_0x4b0496(0x1c4)])!==null&&_0x2e87ea!==void 0x0?_0x2e87ea:!![],'dataModel':_0xde757a}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x3f5717=_0x2c251f===null||_0x2c251f===void 0x0?void 0x0:_0x2c251f[_0x4b0496(0x1c4)])!==null&&_0x3f5717!==void 0x0?_0x3f5717:!![],'dataModel':_0x31e356[_0x4b0496(0x5e0)]}}}});return;}const _0x293087=_0x55fd38();if(_0x293087===null||_0x293087===void 0x0?void 0x0:_0x293087[_0x4b0496(0x506)]){_0x31e356['current']={'va':_0x293087['verticalAlign'],'ha':_0x293087['horizontalAlign'],'doc':_univerjs_core['Tools'][_0x4b0496(0x2cc)](_0x293087['doc'])};const _0x27f910=prepareShapeTextDocumentData(_0x293087['doc'],{'isHorizontal':!![],'textRect':_0x293087[_0x4b0496(0x1f9)],'verticalAlign':_0x293087['verticalAlign'],'horizontalAlign':_0x293087[_0x4b0496(0x69c)]});return _0x592202['setDocumentData'](_0x27f910,null),()=>{const _0x2105ea=_0x4b0496;var _0x4f62b3,_0x4d9406,_0x190402,_0x431a94;const _0x2e4407=stripShapeTextDocumentLayout(_0x592202['getDocumentData']()),_0x229bb1=_0x55fd38(),_0x4ccfc0={'va':(_0x4f62b3=_0x229bb1===null||_0x229bb1===void 0x0?void 0x0:_0x229bb1[_0x2105ea(0x540)])!==null&&_0x4f62b3!==void 0x0?_0x4f62b3:_univerjs_core[_0x2105ea(0x58d)][_0x2105ea(0x29e)],'ha':(_0x4d9406=_0x229bb1===null||_0x229bb1===void 0x0?void 0x0:_0x229bb1[_0x2105ea(0x69c)])!==null&&_0x4d9406!==void 0x0?_0x4d9406:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x2e4407};_0x5d512c[_0x2105ea(0x343)](UpdateShapeDataCommand['id'],{'unitId':_0x36cba4,'subUnitId':_0x2ba147,'shapeId':_0x3aba10,'shapeData':{'shapeText':{'isHorizontal':(_0x190402=_0x229bb1===null||_0x229bb1===void 0x0?void 0x0:_0x229bb1['isHorizontal'])!==null&&_0x190402!==void 0x0?_0x190402:!![],'dataModel':_0x4ccfc0}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x431a94=_0x229bb1===null||_0x229bb1===void 0x0?void 0x0:_0x229bb1[_0x2105ea(0x1c4)])!==null&&_0x431a94!==void 0x0?_0x431a94:!![],'dataModel':_0x31e356['current']}}}});};}else _0x592202[_0x4b0496(0x4b7)](_0x60e014,null);},[_0x592202,_0x569f40,_0x487891]),(0x0,react[_0x344f10(0x1ce)])(()=>{const _0x911e6c=_0x344f10;if(!_0x592202||!_0x569f40)return;return _0x53055b[_0x911e6c(0x23d)](!![]),_0x1a9f52(),_0x2f5ea7[_0x911e6c(0x5e0)]=requestAnimationFrame(()=>{const _0x28edae=_0x911e6c;_0x53055b[_0x28edae(0x173)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x5e3170(),_0x58027e(),_0x2f5ea7[_0x28edae(0x5e0)]=null;}),()=>{const _0x32d522=_0x911e6c;_0x2f5ea7[_0x32d522(0x5e0)]!==null&&(cancelAnimationFrame(_0x2f5ea7[_0x32d522(0x5e0)]),_0x2f5ea7[_0x32d522(0x5e0)]=null),_0x50decc(),_0x53055b[_0x32d522(0x23d)](!![]);};},[_0x592202,_0x569f40,_0x53055b,_0x1a9f52,_0x5e3170,_0x58027e,_0x50decc]),(0x0,react['useEffect'])(()=>{const _0x2b4da5=_0x344f10;if(!_0x592202)return;const _0x5681dc=_0x5d512c[_0x2b4da5(0x15e)](_0x5a6fa8=>{const _0x49f256=_0x2b4da5;if(_0x5a6fa8['id']===_univerjs_docs[_0x49f256(0x20d)]['id']){if(_0x5a6fa8['params']['unitId']===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x569f40){if(!_0x569f40[_0x49f256(0x675)])_0x1ec689[_0x49f256(0x3cb)]({..._0x569f40,'visible':!![]});else _0x1a9f52();}}}if(_0x5a6fa8['id']===SetShapeTextVerticalAlignCommand['id'])_0x58027e(!![]);});return()=>{const _0x1a9104=_0x2b4da5;_0x5681dc[_0x1a9104(0x46b)]();};},[_0x592202,_0x1a9f52,_0x569f40,_0x58027e,_0x1ec689]),(0x0,react['useEffect'])(()=>{return _0x1a9f52(),_0x58027e(),()=>{_0x50decc();};},[_0x1a9f52,_0x58027e,_0x50decc]);const _0x337ee5=(0x0,react[_0x344f10(0x379)])(()=>{const _0x5b4b3c=_0x344f10;var _0x41e2a0;const _0x274925=(_0x41e2a0=_0x3ca52e())!==null&&_0x41e2a0!==void 0x0?_0x41e2a0:{'left':0x0,'top':0x0,'width':_0x207749/_0x1a6db0,'height':_0x297d2e/_0x5ee8db},_0x43ae36=_0x274925['left']*_0x1a6db0,_0x560497=_0x274925[_0x5b4b3c(0x3e5)]*_0x5ee8db,_0x289778=_0x274925[_0x5b4b3c(0x47c)]*_0x1a6db0;if(_0x5a43a6['useAbsolutePosition'])return{'top':_0x560497+_0x5a43a6[_0x5b4b3c(0x583)],'left':_0x43ae36,'width':_0x289778,'height':_0x5a43a6[_0x5b4b3c(0x37b)]};return{'top':_0x560497,'left':_0x43ae36,'width':_0x289778,'height':_0x5a43a6[_0x5b4b3c(0x37b)]};},[_0x5a43a6,_0x3ca52e,_0x207749,_0x297d2e,_0x1a6db0,_0x5ee8db]),_0x350afa=(0x0,react[_0x344f10(0x379)])(()=>{const _0x4cd5db=_0x55fd38(),_0x522873=_0x4cd5db===null||_0x4cd5db===void 0x0?void 0x0:_0x4cd5db['transform'];if(_0x522873)return _0x522873||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x55fd38]);return(0x0,react_jsx_runtime[_0x344f10(0x507)])(_0x344f10(0x3aa),{'ref':_0x3a31fa,'data-u-comp':_0x344f10(0x143),'className':_0x344f10(0x23a),'style':{'transform':'rotate('+_0x350afa[_0x344f10(0x54c)]+_0x344f10(0x2f8)+(_0x350afa['flipY']?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime['jsx'])(_0x344f10(0x3aa),{'ref':_0x662142,'className':_0x344f10(0x141),'data-u-comp':'shape-text-editor-content','style':_0x337ee5,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};function _0x50ce(){const _0x1731bc=['ShapeAccentBorderCallout3Icon','doc','jsx','_baseShapeTop','ShapeFlowChartConnectorIcon','ShapeLeftArrowIcon','ShapeBorderCallout1Icon','ShapeMathPlusIcon','sheets-shape.line.sketchType.curved','IImageIoService','shape.type.curved-left-arrow','ancestorTransform','ShapeRectTextboxHorizontalIcon','ShapeLeftRightCircularArrowIcon','COPY_TYPE','indexOf','_initCommands','SetSheetsShapeTextVerticalToggleCommand','ShapeRoundRectIcon','ShapeBracketPairIcon','_config','stopPropagation','getDrawingData','getSkeleton','32840TSzwTf','ShapeRectTextboxVerticalIcon','_reset','fillType','_onSavingEditorData$','Shape','ShapeCurvedConnector3Arrow1Icon','VIEW_MAIN','shapeId','_sheetsShapeService','highlighted','generateRandomId','sheets-shape.line.sketchType.freehand','ShapeNotchedRightArrowIcon','registerClipDelegate','shape.type.quad-arrow','ShapeFolderCornerIcon','BentConnector3','Module','_highlightedSiteIndex','DrawingImageClipService','_adjHandlerPointerUp','focus$','Hexagon','ShapeSketchTypeEnum','getValue','ShapeRightBraceIcon','Star24','sheets-shape.line.dashType.solid','CUT','body','transformByState','ShapeFlowChartMagneticDiskIcon','shape.type.rect-textbox-horizontal','span','verticalAlign','shape.type.left-up-arrow','shape.type.wedge-ellipse-callout','_groupCopyPasteController','image','registerCommand','ctr','_currentConnectionTarget','sheets-shape.line.capType.square','position','CopySheetCommand','_activeImageId','angle','_activeTargetShapeId','FlowchartSort','FoldedCorner','getDrawingShapeKeyByDrawingSearch','univer-flex\x20univer-items-center\x20univer-justify-between','isHitLine','shape.type.action-button-home','_baseShapeWidth','onStarting','ShapeFlowChartOffpageConnectorIcon','CurvedRightArrow','ShapeHeptagonIcon','_isHighlighted','ShapeFlowChartManualOperationIcon','style','shape.type.funnel','_shapes','pushUndoRedo','_clearControls','PictureFill','src','_findNearestConnectionSite','ShapeStar4Icon','_moveConnectorWithShape','input','shape.type.irregular-seal2','ShapeBentConnector3Arrow2Icon','other','ShapeFlowChartInputOutputIcon','_sidebarService','shape.type.bracket-pair','defineProperty','COLOR_PICKER_COMPONENT','shape.type.action-button-document','sheets-shape.fill.picture.align.r','includes','getShapePopupMenus','shape.type.up-arrow','_handleConnectorPointerUp','Frame','call','wrapStrategy','isDrawingObject','sheets-shape.line.arrowType.none','subscribe','beforeCommandExecuted','ShapeAccentCallout3Icon','_baseHeight','4HWkAsl','ShapeActionButtonMovieIcon','ShapeActionButtonReturnIcon','targetShapeId','LeftJustifyingIcon','SheetScrollManagerService','marginTop','shape.type.ellipse-ribbon','_sheetClipboardService','ImageFillModeEnum','ActionButtonHelp','UniverSheetsShapePlugin','DRAWING_IMAGE','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','shape.type.wave','align.bottom','VerticalAlign','UUID','shape.type.flow-chart-predefined-process','SetSheetsShapeRotateCommand','Checkbox','\x20px','setSrcRect','getBoundingClientRect','getCurrentTypeOfUnit$','ShapeSnip2DiagRectIcon','updateDocumentDataMargin','ShapeUpDownArrowCalloutIcon','shape.type.quad-arrow-callout','primary.600','_isImagePointerDown','SheetCanvasPopManagerService','ShapeFlowChartInternalStorageIcon','objects','shape.type.teardrop','MathMinus','oKey','ShapeAccentCallout2Icon','auto','_drawingType','useCallback','ShapeFlowChartDecisionIcon','ColorPicker','shape.type.block-arc','ShapeCallout1Icon','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeFlowChartDisplayIcon','_renderManagerService','Inject','activeAnObject','IRenderManagerService','ShapeBentConnector3Icon','_shapeService','useIsFocusing','gdRefR','sheet.command.update-shape-data','shape.type.moon','ShapeLineCapEnum','ShapeChartPlusIcon','disposeWithMe','shape.type.curved-connector3','ShapeBracePairIcon','custom','Curved','object','ShapeFunnelIcon','ShapeCurvedDownArrowIcon','_copyInfo','VIEW_MAIN_TOP','ShapeSunIcon','univer-pt-2','shape.type.left-right-ribbon','_imageIoService','Diamond','ShapeFlowChartDocumentIcon','LeftUpArrow','#1a73e8','getParent','ShapeActionButtonBackPreviousIcon','getSheetCommandTarget','getState','MIDDLE','sheets-shape.line.dashType.dash','ShapeCanIcon','clip-','toolbar.fillColor.main','shape.type.left-right-circular-arrow','startArrow','getCurrentUnitInfo','LocaleService','_showConnectionSites','constructor','ShapePentagonIcon','featurePluginUpdateNotification','imageTile','getUnitId','OvalArrow','Star5','_updateTransform','current','ShapeBorderCallout2Icon','useState','getTransformer','bind','beginPath','ShapeEllipseRibbonIcon','getPrototypeOf','sheets-shape.line.capType.flat','worksheet','addImageSourceCache','index','_isStartConnectorPoint','CENTER','sheets-shape.line.capType.round','ShapeHorizontalScrollIcon','_updateImageAdjValues','DashDot','copyType','_clearShapeAdjustControls','53049106xzZoNL','getFocusDrawings','UniverSheetsDrawingUIPlugin','CommandType','useLeftAndRightArrow','RibbonStartGroup','toStringTag','SHAPE','sheets-shape.toggleFlipH','None','FlowchartPunchedTape','UpdateShapeDataCommand','isInGroup','_commandExecutedListener','Disposable','srcRect','isRichText','Transform','_connectionSiteObjects','GradientFill','BentUpArrow','resize','_configService','PaintBucketDoubleIcon','sheets-shape.line.sketchType.title','onPointerDown$','update$','DRAWING_DOM','ShapePieWedgeIcon','linear','error','Round','setTimeout','ShapeQuadArrowIcon','function','shape.type.right-brace','shape.type.down-arrow-callout','MenuItemType','getViewportByCell','_drawingAddListener','Accordion','Sun','ShapeDoubleWaveIcon','RightBrace','onTransformChange$','__esModule','IDrawingManagerService','_generateCopyPasteMutations','none','registerFeatureMenu','shape.type.flow-chart-extract','next','sheet.operation.open-sheet-shape-format-panel','shapeType','drawing.operation.set-drawing-active','image-panel.crop.shape','ShapeWedgeRectCalloutIcon','get','IrregularSeal1','FlowchartMerge','sheets-shape.fill.picture.alignment','_registerComponent','shape.type.flow-chart-summing-junction','onPointerUp$','LAYOUT','IConfigService','ShapeFlowChartOnlineStorageIcon','ShapeIcon','changeEnd$','ShapeStraightConnector1Icon','Triangle','shape.type.flow-chart-offpage-connector','onPointerMove$','ShapeLeftUpArrowIcon','shape.type.gear9','0.22.1-insiders.20260515-225d350','gradientAngle','_sheetSkeletonService','ShapeChevronIcon','MoreDownIcon','startConnectionDetection','image/*','ShapeFlowChartMagneticDrumIcon','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ShapeStraightConnector2Icon','INSERT','calcAdjValue','sheets-shape.fill.picture.align.bl','getBasicShapeRelation','shape.type.wedge-round-rect-callout','icon','ShapePlusIcon','shape.type.ribbon','getShapeDataById','shape.type.border-callout3','CurvedConnector3','shape.type.plaque-tabs','shape.type.bent-arrow','enableObjectsEvent','vertexAngle','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','Documents','_createShapeAdjustControls','cxnIndex','getDrawingEditable','shape.type.curved-up-arrow','EllipseRibbon2','shape.type.flow-chart-display','ShapeCurvedRightArrowIcon','SheetPermissionCheckController','Gear6','updateShapeFillImage','WorksheetEditPermission','asObservable','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','shape.type.square-tabs','_registerOperations','shape.type.bent-connector3-arrow2','ShapeRightArrowIcon','Line','getBatchAddOp','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','UpdateConnectorRelationCommand','ShapeNonIsoscelesTrapezoidIcon','sheets-shape.shapePosition','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ShapeLineDashEnum','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','shape.type.accent-callout2','visible','ShapeStar7Icon','saveImage','_hasReset','RightJustifyingIcon','univer-size-full','ShapeBentUpArrowIcon','_executeConnectedRouteConnectionCommand','WrapStrategy','forEach','ShapeParallelogramIcon','activeSheet$','sheets-shape.line.dashType.squareDot','ShapeLeftRightRibbonIcon','_baseWidth','sheets-shape.formatShape','getDocumentData','sheets-shape.fill.picture.align.br','stops','cxnPointFill','prstGeomAdjValues','ShapeSnip1RectIcon','ShapeDodecagonIcon','changing$','RemoveSheetsShapeMutation','Image','Select','univer-box-border\x20univer-px-4\x20univer-text-sm','sheets-shape.hidePanel','_getShapeInfo','CloudCallout','_resetState','render','_getScrollInfo','setAdjustValueByName','shape.type.decagon','ShapeCallout3Icon','sheets-shape.line.color','FlowchartOnlineStorage','horizontalAlign','ISheetDrawingService','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','ShapeMathMultiplyIcon','disableShapeOption','_sheetDrawingService','SheetInterceptorService','translate','Star12','VIEW_MAIN_LEFT','ShapeGear9Icon','ShapeCurvedLeftArrowIcon','_menuManagerService','adjHandleFill','resetCursor','adjName','isRenderLinePointsMode','_handleBasicShapeUpdateConnectorLineShape','_activeShapeInfo','refreshAdjustControls','univer-absolute','SheetsShapeService','shape-text-editor','Observable','sheets-shape.fill.picture.source','getConnectionRelation','UNIVER_SHEET','Ellipse','ShapeActionButtonHelpIcon','univer-text-primary-600','SnipRoundRect','isEditing','getDrawingVisible','sheets-shape.line.beginArrowType','UpArrow','shapeData','scaleX','Chord','useKeyboardEvent','ShapeLeftRightUpArrowIcon','_cxnIndex','rotation','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','Corner','ShapeArcIcon','ShapeIrregularSeal1Icon','_contextService','_baseLeft','Pentagon','onCommandExecuted','horizontal','ShapeStar10Icon','Snip2DiagRect','SetShapeTextFontSizeDecreaseCommand','shape.type.action-button-information','name','ShapeFlowChartOfflineStorageIcon','getShapeData','_baseShapeLeft','gradientType','fill','ShapeModel','align.center','FORMAT','_focusedDrawings','attachRangeWithCoord','isRender','shape.type.callout1','_registerMoveHandler','fillImageSourceType','focus','ShapeMathEqualIcon','getAdjustNames','shape.type.action-button-help','shape.type.flow-chart-merge','callout','gdRefAng','shape.type.right-arrow','ShapeBorderCallout3Icon','values','_getOrCreateShapeModel','ShapeLineIcon','ShapeLineInvIcon','_lastEditingShapeKey','shape.type.heart','_initialize','ShapeBlockArcIcon','shape.type.swoosh-arrow','end','sheets-shape.line.dashType.longDash','_commandService','ShapeArrowSizeEnum','AccentCallout1','#FFFFFF','UpdateSheetsShapeDataMutation','SHEET_VIEWPORT_KEY','FlowchartOr','undefined','\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','ShapeTextEditorContainer','sheets-shape.fill.picture.align.tl','Path','_index','Heart','ShapeFrameIcon','Small','ShapeDiagStripeIcon','sheets-shape.line.joinType.round','ISheetClipboardService','shape.type.chart-star','_registerShapeMenu','Star7','left','shape.type.star16','_isDrawingShapePointDown','setContextValue','Star6','Star10','shape.type.octagon','FlowchartConnector','shape.type.curved-connector3-arrow2','ShapeQuadArrowCalloutIcon','BracketPair','ShapeFlowChartDelayIcon','ShapeDecagonIcon','univer-w-full','shape.type.math-plus','ShapeOctagonIcon','ShapeGear6Icon','FlowchartDecision','Tile','LEFT','vertical','clearAdjustValue','add','editingParams$','starAndBanner','shape.type.bent-connector3','Funnel','_insertShapes','ChartPlus','onDblclick$','getRenderById','IUniverInstanceService','univer-w-20\x20univer-flex-1','shape.type.flow-chart-delay','addObject','filter','MathNotEqual','toolbar.resetColor','AccentCallout3','isHorizontal','complete','shape.type.star24','ShapeActionButtonEndIcon','shape.type.math-equal','_localeService','worldPoint','_cxtHandlerPointerMove','shape.type.brace-pair','flipX','useEffect','getBatchRemoveOp','ShapeDefaultConfig','_sheetShapeAdjustController','BorderCallout2','changeShapeType','_addShapeConnectorHandlerObject','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','ShapeLeftRightArrowCalloutIcon','sheets-shape.line.arrowSize.small','version','push','ShapeRound2SameRectIcon','ShapeStar8Icon','entries','_init','sheets-shape.fill.picture.scaleX','rect','redo','opacity','_draggingConnectorId','Freehand','drawWith','shape.type.snip2-diag-rect','getCurrentLastSelection','shape.type.no-smoking','onSavingEditorData$','_getShapeAdjustInfosById','scene','sheets-shape.line.arrowType.diamondArrow','shape.type.pentagon','PlaqueTabs','_createControls','RightArrowCallout','keys','_openShapeEditPanel','shape.type.callout3','startX','flipY','LeftRightCircularArrow','mergeMenu','BorderCallout3','ActionButtonInformation','textRect','ShapeActionButtonDocumentIcon','Can','FromArray','clear','onReady','getUnit','shape.type.double-wave','LeftRightRibbon','SheetDrawingAnchor','jsxs','shape.type.non-isosceles-trapezoid','ShapeHomePlateIcon','FlowchartMagneticDisk','Rect','sheets-shape.openPanel','toolbar.horizontalAlignMode.main','sheets-shape.fill.picture.align.t','LeftBrace','univer-w-28','RichTextEditingMutation','Stretch','ShapeActionButtonBlankIcon','_drawRichText','shape-text-','ShapeLineTypeEnum','getBentTypeFromPoints','BentArrow','SetInlineFormatTextBackgroundColorCommand','_getDrawingRect','localToWorld','onRendered','_generatePasteMutations','LongDash','getCurrentSkeleton','_currentScene','_drawSimpleText','Plugin','ShapeDiamondIcon','LeftRightArrowCallout','FlowchartCollate','RENDER_CLASS_TYPE','shape.type.snip1-rect','DRAWING_SHAPE','shapeModel','SolidFill','Round2SameRect','skeleton','sheets-shape.fill.noFill','ShapeFlowChartAlternateProcessIcon','registerRenderModule','SwooshArrow','_drawShapeText','CircularArrow','NoSmoking','Ribbon2','setFillImage','FlowchartManualOperation','preValue','ShapeRightArrowCalloutIcon','shape.type.bent-connector3-arrow1','startWith','clearAdjustControls','strokeWidth','shape.type.flow-chart-collate','univer-relative\x20univer-size-full\x20univer-overflow-visible','blockArrow','fillImageSource','blur','_activeShapeModel','sheets-shape.line.arrowSize.large','ShapeFlowChartPredefinedProcessIcon','_sheetBasicShapeConnectionPointController','sheet.command.menu-insert-shape','setConfig','discreteRangeToRange','_shapeUpdateListener','getImageSize','getViewport','RemoveSheetCommand','UturnArrow','getShapeTypeById','shape.type.action-button-forward-next','NonIsoscelesTrapezoid','calculate','sheet.command.set-shape-text-font-size','warn','sheets-shape.line.dashType.title','sheets-shape.line.capType.title','shape-text-editor-position-wrapper','Square','univer-flex\x20univer-flex-col\x20univer-gap-3','merge','getCurrentRangeDisable$','align.top','ShapeFlowChartMultidocumentIcon','ShapeRound2DiagRectIcon','Angular','ShapeAccentBorderCallout2Icon','shape.type.corner','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','sheets-shape.insertShape','univer-text-gray-600\x20univer-transition-transform','sheets-shape.line.dashType.roundDot','\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','prstGeom','ShapeActionButtonForwardNextIcon','shape.type.donut','sheets-shape.fill.picture.align.l','shape.type.trapezoid','Bevel','point','gdRefX','LeftCircularArrow','RIGHT','from','blockExecuteWithoutPermission','ShapeRtTriangleIcon','shape.type.callout2','shape.type.flow-chart-sort','documentStyle','IMenuManagerService','shape.type.home-plate','_initEvents','getEditing','shape.type.diag-stripe','FOCUSING_COMMON_DRAWINGS','updateLinePoints','ActionButtonEnd','create','default','ISidebarService','FlowChartInputOutput','displayName','sheets-shape.line.transparency','removeLinePoints','DiamondArrow','getDrawingPoints','_subUnitId','renderDrawingShape','shape.type.up-arrow-callout','ShapeLineJoinEnum','ShapeFlowChartMagneticTapeIcon','_handleConnectedEndpointPointerUp','_updateAdjustControlPositions','BOTTOM','shape.type.accent-border-callout1','ChartX','BehaviorSubject','sheet.command.shape-doc-align','VerticalCenterIcon','getShapeTextRect','SetShapeTextHorizontalAlignCommand','ShapeActionButtonSoundIcon','_handleFreeEndpointMove','SHEET_SHAPE_UI_PLUGIN','CurvedDownArrow','ShapeGradientTypeEnum','useDependency','CROSSHAIR','POSITIVE_INFINITY','shape.type.accent-border-callout2','ShapeSnipRoundRectIcon','updateDocumentStyle','SetDrawingApplyMutation','TOP','Medium','SetShapeTextVerticalAlignCommand','shape.type.heptagon','univer-flex-1\x20univer-overflow-auto','alignment','BUTTON','DrawingApplyType','rowStartY','drawingType','_clearShapeConnectorHandlerObjects','buildClipPath','sheets-shape.fill.picture.scaleY','line','sin','ShapeFlowChartPunchedCardIcon','RadioGroup','sheets-shape.line.sketchType.handDrawn','ShapeRibbonIcon','LongDashDotDot','BreakLineCommand','computeStraightConnectorLayout','NoLine','LeftRightArrow','round','_handleFreeEndpointPointerUp','Callout1','shape.type.striped-right-arrow','disableObjectsEvent','_targetShapeId','syncExecuteCommand','_isOpenedShapeEditPanel','ShapeRibbon2Icon','onerror','setSelectionRanges','VerticalScroll','subUnitId','ShapeStar12Icon','_getZoomRatio','max','dataModel','ShapeFlowChartMergeIcon','shape.type.flow-chart-or','sheets-shape.line.dashType.longDashDot','sheets-shape.line.title','sheets-shape.fill.gradientFill','deepClone','_isStartAdjusting','InputNumber','button','RightTriangle','mainComponent','SmileyFace','makeDirty','_executeConnectionCommand','computeConnectorResizeLayout','SolidLine','ComponentManager','shape.type.chevron','pipe','univer-flex\x20univer-flex-col\x20univer-gap-2','align.left','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','dashType','toDisposable','renderConfig','HomePlate','_componentManager','_attachAdjustEvent','ShapeBentConnector3Arrow1Icon','WedgeRectCallout','shape.type.lightning-bolt','offsetX','_sheetCanvasPopManagerService','composeMatrix','sheets-shape.line.joinType.miter','getShapeModel','setCanUseShapeClip','scaleY','_initMenu','shape.type.up-down-arrow','InsertShapeCommand','setShapeData','shape.type.plaque','set','ShapeCallout2Icon','prototype','_shapeId','equationShape','_drawingManagerService','deg)\x20scaleY(','isCurvedConnectorShape','shape.type.pie','sheets-shape.fill.picture.offsetX','6049022BfBswn','scale','pick','UniverSheetsShapeUIPlugin','ToggleSheetsShapeFlipCommand','ShapeFlowChartOrIcon','ShapeCurvedConnector3Arrow2Icon','_executeConnectedRouteResizeCommand','endConnectionDetection','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','shape.type.flow-chart-manual-operation','_closeShapeEditPanel','ShapeLeftCircularArrowIcon','switchMap','sheet.operation.close-sheet-shape-format-panel','sheetViewStartRow','_updateSrcRectByTransform','StealthArrow','getMenuHiddenObservable','getBasicShapeRotateBound','SHAPE_TEXT','_activeAdjustPointList','shape.type.flow-chart-manual-input','viewportScrollY','_injector','replace','_editingParams$','classType','shape.type.pie-wedge','ShapeActionButtonBeginningIcon','isNaN','Solid','ShapeAccentCallout1Icon','endArrow','getImage','shape.type.star4','invert','ShapePlaqueIcon','ShapeStar5Icon','shape.type.cloud-callout','ImageSourceTypeEnum','Dropdown','525270FJAGFI','shape.type.round2-diag-rect','setHighlighted','getRealBound','ShapeUturnArrowIcon','_transformCalculateSrcRect','_addShapeAdjustControl','_initSelection','ActionButtonReturn','_registerFocusChangeHandler','shape.type.irregular-seal1','ShapePositionWrapper','getCurrentScrollState','RibbonPosition','_initSheetChange','radial','ShapeMathDivideIcon','IUndoRedoService','DependentOn','ShapeWaveIcon','updateDocumentRenderConfig','shape.type.flow-chart-magnetic-disk','shape.type.round2-same-rect','getColorFromTheme','subscribeEvent','_getImagePrstGeom','ShapeChartStarIcon','Wave','_createCopyInfoByRange','executeCommand','getDrawingSearch','ShapeSnip2SameRectIcon','_registerDrawingFocusChangeHandler','DEFAULT_PASTE','shape.type.plus','sqrt','ShapeHexagonIcon','parseFloat','ShapeNoSmokingIcon','normal','unsubscribe','onScrollAfter$','ActionButtonSound','ShapeIrregularSeal2Icon','_initPermission','sheets-shape.line.dashType.longDashDotDot','_baseShapeHeight','_urlImageService','ShapeStar6Icon','getZoomRatio','relation','flowchart','COMMAND','shape.type.ribbon2','UpDownArrowCallout','sheets-shape.toggleTextVertical','clipByShape','REMOVE','_findShapeAtPoint','type','shape.type.triangle','domY','sheets-shape.fill.solidFill','paragraphStyle','viewportScrollX','ShapeCornerIcon','shape.type.flow-chart-internal-storage','diamond','height','shape.type.left-right-arrow-callout','Star8','symbol','ShapeSmileyFaceIcon','LeftRightUpArrow','sheets-shape.rotateRight90','_sheetPermissionCheckController','getShapeTextData','getShapeType','UniverInstanceType','shape.type.flow-chart-terminator','shape.type.rt-triangle','ShapeCloudCalloutIcon','shape.type.action-button-beginning','useMemo','sheets-shape.fill.picture.tileAsTexture','editorHeight','shape.type.left-right-up-arrow','1062kRbwKu','shape.type.curved-connector3-arrow1','ShapeUpDownArrowIcon','_getImageDrawingInfo','changeStart$','_univerInstanceService','ShapeAccentBorderCallout1Icon','rectangle','ActionButtonForwardNext','ShapeRectIcon','getAdjustValueByName','HorizontallyIcon','hasOwnProperty','_generateCutPasteMutations','shape.type.math-multiply','value','translateWithPrecision','length','ShapeMathNotEqualIcon','ShapeFlowChartPreparationIcon','ShapeFlowChartCollateIcon','FlowchartTerminator','getConnectionInfo','_getConnectionSiteAngle','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','getAncestorScale','_clearConnectionSites','clip-adj-','_sheetInterceptorService','GROUP','FlowchartMagneticTape','Radial','_addShapeConnectorHandlerObjects','iterator','_registerGroupFeaturePasteHook','ShapeSwooshArrowIcon','sheets-shape.fill.color','IrregularSeal2','FlowchartMagneticDrum','cxnPointStrokeWidth','isLineShape','Flat','lineJoinType','BlockArc','gradientStops','div','getTransformerByCreate','decorate','transformForAngle','StraightConnector1','shape.type.corner-tabs','ShapeTrapezoidIcon','ShapeVerticalScrollIcon','_baseDrawingRect','Gear9','sheets-shape.fill.transparency','Callout3','isConnectorShape','OPERATION','min','Star16','ShapeHalfFrameIcon','adjustValues','_cxtHandlerPointerUp','ShapeCurvedConnector3Icon','Miter','drawingId','getEndConnectInfo','ShapeHeartIcon','setPrstGeom','params','ShapeStar24Icon','SheetsShapeUIController','draw','_clipService','localeService','shape.type.parallelogram','stroke','setEditing','getCanvasElement','PREDEFINED_HOOK_NAME','touchDependencies','refreshTransform','21IdIPkU','Radio','createInternalEditorID','MathDivide','_getShapeAdjustPointListById','EMPTY','ENTER','DocSkeletonManagerService','Round2DiagRect','ShapeLeftArrowCalloutIcon','ShapeEditor','getOwnPropertyNames','ShapeCurvedUpArrowIcon','shape-adjust-point-','capType','shape.type.accent-callout3','undo','open','shape.type.vertical-scroll','remove$','shape.type.bevel','top','Cloud','_isShouldShowDrawingShapeAdjust','ShapeTypeEnum','setShapeProps','onload','focusDrawing','_initCopyPaste','FlowchartExtract','_initEditingParams','useRef','shape.type.up-down-arrow-callout','align.middle','_getConnectPointInfo','restore','sheet.shape.picker.component','SheetSkeletonManagerService','dataStream','sheets-shape.line.dashType.dashDot','ang','HorizontalAlign','shape.type.flow-chart-multidocument','worldRect','_adjHandlerPointerMove','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','ShapeActionButtonHomeIcon','shape.type.line','InsertSheetsShapeMutation','ShapeEllipseRibbon2Icon','shape.type.flow-chart-decision','ShapeCubeIcon','RightArrow','ShapeFlowChartExtractIcon','save','updateConnectionDetection','ConnectorCoordinateTransform','routeConnectorLineShape','Star4','_isConnecting','ShapeLeftBracketIcon','ShapeMoonIcon','map','ShapeFlowChartProcessIcon','domX','ShapeCircularArrowIcon','isFinite','ShapeWedgeRoundRectCalloutIcon','ShapeStar16Icon','ShapeLeftRightArrowIcon','has','viewBound','ShapeSquareTabsIcon','_attachConnectorObjectEvent','6090625NHStMR','clsx','ShapeFlowChartSummingJunctionIcon','sheets-shape.fill.picture.align.b','ShapeTriangleIcon','univer-w-20','_executeResizeCommand','SheetsDrawingGroupCopyPasteController','Pie','shape.type.border-callout1','shape.type.curved-right-arrow','_loadShapePictureFill','click','slice','_currentUniverService','getConnectorLinePoints','shape.type.curved-down-arrow','permission.dialog.editErr','ShapeActionButtonInformationIcon','ShapeWedgeEllipseCalloutIcon','ShapePieIcon','ShapeRightBracketIcon','getImageSourceCache','sheets-shape.toggleFlipV','shape.type.left-bracket','setPrstGeomAdjValues','shape.type.round1-rect','VERTICAL_ROTATE_ANGLE','_addControl','DiagStripe','shape.type.half-frame','shape.type.left-brace','ShapeBevelIcon','shape.type.cube','FlowchartManualInput','ShapeDownArrowIcon','ShapeArrowTypeEnum','START','sheetTransform','group','ShapeFlowChartManualInputIcon','enumerable','ShapeLightningBoltIcon','shape.type.action-button-blank','univer-text-xl\x20univer-text-gray-500','getObject','basicShape','_connectorObjects','computeConnectorRouteLayout','isHighlighted','sheets-shape.line.width','colStartX','WRAP','shape.type.uturn-arrow','_adjName','shape.type.flow-chart-magnetic-drum','_handleConnectedEndpointMove','_transform','ShapeDownArrowCalloutIcon','setShouldShowAdjust','ChartStar','GradientColorPicker','sheets-shape.fill.picture.align.ctr','_registerDrawingMoveHandler','color','ShapeEllipseIcon','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','setOnSavingEditorData','_sidebarDisposable','ShapeChartXIcon','IContextService','cxnPointStroke','ShapePlaqueTabsIcon','with','sketchType','shape.type.action-button-sound','univer-mb-2','sheets-shape.line.arrowType.stealthArrow','sheets-shape.shapeStyle','ShapeLeftBraceIcon','connector-handler-','dispose','univer-text-sm','ShapeRenderModeEnum','getStartConnectInfo','centerAngle','Callout2','OpenArrow','shape.type.dodecagon','insertGroupObject','getConnectionSiteList','CurvedUpArrow','MEDIA','IURLImageService','shape.type.rect-textbox-vertical','getObjectIncludeInGroup','adjHandleSize','floor','width','ShapeFillEnum','Snip2SameRect','_registerImageShapeClipDelegate','HorizontalScroll','shape.type.border-callout2','find','ActionButtonMovie','_activeShapeAdjustPointList','collapsed','_unitId','sheets-shape.deleteShape','_props','MathMultiply','getDrawingOrder','3762300QBEHzH','univer-rounded-lg\x20univer-p-3','FlowchartInternalStorage','UpdateLineShapeResizeCommand','sheets-shape.fill.picture.insert','setCursor','univer-flex\x20univer-items-center\x20univer-gap-3','DownArrowCallout','LongDashDot','getBatchUpdateOp','getOwnPropertyDescriptor','FlowchartOffPageConnector','CurvedLeftArrow','ShapeFlowChartTerminatorIcon','useEditor','DRAWING_OBJECT_LAYER_INDEX','startY','371300ERURsL','ShapeDocAlignCommand','_draw','isArray','applyPoint','getAdjustInfoByName','register','registerFeatureMenuOffset','ShapeCloudIcon','SquareDot','_sheetDrawingShapeRenderController','parse','Arrow','NoFill','shape.type.notched-right-arrow','Fragment','_imageShapeClipController','RoundRect','#ffffff','RoundDot','ShapeRound1RectIcon','ActionButtonBackPrevious','start','shape.type.star12','sheet.command.set-shape-text-font-size-decrease','DownArrow','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','setDocumentData','Dodecagon','shape.type.can','_activeShapeId','ICommandService','Donut','shape.type.flow-chart-preparation','shape.type.left-arrow','UNIVER_DOC','unitId','8dmlhLI','startOffset','shape.type.gear6','_context','_shapeTextEditingService','sheets-shape.line.endArrowType','EllipseRibbon','ShapeMathMinusIcon','_activeAdjustInfo','getDrawingByParam','getMatrix','lineType','angular','FOCUSING_PANEL_EDITOR','ShapeUpArrowCalloutIcon','#bcbcbc','ShapeFlowChartPunchedTapeIcon','ShapeFlowChartSortIcon','updateContext','size','sheetViewStartColumn','DrawingTypeEnum','abs','_getSceneAndTransformerByDrawingSearch','stringify','_baseTop','transform','offsetY','align.right','URL','getSheetBySheetId','ShapeUpArrowIcon','AccentCallout2','paragraphs','_calculateFreeEndpointAngle','DocumentSkeleton','ShapeCornerTabsIcon','offset','shape.type.straight-connector1','_loadAndSetImage','FlowchartDisplay','reduce','subscribeContextValue$','FlowchartProcess','imageRotateWithShape','BracePair','gdRefY','files','connection-site-','Octagon','clip','target','shapeKey','SELECTOR','shape.type.down-arrow','worldPoints','IEditorService','useObservable','UPDATE','getSelectionRanges','ShapeStar32Icon','CURSOR_TYPE','ShapeDonutIcon','lineStrokeType','cos','Linear','cxnPointRadius','ShapeBentArrowIcon'];_0x50ce=function(){return _0x1731bc;};return _0x50ce();}ShapeEditor[_0x5a3cc9(0x27e)]=_0x5a3cc9(0x3da);const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x2f8a97,_0x270669,_0x33483b,_0x562ea0){const _0x515fc0=_0x5a3cc9,{scaleX:_0x1f865e,scaleY:_0x10b00f}=_0x33483b[_0x515fc0(0x396)](),{startColumn:_0x1322b0,startRow:_0x217dc5,xSplit:_0x50d0a1,ySplit:_0x56348b}=_0x562ea0[_0x515fc0(0x5e9)]['getFreeze'](),_0x54ced3=_0x33483b[_0x515fc0(0x247)](_univerjs_engine_render[_0x515fc0(0x18c)][_0x515fc0(0x524)]),_0x5d9786=_0x33483b['getViewport'](_univerjs_engine_render[_0x515fc0(0x18c)]['VIEW_MAIN_LEFT_TOP']),_0x232ab6=_0x33483b[_0x515fc0(0x247)](_univerjs_engine_render[_0x515fc0(0x18c)][_0x515fc0(0x5c1)]),_0x45b591=_0x33483b[_0x515fc0(0x247)](_univerjs_engine_render[_0x515fc0(0x18c)][_0x515fc0(0x136)]),{rowHeaderWidth:_0xc39910,columnHeaderHeight:_0x1bb781}=_0x562ea0,_0x184813=_0x562ea0[_0x515fc0(0x2a6)](_0x217dc5)+_0x1bb781,_0x3c5690=_0x562ea0[_0x515fc0(0x44d)](_0x1322b0)+_0xc39910,_0x39fd19=_0x562ea0[_0x515fc0(0x2a6)](_0x217dc5-_0x56348b)+_0x1bb781,_0xc71811=_0x562ea0[_0x515fc0(0x44d)](_0x1322b0-_0x50d0a1)+_0xc39910,_0x5ec0a2=[],_0x4c3ae8=(_0x24ef03,_0x51ea9a,_0xd6bb18)=>{if(!_0x24ef03)return null;const {viewportScrollX:_0x53d81b,viewportScrollY:_0x1a5865}=_0x24ef03;let _0x129196,_0x4629b6;if(_0x51ea9a)_0x129196=(_0x2f8a97-(_0xc71811-_0xc39910))*_0x1f865e;else _0x129196=(_0x2f8a97-_0x53d81b)*_0x1f865e;if(_0xd6bb18)_0x4629b6=(_0x270669-(_0x39fd19-_0x1bb781))*_0x10b00f;else _0x4629b6=(_0x270669-_0x1a5865)*_0x10b00f;return{'domX':_0x129196,'domY':_0x4629b6};},_0x15f842=_0x2f8a97<_0x3c5690&&_0x50d0a1>0x0,_0x40f7a5=_0x270669<_0x184813&&_0x56348b>0x0,_0x52637e=_0x2f8a97>=_0x3c5690||_0x50d0a1===0x0,_0x1f6343=_0x270669>=_0x184813||_0x56348b===0x0;if(_0x15f842&&_0x40f7a5&&_0x5d9786){const _0x4299fe=_0x4c3ae8(_0x5d9786,!![],!![]);if(_0x4299fe)_0x5ec0a2['push'](_0x4299fe);}if(_0x40f7a5&&_0x52637e&&_0x232ab6){const _0x327112=_0x4c3ae8(_0x232ab6,![],!![]);if(_0x327112)_0x5ec0a2[_0x515fc0(0x1d9)](_0x327112);}if(_0x15f842&&_0x1f6343&&_0x45b591){const _0x17f901=_0x4c3ae8(_0x45b591,!![],![]);if(_0x17f901)_0x5ec0a2[_0x515fc0(0x1d9)](_0x17f901);}if(_0x52637e&&_0x1f6343&&_0x54ced3){const _0x515ba0=_0x4c3ae8(_0x54ced3,![],![]);if(_0x515ba0)_0x5ec0a2[_0x515fc0(0x1d9)](_0x515ba0);}if(_0x5ec0a2[_0x515fc0(0x38e)]===0x0){var _0x2d5f17,_0x2ec96f;return{'domX':(_0x2f8a97-((_0x2d5f17=_0x54ced3===null||_0x54ced3===void 0x0?void 0x0:_0x54ced3['viewportScrollX'])!==null&&_0x2d5f17!==void 0x0?_0x2d5f17:0x0))*_0x1f865e,'domY':(_0x270669-((_0x2ec96f=_0x54ced3===null||_0x54ced3===void 0x0?void 0x0:_0x54ced3[_0x515fc0(0x313)])!==null&&_0x2ec96f!==void 0x0?_0x2ec96f:0x0))*_0x10b00f};}let _0x43db27=_0x5ec0a2[0x0][_0x515fc0(0x410)],_0x22d420=_0x5ec0a2[0x0]['domY'];for(const _0x4160e8 of _0x5ec0a2){if(_0x4160e8['domX']>_0x43db27)_0x43db27=_0x4160e8[_0x515fc0(0x410)];if(_0x4160e8[_0x515fc0(0x363)]>_0x22d420)_0x22d420=_0x4160e8[_0x515fc0(0x363)];}return{'domX':_0x43db27,'domY':_0x22d420};}function calcShapePosition(_0xfb01b4,_0x364556,_0x2a169a,_0x4369f8,_0x53f5e2,_0xb8ee21,_0x4e83b1){const _0x2bb4ab=_0x5a3cc9,{scaleX:_0x2eb5a6,scaleY:_0x2a506}=_0xb8ee21[_0x2bb4ab(0x396)](),{domX:_0x490b55,domY:_0x24afb7}=calcBestDOMPositionForFreezeZones(_0xfb01b4,_0x364556,_0xb8ee21,_0x4e83b1);return{'left':_0x490b55,'top':_0x24afb7,'width':_0x2a169a*_0x2eb5a6,'height':_0x4369f8*_0x2a506,'angle':_0x53f5e2,'scaleX':_0x2eb5a6,'scaleY':_0x2a506};}function useShapePosition(_0x5cc73e){const _0x31f408=_0x5a3cc9,{editingParams:_0x1e0b8d,scene:_0x4f0b19,skeleton:_0x3a00bd,getShapeTransform:_0x59e041}=_0x5cc73e,[_0x28b899,_0x178a88]=(0x0,react[_0x31f408(0x5e2)])(DEFAULT_HIDDEN_POSITION),_0x1cf1f3=(0x0,react[_0x31f408(0x3ef)])(_0x28b899);_0x1cf1f3['current']=_0x28b899;const _0x5655c7=(0x0,react[_0x31f408(0x5a5)])(()=>{const _0x3155dd=_0x31f408;if(!_0x1e0b8d||!_0x4f0b19||!_0x3a00bd){if(_0x1cf1f3[_0x3155dd(0x5e0)]!==DEFAULT_HIDDEN_POSITION)_0x178a88(DEFAULT_HIDDEN_POSITION);return;}const _0x276e80=_0x59e041();if(!_0x276e80){if(_0x1cf1f3[_0x3155dd(0x5e0)]!==DEFAULT_HIDDEN_POSITION)_0x178a88(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x4320d6,top:_0x438230,width:_0x5f252a,height:_0x233f4e,angle:_0x4f3ae4}=_0x276e80;if(!_0x1e0b8d[_0x3155dd(0x675)]){const {scaleX:_0x407ece,scaleY:_0x567a3e}=_0x4f0b19['getAncestorScale']();_0x178a88({'left':-0x270f,'top':-0x270f,'width':_0x5f252a*_0x407ece,'height':_0x233f4e*_0x567a3e,'angle':0x0,'scaleX':_0x407ece,'scaleY':_0x567a3e});return;}_0x178a88(calcShapePosition(_0x4320d6,_0x438230,_0x5f252a,_0x233f4e,_0x4f3ae4,_0x4f0b19,_0x3a00bd));},[_0x1e0b8d,_0x4f0b19,_0x3a00bd,_0x59e041]);return(0x0,react['useEffect'])(()=>{_0x5655c7();},[_0x1e0b8d,_0x5655c7]),{'position':_0x28b899,'updatePosition':_0x5655c7};}const ShapePositionWrapper=(0x0,react['memo'])(_0x36f14f=>{const _0x4fd58a=_0x5a3cc9,{children:_0x223a36,onPositionUpdate:_0x4b74ea}=_0x36f14f,_0x25fce2=(0x0,react[_0x4fd58a(0x3ef)])(null),_0x35f7ed=(0x0,_univerjs_ui[_0x4fd58a(0x297)])(ShapeTextEditingService),_0x5ccdb0=(0x0,_univerjs_ui['useDependency'])(_univerjs_engine_render[_0x4fd58a(0x5af)]),_0x23fa4d=(0x0,_univerjs_ui[_0x4fd58a(0x4fa)])(_0x35f7ed['editingParams$']),_0x22655b=(0x0,react['useMemo'])(()=>{const _0x274493=_0x4fd58a;if(!_0x23fa4d)return null;return _0x5ccdb0[_0x274493(0x1bb)](_0x23fa4d[_0x274493(0x4c0)]);},[_0x23fa4d,_0x5ccdb0]),_0x17aea3=(0x0,react[_0x4fd58a(0x379)])(()=>{const _0x3374dd=_0x4fd58a;var _0x579740;return(_0x579740=_0x22655b===null||_0x22655b===void 0x0?void 0x0:_0x22655b[_0x3374dd(0x1ea)])!==null&&_0x579740!==void 0x0?_0x579740:null;},[_0x22655b]),{position:_0x156a53,updatePosition:_0xf257be}=useShapePosition({'editingParams':_0x23fa4d,'scene':_0x17aea3,'skeleton':(0x0,react[_0x4fd58a(0x379)])(()=>{const _0x2d931b=_0x4fd58a;var _0x516f96,_0x58238b;if(!_0x23fa4d||!_0x22655b)return null;return(_0x516f96=(_0x58238b=_0x22655b[_0x2d931b(0x463)](_univerjs_sheets_ui['SheetSkeletonManagerService'])['getSkeletonParam'](_0x23fa4d[_0x2d931b(0x2c2)]))===null||_0x58238b===void 0x0?void 0x0:_0x58238b[_0x2d931b(0x228)])!==null&&_0x516f96!==void 0x0?_0x516f96:null;},[_0x23fa4d,_0x22655b]),'getShapeTransform':(0x0,react[_0x4fd58a(0x5a5)])(()=>{const _0x30829d=_0x4fd58a;if(!_0x23fa4d||!_0x17aea3)return null;const _0x5a34ae=_0x23fa4d[_0x30829d(0x4f5)],_0x11ff8a=_0x17aea3[_0x30829d(0x447)](_0x5a34ae);if(_0x11ff8a instanceof DrawingShape)return{'left':_0x11ff8a['left'],'top':_0x11ff8a[_0x30829d(0x3e5)],'width':_0x11ff8a[_0x30829d(0x47c)],'height':_0x11ff8a['height'],'angle':_0x11ff8a[_0x30829d(0x54c)]};return null;},[_0x23fa4d,_0x17aea3])}),_0x24aefe=(0x0,react[_0x4fd58a(0x5a5)])(()=>{const _0x5523d7=_0x4fd58a,_0x1b939b=_0x25fce2['current'];if(!_0x1b939b)return;_0x1b939b[_0x5523d7(0x55b)][_0x5523d7(0x19d)]=_0x156a53[_0x5523d7(0x19d)]+'px',_0x1b939b[_0x5523d7(0x55b)]['top']=_0x156a53[_0x5523d7(0x3e5)]+'px',_0x1b939b['style']['width']=_0x156a53[_0x5523d7(0x47c)]+'px',_0x1b939b[_0x5523d7(0x55b)][_0x5523d7(0x36a)]=_0x156a53['height']+'px';},[_0x156a53]);return(0x0,react[_0x4fd58a(0x1ce)])(()=>{const _0x64bf08=_0x4fd58a;_0x24aefe(),_0x4b74ea===null||_0x4b74ea===void 0x0||_0x4b74ea({'width':_0x156a53['width'],'height':_0x156a53[_0x64bf08(0x36a)],'scaleX':_0x156a53[_0x64bf08(0x151)],'scaleY':_0x156a53[_0x64bf08(0x2ec)]});},[_0x156a53,_0x24aefe,_0x4b74ea]),(0x0,react[_0x4fd58a(0x1ce)])(()=>{const _0x319859=_0x4fd58a;if(!_0x17aea3)return;const _0x2162fd=_0x17aea3[_0x319859(0x247)](_univerjs_engine_render[_0x319859(0x18c)][_0x319859(0x524)]);if(!_0x2162fd)return;const _0x9faf24=_0x2162fd[_0x319859(0x34f)][_0x319859(0x33e)](()=>{_0xf257be();});return()=>{_0x9faf24['unsubscribe']();};},[_0x17aea3,_0xf257be]),(0x0,react[_0x4fd58a(0x1ce)])(()=>{const _0x4008bb=_0x4fd58a;if(!_0x23fa4d||!_0x17aea3)return;const _0x2ee725=_0x23fa4d[_0x4008bb(0x4f5)],_0x110fbf=_0x17aea3[_0x4008bb(0x447)](_0x2ee725);if(_0x110fbf instanceof DrawingShape){const _0x1943ca=_0x110fbf[_0x4008bb(0x620)][_0x4008bb(0x33e)](()=>{_0xf257be();});return()=>{_0x1943ca['unsubscribe']();};}},[_0x23fa4d,_0x17aea3,_0xf257be]),(0x0,react_jsx_runtime[_0x4fd58a(0x507)])(_0x4fd58a(0x3aa),{'ref':_0x25fce2,'data-u-comp':_0x4fd58a(0x252),'className':'univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','style':(0x0,react[_0x4fd58a(0x379)])(()=>({'left':_0x156a53[_0x4fd58a(0x19d)],'top':_0x156a53['top'],'width':_0x156a53[_0x4fd58a(0x47c)],'height':_0x156a53[_0x4fd58a(0x36a)],'pointerEvents':(_0x23fa4d===null||_0x23fa4d===void 0x0?void 0x0:_0x23fa4d[_0x4fd58a(0x675)])?_0x4fd58a(0x5a3):_0x4fd58a(0x624)}),[_0x156a53,_0x23fa4d===null||_0x23fa4d===void 0x0?void 0x0:_0x23fa4d['visible']]),'children':_0x223a36});});ShapePositionWrapper[_0x5a3cc9(0x27e)]=_0x5a3cc9(0x331);const ShapeTextEditorContainer=(0x0,react['memo'])(()=>{const _0x11e3d0=_0x5a3cc9,_0x3a4649=(0x0,_univerjs_ui[_0x11e3d0(0x4fa)])((0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService)[_0x11e3d0(0x1b4)]),[_0x314493,_0x30924d]=(0x0,react[_0x11e3d0(0x5e2)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x4d1968=(0x0,react[_0x11e3d0(0x5a5)])(_0x1838ff=>{const _0x558b9e=_0x11e3d0;_0x30924d({'width':_0x1838ff['width'],'height':_0x1838ff[_0x558b9e(0x36a)],'scaleX':_0x1838ff[_0x558b9e(0x151)],'scaleY':_0x1838ff[_0x558b9e(0x2ec)]});},[]);if(!(_0x3a4649===null||_0x3a4649===void 0x0?void 0x0:_0x3a4649[_0x11e3d0(0x675)]))return null;return(0x0,react_jsx_runtime[_0x11e3d0(0x507)])(ShapePositionWrapper,{'onPositionUpdate':_0x4d1968,'children':(0x0,react_jsx_runtime['jsx'])(ShapeEditor,{'containerWidth':_0x314493['width'],'containerHeight':_0x314493['height'],'scaleX':_0x314493['scaleX'],'scaleY':_0x314493[_0x11e3d0(0x2ec)]})});});ShapeTextEditorContainer[_0x5a3cc9(0x27e)]=_0x5a3cc9(0x190);let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0x5a3cc9(0x21e)]{constructor(_0x44ac12=defaultPluginConfig,_0x360c10,_0x318062,_0x80834d,_0xc34121){const _0x18f8ee=_0x5a3cc9;super(),this['_config']=_0x44ac12,this['_injector']=_0x360c10,this[_0x18f8ee(0x187)]=_0x318062,this[_0x18f8ee(0x60a)]=_0x80834d,this[_0x18f8ee(0x5ac)]=_0xc34121;const {..._0x5dad77}=(0x0,_univerjs_core[_0x18f8ee(0x255)])({},defaultPluginConfig,this[_0x18f8ee(0x519)]);this[_0x18f8ee(0x60a)][_0x18f8ee(0x243)](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x5dad77),this[_0x18f8ee(0x515)]();}[_0x5a3cc9(0x218)](){const _0x3e10c8=_0x5a3cc9;(0x0,_univerjs_core[_0x3e10c8(0x3ce)])(this[_0x3e10c8(0x314)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x5a3cc9(0x1fe)](){const _0x1643c7=_0x5a3cc9;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x1643c7(0x67e)](_0x527a08=>this['_injector'][_0x1643c7(0x1b3)](_0x527a08)),(0x0,_univerjs_core[_0x1643c7(0x3ce)])(this[_0x1643c7(0x314)],[[SheetShapeClipboardController]]),this['_renderManagerService'][_0x1643c7(0x22b)](_univerjs_core[_0x1643c7(0x374)][_0x1643c7(0x147)],[SheetBasicShapeConnectionPointController]),this[_0x1643c7(0x5ac)][_0x1643c7(0x22b)](_univerjs_core['UniverInstanceType'][_0x1643c7(0x147)],[SheetShapeAdjustController]),this[_0x1643c7(0x5ac)][_0x1643c7(0x22b)](_univerjs_core[_0x1643c7(0x374)][_0x1643c7(0x147)],[ImageClipAdjustController]),this[_0x1643c7(0x5ac)][_0x1643c7(0x22b)](_univerjs_core[_0x1643c7(0x374)][_0x1643c7(0x147)],[SheetShapeConnectorController]),this[_0x1643c7(0x5ac)][_0x1643c7(0x22b)](_univerjs_core[_0x1643c7(0x374)]['UNIVER_SHEET'],[ShapeTextEditingRenderController]);}[_0x5a3cc9(0x555)](){const _0x4d3233=_0x5a3cc9,_0x23cffa=this[_0x4d3233(0x314)];_0x23cffa[_0x4d3233(0x62d)](_univerjs_ui[_0x4d3233(0x2d7)])[_0x4d3233(0x4a2)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x4d3233(0x67e)](_0x31aaca=>_0x23cffa[_0x4d3233(0x1b3)](_0x31aaca)),(0x0,_univerjs_core['touchDependencies'])(this[_0x4d3233(0x314)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}['_initCommands'](){const _0xcec414=_0x5a3cc9;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0xcec414(0x67e)](_0x33408a=>this['disposeWithMe'](this[_0xcec414(0x187)][_0xcec414(0x545)](_0x33408a)));}};_defineProperty(UniverSheetsShapeUIPlugin,_0x5a3cc9(0x361),_univerjs_core['UniverInstanceType'][_0x5a3cc9(0x147)]),_defineProperty(UniverSheetsShapeUIPlugin,'pluginName',_0x5a3cc9(0x294)),_defineProperty(UniverSheetsShapeUIPlugin,'packageName',name),_defineProperty(UniverSheetsShapeUIPlugin,_0x5a3cc9(0x1d8),version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x5a3cc9(0x338)])(_univerjs_sheets_drawing_ui[_0x5a3cc9(0x5f6)],_univerjs_pro_sheets_shape[_0x5a3cc9(0x588)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x5a3cc9(0x5ad)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x5a3cc9(0x4bb)]),__decorateParam(0x3,_univerjs_core[_0x5a3cc9(0x635)]),__decorateParam(0x4,_univerjs_engine_render[_0x5a3cc9(0x5af)])],UniverSheetsShapeUIPlugin),exports['SetShapeTextFontSizeCommand']=SetShapeTextFontSizeCommand,exports[_0x5a3cc9(0x162)]=SetShapeTextFontSizeDecreaseCommand,exports['SetShapeTextFontSizeIncreaseCommand']=SetShapeTextFontSizeIncreaseCommand,exports[_0x5a3cc9(0x291)]=SetShapeTextHorizontalAlignCommand,exports[_0x5a3cc9(0x2a0)]=SetShapeTextVerticalAlignCommand,exports[_0x5a3cc9(0x49d)]=ShapeDocAlignCommand,Object['defineProperty'](exports,_0x5a3cc9(0x3c5),{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object[_0x5a3cc9(0x56c)](exports,_0x5a3cc9(0x2ff),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x5a3cc9(0x5ff)]=UpdateShapeDataCommand;
|