@univerjs-pro/sheets-shape-ui 0.22.1 → 0.23.0-insiders.20260522-e8f2a3b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/sheet-shape-connector.controller.d.ts +1 -1
- package/lib/types/index.d.ts +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 +19 -19
- /package/lib/types/commands/command/{update-shape-data-command.d.ts → update-shape-data.command.d.ts} +0 -0
- /package/lib/types/controllers/{sheet-shape-adjust-controller.d.ts → sheet-shape-adjust.controller.d.ts} +0 -0
- /package/lib/types/views/shape-text-editor/{position-wrapper.d.ts → ShapePositionWrapper.d.ts} +0 -0
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x35ea10=_0x33ec;(function(_0x1067d5,_0x5ae8c5){const _0x149fe8=_0x33ec,_0x245831=_0x1067d5();while(!![]){try{const _0x29a20f=parseInt(_0x149fe8(0x287))/0x1+parseInt(_0x149fe8(0x67a))/0x2+parseInt(_0x149fe8(0x3a4))/0x3*(-parseInt(_0x149fe8(0x4b6))/0x4)+parseInt(_0x149fe8(0x4d7))/0x5+parseInt(_0x149fe8(0x4e5))/0x6+parseInt(_0x149fe8(0x684))/0x7*(-parseInt(_0x149fe8(0x21c))/0x8)+parseInt(_0x149fe8(0x2d6))/0x9;if(_0x29a20f===_0x5ae8c5)break;else _0x245831['push'](_0x245831['shift']());}catch(_0x3ae782){_0x245831['push'](_0x245831['shift']());}}}(_0x2590,0x44a71));import{InsertShapeCommand,InsertSheetsShapeMutation,RemoveSheetsShapeMutation,SetShapeDrawingDataCommand,SetSheetsShapeRotateCommand,SetSheetsShapeTextVerticalToggleCommand,SheetsShapeService,ToggleSheetsShapeFlipCommand,UniverSheetsShapePlugin,UpdateConnectorRelationCommand,UpdateLineShapeResizeCommand,UpdateSheetsShapeDataMutation}from'@univerjs-pro/sheets-shape';import{CommandType,DependentOn,Disposable,DocumentDataModel,DrawingTypeEnum,FOCUSING_COMMON_DRAWINGS,FOCUSING_PANEL_EDITOR,FOCUSING_SHAPE_TEXT_EDITOR,HorizontalAlign,ICommandService,IConfigService,IContextService,IURLImageService,IUndoRedoService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,ThemeService,Tools,UniverInstanceType,VerticalAlign,WrapStrategy,createInternalEditorID,generateRandomId,merge,toDisposable,touchDependencies}from'@univerjs/core';import{CopySheetCommand,RemoveSheetCommand,SheetInterceptorService,SheetPermissionCheckController,SheetSkeletonService,SheetsSelectionsService,WorkbookEditablePermission,WorksheetEditPermission,attachRangeWithCoord,discreteRangeToRange,getSheetCommandTarget}from'@univerjs/sheets';import{DrawingApplyType,ISheetDrawingService,RemoveSheetDrawingCommand,SetDrawingApplyMutation,transformToDrawingPosition}from'@univerjs/sheets-drawing';import{BehaviorSubject,EMPTY,Observable,map,of,startWith,switchMap}from'rxjs';import{IDrawingManagerService,IImageIoService,getDrawingShapeKeyByDrawingSearch,getImageSize}from'@univerjs/drawing';import{CURSOR_TYPE,Circle,DRAWING_OBJECT_LAYER_INDEX,DocumentSkeleton,DocumentViewModel,Documents,IRenderManagerService,Image,RENDER_CLASS_TYPE,SHEET_VIEWPORT_KEY,Shape,Transform,VERTICAL_ROTATE_ANGLE,Vector2}from'@univerjs/engine-render';import{AlignOperationCommand,BreakLineCommand,IEditorService,ResetInlineFormatTextBackgroundColorCommand,SetInlineFormatTextBackgroundColorCommand,useEditor,useIsFocusing,useKeyboardEvent,useLeftAndRightArrow}from'@univerjs/docs-ui';import{MoreDownIcon,PaintBucketDoubleIcon,ShapeAccentBorderCallout1Icon,ShapeAccentBorderCallout2Icon,ShapeAccentBorderCallout3Icon,ShapeAccentCallout1Icon,ShapeAccentCallout2Icon,ShapeAccentCallout3Icon,ShapeActionButtonBackPreviousIcon,ShapeActionButtonBeginningIcon,ShapeActionButtonBlankIcon,ShapeActionButtonDocumentIcon,ShapeActionButtonEndIcon,ShapeActionButtonForwardNextIcon,ShapeActionButtonHelpIcon,ShapeActionButtonHomeIcon,ShapeActionButtonInformationIcon,ShapeActionButtonMovieIcon,ShapeActionButtonReturnIcon,ShapeActionButtonSoundIcon,ShapeArcIcon,ShapeBentArrowIcon,ShapeBentConnector3Arrow1Icon,ShapeBentConnector3Arrow2Icon,ShapeBentConnector3Icon,ShapeBentUpArrowIcon,ShapeBevelIcon,ShapeBlockArcIcon,ShapeBorderCallout1Icon,ShapeBorderCallout2Icon,ShapeBorderCallout3Icon,ShapeBracePairIcon,ShapeBracketPairIcon,ShapeCallout1Icon,ShapeCallout2Icon,ShapeCallout3Icon,ShapeCanIcon,ShapeChartPlusIcon,ShapeChartStarIcon,ShapeChartXIcon,ShapeChevronIcon,ShapeChordIcon,ShapeCircularArrowIcon,ShapeCloudCalloutIcon,ShapeCloudIcon,ShapeCornerIcon,ShapeCornerTabsIcon,ShapeCubeIcon,ShapeCurvedConnector3Arrow1Icon,ShapeCurvedConnector3Arrow2Icon,ShapeCurvedConnector3Icon,ShapeCurvedDownArrowIcon,ShapeCurvedLeftArrowIcon,ShapeCurvedRightArrowIcon,ShapeCurvedUpArrowIcon,ShapeDecagonIcon,ShapeDiagStripeIcon,ShapeDiamondIcon,ShapeDodecagonIcon,ShapeDonutIcon,ShapeDoubleWaveIcon,ShapeDownArrowCalloutIcon,ShapeDownArrowIcon,ShapeEllipseIcon,ShapeEllipseRibbon2Icon,ShapeEllipseRibbonIcon,ShapeFlowChartAlternateProcessIcon,ShapeFlowChartCollateIcon,ShapeFlowChartConnectorIcon,ShapeFlowChartDecisionIcon,ShapeFlowChartDelayIcon,ShapeFlowChartDisplayIcon,ShapeFlowChartDocumentIcon,ShapeFlowChartExtractIcon,ShapeFlowChartInputOutputIcon,ShapeFlowChartInternalStorageIcon,ShapeFlowChartMagneticDiskIcon,ShapeFlowChartMagneticDrumIcon,ShapeFlowChartMagneticTapeIcon,ShapeFlowChartManualInputIcon,ShapeFlowChartManualOperationIcon,ShapeFlowChartMergeIcon,ShapeFlowChartMultidocumentIcon,ShapeFlowChartOfflineStorageIcon,ShapeFlowChartOffpageConnectorIcon,ShapeFlowChartOnlineStorageIcon,ShapeFlowChartOrIcon,ShapeFlowChartPredefinedProcessIcon,ShapeFlowChartPreparationIcon,ShapeFlowChartProcessIcon,ShapeFlowChartPunchedCardIcon,ShapeFlowChartPunchedTapeIcon,ShapeFlowChartSortIcon,ShapeFlowChartSummingJunctionIcon,ShapeFlowChartTerminatorIcon,ShapeFolderCornerIcon,ShapeFrameIcon,ShapeFunnelIcon,ShapeGear6Icon,ShapeGear9Icon,ShapeHalfFrameIcon,ShapeHeartIcon,ShapeHeptagonIcon,ShapeHexagonIcon,ShapeHomePlateIcon,ShapeHorizontalScrollIcon,ShapeIcon,ShapeIrregularSeal1Icon,ShapeIrregularSeal2Icon,ShapeLeftArrowCalloutIcon,ShapeLeftArrowIcon,ShapeLeftBraceIcon,ShapeLeftBracketIcon,ShapeLeftCircularArrowIcon,ShapeLeftRightArrowCalloutIcon,ShapeLeftRightArrowIcon,ShapeLeftRightCircularArrowIcon,ShapeLeftRightRibbonIcon,ShapeLeftRightUpArrowIcon,ShapeLeftUpArrowIcon,ShapeLightningBoltIcon,ShapeLineIcon,ShapeLineInvIcon,ShapeMathDivideIcon,ShapeMathEqualIcon,ShapeMathMinusIcon,ShapeMathMultiplyIcon,ShapeMathNotEqualIcon,ShapeMathPlusIcon,ShapeMoonIcon,ShapeNoSmokingIcon,ShapeNonIsoscelesTrapezoidIcon,ShapeNotchedRightArrowIcon,ShapeOctagonIcon,ShapeParallelogramIcon,ShapePentagonIcon,ShapePieIcon,ShapePieWedgeIcon,ShapePlaqueIcon,ShapePlaqueTabsIcon,ShapePlusIcon,ShapeQuadArrowCalloutIcon,ShapeQuadArrowIcon,ShapeRectIcon,ShapeRectTextboxHorizontalIcon,ShapeRectTextboxVerticalIcon,ShapeRibbon2Icon,ShapeRibbonIcon,ShapeRightArrowCalloutIcon,ShapeRightArrowIcon,ShapeRightBraceIcon,ShapeRightBracketIcon,ShapeRound1RectIcon,ShapeRound2DiagRectIcon,ShapeRound2SameRectIcon,ShapeRoundRectIcon,ShapeRtTriangleIcon,ShapeSmileyFaceIcon,ShapeSnip1RectIcon,ShapeSnip2DiagRectIcon,ShapeSnip2SameRectIcon,ShapeSnipRoundRectIcon,ShapeSquareTabsIcon,ShapeStar10Icon,ShapeStar12Icon,ShapeStar16Icon,ShapeStar24Icon,ShapeStar32Icon,ShapeStar4Icon,ShapeStar5Icon,ShapeStar6Icon,ShapeStar7Icon,ShapeStar8Icon,ShapeStraightConnector1Icon,ShapeStraightConnector2Icon,ShapeStripedRightArrowIcon,ShapeSunIcon,ShapeSwooshArrowIcon,ShapeTeardropIcon,ShapeTrapezoidIcon,ShapeTriangleIcon,ShapeUpArrowCalloutIcon,ShapeUpArrowIcon,ShapeUpDownArrowCalloutIcon,ShapeUpDownArrowIcon,ShapeUturnArrowIcon,ShapeVerticalScrollIcon,ShapeWaveIcon,ShapeWedgeEllipseCalloutIcon,ShapeWedgeRectCalloutIcon,ShapeWedgeRoundRectCalloutIcon}from'@univerjs/icons';import{COPY_TYPE,ISheetClipboardService,PREDEFINED_HOOK_NAME,SheetCanvasPopManagerService,SheetScrollManagerService,SheetSkeletonManagerService,deriveStateFromActiveSheet$,getCurrentRangeDisable$,getViewportByCell}from'@univerjs/sheets-ui';import{COLOR_PICKER_COMPONENT,ComponentManager,IMenuManagerService,ISidebarService,KeyCode,MenuItemType,RibbonInsertGroup,RibbonPosition,RibbonStartGroup,getMenuHiddenObservable,useDependency,useObservable}from'@univerjs/ui';import{ConnectorCoordinateTransform,ImageFillModeEnum,ImageSourceTypeEnum,ShapeArrowSizeEnum,ShapeArrowTypeEnum,ShapeDefaultConfig,ShapeFillEnum,ShapeGradientTypeEnum,ShapeLineCapEnum,ShapeLineDashEnum,ShapeLineJoinEnum,ShapeLineTypeEnum,ShapeModel,ShapeRenderModeEnum,ShapeSketchTypeEnum,ShapeTypeEnum,computeConnectorRouteLayout,getBasicShapeRotateBound,isConnectorShape,isCurvedConnectorShape,routeConnectorLineShape}from'@univerjs-pro/engine-shape';import{Accordion,Button,Checkbox,ColorPicker,Dropdown,GradientColorPicker,InputNumber,Radio,RadioGroup,Select,clsx}from'@univerjs/design';import{memo,useCallback,useEffect,useMemo,useRef,useState}from'react';import{DrawingCommonPanel,DrawingImageClipService,DrawingRenderService,IMAGE_CLIP_SHAPE_PICKER_COMPONENT,getCurrentUnitInfo,insertGroupObject}from'@univerjs/drawing-ui';import{Fragment,jsx,jsxs}from'react/jsx-runtime';import{SheetDrawingAnchor,SheetsDrawingGroupCopyPasteController,UniverSheetsDrawingUIPlugin}from'@univerjs/sheets-drawing-ui';import{DocSkeletonManagerService,RichTextEditingMutation}from'@univerjs/docs';function _typeof(_0x54b969){'@babel/helpers - typeof';const _0x5e5bd8=_0x33ec;return _typeof=_0x5e5bd8(0x462)==typeof Symbol&&_0x5e5bd8(0x30a)==typeof Symbol['iterator']?function(_0x3e7b55){return typeof _0x3e7b55;}:function(_0x2514e5){const _0x24e0ae=_0x5e5bd8;return _0x2514e5&&'function'==typeof Symbol&&_0x2514e5[_0x24e0ae(0x344)]===Symbol&&_0x2514e5!==Symbol[_0x24e0ae(0x33d)]?_0x24e0ae(0x30a):typeof _0x2514e5;},_typeof(_0x54b969);}function toPrimitive(_0x3258e0,_0x3ee2ab){const _0x1893c8=_0x33ec;if(_0x1893c8(0x542)!=_typeof(_0x3258e0)||!_0x3258e0)return _0x3258e0;var _0x877528=_0x3258e0[Symbol[_0x1893c8(0x40a)]];if(void 0x0!==_0x877528){var _0x3295be=_0x877528[_0x1893c8(0x339)](_0x3258e0,_0x3ee2ab||_0x1893c8(0x475));if(_0x1893c8(0x542)!=_typeof(_0x3295be))return _0x3295be;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1893c8(0x2c9)===_0x3ee2ab?String:Number)(_0x3258e0);}function toPropertyKey(_0x3fc341){var _0x242599=toPrimitive(_0x3fc341,'string');return'symbol'==_typeof(_0x242599)?_0x242599:_0x242599+'';}function _defineProperty(_0x688232,_0x247115,_0x3a1df2){const _0x4b1fb3=_0x33ec;return(_0x247115=toPropertyKey(_0x247115))in _0x688232?Object[_0x4b1fb3(0x39b)](_0x688232,_0x247115,{'value':_0x3a1df2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x688232[_0x247115]=_0x3a1df2,_0x688232;}var ShapeTextEditingService=class extends Disposable{constructor(..._0x5db774){const _0x3d0f1a=_0x33ec;super(..._0x5db774),_defineProperty(this,_0x3d0f1a(0x306),new BehaviorSubject(null)),_defineProperty(this,_0x3d0f1a(0x2d5),this['_editingParams$'][_0x3d0f1a(0x5ef)]()),_defineProperty(this,_0x3d0f1a(0x3d5),new BehaviorSubject(![])),_defineProperty(this,_0x3d0f1a(0x2f8),this['_onSavingEditorData$'][_0x3d0f1a(0x5ef)]());}[_0x35ea10(0x23f)](){const _0x4f803e=_0x35ea10;this[_0x4f803e(0x306)][_0x4f803e(0x654)](null),this[_0x4f803e(0x306)][_0x4f803e(0x62d)](),this['_onSavingEditorData$'][_0x4f803e(0x654)](![]),this[_0x4f803e(0x3d5)]['complete'](),super['dispose']();}[_0x35ea10(0x356)](_0x1959c0){const _0x22ccf0=_0x35ea10;this[_0x22ccf0(0x306)][_0x22ccf0(0x654)](_0x1959c0);if(_0x1959c0===null||_0x1959c0===void 0x0)this[_0x22ccf0(0x3d5)][_0x22ccf0(0x654)](![]);}[_0x35ea10(0x591)](_0x19161c){const _0x1e5e0b=_0x35ea10;this['_onSavingEditorData$'][_0x1e5e0b(0x654)](_0x19161c);}['getEditing'](){const _0x1ef98c=_0x35ea10;return this[_0x1ef98c(0x306)]['getValue']();}};function getShapeDataDiff(_0x2d84cf,_0x578fe1){const _0x4b7bc3=_0x35ea10,_0xaa5b65={};for(const _0x22b62b of Object[_0x4b7bc3(0x586)](_0x578fe1)){const _0x384114=_0x578fe1[_0x22b62b],_0x2ed50e=_0x2d84cf[_0x22b62b];if(_0x384114===void 0x0)continue;if(_0x2ed50e===void 0x0){_0xaa5b65[_0x22b62b]=void 0x0;continue;}if(typeof _0x384114==='object'&&_0x384114!==null&&!Array['isArray'](_0x384114)&&typeof _0x2ed50e===_0x4b7bc3(0x542)&&_0x2ed50e!==null&&!Array[_0x4b7bc3(0x380)](_0x2ed50e))_0xaa5b65[_0x22b62b]=getShapeDataDiff(_0x2ed50e,_0x384114);else _0xaa5b65[_0x22b62b]=_0x2ed50e;}return _0xaa5b65;}const UpdateShapeDataCommand={'type':CommandType['COMMAND'],'id':_0x35ea10(0x55b),'handler':(_0x5f1a7b,_0x13669a)=>{const _0x175d97=_0x35ea10,_0x758ec7=_0x5f1a7b['get'](SheetsShapeService),{unitId:_0x2da9a8,subUnitId:_0x5db2f6,shapeType:_0x5ee66b,shapeId:_0x321d39,shapeData:_0x1456d8,oldShapeJSON:_0x11422e}=_0x13669a;if(!_0x758ec7['getShapeModel'](_0x2da9a8,_0x5db2f6,_0x321d39))return![];const _0x4841ca=_0x5f1a7b[_0x175d97(0x653)](ICommandService),_0x417391=_0x5f1a7b['get'](IUndoRedoService),{oldShapeType:_0x4deb1d,oldShapeData:_0x2d23cb={}}=_0x11422e,_0x4f87c0=getShapeDataDiff(_0x2d23cb,_0x1456d8||{}),_0x3eb57f={'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2da9a8,'subUnitId':_0x5db2f6,'shapeId':_0x321d39,'shapeType':_0x5ee66b,'shapeData':_0x1456d8}},_0x15bb53={'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2da9a8,'subUnitId':_0x5db2f6,'shapeId':_0x321d39,'shapeType':_0x4deb1d,'shapeData':_0x4f87c0}};if(_0x4841ca['syncExecuteCommand'](_0x3eb57f['id'],_0x3eb57f[_0x175d97(0x69d)]))return _0x417391[_0x175d97(0x2b4)]({'unitID':_0x2da9a8,'undoMutations':[_0x15bb53],'redoMutations':[_0x3eb57f]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':CommandType['COMMAND'],'id':_0x35ea10(0x54c),'handler':async(_0x4dd4d3,_0x89bc80)=>{const _0x342e2e=_0x35ea10;var _0x525a48;if(!getSheetCommandTarget(_0x4dd4d3[_0x342e2e(0x653)](IUniverInstanceService)))return![];const _0x46bbd5=_0x4dd4d3[_0x342e2e(0x653)](ISheetDrawingService)[_0x342e2e(0x208)]()['filter'](_0xdd3d34=>_0xdd3d34[_0x342e2e(0x645)]===DrawingTypeEnum[_0x342e2e(0x29f)]);if(_0x46bbd5[_0x342e2e(0x551)]!==0x1)return![];const _0x4cec47=_0x4dd4d3[_0x342e2e(0x653)](ShapeTextEditingService)[_0x342e2e(0x541)](),_0x4896c4=(_0x4cec47===null||_0x4cec47===void 0x0?void 0x0:_0x4cec47[_0x342e2e(0x20a)])||_0x46bbd5[0x0]['unitId'],_0x313c0b=(_0x4cec47===null||_0x4cec47===void 0x0?void 0x0:_0x4cec47['subUnitId'])||_0x46bbd5[0x0]['subUnitId'],_0x1c99d7=(_0x4cec47===null||_0x4cec47===void 0x0?void 0x0:_0x4cec47['shapeId'])||_0x46bbd5[0x0][_0x342e2e(0x2ef)],_0x5a85aa=_0x4dd4d3[_0x342e2e(0x653)](SheetsShapeService)[_0x342e2e(0x5fe)](_0x4896c4,_0x313c0b,_0x1c99d7);if(!_0x5a85aa)return![];const _0x1325c6=_0x5a85aa[_0x342e2e(0x2f0)]();if(!_0x1325c6||!(_0x342e2e(0x2e1)in _0x1325c6))return![];const _0x261b9e=_0x4dd4d3[_0x342e2e(0x653)](ICommandService),{value:_0x4ab860}=_0x89bc80,_0x35abc1=_0x5a85aa[_0x342e2e(0x3ab)](),_0xdb949e=_0x5a85aa[_0x342e2e(0x301)](),_0x5e42af={..._0x1325c6[_0x342e2e(0x2e1)],'ha':_0x4ab860};return await _0x261b9e['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x4896c4,'subUnitId':_0x313c0b,'shapeId':_0x1c99d7,'shapeType':_0x35abc1,'shapeData':{'shapeText':{'isHorizontal':(_0x525a48=_0x1325c6[_0x342e2e(0x5c6)])!==null&&_0x525a48!==void 0x0?_0x525a48:!![],'dataModel':_0x5e42af}},'oldShapeJSON':{'oldShapeType':_0x35abc1,'oldShapeData':_0xdb949e}});}},SetShapeTextFontSizeCommand={'type':CommandType[_0x35ea10(0x2bb)],'id':_0x35ea10(0x631),'handler':async(_0x442dbc,_0x44c2b6)=>{const _0x5c441e=_0x35ea10;var _0x5ca02d;if(!_0x44c2b6)return![];const {value:_0xfb5010}=_0x44c2b6,_0x356f48=_0x442dbc['get'](ICommandService),_0x2af112=_0x442dbc[_0x5c441e(0x653)](ShapeTextEditingService),_0x240563=_0x442dbc[_0x5c441e(0x653)](SheetsShapeService),_0x13a552=_0x442dbc[_0x5c441e(0x653)](IRenderManagerService),_0x1ff5fb=_0x2af112[_0x5c441e(0x541)]();if(!_0x1ff5fb)return![];const {unitId:_0x335b05,subUnitId:_0x48d525,shapeId:_0x4d12c3}=_0x1ff5fb,_0x5ecc84=_0x240563[_0x5c441e(0x5fe)](_0x335b05,_0x48d525,_0x4d12c3);if(!_0x5ecc84)return![];const _0x164748=_0x5ecc84[_0x5c441e(0x2f0)]();if(!_0x164748||!(_0x5c441e(0x2e1)in _0x164748))return![];const _0x49fd04=_0x164748[_0x5c441e(0x2e1)];if(!_0x49fd04)return![];const _0x450792={..._0x49fd04,'fs':_0xfb5010},_0x45a280=await _0x356f48['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x335b05,'subUnitId':_0x48d525,'shapeId':_0x4d12c3,'shapeData':{'shapeText':{'isHorizontal':(_0x5ca02d=_0x164748['isHorizontal'])!==null&&_0x5ca02d!==void 0x0?_0x5ca02d:!![],'dataModel':_0x450792}}});if(_0x45a280){const _0x2c6924=_0x13a552['getRenderById'](_0x335b05);if(_0x2c6924===null||_0x2c6924===void 0x0?void 0x0:_0x2c6924[_0x5c441e(0x552)]){const _0x386b8c=getDrawingShapeKeyByDrawingSearch({'unitId':_0x335b05,'subUnitId':_0x48d525,'drawingId':_0x4d12c3}),_0x360bc8=_0x2c6924[_0x5c441e(0x552)]['getObjectIncludeInGroup'](_0x386b8c);if(_0x360bc8)_0x360bc8[_0x5c441e(0x598)](!![]);}}return _0x45a280;}},SetShapeTextFontSizeIncreaseCommand={'type':CommandType[_0x35ea10(0x2bb)],'id':_0x35ea10(0x433),'handler':async _0x3f549b=>{const _0x294393=_0x35ea10;var _0x176136;const _0x81ed62=_0x3f549b['get'](ShapeTextEditingService),_0x1e75c4=_0x3f549b['get'](SheetsShapeService),_0x34f4af=_0x3f549b[_0x294393(0x653)](ICommandService),_0x47497e=_0x81ed62[_0x294393(0x541)]();if(!_0x47497e)return![];const {unitId:_0x4f6fc4,subUnitId:_0xdc6d7e,shapeId:_0x34795e}=_0x47497e,_0x22f22a=_0x1e75c4['getShapeModel'](_0x4f6fc4,_0xdc6d7e,_0x34795e);if(!_0x22f22a)return![];const _0x186d97=_0x22f22a[_0x294393(0x2f0)]();if(!_0x186d97||!(_0x294393(0x2e1)in _0x186d97))return![];const _0x49b719=_0x186d97[_0x294393(0x2e1)],_0x3521d0=(_0x176136=_0x49b719===null||_0x49b719===void 0x0?void 0x0:_0x49b719['fs'])!==null&&_0x176136!==void 0x0?_0x176136:0xe,_0x282232=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x5eccd1=_0x3521d0;const _0x47d206=_0x282232[_0x294393(0x29e)](_0x3521d0);if(_0x47d206!==-0x1&&_0x47d206<_0x282232[_0x294393(0x551)]-0x1)_0x5eccd1=_0x282232[_0x47d206+0x1];else{if(_0x47d206===-0x1)_0x5eccd1=Math[_0x294393(0x5d3)](_0x3521d0)+0x1;}return _0x34f4af[_0x294393(0x51d)](SetShapeTextFontSizeCommand['id'],{'value':_0x5eccd1});}},SetShapeTextFontSizeDecreaseCommand={'type':CommandType['COMMAND'],'id':_0x35ea10(0x49d),'handler':async _0x1e3e31=>{const _0x339221=_0x35ea10;var _0x432f1a;const _0x4aca3f=_0x1e3e31[_0x339221(0x653)](ShapeTextEditingService),_0x192c91=_0x1e3e31['get'](SheetsShapeService),_0x51bf89=_0x1e3e31[_0x339221(0x653)](ICommandService),_0x1e5f53=_0x4aca3f[_0x339221(0x541)]();if(!_0x1e5f53)return![];const {unitId:_0x379fd2,subUnitId:_0x5efd06,shapeId:_0x18a08a}=_0x1e5f53,_0x56cbc5=_0x192c91[_0x339221(0x5fe)](_0x379fd2,_0x5efd06,_0x18a08a);if(!_0x56cbc5)return![];const _0x2749a0=_0x56cbc5[_0x339221(0x2f0)]();if(!_0x2749a0||!(_0x339221(0x2e1)in _0x2749a0))return![];const _0x401f7b=_0x2749a0['dataModel'],_0x13b823=(_0x432f1a=_0x401f7b===null||_0x401f7b===void 0x0?void 0x0:_0x401f7b['fs'])!==null&&_0x432f1a!==void 0x0?_0x432f1a:0xe,_0x1245a5=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x38ea9e=_0x13b823;const _0x540da7=_0x1245a5[_0x339221(0x29e)](_0x13b823);if(_0x540da7!==-0x1&&_0x540da7>0x0)_0x38ea9e=_0x1245a5[_0x540da7-0x1];else{if(_0x540da7===-0x1)_0x38ea9e=Math[_0x339221(0x5d3)](_0x13b823)-0x1;}if(_0x38ea9e<0x1)_0x38ea9e=0x1;return _0x51bf89[_0x339221(0x51d)](SetShapeTextFontSizeCommand['id'],{'value':_0x38ea9e});}},SetShapeTextVerticalAlignCommand={'type':CommandType[_0x35ea10(0x2bb)],'id':_0x35ea10(0x66f),'handler':async(_0x18165b,_0x373593)=>{const _0x2b085b=_0x35ea10;var _0x3a41e1;if(!getSheetCommandTarget(_0x18165b['get'](IUniverInstanceService)))return![];const _0x4cb7f0=_0x18165b[_0x2b085b(0x653)](ISheetDrawingService)['getFocusDrawings']()[_0x2b085b(0x5e1)](_0x1116e7=>_0x1116e7[_0x2b085b(0x645)]===DrawingTypeEnum['DRAWING_SHAPE']);if(_0x4cb7f0[_0x2b085b(0x551)]!==0x1)return![];const _0x492cad=_0x18165b[_0x2b085b(0x653)](ShapeTextEditingService)[_0x2b085b(0x541)](),_0xe45535=(_0x492cad===null||_0x492cad===void 0x0?void 0x0:_0x492cad[_0x2b085b(0x20a)])||_0x4cb7f0[0x0][_0x2b085b(0x20a)],_0x468496=(_0x492cad===null||_0x492cad===void 0x0?void 0x0:_0x492cad[_0x2b085b(0x529)])||_0x4cb7f0[0x0][_0x2b085b(0x529)],_0x21ecb4=(_0x492cad===null||_0x492cad===void 0x0?void 0x0:_0x492cad[_0x2b085b(0x54e)])||_0x4cb7f0[0x0][_0x2b085b(0x2ef)],_0x5975e1=_0x18165b[_0x2b085b(0x653)](SheetsShapeService)[_0x2b085b(0x5fe)](_0xe45535,_0x468496,_0x21ecb4);if(!_0x5975e1)return![];const _0x33d67d=_0x5975e1[_0x2b085b(0x2f0)]();if(!_0x33d67d||!(_0x2b085b(0x2e1)in _0x33d67d))return![];const _0x3a1c43=_0x18165b[_0x2b085b(0x653)](ICommandService),{value:_0x2260e1}=_0x373593,_0x37e848=_0x5975e1['getShapeType'](),_0x38c013=_0x5975e1[_0x2b085b(0x301)](),_0x23f053={..._0x33d67d['dataModel'],'va':_0x2260e1};return await _0x3a1c43[_0x2b085b(0x51d)](UpdateShapeDataCommand['id'],{'unitId':_0xe45535,'subUnitId':_0x468496,'shapeId':_0x21ecb4,'shapeType':_0x37e848,'shapeData':{'shapeText':{'isHorizontal':(_0x3a41e1=_0x33d67d['isHorizontal'])!==null&&_0x3a41e1!==void 0x0?_0x3a41e1:!![],'dataModel':_0x23f053}},'oldShapeJSON':{'oldShapeType':_0x37e848,'oldShapeData':_0x38c013}});}},ShapeDocAlignCommand={'type':CommandType[_0x35ea10(0x2bb)],'id':_0x35ea10(0x376),'handler':(_0x21ffe3,_0x32386c)=>{if(!_0x32386c)return![];const {value:_0x5e2efd}=_0x32386c;return _0x21ffe3['get'](ICommandService)['syncExecuteCommand'](AlignOperationCommand['id'],{'alignType':_0x5e2efd});}},CloseSheetShapeFormatPanelOperation={'type':CommandType[_0x35ea10(0x64d)],'id':_0x35ea10(0x660),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':CommandType[_0x35ea10(0x64d)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x35ea10(0x685),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=createInternalEditorID(_0x35ea10(0x507)),ShapeTextEditorContainer$1=_0x35ea10(0x5cc);function updateShapeData(_0x141bb5,_0x58527e,_0x5847a7,_0x335593,_0x4e9673,_0xe93c1d){const _0x21441e=_0x35ea10,_0x5eebce={'unitId':_0x58527e,'subUnitId':_0x5847a7,'shapeId':_0x335593,'shapeData':_0xe93c1d,'oldShapeJSON':_0x4e9673};return _0x141bb5[_0x21441e(0x51d)](UpdateShapeDataCommand['id'],_0x5eebce);}function updateLineShapeData(_0x57b77d,_0x2e100a,_0x3bb833,_0x360a2f,_0x27b99e,_0x51c158){const _0x1bbc59=_0x35ea10,_0x261207={'unitId':_0x2e100a,'subUnitId':_0x3bb833,'shapeId':_0x360a2f,'shapeData':_0x51c158,'oldShapeJSON':_0x27b99e};return _0x57b77d[_0x1bbc59(0x51d)](UpdateShapeDataCommand['id'],_0x261207);}function prepareShapeTextDocumentData(_0x1504c3,_0x13b661){const _0x5ad4fd=_0x35ea10;var _0x5651c8;const {isHorizontal:_0x528e06,textRect:_0xf951d6,verticalAlign:_0x49cb38}=_0x13b661,_0x1a51dd=_0x528e06?_0xf951d6['width']:_0xf951d6[_0x5ad4fd(0x372)],_0x539e93=Tools['deepClone'](_0x1504c3),_0x3e06b6=(_0x5651c8=_0x539e93['documentStyle'])!==null&&_0x5651c8!==void 0x0?_0x5651c8:{},_0x4dd776={..._0x3e06b6['renderConfig'],'centerAngle':_0x528e06?0x0:VERTICAL_ROTATE_ANGLE,'vertexAngle':_0x528e06?0x0:VERTICAL_ROTATE_ANGLE,'wrapStrategy':WrapStrategy[_0x5ad4fd(0x688)]};if(_0x49cb38!==void 0x0)_0x4dd776[_0x5ad4fd(0x2ad)]=_0x49cb38;if(_0x13b661[_0x5ad4fd(0x444)]!==void 0x0){var _0x1be1ef;_0x4dd776[_0x5ad4fd(0x444)]=_0x13b661['horizontalAlign'];const _0x113d00=(_0x1be1ef=_0x539e93['body'])===null||_0x1be1ef===void 0x0?void 0x0:_0x1be1ef[_0x5ad4fd(0x5a4)];if(_0x113d00)for(const _0x1e95d5 of _0x113d00){if(!_0x1e95d5[_0x5ad4fd(0x5bb)])_0x1e95d5[_0x5ad4fd(0x5bb)]={};_0x1e95d5[_0x5ad4fd(0x5bb)][_0x5ad4fd(0x444)]=_0x13b661[_0x5ad4fd(0x444)];}}return _0x539e93['documentStyle']={..._0x3e06b6,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x1a51dd,'height':Number[_0x5ad4fd(0x5d7)]},'renderConfig':_0x4dd776},_0x539e93;}function stripShapeTextDocumentLayout(_0x26672c){const _0x1536e1=_0x35ea10;var _0x473838;const _0xff8a24=Tools[_0x1536e1(0x363)](_0x26672c),_0x5f1a7d=(_0x473838=_0xff8a24[_0x1536e1(0x64f)])!==null&&_0x473838!==void 0x0?_0x473838:{},_0x4f42be={..._0x5f1a7d[_0x1536e1(0x3eb)]};return delete _0x4f42be[_0x1536e1(0x490)],delete _0x4f42be[_0x1536e1(0x57f)],delete _0x4f42be[_0x1536e1(0x2ad)],delete _0x4f42be[_0x1536e1(0x416)],_0xff8a24['documentStyle']={..._0x5f1a7d,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x1536e1(0x5d7)],'height':Number[_0x1536e1(0x5d7)]},'renderConfig':Object[_0x1536e1(0x586)](_0x4f42be)[_0x1536e1(0x551)]>0x0?_0x4f42be:void 0x0},_0xff8a24;}var DrawingShape=class extends Shape{constructor(_0x523179,_0x7d6cbd){const _0x4e3e21=_0x35ea10;super(_0x523179,_0x7d6cbd),_defineProperty(this,_0x4e3e21(0x40d),void 0x0),_defineProperty(this,_0x4e3e21(0x42d),!![]),_defineProperty(this,'_drawingType',DrawingTypeEnum[_0x4e3e21(0x29f)]),_defineProperty(this,_0x4e3e21(0x36a),!![]),this[_0x4e3e21(0x40d)]={..._0x7d6cbd},this[_0x4e3e21(0x3cb)]();}[_0x35ea10(0x3cb)](){const _0x48188b=_0x35ea10;this[_0x48188b(0x386)][_0x48188b(0x1f9)](_0x242fa0=>{this['_updateSrcRectByTransform'](_0x242fa0);});}[_0x35ea10(0x3dd)](_0x152c69){const _0x2c09d8=_0x35ea10;this[_0x2c09d8(0x40d)][_0x2c09d8(0x399)]=_0x152c69;}[_0x35ea10(0x356)](_0x19bff4){const _0x12a9fe=_0x35ea10;this[_0x12a9fe(0x40d)][_0x12a9fe(0x25a)]=_0x19bff4,this[_0x12a9fe(0x598)](!![]);}get[_0x35ea10(0x20a)](){const _0x1d306e=_0x35ea10;return this[_0x1d306e(0x40d)][_0x1d306e(0x20a)];}get[_0x35ea10(0x529)](){const _0x3d27c4=_0x35ea10;return this[_0x3d27c4(0x40d)]['subUnitId'];}['_updateSrcRectByTransform'](_0x24b6e7){const _0x4f4aa3=_0x35ea10;if(this['_props'][_0x4f4aa3(0x35d)]==null||!this['_transformCalculateSrcRect'])return;const {width:_0x31a3fc,height:_0x51f9e8}=this,{width:_0x5188d6=0x0,height:_0x2c81a5=0x0}=_0x24b6e7[_0x4f4aa3(0x291)],{left:_0x2f05de=0x0,top:_0x404c81=0x0,right:_0x4f9f99=0x0,bottom:_0x10d8df=0x0}=this[_0x4f4aa3(0x40d)][_0x4f4aa3(0x35d)];let _0x4a79cd=_0x2f05de,_0x3819dd=_0x404c81,_0x2d0d3e=_0x4f9f99,_0x38ec55=_0x10d8df,_0x545167=![];if(_0x5188d6!==0x0&&_0x5188d6!==_0x31a3fc){const _0x5e1792=_0x2f05de/_0x5188d6,_0x3d1626=_0x4f9f99/_0x5188d6;_0x4a79cd=_0x31a3fc*_0x5e1792,_0x2d0d3e=_0x31a3fc*_0x3d1626,_0x545167=!![];}if(_0x2c81a5!==0x0&&_0x2c81a5!==_0x51f9e8){const _0x492c8b=_0x404c81/_0x2c81a5,_0x385e06=_0x10d8df/_0x2c81a5;_0x3819dd=_0x51f9e8*_0x492c8b,_0x38ec55=_0x51f9e8*_0x385e06,_0x545167=!![];}if(_0x545167)this[_0x4f4aa3(0x31d)]({'left':_0x4a79cd,'top':_0x3819dd,'right':_0x2d0d3e,'bottom':_0x38ec55});}['setSrcRect'](_0x490fc1){const _0x332bb1=_0x35ea10;this[_0x332bb1(0x40d)][_0x332bb1(0x35d)]=_0x490fc1,this['makeDirty'](!![]);}[_0x35ea10(0x61e)](_0x190eb1){const _0x42f5bc=_0x35ea10;this['_props']['image']=_0x190eb1,this[_0x42f5bc(0x598)](!![]);}set['transform'](_0x150f32){const _0x253a5c=_0x35ea10;this[_0x253a5c(0x4bc)]=_0x150f32;}get['transform'](){const _0x24f275=_0x35ea10;if(!this[_0x24f275(0x4bc)])this[_0x24f275(0x607)]();const _0x1e772c=this[_0x24f275(0x4bc)][_0x24f275(0x259)]();return this[_0x24f275(0x53f)](_0x1e772c);}get['shapeModel'](){const _0x4b7714=_0x35ea10;return this[_0x4b7714(0x40d)][_0x4b7714(0x4c6)];}get['shapeId'](){const _0x47da0a=_0x35ea10;return this[_0x47da0a(0x40d)][_0x47da0a(0x54e)];}get[_0x35ea10(0x2a0)](){const _0x425e27=_0x35ea10;return RENDER_CLASS_TYPE[_0x425e27(0x5ae)];}[_0x35ea10(0x331)](_0x2875f2,_0x58cda4,_0x69c5d7,_0x5c16e0){const _0x21056a=_0x35ea10,_0x3cbd67=this[_0x21056a(0x40d)][_0x21056a(0x4c6)];if(!_0x3cbd67||!_0x58cda4)return;const _0x23b178=_0x69c5d7!==null&&_0x69c5d7!==void 0x0?_0x69c5d7:this['width'],_0x4d098f=_0x5c16e0!==null&&_0x5c16e0!==void 0x0?_0x5c16e0:this['height'],_0x509443={'shapeType':_0x3cbd67[_0x21056a(0x3ab)](),'width':_0x23b178,'height':_0x4d098f},_0x30d49a={'renderMode':ShapeRenderModeEnum[_0x21056a(0x50e)],'oKey':this[_0x21056a(0x405)],'image':this[_0x21056a(0x40d)][_0x21056a(0x67b)],'angle':this['angle']};_0x3cbd67[_0x21056a(0x522)](_0x509443),_0x2875f2[_0x21056a(0x4d8)]();const _0x3847f8={'top':0x0,'left':0x0,'width':_0x23b178,'height':_0x4d098f};_0x3cbd67['render'](_0x2875f2,_0x3847f8,_0x30d49a),_0x2875f2['restore']();const _0x1bcc15=_0x3cbd67['getShapeTextData'](),_0x1437d8=_0x3cbd67['getShapeTextRect'](_0x3847f8),_0x3a5746=_0x3cbd67[_0x21056a(0x24b)]();if(_0x1bcc15&&_0x1437d8&&!_0x3a5746){_0x2875f2[_0x21056a(0x4d8)]();if(this[_0x21056a(0x1f6)]()['flipX'])_0x2875f2[_0x21056a(0x310)](-0x1,0x1);const _0x4b6a82=_0x23b178/0x2,_0x483708=_0x4d098f/0x2;_0x2875f2[_0x21056a(0x311)](-_0x4b6a82,-_0x483708),_0x2875f2[_0x21056a(0x49a)](),this[_0x21056a(0x517)](_0x2875f2,_0x1bcc15,_0x1437d8),_0x2875f2[_0x21056a(0x680)]();}}[_0x35ea10(0x274)](_0x36969a){}[_0x35ea10(0x517)](_0x28c8e2,_0x15d2d6,_0x254574){const _0xb48476=_0x35ea10;if(this[_0xb48476(0x40d)]['isEditing'])return;if(_0xb48476(0x5a7)in _0x15d2d6&&_0x15d2d6['isRichText']===![])this[_0xb48476(0x2a7)](_0x28c8e2,_0x15d2d6,_0x254574);else this[_0xb48476(0x56b)](_0x28c8e2,_0x15d2d6,_0x254574);}[_0x35ea10(0x2a7)](_0x2e8d51,_0x59cf20,_0x48de31){}['_drawRichText'](_0x2394b3,_0x59c391,_0x4e860c){const _0x513d8f=_0x35ea10;var _0x2ed3f2,_0x7db756;const _0x2d2bed=this[_0x513d8f(0x40d)][_0x513d8f(0x3d2)];if(!_0x59c391['dataModel']||!_0x2d2bed){if(!_0x2d2bed)console[_0x513d8f(0x4f1)](_0x513d8f(0x2c4));return;}const _0x224042=_0x59c391[_0x513d8f(0x2e1)],_0x38b17a=_0x224042[_0x513d8f(0x5fb)],_0x45055f=(_0x2ed3f2=_0x224042['va'])!==null&&_0x2ed3f2!==void 0x0?_0x2ed3f2:VerticalAlign[_0x513d8f(0x39e)],_0x4c93b5=(_0x7db756=_0x224042['ha'])!==null&&_0x7db756!==void 0x0?_0x7db756:HorizontalAlign[_0x513d8f(0x625)];if(!_0x38b17a)return;const _0x480567=_0x59c391[_0x513d8f(0x5c6)],_0x22079=prepareShapeTextDocumentData(_0x38b17a,{'isHorizontal':_0x480567!==![],'textRect':_0x4e860c,'verticalAlign':_0x45055f,'horizontalAlign':_0x4c93b5}),_0x26c165=new DocumentDataModel(_0x22079),_0x29ebd0=new DocumentViewModel(_0x26c165),_0x440702=DocumentSkeleton[_0x513d8f(0x45a)](_0x29ebd0,_0x2d2bed);console[_0x513d8f(0x4f1)](_0x22079,_0x26c165,_0x440702),_0x440702[_0x513d8f(0x436)]();const _0xbe68c9=new Documents(_0x513d8f(0x461)+this[_0x513d8f(0x405)],_0x440702,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0xbe68c9['resize'](_0x4e860c[_0x513d8f(0x246)],_0x4e860c[_0x513d8f(0x372)]),_0x2394b3[_0x513d8f(0x4d8)](),_0x2394b3[_0x513d8f(0x43e)](_0x4e860c['left'],_0x4e860c['top']),_0x2394b3[_0x513d8f(0x49a)](),_0x2394b3[_0x513d8f(0x62c)](0x0,0x0,_0x4e860c[_0x513d8f(0x246)],_0x4e860c[_0x513d8f(0x372)]),_0x2394b3[_0x513d8f(0x613)](),_0xbe68c9[_0x513d8f(0x573)](_0x2394b3),_0x2394b3[_0x513d8f(0x680)](),_0xbe68c9['dispose'](),_0x440702[_0x513d8f(0x23f)](),_0x29ebd0['dispose'](),_0x26c165['dispose']();}[_0x35ea10(0x673)](_0x1b16b2,_0x18d015,_0x3b3e5d=![]){const _0x367503=_0x35ea10;if(!this[_0x367503(0x218)])return this[_0x367503(0x598)](![]),this;let {width:_0x951202,height:_0x41629a,left:_0x21ad5a,top:_0x417156}=this;const _0x2abf90=this[_0x367503(0x25b)]();_0x951202=_0x2abf90['width'],_0x41629a=_0x2abf90[_0x367503(0x372)],_0x21ad5a=_0x2abf90['left'],_0x417156=_0x2abf90[_0x367503(0x537)];if(this[_0x367503(0x369)](_0x18d015)){const {top:_0x24985b,left:_0x5a3b81,bottom:_0x68ab4f,right:_0x451ca8}=_0x18d015[_0x367503(0x62e)];if(_0x951202+this['strokeWidth']+_0x21ad5a<_0x5a3b81||_0x451ca8<_0x21ad5a||_0x41629a+this[_0x367503(0x1ff)]+_0x417156<_0x24985b||_0x68ab4f<_0x417156)return this;}const _0x2a3db6=_0x21ad5a+_0x951202/0x2,_0x2f36c1=_0x417156+_0x41629a/0x2;let _0x5da84a=this[_0x367503(0x27b)]['getMatrix']();if(this[_0x367503(0x40d)]['isEditing']){const _0x20b96f=this[_0x367503(0x1f6)](),_0x198c5a=new Transform();_0x198c5a['composeMatrix']({..._0x20b96f}),_0x5da84a=_0x198c5a[_0x367503(0x570)]();}_0x1b16b2[_0x367503(0x4d8)]();if(this[_0x367503(0x40d)]['shapeModel'][_0x367503(0x3b9)]===!![]){}else _0x1b16b2[_0x367503(0x27b)](_0x5da84a[0x0],_0x5da84a[0x1],_0x5da84a[0x2],_0x5da84a[0x3],_0x2a3db6,_0x2f36c1);return this[_0x367503(0x331)](_0x1b16b2,_0x18d015,_0x951202,_0x41629a),_0x1b16b2[_0x367503(0x680)](),this[_0x367503(0x598)](![]),this;}['getInverseCoord'](_0x4c3b24){const _0x4fd962=_0x35ea10,{left:_0x1587b1,top:_0x4e6cfc,width:_0x1a90b1,height:_0x4b4c17}=this['getRealBound'](),_0x5e2967=this[_0x4fd962(0x27b)][_0x4fd962(0x570)](),_0x3452be=_0x1587b1+_0x1a90b1/0x2,_0x5092a9=_0x4e6cfc+_0x4b4c17/0x2,_0x33dc86=new Transform([_0x5e2967[0x0],_0x5e2967[0x1],_0x5e2967[0x2],_0x5e2967[0x3],_0x3452be,_0x5092a9]),_0x4a8a79=this[_0x4fd962(0x338)]();return(this[_0x4fd962(0x34d)]&&(_0x4a8a79===null||_0x4a8a79===void 0x0?void 0x0:_0x4a8a79[_0x4fd962(0x2a0)])===RENDER_CLASS_TYPE['GROUP']?_0x4a8a79[_0x4fd962(0x3aa)][_0x4fd962(0x397)](_0x33dc86):_0x33dc86)[_0x4fd962(0x222)]()[_0x4fd962(0x3b3)](_0x4c3b24);}[_0x35ea10(0x59e)](_0x5e82a2){const _0x587578=_0x35ea10,{left:_0x2f0ba1,top:_0x429abf,width:_0x37760b,height:_0x1d1565}=this[_0x587578(0x25b)](),_0x38dc79=_0x2f0ba1+_0x37760b/0x2,_0x3cf043=_0x429abf+_0x1d1565/0x2,_0xc439e5=this[_0x587578(0x27b)]['getMatrix'](),_0x285dcf=new Transform([_0xc439e5[0x0],_0xc439e5[0x1],_0xc439e5[0x2],_0xc439e5[0x3],_0x38dc79,_0x3cf043]),_0x1876ce=this[_0x587578(0x338)](),_0x3de33c=(this['isInGroup']&&(_0x1876ce===null||_0x1876ce===void 0x0?void 0x0:_0x1876ce[_0x587578(0x2a0)])===RENDER_CLASS_TYPE[_0x587578(0x5df)]?_0x1876ce[_0x587578(0x3aa)][_0x587578(0x397)](_0x285dcf):_0x285dcf)[_0x587578(0x222)]()[_0x587578(0x3b3)](_0x5e82a2),_0x1bfbf5=_0x37760b/0x2,_0x525f74=_0x1d1565/0x2,_0x4ad31d=this[_0x587578(0x40d)][_0x587578(0x4c6)];if(_0x4ad31d&&_0x4ad31d['isLineShape']())return _0x4ad31d[_0x587578(0x285)](_0x3de33c['x'],_0x3de33c['y'],_0x37760b,_0x1d1565);if(_0x3de33c['x']>=-_0x1bfbf5-this[_0x587578(0x1ff)]/0x2&&_0x3de33c['x']<=_0x1bfbf5+this[_0x587578(0x1ff)]/0x2&&_0x3de33c['y']>=-_0x525f74-this[_0x587578(0x1ff)]/0x2&&_0x3de33c['y']<=_0x525f74+this[_0x587578(0x1ff)]/0x2)return!![];return![];}[_0x35ea10(0x23f)](){const _0x4bb99a=_0x35ea10;this[_0x4bb99a(0x40d)]['shapeModel']=null,super['dispose']();}};function __decorateParam(_0x5f3f89,_0x56df85){return function(_0xedcd2e,_0x1eb2f3){_0x56df85(_0xedcd2e,_0x1eb2f3,_0x5f3f89);};}function __decorate(_0x2c0120,_0x3db515,_0x433ea8,_0x9b1ae0){const _0x4e372d=_0x35ea10;var _0x26882e=arguments[_0x4e372d(0x551)],_0x1ce03a=_0x26882e<0x3?_0x3db515:_0x9b1ae0===null?_0x9b1ae0=Object[_0x4e372d(0x373)](_0x3db515,_0x433ea8):_0x9b1ae0,_0x1d067e;if(typeof Reflect==='object'&&typeof Reflect[_0x4e372d(0x28d)]===_0x4e372d(0x462))_0x1ce03a=Reflect[_0x4e372d(0x28d)](_0x2c0120,_0x3db515,_0x433ea8,_0x9b1ae0);else{for(var _0x46262f=_0x2c0120[_0x4e372d(0x551)]-0x1;_0x46262f>=0x0;_0x46262f--)if(_0x1d067e=_0x2c0120[_0x46262f])_0x1ce03a=(_0x26882e<0x3?_0x1d067e(_0x1ce03a):_0x26882e>0x3?_0x1d067e(_0x3db515,_0x433ea8,_0x1ce03a):_0x1d067e(_0x3db515,_0x433ea8))||_0x1ce03a;}return _0x26882e>0x3&&_0x1ce03a&&Object[_0x4e372d(0x39b)](_0x3db515,_0x433ea8,_0x1ce03a),_0x1ce03a;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends Disposable{constructor(_0x359694,_0x2d2d1e,_0x4d4a7c,_0x24a072,_0x216477){const _0x1be5f4=_0x35ea10;super(),this[_0x1be5f4(0x659)]=_0x359694,this[_0x1be5f4(0x4f6)]=_0x2d2d1e,this[_0x1be5f4(0x5e0)]=_0x4d4a7c,this['_imageIoService']=_0x24a072,this[_0x1be5f4(0x428)]=_0x216477;}[_0x35ea10(0x28c)](_0x8a3f39,_0x11db49){const _0x188a5c=_0x35ea10,{transform:_0x3ab929,drawingType:_0x5e50cc,srcRect:_0x184885,prstGeom:_0x852ea5,groupId:_0x5b4dfb,unitId:_0x4ac910,subUnitId:_0x311865,drawingId:_0x10c971,isMultiTransform:_0x3601a1,transforms:_0x4c8426,hidden:_0x1f86e7}=_0x8a3f39;if(_0x5e50cc!==DrawingTypeEnum[_0x188a5c(0x29f)])return;if(!this[_0x188a5c(0x659)][_0x188a5c(0x38f)]())return;if(_0x3ab929==null)return;const _0x383dc7=_0x3601a1&&_0x4c8426?_0x4c8426:[_0x3ab929],_0x378d3a=[];for(const _0x3fa958 of _0x383dc7){const {left:_0x4f8187,top:_0x7e31f4,width:_0x5a656a,height:_0x55ab01,angle:_0x5d493d,flipX:_0x2b0bb8,flipY:_0x4ef970,skewX:_0x43a409,skewY:_0x2f1368}=_0x3fa958,_0x37ce50=_0x383dc7[_0x188a5c(0x29e)](_0x3fa958),_0x451007=getDrawingShapeKeyByDrawingSearch({'unitId':_0x4ac910,'subUnitId':_0x311865,'drawingId':_0x10c971},_0x3601a1?_0x37ce50:void 0x0),_0x323ca0=_0x11db49[_0x188a5c(0x5fd)](_0x451007);if(_0x323ca0!=null){_0x323ca0[_0x188a5c(0x5fc)]({'left':_0x4f8187,'top':_0x7e31f4,'width':_0x5a656a,'height':_0x55ab01,'angle':_0x5d493d,'flipX':_0x2b0bb8,'flipY':_0x4ef970,'skewX':_0x43a409,'skewY':_0x2f1368});continue;}const _0x52579c=this[_0x188a5c(0x659)][_0x188a5c(0x2ee)](_0x4ac910,_0x311865),_0x3b23c5=_0x52579c[_0x188a5c(0x29e)](_0x10c971);if(_0x11db49[_0x188a5c(0x5fd)](_0x451007))continue;if(!this[_0x188a5c(0x659)][_0x188a5c(0x38f)]())continue;const _0x25829e=this[_0x188a5c(0x4f6)][_0x188a5c(0x5fe)](_0x4ac910,_0x311865,_0x10c971);if(!_0x25829e)continue;const _0x379560=new DrawingShape(_0x451007,{...isConnectorShape(_0x25829e[_0x188a5c(0x3ab)]())?{..._0x3fa958,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x3fa958},'zIndex':_0x3b23c5===-0x1?_0x52579c['length']-0x1:_0x3b23c5,'shapeModel':_0x25829e,'localeService':this['_localeService'],'shapeId':_0x10c971,'unitId':_0x4ac910,'subUnitId':_0x311865,'visible':_0x1f86e7!==!![]});_0x11db49['addObject'](_0x379560,DRAWING_OBJECT_LAYER_INDEX);if(this[_0x188a5c(0x659)]['getDrawingEditable']())_0x11db49[_0x188a5c(0x45c)](_0x379560);_0x5b4dfb&&insertGroupObject({'drawingId':_0x5b4dfb,'unitId':_0x4ac910,'subUnitId':_0x311865},_0x379560,_0x11db49,this[_0x188a5c(0x659)]);if(_0x852ea5!=null)_0x379560['setPrstGeom'](_0x852ea5);if(_0x184885!=null)_0x379560['setSrcRect'](_0x184885);this['_loadShapePictureFill'](_0x379560,_0x25829e[_0x188a5c(0x301)]()),_0x378d3a[_0x188a5c(0x5f8)](_0x379560);}return _0x378d3a;}[_0x35ea10(0x355)](_0xc1af39,_0x54d5bb){const _0x2732bf=_0x35ea10;var _0x4a4145;const _0x371b03=_0x54d5bb[_0x2732bf(0x667)];if(!_0x371b03||_0x371b03[_0x2732bf(0x2b9)]!==ShapeFillEnum[_0x2732bf(0x5a9)]||!_0x371b03[_0x2732bf(0x377)])return;const _0x2e66a4=_0x371b03[_0x2732bf(0x377)],_0x430922=(_0x4a4145=_0x371b03[_0x2732bf(0x5f0)])!==null&&_0x4a4145!==void 0x0?_0x4a4145:ImageSourceTypeEnum[_0x2732bf(0x28b)],_0x38d983=this['_imageIoService'][_0x2732bf(0x5c8)](_0x2e66a4,_0x430922);if(_0x38d983){_0xc1af39['setFillImage'](_0x38d983);return;}this['_loadAndSetImage'](_0xc1af39,_0x2e66a4,_0x430922);}async[_0x35ea10(0x44e)](_0x524a84,_0x30d7c6,_0x58c4e4){const _0x583da0=_0x35ea10;let _0x16164f;try{if(_0x58c4e4===ImageSourceTypeEnum[_0x583da0(0x3ad)])_0x16164f=await this[_0x583da0(0x5e5)][_0x583da0(0x230)](_0x30d7c6);else{if(_0x58c4e4===ImageSourceTypeEnum['URL'])try{_0x16164f=await this[_0x583da0(0x428)][_0x583da0(0x230)](_0x30d7c6);}catch{_0x16164f=_0x30d7c6;}else _0x16164f=_0x30d7c6;}}catch(_0x30a199){console[_0x583da0(0x21d)](_0x583da0(0x6a2),_0x30a199);return;}const _0x80b7fb=new window[(_0x583da0(0x5a8))]();_0x80b7fb['onload']=()=>{const _0x44fb0b=_0x583da0;this['_imageIoService']['addImageSourceCache'](_0x30d7c6,_0x58c4e4,_0x80b7fb),_0x524a84[_0x44fb0b(0x61e)](_0x80b7fb);},_0x80b7fb['onerror']=()=>{const _0x4ab6f1=_0x583da0;console[_0x4ab6f1(0x21d)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x30d7c6);},_0x80b7fb[_0x583da0(0x658)]=_0x16164f;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,IDrawingManagerService),__decorateParam(0x1,Inject(SheetsShapeService)),__decorateParam(0x2,Inject(LocaleService)),__decorateParam(0x3,IImageIoService),__decorateParam(0x4,IURLImageService)],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends Disposable{constructor(_0x1cebf6,_0x5cb607,_0x436afe,_0x404643,_0x4b1c8a,_0x218d2f){const _0x5df2a5=_0x35ea10;super(),this[_0x5df2a5(0x4d1)]=_0x1cebf6,this[_0x5df2a5(0x481)]=_0x5cb607,this[_0x5df2a5(0x659)]=_0x436afe,this['_currentUniverService']=_0x404643,this[_0x5df2a5(0x4c2)]=_0x4b1c8a,this[_0x5df2a5(0x49f)]=_0x218d2f,this['_initialize']();}[_0x35ea10(0x21f)](){const _0x4e6365=_0x35ea10;this['_drawingAddListener'](),this[_0x4e6365(0x643)](),this[_0x4e6365(0x289)]();}[_0x35ea10(0x3e3)](){const _0x21b95c=_0x35ea10;this[_0x21b95c(0x44f)](this[_0x21b95c(0x659)][_0x21b95c(0x3e2)][_0x21b95c(0x58c)](_0x5d7c89=>{this['_insertShapes'](_0x5d7c89);}));}[_0x35ea10(0x643)](){const _0xb590b4=_0x35ea10;this[_0xb590b4(0x44f)](this[_0xb590b4(0x4d1)][_0xb590b4(0x519)](_0x350da1=>{const _0x6f93=_0xb590b4;if(_0x350da1['id']===InsertSheetsShapeMutation['id']){var _0x5a5150;const {unitId:_0x51c805,subUnitId:_0x92a9b2,shapeId:_0x2f6654}=_0x350da1[_0x6f93(0x69d)],_0x1ebc66=this[_0x6f93(0x55a)](_0x51c805);if(_0x1ebc66==null)return;const {scene:_0x11a70c}=_0x1ebc66,_0x35ba5d=getDrawingShapeKeyByDrawingSearch({'unitId':_0x51c805,'subUnitId':_0x92a9b2,'drawingId':_0x2f6654}),_0x2ecf57=_0x11a70c[_0x6f93(0x5fd)](_0x35ba5d);if(!((_0x5a5150=this[_0x6f93(0x481)]['getRenderById'](_0x51c805))===null||_0x5a5150===void 0x0?void 0x0:_0x5a5150[_0x6f93(0x565)](SheetSkeletonManagerService)[_0x6f93(0x39f)](_0x92a9b2)))return![];if(_0x2ecf57)return;this['_insertShapes']([{'unitId':_0x51c805,'subUnitId':_0x92a9b2,'drawingId':_0x2f6654}]);}}));}[_0x35ea10(0x289)](){const _0x5d18ec=_0x35ea10;this[_0x5d18ec(0x44f)](this[_0x5d18ec(0x659)][_0x5d18ec(0x23c)][_0x5d18ec(0x58c)](_0x19c299=>{const _0x2a261e=_0x5d18ec;_0x19c299[_0x2a261e(0x450)](_0x1b5293=>{const _0x1abee3=_0x2a261e,{unitId:_0x29c19a,subUnitId:_0x280f5e,drawingId:_0x2f9d19}=_0x1b5293,_0x4abaa7=this[_0x1abee3(0x659)]['getDrawingByParam'](_0x1b5293);if(_0x4abaa7==null)return;const {transform:_0x394537,drawingType:_0x42a7d2,srcRect:_0x3e7dc4,prstGeom:_0x52e5be}=_0x4abaa7;if(_0x42a7d2!==DrawingTypeEnum[_0x1abee3(0x29f)])return;const _0x2299d8=this['_getSceneAndTransformerByDrawingSearch'](_0x29c19a);if(_0x2299d8==null)return;const {scene:_0x36d8b3,transformer:_0xa45a22}=_0x2299d8;if(_0x394537==null)return!![];const _0x1bd8c6=getDrawingShapeKeyByDrawingSearch({'unitId':_0x29c19a,'subUnitId':_0x280f5e,'drawingId':_0x2f9d19}),_0x8d58c2=_0x36d8b3['getObjectIncludeInGroup'](_0x1bd8c6);if(_0x8d58c2==null)return!![];_0x8d58c2[_0x1abee3(0x31d)](_0x3e7dc4),_0x8d58c2[_0x1abee3(0x3dd)](_0x52e5be);});}));}['updateShapeFillImage'](_0x18bf25,_0x2898c6){const _0x48a4f4=_0x35ea10,{unitId:_0x558359,subUnitId:_0x522b11,drawingId:_0x438163}=_0x18bf25,_0x15574d=this['_getSceneAndTransformerByDrawingSearch'](_0x558359);if(_0x15574d==null)return;const {scene:_0x275f0d}=_0x15574d,_0x8bc12d=getDrawingShapeKeyByDrawingSearch({'unitId':_0x558359,'subUnitId':_0x522b11,'drawingId':_0x438163}),_0x190357=_0x275f0d[_0x48a4f4(0x5fd)](_0x8bc12d);if(_0x190357==null)return;_0x190357[_0x48a4f4(0x61e)](_0x2898c6);}[_0x35ea10(0x47a)](_0x389d42){const _0x152438=_0x35ea10;_0x389d42[_0x152438(0x450)](async _0x593c36=>{const _0x152ed6=_0x152438;var _0x230683;const {unitId:_0x45a5cd,subUnitId:_0x353d49}=_0x593c36,_0x411d51=this[_0x152ed6(0x55a)](_0x45a5cd),_0x762b9c=(_0x230683=getCurrentUnitInfo(this['_currentUniverService'],_0x45a5cd))===null||_0x230683===void 0x0?void 0x0:_0x230683[_0x152ed6(0x529)];if(_0x411d51==null||_0x762b9c!==_0x353d49)return;const _0x1206f6=this['_drawingManagerService'][_0x152ed6(0x2e3)](_0x593c36);if(_0x1206f6==null)return;if(_0x1206f6['drawingType']!==DrawingTypeEnum[_0x152ed6(0x29f)])return;if(isConnectorShape((_0x1206f6[_0x152ed6(0x237)]||{})['shapeType'])){const _0x9ad501=_0x1206f6[_0x152ed6(0x27b)];if(_0x9ad501)_0x1206f6[_0x152ed6(0x27b)]={..._0x9ad501,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this['_drawingManagerService'][_0x152ed6(0x5de)]([_0x1206f6]),this[_0x152ed6(0x49f)]['renderDrawingShape'](_0x1206f6,_0x411d51[_0x152ed6(0x552)]);});}[_0x35ea10(0x55a)](_0x3d0eae){const _0x5775ce=_0x35ea10;if(_0x3d0eae==null)return;const _0x18d890=this[_0x5775ce(0x481)]['getRenderById'](_0x3d0eae),_0x1b2c15=_0x18d890===null||_0x18d890===void 0x0?void 0x0:_0x18d890['scene'];if(_0x1b2c15==null)return null;return{'scene':_0x1b2c15,'transformer':_0x1b2c15['getTransformerByCreate']()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,IDrawingManagerService),__decorateParam(0x3,IUniverInstanceService),__decorateParam(0x4,Inject(DrawingRenderService)),__decorateParam(0x5,Inject(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x44aee1){const _0x558a91=_0x35ea10;var _0x390421,_0xcf0b73,_0x25ee95,_0x56a926,_0x527b91,_0x2614c1,_0x5c14b2,_0x46354b,_0x524e16,_0x398c70,_0x48bca9,_0x15067a,_0x510166;const {unitId:_0xb1170e,subUnitId:_0x131f4c,shapeId:_0x539047,shapeData:_0x540709,disableShapeOption:_0x256d26}=_0x44aee1,_0x52502b=useDependency(LocaleService),_0x3ef753=useDependency(ICommandService),_0x21d351=useDependency(IContextService),_0x5aa536=useDependency(ShapeUpdateController),_0x40b742=useDependency(IImageIoService),_0x4f7700=useRef(null),_0x16832e=_0x540709[_0x558a91(0x667)],_0x38e881=!!(_0x16832e===null||_0x16832e===void 0x0?void 0x0:_0x16832e[_0x558a91(0x377)]),[_0x1c364b,_0x184100]=useState((_0x390421=_0x16832e===null||_0x16832e===void 0x0?void 0x0:_0x16832e['imageOpacity'])!==null&&_0x390421!==void 0x0?_0x390421:0x1),[_0x515c2a,_0x4dbc64]=useState((_0xcf0b73=_0x16832e===null||_0x16832e===void 0x0?void 0x0:_0x16832e['imageFillMode'])!==null&&_0xcf0b73!==void 0x0?_0xcf0b73:ImageFillModeEnum[_0x558a91(0x4b3)]),[_0x29de38,_0x3f4a40]=useState((_0x25ee95=_0x16832e===null||_0x16832e===void 0x0?void 0x0:_0x16832e[_0x558a91(0x202)])!==null&&_0x25ee95!==void 0x0?_0x25ee95:![]),[_0x402099,_0x1325f4]=useState((_0x56a926=_0x16832e===null||_0x16832e===void 0x0||(_0x527b91=_0x16832e[_0x558a91(0x58b)])===null||_0x527b91===void 0x0?void 0x0:_0x527b91['offsetX'])!==null&&_0x56a926!==void 0x0?_0x56a926:0x0),[_0x2f2108,_0x241c2f]=useState((_0x2614c1=_0x16832e===null||_0x16832e===void 0x0||(_0x5c14b2=_0x16832e[_0x558a91(0x58b)])===null||_0x5c14b2===void 0x0?void 0x0:_0x5c14b2[_0x558a91(0x63c)])!==null&&_0x2614c1!==void 0x0?_0x2614c1:0x0),[_0x310a0c,_0x1f7831]=useState((_0x46354b=_0x16832e===null||_0x16832e===void 0x0||(_0x524e16=_0x16832e[_0x558a91(0x58b)])===null||_0x524e16===void 0x0?void 0x0:_0x524e16['scaleX'])!==null&&_0x46354b!==void 0x0?_0x46354b:0x1),[_0x390aa7,_0x48e44b]=useState((_0x398c70=_0x16832e===null||_0x16832e===void 0x0||(_0x48bca9=_0x16832e[_0x558a91(0x58b)])===null||_0x48bca9===void 0x0?void 0x0:_0x48bca9['scaleY'])!==null&&_0x398c70!==void 0x0?_0x398c70:0x1),[_0x35f000,_0x43166f]=useState((_0x15067a=_0x16832e===null||_0x16832e===void 0x0||(_0x510166=_0x16832e[_0x558a91(0x58b)])===null||_0x510166===void 0x0?void 0x0:_0x510166[_0x558a91(0x2fe)])!==null&&_0x15067a!==void 0x0?_0x15067a:'tl'),_0x3d307b=_0x515c2a===ImageFillModeEnum['Tile'],_0x294c05=Math['round']((0x1-_0x1c364b)*0x64),_0xeb8dd0=Math['round'](_0x310a0c*0x64),_0x591eb9=Math[_0x558a91(0x241)](_0x390aa7*0x64),_0x3dec03=_0x38e836=>_0x52502b['t'](_0x38e836),_0x1f0efe=[{'label':_0x3dec03('sheets-shape.fill.picture.align.tl'),'value':'tl'},{'label':_0x3dec03(_0x558a91(0x4ea)),'value':'t'},{'label':_0x3dec03(_0x558a91(0x50b)),'value':'tr'},{'label':_0x3dec03('sheets-shape.fill.picture.align.l'),'value':'l'},{'label':_0x3dec03(_0x558a91(0x3c2)),'value':_0x558a91(0x3da)},{'label':_0x3dec03('sheets-shape.fill.picture.align.r'),'value':'r'},{'label':_0x3dec03(_0x558a91(0x34f)),'value':'bl'},{'label':_0x3dec03(_0x558a91(0x31a)),'value':'b'},{'label':_0x3dec03('sheets-shape.fill.picture.align.br'),'value':'br'}],_0x4a8575=_0xa56d2f=>{updateShapeData(_0x3ef753,_0xb1170e,_0x131f4c,_0x539047,{'oldShapeData':{'fill':_0x16832e?{..._0x16832e}:void 0x0}},{'fill':{..._0x16832e,..._0xa56d2f}});},_0xeffe77=_0x5ae813=>{const _0x489cf8=_0x558a91;_0x4a8575({'imageTile':{..._0x16832e===null||_0x16832e===void 0x0?void 0x0:_0x16832e[_0x489cf8(0x58b)],..._0x5ae813}});},_0x2d46a7=()=>{const _0x2495e6=_0x558a91;var _0xe565ae;return(_0xe565ae=_0x4f7700[_0x2495e6(0x5d0)])===null||_0xe565ae===void 0x0?void 0x0:_0xe565ae[_0x2495e6(0x528)]();},_0x54cc16=async _0x3cbd89=>{const _0x35ddbc=_0x558a91;var _0x335cd9;const _0x3bbdeb=(_0x335cd9=_0x3cbd89[_0x35ddbc(0x328)]['files'])===null||_0x335cd9===void 0x0?void 0x0:_0x335cd9[0x0];if(!_0x3bbdeb)return;_0x3cbd89[_0x35ddbc(0x328)]['value']='';const _0x17faed=await _0x40b742['saveImage'](_0x3bbdeb);if(_0x17faed==null)return;const {imageSourceType:_0x538a4c,source:_0x52742a,base64Cache:_0x59d01b}=_0x17faed,{image:_0x1c6e01}=await getImageSize(_0x59d01b||'');_0x40b742['addImageSourceCache'](_0x52742a,_0x538a4c,_0x1c6e01),updateShapeData(_0x3ef753,_0xb1170e,_0x131f4c,_0x539047,{'oldShapeData':{'fill':_0x16832e?{..._0x16832e}:void 0x0}},{'fill':{..._0x16832e,'fillType':ShapeFillEnum[_0x35ddbc(0x5a9)],'fillImageSource':_0x52742a,'fillImageSourceType':_0x538a4c}}),_0x5aa536[_0x35ddbc(0x30f)]({'unitId':_0xb1170e,'subUnitId':_0x131f4c,'drawingId':_0x539047},_0x1c6e01);},_0x2052a1='univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200',_0x36ce79=_0x558a91(0x63b);return jsxs(_0x558a91(0x56e),{'className':_0x558a91(0x48f),'children':[jsxs(_0x558a91(0x56e),{'className':_0x558a91(0x4fa),'children':[jsx(_0x558a91(0x3d3),{'className':_0x2052a1,'children':_0x3dec03(_0x558a91(0x3b0))}),jsxs(_0x558a91(0x56e),{'className':_0x558a91(0x248),'children':[jsx('input',{'ref':_0x4f7700,'type':_0x558a91(0x2b1),'accept':_0x558a91(0x3d6),'className':_0x558a91(0x657),'onChange':_0x54cc16}),jsxs('div',{'className':'group\x20univer-relative\x20univer-inline-block','children':[jsx(_0x558a91(0x65d),{'type':'button','disabled':_0x256d26,'className':'univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','onClick':_0x2d46a7,'children':jsxs('span',{'children':[_0x3dec03(_0x558a91(0x20f)),'\x20']})}),_0x38e881&&jsx(_0x558a91(0x56e),{'className':_0x558a91(0x240),'children':jsx('img',{'src':_0x16832e===null||_0x16832e===void 0x0?void 0x0:_0x16832e[_0x558a91(0x377)],'alt':'','className':_0x558a91(0x1ec)})})]})]})]}),jsxs(_0x558a91(0x56e),{'className':_0x36ce79,'children':[jsx(_0x558a91(0x3d3),{'className':_0x2052a1,'children':_0x3dec03(_0x558a91(0x3fc))}),jsx(_0x558a91(0x56e),{'className':_0x558a91(0x30b),'children':jsx(InputNumber,{'className':_0x558a91(0x549),'value':_0x294c05,'disabled':_0x256d26,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x4b83ca=>_0x4b83ca+'%','parser':_0x4b07be=>(_0x4b07be===null||_0x4b07be===void 0x0?void 0x0:_0x4b07be[_0x558a91(0x538)]('%',''))||'','onChange':_0x4c8ce2=>{const _0xce4dee=_0x558a91,_0x5da064=(0x64-Math[_0xce4dee(0x2df)](0x0,Math[_0xce4dee(0x3c6)](0x64,_0x4c8ce2!==null&&_0x4c8ce2!==void 0x0?_0x4c8ce2:0x0)))/0x64;_0x184100(_0x5da064),_0x4a8575({'imageOpacity':_0x5da064}),_0x21d351[_0xce4dee(0x5d2)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,![])})})]}),jsx(Checkbox,{'checked':_0x3d307b,'disabled':_0x256d26,'onChange':_0x25ee46=>{const _0x4f57aa=_0x558a91,_0x56c0ac=_0x25ee46?ImageFillModeEnum[_0x4f57aa(0x617)]:ImageFillModeEnum[_0x4f57aa(0x4b3)];_0x4dbc64(_0x56c0ac),_0x4a8575({'imageFillMode':_0x56c0ac});},'children':jsx(_0x558a91(0x3d3),{'className':'univer-text-sm','children':_0x3dec03(_0x558a91(0x2b7))})}),_0x3d307b&&jsxs('div',{'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':[jsxs(_0x558a91(0x56e),{'className':_0x36ce79,'children':[jsx(_0x558a91(0x3d3),{'className':_0x2052a1,'children':_0x3dec03('sheets-shape.fill.picture.offsetX')}),jsx(_0x558a91(0x56e),{'className':_0x558a91(0x30b),'children':jsx(InputNumber,{'className':_0x558a91(0x549),'value':_0x402099,'disabled':_0x256d26,'step':0x1,'onChange':_0x4ae7c6=>{_0xeffe77({'offsetX':_0x4ae7c6!==null&&_0x4ae7c6!==void 0x0?_0x4ae7c6:0x0}),_0x1325f4(_0x4ae7c6!==null&&_0x4ae7c6!==void 0x0?_0x4ae7c6:0x0);},'onFocus':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0x21d351['setContextValue'](FOCUSING_PANEL_EDITOR,![])})})]}),jsxs(_0x558a91(0x56e),{'className':_0x36ce79,'children':[jsx(_0x558a91(0x3d3),{'className':_0x2052a1,'children':_0x3dec03(_0x558a91(0x388))}),jsx('div',{'className':_0x558a91(0x30b),'children':jsx(InputNumber,{'className':_0x558a91(0x549),'value':_0x2f2108,'disabled':_0x256d26,'step':0x1,'onChange':_0x5d30fd=>{_0xeffe77({'offsetY':_0x5d30fd!==null&&_0x5d30fd!==void 0x0?_0x5d30fd:0x0}),_0x241c2f(_0x5d30fd!==null&&_0x5d30fd!==void 0x0?_0x5d30fd:0x0);},'onFocus':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,![])})})]}),jsxs(_0x558a91(0x56e),{'className':_0x36ce79,'children':[jsx('span',{'className':_0x2052a1,'children':_0x3dec03(_0x558a91(0x46d))}),jsx('div',{'className':_0x558a91(0x30b),'children':jsx(InputNumber,{'className':_0x558a91(0x549),'value':_0xeb8dd0,'disabled':_0x256d26,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x496bab=>_0x496bab+'%','parser':_0x529f14=>(_0x529f14===null||_0x529f14===void 0x0?void 0x0:_0x529f14[_0x558a91(0x538)]('%',''))||'','onChange':_0x13e80b=>{const _0x4989e2=_0x558a91,_0xd627a3=Math[_0x4989e2(0x2df)](0.01,(_0x13e80b!==null&&_0x13e80b!==void 0x0?_0x13e80b:0x64)/0x64);_0x1f7831(_0xd627a3),_0xeffe77({'scaleX':_0xd627a3}),_0x21d351['setContextValue'](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,![])})})]}),jsxs(_0x558a91(0x56e),{'className':_0x36ce79,'children':[jsx(_0x558a91(0x3d3),{'className':_0x2052a1,'children':_0x3dec03('sheets-shape.fill.picture.scaleY')}),jsx(_0x558a91(0x56e),{'className':_0x558a91(0x30b),'children':jsx(InputNumber,{'className':'univer-w-full','value':_0x591eb9,'disabled':_0x256d26,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x435713=>_0x435713+'%','parser':_0x30301a=>(_0x30301a===null||_0x30301a===void 0x0?void 0x0:_0x30301a[_0x558a91(0x538)]('%',''))||'','onChange':_0x27ae3a=>{const _0x4a765=_0x558a91,_0x161f33=Math[_0x4a765(0x2df)](0.01,(_0x27ae3a!==null&&_0x27ae3a!==void 0x0?_0x27ae3a:0x64)/0x64);_0x48e44b(_0x161f33),_0xeffe77({'scaleY':_0x161f33}),_0x21d351[_0x4a765(0x5d2)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>_0x21d351[_0x558a91(0x5d2)](FOCUSING_PANEL_EDITOR,![])})})]}),jsxs('div',{'className':_0x36ce79,'children':[jsx(_0x558a91(0x3d3),{'className':_0x2052a1,'children':_0x3dec03(_0x558a91(0x592))}),jsx('div',{'className':_0x558a91(0x294),'children':jsx(Select,{'className':_0x558a91(0x549),'value':_0x35f000,'options':_0x1f0efe,'disabled':_0x256d26,'onChange':_0x5044f4=>{_0x43166f(_0x5044f4),_0xeffe77({'alignment':_0x5044f4});}})})]})]}),jsx(Checkbox,{'checked':_0x29de38,'disabled':_0x256d26,'onChange':_0x113185=>{_0x3f4a40(_0x113185),_0x4a8575({'imageRotateWithShape':_0x113185});},'children':jsx(_0x558a91(0x3d3),{'className':_0x558a91(0x51b),'children':_0x3dec03(_0x558a91(0x49e))})})]});}function ShapeFillEditor(_0x3d902b){const _0x5097dc=_0x35ea10;var _0x2b1458,_0x41f281,_0x295b94;const _0xc35b99=useDependency(LocaleService),_0x1e70bf=useDependency(ICommandService),_0x31d781=useDependency(IContextService),{shapeData:_0xff8146,isLineShape:_0x490972,unitId:_0xd2e76b,subUnitId:_0x58347a,shapeId:_0x5759cc,disableShapeOption:_0x2f23f5}=_0x3d902b,[_0x24f0f3,_0x43c5ca]=useState(((_0x2b1458=_0xff8146[_0x5097dc(0x667)])===null||_0x2b1458===void 0x0?void 0x0:_0x2b1458['fillType'])||ShapeFillEnum[_0x5097dc(0x29c)]),[_0x2ac0cf,_0x5682ec]=useState(((_0x41f281=_0xff8146['fill'])===null||_0x41f281===void 0x0?void 0x0:_0x41f281[_0x5097dc(0x387)])||ShapeDefaultConfig[_0x5097dc(0x667)]),[_0x3d9f31,_0x435e22]=useState(((_0x295b94=_0xff8146[_0x5097dc(0x667)])===null||_0x295b94===void 0x0?void 0x0:_0x295b94[_0x5097dc(0x2e0)])||0x1),[_0x2492f2,_0x583014]=useState(![]);if(_0x490972)return null;const _0x18b652=0x64-_0x3d9f31*0x64;return jsxs('div',{'className':_0x5097dc(0x283),'children':[jsxs(RadioGroup,{'value':_0x24f0f3,'disabled':_0x2f23f5,'onChange':_0x51ae6b=>{const _0x46be52=_0x5097dc;var _0x362ee6;updateShapeData(_0x1e70bf,_0xd2e76b,_0x58347a,_0x5759cc,{'oldShapeData':{'fill':{'fillType':(_0x362ee6=_0xff8146[_0x46be52(0x667)])===null||_0x362ee6===void 0x0?void 0x0:_0x362ee6[_0x46be52(0x2b9)]}}},{'fill':{'fillType':_0x51ae6b}}),_0x43c5ca(_0x51ae6b);},'direction':_0x5097dc(0x668),'children':[jsx(Radio,{'value':ShapeFillEnum[_0x5097dc(0x24d)],'children':jsx(_0x5097dc(0x3d3),{'className':'univer-text-sm','children':_0xc35b99['t'](_0x5097dc(0x438))})}),jsx(Radio,{'value':ShapeFillEnum[_0x5097dc(0x29c)],'children':jsx(_0x5097dc(0x3d3),{'className':_0x5097dc(0x51b),'children':_0xc35b99['t'](_0x5097dc(0x589))})}),jsx(Radio,{'value':ShapeFillEnum['GradientFill'],'children':jsx(_0x5097dc(0x3d3),{'className':_0x5097dc(0x51b),'children':_0xc35b99['t']('sheets-shape.fill.gradientFill')})}),jsx(Radio,{'value':ShapeFillEnum[_0x5097dc(0x5a9)],'children':jsx(_0x5097dc(0x3d3),{'className':'univer-text-sm','children':_0xc35b99['t']('sheets-shape.fill.pictureFill')})})]}),_0x24f0f3===ShapeFillEnum[_0x5097dc(0x29c)]&&jsxs(_0x5097dc(0x56e),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','children':[jsxs(_0x5097dc(0x56e),{'className':_0x5097dc(0x534),'children':[jsx(_0x5097dc(0x3d3),{'className':_0x5097dc(0x49c),'children':_0xc35b99['t'](_0x5097dc(0x1f4))}),jsx(Dropdown,{'disabled':_0x2f23f5,'overlay':jsx(_0x5097dc(0x56e),{'className':'univer-rounded-lg\x20univer-p-3','children':jsx(ColorPicker,{'value':_0x2ac0cf,'onChange':_0x1a4945=>{const _0x406d78=_0x5097dc;var _0x3789f1;updateShapeData(_0x1e70bf,_0xd2e76b,_0x58347a,_0x5759cc,{'oldShapeData':{'fill':{'color':(_0x3789f1=_0xff8146[_0x406d78(0x667)])===null||_0x3789f1===void 0x0?void 0x0:_0x3789f1['color']}}},{'fill':{'color':_0x1a4945}}),_0x5682ec(_0x1a4945),_0x583014(![]);}})}),'open':_0x2492f2,'onOpenChange':_0x583014,'children':jsxs('a',{'className':_0x5097dc(0x577),'children':[jsx(PaintBucketDoubleIcon,{'className':_0x5097dc(0x41f),'extend':{'colorChannel1':_0x2ac0cf}}),jsx(MoreDownIcon,{'className':clsx(_0x5097dc(0x64a),{'univer-rotate-180':_0x2492f2})})]})})]}),jsxs(_0x5097dc(0x56e),{'className':_0x5097dc(0x63b),'children':[jsx(_0x5097dc(0x3d3),{'className':_0x5097dc(0x626),'children':_0xc35b99['t'](_0x5097dc(0x3fc))}),jsx(_0x5097dc(0x56e),{'className':_0x5097dc(0x6a1),'children':jsx('div',{'className':_0x5097dc(0x30b),'children':jsx(InputNumber,{'className':_0x5097dc(0x549),'value':_0x18b652,'disabled':_0x2f23f5,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x54abca=>_0x54abca+'%','parser':_0x146f92=>(_0x146f92===null||_0x146f92===void 0x0?void 0x0:_0x146f92[_0x5097dc(0x538)]('%',''))||'','onChange':_0x4d5517=>{const _0x2b3480=_0x5097dc,_0xa05ac4=(0x64-Math['max'](0x0,Math[_0x2b3480(0x3c6)](0x64,_0x4d5517!==null&&_0x4d5517!==void 0x0?_0x4d5517:0x0)))/0x64;_0x435e22(_0xa05ac4),updateShapeData(_0x1e70bf,_0xd2e76b,_0x58347a,_0x5759cc,{'oldShapeData':{'fill':{..._0xff8146['fill'],'fillType':_0x24f0f3}}},{'fill':{..._0xff8146[_0x2b3480(0x667)],'fillType':_0x24f0f3,'opacity':_0xa05ac4}}),_0x31d781[_0x2b3480(0x5d2)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x31d781[_0x5097dc(0x5d2)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':()=>{_0x31d781['setContextValue'](FOCUSING_PANEL_EDITOR,![]);}})})})]})]}),_0x24f0f3===ShapeFillEnum[_0x5097dc(0x544)]&&jsx(GradientFillEditor,{'shapeData':_0xff8146,'disableShapeOption':_0x2f23f5,'onUpdate':_0x5d3350=>{const _0xbc277a=_0x5097dc;updateShapeData(_0x1e70bf,_0xd2e76b,_0x58347a,_0x5759cc,{'oldShapeData':{'fill':{..._0xff8146[_0xbc277a(0x667)]}}},{'fill':{..._0xff8146['fill'],..._0x5d3350}});}}),_0x24f0f3===ShapeFillEnum[_0x5097dc(0x5a9)]&&jsx(ShapeImageFillEditor,{'unitId':_0xd2e76b,'subUnitId':_0x58347a,'shapeId':_0x5759cc,'shapeData':_0xff8146,'disableShapeOption':_0x2f23f5})]});}function shapeGradientTypeToPickerType(_0x7dac9b){const _0x1b0aec=_0x35ea10;switch(_0x7dac9b){case ShapeGradientTypeEnum[_0x1b0aec(0x297)]:return _0x1b0aec(0x619);case ShapeGradientTypeEnum['Radial']:return _0x1b0aec(0x2f5);case ShapeGradientTypeEnum[_0x1b0aec(0x64c)]:return _0x1b0aec(0x2e2);case ShapeGradientTypeEnum[_0x1b0aec(0x236)]:return'diamond';default:return _0x1b0aec(0x619);}}function pickerTypeToShapeGradientType(_0x472f77){const _0x726a0d=_0x35ea10;switch(_0x472f77){case'linear':return ShapeGradientTypeEnum[_0x726a0d(0x297)];case _0x726a0d(0x2f5):return ShapeGradientTypeEnum[_0x726a0d(0x65c)];case _0x726a0d(0x2e2):return ShapeGradientTypeEnum[_0x726a0d(0x64c)];case'diamond':return ShapeGradientTypeEnum[_0x726a0d(0x236)];default:return ShapeGradientTypeEnum[_0x726a0d(0x297)];}}function _0x33ec(_0x33e963,_0x416c41){_0x33e963=_0x33e963-0x1e7;const _0x25903c=_0x2590();let _0x33ec63=_0x25903c[_0x33e963];return _0x33ec63;}function GradientFillEditor(_0x1141cc){const _0x48a9bb=_0x35ea10,{shapeData:_0x25307d,disableShapeOption:_0x114efa,onUpdate:_0x530a8b}=_0x1141cc,_0x45736b=useMemo(()=>{const _0x542398=_0x33ec;var _0x460a34;const _0x5697b=_0x25307d[_0x542398(0x667)];return{'type':shapeGradientTypeToPickerType(_0x5697b===null||_0x5697b===void 0x0?void 0x0:_0x5697b[_0x542398(0x314)]),'angle':(_0x460a34=_0x5697b===null||_0x5697b===void 0x0?void 0x0:_0x5697b[_0x542398(0x53e)])!==null&&_0x460a34!==void 0x0?_0x460a34:0x5a,'stops':(_0x5697b===null||_0x5697b===void 0x0?void 0x0:_0x5697b['gradientStops'])&&_0x5697b[_0x542398(0x615)][_0x542398(0x551)]>=0x2?_0x5697b[_0x542398(0x615)][_0x542398(0x4b0)](_0x3a7ae8=>({'color':_0x3a7ae8[_0x542398(0x387)],'offset':_0x3a7ae8[_0x542398(0x4a6)]*0x64})):[{'color':(_0x5697b===null||_0x5697b===void 0x0?void 0x0:_0x5697b[_0x542398(0x387)])||_0x542398(0x3bf),'offset':0x0},{'color':'#000000','offset':0x64}]};},[_0x25307d['fill']]),_0x57d74a=_0x11be20=>{const _0x3bc459=_0x33ec,_0x540e2b=pickerTypeToShapeGradientType(_0x11be20[_0x3bc459(0x2b6)]),_0x54f8bc=_0x11be20['angle'];_0x530a8b({'gradientType':_0x540e2b,'gradientAngle':_0x54f8bc,'gradientStops':_0x11be20[_0x3bc459(0x590)][_0x3bc459(0x4b0)](_0x343eb1=>({'color':_0x343eb1[_0x3bc459(0x387)],'position':_0x343eb1[_0x3bc459(0x2b2)]/0x64}))});};return jsx('div',{'className':_0x48a9bb(0x2d9),'children':jsx(GradientColorPicker,{'value':_0x45736b,'onChange':_0x57d74a})});}function ShapeLineEditor(_0xc2f62e){const _0x5edc16=_0x35ea10;var _0x18bd44,_0x30858b,_0x57a599,_0x3055a0,_0x309726,_0x3c5acf,_0x6813f3,_0x250c3e,_0x292007,_0x3171ab,_0x28c05f,_0x400859,_0x4f4bbe,_0x3451b2,_0x37c5cc,_0x41b328;const _0x3d93b3=useDependency(LocaleService),_0x3146e8=useDependency(ICommandService),_0x25c0c5=useDependency(IContextService),{shapeData:_0x4fd509,isLineShape:_0x5dedf9,unitId:_0x64e37d,subUnitId:_0x384cf2,shapeId:_0x1ae3d5,disableShapeOption:_0x588cf5}=_0xc2f62e,_0x5c0bbf=_0x4fd509['stroke'],[_0x226166,_0x2cd381]=useState((_0x18bd44=_0x5c0bbf===null||_0x5c0bbf===void 0x0?void 0x0:_0x5c0bbf[_0x5edc16(0x48d)])!==null&&_0x18bd44!==void 0x0?_0x18bd44:ShapeLineTypeEnum[_0x5edc16(0x323)]),[_0x7b1993,_0x31ab96]=useState((_0x30858b=_0x5c0bbf===null||_0x5c0bbf===void 0x0?void 0x0:_0x5c0bbf[_0x5edc16(0x387)])!==null&&_0x30858b!==void 0x0?_0x30858b:ShapeDefaultConfig[_0x5edc16(0x1fb)]),[_0x10d17b,_0x3d8b72]=useState((_0x57a599=_0x5c0bbf===null||_0x5c0bbf===void 0x0?void 0x0:_0x5c0bbf['opacity'])!==null&&_0x57a599!==void 0x0?_0x57a599:0x1),[_0x4be553,_0xefdefc]=useState((_0x3055a0=_0x5c0bbf===null||_0x5c0bbf===void 0x0?void 0x0:_0x5c0bbf[_0x5edc16(0x246)])!==null&&_0x3055a0!==void 0x0?_0x3055a0:ShapeDefaultConfig[_0x5edc16(0x1ff)]),[_0x51aad4,_0x26c9a4]=useState((_0x309726=_0x5c0bbf===null||_0x5c0bbf===void 0x0?void 0x0:_0x5c0bbf['dashType'])!==null&&_0x309726!==void 0x0?_0x309726:ShapeLineDashEnum[_0x5edc16(0x661)]),[_0x56be70,_0x165819]=useState((_0x3c5acf=_0x5c0bbf===null||_0x5c0bbf===void 0x0?void 0x0:_0x5c0bbf[_0x5edc16(0x454)])!==null&&_0x3c5acf!==void 0x0?_0x3c5acf:ShapeLineCapEnum[_0x5edc16(0x652)]),[_0x32262c,_0x13a6ff]=useState((_0x6813f3=_0x5c0bbf===null||_0x5c0bbf===void 0x0?void 0x0:_0x5c0bbf[_0x5edc16(0x254)])!==null&&_0x6813f3!==void 0x0?_0x6813f3:ShapeLineJoinEnum[_0x5edc16(0x498)]),[_0x241c7d,_0x165107]=useState((_0x250c3e=_0x5c0bbf===null||_0x5c0bbf===void 0x0?void 0x0:_0x5c0bbf[_0x5edc16(0x227)])!==null&&_0x250c3e!==void 0x0?_0x250c3e:ShapeSketchTypeEnum[_0x5edc16(0x358)]),_0xb47417=_0x4fd509,[_0xa5698e,_0x520102]=useState((_0x292007=(_0x3171ab=_0xb47417['ln'])===null||_0x3171ab===void 0x0||(_0x3171ab=_0x3171ab['startArrow'])===null||_0x3171ab===void 0x0?void 0x0:_0x3171ab[_0x5edc16(0x2b6)])!==null&&_0x292007!==void 0x0?_0x292007:ShapeArrowTypeEnum['None']),[_0x11ca57,_0x17208c]=useState((_0x28c05f=(_0x400859=_0xb47417['ln'])===null||_0x400859===void 0x0||(_0x400859=_0x400859[_0x5edc16(0x57e)])===null||_0x400859===void 0x0?void 0x0:_0x400859[_0x5edc16(0x634)])!==null&&_0x28c05f!==void 0x0?_0x28c05f:ShapeArrowSizeEnum['Medium']),[_0x318cee,_0x57c244]=useState((_0x4f4bbe=(_0x3451b2=_0xb47417['ln'])===null||_0x3451b2===void 0x0||(_0x3451b2=_0x3451b2[_0x5edc16(0x2f2)])===null||_0x3451b2===void 0x0?void 0x0:_0x3451b2[_0x5edc16(0x2b6)])!==null&&_0x4f4bbe!==void 0x0?_0x4f4bbe:ShapeArrowTypeEnum['None']),[_0x5ac222,_0x5af0d5]=useState((_0x37c5cc=(_0x41b328=_0xb47417['ln'])===null||_0x41b328===void 0x0||(_0x41b328=_0x41b328[_0x5edc16(0x2f2)])===null||_0x41b328===void 0x0?void 0x0:_0x41b328[_0x5edc16(0x634)])!==null&&_0x37c5cc!==void 0x0?_0x37c5cc:ShapeArrowSizeEnum[_0x5edc16(0x59b)]),[_0x58861d,_0x115a2b]=useState(![]),_0x45508f=0x64-_0x10d17b*0x64,_0xb9c3e4=[{'label':_0x3d93b3['t'](_0x5edc16(0x488)),'value':String(ShapeLineDashEnum[_0x5edc16(0x661)])},{'label':_0x3d93b3['t'](_0x5edc16(0x46e)),'value':String(ShapeLineDashEnum[_0x5edc16(0x53c)])},{'label':_0x3d93b3['t'](_0x5edc16(0x443)),'value':String(ShapeLineDashEnum[_0x5edc16(0x2f9)])},{'label':_0x3d93b3['t'](_0x5edc16(0x2ca)),'value':String(ShapeLineDashEnum[_0x5edc16(0x640)])},{'label':_0x3d93b3['t'](_0x5edc16(0x434)),'value':String(ShapeLineDashEnum[_0x5edc16(0x309)])},{'label':_0x3d93b3['t'](_0x5edc16(0x3f6)),'value':String(ShapeLineDashEnum['LongDash'])},{'label':_0x3d93b3['t']('sheets-shape.line.dashType.longDashDot'),'value':String(ShapeLineDashEnum['LongDashDot'])},{'label':_0x3d93b3['t'](_0x5edc16(0x341)),'value':String(ShapeLineDashEnum[_0x5edc16(0x3a7)])}],_0x3f24bb=[{'label':_0x3d93b3['t'](_0x5edc16(0x3b6)),'value':String(ShapeLineCapEnum[_0x5edc16(0x652)])},{'label':_0x3d93b3['t'](_0x5edc16(0x22e)),'value':String(ShapeLineCapEnum[_0x5edc16(0x215)])},{'label':_0x3d93b3['t'](_0x5edc16(0x3af)),'value':String(ShapeLineCapEnum['Square'])}],_0x47885d=[{'label':_0x3d93b3['t'](_0x5edc16(0x44a)),'value':String(ShapeSketchTypeEnum['None'])},{'label':_0x3d93b3['t'](_0x5edc16(0x39c)),'value':String(ShapeSketchTypeEnum[_0x5edc16(0x46b)])},{'label':_0x3d93b3['t'](_0x5edc16(0x546)),'value':String(ShapeSketchTypeEnum[_0x5edc16(0x633)])},{'label':_0x3d93b3['t']('sheets-shape.line.sketchType.handDrawn'),'value':String(ShapeSketchTypeEnum['HandDrawn'])}],_0x1c41ed=[{'label':_0x3d93b3['t'](_0x5edc16(0x2d0)),'value':String(ShapeLineJoinEnum[_0x5edc16(0x498)])},{'label':_0x3d93b3['t'](_0x5edc16(0x4fd)),'value':String(ShapeLineJoinEnum[_0x5edc16(0x215)])},{'label':_0x3d93b3['t'](_0x5edc16(0x4fe)),'value':String(ShapeLineJoinEnum[_0x5edc16(0x437)])}],_0x2a285d=[{'label':_0x3d93b3['t']('sheets-shape.line.arrowType.none'),'value':String(ShapeArrowTypeEnum['None'])},{'label':_0x3d93b3['t'](_0x5edc16(0x581)),'value':String(ShapeArrowTypeEnum[_0x5edc16(0x2c5)])},{'label':_0x3d93b3['t'](_0x5edc16(0x5c0)),'value':String(ShapeArrowTypeEnum[_0x5edc16(0x602)])},{'label':_0x3d93b3['t'](_0x5edc16(0x4b4)),'value':String(ShapeArrowTypeEnum['StealthArrow'])},{'label':_0x3d93b3['t'](_0x5edc16(0x664)),'value':String(ShapeArrowTypeEnum[_0x5edc16(0x327)])},{'label':_0x3d93b3['t']('sheets-shape.line.arrowType.ovalArrow'),'value':String(ShapeArrowTypeEnum[_0x5edc16(0x449)])}],_0x1b591d=[{'label':_0x3d93b3['t']('sheets-shape.line.arrowSize.small'),'value':String(ShapeArrowSizeEnum[_0x5edc16(0x4a2)])},{'label':_0x3d93b3['t'](_0x5edc16(0x465)),'value':String(ShapeArrowSizeEnum[_0x5edc16(0x59b)])},{'label':_0x3d93b3['t']('sheets-shape.line.arrowSize.large'),'value':String(ShapeArrowSizeEnum[_0x5edc16(0x384)])}];return jsxs(_0x5edc16(0x56e),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[jsxs(RadioGroup,{'value':String(_0x226166),'disabled':_0x588cf5,'onChange':_0x13cb2a=>{const _0x331c2c=_0x5edc16;var _0x322018;_0x2cd381(Number(_0x13cb2a)),updateShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x322018=_0x4fd509[_0x331c2c(0x1fb)])===null||_0x322018===void 0x0?void 0x0:_0x322018['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0x13cb2a)}});},'direction':_0x5edc16(0x668),'children':[jsx(Radio,{'value':String(ShapeLineTypeEnum[_0x5edc16(0x691)]),'children':jsx(_0x5edc16(0x3d3),{'className':'univer-text-sm','children':_0x3d93b3['t']('sheets-shape.line.noLine')})}),jsx(Radio,{'value':String(ShapeLineTypeEnum[_0x5edc16(0x323)]),'children':jsx(_0x5edc16(0x3d3),{'className':_0x5edc16(0x51b),'children':_0x3d93b3['t'](_0x5edc16(0x3c5))})})]}),_0x226166!==ShapeLineTypeEnum[_0x5edc16(0x691)]&&jsxs(_0x5edc16(0x56e),{'className':_0x5edc16(0x4be),'children':[jsxs(_0x5edc16(0x56e),{'className':_0x5edc16(0x534),'children':[jsx(_0x5edc16(0x3d3),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3d93b3['t'](_0x5edc16(0x439))}),jsx(Dropdown,{'disabled':_0x588cf5,'overlay':jsx(_0x5edc16(0x56e),{'className':_0x5edc16(0x34c),'children':jsx(ColorPicker,{'value':_0x7b1993,'onChange':_0x1232ed=>{const _0x599db6=_0x5edc16;var _0x25c057;updateShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'stroke':{'color':(_0x25c057=_0x4fd509[_0x599db6(0x1fb)])===null||_0x25c057===void 0x0?void 0x0:_0x25c057[_0x599db6(0x387)]}}},{'stroke':{'color':_0x1232ed}}),_0x31ab96(_0x1232ed),_0x115a2b(![]);}})}),'open':_0x58861d,'onOpenChange':_0x115a2b,'children':jsxs('a',{'className':_0x5edc16(0x577),'children':[jsx(PaintBucketDoubleIcon,{'className':_0x5edc16(0x383),'extend':{'colorChannel1':_0x7b1993}}),jsx(MoreDownIcon,{'className':clsx(_0x5edc16(0x64a),{'univer-rotate-180':_0x58861d})})]})})]}),jsxs('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[jsx('span',{'className':_0x5edc16(0x626),'children':_0x3d93b3['t'](_0x5edc16(0x371))}),jsx(_0x5edc16(0x56e),{'className':_0x5edc16(0x63b),'children':jsx(_0x5edc16(0x56e),{'className':_0x5edc16(0x27c),'children':jsx(InputNumber,{'className':'univer-w-full','value':_0x45508f,'disabled':_0x588cf5,'min':0x0,'max':0x64,'formatter':_0x1724a9=>_0x1724a9+'%','parser':_0x44958d=>(_0x44958d===null||_0x44958d===void 0x0?void 0x0:_0x44958d[_0x5edc16(0x538)]('%',''))||'','onChange':_0x3347cc=>{const _0x3cff54=_0x5edc16;var _0x24b563;const _0x155989=(0x64-Math[_0x3cff54(0x2df)](0x0,Math[_0x3cff54(0x3c6)](0x64,_0x3347cc!==null&&_0x3347cc!==void 0x0?_0x3347cc:0x0)))/0x64;_0x3d8b72(_0x155989),updateShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'stroke':{'opacity':(_0x24b563=_0x4fd509[_0x3cff54(0x1fb)])===null||_0x24b563===void 0x0?void 0x0:_0x24b563[_0x3cff54(0x2e0)]}}},{'stroke':{'opacity':_0x155989}}),_0x25c0c5['setContextValue'](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x25c0c5[_0x5edc16(0x5d2)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':_0x22100c=>{_0x25c0c5['setContextValue'](FOCUSING_PANEL_EDITOR,![]);}})})})]}),jsxs(_0x5edc16(0x56e),{'className':_0x5edc16(0x63b),'children':[jsx(_0x5edc16(0x3d3),{'className':_0x5edc16(0x49c),'children':_0x3d93b3['t']('sheets-shape.line.width')}),jsx(_0x5edc16(0x56e),{'className':_0x5edc16(0x30b),'children':jsx(InputNumber,{'className':_0x5edc16(0x549),'disabled':_0x588cf5,'value':_0x4be553,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x139400=>_0x139400+_0x5edc16(0x3c9),'parser':_0x3ed0bd=>(_0x3ed0bd===null||_0x3ed0bd===void 0x0?void 0x0:_0x3ed0bd[_0x5edc16(0x538)](_0x5edc16(0x3c9),''))||'','onChange':_0x4f5b16=>{const _0x8e4963=_0x5edc16;if(!Number[_0x8e4963(0x34a)](_0x4f5b16)&&_0x4f5b16!==null){var _0x27cfc6;updateShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'stroke':{'width':(_0x27cfc6=_0x4fd509[_0x8e4963(0x1fb)])===null||_0x27cfc6===void 0x0?void 0x0:_0x27cfc6['width']}}},{'stroke':{'width':_0x4f5b16}});}_0x25c0c5[_0x8e4963(0x5d2)](FOCUSING_PANEL_EDITOR,![]);},'onFocus':()=>_0x25c0c5[_0x5edc16(0x5d2)](FOCUSING_PANEL_EDITOR,!![]),'onBlur':_0x476be6=>{const _0x4071c8=_0x5edc16;_0x25c0c5[_0x4071c8(0x5d2)](FOCUSING_PANEL_EDITOR,![]);}})})]}),jsxs('div',{'className':_0x5edc16(0x534),'children':[jsx(_0x5edc16(0x3d3),{'className':_0x5edc16(0x49c),'children':_0x3d93b3['t'](_0x5edc16(0x3ae))}),jsx('div',{'className':'univer-w-28','children':jsx(Select,{'className':_0x5edc16(0x549),'value':String(_0x51aad4),'options':_0xb9c3e4,'disabled':_0x588cf5,'onChange':_0xc78e0b=>{const _0x1d1c59=_0x5edc16;var _0x482264;_0x26c9a4(Number(_0xc78e0b)),updateShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'stroke':{'dashType':(_0x482264=_0x4fd509[_0x1d1c59(0x1fb)])===null||_0x482264===void 0x0?void 0x0:_0x482264['dashType']}}},{'stroke':{'dashType':Number(_0xc78e0b)}});}})})]}),jsxs(_0x5edc16(0x56e),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[jsx(_0x5edc16(0x3d3),{'className':_0x5edc16(0x49c),'children':_0x3d93b3['t'](_0x5edc16(0x699))}),jsx(_0x5edc16(0x56e),{'className':_0x5edc16(0x294),'children':jsx(Select,{'className':_0x5edc16(0x549),'value':String(_0x56be70),'options':_0x3f24bb,'disabled':_0x588cf5,'onChange':_0x5f55af=>{const _0xe21ce5=_0x5edc16;var _0x46b307;_0x165819(Number(_0x5f55af)),updateShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'stroke':{'capType':(_0x46b307=_0x4fd509[_0xe21ce5(0x1fb)])===null||_0x46b307===void 0x0?void 0x0:_0x46b307[_0xe21ce5(0x454)]}}},{'stroke':{'capType':Number(_0x5f55af)}});}})})]}),jsxs('div',{'className':_0x5edc16(0x534),'children':[jsx(_0x5edc16(0x3d3),{'className':_0x5edc16(0x49c),'children':_0x3d93b3['t'](_0x5edc16(0x68f))}),jsx(_0x5edc16(0x56e),{'className':'univer-w-28','children':jsx(Select,{'className':_0x5edc16(0x549),'value':String(_0x32262c),'options':_0x1c41ed,'disabled':_0x588cf5,'onChange':_0x5e516b=>{var _0x40c3c4;_0x13a6ff(Number(_0x5e516b)),updateShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'stroke':{'lineJoinType':(_0x40c3c4=_0x4fd509['stroke'])===null||_0x40c3c4===void 0x0?void 0x0:_0x40c3c4['lineJoinType']}}},{'stroke':{'lineJoinType':Number(_0x5e516b)}});}})})]}),!_0x5dedf9&&jsxs(_0x5edc16(0x56e),{'className':_0x5edc16(0x534),'children':[jsx(_0x5edc16(0x3d3),{'className':_0x5edc16(0x49c),'children':_0x3d93b3['t'](_0x5edc16(0x3fa))}),jsx(_0x5edc16(0x56e),{'className':'univer-w-28','children':jsx(Select,{'className':_0x5edc16(0x549),'value':String(_0x241c7d),'options':_0x47885d,'disabled':_0x588cf5,'onChange':_0x2be706=>{const _0xefbfa7=_0x5edc16;var _0x1b2ea2;_0x165107(Number(_0x2be706)),updateShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'stroke':{'sketchType':(_0x1b2ea2=_0x4fd509[_0xefbfa7(0x1fb)])===null||_0x1b2ea2===void 0x0?void 0x0:_0x1b2ea2['sketchType']}}},{'stroke':{'sketchType':Number(_0x2be706)}});}})})]}),_0x5dedf9&&jsxs(Fragment,{'children':[jsxs('div',{'className':_0x5edc16(0x534),'children':[jsx('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3d93b3['t']('sheets-shape.line.beginArrowType')}),jsx('div',{'className':_0x5edc16(0x294),'children':jsx(Select,{'className':_0x5edc16(0x549),'value':String(_0xa5698e),'options':_0x2a285d,'onChange':_0x64c82a=>{const _0x26971e=_0x5edc16;var _0xe159a2;_0x520102(Number(_0x64c82a)),updateLineShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'ln':{'startArrow':{'type':(_0xe159a2=_0x4fd509['ln'])===null||_0xe159a2===void 0x0||(_0xe159a2=_0xe159a2[_0x26971e(0x57e)])===null||_0xe159a2===void 0x0?void 0x0:_0xe159a2['type']}}}},{'ln':{'startArrow':{'type':Number(_0x64c82a)}}});}})})]}),jsxs(_0x5edc16(0x56e),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[jsx('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3d93b3['t'](_0x5edc16(0x4f0))}),jsx(_0x5edc16(0x56e),{'className':_0x5edc16(0x294),'children':jsx(Select,{'className':_0x5edc16(0x549),'value':String(_0x11ca57),'options':_0x1b591d,'onChange':_0x3c082d=>{const _0x3af354=_0x5edc16;var _0x17d6e0;_0x17208c(Number(_0x3c082d)),updateLineShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x17d6e0=_0x4fd509['ln'])===null||_0x17d6e0===void 0x0||(_0x17d6e0=_0x17d6e0['startArrow'])===null||_0x17d6e0===void 0x0?void 0x0:_0x17d6e0[_0x3af354(0x634)]}}}},{'ln':{'startArrow':{'size':Number(_0x3c082d)}}});}})})]}),jsxs(_0x5edc16(0x56e),{'className':_0x5edc16(0x534),'children':[jsx(_0x5edc16(0x3d3),{'className':_0x5edc16(0x49c),'children':_0x3d93b3['t'](_0x5edc16(0x2d2))}),jsx(_0x5edc16(0x56e),{'className':_0x5edc16(0x294),'children':jsx(Select,{'className':'univer-w-full','value':String(_0x318cee),'options':_0x2a285d,'onChange':_0x2435a5=>{const _0x5250a4=_0x5edc16;var _0x187934;_0x57c244(Number(_0x2435a5)),updateLineShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x187934=_0x4fd509['ln'])===null||_0x187934===void 0x0||(_0x187934=_0x187934[_0x5250a4(0x2f2)])===null||_0x187934===void 0x0?void 0x0:_0x187934[_0x5250a4(0x2b6)]}}}},{'ln':{'endArrow':{'type':Number(_0x2435a5)}}});}})})]}),jsxs(_0x5edc16(0x56e),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[jsx('span',{'className':_0x5edc16(0x49c),'children':_0x3d93b3['t'](_0x5edc16(0x61d))}),jsx(_0x5edc16(0x56e),{'className':_0x5edc16(0x294),'children':jsx(Select,{'className':'univer-w-full','value':String(_0x5ac222),'options':_0x1b591d,'onChange':_0x2a20e1=>{const _0x3a4bea=_0x5edc16;var _0x4b1258;_0x5af0d5(Number(_0x2a20e1)),updateLineShapeData(_0x3146e8,_0x64e37d,_0x384cf2,_0x1ae3d5,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x4b1258=_0x4fd509['ln'])===null||_0x4b1258===void 0x0||(_0x4b1258=_0x4b1258[_0x3a4bea(0x2f2)])===null||_0x4b1258===void 0x0?void 0x0:_0x4b1258[_0x3a4bea(0x634)]}}}},{'ln':{'endArrow':{'size':Number(_0x2a20e1)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x22bfb7=_0x35ea10,_0x5eecc5=useDependency(IDrawingManagerService),[_0x346498,_0x265e22]=useState(_0x5eecc5[_0x22bfb7(0x208)]());useEffect(()=>{const _0x20bb3b=_0x22bfb7,_0x1cb0f3=_0x5eecc5['focus$'][_0x20bb3b(0x58c)](_0x2beec7=>{_0x265e22(_0x2beec7);});return()=>{_0x1cb0f3['unsubscribe']();};},[]);if(_0x346498[_0x22bfb7(0x551)]===0x0)return null;return jsx(_0x22bfb7(0x56e),{'children':jsxs('div',{'className':_0x22bfb7(0x676),'children':[jsx(DrawingCommonPanel,{'drawings':_0x346498,'hasCropper':![]}),jsx(SheetDrawingAnchor,{'drawings':_0x346498})]})});}function ShapeEditPanel(_0x37bc12){const _0x2dcb3c=_0x35ea10,{shapeData:_0xd23561,shapeId:_0x4f280d,shapeType:_0x5478d3,version:_0x5a2c10,unitId:_0x591f36,subUnitId:_0x3b486c,disableShapeOption:_0x5ddbb4}=_0x37bc12,_0x38dd02=useDependency(LocaleService),_0x5763e5=isConnectorShape(_0x5478d3),[_0x38597e,_0x310b86]=useState(0x0),_0x443d69=[{'label':jsx(_0x2dcb3c(0x56e),{'children':_0x38dd02['t'](_0x2dcb3c(0x510))}),'children':jsx(_0x2dcb3c(0x448),{'className':_0x2dcb3c(0x3f0),'children':jsx(ShapeFillEditor,{'shapeId':_0x4f280d,'shapeData':_0xd23561,'isLineShape':_0x5763e5,'subUnitId':_0x3b486c,'unitId':_0x591f36,'disableShapeOption':_0x5ddbb4},_0x4f280d)})},{'label':jsx(_0x2dcb3c(0x56e),{'children':_0x38dd02['t'](_0x2dcb3c(0x65b))}),'children':jsx(_0x2dcb3c(0x448),{'className':_0x2dcb3c(0x3f0),'children':jsx(ShapeLineEditor,{'shapeId':_0x4f280d,'shapeData':_0xd23561,'isLineShape':_0x5763e5,'subUnitId':_0x3b486c,'unitId':_0x591f36,'disableShapeOption':_0x5ddbb4},_0x4f280d)})}];return jsxs(_0x2dcb3c(0x56e),{'className':_0x2dcb3c(0x3e5),'children':[jsxs('div',{'className':'univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','children':[jsxs('div',{'className':clsx(_0x2dcb3c(0x2e9),_0x38597e===0x0?'univer-text-primary-600':_0x2dcb3c(0x383)),'onClick':()=>_0x310b86(0x0),'children':[_0x38dd02['t'](_0x2dcb3c(0x5b0)),jsx('div',{'className':clsx('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md',{'univer-bg-primary-600':_0x38597e===0x0,'univer-bg-transparent':_0x38597e!==0x0})})]}),jsxs(_0x2dcb3c(0x56e),{'className':clsx(_0x2dcb3c(0x2e9),{'univer-text-primary-600':_0x38597e===0x1,'univer-text-gray-500':_0x38597e!==0x1}),'onClick':()=>_0x310b86(0x1),'children':[_0x38dd02['t'](_0x2dcb3c(0x5f2)),jsx(_0x2dcb3c(0x56e),{'className':clsx(_0x2dcb3c(0x518),{'univer-bg-primary-600':_0x38597e===0x1,'univer-bg-transparent':_0x38597e!==0x1})})]})]}),jsx(_0x2dcb3c(0x56e),{'className':_0x2dcb3c(0x417),'children':_0x38597e===0x0?jsx(_0x2dcb3c(0x56e),{'className':'','children':jsx(Accordion,{'items':_0x443d69})},_0x5a2c10):jsx(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends Shape{constructor(_0x204f22,_0x116175){const _0x1bacb9=_0x35ea10;super(_0x204f22,_0x116175),_defineProperty(this,_0x1bacb9(0x212),null),_defineProperty(this,_0x1bacb9(0x521),null),_defineProperty(this,_0x1bacb9(0x58d),null),_defineProperty(this,_0x1bacb9(0x5a1),null);if(_0x116175)this[_0x1bacb9(0x3b4)](_0x116175);}[_0x35ea10(0x2a2)](){const _0x38a2e5=_0x35ea10;return{'unitId':this[_0x38a2e5(0x58d)],'subUnitId':this[_0x38a2e5(0x5a1)],'drawingId':this[_0x38a2e5(0x212)]};}[_0x35ea10(0x3b4)](_0x21bf43){const _0x42d699=_0x35ea10;if(typeof _0x21bf43[_0x42d699(0x54e)]!=='undefined')this['_shapeId']=_0x21bf43[_0x42d699(0x54e)];if(typeof _0x21bf43[_0x42d699(0x3a8)]!==_0x42d699(0x457))this[_0x42d699(0x521)]=_0x21bf43['adjName'];if(typeof _0x21bf43[_0x42d699(0x20a)]!==_0x42d699(0x457))this['_unitId']=_0x21bf43[_0x42d699(0x20a)];if(typeof _0x21bf43[_0x42d699(0x529)]!==_0x42d699(0x457))this[_0x42d699(0x5a1)]=_0x21bf43['subUnitId'];this[_0x42d699(0x5fc)]({'width':_0x21bf43[_0x42d699(0x246)],'height':_0x21bf43[_0x42d699(0x372)]});}[_0x35ea10(0x331)](_0x331cec){const _0x2bd59d=_0x35ea10;Circle[_0x2bd59d(0x568)](_0x331cec,{'radius':ShapeDefaultConfig['adjHandleSize'],'fill':ShapeDefaultConfig[_0x2bd59d(0x4b5)],'stroke':ShapeDefaultConfig[_0x2bd59d(0x1ee)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends Disposable{constructor(_0x475b3d,_0xcc8786,_0x4eb66f,_0x12fee2,_0x533020,_0x12316b,_0xd347f2,_0x7d7b6f){const _0x17705b=_0x35ea10;super(),this[_0x17705b(0x2cf)]=_0x475b3d,this[_0x17705b(0x260)]=_0xcc8786,this[_0x17705b(0x659)]=_0x4eb66f,this[_0x17705b(0x4f6)]=_0x12fee2,this[_0x17705b(0x481)]=_0x533020,this[_0x17705b(0x49f)]=_0x12316b,this['_univerInstanceService']=_0xd347f2,this[_0x17705b(0x4d1)]=_0x7d7b6f,_defineProperty(this,_0x17705b(0x364),null),_defineProperty(this,_0x17705b(0x58d),null),_defineProperty(this,_0x17705b(0x5a1),null),_defineProperty(this,_0x17705b(0x32d),void 0x0),_defineProperty(this,_0x17705b(0x32a),[]),_defineProperty(this,_0x17705b(0x494),0x0),_defineProperty(this,'_baseShapeTop',0x0),_defineProperty(this,_0x17705b(0x284),0x0),_defineProperty(this,_0x17705b(0x38a),0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,_0x17705b(0x391),void 0x0),_defineProperty(this,_0x17705b(0x3c3),void 0x0),_defineProperty(this,'_adjHandlerPointerMove',void 0x0),_defineProperty(this,_0x17705b(0x2c6),void 0x0),_defineProperty(this,_0x17705b(0x497),![]),this[_0x17705b(0x67c)](),this[_0x17705b(0x3cd)]();}[_0x35ea10(0x1f1)](_0x29fff5,_0x5c661c,_0x4dc421){const _0x1cfd25=_0x35ea10,_0xfd79d2=this[_0x1cfd25(0x4f6)][_0x1cfd25(0x5fe)](_0x29fff5,_0x5c661c,_0x4dc421);if(_0xfd79d2)return _0xfd79d2['getDrawingPoints']();}[_0x35ea10(0x595)](){this['_clearShapeAdjustControls']();}[_0x35ea10(0x3e6)](){const _0x1f799d=_0x35ea10;this[_0x1f799d(0x286)](!![]);}['setShouldShowAdjust'](_0x1bdccb){const _0x2f137e=_0x35ea10;this[_0x2f137e(0x497)]=_0x1bdccb;}[_0x35ea10(0x621)](_0x3f9512,_0xef4e4a,_0x4cb71b,_0x21dd93){const _0x4a9424=_0x35ea10,_0x4dfbd2=this[_0x4a9424(0x4f6)][_0x4a9424(0x5fe)](_0x3f9512,_0xef4e4a,_0x4cb71b);if(_0x4dfbd2)return _0x4dfbd2[_0x4a9424(0x41b)](_0x21dd93);}[_0x35ea10(0x656)](_0x125aa2=![]){const _0x5e9a9e=_0x35ea10;if(this['_unitId']===null||this[_0x5e9a9e(0x5a1)]===null||this['_activeShapeId']===null)return;const _0x3ad8be=this['_renderManagerService']['getRenderById'](this[_0x5e9a9e(0x58d)]);if(!_0x3ad8be)return;if(!_0x3ad8be[_0x5e9a9e(0x565)](SheetSkeletonManagerService)[_0x5e9a9e(0x2a5)]())return;const {scene:_0x453c6b}=_0x3ad8be,_0x56d6bd={'unitId':this[_0x5e9a9e(0x58d)],'subUnitId':this[_0x5e9a9e(0x5a1)],'drawingId':this[_0x5e9a9e(0x364)]},_0x2719ac=this['_drawingManagerService'][_0x5e9a9e(0x2e3)](_0x56d6bd),{transform:_0x332612}=_0x2719ac;if(!_0x332612)return;if(_0x2719ac[_0x5e9a9e(0x645)]!==DrawingTypeEnum[_0x5e9a9e(0x29f)])return;const {left:_0x5ca940,top:_0x4819d7,width:_0x1f481e,height:_0x907fd1,flipX:_0x3b5d01,flipY:_0x2c85c2,angle:angle=0x0}=_0x332612;if(_0x5ca940===void 0x0||_0x4819d7===void 0x0)return;if(_0x125aa2)this[_0x5e9a9e(0x32d)]=this[_0x5e9a9e(0x1f1)](this[_0x5e9a9e(0x58d)],this['_subUnitId'],this['_activeShapeId']);const _0x11311e=this[_0x5e9a9e(0x32d)];for(let _0xe0482b=0x0;_0xe0482b<_0x11311e['length'];_0xe0482b++){const _0x1ad43d=_0x11311e[_0xe0482b];let _0x105937=_0x1ad43d['x'],_0x3d4bc8=_0x1ad43d['y'];if(_0x3b5d01)_0x105937=(_0x1f481e||0x0)-_0x105937;if(_0x2c85c2)_0x3d4bc8=(_0x907fd1||0x0)-_0x3d4bc8;if(angle!==0x0){const _0x27c8ac=(_0x1f481e||0x0)/0x2,_0x6a11b3=(_0x907fd1||0x0)/0x2,_0x23c630=angle*Math['PI']/0xb4,_0x57079f=Math[_0x5e9a9e(0x25d)](_0x23c630),_0x86775d=Math[_0x5e9a9e(0x5f7)](_0x23c630),_0xddc861=_0x105937-_0x27c8ac,_0x398c19=_0x3d4bc8-_0x6a11b3;_0x105937=_0x27c8ac+(_0xddc861*_0x57079f-_0x398c19*_0x86775d),_0x3d4bc8=_0x6a11b3+(_0xddc861*_0x86775d+_0x398c19*_0x57079f);}const _0xb933ae={'x':_0x105937,'y':_0x3d4bc8,'adjName':_0x1ad43d[_0x5e9a9e(0x3a8)]};this[_0x5e9a9e(0x27a)](_0x453c6b,_0xb933ae,_0xb933ae[_0x5e9a9e(0x3a8)],_0x5ca940,_0x4819d7,this['_unitId'],this[_0x5e9a9e(0x5a1)]);}}[_0x35ea10(0x286)](_0x3061a3=![]){const _0x5e0709=_0x35ea10;_0x3061a3&&(this[_0x5e0709(0x532)](),this[_0x5e0709(0x656)](_0x3061a3));}[_0x35ea10(0x27a)](_0x536348,_0x5ce372,_0x3ec538,_0x563500,_0x4cffd8,_0x2dd8f5,_0x4bed80){const _0xed9e6d=_0x35ea10;if(!this[_0xed9e6d(0x364)])return;const _0x19259a=_0x536348[_0xed9e6d(0x5fd)](_0xed9e6d(0x34b)+this[_0xed9e6d(0x364)]+'-'+_0x3ec538);if(_0x19259a){_0x19259a['transformByState']({'left':_0x5ce372['x']+_0x563500-ShapeDefaultConfig[_0xed9e6d(0x345)],'top':_0x5ce372['y']+_0x4cffd8-ShapeDefaultConfig['adjHandleSize']});return;}const _0x24e30e={'left':_0x5ce372['x']+_0x563500-ShapeDefaultConfig[_0xed9e6d(0x345)],'top':_0x5ce372['y']+_0x4cffd8-ShapeDefaultConfig[_0xed9e6d(0x345)],'adjName':_0x3ec538,'shapeId':this[_0xed9e6d(0x364)],'unitId':_0x2dd8f5,'subUnitId':_0x4bed80,'width':ShapeDefaultConfig['adjHandleSize']+0x8,'height':ShapeDefaultConfig[_0xed9e6d(0x345)]+0x8,'zIndex':DRAWING_OBJECT_LAYER_INDEX+0x1,'evented':!![]},_0x2b2151=new SheetShapeAdjustPointObject(_0xed9e6d(0x34b)+this[_0xed9e6d(0x364)]+'-'+_0x3ec538,_0x24e30e);this[_0xed9e6d(0x32a)]['push'](_0x2b2151),this['_attachAdjustEvent'](_0x2b2151,_0x536348,_0x3ec538),_0x536348[_0xed9e6d(0x425)](_0x2b2151,DRAWING_OBJECT_LAYER_INDEX+0x1);}[_0x35ea10(0x532)](){const _0x308c35=_0x35ea10;if(this[_0x308c35(0x32a)]['length']===0x0)return;this[_0x308c35(0x32a)]['forEach'](_0x4aa10f=>{_0x4aa10f['dispose']();}),this[_0x308c35(0x32a)]=[];}[_0x35ea10(0x42e)](){this['_createShapeAdjustControls']();}[_0x35ea10(0x5b3)](_0x5514a7,_0x344b14){const _0x39cad5=_0x35ea10;var _0x34d161;const _0x391664={'x':0x0,'y':0x0};if(!_0x5514a7||!_0x344b14)return _0x391664;const _0x5d1cfc=this[_0x39cad5(0x481)][_0x39cad5(0x43a)](_0x5514a7);if(!_0x5d1cfc)return _0x391664;if(!_0x5d1cfc[_0x39cad5(0x565)](SheetSkeletonManagerService)[_0x39cad5(0x39f)](_0x344b14))return _0x391664;const _0xcb9856=_0x5d1cfc['with'](SheetScrollManagerService),_0x2ea863=_0xcb9856===null||_0xcb9856===void 0x0?void 0x0:_0xcb9856[_0x39cad5(0x56d)]();if(!_0x2ea863)return _0x391664;const _0x2e9615=(_0x34d161=this['_univerInstanceService']['getUnit'](_0x5514a7))===null||_0x34d161===void 0x0?void 0x0:_0x34d161[_0x39cad5(0x578)](_0x344b14);if(!_0x2e9615)return _0x391664;const _0x4af8aa=getViewportByCell(_0x2ea863['sheetViewStartRow'],_0x2ea863[_0x39cad5(0x5cb)],_0x5d1cfc[_0x39cad5(0x552)],_0x2e9615);if(!_0x4af8aa)return _0x391664;return{'x':_0x4af8aa[_0x39cad5(0x539)],'y':_0x4af8aa[_0x39cad5(0x292)]};}[_0x35ea10(0x66a)](_0x29f0ea,_0x215671){const _0x291265=_0x35ea10;var _0x156c4a,_0x5dea15;const _0x40d114=(_0x156c4a=this[_0x291265(0x4c0)]['getUnit'](_0x29f0ea))===null||_0x156c4a===void 0x0?void 0x0:_0x156c4a[_0x291265(0x578)](_0x215671);return(_0x5dea15=_0x40d114===null||_0x40d114===void 0x0?void 0x0:_0x40d114[_0x291265(0x45b)]())!==null&&_0x5dea15!==void 0x0?_0x5dea15:0x1;}[_0x35ea10(0x65e)](_0x2d656f,_0x299474,_0x42c8a9){const _0x4267f9=_0x35ea10;this[_0x4267f9(0x44f)](toDisposable(_0x2d656f[_0x4267f9(0x2b3)][_0x4267f9(0x1f9)]((_0x133a47,_0x3699aa)=>{const _0x4b4568=_0x4267f9;var _0x34551a,_0xf94cfc,_0x14b907,_0x3d1e12;const _0x197054=_0x2d656f[_0x4b4568(0x2a2)]();this[_0x4b4568(0x391)]=this['_getShapeAdjustInfosById'](_0x197054[_0x4b4568(0x20a)],_0x197054[_0x4b4568(0x529)],_0x197054[_0x4b4568(0x2ef)],_0x42c8a9),this[_0x4b4568(0x3c3)]=this[_0x4b4568(0x4f6)]['getShapeModel'](_0x197054[_0x4b4568(0x20a)],_0x197054[_0x4b4568(0x529)],_0x197054[_0x4b4568(0x2ef)]);const _0x987544=this[_0x4b4568(0x659)]['getDrawingByParam']({'unitId':this[_0x4b4568(0x58d)],'subUnitId':this[_0x4b4568(0x5a1)],'drawingId':this['_activeShapeId']}),{transform:_0x338005}=_0x987544;if(_0x338005){const {left:_0x59a638,top:_0x31d105,width:_0x269412,height:_0x23efd4}=_0x338005;this['_baseShapeLeft']=_0x59a638||0x0,this[_0x4b4568(0x5d6)]=_0x31d105||0x0,this['_baseShapeWidth']=_0x269412||0x0,this[_0x4b4568(0x38a)]=_0x23efd4||0x0;}const _0x4b5b8e=Boolean((_0x34551a=_0x987544[_0x4b4568(0x27b)])===null||_0x34551a===void 0x0?void 0x0:_0x34551a[_0x4b4568(0x53a)]),_0x4c378d=Boolean((_0xf94cfc=_0x987544[_0x4b4568(0x27b)])===null||_0xf94cfc===void 0x0?void 0x0:_0xf94cfc[_0x4b4568(0x4ba)]),_0x4448b3=((_0x14b907=_0x987544[_0x4b4568(0x27b)])===null||_0x14b907===void 0x0?void 0x0:_0x14b907[_0x4b4568(0x3bd)])||0x0;this['_isStartAdjusting']=!![],_0x299474[_0x4b4568(0x4a0)]();const _0x8bfe6b=(_0x3d1e12=this[_0x4b4568(0x3c3)])===null||_0x3d1e12===void 0x0?void 0x0:_0x3d1e12[_0x4b4568(0x68e)](_0x42c8a9),_0x2feba2={[_0x42c8a9]:_0x8bfe6b};this[_0x4b4568(0x596)]=_0x299474[_0x4b4568(0x476)][_0x4b4568(0x1f9)]((_0x25622f,_0x342ac2)=>{const _0x1e6639=_0x4b4568;if(!this[_0x1e6639(0x690)])return;const {offsetX:_0x5d551f,offsetY:_0x541202}=_0x25622f,_0x2365cd=this[_0x1e6639(0x391)];if(this[_0x1e6639(0x3c3)]&&_0x2365cd){_0x299474[_0x1e6639(0x4a0)](),_0x299474[_0x1e6639(0x347)](CURSOR_TYPE[_0x1e6639(0x468)]);const _0x1ed175={'left':0x0,'top':0x0,'width':this[_0x1e6639(0x284)],'height':this['_baseShapeHeight']},_0x4c2288=this[_0x1e6639(0x5b3)](this['_unitId'],this[_0x1e6639(0x5a1)]),_0x312105=this[_0x1e6639(0x66a)](this[_0x1e6639(0x58d)],this[_0x1e6639(0x5a1)]);let _0x1a1367=_0x5d551f/_0x312105+_0x4c2288['x']-this[_0x1e6639(0x494)],_0x122297=_0x541202/_0x312105+_0x4c2288['y']-this[_0x1e6639(0x5d6)];if(_0x4448b3!==0x0){const _0x177345=this[_0x1e6639(0x284)]/0x2,_0x26fd0a=this[_0x1e6639(0x38a)]/0x2,_0x5ddb11=_0x4448b3*Math['PI']/0xb4,_0x4c5041=Math[_0x1e6639(0x25d)](_0x5ddb11),_0x58a9da=Math[_0x1e6639(0x5f7)](_0x5ddb11),_0x345d97=_0x1a1367-_0x177345,_0x4af4fd=_0x122297-_0x26fd0a;_0x1a1367=_0x177345+(_0x345d97*_0x4c5041+_0x4af4fd*_0x58a9da),_0x122297=_0x26fd0a+(-_0x345d97*_0x58a9da+_0x4af4fd*_0x4c5041);}if(_0x4b5b8e)_0x1a1367=this[_0x1e6639(0x284)]-_0x1a1367;if(_0x4c378d)_0x122297=this[_0x1e6639(0x38a)]-_0x122297;const _0x5079fc={'x':_0x1a1367,'y':_0x122297},_0x6623d9=this['_activeShapeModel'][_0x1e6639(0x1f8)](_0x1ed175,_0x5079fc,_0x2365cd,_0x4b5b8e,_0x4c378d),_0x22421d=_0x2365cd[_0x1e6639(0x330)]||_0x2365cd[_0x1e6639(0x4bf)]||_0x2365cd['gdRefAng']||_0x2365cd[_0x1e6639(0x1f0)];if(_0x22421d===void 0x0)return;this[_0x1e6639(0x3c3)][_0x1e6639(0x1eb)](_0x22421d,_0x6623d9);const _0x2c0211=this[_0x1e6639(0x659)][_0x1e6639(0x2e3)]({'unitId':_0x197054['unitId'],'subUnitId':_0x197054[_0x1e6639(0x529)],'drawingId':_0x197054[_0x1e6639(0x2ef)]});_0x2c0211&&(this[_0x1e6639(0x49f)][_0x1e6639(0x28c)](_0x2c0211,_0x299474),this[_0x1e6639(0x32d)]=this[_0x1e6639(0x1f1)](_0x197054['unitId'],_0x197054[_0x1e6639(0x529)],_0x197054['drawingId']),this[_0x1e6639(0x42e)]());}_0x342ac2[_0x1e6639(0x322)]();}),this[_0x4b4568(0x2c6)]=_0x299474[_0x4b4568(0x349)]['subscribeEvent']((_0x6ace8,_0xe7d808)=>{const _0x59542a=_0x4b4568;this[_0x59542a(0x596)]['unsubscribe'](),this[_0x59542a(0x2c6)][_0x59542a(0x360)](),_0x299474[_0x59542a(0x55c)]();const _0xa00a54=this[_0x59542a(0x391)];if(_0xa00a54){const _0x25f3a0=_0x197054[_0x59542a(0x20a)],_0x58180e=_0x197054['subUnitId'],_0x34687c=_0x197054[_0x59542a(0x2ef)],_0x3c9e04=_0xa00a54[_0x59542a(0x330)]||_0xa00a54[_0x59542a(0x4bf)]||_0xa00a54['gdRefAng']||_0xa00a54[_0x59542a(0x1f0)];if(_0x3c9e04!==void 0x0){var _0xaee2c6;const _0x3f900f=(_0xaee2c6=this[_0x59542a(0x3c3)])===null||_0xaee2c6===void 0x0?void 0x0:_0xaee2c6['getAdjustValueByName'](_0x3c9e04);if(_0x3f900f!==void 0x0)updateShapeData(this[_0x59542a(0x4d1)],_0x25f3a0,_0x58180e,_0x34687c,{'oldShapeData':{'adjustValues':_0x2feba2}},{'adjustValues':{[_0x3c9e04]:_0x3f900f}});}}this[_0x59542a(0x391)]=void 0x0,this[_0x59542a(0x3c3)]=void 0x0,this[_0x59542a(0x690)]=![],_0xe7d808[_0x59542a(0x322)](),_0x299474[_0x59542a(0x4ee)]();}),_0x3699aa['stopPropagation']();})));}[_0x35ea10(0x3cd)](){const _0x48fa02=_0x35ea10,_0x3a1e6b=this[_0x48fa02(0x4c0)][_0x48fa02(0x5e2)](UniverInstanceType[_0x48fa02(0x370)]);this['disposeWithMe'](_0x3a1e6b[_0x48fa02(0x316)](switchMap(_0x3d00c8=>{const _0x26f1bd=_0x48fa02;if(!_0x3d00c8)return EMPTY;return _0x3d00c8[_0x26f1bd(0x56a)][_0x26f1bd(0x316)](switchMap(_0x206836=>{const _0x5d7424=_0x26f1bd;if(!_0x206836)return EMPTY;const _0x600596=_0x3d00c8[_0x5d7424(0x3bc)](),_0x2b41c3=this[_0x5d7424(0x481)]['getRenderById'](_0x600596),_0x548ec7=_0x2b41c3===null||_0x2b41c3===void 0x0?void 0x0:_0x2b41c3[_0x5d7424(0x552)];if(!_0x548ec7)return EMPTY;return of(_0x548ec7);}));}))[_0x48fa02(0x58c)](_0x1a364b=>{const _0x34022f=_0x48fa02,_0x28dc7b=_0x1a364b[_0x34022f(0x5c9)]();this[_0x34022f(0x44f)](_0x1a364b[_0x34022f(0x476)][_0x34022f(0x1f9)](()=>{const _0x25fb30=_0x34022f;if(this[_0x25fb30(0x497)]){}})),this[_0x34022f(0x44f)](_0x28dc7b[_0x34022f(0x41e)]['subscribe'](_0x54492f=>{const _0x141459=_0x34022f,{objects:_0x1712f1}=_0x54492f;this['_createShapeAdjustControls']();if(_0x1712f1!==null&&_0x1712f1[_0x141459(0x634)]===0x1){if(_0x1712f1['values']()[_0x141459(0x654)]()[_0x141459(0x2cb)]instanceof DrawingShape)this[_0x141459(0x52f)](!![]);}})),this[_0x34022f(0x44f)](_0x28dc7b[_0x34022f(0x493)][_0x34022f(0x58c)](()=>{const _0x215509=_0x34022f;if(this[_0x215509(0x497)])this[_0x215509(0x532)]();})),this['disposeWithMe'](_0x1a364b[_0x34022f(0x349)][_0x34022f(0x1f9)](()=>{const _0x464335=_0x34022f;this[_0x464335(0x497)]&&(this[_0x464335(0x52f)](![]),this['_createShapeAdjustControls']());})),this[_0x34022f(0x44f)](_0x28dc7b[_0x34022f(0x54d)][_0x34022f(0x58c)](()=>{const _0x4335c3=_0x34022f;this[_0x4335c3(0x58d)]&&this['_subUnitId']&&this[_0x4335c3(0x364)]&&(this[_0x4335c3(0x659)][_0x4335c3(0x2e3)]({'unitId':this[_0x4335c3(0x58d)],'subUnitId':this[_0x4335c3(0x5a1)],'drawingId':this[_0x4335c3(0x364)]})&&(this[_0x4335c3(0x32d)]=this[_0x4335c3(0x1f1)](this['_unitId'],this[_0x4335c3(0x5a1)],this['_activeShapeId']),this[_0x4335c3(0x42e)]()));}));}));}[_0x35ea10(0x67c)](){const _0x5f0cc6=_0x35ea10;this['disposeWithMe'](this[_0x5f0cc6(0x659)][_0x5f0cc6(0x655)]['subscribe'](_0x4cea4a=>{const _0x3f91d1=_0x5f0cc6;if(_0x4cea4a[_0x3f91d1(0x551)]===0x1){const _0x501322=_0x4cea4a[0x0];if(_0x501322['drawingType']===DrawingTypeEnum[_0x3f91d1(0x29f)]){this[_0x3f91d1(0x364)]=_0x501322[_0x3f91d1(0x2ef)];const {unitId:_0x593240,subUnitId:_0x5c2283}=_0x501322;this[_0x3f91d1(0x32d)]=this[_0x3f91d1(0x1f1)](_0x593240,_0x5c2283,this[_0x3f91d1(0x364)]),this[_0x3f91d1(0x58d)]=_0x593240,this['_subUnitId']=_0x5c2283,this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls']();}else this['_activeShapeId']=null,this[_0x3f91d1(0x32d)]=void 0x0,this['_unitId']=null,this[_0x3f91d1(0x5a1)]=null,this[_0x3f91d1(0x532)]();}(_0x4cea4a['length']>0x1||_0x4cea4a['length']===0x0)&&(this[_0x3f91d1(0x364)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3f91d1(0x58d)]=null,this['_subUnitId']=null,this[_0x3f91d1(0x532)]());})),this[_0x5f0cc6(0x44f)](this['_drawingManagerService'][_0x5f0cc6(0x23c)][_0x5f0cc6(0x58c)](_0x5088be=>{const _0x2c1dce=_0x5f0cc6;if(_0x5088be['length']===0x1){var _0x4480e6;const _0x35b8f6=_0x5088be[0x0];if(((_0x4480e6=this[_0x2c1dce(0x659)][_0x2c1dce(0x2e3)](_0x35b8f6))===null||_0x4480e6===void 0x0?void 0x0:_0x4480e6[_0x2c1dce(0x645)])===DrawingTypeEnum['DRAWING_SHAPE'])this[_0x2c1dce(0x286)](!![]);}})),this[_0x5f0cc6(0x44f)](this[_0x5f0cc6(0x659)][_0x5f0cc6(0x629)]['subscribe'](_0x142934=>{const _0x490e9b=_0x5f0cc6;for(const _0x5884f5 of _0x142934)this[_0x490e9b(0x364)]===_0x5884f5[_0x490e9b(0x2ef)]&&(this['_activeShapeId']=null,this[_0x490e9b(0x32d)]=void 0x0,this[_0x490e9b(0x58d)]=null,this[_0x490e9b(0x5a1)]=null,this['_clearShapeAdjustControls']());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,IContextService),__decorateParam(0x2,IDrawingManagerService),__decorateParam(0x3,Inject(SheetsShapeService)),__decorateParam(0x4,Inject(IRenderManagerService)),__decorateParam(0x5,Inject(SheetDrawingShapeRenderController)),__decorateParam(0x6,IUniverInstanceService),__decorateParam(0x7,ICommandService)],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':'drawing.operation.set-drawing-active','type':CommandType[_0x35ea10(0x64d)],'handler':(_0x289af9,_0x43af08)=>{const _0x39216=_0x35ea10,_0x34a1af=_0x289af9[_0x39216(0x653)](IDrawingManagerService),_0x1c7364=_0x289af9[_0x39216(0x653)](IRenderManagerService),_0x48d6b1=_0x289af9[_0x39216(0x653)](SheetShapeAdjustController);if(_0x43af08==null)return!![];if(_0x43af08[_0x39216(0x551)]>0x0){var _0x34ad37;const _0x39d6f3=(_0x34ad37=_0x1c7364[_0x39216(0x43a)](_0x43af08[0x0][_0x39216(0x20a)]))===null||_0x34ad37===void 0x0?void 0x0:_0x34ad37[_0x39216(0x552)];if(_0x39d6f3){const {unitId:_0x4b5325,subUnitId:_0x3516fb,drawingId:_0x41d077}=_0x43af08[0x0],_0x2208b9=getDrawingShapeKeyByDrawingSearch({'unitId':_0x4b5325,'subUnitId':_0x3516fb,'drawingId':_0x41d077},void 0x0),_0x2815d5=_0x39d6f3['getObjectIncludeInGroup'](_0x2208b9);if(_0x2815d5){var _0x24ce9a;(_0x24ce9a=_0x1c7364[_0x39216(0x43a)](_0x43af08[0x0][_0x39216(0x20a)]))===null||_0x24ce9a===void 0x0||(_0x24ce9a=_0x24ce9a[_0x39216(0x552)][_0x39216(0x60e)]())===null||_0x24ce9a===void 0x0||_0x24ce9a[_0x39216(0x2ae)](_0x2815d5);}}_0x34a1af['focusDrawing'](_0x43af08),_0x48d6b1['setShouldShowAdjust'](![]);}return!![];}},MenuInsertShapeCommand={'type':CommandType['COMMAND'],'id':_0x35ea10(0x2ff),'handler':async(_0x45d500,_0x3abfe9)=>{const _0x4cd97d=_0x35ea10,_0x3cd2e4=getSheetCommandTarget(_0x45d500[_0x4cd97d(0x653)](IUniverInstanceService));if(!_0x3cd2e4)return![];const _0x3fb031=_0x45d500[_0x4cd97d(0x653)](SheetsSelectionsService)['getCurrentLastSelection']();if(!_0x3fb031)return![];const _0x38a078=_0x45d500[_0x4cd97d(0x653)](ICommandService),{unitId:_0xb4452,subUnitId:_0x10faa1}=_0x3cd2e4,{value:_0x4dd929,enhanceParams:_0x21bf7b}=_0x3abfe9,{range:_0x155cbd}=_0x3fb031,_0x27e5fa={'unitId':_0xb4452,'subUnitId':_0x10faa1,'shapeType':_0x4dd929,'range':_0x155cbd,'shapeId':generateRandomId()};if(_0x21bf7b){const _0x147c4c=isConnectorShape(_0x4dd929),_0x3fc3ed=_0x4dd929===ShapeTypeEnum[_0x4cd97d(0x3a3)];if(_0x147c4c&&(_0x21bf7b[_0x4cd97d(0x57e)]||_0x21bf7b['endArrow']))_0x27e5fa[_0x4cd97d(0x2fb)]={'ln':{'startArrow':_0x21bf7b['startArrow']?{'type':ShapeArrowTypeEnum['Arrow'],'size':ShapeArrowSizeEnum[_0x4cd97d(0x59b)]}:void 0x0,'endArrow':_0x21bf7b[_0x4cd97d(0x2f2)]?{'type':ShapeArrowTypeEnum[_0x4cd97d(0x2c5)],'size':ShapeArrowSizeEnum['Large']}:void 0x0}};if(_0x3fc3ed&&(_0x21bf7b['horizontal']||_0x21bf7b[_0x4cd97d(0x668)]))_0x27e5fa[_0x4cd97d(0x2fb)]={'fill':{'fillType':ShapeFillEnum[_0x4cd97d(0x29c)],'color':_0x4cd97d(0x27d)},'stroke':{'lineStrokeType':ShapeLineTypeEnum[_0x4cd97d(0x323)],'width':0x1,'color':_0x4cd97d(0x479)},'shapeText':{'isHorizontal':!!_0x21bf7b[_0x4cd97d(0x334)]}};}const _0x2c0611=_0x38a078[_0x4cd97d(0x58e)](InsertShapeCommand['id'],_0x27e5fa);return setTimeout(()=>{const _0x18cdc6=_0x4cd97d;_0x38a078[_0x18cdc6(0x51d)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0xb4452,'subUnitId':_0x10faa1,'drawingId':_0x27e5fa[_0x18cdc6(0x54e)]}]);},0xc8),_0x2c0611;}};let ImageShapeClipController=class ImageShapeClipController extends Disposable{constructor(_0x521c35,_0x541b00){const _0x3a8ba6=_0x35ea10;super(),this[_0x3a8ba6(0x4a3)]=_0x521c35,this[_0x3a8ba6(0x659)]=_0x541b00,this[_0x3a8ba6(0x5db)](),this['_clipService'][_0x3a8ba6(0x2a1)](!![]),this[_0x3a8ba6(0x44f)]({'dispose':()=>this[_0x3a8ba6(0x4a3)][_0x3a8ba6(0x2a1)](![])});}[_0x35ea10(0x5db)](){const _0x5a44cb=_0x35ea10,_0x286d21=this[_0x5a44cb(0x4a3)],_0x3a50f0=new Map(),_0x36df18=_0x286d21[_0x5a44cb(0x2cd)]((_0x520153,_0x3107b7,_0x353f60,_0x1ef300,_0x110e4a)=>{const _0xf8299c=_0x5a44cb,_0x16ab4c=_0x3107b7;if(_0x16ab4c===ShapeTypeEnum[_0xf8299c(0x358)]||_0x3107b7===_0xf8299c(0x49b))return![];try{let _0x336455=_0x3a50f0[_0xf8299c(0x653)](_0x3107b7);!_0x336455&&(_0x336455=new ShapeModel(_0x16ab4c,'clip-'+_0x3107b7),_0x3a50f0[_0xf8299c(0x505)](_0x3107b7,_0x336455));if(_0x110e4a)_0x336455['setShapeData']({'adjustValues':_0x110e4a},!![]);return _0x336455[_0xf8299c(0x522)]({'width':_0x353f60,'height':_0x1ef300}),_0x336455[_0xf8299c(0x4b1)](_0x520153,{'left':0x0,'top':0x0,'width':_0x353f60,'height':_0x1ef300});}catch{return![];}});this[_0x5a44cb(0x44f)](_0x36df18),this[_0x5a44cb(0x44f)]({'dispose':()=>_0x3a50f0[_0x5a44cb(0x66e)]()});}[_0x35ea10(0x5e6)](_0x1891a4,_0x49aef3,_0x5a351c,_0x38cc40,_0x5980ae){const _0x28f20d=_0x35ea10,_0x13a919=this[_0x28f20d(0x659)]['getDrawingData'](_0x1891a4,_0x49aef3);if(!_0x13a919[_0x5a351c])return;const _0x3baddb={..._0x13a919[_0x5a351c],'prstGeom':_0x38cc40,'adjustValues':_0x5980ae};this[_0x28f20d(0x659)]['featurePluginUpdateNotification']([_0x3baddb]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,Inject(DrawingImageClipService)),__decorateParam(0x1,Inject(IDrawingManagerService))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0x35ea10(0x343),'type':ShapeTypeEnum[_0x35ea10(0x24e)],'icon':_0x35ea10(0x238),'name':_0x35ea10(0x4cf)},{'group':'line','type':ShapeTypeEnum[_0x35ea10(0x54f)],'icon':_0x35ea10(0x636),'name':_0x35ea10(0x26c),'endArrow':!![]},{'group':_0x35ea10(0x343),'type':ShapeTypeEnum[_0x35ea10(0x54f)],'icon':_0x35ea10(0x350),'name':_0x35ea10(0x407),'endArrow':!![],'startArrow':!![]},{'group':'line','type':ShapeTypeEnum[_0x35ea10(0x2d3)],'icon':_0x35ea10(0x575),'name':'shape.type.bent-connector3'},{'group':_0x35ea10(0x343),'type':ShapeTypeEnum['BentConnector3'],'icon':'ShapeBentConnector3Arrow1Icon','name':_0x35ea10(0x4a9),'endArrow':!![]},{'group':_0x35ea10(0x343),'type':ShapeTypeEnum['BentConnector3'],'icon':_0x35ea10(0x62f),'name':'shape.type.bent-connector3-arrow2','endArrow':!![],'startArrow':!![]},{'group':_0x35ea10(0x343),'type':ShapeTypeEnum[_0x35ea10(0x42f)],'icon':_0x35ea10(0x25f),'name':_0x35ea10(0x4eb)},{'group':_0x35ea10(0x343),'type':ShapeTypeEnum[_0x35ea10(0x42f)],'icon':'ShapeCurvedConnector3Arrow1Icon','name':_0x35ea10(0x4dd),'endArrow':!![]},{'group':_0x35ea10(0x343),'type':ShapeTypeEnum['CurvedConnector3'],'icon':_0x35ea10(0x5ac),'name':'shape.type.curved-connector3-arrow2','endArrow':!![],'startArrow':!![]},{'group':_0x35ea10(0x66d),'type':ShapeTypeEnum[_0x35ea10(0x3a3)],'icon':_0x35ea10(0x5dd),'name':_0x35ea10(0x4e0)},{'group':_0x35ea10(0x66d),'type':ShapeTypeEnum[_0x35ea10(0x242)],'icon':_0x35ea10(0x2cc),'name':_0x35ea10(0x642)},{'group':_0x35ea10(0x66d),'type':ShapeTypeEnum[_0x35ea10(0x558)],'icon':_0x35ea10(0x5f3),'name':'shape.type.snip1-rect'},{'group':_0x35ea10(0x66d),'type':ShapeTypeEnum['Snip2SameRect'],'icon':_0x35ea10(0x381),'name':_0x35ea10(0x337)},{'group':'rectangle','type':ShapeTypeEnum['Snip2DiagRect'],'icon':_0x35ea10(0x496),'name':_0x35ea10(0x409)},{'group':'rectangle','type':ShapeTypeEnum[_0x35ea10(0x483)],'icon':_0x35ea10(0x33c),'name':'shape.type.snip-round-rect'},{'group':_0x35ea10(0x66d),'type':ShapeTypeEnum[_0x35ea10(0x4d0)],'icon':_0x35ea10(0x44b),'name':'shape.type.round1-rect'},{'group':_0x35ea10(0x66d),'type':ShapeTypeEnum[_0x35ea10(0x2ba)],'icon':_0x35ea10(0x52e),'name':_0x35ea10(0x422)},{'group':_0x35ea10(0x66d),'type':ShapeTypeEnum[_0x35ea10(0x52d)],'icon':_0x35ea10(0x1e9),'name':_0x35ea10(0x354)},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x3a3)],'icon':_0x35ea10(0x3dc),'name':_0x35ea10(0x2d7),'horizontal':!![]},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x3a3)],'icon':_0x35ea10(0x394),'name':_0x35ea10(0x67f),'vertical':!![]},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['Ellipse'],'icon':'ShapeEllipseIcon','name':_0x35ea10(0x525)},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x36f)],'icon':'ShapeTriangleIcon','name':_0x35ea10(0x4a1)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x379)],'icon':_0x35ea10(0x329),'name':_0x35ea10(0x3d0)},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x38d)],'icon':_0x35ea10(0x413),'name':_0x35ea10(0x37f)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x623)],'icon':_0x35ea10(0x514),'name':_0x35ea10(0x2fc)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['Diamond'],'icon':'ShapeDiamondIcon','name':_0x35ea10(0x4ae)},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x48b)],'icon':_0x35ea10(0x400),'name':'shape.type.pentagon'},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x4f9)],'icon':_0x35ea10(0x3ca),'name':_0x35ea10(0x508)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['Heptagon'],'icon':_0x35ea10(0x357),'name':'shape.type.heptagon'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x325)],'icon':'ShapeOctagonIcon','name':_0x35ea10(0x22d)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['Decagon'],'icon':_0x35ea10(0x473),'name':_0x35ea10(0x50c)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['Dodecagon'],'icon':_0x35ea10(0x506),'name':_0x35ea10(0x324)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x1fe)],'icon':_0x35ea10(0x1f2),'name':'shape.type.pie'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x5d8)],'icon':_0x35ea10(0x1e8),'name':'shape.type.chord'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x662)],'icon':_0x35ea10(0x211),'name':_0x35ea10(0x515)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['Frame'],'icon':_0x35ea10(0x632),'name':_0x35ea10(0x471)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x282)],'icon':'ShapeHalfFrameIcon','name':'shape.type.half-frame'},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x460)],'icon':_0x35ea10(0x3cf),'name':_0x35ea10(0x392)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x1f5)],'icon':_0x35ea10(0x458),'name':_0x35ea10(0x4ff)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x501)],'icon':'ShapePlusIcon','name':'shape.type.plus'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x207)],'icon':_0x35ea10(0x5da),'name':'shape.type.plaque'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['Can'],'icon':_0x35ea10(0x30e),'name':'shape.type.can'},{'group':'basicShape','type':ShapeTypeEnum['Cube'],'icon':_0x35ea10(0x37c),'name':_0x35ea10(0x22b)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x437)],'icon':_0x35ea10(0x4cd),'name':_0x35ea10(0x3a5)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['Donut'],'icon':'ShapeDonutIcon','name':_0x35ea10(0x47e)},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x638)],'icon':'ShapeNoSmokingIcon','name':_0x35ea10(0x239)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x20e)],'icon':_0x35ea10(0x2e8),'name':'shape.type.block-arc'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x37e)],'icon':_0x35ea10(0x4d3),'name':'shape.type.folder-corner'},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x48e)],'icon':_0x35ea10(0x478),'name':_0x35ea10(0x524)},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x562)],'icon':_0x35ea10(0x2f4),'name':'shape.type.heart'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['LightningBolt'],'icon':_0x35ea10(0x261),'name':'shape.type.lightning-bolt'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x637)],'icon':_0x35ea10(0x33e),'name':_0x35ea10(0x46f)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x300)],'icon':_0x35ea10(0x298),'name':_0x35ea10(0x2a9)},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x23b)],'icon':_0x35ea10(0x620),'name':_0x35ea10(0x353)},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x308)],'icon':_0x35ea10(0x5ff),'name':'shape.type.arc'},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x4c4)],'icon':'ShapeBracketPairIcon','name':'shape.type.bracket-pair'},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x4d9)],'icon':_0x35ea10(0x608),'name':'shape.type.brace-pair'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum[_0x35ea10(0x3e4)],'icon':_0x35ea10(0x543),'name':'shape.type.left-bracket'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['RightBracket'],'icon':'ShapeRightBracketIcon','name':'shape.type.right-bracket'},{'group':_0x35ea10(0x485),'type':ShapeTypeEnum['LeftBrace'],'icon':'ShapeLeftBraceIcon','name':_0x35ea10(0x296)},{'group':'basicShape','type':ShapeTypeEnum[_0x35ea10(0x255)],'icon':'ShapeRightBraceIcon','name':_0x35ea10(0x46c)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x694)],'icon':_0x35ea10(0x424),'name':_0x35ea10(0x30d)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x24c)],'icon':_0x35ea10(0x593),'name':_0x35ea10(0x1fd)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x5d9)],'icon':_0x35ea10(0x32b),'name':_0x35ea10(0x4f4)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x23a)],'icon':_0x35ea10(0x272),'name':_0x35ea10(0x4d5)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum['LeftRightArrow'],'icon':_0x35ea10(0x563),'name':'shape.type.left-right-arrow'},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x455)],'icon':_0x35ea10(0x55e),'name':_0x35ea10(0x4e3)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x2d8)],'icon':_0x35ea10(0x451),'name':'shape.type.quad-arrow'},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x2ed)],'icon':_0x35ea10(0x38e),'name':_0x35ea10(0x295)},{'group':'blockArrow','type':ShapeTypeEnum[_0x35ea10(0x464)],'icon':_0x35ea10(0x65a),'name':_0x35ea10(0x21e)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum['UturnArrow'],'icon':_0x35ea10(0x1f3),'name':_0x35ea10(0x3a0)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum['LeftUpArrow'],'icon':_0x35ea10(0x5b8),'name':_0x35ea10(0x5cf)},{'group':'blockArrow','type':ShapeTypeEnum[_0x35ea10(0x511)],'icon':_0x35ea10(0x432),'name':_0x35ea10(0x53d)},{'group':'blockArrow','type':ShapeTypeEnum[_0x35ea10(0x271)],'icon':_0x35ea10(0x526),'name':'shape.type.curved-right-arrow'},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x3ac)],'icon':_0x35ea10(0x4b7),'name':_0x35ea10(0x616)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x605)],'icon':'ShapeCurvedUpArrowIcon','name':_0x35ea10(0x441)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x466)],'icon':_0x35ea10(0x68d),'name':_0x35ea10(0x571)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x5eb)],'icon':_0x35ea10(0x56f),'name':'shape.type.striped-right-arrow'},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x335)],'icon':_0x35ea10(0x29b),'name':'shape.type.notched-right-arrow'},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x472)],'icon':'ShapeHomePlateIcon','name':_0x35ea10(0x4c5)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum['Chevron'],'icon':'ShapeChevronIcon','name':_0x35ea10(0x480)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum['RightArrowCallout'],'icon':'ShapeRightArrowCalloutIcon','name':_0x35ea10(0x62b)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x3ea)],'icon':'ShapeDownArrowCalloutIcon','name':_0x35ea10(0x3f9)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x51a)],'icon':_0x35ea10(0x3c0),'name':'shape.type.left-arrow-callout'},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x3b7)],'icon':_0x35ea10(0x336),'name':'shape.type.up-arrow-callout'},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum[_0x35ea10(0x47f)],'icon':_0x35ea10(0x37b),'name':_0x35ea10(0x26d)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum['QuadArrowCallout'],'icon':'ShapeQuadArrowCalloutIcon','name':_0x35ea10(0x2e7)},{'group':_0x35ea10(0x219),'type':ShapeTypeEnum['CircularArrow'],'icon':_0x35ea10(0x3fd),'name':_0x35ea10(0x67e)},{'group':'equationShape','type':ShapeTypeEnum['MathPlus'],'icon':_0x35ea10(0x5d5),'name':_0x35ea10(0x41c)},{'group':'equationShape','type':ShapeTypeEnum[_0x35ea10(0x244)],'icon':'ShapeMathMinusIcon','name':_0x35ea10(0x249)},{'group':'equationShape','type':ShapeTypeEnum[_0x35ea10(0x52c)],'icon':_0x35ea10(0x203),'name':'shape.type.math-multiply'},{'group':_0x35ea10(0x671),'type':ShapeTypeEnum['MathDivide'],'icon':'ShapeMathDivideIcon','name':'shape.type.math-divide'},{'group':_0x35ea10(0x671),'type':ShapeTypeEnum[_0x35ea10(0x317)],'icon':_0x35ea10(0x2eb),'name':_0x35ea10(0x557)},{'group':'equationShape','type':ShapeTypeEnum[_0x35ea10(0x446)],'icon':_0x35ea10(0x5cd),'name':_0x35ea10(0x696)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x346)],'icon':'ShapeFlowChartProcessIcon','name':_0x35ea10(0x5b2)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x561)],'icon':'ShapeFlowChartAlternateProcessIcon','name':_0x35ea10(0x523)},{'group':'flowchart','type':ShapeTypeEnum[_0x35ea10(0x60c)],'icon':_0x35ea10(0x512),'name':_0x35ea10(0x51c)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x48c)],'icon':_0x35ea10(0x3f8),'name':'shape.type.flow-chart-input-output'},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum['FlowchartPredefinedProcess'],'icon':_0x35ea10(0x59c),'name':_0x35ea10(0x674)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x390)],'icon':_0x35ea10(0x205),'name':_0x35ea10(0x682)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x406)],'icon':_0x35ea10(0x20d),'name':_0x35ea10(0x4c7)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x5be)],'icon':_0x35ea10(0x4aa),'name':_0x35ea10(0x3d9)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum['FlowchartTerminator'],'icon':'ShapeFlowChartTerminatorIcon','name':_0x35ea10(0x5e9)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x4a7)],'icon':_0x35ea10(0x252),'name':_0x35ea10(0x265)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x69a)],'icon':_0x35ea10(0x2f3),'name':_0x35ea10(0x5a6)},{'group':'flowchart','type':ShapeTypeEnum['FlowchartManualOperation'],'icon':'ShapeFlowChartManualOperationIcon','name':'shape.type.flow-chart-manual-operation'},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x318)],'icon':_0x35ea10(0x62a),'name':_0x35ea10(0x3ef)},{'group':'flowchart','type':ShapeTypeEnum[_0x35ea10(0x4ed)],'icon':_0x35ea10(0x415),'name':_0x35ea10(0x393)},{'group':'flowchart','type':ShapeTypeEnum[_0x35ea10(0x677)],'icon':'ShapeFlowChartPunchedCardIcon','name':_0x35ea10(0x463)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum['FlowchartPunchedTape'],'icon':_0x35ea10(0x312),'name':_0x35ea10(0x3d8)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum['FlowchartSummingJunction'],'icon':'ShapeFlowChartSummingJunctionIcon','name':_0x35ea10(0x5b9)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x41a)],'icon':'ShapeFlowChartOrIcon','name':_0x35ea10(0x4d2)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x321)],'icon':_0x35ea10(0x4b9),'name':_0x35ea10(0x57d)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x40c)],'icon':_0x35ea10(0x431),'name':_0x35ea10(0x3b2)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x45d)],'icon':_0x35ea10(0x5c5),'name':'shape.type.flow-chart-extract'},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum['FlowchartMerge'],'icon':'ShapeFlowChartMergeIcon','name':_0x35ea10(0x482)},{'group':'flowchart','type':ShapeTypeEnum[_0x35ea10(0x51e)],'icon':'ShapeFlowChartOnlineStorageIcon','name':'shape.type.flow-chart-online-storage'},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x4fb)],'icon':'ShapeFlowChartDelayIcon','name':_0x35ea10(0x45e)},{'group':'flowchart','type':ShapeTypeEnum[_0x35ea10(0x5b5)],'icon':_0x35ea10(0x564),'name':_0x35ea10(0x3c7)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum['FlowchartMagneticDisk'],'icon':_0x35ea10(0x469),'name':'shape.type.flow-chart-magnetic-disk'},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum['FlowchartMagneticDrum'],'icon':_0x35ea10(0x333),'name':_0x35ea10(0x225)},{'group':_0x35ea10(0x2db),'type':ShapeTypeEnum[_0x35ea10(0x4ca)],'icon':'ShapeFlowChartDisplayIcon','name':_0x35ea10(0x5ea)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x31e)],'icon':_0x35ea10(0x4df),'name':_0x35ea10(0x459)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x35b)],'icon':_0x35ea10(0x5ad),'name':'shape.type.irregular-seal2'},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x63e)],'icon':_0x35ea10(0x692),'name':_0x35ea10(0x2dd)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x61c)],'icon':_0x35ea10(0x5dc),'name':_0x35ea10(0x4db)},{'group':'starAndBanner','type':ShapeTypeEnum[_0x35ea10(0x4cc)],'icon':'ShapeStar6Icon','name':_0x35ea10(0x513)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x603)],'icon':_0x35ea10(0x555),'name':_0x35ea10(0x40e)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum['Star8'],'icon':_0x35ea10(0x4de),'name':_0x35ea10(0x43c)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x5e7)],'icon':_0x35ea10(0x396),'name':_0x35ea10(0x536)},{'group':'starAndBanner','type':ShapeTypeEnum[_0x35ea10(0x251)],'icon':_0x35ea10(0x2f7),'name':_0x35ea10(0x4a4)},{'group':'starAndBanner','type':ShapeTypeEnum[_0x35ea10(0x3e9)],'icon':_0x35ea10(0x31c),'name':_0x35ea10(0x500)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x268)],'icon':_0x35ea10(0x489),'name':_0x35ea10(0x319)},{'group':'starAndBanner','type':ShapeTypeEnum[_0x35ea10(0x679)],'icon':_0x35ea10(0x547),'name':_0x35ea10(0x245)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum['Ribbon2'],'icon':_0x35ea10(0x32f),'name':'shape.type.ribbon2'},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x2bf)],'icon':_0x35ea10(0x48a),'name':_0x35ea10(0x601)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum['EllipseRibbon2'],'icon':_0x35ea10(0x4e9),'name':_0x35ea10(0x35e)},{'group':'starAndBanner','type':ShapeTypeEnum[_0x35ea10(0x340)],'icon':_0x35ea10(0x2d4),'name':_0x35ea10(0x504)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x1fc)],'icon':_0x35ea10(0x423),'name':_0x35ea10(0x3f3)},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x23e)],'icon':'ShapeHorizontalScrollIcon','name':'shape.type.horizontal-scroll'},{'group':_0x35ea10(0x64e),'type':ShapeTypeEnum[_0x35ea10(0x55f)],'icon':_0x35ea10(0x5f5),'name':_0x35ea10(0x2a8)},{'group':'starAndBanner','type':ShapeTypeEnum[_0x35ea10(0x4c3)],'icon':_0x35ea10(0x3ff),'name':_0x35ea10(0x3d4)},{'group':'callout','type':ShapeTypeEnum['WedgeRectCallout'],'icon':_0x35ea10(0x2ea),'name':_0x35ea10(0x587)},{'group':'callout','type':ShapeTypeEnum[_0x35ea10(0x1ef)],'icon':'ShapeWedgeRoundRectCalloutIcon','name':_0x35ea10(0x4e1)},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum['WedgeEllipseCallout'],'icon':_0x35ea10(0x228),'name':_0x35ea10(0x574)},{'group':'callout','type':ShapeTypeEnum['CloudCallout'],'icon':_0x35ea10(0x516),'name':_0x35ea10(0x509)},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum[_0x35ea10(0x3be)],'icon':'ShapeBorderCallout1Icon','name':'shape.type.border-callout1'},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum[_0x35ea10(0x4ad)],'icon':_0x35ea10(0x267),'name':_0x35ea10(0x2f1)},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum[_0x35ea10(0x220)],'icon':_0x35ea10(0x389),'name':_0x35ea10(0x320)},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum[_0x35ea10(0x34e)],'icon':_0x35ea10(0x37a),'name':'shape.type.accent-callout1'},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum[_0x35ea10(0x663)],'icon':'ShapeAccentCallout2Icon','name':_0x35ea10(0x304)},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum[_0x35ea10(0x366)],'icon':_0x35ea10(0x4fc),'name':'shape.type.accent-callout3'},{'group':'callout','type':ShapeTypeEnum[_0x35ea10(0x599)],'icon':'ShapeCallout1Icon','name':_0x35ea10(0x4f3)},{'group':'callout','type':ShapeTypeEnum[_0x35ea10(0x39d)],'icon':_0x35ea10(0x2c1),'name':_0x35ea10(0x67d)},{'group':'callout','type':ShapeTypeEnum[_0x35ea10(0x670)],'icon':_0x35ea10(0x217),'name':_0x35ea10(0x59a)},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum[_0x35ea10(0x554)],'icon':_0x35ea10(0x1ea),'name':_0x35ea10(0x5bd)},{'group':_0x35ea10(0x2af),'type':ShapeTypeEnum[_0x35ea10(0x395)],'icon':_0x35ea10(0x5ca),'name':_0x35ea10(0x27f)},{'group':'callout','type':ShapeTypeEnum[_0x35ea10(0x5ed)],'icon':_0x35ea10(0x3e7),'name':_0x35ea10(0x351)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x361)],'icon':_0x35ea10(0x553),'name':_0x35ea10(0x243)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum['LeftRightCircularArrow'],'icon':_0x35ea10(0x47b),'name':_0x35ea10(0x3ce)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum['SwooshArrow'],'icon':_0x35ea10(0x20c),'name':_0x35ea10(0x4af)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x445)],'icon':_0x35ea10(0x44d),'name':_0x35ea10(0x414)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x253)],'icon':_0x35ea10(0x36e),'name':_0x35ea10(0x2e4)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x1e7)],'icon':_0x35ea10(0x4c8),'name':_0x35ea10(0x487)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x4c9)],'icon':_0x35ea10(0x51f),'name':_0x35ea10(0x280)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x5f6)],'icon':'ShapeGear9Icon','name':'shape.type.gear9'},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x3ec)],'icon':_0x35ea10(0x365),'name':_0x35ea10(0x4f7)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum['ActionButtonBackPrevious'],'icon':_0x35ea10(0x2c8),'name':'shape.type.action-button-back-previous'},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x4d4)],'icon':_0x35ea10(0x226),'name':'shape.type.action-button-forward-next'},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x411)],'icon':'ShapeActionButtonBeginningIcon','name':_0x35ea10(0x4e2)},{'group':'other','type':ShapeTypeEnum['ActionButtonEnd'],'icon':_0x35ea10(0x641),'name':_0x35ea10(0x47c)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x695)],'icon':_0x35ea10(0x606),'name':_0x35ea10(0x580)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum['ActionButtonInformation'],'icon':'ShapeActionButtonInformationIcon','name':_0x35ea10(0x54b)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum['ActionButtonReturn'],'icon':_0x35ea10(0x35a),'name':'shape.type.action-button-return'},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x276)],'icon':_0x35ea10(0x250),'name':'shape.type.action-button-movie'},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x38b)],'icon':_0x35ea10(0x68c),'name':'shape.type.action-button-document'},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x627)],'icon':_0x35ea10(0x69e),'name':_0x35ea10(0x5e8)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x609)],'icon':_0x35ea10(0x686),'name':_0x35ea10(0x35c)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x582)],'icon':_0x35ea10(0x374),'name':'shape.type.action-button-blank'},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x2b8)],'icon':'ShapeChartPlusIcon','name':'shape.type.chart-plus'},{'group':'other','type':ShapeTypeEnum[_0x35ea10(0x4a8)],'icon':_0x35ea10(0x410),'name':_0x35ea10(0x58f)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x57c)],'icon':_0x35ea10(0x22f),'name':_0x35ea10(0x6a3)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x26b)],'icon':_0x35ea10(0x326),'name':'shape.type.flow-chart-offline-storage'},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x447)],'icon':_0x35ea10(0x5ee),'name':_0x35ea10(0x28e)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum['PlaqueTabs'],'icon':'ShapePlaqueTabsIcon','name':_0x35ea10(0x5c7)},{'group':'other','type':ShapeTypeEnum['SquareTabs'],'icon':_0x35ea10(0x5c1),'name':_0x35ea10(0x3b5)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum[_0x35ea10(0x2de)],'icon':_0x35ea10(0x675),'name':_0x35ea10(0x588)},{'group':_0x35ea10(0x5e3),'type':ShapeTypeEnum['NonIsoscelesTrapezoid'],'icon':'ShapeNonIsoscelesTrapezoidIcon','name':'shape.type.non-isosceles-trapezoid'}],SHAPE_PICKER_COMPONENT=_0x35ea10(0x382);function ShapePickerComponent({onShapeClick:_0x22e39b,excludeGroups:_0x20eb11}){const _0x1386f9=_0x35ea10,_0xd87f18=useDependency(LocaleService),_0x9d62d7=useDependency(ComponentManager),_0x32cd07=(_0x20eb11?shapeTypeOptions[_0x1386f9(0x5e1)](_0x373d7b=>!_0x20eb11['includes'](_0x373d7b[_0x1386f9(0x470)])):shapeTypeOptions)['reduce']((_0x48edf0,_0x8eb8d6)=>{const _0x138ae6=_0x1386f9;if(!_0x48edf0[_0x8eb8d6[_0x138ae6(0x470)]])_0x48edf0[_0x8eb8d6[_0x138ae6(0x470)]]=[];return _0x48edf0[_0x8eb8d6[_0x138ae6(0x470)]][_0x138ae6(0x5f8)](_0x8eb8d6),_0x48edf0;},{});return jsx(_0x1386f9(0x56e),{'className':_0x1386f9(0x4ab),'children':Object['entries'](_0x32cd07)[_0x1386f9(0x4b0)](([_0x159dfc,_0x257d82])=>jsxs(_0x1386f9(0x56e),{'className':'univer-mb-2','children':[jsx(_0x1386f9(0x56e),{'className':'univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','children':_0xd87f18['t'](_0x1386f9(0x33b)+_0x159dfc)}),jsx('div',{'className':_0x1386f9(0x530),'children':_0x257d82[_0x1386f9(0x4b0)](_0xd1abbe=>{const _0x20ec2b=_0x1386f9,_0x20f657=_0x9d62d7[_0x20ec2b(0x653)](_0xd1abbe[_0x20ec2b(0x232)]);return jsx(_0x20ec2b(0x56e),{'title':_0xd87f18['t'](_0xd1abbe['name']),'onClick':()=>_0x22e39b(_0xd1abbe),'className':_0x20ec2b(0x2fa),'children':_0x20f657&&jsx(_0x20f657,{'className':'univer-size-full'})},_0xd1abbe['name']);})})]},_0x159dfc))});}function ImageClipShapePicker(){const _0x3450d1=_0x35ea10,_0x108e6b=useDependency(LocaleService),_0x24574f=useDependency(IDrawingManagerService),_0x2b01e7=useDependency(ImageShapeClipController),[_0x1199ef,_0x2e86dd]=useState(![]),_0x2a6bec=_0x4b29bb=>{const _0x4f9508=_0x33ec,_0x27a40e=_0x24574f[_0x4f9508(0x208)]()[_0x4f9508(0x3b8)](_0x5bddd6=>_0x5bddd6[_0x4f9508(0x645)]===DrawingTypeEnum[_0x4f9508(0x4a5)]);if(!_0x27a40e)return;const {unitId:_0x3579b2,subUnitId:_0x448584,drawingId:_0x4d8598}=_0x27a40e;_0x2b01e7['clipByShape'](_0x3579b2,_0x448584,_0x4d8598,_0x4b29bb['type']),_0x2e86dd(![]);};return jsx(Dropdown,{'side':_0x3450d1(0x378),'open':_0x1199ef,'onOpenChange':_0x2e86dd,'overlay':jsx(ShapePickerComponent,{'onShapeClick':_0x2a6bec,'excludeGroups':[_0x3450d1(0x343)]}),'children':jsx(Button,{'children':_0x108e6b['t']('image-panel.crop.shape')})});}function ShapePicker(){const _0x47cd75=useDependency(ICommandService),_0x4606c9=_0xf544b5=>{const _0x542e36=_0x33ec;_0x47cd75['executeCommand'](MenuInsertShapeCommand['id'],{'value':_0xf544b5[_0x542e36(0x2b6)],'enhanceParams':{'endArrow':_0xf544b5[_0x542e36(0x2f2)],'startArrow':_0xf544b5[_0x542e36(0x57e)],'horizontal':_0xf544b5['horizontal'],'vertical':_0xf544b5[_0x542e36(0x668)]}});};return jsx(ShapePickerComponent,{'onShapeClick':_0x4606c9});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x35ea10(0x611),'icon':_0x35ea10(0x453),'value':HorizontalAlign[_0x35ea10(0x625)]},{'label':'align.center','icon':'HorizontallyIcon','value':HorizontalAlign['CENTER']},{'label':'align.right','icon':'RightJustifyingIcon','value':HorizontalAlign[_0x35ea10(0x5b7)]}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x2106ac){const _0x2022c7=_0x35ea10,_0x49329c=_0x2106ac[_0x2022c7(0x653)](IContextService),_0x1ed6b5=_0x2106ac[_0x2022c7(0x653)](ThemeService);return{'id':SetInlineFormatTextBackgroundColorCommand['id'],'tooltip':_0x2022c7(0x2e6),'type':MenuItemType[_0x2022c7(0x63d)],'icon':_0x2022c7(0x33a),'selections':[{'label':{'name':COLOR_PICKER_COMPONENT,'hoverable':![],'selectable':![]}}],'value$':new Observable(_0xd53932=>{const _0x469ddc=_0x2022c7;_0xd53932['next'](_0x1ed6b5[_0x469ddc(0x57a)]('primary.600'));}),'hidden$':_0x49329c[_0x2022c7(0x33f)](FOCUSING_COMMON_DRAWINGS)[_0x2022c7(0x316)](startWith(_0x49329c[_0x2022c7(0x35f)](FOCUSING_COMMON_DRAWINGS)),map(_0x542791=>!_0x542791))};}function ShapeResetBackgroundColorMenuItemFactory(_0x321faf){const _0x5817f4=_0x35ea10,_0x2a5d80=_0x321faf['get'](IContextService);return{'id':ResetInlineFormatTextBackgroundColorCommand['id'],'type':MenuItemType[_0x5817f4(0x45f)],'title':_0x5817f4(0x672),'hidden$':_0x2a5d80[_0x5817f4(0x33f)](FOCUSING_COMMON_DRAWINGS)[_0x5817f4(0x316)](startWith(_0x2a5d80[_0x5817f4(0x35f)](FOCUSING_COMMON_DRAWINGS)),map(_0x13dfb3=>!_0x13dfb3))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x35ea10(0x611),'icon':_0x35ea10(0x453),'value':HorizontalAlign[_0x35ea10(0x625)]},{'label':_0x35ea10(0x579),'icon':_0x35ea10(0x29a),'value':HorizontalAlign['CENTER']},{'label':_0x35ea10(0x5ce),'icon':'RightJustifyingIcon','value':HorizontalAlign[_0x35ea10(0x5b7)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x4508ab){const _0x270006=_0x35ea10;var _0x2e7fc6;const _0x17598a=_0x4508ab['get'](ICommandService),_0x486cb3=_0x4508ab['get'](IContextService),_0x80ddb0=_0x4508ab[_0x270006(0x653)](ISheetDrawingService),_0x3f5c89=_0x4508ab[_0x270006(0x653)](ShapeTextEditingService),_0x414b9f=_0x4508ab[_0x270006(0x653)](SheetsShapeService),_0x4386c4=HorizontalAlign[_0x270006(0x625)],_0x546f72=()=>{const _0x4e5c05=_0x270006;var _0x2558de;const _0x1bd6b9=_0x80ddb0['getFocusDrawings']()['filter'](_0x1768ab=>_0x1768ab[_0x4e5c05(0x645)]===DrawingTypeEnum[_0x4e5c05(0x29f)]);if(_0x1bd6b9['length']!==0x1)return _0x4386c4;const _0x231101=_0x3f5c89['getEditing'](),_0x595460=(_0x231101===null||_0x231101===void 0x0?void 0x0:_0x231101[_0x4e5c05(0x20a)])||_0x1bd6b9[0x0][_0x4e5c05(0x20a)],_0x99a83f=(_0x231101===null||_0x231101===void 0x0?void 0x0:_0x231101[_0x4e5c05(0x529)])||_0x1bd6b9[0x0][_0x4e5c05(0x529)],_0x395f7c=(_0x231101===null||_0x231101===void 0x0?void 0x0:_0x231101[_0x4e5c05(0x54e)])||_0x1bd6b9[0x0][_0x4e5c05(0x2ef)],_0x5ce260=_0x414b9f['getShapeModel'](_0x595460,_0x99a83f,_0x395f7c);if(!_0x5ce260)return _0x4386c4;const _0x2eb051=_0x5ce260[_0x4e5c05(0x2f0)]();if(!_0x2eb051||!(_0x4e5c05(0x2e1)in _0x2eb051))return _0x4386c4;const _0x5ee251=_0x2eb051[_0x4e5c05(0x2e1)];return(_0x2558de=_0x5ee251===null||_0x5ee251===void 0x0?void 0x0:_0x5ee251['ha'])!==null&&_0x2558de!==void 0x0?_0x2558de:_0x4386c4;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x2e7fc6=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x270006(0x3b8)](_0x389453=>_0x389453[_0x270006(0x2cb)]===_0x4386c4))===null||_0x2e7fc6===void 0x0?void 0x0:_0x2e7fc6[_0x270006(0x232)],'tooltip':_0x270006(0x22c),'type':MenuItemType[_0x270006(0x23d)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new Observable(_0x52c248=>{const _0xf2581e=_0x270006,_0x23868e=_0x17598a[_0xf2581e(0x519)](_0x4c19b2=>{const _0xdad01f=_0xf2581e;if(_0x4c19b2['id']===SetShapeTextHorizontalAlignCommand['id'])_0x52c248[_0xdad01f(0x654)](_0x546f72());}),_0x5fbbd0=_0x3f5c89['editingParams$'][_0xf2581e(0x58c)](()=>{const _0x25137d=_0xf2581e;_0x52c248[_0x25137d(0x654)](_0x546f72());});return _0x52c248[_0xf2581e(0x654)](_0x546f72()),()=>{const _0x3402a1=_0xf2581e;_0x23868e[_0x3402a1(0x23f)](),_0x5fbbd0['unsubscribe']();};}),'hidden$':_0x486cb3[_0x270006(0x33f)](FOCUSING_COMMON_DRAWINGS)[_0x270006(0x316)](map(_0x36cc56=>!_0x36cc56))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x35ea10(0x2bd),'icon':_0x35ea10(0x68a),'value':VerticalAlign[_0x35ea10(0x39e)]},{'label':_0x35ea10(0x3c4),'icon':'VerticalCenterIcon','value':VerticalAlign['MIDDLE']},{'label':_0x35ea10(0x3d7),'icon':'AlignBottomIcon','value':VerticalAlign[_0x35ea10(0x302)]}];function _0x2590(){const _0x4aad8f=['ShapeOctagonIcon','sheet.command.set-shape-text-font-size','ShapeFrameIcon','Freehand','size','getDrawingData','ShapeStraightConnector1Icon','Sun','NoSmoking','_initSheetChange','sheets-shape.toggleTextVertical','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','offsetY','BUTTON_SELECTOR','Star4','abs','Dash','ShapeActionButtonEndIcon','shape.type.round-rect','_commandExecutedListener','from','drawingType','gdRefAng','getShapeTextRect','_highlightedSiteIndex','_registerShapeMenu','univer-text-gray-600\x20univer-transition-transform','isFinite','Angular','OPERATION','starAndBanner','documentStyle','blur','shape-text-editor-content','Flat','get','next','focus$','_createShapeAdjustControls','univer-hidden','src','_drawingManagerService','ShapeBentArrowIcon','sheets-shape.line.title','Radial','button','_attachAdjustEvent','_baseDrawingRect','sheet.operation.close-sheet-shape-format-panel','Solid','Teardrop','AccentCallout2','sheets-shape.line.arrowType.diamondArrow','setConfig','getSkeletonParam','fill','vertical','_initCommands','_getZoomRatio','DEFAULT_PASTE','ShapeDiamondIcon','rectangle','clear','sheet.command.set-shape-text-vertical-align','Callout3','equationShape','toolbar.resetColor','render','shape.type.flow-chart-predefined-process','ShapeUpDownArrowCalloutIcon','univer-box-border\x20univer-px-4\x20univer-text-sm','FlowchartPunchedCard','_targetShapeId','Star32','576316zMooLF','image','_registerDrawingFocusChangeHandler','shape.type.callout2','shape.type.circular-arrow','shape.type.rect-textbox-vertical','restore','_registerMoveHandler','shape.type.flow-chart-internal-storage','getConnectionSiteList','3131212cuOlJM','sheet.shape.edit.panel','ShapeActionButtonHelpIcon','cxnPointStrokeWidth','WRAP','domX','AlignTopIcon','getShapeTypeById','ShapeActionButtonDocumentIcon','ShapeCurvedDownArrowIcon','getAdjustValueByName','sheets-shape.line.joinType.title','_isStartAdjusting','NoLine','ShapeStar4Icon','ShapeIcon','RightArrow','ActionButtonHome','shape.type.math-not-equal','changeShapeType','adjustValues','sheets-shape.line.capType.title','FlowchartManualInput','marginTop','ShapeFlowChartSummingJunctionIcon','params','ShapeActionButtonSoundIcon','_baseLeft','ShapeFlowChartAlternateProcessIcon','univer-flex\x20univer-items-center\x20univer-gap-3','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','shape.type.chart-x','Funnel','ShapeChordIcon','ShapeRound2DiagRectIcon','ShapeAccentBorderCallout1Icon','setAdjustValueByName','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','engine','adjHandleStroke','WedgeRoundRectCallout','gdRefR','_getShapeAdjustPointListById','ShapePieIcon','ShapeUturnArrowIcon','sheets-shape.fill.color','DiagStripe','getState','sheetTransform','calcAdjValue','subscribeEvent','computeStraightConnectorLayout','stroke','VerticalScroll','shape.type.left-arrow','Pie','strokeWidth','ShapeRightBraceIcon','setShapeData','imageRotateWithShape','ShapeMathMultiplyIcon','ShapeBorderCallout1Icon','ShapeFlowChartInternalStorageIcon','sheets-shape.config','Plaque','getFocusDrawings','_activeImageId','unitId','DRAWING_DOM','ShapeSwooshArrowIcon','ShapeFlowChartDocumentIcon','BlockArc','sheets-shape.fill.picture.insert','_connectionSiteObjects','ShapeTeardropIcon','_shapeId','collapsed','_updateImageAdjValues','Round','_executeConnectedRouteResizeCommand','ShapeCallout3Icon','visible','blockArrow','_showConnectionSites','getDocumentData','8KoOfrZ','error','shape.type.bent-arrow','_initialize','BorderCallout3','univer-relative\x20univer-size-full\x20univer-overflow-visible','invert','targetShapeId','endConnectionDetection','shape.type.flow-chart-magnetic-drum','ShapeActionButtonForwardNextIcon','sketchType','ShapeWedgeEllipseCalloutIcon','startOffset','cxnPointFill','shape.type.cube','toolbar.horizontalAlignMode.main','shape.type.octagon','sheets-shape.line.capType.round','ShapeChartXIcon','getImage','_sidebarService','icon','_updateTransform','setZoomRatio','getFreeze','Diamond','data','ShapeLineIcon','shape.type.no-smoking','DownArrow','Cloud','update$','SELECTOR','HorizontalScroll','dispose','\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','round','RoundRect','shape.type.left-circular-arrow','MathMinus','shape.type.star32','width','updateConnectionDetection','univer-flex\x20univer-items-center\x20univer-gap-2','shape.type.math-minus','_reset','isLineShape','LeftArrow','NoFill','Line','prstGeomAdjValues','ShapeActionButtonMovieIcon','Star12','ShapeFlowChartPreparationIcon','PieWedge','lineJoinType','RightBrace','_hasReset','_initEvents','_groupCopyPasteController','clone','isEditing','getRealBound','_initMenu','cos','isStartConnectorPoint','ShapeCurvedConnector3Icon','_contextService','ShapeLightningBoltIcon','_sheetShapeAdjustController','_lastEditingShapeKey','_connectorObjects','shape.type.flow-chart-preparation','_sheetClipboardService','ShapeBorderCallout2Icon','Star24','ShapeChevronIcon','getBoundingClientRect','FlowChartOfflineStorage','shape.type.straight-connector1','shape.type.left-right-arrow-callout','_closeShapeEditPanel','packageName','pluginName','CurvedRightArrow','ShapeDownArrowIcon','SHEET_SHAPE_UI_PLUGIN','getDrawingPoints','_activeShapeInfo','ActionButtonMovie','onDblclick$','offsetX','getConnectionRelation','_addShapeAdjustControl','transform','univer-w-20\x20univer-flex-1','#FFFFFF','ShapePlusIcon','shape.type.accent-border-callout2','shape.type.gear6','_createControls','HalfFrame','univer-flex\x20univer-flex-col\x20univer-gap-3','_baseShapeWidth','isHitLine','_updateShapeAdjustControls','268155EcDXzK','_shapeService','_shapeUpdateListener','values','URL','renderDrawingShape','decorate','shape.type.line-inv','getUnit','VIEW_MAIN','preValue','viewportScrollY','blockExecuteWithoutPermission','univer-w-28','shape.type.left-right-up-arrow','shape.type.left-brace','Linear','ShapeMoonIcon','cxnIndex','HorizontallyIcon','ShapeNotchedRightArrowIcon','SolidFill','focusDrawing','indexOf','DRAWING_SHAPE','classType','setCanUseShapeClip','getDrawingSearch','getActualSize','_clearConnectionSites','getCurrentSkeleton','getStartConnectInfo','_drawSimpleText','shape.type.wave','shape.type.moon','_rerouteConnectorLine','_openShapeEditPanel','registerRenderModule','verticalAlign','activeAnObject','callout','_findNearestConnectionSite','file','offset','onPointerDown$','pushUndoRedo','_config','type','sheets-shape.fill.picture.tileAsTexture','ChartPlus','fillType','Round2SameRect','COMMAND','_generatePasteMutations','align.top','_clearControls','Ribbon','close','ShapeCallout2Icon','@univerjs-pro/sheets-shape-ui','UNIVER_DOC','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','Arrow','_adjHandlerPointerUp','ShapeBracketPairIcon','ShapeActionButtonBackPreviousIcon','string','sheets-shape.line.dashType.dash','value','ShapeRoundRectIcon','registerClipDelegate','registerFeatureMenu','_context','sheets-shape.line.joinType.miter','_createCopyInfoByRange','sheets-shape.line.endArrowType','BentConnector3','ShapeEllipseRibbonIcon','editingParams$','633168keyEHP','shape.type.rect-textbox-horizontal','QuadArrow','univer-pt-2','domY','flowchart','_moveConnectorWithShape','shape.type.star4','UpDownArrowCallout','max','opacity','dataModel','angular','getDrawingByParam','shape.type.pie-wedge','sheets-shape.rotateLeft90','toolbar.fillColor.main','shape.type.quad-arrow-callout','ShapeBlockArcIcon','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','ShapeWedgeRectCalloutIcon','ShapeMathEqualIcon','VIEW_MAIN_LEFT_TOP','LeftRightUpArrow','getDrawingOrder','drawingId','getShapeTextData','shape.type.border-callout2','endArrow','ShapeFlowChartManualInputIcon','ShapeHeartIcon','radial','_imageShapeClipController','ShapeStar12Icon','onSavingEditorData$','SquareDot','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','shapeData','shape.type.trapezoid','end','alignment','sheet.command.menu-insert-shape','Moon','getShapeData','BOTTOM','copyType','shape.type.accent-callout2','ShapeDonutIcon','_editingParams$','register','Arc','DashDot','symbol','univer-w-20','_currentScene','shape.type.right-arrow','ShapeCanIcon','updateShapeFillImage','scale','translate','ShapeFlowChartPunchedTapeIcon','mainComponent','gradientType','_copyInfo','pipe','MathEqual','FlowchartConnector','shape.type.star24','sheets-shape.fill.picture.align.b','_initCopyPaste','ShapeStar16Icon','setSrcRect','IrregularSeal1','has','shape.type.border-callout3','FlowchartCollate','stopPropagation','SolidLine','shape.type.dodecagon','Octagon','ShapeFlowChartOfflineStorageIcon','DiamondArrow','target','ShapeRtTriangleIcon','_shapes','ShapeUpArrowIcon','shapeKey','_activeShapeAdjustPointList','ShapePositionWrapper','ShapeRibbon2Icon','gdRefX','_draw','parse','ShapeFlowChartMagneticDrumIcon','horizontal','NotchedRightArrow','ShapeUpArrowCalloutIcon','shape.type.snip2-same-rect','getParent','call','PaintBucketDoubleIcon','shape.group.','ShapeSnipRoundRectIcon','prototype','ShapeSunIcon','subscribeContextValue$','EllipseRibbon','sheets-shape.line.dashType.longDashDotDot','_isDrawingShapePointDown','line','constructor','adjHandleSize','FlowchartProcess','setCursor','setSelectionRanges','onPointerUp$','isNaN','shape-adjust-point-','univer-rounded-lg\x20univer-p-3','isInGroup','AccentCallout1','sheets-shape.fill.picture.align.bl','ShapeStraightConnector2Icon','shape.type.accent-border-callout3','ShapeMathDivideIcon','shape.type.cloud','shape.type.round2-diag-rect','_loadShapePictureFill','setEditing','ShapeHeptagonIcon','None','clearAdjustValue','ShapeActionButtonReturnIcon','IrregularSeal2','shape.type.action-button-help','srcRect','shape.type.ellipse-ribbon2','getContextValue','unsubscribe','LeftCircularArrow','_clearShapeConnectorHandlerObjects','deepClone','_activeShapeId','ShapeCornerTabsIcon','AccentCallout3','ShapeNonIsoscelesTrapezoidIcon','sheets-shape.formatShape','isRender','isDrawingObject','_cxtHandlerPointerUp','ShapeEllipseIcon','ShapeDownArrowCalloutIcon','ShapePieWedgeIcon','Triangle','UNIVER_SHEET','sheets-shape.line.transparency','height','getOwnPropertyDescriptor','ShapeActionButtonBlankIcon','_addShapeConnectorHandlerObjects','sheet.command.shape-doc-align','fillImageSource','left','RightTriangle','ShapeAccentCallout1Icon','ShapeLeftRightArrowCalloutIcon','ShapeCubeIcon','clip-adj-','FoldedCorner','shape.type.parallelogram','isArray','ShapeSnip2SameRectIcon','sheet.shape.picker.component','univer-text-gray-500','Large','colStartX','onTransformChange$','color','sheets-shape.fill.picture.offsetY','ShapeBorderCallout3Icon','_baseShapeHeight','ActionButtonDocument','sheets-shape.openPanel','Parallelogram','ShapeLeftRightUpArrowIcon','getDrawingVisible','FlowchartInternalStorage','_activeAdjustInfo','shape.type.corner','shape.type.flow-chart-offpage-connector','ShapeRectTextboxVerticalIcon','AccentBorderCallout2','ShapeStar10Icon','multiply','_generateCopyPasteMutations','prstGeom','ShapeLeftBraceIcon','defineProperty','sheets-shape.line.sketchType.curved','Callout2','TOP','getSkeleton','shape.type.uturn-arrow','connector-handler-','_initSelection','Rect','81813FuYcjJ','shape.type.bevel','_baseHeight','LongDashDotDot','adjName','ang','ancestorTransform','getShapeType','CurvedLeftArrow','UUID','sheets-shape.line.dashType.title','sheets-shape.line.capType.square','sheets-shape.fill.picture.source','ShapeCallout1Icon','shape.type.flow-chart-sort','applyPoint','setShapeProps','shape.type.square-tabs','sheets-shape.line.capType.flat','UpArrowCallout','find','isRenderLinePointsMode','_registerComponent','rotate(','getUnitId','angle','BorderCallout1','#ffffff','ShapeLeftArrowCalloutIcon','getSelectionRanges','sheets-shape.fill.picture.align.ctr','_activeShapeModel','align.middle','sheets-shape.line.solidLine','min','shape.type.flow-chart-magnetic-tape','_getImageDrawingInfo','\x20px','ShapeHexagonIcon','_init','_activeAdjustPointList','_registerDrawingMoveHandler','shape.type.left-right-circular-arrow','ShapeCornerIcon','shape.type.rt-triangle','START','localeService','span','shape.type.double-wave','_onSavingEditorData$','image/*','align.bottom','shape.type.flow-chart-punched-tape','shape.type.flow-chart-multidocument','ctr','ShapeNoSmokingIcon','ShapeRectTextboxHorizontalIcon','setPrstGeom','ShapeRightBracketIcon','_resetState','_registerGroupFeaturePasteHook','ShapeGear9Icon','add$','_drawingAddListener','LeftBracket','univer-size-full','refreshAdjustControls','ShapeAccentBorderCallout3Icon','onScrollAfter$','Star16','DownArrowCallout','renderConfig','CornerTabs','_initPermission','cxnPointRadius','shape.type.flow-chart-connector','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_registerOperations','ShapeFlowChartDisplayIcon','shape.type.vertical-scroll','resize','_sheetInterceptorService','sheets-shape.line.dashType.longDash','worksheet','ShapeFlowChartInputOutputIcon','shape.type.down-arrow-callout','sheets-shape.line.sketchType.title','_getConnectPointInfo','sheets-shape.fill.transparency','ShapeCircularArrowIcon','_handleConnectorPointerUp','ShapeDoubleWaveIcon','ShapePentagonIcon','addClipboardHook','pick','_isStartConnectorPoint','cxnPointStroke','oKey','FlowchartDocument','shape.type.straight-connector2','disableShapeOption','shape.type.snip2-diag-rect','toPrimitive','ShapeFlowChartManualOperationIcon','FlowchartSort','_props','shape.type.star7','_configService','ShapeChartStarIcon','ActionButtonBeginning','INSERT','ShapeParallelogramIcon','shape.type.left-right-ribbon','ShapeFlowChartOffpageConnectorIcon','wrapStrategy','univer-flex-1\x20univer-overflow-auto','_menuManagerService','_generateCutPasteMutations','FlowchartOr','getAdjustInfoByName','shape.type.math-plus','startConnectionDetection','changeStart$','univer-text-xl\x20univer-text-gray-500','_getShapeInfo','sheetViewStartRow','shape.type.round2-same-rect','ShapeVerticalScrollIcon','ShapeRightArrowIcon','addObject','version','_getDrawingRect','_urlImageService','shape-text-editor-position-wrapper','none','ShapeAccentCallout2Icon','_handleBasicShapeUpdateConnectorLineShape','_transformCalculateSrcRect','_updateAdjustControlPositions','CurvedConnector3','lineType','ShapeFlowChartSortIcon','ShapeBentUpArrowIcon','sheet.command.set-shape-text-font-size-increase','sheets-shape.line.dashType.dashDot','_activeTargetShapeId','calculate','Bevel','sheets-shape.fill.noFill','sheets-shape.line.color','getRenderById','getViewport','shape.type.star8','_index','translateWithPrecision','ShapeRightArrowCalloutIcon','scaleY','shape.type.curved-up-arrow','_shapeTextEditingService','sheets-shape.line.dashType.squareDot','horizontalAlign','LeftRightRibbon','MathNotEqual','LineInv','section','OvalArrow','sheets-shape.line.sketchType.none','ShapeRound1RectIcon','sheets-shape-ui','ShapeLeftRightRibbonIcon','_loadAndSetImage','disposeWithMe','forEach','ShapeQuadArrowIcon','worldPoint','LeftJustifyingIcon','capType','UpDownArrow','sheets-shape.toggleFlipH','undefined','ShapeDiagStripeIcon','shape.type.irregular-seal1','create','getZoomRatio','attachTransformerTo','FlowchartExtract','shape.type.flow-chart-delay','BUTTON','Corner','shape-text-','function','shape.type.flow-chart-punched-card','BentArrow','sheets-shape.line.arrowSize.medium','CurvedDownArrow','#4285f4','CROSSHAIR','ShapeFlowChartMagneticDiskIcon','sheets-shape.deleteShape','Curved','shape.type.right-brace','sheets-shape.fill.picture.scaleX','sheets-shape.line.dashType.roundDot','shape.type.sun','group','shape.type.frame','HomePlate','ShapeDecagonIcon','_sheetPermissionCheckController','default','onPointerMove$','objects','ShapeSmileyFaceIcon','#bcbcbc','_insertShapes','ShapeLeftRightCircularArrowIcon','shape.type.action-button-end','updateLinePoints','shape.type.donut','LeftRightArrowCallout','shape.type.chevron','_renderManagerService','shape.type.flow-chart-merge','SnipRoundRect','getBatchUpdateOp','basicShape','getObject','shape.type.funnel','sheets-shape.line.dashType.solid','ShapeStar24Icon','ShapeRibbonIcon','Pentagon','FlowChartInputOutput','lineStrokeType','SmileyFace','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','centerAngle','onReady','ShapeFlowChartOrIcon','changing$','_baseShapeLeft','mergeMenu','ShapeSnip2DiagRectIcon','_isShouldShowDrawingShapeAdjust','Miter','registerFeatureMenuOffset','beginPath','custom','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheet.command.set-shape-text-font-size-decrease','sheets-shape.fill.picture.rotateWithShape','_sheetDrawingShapeRenderController','disableObjectsEvent','shape.type.triangle','Small','_clipService','shape.type.star12','DRAWING_IMAGE','position','FlowchartPreparation','ChartStar','shape.type.bent-connector3-arrow1','ShapeFlowChartMultidocumentIcon','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','style','BorderCallout2','shape.type.diamond','shape.type.swoosh-arrow','map','buildClipPath','worldRect','Stretch','sheets-shape.line.arrowType.stealthArrow','adjHandleFill','44NRVlrV','ShapeCurvedLeftArrowIcon','getConnectionInfo','ShapeFlowChartCollateIcon','flipY','point','_transform','ShapeFlowChartTerminatorIcon','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','gdRefY','_univerInstanceService','_baseTop','_drawingRenderService','DoubleWave','BracketPair','shape.type.home-plate','shapeModel','shape.type.flow-chart-document','ShapeFunnelIcon','Gear6','FlowchartDisplay','beforeCommandExecuted','Star6','ShapeBevelIcon','getAdjustNames','shape.type.line','Round1Rect','_commandService','shape.type.flow-chart-or','ShapeFolderCornerIcon','ActionButtonForwardNext','shape.type.down-arrow','setPrstGeomAdjValues','596765yFZayF','save','BracePair','_addShapeConnectorHandlerObject','shape.type.star5','ShapeWedgeRoundRectCalloutIcon','shape.type.curved-connector3-arrow1','ShapeStar8Icon','ShapeIrregularSeal1Icon','shape.type.rect','shape.type.wedge-round-rect-callout','shape.type.action-button-beginning','shape.type.up-down-arrow','onStarting','1694880DnUUNe','computeConnectorResizeLayout','_getImagePrstGeom','_sheetBasicShapeConnectionPointController','ShapeEllipseRibbon2Icon','sheets-shape.fill.picture.align.t','shape.type.curved-connector3','sheets-shape.rotateRight90','FlowchartOffPageConnector','enableObjectsEvent','_initEditingParams','sheets-shape.line.beginArrowSize','warn','entries','shape.type.callout1','shape.type.up-arrow','start','_sheetsShapeService','shape.type.corner-tabs','rowStartY','Hexagon','univer-flex\x20univer-flex-col\x20univer-gap-2','FlowchartDelay','ShapeAccentCallout3Icon','sheets-shape.line.joinType.round','sheets-shape.line.joinType.bevel','shape.type.diag-stripe','shape.type.star16','Plus','_draggingConnectorId','ShapeFlowChartOnlineStorageIcon','shape.type.ellipse-ribbon','set','ShapeDodecagonIcon','SHAPE_TEXT','shape.type.hexagon','shape.type.cloud-callout','stringify','sheets-shape.fill.picture.align.tr','shape.type.decagon','_sheetSkeletonService','Path','_executeConnectedRouteConnectionCommand','sheets-shape.fill.title','BentUpArrow','ShapeFlowChartDecisionIcon','shape.type.star6','ShapeTrapezoidIcon','shape.type.teardrop','ShapeCloudCalloutIcon','_drawShapeText','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','onCommandExecuted','LeftArrowCallout','univer-text-sm','shape.type.flow-chart-decision','executeCommand','FlowchartOnlineStorage','ShapeGear6Icon','ShapeFlowChartDelayIcon','_adjName','updateContext','shape.type.flow-chart-alternate-process','shape.type.smiley-face','shape.type.ellipse','ShapeCurvedRightArrowIcon','_handleConnectedEndpointMove','click','subUnitId','getConnectorLinePoints','_sidebarDisposable','MathMultiply','Round2DiagRect','ShapeRound2SameRectIcon','setShouldShowAdjust','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','_getOrCreateShapeModel','_clearShapeAdjustControls','_componentManager','univer-flex\x20univer-items-center\x20univer-justify-between','setTimeout','shape.type.star10','top','replace','viewportScrollX','flipX','REMOVE','RoundDot','shape.type.bent-up-arrow','gradientAngle','transformForAngle','add','getEditing','object','ShapeLeftBracketIcon','GradientFill','setHighlighted','sheets-shape.line.sketchType.freehand','ShapeStar32Icon','_isHighlighted','univer-w-full','useAbsolutePosition','shape.type.action-button-information','sheet.command.set-shape-text-horizontal-align','changeEnd$','shapeId','StraightConnector1','CUT','length','scene','ShapeLeftCircularArrowIcon','AccentBorderCallout1','ShapeStar7Icon','updateDocumentRenderConfig','shape.type.math-equal','Snip1Rect','univer-absolute','_getSceneAndTransformerByDrawingSearch','sheet.command.update-shape-data','resetCursor','_isConnecting','ShapeUpDownArrowIcon','Wave','lineShapeId','FlowchartAlternateProcess','Heart','ShapeLeftRightArrowIcon','ShapeFlowChartMagneticTapeIcon','with','toolbar.verticalAlignMode.main','editorHeight','drawWith','_calculateFreeEndpointAngle','activeSheet$','_drawRichText','ShapeFlowChartProcessIcon','getCurrentScrollState','div','ShapeStripedRightArrowIcon','getMatrix','shape.type.curved-down-arrow','permissionCheckWithoutRange','draw','shape.type.wedge-ellipse-callout','ShapeBentConnector3Icon','relation','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','getSheetBySheetId','align.center','getColorFromTheme','_focusedDrawings','ChartX','shape.type.flow-chart-collate','startArrow','vertexAngle','shape.type.action-button-home','sheets-shape.line.arrowType.arrow','ActionButtonBlank','getAncestorScale','_cxtHandlerPointerMove','_attachConnectorObjectEvent','keys','shape.type.wedge-rect-callout','shape.type.up-down-arrow-callout','sheets-shape.fill.solidFill','clearTimeout','imageTile','subscribe','_unitId','syncExecuteCommand','shape.type.chart-star','stops','setOnSavingEditorData','sheets-shape.fill.picture.alignment','ShapeLeftArrowIcon','_currentConnectionTarget','clearAdjustControls','_adjHandlerPointerMove','redo','makeDirty','Callout1','shape.type.callout3','Medium','ShapeFlowChartPredefinedProcessIcon','setDocumentData','isHit','startY','_injector','_subUnitId','index','_isImagePointerDown','paragraphs','_handleFreeEndpointMove','shape.type.flow-chart-manual-input','isRichText','Image','PictureFill','_addControl','textRect','ShapeCurvedConnector3Arrow2Icon','ShapeIrregularSeal2Icon','SHAPE','_isOpenedShapeEditPanel','sheets-shape.shapeStyle','getEndConnectInfo','shape.type.flow-chart-process','_getScrollInfo','ShapeBentConnector3Arrow1Icon','FlowchartMagneticTape','ShapeCurvedUpArrowIcon','RIGHT','ShapeLeftUpArrowIcon','shape.type.flow-chart-summing-junction','_sheetDrawingService','paragraphStyle','_handleFreeEndpointPointerUp','shape.type.accent-border-callout1','FlowchartMultiDocument','getShapeDataById','sheets-shape.line.arrowType.openArrow','ShapeSquareTabsIcon','updateDocumentStyle','localToWorld','startX','ShapeFlowChartExtractIcon','isHorizontal','shape.type.plaque-tabs','getImageSourceCache','getTransformerByCreate','ShapeAccentBorderCallout2Icon','sheetViewStartColumn','ShapeTextEditorContainer','ShapeMathNotEqualIcon','align.right','shape.type.left-up-arrow','current','VIEW_MAIN_LEFT','setContextValue','floor','_sheetCanvasPopManagerService','ShapeMathPlusIcon','_baseShapeTop','POSITIVE_INFINITY','Chord','UpArrow','ShapePlaqueIcon','_registerImageShapeClipDelegate','ShapeStar5Icon','ShapeRectIcon','refreshTransform','GROUP','_localeService','filter','getCurrentTypeOfUnit$','other','interceptCommand','_imageIoService','clipByShape','Star10','shape.type.action-button-sound','shape.type.flow-chart-terminator','shape.type.flow-chart-display','StripedRightArrow','_registerFocusChangeHandler','AccentBorderCallout3','ShapeLineInvIcon','asObservable','fillImageSourceType','getShapePopupMenus','sheets-shape.shapePosition','ShapeSnip1RectIcon','_executeResizeCommand','ShapeWaveIcon','Gear9','sin','push','_baseWidth','connection-site-','doc','transformByState','getObjectIncludeInGroup','getShapeModel','ShapeArcIcon','_cxnIndex','shape.type.ribbon','OpenArrow','Star7','undo','CurvedUpArrow','ShapeActionButtonHomeIcon','_setTransForm','ShapeBracePairIcon','ActionButtonHelp','removeLinePoints','MIDDLE','FlowchartDecision','ShapeActionButtonInformationIcon','getTransformer','open','rotation','align.left','sheets-shape.toggleFlipV','clip','ShapeMathMinusIcon','gradientStops','shape.type.curved-left-arrow','Tile','_handleConnectedEndpointPointerUp','linear','_findShapeAtPoint','scaleX','Star5','sheets-shape.line.endArrowSize','setFillImage','getBatchAddOp','ShapeCloudIcon','_getShapeAdjustInfosById','parseFloat','Trapezoid','ENTER','LEFT','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ActionButtonSound','isHighlighted','remove$','ShapeFlowChartConnectorIcon','shape.type.right-arrow-callout','rect','complete','viewBound','ShapeBentConnector3Arrow2Icon'];_0x2590=function(){return _0x4aad8f;};return _0x2590();}function ShapeVerticalAlignMenuItemFactory(_0x15cf23){const _0x3cc2a5=_0x35ea10;var _0x5f39b4;const _0x49f999=_0x15cf23[_0x3cc2a5(0x653)](ICommandService),_0x2679c9=_0x15cf23['get'](IContextService),_0x4e2ce1=_0x15cf23['get'](ISheetDrawingService),_0x121ff6=_0x15cf23['get'](ShapeTextEditingService),_0xcd13c9=_0x15cf23[_0x3cc2a5(0x653)](SheetsShapeService),_0x5482cc=VerticalAlign[_0x3cc2a5(0x39e)],_0x356cb6=()=>{const _0x766bd5=_0x3cc2a5;var _0x142b27;const _0x34111c=_0x4e2ce1[_0x766bd5(0x208)]()[_0x766bd5(0x5e1)](_0xcf236d=>_0xcf236d[_0x766bd5(0x645)]===DrawingTypeEnum[_0x766bd5(0x29f)]);if(_0x34111c[_0x766bd5(0x551)]!==0x1)return _0x5482cc;const _0x7ced1=_0x121ff6[_0x766bd5(0x541)](),_0x431909=(_0x7ced1===null||_0x7ced1===void 0x0?void 0x0:_0x7ced1[_0x766bd5(0x20a)])||_0x34111c[0x0]['unitId'],_0x6cfc6c=(_0x7ced1===null||_0x7ced1===void 0x0?void 0x0:_0x7ced1[_0x766bd5(0x529)])||_0x34111c[0x0][_0x766bd5(0x529)],_0x2c4c53=(_0x7ced1===null||_0x7ced1===void 0x0?void 0x0:_0x7ced1[_0x766bd5(0x54e)])||_0x34111c[0x0]['drawingId'],_0x24fad2=_0xcd13c9[_0x766bd5(0x5fe)](_0x431909,_0x6cfc6c,_0x2c4c53);if(!_0x24fad2)return _0x5482cc;const _0x3e8bb3=_0x24fad2['getShapeTextData']();if(!_0x3e8bb3||!('dataModel'in _0x3e8bb3))return _0x5482cc;const _0x5883ab=_0x3e8bb3['dataModel'];return(_0x142b27=_0x5883ab===null||_0x5883ab===void 0x0?void 0x0:_0x5883ab['va'])!==null&&_0x142b27!==void 0x0?_0x142b27:_0x5482cc;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x5f39b4=SHAPE_VERTICAL_ALIGN_CHILDREN[_0x3cc2a5(0x3b8)](_0x3bec0f=>_0x3bec0f[_0x3cc2a5(0x2cb)]===_0x5482cc))===null||_0x5f39b4===void 0x0?void 0x0:_0x5f39b4['icon'],'tooltip':_0x3cc2a5(0x566),'type':MenuItemType[_0x3cc2a5(0x23d)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new Observable(_0x2d135a=>{const _0x3d79af=_0x3cc2a5,_0x518180=_0x49f999['onCommandExecuted'](_0x38f2e2=>{const _0xa6e936=_0x33ec;if(_0x38f2e2['id']===SetShapeTextVerticalAlignCommand['id'])_0x2d135a[_0xa6e936(0x654)](_0x356cb6());}),_0x2246c9=_0x121ff6[_0x3d79af(0x2d5)][_0x3d79af(0x58c)](()=>{const _0x58f336=_0x3d79af;_0x2d135a[_0x58f336(0x654)](_0x356cb6());});return _0x2d135a[_0x3d79af(0x654)](_0x356cb6()),()=>{const _0xc4847a=_0x3d79af;_0x518180[_0xc4847a(0x23f)](),_0x2246c9[_0xc4847a(0x360)]();};}),'hidden$':_0x2679c9[_0x3cc2a5(0x33f)](FOCUSING_COMMON_DRAWINGS)[_0x3cc2a5(0x316)](map(_0x4abe25=>!_0x4abe25))};}function ShapeMenuItemFactory(_0xda645c){const _0x5362a2=_0x35ea10,_0x4b5b31=_0xda645c[_0x5362a2(0x653)](IUniverInstanceService);return{'id':MenuInsertShapeCommand['id'],'type':MenuItemType[_0x5362a2(0x23d)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x5362a2(0x693),'tooltip':'sheets-shape.insertShape','activated$':deriveStateFromActiveSheet$(_0x4b5b31,![],()=>new Observable(_0x32538b=>{const _0x30d7c3=_0x5362a2;_0x32538b[_0x30d7c3(0x654)](![]);})),'hidden$':getMenuHiddenObservable(_0xda645c,UniverInstanceType[_0x5362a2(0x370)]),'disabled$':getCurrentRangeDisable$(_0xda645c)};}const menuSchema={[RibbonPosition[_0x35ea10(0x3d1)]]:{[RibbonStartGroup['LAYOUT']]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[RibbonStartGroup['FORMAT']]:{[SetInlineFormatTextBackgroundColorCommand['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[ResetInlineFormatTextBackgroundColorCommand['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[RibbonInsertGroup['MEDIA']]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends Disposable{constructor(_0x5de874,_0x4194f3,_0x1df5cd,_0x338441,_0x70311c,_0x41fb3b,_0x25ad75,_0xd603e7,_0x24e775,_0x43a76e,_0x423bed){const _0x1108fa=_0x35ea10;super(),this[_0x1108fa(0x4c0)]=_0x5de874,this[_0x1108fa(0x3f5)]=_0x4194f3,this[_0x1108fa(0x231)]=_0x1df5cd,this['_menuManagerService']=_0x338441,this[_0x1108fa(0x4f6)]=_0x70311c,this['_localeService']=_0x41fb3b,this[_0x1108fa(0x533)]=_0x25ad75,this[_0x1108fa(0x4d1)]=_0xd603e7,this['_drawingManagerService']=_0x24e775,this[_0x1108fa(0x5d4)]=_0x43a76e,this[_0x1108fa(0x260)]=_0x423bed,_defineProperty(this,_0x1108fa(0x52b),null),_defineProperty(this,_0x1108fa(0x275),null),_defineProperty(this,'_isOpenedShapeEditPanel',![]),this['_registerComponent'](),this[_0x1108fa(0x25c)](),this[_0x1108fa(0x44f)](this[_0x1108fa(0x4c0)][_0x1108fa(0x5e2)](UniverInstanceType['UNIVER_SHEET'])[_0x1108fa(0x58c)](_0x38df38=>{const _0x2ae95a=_0x1108fa;var _0xb8a9cb;if(!_0x38df38)(_0xb8a9cb=this['_sidebarDisposable'])===null||_0xb8a9cb===void 0x0||_0xb8a9cb[_0x2ae95a(0x23f)]();})),this[_0x1108fa(0x3f1)](),this[_0x1108fa(0x649)]();}['_initMenu'](){const _0x1d6da5=_0x35ea10;this[_0x1d6da5(0x418)][_0x1d6da5(0x495)](menuSchema);}[_0x35ea10(0x649)](){const _0x2177aa=_0x35ea10;this[_0x2177aa(0x5d4)][_0x2177aa(0x2ce)](DrawingTypeEnum[_0x2177aa(0x29f)],this[_0x2177aa(0x5f1)]['bind'](this)),this['_sheetCanvasPopManagerService'][_0x2177aa(0x499)](DrawingTypeEnum['DRAWING_SHAPE'],0x6,0x4);}[_0x35ea10(0x5f1)](_0x36eda9,_0x359c45,_0x2e6cd5,_0x4bee9a){const _0x43eb73=_0x35ea10;return[{'label':_0x43eb73(0x38c),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x36eda9,'subUnitId':_0x359c45,'drawingId':_0x2e6cd5},'disable':_0x4bee9a===DrawingTypeEnum[_0x43eb73(0x20b)]},{'label':_0x43eb73(0x46a),'index':0x1,'commandId':RemoveSheetDrawingCommand['id'],'commandParams':{'unitId':_0x36eda9,'drawings':[{'unitId':_0x36eda9,'subUnitId':_0x359c45,'drawingId':_0x2e6cd5,'drawingType':_0x4bee9a}]},'disable':![]},{'label':'sheets-shape.hidePanel','index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x36eda9,'subUnitId':_0x359c45,'drawingId':_0x2e6cd5},'disable':![]},{'label':_0x43eb73(0x456),'index':0x3,'commandId':ToggleSheetsShapeFlipCommand['id'],'commandParams':{'unitId':_0x36eda9,'subUnitId':_0x359c45,'shapeId':_0x2e6cd5,'flipH':!![]},'disable':![]},{'label':_0x43eb73(0x612),'index':0x4,'commandId':ToggleSheetsShapeFlipCommand['id'],'commandParams':{'unitId':_0x36eda9,'subUnitId':_0x359c45,'shapeId':_0x2e6cd5,'flipV':!![]},'disable':![]},{'label':_0x43eb73(0x4ec),'index':0x4,'commandId':SetSheetsShapeRotateCommand['id'],'commandParams':{'unitId':_0x36eda9,'subUnitId':_0x359c45,'shapeId':_0x2e6cd5,'rotate':0x5a},'disable':![]},{'label':_0x43eb73(0x2e5),'index':0x4,'commandId':SetSheetsShapeRotateCommand['id'],'commandParams':{'unitId':_0x36eda9,'subUnitId':_0x359c45,'shapeId':_0x2e6cd5,'rotate':-0x5a},'disable':![]},{'label':_0x43eb73(0x63a),'index':0x4,'commandId':SetSheetsShapeTextVerticalToggleCommand['id'],'commandParams':{'unitId':_0x36eda9,'subUnitId':_0x359c45,'shapeId':_0x2e6cd5},'disable':![]}];}[_0x35ea10(0x420)](_0x41f76c,_0x1dba8c,_0x4cab4a){const _0x41c7d2=_0x35ea10,_0x262536=this[_0x41c7d2(0x4f6)][_0x41c7d2(0x68b)](_0x41f76c,_0x1dba8c,_0x4cab4a),_0x34a22f=this['_sheetsShapeService'][_0x41c7d2(0x5bf)](_0x41f76c,_0x1dba8c,_0x4cab4a);if(_0x262536!==void 0x0&&_0x34a22f!==void 0x0)return{'shapeData':_0x34a22f,'shapeId':_0x4cab4a,'shapeType':_0x262536,'unitId':_0x41f76c,'subUnitId':_0x1dba8c,'disableShapeOption':![]};return null;}[_0x35ea10(0x3f1)](){const _0x304c5f=_0x35ea10;this[_0x304c5f(0x44f)](this[_0x304c5f(0x4d1)][_0x304c5f(0x519)](_0x17ee0e=>{const _0x5c40f0=_0x304c5f;if(_0x17ee0e['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x42433a,subUnitId:_0x18666e,drawingId:_0x456548}=_0x17ee0e[_0x5c40f0(0x69d)];this['_activeShapeInfo']=this[_0x5c40f0(0x420)](_0x42433a,_0x18666e,_0x456548),this['_openShapeEditPanel']();}_0x17ee0e['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x5c40f0(0x275)]=null,this[_0x5c40f0(0x26e)]());if(_0x17ee0e['id']===UpdateSheetsShapeDataMutation['id']){const {unitId:_0x4786fa,subUnitId:_0x467ea4,shapeId:_0x4f5d08}=_0x17ee0e['params'];if(this[_0x5c40f0(0x275)]&&this[_0x5c40f0(0x275)][_0x5c40f0(0x54e)]===_0x4f5d08){const _0x2ceab1=this[_0x5c40f0(0x420)](_0x4786fa,_0x467ea4,_0x4f5d08);if(_0x2ceab1)this[_0x5c40f0(0x275)]=_0x2ceab1;}}})),this[_0x304c5f(0x44f)](this[_0x304c5f(0x659)][_0x304c5f(0x655)]['subscribe'](_0x20f6d4=>{const _0xd7515f=_0x304c5f;if(this['_isOpenedShapeEditPanel']===![])return;if(_0x20f6d4[_0xd7515f(0x551)]===0x0){this[_0xd7515f(0x275)]=null,this['_closeShapeEditPanel']();return;}if(_0x20f6d4[_0xd7515f(0x551)]===0x1&&_0x20f6d4[0x0][_0xd7515f(0x645)]===DrawingTypeEnum['DRAWING_SHAPE']){this['_activeShapeInfo']=this[_0xd7515f(0x420)](_0x20f6d4[0x0]['unitId'],_0x20f6d4[0x0]['subUnitId'],_0x20f6d4[0x0][_0xd7515f(0x2ef)]);if(this[_0xd7515f(0x275)]){this[_0xd7515f(0x2ab)]();return;}}const _0x18275c=_0x20f6d4['filter'](_0x429c7d=>{const _0x3180c5=_0xd7515f;return _0x429c7d['drawingType']===DrawingTypeEnum[_0x3180c5(0x29f)];});if(_0x20f6d4[_0xd7515f(0x551)]>0x1&&_0x18275c[_0xd7515f(0x551)]===_0x20f6d4[_0xd7515f(0x551)]){this[_0xd7515f(0x275)]=this[_0xd7515f(0x420)](_0x20f6d4[0x0]['unitId'],_0x20f6d4[0x0]['subUnitId'],_0x20f6d4[0x0][_0xd7515f(0x2ef)]);if(this[_0xd7515f(0x275)]){this['_openShapeEditPanel']();return;}}else{this[_0xd7515f(0x275)]=this[_0xd7515f(0x420)](_0x20f6d4[0x0][_0xd7515f(0x20a)],_0x20f6d4[0x0][_0xd7515f(0x529)],_0x20f6d4[0x0]['drawingId']);if(this[_0xd7515f(0x275)]){this[_0xd7515f(0x275)][_0xd7515f(0x408)]=!![],this[_0xd7515f(0x2ab)]();return;}}this[_0xd7515f(0x26e)]();}));}[_0x35ea10(0x3ba)](){const _0x41c32b=_0x35ea10;[[_0x41c32b(0x693),ShapeIcon],[_0x41c32b(0x1ea),ShapeAccentBorderCallout1Icon],[_0x41c32b(0x5ca),ShapeAccentBorderCallout2Icon],[_0x41c32b(0x3e7),ShapeAccentBorderCallout3Icon],['ShapeAccentCallout1Icon',ShapeAccentCallout1Icon],[_0x41c32b(0x42b),ShapeAccentCallout2Icon],[_0x41c32b(0x4fc),ShapeAccentCallout3Icon],[_0x41c32b(0x2c8),ShapeActionButtonBackPreviousIcon],['ShapeActionButtonBeginningIcon',ShapeActionButtonBeginningIcon],[_0x41c32b(0x374),ShapeActionButtonBlankIcon],[_0x41c32b(0x68c),ShapeActionButtonDocumentIcon],['ShapeActionButtonEndIcon',ShapeActionButtonEndIcon],[_0x41c32b(0x226),ShapeActionButtonForwardNextIcon],[_0x41c32b(0x686),ShapeActionButtonHelpIcon],['ShapeActionButtonHomeIcon',ShapeActionButtonHomeIcon],[_0x41c32b(0x60d),ShapeActionButtonInformationIcon],[_0x41c32b(0x250),ShapeActionButtonMovieIcon],[_0x41c32b(0x35a),ShapeActionButtonReturnIcon],['ShapeActionButtonSoundIcon',ShapeActionButtonSoundIcon],[_0x41c32b(0x5ff),ShapeArcIcon],[_0x41c32b(0x65a),ShapeBentArrowIcon],[_0x41c32b(0x5b4),ShapeBentConnector3Arrow1Icon],['ShapeBentConnector3Arrow2Icon',ShapeBentConnector3Arrow2Icon],[_0x41c32b(0x575),ShapeBentConnector3Icon],[_0x41c32b(0x432),ShapeBentUpArrowIcon],[_0x41c32b(0x4cd),ShapeBevelIcon],['ShapeBlockArcIcon',ShapeBlockArcIcon],[_0x41c32b(0x204),ShapeBorderCallout1Icon],[_0x41c32b(0x267),ShapeBorderCallout2Icon],[_0x41c32b(0x389),ShapeBorderCallout3Icon],[_0x41c32b(0x608),ShapeBracePairIcon],[_0x41c32b(0x2c7),ShapeBracketPairIcon],[_0x41c32b(0x3b1),ShapeCallout1Icon],[_0x41c32b(0x2c1),ShapeCallout2Icon],[_0x41c32b(0x217),ShapeCallout3Icon],[_0x41c32b(0x30e),ShapeCanIcon],['ShapeChartPlusIcon',ShapeChartPlusIcon],[_0x41c32b(0x410),ShapeChartStarIcon],[_0x41c32b(0x22f),ShapeChartXIcon],[_0x41c32b(0x269),ShapeChevronIcon],['ShapeChordIcon',ShapeChordIcon],['ShapeCircularArrowIcon',ShapeCircularArrowIcon],[_0x41c32b(0x516),ShapeCloudCalloutIcon],['ShapeCloudIcon',ShapeCloudIcon],[_0x41c32b(0x3cf),ShapeCornerIcon],['ShapeCornerTabsIcon',ShapeCornerTabsIcon],['ShapeCubeIcon',ShapeCubeIcon],['ShapeCurvedConnector3Arrow1Icon',ShapeCurvedConnector3Arrow1Icon],[_0x41c32b(0x5ac),ShapeCurvedConnector3Arrow2Icon],[_0x41c32b(0x25f),ShapeCurvedConnector3Icon],['ShapeCurvedDownArrowIcon',ShapeCurvedDownArrowIcon],[_0x41c32b(0x4b7),ShapeCurvedLeftArrowIcon],['ShapeCurvedRightArrowIcon',ShapeCurvedRightArrowIcon],[_0x41c32b(0x5b6),ShapeCurvedUpArrowIcon],[_0x41c32b(0x473),ShapeDecagonIcon],[_0x41c32b(0x458),ShapeDiagStripeIcon],[_0x41c32b(0x66c),ShapeDiamondIcon],[_0x41c32b(0x506),ShapeDodecagonIcon],[_0x41c32b(0x305),ShapeDonutIcon],['ShapeDoubleWaveIcon',ShapeDoubleWaveIcon],[_0x41c32b(0x36d),ShapeDownArrowCalloutIcon],[_0x41c32b(0x272),ShapeDownArrowIcon],[_0x41c32b(0x36c),ShapeEllipseIcon],[_0x41c32b(0x4e9),ShapeEllipseRibbon2Icon],[_0x41c32b(0x2d4),ShapeEllipseRibbonIcon],[_0x41c32b(0x6a0),ShapeFlowChartAlternateProcessIcon],[_0x41c32b(0x4b9),ShapeFlowChartCollateIcon],[_0x41c32b(0x62a),ShapeFlowChartConnectorIcon],['ShapeFlowChartDecisionIcon',ShapeFlowChartDecisionIcon],[_0x41c32b(0x520),ShapeFlowChartDelayIcon],[_0x41c32b(0x3f2),ShapeFlowChartDisplayIcon],[_0x41c32b(0x20d),ShapeFlowChartDocumentIcon],['ShapeFlowChartExtractIcon',ShapeFlowChartExtractIcon],[_0x41c32b(0x3f8),ShapeFlowChartInputOutputIcon],['ShapeFlowChartInternalStorageIcon',ShapeFlowChartInternalStorageIcon],[_0x41c32b(0x469),ShapeFlowChartMagneticDiskIcon],[_0x41c32b(0x333),ShapeFlowChartMagneticDrumIcon],[_0x41c32b(0x564),ShapeFlowChartMagneticTapeIcon],[_0x41c32b(0x2f3),ShapeFlowChartManualInputIcon],[_0x41c32b(0x40b),ShapeFlowChartManualOperationIcon],['ShapeFlowChartMergeIcon',ShapeFlowChartMergeIcon],[_0x41c32b(0x4aa),ShapeFlowChartMultidocumentIcon],[_0x41c32b(0x326),ShapeFlowChartOfflineStorageIcon],['ShapeFlowChartOffpageConnectorIcon',ShapeFlowChartOffpageConnectorIcon],[_0x41c32b(0x503),ShapeFlowChartOnlineStorageIcon],[_0x41c32b(0x492),ShapeFlowChartOrIcon],[_0x41c32b(0x59c),ShapeFlowChartPredefinedProcessIcon],[_0x41c32b(0x252),ShapeFlowChartPreparationIcon],[_0x41c32b(0x56c),ShapeFlowChartProcessIcon],['ShapeFlowChartPunchedCardIcon',ShapeFlowChartPunchedCardIcon],[_0x41c32b(0x312),ShapeFlowChartPunchedTapeIcon],[_0x41c32b(0x431),ShapeFlowChartSortIcon],[_0x41c32b(0x69c),ShapeFlowChartSummingJunctionIcon],[_0x41c32b(0x4bd),ShapeFlowChartTerminatorIcon],[_0x41c32b(0x4d3),ShapeFolderCornerIcon],[_0x41c32b(0x632),ShapeFrameIcon],[_0x41c32b(0x4c8),ShapeFunnelIcon],[_0x41c32b(0x51f),ShapeGear6Icon],[_0x41c32b(0x3e1),ShapeGear9Icon],['ShapeHalfFrameIcon',ShapeHalfFrameIcon],[_0x41c32b(0x2f4),ShapeHeartIcon],['ShapeHeptagonIcon',ShapeHeptagonIcon],[_0x41c32b(0x3ca),ShapeHexagonIcon],['ShapeHomePlateIcon',ShapeHomePlateIcon],['ShapeHorizontalScrollIcon',ShapeHorizontalScrollIcon],[_0x41c32b(0x4df),ShapeIrregularSeal1Icon],[_0x41c32b(0x5ad),ShapeIrregularSeal2Icon],['ShapeLeftArrowCalloutIcon',ShapeLeftArrowCalloutIcon],[_0x41c32b(0x593),ShapeLeftArrowIcon],[_0x41c32b(0x39a),ShapeLeftBraceIcon],[_0x41c32b(0x543),ShapeLeftBracketIcon],['ShapeLeftCircularArrowIcon',ShapeLeftCircularArrowIcon],['ShapeLeftRightArrowCalloutIcon',ShapeLeftRightArrowCalloutIcon],[_0x41c32b(0x563),ShapeLeftRightArrowIcon],['ShapeLeftRightCircularArrowIcon',ShapeLeftRightCircularArrowIcon],['ShapeLeftRightRibbonIcon',ShapeLeftRightRibbonIcon],[_0x41c32b(0x38e),ShapeLeftRightUpArrowIcon],[_0x41c32b(0x5b8),ShapeLeftUpArrowIcon],[_0x41c32b(0x261),ShapeLightningBoltIcon],['ShapeLineIcon',ShapeLineIcon],[_0x41c32b(0x5ee),ShapeLineInvIcon],[_0x41c32b(0x352),ShapeMathDivideIcon],['ShapeMathEqualIcon',ShapeMathEqualIcon],[_0x41c32b(0x614),ShapeMathMinusIcon],[_0x41c32b(0x203),ShapeMathMultiplyIcon],[_0x41c32b(0x5cd),ShapeMathNotEqualIcon],[_0x41c32b(0x5d5),ShapeMathPlusIcon],['ShapeMoonIcon',ShapeMoonIcon],[_0x41c32b(0x3db),ShapeNoSmokingIcon],[_0x41c32b(0x367),ShapeNonIsoscelesTrapezoidIcon],['ShapeNotchedRightArrowIcon',ShapeNotchedRightArrowIcon],[_0x41c32b(0x630),ShapeOctagonIcon],[_0x41c32b(0x413),ShapeParallelogramIcon],['ShapePentagonIcon',ShapePentagonIcon],[_0x41c32b(0x1f2),ShapePieIcon],[_0x41c32b(0x36e),ShapePieWedgeIcon],[_0x41c32b(0x5da),ShapePlaqueIcon],['ShapePlaqueTabsIcon',ShapePlaqueTabsIcon],[_0x41c32b(0x27e),ShapePlusIcon],['ShapeQuadArrowCalloutIcon',ShapeQuadArrowCalloutIcon],[_0x41c32b(0x451),ShapeQuadArrowIcon],[_0x41c32b(0x5dd),ShapeRectIcon],[_0x41c32b(0x3dc),ShapeRectTextboxHorizontalIcon],[_0x41c32b(0x394),ShapeRectTextboxVerticalIcon],[_0x41c32b(0x32f),ShapeRibbon2Icon],[_0x41c32b(0x48a),ShapeRibbonIcon],[_0x41c32b(0x43f),ShapeRightArrowCalloutIcon],[_0x41c32b(0x424),ShapeRightArrowIcon],[_0x41c32b(0x200),ShapeRightBraceIcon],[_0x41c32b(0x3de),ShapeRightBracketIcon],['ShapeRound1RectIcon',ShapeRound1RectIcon],[_0x41c32b(0x1e9),ShapeRound2DiagRectIcon],[_0x41c32b(0x52e),ShapeRound2SameRectIcon],[_0x41c32b(0x2cc),ShapeRoundRectIcon],[_0x41c32b(0x329),ShapeRtTriangleIcon],[_0x41c32b(0x478),ShapeSmileyFaceIcon],[_0x41c32b(0x5f3),ShapeSnip1RectIcon],[_0x41c32b(0x496),ShapeSnip2DiagRectIcon],['ShapeSnip2SameRectIcon',ShapeSnip2SameRectIcon],['ShapeSnipRoundRectIcon',ShapeSnipRoundRectIcon],[_0x41c32b(0x5c1),ShapeSquareTabsIcon],['ShapeStar10Icon',ShapeStar10Icon],[_0x41c32b(0x2f7),ShapeStar12Icon],[_0x41c32b(0x31c),ShapeStar16Icon],[_0x41c32b(0x489),ShapeStar24Icon],[_0x41c32b(0x547),ShapeStar32Icon],['ShapeStar4Icon',ShapeStar4Icon],[_0x41c32b(0x5dc),ShapeStar5Icon],['ShapeStar6Icon',ShapeStar6Icon],['ShapeStar7Icon',ShapeStar7Icon],['ShapeStar8Icon',ShapeStar8Icon],[_0x41c32b(0x636),ShapeStraightConnector1Icon],[_0x41c32b(0x350),ShapeStraightConnector2Icon],['ShapeStripedRightArrowIcon',ShapeStripedRightArrowIcon],[_0x41c32b(0x33e),ShapeSunIcon],['ShapeSwooshArrowIcon',ShapeSwooshArrowIcon],['ShapeTeardropIcon',ShapeTeardropIcon],['ShapeTrapezoidIcon',ShapeTrapezoidIcon],['ShapeTriangleIcon',ShapeTriangleIcon],[_0x41c32b(0x336),ShapeUpArrowCalloutIcon],[_0x41c32b(0x32b),ShapeUpArrowIcon],[_0x41c32b(0x675),ShapeUpDownArrowCalloutIcon],[_0x41c32b(0x55e),ShapeUpDownArrowIcon],[_0x41c32b(0x1f3),ShapeUturnArrowIcon],[_0x41c32b(0x423),ShapeVerticalScrollIcon],[_0x41c32b(0x5f5),ShapeWaveIcon],['ShapeWedgeEllipseCalloutIcon',ShapeWedgeEllipseCalloutIcon],['ShapeWedgeRectCalloutIcon',ShapeWedgeRectCalloutIcon],[_0x41c32b(0x4dc),ShapeWedgeRoundRectCalloutIcon],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[IMAGE_CLIP_SHAPE_PICKER_COMPONENT,ImageClipShapePicker]][_0x41c32b(0x450)](([_0x5f2cb6,_0x8cc0da])=>{const _0x595b23=_0x41c32b;this[_0x595b23(0x44f)](this[_0x595b23(0x533)][_0x595b23(0x307)](_0x5f2cb6,_0x8cc0da));});}[_0x35ea10(0x2ab)](){const _0x5ae670=_0x35ea10;this[_0x5ae670(0x52b)]=this[_0x5ae670(0x231)][_0x5ae670(0x60f)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x5ae670(0x5e0)]['t'](_0x5ae670(0x368))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x5ae670(0x275)]},'onClose':()=>{const _0x2cf301=_0x5ae670;this[_0x2cf301(0x659)]['focusDrawing'](null),this[_0x2cf301(0x260)][_0x2cf301(0x5d2)](FOCUSING_COMMON_DRAWINGS,![]),this['_sidebarDisposable']=null;}}),this[_0x5ae670(0x5af)]=!![];}[_0x35ea10(0x26e)](){const _0x1962b8=_0x35ea10;this[_0x1962b8(0x5af)]=![],this[_0x1962b8(0x231)][_0x1962b8(0x2c0)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x1962b8(0x52b)]=null,this['_contextService'][_0x1962b8(0x5d2)](FOCUSING_COMMON_DRAWINGS,![]),this[_0x1962b8(0x659)][_0x1962b8(0x29d)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,Inject(SheetInterceptorService)),__decorateParam(0x2,Inject(ISidebarService)),__decorateParam(0x3,IMenuManagerService),__decorateParam(0x4,Inject(SheetsShapeService)),__decorateParam(0x5,Inject(LocaleService)),__decorateParam(0x6,Inject(ComponentManager)),__decorateParam(0x7,ICommandService),__decorateParam(0x8,IDrawingManagerService),__decorateParam(0x9,Inject(SheetCanvasPopManagerService)),__decorateParam(0xa,IContextService)],SheetsShapeUIController);var name=_0x35ea10(0x2c2),version='0.22.1';const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY=_0x35ea10(0x206),configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends Disposable{constructor(_0x1dfc30,_0xdb7623,_0x4ec86e,_0x505e10,_0x483675){const _0xec638c=_0x35ea10;super(),this[_0xec638c(0x2cf)]=_0x1dfc30,this[_0xec638c(0x659)]=_0xdb7623,this[_0xec638c(0x481)]=_0x4ec86e,this[_0xec638c(0x4c0)]=_0x505e10,this[_0xec638c(0x2f6)]=_0x483675,_defineProperty(this,_0xec638c(0x209),null),_defineProperty(this,'_unitId',null),_defineProperty(this,_0xec638c(0x5a1),null),_defineProperty(this,_0xec638c(0x3cc),void 0x0),_defineProperty(this,_0xec638c(0x32a),[]),_defineProperty(this,_0xec638c(0x69f),0x0),_defineProperty(this,'_baseTop',0x0),_defineProperty(this,_0xec638c(0x5f9),0x0),_defineProperty(this,'_baseHeight',0x0),_defineProperty(this,_0xec638c(0x690),![]),_defineProperty(this,_0xec638c(0x391),void 0x0),_defineProperty(this,_0xec638c(0x3c3),void 0x0),_defineProperty(this,_0xec638c(0x596),void 0x0),_defineProperty(this,_0xec638c(0x2c6),void 0x0),_defineProperty(this,_0xec638c(0x5a3),![]),this['_registerFocusChangeHandler'](),this[_0xec638c(0x681)]();}[_0x35ea10(0x595)](){const _0x287346=_0x35ea10;this[_0x287346(0x2be)]();}[_0x35ea10(0x3e6)](){const _0x3d24b0=_0x35ea10;this[_0x3d24b0(0x2be)](),this[_0x3d24b0(0x281)](!![]);}[_0x35ea10(0x531)](_0x24645e,_0x45b456,_0x303b85,_0x218092){const _0x3c561a=_0x35ea10,_0x4bfc3e=_0x24645e;if(_0x4bfc3e===ShapeTypeEnum[_0x3c561a(0x358)]||_0x24645e===_0x3c561a(0x49b))return;try{const _0x410161=new ShapeModel(_0x4bfc3e,_0x3c561a(0x37d)+_0x24645e);if(_0x218092)_0x410161[_0x3c561a(0x201)]({'adjustValues':_0x218092},!![]);return _0x410161[_0x3c561a(0x522)]({'width':_0x45b456,'height':_0x303b85}),_0x410161;}catch{return;}}[_0x35ea10(0x3c8)](_0x328c44,_0xbdd424,_0x49cff1){const _0x16f601=_0x35ea10,_0x1a3570={'unitId':_0x328c44,'subUnitId':_0xbdd424,'drawingId':_0x49cff1},_0xdb2c78=this['_drawingManagerService'][_0x16f601(0x2e3)](_0x1a3570);if(!_0xdb2c78||_0xdb2c78['drawingType']!==DrawingTypeEnum[_0x16f601(0x4a5)])return;return _0xdb2c78;}[_0x35ea10(0x4e7)](_0x332abf,_0x1a4c9f,_0x561a88){const _0x3decdc=_0x35ea10,_0x3f09ef=this[_0x3decdc(0x481)][_0x3decdc(0x43a)](_0x332abf);if(!_0x3f09ef)return void 0x0;const {scene:_0x20a4d6}=_0x3f09ef,_0x46640b=getDrawingShapeKeyByDrawingSearch({'unitId':_0x332abf,'subUnitId':_0x1a4c9f,'drawingId':_0x561a88}),_0x2edad3=_0x20a4d6['getObject'](_0x46640b);if(_0x2edad3 instanceof Image){const _0x1931d1=_0x2edad3[_0x3decdc(0x399)];if(_0x1931d1)return{'prstGeom':_0x1931d1,'adjustValues':_0x2edad3[_0x3decdc(0x24f)]};}}['_createControls'](_0x15f2e=![]){const _0xe55cab=_0x35ea10;if(!this[_0xe55cab(0x58d)]||!this[_0xe55cab(0x5a1)]||!this[_0xe55cab(0x209)])return;const _0x2fd39e=this[_0xe55cab(0x481)][_0xe55cab(0x43a)](this['_unitId']);if(!_0x2fd39e)return;if(!_0x2fd39e[_0xe55cab(0x565)](SheetSkeletonManagerService)[_0xe55cab(0x2a5)]())return;const {scene:_0x436dfb}=_0x2fd39e,_0x2e12fc=this[_0xe55cab(0x3c8)](this['_unitId'],this[_0xe55cab(0x5a1)],this['_activeImageId']);if(!_0x2e12fc)return;const {transform:_0x1ec9b4}=_0x2e12fc;if(!_0x1ec9b4)return;const {left:_0x8b8d23,top:_0x1d1bda,width:_0x34d852,height:_0x204557,flipX:_0x14c54a,flipY:_0x1c8b6d,angle:angle=0x0}=_0x1ec9b4;if(_0x8b8d23===void 0x0||_0x1d1bda===void 0x0)return;const _0x251277=this[_0xe55cab(0x4e7)](this['_unitId'],this[_0xe55cab(0x5a1)],this[_0xe55cab(0x209)]);if(!_0x251277)return;if(_0x15f2e){const _0x2e8061=this[_0xe55cab(0x531)](_0x251277[_0xe55cab(0x399)],_0x34d852||0x0,_0x204557||0x0,_0x251277['adjustValues']);if(!_0x2e8061)return;this['_activeAdjustPointList']=_0x2e8061[_0xe55cab(0x274)]();}const _0x251c12=this['_activeAdjustPointList'];if(!_0x251c12||_0x251c12[_0xe55cab(0x551)]===0x0)return;for(let _0x5d38aa=0x0;_0x5d38aa<_0x251c12[_0xe55cab(0x551)];_0x5d38aa++){const _0x31b788=_0x251c12[_0x5d38aa];let _0x29730e=_0x31b788['x'],_0x3b72ae=_0x31b788['y'];if(_0x14c54a)_0x29730e=(_0x34d852||0x0)-_0x29730e;if(_0x1c8b6d)_0x3b72ae=(_0x204557||0x0)-_0x3b72ae;if(angle!==0x0){const _0xc733af=(_0x34d852||0x0)/0x2,_0x4fcb68=(_0x204557||0x0)/0x2,_0x400428=angle*Math['PI']/0xb4,_0x3cec6b=Math[_0xe55cab(0x25d)](_0x400428),_0x2b6746=Math[_0xe55cab(0x5f7)](_0x400428),_0x4a0a60=_0x29730e-_0xc733af,_0x2b7c4f=_0x3b72ae-_0x4fcb68;_0x29730e=_0xc733af+(_0x4a0a60*_0x3cec6b-_0x2b7c4f*_0x2b6746),_0x3b72ae=_0x4fcb68+(_0x4a0a60*_0x2b6746+_0x2b7c4f*_0x3cec6b);}const _0x20f402={'x':_0x29730e,'y':_0x3b72ae,'adjName':_0x31b788[_0xe55cab(0x3a8)]};this[_0xe55cab(0x5aa)](_0x436dfb,_0x20f402,_0x20f402[_0xe55cab(0x3a8)],_0x8b8d23,_0x1d1bda,this['_unitId'],this['_subUnitId']);}}[_0x35ea10(0x5aa)](_0x3fe709,_0x3f03c0,_0x3f0deb,_0x4e2a48,_0x6c574c,_0x1a83db,_0x4d4358){const _0x32d979=_0x35ea10;if(!this[_0x32d979(0x209)])return;const _0x1d234c='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x3f0deb,_0x4eb4f1=_0x3fe709['getObjectIncludeInGroup'](_0x1d234c);if(_0x4eb4f1){_0x4eb4f1[_0x32d979(0x5fc)]({'left':_0x3f03c0['x']+_0x4e2a48-ShapeDefaultConfig['adjHandleSize'],'top':_0x3f03c0['y']+_0x6c574c-ShapeDefaultConfig[_0x32d979(0x345)]});return;}const _0x5a5943=new SheetShapeAdjustPointObject(_0x1d234c,{'left':_0x3f03c0['x']+_0x4e2a48-ShapeDefaultConfig['adjHandleSize'],'top':_0x3f03c0['y']+_0x6c574c-ShapeDefaultConfig[_0x32d979(0x345)],'adjName':_0x3f0deb,'shapeId':this[_0x32d979(0x209)],'unitId':_0x1a83db,'subUnitId':_0x4d4358,'width':ShapeDefaultConfig['adjHandleSize']+0x8,'height':ShapeDefaultConfig[_0x32d979(0x345)]+0x8,'zIndex':DRAWING_OBJECT_LAYER_INDEX+0x1,'evented':!![]});this[_0x32d979(0x32a)]['push'](_0x5a5943),this[_0x32d979(0x65e)](_0x5a5943,_0x3fe709,_0x3f0deb),_0x3fe709['addObject'](_0x5a5943,DRAWING_OBJECT_LAYER_INDEX+0x1);}[_0x35ea10(0x2be)](){const _0x4910ba=_0x35ea10;if(this['_shapes'][_0x4910ba(0x551)]===0x0)return;this[_0x4910ba(0x32a)][_0x4910ba(0x450)](_0x5b9781=>_0x5b9781[_0x4910ba(0x23f)]()),this['_shapes']=[];}[_0x35ea10(0x5b3)](_0x3685cd,_0x32f193){const _0x9e7ccd=_0x35ea10;var _0x2ef325;const _0x1eccb7={'x':0x0,'y':0x0},_0x58c118=this[_0x9e7ccd(0x481)][_0x9e7ccd(0x43a)](_0x3685cd);if(!_0x58c118)return _0x1eccb7;if(!_0x58c118[_0x9e7ccd(0x565)](SheetSkeletonManagerService)[_0x9e7ccd(0x39f)](_0x32f193))return _0x1eccb7;const _0x304fdb=_0x58c118[_0x9e7ccd(0x565)](SheetScrollManagerService),_0x2848a5=_0x304fdb===null||_0x304fdb===void 0x0?void 0x0:_0x304fdb[_0x9e7ccd(0x56d)]();if(!_0x2848a5)return _0x1eccb7;const _0x1bdb17=(_0x2ef325=this[_0x9e7ccd(0x4c0)]['getUnit'](_0x3685cd))===null||_0x2ef325===void 0x0?void 0x0:_0x2ef325['getSheetBySheetId'](_0x32f193);if(!_0x1bdb17)return _0x1eccb7;const _0x3fceda=getViewportByCell(_0x2848a5['sheetViewStartRow'],_0x2848a5[_0x9e7ccd(0x5cb)],_0x58c118['scene'],_0x1bdb17);if(!_0x3fceda)return _0x1eccb7;return{'x':_0x3fceda['viewportScrollX'],'y':_0x3fceda[_0x9e7ccd(0x292)]};}[_0x35ea10(0x66a)](_0x34ef7d,_0xa2ded3){const _0x525705=_0x35ea10;var _0xa75289,_0x579bc1;const _0x141f26=(_0xa75289=this['_univerInstanceService'][_0x525705(0x28f)](_0x34ef7d))===null||_0xa75289===void 0x0?void 0x0:_0xa75289['getSheetBySheetId'](_0xa2ded3);return(_0x579bc1=_0x141f26===null||_0x141f26===void 0x0?void 0x0:_0x141f26[_0x525705(0x45b)]())!==null&&_0x579bc1!==void 0x0?_0x579bc1:0x1;}[_0x35ea10(0x65e)](_0x2d9fce,_0x477060,_0x5c1704){const _0x5f0c3b=_0x35ea10;this[_0x5f0c3b(0x44f)](toDisposable(_0x2d9fce[_0x5f0c3b(0x2b3)]['subscribeEvent']((_0x31a8bc,_0x989097)=>{const _0x33263e=_0x5f0c3b;var _0xfb28f7,_0x1c6fab,_0x3fa792;const {unitId:_0x13fda0,subUnitId:_0x205872,drawingId:_0x3a6623}=_0x2d9fce[_0x33263e(0x2a2)](),_0x2dd61c=this[_0x33263e(0x3c8)](_0x13fda0,_0x205872,_0x3a6623);if(!(_0x2dd61c===null||_0x2dd61c===void 0x0?void 0x0:_0x2dd61c[_0x33263e(0x27b)]))return;const {left:_0x1ec73b,top:_0x117628,width:_0x17e244,height:_0x11337b}=_0x2dd61c['transform'];this[_0x33263e(0x69f)]=_0x1ec73b||0x0,this['_baseTop']=_0x117628||0x0,this[_0x33263e(0x5f9)]=_0x17e244||0x0,this['_baseHeight']=_0x11337b||0x0;const _0x4f4ba8=Boolean((_0xfb28f7=_0x2dd61c[_0x33263e(0x27b)])===null||_0xfb28f7===void 0x0?void 0x0:_0xfb28f7[_0x33263e(0x53a)]),_0x3eee0b=Boolean((_0x1c6fab=_0x2dd61c[_0x33263e(0x27b)])===null||_0x1c6fab===void 0x0?void 0x0:_0x1c6fab[_0x33263e(0x4ba)]),_0x43fbc5=((_0x3fa792=_0x2dd61c['transform'])===null||_0x3fa792===void 0x0?void 0x0:_0x3fa792[_0x33263e(0x3bd)])||0x0,_0x5338b4=this['_getImagePrstGeom'](_0x13fda0,_0x205872,_0x3a6623);if(!_0x5338b4)return;const _0x38ca4c=this[_0x33263e(0x531)](_0x5338b4[_0x33263e(0x399)],this[_0x33263e(0x5f9)],this[_0x33263e(0x3a6)],_0x5338b4['adjustValues']);if(!_0x38ca4c)return;this[_0x33263e(0x3c3)]=_0x38ca4c,this[_0x33263e(0x391)]=_0x38ca4c[_0x33263e(0x41b)](_0x5c1704);if(!this[_0x33263e(0x391)])return;this['_isStartAdjusting']=!![],_0x477060[_0x33263e(0x4a0)]();const _0x2d6992=_0x5338b4[_0x33263e(0x399)];this['_adjHandlerPointerMove']=_0x477060['onPointerMove$']['subscribeEvent']((_0x3e2a70,_0x174690)=>{const _0x6da299=_0x33263e;if(!this[_0x6da299(0x690)])return;const {offsetX:_0x5352dc,offsetY:_0x5ac83b}=_0x3e2a70,_0x455016=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x455016)return;_0x477060[_0x6da299(0x4a0)](),_0x477060[_0x6da299(0x347)](CURSOR_TYPE[_0x6da299(0x468)]);const _0x12cb47={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this['_baseHeight']},_0x1f5aaa=this[_0x6da299(0x5b3)](_0x13fda0,_0x205872),_0x574625=this[_0x6da299(0x66a)](_0x13fda0,_0x205872);let _0x2e628c=_0x5352dc/_0x574625+_0x1f5aaa['x']-this['_baseLeft'],_0x10d3cd=_0x5ac83b/_0x574625+_0x1f5aaa['y']-this[_0x6da299(0x4c1)];if(_0x43fbc5!==0x0){const _0x3a4228=this[_0x6da299(0x5f9)]/0x2,_0x51a0f7=this[_0x6da299(0x3a6)]/0x2,_0x583f7d=_0x43fbc5*Math['PI']/0xb4,_0x190433=Math['cos'](_0x583f7d),_0x84349e=Math[_0x6da299(0x5f7)](_0x583f7d),_0x4f949e=_0x2e628c-_0x3a4228,_0x4d5b70=_0x10d3cd-_0x51a0f7;_0x2e628c=_0x3a4228+(_0x4f949e*_0x190433+_0x4d5b70*_0x84349e),_0x10d3cd=_0x51a0f7+(-_0x4f949e*_0x84349e+_0x4d5b70*_0x190433);}if(_0x4f4ba8)_0x2e628c=this[_0x6da299(0x5f9)]-_0x2e628c;if(_0x3eee0b)_0x10d3cd=this['_baseHeight']-_0x10d3cd;const _0x32a27d=this[_0x6da299(0x3c3)]['calcAdjValue'](_0x12cb47,{'x':_0x2e628c,'y':_0x10d3cd},_0x455016,_0x4f4ba8,_0x3eee0b),_0x4065fb=_0x455016['gdRefX']||_0x455016[_0x6da299(0x4bf)]||_0x455016[_0x6da299(0x646)]||_0x455016[_0x6da299(0x1f0)];if(_0x4065fb===void 0x0)return;this[_0x6da299(0x3c3)][_0x6da299(0x1eb)](_0x4065fb,_0x32a27d),this[_0x6da299(0x3c3)]['updateContext']({'width':this[_0x6da299(0x5f9)],'height':this[_0x6da299(0x3a6)]}),this[_0x6da299(0x214)](_0x13fda0,_0x205872,_0x3a6623,_0x4065fb,_0x32a27d),this['_activeAdjustPointList']=this['_activeShapeModel']['getDrawingPoints'](),this[_0x6da299(0x391)]=this[_0x6da299(0x3c3)][_0x6da299(0x41b)](_0x5c1704),this[_0x6da299(0x281)](),_0x174690[_0x6da299(0x322)]();}),this[_0x33263e(0x2c6)]=_0x477060[_0x33263e(0x349)]['subscribeEvent']((_0x6d5d33,_0x5d9ff7)=>{const _0xfca0b4=_0x33263e;this[_0xfca0b4(0x596)][_0xfca0b4(0x360)](),this['_adjHandlerPointerUp'][_0xfca0b4(0x360)](),_0x477060[_0xfca0b4(0x55c)]();if(this[_0xfca0b4(0x3c3)]){const _0x5a178a=this[_0xfca0b4(0x3c3)]['getAdjustNames'](),_0x41f182={};for(const _0x5576c6 of _0x5a178a){const _0x5d7e95=this['_activeShapeModel']['getAdjustValueByName'](_0x5576c6);if(_0x5d7e95!==void 0x0)_0x41f182[_0x5576c6]=_0x5d7e95;}this['_imageShapeClipController']['clipByShape'](_0x13fda0,_0x205872,_0x3a6623,_0x2d6992,_0x41f182);}this['_activeAdjustInfo']=void 0x0,this[_0xfca0b4(0x3c3)]=void 0x0,this['_isStartAdjusting']=![],_0x5d9ff7[_0xfca0b4(0x322)](),_0x477060['enableObjectsEvent']();}),_0x989097[_0x33263e(0x322)]();})));}['_updateImageAdjValues'](_0x1d22e2,_0x316939,_0x5f169e,_0x137ac9,_0x246950){const _0x239350=_0x35ea10,_0xb30c2=this[_0x239350(0x481)][_0x239350(0x43a)](_0x1d22e2);if(!_0xb30c2)return;const {scene:_0x349129}=_0xb30c2,_0x8bfeb9=getDrawingShapeKeyByDrawingSearch({'unitId':_0x1d22e2,'subUnitId':_0x316939,'drawingId':_0x5f169e}),_0x4d9090=_0x349129['getObject'](_0x8bfeb9);if(_0x4d9090 instanceof Image){var _0x1661bc;const _0x6ec77c=(_0x1661bc=_0x4d9090['prstGeomAdjValues'])!==null&&_0x1661bc!==void 0x0?_0x1661bc:{};_0x4d9090[_0x239350(0x4d6)]({..._0x6ec77c,[_0x137ac9]:_0x246950}),_0x4d9090['makeDirty'](!![]);}}[_0x35ea10(0x681)](){const _0x3e87cf=_0x35ea10,_0x28b337=this[_0x3e87cf(0x4c0)]['getCurrentTypeOfUnit$'](UniverInstanceType[_0x3e87cf(0x370)]);this['disposeWithMe'](_0x28b337[_0x3e87cf(0x316)](switchMap(_0x201fca=>{const _0x597255=_0x3e87cf;if(!_0x201fca)return EMPTY;return _0x201fca[_0x597255(0x56a)]['pipe'](switchMap(_0x1f3ad6=>{if(!_0x1f3ad6)return EMPTY;const _0x878d20=_0x201fca['getUnitId'](),_0x5e8129=this['_renderManagerService']['getRenderById'](_0x878d20),_0x69ef8f=_0x5e8129===null||_0x5e8129===void 0x0?void 0x0:_0x5e8129['scene'];if(!_0x69ef8f)return EMPTY;return of(_0x69ef8f);}));}))[_0x3e87cf(0x58c)](_0x4cff68=>{const _0x35a078=_0x3e87cf,_0x344bd9=_0x4cff68[_0x35a078(0x5c9)]();this[_0x35a078(0x44f)](_0x4cff68[_0x35a078(0x476)][_0x35a078(0x1f9)](()=>{const _0x17406e=_0x35a078;if(this[_0x17406e(0x5a3)])this['_clearControls']();})),this[_0x35a078(0x44f)](_0x344bd9[_0x35a078(0x41e)][_0x35a078(0x58c)](_0x18294d=>{const _0x372428=_0x35a078,{objects:_0x44558d}=_0x18294d;this[_0x372428(0x281)]();if(_0x44558d!==null&&_0x44558d[_0x372428(0x634)]===0x1){const _0x96ceb4=_0x44558d[_0x372428(0x28a)]()[_0x372428(0x654)]()[_0x372428(0x2cb)];if(_0x96ceb4 instanceof Image&&_0x96ceb4['prstGeom'])this[_0x372428(0x5a3)]=!![];}})),this[_0x35a078(0x44f)](_0x344bd9[_0x35a078(0x493)][_0x35a078(0x58c)](()=>{const _0x49c44b=_0x35a078;if(this['_isImagePointerDown'])this[_0x49c44b(0x2be)]();})),this[_0x35a078(0x44f)](_0x4cff68[_0x35a078(0x349)][_0x35a078(0x1f9)](()=>{const _0x3576dd=_0x35a078;this[_0x3576dd(0x5a3)]&&(this[_0x3576dd(0x5a3)]=![],this[_0x3576dd(0x281)]());})),this['disposeWithMe'](_0x344bd9[_0x35a078(0x54d)][_0x35a078(0x58c)](()=>{const _0x3e20db=_0x35a078;if(this[_0x3e20db(0x58d)]&&this[_0x3e20db(0x5a1)]&&this['_activeImageId']){const _0x35e82b=this[_0x3e20db(0x4e7)](this[_0x3e20db(0x58d)],this[_0x3e20db(0x5a1)],this[_0x3e20db(0x209)]);if(_0x35e82b){var _0xfedb11,_0x56efd9;const _0x30527a=this[_0x3e20db(0x3c8)](this['_unitId'],this[_0x3e20db(0x5a1)],this[_0x3e20db(0x209)]),_0x28731a=(_0x30527a===null||_0x30527a===void 0x0||(_0xfedb11=_0x30527a[_0x3e20db(0x27b)])===null||_0xfedb11===void 0x0?void 0x0:_0xfedb11[_0x3e20db(0x246)])||0x0,_0x465120=(_0x30527a===null||_0x30527a===void 0x0||(_0x56efd9=_0x30527a[_0x3e20db(0x27b)])===null||_0x56efd9===void 0x0?void 0x0:_0x56efd9[_0x3e20db(0x372)])||0x0,_0x959014=this[_0x3e20db(0x531)](_0x35e82b[_0x3e20db(0x399)],_0x28731a,_0x465120,_0x35e82b['adjustValues']);_0x959014&&(this[_0x3e20db(0x3cc)]=_0x959014['getDrawingPoints'](),this['_clearControls'](),this[_0x3e20db(0x281)](!![]));}}}));}));}[_0x35ea10(0x5ec)](){const _0x47071d=_0x35ea10;this['disposeWithMe'](this[_0x47071d(0x659)][_0x47071d(0x655)][_0x47071d(0x58c)](_0x149ccb=>{const _0x1d0c2e=_0x47071d;if(_0x149ccb[_0x1d0c2e(0x551)]===0x1){const _0x2958ef=_0x149ccb[0x0];if(_0x2958ef[_0x1d0c2e(0x645)]===DrawingTypeEnum[_0x1d0c2e(0x4a5)]){const {unitId:_0x16b94b,subUnitId:_0x1d7071,drawingId:_0x175fb5}=_0x2958ef,_0x38d00a=this[_0x1d0c2e(0x4e7)](_0x16b94b,_0x1d7071,_0x175fb5);if(_0x38d00a){var _0x1e196d,_0xae446b;this['_activeImageId']=_0x175fb5,this['_unitId']=_0x16b94b,this[_0x1d0c2e(0x5a1)]=_0x1d7071;const _0x26522e=this[_0x1d0c2e(0x3c8)](_0x16b94b,_0x1d7071,_0x175fb5),_0xe90342=(_0x26522e===null||_0x26522e===void 0x0||(_0x1e196d=_0x26522e[_0x1d0c2e(0x27b)])===null||_0x1e196d===void 0x0?void 0x0:_0x1e196d[_0x1d0c2e(0x246)])||0x0,_0x5dc1ed=(_0x26522e===null||_0x26522e===void 0x0||(_0xae446b=_0x26522e[_0x1d0c2e(0x27b)])===null||_0xae446b===void 0x0?void 0x0:_0xae446b[_0x1d0c2e(0x372)])||0x0,_0x19e389=this[_0x1d0c2e(0x531)](_0x38d00a[_0x1d0c2e(0x399)],_0xe90342,_0x5dc1ed,_0x38d00a['adjustValues']);if(_0x19e389)this['_activeAdjustPointList']=_0x19e389[_0x1d0c2e(0x274)]();this[_0x1d0c2e(0x2be)](),this[_0x1d0c2e(0x281)](!![]);}else this[_0x1d0c2e(0x3df)]();}else this[_0x1d0c2e(0x3df)]();}else this[_0x1d0c2e(0x3df)]();})),this[_0x47071d(0x44f)](this[_0x47071d(0x659)][_0x47071d(0x23c)][_0x47071d(0x58c)](_0x32bb0c=>{const _0x5aa528=_0x47071d;if(_0x32bb0c['length']===0x1){const _0x3bd567=_0x32bb0c[0x0],_0x126fd5=this[_0x5aa528(0x659)][_0x5aa528(0x2e3)](_0x3bd567);(_0x126fd5===null||_0x126fd5===void 0x0?void 0x0:_0x126fd5[_0x5aa528(0x645)])===DrawingTypeEnum[_0x5aa528(0x4a5)]&&(this['_activeImageId']===_0x3bd567['drawingId']&&(this['_clearControls'](),this['_createControls'](!![])));}})),this['disposeWithMe'](this[_0x47071d(0x659)][_0x47071d(0x629)][_0x47071d(0x58c)](_0x479293=>{const _0x2e441c=_0x47071d;for(const _0x25cd40 of _0x479293)if(this[_0x2e441c(0x209)]===_0x25cd40[_0x2e441c(0x2ef)])this[_0x2e441c(0x3df)]();}));}[_0x35ea10(0x3df)](){const _0x52d499=_0x35ea10;this[_0x52d499(0x209)]=null,this[_0x52d499(0x58d)]=null,this[_0x52d499(0x5a1)]=null,this[_0x52d499(0x3cc)]=void 0x0,this['_clearControls']();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,IDrawingManagerService),__decorateParam(0x2,Inject(IRenderManagerService)),__decorateParam(0x3,IUniverInstanceService),__decorateParam(0x4,Inject(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends Disposable{constructor(_0x4add6c,_0x1527a1,_0x3617ba,_0x9a932){const _0x2f8514=_0x35ea10;super(),this[_0x2f8514(0x4c0)]=_0x4add6c,this['_sheetInterceptorService']=_0x1527a1,this[_0x2f8514(0x5ba)]=_0x3617ba,this['_sheetsShapeService']=_0x9a932,this['_initSheetChange']();}[_0x35ea10(0x639)](){const _0x1bc85f=_0x35ea10;this[_0x1bc85f(0x44f)](this[_0x1bc85f(0x3f5)][_0x1bc85f(0x5e4)]({'getMutations':_0x358594=>{const _0x20ba28=_0x1bc85f;if(_0x358594['id']===RemoveSheetCommand['id']){const _0x2e5cd6=getSheetCommandTarget(this[_0x20ba28(0x4c0)],_0x358594['params']);if(!_0x2e5cd6)return{'redos':[],'undos':[]};const {unitId:_0xfcd8c2,subUnitId:_0x15ad49}=_0x2e5cd6,_0x36aba4=this[_0x20ba28(0x5ba)][_0x20ba28(0x635)](_0xfcd8c2,_0x15ad49),_0x2bd850=Object[_0x20ba28(0x28a)](_0x36aba4)['filter'](_0x4dc2a0=>_0x4dc2a0[_0x20ba28(0x645)]===DrawingTypeEnum[_0x20ba28(0x29f)]);if(_0x2bd850[_0x20ba28(0x551)]===0x0)return{'redos':[],'undos':[]};const _0x48be8f=[],_0x51982d=[];for(let _0x408253=0x0;_0x408253<_0x2bd850['length'];_0x408253++){const _0x402f24=_0x2bd850[_0x408253],_0x2a9de5=this[_0x20ba28(0x4f6)][_0x20ba28(0x5fe)](_0x402f24[_0x20ba28(0x20a)],_0x402f24['subUnitId'],_0x402f24['drawingId']);if(!_0x2a9de5)continue;const {redo:_0x4db66f,undo:_0x5834e8,objects:_0x3a0cf9}=this['_sheetDrawingService']['getBatchRemoveOp']([_0x402f24]);_0x48be8f['push']({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0xfcd8c2,'subUnitId':_0x15ad49,'shapeId':_0x402f24[_0x20ba28(0x2ef)]}}),_0x48be8f[_0x20ba28(0x5f8)]({'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0xfcd8c2,'subUnitId':_0x15ad49,'type':DrawingApplyType['REMOVE'],'op':_0x4db66f,'objects':_0x3a0cf9}}),_0x51982d[_0x20ba28(0x5f8)]({'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0xfcd8c2,'subUnitId':_0x15ad49,'type':DrawingApplyType[_0x20ba28(0x412)],'op':_0x5834e8,'objects':_0x3a0cf9}}),_0x51982d[_0x20ba28(0x5f8)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0xfcd8c2,'subUnitId':_0x15ad49,'shapeId':_0x402f24[_0x20ba28(0x2ef)],'shapeType':_0x2a9de5['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x20ba28(0x50a)](_0x2a9de5[_0x20ba28(0x301)]()))}});}return{'redos':_0x48be8f,'undos':_0x51982d};}else{if(_0x358594['id']===CopySheetCommand['id']){const {unitId:_0x4685ef,subUnitId:_0x261a11,targetSubUnitId:_0x217a14}=_0x358594[_0x20ba28(0x69d)];if(!_0x4685ef||!_0x261a11||!_0x217a14)return{'redos':[],'undos':[]};const _0x298c37=this[_0x20ba28(0x5ba)]['getDrawingData'](_0x4685ef,_0x261a11),_0x26d102=Object['values'](_0x298c37)['filter'](_0xeac72c=>_0xeac72c[_0x20ba28(0x645)]===DrawingTypeEnum['DRAWING_SHAPE']);if(_0x26d102[_0x20ba28(0x551)]===0x0)return{'redos':[],'undos':[]};const _0x344f04=[],_0x15003f=[];for(let _0x15140e=0x0;_0x15140e<_0x26d102['length'];_0x15140e++){const _0x479870=_0x26d102[_0x15140e],_0x3846a9=this['_sheetsShapeService'][_0x20ba28(0x5fe)](_0x479870[_0x20ba28(0x20a)],_0x479870['subUnitId'],_0x479870[_0x20ba28(0x2ef)]);if(!_0x3846a9)continue;const _0x2af0ce=generateRandomId(),_0x411be2={..._0x479870,'unitId':_0x4685ef,'subUnitId':_0x217a14,'drawingId':_0x2af0ce},{redo:_0x1b0623,undo:_0x3288bb,objects:_0x4e36aa}=this[_0x20ba28(0x5ba)]['getBatchAddOp']([_0x411be2]);_0x344f04['push']({'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x4685ef,'subUnitId':_0x217a14,'type':DrawingApplyType[_0x20ba28(0x412)],'op':_0x1b0623,'objects':_0x4e36aa}}),_0x344f04[_0x20ba28(0x5f8)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x4685ef,'subUnitId':_0x217a14,'shapeId':_0x2af0ce,'shapeType':_0x3846a9['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x20ba28(0x50a)](_0x3846a9[_0x20ba28(0x301)]()))}}),_0x15003f[_0x20ba28(0x5f8)]({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x4685ef,'subUnitId':_0x217a14,'shapeId':_0x2af0ce}}),_0x15003f[_0x20ba28(0x5f8)]({'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x4685ef,'subUnitId':_0x217a14,'type':DrawingApplyType[_0x20ba28(0x53b)],'op':_0x3288bb,'objects':_0x4e36aa}});}return{'redos':_0x344f04,'undos':_0x15003f};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,Inject(IUniverInstanceService)),__decorateParam(0x1,Inject(SheetInterceptorService)),__decorateParam(0x2,Inject(ISheetDrawingService)),__decorateParam(0x3,Inject(SheetsShapeService))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends Disposable{constructor(_0x154b92,_0x4371d2,_0x363c65,_0x4b6efa,_0x154402){const _0x49a371=_0x35ea10;super(),this[_0x49a371(0x2cf)]=_0x154b92,this[_0x49a371(0x442)]=_0x4371d2,this[_0x49a371(0x659)]=_0x363c65,this[_0x49a371(0x260)]=_0x4b6efa,this['_sheetsShapeService']=_0x154402,_defineProperty(this,_0x49a371(0x263),null),this[_0x49a371(0x257)](),this[_0x49a371(0x3a2)](),this[_0x49a371(0x4ef)]();}[_0x35ea10(0x257)](){const _0xf41664=_0x35ea10,{scene:_0x1e1e30}=this[_0xf41664(0x2cf)];this[_0xf41664(0x44f)](_0x1e1e30[_0xf41664(0x277)][_0xf41664(0x1f9)](_0x2aeb3f=>{const _0x10caf6=_0xf41664,{offsetX:_0x4da31b,offsetY:_0x58d8ae}=_0x2aeb3f,_0x1330df=_0x1e1e30[_0x10caf6(0x402)](Vector2['FromArray']([_0x4da31b,_0x58d8ae]));if(_0x1330df instanceof DrawingShape){if(isConnectorShape(this[_0x10caf6(0x4f6)][_0x10caf6(0x3ab)](_0x1330df[_0x10caf6(0x20a)],_0x1330df[_0x10caf6(0x529)],_0x1330df[_0x10caf6(0x54e)])))return;this['_shapeTextEditingService'][_0x10caf6(0x356)]({'visible':!![],'unitId':_0x1330df['unitId'],'subUnitId':_0x1330df[_0x10caf6(0x529)],'shapeId':_0x1330df[_0x10caf6(0x54e)],'shapeKey':_0x1330df[_0x10caf6(0x405)]});}}));}['_initSelection'](){const _0x45f4fc=_0x35ea10;this['disposeWithMe'](this['_drawingManagerService'][_0x45f4fc(0x655)][_0x45f4fc(0x58c)](_0x43652b=>{const _0x3cc10=_0x45f4fc;if(_0x43652b[_0x3cc10(0x551)]===0x1){const _0x595732=_0x43652b[0x0],_0xae62bf=this[_0x3cc10(0x659)][_0x3cc10(0x2e3)](_0x595732);if((_0xae62bf===null||_0xae62bf===void 0x0?void 0x0:_0xae62bf[_0x3cc10(0x645)])===DrawingTypeEnum['DRAWING_SHAPE']){const _0x3e4a4f=this[_0x3cc10(0x442)]['getEditing']();if((_0x3e4a4f===null||_0x3e4a4f===void 0x0?void 0x0:_0x3e4a4f[_0x3cc10(0x54e)])===_0x595732['drawingId']&&_0x3e4a4f[_0x3cc10(0x218)])return;if(isConnectorShape(this[_0x3cc10(0x4f6)][_0x3cc10(0x3ab)](_0x595732['unitId'],_0x595732[_0x3cc10(0x529)],_0x595732[_0x3cc10(0x2ef)])))this[_0x3cc10(0x442)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x3cc10(0x541)]()&&(this['_shapeTextEditingService'][_0x3cc10(0x591)](!![]),requestAnimationFrame(()=>{const _0x113b69=_0x3cc10;this[_0x113b69(0x442)][_0x113b69(0x356)](null);}));}else this['_shapeTextEditingService'][_0x3cc10(0x541)]()&&(this[_0x3cc10(0x442)][_0x3cc10(0x591)](!![]),requestAnimationFrame(()=>{const _0x79ac73=_0x3cc10;this[_0x79ac73(0x442)][_0x79ac73(0x356)](null);}));})),this[_0x45f4fc(0x44f)](this['_drawingManagerService'][_0x45f4fc(0x629)][_0x45f4fc(0x58c)](_0x33874a=>{const _0x5f57a5=_0x45f4fc,_0x128053=this['_shapeTextEditingService'][_0x5f57a5(0x541)]();if(_0x128053&&_0x33874a['some'](_0x25df19=>_0x25df19[_0x5f57a5(0x2ef)]===_0x128053[_0x5f57a5(0x54e)]))this[_0x5f57a5(0x442)][_0x5f57a5(0x356)](null);}));}[_0x35ea10(0x4ef)](){const _0x4ed3fe=_0x35ea10;this['disposeWithMe'](this[_0x4ed3fe(0x442)][_0x4ed3fe(0x2d5)][_0x4ed3fe(0x58c)](_0x76d0e3=>{const _0x28d00f=_0x4ed3fe,{scene:_0x319428}=this['_context'];if(this[_0x28d00f(0x263)]){const _0x5005d4=_0x319428[_0x28d00f(0x5fd)](this[_0x28d00f(0x263)]);if(_0x5005d4)_0x5005d4['setEditing'](![]);}if(_0x76d0e3){const _0x1c4bdb=!!_0x76d0e3['visible'],_0x2b662e=_0x319428['getObjectIncludeInGroup'](_0x76d0e3['shapeKey']);_0x2b662e&&(_0x2b662e[_0x28d00f(0x356)](_0x1c4bdb),this[_0x28d00f(0x263)]=_0x76d0e3['shapeKey']),this[_0x28d00f(0x260)][_0x28d00f(0x5d2)](FOCUSING_SHAPE_TEXT_EDITOR,_0x1c4bdb);}else this[_0x28d00f(0x263)]=null,this[_0x28d00f(0x260)][_0x28d00f(0x5d2)](FOCUSING_SHAPE_TEXT_EDITOR,![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,Inject(ShapeTextEditingService)),__decorateParam(0x2,IDrawingManagerService),__decorateParam(0x3,IContextService),__decorateParam(0x4,Inject(SheetsShapeService))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':ShapeDefaultConfig[_0x35ea10(0x22a)],'stroke':ShapeDefaultConfig['cxnPointStroke'],'strokeWidth':ShapeDefaultConfig['cxnPointStrokeWidth']},'highlighted':{'fill':_0x35ea10(0x467),'stroke':'#1a73e8','strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends Shape{constructor(_0x207493,_0x15a1d4){const _0x42b12c=_0x35ea10;super(_0x207493,_0x15a1d4),_defineProperty(this,'_targetShapeId',''),_defineProperty(this,_0x42b12c(0x600),-0x1),_defineProperty(this,_0x42b12c(0x58d),''),_defineProperty(this,_0x42b12c(0x5a1),''),_defineProperty(this,_0x42b12c(0x548),![]);if(_0x15a1d4)this[_0x42b12c(0x3b4)](_0x15a1d4);}[_0x35ea10(0x4b8)](){const _0x1a5094=_0x35ea10;return{'unitId':this[_0x1a5094(0x58d)],'subUnitId':this[_0x1a5094(0x5a1)],'shapeId':this[_0x1a5094(0x678)],'cxnIndex':this[_0x1a5094(0x600)]};}[_0x35ea10(0x545)](_0x32c902){const _0x35ee5b=_0x35ea10;this['_isHighlighted']!==_0x32c902&&(this[_0x35ee5b(0x548)]=_0x32c902,this['makeDirty'](!![]));}['isHighlighted'](){const _0x3b79d5=_0x35ea10;return this[_0x3b79d5(0x548)];}['setShapeProps'](_0x1f4e79){const _0x43e5f9=_0x35ea10;var _0x3baed2,_0x4dd447;if(typeof _0x1f4e79[_0x43e5f9(0x223)]!==_0x43e5f9(0x457))this[_0x43e5f9(0x678)]=_0x1f4e79[_0x43e5f9(0x223)];if(typeof _0x1f4e79[_0x43e5f9(0x299)]!=='undefined')this[_0x43e5f9(0x600)]=_0x1f4e79[_0x43e5f9(0x299)];if(typeof _0x1f4e79['unitId']!==_0x43e5f9(0x457))this['_unitId']=_0x1f4e79[_0x43e5f9(0x20a)];if(typeof _0x1f4e79['subUnitId']!==_0x43e5f9(0x457))this[_0x43e5f9(0x5a1)]=_0x1f4e79[_0x43e5f9(0x529)];if(typeof _0x1f4e79[_0x43e5f9(0x628)]!==_0x43e5f9(0x457))this['_isHighlighted']=_0x1f4e79[_0x43e5f9(0x628)];this[_0x43e5f9(0x5fc)]({'width':(_0x3baed2=_0x1f4e79[_0x43e5f9(0x246)])!==null&&_0x3baed2!==void 0x0?_0x3baed2:ShapeDefaultConfig[_0x43e5f9(0x3ee)]*0x2,'height':(_0x4dd447=_0x1f4e79[_0x43e5f9(0x372)])!==null&&_0x4dd447!==void 0x0?_0x4dd447:ShapeDefaultConfig[_0x43e5f9(0x3ee)]*0x2});}[_0x35ea10(0x331)](_0x35e707){const _0x2f6197=_0x35ea10,_0x3e9331=this['_isHighlighted']?ConnectionSiteStyle['highlighted']:ConnectionSiteStyle['normal'];Circle[_0x2f6197(0x568)](_0x35e707,{'radius':ShapeDefaultConfig[_0x2f6197(0x3ee)],'fill':_0x3e9331[_0x2f6197(0x667)],'stroke':_0x3e9331['stroke'],'strokeWidth':_0x3e9331['strokeWidth'],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends Disposable{constructor(_0x255c2e,_0x370f6f,_0x961838,_0x5e0f51){const _0xe0dfe2=_0x35ea10;super(),this['_context']=_0x255c2e,this[_0xe0dfe2(0x481)]=_0x370f6f,this[_0xe0dfe2(0x659)]=_0x961838,this[_0xe0dfe2(0x4f6)]=_0x5e0f51,_defineProperty(this,'_connectionSiteObjects',[]),_defineProperty(this,_0xe0dfe2(0x435),null),_defineProperty(this,'_highlightedSiteIndex',-0x1),_defineProperty(this,'_currentScene',null),_defineProperty(this,_0xe0dfe2(0x58d),''),_defineProperty(this,_0xe0dfe2(0x5a1),''),_defineProperty(this,'_draggingConnectorId',null);}[_0x35ea10(0x41d)](_0x17e643,_0x293af8,_0x5ddba5,_0x3dd429){const _0x160350=_0x35ea10;this[_0x160350(0x30c)]=_0x17e643,this[_0x160350(0x58d)]=_0x293af8,this[_0x160350(0x5a1)]=_0x5ddba5,this[_0x160350(0x502)]=_0x3dd429;}[_0x35ea10(0x247)](_0x27f7c6){const _0x52e814=_0x35ea10;if(!this[_0x52e814(0x30c)])return null;const _0x53a6f4=this[_0x52e814(0x61a)](_0x27f7c6);return _0x53a6f4?(this[_0x52e814(0x435)]!==_0x53a6f4[_0x52e814(0x54e)]&&(this[_0x52e814(0x2a4)](),this[_0x52e814(0x21a)](_0x53a6f4[_0x52e814(0x54e)],_0x53a6f4['shapeModel']),this[_0x52e814(0x435)]=_0x53a6f4[_0x52e814(0x54e)]),this[_0x52e814(0x2b0)](_0x27f7c6)):(this['_activeTargetShapeId']!==null&&(this[_0x52e814(0x2a4)](),this[_0x52e814(0x435)]=null),null);}[_0x35ea10(0x224)](){const _0x4a2425=_0x35ea10;this[_0x4a2425(0x2a4)](),this[_0x4a2425(0x30c)]=null,this[_0x4a2425(0x435)]=null,this[_0x4a2425(0x648)]=-0x1,this[_0x4a2425(0x502)]=null;}[_0x35ea10(0x279)](){const _0x40e7bf=_0x35ea10;if(this[_0x40e7bf(0x435)]===null||this[_0x40e7bf(0x648)]<0x0)return null;return{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x40e7bf(0x648)]};}['_findShapeAtPoint'](_0x5a0d6c){const _0x270833=_0x35ea10,_0x27e323=this[_0x270833(0x659)][_0x270833(0x635)](this[_0x270833(0x58d)],this[_0x270833(0x5a1)]);for(const _0x4f621b of Object['keys'](_0x27e323)){if(_0x4f621b===this[_0x270833(0x502)])continue;if(_0x27e323[_0x4f621b]['drawingType']!==DrawingTypeEnum['DRAWING_SHAPE'])continue;const _0x163064=this[_0x270833(0x4f6)][_0x270833(0x5fe)](this[_0x270833(0x58d)],this[_0x270833(0x5a1)],_0x4f621b);if(!_0x163064)continue;if(isConnectorShape(_0x163064['getShapeType']()))continue;if(_0x163064[_0x270833(0x683)]()[_0x270833(0x551)]===0x0)continue;if(!this[_0x270833(0x30c)])continue;const _0x434575=getDrawingShapeKeyByDrawingSearch({'unitId':this[_0x270833(0x58d)],'subUnitId':this[_0x270833(0x5a1)],'drawingId':_0x4f621b}),_0x2fc7b2=this[_0x270833(0x30c)][_0x270833(0x5fd)](_0x434575);if(!_0x2fc7b2)continue;const {left:_0x176485,top:_0x541959,width:_0x2655a1,height:_0x2d264e}=_0x2fc7b2[_0x270833(0x25b)](),_0x4a3fb9=_0x176485+_0x2655a1/0x2,_0x3216b0=_0x541959+_0x2d264e/0x2,_0x45ac34=_0x2fc7b2['transform'][_0x270833(0x570)](),_0x302380=new Transform([_0x45ac34[0x0],_0x45ac34[0x1],_0x45ac34[0x2],_0x45ac34[0x3],_0x4a3fb9,_0x3216b0]),_0x511913=_0x2fc7b2['getParent'](),_0x638a8=(_0x2fc7b2[_0x270833(0x34d)]&&(_0x511913===null||_0x511913===void 0x0?void 0x0:_0x511913['classType'])===RENDER_CLASS_TYPE[_0x270833(0x5df)]?_0x511913[_0x270833(0x3aa)][_0x270833(0x397)](_0x302380):_0x302380)['invert']()['applyPoint'](_0x5a0d6c),_0x13bafd=_0x2655a1/0x2,_0x3fd204=_0x2d264e/0x2,_0x5383af=SHAPE_BOUNDS_PADDING;if(_0x638a8['x']>=-_0x13bafd-_0x5383af&&_0x638a8['x']<=_0x13bafd+_0x5383af&&_0x638a8['y']>=-_0x3fd204-_0x5383af&&_0x638a8['y']<=_0x3fd204+_0x5383af)return{'shapeId':_0x4f621b,'shapeModel':_0x163064};}return null;}[_0x35ea10(0x21a)](_0x3035c2,_0x44c3e5){const _0x3aaf60=_0x35ea10;if(!this[_0x3aaf60(0x30c)])return;const _0x9e391f=getDrawingShapeKeyByDrawingSearch({'unitId':this[_0x3aaf60(0x58d)],'subUnitId':this[_0x3aaf60(0x5a1)],'drawingId':_0x3035c2}),_0x3a1e5f=this[_0x3aaf60(0x30c)][_0x3aaf60(0x5fd)](_0x9e391f);if(!_0x3a1e5f)return;const {left:_0x4f5d57,top:_0x432e53,width:_0x459ff3,height:_0x222f18}=_0x3a1e5f[_0x3aaf60(0x25b)](),_0x5a7ec1=_0x4f5d57+_0x459ff3/0x2,_0x26d774=_0x432e53+_0x222f18/0x2,_0x48e0ec=_0x3a1e5f[_0x3aaf60(0x27b)][_0x3aaf60(0x570)](),_0xb3edf7=new Transform([_0x48e0ec[0x0],_0x48e0ec[0x1],_0x48e0ec[0x2],_0x48e0ec[0x3],_0x5a7ec1,_0x26d774]),_0x2a8d36=_0x3a1e5f[_0x3aaf60(0x338)](),_0x2dd023=_0x3a1e5f[_0x3aaf60(0x34d)]&&(_0x2a8d36===null||_0x2a8d36===void 0x0?void 0x0:_0x2a8d36[_0x3aaf60(0x2a0)])===RENDER_CLASS_TYPE['GROUP']?_0x2a8d36[_0x3aaf60(0x3aa)][_0x3aaf60(0x397)](_0xb3edf7):_0xb3edf7;_0x44c3e5[_0x3aaf60(0x522)]({'width':_0x459ff3,'height':_0x222f18});const _0x4ba315=_0x44c3e5['getConnectionSiteList']();for(const _0x76f58e of _0x4ba315){const _0x1ba10b=_0x76f58e['x']-_0x459ff3/0x2,_0x52b067=_0x76f58e['y']-_0x222f18/0x2,_0x59f23b=_0x2dd023['applyPoint']({'x':_0x1ba10b,'y':_0x52b067}),_0x4a6cae=_0x59f23b['x'],_0x12aded=_0x59f23b['y'],_0x3414d2=new SheetBasicShapeConnectionSiteObject(_0x3aaf60(0x5fa)+_0x3035c2+'-'+_0x76f58e[_0x3aaf60(0x5a2)],{'left':_0x4a6cae-ShapeDefaultConfig[_0x3aaf60(0x3ee)],'top':_0x12aded-ShapeDefaultConfig[_0x3aaf60(0x3ee)],'targetShapeId':_0x3035c2,'cxnIndex':_0x76f58e['index'],'unitId':this['_unitId'],'subUnitId':this[_0x3aaf60(0x5a1)],'width':ShapeDefaultConfig['cxnPointRadius']*0x2,'height':ShapeDefaultConfig[_0x3aaf60(0x3ee)]*0x2,'zIndex':DRAWING_OBJECT_LAYER_INDEX+0x2,'evented':![]});this[_0x3aaf60(0x210)][_0x3aaf60(0x5f8)](_0x3414d2),this[_0x3aaf60(0x30c)][_0x3aaf60(0x425)](_0x3414d2,DRAWING_OBJECT_LAYER_INDEX+0x2);}}[_0x35ea10(0x2b0)](_0x1d6fe4){const _0xbc897=_0x35ea10;let _0x39d8bc=null,_0x428565=Infinity,_0x2009b0=null;for(const _0x130625 of this[_0xbc897(0x210)]){const _0x10ad88=_0x130625[_0xbc897(0x378)]+ShapeDefaultConfig[_0xbc897(0x3ee)],_0x8046a6=_0x130625[_0xbc897(0x537)]+ShapeDefaultConfig[_0xbc897(0x3ee)],_0x38712b=_0x1d6fe4['x']-_0x10ad88,_0x544a2d=_0x1d6fe4['y']-_0x8046a6,_0x73c897=Math['sqrt'](_0x38712b*_0x38712b+_0x544a2d*_0x544a2d);_0x73c897<_0x428565&&(_0x428565=_0x73c897,_0x39d8bc=_0x130625,_0x2009b0={'x':_0x10ad88,'y':_0x8046a6});}const _0x3cf754=_0x428565<=CONNECTION_SITE_HIT_RADIUS&&_0x39d8bc?_0x39d8bc['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x3cf754!==this[_0xbc897(0x648)]){for(const _0x3de5e5 of this[_0xbc897(0x210)]){const _0x553c16=_0x3de5e5['getConnectionInfo']();_0x3de5e5['setHighlighted'](_0x553c16[_0xbc897(0x299)]===_0x3cf754);}this['_highlightedSiteIndex']=_0x3cf754;}if(_0x428565<=CONNECTION_SITE_HIT_RADIUS&&_0x39d8bc&&_0x2009b0){const _0x1ce2c1=_0x39d8bc['getConnectionInfo'](),_0x5e1698=this['_getConnectionSiteAngle'](_0x1ce2c1['shapeId'],_0x1ce2c1['cxnIndex']);return{'shapeId':_0x1ce2c1[_0xbc897(0x54e)],'cxnIndex':_0x1ce2c1['cxnIndex'],'unitId':_0x1ce2c1['unitId'],'subUnitId':_0x1ce2c1[_0xbc897(0x529)],'worldPoint':_0x2009b0,'angle':_0x5e1698};}return null;}['_getConnectionSiteAngle'](_0x207610,_0x469a7f){const _0x1d2d1e=_0x35ea10,_0x3d016c=this[_0x1d2d1e(0x4f6)][_0x1d2d1e(0x5fe)](this[_0x1d2d1e(0x58d)],this[_0x1d2d1e(0x5a1)],_0x207610);if(!_0x3d016c)return 0x0;const _0x2f2975=this[_0x1d2d1e(0x659)][_0x1d2d1e(0x2e3)]({'unitId':this[_0x1d2d1e(0x58d)],'subUnitId':this[_0x1d2d1e(0x5a1)],'drawingId':_0x207610});if(!(_0x2f2975===null||_0x2f2975===void 0x0?void 0x0:_0x2f2975[_0x1d2d1e(0x27b)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x2f2975['transform'];_0x3d016c['updateContext']({'width':width,'height':height});const _0x4d1851=_0x3d016c[_0x1d2d1e(0x683)]()[_0x1d2d1e(0x3b8)](_0x291f96=>_0x291f96[_0x1d2d1e(0x5a2)]===_0x469a7f);if(!_0x4d1851)return 0x0;let _0x4b59eb=_0x4d1851[_0x1d2d1e(0x3a9)]/0xea60;if(flipX)_0x4b59eb=0xb4-_0x4b59eb;if(flipY)_0x4b59eb=-_0x4b59eb;return _0x4b59eb=(_0x4b59eb%0x168+0x168)%0x168,_0x4b59eb;}[_0x35ea10(0x2a4)](){const _0x170b42=_0x35ea10;for(const _0x1feb55 of this[_0x170b42(0x210)])_0x1feb55[_0x170b42(0x23f)]();this[_0x170b42(0x210)]=[],this[_0x170b42(0x648)]=-0x1;}['dispose'](){const _0x5881c0=_0x35ea10;this[_0x5881c0(0x2a4)](),super[_0x5881c0(0x23f)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,Inject(IRenderManagerService)),__decorateParam(0x2,Inject(IDrawingManagerService)),__decorateParam(0x3,Inject(SheetsShapeService))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends Disposable{constructor(_0x117f05,_0x1dfd38,_0x1c777d,_0x36bf85,_0x342b8b){const _0x1c1381=_0x35ea10;super(),this['_sheetSkeletonService']=_0x117f05,this[_0x1c1381(0x266)]=_0x1dfd38,this[_0x1c1381(0x5ba)]=_0x1c777d,this[_0x1c1381(0x288)]=_0x36bf85,this[_0x1c1381(0x258)]=_0x342b8b,_defineProperty(this,'_copyInfo',void 0x0),this[_0x1c1381(0x31b)](),this[_0x1c1381(0x3e0)]();}get[_0x35ea10(0x57b)](){const _0x23669b=_0x35ea10;return this['_sheetDrawingService'][_0x23669b(0x208)]();}['_registerGroupFeaturePasteHook'](){const _0x471527=_0x35ea10;this[_0x471527(0x258)]['registerFeaturePasteHook'](({fromUnitId:_0x52dcad,fromSubUnitId:_0x40b942,toUnitId:_0x3df7bf,toSubUnitId:_0x524a46,idMap:_0x406ed1})=>{const _0x2abf9d=_0x471527,_0x81d917=[],_0x5247aa=[];for(const [_0xfc728b,_0x1777d8]of _0x406ed1[_0x2abf9d(0x4f2)]()){const _0x3c9b0d=this[_0x2abf9d(0x288)][_0x2abf9d(0x5fe)](_0x52dcad,_0x40b942,_0xfc728b);if(!_0x3c9b0d)continue;const _0xd378ce=_0x3c9b0d[_0x2abf9d(0x3ab)](),_0x42ff4b=JSON['parse'](JSON[_0x2abf9d(0x50a)](_0x3c9b0d['getShapeData']()));if(_0x42ff4b[_0x2abf9d(0x576)]){var _0x9a554d,_0x31e2d9;const _0x5470af=(_0x9a554d=_0x42ff4b[_0x2abf9d(0x576)][_0x2abf9d(0x644)])===null||_0x9a554d===void 0x0?void 0x0:_0x9a554d[_0x2abf9d(0x54e)],_0xc9600b=(_0x31e2d9=_0x42ff4b[_0x2abf9d(0x576)]['to'])===null||_0x31e2d9===void 0x0?void 0x0:_0x31e2d9['shapeId'],_0x4d7e0b=_0x5470af?_0x406ed1[_0x2abf9d(0x31f)](_0x5470af):!![],_0x32e736=_0xc9600b?_0x406ed1[_0x2abf9d(0x31f)](_0xc9600b):!![];if(_0x4d7e0b&&_0x5470af&&_0x42ff4b[_0x2abf9d(0x576)][_0x2abf9d(0x644)])_0x42ff4b['relation']['from']={..._0x42ff4b[_0x2abf9d(0x576)][_0x2abf9d(0x644)],'shapeId':_0x406ed1['get'](_0x5470af)};else _0x42ff4b[_0x2abf9d(0x576)][_0x2abf9d(0x644)]=void 0x0;if(_0x32e736&&_0xc9600b&&_0x42ff4b[_0x2abf9d(0x576)]['to'])_0x42ff4b[_0x2abf9d(0x576)]['to']={..._0x42ff4b[_0x2abf9d(0x576)]['to'],'shapeId':_0x406ed1[_0x2abf9d(0x653)](_0xc9600b)};else _0x42ff4b['relation']['to']=void 0x0;}_0x81d917[_0x2abf9d(0x5f8)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x3df7bf,'subUnitId':_0x524a46,'shapeId':_0x1777d8,'shapeType':_0xd378ce,'shapeData':_0x42ff4b}}),_0x5247aa[_0x2abf9d(0x5f8)]({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x3df7bf,'subUnitId':_0x524a46,'shapeId':_0x1777d8}});}return{'redos':_0x81d917,'undos':_0x5247aa};});}['_initCopyPaste'](){const _0x43075=_0x35ea10;this['disposeWithMe'](this[_0x43075(0x266)][_0x43075(0x401)]({'id':_0x43075(0x44c),'onBeforeCopy':(_0x5a2d04,_0x51eb9e,_0x34bcc1,_0x44a816)=>{const _0x34ffce=_0x43075;this['_copyInfo']=null;const _0x19d731=this[_0x34ffce(0x57b)];if(_0x19d731[_0x34ffce(0x551)]){const _0x14d766=_0x19d731['filter'](_0x497ee3=>_0x497ee3['drawingType']===DrawingTypeEnum[_0x34ffce(0x29f)]);if(_0x14d766[_0x34ffce(0x551)]===0x0)return;this[_0x34ffce(0x315)]={'unitId':_0x5a2d04,'subUnitId':_0x51eb9e,'copyType':_0x44a816,'drawings':_0x14d766};}else this[_0x34ffce(0x2d1)](_0x5a2d04,_0x51eb9e,_0x34bcc1,_0x44a816);},'onPasteCells':(_0x286ee1,_0x4b7499,_0x44c7d3,_0xa4daee)=>{const _0x19118e=_0x43075;if(!this['_copyInfo'])return{'redos':[],'undos':[]};const {pasteType:_0x32d2be}=_0xa4daee;if(_0x32d2be!==PREDEFINED_HOOK_NAME[_0x19118e(0x66b)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x4b7499,this[_0x19118e(0x315)][_0x19118e(0x303)]===COPY_TYPE[_0x19118e(0x550)]);},'onPasteUnrecognized':_0x46c23b=>{const _0x312c81=_0x43075;if(!this[_0x312c81(0x315)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x46c23b,this['_copyInfo'][_0x312c81(0x303)]===COPY_TYPE[_0x312c81(0x550)]);}}));}[_0x35ea10(0x2d1)](_0x5f37b4,_0x29bed0,_0xcff508,_0x4ae173){const _0x59ba7f=_0x35ea10,_0x16fb22=this[_0x59ba7f(0x50d)]['getSkeleton'](_0x5f37b4,_0x29bed0);if(!_0x16fb22)return;const _0x585434=attachRangeWithCoord(_0x16fb22,_0xcff508);if(!_0x585434)return;const {startX:_0x1fb6bb,endX:_0x1b1d44,startY:_0x3e58e6,endY:_0x5982e7}=_0x585434,_0x598627=this[_0x59ba7f(0x5ba)][_0x59ba7f(0x635)](_0x5f37b4,_0x29bed0),_0x4f3be3=this[_0x59ba7f(0x57b)]['slice']();for(const [_0x544453,_0x4f50f3]of Object[_0x59ba7f(0x4f2)](_0x598627)){if(_0x4f50f3[_0x59ba7f(0x645)]!==DrawingTypeEnum[_0x59ba7f(0x29f)])continue;const {transform:_0x34a762}=_0x4f50f3;if(!_0x34a762)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x34a762;if(_0x1fb6bb<=left&&_0x1b1d44>=left+width&&_0x3e58e6<=top&&_0x5982e7>=top+height)_0x4f3be3['push'](_0x4f50f3);}if(_0x4f3be3[_0x59ba7f(0x551)]>0x0)this[_0x59ba7f(0x315)]={'unitId':_0x5f37b4,'subUnitId':_0x29bed0,'copyType':_0x4ae173,'copyRange':_0xcff508,'drawings':_0x4f3be3};}[_0x35ea10(0x2bc)](_0x4e2be3,_0x41079f){const _0x222dd4=_0x35ea10,{unitId:_0x3430f3,subUnitId:_0x27b880,range:_0x48d4d7}=_0x4e2be3,_0x3c1dcd=this[_0x222dd4(0x50d)]['getSkeleton'](_0x3430f3,_0x27b880);if(!_0x3c1dcd)return{'redos':[],'undos':[]};const _0x31ec6c=discreteRangeToRange(_0x48d4d7),{unitId:_0x497740,subUnitId:_0x901394,copyRange:_0x376181,drawings:_0x2b5bfa}=this[_0x222dd4(0x315)],_0xbc1d8a=this[_0x222dd4(0x50d)][_0x222dd4(0x39f)](_0x497740,_0x901394);if(!_0xbc1d8a)return{'redos':[],'undos':[]};let _0xb44b82;if(!_0x376181){let _0x4f2155=Infinity,_0x1da4b6=Infinity;for(const _0x9fcffb of _0x2b5bfa){var _0x45ac02;const {left:left=0x0,top:top=0x0}=(_0x45ac02=_0x9fcffb[_0x222dd4(0x27b)])!==null&&_0x45ac02!==void 0x0?_0x45ac02:{};if(left<_0x4f2155)_0x4f2155=left;if(top<_0x1da4b6)_0x1da4b6=top;}if(_0x4f2155!==Infinity&&_0x1da4b6!==Infinity)_0xb44b82={'left':_0x4f2155,'top':_0x1da4b6};}const _0x587615=new Map();if(!_0x41079f){for(const _0x361c56 of _0x2b5bfa)_0x587615[_0x222dd4(0x505)](_0x361c56[_0x222dd4(0x2ef)],generateRandomId());}const _0xe8be13=[],_0x5d4095=[];for(const _0x2b0768 of _0x2b5bfa){const {drawingId:_0x234b62,transform:_0x1ec4a9,sheetTransform:_0x264ef1}=_0x2b0768;if(!_0x1ec4a9||!_0x264ef1)continue;const _0x3ef7ed=this[_0x222dd4(0x233)]({'transform':_0x1ec4a9,'sheetTransform':_0x264ef1},{'skeleton':_0xbc1d8a,'range':_0x376181},{'skeleton':_0x3c1dcd,'range':_0x31ec6c},_0xb44b82);if(_0x41079f){const {redos:_0x3d0438,undos:_0x41ec58}=this['_generateCutPasteMutations']({'fromUnitId':_0x497740,'fromSubUnitId':_0x901394,'toUnitId':_0x3430f3,'toSubUnitId':_0x27b880,'drawing':_0x2b0768,'newTransforms':_0x3ef7ed});_0xe8be13[_0x222dd4(0x5f8)](..._0x3d0438),_0x5d4095[_0x222dd4(0x5f8)](..._0x41ec58);continue;}const {redos:_0x5a14b5,undos:_0x62d7f1}=this[_0x222dd4(0x398)]({'toUnitId':_0x3430f3,'toSubUnitId':_0x27b880,'drawing':_0x2b0768,'newTransforms':_0x3ef7ed,'newDrawingId':_0x587615['get'](_0x234b62),'idMap':_0x587615});_0xe8be13[_0x222dd4(0x5f8)](..._0x5a14b5),_0x5d4095[_0x222dd4(0x5f8)](..._0x62d7f1);}return{'redos':_0xe8be13,'undos':_0x5d4095};}[_0x35ea10(0x419)](_0x25a5f3){const _0x2e5ba7=_0x35ea10,{fromUnitId:_0x34a564,fromSubUnitId:_0x40eb70,toUnitId:_0x130aa1,toSubUnitId:_0x21e567,drawing:_0x794bad,newTransforms:_0x58c11e}=_0x25a5f3,_0x3675b3={..._0x794bad,'unitId':_0x130aa1,'subUnitId':_0x21e567,'transform':_0x58c11e['transform'],'sheetTransform':_0x58c11e[_0x2e5ba7(0x1f7)]};if(_0x130aa1===_0x34a564&&_0x21e567===_0x40eb70){const {redo:_0x21c1cb,undo:_0x154c3c,objects:_0x30173f}=this[_0x2e5ba7(0x5ba)][_0x2e5ba7(0x484)]([_0x3675b3]);return{'redos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x130aa1,'subUnitId':_0x21e567,'type':DrawingApplyType['UPDATE'],'op':_0x21c1cb,'objects':_0x30173f}}],'undos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x130aa1,'subUnitId':_0x21e567,'type':DrawingApplyType['UPDATE'],'op':_0x154c3c,'objects':_0x30173f}}]};}else{const _0x4dfb24=this[_0x2e5ba7(0x5ba)]['getBatchRemoveOp']([_0x794bad]),_0x212080=this[_0x2e5ba7(0x5ba)][_0x2e5ba7(0x61f)]([_0x3675b3]),_0x26e3c7=this[_0x2e5ba7(0x288)][_0x2e5ba7(0x5fe)](_0x794bad[_0x2e5ba7(0x20a)],_0x794bad[_0x2e5ba7(0x529)],_0x794bad['drawingId']);if(!_0x26e3c7)return{'redos':[],'undos':[]};const _0x517a3d=_0x26e3c7['getShapeType'](),_0x3c66e1=JSON[_0x2e5ba7(0x332)](JSON[_0x2e5ba7(0x50a)](_0x26e3c7[_0x2e5ba7(0x301)]()));return{'redos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x34a564,'subUnitId':_0x40eb70,'type':DrawingApplyType[_0x2e5ba7(0x53b)],'op':_0x4dfb24[_0x2e5ba7(0x597)],'objects':_0x4dfb24[_0x2e5ba7(0x477)]}},{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x34a564,'subUnitId':_0x40eb70,'shapeId':_0x794bad[_0x2e5ba7(0x2ef)]}},{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x130aa1,'subUnitId':_0x21e567,'type':DrawingApplyType[_0x2e5ba7(0x412)],'op':_0x212080[_0x2e5ba7(0x597)],'objects':_0x212080[_0x2e5ba7(0x477)]}},{'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x130aa1,'subUnitId':_0x21e567,'shapeId':_0x794bad[_0x2e5ba7(0x2ef)],'shapeType':_0x517a3d,'shapeData':_0x3c66e1}}],'undos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x34a564,'subUnitId':_0x40eb70,'type':DrawingApplyType[_0x2e5ba7(0x412)],'op':_0x4dfb24[_0x2e5ba7(0x604)],'objects':_0x4dfb24[_0x2e5ba7(0x477)]}},{'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x34a564,'subUnitId':_0x40eb70,'shapeId':_0x794bad['drawingId'],'shapeType':_0x517a3d,'shapeData':_0x3c66e1}},{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x130aa1,'subUnitId':_0x21e567,'type':DrawingApplyType[_0x2e5ba7(0x53b)],'op':_0x212080[_0x2e5ba7(0x604)],'objects':_0x212080[_0x2e5ba7(0x477)]}},{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x130aa1,'subUnitId':_0x21e567,'shapeId':_0x794bad[_0x2e5ba7(0x2ef)]}}]};}}[_0x35ea10(0x398)](_0x1ec78e){const _0x27fc04=_0x35ea10,{toUnitId:_0x4e557c,toSubUnitId:_0x3f0b1e,drawing:_0x173576,newTransforms:_0x247cd1,newDrawingId:_0x1bdbd1,idMap:_0x10f569}=_0x1ec78e,_0x282e3c={..._0x173576,'unitId':_0x4e557c,'subUnitId':_0x3f0b1e,'drawingId':_0x1bdbd1,'transform':_0x247cd1[_0x27fc04(0x27b)],'sheetTransform':_0x247cd1[_0x27fc04(0x1f7)]},{redo:_0x5527c4,undo:_0x41047c,objects:_0x30b987}=this[_0x27fc04(0x5ba)][_0x27fc04(0x61f)]([_0x282e3c]),_0x557602=this[_0x27fc04(0x288)][_0x27fc04(0x5fe)](_0x173576['unitId'],_0x173576[_0x27fc04(0x529)],_0x173576[_0x27fc04(0x2ef)]);if(!_0x557602)return{'redos':[],'undos':[]};const _0x5c1cc2=_0x557602[_0x27fc04(0x3ab)](),_0x1bd946=JSON[_0x27fc04(0x332)](JSON[_0x27fc04(0x50a)](_0x557602[_0x27fc04(0x301)]()));if(_0x1bd946['relation']){var _0x3dc52d,_0x56d7ef;const _0x483a1c=(_0x3dc52d=_0x1bd946[_0x27fc04(0x576)][_0x27fc04(0x644)])===null||_0x3dc52d===void 0x0?void 0x0:_0x3dc52d[_0x27fc04(0x54e)],_0x5d308b=(_0x56d7ef=_0x1bd946['relation']['to'])===null||_0x56d7ef===void 0x0?void 0x0:_0x56d7ef['shapeId'],_0xdb030f=_0x483a1c?_0x10f569[_0x27fc04(0x31f)](_0x483a1c):!![],_0x3dacc3=_0x5d308b?_0x10f569['has'](_0x5d308b):!![];if(_0xdb030f&&_0x483a1c&&_0x1bd946[_0x27fc04(0x576)][_0x27fc04(0x644)])_0x1bd946[_0x27fc04(0x576)][_0x27fc04(0x644)]={..._0x1bd946[_0x27fc04(0x576)]['from'],'shapeId':_0x10f569['get'](_0x483a1c)};else _0x1bd946[_0x27fc04(0x576)]['from']=void 0x0;if(_0x3dacc3&&_0x5d308b&&_0x1bd946['relation']['to'])_0x1bd946['relation']['to']={..._0x1bd946[_0x27fc04(0x576)]['to'],'shapeId':_0x10f569['get'](_0x5d308b)};else _0x1bd946[_0x27fc04(0x576)]['to']=void 0x0;}return{'redos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x4e557c,'subUnitId':_0x3f0b1e,'type':DrawingApplyType[_0x27fc04(0x412)],'op':_0x5527c4,'objects':_0x30b987}},{'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x4e557c,'subUnitId':_0x3f0b1e,'shapeId':_0x1bdbd1,'shapeType':_0x5c1cc2,'shapeData':_0x1bd946}}],'undos':[{'id':SetDrawingApplyMutation['id'],'params':{'unitId':_0x4e557c,'subUnitId':_0x3f0b1e,'type':DrawingApplyType[_0x27fc04(0x53b)],'op':_0x41047c,'objects':_0x30b987}},{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x4e557c,'subUnitId':_0x3f0b1e,'shapeId':_0x1bdbd1}}]};}[_0x35ea10(0x233)](_0x270bd9,_0x5bad9b,_0xb6505b,_0x58db60){const _0x17bc48=_0x35ea10;var _0x373c86;const {range:_0x4e79bf,skeleton:_0x2259b9}=_0x5bad9b,{range:_0x1b3c24,skeleton:_0x1f062a}=_0xb6505b,{transform:_0x5ae1d9,sheetTransform:_0x12d432}=_0x270bd9,_0x5a1e91={..._0x5ae1d9};if(_0x4e79bf){const _0x257fda=attachRangeWithCoord(_0x2259b9,_0x4e79bf),_0x53711c=attachRangeWithCoord(_0x1f062a,_0x1b3c24);if(_0x257fda&&_0x53711c){var _0x8b7744,_0x215fbe;const _0x3d0465=_0x53711c[_0x17bc48(0x5c4)]-_0x257fda['startX'],_0x42e437=_0x53711c[_0x17bc48(0x59f)]-_0x257fda['startY'];_0x5a1e91[_0x17bc48(0x378)]=((_0x8b7744=_0x5a1e91[_0x17bc48(0x378)])!==null&&_0x8b7744!==void 0x0?_0x8b7744:0x0)+_0x3d0465,_0x5a1e91['top']=((_0x215fbe=_0x5a1e91[_0x17bc48(0x537)])!==null&&_0x215fbe!==void 0x0?_0x215fbe:0x0)+_0x42e437;}}else{const _0x48389b=attachRangeWithCoord(_0x1f062a,_0x1b3c24);if(_0x58db60&&_0x48389b){var _0x22fe66,_0x5156f4;const _0x2cf891=((_0x22fe66=_0x5a1e91[_0x17bc48(0x378)])!==null&&_0x22fe66!==void 0x0?_0x22fe66:0x0)-_0x58db60[_0x17bc48(0x378)],_0x4ee91d=((_0x5156f4=_0x5a1e91[_0x17bc48(0x537)])!==null&&_0x5156f4!==void 0x0?_0x5156f4:0x0)-_0x58db60[_0x17bc48(0x537)];_0x5a1e91[_0x17bc48(0x378)]=_0x48389b[_0x17bc48(0x5c4)]+_0x2cf891,_0x5a1e91[_0x17bc48(0x537)]=_0x48389b[_0x17bc48(0x59f)]+_0x4ee91d;}else _0x5a1e91['left']=_0x48389b===null||_0x48389b===void 0x0?void 0x0:_0x48389b[_0x17bc48(0x5c4)],_0x5a1e91[_0x17bc48(0x537)]=_0x48389b===null||_0x48389b===void 0x0?void 0x0:_0x48389b[_0x17bc48(0x59f)];}return{'transform':_0x5a1e91,'sheetTransform':(_0x373c86=transformToDrawingPosition(_0x5a1e91,_0x1f062a))!==null&&_0x373c86!==void 0x0?_0x373c86:_0x12d432};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,Inject(SheetSkeletonService)),__decorateParam(0x1,Inject(ISheetClipboardService)),__decorateParam(0x2,Inject(ISheetDrawingService)),__decorateParam(0x3,Inject(SheetsShapeService)),__decorateParam(0x4,Inject(SheetsDrawingGroupCopyPasteController))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends Shape{constructor(_0xf8f5c5,_0x502ff9){const _0x1f20d8=_0x35ea10;super(_0xf8f5c5,_0x502ff9),_defineProperty(this,_0x1f20d8(0x212),null),_defineProperty(this,_0x1f20d8(0x43d),null),_defineProperty(this,_0x1f20d8(0x58d),null),_defineProperty(this,_0x1f20d8(0x5a1),null),_defineProperty(this,_0x1f20d8(0x403),![]);if(_0x502ff9)this[_0x1f20d8(0x3b4)](_0x502ff9);}['getDrawingSearch'](){const _0x5c0347=_0x35ea10;return{'unitId':this['_unitId'],'subUnitId':this[_0x5c0347(0x5a1)],'drawingId':this[_0x5c0347(0x212)]};}['setShapeProps'](_0x2a23be){const _0x5a13bc=_0x35ea10;if(typeof _0x2a23be[_0x5a13bc(0x54e)]!=='undefined')this[_0x5a13bc(0x212)]=_0x2a23be[_0x5a13bc(0x54e)];if(typeof _0x2a23be['unitId']!=='undefined')this[_0x5a13bc(0x58d)]=_0x2a23be[_0x5a13bc(0x20a)];if(typeof _0x2a23be['subUnitId']!==_0x5a13bc(0x457))this[_0x5a13bc(0x5a1)]=_0x2a23be['subUnitId'];if(typeof _0x2a23be[_0x5a13bc(0x25e)]!==_0x5a13bc(0x457))this['_isStartConnectorPoint']=_0x2a23be['isStartConnectorPoint'];this['transformByState']({'width':_0x2a23be[_0x5a13bc(0x246)],'height':_0x2a23be[_0x5a13bc(0x372)]});}[_0x35ea10(0x331)](_0x3210cf){const _0x1be102=_0x35ea10;Circle[_0x1be102(0x568)](_0x3210cf,{'radius':ShapeDefaultConfig[_0x1be102(0x3ee)],'fill':ShapeDefaultConfig[_0x1be102(0x22a)],'stroke':ShapeDefaultConfig[_0x1be102(0x404)],'strokeWidth':ShapeDefaultConfig[_0x1be102(0x687)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends Disposable{constructor(_0xfbd5cf,_0x37c562,_0x2aa5b7,_0x5e26fb,_0x292309,_0x53d2d1,_0x546249,_0xb606f6){const _0xb51323=_0x35ea10;super(),this[_0xb51323(0x2cf)]=_0xfbd5cf,this['_commandService']=_0x37c562,this[_0xb51323(0x481)]=_0x2aa5b7,this[_0xb51323(0x659)]=_0x5e26fb,this['_univerInstanceService']=_0x292309,this[_0xb51323(0x4f6)]=_0x53d2d1,this[_0xb51323(0x262)]=_0x546249,this['_sheetBasicShapeConnectionPointController']=_0xb606f6,_defineProperty(this,_0xb51323(0x364),void 0x0),_defineProperty(this,_0xb51323(0x58d),void 0x0),_defineProperty(this,_0xb51323(0x5a1),void 0x0),_defineProperty(this,'_connectorObjects',[]),_defineProperty(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,_0xb51323(0x3c3),void 0x0),_defineProperty(this,'_isConnecting',![]),_defineProperty(this,_0xb51323(0x342),![]),_defineProperty(this,_0xb51323(0x256),![]),_defineProperty(this,_0xb51323(0x584),void 0x0),_defineProperty(this,_0xb51323(0x36b),void 0x0),_defineProperty(this,_0xb51323(0x594),null),this[_0xb51323(0x21f)]();}[_0x35ea10(0x21f)](){const _0x25f0b9=_0x35ea10;this[_0x25f0b9(0x67c)](),this[_0x25f0b9(0x3cd)]();}['_getDrawingRect'](){const _0x38416a=_0x35ea10;if(!this[_0x38416a(0x58d)]||!this['_subUnitId']||!this[_0x38416a(0x364)])return;const _0x28c1a5={'unitId':this[_0x38416a(0x58d)],'subUnitId':this[_0x38416a(0x5a1)],'drawingId':this[_0x38416a(0x364)]},{transform:_0x17f6ec}=this[_0x38416a(0x659)]['getDrawingByParam'](_0x28c1a5);if(!_0x17f6ec)return;return{'left':_0x17f6ec[_0x38416a(0x378)]||0x0,'top':_0x17f6ec[_0x38416a(0x537)]||0x0,'width':_0x17f6ec[_0x38416a(0x246)]||0x0,'height':_0x17f6ec[_0x38416a(0x372)]||0x0,'flipX':_0x17f6ec[_0x38416a(0x53a)]||![],'flipY':_0x17f6ec['flipY']||![],'angle':_0x17f6ec[_0x38416a(0x3bd)]};}[_0x35ea10(0x375)](){const _0x5e1ad6=_0x35ea10;if(this[_0x5e1ad6(0x58d)]===void 0x0||this[_0x5e1ad6(0x5a1)]===void 0x0||this[_0x5e1ad6(0x364)]===void 0x0)return;const _0x54739a=this[_0x5e1ad6(0x481)][_0x5e1ad6(0x43a)](this['_unitId']);if(!_0x54739a)return;if(!_0x54739a[_0x5e1ad6(0x565)](SheetSkeletonManagerService)['getCurrentSkeleton']())return;const {scene:_0x4af428}=_0x54739a,_0x44c11c=this[_0x5e1ad6(0x427)]();if(!_0x44c11c)return;const _0x573776=this['_sheetsShapeService']['getShapeModel'](this[_0x5e1ad6(0x58d)],this[_0x5e1ad6(0x5a1)],this[_0x5e1ad6(0x364)]);if(!_0x573776)return;if(!isConnectorShape(_0x573776[_0x5e1ad6(0x3ab)]()))return;const _0x3815b2=_0x573776[_0x5e1ad6(0x52a)]();if(_0x3815b2[_0x5e1ad6(0x551)]<0x2)return;const _0xd74a00=new ConnectorCoordinateTransform(_0x44c11c),_0x58c8bd=_0x3815b2[0x0],_0x192a30=_0x3815b2[_0x3815b2[_0x5e1ad6(0x551)]-0x1],_0x3dfe7f=_0xd74a00[_0x5e1ad6(0x5c3)](_0x58c8bd),_0x5ad5c8=_0xd74a00['localToWorld'](_0x192a30);this[_0x5e1ad6(0x4da)](_0x4af428,{..._0x3dfe7f},!![]),this['_addShapeConnectorHandlerObject'](_0x4af428,{..._0x5ad5c8},![]);}['_addShapeConnectorHandlerObject'](_0x1efab2,_0x362d51,_0x50a32e){const _0xb50bbe=_0x35ea10;if(this[_0xb50bbe(0x364)]===void 0x0||this[_0xb50bbe(0x58d)]===void 0x0||this[_0xb50bbe(0x5a1)]===void 0x0)return;const _0x27ba2e=_0xb50bbe(0x3a1)+this[_0xb50bbe(0x58d)]+'-'+this[_0xb50bbe(0x5a1)]+'-'+this['_activeShapeId']+'-'+(_0x50a32e?_0xb50bbe(0x4f5):_0xb50bbe(0x2fd)),_0x373879=_0x1efab2[_0xb50bbe(0x5fd)](_0x27ba2e);if(_0x373879){_0x373879[_0xb50bbe(0x5fc)]({'left':_0x362d51['x']-ShapeDefaultConfig[_0xb50bbe(0x3ee)],'top':_0x362d51['y']-ShapeDefaultConfig['cxnPointRadius']});return;}const _0x1aec00=new SheetShapeConnectorHandlerObject(_0x27ba2e,{'left':_0x362d51['x']-ShapeDefaultConfig[_0xb50bbe(0x3ee)],'top':_0x362d51['y']-ShapeDefaultConfig['cxnPointRadius'],'shapeId':this['_activeShapeId'],'unitId':this[_0xb50bbe(0x58d)],'subUnitId':this[_0xb50bbe(0x5a1)],'isStartConnectorPoint':_0x50a32e,'width':ShapeDefaultConfig[_0xb50bbe(0x3ee)]*0x2,'height':ShapeDefaultConfig[_0xb50bbe(0x3ee)]*0x2,'zIndex':DRAWING_OBJECT_LAYER_INDEX+0x1,'evented':!![]});this[_0xb50bbe(0x264)][_0xb50bbe(0x5f8)](_0x1aec00),this[_0xb50bbe(0x585)](_0x1aec00,_0x1efab2,_0x50a32e),_0x1efab2[_0xb50bbe(0x425)](_0x1aec00,DRAWING_OBJECT_LAYER_INDEX+0x1);}[_0x35ea10(0x5b3)](_0x4b6494,_0x297e40){const _0x219a90=_0x35ea10;var _0x36f31d;const _0x313891={'x':0x0,'y':0x0};if(!_0x4b6494||!_0x297e40)return _0x313891;const _0x565eae=this['_renderManagerService'][_0x219a90(0x43a)](_0x4b6494);if(!_0x565eae)return _0x313891;if(!_0x565eae[_0x219a90(0x565)](SheetSkeletonManagerService)[_0x219a90(0x39f)](_0x297e40))return _0x313891;const _0x4540d1=_0x565eae[_0x219a90(0x565)](SheetScrollManagerService),_0x1c2555=_0x4540d1===null||_0x4540d1===void 0x0?void 0x0:_0x4540d1[_0x219a90(0x56d)]();if(!_0x1c2555)return _0x313891;const _0x442a6d=(_0x36f31d=this[_0x219a90(0x4c0)][_0x219a90(0x28f)](_0x4b6494))===null||_0x36f31d===void 0x0?void 0x0:_0x36f31d[_0x219a90(0x578)](_0x297e40);if(!_0x442a6d)return _0x313891;const _0x265859=getViewportByCell(_0x1c2555[_0x219a90(0x421)],_0x1c2555['sheetViewStartColumn'],_0x565eae[_0x219a90(0x552)],_0x442a6d);if(!_0x265859)return _0x313891;return{'x':_0x265859[_0x219a90(0x539)],'y':_0x265859[_0x219a90(0x292)]};}[_0x35ea10(0x66a)](_0x3971a9,_0x463187){const _0x58c389=_0x35ea10;var _0x2addd8,_0x17325a;const _0x146f17=(_0x2addd8=this[_0x58c389(0x4c0)][_0x58c389(0x28f)](_0x3971a9))===null||_0x2addd8===void 0x0?void 0x0:_0x2addd8[_0x58c389(0x578)](_0x463187);return(_0x17325a=_0x146f17===null||_0x146f17===void 0x0?void 0x0:_0x146f17['getZoomRatio']())!==null&&_0x17325a!==void 0x0?_0x17325a:0x1;}[_0x35ea10(0x3fe)](_0x3e2a8d,_0x4131e7,_0x1bca8a,_0x23a281,_0x334d03){const _0x69115b=_0x35ea10;this[_0x69115b(0x584)][_0x69115b(0x360)](),this[_0x69115b(0x36b)][_0x69115b(0x360)](),this[_0x69115b(0x262)][_0x69115b(0x3e6)]();const _0x10e41d=this[_0x69115b(0x594)];this[_0x69115b(0x4e8)][_0x69115b(0x224)]();const _0x5937eb=this[_0x69115b(0x5b3)](this[_0x69115b(0x58d)],this['_subUnitId']),_0x4905de=this[_0x69115b(0x66a)](this[_0x69115b(0x58d)],this[_0x69115b(0x5a1)]),_0x2d280e={'x':_0x1bca8a[_0x69115b(0x278)]/_0x4905de+_0x5937eb['x'],'y':_0x1bca8a['offsetY']/_0x4905de+_0x5937eb['y']},_0x39b796=_0x10e41d?_0x10e41d['worldPoint']:_0x2d280e,_0x215fd8=_0x23a281?this[_0x69115b(0x3c3)][_0x69115b(0x5b1)]():this[_0x69115b(0x3c3)]['getStartConnectInfo'](),_0x4a9ba0=this[_0x69115b(0x3c3)]['getShapeType']();if(!_0x215fd8)this[_0x69115b(0x5bc)](_0x4131e7,_0x39b796,_0x23a281,_0x10e41d,_0x334d03,_0x4a9ba0);else this[_0x69115b(0x618)](_0x215fd8,_0x39b796,_0x23a281,_0x10e41d,_0x334d03);this[_0x69115b(0x55d)]=![],this['_hasReset']=![],this[_0x69115b(0x594)]=null,_0x3e2a8d[_0x69115b(0x4ee)]();}[_0x35ea10(0x5bc)](_0x5376f2,_0x20b5d5,_0x6fe4a7,_0x586ea0,_0x5c3db9,_0x141581){const _0x148ad0=_0x35ea10,_0x1a5264=_0x141581===ShapeTypeEnum[_0x148ad0(0x24e)]||_0x141581===ShapeTypeEnum[_0x148ad0(0x54f)],_0x2cd1c5=_0x6fe4a7?_0x20b5d5:_0x5376f2,_0x27a543=_0x6fe4a7?_0x5376f2:_0x20b5d5,_0x5c91c6=this[_0x148ad0(0x3c3)]['getConnectorLinePoints'](),_0x145cc2=isCurvedConnectorShape(this[_0x148ad0(0x3c3)][_0x148ad0(0x3ab)]()),_0x14d204=ConnectorCoordinateTransform['getBentTypeFromPoints'](_0x5c91c6,_0x145cc2),_0x4f01af=_0x1a5264?ConnectorCoordinateTransform[_0x148ad0(0x1fa)](_0x2cd1c5,_0x27a543):ConnectorCoordinateTransform[_0x148ad0(0x4e6)](_0x5376f2,_0x20b5d5,_0x6fe4a7,_0x14d204);if(_0x586ea0)this['_executeConnectionCommand'](_0x4f01af,_0x586ea0,_0x6fe4a7,_0x5c3db9);else this[_0x148ad0(0x5f4)](_0x4f01af,_0x5c3db9);}[_0x35ea10(0x618)](_0x376aca,_0x59eebf,_0x3c9d6f,_0x366e85,_0x28f92f){const _0x515d97=_0x35ea10,_0x921169=this[_0x515d97(0x3fb)](_0x376aca);if(!_0x921169)return;const _0x24d100=_0x366e85?_0x366e85[_0x515d97(0x3bd)]:this[_0x515d97(0x569)](_0x921169[_0x515d97(0x4bb)],_0x59eebf);let _0x48e23d;if(_0x366e85){const _0x1acbe8=this[_0x515d97(0x659)]['getDrawingByParam']({'unitId':_0x366e85[_0x515d97(0x20a)],'subUnitId':_0x366e85['subUnitId'],'drawingId':_0x366e85[_0x515d97(0x54e)]});if(_0x1acbe8===null||_0x1acbe8===void 0x0?void 0x0:_0x1acbe8['transform']){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x3ba2c6}=_0x1acbe8[_0x515d97(0x27b)];_0x48e23d=getBasicShapeRotateBound({'left':left,'top':top,'width':width,'height':height},_0x3ba2c6||0x0);}else _0x48e23d={'left':_0x59eebf['x'],'top':_0x59eebf['y'],'width':0x0,'height':0x0};}else _0x48e23d={'left':_0x59eebf['x'],'top':_0x59eebf['y'],'width':0x0,'height':0x0};const _0x24e715={'point':_0x59eebf,'angle':_0x24d100,'bounds':_0x48e23d},_0x289ab5=_0x3c9d6f?_0x24e715:_0x921169,_0x138d1a=_0x3c9d6f?_0x921169:_0x24e715,_0x4fbe4a=this[_0x515d97(0x3c3)]['getShapeType'](),_0x7e064e=routeConnectorLineShape(_0x289ab5,_0x138d1a,_0x4fbe4a);this['_activeShapeModel'][_0x515d97(0x60a)]();const _0x3981bd=computeConnectorRouteLayout(_0x7e064e,_0x4fbe4a);if(_0x366e85)this[_0x515d97(0x50f)](_0x3981bd,_0x366e85,_0x376aca,_0x3c9d6f,_0x28f92f);else this[_0x515d97(0x216)](_0x3981bd,_0x376aca,_0x3c9d6f,_0x28f92f);}['_executeConnectionCommand'](_0x22f5b6,_0x425eed,_0x12cf5e,_0x751edd){const _0x17f756=_0x35ea10,_0x2cfd90=this['_activeShapeModel'][_0x17f756(0x301)]()[_0x17f756(0x576)],_0x4fdf19={..._0x2cfd90},_0x46b6cc={'shapeId':_0x425eed['shapeId'],'cxnIndex':_0x425eed['cxnIndex']};if(_0x12cf5e)_0x4fdf19[_0x17f756(0x644)]=_0x46b6cc;else _0x4fdf19['to']=_0x46b6cc;const _0x7355c2=this[_0x17f756(0x3c3)][_0x17f756(0x3ab)](),_0x7b360a=computeConnectorRouteLayout(_0x22f5b6['worldPoints'],_0x7355c2),_0xe794ee={'unitId':this[_0x17f756(0x58d)],'subUnitId':this[_0x17f756(0x5a1)],'connectorShapeId':this[_0x17f756(0x364)],'width':_0x22f5b6[_0x17f756(0x4b2)][_0x17f756(0x246)],'height':_0x22f5b6[_0x17f756(0x4b2)][_0x17f756(0x372)],'left':_0x22f5b6[_0x17f756(0x4b2)][_0x17f756(0x378)],'top':_0x22f5b6[_0x17f756(0x4b2)]['top'],'flipX':_0x22f5b6[_0x17f756(0x4b2)]['flipX']||![],'flipY':_0x22f5b6['worldRect'][_0x17f756(0x4ba)]||![],'newAdjustValues':_0x7b360a[_0x17f756(0x698)],'oldAdjustValues':_0x751edd,'oldRelation':_0x2cfd90,'newRelation':_0x4fdf19,'newLineType':_0x7b360a[_0x17f756(0x430)],'oldLineType':_0x7355c2};this[_0x17f756(0x4d1)][_0x17f756(0x51d)](UpdateConnectorRelationCommand['id'],_0xe794ee);}[_0x35ea10(0x5f4)](_0x550e80,_0x5887e1){const _0x137506=_0x35ea10,_0x178355=this[_0x137506(0x3c3)][_0x137506(0x3ab)](),_0x267faa=computeConnectorRouteLayout(_0x550e80['worldPoints'],_0x178355),_0x11e49a={'unitId':this[_0x137506(0x58d)],'subUnitId':this[_0x137506(0x5a1)],'shapeId':this[_0x137506(0x364)],'width':_0x550e80['worldRect'][_0x137506(0x246)],'height':_0x550e80[_0x137506(0x4b2)]['height'],'left':_0x550e80[_0x137506(0x4b2)][_0x137506(0x378)],'top':_0x550e80[_0x137506(0x4b2)]['top'],'flipX':_0x550e80[_0x137506(0x4b2)][_0x137506(0x53a)]||![],'flipY':_0x550e80[_0x137506(0x4b2)][_0x137506(0x4ba)]||![],'angle':_0x550e80[_0x137506(0x4b2)][_0x137506(0x3bd)]||0x0,'newAdjustValues':_0x267faa[_0x137506(0x698)],'oldAdjustValues':_0x5887e1,'newLineType':_0x267faa[_0x137506(0x430)],'oldLineType':_0x178355};this['_commandService'][_0x137506(0x51d)](UpdateLineShapeResizeCommand['id'],_0x11e49a);}[_0x35ea10(0x50f)](_0x1408d6,_0x4218cf,_0x3210fb,_0xe4f19f,_0x55ffa4){const _0x3ad195=_0x35ea10,_0x44671d=this[_0x3ad195(0x3c3)]['getShapeData']()[_0x3ad195(0x576)],_0x3f70fe={..._0x44671d},_0x27ded8={'shapeId':_0x4218cf[_0x3ad195(0x54e)],'cxnIndex':_0x4218cf[_0x3ad195(0x299)]};_0xe4f19f?(_0x3f70fe[_0x3ad195(0x644)]=_0x27ded8,_0x3f70fe['to']=_0x3210fb):(_0x3f70fe[_0x3ad195(0x644)]=_0x3210fb,_0x3f70fe['to']=_0x27ded8);const _0x3adbe2={'unitId':this[_0x3ad195(0x58d)],'subUnitId':this[_0x3ad195(0x5a1)],'connectorShapeId':this[_0x3ad195(0x364)],'width':_0x1408d6[_0x3ad195(0x4b2)][_0x3ad195(0x246)],'height':_0x1408d6['worldRect'][_0x3ad195(0x372)],'left':_0x1408d6[_0x3ad195(0x4b2)][_0x3ad195(0x378)],'top':_0x1408d6[_0x3ad195(0x4b2)][_0x3ad195(0x537)],'flipX':_0x1408d6['worldRect'][_0x3ad195(0x53a)]||![],'flipY':_0x1408d6['worldRect']['flipY']||![],'oldAdjustValues':_0x55ffa4,'newAdjustValues':_0x1408d6[_0x3ad195(0x698)],'newLineType':_0x1408d6['lineType'],'rotation':_0x1408d6[_0x3ad195(0x610)],'oldRelation':_0x44671d,'newRelation':_0x3f70fe};this[_0x3ad195(0x4d1)][_0x3ad195(0x51d)](UpdateConnectorRelationCommand['id'],_0x3adbe2);}['_executeConnectedRouteResizeCommand'](_0x3de54a,_0x45be0d,_0x4bc73c,_0x2c9b37){const _0x1afe13=_0x35ea10,_0xfcb0c=this[_0x1afe13(0x3c3)][_0x1afe13(0x301)]()['relation'],_0x52e264={};_0x4bc73c?(_0x52e264['to']=_0x45be0d,_0x52e264[_0x1afe13(0x644)]=void 0x0):(_0x52e264['from']=_0x45be0d,_0x52e264['to']=void 0x0);const _0x236fc3={'unitId':this[_0x1afe13(0x58d)],'subUnitId':this[_0x1afe13(0x5a1)],'connectorShapeId':this[_0x1afe13(0x364)],'width':_0x3de54a[_0x1afe13(0x4b2)][_0x1afe13(0x246)],'height':_0x3de54a[_0x1afe13(0x4b2)]['height'],'left':_0x3de54a[_0x1afe13(0x4b2)][_0x1afe13(0x378)],'top':_0x3de54a[_0x1afe13(0x4b2)][_0x1afe13(0x537)],'flipX':_0x3de54a['worldRect']['flipX']||![],'flipY':_0x3de54a[_0x1afe13(0x4b2)][_0x1afe13(0x4ba)]||![],'oldAdjustValues':_0x2c9b37,'newAdjustValues':_0x3de54a['adjustValues'],'newLineType':_0x3de54a[_0x1afe13(0x430)],'rotation':_0x3de54a[_0x1afe13(0x610)],'oldRelation':_0xfcb0c,'newRelation':_0x52e264};this[_0x1afe13(0x4d1)][_0x1afe13(0x51d)](UpdateConnectorRelationCommand['id'],_0x236fc3);}[_0x35ea10(0x585)](_0x21eb2d,_0x341a07,_0xee24d2){const _0x2f3869=_0x35ea10;this[_0x2f3869(0x44f)](toDisposable(_0x21eb2d[_0x2f3869(0x2b3)][_0x2f3869(0x1f9)]((_0x2c5f46,_0xcaa2bb)=>{const _0x16c73f=_0x2f3869,_0x363f06=_0x21eb2d['getDrawingSearch']();this[_0x16c73f(0x3c3)]=this[_0x16c73f(0x4f6)]['getShapeModel'](_0x363f06[_0x16c73f(0x20a)],_0x363f06['subUnitId'],_0x363f06[_0x16c73f(0x2ef)]);if(!this[_0x16c73f(0x3c3)])return;const _0x2c2f89={};this['_activeShapeModel'][_0x16c73f(0x4ce)]()[_0x16c73f(0x450)](_0x24685f=>{const _0x55abc3=_0x16c73f,_0x181e30=this[_0x55abc3(0x3c3)][_0x55abc3(0x68e)](_0x24685f);if(_0x181e30!==void 0x0)_0x2c2f89[_0x24685f]=_0x181e30;});const _0x5931d4=this[_0x16c73f(0x427)]();if(!_0x5931d4)return;this[_0x16c73f(0x65f)]={..._0x5931d4};const _0x239aed=new ConnectorCoordinateTransform(this[_0x16c73f(0x65f)]),_0x417464=getDrawingShapeKeyByDrawingSearch({'unitId':this[_0x16c73f(0x58d)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x16c73f(0x364)]}),_0x57543b=_0x341a07[_0x16c73f(0x5fd)](_0x417464);this[_0x16c73f(0x55d)]=!![],_0x341a07[_0x16c73f(0x4a0)](),this[_0x16c73f(0x4e8)][_0x16c73f(0x41d)](_0x341a07,this[_0x16c73f(0x58d)],this[_0x16c73f(0x5a1)],this[_0x16c73f(0x364)]),this[_0x16c73f(0x594)]=null;const _0x3b501e=this['_activeShapeModel'][_0x16c73f(0x52a)](),_0x2d12d2=_0x3b501e[0x0],_0x53960f=_0x3b501e[_0x3b501e[_0x16c73f(0x551)]-0x1],_0x41870c=_0xee24d2?_0x239aed[_0x16c73f(0x5c3)](_0x53960f):_0x239aed['localToWorld'](_0x2d12d2);this[_0x16c73f(0x584)]=_0x341a07['onPointerMove$'][_0x16c73f(0x1f9)]((_0x58e0a8,_0x4057a6)=>{const _0x3308de=_0x16c73f;if(!this['_isConnecting']||!this[_0x3308de(0x3c3)])return;!this['_hasReset']&&(this['_sheetShapeAdjustController'][_0x3308de(0x595)](),this[_0x3308de(0x3c3)][_0x3308de(0x359)](),this[_0x3308de(0x256)]=!![]);const _0x87e43f=this[_0x3308de(0x5b3)](this[_0x3308de(0x58d)],this[_0x3308de(0x5a1)]),_0x437dab=this[_0x3308de(0x66a)](this[_0x3308de(0x58d)],this[_0x3308de(0x5a1)]),_0xdb36dc={'x':_0x58e0a8[_0x3308de(0x278)]/_0x437dab+_0x87e43f['x'],'y':_0x58e0a8[_0x3308de(0x63c)]/_0x437dab+_0x87e43f['y']},_0x357d8d=this['_sheetBasicShapeConnectionPointController'][_0x3308de(0x247)](_0xdb36dc);if(_0x357d8d){const {shapeId:_0x6190d1,unitId:_0x57c8f1,subUnitId:_0x3bc9ec}=_0x357d8d;if(_0x6190d1&&_0x57c8f1&&_0x3bc9ec){const _0x40a0e9=getDrawingShapeKeyByDrawingSearch({'unitId':_0x57c8f1,'subUnitId':_0x3bc9ec,'drawingId':_0x6190d1});_0x357d8d[_0x3308de(0x3bd)]=(_0x341a07[_0x3308de(0x5fd)](_0x40a0e9)[_0x3308de(0x3bd)]||0x0)+_0x357d8d[_0x3308de(0x3bd)];}}this['_currentConnectionTarget']=_0x357d8d;const _0x51255a=_0xee24d2?this[_0x3308de(0x3c3)]['getEndConnectInfo']():this[_0x3308de(0x3c3)]['getStartConnectInfo']();if(_0x51255a){this['_handleConnectedEndpointMove'](_0x51255a,_0xdb36dc,_0xee24d2,_0x57543b,_0x21eb2d);return;}this[_0x3308de(0x5a5)](_0xdb36dc,_0x41870c,_0xee24d2,_0x57543b,_0x21eb2d);}),this[_0x16c73f(0x36b)]=_0x341a07[_0x16c73f(0x349)]['subscribeEvent']((_0x5ef3e7,_0x437ef8)=>{const _0x149644=_0x16c73f;this[_0x149644(0x3fe)](_0x341a07,_0x41870c,_0x5ef3e7,_0xee24d2,_0x2c2f89);}),_0xcaa2bb[_0x16c73f(0x322)]();})));}[_0x35ea10(0x42c)](_0x2de3d4,_0x248a81,_0x51ae5d){const _0xd04843=_0x35ea10,_0x394ef9=this[_0xd04843(0x4f6)]['getBasicShapeRelation'](_0x2de3d4,_0x248a81,_0x51ae5d);if(!_0x394ef9||_0x394ef9['length']===0x0)return;const _0x2c7302=this[_0xd04843(0x481)][_0xd04843(0x43a)](_0x2de3d4);if(!_0x2c7302)return;const {scene:_0x46a3c8}=_0x2c7302;for(const _0xca006b of _0x394ef9){const _0x1829b6=_0xca006b[_0xd04843(0x560)],_0x8e507e=this['_sheetsShapeService'][_0xd04843(0x5fe)](_0x2de3d4,_0x248a81,_0x1829b6);if(!_0x8e507e)continue;const _0x416a6a=_0x8e507e[_0xd04843(0x2a6)](),_0x3e7633=_0x8e507e[_0xd04843(0x5b1)](),_0x13e487=(_0x416a6a===null||_0x416a6a===void 0x0?void 0x0:_0x416a6a[_0xd04843(0x54e)])===_0x51ae5d,_0xb56e7b=getDrawingShapeKeyByDrawingSearch({'unitId':_0x2de3d4,'subUnitId':_0x248a81,'drawingId':_0x1829b6}),_0x3a3ff3=_0x46a3c8['getObjectIncludeInGroup'](_0xb56e7b);if(!_0x3a3ff3)continue;const _0x40c1fa=this[_0xd04843(0x659)][_0xd04843(0x2e3)]({'unitId':_0x2de3d4,'subUnitId':_0x248a81,'drawingId':_0x1829b6});if(!(_0x40c1fa===null||_0x40c1fa===void 0x0?void 0x0:_0x40c1fa[_0xd04843(0x27b)]))continue;if(_0x416a6a&&_0x3e7633)this[_0xd04843(0x2aa)](_0x2de3d4,_0x248a81,_0x1829b6,_0x8e507e,_0x416a6a,_0x3e7633,_0x3a3ff3);else this[_0xd04843(0x2dc)](_0x2de3d4,_0x248a81,_0x1829b6,_0x8e507e,_0x13e487?_0x416a6a:_0x3e7633,_0x13e487,_0x40c1fa,_0x3a3ff3);}}[_0x35ea10(0x2aa)](_0x1ca3c3,_0x4d01b9,_0x1d8b51,_0x563c19,_0x40f25d,_0x1a73ee,_0x1a818a){const _0x4ce3d5=_0x35ea10,_0x45c0ab=this[_0x4ce3d5(0x58d)],_0x182664=this['_subUnitId'];this[_0x4ce3d5(0x58d)]=_0x1ca3c3,this[_0x4ce3d5(0x5a1)]=_0x4d01b9;const _0x34fd86=this['_getConnectPointInfo'](_0x40f25d),_0x36fcb0=this['_getConnectPointInfo'](_0x1a73ee);this[_0x4ce3d5(0x58d)]=_0x45c0ab,this[_0x4ce3d5(0x5a1)]=_0x182664;if(!_0x34fd86||!_0x36fcb0)return;const _0x473d70=_0x563c19[_0x4ce3d5(0x3ab)](),_0x17df4b=routeConnectorLineShape(_0x34fd86,_0x36fcb0,_0x473d70);if(_0x17df4b)_0x563c19[_0x4ce3d5(0x47d)](_0x17df4b);const _0x21decb=computeConnectorRouteLayout(_0x17df4b,_0x473d70);if(_0x21decb['lineType']!==_0x473d70)_0x563c19[_0x4ce3d5(0x697)](_0x21decb[_0x4ce3d5(0x430)]);_0x563c19[_0x4ce3d5(0x359)]();for(const [_0x1ce20f,_0x4618c6]of Object[_0x4ce3d5(0x4f2)](_0x21decb['adjustValues']))_0x563c19[_0x4ce3d5(0x1eb)](_0x1ce20f,_0x4618c6);_0x563c19[_0x4ce3d5(0x522)]({'width':_0x21decb[_0x4ce3d5(0x4b2)][_0x4ce3d5(0x246)],'height':_0x21decb[_0x4ce3d5(0x4b2)]['height']}),_0x1a818a[_0x4ce3d5(0x5fc)]({'flipX':_0x21decb['worldRect']['flipX'],'flipY':_0x21decb[_0x4ce3d5(0x4b2)][_0x4ce3d5(0x4ba)],'left':_0x21decb['worldRect'][_0x4ce3d5(0x378)],'top':_0x21decb[_0x4ce3d5(0x4b2)][_0x4ce3d5(0x537)],'width':_0x21decb['worldRect'][_0x4ce3d5(0x246)],'height':_0x21decb['worldRect'][_0x4ce3d5(0x372)],'angle':_0x21decb['rotation']}),_0x563c19['removeLinePoints']();}[_0x35ea10(0x2dc)](_0x50771b,_0x199c37,_0x15fc18,_0x2657d0,_0x3aad16,_0xa9bc33,_0x1e0a39,_0x2931e7){const _0x4ac915=_0x35ea10,_0x15e57e=this[_0x4ac915(0x58d)],_0x1058b2=this[_0x4ac915(0x5a1)];this['_unitId']=_0x50771b,this[_0x4ac915(0x5a1)]=_0x199c37;const _0x9014d2=this['_getConnectPointInfo'](_0x3aad16);this['_unitId']=_0x15e57e,this[_0x4ac915(0x5a1)]=_0x1058b2;if(!_0x9014d2)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x1e0a39[_0x4ac915(0x27b)],_0x2cf24c=_0x2657d0[_0x4ac915(0x52a)]();if(_0x2cf24c[_0x4ac915(0x551)]<0x2)return;const _0x2b36ff=new ConnectorCoordinateTransform({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x5d79be=_0xa9bc33?_0x2cf24c[_0x2cf24c[_0x4ac915(0x551)]-0x1]:_0x2cf24c[0x0],_0x49f41f=_0x2b36ff['localToWorld'](_0x5d79be),_0x1daca0=ConnectorCoordinateTransform[_0x4ac915(0x4e6)](_0x49f41f,_0x9014d2[_0x4ac915(0x4bb)],!_0xa9bc33);_0x2931e7[_0x4ac915(0x5fc)]({'flipX':_0x1daca0[_0x4ac915(0x4b2)][_0x4ac915(0x53a)],'flipY':_0x1daca0[_0x4ac915(0x4b2)][_0x4ac915(0x4ba)],'left':_0x1daca0['worldRect'][_0x4ac915(0x378)],'top':_0x1daca0[_0x4ac915(0x4b2)][_0x4ac915(0x537)],'width':_0x1daca0['worldRect'][_0x4ac915(0x246)],'height':_0x1daca0[_0x4ac915(0x4b2)][_0x4ac915(0x372)],'angle':_0x1daca0['worldRect'][_0x4ac915(0x3bd)]}),_0x2931e7[_0x4ac915(0x598)](!![]);}['_clearShapeConnectorHandlerObjects'](){const _0x3efb22=_0x35ea10;if(this[_0x3efb22(0x264)]['length']===0x0)return;this[_0x3efb22(0x264)][_0x3efb22(0x450)](_0x613618=>{const _0x4f7024=_0x3efb22;_0x613618[_0x4f7024(0x23f)]();}),this[_0x3efb22(0x264)]=[];}['_registerDrawingMoveHandler'](){const _0x58617b=_0x35ea10,_0x6234ba=this['_univerInstanceService'][_0x58617b(0x5e2)](UniverInstanceType[_0x58617b(0x370)]);this[_0x58617b(0x44f)](_0x6234ba['pipe'](switchMap(_0x13e657=>{const _0x5c1b54=_0x58617b;if(!_0x13e657)return EMPTY;return _0x13e657['activeSheet$'][_0x5c1b54(0x316)](switchMap(_0x18e764=>{const _0x446f7d=_0x5c1b54;if(!_0x18e764)return EMPTY;const _0x4e53ce=_0x13e657['getUnitId'](),_0x23addb=this['_renderManagerService'][_0x446f7d(0x43a)](_0x4e53ce),_0x1cc16f=_0x23addb===null||_0x23addb===void 0x0?void 0x0:_0x23addb[_0x446f7d(0x552)];if(!_0x1cc16f)return EMPTY;return of(_0x1cc16f);}));}))[_0x58617b(0x58c)](_0x41b211=>{const _0x5f0490=_0x58617b,_0x2d172f=_0x41b211[_0x5f0490(0x5c9)]();this['disposeWithMe'](_0x41b211[_0x5f0490(0x476)][_0x5f0490(0x1f9)](_0x6ad0ea=>{const _0x4c121b=_0x5f0490;if(this[_0x4c121b(0x342)]&&this[_0x4c121b(0x364)])this[_0x4c121b(0x362)]();})),this[_0x5f0490(0x44f)](_0x2d172f[_0x5f0490(0x41e)][_0x5f0490(0x58c)](_0x2877b9=>{const _0x175849=_0x5f0490,{objects:_0x410e2f}=_0x2877b9;this[_0x175849(0x362)]();if(_0x410e2f!==null&&_0x410e2f[_0x175849(0x634)]===0x1){if(_0x410e2f[_0x175849(0x28a)]()[_0x175849(0x654)]()[_0x175849(0x2cb)]instanceof DrawingShape)this['_isDrawingShapePointDown']=!![];}})),this['disposeWithMe'](_0x2d172f[_0x5f0490(0x493)]['subscribe'](_0x1af1f4=>{const _0x35575c=_0x5f0490;if(this[_0x35575c(0x342)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x5f0490(0x44f)](_0x41b211['onPointerUp$'][_0x5f0490(0x1f9)](()=>{const _0x46b1aa=_0x5f0490;this['_isDrawingShapePointDown']&&(this[_0x46b1aa(0x342)]=![],this['_addShapeConnectorHandlerObjects']());})),this[_0x5f0490(0x44f)](_0x2d172f[_0x5f0490(0x54d)][_0x5f0490(0x58c)](()=>{const _0x2ac6ee=_0x5f0490;this[_0x2ac6ee(0x58d)]&&this['_subUnitId']&&this[_0x2ac6ee(0x364)]&&(this[_0x2ac6ee(0x659)]['getDrawingByParam']({'unitId':this[_0x2ac6ee(0x58d)],'subUnitId':this[_0x2ac6ee(0x5a1)],'drawingId':this['_activeShapeId']})&&(this[_0x2ac6ee(0x362)](),this[_0x2ac6ee(0x375)]()));}));}));}[_0x35ea10(0x67c)](){const _0x168407=_0x35ea10;this[_0x168407(0x44f)](this[_0x168407(0x659)][_0x168407(0x655)][_0x168407(0x58c)](_0x38020e=>{const _0x4fe925=_0x168407;if(_0x38020e[_0x4fe925(0x551)]===0x1){const _0x10cc8d=_0x38020e[0x0];if(_0x10cc8d['drawingType']===DrawingTypeEnum[_0x4fe925(0x29f)]){const _0x4a6c16=this['_sheetsShapeService'][_0x4fe925(0x5fe)](_0x10cc8d[_0x4fe925(0x20a)],_0x10cc8d[_0x4fe925(0x529)],_0x10cc8d[_0x4fe925(0x2ef)]);if(_0x4a6c16&&isConnectorShape(_0x4a6c16[_0x4fe925(0x3ab)]())){this[_0x4fe925(0x364)]=_0x10cc8d['drawingId'],this[_0x4fe925(0x58d)]=_0x10cc8d[_0x4fe925(0x20a)],this[_0x4fe925(0x5a1)]=_0x10cc8d[_0x4fe925(0x529)],this['_clearShapeConnectorHandlerObjects'](),this[_0x4fe925(0x375)]();return;}}}this[_0x4fe925(0x364)]=void 0x0,this[_0x4fe925(0x58d)]=void 0x0,this[_0x4fe925(0x5a1)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x168407(0x44f)](this[_0x168407(0x659)]['update$'][_0x168407(0x58c)](_0x2c9e57=>{const _0x2fa70e=_0x168407;if(_0x2c9e57[_0x2fa70e(0x551)]===0x1){var _0x159b2e;const _0x40b682=_0x2c9e57[0x0],_0x300627=(_0x159b2e=this[_0x2fa70e(0x659)][_0x2fa70e(0x2e3)](_0x40b682))===null||_0x159b2e===void 0x0?void 0x0:_0x159b2e[_0x2fa70e(0x645)];if(_0x300627===DrawingTypeEnum[_0x2fa70e(0x29f)]&&_0x40b682[_0x2fa70e(0x2ef)]===this[_0x2fa70e(0x364)])this['_clearShapeConnectorHandlerObjects'](),this[_0x2fa70e(0x375)]();else{if(!this[_0x2fa70e(0x364)]&&_0x300627===DrawingTypeEnum[_0x2fa70e(0x29f)])this['_handleBasicShapeUpdateConnectorLineShape'](_0x40b682['unitId'],_0x40b682['subUnitId'],_0x40b682['drawingId']);}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x168407(0x629)][_0x168407(0x58c)](_0x4afbcf=>{const _0x198d21=_0x168407;for(const _0x377750 of _0x4afbcf){const {drawingId:_0x3f40d4}=_0x377750;if(this['_activeShapeId']===_0x3f40d4){this[_0x198d21(0x24a)]();return;}}}));}[_0x35ea10(0x527)](_0x4bf767,_0x18661c,_0x2b332a,_0x3788e8,_0x3175e7){const _0xf9da74=_0x35ea10;var _0x32cd8a,_0x503d0c;if(!this['_activeShapeModel'])return;const _0x586481=this['_getConnectPointInfo'](_0x4bf767);if(!_0x586481)return;const _0x2f0cd9=this[_0xf9da74(0x594)]?this['_currentConnectionTarget'][_0xf9da74(0x452)]:_0x18661c,_0x3306d4=this[_0xf9da74(0x594)]?this[_0xf9da74(0x594)][_0xf9da74(0x3bd)]:this[_0xf9da74(0x569)](_0x586481[_0xf9da74(0x4bb)],_0x2f0cd9);let _0x578d39;if(this[_0xf9da74(0x594)]){const _0x1ccf9c=this['_drawingManagerService'][_0xf9da74(0x2e3)]({'unitId':this['_currentConnectionTarget'][_0xf9da74(0x20a)],'subUnitId':this[_0xf9da74(0x594)][_0xf9da74(0x529)],'drawingId':this[_0xf9da74(0x594)][_0xf9da74(0x54e)]});if(_0x1ccf9c===null||_0x1ccf9c===void 0x0?void 0x0:_0x1ccf9c[_0xf9da74(0x27b)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x122971}=_0x1ccf9c['transform'];_0x578d39=getBasicShapeRotateBound({'left':left,'top':top,'width':width,'height':height},_0x122971||0x0);}else _0x578d39={'left':_0x2f0cd9['x'],'top':_0x2f0cd9['y'],'width':0x0,'height':0x0};}else _0x578d39={'left':_0x2f0cd9['x'],'top':_0x2f0cd9['y'],'width':0x0,'height':0x0};const _0x356091={'point':_0x2f0cd9,'angle':_0x3306d4,'bounds':_0x578d39},_0x2bfcd9=_0x2b332a?_0x356091:_0x586481,_0xb6c172=_0x2b332a?_0x586481:_0x356091,_0x4cc3b3=this[_0xf9da74(0x3c3)][_0xf9da74(0x3ab)](),_0x2ad9c7=routeConnectorLineShape(_0x2bfcd9,_0xb6c172,_0x4cc3b3);if(_0x2ad9c7)this[_0xf9da74(0x3c3)][_0xf9da74(0x47d)](_0x2ad9c7);const _0x5ef36d=computeConnectorRouteLayout(_0x2ad9c7,_0x4cc3b3);if(_0x5ef36d[_0xf9da74(0x430)]!==_0x4cc3b3)this[_0xf9da74(0x3c3)]['changeShapeType'](_0x5ef36d['lineType']);for(const [_0x3933ed,_0x530d16]of Object['entries'](_0x5ef36d[_0xf9da74(0x698)]))this[_0xf9da74(0x3c3)][_0xf9da74(0x1eb)](_0x3933ed,_0x530d16);this['_activeShapeModel'][_0xf9da74(0x522)]({'width':_0x5ef36d[_0xf9da74(0x4b2)][_0xf9da74(0x246)],'height':_0x5ef36d[_0xf9da74(0x4b2)][_0xf9da74(0x372)]}),_0x3788e8[_0xf9da74(0x5fc)]({'flipX':_0x5ef36d[_0xf9da74(0x4b2)][_0xf9da74(0x53a)],'flipY':_0x5ef36d[_0xf9da74(0x4b2)][_0xf9da74(0x4ba)],'left':_0x5ef36d[_0xf9da74(0x4b2)]['left'],'top':_0x5ef36d[_0xf9da74(0x4b2)][_0xf9da74(0x537)],'width':_0x5ef36d[_0xf9da74(0x4b2)][_0xf9da74(0x246)],'height':_0x5ef36d[_0xf9da74(0x4b2)]['height'],'angle':_0x5ef36d[_0xf9da74(0x610)]}),_0x3788e8['makeDirty'](!![]);const _0x32b863=(_0x32cd8a=(_0x503d0c=this[_0xf9da74(0x594)])===null||_0x503d0c===void 0x0?void 0x0:_0x503d0c[_0xf9da74(0x452)])!==null&&_0x32cd8a!==void 0x0?_0x32cd8a:_0x18661c;_0x3175e7[_0xf9da74(0x5fc)]({'left':_0x32b863['x']-ShapeDefaultConfig[_0xf9da74(0x3ee)],'top':_0x32b863['y']-ShapeDefaultConfig[_0xf9da74(0x3ee)]});}[_0x35ea10(0x5a5)](_0x3e54bc,_0x5578a5,_0x392a6d,_0x5a9a2c,_0xf1c8f5){const _0x5a601d=_0x35ea10;var _0x1916cf,_0x370aa3,_0x374a73,_0x1812f3;const _0x143d8f=(_0x1916cf=(_0x370aa3=this[_0x5a601d(0x594)])===null||_0x370aa3===void 0x0?void 0x0:_0x370aa3[_0x5a601d(0x452)])!==null&&_0x1916cf!==void 0x0?_0x1916cf:_0x3e54bc,_0x5eb6c5=ConnectorCoordinateTransform['computeConnectorResizeLayout'](_0x5578a5,_0x143d8f,_0x392a6d);_0x5a9a2c[_0x5a601d(0x5fc)]({'flipX':_0x5eb6c5[_0x5a601d(0x4b2)][_0x5a601d(0x53a)],'flipY':_0x5eb6c5[_0x5a601d(0x4b2)][_0x5a601d(0x4ba)],'left':_0x5eb6c5['worldRect'][_0x5a601d(0x378)],'top':_0x5eb6c5[_0x5a601d(0x4b2)][_0x5a601d(0x537)],'width':_0x5eb6c5['worldRect'][_0x5a601d(0x246)],'height':_0x5eb6c5[_0x5a601d(0x4b2)][_0x5a601d(0x372)],'angle':_0x5eb6c5[_0x5a601d(0x4b2)][_0x5a601d(0x3bd)]});const _0x48da75=(_0x374a73=(_0x1812f3=this['_currentConnectionTarget'])===null||_0x1812f3===void 0x0?void 0x0:_0x1812f3['worldPoint'])!==null&&_0x374a73!==void 0x0?_0x374a73:_0x3e54bc;_0xf1c8f5[_0x5a601d(0x5fc)]({'left':_0x48da75['x']-ShapeDefaultConfig[_0x5a601d(0x3ee)],'top':_0x48da75['y']-ShapeDefaultConfig[_0x5a601d(0x3ee)]});}[_0x35ea10(0x3fb)](_0x11c8cf){const _0x2b4d87=_0x35ea10;if(!this[_0x2b4d87(0x58d)]||!this['_subUnitId'])return null;const {shapeId:_0xbd85da,cxnIndex:_0x4ec643}=_0x11c8cf,_0x5d59fc=this['_sheetsShapeService'][_0x2b4d87(0x5fe)](this[_0x2b4d87(0x58d)],this[_0x2b4d87(0x5a1)],_0xbd85da);if(!_0x5d59fc)return null;const _0x20ead1=this[_0x2b4d87(0x659)][_0x2b4d87(0x2e3)]({'unitId':this[_0x2b4d87(0x58d)],'subUnitId':this['_subUnitId'],'drawingId':_0xbd85da});if(!(_0x20ead1===null||_0x20ead1===void 0x0?void 0x0:_0x20ead1[_0x2b4d87(0x27b)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x256f8b}=_0x20ead1[_0x2b4d87(0x27b)];_0x5d59fc['updateContext']({'width':width,'height':height});const _0x5379d6=_0x5d59fc[_0x2b4d87(0x683)]()[_0x2b4d87(0x3b8)](_0x894634=>_0x894634[_0x2b4d87(0x5a2)]===_0x4ec643);if(!_0x5379d6)return null;let _0x406a0f=flipX?width-_0x5379d6['x']:_0x5379d6['x'],_0x198dbc=flipY?height-_0x5379d6['y']:_0x5379d6['y'];if(_0x256f8b!==0x0&&_0x256f8b!==void 0x0&&_0x256f8b!==null){const _0x450084=_0x256f8b*Math['PI']/0xb4,_0x406d37=Math[_0x2b4d87(0x25d)](_0x450084),_0x43ca54=Math[_0x2b4d87(0x5f7)](_0x450084),_0x282db9=width/0x2,_0x53503c=height/0x2,_0x262461=_0x406a0f-_0x282db9,_0x3cdbfa=_0x198dbc-_0x53503c;_0x406a0f=_0x282db9+_0x262461*_0x406d37-_0x3cdbfa*_0x43ca54,_0x198dbc=_0x53503c+_0x262461*_0x43ca54+_0x3cdbfa*_0x406d37;}_0x406a0f+=left,_0x198dbc+=top;let _0x4dd852=_0x5379d6['ang']/0xea60;if(flipX)_0x4dd852=0xb4-_0x4dd852;if(flipY)_0x4dd852=-_0x4dd852;_0x4dd852+=_0x256f8b||0x0,_0x4dd852=(_0x4dd852%0x168+0x168)%0x168;const _0x1011b6=getBasicShapeRotateBound({'left':left,'top':top,'width':width,'height':height},_0x256f8b||0x0);return{'point':{'x':_0x406a0f,'y':_0x198dbc},'angle':_0x4dd852,'bounds':_0x1011b6};}['_calculateFreeEndpointAngle'](_0x579181,_0x42e1f2){const _0x1184cd=_0x35ea10,_0x224fde=_0x42e1f2['x']-_0x579181['x'],_0x26c62d=_0x42e1f2['y']-_0x579181['y'];if(Math[_0x1184cd(0x63f)](_0x224fde)>=Math[_0x1184cd(0x63f)](_0x26c62d))return _0x224fde>=0x0?0xb4:0x0;else return _0x26c62d>=0x0?0x10e:0x5a;}[_0x35ea10(0x24a)](){const _0x40b2e9=_0x35ea10;this[_0x40b2e9(0x364)]=void 0x0,this[_0x40b2e9(0x58d)]=void 0x0,this[_0x40b2e9(0x5a1)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x35ea10(0x23f)](){const _0x50ef76=_0x35ea10;this[_0x50ef76(0x362)](),super[_0x50ef76(0x23f)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,ICommandService),__decorateParam(0x2,IRenderManagerService),__decorateParam(0x3,IDrawingManagerService),__decorateParam(0x4,IUniverInstanceService),__decorateParam(0x5,Inject(SheetsShapeService)),__decorateParam(0x6,Inject(SheetShapeAdjustController)),__decorateParam(0x7,Inject(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends Disposable{constructor(_0x51d7a1,_0x4759e4,_0x207f76){const _0x153b78=_0x35ea10;super(),this['_commandService']=_0x51d7a1,this[_0x153b78(0x5e0)]=_0x4759e4,this[_0x153b78(0x474)]=_0x207f76,this[_0x153b78(0x3ed)]();}['_initPermission'](){const _0x25b190=_0x35ea10;this[_0x25b190(0x44f)](this[_0x25b190(0x4d1)][_0x25b190(0x4cb)](_0x5c8378=>{const _0x4de427=_0x25b190;let _0xa2727b,_0x119f47;if(_0x5c8378['id']===InsertShapeCommand['id']||_0x5c8378['id']===SetShapeDrawingDataCommand['id']||_0x5c8378['id']===UpdateConnectorRelationCommand['id']){const _0x2f8d10=_0x5c8378[_0x4de427(0x69d)];_0xa2727b=_0x2f8d10[_0x4de427(0x20a)],_0x119f47=_0x2f8d10[_0x4de427(0x529)];}if(!_0xa2727b||!_0x119f47)return;if(!this[_0x4de427(0x474)][_0x4de427(0x572)]({'workbookTypes':[WorkbookEditablePermission],'worksheetTypes':[WorksheetEditPermission]},_0xa2727b,_0x119f47))this['_sheetPermissionCheckController'][_0x4de427(0x293)](this[_0x4de427(0x5e0)]['t']('permission.dialog.editErr'));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,Inject(ICommandService)),__decorateParam(0x1,Inject(LocaleService)),__decorateParam(0x2,Inject(SheetPermissionCheckController))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x3fdfe3){const _0x6e5854=_0x35ea10,{containerWidth:_0x4fbcf7,containerHeight:_0x54ee4b,scaleX:_0x51d4a0,scaleY:_0x5b4568}=_0x3fdfe3,_0xf28ce2=_0x51d4a0||0x1,_0x2b09c4=_0x5b4568||0x1,_0xdd3401=useDependency(ShapeTextEditingService),_0x41c041=useDependency(IEditorService),_0x5131d1=useDependency(IRenderManagerService),_0x27b991=useDependency(IUniverInstanceService),_0x297251=useDependency(IDrawingManagerService),_0x4d976d=useDependency(SheetsShapeService),_0xd59bfa=useDependency(ICommandService),_0x4e74d7=useObservable(_0xdd3401[_0x6e5854(0x2d5)]),_0x1095d0=useObservable(_0xdd3401[_0x6e5854(0x2f8)]),_0x46faab=useRef(null),_0x962aa7=useRef(null),_0x27e65c=useRef(null),_0x5dbaf7=useRef(null),_0x3a9c31=useRef(null),_0x32d717=useRef(null),[_0x3e542a,_0x2f626f]=useState({'editorHeight':_0x54ee4b,'marginTop':0x0,'useAbsolutePosition':![]}),_0x2adcee=useCallback(_0x279d57=>{queueMicrotask(()=>{_0x2f626f(_0x279d57);});},[]),_0x4da877=useCallback(()=>{const _0xda8efc=_0x6e5854;return _0x27b991['getUnit'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,UniverInstanceType[_0xda8efc(0x2c3)]);},[_0x27b991]),_0xd666ab=useCallback(()=>{const _0x5b89e5=_0x6e5854;var _0xdf6c2c;const _0x5d9a66=_0xf28ce2,_0x38590b=_0x2b09c4;if(!_0x4e74d7)return{'scaleAdjust':0x1,'renderScaleX':_0x5d9a66,'renderScaleY':_0x38590b};const _0x216a65=_0x5131d1[_0x5b89e5(0x43a)](_0x4e74d7[_0x5b89e5(0x20a)]),_0x4f7cd0=_0x216a65===null||_0x216a65===void 0x0?void 0x0:_0x216a65[_0x5b89e5(0x552)]['getAncestorScale'](),_0x23747d=_0x216a65===null||_0x216a65===void 0x0?void 0x0:_0x216a65[_0x5b89e5(0x1ed)]['getCanvasElement'](),_0x4eb0b2=_0x23747d?Number[_0x5b89e5(0x622)](_0x23747d['style']['width']||''):0x0,_0x15b441=(_0xdf6c2c=_0x23747d===null||_0x23747d===void 0x0?void 0x0:_0x23747d[_0x5b89e5(0x26a)]()[_0x5b89e5(0x246)])!==null&&_0xdf6c2c!==void 0x0?_0xdf6c2c:0x0,_0x5768ba=_0x4eb0b2>0x0&&_0x15b441>0x0?_0x15b441/_0x4eb0b2:0x1;return{'scaleAdjust':Number[_0x5b89e5(0x64b)](_0x5768ba)&&_0x5768ba>0x0?_0x5768ba:0x1,'renderScaleX':(_0x4f7cd0===null||_0x4f7cd0===void 0x0?void 0x0:_0x4f7cd0[_0x5b89e5(0x61b)])||_0x5d9a66,'renderScaleY':(_0x4f7cd0===null||_0x4f7cd0===void 0x0?void 0x0:_0x4f7cd0[_0x5b89e5(0x440)])||_0x38590b};},[_0xf28ce2,_0x2b09c4,_0x4e74d7,_0x5131d1]),_0x504b59=useCallback(()=>{const _0x160940=_0x6e5854;if(!_0x4e74d7)return{'left':0x0,'top':0x0,'width':_0x4fbcf7/_0xf28ce2,'height':_0x54ee4b/_0x2b09c4};const {unitId:_0x3469ff,subUnitId:_0x57b969,shapeId:_0x5a4ab0}=_0x4e74d7,_0x3872db=_0x4d976d[_0x160940(0x5fe)](_0x3469ff,_0x57b969,_0x5a4ab0);if(!_0x3872db)return{'left':0x0,'top':0x0,'width':_0x4fbcf7/_0xf28ce2,'height':_0x54ee4b/_0x2b09c4};const _0x2c926a={'left':0x0,'top':0x0,'width':_0x4fbcf7/_0xf28ce2,'height':_0x54ee4b/_0x2b09c4};return _0x3872db['getShapeTextRect'](_0x2c926a);},[_0x4e74d7,_0x4fbcf7,_0x54ee4b,_0xf28ce2,_0x2b09c4,_0x4d976d]),_0x535e3e=useCallback(()=>{const _0x2ca882=_0x6e5854;if(!_0x4e74d7)return null;const {unitId:_0x3751d6,subUnitId:_0x1512dc,shapeId:_0x32821e}=_0x4e74d7,_0x11109f=_0x4d976d[_0x2ca882(0x5fe)](_0x3751d6,_0x1512dc,_0x32821e);if(!_0x11109f)return null;const _0x384010=_0x11109f[_0x2ca882(0x2f0)]();if(!_0x384010)return null;const _0x16f585={'unitId':_0x3751d6,'subUnitId':_0x1512dc,'drawingId':_0x32821e},_0xbf71fa=_0x297251[_0x2ca882(0x2e3)](_0x16f585);let _0x9bae37={'angle':0x0,'flipX':![],'flipY':![]};if(_0xbf71fa&&_0xbf71fa['transform'])_0x9bae37=_0xbf71fa['transform'];const _0x53f80a={'left':0x0,'top':0x0,'width':_0x4fbcf7/_0xf28ce2,'height':_0x54ee4b/_0x2b09c4},_0x19f07a=_0x11109f[_0x2ca882(0x647)](_0x53f80a);let _0x52367a,_0x24242a=VerticalAlign['TOP'],_0xc51056=HorizontalAlign[_0x2ca882(0x625)];if(_0x2ca882(0x2e1)in _0x384010&&_0x384010[_0x2ca882(0x2e1)]){var _0x186921,_0x2dabe8;const _0x43e630=_0x384010[_0x2ca882(0x2e1)];if(_0x43e630===null||_0x43e630===void 0x0?void 0x0:_0x43e630[_0x2ca882(0x5fb)])_0x52367a=_0x43e630['doc'];_0x24242a=(_0x186921=_0x43e630===null||_0x43e630===void 0x0?void 0x0:_0x43e630['va'])!==null&&_0x186921!==void 0x0?_0x186921:VerticalAlign['TOP'],_0xc51056=(_0x2dabe8=_0x43e630===null||_0x43e630===void 0x0?void 0x0:_0x43e630['ha'])!==null&&_0x2dabe8!==void 0x0?_0x2dabe8:HorizontalAlign[_0x2ca882(0x625)];}return{'doc':_0x52367a,'verticalAlign':_0x24242a,'horizontalAlign':_0xc51056,'textRect':_0x19f07a,'transform':_0x9bae37,'isHorizontal':_0x384010[_0x2ca882(0x5c6)]};},[_0x4e74d7,_0x4d976d,_0x297251,_0x4fbcf7,_0x54ee4b,_0xf28ce2,_0x2b09c4]),_0x40e431=useMemo(()=>{const _0x296b22=_0x6e5854,_0x5aa0f2=_0x535e3e();if(_0x5aa0f2===null||_0x5aa0f2===void 0x0?void 0x0:_0x5aa0f2[_0x296b22(0x5fb)])return prepareShapeTextDocumentData(_0x5aa0f2[_0x296b22(0x5fb)],{'isHorizontal':!![],'textRect':_0x5aa0f2[_0x296b22(0x5ab)],'verticalAlign':_0x5aa0f2[_0x296b22(0x2ad)],'horizontalAlign':_0x5aa0f2['horizontalAlign']});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x4fbcf7/_0xf28ce2,'height':Infinity}}};},[_0x535e3e,_0x4fbcf7,_0xf28ce2]),_0x5e0adf=useEditor({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x40e431,'container':_0x962aa7,'autoFocus':![],'isSingle':![]}),_0xc65922=useIsFocusing(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);useKeyboardEvent(_0xc65922,{'keyCodes':[{'keyCode':KeyCode[_0x6e5854(0x624)]}],'handler':()=>{const _0x5ec746=_0x6e5854;_0xd59bfa[_0x5ec746(0x51d)](BreakLineCommand['id']);}},_0x5e0adf),useLeftAndRightArrow(_0xc65922,![],_0x5e0adf);const _0x3b5664=useCallback((_0x557bc0=!![])=>{const _0x42e110=_0x6e5854;var _0x36b738,_0x588a94,_0x20e675;if(!_0x5e0adf)return;const _0x32af79=_0x5e0adf[_0x42e110(0x3c1)]()[_0x42e110(0x3b8)](_0x45f7c7=>_0x45f7c7[_0x42e110(0x213)]),_0xcb0b8e=((_0x36b738=(_0x588a94=_0x5e0adf[_0x42e110(0x21b)]()['body'])===null||_0x588a94===void 0x0?void 0x0:_0x588a94['dataStream'][_0x42e110(0x551)])!==null&&_0x36b738!==void 0x0?_0x36b738:0x2)-0x2,_0x18cdf5=(_0x20e675=_0x32af79===null||_0x32af79===void 0x0?void 0x0:_0x32af79[_0x42e110(0x229)])!==null&&_0x20e675!==void 0x0?_0x20e675:_0x557bc0?_0xcb0b8e:null;if(_0x18cdf5===null)return;_0x5e0adf[_0x42e110(0x348)]([{'startOffset':_0x18cdf5,'endOffset':_0x18cdf5}],![]);},[_0x5e0adf]),_0x2fabdb=useCallback(()=>{const _0x243f0b=_0x6e5854;_0x3a9c31[_0x243f0b(0x5d0)]!==null&&(cancelAnimationFrame(_0x3a9c31[_0x243f0b(0x5d0)]),_0x3a9c31[_0x243f0b(0x5d0)]=null),_0x32d717[_0x243f0b(0x5d0)]!==null&&(window[_0x243f0b(0x58a)](_0x32d717[_0x243f0b(0x5d0)]),_0x32d717[_0x243f0b(0x5d0)]=null);},[]),_0x30c6dd=useCallback(()=>{const _0x10c6bc=_0x6e5854;var _0x27ab64,_0x32d744,_0x303d45;if(!_0x5e0adf)return;const _0x3c83a6=_0x5131d1['getRenderById'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x5c3e93=_0x3c83a6===null||_0x3c83a6===void 0x0?void 0x0:_0x3c83a6[_0x10c6bc(0x565)](DocSkeletonManagerService);if(!_0x5c3e93)return;const _0x7f67e4=_0x5c3e93[_0x10c6bc(0x39f)](),_0x8e15ff=_0x4da877(),{renderScaleX:_0x352c1a,renderScaleY:_0x2f06e5,scaleAdjust:_0x2d86ec}=_0xd666ab(),_0x22b30a=_0x535e3e(),_0xac33fa=(_0x27ab64=_0x22b30a===null||_0x22b30a===void 0x0?void 0x0:_0x22b30a['verticalAlign'])!==null&&_0x27ab64!==void 0x0?_0x27ab64:VerticalAlign[_0x10c6bc(0x39e)],_0x1071e4=(_0x32d744=_0x22b30a===null||_0x22b30a===void 0x0?void 0x0:_0x22b30a['horizontalAlign'])!==null&&_0x32d744!==void 0x0?_0x32d744:HorizontalAlign['LEFT'],_0x4366f0=(_0x303d45=_0x504b59())!==null&&_0x303d45!==void 0x0?_0x303d45:{'left':0x0,'top':0x0,'width':_0x4fbcf7/_0xf28ce2,'height':_0x54ee4b/_0x2b09c4};_0x8e15ff&&(_0x8e15ff[_0x10c6bc(0x234)](Math[_0x10c6bc(0x2df)](_0x352c1a,_0x2f06e5)),_0x8e15ff[_0x10c6bc(0x5c2)]({'pageSize':{'width':_0x4366f0['width'],'height':Infinity}}),_0x8e15ff[_0x10c6bc(0x556)]({'verticalAlign':_0xac33fa,'horizontalAlign':_0x1071e4,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':WrapStrategy[_0x10c6bc(0x688)]}));_0x7f67e4[_0x10c6bc(0x436)]();const {actualHeight:_0x578bfe}=_0x7f67e4[_0x10c6bc(0x2a3)](),_0x1bcd25=_0x4366f0[_0x10c6bc(0x372)];let _0x184218=_0x1bcd25,_0x50d022=0x0;if(_0x578bfe<=_0x1bcd25){if(_0xac33fa===VerticalAlign[_0x10c6bc(0x60b)])_0x50d022=(_0x1bcd25-_0x578bfe)/0x2;else{if(_0xac33fa===VerticalAlign[_0x10c6bc(0x302)])_0x50d022=_0x1bcd25-_0x578bfe;}_0x184218=_0x1bcd25,_0x2adcee({'editorHeight':_0x4366f0[_0x10c6bc(0x372)]*_0x2b09c4,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x1075ff=0x0;if(_0xac33fa===VerticalAlign[_0x10c6bc(0x60b)])_0x1075ff=(_0x1bcd25-_0x578bfe)/0x2;else{if(_0xac33fa===VerticalAlign[_0x10c6bc(0x302)])_0x1075ff=_0x1bcd25-_0x578bfe;}_0x50d022=0x0,_0x2adcee({'editorHeight':_0x578bfe*_0x2b09c4,'marginTop':_0x1075ff*_0x2b09c4,'useAbsolutePosition':!![]}),_0x184218=_0x578bfe;}_0x8e15ff&&(_0x8e15ff[_0x10c6bc(0x5c2)]({'pageSize':{'width':_0x4366f0[_0x10c6bc(0x246)],'height':_0x184218}}),_0x8e15ff['updateDocumentDataMargin']({'t':_0x50d022}),_0x7f67e4[_0x10c6bc(0x436)]());if(_0x3c83a6){const _0x8cbe94=_0x4366f0[_0x10c6bc(0x246)]*_0xf28ce2,_0x341e65=_0x184218*_0x2b09c4;_0x3c83a6[_0x10c6bc(0x552)]['transformByState']({'width':_0x8cbe94*_0x2d86ec/_0x352c1a,'height':_0x341e65*_0x2d86ec/_0x2f06e5,'scaleX':_0x352c1a*_0x2d86ec,'scaleY':_0x2f06e5*_0x2d86ec});if(_0x3c83a6[_0x10c6bc(0x313)])_0x3c83a6['mainComponent'][_0x10c6bc(0x3f4)](_0x8cbe94*_0x2d86ec/_0x352c1a,_0x341e65*_0x2d86ec/_0x2f06e5);}},[_0x5e0adf,_0x5131d1,_0x4da877,_0xd666ab,_0x535e3e,_0x504b59,_0x4fbcf7,_0x54ee4b,_0xf28ce2,_0x2b09c4,_0x2adcee]),_0x19b4be=useCallback((_0x3ecf1f=![])=>{const _0xc0ba38=_0x6e5854;_0x2fabdb(),_0x3a9c31[_0xc0ba38(0x5d0)]=requestAnimationFrame(()=>{const _0x529cf8=_0xc0ba38;_0x30c6dd();if(_0x3ecf1f)_0x3b5664(![]);_0x3a9c31['current']=null,_0x32d717[_0x529cf8(0x5d0)]=window[_0x529cf8(0x535)](()=>{_0x30c6dd();if(_0x3ecf1f)_0x3b5664(![]);_0x32d717['current']=null;},0x14);});},[_0x30c6dd,_0x2fabdb,_0x3b5664]);useEffect(()=>{const _0x4bc544=_0x6e5854;if(!_0x5e0adf||!_0x4e74d7)return;const {shapeId:_0x144f2e,unitId:_0x4402d7,subUnitId:_0x27592b}=_0x4e74d7;if(_0x1095d0){var _0x430761,_0x1b6655,_0x7b6905,_0x5574e1;const _0x21a16c=stripShapeTextDocumentLayout(_0x5e0adf[_0x4bc544(0x21b)]()),_0x3234ba=_0x535e3e(),_0x15a948={'va':(_0x430761=_0x3234ba===null||_0x3234ba===void 0x0?void 0x0:_0x3234ba['verticalAlign'])!==null&&_0x430761!==void 0x0?_0x430761:VerticalAlign[_0x4bc544(0x39e)],'ha':(_0x1b6655=_0x3234ba===null||_0x3234ba===void 0x0?void 0x0:_0x3234ba['horizontalAlign'])!==null&&_0x1b6655!==void 0x0?_0x1b6655:HorizontalAlign['LEFT'],'doc':_0x21a16c};_0xd59bfa['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x4402d7,'subUnitId':_0x27592b,'shapeId':_0x144f2e,'shapeData':{'shapeText':{'isHorizontal':(_0x7b6905=_0x3234ba===null||_0x3234ba===void 0x0?void 0x0:_0x3234ba[_0x4bc544(0x5c6)])!==null&&_0x7b6905!==void 0x0?_0x7b6905:!![],'dataModel':_0x15a948}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x5574e1=_0x3234ba===null||_0x3234ba===void 0x0?void 0x0:_0x3234ba['isHorizontal'])!==null&&_0x5574e1!==void 0x0?_0x5574e1:!![],'dataModel':_0x27e65c[_0x4bc544(0x5d0)]}}}});return;}const _0x42d7d8=_0x535e3e();if(_0x42d7d8===null||_0x42d7d8===void 0x0?void 0x0:_0x42d7d8[_0x4bc544(0x5fb)]){_0x27e65c[_0x4bc544(0x5d0)]={'va':_0x42d7d8[_0x4bc544(0x2ad)],'ha':_0x42d7d8[_0x4bc544(0x444)],'doc':Tools[_0x4bc544(0x363)](_0x42d7d8[_0x4bc544(0x5fb)])};const _0x1fb925=prepareShapeTextDocumentData(_0x42d7d8[_0x4bc544(0x5fb)],{'isHorizontal':!![],'textRect':_0x42d7d8[_0x4bc544(0x5ab)],'verticalAlign':_0x42d7d8['verticalAlign'],'horizontalAlign':_0x42d7d8[_0x4bc544(0x444)]});return _0x5e0adf[_0x4bc544(0x59d)](_0x1fb925,null),()=>{const _0x57a83e=_0x4bc544;var _0x594d78,_0x569b65,_0x36ae95,_0x3912cc;const _0xc68ca=stripShapeTextDocumentLayout(_0x5e0adf['getDocumentData']()),_0x2b37f8=_0x535e3e(),_0x33448d={'va':(_0x594d78=_0x2b37f8===null||_0x2b37f8===void 0x0?void 0x0:_0x2b37f8[_0x57a83e(0x2ad)])!==null&&_0x594d78!==void 0x0?_0x594d78:VerticalAlign[_0x57a83e(0x39e)],'ha':(_0x569b65=_0x2b37f8===null||_0x2b37f8===void 0x0?void 0x0:_0x2b37f8[_0x57a83e(0x444)])!==null&&_0x569b65!==void 0x0?_0x569b65:HorizontalAlign['LEFT'],'doc':_0xc68ca};_0xd59bfa['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x4402d7,'subUnitId':_0x27592b,'shapeId':_0x144f2e,'shapeData':{'shapeText':{'isHorizontal':(_0x36ae95=_0x2b37f8===null||_0x2b37f8===void 0x0?void 0x0:_0x2b37f8[_0x57a83e(0x5c6)])!==null&&_0x36ae95!==void 0x0?_0x36ae95:!![],'dataModel':_0x33448d}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x3912cc=_0x2b37f8===null||_0x2b37f8===void 0x0?void 0x0:_0x2b37f8['isHorizontal'])!==null&&_0x3912cc!==void 0x0?_0x3912cc:!![],'dataModel':_0x27e65c['current']}}}});};}else _0x5e0adf[_0x4bc544(0x59d)](_0x40e431,null);},[_0x5e0adf,_0x4e74d7,_0x1095d0]),useEffect(()=>{const _0x248127=_0x6e5854;if(!_0x5e0adf||!_0x4e74d7)return;return _0x41c041[_0x248127(0x650)](!![]),_0x30c6dd(),_0x5dbaf7[_0x248127(0x5d0)]=requestAnimationFrame(()=>{const _0x2d3f5d=_0x248127;_0x41c041['focus'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x3b5664(),_0x19b4be(),_0x5dbaf7[_0x2d3f5d(0x5d0)]=null;}),()=>{const _0x25f8b8=_0x248127;_0x5dbaf7[_0x25f8b8(0x5d0)]!==null&&(cancelAnimationFrame(_0x5dbaf7['current']),_0x5dbaf7[_0x25f8b8(0x5d0)]=null),_0x2fabdb(),_0x41c041[_0x25f8b8(0x650)](!![]);};},[_0x5e0adf,_0x4e74d7,_0x41c041,_0x30c6dd,_0x3b5664,_0x19b4be,_0x2fabdb]),useEffect(()=>{const _0x5ab0d2=_0x6e5854;if(!_0x5e0adf)return;const _0x1b15c8=_0xd59bfa[_0x5ab0d2(0x519)](_0x2a83a3=>{const _0x100e87=_0x5ab0d2;if(_0x2a83a3['id']===RichTextEditingMutation['id']){if(_0x2a83a3['params'][_0x100e87(0x20a)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x4e74d7){if(!_0x4e74d7['visible'])_0xdd3401['setEditing']({..._0x4e74d7,'visible':!![]});else _0x30c6dd();}}}if(_0x2a83a3['id']===SetShapeTextVerticalAlignCommand['id'])_0x19b4be(!![]);});return()=>{const _0x535c2b=_0x5ab0d2;_0x1b15c8[_0x535c2b(0x23f)]();};},[_0x5e0adf,_0x30c6dd,_0x4e74d7,_0x19b4be,_0xdd3401]),useEffect(()=>{return _0x30c6dd(),_0x19b4be(),()=>{_0x2fabdb();};},[_0x30c6dd,_0x19b4be,_0x2fabdb]);const _0x52b9d1=useMemo(()=>{const _0x21d2ca=_0x6e5854;var _0x40d5ea;const _0x12864e=(_0x40d5ea=_0x504b59())!==null&&_0x40d5ea!==void 0x0?_0x40d5ea:{'left':0x0,'top':0x0,'width':_0x4fbcf7/_0xf28ce2,'height':_0x54ee4b/_0x2b09c4},_0x1b64a2=_0x12864e[_0x21d2ca(0x378)]*_0xf28ce2,_0x3df927=_0x12864e[_0x21d2ca(0x537)]*_0x2b09c4,_0x305ce1=_0x12864e['width']*_0xf28ce2;if(_0x3e542a[_0x21d2ca(0x54a)])return{'top':_0x3df927+_0x3e542a[_0x21d2ca(0x69b)],'left':_0x1b64a2,'width':_0x305ce1,'height':_0x3e542a[_0x21d2ca(0x567)]};return{'top':_0x3df927,'left':_0x1b64a2,'width':_0x305ce1,'height':_0x3e542a['editorHeight']};},[_0x3e542a,_0x504b59,_0x4fbcf7,_0x54ee4b,_0xf28ce2,_0x2b09c4]),_0x2deada=useMemo(()=>{const _0x3394cd=_0x6e5854,_0x2d7762=_0x535e3e(),_0x502e62=_0x2d7762===null||_0x2d7762===void 0x0?void 0x0:_0x2d7762[_0x3394cd(0x27b)];if(_0x502e62)return _0x502e62||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x535e3e]);return jsx(_0x6e5854(0x56e),{'ref':_0x46faab,'data-u-comp':'shape-text-editor','className':_0x6e5854(0x221),'style':{'transform':_0x6e5854(0x3bb)+_0x2deada[_0x6e5854(0x3bd)]+'deg)\x20scaleY('+(_0x2deada['flipY']?-0x1:0x1)+')'},'children':jsx(_0x6e5854(0x56e),{'ref':_0x962aa7,'className':_0x6e5854(0x559),'data-u-comp':_0x6e5854(0x651),'style':_0x52b9d1,'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(_0x349d83,_0x582819,_0x4495a6,_0x34be23){const _0x4482c8=_0x35ea10,{scaleX:_0xcae3a4,scaleY:_0xeb7f5a}=_0x4495a6['getAncestorScale'](),{startColumn:_0xf077d6,startRow:_0xd4fa2b,xSplit:_0x444398,ySplit:_0x101e0c}=_0x34be23[_0x4482c8(0x3f7)][_0x4482c8(0x235)](),_0x3768c3=_0x4495a6['getViewport'](SHEET_VIEWPORT_KEY['VIEW_MAIN']),_0x1243f0=_0x4495a6[_0x4482c8(0x43b)](SHEET_VIEWPORT_KEY[_0x4482c8(0x2ec)]),_0x2a60f9=_0x4495a6['getViewport'](SHEET_VIEWPORT_KEY['VIEW_MAIN_TOP']),_0x10ffeb=_0x4495a6[_0x4482c8(0x43b)](SHEET_VIEWPORT_KEY[_0x4482c8(0x5d1)]),{rowHeaderWidth:_0x1fa153,columnHeaderHeight:_0x2782c7}=_0x34be23,_0x11029f=_0x34be23[_0x4482c8(0x4f8)](_0xd4fa2b)+_0x2782c7,_0x3bcc65=_0x34be23['colStartX'](_0xf077d6)+_0x1fa153,_0x33d5be=_0x34be23[_0x4482c8(0x4f8)](_0xd4fa2b-_0x101e0c)+_0x2782c7,_0x205d2c=_0x34be23[_0x4482c8(0x385)](_0xf077d6-_0x444398)+_0x1fa153,_0x13a8e1=[],_0x2f58be=(_0x22434b,_0x2b60de,_0x48a4c3)=>{if(!_0x22434b)return null;const {viewportScrollX:_0x5dd0b1,viewportScrollY:_0x2e9f7c}=_0x22434b;let _0x2541ec,_0x3ffc08;if(_0x2b60de)_0x2541ec=(_0x349d83-(_0x205d2c-_0x1fa153))*_0xcae3a4;else _0x2541ec=(_0x349d83-_0x5dd0b1)*_0xcae3a4;if(_0x48a4c3)_0x3ffc08=(_0x582819-(_0x33d5be-_0x2782c7))*_0xeb7f5a;else _0x3ffc08=(_0x582819-_0x2e9f7c)*_0xeb7f5a;return{'domX':_0x2541ec,'domY':_0x3ffc08};},_0x409020=_0x349d83<_0x3bcc65&&_0x444398>0x0,_0x55d5d0=_0x582819<_0x11029f&&_0x101e0c>0x0,_0x211320=_0x349d83>=_0x3bcc65||_0x444398===0x0,_0x1057a7=_0x582819>=_0x11029f||_0x101e0c===0x0;if(_0x409020&&_0x55d5d0&&_0x1243f0){const _0x4c8555=_0x2f58be(_0x1243f0,!![],!![]);if(_0x4c8555)_0x13a8e1['push'](_0x4c8555);}if(_0x55d5d0&&_0x211320&&_0x2a60f9){const _0xbf8cd4=_0x2f58be(_0x2a60f9,![],!![]);if(_0xbf8cd4)_0x13a8e1[_0x4482c8(0x5f8)](_0xbf8cd4);}if(_0x409020&&_0x1057a7&&_0x10ffeb){const _0x4268bb=_0x2f58be(_0x10ffeb,!![],![]);if(_0x4268bb)_0x13a8e1[_0x4482c8(0x5f8)](_0x4268bb);}if(_0x211320&&_0x1057a7&&_0x3768c3){const _0x30b3eb=_0x2f58be(_0x3768c3,![],![]);if(_0x30b3eb)_0x13a8e1[_0x4482c8(0x5f8)](_0x30b3eb);}if(_0x13a8e1[_0x4482c8(0x551)]===0x0){var _0x1d4d68,_0x469adc;return{'domX':(_0x349d83-((_0x1d4d68=_0x3768c3===null||_0x3768c3===void 0x0?void 0x0:_0x3768c3['viewportScrollX'])!==null&&_0x1d4d68!==void 0x0?_0x1d4d68:0x0))*_0xcae3a4,'domY':(_0x582819-((_0x469adc=_0x3768c3===null||_0x3768c3===void 0x0?void 0x0:_0x3768c3[_0x4482c8(0x292)])!==null&&_0x469adc!==void 0x0?_0x469adc:0x0))*_0xeb7f5a};}let _0x46e1bb=_0x13a8e1[0x0][_0x4482c8(0x689)],_0x31bf10=_0x13a8e1[0x0][_0x4482c8(0x2da)];for(const _0x4ea435 of _0x13a8e1){if(_0x4ea435['domX']>_0x46e1bb)_0x46e1bb=_0x4ea435[_0x4482c8(0x689)];if(_0x4ea435[_0x4482c8(0x2da)]>_0x31bf10)_0x31bf10=_0x4ea435[_0x4482c8(0x2da)];}return{'domX':_0x46e1bb,'domY':_0x31bf10};}function calcShapePosition(_0x4cde10,_0x371dcc,_0x2b7a29,_0x13f05a,_0x3a11cd,_0x3ef2fe,_0x15d7e6){const _0x3504e3=_0x35ea10,{scaleX:_0x5bc407,scaleY:_0x4445f6}=_0x3ef2fe[_0x3504e3(0x583)](),{domX:_0x3dc42f,domY:_0x3a7684}=calcBestDOMPositionForFreezeZones(_0x4cde10,_0x371dcc,_0x3ef2fe,_0x15d7e6);return{'left':_0x3dc42f,'top':_0x3a7684,'width':_0x2b7a29*_0x5bc407,'height':_0x13f05a*_0x4445f6,'angle':_0x3a11cd,'scaleX':_0x5bc407,'scaleY':_0x4445f6};}function useShapePosition(_0x44c712){const _0x58e067=_0x35ea10,{editingParams:_0x2cf904,scene:_0x3771c0,skeleton:_0x32615b,getShapeTransform:_0xcf95e3}=_0x44c712,[_0x1f9be2,_0xeb6aeb]=useState(DEFAULT_HIDDEN_POSITION),_0x30e5c2=useRef(_0x1f9be2);_0x30e5c2[_0x58e067(0x5d0)]=_0x1f9be2;const _0x84a116=useCallback(()=>{const _0x17d532=_0x58e067;if(!_0x2cf904||!_0x3771c0||!_0x32615b){if(_0x30e5c2[_0x17d532(0x5d0)]!==DEFAULT_HIDDEN_POSITION)_0xeb6aeb(DEFAULT_HIDDEN_POSITION);return;}const _0x5ab1c1=_0xcf95e3();if(!_0x5ab1c1){if(_0x30e5c2[_0x17d532(0x5d0)]!==DEFAULT_HIDDEN_POSITION)_0xeb6aeb(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x42f380,top:_0x26f724,width:_0x4b7abc,height:_0x11b18c,angle:_0x3f6f47}=_0x5ab1c1;if(!_0x2cf904[_0x17d532(0x218)]){const {scaleX:_0x4f8d7d,scaleY:_0x8ebe31}=_0x3771c0[_0x17d532(0x583)]();_0xeb6aeb({'left':-0x270f,'top':-0x270f,'width':_0x4b7abc*_0x4f8d7d,'height':_0x11b18c*_0x8ebe31,'angle':0x0,'scaleX':_0x4f8d7d,'scaleY':_0x8ebe31});return;}_0xeb6aeb(calcShapePosition(_0x42f380,_0x26f724,_0x4b7abc,_0x11b18c,_0x3f6f47,_0x3771c0,_0x32615b));},[_0x2cf904,_0x3771c0,_0x32615b,_0xcf95e3]);return useEffect(()=>{_0x84a116();},[_0x2cf904,_0x84a116]),{'position':_0x1f9be2,'updatePosition':_0x84a116};}const ShapePositionWrapper=memo(_0x24e19f=>{const _0x4b4dd0=_0x35ea10,{children:_0x3cc534,onPositionUpdate:_0xf52a34}=_0x24e19f,_0x4aa034=useRef(null),_0x43e14a=useDependency(ShapeTextEditingService),_0x103b08=useDependency(IRenderManagerService),_0x13bd70=useObservable(_0x43e14a['editingParams$']),_0x3cd3cb=useMemo(()=>{const _0xc7d61f=_0x33ec;if(!_0x13bd70)return null;return _0x103b08[_0xc7d61f(0x43a)](_0x13bd70[_0xc7d61f(0x20a)]);},[_0x13bd70,_0x103b08]),_0x27378c=useMemo(()=>{var _0x3a532c;return(_0x3a532c=_0x3cd3cb===null||_0x3cd3cb===void 0x0?void 0x0:_0x3cd3cb['scene'])!==null&&_0x3a532c!==void 0x0?_0x3a532c:null;},[_0x3cd3cb]),{position:_0x568af4,updatePosition:_0x35254c}=useShapePosition({'editingParams':_0x13bd70,'scene':_0x27378c,'skeleton':useMemo(()=>{const _0x4de597=_0x33ec;var _0x3a67c1,_0x120485;if(!_0x13bd70||!_0x3cd3cb)return null;return(_0x3a67c1=(_0x120485=_0x3cd3cb['with'](SheetSkeletonManagerService)[_0x4de597(0x666)](_0x13bd70[_0x4de597(0x529)]))===null||_0x120485===void 0x0?void 0x0:_0x120485['skeleton'])!==null&&_0x3a67c1!==void 0x0?_0x3a67c1:null;},[_0x13bd70,_0x3cd3cb]),'getShapeTransform':useCallback(()=>{const _0x1759b7=_0x33ec;if(!_0x13bd70||!_0x27378c)return null;const _0x312e69=_0x13bd70[_0x1759b7(0x32c)],_0x8fabff=_0x27378c[_0x1759b7(0x486)](_0x312e69);if(_0x8fabff instanceof DrawingShape)return{'left':_0x8fabff[_0x1759b7(0x378)],'top':_0x8fabff[_0x1759b7(0x537)],'width':_0x8fabff['width'],'height':_0x8fabff[_0x1759b7(0x372)],'angle':_0x8fabff[_0x1759b7(0x3bd)]};return null;},[_0x13bd70,_0x27378c])}),_0x1d74d0=useCallback(()=>{const _0x18b325=_0x33ec,_0x47de0f=_0x4aa034['current'];if(!_0x47de0f)return;_0x47de0f[_0x18b325(0x4ac)][_0x18b325(0x378)]=_0x568af4[_0x18b325(0x378)]+'px',_0x47de0f[_0x18b325(0x4ac)][_0x18b325(0x537)]=_0x568af4[_0x18b325(0x537)]+'px',_0x47de0f[_0x18b325(0x4ac)][_0x18b325(0x246)]=_0x568af4['width']+'px',_0x47de0f[_0x18b325(0x4ac)]['height']=_0x568af4[_0x18b325(0x372)]+'px';},[_0x568af4]);return useEffect(()=>{const _0x1aeabf=_0x33ec;_0x1d74d0(),_0xf52a34===null||_0xf52a34===void 0x0||_0xf52a34({'width':_0x568af4[_0x1aeabf(0x246)],'height':_0x568af4[_0x1aeabf(0x372)],'scaleX':_0x568af4[_0x1aeabf(0x61b)],'scaleY':_0x568af4[_0x1aeabf(0x440)]});},[_0x568af4,_0x1d74d0,_0xf52a34]),useEffect(()=>{const _0x34a555=_0x33ec;if(!_0x27378c)return;const _0x34cf7d=_0x27378c[_0x34a555(0x43b)](SHEET_VIEWPORT_KEY[_0x34a555(0x290)]);if(!_0x34cf7d)return;const _0x5b99ac=_0x34cf7d[_0x34a555(0x3e8)][_0x34a555(0x1f9)](()=>{_0x35254c();});return()=>{_0x5b99ac['unsubscribe']();};},[_0x27378c,_0x35254c]),useEffect(()=>{const _0x51368f=_0x33ec;if(!_0x13bd70||!_0x27378c)return;const _0x11018c=_0x13bd70[_0x51368f(0x32c)],_0x55e7ac=_0x27378c[_0x51368f(0x486)](_0x11018c);if(_0x55e7ac instanceof DrawingShape){const _0x5761bf=_0x55e7ac['onTransformChange$'][_0x51368f(0x1f9)](()=>{_0x35254c();});return()=>{const _0x3b9dc4=_0x51368f;_0x5761bf[_0x3b9dc4(0x360)]();};}},[_0x13bd70,_0x27378c,_0x35254c]),jsx(_0x4b4dd0(0x56e),{'ref':_0x4aa034,'data-u-comp':_0x4b4dd0(0x429),'className':'univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','style':useMemo(()=>({'left':_0x568af4[_0x4b4dd0(0x378)],'top':_0x568af4[_0x4b4dd0(0x537)],'width':_0x568af4[_0x4b4dd0(0x246)],'height':_0x568af4[_0x4b4dd0(0x372)],'pointerEvents':(_0x13bd70===null||_0x13bd70===void 0x0?void 0x0:_0x13bd70[_0x4b4dd0(0x218)])?'auto':_0x4b4dd0(0x42a)}),[_0x568af4,_0x13bd70===null||_0x13bd70===void 0x0?void 0x0:_0x13bd70['visible']]),'children':_0x3cc534});});ShapePositionWrapper['displayName']=_0x35ea10(0x32e);const ShapeTextEditorContainer=memo(()=>{const _0x1b48dc=_0x35ea10,_0x5d3d69=useObservable(useDependency(ShapeTextEditingService)[_0x1b48dc(0x2d5)]),[_0x215975,_0x44f44a]=useState({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x113677=useCallback(_0x177a68=>{const _0x8e39ec=_0x1b48dc;_0x44f44a({'width':_0x177a68[_0x8e39ec(0x246)],'height':_0x177a68[_0x8e39ec(0x372)],'scaleX':_0x177a68[_0x8e39ec(0x61b)],'scaleY':_0x177a68[_0x8e39ec(0x440)]});},[]);if(!(_0x5d3d69===null||_0x5d3d69===void 0x0?void 0x0:_0x5d3d69[_0x1b48dc(0x218)]))return null;return jsx(ShapePositionWrapper,{'onPositionUpdate':_0x113677,'children':jsx(ShapeEditor,{'containerWidth':_0x215975[_0x1b48dc(0x246)],'containerHeight':_0x215975['height'],'scaleX':_0x215975[_0x1b48dc(0x61b)],'scaleY':_0x215975[_0x1b48dc(0x440)]})});});ShapeTextEditorContainer['displayName']=_0x35ea10(0x5cc);let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends Plugin{constructor(_0x2e5e86=defaultPluginConfig,_0x4bb01c,_0x227d7b,_0x36a273,_0x53f8a1){const _0x1d0317=_0x35ea10;super(),this[_0x1d0317(0x2b5)]=_0x2e5e86,this[_0x1d0317(0x5a0)]=_0x4bb01c,this[_0x1d0317(0x4d1)]=_0x227d7b,this[_0x1d0317(0x40f)]=_0x36a273,this[_0x1d0317(0x481)]=_0x53f8a1;const {..._0x122b00}=merge({},defaultPluginConfig,this['_config']);this[_0x1d0317(0x40f)][_0x1d0317(0x665)](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x122b00),this[_0x1d0317(0x669)]();}['onRendered'](){touchDependencies(this['_injector'],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x35ea10(0x491)](){const _0x50ab52=_0x35ea10;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x50ab52(0x450)](_0x43b7a7=>this[_0x50ab52(0x5a0)][_0x50ab52(0x540)](_0x43b7a7)),touchDependencies(this[_0x50ab52(0x5a0)],[[SheetShapeClipboardController]]),this[_0x50ab52(0x481)][_0x50ab52(0x2ac)](UniverInstanceType['UNIVER_SHEET'],[SheetBasicShapeConnectionPointController]),this[_0x50ab52(0x481)][_0x50ab52(0x2ac)](UniverInstanceType[_0x50ab52(0x370)],[SheetShapeAdjustController]),this[_0x50ab52(0x481)]['registerRenderModule'](UniverInstanceType[_0x50ab52(0x370)],[ImageClipAdjustController]),this['_renderManagerService'][_0x50ab52(0x2ac)](UniverInstanceType[_0x50ab52(0x370)],[SheetShapeConnectorController]),this[_0x50ab52(0x481)][_0x50ab52(0x2ac)](UniverInstanceType[_0x50ab52(0x370)],[ShapeTextEditingRenderController]);}[_0x35ea10(0x4e4)](){const _0x33eee5=_0x35ea10,_0x14a5f0=this[_0x33eee5(0x5a0)];_0x14a5f0[_0x33eee5(0x653)](ComponentManager)[_0x33eee5(0x307)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]['forEach'](_0x3ebcbd=>_0x14a5f0[_0x33eee5(0x540)](_0x3ebcbd)),touchDependencies(this[_0x33eee5(0x5a0)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x35ea10(0x669)](){const _0xb79fa4=_0x35ea10;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation]['forEach'](_0x555ae1=>this[_0xb79fa4(0x44f)](this[_0xb79fa4(0x4d1)]['registerCommand'](_0x555ae1)));}};_defineProperty(UniverSheetsShapeUIPlugin,_0x35ea10(0x2b6),UniverInstanceType[_0x35ea10(0x370)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x35ea10(0x270),_0x35ea10(0x273)),_defineProperty(UniverSheetsShapeUIPlugin,_0x35ea10(0x26f),name),_defineProperty(UniverSheetsShapeUIPlugin,_0x35ea10(0x426),version),UniverSheetsShapeUIPlugin=__decorate([DependentOn(UniverSheetsDrawingUIPlugin,UniverSheetsShapePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,ICommandService),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IRenderManagerService)],UniverSheetsShapeUIPlugin);export{SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextVerticalAlignCommand,ShapeDocAlignCommand,SheetsShapeUIController,UniverSheetsShapeUIPlugin,UpdateShapeDataCommand};
|
|
1
|
+
const _0x304ba4=_0x20cb;(function(_0xb99ec9,_0x13c7a8){const _0x53493d=_0x20cb,_0x510d3c=_0xb99ec9();while(!![]){try{const _0x315108=-parseInt(_0x53493d(0x290))/0x1*(parseInt(_0x53493d(0x5c7))/0x2)+parseInt(_0x53493d(0x2fe))/0x3*(-parseInt(_0x53493d(0x605))/0x4)+-parseInt(_0x53493d(0x4e1))/0x5+-parseInt(_0x53493d(0x363))/0x6*(-parseInt(_0x53493d(0x477))/0x7)+-parseInt(_0x53493d(0x2e7))/0x8*(-parseInt(_0x53493d(0x5e7))/0x9)+-parseInt(_0x53493d(0x536))/0xa+parseInt(_0x53493d(0x3db))/0xb*(parseInt(_0x53493d(0x1be))/0xc);if(_0x315108===_0x13c7a8)break;else _0x510d3c['push'](_0x510d3c['shift']());}catch(_0x3b91cf){_0x510d3c['push'](_0x510d3c['shift']());}}}(_0x517c,0x66a80));import{InsertShapeCommand as _0x3a2e35,InsertSheetsShapeMutation as _0x63ebfb,RemoveSheetsShapeMutation as _0x3e3b4e,SetShapeDrawingDataCommand as _0x54dd4a,SetSheetsShapeRotateCommand as _0x5b481b,SetSheetsShapeTextVerticalToggleCommand as _0x22491e,SheetsShapeService as _0x3538a1,ToggleSheetsShapeFlipCommand as _0x3faeb6,UniverSheetsShapePlugin as _0x2202df,UpdateConnectorRelationCommand as _0x190139,UpdateLineShapeResizeCommand as _0x59dd52,UpdateSheetsShapeDataMutation as _0xae2422}from'@univerjs-pro/sheets-shape';import{CommandType as _0x1076e4,DependentOn as _0x10f1ec,Disposable as _0x1a987c,DocumentDataModel as _0x5e8b27,DrawingTypeEnum as _0x2375be,FOCUSING_COMMON_DRAWINGS as _0x299b38,FOCUSING_PANEL_EDITOR as _0x37c9b2,FOCUSING_SHAPE_TEXT_EDITOR as _0x1f1e07,HorizontalAlign as _0x1909c6,ICommandService as _0xc97706,IConfigService as _0x551299,IContextService as _0x3c1d80,IURLImageService as _0x5cad10,IUndoRedoService as _0x3be54c,IUniverInstanceService as _0x10d47e,Inject as _0x28dee4,Injector as _0x57a8c3,LocaleService as _0x164f0a,Plugin as _0x4a1034,ThemeService as _0x5d9be1,Tools as _0x22dbf6,UniverInstanceType as _0x2fb0a4,VerticalAlign as _0x196cf7,WrapStrategy as _0x14a694,createInternalEditorID as _0x1d6af9,generateRandomId as _0x3617ae,merge as _0xce10db,toDisposable as _0x1a9690,touchDependencies as _0x2bb472}from'@univerjs/core';import{CopySheetCommand as _0x18069b,RemoveSheetCommand as _0x553f64,SheetInterceptorService as _0x90a7c8,SheetPermissionCheckController as _0x49900c,SheetSkeletonService as _0x131cb6,SheetsSelectionsService as _0x2e3941,WorkbookEditablePermission as _0x3ad3d7,WorksheetEditPermission as _0x3420d2,attachRangeWithCoord as _0x231233,discreteRangeToRange as _0x465804,getSheetCommandTarget as _0x533606}from'@univerjs/sheets';import{DrawingApplyType as _0x3ab956,ISheetDrawingService as _0x486e0c,RemoveSheetDrawingCommand as _0x428f42,SetDrawingApplyMutation as _0x280ce4,transformToDrawingPosition as _0x423ff2}from'@univerjs/sheets-drawing';import{BehaviorSubject as _0x96f454,EMPTY as _0x2ba775,Observable as _0x109bfb,map as _0x3f504f,of as _0x23cc49,startWith as _0x53f4b3,switchMap as _0x29c65f}from'rxjs';import{IDrawingManagerService as _0x5873e9,IImageIoService as _0x2d41e9,getDrawingShapeKeyByDrawingSearch as _0x4ac3ac,getImageSize as _0x3e3f96}from'@univerjs/drawing';import{CURSOR_TYPE as _0x2f7837,Circle as _0x2542c4,DRAWING_OBJECT_LAYER_INDEX as _0x395f9d,DocumentSkeleton as _0x48a4c7,DocumentViewModel as _0x3f3f8f,Documents as _0x3abb63,IRenderManagerService as _0x1dfd06,Image as _0x3b74da,RENDER_CLASS_TYPE as _0x47e743,SHEET_VIEWPORT_KEY as _0x58f155,Shape as _0x12f371,Transform as _0x59cf9b,VERTICAL_ROTATE_ANGLE as _0x16f95d,Vector2 as _0x1e0d95}from'@univerjs/engine-render';import{AlignOperationCommand as _0x1063ea,BreakLineCommand as _0xda22ed,IEditorService as _0x10dd78,ResetInlineFormatTextBackgroundColorCommand as _0x2a0b2c,SetInlineFormatTextBackgroundColorCommand as _0x2461bb,useEditor as _0x2dfc38,useIsFocusing as _0x5655a0,useKeyboardEvent as _0x47b23f,useLeftAndRightArrow as _0x28b092}from'@univerjs/docs-ui';import{MoreDownIcon as _0x5696b8,PaintBucketDoubleIcon as _0x18cbf9,ShapeAccentBorderCallout1Icon as _0x27573b,ShapeAccentBorderCallout2Icon as _0x495819,ShapeAccentBorderCallout3Icon as _0x43cc6b,ShapeAccentCallout1Icon as _0x386e82,ShapeAccentCallout2Icon as _0x380b32,ShapeAccentCallout3Icon as _0x4c54cb,ShapeActionButtonBackPreviousIcon as _0x3fff69,ShapeActionButtonBeginningIcon as _0x3ba68b,ShapeActionButtonBlankIcon as _0x3ad7d8,ShapeActionButtonDocumentIcon as _0x4e7bda,ShapeActionButtonEndIcon as _0x2c9214,ShapeActionButtonForwardNextIcon as _0x551210,ShapeActionButtonHelpIcon as _0x48f01e,ShapeActionButtonHomeIcon as _0x5f448a,ShapeActionButtonInformationIcon as _0xfbeb0,ShapeActionButtonMovieIcon as _0x316bce,ShapeActionButtonReturnIcon as _0xaa4ca6,ShapeActionButtonSoundIcon as _0x4b9921,ShapeArcIcon as _0xc7f9b1,ShapeBentArrowIcon as _0x5b7703,ShapeBentConnector3Arrow1Icon as _0x238382,ShapeBentConnector3Arrow2Icon as _0x14957d,ShapeBentConnector3Icon as _0x8ede93,ShapeBentUpArrowIcon as _0x1d69a7,ShapeBevelIcon as _0x31f5ad,ShapeBlockArcIcon as _0x4058d4,ShapeBorderCallout1Icon as _0x1755ce,ShapeBorderCallout2Icon as _0x3844e1,ShapeBorderCallout3Icon as _0x181d2d,ShapeBracePairIcon as _0x2a6925,ShapeBracketPairIcon as _0x440d66,ShapeCallout1Icon as _0x48f097,ShapeCallout2Icon as _0x1e1446,ShapeCallout3Icon as _0x3f2bc4,ShapeCanIcon as _0x5afd98,ShapeChartPlusIcon as _0x257d6b,ShapeChartStarIcon as _0xcefe11,ShapeChartXIcon as _0x312cb1,ShapeChevronIcon as _0x4f3f30,ShapeChordIcon as _0x2595a2,ShapeCircularArrowIcon as _0x354cb2,ShapeCloudCalloutIcon as _0x1a6601,ShapeCloudIcon as _0x46cb5c,ShapeCornerIcon as _0x16413a,ShapeCornerTabsIcon as _0x498c35,ShapeCubeIcon as _0x49a7fa,ShapeCurvedConnector3Arrow1Icon as _0x5d55a6,ShapeCurvedConnector3Arrow2Icon as _0x247476,ShapeCurvedConnector3Icon as _0x54a2d8,ShapeCurvedDownArrowIcon as _0x5e7b99,ShapeCurvedLeftArrowIcon as _0x5f30b8,ShapeCurvedRightArrowIcon as _0x171c25,ShapeCurvedUpArrowIcon as _0x2090b2,ShapeDecagonIcon as _0x342675,ShapeDiagStripeIcon as _0x4d34dc,ShapeDiamondIcon as _0x49178e,ShapeDodecagonIcon as _0x3840ef,ShapeDonutIcon as _0xae419c,ShapeDoubleWaveIcon as _0x3ed007,ShapeDownArrowCalloutIcon as _0x895a4e,ShapeDownArrowIcon as _0x18e657,ShapeEllipseIcon as _0x6e7d7a,ShapeEllipseRibbon2Icon as _0x5c9ca1,ShapeEllipseRibbonIcon as _0x209a4f,ShapeFlowChartAlternateProcessIcon as _0x559c17,ShapeFlowChartCollateIcon as _0x578481,ShapeFlowChartConnectorIcon as _0x534f12,ShapeFlowChartDecisionIcon as _0x3ff0fc,ShapeFlowChartDelayIcon as _0x8dfe19,ShapeFlowChartDisplayIcon as _0x1a0f88,ShapeFlowChartDocumentIcon as _0x5831d7,ShapeFlowChartExtractIcon as _0x380112,ShapeFlowChartInputOutputIcon as _0x3af9a2,ShapeFlowChartInternalStorageIcon as _0x95caef,ShapeFlowChartMagneticDiskIcon as _0x53b4bf,ShapeFlowChartMagneticDrumIcon as _0x225ca1,ShapeFlowChartMagneticTapeIcon as _0x5be75d,ShapeFlowChartManualInputIcon as _0x1f2999,ShapeFlowChartManualOperationIcon as _0x3affe5,ShapeFlowChartMergeIcon as _0x4ca63d,ShapeFlowChartMultidocumentIcon as _0x48a69c,ShapeFlowChartOfflineStorageIcon as _0x544e23,ShapeFlowChartOffpageConnectorIcon as _0x40222c,ShapeFlowChartOnlineStorageIcon as _0x38516a,ShapeFlowChartOrIcon as _0x34fd05,ShapeFlowChartPredefinedProcessIcon as _0xdc9154,ShapeFlowChartPreparationIcon as _0x709512,ShapeFlowChartProcessIcon as _0x521774,ShapeFlowChartPunchedCardIcon as _0x49d5ab,ShapeFlowChartPunchedTapeIcon as _0x1003d7,ShapeFlowChartSortIcon as _0x5ec589,ShapeFlowChartSummingJunctionIcon as _0x35174e,ShapeFlowChartTerminatorIcon as _0x58731b,ShapeFolderCornerIcon as _0x10e0d1,ShapeFrameIcon as _0x27eaaf,ShapeFunnelIcon as _0x4512e1,ShapeGear6Icon as _0x20c89d,ShapeGear9Icon as _0x4dfbc1,ShapeHalfFrameIcon as _0x312ed1,ShapeHeartIcon as _0x202a09,ShapeHeptagonIcon as _0xb6cc6c,ShapeHexagonIcon as _0x54cf50,ShapeHomePlateIcon as _0x1fd350,ShapeHorizontalScrollIcon as _0x14ab68,ShapeIcon as _0x58013a,ShapeIrregularSeal1Icon as _0x19b90b,ShapeIrregularSeal2Icon as _0x3456cf,ShapeLeftArrowCalloutIcon as _0x74a08e,ShapeLeftArrowIcon as _0x7d308c,ShapeLeftBraceIcon as _0x39a47d,ShapeLeftBracketIcon as _0x48d27d,ShapeLeftCircularArrowIcon as _0x148d5d,ShapeLeftRightArrowCalloutIcon as _0x2301fa,ShapeLeftRightArrowIcon as _0x10366c,ShapeLeftRightCircularArrowIcon as _0x4c69de,ShapeLeftRightRibbonIcon as _0x3d7c70,ShapeLeftRightUpArrowIcon as _0x66324e,ShapeLeftUpArrowIcon as _0x45eccc,ShapeLightningBoltIcon as _0x515baf,ShapeLineIcon as _0xdc7286,ShapeLineInvIcon as _0x21f82f,ShapeMathDivideIcon as _0x4d5f95,ShapeMathEqualIcon as _0x784406,ShapeMathMinusIcon as _0x21e3f3,ShapeMathMultiplyIcon as _0x12e447,ShapeMathNotEqualIcon as _0x45079c,ShapeMathPlusIcon as _0x1788ab,ShapeMoonIcon as _0x321081,ShapeNoSmokingIcon as _0x1fda60,ShapeNonIsoscelesTrapezoidIcon as _0xbecf6b,ShapeNotchedRightArrowIcon as _0x3a3cc9,ShapeOctagonIcon as _0x2af914,ShapeParallelogramIcon as _0x1082d8,ShapePentagonIcon as _0x2d70d5,ShapePieIcon as _0x1f144d,ShapePieWedgeIcon as _0x4181d9,ShapePlaqueIcon as _0x530965,ShapePlaqueTabsIcon as _0x2098b7,ShapePlusIcon as _0x16e051,ShapeQuadArrowCalloutIcon as _0x4a48da,ShapeQuadArrowIcon as _0xc7d57b,ShapeRectIcon as _0x3fc2e4,ShapeRectTextboxHorizontalIcon as _0x592bb4,ShapeRectTextboxVerticalIcon as _0x4755a8,ShapeRibbon2Icon as _0x583db2,ShapeRibbonIcon as _0x165dc9,ShapeRightArrowCalloutIcon as _0x628819,ShapeRightArrowIcon as _0x38cec3,ShapeRightBraceIcon as _0x322c70,ShapeRightBracketIcon as _0x13871e,ShapeRound1RectIcon as _0x511f04,ShapeRound2DiagRectIcon as _0x3d7b16,ShapeRound2SameRectIcon as _0x536989,ShapeRoundRectIcon as _0x564b85,ShapeRtTriangleIcon as _0x1f3f3d,ShapeSmileyFaceIcon as _0x2c2e57,ShapeSnip1RectIcon as _0x256318,ShapeSnip2DiagRectIcon as _0x28f67,ShapeSnip2SameRectIcon as _0x10eb2b,ShapeSnipRoundRectIcon as _0x3703f7,ShapeSquareTabsIcon as _0x157008,ShapeStar10Icon as _0x19d004,ShapeStar12Icon as _0x42e479,ShapeStar16Icon as _0x474243,ShapeStar24Icon as _0x180246,ShapeStar32Icon as _0x45a0a9,ShapeStar4Icon as _0x7c0710,ShapeStar5Icon as _0x347d68,ShapeStar6Icon as _0x3e72a8,ShapeStar7Icon as _0x3a58d2,ShapeStar8Icon as _0xad43e,ShapeStraightConnector1Icon as _0x5f19e4,ShapeStraightConnector2Icon as _0x22d666,ShapeStripedRightArrowIcon as _0x122580,ShapeSunIcon as _0x3b79e0,ShapeSwooshArrowIcon as _0x5d8995,ShapeTeardropIcon as _0x1beeeb,ShapeTrapezoidIcon as _0x4fa25a,ShapeTriangleIcon as _0x269840,ShapeUpArrowCalloutIcon as _0x4bd02b,ShapeUpArrowIcon as _0x52aa57,ShapeUpDownArrowCalloutIcon as _0x37e111,ShapeUpDownArrowIcon as _0x2d61ee,ShapeUturnArrowIcon as _0x23eacf,ShapeVerticalScrollIcon as _0x40db86,ShapeWaveIcon as _0x1de3f1,ShapeWedgeEllipseCalloutIcon as _0x5a3c11,ShapeWedgeRectCalloutIcon as _0x555c7d,ShapeWedgeRoundRectCalloutIcon as _0x10e5e6}from'@univerjs/icons';import{COPY_TYPE as _0x633af2,ISheetClipboardService as _0x320ce5,PREDEFINED_HOOK_NAME as _0x18e015,SheetCanvasPopManagerService as _0x8d657e,SheetScrollManagerService as _0x4888cb,SheetSkeletonManagerService as _0x23f58f,deriveStateFromActiveSheet$ as _0x405dc1,getCurrentRangeDisable$ as _0x5f25d8,getViewportByCell as _0x344941}from'@univerjs/sheets-ui';import{COLOR_PICKER_COMPONENT as _0x4b18e6,ComponentManager as _0x5086cb,IMenuManagerService as _0x22c0fe,ISidebarService as _0x2e82af,KeyCode as _0x14a921,MenuItemType as _0x513c6e,RibbonInsertGroup as _0x18ed09,RibbonPosition as _0x117177,RibbonStartGroup as _0x14bcfa,getMenuHiddenObservable as _0x7516aa,useDependency as _0x146012,useObservable as _0x21a84d}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x12ec86,ImageFillModeEnum as _0x2a9cee,ImageSourceTypeEnum as _0x4b7a88,ShapeArrowSizeEnum as _0x1b415e,ShapeArrowTypeEnum as _0x1620ea,ShapeDefaultConfig as _0x9cc8fa,ShapeFillEnum as _0x3defb2,ShapeGradientTypeEnum as _0x413a66,ShapeLineCapEnum as _0x29a633,ShapeLineDashEnum as _0x2f3f4b,ShapeLineJoinEnum as _0x1a7f4c,ShapeLineTypeEnum as _0x63f001,ShapeModel as _0x4a2fd4,ShapeRenderModeEnum as _0x414330,ShapeSketchTypeEnum as _0x3e3cea,ShapeTypeEnum as _0x13cb42,computeConnectorRouteLayout as _0xf624ed,getBasicShapeRotateBound as _0x10ef50,isConnectorShape as _0x1326e8,isCurvedConnectorShape as _0x21cf30,routeConnectorLineShape as _0x3dbb25}from'@univerjs-pro/engine-shape';import{Accordion as _0x709cd0,Button as _0xd3627f,Checkbox as _0x4552df,ColorPicker as _0x2dbe2e,Dropdown as _0x3b5d91,GradientColorPicker as _0x3efd25,InputNumber as _0x5a41bb,Radio as _0x2e63ea,RadioGroup as _0x599fd0,Select as _0x41065f,clsx as _0x691dca}from'@univerjs/design';import{memo as _0x9cae4a,useCallback as _0x986b68,useEffect as _0x344669,useMemo as _0x5040ff,useRef as _0x1569d1,useState as _0x50ccba}from'react';import{DrawingCommonPanel as _0x1cec21,DrawingImageClipService as _0x20a501,DrawingRenderService as _0x1938fe,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x438739,getCurrentUnitInfo as _0x1ac13e,insertGroupObject as _0x326e82}from'@univerjs/drawing-ui';import{Fragment as _0x1a26e3,jsx as _0x21e6bb,jsxs as _0x11e0f1}from'react/jsx-runtime';import{SheetDrawingAnchor as _0x38deb1,SheetsDrawingGroupCopyPasteController as _0x44d224,UniverSheetsDrawingUIPlugin as _0x190e5a}from'@univerjs/sheets-drawing-ui';import{DocSkeletonManagerService as _0x1a420d,RichTextEditingMutation as _0x578b2d}from'@univerjs/docs';function La(_0x289e08){'@babel/helpers - typeof';const _0x58b4ac=_0x20cb;return La=typeof Symbol==_0x58b4ac(0x596)&&typeof Symbol[_0x58b4ac(0x4c9)]==_0x58b4ac(0x558)?function(_0x3ebb1d){return typeof _0x3ebb1d;}:function(_0x377f83){const _0x472306=_0x58b4ac;return _0x377f83&&typeof Symbol=='function'&&_0x377f83['constructor']===Symbol&&_0x377f83!==Symbol[_0x472306(0x36b)]?_0x472306(0x558):typeof _0x377f83;},La(_0x289e08);}function Ra(_0x34164a,_0x2f3dcb){const _0xdf7544=_0x20cb;if(La(_0x34164a)!='object'||!_0x34164a)return _0x34164a;var _0x22d53d=_0x34164a[Symbol[_0xdf7544(0x4fb)]];if(_0x22d53d!==void 0x0){var _0x526b85=_0x22d53d[_0xdf7544(0x41a)](_0x34164a,_0x2f3dcb||_0xdf7544(0x1b1));if(La(_0x526b85)!=_0xdf7544(0x3ad))return _0x526b85;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2f3dcb===_0xdf7544(0x567)?String:Number)(_0x34164a);}function za(_0x3ea7a8){const _0x13d48c=_0x20cb;var _0x371856=Ra(_0x3ea7a8,_0x13d48c(0x567));return La(_0x371856)==_0x13d48c(0x558)?_0x371856:_0x371856+'';}function Y(_0x19072b,_0x3cfc13,_0xaca8b4){const _0x1765d9=_0x20cb;return(_0x3cfc13=za(_0x3cfc13))in _0x19072b?Object[_0x1765d9(0x5b4)](_0x19072b,_0x3cfc13,{'value':_0xaca8b4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19072b[_0x3cfc13]=_0xaca8b4,_0x19072b;}var X=class extends _0x1a987c{constructor(..._0x4839f1){const _0x413ab7=_0x20cb;super(..._0x4839f1),Y(this,_0x413ab7(0x1f3),new _0x96f454(null)),Y(this,'editingParams$',this[_0x413ab7(0x1f3)][_0x413ab7(0x2e0)]()),Y(this,'_onSavingEditorData$',new _0x96f454(!0x1)),Y(this,_0x413ab7(0x4c0),this[_0x413ab7(0x3f6)][_0x413ab7(0x2e0)]());}[_0x304ba4(0x374)](){const _0x2e5153=_0x304ba4;this[_0x2e5153(0x1f3)][_0x2e5153(0x145)](null),this[_0x2e5153(0x1f3)][_0x2e5153(0x3da)](),this[_0x2e5153(0x3f6)][_0x2e5153(0x145)](!0x1),this[_0x2e5153(0x3f6)][_0x2e5153(0x3da)](),super['dispose']();}[_0x304ba4(0x453)](_0x1c4a9b){const _0xe79429=_0x304ba4;this[_0xe79429(0x1f3)][_0xe79429(0x145)](_0x1c4a9b),_0x1c4a9b==null&&this[_0xe79429(0x3f6)][_0xe79429(0x145)](!0x1);}[_0x304ba4(0x5de)](_0x276a3d){const _0x523388=_0x304ba4;this['_onSavingEditorData$'][_0x523388(0x145)](_0x276a3d);}[_0x304ba4(0x1d8)](){const _0x49f8c1=_0x304ba4;return this['_editingParams$'][_0x49f8c1(0x252)]();}};function Ba(_0x22cec1,_0x3832f9){const _0xda815c=_0x304ba4;let _0x323e57={};for(let _0x78a623 of Object['keys'](_0x3832f9)){let _0x52d297=_0x3832f9[_0x78a623],_0x2ea45c=_0x22cec1[_0x78a623];if(_0x52d297!==void 0x0){if(_0x2ea45c===void 0x0){_0x323e57[_0x78a623]=void 0x0;continue;}typeof _0x52d297==_0xda815c(0x3ad)&&_0x52d297&&!Array[_0xda815c(0x20a)](_0x52d297)&&typeof _0x2ea45c==_0xda815c(0x3ad)&&_0x2ea45c&&!Array[_0xda815c(0x20a)](_0x2ea45c)?_0x323e57[_0x78a623]=Ba(_0x2ea45c,_0x52d297):_0x323e57[_0x78a623]=_0x2ea45c;}}return _0x323e57;}function _0x20cb(_0x3b4c19,_0x168591){_0x3b4c19=_0x3b4c19-0x13c;const _0x517c85=_0x517c();let _0x20cb94=_0x517c85[_0x3b4c19];return _0x20cb94;}const Va={'type':_0x1076e4[_0x304ba4(0x541)],'id':_0x304ba4(0x1e5),'handler':(_0x3a36ca,_0x3aced9)=>{const _0x505bc1=_0x304ba4;let _0x5983b0=_0x3a36ca[_0x505bc1(0x172)](_0x3538a1),{unitId:_0x198757,subUnitId:_0x3a974f,shapeType:_0x3d8400,shapeId:_0x5a1d98,shapeData:_0x18ebde,oldShapeJSON:_0x3a767c}=_0x3aced9;if(!_0x5983b0[_0x505bc1(0x264)](_0x198757,_0x3a974f,_0x5a1d98))return!0x1;let _0x213117=_0x3a36ca[_0x505bc1(0x172)](_0xc97706),_0x3320ad=_0x3a36ca[_0x505bc1(0x172)](_0x3be54c),{oldShapeType:_0x1ea742,oldShapeData:_0x5798c6={}}=_0x3a767c,_0x17b953=Ba(_0x5798c6,_0x18ebde||{}),_0x36b189={'id':_0xae2422['id'],'params':{'unitId':_0x198757,'subUnitId':_0x3a974f,'shapeId':_0x5a1d98,'shapeType':_0x3d8400,'shapeData':_0x18ebde}},_0xa1edbd={'id':_0xae2422['id'],'params':{'unitId':_0x198757,'subUnitId':_0x3a974f,'shapeId':_0x5a1d98,'shapeType':_0x1ea742,'shapeData':_0x17b953}};return _0x213117[_0x505bc1(0x354)](_0x36b189['id'],_0x36b189[_0x505bc1(0x349)])?(_0x3320ad[_0x505bc1(0x4a2)]({'unitID':_0x198757,'undoMutations':[_0xa1edbd],'redoMutations':[_0x36b189]}),!0x0):!0x1;}},Ha={'type':_0x1076e4[_0x304ba4(0x541)],'id':'sheet.command.set-shape-text-horizontal-align','handler':async(_0x5f4b60,_0x299253)=>{const _0x26b9c=_0x304ba4;var _0x339105;if(!_0x533606(_0x5f4b60[_0x26b9c(0x172)](_0x10d47e)))return!0x1;let _0x52ecf1=_0x5f4b60[_0x26b9c(0x172)](_0x486e0c)[_0x26b9c(0x316)]()[_0x26b9c(0x159)](_0x30060a=>_0x30060a[_0x26b9c(0x429)]===_0x2375be[_0x26b9c(0x217)]);if(_0x52ecf1[_0x26b9c(0x1a1)]!==0x1)return!0x1;let _0x24523e=_0x5f4b60[_0x26b9c(0x172)](X)[_0x26b9c(0x1d8)](),_0x1d61c0=(_0x24523e==null?void 0x0:_0x24523e[_0x26b9c(0x4a7)])||_0x52ecf1[0x0][_0x26b9c(0x4a7)],_0x3f0c5a=(_0x24523e==null?void 0x0:_0x24523e['subUnitId'])||_0x52ecf1[0x0][_0x26b9c(0x5ca)],_0x5d69a=(_0x24523e==null?void 0x0:_0x24523e[_0x26b9c(0x27b)])||_0x52ecf1[0x0][_0x26b9c(0x447)],_0x428e59=_0x5f4b60[_0x26b9c(0x172)](_0x3538a1)[_0x26b9c(0x264)](_0x1d61c0,_0x3f0c5a,_0x5d69a);if(!_0x428e59)return!0x1;let _0xe8ef60=_0x428e59[_0x26b9c(0x209)]();if(!_0xe8ef60||!('dataModel'in _0xe8ef60))return!0x1;let _0xf5d782=_0x5f4b60[_0x26b9c(0x172)](_0xc97706),{value:_0x75cb30}=_0x299253,_0x5d206d=_0x428e59[_0x26b9c(0x383)](),_0x20fa56=_0x428e59[_0x26b9c(0x18d)](),_0x26762b={..._0xe8ef60[_0x26b9c(0x462)],'ha':_0x75cb30};return await _0xf5d782[_0x26b9c(0x2f1)](Va['id'],{'unitId':_0x1d61c0,'subUnitId':_0x3f0c5a,'shapeId':_0x5d69a,'shapeType':_0x5d206d,'shapeData':{'shapeText':{'isHorizontal':(_0x339105=_0xe8ef60[_0x26b9c(0x2e5)])==null?!0x0:_0x339105,'dataModel':_0x26762b}},'oldShapeJSON':{'oldShapeType':_0x5d206d,'oldShapeData':_0x20fa56}});}},Ua={'type':_0x1076e4[_0x304ba4(0x541)],'id':_0x304ba4(0x47b),'handler':async(_0x4c7687,_0x4b72df)=>{const _0x49fce3=_0x304ba4;var _0x2c569f;if(!_0x4b72df)return!0x1;let {value:_0x2acd72}=_0x4b72df,_0x4978f8=_0x4c7687['get'](_0xc97706),_0xdaf525=_0x4c7687['get'](X),_0x378899=_0x4c7687[_0x49fce3(0x172)](_0x3538a1),_0x431360=_0x4c7687[_0x49fce3(0x172)](_0x1dfd06),_0x10bce6=_0xdaf525[_0x49fce3(0x1d8)]();if(!_0x10bce6)return!0x1;let {unitId:_0x44a451,subUnitId:_0x1d99a6,shapeId:_0x252f20}=_0x10bce6,_0x1f6f1f=_0x378899[_0x49fce3(0x264)](_0x44a451,_0x1d99a6,_0x252f20);if(!_0x1f6f1f)return!0x1;let _0x49fb05=_0x1f6f1f[_0x49fce3(0x209)]();if(!_0x49fb05||!(_0x49fce3(0x462)in _0x49fb05))return!0x1;let _0x1db4ed=_0x49fb05[_0x49fce3(0x462)];if(!_0x1db4ed)return!0x1;let _0x5e3962={..._0x1db4ed,'fs':_0x2acd72},_0x13954d=await _0x4978f8[_0x49fce3(0x2f1)](Va['id'],{'unitId':_0x44a451,'subUnitId':_0x1d99a6,'shapeId':_0x252f20,'shapeData':{'shapeText':{'isHorizontal':(_0x2c569f=_0x49fb05['isHorizontal'])==null?!0x0:_0x2c569f,'dataModel':_0x5e3962}}});if(_0x13954d){let _0x24a0e8=_0x431360[_0x49fce3(0x1c2)](_0x44a451);if(_0x24a0e8!=null&&_0x24a0e8[_0x49fce3(0x490)]){let _0x5e76c9=_0x4ac3ac({'unitId':_0x44a451,'subUnitId':_0x1d99a6,'drawingId':_0x252f20}),_0xab436f=_0x24a0e8[_0x49fce3(0x490)][_0x49fce3(0x4cd)](_0x5e76c9);_0xab436f&&_0xab436f[_0x49fce3(0x26b)](!0x0);}}return _0x13954d;}},Wa={'type':_0x1076e4[_0x304ba4(0x541)],'id':_0x304ba4(0x4c2),'handler':async _0xedc566=>{const _0xb5cb86=_0x304ba4;var _0x10d657;let _0x339b51=_0xedc566['get'](X),_0x4075fb=_0xedc566['get'](_0x3538a1),_0x49892e=_0xedc566[_0xb5cb86(0x172)](_0xc97706),_0x55f0d6=_0x339b51[_0xb5cb86(0x1d8)]();if(!_0x55f0d6)return!0x1;let {unitId:_0x378e87,subUnitId:_0x4b5709,shapeId:_0x387fc7}=_0x55f0d6,_0x183df1=_0x4075fb['getShapeModel'](_0x378e87,_0x4b5709,_0x387fc7);if(!_0x183df1)return!0x1;let _0x7d658c=_0x183df1[_0xb5cb86(0x209)]();if(!_0x7d658c||!(_0xb5cb86(0x462)in _0x7d658c))return!0x1;let _0x3d18d7=_0x7d658c['dataModel'],_0x34a5aa=(_0x10d657=_0x3d18d7==null?void 0x0:_0x3d18d7['fs'])==null?0xe:_0x10d657,_0x2810d4=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x31897d=_0x34a5aa,_0x191cd5=_0x2810d4[_0xb5cb86(0x195)](_0x34a5aa);return _0x191cd5!==-0x1&&_0x191cd5<_0x2810d4['length']-0x1?_0x31897d=_0x2810d4[_0x191cd5+0x1]:_0x191cd5===-0x1&&(_0x31897d=Math['floor'](_0x34a5aa)+0x1),_0x49892e[_0xb5cb86(0x2f1)](Ua['id'],{'value':_0x31897d});}},Ga={'type':_0x1076e4[_0x304ba4(0x541)],'id':_0x304ba4(0x409),'handler':async _0x3f7c9a=>{const _0x82c08a=_0x304ba4;var _0x317f23;let _0x281ae4=_0x3f7c9a[_0x82c08a(0x172)](X),_0x4e6f8b=_0x3f7c9a['get'](_0x3538a1),_0x1d5b86=_0x3f7c9a[_0x82c08a(0x172)](_0xc97706),_0x5817c8=_0x281ae4[_0x82c08a(0x1d8)]();if(!_0x5817c8)return!0x1;let {unitId:_0x37458c,subUnitId:_0x2240f8,shapeId:_0x1b1a5e}=_0x5817c8,_0x2c48a7=_0x4e6f8b[_0x82c08a(0x264)](_0x37458c,_0x2240f8,_0x1b1a5e);if(!_0x2c48a7)return!0x1;let _0x221315=_0x2c48a7[_0x82c08a(0x209)]();if(!_0x221315||!(_0x82c08a(0x462)in _0x221315))return!0x1;let _0x433aa2=_0x221315['dataModel'],_0x270f1b=(_0x317f23=_0x433aa2==null?void 0x0:_0x433aa2['fs'])==null?0xe:_0x317f23,_0x26a8cc=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x3e34b3=_0x270f1b,_0x16fe51=_0x26a8cc[_0x82c08a(0x195)](_0x270f1b);return _0x16fe51!==-0x1&&_0x16fe51>0x0?_0x3e34b3=_0x26a8cc[_0x16fe51-0x1]:_0x16fe51===-0x1&&(_0x3e34b3=Math[_0x82c08a(0x4f8)](_0x270f1b)-0x1),_0x3e34b3<0x1&&(_0x3e34b3=0x1),_0x1d5b86[_0x82c08a(0x2f1)](Ua['id'],{'value':_0x3e34b3});}},Ka={'type':_0x1076e4[_0x304ba4(0x541)],'id':_0x304ba4(0x228),'handler':async(_0x284c2c,_0x225ab7)=>{const _0x2f2cbb=_0x304ba4;var _0x30a41f;if(!_0x533606(_0x284c2c['get'](_0x10d47e)))return!0x1;let _0x6207a3=_0x284c2c[_0x2f2cbb(0x172)](_0x486e0c)[_0x2f2cbb(0x316)]()[_0x2f2cbb(0x159)](_0x1bc5fd=>_0x1bc5fd[_0x2f2cbb(0x429)]===_0x2375be['DRAWING_SHAPE']);if(_0x6207a3['length']!==0x1)return!0x1;let _0x3503aa=_0x284c2c[_0x2f2cbb(0x172)](X)['getEditing'](),_0x288ad2=(_0x3503aa==null?void 0x0:_0x3503aa['unitId'])||_0x6207a3[0x0][_0x2f2cbb(0x4a7)],_0x180611=(_0x3503aa==null?void 0x0:_0x3503aa[_0x2f2cbb(0x5ca)])||_0x6207a3[0x0][_0x2f2cbb(0x5ca)],_0x42b68b=(_0x3503aa==null?void 0x0:_0x3503aa[_0x2f2cbb(0x27b)])||_0x6207a3[0x0][_0x2f2cbb(0x447)],_0x26b5a5=_0x284c2c[_0x2f2cbb(0x172)](_0x3538a1)[_0x2f2cbb(0x264)](_0x288ad2,_0x180611,_0x42b68b);if(!_0x26b5a5)return!0x1;let _0x28d911=_0x26b5a5[_0x2f2cbb(0x209)]();if(!_0x28d911||!(_0x2f2cbb(0x462)in _0x28d911))return!0x1;let _0x456cb7=_0x284c2c['get'](_0xc97706),{value:_0x10b6da}=_0x225ab7,_0x391e8d=_0x26b5a5[_0x2f2cbb(0x383)](),_0x380fdc=_0x26b5a5[_0x2f2cbb(0x18d)](),_0x25d95c={..._0x28d911[_0x2f2cbb(0x462)],'va':_0x10b6da};return await _0x456cb7[_0x2f2cbb(0x2f1)](Va['id'],{'unitId':_0x288ad2,'subUnitId':_0x180611,'shapeId':_0x42b68b,'shapeType':_0x391e8d,'shapeData':{'shapeText':{'isHorizontal':(_0x30a41f=_0x28d911[_0x2f2cbb(0x2e5)])==null?!0x0:_0x30a41f,'dataModel':_0x25d95c}},'oldShapeJSON':{'oldShapeType':_0x391e8d,'oldShapeData':_0x380fdc}});}},qa={'type':_0x1076e4['COMMAND'],'id':_0x304ba4(0x5c3),'handler':(_0x143769,_0x30e9ad)=>{const _0x54045a=_0x304ba4;if(!_0x30e9ad)return!0x1;let {value:_0x58f448}=_0x30e9ad;return _0x143769[_0x54045a(0x172)](_0xc97706)['syncExecuteCommand'](_0x1063ea['id'],{'alignType':_0x58f448});}},Ja={'type':_0x1076e4[_0x304ba4(0x5a9)],'id':_0x304ba4(0x4f3),'handler'(){return!0x0;}},Ya={'type':_0x1076e4[_0x304ba4(0x5a9)],'id':_0x304ba4(0x274),'handler'(){return!0x0;}},Xa='sheet.shape.edit.panel',Za=_0x1d6af9(_0x304ba4(0x54d));function Z(_0x3dc308,_0x4b36ff,_0x446506,_0x90d0e5,_0xa25eb,_0xced79b){let _0x49538e={'unitId':_0x4b36ff,'subUnitId':_0x446506,'shapeId':_0x90d0e5,'shapeData':_0xced79b,'oldShapeJSON':_0xa25eb};return _0x3dc308['executeCommand'](Va['id'],_0x49538e);}function Qa(_0x7f6fa,_0xdcf5ac,_0xdb2f04,_0x43911d,_0x1b80d3,_0x42262e){const _0x20dd6a=_0x304ba4;let _0x18f628={'unitId':_0xdcf5ac,'subUnitId':_0xdb2f04,'shapeId':_0x43911d,'shapeData':_0x42262e,'oldShapeJSON':_0x1b80d3};return _0x7f6fa[_0x20dd6a(0x2f1)](Va['id'],_0x18f628);}function $a(_0x1be633,_0x495b44){const _0x1542f1=_0x304ba4;var _0x595ff3;let {isHorizontal:_0x28ee96,textRect:_0x429f94,verticalAlign:_0x3f38ec}=_0x495b44,_0x3ff563=_0x28ee96?_0x429f94[_0x1542f1(0x34d)]:_0x429f94['height'],_0x1456cf=_0x22dbf6[_0x1542f1(0x4a1)](_0x1be633),_0x2899ff=(_0x595ff3=_0x1456cf[_0x1542f1(0x353)])==null?{}:_0x595ff3,_0x5f5699={..._0x2899ff[_0x1542f1(0x198)],'centerAngle':_0x28ee96?0x0:_0x16f95d,'vertexAngle':_0x28ee96?0x0:_0x16f95d,'wrapStrategy':_0x14a694[_0x1542f1(0x25f)]};if(_0x3f38ec!==void 0x0&&(_0x5f5699['verticalAlign']=_0x3f38ec),_0x495b44[_0x1542f1(0x355)]!==void 0x0){var _0x2d1c6a;_0x5f5699[_0x1542f1(0x355)]=_0x495b44['horizontalAlign'];let _0xcb6932=(_0x2d1c6a=_0x1456cf[_0x1542f1(0x386)])==null?void 0x0:_0x2d1c6a[_0x1542f1(0x283)];if(_0xcb6932){for(let _0xffa836 of _0xcb6932)_0xffa836[_0x1542f1(0x5b7)]||(_0xffa836[_0x1542f1(0x5b7)]={}),_0xffa836['paragraphStyle'][_0x1542f1(0x355)]=_0x495b44['horizontalAlign'];}}return _0x1456cf[_0x1542f1(0x353)]={..._0x2899ff,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x3ff563,'height':0x1/0x0},'renderConfig':_0x5f5699},_0x1456cf;}function eo(_0x2e2277){const _0x27104f=_0x304ba4;var _0x4fa2a7;let _0x2f679f=_0x22dbf6[_0x27104f(0x4a1)](_0x2e2277),_0x4bf08e=(_0x4fa2a7=_0x2f679f[_0x27104f(0x353)])==null?{}:_0x4fa2a7,_0x3c7890={..._0x4bf08e[_0x27104f(0x198)]};return delete _0x3c7890['centerAngle'],delete _0x3c7890[_0x27104f(0x3e7)],delete _0x3c7890['verticalAlign'],delete _0x3c7890[_0x27104f(0x382)],_0x2f679f[_0x27104f(0x353)]={..._0x4bf08e,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':0x1/0x0,'height':0x1/0x0},'renderConfig':Object[_0x27104f(0x582)](_0x3c7890)[_0x27104f(0x1a1)]>0x0?_0x3c7890:void 0x0},_0x2f679f;}var to=class extends _0x12f371{constructor(_0x23cc42,_0x286983){const _0xfe30c3=_0x304ba4;super(_0x23cc42,_0x286983),Y(this,_0xfe30c3(0x48c),void 0x0),Y(this,_0xfe30c3(0x3de),!0x0),Y(this,_0xfe30c3(0x36c),_0x2375be['DRAWING_SHAPE']),Y(this,_0xfe30c3(0x4bf),!0x0),this[_0xfe30c3(0x48c)]={..._0x286983},this[_0xfe30c3(0x5b0)]();}[_0x304ba4(0x5b0)](){const _0x514d3c=_0x304ba4;this[_0x514d3c(0x4c3)][_0x514d3c(0x400)](_0x11eca3=>{const _0x51a4c5=_0x514d3c;this[_0x51a4c5(0x2f3)](_0x11eca3);});}[_0x304ba4(0x5ac)](_0x4eb884){const _0x5435d3=_0x304ba4;this[_0x5435d3(0x48c)][_0x5435d3(0x538)]=_0x4eb884;}[_0x304ba4(0x453)](_0x99b310){const _0x287672=_0x304ba4;this['_props'][_0x287672(0x29c)]=_0x99b310,this[_0x287672(0x26b)](!0x0);}get[_0x304ba4(0x4a7)](){const _0x591582=_0x304ba4;return this[_0x591582(0x48c)][_0x591582(0x4a7)];}get[_0x304ba4(0x5ca)](){const _0x12cd54=_0x304ba4;return this['_props'][_0x12cd54(0x5ca)];}[_0x304ba4(0x2f3)](_0xb02a51){const _0x5c5c90=_0x304ba4;if(this['_props']['srcRect']==null||!this[_0x5c5c90(0x3de)])return;let {width:_0x4328af,height:_0x893d62}=this,{width:_0x3af91d=0x0,height:_0x172120=0x0}=_0xb02a51[_0x5c5c90(0x36d)],{left:_0x49703f=0x0,top:_0x40ff46=0x0,right:_0x4e6cc8=0x0,bottom:_0xe36445=0x0}=this[_0x5c5c90(0x48c)][_0x5c5c90(0x1c0)],_0x1bdd29=_0x49703f,_0x367066=_0x40ff46,_0x5da073=_0x4e6cc8,_0x5e386d=_0xe36445,_0x55f84d=!0x1;if(_0x3af91d!==0x0&&_0x3af91d!==_0x4328af){let _0x48cb9c=_0x49703f/_0x3af91d,_0x8b149=_0x4e6cc8/_0x3af91d;_0x1bdd29=_0x4328af*_0x48cb9c,_0x5da073=_0x4328af*_0x8b149,_0x55f84d=!0x0;}if(_0x172120!==0x0&&_0x172120!==_0x893d62){let _0x17f437=_0x40ff46/_0x172120,_0x125563=_0xe36445/_0x172120;_0x367066=_0x893d62*_0x17f437,_0x5e386d=_0x893d62*_0x125563,_0x55f84d=!0x0;}_0x55f84d&&this[_0x5c5c90(0x179)]({'left':_0x1bdd29,'top':_0x367066,'right':_0x5da073,'bottom':_0x5e386d});}['setSrcRect'](_0x59e828){const _0x2e4e83=_0x304ba4;this[_0x2e4e83(0x48c)][_0x2e4e83(0x1c0)]=_0x59e828,this[_0x2e4e83(0x26b)](!0x0);}[_0x304ba4(0x318)](_0x5e5fd7){const _0x3f45ae=_0x304ba4;this[_0x3f45ae(0x48c)][_0x3f45ae(0x2f0)]=_0x5e5fd7,this['makeDirty'](!0x0);}set['transform'](_0x15e6d8){const _0x2a950f=_0x304ba4;this[_0x2a950f(0x399)]=_0x15e6d8;}get[_0x304ba4(0x42c)](){const _0x29a0f6=_0x304ba4;this[_0x29a0f6(0x399)]||this['_setTransForm']();let _0x4a2529=this[_0x29a0f6(0x399)][_0x29a0f6(0x1f2)]();return this[_0x29a0f6(0x5b6)](_0x4a2529);}get[_0x304ba4(0x58e)](){return this['_props']['shapeModel'];}get[_0x304ba4(0x27b)](){const _0x3ad573=_0x304ba4;return this['_props'][_0x3ad573(0x27b)];}get[_0x304ba4(0x1a2)](){const _0x85f82f=_0x304ba4;return _0x47e743[_0x85f82f(0x522)];}[_0x304ba4(0x24a)](_0x4c0cc1,_0x4f769b,_0x493c4a,_0x1382d3){const _0x33e3fd=_0x304ba4;let _0x21b245=this['_props'][_0x33e3fd(0x58e)];if(!_0x21b245||!_0x4f769b)return;let _0x1ca8af=_0x493c4a==null?this[_0x33e3fd(0x34d)]:_0x493c4a,_0x7a2ef0=_0x1382d3==null?this[_0x33e3fd(0x595)]:_0x1382d3,_0x2022db={'shapeType':_0x21b245[_0x33e3fd(0x383)](),'width':_0x1ca8af,'height':_0x7a2ef0},_0x2c5b10={'renderMode':_0x414330[_0x33e3fd(0x323)],'oKey':this[_0x33e3fd(0x5be)],'image':this[_0x33e3fd(0x48c)][_0x33e3fd(0x2f0)],'angle':this[_0x33e3fd(0x517)]};_0x21b245['updateContext'](_0x2022db),_0x4c0cc1[_0x33e3fd(0x161)]();let _0x485223={'top':0x0,'left':0x0,'width':_0x1ca8af,'height':_0x7a2ef0};_0x21b245['render'](_0x4c0cc1,_0x485223,_0x2c5b10),_0x4c0cc1[_0x33e3fd(0x398)]();let _0x596519=_0x21b245[_0x33e3fd(0x209)](),_0x545877=_0x21b245[_0x33e3fd(0x156)](_0x485223),_0xffb41=_0x21b245['isLineShape']();if(_0x596519&&_0x545877&&!_0xffb41){_0x4c0cc1[_0x33e3fd(0x161)](),this['getState']()[_0x33e3fd(0x3a3)]&&_0x4c0cc1[_0x33e3fd(0x2eb)](-0x1,0x1);let _0x1be200=_0x1ca8af/0x2,_0x2d40f1=_0x7a2ef0/0x2;_0x4c0cc1[_0x33e3fd(0x37e)](-_0x1be200,-_0x2d40f1),_0x4c0cc1['beginPath'](),this[_0x33e3fd(0x2d0)](_0x4c0cc1,_0x596519,_0x545877),_0x4c0cc1['restore']();}}[_0x304ba4(0x268)](_0x25dde6){}[_0x304ba4(0x2d0)](_0x4e3a12,_0x8d004a,_0x162db2){const _0xb5eaf7=_0x304ba4;this[_0xb5eaf7(0x48c)][_0xb5eaf7(0x29c)]||(_0xb5eaf7(0x35f)in _0x8d004a&&_0x8d004a[_0xb5eaf7(0x35f)]===!0x1?this[_0xb5eaf7(0x249)](_0x4e3a12,_0x8d004a,_0x162db2):this['_drawRichText'](_0x4e3a12,_0x8d004a,_0x162db2));}[_0x304ba4(0x249)](_0x4468c9,_0x29cb46,_0x29b5e0){}['_drawRichText'](_0x5a448f,_0x54d108,_0x45da99){const _0xee8c61=_0x304ba4;var _0x381f1e,_0x399f65;let _0x1b2d78=this['_props'][_0xee8c61(0x305)];if(!_0x54d108['dataModel']||!_0x1b2d78){_0x1b2d78||console[_0xee8c61(0x3ee)](_0xee8c61(0x2d7));return;}let _0x4651db=_0x54d108[_0xee8c61(0x462)],_0x41f797=_0x4651db['doc'],_0x2c3495=(_0x381f1e=_0x4651db['va'])==null?_0x196cf7[_0xee8c61(0x3c4)]:_0x381f1e,_0x13eccd=(_0x399f65=_0x4651db['ha'])==null?_0x1909c6[_0xee8c61(0x583)]:_0x399f65;if(!_0x41f797)return;let _0x269b6a=_0x54d108['isHorizontal'],_0x2a71d4=$a(_0x41f797,{'isHorizontal':_0x269b6a!==!0x1,'textRect':_0x45da99,'verticalAlign':_0x2c3495,'horizontalAlign':_0x13eccd}),_0x1415d2=new _0x5e8b27(_0x2a71d4),_0xa31159=new _0x3f3f8f(_0x1415d2),_0x37590b=_0x48a4c7['create'](_0xa31159,_0x1b2d78);console['warn'](_0x2a71d4,_0x1415d2,_0x37590b),_0x37590b['calculate']();let _0x5100c5=new _0x3abb63(_0xee8c61(0x54c)+this[_0xee8c61(0x5be)],_0x37590b,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x5100c5[_0xee8c61(0x504)](_0x45da99[_0xee8c61(0x34d)],_0x45da99[_0xee8c61(0x595)]),_0x5a448f[_0xee8c61(0x161)](),_0x5a448f[_0xee8c61(0x2aa)](_0x45da99[_0xee8c61(0x38e)],_0x45da99[_0xee8c61(0x32e)]),_0x5a448f['beginPath'](),_0x5a448f['rect'](0x0,0x0,_0x45da99[_0xee8c61(0x34d)],_0x45da99[_0xee8c61(0x595)]),_0x5a448f[_0xee8c61(0x39e)](),_0x5100c5[_0xee8c61(0x46c)](_0x5a448f),_0x5a448f[_0xee8c61(0x398)](),_0x5100c5['dispose'](),_0x37590b[_0xee8c61(0x374)](),_0xa31159[_0xee8c61(0x374)](),_0x1415d2[_0xee8c61(0x374)]();}[_0x304ba4(0x291)](_0x3454ba,_0x4b9fc0,_0x559131=!0x1){const _0x4f4bb7=_0x304ba4;if(!this[_0x4f4bb7(0x23f)])return this[_0x4f4bb7(0x26b)](!0x1),this;let {width:_0x2a2384,height:_0xf5d030,left:_0x375ee8,top:_0x51cb91}=this,_0x5ea835=this[_0x4f4bb7(0x140)]();if(_0x2a2384=_0x5ea835[_0x4f4bb7(0x34d)],_0xf5d030=_0x5ea835['height'],_0x375ee8=_0x5ea835['left'],_0x51cb91=_0x5ea835[_0x4f4bb7(0x32e)],this[_0x4f4bb7(0x2f9)](_0x4b9fc0)){let {top:_0x333c9f,left:_0x5ad7dc,bottom:_0xa03463,right:_0x267633}=_0x4b9fc0[_0x4f4bb7(0x4f0)];if(_0x2a2384+this[_0x4f4bb7(0x505)]+_0x375ee8<_0x5ad7dc||_0x267633<_0x375ee8||_0xf5d030+this[_0x4f4bb7(0x505)]+_0x51cb91<_0x333c9f||_0xa03463<_0x51cb91)return this;}let _0x4ec3cb=_0x375ee8+_0x2a2384/0x2,_0x18fe28=_0x51cb91+_0xf5d030/0x2,_0xfd25bf=this['transform'][_0x4f4bb7(0x2dc)]();if(this[_0x4f4bb7(0x48c)][_0x4f4bb7(0x29c)]){let _0x38b75e=this['getState'](),_0x39c0d2=new _0x59cf9b();_0x39c0d2['composeMatrix']({..._0x38b75e}),_0xfd25bf=_0x39c0d2[_0x4f4bb7(0x2dc)]();}return _0x3454ba[_0x4f4bb7(0x161)](),this[_0x4f4bb7(0x48c)][_0x4f4bb7(0x58e)]['isRenderLinePointsMode']===!0x0||_0x3454ba[_0x4f4bb7(0x42c)](_0xfd25bf[0x0],_0xfd25bf[0x1],_0xfd25bf[0x2],_0xfd25bf[0x3],_0x4ec3cb,_0x18fe28),this['_draw'](_0x3454ba,_0x4b9fc0,_0x2a2384,_0xf5d030),_0x3454ba[_0x4f4bb7(0x398)](),this[_0x4f4bb7(0x26b)](!0x1),this;}[_0x304ba4(0x3ef)](_0x34ef65){const _0x438db2=_0x304ba4;let {left:_0x37a917,top:_0x4b0d3a,width:_0x4e57c5,height:_0x594451}=this[_0x438db2(0x140)](),_0x255e93=this['transform'][_0x438db2(0x2dc)](),_0x346a98=_0x37a917+_0x4e57c5/0x2,_0x17c622=_0x4b0d3a+_0x594451/0x2,_0x4854d0=new _0x59cf9b([_0x255e93[0x0],_0x255e93[0x1],_0x255e93[0x2],_0x255e93[0x3],_0x346a98,_0x17c622]),_0x280020=this[_0x438db2(0x35a)]();return(this[_0x438db2(0x227)]&&(_0x280020==null?void 0x0:_0x280020[_0x438db2(0x1a2)])===_0x47e743[_0x438db2(0x4df)]?_0x280020[_0x438db2(0x22b)]['multiply'](_0x4854d0):_0x4854d0)[_0x438db2(0x571)]()['applyPoint'](_0x34ef65);}[_0x304ba4(0x5b2)](_0xbc6d52){const _0x576c34=_0x304ba4;let {left:_0x566582,top:_0x42273b,width:_0x550a49,height:_0x19e560}=this[_0x576c34(0x140)](),_0x59bd6d=_0x566582+_0x550a49/0x2,_0x2bb141=_0x42273b+_0x19e560/0x2,_0x13bdf3=this[_0x576c34(0x42c)][_0x576c34(0x2dc)](),_0x1021a0=new _0x59cf9b([_0x13bdf3[0x0],_0x13bdf3[0x1],_0x13bdf3[0x2],_0x13bdf3[0x3],_0x59bd6d,_0x2bb141]),_0x590113=this[_0x576c34(0x35a)](),_0xc5212d=(this['isInGroup']&&(_0x590113==null?void 0x0:_0x590113[_0x576c34(0x1a2)])===_0x47e743['GROUP']?_0x590113[_0x576c34(0x22b)][_0x576c34(0x5f6)](_0x1021a0):_0x1021a0)['invert']()[_0x576c34(0x1d1)](_0xbc6d52),_0xb304fc=_0x550a49/0x2,_0xdf81fa=_0x19e560/0x2,_0x4ebeee=this['_props'][_0x576c34(0x58e)];return _0x4ebeee&&_0x4ebeee[_0x576c34(0x324)]()?_0x4ebeee[_0x576c34(0x272)](_0xc5212d['x'],_0xc5212d['y'],_0x550a49,_0x19e560):_0xc5212d['x']>=-_0xb304fc-this[_0x576c34(0x505)]/0x2&&_0xc5212d['x']<=_0xb304fc+this['strokeWidth']/0x2&&_0xc5212d['y']>=-_0xdf81fa-this['strokeWidth']/0x2&&_0xc5212d['y']<=_0xdf81fa+this[_0x576c34(0x505)]/0x2;}[_0x304ba4(0x374)](){const _0x289d11=_0x304ba4;this[_0x289d11(0x48c)][_0x289d11(0x58e)]=null,super[_0x289d11(0x374)]();}};function Q(_0xd9e668,_0x15bf4f){return function(_0x12179d,_0x177a1c){_0x15bf4f(_0x12179d,_0x177a1c,_0xd9e668);};}function _0x517c(){const _0x4179d5=['viewportScrollY','shape.type.triangle','_sheetInterceptorService','sheet.shape.picker.component','CurvedDownArrow','ShapeFlowChartMagneticDrumIcon','_getSceneAndTransformerByDrawingSearch','changeStart$','shape.type.flow-chart-multidocument','_executeConnectionCommand','sheets-shape.line.endArrowType','string','lineType','shape.type.trapezoid','sheets-shape.line.joinType.miter','shape.type.flow-chart-decision','sheets-shape.insertShape','shape.type.horizontal-scroll','ShapeUpDownArrowCalloutIcon','LeftCircularArrow','Round2DiagRect','invert','toolbar.fillColor.main','_initialize','_rerouteConnectorLine','rotation','ShapeActionButtonForwardNextIcon','startOffset','ShapeTriangleIcon','_addControl','shape.type.chart-x','shape.type.home-plate','shape.type.accent-callout1','shape.type.plus','shape.type.bent-connector3-arrow2','_baseLeft','calcAdjValue','shape.type.down-arrow','keys','LEFT','shape.type.teardrop','Plaque','_menuManagerService','_activeShapeAdjustPointList','getCurrentSkeleton','BracketPair','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','getUnitId','skeleton','pipe','shapeModel','Plus','register','DiamondArrow','adjustValues','ActionButtonMovie','shape-adjust-point-','height','function','sheets-shape.line.arrowType.none','doc','equationShape','ShapeLeftRightRibbonIcon','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ShapeIrregularSeal2Icon','linear','getDrawingData','sheets-shape.fill.picture.scaleX','_renderManagerService','univer-w-20','shape.type.flow-chart-collate','ShapeQuadArrowCalloutIcon','ShapeFlowChartDecisionIcon','setCursor','getConnectionRelation','ShapeFlowChartMagneticDiskIcon','onPointerDown$','OPERATION','univer-absolute','_getConnectPointInfo','setPrstGeom','stroke','_lastEditingShapeKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','_init','#ffffff','isHit','shape.type.round2-same-rect','defineProperty','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','transformForAngle','paragraphStyle','SmileyFace','_draggingConnectorId','Image','LeftArrowCallout','shape.type.up-arrow','sheets-shape.fill.picture.align.l','oKey','_openShapeEditPanel','_sheetBasicShapeConnectionPointController','shape.type.square-tabs','focusDrawing','sheet.command.shape-doc-align','shape.type.math-minus','shape.type.flow-chart-internal-storage','angular','10tsonCT','shape.type.flow-chart-extract','ShapeActionButtonReturnIcon','subUnitId','add$','shape.type.accent-border-callout3','shape.type.pie','ShapeRtTriangleIcon','_hasReset','#000000','updateContext','CurvedLeftArrow','ShapeRightBraceIcon','_adjHandlerPointerUp','shape.type.action-button-return','isHighlighted','shape.type.left-up-arrow','FlowchartSort','sheets-shape.line.joinType.round','sheets-shape.fill.color','offsetY','shape.type.right-arrow-callout','sheets-shape.fill.picture.scaleY','setOnSavingEditorData','shape.type.left-bracket','_currentScene','remove$','_activeTargetShapeId','shape.type.frame','_getConnectionSiteAngle','setConfig','permission.dialog.editErr','41247pAHsGJ','univer-w-28','Gear6','onPointerMove$','_baseWidth','_loadShapePictureFill','_clearShapeAdjustControls','sheets-shape.line.sketchType.curved','univer-size-full','_handleConnectorPointerUp','_createControls','shape.type.striped-right-arrow','worldRect','sheets-shape.fill.solidFill','files','multiply','_commandExecutedListener','UNIVER_SHEET','ShapeMoonIcon','shape.type.action-button-document','NoFill','Gear9','sheets-shape.rotateLeft90','_executeConnectedRouteConnectionCommand','HomePlate','_registerOperations','callout','sketchType','ShapeLeftArrowIcon','_focusedDrawings','16SoVGUg','ShapeActionButtonSoundIcon','shape.type.accent-callout2','MathEqual','VerticalScroll','getCurrentTypeOfUnit$','getRealBound','shape.type.bevel','sheets-shape.fill.picture.source','getActualSize','Dodecagon','next','startArrow','ShapeHalfFrameIcon','Corner','LeftRightRibbon','type','FlowchartPredefinedProcess','Callout1','Heptagon','ShapeRightBracketIcon','ShapeActionButtonInformationIcon','ShapeFlowChartManualInputIcon','Star8','_handleConnectedEndpointPointerUp','buildClipPath','RightBracket','ShapeIcon','getShapeTextRect','permissionCheckWithoutRange','ShapeStar8Icon','filter','shape.type.accent-callout3','sheets-shape.fill.transparency','getBoundingClientRect','sheets-shape.line.arrowSize.medium','from','ShapeFlowChartInternalStorageIcon','sheets-shape.fill.picture.rotateWithShape','save','Stretch','HorizontallyIcon','_initEvents','_addShapeConnectorHandlerObject','_initEditingParams','sheets-shape.toggleTextVertical','getImageSourceCache','_activeShapeId','error','sheets-shape.fill.picture.align.ctr','shape.type.border-callout2','sheets-shape.line.arrowType.arrow','sheets-shape.line.dashType.dash','setTimeout','clip-adj-','_handleFreeEndpointMove','get','Ellipse','_copyInfo','setSelectionRanges','ShapeFlowChartOffpageConnectorIcon','sheets-shape.line.dashType.title','getContextValue','setSrcRect','ShapeTrapezoidIcon','_urlImageService','UPDATE','cxnPointStrokeWidth','shape.type.rect-textbox-vertical','sheets-shape.line.dashType.squareDot','IrregularSeal1','ShapeLineIcon','AlignTopIcon','_updateImageAdjValues','univer-flex\x20univer-items-center\x20univer-justify-between','_findNearestConnectionSite','Bevel','span','shape.type.decagon','ShapeVerticalScrollIcon','REMOVE','_baseShapeTop','ChartX','getShapeData','auto','CornerTabs','BOTTOM','find','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','ShapeCornerTabsIcon','shape.type.action-button-beginning','indexOf','_sheetSkeletonService','connector-handler-','renderConfig','abs','pick','blockArrow','has','_groupCopyPasteController','ShapeDoubleWaveIcon','CENTER','Arc','length','classType','shape.type.up-down-arrow-callout','FlowchartOnlineStorage','ShapeFlowChartPunchedTapeIcon','ShapeGear6Icon','ShapeActionButtonMovieIcon','shape.type.callout2','getConnectorLinePoints','clearAdjustValue','_getOrCreateShapeModel','round','FlowchartMagneticTape','ShapeLineInvIcon','setShouldShowAdjust','_getZoomRatio','default','_sidebarService','_createShapeAdjustControls','Freehand','ShapeCallout1Icon','FlowchartPunchedTape','updateDocumentRenderConfig','AccentCallout2','Snip2SameRect','shape.type.flow-chart-magnetic-tape','sheets-shape.shapeStyle','_isOpenedShapeEditPanel','textRect','5240724RWbvVt','shape.type.flow-chart-manual-input','srcRect','shape.type.border-callout3','getRenderById','shape.type.star32','ShapeFlowChartCollateIcon','ShapeCurvedRightArrowIcon','getShapeDataById','shape.type.left-right-arrow','ShapeCurvedConnector3Icon','getUnit','entries','shape.type.wedge-round-rect-callout','#1a73e8','UUID','sheets-shape.line.beginArrowSize','setShapeProps','onReady','applyPoint','ShapeMathNotEqualIcon','shape.type.left-arrow-callout','sheets-shape.line.arrowType.openArrow','ShapeChartPlusIcon','line','shape.type.ellipse-ribbon2','getEditing','addImageSourceCache','deg)\x20scaleY(','ShapeCallout3Icon','shape.type.star12','getViewport','_shapeTextEditingService','shape.type.star16','shape.type.round-rect','LeftUpArrow','disposeWithMe','shapeKey','endArrow','sheet.command.update-shape-data','ShapeActionButtonEndIcon','shape.type.heart','addClipboardHook','shape.type.right-brace','reduce','interceptCommand','ShapeCloudIcon','ShapeFlowChartDelayIcon','current','rectangle','imageTile','ShapeNonIsoscelesTrapezoidIcon','clone','_editingParams$','LeftBracket','Hexagon','shape.type.wedge-ellipse-callout','LongDashDotDot','ShapeWaveIcon','shape.type.flow-chart-delay','ShapeRound1RectIcon','packageName','WedgeRoundRectCallout','ShapeLeftUpArrowIcon','ShapeFlowChartManualOperationIcon','shape.type.swoosh-arrow','_showConnectionSites','ShapeCallout2Icon','sheets-shape.line.transparency','ShapeHexagonIcon','SnipRoundRect','ShapeRibbon2Icon','getAdjustInfoByName','marginTop','getStartConnectInfo','getShapeTextData','isArray','removeLinePoints','shape.type.corner-tabs','_isStartAdjusting','shape.type.irregular-seal2','univer-flex\x20univer-flex-col\x20univer-gap-2','registerFeatureMenuOffset','sheets-shape.line.dashType.longDashDotDot','setShapeData','ShapeStraightConnector1Icon','_reset','_contextService','ShapeIrregularSeal1Icon','DRAWING_SHAPE','ShapeEllipseRibbon2Icon','_connectionSiteObjects','_baseShapeWidth','_updateTransform','sheet.command.menu-insert-shape','updateShapeFillImage','setPrstGeomAdjValues','ActionButtonBackPrevious','ShapeBorderCallout3Icon','_initPermission','Tile','normal','getTransformerByCreate','ShapeEllipseIcon','sheets-shape.line.solidLine','isInGroup','sheet.command.set-shape-text-vertical-align','ShapeSunIcon','drawing.operation.set-drawing-active','ancestorTransform','Heart','_shapeId','ShapeActionButtonBlankIcon','Star12','imageOpacity','Pie','value','_initMenu','MEDIA','ShapeStar24Icon','_sheetDrawingService','getDrawingByParam','shape.type.action-button-forward-next','sheetTransform','getEndConnectInfo','adjHandleSize','offset','ShapeFlowChartPreparationIcon','_registerImageShapeClipDelegate','visible','_baseDrawingRect','ShapeStar5Icon','ShapeFlowChartSummingJunctionIcon','viewportScrollX','ShapeHorizontalScrollIcon','editorHeight','_config','ActionButtonInformation','lineJoinType','_drawSimpleText','_draw','ShapeChartStarIcon','sheets-shape.line.capType.flat','shape.type.left-right-ribbon','_getShapeAdjustInfosById','sheets-shape.toggleFlipV','FoldedCorner','univer-flex-1\x20univer-overflow-auto','getValue','_clearConnectionSites','_handleBasicShapeUpdateConnectorLineShape','shape.type.star6','lineStrokeType','AccentBorderCallout1','ShapeHomePlateIcon','shape.type.action-button-home','ShapeFlowChartOnlineStorageIcon','ShapeCurvedLeftArrowIcon','univer-w-20\x20univer-flex-1','some','diamond','WRAP','ShapeFlowChartOrIcon','group','unsubscribe','shape.type.bent-connector3','getShapeModel','ctr','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','shape.type.no-smoking','getDrawingPoints','WedgeEllipseCallout','MathMultiply','makeDirty','univer-text-sm','Snip1Rect','ShapeStar16Icon','shape.type.curved-left-arrow','_createCopyInfoByRange','ShapeBentUpArrowIcon','isHitLine','Star10','sheet.operation.open-sheet-shape-format-panel','shape.type.plaque','_connectorObjects','transformByState','getImage','ShapeMathEqualIcon','add','shapeId','calculate','position','_currentConnectionTarget','NotchedRightArrow','PictureFill','ShapeStar4Icon','shape.type.half-frame','paragraphs','fill','horizontal','ChartStar','univer-mb-2','_commandService','getSkeletonParam','LineInv','dataStream','shape.type.cloud','shape.type.down-arrow-callout','click','Angular','130579mGiSwZ','render','targetShapeId','ShapeCubeIcon','ShapeMathDivideIcon','ShapeLeftRightUpArrowIcon','ShapeDodecagonIcon','shape.type.left-right-arrow-callout','drawWith','_baseHeight','getShapeTypeById','_handleConnectedEndpointMove','isEditing','ShapePlusIcon','Donut','Snip2DiagRect','shape.type.funnel','_unitId','icon','_addShapeConnectorHandlerObjects','ShapeFlowChartInputOutputIcon','DashDot','_drawingRenderService','disableObjectsEvent','ShapeAccentCallout1Icon','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','translateWithPrecision','shape.type.circular-arrow','enableObjectsEvent','ShapeFlowChartOfflineStorageIcon','BorderCallout3','updateDocumentStyle','ShapeFlowChartTerminatorIcon','sheets-shape.fill.picture.tileAsTexture','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','sheets-shape.line.noLine','StraightConnector1','sheets-shape.line.dashType.roundDot','ShapeMathPlusIcon','GradientFill','_findShapeAtPoint','ShapeEllipseRibbonIcon','addObject','ShapeRightArrowCalloutIcon','FlowchartManualOperation','onerror','activeSheet$','Cloud','SolidFill','shape.type.left-arrow','ShapeBentArrowIcon','_initCommands','ShapeLeftCircularArrowIcon','_cxtHandlerPointerMove','Sun','_shapeUpdateListener','shape.type.chevron','ShapeEditor','getTransformer','shape.type.callout1','getZoomRatio','shape.type.corner','ShapeMathMultiplyIcon','onRendered','_drawShapeText','ActionButtonEnd','ShapeAccentCallout3Icon','sheets-shape.line.arrowSize.large','FlowchartDisplay','\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','ShapeFlowChartAlternateProcessIcon','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','capType','Large','getObject','updateConnectionDetection','getMatrix','PieWedge','Rect','ShapeLeftBracketIcon','asObservable','sheetViewStartRow','clipByShape','localToWorld','shapeData','isHorizontal','_initSheetChange','360gDpLHq','Decagon','undo','shape.type.sun','scale','shape.type.curved-right-arrow','shape.type.star10','offsetX','_loadAndSetImage','image','executeCommand','relation','_updateSrcRectByTransform','domY','shape.type.brace-pair','sheets-shape.fill.picture.insert','shape.type.flow-chart-online-storage','ShapeActionButtonHelpIcon','isRender','univer-text-primary-600','AccentBorderCallout2','shape.type.bent-arrow','CROSSHAIR','372972wniSuG','SolidLine','ShapeBentConnector3Icon','shapeType','data','DownArrow','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','localeService','custom','_univerInstanceService','getAdjustValueByName','set','_isHighlighted','Chord','featurePluginUpdateNotification','Ribbon','shape.type.math-plus','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','getAdjustNames','ShapeRoundRectIcon','index','refreshTransform','collapsed','_activeImageId','getFocusDrawings','LongDash','setFillImage','shape.type.flow-chart-sort','sheetViewStartColumn','toolbar.horizontalAlignMode.main','_injector','color','_activeShapeModel','shape.type.action-button-end','end','_updateAdjustControlPositions','ShapeFolderCornerIcon','Path','isLineShape','univer-w-full','worldPoint','_drawingManagerService','ShapeBracePairIcon','registerRenderModule','univer-flex\x20univer-flex-col\x20univer-gap-3','shape.type.flow-chart-summing-junction','MIDDLE','ShapeFlowChartMergeIcon','top','startX','shape.type.math-divide','Line','setDocumentData','ShapeCircularArrowIcon','shape.type.chart-star','Callout2','ShapeCurvedUpArrowIcon','BentConnector3','RightArrowCallout','ShapeFlowChartProcessIcon','_clearShapeConnectorHandlerObjects','shape.type.up-down-arrow','shape.type.can','getSheetBySheetId','_isShouldShowDrawingShapeAdjust','QuadArrowCallout','ShapeFlowChartDocumentIcon','ShapeQuadArrowIcon','blockExecuteWithoutPermission','_getShapeInfo','disableShapeOption','FlowChartInputOutput','sheets-shape.fill.picture.align.b','_insertShapes','FlowchartOffPageConnector','params','sheets-shape.fill.picture.offsetX','_highlightedSiteIndex','adjName','width','sheets-shape.fill.picture.offsetY','focus','shape.type.donut','DRAWING_IMAGE','vertical','documentStyle','syncExecuteCommand','horizontalAlign','StealthArrow','sheets-shape.line.dashType.longDash','getAncestorScale','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','getParent','HalfFrame','shape.type.up-arrow-callout','point','FlowchartTerminator','isRichText','div','Teardrop','_attachAdjustEvent','243402zANPlJ','forEach','ShapePieIcon','ShapeCornerIcon','ShapeBorderCallout1Icon','_generatePasteMutations','align.middle','starAndBanner','prototype','_drawingType','preValue','ShapeBorderCallout2Icon','_registerDrawingFocusChangeHandler','ShapeLeftArrowCalloutIcon','FromArray','_calculateFreeEndpointAngle','_currentUniverService','dispose','\x20px','getBasicShapeRelation','_sheetCanvasPopManagerService','sqrt','size','copyType','shape.type.diag-stripe','sheets-shape.line.arrowType.ovalArrow','shape.type.flow-chart-merge','translate','shape.type.flow-chart-process','Arrow','shape.type.ellipse-ribbon','wrapStrategy','getShapeType','BUTTON','DoubleWave','body','_shapes','_getShapeAdjustPointListById','ActionButtonSound','AccentCallout1','shape.group.','LeftArrow','Dash','left','stopPropagation','toolbar.verticalAlignMode.main','FlowchartAlternateProcess','LeftRightCircularArrow','BentArrow','shape.type.moon','FlowchartDecision','FlowchartPunchedCard','shape.type.rect','restore','_transform','ShapeUpArrowIcon','mergeMenu','getBatchRemoveOp','blur','clip','shape.type.action-button-back-previous','image/*','sheets-shape.fill.picture.align.tl','shape.type.cube','flipX','univer-pt-2','colStartX','setContextValue','shape.type.round1-rect','changeShapeType','registerClipDelegate','BlockArc','setCanUseShapeClip','sheets-shape-ui','object','Flat','Chevron','setAdjustValueByName','computeConnectorResizeLayout','shape.type.action-button-sound','clip-','onload','ShapeLeftBraceIcon','shape.type.block-arc','gdRefR','FlowchartPreparation','ShapeFlowChartExtractIcon','ShapeChartXIcon','gradientType','ShapeSwooshArrowIcon','shape.type.accent-border-callout2','ShapeRibbonIcon','_sheetShapeAdjustController','startConnectionDetection','src','_resetState','CurvedConnector3','TOP','getSkeleton','scaleX','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','_subUnitId','button','_registerFocusChangeHandler','ShapeStar6Icon','rowStartY','changing$','shape.type.left-right-up-arrow','VIEW_MAIN','NonIsoscelesTrapezoid','dashType','updateDocumentDataMargin','shape.type.rt-triangle','SquareTabs','push','isStartConnectorPoint','isFinite','_baseShapeHeight','flipY','complete','44zSeGqi','Ribbon2','ShapeDonutIcon','_transformCalculateSrcRect','\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','Diamond','FlowchartMagneticDrum','shape.type.ellipse','ShapeUturnArrowIcon','ActionButtonForwardNext','_sheetPermissionCheckController','getColorFromTheme','vertexAngle','_getScrollInfo','ShapeLeftRightArrowIcon','sheets-shape.line.sketchType.handDrawn','shape.type.flow-chart-punched-card','#FFFFFF','ShapeDiamondIcon','warn','getInverseCoord','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','shape.type.curved-down-arrow','getConnectionInfo','DiagStripe','shape.type.gear6','ShapeRound2DiagRectIcon','_onSavingEditorData$','shape.type.flow-chart-offpage-connector','input','sheets-shape.line.arrowSize.small','domX','_imageIoService','shape.type.chord','_targetShapeId','shape.type.flow-chart-connector','refreshAdjustControls','subscribeEvent','cxnIndex','updateLinePoints','_cxtHandlerPointerUp','ShapeActionButtonBackPreviousIcon','ShapeWedgeRoundRectCalloutIcon','target','editingParams$','shape.type.quad-arrow-callout','sheet.command.set-shape-text-font-size-decrease','shape.type.line','univer-rounded-lg\x20univer-p-3','_adjName','SwooshArrow','prstGeomAdjValues','scaleY','ShapeMathMinusIcon','_context','ShapeFlowChartConnectorIcon','onCommandExecuted','MathPlus','sheets-shape.line.color','sheets-shape.line.joinType.bevel','_registerDrawingMoveHandler','_isConnecting','opacity','call','subscribeContextValue$','Radial','ShapePlaqueTabsIcon','_baseShapeLeft','sheets-shape.fill.picture.align.br','_registerComponent','ShapeHeartIcon','beforeCommandExecuted','_generateCutPasteMutations','shape.type.heptagon','_closeShapeEditPanel','LAYOUT','ShapeTextEditorContainer','verticalAlign','drawingType','shape.type.snip2-diag-rect','sheets-shape.hidePanel','transform','stringify','FlowchartMultiDocument','shape.type.flow-chart-magnetic-disk','ShapeStar32Icon','shape-text-editor','ActionButtonBlank','endConnectionDetection','LeftBrace','shape.type.flow-chart-offline-storage','_sheetsShapeService','_getImageDrawingInfo','SquareDot','replace','#4285f4','align.center','shape.type.uturn-arrow','align.left','ShapeCurvedConnector3Arrow1Icon','HorizontalScroll','getDrawingOrder','update$','ShapeFrameIcon','ShapeLightningBoltIcon','max','FlowchartMerge','getOwnPropertyDescriptor','drawingId','ShapeDownArrowCalloutIcon','shape.type.rect-textbox-horizontal','FlowchartInternalStorage','_isImagePointerDown','clearAdjustControls','RIGHT','shape.type.line-inv','shape-text-editor-content','ActionButtonBeginning','_componentManager','shape.type.action-button-information','setEditing','ActionButtonHome','FlowChartOfflineStorage','cxnPointStroke','ShapeCanIcon','univer-relative\x20univer-size-full\x20univer-overflow-visible','shape.type.action-button-blank','_isDrawingShapePointDown','NoSmoking','Frame','_sheetClipboardService','useAbsolutePosition','_isStartConnectorPoint','Star24','WedgeRectCallout','dataModel','ShapeFlowChartPredefinedProcessIcon','subscribe','with','OpenArrow','Linear','LeftRightArrow','ShapeActionButtonBeginningIcon','getCurrentLastSelection','_initCopyPaste','draw','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','fillImageSource','shape.type.left-circular-arrow','_activeAdjustPointList','shape.type.flow-chart-or','None','VIEW_MAIN_TOP','ShapeBentConnector3Arrow2Icon','rotate(','decorate','119wECZWn','img','Curved','EllipseRibbon','sheet.command.set-shape-text-font-size','basicShape','objects','UturnArrow','sheets-shape.fill.gradientFill','IrregularSeal2','ShapeWedgeRectCalloutIcon','changeEnd$','focus$','FORMAT','ShapeBentConnector3Arrow1Icon','fillImageSourceType','parse','shape.type.arc','values','_adjHandlerPointerMove','ShapeHeptagonIcon','_props','_activeAdjustInfo','flowchart','_configService','scene','DEFAULT_PASTE','sheets-shape.line.capType.round','MathMinus','URL','gdRefY','gradientStops','getBentTypeFromPoints','name','gdRefAng','sheets-shape.fill.picture.align.t','getFreeze','_activeShapeInfo','_localeService','_clipService','SELECTOR','align.top','deepClone','pushUndoRedo','ShapeSnip1RectIcon','ShapeSnipRoundRectIcon','FlowchartSummingJunction','setHighlighted','unitId','ShapeFlowChartMagneticTapeIcon','RightJustifyingIcon','ShapeWedgeEllipseCalloutIcon','Cube','cos','Round','VIEW_MAIN_LEFT','engine','ShapeNotchedRightArrowIcon','none','BentUpArrow','_getImagePrstGeom','sheets-shape.fill.pictureFill','ShapeGear9Icon','getSelectionRanges','ShapeStar10Icon','sheets-shape.config','ShapeLeftRightCircularArrowIcon','getCurrentScrollState','shape.type.curved-connector3','sheets-shape.line.joinType.title','_updateShapeAdjustControls','_imageShapeClipController','isDrawingObject','onSavingEditorData$','ShapeSmileyFaceIcon','sheet.command.set-shape-text-font-size-increase','onTransformChange$','shape.type.flow-chart-manual-operation','sheets-shape.line.dashType.longDashDot','shape.type.non-isosceles-trapezoid','ShapeRectIcon','ShapePentagonIcon','iterator','cxnPointFill','getShapePopupMenus','ShapeStar7Icon','getObjectIncludeInGroup','ShapeChevronIcon','other','ShapeSquareTabsIcon','sheets-shape.line.width','_executeConnectedRouteResizeCommand','shape.type.round2-diag-rect','UNIVER_DOC','map','computeStraightConnectorLayout','activeAnObject','AlignBottomIcon','QuadArrow','getCanvasElement','INSERT','ShapeFlowChartDisplayIcon','Medium','sheets-shape.line.capType.title','GROUP','ShapeSnip2DiagRectIcon','2476015owCoaD','ShapeAccentBorderCallout1Icon','Octagon','worldPoints','_shapeService','_clearControls','ShapeAccentCallout2Icon','connection-site-','ShapeFlowChartPunchedCardIcon','stops','shape.type.curved-connector3-arrow2','shape.type.border-callout1','shape.type.callout3','onPointerUp$','_sidebarDisposable','viewBound','RightTriangle','Wave','sheet.operation.close-sheet-shape-format-panel','section','ShapeBlockArcIcon','_handleFreeEndpointPointerUp','registerCommand','floor','NoLine','includes','toPrimitive','ShapePieWedgeIcon','FlowchartCollate','ShapeRightArrowIcon','_getDrawingRect','style','ShapeParallelogramIcon','shape.type.lightning-bolt','CUT','resize','strokeWidth','_registerShapeMenu','shape.type.straight-connector2','imageFillMode','ShapeStar12Icon','ShapeChordIcon','VIEW_MAIN_LEFT_TOP','sheets-shape.fill.picture.align.bl','ShapeStripedRightArrowIcon','mainComponent','LongDashDot','univer-text-xl\x20univer-text-gray-500','VerticalCenterIcon','_attachConnectorObjectEvent','_generateCopyPasteMutations','gdRefX','LightningBolt','shape.type.diamond','angle','ShapeBevelIcon','lineShapeId','ShapeSnip2SameRectIcon','_baseTop','sheets-shape.line.arrowType.diamondArrow','_moveConnectorWithShape','ShapeRectTextboxHorizontalIcon','ShapeActionButtonDocumentIcon','ShapeDownArrowIcon','ShapeAccentBorderCallout2Icon','SHAPE','shape.type.star7','ShapeUpDownArrowIcon','align.right','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','radial','Miter','sheets-shape.fill.title','_initSelection','Star4','ShapeUpArrowCalloutIcon','SHEET_SHAPE_UI_PLUGIN','shape.type.flow-chart-magnetic-drum','_cxnIndex','sheets-shape.line.endArrowSize','adjHandleStroke','sin','getDrawingSearch','CurvedRightArrow','ShapeNoSmokingIcon','5769080wBUXzP','Round2SameRect','prstGeom','getDocumentData','OvalArrow','UpArrowCallout','ENTER','shape.type.flow-chart-terminator','fillType','getBatchAddOp','CloudCallout','COMMAND','FlowchartProcess','_executeResizeCommand','bind','ShapeCurvedConnector3Arrow2Icon','shape.type.bent-connector3-arrow1','AccentCallout3','univer-text-gray-600\x20univer-transition-transform','slice','redo','shape.type.bent-up-arrow','shape-text-','SHAPE_TEXT','cxnPointRadius','_registerGroupFeaturePasteHook','DownArrowCallout','startY','_sheetDrawingShapeRenderController','shape.type.left-brace','shape.type.octagon','ShapePlaqueIcon','RightArrow','getConnectionSiteList','symbol','_drawingAddListener','StripedRightArrow','ShapeFlowChartMultidocumentIcon'];_0x517c=function(){return _0x4179d5;};return _0x517c();}function $(_0x4e907e,_0x163b18,_0x4ba148,_0x5545e0){const _0x5c6ec6=_0x304ba4;var _0x3f6ebb=arguments[_0x5c6ec6(0x1a1)],_0x34f42c=_0x3f6ebb<0x3?_0x163b18:_0x5545e0===null?_0x5545e0=Object[_0x5c6ec6(0x446)](_0x163b18,_0x4ba148):_0x5545e0,_0x42f3b9;if(typeof Reflect=='object'&&typeof Reflect[_0x5c6ec6(0x476)]==_0x5c6ec6(0x596))_0x34f42c=Reflect[_0x5c6ec6(0x476)](_0x4e907e,_0x163b18,_0x4ba148,_0x5545e0);else{for(var _0x5b3d13=_0x4e907e[_0x5c6ec6(0x1a1)]-0x1;_0x5b3d13>=0x0;_0x5b3d13--)(_0x42f3b9=_0x4e907e[_0x5b3d13])&&(_0x34f42c=(_0x3f6ebb<0x3?_0x42f3b9(_0x34f42c):_0x3f6ebb>0x3?_0x42f3b9(_0x163b18,_0x4ba148,_0x34f42c):_0x42f3b9(_0x163b18,_0x4ba148))||_0x34f42c);}return _0x3f6ebb>0x3&&_0x34f42c&&Object['defineProperty'](_0x163b18,_0x4ba148,_0x34f42c),_0x34f42c;}let no=class extends _0x1a987c{constructor(_0x13c8ef,_0x16cade,_0x4bfd1d,_0x46c332,_0x3d74e4){const _0x1335e6=_0x304ba4;super(),this[_0x1335e6(0x327)]=_0x13c8ef,this[_0x1335e6(0x436)]=_0x16cade,this[_0x1335e6(0x49d)]=_0x4bfd1d,this[_0x1335e6(0x3fb)]=_0x46c332,this['_urlImageService']=_0x3d74e4;}['renderDrawingShape'](_0x30ef65,_0x5d4db0){const _0x3ca543=_0x304ba4;let {transform:_0x4e2ef3,drawingType:_0x1fe11b,srcRect:_0x585f86,prstGeom:_0xa55036,groupId:_0x6d2c92,unitId:_0x4faa27,subUnitId:_0x1cda1c,drawingId:_0x5804a3,isMultiTransform:_0x5c7798,transforms:_0xd6d8c3,hidden:_0x4a05ba}=_0x30ef65;if(_0x1fe11b!==_0x2375be['DRAWING_SHAPE']||!this['_drawingManagerService']['getDrawingVisible']()||_0x4e2ef3==null)return;let _0xbca074=_0x5c7798&&_0xd6d8c3?_0xd6d8c3:[_0x4e2ef3],_0x45a4cf=[];for(let _0x590611 of _0xbca074){let {left:_0x27674b,top:_0x49e04c,width:_0x429774,height:_0x3bf7b2,angle:_0x48f55b,flipX:_0x2e9d05,flipY:_0x6d7404,skewX:_0xf724b0,skewY:_0x42c662}=_0x590611,_0x1b4a27=_0xbca074[_0x3ca543(0x195)](_0x590611),_0x55ae2d=_0x4ac3ac({'unitId':_0x4faa27,'subUnitId':_0x1cda1c,'drawingId':_0x5804a3},_0x5c7798?_0x1b4a27:void 0x0),_0x1161b0=_0x5d4db0[_0x3ca543(0x4cd)](_0x55ae2d);if(_0x1161b0!=null){_0x1161b0[_0x3ca543(0x277)]({'left':_0x27674b,'top':_0x49e04c,'width':_0x429774,'height':_0x3bf7b2,'angle':_0x48f55b,'flipX':_0x2e9d05,'flipY':_0x6d7404,'skewX':_0xf724b0,'skewY':_0x42c662});continue;}let _0x1c1007=this[_0x3ca543(0x327)][_0x3ca543(0x440)](_0x4faa27,_0x1cda1c),_0x402dea=_0x1c1007[_0x3ca543(0x195)](_0x5804a3);if(_0x5d4db0[_0x3ca543(0x4cd)](_0x55ae2d)||!this['_drawingManagerService']['getDrawingVisible']())continue;let _0x5dc1db=this[_0x3ca543(0x436)][_0x3ca543(0x264)](_0x4faa27,_0x1cda1c,_0x5804a3);if(!_0x5dc1db)continue;let _0x3d1ec1=new to(_0x55ae2d,{..._0x1326e8(_0x5dc1db['getShapeType']())?{..._0x590611,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x590611},'zIndex':_0x402dea===-0x1?_0x1c1007['length']-0x1:_0x402dea,'shapeModel':_0x5dc1db,'localeService':this[_0x3ca543(0x49d)],'shapeId':_0x5804a3,'unitId':_0x4faa27,'subUnitId':_0x1cda1c,'visible':_0x4a05ba!==!0x0});_0x5d4db0[_0x3ca543(0x2ba)](_0x3d1ec1,_0x395f9d),this[_0x3ca543(0x327)]['getDrawingEditable']()&&_0x5d4db0['attachTransformerTo'](_0x3d1ec1),_0x6d2c92&&_0x326e82({'drawingId':_0x6d2c92,'unitId':_0x4faa27,'subUnitId':_0x1cda1c},_0x3d1ec1,_0x5d4db0,this[_0x3ca543(0x327)]),_0xa55036!=null&&_0x3d1ec1['setPrstGeom'](_0xa55036),_0x585f86!=null&&_0x3d1ec1[_0x3ca543(0x179)](_0x585f86),this[_0x3ca543(0x5ec)](_0x3d1ec1,_0x5dc1db['getShapeData']()),_0x45a4cf['push'](_0x3d1ec1);}return _0x45a4cf;}[_0x304ba4(0x5ec)](_0x1da47d,_0x4f9bfc){const _0x11bc32=_0x304ba4;var _0x348759;let _0x2664b9=_0x4f9bfc[_0x11bc32(0x284)];if(!_0x2664b9||_0x2664b9[_0x11bc32(0x53e)]!==_0x3defb2[_0x11bc32(0x280)]||!_0x2664b9[_0x11bc32(0x46e)])return;let _0x1d907b=_0x2664b9[_0x11bc32(0x46e)],_0x46f6a2=(_0x348759=_0x2664b9[_0x11bc32(0x486)])==null?_0x4b7a88['URL']:_0x348759,_0x3890aa=this[_0x11bc32(0x3fb)][_0x11bc32(0x168)](_0x1d907b,_0x46f6a2);if(_0x3890aa){_0x1da47d['setFillImage'](_0x3890aa);return;}this['_loadAndSetImage'](_0x1da47d,_0x1d907b,_0x46f6a2);}async[_0x304ba4(0x2ef)](_0x57e943,_0x266bd3,_0x31b9b8){const _0x3fa4df=_0x304ba4;let _0x2e220b;try{if(_0x31b9b8===_0x4b7a88[_0x3fa4df(0x1cd)])_0x2e220b=await this[_0x3fa4df(0x3fb)][_0x3fa4df(0x278)](_0x266bd3);else{if(_0x31b9b8===_0x4b7a88[_0x3fa4df(0x494)])try{_0x2e220b=await this[_0x3fa4df(0x17b)][_0x3fa4df(0x278)](_0x266bd3);}catch{_0x2e220b=_0x266bd3;}else _0x2e220b=_0x266bd3;}}catch(_0x34adc4){console['error'](_0x3fa4df(0x2a9),_0x34adc4);return;}let _0x5e9e36=new window[(_0x3fa4df(0x5ba))]();_0x5e9e36[_0x3fa4df(0x3b4)]=()=>{const _0x550a07=_0x3fa4df;this[_0x550a07(0x3fb)][_0x550a07(0x1d9)](_0x266bd3,_0x31b9b8,_0x5e9e36),_0x57e943[_0x550a07(0x318)](_0x5e9e36);},_0x5e9e36[_0x3fa4df(0x2bd)]=()=>{const _0x55e080=_0x3fa4df;console[_0x55e080(0x16a)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x266bd3);},_0x5e9e36[_0x3fa4df(0x3c1)]=_0x2e220b;}};no=$([Q(0x0,_0x5873e9),Q(0x1,_0x28dee4(_0x3538a1)),Q(0x2,_0x28dee4(_0x164f0a)),Q(0x3,_0x2d41e9),Q(0x4,_0x5cad10)],no);let ro=class extends _0x1a987c{constructor(_0xd1fd31,_0x5a02a8,_0x588b56,_0x47a432,_0x4e94cc,_0x5bee38){const _0x48216b=_0x304ba4;super(),this[_0x48216b(0x288)]=_0xd1fd31,this[_0x48216b(0x5a0)]=_0x5a02a8,this[_0x48216b(0x327)]=_0x588b56,this[_0x48216b(0x373)]=_0x47a432,this[_0x48216b(0x2a6)]=_0x4e94cc,this[_0x48216b(0x552)]=_0x5bee38,this[_0x48216b(0x573)]();}[_0x304ba4(0x573)](){const _0x4cfc20=_0x304ba4;this[_0x4cfc20(0x559)](),this['_commandExecutedListener'](),this[_0x4cfc20(0x2c7)]();}[_0x304ba4(0x559)](){const _0x16d855=_0x304ba4;this[_0x16d855(0x1e2)](this[_0x16d855(0x327)][_0x16d855(0x5cb)][_0x16d855(0x464)](_0x2e0391=>{this['_insertShapes'](_0x2e0391);}));}[_0x304ba4(0x5f7)](){const _0x179bca=_0x304ba4;this[_0x179bca(0x1e2)](this[_0x179bca(0x288)][_0x179bca(0x413)](_0x13618e=>{const _0x2020e2=_0x179bca;if(_0x13618e['id']===_0x63ebfb['id']){var _0x3090b4;let {unitId:_0x3ce4e7,subUnitId:_0x5279f7,shapeId:_0x23e4ed}=_0x13618e[_0x2020e2(0x349)],_0x5cb531=this['_getSceneAndTransformerByDrawingSearch'](_0x3ce4e7);if(_0x5cb531==null)return;let {scene:_0x2169bc}=_0x5cb531,_0x30de58=_0x4ac3ac({'unitId':_0x3ce4e7,'subUnitId':_0x5279f7,'drawingId':_0x23e4ed}),_0x595f28=_0x2169bc[_0x2020e2(0x4cd)](_0x30de58);if(!((_0x3090b4=this['_renderManagerService'][_0x2020e2(0x1c2)](_0x3ce4e7))!=null&&_0x3090b4[_0x2020e2(0x465)](_0x23f58f)[_0x2020e2(0x3c5)](_0x5279f7)))return!0x1;if(_0x595f28)return;this[_0x2020e2(0x347)]([{'unitId':_0x3ce4e7,'subUnitId':_0x5279f7,'drawingId':_0x23e4ed}]);}}));}[_0x304ba4(0x2c7)](){const _0x33af96=_0x304ba4;this[_0x33af96(0x1e2)](this[_0x33af96(0x327)][_0x33af96(0x441)][_0x33af96(0x464)](_0x3d2f68=>{const _0x37f1b5=_0x33af96;_0x3d2f68[_0x37f1b5(0x364)](_0x51b7b9=>{const _0xe66ca4=_0x37f1b5;let {unitId:_0x44cf8a,subUnitId:_0x3e7e7f,drawingId:_0x1381ed}=_0x51b7b9,_0x40367f=this['_drawingManagerService'][_0xe66ca4(0x237)](_0x51b7b9);if(_0x40367f==null)return;let {transform:_0x385f22,drawingType:_0x6bcc51,srcRect:_0x41ca9d,prstGeom:_0x40e02f}=_0x40367f;if(_0x6bcc51!==_0x2375be[_0xe66ca4(0x217)])return;let _0x3399aa=this[_0xe66ca4(0x562)](_0x44cf8a);if(_0x3399aa==null)return;let {scene:_0x592228,transformer:_0x2036b9}=_0x3399aa;if(_0x385f22==null)return!0x0;let _0x3b4f82=_0x4ac3ac({'unitId':_0x44cf8a,'subUnitId':_0x3e7e7f,'drawingId':_0x1381ed}),_0xae0706=_0x592228[_0xe66ca4(0x4cd)](_0x3b4f82);if(_0xae0706==null)return!0x0;_0xae0706[_0xe66ca4(0x179)](_0x41ca9d),_0xae0706['setPrstGeom'](_0x40e02f);});}));}[_0x304ba4(0x21d)](_0x444d50,_0x14d440){const _0x3b170d=_0x304ba4;let {unitId:_0xe150f5,subUnitId:_0x3e4415,drawingId:_0x1098c1}=_0x444d50,_0x57bd18=this[_0x3b170d(0x562)](_0xe150f5);if(_0x57bd18==null)return;let {scene:_0x358d87}=_0x57bd18,_0x471e49=_0x4ac3ac({'unitId':_0xe150f5,'subUnitId':_0x3e4415,'drawingId':_0x1098c1}),_0x4b8119=_0x358d87[_0x3b170d(0x4cd)](_0x471e49);_0x4b8119!=null&&_0x4b8119[_0x3b170d(0x318)](_0x14d440);}[_0x304ba4(0x347)](_0x4c31de){const _0x20dd97=_0x304ba4;_0x4c31de[_0x20dd97(0x364)](async _0x1f8ac8=>{const _0x29c825=_0x20dd97;var _0x2be4d1;let {unitId:_0x21e675,subUnitId:_0x3670d0}=_0x1f8ac8,_0x597cbc=this[_0x29c825(0x562)](_0x21e675),_0xd946cc=(_0x2be4d1=_0x1ac13e(this[_0x29c825(0x373)],_0x21e675))==null?void 0x0:_0x2be4d1[_0x29c825(0x5ca)];if(_0x597cbc==null||_0xd946cc!==_0x3670d0)return;let _0x437f6d=this['_drawingManagerService']['getDrawingByParam'](_0x1f8ac8);if(_0x437f6d!=null&&_0x437f6d[_0x29c825(0x429)]===_0x2375be[_0x29c825(0x217)]){if(_0x1326e8((_0x437f6d[_0x29c825(0x302)]||{})[_0x29c825(0x301)])){let _0x1ef1cb=_0x437f6d[_0x29c825(0x42c)];_0x1ef1cb&&(_0x437f6d[_0x29c825(0x42c)]={..._0x1ef1cb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x29c825(0x327)][_0x29c825(0x313)]([_0x437f6d]),this[_0x29c825(0x552)]['renderDrawingShape'](_0x437f6d,_0x597cbc[_0x29c825(0x490)]);}});}[_0x304ba4(0x562)](_0x2b4068){const _0x1daca0=_0x304ba4;if(_0x2b4068==null)return;let _0x505539=this[_0x1daca0(0x5a0)][_0x1daca0(0x1c2)](_0x2b4068),_0x2a1b29=_0x505539==null?void 0x0:_0x505539[_0x1daca0(0x490)];return _0x2a1b29==null?null:{'scene':_0x2a1b29,'transformer':_0x2a1b29[_0x1daca0(0x224)]()};}};ro=$([Q(0x0,_0xc97706),Q(0x1,_0x1dfd06),Q(0x2,_0x5873e9),Q(0x3,_0x10d47e),Q(0x4,_0x28dee4(_0x1938fe)),Q(0x5,_0x28dee4(no))],ro);function io(_0x4c760d){const _0x530ea5=_0x304ba4;var _0x3015a1,_0xed8441,_0x357aed,_0x52c2fa,_0x1aa435,_0x44788a,_0x5eba96,_0x370117,_0x9f55b4,_0x398484,_0xc104cb,_0x1c21e7,_0x4c4011;let {unitId:_0x3fd8ad,subUnitId:_0x391610,shapeId:_0x4584fe,shapeData:_0x4f7226,disableShapeOption:_0x26c323}=_0x4c760d,_0x4da682=_0x146012(_0x164f0a),_0x3ea64f=_0x146012(_0xc97706),_0x29f76a=_0x146012(_0x3c1d80),_0x5ce363=_0x146012(ro),_0xc5e37c=_0x146012(_0x2d41e9),_0x1228c1=_0x1569d1(null),_0xfcc182=_0x4f7226[_0x530ea5(0x284)],_0x43785d=!!(_0xfcc182!=null&&_0xfcc182[_0x530ea5(0x46e)]),[_0x2d0e82,_0x376268]=_0x50ccba((_0x3015a1=_0xfcc182==null?void 0x0:_0xfcc182[_0x530ea5(0x230)])==null?0x1:_0x3015a1),[_0x544842,_0x28b74d]=_0x50ccba((_0xed8441=_0xfcc182==null?void 0x0:_0xfcc182[_0x530ea5(0x508)])==null?_0x2a9cee[_0x530ea5(0x162)]:_0xed8441),[_0x270e27,_0x28d819]=_0x50ccba((_0x357aed=_0xfcc182==null?void 0x0:_0xfcc182['imageRotateWithShape'])==null?!0x1:_0x357aed),[_0x52e03a,_0x3b2126]=_0x50ccba((_0x52c2fa=_0xfcc182==null||(_0x1aa435=_0xfcc182[_0x530ea5(0x1f0)])==null?void 0x0:_0x1aa435[_0x530ea5(0x2ee)])==null?0x0:_0x52c2fa),[_0x844b2d,_0x447827]=_0x50ccba((_0x44788a=_0xfcc182==null||(_0x5eba96=_0xfcc182['imageTile'])==null?void 0x0:_0x5eba96['offsetY'])==null?0x0:_0x44788a),[_0x2edde9,_0x140571]=_0x50ccba((_0x370117=_0xfcc182==null||(_0x9f55b4=_0xfcc182['imageTile'])==null?void 0x0:_0x9f55b4[_0x530ea5(0x3c6)])==null?0x1:_0x370117),[_0x350a57,_0x5d3bc9]=_0x50ccba((_0x398484=_0xfcc182==null||(_0xc104cb=_0xfcc182[_0x530ea5(0x1f0)])==null?void 0x0:_0xc104cb[_0x530ea5(0x40f)])==null?0x1:_0x398484),[_0x4d1afe,_0x5c2be9]=_0x50ccba((_0x1c21e7=_0xfcc182==null||(_0x4c4011=_0xfcc182[_0x530ea5(0x1f0)])==null?void 0x0:_0x4c4011['alignment'])==null?'tl':_0x1c21e7),_0x9c2a8c=_0x544842===_0x2a9cee[_0x530ea5(0x222)],_0xee4662=Math[_0x530ea5(0x1ac)]((0x1-_0x2d0e82)*0x64),_0x48c759=Math[_0x530ea5(0x1ac)](_0x2edde9*0x64),_0x1cef25=Math['round'](_0x350a57*0x64),_0x11d74a=_0x139eac=>_0x4da682['t'](_0x139eac),_0x126267=[{'label':_0x11d74a(_0x530ea5(0x3a1)),'value':'tl'},{'label':_0x11d74a(_0x530ea5(0x49a)),'value':'t'},{'label':_0x11d74a('sheets-shape.fill.picture.align.tr'),'value':'tr'},{'label':_0x11d74a(_0x530ea5(0x5bd)),'value':'l'},{'label':_0x11d74a(_0x530ea5(0x16b)),'value':_0x530ea5(0x265)},{'label':_0x11d74a('sheets-shape.fill.picture.align.r'),'value':'r'},{'label':_0x11d74a(_0x530ea5(0x50c)),'value':'bl'},{'label':_0x11d74a(_0x530ea5(0x346)),'value':'b'},{'label':_0x11d74a(_0x530ea5(0x41f)),'value':'br'}],_0x117fc2=_0x539a5b=>{Z(_0x3ea64f,_0x3fd8ad,_0x391610,_0x4584fe,{'oldShapeData':{'fill':_0xfcc182?{..._0xfcc182}:void 0x0}},{'fill':{..._0xfcc182,..._0x539a5b}});},_0x38b830=_0x52a1ef=>{_0x117fc2({'imageTile':{..._0xfcc182==null?void 0x0:_0xfcc182['imageTile'],..._0x52a1ef}});},_0x467468=()=>{const _0x49810f=_0x530ea5;var _0x5058cc;return(_0x5058cc=_0x1228c1[_0x49810f(0x1ee)])==null?void 0x0:_0x5058cc[_0x49810f(0x28e)]();},_0x404c7d=async _0x5c0a17=>{const _0xae0b4e=_0x530ea5;var _0x51b57b;let _0x366258=(_0x51b57b=_0x5c0a17[_0xae0b4e(0x406)][_0xae0b4e(0x5f5)])==null?void 0x0:_0x51b57b[0x0];if(!_0x366258)return;_0x5c0a17[_0xae0b4e(0x406)][_0xae0b4e(0x232)]='';let _0x2f937e=await _0xc5e37c['saveImage'](_0x366258);if(_0x2f937e==null)return;let {imageSourceType:_0x1e6081,source:_0x7cc4ee,base64Cache:_0x487baf}=_0x2f937e,{image:_0x281864}=await _0x3e3f96(_0x487baf||'');_0xc5e37c[_0xae0b4e(0x1d9)](_0x7cc4ee,_0x1e6081,_0x281864),Z(_0x3ea64f,_0x3fd8ad,_0x391610,_0x4584fe,{'oldShapeData':{'fill':_0xfcc182?{..._0xfcc182}:void 0x0}},{'fill':{..._0xfcc182,'fillType':_0x3defb2[_0xae0b4e(0x280)],'fillImageSource':_0x7cc4ee,'fillImageSourceType':_0x1e6081}}),_0x5ce363['updateShapeFillImage']({'unitId':_0x3fd8ad,'subUnitId':_0x391610,'drawingId':_0x4584fe},_0x281864);},_0x4cacbd='univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200',_0x4c06df=_0x530ea5(0x5af);return _0x11e0f1(_0x530ea5(0x360),{'className':_0x530ea5(0x2b2),'children':[_0x11e0f1(_0x530ea5(0x360),{'className':_0x530ea5(0x20f),'children':[_0x21e6bb('span',{'className':_0x4cacbd,'children':_0x11d74a(_0x530ea5(0x142))}),_0x11e0f1('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x21e6bb(_0x530ea5(0x3f8),{'ref':_0x1228c1,'type':'file','accept':_0x530ea5(0x3a0),'className':'univer-hidden','onChange':_0x404c7d}),_0x11e0f1(_0x530ea5(0x360),{'className':'group\x20univer-relative\x20univer-inline-block','children':[_0x21e6bb('button',{'type':_0x530ea5(0x3c9),'disabled':_0x26c323,'className':_0x530ea5(0x30f),'onClick':_0x467468,'children':_0x11e0f1(_0x530ea5(0x187),{'children':[_0x11d74a(_0x530ea5(0x2f6)),'\x20']})}),_0x43785d&&_0x21e6bb(_0x530ea5(0x360),{'className':_0x530ea5(0x3df),'children':_0x21e6bb(_0x530ea5(0x478),{'src':_0xfcc182==null?void 0x0:_0xfcc182[_0x530ea5(0x46e)],'alt':'','className':_0x530ea5(0x46d)})})]})]})]}),_0x11e0f1('div',{'className':_0x4c06df,'children':[_0x21e6bb(_0x530ea5(0x187),{'className':_0x4cacbd,'children':_0x11d74a(_0x530ea5(0x15b))}),_0x21e6bb(_0x530ea5(0x360),{'className':'univer-w-20','children':_0x21e6bb(_0x5a41bb,{'className':'univer-w-full','value':_0xee4662,'disabled':_0x26c323,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x3720ba=>_0x3720ba+'%','parser':_0xb498a1=>(_0xb498a1==null?void 0x0:_0xb498a1[_0x530ea5(0x439)]('%',''))||'','onChange':_0x8eb22a=>{const _0x541ce5=_0x530ea5;let _0x304639=(0x64-Math[_0x541ce5(0x444)](0x0,Math['min'](0x64,_0x8eb22a==null?0x0:_0x8eb22a)))/0x64;_0x376268(_0x304639),_0x117fc2({'imageOpacity':_0x304639}),_0x29f76a[_0x541ce5(0x3a6)](_0x37c9b2,!0x1);},'onFocus':()=>_0x29f76a[_0x530ea5(0x3a6)](_0x37c9b2,!0x0),'onBlur':()=>_0x29f76a[_0x530ea5(0x3a6)](_0x37c9b2,!0x1)})})]}),_0x21e6bb(_0x4552df,{'checked':_0x9c2a8c,'disabled':_0x26c323,'onChange':_0x2b3f13=>{let _0x224c84=_0x2b3f13?_0x2a9cee['Tile']:_0x2a9cee['Stretch'];_0x28b74d(_0x224c84),_0x117fc2({'imageFillMode':_0x224c84});},'children':_0x21e6bb(_0x530ea5(0x187),{'className':'univer-text-sm','children':_0x11d74a(_0x530ea5(0x2b1))})}),_0x9c2a8c&&_0x11e0f1('div',{'className':_0x530ea5(0x2d5),'children':[_0x11e0f1('div',{'className':_0x4c06df,'children':[_0x21e6bb('span',{'className':_0x4cacbd,'children':_0x11d74a(_0x530ea5(0x34a))}),_0x21e6bb('div',{'className':_0x530ea5(0x5a1),'children':_0x21e6bb(_0x5a41bb,{'className':_0x530ea5(0x325),'value':_0x52e03a,'disabled':_0x26c323,'step':0x1,'onChange':_0x28c27c=>{_0x38b830({'offsetX':_0x28c27c==null?0x0:_0x28c27c}),_0x3b2126(_0x28c27c==null?0x0:_0x28c27c);},'onFocus':()=>_0x29f76a[_0x530ea5(0x3a6)](_0x37c9b2,!0x0),'onBlur':()=>_0x29f76a[_0x530ea5(0x3a6)](_0x37c9b2,!0x1)})})]}),_0x11e0f1('div',{'className':_0x4c06df,'children':[_0x21e6bb(_0x530ea5(0x187),{'className':_0x4cacbd,'children':_0x11d74a(_0x530ea5(0x34e))}),_0x21e6bb(_0x530ea5(0x360),{'className':'univer-w-20','children':_0x21e6bb(_0x5a41bb,{'className':_0x530ea5(0x325),'value':_0x844b2d,'disabled':_0x26c323,'step':0x1,'onChange':_0x27eefc=>{_0x38b830({'offsetY':_0x27eefc==null?0x0:_0x27eefc}),_0x447827(_0x27eefc==null?0x0:_0x27eefc);},'onFocus':()=>_0x29f76a[_0x530ea5(0x3a6)](_0x37c9b2,!0x0),'onBlur':()=>_0x29f76a[_0x530ea5(0x3a6)](_0x37c9b2,!0x1)})})]}),_0x11e0f1('div',{'className':_0x4c06df,'children':[_0x21e6bb('span',{'className':_0x4cacbd,'children':_0x11d74a(_0x530ea5(0x59f))}),_0x21e6bb(_0x530ea5(0x360),{'className':'univer-w-20','children':_0x21e6bb(_0x5a41bb,{'className':_0x530ea5(0x325),'value':_0x48c759,'disabled':_0x26c323,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0xa9802e=>_0xa9802e+'%','parser':_0x3f4535=>(_0x3f4535==null?void 0x0:_0x3f4535['replace']('%',''))||'','onChange':_0x3e0953=>{const _0x263cb2=_0x530ea5;let _0x2eb681=Math[_0x263cb2(0x444)](0.01,(_0x3e0953==null?0x64:_0x3e0953)/0x64);_0x140571(_0x2eb681),_0x38b830({'scaleX':_0x2eb681}),_0x29f76a['setContextValue'](_0x37c9b2,!0x1);},'onFocus':()=>_0x29f76a['setContextValue'](_0x37c9b2,!0x0),'onBlur':()=>_0x29f76a[_0x530ea5(0x3a6)](_0x37c9b2,!0x1)})})]}),_0x11e0f1(_0x530ea5(0x360),{'className':_0x4c06df,'children':[_0x21e6bb(_0x530ea5(0x187),{'className':_0x4cacbd,'children':_0x11d74a(_0x530ea5(0x5dd))}),_0x21e6bb('div',{'className':_0x530ea5(0x5a1),'children':_0x21e6bb(_0x5a41bb,{'className':'univer-w-full','value':_0x1cef25,'disabled':_0x26c323,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x44625d=>_0x44625d+'%','parser':_0x10d228=>(_0x10d228==null?void 0x0:_0x10d228['replace']('%',''))||'','onChange':_0x4802bb=>{const _0x33d0cc=_0x530ea5;let _0x27f32a=Math['max'](0.01,(_0x4802bb==null?0x64:_0x4802bb)/0x64);_0x5d3bc9(_0x27f32a),_0x38b830({'scaleY':_0x27f32a}),_0x29f76a[_0x33d0cc(0x3a6)](_0x37c9b2,!0x1);},'onFocus':()=>_0x29f76a[_0x530ea5(0x3a6)](_0x37c9b2,!0x0),'onBlur':()=>_0x29f76a['setContextValue'](_0x37c9b2,!0x1)})})]}),_0x11e0f1(_0x530ea5(0x360),{'className':_0x4c06df,'children':[_0x21e6bb(_0x530ea5(0x187),{'className':_0x4cacbd,'children':_0x11d74a('sheets-shape.fill.picture.alignment')}),_0x21e6bb('div',{'className':_0x530ea5(0x5e8),'children':_0x21e6bb(_0x41065f,{'className':_0x530ea5(0x325),'value':_0x4d1afe,'options':_0x126267,'disabled':_0x26c323,'onChange':_0x5a929f=>{_0x5c2be9(_0x5a929f),_0x38b830({'alignment':_0x5a929f});}})})]})]}),_0x21e6bb(_0x4552df,{'checked':_0x270e27,'disabled':_0x26c323,'onChange':_0x2ff783=>{_0x28d819(_0x2ff783),_0x117fc2({'imageRotateWithShape':_0x2ff783});},'children':_0x21e6bb(_0x530ea5(0x187),{'className':_0x530ea5(0x26c),'children':_0x11d74a(_0x530ea5(0x160))})})]});}function ao(_0x5a1d6e){const _0x3b6a06=_0x304ba4;var _0x3b82ab,_0x201148,_0x550cc7;let _0x4829bb=_0x146012(_0x164f0a),_0x34aa4e=_0x146012(_0xc97706),_0x4e42df=_0x146012(_0x3c1d80),{shapeData:_0x2c7401,isLineShape:_0x4126c7,unitId:_0x4277da,subUnitId:_0x317494,shapeId:_0x35a72e,disableShapeOption:_0x516992}=_0x5a1d6e,[_0x281185,_0x37387d]=_0x50ccba(((_0x3b82ab=_0x2c7401[_0x3b6a06(0x284)])==null?void 0x0:_0x3b82ab[_0x3b6a06(0x53e)])||_0x3defb2[_0x3b6a06(0x2c0)]),[_0x100fb6,_0x25fb30]=_0x50ccba(((_0x201148=_0x2c7401[_0x3b6a06(0x284)])==null?void 0x0:_0x201148[_0x3b6a06(0x31d)])||_0x9cc8fa[_0x3b6a06(0x284)]),[_0x55b416,_0x1c93c0]=_0x50ccba(((_0x550cc7=_0x2c7401[_0x3b6a06(0x284)])==null?void 0x0:_0x550cc7['opacity'])||0x1),[_0x4afd0c,_0x547698]=_0x50ccba(!0x1);if(_0x4126c7)return null;let _0x309f2d=0x64-_0x55b416*0x64;return _0x11e0f1(_0x3b6a06(0x360),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[_0x11e0f1(_0x599fd0,{'value':_0x281185,'disabled':_0x516992,'onChange':_0x56717b=>{const _0x2e5bb0=_0x3b6a06;var _0x4eaeac;Z(_0x34aa4e,_0x4277da,_0x317494,_0x35a72e,{'oldShapeData':{'fill':{'fillType':(_0x4eaeac=_0x2c7401[_0x2e5bb0(0x284)])==null?void 0x0:_0x4eaeac['fillType']}}},{'fill':{'fillType':_0x56717b}}),_0x37387d(_0x56717b);},'direction':_0x3b6a06(0x352),'children':[_0x21e6bb(_0x2e63ea,{'value':_0x3defb2[_0x3b6a06(0x5fb)],'children':_0x21e6bb('span',{'className':_0x3b6a06(0x26c),'children':_0x4829bb['t']('sheets-shape.fill.noFill')})}),_0x21e6bb(_0x2e63ea,{'value':_0x3defb2[_0x3b6a06(0x2c0)],'children':_0x21e6bb(_0x3b6a06(0x187),{'className':_0x3b6a06(0x26c),'children':_0x4829bb['t'](_0x3b6a06(0x5f4))})}),_0x21e6bb(_0x2e63ea,{'value':_0x3defb2[_0x3b6a06(0x2b7)],'children':_0x21e6bb('span',{'className':_0x3b6a06(0x26c),'children':_0x4829bb['t'](_0x3b6a06(0x47f))})}),_0x21e6bb(_0x2e63ea,{'value':_0x3defb2[_0x3b6a06(0x280)],'children':_0x21e6bb(_0x3b6a06(0x187),{'className':_0x3b6a06(0x26c),'children':_0x4829bb['t'](_0x3b6a06(0x4b4))})})]}),_0x281185===_0x3defb2[_0x3b6a06(0x2c0)]&&_0x11e0f1(_0x3b6a06(0x360),{'className':_0x3b6a06(0x3c7),'children':[_0x11e0f1(_0x3b6a06(0x360),{'className':_0x3b6a06(0x184),'children':[_0x21e6bb(_0x3b6a06(0x187),{'className':_0x3b6a06(0x59b),'children':_0x4829bb['t'](_0x3b6a06(0x5da))}),_0x21e6bb(_0x3b5d91,{'disabled':_0x516992,'overlay':_0x21e6bb(_0x3b6a06(0x360),{'className':_0x3b6a06(0x40b),'children':_0x21e6bb(_0x2dbe2e,{'value':_0x100fb6,'onChange':_0x53e5d4=>{const _0x12b3d2=_0x3b6a06;var _0x3ff2fa;Z(_0x34aa4e,_0x4277da,_0x317494,_0x35a72e,{'oldShapeData':{'fill':{'color':(_0x3ff2fa=_0x2c7401[_0x12b3d2(0x284)])==null?void 0x0:_0x3ff2fa[_0x12b3d2(0x31d)]}}},{'fill':{'color':_0x53e5d4}}),_0x25fb30(_0x53e5d4),_0x547698(!0x1);}})}),'open':_0x4afd0c,'onOpenChange':_0x547698,'children':_0x11e0f1('a',{'className':_0x3b6a06(0x266),'children':[_0x21e6bb(_0x18cbf9,{'className':_0x3b6a06(0x510),'extend':{'colorChannel1':_0x100fb6}}),_0x21e6bb(_0x5696b8,{'className':_0x691dca(_0x3b6a06(0x548),{'univer-rotate-180':_0x4afd0c})})]})})]}),_0x11e0f1(_0x3b6a06(0x360),{'className':_0x3b6a06(0x5af),'children':[_0x21e6bb(_0x3b6a06(0x187),{'className':_0x3b6a06(0x5b5),'children':_0x4829bb['t'](_0x3b6a06(0x15b))}),_0x21e6bb('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':_0x21e6bb(_0x3b6a06(0x360),{'className':_0x3b6a06(0x5a1),'children':_0x21e6bb(_0x5a41bb,{'className':_0x3b6a06(0x325),'value':_0x309f2d,'disabled':_0x516992,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x30e101=>_0x30e101+'%','parser':_0x293ad0=>(_0x293ad0==null?void 0x0:_0x293ad0['replace']('%',''))||'','onChange':_0x47c557=>{const _0x39516b=_0x3b6a06;let _0x1202d9=(0x64-Math[_0x39516b(0x444)](0x0,Math['min'](0x64,_0x47c557==null?0x0:_0x47c557)))/0x64;_0x1c93c0(_0x1202d9),Z(_0x34aa4e,_0x4277da,_0x317494,_0x35a72e,{'oldShapeData':{'fill':{..._0x2c7401['fill'],'fillType':_0x281185}}},{'fill':{..._0x2c7401[_0x39516b(0x284)],'fillType':_0x281185,'opacity':_0x1202d9}}),_0x4e42df[_0x39516b(0x3a6)](_0x37c9b2,!0x1);},'onFocus':()=>_0x4e42df[_0x3b6a06(0x3a6)](_0x37c9b2,!0x0),'onBlur':()=>{const _0x46fb92=_0x3b6a06;_0x4e42df[_0x46fb92(0x3a6)](_0x37c9b2,!0x1);}})})})]})]}),_0x281185===_0x3defb2[_0x3b6a06(0x2b7)]&&_0x21e6bb(co,{'shapeData':_0x2c7401,'disableShapeOption':_0x516992,'onUpdate':_0x22dfc3=>{const _0x5b9768=_0x3b6a06;Z(_0x34aa4e,_0x4277da,_0x317494,_0x35a72e,{'oldShapeData':{'fill':{..._0x2c7401[_0x5b9768(0x284)]}}},{'fill':{..._0x2c7401[_0x5b9768(0x284)],..._0x22dfc3}});}}),_0x281185===_0x3defb2['PictureFill']&&_0x21e6bb(io,{'unitId':_0x4277da,'subUnitId':_0x317494,'shapeId':_0x35a72e,'shapeData':_0x2c7401,'disableShapeOption':_0x516992})]});}function oo(_0x4ac05c){const _0x18fa76=_0x304ba4;switch(_0x4ac05c){case _0x413a66[_0x18fa76(0x467)]:return _0x18fa76(0x59d);case _0x413a66[_0x18fa76(0x41c)]:return'radial';case _0x413a66[_0x18fa76(0x28f)]:return'angular';case _0x413a66[_0x18fa76(0x3e0)]:return _0x18fa76(0x25e);default:return _0x18fa76(0x59d);}}function so(_0x351506){const _0x5bb7a3=_0x304ba4;switch(_0x351506){case _0x5bb7a3(0x59d):return _0x413a66['Linear'];case _0x5bb7a3(0x527):return _0x413a66[_0x5bb7a3(0x41c)];case _0x5bb7a3(0x5c6):return _0x413a66['Angular'];case'diamond':return _0x413a66[_0x5bb7a3(0x3e0)];default:return _0x413a66[_0x5bb7a3(0x467)];}}function co(_0x48867d){const _0x3aafe3=_0x304ba4;let {shapeData:_0xd8159b,disableShapeOption:_0x5b9f03,onUpdate:_0x32d506}=_0x48867d;return _0x21e6bb(_0x3aafe3(0x360),{'className':_0x3aafe3(0x3a4),'children':_0x21e6bb(_0x3efd25,{'value':_0x5040ff(()=>{const _0x2aef67=_0x3aafe3;var _0x139dae;let _0x551af1=_0xd8159b[_0x2aef67(0x284)];return{'type':oo(_0x551af1==null?void 0x0:_0x551af1[_0x2aef67(0x3bb)]),'angle':(_0x139dae=_0x551af1==null?void 0x0:_0x551af1['gradientAngle'])==null?0x5a:_0x139dae,'stops':_0x551af1!=null&&_0x551af1[_0x2aef67(0x496)]&&_0x551af1[_0x2aef67(0x496)][_0x2aef67(0x1a1)]>=0x2?_0x551af1['gradientStops']['map'](_0x5ed221=>({'color':_0x5ed221[_0x2aef67(0x31d)],'offset':_0x5ed221[_0x2aef67(0x27d)]*0x64})):[{'color':(_0x551af1==null?void 0x0:_0x551af1[_0x2aef67(0x31d)])||_0x2aef67(0x5b1),'offset':0x0},{'color':_0x2aef67(0x5d0),'offset':0x64}]};},[_0xd8159b['fill']]),'onChange':_0x5b4d4d=>{const _0x2a887e=_0x3aafe3;let _0x3bf94f=so(_0x5b4d4d[_0x2a887e(0x14a)]),_0x45d359=_0x5b4d4d['angle'];_0x32d506({'gradientType':_0x3bf94f,'gradientAngle':_0x45d359,'gradientStops':_0x5b4d4d[_0x2a887e(0x4ea)]['map'](_0x4f7108=>({'color':_0x4f7108[_0x2a887e(0x31d)],'position':_0x4f7108[_0x2a887e(0x23c)]/0x64}))});}})});}function lo(_0x2e89e0){const _0x470a01=_0x304ba4;var _0x30f3c0,_0x31907c,_0x28552a,_0x8b5fe5,_0x2532cf,_0x127dfc,_0x4dafa2,_0x533be3,_0x268562,_0x5d47e1,_0x1c12dd,_0x3afde9,_0x2ee30e,_0x4ded66,_0xade5dc,_0x231a0f;let _0x98f24=_0x146012(_0x164f0a),_0x5ebf48=_0x146012(_0xc97706),_0x289db1=_0x146012(_0x3c1d80),{shapeData:_0x484850,isLineShape:_0xb0979d,unitId:_0x77b414,subUnitId:_0x54cf02,shapeId:_0x23c059,disableShapeOption:_0xcae734}=_0x2e89e0,_0x426eb1=_0x484850[_0x470a01(0x5ad)],[_0x3599b9,_0x1c4a1d]=_0x50ccba((_0x30f3c0=_0x426eb1==null?void 0x0:_0x426eb1['lineStrokeType'])==null?_0x63f001[_0x470a01(0x2ff)]:_0x30f3c0),[_0x2bee3b,_0x426d69]=_0x50ccba((_0x31907c=_0x426eb1==null?void 0x0:_0x426eb1[_0x470a01(0x31d)])==null?_0x9cc8fa['stroke']:_0x31907c),[_0x63c7f9,_0x5ea111]=_0x50ccba((_0x28552a=_0x426eb1==null?void 0x0:_0x426eb1[_0x470a01(0x419)])==null?0x1:_0x28552a),[_0x42cc17,_0x59fd06]=_0x50ccba((_0x8b5fe5=_0x426eb1==null?void 0x0:_0x426eb1[_0x470a01(0x34d)])==null?_0x9cc8fa[_0x470a01(0x505)]:_0x8b5fe5),[_0xe3fbc7,_0x1682a7]=_0x50ccba((_0x2532cf=_0x426eb1==null?void 0x0:_0x426eb1[_0x470a01(0x3d1)])==null?_0x2f3f4b['Solid']:_0x2532cf),[_0x43088c,_0x4c8a36]=_0x50ccba((_0x127dfc=_0x426eb1==null?void 0x0:_0x426eb1[_0x470a01(0x2d8)])==null?_0x29a633[_0x470a01(0x3ae)]:_0x127dfc),[_0xf4f059,_0x432278]=_0x50ccba((_0x4dafa2=_0x426eb1==null?void 0x0:_0x426eb1[_0x470a01(0x248)])==null?_0x1a7f4c[_0x470a01(0x528)]:_0x4dafa2),[_0x24cac0,_0x57d98d]=_0x50ccba((_0x533be3=_0x426eb1==null?void 0x0:_0x426eb1[_0x470a01(0x602)])==null?_0x3e3cea[_0x470a01(0x472)]:_0x533be3),_0x2c9245=_0x484850,[_0x3879ba,_0x44dc6c]=_0x50ccba((_0x268562=(_0x5d47e1=_0x2c9245['ln'])==null||(_0x5d47e1=_0x5d47e1['startArrow'])==null?void 0x0:_0x5d47e1[_0x470a01(0x14a)])==null?_0x1620ea['None']:_0x268562),[_0x1d6bd2,_0x177dc8]=_0x50ccba((_0x1c12dd=(_0x3afde9=_0x2c9245['ln'])==null||(_0x3afde9=_0x3afde9['startArrow'])==null?void 0x0:_0x3afde9[_0x470a01(0x379)])==null?_0x1b415e['Medium']:_0x1c12dd),[_0x5d3801,_0x1cf0da]=_0x50ccba((_0x2ee30e=(_0x4ded66=_0x2c9245['ln'])==null||(_0x4ded66=_0x4ded66['endArrow'])==null?void 0x0:_0x4ded66[_0x470a01(0x14a)])==null?_0x1620ea[_0x470a01(0x472)]:_0x2ee30e),[_0xf19d33,_0x39a83d]=_0x50ccba((_0xade5dc=(_0x231a0f=_0x2c9245['ln'])==null||(_0x231a0f=_0x231a0f[_0x470a01(0x1e4)])==null?void 0x0:_0x231a0f[_0x470a01(0x379)])==null?_0x1b415e['Medium']:_0xade5dc),[_0x45fc76,_0x48c5cb]=_0x50ccba(!0x1),_0x249424=0x64-_0x63c7f9*0x64,_0x4170e7=[{'label':_0x98f24['t']('sheets-shape.line.dashType.solid'),'value':String(_0x2f3f4b['Solid'])},{'label':_0x98f24['t'](_0x470a01(0x2b5)),'value':String(_0x2f3f4b['RoundDot'])},{'label':_0x98f24['t'](_0x470a01(0x17f)),'value':String(_0x2f3f4b[_0x470a01(0x438)])},{'label':_0x98f24['t'](_0x470a01(0x16e)),'value':String(_0x2f3f4b[_0x470a01(0x38d)])},{'label':_0x98f24['t']('sheets-shape.line.dashType.dashDot'),'value':String(_0x2f3f4b[_0x470a01(0x2a5)])},{'label':_0x98f24['t'](_0x470a01(0x357)),'value':String(_0x2f3f4b[_0x470a01(0x317)])},{'label':_0x98f24['t'](_0x470a01(0x4c5)),'value':String(_0x2f3f4b[_0x470a01(0x50f)])},{'label':_0x98f24['t'](_0x470a01(0x211)),'value':String(_0x2f3f4b[_0x470a01(0x1f7)])}],_0xdf593c=[{'label':_0x98f24['t'](_0x470a01(0x24c)),'value':String(_0x29a633['Flat'])},{'label':_0x98f24['t'](_0x470a01(0x492)),'value':String(_0x29a633[_0x470a01(0x4ad)])},{'label':_0x98f24['t']('sheets-shape.line.capType.square'),'value':String(_0x29a633['Square'])}],_0x3febd7=[{'label':_0x98f24['t']('sheets-shape.line.sketchType.none'),'value':String(_0x3e3cea['None'])},{'label':_0x98f24['t'](_0x470a01(0x5ee)),'value':String(_0x3e3cea[_0x470a01(0x479)])},{'label':_0x98f24['t']('sheets-shape.line.sketchType.freehand'),'value':String(_0x3e3cea[_0x470a01(0x1b4)])},{'label':_0x98f24['t'](_0x470a01(0x3ea)),'value':String(_0x3e3cea['HandDrawn'])}],_0x4c5969=[{'label':_0x98f24['t'](_0x470a01(0x56a)),'value':String(_0x1a7f4c[_0x470a01(0x528)])},{'label':_0x98f24['t'](_0x470a01(0x5d9)),'value':String(_0x1a7f4c[_0x470a01(0x4ad)])},{'label':_0x98f24['t'](_0x470a01(0x416)),'value':String(_0x1a7f4c['Bevel'])}],_0x229dcb=[{'label':_0x98f24['t'](_0x470a01(0x597)),'value':String(_0x1620ea[_0x470a01(0x472)])},{'label':_0x98f24['t'](_0x470a01(0x16d)),'value':String(_0x1620ea[_0x470a01(0x380)])},{'label':_0x98f24['t'](_0x470a01(0x1d4)),'value':String(_0x1620ea[_0x470a01(0x466)])},{'label':_0x98f24['t']('sheets-shape.line.arrowType.stealthArrow'),'value':String(_0x1620ea[_0x470a01(0x356)])},{'label':_0x98f24['t'](_0x470a01(0x51c)),'value':String(_0x1620ea[_0x470a01(0x591)])},{'label':_0x98f24['t'](_0x470a01(0x37c)),'value':String(_0x1620ea[_0x470a01(0x53a)])}],_0x54b602=[{'label':_0x98f24['t'](_0x470a01(0x3f9)),'value':String(_0x1b415e['Small'])},{'label':_0x98f24['t'](_0x470a01(0x15d)),'value':String(_0x1b415e[_0x470a01(0x4dd)])},{'label':_0x98f24['t'](_0x470a01(0x2d3)),'value':String(_0x1b415e[_0x470a01(0x2d9)])}];return _0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x32a),'children':[_0x11e0f1(_0x599fd0,{'value':String(_0x3599b9),'disabled':_0xcae734,'onChange':_0x325296=>{const _0x2cf817=_0x470a01;var _0x49dcd7;_0x1c4a1d(Number(_0x325296)),Z(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x49dcd7=_0x484850[_0x2cf817(0x5ad)])==null?void 0x0:_0x49dcd7[_0x2cf817(0x256)]}}},{'stroke':{'lineStrokeType':Number(_0x325296)}});},'direction':_0x470a01(0x352),'children':[_0x21e6bb(_0x2e63ea,{'value':String(_0x63f001[_0x470a01(0x4f9)]),'children':_0x21e6bb(_0x470a01(0x187),{'className':_0x470a01(0x26c),'children':_0x98f24['t'](_0x470a01(0x2b3))})}),_0x21e6bb(_0x2e63ea,{'value':String(_0x63f001[_0x470a01(0x2ff)]),'children':_0x21e6bb(_0x470a01(0x187),{'className':_0x470a01(0x26c),'children':_0x98f24['t'](_0x470a01(0x226))})})]}),_0x3599b9!==_0x63f001[_0x470a01(0x4f9)]&&_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x3c7),'children':[_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x184),'children':[_0x21e6bb(_0x470a01(0x187),{'className':_0x470a01(0x59b),'children':_0x98f24['t'](_0x470a01(0x415))}),_0x21e6bb(_0x3b5d91,{'disabled':_0xcae734,'overlay':_0x21e6bb(_0x470a01(0x360),{'className':_0x470a01(0x40b),'children':_0x21e6bb(_0x2dbe2e,{'value':_0x2bee3b,'onChange':_0x1aa451=>{const _0x338ddb=_0x470a01;var _0x327ab3;Z(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'stroke':{'color':(_0x327ab3=_0x484850[_0x338ddb(0x5ad)])==null?void 0x0:_0x327ab3[_0x338ddb(0x31d)]}}},{'stroke':{'color':_0x1aa451}}),_0x426d69(_0x1aa451),_0x48c5cb(!0x1);}})}),'open':_0x45fc76,'onOpenChange':_0x48c5cb,'children':_0x11e0f1('a',{'className':_0x470a01(0x266),'children':[_0x21e6bb(_0x18cbf9,{'className':'univer-text-gray-500','extend':{'colorChannel1':_0x2bee3b}}),_0x21e6bb(_0x5696b8,{'className':_0x691dca(_0x470a01(0x548),{'univer-rotate-180':_0x45fc76})})]})})]}),_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x5af),'children':[_0x21e6bb('span',{'className':'univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x98f24['t'](_0x470a01(0x202))}),_0x21e6bb(_0x470a01(0x360),{'className':_0x470a01(0x5af),'children':_0x21e6bb(_0x470a01(0x360),{'className':_0x470a01(0x25c),'children':_0x21e6bb(_0x5a41bb,{'className':_0x470a01(0x325),'value':_0x249424,'disabled':_0xcae734,'min':0x0,'max':0x64,'formatter':_0x4b81f7=>_0x4b81f7+'%','parser':_0x6971ee=>(_0x6971ee==null?void 0x0:_0x6971ee[_0x470a01(0x439)]('%',''))||'','onChange':_0x5442c4=>{const _0x1a1512=_0x470a01;var _0x358aa9;let _0xfe3fe3=(0x64-Math[_0x1a1512(0x444)](0x0,Math['min'](0x64,_0x5442c4==null?0x0:_0x5442c4)))/0x64;_0x5ea111(_0xfe3fe3),Z(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'stroke':{'opacity':(_0x358aa9=_0x484850[_0x1a1512(0x5ad)])==null?void 0x0:_0x358aa9['opacity']}}},{'stroke':{'opacity':_0xfe3fe3}}),_0x289db1[_0x1a1512(0x3a6)](_0x37c9b2,!0x1);},'onFocus':()=>_0x289db1[_0x470a01(0x3a6)](_0x37c9b2,!0x0),'onBlur':_0x5b678e=>{const _0x2aa211=_0x470a01;_0x289db1[_0x2aa211(0x3a6)](_0x37c9b2,!0x1);}})})})]}),_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x5af),'children':[_0x21e6bb(_0x470a01(0x187),{'className':_0x470a01(0x59b),'children':_0x98f24['t'](_0x470a01(0x4d1))}),_0x21e6bb(_0x470a01(0x360),{'className':_0x470a01(0x5a1),'children':_0x21e6bb(_0x5a41bb,{'className':_0x470a01(0x325),'disabled':_0xcae734,'value':_0x42cc17,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x28e154=>_0x28e154+'\x20px','parser':_0x3c38fb=>(_0x3c38fb==null?void 0x0:_0x3c38fb[_0x470a01(0x439)](_0x470a01(0x375),''))||'','onChange':_0x3c1a9e=>{const _0x1f0b93=_0x470a01;if(!Number['isNaN'](_0x3c1a9e)&&_0x3c1a9e!==null){var _0x11dbfb;Z(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'stroke':{'width':(_0x11dbfb=_0x484850['stroke'])==null?void 0x0:_0x11dbfb[_0x1f0b93(0x34d)]}}},{'stroke':{'width':_0x3c1a9e}});}_0x289db1['setContextValue'](_0x37c9b2,!0x1);},'onFocus':()=>_0x289db1[_0x470a01(0x3a6)](_0x37c9b2,!0x0),'onBlur':_0x50586d=>{_0x289db1['setContextValue'](_0x37c9b2,!0x1);}})})]}),_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x184),'children':[_0x21e6bb(_0x470a01(0x187),{'className':_0x470a01(0x59b),'children':_0x98f24['t'](_0x470a01(0x177))}),_0x21e6bb('div',{'className':_0x470a01(0x5e8),'children':_0x21e6bb(_0x41065f,{'className':_0x470a01(0x325),'value':String(_0xe3fbc7),'options':_0x4170e7,'disabled':_0xcae734,'onChange':_0x2d92aa=>{const _0x4f1b43=_0x470a01;var _0x3cb9ba;_0x1682a7(Number(_0x2d92aa)),Z(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'stroke':{'dashType':(_0x3cb9ba=_0x484850[_0x4f1b43(0x5ad)])==null?void 0x0:_0x3cb9ba['dashType']}}},{'stroke':{'dashType':Number(_0x2d92aa)}});}})})]}),_0x11e0f1('div',{'className':_0x470a01(0x184),'children':[_0x21e6bb(_0x470a01(0x187),{'className':_0x470a01(0x59b),'children':_0x98f24['t'](_0x470a01(0x4de))}),_0x21e6bb(_0x470a01(0x360),{'className':'univer-w-28','children':_0x21e6bb(_0x41065f,{'className':_0x470a01(0x325),'value':String(_0x43088c),'options':_0xdf593c,'disabled':_0xcae734,'onChange':_0x4f0f66=>{const _0x456f26=_0x470a01;var _0x16de74;_0x4c8a36(Number(_0x4f0f66)),Z(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'stroke':{'capType':(_0x16de74=_0x484850[_0x456f26(0x5ad)])==null?void 0x0:_0x16de74[_0x456f26(0x2d8)]}}},{'stroke':{'capType':Number(_0x4f0f66)}});}})})]}),_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x184),'children':[_0x21e6bb(_0x470a01(0x187),{'className':_0x470a01(0x59b),'children':_0x98f24['t'](_0x470a01(0x4bc))}),_0x21e6bb('div',{'className':_0x470a01(0x5e8),'children':_0x21e6bb(_0x41065f,{'className':_0x470a01(0x325),'value':String(_0xf4f059),'options':_0x4c5969,'disabled':_0xcae734,'onChange':_0x42a08e=>{const _0x85eb3c=_0x470a01;var _0x5577a1;_0x432278(Number(_0x42a08e)),Z(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'stroke':{'lineJoinType':(_0x5577a1=_0x484850[_0x85eb3c(0x5ad)])==null?void 0x0:_0x5577a1['lineJoinType']}}},{'stroke':{'lineJoinType':Number(_0x42a08e)}});}})})]}),!_0xb0979d&&_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x184),'children':[_0x21e6bb('span',{'className':_0x470a01(0x59b),'children':_0x98f24['t']('sheets-shape.line.sketchType.title')}),_0x21e6bb(_0x470a01(0x360),{'className':_0x470a01(0x5e8),'children':_0x21e6bb(_0x41065f,{'className':_0x470a01(0x325),'value':String(_0x24cac0),'options':_0x3febd7,'disabled':_0xcae734,'onChange':_0x50d1ab=>{const _0x66e2d=_0x470a01;var _0x108178;_0x57d98d(Number(_0x50d1ab)),Z(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'stroke':{'sketchType':(_0x108178=_0x484850[_0x66e2d(0x5ad)])==null?void 0x0:_0x108178['sketchType']}}},{'stroke':{'sketchType':Number(_0x50d1ab)}});}})})]}),_0xb0979d&&_0x11e0f1(_0x1a26e3,{'children':[_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x184),'children':[_0x21e6bb('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x98f24['t']('sheets-shape.line.beginArrowType')}),_0x21e6bb(_0x470a01(0x360),{'className':_0x470a01(0x5e8),'children':_0x21e6bb(_0x41065f,{'className':_0x470a01(0x325),'value':String(_0x3879ba),'options':_0x229dcb,'onChange':_0x160db1=>{const _0x420237=_0x470a01;var _0x42f190;_0x44dc6c(Number(_0x160db1)),Qa(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x42f190=_0x484850['ln'])==null||(_0x42f190=_0x42f190[_0x420237(0x146)])==null?void 0x0:_0x42f190[_0x420237(0x14a)]}}}},{'ln':{'startArrow':{'type':Number(_0x160db1)}}});}})})]}),_0x11e0f1(_0x470a01(0x360),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[_0x21e6bb('span',{'className':_0x470a01(0x59b),'children':_0x98f24['t'](_0x470a01(0x1ce))}),_0x21e6bb(_0x470a01(0x360),{'className':_0x470a01(0x5e8),'children':_0x21e6bb(_0x41065f,{'className':_0x470a01(0x325),'value':String(_0x1d6bd2),'options':_0x54b602,'onChange':_0x4073a5=>{const _0x544536=_0x470a01;var _0x53bd58;_0x177dc8(Number(_0x4073a5)),Qa(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x53bd58=_0x484850['ln'])==null||(_0x53bd58=_0x53bd58[_0x544536(0x146)])==null?void 0x0:_0x53bd58[_0x544536(0x379)]}}}},{'ln':{'startArrow':{'size':Number(_0x4073a5)}}});}})})]}),_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x184),'children':[_0x21e6bb('span',{'className':_0x470a01(0x59b),'children':_0x98f24['t'](_0x470a01(0x566))}),_0x21e6bb(_0x470a01(0x360),{'className':'univer-w-28','children':_0x21e6bb(_0x41065f,{'className':_0x470a01(0x325),'value':String(_0x5d3801),'options':_0x229dcb,'onChange':_0x3341c6=>{const _0xc0dd94=_0x470a01;var _0x9a7d56;_0x1cf0da(Number(_0x3341c6)),Qa(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x9a7d56=_0x484850['ln'])==null||(_0x9a7d56=_0x9a7d56['endArrow'])==null?void 0x0:_0x9a7d56[_0xc0dd94(0x14a)]}}}},{'ln':{'endArrow':{'type':Number(_0x3341c6)}}});}})})]}),_0x11e0f1(_0x470a01(0x360),{'className':_0x470a01(0x184),'children':[_0x21e6bb(_0x470a01(0x187),{'className':_0x470a01(0x59b),'children':_0x98f24['t'](_0x470a01(0x530))}),_0x21e6bb(_0x470a01(0x360),{'className':_0x470a01(0x5e8),'children':_0x21e6bb(_0x41065f,{'className':_0x470a01(0x325),'value':String(_0xf19d33),'options':_0x54b602,'onChange':_0x4f44a5=>{const _0x536814=_0x470a01;var _0x1e8600;_0x39a83d(Number(_0x4f44a5)),Qa(_0x5ebf48,_0x77b414,_0x54cf02,_0x23c059,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x1e8600=_0x484850['ln'])==null||(_0x1e8600=_0x1e8600[_0x536814(0x1e4)])==null?void 0x0:_0x1e8600[_0x536814(0x379)]}}}},{'ln':{'endArrow':{'size':Number(_0x4f44a5)}}});}})})]})]})]})]});}function uo(){const _0x1acf00=_0x304ba4;let _0x57d5cd=_0x146012(_0x5873e9),[_0x4f60eb,_0x2dcf37]=_0x50ccba(_0x57d5cd['getFocusDrawings']());return _0x344669(()=>{const _0x4bc141=_0x20cb;let _0xc2fde7=_0x57d5cd[_0x4bc141(0x483)][_0x4bc141(0x464)](_0x3a2cd6=>{_0x2dcf37(_0x3a2cd6);});return()=>{_0xc2fde7['unsubscribe']();};},[]),_0x4f60eb[_0x1acf00(0x1a1)]===0x0?null:_0x21e6bb(_0x1acf00(0x360),{'children':_0x11e0f1(_0x1acf00(0x360),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[_0x21e6bb(_0x1cec21,{'drawings':_0x4f60eb,'hasCropper':!0x1}),_0x21e6bb(_0x38deb1,{'drawings':_0x4f60eb})]})});}function fo(_0x46656e){const _0x543a4a=_0x304ba4;let {shapeData:_0x4673b1,shapeId:_0x419e93,shapeType:_0x2d1b7d,version:_0x5b76d7,unitId:_0x5ac46b,subUnitId:_0x481068,disableShapeOption:_0x33ee35}=_0x46656e,_0x5c74ef=_0x146012(_0x164f0a),_0x49324b=_0x1326e8(_0x2d1b7d),[_0x4d2887,_0x10952b]=_0x50ccba(0x0),_0x27f7f2=[{'label':_0x21e6bb(_0x543a4a(0x360),{'children':_0x5c74ef['t'](_0x543a4a(0x529))}),'children':_0x21e6bb(_0x543a4a(0x4f4),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x21e6bb(ao,{'shapeId':_0x419e93,'shapeData':_0x4673b1,'isLineShape':_0x49324b,'subUnitId':_0x481068,'unitId':_0x5ac46b,'disableShapeOption':_0x33ee35},_0x419e93)})},{'label':_0x21e6bb(_0x543a4a(0x360),{'children':_0x5c74ef['t']('sheets-shape.line.title')}),'children':_0x21e6bb(_0x543a4a(0x4f4),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x21e6bb(lo,{'shapeId':_0x419e93,'shapeData':_0x4673b1,'isLineShape':_0x49324b,'subUnitId':_0x481068,'unitId':_0x5ac46b,'disableShapeOption':_0x33ee35},_0x419e93)})}];return _0x11e0f1(_0x543a4a(0x360),{'className':_0x543a4a(0x5ef),'children':[_0x11e0f1(_0x543a4a(0x360),{'className':'univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','children':[_0x11e0f1(_0x543a4a(0x360),{'className':_0x691dca(_0x543a4a(0x58a),_0x4d2887===0x0?_0x543a4a(0x2fa):'univer-text-gray-500'),'onClick':()=>_0x10952b(0x0),'children':[_0x5c74ef['t'](_0x543a4a(0x1bb)),_0x21e6bb(_0x543a4a(0x360),{'className':_0x691dca(_0x543a4a(0x304),{'univer-bg-primary-600':_0x4d2887===0x0,'univer-bg-transparent':_0x4d2887!==0x0})})]}),_0x11e0f1(_0x543a4a(0x360),{'className':_0x691dca('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',{'univer-text-primary-600':_0x4d2887===0x1,'univer-text-gray-500':_0x4d2887!==0x1}),'onClick':()=>_0x10952b(0x1),'children':[_0x5c74ef['t']('sheets-shape.shapePosition'),_0x21e6bb(_0x543a4a(0x360),{'className':_0x691dca(_0x543a4a(0x192),{'univer-bg-primary-600':_0x4d2887===0x1,'univer-bg-transparent':_0x4d2887!==0x1})})]})]}),_0x21e6bb('div',{'className':_0x543a4a(0x251),'children':_0x4d2887===0x0?_0x21e6bb('div',{'className':'','children':_0x21e6bb(_0x709cd0,{'items':_0x27f7f2})},_0x5b76d7):_0x21e6bb(uo,{})})]});}var po=class extends _0x12f371{constructor(_0x5edd13,_0x30388e){const _0x5d5503=_0x304ba4;super(_0x5edd13,_0x30388e),Y(this,_0x5d5503(0x22d),null),Y(this,_0x5d5503(0x40c),null),Y(this,_0x5d5503(0x2a1),null),Y(this,_0x5d5503(0x3c8),null),_0x30388e&&this[_0x5d5503(0x1cf)](_0x30388e);}[_0x304ba4(0x533)](){const _0x318fac=_0x304ba4;return{'unitId':this[_0x318fac(0x2a1)],'subUnitId':this[_0x318fac(0x3c8)],'drawingId':this[_0x318fac(0x22d)]};}[_0x304ba4(0x1cf)](_0x1e8461){const _0x13bcf8=_0x304ba4;_0x1e8461[_0x13bcf8(0x27b)]!==void 0x0&&(this[_0x13bcf8(0x22d)]=_0x1e8461['shapeId']),_0x1e8461[_0x13bcf8(0x34c)]!==void 0x0&&(this['_adjName']=_0x1e8461[_0x13bcf8(0x34c)]),_0x1e8461[_0x13bcf8(0x4a7)]!==void 0x0&&(this['_unitId']=_0x1e8461[_0x13bcf8(0x4a7)]),_0x1e8461[_0x13bcf8(0x5ca)]!==void 0x0&&(this[_0x13bcf8(0x3c8)]=_0x1e8461['subUnitId']),this[_0x13bcf8(0x277)]({'width':_0x1e8461[_0x13bcf8(0x34d)],'height':_0x1e8461[_0x13bcf8(0x595)]});}[_0x304ba4(0x24a)](_0x31c3a2){const _0x36fbae=_0x304ba4;_0x2542c4[_0x36fbae(0x298)](_0x31c3a2,{'radius':_0x9cc8fa['adjHandleSize'],'fill':_0x9cc8fa['adjHandleFill'],'stroke':_0x9cc8fa[_0x36fbae(0x531)],'strokeWidth':0x1,'evented':!0x0});}};let mo=class extends _0x1a987c{constructor(_0x2e3d69,_0x2386d6,_0x4d3c1c,_0x37bc46,_0x2c10f2,_0x5a4030,_0x4e1dbd,_0x2b4025){const _0x12f44c=_0x304ba4;super(),this[_0x12f44c(0x411)]=_0x2e3d69,this[_0x12f44c(0x215)]=_0x2386d6,this['_drawingManagerService']=_0x4d3c1c,this[_0x12f44c(0x436)]=_0x37bc46,this[_0x12f44c(0x5a0)]=_0x2c10f2,this[_0x12f44c(0x552)]=_0x5a4030,this[_0x12f44c(0x307)]=_0x4e1dbd,this[_0x12f44c(0x288)]=_0x2b4025,Y(this,_0x12f44c(0x169),null),Y(this,'_unitId',null),Y(this,_0x12f44c(0x3c8),null),Y(this,_0x12f44c(0x587),void 0x0),Y(this,'_shapes',[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x12f44c(0x18b),0x0),Y(this,_0x12f44c(0x21a),0x0),Y(this,'_baseShapeHeight',0x0),Y(this,_0x12f44c(0x20d),!0x1),Y(this,_0x12f44c(0x48d),void 0x0),Y(this,_0x12f44c(0x31e),void 0x0),Y(this,_0x12f44c(0x48a),void 0x0),Y(this,_0x12f44c(0x5d4),void 0x0),Y(this,_0x12f44c(0x33e),!0x1),this[_0x12f44c(0x36f)](),this[_0x12f44c(0x417)]();}[_0x304ba4(0x388)](_0x1daa9a,_0x4c5f73,_0x1dd475){const _0x525167=_0x304ba4;let _0x3eb7f0=this[_0x525167(0x436)][_0x525167(0x264)](_0x1daa9a,_0x4c5f73,_0x1dd475);if(_0x3eb7f0)return _0x3eb7f0[_0x525167(0x268)]();}[_0x304ba4(0x44c)](){const _0x407e6c=_0x304ba4;this[_0x407e6c(0x5ed)]();}[_0x304ba4(0x3ff)](){const _0x2374e6=_0x304ba4;this[_0x2374e6(0x4bd)](!0x0);}[_0x304ba4(0x1af)](_0x1b3f62){this['_isShouldShowDrawingShapeAdjust']=_0x1b3f62;}['_getShapeAdjustInfosById'](_0x7f76a,_0x5b9046,_0x18a432,_0x19b379){const _0x5e0374=_0x304ba4;let _0x90df78=this[_0x5e0374(0x436)]['getShapeModel'](_0x7f76a,_0x5b9046,_0x18a432);if(_0x90df78)return _0x90df78[_0x5e0374(0x206)](_0x19b379);}['_createShapeAdjustControls'](_0x13cbc6=!0x1){const _0x309a90=_0x304ba4;if(this[_0x309a90(0x2a1)]===null||this[_0x309a90(0x3c8)]===null||this[_0x309a90(0x169)]===null)return;let _0x188844=this['_renderManagerService']['getRenderById'](this[_0x309a90(0x2a1)]);if(!_0x188844||!_0x188844[_0x309a90(0x465)](_0x23f58f)[_0x309a90(0x588)]())return;let {scene:_0x1efdc4}=_0x188844,_0x2386f5={'unitId':this[_0x309a90(0x2a1)],'subUnitId':this[_0x309a90(0x3c8)],'drawingId':this[_0x309a90(0x169)]},_0x4a3ade=this[_0x309a90(0x327)][_0x309a90(0x237)](_0x2386f5),{transform:_0x179266}=_0x4a3ade;if(!_0x179266||_0x4a3ade[_0x309a90(0x429)]!==_0x2375be[_0x309a90(0x217)])return;let {left:_0x59ac4a,top:_0x5c9a8f,width:_0x5db344,height:_0x3db4fd,flipX:_0xdc5572,flipY:_0x43afff,angle:_0xa88ba2=0x0}=_0x179266;if(_0x59ac4a===void 0x0||_0x5c9a8f===void 0x0)return;_0x13cbc6&&(this[_0x309a90(0x587)]=this[_0x309a90(0x388)](this[_0x309a90(0x2a1)],this[_0x309a90(0x3c8)],this[_0x309a90(0x169)]));let _0x54c26d=this['_activeShapeAdjustPointList'];for(let _0x1e4d0a=0x0;_0x1e4d0a<_0x54c26d[_0x309a90(0x1a1)];_0x1e4d0a++){let _0x5e6964=_0x54c26d[_0x1e4d0a],_0x471406=_0x5e6964['x'],_0x289a42=_0x5e6964['y'];if(_0xdc5572&&(_0x471406=(_0x5db344||0x0)-_0x471406),_0x43afff&&(_0x289a42=(_0x3db4fd||0x0)-_0x289a42),_0xa88ba2!==0x0){let _0x2cbed6=(_0x5db344||0x0)/0x2,_0x2d18b3=(_0x3db4fd||0x0)/0x2,_0x5e4a9a=_0xa88ba2*Math['PI']/0xb4,_0x44dcb8=Math[_0x309a90(0x4ac)](_0x5e4a9a),_0x127c3b=Math[_0x309a90(0x532)](_0x5e4a9a),_0x3c3614=_0x471406-_0x2cbed6,_0x430e70=_0x289a42-_0x2d18b3;_0x471406=_0x2cbed6+(_0x3c3614*_0x44dcb8-_0x430e70*_0x127c3b),_0x289a42=_0x2d18b3+(_0x3c3614*_0x127c3b+_0x430e70*_0x44dcb8);}let _0x58eab8={'x':_0x471406,'y':_0x289a42,'adjName':_0x5e6964[_0x309a90(0x34c)]};this['_addShapeAdjustControl'](_0x1efdc4,_0x58eab8,_0x58eab8[_0x309a90(0x34c)],_0x59ac4a,_0x5c9a8f,this['_unitId'],this[_0x309a90(0x3c8)]);}}[_0x304ba4(0x4bd)](_0x570645=!0x1){_0x570645&&(this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls'](_0x570645));}['_addShapeAdjustControl'](_0x5ff17a,_0x4ff7b3,_0x4f469a,_0x27cc0c,_0x2a8314,_0x590daa,_0x22111f){const _0x363b6a=_0x304ba4;if(!this[_0x363b6a(0x169)])return;let _0x233143=_0x5ff17a[_0x363b6a(0x4cd)](_0x363b6a(0x594)+this[_0x363b6a(0x169)]+'-'+_0x4f469a);if(_0x233143){_0x233143[_0x363b6a(0x277)]({'left':_0x4ff7b3['x']+_0x27cc0c-_0x9cc8fa['adjHandleSize'],'top':_0x4ff7b3['y']+_0x2a8314-_0x9cc8fa[_0x363b6a(0x23b)]});return;}let _0x497b4b={'left':_0x4ff7b3['x']+_0x27cc0c-_0x9cc8fa[_0x363b6a(0x23b)],'top':_0x4ff7b3['y']+_0x2a8314-_0x9cc8fa['adjHandleSize'],'adjName':_0x4f469a,'shapeId':this[_0x363b6a(0x169)],'unitId':_0x590daa,'subUnitId':_0x22111f,'width':_0x9cc8fa[_0x363b6a(0x23b)]+0x8,'height':_0x9cc8fa[_0x363b6a(0x23b)]+0x8,'zIndex':_0x395f9d+0x1,'evented':!0x0},_0x3ee3da=new po(_0x363b6a(0x594)+this['_activeShapeId']+'-'+_0x4f469a,_0x497b4b);this[_0x363b6a(0x387)][_0x363b6a(0x3d5)](_0x3ee3da),this[_0x363b6a(0x362)](_0x3ee3da,_0x5ff17a,_0x4f469a),_0x5ff17a[_0x363b6a(0x2ba)](_0x3ee3da,_0x395f9d+0x1);}[_0x304ba4(0x5ed)](){const _0x1dfc05=_0x304ba4;this[_0x1dfc05(0x387)]['length']!==0x0&&(this['_shapes'][_0x1dfc05(0x364)](_0xdf5f59=>{const _0x3e0214=_0x1dfc05;_0xdf5f59[_0x3e0214(0x374)]();}),this[_0x1dfc05(0x387)]=[]);}[_0x304ba4(0x321)](){const _0x382b1c=_0x304ba4;this[_0x382b1c(0x1b3)]();}[_0x304ba4(0x3e8)](_0x5ebd30,_0x146931){const _0x5e39ae=_0x304ba4;var _0x3a49b9;let _0xb9a294={'x':0x0,'y':0x0};if(!_0x5ebd30||!_0x146931)return _0xb9a294;let _0x282726=this[_0x5e39ae(0x5a0)][_0x5e39ae(0x1c2)](_0x5ebd30);if(!_0x282726||!_0x282726[_0x5e39ae(0x465)](_0x23f58f)[_0x5e39ae(0x3c5)](_0x146931))return _0xb9a294;let _0x3f65ec=_0x282726[_0x5e39ae(0x465)](_0x4888cb),_0x61ade9=_0x3f65ec==null?void 0x0:_0x3f65ec['getCurrentScrollState']();if(!_0x61ade9)return _0xb9a294;let _0x161db9=(_0x3a49b9=this[_0x5e39ae(0x307)][_0x5e39ae(0x1c9)](_0x5ebd30))==null?void 0x0:_0x3a49b9['getSheetBySheetId'](_0x146931);if(!_0x161db9)return _0xb9a294;let _0xfaa5cf=_0x344941(_0x61ade9[_0x5e39ae(0x2e1)],_0x61ade9[_0x5e39ae(0x31a)],_0x282726[_0x5e39ae(0x490)],_0x161db9);return _0xfaa5cf?{'x':_0xfaa5cf[_0x5e39ae(0x243)],'y':_0xfaa5cf['viewportScrollY']}:_0xb9a294;}[_0x304ba4(0x1b0)](_0x1ff06a,_0x3d2cc3){const _0x45e699=_0x304ba4;var _0x4e1103,_0x5e2449;let _0x58851e=(_0x4e1103=this[_0x45e699(0x307)][_0x45e699(0x1c9)](_0x1ff06a))==null?void 0x0:_0x4e1103[_0x45e699(0x33d)](_0x3d2cc3);return(_0x5e2449=_0x58851e==null?void 0x0:_0x58851e['getZoomRatio']())==null?0x1:_0x5e2449;}[_0x304ba4(0x362)](_0x4405dc,_0xac320b,_0x28893d){this['disposeWithMe'](_0x1a9690(_0x4405dc['onPointerDown$']['subscribeEvent']((_0x2f7db3,_0x1b19a3)=>{const _0x423ad5=_0x20cb;var _0x2c48d8,_0x359730,_0x375a03,_0x5d6f1b;let _0x40cf78=_0x4405dc[_0x423ad5(0x533)]();this['_activeAdjustInfo']=this[_0x423ad5(0x24e)](_0x40cf78['unitId'],_0x40cf78[_0x423ad5(0x5ca)],_0x40cf78[_0x423ad5(0x447)],_0x28893d),this[_0x423ad5(0x31e)]=this[_0x423ad5(0x436)][_0x423ad5(0x264)](_0x40cf78[_0x423ad5(0x4a7)],_0x40cf78['subUnitId'],_0x40cf78[_0x423ad5(0x447)]);let _0x17aaee=this[_0x423ad5(0x327)]['getDrawingByParam']({'unitId':this[_0x423ad5(0x2a1)],'subUnitId':this[_0x423ad5(0x3c8)],'drawingId':this['_activeShapeId']}),{transform:_0x51e807}=_0x17aaee;if(_0x51e807){let {left:_0x5d863a,top:_0x32b7c0,width:_0x6b742,height:_0x1243a6}=_0x51e807;this[_0x423ad5(0x41e)]=_0x5d863a||0x0,this[_0x423ad5(0x18b)]=_0x32b7c0||0x0,this[_0x423ad5(0x21a)]=_0x6b742||0x0,this[_0x423ad5(0x3d8)]=_0x1243a6||0x0;}let _0x22a158=!!((_0x2c48d8=_0x17aaee[_0x423ad5(0x42c)])!=null&&_0x2c48d8[_0x423ad5(0x3a3)]),_0x101b09=!!((_0x359730=_0x17aaee[_0x423ad5(0x42c)])!=null&&_0x359730[_0x423ad5(0x3d9)]),_0x298e4e=((_0x375a03=_0x17aaee[_0x423ad5(0x42c)])==null?void 0x0:_0x375a03[_0x423ad5(0x517)])||0x0;this[_0x423ad5(0x20d)]=!0x0,_0xac320b[_0x423ad5(0x2a7)]();let _0x12b704=(_0x5d6f1b=this[_0x423ad5(0x31e)])==null?void 0x0:_0x5d6f1b[_0x423ad5(0x308)](_0x28893d),_0x1726f8={[_0x28893d]:_0x12b704};this['_adjHandlerPointerMove']=_0xac320b[_0x423ad5(0x5ea)]['subscribeEvent']((_0x3e5bd3,_0xe23a6c)=>{const _0x5e136f=_0x423ad5;if(!this[_0x5e136f(0x20d)])return;let {offsetX:_0x58d574,offsetY:_0x21d60f}=_0x3e5bd3,_0x376223=this[_0x5e136f(0x48d)];if(this[_0x5e136f(0x31e)]&&_0x376223){_0xac320b[_0x5e136f(0x2a7)](),_0xac320b[_0x5e136f(0x5a5)](_0x2f7837[_0x5e136f(0x2fd)]);let _0xaf9bbf={'left':0x0,'top':0x0,'width':this[_0x5e136f(0x21a)],'height':this[_0x5e136f(0x3d8)]},_0x320d22=this['_getScrollInfo'](this[_0x5e136f(0x2a1)],this['_subUnitId']),_0x5398d7=this[_0x5e136f(0x1b0)](this['_unitId'],this[_0x5e136f(0x3c8)]),_0x45cfd9=_0x58d574/_0x5398d7+_0x320d22['x']-this[_0x5e136f(0x41e)],_0x2f2739=_0x21d60f/_0x5398d7+_0x320d22['y']-this['_baseShapeTop'];if(_0x298e4e!==0x0){let _0x71ad68=this['_baseShapeWidth']/0x2,_0x22eac3=this[_0x5e136f(0x3d8)]/0x2,_0x3e2803=_0x298e4e*Math['PI']/0xb4,_0x44edec=Math[_0x5e136f(0x4ac)](_0x3e2803),_0x2265e1=Math[_0x5e136f(0x532)](_0x3e2803),_0xfd70f7=_0x45cfd9-_0x71ad68,_0x2a49b6=_0x2f2739-_0x22eac3;_0x45cfd9=_0x71ad68+(_0xfd70f7*_0x44edec+_0x2a49b6*_0x2265e1),_0x2f2739=_0x22eac3+(-_0xfd70f7*_0x2265e1+_0x2a49b6*_0x44edec);}_0x22a158&&(_0x45cfd9=this[_0x5e136f(0x21a)]-_0x45cfd9),_0x101b09&&(_0x2f2739=this[_0x5e136f(0x3d8)]-_0x2f2739);let _0x49d901={'x':_0x45cfd9,'y':_0x2f2739},_0x234512=this[_0x5e136f(0x31e)][_0x5e136f(0x580)](_0xaf9bbf,_0x49d901,_0x376223,_0x22a158,_0x101b09),_0x49a59d=_0x376223[_0x5e136f(0x514)]||_0x376223[_0x5e136f(0x495)]||_0x376223[_0x5e136f(0x499)]||_0x376223[_0x5e136f(0x3b7)];if(_0x49a59d===void 0x0)return;this[_0x5e136f(0x31e)][_0x5e136f(0x3b0)](_0x49a59d,_0x234512);let _0x58734c=this[_0x5e136f(0x327)][_0x5e136f(0x237)]({'unitId':_0x40cf78['unitId'],'subUnitId':_0x40cf78['subUnitId'],'drawingId':_0x40cf78[_0x5e136f(0x447)]});_0x58734c&&(this[_0x5e136f(0x552)]['renderDrawingShape'](_0x58734c,_0xac320b),this[_0x5e136f(0x587)]=this[_0x5e136f(0x388)](_0x40cf78[_0x5e136f(0x4a7)],_0x40cf78[_0x5e136f(0x5ca)],_0x40cf78[_0x5e136f(0x447)]),this['_updateAdjustControlPositions']());}_0xe23a6c[_0x5e136f(0x38f)]();}),this['_adjHandlerPointerUp']=_0xac320b[_0x423ad5(0x4ee)][_0x423ad5(0x400)]((_0x36b47e,_0x3c75b0)=>{const _0x3c65c8=_0x423ad5;this['_adjHandlerPointerMove']['unsubscribe'](),this[_0x3c65c8(0x5d4)][_0x3c65c8(0x262)](),_0xac320b['resetCursor']();let _0x1d1c26=this[_0x3c65c8(0x48d)];if(_0x1d1c26){let _0x20dba0=_0x40cf78[_0x3c65c8(0x4a7)],_0x3c6faa=_0x40cf78[_0x3c65c8(0x5ca)],_0x25d29a=_0x40cf78[_0x3c65c8(0x447)],_0x14c5d6=_0x1d1c26['gdRefX']||_0x1d1c26[_0x3c65c8(0x495)]||_0x1d1c26['gdRefAng']||_0x1d1c26['gdRefR'];if(_0x14c5d6!==void 0x0){var _0x583128;let _0x143cf3=(_0x583128=this[_0x3c65c8(0x31e)])==null?void 0x0:_0x583128['getAdjustValueByName'](_0x14c5d6);_0x143cf3!==void 0x0&&Z(this[_0x3c65c8(0x288)],_0x20dba0,_0x3c6faa,_0x25d29a,{'oldShapeData':{'adjustValues':_0x1726f8}},{'adjustValues':{[_0x14c5d6]:_0x143cf3}});}}this[_0x3c65c8(0x48d)]=void 0x0,this[_0x3c65c8(0x31e)]=void 0x0,this[_0x3c65c8(0x20d)]=!0x1,_0x3c75b0[_0x3c65c8(0x38f)](),_0xac320b[_0x3c65c8(0x2ac)]();}),_0x1b19a3[_0x423ad5(0x38f)]();})));}[_0x304ba4(0x417)](){const _0x4888bb=_0x304ba4;let _0x4841f0=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2fb0a4[_0x4888bb(0x5f8)]);this[_0x4888bb(0x1e2)](_0x4841f0[_0x4888bb(0x58d)](_0x29c65f(_0x1b2b3c=>_0x1b2b3c?_0x1b2b3c[_0x4888bb(0x2be)][_0x4888bb(0x58d)](_0x29c65f(_0x55d797=>{const _0x54a0db=_0x4888bb;if(!_0x55d797)return _0x2ba775;let _0x471614=_0x1b2b3c[_0x54a0db(0x58b)](),_0x36903b=this[_0x54a0db(0x5a0)][_0x54a0db(0x1c2)](_0x471614),_0x34e85e=_0x36903b==null?void 0x0:_0x36903b[_0x54a0db(0x490)];return _0x34e85e?_0x23cc49(_0x34e85e):_0x2ba775;})):_0x2ba775))[_0x4888bb(0x464)](_0x29a0b0=>{const _0x3c46d5=_0x4888bb;let _0x548bf2=_0x29a0b0[_0x3c46d5(0x224)]();this[_0x3c46d5(0x1e2)](_0x29a0b0['onPointerMove$'][_0x3c46d5(0x400)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x3c46d5(0x1e2)](_0x548bf2[_0x3c46d5(0x563)][_0x3c46d5(0x464)](_0x40667c=>{const _0x5e15e4=_0x3c46d5;let {objects:_0x52d151}=_0x40667c;this[_0x5e15e4(0x1b3)](),_0x52d151!==null&&_0x52d151['size']===0x1&&_0x52d151[_0x5e15e4(0x489)]()[_0x5e15e4(0x145)]()[_0x5e15e4(0x232)]instanceof to&&this[_0x5e15e4(0x1af)](!0x0);})),this[_0x3c46d5(0x1e2)](_0x548bf2[_0x3c46d5(0x3cd)][_0x3c46d5(0x464)](()=>{const _0x200224=_0x3c46d5;this[_0x200224(0x33e)]&&this[_0x200224(0x5ed)]();})),this[_0x3c46d5(0x1e2)](_0x29a0b0['onPointerUp$'][_0x3c46d5(0x400)](()=>{const _0x1d4d49=_0x3c46d5;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x1d4d49(0x1af)](!0x1),this[_0x1d4d49(0x1b3)]());})),this[_0x3c46d5(0x1e2)](_0x548bf2['changeEnd$'][_0x3c46d5(0x464)](()=>{const _0x4b9c39=_0x3c46d5;this[_0x4b9c39(0x2a1)]&&this[_0x4b9c39(0x3c8)]&&this['_activeShapeId']&&this['_drawingManagerService'][_0x4b9c39(0x237)]({'unitId':this[_0x4b9c39(0x2a1)],'subUnitId':this[_0x4b9c39(0x3c8)],'drawingId':this[_0x4b9c39(0x169)]})&&(this[_0x4b9c39(0x587)]=this[_0x4b9c39(0x388)](this[_0x4b9c39(0x2a1)],this[_0x4b9c39(0x3c8)],this['_activeShapeId']),this[_0x4b9c39(0x321)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x2e8f95=_0x304ba4;this[_0x2e8f95(0x1e2)](this['_drawingManagerService'][_0x2e8f95(0x483)][_0x2e8f95(0x464)](_0x345c97=>{const _0x29a12a=_0x2e8f95;if(_0x345c97['length']===0x1){let _0x585058=_0x345c97[0x0];if(_0x585058[_0x29a12a(0x429)]===_0x2375be[_0x29a12a(0x217)]){this[_0x29a12a(0x169)]=_0x585058[_0x29a12a(0x447)];let {unitId:_0x3027dc,subUnitId:_0x2cf3cf}=_0x585058;this[_0x29a12a(0x587)]=this[_0x29a12a(0x388)](_0x3027dc,_0x2cf3cf,this[_0x29a12a(0x169)]),this[_0x29a12a(0x2a1)]=_0x3027dc,this[_0x29a12a(0x3c8)]=_0x2cf3cf,this[_0x29a12a(0x5ed)](),this[_0x29a12a(0x1b3)]();}else this[_0x29a12a(0x169)]=null,this[_0x29a12a(0x587)]=void 0x0,this[_0x29a12a(0x2a1)]=null,this[_0x29a12a(0x3c8)]=null,this[_0x29a12a(0x5ed)]();}(_0x345c97[_0x29a12a(0x1a1)]>0x1||_0x345c97[_0x29a12a(0x1a1)]===0x0)&&(this[_0x29a12a(0x169)]=null,this[_0x29a12a(0x587)]=void 0x0,this[_0x29a12a(0x2a1)]=null,this['_subUnitId']=null,this[_0x29a12a(0x5ed)]());})),this[_0x2e8f95(0x1e2)](this['_drawingManagerService'][_0x2e8f95(0x441)][_0x2e8f95(0x464)](_0x2e2696=>{const _0x2f0bd5=_0x2e8f95;if(_0x2e2696[_0x2f0bd5(0x1a1)]===0x1){var _0x3787b7;let _0x43e79e=_0x2e2696[0x0];((_0x3787b7=this[_0x2f0bd5(0x327)][_0x2f0bd5(0x237)](_0x43e79e))==null?void 0x0:_0x3787b7[_0x2f0bd5(0x429)])===_0x2375be[_0x2f0bd5(0x217)]&&this[_0x2f0bd5(0x4bd)](!0x0);}})),this['disposeWithMe'](this[_0x2e8f95(0x327)][_0x2e8f95(0x5e1)]['subscribe'](_0x1f310e=>{const _0x58a07f=_0x2e8f95;for(let _0x73055e of _0x1f310e)this['_activeShapeId']===_0x73055e[_0x58a07f(0x447)]&&(this[_0x58a07f(0x169)]=null,this[_0x58a07f(0x587)]=void 0x0,this['_unitId']=null,this[_0x58a07f(0x3c8)]=null,this[_0x58a07f(0x5ed)]());}));}};mo=$([Q(0x1,_0x3c1d80),Q(0x2,_0x5873e9),Q(0x3,_0x28dee4(_0x3538a1)),Q(0x4,_0x28dee4(_0x1dfd06)),Q(0x5,_0x28dee4(no)),Q(0x6,_0x10d47e),Q(0x7,_0xc97706)],mo);const ho={'id':_0x304ba4(0x22a),'type':_0x1076e4['OPERATION'],'handler':(_0x2251d4,_0x5d80c8)=>{const _0x2de556=_0x304ba4;let _0x1058e5=_0x2251d4[_0x2de556(0x172)](_0x5873e9),_0x1cf19e=_0x2251d4[_0x2de556(0x172)](_0x1dfd06),_0x4c1cba=_0x2251d4['get'](mo);if(_0x5d80c8==null)return!0x0;if(_0x5d80c8[_0x2de556(0x1a1)]>0x0){var _0x478c83;let _0x264401=(_0x478c83=_0x1cf19e[_0x2de556(0x1c2)](_0x5d80c8[0x0][_0x2de556(0x4a7)]))==null?void 0x0:_0x478c83[_0x2de556(0x490)];if(_0x264401){let {unitId:_0x3317ee,subUnitId:_0x586f19,drawingId:_0x21f274}=_0x5d80c8[0x0],_0x3d13da=_0x4ac3ac({'unitId':_0x3317ee,'subUnitId':_0x586f19,'drawingId':_0x21f274},void 0x0),_0x16bb50=_0x264401[_0x2de556(0x4cd)](_0x3d13da);if(_0x16bb50){var _0x11520c;(_0x11520c=_0x1cf19e['getRenderById'](_0x5d80c8[0x0][_0x2de556(0x4a7)]))==null||(_0x11520c=_0x11520c['scene'][_0x2de556(0x2ca)]())==null||_0x11520c[_0x2de556(0x4d7)](_0x16bb50);}}_0x1058e5['focusDrawing'](_0x5d80c8),_0x4c1cba[_0x2de556(0x1af)](!0x1);}return!0x0;}},go={'type':_0x1076e4[_0x304ba4(0x541)],'id':_0x304ba4(0x21c),'handler':async(_0x513993,_0x47e310)=>{const _0x501104=_0x304ba4;let _0xab3c95=_0x533606(_0x513993['get'](_0x10d47e));if(!_0xab3c95)return!0x1;let _0x4311e8=_0x513993['get'](_0x2e3941)[_0x501104(0x46a)]();if(!_0x4311e8)return!0x1;let _0x291c5f=_0x513993['get'](_0xc97706),{unitId:_0x3c4759,subUnitId:_0x571f06}=_0xab3c95,{value:_0x635de,enhanceParams:_0x2e02c4}=_0x47e310,{range:_0x53e943}=_0x4311e8,_0xf8c616={'unitId':_0x3c4759,'subUnitId':_0x571f06,'shapeType':_0x635de,'range':_0x53e943,'shapeId':_0x3617ae()};if(_0x2e02c4){let _0x21d445=_0x1326e8(_0x635de),_0x4fc77f=_0x635de===_0x13cb42[_0x501104(0x2de)];_0x21d445&&(_0x2e02c4['startArrow']||_0x2e02c4[_0x501104(0x1e4)])&&(_0xf8c616[_0x501104(0x2e4)]={'ln':{'startArrow':_0x2e02c4['startArrow']?{'type':_0x1620ea[_0x501104(0x380)],'size':_0x1b415e[_0x501104(0x4dd)]}:void 0x0,'endArrow':_0x2e02c4[_0x501104(0x1e4)]?{'type':_0x1620ea[_0x501104(0x380)],'size':_0x1b415e[_0x501104(0x2d9)]}:void 0x0}}),_0x4fc77f&&(_0x2e02c4['horizontal']||_0x2e02c4['vertical'])&&(_0xf8c616[_0x501104(0x2e4)]={'fill':{'fillType':_0x3defb2[_0x501104(0x2c0)],'color':_0x501104(0x3ec)},'stroke':{'lineStrokeType':_0x63f001[_0x501104(0x2ff)],'width':0x1,'color':'#bcbcbc'},'shapeText':{'isHorizontal':!!_0x2e02c4[_0x501104(0x285)]}});}let _0x482ef8=_0x291c5f[_0x501104(0x354)](_0x3a2e35['id'],_0xf8c616);return setTimeout(()=>{const _0x326837=_0x501104;_0x291c5f[_0x326837(0x2f1)](ho['id'],[{'unitId':_0x3c4759,'subUnitId':_0x571f06,'drawingId':_0xf8c616[_0x326837(0x27b)]}]);},0xc8),_0x482ef8;}};let _o=class extends _0x1a987c{constructor(_0x481ce2,_0x183be9){const _0x557cd1=_0x304ba4;super(),this['_clipService']=_0x481ce2,this[_0x557cd1(0x327)]=_0x183be9,this['_registerImageShapeClipDelegate'](),this[_0x557cd1(0x49e)][_0x557cd1(0x3ab)](!0x0),this[_0x557cd1(0x1e2)]({'dispose':()=>this[_0x557cd1(0x49e)][_0x557cd1(0x3ab)](!0x1)});}[_0x304ba4(0x23e)](){const _0x251645=_0x304ba4;let _0x53e23d=this[_0x251645(0x49e)],_0x316dbe=new Map(),_0xa727fc=_0x53e23d[_0x251645(0x3a9)]((_0x4d5805,_0x1fc17d,_0x8c450c,_0x194c70,_0x18ce92)=>{const _0x269e94=_0x251645;let _0x45bc03=_0x1fc17d;if(_0x45bc03===_0x13cb42[_0x269e94(0x472)]||_0x1fc17d===_0x269e94(0x306))return!0x1;try{let _0x389011=_0x316dbe['get'](_0x1fc17d);return _0x389011||(_0x389011=new _0x4a2fd4(_0x45bc03,_0x269e94(0x3b3)+_0x1fc17d),_0x316dbe[_0x269e94(0x309)](_0x1fc17d,_0x389011)),_0x18ce92&&_0x389011[_0x269e94(0x212)]({'adjustValues':_0x18ce92},!0x0),_0x389011[_0x269e94(0x5d1)]({'width':_0x8c450c,'height':_0x194c70}),_0x389011[_0x269e94(0x153)](_0x4d5805,{'left':0x0,'top':0x0,'width':_0x8c450c,'height':_0x194c70});}catch{return!0x1;}});this[_0x251645(0x1e2)](_0xa727fc),this[_0x251645(0x1e2)]({'dispose':()=>_0x316dbe['clear']()});}['clipByShape'](_0x1a2c84,_0x3cbb42,_0x391192,_0x593d9f,_0x4eec49){const _0x4626b1=_0x304ba4;let _0x7bb7b5=this[_0x4626b1(0x327)][_0x4626b1(0x59e)](_0x1a2c84,_0x3cbb42);if(!_0x7bb7b5[_0x391192])return;let _0x22ca8d={..._0x7bb7b5[_0x391192],'prstGeom':_0x593d9f,'adjustValues':_0x4eec49};this[_0x4626b1(0x327)][_0x4626b1(0x30c)]([_0x22ca8d]);}};_o=$([Q(0x0,_0x28dee4(_0x20a501)),Q(0x1,_0x28dee4(_0x5873e9))],_o);const vo=[{'group':_0x304ba4(0x1d6),'type':_0x13cb42[_0x304ba4(0x331)],'icon':_0x304ba4(0x181),'name':_0x304ba4(0x40a)},{'group':_0x304ba4(0x1d6),'type':_0x13cb42[_0x304ba4(0x2b4)],'icon':'ShapeStraightConnector1Icon','name':'shape.type.straight-connector1','endArrow':!0x0},{'group':_0x304ba4(0x1d6),'type':_0x13cb42['StraightConnector1'],'icon':'ShapeStraightConnector2Icon','name':_0x304ba4(0x507),'endArrow':!0x0,'startArrow':!0x0},{'group':_0x304ba4(0x1d6),'type':_0x13cb42['BentConnector3'],'icon':_0x304ba4(0x300),'name':_0x304ba4(0x263)},{'group':'line','type':_0x13cb42[_0x304ba4(0x337)],'icon':_0x304ba4(0x485),'name':_0x304ba4(0x546),'endArrow':!0x0},{'group':_0x304ba4(0x1d6),'type':_0x13cb42[_0x304ba4(0x337)],'icon':_0x304ba4(0x474),'name':_0x304ba4(0x57e),'endArrow':!0x0,'startArrow':!0x0},{'group':_0x304ba4(0x1d6),'type':_0x13cb42[_0x304ba4(0x3c3)],'icon':'ShapeCurvedConnector3Icon','name':_0x304ba4(0x4bb)},{'group':_0x304ba4(0x1d6),'type':_0x13cb42[_0x304ba4(0x3c3)],'icon':_0x304ba4(0x43e),'name':'shape.type.curved-connector3-arrow1','endArrow':!0x0},{'group':_0x304ba4(0x1d6),'type':_0x13cb42['CurvedConnector3'],'icon':'ShapeCurvedConnector3Arrow2Icon','name':_0x304ba4(0x4eb),'endArrow':!0x0,'startArrow':!0x0},{'group':_0x304ba4(0x1ef),'type':_0x13cb42[_0x304ba4(0x2de)],'icon':_0x304ba4(0x4c7),'name':_0x304ba4(0x397)},{'group':'rectangle','type':_0x13cb42['RoundRect'],'icon':_0x304ba4(0x311),'name':_0x304ba4(0x1e0)},{'group':_0x304ba4(0x1ef),'type':_0x13cb42[_0x304ba4(0x26d)],'icon':_0x304ba4(0x4a3),'name':'shape.type.snip1-rect'},{'group':_0x304ba4(0x1ef),'type':_0x13cb42[_0x304ba4(0x1b9)],'icon':_0x304ba4(0x51a),'name':'shape.type.snip2-same-rect'},{'group':'rectangle','type':_0x13cb42[_0x304ba4(0x29f)],'icon':_0x304ba4(0x4e0),'name':_0x304ba4(0x42a)},{'group':_0x304ba4(0x1ef),'type':_0x13cb42[_0x304ba4(0x204)],'icon':_0x304ba4(0x4a4),'name':'shape.type.snip-round-rect'},{'group':_0x304ba4(0x1ef),'type':_0x13cb42['Round1Rect'],'icon':_0x304ba4(0x1fa),'name':_0x304ba4(0x3a7)},{'group':_0x304ba4(0x1ef),'type':_0x13cb42[_0x304ba4(0x537)],'icon':'ShapeRound2SameRectIcon','name':_0x304ba4(0x5b3)},{'group':'rectangle','type':_0x13cb42[_0x304ba4(0x570)],'icon':_0x304ba4(0x3f5),'name':_0x304ba4(0x4d3)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x2de)],'icon':_0x304ba4(0x51e),'name':_0x304ba4(0x449),'horizontal':!0x0},{'group':_0x304ba4(0x47c),'type':_0x13cb42['Rect'],'icon':'ShapeRectTextboxVerticalIcon','name':_0x304ba4(0x17e),'vertical':!0x0},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x173)],'icon':_0x304ba4(0x225),'name':_0x304ba4(0x3e2)},{'group':_0x304ba4(0x47c),'type':_0x13cb42['Triangle'],'icon':_0x304ba4(0x578),'name':_0x304ba4(0x55d)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x4f1)],'icon':_0x304ba4(0x5ce),'name':_0x304ba4(0x3d3)},{'group':'basicShape','type':_0x13cb42['Parallelogram'],'icon':_0x304ba4(0x501),'name':'shape.type.parallelogram'},{'group':_0x304ba4(0x47c),'type':_0x13cb42['Trapezoid'],'icon':_0x304ba4(0x17a),'name':_0x304ba4(0x569)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x3e0)],'icon':_0x304ba4(0x3ed),'name':_0x304ba4(0x516)},{'group':_0x304ba4(0x47c),'type':_0x13cb42['Pentagon'],'icon':_0x304ba4(0x4c8),'name':'shape.type.pentagon'},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x1f5)],'icon':_0x304ba4(0x203),'name':'shape.type.hexagon'},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x14d)],'icon':'ShapeHeptagonIcon','name':_0x304ba4(0x424)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x4e3)],'icon':'ShapeOctagonIcon','name':_0x304ba4(0x554)},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x2e8)],'icon':'ShapeDecagonIcon','name':_0x304ba4(0x188)},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x144)],'icon':_0x304ba4(0x296),'name':'shape.type.dodecagon'},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x231)],'icon':_0x304ba4(0x365),'name':_0x304ba4(0x5cd)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x30b)],'icon':'ShapeChordIcon','name':_0x304ba4(0x3fc)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x361)],'icon':'ShapeTeardropIcon','name':_0x304ba4(0x584)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x45c)],'icon':'ShapeFrameIcon','name':_0x304ba4(0x5e3)},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x35b)],'icon':_0x304ba4(0x147),'name':_0x304ba4(0x282)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x148)],'icon':_0x304ba4(0x366),'name':_0x304ba4(0x2cd)},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x3f3)],'icon':'ShapeDiagStripeIcon','name':_0x304ba4(0x37b)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x58f)],'icon':_0x304ba4(0x29d),'name':_0x304ba4(0x57d)},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x585)],'icon':_0x304ba4(0x555),'name':_0x304ba4(0x275)},{'group':_0x304ba4(0x47c),'type':_0x13cb42['Can'],'icon':_0x304ba4(0x457),'name':_0x304ba4(0x33c)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x4ab)],'icon':_0x304ba4(0x293),'name':_0x304ba4(0x3a2)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x186)],'icon':_0x304ba4(0x518),'name':_0x304ba4(0x141)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x29e)],'icon':_0x304ba4(0x3dd),'name':_0x304ba4(0x350)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x45b)],'icon':_0x304ba4(0x535),'name':_0x304ba4(0x267)},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x3aa)],'icon':_0x304ba4(0x4f5),'name':_0x304ba4(0x3b6)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x250)],'icon':_0x304ba4(0x322),'name':'shape.type.folder-corner'},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x5b8)],'icon':_0x304ba4(0x4c1),'name':'shape.type.smiley-face'},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x22c)],'icon':_0x304ba4(0x421),'name':_0x304ba4(0x1e7)},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x515)],'icon':_0x304ba4(0x443),'name':_0x304ba4(0x502)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x2c6)],'icon':_0x304ba4(0x229),'name':_0x304ba4(0x2ea)},{'group':_0x304ba4(0x47c),'type':_0x13cb42['Moon'],'icon':_0x304ba4(0x5f9),'name':_0x304ba4(0x394)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x2bf)],'icon':_0x304ba4(0x1ec),'name':_0x304ba4(0x28c)},{'group':'basicShape','type':_0x13cb42[_0x304ba4(0x1a0)],'icon':'ShapeArcIcon','name':_0x304ba4(0x488)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x589)],'icon':'ShapeBracketPairIcon','name':'shape.type.bracket-pair'},{'group':_0x304ba4(0x47c),'type':_0x13cb42['BracePair'],'icon':'ShapeBracePairIcon','name':_0x304ba4(0x2f5)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x1f4)],'icon':'ShapeLeftBracketIcon','name':_0x304ba4(0x5df)},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x154)],'icon':'ShapeRightBracketIcon','name':'shape.type.right-bracket'},{'group':_0x304ba4(0x47c),'type':_0x13cb42[_0x304ba4(0x434)],'icon':_0x304ba4(0x3b5),'name':_0x304ba4(0x553)},{'group':'basicShape','type':_0x13cb42['RightBrace'],'icon':_0x304ba4(0x5d3),'name':_0x304ba4(0x1e9)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x556)],'icon':'ShapeRightArrowIcon','name':'shape.type.right-arrow'},{'group':'blockArrow','type':_0x13cb42[_0x304ba4(0x38c)],'icon':_0x304ba4(0x603),'name':_0x304ba4(0x2c1)},{'group':_0x304ba4(0x19b),'type':_0x13cb42['UpArrow'],'icon':_0x304ba4(0x39a),'name':_0x304ba4(0x5bc)},{'group':'blockArrow','type':_0x13cb42[_0x304ba4(0x303)],'icon':_0x304ba4(0x520),'name':_0x304ba4(0x581)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x468)],'icon':_0x304ba4(0x3e9),'name':_0x304ba4(0x1c7)},{'group':'blockArrow','type':_0x13cb42['UpDownArrow'],'icon':_0x304ba4(0x524),'name':_0x304ba4(0x33b)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x4d9)],'icon':_0x304ba4(0x341),'name':'shape.type.quad-arrow'},{'group':_0x304ba4(0x19b),'type':_0x13cb42['LeftRightUpArrow'],'icon':_0x304ba4(0x295),'name':_0x304ba4(0x3ce)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x393)],'icon':_0x304ba4(0x2c2),'name':_0x304ba4(0x2fc)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x47e)],'icon':'ShapeUturnArrowIcon','name':_0x304ba4(0x43c)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x1e1)],'icon':_0x304ba4(0x1fd),'name':_0x304ba4(0x5d7)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x4b2)],'icon':'ShapeBentUpArrowIcon','name':_0x304ba4(0x54b)},{'group':'blockArrow','type':_0x13cb42[_0x304ba4(0x534)],'icon':_0x304ba4(0x1c5),'name':_0x304ba4(0x2ec)},{'group':'blockArrow','type':_0x13cb42[_0x304ba4(0x5d2)],'icon':_0x304ba4(0x25b),'name':_0x304ba4(0x26f)},{'group':'blockArrow','type':_0x13cb42['CurvedUpArrow'],'icon':_0x304ba4(0x336),'name':'shape.type.curved-up-arrow'},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x560)],'icon':'ShapeCurvedDownArrowIcon','name':_0x304ba4(0x3f1)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x55a)],'icon':_0x304ba4(0x50d),'name':_0x304ba4(0x5f2)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x27f)],'icon':_0x304ba4(0x4b0),'name':'shape.type.notched-right-arrow'},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x5ff)],'icon':_0x304ba4(0x258),'name':_0x304ba4(0x57b)},{'group':'blockArrow','type':_0x13cb42[_0x304ba4(0x3af)],'icon':_0x304ba4(0x4ce),'name':_0x304ba4(0x2c8)},{'group':'blockArrow','type':_0x13cb42[_0x304ba4(0x338)],'icon':_0x304ba4(0x2bb),'name':_0x304ba4(0x5dc)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x550)],'icon':_0x304ba4(0x448),'name':_0x304ba4(0x28d)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x5bb)],'icon':_0x304ba4(0x370),'name':_0x304ba4(0x1d3)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x53b)],'icon':_0x304ba4(0x52c),'name':_0x304ba4(0x35c)},{'group':_0x304ba4(0x19b),'type':_0x13cb42['LeftRightArrowCallout'],'icon':'ShapeLeftRightArrowCalloutIcon','name':_0x304ba4(0x297)},{'group':_0x304ba4(0x19b),'type':_0x13cb42[_0x304ba4(0x33f)],'icon':_0x304ba4(0x5a3),'name':_0x304ba4(0x408)},{'group':_0x304ba4(0x19b),'type':_0x13cb42['CircularArrow'],'icon':_0x304ba4(0x333),'name':_0x304ba4(0x2ab)},{'group':_0x304ba4(0x599),'type':_0x13cb42[_0x304ba4(0x414)],'icon':_0x304ba4(0x2b6),'name':_0x304ba4(0x30e)},{'group':'equationShape','type':_0x13cb42[_0x304ba4(0x493)],'icon':_0x304ba4(0x410),'name':_0x304ba4(0x5c4)},{'group':_0x304ba4(0x599),'type':_0x13cb42[_0x304ba4(0x26a)],'icon':_0x304ba4(0x2ce),'name':'shape.type.math-multiply'},{'group':_0x304ba4(0x599),'type':_0x13cb42['MathDivide'],'icon':_0x304ba4(0x294),'name':_0x304ba4(0x330)},{'group':_0x304ba4(0x599),'type':_0x13cb42[_0x304ba4(0x13d)],'icon':_0x304ba4(0x279),'name':'shape.type.math-equal'},{'group':_0x304ba4(0x599),'type':_0x13cb42['MathNotEqual'],'icon':'ShapeMathNotEqualIcon','name':'shape.type.math-not-equal'},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x542)],'icon':'ShapeFlowChartProcessIcon','name':_0x304ba4(0x37f)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x391)],'icon':_0x304ba4(0x2d6),'name':'shape.type.flow-chart-alternate-process'},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x395)],'icon':_0x304ba4(0x5a4),'name':_0x304ba4(0x56b)},{'group':'flowchart','type':_0x13cb42[_0x304ba4(0x345)],'icon':_0x304ba4(0x2a4),'name':'shape.type.flow-chart-input-output'},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x14b)],'icon':_0x304ba4(0x463),'name':'shape.type.flow-chart-predefined-process'},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x44a)],'icon':_0x304ba4(0x15f),'name':_0x304ba4(0x5c5)},{'group':_0x304ba4(0x48e),'type':_0x13cb42['FlowchartDocument'],'icon':_0x304ba4(0x340),'name':'shape.type.flow-chart-document'},{'group':'flowchart','type':_0x13cb42[_0x304ba4(0x42e)],'icon':_0x304ba4(0x55b),'name':_0x304ba4(0x564)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x35e)],'icon':_0x304ba4(0x2b0),'name':_0x304ba4(0x53d)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x3b8)],'icon':_0x304ba4(0x23d),'name':'shape.type.flow-chart-preparation'},{'group':_0x304ba4(0x48e),'type':_0x13cb42['FlowchartManualInput'],'icon':_0x304ba4(0x150),'name':_0x304ba4(0x1bf)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x2bc)],'icon':'ShapeFlowChartManualOperationIcon','name':_0x304ba4(0x4c4)},{'group':_0x304ba4(0x48e),'type':_0x13cb42['FlowchartConnector'],'icon':_0x304ba4(0x412),'name':_0x304ba4(0x3fe)},{'group':'flowchart','type':_0x13cb42[_0x304ba4(0x348)],'icon':'ShapeFlowChartOffpageConnectorIcon','name':_0x304ba4(0x3f7)},{'group':'flowchart','type':_0x13cb42[_0x304ba4(0x396)],'icon':_0x304ba4(0x4e9),'name':_0x304ba4(0x3eb)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x1b6)],'icon':'ShapeFlowChartPunchedTapeIcon','name':'shape.type.flow-chart-punched-tape'},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x4a5)],'icon':_0x304ba4(0x242),'name':_0x304ba4(0x32b)},{'group':_0x304ba4(0x48e),'type':_0x13cb42['FlowchartOr'],'icon':'ShapeFlowChartOrIcon','name':_0x304ba4(0x471)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x4fd)],'icon':'ShapeFlowChartCollateIcon','name':_0x304ba4(0x5a2)},{'group':'flowchart','type':_0x13cb42[_0x304ba4(0x5d8)],'icon':'ShapeFlowChartSortIcon','name':_0x304ba4(0x319)},{'group':_0x304ba4(0x48e),'type':_0x13cb42['FlowchartExtract'],'icon':_0x304ba4(0x3b9),'name':_0x304ba4(0x5c8)},{'group':'flowchart','type':_0x13cb42[_0x304ba4(0x445)],'icon':'ShapeFlowChartMergeIcon','name':_0x304ba4(0x37d)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x1a4)],'icon':_0x304ba4(0x25a),'name':_0x304ba4(0x2f7)},{'group':_0x304ba4(0x48e),'type':_0x13cb42['FlowchartDelay'],'icon':'ShapeFlowChartDelayIcon','name':_0x304ba4(0x1f9)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x1ad)],'icon':'ShapeFlowChartMagneticTapeIcon','name':_0x304ba4(0x1ba)},{'group':'flowchart','type':_0x13cb42['FlowchartMagneticDisk'],'icon':_0x304ba4(0x5a7),'name':_0x304ba4(0x42f)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x3e1)],'icon':_0x304ba4(0x561),'name':_0x304ba4(0x52e)},{'group':_0x304ba4(0x48e),'type':_0x13cb42[_0x304ba4(0x2d4)],'icon':_0x304ba4(0x4dc),'name':'shape.type.flow-chart-display'},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x180)],'icon':_0x304ba4(0x216),'name':'shape.type.irregular-seal1'},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x480)],'icon':_0x304ba4(0x59c),'name':_0x304ba4(0x20e)},{'group':'starAndBanner','type':_0x13cb42[_0x304ba4(0x52b)],'icon':_0x304ba4(0x281),'name':'shape.type.star4'},{'group':_0x304ba4(0x36a),'type':_0x13cb42['Star5'],'icon':_0x304ba4(0x241),'name':'shape.type.star5'},{'group':_0x304ba4(0x36a),'type':_0x13cb42['Star6'],'icon':_0x304ba4(0x3cb),'name':_0x304ba4(0x255)},{'group':_0x304ba4(0x36a),'type':_0x13cb42['Star7'],'icon':_0x304ba4(0x4cc),'name':_0x304ba4(0x523)},{'group':'starAndBanner','type':_0x13cb42[_0x304ba4(0x151)],'icon':_0x304ba4(0x158),'name':'shape.type.star8'},{'group':'starAndBanner','type':_0x13cb42[_0x304ba4(0x273)],'icon':_0x304ba4(0x4b7),'name':_0x304ba4(0x2ed)},{'group':'starAndBanner','type':_0x13cb42[_0x304ba4(0x22f)],'icon':'ShapeStar12Icon','name':_0x304ba4(0x1dc)},{'group':_0x304ba4(0x36a),'type':_0x13cb42['Star16'],'icon':_0x304ba4(0x26e),'name':_0x304ba4(0x1df)},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x460)],'icon':_0x304ba4(0x235),'name':'shape.type.star24'},{'group':_0x304ba4(0x36a),'type':_0x13cb42['Star32'],'icon':_0x304ba4(0x430),'name':_0x304ba4(0x1c3)},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x3dc)],'icon':_0x304ba4(0x205),'name':'shape.type.ribbon2'},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x30d)],'icon':'ShapeRibbonIcon','name':'shape.type.ribbon'},{'group':_0x304ba4(0x36a),'type':_0x13cb42['EllipseRibbon2'],'icon':_0x304ba4(0x218),'name':_0x304ba4(0x1d7)},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x47a)],'icon':_0x304ba4(0x2b9),'name':_0x304ba4(0x381)},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x13e)],'icon':_0x304ba4(0x189),'name':'shape.type.vertical-scroll'},{'group':'starAndBanner','type':_0x13cb42[_0x304ba4(0x43f)],'icon':_0x304ba4(0x244),'name':_0x304ba4(0x56d)},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x4f2)],'icon':_0x304ba4(0x1f8),'name':'shape.type.wave'},{'group':_0x304ba4(0x36a),'type':_0x13cb42[_0x304ba4(0x385)],'icon':_0x304ba4(0x19e),'name':'shape.type.double-wave'},{'group':'callout','type':_0x13cb42[_0x304ba4(0x461)],'icon':_0x304ba4(0x481),'name':'shape.type.wedge-rect-callout'},{'group':_0x304ba4(0x601),'type':_0x13cb42[_0x304ba4(0x1fc)],'icon':_0x304ba4(0x405),'name':_0x304ba4(0x1cb)},{'group':'callout','type':_0x13cb42[_0x304ba4(0x269)],'icon':'ShapeWedgeEllipseCalloutIcon','name':_0x304ba4(0x1f6)},{'group':_0x304ba4(0x601),'type':_0x13cb42[_0x304ba4(0x540)],'icon':'ShapeCloudCalloutIcon','name':'shape.type.cloud-callout'},{'group':_0x304ba4(0x601),'type':_0x13cb42['BorderCallout1'],'icon':_0x304ba4(0x367),'name':_0x304ba4(0x4ec)},{'group':_0x304ba4(0x601),'type':_0x13cb42['BorderCallout2'],'icon':_0x304ba4(0x36e),'name':_0x304ba4(0x16c)},{'group':_0x304ba4(0x601),'type':_0x13cb42[_0x304ba4(0x2ae)],'icon':_0x304ba4(0x220),'name':_0x304ba4(0x1c1)},{'group':'callout','type':_0x13cb42[_0x304ba4(0x38a)],'icon':_0x304ba4(0x2a8),'name':_0x304ba4(0x57c)},{'group':'callout','type':_0x13cb42[_0x304ba4(0x1b8)],'icon':_0x304ba4(0x4e7),'name':_0x304ba4(0x13c)},{'group':'callout','type':_0x13cb42[_0x304ba4(0x547)],'icon':'ShapeAccentCallout3Icon','name':_0x304ba4(0x15a)},{'group':_0x304ba4(0x601),'type':_0x13cb42[_0x304ba4(0x14c)],'icon':'ShapeCallout1Icon','name':_0x304ba4(0x2cb)},{'group':_0x304ba4(0x601),'type':_0x13cb42[_0x304ba4(0x335)],'icon':'ShapeCallout2Icon','name':_0x304ba4(0x1a8)},{'group':'callout','type':_0x13cb42['Callout3'],'icon':_0x304ba4(0x1db),'name':_0x304ba4(0x4ed)},{'group':_0x304ba4(0x601),'type':_0x13cb42[_0x304ba4(0x257)],'icon':_0x304ba4(0x4e2),'name':'shape.type.accent-border-callout1'},{'group':_0x304ba4(0x601),'type':_0x13cb42[_0x304ba4(0x2fb)],'icon':_0x304ba4(0x521),'name':_0x304ba4(0x3bd)},{'group':'callout','type':_0x13cb42['AccentBorderCallout3'],'icon':'ShapeAccentBorderCallout3Icon','name':_0x304ba4(0x5cc)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x56f)],'icon':_0x304ba4(0x2c4),'name':_0x304ba4(0x46f)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x392)],'icon':_0x304ba4(0x4b9),'name':'shape.type.left-right-circular-arrow'},{'group':'other','type':_0x13cb42[_0x304ba4(0x40d)],'icon':'ShapeSwooshArrowIcon','name':_0x304ba4(0x1ff)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x149)],'icon':_0x304ba4(0x59a),'name':_0x304ba4(0x24d)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x2dd)],'icon':_0x304ba4(0x4fc),'name':'shape.type.pie-wedge'},{'group':_0x304ba4(0x4cf),'type':_0x13cb42['Funnel'],'icon':'ShapeFunnelIcon','name':_0x304ba4(0x2a0)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x5e9)],'icon':_0x304ba4(0x1a6),'name':_0x304ba4(0x3f4)},{'group':'other','type':_0x13cb42[_0x304ba4(0x5fc)],'icon':_0x304ba4(0x4b5),'name':'shape.type.gear9'},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x18f)],'icon':_0x304ba4(0x193),'name':_0x304ba4(0x20c)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x21f)],'icon':'ShapeActionButtonBackPreviousIcon','name':_0x304ba4(0x39f)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x3e4)],'icon':_0x304ba4(0x576),'name':_0x304ba4(0x238)},{'group':'other','type':_0x13cb42[_0x304ba4(0x450)],'icon':_0x304ba4(0x469),'name':_0x304ba4(0x194)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x2d1)],'icon':_0x304ba4(0x1e6),'name':_0x304ba4(0x31f)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x454)],'icon':'ShapeActionButtonHomeIcon','name':_0x304ba4(0x259)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x247)],'icon':_0x304ba4(0x14f),'name':_0x304ba4(0x452)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42['ActionButtonReturn'],'icon':_0x304ba4(0x5c9),'name':_0x304ba4(0x5d5)},{'group':'other','type':_0x13cb42[_0x304ba4(0x593)],'icon':_0x304ba4(0x1a7),'name':'shape.type.action-button-movie'},{'group':'other','type':_0x13cb42['ActionButtonDocument'],'icon':'ShapeActionButtonDocumentIcon','name':_0x304ba4(0x5fa)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x389)],'icon':_0x304ba4(0x606),'name':_0x304ba4(0x3b2)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42['ActionButtonHelp'],'icon':_0x304ba4(0x2f8),'name':'shape.type.action-button-help'},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x432)],'icon':_0x304ba4(0x22e),'name':_0x304ba4(0x459)},{'group':'other','type':_0x13cb42['ChartPlus'],'icon':_0x304ba4(0x1d5),'name':'shape.type.chart-plus'},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x286)],'icon':_0x304ba4(0x24b),'name':_0x304ba4(0x334)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x18c)],'icon':_0x304ba4(0x3ba),'name':_0x304ba4(0x57a)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x455)],'icon':_0x304ba4(0x2ad),'name':_0x304ba4(0x435)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42[_0x304ba4(0x28a)],'icon':_0x304ba4(0x1ae),'name':_0x304ba4(0x44e)},{'group':'other','type':_0x13cb42['PlaqueTabs'],'icon':_0x304ba4(0x41d),'name':'shape.type.plaque-tabs'},{'group':'other','type':_0x13cb42[_0x304ba4(0x3d4)],'icon':'ShapeSquareTabsIcon','name':_0x304ba4(0x5c1)},{'group':_0x304ba4(0x4cf),'type':_0x13cb42['UpDownArrowCallout'],'icon':'ShapeUpDownArrowCalloutIcon','name':_0x304ba4(0x1a3)},{'group':'other','type':_0x13cb42[_0x304ba4(0x3d0)],'icon':_0x304ba4(0x1f1),'name':_0x304ba4(0x4c6)}],yo=_0x304ba4(0x55f);function bo({onShapeClick:_0x1ee7b4,excludeGroups:_0x311211}){const _0x5472df=_0x304ba4;let _0x248c2e=_0x146012(_0x164f0a),_0x189da2=_0x146012(_0x5086cb),_0xa8b385=(_0x311211?vo['filter'](_0x102015=>!_0x311211[_0x5472df(0x4fa)](_0x102015['group'])):vo)[_0x5472df(0x1ea)]((_0x2b0b01,_0x656e00)=>(_0x2b0b01[_0x656e00[_0x5472df(0x261)]]||(_0x2b0b01[_0x656e00[_0x5472df(0x261)]]=[]),_0x2b0b01[_0x656e00[_0x5472df(0x261)]][_0x5472df(0x3d5)](_0x656e00),_0x2b0b01),{});return _0x21e6bb('div',{'className':'univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','children':Object[_0x5472df(0x1ca)](_0xa8b385)[_0x5472df(0x4d5)](([_0x1d9681,_0x3b64dc])=>_0x11e0f1('div',{'className':_0x5472df(0x287),'children':[_0x21e6bb('div',{'className':_0x5472df(0x359),'children':_0x248c2e['t'](_0x5472df(0x38b)+_0x1d9681)}),_0x21e6bb(_0x5472df(0x360),{'className':'univer-grid\x20univer-grid-cols-10\x20univer-gap-1','children':_0x3b64dc[_0x5472df(0x4d5)](_0x286089=>{const _0x564679=_0x5472df;let _0x168598=_0x189da2['get'](_0x286089[_0x564679(0x2a2)]);return _0x21e6bb('div',{'title':_0x248c2e['t'](_0x286089[_0x564679(0x498)]),'onClick':()=>_0x1ee7b4(_0x286089),'className':_0x564679(0x526),'children':_0x168598&&_0x21e6bb(_0x168598,{'className':_0x564679(0x5ef)})},_0x286089[_0x564679(0x498)]);})})]},_0x1d9681))});}function xo(){const _0x244d72=_0x304ba4;let _0xfff439=_0x146012(_0x164f0a),_0x36a83e=_0x146012(_0x5873e9),_0x3d9795=_0x146012(_o),[_0x56f18d,_0x4d2e45]=_0x50ccba(!0x1);return _0x21e6bb(_0x3b5d91,{'side':'left','open':_0x56f18d,'onOpenChange':_0x4d2e45,'overlay':_0x21e6bb(bo,{'onShapeClick':_0x29ce33=>{const _0x36cbf4=_0x20cb;let _0x5d4481=_0x36a83e[_0x36cbf4(0x316)]()[_0x36cbf4(0x191)](_0x196f24=>_0x196f24[_0x36cbf4(0x429)]===_0x2375be[_0x36cbf4(0x351)]);if(!_0x5d4481)return;let {unitId:_0x30797e,subUnitId:_0x5c130a,drawingId:_0x37a93e}=_0x5d4481;_0x3d9795[_0x36cbf4(0x2e2)](_0x30797e,_0x5c130a,_0x37a93e,_0x29ce33[_0x36cbf4(0x14a)]),_0x4d2e45(!0x1);},'excludeGroups':[_0x244d72(0x1d6)]}),'children':_0x21e6bb(_0xd3627f,{'children':_0xfff439['t']('image-panel.crop.shape')})});}function So(){let _0x4453c0=_0x146012(_0xc97706);return _0x21e6bb(bo,{'onShapeClick':_0x2c56ce=>{const _0x43807e=_0x20cb;_0x4453c0[_0x43807e(0x2f1)](go['id'],{'value':_0x2c56ce['type'],'enhanceParams':{'endArrow':_0x2c56ce[_0x43807e(0x1e4)],'startArrow':_0x2c56ce['startArrow'],'horizontal':_0x2c56ce[_0x43807e(0x285)],'vertical':_0x2c56ce[_0x43807e(0x352)]}});}});}_0x1909c6[_0x304ba4(0x583)],_0x1909c6['CENTER'],_0x1909c6[_0x304ba4(0x44d)];function Co(_0x170df5){const _0x4c7e4f=_0x304ba4;let _0x22d1e4=_0x170df5['get'](_0x3c1d80),_0x148992=_0x170df5[_0x4c7e4f(0x172)](_0x5d9be1);return{'id':_0x2461bb['id'],'tooltip':_0x4c7e4f(0x572),'type':_0x513c6e['BUTTON_SELECTOR'],'icon':'PaintBucketDoubleIcon','selections':[{'label':{'name':_0x4b18e6,'hoverable':!0x1,'selectable':!0x1}}],'value$':new _0x109bfb(_0xd6c695=>{const _0xee7c35=_0x4c7e4f;_0xd6c695[_0xee7c35(0x145)](_0x148992[_0xee7c35(0x3e6)]('primary.600'));}),'hidden$':_0x22d1e4[_0x4c7e4f(0x41b)](_0x299b38)[_0x4c7e4f(0x58d)](_0x53f4b3(_0x22d1e4[_0x4c7e4f(0x178)](_0x299b38)),_0x3f504f(_0x571ac7=>!_0x571ac7))};}function wo(_0x2415e1){const _0x36a813=_0x304ba4;let _0x31c1f2=_0x2415e1[_0x36a813(0x172)](_0x3c1d80);return{'id':_0x2a0b2c['id'],'type':_0x513c6e[_0x36a813(0x384)],'title':'toolbar.resetColor','hidden$':_0x31c1f2[_0x36a813(0x41b)](_0x299b38)[_0x36a813(0x58d)](_0x53f4b3(_0x31c1f2[_0x36a813(0x178)](_0x299b38)),_0x3f504f(_0x2e2adc=>!_0x2e2adc))};}const To=[{'label':_0x304ba4(0x43d),'icon':'LeftJustifyingIcon','value':_0x1909c6[_0x304ba4(0x583)]},{'label':_0x304ba4(0x43b),'icon':_0x304ba4(0x163),'value':_0x1909c6[_0x304ba4(0x19f)]},{'label':_0x304ba4(0x525),'icon':_0x304ba4(0x4a9),'value':_0x1909c6[_0x304ba4(0x44d)]}];function Eo(_0x13cdc2){const _0x2647ee=_0x304ba4;var _0xe914d0;let _0xe663a0=_0x13cdc2[_0x2647ee(0x172)](_0xc97706),_0x1fcb49=_0x13cdc2['get'](_0x3c1d80),_0x1b4ce7=_0x13cdc2[_0x2647ee(0x172)](_0x486e0c),_0x32bb9d=_0x13cdc2[_0x2647ee(0x172)](X),_0x51fe07=_0x13cdc2[_0x2647ee(0x172)](_0x3538a1),_0x37b975=_0x1909c6['LEFT'],_0x31980c=()=>{const _0x3b40c3=_0x2647ee;var _0x460f98;let _0x7eb42=_0x1b4ce7['getFocusDrawings']()[_0x3b40c3(0x159)](_0x59abf5=>_0x59abf5[_0x3b40c3(0x429)]===_0x2375be[_0x3b40c3(0x217)]);if(_0x7eb42[_0x3b40c3(0x1a1)]!==0x1)return _0x37b975;let _0x328be9=_0x32bb9d['getEditing'](),_0x197cda=(_0x328be9==null?void 0x0:_0x328be9[_0x3b40c3(0x4a7)])||_0x7eb42[0x0]['unitId'],_0x47485c=(_0x328be9==null?void 0x0:_0x328be9[_0x3b40c3(0x5ca)])||_0x7eb42[0x0][_0x3b40c3(0x5ca)],_0x15db44=(_0x328be9==null?void 0x0:_0x328be9[_0x3b40c3(0x27b)])||_0x7eb42[0x0][_0x3b40c3(0x447)],_0x2386ed=_0x51fe07[_0x3b40c3(0x264)](_0x197cda,_0x47485c,_0x15db44);if(!_0x2386ed)return _0x37b975;let _0x3d0eb1=_0x2386ed['getShapeTextData']();if(!_0x3d0eb1||!(_0x3b40c3(0x462)in _0x3d0eb1))return _0x37b975;let _0x3ec999=_0x3d0eb1[_0x3b40c3(0x462)];return(_0x460f98=_0x3ec999==null?void 0x0:_0x3ec999['ha'])==null?_0x37b975:_0x460f98;};return{'id':Ha['id'],'icon':(_0xe914d0=To[_0x2647ee(0x191)](_0x587c88=>_0x587c88['value']===_0x37b975))==null?void 0x0:_0xe914d0[_0x2647ee(0x2a2)],'tooltip':_0x2647ee(0x31b),'type':_0x513c6e[_0x2647ee(0x49f)],'selections':To,'value$':new _0x109bfb(_0x449534=>{const _0x5069d7=_0x2647ee;let _0x2ba2d5=_0xe663a0[_0x5069d7(0x413)](_0x4e7de6=>{const _0x2e5e3f=_0x5069d7;_0x4e7de6['id']===Ha['id']&&_0x449534[_0x2e5e3f(0x145)](_0x31980c());}),_0x315776=_0x32bb9d[_0x5069d7(0x407)][_0x5069d7(0x464)](()=>{const _0x281e48=_0x5069d7;_0x449534[_0x281e48(0x145)](_0x31980c());});return _0x449534[_0x5069d7(0x145)](_0x31980c()),()=>{const _0x5b306f=_0x5069d7;_0x2ba2d5[_0x5b306f(0x374)](),_0x315776[_0x5b306f(0x262)]();};}),'hidden$':_0x1fcb49[_0x2647ee(0x41b)](_0x299b38)[_0x2647ee(0x58d)](_0x3f504f(_0x468fef=>!_0x468fef))};}const Do=[{'label':_0x304ba4(0x4a0),'icon':_0x304ba4(0x182),'value':_0x196cf7[_0x304ba4(0x3c4)]},{'label':_0x304ba4(0x369),'icon':_0x304ba4(0x511),'value':_0x196cf7[_0x304ba4(0x32c)]},{'label':'align.bottom','icon':_0x304ba4(0x4d8),'value':_0x196cf7['BOTTOM']}];function Oo(_0x4dd9fe){const _0x726cd2=_0x304ba4;var _0x58b928;let _0x3a3af4=_0x4dd9fe['get'](_0xc97706),_0x3f1cec=_0x4dd9fe[_0x726cd2(0x172)](_0x3c1d80),_0x3db7b4=_0x4dd9fe[_0x726cd2(0x172)](_0x486e0c),_0x460e25=_0x4dd9fe['get'](X),_0x2cf5f7=_0x4dd9fe['get'](_0x3538a1),_0x12cb8f=_0x196cf7[_0x726cd2(0x3c4)],_0x40d8e0=()=>{const _0x32c10a=_0x726cd2;var _0x590abe;let _0x5a8b8c=_0x3db7b4[_0x32c10a(0x316)]()['filter'](_0x225cff=>_0x225cff[_0x32c10a(0x429)]===_0x2375be[_0x32c10a(0x217)]);if(_0x5a8b8c[_0x32c10a(0x1a1)]!==0x1)return _0x12cb8f;let _0x472d01=_0x460e25['getEditing'](),_0x1b6637=(_0x472d01==null?void 0x0:_0x472d01[_0x32c10a(0x4a7)])||_0x5a8b8c[0x0]['unitId'],_0x2d55cd=(_0x472d01==null?void 0x0:_0x472d01[_0x32c10a(0x5ca)])||_0x5a8b8c[0x0][_0x32c10a(0x5ca)],_0x574c07=(_0x472d01==null?void 0x0:_0x472d01[_0x32c10a(0x27b)])||_0x5a8b8c[0x0][_0x32c10a(0x447)],_0x660a88=_0x2cf5f7[_0x32c10a(0x264)](_0x1b6637,_0x2d55cd,_0x574c07);if(!_0x660a88)return _0x12cb8f;let _0x21a0b0=_0x660a88[_0x32c10a(0x209)]();if(!_0x21a0b0||!(_0x32c10a(0x462)in _0x21a0b0))return _0x12cb8f;let _0x35f855=_0x21a0b0[_0x32c10a(0x462)];return(_0x590abe=_0x35f855==null?void 0x0:_0x35f855['va'])==null?_0x12cb8f:_0x590abe;};return{'id':Ka['id'],'icon':(_0x58b928=Do[_0x726cd2(0x191)](_0x141fc0=>_0x141fc0[_0x726cd2(0x232)]===_0x12cb8f))==null?void 0x0:_0x58b928[_0x726cd2(0x2a2)],'tooltip':_0x726cd2(0x390),'type':_0x513c6e[_0x726cd2(0x49f)],'selections':Do,'value$':new _0x109bfb(_0x55f85f=>{const _0x540726=_0x726cd2;let _0x11e57c=_0x3a3af4[_0x540726(0x413)](_0x4cf6b6=>{const _0x204c4a=_0x540726;_0x4cf6b6['id']===Ka['id']&&_0x55f85f[_0x204c4a(0x145)](_0x40d8e0());}),_0x4ac4b8=_0x460e25[_0x540726(0x407)]['subscribe'](()=>{_0x55f85f['next'](_0x40d8e0());});return _0x55f85f[_0x540726(0x145)](_0x40d8e0()),()=>{const _0x355283=_0x540726;_0x11e57c[_0x355283(0x374)](),_0x4ac4b8['unsubscribe']();};}),'hidden$':_0x3f1cec[_0x726cd2(0x41b)](_0x299b38)['pipe'](_0x3f504f(_0x9901c0=>!_0x9901c0))};}function ko(_0x2f1d36){const _0x322577=_0x304ba4;let _0x176c90=_0x2f1d36[_0x322577(0x172)](_0x10d47e);return{'id':go['id'],'type':_0x513c6e[_0x322577(0x49f)],'selections':[{'label':{'name':yo,'hoverable':!0x1,'selectable':!0x1,'props':{'id':go['id']}}}],'icon':_0x322577(0x155),'tooltip':_0x322577(0x56c),'activated$':_0x405dc1(_0x176c90,!0x1,()=>new _0x109bfb(_0x4e04de=>{const _0x4472c2=_0x322577;_0x4e04de[_0x4472c2(0x145)](!0x1);})),'hidden$':_0x7516aa(_0x2f1d36,_0x2fb0a4['UNIVER_SHEET']),'disabled$':_0x5f25d8(_0x2f1d36)};}const Ao={[_0x117177['START']]:{[_0x14bcfa[_0x304ba4(0x426)]]:{[Ka['id']]:{'order':3.5,'menuItemFactory':Oo},[Ha['id']]:{'order':3.4,'menuItemFactory':Eo}},[_0x14bcfa[_0x304ba4(0x484)]]:{[_0x2461bb['id']]:{'order':0x1,'menuItemFactory':Co,[_0x2a0b2c['id']]:{'order':0x0,'menuItemFactory':wo}}}},[_0x18ed09[_0x304ba4(0x234)]]:{[go['id']]:{'order':0x4,'menuItemFactory':ko}}};let jo=class extends _0x1a987c{constructor(_0x4a74e6,_0x591199,_0x447b0d,_0x781627,_0x455e00,_0x5ac49a,_0x3addbd,_0x9a27b4,_0x1413fc,_0x3002b3,_0x295a10){const _0x1b5b3a=_0x304ba4;super(),this['_univerInstanceService']=_0x4a74e6,this[_0x1b5b3a(0x55e)]=_0x591199,this[_0x1b5b3a(0x1b2)]=_0x447b0d,this[_0x1b5b3a(0x586)]=_0x781627,this[_0x1b5b3a(0x436)]=_0x455e00,this[_0x1b5b3a(0x49d)]=_0x5ac49a,this[_0x1b5b3a(0x451)]=_0x3addbd,this['_commandService']=_0x9a27b4,this['_drawingManagerService']=_0x1413fc,this[_0x1b5b3a(0x377)]=_0x3002b3,this['_contextService']=_0x295a10,Y(this,_0x1b5b3a(0x4ef),null),Y(this,_0x1b5b3a(0x49c),null),Y(this,_0x1b5b3a(0x1bc),!0x1),this[_0x1b5b3a(0x420)](),this['_initMenu'](),this[_0x1b5b3a(0x1e2)](this['_univerInstanceService'][_0x1b5b3a(0x13f)](_0x2fb0a4['UNIVER_SHEET'])[_0x1b5b3a(0x464)](_0x5902d1=>{const _0x17e8e5=_0x1b5b3a;var _0x4d4103;_0x5902d1||(_0x4d4103=this[_0x17e8e5(0x4ef)])==null||_0x4d4103['dispose']();})),this[_0x1b5b3a(0x600)](),this[_0x1b5b3a(0x506)]();}[_0x304ba4(0x233)](){const _0x1ab364=_0x304ba4;this[_0x1ab364(0x586)][_0x1ab364(0x39b)](Ao);}[_0x304ba4(0x506)](){const _0x3a9858=_0x304ba4;this[_0x3a9858(0x377)]['registerFeatureMenu'](_0x2375be['DRAWING_SHAPE'],this[_0x3a9858(0x4cb)][_0x3a9858(0x544)](this)),this[_0x3a9858(0x377)][_0x3a9858(0x210)](_0x2375be[_0x3a9858(0x217)],0x6,0x4);}[_0x304ba4(0x4cb)](_0x1ffbbf,_0x3a98e3,_0xe4d798,_0x1ccf15){const _0x19932e=_0x304ba4;return[{'label':'sheets-shape.openPanel','index':0x0,'commandId':Ya['id'],'commandParams':{'unitId':_0x1ffbbf,'subUnitId':_0x3a98e3,'drawingId':_0xe4d798},'disable':_0x1ccf15===_0x2375be['DRAWING_DOM']},{'label':'sheets-shape.deleteShape','index':0x1,'commandId':_0x428f42['id'],'commandParams':{'unitId':_0x1ffbbf,'drawings':[{'unitId':_0x1ffbbf,'subUnitId':_0x3a98e3,'drawingId':_0xe4d798,'drawingType':_0x1ccf15}]},'disable':!0x1},{'label':_0x19932e(0x42b),'index':0x2,'commandId':Ja['id'],'commandParams':{'unitId':_0x1ffbbf,'subUnitId':_0x3a98e3,'drawingId':_0xe4d798},'disable':!0x1},{'label':'sheets-shape.toggleFlipH','index':0x3,'commandId':_0x3faeb6['id'],'commandParams':{'unitId':_0x1ffbbf,'subUnitId':_0x3a98e3,'shapeId':_0xe4d798,'flipH':!0x0},'disable':!0x1},{'label':_0x19932e(0x24f),'index':0x4,'commandId':_0x3faeb6['id'],'commandParams':{'unitId':_0x1ffbbf,'subUnitId':_0x3a98e3,'shapeId':_0xe4d798,'flipV':!0x0},'disable':!0x1},{'label':'sheets-shape.rotateRight90','index':0x4,'commandId':_0x5b481b['id'],'commandParams':{'unitId':_0x1ffbbf,'subUnitId':_0x3a98e3,'shapeId':_0xe4d798,'rotate':0x5a},'disable':!0x1},{'label':_0x19932e(0x5fd),'index':0x4,'commandId':_0x5b481b['id'],'commandParams':{'unitId':_0x1ffbbf,'subUnitId':_0x3a98e3,'shapeId':_0xe4d798,'rotate':-0x5a},'disable':!0x1},{'label':_0x19932e(0x167),'index':0x4,'commandId':_0x22491e['id'],'commandParams':{'unitId':_0x1ffbbf,'subUnitId':_0x3a98e3,'shapeId':_0xe4d798},'disable':!0x1}];}[_0x304ba4(0x343)](_0x142c53,_0x1bd89a,_0x405bf4){const _0x2d6c4c=_0x304ba4;let _0x3f7555=this[_0x2d6c4c(0x436)][_0x2d6c4c(0x29a)](_0x142c53,_0x1bd89a,_0x405bf4),_0x530c80=this[_0x2d6c4c(0x436)][_0x2d6c4c(0x1c6)](_0x142c53,_0x1bd89a,_0x405bf4);return _0x3f7555!==void 0x0&&_0x530c80!==void 0x0?{'shapeData':_0x530c80,'shapeId':_0x405bf4,'shapeType':_0x3f7555,'unitId':_0x142c53,'subUnitId':_0x1bd89a,'disableShapeOption':!0x1}:null;}['_registerOperations'](){const _0x15c87d=_0x304ba4;this[_0x15c87d(0x1e2)](this[_0x15c87d(0x288)][_0x15c87d(0x413)](_0xac4626=>{const _0x265a18=_0x15c87d;if(_0xac4626['id']===Ya['id']){let {unitId:_0x5e0332,subUnitId:_0x1258b4,drawingId:_0x2e36ef}=_0xac4626['params'];this[_0x265a18(0x49c)]=this[_0x265a18(0x343)](_0x5e0332,_0x1258b4,_0x2e36ef),this[_0x265a18(0x5bf)]();}if(_0xac4626['id']===Ja['id']&&(this[_0x265a18(0x49c)]=null,this['_closeShapeEditPanel']()),_0xac4626['id']===_0xae2422['id']){let {unitId:_0x55be31,subUnitId:_0x1d157e,shapeId:_0x3f9951}=_0xac4626['params'];if(this[_0x265a18(0x49c)]&&this[_0x265a18(0x49c)][_0x265a18(0x27b)]===_0x3f9951){let _0x4a131f=this[_0x265a18(0x343)](_0x55be31,_0x1d157e,_0x3f9951);_0x4a131f&&(this[_0x265a18(0x49c)]=_0x4a131f);}}})),this[_0x15c87d(0x1e2)](this[_0x15c87d(0x327)]['focus$'][_0x15c87d(0x464)](_0xa58b61=>{const _0x20aff2=_0x15c87d;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0xa58b61[_0x20aff2(0x1a1)]===0x0){this[_0x20aff2(0x49c)]=null,this['_closeShapeEditPanel']();return;}if(_0xa58b61[_0x20aff2(0x1a1)]===0x1&&_0xa58b61[0x0]['drawingType']===_0x2375be[_0x20aff2(0x217)]&&(this[_0x20aff2(0x49c)]=this[_0x20aff2(0x343)](_0xa58b61[0x0]['unitId'],_0xa58b61[0x0][_0x20aff2(0x5ca)],_0xa58b61[0x0][_0x20aff2(0x447)]),this['_activeShapeInfo'])){this[_0x20aff2(0x5bf)]();return;}let _0x281896=_0xa58b61[_0x20aff2(0x159)](_0x4f25a6=>_0x4f25a6['drawingType']===_0x2375be[_0x20aff2(0x217)]);if(_0xa58b61[_0x20aff2(0x1a1)]>0x1&&_0x281896['length']===_0xa58b61[_0x20aff2(0x1a1)]){if(this[_0x20aff2(0x49c)]=this[_0x20aff2(0x343)](_0xa58b61[0x0][_0x20aff2(0x4a7)],_0xa58b61[0x0][_0x20aff2(0x5ca)],_0xa58b61[0x0][_0x20aff2(0x447)]),this['_activeShapeInfo']){this[_0x20aff2(0x5bf)]();return;}}else{if(this[_0x20aff2(0x49c)]=this[_0x20aff2(0x343)](_0xa58b61[0x0][_0x20aff2(0x4a7)],_0xa58b61[0x0]['subUnitId'],_0xa58b61[0x0][_0x20aff2(0x447)]),this[_0x20aff2(0x49c)]){this[_0x20aff2(0x49c)][_0x20aff2(0x344)]=!0x0,this[_0x20aff2(0x5bf)]();return;}}this[_0x20aff2(0x425)]();}));}[_0x304ba4(0x420)](){const _0x3cd1b1=_0x304ba4;[[_0x3cd1b1(0x155),_0x58013a],[_0x3cd1b1(0x4e2),_0x27573b],[_0x3cd1b1(0x521),_0x495819],['ShapeAccentBorderCallout3Icon',_0x43cc6b],[_0x3cd1b1(0x2a8),_0x386e82],['ShapeAccentCallout2Icon',_0x380b32],[_0x3cd1b1(0x2d2),_0x4c54cb],[_0x3cd1b1(0x404),_0x3fff69],['ShapeActionButtonBeginningIcon',_0x3ba68b],['ShapeActionButtonBlankIcon',_0x3ad7d8],[_0x3cd1b1(0x51f),_0x4e7bda],[_0x3cd1b1(0x1e6),_0x2c9214],[_0x3cd1b1(0x576),_0x551210],['ShapeActionButtonHelpIcon',_0x48f01e],['ShapeActionButtonHomeIcon',_0x5f448a],[_0x3cd1b1(0x14f),_0xfbeb0],[_0x3cd1b1(0x1a7),_0x316bce],[_0x3cd1b1(0x5c9),_0xaa4ca6],[_0x3cd1b1(0x606),_0x4b9921],['ShapeArcIcon',_0xc7f9b1],[_0x3cd1b1(0x2c2),_0x5b7703],[_0x3cd1b1(0x485),_0x238382],['ShapeBentConnector3Arrow2Icon',_0x14957d],[_0x3cd1b1(0x300),_0x8ede93],[_0x3cd1b1(0x271),_0x1d69a7],[_0x3cd1b1(0x518),_0x31f5ad],[_0x3cd1b1(0x4f5),_0x4058d4],[_0x3cd1b1(0x367),_0x1755ce],['ShapeBorderCallout2Icon',_0x3844e1],[_0x3cd1b1(0x220),_0x181d2d],[_0x3cd1b1(0x328),_0x2a6925],['ShapeBracketPairIcon',_0x440d66],[_0x3cd1b1(0x1b5),_0x48f097],[_0x3cd1b1(0x201),_0x1e1446],['ShapeCallout3Icon',_0x3f2bc4],['ShapeCanIcon',_0x5afd98],['ShapeChartPlusIcon',_0x257d6b],['ShapeChartStarIcon',_0xcefe11],[_0x3cd1b1(0x3ba),_0x312cb1],[_0x3cd1b1(0x4ce),_0x4f3f30],[_0x3cd1b1(0x50a),_0x2595a2],[_0x3cd1b1(0x333),_0x354cb2],['ShapeCloudCalloutIcon',_0x1a6601],[_0x3cd1b1(0x1ec),_0x46cb5c],['ShapeCornerIcon',_0x16413a],[_0x3cd1b1(0x193),_0x498c35],['ShapeCubeIcon',_0x49a7fa],[_0x3cd1b1(0x43e),_0x5d55a6],[_0x3cd1b1(0x545),_0x247476],[_0x3cd1b1(0x1c8),_0x54a2d8],['ShapeCurvedDownArrowIcon',_0x5e7b99],[_0x3cd1b1(0x25b),_0x5f30b8],[_0x3cd1b1(0x1c5),_0x171c25],[_0x3cd1b1(0x336),_0x2090b2],['ShapeDecagonIcon',_0x342675],['ShapeDiagStripeIcon',_0x4d34dc],[_0x3cd1b1(0x3ed),_0x49178e],[_0x3cd1b1(0x296),_0x3840ef],['ShapeDonutIcon',_0xae419c],[_0x3cd1b1(0x19e),_0x3ed007],[_0x3cd1b1(0x448),_0x895a4e],[_0x3cd1b1(0x520),_0x18e657],[_0x3cd1b1(0x225),_0x6e7d7a],[_0x3cd1b1(0x218),_0x5c9ca1],[_0x3cd1b1(0x2b9),_0x209a4f],[_0x3cd1b1(0x2d6),_0x559c17],[_0x3cd1b1(0x1c4),_0x578481],[_0x3cd1b1(0x412),_0x534f12],[_0x3cd1b1(0x5a4),_0x3ff0fc],[_0x3cd1b1(0x1ed),_0x8dfe19],[_0x3cd1b1(0x4dc),_0x1a0f88],[_0x3cd1b1(0x340),_0x5831d7],[_0x3cd1b1(0x3b9),_0x380112],['ShapeFlowChartInputOutputIcon',_0x3af9a2],[_0x3cd1b1(0x15f),_0x95caef],[_0x3cd1b1(0x5a7),_0x53b4bf],[_0x3cd1b1(0x561),_0x225ca1],[_0x3cd1b1(0x4a8),_0x5be75d],['ShapeFlowChartManualInputIcon',_0x1f2999],[_0x3cd1b1(0x1fe),_0x3affe5],[_0x3cd1b1(0x32d),_0x4ca63d],[_0x3cd1b1(0x55b),_0x48a69c],[_0x3cd1b1(0x2ad),_0x544e23],[_0x3cd1b1(0x176),_0x40222c],[_0x3cd1b1(0x25a),_0x38516a],[_0x3cd1b1(0x260),_0x34fd05],[_0x3cd1b1(0x463),_0xdc9154],[_0x3cd1b1(0x23d),_0x709512],[_0x3cd1b1(0x339),_0x521774],[_0x3cd1b1(0x4e9),_0x49d5ab],[_0x3cd1b1(0x1a5),_0x1003d7],['ShapeFlowChartSortIcon',_0x5ec589],[_0x3cd1b1(0x242),_0x35174e],['ShapeFlowChartTerminatorIcon',_0x58731b],[_0x3cd1b1(0x322),_0x10e0d1],[_0x3cd1b1(0x442),_0x27eaaf],['ShapeFunnelIcon',_0x4512e1],[_0x3cd1b1(0x1a6),_0x20c89d],[_0x3cd1b1(0x4b5),_0x4dfbc1],[_0x3cd1b1(0x147),_0x312ed1],[_0x3cd1b1(0x421),_0x202a09],[_0x3cd1b1(0x48b),_0xb6cc6c],[_0x3cd1b1(0x203),_0x54cf50],[_0x3cd1b1(0x258),_0x1fd350],[_0x3cd1b1(0x244),_0x14ab68],['ShapeIrregularSeal1Icon',_0x19b90b],['ShapeIrregularSeal2Icon',_0x3456cf],['ShapeLeftArrowCalloutIcon',_0x74a08e],[_0x3cd1b1(0x603),_0x7d308c],[_0x3cd1b1(0x3b5),_0x39a47d],[_0x3cd1b1(0x2df),_0x48d27d],[_0x3cd1b1(0x2c4),_0x148d5d],['ShapeLeftRightArrowCalloutIcon',_0x2301fa],[_0x3cd1b1(0x3e9),_0x10366c],[_0x3cd1b1(0x4b9),_0x4c69de],[_0x3cd1b1(0x59a),_0x3d7c70],[_0x3cd1b1(0x295),_0x66324e],['ShapeLeftUpArrowIcon',_0x45eccc],[_0x3cd1b1(0x443),_0x515baf],[_0x3cd1b1(0x181),_0xdc7286],[_0x3cd1b1(0x1ae),_0x21f82f],['ShapeMathDivideIcon',_0x4d5f95],['ShapeMathEqualIcon',_0x784406],[_0x3cd1b1(0x410),_0x21e3f3],[_0x3cd1b1(0x2ce),_0x12e447],[_0x3cd1b1(0x1d2),_0x45079c],[_0x3cd1b1(0x2b6),_0x1788ab],['ShapeMoonIcon',_0x321081],[_0x3cd1b1(0x535),_0x1fda60],[_0x3cd1b1(0x1f1),_0xbecf6b],['ShapeNotchedRightArrowIcon',_0x3a3cc9],['ShapeOctagonIcon',_0x2af914],[_0x3cd1b1(0x501),_0x1082d8],['ShapePentagonIcon',_0x2d70d5],[_0x3cd1b1(0x365),_0x1f144d],[_0x3cd1b1(0x4fc),_0x4181d9],['ShapePlaqueIcon',_0x530965],['ShapePlaqueTabsIcon',_0x2098b7],[_0x3cd1b1(0x29d),_0x16e051],[_0x3cd1b1(0x5a3),_0x4a48da],[_0x3cd1b1(0x341),_0xc7d57b],[_0x3cd1b1(0x4c7),_0x3fc2e4],[_0x3cd1b1(0x51e),_0x592bb4],['ShapeRectTextboxVerticalIcon',_0x4755a8],[_0x3cd1b1(0x205),_0x583db2],[_0x3cd1b1(0x3be),_0x165dc9],['ShapeRightArrowCalloutIcon',_0x628819],[_0x3cd1b1(0x4fe),_0x38cec3],[_0x3cd1b1(0x5d3),_0x322c70],[_0x3cd1b1(0x14e),_0x13871e],[_0x3cd1b1(0x1fa),_0x511f04],[_0x3cd1b1(0x3f5),_0x3d7b16],['ShapeRound2SameRectIcon',_0x536989],[_0x3cd1b1(0x311),_0x564b85],[_0x3cd1b1(0x5ce),_0x1f3f3d],[_0x3cd1b1(0x4c1),_0x2c2e57],['ShapeSnip1RectIcon',_0x256318],[_0x3cd1b1(0x4e0),_0x28f67],[_0x3cd1b1(0x51a),_0x10eb2b],[_0x3cd1b1(0x4a4),_0x3703f7],[_0x3cd1b1(0x4d0),_0x157008],[_0x3cd1b1(0x4b7),_0x19d004],[_0x3cd1b1(0x509),_0x42e479],[_0x3cd1b1(0x26e),_0x474243],['ShapeStar24Icon',_0x180246],[_0x3cd1b1(0x430),_0x45a0a9],[_0x3cd1b1(0x281),_0x7c0710],['ShapeStar5Icon',_0x347d68],[_0x3cd1b1(0x3cb),_0x3e72a8],[_0x3cd1b1(0x4cc),_0x3a58d2],['ShapeStar8Icon',_0xad43e],[_0x3cd1b1(0x213),_0x5f19e4],['ShapeStraightConnector2Icon',_0x22d666],['ShapeStripedRightArrowIcon',_0x122580],[_0x3cd1b1(0x229),_0x3b79e0],[_0x3cd1b1(0x3bc),_0x5d8995],['ShapeTeardropIcon',_0x1beeeb],[_0x3cd1b1(0x17a),_0x4fa25a],[_0x3cd1b1(0x578),_0x269840],[_0x3cd1b1(0x52c),_0x4bd02b],[_0x3cd1b1(0x39a),_0x52aa57],[_0x3cd1b1(0x56e),_0x37e111],[_0x3cd1b1(0x524),_0x2d61ee],[_0x3cd1b1(0x3e3),_0x23eacf],[_0x3cd1b1(0x189),_0x40db86],[_0x3cd1b1(0x1f8),_0x1de3f1],[_0x3cd1b1(0x4aa),_0x5a3c11],[_0x3cd1b1(0x481),_0x555c7d],[_0x3cd1b1(0x405),_0x10e5e6],[Xa,fo],[yo,So],[_0x438739,xo]]['forEach'](([_0x5b23ea,_0x4a41d1])=>{const _0x2132ce=_0x3cd1b1;this['disposeWithMe'](this['_componentManager'][_0x2132ce(0x590)](_0x5b23ea,_0x4a41d1));});}[_0x304ba4(0x5bf)](){const _0x26763f=_0x304ba4;this[_0x26763f(0x4ef)]=this[_0x26763f(0x1b2)]['open']({'id':Xa,'header':{'title':this[_0x26763f(0x49d)]['t']('sheets-shape.formatShape')},'width':0x184,'children':{'label':Xa,...this[_0x26763f(0x49c)]},'onClose':()=>{const _0x16554c=_0x26763f;this['_drawingManagerService'][_0x16554c(0x5c2)](null),this['_contextService'][_0x16554c(0x3a6)](_0x299b38,!0x1),this[_0x16554c(0x4ef)]=null;}}),this[_0x26763f(0x1bc)]=!0x0;}['_closeShapeEditPanel'](){const _0x49a6ac=_0x304ba4;this[_0x49a6ac(0x1bc)]=!0x1,this[_0x49a6ac(0x1b2)]['close'](Xa),this[_0x49a6ac(0x4ef)]=null,this[_0x49a6ac(0x215)][_0x49a6ac(0x3a6)](_0x299b38,!0x1),this[_0x49a6ac(0x327)][_0x49a6ac(0x5c2)](null);}};jo=$([Q(0x0,_0x10d47e),Q(0x1,_0x28dee4(_0x90a7c8)),Q(0x2,_0x28dee4(_0x2e82af)),Q(0x3,_0x22c0fe),Q(0x4,_0x28dee4(_0x3538a1)),Q(0x5,_0x28dee4(_0x164f0a)),Q(0x6,_0x28dee4(_0x5086cb)),Q(0x7,_0xc97706),Q(0x8,_0x5873e9),Q(0x9,_0x28dee4(_0x8d657e)),Q(0xa,_0x3c1d80)],jo);var Mo='@univerjs-pro/sheets-shape-ui',No='0.23.0-insiders.20260522-e8f2a3b';const Po=_0x304ba4(0x4b8);Symbol(Po);const Fo={};let Io=class extends _0x1a987c{constructor(_0x44e570,_0x2f19b2,_0x3c7012,_0x24a9a2,_0x22a45f){const _0x40cbd3=_0x304ba4;super(),this[_0x40cbd3(0x411)]=_0x44e570,this[_0x40cbd3(0x327)]=_0x2f19b2,this['_renderManagerService']=_0x3c7012,this['_univerInstanceService']=_0x24a9a2,this[_0x40cbd3(0x4be)]=_0x22a45f,Y(this,_0x40cbd3(0x315),null),Y(this,_0x40cbd3(0x2a1),null),Y(this,_0x40cbd3(0x3c8),null),Y(this,_0x40cbd3(0x470),void 0x0),Y(this,'_shapes',[]),Y(this,_0x40cbd3(0x57f),0x0),Y(this,_0x40cbd3(0x51b),0x0),Y(this,_0x40cbd3(0x5eb),0x0),Y(this,'_baseHeight',0x0),Y(this,'_isStartAdjusting',!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,_0x40cbd3(0x31e),void 0x0),Y(this,'_adjHandlerPointerMove',void 0x0),Y(this,_0x40cbd3(0x5d4),void 0x0),Y(this,_0x40cbd3(0x44b),!0x1),this['_registerFocusChangeHandler'](),this['_registerMoveHandler']();}[_0x304ba4(0x44c)](){this['_clearControls']();}[_0x304ba4(0x3ff)](){const _0x20b0e4=_0x304ba4;this[_0x20b0e4(0x4e6)](),this[_0x20b0e4(0x5f1)](!0x0);}[_0x304ba4(0x1ab)](_0x16112c,_0x415fb0,_0x320202,_0x2d0b70){const _0x366fef=_0x304ba4;let _0x5228a8=_0x16112c;if(!(_0x5228a8===_0x13cb42[_0x366fef(0x472)]||_0x16112c==='custom'))try{let _0x458a8e=new _0x4a2fd4(_0x5228a8,_0x366fef(0x170)+_0x16112c);return _0x2d0b70&&_0x458a8e[_0x366fef(0x212)]({'adjustValues':_0x2d0b70},!0x0),_0x458a8e['updateContext']({'width':_0x415fb0,'height':_0x320202}),_0x458a8e;}catch{return;}}[_0x304ba4(0x437)](_0x594aa1,_0x1ea339,_0x4b22af){const _0x12e7a9=_0x304ba4;let _0x80eb89={'unitId':_0x594aa1,'subUnitId':_0x1ea339,'drawingId':_0x4b22af},_0x125b92=this[_0x12e7a9(0x327)]['getDrawingByParam'](_0x80eb89);if(!(!_0x125b92||_0x125b92[_0x12e7a9(0x429)]!==_0x2375be[_0x12e7a9(0x351)]))return _0x125b92;}[_0x304ba4(0x4b3)](_0x5d82b5,_0xd863f0,_0x3d99d9){const _0x1c6f66=_0x304ba4;let _0x3f4b12=this[_0x1c6f66(0x5a0)][_0x1c6f66(0x1c2)](_0x5d82b5);if(!_0x3f4b12)return;let {scene:_0x2095a0}=_0x3f4b12,_0x46f5e8=_0x4ac3ac({'unitId':_0x5d82b5,'subUnitId':_0xd863f0,'drawingId':_0x3d99d9}),_0x28ee17=_0x2095a0['getObject'](_0x46f5e8);if(_0x28ee17 instanceof _0x3b74da){let _0x3491de=_0x28ee17[_0x1c6f66(0x538)];if(_0x3491de)return{'prstGeom':_0x3491de,'adjustValues':_0x28ee17[_0x1c6f66(0x40e)]};}}[_0x304ba4(0x5f1)](_0x377b0f=!0x1){const _0x55bf48=_0x304ba4;if(!this[_0x55bf48(0x2a1)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x41d70f=this['_renderManagerService']['getRenderById'](this['_unitId']);if(!_0x41d70f||!_0x41d70f[_0x55bf48(0x465)](_0x23f58f)[_0x55bf48(0x588)]())return;let {scene:_0x23af9c}=_0x41d70f,_0x2c945c=this[_0x55bf48(0x437)](this[_0x55bf48(0x2a1)],this[_0x55bf48(0x3c8)],this[_0x55bf48(0x315)]);if(!_0x2c945c)return;let {transform:_0x21ef09}=_0x2c945c;if(!_0x21ef09)return;let {left:_0x20841e,top:_0x10cbed,width:_0x34e13e,height:_0xcf4bb5,flipX:_0x3d8b98,flipY:_0xf483e4,angle:_0x54ae5a=0x0}=_0x21ef09;if(_0x20841e===void 0x0||_0x10cbed===void 0x0)return;let _0x1ebc9a=this[_0x55bf48(0x4b3)](this['_unitId'],this[_0x55bf48(0x3c8)],this[_0x55bf48(0x315)]);if(!_0x1ebc9a)return;if(_0x377b0f){let _0x1240ea=this[_0x55bf48(0x1ab)](_0x1ebc9a['prstGeom'],_0x34e13e||0x0,_0xcf4bb5||0x0,_0x1ebc9a[_0x55bf48(0x592)]);if(!_0x1240ea)return;this[_0x55bf48(0x470)]=_0x1240ea[_0x55bf48(0x268)]();}let _0x1bcd39=this[_0x55bf48(0x470)];if(!(!_0x1bcd39||_0x1bcd39[_0x55bf48(0x1a1)]===0x0))for(let _0xb8eb37=0x0;_0xb8eb37<_0x1bcd39[_0x55bf48(0x1a1)];_0xb8eb37++){let _0x37565c=_0x1bcd39[_0xb8eb37],_0x105f13=_0x37565c['x'],_0x326b87=_0x37565c['y'];if(_0x3d8b98&&(_0x105f13=(_0x34e13e||0x0)-_0x105f13),_0xf483e4&&(_0x326b87=(_0xcf4bb5||0x0)-_0x326b87),_0x54ae5a!==0x0){let _0x3bd571=(_0x34e13e||0x0)/0x2,_0x4c9b09=(_0xcf4bb5||0x0)/0x2,_0x5dea31=_0x54ae5a*Math['PI']/0xb4,_0x35c7a4=Math[_0x55bf48(0x4ac)](_0x5dea31),_0xd04731=Math['sin'](_0x5dea31),_0x6992cf=_0x105f13-_0x3bd571,_0x3629f0=_0x326b87-_0x4c9b09;_0x105f13=_0x3bd571+(_0x6992cf*_0x35c7a4-_0x3629f0*_0xd04731),_0x326b87=_0x4c9b09+(_0x6992cf*_0xd04731+_0x3629f0*_0x35c7a4);}let _0xea2d02={'x':_0x105f13,'y':_0x326b87,'adjName':_0x37565c[_0x55bf48(0x34c)]};this[_0x55bf48(0x579)](_0x23af9c,_0xea2d02,_0xea2d02[_0x55bf48(0x34c)],_0x20841e,_0x10cbed,this[_0x55bf48(0x2a1)],this[_0x55bf48(0x3c8)]);}}[_0x304ba4(0x579)](_0x5d774b,_0x5179d8,_0x3b34b4,_0x50bb31,_0x2fba84,_0x291897,_0x4730a4){const _0x369d42=_0x304ba4;if(!this[_0x369d42(0x315)])return;let _0x3f968c='image-clip-adjust-point-'+this[_0x369d42(0x315)]+'-'+_0x3b34b4,_0x296352=_0x5d774b[_0x369d42(0x4cd)](_0x3f968c);if(_0x296352){_0x296352[_0x369d42(0x277)]({'left':_0x5179d8['x']+_0x50bb31-_0x9cc8fa[_0x369d42(0x23b)],'top':_0x5179d8['y']+_0x2fba84-_0x9cc8fa[_0x369d42(0x23b)]});return;}let _0x3b543c=new po(_0x3f968c,{'left':_0x5179d8['x']+_0x50bb31-_0x9cc8fa[_0x369d42(0x23b)],'top':_0x5179d8['y']+_0x2fba84-_0x9cc8fa['adjHandleSize'],'adjName':_0x3b34b4,'shapeId':this['_activeImageId'],'unitId':_0x291897,'subUnitId':_0x4730a4,'width':_0x9cc8fa[_0x369d42(0x23b)]+0x8,'height':_0x9cc8fa[_0x369d42(0x23b)]+0x8,'zIndex':_0x395f9d+0x1,'evented':!0x0});this[_0x369d42(0x387)]['push'](_0x3b543c),this[_0x369d42(0x362)](_0x3b543c,_0x5d774b,_0x3b34b4),_0x5d774b['addObject'](_0x3b543c,_0x395f9d+0x1);}[_0x304ba4(0x4e6)](){const _0x432133=_0x304ba4;this['_shapes'][_0x432133(0x1a1)]!==0x0&&(this['_shapes'][_0x432133(0x364)](_0x44899c=>_0x44899c[_0x432133(0x374)]()),this[_0x432133(0x387)]=[]);}['_getScrollInfo'](_0x504036,_0xea51eb){const _0x220d6=_0x304ba4;var _0x58762d;let _0x3b316f={'x':0x0,'y':0x0},_0x19800b=this[_0x220d6(0x5a0)][_0x220d6(0x1c2)](_0x504036);if(!_0x19800b||!_0x19800b[_0x220d6(0x465)](_0x23f58f)[_0x220d6(0x3c5)](_0xea51eb))return _0x3b316f;let _0x42fc00=_0x19800b[_0x220d6(0x465)](_0x4888cb),_0x19bab0=_0x42fc00==null?void 0x0:_0x42fc00[_0x220d6(0x4ba)]();if(!_0x19bab0)return _0x3b316f;let _0x2e7141=(_0x58762d=this[_0x220d6(0x307)][_0x220d6(0x1c9)](_0x504036))==null?void 0x0:_0x58762d[_0x220d6(0x33d)](_0xea51eb);if(!_0x2e7141)return _0x3b316f;let _0x6a3faa=_0x344941(_0x19bab0['sheetViewStartRow'],_0x19bab0[_0x220d6(0x31a)],_0x19800b[_0x220d6(0x490)],_0x2e7141);return _0x6a3faa?{'x':_0x6a3faa[_0x220d6(0x243)],'y':_0x6a3faa[_0x220d6(0x55c)]}:_0x3b316f;}[_0x304ba4(0x1b0)](_0x53e9aa,_0x16d96a){const _0x1ce3f3=_0x304ba4;var _0x11c64f,_0x4badb2;let _0x3c42a3=(_0x11c64f=this[_0x1ce3f3(0x307)][_0x1ce3f3(0x1c9)](_0x53e9aa))==null?void 0x0:_0x11c64f[_0x1ce3f3(0x33d)](_0x16d96a);return(_0x4badb2=_0x3c42a3==null?void 0x0:_0x3c42a3[_0x1ce3f3(0x2cc)]())==null?0x1:_0x4badb2;}[_0x304ba4(0x362)](_0x3d3dd4,_0x1eed49,_0x5a7ea9){const _0x1688cc=_0x304ba4;this[_0x1688cc(0x1e2)](_0x1a9690(_0x3d3dd4[_0x1688cc(0x5a8)][_0x1688cc(0x400)]((_0xb3e171,_0x56da11)=>{const _0x258d71=_0x1688cc;var _0x558dbf,_0x176690,_0x53dfba;let {unitId:_0x659cdc,subUnitId:_0x1eb69c,drawingId:_0x389f9b}=_0x3d3dd4[_0x258d71(0x533)](),_0x709965=this[_0x258d71(0x437)](_0x659cdc,_0x1eb69c,_0x389f9b);if(!(_0x709965!=null&&_0x709965[_0x258d71(0x42c)]))return;let {left:_0x4dc0c6,top:_0x15ac75,width:_0x1b15dc,height:_0xed1086}=_0x709965[_0x258d71(0x42c)];this[_0x258d71(0x57f)]=_0x4dc0c6||0x0,this[_0x258d71(0x51b)]=_0x15ac75||0x0,this['_baseWidth']=_0x1b15dc||0x0,this[_0x258d71(0x299)]=_0xed1086||0x0;let _0xb9342f=!!((_0x558dbf=_0x709965[_0x258d71(0x42c)])!=null&&_0x558dbf[_0x258d71(0x3a3)]),_0x44028d=!!((_0x176690=_0x709965['transform'])!=null&&_0x176690[_0x258d71(0x3d9)]),_0x5c6b16=((_0x53dfba=_0x709965[_0x258d71(0x42c)])==null?void 0x0:_0x53dfba[_0x258d71(0x517)])||0x0,_0x62034f=this[_0x258d71(0x4b3)](_0x659cdc,_0x1eb69c,_0x389f9b);if(!_0x62034f)return;let _0x515ef0=this[_0x258d71(0x1ab)](_0x62034f[_0x258d71(0x538)],this['_baseWidth'],this[_0x258d71(0x299)],_0x62034f['adjustValues']);if(!_0x515ef0||(this[_0x258d71(0x31e)]=_0x515ef0,this[_0x258d71(0x48d)]=_0x515ef0[_0x258d71(0x206)](_0x5a7ea9),!this[_0x258d71(0x48d)]))return;this[_0x258d71(0x20d)]=!0x0,_0x1eed49[_0x258d71(0x2a7)]();let _0x4d3f63=_0x62034f[_0x258d71(0x538)];this[_0x258d71(0x48a)]=_0x1eed49[_0x258d71(0x5ea)][_0x258d71(0x400)]((_0x18abc4,_0x175621)=>{const _0x5a9025=_0x258d71;if(!this[_0x5a9025(0x20d)])return;let {offsetX:_0x589704,offsetY:_0x3cdd52}=_0x18abc4,_0x474379=this[_0x5a9025(0x48d)];if(!this[_0x5a9025(0x31e)]||!_0x474379)return;_0x1eed49[_0x5a9025(0x2a7)](),_0x1eed49[_0x5a9025(0x5a5)](_0x2f7837[_0x5a9025(0x2fd)]);let _0x3d99c0={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x5a9025(0x299)]},_0x400b38=this['_getScrollInfo'](_0x659cdc,_0x1eb69c),_0x4b42e1=this[_0x5a9025(0x1b0)](_0x659cdc,_0x1eb69c),_0x5965d3=_0x589704/_0x4b42e1+_0x400b38['x']-this['_baseLeft'],_0x6af0fc=_0x3cdd52/_0x4b42e1+_0x400b38['y']-this[_0x5a9025(0x51b)];if(_0x5c6b16!==0x0){let _0x2c73f8=this[_0x5a9025(0x5eb)]/0x2,_0x2fde43=this[_0x5a9025(0x299)]/0x2,_0x845be3=_0x5c6b16*Math['PI']/0xb4,_0x2322cf=Math['cos'](_0x845be3),_0x4f157c=Math[_0x5a9025(0x532)](_0x845be3),_0x411787=_0x5965d3-_0x2c73f8,_0x470f9c=_0x6af0fc-_0x2fde43;_0x5965d3=_0x2c73f8+(_0x411787*_0x2322cf+_0x470f9c*_0x4f157c),_0x6af0fc=_0x2fde43+(-_0x411787*_0x4f157c+_0x470f9c*_0x2322cf);}_0xb9342f&&(_0x5965d3=this[_0x5a9025(0x5eb)]-_0x5965d3),_0x44028d&&(_0x6af0fc=this[_0x5a9025(0x299)]-_0x6af0fc);let _0x5dc198=this[_0x5a9025(0x31e)][_0x5a9025(0x580)](_0x3d99c0,{'x':_0x5965d3,'y':_0x6af0fc},_0x474379,_0xb9342f,_0x44028d),_0x15c1a0=_0x474379[_0x5a9025(0x514)]||_0x474379[_0x5a9025(0x495)]||_0x474379[_0x5a9025(0x499)]||_0x474379[_0x5a9025(0x3b7)];_0x15c1a0!==void 0x0&&(this[_0x5a9025(0x31e)]['setAdjustValueByName'](_0x15c1a0,_0x5dc198),this['_activeShapeModel']['updateContext']({'width':this[_0x5a9025(0x5eb)],'height':this[_0x5a9025(0x299)]}),this[_0x5a9025(0x183)](_0x659cdc,_0x1eb69c,_0x389f9b,_0x15c1a0,_0x5dc198),this[_0x5a9025(0x470)]=this[_0x5a9025(0x31e)][_0x5a9025(0x268)](),this['_activeAdjustInfo']=this[_0x5a9025(0x31e)][_0x5a9025(0x206)](_0x5a7ea9),this[_0x5a9025(0x5f1)](),_0x175621[_0x5a9025(0x38f)]());}),this['_adjHandlerPointerUp']=_0x1eed49[_0x258d71(0x4ee)][_0x258d71(0x400)]((_0x2b40a2,_0x1b67e2)=>{const _0x48f111=_0x258d71;if(this['_adjHandlerPointerMove'][_0x48f111(0x262)](),this[_0x48f111(0x5d4)][_0x48f111(0x262)](),_0x1eed49['resetCursor'](),this['_activeShapeModel']){let _0x503977=this['_activeShapeModel'][_0x48f111(0x310)](),_0x15917b={};for(let _0x4921ce of _0x503977){let _0x4c97e3=this[_0x48f111(0x31e)][_0x48f111(0x308)](_0x4921ce);_0x4c97e3!==void 0x0&&(_0x15917b[_0x4921ce]=_0x4c97e3);}this['_imageShapeClipController'][_0x48f111(0x2e2)](_0x659cdc,_0x1eb69c,_0x389f9b,_0x4d3f63,_0x15917b);}this[_0x48f111(0x48d)]=void 0x0,this[_0x48f111(0x31e)]=void 0x0,this[_0x48f111(0x20d)]=!0x1,_0x1b67e2[_0x48f111(0x38f)](),_0x1eed49[_0x48f111(0x2ac)]();}),_0x56da11[_0x258d71(0x38f)]();})));}[_0x304ba4(0x183)](_0x3bdf57,_0x2d1fe5,_0x4fd9e2,_0x5b50dc,_0x153e15){const _0x393986=_0x304ba4;let _0x5c13c0=this[_0x393986(0x5a0)][_0x393986(0x1c2)](_0x3bdf57);if(!_0x5c13c0)return;let {scene:_0x419c72}=_0x5c13c0,_0x219194=_0x4ac3ac({'unitId':_0x3bdf57,'subUnitId':_0x2d1fe5,'drawingId':_0x4fd9e2}),_0x282979=_0x419c72['getObject'](_0x219194);if(_0x282979 instanceof _0x3b74da){var _0x258405;let _0xbef825=(_0x258405=_0x282979[_0x393986(0x40e)])==null?{}:_0x258405;_0x282979[_0x393986(0x21e)]({..._0xbef825,[_0x5b50dc]:_0x153e15}),_0x282979['makeDirty'](!0x0);}}['_registerMoveHandler'](){const _0x408e95=_0x304ba4;let _0x22b4e0=this['_univerInstanceService'][_0x408e95(0x13f)](_0x2fb0a4[_0x408e95(0x5f8)]);this[_0x408e95(0x1e2)](_0x22b4e0[_0x408e95(0x58d)](_0x29c65f(_0x570eef=>_0x570eef?_0x570eef['activeSheet$']['pipe'](_0x29c65f(_0xd06b74=>{const _0x58da73=_0x408e95;if(!_0xd06b74)return _0x2ba775;let _0x1ed21b=_0x570eef[_0x58da73(0x58b)](),_0x5c3dee=this[_0x58da73(0x5a0)][_0x58da73(0x1c2)](_0x1ed21b),_0x5d8d15=_0x5c3dee==null?void 0x0:_0x5c3dee[_0x58da73(0x490)];return _0x5d8d15?_0x23cc49(_0x5d8d15):_0x2ba775;})):_0x2ba775))['subscribe'](_0x243663=>{const _0x255e57=_0x408e95;let _0x1a6011=_0x243663[_0x255e57(0x224)]();this[_0x255e57(0x1e2)](_0x243663[_0x255e57(0x5ea)][_0x255e57(0x400)](()=>{const _0x3007b6=_0x255e57;this[_0x3007b6(0x44b)]&&this[_0x3007b6(0x4e6)]();})),this[_0x255e57(0x1e2)](_0x1a6011[_0x255e57(0x563)]['subscribe'](_0x263741=>{const _0xc7974e=_0x255e57;let {objects:_0xf77818}=_0x263741;if(this['_createControls'](),_0xf77818!==null&&_0xf77818[_0xc7974e(0x379)]===0x1){let _0x4386f4=_0xf77818[_0xc7974e(0x489)]()[_0xc7974e(0x145)]()[_0xc7974e(0x232)];_0x4386f4 instanceof _0x3b74da&&_0x4386f4[_0xc7974e(0x538)]&&(this[_0xc7974e(0x44b)]=!0x0);}})),this[_0x255e57(0x1e2)](_0x1a6011[_0x255e57(0x3cd)][_0x255e57(0x464)](()=>{const _0x24dcf9=_0x255e57;this[_0x24dcf9(0x44b)]&&this[_0x24dcf9(0x4e6)]();})),this[_0x255e57(0x1e2)](_0x243663[_0x255e57(0x4ee)]['subscribeEvent'](()=>{const _0x53fadd=_0x255e57;this[_0x53fadd(0x44b)]&&(this[_0x53fadd(0x44b)]=!0x1,this[_0x53fadd(0x5f1)]());})),this['disposeWithMe'](_0x1a6011[_0x255e57(0x482)][_0x255e57(0x464)](()=>{const _0x1f831b=_0x255e57;if(this[_0x1f831b(0x2a1)]&&this[_0x1f831b(0x3c8)]&&this[_0x1f831b(0x315)]){let _0x190c95=this[_0x1f831b(0x4b3)](this['_unitId'],this[_0x1f831b(0x3c8)],this['_activeImageId']);if(_0x190c95){var _0x2692d6,_0x18c5ef;let _0x23ce99=this[_0x1f831b(0x437)](this[_0x1f831b(0x2a1)],this[_0x1f831b(0x3c8)],this['_activeImageId']),_0x26b987=(_0x23ce99==null||(_0x2692d6=_0x23ce99[_0x1f831b(0x42c)])==null?void 0x0:_0x2692d6[_0x1f831b(0x34d)])||0x0,_0x3cca02=(_0x23ce99==null||(_0x18c5ef=_0x23ce99[_0x1f831b(0x42c)])==null?void 0x0:_0x18c5ef['height'])||0x0,_0x2563d9=this[_0x1f831b(0x1ab)](_0x190c95[_0x1f831b(0x538)],_0x26b987,_0x3cca02,_0x190c95[_0x1f831b(0x592)]);_0x2563d9&&(this['_activeAdjustPointList']=_0x2563d9[_0x1f831b(0x268)](),this[_0x1f831b(0x4e6)](),this[_0x1f831b(0x5f1)](!0x0));}}}));}));}[_0x304ba4(0x3ca)](){const _0x113c06=_0x304ba4;this[_0x113c06(0x1e2)](this[_0x113c06(0x327)]['focus$']['subscribe'](_0x113604=>{const _0x5c6691=_0x113c06;if(_0x113604[_0x5c6691(0x1a1)]===0x1){let _0x5761cf=_0x113604[0x0];if(_0x5761cf[_0x5c6691(0x429)]===_0x2375be[_0x5c6691(0x351)]){let {unitId:_0x296896,subUnitId:_0xcf872e,drawingId:_0x18f0b3}=_0x5761cf,_0x474bf6=this['_getImagePrstGeom'](_0x296896,_0xcf872e,_0x18f0b3);if(_0x474bf6){var _0xbe6ae9,_0x2a7fa7;this['_activeImageId']=_0x18f0b3,this[_0x5c6691(0x2a1)]=_0x296896,this['_subUnitId']=_0xcf872e;let _0x3b9cb3=this['_getImageDrawingInfo'](_0x296896,_0xcf872e,_0x18f0b3),_0x367bbe=(_0x3b9cb3==null||(_0xbe6ae9=_0x3b9cb3[_0x5c6691(0x42c)])==null?void 0x0:_0xbe6ae9[_0x5c6691(0x34d)])||0x0,_0x19847a=(_0x3b9cb3==null||(_0x2a7fa7=_0x3b9cb3[_0x5c6691(0x42c)])==null?void 0x0:_0x2a7fa7['height'])||0x0,_0x2bad41=this[_0x5c6691(0x1ab)](_0x474bf6[_0x5c6691(0x538)],_0x367bbe,_0x19847a,_0x474bf6[_0x5c6691(0x592)]);_0x2bad41&&(this[_0x5c6691(0x470)]=_0x2bad41['getDrawingPoints']()),this[_0x5c6691(0x4e6)](),this[_0x5c6691(0x5f1)](!0x0);}else this[_0x5c6691(0x3c2)]();}else this[_0x5c6691(0x3c2)]();}else this[_0x5c6691(0x3c2)]();})),this[_0x113c06(0x1e2)](this[_0x113c06(0x327)][_0x113c06(0x441)][_0x113c06(0x464)](_0x675d2b=>{const _0x1f6f0e=_0x113c06;if(_0x675d2b[_0x1f6f0e(0x1a1)]===0x1){let _0x411382=_0x675d2b[0x0],_0x32d1e5=this[_0x1f6f0e(0x327)]['getDrawingByParam'](_0x411382);(_0x32d1e5==null?void 0x0:_0x32d1e5[_0x1f6f0e(0x429)])===_0x2375be[_0x1f6f0e(0x351)]&&this[_0x1f6f0e(0x315)]===_0x411382[_0x1f6f0e(0x447)]&&(this[_0x1f6f0e(0x4e6)](),this[_0x1f6f0e(0x5f1)](!0x0));}})),this[_0x113c06(0x1e2)](this[_0x113c06(0x327)][_0x113c06(0x5e1)][_0x113c06(0x464)](_0x417987=>{const _0x34e7bb=_0x113c06;for(let _0x128c63 of _0x417987)this[_0x34e7bb(0x315)]===_0x128c63[_0x34e7bb(0x447)]&&this[_0x34e7bb(0x3c2)]();}));}[_0x304ba4(0x3c2)](){const _0x5e6c3a=_0x304ba4;this['_activeImageId']=null,this[_0x5e6c3a(0x2a1)]=null,this[_0x5e6c3a(0x3c8)]=null,this[_0x5e6c3a(0x470)]=void 0x0,this[_0x5e6c3a(0x4e6)]();}};Io=$([Q(0x1,_0x5873e9),Q(0x2,_0x28dee4(_0x1dfd06)),Q(0x3,_0x10d47e),Q(0x4,_0x28dee4(_o))],Io);let Lo=class extends _0x1a987c{constructor(_0x2b268b,_0x397a21,_0x20f770,_0x3f2d8c){const _0x5305ca=_0x304ba4;super(),this[_0x5305ca(0x307)]=_0x2b268b,this[_0x5305ca(0x55e)]=_0x397a21,this['_sheetDrawingService']=_0x20f770,this['_sheetsShapeService']=_0x3f2d8c,this['_initSheetChange']();}[_0x304ba4(0x2e6)](){const _0xee82d=_0x304ba4;this['disposeWithMe'](this[_0xee82d(0x55e)][_0xee82d(0x1eb)]({'getMutations':_0xf92924=>{const _0x23a0a8=_0xee82d;if(_0xf92924['id']===_0x553f64['id']){let _0x4dc507=_0x533606(this[_0x23a0a8(0x307)],_0xf92924[_0x23a0a8(0x349)]);if(!_0x4dc507)return{'redos':[],'undos':[]};let {unitId:_0x16970b,subUnitId:_0x138f2e}=_0x4dc507,_0x50c8d0=this['_sheetDrawingService'][_0x23a0a8(0x59e)](_0x16970b,_0x138f2e),_0x377a3a=Object[_0x23a0a8(0x489)](_0x50c8d0)['filter'](_0x29a713=>_0x29a713[_0x23a0a8(0x429)]===_0x2375be[_0x23a0a8(0x217)]);if(_0x377a3a[_0x23a0a8(0x1a1)]===0x0)return{'redos':[],'undos':[]};let _0x4fef44=[],_0x587e62=[];for(let _0x5ee0cd=0x0;_0x5ee0cd<_0x377a3a[_0x23a0a8(0x1a1)];_0x5ee0cd++){let _0x286c61=_0x377a3a[_0x5ee0cd],_0x269a9a=this[_0x23a0a8(0x436)][_0x23a0a8(0x264)](_0x286c61['unitId'],_0x286c61[_0x23a0a8(0x5ca)],_0x286c61['drawingId']);if(!_0x269a9a)continue;let {redo:_0x52da16,undo:_0x4cf820,objects:_0x47b829}=this[_0x23a0a8(0x236)][_0x23a0a8(0x39c)]([_0x286c61]);_0x4fef44[_0x23a0a8(0x3d5)]({'id':_0x3e3b4e['id'],'params':{'unitId':_0x16970b,'subUnitId':_0x138f2e,'shapeId':_0x286c61[_0x23a0a8(0x447)]}}),_0x4fef44[_0x23a0a8(0x3d5)]({'id':_0x280ce4['id'],'params':{'unitId':_0x16970b,'subUnitId':_0x138f2e,'type':_0x3ab956['REMOVE'],'op':_0x52da16,'objects':_0x47b829}}),_0x587e62['push']({'id':_0x280ce4['id'],'params':{'unitId':_0x16970b,'subUnitId':_0x138f2e,'type':_0x3ab956[_0x23a0a8(0x4db)],'op':_0x4cf820,'objects':_0x47b829}}),_0x587e62['push']({'id':_0x63ebfb['id'],'params':{'unitId':_0x16970b,'subUnitId':_0x138f2e,'shapeId':_0x286c61[_0x23a0a8(0x447)],'shapeType':_0x269a9a[_0x23a0a8(0x383)](),'shapeData':JSON[_0x23a0a8(0x487)](JSON['stringify'](_0x269a9a[_0x23a0a8(0x18d)]()))}});}return{'redos':_0x4fef44,'undos':_0x587e62};}else{if(_0xf92924['id']===_0x18069b['id']){let {unitId:_0x2ce784,subUnitId:_0x547205,targetSubUnitId:_0x480ce0}=_0xf92924[_0x23a0a8(0x349)];if(!_0x2ce784||!_0x547205||!_0x480ce0)return{'redos':[],'undos':[]};let _0x1888ea=this[_0x23a0a8(0x236)][_0x23a0a8(0x59e)](_0x2ce784,_0x547205),_0x54bfac=Object[_0x23a0a8(0x489)](_0x1888ea)[_0x23a0a8(0x159)](_0x4f392d=>_0x4f392d['drawingType']===_0x2375be[_0x23a0a8(0x217)]);if(_0x54bfac[_0x23a0a8(0x1a1)]===0x0)return{'redos':[],'undos':[]};let _0x1bc392=[],_0x14fd23=[];for(let _0x3485c9=0x0;_0x3485c9<_0x54bfac[_0x23a0a8(0x1a1)];_0x3485c9++){let _0x471f7c=_0x54bfac[_0x3485c9],_0x430754=this[_0x23a0a8(0x436)][_0x23a0a8(0x264)](_0x471f7c[_0x23a0a8(0x4a7)],_0x471f7c[_0x23a0a8(0x5ca)],_0x471f7c[_0x23a0a8(0x447)]);if(!_0x430754)continue;let _0x5d5f7f=_0x3617ae(),_0x2cecfc={..._0x471f7c,'unitId':_0x2ce784,'subUnitId':_0x480ce0,'drawingId':_0x5d5f7f},{redo:_0x53ebf1,undo:_0x5a35f7,objects:_0x3a4741}=this['_sheetDrawingService'][_0x23a0a8(0x53f)]([_0x2cecfc]);_0x1bc392[_0x23a0a8(0x3d5)]({'id':_0x280ce4['id'],'params':{'unitId':_0x2ce784,'subUnitId':_0x480ce0,'type':_0x3ab956[_0x23a0a8(0x4db)],'op':_0x53ebf1,'objects':_0x3a4741}}),_0x1bc392['push']({'id':_0x63ebfb['id'],'params':{'unitId':_0x2ce784,'subUnitId':_0x480ce0,'shapeId':_0x5d5f7f,'shapeType':_0x430754[_0x23a0a8(0x383)](),'shapeData':JSON[_0x23a0a8(0x487)](JSON['stringify'](_0x430754[_0x23a0a8(0x18d)]()))}}),_0x14fd23[_0x23a0a8(0x3d5)]({'id':_0x3e3b4e['id'],'params':{'unitId':_0x2ce784,'subUnitId':_0x480ce0,'shapeId':_0x5d5f7f}}),_0x14fd23[_0x23a0a8(0x3d5)]({'id':_0x280ce4['id'],'params':{'unitId':_0x2ce784,'subUnitId':_0x480ce0,'type':_0x3ab956[_0x23a0a8(0x18a)],'op':_0x5a35f7,'objects':_0x3a4741}});}return{'redos':_0x1bc392,'undos':_0x14fd23};}}return{'redos':[],'undos':[]};}}));}};Lo=$([Q(0x0,_0x28dee4(_0x10d47e)),Q(0x1,_0x28dee4(_0x90a7c8)),Q(0x2,_0x28dee4(_0x486e0c)),Q(0x3,_0x28dee4(_0x3538a1))],Lo);let Ro=class extends _0x1a987c{constructor(_0x30f2ec,_0x2a0235,_0x56d381,_0x30af07,_0x33bee8){const _0x3ff0af=_0x304ba4;super(),this['_context']=_0x30f2ec,this['_shapeTextEditingService']=_0x2a0235,this[_0x3ff0af(0x327)]=_0x56d381,this['_contextService']=_0x30af07,this[_0x3ff0af(0x436)]=_0x33bee8,Y(this,_0x3ff0af(0x5ae),null),this['_initEvents'](),this[_0x3ff0af(0x52a)](),this[_0x3ff0af(0x166)]();}[_0x304ba4(0x164)](){const _0x491907=_0x304ba4;let {scene:_0x42429c}=this[_0x491907(0x411)];this['disposeWithMe'](_0x42429c['onDblclick$'][_0x491907(0x400)](_0x2128ab=>{const _0x4116b8=_0x491907;let {offsetX:_0x35e4e0,offsetY:_0x15f169}=_0x2128ab,_0x22d4ba=_0x42429c[_0x4116b8(0x19a)](_0x1e0d95[_0x4116b8(0x371)]([_0x35e4e0,_0x15f169]));if(_0x22d4ba instanceof to){if(_0x1326e8(this[_0x4116b8(0x436)][_0x4116b8(0x383)](_0x22d4ba[_0x4116b8(0x4a7)],_0x22d4ba['subUnitId'],_0x22d4ba['shapeId'])))return;this[_0x4116b8(0x1de)][_0x4116b8(0x453)]({'visible':!0x0,'unitId':_0x22d4ba[_0x4116b8(0x4a7)],'subUnitId':_0x22d4ba[_0x4116b8(0x5ca)],'shapeId':_0x22d4ba['shapeId'],'shapeKey':_0x22d4ba['oKey']});}}));}[_0x304ba4(0x52a)](){const _0x1d8031=_0x304ba4;this[_0x1d8031(0x1e2)](this[_0x1d8031(0x327)][_0x1d8031(0x483)][_0x1d8031(0x464)](_0x2f8660=>{const _0x50a62e=_0x1d8031;if(_0x2f8660['length']===0x1){let _0xfd1614=_0x2f8660[0x0],_0x4b81d7=this[_0x50a62e(0x327)][_0x50a62e(0x237)](_0xfd1614);if((_0x4b81d7==null?void 0x0:_0x4b81d7[_0x50a62e(0x429)])===_0x2375be['DRAWING_SHAPE']){let _0x471eed=this['_shapeTextEditingService'][_0x50a62e(0x1d8)]();if((_0x471eed==null?void 0x0:_0x471eed[_0x50a62e(0x27b)])===_0xfd1614['drawingId']&&_0x471eed[_0x50a62e(0x23f)])return;_0x1326e8(this[_0x50a62e(0x436)]['getShapeType'](_0xfd1614[_0x50a62e(0x4a7)],_0xfd1614['subUnitId'],_0xfd1614['drawingId']))&&this[_0x50a62e(0x1de)]['setEditing'](null);}else this[_0x50a62e(0x1de)]['getEditing']()&&(this[_0x50a62e(0x1de)][_0x50a62e(0x5de)](!0x0),requestAnimationFrame(()=>{const _0x3a3fc3=_0x50a62e;this['_shapeTextEditingService'][_0x3a3fc3(0x453)](null);}));}else this[_0x50a62e(0x1de)][_0x50a62e(0x1d8)]()&&(this[_0x50a62e(0x1de)][_0x50a62e(0x5de)](!0x0),requestAnimationFrame(()=>{const _0x598bb2=_0x50a62e;this[_0x598bb2(0x1de)][_0x598bb2(0x453)](null);}));})),this['disposeWithMe'](this[_0x1d8031(0x327)]['remove$'][_0x1d8031(0x464)](_0x557027=>{const _0x2e4d68=_0x1d8031;let _0x1ecfb5=this[_0x2e4d68(0x1de)]['getEditing']();_0x1ecfb5&&_0x557027[_0x2e4d68(0x25d)](_0x11f551=>_0x11f551[_0x2e4d68(0x447)]===_0x1ecfb5[_0x2e4d68(0x27b)])&&this[_0x2e4d68(0x1de)]['setEditing'](null);}));}['_initEditingParams'](){const _0x5e60ed=_0x304ba4;this[_0x5e60ed(0x1e2)](this['_shapeTextEditingService'][_0x5e60ed(0x407)][_0x5e60ed(0x464)](_0x1d2148=>{const _0x5bb1ad=_0x5e60ed;let {scene:_0x32aaee}=this['_context'];if(this[_0x5bb1ad(0x5ae)]){let _0x2a83b2=_0x32aaee[_0x5bb1ad(0x4cd)](this[_0x5bb1ad(0x5ae)]);_0x2a83b2&&_0x2a83b2[_0x5bb1ad(0x453)](!0x1);}if(_0x1d2148){let _0x1097eb=!!_0x1d2148[_0x5bb1ad(0x23f)],_0x5ac91e=_0x32aaee[_0x5bb1ad(0x4cd)](_0x1d2148['shapeKey']);_0x5ac91e&&(_0x5ac91e[_0x5bb1ad(0x453)](_0x1097eb),this['_lastEditingShapeKey']=_0x1d2148[_0x5bb1ad(0x1e3)]),this[_0x5bb1ad(0x215)][_0x5bb1ad(0x3a6)](_0x1f1e07,_0x1097eb);}else this[_0x5bb1ad(0x5ae)]=null,this[_0x5bb1ad(0x215)]['setContextValue'](_0x1f1e07,!0x1);}));}};Ro=$([Q(0x1,_0x28dee4(X)),Q(0x2,_0x5873e9),Q(0x3,_0x3c1d80),Q(0x4,_0x28dee4(_0x3538a1))],Ro);const zo={'normal':{'fill':_0x9cc8fa[_0x304ba4(0x4ca)],'stroke':_0x9cc8fa[_0x304ba4(0x456)],'strokeWidth':_0x9cc8fa[_0x304ba4(0x17d)]},'highlighted':{'fill':_0x304ba4(0x43a),'stroke':_0x304ba4(0x1cc),'strokeWidth':0x2}};var Bo=class extends _0x12f371{constructor(_0x1bdd56,_0x2d61e8){const _0x39f04f=_0x304ba4;super(_0x1bdd56,_0x2d61e8),Y(this,_0x39f04f(0x3fd),''),Y(this,_0x39f04f(0x52f),-0x1),Y(this,'_unitId',''),Y(this,_0x39f04f(0x3c8),''),Y(this,'_isHighlighted',!0x1),_0x2d61e8&&this['setShapeProps'](_0x2d61e8);}[_0x304ba4(0x3f2)](){const _0x4c174f=_0x304ba4;return{'unitId':this[_0x4c174f(0x2a1)],'subUnitId':this[_0x4c174f(0x3c8)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x4c174f(0x52f)]};}[_0x304ba4(0x4a6)](_0x3d5821){const _0x43f539=_0x304ba4;this[_0x43f539(0x30a)]!==_0x3d5821&&(this[_0x43f539(0x30a)]=_0x3d5821,this[_0x43f539(0x26b)](!0x0));}[_0x304ba4(0x5d6)](){const _0x206aad=_0x304ba4;return this[_0x206aad(0x30a)];}['setShapeProps'](_0x4c2f18){const _0x13408c=_0x304ba4;var _0x311ad8,_0x1750e2;_0x4c2f18[_0x13408c(0x292)]!==void 0x0&&(this[_0x13408c(0x3fd)]=_0x4c2f18[_0x13408c(0x292)]),_0x4c2f18[_0x13408c(0x401)]!==void 0x0&&(this[_0x13408c(0x52f)]=_0x4c2f18[_0x13408c(0x401)]),_0x4c2f18['unitId']!==void 0x0&&(this['_unitId']=_0x4c2f18[_0x13408c(0x4a7)]),_0x4c2f18['subUnitId']!==void 0x0&&(this[_0x13408c(0x3c8)]=_0x4c2f18[_0x13408c(0x5ca)]),_0x4c2f18[_0x13408c(0x5d6)]!==void 0x0&&(this[_0x13408c(0x30a)]=_0x4c2f18[_0x13408c(0x5d6)]),this[_0x13408c(0x277)]({'width':(_0x311ad8=_0x4c2f18[_0x13408c(0x34d)])==null?_0x9cc8fa[_0x13408c(0x54e)]*0x2:_0x311ad8,'height':(_0x1750e2=_0x4c2f18[_0x13408c(0x595)])==null?_0x9cc8fa[_0x13408c(0x54e)]*0x2:_0x1750e2});}[_0x304ba4(0x24a)](_0x69a534){const _0x3ff4ad=_0x304ba4;let _0xacd12f=this['_isHighlighted']?zo['highlighted']:zo[_0x3ff4ad(0x223)];_0x2542c4['drawWith'](_0x69a534,{'radius':_0x9cc8fa[_0x3ff4ad(0x54e)],'fill':_0xacd12f[_0x3ff4ad(0x284)],'stroke':_0xacd12f[_0x3ff4ad(0x5ad)],'strokeWidth':_0xacd12f[_0x3ff4ad(0x505)],'evented':!0x0});}};let Vo=class extends _0x1a987c{constructor(_0x3e87a8,_0xafb193,_0x3cc7f2,_0x270f02){const _0x1a27b1=_0x304ba4;super(),this['_context']=_0x3e87a8,this['_renderManagerService']=_0xafb193,this[_0x1a27b1(0x327)]=_0x3cc7f2,this[_0x1a27b1(0x436)]=_0x270f02,Y(this,_0x1a27b1(0x219),[]),Y(this,_0x1a27b1(0x5e2),null),Y(this,'_highlightedSiteIndex',-0x1),Y(this,'_currentScene',null),Y(this,'_unitId',''),Y(this,'_subUnitId',''),Y(this,'_draggingConnectorId',null);}[_0x304ba4(0x3c0)](_0x4f4566,_0x299592,_0xa1d82a,_0x3acd80){const _0x1bfa3b=_0x304ba4;this[_0x1bfa3b(0x5e0)]=_0x4f4566,this['_unitId']=_0x299592,this[_0x1bfa3b(0x3c8)]=_0xa1d82a,this[_0x1bfa3b(0x5b9)]=_0x3acd80;}[_0x304ba4(0x2db)](_0x4324d8){const _0x9dd2de=_0x304ba4;if(!this[_0x9dd2de(0x5e0)])return null;let _0x3a28ac=this[_0x9dd2de(0x2b8)](_0x4324d8);return _0x3a28ac?(this['_activeTargetShapeId']!==_0x3a28ac['shapeId']&&(this[_0x9dd2de(0x253)](),this['_showConnectionSites'](_0x3a28ac[_0x9dd2de(0x27b)],_0x3a28ac['shapeModel']),this[_0x9dd2de(0x5e2)]=_0x3a28ac['shapeId']),this[_0x9dd2de(0x185)](_0x4324d8)):(this['_activeTargetShapeId']!==null&&(this[_0x9dd2de(0x253)](),this['_activeTargetShapeId']=null),null);}[_0x304ba4(0x433)](){const _0x430252=_0x304ba4;this[_0x430252(0x253)](),this[_0x430252(0x5e0)]=null,this[_0x430252(0x5e2)]=null,this[_0x430252(0x34b)]=-0x1,this[_0x430252(0x5b9)]=null;}[_0x304ba4(0x5a6)](){const _0x4bee4b=_0x304ba4;return this[_0x4bee4b(0x5e2)]===null||this[_0x4bee4b(0x34b)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x4bee4b(0x34b)]};}[_0x304ba4(0x2b8)](_0x199efd){const _0x5dbdcb=_0x304ba4;let _0x164525=this[_0x5dbdcb(0x327)]['getDrawingData'](this[_0x5dbdcb(0x2a1)],this['_subUnitId']);for(let _0x2c2b28 of Object[_0x5dbdcb(0x582)](_0x164525)){if(_0x2c2b28===this['_draggingConnectorId']||_0x164525[_0x2c2b28][_0x5dbdcb(0x429)]!==_0x2375be[_0x5dbdcb(0x217)])continue;let _0x384fea=this[_0x5dbdcb(0x436)][_0x5dbdcb(0x264)](this['_unitId'],this[_0x5dbdcb(0x3c8)],_0x2c2b28);if(!_0x384fea||_0x1326e8(_0x384fea[_0x5dbdcb(0x383)]())||_0x384fea['getConnectionSiteList']()[_0x5dbdcb(0x1a1)]===0x0||!this['_currentScene'])continue;let _0x33dafa=_0x4ac3ac({'unitId':this[_0x5dbdcb(0x2a1)],'subUnitId':this[_0x5dbdcb(0x3c8)],'drawingId':_0x2c2b28}),_0xc57e75=this[_0x5dbdcb(0x5e0)]['getObjectIncludeInGroup'](_0x33dafa);if(!_0xc57e75)continue;let {left:_0xe02a77,top:_0x2b8928,width:_0x47cc00,height:_0x2168ae}=_0xc57e75[_0x5dbdcb(0x140)](),_0x158bf9=_0xe02a77+_0x47cc00/0x2,_0x3b711b=_0x2b8928+_0x2168ae/0x2,_0x31bfe6=_0xc57e75['transform'][_0x5dbdcb(0x2dc)](),_0x5be351=new _0x59cf9b([_0x31bfe6[0x0],_0x31bfe6[0x1],_0x31bfe6[0x2],_0x31bfe6[0x3],_0x158bf9,_0x3b711b]),_0x5d8caf=_0xc57e75[_0x5dbdcb(0x35a)](),_0x40034c=(_0xc57e75[_0x5dbdcb(0x227)]&&(_0x5d8caf==null?void 0x0:_0x5d8caf[_0x5dbdcb(0x1a2)])===_0x47e743['GROUP']?_0x5d8caf[_0x5dbdcb(0x22b)][_0x5dbdcb(0x5f6)](_0x5be351):_0x5be351)[_0x5dbdcb(0x571)]()[_0x5dbdcb(0x1d1)](_0x199efd),_0xd06290=_0x47cc00/0x2,_0x502c67=_0x2168ae/0x2;if(_0x40034c['x']>=-_0xd06290-0x5&&_0x40034c['x']<=_0xd06290+0x5&&_0x40034c['y']>=-_0x502c67-0x5&&_0x40034c['y']<=_0x502c67+0x5)return{'shapeId':_0x2c2b28,'shapeModel':_0x384fea};}return null;}[_0x304ba4(0x200)](_0x3f1432,_0x73323e){const _0x5b141e=_0x304ba4;if(!this[_0x5b141e(0x5e0)])return;let _0x5df834=_0x4ac3ac({'unitId':this[_0x5b141e(0x2a1)],'subUnitId':this['_subUnitId'],'drawingId':_0x3f1432}),_0x4694ab=this[_0x5b141e(0x5e0)][_0x5b141e(0x4cd)](_0x5df834);if(!_0x4694ab)return;let {left:_0x14baf6,top:_0x4d677a,width:_0x48a2f3,height:_0x23b737}=_0x4694ab[_0x5b141e(0x140)](),_0x4ebe43=_0x14baf6+_0x48a2f3/0x2,_0xa3f0c6=_0x4d677a+_0x23b737/0x2,_0x25eda9=_0x4694ab['transform'][_0x5b141e(0x2dc)](),_0x140235=new _0x59cf9b([_0x25eda9[0x0],_0x25eda9[0x1],_0x25eda9[0x2],_0x25eda9[0x3],_0x4ebe43,_0xa3f0c6]),_0x5db65f=_0x4694ab[_0x5b141e(0x35a)](),_0x59bda5=_0x4694ab['isInGroup']&&(_0x5db65f==null?void 0x0:_0x5db65f[_0x5b141e(0x1a2)])===_0x47e743[_0x5b141e(0x4df)]?_0x5db65f[_0x5b141e(0x22b)]['multiply'](_0x140235):_0x140235;_0x73323e[_0x5b141e(0x5d1)]({'width':_0x48a2f3,'height':_0x23b737});let _0x372395=_0x73323e[_0x5b141e(0x557)]();for(let _0x1c136b of _0x372395){let _0x2532e4=_0x1c136b['x']-_0x48a2f3/0x2,_0x2acee8=_0x1c136b['y']-_0x23b737/0x2,_0x3db719=_0x59bda5[_0x5b141e(0x1d1)]({'x':_0x2532e4,'y':_0x2acee8}),_0x11e68e=_0x3db719['x'],_0x36582a=_0x3db719['y'],_0x5a9c3b=new Bo(_0x5b141e(0x4e8)+_0x3f1432+'-'+_0x1c136b['index'],{'left':_0x11e68e-_0x9cc8fa['cxnPointRadius'],'top':_0x36582a-_0x9cc8fa[_0x5b141e(0x54e)],'targetShapeId':_0x3f1432,'cxnIndex':_0x1c136b[_0x5b141e(0x312)],'unitId':this[_0x5b141e(0x2a1)],'subUnitId':this[_0x5b141e(0x3c8)],'width':_0x9cc8fa[_0x5b141e(0x54e)]*0x2,'height':_0x9cc8fa[_0x5b141e(0x54e)]*0x2,'zIndex':_0x395f9d+0x2,'evented':!0x1});this[_0x5b141e(0x219)][_0x5b141e(0x3d5)](_0x5a9c3b),this[_0x5b141e(0x5e0)]['addObject'](_0x5a9c3b,_0x395f9d+0x2);}}[_0x304ba4(0x185)](_0x3dbb28){const _0x1024bf=_0x304ba4;let _0x50e1b2=null,_0x585af0=0x1/0x0,_0xcc8a99=null;for(let _0x2c8861 of this[_0x1024bf(0x219)]){let _0x5e0fdc=_0x2c8861['left']+_0x9cc8fa[_0x1024bf(0x54e)],_0x460a06=_0x2c8861[_0x1024bf(0x32e)]+_0x9cc8fa[_0x1024bf(0x54e)],_0x11d0f6=_0x3dbb28['x']-_0x5e0fdc,_0x2e3149=_0x3dbb28['y']-_0x460a06,_0x32c31a=Math[_0x1024bf(0x378)](_0x11d0f6*_0x11d0f6+_0x2e3149*_0x2e3149);_0x32c31a<_0x585af0&&(_0x585af0=_0x32c31a,_0x50e1b2=_0x2c8861,_0xcc8a99={'x':_0x5e0fdc,'y':_0x460a06});}let _0x49ee77=_0x585af0<=0xa&&_0x50e1b2?_0x50e1b2['getConnectionInfo']()[_0x1024bf(0x401)]:-0x1;if(_0x49ee77!==this[_0x1024bf(0x34b)]){for(let _0x577dcf of this[_0x1024bf(0x219)]){let _0x14784a=_0x577dcf[_0x1024bf(0x3f2)]();_0x577dcf['setHighlighted'](_0x14784a[_0x1024bf(0x401)]===_0x49ee77);}this['_highlightedSiteIndex']=_0x49ee77;}if(_0x585af0<=0xa&&_0x50e1b2&&_0xcc8a99){let _0x317ebb=_0x50e1b2[_0x1024bf(0x3f2)](),_0x39b0ea=this[_0x1024bf(0x5e4)](_0x317ebb[_0x1024bf(0x27b)],_0x317ebb[_0x1024bf(0x401)]);return{'shapeId':_0x317ebb[_0x1024bf(0x27b)],'cxnIndex':_0x317ebb[_0x1024bf(0x401)],'unitId':_0x317ebb[_0x1024bf(0x4a7)],'subUnitId':_0x317ebb[_0x1024bf(0x5ca)],'worldPoint':_0xcc8a99,'angle':_0x39b0ea};}return null;}[_0x304ba4(0x5e4)](_0x2e0fc7,_0x1a8f8c){const _0x33827=_0x304ba4;let _0x31641d=this[_0x33827(0x436)][_0x33827(0x264)](this[_0x33827(0x2a1)],this[_0x33827(0x3c8)],_0x2e0fc7);if(!_0x31641d)return 0x0;let _0x13268f=this['_drawingManagerService'][_0x33827(0x237)]({'unitId':this[_0x33827(0x2a1)],'subUnitId':this['_subUnitId'],'drawingId':_0x2e0fc7});if(!(_0x13268f!=null&&_0x13268f[_0x33827(0x42c)]))return 0x0;let {width:_0x41a0b1=0x0,height:_0x1ef252=0x0,flipX:_0x1c8ae0=!0x1,flipY:_0x39a656=!0x1}=_0x13268f[_0x33827(0x42c)];_0x31641d['updateContext']({'width':_0x41a0b1,'height':_0x1ef252});let _0x568e23=_0x31641d['getConnectionSiteList']()[_0x33827(0x191)](_0x338bc5=>_0x338bc5[_0x33827(0x312)]===_0x1a8f8c);if(!_0x568e23)return 0x0;let _0x3e627d=_0x568e23['ang']/0xea60;return _0x1c8ae0&&(_0x3e627d=0xb4-_0x3e627d),_0x39a656&&(_0x3e627d=-_0x3e627d),_0x3e627d=(_0x3e627d%0x168+0x168)%0x168,_0x3e627d;}[_0x304ba4(0x253)](){const _0xfc2e8b=_0x304ba4;for(let _0x18a6fd of this[_0xfc2e8b(0x219)])_0x18a6fd[_0xfc2e8b(0x374)]();this[_0xfc2e8b(0x219)]=[],this[_0xfc2e8b(0x34b)]=-0x1;}['dispose'](){const _0x33eaf5=_0x304ba4;this[_0x33eaf5(0x253)](),super[_0x33eaf5(0x374)]();}};Vo=$([Q(0x1,_0x28dee4(_0x1dfd06)),Q(0x2,_0x28dee4(_0x5873e9)),Q(0x3,_0x28dee4(_0x3538a1))],Vo);let Ho=class extends _0x1a987c{constructor(_0x42f0ec,_0x588da0,_0x57d2ed,_0x78db43,_0x51a972){const _0x5bfa5e=_0x304ba4;super(),this['_sheetSkeletonService']=_0x42f0ec,this[_0x5bfa5e(0x45d)]=_0x588da0,this[_0x5bfa5e(0x236)]=_0x57d2ed,this[_0x5bfa5e(0x4e5)]=_0x78db43,this['_groupCopyPasteController']=_0x51a972,Y(this,_0x5bfa5e(0x174),void 0x0),this[_0x5bfa5e(0x46b)](),this[_0x5bfa5e(0x54f)]();}get[_0x304ba4(0x604)](){const _0x2c0df2=_0x304ba4;return this['_sheetDrawingService'][_0x2c0df2(0x316)]();}['_registerGroupFeaturePasteHook'](){const _0x5541a7=_0x304ba4;this[_0x5541a7(0x19d)]['registerFeaturePasteHook'](({fromUnitId:_0x3c54dd,fromSubUnitId:_0xd177ba,toUnitId:_0x22fce0,toSubUnitId:_0x3c584b,idMap:_0xb21f65})=>{const _0x27e602=_0x5541a7;let _0x5b7b18=[],_0x1acb12=[];for(let [_0x4685f8,_0x2f8655]of _0xb21f65['entries']()){let _0x3a851d=this[_0x27e602(0x4e5)]['getShapeModel'](_0x3c54dd,_0xd177ba,_0x4685f8);if(!_0x3a851d)continue;let _0xff3991=_0x3a851d[_0x27e602(0x383)](),_0x12f57b=JSON[_0x27e602(0x487)](JSON[_0x27e602(0x42d)](_0x3a851d['getShapeData']()));if(_0x12f57b[_0x27e602(0x2f2)]){var _0x186337,_0x509cd0;let _0x128d6c=(_0x186337=_0x12f57b[_0x27e602(0x2f2)]['from'])==null?void 0x0:_0x186337[_0x27e602(0x27b)],_0x124b8b=(_0x509cd0=_0x12f57b[_0x27e602(0x2f2)]['to'])==null?void 0x0:_0x509cd0[_0x27e602(0x27b)],_0x22574e=_0x128d6c?_0xb21f65[_0x27e602(0x19c)](_0x128d6c):!0x0,_0x55ff51=_0x124b8b?_0xb21f65['has'](_0x124b8b):!0x0;_0x22574e&&_0x128d6c&&_0x12f57b[_0x27e602(0x2f2)][_0x27e602(0x15e)]?_0x12f57b[_0x27e602(0x2f2)]['from']={..._0x12f57b[_0x27e602(0x2f2)][_0x27e602(0x15e)],'shapeId':_0xb21f65[_0x27e602(0x172)](_0x128d6c)}:_0x12f57b[_0x27e602(0x2f2)][_0x27e602(0x15e)]=void 0x0,_0x55ff51&&_0x124b8b&&_0x12f57b[_0x27e602(0x2f2)]['to']?_0x12f57b[_0x27e602(0x2f2)]['to']={..._0x12f57b[_0x27e602(0x2f2)]['to'],'shapeId':_0xb21f65[_0x27e602(0x172)](_0x124b8b)}:_0x12f57b[_0x27e602(0x2f2)]['to']=void 0x0;}_0x5b7b18['push']({'id':_0x63ebfb['id'],'params':{'unitId':_0x22fce0,'subUnitId':_0x3c584b,'shapeId':_0x2f8655,'shapeType':_0xff3991,'shapeData':_0x12f57b}}),_0x1acb12[_0x27e602(0x3d5)]({'id':_0x3e3b4e['id'],'params':{'unitId':_0x22fce0,'subUnitId':_0x3c584b,'shapeId':_0x2f8655}});}return{'redos':_0x5b7b18,'undos':_0x1acb12};});}[_0x304ba4(0x46b)](){const _0x5cce94=_0x304ba4;this[_0x5cce94(0x1e2)](this[_0x5cce94(0x45d)][_0x5cce94(0x1e8)]({'id':_0x5cce94(0x3ac),'onBeforeCopy':(_0x146523,_0x2eeb46,_0x5e6b4d,_0x3a46e7)=>{const _0x22f6f3=_0x5cce94;this[_0x22f6f3(0x174)]=null;let _0x1c5749=this[_0x22f6f3(0x604)];if(_0x1c5749[_0x22f6f3(0x1a1)]){let _0x95a099=_0x1c5749['filter'](_0x1cd15e=>_0x1cd15e[_0x22f6f3(0x429)]===_0x2375be[_0x22f6f3(0x217)]);if(_0x95a099['length']===0x0)return;this[_0x22f6f3(0x174)]={'unitId':_0x146523,'subUnitId':_0x2eeb46,'copyType':_0x3a46e7,'drawings':_0x95a099};}else this[_0x22f6f3(0x270)](_0x146523,_0x2eeb46,_0x5e6b4d,_0x3a46e7);},'onPasteCells':(_0x4ee0c6,_0xf3517a,_0x5503fb,_0x38dda8)=>{const _0x55aa70=_0x5cce94;if(!this[_0x55aa70(0x174)])return{'redos':[],'undos':[]};let {pasteType:_0x332381}=_0x38dda8;return _0x332381===_0x18e015[_0x55aa70(0x491)]?this['_generatePasteMutations'](_0xf3517a,this[_0x55aa70(0x174)][_0x55aa70(0x37a)]===_0x633af2[_0x55aa70(0x503)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x3e4331=>this['_copyInfo']?this[_0x5cce94(0x368)](_0x3e4331,this[_0x5cce94(0x174)]['copyType']===_0x633af2[_0x5cce94(0x503)]):{'redos':[],'undos':[]}}));}[_0x304ba4(0x270)](_0x1b1712,_0x58c1a3,_0x336c90,_0x2ca8d9){const _0x33895a=_0x304ba4;let _0x9f814f=this['_sheetSkeletonService'][_0x33895a(0x3c5)](_0x1b1712,_0x58c1a3);if(!_0x9f814f)return;let _0xfce34a=_0x231233(_0x9f814f,_0x336c90);if(!_0xfce34a)return;let {startX:_0x179433,endX:_0x17cf87,startY:_0xb137bb,endY:_0x45a6c6}=_0xfce34a,_0xfc246b=this[_0x33895a(0x236)][_0x33895a(0x59e)](_0x1b1712,_0x58c1a3),_0x26cdcd=this[_0x33895a(0x604)][_0x33895a(0x549)]();for(let [_0x16ae31,_0x323a3e]of Object[_0x33895a(0x1ca)](_0xfc246b)){if(_0x323a3e['drawingType']!==_0x2375be[_0x33895a(0x217)])continue;let {transform:_0x3548ee}=_0x323a3e;if(!_0x3548ee)continue;let {left:_0x2e00bd=0x0,top:_0x48aa75=0x0,width:_0x5941a3=0x0,height:_0x1297ee=0x0}=_0x3548ee;_0x179433<=_0x2e00bd&&_0x17cf87>=_0x2e00bd+_0x5941a3&&_0xb137bb<=_0x48aa75&&_0x45a6c6>=_0x48aa75+_0x1297ee&&_0x26cdcd[_0x33895a(0x3d5)](_0x323a3e);}_0x26cdcd[_0x33895a(0x1a1)]>0x0&&(this[_0x33895a(0x174)]={'unitId':_0x1b1712,'subUnitId':_0x58c1a3,'copyType':_0x2ca8d9,'copyRange':_0x336c90,'drawings':_0x26cdcd});}[_0x304ba4(0x368)](_0x11c0d9,_0x7f9d2e){const _0x464674=_0x304ba4;let {unitId:_0x426025,subUnitId:_0x3635fd,range:_0x6eeb95}=_0x11c0d9,_0x206d05=this[_0x464674(0x196)][_0x464674(0x3c5)](_0x426025,_0x3635fd);if(!_0x206d05)return{'redos':[],'undos':[]};let _0x37f01b=_0x465804(_0x6eeb95),{unitId:_0x5909af,subUnitId:_0x4226fc,copyRange:_0x113000,drawings:_0xf4c51a}=this['_copyInfo'],_0x1b864d=this['_sheetSkeletonService'][_0x464674(0x3c5)](_0x5909af,_0x4226fc);if(!_0x1b864d)return{'redos':[],'undos':[]};let _0x627aa0;if(!_0x113000){let _0x43d637=0x1/0x0,_0x4f723d=0x1/0x0;for(let _0x25b93d of _0xf4c51a){var _0xeff104;let {left:_0x6a0286=0x0,top:_0x54733a=0x0}=(_0xeff104=_0x25b93d[_0x464674(0x42c)])==null?{}:_0xeff104;_0x6a0286<_0x43d637&&(_0x43d637=_0x6a0286),_0x54733a<_0x4f723d&&(_0x4f723d=_0x54733a);}_0x43d637!==0x1/0x0&&_0x4f723d!==0x1/0x0&&(_0x627aa0={'left':_0x43d637,'top':_0x4f723d});}let _0x301ea2=new Map();if(!_0x7f9d2e){for(let _0x5eb54b of _0xf4c51a)_0x301ea2[_0x464674(0x309)](_0x5eb54b[_0x464674(0x447)],_0x3617ae());}let _0x2230ff=[],_0xef7ad3=[];for(let _0x35960b of _0xf4c51a){let {drawingId:_0x23b8d4,transform:_0x2c4daf,sheetTransform:_0x12a737}=_0x35960b;if(!_0x2c4daf||!_0x12a737)continue;let _0x288236=this[_0x464674(0x21b)]({'transform':_0x2c4daf,'sheetTransform':_0x12a737},{'skeleton':_0x1b864d,'range':_0x113000},{'skeleton':_0x206d05,'range':_0x37f01b},_0x627aa0);if(_0x7f9d2e){let {redos:_0x4c8116,undos:_0x196e33}=this['_generateCutPasteMutations']({'fromUnitId':_0x5909af,'fromSubUnitId':_0x4226fc,'toUnitId':_0x426025,'toSubUnitId':_0x3635fd,'drawing':_0x35960b,'newTransforms':_0x288236});_0x2230ff[_0x464674(0x3d5)](..._0x4c8116),_0xef7ad3[_0x464674(0x3d5)](..._0x196e33);continue;}let {redos:_0x570dde,undos:_0x22153f}=this[_0x464674(0x513)]({'toUnitId':_0x426025,'toSubUnitId':_0x3635fd,'drawing':_0x35960b,'newTransforms':_0x288236,'newDrawingId':_0x301ea2[_0x464674(0x172)](_0x23b8d4),'idMap':_0x301ea2});_0x2230ff[_0x464674(0x3d5)](..._0x570dde),_0xef7ad3['push'](..._0x22153f);}return{'redos':_0x2230ff,'undos':_0xef7ad3};}[_0x304ba4(0x423)](_0x52f526){const _0x3d4df1=_0x304ba4;let {fromUnitId:_0x3d9287,fromSubUnitId:_0x4ed5ba,toUnitId:_0x384316,toSubUnitId:_0x3707a2,drawing:_0x50f066,newTransforms:_0x291178}=_0x52f526,_0xe2b0d5={..._0x50f066,'unitId':_0x384316,'subUnitId':_0x3707a2,'transform':_0x291178['transform'],'sheetTransform':_0x291178[_0x3d4df1(0x239)]};if(_0x384316===_0x3d9287&&_0x3707a2===_0x4ed5ba){let {redo:_0x3d32e9,undo:_0x5a228f,objects:_0x3d2159}=this[_0x3d4df1(0x236)]['getBatchUpdateOp']([_0xe2b0d5]);return{'redos':[{'id':_0x280ce4['id'],'params':{'unitId':_0x384316,'subUnitId':_0x3707a2,'type':_0x3ab956[_0x3d4df1(0x17c)],'op':_0x3d32e9,'objects':_0x3d2159}}],'undos':[{'id':_0x280ce4['id'],'params':{'unitId':_0x384316,'subUnitId':_0x3707a2,'type':_0x3ab956[_0x3d4df1(0x17c)],'op':_0x5a228f,'objects':_0x3d2159}}]};}else{let _0x1c23a3=this[_0x3d4df1(0x236)][_0x3d4df1(0x39c)]([_0x50f066]),_0x4b3899=this[_0x3d4df1(0x236)][_0x3d4df1(0x53f)]([_0xe2b0d5]),_0xaa18fc=this[_0x3d4df1(0x4e5)][_0x3d4df1(0x264)](_0x50f066[_0x3d4df1(0x4a7)],_0x50f066[_0x3d4df1(0x5ca)],_0x50f066[_0x3d4df1(0x447)]);if(!_0xaa18fc)return{'redos':[],'undos':[]};let _0x1ff648=_0xaa18fc[_0x3d4df1(0x383)](),_0xa02205=JSON[_0x3d4df1(0x487)](JSON[_0x3d4df1(0x42d)](_0xaa18fc[_0x3d4df1(0x18d)]()));return{'redos':[{'id':_0x280ce4['id'],'params':{'unitId':_0x3d9287,'subUnitId':_0x4ed5ba,'type':_0x3ab956[_0x3d4df1(0x18a)],'op':_0x1c23a3[_0x3d4df1(0x54a)],'objects':_0x1c23a3[_0x3d4df1(0x47d)]}},{'id':_0x3e3b4e['id'],'params':{'unitId':_0x3d9287,'subUnitId':_0x4ed5ba,'shapeId':_0x50f066['drawingId']}},{'id':_0x280ce4['id'],'params':{'unitId':_0x384316,'subUnitId':_0x3707a2,'type':_0x3ab956[_0x3d4df1(0x4db)],'op':_0x4b3899[_0x3d4df1(0x54a)],'objects':_0x4b3899[_0x3d4df1(0x47d)]}},{'id':_0x63ebfb['id'],'params':{'unitId':_0x384316,'subUnitId':_0x3707a2,'shapeId':_0x50f066[_0x3d4df1(0x447)],'shapeType':_0x1ff648,'shapeData':_0xa02205}}],'undos':[{'id':_0x280ce4['id'],'params':{'unitId':_0x3d9287,'subUnitId':_0x4ed5ba,'type':_0x3ab956[_0x3d4df1(0x4db)],'op':_0x1c23a3[_0x3d4df1(0x2e9)],'objects':_0x1c23a3[_0x3d4df1(0x47d)]}},{'id':_0x63ebfb['id'],'params':{'unitId':_0x3d9287,'subUnitId':_0x4ed5ba,'shapeId':_0x50f066['drawingId'],'shapeType':_0x1ff648,'shapeData':_0xa02205}},{'id':_0x280ce4['id'],'params':{'unitId':_0x384316,'subUnitId':_0x3707a2,'type':_0x3ab956['REMOVE'],'op':_0x4b3899[_0x3d4df1(0x2e9)],'objects':_0x4b3899[_0x3d4df1(0x47d)]}},{'id':_0x3e3b4e['id'],'params':{'unitId':_0x384316,'subUnitId':_0x3707a2,'shapeId':_0x50f066[_0x3d4df1(0x447)]}}]};}}[_0x304ba4(0x513)](_0x13eb3b){const _0x4b636e=_0x304ba4;let {toUnitId:_0xc18a6c,toSubUnitId:_0xf3bc8a,drawing:_0x304217,newTransforms:_0x1fa684,newDrawingId:_0x17cf66,idMap:_0x2772b8}=_0x13eb3b,_0x54592b={..._0x304217,'unitId':_0xc18a6c,'subUnitId':_0xf3bc8a,'drawingId':_0x17cf66,'transform':_0x1fa684[_0x4b636e(0x42c)],'sheetTransform':_0x1fa684['sheetTransform']},{redo:_0x31864b,undo:_0x2527d3,objects:_0x2d3a6d}=this[_0x4b636e(0x236)][_0x4b636e(0x53f)]([_0x54592b]),_0x39c751=this[_0x4b636e(0x4e5)][_0x4b636e(0x264)](_0x304217[_0x4b636e(0x4a7)],_0x304217[_0x4b636e(0x5ca)],_0x304217[_0x4b636e(0x447)]);if(!_0x39c751)return{'redos':[],'undos':[]};let _0xc98f09=_0x39c751[_0x4b636e(0x383)](),_0x57dabd=JSON[_0x4b636e(0x487)](JSON['stringify'](_0x39c751['getShapeData']()));if(_0x57dabd[_0x4b636e(0x2f2)]){var _0x391943,_0x13b665;let _0x4ff60c=(_0x391943=_0x57dabd[_0x4b636e(0x2f2)][_0x4b636e(0x15e)])==null?void 0x0:_0x391943['shapeId'],_0x3b456b=(_0x13b665=_0x57dabd[_0x4b636e(0x2f2)]['to'])==null?void 0x0:_0x13b665[_0x4b636e(0x27b)],_0x37d045=_0x4ff60c?_0x2772b8[_0x4b636e(0x19c)](_0x4ff60c):!0x0,_0x72ff29=_0x3b456b?_0x2772b8[_0x4b636e(0x19c)](_0x3b456b):!0x0;_0x37d045&&_0x4ff60c&&_0x57dabd[_0x4b636e(0x2f2)][_0x4b636e(0x15e)]?_0x57dabd[_0x4b636e(0x2f2)][_0x4b636e(0x15e)]={..._0x57dabd[_0x4b636e(0x2f2)][_0x4b636e(0x15e)],'shapeId':_0x2772b8[_0x4b636e(0x172)](_0x4ff60c)}:_0x57dabd['relation']['from']=void 0x0,_0x72ff29&&_0x3b456b&&_0x57dabd[_0x4b636e(0x2f2)]['to']?_0x57dabd[_0x4b636e(0x2f2)]['to']={..._0x57dabd[_0x4b636e(0x2f2)]['to'],'shapeId':_0x2772b8[_0x4b636e(0x172)](_0x3b456b)}:_0x57dabd[_0x4b636e(0x2f2)]['to']=void 0x0;}return{'redos':[{'id':_0x280ce4['id'],'params':{'unitId':_0xc18a6c,'subUnitId':_0xf3bc8a,'type':_0x3ab956[_0x4b636e(0x4db)],'op':_0x31864b,'objects':_0x2d3a6d}},{'id':_0x63ebfb['id'],'params':{'unitId':_0xc18a6c,'subUnitId':_0xf3bc8a,'shapeId':_0x17cf66,'shapeType':_0xc98f09,'shapeData':_0x57dabd}}],'undos':[{'id':_0x280ce4['id'],'params':{'unitId':_0xc18a6c,'subUnitId':_0xf3bc8a,'type':_0x3ab956[_0x4b636e(0x18a)],'op':_0x2527d3,'objects':_0x2d3a6d}},{'id':_0x3e3b4e['id'],'params':{'unitId':_0xc18a6c,'subUnitId':_0xf3bc8a,'shapeId':_0x17cf66}}]};}[_0x304ba4(0x21b)](_0x5d73e5,_0x49cb66,_0x48b062,_0x1cff89){const _0x53bed3=_0x304ba4;var _0x462e6c;let {range:_0x4c1965,skeleton:_0x43e26c}=_0x49cb66,{range:_0x9e7f8d,skeleton:_0x5ad194}=_0x48b062,{transform:_0x5b1911,sheetTransform:_0x57ab91}=_0x5d73e5,_0x598d54={..._0x5b1911};if(_0x4c1965){let _0x28bb67=_0x231233(_0x43e26c,_0x4c1965),_0x2c6b92=_0x231233(_0x5ad194,_0x9e7f8d);if(_0x28bb67&&_0x2c6b92){var _0xd6393d,_0x4ded38;let _0x1a67ed=_0x2c6b92['startX']-_0x28bb67[_0x53bed3(0x32f)],_0x865e5a=_0x2c6b92[_0x53bed3(0x551)]-_0x28bb67['startY'];_0x598d54[_0x53bed3(0x38e)]=((_0xd6393d=_0x598d54[_0x53bed3(0x38e)])==null?0x0:_0xd6393d)+_0x1a67ed,_0x598d54['top']=((_0x4ded38=_0x598d54[_0x53bed3(0x32e)])==null?0x0:_0x4ded38)+_0x865e5a;}}else{let _0x4e7742=_0x231233(_0x5ad194,_0x9e7f8d);if(_0x1cff89&&_0x4e7742){var _0x250206,_0x28aff8;let _0x272352=((_0x250206=_0x598d54[_0x53bed3(0x38e)])==null?0x0:_0x250206)-_0x1cff89[_0x53bed3(0x38e)],_0x27f2e8=((_0x28aff8=_0x598d54[_0x53bed3(0x32e)])==null?0x0:_0x28aff8)-_0x1cff89[_0x53bed3(0x32e)];_0x598d54[_0x53bed3(0x38e)]=_0x4e7742[_0x53bed3(0x32f)]+_0x272352,_0x598d54[_0x53bed3(0x32e)]=_0x4e7742[_0x53bed3(0x551)]+_0x27f2e8;}else _0x598d54[_0x53bed3(0x38e)]=_0x4e7742==null?void 0x0:_0x4e7742[_0x53bed3(0x32f)],_0x598d54[_0x53bed3(0x32e)]=_0x4e7742==null?void 0x0:_0x4e7742[_0x53bed3(0x551)];}return{'transform':_0x598d54,'sheetTransform':(_0x462e6c=_0x423ff2(_0x598d54,_0x5ad194))==null?_0x57ab91:_0x462e6c};}};Ho=$([Q(0x0,_0x28dee4(_0x131cb6)),Q(0x1,_0x28dee4(_0x320ce5)),Q(0x2,_0x28dee4(_0x486e0c)),Q(0x3,_0x28dee4(_0x3538a1)),Q(0x4,_0x28dee4(_0x44d224))],Ho);var Uo=class extends _0x12f371{constructor(_0x1a2e99,_0x2a7de8){const _0x14347c=_0x304ba4;super(_0x1a2e99,_0x2a7de8),Y(this,_0x14347c(0x22d),null),Y(this,'_index',null),Y(this,_0x14347c(0x2a1),null),Y(this,_0x14347c(0x3c8),null),Y(this,_0x14347c(0x45f),!0x1),_0x2a7de8&&this[_0x14347c(0x1cf)](_0x2a7de8);}[_0x304ba4(0x533)](){const _0x485def=_0x304ba4;return{'unitId':this['_unitId'],'subUnitId':this[_0x485def(0x3c8)],'drawingId':this[_0x485def(0x22d)]};}[_0x304ba4(0x1cf)](_0x541994){const _0x41676f=_0x304ba4;_0x541994[_0x41676f(0x27b)]!==void 0x0&&(this[_0x41676f(0x22d)]=_0x541994[_0x41676f(0x27b)]),_0x541994[_0x41676f(0x4a7)]!==void 0x0&&(this[_0x41676f(0x2a1)]=_0x541994[_0x41676f(0x4a7)]),_0x541994[_0x41676f(0x5ca)]!==void 0x0&&(this[_0x41676f(0x3c8)]=_0x541994[_0x41676f(0x5ca)]),_0x541994[_0x41676f(0x3d6)]!==void 0x0&&(this[_0x41676f(0x45f)]=_0x541994['isStartConnectorPoint']),this['transformByState']({'width':_0x541994[_0x41676f(0x34d)],'height':_0x541994[_0x41676f(0x595)]});}[_0x304ba4(0x24a)](_0x26b318){const _0x43dda0=_0x304ba4;_0x2542c4['drawWith'](_0x26b318,{'radius':_0x9cc8fa['cxnPointRadius'],'fill':_0x9cc8fa[_0x43dda0(0x4ca)],'stroke':_0x9cc8fa['cxnPointStroke'],'strokeWidth':_0x9cc8fa[_0x43dda0(0x17d)],'evented':!0x0});}};let Wo=class extends _0x1a987c{constructor(_0x3e2389,_0x42310a,_0x40fdc6,_0x32099a,_0x4b75e2,_0x292e90,_0x78607f,_0x40101d){const _0x26365c=_0x304ba4;super(),this[_0x26365c(0x411)]=_0x3e2389,this[_0x26365c(0x288)]=_0x42310a,this[_0x26365c(0x5a0)]=_0x40fdc6,this[_0x26365c(0x327)]=_0x32099a,this[_0x26365c(0x307)]=_0x4b75e2,this[_0x26365c(0x436)]=_0x292e90,this[_0x26365c(0x3bf)]=_0x78607f,this[_0x26365c(0x5c0)]=_0x40101d,Y(this,_0x26365c(0x169),void 0x0),Y(this,_0x26365c(0x2a1),void 0x0),Y(this,_0x26365c(0x3c8),void 0x0),Y(this,'_connectorObjects',[]),Y(this,_0x26365c(0x240),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x26365c(0x31e),void 0x0),Y(this,_0x26365c(0x418),!0x1),Y(this,'_isDrawingShapePointDown',!0x1),Y(this,_0x26365c(0x5cf),!0x1),Y(this,_0x26365c(0x2c5),void 0x0),Y(this,_0x26365c(0x403),void 0x0),Y(this,_0x26365c(0x27e),null),this[_0x26365c(0x573)]();}[_0x304ba4(0x573)](){const _0x31e84e=_0x304ba4;this[_0x31e84e(0x36f)](),this[_0x31e84e(0x417)]();}[_0x304ba4(0x4ff)](){const _0x13c5e8=_0x304ba4;if(!this[_0x13c5e8(0x2a1)]||!this[_0x13c5e8(0x3c8)]||!this[_0x13c5e8(0x169)])return;let _0x416550={'unitId':this[_0x13c5e8(0x2a1)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x13c5e8(0x169)]},{transform:_0x182362}=this[_0x13c5e8(0x327)][_0x13c5e8(0x237)](_0x416550);if(_0x182362)return{'left':_0x182362[_0x13c5e8(0x38e)]||0x0,'top':_0x182362[_0x13c5e8(0x32e)]||0x0,'width':_0x182362[_0x13c5e8(0x34d)]||0x0,'height':_0x182362[_0x13c5e8(0x595)]||0x0,'flipX':_0x182362[_0x13c5e8(0x3a3)]||!0x1,'flipY':_0x182362[_0x13c5e8(0x3d9)]||!0x1,'angle':_0x182362['angle']};}[_0x304ba4(0x2a3)](){const _0x63be23=_0x304ba4;if(this[_0x63be23(0x2a1)]===void 0x0||this[_0x63be23(0x3c8)]===void 0x0||this[_0x63be23(0x169)]===void 0x0)return;let _0x2b6166=this['_renderManagerService'][_0x63be23(0x1c2)](this['_unitId']);if(!_0x2b6166||!_0x2b6166[_0x63be23(0x465)](_0x23f58f)[_0x63be23(0x588)]())return;let {scene:_0x35349a}=_0x2b6166,_0x5b6231=this[_0x63be23(0x4ff)]();if(!_0x5b6231)return;let _0x4c551c=this[_0x63be23(0x436)][_0x63be23(0x264)](this[_0x63be23(0x2a1)],this[_0x63be23(0x3c8)],this['_activeShapeId']);if(!_0x4c551c||!_0x1326e8(_0x4c551c['getShapeType']()))return;let _0x62e1dd=_0x4c551c[_0x63be23(0x1a9)]();if(_0x62e1dd[_0x63be23(0x1a1)]<0x2)return;let _0x2c17e2=new _0x12ec86(_0x5b6231),_0x58e776=_0x62e1dd[0x0],_0x52e77f=_0x62e1dd[_0x62e1dd[_0x63be23(0x1a1)]-0x1],_0x2e5903=_0x2c17e2[_0x63be23(0x2e3)](_0x58e776),_0x4ee9a2=_0x2c17e2[_0x63be23(0x2e3)](_0x52e77f);this['_addShapeConnectorHandlerObject'](_0x35349a,{..._0x2e5903},!0x0),this[_0x63be23(0x165)](_0x35349a,{..._0x4ee9a2},!0x1);}[_0x304ba4(0x165)](_0x4c8af2,_0x235ce0,_0x2ee3b7){const _0x347413=_0x304ba4;if(this[_0x347413(0x169)]===void 0x0||this[_0x347413(0x2a1)]===void 0x0||this[_0x347413(0x3c8)]===void 0x0)return;let _0x470a71=_0x347413(0x197)+this[_0x347413(0x2a1)]+'-'+this['_subUnitId']+'-'+this[_0x347413(0x169)]+'-'+(_0x2ee3b7?'start':_0x347413(0x320)),_0xdb78fc=_0x4c8af2[_0x347413(0x4cd)](_0x470a71);if(_0xdb78fc){_0xdb78fc[_0x347413(0x277)]({'left':_0x235ce0['x']-_0x9cc8fa[_0x347413(0x54e)],'top':_0x235ce0['y']-_0x9cc8fa[_0x347413(0x54e)]});return;}let _0x5712a8=new Uo(_0x470a71,{'left':_0x235ce0['x']-_0x9cc8fa[_0x347413(0x54e)],'top':_0x235ce0['y']-_0x9cc8fa['cxnPointRadius'],'shapeId':this[_0x347413(0x169)],'unitId':this[_0x347413(0x2a1)],'subUnitId':this[_0x347413(0x3c8)],'isStartConnectorPoint':_0x2ee3b7,'width':_0x9cc8fa[_0x347413(0x54e)]*0x2,'height':_0x9cc8fa[_0x347413(0x54e)]*0x2,'zIndex':_0x395f9d+0x1,'evented':!0x0});this[_0x347413(0x276)][_0x347413(0x3d5)](_0x5712a8),this[_0x347413(0x512)](_0x5712a8,_0x4c8af2,_0x2ee3b7),_0x4c8af2['addObject'](_0x5712a8,_0x395f9d+0x1);}[_0x304ba4(0x3e8)](_0x54c64b,_0x2cd005){const _0x4d4acf=_0x304ba4;var _0x16e0f8;let _0x3b2a3b={'x':0x0,'y':0x0};if(!_0x54c64b||!_0x2cd005)return _0x3b2a3b;let _0x25b233=this[_0x4d4acf(0x5a0)][_0x4d4acf(0x1c2)](_0x54c64b);if(!_0x25b233||!_0x25b233['with'](_0x23f58f)['getSkeleton'](_0x2cd005))return _0x3b2a3b;let _0xd6403f=_0x25b233['with'](_0x4888cb),_0x3a9e60=_0xd6403f==null?void 0x0:_0xd6403f[_0x4d4acf(0x4ba)]();if(!_0x3a9e60)return _0x3b2a3b;let _0x2fdc57=(_0x16e0f8=this[_0x4d4acf(0x307)][_0x4d4acf(0x1c9)](_0x54c64b))==null?void 0x0:_0x16e0f8['getSheetBySheetId'](_0x2cd005);if(!_0x2fdc57)return _0x3b2a3b;let _0x2fdbc2=_0x344941(_0x3a9e60['sheetViewStartRow'],_0x3a9e60['sheetViewStartColumn'],_0x25b233[_0x4d4acf(0x490)],_0x2fdc57);return _0x2fdbc2?{'x':_0x2fdbc2['viewportScrollX'],'y':_0x2fdbc2['viewportScrollY']}:_0x3b2a3b;}['_getZoomRatio'](_0x102ace,_0x5a34c8){const _0x17d445=_0x304ba4;var _0x4af7bf,_0x3209ba;let _0x3884bf=(_0x4af7bf=this['_univerInstanceService'][_0x17d445(0x1c9)](_0x102ace))==null?void 0x0:_0x4af7bf[_0x17d445(0x33d)](_0x5a34c8);return(_0x3209ba=_0x3884bf==null?void 0x0:_0x3884bf['getZoomRatio']())==null?0x1:_0x3209ba;}[_0x304ba4(0x5f0)](_0x3887c7,_0x2719c6,_0x363b3b,_0x1667c0,_0x232d11){const _0xd96cb8=_0x304ba4;this['_cxtHandlerPointerMove']['unsubscribe'](),this[_0xd96cb8(0x403)][_0xd96cb8(0x262)](),this[_0xd96cb8(0x3bf)][_0xd96cb8(0x3ff)]();let _0x112790=this[_0xd96cb8(0x27e)];this[_0xd96cb8(0x5c0)][_0xd96cb8(0x433)]();let _0x587a3f=this[_0xd96cb8(0x3e8)](this[_0xd96cb8(0x2a1)],this[_0xd96cb8(0x3c8)]),_0x488f36=this[_0xd96cb8(0x1b0)](this[_0xd96cb8(0x2a1)],this[_0xd96cb8(0x3c8)]),_0x211635={'x':_0x363b3b[_0xd96cb8(0x2ee)]/_0x488f36+_0x587a3f['x'],'y':_0x363b3b[_0xd96cb8(0x5db)]/_0x488f36+_0x587a3f['y']},_0x135d9d=_0x112790?_0x112790[_0xd96cb8(0x326)]:_0x211635,_0x410689=_0x1667c0?this['_activeShapeModel'][_0xd96cb8(0x23a)]():this[_0xd96cb8(0x31e)]['getStartConnectInfo'](),_0x71e80f=this[_0xd96cb8(0x31e)][_0xd96cb8(0x383)]();_0x410689?this[_0xd96cb8(0x152)](_0x410689,_0x135d9d,_0x1667c0,_0x112790,_0x232d11):this[_0xd96cb8(0x4f6)](_0x2719c6,_0x135d9d,_0x1667c0,_0x112790,_0x232d11,_0x71e80f),this['_isConnecting']=!0x1,this['_hasReset']=!0x1,this[_0xd96cb8(0x27e)]=null,_0x3887c7['enableObjectsEvent']();}[_0x304ba4(0x4f6)](_0x2decb1,_0x426c81,_0x3a5028,_0x276546,_0x5d55d7,_0x1c6b6a){const _0x25ae33=_0x304ba4;let _0xee61a6=_0x1c6b6a===_0x13cb42[_0x25ae33(0x331)]||_0x1c6b6a===_0x13cb42['StraightConnector1'],_0x522312=_0x3a5028?_0x426c81:_0x2decb1,_0x141a09=_0x3a5028?_0x2decb1:_0x426c81,_0x6c2862=this['_activeShapeModel'][_0x25ae33(0x1a9)](),_0x14a563=_0x21cf30(this['_activeShapeModel']['getShapeType']()),_0x5e15fb=_0x12ec86[_0x25ae33(0x497)](_0x6c2862,_0x14a563),_0x447741=_0xee61a6?_0x12ec86[_0x25ae33(0x4d6)](_0x522312,_0x141a09):_0x12ec86[_0x25ae33(0x3b1)](_0x2decb1,_0x426c81,_0x3a5028,_0x5e15fb);_0x276546?this[_0x25ae33(0x565)](_0x447741,_0x276546,_0x3a5028,_0x5d55d7):this[_0x25ae33(0x543)](_0x447741,_0x5d55d7);}['_handleConnectedEndpointPointerUp'](_0x1fe409,_0x4d05f0,_0x3ad3e9,_0x2bb030,_0x112c01){const _0x3baf5d=_0x304ba4;let _0x48ff6e=this[_0x3baf5d(0x5ab)](_0x1fe409);if(!_0x48ff6e)return;let _0x33b16f=_0x2bb030?_0x2bb030[_0x3baf5d(0x517)]:this['_calculateFreeEndpointAngle'](_0x48ff6e[_0x3baf5d(0x35d)],_0x4d05f0),_0x4f5306;if(_0x2bb030){let _0x1c7767=this['_drawingManagerService'][_0x3baf5d(0x237)]({'unitId':_0x2bb030['unitId'],'subUnitId':_0x2bb030[_0x3baf5d(0x5ca)],'drawingId':_0x2bb030[_0x3baf5d(0x27b)]});if(_0x1c7767!=null&&_0x1c7767['transform']){let {left:_0x1a7cf3=0x0,top:_0x3fb838=0x0,width:_0x24e802=0x0,height:_0x256512=0x0,angle:_0xa2a49e}=_0x1c7767[_0x3baf5d(0x42c)];_0x4f5306=_0x10ef50({'left':_0x1a7cf3,'top':_0x3fb838,'width':_0x24e802,'height':_0x256512},_0xa2a49e||0x0);}else _0x4f5306={'left':_0x4d05f0['x'],'top':_0x4d05f0['y'],'width':0x0,'height':0x0};}else _0x4f5306={'left':_0x4d05f0['x'],'top':_0x4d05f0['y'],'width':0x0,'height':0x0};let _0x42e4ca={'point':_0x4d05f0,'angle':_0x33b16f,'bounds':_0x4f5306},_0x17c687=_0x3ad3e9?_0x42e4ca:_0x48ff6e,_0xd4a173=_0x3ad3e9?_0x48ff6e:_0x42e4ca,_0x5cffb3=this[_0x3baf5d(0x31e)][_0x3baf5d(0x383)](),_0x529236=_0x3dbb25(_0x17c687,_0xd4a173,_0x5cffb3);this[_0x3baf5d(0x31e)][_0x3baf5d(0x20b)]();let _0x18c7e3=_0xf624ed(_0x529236,_0x5cffb3);_0x2bb030?this[_0x3baf5d(0x5fe)](_0x18c7e3,_0x2bb030,_0x1fe409,_0x3ad3e9,_0x112c01):this['_executeConnectedRouteResizeCommand'](_0x18c7e3,_0x1fe409,_0x3ad3e9,_0x112c01);}[_0x304ba4(0x565)](_0x6bd994,_0x3f2b32,_0x18a31f,_0x208686){const _0x576fa1=_0x304ba4;let _0x2aec78=this['_activeShapeModel']['getShapeData']()['relation'],_0x253272={..._0x2aec78},_0x5a5669={'shapeId':_0x3f2b32[_0x576fa1(0x27b)],'cxnIndex':_0x3f2b32[_0x576fa1(0x401)]};_0x18a31f?_0x253272[_0x576fa1(0x15e)]=_0x5a5669:_0x253272['to']=_0x5a5669;let _0x379750=this[_0x576fa1(0x31e)][_0x576fa1(0x383)](),_0x19f8a7=_0xf624ed(_0x6bd994[_0x576fa1(0x4e4)],_0x379750),_0x531bbf={'unitId':this[_0x576fa1(0x2a1)],'subUnitId':this[_0x576fa1(0x3c8)],'connectorShapeId':this['_activeShapeId'],'width':_0x6bd994[_0x576fa1(0x5f3)][_0x576fa1(0x34d)],'height':_0x6bd994[_0x576fa1(0x5f3)]['height'],'left':_0x6bd994[_0x576fa1(0x5f3)][_0x576fa1(0x38e)],'top':_0x6bd994[_0x576fa1(0x5f3)][_0x576fa1(0x32e)],'flipX':_0x6bd994[_0x576fa1(0x5f3)]['flipX']||!0x1,'flipY':_0x6bd994[_0x576fa1(0x5f3)][_0x576fa1(0x3d9)]||!0x1,'newAdjustValues':_0x19f8a7[_0x576fa1(0x592)],'oldAdjustValues':_0x208686,'oldRelation':_0x2aec78,'newRelation':_0x253272,'newLineType':_0x19f8a7[_0x576fa1(0x568)],'oldLineType':_0x379750};this[_0x576fa1(0x288)][_0x576fa1(0x2f1)](_0x190139['id'],_0x531bbf);}[_0x304ba4(0x543)](_0x573a8c,_0x3032a9){const _0x4ab29c=_0x304ba4;let _0x14e380=this['_activeShapeModel'][_0x4ab29c(0x383)](),_0x430a49=_0xf624ed(_0x573a8c[_0x4ab29c(0x4e4)],_0x14e380),_0x3da19e={'unitId':this[_0x4ab29c(0x2a1)],'subUnitId':this[_0x4ab29c(0x3c8)],'shapeId':this[_0x4ab29c(0x169)],'width':_0x573a8c['worldRect'][_0x4ab29c(0x34d)],'height':_0x573a8c[_0x4ab29c(0x5f3)]['height'],'left':_0x573a8c[_0x4ab29c(0x5f3)][_0x4ab29c(0x38e)],'top':_0x573a8c[_0x4ab29c(0x5f3)]['top'],'flipX':_0x573a8c[_0x4ab29c(0x5f3)][_0x4ab29c(0x3a3)]||!0x1,'flipY':_0x573a8c[_0x4ab29c(0x5f3)][_0x4ab29c(0x3d9)]||!0x1,'angle':_0x573a8c[_0x4ab29c(0x5f3)][_0x4ab29c(0x517)]||0x0,'newAdjustValues':_0x430a49[_0x4ab29c(0x592)],'oldAdjustValues':_0x3032a9,'newLineType':_0x430a49[_0x4ab29c(0x568)],'oldLineType':_0x14e380};this[_0x4ab29c(0x288)]['executeCommand'](_0x59dd52['id'],_0x3da19e);}[_0x304ba4(0x5fe)](_0x3fcaa0,_0x5a87ae,_0x420bc1,_0x350b87,_0x49638a){const _0x168948=_0x304ba4;let _0x3f8b8e=this['_activeShapeModel'][_0x168948(0x18d)]()[_0x168948(0x2f2)],_0x3278d4={..._0x3f8b8e},_0xfe1511={'shapeId':_0x5a87ae[_0x168948(0x27b)],'cxnIndex':_0x5a87ae[_0x168948(0x401)]};_0x350b87?(_0x3278d4[_0x168948(0x15e)]=_0xfe1511,_0x3278d4['to']=_0x420bc1):(_0x3278d4['from']=_0x420bc1,_0x3278d4['to']=_0xfe1511);let _0x2f1adf={'unitId':this[_0x168948(0x2a1)],'subUnitId':this[_0x168948(0x3c8)],'connectorShapeId':this['_activeShapeId'],'width':_0x3fcaa0[_0x168948(0x5f3)][_0x168948(0x34d)],'height':_0x3fcaa0['worldRect'][_0x168948(0x595)],'left':_0x3fcaa0[_0x168948(0x5f3)][_0x168948(0x38e)],'top':_0x3fcaa0[_0x168948(0x5f3)][_0x168948(0x32e)],'flipX':_0x3fcaa0[_0x168948(0x5f3)][_0x168948(0x3a3)]||!0x1,'flipY':_0x3fcaa0[_0x168948(0x5f3)][_0x168948(0x3d9)]||!0x1,'oldAdjustValues':_0x49638a,'newAdjustValues':_0x3fcaa0['adjustValues'],'newLineType':_0x3fcaa0[_0x168948(0x568)],'rotation':_0x3fcaa0[_0x168948(0x575)],'oldRelation':_0x3f8b8e,'newRelation':_0x3278d4};this[_0x168948(0x288)][_0x168948(0x2f1)](_0x190139['id'],_0x2f1adf);}[_0x304ba4(0x4d2)](_0xad02fe,_0x58bf33,_0xfaa067,_0x307b02){const _0x447b29=_0x304ba4;let _0x2238ba=this[_0x447b29(0x31e)][_0x447b29(0x18d)]()[_0x447b29(0x2f2)],_0x459713={};_0xfaa067?(_0x459713['to']=_0x58bf33,_0x459713[_0x447b29(0x15e)]=void 0x0):(_0x459713['from']=_0x58bf33,_0x459713['to']=void 0x0);let _0x2e35e1={'unitId':this[_0x447b29(0x2a1)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x447b29(0x169)],'width':_0xad02fe[_0x447b29(0x5f3)][_0x447b29(0x34d)],'height':_0xad02fe[_0x447b29(0x5f3)][_0x447b29(0x595)],'left':_0xad02fe['worldRect'][_0x447b29(0x38e)],'top':_0xad02fe[_0x447b29(0x5f3)]['top'],'flipX':_0xad02fe[_0x447b29(0x5f3)][_0x447b29(0x3a3)]||!0x1,'flipY':_0xad02fe[_0x447b29(0x5f3)][_0x447b29(0x3d9)]||!0x1,'oldAdjustValues':_0x307b02,'newAdjustValues':_0xad02fe[_0x447b29(0x592)],'newLineType':_0xad02fe['lineType'],'rotation':_0xad02fe[_0x447b29(0x575)],'oldRelation':_0x2238ba,'newRelation':_0x459713};this[_0x447b29(0x288)][_0x447b29(0x2f1)](_0x190139['id'],_0x2e35e1);}[_0x304ba4(0x512)](_0x453d2f,_0x1502e5,_0x532492){const _0x559ca1=_0x304ba4;this[_0x559ca1(0x1e2)](_0x1a9690(_0x453d2f[_0x559ca1(0x5a8)][_0x559ca1(0x400)]((_0xe5231c,_0x1bd496)=>{const _0x34935e=_0x559ca1;let _0x16a63f=_0x453d2f[_0x34935e(0x533)]();if(this[_0x34935e(0x31e)]=this[_0x34935e(0x436)]['getShapeModel'](_0x16a63f[_0x34935e(0x4a7)],_0x16a63f[_0x34935e(0x5ca)],_0x16a63f[_0x34935e(0x447)]),!this[_0x34935e(0x31e)])return;let _0x3b720e={};this['_activeShapeModel'][_0x34935e(0x310)]()[_0x34935e(0x364)](_0x48308b=>{const _0x3d0a74=_0x34935e;let _0x4d4deb=this[_0x3d0a74(0x31e)][_0x3d0a74(0x308)](_0x48308b);_0x4d4deb!==void 0x0&&(_0x3b720e[_0x48308b]=_0x4d4deb);});let _0x6cccca=this['_getDrawingRect']();if(!_0x6cccca)return;this['_baseDrawingRect']={..._0x6cccca};let _0x37fb9e=new _0x12ec86(this[_0x34935e(0x240)]),_0x421206=_0x4ac3ac({'unitId':this[_0x34935e(0x2a1)],'subUnitId':this[_0x34935e(0x3c8)],'drawingId':this[_0x34935e(0x169)]}),_0x59dc4e=_0x1502e5[_0x34935e(0x4cd)](_0x421206);this['_isConnecting']=!0x0,_0x1502e5[_0x34935e(0x2a7)](),this[_0x34935e(0x5c0)][_0x34935e(0x3c0)](_0x1502e5,this[_0x34935e(0x2a1)],this[_0x34935e(0x3c8)],this['_activeShapeId']),this[_0x34935e(0x27e)]=null;let _0x339187=this[_0x34935e(0x31e)][_0x34935e(0x1a9)](),_0x4ca750=_0x339187[0x0],_0xd3d644=_0x339187[_0x339187[_0x34935e(0x1a1)]-0x1],_0x4a1437=_0x532492?_0x37fb9e['localToWorld'](_0xd3d644):_0x37fb9e['localToWorld'](_0x4ca750);this['_cxtHandlerPointerMove']=_0x1502e5[_0x34935e(0x5ea)][_0x34935e(0x400)]((_0xdee769,_0x328fc9)=>{const _0x2413ef=_0x34935e;if(!this[_0x2413ef(0x418)]||!this['_activeShapeModel'])return;this[_0x2413ef(0x5cf)]||(this['_sheetShapeAdjustController'][_0x2413ef(0x44c)](),this[_0x2413ef(0x31e)][_0x2413ef(0x1aa)](),this[_0x2413ef(0x5cf)]=!0x0);let _0x2f0cb1=this[_0x2413ef(0x3e8)](this[_0x2413ef(0x2a1)],this[_0x2413ef(0x3c8)]),_0x345867=this[_0x2413ef(0x1b0)](this['_unitId'],this['_subUnitId']),_0x5767af={'x':_0xdee769['offsetX']/_0x345867+_0x2f0cb1['x'],'y':_0xdee769[_0x2413ef(0x5db)]/_0x345867+_0x2f0cb1['y']},_0x593f3a=this[_0x2413ef(0x5c0)][_0x2413ef(0x2db)](_0x5767af);if(_0x593f3a){let {shapeId:_0x4e9649,unitId:_0x2af722,subUnitId:_0xbbc5b2}=_0x593f3a;if(_0x4e9649&&_0x2af722&&_0xbbc5b2){let _0x27dcf8=_0x4ac3ac({'unitId':_0x2af722,'subUnitId':_0xbbc5b2,'drawingId':_0x4e9649});_0x593f3a['angle']=(_0x1502e5[_0x2413ef(0x4cd)](_0x27dcf8)[_0x2413ef(0x517)]||0x0)+_0x593f3a[_0x2413ef(0x517)];}}this[_0x2413ef(0x27e)]=_0x593f3a;let _0x1ea67f=_0x532492?this[_0x2413ef(0x31e)][_0x2413ef(0x23a)]():this['_activeShapeModel'][_0x2413ef(0x208)]();if(_0x1ea67f){this[_0x2413ef(0x29b)](_0x1ea67f,_0x5767af,_0x532492,_0x59dc4e,_0x453d2f);return;}this[_0x2413ef(0x171)](_0x5767af,_0x4a1437,_0x532492,_0x59dc4e,_0x453d2f);}),this[_0x34935e(0x403)]=_0x1502e5[_0x34935e(0x4ee)][_0x34935e(0x400)]((_0x1f7adb,_0x5392d9)=>{const _0x321ab2=_0x34935e;this[_0x321ab2(0x5f0)](_0x1502e5,_0x4a1437,_0x1f7adb,_0x532492,_0x3b720e);}),_0x1bd496[_0x34935e(0x38f)]();})));}[_0x304ba4(0x254)](_0x2ab12b,_0x35b546,_0x4d0f18){const _0x149d2a=_0x304ba4;let _0x4e06a0=this['_sheetsShapeService'][_0x149d2a(0x376)](_0x2ab12b,_0x35b546,_0x4d0f18);if(!_0x4e06a0||_0x4e06a0[_0x149d2a(0x1a1)]===0x0)return;let _0xd0ecaf=this[_0x149d2a(0x5a0)][_0x149d2a(0x1c2)](_0x2ab12b);if(!_0xd0ecaf)return;let {scene:_0x1f2d09}=_0xd0ecaf;for(let _0x2a9e49 of _0x4e06a0){let _0x5b597a=_0x2a9e49[_0x149d2a(0x519)],_0x482f88=this[_0x149d2a(0x436)]['getShapeModel'](_0x2ab12b,_0x35b546,_0x5b597a);if(!_0x482f88)continue;let _0x42e7fb=_0x482f88['getStartConnectInfo'](),_0x51cd2d=_0x482f88[_0x149d2a(0x23a)](),_0x500284=(_0x42e7fb==null?void 0x0:_0x42e7fb[_0x149d2a(0x27b)])===_0x4d0f18,_0x515b7b=_0x4ac3ac({'unitId':_0x2ab12b,'subUnitId':_0x35b546,'drawingId':_0x5b597a}),_0x34cd3b=_0x1f2d09['getObjectIncludeInGroup'](_0x515b7b);if(!_0x34cd3b)continue;let _0x28fab3=this[_0x149d2a(0x327)][_0x149d2a(0x237)]({'unitId':_0x2ab12b,'subUnitId':_0x35b546,'drawingId':_0x5b597a});_0x28fab3!=null&&_0x28fab3['transform']&&(_0x42e7fb&&_0x51cd2d?this[_0x149d2a(0x574)](_0x2ab12b,_0x35b546,_0x5b597a,_0x482f88,_0x42e7fb,_0x51cd2d,_0x34cd3b):this[_0x149d2a(0x51d)](_0x2ab12b,_0x35b546,_0x5b597a,_0x482f88,_0x500284?_0x42e7fb:_0x51cd2d,_0x500284,_0x28fab3,_0x34cd3b));}}[_0x304ba4(0x574)](_0x46ca2e,_0x3a0411,_0x49529c,_0x520d0c,_0x4e6a8c,_0x58b921,_0x159335){const _0x523ccd=_0x304ba4;let _0x4edf3b=this[_0x523ccd(0x2a1)],_0x28203b=this[_0x523ccd(0x3c8)];this[_0x523ccd(0x2a1)]=_0x46ca2e,this['_subUnitId']=_0x3a0411;let _0x3cea82=this[_0x523ccd(0x5ab)](_0x4e6a8c),_0x5c58b8=this[_0x523ccd(0x5ab)](_0x58b921);if(this[_0x523ccd(0x2a1)]=_0x4edf3b,this[_0x523ccd(0x3c8)]=_0x28203b,!_0x3cea82||!_0x5c58b8)return;let _0x2c51b0=_0x520d0c[_0x523ccd(0x383)](),_0x370f68=_0x3dbb25(_0x3cea82,_0x5c58b8,_0x2c51b0);_0x370f68&&_0x520d0c[_0x523ccd(0x402)](_0x370f68);let _0x2cb1b6=_0xf624ed(_0x370f68,_0x2c51b0);_0x2cb1b6[_0x523ccd(0x568)]!==_0x2c51b0&&_0x520d0c['changeShapeType'](_0x2cb1b6['lineType']),_0x520d0c[_0x523ccd(0x1aa)]();for(let [_0x4283ea,_0x4282c9]of Object[_0x523ccd(0x1ca)](_0x2cb1b6[_0x523ccd(0x592)]))_0x520d0c['setAdjustValueByName'](_0x4283ea,_0x4282c9);_0x520d0c[_0x523ccd(0x5d1)]({'width':_0x2cb1b6['worldRect'][_0x523ccd(0x34d)],'height':_0x2cb1b6[_0x523ccd(0x5f3)]['height']}),_0x159335[_0x523ccd(0x277)]({'flipX':_0x2cb1b6[_0x523ccd(0x5f3)][_0x523ccd(0x3a3)],'flipY':_0x2cb1b6[_0x523ccd(0x5f3)][_0x523ccd(0x3d9)],'left':_0x2cb1b6[_0x523ccd(0x5f3)][_0x523ccd(0x38e)],'top':_0x2cb1b6[_0x523ccd(0x5f3)]['top'],'width':_0x2cb1b6['worldRect']['width'],'height':_0x2cb1b6[_0x523ccd(0x5f3)]['height'],'angle':_0x2cb1b6['rotation']}),_0x520d0c[_0x523ccd(0x20b)]();}[_0x304ba4(0x51d)](_0x4d9a0c,_0x3f83c0,_0x3d1bd2,_0x3f26c9,_0xcc7dbd,_0x532732,_0x4bb17c,_0x3e17fe){const _0x19b636=_0x304ba4;let _0x2d5840=this[_0x19b636(0x2a1)],_0x330237=this[_0x19b636(0x3c8)];this[_0x19b636(0x2a1)]=_0x4d9a0c,this['_subUnitId']=_0x3f83c0;let _0x59803e=this[_0x19b636(0x5ab)](_0xcc7dbd);if(this[_0x19b636(0x2a1)]=_0x2d5840,this[_0x19b636(0x3c8)]=_0x330237,!_0x59803e)return;let {left:_0x1588d2=0x0,top:_0x34ecdb=0x0,width:_0x5602d2=0x0,height:_0x3fca33=0x0,flipX:_0x5332e6=!0x1,flipY:_0x26fa45=!0x1}=_0x4bb17c[_0x19b636(0x42c)],_0x35b04e=_0x3f26c9[_0x19b636(0x1a9)]();if(_0x35b04e['length']<0x2)return;let _0x511484=new _0x12ec86({'left':_0x1588d2,'top':_0x34ecdb,'width':_0x5602d2,'height':_0x3fca33,'flipX':_0x5332e6,'flipY':_0x26fa45}),_0xe242ab=_0x532732?_0x35b04e[_0x35b04e['length']-0x1]:_0x35b04e[0x0],_0x23290f=_0x511484[_0x19b636(0x2e3)](_0xe242ab),_0x229c8c=_0x12ec86[_0x19b636(0x3b1)](_0x23290f,_0x59803e[_0x19b636(0x35d)],!_0x532732);_0x3e17fe[_0x19b636(0x277)]({'flipX':_0x229c8c[_0x19b636(0x5f3)][_0x19b636(0x3a3)],'flipY':_0x229c8c[_0x19b636(0x5f3)][_0x19b636(0x3d9)],'left':_0x229c8c['worldRect'][_0x19b636(0x38e)],'top':_0x229c8c[_0x19b636(0x5f3)][_0x19b636(0x32e)],'width':_0x229c8c[_0x19b636(0x5f3)]['width'],'height':_0x229c8c[_0x19b636(0x5f3)][_0x19b636(0x595)],'angle':_0x229c8c[_0x19b636(0x5f3)][_0x19b636(0x517)]}),_0x3e17fe[_0x19b636(0x26b)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0xf21c25=_0x304ba4;this['_connectorObjects'][_0xf21c25(0x1a1)]!==0x0&&(this[_0xf21c25(0x276)][_0xf21c25(0x364)](_0x21162d=>{_0x21162d['dispose']();}),this[_0xf21c25(0x276)]=[]);}[_0x304ba4(0x417)](){const _0x4597b5=_0x304ba4;let _0x1c085d=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2fb0a4['UNIVER_SHEET']);this[_0x4597b5(0x1e2)](_0x1c085d[_0x4597b5(0x58d)](_0x29c65f(_0x48e5de=>_0x48e5de?_0x48e5de[_0x4597b5(0x2be)][_0x4597b5(0x58d)](_0x29c65f(_0x492362=>{const _0x780a3=_0x4597b5;if(!_0x492362)return _0x2ba775;let _0x31c4a0=_0x48e5de['getUnitId'](),_0x3e79f6=this[_0x780a3(0x5a0)][_0x780a3(0x1c2)](_0x31c4a0),_0xa7b0a=_0x3e79f6==null?void 0x0:_0x3e79f6[_0x780a3(0x490)];return _0xa7b0a?_0x23cc49(_0xa7b0a):_0x2ba775;})):_0x2ba775))[_0x4597b5(0x464)](_0x35d90c=>{const _0x420d43=_0x4597b5;let _0x44757a=_0x35d90c[_0x420d43(0x224)]();this[_0x420d43(0x1e2)](_0x35d90c[_0x420d43(0x5ea)][_0x420d43(0x400)](_0x4ba117=>{const _0x3e9a80=_0x420d43;this[_0x3e9a80(0x45a)]&&this[_0x3e9a80(0x169)]&&this[_0x3e9a80(0x33a)]();})),this[_0x420d43(0x1e2)](_0x44757a[_0x420d43(0x563)][_0x420d43(0x464)](_0x35282d=>{const _0x512de5=_0x420d43;let {objects:_0x1cf3da}=_0x35282d;this[_0x512de5(0x33a)](),_0x1cf3da!==null&&_0x1cf3da[_0x512de5(0x379)]===0x1&&_0x1cf3da['values']()['next']()['value']instanceof to&&(this[_0x512de5(0x45a)]=!0x0);})),this['disposeWithMe'](_0x44757a[_0x420d43(0x3cd)][_0x420d43(0x464)](_0x22aaba=>{const _0x4995db=_0x420d43;this[_0x4995db(0x45a)]&&this[_0x4995db(0x33a)]();})),this[_0x420d43(0x1e2)](_0x35d90c['onPointerUp$'][_0x420d43(0x400)](()=>{const _0x5233d6=_0x420d43;this['_isDrawingShapePointDown']&&(this[_0x5233d6(0x45a)]=!0x1,this[_0x5233d6(0x2a3)]());})),this[_0x420d43(0x1e2)](_0x44757a[_0x420d43(0x482)]['subscribe'](()=>{const _0x56edb0=_0x420d43;this[_0x56edb0(0x2a1)]&&this[_0x56edb0(0x3c8)]&&this['_activeShapeId']&&this[_0x56edb0(0x327)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x56edb0(0x169)]})&&(this[_0x56edb0(0x33a)](),this[_0x56edb0(0x2a3)]());}));}));}[_0x304ba4(0x36f)](){const _0x5163f7=_0x304ba4;this[_0x5163f7(0x1e2)](this[_0x5163f7(0x327)][_0x5163f7(0x483)][_0x5163f7(0x464)](_0x3001ec=>{const _0x1a5221=_0x5163f7;if(_0x3001ec['length']===0x1){let _0x21491f=_0x3001ec[0x0];if(_0x21491f[_0x1a5221(0x429)]===_0x2375be['DRAWING_SHAPE']){let _0x52c67d=this[_0x1a5221(0x436)][_0x1a5221(0x264)](_0x21491f[_0x1a5221(0x4a7)],_0x21491f['subUnitId'],_0x21491f['drawingId']);if(_0x52c67d&&_0x1326e8(_0x52c67d[_0x1a5221(0x383)]())){this[_0x1a5221(0x169)]=_0x21491f[_0x1a5221(0x447)],this[_0x1a5221(0x2a1)]=_0x21491f[_0x1a5221(0x4a7)],this['_subUnitId']=_0x21491f[_0x1a5221(0x5ca)],this[_0x1a5221(0x33a)](),this[_0x1a5221(0x2a3)]();return;}}}this[_0x1a5221(0x169)]=void 0x0,this['_unitId']=void 0x0,this[_0x1a5221(0x3c8)]=void 0x0,this[_0x1a5221(0x33a)]();})),this['disposeWithMe'](this[_0x5163f7(0x327)][_0x5163f7(0x441)]['subscribe'](_0x1d4a4e=>{const _0x500850=_0x5163f7;if(_0x1d4a4e[_0x500850(0x1a1)]===0x1){var _0x1acc18;let _0x4a1af8=_0x1d4a4e[0x0],_0x11e954=(_0x1acc18=this[_0x500850(0x327)]['getDrawingByParam'](_0x4a1af8))==null?void 0x0:_0x1acc18[_0x500850(0x429)];_0x11e954===_0x2375be[_0x500850(0x217)]&&_0x4a1af8['drawingId']===this[_0x500850(0x169)]?(this['_clearShapeConnectorHandlerObjects'](),this[_0x500850(0x2a3)]()):!this['_activeShapeId']&&_0x11e954===_0x2375be['DRAWING_SHAPE']&&this[_0x500850(0x254)](_0x4a1af8[_0x500850(0x4a7)],_0x4a1af8[_0x500850(0x5ca)],_0x4a1af8[_0x500850(0x447)]);}})),this['disposeWithMe'](this[_0x5163f7(0x327)][_0x5163f7(0x5e1)][_0x5163f7(0x464)](_0xc2d6bd=>{const _0x4ba5a5=_0x5163f7;for(let _0x2d304e of _0xc2d6bd){let {drawingId:_0x4e5ad3}=_0x2d304e;if(this['_activeShapeId']===_0x4e5ad3){this[_0x4ba5a5(0x214)]();return;}}}));}[_0x304ba4(0x29b)](_0x5486ee,_0x2214e9,_0x5a2866,_0x501b3c,_0x2d584a){const _0x18b455=_0x304ba4;var _0x4623ee,_0x3f8f1f;if(!this[_0x18b455(0x31e)])return;let _0x2c8c1b=this[_0x18b455(0x5ab)](_0x5486ee);if(!_0x2c8c1b)return;let _0x366f5f=this[_0x18b455(0x27e)]?this[_0x18b455(0x27e)][_0x18b455(0x326)]:_0x2214e9,_0x57899e=this['_currentConnectionTarget']?this[_0x18b455(0x27e)][_0x18b455(0x517)]:this[_0x18b455(0x372)](_0x2c8c1b['point'],_0x366f5f),_0xac88d4;if(this['_currentConnectionTarget']){let _0x20e108=this[_0x18b455(0x327)][_0x18b455(0x237)]({'unitId':this[_0x18b455(0x27e)][_0x18b455(0x4a7)],'subUnitId':this[_0x18b455(0x27e)][_0x18b455(0x5ca)],'drawingId':this[_0x18b455(0x27e)][_0x18b455(0x27b)]});if(_0x20e108!=null&&_0x20e108['transform']){let {left:_0x50a4fa=0x0,top:_0x70b8fb=0x0,width:_0x48a4b2=0x0,height:_0x2f82a5=0x0,angle:_0x4868a3}=_0x20e108[_0x18b455(0x42c)];_0xac88d4=_0x10ef50({'left':_0x50a4fa,'top':_0x70b8fb,'width':_0x48a4b2,'height':_0x2f82a5},_0x4868a3||0x0);}else _0xac88d4={'left':_0x366f5f['x'],'top':_0x366f5f['y'],'width':0x0,'height':0x0};}else _0xac88d4={'left':_0x366f5f['x'],'top':_0x366f5f['y'],'width':0x0,'height':0x0};let _0x498737={'point':_0x366f5f,'angle':_0x57899e,'bounds':_0xac88d4},_0x5a0136=_0x5a2866?_0x498737:_0x2c8c1b,_0x4c3c76=_0x5a2866?_0x2c8c1b:_0x498737,_0x173d18=this[_0x18b455(0x31e)][_0x18b455(0x383)](),_0x514534=_0x3dbb25(_0x5a0136,_0x4c3c76,_0x173d18);_0x514534&&this['_activeShapeModel'][_0x18b455(0x402)](_0x514534);let _0x669ba2=_0xf624ed(_0x514534,_0x173d18);_0x669ba2[_0x18b455(0x568)]!==_0x173d18&&this[_0x18b455(0x31e)][_0x18b455(0x3a8)](_0x669ba2[_0x18b455(0x568)]);for(let [_0x54d07e,_0x4b60ad]of Object['entries'](_0x669ba2[_0x18b455(0x592)]))this['_activeShapeModel'][_0x18b455(0x3b0)](_0x54d07e,_0x4b60ad);this[_0x18b455(0x31e)][_0x18b455(0x5d1)]({'width':_0x669ba2[_0x18b455(0x5f3)][_0x18b455(0x34d)],'height':_0x669ba2[_0x18b455(0x5f3)][_0x18b455(0x595)]}),_0x501b3c[_0x18b455(0x277)]({'flipX':_0x669ba2[_0x18b455(0x5f3)][_0x18b455(0x3a3)],'flipY':_0x669ba2[_0x18b455(0x5f3)]['flipY'],'left':_0x669ba2[_0x18b455(0x5f3)][_0x18b455(0x38e)],'top':_0x669ba2[_0x18b455(0x5f3)][_0x18b455(0x32e)],'width':_0x669ba2[_0x18b455(0x5f3)]['width'],'height':_0x669ba2[_0x18b455(0x5f3)]['height'],'angle':_0x669ba2[_0x18b455(0x575)]}),_0x501b3c['makeDirty'](!0x0);let _0x161e10=(_0x4623ee=(_0x3f8f1f=this[_0x18b455(0x27e)])==null?void 0x0:_0x3f8f1f['worldPoint'])==null?_0x2214e9:_0x4623ee;_0x2d584a[_0x18b455(0x277)]({'left':_0x161e10['x']-_0x9cc8fa[_0x18b455(0x54e)],'top':_0x161e10['y']-_0x9cc8fa[_0x18b455(0x54e)]});}[_0x304ba4(0x171)](_0xe9e4ae,_0x51f9e9,_0x26ed9e,_0x435ee6,_0x2e0c8b){const _0x270a23=_0x304ba4;var _0x3813b5,_0x123e1f,_0x43ef33,_0xb346a2;let _0x4cf212=(_0x3813b5=(_0x123e1f=this[_0x270a23(0x27e)])==null?void 0x0:_0x123e1f['worldPoint'])==null?_0xe9e4ae:_0x3813b5,_0x3db31f=_0x12ec86['computeConnectorResizeLayout'](_0x51f9e9,_0x4cf212,_0x26ed9e);_0x435ee6['transformByState']({'flipX':_0x3db31f[_0x270a23(0x5f3)]['flipX'],'flipY':_0x3db31f[_0x270a23(0x5f3)][_0x270a23(0x3d9)],'left':_0x3db31f[_0x270a23(0x5f3)][_0x270a23(0x38e)],'top':_0x3db31f[_0x270a23(0x5f3)][_0x270a23(0x32e)],'width':_0x3db31f[_0x270a23(0x5f3)][_0x270a23(0x34d)],'height':_0x3db31f[_0x270a23(0x5f3)][_0x270a23(0x595)],'angle':_0x3db31f[_0x270a23(0x5f3)][_0x270a23(0x517)]});let _0x445095=(_0x43ef33=(_0xb346a2=this[_0x270a23(0x27e)])==null?void 0x0:_0xb346a2[_0x270a23(0x326)])==null?_0xe9e4ae:_0x43ef33;_0x2e0c8b[_0x270a23(0x277)]({'left':_0x445095['x']-_0x9cc8fa[_0x270a23(0x54e)],'top':_0x445095['y']-_0x9cc8fa['cxnPointRadius']});}[_0x304ba4(0x5ab)](_0x583dd0){const _0x1e7b7f=_0x304ba4;if(!this[_0x1e7b7f(0x2a1)]||!this[_0x1e7b7f(0x3c8)])return null;let {shapeId:_0x41932f,cxnIndex:_0x19fb15}=_0x583dd0,_0x473617=this[_0x1e7b7f(0x436)]['getShapeModel'](this[_0x1e7b7f(0x2a1)],this[_0x1e7b7f(0x3c8)],_0x41932f);if(!_0x473617)return null;let _0x13279c=this[_0x1e7b7f(0x327)]['getDrawingByParam']({'unitId':this[_0x1e7b7f(0x2a1)],'subUnitId':this[_0x1e7b7f(0x3c8)],'drawingId':_0x41932f});if(!(_0x13279c!=null&&_0x13279c['transform']))return null;let {left:_0x51af5e=0x0,top:_0x4e260f=0x0,width:_0x327eff=0x0,height:_0x57db12=0x0,flipX:_0x1c94c1=!0x1,flipY:_0x304ed1=!0x1,angle:_0x563502}=_0x13279c[_0x1e7b7f(0x42c)];_0x473617[_0x1e7b7f(0x5d1)]({'width':_0x327eff,'height':_0x57db12});let _0x2cd7ce=_0x473617[_0x1e7b7f(0x557)]()[_0x1e7b7f(0x191)](_0x1be5ab=>_0x1be5ab[_0x1e7b7f(0x312)]===_0x19fb15);if(!_0x2cd7ce)return null;let _0x58949d=_0x1c94c1?_0x327eff-_0x2cd7ce['x']:_0x2cd7ce['x'],_0x2392b4=_0x304ed1?_0x57db12-_0x2cd7ce['y']:_0x2cd7ce['y'];if(_0x563502!==0x0&&_0x563502!=null){let _0x3de7a9=_0x563502*Math['PI']/0xb4,_0x338d0f=Math['cos'](_0x3de7a9),_0x5efb15=Math[_0x1e7b7f(0x532)](_0x3de7a9),_0x13bf4e=_0x327eff/0x2,_0x364c28=_0x57db12/0x2,_0xbbf541=_0x58949d-_0x13bf4e,_0x577aac=_0x2392b4-_0x364c28;_0x58949d=_0x13bf4e+_0xbbf541*_0x338d0f-_0x577aac*_0x5efb15,_0x2392b4=_0x364c28+_0xbbf541*_0x5efb15+_0x577aac*_0x338d0f;}_0x58949d+=_0x51af5e,_0x2392b4+=_0x4e260f;let _0x2f98e9=_0x2cd7ce['ang']/0xea60;_0x1c94c1&&(_0x2f98e9=0xb4-_0x2f98e9),_0x304ed1&&(_0x2f98e9=-_0x2f98e9),_0x2f98e9+=_0x563502||0x0,_0x2f98e9=(_0x2f98e9%0x168+0x168)%0x168;let _0x1e394b=_0x10ef50({'left':_0x51af5e,'top':_0x4e260f,'width':_0x327eff,'height':_0x57db12},_0x563502||0x0);return{'point':{'x':_0x58949d,'y':_0x2392b4},'angle':_0x2f98e9,'bounds':_0x1e394b};}[_0x304ba4(0x372)](_0x1ec56a,_0x4b39db){const _0x121db3=_0x304ba4;let _0x1a5ec6=_0x4b39db['x']-_0x1ec56a['x'],_0x1a3bd5=_0x4b39db['y']-_0x1ec56a['y'];return Math['abs'](_0x1a5ec6)>=Math[_0x121db3(0x199)](_0x1a3bd5)?_0x1a5ec6>=0x0?0xb4:0x0:_0x1a3bd5>=0x0?0x10e:0x5a;}[_0x304ba4(0x214)](){const _0x5aaf1b=_0x304ba4;this[_0x5aaf1b(0x169)]=void 0x0,this[_0x5aaf1b(0x2a1)]=void 0x0,this[_0x5aaf1b(0x3c8)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x304ba4(0x374)](){const _0x22c078=_0x304ba4;this[_0x22c078(0x33a)](),super[_0x22c078(0x374)]();}};Wo=$([Q(0x1,_0xc97706),Q(0x2,_0x1dfd06),Q(0x3,_0x5873e9),Q(0x4,_0x10d47e),Q(0x5,_0x28dee4(_0x3538a1)),Q(0x6,_0x28dee4(mo)),Q(0x7,_0x28dee4(Vo))],Wo);let Go=class extends _0x1a987c{constructor(_0xacc1d0,_0x49a12b,_0x4e4dab){const _0x3c28af=_0x304ba4;super(),this[_0x3c28af(0x288)]=_0xacc1d0,this[_0x3c28af(0x49d)]=_0x49a12b,this[_0x3c28af(0x3e5)]=_0x4e4dab,this[_0x3c28af(0x221)]();}[_0x304ba4(0x221)](){const _0x5efd59=_0x304ba4;this[_0x5efd59(0x1e2)](this['_commandService'][_0x5efd59(0x422)](_0x25595a=>{const _0x3fe323=_0x5efd59;let _0x9965d2,_0x15373f;if(_0x25595a['id']===_0x3a2e35['id']||_0x25595a['id']===_0x54dd4a['id']||_0x25595a['id']===_0x190139['id']){let _0x15e35f=_0x25595a[_0x3fe323(0x349)];_0x9965d2=_0x15e35f[_0x3fe323(0x4a7)],_0x15373f=_0x15e35f['subUnitId'];}!_0x9965d2||!_0x15373f||this[_0x3fe323(0x3e5)][_0x3fe323(0x157)]({'workbookTypes':[_0x3ad3d7],'worksheetTypes':[_0x3420d2]},_0x9965d2,_0x15373f)||this['_sheetPermissionCheckController'][_0x3fe323(0x342)](this[_0x3fe323(0x49d)]['t'](_0x3fe323(0x5e6)));}));}};Go=$([Q(0x0,_0x28dee4(_0xc97706)),Q(0x1,_0x28dee4(_0x164f0a)),Q(0x2,_0x28dee4(_0x49900c))],Go);const Ko=function(_0x3667c9){const _0x5364b5=_0x304ba4;let {containerWidth:_0x19a7b4,containerHeight:_0x1f99fb,scaleX:_0x2f10a8,scaleY:_0x12a49a}=_0x3667c9,_0x528c4f=_0x2f10a8||0x1,_0x3a4b9d=_0x12a49a||0x1,_0x418189=_0x146012(X),_0x49454e=_0x146012(_0x10dd78),_0x304fab=_0x146012(_0x1dfd06),_0x42bac3=_0x146012(_0x10d47e),_0x1d6cf0=_0x146012(_0x5873e9),_0x286cdf=_0x146012(_0x3538a1),_0x5ea221=_0x146012(_0xc97706),_0x29da58=_0x21a84d(_0x418189[_0x5364b5(0x407)]),_0x319dce=_0x21a84d(_0x418189[_0x5364b5(0x4c0)]),_0xa56e23=_0x1569d1(null),_0x4a6a03=_0x1569d1(null),_0xe161e7=_0x1569d1(null),_0x3f66b1=_0x1569d1(null),_0x4fc3ce=_0x1569d1(null),_0x54ed0b=_0x1569d1(null),[_0x233302,_0x11b6d1]=_0x50ccba({'editorHeight':_0x1f99fb,'marginTop':0x0,'useAbsolutePosition':!0x1}),_0x3a8ae1=_0x986b68(_0x1a7070=>{queueMicrotask(()=>{_0x11b6d1(_0x1a7070);});},[]),_0x45e660=_0x986b68(()=>_0x42bac3[_0x5364b5(0x1c9)](Za,_0x2fb0a4[_0x5364b5(0x4d4)]),[_0x42bac3]),_0x58de84=_0x986b68(()=>{const _0x14d12f=_0x5364b5;var _0x4a6cc3;let _0x6feb56=_0x528c4f,_0x3d9f9e=_0x3a4b9d;if(!_0x29da58)return{'scaleAdjust':0x1,'renderScaleX':_0x6feb56,'renderScaleY':_0x3d9f9e};let _0x1c0e29=_0x304fab[_0x14d12f(0x1c2)](_0x29da58[_0x14d12f(0x4a7)]),_0x467e93=_0x1c0e29==null?void 0x0:_0x1c0e29['scene'][_0x14d12f(0x358)](),_0x24ca0e=_0x1c0e29==null?void 0x0:_0x1c0e29[_0x14d12f(0x4af)][_0x14d12f(0x4da)](),_0x372e04=_0x24ca0e?Number['parseFloat'](_0x24ca0e[_0x14d12f(0x500)][_0x14d12f(0x34d)]||''):0x0,_0x332b98=(_0x4a6cc3=_0x24ca0e==null?void 0x0:_0x24ca0e[_0x14d12f(0x15c)]()['width'])==null?0x0:_0x4a6cc3,_0x1b0456=_0x372e04>0x0&&_0x332b98>0x0?_0x332b98/_0x372e04:0x1;return{'scaleAdjust':Number[_0x14d12f(0x3d7)](_0x1b0456)&&_0x1b0456>0x0?_0x1b0456:0x1,'renderScaleX':(_0x467e93==null?void 0x0:_0x467e93[_0x14d12f(0x3c6)])||_0x6feb56,'renderScaleY':(_0x467e93==null?void 0x0:_0x467e93[_0x14d12f(0x40f)])||_0x3d9f9e};},[_0x528c4f,_0x3a4b9d,_0x29da58,_0x304fab]),_0x31f42e=_0x986b68(()=>{const _0x5898a8=_0x5364b5;if(!_0x29da58)return{'left':0x0,'top':0x0,'width':_0x19a7b4/_0x528c4f,'height':_0x1f99fb/_0x3a4b9d};let {unitId:_0x304a87,subUnitId:_0x554739,shapeId:_0x562df6}=_0x29da58,_0x3e789f=_0x286cdf[_0x5898a8(0x264)](_0x304a87,_0x554739,_0x562df6);if(!_0x3e789f)return{'left':0x0,'top':0x0,'width':_0x19a7b4/_0x528c4f,'height':_0x1f99fb/_0x3a4b9d};let _0x110c82={'left':0x0,'top':0x0,'width':_0x19a7b4/_0x528c4f,'height':_0x1f99fb/_0x3a4b9d};return _0x3e789f[_0x5898a8(0x156)](_0x110c82);},[_0x29da58,_0x19a7b4,_0x1f99fb,_0x528c4f,_0x3a4b9d,_0x286cdf]),_0xad42ce=_0x986b68(()=>{const _0x5752b5=_0x5364b5;if(!_0x29da58)return null;let {unitId:_0x5d0d94,subUnitId:_0x270b26,shapeId:_0x454b9b}=_0x29da58,_0xb763c6=_0x286cdf[_0x5752b5(0x264)](_0x5d0d94,_0x270b26,_0x454b9b);if(!_0xb763c6)return null;let _0x141af0=_0xb763c6[_0x5752b5(0x209)]();if(!_0x141af0)return null;let _0x5e75ae={'unitId':_0x5d0d94,'subUnitId':_0x270b26,'drawingId':_0x454b9b},_0x129eb4=_0x1d6cf0[_0x5752b5(0x237)](_0x5e75ae),_0x4e2685={'angle':0x0,'flipX':!0x1,'flipY':!0x1};_0x129eb4&&_0x129eb4[_0x5752b5(0x42c)]&&(_0x4e2685=_0x129eb4['transform']);let _0x4a5059={'left':0x0,'top':0x0,'width':_0x19a7b4/_0x528c4f,'height':_0x1f99fb/_0x3a4b9d},_0x1f6ea0=_0xb763c6[_0x5752b5(0x156)](_0x4a5059),_0x4f4f3f,_0x21d094=_0x196cf7[_0x5752b5(0x3c4)],_0x2218f1=_0x1909c6[_0x5752b5(0x583)];if(_0x5752b5(0x462)in _0x141af0&&_0x141af0[_0x5752b5(0x462)]){var _0x3578e2,_0x1ede5f;let _0x23f08a=_0x141af0[_0x5752b5(0x462)];_0x23f08a!=null&&_0x23f08a[_0x5752b5(0x598)]&&(_0x4f4f3f=_0x23f08a[_0x5752b5(0x598)]),_0x21d094=(_0x3578e2=_0x23f08a==null?void 0x0:_0x23f08a['va'])==null?_0x196cf7[_0x5752b5(0x3c4)]:_0x3578e2,_0x2218f1=(_0x1ede5f=_0x23f08a==null?void 0x0:_0x23f08a['ha'])==null?_0x1909c6[_0x5752b5(0x583)]:_0x1ede5f;}return{'doc':_0x4f4f3f,'verticalAlign':_0x21d094,'horizontalAlign':_0x2218f1,'textRect':_0x1f6ea0,'transform':_0x4e2685,'isHorizontal':_0x141af0[_0x5752b5(0x2e5)]};},[_0x29da58,_0x286cdf,_0x1d6cf0,_0x19a7b4,_0x1f99fb,_0x528c4f,_0x3a4b9d]),_0x4ad926=_0x5040ff(()=>{const _0xa56331=_0x5364b5;let _0x3aad37=_0xad42ce();return _0x3aad37!=null&&_0x3aad37['doc']?$a(_0x3aad37['doc'],{'isHorizontal':!0x0,'textRect':_0x3aad37[_0xa56331(0x1bd)],'verticalAlign':_0x3aad37[_0xa56331(0x428)],'horizontalAlign':_0x3aad37['horizontalAlign']}):{'id':Za,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x19a7b4/_0x528c4f,'height':0x1/0x0}}};},[_0xad42ce,_0x19a7b4,_0x528c4f]),_0x294641=_0x2dfc38({'editorId':Za,'initialValue':_0x4ad926,'container':_0x4a6a03,'autoFocus':!0x1,'isSingle':!0x1}),_0x544ea9=_0x5655a0(Za);_0x47b23f(_0x544ea9,{'keyCodes':[{'keyCode':_0x14a921[_0x5364b5(0x53c)]}],'handler':()=>{const _0xdc9bb2=_0x5364b5;_0x5ea221[_0xdc9bb2(0x2f1)](_0xda22ed['id']);}},_0x294641),_0x28b092(_0x544ea9,!0x1,_0x294641);let _0x11147a=_0x986b68((_0x37f4e5=!0x0)=>{const _0x154647=_0x5364b5;var _0x43f49b,_0x887c1e,_0x49e9c6;if(!_0x294641)return;let _0x355417=_0x294641[_0x154647(0x4b6)]()[_0x154647(0x191)](_0x106c18=>_0x106c18[_0x154647(0x314)]),_0x323bcf=((_0x43f49b=(_0x887c1e=_0x294641[_0x154647(0x539)]()[_0x154647(0x386)])==null?void 0x0:_0x887c1e[_0x154647(0x28b)]['length'])==null?0x2:_0x43f49b)-0x2,_0xe069d6=(_0x49e9c6=_0x355417==null?void 0x0:_0x355417[_0x154647(0x577)])==null?_0x37f4e5?_0x323bcf:null:_0x49e9c6;_0xe069d6!==null&&_0x294641[_0x154647(0x175)]([{'startOffset':_0xe069d6,'endOffset':_0xe069d6}],!0x1);},[_0x294641]),_0xdd432f=_0x986b68(()=>{const _0x2267b8=_0x5364b5;_0x4fc3ce[_0x2267b8(0x1ee)]!==null&&(cancelAnimationFrame(_0x4fc3ce[_0x2267b8(0x1ee)]),_0x4fc3ce[_0x2267b8(0x1ee)]=null),_0x54ed0b[_0x2267b8(0x1ee)]!==null&&(window['clearTimeout'](_0x54ed0b[_0x2267b8(0x1ee)]),_0x54ed0b[_0x2267b8(0x1ee)]=null);},[]),_0x3355a0=_0x986b68(()=>{const _0xede064=_0x5364b5;var _0x3f9c32,_0x32a6ff,_0x52dacd;if(!_0x294641)return;let _0x1f6011=_0x304fab['getRenderById'](Za),_0x3c5970=_0x1f6011==null?void 0x0:_0x1f6011[_0xede064(0x465)](_0x1a420d);if(!_0x3c5970)return;let _0x2b8d3a=_0x3c5970[_0xede064(0x3c5)](),_0x26ccc6=_0x45e660(),{renderScaleX:_0x2e0e44,renderScaleY:_0x372ba1,scaleAdjust:_0x4cef85}=_0x58de84(),_0x1306b8=_0xad42ce(),_0x497745=(_0x3f9c32=_0x1306b8==null?void 0x0:_0x1306b8[_0xede064(0x428)])==null?_0x196cf7[_0xede064(0x3c4)]:_0x3f9c32,_0x54f48b=(_0x32a6ff=_0x1306b8==null?void 0x0:_0x1306b8[_0xede064(0x355)])==null?_0x1909c6[_0xede064(0x583)]:_0x32a6ff,_0x4b77b8=(_0x52dacd=_0x31f42e())==null?{'left':0x0,'top':0x0,'width':_0x19a7b4/_0x528c4f,'height':_0x1f99fb/_0x3a4b9d}:_0x52dacd;_0x26ccc6&&(_0x26ccc6['setZoomRatio'](Math[_0xede064(0x444)](_0x2e0e44,_0x372ba1)),_0x26ccc6[_0xede064(0x2af)]({'pageSize':{'width':_0x4b77b8['width'],'height':0x1/0x0}}),_0x26ccc6[_0xede064(0x1b7)]({'verticalAlign':_0x497745,'horizontalAlign':_0x54f48b,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_0x14a694['WRAP']})),_0x2b8d3a[_0xede064(0x27c)]();let {actualHeight:_0x41fcee}=_0x2b8d3a[_0xede064(0x143)](),_0x2a6a5e=_0x4b77b8[_0xede064(0x595)],_0x4b399f=_0x2a6a5e,_0x301607=0x0;if(_0x41fcee<=_0x2a6a5e)_0x497745===_0x196cf7[_0xede064(0x32c)]?_0x301607=(_0x2a6a5e-_0x41fcee)/0x2:_0x497745===_0x196cf7[_0xede064(0x190)]&&(_0x301607=_0x2a6a5e-_0x41fcee),_0x4b399f=_0x2a6a5e,_0x3a8ae1({'editorHeight':_0x4b77b8[_0xede064(0x595)]*_0x3a4b9d,'marginTop':0x0,'useAbsolutePosition':!0x1});else{let _0xf77ca6=0x0;_0x497745===_0x196cf7[_0xede064(0x32c)]?_0xf77ca6=(_0x2a6a5e-_0x41fcee)/0x2:_0x497745===_0x196cf7[_0xede064(0x190)]&&(_0xf77ca6=_0x2a6a5e-_0x41fcee),_0x301607=0x0,_0x3a8ae1({'editorHeight':_0x41fcee*_0x3a4b9d,'marginTop':_0xf77ca6*_0x3a4b9d,'useAbsolutePosition':!0x0}),_0x4b399f=_0x41fcee;}if(_0x26ccc6&&(_0x26ccc6[_0xede064(0x2af)]({'pageSize':{'width':_0x4b77b8[_0xede064(0x34d)],'height':_0x4b399f}}),_0x26ccc6[_0xede064(0x3d2)]({'t':_0x301607}),_0x2b8d3a[_0xede064(0x27c)]()),_0x1f6011){let _0x2eb5c0=_0x4b77b8[_0xede064(0x34d)]*_0x528c4f,_0x34c853=_0x4b399f*_0x3a4b9d;_0x1f6011[_0xede064(0x490)][_0xede064(0x277)]({'width':_0x2eb5c0*_0x4cef85/_0x2e0e44,'height':_0x34c853*_0x4cef85/_0x372ba1,'scaleX':_0x2e0e44*_0x4cef85,'scaleY':_0x372ba1*_0x4cef85}),_0x1f6011[_0xede064(0x50e)]&&_0x1f6011['mainComponent'][_0xede064(0x504)](_0x2eb5c0*_0x4cef85/_0x2e0e44,_0x34c853*_0x4cef85/_0x372ba1);}},[_0x294641,_0x304fab,_0x45e660,_0x58de84,_0xad42ce,_0x31f42e,_0x19a7b4,_0x1f99fb,_0x528c4f,_0x3a4b9d,_0x3a8ae1]),_0x40200c=_0x986b68((_0x422bca=!0x1)=>{const _0x27d5de=_0x5364b5;_0xdd432f(),_0x4fc3ce[_0x27d5de(0x1ee)]=requestAnimationFrame(()=>{const _0x4c9045=_0x27d5de;_0x3355a0(),_0x422bca&&_0x11147a(!0x1),_0x4fc3ce[_0x4c9045(0x1ee)]=null,_0x54ed0b[_0x4c9045(0x1ee)]=window[_0x4c9045(0x16f)](()=>{_0x3355a0(),_0x422bca&&_0x11147a(!0x1),_0x54ed0b['current']=null;},0x14);});},[_0x3355a0,_0xdd432f,_0x11147a]);_0x344669(()=>{const _0x399712=_0x5364b5;if(!_0x294641||!_0x29da58)return;let {shapeId:_0x22ae0e,unitId:_0x68d8db,subUnitId:_0x429ded}=_0x29da58;if(_0x319dce){var _0x14b553,_0x3721e6,_0x12209b,_0x132b87;let _0x476707=eo(_0x294641[_0x399712(0x539)]()),_0x2a0938=_0xad42ce(),_0x383501={'va':(_0x14b553=_0x2a0938==null?void 0x0:_0x2a0938[_0x399712(0x428)])==null?_0x196cf7['TOP']:_0x14b553,'ha':(_0x3721e6=_0x2a0938==null?void 0x0:_0x2a0938[_0x399712(0x355)])==null?_0x1909c6[_0x399712(0x583)]:_0x3721e6,'doc':_0x476707};_0x5ea221[_0x399712(0x2f1)](Va['id'],{'unitId':_0x68d8db,'subUnitId':_0x429ded,'shapeId':_0x22ae0e,'shapeData':{'shapeText':{'isHorizontal':(_0x12209b=_0x2a0938==null?void 0x0:_0x2a0938[_0x399712(0x2e5)])==null?!0x0:_0x12209b,'dataModel':_0x383501}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x132b87=_0x2a0938==null?void 0x0:_0x2a0938['isHorizontal'])==null?!0x0:_0x132b87,'dataModel':_0xe161e7[_0x399712(0x1ee)]}}}});return;}let _0x950699=_0xad42ce();if(_0x950699!=null&&_0x950699[_0x399712(0x598)]){_0xe161e7[_0x399712(0x1ee)]={'va':_0x950699[_0x399712(0x428)],'ha':_0x950699['horizontalAlign'],'doc':_0x22dbf6['deepClone'](_0x950699[_0x399712(0x598)])};let _0x5181c3=$a(_0x950699[_0x399712(0x598)],{'isHorizontal':!0x0,'textRect':_0x950699[_0x399712(0x1bd)],'verticalAlign':_0x950699[_0x399712(0x428)],'horizontalAlign':_0x950699[_0x399712(0x355)]});return _0x294641[_0x399712(0x332)](_0x5181c3,null),()=>{const _0x495e63=_0x399712;var _0x466df1,_0x245f6e,_0x194176,_0x4e315b;let _0x16dbdf=eo(_0x294641[_0x495e63(0x539)]()),_0x452c1b=_0xad42ce(),_0x397a7b={'va':(_0x466df1=_0x452c1b==null?void 0x0:_0x452c1b[_0x495e63(0x428)])==null?_0x196cf7[_0x495e63(0x3c4)]:_0x466df1,'ha':(_0x245f6e=_0x452c1b==null?void 0x0:_0x452c1b[_0x495e63(0x355)])==null?_0x1909c6[_0x495e63(0x583)]:_0x245f6e,'doc':_0x16dbdf};_0x5ea221['executeCommand'](Va['id'],{'unitId':_0x68d8db,'subUnitId':_0x429ded,'shapeId':_0x22ae0e,'shapeData':{'shapeText':{'isHorizontal':(_0x194176=_0x452c1b==null?void 0x0:_0x452c1b[_0x495e63(0x2e5)])==null?!0x0:_0x194176,'dataModel':_0x397a7b}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x4e315b=_0x452c1b==null?void 0x0:_0x452c1b['isHorizontal'])==null?!0x0:_0x4e315b,'dataModel':_0xe161e7[_0x495e63(0x1ee)]}}}});};}else _0x294641[_0x399712(0x332)](_0x4ad926,null);},[_0x294641,_0x29da58,_0x319dce]),_0x344669(()=>{const _0x4be962=_0x5364b5;if(!(!_0x294641||!_0x29da58))return _0x49454e[_0x4be962(0x39d)](!0x0),_0x3355a0(),_0x3f66b1[_0x4be962(0x1ee)]=requestAnimationFrame(()=>{const _0x20f0c9=_0x4be962;_0x49454e[_0x20f0c9(0x34f)](Za),_0x11147a(),_0x40200c(),_0x3f66b1[_0x20f0c9(0x1ee)]=null;}),()=>{const _0x2f3885=_0x4be962;_0x3f66b1[_0x2f3885(0x1ee)]!==null&&(cancelAnimationFrame(_0x3f66b1['current']),_0x3f66b1[_0x2f3885(0x1ee)]=null),_0xdd432f(),_0x49454e['blur'](!0x0);};},[_0x294641,_0x29da58,_0x49454e,_0x3355a0,_0x11147a,_0x40200c,_0xdd432f]),_0x344669(()=>{if(!_0x294641)return;let _0x5b5150=_0x5ea221['onCommandExecuted'](_0x5e8f32=>{const _0x3ba127=_0x20cb;_0x5e8f32['id']===_0x578b2d['id']&&_0x5e8f32['params']['unitId']===Za&&_0x29da58&&(_0x29da58[_0x3ba127(0x23f)]?_0x3355a0():_0x418189[_0x3ba127(0x453)]({..._0x29da58,'visible':!0x0})),_0x5e8f32['id']===Ka['id']&&_0x40200c(!0x0);});return()=>{const _0xc330d7=_0x20cb;_0x5b5150[_0xc330d7(0x374)]();};},[_0x294641,_0x3355a0,_0x29da58,_0x40200c,_0x418189]),_0x344669(()=>(_0x3355a0(),_0x40200c(),()=>{_0xdd432f();}),[_0x3355a0,_0x40200c,_0xdd432f]);let _0x270cfc=_0x5040ff(()=>{const _0x13713f=_0x5364b5;var _0x1d6764;let _0x349459=(_0x1d6764=_0x31f42e())==null?{'left':0x0,'top':0x0,'width':_0x19a7b4/_0x528c4f,'height':_0x1f99fb/_0x3a4b9d}:_0x1d6764,_0x5c450d=_0x349459[_0x13713f(0x38e)]*_0x528c4f,_0x270933=_0x349459[_0x13713f(0x32e)]*_0x3a4b9d,_0x5b565f=_0x349459['width']*_0x528c4f;return _0x233302[_0x13713f(0x45e)]?{'top':_0x270933+_0x233302[_0x13713f(0x207)],'left':_0x5c450d,'width':_0x5b565f,'height':_0x233302[_0x13713f(0x245)]}:{'top':_0x270933,'left':_0x5c450d,'width':_0x5b565f,'height':_0x233302[_0x13713f(0x245)]};},[_0x233302,_0x31f42e,_0x19a7b4,_0x1f99fb,_0x528c4f,_0x3a4b9d]),_0x1c92ff=_0x5040ff(()=>{const _0x18007e=_0x5364b5;let _0x34be34=_0xad42ce(),_0x282316=_0x34be34==null?void 0x0:_0x34be34[_0x18007e(0x42c)];return _0x282316&&_0x282316||{'angle':0x0,'flipX':!0x1,'flipY':!0x1};},[_0xad42ce]);return _0x21e6bb('div',{'ref':_0xa56e23,'data-u-comp':_0x5364b5(0x431),'className':_0x5364b5(0x458),'style':{'transform':_0x5364b5(0x475)+_0x1c92ff[_0x5364b5(0x517)]+_0x5364b5(0x1da)+(_0x1c92ff[_0x5364b5(0x3d9)]?-0x1:0x1)+')'},'children':_0x21e6bb(_0x5364b5(0x360),{'ref':_0x4a6a03,'className':_0x5364b5(0x5aa),'data-u-comp':_0x5364b5(0x44f),'style':_0x270cfc,'data-editorid':Za})});};Ko['displayName']=_0x304ba4(0x2c9);const qo={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function Jo(_0x3a45b2,_0x3d4b4,_0x1a45df,_0x149a06){const _0x406228=_0x304ba4;let {scaleX:_0x108b48,scaleY:_0x779d9}=_0x1a45df[_0x406228(0x358)](),{startColumn:_0x243da4,startRow:_0x2a77fa,xSplit:_0x2c22bd,ySplit:_0x4cd3d2}=_0x149a06['worksheet'][_0x406228(0x49b)](),_0xd13fbd=_0x1a45df[_0x406228(0x1dd)](_0x58f155['VIEW_MAIN']),_0x5d9e65=_0x1a45df[_0x406228(0x1dd)](_0x58f155[_0x406228(0x50b)]),_0x4c7999=_0x1a45df[_0x406228(0x1dd)](_0x58f155[_0x406228(0x473)]),_0x404936=_0x1a45df[_0x406228(0x1dd)](_0x58f155[_0x406228(0x4ae)]),{rowHeaderWidth:_0x4d9025,columnHeaderHeight:_0x3ab87b}=_0x149a06,_0x5dce98=_0x149a06[_0x406228(0x3cc)](_0x2a77fa)+_0x3ab87b,_0x538130=_0x149a06[_0x406228(0x3a5)](_0x243da4)+_0x4d9025,_0x46c363=_0x149a06[_0x406228(0x3cc)](_0x2a77fa-_0x4cd3d2)+_0x3ab87b,_0x5885ef=_0x149a06[_0x406228(0x3a5)](_0x243da4-_0x2c22bd)+_0x4d9025,_0x5eb271=[],_0x5c5bbc=(_0x3c8aaa,_0x3c0c86,_0x832fe8)=>{if(!_0x3c8aaa)return null;let {viewportScrollX:_0x315288,viewportScrollY:_0x2b6b70}=_0x3c8aaa,_0x49035f,_0x35ca89;return _0x49035f=_0x3c0c86?(_0x3a45b2-(_0x5885ef-_0x4d9025))*_0x108b48:(_0x3a45b2-_0x315288)*_0x108b48,_0x35ca89=_0x832fe8?(_0x3d4b4-(_0x46c363-_0x3ab87b))*_0x779d9:(_0x3d4b4-_0x2b6b70)*_0x779d9,{'domX':_0x49035f,'domY':_0x35ca89};},_0x53f7c6=_0x3a45b2<_0x538130&&_0x2c22bd>0x0,_0x561725=_0x3d4b4<_0x5dce98&&_0x4cd3d2>0x0,_0x549fa8=_0x3a45b2>=_0x538130||_0x2c22bd===0x0,_0x103c09=_0x3d4b4>=_0x5dce98||_0x4cd3d2===0x0;if(_0x53f7c6&&_0x561725&&_0x5d9e65){let _0xbf965f=_0x5c5bbc(_0x5d9e65,!0x0,!0x0);_0xbf965f&&_0x5eb271['push'](_0xbf965f);}if(_0x561725&&_0x549fa8&&_0x4c7999){let _0x5418d0=_0x5c5bbc(_0x4c7999,!0x1,!0x0);_0x5418d0&&_0x5eb271[_0x406228(0x3d5)](_0x5418d0);}if(_0x53f7c6&&_0x103c09&&_0x404936){let _0x406f7f=_0x5c5bbc(_0x404936,!0x0,!0x1);_0x406f7f&&_0x5eb271[_0x406228(0x3d5)](_0x406f7f);}if(_0x549fa8&&_0x103c09&&_0xd13fbd){let _0x1b59c7=_0x5c5bbc(_0xd13fbd,!0x1,!0x1);_0x1b59c7&&_0x5eb271[_0x406228(0x3d5)](_0x1b59c7);}if(_0x5eb271[_0x406228(0x1a1)]===0x0){var _0x19e310,_0x15c475;return{'domX':(_0x3a45b2-((_0x19e310=_0xd13fbd==null?void 0x0:_0xd13fbd['viewportScrollX'])==null?0x0:_0x19e310))*_0x108b48,'domY':(_0x3d4b4-((_0x15c475=_0xd13fbd==null?void 0x0:_0xd13fbd[_0x406228(0x55c)])==null?0x0:_0x15c475))*_0x779d9};}let _0x343fab=_0x5eb271[0x0]['domX'],_0x568946=_0x5eb271[0x0]['domY'];for(let _0x99519c of _0x5eb271)_0x99519c[_0x406228(0x3fa)]>_0x343fab&&(_0x343fab=_0x99519c[_0x406228(0x3fa)]),_0x99519c[_0x406228(0x2f4)]>_0x568946&&(_0x568946=_0x99519c[_0x406228(0x2f4)]);return{'domX':_0x343fab,'domY':_0x568946};}function Yo(_0x1853c1,_0x3c6d61,_0x9a70d3,_0x55ca92,_0xbd910e,_0x56938f,_0x4fa52c){const _0xdda215=_0x304ba4;let {scaleX:_0x33ec62,scaleY:_0x11f70f}=_0x56938f[_0xdda215(0x358)](),{domX:_0x48d23b,domY:_0x52ed69}=Jo(_0x1853c1,_0x3c6d61,_0x56938f,_0x4fa52c);return{'left':_0x48d23b,'top':_0x52ed69,'width':_0x9a70d3*_0x33ec62,'height':_0x55ca92*_0x11f70f,'angle':_0xbd910e,'scaleX':_0x33ec62,'scaleY':_0x11f70f};}function Xo(_0x1a028c){const _0xfe4837=_0x304ba4;let {editingParams:_0x9007e1,scene:_0x1ea5dc,skeleton:_0x2458e3,getShapeTransform:_0x39021d}=_0x1a028c,[_0x5599f2,_0x1ef185]=_0x50ccba(qo),_0xd25da2=_0x1569d1(_0x5599f2);_0xd25da2[_0xfe4837(0x1ee)]=_0x5599f2;let _0x4fb510=_0x986b68(()=>{const _0x580733=_0xfe4837;if(!_0x9007e1||!_0x1ea5dc||!_0x2458e3){_0xd25da2['current']!==qo&&_0x1ef185(qo);return;}let _0x4b7c12=_0x39021d();if(!_0x4b7c12){_0xd25da2['current']!==qo&&_0x1ef185(qo);return;}let {left:_0x1b5040,top:_0x3fd09a,width:_0x2dd136,height:_0x21f1de,angle:_0xb97258}=_0x4b7c12;if(!_0x9007e1[_0x580733(0x23f)]){let {scaleX:_0x467629,scaleY:_0x43d77f}=_0x1ea5dc[_0x580733(0x358)]();_0x1ef185({'left':-0x270f,'top':-0x270f,'width':_0x2dd136*_0x467629,'height':_0x21f1de*_0x43d77f,'angle':0x0,'scaleX':_0x467629,'scaleY':_0x43d77f});return;}_0x1ef185(Yo(_0x1b5040,_0x3fd09a,_0x2dd136,_0x21f1de,_0xb97258,_0x1ea5dc,_0x2458e3));},[_0x9007e1,_0x1ea5dc,_0x2458e3,_0x39021d]);return _0x344669(()=>{_0x4fb510();},[_0x9007e1,_0x4fb510]),{'position':_0x5599f2,'updatePosition':_0x4fb510};}const Zo=_0x9cae4a(_0x57ce73=>{const _0x26b11c=_0x304ba4;let {children:_0xe96f63,onPositionUpdate:_0x5c103d}=_0x57ce73,_0x179bc5=_0x1569d1(null),_0x402f2f=_0x146012(X),_0x19cb61=_0x146012(_0x1dfd06),_0x3f4d6d=_0x21a84d(_0x402f2f[_0x26b11c(0x407)]),_0x3349b7=_0x5040ff(()=>_0x3f4d6d?_0x19cb61[_0x26b11c(0x1c2)](_0x3f4d6d[_0x26b11c(0x4a7)]):null,[_0x3f4d6d,_0x19cb61]),_0x1ec2b2=_0x5040ff(()=>{const _0x47cbd3=_0x26b11c;var _0x1dcbc0;return(_0x1dcbc0=_0x3349b7==null?void 0x0:_0x3349b7[_0x47cbd3(0x490)])==null?null:_0x1dcbc0;},[_0x3349b7]),{position:_0x4f69ff,updatePosition:_0x52a21c}=Xo({'editingParams':_0x3f4d6d,'scene':_0x1ec2b2,'skeleton':_0x5040ff(()=>{const _0x40b463=_0x26b11c;var _0x27a5a6,_0x2d14c4;return!_0x3f4d6d||!_0x3349b7||(_0x27a5a6=(_0x2d14c4=_0x3349b7['with'](_0x23f58f)[_0x40b463(0x289)](_0x3f4d6d[_0x40b463(0x5ca)]))==null?void 0x0:_0x2d14c4[_0x40b463(0x58c)])==null?null:_0x27a5a6;},[_0x3f4d6d,_0x3349b7]),'getShapeTransform':_0x986b68(()=>{const _0x55783c=_0x26b11c;if(!_0x3f4d6d||!_0x1ec2b2)return null;let _0x2a914e=_0x3f4d6d['shapeKey'],_0x4f2576=_0x1ec2b2[_0x55783c(0x2da)](_0x2a914e);return _0x4f2576 instanceof to?{'left':_0x4f2576['left'],'top':_0x4f2576[_0x55783c(0x32e)],'width':_0x4f2576[_0x55783c(0x34d)],'height':_0x4f2576[_0x55783c(0x595)],'angle':_0x4f2576['angle']}:null;},[_0x3f4d6d,_0x1ec2b2])}),_0xa0f4b9=_0x986b68(()=>{const _0x4f0ba0=_0x26b11c;let _0x1ef0a7=_0x179bc5[_0x4f0ba0(0x1ee)];_0x1ef0a7&&(_0x1ef0a7[_0x4f0ba0(0x500)][_0x4f0ba0(0x38e)]=_0x4f69ff[_0x4f0ba0(0x38e)]+'px',_0x1ef0a7[_0x4f0ba0(0x500)][_0x4f0ba0(0x32e)]=_0x4f69ff[_0x4f0ba0(0x32e)]+'px',_0x1ef0a7['style'][_0x4f0ba0(0x34d)]=_0x4f69ff[_0x4f0ba0(0x34d)]+'px',_0x1ef0a7[_0x4f0ba0(0x500)][_0x4f0ba0(0x595)]=_0x4f69ff[_0x4f0ba0(0x595)]+'px');},[_0x4f69ff]);return _0x344669(()=>{const _0x384f08=_0x26b11c;_0xa0f4b9(),_0x5c103d==null||_0x5c103d({'width':_0x4f69ff[_0x384f08(0x34d)],'height':_0x4f69ff[_0x384f08(0x595)],'scaleX':_0x4f69ff['scaleX'],'scaleY':_0x4f69ff[_0x384f08(0x40f)]});},[_0x4f69ff,_0xa0f4b9,_0x5c103d]),_0x344669(()=>{const _0x557f9d=_0x26b11c;if(!_0x1ec2b2)return;let _0x24e3eb=_0x1ec2b2['getViewport'](_0x58f155[_0x557f9d(0x3cf)]);if(!_0x24e3eb)return;let _0x20fda6=_0x24e3eb['onScrollAfter$'][_0x557f9d(0x400)](()=>{_0x52a21c();});return()=>{const _0x23d9c8=_0x557f9d;_0x20fda6[_0x23d9c8(0x262)]();};},[_0x1ec2b2,_0x52a21c]),_0x344669(()=>{const _0x5425b8=_0x26b11c;if(!_0x3f4d6d||!_0x1ec2b2)return;let _0x5d2b9c=_0x3f4d6d[_0x5425b8(0x1e3)],_0x5597bf=_0x1ec2b2[_0x5425b8(0x2da)](_0x5d2b9c);if(_0x5597bf instanceof to){let _0x960d9c=_0x5597bf[_0x5425b8(0x4c3)][_0x5425b8(0x400)](()=>{_0x52a21c();});return()=>{const _0x348dc5=_0x5425b8;_0x960d9c[_0x348dc5(0x262)]();};}},[_0x3f4d6d,_0x1ec2b2,_0x52a21c]),_0x21e6bb(_0x26b11c(0x360),{'ref':_0x179bc5,'data-u-comp':'shape-text-editor-position-wrapper','className':_0x26b11c(0x3f0),'style':_0x5040ff(()=>({'left':_0x4f69ff[_0x26b11c(0x38e)],'top':_0x4f69ff[_0x26b11c(0x32e)],'width':_0x4f69ff[_0x26b11c(0x34d)],'height':_0x4f69ff['height'],'pointerEvents':_0x3f4d6d!=null&&_0x3f4d6d[_0x26b11c(0x23f)]?_0x26b11c(0x18e):_0x26b11c(0x4b1)}),[_0x4f69ff,_0x3f4d6d==null?void 0x0:_0x3f4d6d[_0x26b11c(0x23f)]]),'children':_0xe96f63});});Zo['displayName']='ShapePositionWrapper';const Qo=_0x9cae4a(()=>{const _0x3e4408=_0x304ba4;let _0x534bf3=_0x21a84d(_0x146012(X)[_0x3e4408(0x407)]),[_0x2dd56d,_0x5bf958]=_0x50ccba({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x201c19=_0x986b68(_0xd5fda6=>{const _0x3ba505=_0x3e4408;_0x5bf958({'width':_0xd5fda6[_0x3ba505(0x34d)],'height':_0xd5fda6[_0x3ba505(0x595)],'scaleX':_0xd5fda6['scaleX'],'scaleY':_0xd5fda6[_0x3ba505(0x40f)]});},[]);return _0x534bf3!=null&&_0x534bf3[_0x3e4408(0x23f)]?_0x21e6bb(Zo,{'onPositionUpdate':_0x201c19,'children':_0x21e6bb(Ko,{'containerWidth':_0x2dd56d[_0x3e4408(0x34d)],'containerHeight':_0x2dd56d[_0x3e4408(0x595)],'scaleX':_0x2dd56d[_0x3e4408(0x3c6)],'scaleY':_0x2dd56d[_0x3e4408(0x40f)]})}):null;});Qo['displayName']=_0x304ba4(0x427);let $o=class extends _0x4a1034{constructor(_0x2469a7=Fo,_0x4e5928,_0x17c3dd,_0x4df301,_0x14871c){const _0x55d5d4=_0x304ba4;super(),this[_0x55d5d4(0x246)]=_0x2469a7,this[_0x55d5d4(0x31c)]=_0x4e5928,this[_0x55d5d4(0x288)]=_0x17c3dd,this[_0x55d5d4(0x48f)]=_0x4df301,this[_0x55d5d4(0x5a0)]=_0x14871c;let {..._0x2452fe}=_0xce10db({},Fo,this[_0x55d5d4(0x246)]);this[_0x55d5d4(0x48f)][_0x55d5d4(0x5e5)](Po,_0x2452fe),this[_0x55d5d4(0x2c3)]();}[_0x304ba4(0x2cf)](){const _0x5791e0=_0x304ba4;_0x2bb472(this[_0x5791e0(0x31c)],[[jo],[ro],[no]]);}[_0x304ba4(0x1d0)](){const _0x54b534=_0x304ba4;[[Vo],[mo],[Ho]][_0x54b534(0x364)](_0x516239=>this[_0x54b534(0x31c)][_0x54b534(0x27a)](_0x516239)),_0x2bb472(this[_0x54b534(0x31c)],[[Ho]]),this[_0x54b534(0x5a0)][_0x54b534(0x329)](_0x2fb0a4[_0x54b534(0x5f8)],[Vo]),this[_0x54b534(0x5a0)][_0x54b534(0x329)](_0x2fb0a4[_0x54b534(0x5f8)],[mo]),this[_0x54b534(0x5a0)][_0x54b534(0x329)](_0x2fb0a4['UNIVER_SHEET'],[Io]),this['_renderManagerService']['registerRenderModule'](_0x2fb0a4[_0x54b534(0x5f8)],[Wo]),this[_0x54b534(0x5a0)][_0x54b534(0x329)](_0x2fb0a4['UNIVER_SHEET'],[Ro]);}['onStarting'](){const _0x44c1b6=_0x304ba4;let _0x590794=this[_0x44c1b6(0x31c)];_0x590794[_0x44c1b6(0x172)](_0x5086cb)[_0x44c1b6(0x590)](_0x44c1b6(0x427),Qo),[[jo],[ro],[no],[X],[Lo],[_o],[Go]]['forEach'](_0x507d74=>_0x590794[_0x44c1b6(0x27a)](_0x507d74)),_0x2bb472(this[_0x44c1b6(0x31c)],[[jo],[ro],[no],[X],[Lo],[_o],[Go]]);}[_0x304ba4(0x2c3)](){const _0xab4ca8=_0x304ba4;[go,Va,Ka,Ha,Ua,Ga,Wa,Ja,Ya,qa,ho]['forEach'](_0x50632a=>this['disposeWithMe'](this['_commandService'][_0xab4ca8(0x4f7)](_0x50632a)));}};Y($o,_0x304ba4(0x14a),_0x2fb0a4['UNIVER_SHEET']),Y($o,'pluginName',_0x304ba4(0x52d)),Y($o,_0x304ba4(0x1fb),Mo),Y($o,'version',No),$o=$([_0x10f1ec(_0x190e5a,_0x2202df),Q(0x1,_0x28dee4(_0x57a8c3)),Q(0x2,_0xc97706),Q(0x3,_0x551299),Q(0x4,_0x1dfd06)],$o);export{Ua as SetShapeTextFontSizeCommand,Ga as SetShapeTextFontSizeDecreaseCommand,Wa as SetShapeTextFontSizeIncreaseCommand,Ha as SetShapeTextHorizontalAlignCommand,Ka as SetShapeTextVerticalAlignCommand,qa as ShapeDocAlignCommand,jo as SheetsShapeUIController,$o as UniverSheetsShapeUIPlugin,Va as UpdateShapeDataCommand};
|