@univerjs-pro/sheets-shape-ui 0.22.0-insiders.20260513-09bbeca → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x120d79=_0x3b97;(function(_0x8dac7f,_0x27eac3){const _0x345aa8=_0x3b97,_0x18c85b=_0x8dac7f();while(!![]){try{const _0x27680c=-parseInt(_0x345aa8(0x22c))/0x1+-parseInt(_0x345aa8(0x574))/0x2+parseInt(_0x345aa8(0x268))/0x3*(-parseInt(_0x345aa8(0x3f1))/0x4)+parseInt(_0x345aa8(0x57c))/0x5+parseInt(_0x345aa8(0x32a))/0x6+parseInt(_0x345aa8(0x4f0))/0x7*(parseInt(_0x345aa8(0x5c2))/0x8)+parseInt(_0x345aa8(0x198))/0x9;if(_0x27680c===_0x27eac3)break;else _0x18c85b['push'](_0x18c85b['shift']());}catch(_0x4c4471){_0x18c85b['push'](_0x18c85b['shift']());}}}(_0x1c29,0x95014),Object[_0x120d79(0x565)](exports,Symbol[_0x120d79(0x138)],{'value':_0x120d79(0x4ae)}));var __create=Object['create'],__defProp=Object[_0x120d79(0x565)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__getOwnPropNames=Object[_0x120d79(0x22e)],__getProtoOf=Object['getPrototypeOf'],__hasOwnProp=Object['prototype'][_0x120d79(0x3ed)],__copyProps=(_0x47913d,_0x19d512,_0x15710c,_0xeae90b)=>{const _0x37ef23=_0x120d79;if(_0x19d512&&typeof _0x19d512===_0x37ef23(0x1d8)||typeof _0x19d512===_0x37ef23(0x45e))for(var _0x48e823=__getOwnPropNames(_0x19d512),_0x5db0d8=0x0,_0x5f49d1=_0x48e823[_0x37ef23(0x620)],_0x2c9b88;_0x5db0d8<_0x5f49d1;_0x5db0d8++){_0x2c9b88=_0x48e823[_0x5db0d8],!__hasOwnProp[_0x37ef23(0x1ef)](_0x47913d,_0x2c9b88)&&_0x2c9b88!==_0x15710c&&__defProp(_0x47913d,_0x2c9b88,{'get':(_0x58da93=>_0x19d512[_0x58da93])[_0x37ef23(0x5e0)](null,_0x2c9b88),'enumerable':!(_0xeae90b=__getOwnPropDesc(_0x19d512,_0x2c9b88))||_0xeae90b['enumerable']});}return _0x47913d;},__toESM=(_0x2c8112,_0x1d318d,_0xdfdc30)=>(_0xdfdc30=_0x2c8112!=null?__create(__getProtoOf(_0x2c8112)):{},__copyProps(_0x1d318d||!_0x2c8112||!_0x2c8112[_0x120d79(0x698)]?__defProp(_0xdfdc30,_0x120d79(0x13f),{'value':_0x2c8112,'enumerable':!![]}):_0xdfdc30,_0x2c8112));let _univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),rxjs=require('rxjs'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_design=require('@univerjs/design'),react=require('react');react=__toESM(react);let _univerjs_drawing_ui=require('@univerjs/drawing-ui'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_sheets_drawing_ui=require('@univerjs/sheets-drawing-ui'),_univerjs_docs=require('@univerjs/docs');function _0x1c29(){const _0x33de42=['shape.type.math-divide','getViewport','VIEW_MAIN_TOP','ShapeHeartIcon','EMPTY','getShapeTextData','size','endConnectionDetection','ActionButtonInformation','worldPoints','ShapeFlowChartDocumentIcon','4165320FFxQwz','_getConnectPointInfo','ShapeLineCapEnum','LeftBracket','shape.type.snip2-same-rect','_registerFocusChangeHandler','shape-text-','_sidebarService','Decagon','useLeftAndRightArrow','setAdjustValueByName','registerFeatureMenu','ShapeCubeIcon','_executeResizeCommand','shape.type.rect-textbox-horizontal','createInternalEditorID','_cxtHandlerPointerUp','sheet.command.set-shape-text-font-size-increase','getDrawingData','sheets-shape.openPanel','line','getBentTypeFromPoints','getDrawingOrder','shape.type.border-callout3','Freehand','_sheetInterceptorService','ShapeRibbon2Icon','ShapeSnip2SameRectIcon','HorizontalAlign','SheetInterceptorService','bind','changing$','registerFeatureMenuOffset','Donut','find','viewportScrollY','sheets-shape.fill.picture.align.bl','onStarting','sqrt','subscribeContextValue$','onScrollAfter$','ShapeArrowTypeEnum','shapeId','_sheetClipboardService','_baseShapeHeight','ShapeBentUpArrowIcon','#1a73e8','ShapeTextEditorContainer','getState','getAdjustNames','value','startX','shape.type.cube','ShapeFlowChartMultidocumentIcon','_registerComponent','sheet.shape.picker.component','sheets-shape.insertShape','translate','registerClipDelegate','stringify','_registerDrawingMoveHandler','add','_urlImageService','_getZoomRatio','fillType','CurvedRightArrow','getConnectionRelation','RIGHT','onRendered','_adjName','HalfFrame','shape.type.down-arrow-callout','RadioGroup','sheets-shape.toggleFlipH','shape.type.lightning-bolt','ShapeRightArrowCalloutIcon','sheets-shape.fill.picture.align.b','ShapeSmileyFaceIcon','ShapeHeptagonIcon','start','starAndBanner','ShapeQuadArrowIcon','CurvedConnector3','Callout3','Dash','ShapeStar6Icon','sheets-shape.line.arrowType.stealthArrow','ShapeChordIcon','ShapeLineDashEnum','FlowchartPredefinedProcess','getParent','BlockArc','clipByShape','align.top','length','Tools','shape.type.math-plus','shape.type.bent-connector3','removeLinePoints','min','decorate','CurvedDownArrow','useEffect','EllipseRibbon2','FlowchartManualOperation','includes','UNIVER_DOC','shape.type.bracket-pair','getDrawingShapeKeyByDrawingSearch','isHighlighted','setShapeProps','shape.type.math-equal','Large','activeAnObject','_handleBasicShapeUpdateConnectorLineShape','shape.type.rect-textbox-vertical','VERTICAL_ROTATE_ANGLE','basicShape','RibbonStartGroup','sheets-shape.fill.pictureFill','ShapeStar10Icon','\x20px','ShapeSquareTabsIcon','Trapezoid','_generatePasteMutations','ShapeBlockArcIcon','map','isNaN','_createCopyInfoByRange','complete','_findNearestConnectionSite','sheets-shape.fill.picture.offsetY','Star10','getAdjustValueByName','univer-flex\x20univer-flex-col\x20univer-gap-2','sheetViewStartColumn','getConnectorLinePoints','SheetsDrawingGroupCopyPasteController','_isStartConnectorPoint','ShapeUpDownArrowCalloutIcon','ShapeCurvedConnector3Icon','_sheetsShapeService','_drawShapeText','BracePair','sheets-shape.line.sketchType.freehand','isHorizontal','shape.type.flow-chart-extract','ShapeFlowChartOffpageConnectorIcon','ShapeVerticalScrollIcon','COPY_TYPE','gdRefR','_isHighlighted','shape.type.left-arrow-callout','ShapeFillEnum','restore','translateWithPrecision','shape.type.bent-connector3-arrow2','align.bottom','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','ShapeAccentBorderCallout2Icon','UpdateSheetsShapeDataMutation','IImageIoService','transform','ShapeChevronIcon','ShapeStar24Icon','isArray','parse','LightningBolt','attachRangeWithCoord','adjHandleStroke','enableObjectsEvent','FlowchartConnector','from','_isConnecting','FORMAT','sheets-shape.config','FlowchartAlternateProcess','LeftRightUpArrow','ShapeActionButtonDocumentIcon','_createControls','ShapeMathPlusIcon','sheets-shape.line.arrowSize.medium','Octagon','ShapeWedgeEllipseCalloutIcon','ChartStar','ShapeRenderModeEnum','_reset','oKey','ShapeRibbonIcon','collapsed','DrawingImageClipService','_shapes','invert','_activeShapeAdjustPointList','ShapeFolderCornerIcon','ShapeRightBraceIcon','shape.type.star24','CloudCallout','_activeShapeModel','endArrow','sheets-shape.line.title','shape.type.uturn-arrow','shape.type.arc','Medium','InsertShapeCommand','shape.type.non-isosceles-trapezoid','ShapeDiamondIcon','ShapeTypeEnum','viewBound','classType','BorderCallout3','getMenuHiddenObservable','version','getCurrentTypeOfUnit$','__esModule','prstGeomAdjValues','COLOR_PICKER_COMPONENT','generateRandomId','VIEW_MAIN','_addControl','_findShapeAtPoint','ShapeModel','ShapeStar8Icon','POSITIVE_INFINITY','ShapeFrameIcon','_baseLeft','drawingId','ShapeParallelogramIcon','shape.type.corner','StealthArrow','diamond','sketchType','ShapeUturnArrowIcon','toStringTag','shape.type.right-arrow','jsxs','unsubscribe','ShapeSnip2DiagRectIcon','next','GROUP','default','_config','ShapeFlowChartManualInputIcon','SetSheetsShapeTextVerticalToggleCommand','ShapeDodecagonIcon','shape.type.folder-corner','LEFT','RightJustifyingIcon','update$','shape.type.star16','ShapeDonutIcon','align.right','sheet.operation.open-sheet-shape-format-panel','SnipRoundRect','SheetsSelectionsService','Plaque','drawingType','ShapeLineInvIcon','useRef','_clearControls','interceptCommand','getTransformer','_updateAdjustControlPositions','univer-w-full','updateDocumentStyle','flipX','ShapeActionButtonReturnIcon','getCurrentSkeleton','PlaqueTabs','_editingParams$','_isImagePointerDown','shape-adjust-point-','shape.type.bent-up-arrow','add$','Radio','ShapeTeardropIcon','getObject','normal','paragraphs','DrawingTypeEnum','onerror','AccentCallout3','Ellipse','sheets-shape.toggleFlipV','SquareDot','_updateShapeAdjustControls','ShapeRectTextboxVerticalIcon','FlowchartMerge','_generateCutPasteMutations','shape.type.can','INSERT','ShapeRectIcon','Snip1Rect','shape.type.flow-chart-punched-card','SquareTabs','Plugin','Callout2','LeftRightCircularArrow','univer-mb-2','Can','ShapeActionButtonBackPreviousIcon','current','Button','adjHandleSize','OpenArrow','Hexagon','shape.type.swoosh-arrow','disableObjectsEvent','getColorFromTheme','shape.type.accent-callout2','Snip2SameRect','ShapeActionButtonBlankIcon','ShapeFlowChartDisplayIcon','ConnectorCoordinateTransform','sheetTransform','sheets-shape.fill.title','DrawingApplyType','mergeMenu','FOCUSING_COMMON_DRAWINGS','FlowChartInputOutput','memo','ShapeArrowSizeEnum','register','FoldedCorner','shape.type.action-button-movie','shape.type.ribbon2','ShapeLeftUpArrowIcon','shape.type.flow-chart-merge','ShapeCornerIcon','8678142moXJlK','ShapeCurvedUpArrowIcon','forEach','StripedRightArrow','Shape','_handleConnectedEndpointPointerUp','ShapeHexagonIcon','abs','pluginName','stops','Inject','ShapeQuadArrowCalloutIcon','shape.type.ellipse','shape.type.no-smoking','ShapeWaveIcon','redo','WorkbookEditablePermission','shape.type.curved-down-arrow','sheets-shape.line.arrowType.none','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','blockArrow','Star5','sheets-shape.fill.picture.align.l','ShapeLeftCircularArrowIcon','onTransformChange$','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','body','shape.type.plaque-tabs','values','stopPropagation','FromArray','VerticalAlign','ShapeActionButtonMovieIcon','SetShapeTextFontSizeIncreaseCommand','marginTop','fillImageSourceType','getConnectionSiteList','shape.type.action-button-end','ShapeWedgeRoundRectCalloutIcon','switchMap','verticalAlign','ShapeActionButtonHomeIcon','DiamondArrow','shape.type.sun','index','_createShapeAdjustControls','ShapeFlowChartPunchedCardIcon','_shapeTextEditingService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','Snip2DiagRect','Radial','documentStyle','_sidebarDisposable','ShapeFlowChartMagneticTapeIcon','_commandExecutedListener','FlowchartPunchedCard','_drawingRenderService','_closeShapeEditPanel','Line','ShapeChartXIcon','getCurrentUnitInfo','DoubleWave','shape.type.hexagon','image/*','object','shape.type.action-button-forward-next','DependentOn','cos','ShapeCircularArrowIcon','preValue','getContextValue','setShouldShowAdjust','RemoveSheetCommand','_drawingAddListener','clone','ShapeCurvedRightArrowIcon','useState','_getOrCreateShapeModel','startWith','shape.type.chord','clip-adj-','_baseDrawingRect','max','_targetShapeId','univer-text-sm','offsetX','SELECTOR','call','Miter','_registerDrawingFocusChangeHandler','ShapeRightArrowIcon','permission.dialog.editErr','onSavingEditorData$','univer-w-20','AccentCallout1','registerFeaturePasteHook','getEditing','shape.type.math-multiply','_activeAdjustInfo','ShapeMathMultiplyIcon','getCurrentLastSelection','pick','shape.type.pentagon','shape.type.snip2-diag-rect','Star32','resetCursor','shape.type.square-tabs','sheets-shape.line.joinType.bevel','sheet.command.set-shape-text-font-size','isConnectorShape','_insertShapes','Angular','isLineShape','CURSOR_TYPE','_draggingConnectorId','getAncestorScale','ShapeAccentCallout1Icon','has','Rect','shape.type.flow-chart-magnetic-disk','shape.type.flow-chart-connector','ShapePieIcon','offsetY','asObservable','ShapeDocAlignCommand','visible','getImageSourceCache','LongDash','AlignTopIcon','getSheetCommandTarget','DrawingCommonPanel','top','ShapeCurvedLeftArrowIcon','DashDot','getDrawingPoints','shape.type.right-bracket','ShapeUpDownArrowIcon','merge','keys','RENDER_CLASS_TYPE','_draw','LongDashDot','cxnIndex','shape-text-editor-position-wrapper','displayName','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','shape.type.heart','lineType','1171132dKlSMD','activeSheet$','getOwnPropertyNames','subscribe','ShapeMathEqualIcon','isHitLine','MenuItemType','BentUpArrow','ISidebarService','isEditing','syncExecuteCommand','shape.type.star6','_currentConnectionTarget','ShapeGradientTypeEnum','Fragment','_commandService','isRender','OvalArrow','COMMAND','_activeShapeInfo','rectangle','useAbsolutePosition','ChartX','shape.type.left-brace','refreshTransform','params','objects','ShapeTriangleIcon','shape.type.left-right-arrow-callout','sheets-shape.fill.picture.offsetX','_handleConnectorPointerUp','image-panel.crop.shape','getCanvasElement','insertGroupObject','shape.type.up-down-arrow-callout','SHEET_VIEWPORT_KEY','getSheetBySheetId','ShapeLeftBracketIcon','fill','blockExecuteWithoutPermission','sheet.shape.edit.panel','ShapeAccentBorderCallout1Icon','MoreDownIcon','SetShapeTextHorizontalAlignCommand','useDependency','prstGeom','_clearShapeConnectorHandlerObjects','Accordion','ShapeBentConnector3Arrow1Icon','sheetViewStartRow','ActionButtonBackPrevious','FlowchartProcess','shape.type.round-rect','equationShape','shape.type.left-right-up-arrow','CENTER','WRAP','BUTTON','rect','ShapeFlowChartMagneticDiskIcon','3165OLMsUL','RightBracket','changeShapeType','_executeConnectedRouteConnectionCommand','ShapeFlowChartPredefinedProcessIcon','Gear6','Star24','shape.type.flow-chart-manual-operation','ShapeNotchedRightArrowIcon','centerAngle','getBatchAddOp','ShapeBentConnector3Arrow2Icon','ShapeFlowChartProcessIcon','constructor','IConfigService','style','deepClone','onDblclick$','attachTransformerTo','shape.type.callout2','VerticalCenterIcon','_loadShapePictureFill','SetShapeTextVerticalAlignCommand','setShapeData','shape.type.moon','NoFill','UpdateShapeDataCommand','gradientStops','ShapeNonIsoscelesTrapezoidIcon','drawing.operation.set-drawing-active','ShapeNoSmokingIcon','shape.type.frame','Stretch','shapeData','opacity','warn','getFreeze','_init','scaleX','IUniverInstanceService','_clipService','blur','ancestorTransform','SheetsShapeService','Chevron','shape.type.donut','clsx','focus$','shape.type.action-button-blank','shape.type.up-arrow','_initEvents','FlowchartOffPageConnector','Wave','univer-relative\x20univer-size-full\x20univer-overflow-visible','shape.type.bevel','changeEnd$','_isOpenedShapeEditPanel','HorizontalScroll','ShapeTrapezoidIcon','ShapeAccentCallout3Icon','ShapeStar12Icon','imageTile','IRenderManagerService','getOwnPropertyDescriptor','linear','_openShapeEditPanel','Transform','ShapeLeftArrowIcon','DRAWING_OBJECT_LAYER_INDEX','Observable','CircularArrow','viewportScrollX','ShapeCurvedConnector3Arrow1Icon','LocaleService','draw','updateConnectionDetection','shape.type.border-callout2','getImage','shape.type.left-up-arrow','ShapeLeftRightRibbonIcon','_rerouteConnectorLine','toolbar.fillColor.main','EllipseRibbon','left','shape.type.left-right-ribbon','FlowchartMagneticTape','setPrstGeom','\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','getStartConnectInfo','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','FlowchartDelay','_registerImageShapeClipDelegate','ImageSourceTypeEnum','ShapeFlowChartOfflineStorageIcon','button','strokeWidth','ShapePositionWrapper','_handleFreeEndpointPointerUp','univer-text-primary-600','BracketPair','_sheetDrawingShapeRenderController','ShapeFunnelIcon','setDocumentData','radial','localeService','close','shape.type.flow-chart-input-output','sheets-shape.fill.transparency','shape.type.flow-chart-predefined-process','IrregularSeal1','ShapeEllipseIcon','getBoundingClientRect','NotchedRightArrow','callout','GradientColorPicker','unitId','QuadArrow','getBatchRemoveOp','StraightConnector1','ShapeActionButtonForwardNextIcon','indexOf','dataStream','setZoomRatio','_attachConnectorObjectEvent','ShapeLeftRightArrowIcon','ShapeFlowChartInputOutputIcon','isDrawingObject','click','ShapeCallout3Icon','position','DocumentDataModel','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','addObject','highlighted','RightArrowCallout','univer-flex\x20univer-items-center\x20univer-gap-3','deg)\x20scaleY(','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Funnel','ShapeBracketPairIcon','FOCUSING_SHAPE_TEXT_EDITOR','imageFillMode','shape.type.flow-chart-delay','BorderCallout1','_focusedDrawings','group','PREDEFINED_HOOK_NAME','getShapeData','ISheetClipboardService','FlowchartCollate','getValue','adjName','ShapeBorderCallout1Icon','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','shape.type.octagon','InsertSheetsShapeMutation','MathDivide','pushUndoRedo','srcRect','_initPermission','getFocusDrawings','univer-w-20\x20univer-flex-1','SheetSkeletonManagerService','BehaviorSubject','shape.type.pie','setCursor','get','rotation','shape.type.action-button-information','setTimeout','executeCommand','sheets-shape.line.arrowType.diamondArrow','ShapeMathDivideIcon','shape.type.decagon','save','shape.type.wedge-ellipse-callout','dataModel','_lastEditingShapeKey','ShapeActionButtonInformationIcon','img','ShapeStripedRightArrowIcon','shape.type.flow-chart-document','getShapeTypeById','cxnPointFill','shape.type.block-arc','GradientFill','_localeService','ShapeStar5Icon','Round2DiagRect','shape.type.gear6','shape.type.star12','UNIVER_SHEET','univer-flex\x20univer-flex-col\x20univer-gap-3','setCanUseShapeClip','2628732FRFHgm','shape.type.flow-chart-display','rotate(','shape.type.left-circular-arrow','MIDDLE','VerticalScroll','sheets-shape.line.dashType.longDashDotDot','addImageSourceCache','onCommandExecuted','getRenderById','ActionButtonBlank','UniverInstanceType','Disposable','shape.type.right-brace','vertical','alignment','ShapePieWedgeIcon','saveImage','floor','SetDrawingApplyMutation','univer-size-full','ShapeDecagonIcon','height','setHighlighted','ShapeCallout1Icon','ShapeRightBracketIcon','scaleY','_sheetCanvasPopManagerService','_initSelection','horizontalAlign','RightTriangle','ShapeHomePlateIcon','ResetInlineFormatTextBackgroundColorCommand','_currentUniverService','ShapeCloudCalloutIcon','Parallelogram','SmileyFace','shape.type.star32','Select','_showConnectionSites','UpdateConnectorRelationCommand','sheets-shape.fill.picture.align.br','shape.type.corner-tabs','startY','ShapeRound2SameRectIcon','_initSheetChange','getZoomRatio','sheets-shape.line.dashType.solid','registerCommand','error','sheets-shape.fill.picture.scaleY','ActionButtonBeginning','engine','gdRefX','Teardrop','sheets-shape.line.dashType.squareDot','editingParams$','subUnitId','ShapeStraightConnector2Icon','colStartX','_sheetPermissionCheckController','adjustValues','shape.type.flow-chart-process','clearAdjustControls','univer-rounded-lg\x20univer-p-3','startArrow','_registerShapeMenu','shape.type.chart-plus','SetSheetsShapeRotateCommand','None','_transform','shape.type.up-down-arrow','_adjHandlerPointerUp','sheets-shape.fill.gradientFill','flowchart','shape.type.triangle','worksheet','Documents','ShapeSunIcon','sheets-shape.toggleTextVertical','univer-text-gray-500','ShapeIrregularSeal1Icon','sheets-shape.line.dashType.longDashDot','calculate','IrregularSeal2','ShapeFlowChartMagneticDrumIcon','HorizontallyIcon','_attachAdjustEvent','_menuManagerService','_imageIoService','Linear','setSrcRect','SheetScrollManagerService','URL','computeConnectorResizeLayout','univer-w-28','LeftRightRibbon','ShapeFlowChartSortIcon','_renderManagerService','shape.type.star4','_shapeService','CurvedUpArrow','RibbonPosition','div','SHAPE','entries','none','gdRefAng','shape.type.plus','ActionButtonHome','ShapeArcIcon','sheets-shape.line.beginArrowSize','_shapeUpdateListener','_getScrollInfo','ShapeUpArrowCalloutIcon','_shapeId','ShapeStar32Icon','_handleConnectedEndpointMove','DiagStripe','clearAdjustValue','jsx','sheets-shape.fill.picture.tileAsTexture','_imageShapeClipController','rowStartY','getAdjustInfoByName','SHEET_SHAPE_UI_PLUGIN','sheets-shape.shapeStyle','_index','shape.type.flow-chart-punched-tape','drawWith','Checkbox','Solid','fillImageSource','angle','_moveConnectorWithShape','Dropdown','ICommandService','NoLine','CUT','Triangle','CommandType','ActionButtonForwardNext','ShapeBevelIcon','useCallback','angular','isCurvedConnectorShape','ShapeFlowChartOrIcon','sheets-shape.formatShape','sheets-shape.line.sketchType.none','FlowchartMultiDocument','parseFloat','Sun','ShapeMathNotEqualIcon','getShapePopupMenus','shape-text-editor-content','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','_isShouldShowDrawingShapeAdjust','shape.type.flow-chart-offline-storage','ShapeGear6Icon','ShapeWedgeRectCalloutIcon','_registerMoveHandler','shape.type.pie-wedge','_baseHeight','disposeWithMe','UpArrow','string','shape.type.up-arrow-callout','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','changeStart$','sheet.command.set-shape-text-horizontal-align','ShapeStar4Icon','paragraphStyle','ActionButtonMovie','shape.type.star8','_executeConnectedRouteResizeCommand','_addShapeConnectorHandlerObject','scale','image','getDrawingEditable','set','getCurrentRangeDisable$','sheets-shape.fill.solidFill','UniverSheetsShapeUIPlugin','sheets-shape.fill.picture.insert','Ribbon','_contextService','ShapeIrregularSeal2Icon','applyPoint','sheets-shape.line.noLine','shape.type.flow-chart-internal-storage','_unitId','getDrawingVisible','shape.type.left-right-arrow','Heptagon','ShapeDownArrowIcon','hasOwnProperty','file','univer-text-gray-600\x20univer-transition-transform','onPointerDown$','3748PWxLgC','updateDocumentDataMargin','RemoveSheetsShapeMutation','gdRefY','onReady','shape.type.cloud','composeMatrix','ShapeEllipseRibbon2Icon','_registerGroupFeaturePasteHook','ShapeUpArrowIcon','_baseTop','UniverSheetsShapePlugin','AccentBorderCallout2','isInGroup','_getConnectionSiteAngle','shape.type.cloud-callout','Star12','push','ShapeFlowChartMergeIcon','FlowchartOr','useIsFocusing','shape.type.flow-chart-terminator','getBasicShapeRotateBound','SheetDrawingAnchor','_connectionSiteObjects','SheetsShapeUIController','clear','sheets-shape.fill.picture.scaleX','sheets-shape.line.endArrowSize','localToWorld','_getShapeAdjustInfosById','VIEW_MAIN_LEFT_TOP','subscribeEvent','Injector','ShapeAccentBorderCallout3Icon','_initCopyPaste','sheets-shape.line.arrowType.arrow','_baseWidth','ShapeBentArrowIcon','OPERATION','ShapeLineJoinEnum','Pie','icon','_resetState','domY','ShapeLeftRightArrowCalloutIcon','getDrawingByParam','_updateTransform','_updateSrcRectByTransform','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','WedgeEllipseCallout','UpdateLineShapeResizeCommand','sheets-shape.line.capType.title','FlowchartDecision','LongDashDotDot','0.22.0-insiders.20260513-09bbeca','shape.type.curved-connector3-arrow2','SwooshArrow','NonIsoscelesTrapezoid','ShapeRound1RectIcon','SolidFill','beginPath','shape.type.left-arrow','open','cxnPointStrokeWidth','getDocumentData','shape.type.action-button-beginning','ShapeFlowChartExtractIcon','ActionButtonSound','deriveStateFromActiveSheet$','FlowchartMagneticDisk','LeftArrow','ShapeFlowChartDelayIcon','\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','getEndConnectInfo','_addShapeAdjustControl','mainComponent','ShapeLineTypeEnum','SetInlineFormatTextBackgroundColorCommand','ShapePlusIcon','REMOVE','with','shape.type.quad-arrow','shape.type.rt-triangle','onPointerMove$','_drawSimpleText','name','_isDrawingShapePointDown','shape.type.teardrop','CornerTabs','_executeConnectionCommand','WedgeRectCallout','shape.type.action-button-sound','Diamond','makeDirty','PieWedge','shape.type.round2-same-rect','ShapeChartPlusIcon','getSkeleton','sheets-shape.line.joinType.title','_clearConnectionSites','ShapeFlowChartInternalStorageIcon','setOnSavingEditorData','useObservable','_transformCalculateSrcRect','ShapeLeftRightUpArrowIcon','shape.type.parallelogram','some','_baseShapeLeft','function','ShapeDoubleWaveIcon','DEFAULT_PASTE','lineShapeId','UpDownArrow','ActionButtonHelp','toDisposable','ShapeSketchTypeEnum','custom','sheets-shape.line.dashType.longDash','IUndoRedoService','_getImageDrawingInfo','_subUnitId','point','shape.type.line','FlowchartInternalStorage','ShapeFlowChartManualOperationIcon','VIEW_MAIN_LEFT','ShapeLineIcon','shape.type.horizontal-scroll','UPDATE','filter','editorHeight','ShapeOctagonIcon','domX','ShapeHalfFrameIcon','ShapeFlowChartConnectorIcon','shape.type.half-frame','ComponentManager','input','ShapeActionButtonSoundIcon','shape.type.rect','isStartConnectorPoint','sheets-shape.fill.noFill','shape.type.smiley-face','round','align.left','getShapeModel','imageRotateWithShape','_configService','sheets-shape.rotateRight90','shape.type.left-bracket','toolbar.horizontalAlignMode.main','ShapeCloudIcon','DownArrowCallout','ShapeFlowChartDecisionIcon','shape.type.math-not-equal','sheets-shape.line.beginArrowType','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','shapeKey','computeStraightConnectorLayout','ShapeDefaultConfig','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','shape.type.math-minus','getMatrix','adjHandleFill','_injector','_copyInfo','Cube','UUID','shape.group.','ShapeCurvedDownArrowIcon','onPointerUp$','pipe','dispose','stroke','ShapeEllipseRibbonIcon','ShapeCurvedConnector3Arrow2Icon','ShapeDownArrowCalloutIcon','startConnectionDetection','ShapeStar7Icon','FOCUSING_PANEL_EDITOR','DownArrow','shape.type.round2-diag-rect','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','isFinite','setSelectionRanges','computeConnectorRouteLayout','capType','multiply','Module','clip-','_isStartAdjusting','PaintBucketDoubleIcon','ColorPicker','shape.type.flow-chart-collate','_getSceneAndTransformerByDrawingSearch','Bevel','sheets-shape.line.arrowType.ovalArrow','relation','AlignBottomIcon','worldRect','_getDrawingRect','sheets-shape.rotateLeft90','ShapeSnipRoundRectIcon','ShapeMoonIcon','Arc','sheets-shape.hidePanel','touchDependencies','Round','SetShapeTextFontSizeCommand','copyType','useMemo','_updateImageAdjValues','Arrow','shape.type.action-button-back-previous','ShapeActionButtonEndIcon','MathPlus','CROSSHAIR','RibbonInsertGroup','shape.type.flow-chart-online-storage','cxnPointRadius','getRealBound','shape.type.flow-chart-alternate-process','sheets-shape.line.dashType.dashDot','ShapeActionButtonHelpIcon','MathNotEqual','shape.type.curved-right-arrow','vertexAngle','useEditor','sheets-shape.line.transparency','ShapeFlowChartOnlineStorageIcon','setContextValue','ShapeStraightConnector1Icon','ShapePlaqueTabsIcon','getDrawingSearch','ToggleSheetsShapeFlipCommand','MathMultiply','ShapeCornerTabsIcon','Pentagon','IContextService','gradientType','FlowchartPunchedTape','SheetPermissionCheckController','RoundRect','_currentScene','color','ShapeBentConnector3Icon','Image','span','src','AccentBorderCallout3','shape.type.irregular-seal2','ShapeChartStarIcon','_activeShapeId','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','7CwfHAe','_getImagePrstGeom','_highlightedSiteIndex','ActionButtonDocument','calcAdjValue','WorksheetEditPermission','ShapeSnip1RectIcon','ang','PictureFill','getShapeTextRect','shape.type.left-right-circular-arrow','ShapeFlowChartSummingJunctionIcon','Star16','ENTER','sheet.command.set-shape-text-font-size-decrease','ShapeLeftArrowCalloutIcon','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','_initEditingParams','getObjectIncludeInGroup','ShapeLightningBoltIcon','DRAWING_IMAGE','flipY','_activeImageId','shape.type.irregular-seal1','getBatchUpdateOp','Star8','LeftRightArrowCallout','_drawingManagerService','section','getCurrentScrollState','shape.type.straight-connector1','shape.type.funnel','Flat','doc','refreshAdjustControls','ShapeBorderCallout3Icon','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','primary.600','InputNumber','getViewportByCell','BorderCallout2','LeftJustifyingIcon','ShapeFlowChartAlternateProcessIcon','ISheetDrawingService','_clearShapeAdjustControls','univer-flex\x20univer-items-center\x20univer-justify-between','connector-handler-','shape-text-editor','MEDIA','_activeTargetShapeId','_addShapeConnectorHandlerObjects','ShapeFlowChartPunchedTapeIcon','Tile','DRAWING_SHAPE','ShapeRtTriangleIcon','ShapePentagonIcon','sheets-shape.line.endArrowType','sheets-shape.line.joinType.round','univer-hidden','ShapeHorizontalScrollIcon','width','_getShapeInfo','sheets-shape.line.sketchType.curved','shape.type.flow-chart-offpage-connector','ShapePlaqueIcon','renderDrawingShape','getTransformerByCreate','shape.type.right-arrow-callout','IDrawingManagerService','ShapeActionButtonBeginningIcon','SolidLine','addClipboardHook','Curved','_sheetBasicShapeConnectionPointController','_cxnIndex','Moon','FlowchartMagneticDrum','ShapeLeftRightCircularArrowIcon','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','CopySheetCommand','ShapeSwooshArrowIcon','_sheetDrawingService','ShapeFlowChartPreparationIcon','BentConnector3','Corner','files','_adjHandlerPointerMove','image-clip-adjust-point-','_univerInstanceService','#000000','FlowchartSummingJunction','SheetSkeletonService','focusDrawing','ShapeRoundRectIcon','_getShapeAdjustPointListById','sheets-shape.line.arrowSize.large','TOP','beforeCommandExecuted','type','permissionCheckWithoutRange','shape.type.star7','ShapeRectTextboxHorizontalIcon','replace','_sheetShapeAdjustController','_sheetSkeletonService','_baseShapeTop','_props','ShapeBracePairIcon','getActualSize','shape.type.wave','_context','updateShapeFillImage','shapeModel','sheets-shape.fill.picture.align.tl','_activeAdjustPointList','_onSavingEditorData$','getConnectionInfo','defineProperty','univer-pt-2','worldPoint','auto','updateLinePoints','registerRenderModule','shape.type.flow-chart-preparation','_generateCopyPasteMutations','setEditing','_hasReset','SHAPE_TEXT','sheets-shape.line.solidLine','startOffset','_connectorObjects','target','635330IdwEUw','setFillImage','WrapStrategy','targetShapeId','isRichText','ShapeCallout2Icon','scene','ShapeBorderCallout2Icon','5823155FgHrGO','align.center','transformByState','_initialize','shape.type.flow-chart-sort','_groupCopyPasteController','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','Frame','sheets-shape.line.joinType.miter','Round1Rect','shape.type.dodecagon','cxnPointStroke','shape.type.wedge-round-rect-callout','ShapeFlowChartTerminatorIcon','ShapeLeftBraceIcon','_calculateFreeEndpointAngle','getUnitId','ShapeFlowChartCollateIcon','Round2SameRect','ShapeDiagStripeIcon','lineJoinType','_loadAndSetImage','_componentManager','shape.type.flow-chart-or','ImageFillModeEnum','shape.type.chevron','shape.type.curved-connector3','ShapeCanIcon','undefined','renderConfig','SetShapeDrawingDataCommand','symbol','ShapeStar16Icon','_baseShapeWidth','RoundDot','getUnit','ChartPlus','useKeyboardEvent','getShapeType','shape.type.flow-chart-decision','UturnArrow','ShapeRound2DiagRectIcon','FlowchartExtract','sin','ShapeMathMinusIcon','render','routeConnectorLineShape','textRect','lineStrokeType','sheets-shape.fill.picture.align.tr','shape.type.action-button-document','other','updateContext','AccentCallout2','BOTTOM','ShapeIcon','ShapeGear9Icon','Star4','horizontal'];_0x1c29=function(){return _0x33de42;};return _0x1c29();}function _typeof(_0x5e3a97){'@babel/helpers - typeof';const _0x4cb5f1=_0x120d79;return _typeof=_0x4cb5f1(0x45e)==typeof Symbol&&_0x4cb5f1(0x59b)==typeof Symbol['iterator']?function(_0x1cd95f){return typeof _0x1cd95f;}:function(_0x53daa2){const _0xfe38e7=_0x4cb5f1;return _0x53daa2&&_0xfe38e7(0x45e)==typeof Symbol&&_0x53daa2[_0xfe38e7(0x275)]===Symbol&&_0x53daa2!==Symbol['prototype']?'symbol':typeof _0x53daa2;},_typeof(_0x5e3a97);}function toPrimitive(_0x1d2873,_0x33211b){const _0x143c99=_0x120d79;if(_0x143c99(0x1d8)!=_typeof(_0x1d2873)||!_0x1d2873)return _0x1d2873;var _0xcc5d5b=_0x1d2873[Symbol['toPrimitive']];if(void 0x0!==_0xcc5d5b){var _0x1a3d77=_0xcc5d5b[_0x143c99(0x1ef)](_0x1d2873,_0x33211b||'default');if(_0x143c99(0x1d8)!=_typeof(_0x1a3d77))return _0x1a3d77;throw new TypeError(_0x143c99(0x2f1));}return('string'===_0x33211b?String:Number)(_0x1d2873);}function toPropertyKey(_0xe9b03c){const _0x145672=_0x120d79;var _0x5c66b9=toPrimitive(_0xe9b03c,_0x145672(0x3cf));return _0x145672(0x59b)==_typeof(_0x5c66b9)?_0x5c66b9:_0x5c66b9+'';}function _defineProperty(_0x2243a0,_0x29527b,_0x41a763){const _0x3af9a0=_0x120d79;return(_0x29527b=toPropertyKey(_0x29527b))in _0x2243a0?Object[_0x3af9a0(0x565)](_0x2243a0,_0x29527b,{'value':_0x41a763,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2243a0[_0x29527b]=_0x41a763,_0x2243a0;}var ShapeTextEditingService=class extends _univerjs_core['Disposable']{constructor(..._0xd162a2){const _0x30612b=_0x120d79;super(..._0xd162a2),_defineProperty(this,'_editingParams$',new rxjs[(_0x30612b(0x30b))](null)),_defineProperty(this,_0x30612b(0x362),this[_0x30612b(0x15c)][_0x30612b(0x213)]()),_defineProperty(this,_0x30612b(0x563),new rxjs[(_0x30612b(0x30b))](![])),_defineProperty(this,_0x30612b(0x1f4),this[_0x30612b(0x563)]['asObservable']());}[_0x120d79(0x49e)](){const _0x5eb233=_0x120d79;this[_0x5eb233(0x15c)]['next'](null),this[_0x5eb233(0x15c)][_0x5eb233(0x643)](),this['_onSavingEditorData$'][_0x5eb233(0x13d)](![]),this[_0x5eb233(0x563)][_0x5eb233(0x643)](),super['dispose']();}[_0x120d79(0x56d)](_0x4aad47){const _0x22bbf4=_0x120d79;this[_0x22bbf4(0x15c)][_0x22bbf4(0x13d)](_0x4aad47);if(_0x4aad47===null||_0x4aad47===void 0x0)this[_0x22bbf4(0x563)]['next'](![]);}[_0x120d79(0x457)](_0x1e719c){const _0x4fbad4=_0x120d79;this[_0x4fbad4(0x563)][_0x4fbad4(0x13d)](_0x1e719c);}[_0x120d79(0x1f8)](){const _0x13b982=_0x120d79;return this['_editingParams$'][_0x13b982(0x2fe)]();}};function getShapeDataDiff(_0x17b513,_0x59f94b){const _0x11c3bd=_0x120d79,_0x5aced7={};for(const _0x3099dc of Object['keys'](_0x59f94b)){const _0x2a935c=_0x59f94b[_0x3099dc],_0xc7b86b=_0x17b513[_0x3099dc];if(_0x2a935c===void 0x0)continue;if(_0xc7b86b===void 0x0){_0x5aced7[_0x3099dc]=void 0x0;continue;}if(typeof _0x2a935c===_0x11c3bd(0x1d8)&&_0x2a935c!==null&&!Array[_0x11c3bd(0x667)](_0x2a935c)&&typeof _0xc7b86b===_0x11c3bd(0x1d8)&&_0xc7b86b!==null&&!Array[_0x11c3bd(0x667)](_0xc7b86b))_0x5aced7[_0x3099dc]=getShapeDataDiff(_0xc7b86b,_0x2a935c);else _0x5aced7[_0x3099dc]=_0xc7b86b;}return _0x5aced7;}const UpdateShapeDataCommand={'type':_univerjs_core[_0x120d79(0x3b6)][_0x120d79(0x23e)],'id':'sheet.command.update-shape-data','handler':(_0x16151c,_0x47c131)=>{const _0x380350=_0x120d79,_0x4a0317=_0x16151c['get'](_univerjs_pro_sheets_shape[_0x380350(0x293)]),{unitId:_0x39ecdc,subUnitId:_0x15d112,shapeType:_0x6a09b3,shapeId:_0x40c153,shapeData:_0x3888eb,oldShapeJSON:_0x1ec1c6}=_0x47c131;if(!_0x4a0317[_0x380350(0x483)](_0x39ecdc,_0x15d112,_0x40c153))return![];const _0x19bc7b=_0x16151c[_0x380350(0x30e)](_univerjs_core[_0x380350(0x3b2)]),_0x2bb436=_0x16151c[_0x380350(0x30e)](_univerjs_core[_0x380350(0x468)]),{oldShapeType:_0x3d1d0a,oldShapeData:_0xe1b168={}}=_0x1ec1c6,_0x30d749=getShapeDataDiff(_0xe1b168,_0x3888eb||{}),_0xe9f84c={'id':_univerjs_pro_sheets_shape[_0x380350(0x662)]['id'],'params':{'unitId':_0x39ecdc,'subUnitId':_0x15d112,'shapeId':_0x40c153,'shapeType':_0x6a09b3,'shapeData':_0x3888eb}},_0x48cb13={'id':_univerjs_pro_sheets_shape[_0x380350(0x662)]['id'],'params':{'unitId':_0x39ecdc,'subUnitId':_0x15d112,'shapeId':_0x40c153,'shapeType':_0x3d1d0a,'shapeData':_0x30d749}};if(_0x19bc7b[_0x380350(0x236)](_0xe9f84c['id'],_0xe9f84c[_0x380350(0x245)]))return _0x2bb436[_0x380350(0x305)]({'unitID':_0x39ecdc,'undoMutations':[_0x48cb13],'redoMutations':[_0xe9f84c]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0x120d79(0x3b6)][_0x120d79(0x23e)],'id':_0x120d79(0x3d3),'handler':async(_0x24fb41,_0x45289f)=>{const _0x50a31b=_0x120d79;var _0x23f160;if(!(0x0,_univerjs_sheets[_0x50a31b(0x219)])(_0x24fb41['get'](_univerjs_core[_0x50a31b(0x28f)])))return![];const _0x5f00bd=_0x24fb41[_0x50a31b(0x30e)](_univerjs_sheets_drawing[_0x50a31b(0x51b)])[_0x50a31b(0x308)]()[_0x50a31b(0x473)](_0x1ae2d5=>_0x1ae2d5[_0x50a31b(0x14f)]===_univerjs_core['DrawingTypeEnum'][_0x50a31b(0x525)]);if(_0x5f00bd[_0x50a31b(0x620)]!==0x1)return![];const _0x437fa4=_0x24fb41[_0x50a31b(0x30e)](ShapeTextEditingService)[_0x50a31b(0x1f8)](),_0x19d75b=(_0x437fa4===null||_0x437fa4===void 0x0?void 0x0:_0x437fa4['unitId'])||_0x5f00bd[0x0]['unitId'],_0x274278=(_0x437fa4===null||_0x437fa4===void 0x0?void 0x0:_0x437fa4[_0x50a31b(0x363)])||_0x5f00bd[0x0][_0x50a31b(0x363)],_0x5cc52f=(_0x437fa4===null||_0x437fa4===void 0x0?void 0x0:_0x437fa4['shapeId'])||_0x5f00bd[0x0][_0x50a31b(0x6a4)],_0x26af97=_0x24fb41[_0x50a31b(0x30e)](_univerjs_pro_sheets_shape[_0x50a31b(0x293)])['getShapeModel'](_0x19d75b,_0x274278,_0x5cc52f);if(!_0x26af97)return![];const _0x4a999c=_0x26af97[_0x50a31b(0x5bc)]();if(!_0x4a999c||!(_0x50a31b(0x318)in _0x4a999c))return![];const _0x51b32a=_0x24fb41['get'](_univerjs_core[_0x50a31b(0x3b2)]),{value:_0xaec0d6}=_0x45289f,_0x4e732d=_0x26af97[_0x50a31b(0x5a2)](),_0x1bc36f=_0x26af97[_0x50a31b(0x2fb)](),_0x5e004e={..._0x4a999c[_0x50a31b(0x318)],'ha':_0xaec0d6};return await _0x51b32a[_0x50a31b(0x312)](UpdateShapeDataCommand['id'],{'unitId':_0x19d75b,'subUnitId':_0x274278,'shapeId':_0x5cc52f,'shapeType':_0x4e732d,'shapeData':{'shapeText':{'isHorizontal':(_0x23f160=_0x4a999c[_0x50a31b(0x653)])!==null&&_0x23f160!==void 0x0?_0x23f160:!![],'dataModel':_0x5e004e}},'oldShapeJSON':{'oldShapeType':_0x4e732d,'oldShapeData':_0x1bc36f}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x120d79(0x3b6)]['COMMAND'],'id':_0x120d79(0x204),'handler':async(_0x5b03cd,_0x1f4132)=>{const _0x40bf5b=_0x120d79;var _0x4495f1;if(!_0x1f4132)return![];const {value:_0x132597}=_0x1f4132,_0x1e3ed3=_0x5b03cd[_0x40bf5b(0x30e)](_univerjs_core[_0x40bf5b(0x3b2)]),_0x2a8fdb=_0x5b03cd['get'](ShapeTextEditingService),_0x2e3fe2=_0x5b03cd[_0x40bf5b(0x30e)](_univerjs_pro_sheets_shape[_0x40bf5b(0x293)]),_0x4b9fe6=_0x5b03cd[_0x40bf5b(0x30e)](_univerjs_engine_render[_0x40bf5b(0x2a6)]),_0x221c72=_0x2a8fdb[_0x40bf5b(0x1f8)]();if(!_0x221c72)return![];const {unitId:_0x4e8e9c,subUnitId:_0x1e5d70,shapeId:_0x546b84}=_0x221c72,_0x18bbee=_0x2e3fe2[_0x40bf5b(0x483)](_0x4e8e9c,_0x1e5d70,_0x546b84);if(!_0x18bbee)return![];const _0x466ad5=_0x18bbee[_0x40bf5b(0x5bc)]();if(!_0x466ad5||!(_0x40bf5b(0x318)in _0x466ad5))return![];const _0x27d6c3=_0x466ad5[_0x40bf5b(0x318)];if(!_0x27d6c3)return![];const _0x5ec010={..._0x27d6c3,'fs':_0x132597},_0x91ae13=await _0x1e3ed3[_0x40bf5b(0x312)](UpdateShapeDataCommand['id'],{'unitId':_0x4e8e9c,'subUnitId':_0x1e5d70,'shapeId':_0x546b84,'shapeData':{'shapeText':{'isHorizontal':(_0x4495f1=_0x466ad5['isHorizontal'])!==null&&_0x4495f1!==void 0x0?_0x4495f1:!![],'dataModel':_0x5ec010}}});if(_0x91ae13){const _0x41fb3b=_0x4b9fe6[_0x40bf5b(0x333)](_0x4e8e9c);if(_0x41fb3b===null||_0x41fb3b===void 0x0?void 0x0:_0x41fb3b[_0x40bf5b(0x57a)]){const _0x4f5bdb=(0x0,_univerjs_drawing[_0x40bf5b(0x62e)])({'unitId':_0x4e8e9c,'subUnitId':_0x1e5d70,'drawingId':_0x546b84}),_0x378f09=_0x41fb3b['scene'][_0x40bf5b(0x502)](_0x4f5bdb);if(_0x378f09)_0x378f09[_0x40bf5b(0x44f)](!![]);}}return _0x91ae13;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x120d79(0x3b6)][_0x120d79(0x23e)],'id':_0x120d79(0x5d3),'handler':async _0x3b18a2=>{const _0x4d4ea0=_0x120d79;var _0x2b2c54;const _0x29dc55=_0x3b18a2[_0x4d4ea0(0x30e)](ShapeTextEditingService),_0x209a45=_0x3b18a2[_0x4d4ea0(0x30e)](_univerjs_pro_sheets_shape[_0x4d4ea0(0x293)]),_0x473f42=_0x3b18a2[_0x4d4ea0(0x30e)](_univerjs_core['ICommandService']),_0x16620b=_0x29dc55[_0x4d4ea0(0x1f8)]();if(!_0x16620b)return![];const {unitId:_0x53f312,subUnitId:_0x69231e,shapeId:_0x5d2f3b}=_0x16620b,_0x4a8ac4=_0x209a45[_0x4d4ea0(0x483)](_0x53f312,_0x69231e,_0x5d2f3b);if(!_0x4a8ac4)return![];const _0x4c2911=_0x4a8ac4['getShapeTextData']();if(!_0x4c2911||!(_0x4d4ea0(0x318)in _0x4c2911))return![];const _0xb091ad=_0x4c2911[_0x4d4ea0(0x318)],_0x153af6=(_0x2b2c54=_0xb091ad===null||_0xb091ad===void 0x0?void 0x0:_0xb091ad['fs'])!==null&&_0x2b2c54!==void 0x0?_0x2b2c54:0xe,_0x13b072=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x17a278=_0x153af6;const _0x2d2daf=_0x13b072[_0x4d4ea0(0x2e0)](_0x153af6);if(_0x2d2daf!==-0x1&&_0x2d2daf<_0x13b072[_0x4d4ea0(0x620)]-0x1)_0x17a278=_0x13b072[_0x2d2daf+0x1];else{if(_0x2d2daf===-0x1)_0x17a278=Math[_0x4d4ea0(0x33c)](_0x153af6)+0x1;}return _0x473f42[_0x4d4ea0(0x312)](SetShapeTextFontSizeCommand['id'],{'value':_0x17a278});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core['CommandType'][_0x120d79(0x23e)],'id':_0x120d79(0x4fe),'handler':async _0x57194b=>{const _0x121120=_0x120d79;var _0x185acb;const _0x44b8bf=_0x57194b[_0x121120(0x30e)](ShapeTextEditingService),_0x4dde76=_0x57194b[_0x121120(0x30e)](_univerjs_pro_sheets_shape[_0x121120(0x293)]),_0x3384a7=_0x57194b['get'](_univerjs_core[_0x121120(0x3b2)]),_0x1f453e=_0x44b8bf[_0x121120(0x1f8)]();if(!_0x1f453e)return![];const {unitId:_0x5576f0,subUnitId:_0x2192bf,shapeId:_0x59e161}=_0x1f453e,_0x5e1c5a=_0x4dde76[_0x121120(0x483)](_0x5576f0,_0x2192bf,_0x59e161);if(!_0x5e1c5a)return![];const _0x4d6132=_0x5e1c5a[_0x121120(0x5bc)]();if(!_0x4d6132||!(_0x121120(0x318)in _0x4d6132))return![];const _0xe7e373=_0x4d6132[_0x121120(0x318)],_0x5062d8=(_0x185acb=_0xe7e373===null||_0xe7e373===void 0x0?void 0x0:_0xe7e373['fs'])!==null&&_0x185acb!==void 0x0?_0x185acb:0xe,_0x4c7580=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x3d0a5f=_0x5062d8;const _0x2b2b55=_0x4c7580[_0x121120(0x2e0)](_0x5062d8);if(_0x2b2b55!==-0x1&&_0x2b2b55>0x0)_0x3d0a5f=_0x4c7580[_0x2b2b55-0x1];else{if(_0x2b2b55===-0x1)_0x3d0a5f=Math['floor'](_0x5062d8)-0x1;}if(_0x3d0a5f<0x1)_0x3d0a5f=0x1;return _0x3384a7[_0x121120(0x312)](SetShapeTextFontSizeCommand['id'],{'value':_0x3d0a5f});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x120d79(0x3b6)][_0x120d79(0x23e)],'id':'sheet.command.set-shape-text-vertical-align','handler':async(_0x1b45d5,_0x1281cc)=>{const _0x2ac8c2=_0x120d79;var _0x5b816b;if(!(0x0,_univerjs_sheets[_0x2ac8c2(0x219)])(_0x1b45d5[_0x2ac8c2(0x30e)](_univerjs_core['IUniverInstanceService'])))return![];const _0x5c6aeb=_0x1b45d5[_0x2ac8c2(0x30e)](_univerjs_sheets_drawing[_0x2ac8c2(0x51b)])[_0x2ac8c2(0x308)]()[_0x2ac8c2(0x473)](_0x961a57=>_0x961a57[_0x2ac8c2(0x14f)]===_univerjs_core['DrawingTypeEnum'][_0x2ac8c2(0x525)]);if(_0x5c6aeb[_0x2ac8c2(0x620)]!==0x1)return![];const _0x21fb5a=_0x1b45d5[_0x2ac8c2(0x30e)](ShapeTextEditingService)['getEditing'](),_0x26683c=(_0x21fb5a===null||_0x21fb5a===void 0x0?void 0x0:_0x21fb5a[_0x2ac8c2(0x2db)])||_0x5c6aeb[0x0][_0x2ac8c2(0x2db)],_0x772f05=(_0x21fb5a===null||_0x21fb5a===void 0x0?void 0x0:_0x21fb5a['subUnitId'])||_0x5c6aeb[0x0]['subUnitId'],_0x39e1df=(_0x21fb5a===null||_0x21fb5a===void 0x0?void 0x0:_0x21fb5a[_0x2ac8c2(0x5ec)])||_0x5c6aeb[0x0][_0x2ac8c2(0x6a4)],_0x2ce0da=_0x1b45d5[_0x2ac8c2(0x30e)](_univerjs_pro_sheets_shape[_0x2ac8c2(0x293)])[_0x2ac8c2(0x483)](_0x26683c,_0x772f05,_0x39e1df);if(!_0x2ce0da)return![];const _0x2e25a6=_0x2ce0da[_0x2ac8c2(0x5bc)]();if(!_0x2e25a6||!('dataModel'in _0x2e25a6))return![];const _0x3db755=_0x1b45d5[_0x2ac8c2(0x30e)](_univerjs_core[_0x2ac8c2(0x3b2)]),{value:_0x22ac7f}=_0x1281cc,_0x2c75f0=_0x2ce0da['getShapeType'](),_0x17e8f9=_0x2ce0da[_0x2ac8c2(0x2fb)](),_0x111a11={..._0x2e25a6[_0x2ac8c2(0x318)],'va':_0x22ac7f};return await _0x3db755[_0x2ac8c2(0x312)](UpdateShapeDataCommand['id'],{'unitId':_0x26683c,'subUnitId':_0x772f05,'shapeId':_0x39e1df,'shapeType':_0x2c75f0,'shapeData':{'shapeText':{'isHorizontal':(_0x5b816b=_0x2e25a6[_0x2ac8c2(0x653)])!==null&&_0x5b816b!==void 0x0?_0x5b816b:!![],'dataModel':_0x111a11}},'oldShapeJSON':{'oldShapeType':_0x2c75f0,'oldShapeData':_0x17e8f9}});}},ShapeDocAlignCommand={'type':_univerjs_core[_0x120d79(0x3b6)][_0x120d79(0x23e)],'id':'sheet.command.shape-doc-align','handler':(_0x1c5534,_0x33b6cd)=>{if(!_0x33b6cd)return![];const {value:_0x1babbd}=_0x33b6cd;return _0x1c5534['get'](_univerjs_core['ICommandService'])['syncExecuteCommand'](_univerjs_docs_ui['AlignOperationCommand']['id'],{'alignType':_0x1babbd});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType'][_0x120d79(0x418)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x120d79(0x3b6)][_0x120d79(0x418)],'id':_0x120d79(0x14b),'handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x120d79(0x254),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x120d79(0x5d1)])(_0x120d79(0x56f)),ShapeTextEditorContainer$1=_0x120d79(0x5f1);function updateShapeData(_0x243188,_0x19aa29,_0x5dbd51,_0x10c5d0,_0xeb1b7,_0x587e50){const _0xac8e06=_0x120d79,_0x5deb80={'unitId':_0x19aa29,'subUnitId':_0x5dbd51,'shapeId':_0x10c5d0,'shapeData':_0x587e50,'oldShapeJSON':_0xeb1b7};return _0x243188[_0xac8e06(0x312)](UpdateShapeDataCommand['id'],_0x5deb80);}function updateLineShapeData(_0xe99cab,_0x306f97,_0x1fd4bb,_0x17cfd1,_0x36b5ea,_0xbf5e01){const _0x38cc26=_0x120d79,_0x380183={'unitId':_0x306f97,'subUnitId':_0x1fd4bb,'shapeId':_0x17cfd1,'shapeData':_0xbf5e01,'oldShapeJSON':_0x36b5ea};return _0xe99cab[_0x38cc26(0x312)](UpdateShapeDataCommand['id'],_0x380183);}function prepareShapeTextDocumentData(_0x49c84c,_0x4db801){const _0x269b6f=_0x120d79;var _0x4176ce;const {isHorizontal:_0x2a3f98,textRect:_0x4b209a,verticalAlign:_0x28ba67}=_0x4db801,_0x208e70=_0x2a3f98?_0x4b209a[_0x269b6f(0x52c)]:_0x4b209a['height'],_0x5c593e=_univerjs_core[_0x269b6f(0x621)][_0x269b6f(0x278)](_0x49c84c),_0x563897=(_0x4176ce=_0x5c593e['documentStyle'])!==null&&_0x4176ce!==void 0x0?_0x4176ce:{},_0x355703={..._0x563897[_0x269b6f(0x599)],'centerAngle':_0x2a3f98?0x0:_univerjs_engine_render[_0x269b6f(0x636)],'vertexAngle':_0x2a3f98?0x0:_univerjs_engine_render[_0x269b6f(0x636)],'wrapStrategy':_univerjs_core[_0x269b6f(0x576)][_0x269b6f(0x264)]};if(_0x28ba67!==void 0x0)_0x355703['verticalAlign']=_0x28ba67;if(_0x4db801[_0x269b6f(0x347)]!==void 0x0){var _0x93b310;_0x355703[_0x269b6f(0x347)]=_0x4db801[_0x269b6f(0x347)];const _0x3ec0d8=(_0x93b310=_0x5c593e[_0x269b6f(0x1b2)])===null||_0x93b310===void 0x0?void 0x0:_0x93b310[_0x269b6f(0x165)];if(_0x3ec0d8)for(const _0x5006b8 of _0x3ec0d8){if(!_0x5006b8['paragraphStyle'])_0x5006b8[_0x269b6f(0x3d5)]={};_0x5006b8[_0x269b6f(0x3d5)]['horizontalAlign']=_0x4db801[_0x269b6f(0x347)];}}return _0x5c593e[_0x269b6f(0x1cb)]={..._0x563897,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x208e70,'height':Number[_0x269b6f(0x6a1)]},'renderConfig':_0x355703},_0x5c593e;}function stripShapeTextDocumentLayout(_0x2ec70a){const _0x845203=_0x120d79;var _0x3898b3;const _0x5c495f=_univerjs_core[_0x845203(0x621)]['deepClone'](_0x2ec70a),_0x73bad5=(_0x3898b3=_0x5c495f[_0x845203(0x1cb)])!==null&&_0x3898b3!==void 0x0?_0x3898b3:{},_0x4799e6={..._0x73bad5[_0x845203(0x599)]};return delete _0x4799e6[_0x845203(0x271)],delete _0x4799e6[_0x845203(0x4d4)],delete _0x4799e6[_0x845203(0x1c0)],delete _0x4799e6['wrapStrategy'],_0x5c495f[_0x845203(0x1cb)]={..._0x73bad5,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x845203(0x6a1)],'height':Number[_0x845203(0x6a1)]},'renderConfig':Object['keys'](_0x4799e6)[_0x845203(0x620)]>0x0?_0x4799e6:void 0x0},_0x5c495f;}var DrawingShape=class extends _univerjs_engine_render[_0x120d79(0x19c)]{constructor(_0x1f3add,_0x24dd39){const _0x5e92e9=_0x120d79;super(_0x1f3add,_0x24dd39),_defineProperty(this,_0x5e92e9(0x55a),void 0x0),_defineProperty(this,_0x5e92e9(0x459),!![]),_defineProperty(this,'_drawingType',_univerjs_core[_0x5e92e9(0x166)]['DRAWING_SHAPE']),_defineProperty(this,_0x5e92e9(0x2e6),!![]),this[_0x5e92e9(0x55a)]={..._0x24dd39},this[_0x5e92e9(0x28d)]();}[_0x120d79(0x28d)](){const _0xb973d=_0x120d79;this[_0xb973d(0x1b0)][_0xb973d(0x411)](_0x58ae0a=>{const _0x389a50=_0xb973d;this[_0x389a50(0x421)](_0x58ae0a);});}[_0x120d79(0x2be)](_0x210dd6){const _0x8e8cbd=_0x120d79;this[_0x8e8cbd(0x55a)][_0x8e8cbd(0x259)]=_0x210dd6;}['setEditing'](_0x471381){const _0x3acd6f=_0x120d79;this[_0x3acd6f(0x55a)]['isEditing']=_0x471381,this[_0x3acd6f(0x44f)](!![]);}get[_0x120d79(0x2db)](){const _0x52b176=_0x120d79;return this[_0x52b176(0x55a)]['unitId'];}get[_0x120d79(0x363)](){const _0x38d805=_0x120d79;return this[_0x38d805(0x55a)][_0x38d805(0x363)];}[_0x120d79(0x421)](_0x56074d){const _0x4d6dc1=_0x120d79;if(this[_0x4d6dc1(0x55a)][_0x4d6dc1(0x306)]==null||!this[_0x4d6dc1(0x459)])return;const {width:_0x789bbe,height:_0x588103}=this,{width:_0x382969=0x0,height:_0x4e834f=0x0}=_0x56074d[_0x4d6dc1(0x1dd)],{left:_0x2f2081=0x0,top:_0x5a3e3b=0x0,right:_0x37d30f=0x0,bottom:_0x49923a=0x0}=this[_0x4d6dc1(0x55a)][_0x4d6dc1(0x306)];let _0x52db92=_0x2f2081,_0x481c95=_0x5a3e3b,_0x8f6355=_0x37d30f,_0x1ed9cf=_0x49923a,_0x5720d9=![];if(_0x382969!==0x0&&_0x382969!==_0x789bbe){const _0x21d52b=_0x2f2081/_0x382969,_0x41ba76=_0x37d30f/_0x382969;_0x52db92=_0x789bbe*_0x21d52b,_0x8f6355=_0x789bbe*_0x41ba76,_0x5720d9=!![];}if(_0x4e834f!==0x0&&_0x4e834f!==_0x588103){const _0x1daaa9=_0x5a3e3b/_0x4e834f,_0x5e763d=_0x49923a/_0x4e834f;_0x481c95=_0x588103*_0x1daaa9,_0x1ed9cf=_0x588103*_0x5e763d,_0x5720d9=!![];}if(_0x5720d9)this[_0x4d6dc1(0x385)]({'left':_0x52db92,'top':_0x481c95,'right':_0x8f6355,'bottom':_0x1ed9cf});}[_0x120d79(0x385)](_0x2b59fb){const _0x116a6a=_0x120d79;this[_0x116a6a(0x55a)]['srcRect']=_0x2b59fb,this[_0x116a6a(0x44f)](!![]);}['setFillImage'](_0x5a8161){const _0x5dce52=_0x120d79;this[_0x5dce52(0x55a)][_0x5dce52(0x3db)]=_0x5a8161,this['makeDirty'](!![]);}set['transform'](_0x2e403f){this['_transform']=_0x2e403f;}get[_0x120d79(0x664)](){const _0x37f784=_0x120d79;if(!this[_0x37f784(0x370)])this['_setTransForm']();const _0x1d9629=this[_0x37f784(0x370)][_0x37f784(0x1e2)]();return this['transformForAngle'](_0x1d9629);}get['shapeModel'](){const _0x8f5224=_0x120d79;return this['_props'][_0x8f5224(0x560)];}get[_0x120d79(0x5ec)](){const _0x4129db=_0x120d79;return this[_0x4129db(0x55a)][_0x4129db(0x5ec)];}get[_0x120d79(0x693)](){const _0x36bf5b=_0x120d79;return _univerjs_engine_render[_0x36bf5b(0x223)][_0x36bf5b(0x392)];}[_0x120d79(0x224)](_0x54d11a,_0xaba760,_0x18a7af,_0x462e46){const _0x54977c=_0x120d79,_0x4ab4b6=this[_0x54977c(0x55a)][_0x54977c(0x560)];if(!_0x4ab4b6||!_0xaba760)return;const _0x20538d=_0x18a7af!==null&&_0x18a7af!==void 0x0?_0x18a7af:this[_0x54977c(0x52c)],_0x21b257=_0x462e46!==null&&_0x462e46!==void 0x0?_0x462e46:this['height'],_0x5a3dbd={'shapeType':_0x4ab4b6['getShapeType'](),'width':_0x20538d,'height':_0x21b257},_0x11f739={'renderMode':_univerjs_pro_engine_shape[_0x54977c(0x67b)]['Path'],'oKey':this[_0x54977c(0x67d)],'image':this[_0x54977c(0x55a)]['image'],'angle':this[_0x54977c(0x3af)]};_0x4ab4b6[_0x54977c(0x5b0)](_0x5a3dbd),_0x54d11a[_0x54977c(0x316)]();const _0x41fa62={'top':0x0,'left':0x0,'width':_0x20538d,'height':_0x21b257};_0x4ab4b6['render'](_0x54d11a,_0x41fa62,_0x11f739),_0x54d11a[_0x54977c(0x65c)]();const _0x1d54d7=_0x4ab4b6[_0x54977c(0x5bc)](),_0x2637f1=_0x4ab4b6[_0x54977c(0x4f9)](_0x41fa62),_0x1b5249=_0x4ab4b6[_0x54977c(0x208)]();if(_0x1d54d7&&_0x2637f1&&!_0x1b5249){_0x54d11a['save']();if(this['getState']()[_0x54977c(0x158)])_0x54d11a[_0x54977c(0x3da)](-0x1,0x1);const _0x58107f=_0x20538d/0x2,_0x68608e=_0x21b257/0x2;_0x54d11a[_0x54977c(0x5fb)](-_0x58107f,-_0x68608e),_0x54d11a[_0x54977c(0x42e)](),this[_0x54977c(0x650)](_0x54d11a,_0x1d54d7,_0x2637f1),_0x54d11a[_0x54977c(0x65c)]();}}[_0x120d79(0x21e)](_0x26d5fe){}[_0x120d79(0x650)](_0x2eebe3,_0x414008,_0x14e66b){const _0x508048=_0x120d79;if(this[_0x508048(0x55a)]['isEditing'])return;if('isRichText'in _0x414008&&_0x414008[_0x508048(0x578)]===![])this[_0x508048(0x446)](_0x2eebe3,_0x414008,_0x14e66b);else this['_drawRichText'](_0x2eebe3,_0x414008,_0x14e66b);}[_0x120d79(0x446)](_0x32d362,_0x9161d,_0xa1a795){}['_drawRichText'](_0x21630b,_0x3c2eac,_0x2196bf){const _0x3a1b11=_0x120d79;var _0x2028ea,_0x1c19b8;const _0x33390c=this[_0x3a1b11(0x55a)][_0x3a1b11(0x2d0)];if(!_0x3c2eac[_0x3a1b11(0x318)]||!_0x33390c){if(!_0x33390c)console[_0x3a1b11(0x28b)]('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}const _0xe6aaa2=_0x3c2eac['dataModel'],_0x3a104d=_0xe6aaa2[_0x3a1b11(0x511)],_0x5450f7=(_0x2028ea=_0xe6aaa2['va'])!==null&&_0x2028ea!==void 0x0?_0x2028ea:_univerjs_core[_0x3a1b11(0x1b7)][_0x3a1b11(0x550)],_0x41b7ff=(_0x1c19b8=_0xe6aaa2['ha'])!==null&&_0x1c19b8!==void 0x0?_0x1c19b8:_univerjs_core['HorizontalAlign']['LEFT'];if(!_0x3a104d)return;const _0x24f367=_0x3c2eac[_0x3a1b11(0x653)],_0x4cd3fd=prepareShapeTextDocumentData(_0x3a104d,{'isHorizontal':_0x24f367!==![],'textRect':_0x2196bf,'verticalAlign':_0x5450f7,'horizontalAlign':_0x41b7ff}),_0x5775ad=new _univerjs_core[(_0x3a1b11(0x2ea))](_0x4cd3fd),_0x65cb9e=new _univerjs_engine_render['DocumentViewModel'](_0x5775ad),_0x2dd6b5=_univerjs_engine_render['DocumentSkeleton']['create'](_0x65cb9e,_0x33390c);console['warn'](_0x4cd3fd,_0x5775ad,_0x2dd6b5),_0x2dd6b5[_0x3a1b11(0x37d)]();const _0x21fdbb=new _univerjs_engine_render[(_0x3a1b11(0x377))](_0x3a1b11(0x5c8)+this[_0x3a1b11(0x67d)],_0x2dd6b5,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x21fdbb['resize'](_0x2196bf[_0x3a1b11(0x52c)],_0x2196bf[_0x3a1b11(0x340)]),_0x21630b['save'](),_0x21630b[_0x3a1b11(0x65d)](_0x2196bf[_0x3a1b11(0x2bb)],_0x2196bf[_0x3a1b11(0x21b)]),_0x21630b['beginPath'](),_0x21630b[_0x3a1b11(0x266)](0x0,0x0,_0x2196bf[_0x3a1b11(0x52c)],_0x2196bf['height']),_0x21630b['clip'](),_0x21fdbb[_0x3a1b11(0x2b2)](_0x21630b),_0x21630b[_0x3a1b11(0x65c)](),_0x21fdbb[_0x3a1b11(0x49e)](),_0x2dd6b5[_0x3a1b11(0x49e)](),_0x65cb9e['dispose'](),_0x5775ad['dispose']();}[_0x120d79(0x5a9)](_0x356fd7,_0x2ac440,_0x14ad25=![]){const _0x39a17e=_0x120d79;if(!this[_0x39a17e(0x215)])return this[_0x39a17e(0x44f)](![]),this;let {width:_0x2971ee,height:_0x16b8ab,left:_0x4be86e,top:_0x3a99c1}=this;const _0x4406b7=this[_0x39a17e(0x4ce)]();_0x2971ee=_0x4406b7['width'],_0x16b8ab=_0x4406b7[_0x39a17e(0x340)],_0x4be86e=_0x4406b7[_0x39a17e(0x2bb)],_0x3a99c1=_0x4406b7[_0x39a17e(0x21b)];if(this[_0x39a17e(0x23c)](_0x2ac440)){const {top:_0x49360c,left:_0x3067f5,bottom:_0x10d934,right:_0x599e70}=_0x2ac440[_0x39a17e(0x692)];if(_0x2971ee+this['strokeWidth']+_0x4be86e<_0x3067f5||_0x599e70<_0x4be86e||_0x16b8ab+this['strokeWidth']+_0x3a99c1<_0x49360c||_0x10d934<_0x3a99c1)return this;}const _0x556eac=_0x4be86e+_0x2971ee/0x2,_0x290159=_0x3a99c1+_0x16b8ab/0x2;let _0x3949a6=this[_0x39a17e(0x664)][_0x39a17e(0x494)]();if(this[_0x39a17e(0x55a)][_0x39a17e(0x235)]){const _0x295b5e=this[_0x39a17e(0x5f2)](),_0x2fb0c5=new _univerjs_engine_render[(_0x39a17e(0x2aa))]();_0x2fb0c5[_0x39a17e(0x3f7)]({..._0x295b5e}),_0x3949a6=_0x2fb0c5['getMatrix']();}_0x356fd7[_0x39a17e(0x316)]();if(this[_0x39a17e(0x55a)]['shapeModel']['isRenderLinePointsMode']===!![]){}else _0x356fd7[_0x39a17e(0x664)](_0x3949a6[0x0],_0x3949a6[0x1],_0x3949a6[0x2],_0x3949a6[0x3],_0x556eac,_0x290159);return this[_0x39a17e(0x224)](_0x356fd7,_0x2ac440,_0x2971ee,_0x16b8ab),_0x356fd7[_0x39a17e(0x65c)](),this[_0x39a17e(0x44f)](![]),this;}['getInverseCoord'](_0x3afdae){const _0x201d6e=_0x120d79,{left:_0x32eecc,top:_0x331f8f,width:_0x96c458,height:_0x101105}=this[_0x201d6e(0x4ce)](),_0x1dbcca=this[_0x201d6e(0x664)][_0x201d6e(0x494)](),_0x1c4412=_0x32eecc+_0x96c458/0x2,_0x1ce6bb=_0x331f8f+_0x101105/0x2,_0x5099c9=new _univerjs_engine_render[(_0x201d6e(0x2aa))]([_0x1dbcca[0x0],_0x1dbcca[0x1],_0x1dbcca[0x2],_0x1dbcca[0x3],_0x1c4412,_0x1ce6bb]),_0x5085bb=this['getParent']();return(this[_0x201d6e(0x3fe)]&&(_0x5085bb===null||_0x5085bb===void 0x0?void 0x0:_0x5085bb[_0x201d6e(0x693)])===_univerjs_engine_render[_0x201d6e(0x223)][_0x201d6e(0x13e)]?_0x5085bb[_0x201d6e(0x292)]['multiply'](_0x5099c9):_0x5099c9)[_0x201d6e(0x682)]()[_0x201d6e(0x3e5)](_0x3afdae);}['isHit'](_0x2050cd){const _0x127114=_0x120d79,{left:_0x3b02b7,top:_0x12de96,width:_0x3e39f8,height:_0x159ee0}=this[_0x127114(0x4ce)](),_0x200c31=_0x3b02b7+_0x3e39f8/0x2,_0x363612=_0x12de96+_0x159ee0/0x2,_0x25b908=this[_0x127114(0x664)][_0x127114(0x494)](),_0x34e1a2=new _univerjs_engine_render['Transform']([_0x25b908[0x0],_0x25b908[0x1],_0x25b908[0x2],_0x25b908[0x3],_0x200c31,_0x363612]),_0x41770d=this[_0x127114(0x61c)](),_0x472e7f=(this[_0x127114(0x3fe)]&&(_0x41770d===null||_0x41770d===void 0x0?void 0x0:_0x41770d['classType'])===_univerjs_engine_render[_0x127114(0x223)][_0x127114(0x13e)]?_0x41770d[_0x127114(0x292)][_0x127114(0x4ad)](_0x34e1a2):_0x34e1a2)[_0x127114(0x682)]()[_0x127114(0x3e5)](_0x2050cd),_0x19c1e9=_0x3e39f8/0x2,_0x204442=_0x159ee0/0x2,_0x5e19e4=this[_0x127114(0x55a)][_0x127114(0x560)];if(_0x5e19e4&&_0x5e19e4[_0x127114(0x208)]())return _0x5e19e4[_0x127114(0x231)](_0x472e7f['x'],_0x472e7f['y'],_0x3e39f8,_0x159ee0);if(_0x472e7f['x']>=-_0x19c1e9-this[_0x127114(0x2c7)]/0x2&&_0x472e7f['x']<=_0x19c1e9+this[_0x127114(0x2c7)]/0x2&&_0x472e7f['y']>=-_0x204442-this[_0x127114(0x2c7)]/0x2&&_0x472e7f['y']<=_0x204442+this[_0x127114(0x2c7)]/0x2)return!![];return![];}[_0x120d79(0x49e)](){const _0x99076f=_0x120d79;this[_0x99076f(0x55a)][_0x99076f(0x560)]=null,super[_0x99076f(0x49e)]();}};function __decorateParam(_0x555d7c,_0x3ddd6e){return function(_0x107219,_0x1d67f4){_0x3ddd6e(_0x107219,_0x1d67f4,_0x555d7c);};}function __decorate(_0x11d5a,_0x2959fc,_0x317a4d,_0x120e8f){const _0x4c2672=_0x120d79;var _0xaf30f5=arguments[_0x4c2672(0x620)],_0x4699da=_0xaf30f5<0x3?_0x2959fc:_0x120e8f===null?_0x120e8f=Object[_0x4c2672(0x2a7)](_0x2959fc,_0x317a4d):_0x120e8f,_0x246982;if(typeof Reflect===_0x4c2672(0x1d8)&&typeof Reflect[_0x4c2672(0x626)]===_0x4c2672(0x45e))_0x4699da=Reflect[_0x4c2672(0x626)](_0x11d5a,_0x2959fc,_0x317a4d,_0x120e8f);else{for(var _0x190dc0=_0x11d5a[_0x4c2672(0x620)]-0x1;_0x190dc0>=0x0;_0x190dc0--)if(_0x246982=_0x11d5a[_0x190dc0])_0x4699da=(_0xaf30f5<0x3?_0x246982(_0x4699da):_0xaf30f5>0x3?_0x246982(_0x2959fc,_0x317a4d,_0x4699da):_0x246982(_0x2959fc,_0x317a4d))||_0x4699da;}return _0xaf30f5>0x3&&_0x4699da&&Object['defineProperty'](_0x2959fc,_0x317a4d,_0x4699da),_0x4699da;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x11efab,_0x30b06b,_0x19d94e,_0x1a2ae4,_0x21b4ee){const _0x373bd9=_0x120d79;super(),this[_0x373bd9(0x50b)]=_0x11efab,this[_0x373bd9(0x64f)]=_0x30b06b,this[_0x373bd9(0x322)]=_0x19d94e,this[_0x373bd9(0x383)]=_0x1a2ae4,this['_urlImageService']=_0x21b4ee;}[_0x120d79(0x531)](_0x3607cb,_0x4761a8){const _0x31789d=_0x120d79,{transform:_0x36886e,drawingType:_0x749487,srcRect:_0x36a270,prstGeom:_0x2f408e,groupId:_0x56403c,unitId:_0x53f3c9,subUnitId:_0x353df2,drawingId:_0x3411ac,isMultiTransform:_0x2e06f9,transforms:_0x11b88d,hidden:_0x4eb17f}=_0x3607cb;if(_0x749487!==_univerjs_core[_0x31789d(0x166)][_0x31789d(0x525)])return;if(!this[_0x31789d(0x50b)][_0x31789d(0x3e9)]())return;if(_0x36886e==null)return;const _0x311b53=_0x2e06f9&&_0x11b88d?_0x11b88d:[_0x36886e],_0xa69ac5=[];for(const _0x5a419f of _0x311b53){const {left:_0x31c734,top:_0x3bed2e,width:_0x5af4b5,height:_0x56ce1e,angle:_0x25cca5,flipX:_0x3f7c73,flipY:_0x4e1610,skewX:_0x48b138,skewY:_0x30e685}=_0x5a419f,_0x593b66=_0x311b53[_0x31789d(0x2e0)](_0x5a419f),_0xe7fdf6=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x53f3c9,'subUnitId':_0x353df2,'drawingId':_0x3411ac},_0x2e06f9?_0x593b66:void 0x0),_0x8a58f7=_0x4761a8[_0x31789d(0x502)](_0xe7fdf6);if(_0x8a58f7!=null){_0x8a58f7['transformByState']({'left':_0x31c734,'top':_0x3bed2e,'width':_0x5af4b5,'height':_0x56ce1e,'angle':_0x25cca5,'flipX':_0x3f7c73,'flipY':_0x4e1610,'skewX':_0x48b138,'skewY':_0x30e685});continue;}const _0x3abebe=this[_0x31789d(0x50b)][_0x31789d(0x5d8)](_0x53f3c9,_0x353df2),_0x272e64=_0x3abebe[_0x31789d(0x2e0)](_0x3411ac);if(_0x4761a8[_0x31789d(0x502)](_0xe7fdf6))continue;if(!this[_0x31789d(0x50b)][_0x31789d(0x3e9)]())continue;const _0xe6e3b8=this[_0x31789d(0x64f)][_0x31789d(0x483)](_0x53f3c9,_0x353df2,_0x3411ac);if(!_0xe6e3b8)continue;const _0x1ca865=new DrawingShape(_0xe7fdf6,{...(0x0,_univerjs_pro_engine_shape[_0x31789d(0x205)])(_0xe6e3b8[_0x31789d(0x5a2)]())?{..._0x5a419f,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x5a419f},'zIndex':_0x272e64===-0x1?_0x3abebe[_0x31789d(0x620)]-0x1:_0x272e64,'shapeModel':_0xe6e3b8,'localeService':this['_localeService'],'shapeId':_0x3411ac,'unitId':_0x53f3c9,'subUnitId':_0x353df2,'visible':_0x4eb17f!==!![]});_0x4761a8['addObject'](_0x1ca865,_univerjs_engine_render[_0x31789d(0x2ac)]);if(this[_0x31789d(0x50b)][_0x31789d(0x3dc)]())_0x4761a8[_0x31789d(0x27a)](_0x1ca865);_0x56403c&&(0x0,_univerjs_drawing_ui[_0x31789d(0x24d)])({'drawingId':_0x56403c,'unitId':_0x53f3c9,'subUnitId':_0x353df2},_0x1ca865,_0x4761a8,this['_drawingManagerService']);if(_0x2f408e!=null)_0x1ca865['setPrstGeom'](_0x2f408e);if(_0x36a270!=null)_0x1ca865[_0x31789d(0x385)](_0x36a270);this[_0x31789d(0x27d)](_0x1ca865,_0xe6e3b8[_0x31789d(0x2fb)]()),_0xa69ac5['push'](_0x1ca865);}return _0xa69ac5;}['_loadShapePictureFill'](_0x1ccd20,_0x3e7d0c){const _0x54748b=_0x120d79;var _0x36363a;const _0x99d521=_0x3e7d0c[_0x54748b(0x252)];if(!_0x99d521||_0x99d521[_0x54748b(0x602)]!==_univerjs_pro_engine_shape[_0x54748b(0x65b)][_0x54748b(0x4f8)]||!_0x99d521['fillImageSource'])return;const _0x1bc146=_0x99d521[_0x54748b(0x3ae)],_0x5630bf=(_0x36363a=_0x99d521[_0x54748b(0x1bb)])!==null&&_0x36363a!==void 0x0?_0x36363a:_univerjs_pro_engine_shape[_0x54748b(0x2c4)][_0x54748b(0x387)],_0x51f244=this['_imageIoService'][_0x54748b(0x216)](_0x1bc146,_0x5630bf);if(_0x51f244){_0x1ccd20[_0x54748b(0x575)](_0x51f244);return;}this[_0x54748b(0x591)](_0x1ccd20,_0x1bc146,_0x5630bf);}async[_0x120d79(0x591)](_0x3f6a68,_0x1eac19,_0xace02d){const _0x31c05b=_0x120d79;let _0x25914b;try{if(_0xace02d===_univerjs_pro_engine_shape['ImageSourceTypeEnum'][_0x31c05b(0x499)])_0x25914b=await this[_0x31c05b(0x383)]['getImage'](_0x1eac19);else{if(_0xace02d===_univerjs_pro_engine_shape[_0x31c05b(0x2c4)][_0x31c05b(0x387)])try{_0x25914b=await this[_0x31c05b(0x600)][_0x31c05b(0x2b5)](_0x1eac19);}catch{_0x25914b=_0x1eac19;}else _0x25914b=_0x1eac19;}}catch(_0x24ec93){console[_0x31c05b(0x35b)](_0x31c05b(0x1c8),_0x24ec93);return;}const _0x36a2c3=new window[(_0x31c05b(0x4e8))]();_0x36a2c3['onload']=()=>{const _0x36ff58=_0x31c05b;this['_imageIoService'][_0x36ff58(0x331)](_0x1eac19,_0xace02d,_0x36a2c3),_0x3f6a68[_0x36ff58(0x575)](_0x36a2c3);},_0x36a2c3[_0x31c05b(0x167)]=()=>{const _0x321e37=_0x31c05b;console[_0x321e37(0x35b)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x1eac19);},_0x36a2c3[_0x31c05b(0x4ea)]=_0x25914b;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing[_0x120d79(0x534)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_pro_sheets_shape[_0x120d79(0x293)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x3,_univerjs_drawing[_0x120d79(0x663)]),__decorateParam(0x4,_univerjs_core['IURLImageService'])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x40d9a4,_0x3779b1,_0x22151a,_0x4a61a8,_0xf8267,_0x232b54){const _0x3a56f0=_0x120d79;super(),this[_0x3a56f0(0x23b)]=_0x40d9a4,this['_renderManagerService']=_0x3779b1,this['_drawingManagerService']=_0x22151a,this[_0x3a56f0(0x34b)]=_0x4a61a8,this[_0x3a56f0(0x1d0)]=_0xf8267,this[_0x3a56f0(0x2cc)]=_0x232b54,this[_0x3a56f0(0x57f)]();}[_0x120d79(0x57f)](){const _0x3fa8f2=_0x120d79;this[_0x3fa8f2(0x1e1)](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x17ffaf=_0x120d79;this[_0x17ffaf(0x3cd)](this['_drawingManagerService'][_0x17ffaf(0x160)][_0x17ffaf(0x22f)](_0x104a31=>{this['_insertShapes'](_0x104a31);}));}[_0x120d79(0x1ce)](){const _0x2ecc65=_0x120d79;this[_0x2ecc65(0x3cd)](this[_0x2ecc65(0x23b)][_0x2ecc65(0x332)](_0x35ae31=>{const _0x15b660=_0x2ecc65;if(_0x35ae31['id']===_univerjs_pro_sheets_shape[_0x15b660(0x303)]['id']){var _0x3a3af8;const {unitId:_0x90dd7d,subUnitId:_0x2226ef,shapeId:_0x4f6f60}=_0x35ae31['params'],_0x5109e7=this[_0x15b660(0x4b4)](_0x90dd7d);if(_0x5109e7==null)return;const {scene:_0x3f0fb7}=_0x5109e7,_0x11311c=(0x0,_univerjs_drawing[_0x15b660(0x62e)])({'unitId':_0x90dd7d,'subUnitId':_0x2226ef,'drawingId':_0x4f6f60}),_0x4b91b3=_0x3f0fb7[_0x15b660(0x502)](_0x11311c);if(!((_0x3a3af8=this[_0x15b660(0x38c)][_0x15b660(0x333)](_0x90dd7d))===null||_0x3a3af8===void 0x0?void 0x0:_0x3a3af8[_0x15b660(0x442)](_univerjs_sheets_ui[_0x15b660(0x30a)])['getSkeleton'](_0x2226ef)))return![];if(_0x4b91b3)return;this['_insertShapes']([{'unitId':_0x90dd7d,'subUnitId':_0x2226ef,'drawingId':_0x4f6f60}]);}}));}[_0x120d79(0x39a)](){const _0x3cb0e5=_0x120d79;this[_0x3cb0e5(0x3cd)](this[_0x3cb0e5(0x50b)]['update$']['subscribe'](_0x3f6d1a=>{_0x3f6d1a['forEach'](_0x312a2e=>{const _0x57c8eb=_0x3b97,{unitId:_0x41dbe9,subUnitId:_0x2c31dd,drawingId:_0x173053}=_0x312a2e,_0x551547=this[_0x57c8eb(0x50b)]['getDrawingByParam'](_0x312a2e);if(_0x551547==null)return;const {transform:_0x46e205,drawingType:_0x4bf2ab,srcRect:_0x1158d7,prstGeom:_0x40e90a}=_0x551547;if(_0x4bf2ab!==_univerjs_core[_0x57c8eb(0x166)]['DRAWING_SHAPE'])return;const _0x2cc5cd=this['_getSceneAndTransformerByDrawingSearch'](_0x41dbe9);if(_0x2cc5cd==null)return;const {scene:_0x9ef3d7,transformer:_0x10ebe6}=_0x2cc5cd;if(_0x46e205==null)return!![];const _0x3a263a=(0x0,_univerjs_drawing[_0x57c8eb(0x62e)])({'unitId':_0x41dbe9,'subUnitId':_0x2c31dd,'drawingId':_0x173053}),_0x332d3e=_0x9ef3d7[_0x57c8eb(0x502)](_0x3a263a);if(_0x332d3e==null)return!![];_0x332d3e[_0x57c8eb(0x385)](_0x1158d7),_0x332d3e[_0x57c8eb(0x2be)](_0x40e90a);});}));}[_0x120d79(0x55f)](_0x34671b,_0x6260a8){const _0x1a5442=_0x120d79,{unitId:_0x169c54,subUnitId:_0x454b73,drawingId:_0x189e93}=_0x34671b,_0x4c0caf=this[_0x1a5442(0x4b4)](_0x169c54);if(_0x4c0caf==null)return;const {scene:_0x423ed2}=_0x4c0caf,_0x3f3f8b=(0x0,_univerjs_drawing[_0x1a5442(0x62e)])({'unitId':_0x169c54,'subUnitId':_0x454b73,'drawingId':_0x189e93}),_0x4f1309=_0x423ed2[_0x1a5442(0x502)](_0x3f3f8b);if(_0x4f1309==null)return;_0x4f1309[_0x1a5442(0x575)](_0x6260a8);}[_0x120d79(0x206)](_0x1085f8){const _0x3b94f6=_0x120d79;_0x1085f8[_0x3b94f6(0x19a)](async _0x27b317=>{const _0x25a67e=_0x3b94f6;var _0x3c5e07;const {unitId:_0x53647d,subUnitId:_0x2073b4}=_0x27b317,_0x2a6f2f=this[_0x25a67e(0x4b4)](_0x53647d),_0x3a2cd8=(_0x3c5e07=(0x0,_univerjs_drawing_ui[_0x25a67e(0x1d4)])(this['_currentUniverService'],_0x53647d))===null||_0x3c5e07===void 0x0?void 0x0:_0x3c5e07[_0x25a67e(0x363)];if(_0x2a6f2f==null||_0x3a2cd8!==_0x2073b4)return;const _0x3b1acb=this[_0x25a67e(0x50b)][_0x25a67e(0x41f)](_0x27b317);if(_0x3b1acb==null)return;if(_0x3b1acb[_0x25a67e(0x14f)]!==_univerjs_core[_0x25a67e(0x166)][_0x25a67e(0x525)])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])((_0x3b1acb['data']||{})['shapeType'])){const _0x36dc84=_0x3b1acb[_0x25a67e(0x664)];if(_0x36dc84)_0x3b1acb[_0x25a67e(0x664)]={..._0x36dc84,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this['_drawingManagerService'][_0x25a67e(0x244)]([_0x3b1acb]),this['_sheetDrawingShapeRenderController'][_0x25a67e(0x531)](_0x3b1acb,_0x2a6f2f[_0x25a67e(0x57a)]);});}[_0x120d79(0x4b4)](_0x31a5cf){const _0x1947d6=_0x120d79;if(_0x31a5cf==null)return;const _0x1ecd75=this[_0x1947d6(0x38c)][_0x1947d6(0x333)](_0x31a5cf),_0xbda8ce=_0x1ecd75===null||_0x1ecd75===void 0x0?void 0x0:_0x1ecd75['scene'];if(_0xbda8ce==null)return null;return{'scene':_0xbda8ce,'transformer':_0xbda8ce[_0x1947d6(0x532)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core[_0x120d79(0x3b2)]),__decorateParam(0x1,_univerjs_engine_render[_0x120d79(0x2a6)]),__decorateParam(0x2,_univerjs_drawing[_0x120d79(0x534)]),__decorateParam(0x3,_univerjs_core[_0x120d79(0x28f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_drawing_ui['DrawingRenderService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x120d79(0x1a2)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x21ef05){const _0x539d4f=_0x120d79;var _0x5388c0,_0x36401b,_0x56860f,_0xcf7455,_0x1ee59c,_0x5cf24d,_0x4fc335,_0x58fa15,_0x21a0c5,_0x303224,_0x2e7a0e,_0x148a26,_0x1ef8cb;const {unitId:_0x5bd86a,subUnitId:_0x64618a,shapeId:_0x37304b,shapeData:_0x1d5253,disableShapeOption:_0x33827b}=_0x21ef05,_0x286adf=(0x0,_univerjs_ui[_0x539d4f(0x258)])(_univerjs_core[_0x539d4f(0x2b1)]),_0x314203=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['ICommandService']),_0xcb2c92=(0x0,_univerjs_ui[_0x539d4f(0x258)])(_univerjs_core[_0x539d4f(0x4e0)]),_0x32113f=(0x0,_univerjs_ui[_0x539d4f(0x258)])(ShapeUpdateController),_0x39533d=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing['IImageIoService']),_0x13ee88=(0x0,react[_0x539d4f(0x151)])(null),_0x5ed289=_0x1d5253[_0x539d4f(0x252)],_0xb68287=!!(_0x5ed289===null||_0x5ed289===void 0x0?void 0x0:_0x5ed289[_0x539d4f(0x3ae)]),[_0x21f604,_0x163c78]=(0x0,react['useState'])((_0x5388c0=_0x5ed289===null||_0x5ed289===void 0x0?void 0x0:_0x5ed289['imageOpacity'])!==null&&_0x5388c0!==void 0x0?_0x5388c0:0x1),[_0x5dfed6,_0x53ddaa]=(0x0,react['useState'])((_0x36401b=_0x5ed289===null||_0x5ed289===void 0x0?void 0x0:_0x5ed289[_0x539d4f(0x2f5)])!==null&&_0x36401b!==void 0x0?_0x36401b:_univerjs_pro_engine_shape[_0x539d4f(0x594)][_0x539d4f(0x288)]),[_0x1291a4,_0x4b8013]=(0x0,react[_0x539d4f(0x1e4)])((_0x56860f=_0x5ed289===null||_0x5ed289===void 0x0?void 0x0:_0x5ed289[_0x539d4f(0x484)])!==null&&_0x56860f!==void 0x0?_0x56860f:![]),[_0x38039a,_0x3bbe68]=(0x0,react[_0x539d4f(0x1e4)])((_0xcf7455=_0x5ed289===null||_0x5ed289===void 0x0||(_0x1ee59c=_0x5ed289[_0x539d4f(0x2a5)])===null||_0x1ee59c===void 0x0?void 0x0:_0x1ee59c[_0x539d4f(0x1ed)])!==null&&_0xcf7455!==void 0x0?_0xcf7455:0x0),[_0x455200,_0x5d6e4c]=(0x0,react[_0x539d4f(0x1e4)])((_0x5cf24d=_0x5ed289===null||_0x5ed289===void 0x0||(_0x4fc335=_0x5ed289['imageTile'])===null||_0x4fc335===void 0x0?void 0x0:_0x4fc335['offsetY'])!==null&&_0x5cf24d!==void 0x0?_0x5cf24d:0x0),[_0x56c055,_0x48eb4d]=(0x0,react['useState'])((_0x58fa15=_0x5ed289===null||_0x5ed289===void 0x0||(_0x21a0c5=_0x5ed289[_0x539d4f(0x2a5)])===null||_0x21a0c5===void 0x0?void 0x0:_0x21a0c5[_0x539d4f(0x28e)])!==null&&_0x58fa15!==void 0x0?_0x58fa15:0x1),[_0x5872a6,_0x5a72e4]=(0x0,react[_0x539d4f(0x1e4)])((_0x303224=_0x5ed289===null||_0x5ed289===void 0x0||(_0x2e7a0e=_0x5ed289[_0x539d4f(0x2a5)])===null||_0x2e7a0e===void 0x0?void 0x0:_0x2e7a0e['scaleY'])!==null&&_0x303224!==void 0x0?_0x303224:0x1),[_0x22118c,_0x4f58f5]=(0x0,react[_0x539d4f(0x1e4)])((_0x148a26=_0x5ed289===null||_0x5ed289===void 0x0||(_0x1ef8cb=_0x5ed289[_0x539d4f(0x2a5)])===null||_0x1ef8cb===void 0x0?void 0x0:_0x1ef8cb[_0x539d4f(0x339)])!==null&&_0x148a26!==void 0x0?_0x148a26:'tl'),_0x7f561f=_0x5dfed6===_univerjs_pro_engine_shape[_0x539d4f(0x594)][_0x539d4f(0x524)],_0x5a66c2=Math[_0x539d4f(0x481)]((0x1-_0x21f604)*0x64),_0xcd85e9=Math[_0x539d4f(0x481)](_0x56c055*0x64),_0x5a4957=Math[_0x539d4f(0x481)](_0x5872a6*0x64),_0x87bb3d=_0x5a1556=>_0x286adf['t'](_0x5a1556),_0x1c7fb2=[{'label':_0x87bb3d(_0x539d4f(0x561)),'value':'tl'},{'label':_0x87bb3d('sheets-shape.fill.picture.align.t'),'value':'t'},{'label':_0x87bb3d(_0x539d4f(0x5ad)),'value':'tr'},{'label':_0x87bb3d(_0x539d4f(0x1ae)),'value':'l'},{'label':_0x87bb3d('sheets-shape.fill.picture.align.ctr'),'value':'ctr'},{'label':_0x87bb3d('sheets-shape.fill.picture.align.r'),'value':'r'},{'label':_0x87bb3d(_0x539d4f(0x5e6)),'value':'bl'},{'label':_0x87bb3d(_0x539d4f(0x60e)),'value':'b'},{'label':_0x87bb3d(_0x539d4f(0x353)),'value':'br'}],_0x4e5033=_0xc4dc02=>{updateShapeData(_0x314203,_0x5bd86a,_0x64618a,_0x37304b,{'oldShapeData':{'fill':_0x5ed289?{..._0x5ed289}:void 0x0}},{'fill':{..._0x5ed289,..._0xc4dc02}});},_0x1ae01b=_0x45ba7d=>{const _0x4b325f=_0x539d4f;_0x4e5033({'imageTile':{..._0x5ed289===null||_0x5ed289===void 0x0?void 0x0:_0x5ed289[_0x4b325f(0x2a5)],..._0x45ba7d}});},_0x440f74=()=>{const _0x48890d=_0x539d4f;var _0x272e82;return(_0x272e82=_0x13ee88[_0x48890d(0x17c)])===null||_0x272e82===void 0x0?void 0x0:_0x272e82[_0x48890d(0x2e7)]();},_0x58e7c4=async _0x2dde41=>{const _0x3b4267=_0x539d4f;var _0x45c385;const _0x29e415=(_0x45c385=_0x2dde41[_0x3b4267(0x573)][_0x3b4267(0x545)])===null||_0x45c385===void 0x0?void 0x0:_0x45c385[0x0];if(!_0x29e415)return;_0x2dde41['target'][_0x3b4267(0x5f4)]='';const _0x20a620=await _0x39533d[_0x3b4267(0x33b)](_0x29e415);if(_0x20a620==null)return;const {imageSourceType:_0x5d561f,source:_0xd4a7f8,base64Cache:_0x426800}=_0x20a620,{image:_0x29b5fb}=await(0x0,_univerjs_drawing['getImageSize'])(_0x426800||'');_0x39533d[_0x3b4267(0x331)](_0xd4a7f8,_0x5d561f,_0x29b5fb),updateShapeData(_0x314203,_0x5bd86a,_0x64618a,_0x37304b,{'oldShapeData':{'fill':_0x5ed289?{..._0x5ed289}:void 0x0}},{'fill':{..._0x5ed289,'fillType':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x3b4267(0x4f8)],'fillImageSource':_0xd4a7f8,'fillImageSourceType':_0x5d561f}}),_0x32113f[_0x3b4267(0x55f)]({'unitId':_0x5bd86a,'subUnitId':_0x64618a,'drawingId':_0x37304b},_0x29b5fb);},_0x47947d=_0x539d4f(0x4ef),_0x455f4d=_0x539d4f(0x229);return(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x539d4f(0x1ab),'children':[(0x0,react_jsx_runtime[_0x539d4f(0x13a)])(_0x539d4f(0x391),{'className':_0x539d4f(0x648),'children':[(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x4e9),{'className':_0x47947d,'children':_0x87bb3d('sheets-shape.fill.picture.source')}),(0x0,react_jsx_runtime[_0x539d4f(0x13a)])(_0x539d4f(0x391),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x47b),{'ref':_0x13ee88,'type':_0x539d4f(0x3ee),'accept':_0x539d4f(0x1d7),'className':_0x539d4f(0x52a),'onChange':_0x58e7c4}),(0x0,react_jsx_runtime[_0x539d4f(0x13a)])(_0x539d4f(0x391),{'className':'group\x20univer-relative\x20univer-inline-block','children':[(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x2c6),{'type':_0x539d4f(0x2c6),'disabled':_0x33827b,'className':_0x539d4f(0x4a8),'onClick':_0x440f74,'children':(0x0,react_jsx_runtime['jsxs'])(_0x539d4f(0x4e9),{'children':[_0x87bb3d(_0x539d4f(0x3e1)),'\x20']})}),_0xb68287&&(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x391),{'className':_0x539d4f(0x2bf),'children':(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x31b),{'src':_0x5ed289===null||_0x5ed289===void 0x0?void 0x0:_0x5ed289[_0x539d4f(0x3ae)],'alt':'','className':_0x539d4f(0x492)})})]})]})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x455f4d,'children':[(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x4e9),{'className':_0x47947d,'children':_0x87bb3d('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x391),{'className':_0x539d4f(0x1f5),'children':(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_univerjs_design[_0x539d4f(0x516)],{'className':_0x539d4f(0x156),'value':_0x5a66c2,'disabled':_0x33827b,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x5c2505=>_0x5c2505+'%','parser':_0x4f9706=>(_0x4f9706===null||_0x4f9706===void 0x0?void 0x0:_0x4f9706[_0x539d4f(0x556)]('%',''))||'','onChange':_0x4e7aab=>{const _0x46a592=_0x539d4f,_0x24f3ee=(0x64-Math[_0x46a592(0x1ea)](0x0,Math[_0x46a592(0x625)](0x64,_0x4e7aab!==null&&_0x4e7aab!==void 0x0?_0x4e7aab:0x0)))/0x64;_0x163c78(_0x24f3ee),_0x4e5033({'imageOpacity':_0x24f3ee}),_0xcb2c92['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0xcb2c92['setContextValue'](_univerjs_core[_0x539d4f(0x4a5)],!![]),'onBlur':()=>_0xcb2c92[_0x539d4f(0x4d8)](_univerjs_core[_0x539d4f(0x4a5)],![])})})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Checkbox'],{'checked':_0x7f561f,'disabled':_0x33827b,'onChange':_0x4ac62a=>{const _0x39886e=_0x539d4f,_0x3acec3=_0x4ac62a?_univerjs_pro_engine_shape['ImageFillModeEnum'][_0x39886e(0x524)]:_univerjs_pro_engine_shape[_0x39886e(0x594)][_0x39886e(0x288)];_0x53ddaa(_0x3acec3),_0x4e5033({'imageFillMode':_0x3acec3});},'children':(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x4e9),{'className':_0x539d4f(0x1ec),'children':_0x87bb3d(_0x539d4f(0x3a3))})}),_0x7f561f&&(0x0,react_jsx_runtime[_0x539d4f(0x13a)])(_0x539d4f(0x391),{'className':_0x539d4f(0x43a),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x539d4f(0x391),{'className':_0x455f4d,'children':[(0x0,react_jsx_runtime['jsx'])(_0x539d4f(0x4e9),{'className':_0x47947d,'children':_0x87bb3d(_0x539d4f(0x249))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x539d4f(0x1f5),'children':(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_univerjs_design[_0x539d4f(0x516)],{'className':'univer-w-full','value':_0x38039a,'disabled':_0x33827b,'step':0x1,'onChange':_0x1ade46=>{_0x1ae01b({'offsetX':_0x1ade46!==null&&_0x1ade46!==void 0x0?_0x1ade46:0x0}),_0x3bbe68(_0x1ade46!==null&&_0x1ade46!==void 0x0?_0x1ade46:0x0);},'onFocus':()=>_0xcb2c92[_0x539d4f(0x4d8)](_univerjs_core[_0x539d4f(0x4a5)],!![]),'onBlur':()=>_0xcb2c92[_0x539d4f(0x4d8)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x539d4f(0x13a)])(_0x539d4f(0x391),{'className':_0x455f4d,'children':[(0x0,react_jsx_runtime['jsx'])(_0x539d4f(0x4e9),{'className':_0x47947d,'children':_0x87bb3d(_0x539d4f(0x645))}),(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x391),{'className':'univer-w-20','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x539d4f(0x516)],{'className':_0x539d4f(0x156),'value':_0x455200,'disabled':_0x33827b,'step':0x1,'onChange':_0x5dd258=>{_0x1ae01b({'offsetY':_0x5dd258!==null&&_0x5dd258!==void 0x0?_0x5dd258:0x0}),_0x5d6e4c(_0x5dd258!==null&&_0x5dd258!==void 0x0?_0x5dd258:0x0);},'onFocus':()=>_0xcb2c92[_0x539d4f(0x4d8)](_univerjs_core[_0x539d4f(0x4a5)],!![]),'onBlur':()=>_0xcb2c92[_0x539d4f(0x4d8)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x539d4f(0x13a)])(_0x539d4f(0x391),{'className':_0x455f4d,'children':[(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])('span',{'className':_0x47947d,'children':_0x87bb3d(_0x539d4f(0x40c))}),(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x391),{'className':_0x539d4f(0x1f5),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x539d4f(0x516)],{'className':_0x539d4f(0x156),'value':_0xcd85e9,'disabled':_0x33827b,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x545c3e=>_0x545c3e+'%','parser':_0x2f9d7e=>(_0x2f9d7e===null||_0x2f9d7e===void 0x0?void 0x0:_0x2f9d7e['replace']('%',''))||'','onChange':_0x4e8520=>{const _0x5cd5f5=_0x539d4f,_0x1cea97=Math[_0x5cd5f5(0x1ea)](0.01,(_0x4e8520!==null&&_0x4e8520!==void 0x0?_0x4e8520:0x64)/0x64);_0x48eb4d(_0x1cea97),_0x1ae01b({'scaleX':_0x1cea97}),_0xcb2c92[_0x5cd5f5(0x4d8)](_univerjs_core[_0x5cd5f5(0x4a5)],![]);},'onFocus':()=>_0xcb2c92['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0xcb2c92[_0x539d4f(0x4d8)](_univerjs_core[_0x539d4f(0x4a5)],![])})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x539d4f(0x391),{'className':_0x455f4d,'children':[(0x0,react_jsx_runtime['jsx'])(_0x539d4f(0x4e9),{'className':_0x47947d,'children':_0x87bb3d(_0x539d4f(0x35c))}),(0x0,react_jsx_runtime['jsx'])(_0x539d4f(0x391),{'className':_0x539d4f(0x1f5),'children':(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_univerjs_design['InputNumber'],{'className':'univer-w-full','value':_0x5a4957,'disabled':_0x33827b,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x36451f=>_0x36451f+'%','parser':_0x327a50=>(_0x327a50===null||_0x327a50===void 0x0?void 0x0:_0x327a50[_0x539d4f(0x556)]('%',''))||'','onChange':_0xdf39db=>{const _0x24b28b=_0x539d4f,_0x490a80=Math[_0x24b28b(0x1ea)](0.01,(_0xdf39db!==null&&_0xdf39db!==void 0x0?_0xdf39db:0x64)/0x64);_0x5a72e4(_0x490a80),_0x1ae01b({'scaleY':_0x490a80}),_0xcb2c92['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0xcb2c92[_0x539d4f(0x4d8)](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0xcb2c92['setContextValue'](_univerjs_core[_0x539d4f(0x4a5)],![])})})]}),(0x0,react_jsx_runtime[_0x539d4f(0x13a)])(_0x539d4f(0x391),{'className':_0x455f4d,'children':[(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x4e9),{'className':_0x47947d,'children':_0x87bb3d('sheets-shape.fill.picture.alignment')}),(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])('div',{'className':_0x539d4f(0x389),'children':(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_univerjs_design[_0x539d4f(0x350)],{'className':'univer-w-full','value':_0x22118c,'options':_0x1c7fb2,'disabled':_0x33827b,'onChange':_0x3d9b24=>{_0x4f58f5(_0x3d9b24),_0x1ae01b({'alignment':_0x3d9b24});}})})]})]}),(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_univerjs_design[_0x539d4f(0x3ac)],{'checked':_0x1291a4,'disabled':_0x33827b,'onChange':_0x40341f=>{_0x4b8013(_0x40341f),_0x4e5033({'imageRotateWithShape':_0x40341f});},'children':(0x0,react_jsx_runtime[_0x539d4f(0x3a2)])(_0x539d4f(0x4e9),{'className':_0x539d4f(0x1ec),'children':_0x87bb3d('sheets-shape.fill.picture.rotateWithShape')})})]});}function ShapeFillEditor(_0x57083c){const _0x18b1c9=_0x120d79;var _0x568961,_0x25c86f,_0x58f8a6;const _0xa4ad02=(0x0,_univerjs_ui[_0x18b1c9(0x258)])(_univerjs_core['LocaleService']),_0x20dc97=(0x0,_univerjs_ui[_0x18b1c9(0x258)])(_univerjs_core[_0x18b1c9(0x3b2)]),_0x15a972=(0x0,_univerjs_ui[_0x18b1c9(0x258)])(_univerjs_core[_0x18b1c9(0x4e0)]),{shapeData:_0x59e5fc,isLineShape:_0x5c26a1,unitId:_0x135f11,subUnitId:_0x14f8de,shapeId:_0x3f9596,disableShapeOption:_0x4ba7b1}=_0x57083c,[_0x211bca,_0x4ede9b]=(0x0,react[_0x18b1c9(0x1e4)])(((_0x568961=_0x59e5fc[_0x18b1c9(0x252)])===null||_0x568961===void 0x0?void 0x0:_0x568961[_0x18b1c9(0x602)])||_univerjs_pro_engine_shape['ShapeFillEnum'][_0x18b1c9(0x42d)]),[_0x7df96e,_0x4e54f0]=(0x0,react[_0x18b1c9(0x1e4)])(((_0x25c86f=_0x59e5fc[_0x18b1c9(0x252)])===null||_0x25c86f===void 0x0?void 0x0:_0x25c86f[_0x18b1c9(0x4e6)])||_univerjs_pro_engine_shape[_0x18b1c9(0x491)]['fill']),[_0x5217dc,_0x2beddc]=(0x0,react[_0x18b1c9(0x1e4)])(((_0x58f8a6=_0x59e5fc['fill'])===null||_0x58f8a6===void 0x0?void 0x0:_0x58f8a6[_0x18b1c9(0x28a)])||0x1),[_0x1d5335,_0x40619d]=(0x0,react[_0x18b1c9(0x1e4)])(![]);if(_0x5c26a1)return null;const _0x86eeb4=0x64-_0x5217dc*0x64;return(0x0,react_jsx_runtime[_0x18b1c9(0x13a)])(_0x18b1c9(0x391),{'className':_0x18b1c9(0x328),'children':[(0x0,react_jsx_runtime[_0x18b1c9(0x13a)])(_univerjs_design[_0x18b1c9(0x60a)],{'value':_0x211bca,'disabled':_0x4ba7b1,'onChange':_0x513fc1=>{const _0x323d7e=_0x18b1c9;var _0x2dfa63;updateShapeData(_0x20dc97,_0x135f11,_0x14f8de,_0x3f9596,{'oldShapeData':{'fill':{'fillType':(_0x2dfa63=_0x59e5fc[_0x323d7e(0x252)])===null||_0x2dfa63===void 0x0?void 0x0:_0x2dfa63[_0x323d7e(0x602)]}}},{'fill':{'fillType':_0x513fc1}}),_0x4ede9b(_0x513fc1);},'direction':_0x18b1c9(0x338),'children':[(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_univerjs_design[_0x18b1c9(0x161)],{'value':_univerjs_pro_engine_shape[_0x18b1c9(0x65b)][_0x18b1c9(0x281)],'children':(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_0x18b1c9(0x4e9),{'className':'univer-text-sm','children':_0xa4ad02['t'](_0x18b1c9(0x47f))})}),(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape[_0x18b1c9(0x65b)][_0x18b1c9(0x42d)],'children':(0x0,react_jsx_runtime['jsx'])(_0x18b1c9(0x4e9),{'className':_0x18b1c9(0x1ec),'children':_0xa4ad02['t'](_0x18b1c9(0x3df))})}),(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_univerjs_design[_0x18b1c9(0x161)],{'value':_univerjs_pro_engine_shape[_0x18b1c9(0x65b)]['GradientFill'],'children':(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x18b1c9(0x1ec),'children':_0xa4ad02['t'](_0x18b1c9(0x373))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x18b1c9(0x161)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x18b1c9(0x4f8)],'children':(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])('span',{'className':_0x18b1c9(0x1ec),'children':_0xa4ad02['t'](_0x18b1c9(0x639))})})]}),_0x211bca===_univerjs_pro_engine_shape[_0x18b1c9(0x65b)]['SolidFill']&&(0x0,react_jsx_runtime[_0x18b1c9(0x13a)])('div',{'className':_0x18b1c9(0x53e),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x18b1c9(0x391),{'className':_0x18b1c9(0x51d),'children':[(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xa4ad02['t']('sheets-shape.fill.color')}),(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_univerjs_design[_0x18b1c9(0x3b1)],{'disabled':_0x4ba7b1,'overlay':(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_0x18b1c9(0x391),{'className':_0x18b1c9(0x36a),'children':(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_univerjs_design[_0x18b1c9(0x4b2)],{'value':_0x7df96e,'onChange':_0x5961c4=>{const _0x21256a=_0x18b1c9;var _0x391e43;updateShapeData(_0x20dc97,_0x135f11,_0x14f8de,_0x3f9596,{'oldShapeData':{'fill':{'color':(_0x391e43=_0x59e5fc[_0x21256a(0x252)])===null||_0x391e43===void 0x0?void 0x0:_0x391e43[_0x21256a(0x4e6)]}}},{'fill':{'color':_0x5961c4}}),_0x4e54f0(_0x5961c4),_0x40619d(![]);}})}),'open':_0x1d5335,'onOpenChange':_0x40619d,'children':(0x0,react_jsx_runtime[_0x18b1c9(0x13a)])('a',{'className':_0x18b1c9(0x3c5),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':'univer-text-xl\x20univer-text-gray-500','extend':{'colorChannel1':_0x7df96e}}),(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x18b1c9(0x256)],{'className':(0x0,_univerjs_design['clsx'])(_0x18b1c9(0x3ef),{'univer-rotate-180':_0x1d5335})})]})})]}),(0x0,react_jsx_runtime[_0x18b1c9(0x13a)])(_0x18b1c9(0x391),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x18b1c9(0x4e9),{'className':_0x18b1c9(0x4ef),'children':_0xa4ad02['t'](_0x18b1c9(0x2d3))}),(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_0x18b1c9(0x391),{'className':_0x18b1c9(0x2ef),'children':(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_0x18b1c9(0x391),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(_univerjs_design[_0x18b1c9(0x516)],{'className':_0x18b1c9(0x156),'value':_0x86eeb4,'disabled':_0x4ba7b1,'min':0x0,'max':0x64,'step':0xa,'formatter':_0xcaa11d=>_0xcaa11d+'%','parser':_0x3d7cb0=>(_0x3d7cb0===null||_0x3d7cb0===void 0x0?void 0x0:_0x3d7cb0['replace']('%',''))||'','onChange':_0x58531e=>{const _0x3d1301=_0x18b1c9,_0x23ef03=(0x64-Math['max'](0x0,Math['min'](0x64,_0x58531e!==null&&_0x58531e!==void 0x0?_0x58531e:0x0)))/0x64;_0x2beddc(_0x23ef03),updateShapeData(_0x20dc97,_0x135f11,_0x14f8de,_0x3f9596,{'oldShapeData':{'fill':{..._0x59e5fc[_0x3d1301(0x252)],'fillType':_0x211bca}}},{'fill':{..._0x59e5fc['fill'],'fillType':_0x211bca,'opacity':_0x23ef03}}),_0x15a972['setContextValue'](_univerjs_core[_0x3d1301(0x4a5)],![]);},'onFocus':()=>_0x15a972['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>{const _0x5a4902=_0x18b1c9;_0x15a972[_0x5a4902(0x4d8)](_univerjs_core[_0x5a4902(0x4a5)],![]);}})})})]})]}),_0x211bca===_univerjs_pro_engine_shape[_0x18b1c9(0x65b)][_0x18b1c9(0x321)]&&(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(GradientFillEditor,{'shapeData':_0x59e5fc,'disableShapeOption':_0x4ba7b1,'onUpdate':_0x59363a=>{const _0x5f3315=_0x18b1c9;updateShapeData(_0x20dc97,_0x135f11,_0x14f8de,_0x3f9596,{'oldShapeData':{'fill':{..._0x59e5fc[_0x5f3315(0x252)]}}},{'fill':{..._0x59e5fc[_0x5f3315(0x252)],..._0x59363a}});}}),_0x211bca===_univerjs_pro_engine_shape[_0x18b1c9(0x65b)]['PictureFill']&&(0x0,react_jsx_runtime[_0x18b1c9(0x3a2)])(ShapeImageFillEditor,{'unitId':_0x135f11,'subUnitId':_0x14f8de,'shapeId':_0x3f9596,'shapeData':_0x59e5fc,'disableShapeOption':_0x4ba7b1})]});}function shapeGradientTypeToPickerType(_0x1bdcce){const _0x32800d=_0x120d79;switch(_0x1bdcce){case _univerjs_pro_engine_shape[_0x32800d(0x239)][_0x32800d(0x384)]:return _0x32800d(0x2a8);case _univerjs_pro_engine_shape[_0x32800d(0x239)][_0x32800d(0x1ca)]:return _0x32800d(0x2cf);case _univerjs_pro_engine_shape['ShapeGradientTypeEnum']['Angular']:return'angular';case _univerjs_pro_engine_shape[_0x32800d(0x239)]['Diamond']:return _0x32800d(0x6a8);default:return'linear';}}function pickerTypeToShapeGradientType(_0x4942b4){const _0x740cbe=_0x120d79;switch(_0x4942b4){case'linear':return _univerjs_pro_engine_shape[_0x740cbe(0x239)][_0x740cbe(0x384)];case _0x740cbe(0x2cf):return _univerjs_pro_engine_shape[_0x740cbe(0x239)]['Radial'];case _0x740cbe(0x3ba):return _univerjs_pro_engine_shape[_0x740cbe(0x239)][_0x740cbe(0x207)];case _0x740cbe(0x6a8):return _univerjs_pro_engine_shape[_0x740cbe(0x239)]['Diamond'];default:return _univerjs_pro_engine_shape[_0x740cbe(0x239)][_0x740cbe(0x384)];}}function GradientFillEditor(_0x3e7aa7){const _0x30b40b=_0x120d79,{shapeData:_0xcf210b,disableShapeOption:_0x2ed49a,onUpdate:_0x3b9916}=_0x3e7aa7,_0x572398=(0x0,react['useMemo'])(()=>{const _0x433f1b=_0x3b97;var _0x279601;const _0x2c762a=_0xcf210b[_0x433f1b(0x252)];return{'type':shapeGradientTypeToPickerType(_0x2c762a===null||_0x2c762a===void 0x0?void 0x0:_0x2c762a[_0x433f1b(0x4e1)]),'angle':(_0x279601=_0x2c762a===null||_0x2c762a===void 0x0?void 0x0:_0x2c762a['gradientAngle'])!==null&&_0x279601!==void 0x0?_0x279601:0x5a,'stops':(_0x2c762a===null||_0x2c762a===void 0x0?void 0x0:_0x2c762a[_0x433f1b(0x283)])&&_0x2c762a['gradientStops'][_0x433f1b(0x620)]>=0x2?_0x2c762a[_0x433f1b(0x283)][_0x433f1b(0x640)](_0x15dc64=>({'color':_0x15dc64['color'],'offset':_0x15dc64[_0x433f1b(0x2e9)]*0x64})):[{'color':(_0x2c762a===null||_0x2c762a===void 0x0?void 0x0:_0x2c762a['color'])||'#ffffff','offset':0x0},{'color':_0x433f1b(0x549),'offset':0x64}]};},[_0xcf210b[_0x30b40b(0x252)]]),_0x502022=_0x267d5f=>{const _0x53e7ba=_0x30b40b,_0x29bb10=pickerTypeToShapeGradientType(_0x267d5f[_0x53e7ba(0x552)]),_0x44e795=_0x267d5f[_0x53e7ba(0x3af)];_0x3b9916({'gradientType':_0x29bb10,'gradientAngle':_0x44e795,'gradientStops':_0x267d5f[_0x53e7ba(0x1a1)][_0x53e7ba(0x640)](_0x39663b=>({'color':_0x39663b[_0x53e7ba(0x4e6)],'position':_0x39663b['offset']/0x64}))});};return(0x0,react_jsx_runtime['jsx'])(_0x30b40b(0x391),{'className':_0x30b40b(0x566),'children':(0x0,react_jsx_runtime[_0x30b40b(0x3a2)])(_univerjs_design[_0x30b40b(0x2da)],{'value':_0x572398,'onChange':_0x502022})});}function ShapeLineEditor(_0x4cddda){const _0x59f6af=_0x120d79;var _0x713c99,_0x4b0610,_0x10bd4e,_0x4d0f83,_0x518a11,_0x44a3ea,_0x1d0c3e,_0x311f8d,_0x483e33,_0x5f1c2c,_0x132bbc,_0x489f6d,_0x3021af,_0x453855,_0x1b70a6,_0x439186;const _0x34057e=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x59f6af(0x2b1)]),_0x6524f3=(0x0,_univerjs_ui[_0x59f6af(0x258)])(_univerjs_core['ICommandService']),_0x408c91=(0x0,_univerjs_ui[_0x59f6af(0x258)])(_univerjs_core[_0x59f6af(0x4e0)]),{shapeData:_0xae67bb,isLineShape:_0x45ea12,unitId:_0x46c6bf,subUnitId:_0x1a852f,shapeId:_0xaf55f6,disableShapeOption:_0x489290}=_0x4cddda,_0x1f2dc4=_0xae67bb['stroke'],[_0x168174,_0x526965]=(0x0,react['useState'])((_0x713c99=_0x1f2dc4===null||_0x1f2dc4===void 0x0?void 0x0:_0x1f2dc4[_0x59f6af(0x5ac)])!==null&&_0x713c99!==void 0x0?_0x713c99:_univerjs_pro_engine_shape[_0x59f6af(0x43e)]['SolidLine']),[_0x4bec9c,_0x4fa3b3]=(0x0,react[_0x59f6af(0x1e4)])((_0x4b0610=_0x1f2dc4===null||_0x1f2dc4===void 0x0?void 0x0:_0x1f2dc4[_0x59f6af(0x4e6)])!==null&&_0x4b0610!==void 0x0?_0x4b0610:_univerjs_pro_engine_shape[_0x59f6af(0x491)][_0x59f6af(0x49f)]),[_0x2ac417,_0x46b102]=(0x0,react[_0x59f6af(0x1e4)])((_0x10bd4e=_0x1f2dc4===null||_0x1f2dc4===void 0x0?void 0x0:_0x1f2dc4[_0x59f6af(0x28a)])!==null&&_0x10bd4e!==void 0x0?_0x10bd4e:0x1),[_0x4de8c1,_0x3123dd]=(0x0,react[_0x59f6af(0x1e4)])((_0x4d0f83=_0x1f2dc4===null||_0x1f2dc4===void 0x0?void 0x0:_0x1f2dc4[_0x59f6af(0x52c)])!==null&&_0x4d0f83!==void 0x0?_0x4d0f83:_univerjs_pro_engine_shape[_0x59f6af(0x491)][_0x59f6af(0x2c7)]),[_0x4f0922,_0x4b5e0b]=(0x0,react[_0x59f6af(0x1e4)])((_0x518a11=_0x1f2dc4===null||_0x1f2dc4===void 0x0?void 0x0:_0x1f2dc4['dashType'])!==null&&_0x518a11!==void 0x0?_0x518a11:_univerjs_pro_engine_shape[_0x59f6af(0x61a)]['Solid']),[_0x54c923,_0x2d66fa]=(0x0,react[_0x59f6af(0x1e4)])((_0x44a3ea=_0x1f2dc4===null||_0x1f2dc4===void 0x0?void 0x0:_0x1f2dc4['capType'])!==null&&_0x44a3ea!==void 0x0?_0x44a3ea:_univerjs_pro_engine_shape[_0x59f6af(0x5c4)][_0x59f6af(0x510)]),[_0x48da62,_0x5c718b]=(0x0,react[_0x59f6af(0x1e4)])((_0x1d0c3e=_0x1f2dc4===null||_0x1f2dc4===void 0x0?void 0x0:_0x1f2dc4['lineJoinType'])!==null&&_0x1d0c3e!==void 0x0?_0x1d0c3e:_univerjs_pro_engine_shape[_0x59f6af(0x419)][_0x59f6af(0x1f0)]),[_0xaf8fc0,_0x3f79f6]=(0x0,react[_0x59f6af(0x1e4)])((_0x311f8d=_0x1f2dc4===null||_0x1f2dc4===void 0x0?void 0x0:_0x1f2dc4['sketchType'])!==null&&_0x311f8d!==void 0x0?_0x311f8d:_univerjs_pro_engine_shape[_0x59f6af(0x465)]['None']),_0x58519b=_0xae67bb,[_0x5141e6,_0x115b4a]=(0x0,react['useState'])((_0x483e33=(_0x5f1c2c=_0x58519b['ln'])===null||_0x5f1c2c===void 0x0||(_0x5f1c2c=_0x5f1c2c[_0x59f6af(0x36b)])===null||_0x5f1c2c===void 0x0?void 0x0:_0x5f1c2c[_0x59f6af(0x552)])!==null&&_0x483e33!==void 0x0?_0x483e33:_univerjs_pro_engine_shape[_0x59f6af(0x5eb)][_0x59f6af(0x36f)]),[_0x105df3,_0x4fdd6b]=(0x0,react['useState'])((_0x132bbc=(_0x489f6d=_0x58519b['ln'])===null||_0x489f6d===void 0x0||(_0x489f6d=_0x489f6d['startArrow'])===null||_0x489f6d===void 0x0?void 0x0:_0x489f6d['size'])!==null&&_0x132bbc!==void 0x0?_0x132bbc:_univerjs_pro_engine_shape[_0x59f6af(0x190)][_0x59f6af(0x68d)]),[_0x13da30,_0x4bb9a5]=(0x0,react['useState'])((_0x3021af=(_0x453855=_0x58519b['ln'])===null||_0x453855===void 0x0||(_0x453855=_0x453855[_0x59f6af(0x689)])===null||_0x453855===void 0x0?void 0x0:_0x453855['type'])!==null&&_0x3021af!==void 0x0?_0x3021af:_univerjs_pro_engine_shape[_0x59f6af(0x5eb)]['None']),[_0x1123a3,_0x3fbce6]=(0x0,react[_0x59f6af(0x1e4)])((_0x1b70a6=(_0x439186=_0x58519b['ln'])===null||_0x439186===void 0x0||(_0x439186=_0x439186[_0x59f6af(0x689)])===null||_0x439186===void 0x0?void 0x0:_0x439186[_0x59f6af(0x5bd)])!==null&&_0x1b70a6!==void 0x0?_0x1b70a6:_univerjs_pro_engine_shape[_0x59f6af(0x190)][_0x59f6af(0x68d)]),[_0x2c3ddb,_0xf8d0e1]=(0x0,react[_0x59f6af(0x1e4)])(![]),_0x3370fc=0x64-_0x2ac417*0x64,_0x228d51=[{'label':_0x34057e['t'](_0x59f6af(0x359)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x61a)][_0x59f6af(0x3ad)])},{'label':_0x34057e['t']('sheets-shape.line.dashType.roundDot'),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x61a)][_0x59f6af(0x59e)])},{'label':_0x34057e['t'](_0x59f6af(0x361)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x59f6af(0x16b)])},{'label':_0x34057e['t']('sheets-shape.line.dashType.dash'),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x61a)][_0x59f6af(0x616)])},{'label':_0x34057e['t'](_0x59f6af(0x4d0)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x59f6af(0x21d)])},{'label':_0x34057e['t'](_0x59f6af(0x467)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x61a)][_0x59f6af(0x217)])},{'label':_0x34057e['t'](_0x59f6af(0x37c)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x61a)][_0x59f6af(0x225)])},{'label':_0x34057e['t'](_0x59f6af(0x330)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x61a)][_0x59f6af(0x427)])}],_0x1869f4=[{'label':_0x34057e['t']('sheets-shape.line.capType.flat'),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5c4)][_0x59f6af(0x510)])},{'label':_0x34057e['t']('sheets-shape.line.capType.round'),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5c4)][_0x59f6af(0x4c1)])},{'label':_0x34057e['t']('sheets-shape.line.capType.square'),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5c4)]['Square'])}],_0x12ee76=[{'label':_0x34057e['t'](_0x59f6af(0x3be)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x465)]['None'])},{'label':_0x34057e['t'](_0x59f6af(0x52e)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x465)][_0x59f6af(0x538)])},{'label':_0x34057e['t'](_0x59f6af(0x652)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x465)][_0x59f6af(0x5da)])},{'label':_0x34057e['t']('sheets-shape.line.sketchType.handDrawn'),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x465)]['HandDrawn'])}],_0x153ea7=[{'label':_0x34057e['t'](_0x59f6af(0x584)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x419)][_0x59f6af(0x1f0)])},{'label':_0x34057e['t'](_0x59f6af(0x529)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x419)][_0x59f6af(0x4c1)])},{'label':_0x34057e['t'](_0x59f6af(0x203)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x419)][_0x59f6af(0x4b5)])}],_0x1c4854=[{'label':_0x34057e['t'](_0x59f6af(0x1aa)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5eb)][_0x59f6af(0x36f)])},{'label':_0x34057e['t'](_0x59f6af(0x415)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5eb)][_0x59f6af(0x4c6)])},{'label':_0x34057e['t']('sheets-shape.line.arrowType.openArrow'),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5eb)][_0x59f6af(0x17f)])},{'label':_0x34057e['t'](_0x59f6af(0x618)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5eb)][_0x59f6af(0x6a7)])},{'label':_0x34057e['t'](_0x59f6af(0x313)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5eb)][_0x59f6af(0x1c2)])},{'label':_0x34057e['t'](_0x59f6af(0x4b6)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x5eb)][_0x59f6af(0x23d)])}],_0x45e028=[{'label':_0x34057e['t']('sheets-shape.line.arrowSize.small'),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x190)]['Small'])},{'label':_0x34057e['t'](_0x59f6af(0x677)),'value':String(_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x59f6af(0x68d)])},{'label':_0x34057e['t'](_0x59f6af(0x54f)),'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x190)]['Large'])}];return(0x0,react_jsx_runtime[_0x59f6af(0x13a)])(_0x59f6af(0x391),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x59f6af(0x13a)])(_univerjs_design[_0x59f6af(0x60a)],{'value':String(_0x168174),'disabled':_0x489290,'onChange':_0x2eecc7=>{const _0x2bb242=_0x59f6af;var _0x3c5b17;_0x526965(Number(_0x2eecc7)),updateShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x3c5b17=_0xae67bb[_0x2bb242(0x49f)])===null||_0x3c5b17===void 0x0?void 0x0:_0x3c5b17[_0x2bb242(0x5ac)]}}},{'stroke':{'lineStrokeType':Number(_0x2eecc7)}});},'direction':_0x59f6af(0x338),'children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x161)],{'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x43e)][_0x59f6af(0x3b3)]),'children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x1ec),'children':_0x34057e['t'](_0x59f6af(0x3e6))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Radio'],{'value':String(_univerjs_pro_engine_shape[_0x59f6af(0x43e)][_0x59f6af(0x536)]),'children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x1ec),'children':_0x34057e['t'](_0x59f6af(0x570))})})]}),_0x168174!==_univerjs_pro_engine_shape[_0x59f6af(0x43e)][_0x59f6af(0x3b3)]&&(0x0,react_jsx_runtime[_0x59f6af(0x13a)])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','children':[(0x0,react_jsx_runtime[_0x59f6af(0x13a)])('div',{'className':_0x59f6af(0x51d),'children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])('span',{'className':_0x59f6af(0x301),'children':_0x34057e['t']('sheets-shape.line.color')}),(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x3b1)],{'disabled':_0x489290,'overlay':(0x0,react_jsx_runtime['jsx'])(_0x59f6af(0x391),{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['ColorPicker'],{'value':_0x4bec9c,'onChange':_0x273f07=>{const _0x650a99=_0x59f6af;var _0x56f7c6;updateShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'stroke':{'color':(_0x56f7c6=_0xae67bb['stroke'])===null||_0x56f7c6===void 0x0?void 0x0:_0x56f7c6[_0x650a99(0x4e6)]}}},{'stroke':{'color':_0x273f07}}),_0x4fa3b3(_0x273f07),_0xf8d0e1(![]);}})}),'open':_0x2c3ddb,'onOpenChange':_0xf8d0e1,'children':(0x0,react_jsx_runtime[_0x59f6af(0x13a)])('a',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_icons[_0x59f6af(0x4b1)],{'className':_0x59f6af(0x37a),'extend':{'colorChannel1':_0x4bec9c}}),(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design[_0x59f6af(0x296)])(_0x59f6af(0x3ef),{'univer-rotate-180':_0x2c3ddb})})]})})]}),(0x0,react_jsx_runtime[_0x59f6af(0x13a)])('div',{'className':_0x59f6af(0x229),'children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x4ef),'children':_0x34057e['t'](_0x59f6af(0x4d6))}),(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x391),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])('div',{'className':_0x59f6af(0x309),'children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x516)],{'className':'univer-w-full','value':_0x3370fc,'disabled':_0x489290,'min':0x0,'max':0x64,'formatter':_0x1b1b9e=>_0x1b1b9e+'%','parser':_0x49b6a6=>(_0x49b6a6===null||_0x49b6a6===void 0x0?void 0x0:_0x49b6a6[_0x59f6af(0x556)]('%',''))||'','onChange':_0x3b09b3=>{const _0x2676f9=_0x59f6af;var _0x5b2cc7;const _0x153ace=(0x64-Math['max'](0x0,Math[_0x2676f9(0x625)](0x64,_0x3b09b3!==null&&_0x3b09b3!==void 0x0?_0x3b09b3:0x0)))/0x64;_0x46b102(_0x153ace),updateShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'stroke':{'opacity':(_0x5b2cc7=_0xae67bb[_0x2676f9(0x49f)])===null||_0x5b2cc7===void 0x0?void 0x0:_0x5b2cc7[_0x2676f9(0x28a)]}}},{'stroke':{'opacity':_0x153ace}}),_0x408c91[_0x2676f9(0x4d8)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x408c91[_0x59f6af(0x4d8)](_univerjs_core[_0x59f6af(0x4a5)],!![]),'onBlur':_0x31130d=>{const _0x3356fe=_0x59f6af;_0x408c91[_0x3356fe(0x4d8)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})})]}),(0x0,react_jsx_runtime[_0x59f6af(0x13a)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x301),'children':_0x34057e['t']('sheets-shape.line.width')}),(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x391),{'className':_0x59f6af(0x1f5),'children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x516)],{'className':_0x59f6af(0x156),'disabled':_0x489290,'value':_0x4de8c1,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x13a7c8=>_0x13a7c8+_0x59f6af(0x63b),'parser':_0x1f88ff=>(_0x1f88ff===null||_0x1f88ff===void 0x0?void 0x0:_0x1f88ff[_0x59f6af(0x556)](_0x59f6af(0x63b),''))||'','onChange':_0x44e6dc=>{const _0x1cf49c=_0x59f6af;if(!Number[_0x1cf49c(0x641)](_0x44e6dc)&&_0x44e6dc!==null){var _0x4cc1bc;updateShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'stroke':{'width':(_0x4cc1bc=_0xae67bb['stroke'])===null||_0x4cc1bc===void 0x0?void 0x0:_0x4cc1bc[_0x1cf49c(0x52c)]}}},{'stroke':{'width':_0x44e6dc}});}_0x408c91['setContextValue'](_univerjs_core[_0x1cf49c(0x4a5)],![]);},'onFocus':()=>_0x408c91[_0x59f6af(0x4d8)](_univerjs_core[_0x59f6af(0x4a5)],!![]),'onBlur':_0x12dd53=>{const _0x1e62b9=_0x59f6af;_0x408c91[_0x1e62b9(0x4d8)](_univerjs_core[_0x1e62b9(0x4a5)],![]);}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x59f6af(0x391),{'className':_0x59f6af(0x51d),'children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])('span',{'className':_0x59f6af(0x301),'children':_0x34057e['t']('sheets-shape.line.dashType.title')}),(0x0,react_jsx_runtime['jsx'])(_0x59f6af(0x391),{'className':_0x59f6af(0x389),'children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x350)],{'className':'univer-w-full','value':String(_0x4f0922),'options':_0x228d51,'disabled':_0x489290,'onChange':_0x4f6231=>{var _0x3706c3;_0x4b5e0b(Number(_0x4f6231)),updateShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'stroke':{'dashType':(_0x3706c3=_0xae67bb['stroke'])===null||_0x3706c3===void 0x0?void 0x0:_0x3706c3['dashType']}}},{'stroke':{'dashType':Number(_0x4f6231)}});}})})]}),(0x0,react_jsx_runtime[_0x59f6af(0x13a)])(_0x59f6af(0x391),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x301),'children':_0x34057e['t'](_0x59f6af(0x425))}),(0x0,react_jsx_runtime['jsx'])(_0x59f6af(0x391),{'className':_0x59f6af(0x389),'children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x350)],{'className':'univer-w-full','value':String(_0x54c923),'options':_0x1869f4,'disabled':_0x489290,'onChange':_0x51c721=>{const _0x4ea835=_0x59f6af;var _0x3c2abc;_0x2d66fa(Number(_0x51c721)),updateShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'stroke':{'capType':(_0x3c2abc=_0xae67bb[_0x4ea835(0x49f)])===null||_0x3c2abc===void 0x0?void 0x0:_0x3c2abc[_0x4ea835(0x4ac)]}}},{'stroke':{'capType':Number(_0x51c721)}});}})})]}),(0x0,react_jsx_runtime[_0x59f6af(0x13a)])(_0x59f6af(0x391),{'className':_0x59f6af(0x51d),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x59f6af(0x301),'children':_0x34057e['t'](_0x59f6af(0x454))}),(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x391),{'className':_0x59f6af(0x389),'children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x350)],{'className':_0x59f6af(0x156),'value':String(_0x48da62),'options':_0x153ea7,'disabled':_0x489290,'onChange':_0x3de124=>{const _0x453bff=_0x59f6af;var _0xc822af;_0x5c718b(Number(_0x3de124)),updateShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'stroke':{'lineJoinType':(_0xc822af=_0xae67bb[_0x453bff(0x49f)])===null||_0xc822af===void 0x0?void 0x0:_0xc822af[_0x453bff(0x590)]}}},{'stroke':{'lineJoinType':Number(_0x3de124)}});}})})]}),!_0x45ea12&&(0x0,react_jsx_runtime[_0x59f6af(0x13a)])(_0x59f6af(0x391),{'className':_0x59f6af(0x51d),'children':[(0x0,react_jsx_runtime['jsx'])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x301),'children':_0x34057e['t']('sheets-shape.line.sketchType.title')}),(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x391),{'className':_0x59f6af(0x389),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':_0x59f6af(0x156),'value':String(_0xaf8fc0),'options':_0x12ee76,'disabled':_0x489290,'onChange':_0x266cb4=>{const _0x5be531=_0x59f6af;var _0x4c4b65;_0x3f79f6(Number(_0x266cb4)),updateShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'stroke':{'sketchType':(_0x4c4b65=_0xae67bb['stroke'])===null||_0x4c4b65===void 0x0?void 0x0:_0x4c4b65[_0x5be531(0x6a9)]}}},{'stroke':{'sketchType':Number(_0x266cb4)}});}})})]}),_0x45ea12&&(0x0,react_jsx_runtime[_0x59f6af(0x13a)])(react_jsx_runtime[_0x59f6af(0x23a)],{'children':[(0x0,react_jsx_runtime['jsxs'])(_0x59f6af(0x391),{'className':_0x59f6af(0x51d),'children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x301),'children':_0x34057e['t'](_0x59f6af(0x48d))}),(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x391),{'className':'univer-w-28','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x59f6af(0x350)],{'className':'univer-w-full','value':String(_0x5141e6),'options':_0x1c4854,'onChange':_0x3b7b91=>{const _0x2e3f8f=_0x59f6af;var _0x22d902;_0x115b4a(Number(_0x3b7b91)),updateLineShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x22d902=_0xae67bb['ln'])===null||_0x22d902===void 0x0||(_0x22d902=_0x22d902[_0x2e3f8f(0x36b)])===null||_0x22d902===void 0x0?void 0x0:_0x22d902[_0x2e3f8f(0x552)]}}}},{'ln':{'startArrow':{'type':Number(_0x3b7b91)}}});}})})]}),(0x0,react_jsx_runtime[_0x59f6af(0x13a)])(_0x59f6af(0x391),{'className':_0x59f6af(0x51d),'children':[(0x0,react_jsx_runtime['jsx'])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x301),'children':_0x34057e['t'](_0x59f6af(0x399))}),(0x0,react_jsx_runtime['jsx'])(_0x59f6af(0x391),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x350)],{'className':'univer-w-full','value':String(_0x105df3),'options':_0x45e028,'onChange':_0x3db3d2=>{const _0x3f452d=_0x59f6af;var _0x281106;_0x4fdd6b(Number(_0x3db3d2)),updateLineShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x281106=_0xae67bb['ln'])===null||_0x281106===void 0x0||(_0x281106=_0x281106[_0x3f452d(0x36b)])===null||_0x281106===void 0x0?void 0x0:_0x281106[_0x3f452d(0x5bd)]}}}},{'ln':{'startArrow':{'size':Number(_0x3db3d2)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x59f6af(0x51d),'children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x4e9),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x34057e['t'](_0x59f6af(0x528))}),(0x0,react_jsx_runtime['jsx'])(_0x59f6af(0x391),{'className':_0x59f6af(0x389),'children':(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_univerjs_design[_0x59f6af(0x350)],{'className':_0x59f6af(0x156),'value':String(_0x13da30),'options':_0x1c4854,'onChange':_0x3d716f=>{const _0x2eba26=_0x59f6af;var _0x32c3e0;_0x4bb9a5(Number(_0x3d716f)),updateLineShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x32c3e0=_0xae67bb['ln'])===null||_0x32c3e0===void 0x0||(_0x32c3e0=_0x32c3e0[_0x2eba26(0x689)])===null||_0x32c3e0===void 0x0?void 0x0:_0x32c3e0[_0x2eba26(0x552)]}}}},{'ln':{'endArrow':{'type':Number(_0x3d716f)}}});}})})]}),(0x0,react_jsx_runtime[_0x59f6af(0x13a)])(_0x59f6af(0x391),{'className':_0x59f6af(0x51d),'children':[(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x4e9),{'className':_0x59f6af(0x301),'children':_0x34057e['t'](_0x59f6af(0x40d))}),(0x0,react_jsx_runtime[_0x59f6af(0x3a2)])(_0x59f6af(0x391),{'className':'univer-w-28','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':'univer-w-full','value':String(_0x1123a3),'options':_0x45e028,'onChange':_0x1da6cf=>{const _0x51cfd2=_0x59f6af;var _0x2e0b23;_0x3fbce6(Number(_0x1da6cf)),updateLineShapeData(_0x6524f3,_0x46c6bf,_0x1a852f,_0xaf55f6,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x2e0b23=_0xae67bb['ln'])===null||_0x2e0b23===void 0x0||(_0x2e0b23=_0x2e0b23[_0x51cfd2(0x689)])===null||_0x2e0b23===void 0x0?void 0x0:_0x2e0b23[_0x51cfd2(0x5bd)]}}}},{'ln':{'endArrow':{'size':Number(_0x1da6cf)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x1122c7=_0x120d79,_0x4d0f9e=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing[_0x1122c7(0x534)]),[_0x4163a7,_0x401079]=(0x0,react[_0x1122c7(0x1e4)])(_0x4d0f9e['getFocusDrawings']());(0x0,react[_0x1122c7(0x628)])(()=>{const _0x3ccab8=_0x1122c7,_0x749be7=_0x4d0f9e[_0x3ccab8(0x297)][_0x3ccab8(0x22f)](_0xd46e6a=>{_0x401079(_0xd46e6a);});return()=>{const _0x14d61c=_0x3ccab8;_0x749be7[_0x14d61c(0x13b)]();};},[]);if(_0x4163a7[_0x1122c7(0x620)]===0x0)return null;return(0x0,react_jsx_runtime[_0x1122c7(0x3a2)])(_0x1122c7(0x391),{'children':(0x0,react_jsx_runtime['jsxs'])(_0x1122c7(0x391),{'className':'univer-box-border\x20univer-px-4\x20univer-text-sm','children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_drawing_ui[_0x1122c7(0x21a)],{'drawings':_0x4163a7,'hasCropper':![]}),(0x0,react_jsx_runtime[_0x1122c7(0x3a2)])(_univerjs_sheets_drawing_ui[_0x1122c7(0x408)],{'drawings':_0x4163a7})]})});}function ShapeEditPanel(_0x862858){const _0x5b467a=_0x120d79,{shapeData:_0x11c6a1,shapeId:_0x39fb1d,shapeType:_0x2a4890,version:_0x201316,unitId:_0x1c121e,subUnitId:_0x11f9ff,disableShapeOption:_0x4b9c6c}=_0x862858,_0x5ba565=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x5b467a(0x2b1)]),_0x54bf6a=(0x0,_univerjs_pro_engine_shape[_0x5b467a(0x205)])(_0x2a4890),[_0x2a90dd,_0x12174c]=(0x0,react[_0x5b467a(0x1e4)])(0x0),_0x198011=[{'label':(0x0,react_jsx_runtime[_0x5b467a(0x3a2)])('div',{'children':_0x5ba565['t'](_0x5b467a(0x18a))}),'children':(0x0,react_jsx_runtime[_0x5b467a(0x3a2)])(_0x5b467a(0x50c),{'className':_0x5b467a(0x1b1),'children':(0x0,react_jsx_runtime['jsx'])(ShapeFillEditor,{'shapeId':_0x39fb1d,'shapeData':_0x11c6a1,'isLineShape':_0x54bf6a,'subUnitId':_0x11f9ff,'unitId':_0x1c121e,'disableShapeOption':_0x4b9c6c},_0x39fb1d)})},{'label':(0x0,react_jsx_runtime['jsx'])(_0x5b467a(0x391),{'children':_0x5ba565['t'](_0x5b467a(0x68a))}),'children':(0x0,react_jsx_runtime[_0x5b467a(0x3a2)])('section',{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0x5b467a(0x3a2)])(ShapeLineEditor,{'shapeId':_0x39fb1d,'shapeData':_0x11c6a1,'isLineShape':_0x54bf6a,'subUnitId':_0x11f9ff,'unitId':_0x1c121e,'disableShapeOption':_0x4b9c6c},_0x39fb1d)})}];return(0x0,react_jsx_runtime[_0x5b467a(0x13a)])(_0x5b467a(0x391),{'className':_0x5b467a(0x33e),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x5b467a(0x391),{'className':'univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','children':[(0x0,react_jsx_runtime[_0x5b467a(0x13a)])('div',{'className':(0x0,_univerjs_design['clsx'])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',_0x2a90dd===0x0?_0x5b467a(0x2ca):_0x5b467a(0x37a)),'onClick':()=>_0x12174c(0x0),'children':[_0x5ba565['t'](_0x5b467a(0x3a8)),(0x0,react_jsx_runtime[_0x5b467a(0x3a2)])(_0x5b467a(0x391),{'className':(0x0,_univerjs_design['clsx'])(_0x5b467a(0x3d1),{'univer-bg-primary-600':_0x2a90dd===0x0,'univer-bg-transparent':_0x2a90dd!==0x0})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x5b467a(0x391),{'className':(0x0,_univerjs_design[_0x5b467a(0x296)])(_0x5b467a(0x48e),{'univer-text-primary-600':_0x2a90dd===0x1,'univer-text-gray-500':_0x2a90dd!==0x1}),'onClick':()=>_0x12174c(0x1),'children':[_0x5ba565['t']('sheets-shape.shapePosition'),(0x0,react_jsx_runtime['jsx'])(_0x5b467a(0x391),{'className':(0x0,_univerjs_design['clsx'])(_0x5b467a(0x660),{'univer-bg-primary-600':_0x2a90dd===0x1,'univer-bg-transparent':_0x2a90dd!==0x1})})]})]}),(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-flex-1\x20univer-overflow-auto','children':_0x2a90dd===0x0?(0x0,react_jsx_runtime['jsx'])(_0x5b467a(0x391),{'className':'','children':(0x0,react_jsx_runtime[_0x5b467a(0x3a2)])(_univerjs_design[_0x5b467a(0x25b)],{'items':_0x198011})},_0x201316):(0x0,react_jsx_runtime[_0x5b467a(0x3a2)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x120d79(0x19c)]{constructor(_0x5f8bb0,_0x240738){const _0x5f0a2c=_0x120d79;super(_0x5f8bb0,_0x240738),_defineProperty(this,'_shapeId',null),_defineProperty(this,'_adjName',null),_defineProperty(this,_0x5f0a2c(0x3e8),null),_defineProperty(this,'_subUnitId',null);if(_0x240738)this[_0x5f0a2c(0x630)](_0x240738);}[_0x120d79(0x4db)](){const _0x408d7a=_0x120d79;return{'unitId':this[_0x408d7a(0x3e8)],'subUnitId':this[_0x408d7a(0x46a)],'drawingId':this[_0x408d7a(0x39d)]};}[_0x120d79(0x630)](_0x3d8a95){const _0x4a1642=_0x120d79;if(typeof _0x3d8a95[_0x4a1642(0x5ec)]!=='undefined')this[_0x4a1642(0x39d)]=_0x3d8a95[_0x4a1642(0x5ec)];if(typeof _0x3d8a95[_0x4a1642(0x2ff)]!==_0x4a1642(0x598))this[_0x4a1642(0x607)]=_0x3d8a95['adjName'];if(typeof _0x3d8a95[_0x4a1642(0x2db)]!==_0x4a1642(0x598))this[_0x4a1642(0x3e8)]=_0x3d8a95[_0x4a1642(0x2db)];if(typeof _0x3d8a95[_0x4a1642(0x363)]!==_0x4a1642(0x598))this[_0x4a1642(0x46a)]=_0x3d8a95[_0x4a1642(0x363)];this['transformByState']({'width':_0x3d8a95[_0x4a1642(0x52c)],'height':_0x3d8a95[_0x4a1642(0x340)]});}['_draw'](_0x140e38){const _0x39c60e=_0x120d79;_univerjs_engine_render['Circle'][_0x39c60e(0x3ab)](_0x140e38,{'radius':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x39c60e(0x17e)],'fill':_univerjs_pro_engine_shape[_0x39c60e(0x491)][_0x39c60e(0x495)],'stroke':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x39c60e(0x66b)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0xea64bd,_0x107339,_0x31f9d1,_0x723bbe,_0x3473a0,_0x2db7bc,_0x1725ce,_0x3647cc){const _0x1c94bc=_0x120d79;super(),this[_0x1c94bc(0x55e)]=_0xea64bd,this[_0x1c94bc(0x3e3)]=_0x107339,this[_0x1c94bc(0x50b)]=_0x31f9d1,this['_sheetsShapeService']=_0x723bbe,this['_renderManagerService']=_0x3473a0,this[_0x1c94bc(0x2cc)]=_0x2db7bc,this[_0x1c94bc(0x548)]=_0x1725ce,this[_0x1c94bc(0x23b)]=_0x3647cc,_defineProperty(this,_0x1c94bc(0x4ee),null),_defineProperty(this,_0x1c94bc(0x3e8),null),_defineProperty(this,_0x1c94bc(0x46a),null),_defineProperty(this,'_activeShapeAdjustPointList',void 0x0),_defineProperty(this,'_shapes',[]),_defineProperty(this,_0x1c94bc(0x45d),0x0),_defineProperty(this,_0x1c94bc(0x559),0x0),_defineProperty(this,_0x1c94bc(0x59d),0x0),_defineProperty(this,_0x1c94bc(0x5ee),0x0),_defineProperty(this,_0x1c94bc(0x4b0),![]),_defineProperty(this,_0x1c94bc(0x1fa),void 0x0),_defineProperty(this,_0x1c94bc(0x688),void 0x0),_defineProperty(this,_0x1c94bc(0x546),void 0x0),_defineProperty(this,_0x1c94bc(0x372),void 0x0),_defineProperty(this,'_isShouldShowDrawingShapeAdjust',![]),this[_0x1c94bc(0x1f1)](),this[_0x1c94bc(0x5fe)]();}[_0x120d79(0x54e)](_0x2a0674,_0x37cde5,_0x30de32){const _0x5afaf5=_0x120d79,_0x584ecd=this['_sheetsShapeService'][_0x5afaf5(0x483)](_0x2a0674,_0x37cde5,_0x30de32);if(_0x584ecd)return _0x584ecd[_0x5afaf5(0x21e)]();}[_0x120d79(0x369)](){this['_clearShapeAdjustControls']();}[_0x120d79(0x512)](){const _0x17912a=_0x120d79;this[_0x17912a(0x16c)](!![]);}[_0x120d79(0x1df)](_0x524937){const _0x592390=_0x120d79;this[_0x592390(0x3c6)]=_0x524937;}['_getShapeAdjustInfosById'](_0x34ea2b,_0x1fda84,_0x4ea3c0,_0x4bdbc4){const _0x36ce0a=_0x120d79,_0x52cfcb=this['_sheetsShapeService'][_0x36ce0a(0x483)](_0x34ea2b,_0x1fda84,_0x4ea3c0);if(_0x52cfcb)return _0x52cfcb[_0x36ce0a(0x3a6)](_0x4bdbc4);}[_0x120d79(0x1c5)](_0x247b10=![]){const _0x3e099d=_0x120d79;if(this[_0x3e099d(0x3e8)]===null||this[_0x3e099d(0x46a)]===null||this[_0x3e099d(0x4ee)]===null)return;const _0x5a0356=this['_renderManagerService'][_0x3e099d(0x333)](this['_unitId']);if(!_0x5a0356)return;if(!_0x5a0356[_0x3e099d(0x442)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x3e099d(0x15a)]())return;const {scene:_0x21a832}=_0x5a0356,_0x4e7756={'unitId':this[_0x3e099d(0x3e8)],'subUnitId':this[_0x3e099d(0x46a)],'drawingId':this[_0x3e099d(0x4ee)]},_0x23c685=this['_drawingManagerService'][_0x3e099d(0x41f)](_0x4e7756),{transform:_0xde4a69}=_0x23c685;if(!_0xde4a69)return;if(_0x23c685['drawingType']!==_univerjs_core[_0x3e099d(0x166)][_0x3e099d(0x525)])return;const {left:_0x4e510a,top:_0xbc667b,width:_0x5ad00f,height:_0x12b630,flipX:_0x50aa32,flipY:_0x1179d3,angle:angle=0x0}=_0xde4a69;if(_0x4e510a===void 0x0||_0xbc667b===void 0x0)return;if(_0x247b10)this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](this[_0x3e099d(0x3e8)],this['_subUnitId'],this[_0x3e099d(0x4ee)]);const _0x21ab0d=this[_0x3e099d(0x683)];for(let _0x4c43e8=0x0;_0x4c43e8<_0x21ab0d[_0x3e099d(0x620)];_0x4c43e8++){const _0x49982a=_0x21ab0d[_0x4c43e8];let _0x3b7776=_0x49982a['x'],_0x913413=_0x49982a['y'];if(_0x50aa32)_0x3b7776=(_0x5ad00f||0x0)-_0x3b7776;if(_0x1179d3)_0x913413=(_0x12b630||0x0)-_0x913413;if(angle!==0x0){const _0x1fb50f=(_0x5ad00f||0x0)/0x2,_0x2fccf2=(_0x12b630||0x0)/0x2,_0x3d3b27=angle*Math['PI']/0xb4,_0x20af67=Math['cos'](_0x3d3b27),_0x5d2326=Math[_0x3e099d(0x5a7)](_0x3d3b27),_0x528352=_0x3b7776-_0x1fb50f,_0xb3baf8=_0x913413-_0x2fccf2;_0x3b7776=_0x1fb50f+(_0x528352*_0x20af67-_0xb3baf8*_0x5d2326),_0x913413=_0x2fccf2+(_0x528352*_0x5d2326+_0xb3baf8*_0x20af67);}const _0x3e7447={'x':_0x3b7776,'y':_0x913413,'adjName':_0x49982a[_0x3e099d(0x2ff)]};this[_0x3e099d(0x43c)](_0x21a832,_0x3e7447,_0x3e7447['adjName'],_0x4e510a,_0xbc667b,this['_unitId'],this[_0x3e099d(0x46a)]);}}[_0x120d79(0x16c)](_0x4bb47c=![]){const _0x57476e=_0x120d79;_0x4bb47c&&(this[_0x57476e(0x51c)](),this[_0x57476e(0x1c5)](_0x4bb47c));}['_addShapeAdjustControl'](_0x1b6baf,_0x51d8b2,_0x1f2941,_0x16d650,_0x4010e9,_0x1015bd,_0xf1f347){const _0x429939=_0x120d79;if(!this[_0x429939(0x4ee)])return;const _0x243507=_0x1b6baf[_0x429939(0x502)]('shape-adjust-point-'+this['_activeShapeId']+'-'+_0x1f2941);if(_0x243507){_0x243507['transformByState']({'left':_0x51d8b2['x']+_0x16d650-_univerjs_pro_engine_shape[_0x429939(0x491)][_0x429939(0x17e)],'top':_0x51d8b2['y']+_0x4010e9-_univerjs_pro_engine_shape[_0x429939(0x491)][_0x429939(0x17e)]});return;}const _0x2b054e={'left':_0x51d8b2['x']+_0x16d650-_univerjs_pro_engine_shape[_0x429939(0x491)][_0x429939(0x17e)],'top':_0x51d8b2['y']+_0x4010e9-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x429939(0x17e)],'adjName':_0x1f2941,'shapeId':this[_0x429939(0x4ee)],'unitId':_0x1015bd,'subUnitId':_0xf1f347,'width':_univerjs_pro_engine_shape[_0x429939(0x491)][_0x429939(0x17e)]+0x8,'height':_univerjs_pro_engine_shape[_0x429939(0x491)][_0x429939(0x17e)]+0x8,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]},_0x2d799e=new SheetShapeAdjustPointObject(_0x429939(0x15e)+this[_0x429939(0x4ee)]+'-'+_0x1f2941,_0x2b054e);this[_0x429939(0x681)]['push'](_0x2d799e),this[_0x429939(0x381)](_0x2d799e,_0x1b6baf,_0x1f2941),_0x1b6baf[_0x429939(0x2ec)](_0x2d799e,_univerjs_engine_render[_0x429939(0x2ac)]+0x1);}['_clearShapeAdjustControls'](){const _0x5289b9=_0x120d79;if(this[_0x5289b9(0x681)]['length']===0x0)return;this[_0x5289b9(0x681)]['forEach'](_0x356a14=>{const _0x520044=_0x5289b9;_0x356a14[_0x520044(0x49e)]();}),this[_0x5289b9(0x681)]=[];}[_0x120d79(0x155)](){const _0x1d7360=_0x120d79;this[_0x1d7360(0x1c5)]();}[_0x120d79(0x39b)](_0x31b1ef,_0x374d62){const _0x1af2fe=_0x120d79;var _0x3a353f;const _0xb2d0cf={'x':0x0,'y':0x0};if(!_0x31b1ef||!_0x374d62)return _0xb2d0cf;const _0x1ef444=this['_renderManagerService']['getRenderById'](_0x31b1ef);if(!_0x1ef444)return _0xb2d0cf;if(!_0x1ef444[_0x1af2fe(0x442)](_univerjs_sheets_ui[_0x1af2fe(0x30a)])[_0x1af2fe(0x453)](_0x374d62))return _0xb2d0cf;const _0x234d7a=_0x1ef444[_0x1af2fe(0x442)](_univerjs_sheets_ui[_0x1af2fe(0x386)]),_0x10527b=_0x234d7a===null||_0x234d7a===void 0x0?void 0x0:_0x234d7a[_0x1af2fe(0x50d)]();if(!_0x10527b)return _0xb2d0cf;const _0x3eb28c=(_0x3a353f=this[_0x1af2fe(0x548)][_0x1af2fe(0x59f)](_0x31b1ef))===null||_0x3a353f===void 0x0?void 0x0:_0x3a353f[_0x1af2fe(0x250)](_0x374d62);if(!_0x3eb28c)return _0xb2d0cf;const _0x801bc4=(0x0,_univerjs_sheets_ui[_0x1af2fe(0x517)])(_0x10527b['sheetViewStartRow'],_0x10527b[_0x1af2fe(0x649)],_0x1ef444[_0x1af2fe(0x57a)],_0x3eb28c);if(!_0x801bc4)return _0xb2d0cf;return{'x':_0x801bc4[_0x1af2fe(0x2af)],'y':_0x801bc4[_0x1af2fe(0x5e5)]};}[_0x120d79(0x601)](_0x2323fa,_0x1edd5d){const _0x160abd=_0x120d79;var _0x4a4fd0,_0x1adb9a;const _0x505b59=(_0x4a4fd0=this[_0x160abd(0x548)][_0x160abd(0x59f)](_0x2323fa))===null||_0x4a4fd0===void 0x0?void 0x0:_0x4a4fd0[_0x160abd(0x250)](_0x1edd5d);return(_0x1adb9a=_0x505b59===null||_0x505b59===void 0x0?void 0x0:_0x505b59[_0x160abd(0x358)]())!==null&&_0x1adb9a!==void 0x0?_0x1adb9a:0x1;}[_0x120d79(0x381)](_0x3ee70c,_0x5b6202,_0x508e2b){const _0x3a35ea=_0x120d79;this[_0x3a35ea(0x3cd)]((0x0,_univerjs_core['toDisposable'])(_0x3ee70c[_0x3a35ea(0x3f0)][_0x3a35ea(0x411)]((_0x5c7919,_0x55e1ea)=>{const _0x49aa97=_0x3a35ea;var _0x12bc9b,_0x450ec9,_0x17944c,_0x3684ce;const _0x3ec2d5=_0x3ee70c['getDrawingSearch']();this['_activeAdjustInfo']=this[_0x49aa97(0x40f)](_0x3ec2d5['unitId'],_0x3ec2d5['subUnitId'],_0x3ec2d5['drawingId'],_0x508e2b),this[_0x49aa97(0x688)]=this['_sheetsShapeService'][_0x49aa97(0x483)](_0x3ec2d5[_0x49aa97(0x2db)],_0x3ec2d5['subUnitId'],_0x3ec2d5[_0x49aa97(0x6a4)]);const _0xd8179b=this[_0x49aa97(0x50b)][_0x49aa97(0x41f)]({'unitId':this[_0x49aa97(0x3e8)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x49aa97(0x4ee)]}),{transform:_0x52c99f}=_0xd8179b;if(_0x52c99f){const {left:_0x619328,top:_0x5d42ff,width:_0x4a7378,height:_0x12cf22}=_0x52c99f;this['_baseShapeLeft']=_0x619328||0x0,this['_baseShapeTop']=_0x5d42ff||0x0,this[_0x49aa97(0x59d)]=_0x4a7378||0x0,this[_0x49aa97(0x5ee)]=_0x12cf22||0x0;}const _0x3cc8a2=Boolean((_0x12bc9b=_0xd8179b[_0x49aa97(0x664)])===null||_0x12bc9b===void 0x0?void 0x0:_0x12bc9b[_0x49aa97(0x158)]),_0x5ba0d0=Boolean((_0x450ec9=_0xd8179b[_0x49aa97(0x664)])===null||_0x450ec9===void 0x0?void 0x0:_0x450ec9[_0x49aa97(0x505)]),_0x476be9=((_0x17944c=_0xd8179b[_0x49aa97(0x664)])===null||_0x17944c===void 0x0?void 0x0:_0x17944c[_0x49aa97(0x3af)])||0x0;this[_0x49aa97(0x4b0)]=!![],_0x5b6202[_0x49aa97(0x182)]();const _0x54cb5f=(_0x3684ce=this[_0x49aa97(0x688)])===null||_0x3684ce===void 0x0?void 0x0:_0x3684ce[_0x49aa97(0x647)](_0x508e2b),_0x126588={[_0x508e2b]:_0x54cb5f};this['_adjHandlerPointerMove']=_0x5b6202[_0x49aa97(0x445)]['subscribeEvent']((_0x4efbe2,_0x2a5b82)=>{const _0x2cc222=_0x49aa97;if(!this[_0x2cc222(0x4b0)])return;const {offsetX:_0x4106f1,offsetY:_0x23a5a2}=_0x4efbe2,_0x256cd7=this[_0x2cc222(0x1fa)];if(this[_0x2cc222(0x688)]&&_0x256cd7){_0x5b6202[_0x2cc222(0x182)](),_0x5b6202['setCursor'](_univerjs_engine_render['CURSOR_TYPE'][_0x2cc222(0x4ca)]);const _0x52050f={'left':0x0,'top':0x0,'width':this[_0x2cc222(0x59d)],'height':this['_baseShapeHeight']},_0x5658af=this['_getScrollInfo'](this['_unitId'],this['_subUnitId']),_0xa1e40b=this[_0x2cc222(0x601)](this['_unitId'],this[_0x2cc222(0x46a)]);let _0x331109=_0x4106f1/_0xa1e40b+_0x5658af['x']-this[_0x2cc222(0x45d)],_0x1cab90=_0x23a5a2/_0xa1e40b+_0x5658af['y']-this[_0x2cc222(0x559)];if(_0x476be9!==0x0){const _0x2558e5=this[_0x2cc222(0x59d)]/0x2,_0x80e518=this[_0x2cc222(0x5ee)]/0x2,_0x4a27a5=_0x476be9*Math['PI']/0xb4,_0x16270b=Math[_0x2cc222(0x1db)](_0x4a27a5),_0x2b6b2b=Math['sin'](_0x4a27a5),_0x5bd9f7=_0x331109-_0x2558e5,_0x4e5610=_0x1cab90-_0x80e518;_0x331109=_0x2558e5+(_0x5bd9f7*_0x16270b+_0x4e5610*_0x2b6b2b),_0x1cab90=_0x80e518+(-_0x5bd9f7*_0x2b6b2b+_0x4e5610*_0x16270b);}if(_0x3cc8a2)_0x331109=this['_baseShapeWidth']-_0x331109;if(_0x5ba0d0)_0x1cab90=this[_0x2cc222(0x5ee)]-_0x1cab90;const _0x3e52ba={'x':_0x331109,'y':_0x1cab90},_0x326a90=this[_0x2cc222(0x688)][_0x2cc222(0x4f4)](_0x52050f,_0x3e52ba,_0x256cd7,_0x3cc8a2,_0x5ba0d0),_0x7272b6=_0x256cd7[_0x2cc222(0x35f)]||_0x256cd7[_0x2cc222(0x3f4)]||_0x256cd7[_0x2cc222(0x395)]||_0x256cd7[_0x2cc222(0x658)];if(_0x7272b6===void 0x0)return;this[_0x2cc222(0x688)][_0x2cc222(0x5cc)](_0x7272b6,_0x326a90);const _0x32842e=this[_0x2cc222(0x50b)][_0x2cc222(0x41f)]({'unitId':_0x3ec2d5[_0x2cc222(0x2db)],'subUnitId':_0x3ec2d5[_0x2cc222(0x363)],'drawingId':_0x3ec2d5[_0x2cc222(0x6a4)]});_0x32842e&&(this['_sheetDrawingShapeRenderController'][_0x2cc222(0x531)](_0x32842e,_0x5b6202),this[_0x2cc222(0x683)]=this[_0x2cc222(0x54e)](_0x3ec2d5[_0x2cc222(0x2db)],_0x3ec2d5[_0x2cc222(0x363)],_0x3ec2d5[_0x2cc222(0x6a4)]),this[_0x2cc222(0x155)]());}_0x2a5b82[_0x2cc222(0x1b5)]();}),this[_0x49aa97(0x372)]=_0x5b6202[_0x49aa97(0x49c)]['subscribeEvent']((_0x1698e2,_0x447554)=>{const _0x2ef0ff=_0x49aa97;this[_0x2ef0ff(0x546)]['unsubscribe'](),this[_0x2ef0ff(0x372)][_0x2ef0ff(0x13b)](),_0x5b6202[_0x2ef0ff(0x201)]();const _0x57deac=this[_0x2ef0ff(0x1fa)];if(_0x57deac){const _0x12c0e5=_0x3ec2d5[_0x2ef0ff(0x2db)],_0xc2c4b4=_0x3ec2d5[_0x2ef0ff(0x363)],_0x45fbed=_0x3ec2d5['drawingId'],_0x412afc=_0x57deac[_0x2ef0ff(0x35f)]||_0x57deac[_0x2ef0ff(0x3f4)]||_0x57deac[_0x2ef0ff(0x395)]||_0x57deac[_0x2ef0ff(0x658)];if(_0x412afc!==void 0x0){var _0x526238;const _0x257540=(_0x526238=this[_0x2ef0ff(0x688)])===null||_0x526238===void 0x0?void 0x0:_0x526238[_0x2ef0ff(0x647)](_0x412afc);if(_0x257540!==void 0x0)updateShapeData(this[_0x2ef0ff(0x23b)],_0x12c0e5,_0xc2c4b4,_0x45fbed,{'oldShapeData':{'adjustValues':_0x126588}},{'adjustValues':{[_0x412afc]:_0x257540}});}}this[_0x2ef0ff(0x1fa)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x2ef0ff(0x4b0)]=![],_0x447554[_0x2ef0ff(0x1b5)](),_0x5b6202['enableObjectsEvent']();}),_0x55e1ea[_0x49aa97(0x1b5)]();})));}[_0x120d79(0x5fe)](){const _0x355d4e=_0x120d79,_0x316f6c=this[_0x355d4e(0x548)][_0x355d4e(0x697)](_univerjs_core[_0x355d4e(0x335)][_0x355d4e(0x327)]);this['disposeWithMe'](_0x316f6c[_0x355d4e(0x49d)]((0x0,rxjs[_0x355d4e(0x1bf)])(_0x379083=>{const _0x192dc7=_0x355d4e;if(!_0x379083)return rxjs[_0x192dc7(0x5bb)];return _0x379083[_0x192dc7(0x22d)]['pipe']((0x0,rxjs[_0x192dc7(0x1bf)])(_0x3ade26=>{const _0x2651b0=_0x192dc7;if(!_0x3ade26)return rxjs[_0x2651b0(0x5bb)];const _0x50fc4d=_0x379083[_0x2651b0(0x58c)](),_0x560fa7=this[_0x2651b0(0x38c)][_0x2651b0(0x333)](_0x50fc4d),_0x49ce9e=_0x560fa7===null||_0x560fa7===void 0x0?void 0x0:_0x560fa7[_0x2651b0(0x57a)];if(!_0x49ce9e)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x49ce9e);}));}))['subscribe'](_0x980fe2=>{const _0x239cca=_0x355d4e,_0xcc0175=_0x980fe2['getTransformerByCreate']();this['disposeWithMe'](_0x980fe2[_0x239cca(0x445)][_0x239cca(0x411)](()=>{const _0x2e8d4b=_0x239cca;if(this[_0x2e8d4b(0x3c6)]){}})),this[_0x239cca(0x3cd)](_0xcc0175['changeStart$'][_0x239cca(0x22f)](_0x4ba49f=>{const _0x12d0e4=_0x239cca,{objects:_0x37e13a}=_0x4ba49f;this['_createShapeAdjustControls']();if(_0x37e13a!==null&&_0x37e13a[_0x12d0e4(0x5bd)]===0x1){if(_0x37e13a[_0x12d0e4(0x1b4)]()['next']()[_0x12d0e4(0x5f4)]instanceof DrawingShape)this['setShouldShowAdjust'](!![]);}})),this[_0x239cca(0x3cd)](_0xcc0175[_0x239cca(0x5e1)][_0x239cca(0x22f)](()=>{const _0x5b8c92=_0x239cca;if(this[_0x5b8c92(0x3c6)])this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x980fe2['onPointerUp$'][_0x239cca(0x411)](()=>{const _0x81d4ed=_0x239cca;this[_0x81d4ed(0x3c6)]&&(this[_0x81d4ed(0x1df)](![]),this['_createShapeAdjustControls']());})),this[_0x239cca(0x3cd)](_0xcc0175[_0x239cca(0x29f)][_0x239cca(0x22f)](()=>{const _0xaddc26=_0x239cca;this['_unitId']&&this[_0xaddc26(0x46a)]&&this[_0xaddc26(0x4ee)]&&(this[_0xaddc26(0x50b)][_0xaddc26(0x41f)]({'unitId':this[_0xaddc26(0x3e8)],'subUnitId':this['_subUnitId'],'drawingId':this[_0xaddc26(0x4ee)]})&&(this[_0xaddc26(0x683)]=this[_0xaddc26(0x54e)](this[_0xaddc26(0x3e8)],this[_0xaddc26(0x46a)],this['_activeShapeId']),this['_updateAdjustControlPositions']()));}));}));}[_0x120d79(0x1f1)](){const _0x4cce16=_0x120d79;this[_0x4cce16(0x3cd)](this[_0x4cce16(0x50b)]['focus$'][_0x4cce16(0x22f)](_0x204f36=>{const _0x416af2=_0x4cce16;if(_0x204f36[_0x416af2(0x620)]===0x1){const _0x1e8488=_0x204f36[0x0];if(_0x1e8488[_0x416af2(0x14f)]===_univerjs_core[_0x416af2(0x166)][_0x416af2(0x525)]){this[_0x416af2(0x4ee)]=_0x1e8488[_0x416af2(0x6a4)];const {unitId:_0x131e18,subUnitId:_0x14951a}=_0x1e8488;this['_activeShapeAdjustPointList']=this[_0x416af2(0x54e)](_0x131e18,_0x14951a,this['_activeShapeId']),this[_0x416af2(0x3e8)]=_0x131e18,this[_0x416af2(0x46a)]=_0x14951a,this[_0x416af2(0x51c)](),this[_0x416af2(0x1c5)]();}else this[_0x416af2(0x4ee)]=null,this[_0x416af2(0x683)]=void 0x0,this[_0x416af2(0x3e8)]=null,this[_0x416af2(0x46a)]=null,this[_0x416af2(0x51c)]();}(_0x204f36[_0x416af2(0x620)]>0x1||_0x204f36[_0x416af2(0x620)]===0x0)&&(this[_0x416af2(0x4ee)]=null,this[_0x416af2(0x683)]=void 0x0,this[_0x416af2(0x3e8)]=null,this[_0x416af2(0x46a)]=null,this[_0x416af2(0x51c)]());})),this[_0x4cce16(0x3cd)](this[_0x4cce16(0x50b)][_0x4cce16(0x147)][_0x4cce16(0x22f)](_0x2e9264=>{const _0x24db7c=_0x4cce16;if(_0x2e9264[_0x24db7c(0x620)]===0x1){var _0x2cf305;const _0x1b8552=_0x2e9264[0x0];if(((_0x2cf305=this['_drawingManagerService'][_0x24db7c(0x41f)](_0x1b8552))===null||_0x2cf305===void 0x0?void 0x0:_0x2cf305[_0x24db7c(0x14f)])===_univerjs_core['DrawingTypeEnum'][_0x24db7c(0x525)])this['_updateShapeAdjustControls'](!![]);}})),this['disposeWithMe'](this[_0x4cce16(0x50b)]['remove$'][_0x4cce16(0x22f)](_0x23099a=>{const _0x29521a=_0x4cce16;for(const _0x8f9a5c of _0x23099a)this['_activeShapeId']===_0x8f9a5c[_0x29521a(0x6a4)]&&(this[_0x29521a(0x4ee)]=null,this[_0x29521a(0x683)]=void 0x0,this[_0x29521a(0x3e8)]=null,this[_0x29521a(0x46a)]=null,this[_0x29521a(0x51c)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core[_0x120d79(0x4e0)]),__decorateParam(0x2,_univerjs_drawing[_0x120d79(0x534)]),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x120d79(0x293)])),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render['IRenderManagerService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x120d79(0x1a2)])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core[_0x120d79(0x28f)]),__decorateParam(0x7,_univerjs_core[_0x120d79(0x3b2)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x120d79(0x285),'type':_univerjs_core['CommandType'][_0x120d79(0x418)],'handler':(_0x45bb62,_0x327f78)=>{const _0x2693db=_0x120d79,_0x51ff4b=_0x45bb62[_0x2693db(0x30e)](_univerjs_drawing[_0x2693db(0x534)]),_0x474e4c=_0x45bb62[_0x2693db(0x30e)](_univerjs_engine_render[_0x2693db(0x2a6)]),_0xdcf988=_0x45bb62[_0x2693db(0x30e)](SheetShapeAdjustController);if(_0x327f78==null)return!![];if(_0x327f78[_0x2693db(0x620)]>0x0){var _0x4dc49d;const _0x4cbb06=(_0x4dc49d=_0x474e4c[_0x2693db(0x333)](_0x327f78[0x0][_0x2693db(0x2db)]))===null||_0x4dc49d===void 0x0?void 0x0:_0x4dc49d[_0x2693db(0x57a)];if(_0x4cbb06){const {unitId:_0x280669,subUnitId:_0x3ad117,drawingId:_0x2cf73e}=_0x327f78[0x0],_0xac2e03=(0x0,_univerjs_drawing[_0x2693db(0x62e)])({'unitId':_0x280669,'subUnitId':_0x3ad117,'drawingId':_0x2cf73e},void 0x0),_0x1bad9c=_0x4cbb06['getObjectIncludeInGroup'](_0xac2e03);if(_0x1bad9c){var _0x18a58c;(_0x18a58c=_0x474e4c[_0x2693db(0x333)](_0x327f78[0x0][_0x2693db(0x2db)]))===null||_0x18a58c===void 0x0||(_0x18a58c=_0x18a58c[_0x2693db(0x57a)][_0x2693db(0x154)]())===null||_0x18a58c===void 0x0||_0x18a58c[_0x2693db(0x633)](_0x1bad9c);}}_0x51ff4b['focusDrawing'](_0x327f78),_0xdcf988[_0x2693db(0x1df)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x120d79(0x3b6)][_0x120d79(0x23e)],'id':'sheet.command.menu-insert-shape','handler':async(_0x3751ac,_0x4f6ff2)=>{const _0x277e82=_0x120d79,_0xf4e0e1=(0x0,_univerjs_sheets[_0x277e82(0x219)])(_0x3751ac[_0x277e82(0x30e)](_univerjs_core[_0x277e82(0x28f)]));if(!_0xf4e0e1)return![];const _0x299308=_0x3751ac[_0x277e82(0x30e)](_univerjs_sheets[_0x277e82(0x14d)])[_0x277e82(0x1fc)]();if(!_0x299308)return![];const _0x1f787e=_0x3751ac['get'](_univerjs_core[_0x277e82(0x3b2)]),{unitId:_0xf3a959,subUnitId:_0x39fddc}=_0xf4e0e1,{value:_0x35e590,enhanceParams:_0x41a93a}=_0x4f6ff2,{range:_0x32177b}=_0x299308,_0x3562b0={'unitId':_0xf3a959,'subUnitId':_0x39fddc,'shapeType':_0x35e590,'range':_0x32177b,'shapeId':(0x0,_univerjs_core[_0x277e82(0x69b)])()};if(_0x41a93a){const _0x2fc575=(0x0,_univerjs_pro_engine_shape[_0x277e82(0x205)])(_0x35e590),_0x364f8e=_0x35e590===_univerjs_pro_engine_shape[_0x277e82(0x691)][_0x277e82(0x20e)];if(_0x2fc575&&(_0x41a93a[_0x277e82(0x36b)]||_0x41a93a[_0x277e82(0x689)]))_0x3562b0[_0x277e82(0x289)]={'ln':{'startArrow':_0x41a93a[_0x277e82(0x36b)]?{'type':_univerjs_pro_engine_shape[_0x277e82(0x5eb)]['Arrow'],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x277e82(0x68d)]}:void 0x0,'endArrow':_0x41a93a[_0x277e82(0x689)]?{'type':_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0x277e82(0x4c6)],'size':_univerjs_pro_engine_shape[_0x277e82(0x190)][_0x277e82(0x632)]}:void 0x0}};if(_0x364f8e&&(_0x41a93a[_0x277e82(0x5b6)]||_0x41a93a[_0x277e82(0x338)]))_0x3562b0[_0x277e82(0x289)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x277e82(0x65b)][_0x277e82(0x42d)],'color':'#FFFFFF'},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x277e82(0x43e)][_0x277e82(0x536)],'width':0x1,'color':'#bcbcbc'},'shapeText':{'isHorizontal':!!_0x41a93a[_0x277e82(0x5b6)]}};}const _0x47db24=_0x1f787e['syncExecuteCommand'](_univerjs_pro_sheets_shape[_0x277e82(0x68e)]['id'],_0x3562b0);return setTimeout(()=>{const _0x11189b=_0x277e82;_0x1f787e[_0x11189b(0x312)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0xf3a959,'subUnitId':_0x39fddc,'drawingId':_0x3562b0[_0x11189b(0x5ec)]}]);},0xc8),_0x47db24;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x500b20,_0x2181ca){const _0x42e477=_0x120d79;super(),this[_0x42e477(0x290)]=_0x500b20,this[_0x42e477(0x50b)]=_0x2181ca,this[_0x42e477(0x2c3)](),this[_0x42e477(0x290)][_0x42e477(0x329)](!![]),this[_0x42e477(0x3cd)]({'dispose':()=>this[_0x42e477(0x290)][_0x42e477(0x329)](![])});}[_0x120d79(0x2c3)](){const _0x3fa1a3=_0x120d79,_0x436c2b=this[_0x3fa1a3(0x290)],_0x4497d8=new Map(),_0x4f4587=_0x436c2b[_0x3fa1a3(0x5fc)]((_0x16fe7b,_0x3eec36,_0x26acac,_0x5e6e82,_0x4d1c2c)=>{const _0x1a0769=_0x3fa1a3,_0x505ee0=_0x3eec36;if(_0x505ee0===_univerjs_pro_engine_shape[_0x1a0769(0x691)][_0x1a0769(0x36f)]||_0x3eec36===_0x1a0769(0x466))return![];try{let _0x478b36=_0x4497d8[_0x1a0769(0x30e)](_0x3eec36);!_0x478b36&&(_0x478b36=new _univerjs_pro_engine_shape[(_0x1a0769(0x69f))](_0x505ee0,_0x1a0769(0x4af)+_0x3eec36),_0x4497d8[_0x1a0769(0x3dd)](_0x3eec36,_0x478b36));if(_0x4d1c2c)_0x478b36['setShapeData']({'adjustValues':_0x4d1c2c},!![]);return _0x478b36[_0x1a0769(0x5b0)]({'width':_0x26acac,'height':_0x5e6e82}),_0x478b36['buildClipPath'](_0x16fe7b,{'left':0x0,'top':0x0,'width':_0x26acac,'height':_0x5e6e82});}catch{return![];}});this[_0x3fa1a3(0x3cd)](_0x4f4587),this[_0x3fa1a3(0x3cd)]({'dispose':()=>_0x4497d8[_0x3fa1a3(0x40b)]()});}[_0x120d79(0x61e)](_0x431ecc,_0x267922,_0x2adc22,_0x2601ea,_0xaa04d0){const _0x5c2035=this['_drawingManagerService']['getDrawingData'](_0x431ecc,_0x267922);if(!_0x5c2035[_0x2adc22])return;const _0x192fce={..._0x5c2035[_0x2adc22],'prstGeom':_0x2601ea,'adjustValues':_0xaa04d0};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x192fce]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui[_0x120d79(0x680)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_drawing[_0x120d79(0x534)]))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0x120d79(0x5d6),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x1d2)],'icon':_0x120d79(0x470),'name':_0x120d79(0x46c)},{'group':_0x120d79(0x5d6),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2de)],'icon':_0x120d79(0x4d9),'name':_0x120d79(0x50e),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x2de)],'icon':_0x120d79(0x364),'name':'shape.type.straight-connector2','endArrow':!![],'startArrow':!![]},{'group':_0x120d79(0x5d6),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['BentConnector3'],'icon':_0x120d79(0x4e7),'name':_0x120d79(0x623)},{'group':'line','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x543)],'icon':_0x120d79(0x25c),'name':'shape.type.bent-connector3-arrow1','endArrow':!![]},{'group':_0x120d79(0x5d6),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x543)],'icon':_0x120d79(0x273),'name':_0x120d79(0x65e),'endArrow':!![],'startArrow':!![]},{'group':_0x120d79(0x5d6),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['CurvedConnector3'],'icon':_0x120d79(0x64e),'name':_0x120d79(0x596)},{'group':'line','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['CurvedConnector3'],'icon':_0x120d79(0x2b0),'name':'shape.type.curved-connector3-arrow1','endArrow':!![]},{'group':_0x120d79(0x5d6),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x614)],'icon':_0x120d79(0x4a1),'name':_0x120d79(0x429),'endArrow':!![],'startArrow':!![]},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x20e)],'icon':_0x120d79(0x172),'name':_0x120d79(0x47d)},{'group':_0x120d79(0x240),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4e4)],'icon':'ShapeRoundRectIcon','name':_0x120d79(0x260)},{'group':_0x120d79(0x240),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x173)],'icon':'ShapeSnip1RectIcon','name':'shape.type.snip1-rect'},{'group':_0x120d79(0x240),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x185)],'icon':_0x120d79(0x5dd),'name':_0x120d79(0x5c6)},{'group':_0x120d79(0x240),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x1c9)],'icon':_0x120d79(0x13c),'name':_0x120d79(0x1ff)},{'group':_0x120d79(0x240),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x14c)],'icon':'ShapeSnipRoundRectIcon','name':'shape.type.snip-round-rect'},{'group':_0x120d79(0x240),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x585)],'icon':_0x120d79(0x42c),'name':'shape.type.round1-rect'},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x58e)],'icon':_0x120d79(0x356),'name':_0x120d79(0x451)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x324)],'icon':'ShapeRound2DiagRectIcon','name':_0x120d79(0x4a7)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x20e)],'icon':_0x120d79(0x555),'name':_0x120d79(0x5d0),'horizontal':!![]},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Rect'],'icon':_0x120d79(0x16d),'name':_0x120d79(0x635),'vertical':!![]},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x169)],'icon':_0x120d79(0x2d6),'name':_0x120d79(0x1a4)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x3b5)],'icon':_0x120d79(0x247),'name':_0x120d79(0x375)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x348)],'icon':_0x120d79(0x526),'name':_0x120d79(0x444)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x34d)],'icon':_0x120d79(0x6a5),'name':_0x120d79(0x45b)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x63d)],'icon':_0x120d79(0x2a2),'name':'shape.type.trapezoid'},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x44e)],'icon':_0x120d79(0x690),'name':'shape.type.diamond'},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4df)],'icon':_0x120d79(0x527),'name':_0x120d79(0x1fe)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x180)],'icon':_0x120d79(0x19e),'name':_0x120d79(0x1d6)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x3eb)],'icon':_0x120d79(0x610),'name':'shape.type.heptagon'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x678)],'icon':_0x120d79(0x475),'name':_0x120d79(0x302)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x5ca)],'icon':_0x120d79(0x33f),'name':_0x120d79(0x315)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Dodecagon'],'icon':_0x120d79(0x143),'name':_0x120d79(0x586)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x41a)],'icon':_0x120d79(0x211),'name':_0x120d79(0x30c)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Chord'],'icon':_0x120d79(0x619),'name':_0x120d79(0x1e7)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x360)],'icon':_0x120d79(0x162),'name':_0x120d79(0x449)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x583)],'icon':_0x120d79(0x6a2),'name':_0x120d79(0x287)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x608)],'icon':_0x120d79(0x477),'name':_0x120d79(0x479)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x544)],'icon':_0x120d79(0x197),'name':_0x120d79(0x6a6)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x3a0)],'icon':_0x120d79(0x58f),'name':'shape.type.diag-stripe'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Plus'],'icon':'ShapePlusIcon','name':_0x120d79(0x396)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x14e)],'icon':_0x120d79(0x530),'name':'shape.type.plaque'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x17a)],'icon':_0x120d79(0x597),'name':_0x120d79(0x170)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x498)],'icon':_0x120d79(0x5ce),'name':_0x120d79(0x5f6)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4b5)],'icon':_0x120d79(0x3b8),'name':_0x120d79(0x29e)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x5e3)],'icon':_0x120d79(0x149),'name':_0x120d79(0x295)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NoSmoking'],'icon':'ShapeNoSmokingIcon','name':_0x120d79(0x1a5)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x61d)],'icon':_0x120d79(0x63f),'name':_0x120d79(0x320)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x192)],'icon':_0x120d79(0x684),'name':_0x120d79(0x144)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x34e)],'icon':_0x120d79(0x60f),'name':_0x120d79(0x480)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Heart'],'icon':_0x120d79(0x5ba),'name':_0x120d79(0x22a)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x669)],'icon':_0x120d79(0x503),'name':_0x120d79(0x60c)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x3c1)],'icon':'ShapeSunIcon','name':_0x120d79(0x1c3)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x53b)],'icon':_0x120d79(0x4bd),'name':_0x120d79(0x280)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Cloud'],'icon':_0x120d79(0x489),'name':_0x120d79(0x3f6)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4be)],'icon':_0x120d79(0x398),'name':_0x120d79(0x68c)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2cb)],'icon':_0x120d79(0x2f3),'name':_0x120d79(0x62d)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x651)],'icon':'ShapeBracePairIcon','name':'shape.type.brace-pair'},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x5c5)],'icon':_0x120d79(0x251),'name':_0x120d79(0x487)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x269)],'icon':'ShapeRightBracketIcon','name':_0x120d79(0x21f)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['LeftBrace'],'icon':_0x120d79(0x58a),'name':_0x120d79(0x243)},{'group':_0x120d79(0x637),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['RightBrace'],'icon':_0x120d79(0x685),'name':_0x120d79(0x337)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['RightArrow'],'icon':_0x120d79(0x1f2),'name':_0x120d79(0x139)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x438)],'icon':_0x120d79(0x2ab),'name':_0x120d79(0x42f)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x3ce)],'icon':_0x120d79(0x3fa),'name':_0x120d79(0x299)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4a6)],'icon':_0x120d79(0x3ec),'name':'shape.type.down-arrow'},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftRightArrow'],'icon':'ShapeLeftRightArrowIcon','name':_0x120d79(0x3ea)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x462)],'icon':_0x120d79(0x220),'name':_0x120d79(0x371)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x2dc)],'icon':_0x120d79(0x613),'name':_0x120d79(0x443)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x673)],'icon':_0x120d79(0x45a),'name':_0x120d79(0x262)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['BentArrow'],'icon':_0x120d79(0x417),'name':'shape.type.bent-arrow'},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x5a4)],'icon':_0x120d79(0x137),'name':_0x120d79(0x68b)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftUpArrow'],'icon':_0x120d79(0x195),'name':_0x120d79(0x2b6)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x233)],'icon':_0x120d79(0x5ef),'name':_0x120d79(0x15f)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x603)],'icon':_0x120d79(0x1e3),'name':_0x120d79(0x4d3)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['CurvedLeftArrow'],'icon':_0x120d79(0x21c),'name':'shape.type.curved-left-arrow'},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x38f)],'icon':'ShapeCurvedUpArrowIcon','name':'shape.type.curved-up-arrow'},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x627)],'icon':_0x120d79(0x49b),'name':_0x120d79(0x1a9)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x19b)],'icon':'ShapeStripedRightArrowIcon','name':'shape.type.striped-right-arrow'},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2d8)],'icon':'ShapeNotchedRightArrowIcon','name':'shape.type.notched-right-arrow'},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['HomePlate'],'icon':_0x120d79(0x349),'name':'shape.type.home-plate'},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x294)],'icon':_0x120d79(0x665),'name':_0x120d79(0x595)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2ee)],'icon':_0x120d79(0x60d),'name':_0x120d79(0x533)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x48a)],'icon':_0x120d79(0x4a2),'name':_0x120d79(0x609)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftArrowCallout'],'icon':'ShapeLeftArrowCalloutIcon','name':_0x120d79(0x65a)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['UpArrowCallout'],'icon':_0x120d79(0x39c),'name':_0x120d79(0x3d0)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x50a)],'icon':'ShapeLeftRightArrowCalloutIcon','name':_0x120d79(0x248)},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['QuadArrowCallout'],'icon':_0x120d79(0x1a3),'name':'shape.type.quad-arrow-callout'},{'group':_0x120d79(0x1ac),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x2ae)],'icon':_0x120d79(0x1dc),'name':'shape.type.circular-arrow'},{'group':_0x120d79(0x261),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4c9)],'icon':'ShapeMathPlusIcon','name':_0x120d79(0x622)},{'group':_0x120d79(0x261),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['MathMinus'],'icon':_0x120d79(0x5a8),'name':_0x120d79(0x493)},{'group':_0x120d79(0x261),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4dd)],'icon':_0x120d79(0x1fb),'name':_0x120d79(0x1f9)},{'group':_0x120d79(0x261),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x304)],'icon':_0x120d79(0x314),'name':_0x120d79(0x5b7)},{'group':_0x120d79(0x261),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['MathEqual'],'icon':_0x120d79(0x230),'name':_0x120d79(0x631)},{'group':_0x120d79(0x261),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4d2)],'icon':_0x120d79(0x3c2),'name':_0x120d79(0x48c)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x25f)],'icon':_0x120d79(0x274),'name':_0x120d79(0x368)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x672)],'icon':'ShapeFlowChartAlternateProcessIcon','name':_0x120d79(0x4cf)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x426)],'icon':_0x120d79(0x48b),'name':_0x120d79(0x5a3)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x18e)],'icon':'ShapeFlowChartInputOutputIcon','name':_0x120d79(0x2d2)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x61b)],'icon':_0x120d79(0x26c),'name':_0x120d79(0x2d4)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x46d)],'icon':_0x120d79(0x456),'name':_0x120d79(0x3e7)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['FlowchartDocument'],'icon':'ShapeFlowChartDocumentIcon','name':_0x120d79(0x31d)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x3bf)],'icon':_0x120d79(0x5f7),'name':'shape.type.flow-chart-multidocument'},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartTerminator'],'icon':_0x120d79(0x589),'name':_0x120d79(0x406)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartPreparation'],'icon':_0x120d79(0x542),'name':_0x120d79(0x56b)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['FlowchartManualInput'],'icon':_0x120d79(0x141),'name':'shape.type.flow-chart-manual-input'},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x62a)],'icon':'ShapeFlowChartManualOperationIcon','name':_0x120d79(0x26f)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x66d)],'icon':'ShapeFlowChartConnectorIcon','name':_0x120d79(0x210)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x29b)],'icon':_0x120d79(0x655),'name':_0x120d79(0x52f)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x1cf)],'icon':'ShapeFlowChartPunchedCardIcon','name':_0x120d79(0x174)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4e2)],'icon':_0x120d79(0x523),'name':_0x120d79(0x3aa)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x54a)],'icon':_0x120d79(0x4fb),'name':'shape.type.flow-chart-summing-junction'},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x404)],'icon':_0x120d79(0x3bc),'name':_0x120d79(0x593)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2fd)],'icon':_0x120d79(0x58d),'name':_0x120d79(0x4b3)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['FlowchartSort'],'icon':_0x120d79(0x38b),'name':_0x120d79(0x580)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x5a6)],'icon':'ShapeFlowChartExtractIcon','name':_0x120d79(0x654)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x16e)],'icon':'ShapeFlowChartMergeIcon','name':_0x120d79(0x196)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartOnlineStorage'],'icon':_0x120d79(0x4d7),'name':_0x120d79(0x4cc)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2c2)],'icon':'ShapeFlowChartDelayIcon','name':_0x120d79(0x2f6)},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2bd)],'icon':'ShapeFlowChartMagneticTapeIcon','name':'shape.type.flow-chart-magnetic-tape'},{'group':_0x120d79(0x374),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x437)],'icon':_0x120d79(0x267),'name':_0x120d79(0x20f)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x53c)],'icon':'ShapeFlowChartMagneticDrumIcon','name':'shape.type.flow-chart-magnetic-drum'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['FlowchartDisplay'],'icon':_0x120d79(0x187),'name':_0x120d79(0x32b)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x2d5)],'icon':'ShapeIrregularSeal1Icon','name':_0x120d79(0x507)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x37e)],'icon':_0x120d79(0x3e4),'name':_0x120d79(0x4ec)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x5b5)],'icon':_0x120d79(0x3d4),'name':_0x120d79(0x38d)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x1ad)],'icon':_0x120d79(0x323),'name':'shape.type.star5'},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Star6'],'icon':'ShapeStar6Icon','name':_0x120d79(0x237)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Star7'],'icon':'ShapeStar7Icon','name':_0x120d79(0x554)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x509)],'icon':_0x120d79(0x6a0),'name':_0x120d79(0x3d7)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x646)],'icon':_0x120d79(0x63a),'name':'shape.type.star10'},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x401)],'icon':_0x120d79(0x2a4),'name':_0x120d79(0x326)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4fc)],'icon':_0x120d79(0x59c),'name':_0x120d79(0x148)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x26e)],'icon':_0x120d79(0x666),'name':_0x120d79(0x686)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x200)],'icon':_0x120d79(0x39e),'name':_0x120d79(0x34f)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Ribbon2'],'icon':_0x120d79(0x5dc),'name':_0x120d79(0x194)},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x3e2)],'icon':_0x120d79(0x67e),'name':'shape.type.ribbon'},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x629)],'icon':_0x120d79(0x3f8),'name':'shape.type.ellipse-ribbon2'},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2ba)],'icon':_0x120d79(0x4a0),'name':'shape.type.ellipse-ribbon'},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x32f)],'icon':_0x120d79(0x656),'name':'shape.type.vertical-scroll'},{'group':_0x120d79(0x612),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2a1)],'icon':_0x120d79(0x52b),'name':_0x120d79(0x471)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x29c)],'icon':_0x120d79(0x1a6),'name':_0x120d79(0x55d)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x1d5)],'icon':_0x120d79(0x45f),'name':'shape.type.double-wave'},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x44c)],'icon':_0x120d79(0x3c9),'name':'shape.type.wedge-rect-callout'},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['WedgeRoundRectCallout'],'icon':_0x120d79(0x1be),'name':_0x120d79(0x588)},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x423)],'icon':_0x120d79(0x679),'name':_0x120d79(0x317)},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x687)],'icon':'ShapeCloudCalloutIcon','name':_0x120d79(0x400)},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2f7)],'icon':_0x120d79(0x300),'name':'shape.type.border-callout1'},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x518)],'icon':'ShapeBorderCallout2Icon','name':_0x120d79(0x2b4)},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x694)],'icon':_0x120d79(0x513),'name':_0x120d79(0x5d9)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x1f6)],'icon':_0x120d79(0x20c),'name':'shape.type.accent-callout1'},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x5b1)],'icon':'ShapeAccentCallout2Icon','name':_0x120d79(0x184)},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x168)],'icon':_0x120d79(0x2a3),'name':'shape.type.accent-callout3'},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Callout1'],'icon':_0x120d79(0x342),'name':'shape.type.callout1'},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x177)],'icon':_0x120d79(0x579),'name':_0x120d79(0x27b)},{'group':_0x120d79(0x2d9),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x615)],'icon':_0x120d79(0x2e8),'name':'shape.type.callout3'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['AccentBorderCallout1'],'icon':_0x120d79(0x255),'name':'shape.type.accent-border-callout1'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x3fd)],'icon':_0x120d79(0x661),'name':'shape.type.accent-border-callout2'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4eb)],'icon':_0x120d79(0x413),'name':'shape.type.accent-border-callout3'},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftCircularArrow'],'icon':_0x120d79(0x1af),'name':_0x120d79(0x32d)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x178)],'icon':_0x120d79(0x53d),'name':_0x120d79(0x4fa)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x42a)],'icon':'ShapeSwooshArrowIcon','name':_0x120d79(0x181)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x38a)],'icon':'ShapeLeftRightRibbonIcon','name':_0x120d79(0x2bc)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x450)],'icon':_0x120d79(0x33a),'name':_0x120d79(0x3cb)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x2f2)],'icon':_0x120d79(0x2cd),'name':_0x120d79(0x50f)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x26d)],'icon':_0x120d79(0x3c8),'name':_0x120d79(0x325)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['Gear9'],'icon':'ShapeGear9Icon','name':'shape.type.gear9'},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x44a)],'icon':_0x120d79(0x4de),'name':_0x120d79(0x354)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x25e)],'icon':'ShapeActionButtonBackPreviousIcon','name':_0x120d79(0x4c7)},{'group':'other','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x3b7)],'icon':_0x120d79(0x2df),'name':_0x120d79(0x1d9)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x35d)],'icon':_0x120d79(0x535),'name':_0x120d79(0x433)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonEnd'],'icon':'ShapeActionButtonEndIcon','name':_0x120d79(0x1bd)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x397)],'icon':_0x120d79(0x1c1),'name':'shape.type.action-button-home'},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x5bf)],'icon':_0x120d79(0x31a),'name':_0x120d79(0x310)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonReturn'],'icon':_0x120d79(0x159),'name':'shape.type.action-button-return'},{'group':'other','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x3d6)],'icon':_0x120d79(0x1b8),'name':_0x120d79(0x193)},{'group':'other','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x4f3)],'icon':_0x120d79(0x674),'name':_0x120d79(0x5ae)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x435)],'icon':_0x120d79(0x47c),'name':_0x120d79(0x44d)},{'group':'other','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x463)],'icon':_0x120d79(0x4d1),'name':'shape.type.action-button-help'},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x334)],'icon':_0x120d79(0x186),'name':_0x120d79(0x298)},{'group':'other','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x5a0)],'icon':'ShapeChartPlusIcon','name':_0x120d79(0x36d)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x67a)],'icon':_0x120d79(0x4ed),'name':'shape.type.chart-star'},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x242)],'icon':_0x120d79(0x1d3),'name':'shape.type.chart-x'},{'group':'other','type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['FlowChartOfflineStorage'],'icon':_0x120d79(0x2c5),'name':_0x120d79(0x3c7)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['LineInv'],'icon':'ShapeLineInvIcon','name':'shape.type.line-inv'},{'group':'other','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x15b)],'icon':_0x120d79(0x4da),'name':_0x120d79(0x1b3)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x120d79(0x175)],'icon':'ShapeSquareTabsIcon','name':_0x120d79(0x202)},{'group':_0x120d79(0x5af),'type':_univerjs_pro_engine_shape[_0x120d79(0x691)]['UpDownArrowCallout'],'icon':_0x120d79(0x64d),'name':_0x120d79(0x24e)},{'group':'other','type':_univerjs_pro_engine_shape[_0x120d79(0x691)][_0x120d79(0x42b)],'icon':_0x120d79(0x284),'name':_0x120d79(0x68f)}],SHAPE_PICKER_COMPONENT=_0x120d79(0x5f9);function ShapePickerComponent({onShapeClick:_0x3d5207,excludeGroups:_0x1a435a}){const _0xa3dfcb=_0x120d79,_0x1df33a=(0x0,_univerjs_ui[_0xa3dfcb(0x258)])(_univerjs_core[_0xa3dfcb(0x2b1)]),_0x3b1342=(0x0,_univerjs_ui[_0xa3dfcb(0x258)])(_univerjs_ui['ComponentManager']),_0x408828=(_0x1a435a?shapeTypeOptions[_0xa3dfcb(0x473)](_0x2e065d=>!_0x1a435a[_0xa3dfcb(0x62b)](_0x2e065d[_0xa3dfcb(0x2f9)])):shapeTypeOptions)['reduce']((_0x186999,_0x2729ca)=>{const _0x24f4d3=_0xa3dfcb;if(!_0x186999[_0x2729ca[_0x24f4d3(0x2f9)]])_0x186999[_0x2729ca[_0x24f4d3(0x2f9)]]=[];return _0x186999[_0x2729ca[_0x24f4d3(0x2f9)]][_0x24f4d3(0x402)](_0x2729ca),_0x186999;},{});return(0x0,react_jsx_runtime['jsx'])(_0xa3dfcb(0x391),{'className':_0xa3dfcb(0x582),'children':Object['entries'](_0x408828)[_0xa3dfcb(0x640)](([_0x233c93,_0x57d3f1])=>(0x0,react_jsx_runtime[_0xa3dfcb(0x13a)])(_0xa3dfcb(0x391),{'className':_0xa3dfcb(0x179),'children':[(0x0,react_jsx_runtime['jsx'])(_0xa3dfcb(0x391),{'className':_0xa3dfcb(0x500),'children':_0x1df33a['t'](_0xa3dfcb(0x49a)+_0x233c93)}),(0x0,react_jsx_runtime[_0xa3dfcb(0x3a2)])(_0xa3dfcb(0x391),{'className':_0xa3dfcb(0x514),'children':_0x57d3f1[_0xa3dfcb(0x640)](_0x1e411b=>{const _0x58f2bc=_0xa3dfcb,_0x1ea157=_0x3b1342[_0x58f2bc(0x30e)](_0x1e411b['icon']);return(0x0,react_jsx_runtime[_0x58f2bc(0x3a2)])(_0x58f2bc(0x391),{'title':_0x1df33a['t'](_0x1e411b[_0x58f2bc(0x447)]),'onClick':()=>_0x3d5207(_0x1e411b),'className':_0x58f2bc(0x2eb),'children':_0x1ea157&&(0x0,react_jsx_runtime[_0x58f2bc(0x3a2)])(_0x1ea157,{'className':_0x58f2bc(0x33e)})},_0x1e411b[_0x58f2bc(0x447)]);})})]},_0x233c93))});}function ImageClipShapePicker(){const _0x59b07f=_0x120d79,_0x19c0b4=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x59b07f(0x2b1)]),_0x49525d=(0x0,_univerjs_ui[_0x59b07f(0x258)])(_univerjs_drawing['IDrawingManagerService']),_0x3b521c=(0x0,_univerjs_ui[_0x59b07f(0x258)])(ImageShapeClipController),[_0x21945d,_0x56ce0a]=(0x0,react[_0x59b07f(0x1e4)])(![]),_0xa695e0=_0x888433=>{const _0x3069b9=_0x59b07f,_0x1c541b=_0x49525d[_0x3069b9(0x308)]()[_0x3069b9(0x5e4)](_0x233ccc=>_0x233ccc[_0x3069b9(0x14f)]===_univerjs_core[_0x3069b9(0x166)][_0x3069b9(0x504)]);if(!_0x1c541b)return;const {unitId:_0xa4322e,subUnitId:_0x54d18f,drawingId:_0x263fa6}=_0x1c541b;_0x3b521c[_0x3069b9(0x61e)](_0xa4322e,_0x54d18f,_0x263fa6,_0x888433[_0x3069b9(0x552)]),_0x56ce0a(![]);};return(0x0,react_jsx_runtime[_0x59b07f(0x3a2)])(_univerjs_design['Dropdown'],{'side':_0x59b07f(0x2bb),'open':_0x21945d,'onOpenChange':_0x56ce0a,'overlay':(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0xa695e0,'excludeGroups':[_0x59b07f(0x5d6)]}),'children':(0x0,react_jsx_runtime[_0x59b07f(0x3a2)])(_univerjs_design[_0x59b07f(0x17d)],{'children':_0x19c0b4['t'](_0x59b07f(0x24b))})});}function ShapePicker(){const _0x5d9ef2=_0x120d79,_0xd8f176=(0x0,_univerjs_ui[_0x5d9ef2(0x258)])(_univerjs_core['ICommandService']),_0x4190a6=_0x47fc17=>{const _0x2f5676=_0x5d9ef2;_0xd8f176[_0x2f5676(0x312)](MenuInsertShapeCommand['id'],{'value':_0x47fc17[_0x2f5676(0x552)],'enhanceParams':{'endArrow':_0x47fc17[_0x2f5676(0x689)],'startArrow':_0x47fc17[_0x2f5676(0x36b)],'horizontal':_0x47fc17[_0x2f5676(0x5b6)],'vertical':_0x47fc17[_0x2f5676(0x338)]}});};return(0x0,react_jsx_runtime[_0x5d9ef2(0x3a2)])(ShapePickerComponent,{'onShapeClick':_0x4190a6});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x120d79(0x482),'icon':'LeftJustifyingIcon','value':_univerjs_core[_0x120d79(0x5de)]['LEFT']},{'label':_0x120d79(0x57d),'icon':_0x120d79(0x380),'value':_univerjs_core['HorizontalAlign'][_0x120d79(0x263)]},{'label':_0x120d79(0x14a),'icon':_0x120d79(0x146),'value':_univerjs_core['HorizontalAlign'][_0x120d79(0x605)]}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x4a07bb){const _0x5b58c4=_0x120d79,_0x6a9db0=_0x4a07bb['get'](_univerjs_core[_0x5b58c4(0x4e0)]),_0x5e4ea8=_0x4a07bb[_0x5b58c4(0x30e)](_univerjs_core['ThemeService']);return{'id':_univerjs_docs_ui[_0x5b58c4(0x43f)]['id'],'tooltip':_0x5b58c4(0x2b9),'type':_univerjs_ui[_0x5b58c4(0x232)]['BUTTON_SELECTOR'],'icon':_0x5b58c4(0x4b1),'selections':[{'label':{'name':_univerjs_ui[_0x5b58c4(0x69a)],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x5b58c4(0x2ad))](_0xb489c9=>{const _0x4f8744=_0x5b58c4;_0xb489c9['next'](_0x5e4ea8[_0x4f8744(0x183)](_0x4f8744(0x515)));}),'hidden$':_0x6a9db0[_0x5b58c4(0x5e9)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x5b58c4(0x49d)]((0x0,rxjs[_0x5b58c4(0x1e6)])(_0x6a9db0[_0x5b58c4(0x1de)](_univerjs_core[_0x5b58c4(0x18d)])),(0x0,rxjs[_0x5b58c4(0x640)])(_0x54cbdb=>!_0x54cbdb))};}function ShapeResetBackgroundColorMenuItemFactory(_0x3ebb86){const _0x44d781=_0x120d79,_0x4d53f6=_0x3ebb86[_0x44d781(0x30e)](_univerjs_core['IContextService']);return{'id':_univerjs_docs_ui[_0x44d781(0x34a)]['id'],'type':_univerjs_ui[_0x44d781(0x232)][_0x44d781(0x265)],'title':'toolbar.resetColor','hidden$':_0x4d53f6[_0x44d781(0x5e9)](_univerjs_core[_0x44d781(0x18d)])['pipe']((0x0,rxjs[_0x44d781(0x1e6)])(_0x4d53f6[_0x44d781(0x1de)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])),(0x0,rxjs[_0x44d781(0x640)])(_0x22ffb9=>!_0x22ffb9))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x120d79(0x482),'icon':_0x120d79(0x519),'value':_univerjs_core[_0x120d79(0x5de)][_0x120d79(0x145)]},{'label':'align.center','icon':_0x120d79(0x380),'value':_univerjs_core[_0x120d79(0x5de)][_0x120d79(0x263)]},{'label':'align.right','icon':_0x120d79(0x146),'value':_univerjs_core[_0x120d79(0x5de)][_0x120d79(0x605)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x4e574b){const _0x4fb08e=_0x120d79;var _0x56f848;const _0x5e2baf=_0x4e574b[_0x4fb08e(0x30e)](_univerjs_core[_0x4fb08e(0x3b2)]),_0x23576d=_0x4e574b[_0x4fb08e(0x30e)](_univerjs_core[_0x4fb08e(0x4e0)]),_0x578996=_0x4e574b['get'](_univerjs_sheets_drawing['ISheetDrawingService']),_0x5e467a=_0x4e574b['get'](ShapeTextEditingService),_0x437cc1=_0x4e574b[_0x4fb08e(0x30e)](_univerjs_pro_sheets_shape[_0x4fb08e(0x293)]),_0x1c0506=_univerjs_core['HorizontalAlign'][_0x4fb08e(0x145)],_0x188838=()=>{const _0x3e0577=_0x4fb08e;var _0x2844c5;const _0x194b44=_0x578996['getFocusDrawings']()[_0x3e0577(0x473)](_0x2cf102=>_0x2cf102[_0x3e0577(0x14f)]===_univerjs_core[_0x3e0577(0x166)]['DRAWING_SHAPE']);if(_0x194b44[_0x3e0577(0x620)]!==0x1)return _0x1c0506;const _0x5bf2e1=_0x5e467a['getEditing'](),_0x50dca5=(_0x5bf2e1===null||_0x5bf2e1===void 0x0?void 0x0:_0x5bf2e1[_0x3e0577(0x2db)])||_0x194b44[0x0][_0x3e0577(0x2db)],_0x11dccf=(_0x5bf2e1===null||_0x5bf2e1===void 0x0?void 0x0:_0x5bf2e1[_0x3e0577(0x363)])||_0x194b44[0x0][_0x3e0577(0x363)],_0x4f9a3e=(_0x5bf2e1===null||_0x5bf2e1===void 0x0?void 0x0:_0x5bf2e1['shapeId'])||_0x194b44[0x0][_0x3e0577(0x6a4)],_0x278dcf=_0x437cc1['getShapeModel'](_0x50dca5,_0x11dccf,_0x4f9a3e);if(!_0x278dcf)return _0x1c0506;const _0x3f9a94=_0x278dcf[_0x3e0577(0x5bc)]();if(!_0x3f9a94||!(_0x3e0577(0x318)in _0x3f9a94))return _0x1c0506;const _0x43b777=_0x3f9a94[_0x3e0577(0x318)];return(_0x2844c5=_0x43b777===null||_0x43b777===void 0x0?void 0x0:_0x43b777['ha'])!==null&&_0x2844c5!==void 0x0?_0x2844c5:_0x1c0506;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x56f848=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x4fb08e(0x5e4)](_0x443fe1=>_0x443fe1[_0x4fb08e(0x5f4)]===_0x1c0506))===null||_0x56f848===void 0x0?void 0x0:_0x56f848['icon'],'tooltip':_0x4fb08e(0x488),'type':_univerjs_ui[_0x4fb08e(0x232)][_0x4fb08e(0x1ee)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x3ce08f=>{const _0x3765a9=_0x4fb08e,_0x486c8b=_0x5e2baf['onCommandExecuted'](_0x55c5d4=>{const _0x1018ec=_0x3b97;if(_0x55c5d4['id']===SetShapeTextHorizontalAlignCommand['id'])_0x3ce08f[_0x1018ec(0x13d)](_0x188838());}),_0x3fa604=_0x5e467a['editingParams$'][_0x3765a9(0x22f)](()=>{const _0x19eb68=_0x3765a9;_0x3ce08f[_0x19eb68(0x13d)](_0x188838());});return _0x3ce08f[_0x3765a9(0x13d)](_0x188838()),()=>{const _0x488d10=_0x3765a9;_0x486c8b[_0x488d10(0x49e)](),_0x3fa604[_0x488d10(0x13b)]();};}),'hidden$':_0x23576d[_0x4fb08e(0x5e9)](_univerjs_core[_0x4fb08e(0x18d)])[_0x4fb08e(0x49d)]((0x0,rxjs[_0x4fb08e(0x640)])(_0xd9756e=>!_0xd9756e))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x120d79(0x61f),'icon':_0x120d79(0x218),'value':_univerjs_core[_0x120d79(0x1b7)]['TOP']},{'label':'align.middle','icon':_0x120d79(0x27c),'value':_univerjs_core['VerticalAlign'][_0x120d79(0x32e)]},{'label':_0x120d79(0x65f),'icon':_0x120d79(0x4b8),'value':_univerjs_core[_0x120d79(0x1b7)][_0x120d79(0x5b2)]}];function ShapeVerticalAlignMenuItemFactory(_0xf53951){const _0x2e52bb=_0x120d79;var _0x1ef897;const _0x40a63c=_0xf53951[_0x2e52bb(0x30e)](_univerjs_core[_0x2e52bb(0x3b2)]),_0x33795c=_0xf53951[_0x2e52bb(0x30e)](_univerjs_core[_0x2e52bb(0x4e0)]),_0x102c81=_0xf53951[_0x2e52bb(0x30e)](_univerjs_sheets_drawing[_0x2e52bb(0x51b)]),_0x7f5d9f=_0xf53951[_0x2e52bb(0x30e)](ShapeTextEditingService),_0x56237d=_0xf53951[_0x2e52bb(0x30e)](_univerjs_pro_sheets_shape[_0x2e52bb(0x293)]),_0x3e5fcb=_univerjs_core[_0x2e52bb(0x1b7)][_0x2e52bb(0x550)],_0x84b547=()=>{const _0x321d8f=_0x2e52bb;var _0x16c7a1;const _0x2fb68d=_0x102c81[_0x321d8f(0x308)]()['filter'](_0x52bcdd=>_0x52bcdd[_0x321d8f(0x14f)]===_univerjs_core[_0x321d8f(0x166)][_0x321d8f(0x525)]);if(_0x2fb68d[_0x321d8f(0x620)]!==0x1)return _0x3e5fcb;const _0x48a353=_0x7f5d9f[_0x321d8f(0x1f8)](),_0x586fd2=(_0x48a353===null||_0x48a353===void 0x0?void 0x0:_0x48a353[_0x321d8f(0x2db)])||_0x2fb68d[0x0][_0x321d8f(0x2db)],_0x3dc205=(_0x48a353===null||_0x48a353===void 0x0?void 0x0:_0x48a353[_0x321d8f(0x363)])||_0x2fb68d[0x0][_0x321d8f(0x363)],_0x538171=(_0x48a353===null||_0x48a353===void 0x0?void 0x0:_0x48a353[_0x321d8f(0x5ec)])||_0x2fb68d[0x0]['drawingId'],_0x512256=_0x56237d[_0x321d8f(0x483)](_0x586fd2,_0x3dc205,_0x538171);if(!_0x512256)return _0x3e5fcb;const _0x3ed281=_0x512256['getShapeTextData']();if(!_0x3ed281||!(_0x321d8f(0x318)in _0x3ed281))return _0x3e5fcb;const _0x2a3f68=_0x3ed281[_0x321d8f(0x318)];return(_0x16c7a1=_0x2a3f68===null||_0x2a3f68===void 0x0?void 0x0:_0x2a3f68['va'])!==null&&_0x16c7a1!==void 0x0?_0x16c7a1:_0x3e5fcb;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x1ef897=SHAPE_VERTICAL_ALIGN_CHILDREN['find'](_0x2a7a20=>_0x2a7a20[_0x2e52bb(0x5f4)]===_0x3e5fcb))===null||_0x1ef897===void 0x0?void 0x0:_0x1ef897[_0x2e52bb(0x41b)],'tooltip':'toolbar.verticalAlignMode.main','type':_univerjs_ui[_0x2e52bb(0x232)]['SELECTOR'],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x2e52bb(0x2ad))](_0x4fa450=>{const _0x21481b=_0x2e52bb,_0x15f568=_0x40a63c[_0x21481b(0x332)](_0x206897=>{const _0x138fb8=_0x21481b;if(_0x206897['id']===SetShapeTextVerticalAlignCommand['id'])_0x4fa450[_0x138fb8(0x13d)](_0x84b547());}),_0x51cbc2=_0x7f5d9f[_0x21481b(0x362)][_0x21481b(0x22f)](()=>{const _0x1e039c=_0x21481b;_0x4fa450[_0x1e039c(0x13d)](_0x84b547());});return _0x4fa450[_0x21481b(0x13d)](_0x84b547()),()=>{const _0xaf4103=_0x21481b;_0x15f568[_0xaf4103(0x49e)](),_0x51cbc2[_0xaf4103(0x13b)]();};}),'hidden$':_0x33795c['subscribeContextValue$'](_univerjs_core[_0x2e52bb(0x18d)])[_0x2e52bb(0x49d)]((0x0,rxjs['map'])(_0x3bab46=>!_0x3bab46))};}function ShapeMenuItemFactory(_0x3797fb){const _0x416f30=_0x120d79,_0x38326d=_0x3797fb['get'](_univerjs_core[_0x416f30(0x28f)]);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x416f30(0x232)][_0x416f30(0x1ee)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x416f30(0x5b3),'tooltip':_0x416f30(0x5fa),'activated$':(0x0,_univerjs_sheets_ui[_0x416f30(0x436)])(_0x38326d,![],()=>new rxjs[(_0x416f30(0x2ad))](_0x5bb8ed=>{const _0x1b641f=_0x416f30;_0x5bb8ed[_0x1b641f(0x13d)](![]);})),'hidden$':(0x0,_univerjs_ui[_0x416f30(0x695)])(_0x3797fb,_univerjs_core['UniverInstanceType'][_0x416f30(0x327)]),'disabled$':(0x0,_univerjs_sheets_ui[_0x416f30(0x3de)])(_0x3797fb)};}const menuSchema={[_univerjs_ui[_0x120d79(0x390)]['START']]:{[_univerjs_ui[_0x120d79(0x638)]['LAYOUT']]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui[_0x120d79(0x638)][_0x120d79(0x670)]]:{[_univerjs_docs_ui[_0x120d79(0x43f)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui[_0x120d79(0x4cb)][_0x120d79(0x520)]]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x4e2b36,_0x3f96b0,_0x1fe5c6,_0x3c4d93,_0x5c61de,_0x22d3f5,_0x54e301,_0x1ff987,_0x3f3f2d,_0x10ccf1,_0x50f9af){const _0x464b12=_0x120d79;super(),this[_0x464b12(0x548)]=_0x4e2b36,this[_0x464b12(0x5db)]=_0x3f96b0,this[_0x464b12(0x5c9)]=_0x1fe5c6,this[_0x464b12(0x382)]=_0x3c4d93,this[_0x464b12(0x64f)]=_0x5c61de,this['_localeService']=_0x22d3f5,this[_0x464b12(0x592)]=_0x54e301,this['_commandService']=_0x1ff987,this[_0x464b12(0x50b)]=_0x3f3f2d,this[_0x464b12(0x345)]=_0x10ccf1,this[_0x464b12(0x3e3)]=_0x50f9af,_defineProperty(this,'_sidebarDisposable',null),_defineProperty(this,_0x464b12(0x23f),null),_defineProperty(this,_0x464b12(0x2a0),![]),this[_0x464b12(0x5f8)](),this['_initMenu'](),this[_0x464b12(0x3cd)](this[_0x464b12(0x548)][_0x464b12(0x697)](_univerjs_core['UniverInstanceType'][_0x464b12(0x327)])[_0x464b12(0x22f)](_0x3fea71=>{const _0x1165c6=_0x464b12;var _0x4bd64c;if(!_0x3fea71)(_0x4bd64c=this[_0x1165c6(0x1cc)])===null||_0x4bd64c===void 0x0||_0x4bd64c['dispose']();})),this['_registerOperations'](),this[_0x464b12(0x36c)]();}['_initMenu'](){const _0x5a3efa=_0x120d79;this[_0x5a3efa(0x382)][_0x5a3efa(0x18c)](menuSchema);}[_0x120d79(0x36c)](){const _0x3a5499=_0x120d79;this[_0x3a5499(0x345)][_0x3a5499(0x5cd)](_univerjs_core['DrawingTypeEnum'][_0x3a5499(0x525)],this[_0x3a5499(0x3c3)][_0x3a5499(0x5e0)](this)),this[_0x3a5499(0x345)][_0x3a5499(0x5e2)](_univerjs_core['DrawingTypeEnum'][_0x3a5499(0x525)],0x6,0x4);}[_0x120d79(0x3c3)](_0x18575c,_0x1c44d7,_0x23f4cb,_0x299752){const _0x371785=_0x120d79;return[{'label':_0x371785(0x5d5),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x18575c,'subUnitId':_0x1c44d7,'drawingId':_0x23f4cb},'disable':_0x299752===_univerjs_core[_0x371785(0x166)]['DRAWING_DOM']},{'label':'sheets-shape.deleteShape','index':0x1,'commandId':_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x18575c,'drawings':[{'unitId':_0x18575c,'subUnitId':_0x1c44d7,'drawingId':_0x23f4cb,'drawingType':_0x299752}]},'disable':![]},{'label':_0x371785(0x4bf),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x18575c,'subUnitId':_0x1c44d7,'drawingId':_0x23f4cb},'disable':![]},{'label':_0x371785(0x60b),'index':0x3,'commandId':_univerjs_pro_sheets_shape['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x18575c,'subUnitId':_0x1c44d7,'shapeId':_0x23f4cb,'flipH':!![]},'disable':![]},{'label':_0x371785(0x16a),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x371785(0x4dc)]['id'],'commandParams':{'unitId':_0x18575c,'subUnitId':_0x1c44d7,'shapeId':_0x23f4cb,'flipV':!![]},'disable':![]},{'label':_0x371785(0x486),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x371785(0x36e)]['id'],'commandParams':{'unitId':_0x18575c,'subUnitId':_0x1c44d7,'shapeId':_0x23f4cb,'rotate':0x5a},'disable':![]},{'label':_0x371785(0x4bb),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x371785(0x36e)]['id'],'commandParams':{'unitId':_0x18575c,'subUnitId':_0x1c44d7,'shapeId':_0x23f4cb,'rotate':-0x5a},'disable':![]},{'label':_0x371785(0x379),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x371785(0x142)]['id'],'commandParams':{'unitId':_0x18575c,'subUnitId':_0x1c44d7,'shapeId':_0x23f4cb},'disable':![]}];}[_0x120d79(0x52d)](_0x3bb15a,_0x4a6d0a,_0x4ffbc2){const _0x59a3fa=_0x120d79,_0x3ebdf6=this[_0x59a3fa(0x64f)][_0x59a3fa(0x31e)](_0x3bb15a,_0x4a6d0a,_0x4ffbc2),_0x22abd5=this[_0x59a3fa(0x64f)]['getShapeDataById'](_0x3bb15a,_0x4a6d0a,_0x4ffbc2);if(_0x3ebdf6!==void 0x0&&_0x22abd5!==void 0x0)return{'shapeData':_0x22abd5,'shapeId':_0x4ffbc2,'shapeType':_0x3ebdf6,'unitId':_0x3bb15a,'subUnitId':_0x4a6d0a,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x10aaed=_0x120d79;this[_0x10aaed(0x3cd)](this[_0x10aaed(0x23b)]['onCommandExecuted'](_0x15cfc9=>{const _0x3aed15=_0x10aaed;if(_0x15cfc9['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x3014b3,subUnitId:_0x3bb815,drawingId:_0xfaa1ed}=_0x15cfc9[_0x3aed15(0x245)];this[_0x3aed15(0x23f)]=this[_0x3aed15(0x52d)](_0x3014b3,_0x3bb815,_0xfaa1ed),this['_openShapeEditPanel']();}_0x15cfc9['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x3aed15(0x23f)]=null,this[_0x3aed15(0x1d1)]());if(_0x15cfc9['id']===_univerjs_pro_sheets_shape[_0x3aed15(0x662)]['id']){const {unitId:_0x13263a,subUnitId:_0x3cebe1,shapeId:_0x454f21}=_0x15cfc9['params'];if(this[_0x3aed15(0x23f)]&&this[_0x3aed15(0x23f)]['shapeId']===_0x454f21){const _0x27be2b=this['_getShapeInfo'](_0x13263a,_0x3cebe1,_0x454f21);if(_0x27be2b)this['_activeShapeInfo']=_0x27be2b;}}})),this[_0x10aaed(0x3cd)](this[_0x10aaed(0x50b)][_0x10aaed(0x297)][_0x10aaed(0x22f)](_0xb39a4a=>{const _0x220de9=_0x10aaed;if(this[_0x220de9(0x2a0)]===![])return;if(_0xb39a4a[_0x220de9(0x620)]===0x0){this[_0x220de9(0x23f)]=null,this[_0x220de9(0x1d1)]();return;}if(_0xb39a4a[_0x220de9(0x620)]===0x1&&_0xb39a4a[0x0][_0x220de9(0x14f)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']){this[_0x220de9(0x23f)]=this['_getShapeInfo'](_0xb39a4a[0x0][_0x220de9(0x2db)],_0xb39a4a[0x0][_0x220de9(0x363)],_0xb39a4a[0x0]['drawingId']);if(this[_0x220de9(0x23f)]){this[_0x220de9(0x2a9)]();return;}}const _0x484184=_0xb39a4a[_0x220de9(0x473)](_0xe4b32a=>{const _0x4e5ce9=_0x220de9;return _0xe4b32a['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x4e5ce9(0x525)];});if(_0xb39a4a[_0x220de9(0x620)]>0x1&&_0x484184['length']===_0xb39a4a[_0x220de9(0x620)]){this[_0x220de9(0x23f)]=this[_0x220de9(0x52d)](_0xb39a4a[0x0][_0x220de9(0x2db)],_0xb39a4a[0x0][_0x220de9(0x363)],_0xb39a4a[0x0]['drawingId']);if(this['_activeShapeInfo']){this[_0x220de9(0x2a9)]();return;}}else{this[_0x220de9(0x23f)]=this[_0x220de9(0x52d)](_0xb39a4a[0x0][_0x220de9(0x2db)],_0xb39a4a[0x0][_0x220de9(0x363)],_0xb39a4a[0x0][_0x220de9(0x6a4)]);if(this[_0x220de9(0x23f)]){this[_0x220de9(0x23f)]['disableShapeOption']=!![],this['_openShapeEditPanel']();return;}}this[_0x220de9(0x1d1)]();}));}[_0x120d79(0x5f8)](){const _0x54d4d2=_0x120d79;[['ShapeIcon',_univerjs_icons[_0x54d4d2(0x5b3)]],[_0x54d4d2(0x255),_univerjs_icons[_0x54d4d2(0x255)]],[_0x54d4d2(0x661),_univerjs_icons[_0x54d4d2(0x661)]],[_0x54d4d2(0x413),_univerjs_icons['ShapeAccentBorderCallout3Icon']],[_0x54d4d2(0x20c),_univerjs_icons['ShapeAccentCallout1Icon']],['ShapeAccentCallout2Icon',_univerjs_icons['ShapeAccentCallout2Icon']],[_0x54d4d2(0x2a3),_univerjs_icons[_0x54d4d2(0x2a3)]],['ShapeActionButtonBackPreviousIcon',_univerjs_icons[_0x54d4d2(0x17b)]],[_0x54d4d2(0x535),_univerjs_icons[_0x54d4d2(0x535)]],[_0x54d4d2(0x186),_univerjs_icons['ShapeActionButtonBlankIcon']],['ShapeActionButtonDocumentIcon',_univerjs_icons['ShapeActionButtonDocumentIcon']],[_0x54d4d2(0x4c8),_univerjs_icons[_0x54d4d2(0x4c8)]],[_0x54d4d2(0x2df),_univerjs_icons[_0x54d4d2(0x2df)]],[_0x54d4d2(0x4d1),_univerjs_icons[_0x54d4d2(0x4d1)]],[_0x54d4d2(0x1c1),_univerjs_icons[_0x54d4d2(0x1c1)]],[_0x54d4d2(0x31a),_univerjs_icons[_0x54d4d2(0x31a)]],[_0x54d4d2(0x1b8),_univerjs_icons[_0x54d4d2(0x1b8)]],[_0x54d4d2(0x159),_univerjs_icons[_0x54d4d2(0x159)]],['ShapeActionButtonSoundIcon',_univerjs_icons['ShapeActionButtonSoundIcon']],[_0x54d4d2(0x398),_univerjs_icons[_0x54d4d2(0x398)]],[_0x54d4d2(0x417),_univerjs_icons[_0x54d4d2(0x417)]],[_0x54d4d2(0x25c),_univerjs_icons['ShapeBentConnector3Arrow1Icon']],[_0x54d4d2(0x273),_univerjs_icons[_0x54d4d2(0x273)]],[_0x54d4d2(0x4e7),_univerjs_icons['ShapeBentConnector3Icon']],['ShapeBentUpArrowIcon',_univerjs_icons[_0x54d4d2(0x5ef)]],[_0x54d4d2(0x3b8),_univerjs_icons[_0x54d4d2(0x3b8)]],['ShapeBlockArcIcon',_univerjs_icons['ShapeBlockArcIcon']],[_0x54d4d2(0x300),_univerjs_icons[_0x54d4d2(0x300)]],[_0x54d4d2(0x57b),_univerjs_icons[_0x54d4d2(0x57b)]],['ShapeBorderCallout3Icon',_univerjs_icons[_0x54d4d2(0x513)]],[_0x54d4d2(0x55b),_univerjs_icons[_0x54d4d2(0x55b)]],[_0x54d4d2(0x2f3),_univerjs_icons[_0x54d4d2(0x2f3)]],['ShapeCallout1Icon',_univerjs_icons[_0x54d4d2(0x342)]],[_0x54d4d2(0x579),_univerjs_icons[_0x54d4d2(0x579)]],[_0x54d4d2(0x2e8),_univerjs_icons[_0x54d4d2(0x2e8)]],[_0x54d4d2(0x597),_univerjs_icons[_0x54d4d2(0x597)]],[_0x54d4d2(0x452),_univerjs_icons[_0x54d4d2(0x452)]],[_0x54d4d2(0x4ed),_univerjs_icons[_0x54d4d2(0x4ed)]],[_0x54d4d2(0x1d3),_univerjs_icons[_0x54d4d2(0x1d3)]],[_0x54d4d2(0x665),_univerjs_icons['ShapeChevronIcon']],[_0x54d4d2(0x619),_univerjs_icons[_0x54d4d2(0x619)]],[_0x54d4d2(0x1dc),_univerjs_icons[_0x54d4d2(0x1dc)]],[_0x54d4d2(0x34c),_univerjs_icons[_0x54d4d2(0x34c)]],[_0x54d4d2(0x489),_univerjs_icons[_0x54d4d2(0x489)]],['ShapeCornerIcon',_univerjs_icons['ShapeCornerIcon']],[_0x54d4d2(0x4de),_univerjs_icons[_0x54d4d2(0x4de)]],[_0x54d4d2(0x5ce),_univerjs_icons[_0x54d4d2(0x5ce)]],['ShapeCurvedConnector3Arrow1Icon',_univerjs_icons[_0x54d4d2(0x2b0)]],[_0x54d4d2(0x4a1),_univerjs_icons[_0x54d4d2(0x4a1)]],[_0x54d4d2(0x64e),_univerjs_icons[_0x54d4d2(0x64e)]],[_0x54d4d2(0x49b),_univerjs_icons['ShapeCurvedDownArrowIcon']],['ShapeCurvedLeftArrowIcon',_univerjs_icons[_0x54d4d2(0x21c)]],[_0x54d4d2(0x1e3),_univerjs_icons[_0x54d4d2(0x1e3)]],[_0x54d4d2(0x199),_univerjs_icons[_0x54d4d2(0x199)]],[_0x54d4d2(0x33f),_univerjs_icons[_0x54d4d2(0x33f)]],[_0x54d4d2(0x58f),_univerjs_icons[_0x54d4d2(0x58f)]],[_0x54d4d2(0x690),_univerjs_icons[_0x54d4d2(0x690)]],[_0x54d4d2(0x143),_univerjs_icons[_0x54d4d2(0x143)]],[_0x54d4d2(0x149),_univerjs_icons[_0x54d4d2(0x149)]],[_0x54d4d2(0x45f),_univerjs_icons['ShapeDoubleWaveIcon']],[_0x54d4d2(0x4a2),_univerjs_icons[_0x54d4d2(0x4a2)]],[_0x54d4d2(0x3ec),_univerjs_icons[_0x54d4d2(0x3ec)]],['ShapeEllipseIcon',_univerjs_icons['ShapeEllipseIcon']],[_0x54d4d2(0x3f8),_univerjs_icons['ShapeEllipseRibbon2Icon']],['ShapeEllipseRibbonIcon',_univerjs_icons['ShapeEllipseRibbonIcon']],['ShapeFlowChartAlternateProcessIcon',_univerjs_icons[_0x54d4d2(0x51a)]],[_0x54d4d2(0x58d),_univerjs_icons[_0x54d4d2(0x58d)]],[_0x54d4d2(0x478),_univerjs_icons[_0x54d4d2(0x478)]],[_0x54d4d2(0x48b),_univerjs_icons['ShapeFlowChartDecisionIcon']],['ShapeFlowChartDelayIcon',_univerjs_icons[_0x54d4d2(0x439)]],[_0x54d4d2(0x187),_univerjs_icons[_0x54d4d2(0x187)]],[_0x54d4d2(0x5c1),_univerjs_icons['ShapeFlowChartDocumentIcon']],[_0x54d4d2(0x434),_univerjs_icons['ShapeFlowChartExtractIcon']],[_0x54d4d2(0x2e5),_univerjs_icons[_0x54d4d2(0x2e5)]],[_0x54d4d2(0x456),_univerjs_icons[_0x54d4d2(0x456)]],['ShapeFlowChartMagneticDiskIcon',_univerjs_icons['ShapeFlowChartMagneticDiskIcon']],[_0x54d4d2(0x37f),_univerjs_icons[_0x54d4d2(0x37f)]],[_0x54d4d2(0x1cd),_univerjs_icons[_0x54d4d2(0x1cd)]],['ShapeFlowChartManualInputIcon',_univerjs_icons['ShapeFlowChartManualInputIcon']],[_0x54d4d2(0x46e),_univerjs_icons[_0x54d4d2(0x46e)]],[_0x54d4d2(0x403),_univerjs_icons[_0x54d4d2(0x403)]],[_0x54d4d2(0x5f7),_univerjs_icons[_0x54d4d2(0x5f7)]],[_0x54d4d2(0x2c5),_univerjs_icons[_0x54d4d2(0x2c5)]],[_0x54d4d2(0x655),_univerjs_icons['ShapeFlowChartOffpageConnectorIcon']],['ShapeFlowChartOnlineStorageIcon',_univerjs_icons[_0x54d4d2(0x4d7)]],['ShapeFlowChartOrIcon',_univerjs_icons['ShapeFlowChartOrIcon']],['ShapeFlowChartPredefinedProcessIcon',_univerjs_icons[_0x54d4d2(0x26c)]],['ShapeFlowChartPreparationIcon',_univerjs_icons[_0x54d4d2(0x542)]],[_0x54d4d2(0x274),_univerjs_icons[_0x54d4d2(0x274)]],[_0x54d4d2(0x1c6),_univerjs_icons[_0x54d4d2(0x1c6)]],[_0x54d4d2(0x523),_univerjs_icons[_0x54d4d2(0x523)]],[_0x54d4d2(0x38b),_univerjs_icons[_0x54d4d2(0x38b)]],[_0x54d4d2(0x4fb),_univerjs_icons[_0x54d4d2(0x4fb)]],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x54d4d2(0x589)]],[_0x54d4d2(0x684),_univerjs_icons[_0x54d4d2(0x684)]],[_0x54d4d2(0x6a2),_univerjs_icons[_0x54d4d2(0x6a2)]],[_0x54d4d2(0x2cd),_univerjs_icons[_0x54d4d2(0x2cd)]],[_0x54d4d2(0x3c8),_univerjs_icons[_0x54d4d2(0x3c8)]],[_0x54d4d2(0x5b4),_univerjs_icons[_0x54d4d2(0x5b4)]],['ShapeHalfFrameIcon',_univerjs_icons[_0x54d4d2(0x477)]],[_0x54d4d2(0x5ba),_univerjs_icons['ShapeHeartIcon']],['ShapeHeptagonIcon',_univerjs_icons['ShapeHeptagonIcon']],[_0x54d4d2(0x19e),_univerjs_icons[_0x54d4d2(0x19e)]],[_0x54d4d2(0x349),_univerjs_icons['ShapeHomePlateIcon']],[_0x54d4d2(0x52b),_univerjs_icons[_0x54d4d2(0x52b)]],[_0x54d4d2(0x37b),_univerjs_icons[_0x54d4d2(0x37b)]],[_0x54d4d2(0x3e4),_univerjs_icons['ShapeIrregularSeal2Icon']],[_0x54d4d2(0x4ff),_univerjs_icons[_0x54d4d2(0x4ff)]],[_0x54d4d2(0x2ab),_univerjs_icons[_0x54d4d2(0x2ab)]],[_0x54d4d2(0x58a),_univerjs_icons[_0x54d4d2(0x58a)]],[_0x54d4d2(0x251),_univerjs_icons['ShapeLeftBracketIcon']],[_0x54d4d2(0x1af),_univerjs_icons[_0x54d4d2(0x1af)]],[_0x54d4d2(0x41e),_univerjs_icons['ShapeLeftRightArrowCalloutIcon']],[_0x54d4d2(0x2e4),_univerjs_icons[_0x54d4d2(0x2e4)]],[_0x54d4d2(0x53d),_univerjs_icons['ShapeLeftRightCircularArrowIcon']],[_0x54d4d2(0x2b7),_univerjs_icons['ShapeLeftRightRibbonIcon']],[_0x54d4d2(0x45a),_univerjs_icons[_0x54d4d2(0x45a)]],[_0x54d4d2(0x195),_univerjs_icons[_0x54d4d2(0x195)]],[_0x54d4d2(0x503),_univerjs_icons[_0x54d4d2(0x503)]],['ShapeLineIcon',_univerjs_icons[_0x54d4d2(0x470)]],[_0x54d4d2(0x150),_univerjs_icons['ShapeLineInvIcon']],[_0x54d4d2(0x314),_univerjs_icons[_0x54d4d2(0x314)]],[_0x54d4d2(0x230),_univerjs_icons[_0x54d4d2(0x230)]],[_0x54d4d2(0x5a8),_univerjs_icons[_0x54d4d2(0x5a8)]],[_0x54d4d2(0x1fb),_univerjs_icons['ShapeMathMultiplyIcon']],[_0x54d4d2(0x3c2),_univerjs_icons['ShapeMathNotEqualIcon']],[_0x54d4d2(0x676),_univerjs_icons['ShapeMathPlusIcon']],['ShapeMoonIcon',_univerjs_icons[_0x54d4d2(0x4bd)]],[_0x54d4d2(0x286),_univerjs_icons[_0x54d4d2(0x286)]],['ShapeNonIsoscelesTrapezoidIcon',_univerjs_icons[_0x54d4d2(0x284)]],[_0x54d4d2(0x270),_univerjs_icons['ShapeNotchedRightArrowIcon']],[_0x54d4d2(0x475),_univerjs_icons['ShapeOctagonIcon']],[_0x54d4d2(0x6a5),_univerjs_icons[_0x54d4d2(0x6a5)]],[_0x54d4d2(0x527),_univerjs_icons['ShapePentagonIcon']],[_0x54d4d2(0x211),_univerjs_icons[_0x54d4d2(0x211)]],[_0x54d4d2(0x33a),_univerjs_icons[_0x54d4d2(0x33a)]],['ShapePlaqueIcon',_univerjs_icons[_0x54d4d2(0x530)]],[_0x54d4d2(0x4da),_univerjs_icons[_0x54d4d2(0x4da)]],[_0x54d4d2(0x440),_univerjs_icons[_0x54d4d2(0x440)]],['ShapeQuadArrowCalloutIcon',_univerjs_icons['ShapeQuadArrowCalloutIcon']],[_0x54d4d2(0x613),_univerjs_icons['ShapeQuadArrowIcon']],[_0x54d4d2(0x172),_univerjs_icons[_0x54d4d2(0x172)]],[_0x54d4d2(0x555),_univerjs_icons['ShapeRectTextboxHorizontalIcon']],[_0x54d4d2(0x16d),_univerjs_icons[_0x54d4d2(0x16d)]],[_0x54d4d2(0x5dc),_univerjs_icons[_0x54d4d2(0x5dc)]],[_0x54d4d2(0x67e),_univerjs_icons[_0x54d4d2(0x67e)]],[_0x54d4d2(0x60d),_univerjs_icons['ShapeRightArrowCalloutIcon']],[_0x54d4d2(0x1f2),_univerjs_icons['ShapeRightArrowIcon']],['ShapeRightBraceIcon',_univerjs_icons[_0x54d4d2(0x685)]],[_0x54d4d2(0x343),_univerjs_icons[_0x54d4d2(0x343)]],[_0x54d4d2(0x42c),_univerjs_icons['ShapeRound1RectIcon']],[_0x54d4d2(0x5a5),_univerjs_icons[_0x54d4d2(0x5a5)]],['ShapeRound2SameRectIcon',_univerjs_icons[_0x54d4d2(0x356)]],[_0x54d4d2(0x54d),_univerjs_icons[_0x54d4d2(0x54d)]],[_0x54d4d2(0x526),_univerjs_icons['ShapeRtTriangleIcon']],[_0x54d4d2(0x60f),_univerjs_icons[_0x54d4d2(0x60f)]],[_0x54d4d2(0x4f6),_univerjs_icons[_0x54d4d2(0x4f6)]],[_0x54d4d2(0x13c),_univerjs_icons[_0x54d4d2(0x13c)]],['ShapeSnip2SameRectIcon',_univerjs_icons[_0x54d4d2(0x5dd)]],[_0x54d4d2(0x4bc),_univerjs_icons['ShapeSnipRoundRectIcon']],[_0x54d4d2(0x63c),_univerjs_icons['ShapeSquareTabsIcon']],[_0x54d4d2(0x63a),_univerjs_icons['ShapeStar10Icon']],[_0x54d4d2(0x2a4),_univerjs_icons[_0x54d4d2(0x2a4)]],[_0x54d4d2(0x59c),_univerjs_icons[_0x54d4d2(0x59c)]],['ShapeStar24Icon',_univerjs_icons[_0x54d4d2(0x666)]],[_0x54d4d2(0x39e),_univerjs_icons[_0x54d4d2(0x39e)]],[_0x54d4d2(0x3d4),_univerjs_icons[_0x54d4d2(0x3d4)]],[_0x54d4d2(0x323),_univerjs_icons[_0x54d4d2(0x323)]],['ShapeStar6Icon',_univerjs_icons[_0x54d4d2(0x617)]],['ShapeStar7Icon',_univerjs_icons[_0x54d4d2(0x4a4)]],['ShapeStar8Icon',_univerjs_icons[_0x54d4d2(0x6a0)]],[_0x54d4d2(0x4d9),_univerjs_icons[_0x54d4d2(0x4d9)]],[_0x54d4d2(0x364),_univerjs_icons[_0x54d4d2(0x364)]],[_0x54d4d2(0x31c),_univerjs_icons['ShapeStripedRightArrowIcon']],[_0x54d4d2(0x378),_univerjs_icons['ShapeSunIcon']],[_0x54d4d2(0x540),_univerjs_icons['ShapeSwooshArrowIcon']],[_0x54d4d2(0x162),_univerjs_icons['ShapeTeardropIcon']],['ShapeTrapezoidIcon',_univerjs_icons[_0x54d4d2(0x2a2)]],['ShapeTriangleIcon',_univerjs_icons[_0x54d4d2(0x247)]],['ShapeUpArrowCalloutIcon',_univerjs_icons[_0x54d4d2(0x39c)]],[_0x54d4d2(0x3fa),_univerjs_icons[_0x54d4d2(0x3fa)]],[_0x54d4d2(0x64d),_univerjs_icons[_0x54d4d2(0x64d)]],['ShapeUpDownArrowIcon',_univerjs_icons['ShapeUpDownArrowIcon']],[_0x54d4d2(0x137),_univerjs_icons[_0x54d4d2(0x137)]],[_0x54d4d2(0x656),_univerjs_icons[_0x54d4d2(0x656)]],['ShapeWaveIcon',_univerjs_icons[_0x54d4d2(0x1a6)]],['ShapeWedgeEllipseCalloutIcon',_univerjs_icons[_0x54d4d2(0x679)]],[_0x54d4d2(0x3c9),_univerjs_icons[_0x54d4d2(0x3c9)]],['ShapeWedgeRoundRectCalloutIcon',_univerjs_icons[_0x54d4d2(0x1be)]],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x54d4d2(0x2c1)],ImageClipShapePicker]][_0x54d4d2(0x19a)](([_0x5c9c4b,_0x8951ce])=>{const _0x4d35d2=_0x54d4d2;this['disposeWithMe'](this[_0x4d35d2(0x592)][_0x4d35d2(0x191)](_0x5c9c4b,_0x8951ce));});}['_openShapeEditPanel'](){const _0x1e44e7=_0x120d79;this[_0x1e44e7(0x1cc)]=this[_0x1e44e7(0x5c9)][_0x1e44e7(0x430)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x1e44e7(0x322)]['t'](_0x1e44e7(0x3bd))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x1e44e7(0x23f)]},'onClose':()=>{const _0x45f571=_0x1e44e7;this[_0x45f571(0x50b)]['focusDrawing'](null),this[_0x45f571(0x3e3)][_0x45f571(0x4d8)](_univerjs_core[_0x45f571(0x18d)],![]),this[_0x45f571(0x1cc)]=null;}}),this[_0x1e44e7(0x2a0)]=!![];}['_closeShapeEditPanel'](){const _0x48d18c=_0x120d79;this[_0x48d18c(0x2a0)]=![],this['_sidebarService'][_0x48d18c(0x2d1)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x48d18c(0x1cc)]=null,this['_contextService']['setContextValue'](_univerjs_core[_0x48d18c(0x18d)],![]),this[_0x48d18c(0x50b)][_0x48d18c(0x54c)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core['IUniverInstanceService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_sheets[_0x120d79(0x5df)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x120d79(0x234)])),__decorateParam(0x3,_univerjs_ui['IMenuManagerService']),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x120d79(0x2b1)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_ui[_0x120d79(0x47a)])),__decorateParam(0x7,_univerjs_core['ICommandService']),__decorateParam(0x8,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x9,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_sheets_ui['SheetCanvasPopManagerService'])),__decorateParam(0xa,_univerjs_core[_0x120d79(0x4e0)])],SheetsShapeUIController);var name='@univerjs-pro/sheets-shape-ui',version=_0x120d79(0x428);const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY=_0x120d79(0x671),configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x184212,_0x307e0f,_0x3652c8,_0x9f93cb,_0x51ee7f){const _0x3fa88b=_0x120d79;super(),this[_0x3fa88b(0x55e)]=_0x184212,this[_0x3fa88b(0x50b)]=_0x307e0f,this[_0x3fa88b(0x38c)]=_0x3652c8,this[_0x3fa88b(0x548)]=_0x9f93cb,this['_imageShapeClipController']=_0x51ee7f,_defineProperty(this,_0x3fa88b(0x506),null),_defineProperty(this,_0x3fa88b(0x3e8),null),_defineProperty(this,_0x3fa88b(0x46a),null),_defineProperty(this,_0x3fa88b(0x562),void 0x0),_defineProperty(this,_0x3fa88b(0x681),[]),_defineProperty(this,_0x3fa88b(0x6a3),0x0),_defineProperty(this,_0x3fa88b(0x3fb),0x0),_defineProperty(this,_0x3fa88b(0x416),0x0),_defineProperty(this,_0x3fa88b(0x3cc),0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,'_activeAdjustInfo',void 0x0),_defineProperty(this,_0x3fa88b(0x688),void 0x0),_defineProperty(this,_0x3fa88b(0x546),void 0x0),_defineProperty(this,_0x3fa88b(0x372),void 0x0),_defineProperty(this,'_isImagePointerDown',![]),this[_0x3fa88b(0x5c7)](),this[_0x3fa88b(0x3ca)]();}['clearAdjustControls'](){const _0x562a36=_0x120d79;this[_0x562a36(0x152)]();}['refreshAdjustControls'](){const _0x293c2a=_0x120d79;this[_0x293c2a(0x152)](),this['_createControls'](!![]);}[_0x120d79(0x1e5)](_0x57c88d,_0x29924a,_0x1fd0aa,_0x83c372){const _0x4ae282=_0x120d79,_0xafd708=_0x57c88d;if(_0xafd708===_univerjs_pro_engine_shape[_0x4ae282(0x691)][_0x4ae282(0x36f)]||_0x57c88d===_0x4ae282(0x466))return;try{const _0x136026=new _univerjs_pro_engine_shape[(_0x4ae282(0x69f))](_0xafd708,_0x4ae282(0x1e8)+_0x57c88d);if(_0x83c372)_0x136026[_0x4ae282(0x27f)]({'adjustValues':_0x83c372},!![]);return _0x136026[_0x4ae282(0x5b0)]({'width':_0x29924a,'height':_0x1fd0aa}),_0x136026;}catch{return;}}[_0x120d79(0x469)](_0x5e9a2c,_0x171412,_0x30d1a2){const _0x41274c=_0x120d79,_0x163ae8={'unitId':_0x5e9a2c,'subUnitId':_0x171412,'drawingId':_0x30d1a2},_0x1e38b5=this['_drawingManagerService'][_0x41274c(0x41f)](_0x163ae8);if(!_0x1e38b5||_0x1e38b5[_0x41274c(0x14f)]!==_univerjs_core[_0x41274c(0x166)]['DRAWING_IMAGE'])return;return _0x1e38b5;}[_0x120d79(0x4f1)](_0x17a4c4,_0x54233d,_0xe12eb3){const _0x1dbe3f=_0x120d79,_0x332422=this[_0x1dbe3f(0x38c)][_0x1dbe3f(0x333)](_0x17a4c4);if(!_0x332422)return void 0x0;const {scene:_0x592e0d}=_0x332422,_0x1fa143=(0x0,_univerjs_drawing[_0x1dbe3f(0x62e)])({'unitId':_0x17a4c4,'subUnitId':_0x54233d,'drawingId':_0xe12eb3}),_0x184d61=_0x592e0d[_0x1dbe3f(0x163)](_0x1fa143);if(_0x184d61 instanceof _univerjs_engine_render[_0x1dbe3f(0x4e8)]){const _0x3ab585=_0x184d61[_0x1dbe3f(0x259)];if(_0x3ab585)return{'prstGeom':_0x3ab585,'adjustValues':_0x184d61['prstGeomAdjValues']};}}[_0x120d79(0x675)](_0x303048=![]){const _0x3af702=_0x120d79;if(!this[_0x3af702(0x3e8)]||!this[_0x3af702(0x46a)]||!this[_0x3af702(0x506)])return;const _0x236d10=this[_0x3af702(0x38c)][_0x3af702(0x333)](this[_0x3af702(0x3e8)]);if(!_0x236d10)return;if(!_0x236d10['with'](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x3af702(0x15a)]())return;const {scene:_0x3bba7f}=_0x236d10,_0x27126d=this['_getImageDrawingInfo'](this[_0x3af702(0x3e8)],this[_0x3af702(0x46a)],this[_0x3af702(0x506)]);if(!_0x27126d)return;const {transform:_0x44f34f}=_0x27126d;if(!_0x44f34f)return;const {left:_0x118509,top:_0x2d16ef,width:_0x48ae68,height:_0x5435be,flipX:_0x525bbb,flipY:_0x130a8a,angle:angle=0x0}=_0x44f34f;if(_0x118509===void 0x0||_0x2d16ef===void 0x0)return;const _0x54bf5f=this['_getImagePrstGeom'](this[_0x3af702(0x3e8)],this['_subUnitId'],this['_activeImageId']);if(!_0x54bf5f)return;if(_0x303048){const _0xca8a5c=this[_0x3af702(0x1e5)](_0x54bf5f[_0x3af702(0x259)],_0x48ae68||0x0,_0x5435be||0x0,_0x54bf5f['adjustValues']);if(!_0xca8a5c)return;this[_0x3af702(0x562)]=_0xca8a5c[_0x3af702(0x21e)]();}const _0x14ee90=this['_activeAdjustPointList'];if(!_0x14ee90||_0x14ee90[_0x3af702(0x620)]===0x0)return;for(let _0x48d39e=0x0;_0x48d39e<_0x14ee90[_0x3af702(0x620)];_0x48d39e++){const _0x34e64d=_0x14ee90[_0x48d39e];let _0x57946e=_0x34e64d['x'],_0x4aedb8=_0x34e64d['y'];if(_0x525bbb)_0x57946e=(_0x48ae68||0x0)-_0x57946e;if(_0x130a8a)_0x4aedb8=(_0x5435be||0x0)-_0x4aedb8;if(angle!==0x0){const _0x437f85=(_0x48ae68||0x0)/0x2,_0xde1ec3=(_0x5435be||0x0)/0x2,_0x5f4838=angle*Math['PI']/0xb4,_0x31f276=Math[_0x3af702(0x1db)](_0x5f4838),_0x16db33=Math['sin'](_0x5f4838),_0x54c4c2=_0x57946e-_0x437f85,_0x45867c=_0x4aedb8-_0xde1ec3;_0x57946e=_0x437f85+(_0x54c4c2*_0x31f276-_0x45867c*_0x16db33),_0x4aedb8=_0xde1ec3+(_0x54c4c2*_0x16db33+_0x45867c*_0x31f276);}const _0x244e20={'x':_0x57946e,'y':_0x4aedb8,'adjName':_0x34e64d[_0x3af702(0x2ff)]};this[_0x3af702(0x69d)](_0x3bba7f,_0x244e20,_0x244e20['adjName'],_0x118509,_0x2d16ef,this[_0x3af702(0x3e8)],this[_0x3af702(0x46a)]);}}[_0x120d79(0x69d)](_0x3d95e0,_0x515cf4,_0x499e88,_0x219558,_0x4355c4,_0x3b89fe,_0x1be99c){const _0x49108b=_0x120d79;if(!this[_0x49108b(0x506)])return;const _0x25d5b7=_0x49108b(0x547)+this['_activeImageId']+'-'+_0x499e88,_0x4a65aa=_0x3d95e0[_0x49108b(0x502)](_0x25d5b7);if(_0x4a65aa){_0x4a65aa[_0x49108b(0x57e)]({'left':_0x515cf4['x']+_0x219558-_univerjs_pro_engine_shape[_0x49108b(0x491)][_0x49108b(0x17e)],'top':_0x515cf4['y']+_0x4355c4-_univerjs_pro_engine_shape[_0x49108b(0x491)][_0x49108b(0x17e)]});return;}const _0x17bf49=new SheetShapeAdjustPointObject(_0x25d5b7,{'left':_0x515cf4['x']+_0x219558-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x49108b(0x17e)],'top':_0x515cf4['y']+_0x4355c4-_univerjs_pro_engine_shape[_0x49108b(0x491)][_0x49108b(0x17e)],'adjName':_0x499e88,'shapeId':this['_activeImageId'],'unitId':_0x3b89fe,'subUnitId':_0x1be99c,'width':_univerjs_pro_engine_shape[_0x49108b(0x491)][_0x49108b(0x17e)]+0x8,'height':_univerjs_pro_engine_shape[_0x49108b(0x491)][_0x49108b(0x17e)]+0x8,'zIndex':_univerjs_engine_render[_0x49108b(0x2ac)]+0x1,'evented':!![]});this[_0x49108b(0x681)]['push'](_0x17bf49),this[_0x49108b(0x381)](_0x17bf49,_0x3d95e0,_0x499e88),_0x3d95e0['addObject'](_0x17bf49,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x120d79(0x152)](){const _0x36141b=_0x120d79;if(this[_0x36141b(0x681)][_0x36141b(0x620)]===0x0)return;this[_0x36141b(0x681)][_0x36141b(0x19a)](_0x4eb797=>_0x4eb797[_0x36141b(0x49e)]()),this[_0x36141b(0x681)]=[];}[_0x120d79(0x39b)](_0x4c7d8a,_0x33e21f){const _0x5c89b2=_0x120d79;var _0x3acf8a;const _0x24846b={'x':0x0,'y':0x0},_0x21d2eb=this[_0x5c89b2(0x38c)][_0x5c89b2(0x333)](_0x4c7d8a);if(!_0x21d2eb)return _0x24846b;if(!_0x21d2eb[_0x5c89b2(0x442)](_univerjs_sheets_ui[_0x5c89b2(0x30a)])[_0x5c89b2(0x453)](_0x33e21f))return _0x24846b;const _0x32d3ca=_0x21d2eb[_0x5c89b2(0x442)](_univerjs_sheets_ui[_0x5c89b2(0x386)]),_0x1ad07c=_0x32d3ca===null||_0x32d3ca===void 0x0?void 0x0:_0x32d3ca['getCurrentScrollState']();if(!_0x1ad07c)return _0x24846b;const _0x10ef86=(_0x3acf8a=this[_0x5c89b2(0x548)]['getUnit'](_0x4c7d8a))===null||_0x3acf8a===void 0x0?void 0x0:_0x3acf8a[_0x5c89b2(0x250)](_0x33e21f);if(!_0x10ef86)return _0x24846b;const _0x498b7e=(0x0,_univerjs_sheets_ui[_0x5c89b2(0x517)])(_0x1ad07c[_0x5c89b2(0x25d)],_0x1ad07c[_0x5c89b2(0x649)],_0x21d2eb[_0x5c89b2(0x57a)],_0x10ef86);if(!_0x498b7e)return _0x24846b;return{'x':_0x498b7e[_0x5c89b2(0x2af)],'y':_0x498b7e[_0x5c89b2(0x5e5)]};}['_getZoomRatio'](_0x1b7714,_0x43d098){const _0x4fe2cc=_0x120d79;var _0x42b560,_0x2716b3;const _0x23a7a6=(_0x42b560=this[_0x4fe2cc(0x548)][_0x4fe2cc(0x59f)](_0x1b7714))===null||_0x42b560===void 0x0?void 0x0:_0x42b560[_0x4fe2cc(0x250)](_0x43d098);return(_0x2716b3=_0x23a7a6===null||_0x23a7a6===void 0x0?void 0x0:_0x23a7a6[_0x4fe2cc(0x358)]())!==null&&_0x2716b3!==void 0x0?_0x2716b3:0x1;}[_0x120d79(0x381)](_0x44a8b4,_0x493bcd,_0x4edf00){const _0x2b0d1b=_0x120d79;this['disposeWithMe']((0x0,_univerjs_core[_0x2b0d1b(0x464)])(_0x44a8b4[_0x2b0d1b(0x3f0)][_0x2b0d1b(0x411)]((_0x4d8b23,_0x43bc34)=>{const _0x3515e0=_0x2b0d1b;var _0x36590e,_0x306c95,_0x4795ec;const {unitId:_0x451c09,subUnitId:_0x5a32f1,drawingId:_0x59b30f}=_0x44a8b4[_0x3515e0(0x4db)](),_0x35722d=this['_getImageDrawingInfo'](_0x451c09,_0x5a32f1,_0x59b30f);if(!(_0x35722d===null||_0x35722d===void 0x0?void 0x0:_0x35722d[_0x3515e0(0x664)]))return;const {left:_0xf37f88,top:_0x60f95b,width:_0x5db286,height:_0x524957}=_0x35722d[_0x3515e0(0x664)];this['_baseLeft']=_0xf37f88||0x0,this[_0x3515e0(0x3fb)]=_0x60f95b||0x0,this[_0x3515e0(0x416)]=_0x5db286||0x0,this[_0x3515e0(0x3cc)]=_0x524957||0x0;const _0xd07076=Boolean((_0x36590e=_0x35722d['transform'])===null||_0x36590e===void 0x0?void 0x0:_0x36590e['flipX']),_0x5b4d0b=Boolean((_0x306c95=_0x35722d[_0x3515e0(0x664)])===null||_0x306c95===void 0x0?void 0x0:_0x306c95['flipY']),_0x3e523d=((_0x4795ec=_0x35722d[_0x3515e0(0x664)])===null||_0x4795ec===void 0x0?void 0x0:_0x4795ec[_0x3515e0(0x3af)])||0x0,_0x31e05c=this[_0x3515e0(0x4f1)](_0x451c09,_0x5a32f1,_0x59b30f);if(!_0x31e05c)return;const _0x26f2f7=this['_getOrCreateShapeModel'](_0x31e05c[_0x3515e0(0x259)],this['_baseWidth'],this[_0x3515e0(0x3cc)],_0x31e05c[_0x3515e0(0x367)]);if(!_0x26f2f7)return;this[_0x3515e0(0x688)]=_0x26f2f7,this[_0x3515e0(0x1fa)]=_0x26f2f7[_0x3515e0(0x3a6)](_0x4edf00);if(!this[_0x3515e0(0x1fa)])return;this[_0x3515e0(0x4b0)]=!![],_0x493bcd[_0x3515e0(0x182)]();const _0x215d23=_0x31e05c['prstGeom'];this[_0x3515e0(0x546)]=_0x493bcd[_0x3515e0(0x445)][_0x3515e0(0x411)]((_0x5ec7e3,_0x17aca4)=>{const _0x44bb65=_0x3515e0;if(!this[_0x44bb65(0x4b0)])return;const {offsetX:_0x4afebf,offsetY:_0x14f332}=_0x5ec7e3,_0x196217=this[_0x44bb65(0x1fa)];if(!this[_0x44bb65(0x688)]||!_0x196217)return;_0x493bcd['disableObjectsEvent'](),_0x493bcd[_0x44bb65(0x30d)](_univerjs_engine_render[_0x44bb65(0x209)][_0x44bb65(0x4ca)]);const _0xe1f0af={'left':0x0,'top':0x0,'width':this[_0x44bb65(0x416)],'height':this['_baseHeight']},_0x491851=this[_0x44bb65(0x39b)](_0x451c09,_0x5a32f1),_0x352530=this['_getZoomRatio'](_0x451c09,_0x5a32f1);let _0x1fcabd=_0x4afebf/_0x352530+_0x491851['x']-this[_0x44bb65(0x6a3)],_0x33f8cf=_0x14f332/_0x352530+_0x491851['y']-this[_0x44bb65(0x3fb)];if(_0x3e523d!==0x0){const _0x30fd74=this[_0x44bb65(0x416)]/0x2,_0x3350ae=this[_0x44bb65(0x3cc)]/0x2,_0x532b1=_0x3e523d*Math['PI']/0xb4,_0x2fdbde=Math[_0x44bb65(0x1db)](_0x532b1),_0x45ad83=Math['sin'](_0x532b1),_0x534db1=_0x1fcabd-_0x30fd74,_0x3eea15=_0x33f8cf-_0x3350ae;_0x1fcabd=_0x30fd74+(_0x534db1*_0x2fdbde+_0x3eea15*_0x45ad83),_0x33f8cf=_0x3350ae+(-_0x534db1*_0x45ad83+_0x3eea15*_0x2fdbde);}if(_0xd07076)_0x1fcabd=this[_0x44bb65(0x416)]-_0x1fcabd;if(_0x5b4d0b)_0x33f8cf=this[_0x44bb65(0x3cc)]-_0x33f8cf;const _0xa146f5=this['_activeShapeModel'][_0x44bb65(0x4f4)](_0xe1f0af,{'x':_0x1fcabd,'y':_0x33f8cf},_0x196217,_0xd07076,_0x5b4d0b),_0x4d3ec8=_0x196217[_0x44bb65(0x35f)]||_0x196217[_0x44bb65(0x3f4)]||_0x196217[_0x44bb65(0x395)]||_0x196217['gdRefR'];if(_0x4d3ec8===void 0x0)return;this[_0x44bb65(0x688)][_0x44bb65(0x5cc)](_0x4d3ec8,_0xa146f5),this[_0x44bb65(0x688)]['updateContext']({'width':this[_0x44bb65(0x416)],'height':this[_0x44bb65(0x3cc)]}),this[_0x44bb65(0x4c5)](_0x451c09,_0x5a32f1,_0x59b30f,_0x4d3ec8,_0xa146f5),this[_0x44bb65(0x562)]=this[_0x44bb65(0x688)][_0x44bb65(0x21e)](),this[_0x44bb65(0x1fa)]=this[_0x44bb65(0x688)][_0x44bb65(0x3a6)](_0x4edf00),this[_0x44bb65(0x675)](),_0x17aca4[_0x44bb65(0x1b5)]();}),this[_0x3515e0(0x372)]=_0x493bcd['onPointerUp$'][_0x3515e0(0x411)]((_0x1ee1cd,_0x350c2d)=>{const _0x21f4bc=_0x3515e0;this['_adjHandlerPointerMove'][_0x21f4bc(0x13b)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x493bcd['resetCursor']();if(this[_0x21f4bc(0x688)]){const _0xc73df=this[_0x21f4bc(0x688)][_0x21f4bc(0x5f3)](),_0x313a07={};for(const _0x4fbc1f of _0xc73df){const _0x4ee791=this[_0x21f4bc(0x688)][_0x21f4bc(0x647)](_0x4fbc1f);if(_0x4ee791!==void 0x0)_0x313a07[_0x4fbc1f]=_0x4ee791;}this[_0x21f4bc(0x3a4)]['clipByShape'](_0x451c09,_0x5a32f1,_0x59b30f,_0x215d23,_0x313a07);}this[_0x21f4bc(0x1fa)]=void 0x0,this[_0x21f4bc(0x688)]=void 0x0,this[_0x21f4bc(0x4b0)]=![],_0x350c2d[_0x21f4bc(0x1b5)](),_0x493bcd['enableObjectsEvent']();}),_0x43bc34[_0x3515e0(0x1b5)]();})));}[_0x120d79(0x4c5)](_0x226496,_0x48d9ae,_0x160117,_0x429327,_0x1600f7){const _0x39f2c1=_0x120d79,_0x3869cd=this[_0x39f2c1(0x38c)]['getRenderById'](_0x226496);if(!_0x3869cd)return;const {scene:_0xb56684}=_0x3869cd,_0x5c12af=(0x0,_univerjs_drawing[_0x39f2c1(0x62e)])({'unitId':_0x226496,'subUnitId':_0x48d9ae,'drawingId':_0x160117}),_0x319fbb=_0xb56684[_0x39f2c1(0x163)](_0x5c12af);if(_0x319fbb instanceof _univerjs_engine_render[_0x39f2c1(0x4e8)]){var _0x3d8556;const _0x16e5e3=(_0x3d8556=_0x319fbb[_0x39f2c1(0x699)])!==null&&_0x3d8556!==void 0x0?_0x3d8556:{};_0x319fbb['setPrstGeomAdjValues']({..._0x16e5e3,[_0x429327]:_0x1600f7}),_0x319fbb[_0x39f2c1(0x44f)](!![]);}}['_registerMoveHandler'](){const _0x327d07=_0x120d79,_0x11ce42=this[_0x327d07(0x548)][_0x327d07(0x697)](_univerjs_core[_0x327d07(0x335)][_0x327d07(0x327)]);this['disposeWithMe'](_0x11ce42['pipe']((0x0,rxjs[_0x327d07(0x1bf)])(_0x52c127=>{const _0x141b58=_0x327d07;if(!_0x52c127)return rxjs[_0x141b58(0x5bb)];return _0x52c127[_0x141b58(0x22d)][_0x141b58(0x49d)]((0x0,rxjs[_0x141b58(0x1bf)])(_0x299cac=>{const _0x370c6a=_0x141b58;if(!_0x299cac)return rxjs['EMPTY'];const _0x2c8ebc=_0x52c127[_0x370c6a(0x58c)](),_0x14c65b=this[_0x370c6a(0x38c)][_0x370c6a(0x333)](_0x2c8ebc),_0x3a1fb9=_0x14c65b===null||_0x14c65b===void 0x0?void 0x0:_0x14c65b['scene'];if(!_0x3a1fb9)return rxjs[_0x370c6a(0x5bb)];return(0x0,rxjs['of'])(_0x3a1fb9);}));}))[_0x327d07(0x22f)](_0x22b874=>{const _0x120386=_0x327d07,_0x2d8f0c=_0x22b874['getTransformerByCreate']();this[_0x120386(0x3cd)](_0x22b874[_0x120386(0x445)][_0x120386(0x411)](()=>{const _0x3e06cb=_0x120386;if(this[_0x3e06cb(0x15d)])this['_clearControls']();})),this[_0x120386(0x3cd)](_0x2d8f0c[_0x120386(0x3d2)][_0x120386(0x22f)](_0x512cac=>{const _0xf4b04e=_0x120386,{objects:_0x35ea97}=_0x512cac;this[_0xf4b04e(0x675)]();if(_0x35ea97!==null&&_0x35ea97[_0xf4b04e(0x5bd)]===0x1){const _0x328678=_0x35ea97['values']()[_0xf4b04e(0x13d)]()[_0xf4b04e(0x5f4)];if(_0x328678 instanceof _univerjs_engine_render[_0xf4b04e(0x4e8)]&&_0x328678[_0xf4b04e(0x259)])this[_0xf4b04e(0x15d)]=!![];}})),this[_0x120386(0x3cd)](_0x2d8f0c[_0x120386(0x5e1)][_0x120386(0x22f)](()=>{const _0xe0f3e=_0x120386;if(this[_0xe0f3e(0x15d)])this['_clearControls']();})),this[_0x120386(0x3cd)](_0x22b874[_0x120386(0x49c)][_0x120386(0x411)](()=>{const _0x3bc9e6=_0x120386;this[_0x3bc9e6(0x15d)]&&(this[_0x3bc9e6(0x15d)]=![],this[_0x3bc9e6(0x675)]());})),this[_0x120386(0x3cd)](_0x2d8f0c[_0x120386(0x29f)][_0x120386(0x22f)](()=>{const _0x222bb4=_0x120386;if(this[_0x222bb4(0x3e8)]&&this[_0x222bb4(0x46a)]&&this[_0x222bb4(0x506)]){const _0x1354fa=this[_0x222bb4(0x4f1)](this[_0x222bb4(0x3e8)],this[_0x222bb4(0x46a)],this[_0x222bb4(0x506)]);if(_0x1354fa){var _0x5e51ff,_0x4def51;const _0x692a76=this[_0x222bb4(0x469)](this[_0x222bb4(0x3e8)],this[_0x222bb4(0x46a)],this[_0x222bb4(0x506)]),_0x518d0e=(_0x692a76===null||_0x692a76===void 0x0||(_0x5e51ff=_0x692a76['transform'])===null||_0x5e51ff===void 0x0?void 0x0:_0x5e51ff[_0x222bb4(0x52c)])||0x0,_0x14a4e0=(_0x692a76===null||_0x692a76===void 0x0||(_0x4def51=_0x692a76[_0x222bb4(0x664)])===null||_0x4def51===void 0x0?void 0x0:_0x4def51[_0x222bb4(0x340)])||0x0,_0x32c0d7=this[_0x222bb4(0x1e5)](_0x1354fa[_0x222bb4(0x259)],_0x518d0e,_0x14a4e0,_0x1354fa[_0x222bb4(0x367)]);_0x32c0d7&&(this['_activeAdjustPointList']=_0x32c0d7[_0x222bb4(0x21e)](),this[_0x222bb4(0x152)](),this['_createControls'](!![]));}}}));}));}[_0x120d79(0x5c7)](){const _0x1c094c=_0x120d79;this[_0x1c094c(0x3cd)](this[_0x1c094c(0x50b)][_0x1c094c(0x297)][_0x1c094c(0x22f)](_0x462656=>{const _0x1a5bd7=_0x1c094c;if(_0x462656['length']===0x1){const _0x1f91d0=_0x462656[0x0];if(_0x1f91d0[_0x1a5bd7(0x14f)]===_univerjs_core[_0x1a5bd7(0x166)][_0x1a5bd7(0x504)]){const {unitId:_0x1b941e,subUnitId:_0x555126,drawingId:_0x5bf4e0}=_0x1f91d0,_0x169cc8=this[_0x1a5bd7(0x4f1)](_0x1b941e,_0x555126,_0x5bf4e0);if(_0x169cc8){var _0x2f14f1,_0x29f9e1;this['_activeImageId']=_0x5bf4e0,this['_unitId']=_0x1b941e,this[_0x1a5bd7(0x46a)]=_0x555126;const _0x4b5242=this[_0x1a5bd7(0x469)](_0x1b941e,_0x555126,_0x5bf4e0),_0x1d78b3=(_0x4b5242===null||_0x4b5242===void 0x0||(_0x2f14f1=_0x4b5242[_0x1a5bd7(0x664)])===null||_0x2f14f1===void 0x0?void 0x0:_0x2f14f1[_0x1a5bd7(0x52c)])||0x0,_0x300b7e=(_0x4b5242===null||_0x4b5242===void 0x0||(_0x29f9e1=_0x4b5242[_0x1a5bd7(0x664)])===null||_0x29f9e1===void 0x0?void 0x0:_0x29f9e1['height'])||0x0,_0x5b2585=this[_0x1a5bd7(0x1e5)](_0x169cc8[_0x1a5bd7(0x259)],_0x1d78b3,_0x300b7e,_0x169cc8['adjustValues']);if(_0x5b2585)this[_0x1a5bd7(0x562)]=_0x5b2585['getDrawingPoints']();this[_0x1a5bd7(0x152)](),this[_0x1a5bd7(0x675)](!![]);}else this[_0x1a5bd7(0x41c)]();}else this[_0x1a5bd7(0x41c)]();}else this['_resetState']();})),this[_0x1c094c(0x3cd)](this[_0x1c094c(0x50b)][_0x1c094c(0x147)][_0x1c094c(0x22f)](_0x28ddf1=>{const _0x6dfd35=_0x1c094c;if(_0x28ddf1[_0x6dfd35(0x620)]===0x1){const _0x49aa26=_0x28ddf1[0x0],_0x5897a3=this[_0x6dfd35(0x50b)]['getDrawingByParam'](_0x49aa26);(_0x5897a3===null||_0x5897a3===void 0x0?void 0x0:_0x5897a3[_0x6dfd35(0x14f)])===_univerjs_core[_0x6dfd35(0x166)][_0x6dfd35(0x504)]&&(this[_0x6dfd35(0x506)]===_0x49aa26[_0x6dfd35(0x6a4)]&&(this[_0x6dfd35(0x152)](),this[_0x6dfd35(0x675)](!![])));}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x1c094c(0x22f)](_0x3f062a=>{const _0x39e5d1=_0x1c094c;for(const _0x267238 of _0x3f062a)if(this[_0x39e5d1(0x506)]===_0x267238[_0x39e5d1(0x6a4)])this[_0x39e5d1(0x41c)]();}));}[_0x120d79(0x41c)](){const _0x2fe8a7=_0x120d79;this[_0x2fe8a7(0x506)]=null,this[_0x2fe8a7(0x3e8)]=null,this['_subUnitId']=null,this[_0x2fe8a7(0x562)]=void 0x0,this[_0x2fe8a7(0x152)]();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x120d79(0x534)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x120d79(0x2a6)])),__decorateParam(0x3,_univerjs_core[_0x120d79(0x28f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x120d79(0x1a2)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x14a81a,_0x3ce8c9,_0x5658a5,_0x49ee72){const _0xfe1b49=_0x120d79;super(),this[_0xfe1b49(0x548)]=_0x14a81a,this['_sheetInterceptorService']=_0x3ce8c9,this['_sheetDrawingService']=_0x5658a5,this['_sheetsShapeService']=_0x49ee72,this['_initSheetChange']();}[_0x120d79(0x357)](){const _0x4805eb=_0x120d79;this['disposeWithMe'](this[_0x4805eb(0x5db)][_0x4805eb(0x153)]({'getMutations':_0x11a704=>{const _0x5a3518=_0x4805eb;if(_0x11a704['id']===_univerjs_sheets[_0x5a3518(0x1e0)]['id']){const _0xc73385=(0x0,_univerjs_sheets['getSheetCommandTarget'])(this[_0x5a3518(0x548)],_0x11a704['params']);if(!_0xc73385)return{'redos':[],'undos':[]};const {unitId:_0x4c047e,subUnitId:_0x1627d3}=_0xc73385,_0x12316d=this['_sheetDrawingService']['getDrawingData'](_0x4c047e,_0x1627d3),_0x5e0401=Object[_0x5a3518(0x1b4)](_0x12316d)[_0x5a3518(0x473)](_0xe422c=>_0xe422c['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x5a3518(0x525)]);if(_0x5e0401['length']===0x0)return{'redos':[],'undos':[]};const _0x397311=[],_0x74fd5b=[];for(let _0x4c19d0=0x0;_0x4c19d0<_0x5e0401[_0x5a3518(0x620)];_0x4c19d0++){const _0x43d676=_0x5e0401[_0x4c19d0],_0x58bc94=this[_0x5a3518(0x64f)][_0x5a3518(0x483)](_0x43d676[_0x5a3518(0x2db)],_0x43d676[_0x5a3518(0x363)],_0x43d676[_0x5a3518(0x6a4)]);if(!_0x58bc94)continue;const {redo:_0x1742f8,undo:_0x363d83,objects:_0x584c74}=this['_sheetDrawingService'][_0x5a3518(0x2dd)]([_0x43d676]);_0x397311[_0x5a3518(0x402)]({'id':_univerjs_pro_sheets_shape[_0x5a3518(0x3f3)]['id'],'params':{'unitId':_0x4c047e,'subUnitId':_0x1627d3,'shapeId':_0x43d676[_0x5a3518(0x6a4)]}}),_0x397311[_0x5a3518(0x402)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4c047e,'subUnitId':_0x1627d3,'type':_univerjs_sheets_drawing[_0x5a3518(0x18b)][_0x5a3518(0x441)],'op':_0x1742f8,'objects':_0x584c74}}),_0x74fd5b[_0x5a3518(0x402)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4c047e,'subUnitId':_0x1627d3,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x5a3518(0x171)],'op':_0x363d83,'objects':_0x584c74}}),_0x74fd5b[_0x5a3518(0x402)]({'id':_univerjs_pro_sheets_shape[_0x5a3518(0x303)]['id'],'params':{'unitId':_0x4c047e,'subUnitId':_0x1627d3,'shapeId':_0x43d676['drawingId'],'shapeType':_0x58bc94[_0x5a3518(0x5a2)](),'shapeData':JSON[_0x5a3518(0x668)](JSON[_0x5a3518(0x5fd)](_0x58bc94[_0x5a3518(0x2fb)]()))}});}return{'redos':_0x397311,'undos':_0x74fd5b};}else{if(_0x11a704['id']===_univerjs_sheets[_0x5a3518(0x53f)]['id']){const {unitId:_0x3712ad,subUnitId:_0x45ace9,targetSubUnitId:_0x23ab46}=_0x11a704[_0x5a3518(0x245)];if(!_0x3712ad||!_0x45ace9||!_0x23ab46)return{'redos':[],'undos':[]};const _0x3df3db=this['_sheetDrawingService'][_0x5a3518(0x5d4)](_0x3712ad,_0x45ace9),_0xa7b7ec=Object[_0x5a3518(0x1b4)](_0x3df3db)[_0x5a3518(0x473)](_0x5c0a2c=>_0x5c0a2c[_0x5a3518(0x14f)]===_univerjs_core[_0x5a3518(0x166)][_0x5a3518(0x525)]);if(_0xa7b7ec['length']===0x0)return{'redos':[],'undos':[]};const _0x428448=[],_0x6f5f71=[];for(let _0x5aa214=0x0;_0x5aa214<_0xa7b7ec[_0x5a3518(0x620)];_0x5aa214++){const _0x362528=_0xa7b7ec[_0x5aa214],_0x58db78=this[_0x5a3518(0x64f)]['getShapeModel'](_0x362528['unitId'],_0x362528[_0x5a3518(0x363)],_0x362528[_0x5a3518(0x6a4)]);if(!_0x58db78)continue;const _0x39bce6=(0x0,_univerjs_core[_0x5a3518(0x69b)])(),_0x23432c={..._0x362528,'unitId':_0x3712ad,'subUnitId':_0x23ab46,'drawingId':_0x39bce6},{redo:_0x1cd6de,undo:_0x158acc,objects:_0x316f8b}=this[_0x5a3518(0x541)]['getBatchAddOp']([_0x23432c]);_0x428448[_0x5a3518(0x402)]({'id':_univerjs_sheets_drawing[_0x5a3518(0x33d)]['id'],'params':{'unitId':_0x3712ad,'subUnitId':_0x23ab46,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x5a3518(0x171)],'op':_0x1cd6de,'objects':_0x316f8b}}),_0x428448[_0x5a3518(0x402)]({'id':_univerjs_pro_sheets_shape[_0x5a3518(0x303)]['id'],'params':{'unitId':_0x3712ad,'subUnitId':_0x23ab46,'shapeId':_0x39bce6,'shapeType':_0x58db78[_0x5a3518(0x5a2)](),'shapeData':JSON[_0x5a3518(0x668)](JSON['stringify'](_0x58db78[_0x5a3518(0x2fb)]()))}}),_0x6f5f71[_0x5a3518(0x402)]({'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x3712ad,'subUnitId':_0x23ab46,'shapeId':_0x39bce6}}),_0x6f5f71[_0x5a3518(0x402)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3712ad,'subUnitId':_0x23ab46,'type':_univerjs_sheets_drawing[_0x5a3518(0x18b)][_0x5a3518(0x441)],'op':_0x158acc,'objects':_0x316f8b}});}return{'redos':_0x428448,'undos':_0x6f5f71};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_core[_0x120d79(0x28f)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_sheets[_0x120d79(0x5df)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_sheets_drawing[_0x120d79(0x51b)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_pro_sheets_shape[_0x120d79(0x293)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x16f4b8,_0x134a9f,_0x182083,_0x142e57,_0x218d7a){const _0x1d74d6=_0x120d79;super(),this[_0x1d74d6(0x55e)]=_0x16f4b8,this['_shapeTextEditingService']=_0x134a9f,this[_0x1d74d6(0x50b)]=_0x182083,this['_contextService']=_0x142e57,this[_0x1d74d6(0x64f)]=_0x218d7a,_defineProperty(this,_0x1d74d6(0x319),null),this['_initEvents'](),this[_0x1d74d6(0x346)](),this[_0x1d74d6(0x501)]();}[_0x120d79(0x29a)](){const _0x3caa12=_0x120d79,{scene:_0xf5ae5f}=this[_0x3caa12(0x55e)];this[_0x3caa12(0x3cd)](_0xf5ae5f[_0x3caa12(0x279)]['subscribeEvent'](_0x5080ce=>{const _0x1b3424=_0x3caa12,{offsetX:_0x37996d,offsetY:_0x5c1510}=_0x5080ce,_0x5da2dd=_0xf5ae5f[_0x1b3424(0x1fd)](_univerjs_engine_render['Vector2'][_0x1b3424(0x1b6)]([_0x37996d,_0x5c1510]));if(_0x5da2dd instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x1b3424(0x205)])(this[_0x1b3424(0x64f)]['getShapeType'](_0x5da2dd[_0x1b3424(0x2db)],_0x5da2dd[_0x1b3424(0x363)],_0x5da2dd['shapeId'])))return;this[_0x1b3424(0x1c7)][_0x1b3424(0x56d)]({'visible':!![],'unitId':_0x5da2dd['unitId'],'subUnitId':_0x5da2dd['subUnitId'],'shapeId':_0x5da2dd[_0x1b3424(0x5ec)],'shapeKey':_0x5da2dd[_0x1b3424(0x67d)]});}}));}[_0x120d79(0x346)](){const _0x5a2d11=_0x120d79;this[_0x5a2d11(0x3cd)](this[_0x5a2d11(0x50b)]['focus$'][_0x5a2d11(0x22f)](_0x317aa1=>{const _0x352612=_0x5a2d11;if(_0x317aa1['length']===0x1){const _0x3fb38e=_0x317aa1[0x0],_0x572293=this['_drawingManagerService'][_0x352612(0x41f)](_0x3fb38e);if((_0x572293===null||_0x572293===void 0x0?void 0x0:_0x572293[_0x352612(0x14f)])===_univerjs_core[_0x352612(0x166)][_0x352612(0x525)]){const _0x7c39e9=this[_0x352612(0x1c7)][_0x352612(0x1f8)]();if((_0x7c39e9===null||_0x7c39e9===void 0x0?void 0x0:_0x7c39e9[_0x352612(0x5ec)])===_0x3fb38e[_0x352612(0x6a4)]&&_0x7c39e9['visible'])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x352612(0x64f)][_0x352612(0x5a2)](_0x3fb38e['unitId'],_0x3fb38e['subUnitId'],_0x3fb38e['drawingId'])))this['_shapeTextEditingService']['setEditing'](null);}else this[_0x352612(0x1c7)][_0x352612(0x1f8)]()&&(this[_0x352612(0x1c7)][_0x352612(0x457)](!![]),requestAnimationFrame(()=>{const _0x2ef457=_0x352612;this[_0x2ef457(0x1c7)]['setEditing'](null);}));}else this['_shapeTextEditingService'][_0x352612(0x1f8)]()&&(this['_shapeTextEditingService'][_0x352612(0x457)](!![]),requestAnimationFrame(()=>{const _0x369e23=_0x352612;this[_0x369e23(0x1c7)][_0x369e23(0x56d)](null);}));})),this['disposeWithMe'](this[_0x5a2d11(0x50b)]['remove$'][_0x5a2d11(0x22f)](_0x1a1793=>{const _0x8ddd56=_0x5a2d11,_0x2700fc=this[_0x8ddd56(0x1c7)][_0x8ddd56(0x1f8)]();if(_0x2700fc&&_0x1a1793[_0x8ddd56(0x45c)](_0x18e471=>_0x18e471['drawingId']===_0x2700fc[_0x8ddd56(0x5ec)]))this[_0x8ddd56(0x1c7)][_0x8ddd56(0x56d)](null);}));}['_initEditingParams'](){const _0x5ad103=_0x120d79;this[_0x5ad103(0x3cd)](this[_0x5ad103(0x1c7)][_0x5ad103(0x362)][_0x5ad103(0x22f)](_0x583cf6=>{const _0x1bfa39=_0x5ad103,{scene:_0x11fbe7}=this['_context'];if(this[_0x1bfa39(0x319)]){const _0x3746c2=_0x11fbe7[_0x1bfa39(0x502)](this['_lastEditingShapeKey']);if(_0x3746c2)_0x3746c2[_0x1bfa39(0x56d)](![]);}if(_0x583cf6){const _0x1001d7=!!_0x583cf6['visible'],_0x289094=_0x11fbe7[_0x1bfa39(0x502)](_0x583cf6[_0x1bfa39(0x48f)]);_0x289094&&(_0x289094[_0x1bfa39(0x56d)](_0x1001d7),this[_0x1bfa39(0x319)]=_0x583cf6[_0x1bfa39(0x48f)]),this[_0x1bfa39(0x3e3)][_0x1bfa39(0x4d8)](_univerjs_core[_0x1bfa39(0x2f4)],_0x1001d7);}else this[_0x1bfa39(0x319)]=null,this[_0x1bfa39(0x3e3)][_0x1bfa39(0x4d8)](_univerjs_core[_0x1bfa39(0x2f4)],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x120d79(0x1a2)])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,_univerjs_core[_0x120d79(0x4e0)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x120d79(0x293)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape[_0x120d79(0x491)][_0x120d79(0x31f)],'stroke':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x120d79(0x587)],'strokeWidth':_univerjs_pro_engine_shape[_0x120d79(0x491)][_0x120d79(0x431)]},'highlighted':{'fill':'#4285f4','stroke':_0x120d79(0x5f0),'strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0x120d79(0x19c)]{constructor(_0x233ca8,_0x507b44){const _0x45ddd1=_0x120d79;super(_0x233ca8,_0x507b44),_defineProperty(this,_0x45ddd1(0x1eb),''),_defineProperty(this,'_cxnIndex',-0x1),_defineProperty(this,_0x45ddd1(0x3e8),''),_defineProperty(this,'_subUnitId',''),_defineProperty(this,_0x45ddd1(0x659),![]);if(_0x507b44)this['setShapeProps'](_0x507b44);}[_0x120d79(0x564)](){const _0x24527a=_0x120d79;return{'unitId':this[_0x24527a(0x3e8)],'subUnitId':this[_0x24527a(0x46a)],'shapeId':this[_0x24527a(0x1eb)],'cxnIndex':this[_0x24527a(0x53a)]};}[_0x120d79(0x341)](_0x480159){const _0x5f24d7=_0x120d79;this['_isHighlighted']!==_0x480159&&(this[_0x5f24d7(0x659)]=_0x480159,this[_0x5f24d7(0x44f)](!![]));}[_0x120d79(0x62f)](){const _0x16890b=_0x120d79;return this[_0x16890b(0x659)];}['setShapeProps'](_0x26a00c){const _0x27bef6=_0x120d79;var _0x3a6df6,_0x3da1a5;if(typeof _0x26a00c[_0x27bef6(0x577)]!==_0x27bef6(0x598))this[_0x27bef6(0x1eb)]=_0x26a00c[_0x27bef6(0x577)];if(typeof _0x26a00c[_0x27bef6(0x226)]!==_0x27bef6(0x598))this['_cxnIndex']=_0x26a00c[_0x27bef6(0x226)];if(typeof _0x26a00c[_0x27bef6(0x2db)]!==_0x27bef6(0x598))this[_0x27bef6(0x3e8)]=_0x26a00c[_0x27bef6(0x2db)];if(typeof _0x26a00c[_0x27bef6(0x363)]!==_0x27bef6(0x598))this['_subUnitId']=_0x26a00c['subUnitId'];if(typeof _0x26a00c['isHighlighted']!==_0x27bef6(0x598))this[_0x27bef6(0x659)]=_0x26a00c[_0x27bef6(0x62f)];this['transformByState']({'width':(_0x3a6df6=_0x26a00c['width'])!==null&&_0x3a6df6!==void 0x0?_0x3a6df6:_univerjs_pro_engine_shape[_0x27bef6(0x491)][_0x27bef6(0x4cd)]*0x2,'height':(_0x3da1a5=_0x26a00c[_0x27bef6(0x340)])!==null&&_0x3da1a5!==void 0x0?_0x3da1a5:_univerjs_pro_engine_shape[_0x27bef6(0x491)][_0x27bef6(0x4cd)]*0x2});}[_0x120d79(0x224)](_0x68ce04){const _0x47095e=_0x120d79,_0x317ec7=this['_isHighlighted']?ConnectionSiteStyle[_0x47095e(0x2ed)]:ConnectionSiteStyle[_0x47095e(0x164)];_univerjs_engine_render['Circle'][_0x47095e(0x3ab)](_0x68ce04,{'radius':_univerjs_pro_engine_shape[_0x47095e(0x491)][_0x47095e(0x4cd)],'fill':_0x317ec7[_0x47095e(0x252)],'stroke':_0x317ec7[_0x47095e(0x49f)],'strokeWidth':_0x317ec7[_0x47095e(0x2c7)],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x395d95,_0x592aa0,_0x4d834f,_0x327f7a){const _0x16f8ec=_0x120d79;super(),this[_0x16f8ec(0x55e)]=_0x395d95,this[_0x16f8ec(0x38c)]=_0x592aa0,this['_drawingManagerService']=_0x4d834f,this[_0x16f8ec(0x64f)]=_0x327f7a,_defineProperty(this,_0x16f8ec(0x409),[]),_defineProperty(this,_0x16f8ec(0x521),null),_defineProperty(this,_0x16f8ec(0x4f2),-0x1),_defineProperty(this,'_currentScene',null),_defineProperty(this,'_unitId',''),_defineProperty(this,_0x16f8ec(0x46a),''),_defineProperty(this,_0x16f8ec(0x20a),null);}[_0x120d79(0x4a3)](_0x4272ae,_0x508198,_0x2ed852,_0x46a991){const _0x5c1fd5=_0x120d79;this[_0x5c1fd5(0x4e5)]=_0x4272ae,this[_0x5c1fd5(0x3e8)]=_0x508198,this[_0x5c1fd5(0x46a)]=_0x2ed852,this[_0x5c1fd5(0x20a)]=_0x46a991;}[_0x120d79(0x2b3)](_0x4b4603){const _0x5c462c=_0x120d79;if(!this[_0x5c462c(0x4e5)])return null;const _0x14aa9b=this[_0x5c462c(0x69e)](_0x4b4603);return _0x14aa9b?(this[_0x5c462c(0x521)]!==_0x14aa9b[_0x5c462c(0x5ec)]&&(this[_0x5c462c(0x455)](),this[_0x5c462c(0x351)](_0x14aa9b[_0x5c462c(0x5ec)],_0x14aa9b[_0x5c462c(0x560)]),this[_0x5c462c(0x521)]=_0x14aa9b['shapeId']),this[_0x5c462c(0x644)](_0x4b4603)):(this[_0x5c462c(0x521)]!==null&&(this[_0x5c462c(0x455)](),this[_0x5c462c(0x521)]=null),null);}['endConnectionDetection'](){const _0x5ba2aa=_0x120d79;this[_0x5ba2aa(0x455)](),this[_0x5ba2aa(0x4e5)]=null,this[_0x5ba2aa(0x521)]=null,this['_highlightedSiteIndex']=-0x1,this['_draggingConnectorId']=null;}[_0x120d79(0x604)](){const _0x55f4a2=_0x120d79;if(this[_0x55f4a2(0x521)]===null||this['_highlightedSiteIndex']<0x0)return null;return{'shapeId':this[_0x55f4a2(0x521)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x120d79(0x69e)](_0x955670){const _0x2344d6=_0x120d79,_0x973b6c=this[_0x2344d6(0x50b)][_0x2344d6(0x5d4)](this['_unitId'],this[_0x2344d6(0x46a)]);for(const _0xe5067b of Object[_0x2344d6(0x222)](_0x973b6c)){if(_0xe5067b===this['_draggingConnectorId'])continue;if(_0x973b6c[_0xe5067b][_0x2344d6(0x14f)]!==_univerjs_core[_0x2344d6(0x166)]['DRAWING_SHAPE'])continue;const _0x3cdc81=this[_0x2344d6(0x64f)]['getShapeModel'](this[_0x2344d6(0x3e8)],this['_subUnitId'],_0xe5067b);if(!_0x3cdc81)continue;if((0x0,_univerjs_pro_engine_shape[_0x2344d6(0x205)])(_0x3cdc81[_0x2344d6(0x5a2)]()))continue;if(_0x3cdc81[_0x2344d6(0x1bc)]()[_0x2344d6(0x620)]===0x0)continue;if(!this[_0x2344d6(0x4e5)])continue;const _0x258bbf=(0x0,_univerjs_drawing[_0x2344d6(0x62e)])({'unitId':this[_0x2344d6(0x3e8)],'subUnitId':this[_0x2344d6(0x46a)],'drawingId':_0xe5067b}),_0x3756d3=this[_0x2344d6(0x4e5)][_0x2344d6(0x502)](_0x258bbf);if(!_0x3756d3)continue;const {left:_0x24bd5f,top:_0x1adf78,width:_0x41b06e,height:_0x343a03}=_0x3756d3[_0x2344d6(0x4ce)](),_0xde3fee=_0x24bd5f+_0x41b06e/0x2,_0x1b6093=_0x1adf78+_0x343a03/0x2,_0x9c5065=_0x3756d3['transform']['getMatrix'](),_0x238782=new _univerjs_engine_render[(_0x2344d6(0x2aa))]([_0x9c5065[0x0],_0x9c5065[0x1],_0x9c5065[0x2],_0x9c5065[0x3],_0xde3fee,_0x1b6093]),_0x2b0382=_0x3756d3['getParent'](),_0x42ee7d=(_0x3756d3[_0x2344d6(0x3fe)]&&(_0x2b0382===null||_0x2b0382===void 0x0?void 0x0:_0x2b0382[_0x2344d6(0x693)])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0x2344d6(0x13e)]?_0x2b0382[_0x2344d6(0x292)][_0x2344d6(0x4ad)](_0x238782):_0x238782)[_0x2344d6(0x682)]()[_0x2344d6(0x3e5)](_0x955670),_0x7d8f57=_0x41b06e/0x2,_0x1a0649=_0x343a03/0x2,_0x4774cf=SHAPE_BOUNDS_PADDING;if(_0x42ee7d['x']>=-_0x7d8f57-_0x4774cf&&_0x42ee7d['x']<=_0x7d8f57+_0x4774cf&&_0x42ee7d['y']>=-_0x1a0649-_0x4774cf&&_0x42ee7d['y']<=_0x1a0649+_0x4774cf)return{'shapeId':_0xe5067b,'shapeModel':_0x3cdc81};}return null;}['_showConnectionSites'](_0x30d4a4,_0x568f25){const _0x220eaa=_0x120d79;if(!this[_0x220eaa(0x4e5)])return;const _0x2deadc=(0x0,_univerjs_drawing[_0x220eaa(0x62e)])({'unitId':this['_unitId'],'subUnitId':this[_0x220eaa(0x46a)],'drawingId':_0x30d4a4}),_0x64d0a5=this[_0x220eaa(0x4e5)]['getObjectIncludeInGroup'](_0x2deadc);if(!_0x64d0a5)return;const {left:_0x17c370,top:_0x91776e,width:_0x15bd53,height:_0x311038}=_0x64d0a5[_0x220eaa(0x4ce)](),_0x46f4ce=_0x17c370+_0x15bd53/0x2,_0x4060c3=_0x91776e+_0x311038/0x2,_0x3d5077=_0x64d0a5[_0x220eaa(0x664)]['getMatrix'](),_0x50ee6d=new _univerjs_engine_render[(_0x220eaa(0x2aa))]([_0x3d5077[0x0],_0x3d5077[0x1],_0x3d5077[0x2],_0x3d5077[0x3],_0x46f4ce,_0x4060c3]),_0x51b3d1=_0x64d0a5[_0x220eaa(0x61c)](),_0x2197c8=_0x64d0a5[_0x220eaa(0x3fe)]&&(_0x51b3d1===null||_0x51b3d1===void 0x0?void 0x0:_0x51b3d1[_0x220eaa(0x693)])===_univerjs_engine_render[_0x220eaa(0x223)][_0x220eaa(0x13e)]?_0x51b3d1[_0x220eaa(0x292)]['multiply'](_0x50ee6d):_0x50ee6d;_0x568f25['updateContext']({'width':_0x15bd53,'height':_0x311038});const _0x5e5c7e=_0x568f25['getConnectionSiteList']();for(const _0x681152 of _0x5e5c7e){const _0x5d6c0d=_0x681152['x']-_0x15bd53/0x2,_0x23d313=_0x681152['y']-_0x311038/0x2,_0x1dd72e=_0x2197c8[_0x220eaa(0x3e5)]({'x':_0x5d6c0d,'y':_0x23d313}),_0x1d30b3=_0x1dd72e['x'],_0x5154eb=_0x1dd72e['y'],_0xb341f6=new SheetBasicShapeConnectionSiteObject('connection-site-'+_0x30d4a4+'-'+_0x681152['index'],{'left':_0x1d30b3-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x220eaa(0x4cd)],'top':_0x5154eb-_univerjs_pro_engine_shape[_0x220eaa(0x491)]['cxnPointRadius'],'targetShapeId':_0x30d4a4,'cxnIndex':_0x681152[_0x220eaa(0x1c4)],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':_univerjs_pro_engine_shape[_0x220eaa(0x491)][_0x220eaa(0x4cd)]*0x2,'height':_univerjs_pro_engine_shape[_0x220eaa(0x491)][_0x220eaa(0x4cd)]*0x2,'zIndex':_univerjs_engine_render[_0x220eaa(0x2ac)]+0x2,'evented':![]});this[_0x220eaa(0x409)][_0x220eaa(0x402)](_0xb341f6),this[_0x220eaa(0x4e5)][_0x220eaa(0x2ec)](_0xb341f6,_univerjs_engine_render[_0x220eaa(0x2ac)]+0x2);}}[_0x120d79(0x644)](_0x320679){const _0x598374=_0x120d79;let _0xd69602=null,_0x3932a6=Infinity,_0x1f8da4=null;for(const _0x2f4a65 of this['_connectionSiteObjects']){const _0x532452=_0x2f4a65[_0x598374(0x2bb)]+_univerjs_pro_engine_shape[_0x598374(0x491)]['cxnPointRadius'],_0x1d4741=_0x2f4a65['top']+_univerjs_pro_engine_shape[_0x598374(0x491)][_0x598374(0x4cd)],_0x714779=_0x320679['x']-_0x532452,_0x26cdc5=_0x320679['y']-_0x1d4741,_0x21189d=Math[_0x598374(0x5e8)](_0x714779*_0x714779+_0x26cdc5*_0x26cdc5);_0x21189d<_0x3932a6&&(_0x3932a6=_0x21189d,_0xd69602=_0x2f4a65,_0x1f8da4={'x':_0x532452,'y':_0x1d4741});}const _0x3bcd77=_0x3932a6<=CONNECTION_SITE_HIT_RADIUS&&_0xd69602?_0xd69602['getConnectionInfo']()[_0x598374(0x226)]:-0x1;if(_0x3bcd77!==this[_0x598374(0x4f2)]){for(const _0x3764fc of this[_0x598374(0x409)]){const _0x47cbf8=_0x3764fc[_0x598374(0x564)]();_0x3764fc['setHighlighted'](_0x47cbf8[_0x598374(0x226)]===_0x3bcd77);}this[_0x598374(0x4f2)]=_0x3bcd77;}if(_0x3932a6<=CONNECTION_SITE_HIT_RADIUS&&_0xd69602&&_0x1f8da4){const _0x393bd9=_0xd69602[_0x598374(0x564)](),_0x3d6af6=this[_0x598374(0x3ff)](_0x393bd9[_0x598374(0x5ec)],_0x393bd9[_0x598374(0x226)]);return{'shapeId':_0x393bd9['shapeId'],'cxnIndex':_0x393bd9[_0x598374(0x226)],'unitId':_0x393bd9['unitId'],'subUnitId':_0x393bd9['subUnitId'],'worldPoint':_0x1f8da4,'angle':_0x3d6af6};}return null;}[_0x120d79(0x3ff)](_0x49a714,_0x93c4b9){const _0x18b447=_0x120d79,_0x2b4e54=this[_0x18b447(0x64f)][_0x18b447(0x483)](this[_0x18b447(0x3e8)],this['_subUnitId'],_0x49a714);if(!_0x2b4e54)return 0x0;const _0x4dba25=this['_drawingManagerService'][_0x18b447(0x41f)]({'unitId':this[_0x18b447(0x3e8)],'subUnitId':this[_0x18b447(0x46a)],'drawingId':_0x49a714});if(!(_0x4dba25===null||_0x4dba25===void 0x0?void 0x0:_0x4dba25[_0x18b447(0x664)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x4dba25[_0x18b447(0x664)];_0x2b4e54[_0x18b447(0x5b0)]({'width':width,'height':height});const _0x31b7d6=_0x2b4e54[_0x18b447(0x1bc)]()[_0x18b447(0x5e4)](_0x315eed=>_0x315eed['index']===_0x93c4b9);if(!_0x31b7d6)return 0x0;let _0x2f879d=_0x31b7d6[_0x18b447(0x4f7)]/0xea60;if(flipX)_0x2f879d=0xb4-_0x2f879d;if(flipY)_0x2f879d=-_0x2f879d;return _0x2f879d=(_0x2f879d%0x168+0x168)%0x168,_0x2f879d;}[_0x120d79(0x455)](){const _0x4fff2f=_0x120d79;for(const _0x1ac482 of this['_connectionSiteObjects'])_0x1ac482[_0x4fff2f(0x49e)]();this[_0x4fff2f(0x409)]=[],this[_0x4fff2f(0x4f2)]=-0x1;}[_0x120d79(0x49e)](){const _0x282d8c=_0x120d79;this['_clearConnectionSites'](),super[_0x282d8c(0x49e)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_engine_render[_0x120d79(0x2a6)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_drawing[_0x120d79(0x534)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_pro_sheets_shape['SheetsShapeService']))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core['Disposable']{constructor(_0x9dded9,_0x4b56dc,_0x3c1347,_0x561dab,_0x3e3f77){const _0x56ef1a=_0x120d79;super(),this[_0x56ef1a(0x558)]=_0x9dded9,this['_sheetClipboardService']=_0x4b56dc,this[_0x56ef1a(0x541)]=_0x3c1347,this['_shapeService']=_0x561dab,this[_0x56ef1a(0x581)]=_0x3e3f77,_defineProperty(this,'_copyInfo',void 0x0),this[_0x56ef1a(0x414)](),this[_0x56ef1a(0x3f9)]();}get[_0x120d79(0x2f8)](){const _0x22f863=_0x120d79;return this[_0x22f863(0x541)][_0x22f863(0x308)]();}[_0x120d79(0x3f9)](){const _0x5c8784=_0x120d79;this[_0x5c8784(0x581)][_0x5c8784(0x1f7)](({fromUnitId:_0xf13f4f,fromSubUnitId:_0x16891c,toUnitId:_0x541cf8,toSubUnitId:_0x274c73,idMap:_0x2ce91a})=>{const _0x9ef16e=_0x5c8784,_0x3e105b=[],_0x3e4d6f=[];for(const [_0x5b39b9,_0x59634e]of _0x2ce91a['entries']()){const _0x9e0829=this[_0x9ef16e(0x38e)][_0x9ef16e(0x483)](_0xf13f4f,_0x16891c,_0x5b39b9);if(!_0x9e0829)continue;const _0x185a95=_0x9e0829[_0x9ef16e(0x5a2)](),_0x4c0f91=JSON['parse'](JSON[_0x9ef16e(0x5fd)](_0x9e0829['getShapeData']()));if(_0x4c0f91['relation']){var _0x5b63e9,_0x3f7e5;const _0x35b78e=(_0x5b63e9=_0x4c0f91[_0x9ef16e(0x4b7)]['from'])===null||_0x5b63e9===void 0x0?void 0x0:_0x5b63e9[_0x9ef16e(0x5ec)],_0x533019=(_0x3f7e5=_0x4c0f91[_0x9ef16e(0x4b7)]['to'])===null||_0x3f7e5===void 0x0?void 0x0:_0x3f7e5['shapeId'],_0x2f5879=_0x35b78e?_0x2ce91a[_0x9ef16e(0x20d)](_0x35b78e):!![],_0x14da03=_0x533019?_0x2ce91a['has'](_0x533019):!![];if(_0x2f5879&&_0x35b78e&&_0x4c0f91[_0x9ef16e(0x4b7)][_0x9ef16e(0x66e)])_0x4c0f91[_0x9ef16e(0x4b7)][_0x9ef16e(0x66e)]={..._0x4c0f91[_0x9ef16e(0x4b7)][_0x9ef16e(0x66e)],'shapeId':_0x2ce91a[_0x9ef16e(0x30e)](_0x35b78e)};else _0x4c0f91[_0x9ef16e(0x4b7)]['from']=void 0x0;if(_0x14da03&&_0x533019&&_0x4c0f91[_0x9ef16e(0x4b7)]['to'])_0x4c0f91[_0x9ef16e(0x4b7)]['to']={..._0x4c0f91['relation']['to'],'shapeId':_0x2ce91a[_0x9ef16e(0x30e)](_0x533019)};else _0x4c0f91[_0x9ef16e(0x4b7)]['to']=void 0x0;}_0x3e105b[_0x9ef16e(0x402)]({'id':_univerjs_pro_sheets_shape[_0x9ef16e(0x303)]['id'],'params':{'unitId':_0x541cf8,'subUnitId':_0x274c73,'shapeId':_0x59634e,'shapeType':_0x185a95,'shapeData':_0x4c0f91}}),_0x3e4d6f[_0x9ef16e(0x402)]({'id':_univerjs_pro_sheets_shape[_0x9ef16e(0x3f3)]['id'],'params':{'unitId':_0x541cf8,'subUnitId':_0x274c73,'shapeId':_0x59634e}});}return{'redos':_0x3e105b,'undos':_0x3e4d6f};});}[_0x120d79(0x414)](){const _0x4e1ab9=_0x120d79;this[_0x4e1ab9(0x3cd)](this[_0x4e1ab9(0x5ed)][_0x4e1ab9(0x537)]({'id':'sheets-shape-ui','onBeforeCopy':(_0x5085c6,_0x140249,_0x344cdd,_0x3fb501)=>{const _0x34ef0f=_0x4e1ab9;this[_0x34ef0f(0x497)]=null;const _0x126621=this[_0x34ef0f(0x2f8)];if(_0x126621['length']){const _0x3f1929=_0x126621[_0x34ef0f(0x473)](_0x2cecf6=>_0x2cecf6[_0x34ef0f(0x14f)]===_univerjs_core[_0x34ef0f(0x166)][_0x34ef0f(0x525)]);if(_0x3f1929[_0x34ef0f(0x620)]===0x0)return;this[_0x34ef0f(0x497)]={'unitId':_0x5085c6,'subUnitId':_0x140249,'copyType':_0x3fb501,'drawings':_0x3f1929};}else this[_0x34ef0f(0x642)](_0x5085c6,_0x140249,_0x344cdd,_0x3fb501);},'onPasteCells':(_0x2a54c5,_0x4eedfc,_0x1f74ff,_0x5da92c)=>{const _0xe91db5=_0x4e1ab9;if(!this[_0xe91db5(0x497)])return{'redos':[],'undos':[]};const {pasteType:_0x50f44c}=_0x5da92c;if(_0x50f44c!==_univerjs_sheets_ui[_0xe91db5(0x2fa)][_0xe91db5(0x460)])return{'redos':[],'undos':[]};return this[_0xe91db5(0x63e)](_0x4eedfc,this[_0xe91db5(0x497)][_0xe91db5(0x4c3)]===_univerjs_sheets_ui[_0xe91db5(0x657)]['CUT']);},'onPasteUnrecognized':_0x310b5a=>{const _0x5d5fab=_0x4e1ab9;if(!this['_copyInfo'])return{'redos':[],'undos':[]};return this[_0x5d5fab(0x63e)](_0x310b5a,this[_0x5d5fab(0x497)][_0x5d5fab(0x4c3)]===_univerjs_sheets_ui['COPY_TYPE'][_0x5d5fab(0x3b4)]);}}));}[_0x120d79(0x642)](_0xb90845,_0x2cf84e,_0x1a2479,_0x5c12eb){const _0x48ff1c=_0x120d79,_0x3f559f=this[_0x48ff1c(0x558)][_0x48ff1c(0x453)](_0xb90845,_0x2cf84e);if(!_0x3f559f)return;const _0x322026=(0x0,_univerjs_sheets[_0x48ff1c(0x66a)])(_0x3f559f,_0x1a2479);if(!_0x322026)return;const {startX:_0x18ea6c,endX:_0x67d501,startY:_0x356e76,endY:_0x1466a8}=_0x322026,_0x118351=this[_0x48ff1c(0x541)][_0x48ff1c(0x5d4)](_0xb90845,_0x2cf84e),_0xaeb99c=this[_0x48ff1c(0x2f8)]['slice']();for(const [_0x1f914a,_0x4e141e]of Object['entries'](_0x118351)){if(_0x4e141e[_0x48ff1c(0x14f)]!==_univerjs_core[_0x48ff1c(0x166)][_0x48ff1c(0x525)])continue;const {transform:_0x308964}=_0x4e141e;if(!_0x308964)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x308964;if(_0x18ea6c<=left&&_0x67d501>=left+width&&_0x356e76<=top&&_0x1466a8>=top+height)_0xaeb99c['push'](_0x4e141e);}if(_0xaeb99c[_0x48ff1c(0x620)]>0x0)this['_copyInfo']={'unitId':_0xb90845,'subUnitId':_0x2cf84e,'copyType':_0x5c12eb,'copyRange':_0x1a2479,'drawings':_0xaeb99c};}[_0x120d79(0x63e)](_0x54322b,_0x4507bf){const _0x5f2493=_0x120d79,{unitId:_0x42e416,subUnitId:_0x2de6a6,range:_0x1176e1}=_0x54322b,_0x2cdb7e=this[_0x5f2493(0x558)][_0x5f2493(0x453)](_0x42e416,_0x2de6a6);if(!_0x2cdb7e)return{'redos':[],'undos':[]};const _0x211173=(0x0,_univerjs_sheets['discreteRangeToRange'])(_0x1176e1),{unitId:_0x5de520,subUnitId:_0x1a0127,copyRange:_0x7b7036,drawings:_0x454539}=this[_0x5f2493(0x497)],_0x4a6e78=this['_sheetSkeletonService']['getSkeleton'](_0x5de520,_0x1a0127);if(!_0x4a6e78)return{'redos':[],'undos':[]};let _0x54cab8;if(!_0x7b7036){let _0x4aa96e=Infinity,_0x9cf5c4=Infinity;for(const _0x586fd7 of _0x454539){var _0x5aeb04;const {left:left=0x0,top:top=0x0}=(_0x5aeb04=_0x586fd7[_0x5f2493(0x664)])!==null&&_0x5aeb04!==void 0x0?_0x5aeb04:{};if(left<_0x4aa96e)_0x4aa96e=left;if(top<_0x9cf5c4)_0x9cf5c4=top;}if(_0x4aa96e!==Infinity&&_0x9cf5c4!==Infinity)_0x54cab8={'left':_0x4aa96e,'top':_0x9cf5c4};}const _0x4f9ebe=new Map();if(!_0x4507bf){for(const _0x51647a of _0x454539)_0x4f9ebe[_0x5f2493(0x3dd)](_0x51647a[_0x5f2493(0x6a4)],(0x0,_univerjs_core[_0x5f2493(0x69b)])());}const _0x4d871b=[],_0x2372d3=[];for(const _0x66a8fd of _0x454539){const {drawingId:_0x1cae61,transform:_0x4c2025,sheetTransform:_0x5b8103}=_0x66a8fd;if(!_0x4c2025||!_0x5b8103)continue;const _0xb57f0b=this[_0x5f2493(0x420)]({'transform':_0x4c2025,'sheetTransform':_0x5b8103},{'skeleton':_0x4a6e78,'range':_0x7b7036},{'skeleton':_0x2cdb7e,'range':_0x211173},_0x54cab8);if(_0x4507bf){const {redos:_0x5ab326,undos:_0x8cb39d}=this['_generateCutPasteMutations']({'fromUnitId':_0x5de520,'fromSubUnitId':_0x1a0127,'toUnitId':_0x42e416,'toSubUnitId':_0x2de6a6,'drawing':_0x66a8fd,'newTransforms':_0xb57f0b});_0x4d871b['push'](..._0x5ab326),_0x2372d3[_0x5f2493(0x402)](..._0x8cb39d);continue;}const {redos:_0x31c0b1,undos:_0x2e6016}=this[_0x5f2493(0x56c)]({'toUnitId':_0x42e416,'toSubUnitId':_0x2de6a6,'drawing':_0x66a8fd,'newTransforms':_0xb57f0b,'newDrawingId':_0x4f9ebe[_0x5f2493(0x30e)](_0x1cae61),'idMap':_0x4f9ebe});_0x4d871b[_0x5f2493(0x402)](..._0x31c0b1),_0x2372d3[_0x5f2493(0x402)](..._0x2e6016);}return{'redos':_0x4d871b,'undos':_0x2372d3};}[_0x120d79(0x16f)](_0x17c843){const _0x490188=_0x120d79,{fromUnitId:_0x59917e,fromSubUnitId:_0x5c3de2,toUnitId:_0xd8a9bf,toSubUnitId:_0x458475,drawing:_0x2e4b48,newTransforms:_0x266242}=_0x17c843,_0x1be2a0={..._0x2e4b48,'unitId':_0xd8a9bf,'subUnitId':_0x458475,'transform':_0x266242[_0x490188(0x664)],'sheetTransform':_0x266242[_0x490188(0x189)]};if(_0xd8a9bf===_0x59917e&&_0x458475===_0x5c3de2){const {redo:_0x2aaa8e,undo:_0x1e2175,objects:_0x5ad69a}=this[_0x490188(0x541)][_0x490188(0x508)]([_0x1be2a0]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x490188(0x33d)]['id'],'params':{'unitId':_0xd8a9bf,'subUnitId':_0x458475,'type':_univerjs_sheets_drawing[_0x490188(0x18b)][_0x490188(0x472)],'op':_0x2aaa8e,'objects':_0x5ad69a}}],'undos':[{'id':_univerjs_sheets_drawing[_0x490188(0x33d)]['id'],'params':{'unitId':_0xd8a9bf,'subUnitId':_0x458475,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x490188(0x472)],'op':_0x1e2175,'objects':_0x5ad69a}}]};}else{const _0x3e1192=this[_0x490188(0x541)][_0x490188(0x2dd)]([_0x2e4b48]),_0x1e1561=this[_0x490188(0x541)][_0x490188(0x272)]([_0x1be2a0]),_0x3960f7=this[_0x490188(0x38e)][_0x490188(0x483)](_0x2e4b48[_0x490188(0x2db)],_0x2e4b48[_0x490188(0x363)],_0x2e4b48[_0x490188(0x6a4)]);if(!_0x3960f7)return{'redos':[],'undos':[]};const _0x125d0d=_0x3960f7[_0x490188(0x5a2)](),_0x349cf9=JSON[_0x490188(0x668)](JSON[_0x490188(0x5fd)](_0x3960f7['getShapeData']()));return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x59917e,'subUnitId':_0x5c3de2,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x490188(0x441)],'op':_0x3e1192[_0x490188(0x1a7)],'objects':_0x3e1192[_0x490188(0x246)]}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x59917e,'subUnitId':_0x5c3de2,'shapeId':_0x2e4b48[_0x490188(0x6a4)]}},{'id':_univerjs_sheets_drawing[_0x490188(0x33d)]['id'],'params':{'unitId':_0xd8a9bf,'subUnitId':_0x458475,'type':_univerjs_sheets_drawing[_0x490188(0x18b)][_0x490188(0x171)],'op':_0x1e1561[_0x490188(0x1a7)],'objects':_0x1e1561[_0x490188(0x246)]}},{'id':_univerjs_pro_sheets_shape[_0x490188(0x303)]['id'],'params':{'unitId':_0xd8a9bf,'subUnitId':_0x458475,'shapeId':_0x2e4b48['drawingId'],'shapeType':_0x125d0d,'shapeData':_0x349cf9}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x59917e,'subUnitId':_0x5c3de2,'type':_univerjs_sheets_drawing[_0x490188(0x18b)][_0x490188(0x171)],'op':_0x3e1192['undo'],'objects':_0x3e1192[_0x490188(0x246)]}},{'id':_univerjs_pro_sheets_shape[_0x490188(0x303)]['id'],'params':{'unitId':_0x59917e,'subUnitId':_0x5c3de2,'shapeId':_0x2e4b48[_0x490188(0x6a4)],'shapeType':_0x125d0d,'shapeData':_0x349cf9}},{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xd8a9bf,'subUnitId':_0x458475,'type':_univerjs_sheets_drawing[_0x490188(0x18b)]['REMOVE'],'op':_0x1e1561['undo'],'objects':_0x1e1561[_0x490188(0x246)]}},{'id':_univerjs_pro_sheets_shape[_0x490188(0x3f3)]['id'],'params':{'unitId':_0xd8a9bf,'subUnitId':_0x458475,'shapeId':_0x2e4b48[_0x490188(0x6a4)]}}]};}}['_generateCopyPasteMutations'](_0x47fd16){const _0x5614f9=_0x120d79,{toUnitId:_0x324980,toSubUnitId:_0x207a8b,drawing:_0x4d74e5,newTransforms:_0x5dedcc,newDrawingId:_0x5ed6bd,idMap:_0x170fbe}=_0x47fd16,_0x13a95a={..._0x4d74e5,'unitId':_0x324980,'subUnitId':_0x207a8b,'drawingId':_0x5ed6bd,'transform':_0x5dedcc[_0x5614f9(0x664)],'sheetTransform':_0x5dedcc[_0x5614f9(0x189)]},{redo:_0xcb97a9,undo:_0x3b8ab4,objects:_0x28ed21}=this[_0x5614f9(0x541)]['getBatchAddOp']([_0x13a95a]),_0x1a2cf1=this[_0x5614f9(0x38e)][_0x5614f9(0x483)](_0x4d74e5[_0x5614f9(0x2db)],_0x4d74e5[_0x5614f9(0x363)],_0x4d74e5[_0x5614f9(0x6a4)]);if(!_0x1a2cf1)return{'redos':[],'undos':[]};const _0x522909=_0x1a2cf1[_0x5614f9(0x5a2)](),_0x4e4bc3=JSON[_0x5614f9(0x668)](JSON[_0x5614f9(0x5fd)](_0x1a2cf1[_0x5614f9(0x2fb)]()));if(_0x4e4bc3[_0x5614f9(0x4b7)]){var _0x5f4b8a,_0x567dab;const _0x4f2e7e=(_0x5f4b8a=_0x4e4bc3['relation'][_0x5614f9(0x66e)])===null||_0x5f4b8a===void 0x0?void 0x0:_0x5f4b8a[_0x5614f9(0x5ec)],_0x5a7e9d=(_0x567dab=_0x4e4bc3['relation']['to'])===null||_0x567dab===void 0x0?void 0x0:_0x567dab[_0x5614f9(0x5ec)],_0x151006=_0x4f2e7e?_0x170fbe[_0x5614f9(0x20d)](_0x4f2e7e):!![],_0x1f5135=_0x5a7e9d?_0x170fbe['has'](_0x5a7e9d):!![];if(_0x151006&&_0x4f2e7e&&_0x4e4bc3[_0x5614f9(0x4b7)][_0x5614f9(0x66e)])_0x4e4bc3[_0x5614f9(0x4b7)]['from']={..._0x4e4bc3[_0x5614f9(0x4b7)][_0x5614f9(0x66e)],'shapeId':_0x170fbe[_0x5614f9(0x30e)](_0x4f2e7e)};else _0x4e4bc3[_0x5614f9(0x4b7)][_0x5614f9(0x66e)]=void 0x0;if(_0x1f5135&&_0x5a7e9d&&_0x4e4bc3[_0x5614f9(0x4b7)]['to'])_0x4e4bc3[_0x5614f9(0x4b7)]['to']={..._0x4e4bc3[_0x5614f9(0x4b7)]['to'],'shapeId':_0x170fbe[_0x5614f9(0x30e)](_0x5a7e9d)};else _0x4e4bc3['relation']['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x324980,'subUnitId':_0x207a8b,'type':_univerjs_sheets_drawing[_0x5614f9(0x18b)][_0x5614f9(0x171)],'op':_0xcb97a9,'objects':_0x28ed21}},{'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x324980,'subUnitId':_0x207a8b,'shapeId':_0x5ed6bd,'shapeType':_0x522909,'shapeData':_0x4e4bc3}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x324980,'subUnitId':_0x207a8b,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x5614f9(0x441)],'op':_0x3b8ab4,'objects':_0x28ed21}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x324980,'subUnitId':_0x207a8b,'shapeId':_0x5ed6bd}}]};}[_0x120d79(0x420)](_0x25fc19,_0x943c91,_0x12dd43,_0x5a7cdf){const _0x236442=_0x120d79;var _0x2392d5;const {range:_0x528780,skeleton:_0x2ecf77}=_0x943c91,{range:_0x20f0de,skeleton:_0x3a6127}=_0x12dd43,{transform:_0x3075a7,sheetTransform:_0x110586}=_0x25fc19,_0x17695b={..._0x3075a7};if(_0x528780){const _0x65c58f=(0x0,_univerjs_sheets[_0x236442(0x66a)])(_0x2ecf77,_0x528780),_0x54e71c=(0x0,_univerjs_sheets[_0x236442(0x66a)])(_0x3a6127,_0x20f0de);if(_0x65c58f&&_0x54e71c){var _0x11e3e0,_0x33caf8;const _0xf6d77d=_0x54e71c['startX']-_0x65c58f[_0x236442(0x5f5)],_0x14091e=_0x54e71c['startY']-_0x65c58f[_0x236442(0x355)];_0x17695b['left']=((_0x11e3e0=_0x17695b['left'])!==null&&_0x11e3e0!==void 0x0?_0x11e3e0:0x0)+_0xf6d77d,_0x17695b[_0x236442(0x21b)]=((_0x33caf8=_0x17695b[_0x236442(0x21b)])!==null&&_0x33caf8!==void 0x0?_0x33caf8:0x0)+_0x14091e;}}else{const _0x324016=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x3a6127,_0x20f0de);if(_0x5a7cdf&&_0x324016){var _0x456810,_0x2b4b10;const _0x45ec92=((_0x456810=_0x17695b[_0x236442(0x2bb)])!==null&&_0x456810!==void 0x0?_0x456810:0x0)-_0x5a7cdf[_0x236442(0x2bb)],_0x760a56=((_0x2b4b10=_0x17695b[_0x236442(0x21b)])!==null&&_0x2b4b10!==void 0x0?_0x2b4b10:0x0)-_0x5a7cdf[_0x236442(0x21b)];_0x17695b['left']=_0x324016[_0x236442(0x5f5)]+_0x45ec92,_0x17695b[_0x236442(0x21b)]=_0x324016['startY']+_0x760a56;}else _0x17695b[_0x236442(0x2bb)]=_0x324016===null||_0x324016===void 0x0?void 0x0:_0x324016[_0x236442(0x5f5)],_0x17695b[_0x236442(0x21b)]=_0x324016===null||_0x324016===void 0x0?void 0x0:_0x324016[_0x236442(0x355)];}return{'transform':_0x17695b,'sheetTransform':(_0x2392d5=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x17695b,_0x3a6127))!==null&&_0x2392d5!==void 0x0?_0x2392d5:_0x110586};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x120d79(0x54b)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_sheets_ui[_0x120d79(0x2fc)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_sheets_drawing[_0x120d79(0x51b)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_pro_sheets_shape[_0x120d79(0x293)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_sheets_drawing_ui[_0x120d79(0x64b)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x120d79(0x19c)]{constructor(_0x123676,_0x8055e0){const _0x12c686=_0x120d79;super(_0x123676,_0x8055e0),_defineProperty(this,_0x12c686(0x39d),null),_defineProperty(this,_0x12c686(0x3a9),null),_defineProperty(this,'_unitId',null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,_0x12c686(0x64c),![]);if(_0x8055e0)this[_0x12c686(0x630)](_0x8055e0);}[_0x120d79(0x4db)](){const _0x54a323=_0x120d79;return{'unitId':this[_0x54a323(0x3e8)],'subUnitId':this[_0x54a323(0x46a)],'drawingId':this[_0x54a323(0x39d)]};}['setShapeProps'](_0x10a2a2){const _0x5377c6=_0x120d79;if(typeof _0x10a2a2[_0x5377c6(0x5ec)]!==_0x5377c6(0x598))this[_0x5377c6(0x39d)]=_0x10a2a2[_0x5377c6(0x5ec)];if(typeof _0x10a2a2[_0x5377c6(0x2db)]!==_0x5377c6(0x598))this[_0x5377c6(0x3e8)]=_0x10a2a2[_0x5377c6(0x2db)];if(typeof _0x10a2a2[_0x5377c6(0x363)]!==_0x5377c6(0x598))this['_subUnitId']=_0x10a2a2[_0x5377c6(0x363)];if(typeof _0x10a2a2[_0x5377c6(0x47e)]!=='undefined')this[_0x5377c6(0x64c)]=_0x10a2a2[_0x5377c6(0x47e)];this['transformByState']({'width':_0x10a2a2[_0x5377c6(0x52c)],'height':_0x10a2a2[_0x5377c6(0x340)]});}[_0x120d79(0x224)](_0x17c111){const _0x529b07=_0x120d79;_univerjs_engine_render['Circle'][_0x529b07(0x3ab)](_0x17c111,{'radius':_univerjs_pro_engine_shape[_0x529b07(0x491)][_0x529b07(0x4cd)],'fill':_univerjs_pro_engine_shape[_0x529b07(0x491)][_0x529b07(0x31f)],'stroke':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x529b07(0x587)],'strokeWidth':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x529b07(0x431)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x23bd28,_0x6fc8e3,_0xe3eb58,_0x1d77ce,_0x3c07db,_0x545fe1,_0x22f623,_0x17441d){const _0x30cc2f=_0x120d79;super(),this['_context']=_0x23bd28,this[_0x30cc2f(0x23b)]=_0x6fc8e3,this[_0x30cc2f(0x38c)]=_0xe3eb58,this['_drawingManagerService']=_0x1d77ce,this[_0x30cc2f(0x548)]=_0x3c07db,this[_0x30cc2f(0x64f)]=_0x545fe1,this[_0x30cc2f(0x557)]=_0x22f623,this[_0x30cc2f(0x539)]=_0x17441d,_defineProperty(this,_0x30cc2f(0x4ee),void 0x0),_defineProperty(this,_0x30cc2f(0x3e8),void 0x0),_defineProperty(this,'_subUnitId',void 0x0),_defineProperty(this,_0x30cc2f(0x572),[]),_defineProperty(this,_0x30cc2f(0x1e9),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,_0x30cc2f(0x688),void 0x0),_defineProperty(this,_0x30cc2f(0x66f),![]),_defineProperty(this,'_isDrawingShapePointDown',![]),_defineProperty(this,_0x30cc2f(0x56e),![]),_defineProperty(this,'_cxtHandlerPointerMove',void 0x0),_defineProperty(this,_0x30cc2f(0x5d2),void 0x0),_defineProperty(this,'_currentConnectionTarget',null),this['_initialize']();}[_0x120d79(0x57f)](){const _0x408207=_0x120d79;this[_0x408207(0x1f1)](),this[_0x408207(0x5fe)]();}[_0x120d79(0x4ba)](){const _0x34a38e=_0x120d79;if(!this[_0x34a38e(0x3e8)]||!this['_subUnitId']||!this[_0x34a38e(0x4ee)])return;const _0x531714={'unitId':this[_0x34a38e(0x3e8)],'subUnitId':this[_0x34a38e(0x46a)],'drawingId':this[_0x34a38e(0x4ee)]},{transform:_0x2132d4}=this['_drawingManagerService'][_0x34a38e(0x41f)](_0x531714);if(!_0x2132d4)return;return{'left':_0x2132d4['left']||0x0,'top':_0x2132d4[_0x34a38e(0x21b)]||0x0,'width':_0x2132d4['width']||0x0,'height':_0x2132d4[_0x34a38e(0x340)]||0x0,'flipX':_0x2132d4[_0x34a38e(0x158)]||![],'flipY':_0x2132d4[_0x34a38e(0x505)]||![],'angle':_0x2132d4[_0x34a38e(0x3af)]};}['_addShapeConnectorHandlerObjects'](){const _0x528bb1=_0x120d79;if(this[_0x528bb1(0x3e8)]===void 0x0||this[_0x528bb1(0x46a)]===void 0x0||this['_activeShapeId']===void 0x0)return;const _0x541e9c=this[_0x528bb1(0x38c)]['getRenderById'](this[_0x528bb1(0x3e8)]);if(!_0x541e9c)return;if(!_0x541e9c[_0x528bb1(0x442)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x528bb1(0x15a)]())return;const {scene:_0x2502ca}=_0x541e9c,_0x381c00=this[_0x528bb1(0x4ba)]();if(!_0x381c00)return;const _0x391f1a=this[_0x528bb1(0x64f)][_0x528bb1(0x483)](this['_unitId'],this[_0x528bb1(0x46a)],this[_0x528bb1(0x4ee)]);if(!_0x391f1a)return;if(!(0x0,_univerjs_pro_engine_shape[_0x528bb1(0x205)])(_0x391f1a['getShapeType']()))return;const _0x4f957c=_0x391f1a[_0x528bb1(0x64a)]();if(_0x4f957c[_0x528bb1(0x620)]<0x2)return;const _0x5ae658=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](_0x381c00),_0xa87642=_0x4f957c[0x0],_0x3285c4=_0x4f957c[_0x4f957c[_0x528bb1(0x620)]-0x1],_0x5253fb=_0x5ae658[_0x528bb1(0x40e)](_0xa87642),_0x117b7b=_0x5ae658[_0x528bb1(0x40e)](_0x3285c4);this['_addShapeConnectorHandlerObject'](_0x2502ca,{..._0x5253fb},!![]),this['_addShapeConnectorHandlerObject'](_0x2502ca,{..._0x117b7b},![]);}[_0x120d79(0x3d9)](_0x4a89c8,_0x4296b0,_0x50df19){const _0x3a71d9=_0x120d79;if(this['_activeShapeId']===void 0x0||this[_0x3a71d9(0x3e8)]===void 0x0||this[_0x3a71d9(0x46a)]===void 0x0)return;const _0x48c470=_0x3a71d9(0x51e)+this['_unitId']+'-'+this[_0x3a71d9(0x46a)]+'-'+this[_0x3a71d9(0x4ee)]+'-'+(_0x50df19?_0x3a71d9(0x611):'end'),_0x38a193=_0x4a89c8[_0x3a71d9(0x502)](_0x48c470);if(_0x38a193){_0x38a193[_0x3a71d9(0x57e)]({'left':_0x4296b0['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3a71d9(0x4cd)],'top':_0x4296b0['y']-_univerjs_pro_engine_shape[_0x3a71d9(0x491)][_0x3a71d9(0x4cd)]});return;}const _0x45668a=new SheetShapeConnectorHandlerObject(_0x48c470,{'left':_0x4296b0['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3a71d9(0x4cd)],'top':_0x4296b0['y']-_univerjs_pro_engine_shape[_0x3a71d9(0x491)][_0x3a71d9(0x4cd)],'shapeId':this[_0x3a71d9(0x4ee)],'unitId':this[_0x3a71d9(0x3e8)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x50df19,'width':_univerjs_pro_engine_shape[_0x3a71d9(0x491)][_0x3a71d9(0x4cd)]*0x2,'height':_univerjs_pro_engine_shape[_0x3a71d9(0x491)][_0x3a71d9(0x4cd)]*0x2,'zIndex':_univerjs_engine_render[_0x3a71d9(0x2ac)]+0x1,'evented':!![]});this['_connectorObjects'][_0x3a71d9(0x402)](_0x45668a),this[_0x3a71d9(0x2e3)](_0x45668a,_0x4a89c8,_0x50df19),_0x4a89c8[_0x3a71d9(0x2ec)](_0x45668a,_univerjs_engine_render[_0x3a71d9(0x2ac)]+0x1);}[_0x120d79(0x39b)](_0x1e0227,_0x59d82e){const _0x5842ad=_0x120d79;var _0xd1b076;const _0x570ffd={'x':0x0,'y':0x0};if(!_0x1e0227||!_0x59d82e)return _0x570ffd;const _0x1c5d79=this[_0x5842ad(0x38c)][_0x5842ad(0x333)](_0x1e0227);if(!_0x1c5d79)return _0x570ffd;if(!_0x1c5d79['with'](_univerjs_sheets_ui[_0x5842ad(0x30a)])[_0x5842ad(0x453)](_0x59d82e))return _0x570ffd;const _0x3e50c9=_0x1c5d79[_0x5842ad(0x442)](_univerjs_sheets_ui[_0x5842ad(0x386)]),_0x54498b=_0x3e50c9===null||_0x3e50c9===void 0x0?void 0x0:_0x3e50c9[_0x5842ad(0x50d)]();if(!_0x54498b)return _0x570ffd;const _0x6609b8=(_0xd1b076=this[_0x5842ad(0x548)][_0x5842ad(0x59f)](_0x1e0227))===null||_0xd1b076===void 0x0?void 0x0:_0xd1b076[_0x5842ad(0x250)](_0x59d82e);if(!_0x6609b8)return _0x570ffd;const _0x209227=(0x0,_univerjs_sheets_ui[_0x5842ad(0x517)])(_0x54498b['sheetViewStartRow'],_0x54498b['sheetViewStartColumn'],_0x1c5d79[_0x5842ad(0x57a)],_0x6609b8);if(!_0x209227)return _0x570ffd;return{'x':_0x209227[_0x5842ad(0x2af)],'y':_0x209227[_0x5842ad(0x5e5)]};}[_0x120d79(0x601)](_0x266588,_0x1bd3ae){const _0xa0017a=_0x120d79;var _0x443ffb,_0x21b9d;const _0x5dc3f5=(_0x443ffb=this[_0xa0017a(0x548)][_0xa0017a(0x59f)](_0x266588))===null||_0x443ffb===void 0x0?void 0x0:_0x443ffb[_0xa0017a(0x250)](_0x1bd3ae);return(_0x21b9d=_0x5dc3f5===null||_0x5dc3f5===void 0x0?void 0x0:_0x5dc3f5[_0xa0017a(0x358)]())!==null&&_0x21b9d!==void 0x0?_0x21b9d:0x1;}[_0x120d79(0x24a)](_0x2c0ce6,_0x1e64aa,_0x3182be,_0x2404c2,_0x426ca8){const _0x47f907=_0x120d79;this['_cxtHandlerPointerMove'][_0x47f907(0x13b)](),this['_cxtHandlerPointerUp']['unsubscribe'](),this[_0x47f907(0x557)]['refreshAdjustControls']();const _0x18e692=this[_0x47f907(0x238)];this['_sheetBasicShapeConnectionPointController'][_0x47f907(0x5be)]();const _0x39472b=this[_0x47f907(0x39b)](this[_0x47f907(0x3e8)],this[_0x47f907(0x46a)]),_0xdad666=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0x418ffe={'x':_0x3182be[_0x47f907(0x1ed)]/_0xdad666+_0x39472b['x'],'y':_0x3182be['offsetY']/_0xdad666+_0x39472b['y']},_0x3088a2=_0x18e692?_0x18e692['worldPoint']:_0x418ffe,_0x32b3dc=_0x2404c2?this[_0x47f907(0x688)][_0x47f907(0x43b)]():this['_activeShapeModel'][_0x47f907(0x2c0)](),_0x58e339=this[_0x47f907(0x688)][_0x47f907(0x5a2)]();if(!_0x32b3dc)this['_handleFreeEndpointPointerUp'](_0x1e64aa,_0x3088a2,_0x2404c2,_0x18e692,_0x426ca8,_0x58e339);else this[_0x47f907(0x19d)](_0x32b3dc,_0x3088a2,_0x2404c2,_0x18e692,_0x426ca8);this['_isConnecting']=![],this[_0x47f907(0x56e)]=![],this['_currentConnectionTarget']=null,_0x2c0ce6[_0x47f907(0x66c)]();}[_0x120d79(0x2c9)](_0x113908,_0x22a7a3,_0x14125e,_0x188329,_0x2cecd1,_0x3260cf){const _0x2e037e=_0x120d79,_0x1a89c1=_0x3260cf===_univerjs_pro_engine_shape[_0x2e037e(0x691)][_0x2e037e(0x1d2)]||_0x3260cf===_univerjs_pro_engine_shape[_0x2e037e(0x691)]['StraightConnector1'],_0x365f76=_0x14125e?_0x22a7a3:_0x113908,_0x254b06=_0x14125e?_0x113908:_0x22a7a3,_0x1b683a=this['_activeShapeModel'][_0x2e037e(0x64a)](),_0x283935=(0x0,_univerjs_pro_engine_shape[_0x2e037e(0x3bb)])(this[_0x2e037e(0x688)][_0x2e037e(0x5a2)]()),_0x8f04b3=_univerjs_pro_engine_shape['ConnectorCoordinateTransform'][_0x2e037e(0x5d7)](_0x1b683a,_0x283935),_0xe8e95b=_0x1a89c1?_univerjs_pro_engine_shape['ConnectorCoordinateTransform'][_0x2e037e(0x490)](_0x365f76,_0x254b06):_univerjs_pro_engine_shape[_0x2e037e(0x188)][_0x2e037e(0x388)](_0x113908,_0x22a7a3,_0x14125e,_0x8f04b3);if(_0x188329)this[_0x2e037e(0x44b)](_0xe8e95b,_0x188329,_0x14125e,_0x2cecd1);else this[_0x2e037e(0x5cf)](_0xe8e95b,_0x2cecd1);}[_0x120d79(0x19d)](_0x184a9b,_0x151bf1,_0x3abe43,_0x5a5fc4,_0x3af5e9){const _0x30c379=_0x120d79,_0x3101d6=this[_0x30c379(0x5c3)](_0x184a9b);if(!_0x3101d6)return;const _0x3eb1b4=_0x5a5fc4?_0x5a5fc4[_0x30c379(0x3af)]:this[_0x30c379(0x58b)](_0x3101d6[_0x30c379(0x46b)],_0x151bf1);let _0x29413b;if(_0x5a5fc4){const _0x7da38a=this[_0x30c379(0x50b)]['getDrawingByParam']({'unitId':_0x5a5fc4[_0x30c379(0x2db)],'subUnitId':_0x5a5fc4[_0x30c379(0x363)],'drawingId':_0x5a5fc4['shapeId']});if(_0x7da38a===null||_0x7da38a===void 0x0?void 0x0:_0x7da38a[_0x30c379(0x664)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x48a423}=_0x7da38a[_0x30c379(0x664)];_0x29413b=(0x0,_univerjs_pro_engine_shape[_0x30c379(0x407)])({'left':left,'top':top,'width':width,'height':height},_0x48a423||0x0);}else _0x29413b={'left':_0x151bf1['x'],'top':_0x151bf1['y'],'width':0x0,'height':0x0};}else _0x29413b={'left':_0x151bf1['x'],'top':_0x151bf1['y'],'width':0x0,'height':0x0};const _0x197af2={'point':_0x151bf1,'angle':_0x3eb1b4,'bounds':_0x29413b},_0x24bd4d=_0x3abe43?_0x197af2:_0x3101d6,_0xc7f12=_0x3abe43?_0x3101d6:_0x197af2,_0x416310=this[_0x30c379(0x688)][_0x30c379(0x5a2)](),_0x2a2238=(0x0,_univerjs_pro_engine_shape[_0x30c379(0x5aa)])(_0x24bd4d,_0xc7f12,_0x416310);this[_0x30c379(0x688)][_0x30c379(0x624)]();const _0x56c805=(0x0,_univerjs_pro_engine_shape[_0x30c379(0x4ab)])(_0x2a2238,_0x416310);if(_0x5a5fc4)this[_0x30c379(0x26b)](_0x56c805,_0x5a5fc4,_0x184a9b,_0x3abe43,_0x3af5e9);else this['_executeConnectedRouteResizeCommand'](_0x56c805,_0x184a9b,_0x3abe43,_0x3af5e9);}['_executeConnectionCommand'](_0x4a7365,_0x38cb29,_0x57b243,_0x47d7bf){const _0x20660d=_0x120d79,_0x103a76=this[_0x20660d(0x688)]['getShapeData']()[_0x20660d(0x4b7)],_0x3079a0={..._0x103a76},_0x5c2f2f={'shapeId':_0x38cb29[_0x20660d(0x5ec)],'cxnIndex':_0x38cb29[_0x20660d(0x226)]};if(_0x57b243)_0x3079a0[_0x20660d(0x66e)]=_0x5c2f2f;else _0x3079a0['to']=_0x5c2f2f;const _0x5e5220=this[_0x20660d(0x688)]['getShapeType'](),_0x56ea63=(0x0,_univerjs_pro_engine_shape[_0x20660d(0x4ab)])(_0x4a7365[_0x20660d(0x5c0)],_0x5e5220),_0x4fa15a={'unitId':this['_unitId'],'subUnitId':this[_0x20660d(0x46a)],'connectorShapeId':this[_0x20660d(0x4ee)],'width':_0x4a7365[_0x20660d(0x4b9)]['width'],'height':_0x4a7365[_0x20660d(0x4b9)]['height'],'left':_0x4a7365[_0x20660d(0x4b9)][_0x20660d(0x2bb)],'top':_0x4a7365[_0x20660d(0x4b9)][_0x20660d(0x21b)],'flipX':_0x4a7365[_0x20660d(0x4b9)]['flipX']||![],'flipY':_0x4a7365[_0x20660d(0x4b9)][_0x20660d(0x505)]||![],'newAdjustValues':_0x56ea63[_0x20660d(0x367)],'oldAdjustValues':_0x47d7bf,'oldRelation':_0x103a76,'newRelation':_0x3079a0,'newLineType':_0x56ea63[_0x20660d(0x22b)],'oldLineType':_0x5e5220};this[_0x20660d(0x23b)]['executeCommand'](_univerjs_pro_sheets_shape[_0x20660d(0x352)]['id'],_0x4fa15a);}['_executeResizeCommand'](_0x2ff28d,_0x255960){const _0x11fc0e=_0x120d79,_0x725059=this[_0x11fc0e(0x688)]['getShapeType'](),_0xf45127=(0x0,_univerjs_pro_engine_shape[_0x11fc0e(0x4ab)])(_0x2ff28d[_0x11fc0e(0x5c0)],_0x725059),_0x3d9b66={'unitId':this[_0x11fc0e(0x3e8)],'subUnitId':this[_0x11fc0e(0x46a)],'shapeId':this[_0x11fc0e(0x4ee)],'width':_0x2ff28d[_0x11fc0e(0x4b9)][_0x11fc0e(0x52c)],'height':_0x2ff28d[_0x11fc0e(0x4b9)][_0x11fc0e(0x340)],'left':_0x2ff28d[_0x11fc0e(0x4b9)][_0x11fc0e(0x2bb)],'top':_0x2ff28d[_0x11fc0e(0x4b9)][_0x11fc0e(0x21b)],'flipX':_0x2ff28d[_0x11fc0e(0x4b9)][_0x11fc0e(0x158)]||![],'flipY':_0x2ff28d['worldRect'][_0x11fc0e(0x505)]||![],'angle':_0x2ff28d['worldRect'][_0x11fc0e(0x3af)]||0x0,'newAdjustValues':_0xf45127[_0x11fc0e(0x367)],'oldAdjustValues':_0x255960,'newLineType':_0xf45127[_0x11fc0e(0x22b)],'oldLineType':_0x725059};this['_commandService'][_0x11fc0e(0x312)](_univerjs_pro_sheets_shape[_0x11fc0e(0x424)]['id'],_0x3d9b66);}['_executeConnectedRouteConnectionCommand'](_0x2dc066,_0x17f7ae,_0x3e509a,_0x12d7c4,_0x56dfe1){const _0x27e7a7=_0x120d79,_0xe8000c=this[_0x27e7a7(0x688)][_0x27e7a7(0x2fb)]()[_0x27e7a7(0x4b7)],_0x1462ff={..._0xe8000c},_0x5aae2b={'shapeId':_0x17f7ae[_0x27e7a7(0x5ec)],'cxnIndex':_0x17f7ae['cxnIndex']};_0x12d7c4?(_0x1462ff[_0x27e7a7(0x66e)]=_0x5aae2b,_0x1462ff['to']=_0x3e509a):(_0x1462ff[_0x27e7a7(0x66e)]=_0x3e509a,_0x1462ff['to']=_0x5aae2b);const _0x3b1567={'unitId':this[_0x27e7a7(0x3e8)],'subUnitId':this[_0x27e7a7(0x46a)],'connectorShapeId':this['_activeShapeId'],'width':_0x2dc066[_0x27e7a7(0x4b9)][_0x27e7a7(0x52c)],'height':_0x2dc066[_0x27e7a7(0x4b9)][_0x27e7a7(0x340)],'left':_0x2dc066[_0x27e7a7(0x4b9)][_0x27e7a7(0x2bb)],'top':_0x2dc066[_0x27e7a7(0x4b9)][_0x27e7a7(0x21b)],'flipX':_0x2dc066['worldRect'][_0x27e7a7(0x158)]||![],'flipY':_0x2dc066[_0x27e7a7(0x4b9)][_0x27e7a7(0x505)]||![],'oldAdjustValues':_0x56dfe1,'newAdjustValues':_0x2dc066[_0x27e7a7(0x367)],'newLineType':_0x2dc066[_0x27e7a7(0x22b)],'rotation':_0x2dc066[_0x27e7a7(0x30f)],'oldRelation':_0xe8000c,'newRelation':_0x1462ff};this[_0x27e7a7(0x23b)]['executeCommand'](_univerjs_pro_sheets_shape[_0x27e7a7(0x352)]['id'],_0x3b1567);}[_0x120d79(0x3d8)](_0x25a8e9,_0x45e249,_0x2e8f93,_0x28dcd0){const _0x4e0375=_0x120d79,_0x3b9b2c=this[_0x4e0375(0x688)]['getShapeData']()[_0x4e0375(0x4b7)],_0x5e1cea={};_0x2e8f93?(_0x5e1cea['to']=_0x45e249,_0x5e1cea['from']=void 0x0):(_0x5e1cea['from']=_0x45e249,_0x5e1cea['to']=void 0x0);const _0x3dcbf2={'unitId':this[_0x4e0375(0x3e8)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x25a8e9[_0x4e0375(0x4b9)][_0x4e0375(0x52c)],'height':_0x25a8e9[_0x4e0375(0x4b9)][_0x4e0375(0x340)],'left':_0x25a8e9['worldRect'][_0x4e0375(0x2bb)],'top':_0x25a8e9[_0x4e0375(0x4b9)]['top'],'flipX':_0x25a8e9[_0x4e0375(0x4b9)]['flipX']||![],'flipY':_0x25a8e9[_0x4e0375(0x4b9)][_0x4e0375(0x505)]||![],'oldAdjustValues':_0x28dcd0,'newAdjustValues':_0x25a8e9[_0x4e0375(0x367)],'newLineType':_0x25a8e9[_0x4e0375(0x22b)],'rotation':_0x25a8e9[_0x4e0375(0x30f)],'oldRelation':_0x3b9b2c,'newRelation':_0x5e1cea};this[_0x4e0375(0x23b)][_0x4e0375(0x312)](_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id'],_0x3dcbf2);}['_attachConnectorObjectEvent'](_0x594563,_0x20c545,_0x209010){const _0x47a44e=_0x120d79;this['disposeWithMe']((0x0,_univerjs_core[_0x47a44e(0x464)])(_0x594563[_0x47a44e(0x3f0)][_0x47a44e(0x411)]((_0x553db1,_0x2e00f4)=>{const _0x433cef=_0x47a44e,_0x3c1fba=_0x594563[_0x433cef(0x4db)]();this['_activeShapeModel']=this['_sheetsShapeService'][_0x433cef(0x483)](_0x3c1fba[_0x433cef(0x2db)],_0x3c1fba[_0x433cef(0x363)],_0x3c1fba[_0x433cef(0x6a4)]);if(!this[_0x433cef(0x688)])return;const _0x1ca9a5={};this[_0x433cef(0x688)][_0x433cef(0x5f3)]()[_0x433cef(0x19a)](_0x4751e4=>{const _0x1ac004=_0x433cef,_0x3cb793=this[_0x1ac004(0x688)][_0x1ac004(0x647)](_0x4751e4);if(_0x3cb793!==void 0x0)_0x1ca9a5[_0x4751e4]=_0x3cb793;});const _0x2248ba=this[_0x433cef(0x4ba)]();if(!_0x2248ba)return;this[_0x433cef(0x1e9)]={..._0x2248ba};const _0x2244a4=new _univerjs_pro_engine_shape[(_0x433cef(0x188))](this['_baseDrawingRect']),_0x4e52e6=(0x0,_univerjs_drawing[_0x433cef(0x62e)])({'unitId':this['_unitId'],'subUnitId':this[_0x433cef(0x46a)],'drawingId':this['_activeShapeId']}),_0x445b8a=_0x20c545[_0x433cef(0x502)](_0x4e52e6);this[_0x433cef(0x66f)]=!![],_0x20c545['disableObjectsEvent'](),this[_0x433cef(0x539)][_0x433cef(0x4a3)](_0x20c545,this['_unitId'],this[_0x433cef(0x46a)],this['_activeShapeId']),this['_currentConnectionTarget']=null;const _0x4f6caa=this['_activeShapeModel'][_0x433cef(0x64a)](),_0x2bb443=_0x4f6caa[0x0],_0x1ec1c0=_0x4f6caa[_0x4f6caa[_0x433cef(0x620)]-0x1],_0x3eabbb=_0x209010?_0x2244a4[_0x433cef(0x40e)](_0x1ec1c0):_0x2244a4['localToWorld'](_0x2bb443);this['_cxtHandlerPointerMove']=_0x20c545[_0x433cef(0x445)][_0x433cef(0x411)]((_0x547787,_0xea4bb3)=>{const _0x32c007=_0x433cef;if(!this[_0x32c007(0x66f)]||!this['_activeShapeModel'])return;!this[_0x32c007(0x56e)]&&(this['_sheetShapeAdjustController'][_0x32c007(0x369)](),this[_0x32c007(0x688)][_0x32c007(0x3a1)](),this['_hasReset']=!![]);const _0x4ddedd=this['_getScrollInfo'](this[_0x32c007(0x3e8)],this[_0x32c007(0x46a)]),_0xa3cbe5=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0x251d3e={'x':_0x547787['offsetX']/_0xa3cbe5+_0x4ddedd['x'],'y':_0x547787[_0x32c007(0x212)]/_0xa3cbe5+_0x4ddedd['y']},_0x35df80=this['_sheetBasicShapeConnectionPointController'][_0x32c007(0x2b3)](_0x251d3e);if(_0x35df80){const {shapeId:_0x1295c9,unitId:_0x57b28d,subUnitId:_0x3a4a9e}=_0x35df80;if(_0x1295c9&&_0x57b28d&&_0x3a4a9e){const _0x37bb05=(0x0,_univerjs_drawing[_0x32c007(0x62e)])({'unitId':_0x57b28d,'subUnitId':_0x3a4a9e,'drawingId':_0x1295c9});_0x35df80[_0x32c007(0x3af)]=(_0x20c545['getObjectIncludeInGroup'](_0x37bb05)[_0x32c007(0x3af)]||0x0)+_0x35df80['angle'];}}this[_0x32c007(0x238)]=_0x35df80;const _0x5aeb7e=_0x209010?this['_activeShapeModel'][_0x32c007(0x43b)]():this[_0x32c007(0x688)][_0x32c007(0x2c0)]();if(_0x5aeb7e){this[_0x32c007(0x39f)](_0x5aeb7e,_0x251d3e,_0x209010,_0x445b8a,_0x594563);return;}this['_handleFreeEndpointMove'](_0x251d3e,_0x3eabbb,_0x209010,_0x445b8a,_0x594563);}),this[_0x433cef(0x5d2)]=_0x20c545[_0x433cef(0x49c)][_0x433cef(0x411)]((_0x13bfc6,_0x50ced7)=>{const _0x328fe9=_0x433cef;this[_0x328fe9(0x24a)](_0x20c545,_0x3eabbb,_0x13bfc6,_0x209010,_0x1ca9a5);}),_0x2e00f4['stopPropagation']();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x27a252,_0x26c586,_0x1fb81c){const _0x2b2988=_0x120d79,_0x318e27=this[_0x2b2988(0x64f)]['getBasicShapeRelation'](_0x27a252,_0x26c586,_0x1fb81c);if(!_0x318e27||_0x318e27[_0x2b2988(0x620)]===0x0)return;const _0x3e40fc=this[_0x2b2988(0x38c)][_0x2b2988(0x333)](_0x27a252);if(!_0x3e40fc)return;const {scene:_0x1ef4c4}=_0x3e40fc;for(const _0x4ad39a of _0x318e27){const _0xf5f1cd=_0x4ad39a[_0x2b2988(0x461)],_0x2342c7=this[_0x2b2988(0x64f)]['getShapeModel'](_0x27a252,_0x26c586,_0xf5f1cd);if(!_0x2342c7)continue;const _0x259a98=_0x2342c7[_0x2b2988(0x2c0)](),_0x260738=_0x2342c7[_0x2b2988(0x43b)](),_0x41b4cb=(_0x259a98===null||_0x259a98===void 0x0?void 0x0:_0x259a98['shapeId'])===_0x1fb81c,_0x1cfb54=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x27a252,'subUnitId':_0x26c586,'drawingId':_0xf5f1cd}),_0x2bf64a=_0x1ef4c4[_0x2b2988(0x502)](_0x1cfb54);if(!_0x2bf64a)continue;const _0x5cb9f5=this[_0x2b2988(0x50b)][_0x2b2988(0x41f)]({'unitId':_0x27a252,'subUnitId':_0x26c586,'drawingId':_0xf5f1cd});if(!(_0x5cb9f5===null||_0x5cb9f5===void 0x0?void 0x0:_0x5cb9f5[_0x2b2988(0x664)]))continue;if(_0x259a98&&_0x260738)this[_0x2b2988(0x2b8)](_0x27a252,_0x26c586,_0xf5f1cd,_0x2342c7,_0x259a98,_0x260738,_0x2bf64a);else this[_0x2b2988(0x3b0)](_0x27a252,_0x26c586,_0xf5f1cd,_0x2342c7,_0x41b4cb?_0x259a98:_0x260738,_0x41b4cb,_0x5cb9f5,_0x2bf64a);}}[_0x120d79(0x2b8)](_0x194e79,_0x4bb62b,_0xc292fc,_0x2e1776,_0x402fa6,_0x48a869,_0xe6dd08){const _0x37dbba=_0x120d79,_0x246d05=this[_0x37dbba(0x3e8)],_0x509dfb=this[_0x37dbba(0x46a)];this[_0x37dbba(0x3e8)]=_0x194e79,this[_0x37dbba(0x46a)]=_0x4bb62b;const _0x559330=this[_0x37dbba(0x5c3)](_0x402fa6),_0x27e300=this[_0x37dbba(0x5c3)](_0x48a869);this['_unitId']=_0x246d05,this['_subUnitId']=_0x509dfb;if(!_0x559330||!_0x27e300)return;const _0x7cdfaa=_0x2e1776[_0x37dbba(0x5a2)](),_0x26c363=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x559330,_0x27e300,_0x7cdfaa);if(_0x26c363)_0x2e1776[_0x37dbba(0x569)](_0x26c363);const _0x4b1670=(0x0,_univerjs_pro_engine_shape[_0x37dbba(0x4ab)])(_0x26c363,_0x7cdfaa);if(_0x4b1670['lineType']!==_0x7cdfaa)_0x2e1776[_0x37dbba(0x26a)](_0x4b1670[_0x37dbba(0x22b)]);_0x2e1776[_0x37dbba(0x3a1)]();for(const [_0x2bfc76,_0x47fffa]of Object['entries'](_0x4b1670['adjustValues']))_0x2e1776[_0x37dbba(0x5cc)](_0x2bfc76,_0x47fffa);_0x2e1776[_0x37dbba(0x5b0)]({'width':_0x4b1670['worldRect'][_0x37dbba(0x52c)],'height':_0x4b1670[_0x37dbba(0x4b9)][_0x37dbba(0x340)]}),_0xe6dd08[_0x37dbba(0x57e)]({'flipX':_0x4b1670[_0x37dbba(0x4b9)]['flipX'],'flipY':_0x4b1670[_0x37dbba(0x4b9)]['flipY'],'left':_0x4b1670[_0x37dbba(0x4b9)][_0x37dbba(0x2bb)],'top':_0x4b1670['worldRect'][_0x37dbba(0x21b)],'width':_0x4b1670[_0x37dbba(0x4b9)][_0x37dbba(0x52c)],'height':_0x4b1670[_0x37dbba(0x4b9)][_0x37dbba(0x340)],'angle':_0x4b1670[_0x37dbba(0x30f)]}),_0x2e1776[_0x37dbba(0x624)]();}[_0x120d79(0x3b0)](_0x2cde5e,_0x48ed01,_0x1c27b3,_0x800237,_0x3c94a6,_0x16b598,_0x21ee74,_0x113bf9){const _0x3ff983=_0x120d79,_0x349749=this[_0x3ff983(0x3e8)],_0x2c7aaa=this['_subUnitId'];this[_0x3ff983(0x3e8)]=_0x2cde5e,this[_0x3ff983(0x46a)]=_0x48ed01;const _0x3ea4a6=this[_0x3ff983(0x5c3)](_0x3c94a6);this[_0x3ff983(0x3e8)]=_0x349749,this[_0x3ff983(0x46a)]=_0x2c7aaa;if(!_0x3ea4a6)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x21ee74[_0x3ff983(0x664)],_0x4183d4=_0x800237[_0x3ff983(0x64a)]();if(_0x4183d4[_0x3ff983(0x620)]<0x2)return;const _0x1607c1=new _univerjs_pro_engine_shape[(_0x3ff983(0x188))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x3e78d4=_0x16b598?_0x4183d4[_0x4183d4[_0x3ff983(0x620)]-0x1]:_0x4183d4[0x0],_0x507eb0=_0x1607c1[_0x3ff983(0x40e)](_0x3e78d4),_0x4b6d82=_univerjs_pro_engine_shape[_0x3ff983(0x188)]['computeConnectorResizeLayout'](_0x507eb0,_0x3ea4a6['point'],!_0x16b598);_0x113bf9[_0x3ff983(0x57e)]({'flipX':_0x4b6d82[_0x3ff983(0x4b9)]['flipX'],'flipY':_0x4b6d82[_0x3ff983(0x4b9)]['flipY'],'left':_0x4b6d82[_0x3ff983(0x4b9)]['left'],'top':_0x4b6d82[_0x3ff983(0x4b9)][_0x3ff983(0x21b)],'width':_0x4b6d82['worldRect'][_0x3ff983(0x52c)],'height':_0x4b6d82[_0x3ff983(0x4b9)][_0x3ff983(0x340)],'angle':_0x4b6d82[_0x3ff983(0x4b9)][_0x3ff983(0x3af)]}),_0x113bf9['makeDirty'](!![]);}['_clearShapeConnectorHandlerObjects'](){const _0x3d0632=_0x120d79;if(this[_0x3d0632(0x572)]['length']===0x0)return;this[_0x3d0632(0x572)][_0x3d0632(0x19a)](_0x742929=>{const _0x3eeaea=_0x3d0632;_0x742929[_0x3eeaea(0x49e)]();}),this[_0x3d0632(0x572)]=[];}[_0x120d79(0x5fe)](){const _0x11ff0d=_0x120d79,_0x2040ba=this['_univerInstanceService'][_0x11ff0d(0x697)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET']);this['disposeWithMe'](_0x2040ba[_0x11ff0d(0x49d)]((0x0,rxjs[_0x11ff0d(0x1bf)])(_0x3a302b=>{const _0x1d6da7=_0x11ff0d;if(!_0x3a302b)return rxjs['EMPTY'];return _0x3a302b[_0x1d6da7(0x22d)][_0x1d6da7(0x49d)]((0x0,rxjs[_0x1d6da7(0x1bf)])(_0x493923=>{const _0x4f508d=_0x1d6da7;if(!_0x493923)return rxjs[_0x4f508d(0x5bb)];const _0x591d30=_0x3a302b[_0x4f508d(0x58c)](),_0x13210a=this[_0x4f508d(0x38c)][_0x4f508d(0x333)](_0x591d30),_0x12c39e=_0x13210a===null||_0x13210a===void 0x0?void 0x0:_0x13210a[_0x4f508d(0x57a)];if(!_0x12c39e)return rxjs[_0x4f508d(0x5bb)];return(0x0,rxjs['of'])(_0x12c39e);}));}))[_0x11ff0d(0x22f)](_0x46c3a0=>{const _0x35e575=_0x11ff0d,_0x21c61a=_0x46c3a0[_0x35e575(0x532)]();this[_0x35e575(0x3cd)](_0x46c3a0[_0x35e575(0x445)][_0x35e575(0x411)](_0x186f8f=>{const _0x2aff44=_0x35e575;if(this[_0x2aff44(0x448)]&&this[_0x2aff44(0x4ee)])this[_0x2aff44(0x25a)]();})),this['disposeWithMe'](_0x21c61a[_0x35e575(0x3d2)][_0x35e575(0x22f)](_0x3895fd=>{const _0x2d044c=_0x35e575,{objects:_0x259c08}=_0x3895fd;this[_0x2d044c(0x25a)]();if(_0x259c08!==null&&_0x259c08[_0x2d044c(0x5bd)]===0x1){if(_0x259c08['values']()[_0x2d044c(0x13d)]()[_0x2d044c(0x5f4)]instanceof DrawingShape)this['_isDrawingShapePointDown']=!![];}})),this[_0x35e575(0x3cd)](_0x21c61a['changing$']['subscribe'](_0x2c93d2=>{if(this['_isDrawingShapePointDown'])this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x46c3a0[_0x35e575(0x49c)]['subscribeEvent'](()=>{const _0x651f0e=_0x35e575;this[_0x651f0e(0x448)]&&(this['_isDrawingShapePointDown']=![],this[_0x651f0e(0x522)]());})),this[_0x35e575(0x3cd)](_0x21c61a[_0x35e575(0x29f)]['subscribe'](()=>{const _0x1dde94=_0x35e575;this[_0x1dde94(0x3e8)]&&this[_0x1dde94(0x46a)]&&this[_0x1dde94(0x4ee)]&&(this[_0x1dde94(0x50b)][_0x1dde94(0x41f)]({'unitId':this[_0x1dde94(0x3e8)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1dde94(0x4ee)]})&&(this[_0x1dde94(0x25a)](),this[_0x1dde94(0x522)]()));}));}));}[_0x120d79(0x1f1)](){const _0xa741b=_0x120d79;this[_0xa741b(0x3cd)](this[_0xa741b(0x50b)]['focus$'][_0xa741b(0x22f)](_0x19fe7b=>{const _0x167bbb=_0xa741b;if(_0x19fe7b[_0x167bbb(0x620)]===0x1){const _0x46268a=_0x19fe7b[0x0];if(_0x46268a['drawingType']===_univerjs_core[_0x167bbb(0x166)][_0x167bbb(0x525)]){const _0x4f7580=this[_0x167bbb(0x64f)][_0x167bbb(0x483)](_0x46268a['unitId'],_0x46268a[_0x167bbb(0x363)],_0x46268a[_0x167bbb(0x6a4)]);if(_0x4f7580&&(0x0,_univerjs_pro_engine_shape[_0x167bbb(0x205)])(_0x4f7580['getShapeType']())){this['_activeShapeId']=_0x46268a[_0x167bbb(0x6a4)],this[_0x167bbb(0x3e8)]=_0x46268a[_0x167bbb(0x2db)],this['_subUnitId']=_0x46268a[_0x167bbb(0x363)],this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x167bbb(0x4ee)]=void 0x0,this[_0x167bbb(0x3e8)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x167bbb(0x25a)]();})),this[_0xa741b(0x3cd)](this[_0xa741b(0x50b)][_0xa741b(0x147)]['subscribe'](_0x40b9b3=>{const _0x1464a1=_0xa741b;if(_0x40b9b3[_0x1464a1(0x620)]===0x1){var _0x4aad8c;const _0x9d5efb=_0x40b9b3[0x0],_0x1e3e9c=(_0x4aad8c=this[_0x1464a1(0x50b)][_0x1464a1(0x41f)](_0x9d5efb))===null||_0x4aad8c===void 0x0?void 0x0:_0x4aad8c[_0x1464a1(0x14f)];if(_0x1e3e9c===_univerjs_core[_0x1464a1(0x166)][_0x1464a1(0x525)]&&_0x9d5efb[_0x1464a1(0x6a4)]===this[_0x1464a1(0x4ee)])this[_0x1464a1(0x25a)](),this[_0x1464a1(0x522)]();else{if(!this['_activeShapeId']&&_0x1e3e9c===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE'])this[_0x1464a1(0x634)](_0x9d5efb[_0x1464a1(0x2db)],_0x9d5efb[_0x1464a1(0x363)],_0x9d5efb[_0x1464a1(0x6a4)]);}}})),this[_0xa741b(0x3cd)](this[_0xa741b(0x50b)]['remove$'][_0xa741b(0x22f)](_0x1b8bb4=>{const _0x3cd1f4=_0xa741b;for(const _0x5001dc of _0x1b8bb4){const {drawingId:_0x3d3cdb}=_0x5001dc;if(this['_activeShapeId']===_0x3d3cdb){this[_0x3cd1f4(0x67c)]();return;}}}));}['_handleConnectedEndpointMove'](_0x28e431,_0x448bac,_0x3d92bf,_0x7be49c,_0x2e9b05){const _0x1d3a1a=_0x120d79;var _0x25b48f,_0x3538cb;if(!this[_0x1d3a1a(0x688)])return;const _0x4d6857=this['_getConnectPointInfo'](_0x28e431);if(!_0x4d6857)return;const _0xd1149f=this['_currentConnectionTarget']?this['_currentConnectionTarget'][_0x1d3a1a(0x567)]:_0x448bac,_0x440611=this[_0x1d3a1a(0x238)]?this['_currentConnectionTarget'][_0x1d3a1a(0x3af)]:this[_0x1d3a1a(0x58b)](_0x4d6857[_0x1d3a1a(0x46b)],_0xd1149f);let _0x56e674;if(this['_currentConnectionTarget']){const _0x6ca7cb=this[_0x1d3a1a(0x50b)][_0x1d3a1a(0x41f)]({'unitId':this[_0x1d3a1a(0x238)][_0x1d3a1a(0x2db)],'subUnitId':this[_0x1d3a1a(0x238)]['subUnitId'],'drawingId':this[_0x1d3a1a(0x238)][_0x1d3a1a(0x5ec)]});if(_0x6ca7cb===null||_0x6ca7cb===void 0x0?void 0x0:_0x6ca7cb[_0x1d3a1a(0x664)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x12ee53}=_0x6ca7cb[_0x1d3a1a(0x664)];_0x56e674=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x12ee53||0x0);}else _0x56e674={'left':_0xd1149f['x'],'top':_0xd1149f['y'],'width':0x0,'height':0x0};}else _0x56e674={'left':_0xd1149f['x'],'top':_0xd1149f['y'],'width':0x0,'height':0x0};const _0x123fb8={'point':_0xd1149f,'angle':_0x440611,'bounds':_0x56e674},_0x1b3d6a=_0x3d92bf?_0x123fb8:_0x4d6857,_0x524e9b=_0x3d92bf?_0x4d6857:_0x123fb8,_0x1129fe=this['_activeShapeModel']['getShapeType'](),_0x14b9e5=(0x0,_univerjs_pro_engine_shape[_0x1d3a1a(0x5aa)])(_0x1b3d6a,_0x524e9b,_0x1129fe);if(_0x14b9e5)this[_0x1d3a1a(0x688)][_0x1d3a1a(0x569)](_0x14b9e5);const _0x2d7e1d=(0x0,_univerjs_pro_engine_shape[_0x1d3a1a(0x4ab)])(_0x14b9e5,_0x1129fe);if(_0x2d7e1d[_0x1d3a1a(0x22b)]!==_0x1129fe)this[_0x1d3a1a(0x688)]['changeShapeType'](_0x2d7e1d['lineType']);for(const [_0x58b3f3,_0x5a5042]of Object[_0x1d3a1a(0x393)](_0x2d7e1d[_0x1d3a1a(0x367)]))this[_0x1d3a1a(0x688)][_0x1d3a1a(0x5cc)](_0x58b3f3,_0x5a5042);this['_activeShapeModel'][_0x1d3a1a(0x5b0)]({'width':_0x2d7e1d[_0x1d3a1a(0x4b9)][_0x1d3a1a(0x52c)],'height':_0x2d7e1d[_0x1d3a1a(0x4b9)]['height']}),_0x7be49c[_0x1d3a1a(0x57e)]({'flipX':_0x2d7e1d[_0x1d3a1a(0x4b9)]['flipX'],'flipY':_0x2d7e1d[_0x1d3a1a(0x4b9)][_0x1d3a1a(0x505)],'left':_0x2d7e1d[_0x1d3a1a(0x4b9)][_0x1d3a1a(0x2bb)],'top':_0x2d7e1d[_0x1d3a1a(0x4b9)]['top'],'width':_0x2d7e1d[_0x1d3a1a(0x4b9)][_0x1d3a1a(0x52c)],'height':_0x2d7e1d[_0x1d3a1a(0x4b9)][_0x1d3a1a(0x340)],'angle':_0x2d7e1d[_0x1d3a1a(0x30f)]}),_0x7be49c[_0x1d3a1a(0x44f)](!![]);const _0x44ca4b=(_0x25b48f=(_0x3538cb=this[_0x1d3a1a(0x238)])===null||_0x3538cb===void 0x0?void 0x0:_0x3538cb[_0x1d3a1a(0x567)])!==null&&_0x25b48f!==void 0x0?_0x25b48f:_0x448bac;_0x2e9b05['transformByState']({'left':_0x44ca4b['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x1d3a1a(0x4cd)],'top':_0x44ca4b['y']-_univerjs_pro_engine_shape[_0x1d3a1a(0x491)][_0x1d3a1a(0x4cd)]});}['_handleFreeEndpointMove'](_0x3367ac,_0x3479ee,_0x1c9b6f,_0x3acd04,_0x33fa35){const _0x437f4a=_0x120d79;var _0x3e47f1,_0x526279,_0x3d7c0a,_0x2ad3a4;const _0xff8d30=(_0x3e47f1=(_0x526279=this[_0x437f4a(0x238)])===null||_0x526279===void 0x0?void 0x0:_0x526279[_0x437f4a(0x567)])!==null&&_0x3e47f1!==void 0x0?_0x3e47f1:_0x3367ac,_0x467409=_univerjs_pro_engine_shape['ConnectorCoordinateTransform']['computeConnectorResizeLayout'](_0x3479ee,_0xff8d30,_0x1c9b6f);_0x3acd04[_0x437f4a(0x57e)]({'flipX':_0x467409[_0x437f4a(0x4b9)][_0x437f4a(0x158)],'flipY':_0x467409[_0x437f4a(0x4b9)][_0x437f4a(0x505)],'left':_0x467409[_0x437f4a(0x4b9)]['left'],'top':_0x467409[_0x437f4a(0x4b9)][_0x437f4a(0x21b)],'width':_0x467409[_0x437f4a(0x4b9)][_0x437f4a(0x52c)],'height':_0x467409['worldRect'][_0x437f4a(0x340)],'angle':_0x467409['worldRect'][_0x437f4a(0x3af)]});const _0x3a6c35=(_0x3d7c0a=(_0x2ad3a4=this[_0x437f4a(0x238)])===null||_0x2ad3a4===void 0x0?void 0x0:_0x2ad3a4['worldPoint'])!==null&&_0x3d7c0a!==void 0x0?_0x3d7c0a:_0x3367ac;_0x33fa35[_0x437f4a(0x57e)]({'left':_0x3a6c35['x']-_univerjs_pro_engine_shape[_0x437f4a(0x491)][_0x437f4a(0x4cd)],'top':_0x3a6c35['y']-_univerjs_pro_engine_shape[_0x437f4a(0x491)][_0x437f4a(0x4cd)]});}[_0x120d79(0x5c3)](_0xb1b807){const _0x5cb283=_0x120d79;if(!this[_0x5cb283(0x3e8)]||!this[_0x5cb283(0x46a)])return null;const {shapeId:_0xfc119c,cxnIndex:_0x1f0e23}=_0xb1b807,_0x36edbf=this[_0x5cb283(0x64f)][_0x5cb283(0x483)](this['_unitId'],this[_0x5cb283(0x46a)],_0xfc119c);if(!_0x36edbf)return null;const _0xd14b2d=this[_0x5cb283(0x50b)][_0x5cb283(0x41f)]({'unitId':this['_unitId'],'subUnitId':this[_0x5cb283(0x46a)],'drawingId':_0xfc119c});if(!(_0xd14b2d===null||_0xd14b2d===void 0x0?void 0x0:_0xd14b2d['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x31fef6}=_0xd14b2d['transform'];_0x36edbf['updateContext']({'width':width,'height':height});const _0x50ea4f=_0x36edbf[_0x5cb283(0x1bc)]()['find'](_0x15690a=>_0x15690a[_0x5cb283(0x1c4)]===_0x1f0e23);if(!_0x50ea4f)return null;let _0x1a79d1=flipX?width-_0x50ea4f['x']:_0x50ea4f['x'],_0x42d1e5=flipY?height-_0x50ea4f['y']:_0x50ea4f['y'];if(_0x31fef6!==0x0&&_0x31fef6!==void 0x0&&_0x31fef6!==null){const _0x1aac0d=_0x31fef6*Math['PI']/0xb4,_0x3c8959=Math[_0x5cb283(0x1db)](_0x1aac0d),_0x35a48e=Math[_0x5cb283(0x5a7)](_0x1aac0d),_0x2a7c81=width/0x2,_0x4b35bd=height/0x2,_0x32766a=_0x1a79d1-_0x2a7c81,_0x29d93a=_0x42d1e5-_0x4b35bd;_0x1a79d1=_0x2a7c81+_0x32766a*_0x3c8959-_0x29d93a*_0x35a48e,_0x42d1e5=_0x4b35bd+_0x32766a*_0x35a48e+_0x29d93a*_0x3c8959;}_0x1a79d1+=left,_0x42d1e5+=top;let _0x4359e5=_0x50ea4f[_0x5cb283(0x4f7)]/0xea60;if(flipX)_0x4359e5=0xb4-_0x4359e5;if(flipY)_0x4359e5=-_0x4359e5;_0x4359e5+=_0x31fef6||0x0,_0x4359e5=(_0x4359e5%0x168+0x168)%0x168;const _0x48cd20=(0x0,_univerjs_pro_engine_shape[_0x5cb283(0x407)])({'left':left,'top':top,'width':width,'height':height},_0x31fef6||0x0);return{'point':{'x':_0x1a79d1,'y':_0x42d1e5},'angle':_0x4359e5,'bounds':_0x48cd20};}[_0x120d79(0x58b)](_0xcc1d9f,_0x145261){const _0x25c2b5=_0x120d79,_0x4f02f2=_0x145261['x']-_0xcc1d9f['x'],_0x3393f4=_0x145261['y']-_0xcc1d9f['y'];if(Math[_0x25c2b5(0x19f)](_0x4f02f2)>=Math[_0x25c2b5(0x19f)](_0x3393f4))return _0x4f02f2>=0x0?0xb4:0x0;else return _0x3393f4>=0x0?0x10e:0x5a;}[_0x120d79(0x67c)](){const _0x3a83e1=_0x120d79;this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this[_0x3a83e1(0x46a)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x120d79(0x49e)](){const _0x1b25f9=_0x120d79;this[_0x1b25f9(0x25a)](),super[_0x1b25f9(0x49e)]();}};function _0x3b97(_0x42a011,_0x40bbdb){_0x42a011=_0x42a011-0x137;const _0x1c2909=_0x1c29();let _0x3b97be=_0x1c2909[_0x42a011];return _0x3b97be;}SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0x120d79(0x3b2)]),__decorateParam(0x2,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x3,_univerjs_drawing[_0x120d79(0x534)]),__decorateParam(0x4,_univerjs_core[_0x120d79(0x28f)]),__decorateParam(0x5,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_pro_sheets_shape[_0x120d79(0x293)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x120d79(0x1a2)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x120d79(0x1a2)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x120d79(0x336)]{constructor(_0x323204,_0x5a0d43,_0x1eed66){const _0x17a358=_0x120d79;super(),this[_0x17a358(0x23b)]=_0x323204,this['_localeService']=_0x5a0d43,this[_0x17a358(0x366)]=_0x1eed66,this[_0x17a358(0x307)]();}[_0x120d79(0x307)](){const _0x170ba1=_0x120d79;this['disposeWithMe'](this[_0x170ba1(0x23b)][_0x170ba1(0x551)](_0x32f68e=>{const _0x1f0fda=_0x170ba1;let _0x1034ab,_0x4df0d6;if(_0x32f68e['id']===_univerjs_pro_sheets_shape[_0x1f0fda(0x68e)]['id']||_0x32f68e['id']===_univerjs_pro_sheets_shape[_0x1f0fda(0x59a)]['id']||_0x32f68e['id']===_univerjs_pro_sheets_shape[_0x1f0fda(0x352)]['id']){const _0x4c60a9=_0x32f68e[_0x1f0fda(0x245)];_0x1034ab=_0x4c60a9[_0x1f0fda(0x2db)],_0x4df0d6=_0x4c60a9[_0x1f0fda(0x363)];}if(!_0x1034ab||!_0x4df0d6)return;if(!this[_0x1f0fda(0x366)][_0x1f0fda(0x553)]({'workbookTypes':[_univerjs_sheets[_0x1f0fda(0x1a8)]],'worksheetTypes':[_univerjs_sheets[_0x1f0fda(0x4f5)]]},_0x1034ab,_0x4df0d6))this['_sheetPermissionCheckController'][_0x1f0fda(0x253)](this['_localeService']['t'](_0x1f0fda(0x1f3)));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core['ICommandService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_core[_0x120d79(0x2b1)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_sheets[_0x120d79(0x4e3)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x21c029){const _0x5baa14=_0x120d79,{containerWidth:_0x5141ee,containerHeight:_0x4dde88,scaleX:_0x1f1f4c,scaleY:_0x15287f}=_0x21c029,_0x33bef5=_0x1f1f4c||0x1,_0x118c63=_0x15287f||0x1,_0x4ca157=(0x0,_univerjs_ui[_0x5baa14(0x258)])(ShapeTextEditingService),_0x1370a3=(0x0,_univerjs_ui[_0x5baa14(0x258)])(_univerjs_docs_ui['IEditorService']),_0x332564=(0x0,_univerjs_ui[_0x5baa14(0x258)])(_univerjs_engine_render[_0x5baa14(0x2a6)]),_0x13c0cf=(0x0,_univerjs_ui[_0x5baa14(0x258)])(_univerjs_core['IUniverInstanceService']),_0x415133=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing[_0x5baa14(0x534)]),_0x4db8c6=(0x0,_univerjs_ui[_0x5baa14(0x258)])(_univerjs_pro_sheets_shape[_0x5baa14(0x293)]),_0x3c2ad9=(0x0,_univerjs_ui[_0x5baa14(0x258)])(_univerjs_core['ICommandService']),_0x955551=(0x0,_univerjs_ui[_0x5baa14(0x458)])(_0x4ca157[_0x5baa14(0x362)]),_0x353857=(0x0,_univerjs_ui[_0x5baa14(0x458)])(_0x4ca157[_0x5baa14(0x1f4)]),_0x4b50b2=(0x0,react['useRef'])(null),_0x448726=(0x0,react['useRef'])(null),_0x1d177e=(0x0,react[_0x5baa14(0x151)])(null),_0x8b2d38=(0x0,react[_0x5baa14(0x151)])(null),_0x41c642=(0x0,react['useRef'])(null),_0x15a57d=(0x0,react[_0x5baa14(0x151)])(null),[_0x29bc2f,_0x59d621]=(0x0,react['useState'])({'editorHeight':_0x4dde88,'marginTop':0x0,'useAbsolutePosition':![]}),_0x442d9c=(0x0,react['useCallback'])(_0x5dc9a6=>{queueMicrotask(()=>{_0x59d621(_0x5dc9a6);});},[]),_0x5df844=(0x0,react[_0x5baa14(0x3b9)])(()=>{const _0x577f30=_0x5baa14;return _0x13c0cf['getUnit'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core[_0x577f30(0x335)][_0x577f30(0x62c)]);},[_0x13c0cf]),_0x42f4fd=(0x0,react[_0x5baa14(0x3b9)])(()=>{const _0x1ab12e=_0x5baa14;var _0x29e83b;const _0x3eec3c=_0x33bef5,_0x403c07=_0x118c63;if(!_0x955551)return{'scaleAdjust':0x1,'renderScaleX':_0x3eec3c,'renderScaleY':_0x403c07};const _0xee55ee=_0x332564['getRenderById'](_0x955551[_0x1ab12e(0x2db)]),_0x503a28=_0xee55ee===null||_0xee55ee===void 0x0?void 0x0:_0xee55ee[_0x1ab12e(0x57a)]['getAncestorScale'](),_0x42c2c8=_0xee55ee===null||_0xee55ee===void 0x0?void 0x0:_0xee55ee[_0x1ab12e(0x35e)][_0x1ab12e(0x24c)](),_0x5753d3=_0x42c2c8?Number[_0x1ab12e(0x3c0)](_0x42c2c8['style'][_0x1ab12e(0x52c)]||''):0x0,_0x3bf2f8=(_0x29e83b=_0x42c2c8===null||_0x42c2c8===void 0x0?void 0x0:_0x42c2c8[_0x1ab12e(0x2d7)]()[_0x1ab12e(0x52c)])!==null&&_0x29e83b!==void 0x0?_0x29e83b:0x0,_0x52da8e=_0x5753d3>0x0&&_0x3bf2f8>0x0?_0x3bf2f8/_0x5753d3:0x1;return{'scaleAdjust':Number[_0x1ab12e(0x4a9)](_0x52da8e)&&_0x52da8e>0x0?_0x52da8e:0x1,'renderScaleX':(_0x503a28===null||_0x503a28===void 0x0?void 0x0:_0x503a28['scaleX'])||_0x3eec3c,'renderScaleY':(_0x503a28===null||_0x503a28===void 0x0?void 0x0:_0x503a28[_0x1ab12e(0x344)])||_0x403c07};},[_0x33bef5,_0x118c63,_0x955551,_0x332564]),_0x501505=(0x0,react[_0x5baa14(0x3b9)])(()=>{const _0x3695b0=_0x5baa14;if(!_0x955551)return{'left':0x0,'top':0x0,'width':_0x5141ee/_0x33bef5,'height':_0x4dde88/_0x118c63};const {unitId:_0x212bbb,subUnitId:_0x120131,shapeId:_0xa19aec}=_0x955551,_0xb8f04c=_0x4db8c6[_0x3695b0(0x483)](_0x212bbb,_0x120131,_0xa19aec);if(!_0xb8f04c)return{'left':0x0,'top':0x0,'width':_0x5141ee/_0x33bef5,'height':_0x4dde88/_0x118c63};const _0x134956={'left':0x0,'top':0x0,'width':_0x5141ee/_0x33bef5,'height':_0x4dde88/_0x118c63};return _0xb8f04c[_0x3695b0(0x4f9)](_0x134956);},[_0x955551,_0x5141ee,_0x4dde88,_0x33bef5,_0x118c63,_0x4db8c6]),_0x3305bf=(0x0,react[_0x5baa14(0x3b9)])(()=>{const _0x2c9230=_0x5baa14;if(!_0x955551)return null;const {unitId:_0xb0b353,subUnitId:_0x136b39,shapeId:_0x64185c}=_0x955551,_0xac2d39=_0x4db8c6['getShapeModel'](_0xb0b353,_0x136b39,_0x64185c);if(!_0xac2d39)return null;const _0x44cd56=_0xac2d39[_0x2c9230(0x5bc)]();if(!_0x44cd56)return null;const _0x52d748={'unitId':_0xb0b353,'subUnitId':_0x136b39,'drawingId':_0x64185c},_0x588d0c=_0x415133[_0x2c9230(0x41f)](_0x52d748);let _0x25c08c={'angle':0x0,'flipX':![],'flipY':![]};if(_0x588d0c&&_0x588d0c['transform'])_0x25c08c=_0x588d0c['transform'];const _0x4493f2={'left':0x0,'top':0x0,'width':_0x5141ee/_0x33bef5,'height':_0x4dde88/_0x118c63},_0x442704=_0xac2d39[_0x2c9230(0x4f9)](_0x4493f2);let _0x7805db,_0x1a3a05=_univerjs_core['VerticalAlign'][_0x2c9230(0x550)],_0x5b2a68=_univerjs_core[_0x2c9230(0x5de)][_0x2c9230(0x145)];if(_0x2c9230(0x318)in _0x44cd56&&_0x44cd56[_0x2c9230(0x318)]){var _0x248115,_0x412972;const _0x542d09=_0x44cd56[_0x2c9230(0x318)];if(_0x542d09===null||_0x542d09===void 0x0?void 0x0:_0x542d09[_0x2c9230(0x511)])_0x7805db=_0x542d09[_0x2c9230(0x511)];_0x1a3a05=(_0x248115=_0x542d09===null||_0x542d09===void 0x0?void 0x0:_0x542d09['va'])!==null&&_0x248115!==void 0x0?_0x248115:_univerjs_core[_0x2c9230(0x1b7)][_0x2c9230(0x550)],_0x5b2a68=(_0x412972=_0x542d09===null||_0x542d09===void 0x0?void 0x0:_0x542d09['ha'])!==null&&_0x412972!==void 0x0?_0x412972:_univerjs_core['HorizontalAlign'][_0x2c9230(0x145)];}return{'doc':_0x7805db,'verticalAlign':_0x1a3a05,'horizontalAlign':_0x5b2a68,'textRect':_0x442704,'transform':_0x25c08c,'isHorizontal':_0x44cd56[_0x2c9230(0x653)]};},[_0x955551,_0x4db8c6,_0x415133,_0x5141ee,_0x4dde88,_0x33bef5,_0x118c63]),_0x47708d=(0x0,react[_0x5baa14(0x4c4)])(()=>{const _0x4db246=_0x5baa14,_0x231766=_0x3305bf();if(_0x231766===null||_0x231766===void 0x0?void 0x0:_0x231766[_0x4db246(0x511)])return prepareShapeTextDocumentData(_0x231766[_0x4db246(0x511)],{'isHorizontal':!![],'textRect':_0x231766[_0x4db246(0x5ab)],'verticalAlign':_0x231766[_0x4db246(0x1c0)],'horizontalAlign':_0x231766[_0x4db246(0x347)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x5141ee/_0x33bef5,'height':Infinity}}};},[_0x3305bf,_0x5141ee,_0x33bef5]),_0x529544=(0x0,_univerjs_docs_ui[_0x5baa14(0x4d5)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x47708d,'container':_0x448726,'autoFocus':![],'isSingle':![]}),_0x53ca4a=(0x0,_univerjs_docs_ui[_0x5baa14(0x405)])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x5baa14(0x5a1)])(_0x53ca4a,{'keyCodes':[{'keyCode':_univerjs_ui['KeyCode'][_0x5baa14(0x4fd)]}],'handler':()=>{_0x3c2ad9['executeCommand'](_univerjs_docs_ui['BreakLineCommand']['id']);}},_0x529544),(0x0,_univerjs_docs_ui[_0x5baa14(0x5cb)])(_0x53ca4a,![],_0x529544);const _0x1d0b6a=(0x0,react[_0x5baa14(0x3b9)])((_0x40b786=!![])=>{const _0x2891a5=_0x5baa14;var _0xc36524,_0x21ee88,_0xa74962;if(!_0x529544)return;const _0x2fd2ea=_0x529544['getSelectionRanges']()[_0x2891a5(0x5e4)](_0x49b0e7=>_0x49b0e7[_0x2891a5(0x67f)]),_0x20fdac=((_0xc36524=(_0x21ee88=_0x529544['getDocumentData']()[_0x2891a5(0x1b2)])===null||_0x21ee88===void 0x0?void 0x0:_0x21ee88[_0x2891a5(0x2e1)][_0x2891a5(0x620)])!==null&&_0xc36524!==void 0x0?_0xc36524:0x2)-0x2,_0x4aad33=(_0xa74962=_0x2fd2ea===null||_0x2fd2ea===void 0x0?void 0x0:_0x2fd2ea[_0x2891a5(0x571)])!==null&&_0xa74962!==void 0x0?_0xa74962:_0x40b786?_0x20fdac:null;if(_0x4aad33===null)return;_0x529544[_0x2891a5(0x4aa)]([{'startOffset':_0x4aad33,'endOffset':_0x4aad33}],![]);},[_0x529544]),_0x6fef98=(0x0,react[_0x5baa14(0x3b9)])(()=>{const _0x2d2db0=_0x5baa14;_0x41c642[_0x2d2db0(0x17c)]!==null&&(cancelAnimationFrame(_0x41c642[_0x2d2db0(0x17c)]),_0x41c642['current']=null),_0x15a57d[_0x2d2db0(0x17c)]!==null&&(window['clearTimeout'](_0x15a57d[_0x2d2db0(0x17c)]),_0x15a57d[_0x2d2db0(0x17c)]=null);},[]),_0xf29987=(0x0,react['useCallback'])(()=>{const _0x271b76=_0x5baa14;var _0x34a27a,_0xec8142,_0x2b275c;if(!_0x529544)return;const _0x314eb9=_0x332564[_0x271b76(0x333)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x234f61=_0x314eb9===null||_0x314eb9===void 0x0?void 0x0:_0x314eb9[_0x271b76(0x442)](_univerjs_docs['DocSkeletonManagerService']);if(!_0x234f61)return;const _0x58b67d=_0x234f61['getSkeleton'](),_0xdd8192=_0x5df844(),{renderScaleX:_0x1419c9,renderScaleY:_0xd44172,scaleAdjust:_0x29bb69}=_0x42f4fd(),_0xb96de8=_0x3305bf(),_0x3de36c=(_0x34a27a=_0xb96de8===null||_0xb96de8===void 0x0?void 0x0:_0xb96de8[_0x271b76(0x1c0)])!==null&&_0x34a27a!==void 0x0?_0x34a27a:_univerjs_core['VerticalAlign'][_0x271b76(0x550)],_0x2b01db=(_0xec8142=_0xb96de8===null||_0xb96de8===void 0x0?void 0x0:_0xb96de8[_0x271b76(0x347)])!==null&&_0xec8142!==void 0x0?_0xec8142:_univerjs_core[_0x271b76(0x5de)][_0x271b76(0x145)],_0xbf57c7=(_0x2b275c=_0x501505())!==null&&_0x2b275c!==void 0x0?_0x2b275c:{'left':0x0,'top':0x0,'width':_0x5141ee/_0x33bef5,'height':_0x4dde88/_0x118c63};_0xdd8192&&(_0xdd8192[_0x271b76(0x2e2)](Math[_0x271b76(0x1ea)](_0x1419c9,_0xd44172)),_0xdd8192[_0x271b76(0x157)]({'pageSize':{'width':_0xbf57c7[_0x271b76(0x52c)],'height':Infinity}}),_0xdd8192['updateDocumentRenderConfig']({'verticalAlign':_0x3de36c,'horizontalAlign':_0x2b01db,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x271b76(0x576)][_0x271b76(0x264)]}));_0x58b67d[_0x271b76(0x37d)]();const {actualHeight:_0x237f55}=_0x58b67d[_0x271b76(0x55c)](),_0x2c5344=_0xbf57c7[_0x271b76(0x340)];let _0x5854f2=_0x2c5344,_0x2b281d=0x0;if(_0x237f55<=_0x2c5344){if(_0x3de36c===_univerjs_core[_0x271b76(0x1b7)][_0x271b76(0x32e)])_0x2b281d=(_0x2c5344-_0x237f55)/0x2;else{if(_0x3de36c===_univerjs_core['VerticalAlign']['BOTTOM'])_0x2b281d=_0x2c5344-_0x237f55;}_0x5854f2=_0x2c5344,_0x442d9c({'editorHeight':_0xbf57c7[_0x271b76(0x340)]*_0x118c63,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x399ac8=0x0;if(_0x3de36c===_univerjs_core[_0x271b76(0x1b7)][_0x271b76(0x32e)])_0x399ac8=(_0x2c5344-_0x237f55)/0x2;else{if(_0x3de36c===_univerjs_core[_0x271b76(0x1b7)][_0x271b76(0x5b2)])_0x399ac8=_0x2c5344-_0x237f55;}_0x2b281d=0x0,_0x442d9c({'editorHeight':_0x237f55*_0x118c63,'marginTop':_0x399ac8*_0x118c63,'useAbsolutePosition':!![]}),_0x5854f2=_0x237f55;}_0xdd8192&&(_0xdd8192[_0x271b76(0x157)]({'pageSize':{'width':_0xbf57c7[_0x271b76(0x52c)],'height':_0x5854f2}}),_0xdd8192[_0x271b76(0x3f2)]({'t':_0x2b281d}),_0x58b67d[_0x271b76(0x37d)]());if(_0x314eb9){const _0x36e61c=_0xbf57c7[_0x271b76(0x52c)]*_0x33bef5,_0x2bd245=_0x5854f2*_0x118c63;_0x314eb9[_0x271b76(0x57a)][_0x271b76(0x57e)]({'width':_0x36e61c*_0x29bb69/_0x1419c9,'height':_0x2bd245*_0x29bb69/_0xd44172,'scaleX':_0x1419c9*_0x29bb69,'scaleY':_0xd44172*_0x29bb69});if(_0x314eb9[_0x271b76(0x43d)])_0x314eb9[_0x271b76(0x43d)]['resize'](_0x36e61c*_0x29bb69/_0x1419c9,_0x2bd245*_0x29bb69/_0xd44172);}},[_0x529544,_0x332564,_0x5df844,_0x42f4fd,_0x3305bf,_0x501505,_0x5141ee,_0x4dde88,_0x33bef5,_0x118c63,_0x442d9c]),_0x38a92e=(0x0,react[_0x5baa14(0x3b9)])((_0x298844=![])=>{_0x6fef98(),_0x41c642['current']=requestAnimationFrame(()=>{const _0x47d9fa=_0x3b97;_0xf29987();if(_0x298844)_0x1d0b6a(![]);_0x41c642[_0x47d9fa(0x17c)]=null,_0x15a57d[_0x47d9fa(0x17c)]=window[_0x47d9fa(0x311)](()=>{const _0x2497a1=_0x47d9fa;_0xf29987();if(_0x298844)_0x1d0b6a(![]);_0x15a57d[_0x2497a1(0x17c)]=null;},0x14);});},[_0xf29987,_0x6fef98,_0x1d0b6a]);(0x0,react['useEffect'])(()=>{const _0x2eae3d=_0x5baa14;if(!_0x529544||!_0x955551)return;const {shapeId:_0x3edf37,unitId:_0x2e77ec,subUnitId:_0x45701c}=_0x955551;if(_0x353857){var _0x229d8b,_0xe341e2,_0x54b118,_0x15274e;const _0x1a2a35=stripShapeTextDocumentLayout(_0x529544[_0x2eae3d(0x432)]()),_0x9be7c3=_0x3305bf(),_0x1d0d5f={'va':(_0x229d8b=_0x9be7c3===null||_0x9be7c3===void 0x0?void 0x0:_0x9be7c3[_0x2eae3d(0x1c0)])!==null&&_0x229d8b!==void 0x0?_0x229d8b:_univerjs_core[_0x2eae3d(0x1b7)][_0x2eae3d(0x550)],'ha':(_0xe341e2=_0x9be7c3===null||_0x9be7c3===void 0x0?void 0x0:_0x9be7c3['horizontalAlign'])!==null&&_0xe341e2!==void 0x0?_0xe341e2:_univerjs_core[_0x2eae3d(0x5de)][_0x2eae3d(0x145)],'doc':_0x1a2a35};_0x3c2ad9[_0x2eae3d(0x312)](UpdateShapeDataCommand['id'],{'unitId':_0x2e77ec,'subUnitId':_0x45701c,'shapeId':_0x3edf37,'shapeData':{'shapeText':{'isHorizontal':(_0x54b118=_0x9be7c3===null||_0x9be7c3===void 0x0?void 0x0:_0x9be7c3[_0x2eae3d(0x653)])!==null&&_0x54b118!==void 0x0?_0x54b118:!![],'dataModel':_0x1d0d5f}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x15274e=_0x9be7c3===null||_0x9be7c3===void 0x0?void 0x0:_0x9be7c3[_0x2eae3d(0x653)])!==null&&_0x15274e!==void 0x0?_0x15274e:!![],'dataModel':_0x1d177e[_0x2eae3d(0x17c)]}}}});return;}const _0x194b0a=_0x3305bf();if(_0x194b0a===null||_0x194b0a===void 0x0?void 0x0:_0x194b0a[_0x2eae3d(0x511)]){_0x1d177e[_0x2eae3d(0x17c)]={'va':_0x194b0a[_0x2eae3d(0x1c0)],'ha':_0x194b0a[_0x2eae3d(0x347)],'doc':_univerjs_core['Tools'][_0x2eae3d(0x278)](_0x194b0a[_0x2eae3d(0x511)])};const _0x46f7f7=prepareShapeTextDocumentData(_0x194b0a[_0x2eae3d(0x511)],{'isHorizontal':!![],'textRect':_0x194b0a['textRect'],'verticalAlign':_0x194b0a[_0x2eae3d(0x1c0)],'horizontalAlign':_0x194b0a[_0x2eae3d(0x347)]});return _0x529544[_0x2eae3d(0x2ce)](_0x46f7f7,null),()=>{const _0x36194c=_0x2eae3d;var _0x34afd6,_0x19f61d,_0x708d3a,_0x2d60c2;const _0x169c8b=stripShapeTextDocumentLayout(_0x529544['getDocumentData']()),_0x2b3623=_0x3305bf(),_0x24d505={'va':(_0x34afd6=_0x2b3623===null||_0x2b3623===void 0x0?void 0x0:_0x2b3623['verticalAlign'])!==null&&_0x34afd6!==void 0x0?_0x34afd6:_univerjs_core[_0x36194c(0x1b7)][_0x36194c(0x550)],'ha':(_0x19f61d=_0x2b3623===null||_0x2b3623===void 0x0?void 0x0:_0x2b3623[_0x36194c(0x347)])!==null&&_0x19f61d!==void 0x0?_0x19f61d:_univerjs_core[_0x36194c(0x5de)][_0x36194c(0x145)],'doc':_0x169c8b};_0x3c2ad9['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x2e77ec,'subUnitId':_0x45701c,'shapeId':_0x3edf37,'shapeData':{'shapeText':{'isHorizontal':(_0x708d3a=_0x2b3623===null||_0x2b3623===void 0x0?void 0x0:_0x2b3623[_0x36194c(0x653)])!==null&&_0x708d3a!==void 0x0?_0x708d3a:!![],'dataModel':_0x24d505}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x2d60c2=_0x2b3623===null||_0x2b3623===void 0x0?void 0x0:_0x2b3623[_0x36194c(0x653)])!==null&&_0x2d60c2!==void 0x0?_0x2d60c2:!![],'dataModel':_0x1d177e[_0x36194c(0x17c)]}}}});};}else _0x529544['setDocumentData'](_0x47708d,null);},[_0x529544,_0x955551,_0x353857]),(0x0,react[_0x5baa14(0x628)])(()=>{const _0xbe485f=_0x5baa14;if(!_0x529544||!_0x955551)return;return _0x1370a3['blur'](!![]),_0xf29987(),_0x8b2d38[_0xbe485f(0x17c)]=requestAnimationFrame(()=>{const _0x2c3643=_0xbe485f;_0x1370a3['focus'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x1d0b6a(),_0x38a92e(),_0x8b2d38[_0x2c3643(0x17c)]=null;}),()=>{const _0x3a48ea=_0xbe485f;_0x8b2d38[_0x3a48ea(0x17c)]!==null&&(cancelAnimationFrame(_0x8b2d38[_0x3a48ea(0x17c)]),_0x8b2d38[_0x3a48ea(0x17c)]=null),_0x6fef98(),_0x1370a3[_0x3a48ea(0x291)](!![]);};},[_0x529544,_0x955551,_0x1370a3,_0xf29987,_0x1d0b6a,_0x38a92e,_0x6fef98]),(0x0,react[_0x5baa14(0x628)])(()=>{const _0x40ce39=_0x5baa14;if(!_0x529544)return;const _0x425038=_0x3c2ad9[_0x40ce39(0x332)](_0x1b6c9a=>{const _0x31a215=_0x40ce39;if(_0x1b6c9a['id']===_univerjs_docs['RichTextEditingMutation']['id']){if(_0x1b6c9a['params'][_0x31a215(0x2db)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x955551){if(!_0x955551[_0x31a215(0x215)])_0x4ca157['setEditing']({..._0x955551,'visible':!![]});else _0xf29987();}}}if(_0x1b6c9a['id']===SetShapeTextVerticalAlignCommand['id'])_0x38a92e(!![]);});return()=>{_0x425038['dispose']();};},[_0x529544,_0xf29987,_0x955551,_0x38a92e,_0x4ca157]),(0x0,react[_0x5baa14(0x628)])(()=>{return _0xf29987(),_0x38a92e(),()=>{_0x6fef98();};},[_0xf29987,_0x38a92e,_0x6fef98]);const _0x34a46d=(0x0,react[_0x5baa14(0x4c4)])(()=>{const _0x110170=_0x5baa14;var _0x12e18b;const _0x48e529=(_0x12e18b=_0x501505())!==null&&_0x12e18b!==void 0x0?_0x12e18b:{'left':0x0,'top':0x0,'width':_0x5141ee/_0x33bef5,'height':_0x4dde88/_0x118c63},_0x1bf7c6=_0x48e529[_0x110170(0x2bb)]*_0x33bef5,_0xc53370=_0x48e529['top']*_0x118c63,_0x14069e=_0x48e529['width']*_0x33bef5;if(_0x29bc2f[_0x110170(0x241)])return{'top':_0xc53370+_0x29bc2f[_0x110170(0x1ba)],'left':_0x1bf7c6,'width':_0x14069e,'height':_0x29bc2f[_0x110170(0x474)]};return{'top':_0xc53370,'left':_0x1bf7c6,'width':_0x14069e,'height':_0x29bc2f[_0x110170(0x474)]};},[_0x29bc2f,_0x501505,_0x5141ee,_0x4dde88,_0x33bef5,_0x118c63]),_0xd6f7aa=(0x0,react[_0x5baa14(0x4c4)])(()=>{const _0x12d06e=_0x3305bf(),_0x545dfb=_0x12d06e===null||_0x12d06e===void 0x0?void 0x0:_0x12d06e['transform'];if(_0x545dfb)return _0x545dfb||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x3305bf]);return(0x0,react_jsx_runtime[_0x5baa14(0x3a2)])('div',{'ref':_0x4b50b2,'data-u-comp':_0x5baa14(0x51f),'className':_0x5baa14(0x29d),'style':{'transform':_0x5baa14(0x32c)+_0xd6f7aa[_0x5baa14(0x3af)]+_0x5baa14(0x2f0)+(_0xd6f7aa[_0x5baa14(0x505)]?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x5baa14(0x3a2)])(_0x5baa14(0x391),{'ref':_0x448726,'className':'univer-absolute','data-u-comp':_0x5baa14(0x3c4),'style':_0x34a46d,'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(_0x12990d,_0x509e13,_0x5ae4f4,_0x5d4343){const _0x4ecd1d=_0x120d79,{scaleX:_0x476dfe,scaleY:_0x1010eb}=_0x5ae4f4['getAncestorScale'](),{startColumn:_0x21cf7b,startRow:_0x130eca,xSplit:_0x9df666,ySplit:_0x180800}=_0x5d4343[_0x4ecd1d(0x376)][_0x4ecd1d(0x28c)](),_0x41ebc0=_0x5ae4f4['getViewport'](_univerjs_engine_render[_0x4ecd1d(0x24f)][_0x4ecd1d(0x69c)]),_0xd1a073=_0x5ae4f4[_0x4ecd1d(0x5b8)](_univerjs_engine_render[_0x4ecd1d(0x24f)][_0x4ecd1d(0x410)]),_0x483f05=_0x5ae4f4[_0x4ecd1d(0x5b8)](_univerjs_engine_render[_0x4ecd1d(0x24f)][_0x4ecd1d(0x5b9)]),_0x382d1d=_0x5ae4f4[_0x4ecd1d(0x5b8)](_univerjs_engine_render[_0x4ecd1d(0x24f)][_0x4ecd1d(0x46f)]),{rowHeaderWidth:_0x5d1e9a,columnHeaderHeight:_0x17874d}=_0x5d4343,_0x32c641=_0x5d4343[_0x4ecd1d(0x3a5)](_0x130eca)+_0x17874d,_0x105066=_0x5d4343[_0x4ecd1d(0x365)](_0x21cf7b)+_0x5d1e9a,_0x2cf3de=_0x5d4343['rowStartY'](_0x130eca-_0x180800)+_0x17874d,_0x12c75c=_0x5d4343[_0x4ecd1d(0x365)](_0x21cf7b-_0x9df666)+_0x5d1e9a,_0x627168=[],_0x690863=(_0x44103b,_0xc81b1d,_0x6ce6a1)=>{if(!_0x44103b)return null;const {viewportScrollX:_0x1feb4c,viewportScrollY:_0x4484c6}=_0x44103b;let _0x48e678,_0x1d472e;if(_0xc81b1d)_0x48e678=(_0x12990d-(_0x12c75c-_0x5d1e9a))*_0x476dfe;else _0x48e678=(_0x12990d-_0x1feb4c)*_0x476dfe;if(_0x6ce6a1)_0x1d472e=(_0x509e13-(_0x2cf3de-_0x17874d))*_0x1010eb;else _0x1d472e=(_0x509e13-_0x4484c6)*_0x1010eb;return{'domX':_0x48e678,'domY':_0x1d472e};},_0x41c6cf=_0x12990d<_0x105066&&_0x9df666>0x0,_0x2ded54=_0x509e13<_0x32c641&&_0x180800>0x0,_0x167a40=_0x12990d>=_0x105066||_0x9df666===0x0,_0x4e66bb=_0x509e13>=_0x32c641||_0x180800===0x0;if(_0x41c6cf&&_0x2ded54&&_0xd1a073){const _0x1b4d2b=_0x690863(_0xd1a073,!![],!![]);if(_0x1b4d2b)_0x627168[_0x4ecd1d(0x402)](_0x1b4d2b);}if(_0x2ded54&&_0x167a40&&_0x483f05){const _0x408c34=_0x690863(_0x483f05,![],!![]);if(_0x408c34)_0x627168['push'](_0x408c34);}if(_0x41c6cf&&_0x4e66bb&&_0x382d1d){const _0x4bfb16=_0x690863(_0x382d1d,!![],![]);if(_0x4bfb16)_0x627168[_0x4ecd1d(0x402)](_0x4bfb16);}if(_0x167a40&&_0x4e66bb&&_0x41ebc0){const _0x4cd139=_0x690863(_0x41ebc0,![],![]);if(_0x4cd139)_0x627168[_0x4ecd1d(0x402)](_0x4cd139);}if(_0x627168[_0x4ecd1d(0x620)]===0x0){var _0xcde891,_0x45bd33;return{'domX':(_0x12990d-((_0xcde891=_0x41ebc0===null||_0x41ebc0===void 0x0?void 0x0:_0x41ebc0[_0x4ecd1d(0x2af)])!==null&&_0xcde891!==void 0x0?_0xcde891:0x0))*_0x476dfe,'domY':(_0x509e13-((_0x45bd33=_0x41ebc0===null||_0x41ebc0===void 0x0?void 0x0:_0x41ebc0[_0x4ecd1d(0x5e5)])!==null&&_0x45bd33!==void 0x0?_0x45bd33:0x0))*_0x1010eb};}let _0x24f3d8=_0x627168[0x0][_0x4ecd1d(0x476)],_0x2fe717=_0x627168[0x0]['domY'];for(const _0x3a90cf of _0x627168){if(_0x3a90cf[_0x4ecd1d(0x476)]>_0x24f3d8)_0x24f3d8=_0x3a90cf[_0x4ecd1d(0x476)];if(_0x3a90cf['domY']>_0x2fe717)_0x2fe717=_0x3a90cf[_0x4ecd1d(0x41d)];}return{'domX':_0x24f3d8,'domY':_0x2fe717};}function calcShapePosition(_0x3ab137,_0x3de3fc,_0x207b08,_0xf5fa0e,_0x4d2f1c,_0x38128e,_0x42587e){const {scaleX:_0x2e3191,scaleY:_0x274852}=_0x38128e['getAncestorScale'](),{domX:_0x440880,domY:_0x920525}=calcBestDOMPositionForFreezeZones(_0x3ab137,_0x3de3fc,_0x38128e,_0x42587e);return{'left':_0x440880,'top':_0x920525,'width':_0x207b08*_0x2e3191,'height':_0xf5fa0e*_0x274852,'angle':_0x4d2f1c,'scaleX':_0x2e3191,'scaleY':_0x274852};}function useShapePosition(_0x5d182c){const _0x26d5a7=_0x120d79,{editingParams:_0x29de74,scene:_0x384047,skeleton:_0x5bf1c5,getShapeTransform:_0x257b58}=_0x5d182c,[_0x3a42be,_0x40ce37]=(0x0,react[_0x26d5a7(0x1e4)])(DEFAULT_HIDDEN_POSITION),_0x179c20=(0x0,react[_0x26d5a7(0x151)])(_0x3a42be);_0x179c20[_0x26d5a7(0x17c)]=_0x3a42be;const _0x2c1263=(0x0,react[_0x26d5a7(0x3b9)])(()=>{const _0x45958f=_0x26d5a7;if(!_0x29de74||!_0x384047||!_0x5bf1c5){if(_0x179c20[_0x45958f(0x17c)]!==DEFAULT_HIDDEN_POSITION)_0x40ce37(DEFAULT_HIDDEN_POSITION);return;}const _0xe6a379=_0x257b58();if(!_0xe6a379){if(_0x179c20[_0x45958f(0x17c)]!==DEFAULT_HIDDEN_POSITION)_0x40ce37(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x124e69,top:_0x5e03ed,width:_0x1f0476,height:_0x2ff783,angle:_0x262230}=_0xe6a379;if(!_0x29de74[_0x45958f(0x215)]){const {scaleX:_0x23217a,scaleY:_0x536670}=_0x384047[_0x45958f(0x20b)]();_0x40ce37({'left':-0x270f,'top':-0x270f,'width':_0x1f0476*_0x23217a,'height':_0x2ff783*_0x536670,'angle':0x0,'scaleX':_0x23217a,'scaleY':_0x536670});return;}_0x40ce37(calcShapePosition(_0x124e69,_0x5e03ed,_0x1f0476,_0x2ff783,_0x262230,_0x384047,_0x5bf1c5));},[_0x29de74,_0x384047,_0x5bf1c5,_0x257b58]);return(0x0,react['useEffect'])(()=>{_0x2c1263();},[_0x29de74,_0x2c1263]),{'position':_0x3a42be,'updatePosition':_0x2c1263};}const ShapePositionWrapper=(0x0,react[_0x120d79(0x18f)])(_0x467434=>{const _0x1a9389=_0x120d79,{children:_0x3b4828,onPositionUpdate:_0x423851}=_0x467434,_0x4110f4=(0x0,react[_0x1a9389(0x151)])(null),_0x1058e2=(0x0,_univerjs_ui[_0x1a9389(0x258)])(ShapeTextEditingService),_0x3de364=(0x0,_univerjs_ui[_0x1a9389(0x258)])(_univerjs_engine_render[_0x1a9389(0x2a6)]),_0x51d163=(0x0,_univerjs_ui[_0x1a9389(0x458)])(_0x1058e2['editingParams$']),_0x5365d4=(0x0,react['useMemo'])(()=>{const _0x27d18c=_0x1a9389;if(!_0x51d163)return null;return _0x3de364[_0x27d18c(0x333)](_0x51d163['unitId']);},[_0x51d163,_0x3de364]),_0x55ae66=(0x0,react[_0x1a9389(0x4c4)])(()=>{const _0x2c0e09=_0x1a9389;var _0x34c1e7;return(_0x34c1e7=_0x5365d4===null||_0x5365d4===void 0x0?void 0x0:_0x5365d4[_0x2c0e09(0x57a)])!==null&&_0x34c1e7!==void 0x0?_0x34c1e7:null;},[_0x5365d4]),{position:_0x4587d6,updatePosition:_0x424def}=useShapePosition({'editingParams':_0x51d163,'scene':_0x55ae66,'skeleton':(0x0,react[_0x1a9389(0x4c4)])(()=>{const _0x35bcdb=_0x1a9389;var _0x2a34f2,_0x2d1b1b;if(!_0x51d163||!_0x5365d4)return null;return(_0x2a34f2=(_0x2d1b1b=_0x5365d4['with'](_univerjs_sheets_ui[_0x35bcdb(0x30a)])['getSkeletonParam'](_0x51d163[_0x35bcdb(0x363)]))===null||_0x2d1b1b===void 0x0?void 0x0:_0x2d1b1b['skeleton'])!==null&&_0x2a34f2!==void 0x0?_0x2a34f2:null;},[_0x51d163,_0x5365d4]),'getShapeTransform':(0x0,react[_0x1a9389(0x3b9)])(()=>{const _0x5984e1=_0x1a9389;if(!_0x51d163||!_0x55ae66)return null;const _0x4b5c99=_0x51d163[_0x5984e1(0x48f)],_0x2e0068=_0x55ae66[_0x5984e1(0x163)](_0x4b5c99);if(_0x2e0068 instanceof DrawingShape)return{'left':_0x2e0068[_0x5984e1(0x2bb)],'top':_0x2e0068[_0x5984e1(0x21b)],'width':_0x2e0068[_0x5984e1(0x52c)],'height':_0x2e0068['height'],'angle':_0x2e0068[_0x5984e1(0x3af)]};return null;},[_0x51d163,_0x55ae66])}),_0x503bab=(0x0,react[_0x1a9389(0x3b9)])(()=>{const _0x494425=_0x1a9389,_0x3b99f7=_0x4110f4['current'];if(!_0x3b99f7)return;_0x3b99f7[_0x494425(0x277)][_0x494425(0x2bb)]=_0x4587d6[_0x494425(0x2bb)]+'px',_0x3b99f7[_0x494425(0x277)][_0x494425(0x21b)]=_0x4587d6['top']+'px',_0x3b99f7[_0x494425(0x277)][_0x494425(0x52c)]=_0x4587d6[_0x494425(0x52c)]+'px',_0x3b99f7['style']['height']=_0x4587d6[_0x494425(0x340)]+'px';},[_0x4587d6]);return(0x0,react[_0x1a9389(0x628)])(()=>{const _0x380b69=_0x1a9389;_0x503bab(),_0x423851===null||_0x423851===void 0x0||_0x423851({'width':_0x4587d6[_0x380b69(0x52c)],'height':_0x4587d6[_0x380b69(0x340)],'scaleX':_0x4587d6['scaleX'],'scaleY':_0x4587d6[_0x380b69(0x344)]});},[_0x4587d6,_0x503bab,_0x423851]),(0x0,react[_0x1a9389(0x628)])(()=>{const _0x424ccd=_0x1a9389;if(!_0x55ae66)return;const _0x1868bf=_0x55ae66['getViewport'](_univerjs_engine_render[_0x424ccd(0x24f)][_0x424ccd(0x69c)]);if(!_0x1868bf)return;const _0x513fc2=_0x1868bf[_0x424ccd(0x5ea)][_0x424ccd(0x411)](()=>{_0x424def();});return()=>{const _0x1bcb84=_0x424ccd;_0x513fc2[_0x1bcb84(0x13b)]();};},[_0x55ae66,_0x424def]),(0x0,react['useEffect'])(()=>{const _0x3c927b=_0x1a9389;if(!_0x51d163||!_0x55ae66)return;const _0x4f5447=_0x51d163[_0x3c927b(0x48f)],_0x339fd5=_0x55ae66[_0x3c927b(0x163)](_0x4f5447);if(_0x339fd5 instanceof DrawingShape){const _0x32f8de=_0x339fd5[_0x3c927b(0x1b0)][_0x3c927b(0x411)](()=>{_0x424def();});return()=>{const _0x4fc742=_0x3c927b;_0x32f8de[_0x4fc742(0x13b)]();};}},[_0x51d163,_0x55ae66,_0x424def]),(0x0,react_jsx_runtime['jsx'])('div',{'ref':_0x4110f4,'data-u-comp':_0x1a9389(0x227),'className':_0x1a9389(0x422),'style':(0x0,react[_0x1a9389(0x4c4)])(()=>({'left':_0x4587d6[_0x1a9389(0x2bb)],'top':_0x4587d6[_0x1a9389(0x21b)],'width':_0x4587d6['width'],'height':_0x4587d6[_0x1a9389(0x340)],'pointerEvents':(_0x51d163===null||_0x51d163===void 0x0?void 0x0:_0x51d163[_0x1a9389(0x215)])?_0x1a9389(0x568):_0x1a9389(0x394)}),[_0x4587d6,_0x51d163===null||_0x51d163===void 0x0?void 0x0:_0x51d163[_0x1a9389(0x215)]]),'children':_0x3b4828});});ShapePositionWrapper[_0x120d79(0x228)]=_0x120d79(0x2c8);const ShapeTextEditorContainer=(0x0,react[_0x120d79(0x18f)])(()=>{const _0x1fb5fb=_0x120d79,_0x45fd23=(0x0,_univerjs_ui[_0x1fb5fb(0x458)])((0x0,_univerjs_ui[_0x1fb5fb(0x258)])(ShapeTextEditingService)[_0x1fb5fb(0x362)]),[_0xd29d40,_0x2929f7]=(0x0,react[_0x1fb5fb(0x1e4)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x315bc3=(0x0,react[_0x1fb5fb(0x3b9)])(_0x16944b=>{const _0x34007a=_0x1fb5fb;_0x2929f7({'width':_0x16944b[_0x34007a(0x52c)],'height':_0x16944b['height'],'scaleX':_0x16944b[_0x34007a(0x28e)],'scaleY':_0x16944b[_0x34007a(0x344)]});},[]);if(!(_0x45fd23===null||_0x45fd23===void 0x0?void 0x0:_0x45fd23[_0x1fb5fb(0x215)]))return null;return(0x0,react_jsx_runtime[_0x1fb5fb(0x3a2)])(ShapePositionWrapper,{'onPositionUpdate':_0x315bc3,'children':(0x0,react_jsx_runtime['jsx'])(ShapeEditor,{'containerWidth':_0xd29d40[_0x1fb5fb(0x52c)],'containerHeight':_0xd29d40[_0x1fb5fb(0x340)],'scaleX':_0xd29d40['scaleX'],'scaleY':_0xd29d40['scaleY']})});});ShapeTextEditorContainer['displayName']='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0x120d79(0x176)]{constructor(_0x4231b8=defaultPluginConfig,_0x20fd9f,_0x5126ff,_0x40acf4,_0x90b38){const _0x3f3132=_0x120d79;super(),this[_0x3f3132(0x140)]=_0x4231b8,this[_0x3f3132(0x496)]=_0x20fd9f,this['_commandService']=_0x5126ff,this[_0x3f3132(0x485)]=_0x40acf4,this[_0x3f3132(0x38c)]=_0x90b38;const {..._0x2d3434}=(0x0,_univerjs_core[_0x3f3132(0x221)])({},defaultPluginConfig,this[_0x3f3132(0x140)]);this[_0x3f3132(0x485)]['setConfig'](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x2d3434),this['_initCommands']();}[_0x120d79(0x606)](){const _0x1d1410=_0x120d79;(0x0,_univerjs_core[_0x1d1410(0x4c0)])(this[_0x1d1410(0x496)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x120d79(0x3f5)](){const _0xfa222d=_0x120d79;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0xfa222d(0x19a)](_0x16089c=>this['_injector'][_0xfa222d(0x5ff)](_0x16089c)),(0x0,_univerjs_core[_0xfa222d(0x4c0)])(this[_0xfa222d(0x496)],[[SheetShapeClipboardController]]),this['_renderManagerService'][_0xfa222d(0x56a)](_univerjs_core[_0xfa222d(0x335)][_0xfa222d(0x327)],[SheetBasicShapeConnectionPointController]),this[_0xfa222d(0x38c)][_0xfa222d(0x56a)](_univerjs_core[_0xfa222d(0x335)][_0xfa222d(0x327)],[SheetShapeAdjustController]),this['_renderManagerService'][_0xfa222d(0x56a)](_univerjs_core['UniverInstanceType'][_0xfa222d(0x327)],[ImageClipAdjustController]),this['_renderManagerService']['registerRenderModule'](_univerjs_core[_0xfa222d(0x335)][_0xfa222d(0x327)],[SheetShapeConnectorController]),this[_0xfa222d(0x38c)][_0xfa222d(0x56a)](_univerjs_core['UniverInstanceType'][_0xfa222d(0x327)],[ShapeTextEditingRenderController]);}[_0x120d79(0x5e7)](){const _0x4d3b5e=_0x120d79,_0x39206f=this[_0x4d3b5e(0x496)];_0x39206f['get'](_univerjs_ui[_0x4d3b5e(0x47a)])[_0x4d3b5e(0x191)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x4d3b5e(0x19a)](_0x2c3c00=>_0x39206f['add'](_0x2c3c00)),(0x0,_univerjs_core[_0x4d3b5e(0x4c0)])(this[_0x4d3b5e(0x496)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}['_initCommands'](){const _0x567ad3=_0x120d79;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x567ad3(0x19a)](_0x5ce08c=>this[_0x567ad3(0x3cd)](this[_0x567ad3(0x23b)][_0x567ad3(0x35a)](_0x5ce08c)));}};_defineProperty(UniverSheetsShapeUIPlugin,'type',_univerjs_core[_0x120d79(0x335)]['UNIVER_SHEET']),_defineProperty(UniverSheetsShapeUIPlugin,_0x120d79(0x1a0),_0x120d79(0x3a7)),_defineProperty(UniverSheetsShapeUIPlugin,'packageName',name),_defineProperty(UniverSheetsShapeUIPlugin,_0x120d79(0x696),version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x120d79(0x1da)])(_univerjs_sheets_drawing_ui['UniverSheetsDrawingUIPlugin'],_univerjs_pro_sheets_shape[_0x120d79(0x3fc)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x120d79(0x1a2)])(_univerjs_core[_0x120d79(0x412)])),__decorateParam(0x2,_univerjs_core[_0x120d79(0x3b2)]),__decorateParam(0x3,_univerjs_core[_0x120d79(0x276)]),__decorateParam(0x4,_univerjs_engine_render['IRenderManagerService'])],UniverSheetsShapeUIPlugin),exports[_0x120d79(0x4c2)]=SetShapeTextFontSizeCommand,exports['SetShapeTextFontSizeDecreaseCommand']=SetShapeTextFontSizeDecreaseCommand,exports[_0x120d79(0x1b9)]=SetShapeTextFontSizeIncreaseCommand,exports[_0x120d79(0x257)]=SetShapeTextHorizontalAlignCommand,exports[_0x120d79(0x27e)]=SetShapeTextVerticalAlignCommand,exports[_0x120d79(0x214)]=ShapeDocAlignCommand,Object['defineProperty'](exports,_0x120d79(0x40a),{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object['defineProperty'](exports,_0x120d79(0x3e0),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x120d79(0x282)]=UpdateShapeDataCommand;
|
|
1
|
+
const _0x3e9a34=_0x47fe;(function(_0x450fd6,_0x464c71){const _0x284e9e=_0x47fe,_0x3c8e28=_0x450fd6();while(!![]){try{const _0x3553e8=-parseInt(_0x284e9e(0x382))/0x1+-parseInt(_0x284e9e(0x337))/0x2*(parseInt(_0x284e9e(0x2d7))/0x3)+parseInt(_0x284e9e(0x2b9))/0x4*(-parseInt(_0x284e9e(0x527))/0x5)+-parseInt(_0x284e9e(0x3ec))/0x6*(parseInt(_0x284e9e(0x177))/0x7)+-parseInt(_0x284e9e(0x3bc))/0x8+-parseInt(_0x284e9e(0x253))/0x9*(-parseInt(_0x284e9e(0x523))/0xa)+parseInt(_0x284e9e(0x137))/0xb;if(_0x3553e8===_0x464c71)break;else _0x3c8e28['push'](_0x3c8e28['shift']());}catch(_0x535ed8){_0x3c8e28['push'](_0x3c8e28['shift']());}}}(_0x501b,0x29676),Object[_0x3e9a34(0x63c)](exports,Symbol[_0x3e9a34(0x2d2)],{'value':_0x3e9a34(0x3a5)}));var __create=Object[_0x3e9a34(0x1c2)],__defProp=Object[_0x3e9a34(0x63c)],__getOwnPropDesc=Object[_0x3e9a34(0x34b)],__getOwnPropNames=Object['getOwnPropertyNames'],__getProtoOf=Object[_0x3e9a34(0x350)],__hasOwnProp=Object['prototype'][_0x3e9a34(0x28b)],__copyProps=(_0xd8a17e,_0x23f9b8,_0x438d55,_0x19e471)=>{const _0x4b01d5=_0x3e9a34;if(_0x23f9b8&&typeof _0x23f9b8==='object'||typeof _0x23f9b8===_0x4b01d5(0x236))for(var _0x17dd5c=__getOwnPropNames(_0x23f9b8),_0x2f5d5c=0x0,_0x3b6c3d=_0x17dd5c[_0x4b01d5(0x440)],_0x2c741a;_0x2f5d5c<_0x3b6c3d;_0x2f5d5c++){_0x2c741a=_0x17dd5c[_0x2f5d5c],!__hasOwnProp[_0x4b01d5(0x614)](_0xd8a17e,_0x2c741a)&&_0x2c741a!==_0x438d55&&__defProp(_0xd8a17e,_0x2c741a,{'get':(_0x1302a0=>_0x23f9b8[_0x1302a0])[_0x4b01d5(0x3b8)](null,_0x2c741a),'enumerable':!(_0x19e471=__getOwnPropDesc(_0x23f9b8,_0x2c741a))||_0x19e471[_0x4b01d5(0x4eb)]});}return _0xd8a17e;},__toESM=(_0x64e394,_0x40886e,_0x14b6d4)=>(_0x14b6d4=_0x64e394!=null?__create(__getProtoOf(_0x64e394)):{},__copyProps(_0x40886e||!_0x64e394||!_0x64e394[_0x3e9a34(0x254)]?__defProp(_0x14b6d4,_0x3e9a34(0x35a),{'value':_0x64e394,'enumerable':!![]}):_0x14b6d4,_0x64e394));let _univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),rxjs=require('rxjs'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_design=require('@univerjs/design'),react=require('react');react=__toESM(react);let _univerjs_drawing_ui=require('@univerjs/drawing-ui'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_sheets_drawing_ui=require('@univerjs/sheets-drawing-ui'),_univerjs_docs=require('@univerjs/docs');function _typeof(_0x4dfcd7){'@babel/helpers - typeof';const _0x4c8d82=_0x3e9a34;return _typeof=_0x4c8d82(0x236)==typeof Symbol&&_0x4c8d82(0x637)==typeof Symbol[_0x4c8d82(0x63e)]?function(_0x2e1bcd){return typeof _0x2e1bcd;}:function(_0x81498c){const _0x22cef5=_0x4c8d82;return _0x81498c&&_0x22cef5(0x236)==typeof Symbol&&_0x81498c[_0x22cef5(0x3a4)]===Symbol&&_0x81498c!==Symbol[_0x22cef5(0x1f0)]?_0x22cef5(0x637):typeof _0x81498c;},_typeof(_0x4dfcd7);}function toPrimitive(_0x35f903,_0x5c2065){const _0x4a747d=_0x3e9a34;if(_0x4a747d(0x370)!=_typeof(_0x35f903)||!_0x35f903)return _0x35f903;var _0x2f2d22=_0x35f903[Symbol[_0x4a747d(0x3fe)]];if(void 0x0!==_0x2f2d22){var _0x1c8e2=_0x2f2d22['call'](_0x35f903,_0x5c2065||_0x4a747d(0x35a));if(_0x4a747d(0x370)!=_typeof(_0x1c8e2))return _0x1c8e2;throw new TypeError(_0x4a747d(0x5d7));}return(_0x4a747d(0x1f8)===_0x5c2065?String:Number)(_0x35f903);}function toPropertyKey(_0x3856a3){const _0x57bbd9=_0x3e9a34;var _0x49cfae=toPrimitive(_0x3856a3,_0x57bbd9(0x1f8));return'symbol'==_typeof(_0x49cfae)?_0x49cfae:_0x49cfae+'';}function _defineProperty(_0x48ddba,_0x347980,_0x488ac4){return(_0x347980=toPropertyKey(_0x347980))in _0x48ddba?Object['defineProperty'](_0x48ddba,_0x347980,{'value':_0x488ac4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48ddba[_0x347980]=_0x488ac4,_0x48ddba;}var ShapeTextEditingService=class extends _univerjs_core['Disposable']{constructor(..._0x1da09c){const _0x122609=_0x3e9a34;super(..._0x1da09c),_defineProperty(this,'_editingParams$',new rxjs[(_0x122609(0x39a))](null)),_defineProperty(this,_0x122609(0x186),this[_0x122609(0x4be)][_0x122609(0x4e1)]()),_defineProperty(this,_0x122609(0x510),new rxjs['BehaviorSubject'](![])),_defineProperty(this,'onSavingEditorData$',this[_0x122609(0x510)][_0x122609(0x4e1)]());}[_0x3e9a34(0x199)](){const _0x4cd997=_0x3e9a34;this[_0x4cd997(0x4be)][_0x4cd997(0x5c7)](null),this['_editingParams$'][_0x4cd997(0x332)](),this['_onSavingEditorData$'][_0x4cd997(0x5c7)](![]),this[_0x4cd997(0x510)][_0x4cd997(0x332)](),super[_0x4cd997(0x199)]();}['setEditing'](_0x4a95b9){const _0x36750f=_0x3e9a34;this['_editingParams$'][_0x36750f(0x5c7)](_0x4a95b9);if(_0x4a95b9===null||_0x4a95b9===void 0x0)this[_0x36750f(0x510)][_0x36750f(0x5c7)](![]);}[_0x3e9a34(0x368)](_0x172ff7){const _0x4bcefa=_0x3e9a34;this[_0x4bcefa(0x510)]['next'](_0x172ff7);}['getEditing'](){const _0x5b0546=_0x3e9a34;return this[_0x5b0546(0x4be)][_0x5b0546(0x42d)]();}};function getShapeDataDiff(_0x4ea21a,_0x48eeb5){const _0x57a7bf=_0x3e9a34,_0x455fe1={};for(const _0x5a3ab5 of Object['keys'](_0x48eeb5)){const _0xad2658=_0x48eeb5[_0x5a3ab5],_0x39d6c3=_0x4ea21a[_0x5a3ab5];if(_0xad2658===void 0x0)continue;if(_0x39d6c3===void 0x0){_0x455fe1[_0x5a3ab5]=void 0x0;continue;}if(typeof _0xad2658===_0x57a7bf(0x370)&&_0xad2658!==null&&!Array[_0x57a7bf(0x611)](_0xad2658)&&typeof _0x39d6c3===_0x57a7bf(0x370)&&_0x39d6c3!==null&&!Array['isArray'](_0x39d6c3))_0x455fe1[_0x5a3ab5]=getShapeDataDiff(_0x39d6c3,_0xad2658);else _0x455fe1[_0x5a3ab5]=_0x39d6c3;}return _0x455fe1;}const UpdateShapeDataCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)]['COMMAND'],'id':_0x3e9a34(0x330),'handler':(_0x4738a2,_0x2ea27f)=>{const _0x38a020=_0x3e9a34,_0x4e1e13=_0x4738a2[_0x38a020(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService']),{unitId:_0x614b64,subUnitId:_0x5993a2,shapeType:_0x405f13,shapeId:_0x503a8d,shapeData:_0x27bffc,oldShapeJSON:_0x4d349b}=_0x2ea27f;if(!_0x4e1e13[_0x38a020(0x533)](_0x614b64,_0x5993a2,_0x503a8d))return![];const _0x283252=_0x4738a2['get'](_univerjs_core[_0x38a020(0x3f7)]),_0x481536=_0x4738a2[_0x38a020(0x2d9)](_univerjs_core[_0x38a020(0x250)]),{oldShapeType:_0x59efd0,oldShapeData:_0x42d4e3={}}=_0x4d349b,_0x240f5d=getShapeDataDiff(_0x42d4e3,_0x27bffc||{}),_0xaa0a4d={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x614b64,'subUnitId':_0x5993a2,'shapeId':_0x503a8d,'shapeType':_0x405f13,'shapeData':_0x27bffc}},_0x144f58={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x614b64,'subUnitId':_0x5993a2,'shapeId':_0x503a8d,'shapeType':_0x59efd0,'shapeData':_0x240f5d}};if(_0x283252[_0x38a020(0x623)](_0xaa0a4d['id'],_0xaa0a4d[_0x38a020(0xee)]))return _0x481536[_0x38a020(0xf8)]({'unitID':_0x614b64,'undoMutations':[_0x144f58],'redoMutations':[_0xaa0a4d]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x4e5),'handler':async(_0x429c55,_0x17b783)=>{const _0x4c2b16=_0x3e9a34;var _0x4c6147;if(!(0x0,_univerjs_sheets[_0x4c2b16(0x249)])(_0x429c55[_0x4c2b16(0x2d9)](_univerjs_core['IUniverInstanceService'])))return![];const _0x4a2482=_0x429c55['get'](_univerjs_sheets_drawing['ISheetDrawingService'])['getFocusDrawings']()[_0x4c2b16(0x50f)](_0x55c016=>_0x55c016[_0x4c2b16(0x5ec)]===_univerjs_core[_0x4c2b16(0x506)][_0x4c2b16(0x3fc)]);if(_0x4a2482[_0x4c2b16(0x440)]!==0x1)return![];const _0x47db20=_0x429c55[_0x4c2b16(0x2d9)](ShapeTextEditingService)[_0x4c2b16(0x512)](),_0x299d29=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x4a8)])||_0x4a2482[0x0][_0x4c2b16(0x4a8)],_0x1390ba=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x5d6)])||_0x4a2482[0x0][_0x4c2b16(0x5d6)],_0x120dae=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x4ac)])||_0x4a2482[0x0]['drawingId'],_0x398a58=_0x429c55[_0x4c2b16(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x4c2b16(0x533)](_0x299d29,_0x1390ba,_0x120dae);if(!_0x398a58)return![];const _0x329684=_0x398a58['getShapeTextData']();if(!_0x329684||!('dataModel'in _0x329684))return![];const _0x5ab247=_0x429c55[_0x4c2b16(0x2d9)](_univerjs_core[_0x4c2b16(0x3f7)]),{value:_0x198a39}=_0x17b783,_0x1310b3=_0x398a58[_0x4c2b16(0x478)](),_0x34da01=_0x398a58[_0x4c2b16(0x470)](),_0x166543={..._0x329684[_0x4c2b16(0xe0)],'ha':_0x198a39};return await _0x5ab247[_0x4c2b16(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x299d29,'subUnitId':_0x1390ba,'shapeId':_0x120dae,'shapeType':_0x1310b3,'shapeData':{'shapeText':{'isHorizontal':(_0x4c6147=_0x329684[_0x4c2b16(0x1ac)])!==null&&_0x4c6147!==void 0x0?_0x4c6147:!![],'dataModel':_0x166543}},'oldShapeJSON':{'oldShapeType':_0x1310b3,'oldShapeData':_0x34da01}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x1b2),'handler':async(_0x5ba25a,_0x147665)=>{const _0x20de7e=_0x3e9a34;var _0x272f47;if(!_0x147665)return![];const {value:_0x5a520a}=_0x147665,_0x1ada88=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_core[_0x20de7e(0x3f7)]),_0x2c1f2f=_0x5ba25a[_0x20de7e(0x2d9)](ShapeTextEditingService),_0x19816f=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_pro_sheets_shape[_0x20de7e(0x3a1)]),_0x13f0d3=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_engine_render[_0x20de7e(0x35e)]),_0x4f7155=_0x2c1f2f[_0x20de7e(0x512)]();if(!_0x4f7155)return![];const {unitId:_0x2ee15c,subUnitId:_0x1d84b7,shapeId:_0x21680e}=_0x4f7155,_0x2df372=_0x19816f[_0x20de7e(0x533)](_0x2ee15c,_0x1d84b7,_0x21680e);if(!_0x2df372)return![];const _0x581e4b=_0x2df372[_0x20de7e(0x459)]();if(!_0x581e4b||!(_0x20de7e(0xe0)in _0x581e4b))return![];const _0x292241=_0x581e4b[_0x20de7e(0xe0)];if(!_0x292241)return![];const _0x2e88bf={..._0x292241,'fs':_0x5a520a},_0x5a6696=await _0x1ada88[_0x20de7e(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x2ee15c,'subUnitId':_0x1d84b7,'shapeId':_0x21680e,'shapeData':{'shapeText':{'isHorizontal':(_0x272f47=_0x581e4b[_0x20de7e(0x1ac)])!==null&&_0x272f47!==void 0x0?_0x272f47:!![],'dataModel':_0x2e88bf}}});if(_0x5a6696){const _0x152ec2=_0x13f0d3[_0x20de7e(0x17d)](_0x2ee15c);if(_0x152ec2===null||_0x152ec2===void 0x0?void 0x0:_0x152ec2[_0x20de7e(0x2a4)]){const _0x3b3561=(0x0,_univerjs_drawing[_0x20de7e(0x171)])({'unitId':_0x2ee15c,'subUnitId':_0x1d84b7,'drawingId':_0x21680e}),_0x4aba09=_0x152ec2[_0x20de7e(0x2a4)][_0x20de7e(0x21c)](_0x3b3561);if(_0x4aba09)_0x4aba09[_0x20de7e(0x309)](!![]);}}return _0x5a6696;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0xf3),'handler':async _0xc29517=>{const _0x1aa52f=_0x3e9a34;var _0x474e5a;const _0x38842b=_0xc29517['get'](ShapeTextEditingService),_0x590de7=_0xc29517[_0x1aa52f(0x2d9)](_univerjs_pro_sheets_shape[_0x1aa52f(0x3a1)]),_0x182f95=_0xc29517['get'](_univerjs_core[_0x1aa52f(0x3f7)]),_0x4b1755=_0x38842b[_0x1aa52f(0x512)]();if(!_0x4b1755)return![];const {unitId:_0x53d0a4,subUnitId:_0xd5ffd6,shapeId:_0x51fdf7}=_0x4b1755,_0x52b330=_0x590de7['getShapeModel'](_0x53d0a4,_0xd5ffd6,_0x51fdf7);if(!_0x52b330)return![];const _0x23fa3d=_0x52b330[_0x1aa52f(0x459)]();if(!_0x23fa3d||!('dataModel'in _0x23fa3d))return![];const _0x439b5c=_0x23fa3d[_0x1aa52f(0xe0)],_0x32876d=(_0x474e5a=_0x439b5c===null||_0x439b5c===void 0x0?void 0x0:_0x439b5c['fs'])!==null&&_0x474e5a!==void 0x0?_0x474e5a:0xe,_0x55d84e=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x3f4355=_0x32876d;const _0x328d14=_0x55d84e[_0x1aa52f(0x21f)](_0x32876d);if(_0x328d14!==-0x1&&_0x328d14<_0x55d84e[_0x1aa52f(0x440)]-0x1)_0x3f4355=_0x55d84e[_0x328d14+0x1];else{if(_0x328d14===-0x1)_0x3f4355=Math[_0x1aa52f(0x252)](_0x32876d)+0x1;}return _0x182f95[_0x1aa52f(0x591)](SetShapeTextFontSizeCommand['id'],{'value':_0x3f4355});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x24d),'handler':async _0x5a2b72=>{const _0x56ed9b=_0x3e9a34;var _0x40788f;const _0x51b48d=_0x5a2b72[_0x56ed9b(0x2d9)](ShapeTextEditingService),_0x620911=_0x5a2b72['get'](_univerjs_pro_sheets_shape[_0x56ed9b(0x3a1)]),_0x103e9d=_0x5a2b72[_0x56ed9b(0x2d9)](_univerjs_core[_0x56ed9b(0x3f7)]),_0x19b4aa=_0x51b48d[_0x56ed9b(0x512)]();if(!_0x19b4aa)return![];const {unitId:_0x1090b3,subUnitId:_0x162126,shapeId:_0x19c674}=_0x19b4aa,_0x59036b=_0x620911[_0x56ed9b(0x533)](_0x1090b3,_0x162126,_0x19c674);if(!_0x59036b)return![];const _0x2c9eea=_0x59036b[_0x56ed9b(0x459)]();if(!_0x2c9eea||!(_0x56ed9b(0xe0)in _0x2c9eea))return![];const _0x3c8f42=_0x2c9eea[_0x56ed9b(0xe0)],_0x4614d1=(_0x40788f=_0x3c8f42===null||_0x3c8f42===void 0x0?void 0x0:_0x3c8f42['fs'])!==null&&_0x40788f!==void 0x0?_0x40788f:0xe,_0x35ba47=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0xdd93f1=_0x4614d1;const _0x33f6b1=_0x35ba47['indexOf'](_0x4614d1);if(_0x33f6b1!==-0x1&&_0x33f6b1>0x0)_0xdd93f1=_0x35ba47[_0x33f6b1-0x1];else{if(_0x33f6b1===-0x1)_0xdd93f1=Math[_0x56ed9b(0x252)](_0x4614d1)-0x1;}if(_0xdd93f1<0x1)_0xdd93f1=0x1;return _0x103e9d[_0x56ed9b(0x591)](SetShapeTextFontSizeCommand['id'],{'value':_0xdd93f1});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':'sheet.command.set-shape-text-vertical-align','handler':async(_0x1d3b23,_0x3cd399)=>{const _0x3eb037=_0x3e9a34;var _0x2e9391;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_core[_0x3eb037(0x53f)])))return![];const _0x484e5f=_0x1d3b23['get'](_univerjs_sheets_drawing[_0x3eb037(0x275)])[_0x3eb037(0x4a6)]()[_0x3eb037(0x50f)](_0x4f3bbc=>_0x4f3bbc[_0x3eb037(0x5ec)]===_univerjs_core[_0x3eb037(0x506)][_0x3eb037(0x3fc)]);if(_0x484e5f[_0x3eb037(0x440)]!==0x1)return![];const _0x3908b4=_0x1d3b23[_0x3eb037(0x2d9)](ShapeTextEditingService)['getEditing'](),_0x5292ff=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4[_0x3eb037(0x4a8)])||_0x484e5f[0x0][_0x3eb037(0x4a8)],_0x545daa=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4[_0x3eb037(0x5d6)])||_0x484e5f[0x0][_0x3eb037(0x5d6)],_0xb84e8a=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4['shapeId'])||_0x484e5f[0x0][_0x3eb037(0x4c5)],_0x287ad8=_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x3eb037(0x533)](_0x5292ff,_0x545daa,_0xb84e8a);if(!_0x287ad8)return![];const _0x275329=_0x287ad8[_0x3eb037(0x459)]();if(!_0x275329||!('dataModel'in _0x275329))return![];const _0x133bd4=_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_core['ICommandService']),{value:_0xdce6de}=_0x3cd399,_0x48fa7a=_0x287ad8[_0x3eb037(0x478)](),_0x2d24f0=_0x287ad8[_0x3eb037(0x470)](),_0xe22ea6={..._0x275329['dataModel'],'va':_0xdce6de};return await _0x133bd4[_0x3eb037(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x5292ff,'subUnitId':_0x545daa,'shapeId':_0xb84e8a,'shapeType':_0x48fa7a,'shapeData':{'shapeText':{'isHorizontal':(_0x2e9391=_0x275329[_0x3eb037(0x1ac)])!==null&&_0x2e9391!==void 0x0?_0x2e9391:!![],'dataModel':_0xe22ea6}},'oldShapeJSON':{'oldShapeType':_0x48fa7a,'oldShapeData':_0x2d24f0}});}},ShapeDocAlignCommand={'type':_univerjs_core['CommandType'][_0x3e9a34(0x358)],'id':'sheet.command.shape-doc-align','handler':(_0x401d0c,_0x5002c8)=>{const _0x4d3d88=_0x3e9a34;if(!_0x5002c8)return![];const {value:_0x216ada}=_0x5002c8;return _0x401d0c[_0x4d3d88(0x2d9)](_univerjs_core['ICommandService'])['syncExecuteCommand'](_univerjs_docs_ui[_0x4d3d88(0x10b)]['id'],{'alignType':_0x216ada});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'id':_0x3e9a34(0x5b7),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x3e9a34(0x127),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x3e9a34(0x5e2)])(_0x3e9a34(0x373)),ShapeTextEditorContainer$1=_0x3e9a34(0x27e);function updateShapeData(_0x12da59,_0x1a8b4f,_0x337b16,_0x58c4e4,_0x119d64,_0x2634b1){const _0x44d8ff=_0x3e9a34,_0x5ed1af={'unitId':_0x1a8b4f,'subUnitId':_0x337b16,'shapeId':_0x58c4e4,'shapeData':_0x2634b1,'oldShapeJSON':_0x119d64};return _0x12da59[_0x44d8ff(0x591)](UpdateShapeDataCommand['id'],_0x5ed1af);}function updateLineShapeData(_0x467b64,_0x1478d0,_0x15df62,_0x417dc4,_0x28b466,_0x271dd4){const _0x33cd3f=_0x3e9a34,_0x3db588={'unitId':_0x1478d0,'subUnitId':_0x15df62,'shapeId':_0x417dc4,'shapeData':_0x271dd4,'oldShapeJSON':_0x28b466};return _0x467b64[_0x33cd3f(0x591)](UpdateShapeDataCommand['id'],_0x3db588);}function prepareShapeTextDocumentData(_0x213947,_0x220a8b){const _0xfc236b=_0x3e9a34;var _0x533918;const {isHorizontal:_0x5c645e,textRect:_0x4effd4,verticalAlign:_0x2c9bc4}=_0x220a8b,_0x4c015a=_0x5c645e?_0x4effd4['width']:_0x4effd4['height'],_0x3c8589=_univerjs_core[_0xfc236b(0x584)][_0xfc236b(0x603)](_0x213947),_0x16de82=(_0x533918=_0x3c8589['documentStyle'])!==null&&_0x533918!==void 0x0?_0x533918:{},_0xf3f8c5={..._0x16de82[_0xfc236b(0x2e1)],'centerAngle':_0x5c645e?0x0:_univerjs_engine_render[_0xfc236b(0x300)],'vertexAngle':_0x5c645e?0x0:_univerjs_engine_render[_0xfc236b(0x300)],'wrapStrategy':_univerjs_core[_0xfc236b(0x5e5)][_0xfc236b(0x2fa)]};if(_0x2c9bc4!==void 0x0)_0xf3f8c5[_0xfc236b(0x5d0)]=_0x2c9bc4;if(_0x220a8b[_0xfc236b(0x656)]!==void 0x0){var _0x44d892;_0xf3f8c5['horizontalAlign']=_0x220a8b[_0xfc236b(0x656)];const _0x4ad2bb=(_0x44d892=_0x3c8589[_0xfc236b(0x32d)])===null||_0x44d892===void 0x0?void 0x0:_0x44d892['paragraphs'];if(_0x4ad2bb)for(const _0x366204 of _0x4ad2bb){if(!_0x366204[_0xfc236b(0x1cc)])_0x366204['paragraphStyle']={};_0x366204[_0xfc236b(0x1cc)][_0xfc236b(0x656)]=_0x220a8b[_0xfc236b(0x656)];}}return _0x3c8589[_0xfc236b(0x5db)]={..._0x16de82,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x4c015a,'height':Number[_0xfc236b(0x286)]},'renderConfig':_0xf3f8c5},_0x3c8589;}function stripShapeTextDocumentLayout(_0x2c730e){const _0x5e46c3=_0x3e9a34;var _0x436685;const _0x60ae51=_univerjs_core[_0x5e46c3(0x584)][_0x5e46c3(0x603)](_0x2c730e),_0x53f2a5=(_0x436685=_0x60ae51[_0x5e46c3(0x5db)])!==null&&_0x436685!==void 0x0?_0x436685:{},_0x35099e={..._0x53f2a5['renderConfig']};return delete _0x35099e['centerAngle'],delete _0x35099e[_0x5e46c3(0x486)],delete _0x35099e[_0x5e46c3(0x5d0)],delete _0x35099e[_0x5e46c3(0x455)],_0x60ae51[_0x5e46c3(0x5db)]={..._0x53f2a5,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x5e46c3(0x286)],'height':Number[_0x5e46c3(0x286)]},'renderConfig':Object[_0x5e46c3(0x1b4)](_0x35099e)['length']>0x0?_0x35099e:void 0x0},_0x60ae51;}var DrawingShape=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x458af5,_0x604598){const _0x5e2b6c=_0x3e9a34;super(_0x458af5,_0x604598),_defineProperty(this,_0x5e2b6c(0x20f),void 0x0),_defineProperty(this,'_transformCalculateSrcRect',!![]),_defineProperty(this,_0x5e2b6c(0x608),_univerjs_core['DrawingTypeEnum'][_0x5e2b6c(0x3fc)]),_defineProperty(this,_0x5e2b6c(0x65f),!![]),this[_0x5e2b6c(0x20f)]={..._0x604598},this['_init']();}[_0x3e9a34(0x1ee)](){const _0x3176d3=_0x3e9a34;this[_0x3176d3(0x293)][_0x3176d3(0x345)](_0x1ee3fc=>{const _0x4c72a0=_0x3176d3;this[_0x4c72a0(0x2f7)](_0x1ee3fc);});}[_0x3e9a34(0x503)](_0x298a72){const _0x408ab5=_0x3e9a34;this['_props'][_0x408ab5(0x31d)]=_0x298a72;}[_0x3e9a34(0x1d8)](_0x327187){const _0xd4a264=_0x3e9a34;this[_0xd4a264(0x20f)]['isEditing']=_0x327187,this[_0xd4a264(0x309)](!![]);}get[_0x3e9a34(0x4a8)](){const _0x302c02=_0x3e9a34;return this[_0x302c02(0x20f)][_0x302c02(0x4a8)];}get[_0x3e9a34(0x5d6)](){const _0x1a7261=_0x3e9a34;return this['_props'][_0x1a7261(0x5d6)];}['_updateSrcRectByTransform'](_0x29cf50){const _0x390631=_0x3e9a34;if(this['_props'][_0x390631(0x244)]==null||!this[_0x390631(0x58f)])return;const {width:_0x5d2177,height:_0x34d696}=this,{width:_0x36be15=0x0,height:_0x564fbb=0x0}=_0x29cf50[_0x390631(0x448)],{left:_0x3aa8b3=0x0,top:_0x2d8eb2=0x0,right:_0x2cea2d=0x0,bottom:_0x3edfd9=0x0}=this[_0x390631(0x20f)]['srcRect'];let _0xce5a68=_0x3aa8b3,_0x42222c=_0x2d8eb2,_0x3edec8=_0x2cea2d,_0x125b16=_0x3edfd9,_0x50bded=![];if(_0x36be15!==0x0&&_0x36be15!==_0x5d2177){const _0x48409e=_0x3aa8b3/_0x36be15,_0x23b979=_0x2cea2d/_0x36be15;_0xce5a68=_0x5d2177*_0x48409e,_0x3edec8=_0x5d2177*_0x23b979,_0x50bded=!![];}if(_0x564fbb!==0x0&&_0x564fbb!==_0x34d696){const _0x11c822=_0x2d8eb2/_0x564fbb,_0x1e3169=_0x3edfd9/_0x564fbb;_0x42222c=_0x34d696*_0x11c822,_0x125b16=_0x34d696*_0x1e3169,_0x50bded=!![];}if(_0x50bded)this['setSrcRect']({'left':_0xce5a68,'top':_0x42222c,'right':_0x3edec8,'bottom':_0x125b16});}[_0x3e9a34(0x371)](_0x566f47){const _0x39ba1e=_0x3e9a34;this[_0x39ba1e(0x20f)][_0x39ba1e(0x244)]=_0x566f47,this[_0x39ba1e(0x309)](!![]);}[_0x3e9a34(0x39f)](_0x356926){const _0x517faf=_0x3e9a34;this['_props']['image']=_0x356926,this[_0x517faf(0x309)](!![]);}set[_0x3e9a34(0x600)](_0x2bad78){const _0x1d386e=_0x3e9a34;this[_0x1d386e(0x501)]=_0x2bad78;}get['transform'](){const _0x2dfc74=_0x3e9a34;if(!this[_0x2dfc74(0x501)])this[_0x2dfc74(0xf7)]();const _0x5686d6=this[_0x2dfc74(0x501)][_0x2dfc74(0x3e7)]();return this['transformForAngle'](_0x5686d6);}get[_0x3e9a34(0x4e4)](){const _0x323cdf=_0x3e9a34;return this[_0x323cdf(0x20f)][_0x323cdf(0x4e4)];}get[_0x3e9a34(0x4ac)](){return this['_props']['shapeId'];}get[_0x3e9a34(0x571)](){const _0x51eed0=_0x3e9a34;return _univerjs_engine_render['RENDER_CLASS_TYPE'][_0x51eed0(0x305)];}['_draw'](_0x36576d,_0xdccc4e,_0x4f13e9,_0x3f4254){const _0x5a120e=_0x3e9a34,_0x868078=this[_0x5a120e(0x20f)]['shapeModel'];if(!_0x868078||!_0xdccc4e)return;const _0x1dc7d6=_0x4f13e9!==null&&_0x4f13e9!==void 0x0?_0x4f13e9:this[_0x5a120e(0x183)],_0x123e28=_0x3f4254!==null&&_0x3f4254!==void 0x0?_0x3f4254:this[_0x5a120e(0x37b)],_0x35ceec={'shapeType':_0x868078[_0x5a120e(0x478)](),'width':_0x1dc7d6,'height':_0x123e28},_0x10c76d={'renderMode':_univerjs_pro_engine_shape['ShapeRenderModeEnum'][_0x5a120e(0x403)],'oKey':this['oKey'],'image':this[_0x5a120e(0x20f)][_0x5a120e(0x51b)],'angle':this['angle']};_0x868078['updateContext'](_0x35ceec),_0x36576d[_0x5a120e(0x1a3)]();const _0x405833={'top':0x0,'left':0x0,'width':_0x1dc7d6,'height':_0x123e28};_0x868078[_0x5a120e(0x107)](_0x36576d,_0x405833,_0x10c76d),_0x36576d[_0x5a120e(0x556)]();const _0x35da23=_0x868078[_0x5a120e(0x459)](),_0x53a7f7=_0x868078[_0x5a120e(0x446)](_0x405833),_0x495de5=_0x868078[_0x5a120e(0x25b)]();if(_0x35da23&&_0x53a7f7&&!_0x495de5){_0x36576d[_0x5a120e(0x1a3)]();if(this[_0x5a120e(0x30f)]()[_0x5a120e(0x2f5)])_0x36576d['scale'](-0x1,0x1);const _0x43dc0b=_0x1dc7d6/0x2,_0x6a4b84=_0x123e28/0x2;_0x36576d[_0x5a120e(0x52e)](-_0x43dc0b,-_0x6a4b84),_0x36576d[_0x5a120e(0x4d7)](),this['_drawShapeText'](_0x36576d,_0x35da23,_0x53a7f7),_0x36576d[_0x5a120e(0x556)]();}}[_0x3e9a34(0x660)](_0x149022){}[_0x3e9a34(0x62f)](_0xc223fd,_0x427ac5,_0x3e8f08){const _0x18cb54=_0x3e9a34;if(this[_0x18cb54(0x20f)]['isEditing'])return;if('isRichText'in _0x427ac5&&_0x427ac5['isRichText']===![])this[_0x18cb54(0x116)](_0xc223fd,_0x427ac5,_0x3e8f08);else this[_0x18cb54(0x295)](_0xc223fd,_0x427ac5,_0x3e8f08);}[_0x3e9a34(0x116)](_0x13bfa1,_0x45edc,_0x146d6f){}[_0x3e9a34(0x295)](_0x256191,_0x518b08,_0x1dcc55){const _0x187311=_0x3e9a34;var _0x414079,_0x420278;const _0x5ea4dd=this['_props'][_0x187311(0x5ee)];if(!_0x518b08[_0x187311(0xe0)]||!_0x5ea4dd){if(!_0x5ea4dd)console[_0x187311(0x3d9)](_0x187311(0x2b6));return;}const _0xd8da4b=_0x518b08[_0x187311(0xe0)],_0x21008c=_0xd8da4b[_0x187311(0x30b)],_0x7014ec=(_0x414079=_0xd8da4b['va'])!==null&&_0x414079!==void 0x0?_0x414079:_univerjs_core[_0x187311(0x48a)][_0x187311(0x2ab)],_0x367c6f=(_0x420278=_0xd8da4b['ha'])!==null&&_0x420278!==void 0x0?_0x420278:_univerjs_core[_0x187311(0x5ed)][_0x187311(0x57b)];if(!_0x21008c)return;const _0x27c1bd=_0x518b08[_0x187311(0x1ac)],_0x18867c=prepareShapeTextDocumentData(_0x21008c,{'isHorizontal':_0x27c1bd!==![],'textRect':_0x1dcc55,'verticalAlign':_0x7014ec,'horizontalAlign':_0x367c6f}),_0x1e4cd0=new _univerjs_core[(_0x187311(0x548))](_0x18867c),_0x3ed29c=new _univerjs_engine_render[(_0x187311(0x2f3))](_0x1e4cd0),_0x3969a1=_univerjs_engine_render[_0x187311(0x224)]['create'](_0x3ed29c,_0x5ea4dd);console[_0x187311(0x3d9)](_0x18867c,_0x1e4cd0,_0x3969a1),_0x3969a1[_0x187311(0x108)]();const _0x16bf59=new _univerjs_engine_render[(_0x187311(0x535))](_0x187311(0x2df)+this[_0x187311(0x389)],_0x3969a1,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x16bf59['resize'](_0x1dcc55[_0x187311(0x183)],_0x1dcc55[_0x187311(0x37b)]),_0x256191[_0x187311(0x1a3)](),_0x256191[_0x187311(0x1d6)](_0x1dcc55[_0x187311(0xe1)],_0x1dcc55[_0x187311(0x156)]),_0x256191[_0x187311(0x4d7)](),_0x256191[_0x187311(0x11a)](0x0,0x0,_0x1dcc55['width'],_0x1dcc55['height']),_0x256191[_0x187311(0x632)](),_0x16bf59[_0x187311(0x45a)](_0x256191),_0x256191[_0x187311(0x556)](),_0x16bf59[_0x187311(0x199)](),_0x3969a1[_0x187311(0x199)](),_0x3ed29c['dispose'](),_0x1e4cd0['dispose']();}[_0x3e9a34(0x107)](_0x351c6b,_0x3b960a,_0x447b7f=![]){const _0x59fce9=_0x3e9a34;if(!this['visible'])return this['makeDirty'](![]),this;let {width:_0x2bc85b,height:_0x54a82a,left:_0x206c21,top:_0x37a1e6}=this;const _0x2f871b=this[_0x59fce9(0x5ff)]();_0x2bc85b=_0x2f871b[_0x59fce9(0x183)],_0x54a82a=_0x2f871b[_0x59fce9(0x37b)],_0x206c21=_0x2f871b[_0x59fce9(0xe1)],_0x37a1e6=_0x2f871b['top'];if(this['isRender'](_0x3b960a)){const {top:_0x44f683,left:_0xdb5f47,bottom:_0x4f9b1b,right:_0x108d17}=_0x3b960a['viewBound'];if(_0x2bc85b+this[_0x59fce9(0x45d)]+_0x206c21<_0xdb5f47||_0x108d17<_0x206c21||_0x54a82a+this[_0x59fce9(0x45d)]+_0x37a1e6<_0x44f683||_0x4f9b1b<_0x37a1e6)return this;}const _0x541b53=_0x206c21+_0x2bc85b/0x2,_0x1c9a1e=_0x37a1e6+_0x54a82a/0x2;let _0xb02f7=this[_0x59fce9(0x600)][_0x59fce9(0x146)]();if(this[_0x59fce9(0x20f)][_0x59fce9(0x447)]){const _0x46d5f5=this[_0x59fce9(0x30f)](),_0x7afe26=new _univerjs_engine_render[(_0x59fce9(0x10d))]();_0x7afe26[_0x59fce9(0x3f8)]({..._0x46d5f5}),_0xb02f7=_0x7afe26[_0x59fce9(0x146)]();}_0x351c6b[_0x59fce9(0x1a3)]();if(this[_0x59fce9(0x20f)][_0x59fce9(0x4e4)][_0x59fce9(0x4ca)]===!![]){}else _0x351c6b[_0x59fce9(0x600)](_0xb02f7[0x0],_0xb02f7[0x1],_0xb02f7[0x2],_0xb02f7[0x3],_0x541b53,_0x1c9a1e);return this[_0x59fce9(0x33c)](_0x351c6b,_0x3b960a,_0x2bc85b,_0x54a82a),_0x351c6b['restore'](),this[_0x59fce9(0x309)](![]),this;}[_0x3e9a34(0x1a5)](_0x476e05){const _0xc8d1d2=_0x3e9a34,{left:_0x3dd62a,top:_0x10f332,width:_0x37aeec,height:_0x4bb6a5}=this[_0xc8d1d2(0x5ff)](),_0x4d807b=this[_0xc8d1d2(0x600)][_0xc8d1d2(0x146)](),_0x3ffd38=_0x3dd62a+_0x37aeec/0x2,_0x5c3d5e=_0x10f332+_0x4bb6a5/0x2,_0x33e9bd=new _univerjs_engine_render[(_0xc8d1d2(0x10d))]([_0x4d807b[0x0],_0x4d807b[0x1],_0x4d807b[0x2],_0x4d807b[0x3],_0x3ffd38,_0x5c3d5e]),_0x35bd86=this[_0xc8d1d2(0x316)]();return(this[_0xc8d1d2(0x258)]&&(_0x35bd86===null||_0x35bd86===void 0x0?void 0x0:_0x35bd86[_0xc8d1d2(0x571)])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0xc8d1d2(0x4a2)]?_0x35bd86[_0xc8d1d2(0x526)]['multiply'](_0x33e9bd):_0x33e9bd)[_0xc8d1d2(0x66a)]()['applyPoint'](_0x476e05);}[_0x3e9a34(0x1f7)](_0x5be246){const _0x5f5b74=_0x3e9a34,{left:_0x590bcc,top:_0x464c18,width:_0x3d7043,height:_0x5c4f1b}=this['getRealBound'](),_0x51db52=_0x590bcc+_0x3d7043/0x2,_0x1228ae=_0x464c18+_0x5c4f1b/0x2,_0x13af1f=this['transform']['getMatrix'](),_0x5bdc45=new _univerjs_engine_render['Transform']([_0x13af1f[0x0],_0x13af1f[0x1],_0x13af1f[0x2],_0x13af1f[0x3],_0x51db52,_0x1228ae]),_0x56e39f=this[_0x5f5b74(0x316)](),_0x8ad2cf=(this['isInGroup']&&(_0x56e39f===null||_0x56e39f===void 0x0?void 0x0:_0x56e39f[_0x5f5b74(0x571)])===_univerjs_engine_render[_0x5f5b74(0x4f8)]['GROUP']?_0x56e39f[_0x5f5b74(0x526)][_0x5f5b74(0x12b)](_0x5bdc45):_0x5bdc45)[_0x5f5b74(0x66a)]()[_0x5f5b74(0x342)](_0x5be246),_0x497228=_0x3d7043/0x2,_0x45d688=_0x5c4f1b/0x2,_0x89b661=this[_0x5f5b74(0x20f)]['shapeModel'];if(_0x89b661&&_0x89b661[_0x5f5b74(0x25b)]())return _0x89b661[_0x5f5b74(0x56c)](_0x8ad2cf['x'],_0x8ad2cf['y'],_0x3d7043,_0x5c4f1b);if(_0x8ad2cf['x']>=-_0x497228-this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['x']<=_0x497228+this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['y']>=-_0x45d688-this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['y']<=_0x45d688+this['strokeWidth']/0x2)return!![];return![];}[_0x3e9a34(0x199)](){const _0x189489=_0x3e9a34;this[_0x189489(0x20f)][_0x189489(0x4e4)]=null,super['dispose']();}};function __decorateParam(_0x3a7f71,_0x1aacf7){return function(_0x4a0a35,_0x453e0f){_0x1aacf7(_0x4a0a35,_0x453e0f,_0x3a7f71);};}function __decorate(_0x92ff30,_0x58dd35,_0x5cabe0,_0x3bed03){const _0x524709=_0x3e9a34;var _0x22f3fa=arguments[_0x524709(0x440)],_0x3f3c24=_0x22f3fa<0x3?_0x58dd35:_0x3bed03===null?_0x3bed03=Object[_0x524709(0x34b)](_0x58dd35,_0x5cabe0):_0x3bed03,_0x1885d2;if(typeof Reflect===_0x524709(0x370)&&typeof Reflect[_0x524709(0x4d6)]===_0x524709(0x236))_0x3f3c24=Reflect[_0x524709(0x4d6)](_0x92ff30,_0x58dd35,_0x5cabe0,_0x3bed03);else{for(var _0x521911=_0x92ff30[_0x524709(0x440)]-0x1;_0x521911>=0x0;_0x521911--)if(_0x1885d2=_0x92ff30[_0x521911])_0x3f3c24=(_0x22f3fa<0x3?_0x1885d2(_0x3f3c24):_0x22f3fa>0x3?_0x1885d2(_0x58dd35,_0x5cabe0,_0x3f3c24):_0x1885d2(_0x58dd35,_0x5cabe0))||_0x3f3c24;}return _0x22f3fa>0x3&&_0x3f3c24&&Object[_0x524709(0x63c)](_0x58dd35,_0x5cabe0,_0x3f3c24),_0x3f3c24;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core['Disposable']{constructor(_0x497e01,_0x2de12d,_0x30c91d,_0x4f7505,_0x15310f){const _0x3dc15a=_0x3e9a34;super(),this[_0x3dc15a(0x4d0)]=_0x497e01,this[_0x3dc15a(0xfd)]=_0x2de12d,this[_0x3dc15a(0x5d4)]=_0x30c91d,this[_0x3dc15a(0x272)]=_0x4f7505,this[_0x3dc15a(0x469)]=_0x15310f;}[_0x3e9a34(0x1e3)](_0x56903a,_0x4e0832){const _0x1dc2eb=_0x3e9a34,{transform:_0x47e3e6,drawingType:_0x4ac8a4,srcRect:_0x48bead,prstGeom:_0x3a9025,groupId:_0x321e5c,unitId:_0x5693b3,subUnitId:_0x5aceb2,drawingId:_0x44bde0,isMultiTransform:_0x8ab282,transforms:_0x3b73ab,hidden:_0x3c998c}=_0x56903a;if(_0x4ac8a4!==_univerjs_core['DrawingTypeEnum'][_0x1dc2eb(0x3fc)])return;if(!this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x3f9)]())return;if(_0x47e3e6==null)return;const _0x19ba7d=_0x8ab282&&_0x3b73ab?_0x3b73ab:[_0x47e3e6],_0x451ccb=[];for(const _0x339623 of _0x19ba7d){const {left:_0x53ebf1,top:_0x5c5eea,width:_0x1b484e,height:_0x4dcc0d,angle:_0x17ceb4,flipX:_0x426fea,flipY:_0x11f749,skewX:_0x2a83a8,skewY:_0x29ae80}=_0x339623,_0x1f88a7=_0x19ba7d[_0x1dc2eb(0x21f)](_0x339623),_0x1326af=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5693b3,'subUnitId':_0x5aceb2,'drawingId':_0x44bde0},_0x8ab282?_0x1f88a7:void 0x0),_0x2f8438=_0x4e0832[_0x1dc2eb(0x21c)](_0x1326af);if(_0x2f8438!=null){_0x2f8438[_0x1dc2eb(0x227)]({'left':_0x53ebf1,'top':_0x5c5eea,'width':_0x1b484e,'height':_0x4dcc0d,'angle':_0x17ceb4,'flipX':_0x426fea,'flipY':_0x11f749,'skewX':_0x2a83a8,'skewY':_0x29ae80});continue;}const _0x22abcb=this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x2bd)](_0x5693b3,_0x5aceb2),_0x483807=_0x22abcb[_0x1dc2eb(0x21f)](_0x44bde0);if(_0x4e0832['getObjectIncludeInGroup'](_0x1326af))continue;if(!this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x3f9)]())continue;const _0x32e02e=this[_0x1dc2eb(0xfd)][_0x1dc2eb(0x533)](_0x5693b3,_0x5aceb2,_0x44bde0);if(!_0x32e02e)continue;const _0x365853=new DrawingShape(_0x1326af,{...(0x0,_univerjs_pro_engine_shape[_0x1dc2eb(0x654)])(_0x32e02e[_0x1dc2eb(0x478)]())?{..._0x339623,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x339623},'zIndex':_0x483807===-0x1?_0x22abcb['length']-0x1:_0x483807,'shapeModel':_0x32e02e,'localeService':this[_0x1dc2eb(0x5d4)],'shapeId':_0x44bde0,'unitId':_0x5693b3,'subUnitId':_0x5aceb2,'visible':_0x3c998c!==!![]});_0x4e0832['addObject'](_0x365853,_univerjs_engine_render[_0x1dc2eb(0x1bd)]);if(this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x362)]())_0x4e0832['attachTransformerTo'](_0x365853);_0x321e5c&&(0x0,_univerjs_drawing_ui[_0x1dc2eb(0x34c)])({'drawingId':_0x321e5c,'unitId':_0x5693b3,'subUnitId':_0x5aceb2},_0x365853,_0x4e0832,this[_0x1dc2eb(0x4d0)]);if(_0x3a9025!=null)_0x365853[_0x1dc2eb(0x503)](_0x3a9025);if(_0x48bead!=null)_0x365853[_0x1dc2eb(0x371)](_0x48bead);this[_0x1dc2eb(0x1cd)](_0x365853,_0x32e02e[_0x1dc2eb(0x470)]()),_0x451ccb[_0x1dc2eb(0x2dd)](_0x365853);}return _0x451ccb;}['_loadShapePictureFill'](_0x914fe,_0x121d85){const _0xd773d0=_0x3e9a34;var _0x55b565;const _0x572f9d=_0x121d85['fill'];if(!_0x572f9d||_0x572f9d[_0xd773d0(0x49b)]!==_univerjs_pro_engine_shape[_0xd773d0(0x4bf)][_0xd773d0(0x5c6)]||!_0x572f9d[_0xd773d0(0x5cd)])return;const _0x19430b=_0x572f9d['fillImageSource'],_0x9fefb5=(_0x55b565=_0x572f9d['fillImageSourceType'])!==null&&_0x55b565!==void 0x0?_0x55b565:_univerjs_pro_engine_shape['ImageSourceTypeEnum'][_0xd773d0(0xfc)],_0x427604=this[_0xd773d0(0x272)]['getImageSourceCache'](_0x19430b,_0x9fefb5);if(_0x427604){_0x914fe[_0xd773d0(0x39f)](_0x427604);return;}this[_0xd773d0(0x241)](_0x914fe,_0x19430b,_0x9fefb5);}async[_0x3e9a34(0x241)](_0x47988a,_0x185e62,_0x2bced5){const _0x1490a5=_0x3e9a34;let _0x341d6b;try{if(_0x2bced5===_univerjs_pro_engine_shape[_0x1490a5(0x38e)][_0x1490a5(0x233)])_0x341d6b=await this['_imageIoService'][_0x1490a5(0x4fd)](_0x185e62);else{if(_0x2bced5===_univerjs_pro_engine_shape[_0x1490a5(0x38e)][_0x1490a5(0xfc)])try{_0x341d6b=await this[_0x1490a5(0x469)]['getImage'](_0x185e62);}catch{_0x341d6b=_0x185e62;}else _0x341d6b=_0x185e62;}}catch(_0x3df293){console[_0x1490a5(0x5e9)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x3df293);return;}const _0x2fee77=new window[(_0x1490a5(0x41c))]();_0x2fee77[_0x1490a5(0x437)]=()=>{const _0x5a560b=_0x1490a5;this[_0x5a560b(0x272)][_0x5a560b(0x15d)](_0x185e62,_0x2bced5,_0x2fee77),_0x47988a[_0x5a560b(0x39f)](_0x2fee77);},_0x2fee77[_0x1490a5(0x260)]=()=>{const _0x3c397a=_0x1490a5;console[_0x3c397a(0x5e9)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x185e62);},_0x2fee77[_0x1490a5(0x149)]=_0x341d6b;}};function _0x47fe(_0x4d1087,_0x54e549){_0x4d1087=_0x4d1087-0xdd;const _0x501b48=_0x501b();let _0x47fe73=_0x501b48[_0x4d1087];return _0x47fe73;}SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x398)])),__decorateParam(0x3,_univerjs_drawing['IImageIoService']),__decorateParam(0x4,_univerjs_core[_0x3e9a34(0x473)])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x51fcfc,_0x306769,_0x44bfa0,_0x1eea96,_0x2e9951,_0x514a6d){const _0x5eedc4=_0x3e9a34;super(),this[_0x5eedc4(0x363)]=_0x51fcfc,this[_0x5eedc4(0x5cb)]=_0x306769,this[_0x5eedc4(0x4d0)]=_0x44bfa0,this[_0x5eedc4(0x5a3)]=_0x1eea96,this[_0x5eedc4(0x56b)]=_0x2e9951,this[_0x5eedc4(0x1ed)]=_0x514a6d,this[_0x5eedc4(0x206)]();}['_initialize'](){const _0x55786c=_0x3e9a34;this['_drawingAddListener'](),this['_commandExecutedListener'](),this[_0x55786c(0x441)]();}[_0x3e9a34(0x37c)](){const _0xeabd20=_0x3e9a34;this[_0xeabd20(0x58e)](this[_0xeabd20(0x4d0)][_0xeabd20(0x640)][_0xeabd20(0x562)](_0x444c5c=>{this['_insertShapes'](_0x444c5c);}));}['_commandExecutedListener'](){const _0x11321e=_0x3e9a34;this['disposeWithMe'](this[_0x11321e(0x363)][_0x11321e(0x3b5)](_0x30673b=>{const _0xd72264=_0x11321e;if(_0x30673b['id']===_univerjs_pro_sheets_shape[_0xd72264(0x598)]['id']){var _0x3eae51;const {unitId:_0x2c4487,subUnitId:_0x28c0b2,shapeId:_0x4be04e}=_0x30673b[_0xd72264(0xee)],_0x106d19=this[_0xd72264(0x34f)](_0x2c4487);if(_0x106d19==null)return;const {scene:_0x469652}=_0x106d19,_0x58536f=(0x0,_univerjs_drawing[_0xd72264(0x171)])({'unitId':_0x2c4487,'subUnitId':_0x28c0b2,'drawingId':_0x4be04e}),_0x1c4d50=_0x469652[_0xd72264(0x21c)](_0x58536f);if(!((_0x3eae51=this[_0xd72264(0x5cb)]['getRenderById'](_0x2c4487))===null||_0x3eae51===void 0x0?void 0x0:_0x3eae51['with'](_univerjs_sheets_ui[_0xd72264(0x412)])[_0xd72264(0x64e)](_0x28c0b2)))return![];if(_0x1c4d50)return;this[_0xd72264(0x385)]([{'unitId':_0x2c4487,'subUnitId':_0x28c0b2,'drawingId':_0x4be04e}]);}}));}['_shapeUpdateListener'](){const _0x47593e=_0x3e9a34;this[_0x47593e(0x58e)](this[_0x47593e(0x4d0)][_0x47593e(0x554)][_0x47593e(0x562)](_0xc6fd09=>{const _0x23cf04=_0x47593e;_0xc6fd09[_0x23cf04(0x289)](_0x4ef3e9=>{const _0x836428=_0x23cf04,{unitId:_0x518111,subUnitId:_0x312f38,drawingId:_0x2fd43d}=_0x4ef3e9,_0x361942=this[_0x836428(0x4d0)][_0x836428(0x619)](_0x4ef3e9);if(_0x361942==null)return;const {transform:_0x28fb3b,drawingType:_0x5aceaf,srcRect:_0x326847,prstGeom:_0x67e33c}=_0x361942;if(_0x5aceaf!==_univerjs_core[_0x836428(0x506)][_0x836428(0x3fc)])return;const _0x5b3307=this[_0x836428(0x34f)](_0x518111);if(_0x5b3307==null)return;const {scene:_0x143c69,transformer:_0x4500ce}=_0x5b3307;if(_0x28fb3b==null)return!![];const _0x53bc66=(0x0,_univerjs_drawing[_0x836428(0x171)])({'unitId':_0x518111,'subUnitId':_0x312f38,'drawingId':_0x2fd43d}),_0x1f9e44=_0x143c69[_0x836428(0x21c)](_0x53bc66);if(_0x1f9e44==null)return!![];_0x1f9e44[_0x836428(0x371)](_0x326847),_0x1f9e44[_0x836428(0x503)](_0x67e33c);});}));}[_0x3e9a34(0x4f4)](_0x1d8101,_0x4e0e07){const _0x52a55c=_0x3e9a34,{unitId:_0x1b8380,subUnitId:_0x567a82,drawingId:_0x4da0b1}=_0x1d8101,_0x3c9ed4=this['_getSceneAndTransformerByDrawingSearch'](_0x1b8380);if(_0x3c9ed4==null)return;const {scene:_0x12bd79}=_0x3c9ed4,_0x68e194=(0x0,_univerjs_drawing[_0x52a55c(0x171)])({'unitId':_0x1b8380,'subUnitId':_0x567a82,'drawingId':_0x4da0b1}),_0x4e395f=_0x12bd79[_0x52a55c(0x21c)](_0x68e194);if(_0x4e395f==null)return;_0x4e395f['setFillImage'](_0x4e0e07);}[_0x3e9a34(0x385)](_0x3f9fdf){const _0x43c568=_0x3e9a34;_0x3f9fdf[_0x43c568(0x289)](async _0x2b9788=>{const _0x40b986=_0x43c568;var _0x20bdd2;const {unitId:_0x10c625,subUnitId:_0x44c5f4}=_0x2b9788,_0x9a9e1a=this[_0x40b986(0x34f)](_0x10c625),_0x185edf=(_0x20bdd2=(0x0,_univerjs_drawing_ui['getCurrentUnitInfo'])(this['_currentUniverService'],_0x10c625))===null||_0x20bdd2===void 0x0?void 0x0:_0x20bdd2[_0x40b986(0x5d6)];if(_0x9a9e1a==null||_0x185edf!==_0x44c5f4)return;const _0x356da3=this[_0x40b986(0x4d0)]['getDrawingByParam'](_0x2b9788);if(_0x356da3==null)return;if(_0x356da3['drawingType']!==_univerjs_core[_0x40b986(0x506)][_0x40b986(0x3fc)])return;if((0x0,_univerjs_pro_engine_shape[_0x40b986(0x654)])((_0x356da3[_0x40b986(0x278)]||{})[_0x40b986(0x24f)])){const _0x210c9b=_0x356da3[_0x40b986(0x600)];if(_0x210c9b)_0x356da3[_0x40b986(0x600)]={..._0x210c9b,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x40b986(0x4d0)][_0x40b986(0x3bd)]([_0x356da3]),this[_0x40b986(0x1ed)][_0x40b986(0x1e3)](_0x356da3,_0x9a9e1a[_0x40b986(0x2a4)]);});}[_0x3e9a34(0x34f)](_0x1cf026){const _0x14f842=_0x3e9a34;if(_0x1cf026==null)return;const _0xe198c2=this[_0x14f842(0x5cb)][_0x14f842(0x17d)](_0x1cf026),_0x4fd32d=_0xe198c2===null||_0xe198c2===void 0x0?void 0x0:_0xe198c2['scene'];if(_0x4fd32d==null)return null;return{'scene':_0x4fd32d,'transformer':_0x4fd32d['getTransformerByCreate']()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x1,_univerjs_engine_render[_0x3e9a34(0x35e)]),__decorateParam(0x2,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_drawing_ui[_0x3e9a34(0x344)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x234689){const _0x2992d3=_0x3e9a34;var _0x1c4481,_0x5b376c,_0x38851c,_0x3cda8a,_0x92d0e0,_0x57e226,_0x1ad652,_0xe98f83,_0x25adbe,_0x54bedb,_0x5d61f5,_0x2421a3,_0x28f768;const {unitId:_0x25f2aa,subUnitId:_0x44b980,shapeId:_0xd5cee1,shapeData:_0x4a62bc,disableShapeOption:_0x216398}=_0x234689,_0x4ec3ca=(0x0,_univerjs_ui[_0x2992d3(0x663)])(_univerjs_core[_0x2992d3(0x398)]),_0x273435=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['ICommandService']),_0x249fc0=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2992d3(0x409)]),_0x4558a4=(0x0,_univerjs_ui['useDependency'])(ShapeUpdateController),_0x554bd1=(0x0,_univerjs_ui[_0x2992d3(0x663)])(_univerjs_drawing[_0x2992d3(0x3ce)]),_0x41b6e2=(0x0,react['useRef'])(null),_0x21a801=_0x4a62bc[_0x2992d3(0x151)],_0x2341c7=!!(_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5cd)]),[_0x34a216,_0x388cd8]=(0x0,react[_0x2992d3(0x5a1)])((_0x1c4481=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x425)])!==null&&_0x1c4481!==void 0x0?_0x1c4481:0x1),[_0x2adba7,_0xf6a2c3]=(0x0,react[_0x2992d3(0x5a1)])((_0x5b376c=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x3e0)])!==null&&_0x5b376c!==void 0x0?_0x5b376c:_univerjs_pro_engine_shape[_0x2992d3(0x26c)]['Stretch']),[_0x598662,_0x1b7b94]=(0x0,react['useState'])((_0x38851c=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5da)])!==null&&_0x38851c!==void 0x0?_0x38851c:![]),[_0x5bd4d4,_0x408539]=(0x0,react['useState'])((_0x3cda8a=_0x21a801===null||_0x21a801===void 0x0||(_0x92d0e0=_0x21a801['imageTile'])===null||_0x92d0e0===void 0x0?void 0x0:_0x92d0e0[_0x2992d3(0x59b)])!==null&&_0x3cda8a!==void 0x0?_0x3cda8a:0x0),[_0x4a9037,_0x19c78c]=(0x0,react[_0x2992d3(0x5a1)])((_0x57e226=_0x21a801===null||_0x21a801===void 0x0||(_0x1ad652=_0x21a801[_0x2992d3(0x290)])===null||_0x1ad652===void 0x0?void 0x0:_0x1ad652[_0x2992d3(0x161)])!==null&&_0x57e226!==void 0x0?_0x57e226:0x0),[_0x404b4c,_0x5e57bf]=(0x0,react[_0x2992d3(0x5a1)])((_0xe98f83=_0x21a801===null||_0x21a801===void 0x0||(_0x25adbe=_0x21a801[_0x2992d3(0x290)])===null||_0x25adbe===void 0x0?void 0x0:_0x25adbe['scaleX'])!==null&&_0xe98f83!==void 0x0?_0xe98f83:0x1),[_0x17c259,_0x43c9c0]=(0x0,react[_0x2992d3(0x5a1)])((_0x54bedb=_0x21a801===null||_0x21a801===void 0x0||(_0x5d61f5=_0x21a801[_0x2992d3(0x290)])===null||_0x5d61f5===void 0x0?void 0x0:_0x5d61f5[_0x2992d3(0x1b6)])!==null&&_0x54bedb!==void 0x0?_0x54bedb:0x1),[_0x252963,_0x2eaae7]=(0x0,react[_0x2992d3(0x5a1)])((_0x2421a3=_0x21a801===null||_0x21a801===void 0x0||(_0x28f768=_0x21a801['imageTile'])===null||_0x28f768===void 0x0?void 0x0:_0x28f768[_0x2992d3(0x48f)])!==null&&_0x2421a3!==void 0x0?_0x2421a3:'tl'),_0x406692=_0x2adba7===_univerjs_pro_engine_shape[_0x2992d3(0x26c)]['Tile'],_0x3b586d=Math[_0x2992d3(0x47c)]((0x1-_0x34a216)*0x64),_0x5a066f=Math[_0x2992d3(0x47c)](_0x404b4c*0x64),_0x22421f=Math[_0x2992d3(0x47c)](_0x17c259*0x64),_0x52f548=_0x461430=>_0x4ec3ca['t'](_0x461430),_0xfebb96=[{'label':_0x52f548(_0x2992d3(0x308)),'value':'tl'},{'label':_0x52f548(_0x2992d3(0x158)),'value':'t'},{'label':_0x52f548('sheets-shape.fill.picture.align.tr'),'value':'tr'},{'label':_0x52f548('sheets-shape.fill.picture.align.l'),'value':'l'},{'label':_0x52f548('sheets-shape.fill.picture.align.ctr'),'value':_0x2992d3(0x568)},{'label':_0x52f548(_0x2992d3(0x3d6)),'value':'r'},{'label':_0x52f548('sheets-shape.fill.picture.align.bl'),'value':'bl'},{'label':_0x52f548(_0x2992d3(0x1dd)),'value':'b'},{'label':_0x52f548(_0x2992d3(0x1fb)),'value':'br'}],_0x372512=_0x1f3db3=>{updateShapeData(_0x273435,_0x25f2aa,_0x44b980,_0xd5cee1,{'oldShapeData':{'fill':_0x21a801?{..._0x21a801}:void 0x0}},{'fill':{..._0x21a801,..._0x1f3db3}});},_0x26b68d=_0x176b33=>{const _0x1cdd92=_0x2992d3;_0x372512({'imageTile':{..._0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x1cdd92(0x290)],..._0x176b33}});},_0x1f8c94=()=>{const _0x16f416=_0x2992d3;var _0x4dca9e;return(_0x4dca9e=_0x41b6e2[_0x16f416(0x419)])===null||_0x4dca9e===void 0x0?void 0x0:_0x4dca9e['click']();},_0x1add58=async _0x515300=>{const _0x7cbe7=_0x2992d3;var _0x4d7a70;const _0x40522a=(_0x4d7a70=_0x515300[_0x7cbe7(0x421)][_0x7cbe7(0x466)])===null||_0x4d7a70===void 0x0?void 0x0:_0x4d7a70[0x0];if(!_0x40522a)return;_0x515300['target'][_0x7cbe7(0x115)]='';const _0xc61177=await _0x554bd1[_0x7cbe7(0x607)](_0x40522a);if(_0xc61177==null)return;const {imageSourceType:_0x4a8099,source:_0x3e7d79,base64Cache:_0x5617b3}=_0xc61177,{image:_0x5963c5}=await(0x0,_univerjs_drawing[_0x7cbe7(0x321)])(_0x5617b3||'');_0x554bd1[_0x7cbe7(0x15d)](_0x3e7d79,_0x4a8099,_0x5963c5),updateShapeData(_0x273435,_0x25f2aa,_0x44b980,_0xd5cee1,{'oldShapeData':{'fill':_0x21a801?{..._0x21a801}:void 0x0}},{'fill':{..._0x21a801,'fillType':_univerjs_pro_engine_shape[_0x7cbe7(0x4bf)]['PictureFill'],'fillImageSource':_0x3e7d79,'fillImageSourceType':_0x4a8099}}),_0x4558a4[_0x7cbe7(0x4f4)]({'unitId':_0x25f2aa,'subUnitId':_0x44b980,'drawingId':_0xd5cee1},_0x5963c5);},_0x5801e5='univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200',_0xf22b96=_0x2992d3(0x597);return(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x1d5),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x5af),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548('sheets-shape.fill.picture.source')}),(0x0,react_jsx_runtime['jsxs'])(_0x2992d3(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x451),{'ref':_0x41b6e2,'type':_0x2992d3(0x5f3),'accept':'image/*','className':_0x2992d3(0x61f),'onChange':_0x1add58}),(0x0,react_jsx_runtime['jsxs'])(_0x2992d3(0x418),{'className':_0x2992d3(0x61e),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('button',{'type':_0x2992d3(0x320),'disabled':_0x216398,'className':_0x2992d3(0x565),'onClick':_0x1f8c94,'children':(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x1a2),{'children':[_0x52f548(_0x2992d3(0x193)),'\x20']})}),_0x2341c7&&(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':_0x2992d3(0x239),'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('img',{'src':_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5cd)],'alt':'','className':'univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover'})})]})]})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('span',{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x2af))}),(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x418),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design['InputNumber'],{'className':_0x2992d3(0x559),'value':_0x3b586d,'disabled':_0x216398,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x3d6da7=>_0x3d6da7+'%','parser':_0x4d73b5=>(_0x4d73b5===null||_0x4d73b5===void 0x0?void 0x0:_0x4d73b5[_0x2992d3(0x4e8)]('%',''))||'','onChange':_0xa6cccb=>{const _0x24cd32=_0x2992d3,_0x115634=(0x64-Math[_0x24cd32(0x216)](0x0,Math[_0x24cd32(0x613)](0x64,_0xa6cccb!==null&&_0xa6cccb!==void 0x0?_0xa6cccb:0x0)))/0x64;_0x388cd8(_0x115634),_0x372512({'imageOpacity':_0x115634}),_0x249fc0[_0x24cd32(0x1b8)](_univerjs_core[_0x24cd32(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x434)],{'checked':_0x406692,'disabled':_0x216398,'onChange':_0x4d502a=>{const _0x24e186=_0x2992d3,_0x5f1c33=_0x4d502a?_univerjs_pro_engine_shape[_0x24e186(0x26c)][_0x24e186(0x16a)]:_univerjs_pro_engine_shape[_0x24e186(0x26c)]['Stretch'];_0xf6a2c3(_0x5f1c33),_0x372512({'imageFillMode':_0x5f1c33});},'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x2992d3(0x63d),'children':_0x52f548(_0x2992d3(0x4c1))})}),_0x406692&&(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x335),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x27f))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':_0x2992d3(0x2aa),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':_0x2992d3(0x559),'value':_0x5bd4d4,'disabled':_0x216398,'step':0x1,'onChange':_0x726598=>{_0x26b68d({'offsetX':_0x726598!==null&&_0x726598!==void 0x0?_0x726598:0x0}),_0x408539(_0x726598!==null&&_0x726598!==void 0x0?_0x726598:0x0);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548('sheets-shape.fill.picture.offsetY')}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':'univer-w-20','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2992d3(0x366)],{'className':'univer-w-full','value':_0x4a9037,'disabled':_0x216398,'step':0x1,'onChange':_0xe371de=>{_0x26b68d({'offsetY':_0xe371de!==null&&_0xe371de!==void 0x0?_0xe371de:0x0}),_0x19c78c(_0xe371de!==null&&_0xe371de!==void 0x0?_0xe371de:0x0);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x20c))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x418),{'className':_0x2992d3(0x2aa),'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x366)],{'className':'univer-w-full','value':_0x5a066f,'disabled':_0x216398,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x53040c=>_0x53040c+'%','parser':_0x1bc976=>(_0x1bc976===null||_0x1bc976===void 0x0?void 0x0:_0x1bc976[_0x2992d3(0x4e8)]('%',''))||'','onChange':_0x276457=>{const _0x33364f=_0x2992d3,_0x3ff966=Math[_0x33364f(0x216)](0.01,(_0x276457!==null&&_0x276457!==void 0x0?_0x276457:0x64)/0x64);_0x5e57bf(_0x3ff966),_0x26b68d({'scaleX':_0x3ff966}),_0x249fc0[_0x33364f(0x1b8)](_univerjs_core[_0x33364f(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('span',{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x44d))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x366)],{'className':_0x2992d3(0x559),'value':_0x22421f,'disabled':_0x216398,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x5820f0=>_0x5820f0+'%','parser':_0x1ad529=>(_0x1ad529===null||_0x1ad529===void 0x0?void 0x0:_0x1ad529['replace']('%',''))||'','onChange':_0x4974d8=>{const _0x4af265=_0x2992d3,_0xad87f0=Math['max'](0.01,(_0x4974d8!==null&&_0x4974d8!==void 0x0?_0x4974d8:0x64)/0x64);_0x43c9c0(_0xad87f0),_0x26b68d({'scaleY':_0xad87f0}),_0x249fc0[_0x4af265(0x1b8)](_univerjs_core[_0x4af265(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x377))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x418),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x2e2)],{'className':_0x2992d3(0x559),'value':_0x252963,'options':_0xfebb96,'disabled':_0x216398,'onChange':_0x557b70=>{_0x2eaae7(_0x557b70),_0x26b68d({'alignment':_0x557b70});}})})]})]}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design['Checkbox'],{'checked':_0x598662,'disabled':_0x216398,'onChange':_0x406835=>{_0x1b7b94(_0x406835),_0x372512({'imageRotateWithShape':_0x406835});},'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':'univer-text-sm','children':_0x52f548('sheets-shape.fill.picture.rotateWithShape')})})]});}function ShapeFillEditor(_0x48f8ae){const _0x12b2f0=_0x3e9a34;var _0x49a273,_0x16aa65,_0xa0171e;const _0x3cac4d=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core[_0x12b2f0(0x398)]),_0x2a7026=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core['ICommandService']),_0x214d84=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core[_0x12b2f0(0x409)]),{shapeData:_0x446095,isLineShape:_0x10a1e0,unitId:_0x44cf3d,subUnitId:_0x4395a5,shapeId:_0x5b9029,disableShapeOption:_0xaf80b4}=_0x48f8ae,[_0x4e0df0,_0x2ff266]=(0x0,react[_0x12b2f0(0x5a1)])(((_0x49a273=_0x446095[_0x12b2f0(0x151)])===null||_0x49a273===void 0x0?void 0x0:_0x49a273['fillType'])||_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0x173)]),[_0x15837b,_0x8516e9]=(0x0,react[_0x12b2f0(0x5a1)])(((_0x16aa65=_0x446095['fill'])===null||_0x16aa65===void 0x0?void 0x0:_0x16aa65[_0x12b2f0(0x436)])||_univerjs_pro_engine_shape[_0x12b2f0(0x49a)][_0x12b2f0(0x151)]),[_0x1db016,_0x1bf5e1]=(0x0,react[_0x12b2f0(0x5a1)])(((_0xa0171e=_0x446095[_0x12b2f0(0x151)])===null||_0xa0171e===void 0x0?void 0x0:_0xa0171e[_0x12b2f0(0x3fd)])||0x1),[_0x548812,_0x507766]=(0x0,react[_0x12b2f0(0x5a1)])(![]);if(_0x10a1e0)return null;const _0x3731c2=0x64-_0x1db016*0x64;return(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x1ae),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_univerjs_design['RadioGroup'],{'value':_0x4e0df0,'disabled':_0xaf80b4,'onChange':_0x65db0f=>{const _0x49fb14=_0x12b2f0;var _0xe65ba1;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{'fillType':(_0xe65ba1=_0x446095[_0x49fb14(0x151)])===null||_0xe65ba1===void 0x0?void 0x0:_0xe65ba1[_0x49fb14(0x49b)]}}},{'fill':{'fillType':_0x65db0f}}),_0x2ff266(_0x65db0f);},'direction':_0x12b2f0(0x561),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x12b2f0(0x474)],'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_0x12b2f0(0x1a2),{'className':'univer-text-sm','children':_0x3cac4d['t'](_0x12b2f0(0x36d))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x12b2f0(0x1c7)],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['SolidFill'],'children':(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x12b2f0(0x63d),'children':_0x3cac4d['t'](_0x12b2f0(0x56a))})}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0xe7)],'children':(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x1a2),{'className':'univer-text-sm','children':_0x3cac4d['t'](_0x12b2f0(0x543))})}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x1c7)],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['PictureFill'],'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('span',{'className':'univer-text-sm','children':_0x3cac4d['t']('sheets-shape.fill.pictureFill')})})]}),_0x4e0df0===_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0x173)]&&(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])('div',{'className':_0x12b2f0(0x4d3),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])('div',{'className':_0x12b2f0(0x433),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('span',{'className':_0x12b2f0(0x1e7),'children':_0x3cac4d['t'](_0x12b2f0(0x55e))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Dropdown'],{'disabled':_0xaf80b4,'overlay':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('div',{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x3df)],{'value':_0x15837b,'onChange':_0x33e7cb=>{const _0x245262=_0x12b2f0;var _0xf17594;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{'color':(_0xf17594=_0x446095[_0x245262(0x151)])===null||_0xf17594===void 0x0?void 0x0:_0xf17594[_0x245262(0x436)]}}},{'fill':{'color':_0x33e7cb}}),_0x8516e9(_0x33e7cb),_0x507766(![]);}})}),'open':_0x548812,'onOpenChange':_0x507766,'children':(0x0,react_jsx_runtime['jsxs'])('a',{'className':_0x12b2f0(0x392),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':_0x12b2f0(0x657),'extend':{'colorChannel1':_0x15837b}}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_icons[_0x12b2f0(0x580)],{'className':(0x0,_univerjs_design['clsx'])(_0x12b2f0(0x2d5),{'univer-rotate-180':_0x548812})})]})})]}),(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x597),'children':[(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x1a2),{'className':_0x12b2f0(0x3e8),'children':_0x3cac4d['t']('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x475),'children':(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x2aa),'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x366)],{'className':_0x12b2f0(0x559),'value':_0x3731c2,'disabled':_0xaf80b4,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x397199=>_0x397199+'%','parser':_0xa5df5=>(_0xa5df5===null||_0xa5df5===void 0x0?void 0x0:_0xa5df5[_0x12b2f0(0x4e8)]('%',''))||'','onChange':_0x60f159=>{const _0x5c699f=_0x12b2f0,_0x3e7a54=(0x64-Math[_0x5c699f(0x216)](0x0,Math[_0x5c699f(0x613)](0x64,_0x60f159!==null&&_0x60f159!==void 0x0?_0x60f159:0x0)))/0x64;_0x1bf5e1(_0x3e7a54),updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{..._0x446095['fill'],'fillType':_0x4e0df0}}},{'fill':{..._0x446095[_0x5c699f(0x151)],'fillType':_0x4e0df0,'opacity':_0x3e7a54}}),_0x214d84['setContextValue'](_univerjs_core[_0x5c699f(0x202)],![]);},'onFocus':()=>_0x214d84['setContextValue'](_univerjs_core[_0x12b2f0(0x202)],!![]),'onBlur':()=>{const _0x4e7fcf=_0x12b2f0;_0x214d84[_0x4e7fcf(0x1b8)](_univerjs_core[_0x4e7fcf(0x202)],![]);}})})})]})]}),_0x4e0df0===_univerjs_pro_engine_shape['ShapeFillEnum'][_0x12b2f0(0xe7)]&&(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(GradientFillEditor,{'shapeData':_0x446095,'disableShapeOption':_0xaf80b4,'onUpdate':_0x31d16e=>{const _0x3db8e6=_0x12b2f0;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{..._0x446095[_0x3db8e6(0x151)]}}},{'fill':{..._0x446095[_0x3db8e6(0x151)],..._0x31d16e}});}}),_0x4e0df0===_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['PictureFill']&&(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(ShapeImageFillEditor,{'unitId':_0x44cf3d,'subUnitId':_0x4395a5,'shapeId':_0x5b9029,'shapeData':_0x446095,'disableShapeOption':_0xaf80b4})]});}function shapeGradientTypeToPickerType(_0x5135fd){const _0x40e2da=_0x3e9a34;switch(_0x5135fd){case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x5a8)]:return _0x40e2da(0x22d);case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x1ca)]:return _0x40e2da(0x452);case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x2cd)]:return'angular';case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x20d)]:return _0x40e2da(0x2a6);default:return _0x40e2da(0x22d);}}function pickerTypeToShapeGradientType(_0x3a3f28){const _0x19ee92=_0x3e9a34;switch(_0x3a3f28){case'linear':return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x5a8)];case _0x19ee92(0x452):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)]['Radial'];case _0x19ee92(0x3cf):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x2cd)];case _0x19ee92(0x2a6):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x20d)];default:return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x5a8)];}}function _0x501b(){const _0x3735fd=['FlowchartDecision','ShapeActionButtonHomeIcon','ancestorTransform','1140535ypHKRN','FlowchartOffPageConnector','isCurvedConnectorShape','Sun','ShapeMathNotEqualIcon','_registerDrawingMoveHandler','getTransformer','translate','_getZoomRatio','InsertShapeCommand','getCurrentScrollState','map','getShapeModel','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','Documents','find','IrregularSeal1','DependentOn','_isStartConnectorPoint','_shapeTextEditingService','shape.type.flow-chart-connector','ActionButtonInformation','_handleConnectedEndpointMove','Star7','IUniverInstanceService','_updateShapeAdjustControls','Star16','shape.type.block-arc','sheets-shape.fill.gradientFill','undefined','ShapeMathEqualIcon','removeLinePoints','PieWedge','DocumentDataModel','shape.type.star10','align.right','KeyCode','shape.type.straight-connector2','clear','unsubscribe','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','shape.type.wave','lineJoinType','Star8','image-panel.crop.shape','update$','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','restore','_getConnectPointInfo','shape.type.flow-chart-predefined-process','univer-w-full','shape.type.line-inv','worldPoint','ShapeBentConnector3Arrow1Icon','_subUnitId','sheets-shape.fill.color','shape.type.left-right-arrow','ShapeBorderCallout3Icon','vertical','subscribe','FlowchartOnlineStorage','transformToDrawingPosition','univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','updateContext','sheets-shape.line.endArrowType','ctr','shape.type.math-multiply','sheets-shape.fill.solidFill','_drawingRenderService','isHitLine','align.middle','getAdjustNames','WedgeRoundRectCallout','shape.type.uturn-arrow','classType','ConnectorCoordinateTransform','BOTTOM','redo','onPointerUp$','visible','ShapeGear6Icon','shape.type.plaque','shape.type.callout3','ShapeQuadArrowIcon','LEFT','LineInv','setAdjustValueByName','_resetState','ShapeWedgeRoundRectCalloutIcon','MoreDownIcon','updateConnectionDetection','Star12','clip-adj-','Tools','highlighted','FoldedCorner','ShapeRound2DiagRectIcon','shape.type.curved-connector3-arrow1','updateDocumentStyle','START','UNIVER_SHEET','getBatchAddOp','getFreeze','disposeWithMe','_transformCalculateSrcRect','ShapeLeftArrowIcon','executeCommand','capType','#ffffff','sheets-shape.openPanel','ShapeFlowChartOffpageConnectorIcon','MathNotEqual','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','InsertSheetsShapeMutation','univer-rounded-lg\x20univer-p-3','ShapeFlowChartProcessIcon','offsetX','Shape','shape.type.gear9','mainComponent','Miter','DrawingImageClipService','useState','registerFeatureMenuOffset','_currentUniverService','shape.type.ribbon2','shape.type.cube','Snip2SameRect','name','Linear','Bevel','close','SwooshArrow','has','_sheetDrawingService','_activeImageId','univer-flex\x20univer-flex-col\x20univer-gap-2','_registerGroupFeaturePasteHook','ShapeStraightConnector2Icon','ShapeStar4Icon','CROSSHAIR','blur','RoundRect','ShapeParallelogramIcon','sheet.operation.close-sheet-shape-format-panel','_getDrawingRect','ShapeEllipseRibbonIcon','sheets-shape.line.sketchType.title','_sheetCanvasPopManagerService','getDrawingData','_executeConnectedRouteConnectionCommand','gdRefX','sheets-shape.line.arrowSize.medium','flowchart','ShapeBracketPairIcon','CurvedUpArrow','_findNearestConnectionSite','PlaqueTabs','Round','PictureFill','next','LongDash','SHEET_VIEWPORT_KEY','shape.type.rect-textbox-horizontal','_renderManagerService','Pentagon','fillImageSource','shape.type.bent-arrow','shape.type.flow-chart-decision','verticalAlign','touchDependencies','ShapeFrameIcon','BlockArc','_localeService','IDrawingManagerService','subUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Circle','BentArrow','imageRotateWithShape','documentStyle','ISidebarService','ShapeMoonIcon','lineType','SetShapeDrawingDataCommand','shape.type.corner','_univerInstanceService','createInternalEditorID','merge','worksheet','WrapStrategy','CommandType','_updateAdjustControlPositions','_targetShapeId','error','drawing.operation.set-drawing-active','_handleBasicShapeUpdateConnectorLineShape','drawingType','HorizontalAlign','localeService','Decagon','setShapeData','_baseShapeWidth','sheets-shape.line.arrowType.arrow','file','_componentManager','undo','getBasicShapeRotateBound','FlowchartPunchedCard','adjName','getAdjustValueByName','RightBracket','IrregularSeal2','_baseShapeHeight','offset','setShapeProps','getRealBound','transform','useObservable','shape.type.snip-round-rect','deepClone','shape.type.action-button-beginning','rotation','ShapeDoubleWaveIcon','saveImage','_drawingType','Corner','getCurrentSkeleton','ShapeUturnArrowIcon','getCanvasElement','SetShapeTextFontSizeIncreaseCommand','ShapeFlowChartSortIcon','ShapeRightArrowCalloutIcon','shape.type.action-button-home','isArray','shape.type.can','min','call','ShapeFlowChartCollateIcon','ShapeRightBracketIcon','FlowchartMagneticDrum','getAncestorScale','getDrawingByParam','shape.type.flow-chart-preparation','NoSmoking','index','ShapeBevelIcon','group\x20univer-relative\x20univer-inline-block','univer-hidden','shape.type.ellipse','FlowchartConnector','Hexagon','syncExecuteCommand','Callout3','shape.type.curved-right-arrow','shape.type.action-button-return','ShapeLineIcon','AlignBottomIcon','RightTriangle','starAndBanner','registerCommand','PaintBucketDoubleIcon','angle','shape.type.home-plate','_drawShapeText','OPERATION','ShapeBorderCallout2Icon','clip','_findShapeAtPoint','getStartConnectInfo','ShapeFlowChartPunchedCardIcon','_cxtHandlerPointerMove','symbol','toolbar.horizontalAlignMode.main','_currentConnectionTarget','shape-adjust-point-','clearAdjustControls','defineProperty','univer-text-sm','iterator','sheets-shape.shapeStyle','add$','Line','discreteRangeToRange','clipByShape','RibbonInsertGroup','shape.type.curved-down-arrow','scaleX','ShapeBentConnector3Icon','shape.type.bent-up-arrow','getAdjustInfoByName','SetDrawingApplyMutation','ShapeSnipRoundRectIcon','gradientType','ShapeDecagonIcon','getSkeleton','jsx','subscribeContextValue$','shape.type.rt-triangle','generateRandomId','_sheetShapeAdjustController','isConnectorShape','ShapeActionButtonBlankIcon','horizontalAlign','univer-text-xl\x20univer-text-gray-500','ShapeFlowChartOnlineStorageIcon','getActualSize','RightArrow','_closeShapeEditPanel','_registerComponent','_clearShapeAdjustControls','Curved','isDrawingObject','getDrawingPoints','_isOpenedShapeEditPanel','isNaN','useDependency','updateLinePoints','CloudCallout','_initCommands','align.center','ShapeLeftRightArrowCalloutIcon','univer-relative\x20univer-size-full\x20univer-overflow-visible','invert','shape.type.round2-same-rect','basicShape','ShapeWedgeRectCalloutIcon','FlowchartExtract','dataModel','left','getTransformerByCreate','ShapeNotchedRightArrowIcon','equationShape','LAYOUT','ShapeLeftBracketIcon','GradientFill','shape.type.border-callout3','ShapeAccentCallout2Icon','ShapeHexagonIcon','ShapeDownArrowIcon','shape.type.corner-tabs','Plugin','params','getEndConnectInfo','ShapeStar7Icon','univer-text-gray-500','HorizontalScroll','sheet.command.set-shape-text-font-size-increase','SquareTabs','ShapeActionButtonInformationIcon','shape.type.ellipse-ribbon','_setTransForm','pushUndoRedo','ShapeSquareTabsIcon','localToWorld','ShapeChartStarIcon','URL','_sheetsShapeService','Button','mergeMenu','rectangle','ActionButtonEnd','ShapeStar32Icon','ShapeQuadArrowCalloutIcon','SmileyFace','AccentCallout1','shape.type.star4','render','calculate','shape-text-editor','ShapeLeftArrowCalloutIcon','AlignOperationCommand','SheetsSelectionsService','Transform','Medium','Large','Heart','DiagStripe','setTimeout','shape.type.accent-border-callout3','ShapeUpArrowCalloutIcon','value','_drawSimpleText','ShapeAccentBorderCallout1Icon','drawWith','Gear6','rect','shape.type.quad-arrow','LeftRightCircularArrow','ShapeLeftUpArrowIcon','stopPropagation','useEffect','cxnIndex','DiamondArrow','onDblclick$','NoLine','ShapeTeardropIcon','BracePair','ShapeTypeEnum','sheet.shape.edit.panel','Disposable','ShapeSketchTypeEnum','ActionButtonHome','multiply','gdRefY','_baseDrawingRect','connector-handler-','sheets-shape.rotateLeft90','FOCUSING_COMMON_DRAWINGS','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','adjustValues','_moveConnectorWithShape','ShapeBentArrowIcon','FlowchartSummingJunction','UpArrowCallout','8127691zzHaLu','ActionButtonBlank','ShapeSnip2DiagRectIcon','Callout2','getConnectionSiteList','setCanUseShapeClip','MathDivide','RemoveSheetsShapeMutation','Funnel','DRAWING_IMAGE','sheet.command.menu-insert-shape','type','ShapeCornerIcon','shape.type.math-divide','endArrow','getMatrix','shape.type.pentagon','#FFFFFF','src','align.top','sqrt','changeStart$','Star32','shape.type.star16','_initSelection','IConfigService','fill','ShapeAccentCallout3Icon','getShapeDataById','ShapeOctagonIcon','shape.type.flow-chart-collate','top','ShapeLeftCircularArrowIcon','sheets-shape.fill.picture.align.t','_activeAdjustInfo','shape.type.action-button-movie','Flat','BentUpArrow','addImageSourceCache','ShapeIrregularSeal2Icon','ShapeMathDivideIcon','addClipboardHook','offsetY','_clearConnectionSites','Rect','ShapeCurvedLeftArrowIcon','useAbsolutePosition','LeftCircularArrow','shape.type.striped-right-arrow','shape.type.pie','useEditor','Tile','PREDEFINED_HOOK_NAME','ShapeHomePlateIcon','sheets-shape.fill.title','shape.type.flow-chart-delay','FlowchartDocument','stops','getDrawingShapeKeyByDrawingSearch','sheets-shape.toggleTextVertical','SolidFill','RoundDot','_highlightedSiteIndex','VerticalScroll','7jhvToo','_initEvents','shape.type.flow-chart-terminator','getBentTypeFromPoints','ShapeDodecagonIcon','shape.type.border-callout2','getRenderById','_contextService','sheets-shape.toggleFlipV','entries','ThemeService','SolidLine','width','_sidebarService','sheets-shape.line.beginArrowSize','editingParams$','shape.type.curved-up-arrow','focus$','ToggleSheetsShapeFlipCommand','clsx','addObject','shape.type.flow-chart-extract','collapsed','ShapeRightArrowIcon','style','shape.type.left-circular-arrow','_createControls','_lastEditingShapeKey','sheets-shape.fill.picture.insert','shape-text-editor-position-wrapper','primary.600','_shapeId','Snip1Rect','shape.type.double-wave','dispose','_activeShapeModel','updateDocumentRenderConfig','isFinite','ActionButtonForwardNext','sheets-shape.hidePanel','UniverSheetsShapeUIPlugin','getShapeTypeById','CurvedLeftArrow','span','save','sheets-shape.formatShape','getInverseCoord','DownArrowCallout','_executeResizeCommand','section','_createShapeAdjustControls','worldPoints','shape.type.line','isHorizontal','shape.type.snip2-diag-rect','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeTrapezoidIcon','Parallelogram','ShapeRoundRectIcon','sheet.command.set-shape-text-font-size','SheetDrawingAnchor','keys','shape.type.chord','scaleY','shape.type.chart-x','setContextValue','BentConnector3','sheets-shape.line.joinType.round','ShapeUpDownArrowCalloutIcon','univer-pt-2','DRAWING_OBJECT_LAYER_INDEX','_getConnectionSiteAngle','shape.type.star7','LightningBolt','shape.type.circular-arrow','create','shape.type.callout1','ShapeActionButtonBackPreviousIcon','isStartConnectorPoint','point','Radio','shape.type.swoosh-arrow','ShapeBentConnector3Arrow2Icon','Radial','cos','paragraphStyle','_loadShapePictureFill','startX','with','shape.type.curved-left-arrow','_registerImageShapeClipDelegate','startOffset','ChartPlus','_isConnecting','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','translateWithPrecision','shape.type.left-arrow','setEditing','sketchType','ChartX','shape.type.math-plus','lineShapeId','sheets-shape.fill.picture.align.b','Vector2','shape.type.notched-right-arrow','BreakLineCommand','activeSheet$','pipe','renderDrawingShape','UniverSheetsDrawingUIPlugin','GradientColorPicker','FlowchartOr','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','computeStraightConnectorLayout','_activeShapeInfo','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','_initPermission','ShapeFlowChartPredefinedProcessIcon','_sheetDrawingShapeRenderController','_init','ShapeChevronIcon','prototype','shape.type.square-tabs','getColorFromTheme','shape.type.flow-chart-offline-storage','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','_handleConnectedEndpointPointerUp','_shapeService','isHit','string','ShapeRound1RectIcon','ShapeAccentCallout1Icon','sheets-shape.fill.picture.align.br','ShapeSnip2SameRectIcon','SetSheetsShapeRotateCommand','Plaque','_generateCutPasteMutations','Dash','ShapeArrowSizeEnum','FOCUSING_PANEL_EDITOR','setCursor','sheets-shape.line.beginArrowType','ShapeRightBraceIcon','_initialize','ShapeHalfFrameIcon','VIEW_MAIN','_generatePasteMutations','getConnectorLinePoints','univer-size-full','sheets-shape.fill.picture.scaleX','Diamond','MenuItemType','_props','DEFAULT_PASTE','rowStartY','Teardrop','cxnPointFill','from','Dodecagon','max','_rerouteConnectorLine','EMPTY','SheetPermissionCheckController','LongDashDotDot','ShapeArcIcon','getObjectIncludeInGroup','setDocumentData','ShapePlaqueIcon','indexOf','shape.type.horizontal-scroll','_clearControls','ShapeChartXIcon','onPointerMove$','DocumentSkeleton','getBatchRemoveOp','pluginName','transformByState','abs','UNIVER_DOC','ShapeLeftRightRibbonIcon','shape.type.left-right-up-arrow','blockArrow','linear','sheets-shape.line.joinType.miter','Accordion','ShapeFlowChartMagneticDrumIcon','shape.type.star32','ShapeBorderCallout1Icon','UUID','getZoomRatio','BorderCallout3','function','setHighlighted','horizontal','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','worldRect','_getImagePrstGeom','connection-site-','ShapeFolderCornerIcon','shape.type.flow-chart-document','computeConnectorResizeLayout','ShapeCurvedConnector3Arrow1Icon','_loadAndSetImage','RightJustifyingIcon','SnipRoundRect','srcRect','_draggingConnectorId','ShapeRibbonIcon','Octagon','shape.type.rect','getSheetCommandTarget','Chevron','ShapeLeftRightArrowIcon','ShapeFlowChartManualOperationIcon','sheet.command.set-shape-text-font-size-decrease','jsxs','shapeType','IUndoRedoService','shape.type.round2-diag-rect','floor','9GVKqeU','__esModule','_baseHeight','#000000','shape.type.heart','isInGroup','RemoveSheetDrawingCommand','shape.type.flow-chart-offpage-connector','isLineShape','shape.type.flow-chart-multidocument','onStarting','shape.type.bent-connector3-arrow1','blockExecuteWithoutPermission','onerror','BorderCallout2','_copyInfo','shape.type.accent-border-callout1','_connectionSiteObjects','parseFloat','_executeConnectionCommand','align.bottom','disableShapeOption','DoubleWave','UpDownArrowCallout','toolbar.fillColor.main','ImageFillModeEnum','resetCursor','sheets-shape.toggleFlipH','shape.type.flow-chart-or','shape.type.chart-star','ActionButtonDocument','_imageIoService','routeConnectorLineShape','ShapeStar16Icon','ISheetDrawingService','relation','ShapeRound2SameRectIcon','data','\x20px','rotate(','WedgeEllipseCallout','RichTextEditingMutation','sheets-shape.line.dashType.longDashDotDot','ShapeTextEditorContainer','sheets-shape.fill.picture.offsetX','ENTER','shape.type.lightning-bolt','shape.type.bent-connector3-arrow2','FlowchartManualInput','onPointerDown$','sheets-shape.line.dashType.roundDot','POSITIVE_INFINITY','AccentCallout2','UniverSheetsShapePlugin','forEach','ShapeSmileyFaceIcon','hasOwnProperty','FlowchartManualOperation','toolbar.resetColor','toDisposable','shape.type.folder-corner','imageTile','ShapeCurvedRightArrowIcon','useLeftAndRightArrow','onTransformChange$','ShapeMathPlusIcon','_drawRichText','normal','ShapeUpDownArrowIcon','DrawingApplyType','getSheetBySheetId','shape.type.action-button-document','ShapeFlowChartMagneticTapeIcon','CurvedConnector3','#bcbcbc','toolbar.verticalAlignMode.main','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','_groupCopyPasteController','shape.type.flow-chart-alternate-process','ShapeVerticalScrollIcon','ShapeFlowChartDocumentIcon','scene','StraightConnector1','diamond','stroke','ShapeFlowChartExtractIcon','useKeyboardEvent','univer-w-20','TOP','ShapeGradientTypeEnum','ShapeNonIsoscelesTrapezoidIcon','end','sheets-shape.fill.transparency','ChartStar','ShapeFlowChartConnectorIcon','SHEET_SHAPE_UI_PLUGIN','shape.type.arc','ShapeRtTriangleIcon','LeftArrowCallout','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','ShapeBlockArcIcon','Wave','4QtrlXM','_sheetClipboardService','ShapeCornerTabsIcon','Ribbon','getDrawingOrder','Star4','FlowchartCollate','IEditorService','ShapeCallout3Icon','ShapeStar6Icon','ShapeEllipseRibbon2Icon','sheets-shape.line.arrowSize.large','RibbonStartGroup','ShapeFlowChartPreparationIcon','onRendered','UpdateConnectorRelationCommand','sheets-shape-ui','FlowchartTerminator','_sheetSkeletonService','ShapeFlowChartSummingJunctionIcon','Angular','attachRangeWithCoord','ShapeStripedRightArrowIcon','getConnectionRelation','_getImageDrawingInfo','toStringTag','SetInlineFormatTextBackgroundColorCommand','CopySheetCommand','univer-text-gray-600\x20univer-transition-transform','getSkeletonParam','33DNpFEV','_openShapeEditPanel','get','LeftRightArrow','shape.type.parallelogram','CENTER','push','ShapeArrowTypeEnum','shape-text-','_initEditingParams','renderConfig','Select','ShapeLineTypeEnum','_activeShapeId','_registerFocusChangeHandler','_handleConnectorPointerUp','COLOR_PICKER_COMPONENT','icon','ShapeFlowChartAlternateProcessIcon','WedgeRectCallout','ShapeFlowChartOfflineStorageIcon','useRef','_hasReset','marginTop','_getShapeAdjustInfosById','_getShapeInfo','Observable','SELECTOR','DocumentViewModel','univer-w-28','flipX','shape.type.no-smoking','_updateSrcRectByTransform','ShapeLeftRightUpArrowIcon','Frame','WRAP','beforeCommandExecuted','_registerDrawingFocusChangeHandler','ShapeIrregularSeal1Icon','CUT','FlowchartMerge','VERTICAL_ROTATE_ANGLE','_reset','resize','ShapeDonutIcon','changing$','SHAPE','setShouldShowAdjust','_adjName','sheets-shape.fill.picture.align.tl','makeDirty','sheetTransform','doc','ShapeSwooshArrowIcon','shape.type.flow-chart-manual-input','add','getState','_adjHandlerPointerMove','shape.type.sun','ShapeFlowChartDelayIcon','stringify','LeftJustifyingIcon','_addShapeAdjustControl','getParent','INSERT','ShapeFlowChartPunchedTapeIcon','None','setPrstGeomAdjValues','shape.type.round1-rect','remove$','prstGeom','_initSheetChange','VIEW_MAIN_TOP','button','getImageSize','CURSOR_TYPE','ShapeDocAlignCommand','_unitId','cxnPointRadius','ShapePieWedgeIcon','shape.type.cloud-callout','ShapeLineDashEnum','parse','OpenArrow','ShapeEllipseIcon','shape.type.right-arrow-callout','body','ShapePieIcon','clearTimeout','sheet.command.update-shape-data','_updateTransform','complete','some','ShapeCanIcon','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','useMemo','34042jBhqhi','ShapePentagonIcon','shape.type.bevel','FlowChartOfflineStorage','sheets-shape.line.capType.square','_draw','targetShapeId','ActionButtonBeginning','getViewportByCell','shape.type.accent-callout1','_initMenu','applyPoint','WorksheetEditPermission','DrawingRenderService','subscribeEvent','_sheetInterceptorService','DashDot','focusDrawing','shape.type.flow-chart-summing-junction','FlowchartMagneticTape','getOwnPropertyDescriptor','insertGroupObject','shape.type.irregular-seal2','COPY_TYPE','_getSceneAndTransformerByDrawingSearch','getPrototypeOf','BUTTON_SELECTOR','switchMap','_activeTargetShapeId','REMOVE','UpdateShapeDataCommand','univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','ShapeDownArrowCalloutIcon','COMMAND','sheets-shape.line.sketchType.freehand','default','_isDrawingShapePointDown','_isHighlighted','flipY','IRenderManagerService','shape.type.left-arrow-callout','ShapeChordIcon','shape.type.funnel','getDrawingEditable','_commandService','getCurrentRangeDisable$','objects','InputNumber','open','setOnSavingEditorData','shape.type.quad-arrow-callout','shape.type.flow-chart-punched-card','WorkbookEditablePermission','shape.type.flow-chart-magnetic-drum','sheets-shape.fill.noFill','EllipseRibbon','shape.type.left-up-arrow','object','setSrcRect','_addShapeConnectorHandlerObjects','SHAPE_TEXT','SetShapeTextVerticalAlignCommand','_addShapeConnectorHandlerObject','ShapeRectTextboxVerticalIcon','sheets-shape.fill.picture.alignment','ShapeCurvedUpArrowIcon','_createCopyInfoByRange','computeConnectorRouteLayout','height','_drawingAddListener','ShapeDiagStripeIcon','shape.type.callout2','_connectorObjects','sheets-shape.line.dashType.longDashDot','FlowchartDisplay','21464ijdsHc','shape.type.bent-connector3','UpArrow','_insertShapes','getUnitId','ActionButtonReturn','_registerShapeMenu','oKey','_attachAdjustEvent','ShapeBentUpArrowIcon','shape.type.flow-chart-sort','sheetViewStartColumn','ImageSourceTypeEnum','ShapeFunnelIcon','shape.type.wedge-ellipse-callout','setZoomRatio','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','ShapeCallout1Icon','ShapeStar24Icon','FlowchartPredefinedProcess','sheets-shape.line.arrowType.ovalArrow','ShapeCloudCalloutIcon','LocaleService','startArrow','BehaviorSubject','getCurrentLastSelection','updateDocumentDataMargin','UPDATE','Small','setFillImage','MIDDLE','SheetsShapeService','HalfFrame','VerticalCenterIcon','constructor','Module','_handleFreeEndpointMove','sheets-shape.line.capType.flat','getBatchUpdateOp','shape.type.brace-pair','shape.type.snip1-rect','shape.type.math-minus','shape.type.teardrop','changeShapeType','_imageShapeClipController','shape.type.border-callout1','shape.type.diamond','IMenuManagerService','_baseLeft','shape.type.right-bracket','FlowchartDelay','onCommandExecuted','adjHandleSize','ActionButtonHelp','bind','_getShapeAdjustPointListById','LongDashDot','ShapeActionButtonHelpIcon','1822080IKCcXs','refreshTransform','_isShouldShowDrawingShapeAdjust','shape.type.up-arrow','shape.type.action-button-end','shape.type.rect-textbox-vertical','ShapeFlowChartMagneticDiskIcon','getObject','prstGeomAdjValues','disableObjectsEvent','ang','getCurrentTypeOfUnit$','shape.type.smiley-face','custom','shape.type.action-button-forward-next','FlowchartAlternateProcess','_activeShapeAdjustPointList','shape.type.star24','IImageIoService','angular','Round1Rect','slice','ISheetClipboardService','ShapeCallout2Icon','ShapeActionButtonForwardNextIcon','shape-text-editor-content','sheets-shape.fill.picture.align.r','Callout1','ShapeHeartIcon','warn','sheets-shape.line.arrowType.none','ShapePlusIcon','SheetCanvasPopManagerService','ShapeGear9Icon','shape.type.snip2-same-rect','ColorPicker','imageFillMode','DownArrow','shape.type.plaque-tabs','ActionButtonBackPrevious','none','ShapeFlowChartMultidocumentIcon','UpDownArrow','clone','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ShapeFlowChartTerminatorIcon','AccentBorderCallout3','ShapeChartPlusIcon','1402068pjmLqR','ShapeWedgeEllipseCalloutIcon','SheetsDrawingGroupCopyPasteController','FlowchartMagneticDisk','gdRefR','_cxnIndex','shape.type.straight-connector1','sheets-shape.line.joinType.bevel','dashType','editorHeight','ShapeActionButtonMovieIcon','ICommandService','composeMatrix','getDrawingVisible','_sidebarDisposable','ShapeStar12Icon','DRAWING_SHAPE','opacity','toPrimitive','pick','shape.type.gear6','FORMAT','shapeData','Path','MathMinus','register','SetShapeTextFontSizeDecreaseCommand','domX','Square','IContextService','setSelectionRanges','ShapeUpArrowIcon','ShapeAccentBorderCallout2Icon','_executeConnectedRouteResizeCommand','getDrawingSearch','ShapePlaqueTabsIcon','sheets-shape.line.width','ShapeAccentBorderCallout3Icon','SheetSkeletonManagerService','_injector','shape.type.math-not-equal','MEDIA','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','registerClipDelegate','div','current','_registerOperations','ShapeActionButtonDocumentIcon','Image','adjHandleStroke','sheets-shape.shapePosition','VIEW_MAIN_LEFT','domY','target','Cube','Ribbon2','ShapeLeftBraceIcon','imageOpacity','QuadArrow','ShapeMathMultiplyIcon','shape.type.down-arrow-callout','ShapeStar10Icon','getViewport','ShapeActionButtonBeginningIcon','StripedRightArrow','getValue','displayName','shape.type.wedge-round-rect-callout','getDocumentData','startConnectionDetection','shape.type.moon','univer-flex\x20univer-items-center\x20univer-justify-between','Checkbox','FlowchartMultiDocument','color','onload','univer-box-border\x20univer-px-4\x20univer-text-sm','startWith','SquareDot','CurvedRightArrow','Round2SameRect','shape.type.non-isosceles-trapezoid','clearAdjustValue','size','length','_shapeUpdateListener','_currentScene','ShapeCubeIcon','univer-text-primary-600','calcAdjValue','getShapeTextRect','isEditing','preValue','sheets-shape.line.sketchType.handDrawn','Trapezoid','CircularArrow','_baseShapeTop','sheets-shape.fill.picture.scaleY','Pie','univer-mb-2','shape.type.flow-chart-punched-tape','input','radial','BUTTON','LeftBracket','wrapStrategy','shape.type.star8','Star6','registerRenderModule','getShapeTextData','draw','SheetInterceptorService','shape.type.up-down-arrow','strokeWidth','shape.type.irregular-seal1','ShapeRectTextboxHorizontalIcon','getBasicShapeRelation','_getOrCreateShapeModel','shape.type.left-brace','ShapeDiamondIcon','ShapeActionButtonEndIcon','sheets-shape.line.dashType.dash','files','getMenuHiddenObservable','UpdateLineShapeResizeCommand','_urlImageService','shape.type.curved-connector3-arrow2','shape.type.plus','sheets-shape.line.capType.title','DrawingCommonPanel','getUnit','sheets-shape.line.title','getShapeData','_baseTop','shape.type.curved-connector3','IURLImageService','NoFill','univer-flex\x20univer-items-center\x20univer-gap-3','shape.type.flow-chart-internal-storage','ShapeCurvedDownArrowIcon','getShapeType','sin','shape.type.star12','refreshAdjustControls','round','sheets-shape.line.dashType.title','ShapeFlowChartInputOutputIcon','ShapeStar5Icon','SheetScrollManagerService','gradientStops','RibbonPosition','shape.type.flow-chart-input-output','sheetViewStartRow','shape.group.','vertexAngle','HandDrawn','getConnectionInfo','memo','VerticalAlign','ShapeLightningBoltIcon','other','ShapeSnip1RectIcon','_clipService','alignment','FlowchartPunchedTape','_baseWidth','_sheetPermissionCheckController','RemoveSheetCommand','AlignTopIcon','ShapeLineCapEnum','Ellipse','BorderCallout1','startY','ShapeStraightConnector1Icon','ShapeDefaultConfig','fillType','_cxtHandlerPointerUp','DRAWING_DOM','FlowChartInputOutput','ShapeActionButtonReturnIcon','shape.type.diag-stripe','_isImagePointerDown','GROUP','shape.type.donut','shape.type.pie-wedge','ShapeLeftRightCircularArrowIcon','getFocusDrawings','_baseShapeLeft','unitId','ShapeStar8Icon','viewportScrollX','Arrow','shapeId','sheets-shape.line.capType.round','_showConnectionSites','_initCopyPaste','isHighlighted','DocSkeletonManagerService','shape.type.cloud','ShapeFlowChartOrIcon','sheets-shape.line.dashType.dashDot','adjHandleFill','Inject','ShapeFlowChartManualInputIcon','values','colStartX','Solid','ShapeRibbon2Icon','_shapes','ShapeActionButtonSoundIcon','_editingParams$','ShapeFillEnum','changeEnd$','sheets-shape.fill.picture.tileAsTexture','Moon','ShapeLineInvIcon','ShapeCurvedConnector3Icon','drawingId','shape.type.heptagon','start','ShapeCurvedConnector3Arrow2Icon','Triangle','isRenderLinePointsMode','_sheetBasicShapeConnectionPointController','shape.type.vertical-scroll','UniverInstanceType','align.left','_updateImageAdjValues','_drawingManagerService','ShapeWaveIcon','ShapeFlowChartDecisionIcon','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','_handleFreeEndpointPointerUp','ShapeCircularArrowIcon','decorate','beginPath','shape.type.flow-chart-display','ComponentManager','shape.type.math-equal','shape.type.right-arrow','shape.type.left-right-ribbon','ShapeFlowChartDisplayIcon','gdRefAng','ShapeModel','MathPlus','asObservable','sheets-shape.insertShape','registerFeaturePasteHook','shapeModel','sheet.command.set-shape-text-horizontal-align','ShapeHeptagonIcon','ShapeIcon','replace','_activeAdjustPointList','copyType','enumerable','_focusedDrawings','Star24','ShapeFlowChartInternalStorageIcon','ShapeCloudIcon','Dropdown','@univerjs-pro/sheets-shape-ui','HomePlate','AccentBorderCallout2','updateShapeFillImage','ShapeLineJoinEnum','_adjHandlerPointerUp','ShapeRectIcon','RENDER_CLASS_TYPE','sheets-shape.line.endArrowSize','auto','MathMultiply','enableObjectsEvent','getImage','_clearShapeConnectorHandlerObjects','line','RadioGroup','_transform','ShapeFlowChartMergeIcon','setPrstGeom','group','ShapeHorizontalScrollIcon','DrawingTypeEnum','_getScrollInfo','callout','getShapePopupMenus','ShapeTriangleIcon','shapeKey','_generateCopyPasteMutations','_isStartAdjusting','_context','filter','_onSavingEditorData$','onScrollAfter$','getEditing','textRect','_calculateFreeEndpointAngle','shape.type.star5','includes','ResetInlineFormatTextBackgroundColorCommand','getContextValue','VIEW_MAIN_LEFT_TOP','sheets-shape.line.dashType.squareDot','image','buildClipPath','shape.type.left-bracket','CurvedDownArrow','useCallback','viewportScrollY','dataStream','SetShapeTextHorizontalAlignCommand','3289490pEUHXW'];_0x501b=function(){return _0x3735fd;};return _0x501b();}function GradientFillEditor(_0x4d8012){const _0xc1414c=_0x3e9a34,{shapeData:_0x27b2e3,disableShapeOption:_0x33b7ec,onUpdate:_0x20f144}=_0x4d8012,_0x2ac570=(0x0,react[_0xc1414c(0x336)])(()=>{const _0x415af7=_0xc1414c;var _0x5cfc2e;const _0x330601=_0x27b2e3[_0x415af7(0x151)];return{'type':shapeGradientTypeToPickerType(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x64c)]),'angle':(_0x5cfc2e=_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601['gradientAngle'])!==null&&_0x5cfc2e!==void 0x0?_0x5cfc2e:0x5a,'stops':(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x481)])&&_0x330601[_0x415af7(0x481)][_0x415af7(0x440)]>=0x2?_0x330601[_0x415af7(0x481)][_0x415af7(0x532)](_0xd4adac=>({'color':_0xd4adac['color'],'offset':_0xd4adac['position']*0x64})):[{'color':(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x436)])||_0x415af7(0x593),'offset':0x0},{'color':_0x415af7(0x256),'offset':0x64}]};},[_0x27b2e3[_0xc1414c(0x151)]]),_0x1a3516=_0x53dcb9=>{const _0x2153cc=_0xc1414c,_0x45c8cf=pickerTypeToShapeGradientType(_0x53dcb9['type']),_0x464de6=_0x53dcb9['angle'];_0x20f144({'gradientType':_0x45c8cf,'gradientAngle':_0x464de6,'gradientStops':_0x53dcb9[_0x2153cc(0x170)][_0x2153cc(0x532)](_0xa592e2=>({'color':_0xa592e2[_0x2153cc(0x436)],'position':_0xa592e2[_0x2153cc(0x5fd)]/0x64}))});};return(0x0,react_jsx_runtime[_0xc1414c(0x64f)])('div',{'className':_0xc1414c(0x1bc),'children':(0x0,react_jsx_runtime[_0xc1414c(0x64f)])(_univerjs_design[_0xc1414c(0x1e5)],{'value':_0x2ac570,'onChange':_0x1a3516})});}function ShapeLineEditor(_0x3c3d57){const _0x4f3c43=_0x3e9a34;var _0x4fdfd1,_0x4b8b1f,_0x35d833,_0xe1ec0c,_0x574339,_0x4c38d6,_0x4b0b43,_0x3b318b,_0x29834b,_0x4dec79,_0x11c8a2,_0x4c15e8,_0x5b6816,_0x567a41,_0x3bba9c,_0x34e902;const _0x3de282=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x398)]),_0x23d759=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x3f7)]),_0x32a0aa=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x409)]),{shapeData:_0x220e25,isLineShape:_0x1e8cbe,unitId:_0x3f73ec,subUnitId:_0x318c88,shapeId:_0x58aab2,disableShapeOption:_0x8588d1}=_0x3c3d57,_0x4a6cba=_0x220e25['stroke'],[_0x1cb1ad,_0x5aee6c]=(0x0,react[_0x4f3c43(0x5a1)])((_0x4fdfd1=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['lineStrokeType'])!==null&&_0x4fdfd1!==void 0x0?_0x4fdfd1:_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x182)]),[_0x5e9aaa,_0x30a8d7]=(0x0,react['useState'])((_0x4b8b1f=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x436)])!==null&&_0x4b8b1f!==void 0x0?_0x4b8b1f:_univerjs_pro_engine_shape[_0x4f3c43(0x49a)][_0x4f3c43(0x2a7)]),[_0x5af825,_0x133635]=(0x0,react[_0x4f3c43(0x5a1)])((_0x35d833=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x3fd)])!==null&&_0x35d833!==void 0x0?_0x35d833:0x1),[_0x309edb,_0x5714d6]=(0x0,react[_0x4f3c43(0x5a1)])((_0xe1ec0c=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x183)])!==null&&_0xe1ec0c!==void 0x0?_0xe1ec0c:_univerjs_pro_engine_shape[_0x4f3c43(0x49a)][_0x4f3c43(0x45d)]),[_0x199aed,_0x26f3b3]=(0x0,react['useState'])((_0x574339=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x3f4)])!==null&&_0x574339!==void 0x0?_0x574339:_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x4ba)]),[_0x78f49c,_0x371cf7]=(0x0,react['useState'])((_0x4c38d6=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x592)])!==null&&_0x4c38d6!==void 0x0?_0x4c38d6:_univerjs_pro_engine_shape[_0x4f3c43(0x495)]['Flat']),[_0x23513c,_0x4e6e31]=(0x0,react[_0x4f3c43(0x5a1)])((_0x4b0b43=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['lineJoinType'])!==null&&_0x4b0b43!==void 0x0?_0x4b0b43:_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x4f3c43(0x59f)]),[_0x3ffb41,_0x2148a2]=(0x0,react[_0x4f3c43(0x5a1)])((_0x3b318b=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['sketchType'])!==null&&_0x3b318b!==void 0x0?_0x3b318b:_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x4f3c43(0x319)]),_0x21d23a=_0x220e25,[_0x24bb47,_0x2eabd5]=(0x0,react[_0x4f3c43(0x5a1)])((_0x29834b=(_0x4dec79=_0x21d23a['ln'])===null||_0x4dec79===void 0x0||(_0x4dec79=_0x4dec79['startArrow'])===null||_0x4dec79===void 0x0?void 0x0:_0x4dec79['type'])!==null&&_0x29834b!==void 0x0?_0x29834b:_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x319)]),[_0x4434ca,_0xe4bd76]=(0x0,react[_0x4f3c43(0x5a1)])((_0x11c8a2=(_0x4c15e8=_0x21d23a['ln'])===null||_0x4c15e8===void 0x0||(_0x4c15e8=_0x4c15e8[_0x4f3c43(0x399)])===null||_0x4c15e8===void 0x0?void 0x0:_0x4c15e8[_0x4f3c43(0x43f)])!==null&&_0x11c8a2!==void 0x0?_0x11c8a2:_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10e)]),[_0x56c522,_0x5b72c0]=(0x0,react[_0x4f3c43(0x5a1)])((_0x5b6816=(_0x567a41=_0x21d23a['ln'])===null||_0x567a41===void 0x0||(_0x567a41=_0x567a41[_0x4f3c43(0x145)])===null||_0x567a41===void 0x0?void 0x0:_0x567a41[_0x4f3c43(0x142)])!==null&&_0x5b6816!==void 0x0?_0x5b6816:_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0x4f3c43(0x319)]),[_0x585ecd,_0x4ee260]=(0x0,react['useState'])((_0x3bba9c=(_0x34e902=_0x21d23a['ln'])===null||_0x34e902===void 0x0||(_0x34e902=_0x34e902['endArrow'])===null||_0x34e902===void 0x0?void 0x0:_0x34e902[_0x4f3c43(0x43f)])!==null&&_0x3bba9c!==void 0x0?_0x3bba9c:_univerjs_pro_engine_shape[_0x4f3c43(0x201)]['Medium']),[_0x30b815,_0x25cb1f]=(0x0,react[_0x4f3c43(0x5a1)])(![]),_0x303f60=0x64-_0x5af825*0x64,_0x3f3f24=[{'label':_0x3de282['t']('sheets-shape.line.dashType.solid'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x4ba)])},{'label':_0x3de282['t'](_0x4f3c43(0x285)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x174)])},{'label':_0x3de282['t'](_0x4f3c43(0x51a)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x43a)])},{'label':_0x3de282['t'](_0x4f3c43(0x465)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x200)])},{'label':_0x3de282['t'](_0x4f3c43(0x4b4)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x347)])},{'label':_0x3de282['t']('sheets-shape.line.dashType.longDash'),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x5c8)])},{'label':_0x3de282['t'](_0x4f3c43(0x380)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x3ba)])},{'label':_0x3de282['t'](_0x4f3c43(0x27d)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x21a)])}],_0x105e87=[{'label':_0x3de282['t'](_0x4f3c43(0x3a7)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)][_0x4f3c43(0x15b)])},{'label':_0x3de282['t'](_0x4f3c43(0x4ad)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)]['Round'])},{'label':_0x3de282['t'](_0x4f3c43(0x33b)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)][_0x4f3c43(0x408)])}],_0x393b25=[{'label':_0x3de282['t']('sheets-shape.line.sketchType.none'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x319)])},{'label':_0x3de282['t']('sheets-shape.line.sketchType.curved'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x65e)])},{'label':_0x3de282['t'](_0x4f3c43(0x359)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)]['Freehand'])},{'label':_0x3de282['t'](_0x4f3c43(0x449)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x487)])}],_0x2061ee=[{'label':_0x3de282['t'](_0x4f3c43(0x22e)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x4f5)][_0x4f3c43(0x59f)])},{'label':_0x3de282['t'](_0x4f3c43(0x1ba)),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x4f3c43(0x5c5)])},{'label':_0x3de282['t'](_0x4f3c43(0x3f3)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x4f5)][_0x4f3c43(0x5a9)])}],_0x3de0bc=[{'label':_0x3de282['t'](_0x4f3c43(0x3da)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x319)])},{'label':_0x3de282['t'](_0x4f3c43(0x5f2)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x4ab)])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.openArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x32a)])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.stealthArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)]['StealthArrow'])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x121)])},{'label':_0x3de282['t'](_0x4f3c43(0x396)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)]['OvalArrow'])}],_0x9f9f20=[{'label':_0x3de282['t']('sheets-shape.line.arrowSize.small'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x39e)])},{'label':_0x3de282['t'](_0x4f3c43(0x5bf)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10e)])},{'label':_0x3de282['t'](_0x4f3c43(0x2c4)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10f)])}];return(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x1ae),'children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design[_0x4f3c43(0x500)],{'value':String(_0x1cb1ad),'disabled':_0x8588d1,'onChange':_0x506e68=>{const _0x4afb5a=_0x4f3c43;var _0x234295;_0x5aee6c(Number(_0x506e68)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x234295=_0x220e25[_0x4afb5a(0x2a7)])===null||_0x234295===void 0x0?void 0x0:_0x234295['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0x506e68)}});},'direction':_0x4f3c43(0x561),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x1c7)],{'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x123)]),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x63d),'children':_0x3de282['t']('sheets-shape.line.noLine')})}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x1c7)],{'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)]['SolidLine']),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x63d),'children':_0x3de282['t']('sheets-shape.line.solidLine')})})]}),_0x1cb1ad!==_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x123)]&&(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x4d3),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t']('sheets-shape.line.color')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x4f0)],{'disabled':_0x8588d1,'overlay':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x599),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x3df)],{'value':_0x5e9aaa,'onChange':_0x1352ab=>{const _0x5d3b3c=_0x4f3c43;var _0x8f5f0d;updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'color':(_0x8f5f0d=_0x220e25[_0x5d3b3c(0x2a7)])===null||_0x8f5f0d===void 0x0?void 0x0:_0x8f5f0d[_0x5d3b3c(0x436)]}}},{'stroke':{'color':_0x1352ab}}),_0x30a8d7(_0x1352ab),_0x25cb1f(![]);}})}),'open':_0x30b815,'onOpenChange':_0x25cb1f,'children':(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('a',{'className':_0x4f3c43(0x392),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_icons[_0x4f3c43(0x62c)],{'className':_0x4f3c43(0xf1),'extend':{'colorChannel1':_0x5e9aaa}}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design[_0x4f3c43(0x18a)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x30b815})})]})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x3e8),'children':_0x3de282['t']('sheets-shape.line.transparency')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x597),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':'univer-w-20\x20univer-flex-1','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x366)],{'className':_0x4f3c43(0x559),'value':_0x303f60,'disabled':_0x8588d1,'min':0x0,'max':0x64,'formatter':_0x3dda56=>_0x3dda56+'%','parser':_0x1670b9=>(_0x1670b9===null||_0x1670b9===void 0x0?void 0x0:_0x1670b9[_0x4f3c43(0x4e8)]('%',''))||'','onChange':_0x5cd49f=>{const _0x2ca053=_0x4f3c43;var _0x27c06d;const _0xbdccd6=(0x64-Math[_0x2ca053(0x216)](0x0,Math[_0x2ca053(0x613)](0x64,_0x5cd49f!==null&&_0x5cd49f!==void 0x0?_0x5cd49f:0x0)))/0x64;_0x133635(_0xbdccd6),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'opacity':(_0x27c06d=_0x220e25[_0x2ca053(0x2a7)])===null||_0x27c06d===void 0x0?void 0x0:_0x27c06d[_0x2ca053(0x3fd)]}}},{'stroke':{'opacity':_0xbdccd6}}),_0x32a0aa[_0x2ca053(0x1b8)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x32a0aa[_0x4f3c43(0x1b8)](_univerjs_core[_0x4f3c43(0x202)],!![]),'onBlur':_0x480baf=>{const _0x2c6628=_0x4f3c43;_0x32a0aa['setContextValue'](_univerjs_core[_0x2c6628(0x202)],![]);}})})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x597),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x410))}),(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x418),{'className':'univer-w-20','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x366)],{'className':'univer-w-full','disabled':_0x8588d1,'value':_0x309edb,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x57f068=>_0x57f068+_0x4f3c43(0x279),'parser':_0x29ad7e=>(_0x29ad7e===null||_0x29ad7e===void 0x0?void 0x0:_0x29ad7e[_0x4f3c43(0x4e8)](_0x4f3c43(0x279),''))||'','onChange':_0x86a4b8=>{const _0x4882b6=_0x4f3c43;if(!Number[_0x4882b6(0x662)](_0x86a4b8)&&_0x86a4b8!==null){var _0x598911;updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'width':(_0x598911=_0x220e25[_0x4882b6(0x2a7)])===null||_0x598911===void 0x0?void 0x0:_0x598911['width']}}},{'stroke':{'width':_0x86a4b8}});}_0x32a0aa[_0x4882b6(0x1b8)](_univerjs_core[_0x4882b6(0x202)],![]);},'onFocus':()=>_0x32a0aa['setContextValue'](_univerjs_core[_0x4f3c43(0x202)],!![]),'onBlur':_0x4467d0=>{const _0xe9cb66=_0x4f3c43;_0x32a0aa[_0xe9cb66(0x1b8)](_univerjs_core[_0xe9cb66(0x202)],![]);}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x47d))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x199aed),'options':_0x3f3f24,'disabled':_0x8588d1,'onChange':_0x33f066=>{var _0x1c6c39;_0x26f3b3(Number(_0x33f066)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'dashType':(_0x1c6c39=_0x220e25['stroke'])===null||_0x1c6c39===void 0x0?void 0x0:_0x1c6c39['dashType']}}},{'stroke':{'dashType':Number(_0x33f066)}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x46c))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x78f49c),'options':_0x105e87,'disabled':_0x8588d1,'onChange':_0x478af9=>{const _0x4791c9=_0x4f3c43;var _0x157ff9;_0x371cf7(Number(_0x478af9)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'capType':(_0x157ff9=_0x220e25[_0x4791c9(0x2a7)])===null||_0x157ff9===void 0x0?void 0x0:_0x157ff9[_0x4791c9(0x592)]}}},{'stroke':{'capType':Number(_0x478af9)}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t']('sheets-shape.line.joinType.title')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x23513c),'options':_0x2061ee,'disabled':_0x8588d1,'onChange':_0x3a0ad8=>{const _0x268847=_0x4f3c43;var _0xdf4b01;_0x4e6e31(Number(_0x3a0ad8)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'lineJoinType':(_0xdf4b01=_0x220e25[_0x268847(0x2a7)])===null||_0xdf4b01===void 0x0?void 0x0:_0xdf4b01[_0x268847(0x551)]}}},{'stroke':{'lineJoinType':Number(_0x3a0ad8)}});}})})]}),!_0x1e8cbe&&(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x5ba))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x3ffb41),'options':_0x393b25,'disabled':_0x8588d1,'onChange':_0x547481=>{const _0x18b936=_0x4f3c43;var _0xabf6a4;_0x2148a2(Number(_0x547481)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'sketchType':(_0xabf6a4=_0x220e25[_0x18b936(0x2a7)])===null||_0xabf6a4===void 0x0?void 0x0:_0xabf6a4[_0x18b936(0x1d9)]}}},{'stroke':{'sketchType':Number(_0x547481)}});}})})]}),_0x1e8cbe&&(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(react_jsx_runtime['Fragment'],{'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x204))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':_0x4f3c43(0x559),'value':String(_0x24bb47),'options':_0x3de0bc,'onChange':_0x12df2a=>{const _0x476e04=_0x4f3c43;var _0xa3ecdf;_0x2eabd5(Number(_0x12df2a)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'startArrow':{'type':(_0xa3ecdf=_0x220e25['ln'])===null||_0xa3ecdf===void 0x0||(_0xa3ecdf=_0xa3ecdf['startArrow'])===null||_0xa3ecdf===void 0x0?void 0x0:_0xa3ecdf[_0x476e04(0x142)]}}}},{'ln':{'startArrow':{'type':Number(_0x12df2a)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x185))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x4434ca),'options':_0x9f9f20,'onChange':_0x3d39bf=>{const _0x250009=_0x4f3c43;var _0x30079a;_0xe4bd76(Number(_0x3d39bf)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x30079a=_0x220e25['ln'])===null||_0x30079a===void 0x0||(_0x30079a=_0x30079a[_0x250009(0x399)])===null||_0x30079a===void 0x0?void 0x0:_0x30079a['size']}}}},{'ln':{'startArrow':{'size':Number(_0x3d39bf)}}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x567))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':_0x4f3c43(0x559),'value':String(_0x56c522),'options':_0x3de0bc,'onChange':_0x2cb699=>{const _0x150a59=_0x4f3c43;var _0x524ea0;_0x5b72c0(Number(_0x2cb699)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x524ea0=_0x220e25['ln'])===null||_0x524ea0===void 0x0||(_0x524ea0=_0x524ea0[_0x150a59(0x145)])===null||_0x524ea0===void 0x0?void 0x0:_0x524ea0[_0x150a59(0x142)]}}}},{'ln':{'endArrow':{'type':Number(_0x2cb699)}}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x4f9))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x585ecd),'options':_0x9f9f20,'onChange':_0x51a9bf=>{const _0x5afe46=_0x4f3c43;var _0x2b9afa;_0x4ee260(Number(_0x51a9bf)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x2b9afa=_0x220e25['ln'])===null||_0x2b9afa===void 0x0||(_0x2b9afa=_0x2b9afa['endArrow'])===null||_0x2b9afa===void 0x0?void 0x0:_0x2b9afa[_0x5afe46(0x43f)]}}}},{'ln':{'endArrow':{'size':Number(_0x51a9bf)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x2fe40d=_0x3e9a34,_0x189173=(0x0,_univerjs_ui[_0x2fe40d(0x663)])(_univerjs_drawing['IDrawingManagerService']),[_0x2d063e,_0x4591e0]=(0x0,react[_0x2fe40d(0x5a1)])(_0x189173[_0x2fe40d(0x4a6)]());(0x0,react[_0x2fe40d(0x11f)])(()=>{const _0x58b4e4=_0x2fe40d,_0x9c0a03=_0x189173[_0x58b4e4(0x188)][_0x58b4e4(0x562)](_0x1a6573=>{_0x4591e0(_0x1a6573);});return()=>{_0x9c0a03['unsubscribe']();};},[]);if(_0x2d063e[_0x2fe40d(0x440)]===0x0)return null;return(0x0,react_jsx_runtime['jsx'])(_0x2fe40d(0x418),{'children':(0x0,react_jsx_runtime[_0x2fe40d(0x24e)])('div',{'className':_0x2fe40d(0x438),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_drawing_ui[_0x2fe40d(0x46d)],{'drawings':_0x2d063e,'hasCropper':![]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_sheets_drawing_ui[_0x2fe40d(0x1b3)],{'drawings':_0x2d063e})]})});}function ShapeEditPanel(_0x30e0e3){const _0x2db078=_0x3e9a34,{shapeData:_0x5544ca,shapeId:_0x283e6b,shapeType:_0x4cd1ed,version:_0x3d4187,unitId:_0x359e1f,subUnitId:_0x528583,disableShapeOption:_0x2a6c77}=_0x30e0e3,_0x89eef1=(0x0,_univerjs_ui[_0x2db078(0x663)])(_univerjs_core[_0x2db078(0x398)]),_0x4589d5=(0x0,_univerjs_pro_engine_shape[_0x2db078(0x654)])(_0x4cd1ed),[_0x35c47a,_0x113557]=(0x0,react[_0x2db078(0x5a1)])(0x0),_0x40d3a1=[{'label':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_0x2db078(0x418),{'children':_0x89eef1['t'](_0x2db078(0x16d))}),'children':(0x0,react_jsx_runtime['jsx'])(_0x2db078(0x1a8),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(ShapeFillEditor,{'shapeId':_0x283e6b,'shapeData':_0x5544ca,'isLineShape':_0x4589d5,'subUnitId':_0x528583,'unitId':_0x359e1f,'disableShapeOption':_0x2a6c77},_0x283e6b)})},{'label':(0x0,react_jsx_runtime['jsx'])('div',{'children':_0x89eef1['t'](_0x2db078(0x46f))}),'children':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_0x2db078(0x1a8),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime['jsx'])(ShapeLineEditor,{'shapeId':_0x283e6b,'shapeData':_0x5544ca,'isLineShape':_0x4589d5,'subUnitId':_0x528583,'unitId':_0x359e1f,'disableShapeOption':_0x2a6c77},_0x283e6b)})}];return(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':'univer-size-full','children':[(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':_0x2db078(0x1f4),'children':[(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x534),_0x35c47a===0x0?_0x2db078(0x444):_0x2db078(0xf1)),'onClick':()=>_0x113557(0x0),'children':[_0x89eef1['t'](_0x2db078(0x63f)),(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x555),{'univer-bg-primary-600':_0x35c47a===0x0,'univer-bg-transparent':_0x35c47a!==0x0})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',{'univer-text-primary-600':_0x35c47a===0x1,'univer-text-gray-500':_0x35c47a!==0x1}),'onClick':()=>_0x113557(0x1),'children':[_0x89eef1['t'](_0x2db078(0x41e)),(0x0,react_jsx_runtime['jsx'])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x54f),{'univer-bg-primary-600':_0x35c47a===0x1,'univer-bg-transparent':_0x35c47a!==0x1})})]})]}),(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':'univer-flex-1\x20univer-overflow-auto','children':_0x35c47a===0x0?(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':'','children':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_univerjs_design[_0x2db078(0x22f)],{'items':_0x40d3a1})},_0x3d4187):(0x0,react_jsx_runtime[_0x2db078(0x64f)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x4ebc53,_0x41188f){const _0x476606=_0x3e9a34;super(_0x4ebc53,_0x41188f),_defineProperty(this,_0x476606(0x196),null),_defineProperty(this,_0x476606(0x307),null),_defineProperty(this,_0x476606(0x324),null),_defineProperty(this,_0x476606(0x55d),null);if(_0x41188f)this[_0x476606(0x5fe)](_0x41188f);}['getDrawingSearch'](){const _0x3f6e51=_0x3e9a34;return{'unitId':this[_0x3f6e51(0x324)],'subUnitId':this[_0x3f6e51(0x55d)],'drawingId':this[_0x3f6e51(0x196)]};}['setShapeProps'](_0x531517){const _0x127aec=_0x3e9a34;if(typeof _0x531517[_0x127aec(0x4ac)]!=='undefined')this[_0x127aec(0x196)]=_0x531517[_0x127aec(0x4ac)];if(typeof _0x531517[_0x127aec(0x5f8)]!==_0x127aec(0x544))this[_0x127aec(0x307)]=_0x531517[_0x127aec(0x5f8)];if(typeof _0x531517[_0x127aec(0x4a8)]!==_0x127aec(0x544))this[_0x127aec(0x324)]=_0x531517[_0x127aec(0x4a8)];if(typeof _0x531517['subUnitId']!==_0x127aec(0x544))this[_0x127aec(0x55d)]=_0x531517[_0x127aec(0x5d6)];this[_0x127aec(0x227)]({'width':_0x531517['width'],'height':_0x531517[_0x127aec(0x37b)]});}[_0x3e9a34(0x33c)](_0x2cbb43){const _0x3820af=_0x3e9a34;_univerjs_engine_render[_0x3820af(0x5d8)][_0x3820af(0x118)](_0x2cbb43,{'radius':_univerjs_pro_engine_shape[_0x3820af(0x49a)][_0x3820af(0x3b6)],'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3820af(0x4b5)],'stroke':_univerjs_pro_engine_shape[_0x3820af(0x49a)][_0x3820af(0x41d)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core['Disposable']{constructor(_0xa182bb,_0x5c7b9b,_0x3504c1,_0x76af20,_0x4eed56,_0x50b3ac,_0x2ddb60,_0x18ea8e){const _0x46b88a=_0x3e9a34;super(),this['_context']=_0xa182bb,this['_contextService']=_0x5c7b9b,this[_0x46b88a(0x4d0)]=_0x3504c1,this[_0x46b88a(0xfd)]=_0x76af20,this[_0x46b88a(0x5cb)]=_0x4eed56,this['_sheetDrawingShapeRenderController']=_0x50b3ac,this[_0x46b88a(0x5e1)]=_0x2ddb60,this[_0x46b88a(0x363)]=_0x18ea8e,_defineProperty(this,_0x46b88a(0x2e4),null),_defineProperty(this,_0x46b88a(0x324),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,_0x46b88a(0x3cc),void 0x0),_defineProperty(this,'_shapes',[]),_defineProperty(this,'_baseShapeLeft',0x0),_defineProperty(this,_0x46b88a(0x44c),0x0),_defineProperty(this,_0x46b88a(0x5f1),0x0),_defineProperty(this,'_baseShapeHeight',0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,_0x46b88a(0x159),void 0x0),_defineProperty(this,_0x46b88a(0x19a),void 0x0),_defineProperty(this,_0x46b88a(0x310),void 0x0),_defineProperty(this,_0x46b88a(0x4f6),void 0x0),_defineProperty(this,_0x46b88a(0x3be),![]),this['_registerDrawingFocusChangeHandler'](),this[_0x46b88a(0x52c)]();}[_0x3e9a34(0x3b9)](_0x10c592,_0x13c947,_0xd01dc5){const _0x3dc4a2=_0x3e9a34,_0x4adf3d=this[_0x3dc4a2(0xfd)][_0x3dc4a2(0x533)](_0x10c592,_0x13c947,_0xd01dc5);if(_0x4adf3d)return _0x4adf3d[_0x3dc4a2(0x660)]();}[_0x3e9a34(0x63b)](){const _0x535369=_0x3e9a34;this[_0x535369(0x65d)]();}[_0x3e9a34(0x47b)](){const _0x499e46=_0x3e9a34;this[_0x499e46(0x540)](!![]);}[_0x3e9a34(0x306)](_0x3f4fa0){this['_isShouldShowDrawingShapeAdjust']=_0x3f4fa0;}[_0x3e9a34(0x2ef)](_0x23c48c,_0x50c86e,_0xc65a2a,_0x289087){const _0x6da03=_0x3e9a34,_0xefa87b=this['_sheetsShapeService'][_0x6da03(0x533)](_0x23c48c,_0x50c86e,_0xc65a2a);if(_0xefa87b)return _0xefa87b['getAdjustInfoByName'](_0x289087);}['_createShapeAdjustControls'](_0x120c61=![]){const _0x46935c=_0x3e9a34;if(this[_0x46935c(0x324)]===null||this['_subUnitId']===null||this[_0x46935c(0x2e4)]===null)return;const _0x1b39bd=this['_renderManagerService'][_0x46935c(0x17d)](this[_0x46935c(0x324)]);if(!_0x1b39bd)return;if(!_0x1b39bd['with'](_univerjs_sheets_ui[_0x46935c(0x412)])['getCurrentSkeleton']())return;const {scene:_0x21eae4}=_0x1b39bd,_0x10c927={'unitId':this[_0x46935c(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x46935c(0x2e4)]},_0x1b38be=this[_0x46935c(0x4d0)][_0x46935c(0x619)](_0x10c927),{transform:_0x23e3a2}=_0x1b38be;if(!_0x23e3a2)return;if(_0x1b38be[_0x46935c(0x5ec)]!==_univerjs_core[_0x46935c(0x506)][_0x46935c(0x3fc)])return;const {left:_0x26dd07,top:_0x5766b7,width:_0x38f251,height:_0x4c9cc1,flipX:_0x479766,flipY:_0xf8ae60,angle:angle=0x0}=_0x23e3a2;if(_0x26dd07===void 0x0||_0x5766b7===void 0x0)return;if(_0x120c61)this[_0x46935c(0x3cc)]=this[_0x46935c(0x3b9)](this[_0x46935c(0x324)],this[_0x46935c(0x55d)],this[_0x46935c(0x2e4)]);const _0x4cd2d9=this['_activeShapeAdjustPointList'];for(let _0x449cba=0x0;_0x449cba<_0x4cd2d9[_0x46935c(0x440)];_0x449cba++){const _0x503a7e=_0x4cd2d9[_0x449cba];let _0xcf8455=_0x503a7e['x'],_0x23c721=_0x503a7e['y'];if(_0x479766)_0xcf8455=(_0x38f251||0x0)-_0xcf8455;if(_0xf8ae60)_0x23c721=(_0x4c9cc1||0x0)-_0x23c721;if(angle!==0x0){const _0x50fb4a=(_0x38f251||0x0)/0x2,_0x35df27=(_0x4c9cc1||0x0)/0x2,_0xf5f90a=angle*Math['PI']/0xb4,_0x2018f3=Math['cos'](_0xf5f90a),_0x54ff4e=Math[_0x46935c(0x479)](_0xf5f90a),_0x72686c=_0xcf8455-_0x50fb4a,_0x24b36c=_0x23c721-_0x35df27;_0xcf8455=_0x50fb4a+(_0x72686c*_0x2018f3-_0x24b36c*_0x54ff4e),_0x23c721=_0x35df27+(_0x72686c*_0x54ff4e+_0x24b36c*_0x2018f3);}const _0x20b507={'x':_0xcf8455,'y':_0x23c721,'adjName':_0x503a7e[_0x46935c(0x5f8)]};this[_0x46935c(0x315)](_0x21eae4,_0x20b507,_0x20b507[_0x46935c(0x5f8)],_0x26dd07,_0x5766b7,this['_unitId'],this['_subUnitId']);}}[_0x3e9a34(0x540)](_0x5a06a8=![]){const _0x28b062=_0x3e9a34;_0x5a06a8&&(this[_0x28b062(0x65d)](),this['_createShapeAdjustControls'](_0x5a06a8));}[_0x3e9a34(0x315)](_0x4ccccd,_0x20f394,_0x1dd77a,_0x5c0e69,_0x57c74f,_0x1721d4,_0x2ef183){const _0x357a56=_0x3e9a34;if(!this[_0x357a56(0x2e4)])return;const _0x34f2e4=_0x4ccccd[_0x357a56(0x21c)](_0x357a56(0x63a)+this['_activeShapeId']+'-'+_0x1dd77a);if(_0x34f2e4){_0x34f2e4[_0x357a56(0x227)]({'left':_0x20f394['x']+_0x5c0e69-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)],'top':_0x20f394['y']+_0x57c74f-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]});return;}const _0x31a1d2={'left':_0x20f394['x']+_0x5c0e69-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x357a56(0x3b6)],'top':_0x20f394['y']+_0x57c74f-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)],'adjName':_0x1dd77a,'shapeId':this[_0x357a56(0x2e4)],'unitId':_0x1721d4,'subUnitId':_0x2ef183,'width':_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]+0x8,'height':_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]+0x8,'zIndex':_univerjs_engine_render[_0x357a56(0x1bd)]+0x1,'evented':!![]},_0x21d644=new SheetShapeAdjustPointObject(_0x357a56(0x63a)+this[_0x357a56(0x2e4)]+'-'+_0x1dd77a,_0x31a1d2);this[_0x357a56(0x4bc)][_0x357a56(0x2dd)](_0x21d644),this[_0x357a56(0x38a)](_0x21d644,_0x4ccccd,_0x1dd77a),_0x4ccccd[_0x357a56(0x18b)](_0x21d644,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x3e9a34(0x65d)](){const _0x1cff9c=_0x3e9a34;if(this[_0x1cff9c(0x4bc)]['length']===0x0)return;this['_shapes']['forEach'](_0x1451c3=>{const _0x41eb10=_0x1cff9c;_0x1451c3[_0x41eb10(0x199)]();}),this[_0x1cff9c(0x4bc)]=[];}[_0x3e9a34(0x5e7)](){const _0x6ad730=_0x3e9a34;this[_0x6ad730(0x1a9)]();}[_0x3e9a34(0x507)](_0x34e0dd,_0x383aa6){const _0x2ec05a=_0x3e9a34;var _0x47becc;const _0x3e9976={'x':0x0,'y':0x0};if(!_0x34e0dd||!_0x383aa6)return _0x3e9976;const _0x29d061=this['_renderManagerService'][_0x2ec05a(0x17d)](_0x34e0dd);if(!_0x29d061)return _0x3e9976;if(!_0x29d061[_0x2ec05a(0x1cf)](_univerjs_sheets_ui[_0x2ec05a(0x412)])['getSkeleton'](_0x383aa6))return _0x3e9976;const _0x5cc157=_0x29d061[_0x2ec05a(0x1cf)](_univerjs_sheets_ui[_0x2ec05a(0x480)]),_0x13c842=_0x5cc157===null||_0x5cc157===void 0x0?void 0x0:_0x5cc157[_0x2ec05a(0x531)]();if(!_0x13c842)return _0x3e9976;const _0x231848=(_0x47becc=this[_0x2ec05a(0x5e1)]['getUnit'](_0x34e0dd))===null||_0x47becc===void 0x0?void 0x0:_0x47becc['getSheetBySheetId'](_0x383aa6);if(!_0x231848)return _0x3e9976;const _0x434674=(0x0,_univerjs_sheets_ui[_0x2ec05a(0x33f)])(_0x13c842[_0x2ec05a(0x484)],_0x13c842[_0x2ec05a(0x38d)],_0x29d061[_0x2ec05a(0x2a4)],_0x231848);if(!_0x434674)return _0x3e9976;return{'x':_0x434674[_0x2ec05a(0x4aa)],'y':_0x434674['viewportScrollY']};}[_0x3e9a34(0x52f)](_0x4e0b1d,_0x34ce7a){const _0x1d6f9a=_0x3e9a34;var _0x52e0a0,_0x9d65f;const _0x23ecd8=(_0x52e0a0=this[_0x1d6f9a(0x5e1)][_0x1d6f9a(0x46e)](_0x4e0b1d))===null||_0x52e0a0===void 0x0?void 0x0:_0x52e0a0[_0x1d6f9a(0x299)](_0x34ce7a);return(_0x9d65f=_0x23ecd8===null||_0x23ecd8===void 0x0?void 0x0:_0x23ecd8[_0x1d6f9a(0x234)]())!==null&&_0x9d65f!==void 0x0?_0x9d65f:0x1;}[_0x3e9a34(0x38a)](_0x46185f,_0x55e413,_0x57e923){const _0x181114=_0x3e9a34;this[_0x181114(0x58e)]((0x0,_univerjs_core[_0x181114(0x28e)])(_0x46185f[_0x181114(0x284)][_0x181114(0x345)]((_0x2c7c21,_0x1e0b7e)=>{const _0x1e1bc4=_0x181114;var _0xe0d783,_0x474110,_0x36fd14,_0x4637c7;const _0x56648e=_0x46185f[_0x1e1bc4(0x40e)]();this[_0x1e1bc4(0x159)]=this['_getShapeAdjustInfosById'](_0x56648e[_0x1e1bc4(0x4a8)],_0x56648e[_0x1e1bc4(0x5d6)],_0x56648e['drawingId'],_0x57e923),this[_0x1e1bc4(0x19a)]=this['_sheetsShapeService']['getShapeModel'](_0x56648e[_0x1e1bc4(0x4a8)],_0x56648e[_0x1e1bc4(0x5d6)],_0x56648e['drawingId']);const _0x3733b9=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x1e1bc4(0x55d)],'drawingId':this['_activeShapeId']}),{transform:_0x5c6466}=_0x3733b9;if(_0x5c6466){const {left:_0x4287a5,top:_0x1972cc,width:_0xd10d4,height:_0x1e4606}=_0x5c6466;this[_0x1e1bc4(0x4a7)]=_0x4287a5||0x0,this[_0x1e1bc4(0x44c)]=_0x1972cc||0x0,this[_0x1e1bc4(0x5f1)]=_0xd10d4||0x0,this[_0x1e1bc4(0x5fc)]=_0x1e4606||0x0;}const _0x59df2b=Boolean((_0xe0d783=_0x3733b9[_0x1e1bc4(0x600)])===null||_0xe0d783===void 0x0?void 0x0:_0xe0d783[_0x1e1bc4(0x2f5)]),_0x1c6b7c=Boolean((_0x474110=_0x3733b9[_0x1e1bc4(0x600)])===null||_0x474110===void 0x0?void 0x0:_0x474110['flipY']),_0x4c0c8f=((_0x36fd14=_0x3733b9[_0x1e1bc4(0x600)])===null||_0x36fd14===void 0x0?void 0x0:_0x36fd14[_0x1e1bc4(0x62d)])||0x0;this[_0x1e1bc4(0x50d)]=!![],_0x55e413[_0x1e1bc4(0x3c5)]();const _0x4f4b6b=(_0x4637c7=this[_0x1e1bc4(0x19a)])===null||_0x4637c7===void 0x0?void 0x0:_0x4637c7['getAdjustValueByName'](_0x57e923),_0x4ea435={[_0x57e923]:_0x4f4b6b};this['_adjHandlerPointerMove']=_0x55e413[_0x1e1bc4(0x223)][_0x1e1bc4(0x345)]((_0x501614,_0xc05d88)=>{const _0x1e6629=_0x1e1bc4;if(!this[_0x1e6629(0x50d)])return;const {offsetX:_0x1eaf64,offsetY:_0x5c0556}=_0x501614,_0x51166d=this[_0x1e6629(0x159)];if(this[_0x1e6629(0x19a)]&&_0x51166d){_0x55e413[_0x1e6629(0x3c5)](),_0x55e413[_0x1e6629(0x203)](_univerjs_engine_render[_0x1e6629(0x322)][_0x1e6629(0x5b3)]);const _0x5911bd={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x1e6629(0x5fc)]},_0xea551c=this[_0x1e6629(0x507)](this[_0x1e6629(0x324)],this[_0x1e6629(0x55d)]),_0x3fae75=this['_getZoomRatio'](this[_0x1e6629(0x324)],this[_0x1e6629(0x55d)]);let _0x299f4f=_0x1eaf64/_0x3fae75+_0xea551c['x']-this[_0x1e6629(0x4a7)],_0x14de32=_0x5c0556/_0x3fae75+_0xea551c['y']-this[_0x1e6629(0x44c)];if(_0x4c0c8f!==0x0){const _0x248f60=this[_0x1e6629(0x5f1)]/0x2,_0x3ea6aa=this[_0x1e6629(0x5fc)]/0x2,_0x2c7f0f=_0x4c0c8f*Math['PI']/0xb4,_0x4dc081=Math[_0x1e6629(0x1cb)](_0x2c7f0f),_0x5680ff=Math[_0x1e6629(0x479)](_0x2c7f0f),_0x126eac=_0x299f4f-_0x248f60,_0x2486e9=_0x14de32-_0x3ea6aa;_0x299f4f=_0x248f60+(_0x126eac*_0x4dc081+_0x2486e9*_0x5680ff),_0x14de32=_0x3ea6aa+(-_0x126eac*_0x5680ff+_0x2486e9*_0x4dc081);}if(_0x59df2b)_0x299f4f=this[_0x1e6629(0x5f1)]-_0x299f4f;if(_0x1c6b7c)_0x14de32=this[_0x1e6629(0x5fc)]-_0x14de32;const _0x53b93f={'x':_0x299f4f,'y':_0x14de32},_0x2a3a48=this['_activeShapeModel'][_0x1e6629(0x445)](_0x5911bd,_0x53b93f,_0x51166d,_0x59df2b,_0x1c6b7c),_0x3c5c2c=_0x51166d[_0x1e6629(0x5be)]||_0x51166d[_0x1e6629(0x12c)]||_0x51166d[_0x1e6629(0x4de)]||_0x51166d['gdRefR'];if(_0x3c5c2c===void 0x0)return;this['_activeShapeModel'][_0x1e6629(0x57d)](_0x3c5c2c,_0x2a3a48);const _0x2968f6=this[_0x1e6629(0x4d0)][_0x1e6629(0x619)]({'unitId':_0x56648e[_0x1e6629(0x4a8)],'subUnitId':_0x56648e[_0x1e6629(0x5d6)],'drawingId':_0x56648e['drawingId']});_0x2968f6&&(this['_sheetDrawingShapeRenderController'][_0x1e6629(0x1e3)](_0x2968f6,_0x55e413),this[_0x1e6629(0x3cc)]=this[_0x1e6629(0x3b9)](_0x56648e[_0x1e6629(0x4a8)],_0x56648e[_0x1e6629(0x5d6)],_0x56648e[_0x1e6629(0x4c5)]),this[_0x1e6629(0x5e7)]());}_0xc05d88[_0x1e6629(0x11e)]();}),this[_0x1e1bc4(0x4f6)]=_0x55e413[_0x1e1bc4(0x575)]['subscribeEvent']((_0x58de4b,_0x5655e2)=>{const _0x40fe30=_0x1e1bc4;this[_0x40fe30(0x310)][_0x40fe30(0x54e)](),this[_0x40fe30(0x4f6)][_0x40fe30(0x54e)](),_0x55e413['resetCursor']();const _0xfeb172=this[_0x40fe30(0x159)];if(_0xfeb172){const _0x6eb1ea=_0x56648e['unitId'],_0x5b4e42=_0x56648e[_0x40fe30(0x5d6)],_0x5164fd=_0x56648e['drawingId'],_0x55f2b2=_0xfeb172[_0x40fe30(0x5be)]||_0xfeb172['gdRefY']||_0xfeb172[_0x40fe30(0x4de)]||_0xfeb172[_0x40fe30(0x3f0)];if(_0x55f2b2!==void 0x0){var _0x456393;const _0x3e95bc=(_0x456393=this[_0x40fe30(0x19a)])===null||_0x456393===void 0x0?void 0x0:_0x456393['getAdjustValueByName'](_0x55f2b2);if(_0x3e95bc!==void 0x0)updateShapeData(this['_commandService'],_0x6eb1ea,_0x5b4e42,_0x5164fd,{'oldShapeData':{'adjustValues':_0x4ea435}},{'adjustValues':{[_0x55f2b2]:_0x3e95bc}});}}this[_0x40fe30(0x159)]=void 0x0,this[_0x40fe30(0x19a)]=void 0x0,this[_0x40fe30(0x50d)]=![],_0x5655e2['stopPropagation'](),_0x55e413[_0x40fe30(0x4fc)]();}),_0x1e0b7e['stopPropagation']();})));}[_0x3e9a34(0x52c)](){const _0x314a92=_0x3e9a34,_0x4c8a98=this[_0x314a92(0x5e1)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x314a92(0x4cd)][_0x314a92(0x58b)]);this[_0x314a92(0x58e)](_0x4c8a98[_0x314a92(0x1e2)]((0x0,rxjs[_0x314a92(0x352)])(_0x4bd6db=>{const _0x441fd8=_0x314a92;if(!_0x4bd6db)return rxjs[_0x441fd8(0x218)];return _0x4bd6db[_0x441fd8(0x1e1)]['pipe']((0x0,rxjs[_0x441fd8(0x352)])(_0x364a57=>{const _0x3fd1ec=_0x441fd8;if(!_0x364a57)return rxjs[_0x3fd1ec(0x218)];const _0x10a96a=_0x4bd6db[_0x3fd1ec(0x386)](),_0x74abb7=this['_renderManagerService'][_0x3fd1ec(0x17d)](_0x10a96a),_0x34ea1b=_0x74abb7===null||_0x74abb7===void 0x0?void 0x0:_0x74abb7[_0x3fd1ec(0x2a4)];if(!_0x34ea1b)return rxjs[_0x3fd1ec(0x218)];return(0x0,rxjs['of'])(_0x34ea1b);}));}))[_0x314a92(0x562)](_0x2e214e=>{const _0x3a0fa5=_0x314a92,_0x58962a=_0x2e214e[_0x3a0fa5(0xe2)]();this[_0x3a0fa5(0x58e)](_0x2e214e[_0x3a0fa5(0x223)][_0x3a0fa5(0x345)](()=>{if(this['_isShouldShowDrawingShapeAdjust']){}})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x14c)][_0x3a0fa5(0x562)](_0x20bd75=>{const _0x5be7cb=_0x3a0fa5,{objects:_0x325b8c}=_0x20bd75;this[_0x5be7cb(0x1a9)]();if(_0x325b8c!==null&&_0x325b8c[_0x5be7cb(0x43f)]===0x1){if(_0x325b8c['values']()[_0x5be7cb(0x5c7)]()['value']instanceof DrawingShape)this['setShouldShowAdjust'](!![]);}})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x304)]['subscribe'](()=>{if(this['_isShouldShowDrawingShapeAdjust'])this['_clearShapeAdjustControls']();})),this[_0x3a0fa5(0x58e)](_0x2e214e[_0x3a0fa5(0x575)][_0x3a0fa5(0x345)](()=>{const _0x15b0d3=_0x3a0fa5;this[_0x15b0d3(0x3be)]&&(this[_0x15b0d3(0x306)](![]),this[_0x15b0d3(0x1a9)]());})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x4c0)][_0x3a0fa5(0x562)](()=>{const _0x25de66=_0x3a0fa5;this[_0x25de66(0x324)]&&this[_0x25de66(0x55d)]&&this[_0x25de66(0x2e4)]&&(this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x25de66(0x324)],'subUnitId':this[_0x25de66(0x55d)],'drawingId':this['_activeShapeId']})&&(this[_0x25de66(0x3cc)]=this[_0x25de66(0x3b9)](this['_unitId'],this[_0x25de66(0x55d)],this[_0x25de66(0x2e4)]),this['_updateAdjustControlPositions']()));}));}));}[_0x3e9a34(0x2fc)](){const _0x232e2c=_0x3e9a34;this[_0x232e2c(0x58e)](this[_0x232e2c(0x4d0)]['focus$'][_0x232e2c(0x562)](_0x5da757=>{const _0x38ef80=_0x232e2c;if(_0x5da757[_0x38ef80(0x440)]===0x1){const _0x3437ed=_0x5da757[0x0];if(_0x3437ed['drawingType']===_univerjs_core[_0x38ef80(0x506)]['DRAWING_SHAPE']){this[_0x38ef80(0x2e4)]=_0x3437ed['drawingId'];const {unitId:_0x386f4f,subUnitId:_0x8c52aa}=_0x3437ed;this[_0x38ef80(0x3cc)]=this[_0x38ef80(0x3b9)](_0x386f4f,_0x8c52aa,this[_0x38ef80(0x2e4)]),this[_0x38ef80(0x324)]=_0x386f4f,this['_subUnitId']=_0x8c52aa,this['_clearShapeAdjustControls'](),this[_0x38ef80(0x1a9)]();}else this[_0x38ef80(0x2e4)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x38ef80(0x55d)]=null,this['_clearShapeAdjustControls']();}(_0x5da757[_0x38ef80(0x440)]>0x1||_0x5da757[_0x38ef80(0x440)]===0x0)&&(this['_activeShapeId']=null,this[_0x38ef80(0x3cc)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x38ef80(0x65d)]());})),this[_0x232e2c(0x58e)](this[_0x232e2c(0x4d0)][_0x232e2c(0x554)][_0x232e2c(0x562)](_0xe19d18=>{const _0x1c29fd=_0x232e2c;if(_0xe19d18[_0x1c29fd(0x440)]===0x1){var _0x3ed59a;const _0x50f758=_0xe19d18[0x0];if(((_0x3ed59a=this[_0x1c29fd(0x4d0)][_0x1c29fd(0x619)](_0x50f758))===null||_0x3ed59a===void 0x0?void 0x0:_0x3ed59a['drawingType'])===_univerjs_core[_0x1c29fd(0x506)]['DRAWING_SHAPE'])this[_0x1c29fd(0x540)](!![]);}})),this['disposeWithMe'](this[_0x232e2c(0x4d0)][_0x232e2c(0x31c)][_0x232e2c(0x562)](_0x2db104=>{const _0x2aef25=_0x232e2c;for(const _0x2d6e61 of _0x2db104)this[_0x2aef25(0x2e4)]===_0x2d6e61[_0x2aef25(0x4c5)]&&(this[_0x2aef25(0x2e4)]=null,this[_0x2aef25(0x3cc)]=void 0x0,this[_0x2aef25(0x324)]=null,this[_0x2aef25(0x55d)]=null,this[_0x2aef25(0x65d)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core[_0x3e9a34(0x409)]),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core['IUniverInstanceService']),__decorateParam(0x7,_univerjs_core[_0x3e9a34(0x3f7)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x3e9a34(0x5ea),'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'handler':(_0x3b4a58,_0x4f865d)=>{const _0x4fb56b=_0x3e9a34,_0x58b68e=_0x3b4a58['get'](_univerjs_drawing['IDrawingManagerService']),_0x2f0ee6=_0x3b4a58[_0x4fb56b(0x2d9)](_univerjs_engine_render[_0x4fb56b(0x35e)]),_0x26f397=_0x3b4a58[_0x4fb56b(0x2d9)](SheetShapeAdjustController);if(_0x4f865d==null)return!![];if(_0x4f865d[_0x4fb56b(0x440)]>0x0){var _0x1524ac;const _0x2d0f32=(_0x1524ac=_0x2f0ee6['getRenderById'](_0x4f865d[0x0][_0x4fb56b(0x4a8)]))===null||_0x1524ac===void 0x0?void 0x0:_0x1524ac[_0x4fb56b(0x2a4)];if(_0x2d0f32){const {unitId:_0x475a20,subUnitId:_0x3c030d,drawingId:_0x685a98}=_0x4f865d[0x0],_0x2c252c=(0x0,_univerjs_drawing[_0x4fb56b(0x171)])({'unitId':_0x475a20,'subUnitId':_0x3c030d,'drawingId':_0x685a98},void 0x0),_0x1ed6fc=_0x2d0f32['getObjectIncludeInGroup'](_0x2c252c);if(_0x1ed6fc){var _0x36328b;(_0x36328b=_0x2f0ee6[_0x4fb56b(0x17d)](_0x4f865d[0x0][_0x4fb56b(0x4a8)]))===null||_0x36328b===void 0x0||(_0x36328b=_0x36328b[_0x4fb56b(0x2a4)][_0x4fb56b(0x52d)]())===null||_0x36328b===void 0x0||_0x36328b['activeAnObject'](_0x1ed6fc);}}_0x58b68e[_0x4fb56b(0x348)](_0x4f865d),_0x26f397[_0x4fb56b(0x306)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)]['COMMAND'],'id':_0x3e9a34(0x141),'handler':async(_0x22fc0f,_0xa815f3)=>{const _0x3466e0=_0x3e9a34,_0x147aee=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x22fc0f[_0x3466e0(0x2d9)](_univerjs_core['IUniverInstanceService']));if(!_0x147aee)return![];const _0x3eab5a=_0x22fc0f['get'](_univerjs_sheets[_0x3466e0(0x10c)])[_0x3466e0(0x39b)]();if(!_0x3eab5a)return![];const _0x343044=_0x22fc0f[_0x3466e0(0x2d9)](_univerjs_core[_0x3466e0(0x3f7)]),{unitId:_0x519431,subUnitId:_0x5dad80}=_0x147aee,{value:_0x1d085e,enhanceParams:_0x37aa7f}=_0xa815f3,{range:_0x4b704f}=_0x3eab5a,_0x578ed4={'unitId':_0x519431,'subUnitId':_0x5dad80,'shapeType':_0x1d085e,'range':_0x4b704f,'shapeId':(0x0,_univerjs_core[_0x3466e0(0x652)])()};if(_0x37aa7f){const _0x455ac3=(0x0,_univerjs_pro_engine_shape[_0x3466e0(0x654)])(_0x1d085e),_0xc5aaae=_0x1d085e===_univerjs_pro_engine_shape[_0x3466e0(0x126)]['Rect'];if(_0x455ac3&&(_0x37aa7f[_0x3466e0(0x399)]||_0x37aa7f[_0x3466e0(0x145)]))_0x578ed4['shapeData']={'ln':{'startArrow':_0x37aa7f['startArrow']?{'type':_univerjs_pro_engine_shape[_0x3466e0(0x2de)][_0x3466e0(0x4ab)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x3466e0(0x10e)]}:void 0x0,'endArrow':_0x37aa7f[_0x3466e0(0x145)]?{'type':_univerjs_pro_engine_shape[_0x3466e0(0x2de)][_0x3466e0(0x4ab)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x3466e0(0x10f)]}:void 0x0}};if(_0xc5aaae&&(_0x37aa7f[_0x3466e0(0x238)]||_0x37aa7f[_0x3466e0(0x561)]))_0x578ed4[_0x3466e0(0x402)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x3466e0(0x4bf)][_0x3466e0(0x173)],'color':_0x3466e0(0x148)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape['ShapeLineTypeEnum']['SolidLine'],'width':0x1,'color':_0x3466e0(0x29d)},'shapeText':{'isHorizontal':!!_0x37aa7f[_0x3466e0(0x238)]}};}const _0x388831=_0x343044[_0x3466e0(0x623)](_univerjs_pro_sheets_shape['InsertShapeCommand']['id'],_0x578ed4);return setTimeout(()=>{const _0x5cefdb=_0x3466e0;_0x343044[_0x5cefdb(0x591)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x519431,'subUnitId':_0x5dad80,'drawingId':_0x578ed4[_0x5cefdb(0x4ac)]}]);},0xc8),_0x388831;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x1e7723,_0x25d9b2){const _0x4e1a7f=_0x3e9a34;super(),this[_0x4e1a7f(0x48e)]=_0x1e7723,this[_0x4e1a7f(0x4d0)]=_0x25d9b2,this[_0x4e1a7f(0x1d1)](),this[_0x4e1a7f(0x48e)][_0x4e1a7f(0x13c)](!![]),this[_0x4e1a7f(0x58e)]({'dispose':()=>this[_0x4e1a7f(0x48e)][_0x4e1a7f(0x13c)](![])});}[_0x3e9a34(0x1d1)](){const _0x3bce1e=_0x3e9a34,_0x13aa28=this[_0x3bce1e(0x48e)],_0x27960a=new Map(),_0x40b701=_0x13aa28[_0x3bce1e(0x417)]((_0x1cdc3f,_0x59180d,_0x1e4e53,_0x4d38f0,_0x272ab1)=>{const _0x5a424c=_0x3bce1e,_0x4872de=_0x59180d;if(_0x4872de===_univerjs_pro_engine_shape[_0x5a424c(0x126)][_0x5a424c(0x319)]||_0x59180d===_0x5a424c(0x3c9))return![];try{let _0x1d9411=_0x27960a[_0x5a424c(0x2d9)](_0x59180d);!_0x1d9411&&(_0x1d9411=new _univerjs_pro_engine_shape['ShapeModel'](_0x4872de,'clip-'+_0x59180d),_0x27960a['set'](_0x59180d,_0x1d9411));if(_0x272ab1)_0x1d9411[_0x5a424c(0x5f0)]({'adjustValues':_0x272ab1},!![]);return _0x1d9411[_0x5a424c(0x566)]({'width':_0x1e4e53,'height':_0x4d38f0}),_0x1d9411[_0x5a424c(0x51c)](_0x1cdc3f,{'left':0x0,'top':0x0,'width':_0x1e4e53,'height':_0x4d38f0});}catch{return![];}});this[_0x3bce1e(0x58e)](_0x40b701),this[_0x3bce1e(0x58e)]({'dispose':()=>_0x27960a[_0x3bce1e(0x54d)]()});}[_0x3e9a34(0x643)](_0x2e2f9f,_0x26f5c8,_0x4edd15,_0x131d31,_0x13e619){const _0xc43114=_0x3e9a34,_0x30a1d5=this[_0xc43114(0x4d0)][_0xc43114(0x5bc)](_0x2e2f9f,_0x26f5c8);if(!_0x30a1d5[_0x4edd15])return;const _0x76b45a={..._0x30a1d5[_0x4edd15],'prstGeom':_0x131d31,'adjustValues':_0x13e619};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x76b45a]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui[_0x3e9a34(0x5a0)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_drawing[_0x3e9a34(0x5d5)]))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x641)],'icon':_0x3e9a34(0x627),'name':_0x3e9a34(0x1ab)},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2a5)],'icon':'ShapeStraightConnector1Icon','name':_0x3e9a34(0x3f2),'endArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2a5)],'icon':_0x3e9a34(0x5b1),'name':_0x3e9a34(0x54c),'endArrow':!![],'startArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x647),'name':_0x3e9a34(0x383)},{'group':'line','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x55c),'name':_0x3e9a34(0x25e),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x1c9),'name':_0x3e9a34(0x282),'endArrow':!![],'startArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x29c)],'icon':_0x3e9a34(0x4c4),'name':_0x3e9a34(0x472)},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['CurvedConnector3'],'icon':_0x3e9a34(0x240),'name':_0x3e9a34(0x588),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x29c)],'icon':_0x3e9a34(0x4c8),'name':_0x3e9a34(0x46a),'endArrow':!![],'startArrow':!![]},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Rect'],'icon':'ShapeRectIcon','name':_0x3e9a34(0x248)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5b5)],'icon':_0x3e9a34(0x1b1),'name':'shape.type.round-rect'},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x197)],'icon':_0x3e9a34(0x48d),'name':_0x3e9a34(0x3aa)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5a6)],'icon':'ShapeSnip2SameRectIcon','name':_0x3e9a34(0x3de)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Snip2DiagRect'],'icon':'ShapeSnip2DiagRectIcon','name':_0x3e9a34(0x1ad)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x243)],'icon':_0x3e9a34(0x64b),'name':_0x3e9a34(0x602)},{'group':'rectangle','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3d0)],'icon':_0x3e9a34(0x1f9),'name':_0x3e9a34(0x31b)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x43c)],'icon':_0x3e9a34(0x277),'name':_0x3e9a34(0x66b)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Round2DiagRect'],'icon':_0x3e9a34(0x587),'name':_0x3e9a34(0x251)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x163)],'icon':_0x3e9a34(0x45f),'name':_0x3e9a34(0x5ca),'horizontal':!![]},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x163)],'icon':_0x3e9a34(0x376),'name':_0x3e9a34(0x3c1),'vertical':!![]},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x496)],'icon':_0x3e9a34(0x32b),'name':_0x3e9a34(0x620)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4c9)],'icon':_0x3e9a34(0x50a),'name':'shape.type.triangle'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x629)],'icon':_0x3e9a34(0x2b4),'name':_0x3e9a34(0x651)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1b0)],'icon':_0x3e9a34(0x5b6),'name':_0x3e9a34(0x2db)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44a)],'icon':_0x3e9a34(0x1af),'name':'shape.type.trapezoid'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x20d)],'icon':'ShapeDiamondIcon','name':_0x3e9a34(0x3b0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5cc)],'icon':'ShapePentagonIcon','name':_0x3e9a34(0x147)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x622)],'icon':_0x3e9a34(0xea),'name':'shape.type.hexagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Heptagon'],'icon':'ShapeHeptagonIcon','name':_0x3e9a34(0x4c6)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x247)],'icon':_0x3e9a34(0x154),'name':'shape.type.octagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5ef)],'icon':_0x3e9a34(0x64d),'name':'shape.type.decagon'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x215)],'icon':'ShapeDodecagonIcon','name':'shape.type.dodecagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44e)],'icon':_0x3e9a34(0x32e),'name':_0x3e9a34(0x168)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Chord'],'icon':_0x3e9a34(0x360),'name':_0x3e9a34(0x1b5)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x212)],'icon':'ShapeTeardropIcon','name':_0x3e9a34(0x3ac)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2f9)],'icon':_0x3e9a34(0x5d2),'name':'shape.type.frame'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3a2)],'icon':_0x3e9a34(0x207),'name':'shape.type.half-frame'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x609)],'icon':_0x3e9a34(0x143),'name':_0x3e9a34(0x5e0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x111)],'icon':'ShapeDiagStripeIcon','name':_0x3e9a34(0x4a0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Plus'],'icon':_0x3e9a34(0x3db),'name':_0x3e9a34(0x46b)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1fe)],'icon':_0x3e9a34(0x21e),'name':_0x3e9a34(0x578)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Can'],'icon':_0x3e9a34(0x334),'name':_0x3e9a34(0x612)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x422)],'icon':'ShapeCubeIcon','name':_0x3e9a34(0x5a5)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5a9)],'icon':_0x3e9a34(0x61d),'name':_0x3e9a34(0x339)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Donut'],'icon':_0x3e9a34(0x303),'name':_0x3e9a34(0x4a3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x61b)],'icon':'ShapeNoSmokingIcon','name':_0x3e9a34(0x2f6)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5d3)],'icon':_0x3e9a34(0x2b7),'name':_0x3e9a34(0x542)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x586)],'icon':'ShapeFolderCornerIcon','name':_0x3e9a34(0x28f)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x104)],'icon':'ShapeSmileyFaceIcon','name':_0x3e9a34(0x3c8)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x110)],'icon':_0x3e9a34(0x3d8),'name':_0x3e9a34(0x257)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1c0)],'icon':_0x3e9a34(0x48b),'name':_0x3e9a34(0x281)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x52a)],'icon':'ShapeSunIcon','name':_0x3e9a34(0x311)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4c2)],'icon':_0x3e9a34(0x5dd),'name':_0x3e9a34(0x432)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Cloud'],'icon':_0x3e9a34(0x4ef),'name':_0x3e9a34(0x4b2)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Arc'],'icon':'ShapeArcIcon','name':_0x3e9a34(0x2b3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['BracketPair'],'icon':_0x3e9a34(0x5c1),'name':'shape.type.bracket-pair'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x125)],'icon':'ShapeBracePairIcon','name':_0x3e9a34(0x3a9)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x454)],'icon':_0x3e9a34(0xe6),'name':_0x3e9a34(0x51d)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5fa)],'icon':_0x3e9a34(0x616),'name':_0x3e9a34(0x3b3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftBrace'],'icon':_0x3e9a34(0x424),'name':_0x3e9a34(0x462)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['RightBrace'],'icon':'ShapeRightBraceIcon','name':'shape.type.right-brace'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x65a)],'icon':_0x3e9a34(0x18e),'name':_0x3e9a34(0x4db)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftArrow'],'icon':_0x3e9a34(0x590),'name':_0x3e9a34(0x1d7)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x384)],'icon':'ShapeUpArrowIcon','name':_0x3e9a34(0x3bf)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3e1)],'icon':_0x3e9a34(0xeb),'name':'shape.type.down-arrow'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2da)],'icon':_0x3e9a34(0x24b),'name':_0x3e9a34(0x55f)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3e6)],'icon':_0x3e9a34(0x297),'name':_0x3e9a34(0x45c)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x426)],'icon':'ShapeQuadArrowIcon','name':_0x3e9a34(0x11b)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightUpArrow'],'icon':_0x3e9a34(0x2f8),'name':_0x3e9a34(0x22b)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5d9)],'icon':_0x3e9a34(0x134),'name':_0x3e9a34(0x5ce)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['UturnArrow'],'icon':'ShapeUturnArrowIcon','name':_0x3e9a34(0x570)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftUpArrow'],'icon':_0x3e9a34(0x11d),'name':_0x3e9a34(0x36f)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x15c)],'icon':_0x3e9a34(0x38b),'name':_0x3e9a34(0x648)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x43b)],'icon':'ShapeCurvedRightArrowIcon','name':_0x3e9a34(0x625)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1a1)],'icon':_0x3e9a34(0x164),'name':_0x3e9a34(0x1d0)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5c2)],'icon':_0x3e9a34(0x378),'name':_0x3e9a34(0x187)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x51e)],'icon':_0x3e9a34(0x477),'name':_0x3e9a34(0x645)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x42c)],'icon':_0x3e9a34(0x2cf),'name':_0x3e9a34(0x167)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NotchedRightArrow'],'icon':'ShapeNotchedRightArrowIcon','name':_0x3e9a34(0x1df)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4f2)],'icon':_0x3e9a34(0x16c),'name':_0x3e9a34(0x62e)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x24a)],'icon':_0x3e9a34(0x1ef),'name':'shape.type.chevron'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['RightArrowCallout'],'icon':_0x3e9a34(0x60f),'name':_0x3e9a34(0x32c)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1a6)],'icon':_0x3e9a34(0x357),'name':_0x3e9a34(0x428)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2b5)],'icon':'ShapeLeftArrowCalloutIcon','name':_0x3e9a34(0x35f)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x136)],'icon':'ShapeUpArrowCalloutIcon','name':'shape.type.up-arrow-callout'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightArrowCallout'],'icon':_0x3e9a34(0x668),'name':'shape.type.left-right-arrow-callout'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['QuadArrowCallout'],'icon':_0x3e9a34(0x103),'name':_0x3e9a34(0x369)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44b)],'icon':_0x3e9a34(0x4d5),'name':_0x3e9a34(0x1c1)},{'group':'equationShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4e0)],'icon':_0x3e9a34(0x294),'name':_0x3e9a34(0x1db)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x404)],'icon':'ShapeMathMinusIcon','name':_0x3e9a34(0x3ab)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4fb)],'icon':_0x3e9a34(0x427),'name':_0x3e9a34(0x569)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x13d)],'icon':_0x3e9a34(0x15f),'name':_0x3e9a34(0x144)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['MathEqual'],'icon':_0x3e9a34(0x545),'name':_0x3e9a34(0x4da)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x596)],'icon':_0x3e9a34(0x52b),'name':_0x3e9a34(0x414)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartProcess'],'icon':'ShapeFlowChartProcessIcon','name':'shape.type.flow-chart-process'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3cb)],'icon':_0x3e9a34(0x2e9),'name':_0x3e9a34(0x2a1)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x524)],'icon':_0x3e9a34(0x4d2),'name':_0x3e9a34(0x5cf)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x49e)],'icon':_0x3e9a34(0x47e),'name':_0x3e9a34(0x483)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x395)],'icon':_0x3e9a34(0x1ec),'name':_0x3e9a34(0x558)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartInternalStorage'],'icon':_0x3e9a34(0x4ee),'name':_0x3e9a34(0x476)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x16f)],'icon':_0x3e9a34(0x2a3),'name':_0x3e9a34(0x23e)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x435)],'icon':_0x3e9a34(0x3e5),'name':_0x3e9a34(0x25c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ca)],'icon':_0x3e9a34(0x3e9),'name':_0x3e9a34(0x179)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartPreparation'],'icon':_0x3e9a34(0x2c6),'name':_0x3e9a34(0x61a)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x283)],'icon':'ShapeFlowChartManualInputIcon','name':_0x3e9a34(0x30d)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x28c)],'icon':_0x3e9a34(0x24c),'name':'shape.type.flow-chart-manual-operation'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x621)],'icon':_0x3e9a34(0x2b1),'name':_0x3e9a34(0x53b)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x528)],'icon':_0x3e9a34(0x595),'name':_0x3e9a34(0x25a)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5f7)],'icon':_0x3e9a34(0x635),'name':_0x3e9a34(0x36a)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x490)],'icon':_0x3e9a34(0x318),'name':_0x3e9a34(0x450)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x135)],'icon':_0x3e9a34(0x2cc),'name':_0x3e9a34(0x349)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1e6)],'icon':'ShapeFlowChartOrIcon','name':_0x3e9a34(0x26f)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2bf)],'icon':_0x3e9a34(0x615),'name':_0x3e9a34(0x155)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartSort'],'icon':'ShapeFlowChartSortIcon','name':_0x3e9a34(0x38c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xdf)],'icon':_0x3e9a34(0x2a8),'name':_0x3e9a34(0x18c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ff)],'icon':_0x3e9a34(0x502),'name':'shape.type.flow-chart-merge'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x563)],'icon':_0x3e9a34(0x658),'name':'shape.type.flow-chart-online-storage'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3b4)],'icon':_0x3e9a34(0x312),'name':_0x3e9a34(0x16e)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x34a)],'icon':'ShapeFlowChartMagneticTapeIcon','name':'shape.type.flow-chart-magnetic-tape'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3ef)],'icon':_0x3e9a34(0x3c2),'name':'shape.type.flow-chart-magnetic-disk'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x617)],'icon':'ShapeFlowChartMagneticDrumIcon','name':_0x3e9a34(0x36c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x381)],'icon':_0x3e9a34(0x4dd),'name':_0x3e9a34(0x4d8)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x537)],'icon':'ShapeIrregularSeal1Icon','name':_0x3e9a34(0x45e)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5fb)],'icon':'ShapeIrregularSeal2Icon','name':_0x3e9a34(0x34d)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2be)],'icon':_0x3e9a34(0x5b2),'name':_0x3e9a34(0x106)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Star5'],'icon':_0x3e9a34(0x47f),'name':_0x3e9a34(0x515)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x457)],'icon':_0x3e9a34(0x2c2),'name':'shape.type.star6'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x53e)],'icon':_0x3e9a34(0xf0),'name':_0x3e9a34(0x1bf)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x552)],'icon':'ShapeStar8Icon','name':_0x3e9a34(0x456)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Star10'],'icon':_0x3e9a34(0x429),'name':_0x3e9a34(0x549)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x582)],'icon':'ShapeStar12Icon','name':_0x3e9a34(0x47a)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x541)],'icon':'ShapeStar16Icon','name':_0x3e9a34(0x14e)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4ed)],'icon':_0x3e9a34(0x394),'name':_0x3e9a34(0x3cd)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x14d)],'icon':_0x3e9a34(0x102),'name':_0x3e9a34(0x231)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x423)],'icon':_0x3e9a34(0x4bb),'name':_0x3e9a34(0x5a4)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2bc)],'icon':_0x3e9a34(0x246),'name':'shape.type.ribbon'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['EllipseRibbon2'],'icon':_0x3e9a34(0x2c3),'name':'shape.type.ellipse-ribbon2'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x36e)],'icon':_0x3e9a34(0x5b9),'name':_0x3e9a34(0xf6)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x176)],'icon':_0x3e9a34(0x2a2),'name':_0x3e9a34(0x4cc)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xf2)],'icon':_0x3e9a34(0x505),'name':_0x3e9a34(0x220)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2b8)],'icon':_0x3e9a34(0x4d1),'name':_0x3e9a34(0x550)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x269)],'icon':_0x3e9a34(0x606),'name':_0x3e9a34(0x198)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ea)],'icon':'ShapeWedgeRectCalloutIcon','name':'shape.type.wedge-rect-callout'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x56f)],'icon':_0x3e9a34(0x57f),'name':_0x3e9a34(0x42f)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x27b)],'icon':'ShapeWedgeEllipseCalloutIcon','name':_0x3e9a34(0x390)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x665)],'icon':_0x3e9a34(0x397),'name':_0x3e9a34(0x327)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x497)],'icon':_0x3e9a34(0x232),'name':_0x3e9a34(0x3af)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x261)],'icon':'ShapeBorderCallout2Icon','name':_0x3e9a34(0x17c)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x235)],'icon':'ShapeBorderCallout3Icon','name':_0x3e9a34(0xe8)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x105)],'icon':_0x3e9a34(0x1fa),'name':_0x3e9a34(0x340)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x287)],'icon':_0x3e9a34(0xe9),'name':'shape.type.accent-callout2'},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['AccentCallout3'],'icon':_0x3e9a34(0x152),'name':'shape.type.accent-callout3'},{'group':'callout','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3d7)],'icon':'ShapeCallout1Icon','name':_0x3e9a34(0x1c3)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x13a)],'icon':_0x3e9a34(0x3d3),'name':_0x3e9a34(0x37e)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x624)],'icon':_0x3e9a34(0x2c1),'name':_0x3e9a34(0x579)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['AccentBorderCallout1'],'icon':_0x3e9a34(0x117),'name':_0x3e9a34(0x263)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4f3)],'icon':_0x3e9a34(0x40c),'name':'shape.type.accent-border-callout2'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3ea)],'icon':_0x3e9a34(0x411),'name':_0x3e9a34(0x113)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x166)],'icon':_0x3e9a34(0x157),'name':_0x3e9a34(0x190)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x11c)],'icon':'ShapeLeftRightCircularArrowIcon','name':'shape.type.left-right-circular-arrow'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5ab)],'icon':_0x3e9a34(0x30c),'name':_0x3e9a34(0x1c8)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightRibbon'],'icon':_0x3e9a34(0x22a),'name':_0x3e9a34(0x4dc)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x547)],'icon':_0x3e9a34(0x326),'name':_0x3e9a34(0x4a4)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x13f)],'icon':_0x3e9a34(0x38f),'name':_0x3e9a34(0x361)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x119)],'icon':'ShapeGear6Icon','name':_0x3e9a34(0x400)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Gear9'],'icon':_0x3e9a34(0x3dd),'name':_0x3e9a34(0x59d)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['CornerTabs'],'icon':_0x3e9a34(0x2bb),'name':_0x3e9a34(0xec)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3e3)],'icon':_0x3e9a34(0x1c4),'name':'shape.type.action-button-back-previous'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x19d)],'icon':_0x3e9a34(0x3d4),'name':_0x3e9a34(0x3ca)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x33e)],'icon':'ShapeActionButtonBeginningIcon','name':_0x3e9a34(0x604)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x101)],'icon':_0x3e9a34(0x464),'name':_0x3e9a34(0x3c0)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x12a)],'icon':_0x3e9a34(0x525),'name':_0x3e9a34(0x610)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x53c)],'icon':_0x3e9a34(0xf5),'name':'shape.type.action-button-information'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x387)],'icon':'ShapeActionButtonReturnIcon','name':_0x3e9a34(0x626)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonMovie'],'icon':'ShapeActionButtonMovieIcon','name':_0x3e9a34(0x15a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x271)],'icon':_0x3e9a34(0x41b),'name':_0x3e9a34(0x29a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['ActionButtonSound'],'icon':_0x3e9a34(0x4bd),'name':'shape.type.action-button-sound'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3b7)],'icon':_0x3e9a34(0x3bb),'name':'shape.type.action-button-help'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x138)],'icon':_0x3e9a34(0x655),'name':'shape.type.action-button-blank'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1d3)],'icon':_0x3e9a34(0x3eb),'name':'shape.type.chart-plus'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x2b0)],'icon':_0x3e9a34(0xfb),'name':_0x3e9a34(0x270)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1da)],'icon':_0x3e9a34(0x222),'name':_0x3e9a34(0x1b7)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x33a)],'icon':'ShapeFlowChartOfflineStorageIcon','name':_0x3e9a34(0x1f3)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x57c)],'icon':_0x3e9a34(0x4c3),'name':_0x3e9a34(0x55a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5c4)],'icon':_0x3e9a34(0x40f),'name':_0x3e9a34(0x3e2)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xf4)],'icon':_0x3e9a34(0xf9),'name':_0x3e9a34(0x1f1)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x26a)],'icon':_0x3e9a34(0x1bb),'name':'shape.type.up-down-arrow-callout'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NonIsoscelesTrapezoid'],'icon':_0x3e9a34(0x2ad),'name':_0x3e9a34(0x43d)}],SHAPE_PICKER_COMPONENT='sheet.shape.picker.component';function ShapePickerComponent({onShapeClick:_0x1d9bcd,excludeGroups:_0x1803e7}){const _0x5c5b3b=_0x3e9a34,_0x19b962=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x5c5b3b(0x398)]),_0x584278=(0x0,_univerjs_ui[_0x5c5b3b(0x663)])(_univerjs_ui[_0x5c5b3b(0x4d9)]),_0x348385=(_0x1803e7?shapeTypeOptions[_0x5c5b3b(0x50f)](_0x353b2c=>!_0x1803e7[_0x5c5b3b(0x516)](_0x353b2c[_0x5c5b3b(0x504)])):shapeTypeOptions)['reduce']((_0x1e17f5,_0x39ba7a)=>{const _0x2ed6c8=_0x5c5b3b;if(!_0x1e17f5[_0x39ba7a[_0x2ed6c8(0x504)]])_0x1e17f5[_0x39ba7a['group']]=[];return _0x1e17f5[_0x39ba7a[_0x2ed6c8(0x504)]]['push'](_0x39ba7a),_0x1e17f5;},{});return(0x0,react_jsx_runtime['jsx'])(_0x5c5b3b(0x418),{'className':_0x5c5b3b(0x1ea),'children':Object[_0x5c5b3b(0x180)](_0x348385)[_0x5c5b3b(0x532)](([_0x3f6ea3,_0xb7aa28])=>(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x5c5b3b(0x44f),'children':[(0x0,react_jsx_runtime[_0x5c5b3b(0x64f)])(_0x5c5b3b(0x418),{'className':_0x5c5b3b(0x29f),'children':_0x19b962['t'](_0x5c5b3b(0x485)+_0x3f6ea3)}),(0x0,react_jsx_runtime[_0x5c5b3b(0x64f)])(_0x5c5b3b(0x418),{'className':'univer-grid\x20univer-grid-cols-10\x20univer-gap-1','children':_0xb7aa28[_0x5c5b3b(0x532)](_0x4e63a7=>{const _0x33a6a1=_0x5c5b3b,_0x354ff9=_0x584278[_0x33a6a1(0x2d9)](_0x4e63a7['icon']);return(0x0,react_jsx_runtime[_0x33a6a1(0x64f)])(_0x33a6a1(0x418),{'title':_0x19b962['t'](_0x4e63a7[_0x33a6a1(0x5a7)]),'onClick':()=>_0x1d9bcd(_0x4e63a7),'className':_0x33a6a1(0x356),'children':_0x354ff9&&(0x0,react_jsx_runtime[_0x33a6a1(0x64f)])(_0x354ff9,{'className':_0x33a6a1(0x20b)})},_0x4e63a7[_0x33a6a1(0x5a7)]);})})]},_0x3f6ea3))});}function ImageClipShapePicker(){const _0x4083f3=_0x3e9a34,_0x324809=(0x0,_univerjs_ui[_0x4083f3(0x663)])(_univerjs_core['LocaleService']),_0x386561=(0x0,_univerjs_ui[_0x4083f3(0x663)])(_univerjs_drawing[_0x4083f3(0x5d5)]),_0x3d811b=(0x0,_univerjs_ui[_0x4083f3(0x663)])(ImageShapeClipController),[_0x539f51,_0x282ab6]=(0x0,react[_0x4083f3(0x5a1)])(![]),_0x8df2f9=_0x2fabea=>{const _0x2c28bc=_0x4083f3,_0x387246=_0x386561[_0x2c28bc(0x4a6)]()[_0x2c28bc(0x536)](_0xce2ca5=>_0xce2ca5[_0x2c28bc(0x5ec)]===_univerjs_core[_0x2c28bc(0x506)][_0x2c28bc(0x140)]);if(!_0x387246)return;const {unitId:_0x1a8eab,subUnitId:_0x22d40a,drawingId:_0x59270a}=_0x387246;_0x3d811b[_0x2c28bc(0x643)](_0x1a8eab,_0x22d40a,_0x59270a,_0x2fabea[_0x2c28bc(0x142)]),_0x282ab6(![]);};return(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4083f3(0x4f0)],{'side':_0x4083f3(0xe1),'open':_0x539f51,'onOpenChange':_0x282ab6,'overlay':(0x0,react_jsx_runtime[_0x4083f3(0x64f)])(ShapePickerComponent,{'onShapeClick':_0x8df2f9,'excludeGroups':[_0x4083f3(0x4ff)]}),'children':(0x0,react_jsx_runtime[_0x4083f3(0x64f)])(_univerjs_design[_0x4083f3(0xfe)],{'children':_0x324809['t'](_0x4083f3(0x553))})});}function ShapePicker(){const _0x9b5d81=_0x3e9a34,_0x10b84a=(0x0,_univerjs_ui[_0x9b5d81(0x663)])(_univerjs_core[_0x9b5d81(0x3f7)]),_0x57f7e5=_0x3a4318=>{const _0x526b59=_0x9b5d81;_0x10b84a['executeCommand'](MenuInsertShapeCommand['id'],{'value':_0x3a4318[_0x526b59(0x142)],'enhanceParams':{'endArrow':_0x3a4318[_0x526b59(0x145)],'startArrow':_0x3a4318['startArrow'],'horizontal':_0x3a4318[_0x526b59(0x238)],'vertical':_0x3a4318['vertical']}});};return(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x57f7e5});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x3e9a34(0x4ce),'icon':'LeftJustifyingIcon','value':_univerjs_core[_0x3e9a34(0x5ed)][_0x3e9a34(0x57b)]},{'label':_0x3e9a34(0x667),'icon':'HorizontallyIcon','value':_univerjs_core['HorizontalAlign']['CENTER']},{'label':_0x3e9a34(0x54a),'icon':_0x3e9a34(0x242),'value':_univerjs_core[_0x3e9a34(0x5ed)]['RIGHT']}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x429ba8){const _0x68c7a1=_0x3e9a34,_0x2bd27a=_0x429ba8['get'](_univerjs_core[_0x68c7a1(0x409)]),_0x2b4014=_0x429ba8[_0x68c7a1(0x2d9)](_univerjs_core[_0x68c7a1(0x181)]);return{'id':_univerjs_docs_ui[_0x68c7a1(0x2d3)]['id'],'tooltip':_0x68c7a1(0x26b),'type':_univerjs_ui[_0x68c7a1(0x20e)][_0x68c7a1(0x351)],'icon':_0x68c7a1(0x62c),'selections':[{'label':{'name':_univerjs_ui[_0x68c7a1(0x2e7)],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x68c7a1(0x2f1))](_0x5d3210=>{const _0x25af19=_0x68c7a1;_0x5d3210[_0x25af19(0x5c7)](_0x2b4014[_0x25af19(0x1f2)](_0x25af19(0x195)));}),'hidden$':_0x2bd27a[_0x68c7a1(0x650)](_univerjs_core[_0x68c7a1(0x130)])[_0x68c7a1(0x1e2)]((0x0,rxjs[_0x68c7a1(0x439)])(_0x2bd27a[_0x68c7a1(0x518)](_univerjs_core[_0x68c7a1(0x130)])),(0x0,rxjs[_0x68c7a1(0x532)])(_0x407467=>!_0x407467))};}function ShapeResetBackgroundColorMenuItemFactory(_0x4d80c8){const _0x39a11e=_0x3e9a34,_0x98bd16=_0x4d80c8[_0x39a11e(0x2d9)](_univerjs_core[_0x39a11e(0x409)]);return{'id':_univerjs_docs_ui[_0x39a11e(0x517)]['id'],'type':_univerjs_ui[_0x39a11e(0x20e)][_0x39a11e(0x453)],'title':_0x39a11e(0x28d),'hidden$':_0x98bd16[_0x39a11e(0x650)](_univerjs_core[_0x39a11e(0x130)])[_0x39a11e(0x1e2)]((0x0,rxjs['startWith'])(_0x98bd16[_0x39a11e(0x518)](_univerjs_core[_0x39a11e(0x130)])),(0x0,rxjs[_0x39a11e(0x532)])(_0x2fdbed=>!_0x2fdbed))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x3e9a34(0x4ce),'icon':_0x3e9a34(0x314),'value':_univerjs_core[_0x3e9a34(0x5ed)]['LEFT']},{'label':_0x3e9a34(0x667),'icon':'HorizontallyIcon','value':_univerjs_core['HorizontalAlign'][_0x3e9a34(0x2dc)]},{'label':_0x3e9a34(0x54a),'icon':_0x3e9a34(0x242),'value':_univerjs_core[_0x3e9a34(0x5ed)]['RIGHT']}];function ShapeTextHorizontalAlignMenuItemFactory(_0x801109){const _0x5de908=_0x3e9a34;var _0x37d627;const _0x1f4e18=_0x801109[_0x5de908(0x2d9)](_univerjs_core[_0x5de908(0x3f7)]),_0x3b4751=_0x801109['get'](_univerjs_core['IContextService']),_0x351439=_0x801109['get'](_univerjs_sheets_drawing[_0x5de908(0x275)]),_0x5e641c=_0x801109['get'](ShapeTextEditingService),_0x539920=_0x801109[_0x5de908(0x2d9)](_univerjs_pro_sheets_shape[_0x5de908(0x3a1)]),_0x31a664=_univerjs_core['HorizontalAlign'][_0x5de908(0x57b)],_0x39f52c=()=>{const _0x4aa7a0=_0x5de908;var _0xf6e70;const _0x5b8e2f=_0x351439['getFocusDrawings']()[_0x4aa7a0(0x50f)](_0x459a07=>_0x459a07[_0x4aa7a0(0x5ec)]===_univerjs_core[_0x4aa7a0(0x506)][_0x4aa7a0(0x3fc)]);if(_0x5b8e2f[_0x4aa7a0(0x440)]!==0x1)return _0x31a664;const _0x37cd27=_0x5e641c[_0x4aa7a0(0x512)](),_0x30fbae=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27[_0x4aa7a0(0x4a8)])||_0x5b8e2f[0x0][_0x4aa7a0(0x4a8)],_0x44bf87=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27[_0x4aa7a0(0x5d6)])||_0x5b8e2f[0x0][_0x4aa7a0(0x5d6)],_0x17edcc=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27['shapeId'])||_0x5b8e2f[0x0][_0x4aa7a0(0x4c5)],_0x56100f=_0x539920['getShapeModel'](_0x30fbae,_0x44bf87,_0x17edcc);if(!_0x56100f)return _0x31a664;const _0x740db7=_0x56100f[_0x4aa7a0(0x459)]();if(!_0x740db7||!(_0x4aa7a0(0xe0)in _0x740db7))return _0x31a664;const _0x5431da=_0x740db7[_0x4aa7a0(0xe0)];return(_0xf6e70=_0x5431da===null||_0x5431da===void 0x0?void 0x0:_0x5431da['ha'])!==null&&_0xf6e70!==void 0x0?_0xf6e70:_0x31a664;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x37d627=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x5de908(0x536)](_0x5cbd40=>_0x5cbd40[_0x5de908(0x115)]===_0x31a664))===null||_0x37d627===void 0x0?void 0x0:_0x37d627['icon'],'tooltip':_0x5de908(0x638),'type':_univerjs_ui[_0x5de908(0x20e)]['SELECTOR'],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x11a2fc=>{const _0xb5c573=_0x5de908,_0xfa089a=_0x1f4e18[_0xb5c573(0x3b5)](_0x4f44c3=>{const _0x148ddc=_0xb5c573;if(_0x4f44c3['id']===SetShapeTextHorizontalAlignCommand['id'])_0x11a2fc[_0x148ddc(0x5c7)](_0x39f52c());}),_0x1eb1aa=_0x5e641c[_0xb5c573(0x186)][_0xb5c573(0x562)](()=>{const _0x396970=_0xb5c573;_0x11a2fc[_0x396970(0x5c7)](_0x39f52c());});return _0x11a2fc[_0xb5c573(0x5c7)](_0x39f52c()),()=>{const _0x4a4ea2=_0xb5c573;_0xfa089a[_0x4a4ea2(0x199)](),_0x1eb1aa[_0x4a4ea2(0x54e)]();};}),'hidden$':_0x3b4751[_0x5de908(0x650)](_univerjs_core[_0x5de908(0x130)])['pipe']((0x0,rxjs[_0x5de908(0x532)])(_0xb90316=>!_0xb90316))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x3e9a34(0x14a),'icon':_0x3e9a34(0x494),'value':_univerjs_core[_0x3e9a34(0x48a)][_0x3e9a34(0x2ab)]},{'label':_0x3e9a34(0x56d),'icon':_0x3e9a34(0x3a3),'value':_univerjs_core[_0x3e9a34(0x48a)]['MIDDLE']},{'label':_0x3e9a34(0x267),'icon':_0x3e9a34(0x628),'value':_univerjs_core[_0x3e9a34(0x48a)][_0x3e9a34(0x573)]}];function ShapeVerticalAlignMenuItemFactory(_0x5b68dc){const _0x339039=_0x3e9a34;var _0x497628;const _0x350fcc=_0x5b68dc[_0x339039(0x2d9)](_univerjs_core[_0x339039(0x3f7)]),_0x16005f=_0x5b68dc[_0x339039(0x2d9)](_univerjs_core[_0x339039(0x409)]),_0x2f70c6=_0x5b68dc[_0x339039(0x2d9)](_univerjs_sheets_drawing[_0x339039(0x275)]),_0x21c598=_0x5b68dc[_0x339039(0x2d9)](ShapeTextEditingService),_0x3f4fa8=_0x5b68dc[_0x339039(0x2d9)](_univerjs_pro_sheets_shape[_0x339039(0x3a1)]),_0x5adfa4=_univerjs_core['VerticalAlign'][_0x339039(0x2ab)],_0x1ae25f=()=>{const _0xfc0c4f=_0x339039;var _0xc160de;const _0x2bad9f=_0x2f70c6[_0xfc0c4f(0x4a6)]()[_0xfc0c4f(0x50f)](_0x363f92=>_0x363f92[_0xfc0c4f(0x5ec)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x2bad9f['length']!==0x1)return _0x5adfa4;const _0x45b727=_0x21c598[_0xfc0c4f(0x512)](),_0x35b0e7=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x4a8)])||_0x2bad9f[0x0][_0xfc0c4f(0x4a8)],_0x17588a=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x5d6)])||_0x2bad9f[0x0]['subUnitId'],_0x315996=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x4ac)])||_0x2bad9f[0x0][_0xfc0c4f(0x4c5)],_0x5f021b=_0x3f4fa8[_0xfc0c4f(0x533)](_0x35b0e7,_0x17588a,_0x315996);if(!_0x5f021b)return _0x5adfa4;const _0x4e69f3=_0x5f021b['getShapeTextData']();if(!_0x4e69f3||!('dataModel'in _0x4e69f3))return _0x5adfa4;const _0x5089ab=_0x4e69f3[_0xfc0c4f(0xe0)];return(_0xc160de=_0x5089ab===null||_0x5089ab===void 0x0?void 0x0:_0x5089ab['va'])!==null&&_0xc160de!==void 0x0?_0xc160de:_0x5adfa4;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x497628=SHAPE_VERTICAL_ALIGN_CHILDREN[_0x339039(0x536)](_0x1b6a30=>_0x1b6a30['value']===_0x5adfa4))===null||_0x497628===void 0x0?void 0x0:_0x497628[_0x339039(0x2e8)],'tooltip':_0x339039(0x29e),'type':_univerjs_ui[_0x339039(0x20e)][_0x339039(0x2f2)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x1d6d7b=>{const _0x2dac68=_0x339039,_0x52a415=_0x350fcc[_0x2dac68(0x3b5)](_0x45def8=>{if(_0x45def8['id']===SetShapeTextVerticalAlignCommand['id'])_0x1d6d7b['next'](_0x1ae25f());}),_0x59731a=_0x21c598[_0x2dac68(0x186)]['subscribe'](()=>{const _0xbe330f=_0x2dac68;_0x1d6d7b[_0xbe330f(0x5c7)](_0x1ae25f());});return _0x1d6d7b['next'](_0x1ae25f()),()=>{_0x52a415['dispose'](),_0x59731a['unsubscribe']();};}),'hidden$':_0x16005f['subscribeContextValue$'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x339039(0x1e2)]((0x0,rxjs[_0x339039(0x532)])(_0x4325dd=>!_0x4325dd))};}function ShapeMenuItemFactory(_0x3085ec){const _0x871483=_0x3e9a34,_0x1ea2a5=_0x3085ec[_0x871483(0x2d9)](_univerjs_core['IUniverInstanceService']);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x871483(0x20e)][_0x871483(0x2f2)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x871483(0x4e7),'tooltip':_0x871483(0x4e2),'activated$':(0x0,_univerjs_sheets_ui['deriveStateFromActiveSheet$'])(_0x1ea2a5,![],()=>new rxjs[(_0x871483(0x2f1))](_0x4eb459=>{const _0x121df8=_0x871483;_0x4eb459[_0x121df8(0x5c7)](![]);})),'hidden$':(0x0,_univerjs_ui[_0x871483(0x467)])(_0x3085ec,_univerjs_core[_0x871483(0x4cd)]['UNIVER_SHEET']),'disabled$':(0x0,_univerjs_sheets_ui[_0x871483(0x364)])(_0x3085ec)};}const menuSchema={[_univerjs_ui[_0x3e9a34(0x482)][_0x3e9a34(0x58a)]]:{[_univerjs_ui[_0x3e9a34(0x2c5)][_0x3e9a34(0xe5)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui['RibbonStartGroup'][_0x3e9a34(0x401)]]:{[_univerjs_docs_ui[_0x3e9a34(0x2d3)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui[_0x3e9a34(0x644)][_0x3e9a34(0x415)]]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core['Disposable']{constructor(_0x381bc7,_0x3c102d,_0x4936ff,_0x23e384,_0x3846e4,_0x6610a3,_0x3412a1,_0x3f7573,_0x3f334b,_0x2ec526,_0x5761bf){const _0x293721=_0x3e9a34;super(),this[_0x293721(0x5e1)]=_0x381bc7,this['_sheetInterceptorService']=_0x3c102d,this[_0x293721(0x184)]=_0x4936ff,this['_menuManagerService']=_0x23e384,this[_0x293721(0xfd)]=_0x3846e4,this[_0x293721(0x5d4)]=_0x6610a3,this[_0x293721(0x5f4)]=_0x3412a1,this[_0x293721(0x363)]=_0x3f7573,this[_0x293721(0x4d0)]=_0x3f334b,this[_0x293721(0x5bb)]=_0x2ec526,this[_0x293721(0x17e)]=_0x5761bf,_defineProperty(this,_0x293721(0x3fa),null),_defineProperty(this,_0x293721(0x1e9),null),_defineProperty(this,_0x293721(0x661),![]),this[_0x293721(0x65c)](),this[_0x293721(0x341)](),this[_0x293721(0x58e)](this[_0x293721(0x5e1)][_0x293721(0x3c7)](_univerjs_core[_0x293721(0x4cd)][_0x293721(0x58b)])[_0x293721(0x562)](_0x17dfbc=>{const _0x34defc=_0x293721;var _0x312e98;if(!_0x17dfbc)(_0x312e98=this[_0x34defc(0x3fa)])===null||_0x312e98===void 0x0||_0x312e98[_0x34defc(0x199)]();})),this[_0x293721(0x41a)](),this['_registerShapeMenu']();}[_0x3e9a34(0x341)](){const _0x25f4ed=_0x3e9a34;this['_menuManagerService'][_0x25f4ed(0xff)](menuSchema);}[_0x3e9a34(0x388)](){const _0x39ab8f=_0x3e9a34;this[_0x39ab8f(0x5bb)]['registerFeatureMenu'](_univerjs_core[_0x39ab8f(0x506)][_0x39ab8f(0x3fc)],this[_0x39ab8f(0x509)][_0x39ab8f(0x3b8)](this)),this[_0x39ab8f(0x5bb)][_0x39ab8f(0x5a2)](_univerjs_core[_0x39ab8f(0x506)]['DRAWING_SHAPE'],0x6,0x4);}[_0x3e9a34(0x509)](_0x503cc7,_0x2391b4,_0x54191f,_0x3390cd){const _0xf6de10=_0x3e9a34;return[{'label':_0xf6de10(0x594),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f},'disable':_0x3390cd===_univerjs_core[_0xf6de10(0x506)][_0xf6de10(0x49d)]},{'label':'sheets-shape.deleteShape','index':0x1,'commandId':_univerjs_sheets_drawing[_0xf6de10(0x259)]['id'],'commandParams':{'unitId':_0x503cc7,'drawings':[{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f,'drawingType':_0x3390cd}]},'disable':![]},{'label':_0xf6de10(0x19e),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f},'disable':![]},{'label':_0xf6de10(0x26e),'index':0x3,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x189)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'flipH':!![]},'disable':![]},{'label':_0xf6de10(0x17f),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x189)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'flipV':!![]},'disable':![]},{'label':'sheets-shape.rotateRight90','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x1fd)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'rotate':0x5a},'disable':![]},{'label':_0xf6de10(0x12f),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x1fd)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'rotate':-0x5a},'disable':![]},{'label':_0xf6de10(0x172),'index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeTextVerticalToggleCommand']['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f},'disable':![]}];}['_getShapeInfo'](_0x5a46bf,_0x289bf7,_0x30b23b){const _0x2df3dd=_0x3e9a34,_0x227dd6=this[_0x2df3dd(0xfd)][_0x2df3dd(0x1a0)](_0x5a46bf,_0x289bf7,_0x30b23b),_0x4efb78=this[_0x2df3dd(0xfd)][_0x2df3dd(0x153)](_0x5a46bf,_0x289bf7,_0x30b23b);if(_0x227dd6!==void 0x0&&_0x4efb78!==void 0x0)return{'shapeData':_0x4efb78,'shapeId':_0x30b23b,'shapeType':_0x227dd6,'unitId':_0x5a46bf,'subUnitId':_0x289bf7,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x389275=_0x3e9a34;this[_0x389275(0x58e)](this[_0x389275(0x363)]['onCommandExecuted'](_0x48fee3=>{const _0x2b2bf0=_0x389275;if(_0x48fee3['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x2abfb9,subUnitId:_0x453ce8,drawingId:_0x512e2a}=_0x48fee3[_0x2b2bf0(0xee)];this['_activeShapeInfo']=this[_0x2b2bf0(0x2f0)](_0x2abfb9,_0x453ce8,_0x512e2a),this[_0x2b2bf0(0x2d8)]();}_0x48fee3['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x2b2bf0(0x1e9)]=null,this['_closeShapeEditPanel']());if(_0x48fee3['id']===_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id']){const {unitId:_0x18a9d2,subUnitId:_0x437d7c,shapeId:_0x52195a}=_0x48fee3[_0x2b2bf0(0xee)];if(this[_0x2b2bf0(0x1e9)]&&this['_activeShapeInfo'][_0x2b2bf0(0x4ac)]===_0x52195a){const _0x360e9=this[_0x2b2bf0(0x2f0)](_0x18a9d2,_0x437d7c,_0x52195a);if(_0x360e9)this['_activeShapeInfo']=_0x360e9;}}})),this[_0x389275(0x58e)](this[_0x389275(0x4d0)][_0x389275(0x188)]['subscribe'](_0x56ee22=>{const _0x402c7a=_0x389275;if(this[_0x402c7a(0x661)]===![])return;if(_0x56ee22[_0x402c7a(0x440)]===0x0){this['_activeShapeInfo']=null,this[_0x402c7a(0x65b)]();return;}if(_0x56ee22[_0x402c7a(0x440)]===0x1&&_0x56ee22[0x0]['drawingType']===_univerjs_core[_0x402c7a(0x506)][_0x402c7a(0x3fc)]){this[_0x402c7a(0x1e9)]=this['_getShapeInfo'](_0x56ee22[0x0][_0x402c7a(0x4a8)],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0][_0x402c7a(0x4c5)]);if(this[_0x402c7a(0x1e9)]){this[_0x402c7a(0x2d8)]();return;}}const _0x185976=_0x56ee22[_0x402c7a(0x50f)](_0x17e3f0=>{const _0x3089e7=_0x402c7a;return _0x17e3f0[_0x3089e7(0x5ec)]===_univerjs_core[_0x3089e7(0x506)][_0x3089e7(0x3fc)];});if(_0x56ee22[_0x402c7a(0x440)]>0x1&&_0x185976[_0x402c7a(0x440)]===_0x56ee22[_0x402c7a(0x440)]){this[_0x402c7a(0x1e9)]=this[_0x402c7a(0x2f0)](_0x56ee22[0x0]['unitId'],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0][_0x402c7a(0x4c5)]);if(this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{this[_0x402c7a(0x1e9)]=this[_0x402c7a(0x2f0)](_0x56ee22[0x0][_0x402c7a(0x4a8)],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0]['drawingId']);if(this[_0x402c7a(0x1e9)]){this[_0x402c7a(0x1e9)][_0x402c7a(0x268)]=!![],this[_0x402c7a(0x2d8)]();return;}}this[_0x402c7a(0x65b)]();}));}[_0x3e9a34(0x65c)](){const _0x3c635b=_0x3e9a34;[[_0x3c635b(0x4e7),_univerjs_icons[_0x3c635b(0x4e7)]],[_0x3c635b(0x117),_univerjs_icons[_0x3c635b(0x117)]],[_0x3c635b(0x40c),_univerjs_icons[_0x3c635b(0x40c)]],[_0x3c635b(0x411),_univerjs_icons[_0x3c635b(0x411)]],[_0x3c635b(0x1fa),_univerjs_icons[_0x3c635b(0x1fa)]],['ShapeAccentCallout2Icon',_univerjs_icons[_0x3c635b(0xe9)]],[_0x3c635b(0x152),_univerjs_icons[_0x3c635b(0x152)]],['ShapeActionButtonBackPreviousIcon',_univerjs_icons[_0x3c635b(0x1c4)]],[_0x3c635b(0x42b),_univerjs_icons[_0x3c635b(0x42b)]],['ShapeActionButtonBlankIcon',_univerjs_icons[_0x3c635b(0x655)]],['ShapeActionButtonDocumentIcon',_univerjs_icons[_0x3c635b(0x41b)]],[_0x3c635b(0x464),_univerjs_icons[_0x3c635b(0x464)]],[_0x3c635b(0x3d4),_univerjs_icons['ShapeActionButtonForwardNextIcon']],[_0x3c635b(0x3bb),_univerjs_icons[_0x3c635b(0x3bb)]],[_0x3c635b(0x525),_univerjs_icons[_0x3c635b(0x525)]],[_0x3c635b(0xf5),_univerjs_icons[_0x3c635b(0xf5)]],[_0x3c635b(0x3f6),_univerjs_icons[_0x3c635b(0x3f6)]],[_0x3c635b(0x49f),_univerjs_icons[_0x3c635b(0x49f)]],[_0x3c635b(0x4bd),_univerjs_icons[_0x3c635b(0x4bd)]],[_0x3c635b(0x21b),_univerjs_icons['ShapeArcIcon']],[_0x3c635b(0x134),_univerjs_icons[_0x3c635b(0x134)]],['ShapeBentConnector3Arrow1Icon',_univerjs_icons['ShapeBentConnector3Arrow1Icon']],['ShapeBentConnector3Arrow2Icon',_univerjs_icons[_0x3c635b(0x1c9)]],[_0x3c635b(0x647),_univerjs_icons[_0x3c635b(0x647)]],[_0x3c635b(0x38b),_univerjs_icons[_0x3c635b(0x38b)]],[_0x3c635b(0x61d),_univerjs_icons[_0x3c635b(0x61d)]],[_0x3c635b(0x2b7),_univerjs_icons['ShapeBlockArcIcon']],[_0x3c635b(0x232),_univerjs_icons[_0x3c635b(0x232)]],[_0x3c635b(0x631),_univerjs_icons[_0x3c635b(0x631)]],[_0x3c635b(0x560),_univerjs_icons[_0x3c635b(0x560)]],['ShapeBracePairIcon',_univerjs_icons['ShapeBracePairIcon']],[_0x3c635b(0x5c1),_univerjs_icons[_0x3c635b(0x5c1)]],[_0x3c635b(0x393),_univerjs_icons[_0x3c635b(0x393)]],[_0x3c635b(0x3d3),_univerjs_icons[_0x3c635b(0x3d3)]],['ShapeCallout3Icon',_univerjs_icons[_0x3c635b(0x2c1)]],['ShapeCanIcon',_univerjs_icons[_0x3c635b(0x334)]],[_0x3c635b(0x3eb),_univerjs_icons['ShapeChartPlusIcon']],['ShapeChartStarIcon',_univerjs_icons[_0x3c635b(0xfb)]],[_0x3c635b(0x222),_univerjs_icons[_0x3c635b(0x222)]],[_0x3c635b(0x1ef),_univerjs_icons['ShapeChevronIcon']],['ShapeChordIcon',_univerjs_icons['ShapeChordIcon']],[_0x3c635b(0x4d5),_univerjs_icons[_0x3c635b(0x4d5)]],[_0x3c635b(0x397),_univerjs_icons[_0x3c635b(0x397)]],[_0x3c635b(0x4ef),_univerjs_icons[_0x3c635b(0x4ef)]],['ShapeCornerIcon',_univerjs_icons[_0x3c635b(0x143)]],[_0x3c635b(0x2bb),_univerjs_icons[_0x3c635b(0x2bb)]],[_0x3c635b(0x443),_univerjs_icons[_0x3c635b(0x443)]],['ShapeCurvedConnector3Arrow1Icon',_univerjs_icons[_0x3c635b(0x240)]],[_0x3c635b(0x4c8),_univerjs_icons[_0x3c635b(0x4c8)]],[_0x3c635b(0x4c4),_univerjs_icons['ShapeCurvedConnector3Icon']],[_0x3c635b(0x477),_univerjs_icons[_0x3c635b(0x477)]],['ShapeCurvedLeftArrowIcon',_univerjs_icons['ShapeCurvedLeftArrowIcon']],[_0x3c635b(0x291),_univerjs_icons[_0x3c635b(0x291)]],['ShapeCurvedUpArrowIcon',_univerjs_icons[_0x3c635b(0x378)]],[_0x3c635b(0x64d),_univerjs_icons[_0x3c635b(0x64d)]],[_0x3c635b(0x37d),_univerjs_icons['ShapeDiagStripeIcon']],[_0x3c635b(0x463),_univerjs_icons[_0x3c635b(0x463)]],[_0x3c635b(0x17b),_univerjs_icons[_0x3c635b(0x17b)]],['ShapeDonutIcon',_univerjs_icons[_0x3c635b(0x303)]],[_0x3c635b(0x606),_univerjs_icons[_0x3c635b(0x606)]],['ShapeDownArrowCalloutIcon',_univerjs_icons[_0x3c635b(0x357)]],[_0x3c635b(0xeb),_univerjs_icons[_0x3c635b(0xeb)]],[_0x3c635b(0x32b),_univerjs_icons[_0x3c635b(0x32b)]],[_0x3c635b(0x2c3),_univerjs_icons[_0x3c635b(0x2c3)]],[_0x3c635b(0x5b9),_univerjs_icons[_0x3c635b(0x5b9)]],[_0x3c635b(0x2e9),_univerjs_icons[_0x3c635b(0x2e9)]],['ShapeFlowChartCollateIcon',_univerjs_icons[_0x3c635b(0x615)]],['ShapeFlowChartConnectorIcon',_univerjs_icons['ShapeFlowChartConnectorIcon']],[_0x3c635b(0x4d2),_univerjs_icons['ShapeFlowChartDecisionIcon']],['ShapeFlowChartDelayIcon',_univerjs_icons['ShapeFlowChartDelayIcon']],[_0x3c635b(0x4dd),_univerjs_icons[_0x3c635b(0x4dd)]],[_0x3c635b(0x2a3),_univerjs_icons[_0x3c635b(0x2a3)]],[_0x3c635b(0x2a8),_univerjs_icons[_0x3c635b(0x2a8)]],['ShapeFlowChartInputOutputIcon',_univerjs_icons[_0x3c635b(0x47e)]],[_0x3c635b(0x4ee),_univerjs_icons[_0x3c635b(0x4ee)]],[_0x3c635b(0x3c2),_univerjs_icons[_0x3c635b(0x3c2)]],[_0x3c635b(0x230),_univerjs_icons['ShapeFlowChartMagneticDrumIcon']],['ShapeFlowChartMagneticTapeIcon',_univerjs_icons[_0x3c635b(0x29b)]],[_0x3c635b(0x4b7),_univerjs_icons['ShapeFlowChartManualInputIcon']],[_0x3c635b(0x24c),_univerjs_icons[_0x3c635b(0x24c)]],[_0x3c635b(0x502),_univerjs_icons['ShapeFlowChartMergeIcon']],[_0x3c635b(0x3e5),_univerjs_icons[_0x3c635b(0x3e5)]],[_0x3c635b(0x2eb),_univerjs_icons[_0x3c635b(0x2eb)]],[_0x3c635b(0x595),_univerjs_icons['ShapeFlowChartOffpageConnectorIcon']],[_0x3c635b(0x658),_univerjs_icons[_0x3c635b(0x658)]],[_0x3c635b(0x4b3),_univerjs_icons[_0x3c635b(0x4b3)]],[_0x3c635b(0x1ec),_univerjs_icons['ShapeFlowChartPredefinedProcessIcon']],[_0x3c635b(0x2c6),_univerjs_icons[_0x3c635b(0x2c6)]],[_0x3c635b(0x59a),_univerjs_icons['ShapeFlowChartProcessIcon']],[_0x3c635b(0x635),_univerjs_icons[_0x3c635b(0x635)]],['ShapeFlowChartPunchedTapeIcon',_univerjs_icons[_0x3c635b(0x318)]],[_0x3c635b(0x60e),_univerjs_icons[_0x3c635b(0x60e)]],[_0x3c635b(0x2cc),_univerjs_icons[_0x3c635b(0x2cc)]],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x3c635b(0x3e9)]],[_0x3c635b(0x23d),_univerjs_icons['ShapeFolderCornerIcon']],[_0x3c635b(0x5d2),_univerjs_icons[_0x3c635b(0x5d2)]],[_0x3c635b(0x38f),_univerjs_icons[_0x3c635b(0x38f)]],[_0x3c635b(0x577),_univerjs_icons[_0x3c635b(0x577)]],['ShapeGear9Icon',_univerjs_icons[_0x3c635b(0x3dd)]],[_0x3c635b(0x207),_univerjs_icons['ShapeHalfFrameIcon']],['ShapeHeartIcon',_univerjs_icons['ShapeHeartIcon']],[_0x3c635b(0x4e6),_univerjs_icons[_0x3c635b(0x4e6)]],['ShapeHexagonIcon',_univerjs_icons[_0x3c635b(0xea)]],['ShapeHomePlateIcon',_univerjs_icons[_0x3c635b(0x16c)]],[_0x3c635b(0x505),_univerjs_icons[_0x3c635b(0x505)]],[_0x3c635b(0x2fd),_univerjs_icons[_0x3c635b(0x2fd)]],[_0x3c635b(0x15e),_univerjs_icons[_0x3c635b(0x15e)]],[_0x3c635b(0x10a),_univerjs_icons[_0x3c635b(0x10a)]],['ShapeLeftArrowIcon',_univerjs_icons[_0x3c635b(0x590)]],[_0x3c635b(0x424),_univerjs_icons[_0x3c635b(0x424)]],[_0x3c635b(0xe6),_univerjs_icons[_0x3c635b(0xe6)]],[_0x3c635b(0x157),_univerjs_icons['ShapeLeftCircularArrowIcon']],[_0x3c635b(0x668),_univerjs_icons[_0x3c635b(0x668)]],[_0x3c635b(0x24b),_univerjs_icons[_0x3c635b(0x24b)]],[_0x3c635b(0x4a5),_univerjs_icons[_0x3c635b(0x4a5)]],[_0x3c635b(0x22a),_univerjs_icons[_0x3c635b(0x22a)]],[_0x3c635b(0x2f8),_univerjs_icons['ShapeLeftRightUpArrowIcon']],['ShapeLeftUpArrowIcon',_univerjs_icons[_0x3c635b(0x11d)]],[_0x3c635b(0x48b),_univerjs_icons[_0x3c635b(0x48b)]],[_0x3c635b(0x627),_univerjs_icons[_0x3c635b(0x627)]],[_0x3c635b(0x4c3),_univerjs_icons[_0x3c635b(0x4c3)]],[_0x3c635b(0x15f),_univerjs_icons[_0x3c635b(0x15f)]],[_0x3c635b(0x545),_univerjs_icons[_0x3c635b(0x545)]],['ShapeMathMinusIcon',_univerjs_icons['ShapeMathMinusIcon']],[_0x3c635b(0x427),_univerjs_icons[_0x3c635b(0x427)]],[_0x3c635b(0x52b),_univerjs_icons[_0x3c635b(0x52b)]],[_0x3c635b(0x294),_univerjs_icons[_0x3c635b(0x294)]],['ShapeMoonIcon',_univerjs_icons[_0x3c635b(0x5dd)]],['ShapeNoSmokingIcon',_univerjs_icons['ShapeNoSmokingIcon']],[_0x3c635b(0x2ad),_univerjs_icons['ShapeNonIsoscelesTrapezoidIcon']],['ShapeNotchedRightArrowIcon',_univerjs_icons[_0x3c635b(0xe3)]],[_0x3c635b(0x154),_univerjs_icons['ShapeOctagonIcon']],[_0x3c635b(0x5b6),_univerjs_icons['ShapeParallelogramIcon']],[_0x3c635b(0x338),_univerjs_icons[_0x3c635b(0x338)]],[_0x3c635b(0x32e),_univerjs_icons[_0x3c635b(0x32e)]],[_0x3c635b(0x326),_univerjs_icons['ShapePieWedgeIcon']],['ShapePlaqueIcon',_univerjs_icons[_0x3c635b(0x21e)]],[_0x3c635b(0x40f),_univerjs_icons[_0x3c635b(0x40f)]],[_0x3c635b(0x3db),_univerjs_icons[_0x3c635b(0x3db)]],[_0x3c635b(0x103),_univerjs_icons[_0x3c635b(0x103)]],[_0x3c635b(0x57a),_univerjs_icons[_0x3c635b(0x57a)]],['ShapeRectIcon',_univerjs_icons[_0x3c635b(0x4f7)]],[_0x3c635b(0x45f),_univerjs_icons[_0x3c635b(0x45f)]],['ShapeRectTextboxVerticalIcon',_univerjs_icons[_0x3c635b(0x376)]],['ShapeRibbon2Icon',_univerjs_icons['ShapeRibbon2Icon']],[_0x3c635b(0x246),_univerjs_icons[_0x3c635b(0x246)]],[_0x3c635b(0x60f),_univerjs_icons[_0x3c635b(0x60f)]],[_0x3c635b(0x18e),_univerjs_icons[_0x3c635b(0x18e)]],[_0x3c635b(0x205),_univerjs_icons[_0x3c635b(0x205)]],[_0x3c635b(0x616),_univerjs_icons[_0x3c635b(0x616)]],[_0x3c635b(0x1f9),_univerjs_icons[_0x3c635b(0x1f9)]],[_0x3c635b(0x587),_univerjs_icons[_0x3c635b(0x587)]],['ShapeRound2SameRectIcon',_univerjs_icons['ShapeRound2SameRectIcon']],[_0x3c635b(0x1b1),_univerjs_icons['ShapeRoundRectIcon']],[_0x3c635b(0x2b4),_univerjs_icons[_0x3c635b(0x2b4)]],[_0x3c635b(0x28a),_univerjs_icons[_0x3c635b(0x28a)]],['ShapeSnip1RectIcon',_univerjs_icons[_0x3c635b(0x48d)]],[_0x3c635b(0x139),_univerjs_icons[_0x3c635b(0x139)]],[_0x3c635b(0x1fc),_univerjs_icons[_0x3c635b(0x1fc)]],[_0x3c635b(0x64b),_univerjs_icons[_0x3c635b(0x64b)]],[_0x3c635b(0xf9),_univerjs_icons[_0x3c635b(0xf9)]],[_0x3c635b(0x429),_univerjs_icons[_0x3c635b(0x429)]],['ShapeStar12Icon',_univerjs_icons[_0x3c635b(0x3fb)]],['ShapeStar16Icon',_univerjs_icons[_0x3c635b(0x274)]],['ShapeStar24Icon',_univerjs_icons[_0x3c635b(0x394)]],[_0x3c635b(0x102),_univerjs_icons[_0x3c635b(0x102)]],['ShapeStar4Icon',_univerjs_icons[_0x3c635b(0x5b2)]],[_0x3c635b(0x47f),_univerjs_icons[_0x3c635b(0x47f)]],[_0x3c635b(0x2c2),_univerjs_icons['ShapeStar6Icon']],[_0x3c635b(0xf0),_univerjs_icons[_0x3c635b(0xf0)]],[_0x3c635b(0x4a9),_univerjs_icons['ShapeStar8Icon']],[_0x3c635b(0x499),_univerjs_icons['ShapeStraightConnector1Icon']],[_0x3c635b(0x5b1),_univerjs_icons[_0x3c635b(0x5b1)]],['ShapeStripedRightArrowIcon',_univerjs_icons[_0x3c635b(0x2cf)]],['ShapeSunIcon',_univerjs_icons['ShapeSunIcon']],['ShapeSwooshArrowIcon',_univerjs_icons[_0x3c635b(0x30c)]],[_0x3c635b(0x124),_univerjs_icons[_0x3c635b(0x124)]],[_0x3c635b(0x1af),_univerjs_icons[_0x3c635b(0x1af)]],[_0x3c635b(0x50a),_univerjs_icons[_0x3c635b(0x50a)]],[_0x3c635b(0x114),_univerjs_icons['ShapeUpArrowCalloutIcon']],[_0x3c635b(0x40b),_univerjs_icons['ShapeUpArrowIcon']],[_0x3c635b(0x1bb),_univerjs_icons[_0x3c635b(0x1bb)]],['ShapeUpDownArrowIcon',_univerjs_icons[_0x3c635b(0x297)]],[_0x3c635b(0x60b),_univerjs_icons[_0x3c635b(0x60b)]],[_0x3c635b(0x2a2),_univerjs_icons['ShapeVerticalScrollIcon']],[_0x3c635b(0x4d1),_univerjs_icons[_0x3c635b(0x4d1)]],[_0x3c635b(0x3ed),_univerjs_icons[_0x3c635b(0x3ed)]],[_0x3c635b(0xde),_univerjs_icons[_0x3c635b(0xde)]],[_0x3c635b(0x57f),_univerjs_icons['ShapeWedgeRoundRectCalloutIcon']],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x3c635b(0x131)],ImageClipShapePicker]]['forEach'](([_0xacfa6e,_0x581899])=>{const _0x2b693c=_0x3c635b;this[_0x2b693c(0x58e)](this['_componentManager'][_0x2b693c(0x405)](_0xacfa6e,_0x581899));});}[_0x3e9a34(0x2d8)](){const _0x487a58=_0x3e9a34;this[_0x487a58(0x3fa)]=this[_0x487a58(0x184)][_0x487a58(0x367)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x487a58(0x5d4)]['t'](_0x487a58(0x1a4))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x487a58(0x1e9)]},'onClose':()=>{const _0xbbbc0f=_0x487a58;this['_drawingManagerService']['focusDrawing'](null),this[_0xbbbc0f(0x17e)][_0xbbbc0f(0x1b8)](_univerjs_core[_0xbbbc0f(0x130)],![]),this[_0xbbbc0f(0x3fa)]=null;}}),this[_0x487a58(0x661)]=!![];}[_0x3e9a34(0x65b)](){const _0x3f796f=_0x3e9a34;this[_0x3f796f(0x661)]=![],this[_0x3f796f(0x184)][_0x3f796f(0x5aa)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x3f796f(0x3fa)]=null,this[_0x3f796f(0x17e)]['setContextValue'](_univerjs_core[_0x3f796f(0x130)],![]),this[_0x3f796f(0x4d0)][_0x3f796f(0x348)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets[_0x3e9a34(0x45b)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_ui[_0x3e9a34(0x5dc)])),__decorateParam(0x3,_univerjs_ui[_0x3e9a34(0x3b1)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x398)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_ui[_0x3e9a34(0x4d9)])),__decorateParam(0x7,_univerjs_core['ICommandService']),__decorateParam(0x8,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_ui[_0x3e9a34(0x3dc)])),__decorateParam(0xa,_univerjs_core['IContextService'])],SheetsShapeUIController);var name=_0x3e9a34(0x4f1),version='0.22.1';const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY='sheets-shape.config',configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x3cb350,_0x80e411,_0x127d1,_0x5b5398,_0x313b5b){const _0x491057=_0x3e9a34;super(),this[_0x491057(0x50e)]=_0x3cb350,this[_0x491057(0x4d0)]=_0x80e411,this[_0x491057(0x5cb)]=_0x127d1,this[_0x491057(0x5e1)]=_0x5b5398,this[_0x491057(0x3ae)]=_0x313b5b,_defineProperty(this,_0x491057(0x5ae),null),_defineProperty(this,_0x491057(0x324),null),_defineProperty(this,_0x491057(0x55d),null),_defineProperty(this,_0x491057(0x4e9),void 0x0),_defineProperty(this,_0x491057(0x4bc),[]),_defineProperty(this,'_baseLeft',0x0),_defineProperty(this,_0x491057(0x471),0x0),_defineProperty(this,'_baseWidth',0x0),_defineProperty(this,'_baseHeight',0x0),_defineProperty(this,_0x491057(0x50d),![]),_defineProperty(this,_0x491057(0x159),void 0x0),_defineProperty(this,_0x491057(0x19a),void 0x0),_defineProperty(this,_0x491057(0x310),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0x491057(0x4a1),![]),this[_0x491057(0x2e5)](),this['_registerMoveHandler']();}[_0x3e9a34(0x63b)](){const _0x4534f0=_0x3e9a34;this[_0x4534f0(0x221)]();}['refreshAdjustControls'](){const _0x2495e3=_0x3e9a34;this[_0x2495e3(0x221)](),this[_0x2495e3(0x191)](!![]);}['_getOrCreateShapeModel'](_0x1e2596,_0x10b285,_0x255f17,_0x210ac1){const _0x57c2d6=_0x3e9a34,_0x59e26e=_0x1e2596;if(_0x59e26e===_univerjs_pro_engine_shape[_0x57c2d6(0x126)][_0x57c2d6(0x319)]||_0x1e2596===_0x57c2d6(0x3c9))return;try{const _0xecfcaf=new _univerjs_pro_engine_shape[(_0x57c2d6(0x4df))](_0x59e26e,_0x57c2d6(0x583)+_0x1e2596);if(_0x210ac1)_0xecfcaf[_0x57c2d6(0x5f0)]({'adjustValues':_0x210ac1},!![]);return _0xecfcaf[_0x57c2d6(0x566)]({'width':_0x10b285,'height':_0x255f17}),_0xecfcaf;}catch{return;}}[_0x3e9a34(0x2d1)](_0xbacff7,_0x509222,_0x23cc5a){const _0x2ded90=_0x3e9a34,_0x277d0f={'unitId':_0xbacff7,'subUnitId':_0x509222,'drawingId':_0x23cc5a},_0x3e1dac=this['_drawingManagerService'][_0x2ded90(0x619)](_0x277d0f);if(!_0x3e1dac||_0x3e1dac[_0x2ded90(0x5ec)]!==_univerjs_core['DrawingTypeEnum'][_0x2ded90(0x140)])return;return _0x3e1dac;}[_0x3e9a34(0x23b)](_0x37da62,_0x3f61a8,_0x39b7a4){const _0x4bbfc9=_0x3e9a34,_0x2c66f5=this[_0x4bbfc9(0x5cb)]['getRenderById'](_0x37da62);if(!_0x2c66f5)return void 0x0;const {scene:_0xbf9e8}=_0x2c66f5,_0x2ff3d2=(0x0,_univerjs_drawing[_0x4bbfc9(0x171)])({'unitId':_0x37da62,'subUnitId':_0x3f61a8,'drawingId':_0x39b7a4}),_0x208e8b=_0xbf9e8[_0x4bbfc9(0x3c3)](_0x2ff3d2);if(_0x208e8b instanceof _univerjs_engine_render[_0x4bbfc9(0x41c)]){const _0x3e0f5a=_0x208e8b['prstGeom'];if(_0x3e0f5a)return{'prstGeom':_0x3e0f5a,'adjustValues':_0x208e8b[_0x4bbfc9(0x3c4)]};}}['_createControls'](_0x4f2214=![]){const _0x341465=_0x3e9a34;if(!this[_0x341465(0x324)]||!this[_0x341465(0x55d)]||!this[_0x341465(0x5ae)])return;const _0x5129f7=this['_renderManagerService']['getRenderById'](this['_unitId']);if(!_0x5129f7)return;if(!_0x5129f7[_0x341465(0x1cf)](_univerjs_sheets_ui[_0x341465(0x412)])[_0x341465(0x60a)]())return;const {scene:_0x1e6c8e}=_0x5129f7,_0x3a6d68=this[_0x341465(0x2d1)](this[_0x341465(0x324)],this[_0x341465(0x55d)],this[_0x341465(0x5ae)]);if(!_0x3a6d68)return;const {transform:_0x5a7ca0}=_0x3a6d68;if(!_0x5a7ca0)return;const {left:_0xeec0a6,top:_0x237356,width:_0x24c3ce,height:_0x5b2cec,flipX:_0x571cc8,flipY:_0x59d936,angle:angle=0x0}=_0x5a7ca0;if(_0xeec0a6===void 0x0||_0x237356===void 0x0)return;const _0x545d2b=this[_0x341465(0x23b)](this['_unitId'],this['_subUnitId'],this[_0x341465(0x5ae)]);if(!_0x545d2b)return;if(_0x4f2214){const _0x559417=this[_0x341465(0x461)](_0x545d2b[_0x341465(0x31d)],_0x24c3ce||0x0,_0x5b2cec||0x0,_0x545d2b[_0x341465(0x132)]);if(!_0x559417)return;this[_0x341465(0x4e9)]=_0x559417[_0x341465(0x660)]();}const _0x133dcc=this[_0x341465(0x4e9)];if(!_0x133dcc||_0x133dcc[_0x341465(0x440)]===0x0)return;for(let _0x71b32e=0x0;_0x71b32e<_0x133dcc[_0x341465(0x440)];_0x71b32e++){const _0x4975b4=_0x133dcc[_0x71b32e];let _0x1583c5=_0x4975b4['x'],_0x5cd941=_0x4975b4['y'];if(_0x571cc8)_0x1583c5=(_0x24c3ce||0x0)-_0x1583c5;if(_0x59d936)_0x5cd941=(_0x5b2cec||0x0)-_0x5cd941;if(angle!==0x0){const _0x4b9cc8=(_0x24c3ce||0x0)/0x2,_0x3a5ee1=(_0x5b2cec||0x0)/0x2,_0x4eeec2=angle*Math['PI']/0xb4,_0x2e89b0=Math[_0x341465(0x1cb)](_0x4eeec2),_0x1bd0e2=Math[_0x341465(0x479)](_0x4eeec2),_0x538668=_0x1583c5-_0x4b9cc8,_0x2a5d42=_0x5cd941-_0x3a5ee1;_0x1583c5=_0x4b9cc8+(_0x538668*_0x2e89b0-_0x2a5d42*_0x1bd0e2),_0x5cd941=_0x3a5ee1+(_0x538668*_0x1bd0e2+_0x2a5d42*_0x2e89b0);}const _0x38d0d5={'x':_0x1583c5,'y':_0x5cd941,'adjName':_0x4975b4[_0x341465(0x5f8)]};this['_addControl'](_0x1e6c8e,_0x38d0d5,_0x38d0d5[_0x341465(0x5f8)],_0xeec0a6,_0x237356,this[_0x341465(0x324)],this['_subUnitId']);}}['_addControl'](_0x2ed44c,_0x6b5977,_0x27f7fb,_0x5c8784,_0x10b30a,_0x3d80e8,_0x18aff4){const _0x212fca=_0x3e9a34;if(!this[_0x212fca(0x5ae)])return;const _0x5467ad='image-clip-adjust-point-'+this[_0x212fca(0x5ae)]+'-'+_0x27f7fb,_0xbe692=_0x2ed44c[_0x212fca(0x21c)](_0x5467ad);if(_0xbe692){_0xbe692['transformByState']({'left':_0x6b5977['x']+_0x5c8784-_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)],'top':_0x6b5977['y']+_0x10b30a-_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]});return;}const _0x454128=new SheetShapeAdjustPointObject(_0x5467ad,{'left':_0x6b5977['x']+_0x5c8784-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x212fca(0x3b6)],'top':_0x6b5977['y']+_0x10b30a-_univerjs_pro_engine_shape['ShapeDefaultConfig']['adjHandleSize'],'adjName':_0x27f7fb,'shapeId':this[_0x212fca(0x5ae)],'unitId':_0x3d80e8,'subUnitId':_0x18aff4,'width':_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]+0x8,'height':_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]+0x8,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this[_0x212fca(0x4bc)]['push'](_0x454128),this[_0x212fca(0x38a)](_0x454128,_0x2ed44c,_0x27f7fb),_0x2ed44c[_0x212fca(0x18b)](_0x454128,_univerjs_engine_render[_0x212fca(0x1bd)]+0x1);}[_0x3e9a34(0x221)](){const _0x533d01=_0x3e9a34;if(this['_shapes'][_0x533d01(0x440)]===0x0)return;this['_shapes']['forEach'](_0x14118a=>_0x14118a[_0x533d01(0x199)]()),this[_0x533d01(0x4bc)]=[];}[_0x3e9a34(0x507)](_0x40c79b,_0x5b27e6){const _0x13c4d4=_0x3e9a34;var _0x20ce54;const _0x63c39e={'x':0x0,'y':0x0},_0x2fb3b0=this[_0x13c4d4(0x5cb)][_0x13c4d4(0x17d)](_0x40c79b);if(!_0x2fb3b0)return _0x63c39e;if(!_0x2fb3b0[_0x13c4d4(0x1cf)](_univerjs_sheets_ui[_0x13c4d4(0x412)])[_0x13c4d4(0x64e)](_0x5b27e6))return _0x63c39e;const _0x3db3fc=_0x2fb3b0[_0x13c4d4(0x1cf)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x53072f=_0x3db3fc===null||_0x3db3fc===void 0x0?void 0x0:_0x3db3fc[_0x13c4d4(0x531)]();if(!_0x53072f)return _0x63c39e;const _0x193694=(_0x20ce54=this[_0x13c4d4(0x5e1)][_0x13c4d4(0x46e)](_0x40c79b))===null||_0x20ce54===void 0x0?void 0x0:_0x20ce54[_0x13c4d4(0x299)](_0x5b27e6);if(!_0x193694)return _0x63c39e;const _0x25677b=(0x0,_univerjs_sheets_ui[_0x13c4d4(0x33f)])(_0x53072f[_0x13c4d4(0x484)],_0x53072f['sheetViewStartColumn'],_0x2fb3b0['scene'],_0x193694);if(!_0x25677b)return _0x63c39e;return{'x':_0x25677b[_0x13c4d4(0x4aa)],'y':_0x25677b[_0x13c4d4(0x520)]};}[_0x3e9a34(0x52f)](_0x352654,_0x2bd57e){const _0x31efa1=_0x3e9a34;var _0x1c6cd7,_0x12e55b;const _0x12eb9c=(_0x1c6cd7=this['_univerInstanceService'][_0x31efa1(0x46e)](_0x352654))===null||_0x1c6cd7===void 0x0?void 0x0:_0x1c6cd7[_0x31efa1(0x299)](_0x2bd57e);return(_0x12e55b=_0x12eb9c===null||_0x12eb9c===void 0x0?void 0x0:_0x12eb9c[_0x31efa1(0x234)]())!==null&&_0x12e55b!==void 0x0?_0x12e55b:0x1;}[_0x3e9a34(0x38a)](_0x10b11e,_0x414d43,_0x3a1f1e){const _0x9fbe0f=_0x3e9a34;this[_0x9fbe0f(0x58e)]((0x0,_univerjs_core[_0x9fbe0f(0x28e)])(_0x10b11e[_0x9fbe0f(0x284)][_0x9fbe0f(0x345)]((_0x2855bd,_0x3b3221)=>{const _0x3c1221=_0x9fbe0f;var _0x5e8ef4,_0x475803,_0x1af65d;const {unitId:_0x4d1523,subUnitId:_0x23782a,drawingId:_0x1ccfbc}=_0x10b11e['getDrawingSearch'](),_0x3c7a7f=this['_getImageDrawingInfo'](_0x4d1523,_0x23782a,_0x1ccfbc);if(!(_0x3c7a7f===null||_0x3c7a7f===void 0x0?void 0x0:_0x3c7a7f[_0x3c1221(0x600)]))return;const {left:_0x58d721,top:_0x23d959,width:_0x258588,height:_0x2d2fee}=_0x3c7a7f[_0x3c1221(0x600)];this[_0x3c1221(0x3b2)]=_0x58d721||0x0,this[_0x3c1221(0x471)]=_0x23d959||0x0,this[_0x3c1221(0x491)]=_0x258588||0x0,this[_0x3c1221(0x255)]=_0x2d2fee||0x0;const _0xb83318=Boolean((_0x5e8ef4=_0x3c7a7f[_0x3c1221(0x600)])===null||_0x5e8ef4===void 0x0?void 0x0:_0x5e8ef4[_0x3c1221(0x2f5)]),_0x18e48f=Boolean((_0x475803=_0x3c7a7f['transform'])===null||_0x475803===void 0x0?void 0x0:_0x475803[_0x3c1221(0x35d)]),_0x123749=((_0x1af65d=_0x3c7a7f['transform'])===null||_0x1af65d===void 0x0?void 0x0:_0x1af65d['angle'])||0x0,_0x271e77=this[_0x3c1221(0x23b)](_0x4d1523,_0x23782a,_0x1ccfbc);if(!_0x271e77)return;const _0x36020d=this['_getOrCreateShapeModel'](_0x271e77['prstGeom'],this[_0x3c1221(0x491)],this['_baseHeight'],_0x271e77['adjustValues']);if(!_0x36020d)return;this['_activeShapeModel']=_0x36020d,this['_activeAdjustInfo']=_0x36020d[_0x3c1221(0x649)](_0x3a1f1e);if(!this[_0x3c1221(0x159)])return;this[_0x3c1221(0x50d)]=!![],_0x414d43[_0x3c1221(0x3c5)]();const _0x2c3f56=_0x271e77[_0x3c1221(0x31d)];this[_0x3c1221(0x310)]=_0x414d43[_0x3c1221(0x223)][_0x3c1221(0x345)]((_0xd1938f,_0x352bda)=>{const _0x37821b=_0x3c1221;if(!this[_0x37821b(0x50d)])return;const {offsetX:_0x36e1b9,offsetY:_0x4b8c94}=_0xd1938f,_0x3b8e34=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x3b8e34)return;_0x414d43[_0x37821b(0x3c5)](),_0x414d43['setCursor'](_univerjs_engine_render[_0x37821b(0x322)][_0x37821b(0x5b3)]);const _0x5701f5={'left':0x0,'top':0x0,'width':this[_0x37821b(0x491)],'height':this[_0x37821b(0x255)]},_0x121c7f=this[_0x37821b(0x507)](_0x4d1523,_0x23782a),_0x28b8b5=this[_0x37821b(0x52f)](_0x4d1523,_0x23782a);let _0x2dac5a=_0x36e1b9/_0x28b8b5+_0x121c7f['x']-this[_0x37821b(0x3b2)],_0x391cc6=_0x4b8c94/_0x28b8b5+_0x121c7f['y']-this[_0x37821b(0x471)];if(_0x123749!==0x0){const _0x17fa79=this['_baseWidth']/0x2,_0x3a761d=this[_0x37821b(0x255)]/0x2,_0xa86bf9=_0x123749*Math['PI']/0xb4,_0x1e4110=Math[_0x37821b(0x1cb)](_0xa86bf9),_0x1f9c06=Math[_0x37821b(0x479)](_0xa86bf9),_0x49f698=_0x2dac5a-_0x17fa79,_0x2e9929=_0x391cc6-_0x3a761d;_0x2dac5a=_0x17fa79+(_0x49f698*_0x1e4110+_0x2e9929*_0x1f9c06),_0x391cc6=_0x3a761d+(-_0x49f698*_0x1f9c06+_0x2e9929*_0x1e4110);}if(_0xb83318)_0x2dac5a=this[_0x37821b(0x491)]-_0x2dac5a;if(_0x18e48f)_0x391cc6=this[_0x37821b(0x255)]-_0x391cc6;const _0x2bc9a6=this[_0x37821b(0x19a)]['calcAdjValue'](_0x5701f5,{'x':_0x2dac5a,'y':_0x391cc6},_0x3b8e34,_0xb83318,_0x18e48f),_0x343c57=_0x3b8e34[_0x37821b(0x5be)]||_0x3b8e34[_0x37821b(0x12c)]||_0x3b8e34['gdRefAng']||_0x3b8e34['gdRefR'];if(_0x343c57===void 0x0)return;this[_0x37821b(0x19a)][_0x37821b(0x57d)](_0x343c57,_0x2bc9a6),this[_0x37821b(0x19a)]['updateContext']({'width':this[_0x37821b(0x491)],'height':this['_baseHeight']}),this[_0x37821b(0x4cf)](_0x4d1523,_0x23782a,_0x1ccfbc,_0x343c57,_0x2bc9a6),this[_0x37821b(0x4e9)]=this[_0x37821b(0x19a)][_0x37821b(0x660)](),this[_0x37821b(0x159)]=this[_0x37821b(0x19a)][_0x37821b(0x649)](_0x3a1f1e),this[_0x37821b(0x191)](),_0x352bda[_0x37821b(0x11e)]();}),this[_0x3c1221(0x4f6)]=_0x414d43[_0x3c1221(0x575)][_0x3c1221(0x345)]((_0x398210,_0x142f6f)=>{const _0xe84a0c=_0x3c1221;this[_0xe84a0c(0x310)][_0xe84a0c(0x54e)](),this[_0xe84a0c(0x4f6)][_0xe84a0c(0x54e)](),_0x414d43[_0xe84a0c(0x26d)]();if(this[_0xe84a0c(0x19a)]){const _0x2d6160=this[_0xe84a0c(0x19a)]['getAdjustNames'](),_0x20b74c={};for(const _0x1abe5b of _0x2d6160){const _0x1f7893=this[_0xe84a0c(0x19a)][_0xe84a0c(0x5f9)](_0x1abe5b);if(_0x1f7893!==void 0x0)_0x20b74c[_0x1abe5b]=_0x1f7893;}this['_imageShapeClipController'][_0xe84a0c(0x643)](_0x4d1523,_0x23782a,_0x1ccfbc,_0x2c3f56,_0x20b74c);}this['_activeAdjustInfo']=void 0x0,this[_0xe84a0c(0x19a)]=void 0x0,this['_isStartAdjusting']=![],_0x142f6f[_0xe84a0c(0x11e)](),_0x414d43[_0xe84a0c(0x4fc)]();}),_0x3b3221[_0x3c1221(0x11e)]();})));}[_0x3e9a34(0x4cf)](_0x1c58fa,_0x10ce5c,_0x1abc90,_0x5e5fbb,_0x457a13){const _0x37e286=_0x3e9a34,_0x36a820=this[_0x37e286(0x5cb)][_0x37e286(0x17d)](_0x1c58fa);if(!_0x36a820)return;const {scene:_0x64a49}=_0x36a820,_0x2f3927=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x1c58fa,'subUnitId':_0x10ce5c,'drawingId':_0x1abc90}),_0x725030=_0x64a49[_0x37e286(0x3c3)](_0x2f3927);if(_0x725030 instanceof _univerjs_engine_render[_0x37e286(0x41c)]){var _0x20dcc7;const _0x540550=(_0x20dcc7=_0x725030[_0x37e286(0x3c4)])!==null&&_0x20dcc7!==void 0x0?_0x20dcc7:{};_0x725030[_0x37e286(0x31a)]({..._0x540550,[_0x5e5fbb]:_0x457a13}),_0x725030[_0x37e286(0x309)](!![]);}}['_registerMoveHandler'](){const _0x1a1a64=_0x3e9a34,_0x3a06c6=this[_0x1a1a64(0x5e1)]['getCurrentTypeOfUnit$'](_univerjs_core['UniverInstanceType'][_0x1a1a64(0x58b)]);this[_0x1a1a64(0x58e)](_0x3a06c6[_0x1a1a64(0x1e2)]((0x0,rxjs['switchMap'])(_0x314ec3=>{const _0x14273f=_0x1a1a64;if(!_0x314ec3)return rxjs['EMPTY'];return _0x314ec3[_0x14273f(0x1e1)][_0x14273f(0x1e2)]((0x0,rxjs[_0x14273f(0x352)])(_0x3f8a4f=>{const _0x3251bd=_0x14273f;if(!_0x3f8a4f)return rxjs['EMPTY'];const _0x150a93=_0x314ec3[_0x3251bd(0x386)](),_0x58c780=this[_0x3251bd(0x5cb)][_0x3251bd(0x17d)](_0x150a93),_0x1a9757=_0x58c780===null||_0x58c780===void 0x0?void 0x0:_0x58c780[_0x3251bd(0x2a4)];if(!_0x1a9757)return rxjs[_0x3251bd(0x218)];return(0x0,rxjs['of'])(_0x1a9757);}));}))[_0x1a1a64(0x562)](_0x2c268a=>{const _0x4a5797=_0x1a1a64,_0x521e44=_0x2c268a[_0x4a5797(0xe2)]();this[_0x4a5797(0x58e)](_0x2c268a[_0x4a5797(0x223)][_0x4a5797(0x345)](()=>{const _0x8d51a=_0x4a5797;if(this[_0x8d51a(0x4a1)])this[_0x8d51a(0x221)]();})),this['disposeWithMe'](_0x521e44[_0x4a5797(0x14c)][_0x4a5797(0x562)](_0x3b6004=>{const _0x306a37=_0x4a5797,{objects:_0x2b0f22}=_0x3b6004;this[_0x306a37(0x191)]();if(_0x2b0f22!==null&&_0x2b0f22[_0x306a37(0x43f)]===0x1){const _0x47fb02=_0x2b0f22[_0x306a37(0x4b8)]()[_0x306a37(0x5c7)]()[_0x306a37(0x115)];if(_0x47fb02 instanceof _univerjs_engine_render[_0x306a37(0x41c)]&&_0x47fb02[_0x306a37(0x31d)])this[_0x306a37(0x4a1)]=!![];}})),this[_0x4a5797(0x58e)](_0x521e44['changing$']['subscribe'](()=>{const _0x262f6b=_0x4a5797;if(this[_0x262f6b(0x4a1)])this[_0x262f6b(0x221)]();})),this[_0x4a5797(0x58e)](_0x2c268a[_0x4a5797(0x575)][_0x4a5797(0x345)](()=>{const _0x20b4ca=_0x4a5797;this[_0x20b4ca(0x4a1)]&&(this[_0x20b4ca(0x4a1)]=![],this[_0x20b4ca(0x191)]());})),this[_0x4a5797(0x58e)](_0x521e44[_0x4a5797(0x4c0)][_0x4a5797(0x562)](()=>{const _0x156966=_0x4a5797;if(this[_0x156966(0x324)]&&this[_0x156966(0x55d)]&&this[_0x156966(0x5ae)]){const _0xb3ce5f=this['_getImagePrstGeom'](this[_0x156966(0x324)],this[_0x156966(0x55d)],this[_0x156966(0x5ae)]);if(_0xb3ce5f){var _0x365640,_0xcc6e0;const _0x43725c=this['_getImageDrawingInfo'](this[_0x156966(0x324)],this[_0x156966(0x55d)],this[_0x156966(0x5ae)]),_0x44312=(_0x43725c===null||_0x43725c===void 0x0||(_0x365640=_0x43725c[_0x156966(0x600)])===null||_0x365640===void 0x0?void 0x0:_0x365640['width'])||0x0,_0x25f380=(_0x43725c===null||_0x43725c===void 0x0||(_0xcc6e0=_0x43725c[_0x156966(0x600)])===null||_0xcc6e0===void 0x0?void 0x0:_0xcc6e0[_0x156966(0x37b)])||0x0,_0xfafa0a=this[_0x156966(0x461)](_0xb3ce5f[_0x156966(0x31d)],_0x44312,_0x25f380,_0xb3ce5f[_0x156966(0x132)]);_0xfafa0a&&(this[_0x156966(0x4e9)]=_0xfafa0a[_0x156966(0x660)](),this[_0x156966(0x221)](),this[_0x156966(0x191)](!![]));}}}));}));}[_0x3e9a34(0x2e5)](){const _0x4e52d6=_0x3e9a34;this[_0x4e52d6(0x58e)](this[_0x4e52d6(0x4d0)][_0x4e52d6(0x188)][_0x4e52d6(0x562)](_0x4e3431=>{const _0x3c57f4=_0x4e52d6;if(_0x4e3431['length']===0x1){const _0x2044b5=_0x4e3431[0x0];if(_0x2044b5['drawingType']===_univerjs_core[_0x3c57f4(0x506)][_0x3c57f4(0x140)]){const {unitId:_0xac45a4,subUnitId:_0x375e4e,drawingId:_0x38e2fb}=_0x2044b5,_0x3e4c59=this[_0x3c57f4(0x23b)](_0xac45a4,_0x375e4e,_0x38e2fb);if(_0x3e4c59){var _0x993010,_0x44f1fd;this[_0x3c57f4(0x5ae)]=_0x38e2fb,this['_unitId']=_0xac45a4,this[_0x3c57f4(0x55d)]=_0x375e4e;const _0x12b0e9=this[_0x3c57f4(0x2d1)](_0xac45a4,_0x375e4e,_0x38e2fb),_0x22f0af=(_0x12b0e9===null||_0x12b0e9===void 0x0||(_0x993010=_0x12b0e9[_0x3c57f4(0x600)])===null||_0x993010===void 0x0?void 0x0:_0x993010[_0x3c57f4(0x183)])||0x0,_0xc1c3a6=(_0x12b0e9===null||_0x12b0e9===void 0x0||(_0x44f1fd=_0x12b0e9[_0x3c57f4(0x600)])===null||_0x44f1fd===void 0x0?void 0x0:_0x44f1fd[_0x3c57f4(0x37b)])||0x0,_0x2ccd09=this[_0x3c57f4(0x461)](_0x3e4c59[_0x3c57f4(0x31d)],_0x22f0af,_0xc1c3a6,_0x3e4c59[_0x3c57f4(0x132)]);if(_0x2ccd09)this[_0x3c57f4(0x4e9)]=_0x2ccd09['getDrawingPoints']();this['_clearControls'](),this[_0x3c57f4(0x191)](!![]);}else this[_0x3c57f4(0x57e)]();}else this[_0x3c57f4(0x57e)]();}else this[_0x3c57f4(0x57e)]();})),this['disposeWithMe'](this[_0x4e52d6(0x4d0)][_0x4e52d6(0x554)][_0x4e52d6(0x562)](_0x12701b=>{const _0x29a1a6=_0x4e52d6;if(_0x12701b[_0x29a1a6(0x440)]===0x1){const _0x17e4c1=_0x12701b[0x0],_0x161760=this[_0x29a1a6(0x4d0)][_0x29a1a6(0x619)](_0x17e4c1);(_0x161760===null||_0x161760===void 0x0?void 0x0:_0x161760['drawingType'])===_univerjs_core[_0x29a1a6(0x506)]['DRAWING_IMAGE']&&(this[_0x29a1a6(0x5ae)]===_0x17e4c1[_0x29a1a6(0x4c5)]&&(this[_0x29a1a6(0x221)](),this[_0x29a1a6(0x191)](!![])));}})),this[_0x4e52d6(0x58e)](this[_0x4e52d6(0x4d0)]['remove$']['subscribe'](_0x2c20bc=>{const _0x4a8280=_0x4e52d6;for(const _0x5313e6 of _0x2c20bc)if(this[_0x4a8280(0x5ae)]===_0x5313e6[_0x4a8280(0x4c5)])this[_0x4a8280(0x57e)]();}));}[_0x3e9a34(0x57e)](){const _0x1eb23d=_0x3e9a34;this[_0x1eb23d(0x5ae)]=null,this[_0x1eb23d(0x324)]=null,this['_subUnitId']=null,this[_0x1eb23d(0x4e9)]=void 0x0,this[_0x1eb23d(0x221)]();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0xfe0393,_0x4518ec,_0xa511aa,_0x420f52){const _0x364af9=_0x3e9a34;super(),this[_0x364af9(0x5e1)]=_0xfe0393,this['_sheetInterceptorService']=_0x4518ec,this['_sheetDrawingService']=_0xa511aa,this['_sheetsShapeService']=_0x420f52,this['_initSheetChange']();}[_0x3e9a34(0x31e)](){const _0x191816=_0x3e9a34;this[_0x191816(0x58e)](this[_0x191816(0x346)]['interceptCommand']({'getMutations':_0x4bf38c=>{const _0x56ccd3=_0x191816;if(_0x4bf38c['id']===_univerjs_sheets[_0x56ccd3(0x493)]['id']){const _0x5addba=(0x0,_univerjs_sheets[_0x56ccd3(0x249)])(this[_0x56ccd3(0x5e1)],_0x4bf38c[_0x56ccd3(0xee)]);if(!_0x5addba)return{'redos':[],'undos':[]};const {unitId:_0x1e7542,subUnitId:_0x4963a8}=_0x5addba,_0x436502=this[_0x56ccd3(0x5ad)]['getDrawingData'](_0x1e7542,_0x4963a8),_0x77d13b=Object['values'](_0x436502)[_0x56ccd3(0x50f)](_0x18a73f=>_0x18a73f[_0x56ccd3(0x5ec)]===_univerjs_core[_0x56ccd3(0x506)][_0x56ccd3(0x3fc)]);if(_0x77d13b[_0x56ccd3(0x440)]===0x0)return{'redos':[],'undos':[]};const _0x3c53ce=[],_0x19ffe3=[];for(let _0x4fd9e3=0x0;_0x4fd9e3<_0x77d13b[_0x56ccd3(0x440)];_0x4fd9e3++){const _0x5b58cb=_0x77d13b[_0x4fd9e3],_0x1a9232=this[_0x56ccd3(0xfd)][_0x56ccd3(0x533)](_0x5b58cb[_0x56ccd3(0x4a8)],_0x5b58cb[_0x56ccd3(0x5d6)],_0x5b58cb[_0x56ccd3(0x4c5)]);if(!_0x1a9232)continue;const {redo:_0x86d814,undo:_0x511932,objects:_0x392497}=this[_0x56ccd3(0x5ad)][_0x56ccd3(0x225)]([_0x5b58cb]);_0x3c53ce[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x13e)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'shapeId':_0x5b58cb['drawingId']}}),_0x3c53ce[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x354)],'op':_0x86d814,'objects':_0x392497}}),_0x19ffe3[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x56ccd3(0x317)],'op':_0x511932,'objects':_0x392497}}),_0x19ffe3[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x598)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'shapeId':_0x5b58cb['drawingId'],'shapeType':_0x1a9232['getShapeType'](),'shapeData':JSON[_0x56ccd3(0x329)](JSON[_0x56ccd3(0x313)](_0x1a9232[_0x56ccd3(0x470)]()))}});}return{'redos':_0x3c53ce,'undos':_0x19ffe3};}else{if(_0x4bf38c['id']===_univerjs_sheets[_0x56ccd3(0x2d4)]['id']){const {unitId:_0x276f32,subUnitId:_0x5a7df1,targetSubUnitId:_0x26c29b}=_0x4bf38c[_0x56ccd3(0xee)];if(!_0x276f32||!_0x5a7df1||!_0x26c29b)return{'redos':[],'undos':[]};const _0x32f455=this[_0x56ccd3(0x5ad)][_0x56ccd3(0x5bc)](_0x276f32,_0x5a7df1),_0x1f20f3=Object[_0x56ccd3(0x4b8)](_0x32f455)[_0x56ccd3(0x50f)](_0x10562d=>_0x10562d[_0x56ccd3(0x5ec)]===_univerjs_core[_0x56ccd3(0x506)]['DRAWING_SHAPE']);if(_0x1f20f3['length']===0x0)return{'redos':[],'undos':[]};const _0x41b950=[],_0x51162a=[];for(let _0x5b578b=0x0;_0x5b578b<_0x1f20f3[_0x56ccd3(0x440)];_0x5b578b++){const _0x1b5e22=_0x1f20f3[_0x5b578b],_0x31a129=this[_0x56ccd3(0xfd)][_0x56ccd3(0x533)](_0x1b5e22['unitId'],_0x1b5e22[_0x56ccd3(0x5d6)],_0x1b5e22[_0x56ccd3(0x4c5)]);if(!_0x31a129)continue;const _0x13eeda=(0x0,_univerjs_core[_0x56ccd3(0x652)])(),_0x305230={..._0x1b5e22,'unitId':_0x276f32,'subUnitId':_0x26c29b,'drawingId':_0x13eeda},{redo:_0x1e7f27,undo:_0x17ebec,objects:_0x32bbfb}=this['_sheetDrawingService'][_0x56ccd3(0x58c)]([_0x305230]);_0x41b950['push']({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x317)],'op':_0x1e7f27,'objects':_0x32bbfb}}),_0x41b950['push']({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x598)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'shapeId':_0x13eeda,'shapeType':_0x31a129['getShapeType'](),'shapeData':JSON[_0x56ccd3(0x329)](JSON[_0x56ccd3(0x313)](_0x31a129['getShapeData']()))}}),_0x51162a[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x13e)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'shapeId':_0x13eeda}}),_0x51162a[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x354)],'op':_0x17ebec,'objects':_0x32bbfb}});}return{'redos':_0x41b950,'undos':_0x51162a};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x53f)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets[_0x3e9a34(0x45b)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing[_0x3e9a34(0x275)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x4cc308,_0x3fe0f6,_0x34c34f,_0x15a514,_0x5b6196){const _0x44f6fe=_0x3e9a34;super(),this['_context']=_0x4cc308,this['_shapeTextEditingService']=_0x3fe0f6,this['_drawingManagerService']=_0x34c34f,this[_0x44f6fe(0x17e)]=_0x15a514,this[_0x44f6fe(0xfd)]=_0x5b6196,_defineProperty(this,_0x44f6fe(0x192),null),this[_0x44f6fe(0x178)](),this[_0x44f6fe(0x14f)](),this[_0x44f6fe(0x2e0)]();}[_0x3e9a34(0x178)](){const _0x1f0adb=_0x3e9a34,{scene:_0x395e64}=this['_context'];this[_0x1f0adb(0x58e)](_0x395e64[_0x1f0adb(0x122)][_0x1f0adb(0x345)](_0x13506a=>{const _0x2d8244=_0x1f0adb,{offsetX:_0x27c293,offsetY:_0x5d9bb2}=_0x13506a,_0x429086=_0x395e64[_0x2d8244(0x3ff)](_univerjs_engine_render[_0x2d8244(0x1de)]['FromArray']([_0x27c293,_0x5d9bb2]));if(_0x429086 instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x2d8244(0x654)])(this[_0x2d8244(0xfd)]['getShapeType'](_0x429086[_0x2d8244(0x4a8)],_0x429086['subUnitId'],_0x429086[_0x2d8244(0x4ac)])))return;this['_shapeTextEditingService'][_0x2d8244(0x1d8)]({'visible':!![],'unitId':_0x429086[_0x2d8244(0x4a8)],'subUnitId':_0x429086['subUnitId'],'shapeId':_0x429086[_0x2d8244(0x4ac)],'shapeKey':_0x429086[_0x2d8244(0x389)]});}}));}['_initSelection'](){const _0x18b6a3=_0x3e9a34;this[_0x18b6a3(0x58e)](this[_0x18b6a3(0x4d0)][_0x18b6a3(0x188)]['subscribe'](_0xe6d4a1=>{const _0x21d645=_0x18b6a3;if(_0xe6d4a1[_0x21d645(0x440)]===0x1){const _0x174531=_0xe6d4a1[0x0],_0x4adcea=this['_drawingManagerService'][_0x21d645(0x619)](_0x174531);if((_0x4adcea===null||_0x4adcea===void 0x0?void 0x0:_0x4adcea[_0x21d645(0x5ec)])===_univerjs_core[_0x21d645(0x506)][_0x21d645(0x3fc)]){const _0x4cbe49=this[_0x21d645(0x53a)][_0x21d645(0x512)]();if((_0x4cbe49===null||_0x4cbe49===void 0x0?void 0x0:_0x4cbe49[_0x21d645(0x4ac)])===_0x174531[_0x21d645(0x4c5)]&&_0x4cbe49[_0x21d645(0x576)])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x21d645(0xfd)]['getShapeType'](_0x174531[_0x21d645(0x4a8)],_0x174531[_0x21d645(0x5d6)],_0x174531[_0x21d645(0x4c5)])))this[_0x21d645(0x53a)][_0x21d645(0x1d8)](null);}else this[_0x21d645(0x53a)][_0x21d645(0x512)]()&&(this[_0x21d645(0x53a)]['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0x1d2d77=_0x21d645;this[_0x1d2d77(0x53a)][_0x1d2d77(0x1d8)](null);}));}else this[_0x21d645(0x53a)][_0x21d645(0x512)]()&&(this[_0x21d645(0x53a)]['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0x4a8599=_0x21d645;this[_0x4a8599(0x53a)]['setEditing'](null);}));})),this[_0x18b6a3(0x58e)](this[_0x18b6a3(0x4d0)][_0x18b6a3(0x31c)][_0x18b6a3(0x562)](_0x3ac934=>{const _0x596591=_0x18b6a3,_0x5895f8=this[_0x596591(0x53a)][_0x596591(0x512)]();if(_0x5895f8&&_0x3ac934[_0x596591(0x333)](_0xc71311=>_0xc71311['drawingId']===_0x5895f8[_0x596591(0x4ac)]))this['_shapeTextEditingService'][_0x596591(0x1d8)](null);}));}[_0x3e9a34(0x2e0)](){const _0x407861=_0x3e9a34;this[_0x407861(0x58e)](this[_0x407861(0x53a)][_0x407861(0x186)][_0x407861(0x562)](_0x4c7ce9=>{const _0x15c97a=_0x407861,{scene:_0xbbaa75}=this['_context'];if(this[_0x15c97a(0x192)]){const _0x536f33=_0xbbaa75['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);if(_0x536f33)_0x536f33[_0x15c97a(0x1d8)](![]);}if(_0x4c7ce9){const _0x1601d8=!!_0x4c7ce9['visible'],_0x164de3=_0xbbaa75[_0x15c97a(0x21c)](_0x4c7ce9[_0x15c97a(0x50b)]);_0x164de3&&(_0x164de3[_0x15c97a(0x1d8)](_0x1601d8),this[_0x15c97a(0x192)]=_0x4c7ce9[_0x15c97a(0x50b)]),this['_contextService'][_0x15c97a(0x1b8)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],_0x1601d8);}else this[_0x15c97a(0x192)]=null,this['_contextService'][_0x15c97a(0x1b8)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x409)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3e9a34(0x213)],'stroke':_univerjs_pro_engine_shape[_0x3e9a34(0x49a)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape[_0x3e9a34(0x49a)]['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x2f4db5,_0x53d61f){const _0x1d5831=_0x3e9a34;super(_0x2f4db5,_0x53d61f),_defineProperty(this,_0x1d5831(0x5e8),''),_defineProperty(this,_0x1d5831(0x3f1),-0x1),_defineProperty(this,_0x1d5831(0x324),''),_defineProperty(this,_0x1d5831(0x55d),''),_defineProperty(this,_0x1d5831(0x35c),![]);if(_0x53d61f)this[_0x1d5831(0x5fe)](_0x53d61f);}['getConnectionInfo'](){const _0x52f606=_0x3e9a34;return{'unitId':this[_0x52f606(0x324)],'subUnitId':this[_0x52f606(0x55d)],'shapeId':this[_0x52f606(0x5e8)],'cxnIndex':this['_cxnIndex']};}[_0x3e9a34(0x237)](_0x4e1ac5){const _0x1e45d2=_0x3e9a34;this['_isHighlighted']!==_0x4e1ac5&&(this[_0x1e45d2(0x35c)]=_0x4e1ac5,this['makeDirty'](!![]));}[_0x3e9a34(0x4b0)](){const _0x2b1fc8=_0x3e9a34;return this[_0x2b1fc8(0x35c)];}[_0x3e9a34(0x5fe)](_0x55f8bf){const _0x9e779d=_0x3e9a34;var _0x251327,_0x542e97;if(typeof _0x55f8bf['targetShapeId']!==_0x9e779d(0x544))this[_0x9e779d(0x5e8)]=_0x55f8bf[_0x9e779d(0x33d)];if(typeof _0x55f8bf[_0x9e779d(0x120)]!==_0x9e779d(0x544))this[_0x9e779d(0x3f1)]=_0x55f8bf[_0x9e779d(0x120)];if(typeof _0x55f8bf[_0x9e779d(0x4a8)]!==_0x9e779d(0x544))this[_0x9e779d(0x324)]=_0x55f8bf['unitId'];if(typeof _0x55f8bf[_0x9e779d(0x5d6)]!==_0x9e779d(0x544))this[_0x9e779d(0x55d)]=_0x55f8bf[_0x9e779d(0x5d6)];if(typeof _0x55f8bf[_0x9e779d(0x4b0)]!=='undefined')this['_isHighlighted']=_0x55f8bf[_0x9e779d(0x4b0)];this[_0x9e779d(0x227)]({'width':(_0x251327=_0x55f8bf['width'])!==null&&_0x251327!==void 0x0?_0x251327:_univerjs_pro_engine_shape[_0x9e779d(0x49a)]['cxnPointRadius']*0x2,'height':(_0x542e97=_0x55f8bf[_0x9e779d(0x37b)])!==null&&_0x542e97!==void 0x0?_0x542e97:_univerjs_pro_engine_shape[_0x9e779d(0x49a)][_0x9e779d(0x325)]*0x2});}['_draw'](_0x53a628){const _0x5b99d5=_0x3e9a34,_0x4159bc=this[_0x5b99d5(0x35c)]?ConnectionSiteStyle[_0x5b99d5(0x585)]:ConnectionSiteStyle[_0x5b99d5(0x296)];_univerjs_engine_render[_0x5b99d5(0x5d8)]['drawWith'](_0x53a628,{'radius':_univerjs_pro_engine_shape[_0x5b99d5(0x49a)][_0x5b99d5(0x325)],'fill':_0x4159bc[_0x5b99d5(0x151)],'stroke':_0x4159bc['stroke'],'strokeWidth':_0x4159bc['strokeWidth'],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core['Disposable']{constructor(_0x2d41b3,_0x5bfb83,_0x606fb9,_0x239554){const _0x29d01e=_0x3e9a34;super(),this[_0x29d01e(0x50e)]=_0x2d41b3,this[_0x29d01e(0x5cb)]=_0x5bfb83,this[_0x29d01e(0x4d0)]=_0x606fb9,this[_0x29d01e(0xfd)]=_0x239554,_defineProperty(this,_0x29d01e(0x264),[]),_defineProperty(this,_0x29d01e(0x353),null),_defineProperty(this,_0x29d01e(0x175),-0x1),_defineProperty(this,_0x29d01e(0x442),null),_defineProperty(this,_0x29d01e(0x324),''),_defineProperty(this,_0x29d01e(0x55d),''),_defineProperty(this,_0x29d01e(0x245),null);}[_0x3e9a34(0x431)](_0x43c66f,_0xe02549,_0x4907d7,_0x537dc5){const _0x439536=_0x3e9a34;this['_currentScene']=_0x43c66f,this['_unitId']=_0xe02549,this['_subUnitId']=_0x4907d7,this[_0x439536(0x245)]=_0x537dc5;}[_0x3e9a34(0x581)](_0x1f0932){const _0x666492=_0x3e9a34;if(!this[_0x666492(0x442)])return null;const _0x2ed59f=this[_0x666492(0x633)](_0x1f0932);return _0x2ed59f?(this[_0x666492(0x353)]!==_0x2ed59f[_0x666492(0x4ac)]&&(this[_0x666492(0x162)](),this[_0x666492(0x4ae)](_0x2ed59f[_0x666492(0x4ac)],_0x2ed59f['shapeModel']),this[_0x666492(0x353)]=_0x2ed59f[_0x666492(0x4ac)]),this[_0x666492(0x5c3)](_0x1f0932)):(this[_0x666492(0x353)]!==null&&(this[_0x666492(0x162)](),this[_0x666492(0x353)]=null),null);}['endConnectionDetection'](){const _0x4bd9c7=_0x3e9a34;this['_clearConnectionSites'](),this[_0x4bd9c7(0x442)]=null,this[_0x4bd9c7(0x353)]=null,this[_0x4bd9c7(0x175)]=-0x1,this[_0x4bd9c7(0x245)]=null;}[_0x3e9a34(0x2d0)](){const _0x158d77=_0x3e9a34;if(this[_0x158d77(0x353)]===null||this[_0x158d77(0x175)]<0x0)return null;return{'shapeId':this[_0x158d77(0x353)],'cxnIndex':this[_0x158d77(0x175)]};}[_0x3e9a34(0x633)](_0x58a4a5){const _0x1b0f3c=_0x3e9a34,_0x4ca386=this['_drawingManagerService'][_0x1b0f3c(0x5bc)](this[_0x1b0f3c(0x324)],this[_0x1b0f3c(0x55d)]);for(const _0x52ae99 of Object[_0x1b0f3c(0x1b4)](_0x4ca386)){if(_0x52ae99===this[_0x1b0f3c(0x245)])continue;if(_0x4ca386[_0x52ae99][_0x1b0f3c(0x5ec)]!==_univerjs_core[_0x1b0f3c(0x506)][_0x1b0f3c(0x3fc)])continue;const _0x77d61=this['_sheetsShapeService']['getShapeModel'](this[_0x1b0f3c(0x324)],this[_0x1b0f3c(0x55d)],_0x52ae99);if(!_0x77d61)continue;if((0x0,_univerjs_pro_engine_shape[_0x1b0f3c(0x654)])(_0x77d61['getShapeType']()))continue;if(_0x77d61['getConnectionSiteList']()['length']===0x0)continue;if(!this['_currentScene'])continue;const _0x1bebc8=(0x0,_univerjs_drawing[_0x1b0f3c(0x171)])({'unitId':this[_0x1b0f3c(0x324)],'subUnitId':this[_0x1b0f3c(0x55d)],'drawingId':_0x52ae99}),_0x5445ab=this['_currentScene']['getObjectIncludeInGroup'](_0x1bebc8);if(!_0x5445ab)continue;const {left:_0xa0971c,top:_0x416618,width:_0x13c325,height:_0x5ccd0e}=_0x5445ab[_0x1b0f3c(0x5ff)](),_0x8e7184=_0xa0971c+_0x13c325/0x2,_0x3067dd=_0x416618+_0x5ccd0e/0x2,_0xd095d7=_0x5445ab[_0x1b0f3c(0x600)]['getMatrix'](),_0x47d8ac=new _univerjs_engine_render['Transform']([_0xd095d7[0x0],_0xd095d7[0x1],_0xd095d7[0x2],_0xd095d7[0x3],_0x8e7184,_0x3067dd]),_0x5ba445=_0x5445ab[_0x1b0f3c(0x316)](),_0x75ad4=(_0x5445ab[_0x1b0f3c(0x258)]&&(_0x5ba445===null||_0x5ba445===void 0x0?void 0x0:_0x5ba445[_0x1b0f3c(0x571)])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0x1b0f3c(0x4a2)]?_0x5ba445[_0x1b0f3c(0x526)]['multiply'](_0x47d8ac):_0x47d8ac)[_0x1b0f3c(0x66a)]()[_0x1b0f3c(0x342)](_0x58a4a5),_0x3c4a76=_0x13c325/0x2,_0x5174ec=_0x5ccd0e/0x2,_0x5605b9=SHAPE_BOUNDS_PADDING;if(_0x75ad4['x']>=-_0x3c4a76-_0x5605b9&&_0x75ad4['x']<=_0x3c4a76+_0x5605b9&&_0x75ad4['y']>=-_0x5174ec-_0x5605b9&&_0x75ad4['y']<=_0x5174ec+_0x5605b9)return{'shapeId':_0x52ae99,'shapeModel':_0x77d61};}return null;}[_0x3e9a34(0x4ae)](_0x340430,_0x2e5161){const _0x8912ba=_0x3e9a34;if(!this['_currentScene'])return;const _0x3c80b6=(0x0,_univerjs_drawing[_0x8912ba(0x171)])({'unitId':this[_0x8912ba(0x324)],'subUnitId':this['_subUnitId'],'drawingId':_0x340430}),_0x1b4e17=this[_0x8912ba(0x442)]['getObjectIncludeInGroup'](_0x3c80b6);if(!_0x1b4e17)return;const {left:_0x12c74c,top:_0x2b7c76,width:_0x455051,height:_0x17e105}=_0x1b4e17[_0x8912ba(0x5ff)](),_0x3d9bd7=_0x12c74c+_0x455051/0x2,_0x3d8655=_0x2b7c76+_0x17e105/0x2,_0x37025f=_0x1b4e17[_0x8912ba(0x600)][_0x8912ba(0x146)](),_0x2a7b12=new _univerjs_engine_render['Transform']([_0x37025f[0x0],_0x37025f[0x1],_0x37025f[0x2],_0x37025f[0x3],_0x3d9bd7,_0x3d8655]),_0x174bec=_0x1b4e17[_0x8912ba(0x316)](),_0x437082=_0x1b4e17[_0x8912ba(0x258)]&&(_0x174bec===null||_0x174bec===void 0x0?void 0x0:_0x174bec[_0x8912ba(0x571)])===_univerjs_engine_render[_0x8912ba(0x4f8)]['GROUP']?_0x174bec[_0x8912ba(0x526)]['multiply'](_0x2a7b12):_0x2a7b12;_0x2e5161[_0x8912ba(0x566)]({'width':_0x455051,'height':_0x17e105});const _0x42769c=_0x2e5161['getConnectionSiteList']();for(const _0x5e2026 of _0x42769c){const _0x36b935=_0x5e2026['x']-_0x455051/0x2,_0x311ef2=_0x5e2026['y']-_0x17e105/0x2,_0x58fe4c=_0x437082[_0x8912ba(0x342)]({'x':_0x36b935,'y':_0x311ef2}),_0x30e181=_0x58fe4c['x'],_0x2333f8=_0x58fe4c['y'],_0x4a9c42=new SheetBasicShapeConnectionSiteObject(_0x8912ba(0x23c)+_0x340430+'-'+_0x5e2026[_0x8912ba(0x61c)],{'left':_0x30e181-_univerjs_pro_engine_shape[_0x8912ba(0x49a)]['cxnPointRadius'],'top':_0x2333f8-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x8912ba(0x325)],'targetShapeId':_0x340430,'cxnIndex':_0x5e2026[_0x8912ba(0x61c)],'unitId':this[_0x8912ba(0x324)],'subUnitId':this[_0x8912ba(0x55d)],'width':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x8912ba(0x325)]*0x2,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':![]});this[_0x8912ba(0x264)][_0x8912ba(0x2dd)](_0x4a9c42),this['_currentScene'][_0x8912ba(0x18b)](_0x4a9c42,_univerjs_engine_render[_0x8912ba(0x1bd)]+0x2);}}['_findNearestConnectionSite'](_0x1fe29a){const _0x31c8f1=_0x3e9a34;let _0x43b251=null,_0x4ca44c=Infinity,_0x236950=null;for(const _0x1231c5 of this[_0x31c8f1(0x264)]){const _0x5be514=_0x1231c5[_0x31c8f1(0xe1)]+_univerjs_pro_engine_shape[_0x31c8f1(0x49a)][_0x31c8f1(0x325)],_0x2eafaa=_0x1231c5[_0x31c8f1(0x156)]+_univerjs_pro_engine_shape[_0x31c8f1(0x49a)]['cxnPointRadius'],_0x4ee6d9=_0x1fe29a['x']-_0x5be514,_0x5f0e7a=_0x1fe29a['y']-_0x2eafaa,_0x4cea76=Math[_0x31c8f1(0x14b)](_0x4ee6d9*_0x4ee6d9+_0x5f0e7a*_0x5f0e7a);_0x4cea76<_0x4ca44c&&(_0x4ca44c=_0x4cea76,_0x43b251=_0x1231c5,_0x236950={'x':_0x5be514,'y':_0x2eafaa});}const _0x34ffdd=_0x4ca44c<=CONNECTION_SITE_HIT_RADIUS&&_0x43b251?_0x43b251['getConnectionInfo']()[_0x31c8f1(0x120)]:-0x1;if(_0x34ffdd!==this[_0x31c8f1(0x175)]){for(const _0x5bac4d of this['_connectionSiteObjects']){const _0x3c7446=_0x5bac4d[_0x31c8f1(0x488)]();_0x5bac4d[_0x31c8f1(0x237)](_0x3c7446[_0x31c8f1(0x120)]===_0x34ffdd);}this[_0x31c8f1(0x175)]=_0x34ffdd;}if(_0x4ca44c<=CONNECTION_SITE_HIT_RADIUS&&_0x43b251&&_0x236950){const _0x22f609=_0x43b251[_0x31c8f1(0x488)](),_0x2915e8=this[_0x31c8f1(0x1be)](_0x22f609[_0x31c8f1(0x4ac)],_0x22f609['cxnIndex']);return{'shapeId':_0x22f609['shapeId'],'cxnIndex':_0x22f609[_0x31c8f1(0x120)],'unitId':_0x22f609[_0x31c8f1(0x4a8)],'subUnitId':_0x22f609[_0x31c8f1(0x5d6)],'worldPoint':_0x236950,'angle':_0x2915e8};}return null;}[_0x3e9a34(0x1be)](_0x2b4bd0,_0x50ea1c){const _0x4acaea=_0x3e9a34,_0x1503b4=this[_0x4acaea(0xfd)][_0x4acaea(0x533)](this['_unitId'],this['_subUnitId'],_0x2b4bd0);if(!_0x1503b4)return 0x0;const _0x509648=this[_0x4acaea(0x4d0)][_0x4acaea(0x619)]({'unitId':this[_0x4acaea(0x324)],'subUnitId':this[_0x4acaea(0x55d)],'drawingId':_0x2b4bd0});if(!(_0x509648===null||_0x509648===void 0x0?void 0x0:_0x509648[_0x4acaea(0x600)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x509648[_0x4acaea(0x600)];_0x1503b4['updateContext']({'width':width,'height':height});const _0x597714=_0x1503b4['getConnectionSiteList']()[_0x4acaea(0x536)](_0x20c216=>_0x20c216[_0x4acaea(0x61c)]===_0x50ea1c);if(!_0x597714)return 0x0;let _0x1e9ed4=_0x597714[_0x4acaea(0x3c6)]/0xea60;if(flipX)_0x1e9ed4=0xb4-_0x1e9ed4;if(flipY)_0x1e9ed4=-_0x1e9ed4;return _0x1e9ed4=(_0x1e9ed4%0x168+0x168)%0x168,_0x1e9ed4;}['_clearConnectionSites'](){const _0x3cd1e2=_0x3e9a34;for(const _0x231c58 of this[_0x3cd1e2(0x264)])_0x231c58[_0x3cd1e2(0x199)]();this['_connectionSiteObjects']=[],this[_0x3cd1e2(0x175)]=-0x1;}[_0x3e9a34(0x199)](){const _0x2c3641=_0x3e9a34;this[_0x2c3641(0x162)](),super['dispose']();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_drawing['IDrawingManagerService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x58627e,_0x27f9c0,_0x29a6eb,_0x356ba3,_0x3bf495){const _0x11c574=_0x3e9a34;super(),this[_0x11c574(0x2cb)]=_0x58627e,this['_sheetClipboardService']=_0x27f9c0,this[_0x11c574(0x5ad)]=_0x29a6eb,this[_0x11c574(0x1f6)]=_0x356ba3,this[_0x11c574(0x2a0)]=_0x3bf495,_defineProperty(this,_0x11c574(0x262),void 0x0),this[_0x11c574(0x4af)](),this['_registerGroupFeaturePasteHook']();}get['_focusedDrawings'](){const _0x26c3e1=_0x3e9a34;return this[_0x26c3e1(0x5ad)][_0x26c3e1(0x4a6)]();}[_0x3e9a34(0x5b0)](){const _0x2141be=_0x3e9a34;this[_0x2141be(0x2a0)][_0x2141be(0x4e3)](({fromUnitId:_0x1369d3,fromSubUnitId:_0x3f6acb,toUnitId:_0xab36e2,toSubUnitId:_0x3c2662,idMap:_0x140194})=>{const _0x2e2912=_0x2141be,_0x7c1ab3=[],_0x5e9273=[];for(const [_0x541490,_0x306caf]of _0x140194[_0x2e2912(0x180)]()){const _0x4300f6=this[_0x2e2912(0x1f6)]['getShapeModel'](_0x1369d3,_0x3f6acb,_0x541490);if(!_0x4300f6)continue;const _0x3cbfd9=_0x4300f6[_0x2e2912(0x478)](),_0x139f4c=JSON[_0x2e2912(0x329)](JSON[_0x2e2912(0x313)](_0x4300f6[_0x2e2912(0x470)]()));if(_0x139f4c[_0x2e2912(0x276)]){var _0x356034,_0x220114;const _0x1e88cc=(_0x356034=_0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)])===null||_0x356034===void 0x0?void 0x0:_0x356034['shapeId'],_0x392c70=(_0x220114=_0x139f4c[_0x2e2912(0x276)]['to'])===null||_0x220114===void 0x0?void 0x0:_0x220114[_0x2e2912(0x4ac)],_0x206e89=_0x1e88cc?_0x140194[_0x2e2912(0x5ac)](_0x1e88cc):!![],_0x437c68=_0x392c70?_0x140194['has'](_0x392c70):!![];if(_0x206e89&&_0x1e88cc&&_0x139f4c['relation'][_0x2e2912(0x214)])_0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)]={..._0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)],'shapeId':_0x140194['get'](_0x1e88cc)};else _0x139f4c[_0x2e2912(0x276)]['from']=void 0x0;if(_0x437c68&&_0x392c70&&_0x139f4c[_0x2e2912(0x276)]['to'])_0x139f4c[_0x2e2912(0x276)]['to']={..._0x139f4c[_0x2e2912(0x276)]['to'],'shapeId':_0x140194[_0x2e2912(0x2d9)](_0x392c70)};else _0x139f4c[_0x2e2912(0x276)]['to']=void 0x0;}_0x7c1ab3[_0x2e2912(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x2e2912(0x598)]['id'],'params':{'unitId':_0xab36e2,'subUnitId':_0x3c2662,'shapeId':_0x306caf,'shapeType':_0x3cbfd9,'shapeData':_0x139f4c}}),_0x5e9273[_0x2e2912(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x2e2912(0x13e)]['id'],'params':{'unitId':_0xab36e2,'subUnitId':_0x3c2662,'shapeId':_0x306caf}});}return{'redos':_0x7c1ab3,'undos':_0x5e9273};});}[_0x3e9a34(0x4af)](){const _0x1ed09f=_0x3e9a34;this['disposeWithMe'](this[_0x1ed09f(0x2ba)][_0x1ed09f(0x160)]({'id':_0x1ed09f(0x2c9),'onBeforeCopy':(_0x25ecb2,_0x476fd7,_0x5a4abe,_0x23601f)=>{const _0x15781f=_0x1ed09f;this[_0x15781f(0x262)]=null;const _0x2fcd70=this[_0x15781f(0x4ec)];if(_0x2fcd70['length']){const _0x462f4a=_0x2fcd70[_0x15781f(0x50f)](_0x45ff1b=>_0x45ff1b[_0x15781f(0x5ec)]===_univerjs_core[_0x15781f(0x506)]['DRAWING_SHAPE']);if(_0x462f4a[_0x15781f(0x440)]===0x0)return;this[_0x15781f(0x262)]={'unitId':_0x25ecb2,'subUnitId':_0x476fd7,'copyType':_0x23601f,'drawings':_0x462f4a};}else this[_0x15781f(0x379)](_0x25ecb2,_0x476fd7,_0x5a4abe,_0x23601f);},'onPasteCells':(_0x352e58,_0x78a9cd,_0x3e378f,_0x2306e4)=>{const _0x4c19b5=_0x1ed09f;if(!this[_0x4c19b5(0x262)])return{'redos':[],'undos':[]};const {pasteType:_0x6ec85}=_0x2306e4;if(_0x6ec85!==_univerjs_sheets_ui[_0x4c19b5(0x16b)][_0x4c19b5(0x210)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x78a9cd,this[_0x4c19b5(0x262)][_0x4c19b5(0x4ea)]===_univerjs_sheets_ui[_0x4c19b5(0x34e)][_0x4c19b5(0x2fe)]);},'onPasteUnrecognized':_0x336f3e=>{const _0x580f1b=_0x1ed09f;if(!this['_copyInfo'])return{'redos':[],'undos':[]};return this[_0x580f1b(0x209)](_0x336f3e,this[_0x580f1b(0x262)][_0x580f1b(0x4ea)]===_univerjs_sheets_ui['COPY_TYPE']['CUT']);}}));}[_0x3e9a34(0x379)](_0x1d3c28,_0x3074db,_0x1553e2,_0x4b759c){const _0xc0673b=_0x3e9a34,_0x5434b0=this[_0xc0673b(0x2cb)][_0xc0673b(0x64e)](_0x1d3c28,_0x3074db);if(!_0x5434b0)return;const _0x253bc9=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x5434b0,_0x1553e2);if(!_0x253bc9)return;const {startX:_0x186fca,endX:_0x5cea7b,startY:_0x10ba97,endY:_0x12735c}=_0x253bc9,_0x2f0bab=this['_sheetDrawingService'][_0xc0673b(0x5bc)](_0x1d3c28,_0x3074db),_0x5ae856=this[_0xc0673b(0x4ec)][_0xc0673b(0x3d1)]();for(const [_0x263424,_0x3adeff]of Object[_0xc0673b(0x180)](_0x2f0bab)){if(_0x3adeff[_0xc0673b(0x5ec)]!==_univerjs_core[_0xc0673b(0x506)][_0xc0673b(0x3fc)])continue;const {transform:_0x28f060}=_0x3adeff;if(!_0x28f060)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x28f060;if(_0x186fca<=left&&_0x5cea7b>=left+width&&_0x10ba97<=top&&_0x12735c>=top+height)_0x5ae856[_0xc0673b(0x2dd)](_0x3adeff);}if(_0x5ae856[_0xc0673b(0x440)]>0x0)this[_0xc0673b(0x262)]={'unitId':_0x1d3c28,'subUnitId':_0x3074db,'copyType':_0x4b759c,'copyRange':_0x1553e2,'drawings':_0x5ae856};}['_generatePasteMutations'](_0xeca994,_0x1b231b){const _0x449022=_0x3e9a34,{unitId:_0x4869c4,subUnitId:_0x1065ae,range:_0x9fe679}=_0xeca994,_0x1c9374=this[_0x449022(0x2cb)][_0x449022(0x64e)](_0x4869c4,_0x1065ae);if(!_0x1c9374)return{'redos':[],'undos':[]};const _0x4cd31e=(0x0,_univerjs_sheets[_0x449022(0x642)])(_0x9fe679),{unitId:_0x35c3d1,subUnitId:_0x27aa07,copyRange:_0x5416aa,drawings:_0x307232}=this[_0x449022(0x262)],_0x13ebc4=this[_0x449022(0x2cb)][_0x449022(0x64e)](_0x35c3d1,_0x27aa07);if(!_0x13ebc4)return{'redos':[],'undos':[]};let _0x3a14eb;if(!_0x5416aa){let _0x40b7cd=Infinity,_0x6afae1=Infinity;for(const _0x342982 of _0x307232){var _0x3a7a38;const {left:left=0x0,top:top=0x0}=(_0x3a7a38=_0x342982['transform'])!==null&&_0x3a7a38!==void 0x0?_0x3a7a38:{};if(left<_0x40b7cd)_0x40b7cd=left;if(top<_0x6afae1)_0x6afae1=top;}if(_0x40b7cd!==Infinity&&_0x6afae1!==Infinity)_0x3a14eb={'left':_0x40b7cd,'top':_0x6afae1};}const _0x4e5880=new Map();if(!_0x1b231b){for(const _0x3fb7c7 of _0x307232)_0x4e5880['set'](_0x3fb7c7[_0x449022(0x4c5)],(0x0,_univerjs_core[_0x449022(0x652)])());}const _0x2d8475=[],_0x5710a0=[];for(const _0x17c955 of _0x307232){const {drawingId:_0x2c75c2,transform:_0x457809,sheetTransform:_0x2761fe}=_0x17c955;if(!_0x457809||!_0x2761fe)continue;const _0x519906=this[_0x449022(0x331)]({'transform':_0x457809,'sheetTransform':_0x2761fe},{'skeleton':_0x13ebc4,'range':_0x5416aa},{'skeleton':_0x1c9374,'range':_0x4cd31e},_0x3a14eb);if(_0x1b231b){const {redos:_0x107fd7,undos:_0x5025f3}=this[_0x449022(0x1ff)]({'fromUnitId':_0x35c3d1,'fromSubUnitId':_0x27aa07,'toUnitId':_0x4869c4,'toSubUnitId':_0x1065ae,'drawing':_0x17c955,'newTransforms':_0x519906});_0x2d8475['push'](..._0x107fd7),_0x5710a0[_0x449022(0x2dd)](..._0x5025f3);continue;}const {redos:_0x151110,undos:_0x51b1a8}=this[_0x449022(0x50c)]({'toUnitId':_0x4869c4,'toSubUnitId':_0x1065ae,'drawing':_0x17c955,'newTransforms':_0x519906,'newDrawingId':_0x4e5880[_0x449022(0x2d9)](_0x2c75c2),'idMap':_0x4e5880});_0x2d8475[_0x449022(0x2dd)](..._0x151110),_0x5710a0[_0x449022(0x2dd)](..._0x51b1a8);}return{'redos':_0x2d8475,'undos':_0x5710a0};}[_0x3e9a34(0x1ff)](_0x35b7db){const _0x3845fa=_0x3e9a34,{fromUnitId:_0x50b063,fromSubUnitId:_0x35c22d,toUnitId:_0x301d0d,toSubUnitId:_0x139816,drawing:_0xd0469b,newTransforms:_0x1abbc3}=_0x35b7db,_0x21113f={..._0xd0469b,'unitId':_0x301d0d,'subUnitId':_0x139816,'transform':_0x1abbc3[_0x3845fa(0x600)],'sheetTransform':_0x1abbc3['sheetTransform']};if(_0x301d0d===_0x50b063&&_0x139816===_0x35c22d){const {redo:_0xb39a34,undo:_0x1bac22,objects:_0x585fd7}=this['_sheetDrawingService'][_0x3845fa(0x3a8)]([_0x21113f]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x39d)],'op':_0xb39a34,'objects':_0x585fd7}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x39d)],'op':_0x1bac22,'objects':_0x585fd7}}]};}else{const _0x428ce0=this[_0x3845fa(0x5ad)][_0x3845fa(0x225)]([_0xd0469b]),_0x36fec8=this[_0x3845fa(0x5ad)][_0x3845fa(0x58c)]([_0x21113f]),_0x107f68=this[_0x3845fa(0x1f6)][_0x3845fa(0x533)](_0xd0469b['unitId'],_0xd0469b[_0x3845fa(0x5d6)],_0xd0469b[_0x3845fa(0x4c5)]);if(!_0x107f68)return{'redos':[],'undos':[]};const _0x96c585=_0x107f68['getShapeType'](),_0x7d56ce=JSON[_0x3845fa(0x329)](JSON['stringify'](_0x107f68[_0x3845fa(0x470)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x354)],'op':_0x428ce0[_0x3845fa(0x574)],'objects':_0x428ce0[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x13e)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'shapeId':_0xd0469b[_0x3845fa(0x4c5)]}},{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x317)],'op':_0x36fec8[_0x3845fa(0x574)],'objects':_0x36fec8[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x598)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'shapeId':_0xd0469b[_0x3845fa(0x4c5)],'shapeType':_0x96c585,'shapeData':_0x7d56ce}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3845fa(0x317)],'op':_0x428ce0[_0x3845fa(0x5f5)],'objects':_0x428ce0[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x598)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'shapeId':_0xd0469b[_0x3845fa(0x4c5)],'shapeType':_0x96c585,'shapeData':_0x7d56ce}},{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3845fa(0x354)],'op':_0x36fec8['undo'],'objects':_0x36fec8['objects']}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'shapeId':_0xd0469b[_0x3845fa(0x4c5)]}}]};}}[_0x3e9a34(0x50c)](_0x57712a){const _0x44355e=_0x3e9a34,{toUnitId:_0x3b29a7,toSubUnitId:_0x41d20f,drawing:_0x1d0c80,newTransforms:_0x48cee8,newDrawingId:_0x11ce8d,idMap:_0x542bfa}=_0x57712a,_0x89066={..._0x1d0c80,'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'drawingId':_0x11ce8d,'transform':_0x48cee8[_0x44355e(0x600)],'sheetTransform':_0x48cee8[_0x44355e(0x30a)]},{redo:_0x374dcd,undo:_0x1e2703,objects:_0x3737a3}=this[_0x44355e(0x5ad)]['getBatchAddOp']([_0x89066]),_0x315712=this[_0x44355e(0x1f6)][_0x44355e(0x533)](_0x1d0c80['unitId'],_0x1d0c80[_0x44355e(0x5d6)],_0x1d0c80[_0x44355e(0x4c5)]);if(!_0x315712)return{'redos':[],'undos':[]};const _0x5031e7=_0x315712[_0x44355e(0x478)](),_0x4064b7=JSON[_0x44355e(0x329)](JSON[_0x44355e(0x313)](_0x315712[_0x44355e(0x470)]()));if(_0x4064b7['relation']){var _0x56893d,_0x12f1e4;const _0x119772=(_0x56893d=_0x4064b7[_0x44355e(0x276)]['from'])===null||_0x56893d===void 0x0?void 0x0:_0x56893d[_0x44355e(0x4ac)],_0xcc8820=(_0x12f1e4=_0x4064b7[_0x44355e(0x276)]['to'])===null||_0x12f1e4===void 0x0?void 0x0:_0x12f1e4[_0x44355e(0x4ac)],_0x758f29=_0x119772?_0x542bfa['has'](_0x119772):!![],_0x1dd5c5=_0xcc8820?_0x542bfa['has'](_0xcc8820):!![];if(_0x758f29&&_0x119772&&_0x4064b7[_0x44355e(0x276)][_0x44355e(0x214)])_0x4064b7['relation'][_0x44355e(0x214)]={..._0x4064b7['relation']['from'],'shapeId':_0x542bfa[_0x44355e(0x2d9)](_0x119772)};else _0x4064b7[_0x44355e(0x276)][_0x44355e(0x214)]=void 0x0;if(_0x1dd5c5&&_0xcc8820&&_0x4064b7[_0x44355e(0x276)]['to'])_0x4064b7[_0x44355e(0x276)]['to']={..._0x4064b7[_0x44355e(0x276)]['to'],'shapeId':_0x542bfa[_0x44355e(0x2d9)](_0xcc8820)};else _0x4064b7[_0x44355e(0x276)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'type':_univerjs_sheets_drawing[_0x44355e(0x298)][_0x44355e(0x317)],'op':_0x374dcd,'objects':_0x3737a3}},{'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'shapeId':_0x11ce8d,'shapeType':_0x5031e7,'shapeData':_0x4064b7}}],'undos':[{'id':_univerjs_sheets_drawing[_0x44355e(0x64a)]['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'type':_univerjs_sheets_drawing[_0x44355e(0x298)][_0x44355e(0x354)],'op':_0x1e2703,'objects':_0x3737a3}},{'id':_univerjs_pro_sheets_shape[_0x44355e(0x13e)]['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'shapeId':_0x11ce8d}}]};}['_updateTransform'](_0x434355,_0xdf48b2,_0x2fb635,_0x3ea631){const _0x3ccb07=_0x3e9a34;var _0xaa61ea;const {range:_0x4fac06,skeleton:_0x3929fd}=_0xdf48b2,{range:_0x2e7c90,skeleton:_0x14f03d}=_0x2fb635,{transform:_0x50fbe1,sheetTransform:_0x171ebc}=_0x434355,_0x3d4162={..._0x50fbe1};if(_0x4fac06){const _0x44c6ba=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x3929fd,_0x4fac06),_0x523078=(0x0,_univerjs_sheets[_0x3ccb07(0x2ce)])(_0x14f03d,_0x2e7c90);if(_0x44c6ba&&_0x523078){var _0x41b4b8,_0x4b9f21;const _0x5691b6=_0x523078['startX']-_0x44c6ba[_0x3ccb07(0x1ce)],_0x14e715=_0x523078['startY']-_0x44c6ba[_0x3ccb07(0x498)];_0x3d4162[_0x3ccb07(0xe1)]=((_0x41b4b8=_0x3d4162[_0x3ccb07(0xe1)])!==null&&_0x41b4b8!==void 0x0?_0x41b4b8:0x0)+_0x5691b6,_0x3d4162[_0x3ccb07(0x156)]=((_0x4b9f21=_0x3d4162[_0x3ccb07(0x156)])!==null&&_0x4b9f21!==void 0x0?_0x4b9f21:0x0)+_0x14e715;}}else{const _0x53966b=(0x0,_univerjs_sheets[_0x3ccb07(0x2ce)])(_0x14f03d,_0x2e7c90);if(_0x3ea631&&_0x53966b){var _0x125d06,_0xd64ff5;const _0x49854f=((_0x125d06=_0x3d4162['left'])!==null&&_0x125d06!==void 0x0?_0x125d06:0x0)-_0x3ea631['left'],_0x106d3b=((_0xd64ff5=_0x3d4162[_0x3ccb07(0x156)])!==null&&_0xd64ff5!==void 0x0?_0xd64ff5:0x0)-_0x3ea631[_0x3ccb07(0x156)];_0x3d4162[_0x3ccb07(0xe1)]=_0x53966b[_0x3ccb07(0x1ce)]+_0x49854f,_0x3d4162[_0x3ccb07(0x156)]=_0x53966b[_0x3ccb07(0x498)]+_0x106d3b;}else _0x3d4162['left']=_0x53966b===null||_0x53966b===void 0x0?void 0x0:_0x53966b[_0x3ccb07(0x1ce)],_0x3d4162[_0x3ccb07(0x156)]=_0x53966b===null||_0x53966b===void 0x0?void 0x0:_0x53966b[_0x3ccb07(0x498)];}return{'transform':_0x3d4162,'sheetTransform':(_0xaa61ea=(0x0,_univerjs_sheets_drawing[_0x3ccb07(0x564)])(_0x3d4162,_0x14f03d))!==null&&_0xaa61ea!==void 0x0?_0xaa61ea:_0x171ebc};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_sheets['SheetSkeletonService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_ui[_0x3e9a34(0x3d2)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_drawing_ui[_0x3e9a34(0x3ee)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x3e5445,_0x3da411){const _0x5b23f4=_0x3e9a34;super(_0x3e5445,_0x3da411),_defineProperty(this,_0x5b23f4(0x196),null),_defineProperty(this,'_index',null),_defineProperty(this,_0x5b23f4(0x324),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,'_isStartConnectorPoint',![]);if(_0x3da411)this[_0x5b23f4(0x5fe)](_0x3da411);}[_0x3e9a34(0x40e)](){const _0x1a1ac3=_0x3e9a34;return{'unitId':this[_0x1a1ac3(0x324)],'subUnitId':this[_0x1a1ac3(0x55d)],'drawingId':this[_0x1a1ac3(0x196)]};}[_0x3e9a34(0x5fe)](_0x16c882){const _0x2680f3=_0x3e9a34;if(typeof _0x16c882[_0x2680f3(0x4ac)]!=='undefined')this[_0x2680f3(0x196)]=_0x16c882['shapeId'];if(typeof _0x16c882['unitId']!==_0x2680f3(0x544))this[_0x2680f3(0x324)]=_0x16c882['unitId'];if(typeof _0x16c882[_0x2680f3(0x5d6)]!==_0x2680f3(0x544))this[_0x2680f3(0x55d)]=_0x16c882[_0x2680f3(0x5d6)];if(typeof _0x16c882[_0x2680f3(0x1c5)]!=='undefined')this[_0x2680f3(0x539)]=_0x16c882[_0x2680f3(0x1c5)];this[_0x2680f3(0x227)]({'width':_0x16c882[_0x2680f3(0x183)],'height':_0x16c882['height']});}[_0x3e9a34(0x33c)](_0x5e778f){const _0x30cc1f=_0x3e9a34;_univerjs_engine_render['Circle'][_0x30cc1f(0x118)](_0x5e778f,{'radius':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)][_0x30cc1f(0x325)],'fill':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)][_0x30cc1f(0x213)],'stroke':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointStrokeWidth'],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x2cd509,_0x16460e,_0x2ae16c,_0x16254e,_0xb28a70,_0xb6a345,_0x2520bc,_0x5b1b74){const _0x23d3c6=_0x3e9a34;super(),this['_context']=_0x2cd509,this['_commandService']=_0x16460e,this[_0x23d3c6(0x5cb)]=_0x2ae16c,this[_0x23d3c6(0x4d0)]=_0x16254e,this[_0x23d3c6(0x5e1)]=_0xb28a70,this[_0x23d3c6(0xfd)]=_0xb6a345,this[_0x23d3c6(0x653)]=_0x2520bc,this[_0x23d3c6(0x4cb)]=_0x5b1b74,_defineProperty(this,_0x23d3c6(0x2e4),void 0x0),_defineProperty(this,_0x23d3c6(0x324),void 0x0),_defineProperty(this,_0x23d3c6(0x55d),void 0x0),_defineProperty(this,_0x23d3c6(0x37f),[]),_defineProperty(this,_0x23d3c6(0x12d),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,_0x23d3c6(0x1d4),![]),_defineProperty(this,_0x23d3c6(0x35b),![]),_defineProperty(this,_0x23d3c6(0x2ed),![]),_defineProperty(this,_0x23d3c6(0x636),void 0x0),_defineProperty(this,'_cxtHandlerPointerUp',void 0x0),_defineProperty(this,'_currentConnectionTarget',null),this[_0x23d3c6(0x206)]();}[_0x3e9a34(0x206)](){const _0x4c0bf9=_0x3e9a34;this['_registerDrawingFocusChangeHandler'](),this[_0x4c0bf9(0x52c)]();}['_getDrawingRect'](){const _0x1e9746=_0x3e9a34;if(!this['_unitId']||!this[_0x1e9746(0x55d)]||!this['_activeShapeId'])return;const _0x1303b9={'unitId':this[_0x1e9746(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1e9746(0x2e4)]},{transform:_0x35c65f}=this[_0x1e9746(0x4d0)][_0x1e9746(0x619)](_0x1303b9);if(!_0x35c65f)return;return{'left':_0x35c65f['left']||0x0,'top':_0x35c65f['top']||0x0,'width':_0x35c65f[_0x1e9746(0x183)]||0x0,'height':_0x35c65f[_0x1e9746(0x37b)]||0x0,'flipX':_0x35c65f[_0x1e9746(0x2f5)]||![],'flipY':_0x35c65f[_0x1e9746(0x35d)]||![],'angle':_0x35c65f[_0x1e9746(0x62d)]};}[_0x3e9a34(0x372)](){const _0x491fc1=_0x3e9a34;if(this[_0x491fc1(0x324)]===void 0x0||this[_0x491fc1(0x55d)]===void 0x0||this[_0x491fc1(0x2e4)]===void 0x0)return;const _0x49a34a=this[_0x491fc1(0x5cb)]['getRenderById'](this[_0x491fc1(0x324)]);if(!_0x49a34a)return;if(!_0x49a34a['with'](_univerjs_sheets_ui[_0x491fc1(0x412)])[_0x491fc1(0x60a)]())return;const {scene:_0x31bfa4}=_0x49a34a,_0x4b0a0e=this[_0x491fc1(0x5b8)]();if(!_0x4b0a0e)return;const _0x29bf43=this[_0x491fc1(0xfd)][_0x491fc1(0x533)](this[_0x491fc1(0x324)],this[_0x491fc1(0x55d)],this[_0x491fc1(0x2e4)]);if(!_0x29bf43)return;if(!(0x0,_univerjs_pro_engine_shape[_0x491fc1(0x654)])(_0x29bf43[_0x491fc1(0x478)]()))return;const _0x5394c9=_0x29bf43[_0x491fc1(0x20a)]();if(_0x5394c9[_0x491fc1(0x440)]<0x2)return;const _0x32994e=new _univerjs_pro_engine_shape[(_0x491fc1(0x572))](_0x4b0a0e),_0x1eeb0f=_0x5394c9[0x0],_0x281a66=_0x5394c9[_0x5394c9[_0x491fc1(0x440)]-0x1],_0x58d588=_0x32994e[_0x491fc1(0xfa)](_0x1eeb0f),_0x3b7657=_0x32994e['localToWorld'](_0x281a66);this['_addShapeConnectorHandlerObject'](_0x31bfa4,{..._0x58d588},!![]),this[_0x491fc1(0x375)](_0x31bfa4,{..._0x3b7657},![]);}[_0x3e9a34(0x375)](_0x1ecccd,_0x5282b,_0x3c8926){const _0x58b9ad=_0x3e9a34;if(this[_0x58b9ad(0x2e4)]===void 0x0||this[_0x58b9ad(0x324)]===void 0x0||this['_subUnitId']===void 0x0)return;const _0x372c76=_0x58b9ad(0x12e)+this[_0x58b9ad(0x324)]+'-'+this[_0x58b9ad(0x55d)]+'-'+this[_0x58b9ad(0x2e4)]+'-'+(_0x3c8926?_0x58b9ad(0x4c7):_0x58b9ad(0x2ae)),_0x3f55f3=_0x1ecccd[_0x58b9ad(0x21c)](_0x372c76);if(_0x3f55f3){_0x3f55f3['transformByState']({'left':_0x5282b['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x5282b['y']-_univerjs_pro_engine_shape[_0x58b9ad(0x49a)]['cxnPointRadius']});return;}const _0x2cf3ab=new SheetShapeConnectorHandlerObject(_0x372c76,{'left':_0x5282b['x']-_univerjs_pro_engine_shape[_0x58b9ad(0x49a)][_0x58b9ad(0x325)],'top':_0x5282b['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x58b9ad(0x325)],'shapeId':this['_activeShapeId'],'unitId':this[_0x58b9ad(0x324)],'subUnitId':this[_0x58b9ad(0x55d)],'isStartConnectorPoint':_0x3c8926,'width':_univerjs_pro_engine_shape[_0x58b9ad(0x49a)]['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape[_0x58b9ad(0x49a)][_0x58b9ad(0x325)]*0x2,'zIndex':_univerjs_engine_render[_0x58b9ad(0x1bd)]+0x1,'evented':!![]});this[_0x58b9ad(0x37f)][_0x58b9ad(0x2dd)](_0x2cf3ab),this['_attachConnectorObjectEvent'](_0x2cf3ab,_0x1ecccd,_0x3c8926),_0x1ecccd[_0x58b9ad(0x18b)](_0x2cf3ab,_univerjs_engine_render[_0x58b9ad(0x1bd)]+0x1);}[_0x3e9a34(0x507)](_0x2e92c4,_0x4a9e1b){const _0x3dc2b1=_0x3e9a34;var _0x1acec3;const _0x49c8aa={'x':0x0,'y':0x0};if(!_0x2e92c4||!_0x4a9e1b)return _0x49c8aa;const _0x5844ce=this[_0x3dc2b1(0x5cb)][_0x3dc2b1(0x17d)](_0x2e92c4);if(!_0x5844ce)return _0x49c8aa;if(!_0x5844ce['with'](_univerjs_sheets_ui[_0x3dc2b1(0x412)])[_0x3dc2b1(0x64e)](_0x4a9e1b))return _0x49c8aa;const _0x1ad89a=_0x5844ce[_0x3dc2b1(0x1cf)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x5bfb4f=_0x1ad89a===null||_0x1ad89a===void 0x0?void 0x0:_0x1ad89a[_0x3dc2b1(0x531)]();if(!_0x5bfb4f)return _0x49c8aa;const _0x3f682e=(_0x1acec3=this[_0x3dc2b1(0x5e1)][_0x3dc2b1(0x46e)](_0x2e92c4))===null||_0x1acec3===void 0x0?void 0x0:_0x1acec3[_0x3dc2b1(0x299)](_0x4a9e1b);if(!_0x3f682e)return _0x49c8aa;const _0x45127e=(0x0,_univerjs_sheets_ui['getViewportByCell'])(_0x5bfb4f[_0x3dc2b1(0x484)],_0x5bfb4f[_0x3dc2b1(0x38d)],_0x5844ce[_0x3dc2b1(0x2a4)],_0x3f682e);if(!_0x45127e)return _0x49c8aa;return{'x':_0x45127e[_0x3dc2b1(0x4aa)],'y':_0x45127e[_0x3dc2b1(0x520)]};}[_0x3e9a34(0x52f)](_0x561323,_0x3d820f){const _0x4e1d56=_0x3e9a34;var _0x4dcd68,_0x24f1a4;const _0x23ff72=(_0x4dcd68=this['_univerInstanceService']['getUnit'](_0x561323))===null||_0x4dcd68===void 0x0?void 0x0:_0x4dcd68[_0x4e1d56(0x299)](_0x3d820f);return(_0x24f1a4=_0x23ff72===null||_0x23ff72===void 0x0?void 0x0:_0x23ff72[_0x4e1d56(0x234)]())!==null&&_0x24f1a4!==void 0x0?_0x24f1a4:0x1;}[_0x3e9a34(0x2e6)](_0x14f81e,_0x48475f,_0x36d078,_0x16d538,_0x145c0a){const _0x5e7906=_0x3e9a34;this[_0x5e7906(0x636)][_0x5e7906(0x54e)](),this[_0x5e7906(0x49c)][_0x5e7906(0x54e)](),this[_0x5e7906(0x653)]['refreshAdjustControls']();const _0x43db43=this[_0x5e7906(0x639)];this[_0x5e7906(0x4cb)]['endConnectionDetection']();const _0x592c57=this[_0x5e7906(0x507)](this['_unitId'],this[_0x5e7906(0x55d)]),_0x58ebe5=this[_0x5e7906(0x52f)](this[_0x5e7906(0x324)],this['_subUnitId']),_0x424e2c={'x':_0x36d078[_0x5e7906(0x59b)]/_0x58ebe5+_0x592c57['x'],'y':_0x36d078['offsetY']/_0x58ebe5+_0x592c57['y']},_0x3b1019=_0x43db43?_0x43db43[_0x5e7906(0x55b)]:_0x424e2c,_0x529cb5=_0x16d538?this[_0x5e7906(0x19a)][_0x5e7906(0xef)]():this[_0x5e7906(0x19a)][_0x5e7906(0x634)](),_0x1ee93b=this[_0x5e7906(0x19a)][_0x5e7906(0x478)]();if(!_0x529cb5)this[_0x5e7906(0x4d4)](_0x48475f,_0x3b1019,_0x16d538,_0x43db43,_0x145c0a,_0x1ee93b);else this[_0x5e7906(0x1f5)](_0x529cb5,_0x3b1019,_0x16d538,_0x43db43,_0x145c0a);this[_0x5e7906(0x1d4)]=![],this[_0x5e7906(0x2ed)]=![],this[_0x5e7906(0x639)]=null,_0x14f81e[_0x5e7906(0x4fc)]();}[_0x3e9a34(0x4d4)](_0x2762ae,_0x40d97b,_0x12b4d2,_0x57c607,_0x54cdf3,_0x32ce4a){const _0x3cb1ed=_0x3e9a34,_0xb9cac4=_0x32ce4a===_univerjs_pro_engine_shape[_0x3cb1ed(0x126)][_0x3cb1ed(0x641)]||_0x32ce4a===_univerjs_pro_engine_shape[_0x3cb1ed(0x126)][_0x3cb1ed(0x2a5)],_0x32b668=_0x12b4d2?_0x40d97b:_0x2762ae,_0x53e2d2=_0x12b4d2?_0x2762ae:_0x40d97b,_0x6c8fad=this[_0x3cb1ed(0x19a)]['getConnectorLinePoints'](),_0x30c3f7=(0x0,_univerjs_pro_engine_shape[_0x3cb1ed(0x529)])(this[_0x3cb1ed(0x19a)][_0x3cb1ed(0x478)]()),_0x174b74=_univerjs_pro_engine_shape[_0x3cb1ed(0x572)][_0x3cb1ed(0x17a)](_0x6c8fad,_0x30c3f7),_0x408a16=_0xb9cac4?_univerjs_pro_engine_shape[_0x3cb1ed(0x572)][_0x3cb1ed(0x1e8)](_0x32b668,_0x53e2d2):_univerjs_pro_engine_shape[_0x3cb1ed(0x572)]['computeConnectorResizeLayout'](_0x2762ae,_0x40d97b,_0x12b4d2,_0x174b74);if(_0x57c607)this[_0x3cb1ed(0x266)](_0x408a16,_0x57c607,_0x12b4d2,_0x54cdf3);else this[_0x3cb1ed(0x1a7)](_0x408a16,_0x54cdf3);}[_0x3e9a34(0x1f5)](_0x5d6fba,_0x5b1b1e,_0x58b28e,_0x20f1f8,_0x5a1982){const _0x34ce44=_0x3e9a34,_0x438c4b=this['_getConnectPointInfo'](_0x5d6fba);if(!_0x438c4b)return;const _0x127a06=_0x20f1f8?_0x20f1f8[_0x34ce44(0x62d)]:this['_calculateFreeEndpointAngle'](_0x438c4b[_0x34ce44(0x1c6)],_0x5b1b1e);let _0x2bbc23;if(_0x20f1f8){const _0x52fd1a=this['_drawingManagerService'][_0x34ce44(0x619)]({'unitId':_0x20f1f8['unitId'],'subUnitId':_0x20f1f8['subUnitId'],'drawingId':_0x20f1f8[_0x34ce44(0x4ac)]});if(_0x52fd1a===null||_0x52fd1a===void 0x0?void 0x0:_0x52fd1a[_0x34ce44(0x600)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x4b2909}=_0x52fd1a['transform'];_0x2bbc23=(0x0,_univerjs_pro_engine_shape[_0x34ce44(0x5f6)])({'left':left,'top':top,'width':width,'height':height},_0x4b2909||0x0);}else _0x2bbc23={'left':_0x5b1b1e['x'],'top':_0x5b1b1e['y'],'width':0x0,'height':0x0};}else _0x2bbc23={'left':_0x5b1b1e['x'],'top':_0x5b1b1e['y'],'width':0x0,'height':0x0};const _0x308d49={'point':_0x5b1b1e,'angle':_0x127a06,'bounds':_0x2bbc23},_0x1066c4=_0x58b28e?_0x308d49:_0x438c4b,_0x536206=_0x58b28e?_0x438c4b:_0x308d49,_0xdb8152=this[_0x34ce44(0x19a)][_0x34ce44(0x478)](),_0xfb65b0=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x1066c4,_0x536206,_0xdb8152);this[_0x34ce44(0x19a)][_0x34ce44(0x546)]();const _0xaa1f4e=(0x0,_univerjs_pro_engine_shape[_0x34ce44(0x37a)])(_0xfb65b0,_0xdb8152);if(_0x20f1f8)this[_0x34ce44(0x5bd)](_0xaa1f4e,_0x20f1f8,_0x5d6fba,_0x58b28e,_0x5a1982);else this[_0x34ce44(0x40d)](_0xaa1f4e,_0x5d6fba,_0x58b28e,_0x5a1982);}[_0x3e9a34(0x266)](_0x349fa4,_0x1193aa,_0x2867d0,_0x426d9f){const _0x2daf9d=_0x3e9a34,_0x2994c5=this['_activeShapeModel'][_0x2daf9d(0x470)]()['relation'],_0x5853ae={..._0x2994c5},_0x4581fa={'shapeId':_0x1193aa['shapeId'],'cxnIndex':_0x1193aa[_0x2daf9d(0x120)]};if(_0x2867d0)_0x5853ae[_0x2daf9d(0x214)]=_0x4581fa;else _0x5853ae['to']=_0x4581fa;const _0x40f190=this['_activeShapeModel'][_0x2daf9d(0x478)](),_0x48775f=(0x0,_univerjs_pro_engine_shape[_0x2daf9d(0x37a)])(_0x349fa4['worldPoints'],_0x40f190),_0x986691={'unitId':this[_0x2daf9d(0x324)],'subUnitId':this[_0x2daf9d(0x55d)],'connectorShapeId':this[_0x2daf9d(0x2e4)],'width':_0x349fa4[_0x2daf9d(0x23a)][_0x2daf9d(0x183)],'height':_0x349fa4[_0x2daf9d(0x23a)][_0x2daf9d(0x37b)],'left':_0x349fa4[_0x2daf9d(0x23a)]['left'],'top':_0x349fa4[_0x2daf9d(0x23a)]['top'],'flipX':_0x349fa4[_0x2daf9d(0x23a)]['flipX']||![],'flipY':_0x349fa4[_0x2daf9d(0x23a)]['flipY']||![],'newAdjustValues':_0x48775f[_0x2daf9d(0x132)],'oldAdjustValues':_0x426d9f,'oldRelation':_0x2994c5,'newRelation':_0x5853ae,'newLineType':_0x48775f[_0x2daf9d(0x5de)],'oldLineType':_0x40f190};this[_0x2daf9d(0x363)][_0x2daf9d(0x591)](_univerjs_pro_sheets_shape[_0x2daf9d(0x2c8)]['id'],_0x986691);}[_0x3e9a34(0x1a7)](_0x1d6ccd,_0x341f41){const _0x19d3ac=_0x3e9a34,_0x4c874d=this[_0x19d3ac(0x19a)][_0x19d3ac(0x478)](),_0x56cc4f=(0x0,_univerjs_pro_engine_shape[_0x19d3ac(0x37a)])(_0x1d6ccd[_0x19d3ac(0x1aa)],_0x4c874d),_0x43d5c9={'unitId':this[_0x19d3ac(0x324)],'subUnitId':this[_0x19d3ac(0x55d)],'shapeId':this[_0x19d3ac(0x2e4)],'width':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x183)],'height':_0x1d6ccd['worldRect'][_0x19d3ac(0x37b)],'left':_0x1d6ccd[_0x19d3ac(0x23a)]['left'],'top':_0x1d6ccd[_0x19d3ac(0x23a)]['top'],'flipX':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x2f5)]||![],'flipY':_0x1d6ccd['worldRect'][_0x19d3ac(0x35d)]||![],'angle':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x62d)]||0x0,'newAdjustValues':_0x56cc4f[_0x19d3ac(0x132)],'oldAdjustValues':_0x341f41,'newLineType':_0x56cc4f[_0x19d3ac(0x5de)],'oldLineType':_0x4c874d};this[_0x19d3ac(0x363)][_0x19d3ac(0x591)](_univerjs_pro_sheets_shape[_0x19d3ac(0x468)]['id'],_0x43d5c9);}[_0x3e9a34(0x5bd)](_0x1790e4,_0x4d26cf,_0x36225d,_0x1e41d6,_0x511d5e){const _0x38cd7f=_0x3e9a34,_0x192420=this[_0x38cd7f(0x19a)][_0x38cd7f(0x470)]()[_0x38cd7f(0x276)],_0x5f3a48={..._0x192420},_0x55f622={'shapeId':_0x4d26cf['shapeId'],'cxnIndex':_0x4d26cf[_0x38cd7f(0x120)]};_0x1e41d6?(_0x5f3a48['from']=_0x55f622,_0x5f3a48['to']=_0x36225d):(_0x5f3a48[_0x38cd7f(0x214)]=_0x36225d,_0x5f3a48['to']=_0x55f622);const _0x90c375={'unitId':this[_0x38cd7f(0x324)],'subUnitId':this[_0x38cd7f(0x55d)],'connectorShapeId':this[_0x38cd7f(0x2e4)],'width':_0x1790e4[_0x38cd7f(0x23a)]['width'],'height':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0x37b)],'left':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0xe1)],'top':_0x1790e4[_0x38cd7f(0x23a)]['top'],'flipX':_0x1790e4['worldRect'][_0x38cd7f(0x2f5)]||![],'flipY':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0x35d)]||![],'oldAdjustValues':_0x511d5e,'newAdjustValues':_0x1790e4[_0x38cd7f(0x132)],'newLineType':_0x1790e4[_0x38cd7f(0x5de)],'rotation':_0x1790e4['rotation'],'oldRelation':_0x192420,'newRelation':_0x5f3a48};this['_commandService'][_0x38cd7f(0x591)](_univerjs_pro_sheets_shape[_0x38cd7f(0x2c8)]['id'],_0x90c375);}[_0x3e9a34(0x40d)](_0x4f387e,_0xe6828a,_0x55c151,_0x59cd60){const _0x48286e=_0x3e9a34,_0x3831db=this['_activeShapeModel'][_0x48286e(0x470)]()[_0x48286e(0x276)],_0x5dd58c={};_0x55c151?(_0x5dd58c['to']=_0xe6828a,_0x5dd58c['from']=void 0x0):(_0x5dd58c[_0x48286e(0x214)]=_0xe6828a,_0x5dd58c['to']=void 0x0);const _0x1c1880={'unitId':this[_0x48286e(0x324)],'subUnitId':this[_0x48286e(0x55d)],'connectorShapeId':this[_0x48286e(0x2e4)],'width':_0x4f387e[_0x48286e(0x23a)]['width'],'height':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x37b)],'left':_0x4f387e[_0x48286e(0x23a)]['left'],'top':_0x4f387e[_0x48286e(0x23a)]['top'],'flipX':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x2f5)]||![],'flipY':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x35d)]||![],'oldAdjustValues':_0x59cd60,'newAdjustValues':_0x4f387e[_0x48286e(0x132)],'newLineType':_0x4f387e[_0x48286e(0x5de)],'rotation':_0x4f387e[_0x48286e(0x605)],'oldRelation':_0x3831db,'newRelation':_0x5dd58c};this['_commandService'][_0x48286e(0x591)](_univerjs_pro_sheets_shape[_0x48286e(0x2c8)]['id'],_0x1c1880);}['_attachConnectorObjectEvent'](_0x5ec667,_0x557a3f,_0xcb5a2d){const _0x4ed18e=_0x3e9a34;this[_0x4ed18e(0x58e)]((0x0,_univerjs_core[_0x4ed18e(0x28e)])(_0x5ec667['onPointerDown$'][_0x4ed18e(0x345)]((_0xb657c,_0x141525)=>{const _0x502570=_0x4ed18e,_0xaa8272=_0x5ec667[_0x502570(0x40e)]();this[_0x502570(0x19a)]=this[_0x502570(0xfd)]['getShapeModel'](_0xaa8272['unitId'],_0xaa8272['subUnitId'],_0xaa8272[_0x502570(0x4c5)]);if(!this['_activeShapeModel'])return;const _0x46d849={};this['_activeShapeModel'][_0x502570(0x56e)]()['forEach'](_0x11a6c6=>{const _0x2d8e49=_0x502570,_0x15ba5f=this[_0x2d8e49(0x19a)][_0x2d8e49(0x5f9)](_0x11a6c6);if(_0x15ba5f!==void 0x0)_0x46d849[_0x11a6c6]=_0x15ba5f;});const _0x26a0bb=this[_0x502570(0x5b8)]();if(!_0x26a0bb)return;this[_0x502570(0x12d)]={..._0x26a0bb};const _0x31289f=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x502570(0x12d)]),_0x12bc3d=(0x0,_univerjs_drawing[_0x502570(0x171)])({'unitId':this[_0x502570(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x502570(0x2e4)]}),_0x45a243=_0x557a3f['getObjectIncludeInGroup'](_0x12bc3d);this[_0x502570(0x1d4)]=!![],_0x557a3f[_0x502570(0x3c5)](),this[_0x502570(0x4cb)][_0x502570(0x431)](_0x557a3f,this[_0x502570(0x324)],this[_0x502570(0x55d)],this['_activeShapeId']),this[_0x502570(0x639)]=null;const _0x584c1a=this['_activeShapeModel'][_0x502570(0x20a)](),_0x66deb2=_0x584c1a[0x0],_0x102947=_0x584c1a[_0x584c1a[_0x502570(0x440)]-0x1],_0x45809f=_0xcb5a2d?_0x31289f[_0x502570(0xfa)](_0x102947):_0x31289f['localToWorld'](_0x66deb2);this[_0x502570(0x636)]=_0x557a3f['onPointerMove$'][_0x502570(0x345)]((_0x29ecf3,_0x57d3f6)=>{const _0x57978b=_0x502570;if(!this[_0x57978b(0x1d4)]||!this['_activeShapeModel'])return;!this[_0x57978b(0x2ed)]&&(this['_sheetShapeAdjustController']['clearAdjustControls'](),this[_0x57978b(0x19a)][_0x57978b(0x43e)](),this[_0x57978b(0x2ed)]=!![]);const _0xbd9792=this[_0x57978b(0x507)](this[_0x57978b(0x324)],this[_0x57978b(0x55d)]),_0x4ff873=this[_0x57978b(0x52f)](this[_0x57978b(0x324)],this[_0x57978b(0x55d)]),_0x23f0d1={'x':_0x29ecf3[_0x57978b(0x59b)]/_0x4ff873+_0xbd9792['x'],'y':_0x29ecf3[_0x57978b(0x161)]/_0x4ff873+_0xbd9792['y']},_0x5ac8b2=this[_0x57978b(0x4cb)][_0x57978b(0x581)](_0x23f0d1);if(_0x5ac8b2){const {shapeId:_0x5daa9c,unitId:_0x45090f,subUnitId:_0x323e7b}=_0x5ac8b2;if(_0x5daa9c&&_0x45090f&&_0x323e7b){const _0x3e5333=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x45090f,'subUnitId':_0x323e7b,'drawingId':_0x5daa9c});_0x5ac8b2['angle']=(_0x557a3f[_0x57978b(0x21c)](_0x3e5333)[_0x57978b(0x62d)]||0x0)+_0x5ac8b2['angle'];}}this[_0x57978b(0x639)]=_0x5ac8b2;const _0x293aa8=_0xcb5a2d?this[_0x57978b(0x19a)][_0x57978b(0xef)]():this[_0x57978b(0x19a)][_0x57978b(0x634)]();if(_0x293aa8){this[_0x57978b(0x53d)](_0x293aa8,_0x23f0d1,_0xcb5a2d,_0x45a243,_0x5ec667);return;}this[_0x57978b(0x3a6)](_0x23f0d1,_0x45809f,_0xcb5a2d,_0x45a243,_0x5ec667);}),this[_0x502570(0x49c)]=_0x557a3f['onPointerUp$'][_0x502570(0x345)]((_0x3e4fb8,_0x586c2e)=>{const _0x5f14ac=_0x502570;this[_0x5f14ac(0x2e6)](_0x557a3f,_0x45809f,_0x3e4fb8,_0xcb5a2d,_0x46d849);}),_0x141525[_0x502570(0x11e)]();})));}[_0x3e9a34(0x5eb)](_0x5a07bd,_0x7b7fbc,_0x3b9542){const _0x13db8b=_0x3e9a34,_0x3697d7=this[_0x13db8b(0xfd)][_0x13db8b(0x460)](_0x5a07bd,_0x7b7fbc,_0x3b9542);if(!_0x3697d7||_0x3697d7[_0x13db8b(0x440)]===0x0)return;const _0x2dcd2e=this[_0x13db8b(0x5cb)]['getRenderById'](_0x5a07bd);if(!_0x2dcd2e)return;const {scene:_0x2e88bb}=_0x2dcd2e;for(const _0x165f5a of _0x3697d7){const _0x188011=_0x165f5a[_0x13db8b(0x1dc)],_0x107071=this[_0x13db8b(0xfd)][_0x13db8b(0x533)](_0x5a07bd,_0x7b7fbc,_0x188011);if(!_0x107071)continue;const _0xa21258=_0x107071['getStartConnectInfo'](),_0x31e09f=_0x107071[_0x13db8b(0xef)](),_0x368446=(_0xa21258===null||_0xa21258===void 0x0?void 0x0:_0xa21258[_0x13db8b(0x4ac)])===_0x3b9542,_0x51eef3=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5a07bd,'subUnitId':_0x7b7fbc,'drawingId':_0x188011}),_0x45e9e3=_0x2e88bb[_0x13db8b(0x21c)](_0x51eef3);if(!_0x45e9e3)continue;const _0x316e05=this['_drawingManagerService'][_0x13db8b(0x619)]({'unitId':_0x5a07bd,'subUnitId':_0x7b7fbc,'drawingId':_0x188011});if(!(_0x316e05===null||_0x316e05===void 0x0?void 0x0:_0x316e05['transform']))continue;if(_0xa21258&&_0x31e09f)this[_0x13db8b(0x217)](_0x5a07bd,_0x7b7fbc,_0x188011,_0x107071,_0xa21258,_0x31e09f,_0x45e9e3);else this[_0x13db8b(0x133)](_0x5a07bd,_0x7b7fbc,_0x188011,_0x107071,_0x368446?_0xa21258:_0x31e09f,_0x368446,_0x316e05,_0x45e9e3);}}[_0x3e9a34(0x217)](_0x71ad25,_0x466300,_0x8719fb,_0x15df2b,_0x55ee34,_0x2be603,_0x341ce8){const _0x443e6c=_0x3e9a34,_0x3f71c4=this[_0x443e6c(0x324)],_0x2d6219=this['_subUnitId'];this['_unitId']=_0x71ad25,this[_0x443e6c(0x55d)]=_0x466300;const _0x47f469=this[_0x443e6c(0x557)](_0x55ee34),_0x401965=this[_0x443e6c(0x557)](_0x2be603);this[_0x443e6c(0x324)]=_0x3f71c4,this[_0x443e6c(0x55d)]=_0x2d6219;if(!_0x47f469||!_0x401965)return;const _0x534264=_0x15df2b[_0x443e6c(0x478)](),_0x17c0ae=(0x0,_univerjs_pro_engine_shape[_0x443e6c(0x273)])(_0x47f469,_0x401965,_0x534264);if(_0x17c0ae)_0x15df2b[_0x443e6c(0x664)](_0x17c0ae);const _0x160981=(0x0,_univerjs_pro_engine_shape[_0x443e6c(0x37a)])(_0x17c0ae,_0x534264);if(_0x160981[_0x443e6c(0x5de)]!==_0x534264)_0x15df2b[_0x443e6c(0x3ad)](_0x160981[_0x443e6c(0x5de)]);_0x15df2b[_0x443e6c(0x43e)]();for(const [_0x2b4d93,_0x535fc3]of Object[_0x443e6c(0x180)](_0x160981['adjustValues']))_0x15df2b[_0x443e6c(0x57d)](_0x2b4d93,_0x535fc3);_0x15df2b[_0x443e6c(0x566)]({'width':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x183)],'height':_0x160981['worldRect']['height']}),_0x341ce8[_0x443e6c(0x227)]({'flipX':_0x160981['worldRect'][_0x443e6c(0x2f5)],'flipY':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x35d)],'left':_0x160981[_0x443e6c(0x23a)]['left'],'top':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x156)],'width':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x183)],'height':_0x160981[_0x443e6c(0x23a)]['height'],'angle':_0x160981['rotation']}),_0x15df2b[_0x443e6c(0x546)]();}[_0x3e9a34(0x133)](_0x1ae6af,_0x2dc092,_0x531fee,_0x2a1ecb,_0x1f468d,_0x55edc5,_0x513773,_0x67027a){const _0x2eb4bd=_0x3e9a34,_0x529823=this[_0x2eb4bd(0x324)],_0x541c97=this['_subUnitId'];this[_0x2eb4bd(0x324)]=_0x1ae6af,this[_0x2eb4bd(0x55d)]=_0x2dc092;const _0x853c4b=this['_getConnectPointInfo'](_0x1f468d);this['_unitId']=_0x529823,this[_0x2eb4bd(0x55d)]=_0x541c97;if(!_0x853c4b)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x513773[_0x2eb4bd(0x600)],_0x1d8875=_0x2a1ecb[_0x2eb4bd(0x20a)]();if(_0x1d8875['length']<0x2)return;const _0x42588a=new _univerjs_pro_engine_shape[(_0x2eb4bd(0x572))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x41f03a=_0x55edc5?_0x1d8875[_0x1d8875['length']-0x1]:_0x1d8875[0x0],_0x3e1ac5=_0x42588a[_0x2eb4bd(0xfa)](_0x41f03a),_0x29ef3b=_univerjs_pro_engine_shape[_0x2eb4bd(0x572)]['computeConnectorResizeLayout'](_0x3e1ac5,_0x853c4b[_0x2eb4bd(0x1c6)],!_0x55edc5);_0x67027a[_0x2eb4bd(0x227)]({'flipX':_0x29ef3b['worldRect'][_0x2eb4bd(0x2f5)],'flipY':_0x29ef3b[_0x2eb4bd(0x23a)]['flipY'],'left':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0xe1)],'top':_0x29ef3b['worldRect']['top'],'width':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0x183)],'height':_0x29ef3b['worldRect'][_0x2eb4bd(0x37b)],'angle':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0x62d)]}),_0x67027a[_0x2eb4bd(0x309)](!![]);}[_0x3e9a34(0x4fe)](){const _0x52de53=_0x3e9a34;if(this[_0x52de53(0x37f)][_0x52de53(0x440)]===0x0)return;this[_0x52de53(0x37f)][_0x52de53(0x289)](_0x1b3c2e=>{_0x1b3c2e['dispose']();}),this[_0x52de53(0x37f)]=[];}[_0x3e9a34(0x52c)](){const _0x3bf1a4=_0x3e9a34,_0x219158=this[_0x3bf1a4(0x5e1)][_0x3bf1a4(0x3c7)](_univerjs_core[_0x3bf1a4(0x4cd)][_0x3bf1a4(0x58b)]);this['disposeWithMe'](_0x219158[_0x3bf1a4(0x1e2)]((0x0,rxjs[_0x3bf1a4(0x352)])(_0x559877=>{const _0xd62e9=_0x3bf1a4;if(!_0x559877)return rxjs[_0xd62e9(0x218)];return _0x559877[_0xd62e9(0x1e1)][_0xd62e9(0x1e2)]((0x0,rxjs[_0xd62e9(0x352)])(_0x1a3d16=>{const _0x57e9e3=_0xd62e9;if(!_0x1a3d16)return rxjs[_0x57e9e3(0x218)];const _0x59cdde=_0x559877[_0x57e9e3(0x386)](),_0x2baceb=this[_0x57e9e3(0x5cb)][_0x57e9e3(0x17d)](_0x59cdde),_0x31f866=_0x2baceb===null||_0x2baceb===void 0x0?void 0x0:_0x2baceb[_0x57e9e3(0x2a4)];if(!_0x31f866)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x31f866);}));}))[_0x3bf1a4(0x562)](_0x5defe8=>{const _0x1f7c9c=_0x3bf1a4,_0x204925=_0x5defe8[_0x1f7c9c(0xe2)]();this[_0x1f7c9c(0x58e)](_0x5defe8['onPointerMove$'][_0x1f7c9c(0x345)](_0x5afe49=>{const _0x18b3de=_0x1f7c9c;if(this[_0x18b3de(0x35b)]&&this[_0x18b3de(0x2e4)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x14c)][_0x1f7c9c(0x562)](_0x43496b=>{const _0x5a3a45=_0x1f7c9c,{objects:_0x79b175}=_0x43496b;this[_0x5a3a45(0x4fe)]();if(_0x79b175!==null&&_0x79b175[_0x5a3a45(0x43f)]===0x1){if(_0x79b175[_0x5a3a45(0x4b8)]()[_0x5a3a45(0x5c7)]()[_0x5a3a45(0x115)]instanceof DrawingShape)this[_0x5a3a45(0x35b)]=!![];}})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x304)][_0x1f7c9c(0x562)](_0x2c22b2=>{const _0x54519f=_0x1f7c9c;if(this[_0x54519f(0x35b)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x1f7c9c(0x58e)](_0x5defe8[_0x1f7c9c(0x575)]['subscribeEvent'](()=>{const _0x556791=_0x1f7c9c;this[_0x556791(0x35b)]&&(this[_0x556791(0x35b)]=![],this[_0x556791(0x372)]());})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x4c0)]['subscribe'](()=>{const _0x5d1ec1=_0x1f7c9c;this[_0x5d1ec1(0x324)]&&this[_0x5d1ec1(0x55d)]&&this[_0x5d1ec1(0x2e4)]&&(this['_drawingManagerService'][_0x5d1ec1(0x619)]({'unitId':this[_0x5d1ec1(0x324)],'subUnitId':this[_0x5d1ec1(0x55d)],'drawingId':this[_0x5d1ec1(0x2e4)]})&&(this[_0x5d1ec1(0x4fe)](),this['_addShapeConnectorHandlerObjects']()));}));}));}[_0x3e9a34(0x2fc)](){const _0x26baf8=_0x3e9a34;this[_0x26baf8(0x58e)](this[_0x26baf8(0x4d0)][_0x26baf8(0x188)]['subscribe'](_0x2846bd=>{const _0x1495f6=_0x26baf8;if(_0x2846bd[_0x1495f6(0x440)]===0x1){const _0x15e0cb=_0x2846bd[0x0];if(_0x15e0cb[_0x1495f6(0x5ec)]===_univerjs_core[_0x1495f6(0x506)][_0x1495f6(0x3fc)]){const _0xb07d27=this[_0x1495f6(0xfd)][_0x1495f6(0x533)](_0x15e0cb['unitId'],_0x15e0cb[_0x1495f6(0x5d6)],_0x15e0cb[_0x1495f6(0x4c5)]);if(_0xb07d27&&(0x0,_univerjs_pro_engine_shape[_0x1495f6(0x654)])(_0xb07d27[_0x1495f6(0x478)]())){this[_0x1495f6(0x2e4)]=_0x15e0cb[_0x1495f6(0x4c5)],this[_0x1495f6(0x324)]=_0x15e0cb['unitId'],this[_0x1495f6(0x55d)]=_0x15e0cb[_0x1495f6(0x5d6)],this[_0x1495f6(0x4fe)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x1495f6(0x2e4)]=void 0x0,this['_unitId']=void 0x0,this[_0x1495f6(0x55d)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x26baf8(0x58e)](this['_drawingManagerService'][_0x26baf8(0x554)][_0x26baf8(0x562)](_0x1abaf8=>{const _0x3e60b2=_0x26baf8;if(_0x1abaf8[_0x3e60b2(0x440)]===0x1){var _0x1ef2de;const _0x4bfe00=_0x1abaf8[0x0],_0x5f2c63=(_0x1ef2de=this[_0x3e60b2(0x4d0)]['getDrawingByParam'](_0x4bfe00))===null||_0x1ef2de===void 0x0?void 0x0:_0x1ef2de['drawingType'];if(_0x5f2c63===_univerjs_core[_0x3e60b2(0x506)][_0x3e60b2(0x3fc)]&&_0x4bfe00['drawingId']===this['_activeShapeId'])this[_0x3e60b2(0x4fe)](),this[_0x3e60b2(0x372)]();else{if(!this[_0x3e60b2(0x2e4)]&&_0x5f2c63===_univerjs_core[_0x3e60b2(0x506)][_0x3e60b2(0x3fc)])this[_0x3e60b2(0x5eb)](_0x4bfe00['unitId'],_0x4bfe00[_0x3e60b2(0x5d6)],_0x4bfe00[_0x3e60b2(0x4c5)]);}}})),this[_0x26baf8(0x58e)](this['_drawingManagerService'][_0x26baf8(0x31c)][_0x26baf8(0x562)](_0x36917=>{const _0x12e25b=_0x26baf8;for(const _0x53f623 of _0x36917){const {drawingId:_0x13f3e1}=_0x53f623;if(this[_0x12e25b(0x2e4)]===_0x13f3e1){this[_0x12e25b(0x301)]();return;}}}));}[_0x3e9a34(0x53d)](_0xa387cd,_0x4c5efe,_0x2b7f2b,_0x5deaa6,_0x5821d6){const _0x309b11=_0x3e9a34;var _0x3801cf,_0x187ed5;if(!this[_0x309b11(0x19a)])return;const _0x352165=this['_getConnectPointInfo'](_0xa387cd);if(!_0x352165)return;const _0x4a829f=this[_0x309b11(0x639)]?this[_0x309b11(0x639)][_0x309b11(0x55b)]:_0x4c5efe,_0xba00d5=this[_0x309b11(0x639)]?this['_currentConnectionTarget'][_0x309b11(0x62d)]:this['_calculateFreeEndpointAngle'](_0x352165[_0x309b11(0x1c6)],_0x4a829f);let _0x216e36;if(this[_0x309b11(0x639)]){const _0x3bf232=this[_0x309b11(0x4d0)]['getDrawingByParam']({'unitId':this[_0x309b11(0x639)][_0x309b11(0x4a8)],'subUnitId':this['_currentConnectionTarget'][_0x309b11(0x5d6)],'drawingId':this[_0x309b11(0x639)]['shapeId']});if(_0x3bf232===null||_0x3bf232===void 0x0?void 0x0:_0x3bf232[_0x309b11(0x600)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x469b77}=_0x3bf232[_0x309b11(0x600)];_0x216e36=(0x0,_univerjs_pro_engine_shape[_0x309b11(0x5f6)])({'left':left,'top':top,'width':width,'height':height},_0x469b77||0x0);}else _0x216e36={'left':_0x4a829f['x'],'top':_0x4a829f['y'],'width':0x0,'height':0x0};}else _0x216e36={'left':_0x4a829f['x'],'top':_0x4a829f['y'],'width':0x0,'height':0x0};const _0x1bb271={'point':_0x4a829f,'angle':_0xba00d5,'bounds':_0x216e36},_0xa2b264=_0x2b7f2b?_0x1bb271:_0x352165,_0x28e397=_0x2b7f2b?_0x352165:_0x1bb271,_0x1cb66f=this[_0x309b11(0x19a)][_0x309b11(0x478)](),_0x2dca38=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0xa2b264,_0x28e397,_0x1cb66f);if(_0x2dca38)this[_0x309b11(0x19a)][_0x309b11(0x664)](_0x2dca38);const _0x38cd26=(0x0,_univerjs_pro_engine_shape[_0x309b11(0x37a)])(_0x2dca38,_0x1cb66f);if(_0x38cd26['lineType']!==_0x1cb66f)this[_0x309b11(0x19a)][_0x309b11(0x3ad)](_0x38cd26[_0x309b11(0x5de)]);for(const [_0x39fb84,_0x48170f]of Object[_0x309b11(0x180)](_0x38cd26[_0x309b11(0x132)]))this[_0x309b11(0x19a)][_0x309b11(0x57d)](_0x39fb84,_0x48170f);this[_0x309b11(0x19a)][_0x309b11(0x566)]({'width':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x183)],'height':_0x38cd26[_0x309b11(0x23a)]['height']}),_0x5deaa6['transformByState']({'flipX':_0x38cd26['worldRect'][_0x309b11(0x2f5)],'flipY':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x35d)],'left':_0x38cd26[_0x309b11(0x23a)]['left'],'top':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x156)],'width':_0x38cd26['worldRect'][_0x309b11(0x183)],'height':_0x38cd26['worldRect'][_0x309b11(0x37b)],'angle':_0x38cd26[_0x309b11(0x605)]}),_0x5deaa6[_0x309b11(0x309)](!![]);const _0x3ba15b=(_0x3801cf=(_0x187ed5=this[_0x309b11(0x639)])===null||_0x187ed5===void 0x0?void 0x0:_0x187ed5[_0x309b11(0x55b)])!==null&&_0x3801cf!==void 0x0?_0x3801cf:_0x4c5efe;_0x5821d6['transformByState']({'left':_0x3ba15b['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x309b11(0x325)],'top':_0x3ba15b['y']-_univerjs_pro_engine_shape[_0x309b11(0x49a)][_0x309b11(0x325)]});}['_handleFreeEndpointMove'](_0x50e8ba,_0x3b5f34,_0x567bbc,_0x42e9f8,_0x32c1a6){const _0x4c081d=_0x3e9a34;var _0x5f18e2,_0x22884c,_0xfb8db6,_0x5f2cb0;const _0x2aee78=(_0x5f18e2=(_0x22884c=this[_0x4c081d(0x639)])===null||_0x22884c===void 0x0?void 0x0:_0x22884c[_0x4c081d(0x55b)])!==null&&_0x5f18e2!==void 0x0?_0x5f18e2:_0x50e8ba,_0x2608f9=_univerjs_pro_engine_shape[_0x4c081d(0x572)][_0x4c081d(0x23f)](_0x3b5f34,_0x2aee78,_0x567bbc);_0x42e9f8[_0x4c081d(0x227)]({'flipX':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x2f5)],'flipY':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x35d)],'left':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0xe1)],'top':_0x2608f9[_0x4c081d(0x23a)]['top'],'width':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x183)],'height':_0x2608f9['worldRect'][_0x4c081d(0x37b)],'angle':_0x2608f9[_0x4c081d(0x23a)]['angle']});const _0x3abf4c=(_0xfb8db6=(_0x5f2cb0=this[_0x4c081d(0x639)])===null||_0x5f2cb0===void 0x0?void 0x0:_0x5f2cb0[_0x4c081d(0x55b)])!==null&&_0xfb8db6!==void 0x0?_0xfb8db6:_0x50e8ba;_0x32c1a6[_0x4c081d(0x227)]({'left':_0x3abf4c['x']-_univerjs_pro_engine_shape[_0x4c081d(0x49a)]['cxnPointRadius'],'top':_0x3abf4c['y']-_univerjs_pro_engine_shape[_0x4c081d(0x49a)]['cxnPointRadius']});}[_0x3e9a34(0x557)](_0x54b17a){const _0x15720b=_0x3e9a34;if(!this[_0x15720b(0x324)]||!this[_0x15720b(0x55d)])return null;const {shapeId:_0x43bd99,cxnIndex:_0x3caceb}=_0x54b17a,_0x507c16=this[_0x15720b(0xfd)][_0x15720b(0x533)](this[_0x15720b(0x324)],this[_0x15720b(0x55d)],_0x43bd99);if(!_0x507c16)return null;const _0x344d43=this[_0x15720b(0x4d0)]['getDrawingByParam']({'unitId':this[_0x15720b(0x324)],'subUnitId':this[_0x15720b(0x55d)],'drawingId':_0x43bd99});if(!(_0x344d43===null||_0x344d43===void 0x0?void 0x0:_0x344d43['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x4fd555}=_0x344d43[_0x15720b(0x600)];_0x507c16[_0x15720b(0x566)]({'width':width,'height':height});const _0x3b9d41=_0x507c16[_0x15720b(0x13b)]()['find'](_0x76a14f=>_0x76a14f['index']===_0x3caceb);if(!_0x3b9d41)return null;let _0x2aa21e=flipX?width-_0x3b9d41['x']:_0x3b9d41['x'],_0x42c648=flipY?height-_0x3b9d41['y']:_0x3b9d41['y'];if(_0x4fd555!==0x0&&_0x4fd555!==void 0x0&&_0x4fd555!==null){const _0x1553d8=_0x4fd555*Math['PI']/0xb4,_0x52575b=Math[_0x15720b(0x1cb)](_0x1553d8),_0x4255a4=Math[_0x15720b(0x479)](_0x1553d8),_0x5bb914=width/0x2,_0x2a0d0e=height/0x2,_0x3c45de=_0x2aa21e-_0x5bb914,_0x15f142=_0x42c648-_0x2a0d0e;_0x2aa21e=_0x5bb914+_0x3c45de*_0x52575b-_0x15f142*_0x4255a4,_0x42c648=_0x2a0d0e+_0x3c45de*_0x4255a4+_0x15f142*_0x52575b;}_0x2aa21e+=left,_0x42c648+=top;let _0x4dc3e7=_0x3b9d41['ang']/0xea60;if(flipX)_0x4dc3e7=0xb4-_0x4dc3e7;if(flipY)_0x4dc3e7=-_0x4dc3e7;_0x4dc3e7+=_0x4fd555||0x0,_0x4dc3e7=(_0x4dc3e7%0x168+0x168)%0x168;const _0x4cf735=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x4fd555||0x0);return{'point':{'x':_0x2aa21e,'y':_0x42c648},'angle':_0x4dc3e7,'bounds':_0x4cf735};}[_0x3e9a34(0x514)](_0x4a44ce,_0x4b4595){const _0x26be2=_0x3e9a34,_0x56d735=_0x4b4595['x']-_0x4a44ce['x'],_0x2891e3=_0x4b4595['y']-_0x4a44ce['y'];if(Math[_0x26be2(0x228)](_0x56d735)>=Math[_0x26be2(0x228)](_0x2891e3))return _0x56d735>=0x0?0xb4:0x0;else return _0x2891e3>=0x0?0x10e:0x5a;}['_reset'](){const _0x30c39d=_0x3e9a34;this[_0x30c39d(0x2e4)]=void 0x0,this['_unitId']=void 0x0,this[_0x30c39d(0x55d)]=void 0x0,this[_0x30c39d(0x4fe)]();}[_0x3e9a34(0x199)](){const _0x22b732=_0x3e9a34;this[_0x22b732(0x4fe)](),super[_0x22b732(0x199)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x2,_univerjs_engine_render[_0x3e9a34(0x35e)]),__decorateParam(0x3,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x1e6125,_0xe3f89b,_0xb0f7a6){const _0x12c05b=_0x3e9a34;super(),this[_0x12c05b(0x363)]=_0x1e6125,this['_localeService']=_0xe3f89b,this[_0x12c05b(0x492)]=_0xb0f7a6,this['_initPermission']();}[_0x3e9a34(0x1eb)](){const _0x2e9462=_0x3e9a34;this[_0x2e9462(0x58e)](this[_0x2e9462(0x363)][_0x2e9462(0x2fb)](_0x134a5b=>{const _0x2f88fe=_0x2e9462;let _0x2355c0,_0x4e6509;if(_0x134a5b['id']===_univerjs_pro_sheets_shape[_0x2f88fe(0x530)]['id']||_0x134a5b['id']===_univerjs_pro_sheets_shape[_0x2f88fe(0x5df)]['id']||_0x134a5b['id']===_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id']){const _0x591928=_0x134a5b[_0x2f88fe(0xee)];_0x2355c0=_0x591928[_0x2f88fe(0x4a8)],_0x4e6509=_0x591928[_0x2f88fe(0x5d6)];}if(!_0x2355c0||!_0x4e6509)return;if(!this[_0x2f88fe(0x492)]['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x2f88fe(0x36b)]],'worksheetTypes':[_univerjs_sheets[_0x2f88fe(0x343)]]},_0x2355c0,_0x4e6509))this[_0x2f88fe(0x492)][_0x2f88fe(0x25f)](this[_0x2f88fe(0x5d4)]['t']('permission.dialog.editErr'));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x3f7)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core['LocaleService'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x3e9a34(0x219)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x1540d7){const _0x29b9f4=_0x3e9a34,{containerWidth:_0x179549,containerHeight:_0x32b8aa,scaleX:_0x5df9e4,scaleY:_0x2491e2}=_0x1540d7,_0x424387=_0x5df9e4||0x1,_0x3ddb22=_0x2491e2||0x1,_0x4d9505=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x421573=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_docs_ui[_0x29b9f4(0x2c0)]),_0x184f0e=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_engine_render[_0x29b9f4(0x35e)]),_0x2c3843=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_core[_0x29b9f4(0x53f)]),_0x6f3995=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_drawing['IDrawingManagerService']),_0x5e0740=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_pro_sheets_shape['SheetsShapeService']),_0x1ab289=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['ICommandService']),_0x2d1f71=(0x0,_univerjs_ui['useObservable'])(_0x4d9505[_0x29b9f4(0x186)]),_0x5473db=(0x0,_univerjs_ui[_0x29b9f4(0x601)])(_0x4d9505['onSavingEditorData$']),_0x2e2191=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x21fa4e=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x14b71f=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x14ee19=(0x0,react['useRef'])(null),_0x5b525e=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x303981=(0x0,react[_0x29b9f4(0x2ec)])(null),[_0xa8bdb9,_0x46b44b]=(0x0,react[_0x29b9f4(0x5a1)])({'editorHeight':_0x32b8aa,'marginTop':0x0,'useAbsolutePosition':![]}),_0x4c7388=(0x0,react[_0x29b9f4(0x51f)])(_0x297628=>{queueMicrotask(()=>{_0x46b44b(_0x297628);});},[]),_0x209a27=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0xc32ecb=_0x29b9f4;return _0x2c3843[_0xc32ecb(0x46e)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core['UniverInstanceType'][_0xc32ecb(0x229)]);},[_0x2c3843]),_0x224b83=(0x0,react['useCallback'])(()=>{const _0x421f7a=_0x29b9f4;var _0x4cfada;const _0x2df97a=_0x424387,_0x17a401=_0x3ddb22;if(!_0x2d1f71)return{'scaleAdjust':0x1,'renderScaleX':_0x2df97a,'renderScaleY':_0x17a401};const _0x4459dc=_0x184f0e[_0x421f7a(0x17d)](_0x2d1f71[_0x421f7a(0x4a8)]),_0xbf9ed5=_0x4459dc===null||_0x4459dc===void 0x0?void 0x0:_0x4459dc['scene'][_0x421f7a(0x618)](),_0x131728=_0x4459dc===null||_0x4459dc===void 0x0?void 0x0:_0x4459dc['engine'][_0x421f7a(0x60c)](),_0xa4e4ad=_0x131728?Number[_0x421f7a(0x265)](_0x131728[_0x421f7a(0x18f)][_0x421f7a(0x183)]||''):0x0,_0xdeb6ba=(_0x4cfada=_0x131728===null||_0x131728===void 0x0?void 0x0:_0x131728['getBoundingClientRect']()[_0x421f7a(0x183)])!==null&&_0x4cfada!==void 0x0?_0x4cfada:0x0,_0x173844=_0xa4e4ad>0x0&&_0xdeb6ba>0x0?_0xdeb6ba/_0xa4e4ad:0x1;return{'scaleAdjust':Number[_0x421f7a(0x19c)](_0x173844)&&_0x173844>0x0?_0x173844:0x1,'renderScaleX':(_0xbf9ed5===null||_0xbf9ed5===void 0x0?void 0x0:_0xbf9ed5['scaleX'])||_0x2df97a,'renderScaleY':(_0xbf9ed5===null||_0xbf9ed5===void 0x0?void 0x0:_0xbf9ed5['scaleY'])||_0x17a401};},[_0x424387,_0x3ddb22,_0x2d1f71,_0x184f0e]),_0x3dec66=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0xa413c6=_0x29b9f4;if(!_0x2d1f71)return{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};const {unitId:_0x3d1574,subUnitId:_0xd2109d,shapeId:_0x30d0ec}=_0x2d1f71,_0x50224e=_0x5e0740[_0xa413c6(0x533)](_0x3d1574,_0xd2109d,_0x30d0ec);if(!_0x50224e)return{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};const _0x3e1866={'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};return _0x50224e[_0xa413c6(0x446)](_0x3e1866);},[_0x2d1f71,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22,_0x5e0740]),_0xaf13df=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0x4de8a1=_0x29b9f4;if(!_0x2d1f71)return null;const {unitId:_0x30df04,subUnitId:_0x13ddcf,shapeId:_0x1cf9ba}=_0x2d1f71,_0x34c49c=_0x5e0740[_0x4de8a1(0x533)](_0x30df04,_0x13ddcf,_0x1cf9ba);if(!_0x34c49c)return null;const _0x1a5399=_0x34c49c[_0x4de8a1(0x459)]();if(!_0x1a5399)return null;const _0x3676ec={'unitId':_0x30df04,'subUnitId':_0x13ddcf,'drawingId':_0x1cf9ba},_0x573d38=_0x6f3995[_0x4de8a1(0x619)](_0x3676ec);let _0x40336a={'angle':0x0,'flipX':![],'flipY':![]};if(_0x573d38&&_0x573d38[_0x4de8a1(0x600)])_0x40336a=_0x573d38[_0x4de8a1(0x600)];const _0x145e35={'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22},_0x497443=_0x34c49c[_0x4de8a1(0x446)](_0x145e35);let _0x439a15,_0x31c180=_univerjs_core[_0x4de8a1(0x48a)]['TOP'],_0x25788d=_univerjs_core[_0x4de8a1(0x5ed)][_0x4de8a1(0x57b)];if(_0x4de8a1(0xe0)in _0x1a5399&&_0x1a5399[_0x4de8a1(0xe0)]){var _0x57eb92,_0x2d09a7;const _0x1fa373=_0x1a5399[_0x4de8a1(0xe0)];if(_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373[_0x4de8a1(0x30b)])_0x439a15=_0x1fa373[_0x4de8a1(0x30b)];_0x31c180=(_0x57eb92=_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373['va'])!==null&&_0x57eb92!==void 0x0?_0x57eb92:_univerjs_core[_0x4de8a1(0x48a)][_0x4de8a1(0x2ab)],_0x25788d=(_0x2d09a7=_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373['ha'])!==null&&_0x2d09a7!==void 0x0?_0x2d09a7:_univerjs_core['HorizontalAlign'][_0x4de8a1(0x57b)];}return{'doc':_0x439a15,'verticalAlign':_0x31c180,'horizontalAlign':_0x25788d,'textRect':_0x497443,'transform':_0x40336a,'isHorizontal':_0x1a5399['isHorizontal']};},[_0x2d1f71,_0x5e0740,_0x6f3995,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22]),_0x5f58a4=(0x0,react['useMemo'])(()=>{const _0x34c941=_0x29b9f4,_0x4f93da=_0xaf13df();if(_0x4f93da===null||_0x4f93da===void 0x0?void 0x0:_0x4f93da[_0x34c941(0x30b)])return prepareShapeTextDocumentData(_0x4f93da[_0x34c941(0x30b)],{'isHorizontal':!![],'textRect':_0x4f93da[_0x34c941(0x513)],'verticalAlign':_0x4f93da['verticalAlign'],'horizontalAlign':_0x4f93da[_0x34c941(0x656)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x179549/_0x424387,'height':Infinity}}};},[_0xaf13df,_0x179549,_0x424387]),_0x4eece7=(0x0,_univerjs_docs_ui[_0x29b9f4(0x169)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x5f58a4,'container':_0x21fa4e,'autoFocus':![],'isSingle':![]}),_0x48451e=(0x0,_univerjs_docs_ui['useIsFocusing'])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x29b9f4(0x2a9)])(_0x48451e,{'keyCodes':[{'keyCode':_univerjs_ui[_0x29b9f4(0x54b)][_0x29b9f4(0x280)]}],'handler':()=>{const _0x342ace=_0x29b9f4;_0x1ab289[_0x342ace(0x591)](_univerjs_docs_ui[_0x342ace(0x1e0)]['id']);}},_0x4eece7),(0x0,_univerjs_docs_ui[_0x29b9f4(0x292)])(_0x48451e,![],_0x4eece7);const _0x508fd2=(0x0,react[_0x29b9f4(0x51f)])((_0x1e08c7=!![])=>{const _0x751dea=_0x29b9f4;var _0x2aadbe,_0x49c5e2,_0x4c279c;if(!_0x4eece7)return;const _0x179467=_0x4eece7['getSelectionRanges']()['find'](_0x4f850b=>_0x4f850b[_0x751dea(0x18d)]),_0x321c4a=((_0x2aadbe=(_0x49c5e2=_0x4eece7[_0x751dea(0x430)]()[_0x751dea(0x32d)])===null||_0x49c5e2===void 0x0?void 0x0:_0x49c5e2[_0x751dea(0x521)][_0x751dea(0x440)])!==null&&_0x2aadbe!==void 0x0?_0x2aadbe:0x2)-0x2,_0x40b659=(_0x4c279c=_0x179467===null||_0x179467===void 0x0?void 0x0:_0x179467[_0x751dea(0x1d2)])!==null&&_0x4c279c!==void 0x0?_0x4c279c:_0x1e08c7?_0x321c4a:null;if(_0x40b659===null)return;_0x4eece7[_0x751dea(0x40a)]([{'startOffset':_0x40b659,'endOffset':_0x40b659}],![]);},[_0x4eece7]),_0x59b30e=(0x0,react['useCallback'])(()=>{const _0x49ff82=_0x29b9f4;_0x5b525e[_0x49ff82(0x419)]!==null&&(cancelAnimationFrame(_0x5b525e[_0x49ff82(0x419)]),_0x5b525e['current']=null),_0x303981[_0x49ff82(0x419)]!==null&&(window[_0x49ff82(0x32f)](_0x303981[_0x49ff82(0x419)]),_0x303981[_0x49ff82(0x419)]=null);},[]),_0x2864a0=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0x4c531c=_0x29b9f4;var _0x1de41a,_0x319963,_0x513251;if(!_0x4eece7)return;const _0x270fd5=_0x184f0e['getRenderById'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x6c31a0=_0x270fd5===null||_0x270fd5===void 0x0?void 0x0:_0x270fd5[_0x4c531c(0x1cf)](_univerjs_docs[_0x4c531c(0x4b1)]);if(!_0x6c31a0)return;const _0x537b2a=_0x6c31a0['getSkeleton'](),_0x559f3e=_0x209a27(),{renderScaleX:_0xf82b4,renderScaleY:_0x38a8ab,scaleAdjust:_0x37f06d}=_0x224b83(),_0xce3e04=_0xaf13df(),_0x4c484d=(_0x1de41a=_0xce3e04===null||_0xce3e04===void 0x0?void 0x0:_0xce3e04[_0x4c531c(0x5d0)])!==null&&_0x1de41a!==void 0x0?_0x1de41a:_univerjs_core[_0x4c531c(0x48a)]['TOP'],_0xb1d3e7=(_0x319963=_0xce3e04===null||_0xce3e04===void 0x0?void 0x0:_0xce3e04[_0x4c531c(0x656)])!==null&&_0x319963!==void 0x0?_0x319963:_univerjs_core[_0x4c531c(0x5ed)][_0x4c531c(0x57b)],_0x4c4f4d=(_0x513251=_0x3dec66())!==null&&_0x513251!==void 0x0?_0x513251:{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};_0x559f3e&&(_0x559f3e[_0x4c531c(0x391)](Math[_0x4c531c(0x216)](_0xf82b4,_0x38a8ab)),_0x559f3e[_0x4c531c(0x589)]({'pageSize':{'width':_0x4c4f4d[_0x4c531c(0x183)],'height':Infinity}}),_0x559f3e[_0x4c531c(0x19b)]({'verticalAlign':_0x4c484d,'horizontalAlign':_0xb1d3e7,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x4c531c(0x5e5)][_0x4c531c(0x2fa)]}));_0x537b2a[_0x4c531c(0x108)]();const {actualHeight:_0x2c3770}=_0x537b2a[_0x4c531c(0x659)](),_0x259302=_0x4c4f4d['height'];let _0x571132=_0x259302,_0x2e3f7f=0x0;if(_0x2c3770<=_0x259302){if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x3a0)])_0x2e3f7f=(_0x259302-_0x2c3770)/0x2;else{if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)]['BOTTOM'])_0x2e3f7f=_0x259302-_0x2c3770;}_0x571132=_0x259302,_0x4c7388({'editorHeight':_0x4c4f4d[_0x4c531c(0x37b)]*_0x3ddb22,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x59a0c7=0x0;if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x3a0)])_0x59a0c7=(_0x259302-_0x2c3770)/0x2;else{if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x573)])_0x59a0c7=_0x259302-_0x2c3770;}_0x2e3f7f=0x0,_0x4c7388({'editorHeight':_0x2c3770*_0x3ddb22,'marginTop':_0x59a0c7*_0x3ddb22,'useAbsolutePosition':!![]}),_0x571132=_0x2c3770;}_0x559f3e&&(_0x559f3e[_0x4c531c(0x589)]({'pageSize':{'width':_0x4c4f4d[_0x4c531c(0x183)],'height':_0x571132}}),_0x559f3e[_0x4c531c(0x39c)]({'t':_0x2e3f7f}),_0x537b2a[_0x4c531c(0x108)]());if(_0x270fd5){const _0x5b1620=_0x4c4f4d[_0x4c531c(0x183)]*_0x424387,_0x5b0a7f=_0x571132*_0x3ddb22;_0x270fd5[_0x4c531c(0x2a4)][_0x4c531c(0x227)]({'width':_0x5b1620*_0x37f06d/_0xf82b4,'height':_0x5b0a7f*_0x37f06d/_0x38a8ab,'scaleX':_0xf82b4*_0x37f06d,'scaleY':_0x38a8ab*_0x37f06d});if(_0x270fd5[_0x4c531c(0x59e)])_0x270fd5[_0x4c531c(0x59e)][_0x4c531c(0x302)](_0x5b1620*_0x37f06d/_0xf82b4,_0x5b0a7f*_0x37f06d/_0x38a8ab);}},[_0x4eece7,_0x184f0e,_0x209a27,_0x224b83,_0xaf13df,_0x3dec66,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22,_0x4c7388]),_0x2a7f3f=(0x0,react[_0x29b9f4(0x51f)])((_0x1f421c=![])=>{const _0x58d771=_0x29b9f4;_0x59b30e(),_0x5b525e[_0x58d771(0x419)]=requestAnimationFrame(()=>{const _0x38f4df=_0x58d771;_0x2864a0();if(_0x1f421c)_0x508fd2(![]);_0x5b525e['current']=null,_0x303981['current']=window[_0x38f4df(0x112)](()=>{const _0x4d3f53=_0x38f4df;_0x2864a0();if(_0x1f421c)_0x508fd2(![]);_0x303981[_0x4d3f53(0x419)]=null;},0x14);});},[_0x2864a0,_0x59b30e,_0x508fd2]);(0x0,react[_0x29b9f4(0x11f)])(()=>{const _0x4e43b0=_0x29b9f4;if(!_0x4eece7||!_0x2d1f71)return;const {shapeId:_0xbcc500,unitId:_0x8c63c,subUnitId:_0x46e39a}=_0x2d1f71;if(_0x5473db){var _0x42eec5,_0x4ec9e7,_0x3d8ca5,_0x5717a6;const _0x33eb86=stripShapeTextDocumentLayout(_0x4eece7[_0x4e43b0(0x430)]()),_0x2dd2aa=_0xaf13df(),_0x253671={'va':(_0x42eec5=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa['verticalAlign'])!==null&&_0x42eec5!==void 0x0?_0x42eec5:_univerjs_core[_0x4e43b0(0x48a)][_0x4e43b0(0x2ab)],'ha':(_0x4ec9e7=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x656)])!==null&&_0x4ec9e7!==void 0x0?_0x4ec9e7:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x33eb86};_0x1ab289['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x8c63c,'subUnitId':_0x46e39a,'shapeId':_0xbcc500,'shapeData':{'shapeText':{'isHorizontal':(_0x3d8ca5=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x1ac)])!==null&&_0x3d8ca5!==void 0x0?_0x3d8ca5:!![],'dataModel':_0x253671}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x5717a6=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x1ac)])!==null&&_0x5717a6!==void 0x0?_0x5717a6:!![],'dataModel':_0x14b71f[_0x4e43b0(0x419)]}}}});return;}const _0x93290a=_0xaf13df();if(_0x93290a===null||_0x93290a===void 0x0?void 0x0:_0x93290a[_0x4e43b0(0x30b)]){_0x14b71f[_0x4e43b0(0x419)]={'va':_0x93290a[_0x4e43b0(0x5d0)],'ha':_0x93290a['horizontalAlign'],'doc':_univerjs_core[_0x4e43b0(0x584)]['deepClone'](_0x93290a['doc'])};const _0x55433c=prepareShapeTextDocumentData(_0x93290a[_0x4e43b0(0x30b)],{'isHorizontal':!![],'textRect':_0x93290a[_0x4e43b0(0x513)],'verticalAlign':_0x93290a['verticalAlign'],'horizontalAlign':_0x93290a[_0x4e43b0(0x656)]});return _0x4eece7[_0x4e43b0(0x21d)](_0x55433c,null),()=>{const _0x4061cc=_0x4e43b0;var _0x59af92,_0x25aacd,_0x83b49a,_0x49db01;const _0x1aa684=stripShapeTextDocumentLayout(_0x4eece7[_0x4061cc(0x430)]()),_0x45d3ec=_0xaf13df(),_0x5db7b8={'va':(_0x59af92=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x5d0)])!==null&&_0x59af92!==void 0x0?_0x59af92:_univerjs_core[_0x4061cc(0x48a)][_0x4061cc(0x2ab)],'ha':(_0x25aacd=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec['horizontalAlign'])!==null&&_0x25aacd!==void 0x0?_0x25aacd:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x1aa684};_0x1ab289[_0x4061cc(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x8c63c,'subUnitId':_0x46e39a,'shapeId':_0xbcc500,'shapeData':{'shapeText':{'isHorizontal':(_0x83b49a=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x1ac)])!==null&&_0x83b49a!==void 0x0?_0x83b49a:!![],'dataModel':_0x5db7b8}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x49db01=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x1ac)])!==null&&_0x49db01!==void 0x0?_0x49db01:!![],'dataModel':_0x14b71f[_0x4061cc(0x419)]}}}});};}else _0x4eece7[_0x4e43b0(0x21d)](_0x5f58a4,null);},[_0x4eece7,_0x2d1f71,_0x5473db]),(0x0,react[_0x29b9f4(0x11f)])(()=>{const _0x135d4d=_0x29b9f4;if(!_0x4eece7||!_0x2d1f71)return;return _0x421573[_0x135d4d(0x5b4)](!![]),_0x2864a0(),_0x14ee19[_0x135d4d(0x419)]=requestAnimationFrame(()=>{const _0x236a80=_0x135d4d;_0x421573['focus'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x508fd2(),_0x2a7f3f(),_0x14ee19[_0x236a80(0x419)]=null;}),()=>{const _0x3f419b=_0x135d4d;_0x14ee19['current']!==null&&(cancelAnimationFrame(_0x14ee19[_0x3f419b(0x419)]),_0x14ee19[_0x3f419b(0x419)]=null),_0x59b30e(),_0x421573['blur'](!![]);};},[_0x4eece7,_0x2d1f71,_0x421573,_0x2864a0,_0x508fd2,_0x2a7f3f,_0x59b30e]),(0x0,react['useEffect'])(()=>{const _0x16752b=_0x29b9f4;if(!_0x4eece7)return;const _0x3dfe33=_0x1ab289[_0x16752b(0x3b5)](_0x3ce108=>{const _0x1a5e93=_0x16752b;if(_0x3ce108['id']===_univerjs_docs[_0x1a5e93(0x27c)]['id']){if(_0x3ce108[_0x1a5e93(0xee)][_0x1a5e93(0x4a8)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x2d1f71){if(!_0x2d1f71['visible'])_0x4d9505[_0x1a5e93(0x1d8)]({..._0x2d1f71,'visible':!![]});else _0x2864a0();}}}if(_0x3ce108['id']===SetShapeTextVerticalAlignCommand['id'])_0x2a7f3f(!![]);});return()=>{const _0x3075dd=_0x16752b;_0x3dfe33[_0x3075dd(0x199)]();};},[_0x4eece7,_0x2864a0,_0x2d1f71,_0x2a7f3f,_0x4d9505]),(0x0,react[_0x29b9f4(0x11f)])(()=>{return _0x2864a0(),_0x2a7f3f(),()=>{_0x59b30e();};},[_0x2864a0,_0x2a7f3f,_0x59b30e]);const _0x8728e9=(0x0,react[_0x29b9f4(0x336)])(()=>{const _0x15bbfb=_0x29b9f4;var _0x2b78db;const _0x1e49dc=(_0x2b78db=_0x3dec66())!==null&&_0x2b78db!==void 0x0?_0x2b78db:{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22},_0x1a0f25=_0x1e49dc[_0x15bbfb(0xe1)]*_0x424387,_0x1f7a6a=_0x1e49dc[_0x15bbfb(0x156)]*_0x3ddb22,_0x46ca4b=_0x1e49dc['width']*_0x424387;if(_0xa8bdb9[_0x15bbfb(0x165)])return{'top':_0x1f7a6a+_0xa8bdb9[_0x15bbfb(0x2ee)],'left':_0x1a0f25,'width':_0x46ca4b,'height':_0xa8bdb9[_0x15bbfb(0x3f5)]};return{'top':_0x1f7a6a,'left':_0x1a0f25,'width':_0x46ca4b,'height':_0xa8bdb9[_0x15bbfb(0x3f5)]};},[_0xa8bdb9,_0x3dec66,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22]),_0x262dd=(0x0,react[_0x29b9f4(0x336)])(()=>{const _0x14cead=_0x29b9f4,_0xed69e7=_0xaf13df(),_0x5cced3=_0xed69e7===null||_0xed69e7===void 0x0?void 0x0:_0xed69e7[_0x14cead(0x600)];if(_0x5cced3)return _0x5cced3||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0xaf13df]);return(0x0,react_jsx_runtime[_0x29b9f4(0x64f)])(_0x29b9f4(0x418),{'ref':_0x2e2191,'data-u-comp':_0x29b9f4(0x109),'className':_0x29b9f4(0x669),'style':{'transform':_0x29b9f4(0x27a)+_0x262dd[_0x29b9f4(0x62d)]+'deg)\x20scaleY('+(_0x262dd[_0x29b9f4(0x35d)]?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x29b9f4(0x64f)])(_0x29b9f4(0x418),{'ref':_0x21fa4e,'className':'univer-absolute','data-u-comp':_0x29b9f4(0x3d5),'style':_0x8728e9,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor['displayName']='ShapeEditor';const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x3273d8,_0x170df8,_0x5d42ca,_0x1b9840){const _0x2ee0a9=_0x3e9a34,{scaleX:_0x5384f0,scaleY:_0x212e46}=_0x5d42ca[_0x2ee0a9(0x618)](),{startColumn:_0x1d91bc,startRow:_0x455196,xSplit:_0x187a95,ySplit:_0x3e9340}=_0x1b9840[_0x2ee0a9(0x5e4)][_0x2ee0a9(0x58d)](),_0x4380f8=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x208)]),_0x6250bf=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x519)]),_0x316ae1=_0x5d42ca['getViewport'](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x2ee0a9(0x31f)]),_0x4b04e9=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x41f)]),{rowHeaderWidth:_0x14f9ae,columnHeaderHeight:_0x4aab64}=_0x1b9840,_0x26fc9d=_0x1b9840[_0x2ee0a9(0x211)](_0x455196)+_0x4aab64,_0x34ccc4=_0x1b9840[_0x2ee0a9(0x4b9)](_0x1d91bc)+_0x14f9ae,_0x21dd00=_0x1b9840[_0x2ee0a9(0x211)](_0x455196-_0x3e9340)+_0x4aab64,_0x25aa58=_0x1b9840[_0x2ee0a9(0x4b9)](_0x1d91bc-_0x187a95)+_0x14f9ae,_0x4e9ce5=[],_0x3fff5f=(_0x2ee67c,_0xa7f61b,_0x16fe0f)=>{if(!_0x2ee67c)return null;const {viewportScrollX:_0x41d614,viewportScrollY:_0x40eb88}=_0x2ee67c;let _0x57492c,_0x2b400d;if(_0xa7f61b)_0x57492c=(_0x3273d8-(_0x25aa58-_0x14f9ae))*_0x5384f0;else _0x57492c=(_0x3273d8-_0x41d614)*_0x5384f0;if(_0x16fe0f)_0x2b400d=(_0x170df8-(_0x21dd00-_0x4aab64))*_0x212e46;else _0x2b400d=(_0x170df8-_0x40eb88)*_0x212e46;return{'domX':_0x57492c,'domY':_0x2b400d};},_0x56c086=_0x3273d8<_0x34ccc4&&_0x187a95>0x0,_0x57ba92=_0x170df8<_0x26fc9d&&_0x3e9340>0x0,_0x20a947=_0x3273d8>=_0x34ccc4||_0x187a95===0x0,_0x854a27=_0x170df8>=_0x26fc9d||_0x3e9340===0x0;if(_0x56c086&&_0x57ba92&&_0x6250bf){const _0x91a7d4=_0x3fff5f(_0x6250bf,!![],!![]);if(_0x91a7d4)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x91a7d4);}if(_0x57ba92&&_0x20a947&&_0x316ae1){const _0x19aab5=_0x3fff5f(_0x316ae1,![],!![]);if(_0x19aab5)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x19aab5);}if(_0x56c086&&_0x854a27&&_0x4b04e9){const _0x1801c5=_0x3fff5f(_0x4b04e9,!![],![]);if(_0x1801c5)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x1801c5);}if(_0x20a947&&_0x854a27&&_0x4380f8){const _0x5f22bf=_0x3fff5f(_0x4380f8,![],![]);if(_0x5f22bf)_0x4e9ce5['push'](_0x5f22bf);}if(_0x4e9ce5[_0x2ee0a9(0x440)]===0x0){var _0x5d0266,_0x306fa2;return{'domX':(_0x3273d8-((_0x5d0266=_0x4380f8===null||_0x4380f8===void 0x0?void 0x0:_0x4380f8[_0x2ee0a9(0x4aa)])!==null&&_0x5d0266!==void 0x0?_0x5d0266:0x0))*_0x5384f0,'domY':(_0x170df8-((_0x306fa2=_0x4380f8===null||_0x4380f8===void 0x0?void 0x0:_0x4380f8[_0x2ee0a9(0x520)])!==null&&_0x306fa2!==void 0x0?_0x306fa2:0x0))*_0x212e46};}let _0x337302=_0x4e9ce5[0x0]['domX'],_0x466663=_0x4e9ce5[0x0]['domY'];for(const _0x3d0569 of _0x4e9ce5){if(_0x3d0569[_0x2ee0a9(0x407)]>_0x337302)_0x337302=_0x3d0569[_0x2ee0a9(0x407)];if(_0x3d0569['domY']>_0x466663)_0x466663=_0x3d0569[_0x2ee0a9(0x420)];}return{'domX':_0x337302,'domY':_0x466663};}function calcShapePosition(_0x103c9f,_0x59ab25,_0x829c11,_0x178e9d,_0x2a340a,_0x4159ff,_0x34ed85){const _0x47e880=_0x3e9a34,{scaleX:_0xba300a,scaleY:_0x1503ae}=_0x4159ff[_0x47e880(0x618)](),{domX:_0x1768ce,domY:_0x259d4f}=calcBestDOMPositionForFreezeZones(_0x103c9f,_0x59ab25,_0x4159ff,_0x34ed85);return{'left':_0x1768ce,'top':_0x259d4f,'width':_0x829c11*_0xba300a,'height':_0x178e9d*_0x1503ae,'angle':_0x2a340a,'scaleX':_0xba300a,'scaleY':_0x1503ae};}function useShapePosition(_0xa923ee){const _0x51dc72=_0x3e9a34,{editingParams:_0x4d6818,scene:_0x50f481,skeleton:_0x4fc86c,getShapeTransform:_0x487776}=_0xa923ee,[_0x7e2587,_0x5bd04f]=(0x0,react['useState'])(DEFAULT_HIDDEN_POSITION),_0x5a255a=(0x0,react[_0x51dc72(0x2ec)])(_0x7e2587);_0x5a255a[_0x51dc72(0x419)]=_0x7e2587;const _0x4c164f=(0x0,react[_0x51dc72(0x51f)])(()=>{const _0x46bb2f=_0x51dc72;if(!_0x4d6818||!_0x50f481||!_0x4fc86c){if(_0x5a255a[_0x46bb2f(0x419)]!==DEFAULT_HIDDEN_POSITION)_0x5bd04f(DEFAULT_HIDDEN_POSITION);return;}const _0x5a5c7e=_0x487776();if(!_0x5a5c7e){if(_0x5a255a['current']!==DEFAULT_HIDDEN_POSITION)_0x5bd04f(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x4f4c5d,top:_0x523362,width:_0x57bf0e,height:_0x2fb942,angle:_0xf82a96}=_0x5a5c7e;if(!_0x4d6818[_0x46bb2f(0x576)]){const {scaleX:_0x335531,scaleY:_0x24fbf5}=_0x50f481[_0x46bb2f(0x618)]();_0x5bd04f({'left':-0x270f,'top':-0x270f,'width':_0x57bf0e*_0x335531,'height':_0x2fb942*_0x24fbf5,'angle':0x0,'scaleX':_0x335531,'scaleY':_0x24fbf5});return;}_0x5bd04f(calcShapePosition(_0x4f4c5d,_0x523362,_0x57bf0e,_0x2fb942,_0xf82a96,_0x50f481,_0x4fc86c));},[_0x4d6818,_0x50f481,_0x4fc86c,_0x487776]);return(0x0,react['useEffect'])(()=>{_0x4c164f();},[_0x4d6818,_0x4c164f]),{'position':_0x7e2587,'updatePosition':_0x4c164f};}const ShapePositionWrapper=(0x0,react[_0x3e9a34(0x489)])(_0xb62a7c=>{const _0x432c4c=_0x3e9a34,{children:_0x2f996f,onPositionUpdate:_0x2e7f7d}=_0xb62a7c,_0x2a367b=(0x0,react['useRef'])(null),_0x180f72=(0x0,_univerjs_ui[_0x432c4c(0x663)])(ShapeTextEditingService),_0x4d291f=(0x0,_univerjs_ui[_0x432c4c(0x663)])(_univerjs_engine_render[_0x432c4c(0x35e)]),_0x272f32=(0x0,_univerjs_ui[_0x432c4c(0x601)])(_0x180f72[_0x432c4c(0x186)]),_0x5c9099=(0x0,react[_0x432c4c(0x336)])(()=>{const _0x228910=_0x432c4c;if(!_0x272f32)return null;return _0x4d291f['getRenderById'](_0x272f32[_0x228910(0x4a8)]);},[_0x272f32,_0x4d291f]),_0x203233=(0x0,react['useMemo'])(()=>{const _0x1504fc=_0x432c4c;var _0x34311a;return(_0x34311a=_0x5c9099===null||_0x5c9099===void 0x0?void 0x0:_0x5c9099[_0x1504fc(0x2a4)])!==null&&_0x34311a!==void 0x0?_0x34311a:null;},[_0x5c9099]),{position:_0x20e010,updatePosition:_0x3ef9ec}=useShapePosition({'editingParams':_0x272f32,'scene':_0x203233,'skeleton':(0x0,react[_0x432c4c(0x336)])(()=>{const _0x39ba58=_0x432c4c;var _0x346ab3,_0x3d0519;if(!_0x272f32||!_0x5c9099)return null;return(_0x346ab3=(_0x3d0519=_0x5c9099[_0x39ba58(0x1cf)](_univerjs_sheets_ui[_0x39ba58(0x412)])[_0x39ba58(0x2d6)](_0x272f32['subUnitId']))===null||_0x3d0519===void 0x0?void 0x0:_0x3d0519['skeleton'])!==null&&_0x346ab3!==void 0x0?_0x346ab3:null;},[_0x272f32,_0x5c9099]),'getShapeTransform':(0x0,react['useCallback'])(()=>{const _0x184b0d=_0x432c4c;if(!_0x272f32||!_0x203233)return null;const _0x4cc45c=_0x272f32[_0x184b0d(0x50b)],_0x1eb7a4=_0x203233[_0x184b0d(0x3c3)](_0x4cc45c);if(_0x1eb7a4 instanceof DrawingShape)return{'left':_0x1eb7a4[_0x184b0d(0xe1)],'top':_0x1eb7a4['top'],'width':_0x1eb7a4[_0x184b0d(0x183)],'height':_0x1eb7a4[_0x184b0d(0x37b)],'angle':_0x1eb7a4['angle']};return null;},[_0x272f32,_0x203233])}),_0x27ba80=(0x0,react[_0x432c4c(0x51f)])(()=>{const _0x282e44=_0x432c4c,_0x2d6de5=_0x2a367b[_0x282e44(0x419)];if(!_0x2d6de5)return;_0x2d6de5[_0x282e44(0x18f)]['left']=_0x20e010[_0x282e44(0xe1)]+'px',_0x2d6de5[_0x282e44(0x18f)][_0x282e44(0x156)]=_0x20e010[_0x282e44(0x156)]+'px',_0x2d6de5[_0x282e44(0x18f)][_0x282e44(0x183)]=_0x20e010[_0x282e44(0x183)]+'px',_0x2d6de5[_0x282e44(0x18f)]['height']=_0x20e010[_0x282e44(0x37b)]+'px';},[_0x20e010]);return(0x0,react[_0x432c4c(0x11f)])(()=>{const _0x5ca7c6=_0x432c4c;_0x27ba80(),_0x2e7f7d===null||_0x2e7f7d===void 0x0||_0x2e7f7d({'width':_0x20e010['width'],'height':_0x20e010[_0x5ca7c6(0x37b)],'scaleX':_0x20e010['scaleX'],'scaleY':_0x20e010[_0x5ca7c6(0x1b6)]});},[_0x20e010,_0x27ba80,_0x2e7f7d]),(0x0,react['useEffect'])(()=>{const _0x5e2481=_0x432c4c;if(!_0x203233)return;const _0x2e24e3=_0x203233[_0x5e2481(0x42a)](_univerjs_engine_render[_0x5e2481(0x5c9)][_0x5e2481(0x208)]);if(!_0x2e24e3)return;const _0x48ee18=_0x2e24e3[_0x5e2481(0x511)][_0x5e2481(0x345)](()=>{_0x3ef9ec();});return()=>{_0x48ee18['unsubscribe']();};},[_0x203233,_0x3ef9ec]),(0x0,react[_0x432c4c(0x11f)])(()=>{const _0x4a707d=_0x432c4c;if(!_0x272f32||!_0x203233)return;const _0x1bbb77=_0x272f32['shapeKey'],_0x56160a=_0x203233['getObject'](_0x1bbb77);if(_0x56160a instanceof DrawingShape){const _0x20142e=_0x56160a[_0x4a707d(0x293)][_0x4a707d(0x345)](()=>{_0x3ef9ec();});return()=>{const _0x28e93f=_0x4a707d;_0x20142e[_0x28e93f(0x54e)]();};}},[_0x272f32,_0x203233,_0x3ef9ec]),(0x0,react_jsx_runtime['jsx'])(_0x432c4c(0x418),{'ref':_0x2a367b,'data-u-comp':_0x432c4c(0x194),'className':_0x432c4c(0x416),'style':(0x0,react['useMemo'])(()=>({'left':_0x20e010['left'],'top':_0x20e010[_0x432c4c(0x156)],'width':_0x20e010['width'],'height':_0x20e010[_0x432c4c(0x37b)],'pointerEvents':(_0x272f32===null||_0x272f32===void 0x0?void 0x0:_0x272f32[_0x432c4c(0x576)])?_0x432c4c(0x4fa):_0x432c4c(0x3e4)}),[_0x20e010,_0x272f32===null||_0x272f32===void 0x0?void 0x0:_0x272f32[_0x432c4c(0x576)]]),'children':_0x2f996f});});ShapePositionWrapper[_0x3e9a34(0x42e)]='ShapePositionWrapper';const ShapeTextEditorContainer=(0x0,react[_0x3e9a34(0x489)])(()=>{const _0x4370b6=_0x3e9a34,_0x12a5e3=(0x0,_univerjs_ui[_0x4370b6(0x601)])((0x0,_univerjs_ui[_0x4370b6(0x663)])(ShapeTextEditingService)[_0x4370b6(0x186)]),[_0x5df64c,_0xe485d]=(0x0,react[_0x4370b6(0x5a1)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x424a15=(0x0,react[_0x4370b6(0x51f)])(_0x4973f8=>{const _0x357066=_0x4370b6;_0xe485d({'width':_0x4973f8[_0x357066(0x183)],'height':_0x4973f8['height'],'scaleX':_0x4973f8[_0x357066(0x646)],'scaleY':_0x4973f8[_0x357066(0x1b6)]});},[]);if(!(_0x12a5e3===null||_0x12a5e3===void 0x0?void 0x0:_0x12a5e3[_0x4370b6(0x576)]))return null;return(0x0,react_jsx_runtime[_0x4370b6(0x64f)])(ShapePositionWrapper,{'onPositionUpdate':_0x424a15,'children':(0x0,react_jsx_runtime[_0x4370b6(0x64f)])(ShapeEditor,{'containerWidth':_0x5df64c[_0x4370b6(0x183)],'containerHeight':_0x5df64c[_0x4370b6(0x37b)],'scaleX':_0x5df64c[_0x4370b6(0x646)],'scaleY':_0x5df64c['scaleY']})});});ShapeTextEditorContainer[_0x3e9a34(0x42e)]='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0x3e9a34(0xed)]{constructor(_0x50608c=defaultPluginConfig,_0x44780f,_0x49321f,_0x307343,_0x1643fd){const _0x4d396c=_0x3e9a34;super(),this['_config']=_0x50608c,this[_0x4d396c(0x413)]=_0x44780f,this[_0x4d396c(0x363)]=_0x49321f,this['_configService']=_0x307343,this[_0x4d396c(0x5cb)]=_0x1643fd;const {..._0x3b0b6b}=(0x0,_univerjs_core[_0x4d396c(0x5e3)])({},defaultPluginConfig,this['_config']);this['_configService']['setConfig'](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x3b0b6b),this[_0x4d396c(0x666)]();}[_0x3e9a34(0x2c7)](){const _0x1b2210=_0x3e9a34;(0x0,_univerjs_core[_0x1b2210(0x5d1)])(this['_injector'],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}['onReady'](){const _0x53915a=_0x3e9a34;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x53915a(0x289)](_0x3c98e6=>this[_0x53915a(0x413)]['add'](_0x3c98e6)),(0x0,_univerjs_core['touchDependencies'])(this['_injector'],[[SheetShapeClipboardController]]),this['_renderManagerService'][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[SheetBasicShapeConnectionPointController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[SheetShapeAdjustController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[ImageClipAdjustController]),this['_renderManagerService'][_0x53915a(0x458)](_univerjs_core[_0x53915a(0x4cd)][_0x53915a(0x58b)],[SheetShapeConnectorController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core[_0x53915a(0x4cd)][_0x53915a(0x58b)],[ShapeTextEditingRenderController]);}[_0x3e9a34(0x25d)](){const _0x3d8a43=_0x3e9a34,_0x3dac2a=this['_injector'];_0x3dac2a[_0x3d8a43(0x2d9)](_univerjs_ui['ComponentManager'])[_0x3d8a43(0x405)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x3d8a43(0x289)](_0x3ff827=>_0x3dac2a[_0x3d8a43(0x30e)](_0x3ff827)),(0x0,_univerjs_core[_0x3d8a43(0x5d1)])(this[_0x3d8a43(0x413)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x3e9a34(0x666)](){const _0x2f8c25=_0x3e9a34;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x2f8c25(0x289)](_0x1cce62=>this[_0x2f8c25(0x58e)](this[_0x2f8c25(0x363)][_0x2f8c25(0x62b)](_0x1cce62)));}};_defineProperty(UniverSheetsShapeUIPlugin,_0x3e9a34(0x142),_univerjs_core[_0x3e9a34(0x4cd)][_0x3e9a34(0x58b)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x3e9a34(0x226),_0x3e9a34(0x2b2)),_defineProperty(UniverSheetsShapeUIPlugin,'packageName',name),_defineProperty(UniverSheetsShapeUIPlugin,'version',version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x3e9a34(0x538)])(_univerjs_sheets_drawing_ui[_0x3e9a34(0x1e4)],_univerjs_pro_sheets_shape[_0x3e9a34(0x288)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x150)]),__decorateParam(0x4,_univerjs_engine_render[_0x3e9a34(0x35e)])],UniverSheetsShapeUIPlugin),exports['SetShapeTextFontSizeCommand']=SetShapeTextFontSizeCommand,exports[_0x3e9a34(0x406)]=SetShapeTextFontSizeDecreaseCommand,exports[_0x3e9a34(0x60d)]=SetShapeTextFontSizeIncreaseCommand,exports[_0x3e9a34(0x522)]=SetShapeTextHorizontalAlignCommand,exports[_0x3e9a34(0x374)]=SetShapeTextVerticalAlignCommand,exports[_0x3e9a34(0x323)]=ShapeDocAlignCommand,Object[_0x3e9a34(0x63c)](exports,'SheetsShapeUIController',{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object[_0x3e9a34(0x63c)](exports,_0x3e9a34(0x19f),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x3e9a34(0x355)]=UpdateShapeDataCommand;
|