@univerjs-pro/sheets-shape-ui 0.22.0 → 0.22.1
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 _0x3e9a34=_0x47fe;(function(_0x450fd6,_0x464c71){const _0x284e9e=_0x47fe,_0x3c8e28=_0x450fd6();while(!![]){try{const _0x3553e8=-parseInt(_0x284e9e(0x382))/0x1+-parseInt(_0x284e9e(0x337))/0x2*(parseInt(_0x284e9e(0x2d7))/0x3)+parseInt(_0x284e9e(0x2b9))/0x4*(-parseInt(_0x284e9e(0x527))/0x5)+-parseInt(_0x284e9e(0x3ec))/0x6*(parseInt(_0x284e9e(0x177))/0x7)+-parseInt(_0x284e9e(0x3bc))/0x8+-parseInt(_0x284e9e(0x253))/0x9*(-parseInt(_0x284e9e(0x523))/0xa)+parseInt(_0x284e9e(0x137))/0xb;if(_0x3553e8===_0x464c71)break;else _0x3c8e28['push'](_0x3c8e28['shift']());}catch(_0x535ed8){_0x3c8e28['push'](_0x3c8e28['shift']());}}}(_0x501b,0x29676),Object[_0x3e9a34(0x63c)](exports,Symbol[_0x3e9a34(0x2d2)],{'value':_0x3e9a34(0x3a5)}));var __create=Object[_0x3e9a34(0x1c2)],__defProp=Object[_0x3e9a34(0x63c)],__getOwnPropDesc=Object[_0x3e9a34(0x34b)],__getOwnPropNames=Object['getOwnPropertyNames'],__getProtoOf=Object[_0x3e9a34(0x350)],__hasOwnProp=Object['prototype'][_0x3e9a34(0x28b)],__copyProps=(_0xd8a17e,_0x23f9b8,_0x438d55,_0x19e471)=>{const _0x4b01d5=_0x3e9a34;if(_0x23f9b8&&typeof _0x23f9b8==='object'||typeof _0x23f9b8===_0x4b01d5(0x236))for(var _0x17dd5c=__getOwnPropNames(_0x23f9b8),_0x2f5d5c=0x0,_0x3b6c3d=_0x17dd5c[_0x4b01d5(0x440)],_0x2c741a;_0x2f5d5c<_0x3b6c3d;_0x2f5d5c++){_0x2c741a=_0x17dd5c[_0x2f5d5c],!__hasOwnProp[_0x4b01d5(0x614)](_0xd8a17e,_0x2c741a)&&_0x2c741a!==_0x438d55&&__defProp(_0xd8a17e,_0x2c741a,{'get':(_0x1302a0=>_0x23f9b8[_0x1302a0])[_0x4b01d5(0x3b8)](null,_0x2c741a),'enumerable':!(_0x19e471=__getOwnPropDesc(_0x23f9b8,_0x2c741a))||_0x19e471[_0x4b01d5(0x4eb)]});}return _0xd8a17e;},__toESM=(_0x64e394,_0x40886e,_0x14b6d4)=>(_0x14b6d4=_0x64e394!=null?__create(__getProtoOf(_0x64e394)):{},__copyProps(_0x40886e||!_0x64e394||!_0x64e394[_0x3e9a34(0x254)]?__defProp(_0x14b6d4,_0x3e9a34(0x35a),{'value':_0x64e394,'enumerable':!![]}):_0x14b6d4,_0x64e394));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(_0x4dfcd7){'@babel/helpers - typeof';const _0x4c8d82=_0x3e9a34;return _typeof=_0x4c8d82(0x236)==typeof Symbol&&_0x4c8d82(0x637)==typeof Symbol[_0x4c8d82(0x63e)]?function(_0x2e1bcd){return typeof _0x2e1bcd;}:function(_0x81498c){const _0x22cef5=_0x4c8d82;return _0x81498c&&_0x22cef5(0x236)==typeof Symbol&&_0x81498c[_0x22cef5(0x3a4)]===Symbol&&_0x81498c!==Symbol[_0x22cef5(0x1f0)]?_0x22cef5(0x637):typeof _0x81498c;},_typeof(_0x4dfcd7);}function toPrimitive(_0x35f903,_0x5c2065){const _0x4a747d=_0x3e9a34;if(_0x4a747d(0x370)!=_typeof(_0x35f903)||!_0x35f903)return _0x35f903;var _0x2f2d22=_0x35f903[Symbol[_0x4a747d(0x3fe)]];if(void 0x0!==_0x2f2d22){var _0x1c8e2=_0x2f2d22['call'](_0x35f903,_0x5c2065||_0x4a747d(0x35a));if(_0x4a747d(0x370)!=_typeof(_0x1c8e2))return _0x1c8e2;throw new TypeError(_0x4a747d(0x5d7));}return(_0x4a747d(0x1f8)===_0x5c2065?String:Number)(_0x35f903);}function toPropertyKey(_0x3856a3){const _0x57bbd9=_0x3e9a34;var _0x49cfae=toPrimitive(_0x3856a3,_0x57bbd9(0x1f8));return'symbol'==_typeof(_0x49cfae)?_0x49cfae:_0x49cfae+'';}function _defineProperty(_0x48ddba,_0x347980,_0x488ac4){return(_0x347980=toPropertyKey(_0x347980))in _0x48ddba?Object['defineProperty'](_0x48ddba,_0x347980,{'value':_0x488ac4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48ddba[_0x347980]=_0x488ac4,_0x48ddba;}var ShapeTextEditingService=class extends _univerjs_core['Disposable']{constructor(..._0x1da09c){const _0x122609=_0x3e9a34;super(..._0x1da09c),_defineProperty(this,'_editingParams$',new rxjs[(_0x122609(0x39a))](null)),_defineProperty(this,_0x122609(0x186),this[_0x122609(0x4be)][_0x122609(0x4e1)]()),_defineProperty(this,_0x122609(0x510),new rxjs['BehaviorSubject'](![])),_defineProperty(this,'onSavingEditorData$',this[_0x122609(0x510)][_0x122609(0x4e1)]());}[_0x3e9a34(0x199)](){const _0x4cd997=_0x3e9a34;this[_0x4cd997(0x4be)][_0x4cd997(0x5c7)](null),this['_editingParams$'][_0x4cd997(0x332)](),this['_onSavingEditorData$'][_0x4cd997(0x5c7)](![]),this[_0x4cd997(0x510)][_0x4cd997(0x332)](),super[_0x4cd997(0x199)]();}['setEditing'](_0x4a95b9){const _0x36750f=_0x3e9a34;this['_editingParams$'][_0x36750f(0x5c7)](_0x4a95b9);if(_0x4a95b9===null||_0x4a95b9===void 0x0)this[_0x36750f(0x510)][_0x36750f(0x5c7)](![]);}[_0x3e9a34(0x368)](_0x172ff7){const _0x4bcefa=_0x3e9a34;this[_0x4bcefa(0x510)]['next'](_0x172ff7);}['getEditing'](){const _0x5b0546=_0x3e9a34;return this[_0x5b0546(0x4be)][_0x5b0546(0x42d)]();}};function getShapeDataDiff(_0x4ea21a,_0x48eeb5){const _0x57a7bf=_0x3e9a34,_0x455fe1={};for(const _0x5a3ab5 of Object['keys'](_0x48eeb5)){const _0xad2658=_0x48eeb5[_0x5a3ab5],_0x39d6c3=_0x4ea21a[_0x5a3ab5];if(_0xad2658===void 0x0)continue;if(_0x39d6c3===void 0x0){_0x455fe1[_0x5a3ab5]=void 0x0;continue;}if(typeof _0xad2658===_0x57a7bf(0x370)&&_0xad2658!==null&&!Array[_0x57a7bf(0x611)](_0xad2658)&&typeof _0x39d6c3===_0x57a7bf(0x370)&&_0x39d6c3!==null&&!Array['isArray'](_0x39d6c3))_0x455fe1[_0x5a3ab5]=getShapeDataDiff(_0x39d6c3,_0xad2658);else _0x455fe1[_0x5a3ab5]=_0x39d6c3;}return _0x455fe1;}const UpdateShapeDataCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)]['COMMAND'],'id':_0x3e9a34(0x330),'handler':(_0x4738a2,_0x2ea27f)=>{const _0x38a020=_0x3e9a34,_0x4e1e13=_0x4738a2[_0x38a020(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService']),{unitId:_0x614b64,subUnitId:_0x5993a2,shapeType:_0x405f13,shapeId:_0x503a8d,shapeData:_0x27bffc,oldShapeJSON:_0x4d349b}=_0x2ea27f;if(!_0x4e1e13[_0x38a020(0x533)](_0x614b64,_0x5993a2,_0x503a8d))return![];const _0x283252=_0x4738a2['get'](_univerjs_core[_0x38a020(0x3f7)]),_0x481536=_0x4738a2[_0x38a020(0x2d9)](_univerjs_core[_0x38a020(0x250)]),{oldShapeType:_0x59efd0,oldShapeData:_0x42d4e3={}}=_0x4d349b,_0x240f5d=getShapeDataDiff(_0x42d4e3,_0x27bffc||{}),_0xaa0a4d={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x614b64,'subUnitId':_0x5993a2,'shapeId':_0x503a8d,'shapeType':_0x405f13,'shapeData':_0x27bffc}},_0x144f58={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x614b64,'subUnitId':_0x5993a2,'shapeId':_0x503a8d,'shapeType':_0x59efd0,'shapeData':_0x240f5d}};if(_0x283252[_0x38a020(0x623)](_0xaa0a4d['id'],_0xaa0a4d[_0x38a020(0xee)]))return _0x481536[_0x38a020(0xf8)]({'unitID':_0x614b64,'undoMutations':[_0x144f58],'redoMutations':[_0xaa0a4d]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x4e5),'handler':async(_0x429c55,_0x17b783)=>{const _0x4c2b16=_0x3e9a34;var _0x4c6147;if(!(0x0,_univerjs_sheets[_0x4c2b16(0x249)])(_0x429c55[_0x4c2b16(0x2d9)](_univerjs_core['IUniverInstanceService'])))return![];const _0x4a2482=_0x429c55['get'](_univerjs_sheets_drawing['ISheetDrawingService'])['getFocusDrawings']()[_0x4c2b16(0x50f)](_0x55c016=>_0x55c016[_0x4c2b16(0x5ec)]===_univerjs_core[_0x4c2b16(0x506)][_0x4c2b16(0x3fc)]);if(_0x4a2482[_0x4c2b16(0x440)]!==0x1)return![];const _0x47db20=_0x429c55[_0x4c2b16(0x2d9)](ShapeTextEditingService)[_0x4c2b16(0x512)](),_0x299d29=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x4a8)])||_0x4a2482[0x0][_0x4c2b16(0x4a8)],_0x1390ba=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x5d6)])||_0x4a2482[0x0][_0x4c2b16(0x5d6)],_0x120dae=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x4ac)])||_0x4a2482[0x0]['drawingId'],_0x398a58=_0x429c55[_0x4c2b16(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x4c2b16(0x533)](_0x299d29,_0x1390ba,_0x120dae);if(!_0x398a58)return![];const _0x329684=_0x398a58['getShapeTextData']();if(!_0x329684||!('dataModel'in _0x329684))return![];const _0x5ab247=_0x429c55[_0x4c2b16(0x2d9)](_univerjs_core[_0x4c2b16(0x3f7)]),{value:_0x198a39}=_0x17b783,_0x1310b3=_0x398a58[_0x4c2b16(0x478)](),_0x34da01=_0x398a58[_0x4c2b16(0x470)](),_0x166543={..._0x329684[_0x4c2b16(0xe0)],'ha':_0x198a39};return await _0x5ab247[_0x4c2b16(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x299d29,'subUnitId':_0x1390ba,'shapeId':_0x120dae,'shapeType':_0x1310b3,'shapeData':{'shapeText':{'isHorizontal':(_0x4c6147=_0x329684[_0x4c2b16(0x1ac)])!==null&&_0x4c6147!==void 0x0?_0x4c6147:!![],'dataModel':_0x166543}},'oldShapeJSON':{'oldShapeType':_0x1310b3,'oldShapeData':_0x34da01}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x1b2),'handler':async(_0x5ba25a,_0x147665)=>{const _0x20de7e=_0x3e9a34;var _0x272f47;if(!_0x147665)return![];const {value:_0x5a520a}=_0x147665,_0x1ada88=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_core[_0x20de7e(0x3f7)]),_0x2c1f2f=_0x5ba25a[_0x20de7e(0x2d9)](ShapeTextEditingService),_0x19816f=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_pro_sheets_shape[_0x20de7e(0x3a1)]),_0x13f0d3=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_engine_render[_0x20de7e(0x35e)]),_0x4f7155=_0x2c1f2f[_0x20de7e(0x512)]();if(!_0x4f7155)return![];const {unitId:_0x2ee15c,subUnitId:_0x1d84b7,shapeId:_0x21680e}=_0x4f7155,_0x2df372=_0x19816f[_0x20de7e(0x533)](_0x2ee15c,_0x1d84b7,_0x21680e);if(!_0x2df372)return![];const _0x581e4b=_0x2df372[_0x20de7e(0x459)]();if(!_0x581e4b||!(_0x20de7e(0xe0)in _0x581e4b))return![];const _0x292241=_0x581e4b[_0x20de7e(0xe0)];if(!_0x292241)return![];const _0x2e88bf={..._0x292241,'fs':_0x5a520a},_0x5a6696=await _0x1ada88[_0x20de7e(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x2ee15c,'subUnitId':_0x1d84b7,'shapeId':_0x21680e,'shapeData':{'shapeText':{'isHorizontal':(_0x272f47=_0x581e4b[_0x20de7e(0x1ac)])!==null&&_0x272f47!==void 0x0?_0x272f47:!![],'dataModel':_0x2e88bf}}});if(_0x5a6696){const _0x152ec2=_0x13f0d3[_0x20de7e(0x17d)](_0x2ee15c);if(_0x152ec2===null||_0x152ec2===void 0x0?void 0x0:_0x152ec2[_0x20de7e(0x2a4)]){const _0x3b3561=(0x0,_univerjs_drawing[_0x20de7e(0x171)])({'unitId':_0x2ee15c,'subUnitId':_0x1d84b7,'drawingId':_0x21680e}),_0x4aba09=_0x152ec2[_0x20de7e(0x2a4)][_0x20de7e(0x21c)](_0x3b3561);if(_0x4aba09)_0x4aba09[_0x20de7e(0x309)](!![]);}}return _0x5a6696;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0xf3),'handler':async _0xc29517=>{const _0x1aa52f=_0x3e9a34;var _0x474e5a;const _0x38842b=_0xc29517['get'](ShapeTextEditingService),_0x590de7=_0xc29517[_0x1aa52f(0x2d9)](_univerjs_pro_sheets_shape[_0x1aa52f(0x3a1)]),_0x182f95=_0xc29517['get'](_univerjs_core[_0x1aa52f(0x3f7)]),_0x4b1755=_0x38842b[_0x1aa52f(0x512)]();if(!_0x4b1755)return![];const {unitId:_0x53d0a4,subUnitId:_0xd5ffd6,shapeId:_0x51fdf7}=_0x4b1755,_0x52b330=_0x590de7['getShapeModel'](_0x53d0a4,_0xd5ffd6,_0x51fdf7);if(!_0x52b330)return![];const _0x23fa3d=_0x52b330[_0x1aa52f(0x459)]();if(!_0x23fa3d||!('dataModel'in _0x23fa3d))return![];const _0x439b5c=_0x23fa3d[_0x1aa52f(0xe0)],_0x32876d=(_0x474e5a=_0x439b5c===null||_0x439b5c===void 0x0?void 0x0:_0x439b5c['fs'])!==null&&_0x474e5a!==void 0x0?_0x474e5a:0xe,_0x55d84e=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x3f4355=_0x32876d;const _0x328d14=_0x55d84e[_0x1aa52f(0x21f)](_0x32876d);if(_0x328d14!==-0x1&&_0x328d14<_0x55d84e[_0x1aa52f(0x440)]-0x1)_0x3f4355=_0x55d84e[_0x328d14+0x1];else{if(_0x328d14===-0x1)_0x3f4355=Math[_0x1aa52f(0x252)](_0x32876d)+0x1;}return _0x182f95[_0x1aa52f(0x591)](SetShapeTextFontSizeCommand['id'],{'value':_0x3f4355});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x24d),'handler':async _0x5a2b72=>{const _0x56ed9b=_0x3e9a34;var _0x40788f;const _0x51b48d=_0x5a2b72[_0x56ed9b(0x2d9)](ShapeTextEditingService),_0x620911=_0x5a2b72['get'](_univerjs_pro_sheets_shape[_0x56ed9b(0x3a1)]),_0x103e9d=_0x5a2b72[_0x56ed9b(0x2d9)](_univerjs_core[_0x56ed9b(0x3f7)]),_0x19b4aa=_0x51b48d[_0x56ed9b(0x512)]();if(!_0x19b4aa)return![];const {unitId:_0x1090b3,subUnitId:_0x162126,shapeId:_0x19c674}=_0x19b4aa,_0x59036b=_0x620911[_0x56ed9b(0x533)](_0x1090b3,_0x162126,_0x19c674);if(!_0x59036b)return![];const _0x2c9eea=_0x59036b[_0x56ed9b(0x459)]();if(!_0x2c9eea||!(_0x56ed9b(0xe0)in _0x2c9eea))return![];const _0x3c8f42=_0x2c9eea[_0x56ed9b(0xe0)],_0x4614d1=(_0x40788f=_0x3c8f42===null||_0x3c8f42===void 0x0?void 0x0:_0x3c8f42['fs'])!==null&&_0x40788f!==void 0x0?_0x40788f:0xe,_0x35ba47=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0xdd93f1=_0x4614d1;const _0x33f6b1=_0x35ba47['indexOf'](_0x4614d1);if(_0x33f6b1!==-0x1&&_0x33f6b1>0x0)_0xdd93f1=_0x35ba47[_0x33f6b1-0x1];else{if(_0x33f6b1===-0x1)_0xdd93f1=Math[_0x56ed9b(0x252)](_0x4614d1)-0x1;}if(_0xdd93f1<0x1)_0xdd93f1=0x1;return _0x103e9d[_0x56ed9b(0x591)](SetShapeTextFontSizeCommand['id'],{'value':_0xdd93f1});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':'sheet.command.set-shape-text-vertical-align','handler':async(_0x1d3b23,_0x3cd399)=>{const _0x3eb037=_0x3e9a34;var _0x2e9391;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_core[_0x3eb037(0x53f)])))return![];const _0x484e5f=_0x1d3b23['get'](_univerjs_sheets_drawing[_0x3eb037(0x275)])[_0x3eb037(0x4a6)]()[_0x3eb037(0x50f)](_0x4f3bbc=>_0x4f3bbc[_0x3eb037(0x5ec)]===_univerjs_core[_0x3eb037(0x506)][_0x3eb037(0x3fc)]);if(_0x484e5f[_0x3eb037(0x440)]!==0x1)return![];const _0x3908b4=_0x1d3b23[_0x3eb037(0x2d9)](ShapeTextEditingService)['getEditing'](),_0x5292ff=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4[_0x3eb037(0x4a8)])||_0x484e5f[0x0][_0x3eb037(0x4a8)],_0x545daa=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4[_0x3eb037(0x5d6)])||_0x484e5f[0x0][_0x3eb037(0x5d6)],_0xb84e8a=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4['shapeId'])||_0x484e5f[0x0][_0x3eb037(0x4c5)],_0x287ad8=_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x3eb037(0x533)](_0x5292ff,_0x545daa,_0xb84e8a);if(!_0x287ad8)return![];const _0x275329=_0x287ad8[_0x3eb037(0x459)]();if(!_0x275329||!('dataModel'in _0x275329))return![];const _0x133bd4=_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_core['ICommandService']),{value:_0xdce6de}=_0x3cd399,_0x48fa7a=_0x287ad8[_0x3eb037(0x478)](),_0x2d24f0=_0x287ad8[_0x3eb037(0x470)](),_0xe22ea6={..._0x275329['dataModel'],'va':_0xdce6de};return await _0x133bd4[_0x3eb037(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x5292ff,'subUnitId':_0x545daa,'shapeId':_0xb84e8a,'shapeType':_0x48fa7a,'shapeData':{'shapeText':{'isHorizontal':(_0x2e9391=_0x275329[_0x3eb037(0x1ac)])!==null&&_0x2e9391!==void 0x0?_0x2e9391:!![],'dataModel':_0xe22ea6}},'oldShapeJSON':{'oldShapeType':_0x48fa7a,'oldShapeData':_0x2d24f0}});}},ShapeDocAlignCommand={'type':_univerjs_core['CommandType'][_0x3e9a34(0x358)],'id':'sheet.command.shape-doc-align','handler':(_0x401d0c,_0x5002c8)=>{const _0x4d3d88=_0x3e9a34;if(!_0x5002c8)return![];const {value:_0x216ada}=_0x5002c8;return _0x401d0c[_0x4d3d88(0x2d9)](_univerjs_core['ICommandService'])['syncExecuteCommand'](_univerjs_docs_ui[_0x4d3d88(0x10b)]['id'],{'alignType':_0x216ada});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'id':_0x3e9a34(0x5b7),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x3e9a34(0x127),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x3e9a34(0x5e2)])(_0x3e9a34(0x373)),ShapeTextEditorContainer$1=_0x3e9a34(0x27e);function updateShapeData(_0x12da59,_0x1a8b4f,_0x337b16,_0x58c4e4,_0x119d64,_0x2634b1){const _0x44d8ff=_0x3e9a34,_0x5ed1af={'unitId':_0x1a8b4f,'subUnitId':_0x337b16,'shapeId':_0x58c4e4,'shapeData':_0x2634b1,'oldShapeJSON':_0x119d64};return _0x12da59[_0x44d8ff(0x591)](UpdateShapeDataCommand['id'],_0x5ed1af);}function updateLineShapeData(_0x467b64,_0x1478d0,_0x15df62,_0x417dc4,_0x28b466,_0x271dd4){const _0x33cd3f=_0x3e9a34,_0x3db588={'unitId':_0x1478d0,'subUnitId':_0x15df62,'shapeId':_0x417dc4,'shapeData':_0x271dd4,'oldShapeJSON':_0x28b466};return _0x467b64[_0x33cd3f(0x591)](UpdateShapeDataCommand['id'],_0x3db588);}function prepareShapeTextDocumentData(_0x213947,_0x220a8b){const _0xfc236b=_0x3e9a34;var _0x533918;const {isHorizontal:_0x5c645e,textRect:_0x4effd4,verticalAlign:_0x2c9bc4}=_0x220a8b,_0x4c015a=_0x5c645e?_0x4effd4['width']:_0x4effd4['height'],_0x3c8589=_univerjs_core[_0xfc236b(0x584)][_0xfc236b(0x603)](_0x213947),_0x16de82=(_0x533918=_0x3c8589['documentStyle'])!==null&&_0x533918!==void 0x0?_0x533918:{},_0xf3f8c5={..._0x16de82[_0xfc236b(0x2e1)],'centerAngle':_0x5c645e?0x0:_univerjs_engine_render[_0xfc236b(0x300)],'vertexAngle':_0x5c645e?0x0:_univerjs_engine_render[_0xfc236b(0x300)],'wrapStrategy':_univerjs_core[_0xfc236b(0x5e5)][_0xfc236b(0x2fa)]};if(_0x2c9bc4!==void 0x0)_0xf3f8c5[_0xfc236b(0x5d0)]=_0x2c9bc4;if(_0x220a8b[_0xfc236b(0x656)]!==void 0x0){var _0x44d892;_0xf3f8c5['horizontalAlign']=_0x220a8b[_0xfc236b(0x656)];const _0x4ad2bb=(_0x44d892=_0x3c8589[_0xfc236b(0x32d)])===null||_0x44d892===void 0x0?void 0x0:_0x44d892['paragraphs'];if(_0x4ad2bb)for(const _0x366204 of _0x4ad2bb){if(!_0x366204[_0xfc236b(0x1cc)])_0x366204['paragraphStyle']={};_0x366204[_0xfc236b(0x1cc)][_0xfc236b(0x656)]=_0x220a8b[_0xfc236b(0x656)];}}return _0x3c8589[_0xfc236b(0x5db)]={..._0x16de82,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x4c015a,'height':Number[_0xfc236b(0x286)]},'renderConfig':_0xf3f8c5},_0x3c8589;}function stripShapeTextDocumentLayout(_0x2c730e){const _0x5e46c3=_0x3e9a34;var _0x436685;const _0x60ae51=_univerjs_core[_0x5e46c3(0x584)][_0x5e46c3(0x603)](_0x2c730e),_0x53f2a5=(_0x436685=_0x60ae51[_0x5e46c3(0x5db)])!==null&&_0x436685!==void 0x0?_0x436685:{},_0x35099e={..._0x53f2a5['renderConfig']};return delete _0x35099e['centerAngle'],delete _0x35099e[_0x5e46c3(0x486)],delete _0x35099e[_0x5e46c3(0x5d0)],delete _0x35099e[_0x5e46c3(0x455)],_0x60ae51[_0x5e46c3(0x5db)]={..._0x53f2a5,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x5e46c3(0x286)],'height':Number[_0x5e46c3(0x286)]},'renderConfig':Object[_0x5e46c3(0x1b4)](_0x35099e)['length']>0x0?_0x35099e:void 0x0},_0x60ae51;}var DrawingShape=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x458af5,_0x604598){const _0x5e2b6c=_0x3e9a34;super(_0x458af5,_0x604598),_defineProperty(this,_0x5e2b6c(0x20f),void 0x0),_defineProperty(this,'_transformCalculateSrcRect',!![]),_defineProperty(this,_0x5e2b6c(0x608),_univerjs_core['DrawingTypeEnum'][_0x5e2b6c(0x3fc)]),_defineProperty(this,_0x5e2b6c(0x65f),!![]),this[_0x5e2b6c(0x20f)]={..._0x604598},this['_init']();}[_0x3e9a34(0x1ee)](){const _0x3176d3=_0x3e9a34;this[_0x3176d3(0x293)][_0x3176d3(0x345)](_0x1ee3fc=>{const _0x4c72a0=_0x3176d3;this[_0x4c72a0(0x2f7)](_0x1ee3fc);});}[_0x3e9a34(0x503)](_0x298a72){const _0x408ab5=_0x3e9a34;this['_props'][_0x408ab5(0x31d)]=_0x298a72;}[_0x3e9a34(0x1d8)](_0x327187){const _0xd4a264=_0x3e9a34;this[_0xd4a264(0x20f)]['isEditing']=_0x327187,this[_0xd4a264(0x309)](!![]);}get[_0x3e9a34(0x4a8)](){const _0x302c02=_0x3e9a34;return this[_0x302c02(0x20f)][_0x302c02(0x4a8)];}get[_0x3e9a34(0x5d6)](){const _0x1a7261=_0x3e9a34;return this['_props'][_0x1a7261(0x5d6)];}['_updateSrcRectByTransform'](_0x29cf50){const _0x390631=_0x3e9a34;if(this['_props'][_0x390631(0x244)]==null||!this[_0x390631(0x58f)])return;const {width:_0x5d2177,height:_0x34d696}=this,{width:_0x36be15=0x0,height:_0x564fbb=0x0}=_0x29cf50[_0x390631(0x448)],{left:_0x3aa8b3=0x0,top:_0x2d8eb2=0x0,right:_0x2cea2d=0x0,bottom:_0x3edfd9=0x0}=this[_0x390631(0x20f)]['srcRect'];let _0xce5a68=_0x3aa8b3,_0x42222c=_0x2d8eb2,_0x3edec8=_0x2cea2d,_0x125b16=_0x3edfd9,_0x50bded=![];if(_0x36be15!==0x0&&_0x36be15!==_0x5d2177){const _0x48409e=_0x3aa8b3/_0x36be15,_0x23b979=_0x2cea2d/_0x36be15;_0xce5a68=_0x5d2177*_0x48409e,_0x3edec8=_0x5d2177*_0x23b979,_0x50bded=!![];}if(_0x564fbb!==0x0&&_0x564fbb!==_0x34d696){const _0x11c822=_0x2d8eb2/_0x564fbb,_0x1e3169=_0x3edfd9/_0x564fbb;_0x42222c=_0x34d696*_0x11c822,_0x125b16=_0x34d696*_0x1e3169,_0x50bded=!![];}if(_0x50bded)this['setSrcRect']({'left':_0xce5a68,'top':_0x42222c,'right':_0x3edec8,'bottom':_0x125b16});}[_0x3e9a34(0x371)](_0x566f47){const _0x39ba1e=_0x3e9a34;this[_0x39ba1e(0x20f)][_0x39ba1e(0x244)]=_0x566f47,this[_0x39ba1e(0x309)](!![]);}[_0x3e9a34(0x39f)](_0x356926){const _0x517faf=_0x3e9a34;this['_props']['image']=_0x356926,this[_0x517faf(0x309)](!![]);}set[_0x3e9a34(0x600)](_0x2bad78){const _0x1d386e=_0x3e9a34;this[_0x1d386e(0x501)]=_0x2bad78;}get['transform'](){const _0x2dfc74=_0x3e9a34;if(!this[_0x2dfc74(0x501)])this[_0x2dfc74(0xf7)]();const _0x5686d6=this[_0x2dfc74(0x501)][_0x2dfc74(0x3e7)]();return this['transformForAngle'](_0x5686d6);}get[_0x3e9a34(0x4e4)](){const _0x323cdf=_0x3e9a34;return this[_0x323cdf(0x20f)][_0x323cdf(0x4e4)];}get[_0x3e9a34(0x4ac)](){return this['_props']['shapeId'];}get[_0x3e9a34(0x571)](){const _0x51eed0=_0x3e9a34;return _univerjs_engine_render['RENDER_CLASS_TYPE'][_0x51eed0(0x305)];}['_draw'](_0x36576d,_0xdccc4e,_0x4f13e9,_0x3f4254){const _0x5a120e=_0x3e9a34,_0x868078=this[_0x5a120e(0x20f)]['shapeModel'];if(!_0x868078||!_0xdccc4e)return;const _0x1dc7d6=_0x4f13e9!==null&&_0x4f13e9!==void 0x0?_0x4f13e9:this[_0x5a120e(0x183)],_0x123e28=_0x3f4254!==null&&_0x3f4254!==void 0x0?_0x3f4254:this[_0x5a120e(0x37b)],_0x35ceec={'shapeType':_0x868078[_0x5a120e(0x478)](),'width':_0x1dc7d6,'height':_0x123e28},_0x10c76d={'renderMode':_univerjs_pro_engine_shape['ShapeRenderModeEnum'][_0x5a120e(0x403)],'oKey':this['oKey'],'image':this[_0x5a120e(0x20f)][_0x5a120e(0x51b)],'angle':this['angle']};_0x868078['updateContext'](_0x35ceec),_0x36576d[_0x5a120e(0x1a3)]();const _0x405833={'top':0x0,'left':0x0,'width':_0x1dc7d6,'height':_0x123e28};_0x868078[_0x5a120e(0x107)](_0x36576d,_0x405833,_0x10c76d),_0x36576d[_0x5a120e(0x556)]();const _0x35da23=_0x868078[_0x5a120e(0x459)](),_0x53a7f7=_0x868078[_0x5a120e(0x446)](_0x405833),_0x495de5=_0x868078[_0x5a120e(0x25b)]();if(_0x35da23&&_0x53a7f7&&!_0x495de5){_0x36576d[_0x5a120e(0x1a3)]();if(this[_0x5a120e(0x30f)]()[_0x5a120e(0x2f5)])_0x36576d['scale'](-0x1,0x1);const _0x43dc0b=_0x1dc7d6/0x2,_0x6a4b84=_0x123e28/0x2;_0x36576d[_0x5a120e(0x52e)](-_0x43dc0b,-_0x6a4b84),_0x36576d[_0x5a120e(0x4d7)](),this['_drawShapeText'](_0x36576d,_0x35da23,_0x53a7f7),_0x36576d[_0x5a120e(0x556)]();}}[_0x3e9a34(0x660)](_0x149022){}[_0x3e9a34(0x62f)](_0xc223fd,_0x427ac5,_0x3e8f08){const _0x18cb54=_0x3e9a34;if(this[_0x18cb54(0x20f)]['isEditing'])return;if('isRichText'in _0x427ac5&&_0x427ac5['isRichText']===![])this[_0x18cb54(0x116)](_0xc223fd,_0x427ac5,_0x3e8f08);else this[_0x18cb54(0x295)](_0xc223fd,_0x427ac5,_0x3e8f08);}[_0x3e9a34(0x116)](_0x13bfa1,_0x45edc,_0x146d6f){}[_0x3e9a34(0x295)](_0x256191,_0x518b08,_0x1dcc55){const _0x187311=_0x3e9a34;var _0x414079,_0x420278;const _0x5ea4dd=this['_props'][_0x187311(0x5ee)];if(!_0x518b08[_0x187311(0xe0)]||!_0x5ea4dd){if(!_0x5ea4dd)console[_0x187311(0x3d9)](_0x187311(0x2b6));return;}const _0xd8da4b=_0x518b08[_0x187311(0xe0)],_0x21008c=_0xd8da4b[_0x187311(0x30b)],_0x7014ec=(_0x414079=_0xd8da4b['va'])!==null&&_0x414079!==void 0x0?_0x414079:_univerjs_core[_0x187311(0x48a)][_0x187311(0x2ab)],_0x367c6f=(_0x420278=_0xd8da4b['ha'])!==null&&_0x420278!==void 0x0?_0x420278:_univerjs_core[_0x187311(0x5ed)][_0x187311(0x57b)];if(!_0x21008c)return;const _0x27c1bd=_0x518b08[_0x187311(0x1ac)],_0x18867c=prepareShapeTextDocumentData(_0x21008c,{'isHorizontal':_0x27c1bd!==![],'textRect':_0x1dcc55,'verticalAlign':_0x7014ec,'horizontalAlign':_0x367c6f}),_0x1e4cd0=new _univerjs_core[(_0x187311(0x548))](_0x18867c),_0x3ed29c=new _univerjs_engine_render[(_0x187311(0x2f3))](_0x1e4cd0),_0x3969a1=_univerjs_engine_render[_0x187311(0x224)]['create'](_0x3ed29c,_0x5ea4dd);console[_0x187311(0x3d9)](_0x18867c,_0x1e4cd0,_0x3969a1),_0x3969a1[_0x187311(0x108)]();const _0x16bf59=new _univerjs_engine_render[(_0x187311(0x535))](_0x187311(0x2df)+this[_0x187311(0x389)],_0x3969a1,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x16bf59['resize'](_0x1dcc55[_0x187311(0x183)],_0x1dcc55[_0x187311(0x37b)]),_0x256191[_0x187311(0x1a3)](),_0x256191[_0x187311(0x1d6)](_0x1dcc55[_0x187311(0xe1)],_0x1dcc55[_0x187311(0x156)]),_0x256191[_0x187311(0x4d7)](),_0x256191[_0x187311(0x11a)](0x0,0x0,_0x1dcc55['width'],_0x1dcc55['height']),_0x256191[_0x187311(0x632)](),_0x16bf59[_0x187311(0x45a)](_0x256191),_0x256191[_0x187311(0x556)](),_0x16bf59[_0x187311(0x199)](),_0x3969a1[_0x187311(0x199)](),_0x3ed29c['dispose'](),_0x1e4cd0['dispose']();}[_0x3e9a34(0x107)](_0x351c6b,_0x3b960a,_0x447b7f=![]){const _0x59fce9=_0x3e9a34;if(!this['visible'])return this['makeDirty'](![]),this;let {width:_0x2bc85b,height:_0x54a82a,left:_0x206c21,top:_0x37a1e6}=this;const _0x2f871b=this[_0x59fce9(0x5ff)]();_0x2bc85b=_0x2f871b[_0x59fce9(0x183)],_0x54a82a=_0x2f871b[_0x59fce9(0x37b)],_0x206c21=_0x2f871b[_0x59fce9(0xe1)],_0x37a1e6=_0x2f871b['top'];if(this['isRender'](_0x3b960a)){const {top:_0x44f683,left:_0xdb5f47,bottom:_0x4f9b1b,right:_0x108d17}=_0x3b960a['viewBound'];if(_0x2bc85b+this[_0x59fce9(0x45d)]+_0x206c21<_0xdb5f47||_0x108d17<_0x206c21||_0x54a82a+this[_0x59fce9(0x45d)]+_0x37a1e6<_0x44f683||_0x4f9b1b<_0x37a1e6)return this;}const _0x541b53=_0x206c21+_0x2bc85b/0x2,_0x1c9a1e=_0x37a1e6+_0x54a82a/0x2;let _0xb02f7=this[_0x59fce9(0x600)][_0x59fce9(0x146)]();if(this[_0x59fce9(0x20f)][_0x59fce9(0x447)]){const _0x46d5f5=this[_0x59fce9(0x30f)](),_0x7afe26=new _univerjs_engine_render[(_0x59fce9(0x10d))]();_0x7afe26[_0x59fce9(0x3f8)]({..._0x46d5f5}),_0xb02f7=_0x7afe26[_0x59fce9(0x146)]();}_0x351c6b[_0x59fce9(0x1a3)]();if(this[_0x59fce9(0x20f)][_0x59fce9(0x4e4)][_0x59fce9(0x4ca)]===!![]){}else _0x351c6b[_0x59fce9(0x600)](_0xb02f7[0x0],_0xb02f7[0x1],_0xb02f7[0x2],_0xb02f7[0x3],_0x541b53,_0x1c9a1e);return this[_0x59fce9(0x33c)](_0x351c6b,_0x3b960a,_0x2bc85b,_0x54a82a),_0x351c6b['restore'](),this[_0x59fce9(0x309)](![]),this;}[_0x3e9a34(0x1a5)](_0x476e05){const _0xc8d1d2=_0x3e9a34,{left:_0x3dd62a,top:_0x10f332,width:_0x37aeec,height:_0x4bb6a5}=this[_0xc8d1d2(0x5ff)](),_0x4d807b=this[_0xc8d1d2(0x600)][_0xc8d1d2(0x146)](),_0x3ffd38=_0x3dd62a+_0x37aeec/0x2,_0x5c3d5e=_0x10f332+_0x4bb6a5/0x2,_0x33e9bd=new _univerjs_engine_render[(_0xc8d1d2(0x10d))]([_0x4d807b[0x0],_0x4d807b[0x1],_0x4d807b[0x2],_0x4d807b[0x3],_0x3ffd38,_0x5c3d5e]),_0x35bd86=this[_0xc8d1d2(0x316)]();return(this[_0xc8d1d2(0x258)]&&(_0x35bd86===null||_0x35bd86===void 0x0?void 0x0:_0x35bd86[_0xc8d1d2(0x571)])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0xc8d1d2(0x4a2)]?_0x35bd86[_0xc8d1d2(0x526)]['multiply'](_0x33e9bd):_0x33e9bd)[_0xc8d1d2(0x66a)]()['applyPoint'](_0x476e05);}[_0x3e9a34(0x1f7)](_0x5be246){const _0x5f5b74=_0x3e9a34,{left:_0x590bcc,top:_0x464c18,width:_0x3d7043,height:_0x5c4f1b}=this['getRealBound'](),_0x51db52=_0x590bcc+_0x3d7043/0x2,_0x1228ae=_0x464c18+_0x5c4f1b/0x2,_0x13af1f=this['transform']['getMatrix'](),_0x5bdc45=new _univerjs_engine_render['Transform']([_0x13af1f[0x0],_0x13af1f[0x1],_0x13af1f[0x2],_0x13af1f[0x3],_0x51db52,_0x1228ae]),_0x56e39f=this[_0x5f5b74(0x316)](),_0x8ad2cf=(this['isInGroup']&&(_0x56e39f===null||_0x56e39f===void 0x0?void 0x0:_0x56e39f[_0x5f5b74(0x571)])===_univerjs_engine_render[_0x5f5b74(0x4f8)]['GROUP']?_0x56e39f[_0x5f5b74(0x526)][_0x5f5b74(0x12b)](_0x5bdc45):_0x5bdc45)[_0x5f5b74(0x66a)]()[_0x5f5b74(0x342)](_0x5be246),_0x497228=_0x3d7043/0x2,_0x45d688=_0x5c4f1b/0x2,_0x89b661=this[_0x5f5b74(0x20f)]['shapeModel'];if(_0x89b661&&_0x89b661[_0x5f5b74(0x25b)]())return _0x89b661[_0x5f5b74(0x56c)](_0x8ad2cf['x'],_0x8ad2cf['y'],_0x3d7043,_0x5c4f1b);if(_0x8ad2cf['x']>=-_0x497228-this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['x']<=_0x497228+this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['y']>=-_0x45d688-this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['y']<=_0x45d688+this['strokeWidth']/0x2)return!![];return![];}[_0x3e9a34(0x199)](){const _0x189489=_0x3e9a34;this[_0x189489(0x20f)][_0x189489(0x4e4)]=null,super['dispose']();}};function __decorateParam(_0x3a7f71,_0x1aacf7){return function(_0x4a0a35,_0x453e0f){_0x1aacf7(_0x4a0a35,_0x453e0f,_0x3a7f71);};}function __decorate(_0x92ff30,_0x58dd35,_0x5cabe0,_0x3bed03){const _0x524709=_0x3e9a34;var _0x22f3fa=arguments[_0x524709(0x440)],_0x3f3c24=_0x22f3fa<0x3?_0x58dd35:_0x3bed03===null?_0x3bed03=Object[_0x524709(0x34b)](_0x58dd35,_0x5cabe0):_0x3bed03,_0x1885d2;if(typeof Reflect===_0x524709(0x370)&&typeof Reflect[_0x524709(0x4d6)]===_0x524709(0x236))_0x3f3c24=Reflect[_0x524709(0x4d6)](_0x92ff30,_0x58dd35,_0x5cabe0,_0x3bed03);else{for(var _0x521911=_0x92ff30[_0x524709(0x440)]-0x1;_0x521911>=0x0;_0x521911--)if(_0x1885d2=_0x92ff30[_0x521911])_0x3f3c24=(_0x22f3fa<0x3?_0x1885d2(_0x3f3c24):_0x22f3fa>0x3?_0x1885d2(_0x58dd35,_0x5cabe0,_0x3f3c24):_0x1885d2(_0x58dd35,_0x5cabe0))||_0x3f3c24;}return _0x22f3fa>0x3&&_0x3f3c24&&Object[_0x524709(0x63c)](_0x58dd35,_0x5cabe0,_0x3f3c24),_0x3f3c24;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core['Disposable']{constructor(_0x497e01,_0x2de12d,_0x30c91d,_0x4f7505,_0x15310f){const _0x3dc15a=_0x3e9a34;super(),this[_0x3dc15a(0x4d0)]=_0x497e01,this[_0x3dc15a(0xfd)]=_0x2de12d,this[_0x3dc15a(0x5d4)]=_0x30c91d,this[_0x3dc15a(0x272)]=_0x4f7505,this[_0x3dc15a(0x469)]=_0x15310f;}[_0x3e9a34(0x1e3)](_0x56903a,_0x4e0832){const _0x1dc2eb=_0x3e9a34,{transform:_0x47e3e6,drawingType:_0x4ac8a4,srcRect:_0x48bead,prstGeom:_0x3a9025,groupId:_0x321e5c,unitId:_0x5693b3,subUnitId:_0x5aceb2,drawingId:_0x44bde0,isMultiTransform:_0x8ab282,transforms:_0x3b73ab,hidden:_0x3c998c}=_0x56903a;if(_0x4ac8a4!==_univerjs_core['DrawingTypeEnum'][_0x1dc2eb(0x3fc)])return;if(!this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x3f9)]())return;if(_0x47e3e6==null)return;const _0x19ba7d=_0x8ab282&&_0x3b73ab?_0x3b73ab:[_0x47e3e6],_0x451ccb=[];for(const _0x339623 of _0x19ba7d){const {left:_0x53ebf1,top:_0x5c5eea,width:_0x1b484e,height:_0x4dcc0d,angle:_0x17ceb4,flipX:_0x426fea,flipY:_0x11f749,skewX:_0x2a83a8,skewY:_0x29ae80}=_0x339623,_0x1f88a7=_0x19ba7d[_0x1dc2eb(0x21f)](_0x339623),_0x1326af=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5693b3,'subUnitId':_0x5aceb2,'drawingId':_0x44bde0},_0x8ab282?_0x1f88a7:void 0x0),_0x2f8438=_0x4e0832[_0x1dc2eb(0x21c)](_0x1326af);if(_0x2f8438!=null){_0x2f8438[_0x1dc2eb(0x227)]({'left':_0x53ebf1,'top':_0x5c5eea,'width':_0x1b484e,'height':_0x4dcc0d,'angle':_0x17ceb4,'flipX':_0x426fea,'flipY':_0x11f749,'skewX':_0x2a83a8,'skewY':_0x29ae80});continue;}const _0x22abcb=this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x2bd)](_0x5693b3,_0x5aceb2),_0x483807=_0x22abcb[_0x1dc2eb(0x21f)](_0x44bde0);if(_0x4e0832['getObjectIncludeInGroup'](_0x1326af))continue;if(!this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x3f9)]())continue;const _0x32e02e=this[_0x1dc2eb(0xfd)][_0x1dc2eb(0x533)](_0x5693b3,_0x5aceb2,_0x44bde0);if(!_0x32e02e)continue;const _0x365853=new DrawingShape(_0x1326af,{...(0x0,_univerjs_pro_engine_shape[_0x1dc2eb(0x654)])(_0x32e02e[_0x1dc2eb(0x478)]())?{..._0x339623,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x339623},'zIndex':_0x483807===-0x1?_0x22abcb['length']-0x1:_0x483807,'shapeModel':_0x32e02e,'localeService':this[_0x1dc2eb(0x5d4)],'shapeId':_0x44bde0,'unitId':_0x5693b3,'subUnitId':_0x5aceb2,'visible':_0x3c998c!==!![]});_0x4e0832['addObject'](_0x365853,_univerjs_engine_render[_0x1dc2eb(0x1bd)]);if(this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x362)]())_0x4e0832['attachTransformerTo'](_0x365853);_0x321e5c&&(0x0,_univerjs_drawing_ui[_0x1dc2eb(0x34c)])({'drawingId':_0x321e5c,'unitId':_0x5693b3,'subUnitId':_0x5aceb2},_0x365853,_0x4e0832,this[_0x1dc2eb(0x4d0)]);if(_0x3a9025!=null)_0x365853[_0x1dc2eb(0x503)](_0x3a9025);if(_0x48bead!=null)_0x365853[_0x1dc2eb(0x371)](_0x48bead);this[_0x1dc2eb(0x1cd)](_0x365853,_0x32e02e[_0x1dc2eb(0x470)]()),_0x451ccb[_0x1dc2eb(0x2dd)](_0x365853);}return _0x451ccb;}['_loadShapePictureFill'](_0x914fe,_0x121d85){const _0xd773d0=_0x3e9a34;var _0x55b565;const _0x572f9d=_0x121d85['fill'];if(!_0x572f9d||_0x572f9d[_0xd773d0(0x49b)]!==_univerjs_pro_engine_shape[_0xd773d0(0x4bf)][_0xd773d0(0x5c6)]||!_0x572f9d[_0xd773d0(0x5cd)])return;const _0x19430b=_0x572f9d['fillImageSource'],_0x9fefb5=(_0x55b565=_0x572f9d['fillImageSourceType'])!==null&&_0x55b565!==void 0x0?_0x55b565:_univerjs_pro_engine_shape['ImageSourceTypeEnum'][_0xd773d0(0xfc)],_0x427604=this[_0xd773d0(0x272)]['getImageSourceCache'](_0x19430b,_0x9fefb5);if(_0x427604){_0x914fe[_0xd773d0(0x39f)](_0x427604);return;}this[_0xd773d0(0x241)](_0x914fe,_0x19430b,_0x9fefb5);}async[_0x3e9a34(0x241)](_0x47988a,_0x185e62,_0x2bced5){const _0x1490a5=_0x3e9a34;let _0x341d6b;try{if(_0x2bced5===_univerjs_pro_engine_shape[_0x1490a5(0x38e)][_0x1490a5(0x233)])_0x341d6b=await this['_imageIoService'][_0x1490a5(0x4fd)](_0x185e62);else{if(_0x2bced5===_univerjs_pro_engine_shape[_0x1490a5(0x38e)][_0x1490a5(0xfc)])try{_0x341d6b=await this[_0x1490a5(0x469)]['getImage'](_0x185e62);}catch{_0x341d6b=_0x185e62;}else _0x341d6b=_0x185e62;}}catch(_0x3df293){console[_0x1490a5(0x5e9)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x3df293);return;}const _0x2fee77=new window[(_0x1490a5(0x41c))]();_0x2fee77[_0x1490a5(0x437)]=()=>{const _0x5a560b=_0x1490a5;this[_0x5a560b(0x272)][_0x5a560b(0x15d)](_0x185e62,_0x2bced5,_0x2fee77),_0x47988a[_0x5a560b(0x39f)](_0x2fee77);},_0x2fee77[_0x1490a5(0x260)]=()=>{const _0x3c397a=_0x1490a5;console[_0x3c397a(0x5e9)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x185e62);},_0x2fee77[_0x1490a5(0x149)]=_0x341d6b;}};function _0x47fe(_0x4d1087,_0x54e549){_0x4d1087=_0x4d1087-0xdd;const _0x501b48=_0x501b();let _0x47fe73=_0x501b48[_0x4d1087];return _0x47fe73;}SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x398)])),__decorateParam(0x3,_univerjs_drawing['IImageIoService']),__decorateParam(0x4,_univerjs_core[_0x3e9a34(0x473)])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x51fcfc,_0x306769,_0x44bfa0,_0x1eea96,_0x2e9951,_0x514a6d){const _0x5eedc4=_0x3e9a34;super(),this[_0x5eedc4(0x363)]=_0x51fcfc,this[_0x5eedc4(0x5cb)]=_0x306769,this[_0x5eedc4(0x4d0)]=_0x44bfa0,this[_0x5eedc4(0x5a3)]=_0x1eea96,this[_0x5eedc4(0x56b)]=_0x2e9951,this[_0x5eedc4(0x1ed)]=_0x514a6d,this[_0x5eedc4(0x206)]();}['_initialize'](){const _0x55786c=_0x3e9a34;this['_drawingAddListener'](),this['_commandExecutedListener'](),this[_0x55786c(0x441)]();}[_0x3e9a34(0x37c)](){const _0xeabd20=_0x3e9a34;this[_0xeabd20(0x58e)](this[_0xeabd20(0x4d0)][_0xeabd20(0x640)][_0xeabd20(0x562)](_0x444c5c=>{this['_insertShapes'](_0x444c5c);}));}['_commandExecutedListener'](){const _0x11321e=_0x3e9a34;this['disposeWithMe'](this[_0x11321e(0x363)][_0x11321e(0x3b5)](_0x30673b=>{const _0xd72264=_0x11321e;if(_0x30673b['id']===_univerjs_pro_sheets_shape[_0xd72264(0x598)]['id']){var _0x3eae51;const {unitId:_0x2c4487,subUnitId:_0x28c0b2,shapeId:_0x4be04e}=_0x30673b[_0xd72264(0xee)],_0x106d19=this[_0xd72264(0x34f)](_0x2c4487);if(_0x106d19==null)return;const {scene:_0x469652}=_0x106d19,_0x58536f=(0x0,_univerjs_drawing[_0xd72264(0x171)])({'unitId':_0x2c4487,'subUnitId':_0x28c0b2,'drawingId':_0x4be04e}),_0x1c4d50=_0x469652[_0xd72264(0x21c)](_0x58536f);if(!((_0x3eae51=this[_0xd72264(0x5cb)]['getRenderById'](_0x2c4487))===null||_0x3eae51===void 0x0?void 0x0:_0x3eae51['with'](_univerjs_sheets_ui[_0xd72264(0x412)])[_0xd72264(0x64e)](_0x28c0b2)))return![];if(_0x1c4d50)return;this[_0xd72264(0x385)]([{'unitId':_0x2c4487,'subUnitId':_0x28c0b2,'drawingId':_0x4be04e}]);}}));}['_shapeUpdateListener'](){const _0x47593e=_0x3e9a34;this[_0x47593e(0x58e)](this[_0x47593e(0x4d0)][_0x47593e(0x554)][_0x47593e(0x562)](_0xc6fd09=>{const _0x23cf04=_0x47593e;_0xc6fd09[_0x23cf04(0x289)](_0x4ef3e9=>{const _0x836428=_0x23cf04,{unitId:_0x518111,subUnitId:_0x312f38,drawingId:_0x2fd43d}=_0x4ef3e9,_0x361942=this[_0x836428(0x4d0)][_0x836428(0x619)](_0x4ef3e9);if(_0x361942==null)return;const {transform:_0x28fb3b,drawingType:_0x5aceaf,srcRect:_0x326847,prstGeom:_0x67e33c}=_0x361942;if(_0x5aceaf!==_univerjs_core[_0x836428(0x506)][_0x836428(0x3fc)])return;const _0x5b3307=this[_0x836428(0x34f)](_0x518111);if(_0x5b3307==null)return;const {scene:_0x143c69,transformer:_0x4500ce}=_0x5b3307;if(_0x28fb3b==null)return!![];const _0x53bc66=(0x0,_univerjs_drawing[_0x836428(0x171)])({'unitId':_0x518111,'subUnitId':_0x312f38,'drawingId':_0x2fd43d}),_0x1f9e44=_0x143c69[_0x836428(0x21c)](_0x53bc66);if(_0x1f9e44==null)return!![];_0x1f9e44[_0x836428(0x371)](_0x326847),_0x1f9e44[_0x836428(0x503)](_0x67e33c);});}));}[_0x3e9a34(0x4f4)](_0x1d8101,_0x4e0e07){const _0x52a55c=_0x3e9a34,{unitId:_0x1b8380,subUnitId:_0x567a82,drawingId:_0x4da0b1}=_0x1d8101,_0x3c9ed4=this['_getSceneAndTransformerByDrawingSearch'](_0x1b8380);if(_0x3c9ed4==null)return;const {scene:_0x12bd79}=_0x3c9ed4,_0x68e194=(0x0,_univerjs_drawing[_0x52a55c(0x171)])({'unitId':_0x1b8380,'subUnitId':_0x567a82,'drawingId':_0x4da0b1}),_0x4e395f=_0x12bd79[_0x52a55c(0x21c)](_0x68e194);if(_0x4e395f==null)return;_0x4e395f['setFillImage'](_0x4e0e07);}[_0x3e9a34(0x385)](_0x3f9fdf){const _0x43c568=_0x3e9a34;_0x3f9fdf[_0x43c568(0x289)](async _0x2b9788=>{const _0x40b986=_0x43c568;var _0x20bdd2;const {unitId:_0x10c625,subUnitId:_0x44c5f4}=_0x2b9788,_0x9a9e1a=this[_0x40b986(0x34f)](_0x10c625),_0x185edf=(_0x20bdd2=(0x0,_univerjs_drawing_ui['getCurrentUnitInfo'])(this['_currentUniverService'],_0x10c625))===null||_0x20bdd2===void 0x0?void 0x0:_0x20bdd2[_0x40b986(0x5d6)];if(_0x9a9e1a==null||_0x185edf!==_0x44c5f4)return;const _0x356da3=this[_0x40b986(0x4d0)]['getDrawingByParam'](_0x2b9788);if(_0x356da3==null)return;if(_0x356da3['drawingType']!==_univerjs_core[_0x40b986(0x506)][_0x40b986(0x3fc)])return;if((0x0,_univerjs_pro_engine_shape[_0x40b986(0x654)])((_0x356da3[_0x40b986(0x278)]||{})[_0x40b986(0x24f)])){const _0x210c9b=_0x356da3[_0x40b986(0x600)];if(_0x210c9b)_0x356da3[_0x40b986(0x600)]={..._0x210c9b,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x40b986(0x4d0)][_0x40b986(0x3bd)]([_0x356da3]),this[_0x40b986(0x1ed)][_0x40b986(0x1e3)](_0x356da3,_0x9a9e1a[_0x40b986(0x2a4)]);});}[_0x3e9a34(0x34f)](_0x1cf026){const _0x14f842=_0x3e9a34;if(_0x1cf026==null)return;const _0xe198c2=this[_0x14f842(0x5cb)][_0x14f842(0x17d)](_0x1cf026),_0x4fd32d=_0xe198c2===null||_0xe198c2===void 0x0?void 0x0:_0xe198c2['scene'];if(_0x4fd32d==null)return null;return{'scene':_0x4fd32d,'transformer':_0x4fd32d['getTransformerByCreate']()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x1,_univerjs_engine_render[_0x3e9a34(0x35e)]),__decorateParam(0x2,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_drawing_ui[_0x3e9a34(0x344)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x234689){const _0x2992d3=_0x3e9a34;var _0x1c4481,_0x5b376c,_0x38851c,_0x3cda8a,_0x92d0e0,_0x57e226,_0x1ad652,_0xe98f83,_0x25adbe,_0x54bedb,_0x5d61f5,_0x2421a3,_0x28f768;const {unitId:_0x25f2aa,subUnitId:_0x44b980,shapeId:_0xd5cee1,shapeData:_0x4a62bc,disableShapeOption:_0x216398}=_0x234689,_0x4ec3ca=(0x0,_univerjs_ui[_0x2992d3(0x663)])(_univerjs_core[_0x2992d3(0x398)]),_0x273435=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['ICommandService']),_0x249fc0=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2992d3(0x409)]),_0x4558a4=(0x0,_univerjs_ui['useDependency'])(ShapeUpdateController),_0x554bd1=(0x0,_univerjs_ui[_0x2992d3(0x663)])(_univerjs_drawing[_0x2992d3(0x3ce)]),_0x41b6e2=(0x0,react['useRef'])(null),_0x21a801=_0x4a62bc[_0x2992d3(0x151)],_0x2341c7=!!(_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5cd)]),[_0x34a216,_0x388cd8]=(0x0,react[_0x2992d3(0x5a1)])((_0x1c4481=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x425)])!==null&&_0x1c4481!==void 0x0?_0x1c4481:0x1),[_0x2adba7,_0xf6a2c3]=(0x0,react[_0x2992d3(0x5a1)])((_0x5b376c=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x3e0)])!==null&&_0x5b376c!==void 0x0?_0x5b376c:_univerjs_pro_engine_shape[_0x2992d3(0x26c)]['Stretch']),[_0x598662,_0x1b7b94]=(0x0,react['useState'])((_0x38851c=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5da)])!==null&&_0x38851c!==void 0x0?_0x38851c:![]),[_0x5bd4d4,_0x408539]=(0x0,react['useState'])((_0x3cda8a=_0x21a801===null||_0x21a801===void 0x0||(_0x92d0e0=_0x21a801['imageTile'])===null||_0x92d0e0===void 0x0?void 0x0:_0x92d0e0[_0x2992d3(0x59b)])!==null&&_0x3cda8a!==void 0x0?_0x3cda8a:0x0),[_0x4a9037,_0x19c78c]=(0x0,react[_0x2992d3(0x5a1)])((_0x57e226=_0x21a801===null||_0x21a801===void 0x0||(_0x1ad652=_0x21a801[_0x2992d3(0x290)])===null||_0x1ad652===void 0x0?void 0x0:_0x1ad652[_0x2992d3(0x161)])!==null&&_0x57e226!==void 0x0?_0x57e226:0x0),[_0x404b4c,_0x5e57bf]=(0x0,react[_0x2992d3(0x5a1)])((_0xe98f83=_0x21a801===null||_0x21a801===void 0x0||(_0x25adbe=_0x21a801[_0x2992d3(0x290)])===null||_0x25adbe===void 0x0?void 0x0:_0x25adbe['scaleX'])!==null&&_0xe98f83!==void 0x0?_0xe98f83:0x1),[_0x17c259,_0x43c9c0]=(0x0,react[_0x2992d3(0x5a1)])((_0x54bedb=_0x21a801===null||_0x21a801===void 0x0||(_0x5d61f5=_0x21a801[_0x2992d3(0x290)])===null||_0x5d61f5===void 0x0?void 0x0:_0x5d61f5[_0x2992d3(0x1b6)])!==null&&_0x54bedb!==void 0x0?_0x54bedb:0x1),[_0x252963,_0x2eaae7]=(0x0,react[_0x2992d3(0x5a1)])((_0x2421a3=_0x21a801===null||_0x21a801===void 0x0||(_0x28f768=_0x21a801['imageTile'])===null||_0x28f768===void 0x0?void 0x0:_0x28f768[_0x2992d3(0x48f)])!==null&&_0x2421a3!==void 0x0?_0x2421a3:'tl'),_0x406692=_0x2adba7===_univerjs_pro_engine_shape[_0x2992d3(0x26c)]['Tile'],_0x3b586d=Math[_0x2992d3(0x47c)]((0x1-_0x34a216)*0x64),_0x5a066f=Math[_0x2992d3(0x47c)](_0x404b4c*0x64),_0x22421f=Math[_0x2992d3(0x47c)](_0x17c259*0x64),_0x52f548=_0x461430=>_0x4ec3ca['t'](_0x461430),_0xfebb96=[{'label':_0x52f548(_0x2992d3(0x308)),'value':'tl'},{'label':_0x52f548(_0x2992d3(0x158)),'value':'t'},{'label':_0x52f548('sheets-shape.fill.picture.align.tr'),'value':'tr'},{'label':_0x52f548('sheets-shape.fill.picture.align.l'),'value':'l'},{'label':_0x52f548('sheets-shape.fill.picture.align.ctr'),'value':_0x2992d3(0x568)},{'label':_0x52f548(_0x2992d3(0x3d6)),'value':'r'},{'label':_0x52f548('sheets-shape.fill.picture.align.bl'),'value':'bl'},{'label':_0x52f548(_0x2992d3(0x1dd)),'value':'b'},{'label':_0x52f548(_0x2992d3(0x1fb)),'value':'br'}],_0x372512=_0x1f3db3=>{updateShapeData(_0x273435,_0x25f2aa,_0x44b980,_0xd5cee1,{'oldShapeData':{'fill':_0x21a801?{..._0x21a801}:void 0x0}},{'fill':{..._0x21a801,..._0x1f3db3}});},_0x26b68d=_0x176b33=>{const _0x1cdd92=_0x2992d3;_0x372512({'imageTile':{..._0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x1cdd92(0x290)],..._0x176b33}});},_0x1f8c94=()=>{const _0x16f416=_0x2992d3;var _0x4dca9e;return(_0x4dca9e=_0x41b6e2[_0x16f416(0x419)])===null||_0x4dca9e===void 0x0?void 0x0:_0x4dca9e['click']();},_0x1add58=async _0x515300=>{const _0x7cbe7=_0x2992d3;var _0x4d7a70;const _0x40522a=(_0x4d7a70=_0x515300[_0x7cbe7(0x421)][_0x7cbe7(0x466)])===null||_0x4d7a70===void 0x0?void 0x0:_0x4d7a70[0x0];if(!_0x40522a)return;_0x515300['target'][_0x7cbe7(0x115)]='';const _0xc61177=await _0x554bd1[_0x7cbe7(0x607)](_0x40522a);if(_0xc61177==null)return;const {imageSourceType:_0x4a8099,source:_0x3e7d79,base64Cache:_0x5617b3}=_0xc61177,{image:_0x5963c5}=await(0x0,_univerjs_drawing[_0x7cbe7(0x321)])(_0x5617b3||'');_0x554bd1[_0x7cbe7(0x15d)](_0x3e7d79,_0x4a8099,_0x5963c5),updateShapeData(_0x273435,_0x25f2aa,_0x44b980,_0xd5cee1,{'oldShapeData':{'fill':_0x21a801?{..._0x21a801}:void 0x0}},{'fill':{..._0x21a801,'fillType':_univerjs_pro_engine_shape[_0x7cbe7(0x4bf)]['PictureFill'],'fillImageSource':_0x3e7d79,'fillImageSourceType':_0x4a8099}}),_0x4558a4[_0x7cbe7(0x4f4)]({'unitId':_0x25f2aa,'subUnitId':_0x44b980,'drawingId':_0xd5cee1},_0x5963c5);},_0x5801e5='univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200',_0xf22b96=_0x2992d3(0x597);return(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x1d5),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x5af),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548('sheets-shape.fill.picture.source')}),(0x0,react_jsx_runtime['jsxs'])(_0x2992d3(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x451),{'ref':_0x41b6e2,'type':_0x2992d3(0x5f3),'accept':'image/*','className':_0x2992d3(0x61f),'onChange':_0x1add58}),(0x0,react_jsx_runtime['jsxs'])(_0x2992d3(0x418),{'className':_0x2992d3(0x61e),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('button',{'type':_0x2992d3(0x320),'disabled':_0x216398,'className':_0x2992d3(0x565),'onClick':_0x1f8c94,'children':(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x1a2),{'children':[_0x52f548(_0x2992d3(0x193)),'\x20']})}),_0x2341c7&&(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':_0x2992d3(0x239),'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('img',{'src':_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5cd)],'alt':'','className':'univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover'})})]})]})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('span',{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x2af))}),(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x418),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design['InputNumber'],{'className':_0x2992d3(0x559),'value':_0x3b586d,'disabled':_0x216398,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x3d6da7=>_0x3d6da7+'%','parser':_0x4d73b5=>(_0x4d73b5===null||_0x4d73b5===void 0x0?void 0x0:_0x4d73b5[_0x2992d3(0x4e8)]('%',''))||'','onChange':_0xa6cccb=>{const _0x24cd32=_0x2992d3,_0x115634=(0x64-Math[_0x24cd32(0x216)](0x0,Math[_0x24cd32(0x613)](0x64,_0xa6cccb!==null&&_0xa6cccb!==void 0x0?_0xa6cccb:0x0)))/0x64;_0x388cd8(_0x115634),_0x372512({'imageOpacity':_0x115634}),_0x249fc0[_0x24cd32(0x1b8)](_univerjs_core[_0x24cd32(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x434)],{'checked':_0x406692,'disabled':_0x216398,'onChange':_0x4d502a=>{const _0x24e186=_0x2992d3,_0x5f1c33=_0x4d502a?_univerjs_pro_engine_shape[_0x24e186(0x26c)][_0x24e186(0x16a)]:_univerjs_pro_engine_shape[_0x24e186(0x26c)]['Stretch'];_0xf6a2c3(_0x5f1c33),_0x372512({'imageFillMode':_0x5f1c33});},'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x2992d3(0x63d),'children':_0x52f548(_0x2992d3(0x4c1))})}),_0x406692&&(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x335),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x27f))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':_0x2992d3(0x2aa),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':_0x2992d3(0x559),'value':_0x5bd4d4,'disabled':_0x216398,'step':0x1,'onChange':_0x726598=>{_0x26b68d({'offsetX':_0x726598!==null&&_0x726598!==void 0x0?_0x726598:0x0}),_0x408539(_0x726598!==null&&_0x726598!==void 0x0?_0x726598:0x0);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548('sheets-shape.fill.picture.offsetY')}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':'univer-w-20','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2992d3(0x366)],{'className':'univer-w-full','value':_0x4a9037,'disabled':_0x216398,'step':0x1,'onChange':_0xe371de=>{_0x26b68d({'offsetY':_0xe371de!==null&&_0xe371de!==void 0x0?_0xe371de:0x0}),_0x19c78c(_0xe371de!==null&&_0xe371de!==void 0x0?_0xe371de:0x0);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x20c))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x418),{'className':_0x2992d3(0x2aa),'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x366)],{'className':'univer-w-full','value':_0x5a066f,'disabled':_0x216398,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x53040c=>_0x53040c+'%','parser':_0x1bc976=>(_0x1bc976===null||_0x1bc976===void 0x0?void 0x0:_0x1bc976[_0x2992d3(0x4e8)]('%',''))||'','onChange':_0x276457=>{const _0x33364f=_0x2992d3,_0x3ff966=Math[_0x33364f(0x216)](0.01,(_0x276457!==null&&_0x276457!==void 0x0?_0x276457:0x64)/0x64);_0x5e57bf(_0x3ff966),_0x26b68d({'scaleX':_0x3ff966}),_0x249fc0[_0x33364f(0x1b8)](_univerjs_core[_0x33364f(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('span',{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x44d))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x366)],{'className':_0x2992d3(0x559),'value':_0x22421f,'disabled':_0x216398,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x5820f0=>_0x5820f0+'%','parser':_0x1ad529=>(_0x1ad529===null||_0x1ad529===void 0x0?void 0x0:_0x1ad529['replace']('%',''))||'','onChange':_0x4974d8=>{const _0x4af265=_0x2992d3,_0xad87f0=Math['max'](0.01,(_0x4974d8!==null&&_0x4974d8!==void 0x0?_0x4974d8:0x64)/0x64);_0x43c9c0(_0xad87f0),_0x26b68d({'scaleY':_0xad87f0}),_0x249fc0[_0x4af265(0x1b8)](_univerjs_core[_0x4af265(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x377))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x418),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x2e2)],{'className':_0x2992d3(0x559),'value':_0x252963,'options':_0xfebb96,'disabled':_0x216398,'onChange':_0x557b70=>{_0x2eaae7(_0x557b70),_0x26b68d({'alignment':_0x557b70});}})})]})]}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design['Checkbox'],{'checked':_0x598662,'disabled':_0x216398,'onChange':_0x406835=>{_0x1b7b94(_0x406835),_0x372512({'imageRotateWithShape':_0x406835});},'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':'univer-text-sm','children':_0x52f548('sheets-shape.fill.picture.rotateWithShape')})})]});}function ShapeFillEditor(_0x48f8ae){const _0x12b2f0=_0x3e9a34;var _0x49a273,_0x16aa65,_0xa0171e;const _0x3cac4d=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core[_0x12b2f0(0x398)]),_0x2a7026=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core['ICommandService']),_0x214d84=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core[_0x12b2f0(0x409)]),{shapeData:_0x446095,isLineShape:_0x10a1e0,unitId:_0x44cf3d,subUnitId:_0x4395a5,shapeId:_0x5b9029,disableShapeOption:_0xaf80b4}=_0x48f8ae,[_0x4e0df0,_0x2ff266]=(0x0,react[_0x12b2f0(0x5a1)])(((_0x49a273=_0x446095[_0x12b2f0(0x151)])===null||_0x49a273===void 0x0?void 0x0:_0x49a273['fillType'])||_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0x173)]),[_0x15837b,_0x8516e9]=(0x0,react[_0x12b2f0(0x5a1)])(((_0x16aa65=_0x446095['fill'])===null||_0x16aa65===void 0x0?void 0x0:_0x16aa65[_0x12b2f0(0x436)])||_univerjs_pro_engine_shape[_0x12b2f0(0x49a)][_0x12b2f0(0x151)]),[_0x1db016,_0x1bf5e1]=(0x0,react[_0x12b2f0(0x5a1)])(((_0xa0171e=_0x446095[_0x12b2f0(0x151)])===null||_0xa0171e===void 0x0?void 0x0:_0xa0171e[_0x12b2f0(0x3fd)])||0x1),[_0x548812,_0x507766]=(0x0,react[_0x12b2f0(0x5a1)])(![]);if(_0x10a1e0)return null;const _0x3731c2=0x64-_0x1db016*0x64;return(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x1ae),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_univerjs_design['RadioGroup'],{'value':_0x4e0df0,'disabled':_0xaf80b4,'onChange':_0x65db0f=>{const _0x49fb14=_0x12b2f0;var _0xe65ba1;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{'fillType':(_0xe65ba1=_0x446095[_0x49fb14(0x151)])===null||_0xe65ba1===void 0x0?void 0x0:_0xe65ba1[_0x49fb14(0x49b)]}}},{'fill':{'fillType':_0x65db0f}}),_0x2ff266(_0x65db0f);},'direction':_0x12b2f0(0x561),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x12b2f0(0x474)],'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_0x12b2f0(0x1a2),{'className':'univer-text-sm','children':_0x3cac4d['t'](_0x12b2f0(0x36d))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x12b2f0(0x1c7)],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['SolidFill'],'children':(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x12b2f0(0x63d),'children':_0x3cac4d['t'](_0x12b2f0(0x56a))})}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0xe7)],'children':(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x1a2),{'className':'univer-text-sm','children':_0x3cac4d['t'](_0x12b2f0(0x543))})}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x1c7)],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['PictureFill'],'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('span',{'className':'univer-text-sm','children':_0x3cac4d['t']('sheets-shape.fill.pictureFill')})})]}),_0x4e0df0===_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0x173)]&&(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])('div',{'className':_0x12b2f0(0x4d3),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])('div',{'className':_0x12b2f0(0x433),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('span',{'className':_0x12b2f0(0x1e7),'children':_0x3cac4d['t'](_0x12b2f0(0x55e))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Dropdown'],{'disabled':_0xaf80b4,'overlay':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('div',{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x3df)],{'value':_0x15837b,'onChange':_0x33e7cb=>{const _0x245262=_0x12b2f0;var _0xf17594;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{'color':(_0xf17594=_0x446095[_0x245262(0x151)])===null||_0xf17594===void 0x0?void 0x0:_0xf17594[_0x245262(0x436)]}}},{'fill':{'color':_0x33e7cb}}),_0x8516e9(_0x33e7cb),_0x507766(![]);}})}),'open':_0x548812,'onOpenChange':_0x507766,'children':(0x0,react_jsx_runtime['jsxs'])('a',{'className':_0x12b2f0(0x392),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':_0x12b2f0(0x657),'extend':{'colorChannel1':_0x15837b}}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_icons[_0x12b2f0(0x580)],{'className':(0x0,_univerjs_design['clsx'])(_0x12b2f0(0x2d5),{'univer-rotate-180':_0x548812})})]})})]}),(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x597),'children':[(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x1a2),{'className':_0x12b2f0(0x3e8),'children':_0x3cac4d['t']('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x475),'children':(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x2aa),'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x366)],{'className':_0x12b2f0(0x559),'value':_0x3731c2,'disabled':_0xaf80b4,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x397199=>_0x397199+'%','parser':_0xa5df5=>(_0xa5df5===null||_0xa5df5===void 0x0?void 0x0:_0xa5df5[_0x12b2f0(0x4e8)]('%',''))||'','onChange':_0x60f159=>{const _0x5c699f=_0x12b2f0,_0x3e7a54=(0x64-Math[_0x5c699f(0x216)](0x0,Math[_0x5c699f(0x613)](0x64,_0x60f159!==null&&_0x60f159!==void 0x0?_0x60f159:0x0)))/0x64;_0x1bf5e1(_0x3e7a54),updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{..._0x446095['fill'],'fillType':_0x4e0df0}}},{'fill':{..._0x446095[_0x5c699f(0x151)],'fillType':_0x4e0df0,'opacity':_0x3e7a54}}),_0x214d84['setContextValue'](_univerjs_core[_0x5c699f(0x202)],![]);},'onFocus':()=>_0x214d84['setContextValue'](_univerjs_core[_0x12b2f0(0x202)],!![]),'onBlur':()=>{const _0x4e7fcf=_0x12b2f0;_0x214d84[_0x4e7fcf(0x1b8)](_univerjs_core[_0x4e7fcf(0x202)],![]);}})})})]})]}),_0x4e0df0===_univerjs_pro_engine_shape['ShapeFillEnum'][_0x12b2f0(0xe7)]&&(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(GradientFillEditor,{'shapeData':_0x446095,'disableShapeOption':_0xaf80b4,'onUpdate':_0x31d16e=>{const _0x3db8e6=_0x12b2f0;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{..._0x446095[_0x3db8e6(0x151)]}}},{'fill':{..._0x446095[_0x3db8e6(0x151)],..._0x31d16e}});}}),_0x4e0df0===_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['PictureFill']&&(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(ShapeImageFillEditor,{'unitId':_0x44cf3d,'subUnitId':_0x4395a5,'shapeId':_0x5b9029,'shapeData':_0x446095,'disableShapeOption':_0xaf80b4})]});}function shapeGradientTypeToPickerType(_0x5135fd){const _0x40e2da=_0x3e9a34;switch(_0x5135fd){case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x5a8)]:return _0x40e2da(0x22d);case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x1ca)]:return _0x40e2da(0x452);case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x2cd)]:return'angular';case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x20d)]:return _0x40e2da(0x2a6);default:return _0x40e2da(0x22d);}}function pickerTypeToShapeGradientType(_0x3a3f28){const _0x19ee92=_0x3e9a34;switch(_0x3a3f28){case'linear':return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x5a8)];case _0x19ee92(0x452):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)]['Radial'];case _0x19ee92(0x3cf):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x2cd)];case _0x19ee92(0x2a6):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x20d)];default:return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x5a8)];}}function _0x501b(){const _0x3735fd=['FlowchartDecision','ShapeActionButtonHomeIcon','ancestorTransform','1140535ypHKRN','FlowchartOffPageConnector','isCurvedConnectorShape','Sun','ShapeMathNotEqualIcon','_registerDrawingMoveHandler','getTransformer','translate','_getZoomRatio','InsertShapeCommand','getCurrentScrollState','map','getShapeModel','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','Documents','find','IrregularSeal1','DependentOn','_isStartConnectorPoint','_shapeTextEditingService','shape.type.flow-chart-connector','ActionButtonInformation','_handleConnectedEndpointMove','Star7','IUniverInstanceService','_updateShapeAdjustControls','Star16','shape.type.block-arc','sheets-shape.fill.gradientFill','undefined','ShapeMathEqualIcon','removeLinePoints','PieWedge','DocumentDataModel','shape.type.star10','align.right','KeyCode','shape.type.straight-connector2','clear','unsubscribe','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','shape.type.wave','lineJoinType','Star8','image-panel.crop.shape','update$','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','restore','_getConnectPointInfo','shape.type.flow-chart-predefined-process','univer-w-full','shape.type.line-inv','worldPoint','ShapeBentConnector3Arrow1Icon','_subUnitId','sheets-shape.fill.color','shape.type.left-right-arrow','ShapeBorderCallout3Icon','vertical','subscribe','FlowchartOnlineStorage','transformToDrawingPosition','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','updateContext','sheets-shape.line.endArrowType','ctr','shape.type.math-multiply','sheets-shape.fill.solidFill','_drawingRenderService','isHitLine','align.middle','getAdjustNames','WedgeRoundRectCallout','shape.type.uturn-arrow','classType','ConnectorCoordinateTransform','BOTTOM','redo','onPointerUp$','visible','ShapeGear6Icon','shape.type.plaque','shape.type.callout3','ShapeQuadArrowIcon','LEFT','LineInv','setAdjustValueByName','_resetState','ShapeWedgeRoundRectCalloutIcon','MoreDownIcon','updateConnectionDetection','Star12','clip-adj-','Tools','highlighted','FoldedCorner','ShapeRound2DiagRectIcon','shape.type.curved-connector3-arrow1','updateDocumentStyle','START','UNIVER_SHEET','getBatchAddOp','getFreeze','disposeWithMe','_transformCalculateSrcRect','ShapeLeftArrowIcon','executeCommand','capType','#ffffff','sheets-shape.openPanel','ShapeFlowChartOffpageConnectorIcon','MathNotEqual','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','InsertSheetsShapeMutation','univer-rounded-lg\x20univer-p-3','ShapeFlowChartProcessIcon','offsetX','Shape','shape.type.gear9','mainComponent','Miter','DrawingImageClipService','useState','registerFeatureMenuOffset','_currentUniverService','shape.type.ribbon2','shape.type.cube','Snip2SameRect','name','Linear','Bevel','close','SwooshArrow','has','_sheetDrawingService','_activeImageId','univer-flex\x20univer-flex-col\x20univer-gap-2','_registerGroupFeaturePasteHook','ShapeStraightConnector2Icon','ShapeStar4Icon','CROSSHAIR','blur','RoundRect','ShapeParallelogramIcon','sheet.operation.close-sheet-shape-format-panel','_getDrawingRect','ShapeEllipseRibbonIcon','sheets-shape.line.sketchType.title','_sheetCanvasPopManagerService','getDrawingData','_executeConnectedRouteConnectionCommand','gdRefX','sheets-shape.line.arrowSize.medium','flowchart','ShapeBracketPairIcon','CurvedUpArrow','_findNearestConnectionSite','PlaqueTabs','Round','PictureFill','next','LongDash','SHEET_VIEWPORT_KEY','shape.type.rect-textbox-horizontal','_renderManagerService','Pentagon','fillImageSource','shape.type.bent-arrow','shape.type.flow-chart-decision','verticalAlign','touchDependencies','ShapeFrameIcon','BlockArc','_localeService','IDrawingManagerService','subUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Circle','BentArrow','imageRotateWithShape','documentStyle','ISidebarService','ShapeMoonIcon','lineType','SetShapeDrawingDataCommand','shape.type.corner','_univerInstanceService','createInternalEditorID','merge','worksheet','WrapStrategy','CommandType','_updateAdjustControlPositions','_targetShapeId','error','drawing.operation.set-drawing-active','_handleBasicShapeUpdateConnectorLineShape','drawingType','HorizontalAlign','localeService','Decagon','setShapeData','_baseShapeWidth','sheets-shape.line.arrowType.arrow','file','_componentManager','undo','getBasicShapeRotateBound','FlowchartPunchedCard','adjName','getAdjustValueByName','RightBracket','IrregularSeal2','_baseShapeHeight','offset','setShapeProps','getRealBound','transform','useObservable','shape.type.snip-round-rect','deepClone','shape.type.action-button-beginning','rotation','ShapeDoubleWaveIcon','saveImage','_drawingType','Corner','getCurrentSkeleton','ShapeUturnArrowIcon','getCanvasElement','SetShapeTextFontSizeIncreaseCommand','ShapeFlowChartSortIcon','ShapeRightArrowCalloutIcon','shape.type.action-button-home','isArray','shape.type.can','min','call','ShapeFlowChartCollateIcon','ShapeRightBracketIcon','FlowchartMagneticDrum','getAncestorScale','getDrawingByParam','shape.type.flow-chart-preparation','NoSmoking','index','ShapeBevelIcon','group\x20univer-relative\x20univer-inline-block','univer-hidden','shape.type.ellipse','FlowchartConnector','Hexagon','syncExecuteCommand','Callout3','shape.type.curved-right-arrow','shape.type.action-button-return','ShapeLineIcon','AlignBottomIcon','RightTriangle','starAndBanner','registerCommand','PaintBucketDoubleIcon','angle','shape.type.home-plate','_drawShapeText','OPERATION','ShapeBorderCallout2Icon','clip','_findShapeAtPoint','getStartConnectInfo','ShapeFlowChartPunchedCardIcon','_cxtHandlerPointerMove','symbol','toolbar.horizontalAlignMode.main','_currentConnectionTarget','shape-adjust-point-','clearAdjustControls','defineProperty','univer-text-sm','iterator','sheets-shape.shapeStyle','add$','Line','discreteRangeToRange','clipByShape','RibbonInsertGroup','shape.type.curved-down-arrow','scaleX','ShapeBentConnector3Icon','shape.type.bent-up-arrow','getAdjustInfoByName','SetDrawingApplyMutation','ShapeSnipRoundRectIcon','gradientType','ShapeDecagonIcon','getSkeleton','jsx','subscribeContextValue$','shape.type.rt-triangle','generateRandomId','_sheetShapeAdjustController','isConnectorShape','ShapeActionButtonBlankIcon','horizontalAlign','univer-text-xl\x20univer-text-gray-500','ShapeFlowChartOnlineStorageIcon','getActualSize','RightArrow','_closeShapeEditPanel','_registerComponent','_clearShapeAdjustControls','Curved','isDrawingObject','getDrawingPoints','_isOpenedShapeEditPanel','isNaN','useDependency','updateLinePoints','CloudCallout','_initCommands','align.center','ShapeLeftRightArrowCalloutIcon','univer-relative\x20univer-size-full\x20univer-overflow-visible','invert','shape.type.round2-same-rect','basicShape','ShapeWedgeRectCalloutIcon','FlowchartExtract','dataModel','left','getTransformerByCreate','ShapeNotchedRightArrowIcon','equationShape','LAYOUT','ShapeLeftBracketIcon','GradientFill','shape.type.border-callout3','ShapeAccentCallout2Icon','ShapeHexagonIcon','ShapeDownArrowIcon','shape.type.corner-tabs','Plugin','params','getEndConnectInfo','ShapeStar7Icon','univer-text-gray-500','HorizontalScroll','sheet.command.set-shape-text-font-size-increase','SquareTabs','ShapeActionButtonInformationIcon','shape.type.ellipse-ribbon','_setTransForm','pushUndoRedo','ShapeSquareTabsIcon','localToWorld','ShapeChartStarIcon','URL','_sheetsShapeService','Button','mergeMenu','rectangle','ActionButtonEnd','ShapeStar32Icon','ShapeQuadArrowCalloutIcon','SmileyFace','AccentCallout1','shape.type.star4','render','calculate','shape-text-editor','ShapeLeftArrowCalloutIcon','AlignOperationCommand','SheetsSelectionsService','Transform','Medium','Large','Heart','DiagStripe','setTimeout','shape.type.accent-border-callout3','ShapeUpArrowCalloutIcon','value','_drawSimpleText','ShapeAccentBorderCallout1Icon','drawWith','Gear6','rect','shape.type.quad-arrow','LeftRightCircularArrow','ShapeLeftUpArrowIcon','stopPropagation','useEffect','cxnIndex','DiamondArrow','onDblclick$','NoLine','ShapeTeardropIcon','BracePair','ShapeTypeEnum','sheet.shape.edit.panel','Disposable','ShapeSketchTypeEnum','ActionButtonHome','multiply','gdRefY','_baseDrawingRect','connector-handler-','sheets-shape.rotateLeft90','FOCUSING_COMMON_DRAWINGS','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','adjustValues','_moveConnectorWithShape','ShapeBentArrowIcon','FlowchartSummingJunction','UpArrowCallout','8127691zzHaLu','ActionButtonBlank','ShapeSnip2DiagRectIcon','Callout2','getConnectionSiteList','setCanUseShapeClip','MathDivide','RemoveSheetsShapeMutation','Funnel','DRAWING_IMAGE','sheet.command.menu-insert-shape','type','ShapeCornerIcon','shape.type.math-divide','endArrow','getMatrix','shape.type.pentagon','#FFFFFF','src','align.top','sqrt','changeStart$','Star32','shape.type.star16','_initSelection','IConfigService','fill','ShapeAccentCallout3Icon','getShapeDataById','ShapeOctagonIcon','shape.type.flow-chart-collate','top','ShapeLeftCircularArrowIcon','sheets-shape.fill.picture.align.t','_activeAdjustInfo','shape.type.action-button-movie','Flat','BentUpArrow','addImageSourceCache','ShapeIrregularSeal2Icon','ShapeMathDivideIcon','addClipboardHook','offsetY','_clearConnectionSites','Rect','ShapeCurvedLeftArrowIcon','useAbsolutePosition','LeftCircularArrow','shape.type.striped-right-arrow','shape.type.pie','useEditor','Tile','PREDEFINED_HOOK_NAME','ShapeHomePlateIcon','sheets-shape.fill.title','shape.type.flow-chart-delay','FlowchartDocument','stops','getDrawingShapeKeyByDrawingSearch','sheets-shape.toggleTextVertical','SolidFill','RoundDot','_highlightedSiteIndex','VerticalScroll','7jhvToo','_initEvents','shape.type.flow-chart-terminator','getBentTypeFromPoints','ShapeDodecagonIcon','shape.type.border-callout2','getRenderById','_contextService','sheets-shape.toggleFlipV','entries','ThemeService','SolidLine','width','_sidebarService','sheets-shape.line.beginArrowSize','editingParams$','shape.type.curved-up-arrow','focus$','ToggleSheetsShapeFlipCommand','clsx','addObject','shape.type.flow-chart-extract','collapsed','ShapeRightArrowIcon','style','shape.type.left-circular-arrow','_createControls','_lastEditingShapeKey','sheets-shape.fill.picture.insert','shape-text-editor-position-wrapper','primary.600','_shapeId','Snip1Rect','shape.type.double-wave','dispose','_activeShapeModel','updateDocumentRenderConfig','isFinite','ActionButtonForwardNext','sheets-shape.hidePanel','UniverSheetsShapeUIPlugin','getShapeTypeById','CurvedLeftArrow','span','save','sheets-shape.formatShape','getInverseCoord','DownArrowCallout','_executeResizeCommand','section','_createShapeAdjustControls','worldPoints','shape.type.line','isHorizontal','shape.type.snip2-diag-rect','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeTrapezoidIcon','Parallelogram','ShapeRoundRectIcon','sheet.command.set-shape-text-font-size','SheetDrawingAnchor','keys','shape.type.chord','scaleY','shape.type.chart-x','setContextValue','BentConnector3','sheets-shape.line.joinType.round','ShapeUpDownArrowCalloutIcon','univer-pt-2','DRAWING_OBJECT_LAYER_INDEX','_getConnectionSiteAngle','shape.type.star7','LightningBolt','shape.type.circular-arrow','create','shape.type.callout1','ShapeActionButtonBackPreviousIcon','isStartConnectorPoint','point','Radio','shape.type.swoosh-arrow','ShapeBentConnector3Arrow2Icon','Radial','cos','paragraphStyle','_loadShapePictureFill','startX','with','shape.type.curved-left-arrow','_registerImageShapeClipDelegate','startOffset','ChartPlus','_isConnecting','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','translateWithPrecision','shape.type.left-arrow','setEditing','sketchType','ChartX','shape.type.math-plus','lineShapeId','sheets-shape.fill.picture.align.b','Vector2','shape.type.notched-right-arrow','BreakLineCommand','activeSheet$','pipe','renderDrawingShape','UniverSheetsDrawingUIPlugin','GradientColorPicker','FlowchartOr','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','computeStraightConnectorLayout','_activeShapeInfo','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','_initPermission','ShapeFlowChartPredefinedProcessIcon','_sheetDrawingShapeRenderController','_init','ShapeChevronIcon','prototype','shape.type.square-tabs','getColorFromTheme','shape.type.flow-chart-offline-storage','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','_handleConnectedEndpointPointerUp','_shapeService','isHit','string','ShapeRound1RectIcon','ShapeAccentCallout1Icon','sheets-shape.fill.picture.align.br','ShapeSnip2SameRectIcon','SetSheetsShapeRotateCommand','Plaque','_generateCutPasteMutations','Dash','ShapeArrowSizeEnum','FOCUSING_PANEL_EDITOR','setCursor','sheets-shape.line.beginArrowType','ShapeRightBraceIcon','_initialize','ShapeHalfFrameIcon','VIEW_MAIN','_generatePasteMutations','getConnectorLinePoints','univer-size-full','sheets-shape.fill.picture.scaleX','Diamond','MenuItemType','_props','DEFAULT_PASTE','rowStartY','Teardrop','cxnPointFill','from','Dodecagon','max','_rerouteConnectorLine','EMPTY','SheetPermissionCheckController','LongDashDotDot','ShapeArcIcon','getObjectIncludeInGroup','setDocumentData','ShapePlaqueIcon','indexOf','shape.type.horizontal-scroll','_clearControls','ShapeChartXIcon','onPointerMove$','DocumentSkeleton','getBatchRemoveOp','pluginName','transformByState','abs','UNIVER_DOC','ShapeLeftRightRibbonIcon','shape.type.left-right-up-arrow','blockArrow','linear','sheets-shape.line.joinType.miter','Accordion','ShapeFlowChartMagneticDrumIcon','shape.type.star32','ShapeBorderCallout1Icon','UUID','getZoomRatio','BorderCallout3','function','setHighlighted','horizontal','\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','worldRect','_getImagePrstGeom','connection-site-','ShapeFolderCornerIcon','shape.type.flow-chart-document','computeConnectorResizeLayout','ShapeCurvedConnector3Arrow1Icon','_loadAndSetImage','RightJustifyingIcon','SnipRoundRect','srcRect','_draggingConnectorId','ShapeRibbonIcon','Octagon','shape.type.rect','getSheetCommandTarget','Chevron','ShapeLeftRightArrowIcon','ShapeFlowChartManualOperationIcon','sheet.command.set-shape-text-font-size-decrease','jsxs','shapeType','IUndoRedoService','shape.type.round2-diag-rect','floor','9GVKqeU','__esModule','_baseHeight','#000000','shape.type.heart','isInGroup','RemoveSheetDrawingCommand','shape.type.flow-chart-offpage-connector','isLineShape','shape.type.flow-chart-multidocument','onStarting','shape.type.bent-connector3-arrow1','blockExecuteWithoutPermission','onerror','BorderCallout2','_copyInfo','shape.type.accent-border-callout1','_connectionSiteObjects','parseFloat','_executeConnectionCommand','align.bottom','disableShapeOption','DoubleWave','UpDownArrowCallout','toolbar.fillColor.main','ImageFillModeEnum','resetCursor','sheets-shape.toggleFlipH','shape.type.flow-chart-or','shape.type.chart-star','ActionButtonDocument','_imageIoService','routeConnectorLineShape','ShapeStar16Icon','ISheetDrawingService','relation','ShapeRound2SameRectIcon','data','\x20px','rotate(','WedgeEllipseCallout','RichTextEditingMutation','sheets-shape.line.dashType.longDashDotDot','ShapeTextEditorContainer','sheets-shape.fill.picture.offsetX','ENTER','shape.type.lightning-bolt','shape.type.bent-connector3-arrow2','FlowchartManualInput','onPointerDown$','sheets-shape.line.dashType.roundDot','POSITIVE_INFINITY','AccentCallout2','UniverSheetsShapePlugin','forEach','ShapeSmileyFaceIcon','hasOwnProperty','FlowchartManualOperation','toolbar.resetColor','toDisposable','shape.type.folder-corner','imageTile','ShapeCurvedRightArrowIcon','useLeftAndRightArrow','onTransformChange$','ShapeMathPlusIcon','_drawRichText','normal','ShapeUpDownArrowIcon','DrawingApplyType','getSheetBySheetId','shape.type.action-button-document','ShapeFlowChartMagneticTapeIcon','CurvedConnector3','#bcbcbc','toolbar.verticalAlignMode.main','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','_groupCopyPasteController','shape.type.flow-chart-alternate-process','ShapeVerticalScrollIcon','ShapeFlowChartDocumentIcon','scene','StraightConnector1','diamond','stroke','ShapeFlowChartExtractIcon','useKeyboardEvent','univer-w-20','TOP','ShapeGradientTypeEnum','ShapeNonIsoscelesTrapezoidIcon','end','sheets-shape.fill.transparency','ChartStar','ShapeFlowChartConnectorIcon','SHEET_SHAPE_UI_PLUGIN','shape.type.arc','ShapeRtTriangleIcon','LeftArrowCallout','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','ShapeBlockArcIcon','Wave','4QtrlXM','_sheetClipboardService','ShapeCornerTabsIcon','Ribbon','getDrawingOrder','Star4','FlowchartCollate','IEditorService','ShapeCallout3Icon','ShapeStar6Icon','ShapeEllipseRibbon2Icon','sheets-shape.line.arrowSize.large','RibbonStartGroup','ShapeFlowChartPreparationIcon','onRendered','UpdateConnectorRelationCommand','sheets-shape-ui','FlowchartTerminator','_sheetSkeletonService','ShapeFlowChartSummingJunctionIcon','Angular','attachRangeWithCoord','ShapeStripedRightArrowIcon','getConnectionRelation','_getImageDrawingInfo','toStringTag','SetInlineFormatTextBackgroundColorCommand','CopySheetCommand','univer-text-gray-600\x20univer-transition-transform','getSkeletonParam','33DNpFEV','_openShapeEditPanel','get','LeftRightArrow','shape.type.parallelogram','CENTER','push','ShapeArrowTypeEnum','shape-text-','_initEditingParams','renderConfig','Select','ShapeLineTypeEnum','_activeShapeId','_registerFocusChangeHandler','_handleConnectorPointerUp','COLOR_PICKER_COMPONENT','icon','ShapeFlowChartAlternateProcessIcon','WedgeRectCallout','ShapeFlowChartOfflineStorageIcon','useRef','_hasReset','marginTop','_getShapeAdjustInfosById','_getShapeInfo','Observable','SELECTOR','DocumentViewModel','univer-w-28','flipX','shape.type.no-smoking','_updateSrcRectByTransform','ShapeLeftRightUpArrowIcon','Frame','WRAP','beforeCommandExecuted','_registerDrawingFocusChangeHandler','ShapeIrregularSeal1Icon','CUT','FlowchartMerge','VERTICAL_ROTATE_ANGLE','_reset','resize','ShapeDonutIcon','changing$','SHAPE','setShouldShowAdjust','_adjName','sheets-shape.fill.picture.align.tl','makeDirty','sheetTransform','doc','ShapeSwooshArrowIcon','shape.type.flow-chart-manual-input','add','getState','_adjHandlerPointerMove','shape.type.sun','ShapeFlowChartDelayIcon','stringify','LeftJustifyingIcon','_addShapeAdjustControl','getParent','INSERT','ShapeFlowChartPunchedTapeIcon','None','setPrstGeomAdjValues','shape.type.round1-rect','remove$','prstGeom','_initSheetChange','VIEW_MAIN_TOP','button','getImageSize','CURSOR_TYPE','ShapeDocAlignCommand','_unitId','cxnPointRadius','ShapePieWedgeIcon','shape.type.cloud-callout','ShapeLineDashEnum','parse','OpenArrow','ShapeEllipseIcon','shape.type.right-arrow-callout','body','ShapePieIcon','clearTimeout','sheet.command.update-shape-data','_updateTransform','complete','some','ShapeCanIcon','\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','useMemo','34042jBhqhi','ShapePentagonIcon','shape.type.bevel','FlowChartOfflineStorage','sheets-shape.line.capType.square','_draw','targetShapeId','ActionButtonBeginning','getViewportByCell','shape.type.accent-callout1','_initMenu','applyPoint','WorksheetEditPermission','DrawingRenderService','subscribeEvent','_sheetInterceptorService','DashDot','focusDrawing','shape.type.flow-chart-summing-junction','FlowchartMagneticTape','getOwnPropertyDescriptor','insertGroupObject','shape.type.irregular-seal2','COPY_TYPE','_getSceneAndTransformerByDrawingSearch','getPrototypeOf','BUTTON_SELECTOR','switchMap','_activeTargetShapeId','REMOVE','UpdateShapeDataCommand','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','ShapeDownArrowCalloutIcon','COMMAND','sheets-shape.line.sketchType.freehand','default','_isDrawingShapePointDown','_isHighlighted','flipY','IRenderManagerService','shape.type.left-arrow-callout','ShapeChordIcon','shape.type.funnel','getDrawingEditable','_commandService','getCurrentRangeDisable$','objects','InputNumber','open','setOnSavingEditorData','shape.type.quad-arrow-callout','shape.type.flow-chart-punched-card','WorkbookEditablePermission','shape.type.flow-chart-magnetic-drum','sheets-shape.fill.noFill','EllipseRibbon','shape.type.left-up-arrow','object','setSrcRect','_addShapeConnectorHandlerObjects','SHAPE_TEXT','SetShapeTextVerticalAlignCommand','_addShapeConnectorHandlerObject','ShapeRectTextboxVerticalIcon','sheets-shape.fill.picture.alignment','ShapeCurvedUpArrowIcon','_createCopyInfoByRange','computeConnectorRouteLayout','height','_drawingAddListener','ShapeDiagStripeIcon','shape.type.callout2','_connectorObjects','sheets-shape.line.dashType.longDashDot','FlowchartDisplay','21464ijdsHc','shape.type.bent-connector3','UpArrow','_insertShapes','getUnitId','ActionButtonReturn','_registerShapeMenu','oKey','_attachAdjustEvent','ShapeBentUpArrowIcon','shape.type.flow-chart-sort','sheetViewStartColumn','ImageSourceTypeEnum','ShapeFunnelIcon','shape.type.wedge-ellipse-callout','setZoomRatio','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','ShapeCallout1Icon','ShapeStar24Icon','FlowchartPredefinedProcess','sheets-shape.line.arrowType.ovalArrow','ShapeCloudCalloutIcon','LocaleService','startArrow','BehaviorSubject','getCurrentLastSelection','updateDocumentDataMargin','UPDATE','Small','setFillImage','MIDDLE','SheetsShapeService','HalfFrame','VerticalCenterIcon','constructor','Module','_handleFreeEndpointMove','sheets-shape.line.capType.flat','getBatchUpdateOp','shape.type.brace-pair','shape.type.snip1-rect','shape.type.math-minus','shape.type.teardrop','changeShapeType','_imageShapeClipController','shape.type.border-callout1','shape.type.diamond','IMenuManagerService','_baseLeft','shape.type.right-bracket','FlowchartDelay','onCommandExecuted','adjHandleSize','ActionButtonHelp','bind','_getShapeAdjustPointListById','LongDashDot','ShapeActionButtonHelpIcon','1822080IKCcXs','refreshTransform','_isShouldShowDrawingShapeAdjust','shape.type.up-arrow','shape.type.action-button-end','shape.type.rect-textbox-vertical','ShapeFlowChartMagneticDiskIcon','getObject','prstGeomAdjValues','disableObjectsEvent','ang','getCurrentTypeOfUnit$','shape.type.smiley-face','custom','shape.type.action-button-forward-next','FlowchartAlternateProcess','_activeShapeAdjustPointList','shape.type.star24','IImageIoService','angular','Round1Rect','slice','ISheetClipboardService','ShapeCallout2Icon','ShapeActionButtonForwardNextIcon','shape-text-editor-content','sheets-shape.fill.picture.align.r','Callout1','ShapeHeartIcon','warn','sheets-shape.line.arrowType.none','ShapePlusIcon','SheetCanvasPopManagerService','ShapeGear9Icon','shape.type.snip2-same-rect','ColorPicker','imageFillMode','DownArrow','shape.type.plaque-tabs','ActionButtonBackPrevious','none','ShapeFlowChartMultidocumentIcon','UpDownArrow','clone','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ShapeFlowChartTerminatorIcon','AccentBorderCallout3','ShapeChartPlusIcon','1402068pjmLqR','ShapeWedgeEllipseCalloutIcon','SheetsDrawingGroupCopyPasteController','FlowchartMagneticDisk','gdRefR','_cxnIndex','shape.type.straight-connector1','sheets-shape.line.joinType.bevel','dashType','editorHeight','ShapeActionButtonMovieIcon','ICommandService','composeMatrix','getDrawingVisible','_sidebarDisposable','ShapeStar12Icon','DRAWING_SHAPE','opacity','toPrimitive','pick','shape.type.gear6','FORMAT','shapeData','Path','MathMinus','register','SetShapeTextFontSizeDecreaseCommand','domX','Square','IContextService','setSelectionRanges','ShapeUpArrowIcon','ShapeAccentBorderCallout2Icon','_executeConnectedRouteResizeCommand','getDrawingSearch','ShapePlaqueTabsIcon','sheets-shape.line.width','ShapeAccentBorderCallout3Icon','SheetSkeletonManagerService','_injector','shape.type.math-not-equal','MEDIA','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','registerClipDelegate','div','current','_registerOperations','ShapeActionButtonDocumentIcon','Image','adjHandleStroke','sheets-shape.shapePosition','VIEW_MAIN_LEFT','domY','target','Cube','Ribbon2','ShapeLeftBraceIcon','imageOpacity','QuadArrow','ShapeMathMultiplyIcon','shape.type.down-arrow-callout','ShapeStar10Icon','getViewport','ShapeActionButtonBeginningIcon','StripedRightArrow','getValue','displayName','shape.type.wedge-round-rect-callout','getDocumentData','startConnectionDetection','shape.type.moon','univer-flex\x20univer-items-center\x20univer-justify-between','Checkbox','FlowchartMultiDocument','color','onload','univer-box-border\x20univer-px-4\x20univer-text-sm','startWith','SquareDot','CurvedRightArrow','Round2SameRect','shape.type.non-isosceles-trapezoid','clearAdjustValue','size','length','_shapeUpdateListener','_currentScene','ShapeCubeIcon','univer-text-primary-600','calcAdjValue','getShapeTextRect','isEditing','preValue','sheets-shape.line.sketchType.handDrawn','Trapezoid','CircularArrow','_baseShapeTop','sheets-shape.fill.picture.scaleY','Pie','univer-mb-2','shape.type.flow-chart-punched-tape','input','radial','BUTTON','LeftBracket','wrapStrategy','shape.type.star8','Star6','registerRenderModule','getShapeTextData','draw','SheetInterceptorService','shape.type.up-down-arrow','strokeWidth','shape.type.irregular-seal1','ShapeRectTextboxHorizontalIcon','getBasicShapeRelation','_getOrCreateShapeModel','shape.type.left-brace','ShapeDiamondIcon','ShapeActionButtonEndIcon','sheets-shape.line.dashType.dash','files','getMenuHiddenObservable','UpdateLineShapeResizeCommand','_urlImageService','shape.type.curved-connector3-arrow2','shape.type.plus','sheets-shape.line.capType.title','DrawingCommonPanel','getUnit','sheets-shape.line.title','getShapeData','_baseTop','shape.type.curved-connector3','IURLImageService','NoFill','univer-flex\x20univer-items-center\x20univer-gap-3','shape.type.flow-chart-internal-storage','ShapeCurvedDownArrowIcon','getShapeType','sin','shape.type.star12','refreshAdjustControls','round','sheets-shape.line.dashType.title','ShapeFlowChartInputOutputIcon','ShapeStar5Icon','SheetScrollManagerService','gradientStops','RibbonPosition','shape.type.flow-chart-input-output','sheetViewStartRow','shape.group.','vertexAngle','HandDrawn','getConnectionInfo','memo','VerticalAlign','ShapeLightningBoltIcon','other','ShapeSnip1RectIcon','_clipService','alignment','FlowchartPunchedTape','_baseWidth','_sheetPermissionCheckController','RemoveSheetCommand','AlignTopIcon','ShapeLineCapEnum','Ellipse','BorderCallout1','startY','ShapeStraightConnector1Icon','ShapeDefaultConfig','fillType','_cxtHandlerPointerUp','DRAWING_DOM','FlowChartInputOutput','ShapeActionButtonReturnIcon','shape.type.diag-stripe','_isImagePointerDown','GROUP','shape.type.donut','shape.type.pie-wedge','ShapeLeftRightCircularArrowIcon','getFocusDrawings','_baseShapeLeft','unitId','ShapeStar8Icon','viewportScrollX','Arrow','shapeId','sheets-shape.line.capType.round','_showConnectionSites','_initCopyPaste','isHighlighted','DocSkeletonManagerService','shape.type.cloud','ShapeFlowChartOrIcon','sheets-shape.line.dashType.dashDot','adjHandleFill','Inject','ShapeFlowChartManualInputIcon','values','colStartX','Solid','ShapeRibbon2Icon','_shapes','ShapeActionButtonSoundIcon','_editingParams$','ShapeFillEnum','changeEnd$','sheets-shape.fill.picture.tileAsTexture','Moon','ShapeLineInvIcon','ShapeCurvedConnector3Icon','drawingId','shape.type.heptagon','start','ShapeCurvedConnector3Arrow2Icon','Triangle','isRenderLinePointsMode','_sheetBasicShapeConnectionPointController','shape.type.vertical-scroll','UniverInstanceType','align.left','_updateImageAdjValues','_drawingManagerService','ShapeWaveIcon','ShapeFlowChartDecisionIcon','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','_handleFreeEndpointPointerUp','ShapeCircularArrowIcon','decorate','beginPath','shape.type.flow-chart-display','ComponentManager','shape.type.math-equal','shape.type.right-arrow','shape.type.left-right-ribbon','ShapeFlowChartDisplayIcon','gdRefAng','ShapeModel','MathPlus','asObservable','sheets-shape.insertShape','registerFeaturePasteHook','shapeModel','sheet.command.set-shape-text-horizontal-align','ShapeHeptagonIcon','ShapeIcon','replace','_activeAdjustPointList','copyType','enumerable','_focusedDrawings','Star24','ShapeFlowChartInternalStorageIcon','ShapeCloudIcon','Dropdown','@univerjs-pro/sheets-shape-ui','HomePlate','AccentBorderCallout2','updateShapeFillImage','ShapeLineJoinEnum','_adjHandlerPointerUp','ShapeRectIcon','RENDER_CLASS_TYPE','sheets-shape.line.endArrowSize','auto','MathMultiply','enableObjectsEvent','getImage','_clearShapeConnectorHandlerObjects','line','RadioGroup','_transform','ShapeFlowChartMergeIcon','setPrstGeom','group','ShapeHorizontalScrollIcon','DrawingTypeEnum','_getScrollInfo','callout','getShapePopupMenus','ShapeTriangleIcon','shapeKey','_generateCopyPasteMutations','_isStartAdjusting','_context','filter','_onSavingEditorData$','onScrollAfter$','getEditing','textRect','_calculateFreeEndpointAngle','shape.type.star5','includes','ResetInlineFormatTextBackgroundColorCommand','getContextValue','VIEW_MAIN_LEFT_TOP','sheets-shape.line.dashType.squareDot','image','buildClipPath','shape.type.left-bracket','CurvedDownArrow','useCallback','viewportScrollY','dataStream','SetShapeTextHorizontalAlignCommand','3289490pEUHXW'];_0x501b=function(){return _0x3735fd;};return _0x501b();}function GradientFillEditor(_0x4d8012){const _0xc1414c=_0x3e9a34,{shapeData:_0x27b2e3,disableShapeOption:_0x33b7ec,onUpdate:_0x20f144}=_0x4d8012,_0x2ac570=(0x0,react[_0xc1414c(0x336)])(()=>{const _0x415af7=_0xc1414c;var _0x5cfc2e;const _0x330601=_0x27b2e3[_0x415af7(0x151)];return{'type':shapeGradientTypeToPickerType(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x64c)]),'angle':(_0x5cfc2e=_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601['gradientAngle'])!==null&&_0x5cfc2e!==void 0x0?_0x5cfc2e:0x5a,'stops':(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x481)])&&_0x330601[_0x415af7(0x481)][_0x415af7(0x440)]>=0x2?_0x330601[_0x415af7(0x481)][_0x415af7(0x532)](_0xd4adac=>({'color':_0xd4adac['color'],'offset':_0xd4adac['position']*0x64})):[{'color':(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x436)])||_0x415af7(0x593),'offset':0x0},{'color':_0x415af7(0x256),'offset':0x64}]};},[_0x27b2e3[_0xc1414c(0x151)]]),_0x1a3516=_0x53dcb9=>{const _0x2153cc=_0xc1414c,_0x45c8cf=pickerTypeToShapeGradientType(_0x53dcb9['type']),_0x464de6=_0x53dcb9['angle'];_0x20f144({'gradientType':_0x45c8cf,'gradientAngle':_0x464de6,'gradientStops':_0x53dcb9[_0x2153cc(0x170)][_0x2153cc(0x532)](_0xa592e2=>({'color':_0xa592e2[_0x2153cc(0x436)],'position':_0xa592e2[_0x2153cc(0x5fd)]/0x64}))});};return(0x0,react_jsx_runtime[_0xc1414c(0x64f)])('div',{'className':_0xc1414c(0x1bc),'children':(0x0,react_jsx_runtime[_0xc1414c(0x64f)])(_univerjs_design[_0xc1414c(0x1e5)],{'value':_0x2ac570,'onChange':_0x1a3516})});}function ShapeLineEditor(_0x3c3d57){const _0x4f3c43=_0x3e9a34;var _0x4fdfd1,_0x4b8b1f,_0x35d833,_0xe1ec0c,_0x574339,_0x4c38d6,_0x4b0b43,_0x3b318b,_0x29834b,_0x4dec79,_0x11c8a2,_0x4c15e8,_0x5b6816,_0x567a41,_0x3bba9c,_0x34e902;const _0x3de282=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x398)]),_0x23d759=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x3f7)]),_0x32a0aa=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x409)]),{shapeData:_0x220e25,isLineShape:_0x1e8cbe,unitId:_0x3f73ec,subUnitId:_0x318c88,shapeId:_0x58aab2,disableShapeOption:_0x8588d1}=_0x3c3d57,_0x4a6cba=_0x220e25['stroke'],[_0x1cb1ad,_0x5aee6c]=(0x0,react[_0x4f3c43(0x5a1)])((_0x4fdfd1=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['lineStrokeType'])!==null&&_0x4fdfd1!==void 0x0?_0x4fdfd1:_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x182)]),[_0x5e9aaa,_0x30a8d7]=(0x0,react['useState'])((_0x4b8b1f=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x436)])!==null&&_0x4b8b1f!==void 0x0?_0x4b8b1f:_univerjs_pro_engine_shape[_0x4f3c43(0x49a)][_0x4f3c43(0x2a7)]),[_0x5af825,_0x133635]=(0x0,react[_0x4f3c43(0x5a1)])((_0x35d833=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x3fd)])!==null&&_0x35d833!==void 0x0?_0x35d833:0x1),[_0x309edb,_0x5714d6]=(0x0,react[_0x4f3c43(0x5a1)])((_0xe1ec0c=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x183)])!==null&&_0xe1ec0c!==void 0x0?_0xe1ec0c:_univerjs_pro_engine_shape[_0x4f3c43(0x49a)][_0x4f3c43(0x45d)]),[_0x199aed,_0x26f3b3]=(0x0,react['useState'])((_0x574339=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x3f4)])!==null&&_0x574339!==void 0x0?_0x574339:_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x4ba)]),[_0x78f49c,_0x371cf7]=(0x0,react['useState'])((_0x4c38d6=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x592)])!==null&&_0x4c38d6!==void 0x0?_0x4c38d6:_univerjs_pro_engine_shape[_0x4f3c43(0x495)]['Flat']),[_0x23513c,_0x4e6e31]=(0x0,react[_0x4f3c43(0x5a1)])((_0x4b0b43=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['lineJoinType'])!==null&&_0x4b0b43!==void 0x0?_0x4b0b43:_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x4f3c43(0x59f)]),[_0x3ffb41,_0x2148a2]=(0x0,react[_0x4f3c43(0x5a1)])((_0x3b318b=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['sketchType'])!==null&&_0x3b318b!==void 0x0?_0x3b318b:_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x4f3c43(0x319)]),_0x21d23a=_0x220e25,[_0x24bb47,_0x2eabd5]=(0x0,react[_0x4f3c43(0x5a1)])((_0x29834b=(_0x4dec79=_0x21d23a['ln'])===null||_0x4dec79===void 0x0||(_0x4dec79=_0x4dec79['startArrow'])===null||_0x4dec79===void 0x0?void 0x0:_0x4dec79['type'])!==null&&_0x29834b!==void 0x0?_0x29834b:_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x319)]),[_0x4434ca,_0xe4bd76]=(0x0,react[_0x4f3c43(0x5a1)])((_0x11c8a2=(_0x4c15e8=_0x21d23a['ln'])===null||_0x4c15e8===void 0x0||(_0x4c15e8=_0x4c15e8[_0x4f3c43(0x399)])===null||_0x4c15e8===void 0x0?void 0x0:_0x4c15e8[_0x4f3c43(0x43f)])!==null&&_0x11c8a2!==void 0x0?_0x11c8a2:_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10e)]),[_0x56c522,_0x5b72c0]=(0x0,react[_0x4f3c43(0x5a1)])((_0x5b6816=(_0x567a41=_0x21d23a['ln'])===null||_0x567a41===void 0x0||(_0x567a41=_0x567a41[_0x4f3c43(0x145)])===null||_0x567a41===void 0x0?void 0x0:_0x567a41[_0x4f3c43(0x142)])!==null&&_0x5b6816!==void 0x0?_0x5b6816:_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0x4f3c43(0x319)]),[_0x585ecd,_0x4ee260]=(0x0,react['useState'])((_0x3bba9c=(_0x34e902=_0x21d23a['ln'])===null||_0x34e902===void 0x0||(_0x34e902=_0x34e902['endArrow'])===null||_0x34e902===void 0x0?void 0x0:_0x34e902[_0x4f3c43(0x43f)])!==null&&_0x3bba9c!==void 0x0?_0x3bba9c:_univerjs_pro_engine_shape[_0x4f3c43(0x201)]['Medium']),[_0x30b815,_0x25cb1f]=(0x0,react[_0x4f3c43(0x5a1)])(![]),_0x303f60=0x64-_0x5af825*0x64,_0x3f3f24=[{'label':_0x3de282['t']('sheets-shape.line.dashType.solid'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x4ba)])},{'label':_0x3de282['t'](_0x4f3c43(0x285)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x174)])},{'label':_0x3de282['t'](_0x4f3c43(0x51a)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x43a)])},{'label':_0x3de282['t'](_0x4f3c43(0x465)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x200)])},{'label':_0x3de282['t'](_0x4f3c43(0x4b4)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x347)])},{'label':_0x3de282['t']('sheets-shape.line.dashType.longDash'),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x5c8)])},{'label':_0x3de282['t'](_0x4f3c43(0x380)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x3ba)])},{'label':_0x3de282['t'](_0x4f3c43(0x27d)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x21a)])}],_0x105e87=[{'label':_0x3de282['t'](_0x4f3c43(0x3a7)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)][_0x4f3c43(0x15b)])},{'label':_0x3de282['t'](_0x4f3c43(0x4ad)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)]['Round'])},{'label':_0x3de282['t'](_0x4f3c43(0x33b)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)][_0x4f3c43(0x408)])}],_0x393b25=[{'label':_0x3de282['t']('sheets-shape.line.sketchType.none'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x319)])},{'label':_0x3de282['t']('sheets-shape.line.sketchType.curved'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x65e)])},{'label':_0x3de282['t'](_0x4f3c43(0x359)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)]['Freehand'])},{'label':_0x3de282['t'](_0x4f3c43(0x449)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x487)])}],_0x2061ee=[{'label':_0x3de282['t'](_0x4f3c43(0x22e)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x4f5)][_0x4f3c43(0x59f)])},{'label':_0x3de282['t'](_0x4f3c43(0x1ba)),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x4f3c43(0x5c5)])},{'label':_0x3de282['t'](_0x4f3c43(0x3f3)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x4f5)][_0x4f3c43(0x5a9)])}],_0x3de0bc=[{'label':_0x3de282['t'](_0x4f3c43(0x3da)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x319)])},{'label':_0x3de282['t'](_0x4f3c43(0x5f2)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x4ab)])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.openArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x32a)])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.stealthArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)]['StealthArrow'])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x121)])},{'label':_0x3de282['t'](_0x4f3c43(0x396)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)]['OvalArrow'])}],_0x9f9f20=[{'label':_0x3de282['t']('sheets-shape.line.arrowSize.small'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x39e)])},{'label':_0x3de282['t'](_0x4f3c43(0x5bf)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10e)])},{'label':_0x3de282['t'](_0x4f3c43(0x2c4)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10f)])}];return(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x1ae),'children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design[_0x4f3c43(0x500)],{'value':String(_0x1cb1ad),'disabled':_0x8588d1,'onChange':_0x506e68=>{const _0x4afb5a=_0x4f3c43;var _0x234295;_0x5aee6c(Number(_0x506e68)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x234295=_0x220e25[_0x4afb5a(0x2a7)])===null||_0x234295===void 0x0?void 0x0:_0x234295['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0x506e68)}});},'direction':_0x4f3c43(0x561),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x1c7)],{'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x123)]),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x63d),'children':_0x3de282['t']('sheets-shape.line.noLine')})}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x1c7)],{'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)]['SolidLine']),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x63d),'children':_0x3de282['t']('sheets-shape.line.solidLine')})})]}),_0x1cb1ad!==_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x123)]&&(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x4d3),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t']('sheets-shape.line.color')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x4f0)],{'disabled':_0x8588d1,'overlay':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x599),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x3df)],{'value':_0x5e9aaa,'onChange':_0x1352ab=>{const _0x5d3b3c=_0x4f3c43;var _0x8f5f0d;updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'color':(_0x8f5f0d=_0x220e25[_0x5d3b3c(0x2a7)])===null||_0x8f5f0d===void 0x0?void 0x0:_0x8f5f0d[_0x5d3b3c(0x436)]}}},{'stroke':{'color':_0x1352ab}}),_0x30a8d7(_0x1352ab),_0x25cb1f(![]);}})}),'open':_0x30b815,'onOpenChange':_0x25cb1f,'children':(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('a',{'className':_0x4f3c43(0x392),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_icons[_0x4f3c43(0x62c)],{'className':_0x4f3c43(0xf1),'extend':{'colorChannel1':_0x5e9aaa}}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design[_0x4f3c43(0x18a)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x30b815})})]})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x3e8),'children':_0x3de282['t']('sheets-shape.line.transparency')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x597),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':'univer-w-20\x20univer-flex-1','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x366)],{'className':_0x4f3c43(0x559),'value':_0x303f60,'disabled':_0x8588d1,'min':0x0,'max':0x64,'formatter':_0x3dda56=>_0x3dda56+'%','parser':_0x1670b9=>(_0x1670b9===null||_0x1670b9===void 0x0?void 0x0:_0x1670b9[_0x4f3c43(0x4e8)]('%',''))||'','onChange':_0x5cd49f=>{const _0x2ca053=_0x4f3c43;var _0x27c06d;const _0xbdccd6=(0x64-Math[_0x2ca053(0x216)](0x0,Math[_0x2ca053(0x613)](0x64,_0x5cd49f!==null&&_0x5cd49f!==void 0x0?_0x5cd49f:0x0)))/0x64;_0x133635(_0xbdccd6),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'opacity':(_0x27c06d=_0x220e25[_0x2ca053(0x2a7)])===null||_0x27c06d===void 0x0?void 0x0:_0x27c06d[_0x2ca053(0x3fd)]}}},{'stroke':{'opacity':_0xbdccd6}}),_0x32a0aa[_0x2ca053(0x1b8)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x32a0aa[_0x4f3c43(0x1b8)](_univerjs_core[_0x4f3c43(0x202)],!![]),'onBlur':_0x480baf=>{const _0x2c6628=_0x4f3c43;_0x32a0aa['setContextValue'](_univerjs_core[_0x2c6628(0x202)],![]);}})})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x597),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x410))}),(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x418),{'className':'univer-w-20','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x366)],{'className':'univer-w-full','disabled':_0x8588d1,'value':_0x309edb,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x57f068=>_0x57f068+_0x4f3c43(0x279),'parser':_0x29ad7e=>(_0x29ad7e===null||_0x29ad7e===void 0x0?void 0x0:_0x29ad7e[_0x4f3c43(0x4e8)](_0x4f3c43(0x279),''))||'','onChange':_0x86a4b8=>{const _0x4882b6=_0x4f3c43;if(!Number[_0x4882b6(0x662)](_0x86a4b8)&&_0x86a4b8!==null){var _0x598911;updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'width':(_0x598911=_0x220e25[_0x4882b6(0x2a7)])===null||_0x598911===void 0x0?void 0x0:_0x598911['width']}}},{'stroke':{'width':_0x86a4b8}});}_0x32a0aa[_0x4882b6(0x1b8)](_univerjs_core[_0x4882b6(0x202)],![]);},'onFocus':()=>_0x32a0aa['setContextValue'](_univerjs_core[_0x4f3c43(0x202)],!![]),'onBlur':_0x4467d0=>{const _0xe9cb66=_0x4f3c43;_0x32a0aa[_0xe9cb66(0x1b8)](_univerjs_core[_0xe9cb66(0x202)],![]);}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x47d))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x199aed),'options':_0x3f3f24,'disabled':_0x8588d1,'onChange':_0x33f066=>{var _0x1c6c39;_0x26f3b3(Number(_0x33f066)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'dashType':(_0x1c6c39=_0x220e25['stroke'])===null||_0x1c6c39===void 0x0?void 0x0:_0x1c6c39['dashType']}}},{'stroke':{'dashType':Number(_0x33f066)}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x46c))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x78f49c),'options':_0x105e87,'disabled':_0x8588d1,'onChange':_0x478af9=>{const _0x4791c9=_0x4f3c43;var _0x157ff9;_0x371cf7(Number(_0x478af9)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'capType':(_0x157ff9=_0x220e25[_0x4791c9(0x2a7)])===null||_0x157ff9===void 0x0?void 0x0:_0x157ff9[_0x4791c9(0x592)]}}},{'stroke':{'capType':Number(_0x478af9)}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t']('sheets-shape.line.joinType.title')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x23513c),'options':_0x2061ee,'disabled':_0x8588d1,'onChange':_0x3a0ad8=>{const _0x268847=_0x4f3c43;var _0xdf4b01;_0x4e6e31(Number(_0x3a0ad8)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'lineJoinType':(_0xdf4b01=_0x220e25[_0x268847(0x2a7)])===null||_0xdf4b01===void 0x0?void 0x0:_0xdf4b01[_0x268847(0x551)]}}},{'stroke':{'lineJoinType':Number(_0x3a0ad8)}});}})})]}),!_0x1e8cbe&&(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x5ba))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x3ffb41),'options':_0x393b25,'disabled':_0x8588d1,'onChange':_0x547481=>{const _0x18b936=_0x4f3c43;var _0xabf6a4;_0x2148a2(Number(_0x547481)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'sketchType':(_0xabf6a4=_0x220e25[_0x18b936(0x2a7)])===null||_0xabf6a4===void 0x0?void 0x0:_0xabf6a4[_0x18b936(0x1d9)]}}},{'stroke':{'sketchType':Number(_0x547481)}});}})})]}),_0x1e8cbe&&(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(react_jsx_runtime['Fragment'],{'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x204))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':_0x4f3c43(0x559),'value':String(_0x24bb47),'options':_0x3de0bc,'onChange':_0x12df2a=>{const _0x476e04=_0x4f3c43;var _0xa3ecdf;_0x2eabd5(Number(_0x12df2a)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'startArrow':{'type':(_0xa3ecdf=_0x220e25['ln'])===null||_0xa3ecdf===void 0x0||(_0xa3ecdf=_0xa3ecdf['startArrow'])===null||_0xa3ecdf===void 0x0?void 0x0:_0xa3ecdf[_0x476e04(0x142)]}}}},{'ln':{'startArrow':{'type':Number(_0x12df2a)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x185))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x4434ca),'options':_0x9f9f20,'onChange':_0x3d39bf=>{const _0x250009=_0x4f3c43;var _0x30079a;_0xe4bd76(Number(_0x3d39bf)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x30079a=_0x220e25['ln'])===null||_0x30079a===void 0x0||(_0x30079a=_0x30079a[_0x250009(0x399)])===null||_0x30079a===void 0x0?void 0x0:_0x30079a['size']}}}},{'ln':{'startArrow':{'size':Number(_0x3d39bf)}}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x567))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':_0x4f3c43(0x559),'value':String(_0x56c522),'options':_0x3de0bc,'onChange':_0x2cb699=>{const _0x150a59=_0x4f3c43;var _0x524ea0;_0x5b72c0(Number(_0x2cb699)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x524ea0=_0x220e25['ln'])===null||_0x524ea0===void 0x0||(_0x524ea0=_0x524ea0[_0x150a59(0x145)])===null||_0x524ea0===void 0x0?void 0x0:_0x524ea0[_0x150a59(0x142)]}}}},{'ln':{'endArrow':{'type':Number(_0x2cb699)}}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x4f9))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x585ecd),'options':_0x9f9f20,'onChange':_0x51a9bf=>{const _0x5afe46=_0x4f3c43;var _0x2b9afa;_0x4ee260(Number(_0x51a9bf)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x2b9afa=_0x220e25['ln'])===null||_0x2b9afa===void 0x0||(_0x2b9afa=_0x2b9afa['endArrow'])===null||_0x2b9afa===void 0x0?void 0x0:_0x2b9afa[_0x5afe46(0x43f)]}}}},{'ln':{'endArrow':{'size':Number(_0x51a9bf)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x2fe40d=_0x3e9a34,_0x189173=(0x0,_univerjs_ui[_0x2fe40d(0x663)])(_univerjs_drawing['IDrawingManagerService']),[_0x2d063e,_0x4591e0]=(0x0,react[_0x2fe40d(0x5a1)])(_0x189173[_0x2fe40d(0x4a6)]());(0x0,react[_0x2fe40d(0x11f)])(()=>{const _0x58b4e4=_0x2fe40d,_0x9c0a03=_0x189173[_0x58b4e4(0x188)][_0x58b4e4(0x562)](_0x1a6573=>{_0x4591e0(_0x1a6573);});return()=>{_0x9c0a03['unsubscribe']();};},[]);if(_0x2d063e[_0x2fe40d(0x440)]===0x0)return null;return(0x0,react_jsx_runtime['jsx'])(_0x2fe40d(0x418),{'children':(0x0,react_jsx_runtime[_0x2fe40d(0x24e)])('div',{'className':_0x2fe40d(0x438),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_drawing_ui[_0x2fe40d(0x46d)],{'drawings':_0x2d063e,'hasCropper':![]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_sheets_drawing_ui[_0x2fe40d(0x1b3)],{'drawings':_0x2d063e})]})});}function ShapeEditPanel(_0x30e0e3){const _0x2db078=_0x3e9a34,{shapeData:_0x5544ca,shapeId:_0x283e6b,shapeType:_0x4cd1ed,version:_0x3d4187,unitId:_0x359e1f,subUnitId:_0x528583,disableShapeOption:_0x2a6c77}=_0x30e0e3,_0x89eef1=(0x0,_univerjs_ui[_0x2db078(0x663)])(_univerjs_core[_0x2db078(0x398)]),_0x4589d5=(0x0,_univerjs_pro_engine_shape[_0x2db078(0x654)])(_0x4cd1ed),[_0x35c47a,_0x113557]=(0x0,react[_0x2db078(0x5a1)])(0x0),_0x40d3a1=[{'label':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_0x2db078(0x418),{'children':_0x89eef1['t'](_0x2db078(0x16d))}),'children':(0x0,react_jsx_runtime['jsx'])(_0x2db078(0x1a8),{'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[_0x2db078(0x64f)])(ShapeFillEditor,{'shapeId':_0x283e6b,'shapeData':_0x5544ca,'isLineShape':_0x4589d5,'subUnitId':_0x528583,'unitId':_0x359e1f,'disableShapeOption':_0x2a6c77},_0x283e6b)})},{'label':(0x0,react_jsx_runtime['jsx'])('div',{'children':_0x89eef1['t'](_0x2db078(0x46f))}),'children':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_0x2db078(0x1a8),{'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['jsx'])(ShapeLineEditor,{'shapeId':_0x283e6b,'shapeData':_0x5544ca,'isLineShape':_0x4589d5,'subUnitId':_0x528583,'unitId':_0x359e1f,'disableShapeOption':_0x2a6c77},_0x283e6b)})}];return(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':'univer-size-full','children':[(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':_0x2db078(0x1f4),'children':[(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x534),_0x35c47a===0x0?_0x2db078(0x444):_0x2db078(0xf1)),'onClick':()=>_0x113557(0x0),'children':[_0x89eef1['t'](_0x2db078(0x63f)),(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x555),{'univer-bg-primary-600':_0x35c47a===0x0,'univer-bg-transparent':_0x35c47a!==0x0})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',{'univer-text-primary-600':_0x35c47a===0x1,'univer-text-gray-500':_0x35c47a!==0x1}),'onClick':()=>_0x113557(0x1),'children':[_0x89eef1['t'](_0x2db078(0x41e)),(0x0,react_jsx_runtime['jsx'])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x54f),{'univer-bg-primary-600':_0x35c47a===0x1,'univer-bg-transparent':_0x35c47a!==0x1})})]})]}),(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':'univer-flex-1\x20univer-overflow-auto','children':_0x35c47a===0x0?(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':'','children':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_univerjs_design[_0x2db078(0x22f)],{'items':_0x40d3a1})},_0x3d4187):(0x0,react_jsx_runtime[_0x2db078(0x64f)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x4ebc53,_0x41188f){const _0x476606=_0x3e9a34;super(_0x4ebc53,_0x41188f),_defineProperty(this,_0x476606(0x196),null),_defineProperty(this,_0x476606(0x307),null),_defineProperty(this,_0x476606(0x324),null),_defineProperty(this,_0x476606(0x55d),null);if(_0x41188f)this[_0x476606(0x5fe)](_0x41188f);}['getDrawingSearch'](){const _0x3f6e51=_0x3e9a34;return{'unitId':this[_0x3f6e51(0x324)],'subUnitId':this[_0x3f6e51(0x55d)],'drawingId':this[_0x3f6e51(0x196)]};}['setShapeProps'](_0x531517){const _0x127aec=_0x3e9a34;if(typeof _0x531517[_0x127aec(0x4ac)]!=='undefined')this[_0x127aec(0x196)]=_0x531517[_0x127aec(0x4ac)];if(typeof _0x531517[_0x127aec(0x5f8)]!==_0x127aec(0x544))this[_0x127aec(0x307)]=_0x531517[_0x127aec(0x5f8)];if(typeof _0x531517[_0x127aec(0x4a8)]!==_0x127aec(0x544))this[_0x127aec(0x324)]=_0x531517[_0x127aec(0x4a8)];if(typeof _0x531517['subUnitId']!==_0x127aec(0x544))this[_0x127aec(0x55d)]=_0x531517[_0x127aec(0x5d6)];this[_0x127aec(0x227)]({'width':_0x531517['width'],'height':_0x531517[_0x127aec(0x37b)]});}[_0x3e9a34(0x33c)](_0x2cbb43){const _0x3820af=_0x3e9a34;_univerjs_engine_render[_0x3820af(0x5d8)][_0x3820af(0x118)](_0x2cbb43,{'radius':_univerjs_pro_engine_shape[_0x3820af(0x49a)][_0x3820af(0x3b6)],'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3820af(0x4b5)],'stroke':_univerjs_pro_engine_shape[_0x3820af(0x49a)][_0x3820af(0x41d)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core['Disposable']{constructor(_0xa182bb,_0x5c7b9b,_0x3504c1,_0x76af20,_0x4eed56,_0x50b3ac,_0x2ddb60,_0x18ea8e){const _0x46b88a=_0x3e9a34;super(),this['_context']=_0xa182bb,this['_contextService']=_0x5c7b9b,this[_0x46b88a(0x4d0)]=_0x3504c1,this[_0x46b88a(0xfd)]=_0x76af20,this[_0x46b88a(0x5cb)]=_0x4eed56,this['_sheetDrawingShapeRenderController']=_0x50b3ac,this[_0x46b88a(0x5e1)]=_0x2ddb60,this[_0x46b88a(0x363)]=_0x18ea8e,_defineProperty(this,_0x46b88a(0x2e4),null),_defineProperty(this,_0x46b88a(0x324),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,_0x46b88a(0x3cc),void 0x0),_defineProperty(this,'_shapes',[]),_defineProperty(this,'_baseShapeLeft',0x0),_defineProperty(this,_0x46b88a(0x44c),0x0),_defineProperty(this,_0x46b88a(0x5f1),0x0),_defineProperty(this,'_baseShapeHeight',0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,_0x46b88a(0x159),void 0x0),_defineProperty(this,_0x46b88a(0x19a),void 0x0),_defineProperty(this,_0x46b88a(0x310),void 0x0),_defineProperty(this,_0x46b88a(0x4f6),void 0x0),_defineProperty(this,_0x46b88a(0x3be),![]),this['_registerDrawingFocusChangeHandler'](),this[_0x46b88a(0x52c)]();}[_0x3e9a34(0x3b9)](_0x10c592,_0x13c947,_0xd01dc5){const _0x3dc4a2=_0x3e9a34,_0x4adf3d=this[_0x3dc4a2(0xfd)][_0x3dc4a2(0x533)](_0x10c592,_0x13c947,_0xd01dc5);if(_0x4adf3d)return _0x4adf3d[_0x3dc4a2(0x660)]();}[_0x3e9a34(0x63b)](){const _0x535369=_0x3e9a34;this[_0x535369(0x65d)]();}[_0x3e9a34(0x47b)](){const _0x499e46=_0x3e9a34;this[_0x499e46(0x540)](!![]);}[_0x3e9a34(0x306)](_0x3f4fa0){this['_isShouldShowDrawingShapeAdjust']=_0x3f4fa0;}[_0x3e9a34(0x2ef)](_0x23c48c,_0x50c86e,_0xc65a2a,_0x289087){const _0x6da03=_0x3e9a34,_0xefa87b=this['_sheetsShapeService'][_0x6da03(0x533)](_0x23c48c,_0x50c86e,_0xc65a2a);if(_0xefa87b)return _0xefa87b['getAdjustInfoByName'](_0x289087);}['_createShapeAdjustControls'](_0x120c61=![]){const _0x46935c=_0x3e9a34;if(this[_0x46935c(0x324)]===null||this['_subUnitId']===null||this[_0x46935c(0x2e4)]===null)return;const _0x1b39bd=this['_renderManagerService'][_0x46935c(0x17d)](this[_0x46935c(0x324)]);if(!_0x1b39bd)return;if(!_0x1b39bd['with'](_univerjs_sheets_ui[_0x46935c(0x412)])['getCurrentSkeleton']())return;const {scene:_0x21eae4}=_0x1b39bd,_0x10c927={'unitId':this[_0x46935c(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x46935c(0x2e4)]},_0x1b38be=this[_0x46935c(0x4d0)][_0x46935c(0x619)](_0x10c927),{transform:_0x23e3a2}=_0x1b38be;if(!_0x23e3a2)return;if(_0x1b38be[_0x46935c(0x5ec)]!==_univerjs_core[_0x46935c(0x506)][_0x46935c(0x3fc)])return;const {left:_0x26dd07,top:_0x5766b7,width:_0x38f251,height:_0x4c9cc1,flipX:_0x479766,flipY:_0xf8ae60,angle:angle=0x0}=_0x23e3a2;if(_0x26dd07===void 0x0||_0x5766b7===void 0x0)return;if(_0x120c61)this[_0x46935c(0x3cc)]=this[_0x46935c(0x3b9)](this[_0x46935c(0x324)],this[_0x46935c(0x55d)],this[_0x46935c(0x2e4)]);const _0x4cd2d9=this['_activeShapeAdjustPointList'];for(let _0x449cba=0x0;_0x449cba<_0x4cd2d9[_0x46935c(0x440)];_0x449cba++){const _0x503a7e=_0x4cd2d9[_0x449cba];let _0xcf8455=_0x503a7e['x'],_0x23c721=_0x503a7e['y'];if(_0x479766)_0xcf8455=(_0x38f251||0x0)-_0xcf8455;if(_0xf8ae60)_0x23c721=(_0x4c9cc1||0x0)-_0x23c721;if(angle!==0x0){const _0x50fb4a=(_0x38f251||0x0)/0x2,_0x35df27=(_0x4c9cc1||0x0)/0x2,_0xf5f90a=angle*Math['PI']/0xb4,_0x2018f3=Math['cos'](_0xf5f90a),_0x54ff4e=Math[_0x46935c(0x479)](_0xf5f90a),_0x72686c=_0xcf8455-_0x50fb4a,_0x24b36c=_0x23c721-_0x35df27;_0xcf8455=_0x50fb4a+(_0x72686c*_0x2018f3-_0x24b36c*_0x54ff4e),_0x23c721=_0x35df27+(_0x72686c*_0x54ff4e+_0x24b36c*_0x2018f3);}const _0x20b507={'x':_0xcf8455,'y':_0x23c721,'adjName':_0x503a7e[_0x46935c(0x5f8)]};this[_0x46935c(0x315)](_0x21eae4,_0x20b507,_0x20b507[_0x46935c(0x5f8)],_0x26dd07,_0x5766b7,this['_unitId'],this['_subUnitId']);}}[_0x3e9a34(0x540)](_0x5a06a8=![]){const _0x28b062=_0x3e9a34;_0x5a06a8&&(this[_0x28b062(0x65d)](),this['_createShapeAdjustControls'](_0x5a06a8));}[_0x3e9a34(0x315)](_0x4ccccd,_0x20f394,_0x1dd77a,_0x5c0e69,_0x57c74f,_0x1721d4,_0x2ef183){const _0x357a56=_0x3e9a34;if(!this[_0x357a56(0x2e4)])return;const _0x34f2e4=_0x4ccccd[_0x357a56(0x21c)](_0x357a56(0x63a)+this['_activeShapeId']+'-'+_0x1dd77a);if(_0x34f2e4){_0x34f2e4[_0x357a56(0x227)]({'left':_0x20f394['x']+_0x5c0e69-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)],'top':_0x20f394['y']+_0x57c74f-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]});return;}const _0x31a1d2={'left':_0x20f394['x']+_0x5c0e69-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x357a56(0x3b6)],'top':_0x20f394['y']+_0x57c74f-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)],'adjName':_0x1dd77a,'shapeId':this[_0x357a56(0x2e4)],'unitId':_0x1721d4,'subUnitId':_0x2ef183,'width':_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]+0x8,'height':_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]+0x8,'zIndex':_univerjs_engine_render[_0x357a56(0x1bd)]+0x1,'evented':!![]},_0x21d644=new SheetShapeAdjustPointObject(_0x357a56(0x63a)+this[_0x357a56(0x2e4)]+'-'+_0x1dd77a,_0x31a1d2);this[_0x357a56(0x4bc)][_0x357a56(0x2dd)](_0x21d644),this[_0x357a56(0x38a)](_0x21d644,_0x4ccccd,_0x1dd77a),_0x4ccccd[_0x357a56(0x18b)](_0x21d644,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x3e9a34(0x65d)](){const _0x1cff9c=_0x3e9a34;if(this[_0x1cff9c(0x4bc)]['length']===0x0)return;this['_shapes']['forEach'](_0x1451c3=>{const _0x41eb10=_0x1cff9c;_0x1451c3[_0x41eb10(0x199)]();}),this[_0x1cff9c(0x4bc)]=[];}[_0x3e9a34(0x5e7)](){const _0x6ad730=_0x3e9a34;this[_0x6ad730(0x1a9)]();}[_0x3e9a34(0x507)](_0x34e0dd,_0x383aa6){const _0x2ec05a=_0x3e9a34;var _0x47becc;const _0x3e9976={'x':0x0,'y':0x0};if(!_0x34e0dd||!_0x383aa6)return _0x3e9976;const _0x29d061=this['_renderManagerService'][_0x2ec05a(0x17d)](_0x34e0dd);if(!_0x29d061)return _0x3e9976;if(!_0x29d061[_0x2ec05a(0x1cf)](_univerjs_sheets_ui[_0x2ec05a(0x412)])['getSkeleton'](_0x383aa6))return _0x3e9976;const _0x5cc157=_0x29d061[_0x2ec05a(0x1cf)](_univerjs_sheets_ui[_0x2ec05a(0x480)]),_0x13c842=_0x5cc157===null||_0x5cc157===void 0x0?void 0x0:_0x5cc157[_0x2ec05a(0x531)]();if(!_0x13c842)return _0x3e9976;const _0x231848=(_0x47becc=this[_0x2ec05a(0x5e1)]['getUnit'](_0x34e0dd))===null||_0x47becc===void 0x0?void 0x0:_0x47becc['getSheetBySheetId'](_0x383aa6);if(!_0x231848)return _0x3e9976;const _0x434674=(0x0,_univerjs_sheets_ui[_0x2ec05a(0x33f)])(_0x13c842[_0x2ec05a(0x484)],_0x13c842[_0x2ec05a(0x38d)],_0x29d061[_0x2ec05a(0x2a4)],_0x231848);if(!_0x434674)return _0x3e9976;return{'x':_0x434674[_0x2ec05a(0x4aa)],'y':_0x434674['viewportScrollY']};}[_0x3e9a34(0x52f)](_0x4e0b1d,_0x34ce7a){const _0x1d6f9a=_0x3e9a34;var _0x52e0a0,_0x9d65f;const _0x23ecd8=(_0x52e0a0=this[_0x1d6f9a(0x5e1)][_0x1d6f9a(0x46e)](_0x4e0b1d))===null||_0x52e0a0===void 0x0?void 0x0:_0x52e0a0[_0x1d6f9a(0x299)](_0x34ce7a);return(_0x9d65f=_0x23ecd8===null||_0x23ecd8===void 0x0?void 0x0:_0x23ecd8[_0x1d6f9a(0x234)]())!==null&&_0x9d65f!==void 0x0?_0x9d65f:0x1;}[_0x3e9a34(0x38a)](_0x46185f,_0x55e413,_0x57e923){const _0x181114=_0x3e9a34;this[_0x181114(0x58e)]((0x0,_univerjs_core[_0x181114(0x28e)])(_0x46185f[_0x181114(0x284)][_0x181114(0x345)]((_0x2c7c21,_0x1e0b7e)=>{const _0x1e1bc4=_0x181114;var _0xe0d783,_0x474110,_0x36fd14,_0x4637c7;const _0x56648e=_0x46185f[_0x1e1bc4(0x40e)]();this[_0x1e1bc4(0x159)]=this['_getShapeAdjustInfosById'](_0x56648e[_0x1e1bc4(0x4a8)],_0x56648e[_0x1e1bc4(0x5d6)],_0x56648e['drawingId'],_0x57e923),this[_0x1e1bc4(0x19a)]=this['_sheetsShapeService']['getShapeModel'](_0x56648e[_0x1e1bc4(0x4a8)],_0x56648e[_0x1e1bc4(0x5d6)],_0x56648e['drawingId']);const _0x3733b9=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x1e1bc4(0x55d)],'drawingId':this['_activeShapeId']}),{transform:_0x5c6466}=_0x3733b9;if(_0x5c6466){const {left:_0x4287a5,top:_0x1972cc,width:_0xd10d4,height:_0x1e4606}=_0x5c6466;this[_0x1e1bc4(0x4a7)]=_0x4287a5||0x0,this[_0x1e1bc4(0x44c)]=_0x1972cc||0x0,this[_0x1e1bc4(0x5f1)]=_0xd10d4||0x0,this[_0x1e1bc4(0x5fc)]=_0x1e4606||0x0;}const _0x59df2b=Boolean((_0xe0d783=_0x3733b9[_0x1e1bc4(0x600)])===null||_0xe0d783===void 0x0?void 0x0:_0xe0d783[_0x1e1bc4(0x2f5)]),_0x1c6b7c=Boolean((_0x474110=_0x3733b9[_0x1e1bc4(0x600)])===null||_0x474110===void 0x0?void 0x0:_0x474110['flipY']),_0x4c0c8f=((_0x36fd14=_0x3733b9[_0x1e1bc4(0x600)])===null||_0x36fd14===void 0x0?void 0x0:_0x36fd14[_0x1e1bc4(0x62d)])||0x0;this[_0x1e1bc4(0x50d)]=!![],_0x55e413[_0x1e1bc4(0x3c5)]();const _0x4f4b6b=(_0x4637c7=this[_0x1e1bc4(0x19a)])===null||_0x4637c7===void 0x0?void 0x0:_0x4637c7['getAdjustValueByName'](_0x57e923),_0x4ea435={[_0x57e923]:_0x4f4b6b};this['_adjHandlerPointerMove']=_0x55e413[_0x1e1bc4(0x223)][_0x1e1bc4(0x345)]((_0x501614,_0xc05d88)=>{const _0x1e6629=_0x1e1bc4;if(!this[_0x1e6629(0x50d)])return;const {offsetX:_0x1eaf64,offsetY:_0x5c0556}=_0x501614,_0x51166d=this[_0x1e6629(0x159)];if(this[_0x1e6629(0x19a)]&&_0x51166d){_0x55e413[_0x1e6629(0x3c5)](),_0x55e413[_0x1e6629(0x203)](_univerjs_engine_render[_0x1e6629(0x322)][_0x1e6629(0x5b3)]);const _0x5911bd={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x1e6629(0x5fc)]},_0xea551c=this[_0x1e6629(0x507)](this[_0x1e6629(0x324)],this[_0x1e6629(0x55d)]),_0x3fae75=this['_getZoomRatio'](this[_0x1e6629(0x324)],this[_0x1e6629(0x55d)]);let _0x299f4f=_0x1eaf64/_0x3fae75+_0xea551c['x']-this[_0x1e6629(0x4a7)],_0x14de32=_0x5c0556/_0x3fae75+_0xea551c['y']-this[_0x1e6629(0x44c)];if(_0x4c0c8f!==0x0){const _0x248f60=this[_0x1e6629(0x5f1)]/0x2,_0x3ea6aa=this[_0x1e6629(0x5fc)]/0x2,_0x2c7f0f=_0x4c0c8f*Math['PI']/0xb4,_0x4dc081=Math[_0x1e6629(0x1cb)](_0x2c7f0f),_0x5680ff=Math[_0x1e6629(0x479)](_0x2c7f0f),_0x126eac=_0x299f4f-_0x248f60,_0x2486e9=_0x14de32-_0x3ea6aa;_0x299f4f=_0x248f60+(_0x126eac*_0x4dc081+_0x2486e9*_0x5680ff),_0x14de32=_0x3ea6aa+(-_0x126eac*_0x5680ff+_0x2486e9*_0x4dc081);}if(_0x59df2b)_0x299f4f=this[_0x1e6629(0x5f1)]-_0x299f4f;if(_0x1c6b7c)_0x14de32=this[_0x1e6629(0x5fc)]-_0x14de32;const _0x53b93f={'x':_0x299f4f,'y':_0x14de32},_0x2a3a48=this['_activeShapeModel'][_0x1e6629(0x445)](_0x5911bd,_0x53b93f,_0x51166d,_0x59df2b,_0x1c6b7c),_0x3c5c2c=_0x51166d[_0x1e6629(0x5be)]||_0x51166d[_0x1e6629(0x12c)]||_0x51166d[_0x1e6629(0x4de)]||_0x51166d['gdRefR'];if(_0x3c5c2c===void 0x0)return;this['_activeShapeModel'][_0x1e6629(0x57d)](_0x3c5c2c,_0x2a3a48);const _0x2968f6=this[_0x1e6629(0x4d0)][_0x1e6629(0x619)]({'unitId':_0x56648e[_0x1e6629(0x4a8)],'subUnitId':_0x56648e[_0x1e6629(0x5d6)],'drawingId':_0x56648e['drawingId']});_0x2968f6&&(this['_sheetDrawingShapeRenderController'][_0x1e6629(0x1e3)](_0x2968f6,_0x55e413),this[_0x1e6629(0x3cc)]=this[_0x1e6629(0x3b9)](_0x56648e[_0x1e6629(0x4a8)],_0x56648e[_0x1e6629(0x5d6)],_0x56648e[_0x1e6629(0x4c5)]),this[_0x1e6629(0x5e7)]());}_0xc05d88[_0x1e6629(0x11e)]();}),this[_0x1e1bc4(0x4f6)]=_0x55e413[_0x1e1bc4(0x575)]['subscribeEvent']((_0x58de4b,_0x5655e2)=>{const _0x40fe30=_0x1e1bc4;this[_0x40fe30(0x310)][_0x40fe30(0x54e)](),this[_0x40fe30(0x4f6)][_0x40fe30(0x54e)](),_0x55e413['resetCursor']();const _0xfeb172=this[_0x40fe30(0x159)];if(_0xfeb172){const _0x6eb1ea=_0x56648e['unitId'],_0x5b4e42=_0x56648e[_0x40fe30(0x5d6)],_0x5164fd=_0x56648e['drawingId'],_0x55f2b2=_0xfeb172[_0x40fe30(0x5be)]||_0xfeb172['gdRefY']||_0xfeb172[_0x40fe30(0x4de)]||_0xfeb172[_0x40fe30(0x3f0)];if(_0x55f2b2!==void 0x0){var _0x456393;const _0x3e95bc=(_0x456393=this[_0x40fe30(0x19a)])===null||_0x456393===void 0x0?void 0x0:_0x456393['getAdjustValueByName'](_0x55f2b2);if(_0x3e95bc!==void 0x0)updateShapeData(this['_commandService'],_0x6eb1ea,_0x5b4e42,_0x5164fd,{'oldShapeData':{'adjustValues':_0x4ea435}},{'adjustValues':{[_0x55f2b2]:_0x3e95bc}});}}this[_0x40fe30(0x159)]=void 0x0,this[_0x40fe30(0x19a)]=void 0x0,this[_0x40fe30(0x50d)]=![],_0x5655e2['stopPropagation'](),_0x55e413[_0x40fe30(0x4fc)]();}),_0x1e0b7e['stopPropagation']();})));}[_0x3e9a34(0x52c)](){const _0x314a92=_0x3e9a34,_0x4c8a98=this[_0x314a92(0x5e1)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x314a92(0x4cd)][_0x314a92(0x58b)]);this[_0x314a92(0x58e)](_0x4c8a98[_0x314a92(0x1e2)]((0x0,rxjs[_0x314a92(0x352)])(_0x4bd6db=>{const _0x441fd8=_0x314a92;if(!_0x4bd6db)return rxjs[_0x441fd8(0x218)];return _0x4bd6db[_0x441fd8(0x1e1)]['pipe']((0x0,rxjs[_0x441fd8(0x352)])(_0x364a57=>{const _0x3fd1ec=_0x441fd8;if(!_0x364a57)return rxjs[_0x3fd1ec(0x218)];const _0x10a96a=_0x4bd6db[_0x3fd1ec(0x386)](),_0x74abb7=this['_renderManagerService'][_0x3fd1ec(0x17d)](_0x10a96a),_0x34ea1b=_0x74abb7===null||_0x74abb7===void 0x0?void 0x0:_0x74abb7[_0x3fd1ec(0x2a4)];if(!_0x34ea1b)return rxjs[_0x3fd1ec(0x218)];return(0x0,rxjs['of'])(_0x34ea1b);}));}))[_0x314a92(0x562)](_0x2e214e=>{const _0x3a0fa5=_0x314a92,_0x58962a=_0x2e214e[_0x3a0fa5(0xe2)]();this[_0x3a0fa5(0x58e)](_0x2e214e[_0x3a0fa5(0x223)][_0x3a0fa5(0x345)](()=>{if(this['_isShouldShowDrawingShapeAdjust']){}})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x14c)][_0x3a0fa5(0x562)](_0x20bd75=>{const _0x5be7cb=_0x3a0fa5,{objects:_0x325b8c}=_0x20bd75;this[_0x5be7cb(0x1a9)]();if(_0x325b8c!==null&&_0x325b8c[_0x5be7cb(0x43f)]===0x1){if(_0x325b8c['values']()[_0x5be7cb(0x5c7)]()['value']instanceof DrawingShape)this['setShouldShowAdjust'](!![]);}})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x304)]['subscribe'](()=>{if(this['_isShouldShowDrawingShapeAdjust'])this['_clearShapeAdjustControls']();})),this[_0x3a0fa5(0x58e)](_0x2e214e[_0x3a0fa5(0x575)][_0x3a0fa5(0x345)](()=>{const _0x15b0d3=_0x3a0fa5;this[_0x15b0d3(0x3be)]&&(this[_0x15b0d3(0x306)](![]),this[_0x15b0d3(0x1a9)]());})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x4c0)][_0x3a0fa5(0x562)](()=>{const _0x25de66=_0x3a0fa5;this[_0x25de66(0x324)]&&this[_0x25de66(0x55d)]&&this[_0x25de66(0x2e4)]&&(this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x25de66(0x324)],'subUnitId':this[_0x25de66(0x55d)],'drawingId':this['_activeShapeId']})&&(this[_0x25de66(0x3cc)]=this[_0x25de66(0x3b9)](this['_unitId'],this[_0x25de66(0x55d)],this[_0x25de66(0x2e4)]),this['_updateAdjustControlPositions']()));}));}));}[_0x3e9a34(0x2fc)](){const _0x232e2c=_0x3e9a34;this[_0x232e2c(0x58e)](this[_0x232e2c(0x4d0)]['focus$'][_0x232e2c(0x562)](_0x5da757=>{const _0x38ef80=_0x232e2c;if(_0x5da757[_0x38ef80(0x440)]===0x1){const _0x3437ed=_0x5da757[0x0];if(_0x3437ed['drawingType']===_univerjs_core[_0x38ef80(0x506)]['DRAWING_SHAPE']){this[_0x38ef80(0x2e4)]=_0x3437ed['drawingId'];const {unitId:_0x386f4f,subUnitId:_0x8c52aa}=_0x3437ed;this[_0x38ef80(0x3cc)]=this[_0x38ef80(0x3b9)](_0x386f4f,_0x8c52aa,this[_0x38ef80(0x2e4)]),this[_0x38ef80(0x324)]=_0x386f4f,this['_subUnitId']=_0x8c52aa,this['_clearShapeAdjustControls'](),this[_0x38ef80(0x1a9)]();}else this[_0x38ef80(0x2e4)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x38ef80(0x55d)]=null,this['_clearShapeAdjustControls']();}(_0x5da757[_0x38ef80(0x440)]>0x1||_0x5da757[_0x38ef80(0x440)]===0x0)&&(this['_activeShapeId']=null,this[_0x38ef80(0x3cc)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x38ef80(0x65d)]());})),this[_0x232e2c(0x58e)](this[_0x232e2c(0x4d0)][_0x232e2c(0x554)][_0x232e2c(0x562)](_0xe19d18=>{const _0x1c29fd=_0x232e2c;if(_0xe19d18[_0x1c29fd(0x440)]===0x1){var _0x3ed59a;const _0x50f758=_0xe19d18[0x0];if(((_0x3ed59a=this[_0x1c29fd(0x4d0)][_0x1c29fd(0x619)](_0x50f758))===null||_0x3ed59a===void 0x0?void 0x0:_0x3ed59a['drawingType'])===_univerjs_core[_0x1c29fd(0x506)]['DRAWING_SHAPE'])this[_0x1c29fd(0x540)](!![]);}})),this['disposeWithMe'](this[_0x232e2c(0x4d0)][_0x232e2c(0x31c)][_0x232e2c(0x562)](_0x2db104=>{const _0x2aef25=_0x232e2c;for(const _0x2d6e61 of _0x2db104)this[_0x2aef25(0x2e4)]===_0x2d6e61[_0x2aef25(0x4c5)]&&(this[_0x2aef25(0x2e4)]=null,this[_0x2aef25(0x3cc)]=void 0x0,this[_0x2aef25(0x324)]=null,this[_0x2aef25(0x55d)]=null,this[_0x2aef25(0x65d)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core[_0x3e9a34(0x409)]),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core['IUniverInstanceService']),__decorateParam(0x7,_univerjs_core[_0x3e9a34(0x3f7)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x3e9a34(0x5ea),'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'handler':(_0x3b4a58,_0x4f865d)=>{const _0x4fb56b=_0x3e9a34,_0x58b68e=_0x3b4a58['get'](_univerjs_drawing['IDrawingManagerService']),_0x2f0ee6=_0x3b4a58[_0x4fb56b(0x2d9)](_univerjs_engine_render[_0x4fb56b(0x35e)]),_0x26f397=_0x3b4a58[_0x4fb56b(0x2d9)](SheetShapeAdjustController);if(_0x4f865d==null)return!![];if(_0x4f865d[_0x4fb56b(0x440)]>0x0){var _0x1524ac;const _0x2d0f32=(_0x1524ac=_0x2f0ee6['getRenderById'](_0x4f865d[0x0][_0x4fb56b(0x4a8)]))===null||_0x1524ac===void 0x0?void 0x0:_0x1524ac[_0x4fb56b(0x2a4)];if(_0x2d0f32){const {unitId:_0x475a20,subUnitId:_0x3c030d,drawingId:_0x685a98}=_0x4f865d[0x0],_0x2c252c=(0x0,_univerjs_drawing[_0x4fb56b(0x171)])({'unitId':_0x475a20,'subUnitId':_0x3c030d,'drawingId':_0x685a98},void 0x0),_0x1ed6fc=_0x2d0f32['getObjectIncludeInGroup'](_0x2c252c);if(_0x1ed6fc){var _0x36328b;(_0x36328b=_0x2f0ee6[_0x4fb56b(0x17d)](_0x4f865d[0x0][_0x4fb56b(0x4a8)]))===null||_0x36328b===void 0x0||(_0x36328b=_0x36328b[_0x4fb56b(0x2a4)][_0x4fb56b(0x52d)]())===null||_0x36328b===void 0x0||_0x36328b['activeAnObject'](_0x1ed6fc);}}_0x58b68e[_0x4fb56b(0x348)](_0x4f865d),_0x26f397[_0x4fb56b(0x306)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)]['COMMAND'],'id':_0x3e9a34(0x141),'handler':async(_0x22fc0f,_0xa815f3)=>{const _0x3466e0=_0x3e9a34,_0x147aee=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x22fc0f[_0x3466e0(0x2d9)](_univerjs_core['IUniverInstanceService']));if(!_0x147aee)return![];const _0x3eab5a=_0x22fc0f['get'](_univerjs_sheets[_0x3466e0(0x10c)])[_0x3466e0(0x39b)]();if(!_0x3eab5a)return![];const _0x343044=_0x22fc0f[_0x3466e0(0x2d9)](_univerjs_core[_0x3466e0(0x3f7)]),{unitId:_0x519431,subUnitId:_0x5dad80}=_0x147aee,{value:_0x1d085e,enhanceParams:_0x37aa7f}=_0xa815f3,{range:_0x4b704f}=_0x3eab5a,_0x578ed4={'unitId':_0x519431,'subUnitId':_0x5dad80,'shapeType':_0x1d085e,'range':_0x4b704f,'shapeId':(0x0,_univerjs_core[_0x3466e0(0x652)])()};if(_0x37aa7f){const _0x455ac3=(0x0,_univerjs_pro_engine_shape[_0x3466e0(0x654)])(_0x1d085e),_0xc5aaae=_0x1d085e===_univerjs_pro_engine_shape[_0x3466e0(0x126)]['Rect'];if(_0x455ac3&&(_0x37aa7f[_0x3466e0(0x399)]||_0x37aa7f[_0x3466e0(0x145)]))_0x578ed4['shapeData']={'ln':{'startArrow':_0x37aa7f['startArrow']?{'type':_univerjs_pro_engine_shape[_0x3466e0(0x2de)][_0x3466e0(0x4ab)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x3466e0(0x10e)]}:void 0x0,'endArrow':_0x37aa7f[_0x3466e0(0x145)]?{'type':_univerjs_pro_engine_shape[_0x3466e0(0x2de)][_0x3466e0(0x4ab)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x3466e0(0x10f)]}:void 0x0}};if(_0xc5aaae&&(_0x37aa7f[_0x3466e0(0x238)]||_0x37aa7f[_0x3466e0(0x561)]))_0x578ed4[_0x3466e0(0x402)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x3466e0(0x4bf)][_0x3466e0(0x173)],'color':_0x3466e0(0x148)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape['ShapeLineTypeEnum']['SolidLine'],'width':0x1,'color':_0x3466e0(0x29d)},'shapeText':{'isHorizontal':!!_0x37aa7f[_0x3466e0(0x238)]}};}const _0x388831=_0x343044[_0x3466e0(0x623)](_univerjs_pro_sheets_shape['InsertShapeCommand']['id'],_0x578ed4);return setTimeout(()=>{const _0x5cefdb=_0x3466e0;_0x343044[_0x5cefdb(0x591)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x519431,'subUnitId':_0x5dad80,'drawingId':_0x578ed4[_0x5cefdb(0x4ac)]}]);},0xc8),_0x388831;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x1e7723,_0x25d9b2){const _0x4e1a7f=_0x3e9a34;super(),this[_0x4e1a7f(0x48e)]=_0x1e7723,this[_0x4e1a7f(0x4d0)]=_0x25d9b2,this[_0x4e1a7f(0x1d1)](),this[_0x4e1a7f(0x48e)][_0x4e1a7f(0x13c)](!![]),this[_0x4e1a7f(0x58e)]({'dispose':()=>this[_0x4e1a7f(0x48e)][_0x4e1a7f(0x13c)](![])});}[_0x3e9a34(0x1d1)](){const _0x3bce1e=_0x3e9a34,_0x13aa28=this[_0x3bce1e(0x48e)],_0x27960a=new Map(),_0x40b701=_0x13aa28[_0x3bce1e(0x417)]((_0x1cdc3f,_0x59180d,_0x1e4e53,_0x4d38f0,_0x272ab1)=>{const _0x5a424c=_0x3bce1e,_0x4872de=_0x59180d;if(_0x4872de===_univerjs_pro_engine_shape[_0x5a424c(0x126)][_0x5a424c(0x319)]||_0x59180d===_0x5a424c(0x3c9))return![];try{let _0x1d9411=_0x27960a[_0x5a424c(0x2d9)](_0x59180d);!_0x1d9411&&(_0x1d9411=new _univerjs_pro_engine_shape['ShapeModel'](_0x4872de,'clip-'+_0x59180d),_0x27960a['set'](_0x59180d,_0x1d9411));if(_0x272ab1)_0x1d9411[_0x5a424c(0x5f0)]({'adjustValues':_0x272ab1},!![]);return _0x1d9411[_0x5a424c(0x566)]({'width':_0x1e4e53,'height':_0x4d38f0}),_0x1d9411[_0x5a424c(0x51c)](_0x1cdc3f,{'left':0x0,'top':0x0,'width':_0x1e4e53,'height':_0x4d38f0});}catch{return![];}});this[_0x3bce1e(0x58e)](_0x40b701),this[_0x3bce1e(0x58e)]({'dispose':()=>_0x27960a[_0x3bce1e(0x54d)]()});}[_0x3e9a34(0x643)](_0x2e2f9f,_0x26f5c8,_0x4edd15,_0x131d31,_0x13e619){const _0xc43114=_0x3e9a34,_0x30a1d5=this[_0xc43114(0x4d0)][_0xc43114(0x5bc)](_0x2e2f9f,_0x26f5c8);if(!_0x30a1d5[_0x4edd15])return;const _0x76b45a={..._0x30a1d5[_0x4edd15],'prstGeom':_0x131d31,'adjustValues':_0x13e619};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x76b45a]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui[_0x3e9a34(0x5a0)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_drawing[_0x3e9a34(0x5d5)]))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x641)],'icon':_0x3e9a34(0x627),'name':_0x3e9a34(0x1ab)},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2a5)],'icon':'ShapeStraightConnector1Icon','name':_0x3e9a34(0x3f2),'endArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2a5)],'icon':_0x3e9a34(0x5b1),'name':_0x3e9a34(0x54c),'endArrow':!![],'startArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x647),'name':_0x3e9a34(0x383)},{'group':'line','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x55c),'name':_0x3e9a34(0x25e),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x1c9),'name':_0x3e9a34(0x282),'endArrow':!![],'startArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x29c)],'icon':_0x3e9a34(0x4c4),'name':_0x3e9a34(0x472)},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['CurvedConnector3'],'icon':_0x3e9a34(0x240),'name':_0x3e9a34(0x588),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x29c)],'icon':_0x3e9a34(0x4c8),'name':_0x3e9a34(0x46a),'endArrow':!![],'startArrow':!![]},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Rect'],'icon':'ShapeRectIcon','name':_0x3e9a34(0x248)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5b5)],'icon':_0x3e9a34(0x1b1),'name':'shape.type.round-rect'},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x197)],'icon':_0x3e9a34(0x48d),'name':_0x3e9a34(0x3aa)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5a6)],'icon':'ShapeSnip2SameRectIcon','name':_0x3e9a34(0x3de)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Snip2DiagRect'],'icon':'ShapeSnip2DiagRectIcon','name':_0x3e9a34(0x1ad)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x243)],'icon':_0x3e9a34(0x64b),'name':_0x3e9a34(0x602)},{'group':'rectangle','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3d0)],'icon':_0x3e9a34(0x1f9),'name':_0x3e9a34(0x31b)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x43c)],'icon':_0x3e9a34(0x277),'name':_0x3e9a34(0x66b)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Round2DiagRect'],'icon':_0x3e9a34(0x587),'name':_0x3e9a34(0x251)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x163)],'icon':_0x3e9a34(0x45f),'name':_0x3e9a34(0x5ca),'horizontal':!![]},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x163)],'icon':_0x3e9a34(0x376),'name':_0x3e9a34(0x3c1),'vertical':!![]},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x496)],'icon':_0x3e9a34(0x32b),'name':_0x3e9a34(0x620)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4c9)],'icon':_0x3e9a34(0x50a),'name':'shape.type.triangle'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x629)],'icon':_0x3e9a34(0x2b4),'name':_0x3e9a34(0x651)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1b0)],'icon':_0x3e9a34(0x5b6),'name':_0x3e9a34(0x2db)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44a)],'icon':_0x3e9a34(0x1af),'name':'shape.type.trapezoid'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x20d)],'icon':'ShapeDiamondIcon','name':_0x3e9a34(0x3b0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5cc)],'icon':'ShapePentagonIcon','name':_0x3e9a34(0x147)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x622)],'icon':_0x3e9a34(0xea),'name':'shape.type.hexagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Heptagon'],'icon':'ShapeHeptagonIcon','name':_0x3e9a34(0x4c6)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x247)],'icon':_0x3e9a34(0x154),'name':'shape.type.octagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5ef)],'icon':_0x3e9a34(0x64d),'name':'shape.type.decagon'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x215)],'icon':'ShapeDodecagonIcon','name':'shape.type.dodecagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44e)],'icon':_0x3e9a34(0x32e),'name':_0x3e9a34(0x168)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Chord'],'icon':_0x3e9a34(0x360),'name':_0x3e9a34(0x1b5)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x212)],'icon':'ShapeTeardropIcon','name':_0x3e9a34(0x3ac)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2f9)],'icon':_0x3e9a34(0x5d2),'name':'shape.type.frame'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3a2)],'icon':_0x3e9a34(0x207),'name':'shape.type.half-frame'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x609)],'icon':_0x3e9a34(0x143),'name':_0x3e9a34(0x5e0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x111)],'icon':'ShapeDiagStripeIcon','name':_0x3e9a34(0x4a0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Plus'],'icon':_0x3e9a34(0x3db),'name':_0x3e9a34(0x46b)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1fe)],'icon':_0x3e9a34(0x21e),'name':_0x3e9a34(0x578)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Can'],'icon':_0x3e9a34(0x334),'name':_0x3e9a34(0x612)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x422)],'icon':'ShapeCubeIcon','name':_0x3e9a34(0x5a5)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5a9)],'icon':_0x3e9a34(0x61d),'name':_0x3e9a34(0x339)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Donut'],'icon':_0x3e9a34(0x303),'name':_0x3e9a34(0x4a3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x61b)],'icon':'ShapeNoSmokingIcon','name':_0x3e9a34(0x2f6)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5d3)],'icon':_0x3e9a34(0x2b7),'name':_0x3e9a34(0x542)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x586)],'icon':'ShapeFolderCornerIcon','name':_0x3e9a34(0x28f)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x104)],'icon':'ShapeSmileyFaceIcon','name':_0x3e9a34(0x3c8)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x110)],'icon':_0x3e9a34(0x3d8),'name':_0x3e9a34(0x257)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1c0)],'icon':_0x3e9a34(0x48b),'name':_0x3e9a34(0x281)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x52a)],'icon':'ShapeSunIcon','name':_0x3e9a34(0x311)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4c2)],'icon':_0x3e9a34(0x5dd),'name':_0x3e9a34(0x432)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Cloud'],'icon':_0x3e9a34(0x4ef),'name':_0x3e9a34(0x4b2)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Arc'],'icon':'ShapeArcIcon','name':_0x3e9a34(0x2b3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['BracketPair'],'icon':_0x3e9a34(0x5c1),'name':'shape.type.bracket-pair'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x125)],'icon':'ShapeBracePairIcon','name':_0x3e9a34(0x3a9)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x454)],'icon':_0x3e9a34(0xe6),'name':_0x3e9a34(0x51d)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5fa)],'icon':_0x3e9a34(0x616),'name':_0x3e9a34(0x3b3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftBrace'],'icon':_0x3e9a34(0x424),'name':_0x3e9a34(0x462)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['RightBrace'],'icon':'ShapeRightBraceIcon','name':'shape.type.right-brace'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x65a)],'icon':_0x3e9a34(0x18e),'name':_0x3e9a34(0x4db)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftArrow'],'icon':_0x3e9a34(0x590),'name':_0x3e9a34(0x1d7)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x384)],'icon':'ShapeUpArrowIcon','name':_0x3e9a34(0x3bf)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3e1)],'icon':_0x3e9a34(0xeb),'name':'shape.type.down-arrow'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2da)],'icon':_0x3e9a34(0x24b),'name':_0x3e9a34(0x55f)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3e6)],'icon':_0x3e9a34(0x297),'name':_0x3e9a34(0x45c)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x426)],'icon':'ShapeQuadArrowIcon','name':_0x3e9a34(0x11b)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightUpArrow'],'icon':_0x3e9a34(0x2f8),'name':_0x3e9a34(0x22b)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5d9)],'icon':_0x3e9a34(0x134),'name':_0x3e9a34(0x5ce)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['UturnArrow'],'icon':'ShapeUturnArrowIcon','name':_0x3e9a34(0x570)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftUpArrow'],'icon':_0x3e9a34(0x11d),'name':_0x3e9a34(0x36f)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x15c)],'icon':_0x3e9a34(0x38b),'name':_0x3e9a34(0x648)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x43b)],'icon':'ShapeCurvedRightArrowIcon','name':_0x3e9a34(0x625)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1a1)],'icon':_0x3e9a34(0x164),'name':_0x3e9a34(0x1d0)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5c2)],'icon':_0x3e9a34(0x378),'name':_0x3e9a34(0x187)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x51e)],'icon':_0x3e9a34(0x477),'name':_0x3e9a34(0x645)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x42c)],'icon':_0x3e9a34(0x2cf),'name':_0x3e9a34(0x167)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NotchedRightArrow'],'icon':'ShapeNotchedRightArrowIcon','name':_0x3e9a34(0x1df)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4f2)],'icon':_0x3e9a34(0x16c),'name':_0x3e9a34(0x62e)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x24a)],'icon':_0x3e9a34(0x1ef),'name':'shape.type.chevron'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['RightArrowCallout'],'icon':_0x3e9a34(0x60f),'name':_0x3e9a34(0x32c)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1a6)],'icon':_0x3e9a34(0x357),'name':_0x3e9a34(0x428)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2b5)],'icon':'ShapeLeftArrowCalloutIcon','name':_0x3e9a34(0x35f)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x136)],'icon':'ShapeUpArrowCalloutIcon','name':'shape.type.up-arrow-callout'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightArrowCallout'],'icon':_0x3e9a34(0x668),'name':'shape.type.left-right-arrow-callout'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['QuadArrowCallout'],'icon':_0x3e9a34(0x103),'name':_0x3e9a34(0x369)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44b)],'icon':_0x3e9a34(0x4d5),'name':_0x3e9a34(0x1c1)},{'group':'equationShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4e0)],'icon':_0x3e9a34(0x294),'name':_0x3e9a34(0x1db)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x404)],'icon':'ShapeMathMinusIcon','name':_0x3e9a34(0x3ab)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4fb)],'icon':_0x3e9a34(0x427),'name':_0x3e9a34(0x569)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x13d)],'icon':_0x3e9a34(0x15f),'name':_0x3e9a34(0x144)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['MathEqual'],'icon':_0x3e9a34(0x545),'name':_0x3e9a34(0x4da)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x596)],'icon':_0x3e9a34(0x52b),'name':_0x3e9a34(0x414)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartProcess'],'icon':'ShapeFlowChartProcessIcon','name':'shape.type.flow-chart-process'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3cb)],'icon':_0x3e9a34(0x2e9),'name':_0x3e9a34(0x2a1)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x524)],'icon':_0x3e9a34(0x4d2),'name':_0x3e9a34(0x5cf)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x49e)],'icon':_0x3e9a34(0x47e),'name':_0x3e9a34(0x483)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x395)],'icon':_0x3e9a34(0x1ec),'name':_0x3e9a34(0x558)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartInternalStorage'],'icon':_0x3e9a34(0x4ee),'name':_0x3e9a34(0x476)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x16f)],'icon':_0x3e9a34(0x2a3),'name':_0x3e9a34(0x23e)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x435)],'icon':_0x3e9a34(0x3e5),'name':_0x3e9a34(0x25c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ca)],'icon':_0x3e9a34(0x3e9),'name':_0x3e9a34(0x179)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartPreparation'],'icon':_0x3e9a34(0x2c6),'name':_0x3e9a34(0x61a)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x283)],'icon':'ShapeFlowChartManualInputIcon','name':_0x3e9a34(0x30d)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x28c)],'icon':_0x3e9a34(0x24c),'name':'shape.type.flow-chart-manual-operation'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x621)],'icon':_0x3e9a34(0x2b1),'name':_0x3e9a34(0x53b)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x528)],'icon':_0x3e9a34(0x595),'name':_0x3e9a34(0x25a)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5f7)],'icon':_0x3e9a34(0x635),'name':_0x3e9a34(0x36a)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x490)],'icon':_0x3e9a34(0x318),'name':_0x3e9a34(0x450)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x135)],'icon':_0x3e9a34(0x2cc),'name':_0x3e9a34(0x349)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1e6)],'icon':'ShapeFlowChartOrIcon','name':_0x3e9a34(0x26f)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2bf)],'icon':_0x3e9a34(0x615),'name':_0x3e9a34(0x155)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartSort'],'icon':'ShapeFlowChartSortIcon','name':_0x3e9a34(0x38c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xdf)],'icon':_0x3e9a34(0x2a8),'name':_0x3e9a34(0x18c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ff)],'icon':_0x3e9a34(0x502),'name':'shape.type.flow-chart-merge'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x563)],'icon':_0x3e9a34(0x658),'name':'shape.type.flow-chart-online-storage'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3b4)],'icon':_0x3e9a34(0x312),'name':_0x3e9a34(0x16e)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x34a)],'icon':'ShapeFlowChartMagneticTapeIcon','name':'shape.type.flow-chart-magnetic-tape'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3ef)],'icon':_0x3e9a34(0x3c2),'name':'shape.type.flow-chart-magnetic-disk'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x617)],'icon':'ShapeFlowChartMagneticDrumIcon','name':_0x3e9a34(0x36c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x381)],'icon':_0x3e9a34(0x4dd),'name':_0x3e9a34(0x4d8)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x537)],'icon':'ShapeIrregularSeal1Icon','name':_0x3e9a34(0x45e)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5fb)],'icon':'ShapeIrregularSeal2Icon','name':_0x3e9a34(0x34d)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2be)],'icon':_0x3e9a34(0x5b2),'name':_0x3e9a34(0x106)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Star5'],'icon':_0x3e9a34(0x47f),'name':_0x3e9a34(0x515)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x457)],'icon':_0x3e9a34(0x2c2),'name':'shape.type.star6'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x53e)],'icon':_0x3e9a34(0xf0),'name':_0x3e9a34(0x1bf)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x552)],'icon':'ShapeStar8Icon','name':_0x3e9a34(0x456)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Star10'],'icon':_0x3e9a34(0x429),'name':_0x3e9a34(0x549)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x582)],'icon':'ShapeStar12Icon','name':_0x3e9a34(0x47a)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x541)],'icon':'ShapeStar16Icon','name':_0x3e9a34(0x14e)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4ed)],'icon':_0x3e9a34(0x394),'name':_0x3e9a34(0x3cd)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x14d)],'icon':_0x3e9a34(0x102),'name':_0x3e9a34(0x231)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x423)],'icon':_0x3e9a34(0x4bb),'name':_0x3e9a34(0x5a4)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2bc)],'icon':_0x3e9a34(0x246),'name':'shape.type.ribbon'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['EllipseRibbon2'],'icon':_0x3e9a34(0x2c3),'name':'shape.type.ellipse-ribbon2'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x36e)],'icon':_0x3e9a34(0x5b9),'name':_0x3e9a34(0xf6)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x176)],'icon':_0x3e9a34(0x2a2),'name':_0x3e9a34(0x4cc)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xf2)],'icon':_0x3e9a34(0x505),'name':_0x3e9a34(0x220)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2b8)],'icon':_0x3e9a34(0x4d1),'name':_0x3e9a34(0x550)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x269)],'icon':_0x3e9a34(0x606),'name':_0x3e9a34(0x198)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ea)],'icon':'ShapeWedgeRectCalloutIcon','name':'shape.type.wedge-rect-callout'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x56f)],'icon':_0x3e9a34(0x57f),'name':_0x3e9a34(0x42f)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x27b)],'icon':'ShapeWedgeEllipseCalloutIcon','name':_0x3e9a34(0x390)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x665)],'icon':_0x3e9a34(0x397),'name':_0x3e9a34(0x327)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x497)],'icon':_0x3e9a34(0x232),'name':_0x3e9a34(0x3af)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x261)],'icon':'ShapeBorderCallout2Icon','name':_0x3e9a34(0x17c)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x235)],'icon':'ShapeBorderCallout3Icon','name':_0x3e9a34(0xe8)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x105)],'icon':_0x3e9a34(0x1fa),'name':_0x3e9a34(0x340)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x287)],'icon':_0x3e9a34(0xe9),'name':'shape.type.accent-callout2'},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['AccentCallout3'],'icon':_0x3e9a34(0x152),'name':'shape.type.accent-callout3'},{'group':'callout','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3d7)],'icon':'ShapeCallout1Icon','name':_0x3e9a34(0x1c3)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x13a)],'icon':_0x3e9a34(0x3d3),'name':_0x3e9a34(0x37e)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x624)],'icon':_0x3e9a34(0x2c1),'name':_0x3e9a34(0x579)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['AccentBorderCallout1'],'icon':_0x3e9a34(0x117),'name':_0x3e9a34(0x263)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4f3)],'icon':_0x3e9a34(0x40c),'name':'shape.type.accent-border-callout2'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3ea)],'icon':_0x3e9a34(0x411),'name':_0x3e9a34(0x113)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x166)],'icon':_0x3e9a34(0x157),'name':_0x3e9a34(0x190)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x11c)],'icon':'ShapeLeftRightCircularArrowIcon','name':'shape.type.left-right-circular-arrow'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5ab)],'icon':_0x3e9a34(0x30c),'name':_0x3e9a34(0x1c8)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightRibbon'],'icon':_0x3e9a34(0x22a),'name':_0x3e9a34(0x4dc)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x547)],'icon':_0x3e9a34(0x326),'name':_0x3e9a34(0x4a4)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x13f)],'icon':_0x3e9a34(0x38f),'name':_0x3e9a34(0x361)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x119)],'icon':'ShapeGear6Icon','name':_0x3e9a34(0x400)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Gear9'],'icon':_0x3e9a34(0x3dd),'name':_0x3e9a34(0x59d)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['CornerTabs'],'icon':_0x3e9a34(0x2bb),'name':_0x3e9a34(0xec)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3e3)],'icon':_0x3e9a34(0x1c4),'name':'shape.type.action-button-back-previous'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x19d)],'icon':_0x3e9a34(0x3d4),'name':_0x3e9a34(0x3ca)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x33e)],'icon':'ShapeActionButtonBeginningIcon','name':_0x3e9a34(0x604)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x101)],'icon':_0x3e9a34(0x464),'name':_0x3e9a34(0x3c0)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x12a)],'icon':_0x3e9a34(0x525),'name':_0x3e9a34(0x610)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x53c)],'icon':_0x3e9a34(0xf5),'name':'shape.type.action-button-information'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x387)],'icon':'ShapeActionButtonReturnIcon','name':_0x3e9a34(0x626)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonMovie'],'icon':'ShapeActionButtonMovieIcon','name':_0x3e9a34(0x15a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x271)],'icon':_0x3e9a34(0x41b),'name':_0x3e9a34(0x29a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['ActionButtonSound'],'icon':_0x3e9a34(0x4bd),'name':'shape.type.action-button-sound'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3b7)],'icon':_0x3e9a34(0x3bb),'name':'shape.type.action-button-help'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x138)],'icon':_0x3e9a34(0x655),'name':'shape.type.action-button-blank'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1d3)],'icon':_0x3e9a34(0x3eb),'name':'shape.type.chart-plus'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x2b0)],'icon':_0x3e9a34(0xfb),'name':_0x3e9a34(0x270)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1da)],'icon':_0x3e9a34(0x222),'name':_0x3e9a34(0x1b7)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x33a)],'icon':'ShapeFlowChartOfflineStorageIcon','name':_0x3e9a34(0x1f3)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x57c)],'icon':_0x3e9a34(0x4c3),'name':_0x3e9a34(0x55a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5c4)],'icon':_0x3e9a34(0x40f),'name':_0x3e9a34(0x3e2)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xf4)],'icon':_0x3e9a34(0xf9),'name':_0x3e9a34(0x1f1)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x26a)],'icon':_0x3e9a34(0x1bb),'name':'shape.type.up-down-arrow-callout'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NonIsoscelesTrapezoid'],'icon':_0x3e9a34(0x2ad),'name':_0x3e9a34(0x43d)}],SHAPE_PICKER_COMPONENT='sheet.shape.picker.component';function ShapePickerComponent({onShapeClick:_0x1d9bcd,excludeGroups:_0x1803e7}){const _0x5c5b3b=_0x3e9a34,_0x19b962=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x5c5b3b(0x398)]),_0x584278=(0x0,_univerjs_ui[_0x5c5b3b(0x663)])(_univerjs_ui[_0x5c5b3b(0x4d9)]),_0x348385=(_0x1803e7?shapeTypeOptions[_0x5c5b3b(0x50f)](_0x353b2c=>!_0x1803e7[_0x5c5b3b(0x516)](_0x353b2c[_0x5c5b3b(0x504)])):shapeTypeOptions)['reduce']((_0x1e17f5,_0x39ba7a)=>{const _0x2ed6c8=_0x5c5b3b;if(!_0x1e17f5[_0x39ba7a[_0x2ed6c8(0x504)]])_0x1e17f5[_0x39ba7a['group']]=[];return _0x1e17f5[_0x39ba7a[_0x2ed6c8(0x504)]]['push'](_0x39ba7a),_0x1e17f5;},{});return(0x0,react_jsx_runtime['jsx'])(_0x5c5b3b(0x418),{'className':_0x5c5b3b(0x1ea),'children':Object[_0x5c5b3b(0x180)](_0x348385)[_0x5c5b3b(0x532)](([_0x3f6ea3,_0xb7aa28])=>(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x5c5b3b(0x44f),'children':[(0x0,react_jsx_runtime[_0x5c5b3b(0x64f)])(_0x5c5b3b(0x418),{'className':_0x5c5b3b(0x29f),'children':_0x19b962['t'](_0x5c5b3b(0x485)+_0x3f6ea3)}),(0x0,react_jsx_runtime[_0x5c5b3b(0x64f)])(_0x5c5b3b(0x418),{'className':'univer-grid\x20univer-grid-cols-10\x20univer-gap-1','children':_0xb7aa28[_0x5c5b3b(0x532)](_0x4e63a7=>{const _0x33a6a1=_0x5c5b3b,_0x354ff9=_0x584278[_0x33a6a1(0x2d9)](_0x4e63a7['icon']);return(0x0,react_jsx_runtime[_0x33a6a1(0x64f)])(_0x33a6a1(0x418),{'title':_0x19b962['t'](_0x4e63a7[_0x33a6a1(0x5a7)]),'onClick':()=>_0x1d9bcd(_0x4e63a7),'className':_0x33a6a1(0x356),'children':_0x354ff9&&(0x0,react_jsx_runtime[_0x33a6a1(0x64f)])(_0x354ff9,{'className':_0x33a6a1(0x20b)})},_0x4e63a7[_0x33a6a1(0x5a7)]);})})]},_0x3f6ea3))});}function ImageClipShapePicker(){const _0x4083f3=_0x3e9a34,_0x324809=(0x0,_univerjs_ui[_0x4083f3(0x663)])(_univerjs_core['LocaleService']),_0x386561=(0x0,_univerjs_ui[_0x4083f3(0x663)])(_univerjs_drawing[_0x4083f3(0x5d5)]),_0x3d811b=(0x0,_univerjs_ui[_0x4083f3(0x663)])(ImageShapeClipController),[_0x539f51,_0x282ab6]=(0x0,react[_0x4083f3(0x5a1)])(![]),_0x8df2f9=_0x2fabea=>{const _0x2c28bc=_0x4083f3,_0x387246=_0x386561[_0x2c28bc(0x4a6)]()[_0x2c28bc(0x536)](_0xce2ca5=>_0xce2ca5[_0x2c28bc(0x5ec)]===_univerjs_core[_0x2c28bc(0x506)][_0x2c28bc(0x140)]);if(!_0x387246)return;const {unitId:_0x1a8eab,subUnitId:_0x22d40a,drawingId:_0x59270a}=_0x387246;_0x3d811b[_0x2c28bc(0x643)](_0x1a8eab,_0x22d40a,_0x59270a,_0x2fabea[_0x2c28bc(0x142)]),_0x282ab6(![]);};return(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4083f3(0x4f0)],{'side':_0x4083f3(0xe1),'open':_0x539f51,'onOpenChange':_0x282ab6,'overlay':(0x0,react_jsx_runtime[_0x4083f3(0x64f)])(ShapePickerComponent,{'onShapeClick':_0x8df2f9,'excludeGroups':[_0x4083f3(0x4ff)]}),'children':(0x0,react_jsx_runtime[_0x4083f3(0x64f)])(_univerjs_design[_0x4083f3(0xfe)],{'children':_0x324809['t'](_0x4083f3(0x553))})});}function ShapePicker(){const _0x9b5d81=_0x3e9a34,_0x10b84a=(0x0,_univerjs_ui[_0x9b5d81(0x663)])(_univerjs_core[_0x9b5d81(0x3f7)]),_0x57f7e5=_0x3a4318=>{const _0x526b59=_0x9b5d81;_0x10b84a['executeCommand'](MenuInsertShapeCommand['id'],{'value':_0x3a4318[_0x526b59(0x142)],'enhanceParams':{'endArrow':_0x3a4318[_0x526b59(0x145)],'startArrow':_0x3a4318['startArrow'],'horizontal':_0x3a4318[_0x526b59(0x238)],'vertical':_0x3a4318['vertical']}});};return(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x57f7e5});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x3e9a34(0x4ce),'icon':'LeftJustifyingIcon','value':_univerjs_core[_0x3e9a34(0x5ed)][_0x3e9a34(0x57b)]},{'label':_0x3e9a34(0x667),'icon':'HorizontallyIcon','value':_univerjs_core['HorizontalAlign']['CENTER']},{'label':_0x3e9a34(0x54a),'icon':_0x3e9a34(0x242),'value':_univerjs_core[_0x3e9a34(0x5ed)]['RIGHT']}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x429ba8){const _0x68c7a1=_0x3e9a34,_0x2bd27a=_0x429ba8['get'](_univerjs_core[_0x68c7a1(0x409)]),_0x2b4014=_0x429ba8[_0x68c7a1(0x2d9)](_univerjs_core[_0x68c7a1(0x181)]);return{'id':_univerjs_docs_ui[_0x68c7a1(0x2d3)]['id'],'tooltip':_0x68c7a1(0x26b),'type':_univerjs_ui[_0x68c7a1(0x20e)][_0x68c7a1(0x351)],'icon':_0x68c7a1(0x62c),'selections':[{'label':{'name':_univerjs_ui[_0x68c7a1(0x2e7)],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x68c7a1(0x2f1))](_0x5d3210=>{const _0x25af19=_0x68c7a1;_0x5d3210[_0x25af19(0x5c7)](_0x2b4014[_0x25af19(0x1f2)](_0x25af19(0x195)));}),'hidden$':_0x2bd27a[_0x68c7a1(0x650)](_univerjs_core[_0x68c7a1(0x130)])[_0x68c7a1(0x1e2)]((0x0,rxjs[_0x68c7a1(0x439)])(_0x2bd27a[_0x68c7a1(0x518)](_univerjs_core[_0x68c7a1(0x130)])),(0x0,rxjs[_0x68c7a1(0x532)])(_0x407467=>!_0x407467))};}function ShapeResetBackgroundColorMenuItemFactory(_0x4d80c8){const _0x39a11e=_0x3e9a34,_0x98bd16=_0x4d80c8[_0x39a11e(0x2d9)](_univerjs_core[_0x39a11e(0x409)]);return{'id':_univerjs_docs_ui[_0x39a11e(0x517)]['id'],'type':_univerjs_ui[_0x39a11e(0x20e)][_0x39a11e(0x453)],'title':_0x39a11e(0x28d),'hidden$':_0x98bd16[_0x39a11e(0x650)](_univerjs_core[_0x39a11e(0x130)])[_0x39a11e(0x1e2)]((0x0,rxjs['startWith'])(_0x98bd16[_0x39a11e(0x518)](_univerjs_core[_0x39a11e(0x130)])),(0x0,rxjs[_0x39a11e(0x532)])(_0x2fdbed=>!_0x2fdbed))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x3e9a34(0x4ce),'icon':_0x3e9a34(0x314),'value':_univerjs_core[_0x3e9a34(0x5ed)]['LEFT']},{'label':_0x3e9a34(0x667),'icon':'HorizontallyIcon','value':_univerjs_core['HorizontalAlign'][_0x3e9a34(0x2dc)]},{'label':_0x3e9a34(0x54a),'icon':_0x3e9a34(0x242),'value':_univerjs_core[_0x3e9a34(0x5ed)]['RIGHT']}];function ShapeTextHorizontalAlignMenuItemFactory(_0x801109){const _0x5de908=_0x3e9a34;var _0x37d627;const _0x1f4e18=_0x801109[_0x5de908(0x2d9)](_univerjs_core[_0x5de908(0x3f7)]),_0x3b4751=_0x801109['get'](_univerjs_core['IContextService']),_0x351439=_0x801109['get'](_univerjs_sheets_drawing[_0x5de908(0x275)]),_0x5e641c=_0x801109['get'](ShapeTextEditingService),_0x539920=_0x801109[_0x5de908(0x2d9)](_univerjs_pro_sheets_shape[_0x5de908(0x3a1)]),_0x31a664=_univerjs_core['HorizontalAlign'][_0x5de908(0x57b)],_0x39f52c=()=>{const _0x4aa7a0=_0x5de908;var _0xf6e70;const _0x5b8e2f=_0x351439['getFocusDrawings']()[_0x4aa7a0(0x50f)](_0x459a07=>_0x459a07[_0x4aa7a0(0x5ec)]===_univerjs_core[_0x4aa7a0(0x506)][_0x4aa7a0(0x3fc)]);if(_0x5b8e2f[_0x4aa7a0(0x440)]!==0x1)return _0x31a664;const _0x37cd27=_0x5e641c[_0x4aa7a0(0x512)](),_0x30fbae=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27[_0x4aa7a0(0x4a8)])||_0x5b8e2f[0x0][_0x4aa7a0(0x4a8)],_0x44bf87=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27[_0x4aa7a0(0x5d6)])||_0x5b8e2f[0x0][_0x4aa7a0(0x5d6)],_0x17edcc=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27['shapeId'])||_0x5b8e2f[0x0][_0x4aa7a0(0x4c5)],_0x56100f=_0x539920['getShapeModel'](_0x30fbae,_0x44bf87,_0x17edcc);if(!_0x56100f)return _0x31a664;const _0x740db7=_0x56100f[_0x4aa7a0(0x459)]();if(!_0x740db7||!(_0x4aa7a0(0xe0)in _0x740db7))return _0x31a664;const _0x5431da=_0x740db7[_0x4aa7a0(0xe0)];return(_0xf6e70=_0x5431da===null||_0x5431da===void 0x0?void 0x0:_0x5431da['ha'])!==null&&_0xf6e70!==void 0x0?_0xf6e70:_0x31a664;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x37d627=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x5de908(0x536)](_0x5cbd40=>_0x5cbd40[_0x5de908(0x115)]===_0x31a664))===null||_0x37d627===void 0x0?void 0x0:_0x37d627['icon'],'tooltip':_0x5de908(0x638),'type':_univerjs_ui[_0x5de908(0x20e)]['SELECTOR'],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x11a2fc=>{const _0xb5c573=_0x5de908,_0xfa089a=_0x1f4e18[_0xb5c573(0x3b5)](_0x4f44c3=>{const _0x148ddc=_0xb5c573;if(_0x4f44c3['id']===SetShapeTextHorizontalAlignCommand['id'])_0x11a2fc[_0x148ddc(0x5c7)](_0x39f52c());}),_0x1eb1aa=_0x5e641c[_0xb5c573(0x186)][_0xb5c573(0x562)](()=>{const _0x396970=_0xb5c573;_0x11a2fc[_0x396970(0x5c7)](_0x39f52c());});return _0x11a2fc[_0xb5c573(0x5c7)](_0x39f52c()),()=>{const _0x4a4ea2=_0xb5c573;_0xfa089a[_0x4a4ea2(0x199)](),_0x1eb1aa[_0x4a4ea2(0x54e)]();};}),'hidden$':_0x3b4751[_0x5de908(0x650)](_univerjs_core[_0x5de908(0x130)])['pipe']((0x0,rxjs[_0x5de908(0x532)])(_0xb90316=>!_0xb90316))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x3e9a34(0x14a),'icon':_0x3e9a34(0x494),'value':_univerjs_core[_0x3e9a34(0x48a)][_0x3e9a34(0x2ab)]},{'label':_0x3e9a34(0x56d),'icon':_0x3e9a34(0x3a3),'value':_univerjs_core[_0x3e9a34(0x48a)]['MIDDLE']},{'label':_0x3e9a34(0x267),'icon':_0x3e9a34(0x628),'value':_univerjs_core[_0x3e9a34(0x48a)][_0x3e9a34(0x573)]}];function ShapeVerticalAlignMenuItemFactory(_0x5b68dc){const _0x339039=_0x3e9a34;var _0x497628;const _0x350fcc=_0x5b68dc[_0x339039(0x2d9)](_univerjs_core[_0x339039(0x3f7)]),_0x16005f=_0x5b68dc[_0x339039(0x2d9)](_univerjs_core[_0x339039(0x409)]),_0x2f70c6=_0x5b68dc[_0x339039(0x2d9)](_univerjs_sheets_drawing[_0x339039(0x275)]),_0x21c598=_0x5b68dc[_0x339039(0x2d9)](ShapeTextEditingService),_0x3f4fa8=_0x5b68dc[_0x339039(0x2d9)](_univerjs_pro_sheets_shape[_0x339039(0x3a1)]),_0x5adfa4=_univerjs_core['VerticalAlign'][_0x339039(0x2ab)],_0x1ae25f=()=>{const _0xfc0c4f=_0x339039;var _0xc160de;const _0x2bad9f=_0x2f70c6[_0xfc0c4f(0x4a6)]()[_0xfc0c4f(0x50f)](_0x363f92=>_0x363f92[_0xfc0c4f(0x5ec)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x2bad9f['length']!==0x1)return _0x5adfa4;const _0x45b727=_0x21c598[_0xfc0c4f(0x512)](),_0x35b0e7=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x4a8)])||_0x2bad9f[0x0][_0xfc0c4f(0x4a8)],_0x17588a=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x5d6)])||_0x2bad9f[0x0]['subUnitId'],_0x315996=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x4ac)])||_0x2bad9f[0x0][_0xfc0c4f(0x4c5)],_0x5f021b=_0x3f4fa8[_0xfc0c4f(0x533)](_0x35b0e7,_0x17588a,_0x315996);if(!_0x5f021b)return _0x5adfa4;const _0x4e69f3=_0x5f021b['getShapeTextData']();if(!_0x4e69f3||!('dataModel'in _0x4e69f3))return _0x5adfa4;const _0x5089ab=_0x4e69f3[_0xfc0c4f(0xe0)];return(_0xc160de=_0x5089ab===null||_0x5089ab===void 0x0?void 0x0:_0x5089ab['va'])!==null&&_0xc160de!==void 0x0?_0xc160de:_0x5adfa4;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x497628=SHAPE_VERTICAL_ALIGN_CHILDREN[_0x339039(0x536)](_0x1b6a30=>_0x1b6a30['value']===_0x5adfa4))===null||_0x497628===void 0x0?void 0x0:_0x497628[_0x339039(0x2e8)],'tooltip':_0x339039(0x29e),'type':_univerjs_ui[_0x339039(0x20e)][_0x339039(0x2f2)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x1d6d7b=>{const _0x2dac68=_0x339039,_0x52a415=_0x350fcc[_0x2dac68(0x3b5)](_0x45def8=>{if(_0x45def8['id']===SetShapeTextVerticalAlignCommand['id'])_0x1d6d7b['next'](_0x1ae25f());}),_0x59731a=_0x21c598[_0x2dac68(0x186)]['subscribe'](()=>{const _0xbe330f=_0x2dac68;_0x1d6d7b[_0xbe330f(0x5c7)](_0x1ae25f());});return _0x1d6d7b['next'](_0x1ae25f()),()=>{_0x52a415['dispose'](),_0x59731a['unsubscribe']();};}),'hidden$':_0x16005f['subscribeContextValue$'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x339039(0x1e2)]((0x0,rxjs[_0x339039(0x532)])(_0x4325dd=>!_0x4325dd))};}function ShapeMenuItemFactory(_0x3085ec){const _0x871483=_0x3e9a34,_0x1ea2a5=_0x3085ec[_0x871483(0x2d9)](_univerjs_core['IUniverInstanceService']);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x871483(0x20e)][_0x871483(0x2f2)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x871483(0x4e7),'tooltip':_0x871483(0x4e2),'activated$':(0x0,_univerjs_sheets_ui['deriveStateFromActiveSheet$'])(_0x1ea2a5,![],()=>new rxjs[(_0x871483(0x2f1))](_0x4eb459=>{const _0x121df8=_0x871483;_0x4eb459[_0x121df8(0x5c7)](![]);})),'hidden$':(0x0,_univerjs_ui[_0x871483(0x467)])(_0x3085ec,_univerjs_core[_0x871483(0x4cd)]['UNIVER_SHEET']),'disabled$':(0x0,_univerjs_sheets_ui[_0x871483(0x364)])(_0x3085ec)};}const menuSchema={[_univerjs_ui[_0x3e9a34(0x482)][_0x3e9a34(0x58a)]]:{[_univerjs_ui[_0x3e9a34(0x2c5)][_0x3e9a34(0xe5)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui['RibbonStartGroup'][_0x3e9a34(0x401)]]:{[_univerjs_docs_ui[_0x3e9a34(0x2d3)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui[_0x3e9a34(0x644)][_0x3e9a34(0x415)]]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core['Disposable']{constructor(_0x381bc7,_0x3c102d,_0x4936ff,_0x23e384,_0x3846e4,_0x6610a3,_0x3412a1,_0x3f7573,_0x3f334b,_0x2ec526,_0x5761bf){const _0x293721=_0x3e9a34;super(),this[_0x293721(0x5e1)]=_0x381bc7,this['_sheetInterceptorService']=_0x3c102d,this[_0x293721(0x184)]=_0x4936ff,this['_menuManagerService']=_0x23e384,this[_0x293721(0xfd)]=_0x3846e4,this[_0x293721(0x5d4)]=_0x6610a3,this[_0x293721(0x5f4)]=_0x3412a1,this[_0x293721(0x363)]=_0x3f7573,this[_0x293721(0x4d0)]=_0x3f334b,this[_0x293721(0x5bb)]=_0x2ec526,this[_0x293721(0x17e)]=_0x5761bf,_defineProperty(this,_0x293721(0x3fa),null),_defineProperty(this,_0x293721(0x1e9),null),_defineProperty(this,_0x293721(0x661),![]),this[_0x293721(0x65c)](),this[_0x293721(0x341)](),this[_0x293721(0x58e)](this[_0x293721(0x5e1)][_0x293721(0x3c7)](_univerjs_core[_0x293721(0x4cd)][_0x293721(0x58b)])[_0x293721(0x562)](_0x17dfbc=>{const _0x34defc=_0x293721;var _0x312e98;if(!_0x17dfbc)(_0x312e98=this[_0x34defc(0x3fa)])===null||_0x312e98===void 0x0||_0x312e98[_0x34defc(0x199)]();})),this[_0x293721(0x41a)](),this['_registerShapeMenu']();}[_0x3e9a34(0x341)](){const _0x25f4ed=_0x3e9a34;this['_menuManagerService'][_0x25f4ed(0xff)](menuSchema);}[_0x3e9a34(0x388)](){const _0x39ab8f=_0x3e9a34;this[_0x39ab8f(0x5bb)]['registerFeatureMenu'](_univerjs_core[_0x39ab8f(0x506)][_0x39ab8f(0x3fc)],this[_0x39ab8f(0x509)][_0x39ab8f(0x3b8)](this)),this[_0x39ab8f(0x5bb)][_0x39ab8f(0x5a2)](_univerjs_core[_0x39ab8f(0x506)]['DRAWING_SHAPE'],0x6,0x4);}[_0x3e9a34(0x509)](_0x503cc7,_0x2391b4,_0x54191f,_0x3390cd){const _0xf6de10=_0x3e9a34;return[{'label':_0xf6de10(0x594),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f},'disable':_0x3390cd===_univerjs_core[_0xf6de10(0x506)][_0xf6de10(0x49d)]},{'label':'sheets-shape.deleteShape','index':0x1,'commandId':_univerjs_sheets_drawing[_0xf6de10(0x259)]['id'],'commandParams':{'unitId':_0x503cc7,'drawings':[{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f,'drawingType':_0x3390cd}]},'disable':![]},{'label':_0xf6de10(0x19e),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f},'disable':![]},{'label':_0xf6de10(0x26e),'index':0x3,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x189)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'flipH':!![]},'disable':![]},{'label':_0xf6de10(0x17f),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x189)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'flipV':!![]},'disable':![]},{'label':'sheets-shape.rotateRight90','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x1fd)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'rotate':0x5a},'disable':![]},{'label':_0xf6de10(0x12f),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x1fd)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'rotate':-0x5a},'disable':![]},{'label':_0xf6de10(0x172),'index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeTextVerticalToggleCommand']['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f},'disable':![]}];}['_getShapeInfo'](_0x5a46bf,_0x289bf7,_0x30b23b){const _0x2df3dd=_0x3e9a34,_0x227dd6=this[_0x2df3dd(0xfd)][_0x2df3dd(0x1a0)](_0x5a46bf,_0x289bf7,_0x30b23b),_0x4efb78=this[_0x2df3dd(0xfd)][_0x2df3dd(0x153)](_0x5a46bf,_0x289bf7,_0x30b23b);if(_0x227dd6!==void 0x0&&_0x4efb78!==void 0x0)return{'shapeData':_0x4efb78,'shapeId':_0x30b23b,'shapeType':_0x227dd6,'unitId':_0x5a46bf,'subUnitId':_0x289bf7,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x389275=_0x3e9a34;this[_0x389275(0x58e)](this[_0x389275(0x363)]['onCommandExecuted'](_0x48fee3=>{const _0x2b2bf0=_0x389275;if(_0x48fee3['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x2abfb9,subUnitId:_0x453ce8,drawingId:_0x512e2a}=_0x48fee3[_0x2b2bf0(0xee)];this['_activeShapeInfo']=this[_0x2b2bf0(0x2f0)](_0x2abfb9,_0x453ce8,_0x512e2a),this[_0x2b2bf0(0x2d8)]();}_0x48fee3['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x2b2bf0(0x1e9)]=null,this['_closeShapeEditPanel']());if(_0x48fee3['id']===_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id']){const {unitId:_0x18a9d2,subUnitId:_0x437d7c,shapeId:_0x52195a}=_0x48fee3[_0x2b2bf0(0xee)];if(this[_0x2b2bf0(0x1e9)]&&this['_activeShapeInfo'][_0x2b2bf0(0x4ac)]===_0x52195a){const _0x360e9=this[_0x2b2bf0(0x2f0)](_0x18a9d2,_0x437d7c,_0x52195a);if(_0x360e9)this['_activeShapeInfo']=_0x360e9;}}})),this[_0x389275(0x58e)](this[_0x389275(0x4d0)][_0x389275(0x188)]['subscribe'](_0x56ee22=>{const _0x402c7a=_0x389275;if(this[_0x402c7a(0x661)]===![])return;if(_0x56ee22[_0x402c7a(0x440)]===0x0){this['_activeShapeInfo']=null,this[_0x402c7a(0x65b)]();return;}if(_0x56ee22[_0x402c7a(0x440)]===0x1&&_0x56ee22[0x0]['drawingType']===_univerjs_core[_0x402c7a(0x506)][_0x402c7a(0x3fc)]){this[_0x402c7a(0x1e9)]=this['_getShapeInfo'](_0x56ee22[0x0][_0x402c7a(0x4a8)],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0][_0x402c7a(0x4c5)]);if(this[_0x402c7a(0x1e9)]){this[_0x402c7a(0x2d8)]();return;}}const _0x185976=_0x56ee22[_0x402c7a(0x50f)](_0x17e3f0=>{const _0x3089e7=_0x402c7a;return _0x17e3f0[_0x3089e7(0x5ec)]===_univerjs_core[_0x3089e7(0x506)][_0x3089e7(0x3fc)];});if(_0x56ee22[_0x402c7a(0x440)]>0x1&&_0x185976[_0x402c7a(0x440)]===_0x56ee22[_0x402c7a(0x440)]){this[_0x402c7a(0x1e9)]=this[_0x402c7a(0x2f0)](_0x56ee22[0x0]['unitId'],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0][_0x402c7a(0x4c5)]);if(this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{this[_0x402c7a(0x1e9)]=this[_0x402c7a(0x2f0)](_0x56ee22[0x0][_0x402c7a(0x4a8)],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0]['drawingId']);if(this[_0x402c7a(0x1e9)]){this[_0x402c7a(0x1e9)][_0x402c7a(0x268)]=!![],this[_0x402c7a(0x2d8)]();return;}}this[_0x402c7a(0x65b)]();}));}[_0x3e9a34(0x65c)](){const _0x3c635b=_0x3e9a34;[[_0x3c635b(0x4e7),_univerjs_icons[_0x3c635b(0x4e7)]],[_0x3c635b(0x117),_univerjs_icons[_0x3c635b(0x117)]],[_0x3c635b(0x40c),_univerjs_icons[_0x3c635b(0x40c)]],[_0x3c635b(0x411),_univerjs_icons[_0x3c635b(0x411)]],[_0x3c635b(0x1fa),_univerjs_icons[_0x3c635b(0x1fa)]],['ShapeAccentCallout2Icon',_univerjs_icons[_0x3c635b(0xe9)]],[_0x3c635b(0x152),_univerjs_icons[_0x3c635b(0x152)]],['ShapeActionButtonBackPreviousIcon',_univerjs_icons[_0x3c635b(0x1c4)]],[_0x3c635b(0x42b),_univerjs_icons[_0x3c635b(0x42b)]],['ShapeActionButtonBlankIcon',_univerjs_icons[_0x3c635b(0x655)]],['ShapeActionButtonDocumentIcon',_univerjs_icons[_0x3c635b(0x41b)]],[_0x3c635b(0x464),_univerjs_icons[_0x3c635b(0x464)]],[_0x3c635b(0x3d4),_univerjs_icons['ShapeActionButtonForwardNextIcon']],[_0x3c635b(0x3bb),_univerjs_icons[_0x3c635b(0x3bb)]],[_0x3c635b(0x525),_univerjs_icons[_0x3c635b(0x525)]],[_0x3c635b(0xf5),_univerjs_icons[_0x3c635b(0xf5)]],[_0x3c635b(0x3f6),_univerjs_icons[_0x3c635b(0x3f6)]],[_0x3c635b(0x49f),_univerjs_icons[_0x3c635b(0x49f)]],[_0x3c635b(0x4bd),_univerjs_icons[_0x3c635b(0x4bd)]],[_0x3c635b(0x21b),_univerjs_icons['ShapeArcIcon']],[_0x3c635b(0x134),_univerjs_icons[_0x3c635b(0x134)]],['ShapeBentConnector3Arrow1Icon',_univerjs_icons['ShapeBentConnector3Arrow1Icon']],['ShapeBentConnector3Arrow2Icon',_univerjs_icons[_0x3c635b(0x1c9)]],[_0x3c635b(0x647),_univerjs_icons[_0x3c635b(0x647)]],[_0x3c635b(0x38b),_univerjs_icons[_0x3c635b(0x38b)]],[_0x3c635b(0x61d),_univerjs_icons[_0x3c635b(0x61d)]],[_0x3c635b(0x2b7),_univerjs_icons['ShapeBlockArcIcon']],[_0x3c635b(0x232),_univerjs_icons[_0x3c635b(0x232)]],[_0x3c635b(0x631),_univerjs_icons[_0x3c635b(0x631)]],[_0x3c635b(0x560),_univerjs_icons[_0x3c635b(0x560)]],['ShapeBracePairIcon',_univerjs_icons['ShapeBracePairIcon']],[_0x3c635b(0x5c1),_univerjs_icons[_0x3c635b(0x5c1)]],[_0x3c635b(0x393),_univerjs_icons[_0x3c635b(0x393)]],[_0x3c635b(0x3d3),_univerjs_icons[_0x3c635b(0x3d3)]],['ShapeCallout3Icon',_univerjs_icons[_0x3c635b(0x2c1)]],['ShapeCanIcon',_univerjs_icons[_0x3c635b(0x334)]],[_0x3c635b(0x3eb),_univerjs_icons['ShapeChartPlusIcon']],['ShapeChartStarIcon',_univerjs_icons[_0x3c635b(0xfb)]],[_0x3c635b(0x222),_univerjs_icons[_0x3c635b(0x222)]],[_0x3c635b(0x1ef),_univerjs_icons['ShapeChevronIcon']],['ShapeChordIcon',_univerjs_icons['ShapeChordIcon']],[_0x3c635b(0x4d5),_univerjs_icons[_0x3c635b(0x4d5)]],[_0x3c635b(0x397),_univerjs_icons[_0x3c635b(0x397)]],[_0x3c635b(0x4ef),_univerjs_icons[_0x3c635b(0x4ef)]],['ShapeCornerIcon',_univerjs_icons[_0x3c635b(0x143)]],[_0x3c635b(0x2bb),_univerjs_icons[_0x3c635b(0x2bb)]],[_0x3c635b(0x443),_univerjs_icons[_0x3c635b(0x443)]],['ShapeCurvedConnector3Arrow1Icon',_univerjs_icons[_0x3c635b(0x240)]],[_0x3c635b(0x4c8),_univerjs_icons[_0x3c635b(0x4c8)]],[_0x3c635b(0x4c4),_univerjs_icons['ShapeCurvedConnector3Icon']],[_0x3c635b(0x477),_univerjs_icons[_0x3c635b(0x477)]],['ShapeCurvedLeftArrowIcon',_univerjs_icons['ShapeCurvedLeftArrowIcon']],[_0x3c635b(0x291),_univerjs_icons[_0x3c635b(0x291)]],['ShapeCurvedUpArrowIcon',_univerjs_icons[_0x3c635b(0x378)]],[_0x3c635b(0x64d),_univerjs_icons[_0x3c635b(0x64d)]],[_0x3c635b(0x37d),_univerjs_icons['ShapeDiagStripeIcon']],[_0x3c635b(0x463),_univerjs_icons[_0x3c635b(0x463)]],[_0x3c635b(0x17b),_univerjs_icons[_0x3c635b(0x17b)]],['ShapeDonutIcon',_univerjs_icons[_0x3c635b(0x303)]],[_0x3c635b(0x606),_univerjs_icons[_0x3c635b(0x606)]],['ShapeDownArrowCalloutIcon',_univerjs_icons[_0x3c635b(0x357)]],[_0x3c635b(0xeb),_univerjs_icons[_0x3c635b(0xeb)]],[_0x3c635b(0x32b),_univerjs_icons[_0x3c635b(0x32b)]],[_0x3c635b(0x2c3),_univerjs_icons[_0x3c635b(0x2c3)]],[_0x3c635b(0x5b9),_univerjs_icons[_0x3c635b(0x5b9)]],[_0x3c635b(0x2e9),_univerjs_icons[_0x3c635b(0x2e9)]],['ShapeFlowChartCollateIcon',_univerjs_icons[_0x3c635b(0x615)]],['ShapeFlowChartConnectorIcon',_univerjs_icons['ShapeFlowChartConnectorIcon']],[_0x3c635b(0x4d2),_univerjs_icons['ShapeFlowChartDecisionIcon']],['ShapeFlowChartDelayIcon',_univerjs_icons['ShapeFlowChartDelayIcon']],[_0x3c635b(0x4dd),_univerjs_icons[_0x3c635b(0x4dd)]],[_0x3c635b(0x2a3),_univerjs_icons[_0x3c635b(0x2a3)]],[_0x3c635b(0x2a8),_univerjs_icons[_0x3c635b(0x2a8)]],['ShapeFlowChartInputOutputIcon',_univerjs_icons[_0x3c635b(0x47e)]],[_0x3c635b(0x4ee),_univerjs_icons[_0x3c635b(0x4ee)]],[_0x3c635b(0x3c2),_univerjs_icons[_0x3c635b(0x3c2)]],[_0x3c635b(0x230),_univerjs_icons['ShapeFlowChartMagneticDrumIcon']],['ShapeFlowChartMagneticTapeIcon',_univerjs_icons[_0x3c635b(0x29b)]],[_0x3c635b(0x4b7),_univerjs_icons['ShapeFlowChartManualInputIcon']],[_0x3c635b(0x24c),_univerjs_icons[_0x3c635b(0x24c)]],[_0x3c635b(0x502),_univerjs_icons['ShapeFlowChartMergeIcon']],[_0x3c635b(0x3e5),_univerjs_icons[_0x3c635b(0x3e5)]],[_0x3c635b(0x2eb),_univerjs_icons[_0x3c635b(0x2eb)]],[_0x3c635b(0x595),_univerjs_icons['ShapeFlowChartOffpageConnectorIcon']],[_0x3c635b(0x658),_univerjs_icons[_0x3c635b(0x658)]],[_0x3c635b(0x4b3),_univerjs_icons[_0x3c635b(0x4b3)]],[_0x3c635b(0x1ec),_univerjs_icons['ShapeFlowChartPredefinedProcessIcon']],[_0x3c635b(0x2c6),_univerjs_icons[_0x3c635b(0x2c6)]],[_0x3c635b(0x59a),_univerjs_icons['ShapeFlowChartProcessIcon']],[_0x3c635b(0x635),_univerjs_icons[_0x3c635b(0x635)]],['ShapeFlowChartPunchedTapeIcon',_univerjs_icons[_0x3c635b(0x318)]],[_0x3c635b(0x60e),_univerjs_icons[_0x3c635b(0x60e)]],[_0x3c635b(0x2cc),_univerjs_icons[_0x3c635b(0x2cc)]],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x3c635b(0x3e9)]],[_0x3c635b(0x23d),_univerjs_icons['ShapeFolderCornerIcon']],[_0x3c635b(0x5d2),_univerjs_icons[_0x3c635b(0x5d2)]],[_0x3c635b(0x38f),_univerjs_icons[_0x3c635b(0x38f)]],[_0x3c635b(0x577),_univerjs_icons[_0x3c635b(0x577)]],['ShapeGear9Icon',_univerjs_icons[_0x3c635b(0x3dd)]],[_0x3c635b(0x207),_univerjs_icons['ShapeHalfFrameIcon']],['ShapeHeartIcon',_univerjs_icons['ShapeHeartIcon']],[_0x3c635b(0x4e6),_univerjs_icons[_0x3c635b(0x4e6)]],['ShapeHexagonIcon',_univerjs_icons[_0x3c635b(0xea)]],['ShapeHomePlateIcon',_univerjs_icons[_0x3c635b(0x16c)]],[_0x3c635b(0x505),_univerjs_icons[_0x3c635b(0x505)]],[_0x3c635b(0x2fd),_univerjs_icons[_0x3c635b(0x2fd)]],[_0x3c635b(0x15e),_univerjs_icons[_0x3c635b(0x15e)]],[_0x3c635b(0x10a),_univerjs_icons[_0x3c635b(0x10a)]],['ShapeLeftArrowIcon',_univerjs_icons[_0x3c635b(0x590)]],[_0x3c635b(0x424),_univerjs_icons[_0x3c635b(0x424)]],[_0x3c635b(0xe6),_univerjs_icons[_0x3c635b(0xe6)]],[_0x3c635b(0x157),_univerjs_icons['ShapeLeftCircularArrowIcon']],[_0x3c635b(0x668),_univerjs_icons[_0x3c635b(0x668)]],[_0x3c635b(0x24b),_univerjs_icons[_0x3c635b(0x24b)]],[_0x3c635b(0x4a5),_univerjs_icons[_0x3c635b(0x4a5)]],[_0x3c635b(0x22a),_univerjs_icons[_0x3c635b(0x22a)]],[_0x3c635b(0x2f8),_univerjs_icons['ShapeLeftRightUpArrowIcon']],['ShapeLeftUpArrowIcon',_univerjs_icons[_0x3c635b(0x11d)]],[_0x3c635b(0x48b),_univerjs_icons[_0x3c635b(0x48b)]],[_0x3c635b(0x627),_univerjs_icons[_0x3c635b(0x627)]],[_0x3c635b(0x4c3),_univerjs_icons[_0x3c635b(0x4c3)]],[_0x3c635b(0x15f),_univerjs_icons[_0x3c635b(0x15f)]],[_0x3c635b(0x545),_univerjs_icons[_0x3c635b(0x545)]],['ShapeMathMinusIcon',_univerjs_icons['ShapeMathMinusIcon']],[_0x3c635b(0x427),_univerjs_icons[_0x3c635b(0x427)]],[_0x3c635b(0x52b),_univerjs_icons[_0x3c635b(0x52b)]],[_0x3c635b(0x294),_univerjs_icons[_0x3c635b(0x294)]],['ShapeMoonIcon',_univerjs_icons[_0x3c635b(0x5dd)]],['ShapeNoSmokingIcon',_univerjs_icons['ShapeNoSmokingIcon']],[_0x3c635b(0x2ad),_univerjs_icons['ShapeNonIsoscelesTrapezoidIcon']],['ShapeNotchedRightArrowIcon',_univerjs_icons[_0x3c635b(0xe3)]],[_0x3c635b(0x154),_univerjs_icons['ShapeOctagonIcon']],[_0x3c635b(0x5b6),_univerjs_icons['ShapeParallelogramIcon']],[_0x3c635b(0x338),_univerjs_icons[_0x3c635b(0x338)]],[_0x3c635b(0x32e),_univerjs_icons[_0x3c635b(0x32e)]],[_0x3c635b(0x326),_univerjs_icons['ShapePieWedgeIcon']],['ShapePlaqueIcon',_univerjs_icons[_0x3c635b(0x21e)]],[_0x3c635b(0x40f),_univerjs_icons[_0x3c635b(0x40f)]],[_0x3c635b(0x3db),_univerjs_icons[_0x3c635b(0x3db)]],[_0x3c635b(0x103),_univerjs_icons[_0x3c635b(0x103)]],[_0x3c635b(0x57a),_univerjs_icons[_0x3c635b(0x57a)]],['ShapeRectIcon',_univerjs_icons[_0x3c635b(0x4f7)]],[_0x3c635b(0x45f),_univerjs_icons[_0x3c635b(0x45f)]],['ShapeRectTextboxVerticalIcon',_univerjs_icons[_0x3c635b(0x376)]],['ShapeRibbon2Icon',_univerjs_icons['ShapeRibbon2Icon']],[_0x3c635b(0x246),_univerjs_icons[_0x3c635b(0x246)]],[_0x3c635b(0x60f),_univerjs_icons[_0x3c635b(0x60f)]],[_0x3c635b(0x18e),_univerjs_icons[_0x3c635b(0x18e)]],[_0x3c635b(0x205),_univerjs_icons[_0x3c635b(0x205)]],[_0x3c635b(0x616),_univerjs_icons[_0x3c635b(0x616)]],[_0x3c635b(0x1f9),_univerjs_icons[_0x3c635b(0x1f9)]],[_0x3c635b(0x587),_univerjs_icons[_0x3c635b(0x587)]],['ShapeRound2SameRectIcon',_univerjs_icons['ShapeRound2SameRectIcon']],[_0x3c635b(0x1b1),_univerjs_icons['ShapeRoundRectIcon']],[_0x3c635b(0x2b4),_univerjs_icons[_0x3c635b(0x2b4)]],[_0x3c635b(0x28a),_univerjs_icons[_0x3c635b(0x28a)]],['ShapeSnip1RectIcon',_univerjs_icons[_0x3c635b(0x48d)]],[_0x3c635b(0x139),_univerjs_icons[_0x3c635b(0x139)]],[_0x3c635b(0x1fc),_univerjs_icons[_0x3c635b(0x1fc)]],[_0x3c635b(0x64b),_univerjs_icons[_0x3c635b(0x64b)]],[_0x3c635b(0xf9),_univerjs_icons[_0x3c635b(0xf9)]],[_0x3c635b(0x429),_univerjs_icons[_0x3c635b(0x429)]],['ShapeStar12Icon',_univerjs_icons[_0x3c635b(0x3fb)]],['ShapeStar16Icon',_univerjs_icons[_0x3c635b(0x274)]],['ShapeStar24Icon',_univerjs_icons[_0x3c635b(0x394)]],[_0x3c635b(0x102),_univerjs_icons[_0x3c635b(0x102)]],['ShapeStar4Icon',_univerjs_icons[_0x3c635b(0x5b2)]],[_0x3c635b(0x47f),_univerjs_icons[_0x3c635b(0x47f)]],[_0x3c635b(0x2c2),_univerjs_icons['ShapeStar6Icon']],[_0x3c635b(0xf0),_univerjs_icons[_0x3c635b(0xf0)]],[_0x3c635b(0x4a9),_univerjs_icons['ShapeStar8Icon']],[_0x3c635b(0x499),_univerjs_icons['ShapeStraightConnector1Icon']],[_0x3c635b(0x5b1),_univerjs_icons[_0x3c635b(0x5b1)]],['ShapeStripedRightArrowIcon',_univerjs_icons[_0x3c635b(0x2cf)]],['ShapeSunIcon',_univerjs_icons['ShapeSunIcon']],['ShapeSwooshArrowIcon',_univerjs_icons[_0x3c635b(0x30c)]],[_0x3c635b(0x124),_univerjs_icons[_0x3c635b(0x124)]],[_0x3c635b(0x1af),_univerjs_icons[_0x3c635b(0x1af)]],[_0x3c635b(0x50a),_univerjs_icons[_0x3c635b(0x50a)]],[_0x3c635b(0x114),_univerjs_icons['ShapeUpArrowCalloutIcon']],[_0x3c635b(0x40b),_univerjs_icons['ShapeUpArrowIcon']],[_0x3c635b(0x1bb),_univerjs_icons[_0x3c635b(0x1bb)]],['ShapeUpDownArrowIcon',_univerjs_icons[_0x3c635b(0x297)]],[_0x3c635b(0x60b),_univerjs_icons[_0x3c635b(0x60b)]],[_0x3c635b(0x2a2),_univerjs_icons['ShapeVerticalScrollIcon']],[_0x3c635b(0x4d1),_univerjs_icons[_0x3c635b(0x4d1)]],[_0x3c635b(0x3ed),_univerjs_icons[_0x3c635b(0x3ed)]],[_0x3c635b(0xde),_univerjs_icons[_0x3c635b(0xde)]],[_0x3c635b(0x57f),_univerjs_icons['ShapeWedgeRoundRectCalloutIcon']],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x3c635b(0x131)],ImageClipShapePicker]]['forEach'](([_0xacfa6e,_0x581899])=>{const _0x2b693c=_0x3c635b;this[_0x2b693c(0x58e)](this['_componentManager'][_0x2b693c(0x405)](_0xacfa6e,_0x581899));});}[_0x3e9a34(0x2d8)](){const _0x487a58=_0x3e9a34;this[_0x487a58(0x3fa)]=this[_0x487a58(0x184)][_0x487a58(0x367)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x487a58(0x5d4)]['t'](_0x487a58(0x1a4))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x487a58(0x1e9)]},'onClose':()=>{const _0xbbbc0f=_0x487a58;this['_drawingManagerService']['focusDrawing'](null),this[_0xbbbc0f(0x17e)][_0xbbbc0f(0x1b8)](_univerjs_core[_0xbbbc0f(0x130)],![]),this[_0xbbbc0f(0x3fa)]=null;}}),this[_0x487a58(0x661)]=!![];}[_0x3e9a34(0x65b)](){const _0x3f796f=_0x3e9a34;this[_0x3f796f(0x661)]=![],this[_0x3f796f(0x184)][_0x3f796f(0x5aa)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x3f796f(0x3fa)]=null,this[_0x3f796f(0x17e)]['setContextValue'](_univerjs_core[_0x3f796f(0x130)],![]),this[_0x3f796f(0x4d0)][_0x3f796f(0x348)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets[_0x3e9a34(0x45b)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_ui[_0x3e9a34(0x5dc)])),__decorateParam(0x3,_univerjs_ui[_0x3e9a34(0x3b1)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x398)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_ui[_0x3e9a34(0x4d9)])),__decorateParam(0x7,_univerjs_core['ICommandService']),__decorateParam(0x8,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_ui[_0x3e9a34(0x3dc)])),__decorateParam(0xa,_univerjs_core['IContextService'])],SheetsShapeUIController);var name=_0x3e9a34(0x4f1),version='0.22.1';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[_0x3e9a34(0x128)]{constructor(_0x3cb350,_0x80e411,_0x127d1,_0x5b5398,_0x313b5b){const _0x491057=_0x3e9a34;super(),this[_0x491057(0x50e)]=_0x3cb350,this[_0x491057(0x4d0)]=_0x80e411,this[_0x491057(0x5cb)]=_0x127d1,this[_0x491057(0x5e1)]=_0x5b5398,this[_0x491057(0x3ae)]=_0x313b5b,_defineProperty(this,_0x491057(0x5ae),null),_defineProperty(this,_0x491057(0x324),null),_defineProperty(this,_0x491057(0x55d),null),_defineProperty(this,_0x491057(0x4e9),void 0x0),_defineProperty(this,_0x491057(0x4bc),[]),_defineProperty(this,'_baseLeft',0x0),_defineProperty(this,_0x491057(0x471),0x0),_defineProperty(this,'_baseWidth',0x0),_defineProperty(this,'_baseHeight',0x0),_defineProperty(this,_0x491057(0x50d),![]),_defineProperty(this,_0x491057(0x159),void 0x0),_defineProperty(this,_0x491057(0x19a),void 0x0),_defineProperty(this,_0x491057(0x310),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0x491057(0x4a1),![]),this[_0x491057(0x2e5)](),this['_registerMoveHandler']();}[_0x3e9a34(0x63b)](){const _0x4534f0=_0x3e9a34;this[_0x4534f0(0x221)]();}['refreshAdjustControls'](){const _0x2495e3=_0x3e9a34;this[_0x2495e3(0x221)](),this[_0x2495e3(0x191)](!![]);}['_getOrCreateShapeModel'](_0x1e2596,_0x10b285,_0x255f17,_0x210ac1){const _0x57c2d6=_0x3e9a34,_0x59e26e=_0x1e2596;if(_0x59e26e===_univerjs_pro_engine_shape[_0x57c2d6(0x126)][_0x57c2d6(0x319)]||_0x1e2596===_0x57c2d6(0x3c9))return;try{const _0xecfcaf=new _univerjs_pro_engine_shape[(_0x57c2d6(0x4df))](_0x59e26e,_0x57c2d6(0x583)+_0x1e2596);if(_0x210ac1)_0xecfcaf[_0x57c2d6(0x5f0)]({'adjustValues':_0x210ac1},!![]);return _0xecfcaf[_0x57c2d6(0x566)]({'width':_0x10b285,'height':_0x255f17}),_0xecfcaf;}catch{return;}}[_0x3e9a34(0x2d1)](_0xbacff7,_0x509222,_0x23cc5a){const _0x2ded90=_0x3e9a34,_0x277d0f={'unitId':_0xbacff7,'subUnitId':_0x509222,'drawingId':_0x23cc5a},_0x3e1dac=this['_drawingManagerService'][_0x2ded90(0x619)](_0x277d0f);if(!_0x3e1dac||_0x3e1dac[_0x2ded90(0x5ec)]!==_univerjs_core['DrawingTypeEnum'][_0x2ded90(0x140)])return;return _0x3e1dac;}[_0x3e9a34(0x23b)](_0x37da62,_0x3f61a8,_0x39b7a4){const _0x4bbfc9=_0x3e9a34,_0x2c66f5=this[_0x4bbfc9(0x5cb)]['getRenderById'](_0x37da62);if(!_0x2c66f5)return void 0x0;const {scene:_0xbf9e8}=_0x2c66f5,_0x2ff3d2=(0x0,_univerjs_drawing[_0x4bbfc9(0x171)])({'unitId':_0x37da62,'subUnitId':_0x3f61a8,'drawingId':_0x39b7a4}),_0x208e8b=_0xbf9e8[_0x4bbfc9(0x3c3)](_0x2ff3d2);if(_0x208e8b instanceof _univerjs_engine_render[_0x4bbfc9(0x41c)]){const _0x3e0f5a=_0x208e8b['prstGeom'];if(_0x3e0f5a)return{'prstGeom':_0x3e0f5a,'adjustValues':_0x208e8b[_0x4bbfc9(0x3c4)]};}}['_createControls'](_0x4f2214=![]){const _0x341465=_0x3e9a34;if(!this[_0x341465(0x324)]||!this[_0x341465(0x55d)]||!this[_0x341465(0x5ae)])return;const _0x5129f7=this['_renderManagerService']['getRenderById'](this['_unitId']);if(!_0x5129f7)return;if(!_0x5129f7[_0x341465(0x1cf)](_univerjs_sheets_ui[_0x341465(0x412)])[_0x341465(0x60a)]())return;const {scene:_0x1e6c8e}=_0x5129f7,_0x3a6d68=this[_0x341465(0x2d1)](this[_0x341465(0x324)],this[_0x341465(0x55d)],this[_0x341465(0x5ae)]);if(!_0x3a6d68)return;const {transform:_0x5a7ca0}=_0x3a6d68;if(!_0x5a7ca0)return;const {left:_0xeec0a6,top:_0x237356,width:_0x24c3ce,height:_0x5b2cec,flipX:_0x571cc8,flipY:_0x59d936,angle:angle=0x0}=_0x5a7ca0;if(_0xeec0a6===void 0x0||_0x237356===void 0x0)return;const _0x545d2b=this[_0x341465(0x23b)](this['_unitId'],this['_subUnitId'],this[_0x341465(0x5ae)]);if(!_0x545d2b)return;if(_0x4f2214){const _0x559417=this[_0x341465(0x461)](_0x545d2b[_0x341465(0x31d)],_0x24c3ce||0x0,_0x5b2cec||0x0,_0x545d2b[_0x341465(0x132)]);if(!_0x559417)return;this[_0x341465(0x4e9)]=_0x559417[_0x341465(0x660)]();}const _0x133dcc=this[_0x341465(0x4e9)];if(!_0x133dcc||_0x133dcc[_0x341465(0x440)]===0x0)return;for(let _0x71b32e=0x0;_0x71b32e<_0x133dcc[_0x341465(0x440)];_0x71b32e++){const _0x4975b4=_0x133dcc[_0x71b32e];let _0x1583c5=_0x4975b4['x'],_0x5cd941=_0x4975b4['y'];if(_0x571cc8)_0x1583c5=(_0x24c3ce||0x0)-_0x1583c5;if(_0x59d936)_0x5cd941=(_0x5b2cec||0x0)-_0x5cd941;if(angle!==0x0){const _0x4b9cc8=(_0x24c3ce||0x0)/0x2,_0x3a5ee1=(_0x5b2cec||0x0)/0x2,_0x4eeec2=angle*Math['PI']/0xb4,_0x2e89b0=Math[_0x341465(0x1cb)](_0x4eeec2),_0x1bd0e2=Math[_0x341465(0x479)](_0x4eeec2),_0x538668=_0x1583c5-_0x4b9cc8,_0x2a5d42=_0x5cd941-_0x3a5ee1;_0x1583c5=_0x4b9cc8+(_0x538668*_0x2e89b0-_0x2a5d42*_0x1bd0e2),_0x5cd941=_0x3a5ee1+(_0x538668*_0x1bd0e2+_0x2a5d42*_0x2e89b0);}const _0x38d0d5={'x':_0x1583c5,'y':_0x5cd941,'adjName':_0x4975b4[_0x341465(0x5f8)]};this['_addControl'](_0x1e6c8e,_0x38d0d5,_0x38d0d5[_0x341465(0x5f8)],_0xeec0a6,_0x237356,this[_0x341465(0x324)],this['_subUnitId']);}}['_addControl'](_0x2ed44c,_0x6b5977,_0x27f7fb,_0x5c8784,_0x10b30a,_0x3d80e8,_0x18aff4){const _0x212fca=_0x3e9a34;if(!this[_0x212fca(0x5ae)])return;const _0x5467ad='image-clip-adjust-point-'+this[_0x212fca(0x5ae)]+'-'+_0x27f7fb,_0xbe692=_0x2ed44c[_0x212fca(0x21c)](_0x5467ad);if(_0xbe692){_0xbe692['transformByState']({'left':_0x6b5977['x']+_0x5c8784-_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)],'top':_0x6b5977['y']+_0x10b30a-_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]});return;}const _0x454128=new SheetShapeAdjustPointObject(_0x5467ad,{'left':_0x6b5977['x']+_0x5c8784-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x212fca(0x3b6)],'top':_0x6b5977['y']+_0x10b30a-_univerjs_pro_engine_shape['ShapeDefaultConfig']['adjHandleSize'],'adjName':_0x27f7fb,'shapeId':this[_0x212fca(0x5ae)],'unitId':_0x3d80e8,'subUnitId':_0x18aff4,'width':_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]+0x8,'height':_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]+0x8,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this[_0x212fca(0x4bc)]['push'](_0x454128),this[_0x212fca(0x38a)](_0x454128,_0x2ed44c,_0x27f7fb),_0x2ed44c[_0x212fca(0x18b)](_0x454128,_univerjs_engine_render[_0x212fca(0x1bd)]+0x1);}[_0x3e9a34(0x221)](){const _0x533d01=_0x3e9a34;if(this['_shapes'][_0x533d01(0x440)]===0x0)return;this['_shapes']['forEach'](_0x14118a=>_0x14118a[_0x533d01(0x199)]()),this[_0x533d01(0x4bc)]=[];}[_0x3e9a34(0x507)](_0x40c79b,_0x5b27e6){const _0x13c4d4=_0x3e9a34;var _0x20ce54;const _0x63c39e={'x':0x0,'y':0x0},_0x2fb3b0=this[_0x13c4d4(0x5cb)][_0x13c4d4(0x17d)](_0x40c79b);if(!_0x2fb3b0)return _0x63c39e;if(!_0x2fb3b0[_0x13c4d4(0x1cf)](_univerjs_sheets_ui[_0x13c4d4(0x412)])[_0x13c4d4(0x64e)](_0x5b27e6))return _0x63c39e;const _0x3db3fc=_0x2fb3b0[_0x13c4d4(0x1cf)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x53072f=_0x3db3fc===null||_0x3db3fc===void 0x0?void 0x0:_0x3db3fc[_0x13c4d4(0x531)]();if(!_0x53072f)return _0x63c39e;const _0x193694=(_0x20ce54=this[_0x13c4d4(0x5e1)][_0x13c4d4(0x46e)](_0x40c79b))===null||_0x20ce54===void 0x0?void 0x0:_0x20ce54[_0x13c4d4(0x299)](_0x5b27e6);if(!_0x193694)return _0x63c39e;const _0x25677b=(0x0,_univerjs_sheets_ui[_0x13c4d4(0x33f)])(_0x53072f[_0x13c4d4(0x484)],_0x53072f['sheetViewStartColumn'],_0x2fb3b0['scene'],_0x193694);if(!_0x25677b)return _0x63c39e;return{'x':_0x25677b[_0x13c4d4(0x4aa)],'y':_0x25677b[_0x13c4d4(0x520)]};}[_0x3e9a34(0x52f)](_0x352654,_0x2bd57e){const _0x31efa1=_0x3e9a34;var _0x1c6cd7,_0x12e55b;const _0x12eb9c=(_0x1c6cd7=this['_univerInstanceService'][_0x31efa1(0x46e)](_0x352654))===null||_0x1c6cd7===void 0x0?void 0x0:_0x1c6cd7[_0x31efa1(0x299)](_0x2bd57e);return(_0x12e55b=_0x12eb9c===null||_0x12eb9c===void 0x0?void 0x0:_0x12eb9c[_0x31efa1(0x234)]())!==null&&_0x12e55b!==void 0x0?_0x12e55b:0x1;}[_0x3e9a34(0x38a)](_0x10b11e,_0x414d43,_0x3a1f1e){const _0x9fbe0f=_0x3e9a34;this[_0x9fbe0f(0x58e)]((0x0,_univerjs_core[_0x9fbe0f(0x28e)])(_0x10b11e[_0x9fbe0f(0x284)][_0x9fbe0f(0x345)]((_0x2855bd,_0x3b3221)=>{const _0x3c1221=_0x9fbe0f;var _0x5e8ef4,_0x475803,_0x1af65d;const {unitId:_0x4d1523,subUnitId:_0x23782a,drawingId:_0x1ccfbc}=_0x10b11e['getDrawingSearch'](),_0x3c7a7f=this['_getImageDrawingInfo'](_0x4d1523,_0x23782a,_0x1ccfbc);if(!(_0x3c7a7f===null||_0x3c7a7f===void 0x0?void 0x0:_0x3c7a7f[_0x3c1221(0x600)]))return;const {left:_0x58d721,top:_0x23d959,width:_0x258588,height:_0x2d2fee}=_0x3c7a7f[_0x3c1221(0x600)];this[_0x3c1221(0x3b2)]=_0x58d721||0x0,this[_0x3c1221(0x471)]=_0x23d959||0x0,this[_0x3c1221(0x491)]=_0x258588||0x0,this[_0x3c1221(0x255)]=_0x2d2fee||0x0;const _0xb83318=Boolean((_0x5e8ef4=_0x3c7a7f[_0x3c1221(0x600)])===null||_0x5e8ef4===void 0x0?void 0x0:_0x5e8ef4[_0x3c1221(0x2f5)]),_0x18e48f=Boolean((_0x475803=_0x3c7a7f['transform'])===null||_0x475803===void 0x0?void 0x0:_0x475803[_0x3c1221(0x35d)]),_0x123749=((_0x1af65d=_0x3c7a7f['transform'])===null||_0x1af65d===void 0x0?void 0x0:_0x1af65d['angle'])||0x0,_0x271e77=this[_0x3c1221(0x23b)](_0x4d1523,_0x23782a,_0x1ccfbc);if(!_0x271e77)return;const _0x36020d=this['_getOrCreateShapeModel'](_0x271e77['prstGeom'],this[_0x3c1221(0x491)],this['_baseHeight'],_0x271e77['adjustValues']);if(!_0x36020d)return;this['_activeShapeModel']=_0x36020d,this['_activeAdjustInfo']=_0x36020d[_0x3c1221(0x649)](_0x3a1f1e);if(!this[_0x3c1221(0x159)])return;this[_0x3c1221(0x50d)]=!![],_0x414d43[_0x3c1221(0x3c5)]();const _0x2c3f56=_0x271e77[_0x3c1221(0x31d)];this[_0x3c1221(0x310)]=_0x414d43[_0x3c1221(0x223)][_0x3c1221(0x345)]((_0xd1938f,_0x352bda)=>{const _0x37821b=_0x3c1221;if(!this[_0x37821b(0x50d)])return;const {offsetX:_0x36e1b9,offsetY:_0x4b8c94}=_0xd1938f,_0x3b8e34=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x3b8e34)return;_0x414d43[_0x37821b(0x3c5)](),_0x414d43['setCursor'](_univerjs_engine_render[_0x37821b(0x322)][_0x37821b(0x5b3)]);const _0x5701f5={'left':0x0,'top':0x0,'width':this[_0x37821b(0x491)],'height':this[_0x37821b(0x255)]},_0x121c7f=this[_0x37821b(0x507)](_0x4d1523,_0x23782a),_0x28b8b5=this[_0x37821b(0x52f)](_0x4d1523,_0x23782a);let _0x2dac5a=_0x36e1b9/_0x28b8b5+_0x121c7f['x']-this[_0x37821b(0x3b2)],_0x391cc6=_0x4b8c94/_0x28b8b5+_0x121c7f['y']-this[_0x37821b(0x471)];if(_0x123749!==0x0){const _0x17fa79=this['_baseWidth']/0x2,_0x3a761d=this[_0x37821b(0x255)]/0x2,_0xa86bf9=_0x123749*Math['PI']/0xb4,_0x1e4110=Math[_0x37821b(0x1cb)](_0xa86bf9),_0x1f9c06=Math[_0x37821b(0x479)](_0xa86bf9),_0x49f698=_0x2dac5a-_0x17fa79,_0x2e9929=_0x391cc6-_0x3a761d;_0x2dac5a=_0x17fa79+(_0x49f698*_0x1e4110+_0x2e9929*_0x1f9c06),_0x391cc6=_0x3a761d+(-_0x49f698*_0x1f9c06+_0x2e9929*_0x1e4110);}if(_0xb83318)_0x2dac5a=this[_0x37821b(0x491)]-_0x2dac5a;if(_0x18e48f)_0x391cc6=this[_0x37821b(0x255)]-_0x391cc6;const _0x2bc9a6=this[_0x37821b(0x19a)]['calcAdjValue'](_0x5701f5,{'x':_0x2dac5a,'y':_0x391cc6},_0x3b8e34,_0xb83318,_0x18e48f),_0x343c57=_0x3b8e34[_0x37821b(0x5be)]||_0x3b8e34[_0x37821b(0x12c)]||_0x3b8e34['gdRefAng']||_0x3b8e34['gdRefR'];if(_0x343c57===void 0x0)return;this[_0x37821b(0x19a)][_0x37821b(0x57d)](_0x343c57,_0x2bc9a6),this[_0x37821b(0x19a)]['updateContext']({'width':this[_0x37821b(0x491)],'height':this['_baseHeight']}),this[_0x37821b(0x4cf)](_0x4d1523,_0x23782a,_0x1ccfbc,_0x343c57,_0x2bc9a6),this[_0x37821b(0x4e9)]=this[_0x37821b(0x19a)][_0x37821b(0x660)](),this[_0x37821b(0x159)]=this[_0x37821b(0x19a)][_0x37821b(0x649)](_0x3a1f1e),this[_0x37821b(0x191)](),_0x352bda[_0x37821b(0x11e)]();}),this[_0x3c1221(0x4f6)]=_0x414d43[_0x3c1221(0x575)][_0x3c1221(0x345)]((_0x398210,_0x142f6f)=>{const _0xe84a0c=_0x3c1221;this[_0xe84a0c(0x310)][_0xe84a0c(0x54e)](),this[_0xe84a0c(0x4f6)][_0xe84a0c(0x54e)](),_0x414d43[_0xe84a0c(0x26d)]();if(this[_0xe84a0c(0x19a)]){const _0x2d6160=this[_0xe84a0c(0x19a)]['getAdjustNames'](),_0x20b74c={};for(const _0x1abe5b of _0x2d6160){const _0x1f7893=this[_0xe84a0c(0x19a)][_0xe84a0c(0x5f9)](_0x1abe5b);if(_0x1f7893!==void 0x0)_0x20b74c[_0x1abe5b]=_0x1f7893;}this['_imageShapeClipController'][_0xe84a0c(0x643)](_0x4d1523,_0x23782a,_0x1ccfbc,_0x2c3f56,_0x20b74c);}this['_activeAdjustInfo']=void 0x0,this[_0xe84a0c(0x19a)]=void 0x0,this['_isStartAdjusting']=![],_0x142f6f[_0xe84a0c(0x11e)](),_0x414d43[_0xe84a0c(0x4fc)]();}),_0x3b3221[_0x3c1221(0x11e)]();})));}[_0x3e9a34(0x4cf)](_0x1c58fa,_0x10ce5c,_0x1abc90,_0x5e5fbb,_0x457a13){const _0x37e286=_0x3e9a34,_0x36a820=this[_0x37e286(0x5cb)][_0x37e286(0x17d)](_0x1c58fa);if(!_0x36a820)return;const {scene:_0x64a49}=_0x36a820,_0x2f3927=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x1c58fa,'subUnitId':_0x10ce5c,'drawingId':_0x1abc90}),_0x725030=_0x64a49[_0x37e286(0x3c3)](_0x2f3927);if(_0x725030 instanceof _univerjs_engine_render[_0x37e286(0x41c)]){var _0x20dcc7;const _0x540550=(_0x20dcc7=_0x725030[_0x37e286(0x3c4)])!==null&&_0x20dcc7!==void 0x0?_0x20dcc7:{};_0x725030[_0x37e286(0x31a)]({..._0x540550,[_0x5e5fbb]:_0x457a13}),_0x725030[_0x37e286(0x309)](!![]);}}['_registerMoveHandler'](){const _0x1a1a64=_0x3e9a34,_0x3a06c6=this[_0x1a1a64(0x5e1)]['getCurrentTypeOfUnit$'](_univerjs_core['UniverInstanceType'][_0x1a1a64(0x58b)]);this[_0x1a1a64(0x58e)](_0x3a06c6[_0x1a1a64(0x1e2)]((0x0,rxjs['switchMap'])(_0x314ec3=>{const _0x14273f=_0x1a1a64;if(!_0x314ec3)return rxjs['EMPTY'];return _0x314ec3[_0x14273f(0x1e1)][_0x14273f(0x1e2)]((0x0,rxjs[_0x14273f(0x352)])(_0x3f8a4f=>{const _0x3251bd=_0x14273f;if(!_0x3f8a4f)return rxjs['EMPTY'];const _0x150a93=_0x314ec3[_0x3251bd(0x386)](),_0x58c780=this[_0x3251bd(0x5cb)][_0x3251bd(0x17d)](_0x150a93),_0x1a9757=_0x58c780===null||_0x58c780===void 0x0?void 0x0:_0x58c780[_0x3251bd(0x2a4)];if(!_0x1a9757)return rxjs[_0x3251bd(0x218)];return(0x0,rxjs['of'])(_0x1a9757);}));}))[_0x1a1a64(0x562)](_0x2c268a=>{const _0x4a5797=_0x1a1a64,_0x521e44=_0x2c268a[_0x4a5797(0xe2)]();this[_0x4a5797(0x58e)](_0x2c268a[_0x4a5797(0x223)][_0x4a5797(0x345)](()=>{const _0x8d51a=_0x4a5797;if(this[_0x8d51a(0x4a1)])this[_0x8d51a(0x221)]();})),this['disposeWithMe'](_0x521e44[_0x4a5797(0x14c)][_0x4a5797(0x562)](_0x3b6004=>{const _0x306a37=_0x4a5797,{objects:_0x2b0f22}=_0x3b6004;this[_0x306a37(0x191)]();if(_0x2b0f22!==null&&_0x2b0f22[_0x306a37(0x43f)]===0x1){const _0x47fb02=_0x2b0f22[_0x306a37(0x4b8)]()[_0x306a37(0x5c7)]()[_0x306a37(0x115)];if(_0x47fb02 instanceof _univerjs_engine_render[_0x306a37(0x41c)]&&_0x47fb02[_0x306a37(0x31d)])this[_0x306a37(0x4a1)]=!![];}})),this[_0x4a5797(0x58e)](_0x521e44['changing$']['subscribe'](()=>{const _0x262f6b=_0x4a5797;if(this[_0x262f6b(0x4a1)])this[_0x262f6b(0x221)]();})),this[_0x4a5797(0x58e)](_0x2c268a[_0x4a5797(0x575)][_0x4a5797(0x345)](()=>{const _0x20b4ca=_0x4a5797;this[_0x20b4ca(0x4a1)]&&(this[_0x20b4ca(0x4a1)]=![],this[_0x20b4ca(0x191)]());})),this[_0x4a5797(0x58e)](_0x521e44[_0x4a5797(0x4c0)][_0x4a5797(0x562)](()=>{const _0x156966=_0x4a5797;if(this[_0x156966(0x324)]&&this[_0x156966(0x55d)]&&this[_0x156966(0x5ae)]){const _0xb3ce5f=this['_getImagePrstGeom'](this[_0x156966(0x324)],this[_0x156966(0x55d)],this[_0x156966(0x5ae)]);if(_0xb3ce5f){var _0x365640,_0xcc6e0;const _0x43725c=this['_getImageDrawingInfo'](this[_0x156966(0x324)],this[_0x156966(0x55d)],this[_0x156966(0x5ae)]),_0x44312=(_0x43725c===null||_0x43725c===void 0x0||(_0x365640=_0x43725c[_0x156966(0x600)])===null||_0x365640===void 0x0?void 0x0:_0x365640['width'])||0x0,_0x25f380=(_0x43725c===null||_0x43725c===void 0x0||(_0xcc6e0=_0x43725c[_0x156966(0x600)])===null||_0xcc6e0===void 0x0?void 0x0:_0xcc6e0[_0x156966(0x37b)])||0x0,_0xfafa0a=this[_0x156966(0x461)](_0xb3ce5f[_0x156966(0x31d)],_0x44312,_0x25f380,_0xb3ce5f[_0x156966(0x132)]);_0xfafa0a&&(this[_0x156966(0x4e9)]=_0xfafa0a[_0x156966(0x660)](),this[_0x156966(0x221)](),this[_0x156966(0x191)](!![]));}}}));}));}[_0x3e9a34(0x2e5)](){const _0x4e52d6=_0x3e9a34;this[_0x4e52d6(0x58e)](this[_0x4e52d6(0x4d0)][_0x4e52d6(0x188)][_0x4e52d6(0x562)](_0x4e3431=>{const _0x3c57f4=_0x4e52d6;if(_0x4e3431['length']===0x1){const _0x2044b5=_0x4e3431[0x0];if(_0x2044b5['drawingType']===_univerjs_core[_0x3c57f4(0x506)][_0x3c57f4(0x140)]){const {unitId:_0xac45a4,subUnitId:_0x375e4e,drawingId:_0x38e2fb}=_0x2044b5,_0x3e4c59=this[_0x3c57f4(0x23b)](_0xac45a4,_0x375e4e,_0x38e2fb);if(_0x3e4c59){var _0x993010,_0x44f1fd;this[_0x3c57f4(0x5ae)]=_0x38e2fb,this['_unitId']=_0xac45a4,this[_0x3c57f4(0x55d)]=_0x375e4e;const _0x12b0e9=this[_0x3c57f4(0x2d1)](_0xac45a4,_0x375e4e,_0x38e2fb),_0x22f0af=(_0x12b0e9===null||_0x12b0e9===void 0x0||(_0x993010=_0x12b0e9[_0x3c57f4(0x600)])===null||_0x993010===void 0x0?void 0x0:_0x993010[_0x3c57f4(0x183)])||0x0,_0xc1c3a6=(_0x12b0e9===null||_0x12b0e9===void 0x0||(_0x44f1fd=_0x12b0e9[_0x3c57f4(0x600)])===null||_0x44f1fd===void 0x0?void 0x0:_0x44f1fd[_0x3c57f4(0x37b)])||0x0,_0x2ccd09=this[_0x3c57f4(0x461)](_0x3e4c59[_0x3c57f4(0x31d)],_0x22f0af,_0xc1c3a6,_0x3e4c59[_0x3c57f4(0x132)]);if(_0x2ccd09)this[_0x3c57f4(0x4e9)]=_0x2ccd09['getDrawingPoints']();this['_clearControls'](),this[_0x3c57f4(0x191)](!![]);}else this[_0x3c57f4(0x57e)]();}else this[_0x3c57f4(0x57e)]();}else this[_0x3c57f4(0x57e)]();})),this['disposeWithMe'](this[_0x4e52d6(0x4d0)][_0x4e52d6(0x554)][_0x4e52d6(0x562)](_0x12701b=>{const _0x29a1a6=_0x4e52d6;if(_0x12701b[_0x29a1a6(0x440)]===0x1){const _0x17e4c1=_0x12701b[0x0],_0x161760=this[_0x29a1a6(0x4d0)][_0x29a1a6(0x619)](_0x17e4c1);(_0x161760===null||_0x161760===void 0x0?void 0x0:_0x161760['drawingType'])===_univerjs_core[_0x29a1a6(0x506)]['DRAWING_IMAGE']&&(this[_0x29a1a6(0x5ae)]===_0x17e4c1[_0x29a1a6(0x4c5)]&&(this[_0x29a1a6(0x221)](),this[_0x29a1a6(0x191)](!![])));}})),this[_0x4e52d6(0x58e)](this[_0x4e52d6(0x4d0)]['remove$']['subscribe'](_0x2c20bc=>{const _0x4a8280=_0x4e52d6;for(const _0x5313e6 of _0x2c20bc)if(this[_0x4a8280(0x5ae)]===_0x5313e6[_0x4a8280(0x4c5)])this[_0x4a8280(0x57e)]();}));}[_0x3e9a34(0x57e)](){const _0x1eb23d=_0x3e9a34;this[_0x1eb23d(0x5ae)]=null,this[_0x1eb23d(0x324)]=null,this['_subUnitId']=null,this[_0x1eb23d(0x4e9)]=void 0x0,this[_0x1eb23d(0x221)]();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0xfe0393,_0x4518ec,_0xa511aa,_0x420f52){const _0x364af9=_0x3e9a34;super(),this[_0x364af9(0x5e1)]=_0xfe0393,this['_sheetInterceptorService']=_0x4518ec,this['_sheetDrawingService']=_0xa511aa,this['_sheetsShapeService']=_0x420f52,this['_initSheetChange']();}[_0x3e9a34(0x31e)](){const _0x191816=_0x3e9a34;this[_0x191816(0x58e)](this[_0x191816(0x346)]['interceptCommand']({'getMutations':_0x4bf38c=>{const _0x56ccd3=_0x191816;if(_0x4bf38c['id']===_univerjs_sheets[_0x56ccd3(0x493)]['id']){const _0x5addba=(0x0,_univerjs_sheets[_0x56ccd3(0x249)])(this[_0x56ccd3(0x5e1)],_0x4bf38c[_0x56ccd3(0xee)]);if(!_0x5addba)return{'redos':[],'undos':[]};const {unitId:_0x1e7542,subUnitId:_0x4963a8}=_0x5addba,_0x436502=this[_0x56ccd3(0x5ad)]['getDrawingData'](_0x1e7542,_0x4963a8),_0x77d13b=Object['values'](_0x436502)[_0x56ccd3(0x50f)](_0x18a73f=>_0x18a73f[_0x56ccd3(0x5ec)]===_univerjs_core[_0x56ccd3(0x506)][_0x56ccd3(0x3fc)]);if(_0x77d13b[_0x56ccd3(0x440)]===0x0)return{'redos':[],'undos':[]};const _0x3c53ce=[],_0x19ffe3=[];for(let _0x4fd9e3=0x0;_0x4fd9e3<_0x77d13b[_0x56ccd3(0x440)];_0x4fd9e3++){const _0x5b58cb=_0x77d13b[_0x4fd9e3],_0x1a9232=this[_0x56ccd3(0xfd)][_0x56ccd3(0x533)](_0x5b58cb[_0x56ccd3(0x4a8)],_0x5b58cb[_0x56ccd3(0x5d6)],_0x5b58cb[_0x56ccd3(0x4c5)]);if(!_0x1a9232)continue;const {redo:_0x86d814,undo:_0x511932,objects:_0x392497}=this[_0x56ccd3(0x5ad)][_0x56ccd3(0x225)]([_0x5b58cb]);_0x3c53ce[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x13e)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'shapeId':_0x5b58cb['drawingId']}}),_0x3c53ce[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x354)],'op':_0x86d814,'objects':_0x392497}}),_0x19ffe3[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x56ccd3(0x317)],'op':_0x511932,'objects':_0x392497}}),_0x19ffe3[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x598)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'shapeId':_0x5b58cb['drawingId'],'shapeType':_0x1a9232['getShapeType'](),'shapeData':JSON[_0x56ccd3(0x329)](JSON[_0x56ccd3(0x313)](_0x1a9232[_0x56ccd3(0x470)]()))}});}return{'redos':_0x3c53ce,'undos':_0x19ffe3};}else{if(_0x4bf38c['id']===_univerjs_sheets[_0x56ccd3(0x2d4)]['id']){const {unitId:_0x276f32,subUnitId:_0x5a7df1,targetSubUnitId:_0x26c29b}=_0x4bf38c[_0x56ccd3(0xee)];if(!_0x276f32||!_0x5a7df1||!_0x26c29b)return{'redos':[],'undos':[]};const _0x32f455=this[_0x56ccd3(0x5ad)][_0x56ccd3(0x5bc)](_0x276f32,_0x5a7df1),_0x1f20f3=Object[_0x56ccd3(0x4b8)](_0x32f455)[_0x56ccd3(0x50f)](_0x10562d=>_0x10562d[_0x56ccd3(0x5ec)]===_univerjs_core[_0x56ccd3(0x506)]['DRAWING_SHAPE']);if(_0x1f20f3['length']===0x0)return{'redos':[],'undos':[]};const _0x41b950=[],_0x51162a=[];for(let _0x5b578b=0x0;_0x5b578b<_0x1f20f3[_0x56ccd3(0x440)];_0x5b578b++){const _0x1b5e22=_0x1f20f3[_0x5b578b],_0x31a129=this[_0x56ccd3(0xfd)][_0x56ccd3(0x533)](_0x1b5e22['unitId'],_0x1b5e22[_0x56ccd3(0x5d6)],_0x1b5e22[_0x56ccd3(0x4c5)]);if(!_0x31a129)continue;const _0x13eeda=(0x0,_univerjs_core[_0x56ccd3(0x652)])(),_0x305230={..._0x1b5e22,'unitId':_0x276f32,'subUnitId':_0x26c29b,'drawingId':_0x13eeda},{redo:_0x1e7f27,undo:_0x17ebec,objects:_0x32bbfb}=this['_sheetDrawingService'][_0x56ccd3(0x58c)]([_0x305230]);_0x41b950['push']({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x317)],'op':_0x1e7f27,'objects':_0x32bbfb}}),_0x41b950['push']({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x598)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'shapeId':_0x13eeda,'shapeType':_0x31a129['getShapeType'](),'shapeData':JSON[_0x56ccd3(0x329)](JSON[_0x56ccd3(0x313)](_0x31a129['getShapeData']()))}}),_0x51162a[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x13e)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'shapeId':_0x13eeda}}),_0x51162a[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x354)],'op':_0x17ebec,'objects':_0x32bbfb}});}return{'redos':_0x41b950,'undos':_0x51162a};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x53f)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets[_0x3e9a34(0x45b)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing[_0x3e9a34(0x275)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x4cc308,_0x3fe0f6,_0x34c34f,_0x15a514,_0x5b6196){const _0x44f6fe=_0x3e9a34;super(),this['_context']=_0x4cc308,this['_shapeTextEditingService']=_0x3fe0f6,this['_drawingManagerService']=_0x34c34f,this[_0x44f6fe(0x17e)]=_0x15a514,this[_0x44f6fe(0xfd)]=_0x5b6196,_defineProperty(this,_0x44f6fe(0x192),null),this[_0x44f6fe(0x178)](),this[_0x44f6fe(0x14f)](),this[_0x44f6fe(0x2e0)]();}[_0x3e9a34(0x178)](){const _0x1f0adb=_0x3e9a34,{scene:_0x395e64}=this['_context'];this[_0x1f0adb(0x58e)](_0x395e64[_0x1f0adb(0x122)][_0x1f0adb(0x345)](_0x13506a=>{const _0x2d8244=_0x1f0adb,{offsetX:_0x27c293,offsetY:_0x5d9bb2}=_0x13506a,_0x429086=_0x395e64[_0x2d8244(0x3ff)](_univerjs_engine_render[_0x2d8244(0x1de)]['FromArray']([_0x27c293,_0x5d9bb2]));if(_0x429086 instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x2d8244(0x654)])(this[_0x2d8244(0xfd)]['getShapeType'](_0x429086[_0x2d8244(0x4a8)],_0x429086['subUnitId'],_0x429086[_0x2d8244(0x4ac)])))return;this['_shapeTextEditingService'][_0x2d8244(0x1d8)]({'visible':!![],'unitId':_0x429086[_0x2d8244(0x4a8)],'subUnitId':_0x429086['subUnitId'],'shapeId':_0x429086[_0x2d8244(0x4ac)],'shapeKey':_0x429086[_0x2d8244(0x389)]});}}));}['_initSelection'](){const _0x18b6a3=_0x3e9a34;this[_0x18b6a3(0x58e)](this[_0x18b6a3(0x4d0)][_0x18b6a3(0x188)]['subscribe'](_0xe6d4a1=>{const _0x21d645=_0x18b6a3;if(_0xe6d4a1[_0x21d645(0x440)]===0x1){const _0x174531=_0xe6d4a1[0x0],_0x4adcea=this['_drawingManagerService'][_0x21d645(0x619)](_0x174531);if((_0x4adcea===null||_0x4adcea===void 0x0?void 0x0:_0x4adcea[_0x21d645(0x5ec)])===_univerjs_core[_0x21d645(0x506)][_0x21d645(0x3fc)]){const _0x4cbe49=this[_0x21d645(0x53a)][_0x21d645(0x512)]();if((_0x4cbe49===null||_0x4cbe49===void 0x0?void 0x0:_0x4cbe49[_0x21d645(0x4ac)])===_0x174531[_0x21d645(0x4c5)]&&_0x4cbe49[_0x21d645(0x576)])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x21d645(0xfd)]['getShapeType'](_0x174531[_0x21d645(0x4a8)],_0x174531[_0x21d645(0x5d6)],_0x174531[_0x21d645(0x4c5)])))this[_0x21d645(0x53a)][_0x21d645(0x1d8)](null);}else this[_0x21d645(0x53a)][_0x21d645(0x512)]()&&(this[_0x21d645(0x53a)]['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0x1d2d77=_0x21d645;this[_0x1d2d77(0x53a)][_0x1d2d77(0x1d8)](null);}));}else this[_0x21d645(0x53a)][_0x21d645(0x512)]()&&(this[_0x21d645(0x53a)]['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0x4a8599=_0x21d645;this[_0x4a8599(0x53a)]['setEditing'](null);}));})),this[_0x18b6a3(0x58e)](this[_0x18b6a3(0x4d0)][_0x18b6a3(0x31c)][_0x18b6a3(0x562)](_0x3ac934=>{const _0x596591=_0x18b6a3,_0x5895f8=this[_0x596591(0x53a)][_0x596591(0x512)]();if(_0x5895f8&&_0x3ac934[_0x596591(0x333)](_0xc71311=>_0xc71311['drawingId']===_0x5895f8[_0x596591(0x4ac)]))this['_shapeTextEditingService'][_0x596591(0x1d8)](null);}));}[_0x3e9a34(0x2e0)](){const _0x407861=_0x3e9a34;this[_0x407861(0x58e)](this[_0x407861(0x53a)][_0x407861(0x186)][_0x407861(0x562)](_0x4c7ce9=>{const _0x15c97a=_0x407861,{scene:_0xbbaa75}=this['_context'];if(this[_0x15c97a(0x192)]){const _0x536f33=_0xbbaa75['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);if(_0x536f33)_0x536f33[_0x15c97a(0x1d8)](![]);}if(_0x4c7ce9){const _0x1601d8=!!_0x4c7ce9['visible'],_0x164de3=_0xbbaa75[_0x15c97a(0x21c)](_0x4c7ce9[_0x15c97a(0x50b)]);_0x164de3&&(_0x164de3[_0x15c97a(0x1d8)](_0x1601d8),this[_0x15c97a(0x192)]=_0x4c7ce9[_0x15c97a(0x50b)]),this['_contextService'][_0x15c97a(0x1b8)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],_0x1601d8);}else this[_0x15c97a(0x192)]=null,this['_contextService'][_0x15c97a(0x1b8)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x409)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3e9a34(0x213)],'stroke':_univerjs_pro_engine_shape[_0x3e9a34(0x49a)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape[_0x3e9a34(0x49a)]['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x2f4db5,_0x53d61f){const _0x1d5831=_0x3e9a34;super(_0x2f4db5,_0x53d61f),_defineProperty(this,_0x1d5831(0x5e8),''),_defineProperty(this,_0x1d5831(0x3f1),-0x1),_defineProperty(this,_0x1d5831(0x324),''),_defineProperty(this,_0x1d5831(0x55d),''),_defineProperty(this,_0x1d5831(0x35c),![]);if(_0x53d61f)this[_0x1d5831(0x5fe)](_0x53d61f);}['getConnectionInfo'](){const _0x52f606=_0x3e9a34;return{'unitId':this[_0x52f606(0x324)],'subUnitId':this[_0x52f606(0x55d)],'shapeId':this[_0x52f606(0x5e8)],'cxnIndex':this['_cxnIndex']};}[_0x3e9a34(0x237)](_0x4e1ac5){const _0x1e45d2=_0x3e9a34;this['_isHighlighted']!==_0x4e1ac5&&(this[_0x1e45d2(0x35c)]=_0x4e1ac5,this['makeDirty'](!![]));}[_0x3e9a34(0x4b0)](){const _0x2b1fc8=_0x3e9a34;return this[_0x2b1fc8(0x35c)];}[_0x3e9a34(0x5fe)](_0x55f8bf){const _0x9e779d=_0x3e9a34;var _0x251327,_0x542e97;if(typeof _0x55f8bf['targetShapeId']!==_0x9e779d(0x544))this[_0x9e779d(0x5e8)]=_0x55f8bf[_0x9e779d(0x33d)];if(typeof _0x55f8bf[_0x9e779d(0x120)]!==_0x9e779d(0x544))this[_0x9e779d(0x3f1)]=_0x55f8bf[_0x9e779d(0x120)];if(typeof _0x55f8bf[_0x9e779d(0x4a8)]!==_0x9e779d(0x544))this[_0x9e779d(0x324)]=_0x55f8bf['unitId'];if(typeof _0x55f8bf[_0x9e779d(0x5d6)]!==_0x9e779d(0x544))this[_0x9e779d(0x55d)]=_0x55f8bf[_0x9e779d(0x5d6)];if(typeof _0x55f8bf[_0x9e779d(0x4b0)]!=='undefined')this['_isHighlighted']=_0x55f8bf[_0x9e779d(0x4b0)];this[_0x9e779d(0x227)]({'width':(_0x251327=_0x55f8bf['width'])!==null&&_0x251327!==void 0x0?_0x251327:_univerjs_pro_engine_shape[_0x9e779d(0x49a)]['cxnPointRadius']*0x2,'height':(_0x542e97=_0x55f8bf[_0x9e779d(0x37b)])!==null&&_0x542e97!==void 0x0?_0x542e97:_univerjs_pro_engine_shape[_0x9e779d(0x49a)][_0x9e779d(0x325)]*0x2});}['_draw'](_0x53a628){const _0x5b99d5=_0x3e9a34,_0x4159bc=this[_0x5b99d5(0x35c)]?ConnectionSiteStyle[_0x5b99d5(0x585)]:ConnectionSiteStyle[_0x5b99d5(0x296)];_univerjs_engine_render[_0x5b99d5(0x5d8)]['drawWith'](_0x53a628,{'radius':_univerjs_pro_engine_shape[_0x5b99d5(0x49a)][_0x5b99d5(0x325)],'fill':_0x4159bc[_0x5b99d5(0x151)],'stroke':_0x4159bc['stroke'],'strokeWidth':_0x4159bc['strokeWidth'],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core['Disposable']{constructor(_0x2d41b3,_0x5bfb83,_0x606fb9,_0x239554){const _0x29d01e=_0x3e9a34;super(),this[_0x29d01e(0x50e)]=_0x2d41b3,this[_0x29d01e(0x5cb)]=_0x5bfb83,this[_0x29d01e(0x4d0)]=_0x606fb9,this[_0x29d01e(0xfd)]=_0x239554,_defineProperty(this,_0x29d01e(0x264),[]),_defineProperty(this,_0x29d01e(0x353),null),_defineProperty(this,_0x29d01e(0x175),-0x1),_defineProperty(this,_0x29d01e(0x442),null),_defineProperty(this,_0x29d01e(0x324),''),_defineProperty(this,_0x29d01e(0x55d),''),_defineProperty(this,_0x29d01e(0x245),null);}[_0x3e9a34(0x431)](_0x43c66f,_0xe02549,_0x4907d7,_0x537dc5){const _0x439536=_0x3e9a34;this['_currentScene']=_0x43c66f,this['_unitId']=_0xe02549,this['_subUnitId']=_0x4907d7,this[_0x439536(0x245)]=_0x537dc5;}[_0x3e9a34(0x581)](_0x1f0932){const _0x666492=_0x3e9a34;if(!this[_0x666492(0x442)])return null;const _0x2ed59f=this[_0x666492(0x633)](_0x1f0932);return _0x2ed59f?(this[_0x666492(0x353)]!==_0x2ed59f[_0x666492(0x4ac)]&&(this[_0x666492(0x162)](),this[_0x666492(0x4ae)](_0x2ed59f[_0x666492(0x4ac)],_0x2ed59f['shapeModel']),this[_0x666492(0x353)]=_0x2ed59f[_0x666492(0x4ac)]),this[_0x666492(0x5c3)](_0x1f0932)):(this[_0x666492(0x353)]!==null&&(this[_0x666492(0x162)](),this[_0x666492(0x353)]=null),null);}['endConnectionDetection'](){const _0x4bd9c7=_0x3e9a34;this['_clearConnectionSites'](),this[_0x4bd9c7(0x442)]=null,this[_0x4bd9c7(0x353)]=null,this[_0x4bd9c7(0x175)]=-0x1,this[_0x4bd9c7(0x245)]=null;}[_0x3e9a34(0x2d0)](){const _0x158d77=_0x3e9a34;if(this[_0x158d77(0x353)]===null||this[_0x158d77(0x175)]<0x0)return null;return{'shapeId':this[_0x158d77(0x353)],'cxnIndex':this[_0x158d77(0x175)]};}[_0x3e9a34(0x633)](_0x58a4a5){const _0x1b0f3c=_0x3e9a34,_0x4ca386=this['_drawingManagerService'][_0x1b0f3c(0x5bc)](this[_0x1b0f3c(0x324)],this[_0x1b0f3c(0x55d)]);for(const _0x52ae99 of Object[_0x1b0f3c(0x1b4)](_0x4ca386)){if(_0x52ae99===this[_0x1b0f3c(0x245)])continue;if(_0x4ca386[_0x52ae99][_0x1b0f3c(0x5ec)]!==_univerjs_core[_0x1b0f3c(0x506)][_0x1b0f3c(0x3fc)])continue;const _0x77d61=this['_sheetsShapeService']['getShapeModel'](this[_0x1b0f3c(0x324)],this[_0x1b0f3c(0x55d)],_0x52ae99);if(!_0x77d61)continue;if((0x0,_univerjs_pro_engine_shape[_0x1b0f3c(0x654)])(_0x77d61['getShapeType']()))continue;if(_0x77d61['getConnectionSiteList']()['length']===0x0)continue;if(!this['_currentScene'])continue;const _0x1bebc8=(0x0,_univerjs_drawing[_0x1b0f3c(0x171)])({'unitId':this[_0x1b0f3c(0x324)],'subUnitId':this[_0x1b0f3c(0x55d)],'drawingId':_0x52ae99}),_0x5445ab=this['_currentScene']['getObjectIncludeInGroup'](_0x1bebc8);if(!_0x5445ab)continue;const {left:_0xa0971c,top:_0x416618,width:_0x13c325,height:_0x5ccd0e}=_0x5445ab[_0x1b0f3c(0x5ff)](),_0x8e7184=_0xa0971c+_0x13c325/0x2,_0x3067dd=_0x416618+_0x5ccd0e/0x2,_0xd095d7=_0x5445ab[_0x1b0f3c(0x600)]['getMatrix'](),_0x47d8ac=new _univerjs_engine_render['Transform']([_0xd095d7[0x0],_0xd095d7[0x1],_0xd095d7[0x2],_0xd095d7[0x3],_0x8e7184,_0x3067dd]),_0x5ba445=_0x5445ab[_0x1b0f3c(0x316)](),_0x75ad4=(_0x5445ab[_0x1b0f3c(0x258)]&&(_0x5ba445===null||_0x5ba445===void 0x0?void 0x0:_0x5ba445[_0x1b0f3c(0x571)])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0x1b0f3c(0x4a2)]?_0x5ba445[_0x1b0f3c(0x526)]['multiply'](_0x47d8ac):_0x47d8ac)[_0x1b0f3c(0x66a)]()[_0x1b0f3c(0x342)](_0x58a4a5),_0x3c4a76=_0x13c325/0x2,_0x5174ec=_0x5ccd0e/0x2,_0x5605b9=SHAPE_BOUNDS_PADDING;if(_0x75ad4['x']>=-_0x3c4a76-_0x5605b9&&_0x75ad4['x']<=_0x3c4a76+_0x5605b9&&_0x75ad4['y']>=-_0x5174ec-_0x5605b9&&_0x75ad4['y']<=_0x5174ec+_0x5605b9)return{'shapeId':_0x52ae99,'shapeModel':_0x77d61};}return null;}[_0x3e9a34(0x4ae)](_0x340430,_0x2e5161){const _0x8912ba=_0x3e9a34;if(!this['_currentScene'])return;const _0x3c80b6=(0x0,_univerjs_drawing[_0x8912ba(0x171)])({'unitId':this[_0x8912ba(0x324)],'subUnitId':this['_subUnitId'],'drawingId':_0x340430}),_0x1b4e17=this[_0x8912ba(0x442)]['getObjectIncludeInGroup'](_0x3c80b6);if(!_0x1b4e17)return;const {left:_0x12c74c,top:_0x2b7c76,width:_0x455051,height:_0x17e105}=_0x1b4e17[_0x8912ba(0x5ff)](),_0x3d9bd7=_0x12c74c+_0x455051/0x2,_0x3d8655=_0x2b7c76+_0x17e105/0x2,_0x37025f=_0x1b4e17[_0x8912ba(0x600)][_0x8912ba(0x146)](),_0x2a7b12=new _univerjs_engine_render['Transform']([_0x37025f[0x0],_0x37025f[0x1],_0x37025f[0x2],_0x37025f[0x3],_0x3d9bd7,_0x3d8655]),_0x174bec=_0x1b4e17[_0x8912ba(0x316)](),_0x437082=_0x1b4e17[_0x8912ba(0x258)]&&(_0x174bec===null||_0x174bec===void 0x0?void 0x0:_0x174bec[_0x8912ba(0x571)])===_univerjs_engine_render[_0x8912ba(0x4f8)]['GROUP']?_0x174bec[_0x8912ba(0x526)]['multiply'](_0x2a7b12):_0x2a7b12;_0x2e5161[_0x8912ba(0x566)]({'width':_0x455051,'height':_0x17e105});const _0x42769c=_0x2e5161['getConnectionSiteList']();for(const _0x5e2026 of _0x42769c){const _0x36b935=_0x5e2026['x']-_0x455051/0x2,_0x311ef2=_0x5e2026['y']-_0x17e105/0x2,_0x58fe4c=_0x437082[_0x8912ba(0x342)]({'x':_0x36b935,'y':_0x311ef2}),_0x30e181=_0x58fe4c['x'],_0x2333f8=_0x58fe4c['y'],_0x4a9c42=new SheetBasicShapeConnectionSiteObject(_0x8912ba(0x23c)+_0x340430+'-'+_0x5e2026[_0x8912ba(0x61c)],{'left':_0x30e181-_univerjs_pro_engine_shape[_0x8912ba(0x49a)]['cxnPointRadius'],'top':_0x2333f8-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x8912ba(0x325)],'targetShapeId':_0x340430,'cxnIndex':_0x5e2026[_0x8912ba(0x61c)],'unitId':this[_0x8912ba(0x324)],'subUnitId':this[_0x8912ba(0x55d)],'width':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x8912ba(0x325)]*0x2,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':![]});this[_0x8912ba(0x264)][_0x8912ba(0x2dd)](_0x4a9c42),this['_currentScene'][_0x8912ba(0x18b)](_0x4a9c42,_univerjs_engine_render[_0x8912ba(0x1bd)]+0x2);}}['_findNearestConnectionSite'](_0x1fe29a){const _0x31c8f1=_0x3e9a34;let _0x43b251=null,_0x4ca44c=Infinity,_0x236950=null;for(const _0x1231c5 of this[_0x31c8f1(0x264)]){const _0x5be514=_0x1231c5[_0x31c8f1(0xe1)]+_univerjs_pro_engine_shape[_0x31c8f1(0x49a)][_0x31c8f1(0x325)],_0x2eafaa=_0x1231c5[_0x31c8f1(0x156)]+_univerjs_pro_engine_shape[_0x31c8f1(0x49a)]['cxnPointRadius'],_0x4ee6d9=_0x1fe29a['x']-_0x5be514,_0x5f0e7a=_0x1fe29a['y']-_0x2eafaa,_0x4cea76=Math[_0x31c8f1(0x14b)](_0x4ee6d9*_0x4ee6d9+_0x5f0e7a*_0x5f0e7a);_0x4cea76<_0x4ca44c&&(_0x4ca44c=_0x4cea76,_0x43b251=_0x1231c5,_0x236950={'x':_0x5be514,'y':_0x2eafaa});}const _0x34ffdd=_0x4ca44c<=CONNECTION_SITE_HIT_RADIUS&&_0x43b251?_0x43b251['getConnectionInfo']()[_0x31c8f1(0x120)]:-0x1;if(_0x34ffdd!==this[_0x31c8f1(0x175)]){for(const _0x5bac4d of this['_connectionSiteObjects']){const _0x3c7446=_0x5bac4d[_0x31c8f1(0x488)]();_0x5bac4d[_0x31c8f1(0x237)](_0x3c7446[_0x31c8f1(0x120)]===_0x34ffdd);}this[_0x31c8f1(0x175)]=_0x34ffdd;}if(_0x4ca44c<=CONNECTION_SITE_HIT_RADIUS&&_0x43b251&&_0x236950){const _0x22f609=_0x43b251[_0x31c8f1(0x488)](),_0x2915e8=this[_0x31c8f1(0x1be)](_0x22f609[_0x31c8f1(0x4ac)],_0x22f609['cxnIndex']);return{'shapeId':_0x22f609['shapeId'],'cxnIndex':_0x22f609[_0x31c8f1(0x120)],'unitId':_0x22f609[_0x31c8f1(0x4a8)],'subUnitId':_0x22f609[_0x31c8f1(0x5d6)],'worldPoint':_0x236950,'angle':_0x2915e8};}return null;}[_0x3e9a34(0x1be)](_0x2b4bd0,_0x50ea1c){const _0x4acaea=_0x3e9a34,_0x1503b4=this[_0x4acaea(0xfd)][_0x4acaea(0x533)](this['_unitId'],this['_subUnitId'],_0x2b4bd0);if(!_0x1503b4)return 0x0;const _0x509648=this[_0x4acaea(0x4d0)][_0x4acaea(0x619)]({'unitId':this[_0x4acaea(0x324)],'subUnitId':this[_0x4acaea(0x55d)],'drawingId':_0x2b4bd0});if(!(_0x509648===null||_0x509648===void 0x0?void 0x0:_0x509648[_0x4acaea(0x600)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x509648[_0x4acaea(0x600)];_0x1503b4['updateContext']({'width':width,'height':height});const _0x597714=_0x1503b4['getConnectionSiteList']()[_0x4acaea(0x536)](_0x20c216=>_0x20c216[_0x4acaea(0x61c)]===_0x50ea1c);if(!_0x597714)return 0x0;let _0x1e9ed4=_0x597714[_0x4acaea(0x3c6)]/0xea60;if(flipX)_0x1e9ed4=0xb4-_0x1e9ed4;if(flipY)_0x1e9ed4=-_0x1e9ed4;return _0x1e9ed4=(_0x1e9ed4%0x168+0x168)%0x168,_0x1e9ed4;}['_clearConnectionSites'](){const _0x3cd1e2=_0x3e9a34;for(const _0x231c58 of this[_0x3cd1e2(0x264)])_0x231c58[_0x3cd1e2(0x199)]();this['_connectionSiteObjects']=[],this[_0x3cd1e2(0x175)]=-0x1;}[_0x3e9a34(0x199)](){const _0x2c3641=_0x3e9a34;this[_0x2c3641(0x162)](),super['dispose']();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_drawing['IDrawingManagerService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x58627e,_0x27f9c0,_0x29a6eb,_0x356ba3,_0x3bf495){const _0x11c574=_0x3e9a34;super(),this[_0x11c574(0x2cb)]=_0x58627e,this['_sheetClipboardService']=_0x27f9c0,this[_0x11c574(0x5ad)]=_0x29a6eb,this[_0x11c574(0x1f6)]=_0x356ba3,this[_0x11c574(0x2a0)]=_0x3bf495,_defineProperty(this,_0x11c574(0x262),void 0x0),this[_0x11c574(0x4af)](),this['_registerGroupFeaturePasteHook']();}get['_focusedDrawings'](){const _0x26c3e1=_0x3e9a34;return this[_0x26c3e1(0x5ad)][_0x26c3e1(0x4a6)]();}[_0x3e9a34(0x5b0)](){const _0x2141be=_0x3e9a34;this[_0x2141be(0x2a0)][_0x2141be(0x4e3)](({fromUnitId:_0x1369d3,fromSubUnitId:_0x3f6acb,toUnitId:_0xab36e2,toSubUnitId:_0x3c2662,idMap:_0x140194})=>{const _0x2e2912=_0x2141be,_0x7c1ab3=[],_0x5e9273=[];for(const [_0x541490,_0x306caf]of _0x140194[_0x2e2912(0x180)]()){const _0x4300f6=this[_0x2e2912(0x1f6)]['getShapeModel'](_0x1369d3,_0x3f6acb,_0x541490);if(!_0x4300f6)continue;const _0x3cbfd9=_0x4300f6[_0x2e2912(0x478)](),_0x139f4c=JSON[_0x2e2912(0x329)](JSON[_0x2e2912(0x313)](_0x4300f6[_0x2e2912(0x470)]()));if(_0x139f4c[_0x2e2912(0x276)]){var _0x356034,_0x220114;const _0x1e88cc=(_0x356034=_0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)])===null||_0x356034===void 0x0?void 0x0:_0x356034['shapeId'],_0x392c70=(_0x220114=_0x139f4c[_0x2e2912(0x276)]['to'])===null||_0x220114===void 0x0?void 0x0:_0x220114[_0x2e2912(0x4ac)],_0x206e89=_0x1e88cc?_0x140194[_0x2e2912(0x5ac)](_0x1e88cc):!![],_0x437c68=_0x392c70?_0x140194['has'](_0x392c70):!![];if(_0x206e89&&_0x1e88cc&&_0x139f4c['relation'][_0x2e2912(0x214)])_0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)]={..._0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)],'shapeId':_0x140194['get'](_0x1e88cc)};else _0x139f4c[_0x2e2912(0x276)]['from']=void 0x0;if(_0x437c68&&_0x392c70&&_0x139f4c[_0x2e2912(0x276)]['to'])_0x139f4c[_0x2e2912(0x276)]['to']={..._0x139f4c[_0x2e2912(0x276)]['to'],'shapeId':_0x140194[_0x2e2912(0x2d9)](_0x392c70)};else _0x139f4c[_0x2e2912(0x276)]['to']=void 0x0;}_0x7c1ab3[_0x2e2912(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x2e2912(0x598)]['id'],'params':{'unitId':_0xab36e2,'subUnitId':_0x3c2662,'shapeId':_0x306caf,'shapeType':_0x3cbfd9,'shapeData':_0x139f4c}}),_0x5e9273[_0x2e2912(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x2e2912(0x13e)]['id'],'params':{'unitId':_0xab36e2,'subUnitId':_0x3c2662,'shapeId':_0x306caf}});}return{'redos':_0x7c1ab3,'undos':_0x5e9273};});}[_0x3e9a34(0x4af)](){const _0x1ed09f=_0x3e9a34;this['disposeWithMe'](this[_0x1ed09f(0x2ba)][_0x1ed09f(0x160)]({'id':_0x1ed09f(0x2c9),'onBeforeCopy':(_0x25ecb2,_0x476fd7,_0x5a4abe,_0x23601f)=>{const _0x15781f=_0x1ed09f;this[_0x15781f(0x262)]=null;const _0x2fcd70=this[_0x15781f(0x4ec)];if(_0x2fcd70['length']){const _0x462f4a=_0x2fcd70[_0x15781f(0x50f)](_0x45ff1b=>_0x45ff1b[_0x15781f(0x5ec)]===_univerjs_core[_0x15781f(0x506)]['DRAWING_SHAPE']);if(_0x462f4a[_0x15781f(0x440)]===0x0)return;this[_0x15781f(0x262)]={'unitId':_0x25ecb2,'subUnitId':_0x476fd7,'copyType':_0x23601f,'drawings':_0x462f4a};}else this[_0x15781f(0x379)](_0x25ecb2,_0x476fd7,_0x5a4abe,_0x23601f);},'onPasteCells':(_0x352e58,_0x78a9cd,_0x3e378f,_0x2306e4)=>{const _0x4c19b5=_0x1ed09f;if(!this[_0x4c19b5(0x262)])return{'redos':[],'undos':[]};const {pasteType:_0x6ec85}=_0x2306e4;if(_0x6ec85!==_univerjs_sheets_ui[_0x4c19b5(0x16b)][_0x4c19b5(0x210)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x78a9cd,this[_0x4c19b5(0x262)][_0x4c19b5(0x4ea)]===_univerjs_sheets_ui[_0x4c19b5(0x34e)][_0x4c19b5(0x2fe)]);},'onPasteUnrecognized':_0x336f3e=>{const _0x580f1b=_0x1ed09f;if(!this['_copyInfo'])return{'redos':[],'undos':[]};return this[_0x580f1b(0x209)](_0x336f3e,this[_0x580f1b(0x262)][_0x580f1b(0x4ea)]===_univerjs_sheets_ui['COPY_TYPE']['CUT']);}}));}[_0x3e9a34(0x379)](_0x1d3c28,_0x3074db,_0x1553e2,_0x4b759c){const _0xc0673b=_0x3e9a34,_0x5434b0=this[_0xc0673b(0x2cb)][_0xc0673b(0x64e)](_0x1d3c28,_0x3074db);if(!_0x5434b0)return;const _0x253bc9=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x5434b0,_0x1553e2);if(!_0x253bc9)return;const {startX:_0x186fca,endX:_0x5cea7b,startY:_0x10ba97,endY:_0x12735c}=_0x253bc9,_0x2f0bab=this['_sheetDrawingService'][_0xc0673b(0x5bc)](_0x1d3c28,_0x3074db),_0x5ae856=this[_0xc0673b(0x4ec)][_0xc0673b(0x3d1)]();for(const [_0x263424,_0x3adeff]of Object[_0xc0673b(0x180)](_0x2f0bab)){if(_0x3adeff[_0xc0673b(0x5ec)]!==_univerjs_core[_0xc0673b(0x506)][_0xc0673b(0x3fc)])continue;const {transform:_0x28f060}=_0x3adeff;if(!_0x28f060)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x28f060;if(_0x186fca<=left&&_0x5cea7b>=left+width&&_0x10ba97<=top&&_0x12735c>=top+height)_0x5ae856[_0xc0673b(0x2dd)](_0x3adeff);}if(_0x5ae856[_0xc0673b(0x440)]>0x0)this[_0xc0673b(0x262)]={'unitId':_0x1d3c28,'subUnitId':_0x3074db,'copyType':_0x4b759c,'copyRange':_0x1553e2,'drawings':_0x5ae856};}['_generatePasteMutations'](_0xeca994,_0x1b231b){const _0x449022=_0x3e9a34,{unitId:_0x4869c4,subUnitId:_0x1065ae,range:_0x9fe679}=_0xeca994,_0x1c9374=this[_0x449022(0x2cb)][_0x449022(0x64e)](_0x4869c4,_0x1065ae);if(!_0x1c9374)return{'redos':[],'undos':[]};const _0x4cd31e=(0x0,_univerjs_sheets[_0x449022(0x642)])(_0x9fe679),{unitId:_0x35c3d1,subUnitId:_0x27aa07,copyRange:_0x5416aa,drawings:_0x307232}=this[_0x449022(0x262)],_0x13ebc4=this[_0x449022(0x2cb)][_0x449022(0x64e)](_0x35c3d1,_0x27aa07);if(!_0x13ebc4)return{'redos':[],'undos':[]};let _0x3a14eb;if(!_0x5416aa){let _0x40b7cd=Infinity,_0x6afae1=Infinity;for(const _0x342982 of _0x307232){var _0x3a7a38;const {left:left=0x0,top:top=0x0}=(_0x3a7a38=_0x342982['transform'])!==null&&_0x3a7a38!==void 0x0?_0x3a7a38:{};if(left<_0x40b7cd)_0x40b7cd=left;if(top<_0x6afae1)_0x6afae1=top;}if(_0x40b7cd!==Infinity&&_0x6afae1!==Infinity)_0x3a14eb={'left':_0x40b7cd,'top':_0x6afae1};}const _0x4e5880=new Map();if(!_0x1b231b){for(const _0x3fb7c7 of _0x307232)_0x4e5880['set'](_0x3fb7c7[_0x449022(0x4c5)],(0x0,_univerjs_core[_0x449022(0x652)])());}const _0x2d8475=[],_0x5710a0=[];for(const _0x17c955 of _0x307232){const {drawingId:_0x2c75c2,transform:_0x457809,sheetTransform:_0x2761fe}=_0x17c955;if(!_0x457809||!_0x2761fe)continue;const _0x519906=this[_0x449022(0x331)]({'transform':_0x457809,'sheetTransform':_0x2761fe},{'skeleton':_0x13ebc4,'range':_0x5416aa},{'skeleton':_0x1c9374,'range':_0x4cd31e},_0x3a14eb);if(_0x1b231b){const {redos:_0x107fd7,undos:_0x5025f3}=this[_0x449022(0x1ff)]({'fromUnitId':_0x35c3d1,'fromSubUnitId':_0x27aa07,'toUnitId':_0x4869c4,'toSubUnitId':_0x1065ae,'drawing':_0x17c955,'newTransforms':_0x519906});_0x2d8475['push'](..._0x107fd7),_0x5710a0[_0x449022(0x2dd)](..._0x5025f3);continue;}const {redos:_0x151110,undos:_0x51b1a8}=this[_0x449022(0x50c)]({'toUnitId':_0x4869c4,'toSubUnitId':_0x1065ae,'drawing':_0x17c955,'newTransforms':_0x519906,'newDrawingId':_0x4e5880[_0x449022(0x2d9)](_0x2c75c2),'idMap':_0x4e5880});_0x2d8475[_0x449022(0x2dd)](..._0x151110),_0x5710a0[_0x449022(0x2dd)](..._0x51b1a8);}return{'redos':_0x2d8475,'undos':_0x5710a0};}[_0x3e9a34(0x1ff)](_0x35b7db){const _0x3845fa=_0x3e9a34,{fromUnitId:_0x50b063,fromSubUnitId:_0x35c22d,toUnitId:_0x301d0d,toSubUnitId:_0x139816,drawing:_0xd0469b,newTransforms:_0x1abbc3}=_0x35b7db,_0x21113f={..._0xd0469b,'unitId':_0x301d0d,'subUnitId':_0x139816,'transform':_0x1abbc3[_0x3845fa(0x600)],'sheetTransform':_0x1abbc3['sheetTransform']};if(_0x301d0d===_0x50b063&&_0x139816===_0x35c22d){const {redo:_0xb39a34,undo:_0x1bac22,objects:_0x585fd7}=this['_sheetDrawingService'][_0x3845fa(0x3a8)]([_0x21113f]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x39d)],'op':_0xb39a34,'objects':_0x585fd7}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x39d)],'op':_0x1bac22,'objects':_0x585fd7}}]};}else{const _0x428ce0=this[_0x3845fa(0x5ad)][_0x3845fa(0x225)]([_0xd0469b]),_0x36fec8=this[_0x3845fa(0x5ad)][_0x3845fa(0x58c)]([_0x21113f]),_0x107f68=this[_0x3845fa(0x1f6)][_0x3845fa(0x533)](_0xd0469b['unitId'],_0xd0469b[_0x3845fa(0x5d6)],_0xd0469b[_0x3845fa(0x4c5)]);if(!_0x107f68)return{'redos':[],'undos':[]};const _0x96c585=_0x107f68['getShapeType'](),_0x7d56ce=JSON[_0x3845fa(0x329)](JSON['stringify'](_0x107f68[_0x3845fa(0x470)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x354)],'op':_0x428ce0[_0x3845fa(0x574)],'objects':_0x428ce0[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x13e)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'shapeId':_0xd0469b[_0x3845fa(0x4c5)]}},{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x317)],'op':_0x36fec8[_0x3845fa(0x574)],'objects':_0x36fec8[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x598)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'shapeId':_0xd0469b[_0x3845fa(0x4c5)],'shapeType':_0x96c585,'shapeData':_0x7d56ce}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3845fa(0x317)],'op':_0x428ce0[_0x3845fa(0x5f5)],'objects':_0x428ce0[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x598)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'shapeId':_0xd0469b[_0x3845fa(0x4c5)],'shapeType':_0x96c585,'shapeData':_0x7d56ce}},{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3845fa(0x354)],'op':_0x36fec8['undo'],'objects':_0x36fec8['objects']}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'shapeId':_0xd0469b[_0x3845fa(0x4c5)]}}]};}}[_0x3e9a34(0x50c)](_0x57712a){const _0x44355e=_0x3e9a34,{toUnitId:_0x3b29a7,toSubUnitId:_0x41d20f,drawing:_0x1d0c80,newTransforms:_0x48cee8,newDrawingId:_0x11ce8d,idMap:_0x542bfa}=_0x57712a,_0x89066={..._0x1d0c80,'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'drawingId':_0x11ce8d,'transform':_0x48cee8[_0x44355e(0x600)],'sheetTransform':_0x48cee8[_0x44355e(0x30a)]},{redo:_0x374dcd,undo:_0x1e2703,objects:_0x3737a3}=this[_0x44355e(0x5ad)]['getBatchAddOp']([_0x89066]),_0x315712=this[_0x44355e(0x1f6)][_0x44355e(0x533)](_0x1d0c80['unitId'],_0x1d0c80[_0x44355e(0x5d6)],_0x1d0c80[_0x44355e(0x4c5)]);if(!_0x315712)return{'redos':[],'undos':[]};const _0x5031e7=_0x315712[_0x44355e(0x478)](),_0x4064b7=JSON[_0x44355e(0x329)](JSON[_0x44355e(0x313)](_0x315712[_0x44355e(0x470)]()));if(_0x4064b7['relation']){var _0x56893d,_0x12f1e4;const _0x119772=(_0x56893d=_0x4064b7[_0x44355e(0x276)]['from'])===null||_0x56893d===void 0x0?void 0x0:_0x56893d[_0x44355e(0x4ac)],_0xcc8820=(_0x12f1e4=_0x4064b7[_0x44355e(0x276)]['to'])===null||_0x12f1e4===void 0x0?void 0x0:_0x12f1e4[_0x44355e(0x4ac)],_0x758f29=_0x119772?_0x542bfa['has'](_0x119772):!![],_0x1dd5c5=_0xcc8820?_0x542bfa['has'](_0xcc8820):!![];if(_0x758f29&&_0x119772&&_0x4064b7[_0x44355e(0x276)][_0x44355e(0x214)])_0x4064b7['relation'][_0x44355e(0x214)]={..._0x4064b7['relation']['from'],'shapeId':_0x542bfa[_0x44355e(0x2d9)](_0x119772)};else _0x4064b7[_0x44355e(0x276)][_0x44355e(0x214)]=void 0x0;if(_0x1dd5c5&&_0xcc8820&&_0x4064b7[_0x44355e(0x276)]['to'])_0x4064b7[_0x44355e(0x276)]['to']={..._0x4064b7[_0x44355e(0x276)]['to'],'shapeId':_0x542bfa[_0x44355e(0x2d9)](_0xcc8820)};else _0x4064b7[_0x44355e(0x276)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'type':_univerjs_sheets_drawing[_0x44355e(0x298)][_0x44355e(0x317)],'op':_0x374dcd,'objects':_0x3737a3}},{'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'shapeId':_0x11ce8d,'shapeType':_0x5031e7,'shapeData':_0x4064b7}}],'undos':[{'id':_univerjs_sheets_drawing[_0x44355e(0x64a)]['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'type':_univerjs_sheets_drawing[_0x44355e(0x298)][_0x44355e(0x354)],'op':_0x1e2703,'objects':_0x3737a3}},{'id':_univerjs_pro_sheets_shape[_0x44355e(0x13e)]['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'shapeId':_0x11ce8d}}]};}['_updateTransform'](_0x434355,_0xdf48b2,_0x2fb635,_0x3ea631){const _0x3ccb07=_0x3e9a34;var _0xaa61ea;const {range:_0x4fac06,skeleton:_0x3929fd}=_0xdf48b2,{range:_0x2e7c90,skeleton:_0x14f03d}=_0x2fb635,{transform:_0x50fbe1,sheetTransform:_0x171ebc}=_0x434355,_0x3d4162={..._0x50fbe1};if(_0x4fac06){const _0x44c6ba=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x3929fd,_0x4fac06),_0x523078=(0x0,_univerjs_sheets[_0x3ccb07(0x2ce)])(_0x14f03d,_0x2e7c90);if(_0x44c6ba&&_0x523078){var _0x41b4b8,_0x4b9f21;const _0x5691b6=_0x523078['startX']-_0x44c6ba[_0x3ccb07(0x1ce)],_0x14e715=_0x523078['startY']-_0x44c6ba[_0x3ccb07(0x498)];_0x3d4162[_0x3ccb07(0xe1)]=((_0x41b4b8=_0x3d4162[_0x3ccb07(0xe1)])!==null&&_0x41b4b8!==void 0x0?_0x41b4b8:0x0)+_0x5691b6,_0x3d4162[_0x3ccb07(0x156)]=((_0x4b9f21=_0x3d4162[_0x3ccb07(0x156)])!==null&&_0x4b9f21!==void 0x0?_0x4b9f21:0x0)+_0x14e715;}}else{const _0x53966b=(0x0,_univerjs_sheets[_0x3ccb07(0x2ce)])(_0x14f03d,_0x2e7c90);if(_0x3ea631&&_0x53966b){var _0x125d06,_0xd64ff5;const _0x49854f=((_0x125d06=_0x3d4162['left'])!==null&&_0x125d06!==void 0x0?_0x125d06:0x0)-_0x3ea631['left'],_0x106d3b=((_0xd64ff5=_0x3d4162[_0x3ccb07(0x156)])!==null&&_0xd64ff5!==void 0x0?_0xd64ff5:0x0)-_0x3ea631[_0x3ccb07(0x156)];_0x3d4162[_0x3ccb07(0xe1)]=_0x53966b[_0x3ccb07(0x1ce)]+_0x49854f,_0x3d4162[_0x3ccb07(0x156)]=_0x53966b[_0x3ccb07(0x498)]+_0x106d3b;}else _0x3d4162['left']=_0x53966b===null||_0x53966b===void 0x0?void 0x0:_0x53966b[_0x3ccb07(0x1ce)],_0x3d4162[_0x3ccb07(0x156)]=_0x53966b===null||_0x53966b===void 0x0?void 0x0:_0x53966b[_0x3ccb07(0x498)];}return{'transform':_0x3d4162,'sheetTransform':(_0xaa61ea=(0x0,_univerjs_sheets_drawing[_0x3ccb07(0x564)])(_0x3d4162,_0x14f03d))!==null&&_0xaa61ea!==void 0x0?_0xaa61ea:_0x171ebc};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_sheets['SheetSkeletonService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_ui[_0x3e9a34(0x3d2)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_drawing_ui[_0x3e9a34(0x3ee)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x3e5445,_0x3da411){const _0x5b23f4=_0x3e9a34;super(_0x3e5445,_0x3da411),_defineProperty(this,_0x5b23f4(0x196),null),_defineProperty(this,'_index',null),_defineProperty(this,_0x5b23f4(0x324),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,'_isStartConnectorPoint',![]);if(_0x3da411)this[_0x5b23f4(0x5fe)](_0x3da411);}[_0x3e9a34(0x40e)](){const _0x1a1ac3=_0x3e9a34;return{'unitId':this[_0x1a1ac3(0x324)],'subUnitId':this[_0x1a1ac3(0x55d)],'drawingId':this[_0x1a1ac3(0x196)]};}[_0x3e9a34(0x5fe)](_0x16c882){const _0x2680f3=_0x3e9a34;if(typeof _0x16c882[_0x2680f3(0x4ac)]!=='undefined')this[_0x2680f3(0x196)]=_0x16c882['shapeId'];if(typeof _0x16c882['unitId']!==_0x2680f3(0x544))this[_0x2680f3(0x324)]=_0x16c882['unitId'];if(typeof _0x16c882[_0x2680f3(0x5d6)]!==_0x2680f3(0x544))this[_0x2680f3(0x55d)]=_0x16c882[_0x2680f3(0x5d6)];if(typeof _0x16c882[_0x2680f3(0x1c5)]!=='undefined')this[_0x2680f3(0x539)]=_0x16c882[_0x2680f3(0x1c5)];this[_0x2680f3(0x227)]({'width':_0x16c882[_0x2680f3(0x183)],'height':_0x16c882['height']});}[_0x3e9a34(0x33c)](_0x5e778f){const _0x30cc1f=_0x3e9a34;_univerjs_engine_render['Circle'][_0x30cc1f(0x118)](_0x5e778f,{'radius':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)][_0x30cc1f(0x325)],'fill':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)][_0x30cc1f(0x213)],'stroke':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointStrokeWidth'],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x2cd509,_0x16460e,_0x2ae16c,_0x16254e,_0xb28a70,_0xb6a345,_0x2520bc,_0x5b1b74){const _0x23d3c6=_0x3e9a34;super(),this['_context']=_0x2cd509,this['_commandService']=_0x16460e,this[_0x23d3c6(0x5cb)]=_0x2ae16c,this[_0x23d3c6(0x4d0)]=_0x16254e,this[_0x23d3c6(0x5e1)]=_0xb28a70,this[_0x23d3c6(0xfd)]=_0xb6a345,this[_0x23d3c6(0x653)]=_0x2520bc,this[_0x23d3c6(0x4cb)]=_0x5b1b74,_defineProperty(this,_0x23d3c6(0x2e4),void 0x0),_defineProperty(this,_0x23d3c6(0x324),void 0x0),_defineProperty(this,_0x23d3c6(0x55d),void 0x0),_defineProperty(this,_0x23d3c6(0x37f),[]),_defineProperty(this,_0x23d3c6(0x12d),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,_0x23d3c6(0x1d4),![]),_defineProperty(this,_0x23d3c6(0x35b),![]),_defineProperty(this,_0x23d3c6(0x2ed),![]),_defineProperty(this,_0x23d3c6(0x636),void 0x0),_defineProperty(this,'_cxtHandlerPointerUp',void 0x0),_defineProperty(this,'_currentConnectionTarget',null),this[_0x23d3c6(0x206)]();}[_0x3e9a34(0x206)](){const _0x4c0bf9=_0x3e9a34;this['_registerDrawingFocusChangeHandler'](),this[_0x4c0bf9(0x52c)]();}['_getDrawingRect'](){const _0x1e9746=_0x3e9a34;if(!this['_unitId']||!this[_0x1e9746(0x55d)]||!this['_activeShapeId'])return;const _0x1303b9={'unitId':this[_0x1e9746(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1e9746(0x2e4)]},{transform:_0x35c65f}=this[_0x1e9746(0x4d0)][_0x1e9746(0x619)](_0x1303b9);if(!_0x35c65f)return;return{'left':_0x35c65f['left']||0x0,'top':_0x35c65f['top']||0x0,'width':_0x35c65f[_0x1e9746(0x183)]||0x0,'height':_0x35c65f[_0x1e9746(0x37b)]||0x0,'flipX':_0x35c65f[_0x1e9746(0x2f5)]||![],'flipY':_0x35c65f[_0x1e9746(0x35d)]||![],'angle':_0x35c65f[_0x1e9746(0x62d)]};}[_0x3e9a34(0x372)](){const _0x491fc1=_0x3e9a34;if(this[_0x491fc1(0x324)]===void 0x0||this[_0x491fc1(0x55d)]===void 0x0||this[_0x491fc1(0x2e4)]===void 0x0)return;const _0x49a34a=this[_0x491fc1(0x5cb)]['getRenderById'](this[_0x491fc1(0x324)]);if(!_0x49a34a)return;if(!_0x49a34a['with'](_univerjs_sheets_ui[_0x491fc1(0x412)])[_0x491fc1(0x60a)]())return;const {scene:_0x31bfa4}=_0x49a34a,_0x4b0a0e=this[_0x491fc1(0x5b8)]();if(!_0x4b0a0e)return;const _0x29bf43=this[_0x491fc1(0xfd)][_0x491fc1(0x533)](this[_0x491fc1(0x324)],this[_0x491fc1(0x55d)],this[_0x491fc1(0x2e4)]);if(!_0x29bf43)return;if(!(0x0,_univerjs_pro_engine_shape[_0x491fc1(0x654)])(_0x29bf43[_0x491fc1(0x478)]()))return;const _0x5394c9=_0x29bf43[_0x491fc1(0x20a)]();if(_0x5394c9[_0x491fc1(0x440)]<0x2)return;const _0x32994e=new _univerjs_pro_engine_shape[(_0x491fc1(0x572))](_0x4b0a0e),_0x1eeb0f=_0x5394c9[0x0],_0x281a66=_0x5394c9[_0x5394c9[_0x491fc1(0x440)]-0x1],_0x58d588=_0x32994e[_0x491fc1(0xfa)](_0x1eeb0f),_0x3b7657=_0x32994e['localToWorld'](_0x281a66);this['_addShapeConnectorHandlerObject'](_0x31bfa4,{..._0x58d588},!![]),this[_0x491fc1(0x375)](_0x31bfa4,{..._0x3b7657},![]);}[_0x3e9a34(0x375)](_0x1ecccd,_0x5282b,_0x3c8926){const _0x58b9ad=_0x3e9a34;if(this[_0x58b9ad(0x2e4)]===void 0x0||this[_0x58b9ad(0x324)]===void 0x0||this['_subUnitId']===void 0x0)return;const _0x372c76=_0x58b9ad(0x12e)+this[_0x58b9ad(0x324)]+'-'+this[_0x58b9ad(0x55d)]+'-'+this[_0x58b9ad(0x2e4)]+'-'+(_0x3c8926?_0x58b9ad(0x4c7):_0x58b9ad(0x2ae)),_0x3f55f3=_0x1ecccd[_0x58b9ad(0x21c)](_0x372c76);if(_0x3f55f3){_0x3f55f3['transformByState']({'left':_0x5282b['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x5282b['y']-_univerjs_pro_engine_shape[_0x58b9ad(0x49a)]['cxnPointRadius']});return;}const _0x2cf3ab=new SheetShapeConnectorHandlerObject(_0x372c76,{'left':_0x5282b['x']-_univerjs_pro_engine_shape[_0x58b9ad(0x49a)][_0x58b9ad(0x325)],'top':_0x5282b['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x58b9ad(0x325)],'shapeId':this['_activeShapeId'],'unitId':this[_0x58b9ad(0x324)],'subUnitId':this[_0x58b9ad(0x55d)],'isStartConnectorPoint':_0x3c8926,'width':_univerjs_pro_engine_shape[_0x58b9ad(0x49a)]['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape[_0x58b9ad(0x49a)][_0x58b9ad(0x325)]*0x2,'zIndex':_univerjs_engine_render[_0x58b9ad(0x1bd)]+0x1,'evented':!![]});this[_0x58b9ad(0x37f)][_0x58b9ad(0x2dd)](_0x2cf3ab),this['_attachConnectorObjectEvent'](_0x2cf3ab,_0x1ecccd,_0x3c8926),_0x1ecccd[_0x58b9ad(0x18b)](_0x2cf3ab,_univerjs_engine_render[_0x58b9ad(0x1bd)]+0x1);}[_0x3e9a34(0x507)](_0x2e92c4,_0x4a9e1b){const _0x3dc2b1=_0x3e9a34;var _0x1acec3;const _0x49c8aa={'x':0x0,'y':0x0};if(!_0x2e92c4||!_0x4a9e1b)return _0x49c8aa;const _0x5844ce=this[_0x3dc2b1(0x5cb)][_0x3dc2b1(0x17d)](_0x2e92c4);if(!_0x5844ce)return _0x49c8aa;if(!_0x5844ce['with'](_univerjs_sheets_ui[_0x3dc2b1(0x412)])[_0x3dc2b1(0x64e)](_0x4a9e1b))return _0x49c8aa;const _0x1ad89a=_0x5844ce[_0x3dc2b1(0x1cf)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x5bfb4f=_0x1ad89a===null||_0x1ad89a===void 0x0?void 0x0:_0x1ad89a[_0x3dc2b1(0x531)]();if(!_0x5bfb4f)return _0x49c8aa;const _0x3f682e=(_0x1acec3=this[_0x3dc2b1(0x5e1)][_0x3dc2b1(0x46e)](_0x2e92c4))===null||_0x1acec3===void 0x0?void 0x0:_0x1acec3[_0x3dc2b1(0x299)](_0x4a9e1b);if(!_0x3f682e)return _0x49c8aa;const _0x45127e=(0x0,_univerjs_sheets_ui['getViewportByCell'])(_0x5bfb4f[_0x3dc2b1(0x484)],_0x5bfb4f[_0x3dc2b1(0x38d)],_0x5844ce[_0x3dc2b1(0x2a4)],_0x3f682e);if(!_0x45127e)return _0x49c8aa;return{'x':_0x45127e[_0x3dc2b1(0x4aa)],'y':_0x45127e[_0x3dc2b1(0x520)]};}[_0x3e9a34(0x52f)](_0x561323,_0x3d820f){const _0x4e1d56=_0x3e9a34;var _0x4dcd68,_0x24f1a4;const _0x23ff72=(_0x4dcd68=this['_univerInstanceService']['getUnit'](_0x561323))===null||_0x4dcd68===void 0x0?void 0x0:_0x4dcd68[_0x4e1d56(0x299)](_0x3d820f);return(_0x24f1a4=_0x23ff72===null||_0x23ff72===void 0x0?void 0x0:_0x23ff72[_0x4e1d56(0x234)]())!==null&&_0x24f1a4!==void 0x0?_0x24f1a4:0x1;}[_0x3e9a34(0x2e6)](_0x14f81e,_0x48475f,_0x36d078,_0x16d538,_0x145c0a){const _0x5e7906=_0x3e9a34;this[_0x5e7906(0x636)][_0x5e7906(0x54e)](),this[_0x5e7906(0x49c)][_0x5e7906(0x54e)](),this[_0x5e7906(0x653)]['refreshAdjustControls']();const _0x43db43=this[_0x5e7906(0x639)];this[_0x5e7906(0x4cb)]['endConnectionDetection']();const _0x592c57=this[_0x5e7906(0x507)](this['_unitId'],this[_0x5e7906(0x55d)]),_0x58ebe5=this[_0x5e7906(0x52f)](this[_0x5e7906(0x324)],this['_subUnitId']),_0x424e2c={'x':_0x36d078[_0x5e7906(0x59b)]/_0x58ebe5+_0x592c57['x'],'y':_0x36d078['offsetY']/_0x58ebe5+_0x592c57['y']},_0x3b1019=_0x43db43?_0x43db43[_0x5e7906(0x55b)]:_0x424e2c,_0x529cb5=_0x16d538?this[_0x5e7906(0x19a)][_0x5e7906(0xef)]():this[_0x5e7906(0x19a)][_0x5e7906(0x634)](),_0x1ee93b=this[_0x5e7906(0x19a)][_0x5e7906(0x478)]();if(!_0x529cb5)this[_0x5e7906(0x4d4)](_0x48475f,_0x3b1019,_0x16d538,_0x43db43,_0x145c0a,_0x1ee93b);else this[_0x5e7906(0x1f5)](_0x529cb5,_0x3b1019,_0x16d538,_0x43db43,_0x145c0a);this[_0x5e7906(0x1d4)]=![],this[_0x5e7906(0x2ed)]=![],this[_0x5e7906(0x639)]=null,_0x14f81e[_0x5e7906(0x4fc)]();}[_0x3e9a34(0x4d4)](_0x2762ae,_0x40d97b,_0x12b4d2,_0x57c607,_0x54cdf3,_0x32ce4a){const _0x3cb1ed=_0x3e9a34,_0xb9cac4=_0x32ce4a===_univerjs_pro_engine_shape[_0x3cb1ed(0x126)][_0x3cb1ed(0x641)]||_0x32ce4a===_univerjs_pro_engine_shape[_0x3cb1ed(0x126)][_0x3cb1ed(0x2a5)],_0x32b668=_0x12b4d2?_0x40d97b:_0x2762ae,_0x53e2d2=_0x12b4d2?_0x2762ae:_0x40d97b,_0x6c8fad=this[_0x3cb1ed(0x19a)]['getConnectorLinePoints'](),_0x30c3f7=(0x0,_univerjs_pro_engine_shape[_0x3cb1ed(0x529)])(this[_0x3cb1ed(0x19a)][_0x3cb1ed(0x478)]()),_0x174b74=_univerjs_pro_engine_shape[_0x3cb1ed(0x572)][_0x3cb1ed(0x17a)](_0x6c8fad,_0x30c3f7),_0x408a16=_0xb9cac4?_univerjs_pro_engine_shape[_0x3cb1ed(0x572)][_0x3cb1ed(0x1e8)](_0x32b668,_0x53e2d2):_univerjs_pro_engine_shape[_0x3cb1ed(0x572)]['computeConnectorResizeLayout'](_0x2762ae,_0x40d97b,_0x12b4d2,_0x174b74);if(_0x57c607)this[_0x3cb1ed(0x266)](_0x408a16,_0x57c607,_0x12b4d2,_0x54cdf3);else this[_0x3cb1ed(0x1a7)](_0x408a16,_0x54cdf3);}[_0x3e9a34(0x1f5)](_0x5d6fba,_0x5b1b1e,_0x58b28e,_0x20f1f8,_0x5a1982){const _0x34ce44=_0x3e9a34,_0x438c4b=this['_getConnectPointInfo'](_0x5d6fba);if(!_0x438c4b)return;const _0x127a06=_0x20f1f8?_0x20f1f8[_0x34ce44(0x62d)]:this['_calculateFreeEndpointAngle'](_0x438c4b[_0x34ce44(0x1c6)],_0x5b1b1e);let _0x2bbc23;if(_0x20f1f8){const _0x52fd1a=this['_drawingManagerService'][_0x34ce44(0x619)]({'unitId':_0x20f1f8['unitId'],'subUnitId':_0x20f1f8['subUnitId'],'drawingId':_0x20f1f8[_0x34ce44(0x4ac)]});if(_0x52fd1a===null||_0x52fd1a===void 0x0?void 0x0:_0x52fd1a[_0x34ce44(0x600)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x4b2909}=_0x52fd1a['transform'];_0x2bbc23=(0x0,_univerjs_pro_engine_shape[_0x34ce44(0x5f6)])({'left':left,'top':top,'width':width,'height':height},_0x4b2909||0x0);}else _0x2bbc23={'left':_0x5b1b1e['x'],'top':_0x5b1b1e['y'],'width':0x0,'height':0x0};}else _0x2bbc23={'left':_0x5b1b1e['x'],'top':_0x5b1b1e['y'],'width':0x0,'height':0x0};const _0x308d49={'point':_0x5b1b1e,'angle':_0x127a06,'bounds':_0x2bbc23},_0x1066c4=_0x58b28e?_0x308d49:_0x438c4b,_0x536206=_0x58b28e?_0x438c4b:_0x308d49,_0xdb8152=this[_0x34ce44(0x19a)][_0x34ce44(0x478)](),_0xfb65b0=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x1066c4,_0x536206,_0xdb8152);this[_0x34ce44(0x19a)][_0x34ce44(0x546)]();const _0xaa1f4e=(0x0,_univerjs_pro_engine_shape[_0x34ce44(0x37a)])(_0xfb65b0,_0xdb8152);if(_0x20f1f8)this[_0x34ce44(0x5bd)](_0xaa1f4e,_0x20f1f8,_0x5d6fba,_0x58b28e,_0x5a1982);else this[_0x34ce44(0x40d)](_0xaa1f4e,_0x5d6fba,_0x58b28e,_0x5a1982);}[_0x3e9a34(0x266)](_0x349fa4,_0x1193aa,_0x2867d0,_0x426d9f){const _0x2daf9d=_0x3e9a34,_0x2994c5=this['_activeShapeModel'][_0x2daf9d(0x470)]()['relation'],_0x5853ae={..._0x2994c5},_0x4581fa={'shapeId':_0x1193aa['shapeId'],'cxnIndex':_0x1193aa[_0x2daf9d(0x120)]};if(_0x2867d0)_0x5853ae[_0x2daf9d(0x214)]=_0x4581fa;else _0x5853ae['to']=_0x4581fa;const _0x40f190=this['_activeShapeModel'][_0x2daf9d(0x478)](),_0x48775f=(0x0,_univerjs_pro_engine_shape[_0x2daf9d(0x37a)])(_0x349fa4['worldPoints'],_0x40f190),_0x986691={'unitId':this[_0x2daf9d(0x324)],'subUnitId':this[_0x2daf9d(0x55d)],'connectorShapeId':this[_0x2daf9d(0x2e4)],'width':_0x349fa4[_0x2daf9d(0x23a)][_0x2daf9d(0x183)],'height':_0x349fa4[_0x2daf9d(0x23a)][_0x2daf9d(0x37b)],'left':_0x349fa4[_0x2daf9d(0x23a)]['left'],'top':_0x349fa4[_0x2daf9d(0x23a)]['top'],'flipX':_0x349fa4[_0x2daf9d(0x23a)]['flipX']||![],'flipY':_0x349fa4[_0x2daf9d(0x23a)]['flipY']||![],'newAdjustValues':_0x48775f[_0x2daf9d(0x132)],'oldAdjustValues':_0x426d9f,'oldRelation':_0x2994c5,'newRelation':_0x5853ae,'newLineType':_0x48775f[_0x2daf9d(0x5de)],'oldLineType':_0x40f190};this[_0x2daf9d(0x363)][_0x2daf9d(0x591)](_univerjs_pro_sheets_shape[_0x2daf9d(0x2c8)]['id'],_0x986691);}[_0x3e9a34(0x1a7)](_0x1d6ccd,_0x341f41){const _0x19d3ac=_0x3e9a34,_0x4c874d=this[_0x19d3ac(0x19a)][_0x19d3ac(0x478)](),_0x56cc4f=(0x0,_univerjs_pro_engine_shape[_0x19d3ac(0x37a)])(_0x1d6ccd[_0x19d3ac(0x1aa)],_0x4c874d),_0x43d5c9={'unitId':this[_0x19d3ac(0x324)],'subUnitId':this[_0x19d3ac(0x55d)],'shapeId':this[_0x19d3ac(0x2e4)],'width':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x183)],'height':_0x1d6ccd['worldRect'][_0x19d3ac(0x37b)],'left':_0x1d6ccd[_0x19d3ac(0x23a)]['left'],'top':_0x1d6ccd[_0x19d3ac(0x23a)]['top'],'flipX':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x2f5)]||![],'flipY':_0x1d6ccd['worldRect'][_0x19d3ac(0x35d)]||![],'angle':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x62d)]||0x0,'newAdjustValues':_0x56cc4f[_0x19d3ac(0x132)],'oldAdjustValues':_0x341f41,'newLineType':_0x56cc4f[_0x19d3ac(0x5de)],'oldLineType':_0x4c874d};this[_0x19d3ac(0x363)][_0x19d3ac(0x591)](_univerjs_pro_sheets_shape[_0x19d3ac(0x468)]['id'],_0x43d5c9);}[_0x3e9a34(0x5bd)](_0x1790e4,_0x4d26cf,_0x36225d,_0x1e41d6,_0x511d5e){const _0x38cd7f=_0x3e9a34,_0x192420=this[_0x38cd7f(0x19a)][_0x38cd7f(0x470)]()[_0x38cd7f(0x276)],_0x5f3a48={..._0x192420},_0x55f622={'shapeId':_0x4d26cf['shapeId'],'cxnIndex':_0x4d26cf[_0x38cd7f(0x120)]};_0x1e41d6?(_0x5f3a48['from']=_0x55f622,_0x5f3a48['to']=_0x36225d):(_0x5f3a48[_0x38cd7f(0x214)]=_0x36225d,_0x5f3a48['to']=_0x55f622);const _0x90c375={'unitId':this[_0x38cd7f(0x324)],'subUnitId':this[_0x38cd7f(0x55d)],'connectorShapeId':this[_0x38cd7f(0x2e4)],'width':_0x1790e4[_0x38cd7f(0x23a)]['width'],'height':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0x37b)],'left':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0xe1)],'top':_0x1790e4[_0x38cd7f(0x23a)]['top'],'flipX':_0x1790e4['worldRect'][_0x38cd7f(0x2f5)]||![],'flipY':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0x35d)]||![],'oldAdjustValues':_0x511d5e,'newAdjustValues':_0x1790e4[_0x38cd7f(0x132)],'newLineType':_0x1790e4[_0x38cd7f(0x5de)],'rotation':_0x1790e4['rotation'],'oldRelation':_0x192420,'newRelation':_0x5f3a48};this['_commandService'][_0x38cd7f(0x591)](_univerjs_pro_sheets_shape[_0x38cd7f(0x2c8)]['id'],_0x90c375);}[_0x3e9a34(0x40d)](_0x4f387e,_0xe6828a,_0x55c151,_0x59cd60){const _0x48286e=_0x3e9a34,_0x3831db=this['_activeShapeModel'][_0x48286e(0x470)]()[_0x48286e(0x276)],_0x5dd58c={};_0x55c151?(_0x5dd58c['to']=_0xe6828a,_0x5dd58c['from']=void 0x0):(_0x5dd58c[_0x48286e(0x214)]=_0xe6828a,_0x5dd58c['to']=void 0x0);const _0x1c1880={'unitId':this[_0x48286e(0x324)],'subUnitId':this[_0x48286e(0x55d)],'connectorShapeId':this[_0x48286e(0x2e4)],'width':_0x4f387e[_0x48286e(0x23a)]['width'],'height':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x37b)],'left':_0x4f387e[_0x48286e(0x23a)]['left'],'top':_0x4f387e[_0x48286e(0x23a)]['top'],'flipX':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x2f5)]||![],'flipY':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x35d)]||![],'oldAdjustValues':_0x59cd60,'newAdjustValues':_0x4f387e[_0x48286e(0x132)],'newLineType':_0x4f387e[_0x48286e(0x5de)],'rotation':_0x4f387e[_0x48286e(0x605)],'oldRelation':_0x3831db,'newRelation':_0x5dd58c};this['_commandService'][_0x48286e(0x591)](_univerjs_pro_sheets_shape[_0x48286e(0x2c8)]['id'],_0x1c1880);}['_attachConnectorObjectEvent'](_0x5ec667,_0x557a3f,_0xcb5a2d){const _0x4ed18e=_0x3e9a34;this[_0x4ed18e(0x58e)]((0x0,_univerjs_core[_0x4ed18e(0x28e)])(_0x5ec667['onPointerDown$'][_0x4ed18e(0x345)]((_0xb657c,_0x141525)=>{const _0x502570=_0x4ed18e,_0xaa8272=_0x5ec667[_0x502570(0x40e)]();this[_0x502570(0x19a)]=this[_0x502570(0xfd)]['getShapeModel'](_0xaa8272['unitId'],_0xaa8272['subUnitId'],_0xaa8272[_0x502570(0x4c5)]);if(!this['_activeShapeModel'])return;const _0x46d849={};this['_activeShapeModel'][_0x502570(0x56e)]()['forEach'](_0x11a6c6=>{const _0x2d8e49=_0x502570,_0x15ba5f=this[_0x2d8e49(0x19a)][_0x2d8e49(0x5f9)](_0x11a6c6);if(_0x15ba5f!==void 0x0)_0x46d849[_0x11a6c6]=_0x15ba5f;});const _0x26a0bb=this[_0x502570(0x5b8)]();if(!_0x26a0bb)return;this[_0x502570(0x12d)]={..._0x26a0bb};const _0x31289f=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x502570(0x12d)]),_0x12bc3d=(0x0,_univerjs_drawing[_0x502570(0x171)])({'unitId':this[_0x502570(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x502570(0x2e4)]}),_0x45a243=_0x557a3f['getObjectIncludeInGroup'](_0x12bc3d);this[_0x502570(0x1d4)]=!![],_0x557a3f[_0x502570(0x3c5)](),this[_0x502570(0x4cb)][_0x502570(0x431)](_0x557a3f,this[_0x502570(0x324)],this[_0x502570(0x55d)],this['_activeShapeId']),this[_0x502570(0x639)]=null;const _0x584c1a=this['_activeShapeModel'][_0x502570(0x20a)](),_0x66deb2=_0x584c1a[0x0],_0x102947=_0x584c1a[_0x584c1a[_0x502570(0x440)]-0x1],_0x45809f=_0xcb5a2d?_0x31289f[_0x502570(0xfa)](_0x102947):_0x31289f['localToWorld'](_0x66deb2);this[_0x502570(0x636)]=_0x557a3f['onPointerMove$'][_0x502570(0x345)]((_0x29ecf3,_0x57d3f6)=>{const _0x57978b=_0x502570;if(!this[_0x57978b(0x1d4)]||!this['_activeShapeModel'])return;!this[_0x57978b(0x2ed)]&&(this['_sheetShapeAdjustController']['clearAdjustControls'](),this[_0x57978b(0x19a)][_0x57978b(0x43e)](),this[_0x57978b(0x2ed)]=!![]);const _0xbd9792=this[_0x57978b(0x507)](this[_0x57978b(0x324)],this[_0x57978b(0x55d)]),_0x4ff873=this[_0x57978b(0x52f)](this[_0x57978b(0x324)],this[_0x57978b(0x55d)]),_0x23f0d1={'x':_0x29ecf3[_0x57978b(0x59b)]/_0x4ff873+_0xbd9792['x'],'y':_0x29ecf3[_0x57978b(0x161)]/_0x4ff873+_0xbd9792['y']},_0x5ac8b2=this[_0x57978b(0x4cb)][_0x57978b(0x581)](_0x23f0d1);if(_0x5ac8b2){const {shapeId:_0x5daa9c,unitId:_0x45090f,subUnitId:_0x323e7b}=_0x5ac8b2;if(_0x5daa9c&&_0x45090f&&_0x323e7b){const _0x3e5333=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x45090f,'subUnitId':_0x323e7b,'drawingId':_0x5daa9c});_0x5ac8b2['angle']=(_0x557a3f[_0x57978b(0x21c)](_0x3e5333)[_0x57978b(0x62d)]||0x0)+_0x5ac8b2['angle'];}}this[_0x57978b(0x639)]=_0x5ac8b2;const _0x293aa8=_0xcb5a2d?this[_0x57978b(0x19a)][_0x57978b(0xef)]():this[_0x57978b(0x19a)][_0x57978b(0x634)]();if(_0x293aa8){this[_0x57978b(0x53d)](_0x293aa8,_0x23f0d1,_0xcb5a2d,_0x45a243,_0x5ec667);return;}this[_0x57978b(0x3a6)](_0x23f0d1,_0x45809f,_0xcb5a2d,_0x45a243,_0x5ec667);}),this[_0x502570(0x49c)]=_0x557a3f['onPointerUp$'][_0x502570(0x345)]((_0x3e4fb8,_0x586c2e)=>{const _0x5f14ac=_0x502570;this[_0x5f14ac(0x2e6)](_0x557a3f,_0x45809f,_0x3e4fb8,_0xcb5a2d,_0x46d849);}),_0x141525[_0x502570(0x11e)]();})));}[_0x3e9a34(0x5eb)](_0x5a07bd,_0x7b7fbc,_0x3b9542){const _0x13db8b=_0x3e9a34,_0x3697d7=this[_0x13db8b(0xfd)][_0x13db8b(0x460)](_0x5a07bd,_0x7b7fbc,_0x3b9542);if(!_0x3697d7||_0x3697d7[_0x13db8b(0x440)]===0x0)return;const _0x2dcd2e=this[_0x13db8b(0x5cb)]['getRenderById'](_0x5a07bd);if(!_0x2dcd2e)return;const {scene:_0x2e88bb}=_0x2dcd2e;for(const _0x165f5a of _0x3697d7){const _0x188011=_0x165f5a[_0x13db8b(0x1dc)],_0x107071=this[_0x13db8b(0xfd)][_0x13db8b(0x533)](_0x5a07bd,_0x7b7fbc,_0x188011);if(!_0x107071)continue;const _0xa21258=_0x107071['getStartConnectInfo'](),_0x31e09f=_0x107071[_0x13db8b(0xef)](),_0x368446=(_0xa21258===null||_0xa21258===void 0x0?void 0x0:_0xa21258[_0x13db8b(0x4ac)])===_0x3b9542,_0x51eef3=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5a07bd,'subUnitId':_0x7b7fbc,'drawingId':_0x188011}),_0x45e9e3=_0x2e88bb[_0x13db8b(0x21c)](_0x51eef3);if(!_0x45e9e3)continue;const _0x316e05=this['_drawingManagerService'][_0x13db8b(0x619)]({'unitId':_0x5a07bd,'subUnitId':_0x7b7fbc,'drawingId':_0x188011});if(!(_0x316e05===null||_0x316e05===void 0x0?void 0x0:_0x316e05['transform']))continue;if(_0xa21258&&_0x31e09f)this[_0x13db8b(0x217)](_0x5a07bd,_0x7b7fbc,_0x188011,_0x107071,_0xa21258,_0x31e09f,_0x45e9e3);else this[_0x13db8b(0x133)](_0x5a07bd,_0x7b7fbc,_0x188011,_0x107071,_0x368446?_0xa21258:_0x31e09f,_0x368446,_0x316e05,_0x45e9e3);}}[_0x3e9a34(0x217)](_0x71ad25,_0x466300,_0x8719fb,_0x15df2b,_0x55ee34,_0x2be603,_0x341ce8){const _0x443e6c=_0x3e9a34,_0x3f71c4=this[_0x443e6c(0x324)],_0x2d6219=this['_subUnitId'];this['_unitId']=_0x71ad25,this[_0x443e6c(0x55d)]=_0x466300;const _0x47f469=this[_0x443e6c(0x557)](_0x55ee34),_0x401965=this[_0x443e6c(0x557)](_0x2be603);this[_0x443e6c(0x324)]=_0x3f71c4,this[_0x443e6c(0x55d)]=_0x2d6219;if(!_0x47f469||!_0x401965)return;const _0x534264=_0x15df2b[_0x443e6c(0x478)](),_0x17c0ae=(0x0,_univerjs_pro_engine_shape[_0x443e6c(0x273)])(_0x47f469,_0x401965,_0x534264);if(_0x17c0ae)_0x15df2b[_0x443e6c(0x664)](_0x17c0ae);const _0x160981=(0x0,_univerjs_pro_engine_shape[_0x443e6c(0x37a)])(_0x17c0ae,_0x534264);if(_0x160981[_0x443e6c(0x5de)]!==_0x534264)_0x15df2b[_0x443e6c(0x3ad)](_0x160981[_0x443e6c(0x5de)]);_0x15df2b[_0x443e6c(0x43e)]();for(const [_0x2b4d93,_0x535fc3]of Object[_0x443e6c(0x180)](_0x160981['adjustValues']))_0x15df2b[_0x443e6c(0x57d)](_0x2b4d93,_0x535fc3);_0x15df2b[_0x443e6c(0x566)]({'width':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x183)],'height':_0x160981['worldRect']['height']}),_0x341ce8[_0x443e6c(0x227)]({'flipX':_0x160981['worldRect'][_0x443e6c(0x2f5)],'flipY':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x35d)],'left':_0x160981[_0x443e6c(0x23a)]['left'],'top':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x156)],'width':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x183)],'height':_0x160981[_0x443e6c(0x23a)]['height'],'angle':_0x160981['rotation']}),_0x15df2b[_0x443e6c(0x546)]();}[_0x3e9a34(0x133)](_0x1ae6af,_0x2dc092,_0x531fee,_0x2a1ecb,_0x1f468d,_0x55edc5,_0x513773,_0x67027a){const _0x2eb4bd=_0x3e9a34,_0x529823=this[_0x2eb4bd(0x324)],_0x541c97=this['_subUnitId'];this[_0x2eb4bd(0x324)]=_0x1ae6af,this[_0x2eb4bd(0x55d)]=_0x2dc092;const _0x853c4b=this['_getConnectPointInfo'](_0x1f468d);this['_unitId']=_0x529823,this[_0x2eb4bd(0x55d)]=_0x541c97;if(!_0x853c4b)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x513773[_0x2eb4bd(0x600)],_0x1d8875=_0x2a1ecb[_0x2eb4bd(0x20a)]();if(_0x1d8875['length']<0x2)return;const _0x42588a=new _univerjs_pro_engine_shape[(_0x2eb4bd(0x572))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x41f03a=_0x55edc5?_0x1d8875[_0x1d8875['length']-0x1]:_0x1d8875[0x0],_0x3e1ac5=_0x42588a[_0x2eb4bd(0xfa)](_0x41f03a),_0x29ef3b=_univerjs_pro_engine_shape[_0x2eb4bd(0x572)]['computeConnectorResizeLayout'](_0x3e1ac5,_0x853c4b[_0x2eb4bd(0x1c6)],!_0x55edc5);_0x67027a[_0x2eb4bd(0x227)]({'flipX':_0x29ef3b['worldRect'][_0x2eb4bd(0x2f5)],'flipY':_0x29ef3b[_0x2eb4bd(0x23a)]['flipY'],'left':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0xe1)],'top':_0x29ef3b['worldRect']['top'],'width':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0x183)],'height':_0x29ef3b['worldRect'][_0x2eb4bd(0x37b)],'angle':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0x62d)]}),_0x67027a[_0x2eb4bd(0x309)](!![]);}[_0x3e9a34(0x4fe)](){const _0x52de53=_0x3e9a34;if(this[_0x52de53(0x37f)][_0x52de53(0x440)]===0x0)return;this[_0x52de53(0x37f)][_0x52de53(0x289)](_0x1b3c2e=>{_0x1b3c2e['dispose']();}),this[_0x52de53(0x37f)]=[];}[_0x3e9a34(0x52c)](){const _0x3bf1a4=_0x3e9a34,_0x219158=this[_0x3bf1a4(0x5e1)][_0x3bf1a4(0x3c7)](_univerjs_core[_0x3bf1a4(0x4cd)][_0x3bf1a4(0x58b)]);this['disposeWithMe'](_0x219158[_0x3bf1a4(0x1e2)]((0x0,rxjs[_0x3bf1a4(0x352)])(_0x559877=>{const _0xd62e9=_0x3bf1a4;if(!_0x559877)return rxjs[_0xd62e9(0x218)];return _0x559877[_0xd62e9(0x1e1)][_0xd62e9(0x1e2)]((0x0,rxjs[_0xd62e9(0x352)])(_0x1a3d16=>{const _0x57e9e3=_0xd62e9;if(!_0x1a3d16)return rxjs[_0x57e9e3(0x218)];const _0x59cdde=_0x559877[_0x57e9e3(0x386)](),_0x2baceb=this[_0x57e9e3(0x5cb)][_0x57e9e3(0x17d)](_0x59cdde),_0x31f866=_0x2baceb===null||_0x2baceb===void 0x0?void 0x0:_0x2baceb[_0x57e9e3(0x2a4)];if(!_0x31f866)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x31f866);}));}))[_0x3bf1a4(0x562)](_0x5defe8=>{const _0x1f7c9c=_0x3bf1a4,_0x204925=_0x5defe8[_0x1f7c9c(0xe2)]();this[_0x1f7c9c(0x58e)](_0x5defe8['onPointerMove$'][_0x1f7c9c(0x345)](_0x5afe49=>{const _0x18b3de=_0x1f7c9c;if(this[_0x18b3de(0x35b)]&&this[_0x18b3de(0x2e4)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x14c)][_0x1f7c9c(0x562)](_0x43496b=>{const _0x5a3a45=_0x1f7c9c,{objects:_0x79b175}=_0x43496b;this[_0x5a3a45(0x4fe)]();if(_0x79b175!==null&&_0x79b175[_0x5a3a45(0x43f)]===0x1){if(_0x79b175[_0x5a3a45(0x4b8)]()[_0x5a3a45(0x5c7)]()[_0x5a3a45(0x115)]instanceof DrawingShape)this[_0x5a3a45(0x35b)]=!![];}})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x304)][_0x1f7c9c(0x562)](_0x2c22b2=>{const _0x54519f=_0x1f7c9c;if(this[_0x54519f(0x35b)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x1f7c9c(0x58e)](_0x5defe8[_0x1f7c9c(0x575)]['subscribeEvent'](()=>{const _0x556791=_0x1f7c9c;this[_0x556791(0x35b)]&&(this[_0x556791(0x35b)]=![],this[_0x556791(0x372)]());})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x4c0)]['subscribe'](()=>{const _0x5d1ec1=_0x1f7c9c;this[_0x5d1ec1(0x324)]&&this[_0x5d1ec1(0x55d)]&&this[_0x5d1ec1(0x2e4)]&&(this['_drawingManagerService'][_0x5d1ec1(0x619)]({'unitId':this[_0x5d1ec1(0x324)],'subUnitId':this[_0x5d1ec1(0x55d)],'drawingId':this[_0x5d1ec1(0x2e4)]})&&(this[_0x5d1ec1(0x4fe)](),this['_addShapeConnectorHandlerObjects']()));}));}));}[_0x3e9a34(0x2fc)](){const _0x26baf8=_0x3e9a34;this[_0x26baf8(0x58e)](this[_0x26baf8(0x4d0)][_0x26baf8(0x188)]['subscribe'](_0x2846bd=>{const _0x1495f6=_0x26baf8;if(_0x2846bd[_0x1495f6(0x440)]===0x1){const _0x15e0cb=_0x2846bd[0x0];if(_0x15e0cb[_0x1495f6(0x5ec)]===_univerjs_core[_0x1495f6(0x506)][_0x1495f6(0x3fc)]){const _0xb07d27=this[_0x1495f6(0xfd)][_0x1495f6(0x533)](_0x15e0cb['unitId'],_0x15e0cb[_0x1495f6(0x5d6)],_0x15e0cb[_0x1495f6(0x4c5)]);if(_0xb07d27&&(0x0,_univerjs_pro_engine_shape[_0x1495f6(0x654)])(_0xb07d27[_0x1495f6(0x478)]())){this[_0x1495f6(0x2e4)]=_0x15e0cb[_0x1495f6(0x4c5)],this[_0x1495f6(0x324)]=_0x15e0cb['unitId'],this[_0x1495f6(0x55d)]=_0x15e0cb[_0x1495f6(0x5d6)],this[_0x1495f6(0x4fe)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x1495f6(0x2e4)]=void 0x0,this['_unitId']=void 0x0,this[_0x1495f6(0x55d)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x26baf8(0x58e)](this['_drawingManagerService'][_0x26baf8(0x554)][_0x26baf8(0x562)](_0x1abaf8=>{const _0x3e60b2=_0x26baf8;if(_0x1abaf8[_0x3e60b2(0x440)]===0x1){var _0x1ef2de;const _0x4bfe00=_0x1abaf8[0x0],_0x5f2c63=(_0x1ef2de=this[_0x3e60b2(0x4d0)]['getDrawingByParam'](_0x4bfe00))===null||_0x1ef2de===void 0x0?void 0x0:_0x1ef2de['drawingType'];if(_0x5f2c63===_univerjs_core[_0x3e60b2(0x506)][_0x3e60b2(0x3fc)]&&_0x4bfe00['drawingId']===this['_activeShapeId'])this[_0x3e60b2(0x4fe)](),this[_0x3e60b2(0x372)]();else{if(!this[_0x3e60b2(0x2e4)]&&_0x5f2c63===_univerjs_core[_0x3e60b2(0x506)][_0x3e60b2(0x3fc)])this[_0x3e60b2(0x5eb)](_0x4bfe00['unitId'],_0x4bfe00[_0x3e60b2(0x5d6)],_0x4bfe00[_0x3e60b2(0x4c5)]);}}})),this[_0x26baf8(0x58e)](this['_drawingManagerService'][_0x26baf8(0x31c)][_0x26baf8(0x562)](_0x36917=>{const _0x12e25b=_0x26baf8;for(const _0x53f623 of _0x36917){const {drawingId:_0x13f3e1}=_0x53f623;if(this[_0x12e25b(0x2e4)]===_0x13f3e1){this[_0x12e25b(0x301)]();return;}}}));}[_0x3e9a34(0x53d)](_0xa387cd,_0x4c5efe,_0x2b7f2b,_0x5deaa6,_0x5821d6){const _0x309b11=_0x3e9a34;var _0x3801cf,_0x187ed5;if(!this[_0x309b11(0x19a)])return;const _0x352165=this['_getConnectPointInfo'](_0xa387cd);if(!_0x352165)return;const _0x4a829f=this[_0x309b11(0x639)]?this[_0x309b11(0x639)][_0x309b11(0x55b)]:_0x4c5efe,_0xba00d5=this[_0x309b11(0x639)]?this['_currentConnectionTarget'][_0x309b11(0x62d)]:this['_calculateFreeEndpointAngle'](_0x352165[_0x309b11(0x1c6)],_0x4a829f);let _0x216e36;if(this[_0x309b11(0x639)]){const _0x3bf232=this[_0x309b11(0x4d0)]['getDrawingByParam']({'unitId':this[_0x309b11(0x639)][_0x309b11(0x4a8)],'subUnitId':this['_currentConnectionTarget'][_0x309b11(0x5d6)],'drawingId':this[_0x309b11(0x639)]['shapeId']});if(_0x3bf232===null||_0x3bf232===void 0x0?void 0x0:_0x3bf232[_0x309b11(0x600)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x469b77}=_0x3bf232[_0x309b11(0x600)];_0x216e36=(0x0,_univerjs_pro_engine_shape[_0x309b11(0x5f6)])({'left':left,'top':top,'width':width,'height':height},_0x469b77||0x0);}else _0x216e36={'left':_0x4a829f['x'],'top':_0x4a829f['y'],'width':0x0,'height':0x0};}else _0x216e36={'left':_0x4a829f['x'],'top':_0x4a829f['y'],'width':0x0,'height':0x0};const _0x1bb271={'point':_0x4a829f,'angle':_0xba00d5,'bounds':_0x216e36},_0xa2b264=_0x2b7f2b?_0x1bb271:_0x352165,_0x28e397=_0x2b7f2b?_0x352165:_0x1bb271,_0x1cb66f=this[_0x309b11(0x19a)][_0x309b11(0x478)](),_0x2dca38=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0xa2b264,_0x28e397,_0x1cb66f);if(_0x2dca38)this[_0x309b11(0x19a)][_0x309b11(0x664)](_0x2dca38);const _0x38cd26=(0x0,_univerjs_pro_engine_shape[_0x309b11(0x37a)])(_0x2dca38,_0x1cb66f);if(_0x38cd26['lineType']!==_0x1cb66f)this[_0x309b11(0x19a)][_0x309b11(0x3ad)](_0x38cd26[_0x309b11(0x5de)]);for(const [_0x39fb84,_0x48170f]of Object[_0x309b11(0x180)](_0x38cd26[_0x309b11(0x132)]))this[_0x309b11(0x19a)][_0x309b11(0x57d)](_0x39fb84,_0x48170f);this[_0x309b11(0x19a)][_0x309b11(0x566)]({'width':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x183)],'height':_0x38cd26[_0x309b11(0x23a)]['height']}),_0x5deaa6['transformByState']({'flipX':_0x38cd26['worldRect'][_0x309b11(0x2f5)],'flipY':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x35d)],'left':_0x38cd26[_0x309b11(0x23a)]['left'],'top':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x156)],'width':_0x38cd26['worldRect'][_0x309b11(0x183)],'height':_0x38cd26['worldRect'][_0x309b11(0x37b)],'angle':_0x38cd26[_0x309b11(0x605)]}),_0x5deaa6[_0x309b11(0x309)](!![]);const _0x3ba15b=(_0x3801cf=(_0x187ed5=this[_0x309b11(0x639)])===null||_0x187ed5===void 0x0?void 0x0:_0x187ed5[_0x309b11(0x55b)])!==null&&_0x3801cf!==void 0x0?_0x3801cf:_0x4c5efe;_0x5821d6['transformByState']({'left':_0x3ba15b['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x309b11(0x325)],'top':_0x3ba15b['y']-_univerjs_pro_engine_shape[_0x309b11(0x49a)][_0x309b11(0x325)]});}['_handleFreeEndpointMove'](_0x50e8ba,_0x3b5f34,_0x567bbc,_0x42e9f8,_0x32c1a6){const _0x4c081d=_0x3e9a34;var _0x5f18e2,_0x22884c,_0xfb8db6,_0x5f2cb0;const _0x2aee78=(_0x5f18e2=(_0x22884c=this[_0x4c081d(0x639)])===null||_0x22884c===void 0x0?void 0x0:_0x22884c[_0x4c081d(0x55b)])!==null&&_0x5f18e2!==void 0x0?_0x5f18e2:_0x50e8ba,_0x2608f9=_univerjs_pro_engine_shape[_0x4c081d(0x572)][_0x4c081d(0x23f)](_0x3b5f34,_0x2aee78,_0x567bbc);_0x42e9f8[_0x4c081d(0x227)]({'flipX':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x2f5)],'flipY':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x35d)],'left':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0xe1)],'top':_0x2608f9[_0x4c081d(0x23a)]['top'],'width':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x183)],'height':_0x2608f9['worldRect'][_0x4c081d(0x37b)],'angle':_0x2608f9[_0x4c081d(0x23a)]['angle']});const _0x3abf4c=(_0xfb8db6=(_0x5f2cb0=this[_0x4c081d(0x639)])===null||_0x5f2cb0===void 0x0?void 0x0:_0x5f2cb0[_0x4c081d(0x55b)])!==null&&_0xfb8db6!==void 0x0?_0xfb8db6:_0x50e8ba;_0x32c1a6[_0x4c081d(0x227)]({'left':_0x3abf4c['x']-_univerjs_pro_engine_shape[_0x4c081d(0x49a)]['cxnPointRadius'],'top':_0x3abf4c['y']-_univerjs_pro_engine_shape[_0x4c081d(0x49a)]['cxnPointRadius']});}[_0x3e9a34(0x557)](_0x54b17a){const _0x15720b=_0x3e9a34;if(!this[_0x15720b(0x324)]||!this[_0x15720b(0x55d)])return null;const {shapeId:_0x43bd99,cxnIndex:_0x3caceb}=_0x54b17a,_0x507c16=this[_0x15720b(0xfd)][_0x15720b(0x533)](this[_0x15720b(0x324)],this[_0x15720b(0x55d)],_0x43bd99);if(!_0x507c16)return null;const _0x344d43=this[_0x15720b(0x4d0)]['getDrawingByParam']({'unitId':this[_0x15720b(0x324)],'subUnitId':this[_0x15720b(0x55d)],'drawingId':_0x43bd99});if(!(_0x344d43===null||_0x344d43===void 0x0?void 0x0:_0x344d43['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x4fd555}=_0x344d43[_0x15720b(0x600)];_0x507c16[_0x15720b(0x566)]({'width':width,'height':height});const _0x3b9d41=_0x507c16[_0x15720b(0x13b)]()['find'](_0x76a14f=>_0x76a14f['index']===_0x3caceb);if(!_0x3b9d41)return null;let _0x2aa21e=flipX?width-_0x3b9d41['x']:_0x3b9d41['x'],_0x42c648=flipY?height-_0x3b9d41['y']:_0x3b9d41['y'];if(_0x4fd555!==0x0&&_0x4fd555!==void 0x0&&_0x4fd555!==null){const _0x1553d8=_0x4fd555*Math['PI']/0xb4,_0x52575b=Math[_0x15720b(0x1cb)](_0x1553d8),_0x4255a4=Math[_0x15720b(0x479)](_0x1553d8),_0x5bb914=width/0x2,_0x2a0d0e=height/0x2,_0x3c45de=_0x2aa21e-_0x5bb914,_0x15f142=_0x42c648-_0x2a0d0e;_0x2aa21e=_0x5bb914+_0x3c45de*_0x52575b-_0x15f142*_0x4255a4,_0x42c648=_0x2a0d0e+_0x3c45de*_0x4255a4+_0x15f142*_0x52575b;}_0x2aa21e+=left,_0x42c648+=top;let _0x4dc3e7=_0x3b9d41['ang']/0xea60;if(flipX)_0x4dc3e7=0xb4-_0x4dc3e7;if(flipY)_0x4dc3e7=-_0x4dc3e7;_0x4dc3e7+=_0x4fd555||0x0,_0x4dc3e7=(_0x4dc3e7%0x168+0x168)%0x168;const _0x4cf735=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x4fd555||0x0);return{'point':{'x':_0x2aa21e,'y':_0x42c648},'angle':_0x4dc3e7,'bounds':_0x4cf735};}[_0x3e9a34(0x514)](_0x4a44ce,_0x4b4595){const _0x26be2=_0x3e9a34,_0x56d735=_0x4b4595['x']-_0x4a44ce['x'],_0x2891e3=_0x4b4595['y']-_0x4a44ce['y'];if(Math[_0x26be2(0x228)](_0x56d735)>=Math[_0x26be2(0x228)](_0x2891e3))return _0x56d735>=0x0?0xb4:0x0;else return _0x2891e3>=0x0?0x10e:0x5a;}['_reset'](){const _0x30c39d=_0x3e9a34;this[_0x30c39d(0x2e4)]=void 0x0,this['_unitId']=void 0x0,this[_0x30c39d(0x55d)]=void 0x0,this[_0x30c39d(0x4fe)]();}[_0x3e9a34(0x199)](){const _0x22b732=_0x3e9a34;this[_0x22b732(0x4fe)](),super[_0x22b732(0x199)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x2,_univerjs_engine_render[_0x3e9a34(0x35e)]),__decorateParam(0x3,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x1e6125,_0xe3f89b,_0xb0f7a6){const _0x12c05b=_0x3e9a34;super(),this[_0x12c05b(0x363)]=_0x1e6125,this['_localeService']=_0xe3f89b,this[_0x12c05b(0x492)]=_0xb0f7a6,this['_initPermission']();}[_0x3e9a34(0x1eb)](){const _0x2e9462=_0x3e9a34;this[_0x2e9462(0x58e)](this[_0x2e9462(0x363)][_0x2e9462(0x2fb)](_0x134a5b=>{const _0x2f88fe=_0x2e9462;let _0x2355c0,_0x4e6509;if(_0x134a5b['id']===_univerjs_pro_sheets_shape[_0x2f88fe(0x530)]['id']||_0x134a5b['id']===_univerjs_pro_sheets_shape[_0x2f88fe(0x5df)]['id']||_0x134a5b['id']===_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id']){const _0x591928=_0x134a5b[_0x2f88fe(0xee)];_0x2355c0=_0x591928[_0x2f88fe(0x4a8)],_0x4e6509=_0x591928[_0x2f88fe(0x5d6)];}if(!_0x2355c0||!_0x4e6509)return;if(!this[_0x2f88fe(0x492)]['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x2f88fe(0x36b)]],'worksheetTypes':[_univerjs_sheets[_0x2f88fe(0x343)]]},_0x2355c0,_0x4e6509))this[_0x2f88fe(0x492)][_0x2f88fe(0x25f)](this[_0x2f88fe(0x5d4)]['t']('permission.dialog.editErr'));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x3f7)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core['LocaleService'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x3e9a34(0x219)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x1540d7){const _0x29b9f4=_0x3e9a34,{containerWidth:_0x179549,containerHeight:_0x32b8aa,scaleX:_0x5df9e4,scaleY:_0x2491e2}=_0x1540d7,_0x424387=_0x5df9e4||0x1,_0x3ddb22=_0x2491e2||0x1,_0x4d9505=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x421573=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_docs_ui[_0x29b9f4(0x2c0)]),_0x184f0e=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_engine_render[_0x29b9f4(0x35e)]),_0x2c3843=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_core[_0x29b9f4(0x53f)]),_0x6f3995=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_drawing['IDrawingManagerService']),_0x5e0740=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_pro_sheets_shape['SheetsShapeService']),_0x1ab289=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['ICommandService']),_0x2d1f71=(0x0,_univerjs_ui['useObservable'])(_0x4d9505[_0x29b9f4(0x186)]),_0x5473db=(0x0,_univerjs_ui[_0x29b9f4(0x601)])(_0x4d9505['onSavingEditorData$']),_0x2e2191=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x21fa4e=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x14b71f=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x14ee19=(0x0,react['useRef'])(null),_0x5b525e=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x303981=(0x0,react[_0x29b9f4(0x2ec)])(null),[_0xa8bdb9,_0x46b44b]=(0x0,react[_0x29b9f4(0x5a1)])({'editorHeight':_0x32b8aa,'marginTop':0x0,'useAbsolutePosition':![]}),_0x4c7388=(0x0,react[_0x29b9f4(0x51f)])(_0x297628=>{queueMicrotask(()=>{_0x46b44b(_0x297628);});},[]),_0x209a27=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0xc32ecb=_0x29b9f4;return _0x2c3843[_0xc32ecb(0x46e)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core['UniverInstanceType'][_0xc32ecb(0x229)]);},[_0x2c3843]),_0x224b83=(0x0,react['useCallback'])(()=>{const _0x421f7a=_0x29b9f4;var _0x4cfada;const _0x2df97a=_0x424387,_0x17a401=_0x3ddb22;if(!_0x2d1f71)return{'scaleAdjust':0x1,'renderScaleX':_0x2df97a,'renderScaleY':_0x17a401};const _0x4459dc=_0x184f0e[_0x421f7a(0x17d)](_0x2d1f71[_0x421f7a(0x4a8)]),_0xbf9ed5=_0x4459dc===null||_0x4459dc===void 0x0?void 0x0:_0x4459dc['scene'][_0x421f7a(0x618)](),_0x131728=_0x4459dc===null||_0x4459dc===void 0x0?void 0x0:_0x4459dc['engine'][_0x421f7a(0x60c)](),_0xa4e4ad=_0x131728?Number[_0x421f7a(0x265)](_0x131728[_0x421f7a(0x18f)][_0x421f7a(0x183)]||''):0x0,_0xdeb6ba=(_0x4cfada=_0x131728===null||_0x131728===void 0x0?void 0x0:_0x131728['getBoundingClientRect']()[_0x421f7a(0x183)])!==null&&_0x4cfada!==void 0x0?_0x4cfada:0x0,_0x173844=_0xa4e4ad>0x0&&_0xdeb6ba>0x0?_0xdeb6ba/_0xa4e4ad:0x1;return{'scaleAdjust':Number[_0x421f7a(0x19c)](_0x173844)&&_0x173844>0x0?_0x173844:0x1,'renderScaleX':(_0xbf9ed5===null||_0xbf9ed5===void 0x0?void 0x0:_0xbf9ed5['scaleX'])||_0x2df97a,'renderScaleY':(_0xbf9ed5===null||_0xbf9ed5===void 0x0?void 0x0:_0xbf9ed5['scaleY'])||_0x17a401};},[_0x424387,_0x3ddb22,_0x2d1f71,_0x184f0e]),_0x3dec66=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0xa413c6=_0x29b9f4;if(!_0x2d1f71)return{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};const {unitId:_0x3d1574,subUnitId:_0xd2109d,shapeId:_0x30d0ec}=_0x2d1f71,_0x50224e=_0x5e0740[_0xa413c6(0x533)](_0x3d1574,_0xd2109d,_0x30d0ec);if(!_0x50224e)return{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};const _0x3e1866={'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};return _0x50224e[_0xa413c6(0x446)](_0x3e1866);},[_0x2d1f71,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22,_0x5e0740]),_0xaf13df=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0x4de8a1=_0x29b9f4;if(!_0x2d1f71)return null;const {unitId:_0x30df04,subUnitId:_0x13ddcf,shapeId:_0x1cf9ba}=_0x2d1f71,_0x34c49c=_0x5e0740[_0x4de8a1(0x533)](_0x30df04,_0x13ddcf,_0x1cf9ba);if(!_0x34c49c)return null;const _0x1a5399=_0x34c49c[_0x4de8a1(0x459)]();if(!_0x1a5399)return null;const _0x3676ec={'unitId':_0x30df04,'subUnitId':_0x13ddcf,'drawingId':_0x1cf9ba},_0x573d38=_0x6f3995[_0x4de8a1(0x619)](_0x3676ec);let _0x40336a={'angle':0x0,'flipX':![],'flipY':![]};if(_0x573d38&&_0x573d38[_0x4de8a1(0x600)])_0x40336a=_0x573d38[_0x4de8a1(0x600)];const _0x145e35={'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22},_0x497443=_0x34c49c[_0x4de8a1(0x446)](_0x145e35);let _0x439a15,_0x31c180=_univerjs_core[_0x4de8a1(0x48a)]['TOP'],_0x25788d=_univerjs_core[_0x4de8a1(0x5ed)][_0x4de8a1(0x57b)];if(_0x4de8a1(0xe0)in _0x1a5399&&_0x1a5399[_0x4de8a1(0xe0)]){var _0x57eb92,_0x2d09a7;const _0x1fa373=_0x1a5399[_0x4de8a1(0xe0)];if(_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373[_0x4de8a1(0x30b)])_0x439a15=_0x1fa373[_0x4de8a1(0x30b)];_0x31c180=(_0x57eb92=_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373['va'])!==null&&_0x57eb92!==void 0x0?_0x57eb92:_univerjs_core[_0x4de8a1(0x48a)][_0x4de8a1(0x2ab)],_0x25788d=(_0x2d09a7=_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373['ha'])!==null&&_0x2d09a7!==void 0x0?_0x2d09a7:_univerjs_core['HorizontalAlign'][_0x4de8a1(0x57b)];}return{'doc':_0x439a15,'verticalAlign':_0x31c180,'horizontalAlign':_0x25788d,'textRect':_0x497443,'transform':_0x40336a,'isHorizontal':_0x1a5399['isHorizontal']};},[_0x2d1f71,_0x5e0740,_0x6f3995,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22]),_0x5f58a4=(0x0,react['useMemo'])(()=>{const _0x34c941=_0x29b9f4,_0x4f93da=_0xaf13df();if(_0x4f93da===null||_0x4f93da===void 0x0?void 0x0:_0x4f93da[_0x34c941(0x30b)])return prepareShapeTextDocumentData(_0x4f93da[_0x34c941(0x30b)],{'isHorizontal':!![],'textRect':_0x4f93da[_0x34c941(0x513)],'verticalAlign':_0x4f93da['verticalAlign'],'horizontalAlign':_0x4f93da[_0x34c941(0x656)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x179549/_0x424387,'height':Infinity}}};},[_0xaf13df,_0x179549,_0x424387]),_0x4eece7=(0x0,_univerjs_docs_ui[_0x29b9f4(0x169)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x5f58a4,'container':_0x21fa4e,'autoFocus':![],'isSingle':![]}),_0x48451e=(0x0,_univerjs_docs_ui['useIsFocusing'])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x29b9f4(0x2a9)])(_0x48451e,{'keyCodes':[{'keyCode':_univerjs_ui[_0x29b9f4(0x54b)][_0x29b9f4(0x280)]}],'handler':()=>{const _0x342ace=_0x29b9f4;_0x1ab289[_0x342ace(0x591)](_univerjs_docs_ui[_0x342ace(0x1e0)]['id']);}},_0x4eece7),(0x0,_univerjs_docs_ui[_0x29b9f4(0x292)])(_0x48451e,![],_0x4eece7);const _0x508fd2=(0x0,react[_0x29b9f4(0x51f)])((_0x1e08c7=!![])=>{const _0x751dea=_0x29b9f4;var _0x2aadbe,_0x49c5e2,_0x4c279c;if(!_0x4eece7)return;const _0x179467=_0x4eece7['getSelectionRanges']()['find'](_0x4f850b=>_0x4f850b[_0x751dea(0x18d)]),_0x321c4a=((_0x2aadbe=(_0x49c5e2=_0x4eece7[_0x751dea(0x430)]()[_0x751dea(0x32d)])===null||_0x49c5e2===void 0x0?void 0x0:_0x49c5e2[_0x751dea(0x521)][_0x751dea(0x440)])!==null&&_0x2aadbe!==void 0x0?_0x2aadbe:0x2)-0x2,_0x40b659=(_0x4c279c=_0x179467===null||_0x179467===void 0x0?void 0x0:_0x179467[_0x751dea(0x1d2)])!==null&&_0x4c279c!==void 0x0?_0x4c279c:_0x1e08c7?_0x321c4a:null;if(_0x40b659===null)return;_0x4eece7[_0x751dea(0x40a)]([{'startOffset':_0x40b659,'endOffset':_0x40b659}],![]);},[_0x4eece7]),_0x59b30e=(0x0,react['useCallback'])(()=>{const _0x49ff82=_0x29b9f4;_0x5b525e[_0x49ff82(0x419)]!==null&&(cancelAnimationFrame(_0x5b525e[_0x49ff82(0x419)]),_0x5b525e['current']=null),_0x303981[_0x49ff82(0x419)]!==null&&(window[_0x49ff82(0x32f)](_0x303981[_0x49ff82(0x419)]),_0x303981[_0x49ff82(0x419)]=null);},[]),_0x2864a0=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0x4c531c=_0x29b9f4;var _0x1de41a,_0x319963,_0x513251;if(!_0x4eece7)return;const _0x270fd5=_0x184f0e['getRenderById'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x6c31a0=_0x270fd5===null||_0x270fd5===void 0x0?void 0x0:_0x270fd5[_0x4c531c(0x1cf)](_univerjs_docs[_0x4c531c(0x4b1)]);if(!_0x6c31a0)return;const _0x537b2a=_0x6c31a0['getSkeleton'](),_0x559f3e=_0x209a27(),{renderScaleX:_0xf82b4,renderScaleY:_0x38a8ab,scaleAdjust:_0x37f06d}=_0x224b83(),_0xce3e04=_0xaf13df(),_0x4c484d=(_0x1de41a=_0xce3e04===null||_0xce3e04===void 0x0?void 0x0:_0xce3e04[_0x4c531c(0x5d0)])!==null&&_0x1de41a!==void 0x0?_0x1de41a:_univerjs_core[_0x4c531c(0x48a)]['TOP'],_0xb1d3e7=(_0x319963=_0xce3e04===null||_0xce3e04===void 0x0?void 0x0:_0xce3e04[_0x4c531c(0x656)])!==null&&_0x319963!==void 0x0?_0x319963:_univerjs_core[_0x4c531c(0x5ed)][_0x4c531c(0x57b)],_0x4c4f4d=(_0x513251=_0x3dec66())!==null&&_0x513251!==void 0x0?_0x513251:{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};_0x559f3e&&(_0x559f3e[_0x4c531c(0x391)](Math[_0x4c531c(0x216)](_0xf82b4,_0x38a8ab)),_0x559f3e[_0x4c531c(0x589)]({'pageSize':{'width':_0x4c4f4d[_0x4c531c(0x183)],'height':Infinity}}),_0x559f3e[_0x4c531c(0x19b)]({'verticalAlign':_0x4c484d,'horizontalAlign':_0xb1d3e7,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x4c531c(0x5e5)][_0x4c531c(0x2fa)]}));_0x537b2a[_0x4c531c(0x108)]();const {actualHeight:_0x2c3770}=_0x537b2a[_0x4c531c(0x659)](),_0x259302=_0x4c4f4d['height'];let _0x571132=_0x259302,_0x2e3f7f=0x0;if(_0x2c3770<=_0x259302){if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x3a0)])_0x2e3f7f=(_0x259302-_0x2c3770)/0x2;else{if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)]['BOTTOM'])_0x2e3f7f=_0x259302-_0x2c3770;}_0x571132=_0x259302,_0x4c7388({'editorHeight':_0x4c4f4d[_0x4c531c(0x37b)]*_0x3ddb22,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x59a0c7=0x0;if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x3a0)])_0x59a0c7=(_0x259302-_0x2c3770)/0x2;else{if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x573)])_0x59a0c7=_0x259302-_0x2c3770;}_0x2e3f7f=0x0,_0x4c7388({'editorHeight':_0x2c3770*_0x3ddb22,'marginTop':_0x59a0c7*_0x3ddb22,'useAbsolutePosition':!![]}),_0x571132=_0x2c3770;}_0x559f3e&&(_0x559f3e[_0x4c531c(0x589)]({'pageSize':{'width':_0x4c4f4d[_0x4c531c(0x183)],'height':_0x571132}}),_0x559f3e[_0x4c531c(0x39c)]({'t':_0x2e3f7f}),_0x537b2a[_0x4c531c(0x108)]());if(_0x270fd5){const _0x5b1620=_0x4c4f4d[_0x4c531c(0x183)]*_0x424387,_0x5b0a7f=_0x571132*_0x3ddb22;_0x270fd5[_0x4c531c(0x2a4)][_0x4c531c(0x227)]({'width':_0x5b1620*_0x37f06d/_0xf82b4,'height':_0x5b0a7f*_0x37f06d/_0x38a8ab,'scaleX':_0xf82b4*_0x37f06d,'scaleY':_0x38a8ab*_0x37f06d});if(_0x270fd5[_0x4c531c(0x59e)])_0x270fd5[_0x4c531c(0x59e)][_0x4c531c(0x302)](_0x5b1620*_0x37f06d/_0xf82b4,_0x5b0a7f*_0x37f06d/_0x38a8ab);}},[_0x4eece7,_0x184f0e,_0x209a27,_0x224b83,_0xaf13df,_0x3dec66,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22,_0x4c7388]),_0x2a7f3f=(0x0,react[_0x29b9f4(0x51f)])((_0x1f421c=![])=>{const _0x58d771=_0x29b9f4;_0x59b30e(),_0x5b525e[_0x58d771(0x419)]=requestAnimationFrame(()=>{const _0x38f4df=_0x58d771;_0x2864a0();if(_0x1f421c)_0x508fd2(![]);_0x5b525e['current']=null,_0x303981['current']=window[_0x38f4df(0x112)](()=>{const _0x4d3f53=_0x38f4df;_0x2864a0();if(_0x1f421c)_0x508fd2(![]);_0x303981[_0x4d3f53(0x419)]=null;},0x14);});},[_0x2864a0,_0x59b30e,_0x508fd2]);(0x0,react[_0x29b9f4(0x11f)])(()=>{const _0x4e43b0=_0x29b9f4;if(!_0x4eece7||!_0x2d1f71)return;const {shapeId:_0xbcc500,unitId:_0x8c63c,subUnitId:_0x46e39a}=_0x2d1f71;if(_0x5473db){var _0x42eec5,_0x4ec9e7,_0x3d8ca5,_0x5717a6;const _0x33eb86=stripShapeTextDocumentLayout(_0x4eece7[_0x4e43b0(0x430)]()),_0x2dd2aa=_0xaf13df(),_0x253671={'va':(_0x42eec5=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa['verticalAlign'])!==null&&_0x42eec5!==void 0x0?_0x42eec5:_univerjs_core[_0x4e43b0(0x48a)][_0x4e43b0(0x2ab)],'ha':(_0x4ec9e7=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x656)])!==null&&_0x4ec9e7!==void 0x0?_0x4ec9e7:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x33eb86};_0x1ab289['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x8c63c,'subUnitId':_0x46e39a,'shapeId':_0xbcc500,'shapeData':{'shapeText':{'isHorizontal':(_0x3d8ca5=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x1ac)])!==null&&_0x3d8ca5!==void 0x0?_0x3d8ca5:!![],'dataModel':_0x253671}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x5717a6=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x1ac)])!==null&&_0x5717a6!==void 0x0?_0x5717a6:!![],'dataModel':_0x14b71f[_0x4e43b0(0x419)]}}}});return;}const _0x93290a=_0xaf13df();if(_0x93290a===null||_0x93290a===void 0x0?void 0x0:_0x93290a[_0x4e43b0(0x30b)]){_0x14b71f[_0x4e43b0(0x419)]={'va':_0x93290a[_0x4e43b0(0x5d0)],'ha':_0x93290a['horizontalAlign'],'doc':_univerjs_core[_0x4e43b0(0x584)]['deepClone'](_0x93290a['doc'])};const _0x55433c=prepareShapeTextDocumentData(_0x93290a[_0x4e43b0(0x30b)],{'isHorizontal':!![],'textRect':_0x93290a[_0x4e43b0(0x513)],'verticalAlign':_0x93290a['verticalAlign'],'horizontalAlign':_0x93290a[_0x4e43b0(0x656)]});return _0x4eece7[_0x4e43b0(0x21d)](_0x55433c,null),()=>{const _0x4061cc=_0x4e43b0;var _0x59af92,_0x25aacd,_0x83b49a,_0x49db01;const _0x1aa684=stripShapeTextDocumentLayout(_0x4eece7[_0x4061cc(0x430)]()),_0x45d3ec=_0xaf13df(),_0x5db7b8={'va':(_0x59af92=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x5d0)])!==null&&_0x59af92!==void 0x0?_0x59af92:_univerjs_core[_0x4061cc(0x48a)][_0x4061cc(0x2ab)],'ha':(_0x25aacd=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec['horizontalAlign'])!==null&&_0x25aacd!==void 0x0?_0x25aacd:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x1aa684};_0x1ab289[_0x4061cc(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x8c63c,'subUnitId':_0x46e39a,'shapeId':_0xbcc500,'shapeData':{'shapeText':{'isHorizontal':(_0x83b49a=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x1ac)])!==null&&_0x83b49a!==void 0x0?_0x83b49a:!![],'dataModel':_0x5db7b8}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x49db01=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x1ac)])!==null&&_0x49db01!==void 0x0?_0x49db01:!![],'dataModel':_0x14b71f[_0x4061cc(0x419)]}}}});};}else _0x4eece7[_0x4e43b0(0x21d)](_0x5f58a4,null);},[_0x4eece7,_0x2d1f71,_0x5473db]),(0x0,react[_0x29b9f4(0x11f)])(()=>{const _0x135d4d=_0x29b9f4;if(!_0x4eece7||!_0x2d1f71)return;return _0x421573[_0x135d4d(0x5b4)](!![]),_0x2864a0(),_0x14ee19[_0x135d4d(0x419)]=requestAnimationFrame(()=>{const _0x236a80=_0x135d4d;_0x421573['focus'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x508fd2(),_0x2a7f3f(),_0x14ee19[_0x236a80(0x419)]=null;}),()=>{const _0x3f419b=_0x135d4d;_0x14ee19['current']!==null&&(cancelAnimationFrame(_0x14ee19[_0x3f419b(0x419)]),_0x14ee19[_0x3f419b(0x419)]=null),_0x59b30e(),_0x421573['blur'](!![]);};},[_0x4eece7,_0x2d1f71,_0x421573,_0x2864a0,_0x508fd2,_0x2a7f3f,_0x59b30e]),(0x0,react['useEffect'])(()=>{const _0x16752b=_0x29b9f4;if(!_0x4eece7)return;const _0x3dfe33=_0x1ab289[_0x16752b(0x3b5)](_0x3ce108=>{const _0x1a5e93=_0x16752b;if(_0x3ce108['id']===_univerjs_docs[_0x1a5e93(0x27c)]['id']){if(_0x3ce108[_0x1a5e93(0xee)][_0x1a5e93(0x4a8)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x2d1f71){if(!_0x2d1f71['visible'])_0x4d9505[_0x1a5e93(0x1d8)]({..._0x2d1f71,'visible':!![]});else _0x2864a0();}}}if(_0x3ce108['id']===SetShapeTextVerticalAlignCommand['id'])_0x2a7f3f(!![]);});return()=>{const _0x3075dd=_0x16752b;_0x3dfe33[_0x3075dd(0x199)]();};},[_0x4eece7,_0x2864a0,_0x2d1f71,_0x2a7f3f,_0x4d9505]),(0x0,react[_0x29b9f4(0x11f)])(()=>{return _0x2864a0(),_0x2a7f3f(),()=>{_0x59b30e();};},[_0x2864a0,_0x2a7f3f,_0x59b30e]);const _0x8728e9=(0x0,react[_0x29b9f4(0x336)])(()=>{const _0x15bbfb=_0x29b9f4;var _0x2b78db;const _0x1e49dc=(_0x2b78db=_0x3dec66())!==null&&_0x2b78db!==void 0x0?_0x2b78db:{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22},_0x1a0f25=_0x1e49dc[_0x15bbfb(0xe1)]*_0x424387,_0x1f7a6a=_0x1e49dc[_0x15bbfb(0x156)]*_0x3ddb22,_0x46ca4b=_0x1e49dc['width']*_0x424387;if(_0xa8bdb9[_0x15bbfb(0x165)])return{'top':_0x1f7a6a+_0xa8bdb9[_0x15bbfb(0x2ee)],'left':_0x1a0f25,'width':_0x46ca4b,'height':_0xa8bdb9[_0x15bbfb(0x3f5)]};return{'top':_0x1f7a6a,'left':_0x1a0f25,'width':_0x46ca4b,'height':_0xa8bdb9[_0x15bbfb(0x3f5)]};},[_0xa8bdb9,_0x3dec66,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22]),_0x262dd=(0x0,react[_0x29b9f4(0x336)])(()=>{const _0x14cead=_0x29b9f4,_0xed69e7=_0xaf13df(),_0x5cced3=_0xed69e7===null||_0xed69e7===void 0x0?void 0x0:_0xed69e7[_0x14cead(0x600)];if(_0x5cced3)return _0x5cced3||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0xaf13df]);return(0x0,react_jsx_runtime[_0x29b9f4(0x64f)])(_0x29b9f4(0x418),{'ref':_0x2e2191,'data-u-comp':_0x29b9f4(0x109),'className':_0x29b9f4(0x669),'style':{'transform':_0x29b9f4(0x27a)+_0x262dd[_0x29b9f4(0x62d)]+'deg)\x20scaleY('+(_0x262dd[_0x29b9f4(0x35d)]?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x29b9f4(0x64f)])(_0x29b9f4(0x418),{'ref':_0x21fa4e,'className':'univer-absolute','data-u-comp':_0x29b9f4(0x3d5),'style':_0x8728e9,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor['displayName']='ShapeEditor';const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x3273d8,_0x170df8,_0x5d42ca,_0x1b9840){const _0x2ee0a9=_0x3e9a34,{scaleX:_0x5384f0,scaleY:_0x212e46}=_0x5d42ca[_0x2ee0a9(0x618)](),{startColumn:_0x1d91bc,startRow:_0x455196,xSplit:_0x187a95,ySplit:_0x3e9340}=_0x1b9840[_0x2ee0a9(0x5e4)][_0x2ee0a9(0x58d)](),_0x4380f8=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x208)]),_0x6250bf=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x519)]),_0x316ae1=_0x5d42ca['getViewport'](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x2ee0a9(0x31f)]),_0x4b04e9=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x41f)]),{rowHeaderWidth:_0x14f9ae,columnHeaderHeight:_0x4aab64}=_0x1b9840,_0x26fc9d=_0x1b9840[_0x2ee0a9(0x211)](_0x455196)+_0x4aab64,_0x34ccc4=_0x1b9840[_0x2ee0a9(0x4b9)](_0x1d91bc)+_0x14f9ae,_0x21dd00=_0x1b9840[_0x2ee0a9(0x211)](_0x455196-_0x3e9340)+_0x4aab64,_0x25aa58=_0x1b9840[_0x2ee0a9(0x4b9)](_0x1d91bc-_0x187a95)+_0x14f9ae,_0x4e9ce5=[],_0x3fff5f=(_0x2ee67c,_0xa7f61b,_0x16fe0f)=>{if(!_0x2ee67c)return null;const {viewportScrollX:_0x41d614,viewportScrollY:_0x40eb88}=_0x2ee67c;let _0x57492c,_0x2b400d;if(_0xa7f61b)_0x57492c=(_0x3273d8-(_0x25aa58-_0x14f9ae))*_0x5384f0;else _0x57492c=(_0x3273d8-_0x41d614)*_0x5384f0;if(_0x16fe0f)_0x2b400d=(_0x170df8-(_0x21dd00-_0x4aab64))*_0x212e46;else _0x2b400d=(_0x170df8-_0x40eb88)*_0x212e46;return{'domX':_0x57492c,'domY':_0x2b400d};},_0x56c086=_0x3273d8<_0x34ccc4&&_0x187a95>0x0,_0x57ba92=_0x170df8<_0x26fc9d&&_0x3e9340>0x0,_0x20a947=_0x3273d8>=_0x34ccc4||_0x187a95===0x0,_0x854a27=_0x170df8>=_0x26fc9d||_0x3e9340===0x0;if(_0x56c086&&_0x57ba92&&_0x6250bf){const _0x91a7d4=_0x3fff5f(_0x6250bf,!![],!![]);if(_0x91a7d4)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x91a7d4);}if(_0x57ba92&&_0x20a947&&_0x316ae1){const _0x19aab5=_0x3fff5f(_0x316ae1,![],!![]);if(_0x19aab5)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x19aab5);}if(_0x56c086&&_0x854a27&&_0x4b04e9){const _0x1801c5=_0x3fff5f(_0x4b04e9,!![],![]);if(_0x1801c5)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x1801c5);}if(_0x20a947&&_0x854a27&&_0x4380f8){const _0x5f22bf=_0x3fff5f(_0x4380f8,![],![]);if(_0x5f22bf)_0x4e9ce5['push'](_0x5f22bf);}if(_0x4e9ce5[_0x2ee0a9(0x440)]===0x0){var _0x5d0266,_0x306fa2;return{'domX':(_0x3273d8-((_0x5d0266=_0x4380f8===null||_0x4380f8===void 0x0?void 0x0:_0x4380f8[_0x2ee0a9(0x4aa)])!==null&&_0x5d0266!==void 0x0?_0x5d0266:0x0))*_0x5384f0,'domY':(_0x170df8-((_0x306fa2=_0x4380f8===null||_0x4380f8===void 0x0?void 0x0:_0x4380f8[_0x2ee0a9(0x520)])!==null&&_0x306fa2!==void 0x0?_0x306fa2:0x0))*_0x212e46};}let _0x337302=_0x4e9ce5[0x0]['domX'],_0x466663=_0x4e9ce5[0x0]['domY'];for(const _0x3d0569 of _0x4e9ce5){if(_0x3d0569[_0x2ee0a9(0x407)]>_0x337302)_0x337302=_0x3d0569[_0x2ee0a9(0x407)];if(_0x3d0569['domY']>_0x466663)_0x466663=_0x3d0569[_0x2ee0a9(0x420)];}return{'domX':_0x337302,'domY':_0x466663};}function calcShapePosition(_0x103c9f,_0x59ab25,_0x829c11,_0x178e9d,_0x2a340a,_0x4159ff,_0x34ed85){const _0x47e880=_0x3e9a34,{scaleX:_0xba300a,scaleY:_0x1503ae}=_0x4159ff[_0x47e880(0x618)](),{domX:_0x1768ce,domY:_0x259d4f}=calcBestDOMPositionForFreezeZones(_0x103c9f,_0x59ab25,_0x4159ff,_0x34ed85);return{'left':_0x1768ce,'top':_0x259d4f,'width':_0x829c11*_0xba300a,'height':_0x178e9d*_0x1503ae,'angle':_0x2a340a,'scaleX':_0xba300a,'scaleY':_0x1503ae};}function useShapePosition(_0xa923ee){const _0x51dc72=_0x3e9a34,{editingParams:_0x4d6818,scene:_0x50f481,skeleton:_0x4fc86c,getShapeTransform:_0x487776}=_0xa923ee,[_0x7e2587,_0x5bd04f]=(0x0,react['useState'])(DEFAULT_HIDDEN_POSITION),_0x5a255a=(0x0,react[_0x51dc72(0x2ec)])(_0x7e2587);_0x5a255a[_0x51dc72(0x419)]=_0x7e2587;const _0x4c164f=(0x0,react[_0x51dc72(0x51f)])(()=>{const _0x46bb2f=_0x51dc72;if(!_0x4d6818||!_0x50f481||!_0x4fc86c){if(_0x5a255a[_0x46bb2f(0x419)]!==DEFAULT_HIDDEN_POSITION)_0x5bd04f(DEFAULT_HIDDEN_POSITION);return;}const _0x5a5c7e=_0x487776();if(!_0x5a5c7e){if(_0x5a255a['current']!==DEFAULT_HIDDEN_POSITION)_0x5bd04f(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x4f4c5d,top:_0x523362,width:_0x57bf0e,height:_0x2fb942,angle:_0xf82a96}=_0x5a5c7e;if(!_0x4d6818[_0x46bb2f(0x576)]){const {scaleX:_0x335531,scaleY:_0x24fbf5}=_0x50f481[_0x46bb2f(0x618)]();_0x5bd04f({'left':-0x270f,'top':-0x270f,'width':_0x57bf0e*_0x335531,'height':_0x2fb942*_0x24fbf5,'angle':0x0,'scaleX':_0x335531,'scaleY':_0x24fbf5});return;}_0x5bd04f(calcShapePosition(_0x4f4c5d,_0x523362,_0x57bf0e,_0x2fb942,_0xf82a96,_0x50f481,_0x4fc86c));},[_0x4d6818,_0x50f481,_0x4fc86c,_0x487776]);return(0x0,react['useEffect'])(()=>{_0x4c164f();},[_0x4d6818,_0x4c164f]),{'position':_0x7e2587,'updatePosition':_0x4c164f};}const ShapePositionWrapper=(0x0,react[_0x3e9a34(0x489)])(_0xb62a7c=>{const _0x432c4c=_0x3e9a34,{children:_0x2f996f,onPositionUpdate:_0x2e7f7d}=_0xb62a7c,_0x2a367b=(0x0,react['useRef'])(null),_0x180f72=(0x0,_univerjs_ui[_0x432c4c(0x663)])(ShapeTextEditingService),_0x4d291f=(0x0,_univerjs_ui[_0x432c4c(0x663)])(_univerjs_engine_render[_0x432c4c(0x35e)]),_0x272f32=(0x0,_univerjs_ui[_0x432c4c(0x601)])(_0x180f72[_0x432c4c(0x186)]),_0x5c9099=(0x0,react[_0x432c4c(0x336)])(()=>{const _0x228910=_0x432c4c;if(!_0x272f32)return null;return _0x4d291f['getRenderById'](_0x272f32[_0x228910(0x4a8)]);},[_0x272f32,_0x4d291f]),_0x203233=(0x0,react['useMemo'])(()=>{const _0x1504fc=_0x432c4c;var _0x34311a;return(_0x34311a=_0x5c9099===null||_0x5c9099===void 0x0?void 0x0:_0x5c9099[_0x1504fc(0x2a4)])!==null&&_0x34311a!==void 0x0?_0x34311a:null;},[_0x5c9099]),{position:_0x20e010,updatePosition:_0x3ef9ec}=useShapePosition({'editingParams':_0x272f32,'scene':_0x203233,'skeleton':(0x0,react[_0x432c4c(0x336)])(()=>{const _0x39ba58=_0x432c4c;var _0x346ab3,_0x3d0519;if(!_0x272f32||!_0x5c9099)return null;return(_0x346ab3=(_0x3d0519=_0x5c9099[_0x39ba58(0x1cf)](_univerjs_sheets_ui[_0x39ba58(0x412)])[_0x39ba58(0x2d6)](_0x272f32['subUnitId']))===null||_0x3d0519===void 0x0?void 0x0:_0x3d0519['skeleton'])!==null&&_0x346ab3!==void 0x0?_0x346ab3:null;},[_0x272f32,_0x5c9099]),'getShapeTransform':(0x0,react['useCallback'])(()=>{const _0x184b0d=_0x432c4c;if(!_0x272f32||!_0x203233)return null;const _0x4cc45c=_0x272f32[_0x184b0d(0x50b)],_0x1eb7a4=_0x203233[_0x184b0d(0x3c3)](_0x4cc45c);if(_0x1eb7a4 instanceof DrawingShape)return{'left':_0x1eb7a4[_0x184b0d(0xe1)],'top':_0x1eb7a4['top'],'width':_0x1eb7a4[_0x184b0d(0x183)],'height':_0x1eb7a4[_0x184b0d(0x37b)],'angle':_0x1eb7a4['angle']};return null;},[_0x272f32,_0x203233])}),_0x27ba80=(0x0,react[_0x432c4c(0x51f)])(()=>{const _0x282e44=_0x432c4c,_0x2d6de5=_0x2a367b[_0x282e44(0x419)];if(!_0x2d6de5)return;_0x2d6de5[_0x282e44(0x18f)]['left']=_0x20e010[_0x282e44(0xe1)]+'px',_0x2d6de5[_0x282e44(0x18f)][_0x282e44(0x156)]=_0x20e010[_0x282e44(0x156)]+'px',_0x2d6de5[_0x282e44(0x18f)][_0x282e44(0x183)]=_0x20e010[_0x282e44(0x183)]+'px',_0x2d6de5[_0x282e44(0x18f)]['height']=_0x20e010[_0x282e44(0x37b)]+'px';},[_0x20e010]);return(0x0,react[_0x432c4c(0x11f)])(()=>{const _0x5ca7c6=_0x432c4c;_0x27ba80(),_0x2e7f7d===null||_0x2e7f7d===void 0x0||_0x2e7f7d({'width':_0x20e010['width'],'height':_0x20e010[_0x5ca7c6(0x37b)],'scaleX':_0x20e010['scaleX'],'scaleY':_0x20e010[_0x5ca7c6(0x1b6)]});},[_0x20e010,_0x27ba80,_0x2e7f7d]),(0x0,react['useEffect'])(()=>{const _0x5e2481=_0x432c4c;if(!_0x203233)return;const _0x2e24e3=_0x203233[_0x5e2481(0x42a)](_univerjs_engine_render[_0x5e2481(0x5c9)][_0x5e2481(0x208)]);if(!_0x2e24e3)return;const _0x48ee18=_0x2e24e3[_0x5e2481(0x511)][_0x5e2481(0x345)](()=>{_0x3ef9ec();});return()=>{_0x48ee18['unsubscribe']();};},[_0x203233,_0x3ef9ec]),(0x0,react[_0x432c4c(0x11f)])(()=>{const _0x4a707d=_0x432c4c;if(!_0x272f32||!_0x203233)return;const _0x1bbb77=_0x272f32['shapeKey'],_0x56160a=_0x203233['getObject'](_0x1bbb77);if(_0x56160a instanceof DrawingShape){const _0x20142e=_0x56160a[_0x4a707d(0x293)][_0x4a707d(0x345)](()=>{_0x3ef9ec();});return()=>{const _0x28e93f=_0x4a707d;_0x20142e[_0x28e93f(0x54e)]();};}},[_0x272f32,_0x203233,_0x3ef9ec]),(0x0,react_jsx_runtime['jsx'])(_0x432c4c(0x418),{'ref':_0x2a367b,'data-u-comp':_0x432c4c(0x194),'className':_0x432c4c(0x416),'style':(0x0,react['useMemo'])(()=>({'left':_0x20e010['left'],'top':_0x20e010[_0x432c4c(0x156)],'width':_0x20e010['width'],'height':_0x20e010[_0x432c4c(0x37b)],'pointerEvents':(_0x272f32===null||_0x272f32===void 0x0?void 0x0:_0x272f32[_0x432c4c(0x576)])?_0x432c4c(0x4fa):_0x432c4c(0x3e4)}),[_0x20e010,_0x272f32===null||_0x272f32===void 0x0?void 0x0:_0x272f32[_0x432c4c(0x576)]]),'children':_0x2f996f});});ShapePositionWrapper[_0x3e9a34(0x42e)]='ShapePositionWrapper';const ShapeTextEditorContainer=(0x0,react[_0x3e9a34(0x489)])(()=>{const _0x4370b6=_0x3e9a34,_0x12a5e3=(0x0,_univerjs_ui[_0x4370b6(0x601)])((0x0,_univerjs_ui[_0x4370b6(0x663)])(ShapeTextEditingService)[_0x4370b6(0x186)]),[_0x5df64c,_0xe485d]=(0x0,react[_0x4370b6(0x5a1)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x424a15=(0x0,react[_0x4370b6(0x51f)])(_0x4973f8=>{const _0x357066=_0x4370b6;_0xe485d({'width':_0x4973f8[_0x357066(0x183)],'height':_0x4973f8['height'],'scaleX':_0x4973f8[_0x357066(0x646)],'scaleY':_0x4973f8[_0x357066(0x1b6)]});},[]);if(!(_0x12a5e3===null||_0x12a5e3===void 0x0?void 0x0:_0x12a5e3[_0x4370b6(0x576)]))return null;return(0x0,react_jsx_runtime[_0x4370b6(0x64f)])(ShapePositionWrapper,{'onPositionUpdate':_0x424a15,'children':(0x0,react_jsx_runtime[_0x4370b6(0x64f)])(ShapeEditor,{'containerWidth':_0x5df64c[_0x4370b6(0x183)],'containerHeight':_0x5df64c[_0x4370b6(0x37b)],'scaleX':_0x5df64c[_0x4370b6(0x646)],'scaleY':_0x5df64c['scaleY']})});});ShapeTextEditorContainer[_0x3e9a34(0x42e)]='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0x3e9a34(0xed)]{constructor(_0x50608c=defaultPluginConfig,_0x44780f,_0x49321f,_0x307343,_0x1643fd){const _0x4d396c=_0x3e9a34;super(),this['_config']=_0x50608c,this[_0x4d396c(0x413)]=_0x44780f,this[_0x4d396c(0x363)]=_0x49321f,this['_configService']=_0x307343,this[_0x4d396c(0x5cb)]=_0x1643fd;const {..._0x3b0b6b}=(0x0,_univerjs_core[_0x4d396c(0x5e3)])({},defaultPluginConfig,this['_config']);this['_configService']['setConfig'](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x3b0b6b),this[_0x4d396c(0x666)]();}[_0x3e9a34(0x2c7)](){const _0x1b2210=_0x3e9a34;(0x0,_univerjs_core[_0x1b2210(0x5d1)])(this['_injector'],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}['onReady'](){const _0x53915a=_0x3e9a34;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x53915a(0x289)](_0x3c98e6=>this[_0x53915a(0x413)]['add'](_0x3c98e6)),(0x0,_univerjs_core['touchDependencies'])(this['_injector'],[[SheetShapeClipboardController]]),this['_renderManagerService'][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[SheetBasicShapeConnectionPointController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[SheetShapeAdjustController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[ImageClipAdjustController]),this['_renderManagerService'][_0x53915a(0x458)](_univerjs_core[_0x53915a(0x4cd)][_0x53915a(0x58b)],[SheetShapeConnectorController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core[_0x53915a(0x4cd)][_0x53915a(0x58b)],[ShapeTextEditingRenderController]);}[_0x3e9a34(0x25d)](){const _0x3d8a43=_0x3e9a34,_0x3dac2a=this['_injector'];_0x3dac2a[_0x3d8a43(0x2d9)](_univerjs_ui['ComponentManager'])[_0x3d8a43(0x405)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x3d8a43(0x289)](_0x3ff827=>_0x3dac2a[_0x3d8a43(0x30e)](_0x3ff827)),(0x0,_univerjs_core[_0x3d8a43(0x5d1)])(this[_0x3d8a43(0x413)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x3e9a34(0x666)](){const _0x2f8c25=_0x3e9a34;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x2f8c25(0x289)](_0x1cce62=>this[_0x2f8c25(0x58e)](this[_0x2f8c25(0x363)][_0x2f8c25(0x62b)](_0x1cce62)));}};_defineProperty(UniverSheetsShapeUIPlugin,_0x3e9a34(0x142),_univerjs_core[_0x3e9a34(0x4cd)][_0x3e9a34(0x58b)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x3e9a34(0x226),_0x3e9a34(0x2b2)),_defineProperty(UniverSheetsShapeUIPlugin,'packageName',name),_defineProperty(UniverSheetsShapeUIPlugin,'version',version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x3e9a34(0x538)])(_univerjs_sheets_drawing_ui[_0x3e9a34(0x1e4)],_univerjs_pro_sheets_shape[_0x3e9a34(0x288)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x150)]),__decorateParam(0x4,_univerjs_engine_render[_0x3e9a34(0x35e)])],UniverSheetsShapeUIPlugin),exports['SetShapeTextFontSizeCommand']=SetShapeTextFontSizeCommand,exports[_0x3e9a34(0x406)]=SetShapeTextFontSizeDecreaseCommand,exports[_0x3e9a34(0x60d)]=SetShapeTextFontSizeIncreaseCommand,exports[_0x3e9a34(0x522)]=SetShapeTextHorizontalAlignCommand,exports[_0x3e9a34(0x374)]=SetShapeTextVerticalAlignCommand,exports[_0x3e9a34(0x323)]=ShapeDocAlignCommand,Object[_0x3e9a34(0x63c)](exports,'SheetsShapeUIController',{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object[_0x3e9a34(0x63c)](exports,_0x3e9a34(0x19f),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x3e9a34(0x355)]=UpdateShapeDataCommand;
|